antd-mobile 5.0.0-rc.20 → 5.0.0-rc.24

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 (371) hide show
  1. package/2x/README.md +7 -6
  2. package/2x/cjs/components/avatar/avatar.d.ts +1 -1
  3. package/2x/cjs/components/badge/badge.css +18 -10
  4. package/2x/cjs/components/badge/badge.d.ts +1 -0
  5. package/2x/cjs/components/badge/badge.js +4 -5
  6. package/2x/cjs/components/button/button.css +5 -4
  7. package/2x/cjs/components/calendar/calendar.js +4 -0
  8. package/2x/cjs/components/capsule-tabs/capsule-tabs.css +1 -1
  9. package/2x/cjs/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
  10. package/2x/cjs/components/check-list/check-list.css +0 -4
  11. package/2x/cjs/components/checkbox/check-icon.js +4 -13
  12. package/2x/cjs/components/checkbox/checkbox.css +11 -30
  13. package/2x/cjs/components/checkbox/checkbox.js +4 -6
  14. package/2x/cjs/components/checkbox/indeterminate-icon.d.ts +3 -0
  15. package/2x/cjs/components/checkbox/indeterminate-icon.js +24 -0
  16. package/2x/cjs/components/date-picker/date-picker.d.ts +3 -3
  17. package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +3 -2
  18. package/2x/cjs/components/dialog/dialog-action-button.js +1 -0
  19. package/2x/cjs/components/dialog/dialog.css +15 -0
  20. package/2x/cjs/components/dialog/dialog.js +4 -2
  21. package/2x/cjs/components/error-block/error-block.d.ts +1 -1
  22. package/2x/cjs/components/floating-panel/floating-panel.d.ts +2 -0
  23. package/2x/cjs/components/floating-panel/floating-panel.js +5 -0
  24. package/2x/cjs/components/form/form-item.css +8 -2
  25. package/2x/cjs/components/form/form-item.d.ts +2 -2
  26. package/2x/cjs/components/form/form-item.js +9 -5
  27. package/2x/cjs/components/form/form.css +12 -3
  28. package/2x/cjs/components/form/form.d.ts +5 -4
  29. package/2x/cjs/components/form/form.js +1 -5
  30. package/2x/cjs/components/form/index.css +20 -5
  31. package/2x/cjs/components/form/index.d.ts +5 -4
  32. package/2x/cjs/components/image/image.d.ts +1 -0
  33. package/2x/cjs/components/image/image.js +4 -1
  34. package/2x/cjs/components/image-viewer/image-viewer.d.ts +8 -2
  35. package/2x/cjs/components/image-viewer/image-viewer.js +8 -5
  36. package/2x/cjs/components/image-viewer/index.d.ts +6 -2
  37. package/2x/cjs/components/image-viewer/slides.d.ts +7 -3
  38. package/2x/cjs/components/image-viewer/slides.js +18 -11
  39. package/2x/cjs/components/input/input.css +28 -25
  40. package/2x/cjs/components/input/input.d.ts +4 -4
  41. package/2x/cjs/components/input/input.js +10 -4
  42. package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -1
  43. package/2x/cjs/components/list/list-item.js +1 -1
  44. package/2x/cjs/components/list/list.css +2 -10
  45. package/2x/cjs/components/list/list.d.ts +1 -1
  46. package/2x/cjs/components/modal/modal.css +40 -20
  47. package/2x/cjs/components/modal/modal.js +11 -13
  48. package/2x/cjs/components/nav-bar/nav-bar.css +3 -3
  49. package/2x/cjs/components/notice-bar/notice-bar.d.ts +1 -1
  50. package/2x/cjs/components/passcode-input/passcode-input.d.ts +2 -2
  51. package/2x/cjs/components/picker/picker.css +10 -2
  52. package/2x/cjs/components/picker/picker.d.ts +1 -1
  53. package/2x/cjs/components/picker-view/picker-view.css +4 -2
  54. package/2x/cjs/components/picker-view/picker-view.d.ts +1 -1
  55. package/2x/cjs/components/picker-view/wheel.js +1 -1
  56. package/2x/cjs/components/popover/arrow.d.ts +3 -0
  57. package/2x/cjs/components/popover/arrow.js +26 -0
  58. package/2x/cjs/components/popover/index.d.ts +7 -15
  59. package/2x/cjs/components/popover/index.js +4 -2
  60. package/2x/cjs/components/popover/popover-menu.css +63 -0
  61. package/2x/cjs/components/popover/popover-menu.d.ts +20 -0
  62. package/{cjs/components/popover/pop-menu.js → 2x/cjs/components/popover/popover-menu.js} +23 -26
  63. package/2x/cjs/components/popover/popover.css +90 -318
  64. package/2x/cjs/components/popover/popover.d.ts +9 -8
  65. package/2x/cjs/components/popover/popover.js +11 -17
  66. package/2x/cjs/components/radio/radio.css +9 -12
  67. package/2x/cjs/components/radio/radio.js +1 -3
  68. package/2x/cjs/components/result/result.css +2 -5
  69. package/2x/cjs/components/search-bar/search-bar.css +14 -9
  70. package/2x/cjs/components/selector/selector.css +4 -0
  71. package/2x/cjs/components/side-bar/corner.d.ts +3 -0
  72. package/2x/cjs/components/side-bar/corner.js +28 -0
  73. package/2x/cjs/components/side-bar/side-bar.css +30 -17
  74. package/2x/cjs/components/side-bar/side-bar.js +22 -5
  75. package/2x/cjs/components/spin-loading/spin-loading.css +1 -19
  76. package/2x/cjs/components/spin-loading/spin-loading.d.ts +1 -1
  77. package/2x/cjs/components/spin-loading/spin-loading.js +33 -5
  78. package/2x/cjs/components/stepper/stepper.css +4 -7
  79. package/2x/cjs/components/stepper/stepper.js +2 -1
  80. package/2x/cjs/components/swipe-action/swipe-action.d.ts +2 -2
  81. package/2x/cjs/components/swipe-action/swipe-action.js +1 -1
  82. package/2x/cjs/components/swiper/swiper.js +14 -19
  83. package/2x/cjs/components/switch/switch.css +8 -3
  84. package/2x/cjs/components/tabs/tabs.css +1 -1
  85. package/2x/cjs/components/tag/tag.css +3 -3
  86. package/2x/cjs/components/text-area/text-area.css +9 -9
  87. package/2x/cjs/components/text-area/text-area.d.ts +2 -2
  88. package/2x/cjs/components/text-area/text-area.js +40 -32
  89. package/2x/cjs/components/virtual-input/virtual-input.d.ts +1 -1
  90. package/2x/cjs/utils/get-scroll-parent.js +1 -1
  91. package/2x/es/components/avatar/avatar.d.ts +1 -1
  92. package/2x/es/components/badge/badge.css +18 -10
  93. package/2x/es/components/badge/badge.d.ts +1 -0
  94. package/2x/es/components/badge/badge.js +4 -5
  95. package/2x/es/components/button/button.css +5 -4
  96. package/2x/es/components/calendar/calendar.js +2 -0
  97. package/2x/es/components/capsule-tabs/capsule-tabs.css +1 -1
  98. package/2x/es/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
  99. package/2x/es/components/check-list/check-list.css +0 -4
  100. package/2x/es/components/checkbox/check-icon.js +4 -13
  101. package/2x/es/components/checkbox/checkbox.css +11 -30
  102. package/2x/es/components/checkbox/checkbox.js +3 -6
  103. package/2x/es/components/checkbox/indeterminate-icon.d.ts +3 -0
  104. package/2x/es/components/checkbox/indeterminate-icon.js +10 -0
  105. package/2x/es/components/date-picker/date-picker.d.ts +3 -3
  106. package/2x/es/components/date-picker-view/date-picker-view.d.ts +3 -2
  107. package/2x/es/components/dialog/dialog-action-button.js +1 -0
  108. package/2x/es/components/dialog/dialog.css +15 -0
  109. package/2x/es/components/dialog/dialog.js +4 -2
  110. package/2x/es/components/error-block/error-block.d.ts +1 -1
  111. package/2x/es/components/floating-panel/floating-panel.d.ts +2 -0
  112. package/2x/es/components/floating-panel/floating-panel.js +5 -0
  113. package/2x/es/components/form/form-item.css +8 -2
  114. package/2x/es/components/form/form-item.d.ts +2 -2
  115. package/2x/es/components/form/form-item.js +9 -5
  116. package/2x/es/components/form/form.css +12 -3
  117. package/2x/es/components/form/form.d.ts +5 -4
  118. package/2x/es/components/form/form.js +1 -5
  119. package/2x/es/components/form/index.css +20 -5
  120. package/2x/es/components/form/index.d.ts +5 -4
  121. package/2x/es/components/image/image.d.ts +1 -0
  122. package/2x/es/components/image/image.js +4 -1
  123. package/2x/es/components/image-viewer/image-viewer.d.ts +8 -2
  124. package/2x/es/components/image-viewer/image-viewer.js +4 -3
  125. package/2x/es/components/image-viewer/index.d.ts +6 -2
  126. package/2x/es/components/image-viewer/slides.d.ts +7 -3
  127. package/2x/es/components/image-viewer/slides.js +19 -10
  128. package/2x/es/components/input/input.css +28 -25
  129. package/2x/es/components/input/input.d.ts +4 -4
  130. package/2x/es/components/input/input.js +7 -4
  131. package/2x/es/components/jumbo-tabs/jumbo-tabs.css +4 -1
  132. package/2x/es/components/list/list-item.js +1 -1
  133. package/2x/es/components/list/list.css +2 -10
  134. package/2x/es/components/list/list.d.ts +1 -1
  135. package/2x/es/components/modal/modal.css +40 -20
  136. package/2x/es/components/modal/modal.js +11 -13
  137. package/2x/es/components/nav-bar/nav-bar.css +3 -3
  138. package/2x/es/components/notice-bar/notice-bar.d.ts +1 -1
  139. package/2x/es/components/passcode-input/passcode-input.d.ts +2 -2
  140. package/2x/es/components/picker/picker.css +10 -2
  141. package/2x/es/components/picker/picker.d.ts +1 -1
  142. package/2x/es/components/picker-view/picker-view.css +4 -2
  143. package/2x/es/components/picker-view/picker-view.d.ts +1 -1
  144. package/2x/es/components/picker-view/wheel.js +1 -1
  145. package/2x/es/components/popover/arrow.d.ts +3 -0
  146. package/2x/es/components/popover/arrow.js +12 -0
  147. package/2x/es/components/popover/index.d.ts +7 -15
  148. package/2x/es/components/popover/index.js +3 -2
  149. package/2x/es/components/popover/popover-menu.css +63 -0
  150. package/2x/es/components/popover/popover-menu.d.ts +20 -0
  151. package/2x/es/components/popover/popover-menu.js +52 -0
  152. package/2x/es/components/popover/popover.css +90 -318
  153. package/2x/es/components/popover/popover.d.ts +9 -8
  154. package/2x/es/components/popover/popover.js +10 -17
  155. package/2x/es/components/radio/radio.css +9 -12
  156. package/2x/es/components/radio/radio.js +1 -3
  157. package/2x/es/components/result/result.css +2 -5
  158. package/2x/es/components/search-bar/search-bar.css +14 -9
  159. package/2x/es/components/selector/selector.css +4 -0
  160. package/2x/es/components/side-bar/corner.d.ts +3 -0
  161. package/2x/es/components/side-bar/corner.js +14 -0
  162. package/2x/es/components/side-bar/side-bar.css +30 -17
  163. package/2x/es/components/side-bar/side-bar.js +21 -5
  164. package/2x/es/components/spin-loading/spin-loading.css +1 -19
  165. package/2x/es/components/spin-loading/spin-loading.d.ts +1 -1
  166. package/2x/es/components/spin-loading/spin-loading.js +32 -5
  167. package/2x/es/components/stepper/stepper.css +4 -7
  168. package/2x/es/components/stepper/stepper.js +2 -1
  169. package/2x/es/components/swipe-action/swipe-action.d.ts +2 -2
  170. package/2x/es/components/swipe-action/swipe-action.js +1 -1
  171. package/2x/es/components/swiper/swiper.js +13 -19
  172. package/2x/es/components/switch/switch.css +8 -3
  173. package/2x/es/components/tabs/tabs.css +1 -1
  174. package/2x/es/components/tag/tag.css +3 -3
  175. package/2x/es/components/text-area/text-area.css +9 -9
  176. package/2x/es/components/text-area/text-area.d.ts +2 -2
  177. package/2x/es/components/text-area/text-area.js +40 -31
  178. package/2x/es/components/virtual-input/virtual-input.d.ts +1 -1
  179. package/2x/es/utils/get-scroll-parent.js +1 -1
  180. package/2x/package.json +2 -2
  181. package/README.md +7 -6
  182. package/cjs/components/avatar/avatar.d.ts +1 -1
  183. package/cjs/components/badge/badge.css +16 -10
  184. package/cjs/components/badge/badge.d.ts +1 -0
  185. package/cjs/components/badge/badge.js +4 -5
  186. package/cjs/components/button/button.css +5 -4
  187. package/cjs/components/calendar/calendar.js +4 -0
  188. package/cjs/components/capsule-tabs/capsule-tabs.css +1 -1
  189. package/cjs/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
  190. package/cjs/components/check-list/check-list.css +0 -3
  191. package/cjs/components/checkbox/check-icon.js +4 -13
  192. package/cjs/components/checkbox/checkbox.css +11 -27
  193. package/cjs/components/checkbox/checkbox.js +4 -6
  194. package/cjs/components/checkbox/indeterminate-icon.d.ts +3 -0
  195. package/cjs/components/checkbox/indeterminate-icon.js +24 -0
  196. package/cjs/components/date-picker/date-picker.d.ts +3 -3
  197. package/cjs/components/date-picker-view/date-picker-view.d.ts +3 -2
  198. package/cjs/components/dialog/dialog-action-button.js +1 -0
  199. package/cjs/components/dialog/dialog.css +12 -0
  200. package/cjs/components/dialog/dialog.js +4 -2
  201. package/cjs/components/error-block/error-block.d.ts +1 -1
  202. package/cjs/components/floating-panel/floating-panel.d.ts +2 -0
  203. package/cjs/components/floating-panel/floating-panel.js +5 -0
  204. package/cjs/components/form/form-item.css +7 -2
  205. package/cjs/components/form/form-item.d.ts +2 -2
  206. package/cjs/components/form/form-item.js +9 -5
  207. package/cjs/components/form/form.css +10 -3
  208. package/cjs/components/form/form.d.ts +5 -4
  209. package/cjs/components/form/form.js +1 -5
  210. package/cjs/components/form/index.css +17 -5
  211. package/cjs/components/form/index.d.ts +5 -4
  212. package/cjs/components/image/image.d.ts +1 -0
  213. package/cjs/components/image/image.js +4 -1
  214. package/cjs/components/image-viewer/image-viewer.d.ts +8 -2
  215. package/cjs/components/image-viewer/image-viewer.js +8 -5
  216. package/cjs/components/image-viewer/index.d.ts +6 -2
  217. package/cjs/components/image-viewer/slides.d.ts +7 -3
  218. package/cjs/components/image-viewer/slides.js +18 -11
  219. package/cjs/components/input/input.css +26 -24
  220. package/cjs/components/input/input.d.ts +4 -4
  221. package/cjs/components/input/input.js +10 -4
  222. package/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -1
  223. package/cjs/components/list/list-item.js +1 -1
  224. package/cjs/components/list/list.css +2 -8
  225. package/cjs/components/list/list.d.ts +1 -1
  226. package/cjs/components/modal/modal.css +35 -19
  227. package/cjs/components/modal/modal.js +11 -13
  228. package/cjs/components/nav-bar/nav-bar.css +3 -3
  229. package/cjs/components/notice-bar/notice-bar.d.ts +1 -1
  230. package/cjs/components/passcode-input/passcode-input.d.ts +2 -2
  231. package/cjs/components/picker/picker.css +9 -2
  232. package/cjs/components/picker/picker.d.ts +1 -1
  233. package/cjs/components/picker-view/picker-view.css +4 -2
  234. package/cjs/components/picker-view/picker-view.d.ts +1 -1
  235. package/cjs/components/picker-view/wheel.js +1 -1
  236. package/cjs/components/popover/arrow.d.ts +3 -0
  237. package/cjs/components/popover/arrow.js +26 -0
  238. package/cjs/components/popover/index.d.ts +7 -15
  239. package/cjs/components/popover/index.js +4 -2
  240. package/cjs/components/popover/popover-menu.css +52 -0
  241. package/cjs/components/popover/popover-menu.d.ts +20 -0
  242. package/{2x/cjs/components/popover/pop-menu.js → cjs/components/popover/popover-menu.js} +23 -26
  243. package/cjs/components/popover/popover.css +83 -276
  244. package/cjs/components/popover/popover.d.ts +9 -8
  245. package/cjs/components/popover/popover.js +11 -17
  246. package/cjs/components/radio/radio.css +9 -12
  247. package/cjs/components/radio/radio.js +1 -3
  248. package/cjs/components/result/result.css +2 -5
  249. package/cjs/components/search-bar/search-bar.css +13 -9
  250. package/cjs/components/selector/selector.css +3 -0
  251. package/cjs/components/side-bar/corner.d.ts +3 -0
  252. package/cjs/components/side-bar/corner.js +28 -0
  253. package/cjs/components/side-bar/side-bar.css +26 -16
  254. package/cjs/components/side-bar/side-bar.js +22 -5
  255. package/cjs/components/spin-loading/spin-loading.css +1 -17
  256. package/cjs/components/spin-loading/spin-loading.d.ts +1 -1
  257. package/cjs/components/spin-loading/spin-loading.js +33 -5
  258. package/cjs/components/stepper/stepper.css +4 -6
  259. package/cjs/components/stepper/stepper.js +2 -1
  260. package/cjs/components/swipe-action/swipe-action.d.ts +2 -2
  261. package/cjs/components/swipe-action/swipe-action.js +1 -1
  262. package/cjs/components/swiper/swiper.js +14 -19
  263. package/cjs/components/switch/switch.css +8 -3
  264. package/cjs/components/tabs/tabs.css +1 -1
  265. package/cjs/components/tag/tag.css +3 -3
  266. package/cjs/components/text-area/text-area.css +9 -9
  267. package/cjs/components/text-area/text-area.d.ts +2 -2
  268. package/cjs/components/text-area/text-area.js +40 -32
  269. package/cjs/components/virtual-input/virtual-input.d.ts +1 -1
  270. package/cjs/utils/get-scroll-parent.js +1 -1
  271. package/es/components/avatar/avatar.d.ts +1 -1
  272. package/es/components/badge/badge.css +16 -10
  273. package/es/components/badge/badge.d.ts +1 -0
  274. package/es/components/badge/badge.js +4 -5
  275. package/es/components/button/button.css +5 -4
  276. package/es/components/calendar/calendar.js +2 -0
  277. package/es/components/capsule-tabs/capsule-tabs.css +1 -1
  278. package/es/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
  279. package/es/components/check-list/check-list.css +0 -3
  280. package/es/components/checkbox/check-icon.js +4 -13
  281. package/es/components/checkbox/checkbox.css +11 -27
  282. package/es/components/checkbox/checkbox.js +3 -6
  283. package/es/components/checkbox/indeterminate-icon.d.ts +3 -0
  284. package/es/components/checkbox/indeterminate-icon.js +10 -0
  285. package/es/components/date-picker/date-picker.d.ts +3 -3
  286. package/es/components/date-picker-view/date-picker-view.d.ts +3 -2
  287. package/es/components/dialog/dialog-action-button.js +1 -0
  288. package/es/components/dialog/dialog.css +12 -0
  289. package/es/components/dialog/dialog.js +4 -2
  290. package/es/components/error-block/error-block.d.ts +1 -1
  291. package/es/components/floating-panel/floating-panel.d.ts +2 -0
  292. package/es/components/floating-panel/floating-panel.js +5 -0
  293. package/es/components/form/form-item.css +7 -2
  294. package/es/components/form/form-item.d.ts +2 -2
  295. package/es/components/form/form-item.js +9 -5
  296. package/es/components/form/form.css +10 -3
  297. package/es/components/form/form.d.ts +5 -4
  298. package/es/components/form/form.js +1 -5
  299. package/es/components/form/index.css +17 -5
  300. package/es/components/form/index.d.ts +5 -4
  301. package/es/components/image/image.d.ts +1 -0
  302. package/es/components/image/image.js +4 -1
  303. package/es/components/image-viewer/image-viewer.d.ts +8 -2
  304. package/es/components/image-viewer/image-viewer.js +4 -3
  305. package/es/components/image-viewer/index.d.ts +6 -2
  306. package/es/components/image-viewer/slides.d.ts +7 -3
  307. package/es/components/image-viewer/slides.js +19 -10
  308. package/es/components/input/input.css +26 -24
  309. package/es/components/input/input.d.ts +4 -4
  310. package/es/components/input/input.js +7 -4
  311. package/es/components/jumbo-tabs/jumbo-tabs.css +4 -1
  312. package/es/components/list/list-item.js +1 -1
  313. package/es/components/list/list.css +2 -8
  314. package/es/components/list/list.d.ts +1 -1
  315. package/es/components/modal/modal.css +35 -19
  316. package/es/components/modal/modal.js +11 -13
  317. package/es/components/nav-bar/nav-bar.css +3 -3
  318. package/es/components/notice-bar/notice-bar.d.ts +1 -1
  319. package/es/components/passcode-input/passcode-input.d.ts +2 -2
  320. package/es/components/picker/picker.css +9 -2
  321. package/es/components/picker/picker.d.ts +1 -1
  322. package/es/components/picker-view/picker-view.css +4 -2
  323. package/es/components/picker-view/picker-view.d.ts +1 -1
  324. package/es/components/picker-view/wheel.js +1 -1
  325. package/es/components/popover/arrow.d.ts +3 -0
  326. package/es/components/popover/arrow.js +12 -0
  327. package/es/components/popover/index.d.ts +7 -15
  328. package/es/components/popover/index.js +3 -2
  329. package/es/components/popover/popover-menu.css +52 -0
  330. package/es/components/popover/popover-menu.d.ts +20 -0
  331. package/es/components/popover/popover-menu.js +52 -0
  332. package/es/components/popover/popover.css +83 -276
  333. package/es/components/popover/popover.d.ts +9 -8
  334. package/es/components/popover/popover.js +10 -17
  335. package/es/components/radio/radio.css +9 -12
  336. package/es/components/radio/radio.js +1 -3
  337. package/es/components/result/result.css +2 -5
  338. package/es/components/search-bar/search-bar.css +13 -9
  339. package/es/components/selector/selector.css +3 -0
  340. package/es/components/side-bar/corner.d.ts +3 -0
  341. package/es/components/side-bar/corner.js +14 -0
  342. package/es/components/side-bar/side-bar.css +26 -16
  343. package/es/components/side-bar/side-bar.js +21 -5
  344. package/es/components/spin-loading/spin-loading.css +1 -17
  345. package/es/components/spin-loading/spin-loading.d.ts +1 -1
  346. package/es/components/spin-loading/spin-loading.js +32 -5
  347. package/es/components/stepper/stepper.css +4 -6
  348. package/es/components/stepper/stepper.js +2 -1
  349. package/es/components/swipe-action/swipe-action.d.ts +2 -2
  350. package/es/components/swipe-action/swipe-action.js +1 -1
  351. package/es/components/swiper/swiper.js +13 -19
  352. package/es/components/switch/switch.css +8 -3
  353. package/es/components/tabs/tabs.css +1 -1
  354. package/es/components/tag/tag.css +3 -3
  355. package/es/components/text-area/text-area.css +9 -9
  356. package/es/components/text-area/text-area.d.ts +2 -2
  357. package/es/components/text-area/text-area.js +40 -31
  358. package/es/components/virtual-input/virtual-input.d.ts +1 -1
  359. package/es/utils/get-scroll-parent.js +1 -1
  360. package/package.json +2 -2
  361. package/umd/antd-mobile.js +1 -1
  362. package/2x/cjs/components/popover/animation.css +0 -111
  363. package/2x/cjs/components/popover/pop-menu.d.ts +0 -28
  364. package/2x/es/components/popover/animation.css +0 -111
  365. package/2x/es/components/popover/pop-menu.d.ts +0 -28
  366. package/2x/es/components/popover/pop-menu.js +0 -54
  367. package/cjs/components/popover/animation.css +0 -96
  368. package/cjs/components/popover/pop-menu.d.ts +0 -28
  369. package/es/components/popover/animation.css +0 -96
  370. package/es/components/popover/pop-menu.d.ts +0 -28
  371. package/es/components/popover/pop-menu.js +0 -54
