@nutui/nutui-react-taro 3.0.0-beta.11 → 3.0.0-beta.13

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 (543) hide show
  1. package/dist/cjs/{utils → hooks}/use-click-away.js +2 -2
  2. package/dist/cjs/{utils → hooks}/use-custom-event.js +2 -2
  3. package/dist/cjs/{utils → hooks}/use-isomprphic-layout-effect.js +1 -1
  4. package/dist/cjs/{utils → hooks}/use-lock-scroll.js +2 -2
  5. package/dist/cjs/packages/actionsheet/style/style.css +13 -18
  6. package/dist/cjs/packages/address/address.d.ts +1 -1
  7. package/dist/cjs/packages/address/address.js +1 -1
  8. package/dist/cjs/packages/address/style/style.css +45 -57
  9. package/dist/cjs/packages/animate/animate.js +5 -6
  10. package/dist/cjs/packages/animate/style/animate.scss +63 -105
  11. package/dist/cjs/packages/animate/style/style.css +45 -44
  12. package/dist/cjs/packages/animate/style/style.harmony.css +45 -44
  13. package/dist/cjs/packages/animatingnumbers/style/style.css +3 -3
  14. package/dist/cjs/packages/audio/style/style.css +55 -55
  15. package/dist/cjs/packages/avatar/avatar.js +2 -2
  16. package/dist/cjs/packages/avatar/style/style.css +2 -2
  17. package/dist/cjs/packages/avatarcropper/avatarcropper.js +3 -2
  18. package/dist/cjs/packages/backtop/backtop.js +1 -3
  19. package/dist/cjs/packages/backtop/style/backtop.scss +0 -4
  20. package/dist/cjs/packages/backtop/style/style.css +8 -14
  21. package/dist/cjs/packages/backtop/style/style.harmony.css +0 -3
  22. package/dist/cjs/packages/badge/badge.js +10 -11
  23. package/dist/cjs/packages/badge/style/style.css +4 -4
  24. package/dist/cjs/packages/barrage/style/style.css +2 -2
  25. package/dist/cjs/packages/button/button.js +20 -13
  26. package/dist/cjs/packages/button/style/button.scss +3 -3
  27. package/dist/cjs/packages/button/style/style.css +43 -43
  28. package/dist/cjs/packages/button/style/style.harmony.css +3 -3
  29. package/dist/cjs/packages/calendar/style/calendar.scss +25 -31
  30. package/dist/cjs/packages/calendar/style/style.css +28 -39
  31. package/dist/cjs/packages/calendar/style/style.harmony.css +14 -20
  32. package/dist/cjs/packages/calendarcard/calendarcard.js +1 -1
  33. package/dist/cjs/packages/calendarcard/style/style.css +8 -8
  34. package/dist/cjs/packages/calendaritem/calendaritem.js +1 -2
  35. package/dist/cjs/packages/card/style/style.css +8 -8
  36. package/dist/cjs/packages/cascader/cascader.d.ts +2 -2
  37. package/dist/cjs/packages/cascader/cascader.js +5 -5
  38. package/dist/cjs/packages/cascader/style/style.css +35 -47
  39. package/dist/cjs/packages/cell/style/style.css +8 -8
  40. package/dist/cjs/packages/cellgroup/style/style.css +3 -3
  41. package/dist/cjs/packages/checkbox/checkbox.js +1 -1
  42. package/dist/cjs/packages/checkbox/style/style.css +29 -29
  43. package/dist/cjs/packages/checkboxgroup/checkboxgroup.js +1 -1
  44. package/dist/cjs/packages/checkboxgroup/style/style.css +7 -7
  45. package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
  46. package/dist/cjs/packages/circleprogress/style/style.css +3 -3
  47. package/dist/cjs/packages/col/style/col.scss +0 -1
  48. package/dist/cjs/packages/collapse/collapse.js +1 -1
  49. package/dist/cjs/packages/collapse/style/style.css +11 -11
  50. package/dist/cjs/packages/collapseitem/style/style.css +11 -11
  51. package/dist/cjs/packages/configprovider/configprovider.js +3 -3
  52. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  53. package/dist/cjs/packages/countdown/style/style.css +7 -7
  54. package/dist/cjs/packages/countup/style/style.css +3 -3
  55. package/dist/cjs/packages/datepicker/datepicker.js +1 -1
  56. package/dist/cjs/packages/datepicker/style/style.css +16 -21
  57. package/dist/cjs/packages/dialog/content.d.ts +3 -13
  58. package/dist/cjs/packages/dialog/content.js +27 -9
  59. package/dist/cjs/packages/dialog/dialog.d.ts +3 -5
  60. package/dist/cjs/packages/dialog/dialog.js +23 -23
  61. package/dist/cjs/packages/dialog/index.d.ts +1 -1
  62. package/dist/cjs/packages/dialog/style/dialog.scss +0 -4
  63. package/dist/cjs/packages/dialog/style/style.css +49 -57
  64. package/dist/cjs/packages/dialog/types.d.ts +57 -0
  65. package/dist/cjs/packages/dialog/types.js +4 -0
  66. package/dist/cjs/packages/dialog/types.taro.d.ts +10 -0
  67. package/dist/cjs/packages/divider/style/style.css +4 -4
  68. package/dist/cjs/packages/drag/drag.js +3 -2
  69. package/dist/cjs/packages/elevator/elevator.js +1 -1
  70. package/dist/cjs/packages/elevator/style/style.css +8 -8
  71. package/dist/cjs/packages/empty/empty.js +1 -3
  72. package/dist/cjs/packages/empty/style/style.css +3 -3
  73. package/dist/cjs/packages/fixednav/fixednav.d.ts +2 -15
  74. package/dist/cjs/packages/fixednav/fixednav.js +15 -34
  75. package/dist/cjs/packages/fixednav/index.d.ts +1 -2
  76. package/dist/cjs/packages/fixednav/style/style.css +3 -8
  77. package/dist/cjs/packages/fixednav/types.d.ts +12 -0
  78. package/dist/cjs/packages/fixednav/types.taro.d.ts +1 -0
  79. package/dist/cjs/packages/form/style/style.css +15 -15
  80. package/dist/cjs/packages/formitem/style/style.css +4 -4
  81. package/dist/cjs/packages/grid/style/style.css +6 -6
  82. package/dist/cjs/packages/griditem/style/style.css +5 -5
  83. package/dist/cjs/packages/hoverbutton/hoverbutton.js +1 -3
  84. package/dist/cjs/packages/hoverbutton/style/hoverbutton.scss +0 -4
  85. package/dist/cjs/packages/hoverbutton/style/style.css +4 -7
  86. package/dist/cjs/packages/hoverbutton/style/style.harmony.css +0 -3
  87. package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +4 -5
  88. package/dist/cjs/packages/hoverbuttonitem/style/style.css +4 -4
  89. package/dist/cjs/packages/image/image.js +1 -1
  90. package/dist/cjs/packages/image/style/style.css +2 -2
  91. package/dist/cjs/packages/imagepreview/imagepreview.js +1 -1
  92. package/dist/cjs/packages/imagepreview/style/style.css +11 -27
  93. package/dist/cjs/packages/indicator/style/style.css +4 -4
  94. package/dist/cjs/packages/infiniteloading/style/style.css +4 -4
  95. package/dist/cjs/packages/input/input.js +1 -1
  96. package/dist/cjs/packages/input/style/input.scss +0 -6
  97. package/dist/cjs/packages/input/style/style.css +8 -14
  98. package/dist/cjs/packages/input/style/style.harmony.css +0 -6
  99. package/dist/cjs/packages/inputnumber/inputnumber.js +5 -15
  100. package/dist/cjs/packages/inputnumber/style/style.css +7 -7
  101. package/dist/cjs/packages/loading/style/style.css +2 -2
  102. package/dist/cjs/packages/lottie/mp.js +3 -2
  103. package/dist/cjs/packages/menu/style/style.css +8 -13
  104. package/dist/cjs/packages/menuitem/menuitem.js +5 -4
  105. package/dist/cjs/packages/menuitem/style/style.css +4 -9
  106. package/dist/cjs/packages/navbar/style/navbar.scss +1 -1
  107. package/dist/cjs/packages/navbar/style/style.css +3 -3
  108. package/dist/cjs/packages/navbar/style/style.harmony.css +1 -1
  109. package/dist/cjs/packages/notify/notify.js +3 -10
  110. package/dist/cjs/packages/notify/style/style.css +4 -4
  111. package/dist/cjs/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  112. package/dist/cjs/packages/numberkeyboard/style/style.css +13 -18
  113. package/dist/cjs/packages/nutui.react.build.d.ts +3 -1
  114. package/dist/cjs/packages/nutui.react.build.js +122 -118
  115. package/dist/cjs/packages/nutui.react.d.ts +4 -1
  116. package/dist/cjs/packages/nutui.react.js +123 -118
  117. package/dist/cjs/packages/nutui.react.scss.d.ts +1 -0
  118. package/dist/cjs/packages/nutui.react.scss.js +1 -0
  119. package/dist/cjs/packages/overlay/index.d.ts +1 -1
  120. package/dist/cjs/packages/overlay/overlay.d.ts +1 -12
  121. package/dist/cjs/packages/overlay/overlay.js +22 -35
  122. package/dist/cjs/packages/overlay/style/overlay.scss +0 -5
  123. package/dist/cjs/packages/overlay/style/style.css +1 -6
  124. package/dist/cjs/packages/overlay/style/style.harmony.css +0 -5
  125. package/dist/cjs/packages/overlay/types.d.ts +11 -0
  126. package/dist/cjs/packages/overlay/types.js +4 -0
  127. package/dist/cjs/packages/overlay/types.taro.d.ts +5 -0
  128. package/dist/cjs/packages/pagination/pagination.js +1 -1
  129. package/dist/cjs/packages/pagination/style/style.css +7 -7
  130. package/dist/cjs/packages/picker/picker.d.ts +1 -1
  131. package/dist/cjs/packages/picker/picker.js +6 -6
  132. package/dist/cjs/packages/picker/pickerpanel.js +1 -1
  133. package/dist/cjs/packages/picker/style/style.css +16 -21
  134. package/dist/cjs/packages/picker/style/style.harmony.css +2 -2
  135. package/dist/cjs/packages/pickerview/index.d.ts +3 -0
  136. package/dist/cjs/packages/pickerview/index.js +13 -0
  137. package/dist/cjs/packages/pickerview/pickerroller.d.ts +7 -0
  138. package/dist/cjs/packages/pickerview/pickerroller.js +186 -0
  139. package/dist/cjs/packages/pickerview/pickerview.d.ts +4 -0
  140. package/dist/cjs/packages/pickerview/pickerview.js +201 -0
  141. package/dist/cjs/packages/pickerview/style/css.js +1 -0
  142. package/dist/cjs/packages/pickerview/style/index.js +1 -0
  143. package/dist/cjs/packages/pickerview/style/pickerview.scss +79 -0
  144. package/dist/cjs/packages/pickerview/style/style.css +73 -0
  145. package/dist/cjs/packages/pickerview/style/style.harmony.css +83 -0
  146. package/dist/cjs/packages/pickerview/types.d.ts +32 -0
  147. package/dist/cjs/packages/pickerview/types.js +4 -0
  148. package/dist/cjs/packages/pickerview/utils.d.ts +14 -0
  149. package/dist/cjs/packages/pickerview/utils.js +46 -0
  150. package/dist/cjs/packages/popover/popover.d.ts +3 -3
  151. package/dist/cjs/packages/popover/popover.js +2 -2
  152. package/dist/cjs/packages/popover/style/style.css +12 -17
  153. package/dist/cjs/packages/popover/types.d.ts +3 -2
  154. package/dist/cjs/packages/popup/index.d.ts +1 -1
  155. package/dist/cjs/packages/popup/popup.d.ts +2 -25
  156. package/dist/cjs/packages/popup/popup.js +24 -40
  157. package/dist/cjs/packages/popup/style/style.css +5 -10
  158. package/dist/cjs/packages/popup/types.d.ts +25 -0
  159. package/dist/cjs/packages/popup/types.js +4 -0
  160. package/dist/cjs/packages/popup/types.taro.d.ts +8 -0
  161. package/dist/cjs/packages/price/style/style.css +1 -1
  162. package/dist/cjs/packages/progress/progress.js +4 -7
  163. package/dist/cjs/packages/progress/style/style.css +1 -1
  164. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +3 -8
  165. package/dist/cjs/packages/pulltorefresh/style/style.css +4 -4
  166. package/dist/cjs/packages/radio/radio.js +1 -1
  167. package/dist/cjs/packages/radio/style/style.css +19 -19
  168. package/dist/cjs/packages/radiogroup/radiogroup.js +1 -1
  169. package/dist/cjs/packages/radiogroup/style/style.css +6 -6
  170. package/dist/cjs/packages/range/range.js +8 -42
  171. package/dist/cjs/packages/range/style/style.css +9 -9
  172. package/dist/cjs/packages/rate/rate.js +2 -2
  173. package/dist/cjs/packages/resultpage/style/style.css +2 -2
  174. package/dist/cjs/packages/searchbar/style/style.css +5 -5
  175. package/dist/cjs/packages/segmented/segmented.js +1 -1
  176. package/dist/cjs/packages/segmented/style/style.css +2 -2
  177. package/dist/cjs/packages/shortpassword/shortpassword.d.ts +1 -1
  178. package/dist/cjs/packages/shortpassword/shortpassword.js +1 -1
  179. package/dist/cjs/packages/shortpassword/style/style.css +15 -20
  180. package/dist/cjs/packages/sidebar/sidebar.js +3 -3
  181. package/dist/cjs/packages/sidebar/style/style.css +5 -5
  182. package/dist/cjs/packages/sidebaritem/style/style.css +1 -1
  183. package/dist/cjs/packages/sidenavbar/style/style.css +9 -14
  184. package/dist/cjs/packages/sidenavbaritem/style/style.css +2 -2
  185. package/dist/cjs/packages/signature/style/style.css +2 -2
  186. package/dist/cjs/packages/skeleton/style/skeleton.scss +0 -18
  187. package/dist/cjs/packages/skeleton/style/style.css +5 -11
  188. package/dist/cjs/packages/skeleton/style/style.harmony.css +0 -6
  189. package/dist/cjs/packages/step/style/style.css +19 -19
  190. package/dist/cjs/packages/steps/style/style.css +19 -19
  191. package/dist/cjs/packages/sticky/sticky.js +3 -2
  192. package/dist/cjs/packages/subsidenavbar/style/style.css +2 -2
  193. package/dist/cjs/packages/swipe/swipe.js +3 -3
  194. package/dist/cjs/packages/swiper/style/style.css +4 -15
  195. package/dist/cjs/packages/swiper/style/style.harmony.css +0 -11
  196. package/dist/cjs/packages/swiper/style/swiper.scss +0 -11
  197. package/dist/cjs/packages/switch/style/style.css +6 -6
  198. package/dist/cjs/packages/switch/switch.js +1 -1
  199. package/dist/cjs/packages/tabbar/style/style.css +11 -18
  200. package/dist/cjs/packages/tabbar/tabbar.js +1 -1
  201. package/dist/cjs/packages/tabbaritem/style/style.css +10 -17
  202. package/dist/cjs/packages/tabbaritem/style/style.harmony.css +1 -1
  203. package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +2 -10
  204. package/dist/cjs/packages/tabbaritem/tabbaritem.js +9 -11
  205. package/dist/cjs/packages/table/style/style.css +11 -11
  206. package/dist/cjs/packages/table/table.js +1 -1
  207. package/dist/cjs/packages/tabpane/style/style.css +1 -1
  208. package/dist/cjs/packages/tabpane/tabpane.js +2 -2
  209. package/dist/cjs/packages/tabs/style/style.css +25 -32
  210. package/dist/cjs/packages/tabs/style/style.harmony.css +4 -11
  211. package/dist/cjs/packages/tabs/style/tabs.scss +4 -9
  212. package/dist/cjs/packages/tabs/tabs.js +33 -52
  213. package/dist/cjs/packages/tag/style/style.css +5 -5
  214. package/dist/cjs/packages/tag/style/tag.scss +0 -2
  215. package/dist/cjs/packages/textarea/style/style.css +13 -13
  216. package/dist/cjs/packages/textarea/textarea.d.ts +3 -3
  217. package/dist/cjs/packages/textarea/textarea.js +19 -22
  218. package/dist/cjs/packages/timedetail/style/style.css +4 -4
  219. package/dist/cjs/packages/timeselect/style/style.css +14 -19
  220. package/dist/cjs/packages/toast/index.d.ts +2 -1
  221. package/dist/cjs/packages/toast/style/style.css +2 -20
  222. package/dist/cjs/packages/toast/style/style.harmony.css +0 -11
  223. package/dist/cjs/packages/toast/style/toast.scss +0 -13
  224. package/dist/cjs/packages/toast/toast.d.ts +1 -22
  225. package/dist/cjs/packages/toast/toast.js +28 -26
  226. package/dist/cjs/packages/toast/types.d.ts +17 -0
  227. package/dist/cjs/packages/toast/types.js +4 -0
  228. package/dist/cjs/packages/tour/style/style.css +16 -21
  229. package/dist/cjs/packages/tour/tour.d.ts +1 -1
  230. package/dist/cjs/packages/tour/tour.js +1 -1
  231. package/dist/cjs/packages/trendarrow/style/style.css +1 -1
  232. package/dist/cjs/packages/uploader/style/style.css +12 -12
  233. package/dist/cjs/packages/uploader/types.d.ts +2 -1
  234. package/dist/cjs/packages/uploader/uploader.js +1 -1
  235. package/dist/cjs/packages/virtuallist/style/style.css +4 -4
  236. package/dist/cjs/packages/virtuallist/virtuallist.js +2 -2
  237. package/dist/cjs/utils/get-rect-by-taro.js +1 -15
  238. package/dist/cjs/utils/get-system-info.d.ts +19 -0
  239. package/dist/cjs/utils/get-system-info.js +32 -0
  240. package/dist/cjs/utils/platform-taro.d.ts +0 -2
  241. package/dist/cjs/utils/platform-taro.js +0 -21
  242. package/dist/cjs/utils/px-transform.js +0 -1
  243. package/dist/es/{utils → hooks}/use-click-away.js +3 -2
  244. package/dist/es/{utils → hooks}/use-custom-event.js +1 -1
  245. package/dist/es/{utils → hooks}/use-isomprphic-layout-effect.js +1 -1
  246. package/dist/es/{utils → hooks}/use-lock-scroll.js +2 -2
  247. package/dist/es/packages/actionsheet/style/style.css +13 -18
  248. package/dist/es/packages/address/address.d.ts +1 -1
  249. package/dist/es/packages/address/address.js +1 -1
  250. package/dist/es/packages/address/style/style.css +45 -57
  251. package/dist/es/packages/animate/animate.js +5 -6
  252. package/dist/es/packages/animate/style/animate.scss +63 -105
  253. package/dist/es/packages/animate/style/style.css +45 -44
  254. package/dist/es/packages/animate/style/style.harmony.css +45 -44
  255. package/dist/es/packages/animatingnumbers/style/style.css +3 -3
  256. package/dist/es/packages/audio/audio.d.ts +30 -10
  257. package/dist/es/packages/audio/style/style.css +55 -55
  258. package/dist/es/packages/avatar/avatar.js +3 -3
  259. package/dist/es/packages/avatar/style/style.css +2 -2
  260. package/dist/es/packages/avatarcropper/avatarcropper.js +3 -2
  261. package/dist/es/packages/backtop/backtop.js +1 -3
  262. package/dist/es/packages/backtop/style/backtop.scss +0 -4
  263. package/dist/es/packages/backtop/style/style.css +8 -14
  264. package/dist/es/packages/backtop/style/style.harmony.css +0 -3
  265. package/dist/es/packages/badge/badge.js +10 -11
  266. package/dist/es/packages/badge/style/style.css +4 -4
  267. package/dist/es/packages/barrage/style/style.css +2 -2
  268. package/dist/es/packages/button/button.js +22 -15
  269. package/dist/es/packages/button/style/button.scss +3 -3
  270. package/dist/es/packages/button/style/style.css +43 -43
  271. package/dist/es/packages/button/style/style.harmony.css +3 -3
  272. package/dist/es/packages/calendar/calendar.d.ts +27 -135
  273. package/dist/es/packages/calendar/style/calendar.scss +25 -31
  274. package/dist/es/packages/calendar/style/style.css +28 -39
  275. package/dist/es/packages/calendar/style/style.harmony.css +14 -20
  276. package/dist/es/packages/calendarcard/calendarcard.js +1 -1
  277. package/dist/es/packages/calendarcard/style/style.css +8 -8
  278. package/dist/es/packages/calendaritem/calendaritem.js +1 -2
  279. package/dist/es/packages/card/style/style.css +8 -8
  280. package/dist/es/packages/cascader/cascader.d.ts +2 -2
  281. package/dist/es/packages/cascader/cascader.js +2 -2
  282. package/dist/es/packages/cascader/style/style.css +35 -47
  283. package/dist/es/packages/cell/style/style.css +8 -8
  284. package/dist/es/packages/cellgroup/style/style.css +3 -3
  285. package/dist/es/packages/checkbox/checkbox.js +1 -1
  286. package/dist/es/packages/checkbox/style/style.css +29 -29
  287. package/dist/es/packages/checkboxgroup/checkboxgroup.js +1 -1
  288. package/dist/es/packages/checkboxgroup/style/style.css +7 -7
  289. package/dist/es/packages/circleprogress/circleprogress.d.ts +1 -1
  290. package/dist/es/packages/circleprogress/circleprogress.js +1 -1
  291. package/dist/es/packages/circleprogress/style/style.css +3 -3
  292. package/dist/es/packages/col/style/col.scss +0 -1
  293. package/dist/es/packages/collapse/collapse.js +1 -1
  294. package/dist/es/packages/collapse/style/style.css +11 -11
  295. package/dist/es/packages/collapseitem/style/style.css +11 -11
  296. package/dist/es/packages/configprovider/configprovider.js +3 -3
  297. package/dist/es/packages/configprovider/types.d.ts +1 -1
  298. package/dist/es/packages/countdown/style/style.css +7 -7
  299. package/dist/es/packages/countup/style/style.css +3 -3
  300. package/dist/es/packages/datepicker/datepicker.js +1 -1
  301. package/dist/es/packages/datepicker/style/style.css +16 -21
  302. package/dist/es/packages/dialog/content.d.ts +3 -13
  303. package/dist/es/packages/dialog/content.js +16 -6
  304. package/dist/es/packages/dialog/dialog.d.ts +3 -5
  305. package/dist/es/packages/dialog/dialog.js +24 -24
  306. package/dist/es/packages/dialog/index.d.ts +1 -1
  307. package/dist/es/packages/dialog/style/dialog.scss +0 -4
  308. package/dist/es/packages/dialog/style/style.css +49 -57
  309. package/dist/es/packages/dialog/types.d.ts +57 -0
  310. package/dist/es/packages/dialog/types.js +1 -0
  311. package/dist/es/packages/dialog/types.taro.d.ts +10 -0
  312. package/dist/es/packages/divider/style/style.css +4 -4
  313. package/dist/es/packages/drag/drag.js +4 -3
  314. package/dist/es/packages/elevator/elevator.js +1 -1
  315. package/dist/es/packages/elevator/style/style.css +8 -8
  316. package/dist/es/packages/empty/empty.js +1 -3
  317. package/dist/es/packages/empty/style/style.css +3 -3
  318. package/dist/es/packages/fixednav/fixednav.d.ts +2 -55
  319. package/dist/es/packages/fixednav/fixednav.js +15 -34
  320. package/dist/es/packages/fixednav/index.d.ts +1 -2
  321. package/dist/es/packages/fixednav/style/style.css +3 -8
  322. package/dist/es/packages/fixednav/types.d.ts +12 -0
  323. package/dist/es/packages/fixednav/types.taro.d.ts +1 -0
  324. package/dist/es/packages/form/form.d.ts +1 -1
  325. package/dist/es/packages/form/style/style.css +15 -15
  326. package/dist/es/packages/formitem/style/style.css +4 -4
  327. package/dist/es/packages/grid/style/style.css +6 -6
  328. package/dist/es/packages/griditem/style/style.css +5 -5
  329. package/dist/es/packages/hoverbutton/hoverbutton.js +1 -3
  330. package/dist/es/packages/hoverbutton/style/hoverbutton.scss +0 -4
  331. package/dist/es/packages/hoverbutton/style/style.css +4 -7
  332. package/dist/es/packages/hoverbutton/style/style.harmony.css +0 -3
  333. package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +5 -6
  334. package/dist/es/packages/hoverbuttonitem/style/style.css +4 -4
  335. package/dist/es/packages/image/image.js +1 -1
  336. package/dist/es/packages/image/style/style.css +2 -2
  337. package/dist/es/packages/imagepreview/imagepreview.js +1 -1
  338. package/dist/es/packages/imagepreview/style/style.css +11 -27
  339. package/dist/es/packages/indicator/style/style.css +4 -4
  340. package/dist/es/packages/infiniteloading/style/style.css +4 -4
  341. package/dist/es/packages/input/input.js +1 -1
  342. package/dist/es/packages/input/style/input.scss +0 -6
  343. package/dist/es/packages/input/style/style.css +8 -14
  344. package/dist/es/packages/input/style/style.harmony.css +0 -6
  345. package/dist/es/packages/inputnumber/inputnumber.js +7 -17
  346. package/dist/es/packages/inputnumber/style/style.css +7 -7
  347. package/dist/es/packages/loading/style/style.css +2 -2
  348. package/dist/es/packages/lottie/mp.js +4 -3
  349. package/dist/es/packages/menu/style/style.css +8 -13
  350. package/dist/es/packages/menuitem/menuitem.js +6 -5
  351. package/dist/es/packages/menuitem/style/style.css +4 -9
  352. package/dist/es/packages/navbar/style/navbar.scss +1 -1
  353. package/dist/es/packages/navbar/style/style.css +3 -3
  354. package/dist/es/packages/navbar/style/style.harmony.css +1 -1
  355. package/dist/es/packages/noticebar/noticebar.d.ts +1 -1
  356. package/dist/es/packages/notify/notify.js +3 -10
  357. package/dist/es/packages/notify/style/style.css +4 -4
  358. package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  359. package/dist/es/packages/numberkeyboard/style/style.css +13 -18
  360. package/dist/es/packages/nutui.react.build.d.ts +3 -1
  361. package/dist/es/packages/nutui.react.build.js +3 -1
  362. package/dist/es/packages/overlay/index.d.ts +1 -1
  363. package/dist/es/packages/overlay/overlay.d.ts +1 -12
  364. package/dist/es/packages/overlay/overlay.js +23 -36
  365. package/dist/es/packages/overlay/style/overlay.scss +0 -5
  366. package/dist/es/packages/overlay/style/style.css +1 -6
  367. package/dist/es/packages/overlay/style/style.harmony.css +0 -5
  368. package/dist/es/packages/overlay/types.d.ts +11 -0
  369. package/dist/es/packages/overlay/types.js +1 -0
  370. package/dist/es/packages/overlay/types.taro.d.ts +5 -0
  371. package/dist/es/packages/pagination/pagination.js +1 -1
  372. package/dist/es/packages/pagination/style/style.css +7 -7
  373. package/dist/es/packages/picker/picker.d.ts +1 -1
  374. package/dist/es/packages/picker/picker.js +3 -3
  375. package/dist/es/packages/picker/pickerpanel.js +1 -1
  376. package/dist/es/packages/picker/style/style.css +16 -21
  377. package/dist/es/packages/picker/style/style.harmony.css +2 -2
  378. package/dist/es/packages/pickerview/index.d.ts +3 -0
  379. package/dist/es/packages/pickerview/index.js +2 -0
  380. package/dist/es/packages/pickerview/pickerroller.d.ts +7 -0
  381. package/dist/es/packages/pickerview/pickerroller.js +175 -0
  382. package/dist/es/packages/pickerview/pickerview.d.ts +4 -0
  383. package/dist/es/packages/pickerview/pickerview.js +189 -0
  384. package/dist/es/packages/pickerview/style/css.js +1 -0
  385. package/dist/es/packages/pickerview/style/index.js +1 -0
  386. package/dist/es/packages/pickerview/style/pickerview.scss +79 -0
  387. package/dist/es/packages/pickerview/style/style.css +73 -0
  388. package/dist/es/packages/pickerview/style/style.harmony.css +83 -0
  389. package/dist/es/packages/pickerview/types.d.ts +32 -0
  390. package/dist/es/packages/pickerview/types.js +1 -0
  391. package/dist/es/packages/pickerview/utils.d.ts +14 -0
  392. package/dist/es/packages/pickerview/utils.js +28 -0
  393. package/dist/es/packages/popover/popover.d.ts +3 -3
  394. package/dist/es/packages/popover/popover.js +2 -2
  395. package/dist/es/packages/popover/style/style.css +12 -17
  396. package/dist/es/packages/popover/types.d.ts +3 -2
  397. package/dist/es/packages/popup/index.d.ts +1 -1
  398. package/dist/es/packages/popup/popup.d.ts +2 -25
  399. package/dist/es/packages/popup/popup.js +24 -40
  400. package/dist/es/packages/popup/style/style.css +5 -10
  401. package/dist/es/packages/popup/types.d.ts +25 -0
  402. package/dist/es/packages/popup/types.js +1 -0
  403. package/dist/es/packages/popup/types.taro.d.ts +8 -0
  404. package/dist/es/packages/price/style/style.css +1 -1
  405. package/dist/es/packages/progress/progress.js +5 -8
  406. package/dist/es/packages/progress/style/style.css +1 -1
  407. package/dist/es/packages/pulltorefresh/pulltorefresh.js +3 -8
  408. package/dist/es/packages/pulltorefresh/style/style.css +4 -4
  409. package/dist/es/packages/radio/radio.js +1 -1
  410. package/dist/es/packages/radio/style/style.css +19 -19
  411. package/dist/es/packages/radiogroup/radiogroup.js +1 -1
  412. package/dist/es/packages/radiogroup/style/style.css +6 -6
  413. package/dist/es/packages/range/range.js +9 -43
  414. package/dist/es/packages/range/style/style.css +9 -9
  415. package/dist/es/packages/rate/rate.js +2 -2
  416. package/dist/es/packages/resultpage/style/style.css +2 -2
  417. package/dist/es/packages/searchbar/style/style.css +5 -5
  418. package/dist/es/packages/segmented/segmented.js +1 -1
  419. package/dist/es/packages/segmented/style/style.css +2 -2
  420. package/dist/es/packages/shortpassword/shortpassword.d.ts +1 -1
  421. package/dist/es/packages/shortpassword/shortpassword.js +1 -1
  422. package/dist/es/packages/shortpassword/style/style.css +15 -20
  423. package/dist/es/packages/sidebar/sidebar.js +3 -3
  424. package/dist/es/packages/sidebar/style/style.css +5 -5
  425. package/dist/es/packages/sidebaritem/style/style.css +1 -1
  426. package/dist/es/packages/sidenavbar/style/style.css +9 -14
  427. package/dist/es/packages/sidenavbaritem/style/style.css +2 -2
  428. package/dist/es/packages/signature/style/style.css +2 -2
  429. package/dist/es/packages/skeleton/style/skeleton.scss +0 -18
  430. package/dist/es/packages/skeleton/style/style.css +5 -11
  431. package/dist/es/packages/skeleton/style/style.harmony.css +0 -6
  432. package/dist/es/packages/step/style/style.css +19 -19
  433. package/dist/es/packages/steps/style/style.css +19 -19
  434. package/dist/es/packages/sticky/sticky.js +4 -3
  435. package/dist/es/packages/subsidenavbar/style/style.css +2 -2
  436. package/dist/es/packages/swipe/swipe.js +4 -4
  437. package/dist/es/packages/swiper/style/style.css +4 -15
  438. package/dist/es/packages/swiper/style/style.harmony.css +0 -11
  439. package/dist/es/packages/swiper/style/swiper.scss +0 -11
  440. package/dist/es/packages/switch/style/style.css +6 -6
  441. package/dist/es/packages/switch/switch.js +1 -1
  442. package/dist/es/packages/tabbar/style/style.css +11 -18
  443. package/dist/es/packages/tabbar/tabbar.js +1 -1
  444. package/dist/es/packages/tabbaritem/style/style.css +10 -17
  445. package/dist/es/packages/tabbaritem/style/style.harmony.css +1 -1
  446. package/dist/es/packages/tabbaritem/style/tabbaritem.scss +2 -10
  447. package/dist/es/packages/tabbaritem/tabbaritem.js +9 -11
  448. package/dist/es/packages/table/style/style.css +11 -11
  449. package/dist/es/packages/table/table.js +1 -1
  450. package/dist/es/packages/tabpane/style/style.css +1 -1
  451. package/dist/es/packages/tabpane/tabpane.js +2 -2
  452. package/dist/es/packages/tabs/style/style.css +25 -32
  453. package/dist/es/packages/tabs/style/style.harmony.css +4 -11
  454. package/dist/es/packages/tabs/style/tabs.scss +4 -9
  455. package/dist/es/packages/tabs/tabs.js +33 -52
  456. package/dist/es/packages/tag/style/style.css +5 -5
  457. package/dist/es/packages/tag/style/tag.scss +0 -2
  458. package/dist/es/packages/textarea/style/style.css +13 -13
  459. package/dist/es/packages/textarea/textarea.d.ts +3 -3
  460. package/dist/es/packages/textarea/textarea.js +20 -23
  461. package/dist/es/packages/timedetail/style/style.css +4 -4
  462. package/dist/es/packages/timeselect/style/style.css +14 -19
  463. package/dist/es/packages/toast/index.d.ts +2 -1
  464. package/dist/es/packages/toast/style/style.css +2 -20
  465. package/dist/es/packages/toast/style/style.harmony.css +0 -11
  466. package/dist/es/packages/toast/style/toast.scss +0 -13
  467. package/dist/es/packages/toast/toast.d.ts +1 -22
  468. package/dist/es/packages/toast/toast.js +28 -27
  469. package/dist/es/packages/toast/types.d.ts +17 -0
  470. package/dist/es/packages/toast/types.js +1 -0
  471. package/dist/es/packages/tour/style/style.css +16 -21
  472. package/dist/es/packages/tour/tour.d.ts +1 -1
  473. package/dist/es/packages/tour/tour.js +1 -1
  474. package/dist/es/packages/trendarrow/style/style.css +1 -1
  475. package/dist/es/packages/uploader/style/style.css +12 -12
  476. package/dist/es/packages/uploader/types.d.ts +2 -1
  477. package/dist/es/packages/uploader/uploader.js +1 -1
  478. package/dist/es/packages/virtuallist/style/style.css +4 -4
  479. package/dist/es/packages/virtuallist/virtuallist.d.ts +1 -1
  480. package/dist/es/packages/virtuallist/virtuallist.js +2 -2
  481. package/dist/es/utils/get-rect-by-taro.js +1 -15
  482. package/dist/es/utils/get-system-info.d.ts +19 -0
  483. package/dist/es/utils/get-system-info.js +19 -0
  484. package/dist/es/utils/platform-taro.d.ts +0 -2
  485. package/dist/es/utils/platform-taro.js +0 -15
  486. package/dist/es/utils/px-transform.js +1 -2
  487. package/dist/nutui.react.umd.js +946 -1287
  488. package/dist/style.css +1 -1
  489. package/dist/style.scss +45 -44
  490. package/dist/styles/variables.scss +71 -33
  491. package/package.json +1 -80
  492. /package/dist/cjs/{utils → hooks}/use-click-away.d.ts +0 -0
  493. /package/dist/cjs/{utils → hooks}/use-client-rect.d.ts +0 -0
  494. /package/dist/cjs/{utils → hooks}/use-client-rect.js +0 -0
  495. /package/dist/cjs/{utils → hooks}/use-custom-event.d.ts +0 -0
  496. /package/dist/cjs/{utils → hooks}/use-force-update.d.ts +0 -0
  497. /package/dist/cjs/{utils → hooks}/use-force-update.js +0 -0
  498. /package/dist/cjs/{utils → hooks}/use-isomprphic-layout-effect.d.ts +0 -0
  499. /package/dist/cjs/{utils → hooks}/use-lock-scoll-taro.d.ts +0 -0
  500. /package/dist/cjs/{utils → hooks}/use-lock-scoll-taro.js +0 -0
  501. /package/dist/cjs/{utils → hooks}/use-lock-scroll.d.ts +0 -0
  502. /package/dist/cjs/{utils → hooks}/use-memo.d.ts +0 -0
  503. /package/dist/cjs/{utils → hooks}/use-memo.js +0 -0
  504. /package/dist/cjs/{utils → hooks}/use-props-value.d.ts +0 -0
  505. /package/dist/cjs/{utils → hooks}/use-props-value.js +0 -0
  506. /package/dist/cjs/{utils → hooks}/use-ref-state.d.ts +0 -0
  507. /package/dist/cjs/{utils → hooks}/use-ref-state.js +0 -0
  508. /package/dist/cjs/{utils → hooks}/use-refs.d.ts +0 -0
  509. /package/dist/cjs/{utils → hooks}/use-refs.js +0 -0
  510. /package/dist/cjs/{utils → hooks}/use-taro-rect.d.ts +0 -0
  511. /package/dist/cjs/{utils → hooks}/use-taro-rect.js +0 -0
  512. /package/dist/cjs/{utils → hooks}/use-touch.d.ts +0 -0
  513. /package/dist/cjs/{utils → hooks}/use-touch.js +0 -0
  514. /package/dist/cjs/{utils → hooks}/use-uuid.d.ts +0 -0
  515. /package/dist/cjs/{utils → hooks}/use-uuid.js +0 -0
  516. /package/dist/cjs/{utils → hooks}/use-watch.d.ts +0 -0
  517. /package/dist/cjs/{utils → hooks}/use-watch.js +0 -0
  518. /package/dist/es/{utils → hooks}/use-click-away.d.ts +0 -0
  519. /package/dist/es/{utils → hooks}/use-client-rect.d.ts +0 -0
  520. /package/dist/es/{utils → hooks}/use-client-rect.js +0 -0
  521. /package/dist/es/{utils → hooks}/use-custom-event.d.ts +0 -0
  522. /package/dist/es/{utils → hooks}/use-force-update.d.ts +0 -0
  523. /package/dist/es/{utils → hooks}/use-force-update.js +0 -0
  524. /package/dist/es/{utils → hooks}/use-isomprphic-layout-effect.d.ts +0 -0
  525. /package/dist/es/{utils → hooks}/use-lock-scoll-taro.d.ts +0 -0
  526. /package/dist/es/{utils → hooks}/use-lock-scoll-taro.js +0 -0
  527. /package/dist/es/{utils → hooks}/use-lock-scroll.d.ts +0 -0
  528. /package/dist/es/{utils → hooks}/use-memo.d.ts +0 -0
  529. /package/dist/es/{utils → hooks}/use-memo.js +0 -0
  530. /package/dist/es/{utils → hooks}/use-props-value.d.ts +0 -0
  531. /package/dist/es/{utils → hooks}/use-props-value.js +0 -0
  532. /package/dist/es/{utils → hooks}/use-ref-state.d.ts +0 -0
  533. /package/dist/es/{utils → hooks}/use-ref-state.js +0 -0
  534. /package/dist/es/{utils → hooks}/use-refs.d.ts +0 -0
  535. /package/dist/es/{utils → hooks}/use-refs.js +0 -0
  536. /package/dist/es/{utils → hooks}/use-taro-rect.d.ts +0 -0
  537. /package/dist/es/{utils → hooks}/use-taro-rect.js +0 -0
  538. /package/dist/es/{utils → hooks}/use-touch.d.ts +0 -0
  539. /package/dist/es/{utils → hooks}/use-touch.js +0 -0
  540. /package/dist/es/{utils → hooks}/use-uuid.d.ts +0 -0
  541. /package/dist/es/{utils → hooks}/use-uuid.js +0 -0
  542. /package/dist/es/{utils → hooks}/use-watch.d.ts +0 -0
  543. /package/dist/es/{utils → hooks}/use-watch.js +0 -0
