@nutui/nutui-react 2.3.11 → 2.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/esm/ActionSheet.js +30 -86
  3. package/dist/esm/Address.js +80 -184
  4. package/dist/esm/Animate.js +21 -49
  5. package/dist/esm/AnimatingNumbers.js +47 -136
  6. package/dist/esm/Audio.js +88 -159
  7. package/dist/esm/Avatar.js +44 -91
  8. package/dist/esm/AvatarCropper.js +149 -268
  9. package/dist/esm/AvatarGroup.js +13 -44
  10. package/dist/esm/BackTop.js +34 -75
  11. package/dist/esm/Badge.js +0 -3
  12. package/dist/esm/Barrage.js +49 -83
  13. package/dist/esm/Button.js +0 -4
  14. package/dist/esm/Calendar.js +27 -119
  15. package/dist/esm/CalendarCard.js +180 -291
  16. package/dist/esm/CalendarItem.js +253 -314
  17. package/dist/esm/Card.js +38 -72
  18. package/dist/esm/Cascader.js +0 -17
  19. package/dist/esm/Cell.js +27 -62
  20. package/dist/esm/CellGroup.js +16 -45
  21. package/dist/esm/Checkbox.js +0 -6
  22. package/dist/esm/CheckboxGroup.js +49 -88
  23. package/dist/esm/CircleProgress.js +42 -93
  24. package/dist/esm/Col.js +17 -48
  25. package/dist/esm/Collapse.js +18 -49
  26. package/dist/esm/CollapseItem.js +0 -3
  27. package/dist/esm/ConfigProvider.js +3 -4
  28. package/dist/esm/CountDown.js +62 -101
  29. package/dist/esm/DatePicker.js +87 -127
  30. package/dist/esm/Dialog.js +117 -203
  31. package/dist/esm/Divider.js +16 -36
  32. package/dist/esm/Drag.js +32 -76
  33. package/dist/esm/Elevator.js +94 -133
  34. package/dist/esm/Ellipsis.js +71 -92
  35. package/dist/esm/Empty.js +31 -71
  36. package/dist/esm/FixedNav.js +32 -81
  37. package/dist/esm/Form.js +28 -61
  38. package/dist/esm/FormItem.js +0 -3
  39. package/dist/esm/Grid.js +27 -52
  40. package/dist/esm/GridItem.js +0 -4
  41. package/dist/esm/Image.js +47 -102
  42. package/dist/esm/ImagePreview.js +82 -135
  43. package/dist/esm/Indicator.js +0 -2
  44. package/dist/esm/InfiniteLoading.js +77 -159
  45. package/dist/esm/Input.js +57 -125
  46. package/dist/esm/InputNumber.js +66 -96
  47. package/dist/esm/Layout.js +4 -28
  48. package/dist/esm/Loading.js +13 -40
  49. package/dist/esm/Menu.js +51 -114
  50. package/dist/esm/MenuItem.js +0 -13
  51. package/dist/esm/NavBar.js +46 -85
  52. package/dist/esm/NoticeBar.js +153 -226
  53. package/dist/esm/Notify.js +87 -195
  54. package/dist/esm/NumberKeyboard.js +84 -150
  55. package/dist/esm/Overlay.js +0 -8
  56. package/dist/esm/Pagination.js +58 -97
  57. package/dist/esm/Picker.js +215 -283
  58. package/dist/esm/Popover.js +111 -160
  59. package/dist/esm/Popup.js +0 -12
  60. package/dist/esm/Price.js +23 -60
  61. package/dist/esm/Progress.js +47 -77
  62. package/dist/esm/PullToRefresh.js +94 -202
  63. package/dist/esm/Radio.js +0 -6
  64. package/dist/esm/RadioGroup.js +23 -56
  65. package/dist/esm/Range.js +113 -177
  66. package/dist/esm/Rate.js +48 -95
  67. package/dist/esm/Row.js +19 -43
  68. package/dist/esm/SafeArea.js +0 -2
  69. package/dist/esm/SearchBar.js +52 -119
  70. package/dist/esm/ShortPassword.js +58 -106
  71. package/dist/esm/SideNavBar.js +34 -59
  72. package/dist/esm/SideNavBarItem.js +7 -36
  73. package/dist/esm/Signature.js +49 -84
  74. package/dist/esm/Skeleton.js +31 -68
  75. package/dist/esm/Space.js +7 -34
  76. package/dist/esm/Step.js +35 -64
  77. package/dist/esm/Steps.js +16 -40
  78. package/dist/esm/Sticky.js +64 -109
  79. package/dist/esm/SubSideNavBar.js +42 -71
  80. package/dist/esm/Swipe.js +79 -143
  81. package/dist/esm/Swiper.js +136 -183
  82. package/dist/esm/SwiperItem.js +13 -38
  83. package/dist/esm/Switch.js +20 -53
  84. package/dist/esm/TabPane.js +6 -30
  85. package/dist/esm/Tabbar.js +29 -60
  86. package/dist/esm/TabbarItem.js +0 -4
  87. package/dist/esm/Table.js +92 -141
  88. package/dist/esm/Tabs.js +0 -7
  89. package/dist/esm/Tag.js +30 -74
  90. package/dist/esm/TextArea.js +37 -82
  91. package/dist/esm/TimeDetail.js +20 -58
  92. package/dist/esm/TimeSelect.js +57 -95
  93. package/dist/esm/Toast.js +110 -219
  94. package/dist/esm/Tour.js +88 -132
  95. package/dist/esm/TrendArrow.js +32 -74
  96. package/dist/esm/Uploader.js +226 -346
  97. package/dist/esm/UserContext.js +1 -1
  98. package/dist/esm/Video.js +34 -67
  99. package/dist/esm/VirtualList.js +127 -160
  100. package/dist/esm/WaterMark.js +24 -68
  101. package/dist/esm/badge2.js +23 -53
  102. package/dist/esm/button2.js +30 -63
  103. package/dist/esm/can-use-dom.js +1 -1
  104. package/dist/esm/cascader2.js +308 -538
  105. package/dist/esm/checkbox2.js +59 -96
  106. package/dist/esm/collapseitem2.js +48 -86
  107. package/dist/esm/configprovider2.js +43 -1003
  108. package/dist/esm/context.js +1 -1
  109. package/dist/esm/context2.js +1 -1
  110. package/dist/esm/context3.js +1 -1
  111. package/dist/esm/context4.js +1 -1
  112. package/dist/esm/context5.js +8 -8
  113. package/dist/esm/date.js +88 -66
  114. package/dist/esm/formitem2.js +236 -1526
  115. package/dist/esm/get-scroll-parent.js +8 -10
  116. package/dist/esm/griditem2.js +34 -52
  117. package/dist/esm/index.js +5 -12
  118. package/dist/esm/indicator2.js +13 -42
  119. package/dist/esm/menuitem2.js +81 -124
  120. package/dist/esm/overlay2.js +39 -78
  121. package/dist/esm/pad-zero.js +3 -4
  122. package/dist/esm/popup2.js +79 -124
  123. package/dist/esm/px-check.js +2 -2
  124. package/dist/esm/radio2.js +48 -79
  125. package/dist/esm/raf.js +5 -3
  126. package/dist/esm/render.js +17 -54
  127. package/dist/esm/safearea2.js +3 -5
  128. package/dist/esm/supports-passive.js +3 -3
  129. package/dist/esm/tabbaritem2.js +42 -58
  130. package/dist/esm/tabs2.js +82 -120
  131. package/dist/esm/tslib.es6.js +47 -0
  132. package/dist/esm/types/src/packages/button/demos/h5/demo1.d.ts +3 -0
  133. package/dist/esm/types/src/packages/button/demos/h5/demo2.d.ts +3 -0
  134. package/dist/esm/types/src/packages/button/demos/h5/demo3.d.ts +3 -0
  135. package/dist/esm/types/src/packages/button/demos/h5/demo4.d.ts +3 -0
  136. package/dist/esm/types/src/packages/button/demos/h5/demo5.d.ts +3 -0
  137. package/dist/esm/types/src/packages/button/demos/h5/demo6.d.ts +3 -0
  138. package/dist/esm/types/src/packages/button/demos/h5/demo7.d.ts +3 -0
  139. package/dist/esm/types/src/packages/button/demos/h5/demo8.d.ts +3 -0
  140. package/dist/esm/types/src/packages/button/demos/h5/demo9.d.ts +3 -0
  141. package/dist/esm/types/src/packages/button/demos/taro/demo1.d.ts +3 -0
  142. package/dist/esm/types/src/packages/button/demos/taro/demo10.d.ts +3 -0
  143. package/dist/esm/types/src/packages/button/demos/taro/demo2.d.ts +3 -0
  144. package/dist/esm/types/src/packages/button/demos/taro/demo3.d.ts +3 -0
  145. package/dist/esm/types/src/packages/button/demos/taro/demo4.d.ts +3 -0
  146. package/dist/esm/types/src/packages/button/demos/taro/demo5.d.ts +3 -0
  147. package/dist/esm/types/src/packages/button/demos/taro/demo6.d.ts +3 -0
  148. package/dist/esm/types/src/packages/button/demos/taro/demo7.d.ts +3 -0
  149. package/dist/esm/types/src/packages/button/demos/taro/demo8.d.ts +3 -0
  150. package/dist/esm/types/src/packages/button/demos/taro/demo9.d.ts +3 -0
  151. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +1 -0
  152. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +1 -0
  153. package/dist/esm/types/src/packages/configprovider/index.d.ts +2 -2
  154. package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +2 -2
  155. package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +2 -0
  156. package/dist/esm/typings.js +1 -1
  157. package/dist/esm/use-click-away.js +9 -13
  158. package/dist/esm/use-client-rect.js +4 -4
  159. package/dist/esm/use-props-value.js +10 -15
  160. package/dist/esm/use-refs.js +5 -7
  161. package/dist/esm/use-touch.js +16 -20
  162. package/dist/locales/base.js +1 -1
  163. package/dist/locales/en-US.js +1 -1
  164. package/dist/locales/id-ID.js +1 -1
  165. package/dist/locales/tr-TR.js +1 -1
  166. package/dist/locales/zh-CN.js +1 -1
  167. package/dist/locales/zh-TW.js +1 -1
  168. package/dist/locales/zh-UG.js +1 -1
  169. package/dist/nutui.react.es.js +465 -485
  170. package/dist/nutui.react.umd.js +462 -482
  171. package/dist/style.mjs +1 -1
  172. package/dist/styles/variables-jmapp.scss +4 -0
  173. package/dist/types/index.d.ts +98 -98
  174. package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
  175. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  176. package/dist/types/packages/address/address.d.ts +1 -1
  177. package/dist/types/packages/address/address.taro.d.ts +1 -1
  178. package/dist/types/packages/address/customRender.d.ts +1 -1
  179. package/dist/types/packages/address/customRender.taro.d.ts +1 -1
  180. package/dist/types/packages/avatar/avatar.d.ts +1 -1
  181. package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
  182. package/dist/types/packages/button/demos/h5/demo1.d.ts +3 -0
  183. package/dist/types/packages/button/demos/h5/demo2.d.ts +3 -0
  184. package/dist/types/packages/button/demos/h5/demo3.d.ts +3 -0
  185. package/dist/types/packages/button/demos/h5/demo4.d.ts +3 -0
  186. package/dist/types/packages/button/demos/h5/demo5.d.ts +3 -0
  187. package/dist/types/packages/button/demos/h5/demo6.d.ts +3 -0
  188. package/dist/types/packages/button/demos/h5/demo7.d.ts +3 -0
  189. package/dist/types/packages/button/demos/h5/demo8.d.ts +3 -0
  190. package/dist/types/packages/button/demos/h5/demo9.d.ts +3 -0
  191. package/dist/types/packages/button/demos/taro/demo1.d.ts +3 -0
  192. package/dist/types/packages/button/demos/taro/demo10.d.ts +3 -0
  193. package/dist/types/packages/button/demos/taro/demo2.d.ts +3 -0
  194. package/dist/types/packages/button/demos/taro/demo3.d.ts +3 -0
  195. package/dist/types/packages/button/demos/taro/demo4.d.ts +3 -0
  196. package/dist/types/packages/button/demos/taro/demo5.d.ts +3 -0
  197. package/dist/types/packages/button/demos/taro/demo6.d.ts +3 -0
  198. package/dist/types/packages/button/demos/taro/demo7.d.ts +3 -0
  199. package/dist/types/packages/button/demos/taro/demo8.d.ts +3 -0
  200. package/dist/types/packages/button/demos/taro/demo9.d.ts +3 -0
  201. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
  202. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  203. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  204. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  205. package/dist/types/packages/cell/cell.d.ts +1 -1
  206. package/dist/types/packages/cell/cell.taro.d.ts +1 -1
  207. package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
  208. package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
  209. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  210. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  211. package/dist/types/packages/configprovider/configprovider.d.ts +1 -0
  212. package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -0
  213. package/dist/types/packages/configprovider/index.d.ts +2 -2
  214. package/dist/types/packages/configprovider/index.taro.d.ts +2 -2
  215. package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
  216. package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
  217. package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
  218. package/dist/types/packages/empty/empty.d.ts +16 -4
  219. package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
  220. package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
  221. package/dist/types/packages/form/form.d.ts +1 -1
  222. package/dist/types/packages/form/form.taro.d.ts +1 -1
  223. package/dist/types/packages/form/index.d.ts +1 -1
  224. package/dist/types/packages/form/index.taro.d.ts +1 -1
  225. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +2 -0
  226. package/dist/types/packages/menu/menu.d.ts +1 -1
  227. package/dist/types/packages/menu/menu.taro.d.ts +1 -1
  228. package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  229. package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
  230. package/dist/types/packages/nutui.react.d.ts +98 -98
  231. package/dist/types/packages/nutui.react.taro.d.ts +98 -98
  232. package/dist/types/packages/nutui.taro.react.build.d.ts +98 -98
  233. package/dist/types/packages/picker/picker.d.ts +1 -1
  234. package/dist/types/packages/picker/picker.taro.d.ts +1 -1
  235. package/dist/types/packages/popover/popover.d.ts +1 -1
  236. package/dist/types/packages/popover/popover.taro.d.ts +1 -1
  237. package/dist/types/packages/popup/popup.d.ts +1 -1
  238. package/dist/types/packages/popup/popup.taro.d.ts +1 -1
  239. package/dist/types/packages/radio/radio.d.ts +2 -2
  240. package/dist/types/packages/radio/radio.taro.d.ts +2 -2
  241. package/dist/types/packages/rate/rate.d.ts +1 -1
  242. package/dist/types/packages/shortpassword/shortpassword.d.ts +1 -1
  243. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
  244. package/dist/types/packages/swiper/index.d.ts +1 -1
  245. package/dist/types/packages/swiper/index.taro.d.ts +1 -1
  246. package/dist/types/packages/tabs/tabs.d.ts +1 -1
  247. package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
  248. package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
  249. package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
  250. package/dist/types/packages/tour/tour.d.ts +1 -1
  251. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  252. package/package.json +5 -1