@@ -100,19 +100,18 @@ const Modal = p => {
100
100
  style: Object.assign({}, style),
101
101
  onClick: e => e.stopPropagation(),
102
102
  className: `${classPrefix}-main`
103
- }, !!props.image && _react.default.createElement(_image.default, {
103
+ }, props.showCloseButton && _react.default.createElement("a", {
104
+ className: (0, _classnames.default)(`${classPrefix}-close`, 'adm-plain-anchor'),
105
+ onClick: props.onClose
106
+ }, _react.default.createElement(_antdMobileIcons.CloseOutline, null)), !!props.image && _react.default.createElement("div", {
107
+ className: `${classPrefix}-image-container`
108
+ }, _react.default.createElement(_image.default, {
104
109
  src: props.image,
105
110
  alt: 'modal header image',
106
111
  width: '100%'
107
- }), _react.default.createElement("div", {
112
+ })), _react.default.createElement("div", {
108
113
  style: props.bodyStyle,
109
114
  className: (0, _classnames.default)(`${classPrefix}-body`, props.bodyClassName)
110
- }, props.showCloseButton && _react.default.createElement("a", {
111
- className: (0, _classnames.default)(`${classPrefix}-close`, 'adm-plain-anchor'),
112
- onClick: props.onClose
113
- }, _react.default.createElement(_antdMobileIcons.CloseOutline, null)), _react.default.createElement(_space.default, {
114
- direction: 'vertical',
115
- block: true
116
115
  }, !!props.header && _react.default.createElement("div", {
117
116
  className: `${classPrefix}-body-header-wrapper`
118
117
  }, _react.default.createElement("div", {
@@ -121,11 +120,10 @@ const Modal = p => {
121
120
  className: `${classPrefix}-body-title`
122
121
  }, props.title), !!props.content && _react.default.createElement("div", {
123
122
  className: `${classPrefix}-body-content`
124
- }, typeof props.content === 'string' ? _react.default.createElement(_autoCenter.default, null, props.content) : props.content))), _react.default.createElement("div", {
125
- className: `${classPrefix}-footer`
126
- }, _react.default.createElement(_space.default, {
123
+ }, typeof props.content === 'string' ? _react.default.createElement(_autoCenter.default, null, props.content) : props.content)), _react.default.createElement(_space.default, {
127
124
  direction: 'vertical',
128
- block: true
125
+ block: true,
126
+ className: `${classPrefix}-footer`
129
127
  }, props.actions.map((action, index) => {
130
128
  return _react.default.createElement(_modalActionButton.ModalActionButton, {
131
129
  key: action.key,
@@ -140,7 +138,7 @@ const Modal = p => {
140
138
  }
141
139
  })
142
140
  });
143
- }))))))));
141
+ })))))));
144
142
  return (0, _renderToContainer.renderToContainer)(props.getContainer, node);