@@ -180,7 +180,7 @@
180
180
  svgSrc: S,
181
181
  children: p,
182
182
  onClick: i2,
183
- fallback: o = !n$2.useSvg
183
+ fallback: o = false
184
184
  } = { ...w, ...d }, $ = (s) => {
185
185
  i2 && i2(s);
186
186
  }, l = (s) => s === "" ? "" : isNaN(Number(s)) ? String(s) : s + "px", N2 = () => {
@@ -227,7 +227,7 @@
227
227
  svgSrc: S,
228
228
  children: p,
229
229
  onClick: i2,
230
- fallback: o = !n$2.useSvg
230
+ fallback: o = false
231
231
  } = { ...I, ...d }, $ = (s) => {
232
232
  i2 && i2(s);
233
233
  }, l = (s) => s === "" ? 0 : parseInt(s), N2 = () => {
@@ -396,15 +396,6 @@
396
396
  className: "",
397
397
  style: {}
398
398
  };
399
- var harmonyAndRn = function() {
400
- return [
401
- "rn",
402
- "jdrn",
403
- "harmony",
404
- "jdharmony",
405
- "harmonyhybrid"
406
- ].includes(Taro.getEnv().toLowerCase());
407
- };
408
399
  var harmony = function() {
409
400
  return [
410
401
  "harmony",
@@ -412,19 +403,13 @@
412
403
  "jdharmony"
413
404
  ].includes(Taro.getEnv().toLowerCase());
414
405
  };
415
- var rn = function() {
416
- return [
417
- "rn",
418
- "jdrn"
419
- ].includes(Taro.getEnv().toLowerCase());
420
- };
421
406
  var web = function() {
422
407
  return [
423
408
  "web"
424
409
  ].includes(Taro.getEnv().toLowerCase());
425
410
  };
426
411
  var prefixCls$2 = "nut-button";
427
- var defaultProps$1A = _object_spread_props(_object_spread({}, ComponentDefaults), {
412
+ var defaultProps$1B = _object_spread_props(_object_spread({}, ComponentDefaults), {
428
413
  color: "",
429
414
  type: "default",
430
415
  size: "normal",
@@ -439,7 +424,7 @@
439
424
  }
440
425
  });
441
426
  var Button = /* @__PURE__ */ React.forwardRef(function(props, ref) {
442
- var _ref = _object_spread({}, defaultProps$1A, props), color = _ref.color, shape = _ref.shape, fill = _ref.fill, loading = _ref.loading, disabled = _ref.disabled, type2 = _ref.type, size = _ref.size, block = _ref.block, icon = _ref.icon, rightIcon = _ref.rightIcon, children = _ref.children, className = _ref.className, style = _ref.style, nativeType = _ref.nativeType, onClick = _ref.onClick, rest = _object_without_properties(_ref, [
427
+ var _ref = _object_spread({}, defaultProps$1B, props), color = _ref.color, shape = _ref.shape, fill = _ref.fill, loading = _ref.loading, disabled = _ref.disabled, type2 = _ref.type, size = _ref.size, block = _ref.block, icon = _ref.icon, rightIcon = _ref.rightIcon, children = _ref.children, className = _ref.className, style = _ref.style, nativeType = _ref.nativeType, onClick = _ref.onClick, rest = _object_without_properties(_ref, [
443
428
  "color",
444
429
  "shape",
445
430
  "fill",
@@ -456,7 +441,7 @@
456
441
  "nativeType",
457
442
  "onClick"
458
443
  ]);
459
- var getStyle = React.useCallback(function() {
444
+ var getStyle = React.useMemo(function() {
460
445
  var style2 = {};
461
446
  if (color) {
462
447
  if (props.fill === "outline" || props.fill === "dashed") {
@@ -466,7 +451,7 @@
466
451
  }
467
452
  } else {
468
453
  style2.color = "#fff";
469
- if (harmonyAndRn()) {
454
+ if (harmony()) {
470
455
  style2.backgroundColor = color;
471
456
  }
472
457
  style2.background = color;
@@ -478,7 +463,7 @@
478
463
  color,
479
464
  props.fill
480
465
  ]);
481
- var getContStyle = React.useCallback(function() {
466
+ var getContStyle = React.useMemo(function() {
482
467
  var style2 = {};
483
468
  if (props.color) {
484
469
  if (props.fill === "outline" || props.fill === "dashed") {
@@ -491,17 +476,24 @@
491
476
  }
492
477
  return style2;
493
478
  }, [
494
- color
479
+ color,
480
+ props.fill,
481
+ props.color
495
482
  ]);
496
- var handleClick = function(e2) {
483
+ var handleClick = React.useCallback(function(e2) {
497
484
  if (!loading && !disabled && onClick) {
498
485
  onClick(e2);
499
486
  }
500
- };
487
+ }, [
488
+ loading,
489
+ disabled,
490
+ onClick
491
+ ]);
492
+ var _obj;
493
+ var buttonClassNames = classNames(prefixCls$2, "".concat(prefixCls$2, "-").concat(type2), (_obj = {}, _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2, "-solid"), type2 === "primary" && !props.fill), _define_property(_obj, "".concat(prefixCls$2, "-").concat(fill), props.fill), _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2, "-").concat(fill), props.fill), _define_property(_obj, "".concat(prefixCls$2, "-").concat(size), size), _define_property(_obj, "".concat(prefixCls$2, "-").concat(shape), shape), _define_property(_obj, "".concat(prefixCls$2, "-").concat(shape, "-").concat(size), shape && size), _define_property(_obj, "".concat(prefixCls$2, "-block"), block), _define_property(_obj, "".concat(prefixCls$2, "-disabled"), disabled || loading), _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2).concat(props.fill ? "-".concat(fill) : "", "-disabled"), disabled || loading), _define_property(_obj, "".concat(prefixCls$2, "-loading"), loading), _define_property(_obj, "".concat(prefixCls$2, "-icononly"), !children), _obj), className);
501
494
  if (Taro.getEnv() === "WEB") {
502
495
  rest.type = rest.formType;
503
496
  }
504
- var _obj;
505
497
  return (
506
498
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
507
499
  // @ts-ignore
@@ -509,8 +501,8 @@
509
501
  /* @__PURE__ */ React.createElement(components.Button, _object_spread_props(_object_spread({}, rest), {
510
502
  ref,
511
503
  formType: nativeType,
512
- className: classNames(prefixCls$2, "".concat(prefixCls$2, "-").concat(type2), type2 === "primary" && !props.fill ? "".concat(prefixCls$2, "-").concat(type2, "-solid") : null, props.fill ? "".concat(prefixCls$2, "-").concat(fill) : null, props.fill ? "".concat(prefixCls$2, "-").concat(type2, "-").concat(fill) : null, children ? "" : "".concat(prefixCls$2, "-icononly"), (_obj = {}, _define_property(_obj, "".concat(prefixCls$2, "-").concat(size), size), _define_property(_obj, "".concat(prefixCls$2, "-").concat(shape), shape), _define_property(_obj, "".concat(prefixCls$2, "-").concat(shape, "-").concat(size), shape && size), _define_property(_obj, "".concat(prefixCls$2, "-block"), block), _define_property(_obj, "".concat(prefixCls$2, "-disabled"), disabled || loading), _define_property(_obj, "".concat(prefixCls$2, "-").concat(type2).concat(props.fill ? "-".concat(fill) : "", "-disabled"), disabled || loading), _define_property(_obj, "".concat(prefixCls$2, "-loading"), loading), _obj), className),
513
- style: _object_spread({}, getStyle(), style),
504
+ className: buttonClassNames,
505
+ style: _object_spread({}, getStyle, style),
514
506
  onClick: function(e2) {
515
507
  return handleClick(e2);
516
508
  }
@@ -518,22 +510,22 @@
518
510
  className: "nut-button-wrap"
519
511
  }, loading && /* @__PURE__ */ React.createElement(z, {
520
512
  className: "nut-icon-loading"
521
- }), !loading && icon ? icon : null, children && /* @__PURE__ */ React.createElement(components.View, {
513
+ }), !loading && icon, children && /* @__PURE__ */ React.createElement(components.View, {
522
514
  className: "nut-button-children nut-button-".concat(size, "-children nut-button-").concat(type2, "-children ").concat(!(props.fill || disabled || loading) ? "" : "nut-button-".concat(type2).concat(props.fill ? "-".concat(fill) : "").concat(disabled || loading ? "-disabled" : "")).concat(icon || loading ? " nut-button-text" : "").concat(rightIcon ? " nut-button-text-right" : ""),
523
- style: harmonyAndRn() ? getContStyle() : {}
524
- }, children), rightIcon || null))
515
+ style: harmony() ? getContStyle : {}
516
+ }, children), rightIcon))
525
517
  );
526
518
  });
527
519
  Button.displayName = "NutButton";
528
520
  var CellGroupContext = React.createContext(null);
529
- var defaultProps$1z = _object_spread_props(_object_spread({}, ComponentDefaults), {
521
+ var defaultProps$1A = _object_spread_props(_object_spread({}, ComponentDefaults), {
530
522
  title: "",
531
523
  description: "",
532
524
  divider: true
533
525
  });
534
- var classPrefix$v = "nut-cell-group";
526
+ var classPrefix$u = "nut-cell-group";
535
527
  var CellGroup = function(props) {
536
- var _ref = _object_spread({}, defaultProps$1z, props), children = _ref.children, className = _ref.className, title = _ref.title, description = _ref.description, divider = _ref.divider, rest = _object_without_properties(_ref, [
528
+ var _ref = _object_spread({}, defaultProps$1A, props), children = _ref.children, className = _ref.className, title = _ref.title, description = _ref.description, divider = _ref.divider, rest = _object_without_properties(_ref, [
537
529
  "children",
538
530
  "className",
539
531
  "title",
@@ -541,13 +533,13 @@
541
533
  "divider"
542
534
  ]);
543
535
  return /* @__PURE__ */ React.createElement(components.View, _object_spread({
544
- className: classNames(classPrefix$v, className)
536
+ className: classNames(classPrefix$u, className)
545
537
  }, rest), title ? /* @__PURE__ */ React.createElement(components.View, {
546
- className: "".concat(classPrefix$v, "-title")
538
+ className: "".concat(classPrefix$u, "-title")
547
539
  }, title) : null, description ? /* @__PURE__ */ React.createElement(components.View, {
548
- className: "".concat(classPrefix$v, "-description")
540
+ className: "".concat(classPrefix$u, "-description")
549
541
  }, description) : null, /* @__PURE__ */ React.createElement(components.View, {
550
- className: "".concat(classPrefix$v, "-wrap")
542
+ className: "".concat(classPrefix$u, "-wrap")
551
543
  }, /* @__PURE__ */ React.createElement(CellGroupContext.Provider, {
552
544
  value: {
553
545
  divider,
@@ -561,7 +553,6 @@
561
553
  }))));
562
554
  };
563
555
  CellGroup.displayName = "NutCellGroup";
564
- var INFINITY = 1 / 0;
565
556
  var symbolTag = "[object Symbol]";
566
557
  var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
567
558
  var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
@@ -810,7 +801,7 @@
810
801
  return symbolToString ? symbolToString.call(value2) : "";
811
802
  }
812
803
  var result = value2 + "";
813
- return result == "0" && 1 / value2 == -INFINITY ? "-0" : result;
804
+ return result == "0" && 1 / value2 == -Infinity ? "-0" : result;
814
805
  }
815
806
  function createCompounder(callback) {
816
807
  return function(string2) {
@@ -843,658 +834,78 @@
843
834
  }
844
835
  var lodash_kebabcase = kebabCase;
845
836
  const kebabCase$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_kebabcase);
846
- var lodash_isequal = { exports: {} };
847
- lodash_isequal.exports;
848
- (function(module2, exports2) {
849
- var LARGE_ARRAY_SIZE = 200;
850
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
851
- var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
852
- var MAX_SAFE_INTEGER = 9007199254740991;
853
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag2 = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]";
854
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
855
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
856
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
857
- var reIsUint = /^(?:0|[1-9]\d*)$/;
858
- var typedArrayTags = {};
859
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
860
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
861
- var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
862
- var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
863
- var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
864
- var freeExports = exports2 && !exports2.nodeType && exports2;
865
- var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
866
- var moduleExports = freeModule && freeModule.exports === freeExports;
867
- var freeProcess = moduleExports && freeGlobal2.process;
868
- var nodeUtil = function() {
869
- try {
870
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
871
- } catch (e2) {
872
- }
873
- }();
874
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
875
- function arrayFilter(array2, predicate) {
876
- var index2 = -1, length2 = array2 == null ? 0 : array2.length, resIndex = 0, result = [];
877
- while (++index2 < length2) {
878
- var value2 = array2[index2];
879
- if (predicate(value2, index2, array2)) {
880
- result[resIndex++] = value2;
881
- }
882
- }
883
- return result;
884
- }
885
- function arrayPush(array2, values) {
886
- var index2 = -1, length2 = values.length, offset = array2.length;
887
- while (++index2 < length2) {
888
- array2[offset + index2] = values[index2];
889
- }
890
- return array2;
891
- }
892
- function arraySome(array2, predicate) {
893
- var index2 = -1, length2 = array2 == null ? 0 : array2.length;
894
- while (++index2 < length2) {
895
- if (predicate(array2[index2], index2, array2)) {
896
- return true;
897
- }
898
- }
899
- return false;
900
- }
901
- function baseTimes(n2, iteratee) {
902
- var index2 = -1, result = Array(n2);
903
- while (++index2 < n2) {
904
- result[index2] = iteratee(index2);
905
- }
906
- return result;
907
- }
908
- function baseUnary(func) {
909
- return function(value2) {
910
- return func(value2);
911
- };
912
- }
913
- function cacheHas(cache, key2) {
914
- return cache.has(key2);
915
- }
916
- function getValue2(object2, key2) {
917
- return object2 == null ? void 0 : object2[key2];
918
- }
919
- function mapToArray(map) {
920
- var index2 = -1, result = Array(map.size);
921
- map.forEach(function(value2, key2) {
922
- result[++index2] = [key2, value2];
923
- });
924
- return result;
925
- }
926
- function overArg(func, transform2) {
927
- return function(arg) {
928
- return func(transform2(arg));
929
- };
930
- }
931
- function setToArray(set) {
932
- var index2 = -1, result = Array(set.size);
933
- set.forEach(function(value2) {
934
- result[++index2] = value2;
935
- });
936
- return result;
937
- }
938
- var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto2 = Object.prototype;
939
- var coreJsData = root2["__core-js_shared__"];
940
- var funcToString = funcProto.toString;
941
- var hasOwnProperty = objectProto2.hasOwnProperty;
942
- var maskSrcKey = function() {
943
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
944
- return uid ? "Symbol(src)_1." + uid : "";
945
- }();
946
- var nativeObjectToString = objectProto2.toString;
947
- var reIsNative = RegExp(
948
- "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
949
- );
950
- var Buffer = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array2 = root2.Uint8Array, propertyIsEnumerable = objectProto2.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
951
- var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
952
- var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set = getNative(root2, "Set"), WeakMap2 = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
953
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
954
- var symbolProto2 = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
955
- function Hash(entries) {
956
- var index2 = -1, length2 = entries == null ? 0 : entries.length;
957
- this.clear();
958
- while (++index2 < length2) {
959
- var entry = entries[index2];
960
- this.set(entry[0], entry[1]);
961
- }
962
- }
963
- function hashClear() {
964
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
965
- this.size = 0;
966
- }
967
- function hashDelete(key2) {
968
- var result = this.has(key2) && delete this.__data__[key2];
969
- this.size -= result ? 1 : 0;
970
- return result;
971
- }
972
- function hashGet(key2) {
973
- var data2 = this.__data__;
974
- if (nativeCreate) {
975
- var result = data2[key2];
976
- return result === HASH_UNDEFINED ? void 0 : result;
977
- }
978
- return hasOwnProperty.call(data2, key2) ? data2[key2] : void 0;
979
- }
980
- function hashHas(key2) {
981
- var data2 = this.__data__;
982
- return nativeCreate ? data2[key2] !== void 0 : hasOwnProperty.call(data2, key2);
983
- }
984
- function hashSet(key2, value2) {
985
- var data2 = this.__data__;
986
- this.size += this.has(key2) ? 0 : 1;
987
- data2[key2] = nativeCreate && value2 === void 0 ? HASH_UNDEFINED : value2;
988
- return this;
989
- }
990
- Hash.prototype.clear = hashClear;
991
- Hash.prototype["delete"] = hashDelete;
992
- Hash.prototype.get = hashGet;
993
- Hash.prototype.has = hashHas;
994
- Hash.prototype.set = hashSet;
995
- function ListCache(entries) {
996
- var index2 = -1, length2 = entries == null ? 0 : entries.length;
997
- this.clear();
998
- while (++index2 < length2) {
999
- var entry = entries[index2];
1000
- this.set(entry[0], entry[1]);
1001
- }
1002
- }
1003
- function listCacheClear() {
1004
- this.__data__ = [];
1005
- this.size = 0;
1006
- }
1007
- function listCacheDelete(key2) {
1008
- var data2 = this.__data__, index2 = assocIndexOf(data2, key2);
1009
- if (index2 < 0) {
1010
- return false;
1011
- }
1012
- var lastIndex = data2.length - 1;
1013
- if (index2 == lastIndex) {
1014
- data2.pop();
1015
- } else {
1016
- splice.call(data2, index2, 1);
1017
- }
1018
- --this.size;
1019
- return true;
1020
- }
1021
- function listCacheGet(key2) {
1022
- var data2 = this.__data__, index2 = assocIndexOf(data2, key2);
1023
- return index2 < 0 ? void 0 : data2[index2][1];
1024
- }
1025
- function listCacheHas(key2) {
1026
- return assocIndexOf(this.__data__, key2) > -1;
1027
- }
1028
- function listCacheSet(key2, value2) {
1029
- var data2 = this.__data__, index2 = assocIndexOf(data2, key2);
1030
- if (index2 < 0) {
1031
- ++this.size;
1032
- data2.push([key2, value2]);
1033
- } else {
1034
- data2[index2][1] = value2;
1035
- }
1036
- return this;
1037
- }
1038
- ListCache.prototype.clear = listCacheClear;
1039
- ListCache.prototype["delete"] = listCacheDelete;
1040
- ListCache.prototype.get = listCacheGet;
1041
- ListCache.prototype.has = listCacheHas;
1042
- ListCache.prototype.set = listCacheSet;
1043
- function MapCache(entries) {
1044
- var index2 = -1, length2 = entries == null ? 0 : entries.length;
1045
- this.clear();
1046
- while (++index2 < length2) {
1047
- var entry = entries[index2];
1048
- this.set(entry[0], entry[1]);
1049
- }
1050
- }
1051
- function mapCacheClear() {
1052
- this.size = 0;
1053
- this.__data__ = {
1054
- "hash": new Hash(),
1055
- "map": new (Map2 || ListCache)(),
1056
- "string": new Hash()
1057
- };
1058
- }
1059
- function mapCacheDelete(key2) {
1060
- var result = getMapData(this, key2)["delete"](key2);
1061
- this.size -= result ? 1 : 0;
1062
- return result;
1063
- }
1064
- function mapCacheGet(key2) {
1065
- return getMapData(this, key2).get(key2);
1066
- }
1067
- function mapCacheHas(key2) {
1068
- return getMapData(this, key2).has(key2);
1069
- }
1070
- function mapCacheSet(key2, value2) {
1071
- var data2 = getMapData(this, key2), size = data2.size;
1072
- data2.set(key2, value2);
1073
- this.size += data2.size == size ? 0 : 1;
1074
- return this;
1075
- }
1076
- MapCache.prototype.clear = mapCacheClear;
1077
- MapCache.prototype["delete"] = mapCacheDelete;
1078
- MapCache.prototype.get = mapCacheGet;
1079
- MapCache.prototype.has = mapCacheHas;
1080
- MapCache.prototype.set = mapCacheSet;
1081
- function SetCache(values) {
1082
- var index2 = -1, length2 = values == null ? 0 : values.length;
1083
- this.__data__ = new MapCache();
1084
- while (++index2 < length2) {
1085
- this.add(values[index2]);
1086
- }
1087
- }
1088
- function setCacheAdd(value2) {
1089
- this.__data__.set(value2, HASH_UNDEFINED);
1090
- return this;
1091
- }
1092
- function setCacheHas(value2) {
1093
- return this.__data__.has(value2);
1094
- }
1095
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
1096
- SetCache.prototype.has = setCacheHas;
1097
- function Stack(entries) {
1098
- var data2 = this.__data__ = new ListCache(entries);
1099
- this.size = data2.size;
1100
- }
1101
- function stackClear() {
1102
- this.__data__ = new ListCache();
1103
- this.size = 0;
1104
- }
1105
- function stackDelete(key2) {
1106
- var data2 = this.__data__, result = data2["delete"](key2);
1107
- this.size = data2.size;
1108
- return result;
1109
- }
1110
- function stackGet(key2) {
1111
- return this.__data__.get(key2);
1112
- }
1113
- function stackHas(key2) {
1114
- return this.__data__.has(key2);
1115
- }
1116
- function stackSet(key2, value2) {
1117
- var data2 = this.__data__;
1118
- if (data2 instanceof ListCache) {
1119
- var pairs = data2.__data__;
1120
- if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
1121
- pairs.push([key2, value2]);
1122
- this.size = ++data2.size;
1123
- return this;
1124
- }
1125
- data2 = this.__data__ = new MapCache(pairs);
1126
- }
1127
- data2.set(key2, value2);
1128
- this.size = data2.size;
1129
- return this;
1130
- }
1131
- Stack.prototype.clear = stackClear;
1132
- Stack.prototype["delete"] = stackDelete;
1133
- Stack.prototype.get = stackGet;
1134
- Stack.prototype.has = stackHas;
1135
- Stack.prototype.set = stackSet;
1136
- function arrayLikeKeys(value2, inherited) {
1137
- var isArr = isArray(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value2.length, String) : [], length2 = result.length;
1138
- for (var key2 in value2) {
1139
- if (hasOwnProperty.call(value2, key2) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
1140
- (key2 == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1141
- isBuff && (key2 == "offset" || key2 == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1142
- isType && (key2 == "buffer" || key2 == "byteLength" || key2 == "byteOffset") || // Skip index properties.
1143
- isIndex(key2, length2)))) {
1144
- result.push(key2);
1145
- }
1146
- }
1147
- return result;
1148
- }
1149
- function assocIndexOf(array2, key2) {
1150
- var length2 = array2.length;
1151
- while (length2--) {
1152
- if (eq(array2[length2][0], key2)) {
1153
- return length2;
1154
- }
1155
- }
1156
- return -1;
1157
- }
1158
- function baseGetAllKeys(object2, keysFunc, symbolsFunc) {
1159
- var result = keysFunc(object2);
1160
- return isArray(object2) ? result : arrayPush(result, symbolsFunc(object2));
1161
- }
1162
- function baseGetTag(value2) {
1163
- if (value2 == null) {
1164
- return value2 === void 0 ? undefinedTag : nullTag;
1165
- }
1166
- return symToStringTag && symToStringTag in Object(value2) ? getRawTag(value2) : objectToString2(value2);
1167
- }
1168
- function baseIsArguments(value2) {
1169
- return isObjectLike2(value2) && baseGetTag(value2) == argsTag;
1170
- }
1171
- function baseIsEqual(value2, other, bitmask, customizer, stack) {
1172
- if (value2 === other) {
837
+ var hasElementType = typeof Element !== "undefined";
838
+ var hasMap = typeof Map === "function";
839
+ var hasSet = typeof Set === "function";
840
+ var hasArrayBuffer = typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
841
+ function equal(a2, b2) {
842
+ if (a2 === b2) return true;
843
+ if (a2 && b2 && typeof a2 == "object" && typeof b2 == "object") {
844
+ if (a2.constructor !== b2.constructor) return false;
845
+ var length2, i2, keys;
846
+ if (Array.isArray(a2)) {
847
+ length2 = a2.length;
848
+ if (length2 != b2.length) return false;
849
+ for (i2 = length2; i2-- !== 0; )
850
+ if (!equal(a2[i2], b2[i2])) return false;
1173
851
  return true;
1174
852
  }
1175
- if (value2 == null || other == null || !isObjectLike2(value2) && !isObjectLike2(other)) {
1176
- return value2 !== value2 && other !== other;
1177
- }
1178
- return baseIsEqualDeep(value2, other, bitmask, customizer, baseIsEqual, stack);
1179
- }
1180
- function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack) {
1181
- var objIsArr = isArray(object2), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object2), othTag = othIsArr ? arrayTag : getTag(other);
1182
- objTag = objTag == argsTag ? objectTag : objTag;
1183
- othTag = othTag == argsTag ? objectTag : othTag;
1184
- var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
1185
- if (isSameTag && isBuffer(object2)) {
1186
- if (!isBuffer(other)) {
1187
- return false;
1188
- }
1189
- objIsArr = true;
1190
- objIsObj = false;
1191
- }
1192
- if (isSameTag && !objIsObj) {
1193
- stack || (stack = new Stack());
1194
- return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
1195
- }
1196
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
1197
- var objIsWrapped = objIsObj && hasOwnProperty.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
1198
- if (objIsWrapped || othIsWrapped) {
1199
- var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
1200
- stack || (stack = new Stack());
1201
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
1202
- }
1203
- }
1204
- if (!isSameTag) {
1205
- return false;
1206
- }
1207
- stack || (stack = new Stack());
1208
- return equalObjects(object2, other, bitmask, customizer, equalFunc, stack);
1209
- }
1210
- function baseIsNative(value2) {
1211
- if (!isObject2(value2) || isMasked(value2)) {
1212
- return false;
1213
- }
1214
- var pattern2 = isFunction2(value2) ? reIsNative : reIsHostCtor;
1215
- return pattern2.test(toSource(value2));
1216
- }
1217
- function baseIsTypedArray(value2) {
1218
- return isObjectLike2(value2) && isLength(value2.length) && !!typedArrayTags[baseGetTag(value2)];
1219
- }
1220
- function baseKeys(object2) {
1221
- if (!isPrototype(object2)) {
1222
- return nativeKeys(object2);
1223
- }
1224
- var result = [];
1225
- for (var key2 in Object(object2)) {
1226
- if (hasOwnProperty.call(object2, key2) && key2 != "constructor") {
1227
- result.push(key2);
1228
- }
1229
- }
1230
- return result;
1231
- }
1232
- function equalArrays(array2, other, bitmask, customizer, equalFunc, stack) {
1233
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array2.length, othLength = other.length;
1234
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1235
- return false;
1236
- }
1237
- var stacked = stack.get(array2);
1238
- if (stacked && stack.get(other)) {
1239
- return stacked == other;
1240
- }
1241
- var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
1242
- stack.set(array2, other);
1243
- stack.set(other, array2);
1244
- while (++index2 < arrLength) {
1245
- var arrValue = array2[index2], othValue = other[index2];
1246
- if (customizer) {
1247
- var compared = isPartial ? customizer(othValue, arrValue, index2, other, array2, stack) : customizer(arrValue, othValue, index2, array2, other, stack);
1248
- }
1249
- if (compared !== void 0) {
1250
- if (compared) {
1251
- continue;
1252
- }
1253
- result = false;
1254
- break;
1255
- }
1256
- if (seen) {
1257
- if (!arraySome(other, function(othValue2, othIndex) {
1258
- if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
1259
- return seen.push(othIndex);
1260
- }
1261
- })) {
1262
- result = false;
1263
- break;
1264
- }
1265
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1266
- result = false;
1267
- break;
1268
- }
1269
- }
1270
- stack["delete"](array2);
1271
- stack["delete"](other);
1272
- return result;
1273
- }
1274
- function equalByTag(object2, other, tag, bitmask, customizer, equalFunc, stack) {
1275
- switch (tag) {
1276
- case dataViewTag:
1277
- if (object2.byteLength != other.byteLength || object2.byteOffset != other.byteOffset) {
1278
- return false;
1279
- }
1280
- object2 = object2.buffer;
1281
- other = other.buffer;
1282
- case arrayBufferTag:
1283
- if (object2.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object2), new Uint8Array2(other))) {
1284
- return false;
1285
- }
1286
- return true;
1287
- case boolTag:
1288
- case dateTag:
1289
- case numberTag:
1290
- return eq(+object2, +other);
1291
- case errorTag:
1292
- return object2.name == other.name && object2.message == other.message;
1293
- case regexpTag:
1294
- case stringTag:
1295
- return object2 == other + "";
1296
- case mapTag:
1297
- var convert = mapToArray;
1298
- case setTag:
1299
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
1300
- convert || (convert = setToArray);
1301
- if (object2.size != other.size && !isPartial) {
1302
- return false;
1303
- }
1304
- var stacked = stack.get(object2);
1305
- if (stacked) {
1306
- return stacked == other;
1307
- }
1308
- bitmask |= COMPARE_UNORDERED_FLAG;
1309
- stack.set(object2, other);
1310
- var result = equalArrays(convert(object2), convert(other), bitmask, customizer, equalFunc, stack);
1311
- stack["delete"](object2);
1312
- return result;
1313
- case symbolTag2:
1314
- if (symbolValueOf) {
1315
- return symbolValueOf.call(object2) == symbolValueOf.call(other);
1316
- }
1317
- }
1318
- return false;
1319
- }
1320
- function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
1321
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object2), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
1322
- if (objLength != othLength && !isPartial) {
1323
- return false;
1324
- }
1325
- var index2 = objLength;
1326
- while (index2--) {
1327
- var key2 = objProps[index2];
1328
- if (!(isPartial ? key2 in other : hasOwnProperty.call(other, key2))) {
1329
- return false;
1330
- }
1331
- }
1332
- var stacked = stack.get(object2);
1333
- if (stacked && stack.get(other)) {
1334
- return stacked == other;
1335
- }
1336
- var result = true;
1337
- stack.set(object2, other);
1338
- stack.set(other, object2);
1339
- var skipCtor = isPartial;
1340
- while (++index2 < objLength) {
1341
- key2 = objProps[index2];
1342
- var objValue = object2[key2], othValue = other[key2];
1343
- if (customizer) {
1344
- var compared = isPartial ? customizer(othValue, objValue, key2, other, object2, stack) : customizer(objValue, othValue, key2, object2, other, stack);
1345
- }
1346
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
1347
- result = false;
1348
- break;
1349
- }
1350
- skipCtor || (skipCtor = key2 == "constructor");
1351
- }
1352
- if (result && !skipCtor) {
1353
- var objCtor = object2.constructor, othCtor = other.constructor;
1354
- if (objCtor != othCtor && ("constructor" in object2 && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
1355
- result = false;
1356
- }
1357
- }
1358
- stack["delete"](object2);
1359
- stack["delete"](other);
1360
- return result;
1361
- }
1362
- function getAllKeys(object2) {
1363
- return baseGetAllKeys(object2, keys, getSymbols);
1364
- }
1365
- function getMapData(map, key2) {
1366
- var data2 = map.__data__;
1367
- return isKeyable(key2) ? data2[typeof key2 == "string" ? "string" : "hash"] : data2.map;
1368
- }
1369
- function getNative(object2, key2) {
1370
- var value2 = getValue2(object2, key2);
1371
- return baseIsNative(value2) ? value2 : void 0;
1372
- }
1373
- function getRawTag(value2) {
1374
- var isOwn = hasOwnProperty.call(value2, symToStringTag), tag = value2[symToStringTag];
1375
- try {
1376
- value2[symToStringTag] = void 0;
1377
- var unmasked = true;
1378
- } catch (e2) {
853
+ var it;
854
+ if (hasMap && a2 instanceof Map && b2 instanceof Map) {
855
+ if (a2.size !== b2.size) return false;
856
+ it = a2.entries();
857
+ while (!(i2 = it.next()).done)
858
+ if (!b2.has(i2.value[0])) return false;
859
+ it = a2.entries();
860
+ while (!(i2 = it.next()).done)
861
+ if (!equal(i2.value[1], b2.get(i2.value[0]))) return false;
862
+ return true;
1379
863
  }
1380
- var result = nativeObjectToString.call(value2);
1381
- if (unmasked) {
1382
- if (isOwn) {
1383
- value2[symToStringTag] = tag;
1384
- } else {
1385
- delete value2[symToStringTag];
1386
- }
864
+ if (hasSet && a2 instanceof Set && b2 instanceof Set) {
865
+ if (a2.size !== b2.size) return false;
866
+ it = a2.entries();
867
+ while (!(i2 = it.next()).done)
868
+ if (!b2.has(i2.value[0])) return false;
869
+ return true;
1387
870
  }
1388
- return result;
1389
- }
1390
- var getSymbols = !nativeGetSymbols ? stubArray : function(object2) {
1391
- if (object2 == null) {
1392
- return [];
871
+ if (hasArrayBuffer && ArrayBuffer.isView(a2) && ArrayBuffer.isView(b2)) {
872
+ length2 = a2.length;
873
+ if (length2 != b2.length) return false;
874
+ for (i2 = length2; i2-- !== 0; )
875
+ if (a2[i2] !== b2[i2]) return false;
876
+ return true;
1393
877
  }
1394
- object2 = Object(object2);
1395
- return arrayFilter(nativeGetSymbols(object2), function(symbol) {
1396
- return propertyIsEnumerable.call(object2, symbol);
1397
- });
1398
- };
1399
- var getTag = baseGetTag;
1400
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
1401
- getTag = function(value2) {
1402
- var result = baseGetTag(value2), Ctor = result == objectTag ? value2.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
1403
- if (ctorString) {
1404
- switch (ctorString) {
1405
- case dataViewCtorString:
1406
- return dataViewTag;
1407
- case mapCtorString:
1408
- return mapTag;
1409
- case promiseCtorString:
1410
- return promiseTag;
1411
- case setCtorString:
1412
- return setTag;
1413
- case weakMapCtorString:
1414
- return weakMapTag;
1415
- }
1416
- }
1417
- return result;
1418
- };
1419
- }
1420
- function isIndex(value2, length2) {
1421
- length2 = length2 == null ? MAX_SAFE_INTEGER : length2;
1422
- return !!length2 && (typeof value2 == "number" || reIsUint.test(value2)) && (value2 > -1 && value2 % 1 == 0 && value2 < length2);
1423
- }
1424
- function isKeyable(value2) {
1425
- var type2 = typeof value2;
1426
- return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value2 !== "__proto__" : value2 === null;
1427
- }
1428
- function isMasked(func) {
1429
- return !!maskSrcKey && maskSrcKey in func;
1430
- }
1431
- function isPrototype(value2) {
1432
- var Ctor = value2 && value2.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto2;
1433
- return value2 === proto;
1434
- }
1435
- function objectToString2(value2) {
1436
- return nativeObjectToString.call(value2);
1437
- }
1438
- function toSource(func) {
1439
- if (func != null) {
1440
- try {
1441
- return funcToString.call(func);
1442
- } catch (e2) {
1443
- }
1444
- try {
1445
- return func + "";
1446
- } catch (e2) {
1447
- }
878
+ if (a2.constructor === RegExp) return a2.source === b2.source && a2.flags === b2.flags;
879
+ if (a2.valueOf !== Object.prototype.valueOf && typeof a2.valueOf === "function" && typeof b2.valueOf === "function") return a2.valueOf() === b2.valueOf();
880
+ if (a2.toString !== Object.prototype.toString && typeof a2.toString === "function" && typeof b2.toString === "function") return a2.toString() === b2.toString();
881
+ keys = Object.keys(a2);
882
+ length2 = keys.length;
883
+ if (length2 !== Object.keys(b2).length) return false;
884
+ for (i2 = length2; i2-- !== 0; )
885
+ if (!Object.prototype.hasOwnProperty.call(b2, keys[i2])) return false;
886
+ if (hasElementType && a2 instanceof Element) return false;
887
+ for (i2 = length2; i2-- !== 0; ) {
888
+ if ((keys[i2] === "_owner" || keys[i2] === "__v" || keys[i2] === "__o") && a2.$$typeof) {
889
+ continue;
890
+ }
891
+ if (!equal(a2[keys[i2]], b2[keys[i2]])) return false;
1448
892
  }
1449
- return "";
1450
- }
1451
- function eq(value2, other) {
1452
- return value2 === other || value2 !== value2 && other !== other;
1453
- }
1454
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
1455
- return arguments;
1456
- }()) ? baseIsArguments : function(value2) {
1457
- return isObjectLike2(value2) && hasOwnProperty.call(value2, "callee") && !propertyIsEnumerable.call(value2, "callee");
1458
- };
1459
- var isArray = Array.isArray;
1460
- function isArrayLike(value2) {
1461
- return value2 != null && isLength(value2.length) && !isFunction2(value2);
1462
- }
1463
- var isBuffer = nativeIsBuffer || stubFalse;
1464
- function isEqual2(value2, other) {
1465
- return baseIsEqual(value2, other);
893
+ return true;
1466
894
  }
1467
- function isFunction2(value2) {
1468
- if (!isObject2(value2)) {
895
+ return a2 !== a2 && b2 !== b2;
896
+ }
897
+ var reactFastCompare = function isEqual2(a2, b2) {
898
+ try {
899
+ return equal(a2, b2);
900
+ } catch (error) {
901
+ if ((error.message || "").match(/stack|recursion/i)) {
902
+ console.warn("react-fast-compare cannot handle circular refs");
1469
903
  return false;
1470
904
  }
1471
- var tag = baseGetTag(value2);
1472
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1473
- }
1474
- function isLength(value2) {
1475
- return typeof value2 == "number" && value2 > -1 && value2 % 1 == 0 && value2 <= MAX_SAFE_INTEGER;
1476
- }
1477
- function isObject2(value2) {
1478
- var type2 = typeof value2;
1479
- return value2 != null && (type2 == "object" || type2 == "function");
1480
- }
1481
- function isObjectLike2(value2) {
1482
- return value2 != null && typeof value2 == "object";
1483
- }
1484
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1485
- function keys(object2) {
1486
- return isArrayLike(object2) ? arrayLikeKeys(object2) : baseKeys(object2);
1487
- }
1488
- function stubArray() {
1489
- return [];
905
+ throw error;
1490
906
  }
1491
- function stubFalse() {
1492
- return false;
1493
- }
1494
- module2.exports = isEqual2;
1495
- })(lodash_isequal, lodash_isequal.exports);
1496
- var lodash_isequalExports = lodash_isequal.exports;
1497
- const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(lodash_isequalExports);
907
+ };
908
+ const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(reactFastCompare);
1498
909
  function useMemo(getValue2, condition, shouldUpdate) {
1499
910
  var cacheRef = React__namespace.useRef({});
1500
911
  if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
@@ -1658,7 +1069,7 @@
1658
1069
  errorCanvasTips: "当前环境不支持Canvas"
1659
1070
  }
