react-vant-nova 1.0.0-test

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 (1783) hide show
  1. package/README.md +99 -0
  2. package/bundle/index.css +6711 -0
  3. package/bundle/index.min.css +1 -0
  4. package/bundle/react-vant-nova.es.js +14636 -0
  5. package/bundle/react-vant-nova.js +25073 -0
  6. package/bundle/react-vant-nova.min.js +3 -0
  7. package/es/action-bar/ActionBar.d.ts +4 -0
  8. package/es/action-bar/ActionBar.js +32 -0
  9. package/es/action-bar/ActionBarButton.d.ts +6 -0
  10. package/es/action-bar/ActionBarButton.js +55 -0
  11. package/es/action-bar/ActionBarContext.d.ts +6 -0
  12. package/es/action-bar/ActionBarContext.js +3 -0
  13. package/es/action-bar/ActionBarIcon.d.ts +4 -0
  14. package/es/action-bar/ActionBarIcon.js +31 -0
  15. package/es/action-bar/PropsType.d.ts +34 -0
  16. package/es/action-bar/PropsType.js +1 -0
  17. package/es/action-bar/index.d.ts +11 -0
  18. package/es/action-bar/index.js +10 -0
  19. package/es/action-bar/style/index.css +76 -0
  20. package/es/action-bar/style/var.css +0 -0
  21. package/es/action-sheet/ActionSheet.d.ts +4 -0
  22. package/es/action-sheet/ActionSheet.js +136 -0
  23. package/es/action-sheet/PropsType.d.ts +38 -0
  24. package/es/action-sheet/PropsType.js +1 -0
  25. package/es/action-sheet/index.d.ts +5 -0
  26. package/es/action-sheet/index.js +4 -0
  27. package/es/action-sheet/style/index.css +126 -0
  28. package/es/action-sheet/style/var.css +0 -0
  29. package/es/area/Area.d.ts +4 -0
  30. package/es/area/Area.js +73 -0
  31. package/es/area/PropsType.d.ts +30 -0
  32. package/es/area/PropsType.js +1 -0
  33. package/es/area/index.d.ts +4 -0
  34. package/es/area/index.js +3 -0
  35. package/es/badge/Badge.d.ts +4 -0
  36. package/es/badge/Badge.js +84 -0
  37. package/es/badge/PropsType.d.ts +28 -0
  38. package/es/badge/PropsType.js +1 -0
  39. package/es/badge/index.d.ts +5 -0
  40. package/es/badge/index.js +4 -0
  41. package/es/badge/style/index.css +45 -0
  42. package/es/badge/style/var.css +0 -0
  43. package/es/button/Button.d.ts +4 -0
  44. package/es/button/Button.js +134 -0
  45. package/es/button/ButtonContext.d.ts +7 -0
  46. package/es/button/ButtonContext.js +3 -0
  47. package/es/button/ButtonGroup.d.ts +4 -0
  48. package/es/button/ButtonGroup.js +38 -0
  49. package/es/button/PropsType.d.ts +67 -0
  50. package/es/button/PropsType.js +1 -0
  51. package/es/button/index.d.ts +8 -0
  52. package/es/button/index.js +8 -0
  53. package/es/button/style/index.css +242 -0
  54. package/es/button/style/var.css +0 -0
  55. package/es/calendar/Calendar.d.ts +4 -0
  56. package/es/calendar/Calendar.js +488 -0
  57. package/es/calendar/CalendarDay.d.ts +4 -0
  58. package/es/calendar/CalendarDay.js +126 -0
  59. package/es/calendar/CalendarHeader.d.ts +4 -0
  60. package/es/calendar/CalendarHeader.js +63 -0
  61. package/es/calendar/CalendarMonth.d.ts +4 -0
  62. package/es/calendar/CalendarMonth.js +202 -0
  63. package/es/calendar/PropsType.d.ts +118 -0
  64. package/es/calendar/PropsType.js +1 -0
  65. package/es/calendar/index.d.ts +5 -0
  66. package/es/calendar/index.js +4 -0
  67. package/es/calendar/style/index.css +186 -0
  68. package/es/calendar/style/var.css +0 -0
  69. package/es/calendar/utils.d.ts +10 -0
  70. package/es/calendar/utils.js +42 -0
  71. package/es/card/Card.d.ts +8 -0
  72. package/es/card/Card.js +79 -0
  73. package/es/card/PropsType.d.ts +34 -0
  74. package/es/card/PropsType.js +1 -0
  75. package/es/card/index.d.ts +10 -0
  76. package/es/card/index.js +10 -0
  77. package/es/card/style/index.css +68 -0
  78. package/es/card/style/var.css +0 -0
  79. package/es/cascader/Cascader.d.ts +5 -0
  80. package/es/cascader/Cascader.js +282 -0
  81. package/es/cascader/PropsType.d.ts +68 -0
  82. package/es/cascader/PropsType.js +1 -0
  83. package/es/cascader/index.d.ts +5 -0
  84. package/es/cascader/index.js +4 -0
  85. package/es/cascader/style/index.css +90 -0
  86. package/es/cascader/style/var.css +0 -0
  87. package/es/cascader/useCascaderExtend.d.ts +12 -0
  88. package/es/cascader/useCascaderExtend.js +45 -0
  89. package/es/cell/Cell.d.ts +4 -0
  90. package/es/cell/Cell.js +107 -0
  91. package/es/cell/CellGroup.d.ts +4 -0
  92. package/es/cell/CellGroup.js +42 -0
  93. package/es/cell/PropsType.d.ts +53 -0
  94. package/es/cell/PropsType.js +1 -0
  95. package/es/cell/index.d.ts +9 -0
  96. package/es/cell/index.js +8 -0
  97. package/es/cell/style/index.css +140 -0
  98. package/es/cell/style/var.css +0 -0
  99. package/es/checkbox/Checkbox.d.ts +4 -0
  100. package/es/checkbox/Checkbox.js +80 -0
  101. package/es/checkbox/CheckboxContext.d.ts +11 -0
  102. package/es/checkbox/CheckboxContext.js +3 -0
  103. package/es/checkbox/CheckboxGroup.d.ts +4 -0
  104. package/es/checkbox/CheckboxGroup.js +68 -0
  105. package/es/checkbox/Checker.d.ts +4 -0
  106. package/es/checkbox/Checker.js +97 -0
  107. package/es/checkbox/PropsType.d.ts +96 -0
  108. package/es/checkbox/PropsType.js +1 -0
  109. package/es/checkbox/index.d.ts +9 -0
  110. package/es/checkbox/index.js +8 -0
  111. package/es/checkbox/style/index.css +84 -0
  112. package/es/checkbox/style/var.css +0 -0
  113. package/es/circle/Circle.d.ts +4 -0
  114. package/es/circle/Circle.js +156 -0
  115. package/es/circle/PropsType.d.ts +30 -0
  116. package/es/circle/PropsType.js +1 -0
  117. package/es/circle/index.d.ts +5 -0
  118. package/es/circle/index.js +4 -0
  119. package/es/circle/style/index.css +44 -0
  120. package/es/circle/style/var.css +0 -0
  121. package/es/collapse/Collapse.d.ts +4 -0
  122. package/es/collapse/Collapse.js +88 -0
  123. package/es/collapse/CollapseContext.d.ts +7 -0
  124. package/es/collapse/CollapseContext.js +3 -0
  125. package/es/collapse/CollapseItem.d.ts +4 -0
  126. package/es/collapse/CollapseItem.js +125 -0
  127. package/es/collapse/PropsType.d.ts +31 -0
  128. package/es/collapse/PropsType.js +1 -0
  129. package/es/collapse/index.d.ts +9 -0
  130. package/es/collapse/index.js +8 -0
  131. package/es/collapse/style/index.css +59 -0
  132. package/es/collapse/style/var.css +0 -0
  133. package/es/config-provider/ConfigProvider.d.ts +4 -0
  134. package/es/config-provider/ConfigProvider.js +47 -0
  135. package/es/config-provider/ConfigProviderContext.d.ts +8 -0
  136. package/es/config-provider/ConfigProviderContext.js +9 -0
  137. package/es/config-provider/PropsType.d.ts +14 -0
  138. package/es/config-provider/PropsType.js +1 -0
  139. package/es/config-provider/index.d.ts +3 -0
  140. package/es/config-provider/index.js +2 -0
  141. package/es/count-down/CountDown.d.ts +4 -0
  142. package/es/count-down/CountDown.js +53 -0
  143. package/es/count-down/PropsType.d.ts +38 -0
  144. package/es/count-down/PropsType.js +1 -0
  145. package/es/count-down/index.d.ts +5 -0
  146. package/es/count-down/index.js +4 -0
  147. package/es/count-down/style/index.css +10 -0
  148. package/es/count-down/style/var.css +0 -0
  149. package/es/count-down/utils.d.ts +2 -0
  150. package/es/count-down/utils.js +43 -0
  151. package/es/coupon-cell/CouponCell.d.ts +4 -0
  152. package/es/coupon-cell/CouponCell.js +51 -0
  153. package/es/coupon-cell/index.d.ts +4 -0
  154. package/es/coupon-cell/index.js +4 -0
  155. package/es/coupon-cell/style/index.css +6 -0
  156. package/es/coupon-cell/style/var.css +0 -0
  157. package/es/coupon-list/Coupon.d.ts +4 -0
  158. package/es/coupon-list/Coupon.js +114 -0
  159. package/es/coupon-list/CouponList.d.ts +4 -0
  160. package/es/coupon-list/CouponList.js +172 -0
  161. package/es/coupon-list/PropsType.d.ts +59 -0
  162. package/es/coupon-list/PropsType.js +1 -0
  163. package/es/coupon-list/index.d.ts +3 -0
  164. package/es/coupon-list/index.js +3 -0
  165. package/es/coupon-list/style/index.css +194 -0
  166. package/es/coupon-list/style/var.css +0 -0
  167. package/es/datetime-picker/DatePicker.d.ts +4 -0
  168. package/es/datetime-picker/DatePicker.js +236 -0
  169. package/es/datetime-picker/DatetimePicker.d.ts +6 -0
  170. package/es/datetime-picker/DatetimePicker.js +20 -0
  171. package/es/datetime-picker/PropsType.d.ts +49 -0
  172. package/es/datetime-picker/PropsType.js +1 -0
  173. package/es/datetime-picker/TimePicker.d.ts +4 -0
  174. package/es/datetime-picker/TimePicker.js +103 -0
  175. package/es/datetime-picker/index.d.ts +3 -0
  176. package/es/datetime-picker/index.js +2 -0
  177. package/es/datetime-picker/utils.d.ts +5 -0
  178. package/es/datetime-picker/utils.js +35 -0
  179. package/es/dialog/Dialog.d.ts +4 -0
  180. package/es/dialog/Dialog.js +146 -0
  181. package/es/dialog/PropsType.d.ts +70 -0
  182. package/es/dialog/PropsType.js +1 -0
  183. package/es/dialog/index.d.ts +4 -0
  184. package/es/dialog/index.js +4 -0
  185. package/es/dialog/method.d.ts +3 -0
  186. package/es/dialog/method.js +145 -0
  187. package/es/dialog/style/index.css +121 -0
  188. package/es/dialog/style/var.css +0 -0
  189. package/es/divider/Divider.d.ts +4 -0
  190. package/es/divider/Divider.js +28 -0
  191. package/es/divider/PropsType.d.ts +22 -0
  192. package/es/divider/PropsType.js +1 -0
  193. package/es/divider/index.d.ts +4 -0
  194. package/es/divider/index.js +3 -0
  195. package/es/divider/style/index.css +72 -0
  196. package/es/divider/style/var.css +0 -0
  197. package/es/dropdown-menu/DropdownMenu.d.ts +4 -0
  198. package/es/dropdown-menu/DropdownMenu.js +209 -0
  199. package/es/dropdown-menu/DropdownMenuContext.d.ts +11 -0
  200. package/es/dropdown-menu/DropdownMenuContext.js +3 -0
  201. package/es/dropdown-menu/DropdownMenuItem.d.ts +4 -0
  202. package/es/dropdown-menu/DropdownMenuItem.js +151 -0
  203. package/es/dropdown-menu/PropsType.d.ts +95 -0
  204. package/es/dropdown-menu/PropsType.js +1 -0
  205. package/es/dropdown-menu/index.d.ts +8 -0
  206. package/es/dropdown-menu/index.js +8 -0
  207. package/es/dropdown-menu/style/index.css +104 -0
  208. package/es/dropdown-menu/style/var.css +0 -0
  209. package/es/empty/Empty.d.ts +4 -0
  210. package/es/empty/Empty.js +63 -0
  211. package/es/empty/Network.d.ts +1 -0
  212. package/es/empty/Network.js +143 -0
  213. package/es/empty/PropsType.d.ts +9 -0
  214. package/es/empty/PropsType.js +1 -0
  215. package/es/empty/index.d.ts +4 -0
  216. package/es/empty/index.js +3 -0
  217. package/es/empty/style/index.css +36 -0
  218. package/es/empty/style/var.css +0 -0
  219. package/es/field/Field.d.ts +7 -0
  220. package/es/field/Field.js +287 -0
  221. package/es/field/PropsType.d.ts +82 -0
  222. package/es/field/PropsType.js +1 -0
  223. package/es/field/index.d.ts +5 -0
  224. package/es/field/index.js +4 -0
  225. package/es/field/style/index.css +132 -0
  226. package/es/field/style/var.css +0 -0
  227. package/es/flex/Flex.d.ts +4 -0
  228. package/es/flex/Flex.js +43 -0
  229. package/es/flex/FlexContext.d.ts +6 -0
  230. package/es/flex/FlexContext.js +3 -0
  231. package/es/flex/FlexItem.d.ts +4 -0
  232. package/es/flex/FlexItem.js +52 -0
  233. package/es/flex/PropsType.d.ts +35 -0
  234. package/es/flex/PropsType.js +1 -0
  235. package/es/flex/index.d.ts +8 -0
  236. package/es/flex/index.js +8 -0
  237. package/es/flex/style/index.css +187 -0
  238. package/es/flex/style/mixins.css +0 -0
  239. package/es/floating-ball/FloatingBall.d.ts +4 -0
  240. package/es/floating-ball/FloatingBall.js +272 -0
  241. package/es/floating-ball/FloatingBallContext.d.ts +6 -0
  242. package/es/floating-ball/FloatingBallContext.js +3 -0
  243. package/es/floating-ball/FloatingBallItem.d.ts +3 -0
  244. package/es/floating-ball/FloatingBallItem.js +16 -0
  245. package/es/floating-ball/PropsType.d.ts +77 -0
  246. package/es/floating-ball/PropsType.js +1 -0
  247. package/es/floating-ball/index.d.ts +4 -0
  248. package/es/floating-ball/index.js +3 -0
  249. package/es/floating-ball/style/index.css +197 -0
  250. package/es/floating-ball/style/var.css +4 -0
  251. package/es/floating-ball/useFloatingTouch.d.ts +66 -0
  252. package/es/floating-ball/useFloatingTouch.js +106 -0
  253. package/es/floating-panel/FloatingPanel.d.ts +4 -0
  254. package/es/floating-panel/FloatingPanel.js +125 -0
  255. package/es/floating-panel/PropsType.d.ts +8 -0
  256. package/es/floating-panel/PropsType.js +1 -0
  257. package/es/floating-panel/index.d.ts +6 -0
  258. package/es/floating-panel/index.js +4 -0
  259. package/es/floating-panel/style/index.css +38 -0
  260. package/es/floating-panel/style/var.css +0 -0
  261. package/es/form/Form.d.ts +10 -0
  262. package/es/form/Form.js +48 -0
  263. package/es/form/FormContext.d.ts +11 -0
  264. package/es/form/FormContext.js +9 -0
  265. package/es/form/FormItem.d.ts +4 -0
  266. package/es/form/FormItem.js +197 -0
  267. package/es/form/FormSubscribe.d.ts +16 -0
  268. package/es/form/FormSubscribe.js +24 -0
  269. package/es/form/PropsType.d.ts +41 -0
  270. package/es/form/PropsType.js +1 -0
  271. package/es/form/index.d.ts +19 -0
  272. package/es/form/index.js +13 -0
  273. package/es/form/style/index.css +8 -0
  274. package/es/form/style/var.css +0 -0
  275. package/es/form/utils.d.ts +1 -0
  276. package/es/form/utils.js +16 -0
  277. package/es/grid/Grid.d.ts +4 -0
  278. package/es/grid/Grid.js +35 -0
  279. package/es/grid/GridItem.d.ts +8 -0
  280. package/es/grid/GridItem.js +128 -0
  281. package/es/grid/PropsType.d.ts +40 -0
  282. package/es/grid/PropsType.js +1 -0
  283. package/es/grid/index.d.ts +11 -0
  284. package/es/grid/index.js +7 -0
  285. package/es/grid/style/index.css +80 -0
  286. package/es/grid/style/var.css +0 -0
  287. package/es/hooks/create-update-effect.d.ts +4 -0
  288. package/es/hooks/create-update-effect.js +17 -0
  289. package/es/hooks/index.d.ts +38 -0
  290. package/es/hooks/index.js +37 -0
  291. package/es/hooks/use-click-away.d.ts +5 -0
  292. package/es/hooks/use-click-away.js +24 -0
  293. package/es/hooks/use-count-down.d.ts +32 -0
  294. package/es/hooks/use-count-down.js +111 -0
  295. package/es/hooks/use-debunce-effect.d.ts +4 -0
  296. package/es/hooks/use-debunce-effect.js +16 -0
  297. package/es/hooks/use-debunce-fn.d.ts +18 -0
  298. package/es/hooks/use-debunce-fn.js +28 -0
  299. package/es/hooks/use-drag-and-pinch.d.ts +1 -0
  300. package/es/hooks/use-drag-and-pinch.js +2 -0
  301. package/es/hooks/use-effect-with-target.d.ts +4 -0
  302. package/es/hooks/use-effect-with-target.js +53 -0
  303. package/es/hooks/use-event-listener.d.ts +11 -0
  304. package/es/hooks/use-event-listener.js +54 -0
  305. package/es/hooks/use-form-smart.d.ts +20 -0
  306. package/es/hooks/use-form-smart.js +54 -0
  307. package/es/hooks/use-height.d.ts +4 -0
  308. package/es/hooks/use-height.js +12 -0
  309. package/es/hooks/use-in-viewport.d.ts +8 -0
  310. package/es/hooks/use-in-viewport.js +27 -0
  311. package/es/hooks/use-isomorphic-layout-effect.d.ts +4 -0
  312. package/es/hooks/use-isomorphic-layout-effect.js +6 -0
  313. package/es/hooks/use-latest.d.ts +3 -0
  314. package/es/hooks/use-latest.js +7 -0
  315. package/es/hooks/use-lazy-effect.d.ts +3 -0
  316. package/es/hooks/use-lazy-effect.js +11 -0
  317. package/es/hooks/use-lazy-render.d.ts +3 -0
  318. package/es/hooks/use-lazy-render.js +11 -0
  319. package/es/hooks/use-lock-fn.d.ts +2 -0
  320. package/es/hooks/use-lock-fn.js +18 -0
  321. package/es/hooks/use-lock-scroll.d.ts +2 -0
  322. package/es/hooks/use-lock-scroll.js +61 -0
  323. package/es/hooks/use-memoized-fn.d.ts +3 -0
  324. package/es/hooks/use-memoized-fn.js +22 -0
  325. package/es/hooks/use-merged-state.d.ts +5 -0
  326. package/es/hooks/use-merged-state.js +22 -0
  327. package/es/hooks/use-mount.d.ts +2 -0
  328. package/es/hooks/use-mount.js +8 -0
  329. package/es/hooks/use-next-tick.d.ts +2 -0
  330. package/es/hooks/use-next-tick.js +17 -0
  331. package/es/hooks/use-page-visibility.d.ts +3 -0
  332. package/es/hooks/use-page-visibility.js +20 -0
  333. package/es/hooks/use-props-value.d.ts +8 -0
  334. package/es/hooks/use-props-value.js +24 -0
  335. package/es/hooks/use-rect.d.ts +11 -0
  336. package/es/hooks/use-rect.js +31 -0
  337. package/es/hooks/use-ref-state.d.ts +4 -0
  338. package/es/hooks/use-ref-state.js +13 -0
  339. package/es/hooks/use-refs.d.ts +1 -0
  340. package/es/hooks/use-refs.js +12 -0
  341. package/es/hooks/use-resize-effect.d.ts +2 -0
  342. package/es/hooks/use-resize-effect.js +20 -0
  343. package/es/hooks/use-scroll-parent.d.ts +5 -0
  344. package/es/hooks/use-scroll-parent.js +43 -0
  345. package/es/hooks/use-set-state.d.ts +3 -0
  346. package/es/hooks/use-set-state.js +14 -0
  347. package/es/hooks/use-throttle-fn.d.ts +17 -0
  348. package/es/hooks/use-throttle-fn.js +27 -0
  349. package/es/hooks/use-touch.d.ts +17 -0
  350. package/es/hooks/use-touch.js +67 -0
  351. package/es/hooks/use-unmount.d.ts +2 -0
  352. package/es/hooks/use-unmount.js +16 -0
  353. package/es/hooks/use-unmounted-ref.d.ts +2 -0
  354. package/es/hooks/use-unmounted-ref.js +13 -0
  355. package/es/hooks/use-update-effect.d.ts +3 -0
  356. package/es/hooks/use-update-effect.js +13 -0
  357. package/es/hooks/use-update.d.ts +2 -0
  358. package/es/hooks/use-update.js +6 -0
  359. package/es/hooks/use-visibility-change.d.ts +2 -0
  360. package/es/hooks/use-visibility-change.js +33 -0
  361. package/es/hooks/use-window-size.d.ts +5 -0
  362. package/es/hooks/use-window-size.js +18 -0
  363. package/es/image/Image.d.ts +4 -0
  364. package/es/image/Image.js +128 -0
  365. package/es/image/LazyImage.d.ts +9 -0
  366. package/es/image/LazyImage.js +63 -0
  367. package/es/image/PropsType.d.ts +55 -0
  368. package/es/image/PropsType.js +1 -0
  369. package/es/image/index.d.ts +5 -0
  370. package/es/image/index.js +4 -0
  371. package/es/image/style/index.css +70 -0
  372. package/es/image/style/var.css +0 -0
  373. package/es/image-preview/ImagePreview.d.ts +6 -0
  374. package/es/image-preview/ImagePreview.js +105 -0
  375. package/es/image-preview/PropsType.d.ts +47 -0
  376. package/es/image-preview/PropsType.js +1 -0
  377. package/es/image-preview/index.d.ts +4 -0
  378. package/es/image-preview/index.js +4 -0
  379. package/es/image-preview/method.d.ts +3 -0
  380. package/es/image-preview/method.js +66 -0
  381. package/es/image-preview/slide.d.ts +12 -0
  382. package/es/image-preview/slide.js +172 -0
  383. package/es/image-preview/slides.d.ts +14 -0
  384. package/es/image-preview/slides.js +94 -0
  385. package/es/image-preview/style/index.css +118 -0
  386. package/es/image-preview/style/var.css +0 -0
  387. package/es/index-bar/IndexAnchor.d.ts +5 -0
  388. package/es/index-bar/IndexAnchor.js +98 -0
  389. package/es/index-bar/IndexBar.d.ts +4 -0
  390. package/es/index-bar/IndexBar.js +253 -0
  391. package/es/index-bar/IndexBarContext.d.ts +8 -0
  392. package/es/index-bar/IndexBarContext.js +3 -0
  393. package/es/index-bar/PropsType.d.ts +37 -0
  394. package/es/index-bar/PropsType.js +1 -0
  395. package/es/index-bar/index.d.ts +8 -0
  396. package/es/index-bar/index.js +7 -0
  397. package/es/index-bar/style/index.css +54 -0
  398. package/es/index-bar/style/var.css +0 -0
  399. package/es/index.d.ts +73 -0
  400. package/es/index.js +73 -0
  401. package/es/input/Input.d.ts +4 -0
  402. package/es/input/Input.js +172 -0
  403. package/es/input/PropsType.d.ts +55 -0
  404. package/es/input/PropsType.js +1 -0
  405. package/es/input/index.d.ts +9 -0
  406. package/es/input/index.js +8 -0
  407. package/es/input/style/index.css +82 -0
  408. package/es/input/style/var.css +0 -0
  409. package/es/lazyload/Lazyload.d.ts +4 -0
  410. package/es/lazyload/Lazyload.js +36 -0
  411. package/es/lazyload/PropsType.d.ts +9 -0
  412. package/es/lazyload/PropsType.js +1 -0
  413. package/es/lazyload/index.d.ts +4 -0
  414. package/es/lazyload/index.js +4 -0
  415. package/es/lazyload/style/index.css +5 -0
  416. package/es/lazyload/style/var.css +0 -0
  417. package/es/list/List.d.ts +4 -0
  418. package/es/list/List.js +24 -0
  419. package/es/list/LoadMore.d.ts +4 -0
  420. package/es/list/LoadMore.js +134 -0
  421. package/es/list/PropsType.d.ts +31 -0
  422. package/es/list/PropsType.js +1 -0
  423. package/es/list/index.d.ts +5 -0
  424. package/es/list/index.js +4 -0
  425. package/es/list/style/index.css +18 -0
  426. package/es/list/style/var.css +0 -0
  427. package/es/loading/Loading.d.ts +4 -0
  428. package/es/loading/Loading.js +88 -0
  429. package/es/loading/PropsType.d.ts +25 -0
  430. package/es/loading/PropsType.js +1 -0
  431. package/es/loading/index.d.ts +5 -0
  432. package/es/loading/index.js +4 -0
  433. package/es/loading/style/index.css +199 -0
  434. package/es/loading/style/var.css +0 -0
  435. package/es/locale/index.d.ts +7 -0
  436. package/es/locale/index.js +6 -0
  437. package/es/locale/lang/base.d.ts +75 -0
  438. package/es/locale/lang/base.js +74 -0
  439. package/es/locale/lang/en-US.d.ts +75 -0
  440. package/es/locale/lang/en-US.js +74 -0
  441. package/es/locale/lang/fr-FR.d.ts +74 -0
  442. package/es/locale/lang/fr-FR.js +73 -0
  443. package/es/locale/lang/ja-JP.d.ts +75 -0
  444. package/es/locale/lang/ja-JP.js +74 -0
  445. package/es/locale/lang/types.d.ts +75 -0
  446. package/es/locale/lang/types.js +1 -0
  447. package/es/locale/lang/zh-CN.d.ts +11 -0
  448. package/es/locale/lang/zh-CN.js +8 -0
  449. package/es/locale/lang/zh-HK.d.ts +75 -0
  450. package/es/locale/lang/zh-HK.js +74 -0
  451. package/es/locale/lang/zh-TW.d.ts +75 -0
  452. package/es/locale/lang/zh-TW.js +74 -0
  453. package/es/nav-bar/Navbar.d.ts +4 -0
  454. package/es/nav-bar/Navbar.js +104 -0
  455. package/es/nav-bar/PropsType.d.ts +25 -0
  456. package/es/nav-bar/PropsType.js +1 -0
  457. package/es/nav-bar/index.d.ts +4 -0
  458. package/es/nav-bar/index.js +3 -0
  459. package/es/nav-bar/style/index.css +72 -0
  460. package/es/nav-bar/style/var.css +0 -0
  461. package/es/notice-bar/NoticeBar.d.ts +4 -0
  462. package/es/notice-bar/NoticeBar.js +176 -0
  463. package/es/notice-bar/PropsType.d.ts +36 -0
  464. package/es/notice-bar/PropsType.js +1 -0
  465. package/es/notice-bar/index.d.ts +4 -0
  466. package/es/notice-bar/index.js +3 -0
  467. package/es/notice-bar/style/index.css +62 -0
  468. package/es/notice-bar/style/var.css +0 -0
  469. package/es/notify/Notify.d.ts +4 -0
  470. package/es/notify/Notify.js +41 -0
  471. package/es/notify/PropsType.d.ts +59 -0
  472. package/es/notify/PropsType.js +1 -0
  473. package/es/notify/index.d.ts +5 -0
  474. package/es/notify/index.js +4 -0
  475. package/es/notify/method.d.ts +11 -0
  476. package/es/notify/method.js +112 -0
  477. package/es/notify/style/index.css +35 -0
  478. package/es/notify/style/var.css +0 -0
  479. package/es/number-keyboard/NumberKeyboard.d.ts +4 -0
  480. package/es/number-keyboard/NumberKeyboard.js +226 -0
  481. package/es/number-keyboard/NumberKeyboardKey.d.ts +4 -0
  482. package/es/number-keyboard/NumberKeyboardKey.js +105 -0
  483. package/es/number-keyboard/PropsType.d.ts +75 -0
  484. package/es/number-keyboard/PropsType.js +1 -0
  485. package/es/number-keyboard/index.d.ts +5 -0
  486. package/es/number-keyboard/index.js +4 -0
  487. package/es/number-keyboard/style/index.css +134 -0
  488. package/es/number-keyboard/style/var.css +0 -0
  489. package/es/overlay/Overlay.d.ts +4 -0
  490. package/es/overlay/Overlay.js +60 -0
  491. package/es/overlay/PropsType.d.ts +17 -0
  492. package/es/overlay/PropsType.js +1 -0
  493. package/es/overlay/index.d.ts +5 -0
  494. package/es/overlay/index.js +4 -0
  495. package/es/overlay/style/index.css +13 -0
  496. package/es/overlay/style/var.css +0 -0
  497. package/es/pagination/Pagination.d.ts +4 -0
  498. package/es/pagination/Pagination.js +138 -0
  499. package/es/pagination/PropsType.d.ts +33 -0
  500. package/es/pagination/PropsType.js +1 -0
  501. package/es/pagination/index.d.ts +4 -0
  502. package/es/pagination/index.js +3 -0
  503. package/es/pagination/style/index.css +69 -0
  504. package/es/pagination/style/var.css +0 -0
  505. package/es/password-input/PasswordInput.d.ts +4 -0
  506. package/es/password-input/PasswordInput.js +193 -0
  507. package/es/password-input/PropsType.d.ts +36 -0
  508. package/es/password-input/PropsType.js +1 -0
  509. package/es/password-input/index.d.ts +4 -0
  510. package/es/password-input/index.js +3 -0
  511. package/es/password-input/style/index.css +112 -0
  512. package/es/password-input/style/var.css +0 -0
  513. package/es/picker/Picker.d.ts +7 -0
  514. package/es/picker/Picker.js +309 -0
  515. package/es/picker/PickerColumn.d.ts +8 -0
  516. package/es/picker/PickerColumn.js +270 -0
  517. package/es/picker/PropsType.d.ts +106 -0
  518. package/es/picker/PropsType.js +1 -0
  519. package/es/picker/columnsExtend.d.ts +9 -0
  520. package/es/picker/columnsExtend.js +124 -0
  521. package/es/picker/index.d.ts +5 -0
  522. package/es/picker/index.js +4 -0
  523. package/es/picker/style/index.css +113 -0
  524. package/es/picker/style/var.css +0 -0
  525. package/es/popover/Popover.d.ts +4 -0
  526. package/es/popover/Popover.js +188 -0
  527. package/es/popover/PropsType.d.ts +71 -0
  528. package/es/popover/PropsType.js +1 -0
  529. package/es/popover/index.d.ts +5 -0
  530. package/es/popover/index.js +4 -0
  531. package/es/popover/style/index.css +213 -0
  532. package/es/popover/style/var.css +0 -0
  533. package/es/popup/Popup.d.ts +5 -0
  534. package/es/popup/Popup.js +215 -0
  535. package/es/popup/PopupContext.d.ts +6 -0
  536. package/es/popup/PopupContext.js +3 -0
  537. package/es/popup/PropsType.d.ts +72 -0
  538. package/es/popup/PropsType.js +1 -0
  539. package/es/popup/index.d.ts +5 -0
  540. package/es/popup/index.js +4 -0
  541. package/es/popup/style/index.css +132 -0
  542. package/es/popup/style/var.css +0 -0
  543. package/es/product-card/ProductCard.d.ts +4 -0
  544. package/es/product-card/ProductCard.js +151 -0
  545. package/es/product-card/PropsType.d.ts +40 -0
  546. package/es/product-card/PropsType.js +1 -0
  547. package/es/product-card/index.d.ts +3 -0
  548. package/es/product-card/index.js +3 -0
  549. package/es/product-card/style/index.css +108 -0
  550. package/es/product-card/style/var.css +0 -0
  551. package/es/progress/Progress.d.ts +4 -0
  552. package/es/progress/Progress.js +60 -0
  553. package/es/progress/PropsType.d.ts +13 -0
  554. package/es/progress/PropsType.js +1 -0
  555. package/es/progress/index.d.ts +4 -0
  556. package/es/progress/index.js +3 -0
  557. package/es/progress/style/index.css +41 -0
  558. package/es/progress/style/var.css +0 -0
  559. package/es/pull-refresh/PropsType.d.ts +39 -0
  560. package/es/pull-refresh/PropsType.js +1 -0
  561. package/es/pull-refresh/PullRefresh.d.ts +4 -0
  562. package/es/pull-refresh/PullRefresh.js +229 -0
  563. package/es/pull-refresh/index.d.ts +4 -0
  564. package/es/pull-refresh/index.js +3 -0
  565. package/es/pull-refresh/style/index.css +31 -0
  566. package/es/pull-refresh/style/var.css +0 -0
  567. package/es/radio/PropsType.d.ts +24 -0
  568. package/es/radio/PropsType.js +1 -0
  569. package/es/radio/Radio.d.ts +3 -0
  570. package/es/radio/Radio.js +29 -0
  571. package/es/radio/RadioContext.d.ts +11 -0
  572. package/es/radio/RadioContext.js +3 -0
  573. package/es/radio/RadioGroup.d.ts +3 -0
  574. package/es/radio/RadioGroup.js +35 -0
  575. package/es/radio/index.d.ts +8 -0
  576. package/es/radio/index.js +7 -0
  577. package/es/radio/style/index.css +90 -0
  578. package/es/radio/style/var.css +0 -0
  579. package/es/rate/PropsType.d.ts +55 -0
  580. package/es/rate/PropsType.js +1 -0
  581. package/es/rate/Rate.d.ts +4 -0
  582. package/es/rate/Rate.js +199 -0
  583. package/es/rate/index.d.ts +4 -0
  584. package/es/rate/index.js +3 -0
  585. package/es/rate/style/index.css +43 -0
  586. package/es/rate/style/var.css +0 -0
  587. package/es/search/PropsType.d.ts +29 -0
  588. package/es/search/PropsType.js +1 -0
  589. package/es/search/Search.d.ts +4 -0
  590. package/es/search/Search.js +158 -0
  591. package/es/search/index.d.ts +4 -0
  592. package/es/search/index.js +3 -0
  593. package/es/search/style/index.css +64 -0
  594. package/es/search/style/var.css +0 -0
  595. package/es/selector/CheckMark.d.ts +2 -0
  596. package/es/selector/CheckMark.js +42 -0
  597. package/es/selector/PropsType.d.ts +25 -0
  598. package/es/selector/PropsType.js +1 -0
  599. package/es/selector/Selector.d.ts +2 -0
  600. package/es/selector/Selector.js +68 -0
  601. package/es/selector/index.d.ts +4 -0
  602. package/es/selector/index.js +3 -0
  603. package/es/selector/style/index.css +69 -0
  604. package/es/selector/style/var.css +0 -0
  605. package/es/share-sheet/PropsType.d.ts +29 -0
  606. package/es/share-sheet/PropsType.js +1 -0
  607. package/es/share-sheet/ShareSheet.d.ts +4 -0
  608. package/es/share-sheet/ShareSheet.js +125 -0
  609. package/es/share-sheet/index.d.ts +5 -0
  610. package/es/share-sheet/index.js +4 -0
  611. package/es/share-sheet/style/index.css +103 -0
  612. package/es/share-sheet/style/var.css +0 -0
  613. package/es/sidebar/PropsType.d.ts +41 -0
  614. package/es/sidebar/PropsType.js +1 -0
  615. package/es/sidebar/Sidebar.d.ts +4 -0
  616. package/es/sidebar/Sidebar.js +66 -0
  617. package/es/sidebar/SidebarItem.d.ts +4 -0
  618. package/es/sidebar/SidebarItem.js +44 -0
  619. package/es/sidebar/index.d.ts +8 -0
  620. package/es/sidebar/index.js +7 -0
  621. package/es/sidebar/style/index.css +77 -0
  622. package/es/sidebar/style/var.css +0 -0
  623. package/es/skeleton/PropsType.d.ts +31 -0
  624. package/es/skeleton/PropsType.js +1 -0
  625. package/es/skeleton/Skeleton.d.ts +4 -0
  626. package/es/skeleton/Skeleton.js +97 -0
  627. package/es/skeleton/index.d.ts +5 -0
  628. package/es/skeleton/index.js +4 -0
  629. package/es/skeleton/style/index.css +56 -0
  630. package/es/skeleton/style/var.css +0 -0
  631. package/es/sku/PropsType.d.ts +189 -0
  632. package/es/sku/PropsType.js +1 -0
  633. package/es/sku/Sku.d.ts +4 -0
  634. package/es/sku/Sku.js +504 -0
  635. package/es/sku/components/SkuRow.d.ts +7 -0
  636. package/es/sku/components/SkuRow.js +41 -0
  637. package/es/sku/components/SkuRowItem.d.ts +15 -0
  638. package/es/sku/components/SkuRowItem.js +76 -0
  639. package/es/sku/components/SkuRowPropItem.d.ts +10 -0
  640. package/es/sku/components/SkuRowPropItem.js +38 -0
  641. package/es/sku/components/SkuStepper.d.ts +17 -0
  642. package/es/sku/components/SkuStepper.js +122 -0
  643. package/es/sku/constants.d.ts +13 -0
  644. package/es/sku/constants.js +9 -0
  645. package/es/sku/index.d.ts +5 -0
  646. package/es/sku/index.js +4 -0
  647. package/es/sku/style/index.css +283 -0
  648. package/es/sku/style/var.css +0 -0
  649. package/es/sku/utils.d.ts +25 -0
  650. package/es/sku/utils.js +153 -0
  651. package/es/slider/PropsType.d.ts +59 -0
  652. package/es/slider/PropsType.js +1 -0
  653. package/es/slider/Slider.d.ts +4 -0
  654. package/es/slider/Slider.js +271 -0
  655. package/es/slider/index.d.ts +4 -0
  656. package/es/slider/index.js +3 -0
  657. package/es/slider/style/index.css +85 -0
  658. package/es/slider/style/var.css +0 -0
  659. package/es/space/PropsType.d.ts +25 -0
  660. package/es/space/PropsType.js +1 -0
  661. package/es/space/Space.d.ts +4 -0
  662. package/es/space/Space.js +56 -0
  663. package/es/space/index.d.ts +4 -0
  664. package/es/space/index.js +3 -0
  665. package/es/space/style/index.css +56 -0
  666. package/es/space/style/var.css +0 -0
  667. package/es/stepper/PropsType.d.ts +66 -0
  668. package/es/stepper/PropsType.js +1 -0
  669. package/es/stepper/Stepper.d.ts +4 -0
  670. package/es/stepper/Stepper.js +231 -0
  671. package/es/stepper/index.d.ts +5 -0
  672. package/es/stepper/index.js +4 -0
  673. package/es/stepper/style/index.css +130 -0
  674. package/es/stepper/style/var.css +0 -0
  675. package/es/steps/PropsType.d.ts +33 -0
  676. package/es/steps/PropsType.js +1 -0
  677. package/es/steps/Steps.d.ts +4 -0
  678. package/es/steps/Steps.js +35 -0
  679. package/es/steps/StepsItem.d.ts +4 -0
  680. package/es/steps/StepsItem.js +118 -0
  681. package/es/steps/index.d.ts +8 -0
  682. package/es/steps/index.js +7 -0
  683. package/es/steps/style/index.css +143 -0
  684. package/es/steps/style/var.css +0 -0
  685. package/es/sticky/PropsType.d.ts +25 -0
  686. package/es/sticky/PropsType.js +1 -0
  687. package/es/sticky/Sticky.d.ts +4 -0
  688. package/es/sticky/Sticky.js +124 -0
  689. package/es/sticky/index.d.ts +5 -0
  690. package/es/sticky/index.js +4 -0
  691. package/es/sticky/style/index.css +7 -0
  692. package/es/sticky/style/var.css +0 -0
  693. package/es/styles/animation.css +130 -0
  694. package/es/styles/base.css +310 -0
  695. package/es/styles/css-variables.css +66 -0
  696. package/es/styles/index.d.ts +1 -0
  697. package/es/styles/index.js +1 -0
  698. package/es/styles/mixins/ellipsis.css +0 -0
  699. package/es/styles/mixins/hairline.css +0 -0
  700. package/es/styles/normalize.css +29 -0
  701. package/es/styles/var.css +0 -0
  702. package/es/submit-bar/PropsType.d.ts +40 -0
  703. package/es/submit-bar/PropsType.js +1 -0
  704. package/es/submit-bar/SubmitBar.d.ts +4 -0
  705. package/es/submit-bar/SubmitBar.js +105 -0
  706. package/es/submit-bar/index.d.ts +4 -0
  707. package/es/submit-bar/index.js +4 -0
  708. package/es/submit-bar/style/index.css +84 -0
  709. package/es/submit-bar/style/var.css +0 -0
  710. package/es/swipe-cell/PropsType.d.ts +39 -0
  711. package/es/swipe-cell/PropsType.js +1 -0
  712. package/es/swipe-cell/SwipeCell.d.ts +4 -0
  713. package/es/swipe-cell/SwipeCell.js +179 -0
  714. package/es/swipe-cell/index.d.ts +4 -0
  715. package/es/swipe-cell/index.js +3 -0
  716. package/es/swipe-cell/style/index.css +23 -0
  717. package/es/swiper/PropsType.d.ts +70 -0
  718. package/es/swiper/PropsType.js +1 -0
  719. package/es/swiper/Swiper.d.ts +4 -0
  720. package/es/swiper/Swiper.js +315 -0
  721. package/es/swiper/SwiperItem.d.ts +4 -0
  722. package/es/swiper/SwiperItem.js +31 -0
  723. package/es/swiper/SwiperPagIndicator.d.ts +4 -0
  724. package/es/swiper/SwiperPagIndicator.js +29 -0
  725. package/es/swiper/index.d.ts +8 -0
  726. package/es/swiper/index.js +8 -0
  727. package/es/swiper/style/index.css +107 -0
  728. package/es/swiper/style/var.css +0 -0
  729. package/es/switch/PropsType.d.ts +25 -0
  730. package/es/switch/PropsType.js +1 -0
  731. package/es/switch/Switch.d.ts +4 -0
  732. package/es/switch/Switch.js +70 -0
  733. package/es/switch/index.d.ts +5 -0
  734. package/es/switch/index.js +4 -0
  735. package/es/switch/style/index.css +60 -0
  736. package/es/switch/style/var.css +0 -0
  737. package/es/tabbar/PropsType.d.ts +36 -0
  738. package/es/tabbar/PropsType.js +1 -0
  739. package/es/tabbar/Tabbar.d.ts +4 -0
  740. package/es/tabbar/Tabbar.js +80 -0
  741. package/es/tabbar/TabbarContext.d.ts +7 -0
  742. package/es/tabbar/TabbarContext.js +3 -0
  743. package/es/tabbar/TabbarItem.d.ts +4 -0
  744. package/es/tabbar/TabbarItem.js +64 -0
  745. package/es/tabbar/index.d.ts +8 -0
  746. package/es/tabbar/index.js +7 -0
  747. package/es/tabbar/style/index.css +54 -0
  748. package/es/tabbar/style/var.css +0 -0
  749. package/es/tabs/PropsType.d.ts +149 -0
  750. package/es/tabs/PropsType.js +1 -0
  751. package/es/tabs/TabPane.d.ts +4 -0
  752. package/es/tabs/TabPane.js +57 -0
  753. package/es/tabs/Tabs.d.ts +4 -0
  754. package/es/tabs/Tabs.js +341 -0
  755. package/es/tabs/TabsContent.d.ts +4 -0
  756. package/es/tabs/TabsContent.js +68 -0
  757. package/es/tabs/TabsContext.d.ts +9 -0
  758. package/es/tabs/TabsContext.js +3 -0
  759. package/es/tabs/TabsTitle.d.ts +4 -0
  760. package/es/tabs/TabsTitle.js +99 -0
  761. package/es/tabs/index.d.ts +8 -0
  762. package/es/tabs/index.js +8 -0
  763. package/es/tabs/style/index.css +201 -0
  764. package/es/tabs/style/var.css +0 -0
  765. package/es/tabs/utils.d.ts +1 -0
  766. package/es/tabs/utils.js +40 -0
  767. package/es/tag/PropsType.d.ts +26 -0
  768. package/es/tag/PropsType.js +1 -0
  769. package/es/tag/Tag.d.ts +4 -0
  770. package/es/tag/Tag.js +73 -0
  771. package/es/tag/index.d.ts +5 -0
  772. package/es/tag/index.js +4 -0
  773. package/es/tag/style/index.css +110 -0
  774. package/es/tag/style/var.css +0 -0
  775. package/es/text-area/PropsType.d.ts +32 -0
  776. package/es/text-area/PropsType.js +1 -0
  777. package/es/text-area/TextArea.d.ts +4 -0
  778. package/es/text-area/TextArea.js +183 -0
  779. package/es/text-area/index.d.ts +5 -0
  780. package/es/text-area/index.js +4 -0
  781. package/es/text-area/style/index.css +144 -0
  782. package/es/text-area/style/var.css +0 -0
  783. package/es/toast/PropsType.d.ts +74 -0
  784. package/es/toast/PropsType.js +1 -0
  785. package/es/toast/Toast.d.ts +6 -0
  786. package/es/toast/Toast.js +93 -0
  787. package/es/toast/index.d.ts +5 -0
  788. package/es/toast/index.js +4 -0
  789. package/es/toast/lock-click.d.ts +1 -0
  790. package/es/toast/lock-click.js +14 -0
  791. package/es/toast/method.d.ts +3 -0
  792. package/es/toast/method.js +139 -0
  793. package/es/toast/style/index.css +72 -0
  794. package/es/toast/style/var.css +0 -0
  795. package/es/typography/Ellipsis.d.ts +4 -0
  796. package/es/typography/Ellipsis.js +127 -0
  797. package/es/typography/PropsType.d.ts +34 -0
  798. package/es/typography/PropsType.js +1 -0
  799. package/es/typography/Typography.d.ts +6 -0
  800. package/es/typography/Typography.js +117 -0
  801. package/es/typography/index.d.ts +12 -0
  802. package/es/typography/index.js +21 -0
  803. package/es/typography/style/index.css +132 -0
  804. package/es/typography/style/var.css +0 -0
  805. package/es/uploader/PropsType.d.ts +132 -0
  806. package/es/uploader/PropsType.js +1 -0
  807. package/es/uploader/Uploader.d.ts +4 -0
  808. package/es/uploader/Uploader.js +272 -0
  809. package/es/uploader/UploaderPreviewItem.d.ts +3 -0
  810. package/es/uploader/UploaderPreviewItem.js +98 -0
  811. package/es/uploader/index.d.ts +4 -0
  812. package/es/uploader/index.js +3 -0
  813. package/es/uploader/style/index.css +166 -0
  814. package/es/uploader/style/var.css +0 -0
  815. package/es/uploader/utils.d.ts +10 -0
  816. package/es/uploader/utils.js +75 -0
  817. package/es/utils/base.d.ts +18 -0
  818. package/es/utils/base.js +41 -0
  819. package/es/utils/bound.d.ts +1 -0
  820. package/es/utils/bound.js +10 -0
  821. package/es/utils/constant.d.ts +16 -0
  822. package/es/utils/constant.js +20 -0
  823. package/es/utils/create/bem.d.ts +14 -0
  824. package/es/utils/create/bem.js +32 -0
  825. package/es/utils/create/index.d.ts +3 -0
  826. package/es/utils/create/index.js +6 -0
  827. package/es/utils/debounce.d.ts +6 -0
  828. package/es/utils/debounce.js +122 -0
  829. package/es/utils/deep-assign.d.ts +3 -0
  830. package/es/utils/deep-assign.js +19 -0
  831. package/es/utils/deep-clone.d.ts +4 -0
  832. package/es/utils/deep-clone.js +28 -0
  833. package/es/utils/dev-log.d.ts +1 -0
  834. package/es/utils/dev-log.js +7 -0
  835. package/es/utils/dom/canUseDom.d.ts +1 -0
  836. package/es/utils/dom/canUseDom.js +3 -0
  837. package/es/utils/dom/event.d.ts +5 -0
  838. package/es/utils/dom/event.js +29 -0
  839. package/es/utils/dom/getContainer.d.ts +1 -0
  840. package/es/utils/dom/getContainer.js +4 -0
  841. package/es/utils/dom/getTargetElement.d.ts +4 -0
  842. package/es/utils/dom/getTargetElement.js +14 -0
  843. package/es/utils/dom/render copy.d.ts +9 -0
  844. package/es/utils/dom/render copy.js +66 -0
  845. package/es/utils/dom/render.d.ts +9 -0
  846. package/es/utils/dom/render.js +82 -0
  847. package/es/utils/dom/renderToContainer.d.ts +3 -0
  848. package/es/utils/dom/renderToContainer.js +11 -0
  849. package/es/utils/dom/scroll.d.ts +12 -0
  850. package/es/utils/dom/scroll.js +86 -0
  851. package/es/utils/dom/style.d.ts +1 -0
  852. package/es/utils/dom/style.js +13 -0
  853. package/es/utils/dom/version.d.ts +2 -0
  854. package/es/utils/dom/version.js +4 -0
  855. package/es/utils/format/number.d.ts +3 -0
  856. package/es/utils/format/number.js +34 -0
  857. package/es/utils/format/react.d.ts +2 -0
  858. package/es/utils/format/react.js +14 -0
  859. package/es/utils/format/string.d.ts +2 -0
  860. package/es/utils/format/string.js +11 -0
  861. package/es/utils/format/unit.d.ts +12 -0
  862. package/es/utils/format/unit.js +69 -0
  863. package/es/utils/get-default-props.d.ts +2 -0
  864. package/es/utils/get-default-props.js +12 -0
  865. package/es/utils/index.d.ts +10 -0
  866. package/es/utils/index.js +10 -0
  867. package/es/utils/interceptor.d.ts +7 -0
  868. package/es/utils/interceptor.js +30 -0
  869. package/es/utils/interface.d.ts +13 -0
  870. package/es/utils/interface.js +1 -0
  871. package/es/utils/is-dev.d.ts +1 -0
  872. package/es/utils/is-dev.js +1 -0
  873. package/es/utils/raf.d.ts +4 -0
  874. package/es/utils/raf.js +26 -0
  875. package/es/utils/rubberband.d.ts +2 -0
  876. package/es/utils/rubberband.js +10 -0
  877. package/es/utils/supports-passive.d.ts +1 -0
  878. package/es/utils/supports-passive.js +14 -0
  879. package/es/utils/throttle.d.ts +7 -0
  880. package/es/utils/throttle.js +20 -0
  881. package/es/utils/validate/date.d.ts +1 -0
  882. package/es/utils/validate/date.js +4 -0
  883. package/es/utils/validate/number.d.ts +2 -0
  884. package/es/utils/validate/number.js +10 -0
  885. package/es/utils/validate/system.d.ts +2 -0
  886. package/es/utils/validate/system.js +7 -0
  887. package/es/water-mark/PropsType.d.ts +39 -0
  888. package/es/water-mark/PropsType.js +1 -0
  889. package/es/water-mark/WaterMark.d.ts +4 -0
  890. package/es/water-mark/WaterMark.js +102 -0
  891. package/es/water-mark/index.d.ts +4 -0
  892. package/es/water-mark/index.js +3 -0
  893. package/es/water-mark/style/index.css +16 -0
  894. package/lib/action-bar/ActionBar.d.ts +4 -0
  895. package/lib/action-bar/ActionBar.js +58 -0
  896. package/lib/action-bar/ActionBarButton.d.ts +6 -0
  897. package/lib/action-bar/ActionBarButton.js +81 -0
  898. package/lib/action-bar/ActionBarContext.d.ts +6 -0
  899. package/lib/action-bar/ActionBarContext.js +16 -0
  900. package/lib/action-bar/ActionBarIcon.d.ts +4 -0
  901. package/lib/action-bar/ActionBarIcon.js +50 -0
  902. package/lib/action-bar/PropsType.d.ts +34 -0
  903. package/lib/action-bar/PropsType.js +6 -0
  904. package/lib/action-bar/index.d.ts +11 -0
  905. package/lib/action-bar/index.js +16 -0
  906. package/lib/action-bar/style/index.css +76 -0
  907. package/lib/action-bar/style/var.css +0 -0
  908. package/lib/action-sheet/ActionSheet.d.ts +4 -0
  909. package/lib/action-sheet/ActionSheet.js +167 -0
  910. package/lib/action-sheet/PropsType.d.ts +38 -0
  911. package/lib/action-sheet/PropsType.js +6 -0
  912. package/lib/action-sheet/index.d.ts +5 -0
  913. package/lib/action-sheet/index.js +16 -0
  914. package/lib/action-sheet/style/index.css +126 -0
  915. package/lib/action-sheet/style/var.css +0 -0
  916. package/lib/area/Area.d.ts +4 -0
  917. package/lib/area/Area.js +99 -0
  918. package/lib/area/PropsType.d.ts +30 -0
  919. package/lib/area/PropsType.js +6 -0
  920. package/lib/area/index.d.ts +4 -0
  921. package/lib/area/index.js +15 -0
  922. package/lib/badge/Badge.d.ts +4 -0
  923. package/lib/badge/Badge.js +103 -0
  924. package/lib/badge/PropsType.d.ts +28 -0
  925. package/lib/badge/PropsType.js +6 -0
  926. package/lib/badge/index.d.ts +5 -0
  927. package/lib/badge/index.js +16 -0
  928. package/lib/badge/style/index.css +45 -0
  929. package/lib/badge/style/var.css +0 -0
  930. package/lib/button/Button.d.ts +4 -0
  931. package/lib/button/Button.js +166 -0
  932. package/lib/button/ButtonContext.d.ts +7 -0
  933. package/lib/button/ButtonContext.js +16 -0
  934. package/lib/button/ButtonGroup.d.ts +4 -0
  935. package/lib/button/ButtonGroup.js +64 -0
  936. package/lib/button/PropsType.d.ts +67 -0
  937. package/lib/button/PropsType.js +6 -0
  938. package/lib/button/index.d.ts +8 -0
  939. package/lib/button/index.js +14 -0
  940. package/lib/button/style/index.css +242 -0
  941. package/lib/button/style/var.css +0 -0
  942. package/lib/calendar/Calendar.d.ts +4 -0
  943. package/lib/calendar/Calendar.js +520 -0
  944. package/lib/calendar/CalendarDay.d.ts +4 -0
  945. package/lib/calendar/CalendarDay.js +152 -0
  946. package/lib/calendar/CalendarHeader.d.ts +4 -0
  947. package/lib/calendar/CalendarHeader.js +89 -0
  948. package/lib/calendar/CalendarMonth.d.ts +4 -0
  949. package/lib/calendar/CalendarMonth.js +228 -0
  950. package/lib/calendar/PropsType.d.ts +118 -0
  951. package/lib/calendar/PropsType.js +6 -0
  952. package/lib/calendar/index.d.ts +5 -0
  953. package/lib/calendar/index.js +16 -0
  954. package/lib/calendar/style/index.css +186 -0
  955. package/lib/calendar/style/var.css +0 -0
  956. package/lib/calendar/utils.d.ts +10 -0
  957. package/lib/calendar/utils.js +60 -0
  958. package/lib/card/Card.d.ts +8 -0
  959. package/lib/card/Card.js +102 -0
  960. package/lib/card/PropsType.d.ts +34 -0
  961. package/lib/card/PropsType.js +6 -0
  962. package/lib/card/index.d.ts +10 -0
  963. package/lib/card/index.js +17 -0
  964. package/lib/card/style/index.css +68 -0
  965. package/lib/card/style/var.css +0 -0
  966. package/lib/cascader/Cascader.d.ts +5 -0
  967. package/lib/cascader/Cascader.js +321 -0
  968. package/lib/cascader/PropsType.d.ts +68 -0
  969. package/lib/cascader/PropsType.js +6 -0
  970. package/lib/cascader/index.d.ts +5 -0
  971. package/lib/cascader/index.js +16 -0
  972. package/lib/cascader/style/index.css +90 -0
  973. package/lib/cascader/style/var.css +0 -0
  974. package/lib/cascader/useCascaderExtend.d.ts +12 -0
  975. package/lib/cascader/useCascaderExtend.js +58 -0
  976. package/lib/cell/Cell.d.ts +4 -0
  977. package/lib/cell/Cell.js +138 -0
  978. package/lib/cell/CellGroup.d.ts +4 -0
  979. package/lib/cell/CellGroup.js +61 -0
  980. package/lib/cell/PropsType.d.ts +53 -0
  981. package/lib/cell/PropsType.js +6 -0
  982. package/lib/cell/index.d.ts +9 -0
  983. package/lib/cell/index.js +21 -0
  984. package/lib/cell/style/index.css +140 -0
  985. package/lib/cell/style/var.css +0 -0
  986. package/lib/checkbox/Checkbox.d.ts +4 -0
  987. package/lib/checkbox/Checkbox.js +106 -0
  988. package/lib/checkbox/CheckboxContext.d.ts +11 -0
  989. package/lib/checkbox/CheckboxContext.js +16 -0
  990. package/lib/checkbox/CheckboxGroup.d.ts +4 -0
  991. package/lib/checkbox/CheckboxGroup.js +94 -0
  992. package/lib/checkbox/Checker.d.ts +4 -0
  993. package/lib/checkbox/Checker.js +129 -0
  994. package/lib/checkbox/PropsType.d.ts +96 -0
  995. package/lib/checkbox/PropsType.js +6 -0
  996. package/lib/checkbox/index.d.ts +9 -0
  997. package/lib/checkbox/index.js +21 -0
  998. package/lib/checkbox/style/index.css +84 -0
  999. package/lib/checkbox/style/var.css +0 -0
  1000. package/lib/circle/Circle.d.ts +4 -0
  1001. package/lib/circle/Circle.js +182 -0
  1002. package/lib/circle/PropsType.d.ts +30 -0
  1003. package/lib/circle/PropsType.js +6 -0
  1004. package/lib/circle/index.d.ts +5 -0
  1005. package/lib/circle/index.js +16 -0
  1006. package/lib/circle/style/index.css +44 -0
  1007. package/lib/circle/style/var.css +0 -0
  1008. package/lib/collapse/Collapse.d.ts +4 -0
  1009. package/lib/collapse/Collapse.js +114 -0
  1010. package/lib/collapse/CollapseContext.d.ts +7 -0
  1011. package/lib/collapse/CollapseContext.js +16 -0
  1012. package/lib/collapse/CollapseItem.d.ts +4 -0
  1013. package/lib/collapse/CollapseItem.js +157 -0
  1014. package/lib/collapse/PropsType.d.ts +31 -0
  1015. package/lib/collapse/PropsType.js +6 -0
  1016. package/lib/collapse/index.d.ts +9 -0
  1017. package/lib/collapse/index.js +21 -0
  1018. package/lib/collapse/style/index.css +59 -0
  1019. package/lib/collapse/style/var.css +0 -0
  1020. package/lib/config-provider/ConfigProvider.d.ts +4 -0
  1021. package/lib/config-provider/ConfigProvider.js +72 -0
  1022. package/lib/config-provider/ConfigProviderContext.d.ts +8 -0
  1023. package/lib/config-provider/ConfigProviderContext.js +22 -0
  1024. package/lib/config-provider/PropsType.d.ts +14 -0
  1025. package/lib/config-provider/PropsType.js +6 -0
  1026. package/lib/config-provider/index.d.ts +3 -0
  1027. package/lib/config-provider/index.js +13 -0
  1028. package/lib/count-down/CountDown.d.ts +4 -0
  1029. package/lib/count-down/CountDown.js +79 -0
  1030. package/lib/count-down/PropsType.d.ts +38 -0
  1031. package/lib/count-down/PropsType.js +6 -0
  1032. package/lib/count-down/index.d.ts +5 -0
  1033. package/lib/count-down/index.js +16 -0
  1034. package/lib/count-down/style/index.css +10 -0
  1035. package/lib/count-down/style/var.css +0 -0
  1036. package/lib/count-down/utils.d.ts +2 -0
  1037. package/lib/count-down/utils.js +50 -0
  1038. package/lib/coupon-cell/CouponCell.d.ts +4 -0
  1039. package/lib/coupon-cell/CouponCell.js +77 -0
  1040. package/lib/coupon-cell/index.d.ts +4 -0
  1041. package/lib/coupon-cell/index.js +16 -0
  1042. package/lib/coupon-cell/style/index.css +6 -0
  1043. package/lib/coupon-cell/style/var.css +0 -0
  1044. package/lib/coupon-list/Coupon.d.ts +4 -0
  1045. package/lib/coupon-list/Coupon.js +140 -0
  1046. package/lib/coupon-list/CouponList.d.ts +4 -0
  1047. package/lib/coupon-list/CouponList.js +198 -0
  1048. package/lib/coupon-list/PropsType.d.ts +59 -0
  1049. package/lib/coupon-list/PropsType.js +6 -0
  1050. package/lib/coupon-list/index.d.ts +3 -0
  1051. package/lib/coupon-list/index.js +14 -0
  1052. package/lib/coupon-list/style/index.css +194 -0
  1053. package/lib/coupon-list/style/var.css +0 -0
  1054. package/lib/datetime-picker/DatePicker.d.ts +4 -0
  1055. package/lib/datetime-picker/DatePicker.js +262 -0
  1056. package/lib/datetime-picker/DatetimePicker.d.ts +6 -0
  1057. package/lib/datetime-picker/DatetimePicker.js +45 -0
  1058. package/lib/datetime-picker/PropsType.d.ts +49 -0
  1059. package/lib/datetime-picker/PropsType.js +6 -0
  1060. package/lib/datetime-picker/TimePicker.d.ts +4 -0
  1061. package/lib/datetime-picker/TimePicker.js +129 -0
  1062. package/lib/datetime-picker/index.d.ts +3 -0
  1063. package/lib/datetime-picker/index.js +13 -0
  1064. package/lib/datetime-picker/utils.d.ts +5 -0
  1065. package/lib/datetime-picker/utils.js +47 -0
  1066. package/lib/dialog/Dialog.d.ts +4 -0
  1067. package/lib/dialog/Dialog.js +178 -0
  1068. package/lib/dialog/PropsType.d.ts +70 -0
  1069. package/lib/dialog/PropsType.js +6 -0
  1070. package/lib/dialog/index.d.ts +4 -0
  1071. package/lib/dialog/index.js +16 -0
  1072. package/lib/dialog/method.d.ts +3 -0
  1073. package/lib/dialog/method.js +177 -0
  1074. package/lib/dialog/style/index.css +121 -0
  1075. package/lib/dialog/style/var.css +0 -0
  1076. package/lib/divider/Divider.d.ts +4 -0
  1077. package/lib/divider/Divider.js +53 -0
  1078. package/lib/divider/PropsType.d.ts +22 -0
  1079. package/lib/divider/PropsType.js +6 -0
  1080. package/lib/divider/index.d.ts +4 -0
  1081. package/lib/divider/index.js +14 -0
  1082. package/lib/divider/style/index.css +72 -0
  1083. package/lib/divider/style/var.css +0 -0
  1084. package/lib/dropdown-menu/DropdownMenu.d.ts +4 -0
  1085. package/lib/dropdown-menu/DropdownMenu.js +235 -0
  1086. package/lib/dropdown-menu/DropdownMenuContext.d.ts +11 -0
  1087. package/lib/dropdown-menu/DropdownMenuContext.js +16 -0
  1088. package/lib/dropdown-menu/DropdownMenuItem.d.ts +4 -0
  1089. package/lib/dropdown-menu/DropdownMenuItem.js +189 -0
  1090. package/lib/dropdown-menu/PropsType.d.ts +95 -0
  1091. package/lib/dropdown-menu/PropsType.js +6 -0
  1092. package/lib/dropdown-menu/index.d.ts +8 -0
  1093. package/lib/dropdown-menu/index.js +14 -0
  1094. package/lib/dropdown-menu/style/index.css +104 -0
  1095. package/lib/dropdown-menu/style/var.css +0 -0
  1096. package/lib/empty/Empty.d.ts +4 -0
  1097. package/lib/empty/Empty.js +89 -0
  1098. package/lib/empty/Network.d.ts +1 -0
  1099. package/lib/empty/Network.js +156 -0
  1100. package/lib/empty/PropsType.d.ts +9 -0
  1101. package/lib/empty/PropsType.js +6 -0
  1102. package/lib/empty/index.d.ts +4 -0
  1103. package/lib/empty/index.js +14 -0
  1104. package/lib/empty/style/index.css +36 -0
  1105. package/lib/empty/style/var.css +0 -0
  1106. package/lib/field/Field.d.ts +7 -0
  1107. package/lib/field/Field.js +325 -0
  1108. package/lib/field/PropsType.d.ts +82 -0
  1109. package/lib/field/PropsType.js +6 -0
  1110. package/lib/field/index.d.ts +5 -0
  1111. package/lib/field/index.js +16 -0
  1112. package/lib/field/style/index.css +132 -0
  1113. package/lib/field/style/var.css +0 -0
  1114. package/lib/flex/Flex.d.ts +4 -0
  1115. package/lib/flex/Flex.js +76 -0
  1116. package/lib/flex/FlexContext.d.ts +6 -0
  1117. package/lib/flex/FlexContext.js +16 -0
  1118. package/lib/flex/FlexItem.d.ts +4 -0
  1119. package/lib/flex/FlexItem.js +77 -0
  1120. package/lib/flex/PropsType.d.ts +35 -0
  1121. package/lib/flex/PropsType.js +6 -0
  1122. package/lib/flex/index.d.ts +8 -0
  1123. package/lib/flex/index.js +14 -0
  1124. package/lib/flex/style/index.css +187 -0
  1125. package/lib/flex/style/mixins.css +0 -0
  1126. package/lib/floating-ball/FloatingBall.d.ts +4 -0
  1127. package/lib/floating-ball/FloatingBall.js +298 -0
  1128. package/lib/floating-ball/FloatingBallContext.d.ts +6 -0
  1129. package/lib/floating-ball/FloatingBallContext.js +16 -0
  1130. package/lib/floating-ball/FloatingBallItem.d.ts +3 -0
  1131. package/lib/floating-ball/FloatingBallItem.js +42 -0
  1132. package/lib/floating-ball/PropsType.d.ts +77 -0
  1133. package/lib/floating-ball/PropsType.js +6 -0
  1134. package/lib/floating-ball/index.d.ts +4 -0
  1135. package/lib/floating-ball/index.js +14 -0
  1136. package/lib/floating-ball/style/index.css +197 -0
  1137. package/lib/floating-ball/style/var.css +4 -0
  1138. package/lib/floating-ball/useFloatingTouch.d.ts +66 -0
  1139. package/lib/floating-ball/useFloatingTouch.js +119 -0
  1140. package/lib/floating-panel/FloatingPanel.d.ts +4 -0
  1141. package/lib/floating-panel/FloatingPanel.js +157 -0
  1142. package/lib/floating-panel/PropsType.d.ts +8 -0
  1143. package/lib/floating-panel/PropsType.js +6 -0
  1144. package/lib/floating-panel/index.d.ts +6 -0
  1145. package/lib/floating-panel/index.js +16 -0
  1146. package/lib/floating-panel/style/index.css +38 -0
  1147. package/lib/floating-panel/style/var.css +0 -0
  1148. package/lib/form/Form.d.ts +10 -0
  1149. package/lib/form/Form.js +86 -0
  1150. package/lib/form/FormContext.d.ts +11 -0
  1151. package/lib/form/FormContext.js +22 -0
  1152. package/lib/form/FormItem.d.ts +4 -0
  1153. package/lib/form/FormItem.js +233 -0
  1154. package/lib/form/FormSubscribe.d.ts +16 -0
  1155. package/lib/form/FormSubscribe.js +50 -0
  1156. package/lib/form/PropsType.d.ts +41 -0
  1157. package/lib/form/PropsType.js +6 -0
  1158. package/lib/form/index.d.ts +19 -0
  1159. package/lib/form/index.js +25 -0
  1160. package/lib/form/style/index.css +8 -0
  1161. package/lib/form/style/var.css +0 -0
  1162. package/lib/form/utils.d.ts +1 -0
  1163. package/lib/form/utils.js +29 -0
  1164. package/lib/grid/Grid.d.ts +4 -0
  1165. package/lib/grid/Grid.js +66 -0
  1166. package/lib/grid/GridItem.d.ts +8 -0
  1167. package/lib/grid/GridItem.js +160 -0
  1168. package/lib/grid/PropsType.d.ts +40 -0
  1169. package/lib/grid/PropsType.js +6 -0
  1170. package/lib/grid/index.d.ts +11 -0
  1171. package/lib/grid/index.js +19 -0
  1172. package/lib/grid/style/index.css +80 -0
  1173. package/lib/grid/style/var.css +0 -0
  1174. package/lib/hooks/create-update-effect.d.ts +4 -0
  1175. package/lib/hooks/create-update-effect.js +31 -0
  1176. package/lib/hooks/index.d.ts +38 -0
  1177. package/lib/hooks/index.js +145 -0
  1178. package/lib/hooks/use-click-away.d.ts +5 -0
  1179. package/lib/hooks/use-click-away.js +37 -0
  1180. package/lib/hooks/use-count-down.d.ts +32 -0
  1181. package/lib/hooks/use-count-down.js +124 -0
  1182. package/lib/hooks/use-debunce-effect.d.ts +4 -0
  1183. package/lib/hooks/use-debunce-effect.js +30 -0
  1184. package/lib/hooks/use-debunce-fn.d.ts +18 -0
  1185. package/lib/hooks/use-debunce-fn.js +42 -0
  1186. package/lib/hooks/use-drag-and-pinch.d.ts +1 -0
  1187. package/lib/hooks/use-drag-and-pinch.js +15 -0
  1188. package/lib/hooks/use-effect-with-target.d.ts +4 -0
  1189. package/lib/hooks/use-effect-with-target.js +66 -0
  1190. package/lib/hooks/use-event-listener.d.ts +11 -0
  1191. package/lib/hooks/use-event-listener.js +68 -0
  1192. package/lib/hooks/use-form-smart.d.ts +20 -0
  1193. package/lib/hooks/use-form-smart.js +67 -0
  1194. package/lib/hooks/use-height.d.ts +4 -0
  1195. package/lib/hooks/use-height.js +26 -0
  1196. package/lib/hooks/use-in-viewport.d.ts +8 -0
  1197. package/lib/hooks/use-in-viewport.js +41 -0
  1198. package/lib/hooks/use-isomorphic-layout-effect.d.ts +4 -0
  1199. package/lib/hooks/use-isomorphic-layout-effect.js +19 -0
  1200. package/lib/hooks/use-latest.d.ts +3 -0
  1201. package/lib/hooks/use-latest.js +20 -0
  1202. package/lib/hooks/use-lazy-effect.d.ts +3 -0
  1203. package/lib/hooks/use-lazy-effect.js +24 -0
  1204. package/lib/hooks/use-lazy-render.d.ts +3 -0
  1205. package/lib/hooks/use-lazy-render.js +24 -0
  1206. package/lib/hooks/use-lock-fn.d.ts +2 -0
  1207. package/lib/hooks/use-lock-fn.js +37 -0
  1208. package/lib/hooks/use-lock-scroll.d.ts +2 -0
  1209. package/lib/hooks/use-lock-scroll.js +75 -0
  1210. package/lib/hooks/use-memoized-fn.d.ts +3 -0
  1211. package/lib/hooks/use-memoized-fn.js +35 -0
  1212. package/lib/hooks/use-merged-state.d.ts +5 -0
  1213. package/lib/hooks/use-merged-state.js +35 -0
  1214. package/lib/hooks/use-mount.d.ts +2 -0
  1215. package/lib/hooks/use-mount.js +21 -0
  1216. package/lib/hooks/use-next-tick.d.ts +2 -0
  1217. package/lib/hooks/use-next-tick.js +30 -0
  1218. package/lib/hooks/use-page-visibility.d.ts +3 -0
  1219. package/lib/hooks/use-page-visibility.js +35 -0
  1220. package/lib/hooks/use-props-value.d.ts +8 -0
  1221. package/lib/hooks/use-props-value.js +38 -0
  1222. package/lib/hooks/use-rect.d.ts +11 -0
  1223. package/lib/hooks/use-rect.js +38 -0
  1224. package/lib/hooks/use-ref-state.d.ts +4 -0
  1225. package/lib/hooks/use-ref-state.js +26 -0
  1226. package/lib/hooks/use-refs.d.ts +1 -0
  1227. package/lib/hooks/use-refs.js +26 -0
  1228. package/lib/hooks/use-resize-effect.d.ts +2 -0
  1229. package/lib/hooks/use-resize-effect.js +27 -0
  1230. package/lib/hooks/use-scroll-parent.d.ts +5 -0
  1231. package/lib/hooks/use-scroll-parent.js +58 -0
  1232. package/lib/hooks/use-set-state.d.ts +3 -0
  1233. package/lib/hooks/use-set-state.js +28 -0
  1234. package/lib/hooks/use-throttle-fn.d.ts +17 -0
  1235. package/lib/hooks/use-throttle-fn.js +41 -0
  1236. package/lib/hooks/use-touch.d.ts +17 -0
  1237. package/lib/hooks/use-touch.js +80 -0
  1238. package/lib/hooks/use-unmount.d.ts +2 -0
  1239. package/lib/hooks/use-unmount.js +30 -0
  1240. package/lib/hooks/use-unmounted-ref.d.ts +2 -0
  1241. package/lib/hooks/use-unmounted-ref.js +26 -0
  1242. package/lib/hooks/use-update-effect.d.ts +3 -0
  1243. package/lib/hooks/use-update-effect.js +26 -0
  1244. package/lib/hooks/use-update.d.ts +2 -0
  1245. package/lib/hooks/use-update.js +19 -0
  1246. package/lib/hooks/use-visibility-change.d.ts +2 -0
  1247. package/lib/hooks/use-visibility-change.js +46 -0
  1248. package/lib/hooks/use-window-size.d.ts +5 -0
  1249. package/lib/hooks/use-window-size.js +32 -0
  1250. package/lib/image/Image.d.ts +4 -0
  1251. package/lib/image/Image.js +154 -0
  1252. package/lib/image/LazyImage.d.ts +9 -0
  1253. package/lib/image/LazyImage.js +95 -0
  1254. package/lib/image/PropsType.d.ts +55 -0
  1255. package/lib/image/PropsType.js +6 -0
  1256. package/lib/image/index.d.ts +5 -0
  1257. package/lib/image/index.js +16 -0
  1258. package/lib/image/style/index.css +70 -0
  1259. package/lib/image/style/var.css +0 -0
  1260. package/lib/image-preview/ImagePreview.d.ts +6 -0
  1261. package/lib/image-preview/ImagePreview.js +131 -0
  1262. package/lib/image-preview/PropsType.d.ts +47 -0
  1263. package/lib/image-preview/PropsType.js +6 -0
  1264. package/lib/image-preview/index.d.ts +4 -0
  1265. package/lib/image-preview/index.js +16 -0
  1266. package/lib/image-preview/method.d.ts +3 -0
  1267. package/lib/image-preview/method.js +98 -0
  1268. package/lib/image-preview/slide.d.ts +12 -0
  1269. package/lib/image-preview/slide.js +205 -0
  1270. package/lib/image-preview/slides.d.ts +14 -0
  1271. package/lib/image-preview/slides.js +132 -0
  1272. package/lib/image-preview/style/index.css +118 -0
  1273. package/lib/image-preview/style/var.css +0 -0
  1274. package/lib/index-bar/IndexAnchor.d.ts +5 -0
  1275. package/lib/index-bar/IndexAnchor.js +124 -0
  1276. package/lib/index-bar/IndexBar.d.ts +4 -0
  1277. package/lib/index-bar/IndexBar.js +280 -0
  1278. package/lib/index-bar/IndexBarContext.d.ts +8 -0
  1279. package/lib/index-bar/IndexBarContext.js +16 -0
  1280. package/lib/index-bar/PropsType.d.ts +37 -0
  1281. package/lib/index-bar/PropsType.js +6 -0
  1282. package/lib/index-bar/index.d.ts +8 -0
  1283. package/lib/index-bar/index.js +19 -0
  1284. package/lib/index-bar/style/index.css +54 -0
  1285. package/lib/index-bar/style/var.css +0 -0
  1286. package/lib/index.css +6711 -0
  1287. package/lib/index.d.ts +73 -0
  1288. package/lib/index.js +869 -0
  1289. package/lib/index.min.css +1 -0
  1290. package/lib/input/Input.d.ts +4 -0
  1291. package/lib/input/Input.js +204 -0
  1292. package/lib/input/PropsType.d.ts +55 -0
  1293. package/lib/input/PropsType.js +6 -0
  1294. package/lib/input/index.d.ts +9 -0
  1295. package/lib/input/index.js +14 -0
  1296. package/lib/input/style/index.css +82 -0
  1297. package/lib/input/style/var.css +0 -0
  1298. package/lib/lazyload/Lazyload.d.ts +4 -0
  1299. package/lib/lazyload/Lazyload.js +62 -0
  1300. package/lib/lazyload/PropsType.d.ts +9 -0
  1301. package/lib/lazyload/PropsType.js +6 -0
  1302. package/lib/lazyload/index.d.ts +4 -0
  1303. package/lib/lazyload/index.js +16 -0
  1304. package/lib/lazyload/style/index.css +5 -0
  1305. package/lib/lazyload/style/var.css +0 -0
  1306. package/lib/list/List.d.ts +4 -0
  1307. package/lib/list/List.js +50 -0
  1308. package/lib/list/LoadMore.d.ts +4 -0
  1309. package/lib/list/LoadMore.js +165 -0
  1310. package/lib/list/PropsType.d.ts +31 -0
  1311. package/lib/list/PropsType.js +6 -0
  1312. package/lib/list/index.d.ts +5 -0
  1313. package/lib/list/index.js +16 -0
  1314. package/lib/list/style/index.css +18 -0
  1315. package/lib/list/style/var.css +0 -0
  1316. package/lib/loading/Loading.d.ts +4 -0
  1317. package/lib/loading/Loading.js +114 -0
  1318. package/lib/loading/PropsType.d.ts +25 -0
  1319. package/lib/loading/PropsType.js +6 -0
  1320. package/lib/loading/index.d.ts +5 -0
  1321. package/lib/loading/index.js +16 -0
  1322. package/lib/loading/style/index.css +199 -0
  1323. package/lib/loading/style/var.css +0 -0
  1324. package/lib/locale/index.d.ts +7 -0
  1325. package/lib/locale/index.js +55 -0
  1326. package/lib/locale/lang/base.d.ts +75 -0
  1327. package/lib/locale/lang/base.js +81 -0
  1328. package/lib/locale/lang/en-US.d.ts +75 -0
  1329. package/lib/locale/lang/en-US.js +81 -0
  1330. package/lib/locale/lang/fr-FR.d.ts +74 -0
  1331. package/lib/locale/lang/fr-FR.js +80 -0
  1332. package/lib/locale/lang/ja-JP.d.ts +75 -0
  1333. package/lib/locale/lang/ja-JP.js +81 -0
  1334. package/lib/locale/lang/types.d.ts +75 -0
  1335. package/lib/locale/lang/types.js +6 -0
  1336. package/lib/locale/lang/zh-CN.d.ts +11 -0
  1337. package/lib/locale/lang/zh-CN.js +15 -0
  1338. package/lib/locale/lang/zh-HK.d.ts +75 -0
  1339. package/lib/locale/lang/zh-HK.js +81 -0
  1340. package/lib/locale/lang/zh-TW.d.ts +75 -0
  1341. package/lib/locale/lang/zh-TW.js +81 -0
  1342. package/lib/nav-bar/Navbar.d.ts +4 -0
  1343. package/lib/nav-bar/Navbar.js +136 -0
  1344. package/lib/nav-bar/PropsType.d.ts +25 -0
  1345. package/lib/nav-bar/PropsType.js +6 -0
  1346. package/lib/nav-bar/index.d.ts +4 -0
  1347. package/lib/nav-bar/index.js +14 -0
  1348. package/lib/nav-bar/style/index.css +72 -0
  1349. package/lib/nav-bar/style/var.css +0 -0
  1350. package/lib/notice-bar/NoticeBar.d.ts +4 -0
  1351. package/lib/notice-bar/NoticeBar.js +208 -0
  1352. package/lib/notice-bar/PropsType.d.ts +36 -0
  1353. package/lib/notice-bar/PropsType.js +6 -0
  1354. package/lib/notice-bar/index.d.ts +4 -0
  1355. package/lib/notice-bar/index.js +14 -0
  1356. package/lib/notice-bar/style/index.css +62 -0
  1357. package/lib/notice-bar/style/var.css +0 -0
  1358. package/lib/notify/Notify.d.ts +4 -0
  1359. package/lib/notify/Notify.js +66 -0
  1360. package/lib/notify/PropsType.d.ts +59 -0
  1361. package/lib/notify/PropsType.js +6 -0
  1362. package/lib/notify/index.d.ts +5 -0
  1363. package/lib/notify/index.js +16 -0
  1364. package/lib/notify/method.d.ts +11 -0
  1365. package/lib/notify/method.js +138 -0
  1366. package/lib/notify/style/index.css +35 -0
  1367. package/lib/notify/style/var.css +0 -0
  1368. package/lib/number-keyboard/NumberKeyboard.d.ts +4 -0
  1369. package/lib/number-keyboard/NumberKeyboard.js +264 -0
  1370. package/lib/number-keyboard/NumberKeyboardKey.d.ts +4 -0
  1371. package/lib/number-keyboard/NumberKeyboardKey.js +137 -0
  1372. package/lib/number-keyboard/PropsType.d.ts +75 -0
  1373. package/lib/number-keyboard/PropsType.js +6 -0
  1374. package/lib/number-keyboard/index.d.ts +5 -0
  1375. package/lib/number-keyboard/index.js +16 -0
  1376. package/lib/number-keyboard/style/index.css +134 -0
  1377. package/lib/number-keyboard/style/var.css +0 -0
  1378. package/lib/overlay/Overlay.d.ts +4 -0
  1379. package/lib/overlay/Overlay.js +92 -0
  1380. package/lib/overlay/PropsType.d.ts +17 -0
  1381. package/lib/overlay/PropsType.js +6 -0
  1382. package/lib/overlay/index.d.ts +5 -0
  1383. package/lib/overlay/index.js +16 -0
  1384. package/lib/overlay/style/index.css +13 -0
  1385. package/lib/overlay/style/var.css +0 -0
  1386. package/lib/pagination/Pagination.d.ts +4 -0
  1387. package/lib/pagination/Pagination.js +164 -0
  1388. package/lib/pagination/PropsType.d.ts +33 -0
  1389. package/lib/pagination/PropsType.js +6 -0
  1390. package/lib/pagination/index.d.ts +4 -0
  1391. package/lib/pagination/index.js +14 -0
  1392. package/lib/pagination/style/index.css +69 -0
  1393. package/lib/pagination/style/var.css +0 -0
  1394. package/lib/password-input/PasswordInput.d.ts +4 -0
  1395. package/lib/password-input/PasswordInput.js +219 -0
  1396. package/lib/password-input/PropsType.d.ts +36 -0
  1397. package/lib/password-input/PropsType.js +6 -0
  1398. package/lib/password-input/index.d.ts +4 -0
  1399. package/lib/password-input/index.js +14 -0
  1400. package/lib/password-input/style/index.css +112 -0
  1401. package/lib/password-input/style/var.css +0 -0
  1402. package/lib/picker/Picker.d.ts +7 -0
  1403. package/lib/picker/Picker.js +341 -0
  1404. package/lib/picker/PickerColumn.d.ts +8 -0
  1405. package/lib/picker/PickerColumn.js +295 -0
  1406. package/lib/picker/PropsType.d.ts +106 -0
  1407. package/lib/picker/PropsType.js +6 -0
  1408. package/lib/picker/columnsExtend.d.ts +9 -0
  1409. package/lib/picker/columnsExtend.js +138 -0
  1410. package/lib/picker/index.d.ts +5 -0
  1411. package/lib/picker/index.js +16 -0
  1412. package/lib/picker/style/index.css +113 -0
  1413. package/lib/picker/style/var.css +0 -0
  1414. package/lib/popover/Popover.d.ts +4 -0
  1415. package/lib/popover/Popover.js +226 -0
  1416. package/lib/popover/PropsType.d.ts +71 -0
  1417. package/lib/popover/PropsType.js +6 -0
  1418. package/lib/popover/index.d.ts +5 -0
  1419. package/lib/popover/index.js +16 -0
  1420. package/lib/popover/style/index.css +213 -0
  1421. package/lib/popover/style/var.css +0 -0
  1422. package/lib/popup/Popup.d.ts +5 -0
  1423. package/lib/popup/Popup.js +254 -0
  1424. package/lib/popup/PopupContext.d.ts +6 -0
  1425. package/lib/popup/PopupContext.js +16 -0
  1426. package/lib/popup/PropsType.d.ts +72 -0
  1427. package/lib/popup/PropsType.js +6 -0
  1428. package/lib/popup/index.d.ts +5 -0
  1429. package/lib/popup/index.js +16 -0
  1430. package/lib/popup/style/index.css +132 -0
  1431. package/lib/popup/style/var.css +0 -0
  1432. package/lib/product-card/ProductCard.d.ts +4 -0
  1433. package/lib/product-card/ProductCard.js +170 -0
  1434. package/lib/product-card/PropsType.d.ts +40 -0
  1435. package/lib/product-card/PropsType.js +6 -0
  1436. package/lib/product-card/index.d.ts +3 -0
  1437. package/lib/product-card/index.js +14 -0
  1438. package/lib/product-card/style/index.css +108 -0
  1439. package/lib/product-card/style/var.css +0 -0
  1440. package/lib/progress/Progress.d.ts +4 -0
  1441. package/lib/progress/Progress.js +86 -0
  1442. package/lib/progress/PropsType.d.ts +13 -0
  1443. package/lib/progress/PropsType.js +6 -0
  1444. package/lib/progress/index.d.ts +4 -0
  1445. package/lib/progress/index.js +14 -0
  1446. package/lib/progress/style/index.css +41 -0
  1447. package/lib/progress/style/var.css +0 -0
  1448. package/lib/pull-refresh/PropsType.d.ts +39 -0
  1449. package/lib/pull-refresh/PropsType.js +6 -0
  1450. package/lib/pull-refresh/PullRefresh.d.ts +4 -0
  1451. package/lib/pull-refresh/PullRefresh.js +261 -0
  1452. package/lib/pull-refresh/index.d.ts +4 -0
  1453. package/lib/pull-refresh/index.js +14 -0
  1454. package/lib/pull-refresh/style/index.css +31 -0
  1455. package/lib/pull-refresh/style/var.css +0 -0
  1456. package/lib/radio/PropsType.d.ts +24 -0
  1457. package/lib/radio/PropsType.js +6 -0
  1458. package/lib/radio/Radio.d.ts +3 -0
  1459. package/lib/radio/Radio.js +55 -0
  1460. package/lib/radio/RadioContext.d.ts +11 -0
  1461. package/lib/radio/RadioContext.js +16 -0
  1462. package/lib/radio/RadioGroup.d.ts +3 -0
  1463. package/lib/radio/RadioGroup.js +54 -0
  1464. package/lib/radio/index.d.ts +8 -0
  1465. package/lib/radio/index.js +19 -0
  1466. package/lib/radio/style/index.css +90 -0
  1467. package/lib/radio/style/var.css +0 -0
  1468. package/lib/rate/PropsType.d.ts +55 -0
  1469. package/lib/rate/PropsType.js +6 -0
  1470. package/lib/rate/Rate.d.ts +4 -0
  1471. package/lib/rate/Rate.js +238 -0
  1472. package/lib/rate/index.d.ts +4 -0
  1473. package/lib/rate/index.js +14 -0
  1474. package/lib/rate/style/index.css +43 -0
  1475. package/lib/rate/style/var.css +0 -0
  1476. package/lib/search/PropsType.d.ts +29 -0
  1477. package/lib/search/PropsType.js +6 -0
  1478. package/lib/search/Search.d.ts +4 -0
  1479. package/lib/search/Search.js +191 -0
  1480. package/lib/search/index.d.ts +4 -0
  1481. package/lib/search/index.js +14 -0
  1482. package/lib/search/style/index.css +64 -0
  1483. package/lib/search/style/var.css +0 -0
  1484. package/lib/selector/CheckMark.d.ts +2 -0
  1485. package/lib/selector/CheckMark.js +61 -0
  1486. package/lib/selector/PropsType.d.ts +25 -0
  1487. package/lib/selector/PropsType.js +6 -0
  1488. package/lib/selector/Selector.d.ts +2 -0
  1489. package/lib/selector/Selector.js +88 -0
  1490. package/lib/selector/index.d.ts +4 -0
  1491. package/lib/selector/index.js +14 -0
  1492. package/lib/selector/style/index.css +69 -0
  1493. package/lib/selector/style/var.css +0 -0
  1494. package/lib/share-sheet/PropsType.d.ts +29 -0
  1495. package/lib/share-sheet/PropsType.js +6 -0
  1496. package/lib/share-sheet/ShareSheet.d.ts +4 -0
  1497. package/lib/share-sheet/ShareSheet.js +151 -0
  1498. package/lib/share-sheet/index.d.ts +5 -0
  1499. package/lib/share-sheet/index.js +16 -0
  1500. package/lib/share-sheet/style/index.css +103 -0
  1501. package/lib/share-sheet/style/var.css +0 -0
  1502. package/lib/sidebar/PropsType.d.ts +41 -0
  1503. package/lib/sidebar/PropsType.js +6 -0
  1504. package/lib/sidebar/Sidebar.d.ts +4 -0
  1505. package/lib/sidebar/Sidebar.js +98 -0
  1506. package/lib/sidebar/SidebarItem.d.ts +4 -0
  1507. package/lib/sidebar/SidebarItem.js +63 -0
  1508. package/lib/sidebar/index.d.ts +8 -0
  1509. package/lib/sidebar/index.js +19 -0
  1510. package/lib/sidebar/style/index.css +77 -0
  1511. package/lib/sidebar/style/var.css +0 -0
  1512. package/lib/skeleton/PropsType.d.ts +31 -0
  1513. package/lib/skeleton/PropsType.js +6 -0
  1514. package/lib/skeleton/Skeleton.d.ts +4 -0
  1515. package/lib/skeleton/Skeleton.js +122 -0
  1516. package/lib/skeleton/index.d.ts +5 -0
  1517. package/lib/skeleton/index.js +16 -0
  1518. package/lib/skeleton/style/index.css +56 -0
  1519. package/lib/skeleton/style/var.css +0 -0
  1520. package/lib/sku/PropsType.d.ts +189 -0
  1521. package/lib/sku/PropsType.js +6 -0
  1522. package/lib/sku/Sku.d.ts +4 -0
  1523. package/lib/sku/Sku.js +537 -0
  1524. package/lib/sku/components/SkuRow.d.ts +7 -0
  1525. package/lib/sku/components/SkuRow.js +60 -0
  1526. package/lib/sku/components/SkuRowItem.d.ts +15 -0
  1527. package/lib/sku/components/SkuRowItem.js +108 -0
  1528. package/lib/sku/components/SkuRowPropItem.d.ts +10 -0
  1529. package/lib/sku/components/SkuRowPropItem.js +64 -0
  1530. package/lib/sku/components/SkuStepper.d.ts +17 -0
  1531. package/lib/sku/components/SkuStepper.js +148 -0
  1532. package/lib/sku/constants.d.ts +13 -0
  1533. package/lib/sku/constants.js +16 -0
  1534. package/lib/sku/index.d.ts +5 -0
  1535. package/lib/sku/index.js +16 -0
  1536. package/lib/sku/style/index.css +283 -0
  1537. package/lib/sku/style/var.css +0 -0
  1538. package/lib/sku/utils.d.ts +25 -0
  1539. package/lib/sku/utils.js +170 -0
  1540. package/lib/slider/PropsType.d.ts +59 -0
  1541. package/lib/slider/PropsType.js +6 -0
  1542. package/lib/slider/Slider.d.ts +4 -0
  1543. package/lib/slider/Slider.js +297 -0
  1544. package/lib/slider/index.d.ts +4 -0
  1545. package/lib/slider/index.js +14 -0
  1546. package/lib/slider/style/index.css +85 -0
  1547. package/lib/slider/style/var.css +0 -0
  1548. package/lib/space/PropsType.d.ts +25 -0
  1549. package/lib/space/PropsType.js +6 -0
  1550. package/lib/space/Space.d.ts +4 -0
  1551. package/lib/space/Space.js +82 -0
  1552. package/lib/space/index.d.ts +4 -0
  1553. package/lib/space/index.js +14 -0
  1554. package/lib/space/style/index.css +56 -0
  1555. package/lib/space/style/var.css +0 -0
  1556. package/lib/stepper/PropsType.d.ts +66 -0
  1557. package/lib/stepper/PropsType.js +6 -0
  1558. package/lib/stepper/Stepper.d.ts +4 -0
  1559. package/lib/stepper/Stepper.js +257 -0
  1560. package/lib/stepper/index.d.ts +5 -0
  1561. package/lib/stepper/index.js +16 -0
  1562. package/lib/stepper/style/index.css +130 -0
  1563. package/lib/stepper/style/var.css +0 -0
  1564. package/lib/steps/PropsType.d.ts +33 -0
  1565. package/lib/steps/PropsType.js +6 -0
  1566. package/lib/steps/Steps.d.ts +4 -0
  1567. package/lib/steps/Steps.js +72 -0
  1568. package/lib/steps/StepsItem.d.ts +4 -0
  1569. package/lib/steps/StepsItem.js +150 -0
  1570. package/lib/steps/index.d.ts +8 -0
  1571. package/lib/steps/index.js +19 -0
  1572. package/lib/steps/style/index.css +143 -0
  1573. package/lib/steps/style/var.css +0 -0
  1574. package/lib/sticky/PropsType.d.ts +25 -0
  1575. package/lib/sticky/PropsType.js +6 -0
  1576. package/lib/sticky/Sticky.d.ts +4 -0
  1577. package/lib/sticky/Sticky.js +150 -0
  1578. package/lib/sticky/index.d.ts +5 -0
  1579. package/lib/sticky/index.js +16 -0
  1580. package/lib/sticky/style/index.css +7 -0
  1581. package/lib/sticky/style/var.css +0 -0
  1582. package/lib/styles/animation.css +130 -0
  1583. package/lib/styles/base.css +310 -0
  1584. package/lib/styles/css-variables.css +66 -0
  1585. package/lib/styles/index.d.ts +1 -0
  1586. package/lib/styles/index.js +4 -0
  1587. package/lib/styles/mixins/ellipsis.css +0 -0
  1588. package/lib/styles/mixins/hairline.css +0 -0
  1589. package/lib/styles/normalize.css +29 -0
  1590. package/lib/styles/var.css +0 -0
  1591. package/lib/submit-bar/PropsType.d.ts +40 -0
  1592. package/lib/submit-bar/PropsType.js +6 -0
  1593. package/lib/submit-bar/SubmitBar.d.ts +4 -0
  1594. package/lib/submit-bar/SubmitBar.js +131 -0
  1595. package/lib/submit-bar/index.d.ts +4 -0
  1596. package/lib/submit-bar/index.js +16 -0
  1597. package/lib/submit-bar/style/index.css +84 -0
  1598. package/lib/submit-bar/style/var.css +0 -0
  1599. package/lib/swipe-cell/PropsType.d.ts +39 -0
  1600. package/lib/swipe-cell/PropsType.js +6 -0
  1601. package/lib/swipe-cell/SwipeCell.d.ts +4 -0
  1602. package/lib/swipe-cell/SwipeCell.js +205 -0
  1603. package/lib/swipe-cell/index.d.ts +4 -0
  1604. package/lib/swipe-cell/index.js +14 -0
  1605. package/lib/swipe-cell/style/index.css +23 -0
  1606. package/lib/swiper/PropsType.d.ts +70 -0
  1607. package/lib/swiper/PropsType.js +6 -0
  1608. package/lib/swiper/Swiper.d.ts +4 -0
  1609. package/lib/swiper/Swiper.js +353 -0
  1610. package/lib/swiper/SwiperItem.d.ts +4 -0
  1611. package/lib/swiper/SwiperItem.js +56 -0
  1612. package/lib/swiper/SwiperPagIndicator.d.ts +4 -0
  1613. package/lib/swiper/SwiperPagIndicator.js +60 -0
  1614. package/lib/swiper/index.d.ts +8 -0
  1615. package/lib/swiper/index.js +14 -0
  1616. package/lib/swiper/style/index.css +107 -0
  1617. package/lib/swiper/style/var.css +0 -0
  1618. package/lib/switch/PropsType.d.ts +25 -0
  1619. package/lib/switch/PropsType.js +6 -0
  1620. package/lib/switch/Switch.d.ts +4 -0
  1621. package/lib/switch/Switch.js +96 -0
  1622. package/lib/switch/index.d.ts +5 -0
  1623. package/lib/switch/index.js +16 -0
  1624. package/lib/switch/style/index.css +60 -0
  1625. package/lib/switch/style/var.css +0 -0
  1626. package/lib/tabbar/PropsType.d.ts +36 -0
  1627. package/lib/tabbar/PropsType.js +6 -0
  1628. package/lib/tabbar/Tabbar.d.ts +4 -0
  1629. package/lib/tabbar/Tabbar.js +106 -0
  1630. package/lib/tabbar/TabbarContext.d.ts +7 -0
  1631. package/lib/tabbar/TabbarContext.js +16 -0
  1632. package/lib/tabbar/TabbarItem.d.ts +4 -0
  1633. package/lib/tabbar/TabbarItem.js +90 -0
  1634. package/lib/tabbar/index.d.ts +8 -0
  1635. package/lib/tabbar/index.js +19 -0
  1636. package/lib/tabbar/style/index.css +54 -0
  1637. package/lib/tabbar/style/var.css +0 -0
  1638. package/lib/tabs/PropsType.d.ts +149 -0
  1639. package/lib/tabs/PropsType.js +6 -0
  1640. package/lib/tabs/TabPane.d.ts +4 -0
  1641. package/lib/tabs/TabPane.js +83 -0
  1642. package/lib/tabs/Tabs.d.ts +4 -0
  1643. package/lib/tabs/Tabs.js +367 -0
  1644. package/lib/tabs/TabsContent.d.ts +4 -0
  1645. package/lib/tabs/TabsContent.js +94 -0
  1646. package/lib/tabs/TabsContext.d.ts +9 -0
  1647. package/lib/tabs/TabsContext.js +16 -0
  1648. package/lib/tabs/TabsTitle.d.ts +4 -0
  1649. package/lib/tabs/TabsTitle.js +125 -0
  1650. package/lib/tabs/index.d.ts +8 -0
  1651. package/lib/tabs/index.js +14 -0
  1652. package/lib/tabs/style/index.css +201 -0
  1653. package/lib/tabs/style/var.css +0 -0
  1654. package/lib/tabs/utils.d.ts +1 -0
  1655. package/lib/tabs/utils.js +47 -0
  1656. package/lib/tag/PropsType.d.ts +26 -0
  1657. package/lib/tag/PropsType.js +6 -0
  1658. package/lib/tag/Tag.d.ts +4 -0
  1659. package/lib/tag/Tag.js +111 -0
  1660. package/lib/tag/index.d.ts +5 -0
  1661. package/lib/tag/index.js +16 -0
  1662. package/lib/tag/style/index.css +110 -0
  1663. package/lib/tag/style/var.css +0 -0
  1664. package/lib/text-area/PropsType.d.ts +32 -0
  1665. package/lib/text-area/PropsType.js +6 -0
  1666. package/lib/text-area/TextArea.d.ts +4 -0
  1667. package/lib/text-area/TextArea.js +215 -0
  1668. package/lib/text-area/index.d.ts +5 -0
  1669. package/lib/text-area/index.js +16 -0
  1670. package/lib/text-area/style/index.css +144 -0
  1671. package/lib/text-area/style/var.css +0 -0
  1672. package/lib/toast/PropsType.d.ts +74 -0
  1673. package/lib/toast/PropsType.js +6 -0
  1674. package/lib/toast/Toast.d.ts +6 -0
  1675. package/lib/toast/Toast.js +125 -0
  1676. package/lib/toast/index.d.ts +5 -0
  1677. package/lib/toast/index.js +16 -0
  1678. package/lib/toast/lock-click.d.ts +1 -0
  1679. package/lib/toast/lock-click.js +21 -0
  1680. package/lib/toast/method.d.ts +3 -0
  1681. package/lib/toast/method.js +159 -0
  1682. package/lib/toast/style/index.css +72 -0
  1683. package/lib/toast/style/var.css +0 -0
  1684. package/lib/typography/Ellipsis.d.ts +4 -0
  1685. package/lib/typography/Ellipsis.js +153 -0
  1686. package/lib/typography/PropsType.d.ts +34 -0
  1687. package/lib/typography/PropsType.js +6 -0
  1688. package/lib/typography/Typography.d.ts +6 -0
  1689. package/lib/typography/Typography.js +149 -0
  1690. package/lib/typography/index.d.ts +12 -0
  1691. package/lib/typography/index.js +33 -0
  1692. package/lib/typography/style/index.css +132 -0
  1693. package/lib/typography/style/var.css +0 -0
  1694. package/lib/uploader/PropsType.d.ts +132 -0
  1695. package/lib/uploader/PropsType.js +6 -0
  1696. package/lib/uploader/Uploader.d.ts +4 -0
  1697. package/lib/uploader/Uploader.js +312 -0
  1698. package/lib/uploader/UploaderPreviewItem.d.ts +3 -0
  1699. package/lib/uploader/UploaderPreviewItem.js +133 -0
  1700. package/lib/uploader/index.d.ts +4 -0
  1701. package/lib/uploader/index.js +14 -0
  1702. package/lib/uploader/style/index.css +166 -0
  1703. package/lib/uploader/style/var.css +0 -0
  1704. package/lib/uploader/utils.d.ts +10 -0
  1705. package/lib/uploader/utils.js +87 -0
  1706. package/lib/utils/base.d.ts +18 -0
  1707. package/lib/utils/base.js +57 -0
  1708. package/lib/utils/bound.d.ts +1 -0
  1709. package/lib/utils/bound.js +17 -0
  1710. package/lib/utils/constant.d.ts +16 -0
  1711. package/lib/utils/constant.js +27 -0
  1712. package/lib/utils/create/bem.d.ts +14 -0
  1713. package/lib/utils/create/bem.js +39 -0
  1714. package/lib/utils/create/index.d.ts +3 -0
  1715. package/lib/utils/create/index.js +14 -0
  1716. package/lib/utils/debounce.d.ts +6 -0
  1717. package/lib/utils/debounce.js +129 -0
  1718. package/lib/utils/deep-assign.d.ts +3 -0
  1719. package/lib/utils/deep-assign.js +26 -0
  1720. package/lib/utils/deep-clone.d.ts +4 -0
  1721. package/lib/utils/deep-clone.js +36 -0
  1722. package/lib/utils/dev-log.d.ts +1 -0
  1723. package/lib/utils/dev-log.js +15 -0
  1724. package/lib/utils/dom/canUseDom.d.ts +1 -0
  1725. package/lib/utils/dom/canUseDom.js +10 -0
  1726. package/lib/utils/dom/event.d.ts +5 -0
  1727. package/lib/utils/dom/event.js +44 -0
  1728. package/lib/utils/dom/getContainer.d.ts +1 -0
  1729. package/lib/utils/dom/getContainer.js +11 -0
  1730. package/lib/utils/dom/getTargetElement.d.ts +4 -0
  1731. package/lib/utils/dom/getTargetElement.js +21 -0
  1732. package/lib/utils/dom/render copy.d.ts +9 -0
  1733. package/lib/utils/dom/render copy.js +87 -0
  1734. package/lib/utils/dom/render.d.ts +9 -0
  1735. package/lib/utils/dom/render.js +103 -0
  1736. package/lib/utils/dom/renderToContainer.d.ts +3 -0
  1737. package/lib/utils/dom/renderToContainer.js +24 -0
  1738. package/lib/utils/dom/scroll.d.ts +12 -0
  1739. package/lib/utils/dom/scroll.js +103 -0
  1740. package/lib/utils/dom/style.d.ts +1 -0
  1741. package/lib/utils/dom/style.js +20 -0
  1742. package/lib/utils/dom/version.d.ts +2 -0
  1743. package/lib/utils/dom/version.js +23 -0
  1744. package/lib/utils/format/number.d.ts +3 -0
  1745. package/lib/utils/format/number.js +43 -0
  1746. package/lib/utils/format/react.d.ts +2 -0
  1747. package/lib/utils/format/react.js +27 -0
  1748. package/lib/utils/format/string.d.ts +2 -0
  1749. package/lib/utils/format/string.js +19 -0
  1750. package/lib/utils/format/unit.d.ts +12 -0
  1751. package/lib/utils/format/unit.js +80 -0
  1752. package/lib/utils/get-default-props.d.ts +2 -0
  1753. package/lib/utils/get-default-props.js +19 -0
  1754. package/lib/utils/index.d.ts +10 -0
  1755. package/lib/utils/index.js +116 -0
  1756. package/lib/utils/interceptor.d.ts +7 -0
  1757. package/lib/utils/interceptor.js +38 -0
  1758. package/lib/utils/interface.d.ts +13 -0
  1759. package/lib/utils/interface.js +6 -0
  1760. package/lib/utils/is-dev.d.ts +1 -0
  1761. package/lib/utils/is-dev.js +8 -0
  1762. package/lib/utils/raf.d.ts +4 -0
  1763. package/lib/utils/raf.js +37 -0
  1764. package/lib/utils/rubberband.d.ts +2 -0
  1765. package/lib/utils/rubberband.js +18 -0
  1766. package/lib/utils/supports-passive.d.ts +1 -0
  1767. package/lib/utils/supports-passive.js +21 -0
  1768. package/lib/utils/throttle.d.ts +7 -0
  1769. package/lib/utils/throttle.js +27 -0
  1770. package/lib/utils/validate/date.d.ts +1 -0
  1771. package/lib/utils/validate/date.js +11 -0
  1772. package/lib/utils/validate/number.d.ts +2 -0
  1773. package/lib/utils/validate/number.js +18 -0
  1774. package/lib/utils/validate/system.d.ts +2 -0
  1775. package/lib/utils/validate/system.js +15 -0
  1776. package/lib/water-mark/PropsType.d.ts +39 -0
  1777. package/lib/water-mark/PropsType.js +6 -0
  1778. package/lib/water-mark/WaterMark.d.ts +4 -0
  1779. package/lib/water-mark/WaterMark.js +127 -0
  1780. package/lib/water-mark/index.d.ts +4 -0
  1781. package/lib/water-mark/index.js +14 -0
  1782. package/lib/water-mark/style/index.css +16 -0
  1783. package/package.json +96 -0
