@nutui/nutui-react-taro 3.0.0-beta.10 → 3.0.0-beta.12

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 (569) hide show
  1. package/dist/cjs/packages/actionsheet/style/style.css +13 -18
  2. package/dist/cjs/packages/actionsheet/style/style.harmony.css +90 -0
  3. package/dist/cjs/packages/address/address.js +2 -2
  4. package/dist/cjs/packages/address/existRender.js +2 -2
  5. package/dist/cjs/packages/address/style/style.css +45 -57
  6. package/dist/cjs/packages/address/style/style.harmony.css +52 -0
  7. package/dist/cjs/packages/animate/style/style.harmony.css +235 -0
  8. package/dist/cjs/packages/animatingnumbers/style/style.css +3 -3
  9. package/dist/cjs/packages/animatingnumbers/style/style.harmony.css +4 -0
  10. package/dist/cjs/packages/audio/audio.js +2 -2
  11. package/dist/cjs/packages/audio/style/style.css +55 -55
  12. package/dist/cjs/packages/audio/style/style.harmony.css +75 -0
  13. package/dist/cjs/packages/avatar/avatar.js +2 -2
  14. package/dist/cjs/packages/avatar/style/style.css +2 -2
  15. package/dist/cjs/packages/avatar/style/style.harmony.css +64 -0
  16. package/dist/cjs/packages/avatarcropper/avatarcropper.js +2 -2
  17. package/dist/cjs/packages/avatarcropper/style/style.harmony.css +135 -0
  18. package/dist/cjs/packages/avatargroup/style/style.harmony.css +24 -0
  19. package/dist/cjs/packages/backtop/backtop.js +1 -3
  20. package/dist/cjs/packages/backtop/style/backtop.scss +0 -4
  21. package/dist/cjs/packages/backtop/style/index.js +2 -0
  22. package/dist/cjs/packages/backtop/style/style.css +126 -3
  23. package/dist/cjs/packages/backtop/style/style.harmony.css +21 -0
  24. package/dist/cjs/packages/badge/style/style.css +4 -4
  25. package/dist/cjs/packages/badge/style/style.harmony.css +114 -0
  26. package/dist/cjs/packages/barrage/style/style.css +2 -2
  27. package/dist/cjs/packages/barrage/style/style.harmony.css +84 -0
  28. package/dist/cjs/packages/button/button.js +20 -13
  29. package/dist/cjs/packages/button/style/button.scss +3 -3
  30. package/dist/cjs/packages/button/style/style.css +43 -43
  31. package/dist/cjs/packages/button/style/style.harmony.css +453 -0
  32. package/dist/cjs/packages/calendar/calendar.js +2 -2
  33. package/dist/cjs/packages/calendar/style/style.css +16 -21
  34. package/dist/cjs/packages/calendar/style/style.harmony.css +222 -0
  35. package/dist/cjs/packages/calendarcard/calendarcard.js +2 -2
  36. package/dist/cjs/packages/calendarcard/style/style.css +8 -8
  37. package/dist/cjs/packages/calendarcard/style/style.harmony.css +186 -0
  38. package/dist/cjs/packages/calendaritem/calendaritem.js +2 -2
  39. package/dist/cjs/packages/calendaritem/style/style.harmony.css +4 -0
  40. package/dist/cjs/packages/card/style/style.css +8 -8
  41. package/dist/cjs/packages/card/style/style.harmony.css +82 -0
  42. package/dist/cjs/packages/cascader/cascader.d.ts +2 -2
  43. package/dist/cjs/packages/cascader/cascader.js +4 -4
  44. package/dist/cjs/packages/cascader/style/style.css +35 -47
  45. package/dist/cjs/packages/cascader/style/style.harmony.css +70 -0
  46. package/dist/cjs/packages/cell/style/style.css +8 -8
  47. package/dist/cjs/packages/cell/style/style.harmony.css +91 -0
  48. package/dist/cjs/packages/cellgroup/style/style.css +3 -3
  49. package/dist/cjs/packages/cellgroup/style/style.harmony.css +31 -0
  50. package/dist/cjs/packages/checkbox/style/style.css +29 -29
  51. package/dist/cjs/packages/checkbox/style/style.harmony.css +165 -0
  52. package/dist/cjs/packages/checkboxgroup/style/style.css +7 -7
  53. package/dist/cjs/packages/checkboxgroup/style/style.harmony.css +67 -0
  54. package/dist/cjs/packages/circleprogress/style/style.css +3 -3
  55. package/dist/cjs/packages/circleprogress/style/style.harmony.css +31 -0
  56. package/dist/cjs/packages/col/style/col.scss +0 -1
  57. package/dist/cjs/packages/col/style/style.harmony.css +360 -0
  58. package/dist/cjs/packages/collapse/style/style.css +11 -11
  59. package/dist/cjs/packages/collapse/style/style.harmony.css +4 -0
  60. package/dist/cjs/packages/collapseitem/style/style.css +11 -11
  61. package/dist/cjs/packages/collapseitem/style/style.harmony.css +104 -0
  62. package/dist/cjs/packages/configprovider/configprovider.js +2 -2
  63. package/dist/cjs/packages/configprovider/style/style.harmony.css +4 -0
  64. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  65. package/dist/cjs/packages/countdown/style/style.css +8 -8
  66. package/dist/cjs/packages/countdown/style/style.harmony.css +113 -0
  67. package/dist/cjs/packages/countup/style/style.css +3 -3
  68. package/dist/cjs/packages/datepicker/style/style.css +14 -19
  69. package/dist/cjs/packages/datepicker/style/style.harmony.css +4 -0
  70. package/dist/cjs/packages/dialog/content.d.ts +3 -13
  71. package/dist/cjs/packages/dialog/content.js +27 -9
  72. package/dist/cjs/packages/dialog/dialog.d.ts +3 -5
  73. package/dist/cjs/packages/dialog/dialog.js +21 -21
  74. package/dist/cjs/packages/dialog/index.d.ts +1 -1
  75. package/dist/cjs/packages/dialog/style/dialog.scss +0 -4
  76. package/dist/cjs/packages/dialog/style/style.css +49 -57
  77. package/dist/cjs/packages/dialog/style/style.harmony.css +169 -0
  78. package/dist/cjs/packages/dialog/types.d.ts +57 -0
  79. package/dist/cjs/packages/dialog/types.js +4 -0
  80. package/dist/cjs/packages/dialog/types.taro.d.ts +10 -0
  81. package/dist/cjs/packages/divider/style/style.css +4 -4
  82. package/dist/cjs/packages/divider/style/style.harmony.css +72 -0
  83. package/dist/cjs/packages/drag/style/style.harmony.css +18 -0
  84. package/dist/cjs/packages/elevator/style/style.css +8 -8
  85. package/dist/cjs/packages/elevator/style/style.harmony.css +127 -0
  86. package/dist/cjs/packages/ellipsis/style/style.harmony.css +24 -0
  87. package/dist/cjs/packages/empty/empty.js +1 -3
  88. package/dist/cjs/packages/empty/style/style.css +3 -3
  89. package/dist/cjs/packages/empty/style/style.harmony.css +59 -0
  90. package/dist/cjs/packages/fixednav/fixednav.d.ts +2 -15
  91. package/dist/cjs/packages/fixednav/fixednav.js +17 -36
  92. package/dist/cjs/packages/fixednav/index.d.ts +1 -2
  93. package/dist/cjs/packages/fixednav/style/style.css +3 -8
  94. package/dist/cjs/packages/fixednav/style/style.harmony.css +187 -0
  95. package/dist/cjs/packages/fixednav/types.d.ts +12 -0
  96. package/dist/cjs/packages/fixednav/types.taro.d.ts +1 -0
  97. package/dist/cjs/packages/form/style/style.css +15 -15
  98. package/dist/cjs/packages/form/style/style.harmony.css +70 -0
  99. package/dist/cjs/packages/formitem/style/style.css +4 -4
  100. package/dist/cjs/packages/formitem/style/style.harmony.css +108 -0
  101. package/dist/cjs/packages/grid/style/style.css +6 -6
  102. package/dist/cjs/packages/grid/style/style.harmony.css +21 -0
  103. package/dist/cjs/packages/griditem/style/style.css +5 -5
  104. package/dist/cjs/packages/griditem/style/style.harmony.css +111 -0
  105. package/dist/cjs/packages/hoverbutton/hoverbutton.js +1 -3
  106. package/dist/cjs/packages/hoverbutton/style/hoverbutton.scss +0 -4
  107. package/dist/cjs/packages/hoverbutton/style/style.css +4 -7
  108. package/dist/cjs/packages/hoverbutton/style/style.harmony.css +25 -0
  109. package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +4 -5
  110. package/dist/cjs/packages/hoverbuttonitem/style/style.css +4 -4
  111. package/dist/cjs/packages/hoverbuttonitem/style/style.harmony.css +60 -0
  112. package/dist/cjs/packages/image/image.js +1 -1
  113. package/dist/cjs/packages/image/style/style.css +2 -2
  114. package/dist/cjs/packages/image/style/style.harmony.css +54 -0
  115. package/dist/cjs/packages/imagepreview/style/style.css +11 -27
  116. package/dist/cjs/packages/imagepreview/style/style.harmony.css +101 -0
  117. package/dist/cjs/packages/indicator/style/style.css +4 -4
  118. package/dist/cjs/packages/indicator/style/style.harmony.css +162 -0
  119. package/dist/cjs/packages/infiniteloading/infiniteloading.js +2 -2
  120. package/dist/cjs/packages/infiniteloading/style/style.css +4 -4
  121. package/dist/cjs/packages/infiniteloading/style/style.harmony.css +63 -0
  122. package/dist/cjs/packages/input/style/input.scss +0 -6
  123. package/dist/cjs/packages/input/style/style.css +8 -14
  124. package/dist/cjs/packages/input/style/style.harmony.css +54 -0
  125. package/dist/cjs/packages/inputnumber/inputnumber.js +4 -14
  126. package/dist/cjs/packages/inputnumber/style/style.css +7 -7
  127. package/dist/cjs/packages/inputnumber/style/style.harmony.css +61 -0
  128. package/dist/cjs/packages/layout/style/style.harmony.css +4 -0
  129. package/dist/cjs/packages/loading/style/style.css +2 -2
  130. package/dist/cjs/packages/loading/style/style.harmony.css +45 -0
  131. package/dist/cjs/packages/lottie/mp.js +13 -3
  132. package/dist/cjs/packages/lottie/style/style.harmony.css +4 -0
  133. package/dist/cjs/packages/menu/style/style.css +8 -13
  134. package/dist/cjs/packages/menu/style/style.harmony.css +56 -0
  135. package/dist/cjs/packages/menuitem/style/style.css +4 -9
  136. package/dist/cjs/packages/menuitem/style/style.harmony.css +122 -0
  137. package/dist/cjs/packages/navbar/style/navbar.scss +1 -1
  138. package/dist/cjs/packages/navbar/style/style.css +3 -3
  139. package/dist/cjs/packages/navbar/style/style.harmony.css +106 -0
  140. package/dist/cjs/packages/noticebar/style/style.harmony.css +194 -0
  141. package/dist/cjs/packages/notify/notify.js +2 -9
  142. package/dist/cjs/packages/notify/style/style.css +4 -4
  143. package/dist/cjs/packages/notify/style/style.harmony.css +90 -0
  144. package/dist/cjs/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  145. package/dist/cjs/packages/numberkeyboard/numberkeyboard.js +2 -2
  146. package/dist/cjs/packages/numberkeyboard/style/style.css +13 -18
  147. package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +129 -0
  148. package/dist/cjs/packages/overlay/index.d.ts +1 -1
  149. package/dist/cjs/packages/overlay/overlay.d.ts +1 -12
  150. package/dist/cjs/packages/overlay/overlay.js +21 -34
  151. package/dist/cjs/packages/overlay/style/overlay.scss +0 -5
  152. package/dist/cjs/packages/overlay/style/style.css +1 -6
  153. package/dist/cjs/packages/overlay/style/style.harmony.css +63 -0
  154. package/dist/cjs/packages/overlay/types.d.ts +11 -0
  155. package/dist/cjs/packages/overlay/types.js +4 -0
  156. package/dist/cjs/packages/overlay/types.taro.d.ts +5 -0
  157. package/dist/cjs/packages/pagination/style/style.css +7 -7
  158. package/dist/cjs/packages/pagination/style/style.harmony.css +139 -0
  159. package/dist/cjs/packages/picker/picker.d.ts +1 -1
  160. package/dist/cjs/packages/picker/picker.js +4 -4
  161. package/dist/cjs/packages/picker/style/style.css +14 -19
  162. package/dist/cjs/packages/picker/style/style.harmony.css +168 -0
  163. package/dist/cjs/packages/popover/popover.d.ts +1 -1
  164. package/dist/cjs/packages/popover/popover.js +1 -1
  165. package/dist/cjs/packages/popover/style/style.css +12 -17
  166. package/dist/cjs/packages/popover/style/style.harmony.css +294 -0
  167. package/dist/cjs/packages/popup/index.d.ts +1 -1
  168. package/dist/cjs/packages/popup/popup.d.ts +2 -25
  169. package/dist/cjs/packages/popup/popup.js +23 -39
  170. package/dist/cjs/packages/popup/style/style.css +5 -10
  171. package/dist/cjs/packages/popup/style/style.harmony.css +363 -0
  172. package/dist/cjs/packages/popup/types.d.ts +25 -0
  173. package/dist/cjs/packages/popup/types.js +4 -0
  174. package/dist/cjs/packages/popup/types.taro.d.ts +8 -0
  175. package/dist/cjs/packages/price/style/style.css +1 -1
  176. package/dist/cjs/packages/price/style/style.harmony.css +96 -0
  177. package/dist/cjs/packages/progress/progress.js +3 -6
  178. package/dist/cjs/packages/progress/style/style.css +1 -1
  179. package/dist/cjs/packages/progress/style/style.harmony.css +77 -0
  180. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +1 -6
  181. package/dist/cjs/packages/pulltorefresh/style/style.css +4 -4
  182. package/dist/cjs/packages/pulltorefresh/style/style.harmony.css +43 -0
  183. package/dist/cjs/packages/radio/style/style.css +19 -19
  184. package/dist/cjs/packages/radio/style/style.harmony.css +93 -0
  185. package/dist/cjs/packages/radiogroup/style/style.css +6 -6
  186. package/dist/cjs/packages/radiogroup/style/style.harmony.css +49 -0
  187. package/dist/cjs/packages/range/range.js +6 -40
  188. package/dist/cjs/packages/range/style/style.css +9 -9
  189. package/dist/cjs/packages/range/style/style.harmony.css +271 -0
  190. package/dist/cjs/packages/rate/style/style.css +4 -4
  191. package/dist/cjs/packages/rate/style/style.harmony.css +168 -0
  192. package/dist/cjs/packages/resultpage/style/style.css +2 -2
  193. package/dist/cjs/packages/resultpage/style/style.harmony.css +47 -0
  194. package/dist/cjs/packages/row/style/style.harmony.css +54 -0
  195. package/dist/cjs/packages/safearea/style/style.harmony.css +14 -0
  196. package/dist/cjs/packages/searchbar/searchbar.js +2 -2
  197. package/dist/cjs/packages/searchbar/style/style.css +5 -5
  198. package/dist/cjs/packages/searchbar/style/style.harmony.css +269 -0
  199. package/dist/cjs/packages/segmented/style/style.css +2 -2
  200. package/dist/cjs/packages/segmented/style/style.harmony.css +42 -0
  201. package/dist/cjs/packages/shortpassword/shortpassword.d.ts +1 -1
  202. package/dist/cjs/packages/shortpassword/style/style.css +15 -20
  203. package/dist/cjs/packages/shortpassword/style/style.harmony.css +123 -0
  204. package/dist/cjs/packages/sidebar/style/style.css +5 -5
  205. package/dist/cjs/packages/sidebar/style/style.harmony.css +63 -0
  206. package/dist/cjs/packages/sidebaritem/style/style.css +1 -1
  207. package/dist/cjs/packages/sidebaritem/style/style.harmony.css +19 -0
  208. package/dist/cjs/packages/sidenavbar/style/style.css +9 -14
  209. package/dist/cjs/packages/sidenavbar/style/style.harmony.css +74 -0
  210. package/dist/cjs/packages/sidenavbaritem/style/style.css +2 -2
  211. package/dist/cjs/packages/sidenavbaritem/style/style.harmony.css +14 -0
  212. package/dist/cjs/packages/signature/style/style.css +2 -2
  213. package/dist/cjs/packages/signature/style/style.harmony.css +22 -0
  214. package/dist/cjs/packages/skeleton/style/skeleton.scss +0 -18
  215. package/dist/cjs/packages/skeleton/style/style.css +5 -11
  216. package/dist/cjs/packages/skeleton/style/style.harmony.css +79 -0
  217. package/dist/cjs/packages/space/style/style.harmony.css +83 -0
  218. package/dist/cjs/packages/step/style/style.css +19 -19
  219. package/dist/cjs/packages/step/style/style.harmony.css +201 -0
  220. package/dist/cjs/packages/steps/style/style.css +19 -19
  221. package/dist/cjs/packages/steps/style/style.harmony.css +12 -0
  222. package/dist/cjs/packages/sticky/style/style.harmony.css +7 -0
  223. package/dist/cjs/packages/subsidenavbar/style/style.css +2 -2
  224. package/dist/cjs/packages/subsidenavbar/style/style.harmony.css +20 -0
  225. package/dist/cjs/packages/swipe/style/style.harmony.css +33 -0
  226. package/dist/cjs/packages/swipe/swipe.js +1 -1
  227. package/dist/cjs/packages/swiper/style/style.css +4 -15
  228. package/dist/cjs/packages/swiper/style/style.harmony.css +63 -0
  229. package/dist/cjs/packages/swiper/style/swiper.scss +0 -11
  230. package/dist/cjs/packages/swiperitem/style/style.harmony.css +7 -0
  231. package/dist/cjs/packages/switch/style/style.css +6 -6
  232. package/dist/cjs/packages/switch/style/style.harmony.css +91 -0
  233. package/dist/cjs/packages/tabbar/style/style.css +10 -10
  234. package/dist/cjs/packages/tabbar/style/style.harmony.css +50 -0
  235. package/dist/cjs/packages/tabbaritem/style/style.css +9 -9
  236. package/dist/cjs/packages/tabbaritem/style/style.harmony.css +59 -0
  237. package/dist/cjs/packages/table/style/style.css +11 -11
  238. package/dist/cjs/packages/table/style/style.harmony.css +230 -0
  239. package/dist/cjs/packages/table/table.js +3 -3
  240. package/dist/cjs/packages/tabpane/style/style.css +1 -1
  241. package/dist/cjs/packages/tabpane/style/style.harmony.css +18 -0
  242. package/dist/cjs/packages/tabpane/tabpane.js +2 -2
  243. package/dist/cjs/packages/tabs/style/style.css +25 -32
  244. package/dist/cjs/packages/tabs/style/style.harmony.css +320 -0
  245. package/dist/cjs/packages/tabs/style/tabs.scss +4 -9
  246. package/dist/cjs/packages/tabs/tabs.js +30 -49
  247. package/dist/cjs/packages/tag/style/style.css +5 -5
  248. package/dist/cjs/packages/tag/style/style.harmony.css +73 -0
  249. package/dist/cjs/packages/tag/style/tag.scss +0 -2
  250. package/dist/cjs/packages/textarea/style/style.css +13 -13
  251. package/dist/cjs/packages/textarea/style/style.harmony.css +79 -0
  252. package/dist/cjs/packages/textarea/textarea.js +3 -3
  253. package/dist/cjs/packages/timedetail/style/style.css +4 -4
  254. package/dist/cjs/packages/timedetail/style/style.harmony.css +34 -0
  255. package/dist/cjs/packages/timeselect/style/style.css +14 -19
  256. package/dist/cjs/packages/timeselect/style/style.harmony.css +35 -0
  257. package/dist/cjs/packages/timeselect/timeselect.js +2 -2
  258. package/dist/cjs/packages/toast/index.d.ts +2 -1
  259. package/dist/cjs/packages/toast/style/style.css +2 -20
  260. package/dist/cjs/packages/toast/style/style.harmony.css +138 -0
  261. package/dist/cjs/packages/toast/style/toast.scss +0 -13
  262. package/dist/cjs/packages/toast/toast.d.ts +1 -22
  263. package/dist/cjs/packages/toast/toast.js +26 -24
  264. package/dist/cjs/packages/toast/types.d.ts +17 -0
  265. package/dist/cjs/packages/toast/types.js +4 -0
  266. package/dist/cjs/packages/tour/style/style.css +16 -21
  267. package/dist/cjs/packages/tour/style/style.harmony.css +82 -0
  268. package/dist/cjs/packages/tour/tour.js +2 -2
  269. package/dist/cjs/packages/trendarrow/style/style.css +1 -1
  270. package/dist/cjs/packages/trendarrow/style/style.harmony.css +42 -0
  271. package/dist/cjs/packages/uploader/style/style.css +12 -12
  272. package/dist/cjs/packages/uploader/style/style.harmony.css +241 -0
  273. package/dist/cjs/packages/uploader/uploader.js +2 -2
  274. package/dist/cjs/packages/video/style/style.harmony.css +22 -0
  275. package/dist/cjs/packages/virtuallist/style/style.css +4 -4
  276. package/dist/cjs/packages/virtuallist/style/style.harmony.css +74 -0
  277. package/dist/cjs/packages/watermark/style/style.harmony.css +17 -0
  278. package/dist/cjs/utils/get-rect-by-taro.js +0 -14
  279. package/dist/cjs/utils/platform-taro.d.ts +0 -2
  280. package/dist/cjs/utils/platform-taro.js +0 -21
  281. package/dist/cjs/utils/px-transform.js +0 -1
  282. package/dist/cjs/utils/use-custom-event.js +2 -2
  283. package/dist/es/packages/actionsheet/style/style.css +13 -18
  284. package/dist/es/packages/actionsheet/style/style.harmony.css +90 -0
  285. package/dist/es/packages/address/address.js +1 -1
  286. package/dist/es/packages/address/existRender.js +1 -1
  287. package/dist/es/packages/address/style/style.css +45 -57
  288. package/dist/es/packages/address/style/style.harmony.css +52 -0
  289. package/dist/es/packages/animate/style/style.harmony.css +235 -0
  290. package/dist/es/packages/animatingnumbers/style/style.css +3 -3
  291. package/dist/es/packages/animatingnumbers/style/style.harmony.css +4 -0
  292. package/dist/es/packages/audio/audio.js +1 -1
  293. package/dist/es/packages/audio/style/style.css +55 -55
  294. package/dist/es/packages/audio/style/style.harmony.css +75 -0
  295. package/dist/es/packages/avatar/avatar.js +3 -3
  296. package/dist/es/packages/avatar/style/style.css +2 -2
  297. package/dist/es/packages/avatar/style/style.harmony.css +64 -0
  298. package/dist/es/packages/avatarcropper/avatarcropper.js +1 -1
  299. package/dist/es/packages/avatarcropper/style/style.harmony.css +135 -0
  300. package/dist/es/packages/avatargroup/style/style.harmony.css +24 -0
  301. package/dist/es/packages/backtop/backtop.js +1 -3
  302. package/dist/es/packages/backtop/style/backtop.scss +0 -4
  303. package/dist/es/packages/backtop/style/index.js +2 -0
  304. package/dist/es/packages/backtop/style/style.css +126 -3
  305. package/dist/es/packages/backtop/style/style.harmony.css +21 -0
  306. package/dist/es/packages/badge/style/style.css +4 -4
  307. package/dist/es/packages/badge/style/style.harmony.css +114 -0
  308. package/dist/es/packages/barrage/style/style.css +2 -2
  309. package/dist/es/packages/barrage/style/style.harmony.css +84 -0
  310. package/dist/es/packages/button/button.js +22 -15
  311. package/dist/es/packages/button/style/button.scss +3 -3
  312. package/dist/es/packages/button/style/style.css +43 -43
  313. package/dist/es/packages/button/style/style.harmony.css +453 -0
  314. package/dist/es/packages/calendar/calendar.js +1 -1
  315. package/dist/es/packages/calendar/style/style.css +16 -21
  316. package/dist/es/packages/calendar/style/style.harmony.css +222 -0
  317. package/dist/es/packages/calendarcard/calendarcard.js +1 -1
  318. package/dist/es/packages/calendarcard/style/style.css +8 -8
  319. package/dist/es/packages/calendarcard/style/style.harmony.css +186 -0
  320. package/dist/es/packages/calendaritem/calendaritem.js +1 -1
  321. package/dist/es/packages/calendaritem/style/style.harmony.css +4 -0
  322. package/dist/es/packages/card/style/style.css +8 -8
  323. package/dist/es/packages/card/style/style.harmony.css +82 -0
  324. package/dist/es/packages/cascader/cascader.d.ts +2 -2
  325. package/dist/es/packages/cascader/cascader.js +2 -2
  326. package/dist/es/packages/cascader/style/style.css +35 -47
  327. package/dist/es/packages/cascader/style/style.harmony.css +70 -0
  328. package/dist/es/packages/cell/style/style.css +8 -8
  329. package/dist/es/packages/cell/style/style.harmony.css +91 -0
  330. package/dist/es/packages/cellgroup/style/style.css +3 -3
  331. package/dist/es/packages/cellgroup/style/style.harmony.css +31 -0
  332. package/dist/es/packages/checkbox/style/style.css +29 -29
  333. package/dist/es/packages/checkbox/style/style.harmony.css +165 -0
  334. package/dist/es/packages/checkboxgroup/style/style.css +7 -7
  335. package/dist/es/packages/checkboxgroup/style/style.harmony.css +67 -0
  336. package/dist/es/packages/circleprogress/style/style.css +3 -3
  337. package/dist/es/packages/circleprogress/style/style.harmony.css +31 -0
  338. package/dist/es/packages/col/style/col.scss +0 -1
  339. package/dist/es/packages/col/style/style.harmony.css +360 -0
  340. package/dist/es/packages/collapse/style/style.css +11 -11
  341. package/dist/es/packages/collapse/style/style.harmony.css +4 -0
  342. package/dist/es/packages/collapseitem/style/style.css +11 -11
  343. package/dist/es/packages/collapseitem/style/style.harmony.css +104 -0
  344. package/dist/es/packages/configprovider/configprovider.js +2 -2
  345. package/dist/es/packages/configprovider/style/style.harmony.css +4 -0
  346. package/dist/es/packages/configprovider/types.d.ts +1 -1
  347. package/dist/es/packages/countdown/style/style.css +8 -8
  348. package/dist/es/packages/countdown/style/style.harmony.css +113 -0
  349. package/dist/es/packages/countup/style/style.css +3 -3
  350. package/dist/es/packages/datepicker/style/style.css +14 -19
  351. package/dist/es/packages/datepicker/style/style.harmony.css +4 -0
  352. package/dist/es/packages/dialog/content.d.ts +3 -13
  353. package/dist/es/packages/dialog/content.js +16 -6
  354. package/dist/es/packages/dialog/dialog.d.ts +3 -5
  355. package/dist/es/packages/dialog/dialog.js +22 -22
  356. package/dist/es/packages/dialog/index.d.ts +1 -1
  357. package/dist/es/packages/dialog/style/dialog.scss +0 -4
  358. package/dist/es/packages/dialog/style/style.css +49 -57
  359. package/dist/es/packages/dialog/style/style.harmony.css +169 -0
  360. package/dist/es/packages/dialog/types.d.ts +57 -0
  361. package/dist/es/packages/dialog/types.js +1 -0
  362. package/dist/es/packages/dialog/types.taro.d.ts +10 -0
  363. package/dist/es/packages/divider/style/style.css +4 -4
  364. package/dist/es/packages/divider/style/style.harmony.css +72 -0
  365. package/dist/es/packages/drag/style/style.harmony.css +18 -0
  366. package/dist/es/packages/elevator/style/style.css +8 -8
  367. package/dist/es/packages/elevator/style/style.harmony.css +127 -0
  368. package/dist/es/packages/ellipsis/style/style.harmony.css +24 -0
  369. package/dist/es/packages/empty/empty.js +1 -3
  370. package/dist/es/packages/empty/style/style.css +3 -3
  371. package/dist/es/packages/empty/style/style.harmony.css +59 -0
  372. package/dist/es/packages/fixednav/fixednav.d.ts +2 -55
  373. package/dist/es/packages/fixednav/fixednav.js +16 -35
  374. package/dist/es/packages/fixednav/index.d.ts +1 -2
  375. package/dist/es/packages/fixednav/style/style.css +3 -8
  376. package/dist/es/packages/fixednav/style/style.harmony.css +187 -0
  377. package/dist/es/packages/fixednav/types.d.ts +12 -0
  378. package/dist/es/packages/fixednav/types.taro.d.ts +1 -0
  379. package/dist/es/packages/form/style/style.css +15 -15
  380. package/dist/es/packages/form/style/style.harmony.css +70 -0
  381. package/dist/es/packages/formitem/style/style.css +4 -4
  382. package/dist/es/packages/formitem/style/style.harmony.css +108 -0
  383. package/dist/es/packages/grid/style/style.css +6 -6
  384. package/dist/es/packages/grid/style/style.harmony.css +21 -0
  385. package/dist/es/packages/griditem/style/style.css +5 -5
  386. package/dist/es/packages/griditem/style/style.harmony.css +111 -0
  387. package/dist/es/packages/hoverbutton/hoverbutton.js +1 -3
  388. package/dist/es/packages/hoverbutton/style/hoverbutton.scss +0 -4
  389. package/dist/es/packages/hoverbutton/style/style.css +4 -7
  390. package/dist/es/packages/hoverbutton/style/style.harmony.css +25 -0
  391. package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +5 -6
  392. package/dist/es/packages/hoverbuttonitem/style/style.css +4 -4
  393. package/dist/es/packages/hoverbuttonitem/style/style.harmony.css +60 -0
  394. package/dist/es/packages/image/image.js +1 -1
  395. package/dist/es/packages/image/style/style.css +2 -2
  396. package/dist/es/packages/image/style/style.harmony.css +54 -0
  397. package/dist/es/packages/imagepreview/style/style.css +11 -27
  398. package/dist/es/packages/imagepreview/style/style.harmony.css +101 -0
  399. package/dist/es/packages/indicator/style/style.css +4 -4
  400. package/dist/es/packages/indicator/style/style.harmony.css +162 -0
  401. package/dist/es/packages/infiniteloading/infiniteloading.js +1 -1
  402. package/dist/es/packages/infiniteloading/style/style.css +4 -4
  403. package/dist/es/packages/infiniteloading/style/style.harmony.css +63 -0
  404. package/dist/es/packages/input/style/input.scss +0 -6
  405. package/dist/es/packages/input/style/style.css +8 -14
  406. package/dist/es/packages/input/style/style.harmony.css +54 -0
  407. package/dist/es/packages/inputnumber/inputnumber.js +6 -16
  408. package/dist/es/packages/inputnumber/style/style.css +7 -7
  409. package/dist/es/packages/inputnumber/style/style.harmony.css +61 -0
  410. package/dist/es/packages/layout/style/style.harmony.css +4 -0
  411. package/dist/es/packages/loading/style/style.css +2 -2
  412. package/dist/es/packages/loading/style/style.harmony.css +45 -0
  413. package/dist/es/packages/lottie/mp.js +14 -4
  414. package/dist/es/packages/lottie/style/style.harmony.css +4 -0
  415. package/dist/es/packages/menu/style/style.css +8 -13
  416. package/dist/es/packages/menu/style/style.harmony.css +56 -0
  417. package/dist/es/packages/menuitem/style/style.css +4 -9
  418. package/dist/es/packages/menuitem/style/style.harmony.css +122 -0
  419. package/dist/es/packages/navbar/style/navbar.scss +1 -1
  420. package/dist/es/packages/navbar/style/style.css +3 -3
  421. package/dist/es/packages/navbar/style/style.harmony.css +106 -0
  422. package/dist/es/packages/noticebar/style/style.harmony.css +194 -0
  423. package/dist/es/packages/notify/notify.js +2 -9
  424. package/dist/es/packages/notify/style/style.css +4 -4
  425. package/dist/es/packages/notify/style/style.harmony.css +90 -0
  426. package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  427. package/dist/es/packages/numberkeyboard/numberkeyboard.js +1 -1
  428. package/dist/es/packages/numberkeyboard/style/style.css +13 -18
  429. package/dist/es/packages/numberkeyboard/style/style.harmony.css +129 -0
  430. package/dist/es/packages/overlay/index.d.ts +1 -1
  431. package/dist/es/packages/overlay/overlay.d.ts +1 -12
  432. package/dist/es/packages/overlay/overlay.js +22 -35
  433. package/dist/es/packages/overlay/style/overlay.scss +0 -5
  434. package/dist/es/packages/overlay/style/style.css +1 -6
  435. package/dist/es/packages/overlay/style/style.harmony.css +63 -0
  436. package/dist/es/packages/overlay/types.d.ts +11 -0
  437. package/dist/es/packages/overlay/types.js +1 -0
  438. package/dist/es/packages/overlay/types.taro.d.ts +5 -0
  439. package/dist/es/packages/pagination/style/style.css +7 -7
  440. package/dist/es/packages/pagination/style/style.harmony.css +139 -0
  441. package/dist/es/packages/picker/picker.d.ts +1 -1
  442. package/dist/es/packages/picker/picker.js +2 -2
  443. package/dist/es/packages/picker/style/style.css +14 -19
  444. package/dist/es/packages/picker/style/style.harmony.css +168 -0
  445. package/dist/es/packages/popover/popover.d.ts +1 -1
  446. package/dist/es/packages/popover/popover.js +1 -1
  447. package/dist/es/packages/popover/style/style.css +12 -17
  448. package/dist/es/packages/popover/style/style.harmony.css +294 -0
  449. package/dist/es/packages/popup/index.d.ts +1 -1
  450. package/dist/es/packages/popup/popup.d.ts +2 -25
  451. package/dist/es/packages/popup/popup.js +23 -39
  452. package/dist/es/packages/popup/style/style.css +5 -10
  453. package/dist/es/packages/popup/style/style.harmony.css +363 -0
  454. package/dist/es/packages/popup/types.d.ts +25 -0
  455. package/dist/es/packages/popup/types.js +1 -0
  456. package/dist/es/packages/popup/types.taro.d.ts +8 -0
  457. package/dist/es/packages/price/style/style.css +1 -1
  458. package/dist/es/packages/price/style/style.harmony.css +96 -0
  459. package/dist/es/packages/progress/progress.js +4 -7
  460. package/dist/es/packages/progress/style/style.css +1 -1
  461. package/dist/es/packages/progress/style/style.harmony.css +77 -0
  462. package/dist/es/packages/pulltorefresh/pulltorefresh.js +1 -6
  463. package/dist/es/packages/pulltorefresh/style/style.css +4 -4
  464. package/dist/es/packages/pulltorefresh/style/style.harmony.css +43 -0
  465. package/dist/es/packages/radio/style/style.css +19 -19
  466. package/dist/es/packages/radio/style/style.harmony.css +93 -0
  467. package/dist/es/packages/radiogroup/style/style.css +6 -6
  468. package/dist/es/packages/radiogroup/style/style.harmony.css +49 -0
  469. package/dist/es/packages/range/range.js +7 -41
  470. package/dist/es/packages/range/style/style.css +9 -9
  471. package/dist/es/packages/range/style/style.harmony.css +271 -0
  472. package/dist/es/packages/rate/style/style.css +4 -4
  473. package/dist/es/packages/rate/style/style.harmony.css +168 -0
  474. package/dist/es/packages/resultpage/style/style.css +2 -2
  475. package/dist/es/packages/resultpage/style/style.harmony.css +47 -0
  476. package/dist/es/packages/row/style/style.harmony.css +54 -0
  477. package/dist/es/packages/safearea/style/style.harmony.css +14 -0
  478. package/dist/es/packages/searchbar/searchbar.js +1 -1
  479. package/dist/es/packages/searchbar/style/style.css +5 -5
  480. package/dist/es/packages/searchbar/style/style.harmony.css +269 -0
  481. package/dist/es/packages/segmented/style/style.css +2 -2
  482. package/dist/es/packages/segmented/style/style.harmony.css +42 -0
  483. package/dist/es/packages/shortpassword/shortpassword.d.ts +1 -1
  484. package/dist/es/packages/shortpassword/style/style.css +15 -20
  485. package/dist/es/packages/shortpassword/style/style.harmony.css +123 -0
  486. package/dist/es/packages/sidebar/style/style.css +5 -5
  487. package/dist/es/packages/sidebar/style/style.harmony.css +63 -0
  488. package/dist/es/packages/sidebaritem/style/style.css +1 -1
  489. package/dist/es/packages/sidebaritem/style/style.harmony.css +19 -0
  490. package/dist/es/packages/sidenavbar/style/style.css +9 -14
  491. package/dist/es/packages/sidenavbar/style/style.harmony.css +74 -0
  492. package/dist/es/packages/sidenavbaritem/style/style.css +2 -2
  493. package/dist/es/packages/sidenavbaritem/style/style.harmony.css +14 -0
  494. package/dist/es/packages/signature/style/style.css +2 -2
  495. package/dist/es/packages/signature/style/style.harmony.css +22 -0
  496. package/dist/es/packages/skeleton/style/skeleton.scss +0 -18
  497. package/dist/es/packages/skeleton/style/style.css +5 -11
  498. package/dist/es/packages/skeleton/style/style.harmony.css +79 -0
  499. package/dist/es/packages/space/style/style.harmony.css +83 -0
  500. package/dist/es/packages/step/style/style.css +19 -19
  501. package/dist/es/packages/step/style/style.harmony.css +201 -0
  502. package/dist/es/packages/steps/style/style.css +19 -19
  503. package/dist/es/packages/steps/style/style.harmony.css +12 -0
  504. package/dist/es/packages/sticky/style/style.harmony.css +7 -0
  505. package/dist/es/packages/subsidenavbar/style/style.css +2 -2
  506. package/dist/es/packages/subsidenavbar/style/style.harmony.css +20 -0
  507. package/dist/es/packages/swipe/style/style.harmony.css +33 -0
  508. package/dist/es/packages/swipe/swipe.js +2 -2
  509. package/dist/es/packages/swiper/style/style.css +4 -15
  510. package/dist/es/packages/swiper/style/style.harmony.css +63 -0
  511. package/dist/es/packages/swiper/style/swiper.scss +0 -11
  512. package/dist/es/packages/swiperitem/style/style.harmony.css +7 -0
  513. package/dist/es/packages/switch/style/style.css +6 -6
  514. package/dist/es/packages/switch/style/style.harmony.css +91 -0
  515. package/dist/es/packages/tabbar/style/style.css +10 -10
  516. package/dist/es/packages/tabbar/style/style.harmony.css +50 -0
  517. package/dist/es/packages/tabbaritem/style/style.css +9 -9
  518. package/dist/es/packages/tabbaritem/style/style.harmony.css +59 -0
  519. package/dist/es/packages/table/style/style.css +11 -11
  520. package/dist/es/packages/table/style/style.harmony.css +230 -0
  521. package/dist/es/packages/table/table.js +1 -1
  522. package/dist/es/packages/tabpane/style/style.css +1 -1
  523. package/dist/es/packages/tabpane/style/style.harmony.css +18 -0
  524. package/dist/es/packages/tabpane/tabpane.js +2 -2
  525. package/dist/es/packages/tabs/style/style.css +25 -32
  526. package/dist/es/packages/tabs/style/style.harmony.css +320 -0
  527. package/dist/es/packages/tabs/style/tabs.scss +4 -9
  528. package/dist/es/packages/tabs/tabs.js +30 -49
  529. package/dist/es/packages/tag/style/style.css +5 -5
  530. package/dist/es/packages/tag/style/style.harmony.css +73 -0
  531. package/dist/es/packages/tag/style/tag.scss +0 -2
  532. package/dist/es/packages/textarea/style/style.css +13 -13
  533. package/dist/es/packages/textarea/style/style.harmony.css +79 -0
  534. package/dist/es/packages/textarea/textarea.js +1 -1
  535. package/dist/es/packages/timedetail/style/style.css +4 -4
  536. package/dist/es/packages/timedetail/style/style.harmony.css +34 -0
  537. package/dist/es/packages/timeselect/style/style.css +14 -19
  538. package/dist/es/packages/timeselect/style/style.harmony.css +35 -0
  539. package/dist/es/packages/timeselect/timeselect.js +1 -1
  540. package/dist/es/packages/toast/index.d.ts +2 -1
  541. package/dist/es/packages/toast/style/style.css +2 -20
  542. package/dist/es/packages/toast/style/style.harmony.css +138 -0
  543. package/dist/es/packages/toast/style/toast.scss +0 -13
  544. package/dist/es/packages/toast/toast.d.ts +1 -22
  545. package/dist/es/packages/toast/toast.js +26 -25
  546. package/dist/es/packages/toast/types.d.ts +17 -0
  547. package/dist/es/packages/toast/types.js +1 -0
  548. package/dist/es/packages/tour/style/style.css +16 -21
  549. package/dist/es/packages/tour/style/style.harmony.css +82 -0
  550. package/dist/es/packages/tour/tour.js +1 -1
  551. package/dist/es/packages/trendarrow/style/style.css +1 -1
  552. package/dist/es/packages/trendarrow/style/style.harmony.css +42 -0
  553. package/dist/es/packages/uploader/style/style.css +12 -12
  554. package/dist/es/packages/uploader/style/style.harmony.css +241 -0
  555. package/dist/es/packages/uploader/uploader.js +1 -1
  556. package/dist/es/packages/video/style/style.harmony.css +22 -0
  557. package/dist/es/packages/virtuallist/style/style.css +4 -4
  558. package/dist/es/packages/virtuallist/style/style.harmony.css +74 -0
  559. package/dist/es/packages/watermark/style/style.harmony.css +17 -0
  560. package/dist/es/utils/get-rect-by-taro.js +0 -14
  561. package/dist/es/utils/platform-taro.d.ts +0 -2
  562. package/dist/es/utils/platform-taro.js +0 -15
  563. package/dist/es/utils/px-transform.js +1 -2
  564. package/dist/es/utils/use-custom-event.js +1 -1
  565. package/dist/nutui.react.umd.js +434 -1120
  566. package/dist/style.css +1 -1
  567. package/dist/style.scss +38 -38
  568. package/dist/styles/variables.scss +77 -35
  569. package/package.json +2 -2