1660
1071
  };
1661
- var classPrefix$u = "nut-configprovider";
1072
+ var classPrefix$t = "nut-configprovider";
1662
1073
  var defaultConfigRef = {
1663
1074
  current: {
1664
1075
  locale: zhCN,
@@ -1715,7 +1126,7 @@
1715
1126
  return /* @__PURE__ */ React.createElement(ConfigContext.Provider, {
1716
1127
  value: mergedConfig
1717
1128
  }, /* @__PURE__ */ React.createElement(components.View, {
1718
- className: classNames(classPrefix$u, className, "nut-".concat(direction)),
1129
+ className: classNames(classPrefix$t, className, "nut-".concat(direction)),
1719
1130
  style: _object_spread_props(_object_spread({}, cssVarStyle, style), {
1720
1131
  direction
1721
1132
  })
@@ -1724,10 +1135,9 @@
1724
1135
  ConfigProvider.displayName = "NutConfigProvider";
1725
1136
  function pxTransform(value2, radix) {
1726
1137
  if (harmony()) return Taro.pxTransform(value2, 375);
1727
- if (rn()) return value2;
1728
1138
  return "".concat(value2, "px");
1729
1139
  }
1730
- var defaultProps$1y = _object_spread_props(_object_spread({}, ComponentDefaults), {
1140
+ var defaultProps$1z = _object_spread_props(_object_spread({}, ComponentDefaults), {
1731
1141
  title: null,
1732
1142
  description: null,
1733
1143
  extra: null,
@@ -1738,10 +1148,10 @@
1738
1148
  onClick: function(event) {
1739
1149
  }
1740
1150
  });
1741
- var classPrefix$t = "nut-cell";
1151
+ var classPrefix$s = "nut-cell";
1742
1152
  var Cell = function(props) {
1743
1153
  var ctx = React.useContext(CellGroupContext);
1744
- var _$_object_spread = _object_spread({}, defaultProps$1y, props), children = _$_object_spread.children, onClick = _$_object_spread.onClick, title = _$_object_spread.title, description = _$_object_spread.description, extra = _$_object_spread.extra, radius = _$_object_spread.radius, align = _$_object_spread.align, isLast = _$_object_spread.isLast, className = _$_object_spread.className, style = _$_object_spread.style, clickable = _$_object_spread.clickable;
1154
+ var _$_object_spread = _object_spread({}, defaultProps$1z, props), children = _$_object_spread.children, onClick = _$_object_spread.onClick, title = _$_object_spread.title, description = _$_object_spread.description, extra = _$_object_spread.extra, radius = _$_object_spread.radius, align = _$_object_spread.align, isLast = _$_object_spread.isLast, className = _$_object_spread.className, style = _$_object_spread.style, clickable = _$_object_spread.clickable;
1745
1155
  var rtl = useRtl();
1746
1156
  var handleClick = function(event) {
1747
1157
  onClick(event);
@@ -1757,28 +1167,28 @@
1757
1167
  opacity: clickable ? 0.7 : 1
1758
1168
  },
1759
1169
  className: "".concat(classNames([
1760
- classPrefix$t,
1170
+ classPrefix$s,
1761
1171
  className,
1762
- _define_property({}, "".concat(classPrefix$t, "-group-item"), ctx === null || ctx === void 0 ? void 0 : ctx.group)
1763
- ], clickable ? "".concat(classPrefix$t, "-clickable") : "")),
1172
+ _define_property({}, "".concat(classPrefix$s, "-group-item"), ctx === null || ctx === void 0 ? void 0 : ctx.group)
1173
+ ], clickable ? "".concat(classPrefix$s, "-clickable") : "")),
1764
1174
  onClick: function(event) {
1765
1175
  return handleClick(event);
1766
1176
  },
1767
1177
  style: baseStyle
1768
1178
  }, children || /* @__PURE__ */ React.createElement(React.Fragment, null, title || description ? /* @__PURE__ */ React.createElement(components.View, {
1769
- className: "".concat(classPrefix$t, "-left")
1179
+ className: "".concat(classPrefix$s, "-left")
1770
1180
  }, title ? /* @__PURE__ */ React.createElement(components.View, {
1771
- className: "".concat(classPrefix$t, "-title")
1181
+ className: "".concat(classPrefix$s, "-title")
1772
1182
  }, title) : null, description ? /* @__PURE__ */ React.createElement(components.View, {
1773
- className: "".concat(classPrefix$t, "-description")
1183
+ className: "".concat(classPrefix$s, "-description")
1774
1184
  }, description) : null) : null, extra ? /* @__PURE__ */ React.createElement(components.View, {
1775
- className: "".concat(classPrefix$t, "-extra")
1185
+ className: "".concat(classPrefix$s, "-extra")
1776
1186
  }, extra) : null)), (ctx === null || ctx === void 0 ? void 0 : ctx.divider) && !isLast ? /* @__PURE__ */ React.createElement(components.View, {
1777
1187
  className: classNames([
1778
- (_obj = {}, _define_property(_obj, "".concat(classPrefix$t, "-divider"), true), _define_property(_obj, "".concat(classPrefix$t, "-divider-rtl"), rtl), _obj)
1188
+ (_obj = {}, _define_property(_obj, "".concat(classPrefix$s, "-divider"), true), _define_property(_obj, "".concat(classPrefix$s, "-divider-rtl"), rtl), _obj)
1779
1189
  ])
1780
1190
  }, /* @__PURE__ */ React.createElement(components.View, {
1781
- className: "".concat(classPrefix$t, "-divider-inner")
1191
+ className: "".concat(classPrefix$s, "-divider-inner")
1782
1192
  })) : null);
1783
1193
  };
1784
1194
  Cell.displayName = "NutCell";
@@ -1829,14 +1239,14 @@
1829
1239
  function _sliced_to_array(arr, i2) {
1830
1240
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i2) || _unsupported_iterable_to_array(arr, i2) || _non_iterable_rest();
1831
1241
  }
1832
- var defaultProps$1x = {
1242
+ var defaultProps$1y = {
1833
1243
  src: "",
1834
1244
  error: true,
1835
1245
  loading: true
1836
1246
  };
1837
1247
  var Image$1 = function(props) {
1838
1248
  var classPrefix2 = "nut-image";
1839
- var _ref = _object_spread({}, defaultProps$1x, props), className = _ref.className, style = _ref.style, src = _ref.src, width2 = _ref.width, height2 = _ref.height, radius = _ref.radius, error = _ref.error, loading = _ref.loading, onLoad = _ref.onLoad, onError = _ref.onError, rest = _object_without_properties(_ref, [
1249
+ var _ref = _object_spread({}, defaultProps$1y, props), className = _ref.className, style = _ref.style, src = _ref.src, width2 = _ref.width, height2 = _ref.height, radius = _ref.radius, error = _ref.error, loading = _ref.loading, onLoad = _ref.onLoad, onError = _ref.onError, rest = _object_without_properties(_ref, [
1840
1250
  "className",
1841
1251
  "style",
1842
1252
  "src",
@@ -1873,7 +1283,7 @@
1873
1283
  overflow: radius !== void 0 && radius !== null ? "hidden" : "",
1874
1284
  borderRadius: (
1875
1285
  // eslint-disable-next-line no-nested-ternary
1876
- radius !== void 0 && radius != null ? Taro.getEnv() === "RN" ? radius : pxCheck(radius) : ""
1286
+ radius !== void 0 && radius != null ? pxCheck(radius) : ""
1877
1287
  )
1878
1288
  };
1879
1289
  var imgStyle = _object_spread_props(_object_spread({}, style), {
@@ -3743,6 +3153,19 @@
3743
3153
  }
3744
3154
  return root2;
3745
3155
  }
3156
+ var passiveSupported = false;
3157
+ if (canUseDom) {
3158
+ try {
3159
+ var opts = Object.defineProperty({}, "passive", {
3160
+ get: function get() {
3161
+ passiveSupported = true;
3162
+ }
3163
+ });
3164
+ window.addEventListener("test-passive-supported", null, opts);
3165
+ } catch (e2) {
3166
+ console.log(e2);
3167
+ }
3168
+ }
3746
3169
  var totalLockCount = 0;
3747
3170
  var BODY_LOCK_CLASS = "nut-overflow-hidden";
3748
3171
  function getScrollableElement(el) {
@@ -3784,7 +3207,9 @@
3784
3207
  };
3785
3208
  var lock = function() {
3786
3209
  document.addEventListener("touchstart", touch.start);
3787
- document.addEventListener("touchmove", onTouchMove, false);
3210
+ document.addEventListener("touchmove", onTouchMove, passiveSupported ? {
3211
+ passive: false
3212
+ } : false);
3788
3213
  if (!totalLockCount) {
3789
3214
  document.body.classList.add(BODY_LOCK_CLASS);
3790
3215
  }
@@ -3824,23 +3249,15 @@
3824
3249
  closeOnOverlayClick: true,
3825
3250
  visible: false,
3826
3251
  lockScroll: true,
3827
- onClick: function(event) {
3252
+ onClick: function() {
3253
+ },
3254
+ afterShow: function() {
3255
+ },
3256
+ afterClose: function() {
3828
3257
  }
3829
3258
  });
3830
3259
  var Overlay = function(props) {
3831
- var renderHarmony = function renderHarmony2() {
3832
- return innerVisible ? /* @__PURE__ */ React.createElement(components.View, _object_spread_props(_object_spread({
3833
- ref: nodeRef,
3834
- className: classes,
3835
- style: styles
3836
- }, rest), {
3837
- catchMove: lockScroll,
3838
- onClick: handleClick
3839
- }), children) : null;
3840
- };
3841
- var _ref = _object_spread({}, defaultOverlayProps, props), children = _ref.children;
3842
- _ref.zIndex;
3843
- var 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, [
3260
+ 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, [
3844
3261
  "children",
3845
3262
  "zIndex",
3846
3263
  "duration",
@@ -3857,47 +3274,42 @@
3857
3274
  var _useState = _sliced_to_array(React.useState(visible), 2), innerVisible = _useState[0], setInnerVisible = _useState[1];
3858
3275
  var nodeRef = useLockScrollTaro(!!lockScroll && innerVisible);
3859
3276
  React.useEffect(function() {
3860
- if (visible) {
3861
- setInnerVisible(true);
3862
- } else {
3863
- setInnerVisible(false);
3864
- }
3277
+ setInnerVisible(visible);
3865
3278
  }, [
3866
3279
  visible
3867
3280
  ]);
3868
3281
  var classes = classNames(classPrefix2, className);
3869
- var styles = _object_spread({}, style);
3282
+ var styles = _object_spread_props(_object_spread({}, style), {
3283
+ zIndex
3284
+ });
3870
3285
  var handleClick = function(e2) {
3871
3286
  if (closeOnOverlayClick) {
3872
3287
  onClick && onClick(e2);
3873
3288
  }
3874
3289
  };
3875
- var onHandleOpened = function(e2) {
3876
- afterShow && afterShow();
3877
- };
3878
- var onHandleClosed = function(e2) {
3879
- afterClose && afterClose();
3290
+ var renderOverlay = function() {
3291
+ return /* @__PURE__ */ React.createElement(components.View, _object_spread_props(_object_spread({
3292
+ ref: nodeRef,
3293
+ className: classes,
3294
+ style: styles
3295
+ }, rest), {
3296
+ catchMove: lockScroll,
3297
+ onClick: handleClick
3298
+ }), children);
3880
3299
  };
3881
- return /* @__PURE__ */ React.createElement(React.Fragment, null, !harmonyAndRn() ? /* @__PURE__ */ React.createElement(CSSTransition, {
3300
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, !harmony() ? /* @__PURE__ */ React.createElement(CSSTransition, {
3882
3301
  nodeRef,
3883
3302
  classNames: "".concat(classPrefix2, "-slide"),
3884
3303
  unmountOnExit: true,
3885
3304
  timeout: duration,
3886
3305
  in: innerVisible,
3887
- onEntered: onHandleOpened,
3888
- onExited: onHandleClosed
3889
- }, /* @__PURE__ */ React.createElement(components.View, _object_spread_props(_object_spread({
3890
- ref: nodeRef,
3891
- className: classes,
3892
- style: styles
3893
- }, rest), {
3894
- catchMove: lockScroll,
3895
- onClick: handleClick
3896
- }), children)) : renderHarmony());
3306
+ onEntered: afterShow,
3307
+ onExited: afterClose
3308
+ }, renderOverlay()) : innerVisible && renderOverlay());
3897
3309
  };
3898
3310
  Overlay.displayName = "NutOverlay";
3899
3311
  var DataContext$1 = React.createContext({});
3900
- var defaultProps$1w = _object_spread_props(_object_spread({}, ComponentDefaults), {
3312
+ var defaultProps$1x = _object_spread_props(_object_spread({}, ComponentDefaults), {
3901
3313
  span: "24",
3902
3314
  offset: "0",
3903
3315
  gutter: "0",
@@ -3905,7 +3317,7 @@
3905
3317
  isLast: false
3906
3318
  });
3907
3319
  var Col = function(props) {
3908
- var _$_object_spread = _object_spread({}, defaultProps$1w, props), className = _$_object_spread.className, style = _$_object_spread.style, span = _$_object_spread.span, offset = _$_object_spread.offset, children = _$_object_spread.children, isFirst = _$_object_spread.isFirst, isLast = _$_object_spread.isLast, onClick = _$_object_spread.onClick;
3320
+ var _$_object_spread = _object_spread({}, defaultProps$1x, props), className = _$_object_spread.className, style = _$_object_spread.style, span = _$_object_spread.span, offset = _$_object_spread.offset, children = _$_object_spread.children, isFirst = _$_object_spread.isFirst, isLast = _$_object_spread.isLast, onClick = _$_object_spread.onClick;
3909
3321
  var _useState = _sliced_to_array(React.useState(""), 2), colName = _useState[0], setColName = _useState[1];
3910
3322
  var _useState1 = _sliced_to_array(React.useState({}), 2), colStyle = _useState1[0], setColStyle = _useState1[1];
3911
3323
  var gutter = React.useContext(DataContext$1).gutter;
@@ -3941,13 +3353,13 @@
3941
3353
  }, children);
3942
3354
  };
3943
3355
  Col.displayName = "NutCol";
3944
- var defaultProps$1v = _object_spread_props(_object_spread({}, ComponentDefaults), {
3356
+ var defaultProps$1w = _object_spread_props(_object_spread({}, ComponentDefaults), {
3945
3357
  contentPosition: "center",
3946
3358
  direction: "horizontal"
3947
3359
  });
3948
- var classPrefix$s = "nut-divider";
3360
+ var classPrefix$r = "nut-divider";
3949
3361
  var Divider = function(props) {
3950
- var _ref = _object_spread({}, defaultProps$1v, props), children = _ref.children, contentPosition = _ref.contentPosition, style = _ref.style, className = _ref.className, direction = _ref.direction;
3362
+ var _ref = _object_spread({}, defaultProps$1w, props), children = _ref.children, contentPosition = _ref.contentPosition, style = _ref.style, className = _ref.className, direction = _ref.direction;
3951
3363
  _object_without_properties(_ref, [
3952
3364
  "children",
3953
3365
  "contentPosition",
@@ -3957,10 +3369,10 @@
3957
3369
  ]);
3958
3370
  var rtl = useRtl();
3959
3371
  var _obj, _obj1;
3960
- var classes = direction === "horizontal" ? classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$s), true), _define_property(_obj, "".concat(classPrefix$s, "-center"), children), _define_property(_obj, "".concat(classPrefix$s, "-left"), contentPosition === "left"), _define_property(_obj, "".concat(classPrefix$s, "-right"), contentPosition === "right"), _define_property(_obj, "".concat(classPrefix$s, "-rtl"), ([
3372
+ var classes = direction === "horizontal" ? classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$r), true), _define_property(_obj, "".concat(classPrefix$r, "-center"), children), _define_property(_obj, "".concat(classPrefix$r, "-left"), contentPosition === "left"), _define_property(_obj, "".concat(classPrefix$r, "-right"), contentPosition === "right"), _define_property(_obj, "".concat(classPrefix$r, "-rtl"), ([
3961
3373
  "left",
3962
3374
  "right"
3963
- ].includes(contentPosition) || children) && rtl), _obj)) : classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix$s), true), _define_property(_obj1, "".concat(classPrefix$s, "-vertical"), direction === "vertical"), _obj1));
3375
+ ].includes(contentPosition) || children) && rtl), _obj)) : classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix$r), true), _define_property(_obj1, "".concat(classPrefix$r, "-vertical"), direction === "vertical"), _obj1));
3964
3376
  var getClassNames = function(direction2) {
3965
3377
  return "".concat(classes.split(" ").map(function(item) {
3966
3378
  return "".concat(item, "-").concat(direction2);
@@ -3983,7 +3395,7 @@
3983
3395
  }
3984
3396
  };
3985
3397
  const GridContext = React.createContext(context);
3986
- var defaultProps$1u = {
3398
+ var defaultProps$1v = {
3987
3399
  text: "",
3988
3400
  columns: 4,
3989
3401
  gap: 9,
@@ -3993,7 +3405,7 @@
3993
3405
  direction: "vertical"
3994
3406
  };
3995
3407
  var GridItem = function(props) {
3996
- var _ref = _object_spread({}, defaultProps$1u, props), children = _ref.children, style = _ref.style, columns = _ref.columns, index2 = _ref.index, gap = _ref.gap, square = _ref.square, text2 = _ref.text, center = _ref.center, reverse = _ref.reverse, direction = _ref.direction, className = _ref.className, onClick = _ref.onClick;
3408
+ var _ref = _object_spread({}, defaultProps$1v, props), children = _ref.children, style = _ref.style, columns = _ref.columns, index2 = _ref.index, gap = _ref.gap, square = _ref.square, text2 = _ref.text, center = _ref.center, reverse = _ref.reverse, direction = _ref.direction, className = _ref.className, onClick = _ref.onClick;
3997
3409
  _object_without_properties(_ref, [
3998
3410
  "children",
3999
3411
  "style",
@@ -4064,7 +3476,7 @@
4064
3476
  }, text2))));
4065
3477
  };
4066
3478
  GridItem.displayName = "NutGridItem";
