@nutui/nutui-react-taro 3.0.20-beta.0 → 3.0.21-cpp

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/CHANGELOG.md +34 -70
  2. package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
  3. package/dist/cjs/hooks/use-ref-state.js +3 -3
  4. package/dist/cjs/hooks/use-touch.js +1 -2
  5. package/dist/cjs/locales/base.d.ts +9 -0
  6. package/dist/cjs/locales/en-US.js +21 -2
  7. package/dist/cjs/locales/id-ID.js +21 -2
  8. package/dist/cjs/locales/ja-JP.js +19 -2
  9. package/dist/cjs/locales/tr-TR.js +21 -2
  10. package/dist/cjs/locales/zh-CN.js +19 -2
  11. package/dist/cjs/locales/zh-TW.js +19 -2
  12. package/dist/cjs/locales/zh-UG.js +21 -2
  13. package/dist/cjs/packages/actionsheet/style/style.harmony.css +38 -17
  14. package/dist/cjs/packages/address/address.d.ts +1 -1
  15. package/dist/cjs/packages/address/style/style.harmony.css +38 -17
  16. package/dist/cjs/packages/address/utils.js +3 -3
  17. package/dist/cjs/packages/animatingnumbers/countup.js +3 -1
  18. package/dist/cjs/packages/audio/style/style.harmony.css +0 -3
  19. package/dist/cjs/packages/avatar/avatar.js +32 -6
  20. package/dist/cjs/packages/avatarcropper/avatarcropper.js +18 -34
  21. package/dist/cjs/packages/badge/badge.js +20 -10
  22. package/dist/cjs/packages/barrage/barrage.js +14 -24
  23. package/dist/cjs/packages/button/button.d.ts +2 -24
  24. package/dist/cjs/packages/button/button.js +9 -12
  25. package/dist/cjs/packages/button/index.d.ts +0 -1
  26. package/dist/cjs/packages/button/style/button.scss +0 -3
  27. package/dist/cjs/packages/button/style/style.css +0 -3
  28. package/dist/cjs/packages/button/style/style.harmony.css +0 -3
  29. package/dist/cjs/packages/button/style-jmapp/button.scss +0 -3
  30. package/dist/cjs/packages/button/style-jmapp/style.css +0 -3
  31. package/dist/cjs/packages/button/style-jrkf/button.scss +0 -3
  32. package/dist/cjs/packages/button/style-jrkf/style.css +0 -3
  33. package/dist/cjs/packages/calendar/style/calendar.scss +32 -1
  34. package/dist/cjs/packages/calendar/style/style.css +21 -1
  35. package/dist/cjs/packages/calendar/style/style.harmony.css +59 -18
  36. package/dist/cjs/packages/calendar/style-jmapp/calendar.scss +32 -1
  37. package/dist/cjs/packages/calendar/style-jmapp/style.css +21 -1
  38. package/dist/cjs/packages/calendar/style-jrkf/calendar.scss +32 -1
  39. package/dist/cjs/packages/calendar/style-jrkf/style.css +21 -1
  40. package/dist/cjs/packages/calendar/utils.js +8 -8
  41. package/dist/cjs/packages/calendarcard/calendarcard.js +30 -8
  42. package/dist/cjs/packages/calendarcard/icon.js +17 -28
  43. package/dist/cjs/packages/calendarcard/style/calendarcard.scss +19 -0
  44. package/dist/cjs/packages/calendarcard/style/style.css +13 -0
  45. package/dist/cjs/packages/calendarcard/style/style.harmony.css +13 -0
  46. package/dist/cjs/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
  47. package/dist/cjs/packages/calendarcard/style-jmapp/style.css +13 -0
  48. package/dist/cjs/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
  49. package/dist/cjs/packages/calendarcard/style-jrkf/style.css +13 -0
  50. package/dist/cjs/packages/calendarcard/utils.js +6 -6
  51. package/dist/cjs/packages/card/style/style.harmony.css +1 -1
  52. package/dist/cjs/packages/cascader/cascader.js +12 -21
  53. package/dist/cjs/packages/cascader/style/style.harmony.css +38 -17
  54. package/dist/cjs/packages/cascader/utils.js +3 -3
  55. package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
  56. package/dist/cjs/packages/configprovider/configprovider.js +7 -7
  57. package/dist/cjs/packages/configprovider/index.js +6 -6
  58. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  59. package/dist/cjs/packages/countdown/countdown.js +1 -2
  60. package/dist/cjs/packages/datepicker/style/style.harmony.css +39 -18
  61. package/dist/cjs/packages/datepicker/utils.js +9 -9
  62. package/dist/cjs/packages/dialog/content.js +3 -3
  63. package/dist/cjs/packages/dialog/dialog.js +26 -23
  64. package/dist/cjs/packages/dialog/style/dialog.scss +1 -1
  65. package/dist/cjs/packages/dialog/style/style.css +1 -1
  66. package/dist/cjs/packages/dialog/style/style.harmony.css +1 -4
  67. package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +1 -1
  68. package/dist/cjs/packages/dialog/style-jmapp/style.css +1 -1
  69. package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +1 -1
  70. package/dist/cjs/packages/dialog/style-jrkf/style.css +1 -1
  71. package/dist/cjs/packages/divider/divider.js +2 -2
  72. package/dist/cjs/packages/drag/drag.js +4 -7
  73. package/dist/cjs/packages/elevator/elevator.js +7 -10
  74. package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
  75. package/dist/cjs/packages/empty/empty.d.ts +4 -4
  76. package/dist/cjs/packages/empty/style/style.harmony.css +0 -3
  77. package/dist/cjs/packages/form/index.js +0 -2
  78. package/dist/cjs/packages/form/style/style.harmony.css +0 -5
  79. package/dist/cjs/packages/form/useform.js +50 -57
  80. package/dist/cjs/packages/formitem/style/formitem.scss +4 -4
  81. package/dist/cjs/packages/formitem/style/style.css +0 -5
  82. package/dist/cjs/packages/formitem/style/style.harmony.css +0 -5
  83. package/dist/cjs/packages/formitem/style-jmapp/formitem.scss +4 -4
  84. package/dist/cjs/packages/formitem/style-jmapp/style.css +0 -5
  85. package/dist/cjs/packages/formitem/style-jrkf/formitem.scss +4 -4
  86. package/dist/cjs/packages/formitem/style-jrkf/style.css +0 -5
  87. package/dist/cjs/packages/image/image.js +11 -3
  88. package/dist/cjs/packages/imagepreview/style/style.harmony.css +38 -17
  89. package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
  90. package/dist/cjs/packages/input/input.js +10 -3
  91. package/dist/cjs/packages/inputnumber/inputnumber.js +17 -29
  92. package/dist/cjs/packages/lottie/lottiemp.js +10 -18
  93. package/dist/cjs/packages/lottie/types.js +0 -2
  94. package/dist/cjs/packages/menuitem/menuitem.js +24 -22
  95. package/dist/cjs/packages/noticebar/noticebar.js +74 -70
  96. package/dist/cjs/packages/notify/notify.js +4 -4
  97. package/dist/cjs/packages/numberkeyboard/style/style.css +1 -1
  98. package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +39 -18
  99. package/dist/cjs/packages/nutui.react.build.d.ts +3 -1
  100. package/dist/cjs/packages/nutui.react.build.js +123 -119
  101. package/dist/cjs/packages/nutui.react.d.ts +4 -1
  102. package/dist/cjs/packages/nutui.react.js +124 -119
  103. package/dist/cjs/packages/nutui.react.scss.d.ts +1 -0
  104. package/dist/cjs/packages/nutui.react.scss.js +1 -0
  105. package/dist/cjs/packages/overlay/overlay.js +6 -6
  106. package/dist/cjs/packages/picker/style/style.css +1 -1
  107. package/dist/cjs/packages/picker/style/style.harmony.css +39 -18
  108. package/dist/cjs/packages/pickerview/pickerroller.js +4 -7
  109. package/dist/cjs/packages/pickerview/pickerview.js +1 -2
  110. package/dist/cjs/packages/pickerview/utils.js +3 -3
  111. package/dist/cjs/packages/popover/popover.js +75 -77
  112. package/dist/cjs/packages/popover/style/style.harmony.css +38 -17
  113. package/dist/cjs/packages/popup/popup.js +192 -113
  114. package/dist/cjs/packages/popup/style/popup.scss +22 -1
  115. package/dist/cjs/packages/popup/style/style.css +38 -17
  116. package/dist/cjs/packages/popup/style/style.harmony.css +38 -17
  117. package/dist/cjs/packages/popup/style-jmapp/popup.scss +22 -1
  118. package/dist/cjs/packages/popup/style-jmapp/style.css +22 -1
  119. package/dist/cjs/packages/popup/style-jrkf/popup.scss +22 -1
  120. package/dist/cjs/packages/popup/style-jrkf/style.css +22 -1
  121. package/dist/cjs/packages/price/price.js +52 -13
  122. package/dist/cjs/packages/progress/progress.js +2 -4
  123. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
  124. package/dist/cjs/packages/quickenter/index.d.ts +3 -0
  125. package/dist/cjs/packages/quickenter/index.js +13 -0
  126. package/dist/cjs/packages/quickenter/quickenter.d.ts +4 -0
  127. package/dist/cjs/packages/quickenter/quickenter.js +153 -0
  128. package/dist/cjs/packages/quickenter/style/css.js +2 -0
  129. package/dist/cjs/packages/quickenter/style/index.js +2 -0
  130. package/dist/cjs/packages/quickenter/style/quickenter.scss +120 -0
  131. package/dist/cjs/packages/quickenter/style/style.css +106 -0
  132. package/dist/cjs/packages/quickenter/style/style.harmony.css +506 -0
  133. package/dist/cjs/packages/quickenter/style-jmapp/css.js +2 -0
  134. package/dist/cjs/packages/quickenter/style-jmapp/index.js +2 -0
  135. package/dist/cjs/packages/quickenter/style-jmapp/quickenter.scss +120 -0
  136. package/dist/cjs/packages/quickenter/style-jmapp/style.css +106 -0
  137. package/dist/cjs/packages/quickenter/style-jrkf/css.js +2 -0
  138. package/dist/cjs/packages/quickenter/style-jrkf/index.js +2 -0
  139. package/dist/cjs/packages/quickenter/style-jrkf/quickenter.scss +120 -0
  140. package/dist/cjs/packages/quickenter/style-jrkf/style.css +106 -0
  141. package/dist/cjs/packages/radio/index.js +0 -2
  142. package/dist/cjs/packages/range/range.js +44 -28
  143. package/dist/cjs/packages/rate/rate.js +5 -8
  144. package/dist/cjs/packages/resultpage/resultpage.js +2 -1
  145. package/dist/cjs/packages/resultpage/style/style.harmony.css +0 -3
  146. package/dist/cjs/packages/safearea/safearea.js +3 -12
  147. package/dist/cjs/packages/safearea/style/safearea.scss +0 -6
  148. package/dist/cjs/packages/safearea/style/style.css +0 -2
  149. package/dist/cjs/packages/safearea/style/style.harmony.css +0 -2
  150. package/dist/cjs/packages/safearea/style-jmapp/safearea.scss +0 -6
  151. package/dist/cjs/packages/safearea/style-jmapp/style.css +0 -2
  152. package/dist/cjs/packages/safearea/style-jrkf/safearea.scss +0 -6
  153. package/dist/cjs/packages/safearea/style-jrkf/style.css +0 -2
  154. package/dist/cjs/packages/searchbar/searchbar.js +23 -9
  155. package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
  156. package/dist/cjs/packages/shortpassword/style/style.harmony.css +38 -17
  157. package/dist/cjs/packages/step/step.js +3 -8
  158. package/dist/cjs/packages/step/style/step.scss +0 -2
  159. package/dist/cjs/packages/step/style/style.css +0 -2
  160. package/dist/cjs/packages/step/style/style.harmony.css +0 -2
  161. package/dist/cjs/packages/step/style-jmapp/step.scss +0 -2
  162. package/dist/cjs/packages/step/style-jmapp/style.css +0 -2
  163. package/dist/cjs/packages/step/style-jrkf/step.scss +0 -2
  164. package/dist/cjs/packages/step/style-jrkf/style.css +0 -2
  165. package/dist/cjs/packages/steps/style/steps.scss +10 -3
  166. package/dist/cjs/packages/steps/style/style.css +13 -7
  167. package/dist/cjs/packages/steps/style/style.harmony.css +13 -9
  168. package/dist/cjs/packages/steps/style-jmapp/steps.scss +10 -3
  169. package/dist/cjs/packages/steps/style-jmapp/style.css +9 -3
  170. package/dist/cjs/packages/steps/style-jrkf/steps.scss +10 -3
  171. package/dist/cjs/packages/steps/style-jrkf/style.css +9 -3
  172. package/dist/cjs/packages/sticky/sticky.js +4 -7
  173. package/dist/cjs/packages/swipe/swipe.js +84 -122
  174. package/dist/cjs/packages/swiper/index.js +0 -1
  175. package/dist/cjs/packages/switch/switch.js +4 -7
  176. package/dist/cjs/packages/table/style/style.css +1 -1
  177. package/dist/cjs/packages/table/style/style.harmony.css +1 -1
  178. package/dist/cjs/packages/table/style/table.scss +1 -1
  179. package/dist/cjs/packages/table/style-jmapp/style.css +1 -1
  180. package/dist/cjs/packages/table/style-jmapp/table.scss +1 -1
  181. package/dist/cjs/packages/table/style-jrkf/style.css +1 -1
  182. package/dist/cjs/packages/table/style-jrkf/table.scss +1 -1
  183. package/dist/cjs/packages/tabs/tabs.js +12 -5
  184. package/dist/cjs/packages/tag/style/style.css +1 -1
  185. package/dist/cjs/packages/tag/style/style.harmony.css +1 -1
  186. package/dist/cjs/packages/tag/style/tag.scss +1 -1
  187. package/dist/cjs/packages/tag/style-jmapp/style.css +1 -1
  188. package/dist/cjs/packages/tag/style-jmapp/tag.scss +1 -1
  189. package/dist/cjs/packages/tag/style-jrkf/style.css +1 -1
  190. package/dist/cjs/packages/tag/style-jrkf/tag.scss +1 -1
  191. package/dist/cjs/packages/timeselect/style/style.harmony.css +38 -17
  192. package/dist/cjs/packages/toast/style/style.css +2 -4
  193. package/dist/cjs/packages/toast/style/style.harmony.css +2 -4
  194. package/dist/cjs/packages/toast/style/toast.scss +2 -4
  195. package/dist/cjs/packages/toast/style-jmapp/style.css +2 -4
  196. package/dist/cjs/packages/toast/style-jmapp/toast.scss +2 -4
  197. package/dist/cjs/packages/toast/style-jrkf/style.css +2 -4
  198. package/dist/cjs/packages/toast/style-jrkf/toast.scss +2 -4
  199. package/dist/cjs/packages/toast/toast.js +5 -5
  200. package/dist/cjs/packages/tour/style/style.harmony.css +38 -17
  201. package/dist/cjs/packages/uploader/uploader.js +38 -51
  202. package/dist/cjs/packages/virtuallist/utils.js +6 -6
  203. package/dist/cjs/packages/watermark/watermark.js +4 -8
  204. package/dist/cjs/types/index.d.ts +3 -0
  205. package/dist/cjs/types/index.js +3 -0
  206. package/dist/cjs/types/spec/address/base.js +0 -2
  207. package/dist/cjs/types/spec/button/base.d.ts +2 -1
  208. package/dist/cjs/types/spec/button/taro.d.ts +5 -1
  209. package/dist/cjs/types/spec/calendarcard/base.d.ts +2 -0
  210. package/dist/cjs/types/spec/dialog/base.d.ts +1 -0
  211. package/dist/cjs/types/spec/dialog/h5.d.ts +2 -0
  212. package/dist/cjs/types/spec/dialog/taro.d.ts +2 -0
  213. package/dist/cjs/types/spec/overlay/base.d.ts +1 -0
  214. package/dist/cjs/types/spec/popup/base.d.ts +2 -0
  215. package/dist/cjs/types/spec/price/base.d.ts +1 -0
  216. package/dist/cjs/types/spec/quickenter/base.d.ts +27 -0
  217. package/dist/cjs/types/spec/quickenter/base.js +4 -0
  218. package/dist/cjs/types/spec/quickenter/h5.d.ts +5 -0
  219. package/dist/cjs/types/spec/quickenter/h5.js +4 -0
  220. package/dist/cjs/types/spec/quickenter/taro.d.ts +5 -0
  221. package/dist/cjs/types/spec/quickenter/taro.js +4 -0
  222. package/dist/cjs/utils/date.js +5 -5
  223. package/dist/cjs/utils/event-mocker.js +10 -18
  224. package/dist/cjs/utils/get-rect.js +4 -4
  225. package/dist/cjs/utils/get-scroll-parent.js +3 -3
  226. package/dist/cjs/utils/merge-props.js +3 -3
  227. package/dist/cjs/utils/merge.js +6 -6
  228. package/dist/cjs/utils/raf.js +3 -3
  229. package/dist/cjs/utils/render.js +5 -9
  230. package/dist/cjs/utils/rubberband.js +3 -3
  231. package/dist/cjs/utils/should-render-price-raw.d.ts +2 -0
  232. package/dist/cjs/utils/should-render-price-raw.js +46 -0
  233. package/dist/cjs/utils/taro/ConfigurableCSSTransition copy.d.ts +15 -0
  234. package/dist/cjs/utils/taro/ConfigurableCSSTransition copy.js +130 -0
  235. package/dist/cjs/utils/taro/ConfigurableCSSTransition.d.ts +15 -0
  236. package/dist/cjs/utils/taro/ConfigurableCSSTransition.js +90 -0
  237. package/dist/cjs/utils/taro/get-rect.js +18 -26
  238. package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
  239. package/dist/cjs/utils/taro/get-system-info.js +5 -10
  240. package/dist/cjs/utils/taro/platform.js +5 -5
  241. package/dist/es/hooks/taro/use-custom-event.js +1 -0
  242. package/dist/es/hooks/use-touch.js +1 -1
  243. package/dist/es/locales/base.d.ts +9 -0
  244. package/dist/es/locales/en-US.js +21 -2
  245. package/dist/es/locales/id-ID.js +21 -2
  246. package/dist/es/locales/ja-JP.js +19 -2
  247. package/dist/es/locales/tr-TR.js +21 -2
  248. package/dist/es/locales/zh-CN.js +19 -2
  249. package/dist/es/locales/zh-TW.js +19 -2
  250. package/dist/es/locales/zh-UG.js +21 -2
  251. package/dist/es/packages/actionsheet/style/style.harmony.css +38 -17
  252. package/dist/es/packages/address/address.d.ts +1 -1
  253. package/dist/es/packages/address/style/style.harmony.css +38 -17
  254. package/dist/es/packages/animatingnumbers/countup.js +3 -1
  255. package/dist/es/packages/audio/style/style.harmony.css +0 -3
  256. package/dist/es/packages/avatar/avatar.js +32 -6
  257. package/dist/es/packages/avatarcropper/avatarcropper.js +20 -36
  258. package/dist/es/packages/badge/badge.js +20 -10
  259. package/dist/es/packages/barrage/barrage.js +14 -24
  260. package/dist/es/packages/button/button.d.ts +2 -24
  261. package/dist/es/packages/button/button.js +10 -12
  262. package/dist/es/packages/button/index.d.ts +0 -1
  263. package/dist/es/packages/button/style/button.scss +0 -3
  264. package/dist/es/packages/button/style/style.css +0 -3
  265. package/dist/es/packages/button/style/style.harmony.css +0 -3
  266. package/dist/es/packages/button/style-jmapp/button.scss +0 -3
  267. package/dist/es/packages/button/style-jmapp/style.css +0 -3
  268. package/dist/es/packages/button/style-jrkf/button.scss +0 -3
  269. package/dist/es/packages/button/style-jrkf/style.css +0 -3
  270. package/dist/es/packages/calendar/style/calendar.scss +32 -1
  271. package/dist/es/packages/calendar/style/style.css +21 -1
  272. package/dist/es/packages/calendar/style/style.harmony.css +59 -18
  273. package/dist/es/packages/calendar/style-jmapp/calendar.scss +32 -1
  274. package/dist/es/packages/calendar/style-jmapp/style.css +21 -1
  275. package/dist/es/packages/calendar/style-jrkf/calendar.scss +32 -1
  276. package/dist/es/packages/calendar/style-jrkf/style.css +21 -1
  277. package/dist/es/packages/calendarcard/calendarcard.js +31 -9
  278. package/dist/es/packages/calendarcard/icon.js +13 -24
  279. package/dist/es/packages/calendarcard/style/calendarcard.scss +19 -0
  280. package/dist/es/packages/calendarcard/style/style.css +13 -0
  281. package/dist/es/packages/calendarcard/style/style.harmony.css +13 -0
  282. package/dist/es/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
  283. package/dist/es/packages/calendarcard/style-jmapp/style.css +13 -0
  284. package/dist/es/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
  285. package/dist/es/packages/calendarcard/style-jrkf/style.css +13 -0
  286. package/dist/es/packages/card/style/style.harmony.css +1 -1
  287. package/dist/es/packages/cascader/cascader.js +12 -21
  288. package/dist/es/packages/cascader/style/style.harmony.css +38 -17
  289. package/dist/es/packages/collapseitem/collapseitem.js +4 -7
  290. package/dist/es/packages/configprovider/types.d.ts +1 -1
  291. package/dist/es/packages/countdown/countdown.js +1 -2
  292. package/dist/es/packages/datepicker/style/style.harmony.css +39 -18
  293. package/dist/es/packages/dialog/dialog.js +33 -28
  294. package/dist/es/packages/dialog/style/dialog.scss +1 -1
  295. package/dist/es/packages/dialog/style/style.css +1 -1
  296. package/dist/es/packages/dialog/style/style.harmony.css +1 -4
  297. package/dist/es/packages/dialog/style-jmapp/dialog.scss +1 -1
  298. package/dist/es/packages/dialog/style-jmapp/style.css +1 -1
  299. package/dist/es/packages/dialog/style-jrkf/dialog.scss +1 -1
  300. package/dist/es/packages/dialog/style-jrkf/style.css +1 -1
  301. package/dist/es/packages/divider/divider.js +1 -1
  302. package/dist/es/packages/drag/drag.js +4 -7
  303. package/dist/es/packages/elevator/elevator.js +4 -7
  304. package/dist/es/packages/ellipsis/ellipsis.js +17 -30
  305. package/dist/es/packages/empty/empty.d.ts +4 -4
  306. package/dist/es/packages/empty/style/style.harmony.css +0 -3
  307. package/dist/es/packages/form/index.js +0 -1
  308. package/dist/es/packages/form/style/style.harmony.css +0 -5
  309. package/dist/es/packages/form/useform.js +46 -53
  310. package/dist/es/packages/formitem/style/formitem.scss +4 -4
  311. package/dist/es/packages/formitem/style/style.css +0 -5
  312. package/dist/es/packages/formitem/style/style.harmony.css +0 -5
  313. package/dist/es/packages/formitem/style-jmapp/formitem.scss +4 -4
  314. package/dist/es/packages/formitem/style-jmapp/style.css +0 -5
  315. package/dist/es/packages/formitem/style-jrkf/formitem.scss +4 -4
  316. package/dist/es/packages/formitem/style-jrkf/style.css +0 -5
  317. package/dist/es/packages/image/image.js +11 -3
  318. package/dist/es/packages/imagepreview/style/style.harmony.css +38 -17
  319. package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
  320. package/dist/es/packages/input/input.js +10 -3
  321. package/dist/es/packages/inputnumber/inputnumber.js +17 -29
  322. package/dist/es/packages/lottie/lottiemp.js +12 -20
  323. package/dist/es/packages/lottie/types.js +1 -1
  324. package/dist/es/packages/menuitem/menuitem.js +24 -22
  325. package/dist/es/packages/noticebar/noticebar.js +74 -70
  326. package/dist/es/packages/numberkeyboard/style/style.css +1 -1
  327. package/dist/es/packages/numberkeyboard/style/style.harmony.css +39 -18
  328. package/dist/es/packages/nutui.react.build.d.ts +3 -1
  329. package/dist/es/packages/nutui.react.build.js +3 -1
  330. package/dist/es/packages/overlay/overlay.js +3 -3
  331. package/dist/es/packages/picker/style/style.css +1 -1
  332. package/dist/es/packages/picker/style/style.harmony.css +39 -18
  333. package/dist/es/packages/pickerview/pickerroller.js +4 -7
  334. package/dist/es/packages/pickerview/pickerview.js +1 -2
  335. package/dist/es/packages/popover/popover.js +75 -77
  336. package/dist/es/packages/popover/style/style.harmony.css +38 -17
  337. package/dist/es/packages/popup/popup.js +193 -114
  338. package/dist/es/packages/popup/style/popup.scss +22 -1
  339. package/dist/es/packages/popup/style/style.css +38 -17
  340. package/dist/es/packages/popup/style/style.harmony.css +38 -17
  341. package/dist/es/packages/popup/style-jmapp/popup.scss +22 -1
  342. package/dist/es/packages/popup/style-jmapp/style.css +22 -1
  343. package/dist/es/packages/popup/style-jrkf/popup.scss +22 -1
  344. package/dist/es/packages/popup/style-jrkf/style.css +22 -1
  345. package/dist/es/packages/price/price.js +53 -14
  346. package/dist/es/packages/progress/progress.js +2 -4
  347. package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
  348. package/dist/es/packages/quickenter/index.d.ts +3 -0
  349. package/dist/es/packages/quickenter/index.js +2 -0
  350. package/dist/es/packages/quickenter/quickenter.d.ts +4 -0
  351. package/dist/es/packages/quickenter/quickenter.js +141 -0
  352. package/dist/es/packages/quickenter/style/css.js +2 -0
  353. package/dist/es/packages/quickenter/style/index.js +2 -0
  354. package/dist/es/packages/quickenter/style/quickenter.scss +120 -0
  355. package/dist/es/packages/quickenter/style/style.css +106 -0
  356. package/dist/es/packages/quickenter/style/style.harmony.css +506 -0
  357. package/dist/es/packages/quickenter/style-jmapp/css.js +2 -0
  358. package/dist/es/packages/quickenter/style-jmapp/index.js +2 -0
  359. package/dist/es/packages/quickenter/style-jmapp/quickenter.scss +120 -0
  360. package/dist/es/packages/quickenter/style-jmapp/style.css +106 -0
  361. package/dist/es/packages/quickenter/style-jrkf/css.js +2 -0
  362. package/dist/es/packages/quickenter/style-jrkf/index.js +2 -0
  363. package/dist/es/packages/quickenter/style-jrkf/quickenter.scss +120 -0
  364. package/dist/es/packages/quickenter/style-jrkf/style.css +106 -0
  365. package/dist/es/packages/radio/index.js +0 -1
  366. package/dist/es/packages/range/range.js +45 -29
  367. package/dist/es/packages/rate/rate.js +6 -9
  368. package/dist/es/packages/resultpage/resultpage.js +2 -1
  369. package/dist/es/packages/resultpage/style/style.harmony.css +0 -3
  370. package/dist/es/packages/safearea/safearea.js +3 -12
  371. package/dist/es/packages/safearea/style/safearea.scss +0 -6
  372. package/dist/es/packages/safearea/style/style.css +0 -2
  373. package/dist/es/packages/safearea/style/style.harmony.css +0 -2
  374. package/dist/es/packages/safearea/style-jmapp/safearea.scss +0 -6
  375. package/dist/es/packages/safearea/style-jmapp/style.css +0 -2
  376. package/dist/es/packages/safearea/style-jrkf/safearea.scss +0 -6
  377. package/dist/es/packages/safearea/style-jrkf/style.css +0 -2
  378. package/dist/es/packages/searchbar/searchbar.js +23 -9
  379. package/dist/es/packages/shortpassword/style/style.harmony.css +38 -17
  380. package/dist/es/packages/step/step.js +3 -8
  381. package/dist/es/packages/step/style/step.scss +0 -2
  382. package/dist/es/packages/step/style/style.css +0 -2
  383. package/dist/es/packages/step/style/style.harmony.css +0 -2
  384. package/dist/es/packages/step/style-jmapp/step.scss +0 -2
  385. package/dist/es/packages/step/style-jmapp/style.css +0 -2
  386. package/dist/es/packages/step/style-jrkf/step.scss +0 -2
  387. package/dist/es/packages/step/style-jrkf/style.css +0 -2
  388. package/dist/es/packages/steps/style/steps.scss +10 -3
  389. package/dist/es/packages/steps/style/style.css +13 -7
  390. package/dist/es/packages/steps/style/style.harmony.css +13 -9
  391. package/dist/es/packages/steps/style-jmapp/steps.scss +10 -3
  392. package/dist/es/packages/steps/style-jmapp/style.css +9 -3
  393. package/dist/es/packages/steps/style-jrkf/steps.scss +10 -3
  394. package/dist/es/packages/steps/style-jrkf/style.css +9 -3
  395. package/dist/es/packages/sticky/sticky.js +4 -7
  396. package/dist/es/packages/swipe/swipe.js +85 -123
  397. package/dist/es/packages/swiper/index.js +0 -1
  398. package/dist/es/packages/switch/switch.js +4 -7
  399. package/dist/es/packages/table/style/style.css +1 -1
  400. package/dist/es/packages/table/style/style.harmony.css +1 -1
  401. package/dist/es/packages/table/style/table.scss +1 -1
  402. package/dist/es/packages/table/style-jmapp/style.css +1 -1
  403. package/dist/es/packages/table/style-jmapp/table.scss +1 -1
  404. package/dist/es/packages/table/style-jrkf/style.css +1 -1
  405. package/dist/es/packages/table/style-jrkf/table.scss +1 -1
  406. package/dist/es/packages/tabs/tabs.js +12 -5
  407. package/dist/es/packages/tag/style/style.css +1 -1
  408. package/dist/es/packages/tag/style/style.harmony.css +1 -1
  409. package/dist/es/packages/tag/style/tag.scss +1 -1
  410. package/dist/es/packages/tag/style-jmapp/style.css +1 -1
  411. package/dist/es/packages/tag/style-jmapp/tag.scss +1 -1
  412. package/dist/es/packages/tag/style-jrkf/style.css +1 -1
  413. package/dist/es/packages/tag/style-jrkf/tag.scss +1 -1
  414. package/dist/es/packages/timeselect/style/style.harmony.css +38 -17
  415. package/dist/es/packages/toast/style/style.css +2 -4
  416. package/dist/es/packages/toast/style/style.harmony.css +2 -4
  417. package/dist/es/packages/toast/style/toast.scss +2 -4
  418. package/dist/es/packages/toast/style-jmapp/style.css +2 -4
  419. package/dist/es/packages/toast/style-jmapp/toast.scss +2 -4
  420. package/dist/es/packages/toast/style-jrkf/style.css +2 -4
  421. package/dist/es/packages/toast/style-jrkf/toast.scss +2 -4
  422. package/dist/es/packages/toast/toast.js +1 -1
  423. package/dist/es/packages/tour/style/style.harmony.css +38 -17
  424. package/dist/es/packages/uploader/uploader.js +38 -51
  425. package/dist/es/packages/watermark/watermark.js +4 -8
  426. package/dist/es/types/index.d.ts +3 -0
  427. package/dist/es/types/index.js +3 -0
  428. package/dist/es/types/spec/address/base.js +1 -1
  429. package/dist/es/types/spec/button/base.d.ts +2 -1
  430. package/dist/es/types/spec/button/taro.d.ts +5 -1
  431. package/dist/es/types/spec/calendarcard/base.d.ts +2 -0
  432. package/dist/es/types/spec/dialog/base.d.ts +3 -8
  433. package/dist/es/types/spec/dialog/h5.d.ts +2 -0
  434. package/dist/es/types/spec/dialog/taro.d.ts +2 -0
  435. package/dist/es/types/spec/overlay/base.d.ts +1 -0
  436. package/dist/es/types/spec/popup/base.d.ts +4 -5
  437. package/dist/es/types/spec/price/base.d.ts +4 -0
  438. package/dist/es/types/spec/quickenter/base.d.ts +45 -0
  439. package/dist/es/types/spec/quickenter/base.js +1 -0
  440. package/dist/es/types/spec/quickenter/h5.d.ts +5 -0
  441. package/dist/es/types/spec/quickenter/h5.js +1 -0
  442. package/dist/es/types/spec/quickenter/taro.d.ts +5 -0
  443. package/dist/es/types/spec/quickenter/taro.js +1 -0
  444. package/dist/es/utils/event-mocker.js +4 -12
  445. package/dist/es/utils/render.js +2 -6
  446. package/dist/es/utils/should-render-price-raw.d.ts +2 -0
  447. package/dist/es/utils/should-render-price-raw.js +30 -0
  448. package/dist/es/utils/taro/ConfigurableCSSTransition copy.d.ts +15 -0
  449. package/dist/es/utils/taro/ConfigurableCSSTransition copy.js +119 -0
  450. package/dist/es/utils/taro/ConfigurableCSSTransition.d.ts +15 -0
  451. package/dist/es/utils/taro/ConfigurableCSSTransition.js +79 -0
  452. package/dist/es/utils/taro/get-rect.js +14 -22
  453. package/dist/es/utils/taro/get-system-info.d.ts +0 -5
  454. package/dist/es/utils/taro/get-system-info.js +8 -7
  455. package/dist/nutui.react.umd.js +8698 -7529
  456. package/dist/style-jmapp.css +1 -1
  457. package/dist/style-jmapp.scss +32 -31
  458. package/dist/style-jrkf.css +1 -1
  459. package/dist/style-jrkf.scss +25 -24
  460. package/dist/style.css +1 -1
  461. package/dist/style.scss +35 -34
  462. package/dist/styles/jd-font.scss +2 -2
  463. package/dist/styles/theme-dark.scss +1 -2
  464. package/dist/styles/themes/daojia.css +1 -1
  465. package/dist/styles/themes/dark-daojia.css +1 -1
  466. package/dist/styles/themes/dark.css +1 -1
  467. package/dist/styles/themes/default.css +1 -1
  468. package/dist/styles/variables-daojia.scss +41 -0
  469. package/dist/styles/variables-jmapp.scss +41 -0
  470. package/dist/styles/variables-jrkf.scss +41 -0
  471. package/dist/styles/variables.scss +49 -4
  472. package/package.json +1 -1
  473. package/dist/cjs/locales/vi-VN.d.ts +0 -3
  474. package/dist/cjs/locales/vi-VN.js +0 -170
  475. package/dist/es/locales/vi-VN.d.ts +0 -3
  476. package/dist/es/locales/vi-VN.js +0 -160