@@ -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,12 +403,6 @@
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"
@@ -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,10 +510,10 @@
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";
@@ -531,7 +523,7 @@
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
528
  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, [
537
529
  "children",
@@ -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);
905
+ throw error;
1487
906
  }
1488
- function stubArray() {
1489
- return [];
1490
- }
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,7 +1135,6 @@
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
1140
  var defaultProps$1y = _object_spread_props(_object_spread({}, ComponentDefaults), {
@@ -1738,7 +1148,7 @@
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
1154
  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;
@@ -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";
@@ -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,43 +3274,38 @@
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({});
@@ -3945,7 +3357,7 @@
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
3362
  var _ref = _object_spread({}, defaultProps$1v, props), children = _ref.children, contentPosition = _ref.contentPosition, style = _ref.style, className = _ref.className, direction = _ref.direction;
3951
3363
  _object_without_properties(_ref, [
@@ -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);
@@ -4127,7 +3539,7 @@
4127
3539
  }, "Layout");
4128
3540
  };
4129
3541
  Layout.displayName = "NutLayout";
4130
- var classPrefix$r = "nut-row";
3542
+ var classPrefix$q = "nut-row";
4131
3543
  var defaultProps$1s = _object_spread_props(_object_spread({}, ComponentDefaults), {
4132
3544
  type: "",
4133
3545
  justify: "start",
@@ -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
@@ -4368,19 +3780,6 @@
4368
3780
  Promise.resolve(getRect(element))
4369
3781
  ];
4370
3782
  }
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
3783
  return [
4385
3784
  2,
4386
3785
  new Promise(function(resolve, reject) {
@@ -4405,7 +3804,7 @@
4405
3804
  position: "top",
4406
3805
  zIndex: 900
4407
3806
  });
4408
- var classPrefix$q = "nut-sticky";
3807
+ var classPrefix$p = "nut-sticky";
4409
3808
  var Sticky = function(props) {
4410
3809
  var _ref = _object_spread({}, defaultProps$1q, props), position2 = _ref.position, zIndex = _ref.zIndex, threshold = _ref.threshold;
4411
3810
  _ref.style;
@@ -4564,7 +3963,7 @@
4564
3963
  return /* @__PURE__ */ React.createElement("div", _object_spread({
4565
3964
  ref: rootRef,
4566
3965
  style: rootStyle,
4567
- className: classNames(classPrefix$q, className)
3966
+ className: classNames(classPrefix$p, className)
4568
3967
  }, rest), /* @__PURE__ */ React.createElement(components.View, {
4569
3968
  className: classNames("nut-sticky-box", {
4570
3969
  "nut-sticky-fixed": fixed
@@ -4574,10 +3973,10 @@
4574
3973
  }, children));
4575
3974
  };
4576
3975
  Sticky.displayName = "NutSticky";
4577
- var classPrefix$p = "nut-safe-area";
3976
+ var classPrefix$o = "nut-safe-area";
4578
3977
  var SafeArea = function(props) {
4579
3978
  return /* @__PURE__ */ React.createElement(components.View, {
4580
- className: classNames(classPrefix$p, "".concat(classPrefix$p, "-position-").concat(props.position))
3979
+ className: classNames(classPrefix$o, "".concat(classPrefix$o, "-position-").concat(props.position))
4581
3980
  });
4582
3981
  };
4583
3982
  SafeArea.displayName = "NutSafeArea";
@@ -4592,14 +3991,13 @@
4592
3991
  onClick: function(value2) {
4593
3992
  }
4594
3993
  });
4595
- var classPrefix$o = "nut-hoverbutton-item";
3994
+ var classPrefix$n = "nut-hoverbutton-item";
4596
3995
  var isHarmony = harmony();
4597
- var isNative$1 = harmonyAndRn();
4598
3996
  var HoverButtonItem = function(props) {
4599
3997
  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;
4600
3998
  var _useState = _sliced_to_array(React.useState(false), 2), isTouchStart = _useState[0], setTouchStart = _useState[1];
4601
3999
  React.useMemo(function() {
4602
- return isNative$1 ? {
4000
+ return isHarmony ? {
4603
4001
  color: isTouchStart ? "#595959" : "#1A1A1A"
4604
4002
  } : {};
4605
4003
  }, [
@@ -4609,29 +4007,29 @@
4609
4007
  onClick && onClick(event);
4610
4008
  };
4611
4009
  var handleActiveStart = function(event) {
4612
- isNative$1 && setTouchStart(true);
4010
+ isHarmony && setTouchStart(true);
4613
4011
  };
4614
4012
  var handleActiveEnd = function(event) {
4615
- isNative$1 && setTouchStart(false);
4013
+ isHarmony && setTouchStart(false);
4616
4014
  };
4617
4015
  var renderBody = function() {
4618
4016
  if (icon && !children) return /* @__PURE__ */ React.createElement(components.View, {
4619
- className: "".concat(classPrefix$o, "-icon")
4017
+ className: "".concat(classPrefix$n, "-icon")
4620
4018
  }, getIcon(icon));
4621
4019
  if (icon && children) {
4622
4020
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(components.View, {
4623
- className: classNames(_define_property({}, "".concat(classPrefix$o, "-text-icon"), true))
4021
+ className: classNames(_define_property({}, "".concat(classPrefix$n, "-text-icon"), true))
4624
4022
  }), getIcon(icon), /* @__PURE__ */ React.createElement(components.View, {
4625
- className: classNames(_define_property({}, "".concat(classPrefix$o, "-text"), true))
4023
+ className: classNames(_define_property({}, "".concat(classPrefix$n, "-text"), true))
4626
4024
  }, children));
4627
4025
  }
4628
4026
  };
4629
4027
  var _obj;
4630
4028
  return /* @__PURE__ */ React.createElement(components.View, {
4631
4029
  className: classNames([
4632
- "".concat(classPrefix$o, "-container"),
4030
+ "".concat(classPrefix$n, "-container"),
4633
4031
  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)),
4032
+ ], (_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
4033
  style,
4636
4034
  onTouchStart: handleActiveStart,
4637
4035
  onTouchEnd: handleActiveEnd,
@@ -4642,7 +4040,7 @@
4642
4040
  HoverButtonItem.displayName = "NutHoverButtonItem";
4643
4041
  var UI_BOTTOM_DISTANCE = 60;
4644
4042
  var defaultProps$1o = _object_spread({}, ComponentDefaults);
4645
- var classPrefix$n = "nut-hoverbutton";
4043
+ var classPrefix$m = "nut-hoverbutton";
4646
4044
  var HoverButton = function(props) {
4647
4045
  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;
4648
4046
  var rtl = useRtl();
@@ -4653,15 +4051,14 @@
4653
4051
  if (typeof zIndex !== "undefined") {
4654
4052
  baseStyle.zIndex = zIndex;
4655
4053
  }
4656
- var _obj;
4657
4054
  return /* @__PURE__ */ React.createElement(components.View, {
4658
4055
  className: classNames([
4659
- "".concat(classPrefix$n, "-container"),
4056
+ "".concat(classPrefix$m, "-container"),
4660
4057
  className
4661
- ], (_obj = {}, _define_property(_obj, "".concat(classPrefix$n, "-container-rtl"), rtl), _define_property(_obj, "".concat(classPrefix$n, "-container-rn"), Taro.getEnv() === "RN"), _obj)),
4058
+ ], _define_property({}, "".concat(classPrefix$m, "-container-rtl"), rtl)),
4662
4059
  style: baseStyle
4663
4060
  }, /* @__PURE__ */ React.createElement(components.View, {
4664
- className: classPrefix$n
4061
+ className: classPrefix$m
4665
4062
  }, children || icon && /* @__PURE__ */ React.createElement(HoverButtonItem, {
4666
4063
  icon,
4667
4064
  onClick
@@ -4680,8 +4077,7 @@
4680
4077
  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;
4681
4078
  var classPrefix2 = "nut-backtop";
4682
4079
  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);
4080
+ var cls = classNames(classPrefix2, _define_property({}, "".concat(classPrefix2, "-show"), backTop), className);
4685
4081
  var systemInfo = React.useRef({});
4686
4082
  React.useEffect(function() {
4687
4083
  Taro.getSystemInfo().then(function(res) {
@@ -4996,53 +4392,37 @@
4996
4392
  };
4997
4393
  Elevator.displayName = "NutElevator";
4998
4394
  Elevator.Context = elevatorContext;
4999
- var defaultProps$1l = _object_spread_props(_object_spread({}, ComponentDefaults), {
4395
+ var defaultProps$1l = _object_spread_props(_object_spread({}, defaultOverlayProps), {
5000
4396
  activeText: "",
5001
4397
  inactiveText: "",
5002
4398
  type: "right",
4399
+ list: [],
4400
+ overlay: true,
5003
4401
  position: {
5004
4402
  top: "auto",
5005
4403
  bottom: "auto"
4404
+ },
4405
+ zIndex: 200,
4406
+ onChange: function(value2) {
4407
+ },
4408
+ onSelect: function() {
5006
4409
  }
5007
4410
  });
5008
4411
  var FixedNav = function(props) {
5009
4412
  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
- ]);
4413
+ var _$_object_spread = _object_spread({}, defaultProps$1l, 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
4414
  var classPrefix2 = "nut-fixednav";
5026
4415
  var classes = classNames(classPrefix2, {
5027
4416
  active: visible
5028
4417
  }, 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({
4418
+ return /* @__PURE__ */ React.createElement(components.View, {
5037
4419
  className: classes,
5038
4420
  style: _object_spread({}, position2, style)
5039
- }, rest), overlay && /* @__PURE__ */ React.createElement(Overlay, {
4421
+ }, overlay && /* @__PURE__ */ React.createElement(Overlay, {
5040
4422
  visible,
5041
- style: {
5042
- "--nutui-overlay-zIndex": 200
5043
- },
4423
+ zIndex,
5044
4424
  onClick: function() {
5045
- return onUpdateValue(false);
4425
+ return onChange(false);
5046
4426
  }
5047
4427
  }), /* @__PURE__ */ React.createElement(components.View, {
5048
4428
  className: "list"
@@ -5052,7 +4432,7 @@
5052
4432
  return /* @__PURE__ */ React.createElement(components.View, {
5053
4433
  className: "".concat(classPrefix2, "-list-item"),
5054
4434
  onClick: function(event) {
5055
- return handleClick(item, event);
4435
+ return onSelect(item, event);
5056
4436
  },
5057
4437
  key: item.id || index2
5058
4438
  }, /* @__PURE__ */ React.isValidElement(item.icon) ? item.icon : /* @__PURE__ */ React.createElement("img", {
@@ -5066,7 +4446,7 @@
5066
4446
  }))), /* @__PURE__ */ React.createElement(components.View, {
5067
4447
  className: "".concat(classPrefix2, "-btn"),
5068
4448
  onClick: function() {
5069
- return onUpdateValue();
4449
+ return onChange(!visible);
5070
4450
  }
5071
4451
  }, content2 || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(m$1, {
5072
4452
  color: "#fff"
@@ -5135,7 +4515,7 @@
5135
4515
  }, renderWrapper()) : renderWrapper());
5136
4516
  };
5137
4517
  NavBar.displayName = "NutNavBar";
5138
- var defaultProps$1j = _object_spread(_object_spread_props(_object_spread({}, ComponentDefaults), {
4518
+ var defaultProps$1j = _object_spread_props(_object_spread({}, defaultOverlayProps), {
5139
4519
  position: "center",
5140
4520
  transition: "",
5141
4521
  overlayStyle: {},
@@ -5151,13 +4531,13 @@
5151
4531
  },
5152
4532
  onClose: function() {
5153
4533
  },
5154
- onOverlayClick: function(e2) {
4534
+ onOverlayClick: function() {
5155
4535
  return true;
5156
4536
  },
5157
- onCloseIconClick: function(e2) {
4537
+ onCloseIconClick: function() {
5158
4538
  return true;
5159
4539
  }
5160
- }), defaultOverlayProps);
4540
+ });
5161
4541
  var _zIndex = 1100;
5162
4542
  var Popup = function(props) {
5163
4543
  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;
@@ -5168,17 +4548,12 @@
5168
4548
  var _useState3 = _sliced_to_array(React.useState(""), 2), transitionName = _useState3[0], setTransitionName = _useState3[1];
5169
4549
  var refObject = useLockScrollTaro(innerVisible && lockScroll);
5170
4550
  var classPrefix2 = "nut-popup";
5171
- var baseStyle = {
4551
+ var overlayStyles = _object_spread({}, overlayStyle);
4552
+ var popStyles = _object_spread_props(_object_spread({}, style), {
5172
4553
  zIndex: index2
5173
- };
5174
- var overlayStyles = _object_spread_props(_object_spread({}, overlayStyle), {
5175
- "--nutui-overlay-zIndex": index2
5176
4554
  });
5177
- var popStyles = _object_spread({}, style, baseStyle);
5178
4555
  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));
4556
+ 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
4557
  var open2 = function() {
5183
4558
  if (!innerVisible) {
5184
4559
  setInnerVisible(true);
@@ -5200,30 +4575,20 @@
5200
4575
  onClose && onClose();
5201
4576
  }
5202
4577
  };
5203
- var onHandleClickOverlay = function(e2) {
4578
+ var handleOverlayClick = function(e2) {
5204
4579
  e2.stopPropagation();
5205
- if (closeOnOverlayClick) {
5206
- var closed = onOverlayClick && onOverlayClick(e2);
5207
- closed && close2();
4580
+ if (closeOnOverlayClick && onOverlayClick(e2)) {
4581
+ close2();
5208
4582
  }
5209
4583
  };
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();
4584
+ var handleCloseIconClick = function(e2) {
4585
+ onCloseIconClick(e2) && close2();
5222
4586
  };
5223
4587
  var renderCloseIcon = function() {
4588
+ var closeClasses = classNames("".concat(classPrefix2, "-title-right"), "".concat(classPrefix2, "-title-right-").concat(closeIconPosition));
5224
4589
  return /* @__PURE__ */ React.createElement(React.Fragment, null, closeable && /* @__PURE__ */ React.createElement(components.View, {
5225
4590
  className: closeClasses,
5226
- onClick: onHandleClickCloseIcon
4591
+ onClick: handleCloseIconClick
5227
4592
  }, /* @__PURE__ */ React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ React.createElement(g$1, null)));
5228
4593
  };
5229
4594
  var renderTitle = function() {
@@ -5252,26 +4617,27 @@
5252
4617
  unmountOnExit: destroyOnClose,
5253
4618
  timeout: duration,
5254
4619
  in: innerVisible,
5255
- onEntered: onHandleOpened,
5256
- onExited: onHandleClosed
4620
+ onEntered: afterShow,
4621
+ onExited: afterClose
5257
4622
  }, /* @__PURE__ */ React.createElement(components.View, {
5258
4623
  ref: refObject,
5259
4624
  style: popStyles,
5260
4625
  className: popClassName,
5261
- onClick: onHandleClick,
4626
+ onClick,
5262
4627
  catchMove: lockScroll
5263
- }, renderTitle(), showChildren ? children : ""));
4628
+ }, renderTitle(), showChildren ? children : null));
5264
4629
  };
5265
4630
  var renderNode = function() {
5266
- return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay ? /* @__PURE__ */ React.createElement(Overlay, {
4631
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay && /* @__PURE__ */ React.createElement(Overlay, {
4632
+ zIndex: index2,
5267
4633
  style: overlayStyles,
5268
4634
  className: overlayClassName,
5269
4635
  visible: innerVisible,
5270
4636
  closeOnOverlayClick,
5271
4637
  lockScroll,
5272
4638
  duration,
5273
- onClick: onHandleClickOverlay
5274
- }) : null, renderPop());
4639
+ onClick: handleOverlayClick
4640
+ }), renderPop());
5275
4641
  };
5276
4642
  React.useEffect(function() {
5277
4643
  visible ? open2() : close2();
@@ -5285,8 +4651,7 @@
5285
4651
  transition
5286
4652
  ]);
5287
4653
  var resolveContainer = function(getContainer) {
5288
- var container = typeof getContainer === "function" ? getContainer() : getContainer;
5289
- return container || document.body;
4654
+ return (typeof getContainer === "function" ? getContainer() : getContainer) || document.body;
5290
4655
  };
5291
4656
  var renderToContainer = function(getContainer, node) {
5292
4657
  if (getContainer) {
@@ -5432,7 +4797,7 @@
5432
4797
  contentDuration: 0,
5433
4798
  sidebarDuration: 0
5434
4799
  });
5435
- var classPrefix$m = "nut-sidebar";
4800
+ var classPrefix$l = "nut-sidebar";
5436
4801
  var SideBar = function(props) {
5437
4802
  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, [
5438
4803
  "contentDuration",
@@ -5478,8 +4843,8 @@
5478
4843
  }, [
5479
4844
  children
5480
4845
  ]);
5481
- var classes = classNames(classPrefix$m, className);
5482
- var classesTitle = classNames("".concat(classPrefix$m, "-titles"), "".concat(classPrefix$m, "-titles-scrollable"));
4846
+ var classes = classNames(classPrefix$l, className);
4847
+ var classesTitle = classNames("".concat(classPrefix$l, "-titles"), "".concat(classPrefix$l, "-titles-scrollable"));
5483
4848
  var getRect2 = function(selector) {
5484
4849
  return new Promise(function(resolve) {
5485
4850
  Taro.createSelectorQuery().select(selector).boundingClientRect().exec(function() {
@@ -5514,8 +4879,8 @@
5514
4879
  var scrollIntoView = function(index2) {
5515
4880
  requestAniFrame$1(function() {
5516
4881
  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"))
4882
+ getRect2("#".concat(classPrefix$l, "-titles-").concat(uuid, " .").concat(classPrefix$l, "-list")),
4883
+ getAllRect("#".concat(classPrefix$l, "-titles-").concat(uuid, " .").concat(classPrefix$l, "-titles-item"))
5519
4884
  ]).then(function(param) {
5520
4885
  var _param = _sliced_to_array(param, 2), navRect = _param[0], titleRects = _param[1];
5521
4886
  navRectRef.current = navRect;
@@ -5562,10 +4927,10 @@
5562
4927
  scrollTop,
5563
4928
  showScrollbar: false,
5564
4929
  scrollWithAnimation: Taro.getEnv() !== "WEB" ? false : scrollWithAnimation.current,
5565
- id: "".concat(classPrefix$m, "-titles-").concat(uuid),
4930
+ id: "".concat(classPrefix$l, "-titles-").concat(uuid),
5566
4931
  className: classesTitle
5567
4932
  }, /* @__PURE__ */ React.createElement(components.View, {
5568
- className: "".concat(classPrefix$m, "-list"),
4933
+ className: "".concat(classPrefix$l, "-list"),
5569
4934
  ref: navRef
5570
4935
  }, titles.current.map(function(item, index2) {
5571
4936
  var _obj;
@@ -5577,15 +4942,15 @@
5577
4942
  onClick: function(e2) {
5578
4943
  tabChange(item);
5579
4944
  },
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)),
4945
+ 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
4946
  key: item.value
5582
4947
  }, /* @__PURE__ */ React.createElement(components.View, {
5583
- className: classNames("".concat(classPrefix$m, "-ellipsis"), "".concat(classPrefix$m, "-titles-item-text"))
4948
+ className: classNames("".concat(classPrefix$l, "-ellipsis"), "".concat(classPrefix$l, "-titles-item-text"))
5584
4949
  }, item.title));
5585
4950
  }))), /* @__PURE__ */ React.createElement(components.View, {
5586
- className: "".concat(classPrefix$m, "-content-wrap")
4951
+ className: "".concat(classPrefix$l, "-content-wrap")
5587
4952
  }, /* @__PURE__ */ React.createElement(components.View, {
5588
- className: "".concat(classPrefix$m, "-content"),
4953
+ className: "".concat(classPrefix$l, "-content"),
5589
4954
  style: getContentStyle()
5590
4955
  }, React.Children.map(children, function(child, idx) {
5591
4956
  if (!/* @__PURE__ */ React.isValidElement(child)) {
@@ -5894,9 +5259,9 @@
5894
5259
  var classes = classNames(classPrefix2, {
5895
5260
  active: !disabled && props.active
5896
5261
  }, autoHeightClassName, className);
5897
- return children ? /* @__PURE__ */ React.createElement(components.View, {
5262
+ return children && /* @__PURE__ */ React.createElement(components.View, {
5898
5263
  className: classes
5899
- }, !disabled && children) : null;
5264
+ }, !disabled && children);
5900
5265
  };
5901
5266
  var defaultProps$1a = _object_spread_props(_object_spread({}, ComponentDefaults), {
5902
5267
  tabStyle: {},
@@ -5906,7 +5271,7 @@
5906
5271
  duration: 300,
5907
5272
  autoHeight: false
5908
5273
  });
5909
- var classPrefix$l = "nut-tabs";
5274
+ var classPrefix$k = "nut-tabs";
5910
5275
  var Tabs = function(props) {
5911
5276
  var rtl = useRtl();
5912
5277
  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, [
@@ -5930,7 +5295,6 @@
5930
5295
  var _usePropsValue = _sliced_to_array(usePropsValue({
5931
5296
  value: outerValue,
5932
5297
  defaultValue: outerDefaultValue,
5933
- finalValue: 0,
5934
5298
  onChange
5935
5299
  }), 2), value2 = _usePropsValue[0], setValue = _usePropsValue[1];
5936
5300
  var titleItemsRef = React.useRef([]);
@@ -5938,7 +5302,7 @@
5938
5302
  var titles2 = [];
5939
5303
  React.Children.forEach(children, function(child, idx) {
5940
5304
  if (/* @__PURE__ */ React.isValidElement(child)) {
5941
- var _$props = child === null || child === void 0 ? void 0 : child.props;
5305
+ var _$props = child.props;
5942
5306
  if ((_$props === null || _$props === void 0 ? void 0 : _$props.title) || (_$props === null || _$props === void 0 ? void 0 : _$props.value)) {
5943
5307
  titles2.push({
5944
5308
  title: _$props.title,
@@ -5968,13 +5332,9 @@
5968
5332
  }, [
5969
5333
  children
5970
5334
  ]);
5971
- var classes = classNames(classPrefix$l, "".concat(classPrefix$l, "-").concat(direction), className);
5335
+ var classes = classNames(classPrefix$k, "".concat(classPrefix$k, "-").concat(direction), className);
5972
5336
  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
- };
5337
+ 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
5338
  var getRect2 = function(selector) {
5979
5339
  return new Promise(function(resolve) {
5980
5340
  Taro.createSelectorQuery().select(selector).boundingClientRect().exec(function() {
@@ -5992,22 +5352,15 @@
5992
5352
  });
5993
5353
  };
5994
5354
  var scrollWithAnimation = React.useRef(false);
5995
- var navRectRef = React.useRef();
5996
- var titleRectRef = React.useRef([]);
5997
5355
  var _useState = _sliced_to_array(React.useState(0), 2), scrollLeft = _useState[0], setScrollLeft = _useState[1];
5998
5356
  var _useState1 = _sliced_to_array(React.useState(0), 2), scrollTop = _useState1[0], setScrollTop = _useState1[1];
5999
5357
  var scrollDirection = function(to, direction2) {
6000
5358
  var count = 0;
6001
5359
  var frames2 = 1;
6002
5360
  function animate() {
6003
- if (direction2 === "horizontal") {
6004
- setScrollLeft(to);
6005
- } else {
6006
- setScrollTop(to);
6007
- }
6008
- if (++count < frames2) {
6009
- requestAniFrame$1(animate);
6010
- }
5361
+ if (direction2 === "horizontal") setScrollLeft(to);
5362
+ else setScrollTop(to);
5363
+ if (++count < frames2) requestAniFrame$1(animate);
6011
5364
  }
6012
5365
  animate();
6013
5366
  };
@@ -6018,21 +5371,19 @@
6018
5371
  getAllRect("#nut-tabs-titles-".concat(name2 || uuid, " .nut-tabs-titles-item"))
6019
5372
  ]).then(function(param) {
6020
5373
  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];
5374
+ var titleRect = titleRects[index2];
6024
5375
  if (!titleRect) return;
6025
5376
  var to = 0;
6026
5377
  if (direction === "vertical") {
6027
5378
  var top = titleRects.slice(0, index2).reduce(function(prev, curr) {
6028
5379
  return prev + curr.height;
6029
5380
  }, 0);
6030
- to = top - (navRectRef.current.height - titleRect.height) / 2;
5381
+ to = top - (navRect.height - titleRect.height) / 2;
6031
5382
  } else {
6032
5383
  var left2 = titleRects.slice(0, index2).reduce(function(prev, curr) {
6033
5384
  return prev + curr.width;
6034
5385
  }, 0);
6035
- to = left2 - (navRectRef.current.width - titleRect.width) / 2;
5386
+ to = left2 - (navRect.width - titleRect.width) / 2;
6036
5387
  if (to < 0) return;
6037
5388
  to = rtl ? -to : to;
6038
5389
  }
@@ -6049,7 +5400,7 @@
6049
5400
  });
6050
5401
  index2 = index2 < 0 ? 0 : index2;
6051
5402
  return {
6052
- transform: direction === "horizontal" ? "translate3d(".concat(rtl ? "" : "-").concat(index2 * 100, "%, 0, 0)") : "translate3d( 0,-".concat(index2 * 100, "%, 0)"),
5403
+ transform: direction === "horizontal" ? "translate3d(".concat(rtl ? "" : "-").concat(index2 * 100, "%, 0, 0)") : "translate3d( 0, -".concat(index2 * 100, "%, 0)"),
6053
5404
  transitionDuration: "".concat(duration, "ms")
6054
5405
  };
6055
5406
  };
@@ -6062,12 +5413,11 @@
6062
5413
  }, [
6063
5414
  value2
6064
5415
  ]);
6065
- var tabChange = function(item, index2) {
5416
+ var tabChange = function(item) {
6066
5417
  onClick && onClick(item.value);
6067
- if (item.disabled) {
6068
- return;
5418
+ if (!item.disabled) {
5419
+ setValue(item.value);
6069
5420
  }
6070
- setValue(item.value);
6071
5421
  };
6072
5422
  return /* @__PURE__ */ React.createElement(components.View, _object_spread({
6073
5423
  className: classes
@@ -6081,50 +5431,47 @@
6081
5431
  scrollWithAnimation: rtl && Taro.getEnv() !== "WEB" ? false : scrollWithAnimation.current,
6082
5432
  id: "nut-tabs-titles-".concat(name2 || uuid),
6083
5433
  className: classesTitle,
6084
- style: _object_spread({}, tabStyle)
5434
+ style: tabStyle
6085
5435
  }, /* @__PURE__ */ React.createElement(components.View, {
6086
5436
  className: "nut-tabs-list"
6087
5437
  }, !!title && typeof title === "function" ? title() : titles.current.map(function(item, index2) {
6088
5438
  var _obj2;
6089
5439
  return /* @__PURE__ */ React.createElement(components.View, {
5440
+ key: item.value,
6090
5441
  ref: function(ref) {
6091
5442
  return titleItemsRef.current.push(ref);
6092
5443
  },
6093
5444
  id: "scrollIntoView".concat(index2),
6094
- onClick: function(e2) {
6095
- tabChange(item);
5445
+ onClick: function() {
5446
+ return tabChange(item);
6096
5447
  },
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
5448
+ 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
5449
  }, 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
5450
+ className: classNames("".concat(classPrefix$k, "-titles-item-line"), "".concat(classPrefix$k, "-titles-item-line-").concat(direction)),
5451
+ style: {
5452
+ background: activeColor
5453
+ }
6102
5454
  }), activeType === "smile" && /* @__PURE__ */ React.createElement(components.View, {
6103
- className: "".concat(classPrefix$l, "-titles-item-smile"),
6104
- style: tabsActiveStyle
5455
+ className: "".concat(classPrefix$k, "-titles-item-smile")
6105
5456
  }, /* @__PURE__ */ React.createElement(r$3, {
6106
5457
  color: activeColor
6107
5458
  })), /* @__PURE__ */ React.createElement(components.View, {
6108
- className: classNames("".concat(classPrefix$l, "-ellipsis"), "".concat(classPrefix$l, "-titles-item-text"))
5459
+ className: classNames(_define_property({}, "".concat(classPrefix$k, "-ellipsis"), direction === "vertical"), "".concat(classPrefix$k, "-titles-item-text")),
5460
+ style: {
5461
+ color: activeColor
5462
+ }
6109
5463
  }, item.title));
6110
5464
  }))), /* @__PURE__ */ React.createElement(components.View, {
6111
- className: "".concat(classPrefix$l, "-content-wrap")
5465
+ className: "".concat(classPrefix$k, "-content-wrap")
6112
5466
  }, /* @__PURE__ */ React.createElement(components.View, {
6113
- className: "".concat(classPrefix$l, "-content"),
5467
+ className: "".concat(classPrefix$k, "-content"),
6114
5468
  style: getContentStyle()
6115
5469
  }, 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);
5470
+ if (!/* @__PURE__ */ React.isValidElement(child)) return null;
5471
+ return /* @__PURE__ */ React.cloneElement(child, _object_spread_props(_object_spread({}, child.props), {
5472
+ active: value2 === child.props.value,
5473
+ autoHeightClassName: autoHeight && String(value2) !== String(child.props.value || idx) ? "inactive" : ""
5474
+ }));
6128
5475
  }))));
6129
5476
  };
6130
5477
  Tabs.displayName = "NutTabs";
@@ -8481,7 +7828,7 @@
8481
7828
  onChange: function(value2) {
8482
7829
  }
8483
7830
  });
8484
- var classPrefix$k = "nut-checkbox";
7831
+ var classPrefix$j = "nut-checkbox";
8485
7832
  var Checkbox = function(props) {
8486
7833
  var children = _object_spread({}, defaultProps$12, props).children;
8487
7834
  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, [
@@ -8563,27 +7910,27 @@
8563
7910
  });
8564
7911
  };
8565
7912
  var color = function() {
8566
- var cls = "".concat(classPrefix$k, "-icon ");
7913
+ var cls = "".concat(classPrefix$j, "-icon ");
8567
7914
  if (innerDisabled) {
8568
7915
  if (innerChecked && !innerIndeterminate) {
8569
- return "".concat(cls).concat(classPrefix$k, "-icon-checked ").concat(classPrefix$k, "-icon-disabled");
7916
+ return "".concat(cls).concat(classPrefix$j, "-icon-checked ").concat(classPrefix$j, "-icon-disabled");
8570
7917
  }
8571
7918
  if (innerChecked && innerIndeterminate) {
8572
- return "".concat(cls).concat(classPrefix$k, "-icon-indeterminate ").concat(classPrefix$k, "-icon-disabled");
7919
+ return "".concat(cls).concat(classPrefix$j, "-icon-indeterminate ").concat(classPrefix$j, "-icon-disabled");
8573
7920
  }
8574
- return "".concat(cls).concat(classPrefix$k, "-icon-disabled");
7921
+ return "".concat(cls).concat(classPrefix$j, "-icon-disabled");
8575
7922
  }
8576
7923
  if (innerChecked) {
8577
7924
  if (innerIndeterminate) {
8578
- return "".concat(cls).concat(classPrefix$k, "-icon-indeterminate");
7925
+ return "".concat(cls).concat(classPrefix$j, "-icon-indeterminate");
8579
7926
  }
8580
- return "".concat(cls).concat(classPrefix$k, "-icon-checked");
7927
+ return "".concat(cls).concat(classPrefix$j, "-icon-checked");
8581
7928
  }
8582
7929
  return cls;
8583
7930
  };
8584
7931
  var renderLabel = function() {
8585
7932
  return /* @__PURE__ */ React.createElement(components.View, {
8586
- className: classNames("".concat(classPrefix$k, "-label "), _define_property({}, "".concat(classPrefix$k, "-label-disabled"), innerDisabled))
7933
+ className: classNames("".concat(classPrefix$j, "-label "), _define_property({}, "".concat(classPrefix$j, "-label-disabled"), innerDisabled))
8587
7934
  }, children || label);
8588
7935
  };
8589
7936
  var handleClick = function() {
@@ -8594,9 +7941,9 @@
8594
7941
  var renderButton = function() {
8595
7942
  var _obj;
8596
7943
  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))
7944
+ 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
7945
  }, children || label, innerChecked && activeIcon ? /* @__PURE__ */ React.createElement(components.View, {
8599
- className: classNames("".concat(classPrefix$k, "-button-icon"))
7946
+ className: classNames("".concat(classPrefix$j, "-button-icon"))
8600
7947
  }, activeIcon) : null);
8601
7948
  };
8602
7949
  var renderListItem = function() {
@@ -8614,7 +7961,7 @@
8614
7961
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), renderLabel());
8615
7962
  };
8616
7963
  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)
7964
+ className: classNames(classPrefix$j, _define_property({}, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), className)
8618
7965
  }, rest), {
8619
7966
  onClick: handleClick
8620
7967
  }), renderCheckboxItem());
@@ -8632,7 +7979,7 @@
8632
7979
  },
8633
7980
  options: []
8634
7981
  };
8635
- var classPrefix$j = "nut-checkboxgroup";
7982
+ var classPrefix$i = "nut-checkboxgroup";
8636
7983
  var CheckboxGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8637
7984
  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, [
8638
7985
  "children",
@@ -8737,13 +8084,12 @@
8737
8084
  }
8738
8085
  }
8739
8086
  }, /* @__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)
8087
+ className: classNames(classPrefix$i, (_obj = {}, _define_property(_obj, "nut-checkboxgroup-".concat(direction), direction), _define_property(_obj, "nut-checkboxgroup-list", list), _obj), className)
8741
8088
  }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptions() : children));
8742
8089
  });
8743
8090
  CheckboxGroup.displayName = "NutCheckboxGroup";
8744
8091
  var InnerCheckbox = Checkbox;
8745
8092
  InnerCheckbox.Group = CheckboxGroup;
8746
- const InnerCheckbox$1 = InnerCheckbox;
8747
8093
  var InternalPickerPanel = function(props, ref) {
8748
8094
  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
8095
  var touch = useTouch();
@@ -8937,7 +8283,10 @@
8937
8283
  };
8938
8284
  });
8939
8285
  React.useEffect(function() {
8940
- var eventOptions = false;
8286
+ var eventOptions = passiveSupported ? {
8287
+ passive: false,
8288
+ once: true
8289
+ } : false;
8941
8290
  var element = pickerPanelRef.current;
8942
8291
  element.addEventListener("touchstart", touchStart, eventOptions);
8943
8292
  element.addEventListener("touchmove", touchMove, eventOptions);
@@ -8960,7 +8309,7 @@
8960
8309
  return /* @__PURE__ */ React.createElement(components.View, {
8961
8310
  className: "nut-picker-roller-item ".concat(isHidden(index2 + 1) && "nut-picker-roller-item-hidden"),
8962
8311
  style: {
8963
- transform: "rotate3d(1, 0, 0, ".concat(-rotation2 * (index2 + 1), "deg) translate3d(0px, 0px, 104px)"),
8312
+ transform: "rotate3d(1, 0, 0, ".concat(-20 * (index2 + 1), "deg) translate3d(0px, 0px, 104px)"),
8964
8313
  height: "".concat(lineSpacing.current, "px"),
8965
8314
  lineHeight: "".concat(lineSpacing.current, "px")
8966
8315
  },
@@ -11278,7 +10627,6 @@
11278
10627
  var InnerForm = Form;
11279
10628
  InnerForm.Item = FormItem;
11280
10629
  InnerForm.useForm = useForm;
11281
- const InnerForm$1 = InnerForm;
11282
10630
  function trimExtraChar(value2, char, regExp) {
11283
10631
  var index2 = value2.indexOf(char);
11284
10632
  if (index2 === -1) {
@@ -11500,7 +10848,7 @@
11500
10848
  async: false,
11501
10849
  select: true
11502
10850
  });
11503
- var classPrefix$i = "nut-inputnumber";
10851
+ var classPrefix$h = "nut-inputnumber";
11504
10852
  var InputNumber = function(props) {
11505
10853
  var _ref = _object_spread({}, defaultProps$X, props);
11506
10854
  _ref.children;
@@ -11529,9 +10877,8 @@
11529
10877
  "onFocus",
11530
10878
  "onChange"
11531
10879
  ]);
11532
- var isRnAndHarmony = harmonyAndRn();
11533
- var isRn2 = rn();
11534
- var classes = classNames(classPrefix$i, className);
10880
+ var isHarmony2 = harmony();
10881
+ var classes = classNames(classPrefix$h, className);
11535
10882
  var _useState = _sliced_to_array(React.useState(false), 2), focused = _useState[0], setFocused = _useState[1];
11536
10883
  var inputRef = React.useRef(null);
11537
10884
  React.useEffect(function() {
@@ -11670,23 +11017,14 @@
11670
11017
  className: classes,
11671
11018
  style
11672
11019
  }, /* @__PURE__ */ React.createElement(components.View, {
11673
- className: "".concat(classPrefix$i, "-minus"),
11020
+ className: "".concat(classPrefix$h, "-minus"),
11674
11021
  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))
11022
+ }, isHarmony2 ? /* @__PURE__ */ React.createElement(components.Text, {
11023
+ className: classNames("".concat(classPrefix$h, "-icon ").concat(classPrefix$h, "-icon-minus"), _define_property({}, "".concat(classPrefix$h, "-icon-disabled"), shadowValue === min || disabled))
11677
11024
  }, "-") : /* @__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)),
11025
+ className: classNames("".concat(classPrefix$h, "-icon ").concat(classPrefix$h, "-icon-minus"), _define_property({}, "".concat(classPrefix$h, "-icon-disabled"), shadowValue === min || disabled))
11026
+ })), /* @__PURE__ */ React.createElement("input", {
11027
+ className: classNames("".concat(classPrefix$h, "-input"), _define_property({}, "".concat(classPrefix$h, "-input-disabled"), disabled)),
11690
11028
  type: type2,
11691
11029
  ref: inputRef,
11692
11030
  inputMode: type2 === "digit" ? "decimal" : "numeric",
@@ -11697,12 +11035,12 @@
11697
11035
  onBlur: handleBlur,
11698
11036
  onFocus: handleFocus
11699
11037
  }), /* @__PURE__ */ React.createElement(components.View, {
11700
- className: "".concat(classPrefix$i, "-add"),
11038
+ className: "".concat(classPrefix$h, "-add"),
11701
11039
  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))
11040
+ }, isHarmony2 ? /* @__PURE__ */ React.createElement(components.Text, {
11041
+ className: classNames("".concat(classPrefix$h, "-icon ").concat(classPrefix$h, "-icon-plus"), _define_property({}, "".concat(classPrefix$h, "-icon-disabled"), shadowValue === max || disabled))
11704
11042
  }, "+") : /* @__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))
11043
+ className: classNames("".concat(classPrefix$h, "-icon ").concat(classPrefix$h, "-icon-plus"), _define_property({}, "".concat(classPrefix$h, "-icon-disabled"), shadowValue === max || disabled))
11706
11044
  })));
11707
11045
  };
11708
11046
  InputNumber.displayName = "NutInputNumber";
@@ -12260,7 +11598,7 @@
12260
11598
  onChange: function(checked) {
12261
11599
  }
12262
11600
  });
12263
- var Radio$1 = function(props) {
11601
+ var Radio = function(props) {
12264
11602
  var classPrefix2 = "nut-radio";
12265
11603
  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
11604
  _ref.icon;
@@ -12355,7 +11693,7 @@
12355
11693
  onClick: handleClick
12356
11694
  }, renderRadioItem());
12357
11695
  };
12358
- Radio$1.displayName = "NutRadio";
11696
+ Radio.displayName = "NutRadio";
12359
11697
  var defaultProps$S = {
12360
11698
  labelPosition: "right",
12361
11699
  onChange: function(value2) {
@@ -12363,7 +11701,7 @@
12363
11701
  direction: "vertical",
12364
11702
  options: []
12365
11703
  };
12366
- var classPrefix$h = "nut-radiogroup";
11704
+ var classPrefix$g = "nut-radiogroup";
12367
11705
  var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
12368
11706
  var _ref = _object_spread({}, defaultProps$S, props), children = _ref.children, className = _ref.className;
12369
11707
  _ref.value;
@@ -12380,7 +11718,7 @@
12380
11718
  "options",
12381
11719
  "disabled"
12382
11720
  ]);
12383
- var cls = classNames(classPrefix$h, _define_property({}, "".concat(classPrefix$h, "-").concat(direction), direction), className);
11721
+ var cls = classNames(classPrefix$g, _define_property({}, "".concat(classPrefix$g, "-").concat(direction), direction), className);
12384
11722
  var _usePropsValue = _sliced_to_array(usePropsValue({
12385
11723
  defaultValue: props.defaultValue,
12386
11724
  value: props.value,
@@ -12395,7 +11733,7 @@
12395
11733
  "disabled",
12396
11734
  "onChange"
12397
11735
  ]);
12398
- return /* @__PURE__ */ React.createElement(Radio, _object_spread_props(_object_spread({}, rest2), {
11736
+ return /* @__PURE__ */ React.createElement(InnerRadio, _object_spread_props(_object_spread({}, rest2), {
12399
11737
  key: value2 === null || value2 === void 0 ? void 0 : value2.toString(),
12400
11738
  children: label,
12401
11739
  value: value2,
@@ -12428,9 +11766,8 @@
12428
11766
  }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptionsChildren() : children));
12429
11767
  });
12430
11768
  RadioGroup.displayName = "NutRadioGroup";
12431
- var InnerRadio = Radio$1;
11769
+ var InnerRadio = Radio;
12432
11770
  InnerRadio.Group = RadioGroup;
12433
- const Radio = InnerRadio;
12434
11771
  var defaultProps$R = _object_spread_props(_object_spread({}, ComponentDefaults), {
12435
11772
  range: false,
12436
11773
  min: 0,
@@ -12439,11 +11776,9 @@
12439
11776
  vertical: false,
12440
11777
  marks: {}
12441
11778
  });
12442
- var isRn = rn();
12443
11779
  var isHm = harmony();
12444
- var isNative = harmonyAndRn();
12445
- var classPrefix$g = "nut-range";
12446
- var verticalClassPrefix = "".concat(classPrefix$g, "-vertical");
11780
+ var classPrefix$f = "nut-range";
11781
+ var verticalClassPrefix = "".concat(classPrefix$f, "-vertical");
12447
11782
  var isSameValue = function(newValue, oldValue) {
12448
11783
  return JSON.stringify(newValue) === JSON.stringify(oldValue);
12449
11784
  };
@@ -12457,7 +11792,7 @@
12457
11792
  var rtl = useRtl();
12458
11793
  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
11794
  var rtlClassPrefix = React.useMemo(function() {
12460
- return "rtl-".concat(vertical ? verticalClassPrefix : classPrefix$g);
11795
+ return "rtl-".concat(vertical ? verticalClassPrefix : classPrefix$f);
12461
11796
  }, [
12462
11797
  vertical
12463
11798
  ]);
@@ -12519,9 +11854,9 @@
12519
11854
  min
12520
11855
  ]);