@@ -1,99 +1,99 @@
1
- import Button from '../packages/button/index.taro';
2
- import Cell from '../packages/cell/index.taro';
3
- import CellGroup from '../packages/cellgroup/index.taro';
4
- import ConfigProvider from '../packages/configprovider/index.taro';
5
- import Image from '../packages/image/index.taro';
6
- import Overlay from '../packages/overlay/index.taro';
7
- import Col from '../packages/col/index.taro';
8
- import Divider from '../packages/divider/index.taro';
9
- import Grid from '../packages/grid/index.taro';
10
- import GridItem from '../packages/griditem/index.taro';
11
- import Layout from '../packages/layout/index.taro';
12
- import Row from '../packages/row/index.taro';
13
- import Space from '../packages/space/index.taro';
14
- import Sticky from '../packages/sticky/index.taro';
15
- import SafeArea from '../packages/safearea/index.taro';
16
- import BackTop from '../packages/backtop/index.taro';
17
- import Elevator from '../packages/elevator/index.taro';
18
- import FixedNav from '../packages/fixednav/index.taro';
19
- import NavBar from '../packages/navbar/index.taro';
20
- import SideNavBar from '../packages/sidenavbar/index.taro';
21
- import SideNavBarItem from '../packages/sidenavbaritem/index.taro';
22
- import SubSideNavBar from '../packages/subsidenavbar/index.taro';
23
- import Tabbar from '../packages/tabbar/index.taro';
24
- import TabbarItem from '../packages/tabbaritem/index.taro';
25
- import TabPane from '../packages/tabpane/index.taro';
26
- import Tabs from '../packages/tabs/index.taro';
27
- import Address from '../packages/address/index.taro';
28
- import Calendar from '../packages/calendar/index.taro';
29
- import CalendarItem from '../packages/calendaritem/index.taro';
30
- import CalendarCard from '../packages/calendarcard/index.taro';
31
- import Cascader from '../packages/cascader/index.taro';
32
- import Checkbox from '../packages/checkbox/index.taro';
33
- import CheckboxGroup from '../packages/checkboxgroup/index.taro';
34
- import DatePicker from '../packages/datepicker/index.taro';
35
- import Form from '../packages/form/index.taro';
36
- import FormItem from '../packages/formitem/index.taro';
37
- import Input from '../packages/input/index.taro';
38
- import InputNumber from '../packages/inputnumber/index.taro';
39
- import Menu from '../packages/menu/index.taro';
40
- import MenuItem from '../packages/menuitem/index.taro';
41
- import NumberKeyboard from '../packages/numberkeyboard/index.taro';
42
- import Picker from '../packages/picker/index.taro';
43
- import Radio from '../packages/radio/index.taro';
44
- import RadioGroup from '../packages/radiogroup/index.taro';
45
- import Range from '../packages/range/index.taro';
46
- import Rate from '../packages/rate/index.taro';
47
- import SearchBar from '../packages/searchbar/index.taro';
48
- import ShortPassword from '../packages/shortpassword/index.taro';
49
- import Signature from '../packages/signature/index.taro';
50
- import Switch from '../packages/switch/index.taro';
51
- import TextArea from '../packages/textarea/index.taro';
52
- import Uploader from '../packages/uploader/index.taro';
53
- import ActionSheet from '../packages/actionsheet/index.taro';
54
- import Badge from '../packages/badge/index.taro';
55
- import Dialog from '../packages/dialog/index.taro';
56
- import Drag from '../packages/drag/index.taro';
57
- import Empty from '../packages/empty/index.taro';
58
- import InfiniteLoading from '../packages/infiniteloading/index.taro';
59
- import Loading from '../packages/loading/index.taro';
60
- import NoticeBar from '../packages/noticebar/index.taro';
61
- import Notify from '../packages/notify/index.taro';
62
- import Popover from '../packages/popover/index.taro';
63
- import Popup from '../packages/popup/index.taro';
64
- import PullToRefresh from '../packages/pulltorefresh/index.taro';
65
- import Skeleton from '../packages/skeleton/index.taro';
66
- import Swipe from '../packages/swipe/index.taro';
67
- import Toast from '../packages/toast/index.taro';
68
- import Animate from '../packages/animate/index.taro';
69
- import AnimatingNumbers from '../packages/animatingnumbers/index.taro';
70
- import Audio from '../packages/audio/index.taro';
71
- import Avatar from '../packages/avatar/index.taro';
72
- import AvatarGroup from '../packages/avatargroup/index.taro';
73
- import CircleProgress from '../packages/circleprogress/index.taro';
74
- import Collapse from '../packages/collapse/index.taro';
75
- import CollapseItem from '../packages/collapseitem/index.taro';
76
- import CountDown from '../packages/countdown/index.taro';
77
- import Ellipsis from '../packages/ellipsis/index.taro';
78
- import ImagePreview from '../packages/imagepreview/index.taro';
79
- import Indicator from '../packages/indicator/index.taro';
80
- import Pagination from '../packages/pagination/index.taro';
81
- import Price from '../packages/price/index.taro';
82
- import Progress from '../packages/progress/index.taro';
83
- import Step from '../packages/step/index.taro';
84
- import Steps from '../packages/steps/index.taro';
85
- import Swiper from '../packages/swiper/index.taro';
86
- import SwiperItem from '../packages/swiperitem/index.taro';
87
- import Table from '../packages/table/index.taro';
88
- import Tag from '../packages/tag/index.taro';
89
- import Tour from '../packages/tour/index.taro';
90
- import Video from '../packages/video/index.taro';
91
- import VirtualList from '../packages/virtuallist/index.taro';
92
- import Barrage from '../packages/barrage/index.taro';
93
- import Card from '../packages/card/index.taro';
94
- import TimeDetail from '../packages/timedetail/index.taro';
95
- import TimeSelect from '../packages/timeselect/index.taro';
96
- import TrendArrow from '../packages/trendarrow/index.taro';
97
- import WaterMark from '../packages/watermark/index.taro';
98
- import AvatarCropper from '../packages/avatarcropper/index.taro';
1
+ import Button from './button/index.taro';
2
+ import Cell from './cell/index.taro';
3
+ import CellGroup from './cellgroup/index.taro';
4
+ import ConfigProvider from './configprovider/index.taro';
5
+ import Image from './image/index.taro';
6
+ import Overlay from './overlay/index.taro';
7
+ import Col from './col/index.taro';
8
+ import Divider from './divider/index.taro';
9
+ import Grid from './grid/index.taro';
10
+ import GridItem from './griditem/index.taro';
11
+ import Layout from './layout/index.taro';
12
+ import Row from './row/index.taro';
13
+ import Space from './space/index.taro';
14
+ import Sticky from './sticky/index.taro';
15
+ import SafeArea from './safearea/index.taro';
16
+ import BackTop from './backtop/index.taro';
17
+ import Elevator from './elevator/index.taro';
18
+ import FixedNav from './fixednav/index.taro';
19
+ import NavBar from './navbar/index.taro';
20
+ import SideNavBar from './sidenavbar/index.taro';
21
+ import SideNavBarItem from './sidenavbaritem/index.taro';
22
+ import SubSideNavBar from './subsidenavbar/index.taro';
23
+ import Tabbar from './tabbar/index.taro';
24
+ import TabbarItem from './tabbaritem/index.taro';
25
+ import TabPane from './tabpane/index.taro';
26
+ import Tabs from './tabs/index.taro';
27
+ import Address from './address/index.taro';
28
+ import Calendar from './calendar/index.taro';
29
+ import CalendarItem from './calendaritem/index.taro';
30
+ import CalendarCard from './calendarcard/index.taro';
31
+ import Cascader from './cascader/index.taro';
32
+ import Checkbox from './checkbox/index.taro';
33
+ import CheckboxGroup from './checkboxgroup/index.taro';
34
+ import DatePicker from './datepicker/index.taro';
35
+ import Form from './form/index.taro';
36
+ import FormItem from './formitem/index.taro';
37
+ import Input from './input/index.taro';
38
+ import InputNumber from './inputnumber/index.taro';
39
+ import Menu from './menu/index.taro';
40
+ import MenuItem from './menuitem/index.taro';
41
+ import NumberKeyboard from './numberkeyboard/index.taro';
42
+ import Picker from './picker/index.taro';
43
+ import Radio from './radio/index.taro';
44
+ import RadioGroup from './radiogroup/index.taro';
45
+ import Range from './range/index.taro';
46
+ import Rate from './rate/index.taro';
47
+ import SearchBar from './searchbar/index.taro';
48
+ import ShortPassword from './shortpassword/index.taro';
49
+ import Signature from './signature/index.taro';
50
+ import Switch from './switch/index.taro';
51
+ import TextArea from './textarea/index.taro';
52
+ import Uploader from './uploader/index.taro';
53
+ import ActionSheet from './actionsheet/index.taro';
54
+ import Badge from './badge/index.taro';
55
+ import Dialog from './dialog/index.taro';
56
+ import Drag from './drag/index.taro';
57
+ import Empty from './empty/index.taro';
58
+ import InfiniteLoading from './infiniteloading/index.taro';
59
+ import Loading from './loading/index.taro';
60
+ import NoticeBar from './noticebar/index.taro';
61
+ import Notify from './notify/index.taro';
62
+ import Popover from './popover/index.taro';
63
+ import Popup from './popup/index.taro';
64
+ import PullToRefresh from './pulltorefresh/index.taro';
65
+ import Skeleton from './skeleton/index.taro';
66
+ import Swipe from './swipe/index.taro';
67
+ import Toast from './toast/index.taro';
68
+ import Animate from './animate/index.taro';
69
+ import AnimatingNumbers from './animatingnumbers/index.taro';
70
+ import Audio from './audio/index.taro';
71
+ import Avatar from './avatar/index.taro';
72
+ import AvatarGroup from './avatargroup/index.taro';
73
+ import CircleProgress from './circleprogress/index.taro';
74
+ import Collapse from './collapse/index.taro';
75
+ import CollapseItem from './collapseitem/index.taro';
76
+ import CountDown from './countdown/index.taro';
77
+ import Ellipsis from './ellipsis/index.taro';
78
+ import ImagePreview from './imagepreview/index.taro';
79
+ import Indicator from './indicator/index.taro';
80
+ import Pagination from './pagination/index.taro';
81
+ import Price from './price/index.taro';
82
+ import Progress from './progress/index.taro';
83
+ import Step from './step/index.taro';
84
+ import Steps from './steps/index.taro';
85
+ import Swiper from './swiper/index.taro';
86
+ import SwiperItem from './swiperitem/index.taro';
87
+ import Table from './table/index.taro';
88
+ import Tag from './tag/index.taro';
89
+ import Tour from './tour/index.taro';
90
+ import Video from './video/index.taro';
91
+ import VirtualList from './virtuallist/index.taro';
92
+ import Barrage from './barrage/index.taro';
93
+ import Card from './card/index.taro';
94
+ import TimeDetail from './timedetail/index.taro';
95
+ import TimeSelect from './timeselect/index.taro';
96
+ import TrendArrow from './trendarrow/index.taro';
97
+ import WaterMark from './watermark/index.taro';
98
+ import AvatarCropper from './avatarcropper/index.taro';
99
99
  export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Space, Sticky, SafeArea, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, CalendarCard, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, Loading, NoticeBar, Notify, Popover, Popup, PullToRefresh, Skeleton, Swipe, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Tour, Video, VirtualList, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark, AvatarCropper };