145
143
  };
146
144
 
@@ -24,14 +24,14 @@
24
24
  .adm-nav-bar-back {
25
25
  display: flex;
26
26
  align-items: center;
27
- margin-right: 24px;
27
+ margin-right: 32px;
28
28
  padding: 12px 0;
29
29
  cursor: pointer;
30
30
  }
31
31
 
32
32
  .adm-nav-bar-back-arrow {
33
- font-size: 36px;
34
- margin-right: 12px;
33
+ font-size: 48px;
34
+ margin-right: 8px;
35
35
  }
36
36
 
37
37
  .adm-nav-bar-left {
@@ -17,5 +17,5 @@ export declare type NoticeBarProps = {
17
17
  extra?: React.ReactNode;
18
18
  /** 左侧广播图标 */
19
19
  icon?: React.ReactNode;
20
- } & NativeProps<'--background-color' | '--border-color' | '--text-color'>;
20
+ } & NativeProps<'--background-color' | '--border-color' | '--text-color' | '--font-size' | '--icon-font-size' | '--height'>;
21
21
  export declare const NoticeBar: React.NamedExoticComponent<NoticeBarProps>;
@@ -14,7 +14,7 @@ export declare type PasscodeInputProps = {
14
14
  onFocus?: () => void;
15
15
  keyboard?: ReactElement<NumberKeyboardProps>;
16
16
  onFill?: (val: string) => void;
17
- } & NativeProps<'--cell-gap' | '--cell-size'>;
17
+ } & NativeProps<'--cell-gap' | '--cell-size' | '--dot-size' | '--border-color' | '--border-radius'>;
18
18
  export declare type PasscodeInputRef = {
19
19
  focus: () => void;
20
20
  blur: () => void;
@@ -32,4 +32,4 @@ export declare const PasscodeInput: React.ForwardRefExoticComponent<{
32
32
  onFocus?: (() => void) | undefined;
33
33
  keyboard?: React.ReactElement<NumberKeyboardProps, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
34
34
  onFill?: ((val: string) => void) | undefined;
35
- } & NativeProps<"--cell-size" | "--cell-gap"> & React.RefAttributes<PasscodeInputRef>>;
35
+ } & NativeProps<"--border-radius" | "--border-color" | "--cell-size" | "--dot-size" | "--cell-gap"> & React.RefAttributes<PasscodeInputRef>>;
@@ -1,10 +1,18 @@
1
1
  .adm-picker {
2
+ --header-button-font-size: 30px;
3
+ --title-font-size: 30px;
4
+ --item-font-size: 32px;
2
5
  width: 100%;
3
6
  height: 600px;
4
7
  overflow: hidden;
5
8
  position: relative;
6
9
  display: flex;
7
10
  flex-direction: column;
11
+ ---item-font-size: var(--item-font-size);
12
+ }
13
+
14
+ .adm-picker .adm-picker-view.adm-picker-view {
15
+ --item-font-size: var(---item-font-size);
8
16
  }