12521
11856
  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));
11857
+ 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
11858
  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);
11859
+ 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
11860
  var markClassName = React.useCallback(function(mark) {
12526
11861
  var classPrefix2 = "nut-range-mark";
12527
11862
  var verticalClassPrefix2 = "nut-range-vertical-mark";
@@ -12745,7 +12080,7 @@
12745
12080
  if (dragStatus === "start") {
12746
12081
  onStart && onStart();
12747
12082
  }
12748
- touch.move(isRn ? event.nativeEvent : event);
12083
+ touch.move(event);
12749
12084
  setDragStatus("draging");
12750
12085
  return [
12751
12086
  4,
@@ -12824,31 +12159,12 @@
12824
12159
  var transform2 = {
12825
12160
  transform: "translate(-50%, -50%)"
12826
12161
  };
12827
- if (isRn) {
12828
- return _object_spread_props(_object_spread({}, borderRadis), {
12829
- transform: [
12830
- {
12831
- translateX: pxTransform(-12)
12832
- }
12833
- ]
12834
- });
12835
- }
12836
12162
  if (isHm) {
12837
12163
  return _object_spread({}, borderRadis, transform2);
12838
12164
  }
12839
12165
  return _object_spread({}, transform2);
12840
12166
  }, []);
12841
12167
  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
12168
  return vertical ? "translate(100%, -50%)" : "translate(-50%, -100%)";
12853
12169
  }, [
12854
12170
  vertical
@@ -12856,11 +12172,11 @@
12856
12172
  var renderButton = React.useCallback(function(index2) {
12857
12173
  var _obj2, _obj12;
12858
12174
  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)),
12175
+ className: classNames("".concat(classPrefix$f, "-button"), (_obj2 = {}, _define_property(_obj2, "".concat(verticalClassPrefix, "-button"), vertical), _define_property(_obj2, "".concat(rtlClassPrefix, "-button"), rtl), _obj2)),
12860
12176
  // @ts-ignore
12861
12177
  style: buttonTransform
12862
12178
  }, 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)),