4067
- var defaultProps$1t = {
3479
+ var defaultProps$1u = {
4068
3480
  columns: 4,
4069
3481
  gap: 9,
4070
3482
  center: true,
@@ -4073,7 +3485,7 @@
4073
3485
  direction: "vertical"
4074
3486
  };
4075
3487
  var Grid = function(props) {
4076
- var _ref = _object_spread({}, defaultProps$1t, props), children = _ref.children, columns = _ref.columns, gap = _ref.gap, center = _ref.center, square = _ref.square, reverse = _ref.reverse, direction = _ref.direction, style = _ref.style, className = _ref.className, onClick = _ref.onClick, rest = _object_without_properties(_ref, [
3488
+ var _ref = _object_spread({}, defaultProps$1u, props), children = _ref.children, columns = _ref.columns, gap = _ref.gap, center = _ref.center, square = _ref.square, reverse = _ref.reverse, direction = _ref.direction, style = _ref.style, className = _ref.className, onClick = _ref.onClick, rest = _object_without_properties(_ref, [
4077
3489
  "children",
4078
3490
  "columns",
4079
3491
  "gap",
@@ -4127,8 +3539,8 @@
4127
3539
  }, "Layout");
4128
3540
  };
4129
3541
  Layout.displayName = "NutLayout";
4130
- var classPrefix$r = "nut-row";
4131
- var defaultProps$1s = _object_spread_props(_object_spread({}, ComponentDefaults), {
3542
+ var classPrefix$q = "nut-row";
3543
+ var defaultProps$1t = _object_spread_props(_object_spread({}, ComponentDefaults), {
4132
3544
  type: "",
4133
3545
  justify: "start",
4134
3546
  align: "flex-start",
@@ -4136,7 +3548,7 @@
4136
3548
  gutter: "0"
4137
3549
  });
4138
3550
  var Row = function(props) {
4139
- var _$_object_spread = _object_spread({}, defaultProps$1s, props), className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children, type2 = _$_object_spread.type, justify = _$_object_spread.justify, align = _$_object_spread.align, wrap = _$_object_spread.wrap, gutter = _$_object_spread.gutter, onClick = _$_object_spread.onClick;
3551
+ var _$_object_spread = _object_spread({}, defaultProps$1t, props), className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children, type2 = _$_object_spread.type, justify = _$_object_spread.justify, align = _$_object_spread.align, wrap = _$_object_spread.wrap, gutter = _$_object_spread.gutter, onClick = _$_object_spread.onClick;
4140
3552
  var getClass = function(prefix, type3) {
4141
3553
  var classType = type3 ? "nut-row-".concat(prefix, "-").concat(type3) : "";
4142
3554
  if (prefix) return classType;
@@ -4144,7 +3556,7 @@
4144
3556
  return "";
4145
3557
  };
4146
3558
  var getClasses = function() {
4147
- return classNames(classPrefix$r, getClass("", type2), getClass("justify", justify), getClass("align", align), getClass("flex", wrap));
3559
+ return classNames(classPrefix$q, getClass("", type2), getClass("justify", justify), getClass("align", align), getClass("flex", wrap));
4148
3560
  };
4149
3561
  var parentRow = {
4150
3562
  gutter
@@ -4167,11 +3579,11 @@
4167
3579
  };
4168
3580
  Row.displayName = "NutRow";
4169
3581
  var prefixCls$1 = "nut-space";
4170
- var defaultProps$1r = {
3582
+ var defaultProps$1s = {
4171
3583
  direction: "horizontal"
4172
3584
  };
4173
3585
  var Space = function(props) {
4174
- var _$_object_spread = _object_spread({}, defaultProps$1r, props), className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children, wrap = _$_object_spread.wrap, align = _$_object_spread.align, direction = _$_object_spread.direction, justify = _$_object_spread.justify;
3586
+ var _$_object_spread = _object_spread({}, defaultProps$1s, props), className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children, wrap = _$_object_spread.wrap, align = _$_object_spread.align, direction = _$_object_spread.direction, justify = _$_object_spread.justify;
4175
3587
  var rtl = useRtl();
4176
3588
  var _obj;
4177
3589
  var cls = classNames(prefixCls$1, (_obj = {}, _define_property(_obj, "".concat(prefixCls$1, "-").concat(direction), direction), _define_property(_obj, "".concat(prefixCls$1, "-").concat(direction, "-wrap"), wrap), _define_property(_obj, "".concat(prefixCls$1, "-align-").concat(align), align), _define_property(_obj, "".concat(prefixCls$1, "-justify-").concat(justify), justify), _define_property(_obj, "".concat(className), className), _obj));
@@ -4288,6 +3700,12 @@
4288
3700
  var e2 = new Error(message);
4289
3701
  return e2.name = "SuppressedError", e2.error = error, e2.suppressed = suppressed, e2;
4290
3702
  };
3703
+ var getDeviceInfo = function() {
3704
+ return Taro.canIUse("getDeviceInfo") ? Taro.getDeviceInfo() : Taro.getSystemInfoSync();
3705
+ };
3706
+ var getWindowInfo = function() {
3707
+ return Taro.canIUse("getWindowInfo") ? Taro.getWindowInfo() : Taro.getSystemInfoSync();
3708
+ };
4291
3709
  function useWatch(dep, callback) {
4292
3710
  var config2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
4293
3711
  immediate: false
@@ -4368,19 +3786,6 @@
4368
3786
  Promise.resolve(getRect(element))
4369
3787
  ];
4370
3788
  }
4371
- if (rn()) {
4372
- return [
4373
- 2,
4374
- new Promise(function(resolve) {
4375
- element.measure(function(xPos, yPos, measureWidth, measureHeight, pageX, pageY) {
4376
- var rect = makeRect(measureWidth, measureHeight);
4377
- rect.left = pageX;
4378
- rect.top = pageY;
4379
- resolve(rect);
4380
- });
4381
- })
4382
- ];
4383
- }
4384
3789
  return [
4385
3790
  2,
4386
3791
  new Promise(function(resolve, reject) {
@@ -4401,13 +3806,13 @@
4401
3806
  return _ref.apply(this, arguments);
4402
3807
  };
4403
3808
  }();
4404
- var defaultProps$1q = _object_spread_props(_object_spread({}, ComponentDefaults), {
3809
+ var defaultProps$1r = _object_spread_props(_object_spread({}, ComponentDefaults), {
4405
3810
  position: "top",
4406
3811
  zIndex: 900
4407
3812
  });
4408
- var classPrefix$q = "nut-sticky";
3813
+ var classPrefix$p = "nut-sticky";
4409
3814
  var Sticky = function(props) {
4410
- var _ref = _object_spread({}, defaultProps$1q, props), position2 = _ref.position, zIndex = _ref.zIndex, threshold = _ref.threshold;
3815
+ var _ref = _object_spread({}, defaultProps$1r, props), position2 = _ref.position, zIndex = _ref.zIndex, threshold = _ref.threshold;
4411
3816
  _ref.style;
4412
3817
  var children = _ref.children, container = _ref.container, className = _ref.className, onChange = _ref.onChange, rest = _object_without_properties(_ref, [
4413
3818
  "position",
@@ -4529,7 +3934,7 @@
4529
3934
  7
4530
3935
  ];
4531
3936
  case 6:
4532
- windowHeight = Taro.getSystemInfoSync().windowHeight;
3937
+ windowHeight = getWindowInfo().windowHeight;
4533
3938
  setFixed(windowHeight - threshold < curRootRect.bottom);
4534
3939
  _state.label = 7;
4535
3940
  case 7:
@@ -4564,7 +3969,7 @@
4564
3969
  return /* @__PURE__ */ React.createElement("div", _object_spread({
4565
3970
  ref: rootRef,
4566
3971
  style: rootStyle,
4567
- className: classNames(classPrefix$q, className)
3972
+ className: classNames(classPrefix$p, className)
4568
3973
  }, rest), /* @__PURE__ */ React.createElement(components.View, {
4569
3974
  className: classNames("nut-sticky-box", {
4570
3975
  "nut-sticky-fixed": fixed
@@ -4574,10 +3979,10 @@
4574
3979
  }, children));
4575
3980
  };
4576
3981
  Sticky.displayName = "NutSticky";
4577
- var classPrefix$p = "nut-safe-area";
3982
+ var classPrefix$o = "nut-safe-area";
4578
3983
  var SafeArea = function(props) {
4579
3984
  return /* @__PURE__ */ React.createElement(components.View, {
4580
- className: classNames(classPrefix$p, "".concat(classPrefix$p, "-position-").concat(props.position))
3985
+ className: classNames(classPrefix$o, "".concat(classPrefix$o, "-position-").concat(props.position))
4581
3986
  });
4582
3987
  };
4583
3988
  SafeArea.displayName = "NutSafeArea";
@@ -4587,19 +3992,18 @@
4587
3992
  className: "nut-icon"
4588
3993
  }) : icon;
4589
3994
  };
4590
- var defaultProps$1p = _object_spread_props(_object_spread({}, ComponentDefaults), {
3995
+ var defaultProps$1q = _object_spread_props(_object_spread({}, ComponentDefaults), {
4591
3996
  icon: null,
4592
3997
  onClick: function(value2) {
4593
3998
  }
4594
3999
  });
4595
- var classPrefix$o = "nut-hoverbutton-item";
4000
+ var classPrefix$n = "nut-hoverbutton-item";
4596
4001
  var isHarmony = harmony();
4597
- var isNative$1 = harmonyAndRn();
4598
4002
  var HoverButtonItem = function(props) {
4599
- var _$_object_spread = _object_spread({}, defaultProps$1p, props), className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick, children = _$_object_spread.children;
4003
+ var _$_object_spread = _object_spread({}, defaultProps$1q, props), className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick, children = _$_object_spread.children;
4600
4004
  var _useState = _sliced_to_array(React.useState(false), 2), isTouchStart = _useState[0], setTouchStart = _useState[1];
4601
4005
  React.useMemo(function() {
4602
- return isNative$1 ? {
4006
+ return isHarmony ? {
4603
4007
  color: isTouchStart ? "#595959" : "#1A1A1A"
4604
4008
  } : {};
4605
4009
  }, [
@@ -4609,29 +4013,29 @@
4609
4013
  onClick && onClick(event);
4610
4014
  };
4611
4015
  var handleActiveStart = function(event) {
4612
- isNative$1 && setTouchStart(true);
4016
+ isHarmony && setTouchStart(true);
4613
4017
  };
4614
4018
  var handleActiveEnd = function(event) {
4615
- isNative$1 && setTouchStart(false);
4019
+ isHarmony && setTouchStart(false);
4616
4020
  };
4617
4021
  var renderBody = function() {
4618
4022
  if (icon && !children) return /* @__PURE__ */ React.createElement(components.View, {
4619
- className: "".concat(classPrefix$o, "-icon")
4023
+ className: "".concat(classPrefix$n, "-icon")
4620
4024
  }, getIcon(icon));
4621
4025
  if (icon && children) {
4622
4026
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(components.View, {
4623
- className: classNames(_define_property({}, "".concat(classPrefix$o, "-text-icon"), true))
4027
+ className: classNames(_define_property({}, "".concat(classPrefix$n, "-text-icon"), true))
4624
4028
  }), getIcon(icon), /* @__PURE__ */ React.createElement(components.View, {
4625
- className: classNames(_define_property({}, "".concat(classPrefix$o, "-text"), true))
4029
+ className: classNames(_define_property({}, "".concat(classPrefix$n, "-text"), true))
4626
4030
  }, children));
4627
4031
  }
4628
4032
  };
4629
4033
  var _obj;
4630
4034
  return /* @__PURE__ */ React.createElement(components.View, {
4631
4035
  className: classNames([
4632
- "".concat(classPrefix$o, "-container"),
4036
+ "".concat(classPrefix$n, "-container"),
4633
4037
  className
4634
- ], (_obj = {}, _define_property(_obj, "".concat(classPrefix$o, "-container-active"), isNative$1 && isTouchStart), _define_property(_obj, "".concat(classPrefix$o, "-container-harmony"), isHarmony), _define_property(_obj, "".concat(classPrefix$o, "-container-icontext"), icon && children), _obj)),
4038
+ ], (_obj = {}, _define_property(_obj, "".concat(classPrefix$n, "-container-active"), isHarmony && isTouchStart), _define_property(_obj, "".concat(classPrefix$n, "-container-harmony"), isHarmony), _define_property(_obj, "".concat(classPrefix$n, "-container-icontext"), icon && children), _obj)),
4635
4039
  style,
4636
4040
  onTouchStart: handleActiveStart,
4637
4041
  onTouchEnd: handleActiveEnd,
@@ -4641,10 +4045,10 @@
4641
4045
  };
4642
4046
  HoverButtonItem.displayName = "NutHoverButtonItem";
4643
4047
  var UI_BOTTOM_DISTANCE = 60;
4644
- var defaultProps$1o = _object_spread({}, ComponentDefaults);
4645
- var classPrefix$n = "nut-hoverbutton";
4048
+ var defaultProps$1p = _object_spread({}, ComponentDefaults);
4049
+ var classPrefix$m = "nut-hoverbutton";
4646
4050
  var HoverButton = function(props) {
4647
- var _$_object_spread = _object_spread({}, defaultProps$1o, props), children = _$_object_spread.children, zIndex = _$_object_spread.zIndex, tabbarHeight = _$_object_spread.tabbarHeight, className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick;
4051
+ var _$_object_spread = _object_spread({}, defaultProps$1p, props), children = _$_object_spread.children, zIndex = _$_object_spread.zIndex, tabbarHeight = _$_object_spread.tabbarHeight, className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick;
4648
4052
  var rtl = useRtl();
4649
4053
  var baseStyle = _object_spread({}, style);
4650
4054
  if (tabbarHeight) {
@@ -4653,15 +4057,14 @@
4653
4057
  if (typeof zIndex !== "undefined") {
4654
4058
  baseStyle.zIndex = zIndex;
4655
4059
  }
4656
- var _obj;
4657
4060
  return /* @__PURE__ */ React.createElement(components.View, {
4658
4061
  className: classNames([
4659
- "".concat(classPrefix$n, "-container"),
4062
+ "".concat(classPrefix$m, "-container"),
4660
4063
  className
4661
- ], (_obj = {}, _define_property(_obj, "".concat(classPrefix$n, "-container-rtl"), rtl), _define_property(_obj, "".concat(classPrefix$n, "-container-rn"), Taro.getEnv() === "RN"), _obj)),
4064
+ ], _define_property({}, "".concat(classPrefix$m, "-container-rtl"), rtl)),
4662
4065
  style: baseStyle
4663
4066
  }, /* @__PURE__ */ React.createElement(components.View, {
4664
- className: classPrefix$n
4067
+ className: classPrefix$m
4665
4068
  }, children || icon && /* @__PURE__ */ React.createElement(HoverButtonItem, {
4666
4069
  icon,
4667
4070
  onClick
@@ -4671,17 +4074,16 @@
4671
4074
  };
4672
4075
  HoverButton.displayName = "NutHoverButton";
4673
4076
  HoverButton.Item = HoverButtonItem;
4674
- var defaultProps$1n = _object_spread_props(_object_spread({}, ComponentDefaults), {
4077
+ var defaultProps$1o = _object_spread_props(_object_spread({}, ComponentDefaults), {
4675
4078
  threshold: 200,
4676
4079
  zIndex: 900,
4677
4080
  duration: 1e3
4678
4081
  });
4679
4082
  var BackTop = function(props) {
4680
- var _$_object_spread = _object_spread({}, defaultProps$1n, props), children = _$_object_spread.children, threshold = _$_object_spread.threshold, zIndex = _$_object_spread.zIndex, className = _$_object_spread.className, duration = _$_object_spread.duration, icon = _$_object_spread.icon, style = _$_object_spread.style, scrollRes = _$_object_spread.scrollRes, onClick = _$_object_spread.onClick;
4083
+ var _$_object_spread = _object_spread({}, defaultProps$1o, props), children = _$_object_spread.children, threshold = _$_object_spread.threshold, zIndex = _$_object_spread.zIndex, className = _$_object_spread.className, duration = _$_object_spread.duration, icon = _$_object_spread.icon, style = _$_object_spread.style, scrollRes = _$_object_spread.scrollRes, onClick = _$_object_spread.onClick;
4681
4084
  var classPrefix2 = "nut-backtop";
4682
4085
  var _useState = _sliced_to_array(React.useState(false), 2), backTop = _useState[0], setBackTop = _useState[1];
4683
- var _obj;
4684
- var cls = classNames(classPrefix2, (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-show"), backTop), _define_property(_obj, "".concat(classPrefix2, "-rn"), rn()), _obj), className);
4086
+ var cls = classNames(classPrefix2, _define_property({}, "".concat(classPrefix2, "-show"), backTop), className);
4685
4087
  var systemInfo = React.useRef({});
4686
4088
  React.useEffect(function() {
4687
4089
  Taro.getSystemInfo().then(function(res) {
@@ -4760,7 +4162,7 @@
4760
4162
  return idRef.current;
4761
4163
  }
4762
4164
  var elevatorContext = /* @__PURE__ */ React.createContext({});
4763
- var defaultProps$1m = _object_spread_props(_object_spread({}, ComponentDefaults), {
4165
+ var defaultProps$1n = _object_spread_props(_object_spread({}, ComponentDefaults), {
4764
4166
  height: "200px",
4765
4167
  floorKey: "title",
4766
4168
  list: [],
@@ -4771,7 +4173,7 @@
4771
4173
  className: "weapp-elevator"
4772
4174
  });
4773
4175
  var Elevator = function(props) {
4774
- var _ref = _object_spread({}, defaultProps$1m, props), height2 = _ref.height, floorKey = _ref.floorKey, list = _ref.list, sticky = _ref.sticky, spaceHeight = _ref.spaceHeight;
4176
+ var _ref = _object_spread({}, defaultProps$1n, props), height2 = _ref.height, floorKey = _ref.floorKey, list = _ref.list, sticky = _ref.sticky, spaceHeight = _ref.spaceHeight;
4775
4177
  _ref.titleHeight;
4776
4178
  var showKeys = _ref.showKeys, className = _ref.className, style = _ref.style, onItemClick = _ref.onItemClick, onIndexClick = _ref.onIndexClick, children = _ref.children, rest = _object_without_properties(_ref, [
4777
4179
  "height",
@@ -4996,53 +4398,37 @@
4996
4398
  };
4997
4399
  Elevator.displayName = "NutElevator";
4998
4400
  Elevator.Context = elevatorContext;
4999
- var defaultProps$1l = _object_spread_props(_object_spread({}, ComponentDefaults), {
4401
+ var defaultProps$1m = _object_spread_props(_object_spread({}, defaultOverlayProps), {
5000
4402
  activeText: "",
5001
4403
  inactiveText: "",
5002
4404
  type: "right",
4405
+ list: [],
4406
+ overlay: true,
5003
4407
  position: {
5004
4408
  top: "auto",
5005
4409
  bottom: "auto"
4410
+ },
4411
+ zIndex: 200,
4412
+ onChange: function(value2) {
4413
+ },
4414
+ onSelect: function() {
5006
4415
  }
5007
4416
  });
5008
4417
  var FixedNav = function(props) {
5009
4418
  var locale = useConfig().locale;
5010
- var _ref = _object_spread({}, defaultProps$1l, props), className = _ref.className, overlay = _ref.overlay, visible = _ref.visible, list = _ref.list, activeText = _ref.activeText, inactiveText = _ref.inactiveText, position2 = _ref.position, onChange = _ref.onChange, onSelect = _ref.onSelect, type2 = _ref.type, children = _ref.children, style = _ref.style, content2 = _ref.content, rest = _object_without_properties(_ref, [
5011
- "className",
5012
- "overlay",
5013
- "visible",
5014
- "list",
5015
- "activeText",
5016
- "inactiveText",
5017
- "position",
5018
- "onChange",
5019
- "onSelect",
5020
- "type",
5021
- "children",
5022
- "style",
5023
- "content"
5024
- ]);
4419
+ var _$_object_spread = _object_spread({}, defaultProps$1m, props), className = _$_object_spread.className, overlay = _$_object_spread.overlay, visible = _$_object_spread.visible, list = _$_object_spread.list, activeText = _$_object_spread.activeText, inactiveText = _$_object_spread.inactiveText, position2 = _$_object_spread.position, type2 = _$_object_spread.type, children = _$_object_spread.children, style = _$_object_spread.style, content2 = _$_object_spread.content, zIndex = _$_object_spread.zIndex, onChange = _$_object_spread.onChange, onSelect = _$_object_spread.onSelect;
5025
4420
  var classPrefix2 = "nut-fixednav";
5026
4421
  var classes = classNames(classPrefix2, {
5027
4422
  active: visible
5028
4423
  }, type2, className);
5029
- var handleClick = function(item, event) {
5030
- onSelect(item, event);
5031
- };
5032
- var onUpdateValue = function() {
5033
- var value2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !visible;
5034
- onChange(value2);
5035
- };
5036
- return /* @__PURE__ */ React.createElement("div", _object_spread({
4424
+ return /* @__PURE__ */ React.createElement(components.View, {
5037
4425
  className: classes,
5038
4426
  style: _object_spread({}, position2, style)
5039
- }, rest), overlay && /* @__PURE__ */ React.createElement(Overlay, {
4427
+ }, overlay && /* @__PURE__ */ React.createElement(Overlay, {
5040
4428
  visible,
5041
- style: {
5042
- "--nutui-overlay-zIndex": 200
5043
- },
4429
+ zIndex,
5044
4430
  onClick: function() {
5045
- return onUpdateValue(false);
4431
+ return onChange(false);
5046
4432
  }
5047
4433
  }), /* @__PURE__ */ React.createElement(components.View, {
5048
4434
  className: "list"
@@ -5052,7 +4438,7 @@
5052
4438
  return /* @__PURE__ */ React.createElement(components.View, {
5053
4439
  className: "".concat(classPrefix2, "-list-item"),
5054
4440
  onClick: function(event) {
5055
- return handleClick(item, event);
4441
+ return onSelect(item, event);
5056
4442
  },
5057
4443
  key: item.id || index2
5058
4444
  }, /* @__PURE__ */ React.isValidElement(item.icon) ? item.icon : /* @__PURE__ */ React.createElement("img", {
@@ -5066,7 +4452,7 @@
5066
4452
  }))), /* @__PURE__ */ React.createElement(components.View, {
5067
4453
  className: "".concat(classPrefix2, "-btn"),
5068
4454
  onClick: function() {
5069
- return onUpdateValue();
4455
+ return onChange(!visible);
5070
4456
  }
5071
4457
  }, content2 || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(m$1, {
5072
4458
  color: "#fff"
@@ -5075,7 +4461,7 @@
5075
4461
  }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText))));
5076
4462
  };
5077
4463
  FixedNav.displayName = "NutFixedNav";
5078
- var defaultProps$1k = _object_spread_props(_object_spread({}, ComponentDefaults), {
4464
+ var defaultProps$1l = _object_spread_props(_object_spread({}, ComponentDefaults), {
5079
4465
  left: "",
5080
4466
  right: "",
5081
4467
  back: "",
@@ -5085,7 +4471,7 @@
5085
4471
  zIndex: 10
5086
4472
  });
5087
4473
  var NavBar = function(props) {
5088
- var _$_object_spread = _object_spread({}, defaultProps$1k, props), right2 = _$_object_spread.right, left2 = _$_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;
4474
+ var _$_object_spread = _object_spread({}, defaultProps$1l, props), right2 = _$_object_spread.right, left2 = _$_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;
5089
4475
  var classPrefix2 = "nut-navbar";
5090
4476
  var rtl = useRtl();
5091
4477
  var children = Array.isArray(props.children) ? props.children : [
@@ -5135,7 +4521,7 @@
5135
4521
  }, renderWrapper()) : renderWrapper());
5136
4522
  };
5137
4523
  NavBar.displayName = "NutNavBar";
5138
- var defaultProps$1j = _object_spread(_object_spread_props(_object_spread({}, ComponentDefaults), {
4524
+ var defaultProps$1k = _object_spread_props(_object_spread({}, defaultOverlayProps), {
5139
4525
  position: "center",
5140
4526
  transition: "",
5141
4527
  overlayStyle: {},
@@ -5151,16 +4537,16 @@
5151
4537
  },
5152
4538
  onClose: function() {
5153
4539
  },
5154
- onOverlayClick: function(e2) {
4540
+ onOverlayClick: function() {
5155
4541
  return true;
5156
4542
  },
5157
- onCloseIconClick: function(e2) {
4543
+ onCloseIconClick: function() {
5158
4544
  return true;
5159
4545
  }
5160
- }), defaultOverlayProps);
4546
+ });
5161
4547
  var _zIndex = 1100;
5162
4548
  var Popup = function(props) {
5163
- var _$_object_spread = _object_spread({}, defaultProps$1j, props), children = _$_object_spread.children, visible = _$_object_spread.visible, overlay = _$_object_spread.overlay, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, overlayStyle = _$_object_spread.overlayStyle, overlayClassName = _$_object_spread.overlayClassName, zIndex = _$_object_spread.zIndex, lockScroll = _$_object_spread.lockScroll, duration = _$_object_spread.duration, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, left2 = _$_object_spread.left, title = _$_object_spread.title, description = _$_object_spread.description, style = _$_object_spread.style, transition = _$_object_spread.transition, round = _$_object_spread.round, position2 = _$_object_spread.position, className = _$_object_spread.className, destroyOnClose = _$_object_spread.destroyOnClose, portal = _$_object_spread.portal, onOpen = _$_object_spread.onOpen, onClose = _$_object_spread.onClose, onOverlayClick = _$_object_spread.onOverlayClick, onCloseIconClick = _$_object_spread.onCloseIconClick, afterShow = _$_object_spread.afterShow, afterClose = _$_object_spread.afterClose, onClick = _$_object_spread.onClick;
4549
+ var _$_object_spread = _object_spread({}, defaultProps$1k, props), children = _$_object_spread.children, visible = _$_object_spread.visible, overlay = _$_object_spread.overlay, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, overlayStyle = _$_object_spread.overlayStyle, overlayClassName = _$_object_spread.overlayClassName, zIndex = _$_object_spread.zIndex, lockScroll = _$_object_spread.lockScroll, duration = _$_object_spread.duration, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, left2 = _$_object_spread.left, title = _$_object_spread.title, description = _$_object_spread.description, style = _$_object_spread.style, transition = _$_object_spread.transition, round = _$_object_spread.round, position2 = _$_object_spread.position, className = _$_object_spread.className, destroyOnClose = _$_object_spread.destroyOnClose, portal = _$_object_spread.portal, onOpen = _$_object_spread.onOpen, onClose = _$_object_spread.onClose, onOverlayClick = _$_object_spread.onOverlayClick, onCloseIconClick = _$_object_spread.onCloseIconClick, afterShow = _$_object_spread.afterShow, afterClose = _$_object_spread.afterClose, onClick = _$_object_spread.onClick;
5164
4550
  var innerIndex = zIndex || _zIndex;
5165
4551
  var _useState = _sliced_to_array(React.useState(innerIndex), 2), index2 = _useState[0], setIndex = _useState[1];
5166
4552
  var _useState1 = _sliced_to_array(React.useState(visible), 2), innerVisible = _useState1[0], setInnerVisible = _useState1[1];
@@ -5168,17 +4554,12 @@
5168
4554
  var _useState3 = _sliced_to_array(React.useState(""), 2), transitionName = _useState3[0], setTransitionName = _useState3[1];
5169
4555
  var refObject = useLockScrollTaro(innerVisible && lockScroll);
5170
4556
  var classPrefix2 = "nut-popup";
5171
- var baseStyle = {
4557
+ var overlayStyles = _object_spread({}, overlayStyle);
4558
+ var popStyles = _object_spread_props(_object_spread({}, style), {
5172
4559
  zIndex: index2
5173
- };
5174
- var overlayStyles = _object_spread_props(_object_spread({}, overlayStyle), {
5175
- "--nutui-overlay-zIndex": index2
5176
4560
  });
5177
- var popStyles = _object_spread({}, style, baseStyle);
5178
4561
  var _obj;
5179
- var popClassName = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2), true), _define_property(_obj, "".concat(classPrefix2, "-round"), round || position2 === "bottom"), _define_property(_obj, "".concat(classPrefix2, "-").concat(position2), true), _obj), className);
5180
- var _obj1;
5181
- var closeClasses = classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix2, "-title-right"), true), _define_property(_obj1, "".concat(classPrefix2, "-title-right-").concat(closeIconPosition), true), _obj1));
4562
+ var popClassName = classNames(classPrefix2, (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-round"), round || position2 === "bottom"), _define_property(_obj, "".concat(classPrefix2, "-").concat(position2), true), _obj), className);
5182
4563
  var open2 = function() {
5183
4564
  if (!innerVisible) {
5184
4565
  setInnerVisible(true);
@@ -5200,30 +4581,20 @@
5200
4581
  onClose && onClose();
5201
4582
  }
5202
4583
  };
5203
- var onHandleClickOverlay = function(e2) {
4584
+ var handleOverlayClick = function(e2) {
5204
4585
  e2.stopPropagation();
5205
- if (closeOnOverlayClick) {
5206
- var closed = onOverlayClick && onOverlayClick(e2);
5207
- closed && close2();
4586
+ if (closeOnOverlayClick && onOverlayClick(e2)) {
4587
+ close2();
5208
4588
  }
5209
4589
  };
5210
- var onHandleClick = function(e2) {
5211
- onClick && onClick(e2);
5212
- };
5213
- var onHandleClickCloseIcon = function(e2) {
5214
- var closed = onCloseIconClick && onCloseIconClick(e2);
5215
- closed && close2();
5216
- };
5217
- var onHandleOpened = function(e2) {
5218
- afterShow && afterShow();
5219
- };
5220
- var onHandleClosed = function(e2) {
5221
- afterClose && afterClose();
4590
+ var handleCloseIconClick = function(e2) {
4591
+ onCloseIconClick(e2) && close2();
5222
4592
  };
5223
4593
  var renderCloseIcon = function() {
4594
+ var closeClasses = classNames("".concat(classPrefix2, "-title-right"), "".concat(classPrefix2, "-title-right-").concat(closeIconPosition));
5224
4595
  return /* @__PURE__ */ React.createElement(React.Fragment, null, closeable && /* @__PURE__ */ React.createElement(components.View, {
5225
4596
  className: closeClasses,
5226
- onClick: onHandleClickCloseIcon
4597
+ onClick: handleCloseIconClick
5227
4598
  }, /* @__PURE__ */ React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ React.createElement(g$1, null)));
5228
4599
  };
5229
4600
  var renderTitle = function() {
@@ -5252,26 +4623,27 @@
5252
4623
  unmountOnExit: destroyOnClose,
5253
4624
  timeout: duration,
5254
4625
  in: innerVisible,
5255
- onEntered: onHandleOpened,
5256
- onExited: onHandleClosed
4626
+ onEntered: afterShow,
4627
+ onExited: afterClose
5257
4628
  }, /* @__PURE__ */ React.createElement(components.View, {
5258
4629
  ref: refObject,
5259
4630
  style: popStyles,
5260
4631
  className: popClassName,
5261
- onClick: onHandleClick,
4632
+ onClick,
5262
4633
  catchMove: lockScroll
5263
- }, renderTitle(), showChildren ? children : ""));
4634
+ }, renderTitle(), showChildren ? children : null));
5264
4635
  };
5265
4636
  var renderNode = function() {
5266
- return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay ? /* @__PURE__ */ React.createElement(Overlay, {
4637
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay && /* @__PURE__ */ React.createElement(Overlay, {
4638
+ zIndex: index2,
5267
4639
  style: overlayStyles,
5268
4640
  className: overlayClassName,
5269
4641
  visible: innerVisible,
5270
4642
  closeOnOverlayClick,
5271
4643
  lockScroll,
5272
4644
  duration,
5273
- onClick: onHandleClickOverlay
5274
- }) : null, renderPop());
4645
+ onClick: handleOverlayClick
4646
+ }), renderPop());
5275
4647
  };
5276
4648
  React.useEffect(function() {
5277
4649
  visible ? open2() : close2();
@@ -5285,8 +4657,7 @@
5285
4657
  transition
5286
4658
  ]);
5287
4659
  var resolveContainer = function(getContainer) {
5288
- var container = typeof getContainer === "function" ? getContainer() : getContainer;
5289
- return container || document.body;
4660
+ return (typeof getContainer === "function" ? getContainer() : getContainer) || document.body;
5290
4661
  };
5291
4662
  var renderToContainer = function(getContainer, node) {
5292
4663
  if (getContainer) {
@@ -5299,7 +4670,7 @@
5299
4670
  };
5300
4671
  Popup.displayName = "NutPopup";
5301
4672
  var OffsetContext = React.createContext(20);
5302
- var defaultProps$1i = _object_spread_props(_object_spread({}, ComponentDefaults), {
4673
+ var defaultProps$1j = _object_spread_props(_object_spread({}, ComponentDefaults), {
5303
4674
  position: "left",
5304
4675
  width: "80%"
5305
4676
  });
@@ -5308,7 +4679,7 @@
5308
4679
  console.warn("Warning: SideNavBar is deprecated and will be removed in future versions. Please use NewComponent SideBar instead.");
5309
4680
  }, []);
5310
4681
  var classPrefix2 = "nut-sidenavbar";
5311
- var _ref = _object_spread({}, defaultProps$1i, props), title = _ref.title, visible = _ref.visible, width2 = _ref.width, position2 = _ref.position, children = _ref.children, className = _ref.className, onClose = _ref.onClose, indent = _ref.indent, rest = _object_without_properties(_ref, [
4682
+ var _ref = _object_spread({}, defaultProps$1j, props), title = _ref.title, visible = _ref.visible, width2 = _ref.width, position2 = _ref.position, children = _ref.children, className = _ref.className, onClose = _ref.onClose, indent = _ref.indent, rest = _object_without_properties(_ref, [
5312
4683
  "title",
5313
4684
  "visible",
5314
4685
  "width",
@@ -5413,13 +4784,13 @@
5413
4784
  });
5414
4785
  return ret;
5415
4786
  }
5416
- var defaultProps$1h = {
4787
+ var defaultProps$1i = {
5417
4788
  title: "",
5418
4789
  value: "",
5419
4790
  disabled: false
5420
4791
  };
5421
4792
  var SideBarItem = function(props) {
5422
- var _mergeProps = mergeProps(defaultProps$1h, props), children = _mergeProps.children, className = _mergeProps.className, disabled = _mergeProps.disabled;
4793
+ var _mergeProps = mergeProps(defaultProps$1i, props), children = _mergeProps.children, className = _mergeProps.className, disabled = _mergeProps.disabled;
5423
4794
  var classPrefix2 = "nut-sidebaritem";
5424
4795
  var classes = classNames(classPrefix2, {
5425
4796
  active: !disabled && props.active
@@ -5428,13 +4799,13 @@
5428
4799
  className: classes
5429
4800
  }, !disabled && children) : null;
5430
4801
  };
5431
- var defaultProps$1g = _object_spread_props(_object_spread({}, ComponentDefaults), {
4802
+ var defaultProps$1h = _object_spread_props(_object_spread({}, ComponentDefaults), {
5432
4803
  contentDuration: 0,
5433
4804
  sidebarDuration: 0
5434
4805
  });
5435
- var classPrefix$m = "nut-sidebar";
4806
+ var classPrefix$l = "nut-sidebar";
5436
4807
  var SideBar = function(props) {
5437
- var _mergeProps = mergeProps(defaultProps$1g, props), contentDuration = _mergeProps.contentDuration, sidebarDuration = _mergeProps.sidebarDuration, children = _mergeProps.children, onClick = _mergeProps.onClick, onChange = _mergeProps.onChange, className = _mergeProps.className, rest = _object_without_properties(_mergeProps, [
4808
+ var _mergeProps = mergeProps(defaultProps$1h, props), contentDuration = _mergeProps.contentDuration, sidebarDuration = _mergeProps.sidebarDuration, children = _mergeProps.children, onClick = _mergeProps.onClick, onChange = _mergeProps.onChange, className = _mergeProps.className, rest = _object_without_properties(_mergeProps, [
5438
4809
  "contentDuration",
5439
4810
  "sidebarDuration",
5440
4811
  "children",
@@ -5478,8 +4849,8 @@
5478
4849
  }, [
5479
4850
  children
5480
4851
  ]);
5481
- var classes = classNames(classPrefix$m, className);
5482
- var classesTitle = classNames("".concat(classPrefix$m, "-titles"), "".concat(classPrefix$m, "-titles-scrollable"));
4852
+ var classes = classNames(classPrefix$l, className);
4853
+ var classesTitle = classNames("".concat(classPrefix$l, "-titles"), "".concat(classPrefix$l, "-titles-scrollable"));
5483
4854
  var getRect2 = function(selector) {
5484
4855
  return new Promise(function(resolve) {
5485
4856
  Taro.createSelectorQuery().select(selector).boundingClientRect().exec(function() {
@@ -5514,8 +4885,8 @@
5514
4885
  var scrollIntoView = function(index2) {
5515
4886
  requestAniFrame$1(function() {
5516
4887
  Promise.all([
5517
- getRect2("#".concat(classPrefix$m, "-titles-").concat(uuid, " .").concat(classPrefix$m, "-list")),
5518
- getAllRect("#".concat(classPrefix$m, "-titles-").concat(uuid, " .").concat(classPrefix$m, "-titles-item"))
4888
+ getRect2("#".concat(classPrefix$l, "-titles-").concat(uuid, " .").concat(classPrefix$l, "-list")),
4889
+ getAllRect("#".concat(classPrefix$l, "-titles-").concat(uuid, " .").concat(classPrefix$l, "-titles-item"))
5519
4890
  ]).then(function(param) {
5520
4891
  var _param = _sliced_to_array(param, 2), navRect = _param[0], titleRects = _param[1];
5521
4892
  navRectRef.current = navRect;
@@ -5562,10 +4933,10 @@
5562
4933
  scrollTop,
5563
4934
  showScrollbar: false,
5564
4935
  scrollWithAnimation: Taro.getEnv() !== "WEB" ? false : scrollWithAnimation.current,
5565
- id: "".concat(classPrefix$m, "-titles-").concat(uuid),
4936
+ id: "".concat(classPrefix$l, "-titles-").concat(uuid),
5566
4937
  className: classesTitle
5567
4938
  }, /* @__PURE__ */ React.createElement(components.View, {
5568
- className: "".concat(classPrefix$m, "-list"),
4939
+ className: "".concat(classPrefix$l, "-list"),
5569
4940
  ref: navRef
5570
4941
  }, titles.current.map(function(item, index2) {
5571
4942
  var _obj;
@@ -5577,15 +4948,15 @@
5577
4948
  onClick: function(e2) {
5578
4949
  tabChange(item);
5579
4950
  },
5580
- className: classNames("".concat(classPrefix$m, "-titles-item"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$m, "-titles-item-active"), !item.disabled && String(item.value) === String(value2)), _define_property(_obj, "".concat(classPrefix$m, "-titles-item-disabled"), item.disabled), _obj)),
4951
+ className: classNames("".concat(classPrefix$l, "-titles-item"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$l, "-titles-item-active"), !item.disabled && String(item.value) === String(value2)), _define_property(_obj, "".concat(classPrefix$l, "-titles-item-disabled"), item.disabled), _obj)),
5581
4952
  key: item.value
5582
4953
  }, /* @__PURE__ */ React.createElement(components.View, {
5583
- className: classNames("".concat(classPrefix$m, "-ellipsis"), "".concat(classPrefix$m, "-titles-item-text"))
4954
+ className: classNames("".concat(classPrefix$l, "-ellipsis"), "".concat(classPrefix$l, "-titles-item-text"))
5584
4955
  }, item.title));
5585
4956
  }))), /* @__PURE__ */ React.createElement(components.View, {
5586
- className: "".concat(classPrefix$m, "-content-wrap")
4957
+ className: "".concat(classPrefix$l, "-content-wrap")
5587
4958
  }, /* @__PURE__ */ React.createElement(components.View, {
5588
- className: "".concat(classPrefix$m, "-content"),
4959
+ className: "".concat(classPrefix$l, "-content"),
5589
4960
  style: getContentStyle()
5590
4961
  }, React.Children.map(children, function(child, idx) {
5591
4962
  if (!/* @__PURE__ */ React.isValidElement(child)) {
@@ -5625,12 +4996,12 @@
5625
4996
  onClick: clickFn
5626
4997
  }, rest), title);
5627
4998
  };
5628
- var defaultProps$1f = {
4999
+ var defaultProps$1g = {
5629
5000
  open: true
5630
5001
  };
5631
5002
  var SubSideNavBar = function(props) {
5632
5003
  var classPrefix2 = "nut-subsidenavbar";
5633
- var _ref = _object_spread({}, defaultProps$1f, props), title = _ref.title, value2 = _ref.value, children = _ref.children, onClick = _ref.onClick, open2 = _ref.open, rest = _object_without_properties(_ref, [
5004
+ var _ref = _object_spread({}, defaultProps$1g, props), title = _ref.title, value2 = _ref.value, children = _ref.children, onClick = _ref.onClick, open2 = _ref.open, rest = _object_without_properties(_ref, [
5634
5005
  "title",
5635
5006
  "value",
5636
5007
  "children",
@@ -5702,7 +5073,7 @@
5702
5073
  "@swc/helpers - typeof";
5703
5074
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5704
5075
  }
5705
- var defaultProps$1e = _object_spread_props(_object_spread({}, ComponentDefaults), {
5076
+ var defaultProps$1f = _object_spread_props(_object_spread({}, ComponentDefaults), {
5706
5077
  value: "",
5707
5078
  dot: false,
5708
5079
  max: 99,
@@ -5712,9 +5083,9 @@
5712
5083
  size: "large"
5713
5084
  });
5714
5085
  var Badge = function(props) {
5715
- var content2 = function content3() {
5716
- if (dot || (typeof value2 === "undefined" ? "undefined" : _type_of(value2)) === "object" || value2 === 0) return null;
5717
- if (typeof value2 === "number" && typeof max === "number") {
5086
+ var getContent = function getContent2() {
5087
+ if (dot || value2 === 0) return null;
5088
+ if (typeof value2 === "number") {
5718
5089
  return max < value2 ? "".concat(max, "+") : "".concat(value2);
5719
5090
  }
5720
5091
  return value2;
@@ -5730,14 +5101,14 @@
5730
5101
  };
5731
5102
  var _this;
5732
5103
  var rtl = useRtl();
5733
- var _$_object_spread = _object_spread({}, defaultProps$1e, props), className = _$_object_spread.className, style = _$_object_spread.style, value2 = _$_object_spread.value, max = _$_object_spread.max, children = _$_object_spread.children, dot = _$_object_spread.dot, top = _$_object_spread.top, right2 = _$_object_spread.right, fill = _$_object_spread.fill, size = _$_object_spread.size;
5104
+ var _$_object_spread = _object_spread({}, defaultProps$1f, props), className = _$_object_spread.className, style = _$_object_spread.style, value2 = _$_object_spread.value, max = _$_object_spread.max, children = _$_object_spread.children, dot = _$_object_spread.dot, top = _$_object_spread.top, right2 = _$_object_spread.right, fill = _$_object_spread.fill, size = _$_object_spread.size;
5734
5105
  var classPrefix2 = "nut-badge";
5735
5106
  var isHarmony2 = harmony();
5736
5107
  var classes = classNames(classPrefix2, className);
5737
5108
  var badgeRef = React.useRef(null);
5738
5109
  var _useState = _sliced_to_array(React.useState({}), 2), contentStyle = _useState[0], setContentStyle = _useState[1];
5739
5110
  var _obj;
5740
- var contentClasses = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-sup"), isNumber() || isString() || dot), _define_property(_obj, "".concat(classPrefix2, "-number"), isNumber()), _define_property(_obj, "".concat(classPrefix2, "-one"), typeof content2() === "string" && ((_this = "".concat(content2())) === null || _this === void 0 ? void 0 : _this.length) === 1), _define_property(_obj, "".concat(classPrefix2, "-dot"), dot), _define_property(_obj, "".concat(classPrefix2, "-dot-").concat(size), dot), _define_property(_obj, "".concat(classPrefix2, "-").concat(fill), fill === "outline"), _define_property(_obj, "".concat(classPrefix2, "-content"), children), _obj));
5111
+ var contentClasses = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-sup"), isNumber() || isString() || dot), _define_property(_obj, "".concat(classPrefix2, "-number"), isNumber()), _define_property(_obj, "".concat(classPrefix2, "-one"), typeof getContent() === "string" && ((_this = "".concat(getContent())) === null || _this === void 0 ? void 0 : _this.length) === 1), _define_property(_obj, "".concat(classPrefix2, "-dot"), dot), _define_property(_obj, "".concat(classPrefix2, "-dot-").concat(size), dot), _define_property(_obj, "".concat(classPrefix2, "-").concat(fill), fill === "outline"), _define_property(_obj, "".concat(classPrefix2, "-content"), children), _obj));
5741
5112
  React.useEffect(function() {
5742
5113
  if (badgeRef.current) {
5743
5114
  getPositionStyle();
@@ -5745,12 +5116,11 @@
5745
5116
  }, []);
5746
5117
  var getPositionStyle = /* @__PURE__ */ function() {
5747
5118
  var _ref = _async_to_generator(function() {
5748
- var style2, dir;
5119
+ var style2;
5749
5120
  return __generator(this, function(_state) {
5750
- style2 = {};
5751
- style2.top = pxTransform(Number(top) || 0);
5752
- dir = rtl ? "left" : "right";
5753
- style2[dir] = isHarmony2 ? pxTransform(Number(right2)) : "".concat(Number(right2) || 0, "px");
5121
+ style2 = _define_property({
5122
+ top: pxTransform(Number(top) || 0)
5123
+ }, rtl ? "left" : "right", isHarmony2 ? pxTransform(Number(right2)) : "".concat(Number(right2) || 0, "px"));
5754
5124
  setContentStyle(style2);
5755
5125
  return [
5756
5126
  2
@@ -5769,10 +5139,10 @@
5769
5139
  }, isIcon() && /* @__PURE__ */ React.createElement(components.View, {
5770
5140
  className: classNames("".concat(classPrefix2, "-content"), (_obj1 = {}, _define_property(_obj1, "".concat(classPrefix2, "-icon"), true), _define_property(_obj1, "".concat(classPrefix2, "-icon-rtl"), rtl), _obj1)),
5771
5141
  style: contentStyle
5772
- }, value2), children, !isIcon() && /* @__PURE__ */ React.createElement(components.View, {
5142
+ }, value2), children, !isIcon() && (getContent() || dot) && /* @__PURE__ */ React.createElement(components.View, {
5773
5143
  className: contentClasses,
5774
5144
  style: contentStyle
5775
- }, content2()));
5145
+ }, getContent()));
5776
5146
  };
5777
5147
  Badge.displayName = "NutBadge";
5778
5148
  const TabbarContext = React.createContext(null);
@@ -5784,7 +5154,7 @@
5784
5154
  }
5785
5155
  return maybeElement;
5786
5156
  }
5787
- var defaultProps$1d = _object_spread_props(_object_spread({}, ComponentDefaults), {
5157
+ var defaultProps$1e = _object_spread_props(_object_spread({}, ComponentDefaults), {
5788
5158
  title: "",
5789
5159
  icon: null,
5790
5160
  value: "",
@@ -5795,7 +5165,7 @@
5795
5165
  });
5796
5166
  var TabbarItem = function(props) {
5797
5167
  var ctx = React.useContext(TabbarContext);
5798
- var _ref = _object_spread({}, defaultProps$1d, props), className = _ref.className, style = _ref.style, title = _ref.title, icon = _ref.icon, value2 = _ref.value, dot = _ref.dot, max = _ref.max, top = _ref.top, right2 = _ref.right, index2 = _ref.index, rest = _object_without_properties(_ref, [
5168
+ var _ref = _object_spread({}, defaultProps$1e, props), className = _ref.className, style = _ref.style, title = _ref.title, icon = _ref.icon, value2 = _ref.value, dot = _ref.dot, max = _ref.max, top = _ref.top, right2 = _ref.right, index2 = _ref.index, rest = _object_without_properties(_ref, [
5799
5169
  "className",
5800
5170
  "style",
5801
5171
  "title",
@@ -5820,6 +5190,14 @@
5820
5190
  right: right2,
5821
5191
  color: ctx === null || ctx === void 0 ? void 0 : ctx.activeColor
5822
5192
  };
5193
+ var renderTitleText = function() {
5194
+ return title && /* @__PURE__ */ React.createElement(components.View, {
5195
+ className: titleClass,
5196
+ style: {
5197
+ color: active2 ? ctx === null || ctx === void 0 ? void 0 : ctx.activeColor : ctx === null || ctx === void 0 ? void 0 : ctx.inactiveColor
5198
+ }
5199
+ }, title);
5200
+ };
5823
5201
  return /* @__PURE__ */ React.createElement(components.View, _object_spread({
5824
5202
  className: tabbarItemClass,
5825
5203
  style: _object_spread({
@@ -5830,19 +5208,9 @@
5830
5208
  }
5831
5209
  }, rest), icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, badgeProps, /* @__PURE__ */ React.createElement(components.View, {
5832
5210
  className: boxPrefix
5833
- }, addColorForHarmony(icon, active2 ? ctx === null || ctx === void 0 ? void 0 : ctx.activeColor : ctx === null || ctx === void 0 ? void 0 : ctx.inactiveColor))), /* @__PURE__ */ React.createElement(components.View, {
5834
- className: titleClass,
5835
- style: {
5836
- color: active2 ? ctx === null || ctx === void 0 ? void 0 : ctx.activeColor : ctx === null || ctx === void 0 ? void 0 : ctx.inactiveColor
5837
- }
5838
- }, title)) : /* @__PURE__ */ React.createElement(Badge, badgeProps, /* @__PURE__ */ React.createElement(components.View, {
5839
- className: titleClass,
5840
- style: {
5841
- color: active2 ? ctx === null || ctx === void 0 ? void 0 : ctx.activeColor : ctx === null || ctx === void 0 ? void 0 : ctx.inactiveColor
5842
- }
5843
- }, title)));
5211
+ }, addColorForHarmony(icon, active2 ? ctx === null || ctx === void 0 ? void 0 : ctx.activeColor : ctx === null || ctx === void 0 ? void 0 : ctx.inactiveColor))), renderTitleText()) : /* @__PURE__ */ React.createElement(Badge, badgeProps, renderTitleText()));
5844
5212
  };
5845
- var defaultProps$1c = _object_spread_props(_object_spread({}, ComponentDefaults), {
5213
+ var defaultProps$1d = _object_spread_props(_object_spread({}, ComponentDefaults), {
5846
5214
  defaultValue: 0,
5847
5215
  fixed: false,
5848
5216
  inactiveColor: "",
@@ -5852,7 +5220,7 @@
5852
5220
  }
5853
5221
  });
5854
5222
  var Tabbar = function(props) {
5855
- var _$_object_spread = _object_spread({}, defaultProps$1c, props), children = _$_object_spread.children, defaultValue = _$_object_spread.defaultValue, value2 = _$_object_spread.value, fixed = _$_object_spread.fixed, activeColor = _$_object_spread.activeColor, inactiveColor = _$_object_spread.inactiveColor, safeArea = _$_object_spread.safeArea, className = _$_object_spread.className, style = _$_object_spread.style, onSwitch = _$_object_spread.onSwitch;
5223
+ var _$_object_spread = _object_spread({}, defaultProps$1d, props), children = _$_object_spread.children, defaultValue = _$_object_spread.defaultValue, value2 = _$_object_spread.value, fixed = _$_object_spread.fixed, activeColor = _$_object_spread.activeColor, inactiveColor = _$_object_spread.inactiveColor, safeArea = _$_object_spread.safeArea, className = _$_object_spread.className, style = _$_object_spread.style, onSwitch = _$_object_spread.onSwitch;
5856
5224
  var classPrefix2 = "nut-tabbar";
5857
5225
  var _usePropsValue = _sliced_to_array(usePropsValue({
5858
5226
  value: value2,
@@ -5883,22 +5251,22 @@
5883
5251
  };
5884
5252
  Tabbar.displayName = "NutTabbar";
5885
5253
  Tabbar.Item = TabbarItem;
5886
- var defaultProps$1b = {
5254
+ var defaultProps$1c = {
5887
5255
  title: "",
5888
5256
  value: "",
5889
5257
  disabled: false
5890
5258
  };
5891
5259
  var TabPane = function(props) {
5892
- var _$_object_spread = _object_spread({}, defaultProps$1b, props), children = _$_object_spread.children, autoHeightClassName = _$_object_spread.autoHeightClassName, className = _$_object_spread.className, disabled = _$_object_spread.disabled;
5260
+ var _$_object_spread = _object_spread({}, defaultProps$1c, props), children = _$_object_spread.children, autoHeightClassName = _$_object_spread.autoHeightClassName, className = _$_object_spread.className, disabled = _$_object_spread.disabled;
5893
5261
  var classPrefix2 = "nut-tabpane";
5894
5262
  var classes = classNames(classPrefix2, {
5895
5263
  active: !disabled && props.active
5896
5264
  }, autoHeightClassName, className);
5897
- return children ? /* @__PURE__ */ React.createElement(components.View, {
5265
+ return children && /* @__PURE__ */ React.createElement(components.View, {
5898
5266
  className: classes
5899
- }, !disabled && children) : null;
5267
+ }, !disabled && children);
5900
5268
  };
5901
- var defaultProps$1a = _object_spread_props(_object_spread({}, ComponentDefaults), {
5269
+ var defaultProps$1b = _object_spread_props(_object_spread({}, ComponentDefaults), {
5902
5270
  tabStyle: {},
5903
5271
  activeColor: "",
5904
5272
  direction: "horizontal",
@@ -5906,10 +5274,10 @@
5906
5274
  duration: 300,
5907
5275
  autoHeight: false
5908
5276
  });
5909
- var classPrefix$l = "nut-tabs";
5277
+ var classPrefix$k = "nut-tabs";
5910
5278
  var Tabs = function(props) {
5911
5279
  var rtl = useRtl();
5912
- var _ref = _object_spread({}, defaultProps$1a, props), activeColor = _ref.activeColor, tabStyle = _ref.tabStyle, direction = _ref.direction, activeType = _ref.activeType, duration = _ref.duration, align = _ref.align, title = _ref.title, name2 = _ref.name, children = _ref.children, onClick = _ref.onClick, onChange = _ref.onChange, className = _ref.className, autoHeight = _ref.autoHeight, outerValue = _ref.value, outerDefaultValue = _ref.defaultValue, rest = _object_without_properties(_ref, [
5280
+ var _ref = _object_spread({}, defaultProps$1b, props), activeColor = _ref.activeColor, tabStyle = _ref.tabStyle, direction = _ref.direction, activeType = _ref.activeType, duration = _ref.duration, align = _ref.align, title = _ref.title, name2 = _ref.name, children = _ref.children, onClick = _ref.onClick, onChange = _ref.onChange, className = _ref.className, autoHeight = _ref.autoHeight, outerValue = _ref.value, outerDefaultValue = _ref.defaultValue, rest = _object_without_properties(_ref, [
5913
5281
  "activeColor",
5914
5282
  "tabStyle",
5915
5283
  "direction",
@@ -5930,7 +5298,6 @@
5930
5298
  var _usePropsValue = _sliced_to_array(usePropsValue({
5931
5299
  value: outerValue,
5932
5300
  defaultValue: outerDefaultValue,
5933
- finalValue: 0,
5934
5301
  onChange
5935
5302
  }), 2), value2 = _usePropsValue[0], setValue = _usePropsValue[1];
5936
5303
  var titleItemsRef = React.useRef([]);
@@ -5938,7 +5305,7 @@
5938
5305
  var titles2 = [];
5939
5306
  React.Children.forEach(children, function(child, idx) {
5940
5307
  if (/* @__PURE__ */ React.isValidElement(child)) {
5941
- var _$props = child === null || child === void 0 ? void 0 : child.props;
5308
+ var _$props = child.props;
5942
5309
  if ((_$props === null || _$props === void 0 ? void 0 : _$props.title) || (_$props === null || _$props === void 0 ? void 0 : _$props.value)) {
5943
5310
  titles2.push({
5944
5311
  title: _$props.title,
@@ -5968,13 +5335,9 @@
5968
5335
  }, [
5969
5336
  children
5970
5337
  ]);
5971
- var classes = classNames(classPrefix$l, "".concat(classPrefix$l, "-").concat(direction), className);
5338
+ var classes = classNames(classPrefix$k, "".concat(classPrefix$k, "-").concat(direction), className);
5972
5339
  var _obj;
5973
- var classesTitle = classNames("".concat(classPrefix$l, "-titles"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$l, "-titles-").concat(activeType), activeType), _define_property(_obj, "".concat(classPrefix$l, "-titles-").concat(align), align), _obj));
5974
- var tabsActiveStyle = {
5975
- color: activeType === "smile" ? activeColor : "",
5976
- background: activeType === "line" ? activeColor : ""
5977
- };
5340
+ var classesTitle = classNames("".concat(classPrefix$k, "-titles"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$k, "-titles-").concat(activeType), activeType), _define_property(_obj, "".concat(classPrefix$k, "-titles-").concat(align), align), _obj));
5978
5341
  var getRect2 = function(selector) {
5979
5342
  return new Promise(function(resolve) {
5980
5343
  Taro.createSelectorQuery().select(selector).boundingClientRect().exec(function() {
@@ -5992,22 +5355,15 @@
5992
5355
  });
5993
5356
  };
5994
5357
  var scrollWithAnimation = React.useRef(false);
5995
- var navRectRef = React.useRef();
5996
- var titleRectRef = React.useRef([]);
5997
5358
  var _useState = _sliced_to_array(React.useState(0), 2), scrollLeft = _useState[0], setScrollLeft = _useState[1];
5998
5359
  var _useState1 = _sliced_to_array(React.useState(0), 2), scrollTop = _useState1[0], setScrollTop = _useState1[1];
5999
5360
  var scrollDirection = function(to, direction2) {
6000
5361
  var count = 0;
6001
5362
  var frames2 = 1;
6002
5363
  function animate() {
6003
- if (direction2 === "horizontal") {
6004
- setScrollLeft(to);
6005
- } else {
6006
- setScrollTop(to);
6007
- }
6008
- if (++count < frames2) {
6009
- requestAniFrame$1(animate);
6010
- }
5364
+ if (direction2 === "horizontal") setScrollLeft(to);
5365
+ else setScrollTop(to);
5366
+ if (++count < frames2) requestAniFrame$1(animate);
6011
5367
  }
6012
5368
  animate();
6013
5369
  };
@@ -6018,21 +5374,19 @@
6018
5374
  getAllRect("#nut-tabs-titles-".concat(name2 || uuid, " .nut-tabs-titles-item"))
6019
5375
  ]).then(function(param) {
6020
5376
  var _param = _sliced_to_array(param, 2), navRect = _param[0], titleRects = _param[1];
6021
- navRectRef.current = navRect;
6022
- titleRectRef.current = titleRects;
6023
- var titleRect = titleRectRef.current[index2];
5377
+ var titleRect = titleRects[index2];
6024
5378
  if (!titleRect) return;
6025
5379
  var to = 0;
6026
5380
  if (direction === "vertical") {
6027
5381
  var top = titleRects.slice(0, index2).reduce(function(prev, curr) {
6028
5382
  return prev + curr.height;
6029
5383
  }, 0);
6030
- to = top - (navRectRef.current.height - titleRect.height) / 2;
5384
+ to = top - (navRect.height - titleRect.height) / 2;
6031
5385
  } else {
6032
5386
  var left2 = titleRects.slice(0, index2).reduce(function(prev, curr) {
6033
5387
  return prev + curr.width;
6034
5388
  }, 0);
6035
- to = left2 - (navRectRef.current.width - titleRect.width) / 2;
5389
+ to = left2 - (navRect.width - titleRect.width) / 2;
6036
5390
  if (to < 0) return;
6037
5391
  to = rtl ? -to : to;
6038
5392
  }
@@ -6049,7 +5403,7 @@
6049
5403
  });
6050
5404
  index2 = index2 < 0 ? 0 : index2;
6051
5405
  return {
6052
- transform: direction === "horizontal" ? "translate3d(".concat(rtl ? "" : "-").concat(index2 * 100, "%, 0, 0)") : "translate3d( 0,-".concat(index2 * 100, "%, 0)"),
5406
+ transform: direction === "horizontal" ? "translate3d(".concat(rtl ? "" : "-").concat(index2 * 100, "%, 0, 0)") : "translate3d( 0, -".concat(index2 * 100, "%, 0)"),
6053
5407
  transitionDuration: "".concat(duration, "ms")
6054
5408
  };
6055
5409
  };
@@ -6062,12 +5416,11 @@
6062
5416
  }, [
6063
5417
  value2
6064
5418
  ]);
6065
- var tabChange = function(item, index2) {
5419
+ var tabChange = function(item) {
6066
5420
  onClick && onClick(item.value);
6067
- if (item.disabled) {
6068
- return;
5421
+ if (!item.disabled) {
5422
+ setValue(item.value);
6069
5423
  }
6070
- setValue(item.value);
6071
5424
  };
6072
5425
  return /* @__PURE__ */ React.createElement(components.View, _object_spread({
6073
5426
  className: classes
@@ -6081,55 +5434,52 @@
6081
5434
  scrollWithAnimation: rtl && Taro.getEnv() !== "WEB" ? false : scrollWithAnimation.current,
6082
5435
  id: "nut-tabs-titles-".concat(name2 || uuid),
6083
5436
  className: classesTitle,
6084
- style: _object_spread({}, tabStyle)
5437
+ style: tabStyle
6085
5438
  }, /* @__PURE__ */ React.createElement(components.View, {
6086
5439
  className: "nut-tabs-list"
6087
5440
  }, !!title && typeof title === "function" ? title() : titles.current.map(function(item, index2) {
6088
5441
  var _obj2;
6089
5442
  return /* @__PURE__ */ React.createElement(components.View, {
5443
+ key: item.value,
6090
5444
  ref: function(ref) {
6091
5445
  return titleItemsRef.current.push(ref);
6092
5446
  },
6093
5447
  id: "scrollIntoView".concat(index2),
6094
- onClick: function(e2) {
6095
- tabChange(item);
5448
+ onClick: function() {
5449
+ return tabChange(item);
6096
5450
  },
6097
- className: classNames("".concat(classPrefix$l, "-titles-item"), (_obj2 = {}, _define_property(_obj2, "nut-tabs-titles-item-active", !item.disabled && String(item.value) === String(value2)), _define_property(_obj2, "nut-tabs-titles-item-disabled", item.disabled), _define_property(_obj2, "nut-tabs-titles-item-".concat(align), align), _obj2)),
6098
- key: item.value
5451
+ className: classNames("".concat(classPrefix$k, "-titles-item"), (_obj2 = {}, _define_property(_obj2, "nut-tabs-titles-item-active", !item.disabled && String(item.value) === String(value2)), _define_property(_obj2, "nut-tabs-titles-item-disabled", item.disabled), _define_property(_obj2, "nut-tabs-titles-item-".concat(align), align), _obj2))
6099
5452
  }, activeType === "line" && /* @__PURE__ */ React.createElement(components.View, {
6100
- className: classNames("".concat(classPrefix$l, "-titles-item-line"), _define_property({}, "".concat(classPrefix$l, "-titles-item-line-").concat(direction), true)),
6101
- style: tabsActiveStyle
5453
+ className: classNames("".concat(classPrefix$k, "-titles-item-line"), "".concat(classPrefix$k, "-titles-item-line-").concat(direction)),
5454
+ style: {
5455
+ background: activeColor
5456
+ }
6102
5457
  }), activeType === "smile" && /* @__PURE__ */ React.createElement(components.View, {
6103
- className: "".concat(classPrefix$l, "-titles-item-smile"),
6104
- style: tabsActiveStyle
5458
+ className: "".concat(classPrefix$k, "-titles-item-smile")
6105
5459
  }, /* @__PURE__ */ React.createElement(r$3, {
6106
5460
  color: activeColor
6107
5461
  })), /* @__PURE__ */ React.createElement(components.View, {
6108
- className: classNames("".concat(classPrefix$l, "-ellipsis"), "".concat(classPrefix$l, "-titles-item-text"))
5462
+ className: classNames(_define_property({}, "".concat(classPrefix$k, "-ellipsis"), direction === "vertical"), "".concat(classPrefix$k, "-titles-item-text")),
5463
+ style: {
5464
+ color: activeColor
5465
+ }
6109
5466
  }, item.title));
6110
5467
  }))), /* @__PURE__ */ React.createElement(components.View, {
6111
- className: "".concat(classPrefix$l, "-content-wrap")
5468
+ className: "".concat(classPrefix$k, "-content-wrap")
6112
5469
  }, /* @__PURE__ */ React.createElement(components.View, {
6113
- className: "".concat(classPrefix$l, "-content"),
5470
+ className: "".concat(classPrefix$k, "-content"),
6114
5471
  style: getContentStyle()
6115
5472
  }, React.Children.map(children, function(child, idx) {
6116
- if (!/* @__PURE__ */ React.isValidElement(child)) {
6117
- return null;
6118
- }
6119
- var childProps = _object_spread_props(_object_spread({}, child.props), {
6120
- active: value2 === child.props.value
6121
- });
6122
- if (String(value2) !== String(child.props.value || idx) && autoHeight) {
6123
- childProps = _object_spread_props(_object_spread({}, childProps), {
6124
- autoHeightClassName: "inactive"
6125
- });
6126
- }
6127
- return /* @__PURE__ */ React.cloneElement(child, childProps);
5473
+ if (!/* @__PURE__ */ React.isValidElement(child)) return null;
5474
+ return /* @__PURE__ */ React.cloneElement(child, _object_spread_props(_object_spread({}, child.props), {
5475
+ active: value2 === child.props.value,
5476
+ autoHeightClassName: autoHeight && String(value2) !== String(child.props.value || idx) ? "inactive" : ""
5477
+ }));
6128
5478
  }))));
6129
5479
  };
6130
5480
  Tabs.displayName = "NutTabs";
6131
5481
  Tabs.TabPane = TabPane;
6132
- var defaultProps$19 = {
5482
+ var defaultProps$1a = {
6133
5483
  type: "custom",
6134
5484
  existList: [],
6135
5485
  defaultIcon: null,
@@ -6138,7 +5488,7 @@
6138
5488
  };
6139
5489
  var ExistRender = function(props) {
6140
5490
  var locale = useConfig().locale;
6141
- var _ref = _object_spread({}, defaultProps$19, props);
5491
+ var _ref = _object_spread({}, defaultProps$1a, props);
6142
5492
  _ref.children;
6143
5493
  var type2 = _ref.type, existList = _ref.existList, selectIcon = _ref.selectIcon, defaultIcon = _ref.defaultIcon, custom = _ref.custom, onSelect = _ref.onSelect, onSwitch = _ref.onSwitch;
6144
5494
  _object_without_properties(_ref, [
@@ -6366,7 +5716,7 @@
6366
5716
  ]);
6367
5717
  return Tree2;
6368
5718
  }();
6369
- var defaultProps$18 = _object_spread_props(_object_spread({}, ComponentDefaults), {
5719
+ var defaultProps$19 = _object_spread_props(_object_spread({}, ComponentDefaults), {
6370
5720
  activeColor: "",
6371
5721
  activeIcon: "checklist",
6372
5722
  popup: true,
@@ -6392,7 +5742,7 @@
6392
5742
  });
6393
5743
  var InternalCascader = function(props, ref) {
6394
5744
  var locale = useConfig().locale;
6395
- var _$_object_spread = _object_spread({}, defaultProps$18, props), className = _$_object_spread.className, style = _$_object_spread.style, activeColor = _$_object_spread.activeColor, activeIcon = _$_object_spread.activeIcon, popup = _$_object_spread.popup, _object_spread_popupProps = _$_object_spread.popupProps, popupProps = _object_spread_popupProps === void 0 ? {} : _object_spread_popupProps, visible = _$_object_spread.visible, options = _$_object_spread.options, value2 = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, optionKey = _$_object_spread.optionKey, format2 = _$_object_spread.format, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, lazy = _$_object_spread.lazy, title = _$_object_spread.title, left2 = _$_object_spread.left, onLoad = _$_object_spread.onLoad, onClose = _$_object_spread.onClose, onChange = _$_object_spread.onChange, onPathChange = _$_object_spread.onPathChange;
5745
+ var _$_object_spread = _object_spread({}, defaultProps$19, props), className = _$_object_spread.className, style = _$_object_spread.style, activeColor = _$_object_spread.activeColor, activeIcon = _$_object_spread.activeIcon, popup = _$_object_spread.popup, _object_spread_popupProps = _$_object_spread.popupProps, popupProps = _object_spread_popupProps === void 0 ? {} : _object_spread_popupProps, visible = _$_object_spread.visible, options = _$_object_spread.options, value2 = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, optionKey = _$_object_spread.optionKey, format2 = _$_object_spread.format, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, lazy = _$_object_spread.lazy, title = _$_object_spread.title, left2 = _$_object_spread.left, onLoad = _$_object_spread.onLoad, onClose = _$_object_spread.onClose, onChange = _$_object_spread.onChange, onPathChange = _$_object_spread.onPathChange;
6396
5746
  var _useState = _sliced_to_array(React.useState("c1"), 2), tabvalue = _useState[0], setTabvalue = _useState[1];
6397
5747
  var _useState1 = _sliced_to_array(React.useState([]), 2), optionsData = _useState1[0], setOptionsData = _useState1[1];
6398
5748
  var isLazy = function() {
@@ -6848,7 +6198,7 @@
6848
6198
  };
6849
6199
  var Cascader = /* @__PURE__ */ React.forwardRef(InternalCascader);
6850
6200
  Cascader.displayName = "NutCascader";
6851
- var defaultProps$17 = _object_spread_props(_object_spread({}, ComponentDefaults), {
6201
+ var defaultProps$18 = _object_spread_props(_object_spread({}, ComponentDefaults), {
6852
6202
  visible: false,
6853
6203
  type: "custom",
6854
6204
  options: [],
@@ -6861,7 +6211,7 @@
6861
6211
  height: "200px"
6862
6212
  });
6863
6213
  var CustomRender = function(props) {
6864
- var _ref = _object_spread({}, defaultProps$17, props);
6214
+ var _ref = _object_spread({}, defaultProps$18, props);
6865
6215
  _ref.children;
6866
6216
  var visible = _ref.visible, type2 = _ref.type;
6867
6217
  _ref.height;
@@ -6899,7 +6249,7 @@
6899
6249
  onPathChange
6900
6250
  }, rest)));
6901
6251
  };
6902
- var defaultProps$16 = _object_spread_props(_object_spread({}, ComponentDefaults), {
6252
+ var defaultProps$17 = _object_spread_props(_object_spread({}, ComponentDefaults), {
6903
6253
  defaultValue: [],
6904
6254
  type: "custom",
6905
6255
  options: [],
@@ -6919,7 +6269,7 @@
6919
6269
  });
6920
6270
  var InternalAddress = function(props, ref) {
6921
6271
  var locale = useConfig().locale;
6922
- var _ref = _object_spread({}, defaultProps$16, props), style = _ref.style, className = _ref.className, visible = _ref.visible, defaultVisible = _ref.defaultVisible, defaultValue = _ref.defaultValue;
6272
+ var _ref = _object_spread({}, defaultProps$17, props), style = _ref.style, className = _ref.className, visible = _ref.visible, defaultVisible = _ref.defaultVisible, defaultValue = _ref.defaultValue;
6923
6273
  _ref.children;
6924
6274
  var type2 = _ref.type, options = _ref.options, optionKey = _ref.optionKey, format2 = _ref.format, height2 = _ref.height, title = _ref.title, existList = _ref.existList, custom = _ref.custom, selectIcon = _ref.selectIcon, defaultIcon = _ref.defaultIcon, closeIcon = _ref.closeIcon, backIcon = _ref.backIcon, onChange = _ref.onChange, onExistSelect = _ref.onExistSelect, onClose = _ref.onClose, onSwitch = _ref.onSwitch;
6925
6275
  _object_without_properties(_ref, [
@@ -7286,7 +6636,7 @@
7286
6636
  var isStartAndEnd = function(days) {
7287
6637
  return days.length >= 2 && Utils.isEqual(days[0], days[1]);
7288
6638
  };
7289
- var defaultProps$15 = _object_spread_props(_object_spread({}, ComponentDefaults), {
6639
+ var defaultProps$16 = _object_spread_props(_object_spread({}, ComponentDefaults), {
7290
6640
  type: "single",
7291
6641
  autoBackfill: false,
7292
6642
  popup: true,
@@ -7319,7 +6669,7 @@
7319
6669
  });
7320
6670
  var CalendarItem = /* @__PURE__ */ React.forwardRef(function(props, ref) {
7321
6671
  var locale = useConfig().locale;
7322
- var _$_object_spread = _object_spread({}, defaultProps$15, props), style = _$_object_spread.style, className = _$_object_spread.className, children = _$_object_spread.children, popup = _$_object_spread.popup, type2 = _$_object_spread.type, autoBackfill = _$_object_spread.autoBackfill, title = _$_object_spread.title, defaultValue = _$_object_spread.defaultValue, startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, showToday = _$_object_spread.showToday, startText = _$_object_spread.startText, endText = _$_object_spread.endText, confirmText = _$_object_spread.confirmText, showTitle = _$_object_spread.showTitle, showSubTitle = _$_object_spread.showSubTitle, scrollAnimation = _$_object_spread.scrollAnimation, firstDayOfWeek = _$_object_spread.firstDayOfWeek, disableDate = _$_object_spread.disableDate, renderHeaderButtons = _$_object_spread.renderHeaderButtons, renderDay = _$_object_spread.renderDay, renderDayTop = _$_object_spread.renderDayTop, renderDayBottom = _$_object_spread.renderDayBottom, renderBottomButton = _$_object_spread.renderBottomButton, value2 = _$_object_spread.value, onConfirm = _$_object_spread.onConfirm, onUpdate = _$_object_spread.onUpdate, onDayClick = _$_object_spread.onDayClick, onPageChange = _$_object_spread.onPageChange;
6672
+ var _$_object_spread = _object_spread({}, defaultProps$16, props), style = _$_object_spread.style, className = _$_object_spread.className, children = _$_object_spread.children, popup = _$_object_spread.popup, type2 = _$_object_spread.type, autoBackfill = _$_object_spread.autoBackfill, title = _$_object_spread.title, defaultValue = _$_object_spread.defaultValue, startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, showToday = _$_object_spread.showToday, startText = _$_object_spread.startText, endText = _$_object_spread.endText, confirmText = _$_object_spread.confirmText, showTitle = _$_object_spread.showTitle, showSubTitle = _$_object_spread.showSubTitle, scrollAnimation = _$_object_spread.scrollAnimation, firstDayOfWeek = _$_object_spread.firstDayOfWeek, disableDate = _$_object_spread.disableDate, renderHeaderButtons = _$_object_spread.renderHeaderButtons, renderDay = _$_object_spread.renderDay, renderDayTop = _$_object_spread.renderDayTop, renderDayBottom = _$_object_spread.renderDayBottom, renderBottomButton = _$_object_spread.renderBottomButton, value2 = _$_object_spread.value, onConfirm = _$_object_spread.onConfirm, onUpdate = _$_object_spread.onUpdate, onDayClick = _$_object_spread.onDayClick, onPageChange = _$_object_spread.onPageChange;
7323
6673
  var weekdays = locale.calendaritem.weekdays;
7324
6674
  var weeks = _to_consumable_array(weekdays.slice(firstDayOfWeek, 7)).concat(_to_consumable_array(weekdays.slice(0, firstDayOfWeek)));
7325
6675
  var monthTitle = locale.calendaritem.monthTitle;
@@ -7881,7 +7231,6 @@
7881
7231
  return /* @__PURE__ */ React.createElement(components.View, {
7882
7232
  className: "nut-calendar-footer"
7883
7233
  }, children, /* @__PURE__ */ React.createElement(components.View, {
7884
- className: "calendar-confirm-btn",
7885
7234
  onClick: confirm
7886
7235
  }, renderBottomButton ? renderBottomButton() : /* @__PURE__ */ React.createElement(components.View, {
7887
7236
  className: "calendar-confirm-btn"
@@ -7893,7 +7242,7 @@
7893
7242
  }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : "");
7894
7243
  });
7895
7244
  CalendarItem.displayName = "NutCalendarItem";
7896
- var defaultProps$14 = _object_spread_props(_object_spread({}, ComponentDefaults), {
7245
+ var defaultProps$15 = _object_spread_props(_object_spread({}, ComponentDefaults), {
7897
7246
  type: "single",
7898
7247
  autoBackfill: false,
7899
7248
  popup: true,
@@ -7928,7 +7277,7 @@
7928
7277
  });
7929
7278
  var Calendar = /* @__PURE__ */ React.forwardRef(function(props, ref) {
7930
7279
  var locale = useConfig().locale;
7931
- var _$_object_spread = _object_spread({}, defaultProps$14, props), style = _$_object_spread.style, className = _$_object_spread.className, children = _$_object_spread.children, popup = _$_object_spread.popup, visible = _$_object_spread.visible, type2 = _$_object_spread.type, autoBackfill = _$_object_spread.autoBackfill, title = _$_object_spread.title, defaultValue = _$_object_spread.defaultValue, startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, showToday = _$_object_spread.showToday, startText = _$_object_spread.startText, endText = _$_object_spread.endText, confirmText = _$_object_spread.confirmText, showTitle = _$_object_spread.showTitle, showSubTitle = _$_object_spread.showSubTitle, scrollAnimation = _$_object_spread.scrollAnimation, firstDayOfWeek = _$_object_spread.firstDayOfWeek, closeIcon = _$_object_spread.closeIcon, disableDate = _$_object_spread.disableDate, renderHeaderButtons = _$_object_spread.renderHeaderButtons, renderBottomButton = _$_object_spread.renderBottomButton, renderDay = _$_object_spread.renderDay, renderDayTop = _$_object_spread.renderDayTop, renderDayBottom = _$_object_spread.renderDayBottom, onClose = _$_object_spread.onClose, onConfirm = _$_object_spread.onConfirm, onDayClick = _$_object_spread.onDayClick, onPageChange = _$_object_spread.onPageChange;
7280
+ var _$_object_spread = _object_spread({}, defaultProps$15, props), style = _$_object_spread.style, className = _$_object_spread.className, children = _$_object_spread.children, popup = _$_object_spread.popup, visible = _$_object_spread.visible, type2 = _$_object_spread.type, autoBackfill = _$_object_spread.autoBackfill, title = _$_object_spread.title, defaultValue = _$_object_spread.defaultValue, startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, showToday = _$_object_spread.showToday, startText = _$_object_spread.startText, endText = _$_object_spread.endText, confirmText = _$_object_spread.confirmText, showTitle = _$_object_spread.showTitle, showSubTitle = _$_object_spread.showSubTitle, scrollAnimation = _$_object_spread.scrollAnimation, firstDayOfWeek = _$_object_spread.firstDayOfWeek, closeIcon = _$_object_spread.closeIcon, disableDate = _$_object_spread.disableDate, renderHeaderButtons = _$_object_spread.renderHeaderButtons, renderBottomButton = _$_object_spread.renderBottomButton, renderDay = _$_object_spread.renderDay, renderDayTop = _$_object_spread.renderDayTop, renderDayBottom = _$_object_spread.renderDayBottom, onClose = _$_object_spread.onClose, onConfirm = _$_object_spread.onConfirm, onDayClick = _$_object_spread.onDayClick, onPageChange = _$_object_spread.onPageChange;
7932
7281
  var calendarRef = React.useRef(null);
7933
7282
  var close2 = function() {
7934
7283
  onClose && onClose();
@@ -8103,14 +7452,14 @@
8103
7452
  convertDateToDay(new Date(current.getTime() + 24 * 60 * 60 * 1e3 * (6 - count)))
8104
7453
  ];
8105
7454
  };
8106
- var defaultProps$13 = _object_spread_props(_object_spread({}, ComponentDefaults), {
7455
+ var defaultProps$14 = _object_spread_props(_object_spread({}, ComponentDefaults), {
8107
7456
  type: "single",
8108
7457
  firstDayOfWeek: 0
8109
7458
  });
8110
7459
  var prefixCls = "nut-calendarcard";
8111
7460
  var CalendarCard = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8112
7461
  var locale = useConfig().locale;
8113
- var _$_object_spread = _object_spread({}, defaultProps$13, props), style = _$_object_spread.style, className = _$_object_spread.className, type2 = _$_object_spread.type, value2 = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, firstDayOfWeek = _$_object_spread.firstDayOfWeek, startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, disableDay = _$_object_spread.disableDay, renderDay = _$_object_spread.renderDay, renderDayTop = _$_object_spread.renderDayTop, renderDayBottom = _$_object_spread.renderDayBottom, onDayClick = _$_object_spread.onDayClick, onPageChange = _$_object_spread.onPageChange, onChange = _$_object_spread.onChange;
7462
+ var _$_object_spread = _object_spread({}, defaultProps$14, props), style = _$_object_spread.style, className = _$_object_spread.className, type2 = _$_object_spread.type, value2 = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, firstDayOfWeek = _$_object_spread.firstDayOfWeek, startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, disableDay = _$_object_spread.disableDay, renderDay = _$_object_spread.renderDay, renderDayTop = _$_object_spread.renderDayTop, renderDayBottom = _$_object_spread.renderDayBottom, onDayClick = _$_object_spread.onDayClick, onPageChange = _$_object_spread.onPageChange, onChange = _$_object_spread.onChange;
8114
7463
  var _useState = _sliced_to_array(React.useState(function() {
8115
7464
  var date2 = new Date(Date.now());
8116
7465
  var val2 = value2 || defaultValue;
@@ -8471,7 +7820,7 @@
8471
7820
  });
8472
7821
  CalendarCard.displayName = "NutCalendarCard";
8473
7822
  var CheckboxGroupContext = React.createContext(null);
8474
- var defaultProps$12 = _object_spread_props(_object_spread({}, ComponentDefaults), {
7823
+ var defaultProps$13 = _object_spread_props(_object_spread({}, ComponentDefaults), {
8475
7824
  disabled: false,
8476
7825
  shape: "round",
8477
7826
  labelPosition: "right",
@@ -8481,9 +7830,9 @@
8481
7830
  onChange: function(value2) {
8482
7831
  }
8483
7832
  });
8484
- var classPrefix$k = "nut-checkbox";
7833
+ var classPrefix$j = "nut-checkbox";
8485
7834
  var Checkbox = function(props) {
8486
- var children = _object_spread({}, defaultProps$12, props).children;
7835
+ var children = _object_spread({}, defaultProps$13, props).children;
8487
7836
  var icon = props.icon, label = props.label, className = props.className, activeIcon = props.activeIcon, checked = props.checked, value2 = props.value, defaultChecked = props.defaultChecked, shape = props.shape, disabled = props.disabled, onChange = props.onChange, indeterminate = props.indeterminate, indeterminateIcon = props.indeterminateIcon, others = _object_without_properties(props, [
8488
7837
  "icon",
8489
7838
  "label",
@@ -8563,27 +7912,27 @@
8563
7912
  });
8564
7913
  };
8565
7914
  var color = function() {
8566
- var cls = "".concat(classPrefix$k, "-icon ");
7915
+ var cls = "".concat(classPrefix$j, "-icon ");
8567
7916
  if (innerDisabled) {
8568
7917
  if (innerChecked && !innerIndeterminate) {
8569
- return "".concat(cls).concat(classPrefix$k, "-icon-checked ").concat(classPrefix$k, "-icon-disabled");
7918
+ return "".concat(cls).concat(classPrefix$j, "-icon-checked ").concat(classPrefix$j, "-icon-disabled");
8570
7919
  }
8571
7920
  if (innerChecked && innerIndeterminate) {
8572
- return "".concat(cls).concat(classPrefix$k, "-icon-indeterminate ").concat(classPrefix$k, "-icon-disabled");
7921
+ return "".concat(cls).concat(classPrefix$j, "-icon-indeterminate ").concat(classPrefix$j, "-icon-disabled");
8573
7922
  }
8574
- return "".concat(cls).concat(classPrefix$k, "-icon-disabled");
7923
+ return "".concat(cls).concat(classPrefix$j, "-icon-disabled");
8575
7924
  }
8576
7925
  if (innerChecked) {
8577
7926
  if (innerIndeterminate) {
8578
- return "".concat(cls).concat(classPrefix$k, "-icon-indeterminate");
7927
+ return "".concat(cls).concat(classPrefix$j, "-icon-indeterminate");
8579
7928
  }
8580
- return "".concat(cls).concat(classPrefix$k, "-icon-checked");
7929
+ return "".concat(cls).concat(classPrefix$j, "-icon-checked");
8581
7930
  }
8582
7931
  return cls;
8583
7932
  };
8584
7933
  var renderLabel = function() {
8585
7934
  return /* @__PURE__ */ React.createElement(components.View, {
8586
- className: classNames("".concat(classPrefix$k, "-label "), _define_property({}, "".concat(classPrefix$k, "-label-disabled"), innerDisabled))
7935
+ className: classNames("".concat(classPrefix$j, "-label "), _define_property({}, "".concat(classPrefix$j, "-label-disabled"), innerDisabled))
8587
7936
  }, children || label);
8588
7937
  };
8589
7938
  var handleClick = function() {
@@ -8594,9 +7943,9 @@
8594
7943
  var renderButton = function() {
8595
7944
  var _obj;
8596
7945
  return /* @__PURE__ */ React.createElement(components.View, {
8597
- className: classNames("".concat(classPrefix$k, "-button"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$k, "-button-active"), innerChecked), _define_property(_obj, "".concat(classPrefix$k, "-button-disabled"), disabled), _obj))
7946
+ className: classNames("".concat(classPrefix$j, "-button"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-button-active"), innerChecked), _define_property(_obj, "".concat(classPrefix$j, "-button-disabled"), disabled), _obj))
8598
7947
  }, children || label, innerChecked && activeIcon ? /* @__PURE__ */ React.createElement(components.View, {
8599
- className: classNames("".concat(classPrefix$k, "-button-icon"))
7948
+ className: classNames("".concat(classPrefix$j, "-button-icon"))
8600
7949
  }, activeIcon) : null);
8601
7950
  };
8602
7951
  var renderListItem = function() {
@@ -8614,13 +7963,13 @@
8614
7963
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), renderLabel());
8615
7964
  };
8616
7965
  return /* @__PURE__ */ React.createElement(components.View, _object_spread_props(_object_spread({
8617
- className: classNames(classPrefix$k, _define_property({}, "".concat(classPrefix$k, "-reverse"), labelPosition === "left"), className)
7966
+ className: classNames(classPrefix$j, _define_property({}, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), className)
8618
7967
  }, rest), {
8619
7968
  onClick: handleClick
8620
7969
  }), renderCheckboxItem());
8621
7970
  };
8622
7971
  Checkbox.displayName = "NutCheckBox";
8623
- var defaultProps$11 = {
7972
+ var defaultProps$12 = {
8624
7973
  max: void 0,
8625
7974
  min: void 0,
8626
7975
  list: false,
@@ -8632,9 +7981,9 @@
8632
7981
  },
8633
7982
  options: []
8634
7983
  };
8635
- var classPrefix$j = "nut-checkboxgroup";
7984
+ var classPrefix$i = "nut-checkboxgroup";
8636
7985
  var CheckboxGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8637
- var _ref = _object_spread({}, defaultProps$11, props), children = _ref.children, className = _ref.className, disabled = _ref.disabled, list = _ref.list, value2 = _ref.value, defaultValue = _ref.defaultValue, max = _ref.max, min = _ref.min, labelPosition = _ref.labelPosition, direction = _ref.direction, options = _ref.options, onChange = _ref.onChange, onLimit = _ref.onLimit, rest = _object_without_properties(_ref, [
7986
+ var _ref = _object_spread({}, defaultProps$12, props), children = _ref.children, className = _ref.className, disabled = _ref.disabled, list = _ref.list, value2 = _ref.value, defaultValue = _ref.defaultValue, max = _ref.max, min = _ref.min, labelPosition = _ref.labelPosition, direction = _ref.direction, options = _ref.options, onChange = _ref.onChange, onLimit = _ref.onLimit, rest = _object_without_properties(_ref, [
8638
7987
  "children",
8639
7988
  "className",
8640
7989
  "disabled",
@@ -8737,13 +8086,12 @@
8737
8086
  }
8738
8087
  }
8739
8088
  }, /* @__PURE__ */ React.createElement("div", _object_spread({
8740
- className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "nut-checkboxgroup-".concat(direction), direction), _define_property(_obj, "nut-checkboxgroup-list", list), _obj), className)
8089
+ className: classNames(classPrefix$i, (_obj = {}, _define_property(_obj, "nut-checkboxgroup-".concat(direction), direction), _define_property(_obj, "nut-checkboxgroup-list", list), _obj), className)
8741
8090
  }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptions() : children));
8742
8091
  });
8743
8092
  CheckboxGroup.displayName = "NutCheckboxGroup";
8744
8093
  var InnerCheckbox = Checkbox;
8745
8094
  InnerCheckbox.Group = CheckboxGroup;
8746
- const InnerCheckbox$1 = InnerCheckbox;
8747
8095
  var InternalPickerPanel = function(props, ref) {
8748
8096
  var _props_keyIndex = props.keyIndex, keyIndex = _props_keyIndex === void 0 ? 0 : _props_keyIndex, defaultValue = props.defaultValue, _props_options = props.options, options = _props_options === void 0 ? [] : _props_options, _props_threeDimensional = props.threeDimensional, threeDimensional = _props_threeDimensional === void 0 ? true : _props_threeDimensional, _props_duration = props.duration, duration = _props_duration === void 0 ? 1e3 : _props_duration, _props_itemShow = props.itemShow, itemShow = _props_itemShow === void 0 ? false : _props_itemShow, chooseItem = props.chooseItem;
8749
8097
  var touch = useTouch();
@@ -8828,7 +8176,7 @@
8828
8176
  var move = touch.deltaY.current - startY;
8829
8177
  var moveTime = Date.now() - startTime;
8830
8178
  if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
8831
- var distance = momentum(move, moveTime);
8179
+ var distance = momentum2(move, moveTime);
8832
8180
  setMove(distance, "end", +duration);
8833
8181
  } else {
8834
8182
  setMove(move, "end");
@@ -8837,7 +8185,7 @@
8837
8185
  touch.reset();
8838
8186
  }, 0);
8839
8187
  };
8840
- var momentum = function(distance, duration2) {
8188
+ var momentum2 = function(distance, duration2) {
8841
8189
  var nDistance = distance;
8842
8190
  var speed = Math.abs(nDistance / duration2);
8843
8191
  nDistance = speed / 3e-3 * (nDistance < 0 ? -1 : 1);
@@ -8937,7 +8285,10 @@
8937
8285
  };
8938
8286
  });
8939
8287
  React.useEffect(function() {
8940
- var eventOptions = false;
8288
+ var eventOptions = passiveSupported ? {
8289
+ passive: false,
8290
+ once: true
8291
+ } : false;
8941
8292
  var element = pickerPanelRef.current;
8942
8293
  element.addEventListener("touchstart", touchStart, eventOptions);
8943
8294
  element.addEventListener("touchmove", touchMove, eventOptions);
@@ -8960,7 +8311,7 @@
8960
8311
  return /* @__PURE__ */ React.createElement(components.View, {
8961
8312
  className: "nut-picker-roller-item ".concat(isHidden(index2 + 1) && "nut-picker-roller-item-hidden"),
8962
8313
  style: {
8963
- transform: "rotate3d(1, 0, 0, ".concat(-rotation2 * (index2 + 1), "deg) translate3d(0px, 0px, 104px)"),
8314
+ transform: "rotate3d(1, 0, 0, ".concat(-20 * (index2 + 1), "deg) translate3d(0px, 0px, 104px)"),
8964
8315
  height: "".concat(lineSpacing.current, "px"),
8965
8316
  lineHeight: "".concat(lineSpacing.current, "px")
8966
8317
  },
@@ -8999,7 +8350,7 @@
8999
8350
  reset
9000
8351
  ];
9001
8352
  }
9002
- var defaultProps$10 = _object_spread_props(_object_spread({}, ComponentDefaults), {
8353
+ var defaultProps$11 = _object_spread_props(_object_spread({}, ComponentDefaults), {
9003
8354
  visible: false,
9004
8355
  title: "",
9005
8356
  options: [],
@@ -9011,7 +8362,7 @@
9011
8362
  });
9012
8363
  var InternalPicker = function(props, ref) {
9013
8364
  var locale = useConfig().locale;
9014
- var _ref = _object_spread({}, defaultProps$10, props), children = _ref.children, visible = _ref.visible, title = _ref.title, _ref_options = _ref.options, options = _ref_options === void 0 ? [] : _ref_options, closeOnOverlayClick = _ref.closeOnOverlayClick, _ref_popupProps = _ref.popupProps, popupProps = _ref_popupProps === void 0 ? {} : _ref_popupProps, _ref_defaultValue = _ref.defaultValue, defaultValue = _ref_defaultValue === void 0 ? [] : _ref_defaultValue, className = _ref.className, style = _ref.style, threeDimensional = _ref.threeDimensional, duration = _ref.duration;
8365
+ var _ref = _object_spread({}, defaultProps$11, props), children = _ref.children, visible = _ref.visible, title = _ref.title, _ref_options = _ref.options, options = _ref_options === void 0 ? [] : _ref_options, closeOnOverlayClick = _ref.closeOnOverlayClick, _ref_popupProps = _ref.popupProps, popupProps = _ref_popupProps === void 0 ? {} : _ref_popupProps, _ref_defaultValue = _ref.defaultValue, defaultValue = _ref_defaultValue === void 0 ? [] : _ref_defaultValue, className = _ref.className, style = _ref.style, threeDimensional = _ref.threeDimensional, duration = _ref.duration;
9015
8366
  _ref.onConfirm;
9016
8367
  var onCancel = _ref.onCancel;
9017
8368
  _ref.onClose;
@@ -9343,7 +8694,7 @@
9343
8694
  return str;
9344
8695
  };
9345
8696
  var currentYear = (/* @__PURE__ */ new Date()).getFullYear();
9346
- var defaultProps$$ = _object_spread_props(_object_spread({}, ComponentDefaults), {
8697
+ var defaultProps$10 = _object_spread_props(_object_spread({}, ComponentDefaults), {
9347
8698
  visible: false,
9348
8699
  title: "",
9349
8700
  type: "date",
@@ -9357,7 +8708,7 @@
9357
8708
  var getMonthEndDay = function getMonthEndDay2(year, month) {
9358
8709
  return new Date(year, month, 0).getDate();
9359
8710
  };
9360
- var _ref = _object_spread({}, defaultProps$$, props), startDate = _ref.startDate, endDate = _ref.endDate, type2 = _ref.type, showChinese = _ref.showChinese, minuteStep = _ref.minuteStep, visible = _ref.visible, title = _ref.title, defaultValue = _ref.defaultValue, _ref_pickerProps = _ref.pickerProps, pickerProps = _ref_pickerProps === void 0 ? {} : _ref_pickerProps, formatter = _ref.formatter, onClose = _ref.onClose, onCancel = _ref.onCancel, onConfirm = _ref.onConfirm, filter = _ref.filter, onChange = _ref.onChange, threeDimensional = _ref.threeDimensional, className = _ref.className, style = _ref.style, rest = _object_without_properties(_ref, [
8711
+ var _ref = _object_spread({}, defaultProps$10, props), startDate = _ref.startDate, endDate = _ref.endDate, type2 = _ref.type, showChinese = _ref.showChinese, minuteStep = _ref.minuteStep, visible = _ref.visible, title = _ref.title, defaultValue = _ref.defaultValue, _ref_pickerProps = _ref.pickerProps, pickerProps = _ref_pickerProps === void 0 ? {} : _ref_pickerProps, formatter = _ref.formatter, onClose = _ref.onClose, onCancel = _ref.onCancel, onConfirm = _ref.onConfirm, filter = _ref.filter, onChange = _ref.onChange, threeDimensional = _ref.threeDimensional, className = _ref.className, style = _ref.style, rest = _object_without_properties(_ref, [
9361
8712
  "startDate",
9362
8713
  "endDate",
9363
8714
  "type",
@@ -10974,7 +10325,7 @@
10974
10325
  formRef.current
10975
10326
  ];
10976
10327
  };
10977
- var defaultProps$_ = _object_spread_props(_object_spread({}, ComponentDefaults), {
10328
+ var defaultProps$$ = _object_spread_props(_object_spread({}, ComponentDefaults), {
10978
10329
  labelPosition: "right",
10979
10330
  starPosition: "left",
10980
10331
  divider: false,
@@ -10990,7 +10341,7 @@
10990
10341
  };
10991
10342
  var Form = /* @__PURE__ */ React.forwardRef(function(props, ref) {
10992
10343
  var classPrefix2 = "nut-form";
10993
- var _$_object_spread = _object_spread({}, defaultProps$_, props), className = _$_object_spread.className, style = _$_object_spread.style, footer = _$_object_spread.footer, children = _$_object_spread.children, initialValues = _$_object_spread.initialValues, divider = _$_object_spread.divider, onFinish = _$_object_spread.onFinish, onFinishFailed = _$_object_spread.onFinishFailed, labelPosition = _$_object_spread.labelPosition, starPosition = _$_object_spread.starPosition, form = _$_object_spread.form;
10344
+ var _$_object_spread = _object_spread({}, defaultProps$$, props), className = _$_object_spread.className, style = _$_object_spread.style, footer = _$_object_spread.footer, children = _$_object_spread.children, initialValues = _$_object_spread.initialValues, divider = _$_object_spread.divider, onFinish = _$_object_spread.onFinish, onFinishFailed = _$_object_spread.onFinishFailed, labelPosition = _$_object_spread.labelPosition, starPosition = _$_object_spread.starPosition, form = _$_object_spread.form;
10994
10345
  var formInstance;
10995
10346
  if (form !== void 0) {
10996
10347
  formInstance = form;
@@ -11089,7 +10440,7 @@
11089
10440
  }
11090
10441
  ).$$typeof === component.type.$$typeof;
11091
10442
  }
11092
- var defaultProps$Z = _object_spread_props(_object_spread({}, ComponentDefaults), {
10443
+ var defaultProps$_ = _object_spread_props(_object_spread({}, ComponentDefaults), {
11093
10444
  required: false,
11094
10445
  name: "",
11095
10446
  label: "",
@@ -11193,7 +10544,7 @@
11193
10544
  }
11194
10545
  }), _define_property(_this, "renderLayout", function(childNode) {
11195
10546
  var _item_;
11196
- var _$_object_spread = _object_spread({}, defaultProps$Z, _this.props), label = _$_object_spread.label, name2 = _$_object_spread.name, required2 = _$_object_spread.required, rules2 = _$_object_spread.rules, className = _$_object_spread.className, style = _$_object_spread.style, align = _$_object_spread.align, errorMessageAlign = _$_object_spread.errorMessageAlign;
10547
+ var _$_object_spread = _object_spread({}, defaultProps$_, _this.props), label = _$_object_spread.label, name2 = _$_object_spread.name, required2 = _$_object_spread.required, rules2 = _$_object_spread.rules, className = _$_object_spread.className, style = _$_object_spread.style, align = _$_object_spread.align, errorMessageAlign = _$_object_spread.errorMessageAlign;
11197
10548
  var requiredInRules = rules2 === null || rules2 === void 0 ? void 0 : rules2.some(function(rule) {
11198
10549
  return rule.required;
11199
10550
  });
@@ -11273,12 +10624,11 @@
11273
10624
  ]);
11274
10625
  return FormItem2;
11275
10626
  }(React.Component);
11276
- _define_property(FormItem, "defaultProps", defaultProps$Z);
10627
+ _define_property(FormItem, "defaultProps", defaultProps$_);
11277
10628
  _define_property(FormItem, "contextType", Context);
11278
10629
  var InnerForm = Form;
11279
10630
  InnerForm.Item = FormItem;
11280
10631
  InnerForm.useForm = useForm;
11281
- const InnerForm$1 = InnerForm;
11282
10632
  function trimExtraChar(value2, char, regExp) {
11283
10633
  var index2 = value2.indexOf(char);
11284
10634
  if (index2 === -1) {
@@ -11304,7 +10654,7 @@
11304
10654
  var regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
11305
10655
  return value2.replace(regExp, "");
11306
10656
  }
11307
- var defaultProps$Y = _object_spread_props(_object_spread({}, ComponentDefaults), {
10657
+ var defaultProps$Z = _object_spread_props(_object_spread({}, ComponentDefaults), {
11308
10658
  type: "text",
11309
10659
  name: "",
11310
10660
  placeholder: void 0,
@@ -11323,7 +10673,7 @@
11323
10673
  var Input = /* @__PURE__ */ React.forwardRef(function(props, ref) {
11324
10674
  var rtl = useRtl();
11325
10675
  var locale = useConfig().locale;
11326
- var _ref = _object_spread({}, defaultProps$Y, props), type2 = _ref.type, name2 = _ref.name, placeholder = _ref.placeholder, align = _ref.align, disabled = _ref.disabled, readOnly = _ref.readOnly, maxLength = _ref.maxLength, clearable = _ref.clearable, clearIcon = _ref.clearIcon, formatTrigger = _ref.formatTrigger, autoFocus = _ref.autoFocus, style = _ref.style, className = _ref.className, plain = _ref.plain, onChange = _ref.onChange, onFocus = _ref.onFocus;
10676
+ var _ref = _object_spread({}, defaultProps$Z, props), type2 = _ref.type, name2 = _ref.name, placeholder = _ref.placeholder, align = _ref.align, disabled = _ref.disabled, readOnly = _ref.readOnly, maxLength = _ref.maxLength, clearable = _ref.clearable, clearIcon = _ref.clearIcon, formatTrigger = _ref.formatTrigger, autoFocus = _ref.autoFocus, style = _ref.style, className = _ref.className, plain = _ref.plain, onChange = _ref.onChange, onFocus = _ref.onFocus;
11327
10677
  _ref.onBlur;
11328
10678
  var onClear = _ref.onClear, formatter = _ref.formatter, onClick = _ref.onClick, confirmType = _ref.confirmType, defaultValue = _ref.defaultValue, _value = _ref.value, rest = _object_without_properties(_ref, [
11329
10679
  "type",
@@ -11488,7 +10838,7 @@
11488
10838
  })));
11489
10839
  });
11490
10840
  Input.displayName = "NutInput";
11491
- var defaultProps$X = _object_spread_props(_object_spread({}, ComponentDefaults), {
10841
+ var defaultProps$Y = _object_spread_props(_object_spread({}, ComponentDefaults), {
11492
10842
  disabled: false,
11493
10843
  readOnly: false,
11494
10844
  allowEmpty: false,
@@ -11500,9 +10850,9 @@
11500
10850
  async: false,
11501
10851
  select: true
11502
10852
  });
11503
- var classPrefix$i = "nut-inputnumber";
10853
+ var classPrefix$h = "nut-inputnumber";
11504
10854
  var InputNumber = function(props) {
11505
- var _ref = _object_spread({}, defaultProps$X, props);
10855
+ var _ref = _object_spread({}, defaultProps$Y, props);
11506
10856
  _ref.children;
11507
10857
  var disabled = _ref.disabled, min = _ref.min, max = _ref.max, type2 = _ref.type, readOnly = _ref.readOnly, value2 = _ref.value, defaultValue = _ref.defaultValue, allowEmpty = _ref.allowEmpty, digits = _ref.digits, step = _ref.step, async = _ref.async, select = _ref.select, className = _ref.className, style = _ref.style, formatter = _ref.formatter, onPlus = _ref.onPlus, onMinus = _ref.onMinus, onOverlimit = _ref.onOverlimit, onBlur = _ref.onBlur, onFocus = _ref.onFocus, onChange = _ref.onChange;
11508
10858
  _object_without_properties(_ref, [
@@ -11529,9 +10879,8 @@
11529
10879
  "onFocus",
11530
10880
  "onChange"
11531
10881
  ]);
11532
- var isRnAndHarmony = harmonyAndRn();
11533
- var isRn2 = rn();
11534
- var classes = classNames(classPrefix$i, className);
10882
+ var isHarmony2 = harmony();
10883
+ var classes = classNames(classPrefix$h, className);
11535
10884
  var _useState = _sliced_to_array(React.useState(false), 2), focused = _useState[0], setFocused = _useState[1];
11536
10885
  var inputRef = React.useRef(null);
11537
10886
  React.useEffect(function() {
@@ -11670,23 +11019,14 @@
11670
11019
  className: classes,
11671
11020
  style
11672
11021
  }, /* @__PURE__ */ React.createElement(components.View, {
11673
- className: "".concat(classPrefix$i, "-minus"),
11022
+ className: "".concat(classPrefix$h, "-minus"),
11674
11023
  onClick: handleReduce
11675
- }, isRnAndHarmony ? /* @__PURE__ */ React.createElement(components.Text, {
11676
- className: classNames("".concat(classPrefix$i, "-icon ").concat(classPrefix$i, "-icon-minus"), _define_property({}, "".concat(classPrefix$i, "-icon-disabled"), shadowValue === min || disabled))
11024
+ }, isHarmony2 ? /* @__PURE__ */ React.createElement(components.Text, {
11025
+ className: classNames("".concat(classPrefix$h, "-icon ").concat(classPrefix$h, "-icon-minus"), _define_property({}, "".concat(classPrefix$h, "-icon-disabled"), shadowValue === min || disabled))
11677
11026
  }, "-") : /* @__PURE__ */ React.createElement(r$2, {
11678
- className: classNames("".concat(classPrefix$i, "-icon ").concat(classPrefix$i, "-icon-minus"), _define_property({}, "".concat(classPrefix$i, "-icon-disabled"), shadowValue === min || disabled))
11679
- })), isRn2 ? /* @__PURE__ */ React.createElement(components.Input, {
11680
- className: classNames("".concat(classPrefix$i, "-input"), _define_property({}, "".concat(classPrefix$i, "-input-disabled"), disabled)),
11681
- type: type2,
11682
- ref: inputRef,
11683
- disabled: disabled || readOnly,
11684
- value: inputValue,
11685
- onInput: handleInputChange,
11686
- onBlur: handleBlur,
11687
- onFocus: handleFocus
11688
- }) : /* @__PURE__ */ React.createElement("input", {
11689
- className: classNames("".concat(classPrefix$i, "-input"), _define_property({}, "".concat(classPrefix$i, "-input-disabled"), disabled)),
11027
+ className: classNames("".concat(classPrefix$h, "-icon ").concat(classPrefix$h, "-icon-minus"), _define_property({}, "".concat(classPrefix$h, "-icon-disabled"), shadowValue === min || disabled))
11028
+ })), /* @__PURE__ */ React.createElement("input", {
11029
+ className: classNames("".concat(classPrefix$h, "-input"), _define_property({}, "".concat(classPrefix$h, "-input-disabled"), disabled)),
11690
11030
  type: type2,
11691
11031
  ref: inputRef,
11692
11032
  inputMode: type2 === "digit" ? "decimal" : "numeric",
@@ -11697,16 +11037,16 @@
11697
11037
  onBlur: handleBlur,
11698
11038
  onFocus: handleFocus
11699
11039
  }), /* @__PURE__ */ React.createElement(components.View, {
11700
- className: "".concat(classPrefix$i, "-add"),
11040
+ className: "".concat(classPrefix$h, "-add"),
11701
11041
  onClick: handlePlus
11702
- }, isRnAndHarmony ? /* @__PURE__ */ React.createElement(components.Text, {
11703
- className: classNames("".concat(classPrefix$i, "-icon ").concat(classPrefix$i, "-icon-plus"), _define_property({}, "".concat(classPrefix$i, "-icon-disabled"), shadowValue === max || disabled))
11042
+ }, isHarmony2 ? /* @__PURE__ */ React.createElement(components.Text, {
11043
+ className: classNames("".concat(classPrefix$h, "-icon ").concat(classPrefix$h, "-icon-plus"), _define_property({}, "".concat(classPrefix$h, "-icon-disabled"), shadowValue === max || disabled))
11704
11044
  }, "+") : /* @__PURE__ */ React.createElement(n, {
11705
- className: classNames("".concat(classPrefix$i, "-icon ").concat(classPrefix$i, "-icon-plus"), _define_property({}, "".concat(classPrefix$i, "-icon-disabled"), shadowValue === max || disabled))
11045
+ className: classNames("".concat(classPrefix$h, "-icon ").concat(classPrefix$h, "-icon-plus"), _define_property({}, "".concat(classPrefix$h, "-icon-disabled"), shadowValue === max || disabled))
11706
11046
  })));
11707
11047
  };
11708
11048
  InputNumber.displayName = "NutInputNumber";
11709
- var defaultProps$W = _object_spread_props(_object_spread({}, ComponentDefaults), {
11049
+ var defaultProps$X = _object_spread_props(_object_spread({}, ComponentDefaults), {
11710
11050
  titleIcon: null,
11711
11051
  columns: 1,
11712
11052
  direction: "down",
@@ -11719,7 +11059,7 @@
11719
11059
  }
11720
11060
  });
11721
11061
  var MenuItem = /* @__PURE__ */ React.forwardRef(function(props, ref) {
11722
- var _$_object_spread = _object_spread({}, defaultProps$W, props), className = _$_object_spread.className, style = _$_object_spread.style, options = _$_object_spread.options, value2 = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, columns = _$_object_spread.columns, title = _$_object_spread.title, icon = _$_object_spread.icon, direction = _$_object_spread.direction, onChange = _$_object_spread.onChange, activeTitleClass = _$_object_spread.activeTitleClass, inactiveTitleClass = _$_object_spread.inactiveTitleClass, closeOnClickAway = _$_object_spread.closeOnClickAway, children = _$_object_spread.children, activeColor = _$_object_spread.activeColor, show2 = _$_object_spread.show, parent2 = _$_object_spread.parent, index2 = _$_object_spread.index;
11062
+ var _$_object_spread = _object_spread({}, defaultProps$X, props), className = _$_object_spread.className, style = _$_object_spread.style, options = _$_object_spread.options, value2 = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, columns = _$_object_spread.columns, title = _$_object_spread.title, icon = _$_object_spread.icon, direction = _$_object_spread.direction, onChange = _$_object_spread.onChange, activeTitleClass = _$_object_spread.activeTitleClass, inactiveTitleClass = _$_object_spread.inactiveTitleClass, closeOnClickAway = _$_object_spread.closeOnClickAway, children = _$_object_spread.children, activeColor = _$_object_spread.activeColor, show2 = _$_object_spread.show, parent2 = _$_object_spread.parent, index2 = _$_object_spread.index;
11723
11063
  var _useState = _sliced_to_array(React.useState(show2), 2), showPopup = _useState[0], setShowPopup = _useState[1];
11724
11064
  var _usePropsValue = _sliced_to_array(usePropsValue({
11725
11065
  defaultValue,
@@ -11771,7 +11111,7 @@
11771
11111
  getParentOffset
11772
11112
  ]);
11773
11113
  var windowHeight = React.useMemo(function() {
11774
- return Taro.getSystemInfoSync().windowHeight;
11114
+ return getWindowInfo().windowHeight;
11775
11115
  }, []);
11776
11116
  var updateItemOffset = React.useCallback(function() {
11777
11117
  if (!parent2.lockScroll) return;
@@ -11829,7 +11169,7 @@
11829
11169
  bottom: "0",
11830
11170
  height: "initial"
11831
11171
  } : {
11832
- bottom: "".concat(Taro.getSystemInfoSync().windowHeight - position2.top, "px"),
11172
+ bottom: "".concat(getWindowInfo().windowHeight - position2.top, "px"),
11833
11173
  top: "0",
11834
11174
  height: "initial"
11835
11175
  };
@@ -11841,7 +11181,7 @@
11841
11181
  }, isShow());
11842
11182
  }
11843
11183
  return _object_spread({
11844
- height: "".concat(Taro.getSystemInfoSync().windowHeight - position2.top, "px"),
11184
+ height: "".concat(getWindowInfo().windowHeight - position2.top, "px"),
11845
11185
  top: "auto"
11846
11186
  }, isShow());
11847
11187
  };
@@ -11904,7 +11244,7 @@
11904
11244
  }), children))));
11905
11245
  });
11906
11246
  MenuItem.displayName = "NutMenuItem";
11907
- var defaultProps$V = _object_spread_props(_object_spread({}, ComponentDefaults), {
11247
+ var defaultProps$W = _object_spread_props(_object_spread({}, ComponentDefaults), {
11908
11248
  activeColor: "",
11909
11249
  closeOnOverlayClick: true,
11910
11250
  scrollFixed: false,
@@ -11917,7 +11257,7 @@
11917
11257
  }
11918
11258
  });
11919
11259
  var Menu = function(props) {
11920
- var _ref = _object_spread({}, defaultProps$V, 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, [
11260
+ var _ref = _object_spread({}, defaultProps$W, 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, [
11921
11261
  "className",
11922
11262
  "icon",
11923
11263
  "scrollFixed",
@@ -12055,7 +11395,7 @@
12055
11395
  };
12056
11396
  Menu.displayName = "NutMenu";
12057
11397
  Menu.Item = MenuItem;
12058
- var defaultProps$U = _object_spread_props(_object_spread({}, ComponentDefaults), {
11398
+ var defaultProps$V = _object_spread_props(_object_spread({}, ComponentDefaults), {
12059
11399
  visible: false,
12060
11400
  rightActions: "",
12061
11401
  type: "default",
@@ -12066,7 +11406,7 @@
12066
11406
  });
12067
11407
  var NumberKeyboard = function(props) {
12068
11408
  var locale = useConfig().locale;
12069
- var _mergeProps = mergeProps(defaultProps$U, props), title = _mergeProps.title, rightActions = _mergeProps.rightActions, confirmText = _mergeProps.confirmText, visible = _mergeProps.visible, type2 = _mergeProps.type, custom = _mergeProps.custom, random2 = _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, [
11409
+ var _mergeProps = mergeProps(defaultProps$V, props), title = _mergeProps.title, rightActions = _mergeProps.rightActions, confirmText = _mergeProps.confirmText, visible = _mergeProps.visible, type2 = _mergeProps.type, custom = _mergeProps.custom, random2 = _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, [
12070
11410
  "title",
12071
11411
  "rightActions",
12072
11412
  "confirmText",
@@ -12249,6 +11589,385 @@
12249
11589
  })))));
12250
11590
  };
12251
11591
  NumberKeyboard.displayName = "NutNumberKeyboard";
11592
+ var isObject = function(val2) {
11593
+ return val2 !== null && (typeof val2 === "undefined" ? "undefined" : _type_of(val2)) === "object";
11594
+ };
11595
+ var isFunction = function(val2) {
11596
+ return typeof val2 === "function";
11597
+ };
11598
+ var isPromise = function(val2) {
11599
+ return isObject(val2) && isFunction(val2.then) && isFunction(val2.catch);
11600
+ };
11601
+ var clamp = function(num, min, max) {
11602
+ return Math.min(Math.max(num, min), max);
11603
+ };
11604
+ function preventDefault$1(event, isStopPropagation) {
11605
+ if (typeof event.cancelable !== "boolean" || event.cancelable) {
11606
+ event.preventDefault();
11607
+ }
11608
+ if (isStopPropagation) {
11609
+ event.stopPropagation();
11610
+ }
11611
+ }
11612
+ var momentum = function(distance, duration) {
11613
+ var speed = Math.abs(distance / duration);
11614
+ return speed / 3e-3 * (distance < 0 ? -1 : 1);
11615
+ };
11616
+ var useStyles = function(touchTime, touchDeg, scrollDistance, lineSpacing, rotation2) {
11617
+ var getTransitionStyle = function(transformValue) {
11618
+ return {
11619
+ transition: "transform ".concat(touchTime, "ms cubic-bezier(0.17, 0.89, 0.45, 1)"),
11620
+ transform: transformValue
11621
+ };
11622
+ };
11623
+ var touchRollerStyle = function() {
11624
+ return getTransitionStyle("rotate3d(1, 0, 0, ".concat(touchDeg, ")"));
11625
+ };
11626
+ var touchTiledStyle = function() {
11627
+ return getTransitionStyle("translate3d(0, ".concat(scrollDistance, "px, 0)"));
11628
+ };
11629
+ var rollerStyle = function(index2) {
11630
+ return {
11631
+ transform: "rotate3d(1, 0, 0, ".concat(-20 * (index2 + 1), "deg) translate3d(0px, 0px, ").concat(Math.round(lineSpacing.current * 3.2), "px)")
11632
+ };
11633
+ };
11634
+ return {
11635
+ touchRollerStyle,
11636
+ touchTiledStyle,
11637
+ rollerStyle
11638
+ };
11639
+ };
11640
+ var InternalPickerRoller = function(props, ref) {
11641
+ var _props_keyIndex = props.keyIndex, keyIndex = _props_keyIndex === void 0 ? 0 : _props_keyIndex, _props_options = props.options, options = _props_options === void 0 ? [] : _props_options, _props_threeDimensional = props.threeDimensional, threeDimensional = _props_threeDimensional === void 0 ? true : _props_threeDimensional, _props_duration = props.duration, duration = _props_duration === void 0 ? 1e3 : _props_duration, onSelect = props.onSelect, _props_renderLabel = props.renderLabel, renderLabel = _props_renderLabel === void 0 ? function(item) {
11642
+ return item.label;
11643
+ } : _props_renderLabel;
11644
+ var DEFAULT_DURATION = 200;
11645
+ var INERTIA_TIME = 300;
11646
+ var INERTIA_DISTANCE = 15;
11647
+ var ROTATION = 20;
11648
+ var touch = useTouch();
11649
+ var _useState = _sliced_to_array(React.useState(1), 2), currentIndex = _useState[0], setCurrentIndex = _useState[1];
11650
+ var lineSpacing = React.useRef(36);
11651
+ var _useState1 = _sliced_to_array(React.useState(0), 2), touchTime = _useState1[0], setTouchTime = _useState1[1];
11652
+ var _useState2 = _sliced_to_array(React.useState("0deg"), 2), touchDeg = _useState2[0], setTouchDeg = _useState2[1];
11653
+ var isMoving = React.useRef(false);
11654
+ var rollerRef = React.useRef(null);
11655
+ var pickerRollerRef = React.useRef(null);
11656
+ var _useState3 = _sliced_to_array(React.useState(0), 2), startTime = _useState3[0], setStartTime = _useState3[1];
11657
+ var _useState4 = _sliced_to_array(React.useState(0), 2), startY = _useState4[0], setStartY = _useState4[1];
11658
+ var transformY = React.useRef(0);
11659
+ var _useState5 = _sliced_to_array(React.useState(0), 2), scrollDistance = _useState5[0], setScrollDistance = _useState5[1];
11660
+ var _useStyles = useStyles(touchTime, touchDeg, scrollDistance, lineSpacing), touchRollerStyle = _useStyles.touchRollerStyle, touchTiledStyle = _useStyles.touchTiledStyle, rollerStyle = _useStyles.rollerStyle;
11661
+ var isItemHidden = function(index2) {
11662
+ return index2 >= currentIndex + 8 || index2 <= currentIndex - 8;
11663
+ };
11664
+ var applyTransform = function(type2, deg) {
11665
+ var time2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : DEFAULT_DURATION, translateY = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
11666
+ setTouchTime(type2 !== "end" ? 0 : time2);
11667
+ setTouchDeg(deg);
11668
+ setScrollDistance(translateY);
11669
+ };
11670
+ var handleMove = function(move, type2, time2) {
11671
+ var updatedMove = move + transformY.current;
11672
+ if (type2 === "end") {
11673
+ updatedMove = Math.max(Math.min(updatedMove, 0), -(options.length - 1) * lineSpacing.current);
11674
+ var endMove = Math.round(updatedMove / lineSpacing.current) * lineSpacing.current;
11675
+ var deg = "".concat((Math.abs(Math.round(endMove / lineSpacing.current)) + 1) * ROTATION, "deg");
11676
+ applyTransform(type2, deg, time2, endMove);
11677
+ setCurrentIndex(Math.abs(Math.round(endMove / lineSpacing.current)) + 1);
11678
+ } else {
11679
+ var currentDeg = (-updatedMove / lineSpacing.current + 1) * ROTATION;
11680
+ var deg1 = Math.min(Math.max(currentDeg, 0), (options.length + 1) * ROTATION);
11681
+ if (deg1 >= 0 && deg1 < (options.length + 1) * ROTATION) {
11682
+ applyTransform("", "".concat(deg1, "deg"), void 0, updatedMove);
11683
+ setCurrentIndex(Math.abs(Math.round(updatedMove / lineSpacing.current)) + 1);
11684
+ }
11685
+ }
11686
+ };
11687
+ var selectValue = function(move) {
11688
+ onSelect === null || onSelect === void 0 ? void 0 : onSelect(options === null || options === void 0 ? void 0 : options[Math.round(-move / lineSpacing.current)], keyIndex);
11689
+ };
11690
+ var handleTouchStart = function(event) {
11691
+ touch.start(event);
11692
+ setStartY(touch.deltaY.current);
11693
+ setStartTime(Date.now());
11694
+ transformY.current = scrollDistance;
11695
+ };
11696
+ var handleTouchMove = function(event) {
11697
+ touch.move(event);
11698
+ if (touch.isVertical) {
11699
+ isMoving.current = true;
11700
+ preventDefault$1(event, true);
11701
+ }
11702
+ var move = touch.deltaY.current - startY;
11703
+ handleMove(move);
11704
+ };
11705
+ var handleTouchEnd = function() {
11706
+ if (!isMoving.current) return;
11707
+ var move = touch.deltaY.current - startY;
11708
+ var moveTime = Date.now() - startTime;
11709
+ if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
11710
+ var distance = momentum(move, moveTime);
11711
+ handleMove(distance, "end", +duration);
11712
+ } else {
11713
+ handleMove(move, "end");
11714
+ }
11715
+ setTimeout(function() {
11716
+ touch.reset();
11717
+ }, 0);
11718
+ };
11719
+ var updateStatus = function(shouldSelect, value2) {
11720
+ var selectedValue = props.value;
11721
+ var index2 = options.findIndex(function(item) {
11722
+ return item.value === selectedValue;
11723
+ });
11724
+ setCurrentIndex(index2 === -1 ? 1 : index2 + 1);
11725
+ var move = index2 * lineSpacing.current;
11726
+ handleMove(-move);
11727
+ };
11728
+ var stopMomentumScroll = function() {
11729
+ isMoving.current = false;
11730
+ setTouchTime(0);
11731
+ selectValue(scrollDistance);
11732
+ };
11733
+ React.useEffect(function() {
11734
+ var element = pickerRollerRef.current;
11735
+ if (element && web()) {
11736
+ var computedStyle = getComputedStyle(element);
11737
+ var currentLineSpacing = computedStyle.getPropertyValue("--nutui-picker-item-height");
11738
+ !!currentLineSpacing && (lineSpacing.current = parseFloat(currentLineSpacing));
11739
+ }
11740
+ }, [
11741
+ pickerRollerRef.current
11742
+ ]);
11743
+ React.useEffect(function() {
11744
+ isMoving.current = false;
11745
+ setScrollDistance(0);
11746
+ transformY.current = 0;
11747
+ updateStatus();
11748
+ }, [
11749
+ options,
11750
+ props.value
11751
+ ]);
11752
+ React.useImperativeHandle(ref, function() {
11753
+ return {
11754
+ stopMomentum: stopMomentumScroll,
11755
+ moving: isMoving.current
11756
+ };
11757
+ });
11758
+ React.useEffect(function() {
11759
+ var _pickerRollerRef_current, _pickerRollerRef_current1, _pickerRollerRef_current2;
11760
+ var eventOptions = passiveSupported ? {
11761
+ passive: false,
11762
+ once: true
11763
+ } : false;
11764
+ (_pickerRollerRef_current = pickerRollerRef.current) === null || _pickerRollerRef_current === void 0 ? void 0 : _pickerRollerRef_current.addEventListener("touchstart", handleTouchStart, eventOptions);
11765
+ (_pickerRollerRef_current1 = pickerRollerRef.current) === null || _pickerRollerRef_current1 === void 0 ? void 0 : _pickerRollerRef_current1.addEventListener("touchmove", handleTouchMove, eventOptions);
11766
+ (_pickerRollerRef_current2 = pickerRollerRef.current) === null || _pickerRollerRef_current2 === void 0 ? void 0 : _pickerRollerRef_current2.addEventListener("touchend", handleTouchEnd, eventOptions);
11767
+ return function() {
11768
+ var _pickerRollerRef_current3, _pickerRollerRef_current12, _pickerRollerRef_current22;
11769
+ (_pickerRollerRef_current3 = pickerRollerRef.current) === null || _pickerRollerRef_current3 === void 0 ? void 0 : _pickerRollerRef_current3.removeEventListener("touchstart", handleTouchStart, eventOptions);
11770
+ (_pickerRollerRef_current12 = pickerRollerRef.current) === null || _pickerRollerRef_current12 === void 0 ? void 0 : _pickerRollerRef_current12.removeEventListener("touchmove", handleTouchMove, eventOptions);
11771
+ (_pickerRollerRef_current22 = pickerRollerRef.current) === null || _pickerRollerRef_current22 === void 0 ? void 0 : _pickerRollerRef_current22.removeEventListener("touchend", handleTouchEnd, eventOptions);
11772
+ };
11773
+ }, [
11774
+ pickerRollerRef.current,
11775
+ handleTouchStart,
11776
+ handleTouchMove,
11777
+ handleTouchEnd
11778
+ ]);
11779
+ return /* @__PURE__ */ React.createElement(components.View, {
11780
+ className: "nut-pickerview-list",
11781
+ ref: pickerRollerRef
11782
+ }, /* @__PURE__ */ React.createElement(components.View, {
11783
+ className: "nut-pickerview-roller",
11784
+ ref: rollerRef,
11785
+ style: threeDimensional ? touchRollerStyle() : touchTiledStyle(),
11786
+ onTransitionEnd: stopMomentumScroll
11787
+ }, threeDimensional && options.map(function(item, index2) {
11788
+ var _item_value;
11789
+ return /* @__PURE__ */ React.createElement(components.View, {
11790
+ className: "nut-pickerview-roller-item ".concat(isItemHidden(index2 + 1) && "nut-pickerview-roller-item-hidden"),
11791
+ style: rollerStyle(index2),
11792
+ key: (_item_value = item.value) !== null && _item_value !== void 0 ? _item_value : index2
11793
+ }, renderLabel(item));
11794
+ }), !threeDimensional && options.map(function(item, index2) {
11795
+ var _item_value;
11796
+ return /* @__PURE__ */ React.createElement(components.View, {
11797
+ className: "nut-pickerview-roller-item-tiled",
11798
+ key: (_item_value = item.value) !== null && _item_value !== void 0 ? _item_value : index2
11799
+ }, renderLabel(item));
11800
+ })));
11801
+ };
11802
+ var PickerRoller = /* @__PURE__ */ React.forwardRef(InternalPickerRoller);
11803
+ var defaultProps$U = _object_spread_props(_object_spread({}, ComponentDefaults), {
11804
+ options: [],
11805
+ defaultValue: [],
11806
+ value: void 0,
11807
+ renderLabel: function(item) {
11808
+ return item.label;
11809
+ }
11810
+ });
11811
+ var InternalPickerView = function(props, ref) {
11812
+ var _$_object_spread = _object_spread({}, defaultProps$U, props), options = _$_object_spread.options, _object_spread_defaultValue = _$_object_spread.defaultValue, defaultValue = _object_spread_defaultValue === void 0 ? [] : _object_spread_defaultValue, value2 = _$_object_spread.value, duration = _$_object_spread.duration, threeDimensional = _$_object_spread.threeDimensional, renderLabel = _$_object_spread.renderLabel, className = _$_object_spread.className, style = _$_object_spread.style, onChange = _$_object_spread.onChange;
11813
+ var classPrefix2 = "nut-pickerview";
11814
+ var cls = classNames(classPrefix2, className);
11815
+ var _usePropsValue = _sliced_to_array(usePropsValue({
11816
+ value: value2,
11817
+ defaultValue: _to_consumable_array(defaultValue),
11818
+ finalValue: _to_consumable_array(defaultValue)
11819
+ }), 1), selectedValue = _usePropsValue[0];
11820
+ var _useState = _sliced_to_array(React.useState(selectedValue), 2), innerValue = _useState[0], setInnerValue = _useState[1];
11821
+ var _useState1 = _sliced_to_array(React.useState([]), 2), innerOptions = _useState1[0], setInnerOptions = _useState1[1];
11822
+ var changeIndex = React.useRef(0);
11823
+ var columnsType = React.useMemo(function() {
11824
+ var firstColumn = props.options[0] || [];
11825
+ if (Array.isArray(firstColumn) && firstColumn.length > 0 && "children" in firstColumn[0]) {
11826
+ return "cascade";
11827
+ }
11828
+ return "multiple";
11829
+ }, [
11830
+ props.options
11831
+ ]);
11832
+ var formatCascadeOptions = function(options2, value3) {
11833
+ var _loop = function() {
11834
+ var currentOptions = columnOptions.children;
11835
+ formatted.push(currentOptions);
11836
+ var currentValue = value3 === null || value3 === void 0 ? void 0 : value3[columnIndex];
11837
+ if (currentValue === 0) {
11838
+ columnOptions = currentOptions[0];
11839
+ } else if (currentValue) {
11840
+ var index2 = currentOptions.findIndex(function(columnItem) {
11841
+ return columnItem.value === currentValue;
11842
+ });
11843
+ columnOptions = currentOptions[index2 === -1 ? 0 : index2];
11844
+ } else {
11845
+ return "break";
11846
+ }
11847
+ columnIndex++;
11848
+ };
11849
+ if (!options2.length) return [];
11850
+ var formatted = [];
11851
+ var columnOptions = {
11852
+ label: "",
11853
+ value: "",
11854
+ children: options2
11855
+ };
11856
+ var columnIndex = 0;
11857
+ while (columnOptions && columnOptions.children) {
11858
+ var _ret = _loop();
11859
+ if (_ret === "break") break;
11860
+ }
11861
+ return formatted;
11862
+ };
11863
+ var formatOptions = React.useMemo(function() {
11864
+ if (columnsType === "cascade") {
11865
+ var _props_options;
11866
+ return formatCascadeOptions(props === null || props === void 0 ? void 0 : (_props_options = props.options) === null || _props_options === void 0 ? void 0 : _props_options[0], innerValue);
11867
+ }
11868
+ return props.options;
11869
+ }, [
11870
+ innerValue,
11871
+ options,
11872
+ columnsType
11873
+ ]);
11874
+ React.useEffect(function() {
11875
+ var options2 = props.options;
11876
+ if (Array.isArray(options2) && options2.length && options2 !== innerOptions) {
11877
+ setInnerOptions(formatOptions);
11878
+ }
11879
+ }, [
11880
+ props.options,
11881
+ innerValue
11882
+ ]);
11883
+ React.useEffect(function() {
11884
+ if (selectedValue !== innerValue) {
11885
+ setInnerValue(selectedValue);
11886
+ }
11887
+ }, [
11888
+ selectedValue
11889
+ ]);
11890
+ var handleSelect = React.useCallback(function(option, index2) {
11891
+ var newValue = option === null || option === void 0 ? void 0 : option.value;
11892
+ if (!newValue || innerValue[index2] === newValue) return;
11893
+ changeIndex.current = index2;
11894
+ if (columnsType === "multiple") {
11895
+ setInnerValue(function(prev) {
11896
+ var next = _to_consumable_array(prev);
11897
+ next[index2] = newValue;
11898
+ return next;
11899
+ });
11900
+ } else {
11901
+ var _option_children, _option_children1, _props_options;
11902
+ var startIndex = index2;
11903
+ var values = [];
11904
+ values[index2] = option.value;
11905
+ while (option === null || option === void 0 ? void 0 : (_option_children = option.children) === null || _option_children === void 0 ? void 0 : _option_children[0]) {
11906
+ values[index2 + 1] = option.children[0].value;
11907
+ index2++;
11908
+ option = option.children[0];
11909
+ }
11910
+ if (option === null || option === void 0 ? void 0 : (_option_children1 = option.children) === null || _option_children1 === void 0 ? void 0 : _option_children1.length) {
11911
+ values[index2 + 1] = "";
11912
+ }
11913
+ var combineResult = _to_consumable_array(innerValue.slice(0, startIndex)).concat(_to_consumable_array(values.splice(startIndex)));
11914
+ setInnerValue(_to_consumable_array(combineResult));
11915
+ var optionFirst = props === null || props === void 0 ? void 0 : (_props_options = props.options) === null || _props_options === void 0 ? void 0 : _props_options[0];
11916
+ if (!isEqual(formatCascadeOptions(optionFirst, combineResult), innerOptions)) {
11917
+ setInnerOptions(formatCascadeOptions(optionFirst, combineResult));
11918
+ }
11919
+ }
11920
+ }, [
11921
+ innerValue,
11922
+ props.options,
11923
+ columnsType,
11924
+ innerOptions
11925
+ ]);
11926
+ var selectedOptions = React.useMemo(function() {
11927
+ return innerOptions.map(function(columnOptions, index2) {
11928
+ var selectedOption = columnOptions.find(function(item) {
11929
+ return item.value === innerValue[index2];
11930
+ });
11931
+ return selectedOption;
11932
+ }).filter(Boolean);
11933
+ }, [
11934
+ innerOptions,
11935
+ innerValue
11936
+ ]);
11937
+ React.useEffect(function() {
11938
+ onChange === null || onChange === void 0 ? void 0 : onChange({
11939
+ value: innerValue,
11940
+ index: changeIndex.current,
11941
+ selectedOptions
11942
+ });
11943
+ }, [
11944
+ innerValue,
11945
+ selectedOptions,
11946
+ onChange
11947
+ ]);
11948
+ return /* @__PURE__ */ React.createElement(components.View, {
11949
+ className: cls,
11950
+ style
11951
+ }, innerOptions.map(function(item, index2) {
11952
+ var _props_setRefs;
11953
+ return /* @__PURE__ */ React.createElement(PickerRoller, {
11954
+ ref: props === null || props === void 0 ? void 0 : (_props_setRefs = props.setRefs) === null || _props_setRefs === void 0 ? void 0 : _props_setRefs.call(props, index2),
11955
+ key: index2,
11956
+ keyIndex: index2,
11957
+ value: innerValue[index2],
11958
+ options: item,
11959
+ renderLabel,
11960
+ onSelect: handleSelect,
11961
+ duration,
11962
+ threeDimensional
11963
+ });
11964
+ }), (innerOptions === null || innerOptions === void 0 ? void 0 : innerOptions.length) ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(components.View, {
11965
+ className: "nut-pickerview-mask"
11966
+ }), /* @__PURE__ */ React.createElement(components.View, {
11967
+ className: "nut-pickerview-indicator"
11968
+ })) : null);
11969
+ };
11970
+ var PickerView = /* @__PURE__ */ React.forwardRef(InternalPickerView);
12252
11971
  const RadioContext = React.createContext(null);
12253
11972
  var defaultProps$T = _object_spread_props(_object_spread({}, ComponentDefaults), {
12254
11973
  disabled: false,
@@ -12260,7 +11979,7 @@
12260
11979
  onChange: function(checked) {
12261
11980
  }
12262
11981
  });
12263
- var Radio$1 = function(props) {
11982
+ var Radio = function(props) {
12264
11983
  var classPrefix2 = "nut-radio";
12265
11984
  var _ref = _object_spread({}, defaultProps$T, props), children = _ref.children, className = _ref.className, style = _ref.style, checked = _ref.checked, defaultChecked = _ref.defaultChecked, shape = _ref.shape, value2 = _ref.value;
12266
11985
  _ref.icon;
@@ -12355,7 +12074,7 @@
12355
12074
  onClick: handleClick
12356
12075
  }, renderRadioItem());
12357
12076
  };
12358
- Radio$1.displayName = "NutRadio";
12077
+ Radio.displayName = "NutRadio";
12359
12078
  var defaultProps$S = {
12360
12079
  labelPosition: "right",
12361
12080
  onChange: function(value2) {
@@ -12363,7 +12082,7 @@
12363
12082
  direction: "vertical",
12364
12083
  options: []
12365
12084
  };
12366
- var classPrefix$h = "nut-radiogroup";
12085
+ var classPrefix$g = "nut-radiogroup";
12367
12086
  var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
12368
12087
  var _ref = _object_spread({}, defaultProps$S, props), children = _ref.children, className = _ref.className;
12369
12088
  _ref.value;
@@ -12380,7 +12099,7 @@
12380
12099
  "options",
12381
12100
  "disabled"
12382
12101
  ]);
12383
- var cls = classNames(classPrefix$h, _define_property({}, "".concat(classPrefix$h, "-").concat(direction), direction), className);
12102
+ var cls = classNames(classPrefix$g, _define_property({}, "".concat(classPrefix$g, "-").concat(direction), direction), className);
12384
12103
  var _usePropsValue = _sliced_to_array(usePropsValue({
12385
12104
  defaultValue: props.defaultValue,
12386
12105
  value: props.value,
@@ -12395,7 +12114,7 @@
12395
12114
  "disabled",
12396
12115
  "onChange"
12397
12116
  ]);
12398
- return /* @__PURE__ */ React.createElement(Radio, _object_spread_props(_object_spread({}, rest2), {
12117
+ return /* @__PURE__ */ React.createElement(InnerRadio, _object_spread_props(_object_spread({}, rest2), {
12399
12118
  key: value2 === null || value2 === void 0 ? void 0 : value2.toString(),
12400
12119
  children: label,
12401
12120
  value: value2,
@@ -12428,9 +12147,8 @@
12428
12147
  }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptionsChildren() : children));
12429
12148
  });
12430
12149
  RadioGroup.displayName = "NutRadioGroup";
12431
- var InnerRadio = Radio$1;
12150
+ var InnerRadio = Radio;
12432
12151
  InnerRadio.Group = RadioGroup;
12433
- const Radio = InnerRadio;
12434
12152
  var defaultProps$R = _object_spread_props(_object_spread({}, ComponentDefaults), {
12435
12153
  range: false,
12436
12154
  min: 0,
@@ -12439,11 +12157,9 @@
12439
12157
  vertical: false,
12440
12158
  marks: {}
12441
12159
  });
12442
- var isRn = rn();
12443
12160
  var isHm = harmony();
12444
- var isNative = harmonyAndRn();
12445
- var classPrefix$g = "nut-range";
12446
- var verticalClassPrefix = "".concat(classPrefix$g, "-vertical");
12161
+ var classPrefix$f = "nut-range";
12162
+ var verticalClassPrefix = "".concat(classPrefix$f, "-vertical");
12447
12163
  var isSameValue = function(newValue, oldValue) {
12448
12164
  return JSON.stringify(newValue) === JSON.stringify(oldValue);
12449
12165
  };
@@ -12457,7 +12173,7 @@
12457
12173
  var rtl = useRtl();
12458
12174
  var _$_object_spread = _object_spread({}, defaultProps$R, props), className = _$_object_spread.className, style = _$_object_spread.style, range2 = _$_object_spread.range, disabled = _$_object_spread.disabled, button = _$_object_spread.button, vertical = _$_object_spread.vertical, marks = _$_object_spread.marks, minDescription = _$_object_spread.minDescription, maxDescription = _$_object_spread.maxDescription, currentDescription = _$_object_spread.currentDescription, min = _$_object_spread.min, max = _$_object_spread.max, step = _$_object_spread.step, value2 = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, onChange = _$_object_spread.onChange, onStart = _$_object_spread.onStart, onEnd = _$_object_spread.onEnd;
12459
12175
  var rtlClassPrefix = React.useMemo(function() {
12460
- return "rtl-".concat(vertical ? verticalClassPrefix : classPrefix$g);
12176
+ return "rtl-".concat(vertical ? verticalClassPrefix : classPrefix$f);
12461
12177
  }, [
12462
12178
  vertical
12463
12179
  ]);
@@ -12519,9 +12235,9 @@
12519
12235
  min
12520
12236
  ]);
12521
12237
  var _obj;
12522
- var classes = classNames(classPrefix$g, (_obj = {}, _define_property(_obj, "".concat(classPrefix$g, "-disabled"), disabled), _define_property(_obj, verticalClassPrefix, vertical), _define_property(_obj, "".concat(classPrefix$g, "-native"), isNative), _obj));
12238
+ var classes = classNames(classPrefix$f, (_obj = {}, _define_property(_obj, "".concat(classPrefix$f, "-disabled"), disabled), _define_property(_obj, verticalClassPrefix, vertical), _define_property(_obj, "".concat(classPrefix$f, "-native"), isHm), _obj));
12523
12239
  var _obj1;
12524
- var containerClasses = classNames("".concat(classPrefix$g, "-container"), (_obj1 = {}, _define_property(_obj1, "".concat(classPrefix$g, "-container-native"), isNative), _define_property(_obj1, "".concat(verticalClassPrefix, "-container"), vertical), _obj1), className);
12240
+ var containerClasses = classNames("".concat(classPrefix$f, "-container"), (_obj1 = {}, _define_property(_obj1, "".concat(classPrefix$f, "-container-native"), isHm), _define_property(_obj1, "".concat(verticalClassPrefix, "-container"), vertical), _obj1), className);
12525
12241
  var markClassName = React.useCallback(function(mark) {
12526
12242
  var classPrefix2 = "nut-range-mark";
12527
12243
  var verticalClassPrefix2 = "nut-range-vertical-mark";
@@ -12745,7 +12461,7 @@
12745
12461
  if (dragStatus === "start") {
12746
12462
  onStart && onStart();
12747
12463
  }
12748
- touch.move(isRn ? event.nativeEvent : event);
12464
+ touch.move(event);
12749
12465
  setDragStatus("draging");
12750
12466
  return [
12751
12467
  4,
@@ -12824,31 +12540,12 @@
12824
12540
  var transform2 = {
12825
12541
  transform: "translate(-50%, -50%)"
12826
12542
  };
12827
- if (isRn) {
12828
- return _object_spread_props(_object_spread({}, borderRadis), {
12829
- transform: [
12830
- {
12831
- translateX: pxTransform(-12)
12832
- }
12833
- ]
12834
- });
12835
- }
12836
12543
  if (isHm) {
12837
12544
  return _object_spread({}, borderRadis, transform2);
12838
12545
  }
12839
12546
  return _object_spread({}, transform2);
12840
12547
  }, []);
12841
12548
  var buttonNumberTransform = React.useMemo(function() {
12842
- if (isRn) {
12843
- return [
12844
- {
12845
- translateX: pxTransform(vertical ? 26 : -12)
12846
- },
12847
- {
12848
- translateY: pxTransform(vertical ? -12 : -26)
12849
- }
12850
- ];
12851
- }
12852
12549
  return vertical ? "translate(100%, -50%)" : "translate(-50%, -100%)";
12853
12550
  }, [
12854
12551
  vertical
@@ -12856,11 +12553,11 @@
12856
12553
  var renderButton = React.useCallback(function(index2) {
12857
12554
  var _obj2, _obj12;
12858
12555
  return /* @__PURE__ */ React.createElement(components.View, null, button || /* @__PURE__ */ React.createElement(components.View, {
12859
- className: classNames("".concat(classPrefix$g, "-button"), (_obj2 = {}, _define_property(_obj2, "".concat(verticalClassPrefix, "-button"), vertical), _define_property(_obj2, "".concat(rtlClassPrefix, "-button"), rtl), _obj2)),
12556
+ className: classNames("".concat(classPrefix$f, "-button"), (_obj2 = {}, _define_property(_obj2, "".concat(verticalClassPrefix, "-button"), vertical), _define_property(_obj2, "".concat(rtlClassPrefix, "-button"), rtl), _obj2)),
12860
12557
  // @ts-ignore
12861
12558
  style: buttonTransform
12862
12559
  }, currentDescription !== null && /* @__PURE__ */ React.createElement(components.Text, {
12863
- className: classNames("".concat(classPrefix$g, "-button-number"), (_obj12 = {}, _define_property(_obj12, "".concat(verticalClassPrefix, "-button-number"), vertical), _define_property(_obj12, "".concat(rtlClassPrefix, "-button-number"), rtl), _obj12)),
12560
+ className: classNames("".concat(classPrefix$f, "-button-number"), (_obj12 = {}, _define_property(_obj12, "".concat(verticalClassPrefix, "-button-number"), vertical), _define_property(_obj12, "".concat(rtlClassPrefix, "-button-number"), rtl), _obj12)),
12864
12561
  style: {
12865
12562
  // @ts-ignore
12866
12563
  transform: buttonNumberTransform
@@ -12879,8 +12576,8 @@
12879
12576
  var renderMarks = React.useCallback(function() {
12880
12577
  if (marksList.length <= 0) return null;
12881
12578
  var _obj2;
12882
- var markcls = classNames("".concat(classPrefix$g, "-mark"), (_obj2 = {}, _define_property(_obj2, "".concat(verticalClassPrefix, "-mark"), vertical), _define_property(_obj2, "".concat(rtlClassPrefix, "-mark"), rtl), _define_property(_obj2, "".concat(vertical ? verticalClassPrefix : classPrefix$g, "-mark-hm"), isHm), _obj2));
12883
- var textcls = classNames("".concat(classPrefix$g, "-mark-text"), _define_property({}, "".concat(verticalClassPrefix, "-mark-text"), vertical));
12579
+ var markcls = classNames("".concat(classPrefix$f, "-mark"), (_obj2 = {}, _define_property(_obj2, "".concat(verticalClassPrefix, "-mark"), vertical), _define_property(_obj2, "".concat(rtlClassPrefix, "-mark"), rtl), _define_property(_obj2, "".concat(vertical ? verticalClassPrefix : classPrefix$f, "-mark-hm"), isHm), _obj2));
12580
+ var textcls = classNames("".concat(classPrefix$f, "-mark-text"), _define_property({}, "".concat(verticalClassPrefix, "-mark-text"), vertical));
12884
12581
  return /* @__PURE__ */ React.createElement(components.View, {
12885
12582
  className: markcls
12886
12583
  }, marksList.map(function(mark) {
@@ -12892,7 +12589,7 @@
12892
12589
  }, /* @__PURE__ */ React.createElement(components.Text, {
12893
12590
  className: textcls
12894
12591
  }, Array.isArray(marks) ? marksRef.current[mark] : marks[mark]), /* @__PURE__ */ React.createElement(components.View, {
12895
- className: classNames("".concat(vertical ? verticalClassPrefix : classPrefix$g, "-tick"), (_obj3 = {}, _define_property(_obj3, "".concat(vertical ? verticalClassPrefix : classPrefix$g, "-tick-active"), tickClass(mark)), _define_property(_obj3, "".concat(rtlClassPrefix, "-tick"), rtl), _obj3))
12592
+ className: classNames("".concat(vertical ? verticalClassPrefix : classPrefix$f, "-tick"), (_obj3 = {}, _define_property(_obj3, "".concat(vertical ? verticalClassPrefix : classPrefix$f, "-tick-active"), tickClass(mark)), _define_property(_obj3, "".concat(rtlClassPrefix, "-tick"), rtl), _obj3))
12896
12593
  }));
12897
12594
  }));
12898
12595
  }, [
@@ -12906,7 +12603,7 @@
12906
12603
  vertical
12907
12604
  ]);
12908
12605
  var wrapperTransform = React.useMemo(function() {
12909
- var wrapperTransformRN = [
12606
+ [
12910
12607
  {
12911
12608
  translateX: pxTransform(vertical ? -12 : -13)
12912
12609
  },
@@ -12915,21 +12612,11 @@
12915
12612
  }
12916
12613
  ];
12917
12614
  var wrapperTransform2 = "translate(-50%, -50%)";
12918
- return isRn ? wrapperTransformRN : wrapperTransform2;
12615
+ return wrapperTransform2;
12919
12616
  }, [
12920
12617
  vertical
12921
12618
  ]);
12922
12619
  var rangeWrapperTransform = React.useMemo(function() {
12923
- if (isRn) {
12924
- return [
12925
- {
12926
- translateX: pxTransform(-12)
12927
- },
12928
- {
12929
- translateY: pxTransform(-13)
12930
- }
12931
- ];
12932
- }
12933
12620
  return "translate(-50%, -50%)";
12934
12621
  }, []);
12935
12622
  var renderRangeButton = React.useCallback(function() {
@@ -12940,7 +12627,7 @@
12940
12627
  var isLeft = index2 === 0;
12941
12628
  var suffix = isLeft ? "left" : "right";
12942
12629
  var _obj2;
12943
- var cls = classNames("".concat(classPrefix$g, "-button-wrapper-").concat(suffix), (_obj2 = {}, _define_property(_obj2, "".concat(verticalClassPrefix, "-button-wrapper-").concat(suffix), vertical), _define_property(_obj2, "".concat(rtlClassPrefix, "-button-wrapper-").concat(suffix), rtl), _obj2));
12630
+ var cls = classNames("".concat(classPrefix$f, "-button-wrapper-").concat(suffix), (_obj2 = {}, _define_property(_obj2, "".concat(verticalClassPrefix, "-button-wrapper-").concat(suffix), vertical), _define_property(_obj2, "".concat(rtlClassPrefix, "-button-wrapper-").concat(suffix), rtl), _obj2));
12944
12631
  return /* @__PURE__ */ React.createElement(components.View, {
12945
12632
  key: index2,
12946
12633
  className: cls,
@@ -12956,7 +12643,7 @@
12956
12643
  onTouchEnd,
12957
12644
  onTouchCancel: onTouchEnd,
12958
12645
  onClick: function(e2) {
12959
- return !isRn && e2.stopPropagation();
12646
+ return e2.stopPropagation();
12960
12647
  }
12961
12648
  }, renderButton(index2));
12962
12649
  });
@@ -12973,7 +12660,7 @@
12973
12660
  var renderSingleButton = React.useCallback(function() {
12974
12661
  return /* @__PURE__ */ React.createElement(components.View, {
12975
12662
  catchMove: true,
12976
- className: classNames("".concat(classPrefix$g, "-button-wrapper"), _define_property({}, "".concat(verticalClassPrefix, "-button-wrapper"), vertical)),
12663
+ className: classNames("".concat(classPrefix$f, "-button-wrapper"), _define_property({}, "".concat(verticalClassPrefix, "-button-wrapper"), vertical)),
12977
12664
  style: {
12978
12665
  // @ts-ignore
12979
12666
  transform: wrapperTransform
@@ -12983,7 +12670,7 @@
12983
12670
  onTouchEnd,
12984
12671
  onTouchCancel: onTouchEnd,
12985
12672
  onClick: function(e2) {
12986
- return !isRn && e2.stopPropagation();
12673
+ return e2.stopPropagation();
12987
12674
  }
12988
12675
  }, renderButton());
12989
12676
  }, [
@@ -13008,7 +12695,7 @@
13008
12695
  className: containerClasses,
13009
12696
  style
13010
12697
  }, minDescription !== null && /* @__PURE__ */ React.createElement(components.Text, {
13011
- className: "".concat(classPrefix$g, "-min")
12698
+ className: "".concat(classPrefix$f, "-min")
13012
12699
  }, minDescription || min), /* @__PURE__ */ React.createElement(components.View, {
13013
12700
  ref: root2,
13014
12701
  className: classes,
@@ -13016,10 +12703,10 @@
13016
12703
  return click(e2);
13017
12704
  }
13018
12705
  }, renderMarks(), /* @__PURE__ */ React.createElement(components.View, {
13019
- className: "".concat(classPrefix$g, "-bar"),
12706
+ className: "".concat(classPrefix$f, "-bar"),
13020
12707
  style: barStyle()
13021
12708
  }, renderButtonWrapper())), maxDescription !== null && /* @__PURE__ */ React.createElement(components.Text, {
13022
- className: "".concat(classPrefix$g, "-max")
12709
+ className: "".concat(classPrefix$f, "-max")
13023
12710
  }, maxDescription || max));
13024
12711
  };
13025
12712
  Range.displayName = "NutRange";
@@ -13730,19 +13417,21 @@
13730
13417
  setInputValue("");
13731
13418
  }
13732
13419
  };
13420
+ var isDisabled = function() {
13421
+ return disabled || readOnly;
13422
+ };
13733
13423
  var handleFocus = function(event) {
13734
- if (disabled) return;
13735
- if (readOnly) return;
13736
- onFocus && onFocus(event);
13424
+ if (isDisabled()) return;
13425
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
13737
13426
  };
13738
13427
  var handleBlur = function(event) {
13739
- if (disabled) return;
13740
- if (readOnly) return;
13741
- onBlur && onBlur(event);
13428
+ if (isDisabled()) return;
13429
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
13742
13430
  };
13431
+ var _obj;
13743
13432
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(components.View, {
13744
- className: classNames(classPrefix2, disabled ? "".concat(classPrefix2, "-disabled") : "", readOnly ? "".concat(classPrefix2, "-readonly") : "", rtl ? "".concat(classPrefix2, "-rtl") : "", plain ? "".concat(classPrefix2, "-plain") : "".concat(classPrefix2, "-container"), status ? "".concat(classPrefix2, "-").concat(status) : "", className)
13745
- }, /* @__PURE__ */ React.createElement(components.Textarea, _object_spread({
13433
+ className: classNames(classPrefix2, (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj, "".concat(classPrefix2, "-readonly"), readOnly), _define_property(_obj, "".concat(classPrefix2, "-rtl"), rtl), _define_property(_obj, "".concat(classPrefix2, "-plain"), plain), _define_property(_obj, "".concat(classPrefix2, "-container"), !plain), _define_property(_obj, "".concat(classPrefix2, "-").concat(status), status), _obj), className)
13434
+ }, /* @__PURE__ */ React.createElement(components.Textarea, _object_spread_props(_object_spread({}, rest), {
13746
13435
  nativeProps: {
13747
13436
  style,
13748
13437
  readOnly,
@@ -13754,48 +13443,22 @@
13754
13443
  compositionRef.current = false;
13755
13444
  }
13756
13445
  },
13757
- className: "".concat(classPrefix2, "-textarea ").concat(disabled ? "".concat(classPrefix2, "-textarea-disabled") : ""),
13446
+ className: classNames("".concat(classPrefix2, "-textarea"), _define_property({}, "".concat(classPrefix2, "-textarea-disabled"), disabled)),
13758
13447
  style: Taro.getEnv() === "WEB" ? void 0 : style,
13759
13448
  disabled: Taro.getEnv() === "WEB" ? disabled : disabled || readOnly,
13760
13449
  // @ts-ignore
13761
13450
  value: inputValue,
13762
- onInput: function(e2) {
13763
- return handleChange(e2);
13764
- },
13765
- onBlur: function(e2) {
13766
- return handleBlur(e2);
13767
- },
13768
- onFocus: function(e2) {
13769
- return handleFocus(e2);
13770
- },
13451
+ onInput: handleChange,
13452
+ onBlur: handleBlur,
13453
+ onFocus: handleFocus,
13771
13454
  autoHeight: autoSize,
13772
13455
  maxlength: maxLength,
13773
- placeholder: placeholder || locale.placeholder
13774
- }, rest)), showCount && /* @__PURE__ */ React.createElement(components.Text, {
13775
- className: "".concat(classPrefix2, "-limit ").concat(disabled ? "".concat(classPrefix2, "-limit-disabled") : "")
13456
+ placeholder: placeholder !== void 0 ? placeholder : locale.placeholder
13457
+ })), showCount && /* @__PURE__ */ React.createElement(components.Text, {
13458
+ className: classNames("".concat(classPrefix2, "-limit"), _define_property({}, "".concat(classPrefix2, "-limit-disabled"), disabled))
13776
13459
  }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)));
13777
13460
  };
13778
13461
  TextArea.displayName = "NutTextArea";
13779
- var isObject = function(val2) {
13780
- return val2 !== null && (typeof val2 === "undefined" ? "undefined" : _type_of(val2)) === "object";
13781
- };
13782
- var isFunction = function(val2) {
13783
- return typeof val2 === "function";
13784
- };
13785
- var isPromise = function(val2) {
13786
- return isObject(val2) && isFunction(val2.then) && isFunction(val2.catch);
13787
- };
13788
- var clamp = function(num, min, max) {
13789
- return Math.min(Math.max(num, min), max);
13790
- };
13791
- function preventDefault$1(event, isStopPropagation) {
13792
- if (typeof event.cancelable !== "boolean" || event.cancelable) {
13793
- event.preventDefault();
13794
- }
13795
- if (isStopPropagation) {
13796
- event.stopPropagation();
13797
- }
13798
- }
13799
13462
  var funcInterceptor = function(interceptor, param) {
13800
13463
  var _param_args = param.args, args = _param_args === void 0 ? [] : _param_args, done = param.done, canceled = param.canceled;
13801
13464
  if (interceptor) {
@@ -13936,7 +13599,7 @@
13936
13599
  React.useEffect(function() {
13937
13600
  if (web()) {
13938
13601
  handleWebObserver();
13939
- } else if (!harmonyAndRn()) {
13602
+ } else if (!harmony()) {
13940
13603
  handleOtherObserver();
13941
13604
  }
13942
13605
  }, []);
@@ -13951,19 +13614,16 @@
13951
13614
  if (children) {
13952
13615
  return 0;
13953
13616
  }
13954
- if (!harmonyAndRn()) {
13617
+ if (!harmony()) {
13955
13618
  return Math.floor("".concat(percent, "%").length * 9 / 2);
13956
13619
  }
13957
- if (rn()) {
13958
- return "".concat(percent, "%").length * 9 + 4;
13959
- }
13960
13620
  return Math.floor(("".concat(percent, "%").length * 9 + 4) / 2);
13961
13621
  };
13962
13622
  var computeInnerStyle = function() {
13963
13623
  var style2 = {
13964
13624
  backgroundColor: color || "#ff0f23"
13965
13625
  };
13966
- if (harmonyAndRn()) {
13626
+ if (harmony()) {
13967
13627
  style2.width = harmony() ? pxTransform("".concat(percent, "%").length * 9 + 4) : "".concat(percent, "%").length * 9 + 4;
13968
13628
  }
13969
13629
  return style2;
@@ -14626,18 +14286,28 @@
14626
14286
  }));
14627
14287
  };
14628
14288
  ActionSheet.displayName = "NutActionSheet";
14289
+ var defaultContentProps = {
14290
+ visible: false,
14291
+ title: "",
14292
+ header: "",
14293
+ footer: "",
14294
+ close: "",
14295
+ footerDirection: "horizontal",
14296
+ onClick: function() {
14297
+ }
14298
+ };
14629
14299
  var Content = function(props) {
14630
- var visible = props.visible, title = props.title, header = props.header, footer = props.footer, close2 = props.close, footerDirection = props.footerDirection, onClick = props.onClick, children = props.children;
14300
+ 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;
14631
14301
  var classPrefix2 = "nut-dialog";
14632
14302
  var renderHeader = function() {
14633
- return title ? /* @__PURE__ */ React.createElement(components.View, {
14303
+ return title && /* @__PURE__ */ React.createElement(components.View, {
14634
14304
  className: "".concat(classPrefix2, "-header")
14635
- }, title) : null;
14305
+ }, title);
14636
14306
  };
14637
14307
  var renderFooter = function() {
14638
- return footer ? /* @__PURE__ */ React.createElement(components.View, {
14308
+ return footer && /* @__PURE__ */ React.createElement(components.View, {
14639
14309
  className: classNames("".concat(classPrefix2, "-footer"), _define_property({}, footerDirection, footerDirection))
14640
- }, footer) : null;
14310
+ }, footer);
14641
14311
  };
14642
14312
  var handleClick = function(e2) {
14643
14313
  onClick && onClick(e2);
@@ -14655,7 +14325,7 @@
14655
14325
  }
14656
14326
  }, renderHeader(), /* @__PURE__ */ React.createElement(components.View, {
14657
14327
  className: "".concat(classPrefix2, "-content")
14658
- }, /* @__PURE__ */ React.createElement(React.Fragment, null, children)), renderFooter()));
14328
+ }, children), renderFooter()));
14659
14329
  };
14660
14330
  Content.displayName = "NutContent";
14661
14331
  var customEvents = new Taro.Events();
@@ -14704,7 +14374,7 @@
14704
14374
  setParams
14705
14375
  };
14706
14376
  }
14707
- var defaultProps$H = {
14377
+ var defaultProps$H = _object_spread_props(_object_spread({}, defaultOverlayProps, defaultContentProps), {
14708
14378
  title: "",
14709
14379
  content: "",
14710
14380
  header: "",
@@ -14712,40 +14382,39 @@
14712
14382
  confirmText: "",
14713
14383
  cancelText: "",
14714
14384
  overlay: true,
14715
- closeOnOverlayClick: true,
14385
+ overlayStyle: {},
14386
+ overlayClassName: "nut-dialog-overlay",
14716
14387
  hideConfirmButton: false,
14717
14388
  hideCancelButton: false,
14718
14389
  disableConfirmButton: false,
14719
14390
  footerDirection: "horizontal",
14720
- lockScroll: true,
14721
14391
  closeIconPosition: "bottom",
14722
14392
  closeIcon: false,
14393
+ zIndex: 1200,
14723
14394
  beforeCancel: function() {
14724
14395
  return true;
14725
14396
  },
14726
14397
  beforeClose: function() {
14727
14398
  return true;
14728
14399
  },
14400
+ onCancel: function() {
14401
+ },
14402
+ onClose: function() {
14403
+ },
14729
14404
  onOverlayClick: function() {
14730
14405
  return true;
14731
14406
  }
14732
- };
14407
+ });
14733
14408
  var BaseDialog = function(props) {
14734
14409
  var classPrefix2 = "nut-dialog";
14735
14410
  var locale = useConfig().locale;
14736
14411
  var _useState = _sliced_to_array(React.useState(false), 2), loading = _useState[0], setLoading = _useState[1];
14737
- 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, onOverlayClick = _useParams_params.onOverlayClick, confirmText = _useParams_params.confirmText, cancelText = _useParams_params.cancelText, overlay = _useParams_params.overlay, closeIconPosition = _useParams_params.closeIconPosition, closeIcon = _useParams_params.closeIcon, onClose = _useParams_params.onClose, onCancel = _useParams_params.onCancel, onConfirm = _useParams_params.onConfirm, beforeCancel = _useParams_params.beforeCancel, beforeClose = _useParams_params.beforeClose, setParams = _useParams.setParams;
14412
+ 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;
14738
14413
  useCustomEvent(id, function(param) {
14739
14414
  var status = param.status, options = param.options;
14740
- if (status) {
14741
- setParams(_object_spread_props(_object_spread({}, options), {
14742
- visible: true
14743
- }));
14744
- } else {
14745
- setParams(_object_spread_props(_object_spread({}, options), {
14746
- visible: false
14747
- }));
14748
- }
14415
+ setParams(_object_spread_props(_object_spread({}, options), {
14416
+ visible: status
14417
+ }));
14749
14418
  });
14750
14419
  var refObject = useLockScrollTaro(!!(visible && lockScroll));
14751
14420
  var renderFooter = function() {
@@ -14846,9 +14515,9 @@
14846
14515
  };
14847
14516
  var onHandleClickOverlay = function(e2) {
14848
14517
  if (closeOnOverlayClick && visible && e2.target === e2.currentTarget) {
14849
- var closed = onOverlayClick && onOverlayClick();
14850
- closed && (onClose === null || onClose === void 0 ? void 0 : onClose());
14851
- closed && (onCancel === null || onCancel === void 0 ? void 0 : onCancel());
14518
+ var closed = onOverlayClick && onOverlayClick(e2);
14519
+ closed && onClose && onClose();
14520
+ closed && onCancel && onCancel();
14852
14521
  }
14853
14522
  };
14854
14523
  return /* @__PURE__ */ React.createElement(components.View, {
@@ -14857,13 +14526,15 @@
14857
14526
  },
14858
14527
  ref: refObject,
14859
14528
  catchMove: lockScroll
14860
- }, /* @__PURE__ */ React.createElement(React.Fragment, null, overlay ? /* @__PURE__ */ React.createElement(Overlay, {
14529
+ }, /* @__PURE__ */ React.createElement(React.Fragment, null, overlay && /* @__PURE__ */ React.createElement(Overlay, {
14530
+ zIndex,
14861
14531
  visible,
14532
+ style: overlayStyle,
14533
+ className: overlayClassName,
14862
14534
  closeOnOverlayClick,
14863
14535
  lockScroll,
14864
- onClick: onHandleClickOverlay,
14865
- className: classNames("nut-dialog-overlay")
14866
- }) : null, /* @__PURE__ */ React.createElement(CSSTransition, {
14536
+ onClick: onHandleClickOverlay
14537
+ }), /* @__PURE__ */ React.createElement(CSSTransition, {
14867
14538
  in: visible,
14868
14539
  timeout: 300,
14869
14540
  classNames: "fadeDialog",
@@ -14938,7 +14609,7 @@
14938
14609
  var middleLine = React.useRef(0);
14939
14610
  var getInfo = /* @__PURE__ */ function() {
14940
14611
  var _ref2 = _async_to_generator(function() {
14941
- var el, _dragRef_current, top, left2, bottom, right2, _getSystemInfoSync, screenWidth, windowHeight, _ref3, width2, height2;
14612
+ var el, _dragRef_current, top, left2, bottom, right2, _getWindowInfo, screenWidth, windowHeight, _ref3, width2, height2;
14942
14613
  return __generator(this, function(_state) {
14943
14614
  switch (_state.label) {
14944
14615
  case 0:
@@ -14948,7 +14619,7 @@
14948
14619
  2
14949
14620
  ];
14950
14621
  top = boundary.top, left2 = boundary.left, bottom = boundary.bottom, right2 = boundary.right;
14951
- _getSystemInfoSync = Taro.getSystemInfoSync(), screenWidth = _getSystemInfoSync.screenWidth, windowHeight = _getSystemInfoSync.windowHeight;
14622
+ _getWindowInfo = getWindowInfo(), screenWidth = _getWindowInfo.screenWidth, windowHeight = _getWindowInfo.windowHeight;
14952
14623
  return [
14953
14624
  4,
14954
14625
  getRectByTaro(dragRef.current)
@@ -15076,7 +14747,7 @@
15076
14747
  status: "empty",
15077
14748
  actions: []
15078
14749
  });
15079
- var classPrefix$f = "nut-empty";
14750
+ var classPrefix$e = "nut-empty";
15080
14751
  var Empty = function(props) {
15081
14752
  var _$_object_spread = _object_spread({}, defaultProps$F, props), image = _$_object_spread.image, imageSize = _$_object_spread.imageSize, title = _$_object_spread.title, description = _$_object_spread.description, children = _$_object_spread.children, className = _$_object_spread.className, size = _$_object_spread.size, status = _$_object_spread.status, actions = _$_object_spread.actions, style = _$_object_spread.style;
15082
14753
  var _useState = _sliced_to_array(React.useState({}), 2), imgStyle = _useState[0], setImgStyle = _useState[1];
@@ -15089,12 +14760,11 @@
15089
14760
  src: imageUrl
15090
14761
  }) : imageUrl;
15091
14762
  React.useEffect(function() {
15092
- var isRN = Taro.getEnv() === Taro.ENV_TYPE.RN;
15093
14763
  setImgStyle(function() {
15094
14764
  if (!imageSize) {
15095
14765
  return {};
15096
14766
  }
15097
- if (isRN || typeof imageSize !== "number") {
14767
+ if (typeof imageSize !== "number") {
15098
14768
  return {
15099
14769
  width: imageSize,
15100
14770
  height: imageSize
@@ -15108,26 +14778,26 @@
15108
14778
  }, [
15109
14779
  imageSize
15110
14780
  ]);
15111
- var cls = classNames(classPrefix$f, className);
14781
+ var cls = classNames(classPrefix$e, className);
15112
14782
  return /* @__PURE__ */ React.createElement(components.View, {
15113
14783
  className: cls,
15114
14784
  style
15115
14785
  }, /* @__PURE__ */ React.createElement(components.View, {
15116
- className: "".concat(classPrefix$f, "-").concat(size),
14786
+ className: "".concat(classPrefix$e, "-").concat(size),
15117
14787
  style: imgStyle
15118
14788
  }, imageNode), typeof title === "string" && title ? /* @__PURE__ */ React.createElement(components.View, {
15119
- className: "".concat(classPrefix$f, "-title")
14789
+ className: "".concat(classPrefix$e, "-title")
15120
14790
  }, title) : title, typeof description === "string" ? /* @__PURE__ */ React.createElement(components.View, {
15121
- className: "".concat(classPrefix$f, "-description")
14791
+ className: "".concat(classPrefix$e, "-description")
15122
14792
  }, description) : description, actions.length ? /* @__PURE__ */ React.createElement(components.View, {
15123
- className: "".concat(classPrefix$f, "-actions-").concat(size)
14793
+ className: "".concat(classPrefix$e, "-actions-").concat(size)
15124
14794
  }, actions.map(function(action, index2) {
15125
14795
  action.text;
15126
14796
  var rest = _object_without_properties(action, [
15127
14797
  "text"
15128
14798
  ]);
15129
14799
  return /* @__PURE__ */ React.createElement(components.View, {
15130
- className: "".concat(classPrefix$f, "-action"),
14800
+ className: "".concat(classPrefix$e, "-action"),
15131
14801
  key: index2
15132
14802
  }, /* @__PURE__ */ React.createElement(Button, rest, action === null || action === void 0 ? void 0 : action.text));
15133
14803
  })) : null, children);
@@ -15194,7 +14864,7 @@
15194
14864
  target: "",
15195
14865
  pullRefresh: false
15196
14866
  });
15197
- var classPrefix$e = "nut-infiniteloading";
14867
+ var classPrefix$d = "nut-infiniteloading";
15198
14868
  var InfiniteLoading = function(props) {
15199
14869
  var getBottomTipsText = function getBottomTipsText2() {
15200
14870
  if (isInfiniting) {
@@ -15230,7 +14900,7 @@
15230
14900
  var y = React.useRef(0);
15231
14901
  var refreshMaxH = React.useRef(0);
15232
14902
  var distance = React.useRef(0);
15233
- var classes = classNames(classPrefix$e, className, "".concat(classPrefix$e, "-").concat(type2));
14903
+ var classes = classNames(classPrefix$d, className, "".concat(classPrefix$d, "-").concat(type2));
15234
14904
  React.useEffect(function() {
15235
14905
  refreshMaxH.current = threshold;
15236
14906
  var timer = setTimeout(function() {
@@ -32118,7 +31788,7 @@
32118
31788
  return View;
32119
31789
  };
32120
31790
  var _excluded = ["style", "interactivity"];
32121
- var Lottie$4 = function Lottie2(props) {
31791
+ var Lottie$3 = function Lottie2(props) {
32122
31792
  var _a, _b, _c;
32123
31793
  var style = props.style, interactivity = props.interactivity, lottieProps = _objectWithoutProperties(props, _excluded);
32124
31794
  var _useLottie = useLottie(lottieProps, style), View = _useLottie.View, play = _useLottie.play, stop = _useLottie.stop, pause = _useLottie.pause, setSpeed = _useLottie.setSpeed, goToAndStop = _useLottie.goToAndStop, goToAndPlay = _useLottie.goToAndPlay, setDirection = _useLottie.setDirection, playSegments = _useLottie.playSegments, setSubframe = _useLottie.setSubframe, getDuration = _useLottie.getDuration, destroy = _useLottie.destroy, animationContainerRef = _useLottie.animationContainerRef, animationLoaded = _useLottie.animationLoaded, animationItem = _useLottie.animationItem;
@@ -32164,7 +31834,7 @@
32164
31834
  mode: (_c = interactivity === null || interactivity === void 0 ? void 0 : interactivity.mode) !== null && _c !== void 0 ? _c : "scroll"
32165
31835
  });
32166
31836
  };
32167
- var Lottie$3 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
31837
+ var Lottie$2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
32168
31838
  var loadingLottieRef = React.useRef(null);
32169
31839
  var style = props.style, source = props.source;
32170
31840
  props.autoPlay;
@@ -32176,13 +31846,13 @@
32176
31846
  React.useImperativeHandle(ref, function() {
32177
31847
  return loadingLottieRef.current;
32178
31848
  });
32179
- return /* @__PURE__ */ React.createElement(Lottie$4, _object_spread_props(_object_spread({}, rest), {
31849
+ return /* @__PURE__ */ React.createElement(Lottie$3, _object_spread_props(_object_spread({}, rest), {
32180
31850
  lottieRef: loadingLottieRef,
32181
31851
  animationData: source,
32182
31852
  style
32183
31853
  }));
32184
31854
  });
32185
- Lottie$3.displayName = "NutLottie";
31855
+ Lottie$2.displayName = "NutLottie";
32186
31856
  var miniprogram_dist = {};
32187
31857
  (function(exports) {
32188
31858
  !function(t2, e2) {
@@ -35826,7 +35496,7 @@
35826
35496
  }]));
35827
35497
  })(miniprogram_dist);
35828
35498
  const lottie = /* @__PURE__ */ getDefaultExportFromCjs(miniprogram_dist);
35829
- var Lottie$2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
35499
+ var Lottie$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
35830
35500
  var uuid = useUuid();
35831
35501
  var id = "nutLottie-".concat(uuid);
35832
35502
  var animation = React.useRef();
@@ -35841,7 +35511,7 @@
35841
35511
  React.useImperativeHandle(ref, function() {
35842
35512
  return animation.current || {};
35843
35513
  });
35844
- var dpr = React.useRef(Taro.getSystemInfoSync().pixelRatio);
35514
+ var dpr = React.useRef(getWindowInfo().pixelRatio);
35845
35515
  Taro.useReady(function() {
35846
35516
  Taro.createSelectorQuery().select("#".concat(id)).fields({
35847
35517
  node: true,
@@ -35894,17 +35564,16 @@
35894
35564
  style
35895
35565
  });
35896
35566
  });
35897
- Lottie$2.displayName = "NutLottie";
35567
+ Lottie$1.displayName = "NutLottie";
35898
35568
  var implementation;
35899
35569
  if (process.env.TARO_ENV === "h5") {
35900
- implementation = Lottie$3;
35901
- } else if (process.env.TARO_ENV === "weapp") {
35902
35570
  implementation = Lottie$2;
35571
+ } else if (process.env.TARO_ENV === "weapp") {
35572
+ implementation = Lottie$1;
35903
35573
  } else {
35904
35574
  throw new Error("不支持的 TARO_ENV: ".concat(process.env.TARO_ENV));
35905
35575
  }
35906
35576
  var Lottie = implementation;
35907
- const Lottie$1 = Lottie;
35908
35577
  var loadingMap = {
35909
35578
  circular: g,
35910
35579
  spinner: z
@@ -35936,7 +35605,7 @@
35936
35605
  var classPrefix2 = "nut-loading";
35937
35606
  var getLoadingIcon = function() {
35938
35607
  if (rest.type === "lottie" && rest.jsonData) {
35939
- return /* @__PURE__ */ React.createElement(Lottie$1, _object_spread_props(_object_spread({}, mergedLottieProps), {
35608
+ return /* @__PURE__ */ React.createElement(Lottie, _object_spread_props(_object_spread({}, mergedLottieProps), {
35940
35609
  // @ts-ignore
35941
35610
  ref: loadingLottieRef,
35942
35611
  source: rest.jsonData
@@ -36406,7 +36075,7 @@
36406
36075
  onClick: function() {
36407
36076
  }
36408
36077
  });
36409
- var classPrefix$d = "nut-notify";
36078
+ var classPrefix$c = "nut-notify";
36410
36079
  var Notify = function(props) {
36411
36080
  var _mergeProps = mergeProps(defaultProps$A, props), id = _mergeProps.id, children = _mergeProps.children, style = _mergeProps.style, type2 = _mergeProps.type, className = _mergeProps.className, position2 = _mergeProps.position, visible = _mergeProps.visible, duration = _mergeProps.duration, onClose = _mergeProps.onClose, onClick = _mergeProps.onClick;
36412
36081
  useCustomEvent(id, function(status) {
@@ -36447,8 +36116,8 @@
36447
36116
  onClose();
36448
36117
  };
36449
36118
  var _obj;
36450
- var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$d, "-popup-top"), position2 === "top"), _define_property(_obj, "".concat(classPrefix$d, "-popup-bottom"), position2 === "bottom"), _define_property(_obj, "".concat(classPrefix$d), true), _define_property(_obj, "".concat(classPrefix$d, "-").concat(type2), true), _obj));
36451
- return /* @__PURE__ */ React.createElement(React.Fragment, null, Taro.getEnv() !== Taro.ENV_TYPE.RN ? /* @__PURE__ */ React.createElement(CSSTransition, {
36119
+ var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$c, "-popup-top"), position2 === "top"), _define_property(_obj, "".concat(classPrefix$c, "-popup-bottom"), position2 === "bottom"), _define_property(_obj, "".concat(classPrefix$c), true), _define_property(_obj, "".concat(classPrefix$c, "-").concat(type2), true), _obj));
36120
+ return /* @__PURE__ */ React.createElement(CSSTransition, {
36452
36121
  nodeRef: cssRef,
36453
36122
  in: showNotify,
36454
36123
  timeout: 300,
@@ -36461,13 +36130,7 @@
36461
36130
  className: "".concat(classes, " ").concat(className),
36462
36131
  style,
36463
36132
  onClick: clickHandle
36464
- }, children)) : /* @__PURE__ */ React.createElement(React.Fragment, null, showNotify ? /* @__PURE__ */ React.createElement(components.View, {
36465
- className: "".concat(classes, " ").concat(className),
36466
- style: _object_spread_props(_object_spread({}, style), {
36467
- position: "absolute"
36468
- }),
36469
- onClick: clickHandle
36470
- }, children) : null));
36133
+ }, children));
36471
36134
  };
36472
36135
  function open(selector) {
36473
36136
  var path = useCustomEventsPath(selector);
@@ -36503,7 +36166,7 @@
36503
36166
  onClose: function() {
36504
36167
  }
36505
36168
  });
36506
- var classPrefix$c = "nut-popover";
36169
+ var classPrefix$b = "nut-popover";
36507
36170
  var Popover = function(props) {
36508
36171
  var rtl = useRtl();
36509
36172
  var _ref = _object_spread({}, defaultProps$z, props), children = _ref.children, list = _ref.list, theme = _ref.theme, location = _ref.location, visible = _ref.visible, offset = _ref.offset, arrowOffset = _ref.arrowOffset, targetId = _ref.targetId, overlay = _ref.overlay, closeOnOutsideClick = _ref.closeOnOutsideClick, closeOnActionClick = _ref.closeOnActionClick, className = _ref.className, showArrow = _ref.showArrow, style = _ref.style, onClick = _ref.onClick, onOpen = _ref.onOpen, onClose = _ref.onClose, onSelect = _ref.onSelect, rest = _object_without_properties(_ref, [
@@ -36665,7 +36328,7 @@
36665
36328
  }
36666
36329
  };
36667
36330
  var _obj;
36668
- var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$c), true), _define_property(_obj, "".concat(classPrefix$c, "-").concat(theme), theme === "dark"), _obj), className);
36331
+ var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$b), true), _define_property(_obj, "".concat(classPrefix$b, "-").concat(theme), theme === "dark"), _obj), className);
36669
36332
  var popoverArrow = function() {
36670
36333
  var prefixCls2 = "nut-popover-arrow";
36671
36334
  return "".concat(prefixCls2, " ").concat(prefixCls2, "-").concat(location.split("-")[0], " ").concat(prefixCls2, "-").concat(location);
@@ -36790,7 +36453,7 @@
36790
36453
  style: getRootPosition()
36791
36454
  }, /* @__PURE__ */ React.createElement(Popup, _object_spread({
36792
36455
  className: "nut-popover-content nut-popover-content-".concat(location),
36793
- position: "default",
36456
+ position: "none",
36794
36457
  overlay,
36795
36458
  visible: showPopup
36796
36459
  }, rest), /* @__PURE__ */ React.createElement(components.View, {
@@ -36926,11 +36589,6 @@
36926
36589
  setStatus(height2 > threshold ? "canRelease" : "pulling");
36927
36590
  }
36928
36591
  clearTimeout(timer.current);
36929
- if (rn()) {
36930
- timer.current = setTimeout(function() {
36931
- handleTouchEnd();
36932
- }, 300);
36933
- }
36934
36592
  };
36935
36593
  function _doRefresh() {
36936
36594
  _doRefresh = _async_to_generator(function() {
@@ -36997,7 +36655,7 @@
36997
36655
  setStatus("pulling");
36998
36656
  }
36999
36657
  };
37000
- var isAndroidWeApp = Taro.getSystemInfoSync().platform === "android" && Taro.getEnv() === "WEAPP";
36658
+ var isAndroidWeApp = getDeviceInfo().platform === "android" && Taro.getEnv() === "WEAPP";
37001
36659
  var springStyles = _object_spread({
37002
36660
  height: pxTransform(height2)
37003
36661
  }, !pullingRef.current || isAndroidWeApp ? {
@@ -37037,12 +36695,12 @@
37037
36695
  gap: "-8",
37038
36696
  level: "left"
37039
36697
  });
37040
- var classPrefix$b = "nut-avatar-group";
36698
+ var classPrefix$a = "nut-avatar-group";
37041
36699
  var AvatarGroup = function(props) {
37042
36700
  var propAvatarGroup = _object_spread({}, defaultProps$x, props);
37043
36701
  var className = propAvatarGroup.className, style = propAvatarGroup.style, children = propAvatarGroup.children;
37044
36702
  var avatarGroupRef = React.useRef(null);
37045
- var cls = classNames(classPrefix$b, className);
36703
+ var cls = classNames(classPrefix$a, className);
37046
36704
  var parentAvatar = {
37047
36705
  propAvatarGroup: _object_spread({
37048
36706
  avatarCount: React.Children.count(children) || 0
@@ -37065,7 +36723,7 @@
37065
36723
  };
37066
36724
  AvatarGroup.displayName = "NutAvatarGroup";
37067
36725
  var defaultProps$w = _object_spread_props(_object_spread({}, ComponentDefaults), {
37068
- size: harmonyAndRn() ? "40" : "",
36726
+ size: harmony() ? "40" : "",
37069
36727
  shape: "round",
37070
36728
  icon: "",
37071
36729
  background: "#eee",
@@ -37074,7 +36732,7 @@
37074
36732
  src: "",
37075
36733
  avatarIndex: 0
37076
36734
  });
37077
- var classPrefix$a = "nut-avatar";
36735
+ var classPrefix$9 = "nut-avatar";
37078
36736
  var Avatar = function(props) {
37079
36737
  var _$_object_spread = _object_spread({}, defaultProps$w, props), children = _$_object_spread.children, size = _$_object_spread.size, shape = _$_object_spread.shape, background = _$_object_spread.background, color = _$_object_spread.color, src = _$_object_spread.src, icon = _$_object_spread.icon, fit = _$_object_spread.fit, avatarIndex = _$_object_spread.avatarIndex, className = _$_object_spread.className, style = _$_object_spread.style, onClick = _$_object_spread.onClick, onError = _$_object_spread.onError;
37080
36738
  var _useState = _sliced_to_array(React.useState(false), 2), showMax = _useState[0], setShowMax = _useState[1];
@@ -37093,14 +36751,14 @@
37093
36751
  var _obj;
37094
36752
  var classes = classNames((_obj = {}, _define_property(_obj, "nut-avatar-".concat(groupSize || size || "normal"), true), _define_property(_obj, "nut-avatar-".concat(groupShape || shape), true), _define_property(_obj, "nut-avatar-".concat(groupSize || size || "normal", "-round"), shape === "round" && true), _obj));
37095
36753
  var nativeClasses = classNames(_define_property({}, "nut-avatar-first-child", avatarIndex === 1));
37096
- var cls = classNames(classPrefix$a, classes, className, nativeClasses);
36754
+ var cls = classNames(classPrefix$9, classes, className, nativeClasses);
37097
36755
  var _obj1;
37098
36756
  var styles = _object_spread((_obj1 = {
37099
36757
  width: sizeValue.indexOf(size) > -1 ? "" : pxTransform(parseInt(size)),
37100
36758
  height: sizeValue.indexOf(size) > -1 ? "" : pxTransform(parseInt(size)),
37101
36759
  backgroundColor: "".concat(background),
37102
36760
  color
37103
- }, _define_property(_obj1, harmonyAndRn() ? "marginRight" : "marginLeft", avatarIndex !== 1 && (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.gap) ? "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.gap, "px") : ""), _define_property(_obj1, "zIndex", (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.level) === "right" ? Math.abs(groupCount - avatarIndex) : ""), _obj1), style);
36761
+ }, _define_property(_obj1, harmony() ? "marginRight" : "marginLeft", avatarIndex !== 1 && (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.gap) ? "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.gap, "px") : ""), _define_property(_obj1, "zIndex", (propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.level) === "right" ? Math.abs(groupCount - avatarIndex) : ""), _obj1), style);
37104
36762
  var maxStyles = {
37105
36763
  backgroundColor: "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxBackground),
37106
36764
  color: "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxColor)
@@ -37509,7 +37167,7 @@
37509
37167
  };
37510
37168
  });
37511
37169
  React.useEffect(function() {
37512
- if (harmonyAndRn()) return;
37170
+ if (harmony()) return;
37513
37171
  var handler = function(event) {
37514
37172
  var targets = [
37515
37173
  root2
@@ -37546,7 +37204,7 @@
37546
37204
  }, renderActionContent("left"), children, renderActionContent("right")));
37547
37205
  });
37548
37206
  Swipe.displayName = "NutSwipe";
37549
- var defaultProps$t = _object_spread_props(_object_spread({}, ComponentDefaults), {
37207
+ var defaultProps$t = _object_spread_props(_object_spread({}, defaultOverlayProps), {
37550
37208
  id: "",
37551
37209
  duration: 2,
37552
37210
  position: "center",
@@ -37554,18 +37212,19 @@
37554
37212
  size: "base",
37555
37213
  icon: null,
37556
37214
  content: "",
37557
- type: "text",
37215
+ contentClassName: "",
37216
+ contentStyle: {},
37558
37217
  closeOnOverlayClick: false,
37559
37218
  lockScroll: false,
37560
- contentClassName: "",
37561
37219
  visible: false,
37562
37220
  wordBreak: "break-all",
37221
+ zIndex: 1300,
37563
37222
  onClose: function() {
37564
37223
  }
37565
37224
  });
37566
- var classPrefix$9 = "nut-toast";
37567
37225
  var Toast = function(props) {
37568
- var _useParams = useParams(mergeProps(defaultProps$t, props)), _useParams_params = _useParams.params, id = _useParams_params.id, position2 = _useParams_params.position, contentStyle = _useParams_params.contentStyle, icon = _useParams_params.icon, content2 = _useParams_params.content, duration = _useParams_params.duration, type2 = _useParams_params.type, title = _useParams_params.title, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, lockScroll = _useParams_params.lockScroll, contentClassName = _useParams_params.contentClassName, visible = _useParams_params.visible, size = _useParams_params.size, className = _useParams_params.className, style = _useParams_params.style, onClose = _useParams_params.onClose, wordBreak = _useParams_params.wordBreak, setParams = _useParams.setParams;
37226
+ var _useParams = useParams(mergeProps(defaultProps$t, props)), _useParams_params = _useParams.params, id = _useParams_params.id, position2 = _useParams_params.position, contentStyle = _useParams_params.contentStyle, icon = _useParams_params.icon, content2 = _useParams_params.content, duration = _useParams_params.duration, title = _useParams_params.title, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, lockScroll = _useParams_params.lockScroll, contentClassName = _useParams_params.contentClassName, visible = _useParams_params.visible, size = _useParams_params.size, className = _useParams_params.className, style = _useParams_params.style, wordBreak = _useParams_params.wordBreak, zIndex = _useParams_params.zIndex, onClose = _useParams_params.onClose, setParams = _useParams.setParams;
37227
+ var classPrefix2 = "nut-toast";
37569
37228
  var timer = React.useRef(-1);
37570
37229
  var rtl = useRtl();
37571
37230
  var _usePropsValue = _sliced_to_array(usePropsValue({
@@ -37626,19 +37285,21 @@
37626
37285
  _$hide();
37627
37286
  }
37628
37287
  };
37629
- var hasIcon = function() {
37630
- return type2 !== "text" || !!icon;
37631
- };
37632
- var iconName = function() {
37633
- if (icon) {
37634
- return icon;
37288
+ var renderIcon = function() {
37289
+ var iconNode = icon;
37290
+ if (typeof icon === "string") {
37291
+ iconNode = {
37292
+ success: /* @__PURE__ */ React.createElement(t$1, null),
37293
+ fail: /* @__PURE__ */ React.createElement(N, null),
37294
+ warn: /* @__PURE__ */ React.createElement(c$1, null),
37295
+ loading: /* @__PURE__ */ React.createElement(z, {
37296
+ className: "nut-icon-loading"
37297
+ })
37298
+ }[icon];
37635
37299
  }
37636
- return {
37637
- success: /* @__PURE__ */ React.createElement(t$1, null),
37638
- fail: /* @__PURE__ */ React.createElement(N, null),
37639
- warn: /* @__PURE__ */ React.createElement(c$1, null),
37640
- loading: /* @__PURE__ */ React.createElement(z, null)
37641
- }[type2];
37300
+ return iconNode && /* @__PURE__ */ React.createElement(components.View, {
37301
+ className: "".concat(classPrefix2, "-icon-wrapper")
37302
+ }, iconNode);
37642
37303
  };
37643
37304
  var classes = classNames({
37644
37305
  "nut-toast-has-icon": icon,
@@ -37648,28 +37309,27 @@
37648
37309
  left: "50%",
37649
37310
  transform: "translate(-50%, -50%)"
37650
37311
  } : null;
37651
- return /* @__PURE__ */ React.createElement(React.Fragment, null, innerVisible ? /* @__PURE__ */ React.createElement(Overlay, {
37312
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, innerVisible && /* @__PURE__ */ React.createElement(Overlay, {
37652
37313
  visible: innerVisible,
37653
37314
  style,
37654
- className: "".concat(classPrefix$9, "-overlay-default-taro ").concat(className),
37315
+ zIndex,
37316
+ className: "".concat(classPrefix2, "-overlay-default-taro ").concat(className),
37655
37317
  closeOnOverlayClick,
37656
37318
  lockScroll,
37657
37319
  onClick: function() {
37658
37320
  clickCover();
37659
37321
  }
37660
37322
  }, /* @__PURE__ */ React.createElement(components.View, {
37661
- className: "".concat(classPrefix$9, " ").concat(classes),
37323
+ className: "".concat(classPrefix2, " ").concat(classes),
37662
37324
  id
37663
37325
  }, /* @__PURE__ */ React.createElement(components.View, {
37664
- className: classNames("".concat(classPrefix$9, "-inner"), "".concat(classPrefix$9, "-").concat(position2), contentClassName, "".concat(classPrefix$9, "-inner-").concat(size), "".concat(classPrefix$9, "-inner-").concat(wordBreak), _define_property({}, "".concat(classPrefix$9, "-inner-descrption"), content2)),
37326
+ className: classNames("".concat(classPrefix2, "-inner"), "".concat(classPrefix2, "-").concat(position2), contentClassName, "".concat(classPrefix2, "-inner-").concat(size), "".concat(classPrefix2, "-inner-").concat(wordBreak), _define_property({}, "".concat(classPrefix2, "-inner-descrption"), content2)),
37665
37327
  style: _object_spread({}, styles, contentStyle)
37666
- }, hasIcon() ? /* @__PURE__ */ React.createElement(components.View, {
37667
- className: "".concat(classPrefix$9, "-icon-wrapper")
37668
- }, iconName()) : null, title ? /* @__PURE__ */ React.createElement(components.Text, {
37669
- className: "".concat(classPrefix$9, "-title")
37670
- }, title) : null, content2 ? /* @__PURE__ */ React.createElement(components.Text, {
37671
- className: "".concat(classPrefix$9, "-text")
37672
- }, content2) : null))) : null);
37328
+ }, renderIcon(), title && /* @__PURE__ */ React.createElement(components.Text, {
37329
+ className: "".concat(classPrefix2, "-title")
37330
+ }, title), content2 && /* @__PURE__ */ React.createElement(components.Text, {
37331
+ className: "".concat(classPrefix2, "-text")
37332
+ }, content2)))));
37673
37333
  };
37674
37334
  function show(selector, options) {
37675
37335
  var path = useCustomEventsPath(selector);
@@ -37701,21 +37361,20 @@
37701
37361
  var _obj;
37702
37362
  var classes = classNames((_obj = {
37703
37363
  "nut-ani-container": true
37704
- }, _define_property(_obj, "".concat(classPrefix$8, "-").concat(type2), action === "initial" || clicked ? type2 : false), _define_property(_obj, "loop", loop), _obj));
37705
- var cls = classNames(classes, className);
37364
+ }, _define_property(_obj, "".concat(classPrefix$8, "-").concat(type2), action === "initial" || clicked), _define_property(_obj, "loop", loop), _obj), className);
37706
37365
  var handleClick = function(event) {
37707
37366
  setClicked(true);
37708
37367
  if (!loop) {
37709
37368
  setTimeout(function() {
37710
- setClicked(false);
37369
+ return setClicked(false);
37711
37370
  }, 1e3);
37712
37371
  }
37713
- onClick && onClick(event);
37372
+ onClick(event);
37714
37373
  };
37715
37374
  return /* @__PURE__ */ React.createElement(components.View, {
37716
37375
  className: "nut-animate"
37717
37376
  }, /* @__PURE__ */ React.createElement(components.View, {
37718
- className: cls,
37377
+ className: classes,
37719
37378
  onClick: handleClick,
37720
37379
  style
37721
37380
  }, children));
@@ -39016,7 +38675,7 @@
39016
38675
  style: {}
39017
38676
  };
39018
38677
  var classPrefix$4 = "nut-swiper";
39019
- var Swiper$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
38678
+ var Swiper = /* @__PURE__ */ React.forwardRef(function(props, ref) {
39020
38679
  var _ref = _object_spread({}, defaultProps$i, props), width2 = _ref.width, height2 = _ref.height, className = _ref.className, children = _ref.children, indicator = _ref.indicator, loop = _ref.loop, autoPlay = _ref.autoPlay;
39021
38680
  _ref.duration;
39022
38681
  var direction = _ref.direction, defaultValue = _ref.defaultValue;
@@ -39128,7 +38787,7 @@
39128
38787
  }, child);
39129
38788
  }))), renderIndicator());
39130
38789
  });
39131
- Swiper$1.displayName = "NutSwiper";
38790
+ Swiper.displayName = "NutSwiper";
39132
38791
  var SwiperItem = function(props) {
39133
38792
  var children = props.children;
39134
38793
  _object_without_properties(props, [
@@ -39137,9 +38796,8 @@
39137
38796
  return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
39138
38797
  };
39139
38798
  SwiperItem.displayName = "NutSwiperItem";
39140
- var InnerSwiper = Swiper$1;
38799
+ var InnerSwiper = Swiper;
39141
38800
  InnerSwiper.Item = SwiperItem;
39142
- const Swiper = InnerSwiper;
39143
38801
  var defaultProps$h = _object_spread_props(_object_spread({}, ComponentDefaults), {
39144
38802
  images: [],
39145
38803
  videos: [],
@@ -39307,7 +38965,7 @@
39307
38965
  style,
39308
38966
  ref,
39309
38967
  onTouchStart
39310
- }, /* @__PURE__ */ React.createElement(Swiper, {
38968
+ }, /* @__PURE__ */ React.createElement(InnerSwiper, {
39311
38969
  autoPlay,
39312
38970
  className: "".concat(classPrefix2, "-swiper"),
39313
38971
  loop: true,
@@ -40317,7 +39975,7 @@
40317
39975
  "containerHeight"
40318
39976
  ]);
40319
39977
  var clientHeight = React.useMemo(function() {
40320
- return Taro.getSystemInfoSync().windowHeight - 5 || 667;
39978
+ return getWindowInfo().windowHeight - 5 || 667;
40321
39979
  }, []);
40322
39980
  var containerHeight = React.useMemo(function() {
40323
39981
  return origContainerHeight !== null && origContainerHeight !== void 0 ? origContainerHeight : clientHeight;
@@ -41163,7 +40821,7 @@
41163
40821
  var _useState = _sliced_to_array(React.useState(false), 2), visible = _useState[0], setVisible = _useState[1];
41164
40822
  var _useState1 = _sliced_to_array(React.useState(false), 2), moving = _useState1[0], setMoving = _useState1[1];
41165
40823
  var _useState2 = _sliced_to_array(React.useState(false), 2), zooming = _useState2[0], setZooming = _useState2[1];
41166
- var systemInfo = Taro.getSystemInfoSync();
40824
+ var systemInfo = getWindowInfo();
41167
40825
  var showAlipayCanvas2D = React.useMemo(function() {
41168
40826
  return Taro.getEnv() === "ALIPAY" && parseInt(Taro.SDKVersion.replace(/\./g, "")) >= 270;
41169
40827
  }, []);
@@ -41735,7 +41393,7 @@
41735
41393
  exports.Cascader = Cascader;
41736
41394
  exports.Cell = Cell;
41737
41395
  exports.CellGroup = CellGroup;
41738
- exports.Checkbox = InnerCheckbox$1;
41396
+ exports.Checkbox = InnerCheckbox;
41739
41397
  exports.CheckboxGroup = CheckboxGroup;
41740
41398
  exports.CircleProgress = CircleProgress;
41741
41399
  exports.Col = Col;
@@ -41751,7 +41409,7 @@
41751
41409
  exports.Ellipsis = Ellipsis;
41752
41410
  exports.Empty = Empty;
41753
41411
  exports.FixedNav = FixedNav;
41754
- exports.Form = InnerForm$1;
41412
+ exports.Form = InnerForm;
41755
41413
  exports.FormItem = FormItem;
41756
41414
  exports.Grid = Grid;
41757
41415
  exports.GridItem = GridItem;
@@ -41765,7 +41423,7 @@
41765
41423
  exports.InputNumber = InputNumber;
41766
41424
  exports.Layout = Layout;
41767
41425
  exports.Loading = Loading;
41768
- exports.Lottie = Lottie$1;
41426
+ exports.Lottie = Lottie;
41769
41427
  exports.Menu = Menu;
41770
41428
  exports.MenuItem = MenuItem;
41771
41429
  exports.NavBar = NavBar;
@@ -41775,12 +41433,13 @@
41775
41433
  exports.Overlay = Overlay;
41776
41434
  exports.Pagination = Pagination;
41777
41435
  exports.Picker = Picker;
41436
+ exports.PickerView = PickerView;
41778
41437
  exports.Popover = Popover;
41779
41438
  exports.Popup = Popup;
41780
41439
  exports.Price = Price;
41781
41440
  exports.Progress = Progress;
41782
41441
  exports.PullToRefresh = PullToRefresh;
41783
- exports.Radio = Radio;
41442
+ exports.Radio = InnerRadio;
41784
41443
  exports.RadioGroup = RadioGroup;
41785
41444
  exports.Range = Range;
41786
41445
  exports.Rate = Rate;
@@ -41802,7 +41461,7 @@
41802
41461
  exports.Sticky = Sticky;
41803
41462
  exports.SubSideNavBar = SubSideNavBar;
41804
41463
  exports.Swipe = Swipe;
41805
- exports.Swiper = Swiper;
41464
+ exports.Swiper = InnerSwiper;
41806
41465
  exports.SwiperItem = SwiperItem;
41807
41466
  exports.Switch = Switch;
41808
41467
  exports.TabPane = TabPane;