@@ -0,0 +1,106 @@
1
+ @charset "UTF-8";
2
+ /* #ifdef harmony */
3
+ /* #endif */
4
+ /* #ifndef harmony */
5
+ /* #endif */
6
+ .nut-quickenter {
7
+ width: 100%;
8
+ /* 限制弹层最大高度,包含安全区 */
9
+ max-height: calc(var(--nutui-quickenter-max-height, 256px) + env(safe-area-inset-top, 0));
10
+ background: var(--nutui-quickenter-bg-color, #f5f5f5);
11
+ border-radius: 0 0 12px 12px;
12
+ overflow: hidden;
13
+ box-sizing: border-box;
14
+ display: flex;
15
+ flex-direction: column;
16
+ box-shadow: var(--nutui-quickenter-box-shadow, 0px 8px 16px rgba(141, 153, 167, 0.2), 0px -0.5px 0px rgba(0, 0, 0, 0.05) inset);
17
+ }
18
+ .nut-quickenter.safe-area-top {
19
+ /* 使用 env fallback,确保旧浏览器返回 0 */
20
+ padding-top: calc(env(safe-area-inset-top, 0) * var(--nutui-safe-area-multiple, 1));
21
+ }
22
+ .nut-quickenter-control {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: space-between;
26
+ padding: 30px 16px 0;
27
+ box-sizing: border-box;
28
+ }
29
+ .nut-quickenter-title {
30
+ flex: 1;
31
+ overflow: hidden;
32
+ text-overflow: ellipsis;
33
+ white-space: nowrap;
34
+ text-align: left;
35
+ color: var(--nutui-quickenter-title-color, var(--nutui-color-title));
36
+ font-size: var(--nutui-quickenter-title-font-size, var(--nutui-font-text));
37
+ }
38
+ .nut-quickenter-close-btn {
39
+ color: var(--nutui-quickenter-close-icon-color, #808080);
40
+ display: flex;
41
+ align-items: center;
42
+ justify-content: center;
43
+ }
44
+ .nut-quickenter-close-btn svg,
45
+ .nut-quickenter-close-btn .nut-icon {
46
+ width: var(--nutui-quickenter-close-icon-size, 12px);
47
+ height: var(--nutui-quickenter-close-icon-size, 12px);
48
+ }
49
+ .nut-quickenter-content {
50
+ flex: 1;
51
+ padding: 10px 28px;
52
+ overflow-y: hidden;
53
+ box-sizing: border-box;
54
+ }
55
+ .nut-quickenter-content-scrollable {
56
+ overflow-y: auto;
57
+ -webkit-overflow-scrolling: touch;
58
+ }
59
+ .nut-quickenter-list {
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ align-items: flex-start;
63
+ width: 100%;
64
+ }
65
+ .nut-quickenter-item {
66
+ display: flex;
67
+ flex-direction: column;
68
+ align-items: center;
69
+ justify-content: flex-start;
70
+ width: 56px;
71
+ padding: 0 0 12px 0;
72
+ box-sizing: border-box;
73
+ cursor: pointer;
74
+ margin-right: calc((100% - 224px) / 3);
75
+ }
76
+ .nut-quickenter-item:nth-child(4n) {
77
+ margin-right: 0;
78
+ }
79
+ .nut-quickenter-item-icon {
80
+ width: 56px;
81
+ height: 56px;
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ border-radius: 50%;
86
+ background: var(--nutui-quickenter-item-icon-bg-color, #ffffff);
87
+ color: var(--nutui-quickenter-item-icon-color, var(--nutui-color-title));
88
+ margin-bottom: 8px;
89
+ flex-shrink: 0;
90
+ }
91
+ .nut-quickenter-item-icon svg,
92
+ .nut-quickenter-item-icon .nut-icon {
93
+ width: 22px;
94
+ height: 22px;
95
+ }
96
+ .nut-quickenter-item-title {
97
+ font-size: var(--nutui-quickenter-item-title-font-size, var(--nutui-font-text-small));
98
+ color: var(--nutui-quickenter-item-title-color, var(--nutui-color-title));
99
+ text-align: center;
100
+ line-height: 1.4;
101
+ white-space: normal;
102
+ word-wrap: break-word;
103
+ width: 72px;
104
+ margin-left: -8px;
105
+ margin-right: -8px;
106
+ }
@@ -0,0 +1,2 @@
1
+ import '../../popup/style-jrkf/css';
2
+ import './style.css';
@@ -0,0 +1,2 @@
1
+ import '../../popup/style-jrkf';
2
+ import './quickenter.scss';
@@ -0,0 +1,120 @@
1
+ .nut-quickenter {
2
+ width: 100%;
3
+ /* 限制弹层最大高度,包含安全区 */
4
+ max-height: calc(#{$quickenter-max-height} + env(safe-area-inset-top, 0));
5
+ background: $quickenter-bg-color;
6
+ border-radius: 0 0 12px 12px;
7
+ overflow: hidden;
8
+ box-sizing: border-box;
9
+ display: flex;
10
+ flex-direction: column;
11
+ box-shadow: $quickenter-box-shadow;
12
+ // backdrop-filter: $quickenter-backdrop-filter;
13
+
14
+ &.safe-area-top {
15
+ /* 使用 env fallback,确保旧浏览器返回 0 */
16
+ padding-top: calc(
17
+ env(safe-area-inset-top, 0) * var(--nutui-safe-area-multiple, 1)
18
+ );
19
+ }
20
+
21
+ &-control {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ padding: 30px 16px 0;
26
+ box-sizing: border-box;
27
+ }
28
+
29
+ &-title {
30
+ flex: 1;
31
+ overflow: hidden;
32
+ text-overflow: ellipsis;
33
+ white-space: nowrap;
34
+ text-align: left;
35
+ color: $quickenter-title-color;
36
+ font-size: $quickenter-title-font-size;
37
+ }
38
+
39
+ &-close-btn {
40
+ color: $quickenter-close-icon-color;
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+
45
+ svg,
46
+ .nut-icon {
47
+ width: $quickenter-close-icon-size;
48
+ height: $quickenter-close-icon-size;
49
+ }
50
+ }
51
+
52
+ &-content {
53
+ flex: 1;
54
+ padding: 10px 28px;
55
+ overflow-y: hidden; // 始终可滚动,防止内容被遮挡
56
+ box-sizing: border-box;
57
+
58
+ &-scrollable {
59
+ overflow-y: auto; // Only scroll when > 8 items
60
+ -webkit-overflow-scrolling: touch;
61
+ }
62
+ }
63
+
64
+ &-list {
65
+ display: flex;
66
+ flex-wrap: wrap;
67
+ align-items: flex-start;
68
+ width: 100%;
69
+ }
70
+
71
+ &-item {
72
+ display: flex;
73
+ flex-direction: column;
74
+ align-items: center;
75
+ justify-content: flex-start;
76
+ width: 56px;
77
+ padding: 0 0 12px 0; // Reduced from 16px to ensure 2 rows fit in 256px
78
+ box-sizing: border-box;
79
+ cursor: pointer;
80
+
81
+ // Calculate gap for 4 items per row: (100% - 4 * 56px) / 3
82
+ margin-right: calc((100% - 224px) / 3);
83
+
84
+ &:nth-child(4n) {
85
+ margin-right: 0;
86
+ }
87
+
88
+ &-icon {
89
+ width: 56px;
90
+ height: 56px;
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: center;
94
+ border-radius: 50%;
95
+ background: $quickenter-item-icon-bg-color;
96
+ color: $quickenter-item-icon-color;
97
+ margin-bottom: 8px;
98
+ flex-shrink: 0;
99
+
100
+ svg,
101
+ .nut-icon {
102
+ width: 22px;
103
+ height: 22px;
104
+ }
105
+ }
106
+
107
+ &-title {
108
+ font-size: $quickenter-item-title-font-size;
109
+ color: $quickenter-item-title-color;
110
+ text-align: center;
111
+ line-height: 1.4;
112
+ // Allow multi-line if text is long, preventing truncation
113
+ white-space: normal;
114
+ word-wrap: break-word;
115
+ width: 72px; // Allow text to be slightly wider than icon
116
+ margin-left: -8px; // Center 72px title over 56px icon
117
+ margin-right: -8px;
118
+ }
119
+ }
120
+ }
@@ -0,0 +1,106 @@
1
+ @charset "UTF-8";
2
+ /* #ifdef harmony */
3
+ /* #endif */
4
+ /* #ifndef harmony */
5
+ /* #endif */
6
+ .nut-quickenter {
7
+ width: 100%;
8
+ /* 限制弹层最大高度,包含安全区 */
9
+ max-height: calc(var(--nutui-quickenter-max-height, 256px) + env(safe-area-inset-top, 0));
10
+ background: var(--nutui-quickenter-bg-color, #f5f5f5);
11
+ border-radius: 0 0 12px 12px;
12
+ overflow: hidden;
13
+ box-sizing: border-box;
14
+ display: flex;
15
+ flex-direction: column;
16
+ box-shadow: var(--nutui-quickenter-box-shadow, 0px 8px 16px rgba(141, 153, 167, 0.2), 0px -0.5px 0px rgba(0, 0, 0, 0.05) inset);
17
+ }
18
+ .nut-quickenter.safe-area-top {
19
+ /* 使用 env fallback,确保旧浏览器返回 0 */
20
+ padding-top: calc(env(safe-area-inset-top, 0) * var(--nutui-safe-area-multiple, 1));
21
+ }
22
+ .nut-quickenter-control {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: space-between;
26
+ padding: 30px 16px 0;
27
+ box-sizing: border-box;
28
+ }
29
+ .nut-quickenter-title {
30
+ flex: 1;
31
+ overflow: hidden;
32
+ text-overflow: ellipsis;
33
+ white-space: nowrap;
34
+ text-align: left;
35
+ color: var(--nutui-quickenter-title-color, var(--nutui-color-title));
36
+ font-size: var(--nutui-quickenter-title-font-size, var(--nutui-font-text));
37
+ }
38
+ .nut-quickenter-close-btn {
39
+ color: var(--nutui-quickenter-close-icon-color, #808080);
40
+ display: flex;
41
+ align-items: center;
42
+ justify-content: center;
43
+ }
44
+ .nut-quickenter-close-btn svg,
45
+ .nut-quickenter-close-btn .nut-icon {
46
+ width: var(--nutui-quickenter-close-icon-size, 12px);
47
+ height: var(--nutui-quickenter-close-icon-size, 12px);
48
+ }
49
+ .nut-quickenter-content {
50
+ flex: 1;
51
+ padding: 10px 28px;
52
+ overflow-y: hidden;
53
+ box-sizing: border-box;
54
+ }
55
+ .nut-quickenter-content-scrollable {
56
+ overflow-y: auto;
57
+ -webkit-overflow-scrolling: touch;
58
+ }
59
+ .nut-quickenter-list {
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ align-items: flex-start;
63
+ width: 100%;
64
+ }
65
+ .nut-quickenter-item {
66
+ display: flex;
67
+ flex-direction: column;
68
+ align-items: center;
69
+ justify-content: flex-start;
70
+ width: 56px;
71
+ padding: 0 0 12px 0;
72
+ box-sizing: border-box;
73
+ cursor: pointer;
74
+ margin-right: calc((100% - 224px) / 3);
75
+ }
76
+ .nut-quickenter-item:nth-child(4n) {
77
+ margin-right: 0;
78
+ }
79
+ .nut-quickenter-item-icon {
80
+ width: 56px;
81
+ height: 56px;
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ border-radius: 50%;
86
+ background: var(--nutui-quickenter-item-icon-bg-color, #ffffff);
87
+ color: var(--nutui-quickenter-item-icon-color, var(--nutui-color-title));
88
+ margin-bottom: 8px;
89
+ flex-shrink: 0;
90
+ }
91
+ .nut-quickenter-item-icon svg,
92
+ .nut-quickenter-item-icon .nut-icon {
93
+ width: 22px;
94
+ height: 22px;
95
+ }
96
+ .nut-quickenter-item-title {
97
+ font-size: var(--nutui-quickenter-item-title-font-size, var(--nutui-font-text-small));
98
+ color: var(--nutui-quickenter-item-title-color, var(--nutui-color-title));
99
+ text-align: center;
100
+ line-height: 1.4;
101
+ white-space: normal;
102
+ word-wrap: break-word;
103
+ width: 72px;
104
+ margin-left: -8px;
105
+ margin-right: -8px;
106
+ }
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Radio } from "./radio";
3
2
  import { RadioGroup } from "../radiogroup/radiogroup";
4
3
  var InnerRadio = Radio;
@@ -4,9 +4,10 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
4
4
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
5
5
  import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
6
6
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
7
- import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
7
+ import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
8
8
  import classNames from "classnames";
9
9
  import { Text, View } from "@tarojs/components";
10
+ import { useReady, nextTick } from "@tarojs/taro";
10
11
  import { pxTransform } from "../../utils/taro/px-transform";
11
12
  import { useTouch } from "../../hooks/use-touch";
12
13
  import { ComponentDefaults } from "../../utils/typings";
@@ -224,8 +225,8 @@ export var Range = function(props) {
224
225
  onEnd,
225
226
  setInnerValue
226
227
  ]);
227
- var handleClick = useCallback(/*#__PURE__*/ function() {
228
- var _ref = _async_to_generator(function(event) {
228
+ var handleClick = useCallback(function(event) {
229
+ return _async_to_generator(function() {
229
230
  var _event_detail, rect, _event_detail_x, x, delta, total, _event_detail1, _event_detail_y, y, value, _innerValue, left, right, middle;
230
231
  return _ts_generator(this, function(_state) {
231
232
  switch(_state.label){
@@ -280,11 +281,8 @@ export var Range = function(props) {
280
281
  ];
281
282
  }
282
283
  });
283
- });
284
- return function(event) {
285
- return _ref.apply(this, arguments);
286
- };
287
- }(), [
284
+ })();
285
+ }, [
288
286
  innerValue,
289
287
  disabled,
290
288
  isRange,
@@ -293,13 +291,37 @@ export var Range = function(props) {
293
291
  updateValue,
294
292
  vertical
295
293
  ]);
296
- useLayoutEffect(function() {
297
- if (root.current) {
298
- getRectInMultiPlatform(root.current).then(function(rect) {
299
- rootRect.current = rect;
300
- });
301
- }
302
- }, []);
294
+ useReady(function() {
295
+ var getRootRect = function() {
296
+ return _async_to_generator(function() {
297
+ var rect;
298
+ return _ts_generator(this, function(_state) {
299
+ switch(_state.label){
300
+ case 0:
301
+ if (!root.current) return [
302
+ 3,
303
+ 2
304
+ ];
305
+ return [
306
+ 4,
307
+ getRectInMultiPlatform(root.current)
308
+ ];
309
+ case 1:
310
+ rect = _state.sent();
311
+ rootRect.current = rect;
312
+ _state.label = 2;
313
+ case 2:
314
+ return [
315
+ 2
316
+ ];
317
+ }
318
+ });
319
+ })();
320
+ };
321
+ nextTick(function() {
322
+ getRootRect();
323
+ });
324
+ });
303
325
  var onTouchStart = useCallback(function(event) {
304
326
  if (disabled) return;
305
327
  touch.start(event);
@@ -317,8 +339,8 @@ export var Range = function(props) {
317
339
  isRange,
318
340
  touch
319
341
  ]);
320
- var onTouchMove = useCallback(/*#__PURE__*/ function() {
321
- var _ref = _async_to_generator(function(event) {
342
+ var onTouchMove = useCallback(function(event) {
343
+ return _async_to_generator(function() {
322
344
  var handleMove;
323
345
  return _ts_generator(this, function(_state) {
324
346
  // @TODO RN、鸿蒙端垂直滑动时,页面会一同滑动,待解决
@@ -330,8 +352,8 @@ export var Range = function(props) {
330
352
  dragStatusRef.current = 'draging';
331
353
  }
332
354
  touch.move(event);
333
- handleMove = /*#__PURE__*/ function() {
334
- var _ref = _async_to_generator(function() {
355
+ handleMove = function() {
356
+ return _async_to_generator(function() {
335
357
  var delta, total, diff, newValue;
336
358
  return _ts_generator(this, function(_state) {
337
359
  if (!rootRect.current) return [
@@ -357,21 +379,15 @@ export var Range = function(props) {
357
379
  2
358
380
  ];
359
381
  });
360
- });
361
- return function handleMove() {
362
- return _ref.apply(this, arguments);
363
- };
364
- }();
382
+ })();
383
+ };
365
384
  requestAnimationFrame(handleMove);
366
385
  return [
367
386
  2
368
387
  ];
369
388
  });
370
- });
371
- return function(event) {
372
- return _ref.apply(this, arguments);
373
- };
374
- }(), [
389
+ })();
390
+ }, [
375
391
  disabled,
376
392
  isRange,
377
393
  onStart,
@@ -2,9 +2,10 @@ import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
2
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
3
3
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
4
4
  import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
5
- import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
5
+ import React, { useEffect, useRef, useState } from "react";
6
6
  import classNames from "classnames";
7
7
  import { StarFill } from "@nutui/icons-react-taro";
8
+ import { useReady } from "@tarojs/taro";
8
9
  import { Text, View } from "@tarojs/components";
9
10
  import { ComponentDefaults } from "../../utils/typings";
10
11
  import { usePropsValue } from "../../hooks/use-props-value";
@@ -83,7 +84,7 @@ export var Rate = function(props) {
83
84
  return 0;
84
85
  }
85
86
  };
86
- var updateRects = useCallback(function() {
87
+ var updateRects = function() {
87
88
  var _loop = function(index) {
88
89
  var item = refs[index];
89
90
  if (item) {
@@ -93,14 +94,10 @@ export var Rate = function(props) {
93
94
  }
94
95
  };
95
96
  for(var index = 0; index < refs.length; index++)_loop(index);
96
- }, [
97
- refs
98
- ]);
99
- useLayoutEffect(function() {
97
+ };
98
+ useReady(function() {
100
99
  updateRects();
101
- }, [
102
- updateRects
103
- ]);
100
+ });
104
101
  var handleTouchStart = function(e) {
105
102
  if (!touchable || readOnly || disabled) {
106
103
  return;
@@ -39,7 +39,8 @@ export var ResultPage = function(props) {
39
39
  className: cls,
40
40
  style: style
41
41
  }, /*#__PURE__*/ React.createElement(View, {
42
- className: "".concat(classPrefix, "-icon")
42
+ className: "".concat(classPrefix, "-icon"),
43
+ ariaHidden: true
43
44
  }, icon || defaultStatus[status]), typeof title === 'string' && title ? /*#__PURE__*/ React.createElement(View, {
44
45
  className: "".concat(classPrefix, "-title")
45
46
  }, title) : title, typeof description === 'string' && description ? /*#__PURE__*/ React.createElement(Text, {
@@ -60,9 +60,6 @@
60
60
  /* #ifdef dynamic*/
61
61
  pointer-events: none;
62
62
  /* #endif */
63
- /* #ifndef dynamic*/
64
- pointer-events: auto;
65
- /* #endif */
66
63
  }
67
64
  .nut-button::after {
68
65
  border: none;
@@ -1,19 +1,10 @@
1
- import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
- import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
- import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
4
1
  import React from "react";
5
2
  import classNames from "classnames";
6
3
  import { View } from "@tarojs/components";
7
4
  var classPrefix = 'nut-safe-area';
8
5
  export var SafeArea = function(props) {
9
- var className = props.className, style = props.style, position = props.position, rest = _object_without_properties(props, [
10
- "className",
11
- "style",
12
- "position"
13
- ]);
14
- return /*#__PURE__*/ React.createElement(View, _object_spread_props(_object_spread({}, rest), {
15
- className: classNames(classPrefix, "".concat(classPrefix, "-position-").concat(position), className),
16
- style: style
17
- }));
6
+ return /*#__PURE__*/ React.createElement(View, {
7
+ className: classNames(classPrefix, "".concat(classPrefix, "-position-").concat(props.position))
8
+ });
18
9
  };
19
10
  SafeArea.displayName = 'NutSafeArea';
@@ -3,18 +3,12 @@
3
3
  width: 100%;
4
4
 
5
5
  &-position-top {
6
- padding-top: calc(
7
- constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
8
- );
9
6
  padding-top: calc(
10
7
  env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
11
8
  );
12
9
  }
13
10
 
14
11
  &-position-bottom {
15
- padding-bottom: calc(
16
- constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
17
- );
18
12
  padding-bottom: calc(
19
13
  env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
20
14
  );
@@ -7,10 +7,8 @@
7
7
  width: 100%;
8
8
  }
9
9
  .nut-safe-area-position-top {
10
- padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
11
10
  padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
12
11
  }
13
12
  .nut-safe-area-position-bottom {
14
- padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
15
13
  padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
16
14
  }
@@ -7,10 +7,8 @@
7
7
  width: 100%;
8
8
  }
9
9
  .nut-safe-area-position-top {
10
- padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
11
10
  padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
12
11
  }
13
12
  .nut-safe-area-position-bottom {
14
- padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
15
13
  padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
16
14
  }
@@ -3,18 +3,12 @@
3
3
  width: 100%;
4
4
 
5
5
  &-position-top {
6
- padding-top: calc(
7
- constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
8
- );
9
6
  padding-top: calc(
10
7
  env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
11
8
  );
12
9
  }
13
10
 
14
11
  &-position-bottom {
15
- padding-bottom: calc(
16
- constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
17
- );
18
12
  padding-bottom: calc(
19
13
  env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
20
14
  );
@@ -7,10 +7,8 @@
7
7
  width: 100%;
8
8
  }
9
9
  .nut-safe-area-position-top {
10
- padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
11
10
  padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
12
11
  }
13
12
  .nut-safe-area-position-bottom {
14
- padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
15
13
  padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
16
14
  }
@@ -3,18 +3,12 @@
3
3
  width: 100%;
4
4
 
5
5
  &-position-top {
6
- padding-top: calc(
7
- constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
8
- );
9
6
  padding-top: calc(
10
7
  env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
11
8
  );
12
9
  }
13
10
 
14
11
  &-position-bottom {
15
- padding-bottom: calc(
16
- constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
17
- );
18
12
  padding-bottom: calc(
19
13
  env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
20
14
  );
@@ -7,10 +7,8 @@
7
7
  width: 100%;
8
8
  }
9
9
  .nut-safe-area-position-top {
10
- padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
11
10
  padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
12
11
  }
13
12
  .nut-safe-area-position-bottom {
14
- padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
15
13
  padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
16
14
  }