@nutui/nutui-react-taro 3.0.20-beta.0 → 3.0.20-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 (473) hide show
  1. package/CHANGELOG.md +28 -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.d.ts +15 -0
  234. package/dist/cjs/utils/taro/ConfigurableCSSTransition.js +90 -0
  235. package/dist/cjs/utils/taro/get-rect.js +18 -26
  236. package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
  237. package/dist/cjs/utils/taro/get-system-info.js +5 -10
  238. package/dist/cjs/utils/taro/platform.js +5 -5
  239. package/dist/es/hooks/taro/use-custom-event.js +1 -0
  240. package/dist/es/hooks/use-touch.js +1 -1
  241. package/dist/es/locales/base.d.ts +9 -0
  242. package/dist/es/locales/en-US.js +21 -2
  243. package/dist/es/locales/id-ID.js +21 -2
  244. package/dist/es/locales/ja-JP.js +19 -2
  245. package/dist/es/locales/tr-TR.js +21 -2
  246. package/dist/es/locales/zh-CN.js +19 -2
  247. package/dist/es/locales/zh-TW.js +19 -2
  248. package/dist/es/locales/zh-UG.js +21 -2
  249. package/dist/es/packages/actionsheet/style/style.harmony.css +38 -17
  250. package/dist/es/packages/address/address.d.ts +1 -1
  251. package/dist/es/packages/address/style/style.harmony.css +38 -17
  252. package/dist/es/packages/animatingnumbers/countup.js +3 -1
  253. package/dist/es/packages/audio/style/style.harmony.css +0 -3
  254. package/dist/es/packages/avatar/avatar.js +32 -6
  255. package/dist/es/packages/avatarcropper/avatarcropper.js +20 -36
  256. package/dist/es/packages/badge/badge.js +20 -10
  257. package/dist/es/packages/barrage/barrage.js +14 -24
  258. package/dist/es/packages/button/button.d.ts +2 -24
  259. package/dist/es/packages/button/button.js +10 -12
  260. package/dist/es/packages/button/index.d.ts +0 -1
  261. package/dist/es/packages/button/style/button.scss +0 -3
  262. package/dist/es/packages/button/style/style.css +0 -3
  263. package/dist/es/packages/button/style/style.harmony.css +0 -3
  264. package/dist/es/packages/button/style-jmapp/button.scss +0 -3
  265. package/dist/es/packages/button/style-jmapp/style.css +0 -3
  266. package/dist/es/packages/button/style-jrkf/button.scss +0 -3
  267. package/dist/es/packages/button/style-jrkf/style.css +0 -3
  268. package/dist/es/packages/calendar/style/calendar.scss +32 -1
  269. package/dist/es/packages/calendar/style/style.css +21 -1
  270. package/dist/es/packages/calendar/style/style.harmony.css +59 -18
  271. package/dist/es/packages/calendar/style-jmapp/calendar.scss +32 -1
  272. package/dist/es/packages/calendar/style-jmapp/style.css +21 -1
  273. package/dist/es/packages/calendar/style-jrkf/calendar.scss +32 -1
  274. package/dist/es/packages/calendar/style-jrkf/style.css +21 -1
  275. package/dist/es/packages/calendarcard/calendarcard.js +31 -9
  276. package/dist/es/packages/calendarcard/icon.js +13 -24
  277. package/dist/es/packages/calendarcard/style/calendarcard.scss +19 -0
  278. package/dist/es/packages/calendarcard/style/style.css +13 -0
  279. package/dist/es/packages/calendarcard/style/style.harmony.css +13 -0
  280. package/dist/es/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
  281. package/dist/es/packages/calendarcard/style-jmapp/style.css +13 -0
  282. package/dist/es/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
  283. package/dist/es/packages/calendarcard/style-jrkf/style.css +13 -0
  284. package/dist/es/packages/card/style/style.harmony.css +1 -1
  285. package/dist/es/packages/cascader/cascader.js +12 -21
  286. package/dist/es/packages/cascader/style/style.harmony.css +38 -17
  287. package/dist/es/packages/collapseitem/collapseitem.js +4 -7
  288. package/dist/es/packages/configprovider/types.d.ts +1 -1
  289. package/dist/es/packages/countdown/countdown.js +1 -2
  290. package/dist/es/packages/datepicker/style/style.harmony.css +39 -18
  291. package/dist/es/packages/dialog/dialog.js +33 -28
  292. package/dist/es/packages/dialog/style/dialog.scss +1 -1
  293. package/dist/es/packages/dialog/style/style.css +1 -1
  294. package/dist/es/packages/dialog/style/style.harmony.css +1 -4
  295. package/dist/es/packages/dialog/style-jmapp/dialog.scss +1 -1
  296. package/dist/es/packages/dialog/style-jmapp/style.css +1 -1
  297. package/dist/es/packages/dialog/style-jrkf/dialog.scss +1 -1
  298. package/dist/es/packages/dialog/style-jrkf/style.css +1 -1
  299. package/dist/es/packages/divider/divider.js +1 -1
  300. package/dist/es/packages/drag/drag.js +4 -7
  301. package/dist/es/packages/elevator/elevator.js +4 -7
  302. package/dist/es/packages/ellipsis/ellipsis.js +17 -30
  303. package/dist/es/packages/empty/empty.d.ts +4 -4
  304. package/dist/es/packages/empty/style/style.harmony.css +0 -3
  305. package/dist/es/packages/form/index.js +0 -1
  306. package/dist/es/packages/form/style/style.harmony.css +0 -5
  307. package/dist/es/packages/form/useform.js +46 -53
  308. package/dist/es/packages/formitem/style/formitem.scss +4 -4
  309. package/dist/es/packages/formitem/style/style.css +0 -5
  310. package/dist/es/packages/formitem/style/style.harmony.css +0 -5
  311. package/dist/es/packages/formitem/style-jmapp/formitem.scss +4 -4
  312. package/dist/es/packages/formitem/style-jmapp/style.css +0 -5
  313. package/dist/es/packages/formitem/style-jrkf/formitem.scss +4 -4
  314. package/dist/es/packages/formitem/style-jrkf/style.css +0 -5
  315. package/dist/es/packages/image/image.js +11 -3
  316. package/dist/es/packages/imagepreview/style/style.harmony.css +38 -17
  317. package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
  318. package/dist/es/packages/input/input.js +10 -3
  319. package/dist/es/packages/inputnumber/inputnumber.js +17 -29
  320. package/dist/es/packages/lottie/lottiemp.js +12 -20
  321. package/dist/es/packages/lottie/types.js +1 -1
  322. package/dist/es/packages/menuitem/menuitem.js +24 -22
  323. package/dist/es/packages/noticebar/noticebar.js +74 -70
  324. package/dist/es/packages/numberkeyboard/style/style.css +1 -1
  325. package/dist/es/packages/numberkeyboard/style/style.harmony.css +39 -18
  326. package/dist/es/packages/nutui.react.build.d.ts +3 -1
  327. package/dist/es/packages/nutui.react.build.js +3 -1
  328. package/dist/es/packages/overlay/overlay.js +3 -3
  329. package/dist/es/packages/picker/style/style.css +1 -1
  330. package/dist/es/packages/picker/style/style.harmony.css +39 -18
  331. package/dist/es/packages/pickerview/pickerroller.js +4 -7
  332. package/dist/es/packages/pickerview/pickerview.js +1 -2
  333. package/dist/es/packages/popover/popover.js +75 -77
  334. package/dist/es/packages/popover/style/style.harmony.css +38 -17
  335. package/dist/es/packages/popup/popup.js +193 -114
  336. package/dist/es/packages/popup/style/popup.scss +22 -1
  337. package/dist/es/packages/popup/style/style.css +38 -17
  338. package/dist/es/packages/popup/style/style.harmony.css +38 -17
  339. package/dist/es/packages/popup/style-jmapp/popup.scss +22 -1
  340. package/dist/es/packages/popup/style-jmapp/style.css +22 -1
  341. package/dist/es/packages/popup/style-jrkf/popup.scss +22 -1
  342. package/dist/es/packages/popup/style-jrkf/style.css +22 -1
  343. package/dist/es/packages/price/price.js +53 -14
  344. package/dist/es/packages/progress/progress.js +2 -4
  345. package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
  346. package/dist/es/packages/quickenter/index.d.ts +3 -0
  347. package/dist/es/packages/quickenter/index.js +2 -0
  348. package/dist/es/packages/quickenter/quickenter.d.ts +4 -0
  349. package/dist/es/packages/quickenter/quickenter.js +141 -0
  350. package/dist/es/packages/quickenter/style/css.js +2 -0
  351. package/dist/es/packages/quickenter/style/index.js +2 -0
  352. package/dist/es/packages/quickenter/style/quickenter.scss +120 -0
  353. package/dist/es/packages/quickenter/style/style.css +106 -0
  354. package/dist/es/packages/quickenter/style/style.harmony.css +506 -0
  355. package/dist/es/packages/quickenter/style-jmapp/css.js +2 -0
  356. package/dist/es/packages/quickenter/style-jmapp/index.js +2 -0
  357. package/dist/es/packages/quickenter/style-jmapp/quickenter.scss +120 -0
  358. package/dist/es/packages/quickenter/style-jmapp/style.css +106 -0
  359. package/dist/es/packages/quickenter/style-jrkf/css.js +2 -0
  360. package/dist/es/packages/quickenter/style-jrkf/index.js +2 -0
  361. package/dist/es/packages/quickenter/style-jrkf/quickenter.scss +120 -0
  362. package/dist/es/packages/quickenter/style-jrkf/style.css +106 -0
  363. package/dist/es/packages/radio/index.js +0 -1
  364. package/dist/es/packages/range/range.js +45 -29
  365. package/dist/es/packages/rate/rate.js +6 -9
  366. package/dist/es/packages/resultpage/resultpage.js +2 -1
  367. package/dist/es/packages/resultpage/style/style.harmony.css +0 -3
  368. package/dist/es/packages/safearea/safearea.js +3 -12
  369. package/dist/es/packages/safearea/style/safearea.scss +0 -6
  370. package/dist/es/packages/safearea/style/style.css +0 -2
  371. package/dist/es/packages/safearea/style/style.harmony.css +0 -2
  372. package/dist/es/packages/safearea/style-jmapp/safearea.scss +0 -6
  373. package/dist/es/packages/safearea/style-jmapp/style.css +0 -2
  374. package/dist/es/packages/safearea/style-jrkf/safearea.scss +0 -6
  375. package/dist/es/packages/safearea/style-jrkf/style.css +0 -2
  376. package/dist/es/packages/searchbar/searchbar.js +23 -9
  377. package/dist/es/packages/shortpassword/style/style.harmony.css +38 -17
  378. package/dist/es/packages/step/step.js +3 -8
  379. package/dist/es/packages/step/style/step.scss +0 -2
  380. package/dist/es/packages/step/style/style.css +0 -2
  381. package/dist/es/packages/step/style/style.harmony.css +0 -2
  382. package/dist/es/packages/step/style-jmapp/step.scss +0 -2
  383. package/dist/es/packages/step/style-jmapp/style.css +0 -2
  384. package/dist/es/packages/step/style-jrkf/step.scss +0 -2
  385. package/dist/es/packages/step/style-jrkf/style.css +0 -2
  386. package/dist/es/packages/steps/style/steps.scss +10 -3
  387. package/dist/es/packages/steps/style/style.css +13 -7
  388. package/dist/es/packages/steps/style/style.harmony.css +13 -9
  389. package/dist/es/packages/steps/style-jmapp/steps.scss +10 -3
  390. package/dist/es/packages/steps/style-jmapp/style.css +9 -3
  391. package/dist/es/packages/steps/style-jrkf/steps.scss +10 -3
  392. package/dist/es/packages/steps/style-jrkf/style.css +9 -3
  393. package/dist/es/packages/sticky/sticky.js +4 -7
  394. package/dist/es/packages/swipe/swipe.js +85 -123
  395. package/dist/es/packages/swiper/index.js +0 -1
  396. package/dist/es/packages/switch/switch.js +4 -7
  397. package/dist/es/packages/table/style/style.css +1 -1
  398. package/dist/es/packages/table/style/style.harmony.css +1 -1
  399. package/dist/es/packages/table/style/table.scss +1 -1
  400. package/dist/es/packages/table/style-jmapp/style.css +1 -1
  401. package/dist/es/packages/table/style-jmapp/table.scss +1 -1
  402. package/dist/es/packages/table/style-jrkf/style.css +1 -1
  403. package/dist/es/packages/table/style-jrkf/table.scss +1 -1
  404. package/dist/es/packages/tabs/tabs.js +12 -5
  405. package/dist/es/packages/tag/style/style.css +1 -1
  406. package/dist/es/packages/tag/style/style.harmony.css +1 -1
  407. package/dist/es/packages/tag/style/tag.scss +1 -1
  408. package/dist/es/packages/tag/style-jmapp/style.css +1 -1
  409. package/dist/es/packages/tag/style-jmapp/tag.scss +1 -1
  410. package/dist/es/packages/tag/style-jrkf/style.css +1 -1
  411. package/dist/es/packages/tag/style-jrkf/tag.scss +1 -1
  412. package/dist/es/packages/timeselect/style/style.harmony.css +38 -17
  413. package/dist/es/packages/toast/style/style.css +2 -4
  414. package/dist/es/packages/toast/style/style.harmony.css +2 -4
  415. package/dist/es/packages/toast/style/toast.scss +2 -4
  416. package/dist/es/packages/toast/style-jmapp/style.css +2 -4
  417. package/dist/es/packages/toast/style-jmapp/toast.scss +2 -4
  418. package/dist/es/packages/toast/style-jrkf/style.css +2 -4
  419. package/dist/es/packages/toast/style-jrkf/toast.scss +2 -4
  420. package/dist/es/packages/toast/toast.js +1 -1
  421. package/dist/es/packages/tour/style/style.harmony.css +38 -17
  422. package/dist/es/packages/uploader/uploader.js +38 -51
  423. package/dist/es/packages/watermark/watermark.js +4 -8
  424. package/dist/es/types/index.d.ts +3 -0
  425. package/dist/es/types/index.js +3 -0
  426. package/dist/es/types/spec/address/base.js +1 -1
  427. package/dist/es/types/spec/button/base.d.ts +2 -1
  428. package/dist/es/types/spec/button/taro.d.ts +5 -1
  429. package/dist/es/types/spec/calendarcard/base.d.ts +2 -0
  430. package/dist/es/types/spec/dialog/base.d.ts +3 -8
  431. package/dist/es/types/spec/dialog/h5.d.ts +2 -0
  432. package/dist/es/types/spec/dialog/taro.d.ts +2 -0
  433. package/dist/es/types/spec/overlay/base.d.ts +1 -0
  434. package/dist/es/types/spec/popup/base.d.ts +4 -5
  435. package/dist/es/types/spec/price/base.d.ts +4 -0
  436. package/dist/es/types/spec/quickenter/base.d.ts +45 -0
  437. package/dist/es/types/spec/quickenter/base.js +1 -0
  438. package/dist/es/types/spec/quickenter/h5.d.ts +5 -0
  439. package/dist/es/types/spec/quickenter/h5.js +1 -0
  440. package/dist/es/types/spec/quickenter/taro.d.ts +5 -0
  441. package/dist/es/types/spec/quickenter/taro.js +1 -0
  442. package/dist/es/utils/event-mocker.js +4 -12
  443. package/dist/es/utils/render.js +2 -6
  444. package/dist/es/utils/should-render-price-raw.d.ts +2 -0
  445. package/dist/es/utils/should-render-price-raw.js +30 -0
  446. package/dist/es/utils/taro/ConfigurableCSSTransition.d.ts +15 -0
  447. package/dist/es/utils/taro/ConfigurableCSSTransition.js +79 -0
  448. package/dist/es/utils/taro/get-rect.js +14 -22
  449. package/dist/es/utils/taro/get-system-info.d.ts +0 -5
  450. package/dist/es/utils/taro/get-system-info.js +8 -7
  451. package/dist/nutui.react.umd.js +8698 -7529
  452. package/dist/style-jmapp.css +1 -1
  453. package/dist/style-jmapp.scss +47 -46
  454. package/dist/style-jrkf.css +1 -1
  455. package/dist/style-jrkf.scss +31 -30
  456. package/dist/style.css +1 -1
  457. package/dist/style.scss +34 -33
  458. package/dist/styles/jd-font.scss +2 -2
  459. package/dist/styles/theme-dark.scss +1 -2
  460. package/dist/styles/themes/daojia.css +1 -1
  461. package/dist/styles/themes/dark-daojia.css +1 -1
  462. package/dist/styles/themes/dark.css +1 -1
  463. package/dist/styles/themes/default.css +1 -1
  464. package/dist/styles/variables-daojia.scss +41 -0
  465. package/dist/styles/variables-jmapp.scss +41 -0
  466. package/dist/styles/variables-jrkf.scss +41 -0
  467. package/dist/styles/variables.scss +49 -4
  468. package/package.json +1 -1
  469. package/dist/cjs/locales/vi-VN.d.ts +0 -3
  470. package/dist/cjs/locales/vi-VN.js +0 -170
  471. package/dist/es/locales/vi-VN.d.ts +0 -3
  472. package/dist/es/locales/vi-VN.js +0 -160
  473. package/postinstall.js +0 -9