12179
+ 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
12180
  style: {
12865
12181
  // @ts-ignore
12866
12182
  transform: buttonNumberTransform
@@ -12879,8 +12195,8 @@
12879
12195
  var renderMarks = React.useCallback(function() {
12880
12196
  if (marksList.length <= 0) return null;
12881
12197
  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));
12198
+ 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));
12199
+ var textcls = classNames("".concat(classPrefix$f, "-mark-text"), _define_property({}, "".concat(verticalClassPrefix, "-mark-text"), vertical));
12884
12200
  return /* @__PURE__ */ React.createElement(components.View, {
12885
12201
  className: markcls
12886
12202
  }, marksList.map(function(mark) {
@@ -12892,7 +12208,7 @@
12892
12208
  }, /* @__PURE__ */ React.createElement(components.Text, {
12893
12209
  className: textcls
12894
12210
  }, 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))
12211
+ 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
12212
  }));
12897
12213
  }));
12898
12214
  }, [
@@ -12906,7 +12222,7 @@
12906
12222
  vertical
12907
12223
  ]);
12908
12224
  var wrapperTransform = React.useMemo(function() {
12909
- var wrapperTransformRN = [
12225
+ [
12910
12226
  {
12911
12227
  translateX: pxTransform(vertical ? -12 : -13)
12912
12228
  },
@@ -12915,21 +12231,11 @@
12915
12231
  }
12916
12232
  ];
12917
12233
  var wrapperTransform2 = "translate(-50%, -50%)";
12918
- return isRn ? wrapperTransformRN : wrapperTransform2;
12234
+ return wrapperTransform2;
12919
12235
  }, [
12920
12236
  vertical
12921
12237
  ]);