@@ -0,0 +1,140 @@
1
+ :root {
2
+ --rv-cell-font-size: var(--rv-font-size-md);
3
+ --rv-cell-line-height: 24px;
4
+ --rv-cell-vertical-padding: 10px;
5
+ --rv-cell-horizontal-padding: var(--rv-padding-md);
6
+ --rv-cell-text-color: var(--rv-text-color);
7
+ --rv-cell-background-color: var(--rv-white);
8
+ --rv-cell-border-color: var(--rv-border-color);
9
+ --rv-cell-active-color: var(--rv-active-color);
10
+ --rv-cell-required-color: var(--rv-danger-color);
11
+ --rv-cell-label-color: var(--rv-gray-6);
12
+ --rv-cell-label-font-size: var(--rv-font-size-sm);
13
+ --rv-cell-label-line-height: var(--rv-line-height-sm);
14
+ --rv-cell-label-margin-top: var(--rv-padding-base);
15
+ --rv-cell-value-color: var(--rv-gray-6);
16
+ --rv-cell-icon-size: 16px;
17
+ --rv-cell-right-icon-color: var(--rv-gray-6);
18
+ --rv-cell-large-vertical-padding: var(--rv-padding-sm);
19
+ --rv-cell-large-title-font-size: var(--rv-font-size-lg);
20
+ --rv-cell-large-label-font-size: var(--rv-font-size-md);
21
+ --rv-cell-group-background-color: var(--rv-white);
22
+ --rv-cell-group-title-color: var(--rv-gray-6);
23
+ --rv-cell-group-title-padding: var(--rv-padding-md) var(--rv-padding-md) var(--rv-padding-xs);
24
+ --rv-cell-group-title-font-size: var(--rv-font-size-md);
25
+ --rv-cell-group-title-line-height: 16px;
26
+ --rv-cell-group-inset-padding: 0 var(--rv-padding-md);
27
+ --rv-cell-group-inset-border-radius: var(--rv-border-radius-lg);
28
+ --rv-cell-group-inset-title-padding: var(--rv-padding-md) var(--rv-padding-md) var(--rv-padding-xs) var(--rv-padding-xl);
29
+ }
30
+ .rv-cell {
31
+ position: relative;
32
+ display: flex;
33
+ box-sizing: border-box;
34
+ width: 100%;
35
+ padding: var(--rv-cell-vertical-padding) var(--rv-cell-horizontal-padding);
36
+ overflow: hidden;
37
+ color: var(--rv-cell-text-color);
38
+ font-size: var(--rv-cell-font-size);
39
+ line-height: var(--rv-cell-line-height);
40
+ background-color: var(--rv-cell-background-color);
41
+ }
42
+ .rv-cell::after {
43
+ position: absolute;
44
+ box-sizing: border-box;
45
+ content: ' ';
46
+ pointer-events: none;
47
+ right: var(--rv-padding-md);
48
+ bottom: 0;
49
+ left: var(--rv-padding-md);
50
+ border-bottom: 1px solid var(--rv-cell-border-color);
51
+ transform: scaleY(0.5);
52
+ }
53
+ .rv-cell:last-child::after,
54
+ .rv-cell--borderless::after {
55
+ display: none;
56
+ }
57
+ .rv-cell__label {
58
+ margin-top: var(--rv-cell-label-margin-top);
59
+ color: var(--rv-cell-label-color);
60
+ font-size: var(--rv-cell-label-font-size);
61
+ line-height: var(--rv-cell-label-line-height);
62
+ }
63
+ .rv-cell__title,
64
+ .rv-cell__value {
65
+ flex: 1;
66
+ }
67
+ .rv-cell__value {
68
+ position: relative;
69
+ overflow: hidden;
70
+ color: var(--rv-cell-value-color);
71
+ text-align: right;
72
+ vertical-align: middle;
73
+ word-wrap: break-word;
74
+ }
75
+ .rv-cell__value--alone {
76
+ color: var(--rv-text-color);
77
+ text-align: left;
78
+ }
79
+ .rv-cell__left-icon,
80
+ .rv-cell__right-icon {
81
+ height: var(--rv-cell-line-height);
82
+ font-size: var(--rv-cell-icon-size);
83
+ line-height: var(--rv-cell-line-height);
84
+ display: inline-flex;
85
+ justify-content: center;
86
+ align-items: center;
87
+ }
88
+ .rv-cell__left-icon {
89
+ margin-right: var(--rv-padding-xs);
90
+ }
91
+ .rv-cell__right-icon {
92
+ margin-left: var(--rv-padding-xs);
93
+ color: var(--rv-cell-right-icon-color);
94
+ }
95
+ .rv-cell--clickable {
96
+ cursor: pointer;
97
+ }
98
+ .rv-cell--clickable:active {
99
+ background-color: var(--rv-cell-active-color);
100
+ }
101
+ .rv-cell--required {
102
+ overflow: visible;
103
+ }
104
+ .rv-cell--required::before {
105
+ position: absolute;
106
+ left: var(--rv-padding-xs);
107
+ color: var(--rv-cell-required-color);
108
+ font-size: var(--rv-cell-font-size);
109
+ content: '*';
110
+ }
111
+ .rv-cell--center {
112
+ align-items: center;
113
+ }
114
+ .rv-cell--large {
115
+ padding-top: var(--rv-cell-large-vertical-padding);
116
+ padding-bottom: var(--rv-cell-large-vertical-padding);
117
+ }
118
+ .rv-cell--large .rv-cell__title {
119
+ font-size: var(--rv-cell-large-title-font-size);
120
+ }
121
+ .rv-cell--large .rv-cell__label {
122
+ font-size: var(--rv-cell-large-label-font-size);
123
+ }
124
+ .rv-cell-group {
125
+ background-color: var(--rv-cell-group-background-color);
126
+ }
127
+ .rv-cell-group--inset {
128
+ margin: var(--rv-cell-group-inset-padding);
129
+ overflow: hidden;
130
+ border-radius: var(--rv-cell-group-inset-border-radius);
131
+ }
132
+ .rv-cell-group__title {
133
+ padding: var(--rv-cell-group-title-padding);
134
+ color: var(--rv-cell-group-title-color);
135
+ font-size: var(--rv-cell-group-title-font-size);
136
+ line-height: var(--rv-cell-group-title-line-height);
137
+ }
138
+ .rv-cell-group__title--inset {
139
+ padding: var(--rv-cell-group-inset-title-padding);
140
+ }
File without changes
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CheckboxInstance, CheckboxProps } from './PropsType';
3
+ declare const CheckBox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<CheckboxInstance>>;
4
+ export default CheckBox;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ function _react() {
8
+ const data = _interopRequireWildcard(require("react"));
9
+ _react = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _tslib() {
15
+ const data = require("tslib");
16
+ _tslib = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
21
+ function _jsxRuntime() {
22
+ const data = require("react/jsx-runtime");
23
+ _jsxRuntime = function () {
24
+ return data;
25
+ };
26
+ return data;
27
+ }
28
+ var _Checker = _interopRequireDefault(require("./Checker"));
29
+ var _CheckboxContext = _interopRequireDefault(require("./CheckboxContext"));
30
+ var _useMergedState = _interopRequireDefault(require("../hooks/use-merged-state"));
31
+ var _utils = require("../utils");
32
+ var _getDefaultProps = require("../utils/get-default-props");
33
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
34
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
35
+ const [bem] = (0, _utils.createNamespace)('checkbox');
36
+ const CheckBox = (0, _react().forwardRef)((p, ref) => {
37
+ const props = (0, _getDefaultProps.mergeProps)(p, {
38
+ bindGroup: true
39
+ });
40
+ const _a = (0, _react().useContext)(_CheckboxContext.default),
41
+ {
42
+ parent
43
+ } = _a,
44
+ context = (0, _tslib().__rest)(_a, ["parent"]);
45
+ const [checked, setChecked] = (0, _useMergedState.default)({
46
+ value: props.checked,
47
+ defaultValue: props.defaultChecked
48
+ });
49
+ const setParentValue = isChecked => {
50
+ const {
51
+ name
52
+ } = props;
53
+ const {
54
+ max
55
+ } = parent.props;
56
+ const value = context.checked.slice();
57
+ if (isChecked) {
58
+ const overlimit = max && value.length >= max;
59
+ if (!overlimit && value.indexOf(name) === -1) {
60
+ value.push(name);
61
+ if (props.bindGroup) {
62
+ context.toggle(value);
63
+ }
64
+ }
65
+ } else {
66
+ const index = value.indexOf(name);
67
+ if (index !== -1) {
68
+ value.splice(index, 1);
69
+ if (props.bindGroup) {
70
+ context.toggle(value);
71
+ }
72
+ }
73
+ }
74
+ };
75
+ const isChecked = (0, _react().useMemo)(() => {
76
+ if (parent && props.bindGroup) {
77
+ return context.checked.indexOf(props.name) !== -1;
78
+ }
79
+ return checked;
80
+ }, [context.checked, checked]);
81
+ const toggle = (newValue = !isChecked) => {
82
+ var _a;
83
+ if (parent && props.bindGroup) {
84
+ setParentValue(newValue);
85
+ } else {
86
+ setChecked(newValue);
87
+ (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, newValue);
88
+ }
89
+ };
90
+ (0, _react().useImperativeHandle)(ref, () => ({
91
+ toggle,
92
+ checked: isChecked,
93
+ props
94
+ }));
95
+ return (0, _jsxRuntime().jsx)(_Checker.default, Object.assign({}, props, {
96
+ bem: bem,
97
+ role: 'checkbox',
98
+ parent: parent,
99
+ checked: isChecked,
100
+ className: props.className,
101
+ bindGroup: props.bindGroup,
102
+ onToggle: toggle
103
+ }));
104
+ });
105
+ CheckBox.displayName = 'Checkbox';
106
+ var _default = exports.default = CheckBox;
@@ -0,0 +1,11 @@
1
+ import { Context } from 'react';
2
+ import { CheckboxGroupProps } from './PropsType';
3
+ export interface CheckboxContextState {
4
+ parent?: {
5
+ props: CheckboxGroupProps;
6
+ };
7
+ toggle?: (names: Array<string | number>) => void;
8
+ checked?: (string | number)[];
9
+ }
10
+ declare const CheckboxContext: Context<CheckboxContextState>;
11
+ export default CheckboxContext;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ function _react() {
8
+ const data = _interopRequireWildcard(require("react"));
9
+ _react = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
+ const CheckboxContext = (0, _react().createContext)({});
16
+ var _default = exports.default = CheckboxContext;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CheckboxGroupProps, CheckboxGroupInstance } from './PropsType';
3
+ declare const CheckBoxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<CheckboxGroupInstance>>;
4
+ export default CheckBoxGroup;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ function _jsxRuntime() {
8
+ const data = require("react/jsx-runtime");
9
+ _jsxRuntime = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _react() {
15
+ const data = _interopRequireWildcard(require("react"));
16
+ _react = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
21
+ function _clsx() {
22
+ const data = _interopRequireDefault(require("clsx"));
23
+ _clsx = function () {
24
+ return data;
25
+ };
26
+ return data;
27
+ }
28
+ var _useMergedState = _interopRequireDefault(require("../hooks/use-merged-state"));
29
+ var _CheckboxContext = _interopRequireDefault(require("./CheckboxContext"));
30
+ var _utils = require("../utils");
31
+ var _useRefs = _interopRequireDefault(require("../hooks/use-refs"));
32
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
33
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
34
+ const [bem] = (0, _utils.createNamespace)('checkbox-group');
35
+ const CheckBoxGroup = (0, _react().forwardRef)((props, ref) => {
36
+ const [childrenRefs, setChildrenRefs] = (0, _useRefs.default)();
37
+ const [checked, setChecked] = (0, _useMergedState.default)({
38
+ value: props.value,
39
+ defaultValue: props.defaultValue
40
+ });
41
+ const toggleAll = (options = {}) => {
42
+ if (typeof options === 'boolean') {
43
+ options = {
44
+ checked: options
45
+ };
46
+ }
47
+ const {
48
+ checked: isChecked,
49
+ skipDisabled
50
+ } = options;
51
+ const checkedChildren = childrenRefs.filter(item => {
52
+ if (!item.props.bindGroup) {
53
+ return false;
54
+ }
55
+ if (item.props.disabled && skipDisabled) {
56
+ return item.checked;
57
+ }
58
+ return isChecked !== null && isChecked !== void 0 ? isChecked : !item.checked;
59
+ });
60
+ const names = checkedChildren.map(item => item.props.name);
61
+ setChecked(names);
62
+ props.onChange(names);
63
+ };
64
+ const toggle = name => {
65
+ var _a;
66
+ setChecked(name);
67
+ (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, name);
68
+ };
69
+ (0, _react().useImperativeHandle)(ref, () => ({
70
+ toggleAll
71
+ }));
72
+ return (0, _jsxRuntime().jsx)(_CheckboxContext.default.Provider, Object.assign({
73
+ value: {
74
+ parent: {
75
+ props
76
+ },
77
+ toggle,
78
+ checked: checked || []
79
+ }
80
+ }, {
81
+ children: (0, _jsxRuntime().jsx)("div", Object.assign({
82
+ className: (0, _clsx().default)(props.className, bem([props.direction]))
83
+ }, {
84
+ children: _react().default.Children.toArray(props.children).filter(Boolean).map((child, index) => {
85
+ var _a;
86
+ if (((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) !== 'Checkbox') return child;
87
+ return _react().default.cloneElement(child, {
88
+ ref: setChildrenRefs(index)
89
+ });
90
+ })
91
+ }))
92
+ }));
93
+ });
94
+ var _default = exports.default = CheckBoxGroup;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CheckerProps } from './PropsType';
3
+ declare const Checker: React.FC<CheckerProps<{}>>;
4
+ export default Checker;
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ function _react() {
8
+ const data = _interopRequireWildcard(require("react"));
9
+ _react = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _jsxRuntime() {
15
+ const data = require("react/jsx-runtime");
16
+ _jsxRuntime = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
21
+ function _clsx() {
22
+ const data = _interopRequireDefault(require("clsx"));
23
+ _clsx = function () {
24
+ return data;
25
+ };
26
+ return data;
27
+ }
28
+ function _icons() {
29
+ const data = require("@react-vant/icons");
30
+ _icons = function () {
31
+ return data;
32
+ };
33
+ return data;
34
+ }
35
+ var _utils = require("../utils");
36
+ var _getDefaultProps = require("../utils/get-default-props");
37
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
38
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
39
+ const Checker = p => {
40
+ const props = (0, _getDefaultProps.mergeProps)(p, {
41
+ shape: 'round',
42
+ bindGroup: true
43
+ });
44
+ const iconRef = (0, _react().useRef)(null);
45
+ const getParentProp = name => {
46
+ if (props.parent && props.bindGroup) {
47
+ return props.parent.props[name];
48
+ }
49
+ return null;
50
+ };
51
+ const disabled = (0, _react().useMemo)(() => getParentProp('disabled') || props.disabled, [props.parent, props.disabled]);
52
+ const direction = (0, _react().useMemo)(() => getParentProp('direction') || null, [props.parent]);
53
+ const iconStyle = (0, _react().useMemo)(() => {
54
+ const checkedColor = props.checkedColor || getParentProp('checkedColor');
55
+ if (checkedColor && props.checked && !disabled) {
56
+ return {
57
+ borderColor: checkedColor,
58
+ backgroundColor: checkedColor
59
+ };
60
+ }
61
+ return {};
62
+ }, [props.checkedColor, props.checked, disabled]);
63
+ const onClick = event => {
64
+ const {
65
+ target
66
+ } = event;
67
+ const icon = iconRef.current;
68
+ const iconClicked = icon === target || (icon === null || icon === void 0 ? void 0 : icon.contains(target));
69
+ if (!disabled && (iconClicked || !props.labelDisabled)) {
70
+ if (props.onToggle) {
71
+ props.onToggle();
72
+ }
73
+ }
74
+ if (props.onClick) {
75
+ props.onClick(event);
76
+ }
77
+ };
78
+ const renderIcon = () => {
79
+ const {
80
+ bem,
81
+ shape,
82
+ checked
83
+ } = props;
84
+ const iconSize = props.iconSize || getParentProp('iconSize');
85
+ return (0, _jsxRuntime().jsx)("div", Object.assign({
86
+ ref: iconRef,
87
+ className: (0, _clsx().default)(bem('icon', [shape, {
88
+ disabled,
89
+ checked
90
+ }])),
91
+ style: {
92
+ fontSize: (0, _utils.addUnit)(iconSize)
93
+ }
94
+ }, {
95
+ children: props.iconRender ? props.iconRender({
96
+ checked,
97
+ disabled
98
+ }) : (0, _jsxRuntime().jsx)(_icons().Success, {
99
+ style: iconStyle
100
+ })
101
+ }));
102
+ };
103
+ const renderLabel = () => {
104
+ if (props.children) {
105
+ return (0, _jsxRuntime().jsx)("span", Object.assign({
106
+ className: props.bem('label', [props.labelPosition, {
107
+ disabled
108
+ }])
109
+ }, {
110
+ children: props.children
111
+ }));
112
+ }
113
+ return null;
114
+ };
115
+ return (0, _jsxRuntime().jsxs)("div", Object.assign({
116
+ role: props.role,
117
+ className: (0, _clsx().default)(props.bem([{
118
+ disabled,
119
+ 'label-disabled': props.labelDisabled
120
+ }, direction]), props.className),
121
+ style: props.style,
122
+ tabIndex: disabled ? -1 : 0,
123
+ "aria-checked": props.checked,
124
+ onClick: onClick
125
+ }, {
126
+ children: [props.labelPosition === 'left' && renderLabel(), renderIcon(), props.labelPosition !== 'left' && renderLabel()]
127
+ }));
128
+ };
129
+ var _default = exports.default = Checker;
@@ -0,0 +1,96 @@
1
+ import React from 'react';
2
+ import { BaseTypeProps } from '../utils';
3
+ declare type Shape = 'round' | 'square';
4
+ export interface CheckboxGroupProps extends BaseTypeProps {
5
+ /**
6
+ * 最大可选数
7
+ */
8
+ max?: number | string;
9
+ /** 所有选中项的标识符 */
10
+ value?: any[];
11
+ /** 默认选中项 */
12
+ defaultValue?: any[];
13
+ /** 是否禁用所有复选框 */
14
+ disabled?: boolean;
15
+ /** 所有复选框的图标大小,默认单位为 px */
16
+ iconSize?: number | string;
17
+ /** 自定义图标 */
18
+ iconRender?: ({ checked, disabled, }: {
19
+ checked: boolean;
20
+ disabled: boolean;
21
+ }) => React.ReactNode;
22
+ /** 排列方向,可选值为 horizontal */
23
+ direction?: string;
24
+ /** 所有复选框的选中状态颜色 */
25
+ checkedColor?: string;
26
+ /** 当绑定值变化时触发的事件 */
27
+ onChange?: (name: any[]) => void;
28
+ children?: React.ReactNode;
29
+ }
30
+ declare type IconRenderParams = {
31
+ /** 是否选中 */
32
+ checked: boolean;
33
+ /** 是否禁用 */
34
+ disabled: boolean;
35
+ };
36
+ export interface CheckerProps<T> extends BaseTypeProps {
37
+ /** 标识符 */
38
+ name?: number | string;
39
+ /** 是否禁用复选框 */
40
+ disabled?: boolean;
41
+ /** 图标大小,默认单位为 px */
42
+ iconSize?: number | string;
43
+ /** 自定义图标 */
44
+ iconRender?: (params: IconRenderParams) => React.ReactNode;
45
+ /** 所有复选框的选中状态颜色 */
46
+ checkedColor?: string;
47
+ /** 文本位置,可选值为 left */
48
+ labelPosition?: string;
49
+ /** 是否禁用复选框文本点击 */
50
+ labelDisabled?: boolean;
51
+ /** 形状,可选值为 square */
52
+ shape?: Shape;
53
+ role?: string;
54
+ /**
55
+ * 是否与复选框组绑定
56
+ * @default true
57
+ */
58
+ bindGroup?: boolean;
59
+ /** 勾选状态 */
60
+ checked?: boolean;
61
+ /** 默认勾选状态 */
62
+ defaultChecked?: boolean;
63
+ /** 切换选择状态时触发 */
64
+ onToggle?: () => void;
65
+ /** 点击时触发 */
66
+ onClick?: (event: React.MouseEvent) => void;
67
+ /** 当绑定值变化时触发的事件 */
68
+ onChange?: (checked: boolean) => void;
69
+ children?: React.ReactNode;
70
+ /** @private */
71
+ bem?: Function;
72
+ /** @private */
73
+ parent?: {
74
+ props: T;
75
+ };
76
+ }
77
+ export declare type CheckboxProps = CheckerProps<CheckboxGroupProps>;
78
+ export declare type CheckboxInstance = {
79
+ toggle: (newValue?: boolean) => void;
80
+ /**
81
+ * @private
82
+ */
83
+ props: CheckboxProps;
84
+ /**
85
+ * @private
86
+ */
87
+ checked: boolean;
88
+ };
89
+ export declare type CheckboxGroupToggleAllOptions = boolean | {
90
+ checked?: boolean;
91
+ skipDisabled?: boolean;
92
+ };
93
+ export declare type CheckboxGroupInstance = {
94
+ toggleAll: (options?: CheckboxGroupToggleAllOptions) => void;
95
+ };
96
+ export {};
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import './style/index.less';
3
+ import CheckboxGroup from './CheckboxGroup';
4
+ declare const Checkbox: import("react").ForwardRefExoticComponent<import("./PropsType").CheckboxProps & import("react").RefAttributes<import("./PropsType").CheckboxInstance>> & {
5
+ Group: import("react").ForwardRefExoticComponent<import("./PropsType").CheckboxGroupProps & import("react").RefAttributes<import("./PropsType").CheckboxGroupInstance>>;
6
+ };
7
+ export default Checkbox;
8
+ export { Checkbox, CheckboxGroup };
9
+ export type { CheckboxGroupInstance, CheckboxInstance, CheckboxGroupProps, CheckboxProps, CheckboxGroupToggleAllOptions, } from './PropsType';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Checkbox = void 0;
7
+ Object.defineProperty(exports, "CheckboxGroup", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _CheckboxGroup.default;
11
+ }
12
+ });
13
+ exports.default = void 0;
14
+ require("./style/index.css");
15
+ var _CheckboxGroup = _interopRequireDefault(require("./CheckboxGroup"));
16
+ var _Checkbox2 = _interopRequireDefault(require("./Checkbox"));
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
+ const Checkbox = exports.Checkbox = Object.assign(_Checkbox2.default, {
19
+ Group: _CheckboxGroup.default
20
+ });
21
+ var _default = exports.default = Checkbox;