@@ -71,7 +71,7 @@
71
71
  align-items: center;
72
72
  justify-content: center;
73
73
  border-bottom: var(--nutui-popup-title-border-bottom, 0);
74
- padding: var(--nutui-popup-title-padding, 16px);
74
+ padding: var(--nutui-popup-title-padding, 11px);
75
75
  position: relative;
76
76
  }
77
77
  .nut-popup-title-wrapper {
@@ -84,7 +84,6 @@
84
84
  color: var(--nutui-color-title, #1a1a1a);
85
85
  font-weight: var(--nutui-font-weight-bold, 600);
86
86
  font-size: var(--nutui-popup-title-font-size, var(--nutui-font-size-xl, 18px));
87
- line-height: var(--nutui-popup-title-font-size, var(--nutui-font-size-xl, 18px));
88
87
  }
89
88
  .nut-popup-title-description {
90
89
  color: var(--nutui-color-text, #505259);
@@ -96,13 +95,13 @@
96
95
  }
97
96
  .nut-popup-title-left {
98
97
  position: absolute;
99
- top: var(--nutui-popup-title-padding, 16px);
100
- left: var(--nutui-popup-title-padding, 16px);
98
+ top: var(--nutui-popup-title-padding, 11px);
99
+ left: var(--nutui-popup-title-padding, 11px);
101
100
  }
102
101
  .nut-popup-title-right {
103
102
  position: absolute;
104
- top: var(--nutui-popup-title-padding, 16px);
105
- right: var(--nutui-popup-title-padding, 16px);
103
+ top: var(--nutui-popup-title-padding, 11px);
104
+ right: var(--nutui-popup-title-padding, 11px);
106
105
  z-index: 1;
107
106
  width: var(--nutui-popup-icon-size, 20px);
108
107
  height: var(--nutui-popup-icon-size, 20px);
@@ -113,20 +112,22 @@
113
112
  opacity: 0.7;
114
113
  }
115
114
  .nut-popup-title-right-top-left {
116
- top: var(--nutui-popup-title-padding, 16px);
117
- left: var(--nutui-popup-title-padding, 16px);
115
+ top: var(--nutui-popup-title-padding, 11px);
116
+ left: var(--nutui-popup-title-padding, 11px);
118
117
  }
119
118
  .nut-popup-title-right-bottom-left {
120
- bottom: var(--nutui-popup-title-padding, 16px);
121
- left: var(--nutui-popup-title-padding, 16px);
119
+ bottom: var(--nutui-popup-title-padding, 11px);
120
+ left: var(--nutui-popup-title-padding, 11px);
122
121
  }
123
122
  .nut-popup-title-right-bottom-right {
124
- right: var(--nutui-popup-title-padding, 16px);
125
- bottom: var(--nutui-popup-title-padding, 16px);
123
+ right: var(--nutui-popup-title-padding, 11px);
124
+ bottom: var(--nutui-popup-title-padding, 11px);
126
125
  }
127
126
  .nut-popup-center {
128
127
  top: 50%;
129
128
  left: 50%;
129
+ right: auto;
130
+ bottom: auto;
130
131
  min-height: 10%;
131
132
  max-width: 295px;
132
133
  transform: translate(-50%, -50%);
@@ -137,6 +138,8 @@
137
138
  .nut-popup-bottom {
138
139
  bottom: 0;
139
140
  left: 0;
141
+ right: auto;
142
+ top: auto;
140
143
  width: 100%;
141
144
  }
142
145
  .nut-popup-bottom.nut-popup-round {
@@ -148,6 +151,8 @@
148
151
  .nut-popup-right {
149
152
  top: 0;
150
153
  right: 0;
154
+ left: auto;
155
+ bottom: auto;
151
156
  width: 100px;
152
157
  height: 100%;
153
158
  }
@@ -157,6 +162,8 @@
157
162
  .nut-popup-left {
158
163
  top: 0;
159
164
  left: 0;
165
+ right: auto;
166
+ bottom: auto;
160
167
  width: 100px;
161
168
  height: 100%;
162
169
  }
@@ -166,6 +173,8 @@
166
173
  .nut-popup-top {
167
174
  top: 0;
168
175
  left: 0;
176
+ right: auto;
177
+ bottom: auto;
169
178
  width: 100%;
170
179
  }
171
180
  .nut-popup-top.nut-popup-round {
@@ -242,6 +251,9 @@
242
251
  }
243
252
  }
244
253
  @keyframes popup-slide-top-exit {
254
+ from {
255
+ transform: translate3d(0, 0%, 0);
256
+ }
245
257
  to {
246
258
  transform: translate3d(0, -100%, 0);
247
259
  }
@@ -266,6 +278,9 @@
266
278
  }
267
279
  }
268
280
  @keyframes popup-slide-right-exit {
281
+ from {
282
+ transform: translate3d(0%, 0, 0);
283
+ }
269
284
  to {
270
285
  transform: translate3d(100%, 0, 0);
271
286
  }
@@ -290,6 +305,9 @@
290
305
  }
291
306
  }
292
307
  @keyframes slide-bottom-exit {
308
+ from {
309
+ transform: translate3d(0, 0%, 0);
310
+ }
293
311
  to {
294
312
  transform: translate3d(0, 100%, 0);
295
313
  }
@@ -314,6 +332,9 @@
314
332
  }
315
333
  }