12922
12238
  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
12239
  return "translate(-50%, -50%)";
12934
12240
  }, []);
12935
12241
  var renderRangeButton = React.useCallback(function() {
@@ -12940,7 +12246,7 @@
12940
12246
  var isLeft = index2 === 0;
12941
12247
  var suffix = isLeft ? "left" : "right";
12942
12248
  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));
12249
+ 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
12250
  return /* @__PURE__ */ React.createElement(components.View, {
12945
12251
  key: index2,
12946
12252
  className: cls,
@@ -12956,7 +12262,7 @@
12956
12262
  onTouchEnd,
12957
12263
  onTouchCancel: onTouchEnd,
12958
12264
  onClick: function(e2) {
12959
- return !isRn && e2.stopPropagation();
12265
+ return e2.stopPropagation();
12960
12266
  }
12961
12267
  }, renderButton(index2));
12962
12268
  });
@@ -12973,7 +12279,7 @@
12973
12279
  var renderSingleButton = React.useCallback(function() {
12974
12280
  return /* @__PURE__ */ React.createElement(components.View, {
12975
12281
  catchMove: true,
12976
- className: classNames("".concat(classPrefix$g, "-button-wrapper"), _define_property({}, "".concat(verticalClassPrefix, "-button-wrapper"), vertical)),
12282
+ className: classNames("".concat(classPrefix$f, "-button-wrapper"), _define_property({}, "".concat(verticalClassPrefix, "-button-wrapper"), vertical)),
12977
12283
  style: {
12978
12284
  // @ts-ignore
12979
12285
  transform: wrapperTransform
@@ -12983,7 +12289,7 @@
12983
12289
  onTouchEnd,
12984
12290
  onTouchCancel: onTouchEnd,
12985
12291
  onClick: function(e2) {
12986
- return !isRn && e2.stopPropagation();
12292
+ return e2.stopPropagation();
12987
12293
  }
12988
12294
  }, renderButton());
12989
12295
  }, [
@@ -13008,7 +12314,7 @@
13008
12314
  className: containerClasses,
13009
12315
  style
13010
12316
  }, minDescription !== null && /* @__PURE__ */ React.createElement(components.Text, {
13011
- className: "".concat(classPrefix$g, "-min")
12317
+ className: "".concat(classPrefix$f, "-min")
13012
12318
  }, minDescription || min), /* @__PURE__ */ React.createElement(components.View, {
13013
12319
  ref: root2,
13014
12320
  className: classes,
@@ -13016,10 +12322,10 @@
13016
12322
  return click(e2);
13017
12323
  }
13018
12324
  }, renderMarks(), /* @__PURE__ */ React.createElement(components.View, {
13019
- className: "".concat(classPrefix$g, "-bar"),
12325
+ className: "".concat(classPrefix$f, "-bar"),
13020
12326
  style: barStyle()
13021
12327
  }, renderButtonWrapper())), maxDescription !== null && /* @__PURE__ */ React.createElement(components.Text, {
13022
- className: "".concat(classPrefix$g, "-max")
12328
+ className: "".concat(classPrefix$f, "-max")
13023
12329
  }, maxDescription || max));