9
17
 
10
18
  .adm-picker-header {
@@ -17,14 +25,14 @@
17
25
  }
18
26
 
19
27
  .adm-picker-header-button {
20
- font-size: 30px;
28
+ font-size: var(--header-button-font-size);
21
29
  display: inline-block;
22
30
  padding: 16px 16px;
23
31
  }
24
32
 
25
33
  .adm-picker-header-title {
26
34
  padding: 8px 8px;
27
- font-size: 30px;
35
+ font-size: var(--title-font-size);
28
36
  color: var(--adm-color-text);
29
37
  text-align: center;
30
38
  flex: 1;
@@ -15,5 +15,5 @@ export declare type PickerProps = {
15
15
  confirmText?: ReactNode;
16
16
  cancelText?: ReactNode;
17
17
  children?: (items: (PickerColumnItem | null)[]) => ReactNode;
18
- } & Pick<PopupProps, 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'stopPropagation'> & NativeProps;
18
+ } & Pick<PopupProps, 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'stopPropagation'> & NativeProps<'--header-button-font-size' | '--title-font-size' | '--item-font-size'>;
19
19
  export declare const Picker: React.NamedExoticComponent<PickerProps>;
@@ -1,5 +1,6 @@
1
1
  .adm-picker-view {
2
2
  --height: 480px;
3
+ --item-font-size: 32px;
3
4
  height: var(--height);
4
5
  width: 100%;
5
6
  display: flex;
@@ -44,7 +45,7 @@
44
45
  }