316
334
  @keyframes popup-slide-left-exit {
335
+ from {
336
+ transform: translate3d(0%, 0, 0);
337
+ }
317
338
  to {
318
339
  transform: translate3d(-100%, 0, 0);
319
340
  }
@@ -339,27 +360,27 @@
339
360
  [dir=rtl] .nut-popup-title-left,
340
361
  .nut-rtl .nut-popup-title-left {
341
362
  left: auto;
342
- right: var(--nutui-popup-title-padding, 16px);
363
+ right: var(--nutui-popup-title-padding, 11px);
343
364
  }
344
365
  [dir=rtl] .nut-popup-title-right,
345
366
  .nut-rtl .nut-popup-title-right {
346
367
  right: auto;
347
- left: var(--nutui-popup-title-padding, 16px);
368
+ left: var(--nutui-popup-title-padding, 11px);
348
369
  }
349
370
  [dir=rtl] .nut-popup-title-right-top-left,
350
371
  .nut-rtl .nut-popup-title-right-top-left {
351
372
  left: auto;
352
- right: var(--nutui-popup-title-padding, 16px);
373
+ right: var(--nutui-popup-title-padding, 11px);
353
374
  }
354
375
  [dir=rtl] .nut-popup-title-right-bottom-left,
355
376
  .nut-rtl .nut-popup-title-right-bottom-left {
356
377
  left: auto;
357
- right: var(--nutui-popup-title-padding, 16px);
378
+ right: var(--nutui-popup-title-padding, 11px);
358
379
  }
359
380
  [dir=rtl] .nut-popup-title-right-bottom-right,
360
381
  .nut-rtl .nut-popup-title-right-bottom-right {
361
382
  right: auto;
362
- left: var(--nutui-popup-title-padding, 16px);
383
+ left: var(--nutui-popup-title-padding, 11px);
363
384
  }
364
385
  [dir=rtl] .nut-popup-title .nut-icon-ArrowLeft,
365
386
  .nut-rtl .nut-popup-title .nut-icon-ArrowLeft {
@@ -26,7 +26,6 @@
26
26
  color: $color-title;
27
27
  font-weight: $font-weight-bold;
28
28
  font-size: $popup-title-font-size;
29
- line-height: $popup-title-font-size;
30
29
  }
31
30
 
32
31
  &-description {
@@ -79,6 +78,8 @@
79
78
  &-center {
80
79
  top: 50%;
81
80
  left: 50%;
81
+ right: auto;
82
+ bottom: auto;
82
83
  min-height: 10%;
83
84
  max-width: 295px;
84
85
  transform: translate(-50%, -50%);
@@ -91,6 +92,8 @@
91
92
  &-bottom {
92
93
  bottom: 0;
93
94
  left: 0;
95
+ right: auto;
96
+ top: auto;
94
97
  width: 100%;
95
98
 
96
99
  &.nut-popup-round {
@@ -105,6 +108,8 @@
105
108
  &-right {
106
109
  top: 0;
107
110
  right: 0;
111
+ left: auto;
112
+ bottom: auto;
108
113
  width: 100px;
109
114
  height: 100%;
110
115
 
@@ -116,6 +121,8 @@
116
121
  &-left {
117
122
  top: 0;
118
123
  left: 0;
124
+ right: auto;
125
+ bottom: auto;
119
126
  width: 100px;
120
127
  height: 100%;
121
128
 
@@ -127,6 +134,8 @@
127
134
  &-top {
128
135
  top: 0;
129
136
  left: 0;
137
+ right: auto;
138
+ bottom: auto;
130
139
  width: 100%;
131
140
 
132
141
  &.nut-popup-round {
@@ -210,6 +219,9 @@
210
219
  }
211
220
 
212
221
  @keyframes popup-slide-top-exit {
222
+ from {
223
+ transform: translate3d(0, 0%, 0);
224
+ }
213
225
  to {
214
226
  transform: translate3d(0, -100%, 0);
215
227
  }
@@ -240,6 +252,9 @@
240
252
  }
241
253
 
242
254
  @keyframes popup-slide-right-exit {
255
+ from {
256
+ transform: translate3d(0%, 0, 0);
257
+ }
243
258
  to {
244
259
  transform: translate3d(100%, 0, 0);
245
260
  }
@@ -270,6 +285,9 @@
270
285
  }
271
286
 
272
287
  @keyframes slide-bottom-exit {
288
+ from {
289
+ transform: translate3d(0, 0%, 0);
290
+ }
273
291
  to {
274
292
  transform: translate3d(0, 100%, 0);
275
293
  }
@@ -300,6 +318,9 @@
300
318
  }
301
319
 
302
320
  @keyframes popup-slide-left-exit {
321
+ from {
322
+ transform: translate3d(0%, 0, 0);
323
+ }
303
324
  to {
304
325
  transform: translate3d(-100%, 0, 0);
305
326
  }
@@ -30,7 +30,6 @@
30
30
  color: var(--nutui-color-title);
31
31
  font-weight: var(--nutui-font-weight-bold);
32
32
  font-size: var(--nutui-popup-title-font-size, var(--nutui-font-h1));
33
- line-height: var(--nutui-popup-title-font-size, var(--nutui-font-h1));
34
33
  }
35
34
  .nut-popup-title-description {
36
35
  color: var(--nutui-color-text);
@@ -73,6 +72,8 @@
73
72
  .nut-popup-center {
74
73
  top: 50%;
75
74
  left: 50%;
75
+ right: auto;
76
+ bottom: auto;
76
77
  min-height: 10%;
77
78
  max-width: 295px;
78
79
  transform: translate(-50%, -50%);
@@ -83,6 +84,8 @@
83
84
  .nut-popup-bottom {
84
85
  bottom: 0;
85
86
  left: 0;
87
+ right: auto;
88
+ top: auto;
86
89
  width: 100%;
87
90
  }
88
91
  .nut-popup-bottom.nut-popup-round {
@@ -94,6 +97,8 @@
94
97
  .nut-popup-right {
95
98
  top: 0;
96
99
  right: 0;
100
+ left: auto;
101
+ bottom: auto;
97
102
  width: 100px;
98
103
  height: 100%;
99
104
  }
@@ -103,6 +108,8 @@
103
108
  .nut-popup-left {
104
109
  top: 0;
105
110
  left: 0;
111
+ right: auto;
112
+ bottom: auto;
106
113
  width: 100px;
107
114
  height: 100%;
108
115
  }
@@ -112,6 +119,8 @@
112
119
  .nut-popup-top {
113
120
  top: 0;
114
121
  left: 0;
122
+ right: auto;
123
+ bottom: auto;
115
124
  width: 100%;
116
125
  }
117
126
  .nut-popup-top.nut-popup-round {
@@ -188,6 +197,9 @@
188
197
  }
189
198
  }
190
199
  @keyframes popup-slide-top-exit {
200
+ from {
201
+ transform: translate3d(0, 0%, 0);
202
+ }
191
203
  to {
192
204
  transform: translate3d(0, -100%, 0);
193
205
  }
@@ -212,6 +224,9 @@
212
224
  }
213
225
  }
214
226
  @keyframes popup-slide-right-exit {
227
+ from {
228
+ transform: translate3d(0%, 0, 0);
229
+ }
215
230
  to {
216
231
  transform: translate3d(100%, 0, 0);
217
232
  }
@@ -236,6 +251,9 @@
236
251
  }
237
252
  }
238
253
  @keyframes slide-bottom-exit {
254
+ from {
255
+ transform: translate3d(0, 0%, 0);
256
+ }
239
257
  to {
240
258
  transform: translate3d(0, 100%, 0);
241
259
  }
@@ -260,6 +278,9 @@
260
278
  }
261
279
  }
262
280
  @keyframes popup-slide-left-exit {
281
+ from {
282
+ transform: translate3d(0%, 0, 0);
283
+ }
263
284
  to {
264
285
  transform: translate3d(-100%, 0, 0);
265
286
  }
@@ -26,7 +26,6 @@
26
26
  color: $color-title;
27
27
  font-weight: $font-weight-bold;
28
28
  font-size: $popup-title-font-size;
29
- line-height: $popup-title-font-size;
30
29
  }
31
30
 
32
31
  &-description {
@@ -79,6 +78,8 @@
79
78
  &-center {
80
79
  top: 50%;
81
80
  left: 50%;
81
+ right: auto;
82
+ bottom: auto;
82
83
  min-height: 10%;
83
84
  max-width: 295px;
84
85
  transform: translate(-50%, -50%);
@@ -91,6 +92,8 @@
91
92
  &-bottom {
92
93
  bottom: 0;
93
94
  left: 0;
95
+ right: auto;
96
+ top: auto;
94
97
  width: 100%;
95
98
 
96
99
  &.nut-popup-round {
@@ -105,6 +108,8 @@
105
108
  &-right {
106
109
  top: 0;
107
110
  right: 0;
111
+ left: auto;
112
+ bottom: auto;
108
113
  width: 100px;
109
114
  height: 100%;
110
115
 
@@ -116,6 +121,8 @@
116
121
  &-left {
117
122
  top: 0;
118
123
  left: 0;
124
+ right: auto;
125
+ bottom: auto;
119
126
  width: 100px;
120
127
  height: 100%;
121
128
 
@@ -127,6 +134,8 @@
127
134
  &-top {
128
135
  top: 0;
129
136
  left: 0;
137
+ right: auto;
138
+ bottom: auto;
130
139
  width: 100%;
131
140
 
132
141
  &.nut-popup-round {
@@ -210,6 +219,9 @@
210
219
  }
211
220
 
212
221
  @keyframes popup-slide-top-exit {
222
+ from {
223
+ transform: translate3d(0, 0%, 0);
224
+ }
213
225
  to {
214
226
  transform: translate3d(0, -100%, 0);
215
227
  }
@@ -240,6 +252,9 @@
240
252
  }
241
253
 
242
254
  @keyframes popup-slide-right-exit {
255
+ from {
256
+ transform: translate3d(0%, 0, 0);
257
+ }
243
258
  to {
244
259
  transform: translate3d(100%, 0, 0);
245
260
  }
@@ -270,6 +285,9 @@
270
285
  }
271
286
 
272
287
  @keyframes slide-bottom-exit {
288
+ from {
289
+ transform: translate3d(0, 0%, 0);
290
+ }
273
291
  to {
274
292
  transform: translate3d(0, 100%, 0);
275
293
  }
@@ -300,6 +318,9 @@
300
318
  }
301
319
 
302
320
  @keyframes popup-slide-left-exit {
321
+ from {
322
+ transform: translate3d(0%, 0, 0);
323
+ }
303
324
  to {
304
325
  transform: translate3d(-100%, 0, 0);
305
326
  }
@@ -30,7 +30,6 @@
30
30
  color: var(--nutui-color-title);
31
31
  font-weight: var(--nutui-font-weight-bold);
32
32
  font-size: var(--nutui-popup-title-font-size, var(--nutui-font-h1));
33
- line-height: var(--nutui-popup-title-font-size, var(--nutui-font-h1));
34
33
  }
35
34
  .nut-popup-title-description {
36
35
  color: var(--nutui-color-text);
@@ -73,6 +72,8 @@
73
72
  .nut-popup-center {
74
73
  top: 50%;
75
74
  left: 50%;
75
+ right: auto;
76
+ bottom: auto;
76
77
  min-height: 10%;
77
78
  max-width: 295px;
78
79
  transform: translate(-50%, -50%);
@@ -83,6 +84,8 @@
83
84
  .nut-popup-bottom {
84
85
  bottom: 0;
85
86
  left: 0;
87
+ right: auto;
88
+ top: auto;
86
89
  width: 100%;
87
90
  }
88
91
  .nut-popup-bottom.nut-popup-round {
@@ -94,6 +97,8 @@
94
97
  .nut-popup-right {
95
98
  top: 0;
96
99
  right: 0;
100
+ left: auto;
101
+ bottom: auto;
97
102
  width: 100px;
98
103
  height: 100%;
99
104
  }
@@ -103,6 +108,8 @@
103
108
  .nut-popup-left {
104
109
  top: 0;
105
110
  left: 0;
111
+ right: auto;
112
+ bottom: auto;
106
113
  width: 100px;
107
114
  height: 100%;
108
115
  }
@@ -112,6 +119,8 @@
112
119
  .nut-popup-top {
113
120
  top: 0;
114
121
  left: 0;
122
+ right: auto;
123
+ bottom: auto;
115
124
  width: 100%;
116
125
  }
117
126
  .nut-popup-top.nut-popup-round {
@@ -188,6 +197,9 @@
188
197
  }
189
198
  }
190
199
  @keyframes popup-slide-top-exit {
200
+ from {
201
+ transform: translate3d(0, 0%, 0);
202
+ }
191
203
  to {
192
204
  transform: translate3d(0, -100%, 0);
193
205
  }
@@ -212,6 +224,9 @@
212
224
  }
213
225
  }
214
226
  @keyframes popup-slide-right-exit {
227
+ from {
228
+ transform: translate3d(0%, 0, 0);
229
+ }
215
230
  to {
216
231
  transform: translate3d(100%, 0, 0);
217
232
  }
@@ -236,6 +251,9 @@
236
251
  }
237
252
  }
238
253
  @keyframes slide-bottom-exit {
254
+ from {
255
+ transform: translate3d(0, 0%, 0);
256
+ }
239
257
  to {
240
258
  transform: translate3d(0, 100%, 0);
241
259
  }
@@ -260,6 +278,9 @@
260
278
  }
261
279
  }
262
280
  @keyframes popup-slide-left-exit {
281
+ from {
282
+ transform: translate3d(0%, 0, 0);
283
+ }
263
284
  to {
264
285
  transform: translate3d(-100%, 0, 0);
265
286
  }
@@ -20,6 +20,7 @@ var _typings = require("../../utils/typings");
20
20
  var _index = require("../configprovider/index");
21
21
  var _types = require("../../types");
22
22
  var _platform = require("../../utils/taro/platform");
23
+ var _shouldrenderpriceraw = require("../../utils/should-render-price-raw");
23
24
  var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
24
25
  color: 'primary',
25
26
  price: 0,
@@ -28,16 +29,25 @@ var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typing
28
29
  thousands: false,
29
30
  position: 'before',
30
31
  size: 'normal',
31
- line: false
32
+ line: false,
33
+ raw: false
32
34
  });
33
35
  var Price = function Price(props) {
34
- var _$_object_spread = (0, _object_spread._)({}, defaultProps, props), color = _$_object_spread.color, originalPrice = _$_object_spread.price, symbol = _$_object_spread.symbol, digits = _$_object_spread.digits, thousands = _$_object_spread.thousands, position = _$_object_spread.position, size = _$_object_spread.size, line = _$_object_spread.line, className = _$_object_spread.className, style = _$_object_spread.style;
36
+ var _$_object_spread = (0, _object_spread._)({}, defaultProps, props), color = _$_object_spread.color, originalPrice = _$_object_spread.price, symbol = _$_object_spread.symbol, digits = _$_object_spread.digits, thousands = _$_object_spread.thousands, position = _$_object_spread.position, size = _$_object_spread.size, line = _$_object_spread.line, raw = _$_object_spread.raw, className = _$_object_spread.className, style = _$_object_spread.style;
35
37
  var classPrefix = 'nut-price';
36
38
  var rtl = (0, _index.useRtl)();
39
+ var isRenderPriceRaw = (0, _react.useMemo)(function() {
40
+ return typeof originalPrice === 'string' && (0, _shouldrenderpriceraw.shouldRenderPriceAsRaw)(originalPrice) || raw && typeof originalPrice === 'string' && (0, _shouldrenderpriceraw.hasNonPriceChars)(originalPrice);
41
+ }, [
42
+ originalPrice,
43
+ raw
44
+ ]);
37
45
  var price = (0, _react.useMemo)(function() {
46
+ if (isRenderPriceRaw) return '';
38
47
  return originalPrice.toString().replace(/[^\d.]/g, '');
39
48
  }, [
40
- originalPrice
49
+ originalPrice,
50
+ isRenderPriceRaw
41
51
  ]);
42
52
  var isCustomPriceColor = (0, _react.useMemo)(function() {
43
53
  var specificPriceColor = Object.values(_types.PriceColorEnum);
@@ -79,7 +89,7 @@ var Price = function Price(props) {
79
89
  return num;
80
90
  };
81
91
  var formatDecimal = function formatDecimal(decimalNum) {
82
- if (Number(decimalNum) === 0) {
92
+ if (Number(decimalNum) === 0 && !checkPoint(decimalNum)) {
83
93
  decimalNum = 0;
84
94
  }
85
95
  if (checkPoint(decimalNum)) {
@@ -103,27 +113,56 @@ var Price = function Price(props) {
103
113
  "".concat(classPrefix, "-symbol-").concat(size),
104
114
  (_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-line"), line), (0, _define_property._)(_obj, "".concat(classPrefix, "-rtl"), rtl), _obj)
105
115
  ]),
106
- style: priceColorStyle
116
+ style: priceColorStyle,
117
+ // @ts-ignore
118
+ ariaHidden: true
107
119
  }, symbol ? replaceSpecialChar(symbol) : '');
108
120
  };
109
121
  var renderInner = function renderInner() {
110
122
  return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, symbol && position === 'before' ? renderSymbol() : null, /*#__PURE__*/ _react.default.createElement(_components.Text, {
111
123
  className: "".concat(classPrefix, "-integer ").concat(classPrefix, "-integer-").concat(size, " ").concat(line ? "".concat(classPrefix, "-line") : ''),
112
- style: priceColorStyle
124
+ style: priceColorStyle,
125
+ // @ts-ignore
126
+ ariaHidden: true
113
127
  }, formatThousands(price)), digits !== 0 ? /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, checkPoint(price) || digits ? /*#__PURE__*/ _react.default.createElement(_components.Text, {
114
128
  className: "".concat(classPrefix, "-decimal ").concat(classPrefix, "-decimal-").concat(size, " ").concat(line ? "".concat(classPrefix, "-line") : ''),
115
- style: priceColorStyle
129
+ style: priceColorStyle,
130
+ // @ts-ignore
131
+ ariaHidden: true
116
132
  }, ".") : null, /*#__PURE__*/ _react.default.createElement(_components.Text, {
117
133
  className: "".concat(classPrefix, "-decimal ").concat(classPrefix, "-decimal-").concat(size, " ").concat(line ? "".concat(classPrefix, "-line") : ''),
118
- style: priceColorStyle
134
+ style: priceColorStyle,
135
+ // @ts-ignore
136
+ ariaHidden: true
119
137
  }, formatDecimal(price))) : null, symbol && position === 'after' ? renderSymbol() : null);
120
138
  };
121
- return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, (0, _platform.harmony)() || (0, _platform.td)() ? /*#__PURE__*/ _react.default.createElement(_components.Text, {
139
+ var renderRawContent = function renderRawContent() {
140
+ return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, originalPrice);
141
+ };
142
+ var accessiblePriceText = (0, _react.useMemo)(function() {
143
+ var safeSymbol = symbol ? replaceSpecialChar(symbol) : '';
144
+ var numberText = isRenderPriceRaw ? "".concat(originalPrice) : "".concat(price);
145
+ return position === 'after' ? "".concat(numberText).concat(safeSymbol) : "".concat(safeSymbol).concat(numberText);
146
+ }, [
147
+ symbol,
148
+ price,
149
+ position,
150
+ originalPrice,
151
+ isRenderPriceRaw
152
+ ]);
153
+ return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, (0, _platform.harmony)() || process.env.TARO_ENV === 'dynamic' ? /*#__PURE__*/ _react.default.createElement(_components.Text, {
122
154
  className: "".concat(classPrefix, " ").concat(classPrefix, "-").concat(color, " ").concat(className),
123
- style: style
124
- }, renderInner()) : /*#__PURE__*/ _react.default.createElement(_components.View, {
155
+ style: style,
156
+ // @ts-ignore
157
+ ariaLabel: accessiblePriceText,
158
+ // eslint-disable-next-line jsx-a11y/aria-role
159
+ role: "text"
160
+ }, isRenderPriceRaw ? renderRawContent() : renderInner()) : /*#__PURE__*/ _react.default.createElement(_components.View, {
125
161
  className: "".concat(classPrefix, " ").concat(classPrefix, "-").concat(color, " ").concat(className),
126
- style: style
127
- }, renderInner()));
162
+ style: style,
163
+ ariaLabel: accessiblePriceText,
164
+ // eslint-disable-next-line jsx-a11y/aria-role
165
+ role: "text"
166
+ }, isRenderPriceRaw ? renderRawContent() : renderInner()));
128
167
  };
129
168
  Price.displayName = 'NutPrice';
@@ -33,7 +33,7 @@ var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typing
33
33
  });
34
34
  var Progress = function Progress(props) {
35
35
  var rtl = (0, _index.useRtl)();
36
- var _ref = (0, _object_spread._)({}, defaultProps, props), className = _ref.className, style = _ref.style, percent = _ref.percent, background = _ref.background, color = _ref.color, strokeWidth = _ref.strokeWidth, showText = _ref.showText, animated = _ref.animated, children = _ref.children, lazy = _ref.lazy, delay = _ref.delay, showInfo = _ref.showInfo, borderRadius = _ref.borderRadius, fontSize = _ref.fontSize, activeColor = _ref.activeColor, backgroundColor = _ref.backgroundColor, active = _ref.active, activeMode = _ref.activeMode, duration = _ref.duration, ariaLabel = _ref.ariaLabel, onActiveEnd = _ref.onActiveEnd, rest = (0, _object_without_properties._)(_ref, [
36
+ var _ref = (0, _object_spread._)({}, defaultProps, props), className = _ref.className, style = _ref.style, percent = _ref.percent, background = _ref.background, color = _ref.color, strokeWidth = _ref.strokeWidth, showText = _ref.showText, animated = _ref.animated, children = _ref.children, lazy = _ref.lazy, delay = _ref.delay, showInfo = _ref.showInfo, borderRadius = _ref.borderRadius, fontSize = _ref.fontSize, activeColor = _ref.activeColor, backgroundColor = _ref.backgroundColor, active = _ref.active, activeMode = _ref.activeMode, duration = _ref.duration, onActiveEnd = _ref.onActiveEnd, rest = (0, _object_without_properties._)(_ref, [
37
37
  "className",
38
38
  "style",
39
39
  "percent",
@@ -53,7 +53,6 @@ var Progress = function Progress(props) {
53
53
  "active",
54
54
  "activeMode",
55
55
  "duration",
56
- "ariaLabel",
57
56
  "onActiveEnd"
58
57
  ]);
59
58
  var classPrefix = 'nut-progress';
@@ -220,8 +219,7 @@ var Progress = function Progress(props) {
220
219
  ref: progressRef,
221
220
  id: selector,
222
221
  className: (0, _classnames.default)(classPrefix, className),
223
- style: style,
224
- "aria-label": ariaLabel
222
+ style: style
225
223
  }, rest), /*#__PURE__*/ _react.default.createElement(_components.View, {
226
224
  className: "".concat(classPrefix, "-outer"),
227
225
  style: stylesOuter