13024
12330
  };
13025
12331
  Range.displayName = "NutRange";
@@ -13936,7 +13242,7 @@
13936
13242
  React.useEffect(function() {
13937
13243
  if (web()) {
13938
13244
  handleWebObserver();
13939
- } else if (!harmonyAndRn()) {
13245
+ } else if (!harmony()) {
13940
13246
  handleOtherObserver();
13941
13247
  }
13942
13248
  }, []);
@@ -13951,19 +13257,16 @@
13951
13257
  if (children) {
13952
13258
  return 0;
13953
13259
  }
13954
- if (!harmonyAndRn()) {
13260
+ if (!harmony()) {
13955
13261
  return Math.floor("".concat(percent, "%").length * 9 / 2);
13956
13262
  }
13957
- if (rn()) {
13958
- return "".concat(percent, "%").length * 9 + 4;
13959
- }
13960
13263
  return Math.floor(("".concat(percent, "%").length * 9 + 4) / 2);
13961
13264
  };
13962
13265
  var computeInnerStyle = function() {
13963
13266
  var style2 = {
13964
13267
  backgroundColor: color || "#ff0f23"
13965
13268
  };
13966
- if (harmonyAndRn()) {
13269
+ if (harmony()) {
13967
13270
  style2.width = harmony() ? pxTransform("".concat(percent, "%").length * 9 + 4) : "".concat(percent, "%").length * 9 + 4;
13968
13271
  }
13969
13272
  return style2;
@@ -14626,18 +13929,28 @@
14626
13929
  }));
