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
@@ -1,10 +1,19 @@
1
1
  .adm-form .adm-list.adm-list {
2
- --padding-left: 40px;
3
- --padding-right: 40px;
2
+ --padding-left: 32px;
3
+ --padding-right: 24px;
4
+ }
5
+
6
+ .adm-form-horizontal .adm-list.adm-list {
7
+ --prefix-width: 6em;
8
+ --align-items: stretch;
9
+ }
10
+
11
+ .adm-form-horizontal .adm-list.adm-list .adm-list-item-content-extra {
12
+ align-self: center;
4
13
  }
5
14
 
6
15
  .adm-form .adm-form-footer {
7
- padding: 24px;
16
+ padding: 40px 24px;
8
17
  }
9
18
 
10
19
  .adm-form-item + .adm-form-item {
@@ -22,7 +31,8 @@
22
31
  .adm-form-item-label-required {
23
32
  position: absolute;
24
33
  left: -0.6em;
25
- top: 0.2em;
34
+ top: 0;
35
+ font-family: SimSun, sans-serif;
26
36
  color: var(--adm-color-danger);
27
37
  user-select: none;
28
38
  }
@@ -36,14 +46,19 @@
36
46
  }
37
47
 
38
48
  .adm-form-vertical .adm-form-item-label {
39
- margin-bottom: 8px;
40
49
  font-size: 30px;
50
+ margin-bottom: 8px;
41
51
  }
42
52
 
43
53
  .adm-form-vertical .adm-form-item-footer {
44
54
  margin-top: 8px;
45
55
  }
46
56
 
57
+ .adm-form-horizontal .adm-list-item-content-prefix {
58
+ padding-top: 24px;
59
+ padding-bottom: 24px;
60
+ }
61
+
47
62
  .adm-form-item-label {
48
63
  color: #666666;
49
64
  }
@@ -2,13 +2,14 @@
2
2
  import './index.less';
3
3
  import { useForm } from 'rc-field-form';
4
4
  export declare type FormLayout = 'vertical' | 'horizontal';