45
46
 
46
47
  .adm-picker-view-column-item {
47
- font-size: 32px;
48
+ font-size: var(--item-font-size);
48
49
  padding: 0 12px;
49
50
  height: 68px;
50
51
  display: flex;
@@ -66,6 +67,7 @@
66
67
  display: flex;
67
68
  flex-direction: column;
68
69
  position: relative;
70
+ z-index: 0;
69
71
  }
70
72
 
71
73
  .adm-picker-view-column-accessible > * {
@@ -86,7 +88,7 @@
86
88
 
87
89
  .adm-picker-view-mask {
88
90
  position: absolute;
89
- z-index: 100;
91
+ z-index: 10000;
90
92
  left: 0;
91
93
  top: 0;
92
94
  width: 100%;
@@ -14,5 +14,5 @@ export declare type PickerViewProps = {
14
14
  value?: PickerValue[];
15
15
  defaultValue?: PickerValue[];
16
16
  onChange?: (value: PickerValue[], extend: PickerValueExtend) => void;
17
- } & NativeProps<'--height'>;
17
+ } & NativeProps<'--height' | '--item-font-size'>;
18
18
  export declare const PickerView: React.NamedExoticComponent<PickerViewProps>;
@@ -146,7 +146,7 @@ const Wheel = (0, _react.memo)(props => {
146
146
  className: `${classPrefix}-column`
147
147
  }, bind()), _react.default.createElement(_web.animated.div, {
148
148
  style: {
149
- y
149
+ translateY: y
150
150
  },
151
151
  className: `${classPrefix}-column-wheel`,
152
152
  "aria-hidden": true
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { NativeProps } from '../../utils/native-props';
3
+ export declare const Arrow: React.NamedExoticComponent<NativeProps<never>>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Arrow = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _nativeProps = require("../../utils/native-props");
11
+
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+
16
+ const Arrow = (0, _react.memo)(props => {
17
+ return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("svg", {
18
+ viewBox: '0 0 30 16'
19
+ }, _react.default.createElement("g", {
20
+ transform: 'translate(-1300.000000, -841.000000)',
21
+ fill: 'currentColor'
22
+ }, _react.default.createElement("path", {
23
+ d: 'M1300,841 L1330,841 L1318.07289,855.312538 C1316.65863,857.009645 1314.13637,857.238942 1312.43926,855.824685 C1312.25341,855.669808 1312.08199,855.49839 1311.92711,855.312538 L1300,841 L1300,841 Z'
24
+ }))));
25
+ });
26
+ exports.Arrow = Arrow;
@@ -1,27 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  import './popover.less';
3
- export type { BasePopoverProps, PopoverRef } from './popover';
4
- export type { PopMenuProps, Action } from './pop-menu';
3
+ import './popover-menu.less';
4
+ export type { PopoverProps, PopoverRef } from './popover';
5
+ export type { PopoverMenuProps, Action } from './popover-menu';
5
6
  declare const _default: import("react").ForwardRefExoticComponent<{
6
- getContainer?: (() => HTMLElement) | undefined;
7
+ getContainer?: HTMLElement | (() => HTMLElement) | null | undefined;
7
8
  destroyOnHide?: boolean | undefined;
8
9
  children: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
9
10
  mode?: "dark" | "light" | undefined;
10
11
  trigger?: "click" | undefined;
11
- placement: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
12
+ placement?: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | undefined;
12
13
  stopPropagation?: "click"[] | undefined;
13
- } & Pick<import("rc-tooltip/lib/Tooltip").TooltipProps, "visible" | "zIndex" | "align" | "defaultVisible" | "onVisibleChange" | "overlayStyle" | "overlayClassName"> & import("../../utils/native-props").NativeProps<"--z-index"> & {
14
14
  content: import("react").ReactNode;
15
- } & import("react").RefAttributes<import("./popover").PopoverRef>> & {
16
- Menu: <T extends import("./pop-menu").Action = import("./pop-menu").Action>(props: {
17
- getContainer?: (() => HTMLElement) | undefined;
18
- destroyOnHide?: boolean | undefined;
19
- children: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
20
- mode?: "dark" | "light" | undefined;
21
- trigger?: "click" | undefined;
22
- placement: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
23
- stopPropagation?: "click"[] | undefined;
24
- } & Pick<import("rc-tooltip/lib/Tooltip").TooltipProps, "visible" | "zIndex" | "align" | "defaultVisible" | "onVisibleChange" | "overlayStyle" | "overlayClassName"> & import("../../utils/native-props").NativeProps<"--z-index"> & {
15
+ } & Pick<import("rc-tooltip/lib/Tooltip").TooltipProps, "visible" | "align" | "defaultVisible" | "onVisibleChange"> & import("../../utils/native-props").NativeProps<"--z-index"> & import("react").RefAttributes<import("./popover").PopoverRef>> & {
16
+ Menu: <T extends import("./popover-menu").Action = import("./popover-menu").Action>(props: Pick<import("./popover").PopoverProps, "children" | "style" | "visible" | "className" | "tabIndex" | "mode" | "align" | "getContainer" | "stopPropagation" | "trigger" | "defaultVisible" | "onVisibleChange" | "placement" | "destroyOnHide"> & {
25
17
  actions: T[];
26
18
  onAction?: ((text: T) => void) | undefined;
27
19
  } & {
@@ -7,14 +7,16 @@ exports.default = void 0;
7
7
 
8
8
  require("./popover.css");
9
9
 
10
+ require("./popover-menu.css");
11
+
10
12
  var _attachPropertiesToComponent = require("../../utils/attach-properties-to-component");
11
13
 
12
- var _popMenu = require("./pop-menu");
14
+ var _popoverMenu2 = require("./popover-menu");
13
15
 
14
16
  var _popover2 = require("./popover");
15
17
 
16
18
  var _default = (0, _attachPropertiesToComponent.attachPropertiesToComponent)(_popover2.Popover, {
17
- Menu: _popMenu.PopMenu
19
+ Menu: _popoverMenu2.PopoverMenu
18
20
  });
19
21
 
20
22
  exports.default = _default;
@@ -0,0 +1,63 @@
1
+ .adm-popover-menu {
2
+ --border-color: var(--adm-border-color);
3
+ }
4
+
5
+ .adm-popover-menu.adm-popover {
6
+ --content-padding: 0;
7
+ }
8
+
9
+ .adm-popover-menu-list {
10
+ overflow: hidden;
11
+ min-width: 240px;
12
+ }
13
+
14
+ .adm-popover-menu-list-inner {
15
+ margin-top: -2px;
16
+ }
17
+
18
+ .adm-popover-menu-item {
19
+ display: flex;
20
+ padding-left: 40px;
21
+ justify-content: flex-start;
22
+ align-items: center;
23
+ position: relative;
24
+ }
25
+
26
+ .adm-popover-menu-item-icon {
27
+ flex: none;
28
+ padding-right: 16px;
29
+ font-size: 40px;
30
+ }
31
+
32
+ .adm-popover-menu-item-text {
33
+ flex: auto;
34
+ padding: 28px 40px 28px 0;
35
+ border-top: solid 2px var(--border-color);
36
+ }
37
+
38
+ .adm-popover-menu-item-disabled {
39
+ cursor: not-allowed;
40
+ }
41
+
42
+ .adm-popover-menu-item-disabled > * {
43
+ opacity: 0.4;
44
+ }
45
+
46
+ .adm-popover-menu-item:active:not(.adm-popover-menu-item-disabled) {
47
+ background-color: var(--border-color);
48
+ }
49
+
50
+ .adm-popover-menu-item:active:not(.adm-popover-menu-item-disabled)::after {
51
+ content: ' ';
52
+ display: block;
53
+ position: absolute;
54
+ width: 100%;
55
+ bottom: -2px;
56
+ left: 0;
57
+ border-bottom: solid 2px var(--border-color);
58
+ }
59
+
60
+ .adm-popover.adm-popover-dark.adm-popover-menu {
61
+ --border-color: #333333;
62
+ --background: rgba(0, 0, 0, 0.9);
63
+ }
@@ -0,0 +1,20 @@
1
+ import React, { ReactElement, Ref } from 'react';
2
+ import { PopoverProps, PopoverRef } from './popover';
3
+ export declare type Action = {
4
+ text: React.ReactNode;
5
+ icon?: React.ReactNode;
6
+ disabled?: boolean;
7
+ key?: string;
8
+ onClick?: () => void;
9
+ [key: string]: any;
10
+ };
11
+ export declare type PopoverMenuProps<T> = Omit<PopoverProps, 'content'> & {
12
+ actions: T[];
13
+ onAction?: (text: T) => void;
14
+ };
15
+ export declare const PopoverMenu: <T extends Action = Action>(props: Pick<PopoverProps, "children" | "style" | "visible" | "className" | "tabIndex" | "mode" | "align" | "getContainer" | "stopPropagation" | "trigger" | "defaultVisible" | "onVisibleChange" | "placement" | "destroyOnHide"> & {
16
+ actions: T[];
17
+ onAction?: ((text: T) => void) | undefined;
18
+ } & {
19
+ ref?: ((instance: PopoverRef | null) => void) | React.RefObject<PopoverRef> | null | undefined;
20
+ }) => ReactElement;
@@ -3,14 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.PopMenu = void 0;
6
+ exports.PopoverMenu = void 0;
7
7
 
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
 
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
- var _button = _interopRequireDefault(require("../button"));
13
-
14
12
  var _popover = require("./popover");
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -19,8 +17,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
19
17
 
20
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
19
 
22
- const classPrefix = `adm-popover`;
23
- const PopMenu = (0, _react.forwardRef)((props, ref) => {
20
+ const classPrefix = `adm-popover-menu`;
21
+ const PopoverMenu = (0, _react.forwardRef)((props, ref) => {
24
22
  const innerRef = (0, _react.useRef)(null);
25
23
  (0, _react.useImperativeHandle)(ref, () => innerRef.current, []);
26
24
  const onClick = (0, _react.useCallback)(e => {
@@ -37,36 +35,35 @@ const PopMenu = (0, _react.forwardRef)((props, ref) => {
37
35
  (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.hide();
38
36
  }, [props.onAction]);
39
37
  const overlay = (0, _react.useMemo)(() => {
40
- return _react.default.createElement(_react.default.Fragment, null, (props.actions || []).map((ele, index) => {
38
+ return _react.default.createElement("div", {
39
+ className: `${classPrefix}-list`
40
+ }, _react.default.createElement("div", {
41
+ className: `${classPrefix}-list-inner`
42
+ }, props.actions.map((action, index) => {
41
43
  var _a;
42
44
 
43
- return _react.default.createElement("div", {
44
- className: (0, _classnames.default)(`${classPrefix}-inner-menu`, {
45
- [`${classPrefix}-inner-menu-with-icon`]: !!ele.icon
46
- }),
47
- key: (_a = ele.key) !== null && _a !== void 0 ? _a : index
48
- }, _react.default.createElement(_button.default, {
49
- disabled: ele.disabled,
45
+ return _react.default.createElement("a", {
46
+ key: (_a = action.key) !== null && _a !== void 0 ? _a : index,
47
+ className: (0, _classnames.default)(`${classPrefix}-item`, 'adm-plain-anchor', action.disabled && `${classPrefix}-item-disabled`),
50
48
  onClick: () => {
51
49
  var _a;
52
50
 
53
- if (!ele.disabled) {
54
- onClick(ele);
55
- (_a = ele.onClick) === null || _a === void 0 ? void 0 : _a.call(ele);
56
- }
57
- },
58
- fill: 'none',
59
- block: true
60
- }, ele.icon && _react.default.createElement("span", {
61
- className: `${classPrefix}-inner-menu-icon`
62
- }, ele.icon), ele.text));
63
- }));
51
+ if (action.disabled) return;
52
+ onClick(action);
53
+ (_a = action.onClick) === null || _a === void 0 ? void 0 : _a.call(action);
54
+ }
55
+ }, action.icon && _react.default.createElement("div", {
56
+ className: `${classPrefix}-item-icon`
57
+ }, action.icon), _react.default.createElement("div", {
58
+ className: `${classPrefix}-item-text`
59
+ }, action.text));
60
+ })));
64
61
  }, [props.actions, onClick]);
65
62
  return _react.default.createElement(_popover.Popover, Object.assign({
66
63
  ref: innerRef
67
64
  }, props, {
68
- overlayClassName: (0, _classnames.default)(`${classPrefix}-menu`, props.overlayClassName),
65
+ className: (0, _classnames.default)(classPrefix, props.className),
69
66
  content: overlay
70
67
  }), props.children);
71
68
  });
72
- exports.PopMenu = PopMenu;
69
+ exports.PopoverMenu = PopoverMenu;