14627
13930
  };
14628
13931
  ActionSheet.displayName = "NutActionSheet";
13932
+ var defaultContentProps = {
13933
+ visible: false,
13934
+ title: "",
13935
+ header: "",
13936
+ footer: "",
13937
+ close: "",
13938
+ footerDirection: "horizontal",
13939
+ onClick: function() {
13940
+ }
13941
+ };
14629
13942
  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;
13943
+ 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
13944
  var classPrefix2 = "nut-dialog";
14632
13945
  var renderHeader = function() {
14633
- return title ? /* @__PURE__ */ React.createElement(components.View, {
13946
+ return title && /* @__PURE__ */ React.createElement(components.View, {
14634
13947
  className: "".concat(classPrefix2, "-header")
14635
- }, title) : null;
13948
+ }, title);
14636
13949
  };
14637
13950
  var renderFooter = function() {
14638
- return footer ? /* @__PURE__ */ React.createElement(components.View, {
13951
+ return footer && /* @__PURE__ */ React.createElement(components.View, {
14639
13952
  className: classNames("".concat(classPrefix2, "-footer"), _define_property({}, footerDirection, footerDirection))
14640
- }, footer) : null;
13953
+ }, footer);
14641
13954
  };
14642
13955
  var handleClick = function(e2) {
14643
13956
  onClick && onClick(e2);
@@ -14655,7 +13968,7 @@
14655
13968
  }
14656
13969
  }, renderHeader(), /* @__PURE__ */ React.createElement(components.View, {
14657
13970
  className: "".concat(classPrefix2, "-content")
14658
- }, /* @__PURE__ */ React.createElement(React.Fragment, null, children)), renderFooter()));
13971
+ }, children), renderFooter()));
14659
13972
  };
14660
13973
  Content.displayName = "NutContent";
14661
13974
  var customEvents = new Taro.Events();
@@ -14704,7 +14017,7 @@
14704
14017
  setParams
14705
14018
  };
14706
14019
  }
14707
- var defaultProps$H = {
14020
+ var defaultProps$H = _object_spread_props(_object_spread({}, defaultOverlayProps, defaultContentProps), {
14708
14021
  title: "",
14709
14022
  content: "",
14710
14023
  header: "",
@@ -14712,40 +14025,39 @@
14712
14025
  confirmText: "",
14713
14026
  cancelText: "",
14714
14027
  overlay: true,
14715
- closeOnOverlayClick: true,
14028
+ overlayStyle: {},
14029
+ overlayClassName: "nut-dialog-overlay",
14716
14030
  hideConfirmButton: false,
14717
14031
  hideCancelButton: false,
14718
14032
  disableConfirmButton: false,
14719
14033
  footerDirection: "horizontal",
14720
- lockScroll: true,
14721
14034
  closeIconPosition: "bottom",
14722
14035
  closeIcon: false,
14036
+ zIndex: 1200,
14723
14037
  beforeCancel: function() {
14724
14038
  return true;
14725
14039
  },
14726
14040
  beforeClose: function() {
14727
14041
  return true;
14728
14042
  },
14043
+ onCancel: function() {
14044
+ },
14045
+ onClose: function() {
14046
+ },
14729
14047
  onOverlayClick: function() {
14730
14048
  return true;
14731
14049
  }
14732
- };
14050
+ });
14733
14051
  var BaseDialog = function(props) {
14734
14052
  var classPrefix2 = "nut-dialog";
14735
14053
  var locale = useConfig().locale;
14736
14054
  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;
14055
+ 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
14056
  useCustomEvent(id, function(param) {
14739
14057
  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
- }
14058
+ setParams(_object_spread_props(_object_spread({}, options), {
14059
+ visible: status
14060
+ }));
14749
14061
  });
14750
14062
  var refObject = useLockScrollTaro(!!(visible && lockScroll));
14751
14063
  var renderFooter = function() {
@@ -14846,9 +14158,9 @@
14846
14158
  };
14847
14159
  var onHandleClickOverlay = function(e2) {
14848
14160
  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());
14161
+ var closed = onOverlayClick && onOverlayClick(e2);
14162
+ closed && onClose && onClose();
14163
+ closed && onCancel && onCancel();
14852
14164
  }
14853
14165
  };