5
- export type { FormProps } from './form';
6
- export type { FormInstance } from 'rc-field-form';
7
- declare const _default: import("react").ForwardRefExoticComponent<import("rc-field-form").FormProps<any> & import("../../utils/native-props").NativeProps<never> & Partial<import("./context").FormContextType> & {
5
+ export type { FormProps, FormInstance } from './form';
6
+ export type { FormItemProps } from './form-item';
7
+ export type { ValidateMessages, FieldData, NamePath, } from 'rc-field-form/es/interface';
8
+ declare const _default: import("react").ForwardRefExoticComponent<Pick<import("rc-field-form").FormProps<any>, "children" | "form" | "name" | "initialValues" | "preserve" | "validateMessages" | "validateTrigger" | "onFieldsChange" | "onFinish" | "onFinishFailed" | "onValuesChange"> & import("../../utils/native-props").NativeProps<never> & Partial<import("./context").FormContextType> & {
8
9
  footer?: import("react").ReactNode;
9
10
  layout?: "horizontal" | "vertical" | undefined;
10
11
  mode?: "default" | "card" | undefined;
11
- } & import("react").RefAttributes<import("rc-field-form").FormInstance<any>>> & {
12
+ } & import("react").RefAttributes<Pick<import("rc-field-form").FormInstance<any>, "submit" | "getFieldValue" | "getFieldsValue" | "getFieldError" | "getFieldsError" | "isFieldTouched" | "isFieldsTouched" | "resetFields" | "setFields" | "setFieldsValue" | "validateFields">>> & {
12
13
  Item: import("react").FC<import("./form-item").FormItemProps>;
13
14
  Header: import("react").FC<{}>;
14
15
  useForm: typeof useForm;
@@ -11,5 +11,6 @@ export declare type ImageProps = {
11
11
  lazy?: boolean;
12
12
  onClick?: (event: React.MouseEvent<HTMLImageElement, Event>) => void;
13
13
  onError?: (event: React.SyntheticEvent<HTMLImageElement, Event>) => void;
14
+ onLoad?: (event: React.SyntheticEvent<HTMLImageElement, Event>) => void;
14
15
  } & NativeProps<'--width' | '--height'> & Pick<React.ImgHTMLAttributes<HTMLImageElement>, 'crossOrigin' | 'decoding' | 'loading' | 'referrerPolicy' | 'sizes' | 'srcSet' | 'useMap'>;
15
16
  export declare const Image: React.FC<ImageProps>;
@@ -61,8 +61,11 @@ const Image = (0, _stagedComponents.staged)(p => {
61
61
  src: src,
62
62
  alt: props.alt,
63
63
  onClick: props.onClick,
64
- onLoad: () => {
64
+ onLoad: e => {
65
+ var _a;
66
+
65
67
  setLoaded(true);
68
+ (_a = props.onLoad) === null || _a === void 0 ? void 0 : _a.call(props, e);
66
69
  },
67
70
  onError: e => {
68
71
  var _a;
@@ -1,5 +1,6 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  import { GetContainer } from '../../utils/render-to-container';
3
+ import { SlidesRef } from './slides';
3
4
  export declare type ImageViewerProps = {
4
5
  image?: string;
5
6
  maxZoom?: number;
@@ -9,9 +10,14 @@ export declare type ImageViewerProps = {
9
10
  afterClose?: () => void;
10
11
  };
11
12
  export declare const ImageViewer: FC<ImageViewerProps>;
13
+ export declare type MultiImageViewerRef = SlidesRef;
12
14
  export declare type MultiImageViewerProps = Omit<ImageViewerProps, 'image'> & {
13
15
  images?: string[];
14
16
  defaultIndex?: number;
15
17
  onIndexChange?: (index: number) => void;
16
18
  };
17
- export declare const MultiImageViewer: FC<MultiImageViewerProps>;
19
+ export declare const MultiImageViewer: React.ForwardRefExoticComponent<Pick<ImageViewerProps, "visible" | "onClose" | "afterClose" | "getContainer" | "maxZoom"> & {
20
+ images?: string[] | undefined;
21
+ defaultIndex?: number | undefined;
22
+ onIndexChange?: ((index: number) => void) | undefined;
23
+ } & React.RefAttributes<SlidesRef>>;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.MultiImageViewer = exports.ImageViewer = void 0;
7
7
 
8
- var _react = _interopRequireDefault(require("react"));
8
+ var _react = _interopRequireWildcard(require("react"));
9
9
 
10
10
  var _withDefaultProps = require("../../utils/with-default-props");
11
11
 
@@ -19,6 +19,10 @@ var _slides = require("./slides");
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
22
+ 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); }
23
+
24
+ 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; }
25
+
22
26
  const classPrefix = `adm-image-viewer`;
23
27
  const defaultProps = {
24
28
  maxZoom: 3,
@@ -53,8 +57,7 @@ exports.ImageViewer = ImageViewer;
53
57
  const multiDefaultProps = Object.assign(Object.assign({}, defaultProps), {
54
58
  defaultIndex: 0
55
59
  });
56
-
57
- const MultiImageViewer = p => {
60
+ const MultiImageViewer = (0, _react.forwardRef)((p, ref) => {
58
61
  const props = (0, _withDefaultProps.mergeProps)(multiDefaultProps, p);
59
62
 
60
63
  const node = _react.default.createElement(_mask.default, {
@@ -65,6 +68,7 @@ const MultiImageViewer = p => {
65
68
  }, _react.default.createElement("div", {
66
69
  className: `${classPrefix}-content`
67
70
  }, props.images && _react.default.createElement(_slides.Slides, {
71
+ ref: ref,
68
72
  defaultIndex: props.defaultIndex,
69
73
  onIndexChange: props.onIndexChange,
70
74
  images: props.images,
@@ -77,6 +81,5 @@ const MultiImageViewer = p => {
77
81
  })));
78
82
 
79
83
  return (0, _renderToContainer.renderToContainer)(props.getContainer, node);
80
- };
81
-
84
+ });
82
85
  exports.MultiImageViewer = MultiImageViewer;
@@ -1,10 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import './image-viewer.less';
3
3
  import { showMultiImageViewer, showImageViewer, clearImageViewer } from './methods';
4
- export type { ImageViewerProps, MultiImageViewerProps } from './image-viewer';
4
+ export type { ImageViewerProps, MultiImageViewerProps, MultiImageViewerRef, } from './image-viewer';
5
5
  export type { ImageViewerHandler } from './methods';
6
6
  declare const _default: import("react").FC<import("./image-viewer").ImageViewerProps> & {
7
- Multi: import("react").FC<import("./image-viewer").MultiImageViewerProps> & {
7
+ Multi: import("react").ForwardRefExoticComponent<Pick<import("./image-viewer").ImageViewerProps, "visible" | "onClose" | "afterClose" | "getContainer" | "maxZoom"> & {
8
+ images?: string[] | undefined;
9
+ defaultIndex?: number | undefined;
10
+ onIndexChange?: ((index: number) => void) | undefined;
11
+ } & import("react").RefAttributes<import("./slides").SlidesRef>> & {
8
12
  show: typeof showMultiImageViewer;
9
13
  };
10
14
  show: typeof showImageViewer;
@@ -1,8 +1,12 @@
1
- import { FC } from 'react';
2
- export declare const Slides: FC<{
1
+ import React from 'react';
2
+ export declare type SlidesType = {
3
3
  images: string[];
4
4
  onTap: () => void;
5
5
  maxZoom: number;
6
6
  defaultIndex: number;
7
7
  onIndexChange?: (index: number) => void;
8
- }>;
8
+ };
9
+ export declare type SlidesRef = {
10
+ swipeTo: (index: number, immediate: boolean) => void;
11
+ };
12
+ export declare const Slides: React.ForwardRefExoticComponent<SlidesType & React.RefAttributes<SlidesRef>>;
@@ -22,8 +22,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
22
22
  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; }
23
23
 
24
24
  const classPrefix = `adm-image-viewer`;
25
-
26
- const Slides = props => {
25
+ const Slides = (0, _react.forwardRef)((props, ref) => {
27
26
  const slideWidth = window.innerWidth + (0, _convertPx.convertPx)(16);
28
27
  const [{
29
28
  x
@@ -35,10 +34,23 @@ const Slides = props => {
35
34
  }
36
35
  }));
37
36
  const count = props.images.length;
38
- const dragLockRef = (0, _react.useRef)(false);
39
- const bind = (0, _react2.useDrag)(state => {
37
+
38
+ function swipeTo(index, immediate = false) {
40
39
  var _a;
41
40
 
41
+ const i = (0, _bound.bound)(index, 0, count - 1);
42
+ (_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, i);
43
+ api.start({
44
+ x: i * slideWidth,
45
+ immediate
46
+ });
47
+ }
48
+
49
+ (0, _react.useImperativeHandle)(ref, () => ({
50
+ swipeTo
51
+ }));
52
+ const dragLockRef = (0, _react.useRef)(false);
53
+ const bind = (0, _react2.useDrag)(state => {
42
54
  if (dragLockRef.current) return;
43
55
  const [offsetX] = state.offset;
44
56
 
@@ -46,11 +58,7 @@ const Slides = props => {
46
58
  const minIndex = Math.floor(offsetX / slideWidth);
47
59
  const maxIndex = minIndex + 1;
48
60
  const velocityOffset = Math.min(state.velocity[0] * 2000, slideWidth) * state.direction[0];
49
- const index = (0, _bound.bound)((0, _bound.bound)(Math.round((offsetX + velocityOffset) / slideWidth), minIndex, maxIndex), 0, count - 1);
50
- (_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, index);
51
- api.start({
52
- x: index * slideWidth
53
- });
61
+ swipeTo((0, _bound.bound)(Math.round((offsetX + velocityOffset) / slideWidth), minIndex, maxIndex));
54
62
  } else {
55
63
  api.start({
56
64
  x: offsetX,
@@ -99,6 +107,5 @@ const Slides = props => {
99
107
  },
100
108
  dragLockRef: dragLockRef
101
109
  }))));
102
- };
103
-
110
+ });
104
111
  exports.Slides = Slides;
@@ -1,18 +1,24 @@
1
- .adm-input-wrapper {
1
+ .adm-input {
2
2
  --font-size: 34px;
3
3
  --color: var(--adm-color-text);
4
4
  --placeholder-color: var(--adm-color-light);
5
- --disabled-color: var(--adm-color-weak);
6
5
  --text-align: left;
6
+ --background-color: transparent;
7
7
  display: flex;
8
8
  justify-content: flex-start;
9
9
  align-items: center;
10
10
  width: 100%;
11
11
  max-width: 100%;
12
12
  max-height: 100%;
13
+ background-color: var(--background-color);
13
14
  }
14
15
 
15
- .adm-input {
16
+ .adm-input-disabled {
17
+ opacity: 0.4;
18
+ cursor: not-allowed;
19
+ }
20
+
21
+ .adm-input-element {
16
22
  flex: auto;
17
23
  display: inline-block;
18
24
  box-sizing: border-box;
@@ -32,65 +38,62 @@
32
38
  text-align: var(--text-align);
33
39
  }
34
40
 
35
- .adm-input::placeholder {
41
+ .adm-input-element::placeholder {
36
42
  color: var(--placeholder-color);
37
43
  font-family: inherit;
38
44
  }
39
45
 
40
- .adm-input:-webkit-autofill {
46
+ .adm-input-element:-webkit-autofill {
41
47
  background-color: transparent;
42
48
  }
43
49
 
44
- .adm-input:disabled {
45
- color: var(--disabled-color);
46
- cursor: not-allowed;
47
- opacity: 1;
48
- -webkit-text-fill-color: var(--disabled-color);
49
- }
50
-
51
- .adm-input:read-only {
50
+ .adm-input-element:read-only {
52
51
  cursor: default;
53
52
  }
54
53
 
55
- .adm-input:invalid {
54
+ .adm-input-element:invalid {
56
55
  box-shadow: none;
57
56
  }
58
57
 
59
- .adm-input::-ms-clear {
58
+ .adm-input-element::-ms-clear {
60
59
  display: none;
61
60
  }
62
61
 
63
- .adm-input::-webkit-search-cancel-button {
62
+ .adm-input-element::-webkit-search-cancel-button {
64
63
  display: none;
65
64
  }
66
65
 
67
- .adm-input::-webkit-search-decoration {
66
+ .adm-input-element::-webkit-search-decoration {
68
67
  display: none;
69
68
  }
70
69
 
71
- .adm-input[type='date'],
72
- .adm-input[type='time'],
73
- .adm-input[type='datetime-local'] {
70
+ .adm-input-element[type='date'],
71
+ .adm-input-element[type='time'],
72
+ .adm-input-element[type='datetime-local'] {
74
73
  min-height: 1.5em;
75
74
  }
76
75
 
77
- .adm-input[type='search'] {
76
+ .adm-input-element[type='search'] {
78
77
  -webkit-appearance: none;
79
78
  }
80
79
 
81
- .adm-input[readonly] {
80
+ .adm-input-element[readonly] {
82
81
  pointer-events: none;
83
82
  }
84
83
 
85
84
  .adm-input-clear {
86
85
  flex: none;
87
86
  margin-left: 16px;
88
- color: var(--placeholder-color);
89
- padding: 6px;
87
+ color: var(--adm-color-light);
88
+ padding: 8px;
90
89
  cursor: pointer;
91
90
  }
92
91
 
92
+ .adm-input-clear:active {
93
+ color: var(--adm-color-weak);
94
+ }
95
+
93
96
  .adm-input-clear .antd-mobile-icon {
94
97
  display: block;
95
- font-size: 28px;
98
+ font-size: 30px;
96
99
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  declare type NativeInputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
4
- export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'max' | 'min' | 'autoComplete' | 'pattern' | 'inputMode' | 'type' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp'> & {
4
+ export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'max' | 'min' | 'autoComplete' | 'pattern' | 'inputMode' | 'type' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd'> & {
5
5
  value?: string;
6
6
  defaultValue?: string;
7
7
  onChange?: (val: string) => void;
@@ -13,13 +13,13 @@ export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength
13
13
  id?: string;
14
14
  onEnterPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
15
15
  enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
16
- } & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--disabled-color' | '--text-align'>;
16
+ } & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--text-align'>;
17
17
  export declare type InputRef = {
18
18
  clear: () => void;
19
19
  focus: () => void;
20
20
  blur: () => void;
21
21
  };
22
- export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "pattern" | "max" | "min" | "type" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "maxLength" | "minLength"> & {
22
+ export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "pattern" | "max" | "min" | "type" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "maxLength" | "minLength"> & {
23
23
  value?: string | undefined;
24
24
  defaultValue?: string | undefined;
25
25
  onChange?: ((val: string) => void) | undefined;
@@ -31,5 +31,5 @@ export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedH
31
31
  id?: string | undefined;
32
32
  onEnterPress?: ((e: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
33
33
  enterKeyHint?: "enter" | "search" | "done" | "go" | "next" | "previous" | "send" | undefined;
34
- } & NativeProps<"--color" | "--font-size" | "--placeholder-color" | "--disabled-color" | "--text-align"> & React.RefAttributes<InputRef>>;
34
+ } & NativeProps<"--color" | "--font-size" | "--placeholder-color" | "--text-align"> & React.RefAttributes<InputRef>>;
35
35
  export {};
@@ -15,6 +15,10 @@ var _nativeProps = require("../../utils/native-props");
15
15
 
16
16
  var _withDefaultProps = require("../../utils/with-default-props");
17
17
 
18
+ var _classnames = _interopRequireDefault(require("classnames"));
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
18
22
  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); }
19
23
 
20
24
  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; }
@@ -66,10 +70,10 @@ const Input = (0, _react.forwardRef)((p, ref) => {
66
70
  };
67
71
  }, [props.enterKeyHint]);
68
72
  return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
69
- className: `${classPrefix}-wrapper`
73
+ className: (0, _classnames.default)(`${classPrefix}`, props.disabled && `${classPrefix}-disabled`)
70
74
  }, _react.default.createElement("input", {
71
75
  ref: nativeInputRef,
72
- className: classPrefix,
76
+ className: `${classPrefix}-element`,
73
77
  value: value,
74
78
  onChange: e => {
75
79
  setValue(e.target.value);
@@ -101,8 +105,10 @@ const Input = (0, _react.forwardRef)((p, ref) => {
101
105
  autoCapitalize: props.autoCapitalize,
102
106
  autoCorrect: props.autoCorrect,
103
107
  onKeyDown: handleKeydown,
104
- onKeyUp: props.onKeyUp
105
- }), props.clearable && !!value && hasFocus && _react.default.createElement("div", {
108
+ onKeyUp: props.onKeyUp,
109
+ onCompositionStart: props.onCompositionStart,
110
+ onCompositionEnd: props.onCompositionEnd
111
+ }), props.clearable && !!value && _react.default.createElement("div", {
106
112
  className: `${classPrefix}-clear`,
107
113
  onMouseDown: e => {
108
114
  e.preventDefault();
@@ -1,4 +1,5 @@
1
1
  .adm-jumbo-tabs {
2
+ --gap: 16px;
2
3
  position: relative;
3
4
  }
4
5
 
@@ -14,6 +15,7 @@
14
15
  align-items: center;
15
16
  position: relative;
16
17
  overflow-x: scroll;
18
+ padding: 0 var(--gap);
17
19
  scrollbar-width: none;
18
20
  }
19
21
 
@@ -23,7 +25,7 @@
23
25
 
24
26
  .adm-jumbo-tabs-tab-wrapper {
25
27
  flex: auto;
26
- padding: 0 24px;
28
+ padding: 0 calc(var(--gap) / 2);
27
29
  text-align: center;
28
30
  }
29
31
 
@@ -42,6 +44,7 @@
42
44
 
43
45
  .adm-jumbo-tabs-tab-title {
44
46
  line-height: 48px;
47
+ padding: 0 8px;
45
48
  }
46
49
 
47
50
  .adm-jumbo-tabs-tab-description {
@@ -28,7 +28,7 @@ const ListItem = props => {
28
28
  }, props.prefix && _react.default.createElement("div", {
29
29
  className: `${classPrefix}-content-prefix`
30
30
  }, props.prefix), _react.default.createElement("div", {
31
- className: (0, _classnames.default)(`${classPrefix}-content-main`, (props.title || props.description) && `${classPrefix}-content-main-multi-row`)
31
+ className: `${classPrefix}-content-main`
32
32
  }, props.title && _react.default.createElement("div", {
33
33
  className: `${classPrefix}-title`
34
34
  }, props.title), props.children, props.description && _react.default.createElement("div", {
@@ -71,10 +71,6 @@
71
71
 
72
72
  .adm-list-item-content-main {
73
73
  flex: auto;
74
- padding: 28px 0;
75
- }
76
-
77
- .adm-list-item-content-main.adm-list-item-content-main-multi-row {
78
74
  padding: 24px 0;
79
75
  }
80
76
 
@@ -103,11 +99,11 @@
103
99
  pointer-events: none;
104
100
  }
105
101
 
106
- a.adm-list-item:active {
102
+ a.adm-list-item:active:not(.adm-list-item-disabled) {
107
103
  background-color: var(--active-background-color);
108
104
  }
109
105
 
110
- a.adm-list-item:active::after {
106
+ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
111
107
  content: ' ';
112
108
  display: block;
113
109
  position: absolute;
@@ -115,8 +111,4 @@ a.adm-list-item:active::after {
115
111
  bottom: -2px;
116
112
  left: 0;
117
113
  border-bottom: var(--border-inner);
118
- }
119
-
120
- a.adm-list-item.adm-list-item-disabled:active {
121
- background-color: unset;
122
114
  }
@@ -3,5 +3,5 @@ import { NativeProps } from '../../utils/native-props';
3
3
  export declare type ListProps = {
4
4
  header?: ReactNode;
5
5
  mode?: 'default' | 'card';
6
- } & NativeProps<'--header-font-size' | '--prefix-width' | '--prefix-padding-right' | '--align-items' | '--active-background-color' | '--border-inner' | '--border-top' | '--border-bottom' | '--padding-left' | '--font-size'>;
6
+ } & NativeProps<'--header-font-size' | '--prefix-width' | '--prefix-padding-right' | '--align-items' | '--active-background-color' | '--border-inner' | '--border-top' | '--border-bottom' | '--padding-left' | '--padding-right' | '--font-size'>;
7
7
  export declare const List: FC<ListProps>;
@@ -21,22 +21,33 @@
21
21
 
22
22
  .adm-modal-main {
23
23
  width: 100%;
24
+ max-height: 70vh;
25
+ box-sizing: border-box;
24
26
  font-size: 28px;
25
27
  background-color: white;
26
28
  border-radius: 16px;
27
- overflow: hidden;
29
+ overflow-x: hidden;
30
+ overflow-y: auto;
31
+ display: flex;
32
+ flex-direction: column;
33
+ }
34
+
35
+ .adm-modal-main > * {
36
+ flex: none;
37
+ }
38
+
39
+ .adm-modal-main > .adm-modal-image-container {
40
+ flex: auto;
28
41
  }
29
42
 
30
43
  .adm-modal-main .adm-modal-body {
31
44
  padding: 40px 24px 24px;
45
+ display: flex;
46
+ flex-direction: column;
32
47
  }
33
48
 
34
- .adm-modal-main .adm-modal-body .adm-modal-close {
35
- position: absolute;
36
- right: 24px;
37
- top: 24px;
38
- color: var(--adm-color-weak);
39
- padding: 4px;
49
+ .adm-modal-main .adm-modal-body > * + * {
50
+ margin-top: 16px;
40
51
  }
41
52
 
42
53
  .adm-modal-main .adm-modal-body-header-wrapper {
@@ -52,38 +63,47 @@
52
63
  }
53
64
 
54
65
  .adm-modal-main .adm-modal-body-content {
55
- max-height: 70vh;
56
- overflow-x: hidden;
57
- overflow-y: auto;
58
66
  font-size: 30px;
59
67
  line-height: 1.4;
60
68
  color: #333;
61
69
  }
62
70
 
63
- .adm-modal-main .adm-modal-footer {
71
+ .adm-modal-main .adm-modal-close {
72
+ position: absolute;
73
+ right: 16px;
74
+ top: 16px;
75
+ color: var(--adm-color-weak);
76
+ padding: 8px;
77
+ font-size: 36px;
78
+ }
79
+
80
+ .adm-modal-footer {
64
81
  user-select: none;
65
82
  padding: 16px 24px 24px;
66
83
  }
67
84
 
68
- .adm-modal-main .adm-modal-footer .adm-modal-button {
69
- font-size: 36px;
70
- line-height: 50px;
71
- border-right: solid 1px var(--adm-border-color);
85
+ .adm-modal-footer.adm-space {
86
+ --gap-vertical: 40px;
72
87
  }
73
88
 
74
- .adm-modal-main .adm-modal-footer .adm-modal-button:last-child {
75
- border-right: none;
89
+ .adm-modal-footer .adm-modal-button {
90
+ font-size: 36px;
91
+ line-height: 50px;
76
92
  }
77
93
 
78
- .adm-modal-main .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary) {
94
+ .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary) {
79
95
  padding-top: 0;
80
96
  padding-bottom: 0;
81
97
  }
82
98
 
83
- .adm-modal-main .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary)::before {
99
+ .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary)::before {
84
100
  display: none;
85
101
  }
86
102
 
87
- .adm-modal-main .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary):active {
103
+ .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary):active {
88
104
  opacity: 0.7;
105
+ }
106
+
107
+ .adm-modal-image-container {
108
+ overflow-y: auto;
89
109
  }