@@ -1,5 +1,5 @@
1
1
  import React, { RefObject } from 'react';
2
- import { PopupProps } from '../../packages/popup/popup';
2
+ import { PopupProps } from '../popup/popup';
3
3
  import { PickerOption } from './types';
4
4
  import { BasicComponent } from '../../utils/typings';
5
5
  export type PickerActions = {
@@ -1,5 +1,5 @@
1
1
  import React, { RefObject } from 'react';
2
- import { PopupProps } from '../../packages/popup/popup.taro';
2
+ import { PopupProps } from '../popup/popup.taro';
3
3
  import { PickerOption } from './types';
4
4
  import { BasicComponent } from '../../utils/typings';
5
5
  export type PickerActions = {
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { PopupProps } from '../../packages/popup/popup';
2
+ import { PopupProps } from '../popup/popup';
3
3
  export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
4
4
  export interface List {
5
5
  key?: string;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { PopupProps } from '../../packages/popup/popup.taro';
2
+ import { PopupProps } from '../popup/popup.taro';
3
3
  export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
4
4
  export interface List {
5
5
  key?: string;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, MouseEvent, ReactNode } from 'react';
2
- import { OverlayProps } from '../../packages/overlay/overlay';
2
+ import { OverlayProps } from '../overlay/overlay';
3
3
  type Teleport = HTMLElement | (() => HTMLElement) | null;
4
4
  export interface PopupProps extends OverlayProps {
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
2
  import { ITouchEvent } from '@tarojs/components';
3
- import { OverlayProps } from '../../packages/overlay/overlay.taro';
3
+ import { OverlayProps } from '../overlay/overlay.taro';
4
4
  type Teleport = HTMLElement | (() => HTMLElement) | null;
5
5
  export interface PopupProps extends OverlayProps {
6
6
  position: string;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import RadioGroup from '../../packages/radiogroup';
2
+ import RadioGroup from '../radiogroup';
3
3
  import { BasicComponent } from '../../utils/typings';
4
- import { RadioPosition, RadioShape } from '../../packages/radio/types';
4
+ import { RadioPosition, RadioShape } from './types';
5
5
  export interface RadioProps extends BasicComponent {
6
6
  /**
7
7
  * 是否禁用选择
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import RadioGroup from '../../packages/radiogroup/index.taro';
2
+ import RadioGroup from '../radiogroup/index.taro';
3
3
  import { BasicComponent } from '../../utils/typings';
4
- import { RadioPosition, RadioShape } from '../../packages/radio/types';
4
+ import { RadioPosition, RadioShape } from './types';
5
5
  export interface RadioProps extends BasicComponent {
6
6
  disabled: boolean;
7
7
  checked: boolean;
@@ -57,7 +57,7 @@ export interface RateProps extends BasicComponent {
57
57
  */
58
58
  onChange: (value: number) => void
59
59
  /**
60
- * TouchEnd 事件
60
+ * touch 滑动结束时触发
61
61
  * @default -
62
62
  */
63
63
  onTouchEnd: (e: TouchEvent, value: number) => void
@@ -1,5 +1,5 @@
1
1
  import React, { ForwardRefRenderFunction, ReactNode } from 'react';
2
- import { PopupProps } from '../../packages/popup/index';
2
+ import { PopupProps } from '../popup/index';
3
3
  export interface ShortPasswordProps extends PopupProps {
4
4
  /**
5
5
  * 密码字符串
@@ -1,5 +1,5 @@
1
1
  import React, { ForwardRefRenderFunction, ReactNode } from 'react';
2
- import { PopupProps } from '../../packages/popup/popup.taro';
2
+ import { PopupProps } from '../popup/popup.taro';
3
3
  export interface ShortPasswordProps extends PopupProps {
4
4
  value: string;
5
5
  visible: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SwiperProps, SwiperRef } from './swiper';
3
- import SwiperItem from '../../packages/swiperitem';
3
+ import SwiperItem from '../swiperitem';
4
4
  export type { SwiperProps, SwiperRef } from './swiper';
5
5
  type CompoundedComponent = React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<SwiperRef>> & {
6
6
  Item: typeof SwiperItem;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SwiperProps } from './swiper.taro';
3
- import SwiperItem from '../../packages/swiperitem/index.taro';
3
+ import SwiperItem from '../swiperitem/index.taro';
4
4
  export type { SwiperProps } from './swiper.taro';
5
5
  type CompoundedComponent = React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<any>> & {
6
6
  Item: typeof SwiperItem;
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import { BasicComponent } from '../../utils/typings';
3
- import TabPane from '../../packages/tabpane';
3
+ import TabPane from '../tabpane';
4
4
  export type TabsTitle = {
5
5
  title: string;
6
6
  disabled: boolean;
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import { BasicComponent } from '../../utils/typings';
3
- import TabPane from '../../packages/tabpane/index.taro';
3
+ import TabPane from '../tabpane/index.taro';
4
4
  export type TabsTitle = {
5
5
  title: string;
6
6
  disabled: boolean;
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import { BasicComponent } from '../../utils/typings';
3
- import { TimeType, DateType, OptionKeyType } from '../../packages/timeselect';
3
+ import { TimeType, DateType, OptionKeyType } from '../timeselect';
4
4
  export interface TimeDetailProps extends BasicComponent {
5
5
  activeDate: string;
6
6
  activeTime: DateType[];
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import { BasicComponent } from '../../utils/typings';
3
- import { TimeType, DateType, OptionKeyType } from '../../packages/timeselect/index.taro';
3
+ import { TimeType, DateType, OptionKeyType } from '../timeselect/index.taro';
4
4
  export interface TimeDetailProps extends BasicComponent {
5
5
  activeDate: string;
6
6
  activeTime: DateType[];
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode, FunctionComponent } from 'react';
2
2
  import type { MouseEvent } from 'react';
3
- import { PopoverLocation } from '../../packages/popover/popover';
3
+ import { PopoverLocation } from '../popover/popover';
4
4
  import { BasicComponent } from '../../utils/typings';
5
5
  export interface ListOptions {
6
6
  target: Element | string;
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode, FunctionComponent } from 'react';
2
2
  import type { MouseEvent } from 'react';
3
- import { PopoverLocation } from '../../packages/popover/index.taro';
3
+ import { PopoverLocation } from '../popover/index.taro';
4
4
  import { BasicComponent } from '../../utils/typings';
5
5
  export interface ListOptions {
6
6
  target: Element | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",
@@ -52,12 +52,16 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@babel/runtime": "^7.23.9",
55
+ "@mdx-js/mdx": "^3.0.1",
56
+ "@mdx-js/react": "^3.0.1",
57
+ "@mdx-js/rollup": "^3.0.1",
55
58
  "@nutui/icons-react": "^1.0.2",
56
59
  "@nutui/touch-emulator": "^1.0.0",
57
60
  "@react-spring/web": "~9.6.1",
58
61
  "@use-gesture/react": "10.2.20",
59
62
  "async-validator": "^4.2.5",
60
63
  "classnames": "^2.5.1",
64
+ "highlight.js": "^11.9.0",
61
65
  "lodash.isequal": "^4.5.0",
62
66
  "lodash.kebabcase": "^4.1.1",
63
67
  "react-transition-group": "^4.4.5"