@nutui/nutui-react 3.0.0-beta.12 → 3.0.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/dist/cjs/{utils → hooks}/use-click-away.js +2 -2
  2. package/dist/cjs/{utils → hooks}/use-isomprphic-layout-effect.js +1 -1
  3. package/dist/cjs/{utils → hooks}/use-lock-scroll.js +2 -2
  4. package/dist/cjs/packages/actionsheet/actionsheet.d.ts +1 -1
  5. package/dist/cjs/packages/address/address.d.ts +1 -1
  6. package/dist/cjs/packages/address/address.js +1 -1
  7. package/dist/cjs/packages/address/customRender.d.ts +1 -1
  8. package/dist/cjs/packages/animate/animate.d.ts +1 -1
  9. package/dist/cjs/packages/animate/animate.js +5 -6
  10. package/dist/cjs/packages/animate/style/animate.scss +63 -105
  11. package/dist/cjs/packages/animate/style/style.css +45 -44
  12. package/dist/cjs/packages/animatingnumbers/countup.d.ts +1 -1
  13. package/dist/cjs/packages/audio/audio.d.ts +1 -1
  14. package/dist/cjs/packages/avatar/avatar.d.ts +2 -2
  15. package/dist/cjs/packages/avatarcropper/avatarcropper.d.ts +1 -1
  16. package/dist/cjs/packages/avatarcropper/avatarcropper.js +2 -2
  17. package/dist/cjs/packages/avatargroup/avatargroup.d.ts +1 -1
  18. package/dist/cjs/packages/backtop/backtop.d.ts +1 -1
  19. package/dist/cjs/packages/badge/badge.js +13 -15
  20. package/dist/cjs/packages/badge/types.d.ts +1 -1
  21. package/dist/cjs/packages/barrage/barrage.d.ts +1 -1
  22. package/dist/cjs/packages/button/button.d.ts +1 -1
  23. package/dist/cjs/packages/calendar/style/calendar.scss +25 -31
  24. package/dist/cjs/packages/calendar/style/style.css +14 -20
  25. package/dist/cjs/packages/calendarcard/calendarcard.d.ts +1 -1
  26. package/dist/cjs/packages/calendarcard/calendarcard.js +1 -1
  27. package/dist/cjs/packages/calendaritem/calendaritem.d.ts +1 -1
  28. package/dist/cjs/packages/calendaritem/calendaritem.js +1 -1
  29. package/dist/cjs/packages/card/card.d.ts +1 -1
  30. package/dist/cjs/packages/cascader/cascader.d.ts +1 -1
  31. package/dist/cjs/packages/cascader/cascader.js +1 -1
  32. package/dist/cjs/packages/cell/cell.d.ts +1 -1
  33. package/dist/cjs/packages/cell/types.d.ts +1 -1
  34. package/dist/cjs/packages/cellgroup/cellgroup.d.ts +1 -1
  35. package/dist/cjs/packages/checkbox/checkbox.d.ts +2 -2
  36. package/dist/cjs/packages/checkbox/checkbox.js +1 -1
  37. package/dist/cjs/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  38. package/dist/cjs/packages/checkboxgroup/checkboxgroup.js +1 -1
  39. package/dist/cjs/packages/circleprogress/circleprogress.d.ts +1 -1
  40. package/dist/cjs/packages/col/col.d.ts +1 -1
  41. package/dist/cjs/packages/collapse/collapse.d.ts +1 -1
  42. package/dist/cjs/packages/collapse/collapse.js +1 -1
  43. package/dist/cjs/packages/collapseitem/collapseitem.d.ts +1 -1
  44. package/dist/cjs/packages/configprovider/configprovider.d.ts +2 -2
  45. package/dist/cjs/packages/configprovider/configprovider.js +1 -1
  46. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  47. package/dist/cjs/packages/countdown/types.d.ts +1 -1
  48. package/dist/cjs/packages/datepicker/datepicker.d.ts +2 -2
  49. package/dist/cjs/packages/datepicker/datepicker.js +1 -1
  50. package/dist/cjs/packages/datepicker/style/style.css +2 -2
  51. package/dist/cjs/packages/dialog/types.d.ts +2 -2
  52. package/dist/cjs/packages/divider/divider.d.ts +1 -1
  53. package/dist/cjs/packages/drag/drag.d.ts +1 -1
  54. package/dist/cjs/packages/elevator/elevator.d.ts +1 -1
  55. package/dist/cjs/packages/ellipsis/ellipsis.d.ts +1 -1
  56. package/dist/cjs/packages/ellipsis/ellipsis.js +1 -1
  57. package/dist/cjs/packages/empty/empty.d.ts +1 -1
  58. package/dist/cjs/packages/fixednav/types.d.ts +1 -1
  59. package/dist/cjs/packages/form/form.d.ts +2 -2
  60. package/dist/cjs/packages/form/index.d.ts +1 -1
  61. package/dist/cjs/packages/formitem/formitem.d.ts +1 -1
  62. package/dist/cjs/packages/griditem/griditem.d.ts +1 -1
  63. package/dist/cjs/packages/hoverbutton/hoverbutton.d.ts +2 -2
  64. package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.d.ts +1 -1
  65. package/dist/cjs/packages/image/image.d.ts +4 -3
  66. package/dist/cjs/packages/imagepreview/imagepreview.d.ts +1 -1
  67. package/dist/cjs/packages/imagepreview/imagepreview.js +1 -1
  68. package/dist/cjs/packages/infiniteloading/infiniteloading.d.ts +1 -1
  69. package/dist/cjs/packages/input/input.d.ts +1 -1
  70. package/dist/cjs/packages/input/input.js +1 -1
  71. package/dist/cjs/packages/inputnumber/inputnumber.d.ts +1 -1
  72. package/dist/cjs/packages/inputnumber/inputnumber.js +1 -1
  73. package/dist/cjs/packages/loading/types.d.ts +1 -1
  74. package/dist/cjs/packages/lottie/types.d.ts +1 -1
  75. package/dist/cjs/packages/menu/menu.d.ts +2 -2
  76. package/dist/cjs/packages/menuitem/menuitem.d.ts +1 -1
  77. package/dist/cjs/packages/menuitem/menuitem.js +2 -2
  78. package/dist/cjs/packages/navbar/navbar.d.ts +1 -1
  79. package/dist/cjs/packages/noticebar/noticebar.d.ts +1 -1
  80. package/dist/cjs/packages/noticebar/noticebar.js +1 -1
  81. package/dist/cjs/packages/notify/Notification.d.ts +1 -1
  82. package/dist/cjs/packages/notify/notify.d.ts +1 -1
  83. package/dist/cjs/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  84. package/dist/cjs/packages/nutui.react.build.d.ts +107 -105
  85. package/dist/cjs/packages/nutui.react.build.js +4 -0
  86. package/dist/cjs/packages/nutui.react.d.ts +212 -209
  87. package/dist/cjs/packages/nutui.react.js +5 -0
  88. package/dist/cjs/packages/nutui.react.scss.d.ts +105 -104
  89. package/dist/cjs/packages/nutui.react.scss.js +1 -0
  90. package/dist/cjs/packages/overlay/overlay.js +1 -1
  91. package/dist/cjs/packages/overlay/types.d.ts +1 -1
  92. package/dist/cjs/packages/pagination/pagination.d.ts +1 -1
  93. package/dist/cjs/packages/pagination/pagination.js +1 -1
  94. package/dist/cjs/packages/picker/picker.d.ts +2 -2
  95. package/dist/cjs/packages/picker/picker.js +2 -2
  96. package/dist/cjs/packages/picker/pickerpanel.js +1 -1
  97. package/dist/cjs/packages/picker/style/style.css +2 -2
  98. package/dist/cjs/packages/pickerview/index.d.ts +3 -0
  99. package/dist/cjs/packages/pickerview/index.js +13 -0
  100. package/dist/cjs/packages/pickerview/pickerroller.d.ts +7 -0
  101. package/dist/cjs/packages/pickerview/pickerroller.js +183 -0
  102. package/dist/cjs/packages/pickerview/pickerview.d.ts +4 -0
  103. package/dist/cjs/packages/pickerview/pickerview.js +200 -0
  104. package/dist/cjs/packages/pickerview/style/css.js +1 -0
  105. package/dist/cjs/packages/pickerview/style/index.js +1 -0
  106. package/dist/cjs/packages/pickerview/style/pickerview.scss +79 -0
  107. package/dist/cjs/packages/pickerview/style/style.css +73 -0
  108. package/dist/cjs/packages/pickerview/types.d.ts +32 -0
  109. package/dist/cjs/packages/pickerview/types.js +4 -0
  110. package/dist/cjs/packages/pickerview/utils.d.ts +14 -0
  111. package/dist/cjs/packages/pickerview/utils.js +46 -0
  112. package/dist/cjs/packages/popover/popover.d.ts +3 -3
  113. package/dist/cjs/packages/popover/popover.js +2 -2
  114. package/dist/cjs/packages/popover/types.d.ts +3 -2
  115. package/dist/cjs/packages/popup/popup.js +1 -1
  116. package/dist/cjs/packages/popup/types.d.ts +1 -1
  117. package/dist/cjs/packages/price/types.d.ts +1 -1
  118. package/dist/cjs/packages/progress/progress.d.ts +1 -1
  119. package/dist/cjs/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
  120. package/dist/cjs/packages/radio/radio.d.ts +2 -2
  121. package/dist/cjs/packages/radio/radio.js +1 -1
  122. package/dist/cjs/packages/radiogroup/radiogroup.js +1 -1
  123. package/dist/cjs/packages/range/range.d.ts +1 -1
  124. package/dist/cjs/packages/range/range.js +3 -3
  125. package/dist/cjs/packages/rate/rate.js +3 -3
  126. package/dist/cjs/packages/rate/types.d.ts +1 -1
  127. package/dist/cjs/packages/resultpage/resultpage.d.ts +1 -1
  128. package/dist/cjs/packages/row/row.d.ts +1 -1
  129. package/dist/cjs/packages/safearea/safearea.d.ts +1 -1
  130. package/dist/cjs/packages/searchbar/searchbar.d.ts +1 -1
  131. package/dist/cjs/packages/segmented/segmented.js +1 -1
  132. package/dist/cjs/packages/segmented/types.d.ts +1 -1
  133. package/dist/cjs/packages/shortpassword/shortpassword.d.ts +1 -1
  134. package/dist/cjs/packages/shortpassword/shortpassword.js +1 -1
  135. package/dist/cjs/packages/sidebar/sidebar.d.ts +1 -1
  136. package/dist/cjs/packages/sidebar/sidebar.js +2 -2
  137. package/dist/cjs/packages/sidebar/types.d.ts +1 -1
  138. package/dist/cjs/packages/sidenavbar/sidenavbar.d.ts +1 -1
  139. package/dist/cjs/packages/signature/signature.d.ts +1 -1
  140. package/dist/cjs/packages/skeleton/skeleton.d.ts +1 -1
  141. package/dist/cjs/packages/space/space.d.ts +1 -1
  142. package/dist/cjs/packages/step/step.d.ts +1 -1
  143. package/dist/cjs/packages/steps/steps.d.ts +1 -1
  144. package/dist/cjs/packages/sticky/sticky.d.ts +1 -1
  145. package/dist/cjs/packages/sticky/sticky.js +2 -2
  146. package/dist/cjs/packages/swipe/swipe.d.ts +1 -1
  147. package/dist/cjs/packages/swipe/swipe.js +2 -2
  148. package/dist/cjs/packages/swiper/effects/focus.js +1 -1
  149. package/dist/cjs/packages/swiper/index.d.ts +2 -2
  150. package/dist/cjs/packages/swiper/swiper.d.ts +2 -2
  151. package/dist/cjs/packages/swiper/swiper.js +1 -1
  152. package/dist/cjs/packages/swiperitem/swiperitem.d.ts +1 -1
  153. package/dist/cjs/packages/switch/switch.d.ts +1 -1
  154. package/dist/cjs/packages/switch/switch.js +1 -1
  155. package/dist/cjs/packages/tabbar/style/style.css +2 -9
  156. package/dist/cjs/packages/tabbar/tabbar.d.ts +1 -1
  157. package/dist/cjs/packages/tabbar/tabbar.js +1 -1
  158. package/dist/cjs/packages/tabbaritem/style/style.css +2 -9
  159. package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +2 -10
  160. package/dist/cjs/packages/tabbaritem/tabbaritem.d.ts +1 -1
  161. package/dist/cjs/packages/tabbaritem/tabbaritem.js +6 -5
  162. package/dist/cjs/packages/table/table.js +1 -1
  163. package/dist/cjs/packages/table/types.d.ts +1 -1
  164. package/dist/cjs/packages/tabs/tabs.d.ts +2 -2
  165. package/dist/cjs/packages/tabs/tabs.js +2 -2
  166. package/dist/cjs/packages/tag/tag.d.ts +1 -1
  167. package/dist/cjs/packages/textarea/textarea.d.ts +2 -2
  168. package/dist/cjs/packages/textarea/textarea.js +20 -25
  169. package/dist/cjs/packages/timedetail/timedetail.d.ts +2 -2
  170. package/dist/cjs/packages/timeselect/timeselect.d.ts +1 -1
  171. package/dist/cjs/packages/toast/types.d.ts +1 -1
  172. package/dist/cjs/packages/tour/tour.d.ts +3 -3
  173. package/dist/cjs/packages/tour/tour.js +1 -1
  174. package/dist/cjs/packages/trendarrow/trendarrow.d.ts +1 -1
  175. package/dist/cjs/packages/uploader/types.d.ts +2 -1
  176. package/dist/cjs/packages/uploader/uploader.d.ts +1 -1
  177. package/dist/cjs/packages/uploader/uploader.js +1 -1
  178. package/dist/cjs/packages/video/video.d.ts +1 -1
  179. package/dist/cjs/packages/virtuallist/virtuallist.d.ts +1 -1
  180. package/dist/cjs/packages/watermark/watermark.d.ts +1 -1
  181. package/dist/cjs/types/fix-string-literal-union.d.ts +1 -0
  182. package/dist/cjs/utils/get-rect-by-taro.js +1 -1
  183. package/dist/cjs/utils/get-system-info.d.ts +19 -0
  184. package/dist/cjs/utils/get-system-info.js +32 -0
  185. package/dist/es/{utils → hooks}/use-click-away.js +3 -2
  186. package/dist/es/{utils → hooks}/use-isomprphic-layout-effect.js +1 -1
  187. package/dist/es/{utils → hooks}/use-lock-scroll.js +2 -2
  188. package/dist/es/packages/actionsheet/actionsheet.d.ts +1 -1
  189. package/dist/es/packages/address/address.d.ts +1 -1
  190. package/dist/es/packages/address/address.js +1 -1
  191. package/dist/es/packages/address/customRender.d.ts +1 -1
  192. package/dist/es/packages/animate/animate.d.ts +1 -1
  193. package/dist/es/packages/animate/animate.js +5 -6
  194. package/dist/es/packages/animate/style/animate.scss +63 -105
  195. package/dist/es/packages/animate/style/style.css +45 -44
  196. package/dist/es/packages/animatingnumbers/countup.d.ts +1 -1
  197. package/dist/es/packages/audio/audio.d.ts +1 -1
  198. package/dist/es/packages/avatar/avatar.d.ts +2 -2
  199. package/dist/es/packages/avatarcropper/avatarcropper.d.ts +1 -1
  200. package/dist/es/packages/avatarcropper/avatarcropper.js +2 -2
  201. package/dist/es/packages/avatargroup/avatargroup.d.ts +1 -1
  202. package/dist/es/packages/backtop/backtop.d.ts +1 -1
  203. package/dist/es/packages/badge/badge.js +13 -15
  204. package/dist/es/packages/badge/types.d.ts +1 -1
  205. package/dist/es/packages/barrage/barrage.d.ts +1 -1
  206. package/dist/es/packages/button/button.d.ts +1 -1
  207. package/dist/es/packages/calendar/calendar.d.ts +27 -135
  208. package/dist/es/packages/calendar/style/calendar.scss +25 -31
  209. package/dist/es/packages/calendar/style/style.css +14 -20
  210. package/dist/es/packages/calendarcard/calendarcard.d.ts +1 -1
  211. package/dist/es/packages/calendarcard/calendarcard.js +1 -1
  212. package/dist/es/packages/calendaritem/calendaritem.d.ts +1 -1
  213. package/dist/es/packages/calendaritem/calendaritem.js +1 -1
  214. package/dist/es/packages/card/card.d.ts +1 -1
  215. package/dist/es/packages/cascader/cascader.d.ts +1 -1
  216. package/dist/es/packages/cascader/cascader.js +1 -1
  217. package/dist/es/packages/cell/cell.d.ts +1 -1
  218. package/dist/es/packages/cell/types.d.ts +1 -1
  219. package/dist/es/packages/cellgroup/cellgroup.d.ts +1 -1
  220. package/dist/es/packages/checkbox/checkbox.d.ts +2 -2
  221. package/dist/es/packages/checkbox/checkbox.js +1 -1
  222. package/dist/es/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  223. package/dist/es/packages/checkboxgroup/checkboxgroup.js +1 -1
  224. package/dist/es/packages/circleprogress/circleprogress.d.ts +1 -1
  225. package/dist/es/packages/col/col.d.ts +1 -1
  226. package/dist/es/packages/collapse/collapse.d.ts +1 -1
  227. package/dist/es/packages/collapse/collapse.js +1 -1
  228. package/dist/es/packages/collapseitem/collapseitem.d.ts +1 -1
  229. package/dist/es/packages/configprovider/configprovider.d.ts +2 -2
  230. package/dist/es/packages/configprovider/configprovider.js +1 -1
  231. package/dist/es/packages/configprovider/types.d.ts +1 -1
  232. package/dist/es/packages/countdown/types.d.ts +1 -1
  233. package/dist/es/packages/datepicker/datepicker.d.ts +2 -2
  234. package/dist/es/packages/datepicker/datepicker.js +1 -1
  235. package/dist/es/packages/datepicker/style/style.css +2 -2
  236. package/dist/es/packages/dialog/types.d.ts +2 -2
  237. package/dist/es/packages/divider/divider.d.ts +1 -1
  238. package/dist/es/packages/drag/drag.d.ts +1 -1
  239. package/dist/es/packages/elevator/elevator.d.ts +1 -1
  240. package/dist/es/packages/ellipsis/ellipsis.d.ts +1 -1
  241. package/dist/es/packages/ellipsis/ellipsis.js +1 -1
  242. package/dist/es/packages/empty/empty.d.ts +1 -1
  243. package/dist/es/packages/fixednav/types.d.ts +1 -1
  244. package/dist/es/packages/form/form.d.ts +2 -2
  245. package/dist/es/packages/form/index.d.ts +1 -1
  246. package/dist/es/packages/formitem/formitem.d.ts +1 -1
  247. package/dist/es/packages/griditem/griditem.d.ts +1 -1
  248. package/dist/es/packages/hoverbutton/hoverbutton.d.ts +2 -2
  249. package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.d.ts +1 -1
  250. package/dist/es/packages/image/image.d.ts +4 -3
  251. package/dist/es/packages/imagepreview/imagepreview.d.ts +1 -1
  252. package/dist/es/packages/imagepreview/imagepreview.js +1 -1
  253. package/dist/es/packages/infiniteloading/infiniteloading.d.ts +1 -1
  254. package/dist/es/packages/input/input.d.ts +1 -1
  255. package/dist/es/packages/input/input.js +1 -1
  256. package/dist/es/packages/inputnumber/inputnumber.d.ts +1 -1
  257. package/dist/es/packages/inputnumber/inputnumber.js +1 -1
  258. package/dist/es/packages/loading/types.d.ts +1 -1
  259. package/dist/es/packages/lottie/types.d.ts +1 -1
  260. package/dist/es/packages/menu/menu.d.ts +2 -2
  261. package/dist/es/packages/menuitem/menuitem.d.ts +1 -1
  262. package/dist/es/packages/menuitem/menuitem.js +2 -2
  263. package/dist/es/packages/navbar/navbar.d.ts +1 -1
  264. package/dist/es/packages/noticebar/noticebar.d.ts +1 -1
  265. package/dist/es/packages/noticebar/noticebar.js +1 -1
  266. package/dist/es/packages/notify/Notification.d.ts +1 -1
  267. package/dist/es/packages/notify/notify.d.ts +1 -1
  268. package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  269. package/dist/es/packages/nutui.react.build.d.ts +107 -105
  270. package/dist/es/packages/nutui.react.build.js +3 -1
  271. package/dist/es/packages/overlay/overlay.js +1 -1
  272. package/dist/es/packages/overlay/types.d.ts +1 -1
  273. package/dist/es/packages/pagination/pagination.d.ts +1 -1
  274. package/dist/es/packages/pagination/pagination.js +1 -1
  275. package/dist/es/packages/picker/picker.d.ts +2 -2
  276. package/dist/es/packages/picker/picker.js +2 -2
  277. package/dist/es/packages/picker/pickerpanel.js +1 -1
  278. package/dist/es/packages/picker/style/style.css +2 -2
  279. package/dist/es/packages/pickerview/index.d.ts +3 -0
  280. package/dist/es/packages/pickerview/index.js +2 -0
  281. package/dist/es/packages/pickerview/pickerroller.d.ts +7 -0
  282. package/dist/es/packages/pickerview/pickerroller.js +172 -0
  283. package/dist/es/packages/pickerview/pickerview.d.ts +4 -0
  284. package/dist/es/packages/pickerview/pickerview.js +188 -0
  285. package/dist/es/packages/pickerview/style/css.js +1 -0
  286. package/dist/es/packages/pickerview/style/index.js +1 -0
  287. package/dist/es/packages/pickerview/style/pickerview.scss +79 -0
  288. package/dist/es/packages/pickerview/style/style.css +73 -0
  289. package/dist/es/packages/pickerview/types.d.ts +32 -0
  290. package/dist/es/packages/pickerview/types.js +1 -0
  291. package/dist/es/packages/pickerview/utils.d.ts +14 -0
  292. package/dist/es/packages/pickerview/utils.js +28 -0
  293. package/dist/es/packages/popover/popover.d.ts +3 -3
  294. package/dist/es/packages/popover/popover.js +2 -2
  295. package/dist/es/packages/popover/types.d.ts +3 -2
  296. package/dist/es/packages/popup/popup.js +1 -1
  297. package/dist/es/packages/popup/types.d.ts +1 -1
  298. package/dist/es/packages/price/types.d.ts +1 -1
  299. package/dist/es/packages/progress/progress.d.ts +1 -1
  300. package/dist/es/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
  301. package/dist/es/packages/radio/radio.d.ts +2 -2
  302. package/dist/es/packages/radio/radio.js +1 -1
  303. package/dist/es/packages/radiogroup/radiogroup.js +1 -1
  304. package/dist/es/packages/range/range.d.ts +1 -1
  305. package/dist/es/packages/range/range.js +3 -3
  306. package/dist/es/packages/rate/rate.js +3 -3
  307. package/dist/es/packages/rate/types.d.ts +1 -1
  308. package/dist/es/packages/resultpage/resultpage.d.ts +1 -1
  309. package/dist/es/packages/row/row.d.ts +1 -1
  310. package/dist/es/packages/safearea/safearea.d.ts +1 -1
  311. package/dist/es/packages/searchbar/searchbar.d.ts +1 -1
  312. package/dist/es/packages/segmented/segmented.js +1 -1
  313. package/dist/es/packages/segmented/types.d.ts +1 -1
  314. package/dist/es/packages/shortpassword/shortpassword.d.ts +1 -1
  315. package/dist/es/packages/shortpassword/shortpassword.js +1 -1
  316. package/dist/es/packages/sidebar/sidebar.d.ts +1 -1
  317. package/dist/es/packages/sidebar/sidebar.js +2 -2
  318. package/dist/es/packages/sidebar/types.d.ts +1 -1
  319. package/dist/es/packages/sidenavbar/sidenavbar.d.ts +1 -1
  320. package/dist/es/packages/signature/signature.d.ts +1 -1
  321. package/dist/es/packages/skeleton/skeleton.d.ts +1 -1
  322. package/dist/es/packages/space/space.d.ts +1 -1
  323. package/dist/es/packages/step/step.d.ts +1 -1
  324. package/dist/es/packages/steps/steps.d.ts +1 -1
  325. package/dist/es/packages/sticky/sticky.d.ts +1 -1
  326. package/dist/es/packages/sticky/sticky.js +2 -2
  327. package/dist/es/packages/swipe/swipe.d.ts +1 -1
  328. package/dist/es/packages/swipe/swipe.js +2 -2
  329. package/dist/es/packages/swiper/effects/focus.js +1 -1
  330. package/dist/es/packages/swiper/index.d.ts +2 -2
  331. package/dist/es/packages/swiper/swiper.d.ts +2 -2
  332. package/dist/es/packages/swiper/swiper.js +1 -1
  333. package/dist/es/packages/swiperitem/swiperitem.d.ts +1 -1
  334. package/dist/es/packages/switch/switch.d.ts +1 -1
  335. package/dist/es/packages/switch/switch.js +1 -1
  336. package/dist/es/packages/tabbar/style/style.css +2 -9
  337. package/dist/es/packages/tabbar/tabbar.d.ts +1 -1
  338. package/dist/es/packages/tabbar/tabbar.js +1 -1
  339. package/dist/es/packages/tabbaritem/style/style.css +2 -9
  340. package/dist/es/packages/tabbaritem/style/tabbaritem.scss +2 -10
  341. package/dist/es/packages/tabbaritem/tabbaritem.d.ts +1 -1
  342. package/dist/es/packages/tabbaritem/tabbaritem.js +6 -5
  343. package/dist/es/packages/table/table.js +1 -1
  344. package/dist/es/packages/table/types.d.ts +1 -1
  345. package/dist/es/packages/tabs/tabs.d.ts +2 -2
  346. package/dist/es/packages/tabs/tabs.js +2 -2
  347. package/dist/es/packages/tag/tag.d.ts +1 -1
  348. package/dist/es/packages/textarea/textarea.d.ts +2 -2
  349. package/dist/es/packages/textarea/textarea.js +20 -25
  350. package/dist/es/packages/timedetail/timedetail.d.ts +2 -2
  351. package/dist/es/packages/timeselect/timeselect.d.ts +1 -1
  352. package/dist/es/packages/toast/types.d.ts +1 -1
  353. package/dist/es/packages/tour/tour.d.ts +3 -3
  354. package/dist/es/packages/tour/tour.js +1 -1
  355. package/dist/es/packages/trendarrow/trendarrow.d.ts +1 -1
  356. package/dist/es/packages/uploader/types.d.ts +2 -1
  357. package/dist/es/packages/uploader/uploader.d.ts +1 -1
  358. package/dist/es/packages/uploader/uploader.js +1 -1
  359. package/dist/es/packages/video/video.d.ts +1 -1
  360. package/dist/es/packages/virtuallist/virtuallist.d.ts +1 -1
  361. package/dist/es/packages/watermark/watermark.d.ts +1 -1
  362. package/dist/es/types/fix-string-literal-union.d.ts +1 -0
  363. package/dist/es/utils/get-rect-by-taro.js +1 -1
  364. package/dist/es/utils/get-system-info.d.ts +19 -0
  365. package/dist/es/utils/get-system-info.js +19 -0
  366. package/dist/nutui.react.umd.js +493 -142
  367. package/dist/style.css +1 -1
  368. package/dist/style.scss +36 -35
  369. package/dist/styles/variables.scss +3 -1
  370. package/package.json +1 -80
  371. /package/dist/cjs/{utils → hooks}/use-click-away.d.ts +0 -0
  372. /package/dist/cjs/{utils → hooks}/use-client-rect.d.ts +0 -0
  373. /package/dist/cjs/{utils → hooks}/use-client-rect.js +0 -0
  374. /package/dist/cjs/{utils → hooks}/use-custom-event.d.ts +0 -0
  375. /package/dist/cjs/{utils → hooks}/use-custom-event.js +0 -0
  376. /package/dist/cjs/{utils → hooks}/use-force-update.d.ts +0 -0
  377. /package/dist/cjs/{utils → hooks}/use-force-update.js +0 -0
  378. /package/dist/cjs/{utils → hooks}/use-isomprphic-layout-effect.d.ts +0 -0
  379. /package/dist/cjs/{utils → hooks}/use-lock-scoll-taro.d.ts +0 -0
  380. /package/dist/cjs/{utils → hooks}/use-lock-scoll-taro.js +0 -0
  381. /package/dist/cjs/{utils → hooks}/use-lock-scroll.d.ts +0 -0
  382. /package/dist/cjs/{utils → hooks}/use-memo.d.ts +0 -0
  383. /package/dist/cjs/{utils → hooks}/use-memo.js +0 -0
  384. /package/dist/cjs/{utils → hooks}/use-props-value.d.ts +0 -0
  385. /package/dist/cjs/{utils → hooks}/use-props-value.js +0 -0
  386. /package/dist/cjs/{utils → hooks}/use-ref-state.d.ts +0 -0
  387. /package/dist/cjs/{utils → hooks}/use-ref-state.js +0 -0
  388. /package/dist/cjs/{utils → hooks}/use-refs.d.ts +0 -0
  389. /package/dist/cjs/{utils → hooks}/use-refs.js +0 -0
  390. /package/dist/cjs/{utils → hooks}/use-taro-rect.d.ts +0 -0
  391. /package/dist/cjs/{utils → hooks}/use-taro-rect.js +0 -0
  392. /package/dist/cjs/{utils → hooks}/use-touch.d.ts +0 -0
  393. /package/dist/cjs/{utils → hooks}/use-touch.js +0 -0
  394. /package/dist/cjs/{utils → hooks}/use-uuid.d.ts +0 -0
  395. /package/dist/cjs/{utils → hooks}/use-uuid.js +0 -0
  396. /package/dist/cjs/{utils → hooks}/use-watch.d.ts +0 -0
  397. /package/dist/cjs/{utils → hooks}/use-watch.js +0 -0
  398. /package/dist/es/{utils → hooks}/use-click-away.d.ts +0 -0
  399. /package/dist/es/{utils → hooks}/use-client-rect.d.ts +0 -0
  400. /package/dist/es/{utils → hooks}/use-client-rect.js +0 -0
  401. /package/dist/es/{utils → hooks}/use-custom-event.d.ts +0 -0
  402. /package/dist/es/{utils → hooks}/use-custom-event.js +0 -0
  403. /package/dist/es/{utils → hooks}/use-force-update.d.ts +0 -0
  404. /package/dist/es/{utils → hooks}/use-force-update.js +0 -0
  405. /package/dist/es/{utils → hooks}/use-isomprphic-layout-effect.d.ts +0 -0
  406. /package/dist/es/{utils → hooks}/use-lock-scoll-taro.d.ts +0 -0
  407. /package/dist/es/{utils → hooks}/use-lock-scoll-taro.js +0 -0
  408. /package/dist/es/{utils → hooks}/use-lock-scroll.d.ts +0 -0
  409. /package/dist/es/{utils → hooks}/use-memo.d.ts +0 -0
  410. /package/dist/es/{utils → hooks}/use-memo.js +0 -0
  411. /package/dist/es/{utils → hooks}/use-props-value.d.ts +0 -0
  412. /package/dist/es/{utils → hooks}/use-props-value.js +0 -0
  413. /package/dist/es/{utils → hooks}/use-ref-state.d.ts +0 -0
  414. /package/dist/es/{utils → hooks}/use-ref-state.js +0 -0
  415. /package/dist/es/{utils → hooks}/use-refs.d.ts +0 -0
  416. /package/dist/es/{utils → hooks}/use-refs.js +0 -0
  417. /package/dist/es/{utils → hooks}/use-taro-rect.d.ts +0 -0
  418. /package/dist/es/{utils → hooks}/use-taro-rect.js +0 -0
  419. /package/dist/es/{utils → hooks}/use-touch.d.ts +0 -0
  420. /package/dist/es/{utils → hooks}/use-touch.js +0 -0
  421. /package/dist/es/{utils → hooks}/use-uuid.d.ts +0 -0
  422. /package/dist/es/{utils → hooks}/use-uuid.js +0 -0
  423. /package/dist/es/{utils → hooks}/use-watch.d.ts +0 -0
  424. /package/dist/es/{utils → hooks}/use-watch.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface ProgressProps extends BasicComponent {
4
4
  percent: number;
5
5
  background: string;
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  import { PullToRefreshType } from './types';
4
4
  export type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
5
5
  export interface PullToRefreshProps extends BasicComponent {
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
3
- import { RadioPosition, RadioShape } from "./types";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
+ import { RadioPosition, RadioShape } from "../../../../src/packages/radio/types";
4
4
  export interface RadioProps extends BasicComponent {
5
5
  disabled: boolean;
6
6
  checked: boolean;
@@ -8,7 +8,7 @@ import { CheckChecked, CheckNormal, CheckDisabled } from "@nutui/icons-react";
8
8
  import classNames from "classnames";
9
9
  import RadioContext from "../radiogroup/context";
10
10
  import { ComponentDefaults } from "../../utils/typings";
11
- import { usePropsValue } from "../../utils/use-props-value";
11
+ import { usePropsValue } from "../../hooks/use-props-value";
12
12
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
13
13
  disabled: false,
14
14
  shape: 'round',
@@ -7,7 +7,7 @@ import React, { useCallback } from "react";
7
7
  import classNames from "classnames";
8
8
  import RadioContext from "./context";
9
9
  import Radio from "../radio/index";
10
- import { usePropsValue } from "../../utils/use-props-value";
10
+ import { usePropsValue } from "../../hooks/use-props-value";
11
11
  var defaultProps = {
12
12
  labelPosition: 'right',
13
13
  onChange: function(value) {},
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  import { RangeMark, RangeValue } from './types';
4
4
  export interface RangeProps extends BasicComponent {
5
5
  value: RangeValue;
@@ -4,10 +4,10 @@ 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
5
  import React, { useEffect, useState, useCallback, useMemo, useRef } from "react";
6
6
  import classNames from "classnames";
7
- import { useTouch } from "../../utils/use-touch";
8
- import { getRect } from "../../utils/use-client-rect";
7
+ import { useTouch } from "../../hooks/use-touch";
8
+ import { getRect } from "../../hooks/use-client-rect";
9
9
  import { ComponentDefaults } from "../../utils/typings";
10
- import { usePropsValue } from "../../utils/use-props-value";
10
+ import { usePropsValue } from "../../hooks/use-props-value";
11
11
  import { useRtl } from "../configprovider";
12
12
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
13
13
  range: false,
@@ -6,9 +6,9 @@ import React, { useEffect, useRef, useState } from "react";
6
6
  import classNames from "classnames";
7
7
  import { StarFill } from "@nutui/icons-react";
8
8
  import { ComponentDefaults } from "../../utils/typings";
9
- import { usePropsValue } from "../../utils/use-props-value";
10
- import { getRect } from "../../utils/use-client-rect";
11
- import useRefs from "../../utils/use-refs";
9
+ import { usePropsValue } from "../../hooks/use-props-value";
10
+ import { getRect } from "../../hooks/use-client-rect";
11
+ import useRefs from "../../hooks/use-refs";
12
12
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
13
13
  size: 'normal',
14
14
  showScore: false,
@@ -1,4 +1,4 @@
1
- import { BasicComponent } from "../../utils/typings";
1
+ import { BasicComponent } from "../../../../src/utils/typings";
2
2
  export type RateSize = 'large' | 'normal' | 'small';
3
3
  export interface RateProps extends BasicComponent {
4
4
  size: RateSize;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  import { ButtonFill, ButtonSize, ButtonType } from '../button/button';
4
4
  import { ResultPageStatus } from './types';
5
5
  export type ResultPageAction = {
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import type { MouseEvent } from 'react';
3
- import { BasicComponent } from "../../utils/typings";
3
+ import { BasicComponent } from "../../../../src/utils/typings";
4
4
  export type RowEventType = 'row' | 'col';
5
5
  export interface RowProps extends BasicComponent {
6
6
  type: string;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface SafeAreaProps extends BasicComponent {
4
4
  position: 'top' | 'bottom';
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import type { ChangeEvent, FocusEvent, MouseEvent } from 'react';
3
- import { BasicComponent } from "../../utils/typings";
3
+ import { BasicComponent } from "../../../../src/utils/typings";
4
4
  export interface SearchBarProps extends BasicComponent {
5
5
  value?: number | string;
6
6
  placeholder?: string;
@@ -3,7 +3,7 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
3
3
  import { _ as _type_of } from "@swc/helpers/_/_type_of";
4
4
  import React, { useCallback } from "react";
5
5
  import classNames from "classnames";
6
- import { usePropsValue } from "../../utils/use-props-value";
6
+ import { usePropsValue } from "../../hooks/use-props-value";
7
7
  import { mergeProps } from "../../utils/merge-props";
8
8
  var defaultProps = {
9
9
  options: [],
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface SegmentedItem {
4
4
  label: ReactNode;
5
5
  value: string | number;
@@ -1,5 +1,5 @@
1
1
  import React, { ForwardRefRenderFunction, ReactNode } from 'react';
2
- import { PopupProps } from "../popup/index";
2
+ import { PopupProps } from "../../../../src/packages/popup/index";
3
3
  export interface ShortPasswordProps extends PopupProps {
4
4
  /**
5
5
  * 密码字符串
@@ -9,7 +9,7 @@ import classNames from "classnames";
9
9
  import Popup from "../popup/index";
10
10
  import { useConfig } from "../configprovider";
11
11
  import { ComponentDefaults } from "../../utils/typings";
12
- import { usePropsValue } from "../../utils/use-props-value";
12
+ import { usePropsValue } from "../../hooks/use-props-value";
13
13
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
14
14
  value: '',
15
15
  visible: false,
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import SideBarItem from "../sidebaritem";
2
+ import SideBarItem from "../../../../src/packages/sidebaritem";
3
3
  import { SideBarProps } from './types';
4
4
  export declare const SideBar: FC<Partial<SideBarProps>> & {
5
5
  Item: typeof SideBarItem;
@@ -8,8 +8,8 @@ import classNames from "classnames";
8
8
  import { ComponentDefaults } from "../../utils/typings";
9
9
  import SideBarItem from "../sidebaritem";
10
10
  import raf from "../../utils/raf";
11
- import { usePropsValue } from "../../utils/use-props-value";
12
- import { useForceUpdate } from "../../utils/use-force-update";
11
+ import { usePropsValue } from "../../hooks/use-props-value";
12
+ import { useForceUpdate } from "../../hooks/use-force-update";
13
13
  import { mergeProps } from "../../utils/merge-props";
14
14
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
15
15
  contentDuration: 0,
@@ -1,4 +1,4 @@
1
- import { BasicComponent } from "../../utils/typings";
1
+ import { BasicComponent } from "../../../../src/utils/typings";
2
2
  export type SideBarItemProps = {
3
3
  title: string;
4
4
  disabled: boolean;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  /**
4
4
  * @deprecated Use SideBar instead.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export type SignatureType = 'jpg' | 'png';
4
4
  export interface SignatureProps extends BasicComponent {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  type avatarShape = 'round' | 'square';
4
4
  export interface SkeletonProps extends BasicComponent {
5
5
  animated: boolean;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface SpaceProps extends BasicComponent {
4
4
  direction: 'horizontal' | 'vertical';
5
5
  align: 'start' | 'end' | 'center' | 'baseline';
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface StepProps extends BasicComponent {
4
4
  /**
5
5
  * 流程步骤的标题
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface StepsProps extends BasicComponent {
4
4
  /**
5
5
  * 当前所在的步骤
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface StickyProps extends BasicComponent {
4
4
  /**
5
5
  * 容器的 ref
@@ -6,8 +6,8 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
6
6
  import React, { useCallback, useEffect, useRef, useState } from "react";
7
7
  import classNames from "classnames";
8
8
  import { getScrollParent } from "../../utils/get-scroll-parent";
9
- import { getRect } from "../../utils/use-client-rect";
10
- import useWatch from "../../utils/use-watch";
9
+ import { getRect } from "../../hooks/use-client-rect";
10
+ import useWatch from "../../hooks/use-watch";
11
11
  import { ComponentDefaults } from "../../utils/typings";
12
12
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
13
13
  position: 'top',
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { TouchEvent, MouseEvent } from 'react';
3
- import { BasicComponent } from "../../utils/typings";
3
+ import { BasicComponent } from "../../../../src/utils/typings";
4
4
  export type SwipeSide = 'left' | 'right';
5
5
  export interface SwipeInstance {
6
6
  open: (side: SwipeSide) => void;
@@ -3,8 +3,8 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
3
  import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
4
4
  import React, { useRef, forwardRef, useState, useCallback, useImperativeHandle, useEffect } from "react";
5
5
  import classNames from "classnames";
6
- import { useTouch } from "../../utils/use-touch";
7
- import { getRect } from "../../utils/use-client-rect";
6
+ import { useTouch } from "../../hooks/use-touch";
7
+ import { getRect } from "../../hooks/use-client-rect";
8
8
  function preventDefault(event, isStopPropagation) {
9
9
  if (typeof event.cancelable !== 'boolean' || event.cancelable) {
10
10
  event.preventDefault();
@@ -2,7 +2,7 @@ import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
2
  import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
3
3
  import React, { useEffect } from "react";
4
4
  import { animated } from "@react-spring/web";
5
- import { getRefValue, useRefState } from "../../../utils/use-ref-state";
5
+ import { getRefValue, useRefState } from "../../../hooks/use-ref-state";
6
6
  import { useRtl } from "../../configprovider";
7
7
  var getPerSlidePosition = function(index, position, loop, count) {
8
8
  var currentPosition = index * 100 + position;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { SwiperProps } from './swiper';
3
- import SwiperItem from "../swiperitem";
4
- import { SwiperRef } from "./types";
3
+ import SwiperItem from "../../../../src/packages/swiperitem";
4
+ import { SwiperRef } from "../../../../src/packages/swiper/types";
5
5
  export type { SwiperProps } from './swiper';
6
6
  export type { SwiperRef } from './types';
7
7
  type CompoundedComponent = React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<SwiperRef>> & {
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
3
- import { SwiperRef } from "./types";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
+ import { SwiperRef } from "../../../../src/packages/swiper/types";
4
4
  export interface FocusEffect {
5
5
  name: 'focus';
6
6
  scale: number;
@@ -6,7 +6,7 @@ import { useDrag } from "@use-gesture/react";
6
6
  import { useSpring } from "@react-spring/web";
7
7
  import classNames from "classnames";
8
8
  import Indicator from "../indicator";
9
- import { getRefValue, useRefState } from "../../utils/use-ref-state";
9
+ import { getRefValue, useRefState } from "../../hooks/use-ref-state";
10
10
  import { defaultEffect } from "./effects/default";
11
11
  import { focusEffect, updateTransform, useList } from "./effects/focus";
12
12
  var defaultProps = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface SwiperItemProps extends BasicComponent {
4
4
  onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface SwitchProps extends BasicComponent {
4
4
  checked: boolean;
5
5
  defaultChecked: boolean;
@@ -6,7 +6,7 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
6
6
  import React from "react";
7
7
  import classNames from "classnames";
8
8
  import { ComponentDefaults } from "../../utils/typings";
9
- import { usePropsValue } from "../../utils/use-props-value";
9
+ import { usePropsValue } from "../../hooks/use-props-value";
10
10
  import { useRtl } from "../configprovider";
11
11
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
12
12
  disabled: false,
@@ -138,15 +138,8 @@
138
138
  .nut-tabbar-item-active {
139
139
  color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
140
140
  }
141
- .nut-tabbar-item-active .nut-tabbar-item-icon-box {
142
- /* #ifdef harmony*/
143
- color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
144
- /* #endif*/
145
- /* #ifndef harmony*/
146
- color: inherit;
147
- /* #endif*/
148
- }
149
- .nut-tabbar-item-active .nut-tabbar-item-icon-box .nut-icon {
141
+ .nut-tabbar-item-active .nut-tabbar-item-icon-box,
142
+ .nut-tabbar-item-active .nut-icon {
150
143
  /* #ifdef harmony*/
151
144
  color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
152
145
  /* #endif*/
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  import TabbarItem from '../tabbaritem';
4
4
  export interface TabbarProps extends BasicComponent {
5
5
  defaultValue: number;
@@ -5,7 +5,7 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
5
5
  import React from "react";
6
6
  import classNames from "classnames";
7
7
  import { ComponentDefaults } from "../../utils/typings";
8
- import { usePropsValue } from "../../utils/use-props-value";
8
+ import { usePropsValue } from "../../hooks/use-props-value";
9
9
  import TabbarItem from "../tabbaritem";
10
10
  import TabbarContext from "./context";
11
11
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
@@ -138,15 +138,8 @@
138
138
  .nut-tabbar-item-active {
139
139
  color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
140
140
  }
141
- .nut-tabbar-item-active .nut-tabbar-item-icon-box {
142
- /* #ifdef harmony*/
143
- color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
144
- /* #endif*/
145
- /* #ifndef harmony*/
146
- color: inherit;
147
- /* #endif*/
148
- }
149
- .nut-tabbar-item-active .nut-tabbar-item-icon-box .nut-icon {
141
+ .nut-tabbar-item-active .nut-tabbar-item-icon-box,
142
+ .nut-tabbar-item-active .nut-icon {
150
143
  /* #ifdef harmony*/
151
144
  color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
152
145
  /* #endif*/
@@ -41,22 +41,14 @@
41
41
  &-active {
42
42
  color: $tabbar-active-color;
43
43
 
44
- .nut-tabbar-item-icon-box {
44
+ .nut-tabbar-item-icon-box,
45
+ .nut-icon {
45
46
  /* #ifdef harmony*/
46
47
  color: $tabbar-active-color;
47
48
  /* #endif*/
48
49
  /* #ifndef harmony*/
49
50
  color: inherit;
50
51
  /* #endif*/
51
-
52
- .nut-icon {
53
- /* #ifdef harmony*/
54
- color: $tabbar-active-color;
55
- /* #endif*/
56
- /* #ifndef harmony*/
57
- color: inherit;
58
- /* #endif*/
59
- }
60
52
  }
61
53
  }
62
54
  }
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface TabbarItemProps extends BasicComponent {
4
4
  title: ReactNode;
5
5
  icon: ReactNode;
@@ -44,6 +44,11 @@ export var TabbarItem = function(props) {
44
44
  right: right,
45
45
  color: ctx === null || ctx === void 0 ? void 0 : ctx.activeColor
46
46
  };
47
+ var renderTitleText = function() {
48
+ return title && /*#__PURE__*/ React.createElement("div", {
49
+ className: titleClass
50
+ }, title);
51
+ };
47
52
  return /*#__PURE__*/ React.createElement("div", _object_spread({
48
53
  className: tabbarItemClass,
49
54
  style: _object_spread({
@@ -54,9 +59,5 @@ export var TabbarItem = function(props) {
54
59
  }
55
60
  }, rest), icon ? /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Badge, badgeProps, /*#__PURE__*/ React.createElement("div", {
56
61
  className: boxPrefix
57
- }, icon)), /*#__PURE__*/ React.createElement("div", {
58
- className: titleClass
59
- }, title)) : /*#__PURE__*/ React.createElement(Badge, badgeProps, /*#__PURE__*/ React.createElement("div", {
60
- className: titleClass
61
- }, title)));
62
+ }, icon)), renderTitleText()) : /*#__PURE__*/ React.createElement(Badge, badgeProps, renderTitleText()));
62
63
  };
@@ -9,7 +9,7 @@ import classNames from "classnames";
9
9
  import { ArrowDown } from "@nutui/icons-react";
10
10
  import { useConfig, useRtl } from "../configprovider";
11
11
  import { ComponentDefaults } from "../../utils/typings";
12
- import { usePropsValue } from "../../utils/use-props-value";
12
+ import { usePropsValue } from "../../hooks/use-props-value";
13
13
  import { useTableSticky } from "./utils";
14
14
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
15
15
  columns: [],
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BasicComponent } from "../../utils/typings";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
3
  export interface BasicTableProps extends BasicComponent {
4
4
  columns: Array<TableColumnProps>;
5
5
  data: Array<any>;
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { BasicComponent } from "../../utils/typings";
3
- import TabPane from "../tabpane";
2
+ import { BasicComponent } from "../../../../src/utils/typings";
3
+ import TabPane from "../../../../src/packages/tabpane";
4
4
  export type TabsTitle = {
5
5
  title: string;
6
6
  disabled: boolean;
@@ -9,8 +9,8 @@ import { JoySmile } from "@nutui/icons-react";
9
9
  import { ComponentDefaults } from "../../utils/typings";
10
10
  import TabPane from "../tabpane";
11
11
  import raf from "../../utils/raf";
12
- import { usePropsValue } from "../../utils/use-props-value";
13
- import { useForceUpdate } from "../../utils/use-force-update";
12
+ import { usePropsValue } from "../../hooks/use-props-value";
13
+ import { useForceUpdate } from "../../hooks/use-force-update";
14
14
  import { useRtl } from "../configprovider";
15
15
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
16
16
  tabStyle: {},
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
2
  import type { MouseEvent } from 'react';
3
- import { BasicComponent } from "../../utils/typings";
3
+ import { BasicComponent } from "../../../../src/utils/typings";
4
4
  export type TagType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
5
5
  export interface TagProps extends BasicComponent {
6
6
  type: TagType;
@@ -1,6 +1,6 @@
1
- import React, { FunctionComponent } from 'react';
2
1
  import type { FocusEvent } from 'react';
3
- import { BasicComponent } from "../../utils/typings";
2
+ import React, { FunctionComponent } from 'react';
3
+ import { BasicComponent } from "../../../../src/utils/typings";
4
4
  export interface TextAreaProps extends BasicComponent {
5
5
  value: string;
6
6
  defaultValue: string;
@@ -1,3 +1,4 @@
1
+ import { _ as _define_property } from "@swc/helpers/_/_define_property";
1
2
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
3
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
4
  import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
@@ -6,7 +7,7 @@ import React, { useEffect, useRef } from "react";
6
7
  import classNames from "classnames";
7
8
  import { useConfig, useRtl } from "../configprovider";
8
9
  import { ComponentDefaults } from "../../utils/typings";
9
- import { usePropsValue } from "../../utils/use-props-value";
10
+ import { usePropsValue } from "../../hooks/use-props-value";
10
11
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
11
12
  defaultValue: '',
12
13
  showCount: false,
@@ -56,9 +57,7 @@ export var TextArea = function(props) {
56
57
  onChange: onChange
57
58
  }), 2), inputValue = _usePropsValue[0], setInputValue = _usePropsValue[1];
58
59
  useEffect(function() {
59
- if (autoSize) {
60
- setContentHeight();
61
- }
60
+ if (autoSize) setContentHeight();
62
61
  }, [
63
62
  autoSize,
64
63
  defaultValue,
@@ -79,34 +78,30 @@ export var TextArea = function(props) {
79
78
  var value = compositionRef.current ? text.value : format(text.value);
80
79
  setInputValue(value);
81
80
  };
81
+ var isDisabled = function() {
82
+ return disabled || readOnly;
83
+ };
82
84
  var handleFocus = function(event) {
83
- if (disabled) return;
84
- if (readOnly) return;
85
- onFocus && onFocus(event);
85
+ if (isDisabled()) return;
86
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
86
87
  };
87
88
  var handleBlur = function(event) {
88
- if (disabled) return;
89
- if (readOnly) return;
90
- onBlur && onBlur(event);
89
+ if (isDisabled()) return;
90
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
91
91
  };
92
+ var _obj;
92
93
  return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("div", {
93
- className: classNames(classPrefix, disabled ? "".concat(classPrefix, "-disabled") : '', readOnly ? "".concat(classPrefix, "-readonly") : '', rtl ? "".concat(classPrefix, "-rtl") : '', plain ? "".concat(classPrefix, "-plain") : "".concat(classPrefix, "-container"), status ? "".concat(classPrefix, "-").concat(status) : '', className)
94
- }, /*#__PURE__*/ React.createElement("textarea", _object_spread({
94
+ className: classNames(classPrefix, (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-disabled"), disabled), _define_property(_obj, "".concat(classPrefix, "-readonly"), readOnly), _define_property(_obj, "".concat(classPrefix, "-rtl"), rtl), _define_property(_obj, "".concat(classPrefix, "-plain"), plain), _define_property(_obj, "".concat(classPrefix, "-container"), !plain), _define_property(_obj, "".concat(classPrefix, "-").concat(status), status), _obj), className)
95
+ }, /*#__PURE__*/ React.createElement("textarea", _object_spread_props(_object_spread({}, rest), {
95
96
  ref: textareaRef,
96
- className: "".concat(classPrefix, "-textarea ").concat(disabled ? "".concat(classPrefix, "-textarea-disabled") : ''),
97
+ className: classNames("".concat(classPrefix, "-textarea"), _define_property({}, "".concat(classPrefix, "-textarea-disabled"), disabled)),
97
98
  style: style,
98
99
  disabled: disabled,
99
100
  readOnly: readOnly,
100
101
  value: inputValue,
101
- onChange: function(e) {
102
- return handleChange(e);
103
- },
104
- onBlur: function(e) {
105
- return handleBlur(e);
106
- },
107
- onFocus: function(e) {
108
- return handleFocus(e);
109
- },
102
+ onChange: handleChange,
103
+ onBlur: handleBlur,
104
+ onFocus: handleFocus,
110
105
  onCompositionEnd: function() {
111
106
  compositionRef.current = false;
112
107
  },
@@ -115,9 +110,9 @@ export var TextArea = function(props) {
115
110
  },
116
111
  rows: rows,
117
112
  maxLength: maxLength === -1 ? undefined : maxLength,
118
- placeholder: placeholder || locale.placeholder
119
- }, rest)), showCount && /*#__PURE__*/ React.createElement("div", {
120
- className: "".concat(classPrefix, "-limit ").concat(disabled ? "".concat(classPrefix, "-limit-disabled") : '')
113
+ placeholder: placeholder !== undefined ? placeholder : locale.placeholder
114
+ })), showCount && /*#__PURE__*/ React.createElement("div", {
115
+ className: classNames("".concat(classPrefix, "-limit"), _define_property({}, "".concat(classPrefix, "-limit-disabled"), disabled))
121
116
  }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)));
122
117
  };
123
118
  TextArea.displayName = 'NutTextArea';