14854
14166
  return /* @__PURE__ */ React.createElement(components.View, {
@@ -14857,13 +14169,15 @@
14857
14169
  },
14858
14170
  ref: refObject,
14859
14171
  catchMove: lockScroll
14860
- }, /* @__PURE__ */ React.createElement(React.Fragment, null, overlay ? /* @__PURE__ */ React.createElement(Overlay, {
14172
+ }, /* @__PURE__ */ React.createElement(React.Fragment, null, overlay && /* @__PURE__ */ React.createElement(Overlay, {
14173
+ zIndex,
14861
14174
  visible,
14175
+ style: overlayStyle,
14176
+ className: overlayClassName,
14862
14177
  closeOnOverlayClick,
14863
14178
  lockScroll,
14864
- onClick: onHandleClickOverlay,
14865
- className: classNames("nut-dialog-overlay")
14866
- }) : null, /* @__PURE__ */ React.createElement(CSSTransition, {
14179
+ onClick: onHandleClickOverlay
14180
+ }), /* @__PURE__ */ React.createElement(CSSTransition, {
14867
14181
  in: visible,
14868
14182
  timeout: 300,
14869
14183
  classNames: "fadeDialog",
@@ -15076,7 +14390,7 @@
15076
14390
  status: "empty",
15077
14391
  actions: []
15078
14392
  });
15079
- var classPrefix$f = "nut-empty";
14393
+ var classPrefix$e = "nut-empty";
15080
14394
  var Empty = function(props) {
15081
14395
  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
14396
  var _useState = _sliced_to_array(React.useState({}), 2), imgStyle = _useState[0], setImgStyle = _useState[1];
@@ -15089,12 +14403,11 @@
15089
14403
  src: imageUrl
15090
14404
  }) : imageUrl;
15091
14405
  React.useEffect(function() {
15092
- var isRN = Taro.getEnv() === Taro.ENV_TYPE.RN;
15093
14406
  setImgStyle(function() {
15094
14407
  if (!imageSize) {
15095
14408
  return {};
15096
14409
  }
15097
- if (isRN || typeof imageSize !== "number") {
14410
+ if (typeof imageSize !== "number") {
15098
14411
  return {
15099
14412
  width: imageSize,
15100
14413
  height: imageSize
@@ -15108,26 +14421,26 @@
15108
14421
  }, [
15109
14422
  imageSize
15110
14423
  ]);
15111
- var cls = classNames(classPrefix$f, className);
14424
+ var cls = classNames(classPrefix$e, className);
15112
14425
  return /* @__PURE__ */ React.createElement(components.View, {
15113
14426
  className: cls,
15114
14427
  style
15115
14428
  }, /* @__PURE__ */ React.createElement(components.View, {
15116
- className: "".concat(classPrefix$f, "-").concat(size),
14429
+ className: "".concat(classPrefix$e, "-").concat(size),
15117
14430
  style: imgStyle
15118
14431
  }, imageNode), typeof title === "string" && title ? /* @__PURE__ */ React.createElement(components.View, {
15119
- className: "".concat(classPrefix$f, "-title")
14432
+ className: "".concat(classPrefix$e, "-title")
15120
14433
  }, title) : title, typeof description === "string" ? /* @__PURE__ */ React.createElement(components.View, {
15121
- className: "".concat(classPrefix$f, "-description")
14434
+ className: "".concat(classPrefix$e, "-description")
15122
14435
  }, description) : description, actions.length ? /* @__PURE__ */ React.createElement(components.View, {
15123
- className: "".concat(classPrefix$f, "-actions-").concat(size)
14436
+ className: "".concat(classPrefix$e, "-actions-").concat(size)
15124
14437
  }, actions.map(function(action, index2) {
15125
14438
  action.text;
15126
14439
  var rest = _object_without_properties(action, [
15127
14440
  "text"
15128
14441
  ]);
15129
14442
  return /* @__PURE__ */ React.createElement(components.View, {
15130
- className: "".concat(classPrefix$f, "-action"),
14443
+ className: "".concat(classPrefix$e, "-action"),
15131
14444
  key: index2
15132
14445
  }, /* @__PURE__ */ React.createElement(Button, rest, action === null || action === void 0 ? void 0 : action.text));
15133
14446
  })) : null, children);
@@ -15194,7 +14507,7 @@
15194
14507
  target: "",
15195
14508
  pullRefresh: false
15196
14509
  });
15197
- var classPrefix$e = "nut-infiniteloading";
14510
+ var classPrefix$d = "nut-infiniteloading";
15198
14511
  var InfiniteLoading = function(props) {
15199
14512
  var getBottomTipsText = function getBottomTipsText2() {
15200
14513
  if (isInfiniting) {
@@ -15230,7 +14543,7 @@
15230
14543
  var y = React.useRef(0);
15231
14544
  var refreshMaxH = React.useRef(0);
15232
14545
  var distance = React.useRef(0);
15233
- var classes = classNames(classPrefix$e, className, "".concat(classPrefix$e, "-").concat(type2));
14546
+ var classes = classNames(classPrefix$d, className, "".concat(classPrefix$d, "-").concat(type2));
15234
14547
  React.useEffect(function() {
15235
14548
  refreshMaxH.current = threshold;
15236
14549
  var timer = setTimeout(function() {
@@ -32118,7 +31431,7 @@
32118
31431
  return View;
32119
31432
  };
32120
31433
  var _excluded = ["style", "interactivity"];
32121
- var Lottie$4 = function Lottie2(props) {
31434
+ var Lottie$3 = function Lottie2(props) {
32122
31435
  var _a, _b, _c;
32123
31436
  var style = props.style, interactivity = props.interactivity, lottieProps = _objectWithoutProperties(props, _excluded);
32124
31437
  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 +31477,7 @@
32164
31477
  mode: (_c = interactivity === null || interactivity === void 0 ? void 0 : interactivity.mode) !== null && _c !== void 0 ? _c : "scroll"
32165
31478
  });
32166
31479
  };
32167
- var Lottie$3 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
31480
+ var Lottie$2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
32168
31481
  var loadingLottieRef = React.useRef(null);
32169
31482
  var style = props.style, source = props.source;
32170
31483
  props.autoPlay;
@@ -32176,13 +31489,13 @@
32176
31489
  React.useImperativeHandle(ref, function() {
32177
31490
  return loadingLottieRef.current;
32178
31491
  });
32179
- return /* @__PURE__ */ React.createElement(Lottie$4, _object_spread_props(_object_spread({}, rest), {
31492
+ return /* @__PURE__ */ React.createElement(Lottie$3, _object_spread_props(_object_spread({}, rest), {
32180
31493
  lottieRef: loadingLottieRef,
32181
31494
  animationData: source,
32182
31495
  style
32183
31496
  }));
32184
31497
  });
32185
- Lottie$3.displayName = "NutLottie";
31498
+ Lottie$2.displayName = "NutLottie";
32186
31499
  var miniprogram_dist = {};
32187
31500
  (function(exports) {
32188
31501
  !function(t2, e2) {
@@ -35826,7 +35139,7 @@
35826
35139
  }]));
35827
35140
  })(miniprogram_dist);
35828
35141
  const lottie = /* @__PURE__ */ getDefaultExportFromCjs(miniprogram_dist);
35829
- var Lottie$2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
35142
+ var Lottie$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
35830
35143
  var uuid = useUuid();
35831
35144
  var id = "nutLottie-".concat(uuid);
35832
35145
  var animation = React.useRef();
@@ -35876,24 +35189,34 @@
35876
35189
  onComplete && animation.current && animation.current.removeEventListener("complete", onComplete);
35877
35190
  animation.current && animation.current.destroy();
35878
35191
  });
35879
- return /* @__PURE__ */ React.createElement(components.Canvas, {
35192
+ return Taro.getEnv() === "WEAPP" || Taro.getEnv() === "JD" ? /* @__PURE__ */ React.createElement("canvas", {
35880
35193
  id,
35881
- "canvas-id": id,
35194
+ // @ts-ignore
35195
+ // eslint-disable-next-line react/no-unknown-property
35196
+ canvasId: id,
35197
+ // eslint-disable-next-line react/no-unknown-property
35198
+ disalbeScroll: true,
35882
35199
  type: "2d",
35883
35200
  style
35201
+ }) : /* @__PURE__ */ React.createElement("canvas", {
35202
+ id,
35203
+ // eslint-disable-next-line react/no-unknown-property
35204
+ "canvas-id": id,
35205
+ // eslint-disable-next-line react/no-unknown-property
35206
+ "disalbe-scroll": true,
35207
+ style
35884
35208
  });
35885
35209
  });
35886
- Lottie$2.displayName = "NutLottie";
35210
+ Lottie$1.displayName = "NutLottie";
35887
35211
  var implementation;
35888
35212
  if (process.env.TARO_ENV === "h5") {
35889
- implementation = Lottie$3;
35890
- } else if (process.env.TARO_ENV === "weapp") {
35891
35213
  implementation = Lottie$2;
35214
+ } else if (process.env.TARO_ENV === "weapp") {
35215
+ implementation = Lottie$1;
35892
35216
  } else {
35893
35217
  throw new Error("不支持的 TARO_ENV: ".concat(process.env.TARO_ENV));
35894
35218
  }
35895
35219
  var Lottie = implementation;
35896
- const Lottie$1 = Lottie;
35897
35220
  var loadingMap = {
35898
35221
  circular: g,
35899
35222
  spinner: z
@@ -35925,7 +35248,7 @@
35925
35248
  var classPrefix2 = "nut-loading";
35926
35249
  var getLoadingIcon = function() {
35927
35250
  if (rest.type === "lottie" && rest.jsonData) {
35928
- return /* @__PURE__ */ React.createElement(Lottie$1, _object_spread_props(_object_spread({}, mergedLottieProps), {
35251
+ return /* @__PURE__ */ React.createElement(Lottie, _object_spread_props(_object_spread({}, mergedLottieProps), {
35929
35252
  // @ts-ignore
35930
35253
  ref: loadingLottieRef,
35931
35254
  source: rest.jsonData
@@ -36395,7 +35718,7 @@
36395
35718
  onClick: function() {
36396
35719
  }
36397
35720
  });
36398
- var classPrefix$d = "nut-notify";
35721
+ var classPrefix$c = "nut-notify";
36399
35722
  var Notify = function(props) {
36400
35723
  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;
36401
35724
  useCustomEvent(id, function(status) {
@@ -36436,8 +35759,8 @@
36436
35759
  onClose();
36437
35760
  };
36438
35761
  var _obj;
36439
- 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));
36440
- return /* @__PURE__ */ React.createElement(React.Fragment, null, Taro.getEnv() !== Taro.ENV_TYPE.RN ? /* @__PURE__ */ React.createElement(CSSTransition, {
35762
+ 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));
35763
+ return /* @__PURE__ */ React.createElement(CSSTransition, {
36441
35764
  nodeRef: cssRef,
36442
35765
  in: showNotify,
36443
35766
  timeout: 300,
@@ -36450,13 +35773,7 @@
36450
35773
  className: "".concat(classes, " ").concat(className),
36451
35774
  style,
36452
35775
  onClick: clickHandle
36453
- }, children)) : /* @__PURE__ */ React.createElement(React.Fragment, null, showNotify ? /* @__PURE__ */ React.createElement(components.View, {
36454
- className: "".concat(classes, " ").concat(className),
36455
- style: _object_spread_props(_object_spread({}, style), {
36456
- position: "absolute"
36457
- }),
36458
- onClick: clickHandle
36459
- }, children) : null));
35776
+ }, children));
36460
35777
  };
36461
35778
  function open(selector) {
36462
35779
  var path = useCustomEventsPath(selector);
@@ -36492,7 +35809,7 @@
36492
35809
  onClose: function() {
36493
35810
  }
36494
35811
  });
36495
- var classPrefix$c = "nut-popover";
35812
+ var classPrefix$b = "nut-popover";
36496
35813
  var Popover = function(props) {
36497
35814
  var rtl = useRtl();
36498
35815
  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, [
@@ -36654,7 +35971,7 @@
36654
35971
  }
36655
35972
  };
36656
35973
  var _obj;
36657
- var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$c), true), _define_property(_obj, "".concat(classPrefix$c, "-").concat(theme), theme === "dark"), _obj), className);
35974
+ var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$b), true), _define_property(_obj, "".concat(classPrefix$b, "-").concat(theme), theme === "dark"), _obj), className);
36658
35975
  var popoverArrow = function() {
36659
35976
  var prefixCls2 = "nut-popover-arrow";
36660
35977
  return "".concat(prefixCls2, " ").concat(prefixCls2, "-").concat(location.split("-")[0], " ").concat(prefixCls2, "-").concat(location);
@@ -36779,7 +36096,7 @@
36779
36096
  style: getRootPosition()
36780
36097
  }, /* @__PURE__ */ React.createElement(Popup, _object_spread({
36781
36098
  className: "nut-popover-content nut-popover-content-".concat(location),
36782
- position: "default",
36099
+ position: "none",
36783
36100
  overlay,
36784
36101
  visible: showPopup
36785
36102
  }, rest), /* @__PURE__ */ React.createElement(components.View, {
@@ -36915,11 +36232,6 @@
36915
36232
  setStatus(height2 > threshold ? "canRelease" : "pulling");
36916
36233
  }
36917
36234
  clearTimeout(timer.current);
36918
- if (rn()) {
36919
- timer.current = setTimeout(function() {
36920
- handleTouchEnd();
36921
- }, 300);
36922
- }
36923
36235
  };
36924
36236
  function _doRefresh() {
36925
36237
  _doRefresh = _async_to_generator(function() {
@@ -36996,6 +36308,7 @@
36996
36308
  return /* @__PURE__ */ React.createElement(components.View, {
36997
36309
  className: classes,
36998
36310
  style: props.style,
36311
+ catchMove: true,
36999
36312
  onTouchStart: handleTouchStart,
37000
36313
  onTouchMove: handleTouchMove,
37001
36314
  onTouchEnd: handleTouchEnd
@@ -37025,12 +36338,12 @@
37025
36338
  gap: "-8",
37026
36339
  level: "left"
37027
36340
  });
37028
- var classPrefix$b = "nut-avatar-group";
36341
+ var classPrefix$a = "nut-avatar-group";
37029
36342
  var AvatarGroup = function(props) {
37030
36343
  var propAvatarGroup = _object_spread({}, defaultProps$x, props);
37031
36344
  var className = propAvatarGroup.className, style = propAvatarGroup.style, children = propAvatarGroup.children;
37032
36345
  var avatarGroupRef = React.useRef(null);
37033
- var cls = classNames(classPrefix$b, className);
36346
+ var cls = classNames(classPrefix$a, className);
37034
36347
  var parentAvatar = {
37035
36348
  propAvatarGroup: _object_spread({
37036
36349
  avatarCount: React.Children.count(children) || 0
@@ -37053,7 +36366,7 @@
37053
36366
  };
37054
36367
  AvatarGroup.displayName = "NutAvatarGroup";
37055
36368
  var defaultProps$w = _object_spread_props(_object_spread({}, ComponentDefaults), {
37056
- size: harmonyAndRn() ? "40" : "",
36369
+ size: harmony() ? "40" : "",
37057
36370
  shape: "round",
37058
36371
  icon: "",
37059
36372
  background: "#eee",
@@ -37062,7 +36375,7 @@
37062
36375
  src: "",
37063
36376
  avatarIndex: 0
37064
36377
  });
37065
- var classPrefix$a = "nut-avatar";
36378
+ var classPrefix$9 = "nut-avatar";
37066
36379
  var Avatar = function(props) {
37067
36380
  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;
37068
36381
  var _useState = _sliced_to_array(React.useState(false), 2), showMax = _useState[0], setShowMax = _useState[1];
@@ -37081,14 +36394,14 @@
37081
36394
  var _obj;
37082
36395
  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));
37083
36396
  var nativeClasses = classNames(_define_property({}, "nut-avatar-first-child", avatarIndex === 1));
37084
- var cls = classNames(classPrefix$a, classes, className, nativeClasses);
36397
+ var cls = classNames(classPrefix$9, classes, className, nativeClasses);
37085
36398
  var _obj1;
37086
36399
  var styles = _object_spread((_obj1 = {
37087
36400
  width: sizeValue.indexOf(size) > -1 ? "" : pxTransform(parseInt(size)),
37088
36401
  height: sizeValue.indexOf(size) > -1 ? "" : pxTransform(parseInt(size)),
37089
36402
  backgroundColor: "".concat(background),
37090
36403
  color
37091
- }, _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);
36404
+ }, _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);
37092
36405
  var maxStyles = {
37093
36406
  backgroundColor: "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxBackground),
37094
36407
  color: "".concat(propAvatarGroup === null || propAvatarGroup === void 0 ? void 0 : propAvatarGroup.maxColor)
@@ -37497,7 +36810,7 @@
37497
36810
  };
37498
36811
  });
37499
36812
  React.useEffect(function() {
37500
- if (harmonyAndRn()) return;
36813
+ if (harmony()) return;
37501
36814
  var handler = function(event) {
37502
36815
  var targets = [
37503
36816
  root2
@@ -37534,7 +36847,7 @@
37534
36847
  }, renderActionContent("left"), children, renderActionContent("right")));
37535
36848
  });
37536
36849
  Swipe.displayName = "NutSwipe";
37537
- var defaultProps$t = _object_spread_props(_object_spread({}, ComponentDefaults), {
36850
+ var defaultProps$t = _object_spread_props(_object_spread({}, defaultOverlayProps), {
37538
36851
  id: "",
37539
36852
  duration: 2,
37540
36853
  position: "center",
@@ -37542,18 +36855,19 @@
37542
36855
  size: "base",
37543
36856
  icon: null,
37544
36857
  content: "",
37545
- type: "text",
36858
+ contentClassName: "",
36859
+ contentStyle: {},
37546
36860
  closeOnOverlayClick: false,
37547
36861
  lockScroll: false,
37548
- contentClassName: "",
37549
36862
  visible: false,
37550
36863
  wordBreak: "break-all",
36864
+ zIndex: 1300,
37551
36865
  onClose: function() {
37552
36866
  }
37553
36867
  });
37554
- var classPrefix$9 = "nut-toast";
37555
36868
  var Toast = function(props) {
37556
- 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;
36869
+ 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;
36870
+ var classPrefix2 = "nut-toast";
37557
36871
  var timer = React.useRef(-1);
37558
36872
  var rtl = useRtl();
37559
36873
  var _usePropsValue = _sliced_to_array(usePropsValue({
@@ -37614,19 +36928,21 @@
37614
36928
  _$hide();
37615
36929
  }
37616
36930
  };
37617
- var hasIcon = function() {
37618
- return type2 !== "text" || !!icon;
37619
- };
37620
- var iconName = function() {
37621
- if (icon) {
37622
- return icon;
36931
+ var renderIcon = function() {
36932
+ var iconNode = icon;
36933
+ if (typeof icon === "string") {
36934
+ iconNode = {
36935
+ success: /* @__PURE__ */ React.createElement(t$1, null),
36936
+ fail: /* @__PURE__ */ React.createElement(N, null),
36937
+ warn: /* @__PURE__ */ React.createElement(c$1, null),
36938
+ loading: /* @__PURE__ */ React.createElement(z, {
36939
+ className: "nut-icon-loading"
36940
+ })
36941
+ }[icon];
37623
36942
  }
37624
- return {
37625
- success: /* @__PURE__ */ React.createElement(t$1, null),
37626
- fail: /* @__PURE__ */ React.createElement(N, null),
37627
- warn: /* @__PURE__ */ React.createElement(c$1, null),
37628
- loading: /* @__PURE__ */ React.createElement(z, null)
37629
- }[type2];
36943
+ return iconNode && /* @__PURE__ */ React.createElement(components.View, {
36944
+ className: "".concat(classPrefix2, "-icon-wrapper")
36945
+ }, iconNode);
37630
36946
  };
37631
36947
  var classes = classNames({
37632
36948
  "nut-toast-has-icon": icon,
@@ -37636,28 +36952,27 @@
37636
36952
  left: "50%",
37637
36953
  transform: "translate(-50%, -50%)"
37638
36954
  } : null;
37639
- return /* @__PURE__ */ React.createElement(React.Fragment, null, innerVisible ? /* @__PURE__ */ React.createElement(Overlay, {
36955
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, innerVisible && /* @__PURE__ */ React.createElement(Overlay, {
37640
36956
  visible: innerVisible,
37641
36957
  style,
37642
- className: "".concat(classPrefix$9, "-overlay-default-taro ").concat(className),
36958
+ zIndex,
36959
+ className: "".concat(classPrefix2, "-overlay-default-taro ").concat(className),
37643
36960
  closeOnOverlayClick,
37644
36961
  lockScroll,
37645
36962
  onClick: function() {
37646
36963
  clickCover();
37647
36964
  }
37648
36965
  }, /* @__PURE__ */ React.createElement(components.View, {
37649
- className: "".concat(classPrefix$9, " ").concat(classes),
36966
+ className: "".concat(classPrefix2, " ").concat(classes),
37650
36967
  id
37651
36968
  }, /* @__PURE__ */ React.createElement(components.View, {
37652
- 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)),
36969
+ 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)),
37653
36970
  style: _object_spread({}, styles, contentStyle)
37654
- }, hasIcon() ? /* @__PURE__ */ React.createElement(components.View, {
37655
- className: "".concat(classPrefix$9, "-icon-wrapper")
37656
- }, iconName()) : null, title ? /* @__PURE__ */ React.createElement(components.Text, {
37657
- className: "".concat(classPrefix$9, "-title")
37658
- }, title) : null, content2 ? /* @__PURE__ */ React.createElement(components.Text, {
37659
- className: "".concat(classPrefix$9, "-text")
37660
- }, content2) : null))) : null);
36971
+ }, renderIcon(), title && /* @__PURE__ */ React.createElement(components.Text, {
36972
+ className: "".concat(classPrefix2, "-title")
36973
+ }, title), content2 && /* @__PURE__ */ React.createElement(components.Text, {
36974
+ className: "".concat(classPrefix2, "-text")
36975
+ }, content2)))));
37661
36976
  };
37662
36977
  function show(selector, options) {
37663
36978
  var path = useCustomEventsPath(selector);
@@ -39004,7 +38319,7 @@
39004
38319
  style: {}
39005
38320
  };
39006
38321
  var classPrefix$4 = "nut-swiper";
39007
- var Swiper$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
38322
+ var Swiper = /* @__PURE__ */ React.forwardRef(function(props, ref) {
39008
38323
  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;
39009
38324
  _ref.duration;
39010
38325
  var direction = _ref.direction, defaultValue = _ref.defaultValue;
@@ -39116,7 +38431,7 @@
39116
38431
  }, child);
39117
38432
  }))), renderIndicator());
39118
38433
  });
39119
- Swiper$1.displayName = "NutSwiper";
38434
+ Swiper.displayName = "NutSwiper";
39120
38435
  var SwiperItem = function(props) {
39121
38436
  var children = props.children;
39122
38437
  _object_without_properties(props, [
@@ -39125,9 +38440,8 @@
39125
38440
  return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
39126
38441
  };
39127
38442
  SwiperItem.displayName = "NutSwiperItem";
39128
- var InnerSwiper = Swiper$1;
38443
+ var InnerSwiper = Swiper;
39129
38444
  InnerSwiper.Item = SwiperItem;
39130
- const Swiper = InnerSwiper;
39131
38445
  var defaultProps$h = _object_spread_props(_object_spread({}, ComponentDefaults), {
39132
38446
  images: [],
39133
38447
  videos: [],
@@ -39295,7 +38609,7 @@
39295
38609
  style,
39296
38610
  ref,
39297
38611
  onTouchStart
39298
- }, /* @__PURE__ */ React.createElement(Swiper, {
38612
+ }, /* @__PURE__ */ React.createElement(InnerSwiper, {
39299
38613
  autoPlay,
39300
38614
  className: "".concat(classPrefix2, "-swiper"),
39301
38615
  loop: true,
@@ -41723,7 +41037,7 @@
41723
41037
  exports.Cascader = Cascader;
41724
41038
  exports.Cell = Cell;
41725
41039
  exports.CellGroup = CellGroup;
41726
- exports.Checkbox = InnerCheckbox$1;
41040
+ exports.Checkbox = InnerCheckbox;
41727
41041
  exports.CheckboxGroup = CheckboxGroup;
41728
41042
  exports.CircleProgress = CircleProgress;
41729
41043
  exports.Col = Col;
@@ -41739,7 +41053,7 @@
41739
41053
  exports.Ellipsis = Ellipsis;
41740
41054
  exports.Empty = Empty;
41741
41055
  exports.FixedNav = FixedNav;
41742
- exports.Form = InnerForm$1;
41056
+ exports.Form = InnerForm;
41743
41057
  exports.FormItem = FormItem;
41744
41058
  exports.Grid = Grid;
41745
41059
  exports.GridItem = GridItem;
@@ -41753,7 +41067,7 @@
41753
41067
  exports.InputNumber = InputNumber;
41754
41068
  exports.Layout = Layout;
41755
41069
  exports.Loading = Loading;
41756
- exports.Lottie = Lottie$1;
41070
+ exports.Lottie = Lottie;
41757
41071
  exports.Menu = Menu;
41758
41072
  exports.MenuItem = MenuItem;
41759
41073
  exports.NavBar = NavBar;
@@ -41768,7 +41082,7 @@
41768
41082
  exports.Price = Price;
41769
41083
  exports.Progress = Progress;
41770
41084
  exports.PullToRefresh = PullToRefresh;
41771
- exports.Radio = Radio;
41085
+ exports.Radio = InnerRadio;
41772
41086
  exports.RadioGroup = RadioGroup;
41773
41087
  exports.Range = Range;
41774
41088
  exports.Rate = Rate;
@@ -41790,7 +41104,7 @@
41790
41104
  exports.Sticky = Sticky;
41791
41105
  exports.SubSideNavBar = SubSideNavBar;
41792
41106
  exports.Swipe = Swipe;
41793
- exports.Swiper = Swiper;
41107
+ exports.Swiper = InnerSwiper;
41794
41108
  exports.SwiperItem = SwiperItem;
41795
41109
  exports.Switch = Switch;
41796
41110
  exports.TabPane = TabPane;