antd-mobile 5.13.1 → 5.14.0

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 (477) hide show
  1. package/2x/bundle/antd-mobile.cjs.js +18963 -0
  2. package/2x/bundle/antd-mobile.es.js +18872 -0
  3. package/2x/bundle/css-vars-patch.css +399 -0
  4. package/2x/bundle/style.css +4712 -0
  5. package/2x/cjs/components/action-sheet/action-sheet.css +8 -8
  6. package/2x/cjs/components/badge/badge.css +2 -2
  7. package/2x/cjs/components/button/button.css +6 -6
  8. package/2x/cjs/components/button/button.patch.css +106 -0
  9. package/2x/cjs/components/calendar/calendar.css +5 -5
  10. package/2x/cjs/components/capsule-tabs/capsule-tabs.css +4 -24
  11. package/2x/cjs/components/card/card.css +3 -3
  12. package/2x/cjs/components/cascader/cascader.css +2 -2
  13. package/2x/cjs/components/cascader/cascader.d.ts +1 -0
  14. package/2x/cjs/components/cascader-view/cascader-view.css +2 -2
  15. package/2x/cjs/components/cascader-view/cascader-view.d.ts +1 -0
  16. package/2x/cjs/components/cascader-view/cascader-view.js +14 -8
  17. package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +5 -14
  18. package/2x/cjs/components/center-popup/center-popup.css +29 -0
  19. package/2x/cjs/components/center-popup/center-popup.d.ts +23 -0
  20. package/2x/cjs/components/center-popup/center-popup.js +116 -0
  21. package/2x/cjs/components/center-popup/center-popup.patch.css +13 -0
  22. package/2x/cjs/components/center-popup/index.d.ts +4 -0
  23. package/2x/cjs/components/center-popup/index.js +13 -0
  24. package/2x/cjs/components/check-list/check-list.css +1 -1
  25. package/2x/cjs/components/checkbox/checkbox.css +3 -3
  26. package/2x/cjs/components/dialog/dialog.css +21 -34
  27. package/2x/cjs/components/dialog/dialog.d.ts +4 -18
  28. package/2x/cjs/components/dialog/dialog.js +24 -84
  29. package/2x/cjs/components/divider/divider.css +2 -2
  30. package/2x/cjs/components/dropdown/dropdown.css +2 -2
  31. package/2x/cjs/components/ellipsis/ellipsis.js +0 -1
  32. package/2x/cjs/components/empty/empty.css +1 -1
  33. package/2x/cjs/components/error-block/error-block.css +4 -4
  34. package/2x/cjs/components/error-block/error-block.patch.css +29 -0
  35. package/2x/cjs/components/form/form-item.css +2 -2
  36. package/2x/cjs/components/form/form.css +3 -3
  37. package/2x/cjs/components/form/index.css +5 -5
  38. package/2x/cjs/components/image/image.css +1 -1
  39. package/2x/cjs/components/image/image.js +2 -0
  40. package/2x/cjs/components/image/image.patch.css +12 -0
  41. package/2x/cjs/components/image-uploader/image-uploader.css +4 -4
  42. package/2x/cjs/components/image-viewer/image-viewer.css +1 -1
  43. package/2x/cjs/components/index-bar/index-bar.css +4 -4
  44. package/2x/cjs/components/infinite-scroll/infinite-scroll.css +6 -1
  45. package/2x/cjs/components/infinite-scroll/infinite-scroll.d.ts +2 -2
  46. package/2x/cjs/components/infinite-scroll/infinite-scroll.js +48 -17
  47. package/2x/cjs/components/input/input.css +2 -2
  48. package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -24
  49. package/2x/cjs/components/list/list.css +10 -11
  50. package/2x/cjs/components/mask/mask.patch.css +3 -0
  51. package/2x/cjs/components/modal/modal.css +14 -29
  52. package/2x/cjs/components/modal/modal.d.ts +4 -18
  53. package/2x/cjs/components/modal/modal.js +23 -86
  54. package/2x/cjs/components/modal/modal.patch.css +29 -0
  55. package/2x/cjs/components/nav-bar/nav-bar.css +2 -2
  56. package/2x/cjs/components/notice-bar/notice-bar.css +4 -4
  57. package/2x/cjs/components/number-keyboard/number-keyboard.css +4 -4
  58. package/2x/cjs/components/page-indicator/page-indicator.patch.css +31 -0
  59. package/2x/cjs/components/passcode-input/passcode-input.css +1 -1
  60. package/2x/cjs/components/picker/picker.css +6 -7
  61. package/2x/cjs/components/picker-view/picker-view.css +3 -3
  62. package/2x/cjs/components/popover/popover-menu.css +1 -1
  63. package/2x/cjs/components/popover/popover-menu.patch.css +31 -0
  64. package/2x/cjs/components/popover/popover.css +3 -2
  65. package/2x/cjs/components/popover/popover.patch.css +24 -0
  66. package/2x/cjs/components/popup/popup.css +1 -1
  67. package/2x/cjs/components/popup/popup.d.ts +11 -12
  68. package/2x/cjs/components/radio/radio.css +2 -2
  69. package/2x/cjs/components/result/result.css +2 -2
  70. package/2x/cjs/components/scroll-mask/scroll-mask.css +2 -2
  71. package/2x/cjs/components/scroll-mask/scroll-mask.patch.css +7 -0
  72. package/2x/cjs/components/search-bar/search-bar.css +4 -4
  73. package/2x/cjs/components/selector/selector.css +3 -3
  74. package/2x/cjs/components/side-bar/corner.js +1 -1
  75. package/2x/cjs/components/side-bar/side-bar.css +3 -3
  76. package/2x/cjs/components/slider/slider.css +26 -24
  77. package/2x/cjs/components/slider/slider.d.ts +3 -2
  78. package/2x/cjs/components/slider/slider.js +4 -2
  79. package/2x/cjs/components/slider/thumb-icon.js +20 -18
  80. package/2x/cjs/components/slider/thumb.d.ts +2 -1
  81. package/2x/cjs/components/slider/thumb.js +19 -5
  82. package/2x/cjs/components/space/space.patch.css +16 -0
  83. package/2x/cjs/components/spin-loading/spin-loading.css +0 -3
  84. package/2x/cjs/components/spin-loading/spin-loading.patch.css +14 -0
  85. package/2x/cjs/components/stepper/stepper.css +3 -3
  86. package/2x/cjs/components/steps/steps.css +2 -2
  87. package/2x/cjs/components/swipe-action/swipe-action.css +1 -1
  88. package/2x/cjs/components/swipe-action/swipe-action.js +7 -6
  89. package/2x/cjs/components/swiper/swiper.js +9 -8
  90. package/2x/cjs/components/swiper/swiper.patch.css +26 -0
  91. package/2x/cjs/components/switch/switch.css +4 -4
  92. package/2x/cjs/components/tab-bar/tab-bar.css +8 -5
  93. package/2x/cjs/components/tab-bar/tab-bar.js +1 -1
  94. package/2x/cjs/components/tabs/tabs.css +4 -4
  95. package/2x/cjs/components/tabs/tabs.patch.css +29 -0
  96. package/2x/cjs/components/tag/tag.css +1 -1
  97. package/2x/cjs/components/text-area/text-area.css +2 -2
  98. package/2x/cjs/components/toast/toast.css +1 -1
  99. package/2x/cjs/components/toast/toast.patch.css +13 -0
  100. package/2x/cjs/components/tree-select/tree-select.css +1 -1
  101. package/2x/cjs/components/virtual-input/virtual-input.css +2 -2
  102. package/2x/cjs/global/css-vars-patch.css +399 -0
  103. package/2x/cjs/global/global.css +36 -4
  104. package/2x/cjs/global/index.js +2 -1
  105. package/2x/cjs/global/theme-dark.css +14 -0
  106. package/2x/cjs/global/theme-default.css +33 -0
  107. package/2x/cjs/index.d.ts +1 -0
  108. package/2x/cjs/index.js +8 -0
  109. package/2x/cjs/locales/base.d.ts +2 -0
  110. package/2x/cjs/locales/base.js +3 -1
  111. package/2x/cjs/locales/en-US.d.ts +2 -0
  112. package/2x/cjs/locales/es-ES.d.ts +2 -0
  113. package/2x/cjs/locales/fa-IR.d.ts +2 -0
  114. package/2x/cjs/locales/fr-FR.d.ts +2 -0
  115. package/2x/cjs/locales/ko-KR.d.ts +2 -0
  116. package/2x/cjs/locales/zh-CN.d.ts +2 -0
  117. package/2x/cjs/locales/zh-CN.js +3 -1
  118. package/2x/cjs/locales/zh-HK.d.ts +2 -0
  119. package/2x/cjs/locales/zh-TW.d.ts +2 -0
  120. package/2x/es/components/action-sheet/action-sheet.css +8 -8
  121. package/2x/es/components/badge/badge.css +2 -2
  122. package/2x/es/components/button/button.css +6 -6
  123. package/2x/es/components/button/button.patch.css +106 -0
  124. package/2x/es/components/calendar/calendar.css +5 -5
  125. package/2x/es/components/capsule-tabs/capsule-tabs.css +4 -24
  126. package/2x/es/components/card/card.css +3 -3
  127. package/2x/es/components/cascader/cascader.css +2 -2
  128. package/2x/es/components/cascader/cascader.d.ts +1 -0
  129. package/2x/es/components/cascader-view/cascader-view.css +2 -2
  130. package/2x/es/components/cascader-view/cascader-view.d.ts +1 -0
  131. package/2x/es/components/cascader-view/cascader-view.js +14 -8
  132. package/2x/es/components/cascader-view/use-cascader-value-extend.js +5 -14
  133. package/2x/es/components/center-popup/center-popup.css +29 -0
  134. package/2x/es/components/center-popup/center-popup.d.ts +23 -0
  135. package/2x/es/components/center-popup/center-popup.js +86 -0
  136. package/2x/es/components/center-popup/center-popup.patch.css +13 -0
  137. package/2x/es/components/center-popup/index.d.ts +4 -0
  138. package/2x/es/components/center-popup/index.js +3 -0
  139. package/2x/es/components/check-list/check-list.css +1 -1
  140. package/2x/es/components/checkbox/checkbox.css +3 -3
  141. package/2x/es/components/dialog/dialog.css +21 -34
  142. package/2x/es/components/dialog/dialog.d.ts +4 -18
  143. package/2x/es/components/dialog/dialog.js +23 -72
  144. package/2x/es/components/divider/divider.css +2 -2
  145. package/2x/es/components/dropdown/dropdown.css +2 -2
  146. package/2x/es/components/ellipsis/ellipsis.js +0 -1
  147. package/2x/es/components/empty/empty.css +1 -1
  148. package/2x/es/components/error-block/error-block.css +4 -4
  149. package/2x/es/components/error-block/error-block.patch.css +29 -0
  150. package/2x/es/components/form/form-item.css +2 -2
  151. package/2x/es/components/form/form.css +3 -3
  152. package/2x/es/components/form/index.css +5 -5
  153. package/2x/es/components/image/image.css +1 -1
  154. package/2x/es/components/image/image.js +2 -0
  155. package/2x/es/components/image/image.patch.css +12 -0
  156. package/2x/es/components/image-uploader/image-uploader.css +4 -4
  157. package/2x/es/components/image-viewer/image-viewer.css +1 -1
  158. package/2x/es/components/index-bar/index-bar.css +4 -4
  159. package/2x/es/components/infinite-scroll/infinite-scroll.css +6 -1
  160. package/2x/es/components/infinite-scroll/infinite-scroll.d.ts +2 -2
  161. package/2x/es/components/infinite-scroll/infinite-scroll.js +47 -17
  162. package/2x/es/components/input/input.css +2 -2
  163. package/2x/es/components/jumbo-tabs/jumbo-tabs.css +4 -24
  164. package/2x/es/components/list/list.css +10 -11
  165. package/2x/es/components/mask/mask.patch.css +3 -0
  166. package/2x/es/components/modal/modal.css +14 -29
  167. package/2x/es/components/modal/modal.d.ts +4 -18
  168. package/2x/es/components/modal/modal.js +22 -74
  169. package/2x/es/components/modal/modal.patch.css +29 -0
  170. package/2x/es/components/nav-bar/nav-bar.css +2 -2
  171. package/2x/es/components/notice-bar/notice-bar.css +4 -4
  172. package/2x/es/components/number-keyboard/number-keyboard.css +4 -4
  173. package/2x/es/components/page-indicator/page-indicator.patch.css +31 -0
  174. package/2x/es/components/passcode-input/passcode-input.css +1 -1
  175. package/2x/es/components/picker/picker.css +6 -7
  176. package/2x/es/components/picker-view/picker-view.css +3 -3
  177. package/2x/es/components/popover/popover-menu.css +1 -1
  178. package/2x/es/components/popover/popover-menu.patch.css +31 -0
  179. package/2x/es/components/popover/popover.css +3 -2
  180. package/2x/es/components/popover/popover.patch.css +24 -0
  181. package/2x/es/components/popup/popup.css +1 -1
  182. package/2x/es/components/popup/popup.d.ts +11 -12
  183. package/2x/es/components/radio/radio.css +2 -2
  184. package/2x/es/components/result/result.css +2 -2
  185. package/2x/es/components/scroll-mask/scroll-mask.css +2 -2
  186. package/2x/es/components/scroll-mask/scroll-mask.patch.css +7 -0
  187. package/2x/es/components/search-bar/search-bar.css +4 -4
  188. package/2x/es/components/selector/selector.css +3 -3
  189. package/2x/es/components/side-bar/corner.js +1 -1
  190. package/2x/es/components/side-bar/side-bar.css +3 -3
  191. package/2x/es/components/slider/slider.css +26 -24
  192. package/2x/es/components/slider/slider.d.ts +3 -2
  193. package/2x/es/components/slider/slider.js +4 -2
  194. package/2x/es/components/slider/thumb-icon.js +20 -18
  195. package/2x/es/components/slider/thumb.d.ts +2 -1
  196. package/2x/es/components/slider/thumb.js +17 -6
  197. package/2x/es/components/space/space.patch.css +16 -0
  198. package/2x/es/components/spin-loading/spin-loading.css +0 -3
  199. package/2x/es/components/spin-loading/spin-loading.patch.css +14 -0
  200. package/2x/es/components/stepper/stepper.css +3 -3
  201. package/2x/es/components/steps/steps.css +2 -2
  202. package/2x/es/components/swipe-action/swipe-action.css +1 -1
  203. package/2x/es/components/swipe-action/swipe-action.js +7 -6
  204. package/2x/es/components/swiper/swiper.js +9 -8
  205. package/2x/es/components/swiper/swiper.patch.css +26 -0
  206. package/2x/es/components/switch/switch.css +4 -4
  207. package/2x/es/components/tab-bar/tab-bar.css +8 -5
  208. package/2x/es/components/tab-bar/tab-bar.js +1 -1
  209. package/2x/es/components/tabs/tabs.css +4 -4
  210. package/2x/es/components/tabs/tabs.patch.css +29 -0
  211. package/2x/es/components/tag/tag.css +1 -1
  212. package/2x/es/components/text-area/text-area.css +2 -2
  213. package/2x/es/components/toast/toast.css +1 -1
  214. package/2x/es/components/toast/toast.patch.css +13 -0
  215. package/2x/es/components/tree-select/tree-select.css +1 -1
  216. package/2x/es/components/virtual-input/virtual-input.css +2 -2
  217. package/2x/es/global/css-vars-patch.css +399 -0
  218. package/2x/es/global/global.css +36 -4
  219. package/2x/es/global/index.js +2 -1
  220. package/2x/es/global/theme-dark.css +14 -0
  221. package/2x/es/global/theme-default.css +33 -0
  222. package/2x/es/index.d.ts +1 -0
  223. package/2x/es/index.js +1 -0
  224. package/2x/es/locales/base.d.ts +2 -0
  225. package/2x/es/locales/base.js +3 -1
  226. package/2x/es/locales/en-US.d.ts +2 -0
  227. package/2x/es/locales/es-ES.d.ts +2 -0
  228. package/2x/es/locales/fa-IR.d.ts +2 -0
  229. package/2x/es/locales/fr-FR.d.ts +2 -0
  230. package/2x/es/locales/ko-KR.d.ts +2 -0
  231. package/2x/es/locales/zh-CN.d.ts +2 -0
  232. package/2x/es/locales/zh-CN.js +3 -1
  233. package/2x/es/locales/zh-HK.d.ts +2 -0
  234. package/2x/es/locales/zh-TW.d.ts +2 -0
  235. package/2x/package.json +1 -1
  236. package/2x/umd/antd-mobile.js +2 -0
  237. package/2x/umd/antd-mobile.js.LICENSE.txt +35 -0
  238. package/bundle/antd-mobile.cjs.js +771 -736
  239. package/bundle/antd-mobile.es.js +771 -737
  240. package/bundle/css-vars-patch.css +312 -0
  241. package/bundle/style.css +272 -271
  242. package/cjs/components/action-sheet/action-sheet.css +8 -8
  243. package/cjs/components/badge/badge.css +2 -2
  244. package/cjs/components/button/button.css +6 -6
  245. package/cjs/components/button/button.patch.css +86 -0
  246. package/cjs/components/calendar/calendar.css +5 -5
  247. package/cjs/components/capsule-tabs/capsule-tabs.css +4 -21
  248. package/cjs/components/card/card.css +3 -3
  249. package/cjs/components/cascader/cascader.css +2 -2
  250. package/cjs/components/cascader/cascader.d.ts +1 -0
  251. package/cjs/components/cascader-view/cascader-view.css +2 -2
  252. package/cjs/components/cascader-view/cascader-view.d.ts +1 -0
  253. package/cjs/components/cascader-view/cascader-view.js +14 -8
  254. package/cjs/components/cascader-view/use-cascader-value-extend.js +5 -14
  255. package/cjs/components/center-popup/center-popup.css +26 -0
  256. package/cjs/components/center-popup/center-popup.d.ts +23 -0
  257. package/cjs/components/center-popup/center-popup.js +116 -0
  258. package/cjs/components/center-popup/center-popup.patch.css +11 -0
  259. package/cjs/components/center-popup/index.d.ts +4 -0
  260. package/cjs/components/center-popup/index.js +13 -0
  261. package/cjs/components/check-list/check-list.css +1 -1
  262. package/cjs/components/checkbox/checkbox.css +3 -3
  263. package/cjs/components/dialog/dialog.css +21 -33
  264. package/cjs/components/dialog/dialog.d.ts +4 -18
  265. package/cjs/components/dialog/dialog.js +24 -84
  266. package/cjs/components/divider/divider.css +2 -2
  267. package/cjs/components/dropdown/dropdown.css +2 -2
  268. package/cjs/components/ellipsis/ellipsis.js +0 -1
  269. package/cjs/components/empty/empty.css +1 -1
  270. package/cjs/components/error-block/error-block.css +4 -4
  271. package/cjs/components/error-block/error-block.patch.css +23 -0
  272. package/cjs/components/form/form-item.css +2 -2
  273. package/cjs/components/form/form.css +3 -3
  274. package/cjs/components/form/index.css +5 -5
  275. package/cjs/components/image/image.css +1 -1
  276. package/cjs/components/image/image.js +2 -0
  277. package/cjs/components/image/image.patch.css +10 -0
  278. package/cjs/components/image-uploader/image-uploader.css +4 -4
  279. package/cjs/components/image-viewer/image-viewer.css +1 -1
  280. package/cjs/components/index-bar/index-bar.css +4 -4
  281. package/cjs/components/infinite-scroll/infinite-scroll.css +5 -1
  282. package/cjs/components/infinite-scroll/infinite-scroll.d.ts +2 -2
  283. package/cjs/components/infinite-scroll/infinite-scroll.js +48 -17
  284. package/cjs/components/input/input.css +2 -2
  285. package/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -21
  286. package/cjs/components/list/list.css +10 -11
  287. package/cjs/components/mask/mask.patch.css +3 -0
  288. package/cjs/components/modal/modal.css +15 -29
  289. package/cjs/components/modal/modal.d.ts +4 -18
  290. package/cjs/components/modal/modal.js +23 -86
  291. package/cjs/components/modal/modal.patch.css +23 -0
  292. package/cjs/components/nav-bar/nav-bar.css +2 -2
  293. package/cjs/components/notice-bar/notice-bar.css +4 -4
  294. package/cjs/components/number-keyboard/number-keyboard.css +4 -4
  295. package/cjs/components/page-indicator/page-indicator.patch.css +25 -0
  296. package/cjs/components/passcode-input/passcode-input.css +1 -1
  297. package/cjs/components/picker/picker.css +6 -7
  298. package/cjs/components/picker-view/picker-view.css +3 -3
  299. package/cjs/components/popover/popover-menu.css +1 -1
  300. package/cjs/components/popover/popover-menu.patch.css +24 -0
  301. package/cjs/components/popover/popover.css +3 -2
  302. package/cjs/components/popover/popover.patch.css +19 -0
  303. package/cjs/components/popup/popup.css +1 -1
  304. package/cjs/components/popup/popup.d.ts +11 -12
  305. package/cjs/components/radio/radio.css +2 -2
  306. package/cjs/components/result/result.css +2 -2
  307. package/cjs/components/scroll-mask/scroll-mask.css +2 -2
  308. package/cjs/components/scroll-mask/scroll-mask.patch.css +6 -0
  309. package/cjs/components/search-bar/search-bar.css +4 -4
  310. package/cjs/components/selector/selector.css +3 -3
  311. package/cjs/components/side-bar/corner.js +1 -1
  312. package/cjs/components/side-bar/side-bar.css +3 -3
  313. package/cjs/components/slider/slider.css +26 -24
  314. package/cjs/components/slider/slider.d.ts +3 -2
  315. package/cjs/components/slider/slider.js +4 -2
  316. package/cjs/components/slider/thumb-icon.js +20 -18
  317. package/cjs/components/slider/thumb.d.ts +2 -1
  318. package/cjs/components/slider/thumb.js +19 -5
  319. package/cjs/components/space/space.patch.css +13 -0
  320. package/cjs/components/spin-loading/spin-loading.css +0 -3
  321. package/cjs/components/spin-loading/spin-loading.patch.css +12 -0
  322. package/cjs/components/stepper/stepper.css +3 -3
  323. package/cjs/components/steps/steps.css +2 -2
  324. package/cjs/components/swipe-action/swipe-action.css +1 -1
  325. package/cjs/components/swipe-action/swipe-action.js +7 -6
  326. package/cjs/components/swiper/swiper.js +9 -8
  327. package/cjs/components/swiper/swiper.patch.css +21 -0
  328. package/cjs/components/switch/switch.css +4 -4
  329. package/cjs/components/tab-bar/tab-bar.css +7 -5
  330. package/cjs/components/tab-bar/tab-bar.js +1 -1
  331. package/cjs/components/tabs/tabs.css +4 -4
  332. package/cjs/components/tabs/tabs.patch.css +23 -0
  333. package/cjs/components/tag/tag.css +1 -1
  334. package/cjs/components/text-area/text-area.css +2 -2
  335. package/cjs/components/toast/toast.css +1 -1
  336. package/cjs/components/toast/toast.patch.css +11 -0
  337. package/cjs/components/tree-select/tree-select.css +1 -1
  338. package/cjs/components/virtual-input/virtual-input.css +2 -2
  339. package/cjs/global/css-vars-patch.css +312 -0
  340. package/cjs/global/global.css +35 -4
  341. package/cjs/global/index.js +2 -1
  342. package/cjs/global/theme-dark.css +14 -0
  343. package/cjs/global/theme-default.css +33 -0
  344. package/cjs/index.d.ts +1 -0
  345. package/cjs/index.js +8 -0
  346. package/cjs/locales/base.d.ts +2 -0
  347. package/cjs/locales/base.js +3 -1
  348. package/cjs/locales/en-US.d.ts +2 -0
  349. package/cjs/locales/es-ES.d.ts +2 -0
  350. package/cjs/locales/fa-IR.d.ts +2 -0
  351. package/cjs/locales/fr-FR.d.ts +2 -0
  352. package/cjs/locales/ko-KR.d.ts +2 -0
  353. package/cjs/locales/zh-CN.d.ts +2 -0
  354. package/cjs/locales/zh-CN.js +3 -1
  355. package/cjs/locales/zh-HK.d.ts +2 -0
  356. package/cjs/locales/zh-TW.d.ts +2 -0
  357. package/es/components/action-sheet/action-sheet.css +8 -8
  358. package/es/components/badge/badge.css +2 -2
  359. package/es/components/button/button.css +6 -6
  360. package/es/components/button/button.patch.css +86 -0
  361. package/es/components/calendar/calendar.css +5 -5
  362. package/es/components/capsule-tabs/capsule-tabs.css +4 -21
  363. package/es/components/card/card.css +3 -3
  364. package/es/components/cascader/cascader.css +2 -2
  365. package/es/components/cascader/cascader.d.ts +1 -0
  366. package/es/components/cascader-view/cascader-view.css +2 -2
  367. package/es/components/cascader-view/cascader-view.d.ts +1 -0
  368. package/es/components/cascader-view/cascader-view.js +14 -8
  369. package/es/components/cascader-view/use-cascader-value-extend.js +5 -14
  370. package/es/components/center-popup/center-popup.css +26 -0
  371. package/es/components/center-popup/center-popup.d.ts +23 -0
  372. package/es/components/center-popup/center-popup.js +86 -0
  373. package/es/components/center-popup/center-popup.patch.css +11 -0
  374. package/es/components/center-popup/index.d.ts +4 -0
  375. package/es/components/center-popup/index.js +3 -0
  376. package/es/components/check-list/check-list.css +1 -1
  377. package/es/components/checkbox/checkbox.css +3 -3
  378. package/es/components/dialog/dialog.css +21 -33
  379. package/es/components/dialog/dialog.d.ts +4 -18
  380. package/es/components/dialog/dialog.js +23 -72
  381. package/es/components/divider/divider.css +2 -2
  382. package/es/components/dropdown/dropdown.css +2 -2
  383. package/es/components/ellipsis/ellipsis.js +0 -1
  384. package/es/components/empty/empty.css +1 -1
  385. package/es/components/error-block/error-block.css +4 -4
  386. package/es/components/error-block/error-block.patch.css +23 -0
  387. package/es/components/form/form-item.css +2 -2
  388. package/es/components/form/form.css +3 -3
  389. package/es/components/form/index.css +5 -5
  390. package/es/components/image/image.css +1 -1
  391. package/es/components/image/image.js +2 -0
  392. package/es/components/image/image.patch.css +10 -0
  393. package/es/components/image-uploader/image-uploader.css +4 -4
  394. package/es/components/image-viewer/image-viewer.css +1 -1
  395. package/es/components/index-bar/index-bar.css +4 -4
  396. package/es/components/infinite-scroll/infinite-scroll.css +5 -1
  397. package/es/components/infinite-scroll/infinite-scroll.d.ts +2 -2
  398. package/es/components/infinite-scroll/infinite-scroll.js +47 -17
  399. package/es/components/input/input.css +2 -2
  400. package/es/components/jumbo-tabs/jumbo-tabs.css +4 -21
  401. package/es/components/list/list.css +10 -11
  402. package/es/components/mask/mask.patch.css +3 -0
  403. package/es/components/modal/modal.css +15 -29
  404. package/es/components/modal/modal.d.ts +4 -18
  405. package/es/components/modal/modal.js +22 -74
  406. package/es/components/modal/modal.patch.css +23 -0
  407. package/es/components/nav-bar/nav-bar.css +2 -2
  408. package/es/components/notice-bar/notice-bar.css +4 -4
  409. package/es/components/number-keyboard/number-keyboard.css +4 -4
  410. package/es/components/page-indicator/page-indicator.patch.css +25 -0
  411. package/es/components/passcode-input/passcode-input.css +1 -1
  412. package/es/components/picker/picker.css +6 -7
  413. package/es/components/picker-view/picker-view.css +3 -3
  414. package/es/components/popover/popover-menu.css +1 -1
  415. package/es/components/popover/popover-menu.patch.css +24 -0
  416. package/es/components/popover/popover.css +3 -2
  417. package/es/components/popover/popover.patch.css +19 -0
  418. package/es/components/popup/popup.css +1 -1
  419. package/es/components/popup/popup.d.ts +11 -12
  420. package/es/components/radio/radio.css +2 -2
  421. package/es/components/result/result.css +2 -2
  422. package/es/components/scroll-mask/scroll-mask.css +2 -2
  423. package/es/components/scroll-mask/scroll-mask.patch.css +6 -0
  424. package/es/components/search-bar/search-bar.css +4 -4
  425. package/es/components/selector/selector.css +3 -3
  426. package/es/components/side-bar/corner.js +1 -1
  427. package/es/components/side-bar/side-bar.css +3 -3
  428. package/es/components/slider/slider.css +26 -24
  429. package/es/components/slider/slider.d.ts +3 -2
  430. package/es/components/slider/slider.js +4 -2
  431. package/es/components/slider/thumb-icon.js +20 -18
  432. package/es/components/slider/thumb.d.ts +2 -1
  433. package/es/components/slider/thumb.js +17 -6
  434. package/es/components/space/space.patch.css +13 -0
  435. package/es/components/spin-loading/spin-loading.css +0 -3
  436. package/es/components/spin-loading/spin-loading.patch.css +12 -0
  437. package/es/components/stepper/stepper.css +3 -3
  438. package/es/components/steps/steps.css +2 -2
  439. package/es/components/swipe-action/swipe-action.css +1 -1
  440. package/es/components/swipe-action/swipe-action.js +7 -6
  441. package/es/components/swiper/swiper.js +9 -8
  442. package/es/components/swiper/swiper.patch.css +21 -0
  443. package/es/components/switch/switch.css +4 -4
  444. package/es/components/tab-bar/tab-bar.css +7 -5
  445. package/es/components/tab-bar/tab-bar.js +1 -1
  446. package/es/components/tabs/tabs.css +4 -4
  447. package/es/components/tabs/tabs.patch.css +23 -0
  448. package/es/components/tag/tag.css +1 -1
  449. package/es/components/text-area/text-area.css +2 -2
  450. package/es/components/toast/toast.css +1 -1
  451. package/es/components/toast/toast.patch.css +11 -0
  452. package/es/components/tree-select/tree-select.css +1 -1
  453. package/es/components/virtual-input/virtual-input.css +2 -2
  454. package/es/global/css-vars-patch.css +312 -0
  455. package/es/global/global.css +35 -4
  456. package/es/global/index.js +2 -1
  457. package/es/global/theme-dark.css +14 -0
  458. package/es/global/theme-default.css +33 -0
  459. package/es/index.d.ts +1 -0
  460. package/es/index.js +1 -0
  461. package/es/locales/base.d.ts +2 -0
  462. package/es/locales/base.js +3 -1
  463. package/es/locales/en-US.d.ts +2 -0
  464. package/es/locales/es-ES.d.ts +2 -0
  465. package/es/locales/fa-IR.d.ts +2 -0
  466. package/es/locales/fr-FR.d.ts +2 -0
  467. package/es/locales/ko-KR.d.ts +2 -0
  468. package/es/locales/zh-CN.d.ts +2 -0
  469. package/es/locales/zh-CN.js +3 -1
  470. package/es/locales/zh-HK.d.ts +2 -0
  471. package/es/locales/zh-TW.d.ts +2 -0
  472. package/package.json +1 -1
  473. package/umd/antd-mobile.js +1 -1
  474. package/2x/cjs/global/theme.css +0 -16
  475. package/2x/es/global/theme.css +0 -16
  476. package/cjs/global/theme.css +0 -16
  477. package/es/global/theme.css +0 -16
@@ -1343,7 +1343,9 @@ const base = {
1343
1343
  upload: "Upload"
1344
1344
  },
1345
1345
  InfiniteScroll: {
1346
- noMore: "No more"
1346
+ noMore: "No more",
1347
+ failedToLoad: "Failed to load",
1348
+ retry: "Retry"
1347
1349
  },
1348
1350
  Mask: {
1349
1351
  name: "Mask"
@@ -1449,7 +1451,9 @@ const zhCN = mergeLocale(base, {
1449
1451
  upload: "\u4E0A\u4F20"
1450
1452
  },
1451
1453
  InfiniteScroll: {
1452
- noMore: "\u6CA1\u6709\u66F4\u591A\u4E86"
1454
+ noMore: "\u6CA1\u6709\u66F4\u591A\u4E86",
1455
+ failedToLoad: "\u52A0\u8F7D\u5931\u8D25",
1456
+ retry: "\u91CD\u65B0\u52A0\u8F7D"
1453
1457
  },
1454
1458
  Mask: {
1455
1459
  name: "\u906E\u7F69\u5C42"
@@ -8873,13 +8877,13 @@ function withStopPropagation(events, element) {
8873
8877
  }
8874
8878
  return React__default["default"].cloneElement(element, props);
8875
8879
  }
8876
- const classPrefix$1g = `adm-mask`;
8880
+ const classPrefix$1i = `adm-mask`;
8877
8881
  const opacityRecord = {
8878
8882
  default: 0.55,
8879
8883
  thin: 0.35,
8880
8884
  thick: 0.75
8881
8885
  };
8882
- const defaultProps$Z = {
8886
+ const defaultProps$$ = {
8883
8887
  visible: true,
8884
8888
  destroyOnClose: false,
8885
8889
  forceRender: false,
@@ -8890,7 +8894,7 @@ const defaultProps$Z = {
8890
8894
  stopPropagation: ["click"]
8891
8895
  };
8892
8896
  const Mask = (p2) => {
8893
- const props = mergeProps(defaultProps$Z, p2);
8897
+ const props = mergeProps(defaultProps$$, p2);
8894
8898
  const {
8895
8899
  locale
8896
8900
  } = useConfig();
@@ -8931,7 +8935,7 @@ const Mask = (p2) => {
8931
8935
  }
8932
8936
  });
8933
8937
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement(web.animated.div, {
8934
- className: classPrefix$1g,
8938
+ className: classPrefix$1i,
8935
8939
  ref,
8936
8940
  style: Object.assign(Object.assign({}, props.style), {
8937
8941
  background,
@@ -8945,12 +8949,12 @@ const Mask = (p2) => {
8945
8949
  }
8946
8950
  }
8947
8951
  }, props.onMaskClick && React__default["default"].createElement("div", {
8948
- className: `${classPrefix$1g}-aria-button`,
8952
+ className: `${classPrefix$1i}-aria-button`,
8949
8953
  role: "button",
8950
8954
  "aria-label": locale.Mask.name,
8951
8955
  onClick: props.onMaskClick
8952
8956
  }), React__default["default"].createElement("div", {
8953
- className: `${classPrefix$1g}-content`
8957
+ className: `${classPrefix$1i}-content`
8954
8958
  }, props.children))));
8955
8959
  return React__default["default"].createElement(ShouldRender, {
8956
8960
  active,
@@ -8958,8 +8962,8 @@ const Mask = (p2) => {
8958
8962
  destroyOnClose: props.destroyOnClose
8959
8963
  }, renderToContainer(props.getContainer, node));
8960
8964
  };
8961
- const classPrefix$1f = `adm-popup`;
8962
- const defaultProps$Y = {
8965
+ const classPrefix$1h = `adm-popup`;
8966
+ const defaultProps$_ = {
8963
8967
  position: "bottom",
8964
8968
  visible: false,
8965
8969
  getContainer: () => document.body,
@@ -8967,8 +8971,8 @@ const defaultProps$Y = {
8967
8971
  stopPropagation: ["click"]
8968
8972
  };
8969
8973
  const Popup = (p2) => {
8970
- const props = mergeProps(defaultProps$Y, p2);
8971
- const bodyCls = classNames__default["default"](`${classPrefix$1f}-body`, props.bodyClassName, `${classPrefix$1f}-body-position-${props.position}`);
8974
+ const props = mergeProps(defaultProps$_, p2);
8975
+ const bodyCls = classNames__default["default"](`${classPrefix$1h}-body`, props.bodyClassName, `${classPrefix$1h}-body-position-${props.position}`);
8972
8976
  const ref = React$1.useRef(null);
8973
8977
  const [active, setActive] = React$1.useState(props.visible);
8974
8978
  useLockScroll(ref, active);
@@ -9000,7 +9004,7 @@ const Popup = (p2) => {
9000
9004
  }
9001
9005
  });
9002
9006
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement("div", {
9003
- className: classPrefix$1f,
9007
+ className: classPrefix$1h,
9004
9008
  onClick: props.onClick,
9005
9009
  style: {
9006
9010
  display: active ? void 0 : "none"
@@ -9036,10 +9040,10 @@ const Popup = (p2) => {
9036
9040
  return renderToContainer(props.getContainer, node);
9037
9041
  };
9038
9042
  var safeArea = "";
9039
- const classPrefix$1e = "adm-safe-area";
9043
+ const classPrefix$1g = "adm-safe-area";
9040
9044
  const SafeArea = (props) => {
9041
9045
  return withNativeProps(props, React__default["default"].createElement("div", {
9042
- className: classNames__default["default"](classPrefix$1e, `${classPrefix$1e}-position-${props.position}`)
9046
+ className: classNames__default["default"](classPrefix$1g, `${classPrefix$1g}-position-${props.position}`)
9043
9047
  }));
9044
9048
  };
9045
9049
  const fullClone = Object.assign({}, ReactDOM);
@@ -9155,8 +9159,8 @@ function renderImperatively(element) {
9155
9159
  close
9156
9160
  };
9157
9161
  }
9158
- const classPrefix$1d = `adm-action-sheet`;
9159
- const defaultProps$X = {
9162
+ const classPrefix$1f = `adm-action-sheet`;
9163
+ const defaultProps$Z = {
9160
9164
  visible: false,
9161
9165
  actions: [],
9162
9166
  cancelText: "",
@@ -9165,7 +9169,7 @@ const defaultProps$X = {
9165
9169
  safeArea: true
9166
9170
  };
9167
9171
  const ActionSheet = (p2) => {
9168
- const props = mergeProps(defaultProps$X, p2);
9172
+ const props = mergeProps(defaultProps$Z, p2);
9169
9173
  return React__default["default"].createElement(Popup, {
9170
9174
  visible: props.visible,
9171
9175
  onMaskClick: () => {
@@ -9176,22 +9180,22 @@ const ActionSheet = (p2) => {
9176
9180
  }
9177
9181
  },
9178
9182
  afterClose: props.afterClose,
9179
- className: classNames__default["default"](`${classPrefix$1d}-popup`, props.popupClassName),
9183
+ className: classNames__default["default"](`${classPrefix$1f}-popup`, props.popupClassName),
9180
9184
  style: props.popupStyle,
9181
9185
  getContainer: props.getContainer
9182
9186
  }, withNativeProps(props, React__default["default"].createElement("div", {
9183
- className: classPrefix$1d
9187
+ className: classPrefix$1f
9184
9188
  }, props.extra && React__default["default"].createElement("div", {
9185
- className: `${classPrefix$1d}-extra`
9189
+ className: `${classPrefix$1f}-extra`
9186
9190
  }, props.extra), React__default["default"].createElement("div", {
9187
- className: `${classPrefix$1d}-button-list`
9191
+ className: `${classPrefix$1f}-button-list`
9188
9192
  }, props.actions.map((action, index2) => React__default["default"].createElement("div", {
9189
9193
  key: action.key,
9190
- className: `${classPrefix$1d}-button-item-wrapper`
9194
+ className: `${classPrefix$1f}-button-item-wrapper`
9191
9195
  }, React__default["default"].createElement("a", {
9192
- className: classNames__default["default"]("adm-plain-anchor", `${classPrefix$1d}-button-item`, {
9193
- [`${classPrefix$1d}-button-item-danger`]: action.danger,
9194
- [`${classPrefix$1d}-button-item-disabled`]: action.disabled
9196
+ className: classNames__default["default"]("adm-plain-anchor", `${classPrefix$1f}-button-item`, {
9197
+ [`${classPrefix$1f}-button-item-danger`]: action.danger,
9198
+ [`${classPrefix$1f}-button-item-disabled`]: action.disabled
9195
9199
  }),
9196
9200
  onClick: () => {
9197
9201
  var _a, _b, _c;
@@ -9202,21 +9206,21 @@ const ActionSheet = (p2) => {
9202
9206
  }
9203
9207
  }
9204
9208
  }, React__default["default"].createElement("div", {
9205
- className: `${classPrefix$1d}-button-item-name`
9209
+ className: `${classPrefix$1f}-button-item-name`
9206
9210
  }, action.text), action.description && React__default["default"].createElement("div", {
9207
- className: `${classPrefix$1d}-button-item-description`
9211
+ className: `${classPrefix$1f}-button-item-description`
9208
9212
  }, action.description))))), props.cancelText && React__default["default"].createElement("div", {
9209
- className: `${classPrefix$1d}-cancel`
9213
+ className: `${classPrefix$1f}-cancel`
9210
9214
  }, React__default["default"].createElement("div", {
9211
- className: `${classPrefix$1d}-button-item-wrapper`
9215
+ className: `${classPrefix$1f}-button-item-wrapper`
9212
9216
  }, React__default["default"].createElement("a", {
9213
- className: classNames__default["default"]("adm-plain-anchor", `${classPrefix$1d}-button-item`),
9217
+ className: classNames__default["default"]("adm-plain-anchor", `${classPrefix$1f}-button-item`),
9214
9218
  onClick: () => {
9215
9219
  var _a;
9216
9220
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
9217
9221
  }
9218
9222
  }, React__default["default"].createElement("div", {
9219
- className: `${classPrefix$1d}-button-item-name`
9223
+ className: `${classPrefix$1f}-button-item-name`
9220
9224
  }, props.cancelText)))), props.safeArea && React__default["default"].createElement(SafeArea, {
9221
9225
  position: "bottom"
9222
9226
  }))));
@@ -9228,12 +9232,12 @@ var index$h = attachPropertiesToComponent(ActionSheet, {
9228
9232
  show: showActionSheet
9229
9233
  });
9230
9234
  var autoCenter = "";
9231
- const classPrefix$1c = "adm-auto-center";
9235
+ const classPrefix$1e = "adm-auto-center";
9232
9236
  const AutoCenter = (props) => {
9233
9237
  return withNativeProps(props, React__default["default"].createElement("div", {
9234
- className: classPrefix$1c
9238
+ className: classPrefix$1e
9235
9239
  }, React__default["default"].createElement("div", {
9236
- className: `${classPrefix$1c}-content`
9240
+ className: `${classPrefix$1e}-content`
9237
9241
  }, props.children)));
9238
9242
  };
9239
9243
  var avatar = "";
@@ -9275,15 +9279,15 @@ const Fallback = React$1.memo(() => React__default["default"].createElement("svg
9275
9279
  fillRule: "nonzero",
9276
9280
  mask: "url(#mask-2)"
9277
9281
  }))))));
9278
- const classPrefix$1b = "adm-avatar";
9279
- const defaultProps$W = {
9282
+ const classPrefix$1d = "adm-avatar";
9283
+ const defaultProps$Y = {
9280
9284
  fallback: React__default["default"].createElement(Fallback, null),
9281
9285
  fit: "cover"
9282
9286
  };
9283
9287
  const Avatar = (p2) => {
9284
- const props = mergeProps(defaultProps$W, p2);
9288
+ const props = mergeProps(defaultProps$Y, p2);
9285
9289
  return withNativeProps(props, React__default["default"].createElement(Image$1, {
9286
- className: classPrefix$1b,
9290
+ className: classPrefix$1d,
9287
9291
  src: props.src,
9288
9292
  fallback: props.fallback,
9289
9293
  placeholder: props.fallback,
@@ -9295,7 +9299,7 @@ const Avatar = (p2) => {
9295
9299
  }));
9296
9300
  };
9297
9301
  var badge = "";
9298
- const classPrefix$1a = `adm-badge`;
9302
+ const classPrefix$1c = `adm-badge`;
9299
9303
  const dot = React__default["default"].createElement(React__default["default"].Fragment, null);
9300
9304
  const Badge$1 = (props) => {
9301
9305
  const {
@@ -9304,17 +9308,17 @@ const Badge$1 = (props) => {
9304
9308
  children
9305
9309
  } = props;
9306
9310
  const isDot = content === dot;
9307
- const badgeCls = classNames__default["default"](classPrefix$1a, !!children && `${classPrefix$1a}-fixed`, isDot && `${classPrefix$1a}-dot`, props.bordered && `${classPrefix$1a}-bordered`);
9311
+ const badgeCls = classNames__default["default"](classPrefix$1c, !!children && `${classPrefix$1c}-fixed`, isDot && `${classPrefix$1c}-dot`, props.bordered && `${classPrefix$1c}-bordered`);
9308
9312
  const element = content || content === 0 ? withNativeProps(props, React__default["default"].createElement("div", {
9309
9313
  className: badgeCls,
9310
9314
  style: {
9311
9315
  "--color": color
9312
9316
  }
9313
9317
  }, !isDot && React__default["default"].createElement("div", {
9314
- className: `${classPrefix$1a}-content`
9318
+ className: `${classPrefix$1c}-content`
9315
9319
  }, content))) : null;
9316
9320
  return children ? React__default["default"].createElement("div", {
9317
- className: `${classPrefix$1a}-wrap`
9321
+ className: `${classPrefix$1c}-wrap`
9318
9322
  }, children, element) : element;
9319
9323
  };
9320
9324
  var Badge = attachPropertiesToComponent(Badge$1, {
@@ -9322,23 +9326,23 @@ var Badge = attachPropertiesToComponent(Badge$1, {
9322
9326
  });
9323
9327
  var button = "";
9324
9328
  var dotLoading = "";
9325
- const classPrefix$19 = `adm-dot-loading`;
9329
+ const classPrefix$1b = `adm-dot-loading`;
9326
9330
  const colorRecord$3 = {
9327
9331
  default: "var(--adm-color-weak)",
9328
9332
  primary: "var(--adm-color-primary)",
9329
9333
  white: "var(--adm-color-white)"
9330
9334
  };
9331
- const defaultProps$V = {
9335
+ const defaultProps$X = {
9332
9336
  color: "default"
9333
9337
  };
9334
9338
  const DotLoading = React$1.memo((p2) => {
9335
9339
  var _a;
9336
- const props = mergeProps(defaultProps$V, p2);
9340
+ const props = mergeProps(defaultProps$X, p2);
9337
9341
  return withNativeProps(props, React__default["default"].createElement("div", {
9338
9342
  style: {
9339
9343
  color: (_a = colorRecord$3[props.color]) !== null && _a !== void 0 ? _a : props.color
9340
9344
  },
9341
- className: classNames__default["default"]("adm-loading", classPrefix$19)
9345
+ className: classNames__default["default"]("adm-loading", classPrefix$1b)
9342
9346
  }, React__default["default"].createElement("svg", {
9343
9347
  height: "1em",
9344
9348
  viewBox: "0 0 100 40",
@@ -9381,8 +9385,8 @@ function isPromise(obj) {
9381
9385
  function isIOS() {
9382
9386
  return canUseDom ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
9383
9387
  }
9384
- const classPrefix$18 = `adm-button`;
9385
- const defaultProps$U = {
9388
+ const classPrefix$1a = `adm-button`;
9389
+ const defaultProps$W = {
9386
9390
  color: "default",
9387
9391
  fill: "solid",
9388
9392
  block: false,
@@ -9395,7 +9399,7 @@ const defaultProps$U = {
9395
9399
  size: "middle"
9396
9400
  };
9397
9401
  const Button = React$1.forwardRef((p2, ref) => {
9398
- const props = mergeProps(defaultProps$U, p2);
9402
+ const props = mergeProps(defaultProps$W, p2);
9399
9403
  const [innerLoading, setInnerLoading] = React$1.useState(false);
9400
9404
  const nativeButtonRef = React$1.useRef(null);
9401
9405
  const loading = props.loading === "auto" ? innerLoading : props.loading;
@@ -9424,23 +9428,23 @@ const Button = React$1.forwardRef((p2, ref) => {
9424
9428
  ref: nativeButtonRef,
9425
9429
  type: props.type,
9426
9430
  onClick: handleClick,
9427
- className: classNames__default["default"](classPrefix$18, props.color ? `${classPrefix$18}-${props.color}` : null, {
9428
- [`${classPrefix$18}-block`]: props.block,
9429
- [`${classPrefix$18}-disabled`]: disabled,
9430
- [`${classPrefix$18}-fill-outline`]: props.fill === "outline",
9431
- [`${classPrefix$18}-fill-none`]: props.fill === "none",
9432
- [`${classPrefix$18}-mini`]: props.size === "mini",
9433
- [`${classPrefix$18}-small`]: props.size === "small",
9434
- [`${classPrefix$18}-large`]: props.size === "large",
9435
- [`${classPrefix$18}-loading`]: loading
9436
- }, `${classPrefix$18}-shape-${props.shape}`),
9431
+ className: classNames__default["default"](classPrefix$1a, props.color ? `${classPrefix$1a}-${props.color}` : null, {
9432
+ [`${classPrefix$1a}-block`]: props.block,
9433
+ [`${classPrefix$1a}-disabled`]: disabled,
9434
+ [`${classPrefix$1a}-fill-outline`]: props.fill === "outline",
9435
+ [`${classPrefix$1a}-fill-none`]: props.fill === "none",
9436
+ [`${classPrefix$1a}-mini`]: props.size === "mini",
9437
+ [`${classPrefix$1a}-small`]: props.size === "small",
9438
+ [`${classPrefix$1a}-large`]: props.size === "large",
9439
+ [`${classPrefix$1a}-loading`]: loading
9440
+ }, `${classPrefix$1a}-shape-${props.shape}`),
9437
9441
  disabled,
9438
9442
  onMouseDown: props.onMouseDown,
9439
9443
  onMouseUp: props.onMouseUp,
9440
9444
  onTouchStart: props.onTouchStart,
9441
9445
  onTouchEnd: props.onTouchEnd
9442
9446
  }, loading ? React__default["default"].createElement("div", {
9443
- className: `${classPrefix$18}-loading-wrapper`
9447
+ className: `${classPrefix$1a}-loading-wrapper`
9444
9448
  }, props.loadingIcon, props.loadingText) : props.children));
9445
9449
  });
9446
9450
  var calendar = "";
@@ -9561,8 +9565,8 @@ function convertValueToRange(selectionMode, value) {
9561
9565
  return [value, value];
9562
9566
  }
9563
9567
  dayjs__default["default"].extend(isoWeek);
9564
- const classPrefix$17 = "adm-calendar";
9565
- const defaultProps$T = {
9568
+ const classPrefix$19 = "adm-calendar";
9569
+ const defaultProps$V = {
9566
9570
  weekStartsOn: "Sunday",
9567
9571
  defaultValue: null,
9568
9572
  allowClear: true,
@@ -9573,7 +9577,7 @@ const defaultProps$T = {
9573
9577
  };
9574
9578
  const Calendar = React$1.forwardRef((p2, ref) => {
9575
9579
  const today = dayjs__default["default"]();
9576
- const props = mergeProps(defaultProps$T, p2);
9580
+ const props = mergeProps(defaultProps$V, p2);
9577
9581
  const {
9578
9582
  locale
9579
9583
  } = useConfig();
@@ -9619,26 +9623,26 @@ const Calendar = React$1.forwardRef((p2, ref) => {
9619
9623
  }
9620
9624
  }));
9621
9625
  const header = React__default["default"].createElement("div", {
9622
- className: `${classPrefix$17}-header`
9626
+ className: `${classPrefix$19}-header`
9623
9627
  }, React__default["default"].createElement("a", {
9624
- className: `${classPrefix$17}-arrow-button ${classPrefix$17}-arrow-button-year`,
9628
+ className: `${classPrefix$19}-arrow-button ${classPrefix$19}-arrow-button-year`,
9625
9629
  onClick: () => {
9626
9630
  setCurrent(current.subtract(1, "year"));
9627
9631
  }
9628
9632
  }, props.prevYearButton), React__default["default"].createElement("a", {
9629
- className: `${classPrefix$17}-arrow-button ${classPrefix$17}-arrow-button-month`,
9633
+ className: `${classPrefix$19}-arrow-button ${classPrefix$19}-arrow-button-month`,
9630
9634
  onClick: () => {
9631
9635
  setCurrent(current.subtract(1, "month"));
9632
9636
  }
9633
9637
  }, props.prevMonthButton), React__default["default"].createElement("div", {
9634
- className: `${classPrefix$17}-title`
9638
+ className: `${classPrefix$19}-title`
9635
9639
  }, locale.Calendar.renderYearAndMonth(current.year(), current.month() + 1)), React__default["default"].createElement("a", {
9636
- className: classNames__default["default"](`${classPrefix$17}-arrow-button`, `${classPrefix$17}-arrow-button-right`, `${classPrefix$17}-arrow-button-right-month`),
9640
+ className: classNames__default["default"](`${classPrefix$19}-arrow-button`, `${classPrefix$19}-arrow-button-right`, `${classPrefix$19}-arrow-button-right-month`),
9637
9641
  onClick: () => {
9638
9642
  setCurrent(current.add(1, "month"));
9639
9643
  }
9640
9644
  }, props.nextMonthButton), React__default["default"].createElement("a", {
9641
- className: classNames__default["default"](`${classPrefix$17}-arrow-button`, `${classPrefix$17}-arrow-button-right`, `${classPrefix$17}-arrow-button-right-year`),
9645
+ className: classNames__default["default"](`${classPrefix$19}-arrow-button`, `${classPrefix$19}-arrow-button-right`, `${classPrefix$19}-arrow-button-right-year`),
9642
9646
  onClick: () => {
9643
9647
  setCurrent(current.add(1, "year"));
9644
9648
  }
@@ -9667,11 +9671,11 @@ const Calendar = React$1.forwardRef((p2, ref) => {
9667
9671
  const disabled = props.shouldDisableDate ? props.shouldDisableDate(d.toDate()) : maxDay && d.isAfter(maxDay, "day") || minDay && d.isBefore(minDay, "day");
9668
9672
  cells.push(React__default["default"].createElement("div", {
9669
9673
  key: d.valueOf(),
9670
- className: classNames__default["default"](`${classPrefix$17}-cell`, (disabled || !inThisMonth) && `${classPrefix$17}-cell-disabled`, inThisMonth && {
9671
- [`${classPrefix$17}-cell-today`]: d.isSame(today, "day"),
9672
- [`${classPrefix$17}-cell-selected`]: isSelect,
9673
- [`${classPrefix$17}-cell-selected-begin`]: isBegin,
9674
- [`${classPrefix$17}-cell-selected-end`]: isEnd
9674
+ className: classNames__default["default"](`${classPrefix$19}-cell`, (disabled || !inThisMonth) && `${classPrefix$19}-cell-disabled`, inThisMonth && {
9675
+ [`${classPrefix$19}-cell-today`]: d.isSame(today, "day"),
9676
+ [`${classPrefix$19}-cell-selected`]: isSelect,
9677
+ [`${classPrefix$19}-cell-selected-begin`]: isBegin,
9678
+ [`${classPrefix$19}-cell-selected-end`]: isEnd
9675
9679
  }),
9676
9680
  onClick: () => {
9677
9681
  if (!props.selectionMode)
@@ -9718,25 +9722,25 @@ const Calendar = React$1.forwardRef((p2, ref) => {
9718
9722
  }
9719
9723
  }
9720
9724
  }, React__default["default"].createElement("div", {
9721
- className: `${classPrefix$17}-cell-top`
9725
+ className: `${classPrefix$19}-cell-top`
9722
9726
  }, d.date()), React__default["default"].createElement("div", {
9723
- className: `${classPrefix$17}-cell-bottom`
9727
+ className: `${classPrefix$19}-cell-bottom`
9724
9728
  }, (_a = props.renderLabel) === null || _a === void 0 ? void 0 : _a.call(props, d.toDate()))));
9725
9729
  iterator = iterator.add(1, "day");
9726
9730
  }
9727
9731
  return cells;
9728
9732
  }
9729
9733
  const body = React__default["default"].createElement("div", {
9730
- className: `${classPrefix$17}-cells`
9734
+ className: `${classPrefix$19}-cells`
9731
9735
  }, renderCells());
9732
9736
  const mark = React__default["default"].createElement("div", {
9733
- className: `${classPrefix$17}-mark`
9737
+ className: `${classPrefix$19}-mark`
9734
9738
  }, markItems.map((item) => React__default["default"].createElement("div", {
9735
9739
  key: item,
9736
- className: `${classPrefix$17}-mark-cell`
9740
+ className: `${classPrefix$19}-mark-cell`
9737
9741
  }, item)));
9738
9742
  return withNativeProps(props, React__default["default"].createElement("div", {
9739
- className: classPrefix$17
9743
+ className: classPrefix$19
9740
9744
  }, header, mark, body));
9741
9745
  });
9742
9746
  var capsuleTabs = "";
@@ -9838,7 +9842,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
9838
9842
  };
9839
9843
  };
9840
9844
  var scrollMask = "";
9841
- const classPrefix$16 = `adm-scroll-mask`;
9845
+ const classPrefix$18 = `adm-scroll-mask`;
9842
9846
  const ScrollMask = (props) => {
9843
9847
  const maskRef = React$1.useRef(null);
9844
9848
  const [{
@@ -9885,12 +9889,12 @@ const ScrollMask = (props) => {
9885
9889
  }, []);
9886
9890
  return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement(web.animated.div, {
9887
9891
  ref: maskRef,
9888
- className: classNames__default["default"](classPrefix$16, `${classPrefix$16}-left`),
9892
+ className: classNames__default["default"](classPrefix$18, `${classPrefix$18}-left`),
9889
9893
  style: {
9890
9894
  opacity: leftMaskOpacity
9891
9895
  }
9892
9896
  }), React__default["default"].createElement(web.animated.div, {
9893
- className: classNames__default["default"](classPrefix$16, `${classPrefix$16}-right`),
9897
+ className: classNames__default["default"](classPrefix$18, `${classPrefix$18}-right`),
9894
9898
  style: {
9895
9899
  opacity: rightMaskOpacity
9896
9900
  }
@@ -9910,7 +9914,7 @@ function traverseReactNode(children, fn) {
9910
9914
  }
9911
9915
  handle(children);
9912
9916
  }
9913
- const classPrefix$15 = `adm-capsule-tabs`;
9917
+ const classPrefix$17 = `adm-capsule-tabs`;
9914
9918
  const CapsuleTab = () => {
9915
9919
  return null;
9916
9920
  };
@@ -9951,19 +9955,19 @@ const CapsuleTabs = (props) => {
9951
9955
  animate(true);
9952
9956
  }, rootRef);
9953
9957
  return withNativeProps(props, React__default["default"].createElement("div", {
9954
- className: classPrefix$15,
9958
+ className: classPrefix$17,
9955
9959
  ref: rootRef
9956
9960
  }, React__default["default"].createElement("div", {
9957
- className: `${classPrefix$15}-header`
9961
+ className: `${classPrefix$17}-header`
9958
9962
  }, React__default["default"].createElement(ScrollMask, {
9959
9963
  scrollTrackRef: tabListContainerRef
9960
9964
  }), React__default["default"].createElement(web.animated.div, {
9961
- className: `${classPrefix$15}-tab-list`,
9965
+ className: `${classPrefix$17}-tab-list`,
9962
9966
  ref: tabListContainerRef,
9963
9967
  scrollLeft
9964
9968
  }, panes.map((pane) => withNativeProps(pane.props, React__default["default"].createElement("div", {
9965
9969
  key: pane.key,
9966
- className: `${classPrefix$15}-tab-wrapper`
9970
+ className: `${classPrefix$17}-tab-wrapper`
9967
9971
  }, React__default["default"].createElement("div", {
9968
9972
  onClick: () => {
9969
9973
  const {
@@ -9976,9 +9980,9 @@ const CapsuleTabs = (props) => {
9976
9980
  }
9977
9981
  setActiveKey(key.toString());
9978
9982
  },
9979
- className: classNames__default["default"](`${classPrefix$15}-tab`, {
9980
- [`${classPrefix$15}-tab-active`]: pane.key === activeKey,
9981
- [`${classPrefix$15}-tab-disabled`]: pane.props.disabled
9983
+ className: classNames__default["default"](`${classPrefix$17}-tab`, {
9984
+ [`${classPrefix$17}-tab-active`]: pane.key === activeKey,
9985
+ [`${classPrefix$17}-tab-disabled`]: pane.props.disabled
9982
9986
  })
9983
9987
  }, pane.props.title)))))), panes.map((pane) => {
9984
9988
  if (pane.props.children === void 0) {
@@ -9991,7 +9995,7 @@ const CapsuleTabs = (props) => {
9991
9995
  forceRender: pane.props.forceRender,
9992
9996
  destroyOnClose: pane.props.destroyOnClose
9993
9997
  }, React__default["default"].createElement("div", {
9994
- className: `${classPrefix$15}-content`,
9998
+ className: `${classPrefix$17}-content`,
9995
9999
  style: {
9996
10000
  display: active ? "block" : "none"
9997
10001
  }
@@ -10002,18 +10006,18 @@ var index$g = attachPropertiesToComponent(CapsuleTabs, {
10002
10006
  Tab: CapsuleTab
10003
10007
  });
10004
10008
  var card = "";
10005
- const classPrefix$14 = `adm-card`;
10009
+ const classPrefix$16 = `adm-card`;
10006
10010
  const Card = (props) => {
10007
10011
  const renderHeader = () => {
10008
10012
  if (!(props.title || props.extra)) {
10009
10013
  return null;
10010
10014
  }
10011
10015
  return React__default["default"].createElement("div", {
10012
- className: classNames__default["default"](`${classPrefix$14}-header`, props.headerClassName),
10016
+ className: classNames__default["default"](`${classPrefix$16}-header`, props.headerClassName),
10013
10017
  style: props.headerStyle,
10014
10018
  onClick: props.onHeaderClick
10015
10019
  }, React__default["default"].createElement("div", {
10016
- className: `${classPrefix$14}-header-title`
10020
+ className: `${classPrefix$16}-header-title`
10017
10021
  }, props.title), props.extra);
10018
10022
  };
10019
10023
  const renderBody = () => {
@@ -10021,13 +10025,13 @@ const Card = (props) => {
10021
10025
  return null;
10022
10026
  }
10023
10027
  return React__default["default"].createElement("div", {
10024
- className: classNames__default["default"](`${classPrefix$14}-body`, props.bodyClassName),
10028
+ className: classNames__default["default"](`${classPrefix$16}-body`, props.bodyClassName),
10025
10029
  style: props.bodyStyle,
10026
10030
  onClick: props.onBodyClick
10027
10031
  }, props.children);
10028
10032
  };
10029
10033
  return withNativeProps(props, React__default["default"].createElement("div", {
10030
- className: classPrefix$14,
10034
+ className: classPrefix$16,
10031
10035
  onClick: props.onClick
10032
10036
  }, renderHeader(), renderBody()));
10033
10037
  };
@@ -10308,7 +10312,7 @@ function measureCSSLength(raw) {
10308
10312
  return 0;
10309
10313
  }
10310
10314
  }
10311
- const classPrefix$13 = `adm-picker-view`;
10315
+ const classPrefix$15 = `adm-picker-view`;
10312
10316
  const Wheel = React$1.memo((props) => {
10313
10317
  const {
10314
10318
  value,
@@ -10448,12 +10452,12 @@ const Wheel = React$1.memo((props) => {
10448
10452
  }
10449
10453
  return React__default["default"].createElement("div", {
10450
10454
  ref: rootRef,
10451
- className: `${classPrefix$13}-column`
10455
+ className: `${classPrefix$15}-column`
10452
10456
  }, React__default["default"].createElement(web.animated.div, {
10453
10457
  style: {
10454
10458
  translateY: y
10455
10459
  },
10456
- className: `${classPrefix$13}-column-wheel`,
10460
+ className: `${classPrefix$15}-column-wheel`,
10457
10461
  "aria-hidden": true
10458
10462
  }, column.map((item, index2) => {
10459
10463
  var _a;
@@ -10467,12 +10471,12 @@ const Wheel = React$1.memo((props) => {
10467
10471
  return React__default["default"].createElement("div", {
10468
10472
  key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
10469
10473
  "data-selected": item.value === value,
10470
- className: `${classPrefix$13}-column-item`,
10474
+ className: `${classPrefix$15}-column-item`,
10471
10475
  onClick: handleClick,
10472
10476
  "aria-hidden": !selected,
10473
10477
  "aria-label": selected ? "active" : ""
10474
10478
  }, React__default["default"].createElement("div", {
10475
- className: `${classPrefix$13}-column-item-label`
10479
+ className: `${classPrefix$15}-column-item-label`
10476
10480
  }, renderLabel(item)));
10477
10481
  })), renderAccessible());
10478
10482
  }, (prev, next) => {
@@ -10528,14 +10532,14 @@ function useColumnsExtend(rawColumns, value) {
10528
10532
  return React$1.useMemo(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
10529
10533
  }
10530
10534
  const defaultRenderLabel$3 = (item) => item.label;
10531
- const classPrefix$12 = `adm-picker-view`;
10532
- const defaultProps$S = {
10535
+ const classPrefix$14 = `adm-picker-view`;
10536
+ const defaultProps$U = {
10533
10537
  defaultValue: [],
10534
10538
  renderLabel: defaultRenderLabel$3,
10535
10539
  mouseWheel: false
10536
10540
  };
10537
10541
  const PickerView = React$1.memo((p2) => {
10538
- const props = mergeProps(defaultProps$S, p2);
10542
+ const props = mergeProps(defaultProps$U, p2);
10539
10543
  const [innerValue, setInnerValue] = React$1.useState(props.value === void 0 ? props.defaultValue : props.value);
10540
10544
  React$1.useEffect(() => {
10541
10545
  if (props.value === void 0)
@@ -10576,7 +10580,7 @@ const PickerView = React$1.memo((p2) => {
10576
10580
  });
10577
10581
  }, []);
10578
10582
  return withNativeProps(props, React__default["default"].createElement("div", {
10579
- className: `${classPrefix$12}`
10583
+ className: `${classPrefix$14}`
10580
10584
  }, columns.map((column, index2) => React__default["default"].createElement(Wheel, {
10581
10585
  key: index2,
10582
10586
  index: index2,
@@ -10586,19 +10590,19 @@ const PickerView = React$1.memo((p2) => {
10586
10590
  renderLabel: props.renderLabel,
10587
10591
  mouseWheel: props.mouseWheel
10588
10592
  })), React__default["default"].createElement("div", {
10589
- className: `${classPrefix$12}-mask`
10593
+ className: `${classPrefix$14}-mask`
10590
10594
  }, React__default["default"].createElement("div", {
10591
- className: `${classPrefix$12}-mask-top`
10595
+ className: `${classPrefix$14}-mask-top`
10592
10596
  }), React__default["default"].createElement("div", {
10593
- className: `${classPrefix$12}-mask-middle`
10597
+ className: `${classPrefix$14}-mask-middle`
10594
10598
  }), React__default["default"].createElement("div", {
10595
- className: `${classPrefix$12}-mask-bottom`
10599
+ className: `${classPrefix$14}-mask-bottom`
10596
10600
  }))));
10597
10601
  });
10598
10602
  PickerView.displayName = "PickerView";
10599
10603
  var pickerView = "";
10600
- const classPrefix$11 = `adm-picker`;
10601
- const defaultProps$R = {
10604
+ const classPrefix$13 = `adm-picker`;
10605
+ const defaultProps$T = {
10602
10606
  defaultValue: [],
10603
10607
  closeOnMaskClick: true,
10604
10608
  renderLabel: defaultRenderLabel$3
@@ -10608,7 +10612,7 @@ const Picker$1 = React$1.memo(React$1.forwardRef((p2, ref) => {
10608
10612
  const {
10609
10613
  locale
10610
10614
  } = useConfig();
10611
- const props = mergeProps(defaultProps$R, {
10615
+ const props = mergeProps(defaultProps$T, {
10612
10616
  confirmText: locale.common.confirm,
10613
10617
  cancelText: locale.common.cancel
10614
10618
  }, p2);
@@ -10662,26 +10666,26 @@ const Picker$1 = React$1.memo(React$1.forwardRef((p2, ref) => {
10662
10666
  });
10663
10667
  const shouldRender = useShouldRender(visible, props.forceRender, props.destroyOnClose);
10664
10668
  const pickerElement = withNativeProps(props, React__default["default"].createElement("div", {
10665
- className: classPrefix$11
10669
+ className: classPrefix$13
10666
10670
  }, React__default["default"].createElement("div", {
10667
- className: `${classPrefix$11}-header`
10671
+ className: `${classPrefix$13}-header`
10668
10672
  }, React__default["default"].createElement("a", {
10669
- className: `${classPrefix$11}-header-button`,
10673
+ className: `${classPrefix$13}-header-button`,
10670
10674
  onClick: () => {
10671
10675
  var _a2;
10672
10676
  (_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
10673
10677
  setVisible(false);
10674
10678
  }
10675
10679
  }, props.cancelText), React__default["default"].createElement("div", {
10676
- className: `${classPrefix$11}-header-title`
10680
+ className: `${classPrefix$13}-header-title`
10677
10681
  }, props.title), React__default["default"].createElement("a", {
10678
- className: `${classPrefix$11}-header-button`,
10682
+ className: `${classPrefix$13}-header-button`,
10679
10683
  onClick: () => {
10680
10684
  setValue(innerValue);
10681
10685
  setVisible(false);
10682
10686
  }
10683
10687
  }, props.confirmText)), React__default["default"].createElement("div", {
10684
- className: `${classPrefix$11}-body`
10688
+ className: `${classPrefix$13}-body`
10685
10689
  }, React__default["default"].createElement(PickerView, {
10686
10690
  columns: props.columns,
10687
10691
  renderLabel: props.renderLabel,
@@ -10691,7 +10695,7 @@ const Picker$1 = React$1.memo(React$1.forwardRef((p2, ref) => {
10691
10695
  }))));
10692
10696
  const popupElement = React__default["default"].createElement(Popup, {
10693
10697
  style: props.popupStyle,
10694
- className: classNames__default["default"](`${classPrefix$11}-popup`, props.popupClassName),
10698
+ className: classNames__default["default"](`${classPrefix$13}-popup`, props.popupClassName),
10695
10699
  visible,
10696
10700
  position: "bottom",
10697
10701
  onMaskClick: () => {
@@ -10840,17 +10844,17 @@ const CascadePickerView = (props) => {
10840
10844
  };
10841
10845
  var cascaderView = "";
10842
10846
  var tabs = "";
10843
- const classPrefix$10 = `adm-tabs`;
10847
+ const classPrefix$12 = `adm-tabs`;
10844
10848
  const Tab = () => {
10845
10849
  return null;
10846
10850
  };
10847
- const defaultProps$Q = {
10851
+ const defaultProps$S = {
10848
10852
  activeLineMode: "auto",
10849
10853
  stretch: true
10850
10854
  };
10851
10855
  const Tabs$1 = (p2) => {
10852
10856
  var _a;
10853
- const props = mergeProps(defaultProps$Q, p2);
10857
+ const props = mergeProps(defaultProps$S, p2);
10854
10858
  const tabListContainerRef = React$1.useRef(null);
10855
10859
  const activeLineRef = React$1.useRef(null);
10856
10860
  const keyToIndexRecord = {};
@@ -11001,35 +11005,35 @@ const Tabs$1 = (p2) => {
11001
11005
  updateMask(true);
11002
11006
  }, []);
11003
11007
  return withNativeProps(props, React__default["default"].createElement("div", {
11004
- className: classPrefix$10
11008
+ className: classPrefix$12
11005
11009
  }, React__default["default"].createElement("div", {
11006
- className: `${classPrefix$10}-header`
11010
+ className: `${classPrefix$12}-header`
11007
11011
  }, React__default["default"].createElement(web.animated.div, {
11008
- className: classNames__default["default"](`${classPrefix$10}-header-mask`, `${classPrefix$10}-header-mask-left`),
11012
+ className: classNames__default["default"](`${classPrefix$12}-header-mask`, `${classPrefix$12}-header-mask-left`),
11009
11013
  style: {
11010
11014
  opacity: leftMaskOpacity
11011
11015
  }
11012
11016
  }), React__default["default"].createElement(web.animated.div, {
11013
- className: classNames__default["default"](`${classPrefix$10}-header-mask`, `${classPrefix$10}-header-mask-right`),
11017
+ className: classNames__default["default"](`${classPrefix$12}-header-mask`, `${classPrefix$12}-header-mask-right`),
11014
11018
  style: {
11015
11019
  opacity: rightMaskOpacity
11016
11020
  }
11017
11021
  }), React__default["default"].createElement(web.animated.div, {
11018
- className: `${classPrefix$10}-tab-list`,
11022
+ className: `${classPrefix$12}-tab-list`,
11019
11023
  ref: tabListContainerRef,
11020
11024
  scrollLeft,
11021
11025
  onScroll: updateMask
11022
11026
  }, React__default["default"].createElement(web.animated.div, {
11023
11027
  ref: activeLineRef,
11024
- className: `${classPrefix$10}-tab-line`,
11028
+ className: `${classPrefix$12}-tab-line`,
11025
11029
  style: {
11026
11030
  width: props.activeLineMode === "fixed" ? "var(--fixed-active-line-width, 30px)" : width,
11027
11031
  x
11028
11032
  }
11029
11033
  }), panes.map((pane) => withNativeProps(pane.props, React__default["default"].createElement("div", {
11030
11034
  key: pane.key,
11031
- className: classNames__default["default"](`${classPrefix$10}-tab-wrapper`, {
11032
- [`${classPrefix$10}-tab-wrapper-stretch`]: props.stretch
11035
+ className: classNames__default["default"](`${classPrefix$12}-tab-wrapper`, {
11036
+ [`${classPrefix$12}-tab-wrapper-stretch`]: props.stretch
11033
11037
  })
11034
11038
  }, React__default["default"].createElement("div", {
11035
11039
  onClick: () => {
@@ -11043,9 +11047,9 @@ const Tabs$1 = (p2) => {
11043
11047
  }
11044
11048
  setActiveKey(key.toString());
11045
11049
  },
11046
- className: classNames__default["default"](`${classPrefix$10}-tab`, {
11047
- [`${classPrefix$10}-tab-active`]: pane.key === activeKey,
11048
- [`${classPrefix$10}-tab-disabled`]: pane.props.disabled
11050
+ className: classNames__default["default"](`${classPrefix$12}-tab`, {
11051
+ [`${classPrefix$12}-tab-active`]: pane.key === activeKey,
11052
+ [`${classPrefix$12}-tab-disabled`]: pane.props.disabled
11049
11053
  })
11050
11054
  }, pane.props.title)))))), panes.map((pane) => {
11051
11055
  if (pane.props.children === void 0) {
@@ -11058,7 +11062,7 @@ const Tabs$1 = (p2) => {
11058
11062
  forceRender: pane.props.forceRender,
11059
11063
  destroyOnClose: pane.props.destroyOnClose
11060
11064
  }, React__default["default"].createElement("div", {
11061
- className: `${classPrefix$10}-content`,
11065
+ className: `${classPrefix$12}-content`,
11062
11066
  style: {
11063
11067
  display: active ? "block" : "none"
11064
11068
  }
@@ -11070,47 +11074,47 @@ var Tabs = attachPropertiesToComponent(Tabs$1, {
11070
11074
  });
11071
11075
  var checkList = "";
11072
11076
  var list = "";
11073
- const classPrefix$$ = `adm-list`;
11074
- const defaultProps$P = {
11077
+ const classPrefix$11 = `adm-list`;
11078
+ const defaultProps$R = {
11075
11079
  mode: "default"
11076
11080
  };
11077
11081
  const List$1 = (p2) => {
11078
- const props = mergeProps(defaultProps$P, p2);
11082
+ const props = mergeProps(defaultProps$R, p2);
11079
11083
  return withNativeProps(props, React__default["default"].createElement("div", {
11080
- className: classNames__default["default"](classPrefix$$, `${classPrefix$$}-${props.mode}`)
11084
+ className: classNames__default["default"](classPrefix$11, `${classPrefix$11}-${props.mode}`)
11081
11085
  }, props.header && React__default["default"].createElement("div", {
11082
- className: `${classPrefix$$}-header`
11086
+ className: `${classPrefix$11}-header`
11083
11087
  }, props.header), React__default["default"].createElement("div", {
11084
- className: `${classPrefix$$}-body`
11088
+ className: `${classPrefix$11}-body`
11085
11089
  }, React__default["default"].createElement("div", {
11086
- className: `${classPrefix$$}-body-inner`
11090
+ className: `${classPrefix$11}-body-inner`
11087
11091
  }, props.children))));
11088
11092
  };
11089
11093
  function isNodeWithContent(node) {
11090
11094
  return node !== void 0 && node !== null && node !== false;
11091
11095
  }
11092
- const classPrefix$_ = `adm-list-item`;
11096
+ const classPrefix$10 = `adm-list-item`;
11093
11097
  const ListItem = (props) => {
11094
11098
  var _a;
11095
11099
  const clickable = (_a = props.clickable) !== null && _a !== void 0 ? _a : !!props.onClick;
11096
11100
  const arrow = props.arrow === void 0 ? clickable : props.arrow;
11097
11101
  const content = React__default["default"].createElement("div", {
11098
- className: `${classPrefix$_}-content`
11102
+ className: `${classPrefix$10}-content`
11099
11103
  }, isNodeWithContent(props.prefix) && React__default["default"].createElement("div", {
11100
- className: `${classPrefix$_}-content-prefix`
11104
+ className: `${classPrefix$10}-content-prefix`
11101
11105
  }, props.prefix), React__default["default"].createElement("div", {
11102
- className: `${classPrefix$_}-content-main`
11106
+ className: `${classPrefix$10}-content-main`
11103
11107
  }, isNodeWithContent(props.title) && React__default["default"].createElement("div", {
11104
- className: `${classPrefix$_}-title`
11108
+ className: `${classPrefix$10}-title`
11105
11109
  }, props.title), props.children, isNodeWithContent(props.description) && React__default["default"].createElement("div", {
11106
- className: `${classPrefix$_}-description`
11110
+ className: `${classPrefix$10}-description`
11107
11111
  }, props.description)), isNodeWithContent(props.extra) && React__default["default"].createElement("div", {
11108
- className: `${classPrefix$_}-content-extra`
11112
+ className: `${classPrefix$10}-content-extra`
11109
11113
  }, props.extra), isNodeWithContent(arrow) && React__default["default"].createElement("div", {
11110
- className: `${classPrefix$_}-content-arrow`
11114
+ className: `${classPrefix$10}-content-arrow`
11111
11115
  }, arrow === true ? React__default["default"].createElement(antdMobileIcons.RightOutline, null) : arrow));
11112
11116
  return withNativeProps(props, React__default["default"].createElement(clickable ? "a" : "div", {
11113
- className: classNames__default["default"](`${classPrefix$_}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$_}-disabled`),
11117
+ className: classNames__default["default"](`${classPrefix$10}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$10}-disabled`),
11114
11118
  onClick: props.disabled ? void 0 : props.onClick
11115
11119
  }, content));
11116
11120
  };
@@ -11118,14 +11122,14 @@ var List = attachPropertiesToComponent(List$1, {
11118
11122
  Item: ListItem
11119
11123
  });
11120
11124
  const CheckListContext = React$1.createContext(null);
11121
- const classPrefix$Z = "adm-check-list";
11122
- const defaultProps$O = {
11125
+ const classPrefix$$ = "adm-check-list";
11126
+ const defaultProps$Q = {
11123
11127
  multiple: false,
11124
11128
  defaultValue: [],
11125
11129
  activeIcon: React__default["default"].createElement(antdMobileIcons.CheckOutline, null)
11126
11130
  };
11127
11131
  const CheckList$1 = (p2) => {
11128
- const props = mergeProps(defaultProps$O, p2);
11132
+ const props = mergeProps(defaultProps$Q, p2);
11129
11133
  const [value, setValue] = usePropsValue(props);
11130
11134
  function check(val) {
11131
11135
  if (props.multiple) {
@@ -11153,10 +11157,10 @@ const CheckList$1 = (p2) => {
11153
11157
  }
11154
11158
  }, withNativeProps(props, React__default["default"].createElement(List, {
11155
11159
  mode: props.mode,
11156
- className: classPrefix$Z
11160
+ className: classPrefix$$
11157
11161
  }, props.children)));
11158
11162
  };
11159
- const classPrefix$Y = `adm-check-list-item`;
11163
+ const classPrefix$_ = `adm-check-list-item`;
11160
11164
  const CheckListItem = (props) => {
11161
11165
  const context = React$1.useContext(CheckListContext);
11162
11166
  if (context === null) {
@@ -11165,11 +11169,11 @@ const CheckListItem = (props) => {
11165
11169
  const active = context.value.includes(props.value);
11166
11170
  const readOnly = props.readOnly || context.readOnly;
11167
11171
  const extra = React__default["default"].createElement("div", {
11168
- className: `${classPrefix$Y}-extra`
11172
+ className: `${classPrefix$_}-extra`
11169
11173
  }, active ? context.activeIcon : null);
11170
11174
  return withNativeProps(props, React__default["default"].createElement(List.Item, {
11171
11175
  title: props.title,
11172
- className: classNames__default["default"](classPrefix$Y, readOnly && `${classPrefix$Y}-readonly`, active && `${classPrefix$Y}-active`),
11176
+ className: classNames__default["default"](classPrefix$_, readOnly && `${classPrefix$_}-readonly`, active && `${classPrefix$_}-active`),
11173
11177
  description: props.description,
11174
11178
  prefix: props.prefix,
11175
11179
  onClick: (e2) => {
@@ -11232,16 +11236,11 @@ function useCascaderValueExtend(options) {
11232
11236
  }, [options]);
11233
11237
  const generateIsLeaf = React$1.useMemo(() => {
11234
11238
  return memoize_1((val) => {
11235
- var _a;
11236
- let isLeaf = false;
11237
- for (const v of val) {
11238
- const target = options.find((option) => option.value === v);
11239
- if (!target) {
11240
- break;
11241
- }
11242
- isLeaf = ((_a = target.children) === null || _a === void 0 ? void 0 : _a.length) === val.length;
11243
- }
11244
- return isLeaf;
11239
+ const children = val.reduce((currentOptions, v) => {
11240
+ var _a;
11241
+ return ((_a = currentOptions.find((option) => option.value === v)) === null || _a === void 0 ? void 0 : _a.children) || [];
11242
+ }, options);
11243
+ return children.length === 0;
11245
11244
  }, (val) => JSON.stringify(val));
11246
11245
  }, [options]);
11247
11246
  function generateValueExtend(val) {
@@ -11265,18 +11264,18 @@ function generateIntArray(from, to) {
11265
11264
  }
11266
11265
  return array;
11267
11266
  }
11268
- const classPrefix$X = "adm-skeleton";
11267
+ const classPrefix$Z = "adm-skeleton";
11269
11268
  const Skeleton$1 = (props) => {
11270
11269
  return withNativeProps(props, React__default["default"].createElement("div", {
11271
- className: classNames__default["default"](classPrefix$X, {
11272
- [`${classPrefix$X}-animated`]: props.animated
11270
+ className: classNames__default["default"](classPrefix$Z, {
11271
+ [`${classPrefix$Z}-animated`]: props.animated
11273
11272
  })
11274
11273
  }));
11275
11274
  };
11276
11275
  const SkeletonTitle = (props) => {
11277
11276
  return withNativeProps(props, React__default["default"].createElement(Skeleton$1, {
11278
11277
  animated: props.animated,
11279
- className: `${classPrefix$X}-title`
11278
+ className: `${classPrefix$Z}-title`
11280
11279
  }));
11281
11280
  };
11282
11281
  const defaultSkeletonParagraphProps = {
@@ -11286,11 +11285,11 @@ const SkeletonParagraph = (p2) => {
11286
11285
  const props = mergeProps(defaultSkeletonParagraphProps, p2);
11287
11286
  const keys2 = generateIntArray(1, props.lineCount);
11288
11287
  const node = React__default["default"].createElement("div", {
11289
- className: `${classPrefix$X}-paragraph`
11288
+ className: `${classPrefix$Z}-paragraph`
11290
11289
  }, keys2.map((key) => React__default["default"].createElement(Skeleton$1, {
11291
11290
  key,
11292
11291
  animated: props.animated,
11293
- className: `${classPrefix$X}-paragraph-line`
11292
+ className: `${classPrefix$Z}-paragraph-line`
11294
11293
  })));
11295
11294
  return withNativeProps(props, node);
11296
11295
  };
@@ -11298,15 +11297,15 @@ var Skeleton = attachPropertiesToComponent(Skeleton$1, {
11298
11297
  Title: SkeletonTitle,
11299
11298
  Paragraph: SkeletonParagraph
11300
11299
  });
11301
- const classPrefix$W = `adm-cascader-view`;
11302
- const defaultProps$N = {
11300
+ const classPrefix$Y = `adm-cascader-view`;
11301
+ const defaultProps$P = {
11303
11302
  defaultValue: []
11304
11303
  };
11305
11304
  const CascaderView$1 = (p2) => {
11306
11305
  const {
11307
11306
  locale
11308
11307
  } = useConfig();
11309
- const props = mergeProps(defaultProps$N, {
11308
+ const props = mergeProps(defaultProps$P, {
11310
11309
  placeholder: locale.Cascader.placeholder
11311
11310
  }, p2);
11312
11311
  const [value, setValue] = usePropsValue(Object.assign(Object.assign({}, props), {
@@ -11315,7 +11314,7 @@ const CascaderView$1 = (p2) => {
11315
11314
  (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val, generateValueExtend(val));
11316
11315
  }
11317
11316
  }));
11318
- const [tabActiveKey, setTabActiveKey] = React$1.useState(0);
11317
+ const [tabActiveIndex, setTabActiveIndex] = React$1.useState(0);
11319
11318
  const generateValueExtend = useCascaderValueExtend(props.options);
11320
11319
  const levels = React$1.useMemo(() => {
11321
11320
  const ret = [];
@@ -11342,14 +11341,14 @@ const CascaderView$1 = (p2) => {
11342
11341
  return ret;
11343
11342
  }, [value, props.options]);
11344
11343
  React$1.useEffect(() => {
11345
- setTabActiveKey(levels.length - 1);
11344
+ setTabActiveIndex(levels.length - 1);
11346
11345
  }, [value]);
11347
11346
  React$1.useEffect(() => {
11348
11347
  const max = levels.length - 1;
11349
- if (tabActiveKey > max) {
11350
- setTabActiveKey(max);
11348
+ if (tabActiveIndex > max) {
11349
+ setTabActiveIndex(max);
11351
11350
  }
11352
- }, [tabActiveKey, levels]);
11351
+ }, [tabActiveIndex, levels]);
11353
11352
  const onItemSelect = (selectValue, depth) => {
11354
11353
  const next = value.slice(0, depth);
11355
11354
  if (selectValue !== void 0) {
@@ -11358,35 +11357,40 @@ const CascaderView$1 = (p2) => {
11358
11357
  setValue(next);
11359
11358
  };
11360
11359
  return withNativeProps(props, React__default["default"].createElement("div", {
11361
- className: classPrefix$W
11360
+ className: classPrefix$Y
11362
11361
  }, React__default["default"].createElement(Tabs, {
11363
- activeKey: tabActiveKey.toString(),
11364
- onChange: (key) => setTabActiveKey(parseInt(key)),
11362
+ activeKey: tabActiveIndex.toString(),
11363
+ onChange: (key) => {
11364
+ var _a;
11365
+ const activeIndex = parseInt(key);
11366
+ setTabActiveIndex(activeIndex);
11367
+ (_a = props.onTabsChange) === null || _a === void 0 ? void 0 : _a.call(props, activeIndex);
11368
+ },
11365
11369
  stretch: false,
11366
- className: `${classPrefix$W}-tabs`
11370
+ className: `${classPrefix$Y}-tabs`
11367
11371
  }, levels.map((level, index2) => {
11368
11372
  const selected = level.selected;
11369
11373
  return React__default["default"].createElement(Tabs.Tab, {
11370
- key: index2,
11374
+ key: index2.toString(),
11371
11375
  title: React__default["default"].createElement("div", {
11372
- className: `${classPrefix$W}-header-title`
11376
+ className: `${classPrefix$Y}-header-title`
11373
11377
  }, selected ? selected.label : props.placeholder),
11374
11378
  forceRender: true
11375
11379
  }, React__default["default"].createElement("div", {
11376
- className: `${classPrefix$W}-content`
11380
+ className: `${classPrefix$Y}-content`
11377
11381
  }, level.options === optionSkeleton ? React__default["default"].createElement("div", {
11378
- className: `${classPrefix$W}-skeleton`
11382
+ className: `${classPrefix$Y}-skeleton`
11379
11383
  }, React__default["default"].createElement(Skeleton, {
11380
- className: `${classPrefix$W}-skeleton-line-1`,
11384
+ className: `${classPrefix$Y}-skeleton-line-1`,
11381
11385
  animated: true
11382
11386
  }), React__default["default"].createElement(Skeleton, {
11383
- className: `${classPrefix$W}-skeleton-line-2`,
11387
+ className: `${classPrefix$Y}-skeleton-line-2`,
11384
11388
  animated: true
11385
11389
  }), React__default["default"].createElement(Skeleton, {
11386
- className: `${classPrefix$W}-skeleton-line-3`,
11390
+ className: `${classPrefix$Y}-skeleton-line-3`,
11387
11391
  animated: true
11388
11392
  }), React__default["default"].createElement(Skeleton, {
11389
- className: `${classPrefix$W}-skeleton-line-4`,
11393
+ className: `${classPrefix$Y}-skeleton-line-4`,
11390
11394
  animated: true
11391
11395
  })) : React__default["default"].createElement(CheckList, {
11392
11396
  value: [value[index2]],
@@ -11397,8 +11401,8 @@ const CascaderView$1 = (p2) => {
11397
11401
  value: option.value,
11398
11402
  key: option.value,
11399
11403
  disabled: option.disabled,
11400
- className: classNames__default["default"](`${classPrefix$W}-item`, {
11401
- [`${classPrefix$W}-item-active`]: active
11404
+ className: classNames__default["default"](`${classPrefix$Y}-item`, {
11405
+ [`${classPrefix$Y}-item-active`]: active
11402
11406
  })
11403
11407
  }, option.label);
11404
11408
  }))));
@@ -11407,8 +11411,8 @@ const CascaderView$1 = (p2) => {
11407
11411
  var CascaderView = attachPropertiesToComponent(CascaderView$1, {
11408
11412
  optionSkeleton
11409
11413
  });
11410
- const classPrefix$V = `adm-cascader`;
11411
- const defaultProps$M = {
11414
+ const classPrefix$X = `adm-cascader`;
11415
+ const defaultProps$O = {
11412
11416
  defaultValue: []
11413
11417
  };
11414
11418
  const Cascader = (p2) => {
@@ -11416,7 +11420,7 @@ const Cascader = (p2) => {
11416
11420
  const {
11417
11421
  locale
11418
11422
  } = useConfig();
11419
- const props = mergeProps(defaultProps$M, {
11423
+ const props = mergeProps(defaultProps$O, {
11420
11424
  confirmText: locale.common.confirm,
11421
11425
  cancelText: locale.common.cancel,
11422
11426
  placeholder: locale.Cascader.placeholder
@@ -11440,27 +11444,27 @@ const Cascader = (p2) => {
11440
11444
  }
11441
11445
  }, [value]);
11442
11446
  const cascaderElement = withNativeProps(props, React__default["default"].createElement("div", {
11443
- className: classPrefix$V
11447
+ className: classPrefix$X
11444
11448
  }, React__default["default"].createElement("div", {
11445
- className: `${classPrefix$V}-header`
11449
+ className: `${classPrefix$X}-header`
11446
11450
  }, React__default["default"].createElement("a", {
11447
- className: `${classPrefix$V}-header-button`,
11451
+ className: `${classPrefix$X}-header-button`,
11448
11452
  onClick: () => {
11449
11453
  var _a2, _b;
11450
11454
  (_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
11451
11455
  (_b = props.onClose) === null || _b === void 0 ? void 0 : _b.call(props);
11452
11456
  }
11453
11457
  }, props.cancelText), React__default["default"].createElement("div", {
11454
- className: `${classPrefix$V}-header-title`
11458
+ className: `${classPrefix$X}-header-title`
11455
11459
  }, props.title), React__default["default"].createElement("a", {
11456
- className: `${classPrefix$V}-header-button`,
11460
+ className: `${classPrefix$X}-header-button`,
11457
11461
  onClick: () => {
11458
11462
  var _a2;
11459
11463
  setValue(innerValue);
11460
11464
  (_a2 = props.onClose) === null || _a2 === void 0 ? void 0 : _a2.call(props);
11461
11465
  }
11462
11466
  }, props.confirmText)), React__default["default"].createElement("div", {
11463
- className: `${classPrefix$V}-body`
11467
+ className: `${classPrefix$X}-body`
11464
11468
  }, React__default["default"].createElement(CascaderView, Object.assign({}, props, {
11465
11469
  value: innerValue,
11466
11470
  onChange: (val, ext) => {
@@ -11523,14 +11527,95 @@ var index$e = attachPropertiesToComponent(Cascader, {
11523
11527
  prompt: prompt$1,
11524
11528
  optionSkeleton
11525
11529
  });
11530
+ var centerPopup = "";
11531
+ function useInnerVisible(outerVisible) {
11532
+ const [innerVisible, setInnerVisible] = React$1.useState(outerVisible);
11533
+ ahooks.useIsomorphicLayoutEffect(() => {
11534
+ setInnerVisible(outerVisible);
11535
+ }, [outerVisible]);
11536
+ return innerVisible;
11537
+ }
11538
+ const defaultProps$N = {
11539
+ destroyOnClose: false,
11540
+ disableBodyScroll: true,
11541
+ forceRender: false,
11542
+ getContainer: null,
11543
+ mask: true,
11544
+ showCloseButton: false,
11545
+ stopPropagation: ["click"],
11546
+ visible: false
11547
+ };
11548
+ const CenterPopup = (p2) => {
11549
+ const props = mergeProps(defaultProps$N, p2);
11550
+ const unmountedRef = ahooks.useUnmountedRef();
11551
+ const style = web.useSpring({
11552
+ scale: props.visible ? 1 : 0.8,
11553
+ opacity: props.visible ? 1 : 0,
11554
+ config: {
11555
+ mass: 1.2,
11556
+ tension: 200,
11557
+ friction: 25,
11558
+ clamp: true
11559
+ },
11560
+ onRest: () => {
11561
+ var _a, _b;
11562
+ if (unmountedRef.current)
11563
+ return;
11564
+ setActive(props.visible);
11565
+ if (props.visible) {
11566
+ (_a = props.afterShow) === null || _a === void 0 ? void 0 : _a.call(props);
11567
+ } else {
11568
+ (_b = props.afterClose) === null || _b === void 0 ? void 0 : _b.call(props);
11569
+ }
11570
+ }
11571
+ });
11572
+ const [active, setActive] = React$1.useState(props.visible);
11573
+ ahooks.useIsomorphicLayoutEffect(() => {
11574
+ if (props.visible) {
11575
+ setActive(true);
11576
+ }
11577
+ }, [props.visible]);
11578
+ const ref = React$1.useRef(null);
11579
+ useLockScroll(ref, props.disableBodyScroll && active);
11580
+ const maskVisible = useInnerVisible(active && props.visible);
11581
+ const body = React__default["default"].createElement("div", {
11582
+ className: classNames__default["default"]("adm-center-popup-body", props.bodyClassName),
11583
+ style: props.bodyStyle
11584
+ }, props.children);
11585
+ const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement("div", {
11586
+ className: "adm-center-popup",
11587
+ style: {
11588
+ display: active ? void 0 : "none",
11589
+ pointerEvents: active ? void 0 : "none"
11590
+ }
11591
+ }, props.mask && React__default["default"].createElement(Mask, {
11592
+ visible: maskVisible,
11593
+ forceRender: props.forceRender,
11594
+ destroyOnClose: props.destroyOnClose,
11595
+ onMaskClick: props.onMaskClick,
11596
+ style: props.maskStyle,
11597
+ className: classNames__default["default"]("adm-center-popup-mask", props.maskClassName),
11598
+ disableBodyScroll: false
11599
+ }), React__default["default"].createElement("div", {
11600
+ className: "adm-center-popup-wrap"
11601
+ }, React__default["default"].createElement(web.animated.div, {
11602
+ style,
11603
+ ref
11604
+ }, body)))));
11605
+ return React__default["default"].createElement(ShouldRender, {
11606
+ active,
11607
+ forceRender: props.forceRender,
11608
+ destroyOnClose: props.destroyOnClose
11609
+ }, renderToContainer(props.getContainer, node));
11610
+ };
11526
11611
  var checkbox = "";
11527
11612
  const CheckboxGroupContext = React$1.createContext(null);
11528
- const defaultProps$L = {
11613
+ const defaultProps$M = {
11529
11614
  disabled: false,
11530
11615
  defaultValue: []
11531
11616
  };
11532
11617
  const Group$1 = (p2) => {
11533
- const props = mergeProps(defaultProps$L, p2);
11618
+ const props = mergeProps(defaultProps$M, p2);
11534
11619
  const [value, setValue] = usePropsValue(props);
11535
11620
  return React__default["default"].createElement(CheckboxGroupContext.Provider, {
11536
11621
  value: {
@@ -11589,14 +11674,14 @@ const NativeInput = (props) => {
11589
11674
  id: props.id
11590
11675
  });
11591
11676
  };
11592
- const classPrefix$U = `adm-checkbox`;
11593
- const defaultProps$K = {
11677
+ const classPrefix$W = `adm-checkbox`;
11678
+ const defaultProps$L = {
11594
11679
  defaultChecked: false,
11595
11680
  indeterminate: false
11596
11681
  };
11597
11682
  const Checkbox$1 = (p2) => {
11598
11683
  const groupContext = React$1.useContext(CheckboxGroupContext);
11599
- const props = mergeProps(defaultProps$K, p2);
11684
+ const props = mergeProps(defaultProps$L, p2);
11600
11685
  let [checked, setChecked] = usePropsValue({
11601
11686
  value: props.checked,
11602
11687
  defaultValue: props.defaultChecked,
@@ -11622,19 +11707,19 @@ const Checkbox$1 = (p2) => {
11622
11707
  const renderIcon = () => {
11623
11708
  if (props.icon) {
11624
11709
  return React__default["default"].createElement("div", {
11625
- className: `${classPrefix$U}-custom-icon`
11710
+ className: `${classPrefix$W}-custom-icon`
11626
11711
  }, props.icon(checked, props.indeterminate));
11627
11712
  }
11628
11713
  return React__default["default"].createElement("div", {
11629
- className: `${classPrefix$U}-icon`
11714
+ className: `${classPrefix$W}-icon`
11630
11715
  }, props.indeterminate ? React__default["default"].createElement(IndeterminateIcon, null) : checked && React__default["default"].createElement(CheckIcon, null));
11631
11716
  };
11632
11717
  return withNativeProps(props, React__default["default"].createElement("label", {
11633
- className: classNames__default["default"](classPrefix$U, {
11634
- [`${classPrefix$U}-checked`]: checked && !props.indeterminate,
11635
- [`${classPrefix$U}-indeterminate`]: props.indeterminate,
11636
- [`${classPrefix$U}-disabled`]: disabled,
11637
- [`${classPrefix$U}-block`]: props.block
11718
+ className: classNames__default["default"](classPrefix$W, {
11719
+ [`${classPrefix$W}-checked`]: checked && !props.indeterminate,
11720
+ [`${classPrefix$W}-indeterminate`]: props.indeterminate,
11721
+ [`${classPrefix$W}-disabled`]: disabled,
11722
+ [`${classPrefix$W}-block`]: props.block
11638
11723
  })
11639
11724
  }, React__default["default"].createElement(NativeInput, {
11640
11725
  type: "checkbox",
@@ -11643,14 +11728,14 @@ const Checkbox$1 = (p2) => {
11643
11728
  disabled,
11644
11729
  id: props.id
11645
11730
  }), renderIcon(), props.children && React__default["default"].createElement("div", {
11646
- className: `${classPrefix$U}-content`
11731
+ className: `${classPrefix$W}-content`
11647
11732
  }, props.children)));
11648
11733
  };
11649
11734
  var Checkbox = attachPropertiesToComponent(Checkbox$1, {
11650
11735
  Group: Group$1
11651
11736
  });
11652
11737
  var collapse = "";
11653
- const classPrefix$T = `adm-collapse`;
11738
+ const classPrefix$V = `adm-collapse`;
11654
11739
  const CollapsePanel = () => {
11655
11740
  return null;
11656
11741
  };
@@ -11704,7 +11789,7 @@ const CollapsePanelContent = (props) => {
11704
11789
  }
11705
11790
  }, [visible]);
11706
11791
  return React__default["default"].createElement(web.animated.div, {
11707
- className: `${classPrefix$T}-panel-content`,
11792
+ className: `${classPrefix$V}-panel-content`,
11708
11793
  style: {
11709
11794
  height: height.to((v) => {
11710
11795
  if (height.idle && visible) {
@@ -11715,7 +11800,7 @@ const CollapsePanelContent = (props) => {
11715
11800
  })
11716
11801
  }
11717
11802
  }, React__default["default"].createElement("div", {
11718
- className: `${classPrefix$T}-panel-content-inner`,
11803
+ className: `${classPrefix$V}-panel-content-inner`,
11719
11804
  ref: innerRef
11720
11805
  }, React__default["default"].createElement(List.Item, null, shouldRender && props.children)));
11721
11806
  };
@@ -11744,7 +11829,7 @@ const Collapse = (props) => {
11744
11829
  });
11745
11830
  const activeKeyList = activeKey === null ? [] : Array.isArray(activeKey) ? activeKey : [activeKey];
11746
11831
  return withNativeProps(props, React__default["default"].createElement("div", {
11747
- className: classPrefix$T
11832
+ className: classPrefix$V
11748
11833
  }, React__default["default"].createElement(List, null, panels.map((panel) => {
11749
11834
  const key = panel.key;
11750
11835
  const active = activeKeyList.includes(key);
@@ -11774,15 +11859,15 @@ const Collapse = (props) => {
11774
11859
  arrow = panel.props.arrow;
11775
11860
  }
11776
11861
  return typeof arrow === "function" ? arrow(active) : React__default["default"].createElement("div", {
11777
- className: classNames__default["default"](`${classPrefix$T}-arrow`, {
11778
- [`${classPrefix$T}-arrow-active`]: active
11862
+ className: classNames__default["default"](`${classPrefix$V}-arrow`, {
11863
+ [`${classPrefix$V}-arrow-active`]: active
11779
11864
  })
11780
11865
  }, arrow);
11781
11866
  };
11782
11867
  return React__default["default"].createElement(React__default["default"].Fragment, {
11783
11868
  key
11784
11869
  }, withNativeProps(panel.props, React__default["default"].createElement(List.Item, {
11785
- className: `${classPrefix$T}-panel-header`,
11870
+ className: `${classPrefix$V}-panel-header`,
11786
11871
  onClick: handleClick,
11787
11872
  disabled: panel.props.disabled,
11788
11873
  arrow: renderArrow()
@@ -12110,7 +12195,7 @@ const defaultRenderLabel = (precision, data) => {
12110
12195
  }
12111
12196
  };
12112
12197
  const thisYear$1 = new Date().getFullYear();
12113
- const defaultProps$J = {
12198
+ const defaultProps$K = {
12114
12199
  min: new Date(new Date().setFullYear(thisYear$1 - 10)),
12115
12200
  max: new Date(new Date().setFullYear(thisYear$1 + 10)),
12116
12201
  precision: "day",
@@ -12118,7 +12203,7 @@ const defaultProps$J = {
12118
12203
  defaultValue: null
12119
12204
  };
12120
12205
  const DatePicker = React$1.forwardRef((p2, ref) => {
12121
- const props = mergeProps(defaultProps$J, p2);
12206
+ const props = mergeProps(defaultProps$K, p2);
12122
12207
  const [value, setValue] = usePropsValue({
12123
12208
  value: props.value,
12124
12209
  defaultValue: props.defaultValue,
@@ -12202,7 +12287,7 @@ var index$c = attachPropertiesToComponent(DatePicker, {
12202
12287
  prompt
12203
12288
  });
12204
12289
  const thisYear = new Date().getFullYear();
12205
- const defaultProps$I = {
12290
+ const defaultProps$J = {
12206
12291
  min: new Date(new Date().setFullYear(thisYear - 10)),
12207
12292
  max: new Date(new Date().setFullYear(thisYear + 10)),
12208
12293
  precision: "day",
@@ -12210,7 +12295,7 @@ const defaultProps$I = {
12210
12295
  };
12211
12296
  const DatePickerView = (p2) => {
12212
12297
  var _a;
12213
- const props = mergeProps(defaultProps$I, p2);
12298
+ const props = mergeProps(defaultProps$J, p2);
12214
12299
  const [value, setValue] = usePropsValue({
12215
12300
  value: props.value,
12216
12301
  defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
@@ -12282,20 +12367,20 @@ const BrokenImageIcon = () => React__default["default"].createElement("svg", {
12282
12367
  fill: "#DBDBDB",
12283
12368
  fillRule: "nonzero"
12284
12369
  }));
12285
- const classPrefix$S = `adm-image`;
12286
- const defaultProps$H = {
12370
+ const classPrefix$U = `adm-image`;
12371
+ const defaultProps$I = {
12287
12372
  fit: "fill",
12288
12373
  placeholder: React__default["default"].createElement("div", {
12289
- className: `${classPrefix$S}-tip`
12374
+ className: `${classPrefix$U}-tip`
12290
12375
  }, React__default["default"].createElement(ImageIcon, null)),
12291
12376
  fallback: React__default["default"].createElement("div", {
12292
- className: `${classPrefix$S}-tip`
12377
+ className: `${classPrefix$U}-tip`
12293
12378
  }, React__default["default"].createElement(BrokenImageIcon, null)),
12294
12379
  lazy: false,
12295
12380
  draggable: false
12296
12381
  };
12297
12382
  const Image$1 = stagedComponents.staged((p2) => {
12298
- const props = mergeProps(defaultProps$H, p2);
12383
+ const props = mergeProps(defaultProps$I, p2);
12299
12384
  const [loaded, setLoaded] = React$1.useState(false);
12300
12385
  const [failed, setFailed] = React$1.useState(false);
12301
12386
  const ref = React$1.useRef(null);
@@ -12313,7 +12398,7 @@ const Image$1 = stagedComponents.staged((p2) => {
12313
12398
  return React__default["default"].createElement(React__default["default"].Fragment, null, props.fallback);
12314
12399
  }
12315
12400
  const img = React__default["default"].createElement("img", {
12316
- className: `${classPrefix$S}-img`,
12401
+ className: `${classPrefix$U}-img`,
12317
12402
  src,
12318
12403
  alt: props.alt,
12319
12404
  onClick: props.onClick,
@@ -12345,13 +12430,15 @@ const Image$1 = stagedComponents.staged((p2) => {
12345
12430
  const style = {};
12346
12431
  if (props.width) {
12347
12432
  style["--width"] = toCSSLength(props.width);
12433
+ style["width"] = toCSSLength(props.width);
12348
12434
  }
12349
12435
  if (props.height) {
12350
12436
  style["--height"] = toCSSLength(props.height);
12437
+ style["height"] = toCSSLength(props.height);
12351
12438
  }
12352
12439
  return withNativeProps(props, React__default["default"].createElement("div", {
12353
12440
  ref,
12354
- className: classPrefix$S,
12441
+ className: classPrefix$U,
12355
12442
  style
12356
12443
  }, props.lazy && !initialized && React__default["default"].createElement(LazyDetector, {
12357
12444
  onActive: () => {
@@ -12359,59 +12446,14 @@ const Image$1 = stagedComponents.staged((p2) => {
12359
12446
  }
12360
12447
  }), renderInner()));
12361
12448
  });
12362
- function useInnerVisible(outerVisible) {
12363
- const [innerVisible, setInnerVisible] = React$1.useState(outerVisible);
12364
- ahooks.useIsomorphicLayoutEffect(() => {
12365
- setInnerVisible(outerVisible);
12366
- }, [outerVisible]);
12367
- return innerVisible;
12368
- }
12369
- const defaultProps$G = {
12370
- visible: false,
12449
+ const defaultProps$H = {
12371
12450
  actions: [],
12372
12451
  closeOnAction: false,
12373
- closeOnMaskClick: false,
12374
- stopPropagation: ["click"],
12375
- getContainer: null,
12376
- disableBodyScroll: true,
12377
- destroyOnClose: false,
12378
- forceRender: false
12452
+ closeOnMaskClick: false
12379
12453
  };
12380
12454
  const Dialog = (p2) => {
12381
- const props = mergeProps(defaultProps$G, p2);
12382
- const unmountedRef = ahooks.useUnmountedRef();
12383
- const style = web.useSpring({
12384
- scale: props.visible ? 1 : 0.8,
12385
- opacity: props.visible ? 1 : 0,
12386
- config: {
12387
- mass: 1.2,
12388
- tension: 200,
12389
- friction: 25,
12390
- clamp: true
12391
- },
12392
- onRest: () => {
12393
- var _a, _b;
12394
- if (unmountedRef.current)
12395
- return;
12396
- setActive(props.visible);
12397
- if (props.visible) {
12398
- (_a = props.afterShow) === null || _a === void 0 ? void 0 : _a.call(props);
12399
- } else {
12400
- (_b = props.afterClose) === null || _b === void 0 ? void 0 : _b.call(props);
12401
- }
12402
- }
12403
- });
12404
- const [active, setActive] = React$1.useState(props.visible);
12405
- ahooks.useIsomorphicLayoutEffect(() => {
12406
- if (props.visible) {
12407
- setActive(true);
12408
- }
12409
- }, [props.visible]);
12410
- const maskVisible = useInnerVisible(active && props.visible);
12411
- const body = React__default["default"].createElement("div", {
12412
- className: classNames__default["default"](cls$1("body"), props.image && cls$1("with-image"), props.bodyClassName),
12413
- style: props.bodyStyle
12414
- }, !!props.image && React__default["default"].createElement("div", {
12455
+ const props = mergeProps(defaultProps$H, p2);
12456
+ const element = React__default["default"].createElement(React__default["default"].Fragment, null, !!props.image && React__default["default"].createElement("div", {
12415
12457
  className: cls$1("image-container")
12416
12458
  }, React__default["default"].createElement(Image$1, {
12417
12459
  src: props.image,
@@ -12442,28 +12484,24 @@ const Dialog = (p2) => {
12442
12484
  })
12443
12485
  })));
12444
12486
  })));
12445
- const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement("div", {
12446
- className: cls$1(),
12447
- style: {
12448
- display: active ? void 0 : "none",
12449
- pointerEvents: active ? void 0 : "none"
12450
- }
12451
- }, React__default["default"].createElement(Mask, {
12452
- visible: maskVisible,
12453
- onMaskClick: props.closeOnMaskClick ? props.onClose : void 0,
12454
- style: props.maskStyle,
12455
- className: classNames__default["default"](cls$1("mask"), props.maskClassName),
12456
- disableBodyScroll: props.disableBodyScroll
12457
- }), React__default["default"].createElement("div", {
12458
- className: cls$1("wrap")
12459
- }, React__default["default"].createElement(web.animated.div, {
12460
- style
12461
- }, body)))));
12462
- return React__default["default"].createElement(ShouldRender, {
12463
- active,
12464
- forceRender: props.forceRender,
12465
- destroyOnClose: props.destroyOnClose
12466
- }, renderToContainer(props.getContainer, node));
12487
+ return React__default["default"].createElement(CenterPopup, {
12488
+ afterClose: props.afterClose,
12489
+ afterShow: props.afterShow,
12490
+ onMaskClick: props.closeOnMaskClick ? () => {
12491
+ var _a;
12492
+ (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
12493
+ } : void 0,
12494
+ visible: props.visible,
12495
+ getContainer: props.getContainer,
12496
+ bodyStyle: props.bodyStyle,
12497
+ bodyClassName: classNames__default["default"](cls$1("body"), props.image && cls$1("with-image"), props.bodyClassName),
12498
+ maskStyle: props.maskStyle,
12499
+ maskClassName: props.maskClassName,
12500
+ stopPropagation: props.stopPropagation,
12501
+ disableBodyScroll: props.disableBodyScroll,
12502
+ destroyOnClose: props.destroyOnClose,
12503
+ forceRender: props.forceRender
12504
+ }, element);
12467
12505
  };
12468
12506
  function cls$1(name = "") {
12469
12507
  return "adm-dialog" + (name && "-") + name;
@@ -12501,7 +12539,7 @@ function alert$1(p2) {
12501
12539
  }));
12502
12540
  });
12503
12541
  }
12504
- const defaultProps$F = {
12542
+ const defaultProps$G = {
12505
12543
  confirmText: "\u786E\u8BA4",
12506
12544
  cancelText: "\u53D6\u6D88"
12507
12545
  };
@@ -12509,7 +12547,7 @@ function confirm$1(p2) {
12509
12547
  const {
12510
12548
  locale
12511
12549
  } = getDefaultConfig();
12512
- const props = mergeProps(defaultProps$F, {
12550
+ const props = mergeProps(defaultProps$G, {
12513
12551
  confirmText: locale.common.confirm,
12514
12552
  cancelText: locale.common.cancel
12515
12553
  }, p2);
@@ -12554,37 +12592,37 @@ var index$b = attachPropertiesToComponent(Dialog, {
12554
12592
  clear: clear$2
12555
12593
  });
12556
12594
  var divider = "";
12557
- const classPrefix$R = `adm-divider`;
12558
- const defaultProps$E = {
12595
+ const classPrefix$T = `adm-divider`;
12596
+ const defaultProps$F = {
12559
12597
  contentPosition: "center",
12560
12598
  direction: "horizontal"
12561
12599
  };
12562
12600
  const Divider = (p2) => {
12563
- const props = mergeProps(defaultProps$E, p2);
12601
+ const props = mergeProps(defaultProps$F, p2);
12564
12602
  return withNativeProps(props, React__default["default"].createElement("div", {
12565
- className: classNames__default["default"](classPrefix$R, `${classPrefix$R}-${props.direction}`, `${classPrefix$R}-${props.contentPosition}`)
12603
+ className: classNames__default["default"](classPrefix$T, `${classPrefix$T}-${props.direction}`, `${classPrefix$T}-${props.contentPosition}`)
12566
12604
  }, props.children && React__default["default"].createElement("div", {
12567
- className: `${classPrefix$R}-content`
12605
+ className: `${classPrefix$T}-content`
12568
12606
  }, props.children)));
12569
12607
  };
12570
12608
  var dropdown = "";
12571
- const classPrefix$Q = `adm-dropdown-item`;
12609
+ const classPrefix$S = `adm-dropdown-item`;
12572
12610
  const Item = (props) => {
12573
12611
  var _a;
12574
- const cls2 = classNames__default["default"](classPrefix$Q, {
12575
- [`${classPrefix$Q}-active`]: props.active,
12576
- [`${classPrefix$Q}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
12612
+ const cls2 = classNames__default["default"](classPrefix$S, {
12613
+ [`${classPrefix$S}-active`]: props.active,
12614
+ [`${classPrefix$S}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
12577
12615
  });
12578
12616
  return withNativeProps(props, React__default["default"].createElement("div", {
12579
12617
  className: cls2,
12580
12618
  onClick: props.onClick
12581
12619
  }, React__default["default"].createElement("div", {
12582
- className: `${classPrefix$Q}-title`
12620
+ className: `${classPrefix$S}-title`
12583
12621
  }, React__default["default"].createElement("span", {
12584
- className: `${classPrefix$Q}-title-text`
12622
+ className: `${classPrefix$S}-title-text`
12585
12623
  }, props.title), React__default["default"].createElement("span", {
12586
- className: classNames__default["default"](`${classPrefix$Q}-title-arrow`, {
12587
- [`${classPrefix$Q}-title-arrow-active`]: props.active
12624
+ className: classNames__default["default"](`${classPrefix$S}-title-arrow`, {
12625
+ [`${classPrefix$S}-title-arrow-active`]: props.active
12588
12626
  })
12589
12627
  }, props.arrow === void 0 ? React__default["default"].createElement(antdMobileIcons.DownFill, null) : props.arrow))));
12590
12628
  };
@@ -12593,22 +12631,22 @@ const ItemChildrenWrap = (props) => {
12593
12631
  active = false
12594
12632
  } = props;
12595
12633
  const shouldRender = useShouldRender(active, props.forceRender, props.destroyOnClose);
12596
- const cls2 = classNames__default["default"](`${classPrefix$Q}-content`, {
12597
- [`${classPrefix$Q}-content-hidden`]: !active
12634
+ const cls2 = classNames__default["default"](`${classPrefix$S}-content`, {
12635
+ [`${classPrefix$S}-content-hidden`]: !active
12598
12636
  });
12599
12637
  return shouldRender ? React__default["default"].createElement("div", {
12600
12638
  className: cls2,
12601
12639
  onClick: props.onClick
12602
12640
  }, props.children) : null;
12603
12641
  };
12604
- const classPrefix$P = `adm-dropdown`;
12605
- const defaultProps$D = {
12642
+ const classPrefix$R = `adm-dropdown`;
12643
+ const defaultProps$E = {
12606
12644
  defaultActiveKey: null,
12607
12645
  closeOnMaskClick: true,
12608
12646
  closeOnClickAway: false
12609
12647
  };
12610
12648
  const Dropdown = React$1.forwardRef((p2, ref) => {
12611
- const props = mergeProps(defaultProps$D, p2);
12649
+ const props = mergeProps(defaultProps$E, p2);
12612
12650
  const [value, setValue] = usePropsValue({
12613
12651
  value: props.activeKey,
12614
12652
  defaultValue: props.defaultActiveKey,
@@ -12664,19 +12702,19 @@ const Dropdown = React$1.forwardRef((p2, ref) => {
12664
12702
  }
12665
12703
  }), [setValue]);
12666
12704
  return withNativeProps(props, React__default["default"].createElement("div", {
12667
- className: classNames__default["default"](classPrefix$P, {
12668
- [`${classPrefix$P}-open`]: !!value
12705
+ className: classNames__default["default"](classPrefix$R, {
12706
+ [`${classPrefix$R}-open`]: !!value
12669
12707
  }),
12670
12708
  ref: containerRef
12671
12709
  }, React__default["default"].createElement("div", {
12672
- className: `${classPrefix$P}-nav`,
12710
+ className: `${classPrefix$R}-nav`,
12673
12711
  ref: navRef
12674
12712
  }, navs), React__default["default"].createElement(Popup, {
12675
12713
  visible: !!value,
12676
12714
  position: "top",
12677
- className: `${classPrefix$P}-popup`,
12678
- maskClassName: `${classPrefix$P}-popup-mask`,
12679
- bodyClassName: `${classPrefix$P}-popup-body`,
12715
+ className: `${classPrefix$R}-popup`,
12716
+ maskClassName: `${classPrefix$R}-popup-mask`,
12717
+ bodyClassName: `${classPrefix$R}-popup-body`,
12680
12718
  style: {
12681
12719
  top
12682
12720
  },
@@ -12700,8 +12738,8 @@ var index$a = attachPropertiesToComponent(Dropdown, {
12700
12738
  Item
12701
12739
  });
12702
12740
  var ellipsis = "";
12703
- const classPrefix$O = `adm-ellipsis`;
12704
- const defaultProps$C = {
12741
+ const classPrefix$Q = `adm-ellipsis`;
12742
+ const defaultProps$D = {
12705
12743
  direction: "end",
12706
12744
  rows: 1,
12707
12745
  expandText: "",
@@ -12711,7 +12749,7 @@ const defaultProps$C = {
12711
12749
  }
12712
12750
  };
12713
12751
  const Ellipsis = (p2) => {
12714
- const props = mergeProps(defaultProps$C, p2);
12752
+ const props = mergeProps(defaultProps$D, p2);
12715
12753
  const rootRef = React$1.useRef(null);
12716
12754
  const [ellipsised, setEllipsised] = React$1.useState({});
12717
12755
  const [expanded, setExpanded] = React$1.useState(false);
@@ -12736,7 +12774,6 @@ const Ellipsis = (p2) => {
12736
12774
  container.style.textOverflow = "clip";
12737
12775
  container.style.whiteSpace = "normal";
12738
12776
  container.style.webkitLineClamp = "unset";
12739
- container.style.webkitBoxOrient = "unset";
12740
12777
  container.style.display = "block";
12741
12778
  const lineHeight = pxToNumber(originStyle.lineHeight);
12742
12779
  const maxHeight = Math.floor(lineHeight * (props.rows + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom));
@@ -12827,7 +12864,7 @@ const Ellipsis = (p2) => {
12827
12864
  };
12828
12865
  return withNativeProps(props, React__default["default"].createElement("div", {
12829
12866
  ref: rootRef,
12830
- className: classPrefix$O,
12867
+ className: classPrefix$Q,
12831
12868
  onClick: (e2) => {
12832
12869
  if (e2.target === e2.currentTarget) {
12833
12870
  props.onContentClick(e2);
@@ -12864,7 +12901,7 @@ const EmptyIcon = (props) => {
12864
12901
  fill: "#fafafa"
12865
12902
  })))));
12866
12903
  };
12867
- const classPrefix$N = `adm-empty`;
12904
+ const classPrefix$P = `adm-empty`;
12868
12905
  const Empty = (props) => {
12869
12906
  function renderImageNode() {
12870
12907
  const {
@@ -12872,13 +12909,13 @@ const Empty = (props) => {
12872
12909
  } = props;
12873
12910
  if (image2 === void 0) {
12874
12911
  return React__default["default"].createElement(EmptyIcon, {
12875
- className: `${classPrefix$N}-image`,
12912
+ className: `${classPrefix$P}-image`,
12876
12913
  style: props.imageStyle
12877
12914
  });
12878
12915
  }
12879
12916
  if (typeof image2 === "string") {
12880
12917
  return React__default["default"].createElement("img", {
12881
- className: `${classPrefix$N}-image`,
12918
+ className: `${classPrefix$P}-image`,
12882
12919
  style: props.imageStyle,
12883
12920
  src: image2,
12884
12921
  alt: "empty"
@@ -12887,22 +12924,22 @@ const Empty = (props) => {
12887
12924
  return image2;
12888
12925
  }
12889
12926
  return withNativeProps(props, React__default["default"].createElement("div", {
12890
- className: classPrefix$N
12927
+ className: classPrefix$P
12891
12928
  }, React__default["default"].createElement("div", {
12892
- className: `${classPrefix$N}-image-container`
12929
+ className: `${classPrefix$P}-image-container`
12893
12930
  }, renderImageNode()), props.description && React__default["default"].createElement("div", {
12894
- className: classNames__default["default"](`${classPrefix$N}-description`)
12931
+ className: classNames__default["default"](`${classPrefix$P}-description`)
12895
12932
  }, props.description)));
12896
12933
  };
12897
12934
  var errorBlock = "";
12898
- const classPrefix$M = `adm-error-block`;
12899
- const defaultProps$B = {
12935
+ const classPrefix$O = `adm-error-block`;
12936
+ const defaultProps$C = {
12900
12937
  status: "default"
12901
12938
  };
12902
12939
  function createErrorBlock(imageRecord2) {
12903
12940
  const ErrorBlock2 = (p2) => {
12904
12941
  var _a;
12905
- const props = mergeProps(defaultProps$B, p2);
12942
+ const props = mergeProps(defaultProps$C, p2);
12906
12943
  const {
12907
12944
  locale
12908
12945
  } = useConfig();
@@ -12915,19 +12952,19 @@ function createErrorBlock(imageRecord2) {
12915
12952
  alt: "error block image"
12916
12953
  }) : image2;
12917
12954
  return withNativeProps(props, React__default["default"].createElement("div", {
12918
- className: classNames__default["default"](classPrefix$M, {
12919
- [`${classPrefix$M}-full-page`]: props.fullPage
12955
+ className: classNames__default["default"](classPrefix$O, {
12956
+ [`${classPrefix$O}-full-page`]: props.fullPage
12920
12957
  })
12921
12958
  }, React__default["default"].createElement("div", {
12922
- className: `${classPrefix$M}-image`
12959
+ className: `${classPrefix$O}-image`
12923
12960
  }, imageNode), React__default["default"].createElement("div", {
12924
- className: `${classPrefix$M}-description`
12961
+ className: `${classPrefix$O}-description`
12925
12962
  }, title && React__default["default"].createElement("div", {
12926
- className: `${classPrefix$M}-description-title`
12963
+ className: `${classPrefix$O}-description-title`
12927
12964
  }, title), des && React__default["default"].createElement("div", {
12928
- className: `${classPrefix$M}-description-subtitle`
12965
+ className: `${classPrefix$O}-description-subtitle`
12929
12966
  }, des)), props.children && React__default["default"].createElement("div", {
12930
- className: `${classPrefix$M}-content`
12967
+ className: `${classPrefix$O}-content`
12931
12968
  }, props.children)));
12932
12969
  };
12933
12970
  return ErrorBlock2;
@@ -13434,12 +13471,12 @@ const imageRecord = {
13434
13471
  };
13435
13472
  const ErrorBlock = createErrorBlock(imageRecord);
13436
13473
  var floatingBubble = "";
13437
- const classPrefix$L = `adm-floating-bubble`;
13438
- const defaultProps$A = {
13474
+ const classPrefix$N = `adm-floating-bubble`;
13475
+ const defaultProps$B = {
13439
13476
  axis: "y"
13440
13477
  };
13441
13478
  const FloatingBubble = (p2) => {
13442
- const props = mergeProps(defaultProps$A, p2);
13479
+ const props = mergeProps(defaultProps$B, p2);
13443
13480
  const boundaryRef = React$1.useRef(null);
13444
13481
  const buttonRef = React$1.useRef(null);
13445
13482
  const [{
@@ -13498,11 +13535,11 @@ const FloatingBubble = (p2) => {
13498
13535
  from: () => [x.get(), y.get()]
13499
13536
  });
13500
13537
  return withNativeProps(props, React__default["default"].createElement("div", {
13501
- className: classPrefix$L
13538
+ className: classPrefix$N
13502
13539
  }, React__default["default"].createElement("div", {
13503
- className: `${classPrefix$L}-boundary-outer`
13540
+ className: `${classPrefix$N}-boundary-outer`
13504
13541
  }, React__default["default"].createElement("div", {
13505
- className: `${classPrefix$L}-boundary`,
13542
+ className: `${classPrefix$N}-boundary`,
13506
13543
  ref: boundaryRef
13507
13544
  })), React__default["default"].createElement(web.animated.div, Object.assign({}, bind(), {
13508
13545
  style: {
@@ -13510,7 +13547,7 @@ const FloatingBubble = (p2) => {
13510
13547
  transform: web.to([x, y], (x2, y2) => `translate(${x2}px, ${y2}px)`)
13511
13548
  },
13512
13549
  onClick: props.onClick,
13513
- className: `${classPrefix$L}-button`,
13550
+ className: `${classPrefix$N}-button`,
13514
13551
  ref: buttonRef
13515
13552
  }), props.children)));
13516
13553
  };
@@ -13520,12 +13557,12 @@ function nearest(arr, target) {
13520
13557
  return Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur;
13521
13558
  });
13522
13559
  }
13523
- const defaultProps$z = {
13560
+ const defaultProps$A = {
13524
13561
  handleDraggingOfContent: true
13525
13562
  };
13526
13563
  const FloatingPanel = React$1.forwardRef((p2, ref) => {
13527
13564
  var _a, _b;
13528
- const props = mergeProps(defaultProps$z, p2);
13565
+ const props = mergeProps(defaultProps$A, p2);
13529
13566
  const {
13530
13567
  anchors
13531
13568
  } = props;
@@ -13682,10 +13719,10 @@ const FormArray = (props) => {
13682
13719
  return React__default["default"].createElement(React__default["default"].Fragment, null, children);
13683
13720
  });
13684
13721
  };
13685
- const classPrefix$K = "adm-form";
13686
- const defaultProps$y = defaultFormContext;
13722
+ const classPrefix$M = "adm-form";
13723
+ const defaultProps$z = defaultFormContext;
13687
13724
  const Form$1 = React$1.forwardRef((p2, ref) => {
13688
- const props = mergeProps(defaultProps$y, p2);
13725
+ const props = mergeProps(defaultProps$z, p2);
13689
13726
  const {
13690
13727
  className,
13691
13728
  style,
@@ -13733,7 +13770,7 @@ const Form$1 = React$1.forwardRef((p2, ref) => {
13733
13770
  });
13734
13771
  collect();
13735
13772
  return React__default["default"].createElement(RcForm__default["default"], Object.assign({
13736
- className: classNames__default["default"](classPrefix$K, className),
13773
+ className: classNames__default["default"](classPrefix$M, className),
13737
13774
  style,
13738
13775
  ref
13739
13776
  }, formProps, {
@@ -13747,7 +13784,7 @@ const Form$1 = React$1.forwardRef((p2, ref) => {
13747
13784
  disabled
13748
13785
  }
13749
13786
  }, lists), footer && React__default["default"].createElement("div", {
13750
- className: `${classPrefix$K}-footer`
13787
+ className: `${classPrefix$M}-footer`
13751
13788
  }, footer));
13752
13789
  });
13753
13790
  var FieldContext = {};
@@ -13982,15 +14019,15 @@ function convertPx(px) {
13982
14019
  tester.style.setProperty("--size", px.toString());
13983
14020
  return tester.getBoundingClientRect().height;
13984
14021
  }
13985
- const classPrefix$J = `adm-popover`;
13986
- const defaultProps$x = {
14022
+ const classPrefix$L = `adm-popover`;
14023
+ const defaultProps$y = {
13987
14024
  placement: "top",
13988
14025
  defaultVisible: false,
13989
14026
  stopPropagation: ["click"],
13990
14027
  getContainer: () => document.body
13991
14028
  };
13992
14029
  const Popover$1 = React$1.forwardRef((p2, ref) => {
13993
- const props = mergeProps(defaultProps$x, p2);
14030
+ const props = mergeProps(defaultProps$y, p2);
13994
14031
  const {
13995
14032
  mode = "light"
13996
14033
  } = props;
@@ -14011,17 +14048,17 @@ const Popover$1 = React$1.forwardRef((p2, ref) => {
14011
14048
  const floatingRef = React$1.useRef(null);
14012
14049
  const arrowRef = React$1.useRef(null);
14013
14050
  const floating = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement("div", {
14014
- className: classNames__default["default"](classPrefix$J, `${classPrefix$J}-${mode}`, !visible && `${classPrefix$J}-hidden`),
14051
+ className: classNames__default["default"](classPrefix$L, `${classPrefix$L}-${mode}`, !visible && `${classPrefix$L}-hidden`),
14015
14052
  ref: floatingRef
14016
14053
  }, React__default["default"].createElement("div", {
14017
- className: `${classPrefix$J}-arrow`,
14054
+ className: `${classPrefix$L}-arrow`,
14018
14055
  ref: arrowRef
14019
14056
  }, React__default["default"].createElement(Arrow, {
14020
- className: `${classPrefix$J}-arrow-icon`
14057
+ className: `${classPrefix$L}-arrow-icon`
14021
14058
  })), React__default["default"].createElement("div", {
14022
- className: `${classPrefix$J}-inner`
14059
+ className: `${classPrefix$L}-inner`
14023
14060
  }, React__default["default"].createElement("div", {
14024
- className: `${classPrefix$J}-inner-content`
14061
+ className: `${classPrefix$L}-inner-content`
14025
14062
  }, props.content)))));
14026
14063
  const [targetElement, setTargetElement] = React$1.useState(null);
14027
14064
  function update() {
@@ -14117,7 +14154,7 @@ const Popover$1 = React$1.forwardRef((p2, ref) => {
14117
14154
  ref: targetRef
14118
14155
  }, props.children), shouldRender && renderToContainer(props.getContainer, floating));
14119
14156
  });
14120
- const classPrefix$I = `adm-popover-menu`;
14157
+ const classPrefix$K = `adm-popover-menu`;
14121
14158
  const PopoverMenu = React$1.forwardRef((props, ref) => {
14122
14159
  const innerRef = React$1.useRef(null);
14123
14160
  React$1.useImperativeHandle(ref, () => innerRef.current, []);
@@ -14133,14 +14170,14 @@ const PopoverMenu = React$1.forwardRef((props, ref) => {
14133
14170
  }, [props.onAction]);
14134
14171
  const overlay = React$1.useMemo(() => {
14135
14172
  return React__default["default"].createElement("div", {
14136
- className: `${classPrefix$I}-list`
14173
+ className: `${classPrefix$K}-list`
14137
14174
  }, React__default["default"].createElement("div", {
14138
- className: `${classPrefix$I}-list-inner`
14175
+ className: `${classPrefix$K}-list-inner`
14139
14176
  }, props.actions.map((action, index2) => {
14140
14177
  var _a;
14141
14178
  return React__default["default"].createElement("a", {
14142
14179
  key: (_a = action.key) !== null && _a !== void 0 ? _a : index2,
14143
- className: classNames__default["default"](`${classPrefix$I}-item`, "adm-plain-anchor", action.disabled && `${classPrefix$I}-item-disabled`),
14180
+ className: classNames__default["default"](`${classPrefix$K}-item`, "adm-plain-anchor", action.disabled && `${classPrefix$K}-item-disabled`),
14144
14181
  onClick: () => {
14145
14182
  var _a2;
14146
14183
  if (action.disabled)
@@ -14149,16 +14186,16 @@ const PopoverMenu = React$1.forwardRef((props, ref) => {
14149
14186
  (_a2 = action.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(action);
14150
14187
  }
14151
14188
  }, action.icon && React__default["default"].createElement("div", {
14152
- className: `${classPrefix$I}-item-icon`
14189
+ className: `${classPrefix$K}-item-icon`
14153
14190
  }, action.icon), React__default["default"].createElement("div", {
14154
- className: `${classPrefix$I}-item-text`
14191
+ className: `${classPrefix$K}-item-text`
14155
14192
  }, action.text));
14156
14193
  })));
14157
14194
  }, [props.actions, onClick]);
14158
14195
  return React__default["default"].createElement(Popover$1, Object.assign({
14159
14196
  ref: innerRef
14160
14197
  }, props, {
14161
- className: classNames__default["default"](classPrefix$I, props.className),
14198
+ className: classNames__default["default"](classPrefix$K, props.className),
14162
14199
  content: overlay
14163
14200
  }), props.children);
14164
14201
  });
@@ -14174,7 +14211,7 @@ function undefinedFallback(...items) {
14174
14211
  return items[i];
14175
14212
  }
14176
14213
  const NAME_SPLIT = "__SPLIT__";
14177
- const classPrefix$H = `adm-form-item`;
14214
+ const classPrefix$J = `adm-form-item`;
14178
14215
  const MemoInput = React__default["default"].memo(({
14179
14216
  children
14180
14217
  }) => children, (prev, next) => prev.value === next.value && prev.update === next.update);
@@ -14207,39 +14244,39 @@ const FormItemLayout = (props) => {
14207
14244
  switch (requiredMarkStyle) {
14208
14245
  case "asterisk":
14209
14246
  return required && React__default["default"].createElement("span", {
14210
- className: `${classPrefix$H}-required-asterisk`
14247
+ className: `${classPrefix$J}-required-asterisk`
14211
14248
  }, "*");
14212
14249
  case "text-required":
14213
14250
  return required && React__default["default"].createElement("span", {
14214
- className: `${classPrefix$H}-required-text`
14251
+ className: `${classPrefix$J}-required-text`
14215
14252
  }, "(", locale.Form.required, ")");
14216
14253
  case "text-optional":
14217
14254
  return !required && React__default["default"].createElement("span", {
14218
- className: `${classPrefix$H}-required-text`
14255
+ className: `${classPrefix$J}-required-text`
14219
14256
  }, "(", locale.Form.optional, ")");
14220
14257
  default:
14221
14258
  return null;
14222
14259
  }
14223
14260
  })();
14224
14261
  const labelElement = label ? React__default["default"].createElement("label", {
14225
- className: `${classPrefix$H}-label`,
14262
+ className: `${classPrefix$J}-label`,
14226
14263
  htmlFor
14227
14264
  }, label, requiredMark, help && React__default["default"].createElement(Popover, {
14228
14265
  content: help,
14229
14266
  mode: "dark",
14230
14267
  trigger: "click"
14231
14268
  }, React__default["default"].createElement("span", {
14232
- className: `${classPrefix$H}-label-help`,
14269
+ className: `${classPrefix$J}-label-help`,
14233
14270
  onClick: (e2) => {
14234
14271
  e2.preventDefault();
14235
14272
  }
14236
14273
  }, React__default["default"].createElement(antdMobileIcons.QuestionCircleOutline, null)))) : null;
14237
14274
  const description = React__default["default"].createElement(React__default["default"].Fragment, null, props.description, hasFeedback && React__default["default"].createElement(React__default["default"].Fragment, null, props.errors.map((error, index2) => React__default["default"].createElement("div", {
14238
14275
  key: `error-${index2}`,
14239
- className: `${classPrefix$H}-feedback-error`
14276
+ className: `${classPrefix$J}-feedback-error`
14240
14277
  }, error)), props.warnings.map((warning2, index2) => React__default["default"].createElement("div", {
14241
14278
  key: `warning-${index2}`,
14242
- className: `${classPrefix$H}-feedback-warning`
14279
+ className: `${classPrefix$J}-feedback-warning`
14243
14280
  }, warning2))));
14244
14281
  return React__default["default"].createElement(List.Item, {
14245
14282
  style,
@@ -14247,18 +14284,18 @@ const FormItemLayout = (props) => {
14247
14284
  prefix: layout === "horizontal" && labelElement,
14248
14285
  extra,
14249
14286
  description,
14250
- className: classNames__default["default"](classPrefix$H, className, `${classPrefix$H}-${layout}`, {
14251
- [`${classPrefix$H}-hidden`]: hidden,
14252
- [`${classPrefix$H}-has-error`]: props.errors.length
14287
+ className: classNames__default["default"](classPrefix$J, className, `${classPrefix$J}-${layout}`, {
14288
+ [`${classPrefix$J}-hidden`]: hidden,
14289
+ [`${classPrefix$J}-has-error`]: props.errors.length
14253
14290
  }),
14254
14291
  disabled,
14255
14292
  onClick: props.onClick,
14256
14293
  clickable: props.clickable,
14257
14294
  arrow
14258
14295
  }, React__default["default"].createElement("div", {
14259
- className: classNames__default["default"](`${classPrefix$H}-child`, `${classPrefix$H}-child-position-${childElementPosition}`)
14296
+ className: classNames__default["default"](`${classPrefix$J}-child`, `${classPrefix$J}-child-position-${childElementPosition}`)
14260
14297
  }, React__default["default"].createElement("div", {
14261
- className: classNames__default["default"](`${classPrefix$H}-child-inner`)
14298
+ className: classNames__default["default"](`${classPrefix$J}-child-inner`)
14262
14299
  }, children)));
14263
14300
  };
14264
14301
  const FormItem = (props) => {
@@ -14453,7 +14490,7 @@ var Form = attachPropertiesToComponent(Form$1, {
14453
14490
  useWatch: RcForm.useWatch
14454
14491
  });
14455
14492
  var grid = "";
14456
- const classPrefix$G = `adm-grid`;
14493
+ const classPrefix$I = `adm-grid`;
14457
14494
  const Grid$1 = (props) => {
14458
14495
  const style = {
14459
14496
  "--columns": props.columns.toString()
@@ -14470,7 +14507,7 @@ const Grid$1 = (props) => {
14470
14507
  }
14471
14508
  }
14472
14509
  return withNativeProps(props, React__default["default"].createElement("div", {
14473
- className: classPrefix$G,
14510
+ className: classPrefix$I,
14474
14511
  style
14475
14512
  }, props.children));
14476
14513
  };
@@ -14482,7 +14519,7 @@ const GridItem = (p2) => {
14482
14519
  "--item-span": props.span
14483
14520
  };
14484
14521
  return withNativeProps(props, React__default["default"].createElement("div", {
14485
- className: `${classPrefix$G}-item`,
14522
+ className: `${classPrefix$I}-item`,
14486
14523
  style: itemStyle,
14487
14524
  onClick: props.onClick
14488
14525
  }, props.children));
@@ -14492,7 +14529,7 @@ var Grid = attachPropertiesToComponent(Grid$1, {
14492
14529
  });
14493
14530
  var imageViewer = "";
14494
14531
  const useDragAndPinch = react.createUseGesture([react.dragAction, react.pinchAction]);
14495
- const classPrefix$F = `adm-image-viewer`;
14532
+ const classPrefix$H = `adm-image-viewer`;
14496
14533
  const Slide = (props) => {
14497
14534
  const {
14498
14535
  dragLockRef
@@ -14607,17 +14644,17 @@ const Slide = (props) => {
14607
14644
  }
14608
14645
  });
14609
14646
  return React__default["default"].createElement("div", {
14610
- className: `${classPrefix$F}-slide`,
14647
+ className: `${classPrefix$H}-slide`,
14611
14648
  onPointerMove: (e2) => {
14612
14649
  if (zoom.get() !== 1) {
14613
14650
  e2.stopPropagation();
14614
14651
  }
14615
14652
  }
14616
14653
  }, React__default["default"].createElement("div", {
14617
- className: `${classPrefix$F}-control`,
14654
+ className: `${classPrefix$H}-control`,
14618
14655
  ref: controlRef
14619
14656
  }, React__default["default"].createElement(web.animated.div, {
14620
- className: `${classPrefix$F}-image-wrapper`,
14657
+ className: `${classPrefix$H}-image-wrapper`,
14621
14658
  style: {
14622
14659
  translateX: x,
14623
14660
  translateY: y,
@@ -14630,7 +14667,7 @@ const Slide = (props) => {
14630
14667
  alt: props.image
14631
14668
  }))));
14632
14669
  };
14633
- const classPrefix$E = `adm-image-viewer`;
14670
+ const classPrefix$G = `adm-image-viewer`;
14634
14671
  const Slides = React$1.forwardRef((props, ref) => {
14635
14672
  const slideWidth = window.innerWidth + convertPx(16);
14636
14673
  const [{
@@ -14687,14 +14724,14 @@ const Slides = React$1.forwardRef((props, ref) => {
14687
14724
  }
14688
14725
  });
14689
14726
  return React__default["default"].createElement("div", Object.assign({
14690
- className: `${classPrefix$E}-slides`
14727
+ className: `${classPrefix$G}-slides`
14691
14728
  }, bind()), React__default["default"].createElement(web.animated.div, {
14692
- className: `${classPrefix$E}-indicator`
14729
+ className: `${classPrefix$G}-indicator`
14693
14730
  }, x.to((v) => {
14694
14731
  const index2 = bound(Math.round(v / slideWidth), 0, count - 1);
14695
14732
  return `${index2 + 1} / ${count}`;
14696
14733
  })), React__default["default"].createElement(web.animated.div, {
14697
- className: `${classPrefix$E}-slides-inner`,
14734
+ className: `${classPrefix$G}-slides-inner`,
14698
14735
  style: {
14699
14736
  x: x.to((x2) => -x2)
14700
14737
  }
@@ -14714,22 +14751,22 @@ const Slides = React$1.forwardRef((props, ref) => {
14714
14751
  dragLockRef
14715
14752
  }))));
14716
14753
  });
14717
- const classPrefix$D = `adm-image-viewer`;
14718
- const defaultProps$w = {
14754
+ const classPrefix$F = `adm-image-viewer`;
14755
+ const defaultProps$x = {
14719
14756
  maxZoom: 3,
14720
14757
  getContainer: null,
14721
14758
  visible: false
14722
14759
  };
14723
14760
  const ImageViewer$1 = (p2) => {
14724
14761
  var _a;
14725
- const props = mergeProps(defaultProps$w, p2);
14762
+ const props = mergeProps(defaultProps$x, p2);
14726
14763
  const node = React__default["default"].createElement(Mask, {
14727
14764
  visible: props.visible,
14728
14765
  disableBodyScroll: false,
14729
14766
  opacity: "thick",
14730
14767
  afterClose: props.afterClose
14731
14768
  }, React__default["default"].createElement("div", {
14732
- className: `${classPrefix$D}-content`
14769
+ className: `${classPrefix$F}-content`
14733
14770
  }, props.image && React__default["default"].createElement(Slide, {
14734
14771
  image: props.image,
14735
14772
  onTap: () => {
@@ -14738,13 +14775,13 @@ const ImageViewer$1 = (p2) => {
14738
14775
  },
14739
14776
  maxZoom: props.maxZoom
14740
14777
  })), props.image && React__default["default"].createElement("div", {
14741
- className: `${classPrefix$D}-footer`
14778
+ className: `${classPrefix$F}-footer`
14742
14779
  }, (_a = props.renderFooter) === null || _a === void 0 ? void 0 : _a.call(props, props.image), React__default["default"].createElement(SafeArea, {
14743
14780
  position: "bottom"
14744
14781
  })));
14745
14782
  return renderToContainer(props.getContainer, node);
14746
14783
  };
14747
- const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$w), {
14784
+ const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$x), {
14748
14785
  defaultIndex: 0
14749
14786
  });
14750
14787
  const MultiImageViewer = React$1.forwardRef((p2, ref) => {
@@ -14770,7 +14807,7 @@ const MultiImageViewer = React$1.forwardRef((p2, ref) => {
14770
14807
  opacity: "thick",
14771
14808
  afterClose: props.afterClose
14772
14809
  }, React__default["default"].createElement("div", {
14773
- className: `${classPrefix$D}-content`
14810
+ className: `${classPrefix$F}-content`
14774
14811
  }, props.images && React__default["default"].createElement(Slides, {
14775
14812
  ref: slidesRef,
14776
14813
  defaultIndex: index2,
@@ -14782,7 +14819,7 @@ const MultiImageViewer = React$1.forwardRef((p2, ref) => {
14782
14819
  },
14783
14820
  maxZoom: props.maxZoom
14784
14821
  })), props.images && React__default["default"].createElement("div", {
14785
- className: `${classPrefix$D}-footer`
14822
+ className: `${classPrefix$F}-footer`
14786
14823
  }, (_a = props.renderFooter) === null || _a === void 0 ? void 0 : _a.call(props, props.images[index2], index2), React__default["default"].createElement(SafeArea, {
14787
14824
  position: "bottom"
14788
14825
  })));
@@ -14910,19 +14947,19 @@ function useMotionReduced() {
14910
14947
  };
14911
14948
  }, isMotionReduced);
14912
14949
  }
14913
- const classPrefix$C = "adm-spin-loading";
14950
+ const classPrefix$E = "adm-spin-loading";
14914
14951
  const colorRecord$2 = {
14915
14952
  default: "var(--adm-color-weak)",
14916
14953
  primary: "var(--adm-color-primary)",
14917
14954
  white: "var(--adm-color-white)"
14918
14955
  };
14919
- const defaultProps$v = {
14956
+ const defaultProps$w = {
14920
14957
  color: "default"
14921
14958
  };
14922
14959
  const circumference = 15 * 3.14159265358979 * 2;
14923
14960
  const SpinLoading = React$1.memo((p2) => {
14924
14961
  var _a;
14925
- const props = mergeProps(defaultProps$v, p2);
14962
+ const props = mergeProps(defaultProps$w, p2);
14926
14963
  const motionReduced = useMotionReduced();
14927
14964
  const {
14928
14965
  percent
@@ -14942,16 +14979,16 @@ const SpinLoading = React$1.memo((p2) => {
14942
14979
  }
14943
14980
  });
14944
14981
  return withNativeProps(props, React__default["default"].createElement(web.animated.div, {
14945
- className: classPrefix$C,
14982
+ className: classPrefix$E,
14946
14983
  style: {
14947
14984
  "--color": (_a = colorRecord$2[props.color]) !== null && _a !== void 0 ? _a : props.color,
14948
14985
  "--percent": percent
14949
14986
  }
14950
14987
  }, React__default["default"].createElement("svg", {
14951
- className: `${classPrefix$C}-svg`,
14988
+ className: `${classPrefix$E}-svg`,
14952
14989
  viewBox: "0 0 32 32"
14953
14990
  }, React__default["default"].createElement(web.animated.circle, {
14954
- className: `${classPrefix$C}-fill`,
14991
+ className: `${classPrefix$E}-fill`,
14955
14992
  fill: "transparent",
14956
14993
  strokeWidth: "2",
14957
14994
  strokeDasharray: circumference,
@@ -14962,7 +14999,7 @@ const SpinLoading = React$1.memo((p2) => {
14962
14999
  cy: 16
14963
15000
  }))));
14964
15001
  });
14965
- const classPrefix$B = `adm-image-uploader`;
15002
+ const classPrefix$D = `adm-image-uploader`;
14966
15003
  const PreviewItem = (props) => {
14967
15004
  const {
14968
15005
  locale
@@ -14985,60 +15022,60 @@ const PreviewItem = (props) => {
14985
15022
  }, [url, file]);
14986
15023
  function renderLoading() {
14987
15024
  return props.status === "pending" && React__default["default"].createElement("div", {
14988
- className: `${classPrefix$B}-cell-mask`
15025
+ className: `${classPrefix$D}-cell-mask`
14989
15026
  }, React__default["default"].createElement("span", {
14990
- className: `${classPrefix$B}-cell-loading`
15027
+ className: `${classPrefix$D}-cell-loading`
14991
15028
  }, React__default["default"].createElement(SpinLoading, {
14992
15029
  color: "white"
14993
15030
  }), React__default["default"].createElement("span", {
14994
- className: `${classPrefix$B}-cell-mask-message`
15031
+ className: `${classPrefix$D}-cell-mask-message`
14995
15032
  }, locale.ImageUploader.uploading)));
14996
15033
  }
14997
15034
  function renderDelete() {
14998
15035
  return deletable && React__default["default"].createElement("span", {
14999
- className: `${classPrefix$B}-cell-delete`,
15036
+ className: `${classPrefix$D}-cell-delete`,
15000
15037
  onClick: onDelete
15001
15038
  }, React__default["default"].createElement(antdMobileIcons.CloseOutline, {
15002
- className: `${classPrefix$B}-cell-delete-icon`
15039
+ className: `${classPrefix$D}-cell-delete-icon`
15003
15040
  }));
15004
15041
  }
15005
15042
  return React__default["default"].createElement("div", {
15006
- className: classNames__default["default"](`${classPrefix$B}-cell`, props.status === "fail" && `${classPrefix$B}-cell-fail`)
15043
+ className: classNames__default["default"](`${classPrefix$D}-cell`, props.status === "fail" && `${classPrefix$D}-cell-fail`)
15007
15044
  }, React__default["default"].createElement(Image$1, {
15008
- className: `${classPrefix$B}-cell-image`,
15045
+ className: `${classPrefix$D}-cell-image`,
15009
15046
  src,
15010
15047
  fit: imageFit,
15011
15048
  onClick: props.onClick
15012
15049
  }), renderLoading(), renderDelete());
15013
15050
  };
15014
15051
  var space = "";
15015
- const classPrefix$A = `adm-space`;
15016
- const defaultProps$u = {
15052
+ const classPrefix$C = `adm-space`;
15053
+ const defaultProps$v = {
15017
15054
  direction: "horizontal"
15018
15055
  };
15019
15056
  const Space = (p2) => {
15020
- const props = mergeProps(defaultProps$u, p2);
15057
+ const props = mergeProps(defaultProps$v, p2);
15021
15058
  const {
15022
15059
  direction,
15023
15060
  onClick
15024
15061
  } = props;
15025
15062
  return withNativeProps(props, React__default["default"].createElement("div", {
15026
- className: classNames__default["default"](classPrefix$A, {
15027
- [`${classPrefix$A}-wrap`]: props.wrap,
15028
- [`${classPrefix$A}-block`]: props.block,
15029
- [`${classPrefix$A}-${direction}`]: true,
15030
- [`${classPrefix$A}-align-${props.align}`]: !!props.align,
15031
- [`${classPrefix$A}-justify-${props.justify}`]: !!props.justify
15063
+ className: classNames__default["default"](classPrefix$C, {
15064
+ [`${classPrefix$C}-wrap`]: props.wrap,
15065
+ [`${classPrefix$C}-block`]: props.block,
15066
+ [`${classPrefix$C}-${direction}`]: true,
15067
+ [`${classPrefix$C}-align-${props.align}`]: !!props.align,
15068
+ [`${classPrefix$C}-justify-${props.justify}`]: !!props.justify
15032
15069
  }),
15033
15070
  onClick
15034
15071
  }, React__default["default"].Children.map(props.children, (child) => {
15035
15072
  return child !== null && child !== void 0 && React__default["default"].createElement("div", {
15036
- className: `${classPrefix$A}-item`
15073
+ className: `${classPrefix$C}-item`
15037
15074
  }, child);
15038
15075
  })));
15039
15076
  };
15040
- const classPrefix$z = `adm-image-uploader`;
15041
- const defaultProps$t = {
15077
+ const classPrefix$B = `adm-image-uploader`;
15078
+ const defaultProps$u = {
15042
15079
  disableUpload: false,
15043
15080
  deletable: true,
15044
15081
  showUpload: true,
@@ -15054,7 +15091,7 @@ const ImageUploader = (p2) => {
15054
15091
  const {
15055
15092
  locale
15056
15093
  } = useConfig();
15057
- const props = mergeProps(defaultProps$t, p2);
15094
+ const props = mergeProps(defaultProps$u, p2);
15058
15095
  const [value, setValue] = usePropsValue(props);
15059
15096
  const [tasks, setTasks] = React$1.useState([]);
15060
15097
  ahooks.useIsomorphicLayoutEffect(() => {
@@ -15163,9 +15200,9 @@ const ImageUploader = (p2) => {
15163
15200
  });
15164
15201
  const showUpload = props.showUpload && (maxCount === 0 || value.length + tasks.length < maxCount);
15165
15202
  return withNativeProps(props, React__default["default"].createElement("div", {
15166
- className: classPrefix$z
15203
+ className: classPrefix$B
15167
15204
  }, React__default["default"].createElement(Space, {
15168
- className: `${classPrefix$z}-space`,
15205
+ className: `${classPrefix$B}-space`,
15169
15206
  wrap: true,
15170
15207
  block: true
15171
15208
  }, value.map((fileItem, index2) => {
@@ -15204,19 +15241,19 @@ const ImageUploader = (p2) => {
15204
15241
  }
15205
15242
  });
15206
15243
  }), showUpload && React__default["default"].createElement("div", {
15207
- className: `${classPrefix$z}-upload-button-wrap`
15244
+ className: `${classPrefix$B}-upload-button-wrap`
15208
15245
  }, props.children ? props.children : React__default["default"].createElement("span", {
15209
- className: `${classPrefix$z}-cell ${classPrefix$z}-upload-button`,
15246
+ className: `${classPrefix$B}-cell ${classPrefix$B}-upload-button`,
15210
15247
  role: "button",
15211
15248
  "aria-label": locale.ImageUploader.upload
15212
15249
  }, React__default["default"].createElement("span", {
15213
- className: `${classPrefix$z}-upload-button-icon`
15250
+ className: `${classPrefix$B}-upload-button-icon`
15214
15251
  }, React__default["default"].createElement(antdMobileIcons.AddOutline, null))), !props.disableUpload && React__default["default"].createElement("input", {
15215
15252
  capture: props.capture,
15216
15253
  accept: props.accept,
15217
15254
  multiple: props.multiple,
15218
15255
  type: "file",
15219
- className: `${classPrefix$z}-input`,
15256
+ className: `${classPrefix$B}-input`,
15220
15257
  onChange,
15221
15258
  "aria-hidden": true
15222
15259
  })))));
@@ -15224,12 +15261,12 @@ const ImageUploader = (p2) => {
15224
15261
  var imageUploader = "";
15225
15262
  var indexBar = "";
15226
15263
  const Panel = () => null;
15227
- const classPrefix$y = `adm-index-bar`;
15264
+ const classPrefix$A = `adm-index-bar`;
15228
15265
  const Sidebar = (props) => {
15229
15266
  const [interacting, setInteracting] = React$1.useState(false);
15230
15267
  return React__default["default"].createElement("div", {
15231
- className: classNames__default["default"](`${classPrefix$y}-sidebar`, {
15232
- [`${classPrefix$y}-sidebar-interacting`]: interacting
15268
+ className: classNames__default["default"](`${classPrefix$A}-sidebar`, {
15269
+ [`${classPrefix$A}-sidebar-interacting`]: interacting
15233
15270
  }),
15234
15271
  onMouseDown: () => {
15235
15272
  setInteracting(true);
@@ -15264,7 +15301,7 @@ const Sidebar = (props) => {
15264
15301
  }) => {
15265
15302
  const active = index2 === props.activeIndex;
15266
15303
  return React__default["default"].createElement("div", {
15267
- className: `${classPrefix$y}-sidebar-row`,
15304
+ className: `${classPrefix$A}-sidebar-row`,
15268
15305
  onMouseDown: () => {
15269
15306
  props.onActive(index2);
15270
15307
  },
@@ -15279,21 +15316,21 @@ const Sidebar = (props) => {
15279
15316
  "data-index": index2,
15280
15317
  key: index2
15281
15318
  }, interacting && active && React__default["default"].createElement("div", {
15282
- className: `${classPrefix$y}-sidebar-bubble`
15319
+ className: `${classPrefix$A}-sidebar-bubble`
15283
15320
  }, brief), React__default["default"].createElement("div", {
15284
- className: classNames__default["default"](`${classPrefix$y}-sidebar-item`, {
15285
- [`${classPrefix$y}-sidebar-item-active`]: active
15321
+ className: classNames__default["default"](`${classPrefix$A}-sidebar-item`, {
15322
+ [`${classPrefix$A}-sidebar-item-active`]: active
15286
15323
  }),
15287
15324
  "data-index": index2
15288
15325
  }, React__default["default"].createElement("div", null, brief)));
15289
15326
  }));
15290
15327
  };
15291
- const classPrefix$x = `adm-index-bar`;
15292
- const defaultProps$s = {
15328
+ const classPrefix$z = `adm-index-bar`;
15329
+ const defaultProps$t = {
15293
15330
  sticky: true
15294
15331
  };
15295
15332
  const IndexBar = React$1.forwardRef((p2, ref) => {
15296
- const props = mergeProps(defaultProps$s, p2);
15333
+ const props = mergeProps(defaultProps$t, p2);
15297
15334
  const titleHeight = convertPx(35);
15298
15335
  const bodyRef = React$1.useRef(null);
15299
15336
  const indexItems = [];
@@ -15312,9 +15349,9 @@ const IndexBar = React$1.forwardRef((p2, ref) => {
15312
15349
  panels.push(withNativeProps(child.props, React__default["default"].createElement("div", {
15313
15350
  key: child.props.index,
15314
15351
  "data-index": child.props.index,
15315
- className: `${classPrefix$x}-anchor`
15352
+ className: `${classPrefix$z}-anchor`
15316
15353
  }, React__default["default"].createElement("div", {
15317
- className: `${classPrefix$x}-anchor-title`
15354
+ className: `${classPrefix$z}-anchor-title`
15318
15355
  }, child.props.title || child.props.index), child.props.children)));
15319
15356
  });
15320
15357
  const [activeIndex, setActiveIndex] = React$1.useState(() => {
@@ -15351,7 +15388,7 @@ const IndexBar = React$1.forwardRef((p2, ref) => {
15351
15388
  if (!body)
15352
15389
  return;
15353
15390
  const scrollTop = body.scrollTop;
15354
- const elements = body.getElementsByClassName(`${classPrefix$x}-anchor`);
15391
+ const elements = body.getElementsByClassName(`${classPrefix$z}-anchor`);
15355
15392
  for (let i = 0; i < elements.length; i++) {
15356
15393
  const panel = elements.item(i);
15357
15394
  if (!panel)
@@ -15371,8 +15408,8 @@ const IndexBar = React$1.forwardRef((p2, ref) => {
15371
15408
  leading: true
15372
15409
  });
15373
15410
  return withNativeProps(props, React__default["default"].createElement("div", {
15374
- className: classNames__default["default"](`${classPrefix$x}`, {
15375
- [`${classPrefix$x}-sticky`]: props.sticky
15411
+ className: classNames__default["default"](`${classPrefix$z}`, {
15412
+ [`${classPrefix$z}-sticky`]: props.sticky
15376
15413
  })
15377
15414
  }, React__default["default"].createElement(Sidebar, {
15378
15415
  indexItems,
@@ -15381,7 +15418,7 @@ const IndexBar = React$1.forwardRef((p2, ref) => {
15381
15418
  scrollTo(index2);
15382
15419
  }
15383
15420
  }), React__default["default"].createElement("div", {
15384
- className: `${classPrefix$x}-body`,
15421
+ className: `${classPrefix$z}-body`,
15385
15422
  ref: bodyRef,
15386
15423
  onScroll: checkActiveIndex
15387
15424
  }, panels)));
@@ -15393,20 +15430,26 @@ var infiniteScroll = "";
15393
15430
  function isWindow(element) {
15394
15431
  return element === window;
15395
15432
  }
15396
- const classPrefix$w = `adm-infinite-scroll`;
15397
- const InfiniteScrollContent = ({
15398
- hasMore
15399
- }) => {
15400
- const {
15401
- locale
15402
- } = useConfig();
15403
- return React__default["default"].createElement(React__default["default"].Fragment, null, hasMore ? React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("span", null, locale.common.loading), React__default["default"].createElement(DotLoading, null)) : React__default["default"].createElement("span", null, locale.InfiniteScroll.noMore));
15433
+ const classPrefix$y = `adm-infinite-scroll`;
15434
+ const defaultProps$s = {
15435
+ threshold: 250,
15436
+ children: (hasMore, failed, retry) => React__default["default"].createElement(InfiniteScrollContent, {
15437
+ hasMore,
15438
+ failed,
15439
+ retry
15440
+ })
15404
15441
  };
15405
15442
  const InfiniteScroll = (p2) => {
15406
- const props = mergeProps({
15407
- threshold: 250
15408
- }, p2);
15409
- const doLoadMore = ahooks.useLockFn(() => props.loadMore());
15443
+ const props = mergeProps(defaultProps$s, p2);
15444
+ const [failed, setFailed] = React$1.useState(false);
15445
+ const doLoadMore = ahooks.useLockFn((isRetry) => tslib.__awaiter(void 0, void 0, void 0, function* () {
15446
+ try {
15447
+ yield props.loadMore(isRetry);
15448
+ } catch (e2) {
15449
+ setFailed(true);
15450
+ throw e2;
15451
+ }
15452
+ }));
15410
15453
  const elementRef = React$1.useRef(null);
15411
15454
  const [flag, setFlag] = React$1.useState({});
15412
15455
  const nextFlagRef = React$1.useRef(flag);
@@ -15431,7 +15474,7 @@ const InfiniteScroll = (p2) => {
15431
15474
  if (current >= elementTop - props.threshold) {
15432
15475
  const nextFlag = {};
15433
15476
  nextFlagRef.current = nextFlag;
15434
- yield doLoadMore();
15477
+ yield doLoadMore(false);
15435
15478
  setFlag(nextFlag);
15436
15479
  }
15437
15480
  }));
@@ -15452,15 +15495,35 @@ const InfiniteScroll = (p2) => {
15452
15495
  scrollParent.removeEventListener("scroll", onScroll);
15453
15496
  };
15454
15497
  }, [scrollParent]);
15498
+ function retry() {
15499
+ setFailed(false);
15500
+ doLoadMore(true);
15501
+ }
15455
15502
  return withNativeProps(props, React__default["default"].createElement("div", {
15456
- className: classPrefix$w,
15503
+ className: classPrefix$y,
15457
15504
  ref: elementRef
15458
- }, props.children && props.children, !props.children && React__default["default"].createElement(InfiniteScrollContent, {
15459
- hasMore: props.hasMore
15460
- })));
15505
+ }, typeof props.children === "function" ? props.children(props.hasMore, failed, retry) : props.children));
15506
+ };
15507
+ const InfiniteScrollContent = (props) => {
15508
+ const {
15509
+ locale
15510
+ } = useConfig();
15511
+ if (!props.hasMore) {
15512
+ return React__default["default"].createElement("span", null, locale.InfiniteScroll.noMore);
15513
+ }
15514
+ if (props.failed) {
15515
+ return React__default["default"].createElement("span", null, React__default["default"].createElement("span", {
15516
+ className: `${classPrefix$y}-failed-text`
15517
+ }, locale.InfiniteScroll.failedToLoad), React__default["default"].createElement("a", {
15518
+ onClick: () => {
15519
+ props.retry();
15520
+ }
15521
+ }, locale.InfiniteScroll.retry));
15522
+ }
15523
+ return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("span", null, locale.common.loading), React__default["default"].createElement(DotLoading, null));
15461
15524
  };
15462
15525
  var input = "";
15463
- const classPrefix$v = `adm-input`;
15526
+ const classPrefix$x = `adm-input`;
15464
15527
  const defaultProps$r = {
15465
15528
  defaultValue: "",
15466
15529
  onlyShowClearWhenFocus: true
@@ -15523,10 +15586,10 @@ const Input = React$1.forwardRef((p2, ref) => {
15523
15586
  }
15524
15587
  })();
15525
15588
  return withNativeProps(props, React__default["default"].createElement("div", {
15526
- className: classNames__default["default"](`${classPrefix$v}`, props.disabled && `${classPrefix$v}-disabled`)
15589
+ className: classNames__default["default"](`${classPrefix$x}`, props.disabled && `${classPrefix$x}-disabled`)
15527
15590
  }, React__default["default"].createElement("input", {
15528
15591
  ref: nativeInputRef,
15529
- className: `${classPrefix$v}-element`,
15592
+ className: `${classPrefix$x}-element`,
15530
15593
  value,
15531
15594
  onChange: (e2) => {
15532
15595
  setValue(e2.target.value);
@@ -15572,7 +15635,7 @@ const Input = React$1.forwardRef((p2, ref) => {
15572
15635
  },
15573
15636
  onClick: props.onClick
15574
15637
  }), shouldShowClear && React__default["default"].createElement("div", {
15575
- className: `${classPrefix$v}-clear`,
15638
+ className: `${classPrefix$x}-clear`,
15576
15639
  onMouseDown: (e2) => {
15577
15640
  e2.preventDefault();
15578
15641
  },
@@ -15588,7 +15651,7 @@ const Input = React$1.forwardRef((p2, ref) => {
15588
15651
  }, React__default["default"].createElement(antdMobileIcons.CloseCircleFill, null))));
15589
15652
  });
15590
15653
  var jumboTabs = "";
15591
- const classPrefix$u = `adm-jumbo-tabs`;
15654
+ const classPrefix$w = `adm-jumbo-tabs`;
15592
15655
  const JumboTab = () => {
15593
15656
  return null;
15594
15657
  };
@@ -15629,19 +15692,19 @@ const JumboTabs = (props) => {
15629
15692
  animate(true);
15630
15693
  }, rootRef);
15631
15694
  return withNativeProps(props, React__default["default"].createElement("div", {
15632
- className: classPrefix$u,
15695
+ className: classPrefix$w,
15633
15696
  ref: rootRef
15634
15697
  }, React__default["default"].createElement("div", {
15635
- className: `${classPrefix$u}-header`
15698
+ className: `${classPrefix$w}-header`
15636
15699
  }, React__default["default"].createElement(ScrollMask, {
15637
15700
  scrollTrackRef: tabListContainerRef
15638
15701
  }), React__default["default"].createElement(web.animated.div, {
15639
- className: `${classPrefix$u}-tab-list`,
15702
+ className: `${classPrefix$w}-tab-list`,
15640
15703
  ref: tabListContainerRef,
15641
15704
  scrollLeft
15642
15705
  }, panes.map((pane) => withNativeProps(pane.props, React__default["default"].createElement("div", {
15643
15706
  key: pane.key,
15644
- className: `${classPrefix$u}-tab-wrapper`
15707
+ className: `${classPrefix$w}-tab-wrapper`
15645
15708
  }, React__default["default"].createElement("div", {
15646
15709
  onClick: () => {
15647
15710
  const {
@@ -15654,14 +15717,14 @@ const JumboTabs = (props) => {
15654
15717
  }
15655
15718
  setActiveKey(key.toString());
15656
15719
  },
15657
- className: classNames__default["default"](`${classPrefix$u}-tab`, {
15658
- [`${classPrefix$u}-tab-active`]: pane.key === activeKey,
15659
- [`${classPrefix$u}-tab-disabled`]: pane.props.disabled
15720
+ className: classNames__default["default"](`${classPrefix$w}-tab`, {
15721
+ [`${classPrefix$w}-tab-active`]: pane.key === activeKey,
15722
+ [`${classPrefix$w}-tab-disabled`]: pane.props.disabled
15660
15723
  })
15661
15724
  }, React__default["default"].createElement("div", {
15662
- className: `${classPrefix$u}-tab-title`
15725
+ className: `${classPrefix$w}-tab-title`
15663
15726
  }, pane.props.title), React__default["default"].createElement("div", {
15664
- className: `${classPrefix$u}-tab-description`
15727
+ className: `${classPrefix$w}-tab-description`
15665
15728
  }, pane.props.description))))))), panes.map((pane) => {
15666
15729
  if (pane.props.children === void 0) {
15667
15730
  return null;
@@ -15673,7 +15736,7 @@ const JumboTabs = (props) => {
15673
15736
  forceRender: pane.props.forceRender,
15674
15737
  destroyOnClose: pane.props.destroyOnClose
15675
15738
  }, React__default["default"].createElement("div", {
15676
- className: `${classPrefix$u}-content`,
15739
+ className: `${classPrefix$w}-content`,
15677
15740
  style: {
15678
15741
  display: active ? "block" : "none"
15679
15742
  }
@@ -15703,52 +15766,13 @@ const ModalActionButton = (props) => {
15703
15766
  }, action.text));
15704
15767
  };
15705
15768
  const defaultProps$q = {
15706
- visible: false,
15707
15769
  actions: [],
15708
15770
  closeOnAction: false,
15709
- closeOnMaskClick: false,
15710
- stopPropagation: ["click"],
15711
- showCloseButton: false,
15712
- getContainer: null,
15713
- disableBodyScroll: true,
15714
- destroyOnClose: false,
15715
- forceRender: false
15771
+ closeOnMaskClick: false
15716
15772
  };
15717
15773
  const Modal = (p2) => {
15718
15774
  const props = mergeProps(defaultProps$q, p2);
15719
- const unmountedRef = ahooks.useUnmountedRef();
15720
- const style = web.useSpring({
15721
- scale: props.visible ? 1 : 0.8,
15722
- opacity: props.visible ? 1 : 0,
15723
- config: {
15724
- mass: 1.2,
15725
- tension: 200,
15726
- friction: 25,
15727
- clamp: true
15728
- },
15729
- onRest: () => {
15730
- var _a, _b;
15731
- if (unmountedRef.current)
15732
- return;
15733
- setActive(props.visible);
15734
- if (props.visible) {
15735
- (_a = props.afterShow) === null || _a === void 0 ? void 0 : _a.call(props);
15736
- } else {
15737
- (_b = props.afterClose) === null || _b === void 0 ? void 0 : _b.call(props);
15738
- }
15739
- }
15740
- });
15741
- const [active, setActive] = React$1.useState(props.visible);
15742
- ahooks.useIsomorphicLayoutEffect(() => {
15743
- if (props.visible) {
15744
- setActive(true);
15745
- }
15746
- }, [props.visible]);
15747
- const maskVisible = useInnerVisible(active && props.visible);
15748
- const body = React__default["default"].createElement("div", {
15749
- className: classNames__default["default"](cls("body"), props.image && cls("with-image"), props.bodyClassName),
15750
- style: props.bodyStyle
15751
- }, props.showCloseButton && React__default["default"].createElement("a", {
15775
+ const element = React__default["default"].createElement(React__default["default"].Fragment, null, props.showCloseButton && React__default["default"].createElement("a", {
15752
15776
  className: classNames__default["default"](cls("close"), "adm-plain-anchor"),
15753
15777
  onClick: props.onClose
15754
15778
  }, React__default["default"].createElement(antdMobileIcons.CloseOutline, null)), !!props.image && React__default["default"].createElement("div", {
@@ -15780,30 +15804,24 @@ const Modal = (p2) => {
15780
15804
  })
15781
15805
  });
15782
15806
  })));
15783
- const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement("div", {
15784
- className: cls(),
15785
- style: {
15786
- display: active ? void 0 : "none",
15787
- pointerEvents: active ? void 0 : "none"
15788
- }
15789
- }, React__default["default"].createElement(Mask, {
15790
- visible: maskVisible,
15791
- forceRender: props.forceRender,
15807
+ return React__default["default"].createElement(CenterPopup, {
15808
+ afterClose: props.afterClose,
15809
+ afterShow: props.afterShow,
15810
+ onMaskClick: props.closeOnMaskClick ? () => {
15811
+ var _a;
15812
+ (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
15813
+ } : void 0,
15814
+ visible: props.visible,
15815
+ getContainer: props.getContainer,
15816
+ bodyStyle: props.bodyStyle,
15817
+ bodyClassName: classNames__default["default"](cls("body"), props.image && cls("with-image"), props.bodyClassName),
15818
+ maskStyle: props.maskStyle,
15819
+ maskClassName: props.maskClassName,
15820
+ stopPropagation: props.stopPropagation,
15821
+ disableBodyScroll: props.disableBodyScroll,
15792
15822
  destroyOnClose: props.destroyOnClose,
15793
- onMaskClick: props.closeOnMaskClick ? props.onClose : void 0,
15794
- style: props.maskStyle,
15795
- className: classNames__default["default"](cls("mask"), props.maskClassName),
15796
- disableBodyScroll: props.disableBodyScroll
15797
- }), React__default["default"].createElement("div", {
15798
- className: cls("wrap")
15799
- }, React__default["default"].createElement(web.animated.div, {
15800
- style
15801
- }, body)))));
15802
- return React__default["default"].createElement(ShouldRender, {
15803
- active,
15804
- forceRender: props.forceRender,
15805
- destroyOnClose: props.destroyOnClose
15806
- }, renderToContainer(props.getContainer, node));
15823
+ forceRender: props.forceRender
15824
+ }, element);
15807
15825
  };
15808
15826
  function cls(name = "") {
15809
15827
  return "adm-modal" + (name && "-") + name;
@@ -15895,7 +15913,7 @@ var index$6 = attachPropertiesToComponent(Modal, {
15895
15913
  clear: clear$1
15896
15914
  });
15897
15915
  var navBar = "";
15898
- const classPrefix$t = `adm-nav-bar`;
15916
+ const classPrefix$v = `adm-nav-bar`;
15899
15917
  const defaultProps$o = {
15900
15918
  back: "",
15901
15919
  backArrow: true
@@ -15907,25 +15925,25 @@ const NavBar = (p2) => {
15907
15925
  backArrow
15908
15926
  } = props;
15909
15927
  return withNativeProps(props, React__default["default"].createElement("div", {
15910
- className: classNames__default["default"](classPrefix$t)
15928
+ className: classNames__default["default"](classPrefix$v)
15911
15929
  }, React__default["default"].createElement("div", {
15912
- className: `${classPrefix$t}-left`,
15930
+ className: `${classPrefix$v}-left`,
15913
15931
  role: "button"
15914
15932
  }, back !== null && React__default["default"].createElement("div", {
15915
- className: `${classPrefix$t}-back`,
15933
+ className: `${classPrefix$v}-back`,
15916
15934
  onClick: props.onBack
15917
15935
  }, backArrow && React__default["default"].createElement("span", {
15918
- className: `${classPrefix$t}-back-arrow`
15936
+ className: `${classPrefix$v}-back-arrow`
15919
15937
  }, backArrow === true ? React__default["default"].createElement(antdMobileIcons.LeftOutline, null) : backArrow), React__default["default"].createElement("span", {
15920
15938
  "aria-hidden": "true"
15921
15939
  }, back)), props.left), React__default["default"].createElement("div", {
15922
- className: `${classPrefix$t}-title`
15940
+ className: `${classPrefix$v}-title`
15923
15941
  }, props.children), React__default["default"].createElement("div", {
15924
- className: `${classPrefix$t}-right`
15942
+ className: `${classPrefix$v}-right`
15925
15943
  }, props.right)));
15926
15944
  };
15927
15945
  var noticeBar = "";
15928
- const classPrefix$s = `adm-notice-bar`;
15946
+ const classPrefix$u = `adm-notice-bar`;
15929
15947
  const defaultProps$n = {
15930
15948
  color: "default",
15931
15949
  delay: 2e3,
@@ -15984,23 +16002,23 @@ const NoticeBar = React$1.memo((p2) => {
15984
16002
  if (!visible)
15985
16003
  return null;
15986
16004
  return withNativeProps(props, React__default["default"].createElement("div", {
15987
- className: classNames__default["default"](classPrefix$s, `${classPrefix$s}-${props.color}`)
16005
+ className: classNames__default["default"](classPrefix$u, `${classPrefix$u}-${props.color}`)
15988
16006
  }, props.icon && React__default["default"].createElement("span", {
15989
- className: `${classPrefix$s}-left`
16007
+ className: `${classPrefix$u}-left`
15990
16008
  }, props.icon), React__default["default"].createElement("span", {
15991
16009
  ref: containerRef,
15992
- className: `${classPrefix$s}-content`
16010
+ className: `${classPrefix$u}-content`
15993
16011
  }, React__default["default"].createElement("span", {
15994
16012
  onTransitionEnd: () => {
15995
16013
  animatingRef.current = false;
15996
16014
  start();
15997
16015
  },
15998
16016
  ref: textRef,
15999
- className: `${classPrefix$s}-content-inner`
16017
+ className: `${classPrefix$u}-content-inner`
16000
16018
  }, props.content)), (props.closeable || props.extra) && React__default["default"].createElement("span", {
16001
- className: `${classPrefix$s}-right`
16019
+ className: `${classPrefix$u}-right`
16002
16020
  }, props.extra, props.closeable && React__default["default"].createElement(antdMobileIcons.CloseOutline, {
16003
- className: `${classPrefix$s}-close-icon`,
16021
+ className: `${classPrefix$u}-close-icon`,
16004
16022
  onClick: () => {
16005
16023
  var _a;
16006
16024
  setVisible(false);
@@ -16017,7 +16035,7 @@ function shuffle(array) {
16017
16035
  }
16018
16036
  return result2;
16019
16037
  }
16020
- const classPrefix$r = "adm-number-keyboard";
16038
+ const classPrefix$t = "adm-number-keyboard";
16021
16039
  const defaultProps$m = {
16022
16040
  defaultVisible: false,
16023
16041
  randomOrder: false,
@@ -16090,13 +16108,13 @@ const NumberKeyboard = (p2) => {
16090
16108
  if (!showCloseButton && !title)
16091
16109
  return null;
16092
16110
  return React__default["default"].createElement("div", {
16093
- className: classNames__default["default"](`${classPrefix$r}-header`, {
16111
+ className: classNames__default["default"](`${classPrefix$t}-header`, {
16094
16112
  "with-title": !!title
16095
16113
  })
16096
16114
  }, title && React__default["default"].createElement("div", {
16097
- className: `${classPrefix$r}-title`
16115
+ className: `${classPrefix$t}-title`
16098
16116
  }, title), showCloseButton && React__default["default"].createElement("span", {
16099
- className: `${classPrefix$r}-header-close-button`,
16117
+ className: `${classPrefix$t}-header-close-button`,
16100
16118
  onClick: () => {
16101
16119
  var _a;
16102
16120
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -16107,7 +16125,7 @@ const NumberKeyboard = (p2) => {
16107
16125
  };
16108
16126
  const renderKey = (key, index2) => {
16109
16127
  const isNumberKey = /^\d$/.test(key);
16110
- const className = classNames__default["default"](`${classPrefix$r}-key`, {
16128
+ const className = classNames__default["default"](`${classPrefix$t}-key`, {
16111
16129
  "number-key": isNumberKey,
16112
16130
  "sign-key": !isNumberKey && key,
16113
16131
  "mid-key": index2 === 9 && !!confirmText
@@ -16136,24 +16154,24 @@ const NumberKeyboard = (p2) => {
16136
16154
  mask: false,
16137
16155
  afterClose: props.afterClose,
16138
16156
  afterShow: props.afterShow,
16139
- className: `${classPrefix$r}-popup`,
16157
+ className: `${classPrefix$t}-popup`,
16140
16158
  stopPropagation: props.stopPropagation
16141
16159
  }, withNativeProps(props, React__default["default"].createElement("div", {
16142
16160
  ref: keyboardRef,
16143
- className: classPrefix$r,
16161
+ className: classPrefix$t,
16144
16162
  onMouseDown: (e2) => {
16145
16163
  e2.preventDefault();
16146
16164
  }
16147
16165
  }, renderHeader(), React__default["default"].createElement("div", {
16148
- className: `${classPrefix$r}-wrapper`
16166
+ className: `${classPrefix$t}-wrapper`
16149
16167
  }, React__default["default"].createElement("div", {
16150
- className: classNames__default["default"](`${classPrefix$r}-main`, {
16168
+ className: classNames__default["default"](`${classPrefix$t}-main`, {
16151
16169
  "confirmed-style": !!confirmText
16152
16170
  })
16153
16171
  }, keys2.map(renderKey)), !!confirmText && React__default["default"].createElement("div", {
16154
- className: `${classPrefix$r}-confirm`
16172
+ className: `${classPrefix$t}-confirm`
16155
16173
  }, React__default["default"].createElement("div", {
16156
- className: `${classPrefix$r}-key extra-key bs-key`,
16174
+ className: `${classPrefix$t}-key extra-key bs-key`,
16157
16175
  onTouchStart: () => {
16158
16176
  onBackspacePressStart();
16159
16177
  },
@@ -16164,17 +16182,17 @@ const NumberKeyboard = (p2) => {
16164
16182
  title: "BACKSPACE",
16165
16183
  role: "button"
16166
16184
  }, React__default["default"].createElement(antdMobileIcons.TextDeletionOutline, null)), React__default["default"].createElement("div", {
16167
- className: `${classPrefix$r}-key extra-key ok-key`,
16185
+ className: `${classPrefix$t}-key extra-key ok-key`,
16168
16186
  onTouchEnd: (e2) => onKeyPress(e2, "OK"),
16169
16187
  role: "button"
16170
16188
  }, confirmText))), props.safeArea && React__default["default"].createElement("div", {
16171
- className: `${classPrefix$r}-footer`
16189
+ className: `${classPrefix$t}-footer`
16172
16190
  }, React__default["default"].createElement(SafeArea, {
16173
16191
  position: "bottom"
16174
16192
  })))));
16175
16193
  };
16176
16194
  var pageIndicator = "";
16177
- const classPrefix$q = `adm-page-indicator`;
16195
+ const classPrefix$s = `adm-page-indicator`;
16178
16196
  const defaultProps$l = {
16179
16197
  color: "primary",
16180
16198
  direction: "horizontal"
@@ -16185,17 +16203,17 @@ const PageIndicator = React$1.memo((p2) => {
16185
16203
  for (let i = 0; i < props.total; i++) {
16186
16204
  dots.push(React__default["default"].createElement("div", {
16187
16205
  key: i,
16188
- className: classNames__default["default"](`${classPrefix$q}-dot`, {
16189
- [`${classPrefix$q}-dot-active`]: props.current === i
16206
+ className: classNames__default["default"](`${classPrefix$s}-dot`, {
16207
+ [`${classPrefix$s}-dot-active`]: props.current === i
16190
16208
  })
16191
16209
  }));
16192
16210
  }
16193
16211
  return withNativeProps(props, React__default["default"].createElement("div", {
16194
- className: classNames__default["default"](classPrefix$q, `${classPrefix$q}-${props.direction}`, `${classPrefix$q}-color-${props.color}`)
16212
+ className: classNames__default["default"](classPrefix$s, `${classPrefix$s}-${props.direction}`, `${classPrefix$s}-color-${props.color}`)
16195
16213
  }, dots));
16196
16214
  });
16197
16215
  var passcodeInput = "";
16198
- const classPrefix$p = "adm-passcode-input";
16216
+ const classPrefix$r = "adm-passcode-input";
16199
16217
  const defaultProps$k = {
16200
16218
  defaultValue: "",
16201
16219
  length: 6,
@@ -16263,7 +16281,7 @@ const PasscodeInput = React$1.forwardRef((p2, ref) => {
16263
16281
  const focusedIndex = bound(chars.length, 0, cellLength - 1);
16264
16282
  for (let i = 0; i < cellLength; i++) {
16265
16283
  cells.push(React__default["default"].createElement("div", {
16266
- className: classNames__default["default"](`${classPrefix$p}-cell`, {
16284
+ className: classNames__default["default"](`${classPrefix$r}-cell`, {
16267
16285
  caret: props.caret && caretIndex === i && focused,
16268
16286
  focused: focusedIndex === i && focused,
16269
16287
  dot: !props.plain && chars[i]
@@ -16273,7 +16291,7 @@ const PasscodeInput = React$1.forwardRef((p2, ref) => {
16273
16291
  }
16274
16292
  return cells;
16275
16293
  };
16276
- const cls2 = classNames__default["default"](classPrefix$p, {
16294
+ const cls2 = classNames__default["default"](classPrefix$r, {
16277
16295
  focused,
16278
16296
  error: props.error,
16279
16297
  seperated: props.seperated
@@ -16285,10 +16303,10 @@ const PasscodeInput = React$1.forwardRef((p2, ref) => {
16285
16303
  onFocus,
16286
16304
  onBlur
16287
16305
  }, React__default["default"].createElement("div", {
16288
- className: `${classPrefix$p}-cell-container`
16306
+ className: `${classPrefix$r}-cell-container`
16289
16307
  }, renderCells()), React__default["default"].createElement("input", {
16290
16308
  ref: nativeInputRef,
16291
- className: `${classPrefix$p}-native-input`,
16309
+ className: `${classPrefix$r}-native-input`,
16292
16310
  value,
16293
16311
  type: "text",
16294
16312
  pattern: "[0-9]*",
@@ -16313,7 +16331,7 @@ const PasscodeInput = React$1.forwardRef((p2, ref) => {
16313
16331
  }));
16314
16332
  });
16315
16333
  var progressBar = "";
16316
- const classPrefix$o = `adm-progress-bar`;
16334
+ const classPrefix$q = `adm-progress-bar`;
16317
16335
  const ProgressBar = (p2) => {
16318
16336
  const props = mergeProps({
16319
16337
  percent: 0
@@ -16322,16 +16340,16 @@ const ProgressBar = (p2) => {
16322
16340
  width: `${props.percent}%`
16323
16341
  };
16324
16342
  return withNativeProps(props, React__default["default"].createElement("div", {
16325
- className: classPrefix$o
16343
+ className: classPrefix$q
16326
16344
  }, React__default["default"].createElement("div", {
16327
- className: `${classPrefix$o}-trail`
16345
+ className: `${classPrefix$q}-trail`
16328
16346
  }, React__default["default"].createElement("div", {
16329
- className: `${classPrefix$o}-fill`,
16347
+ className: `${classPrefix$q}-fill`,
16330
16348
  style: fillStyle
16331
16349
  }))));
16332
16350
  };
16333
16351
  var progressCircle = "";
16334
- const classPrefix$n = `adm-progress-circle`;
16352
+ const classPrefix$p = `adm-progress-circle`;
16335
16353
  const ProgressCircle = (p2) => {
16336
16354
  const props = mergeProps({
16337
16355
  percent: 0
@@ -16340,25 +16358,25 @@ const ProgressCircle = (p2) => {
16340
16358
  "--percent": props.percent.toString()
16341
16359
  };
16342
16360
  return withNativeProps(props, React__default["default"].createElement("div", {
16343
- className: `${classPrefix$n}`,
16361
+ className: `${classPrefix$p}`,
16344
16362
  style
16345
16363
  }, React__default["default"].createElement("div", {
16346
- className: `${classPrefix$n}-content`
16364
+ className: `${classPrefix$p}-content`
16347
16365
  }, React__default["default"].createElement("svg", {
16348
- className: `${classPrefix$n}-svg`
16366
+ className: `${classPrefix$p}-svg`
16349
16367
  }, React__default["default"].createElement("circle", {
16350
- className: `${classPrefix$n}-track`,
16368
+ className: `${classPrefix$p}-track`,
16351
16369
  fill: "transparent"
16352
16370
  }), React__default["default"].createElement("circle", {
16353
- className: `${classPrefix$n}-fill`,
16371
+ className: `${classPrefix$p}-fill`,
16354
16372
  fill: "transparent"
16355
16373
  })), React__default["default"].createElement("div", {
16356
- className: `${classPrefix$n}-info`
16374
+ className: `${classPrefix$p}-info`
16357
16375
  }, props.children))));
16358
16376
  };
16359
16377
  var pullToRefresh = "";
16360
16378
  const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
16361
- const classPrefix$m = `adm-pull-to-refresh`;
16379
+ const classPrefix$o = `adm-pull-to-refresh`;
16362
16380
  const defaultProps$j = {
16363
16381
  pullingText: "\u4E0B\u62C9\u5237\u65B0",
16364
16382
  canReleaseText: "\u91CA\u653E\u7ACB\u5373\u5237\u65B0",
@@ -16511,17 +16529,17 @@ const PullToRefresh = (p2) => {
16511
16529
  };
16512
16530
  return React__default["default"].createElement(web.animated.div, {
16513
16531
  ref: elementRef,
16514
- className: classPrefix$m
16532
+ className: classPrefix$o
16515
16533
  }, React__default["default"].createElement(web.animated.div, {
16516
16534
  style: springStyles,
16517
- className: `${classPrefix$m}-head`
16535
+ className: `${classPrefix$o}-head`
16518
16536
  }, React__default["default"].createElement("div", {
16519
- className: `${classPrefix$m}-head-content`,
16537
+ className: `${classPrefix$o}-head-content`,
16520
16538
  style: {
16521
16539
  height: headHeight
16522
16540
  }
16523
16541
  }, renderStatusText())), React__default["default"].createElement("div", {
16524
- className: `${classPrefix$m}-content`
16542
+ className: `${classPrefix$o}-content`
16525
16543
  }, props.children));
16526
16544
  };
16527
16545
  var radio = "";
@@ -16554,7 +16572,7 @@ const Group = (p2) => {
16554
16572
  }
16555
16573
  }, props.children);
16556
16574
  };
16557
- const classPrefix$l = `adm-radio`;
16575
+ const classPrefix$n = `adm-radio`;
16558
16576
  const defaultProps$h = {
16559
16577
  defaultChecked: false
16560
16578
  };
@@ -16586,18 +16604,18 @@ const Radio = (p2) => {
16586
16604
  const renderIcon = () => {
16587
16605
  if (props.icon) {
16588
16606
  return React__default["default"].createElement("div", {
16589
- className: `${classPrefix$l}-custom-icon`
16607
+ className: `${classPrefix$n}-custom-icon`
16590
16608
  }, props.icon(checked));
16591
16609
  }
16592
16610
  return React__default["default"].createElement("div", {
16593
- className: `${classPrefix$l}-icon`
16611
+ className: `${classPrefix$n}-icon`
16594
16612
  }, checked && React__default["default"].createElement(CheckIcon, null));
16595
16613
  };
16596
16614
  return withNativeProps(props, React__default["default"].createElement("label", {
16597
- className: classNames__default["default"](classPrefix$l, {
16598
- [`${classPrefix$l}-checked`]: checked,
16599
- [`${classPrefix$l}-disabled`]: disabled,
16600
- [`${classPrefix$l}-block`]: props.block
16615
+ className: classNames__default["default"](classPrefix$n, {
16616
+ [`${classPrefix$n}-checked`]: checked,
16617
+ [`${classPrefix$n}-disabled`]: disabled,
16618
+ [`${classPrefix$n}-block`]: props.block
16601
16619
  })
16602
16620
  }, React__default["default"].createElement(NativeInput, {
16603
16621
  type: "radio",
@@ -16606,14 +16624,14 @@ const Radio = (p2) => {
16606
16624
  disabled,
16607
16625
  id: props.id
16608
16626
  }), renderIcon(), props.children && React__default["default"].createElement("div", {
16609
- className: `${classPrefix$l}-content`
16627
+ className: `${classPrefix$n}-content`
16610
16628
  }, props.children)));
16611
16629
  };
16612
16630
  var index$5 = attachPropertiesToComponent(Radio, {
16613
16631
  Group
16614
16632
  });
16615
16633
  var rate = "";
16616
- const classPrefix$k = `adm-rate`;
16634
+ const classPrefix$m = `adm-rate`;
16617
16635
  const defaultProps$g = {
16618
16636
  count: 5,
16619
16637
  allowHalf: false,
@@ -16628,10 +16646,10 @@ const Rate = (p2) => {
16628
16646
  const starList = Array(props.count).fill(null);
16629
16647
  function renderStar(v, half) {
16630
16648
  return React__default["default"].createElement("div", {
16631
- className: classNames__default["default"](`${classPrefix$k}-star`, {
16632
- [`${classPrefix$k}-star-active`]: value >= v,
16633
- [`${classPrefix$k}-star-half`]: half,
16634
- [`${classPrefix$k}-star-readonly`]: props.readOnly
16649
+ className: classNames__default["default"](`${classPrefix$m}-star`, {
16650
+ [`${classPrefix$m}-star-active`]: value >= v,
16651
+ [`${classPrefix$m}-star-half`]: half,
16652
+ [`${classPrefix$m}-star-readonly`]: props.readOnly
16635
16653
  }),
16636
16654
  onClick: () => {
16637
16655
  if (props.readOnly)
@@ -16645,14 +16663,14 @@ const Rate = (p2) => {
16645
16663
  }, props.character);
16646
16664
  }
16647
16665
  return withNativeProps(props, React__default["default"].createElement("div", {
16648
- className: classPrefix$k
16666
+ className: classPrefix$m
16649
16667
  }, starList.map((_, i) => React__default["default"].createElement("div", {
16650
16668
  key: i,
16651
- className: classNames__default["default"](`${classPrefix$k}-box`)
16669
+ className: classNames__default["default"](`${classPrefix$m}-box`)
16652
16670
  }, props.allowHalf && renderStar(i + 0.5, true), renderStar(i + 1, false)))));
16653
16671
  };
16654
16672
  var result = "";
16655
- const classPrefix$j = `adm-result`;
16673
+ const classPrefix$l = `adm-result`;
16656
16674
  const iconRecord = {
16657
16675
  success: antdMobileIcons.CheckCircleFill,
16658
16676
  error: antdMobileIcons.CloseCircleFill,
@@ -16671,17 +16689,17 @@ const Result = (props) => {
16671
16689
  return null;
16672
16690
  const resultIcon = icon || React__default["default"].createElement(iconRecord[status]);
16673
16691
  return withNativeProps(props, React__default["default"].createElement("div", {
16674
- className: classNames__default["default"](classPrefix$j, `${classPrefix$j}-${status}`)
16692
+ className: classNames__default["default"](classPrefix$l, `${classPrefix$l}-${status}`)
16675
16693
  }, React__default["default"].createElement("div", {
16676
- className: `${classPrefix$j}-icon`
16694
+ className: `${classPrefix$l}-icon`
16677
16695
  }, resultIcon), React__default["default"].createElement("div", {
16678
- className: `${classPrefix$j}-title`
16696
+ className: `${classPrefix$l}-title`
16679
16697
  }, title), description ? React__default["default"].createElement("div", {
16680
- className: `${classPrefix$j}-description`
16698
+ className: `${classPrefix$l}-description`
16681
16699
  }, description) : null));
16682
16700
  };
16683
16701
  var searchBar = "";
16684
- const classPrefix$i = `adm-search-bar`;
16702
+ const classPrefix$k = `adm-search-bar`;
16685
16703
  const defaultProps$f = {
16686
16704
  clearable: true,
16687
16705
  onlyShowClearWhenFocus: false,
@@ -16726,10 +16744,10 @@ const SearchBar = React$1.forwardRef((p2, ref) => {
16726
16744
  isShowCancel = props.showCancelButton && hasFocus;
16727
16745
  }
16728
16746
  return isShowCancel && React__default["default"].createElement("div", {
16729
- className: `${classPrefix$i}-suffix`
16747
+ className: `${classPrefix$k}-suffix`
16730
16748
  }, React__default["default"].createElement(Button, {
16731
16749
  fill: "none",
16732
- className: `${classPrefix$i}-cancel-button`,
16750
+ className: `${classPrefix$k}-cancel-button`,
16733
16751
  onClick: () => {
16734
16752
  var _a, _b, _c;
16735
16753
  if (props.clearOnCancel) {
@@ -16744,17 +16762,17 @@ const SearchBar = React$1.forwardRef((p2, ref) => {
16744
16762
  }, props.cancelText));
16745
16763
  };
16746
16764
  return withNativeProps(props, React__default["default"].createElement("div", {
16747
- className: classNames__default["default"](classPrefix$i, {
16748
- [`${classPrefix$i}-active`]: hasFocus
16765
+ className: classNames__default["default"](classPrefix$k, {
16766
+ [`${classPrefix$k}-active`]: hasFocus
16749
16767
  })
16750
16768
  }, React__default["default"].createElement("div", {
16751
- className: `${classPrefix$i}-input-box`
16769
+ className: `${classPrefix$k}-input-box`
16752
16770
  }, props.icon && React__default["default"].createElement("div", {
16753
- className: `${classPrefix$i}-input-box-icon`
16771
+ className: `${classPrefix$k}-input-box-icon`
16754
16772
  }, props.icon), React__default["default"].createElement(Input, {
16755
16773
  ref: inputRef,
16756
- className: classNames__default["default"](`${classPrefix$i}-input`, {
16757
- [`${classPrefix$i}-input-without-icon`]: !props.icon
16774
+ className: classNames__default["default"](`${classPrefix$k}-input`, {
16775
+ [`${classPrefix$k}-input-without-icon`]: !props.icon
16758
16776
  }),
16759
16777
  value,
16760
16778
  onChange: setValue,
@@ -16811,7 +16829,7 @@ const CheckMark = React$1.memo(() => {
16811
16829
  points: "34.2767388 22 24.797043 31.4796958 21 27.6826527"
16812
16830
  })))))));
16813
16831
  });
16814
- const classPrefix$h = `adm-selector`;
16832
+ const classPrefix$j = `adm-selector`;
16815
16833
  const defaultProps$e = {
16816
16834
  multiple: false,
16817
16835
  defaultValue: [],
@@ -16835,10 +16853,10 @@ const Selector = (p2) => {
16835
16853
  const items = props.options.map((option) => {
16836
16854
  const active = (value || []).includes(option.value);
16837
16855
  const disabled = option.disabled || props.disabled;
16838
- const itemCls = classNames__default["default"](`${classPrefix$h}-item`, {
16839
- [`${classPrefix$h}-item-active`]: active && !props.multiple,
16840
- [`${classPrefix$h}-item-multiple-active`]: active && props.multiple,
16841
- [`${classPrefix$h}-item-disabled`]: disabled
16856
+ const itemCls = classNames__default["default"](`${classPrefix$j}-item`, {
16857
+ [`${classPrefix$j}-item-active`]: active && !props.multiple,
16858
+ [`${classPrefix$j}-item-multiple-active`]: active && props.multiple,
16859
+ [`${classPrefix$j}-item-disabled`]: disabled
16842
16860
  });
16843
16861
  return React__default["default"].createElement("div", {
16844
16862
  key: option.value,
@@ -16856,13 +16874,13 @@ const Selector = (p2) => {
16856
16874
  }
16857
16875
  }
16858
16876
  }, option.label, option.description && React__default["default"].createElement("div", {
16859
- className: `${classPrefix$h}-item-description`
16877
+ className: `${classPrefix$j}-item-description`
16860
16878
  }, option.description), active && props.showCheckMark && React__default["default"].createElement("div", {
16861
- className: `${classPrefix$h}-check-mark-wrapper`
16879
+ className: `${classPrefix$j}-check-mark-wrapper`
16862
16880
  }, React__default["default"].createElement(CheckMark, null)));
16863
16881
  });
16864
16882
  return withNativeProps(props, React__default["default"].createElement("div", {
16865
- className: classPrefix$h
16883
+ className: classPrefix$j
16866
16884
  }, !props.columns && React__default["default"].createElement(Space, {
16867
16885
  wrap: true
16868
16886
  }, items), props.columns && React__default["default"].createElement(Grid, {
@@ -16880,10 +16898,10 @@ const Corner = React$1.memo((props) => withNativeProps(props, React__default["de
16880
16898
  fillRule: "evenodd"
16881
16899
  }, React__default["default"].createElement("path", {
16882
16900
  d: "M30,0 C13.4314575,3.04359188e-15 -2.02906125e-15,13.4314575 0,30 L0,30 L0,0 Z",
16883
- fill: "var(--adm-color-white)",
16901
+ fill: "var(--adm-color-background)",
16884
16902
  transform: "translate(15.000000, 15.000000) scale(-1, -1) translate(-15.000000, -15.000000) "
16885
16903
  })))));
16886
- const classPrefix$g = `adm-side-bar`;
16904
+ const classPrefix$i = `adm-side-bar`;
16887
16905
  const SideBarItem = () => {
16888
16906
  return null;
16889
16907
  };
@@ -16915,9 +16933,9 @@ const SideBar = (props) => {
16915
16933
  const lastItem = items[items.length - 1];
16916
16934
  const isLastItemActive = lastItem && lastItem.key === activeKey;
16917
16935
  return withNativeProps(props, React__default["default"].createElement("div", {
16918
- className: classPrefix$g
16936
+ className: classPrefix$i
16919
16937
  }, React__default["default"].createElement("div", {
16920
- className: `${classPrefix$g}-items`
16938
+ className: `${classPrefix$i}-items`
16921
16939
  }, items.map((item, index2) => {
16922
16940
  const active = item.key === activeKey;
16923
16941
  const isActiveNextSibling = items[index2 - 1] && items[index2 - 1].key === activeKey;
@@ -16932,33 +16950,33 @@ const SideBar = (props) => {
16932
16950
  return;
16933
16951
  setActiveKey(key.toString());
16934
16952
  },
16935
- className: classNames__default["default"](`${classPrefix$g}-item`, {
16936
- [`${classPrefix$g}-item-active`]: active,
16937
- [`${classPrefix$g}-item-disabled`]: item.props.disabled
16953
+ className: classNames__default["default"](`${classPrefix$i}-item`, {
16954
+ [`${classPrefix$i}-item-active`]: active,
16955
+ [`${classPrefix$i}-item-disabled`]: item.props.disabled
16938
16956
  })
16939
16957
  }, React__default["default"].createElement(React__default["default"].Fragment, null, isActiveNextSibling && React__default["default"].createElement(Corner, {
16940
- className: `${classPrefix$g}-item-corner ${classPrefix$g}-item-corner-top`
16958
+ className: `${classPrefix$i}-item-corner ${classPrefix$i}-item-corner-top`
16941
16959
  }), isActivePreviousSibling && React__default["default"].createElement(Corner, {
16942
- className: `${classPrefix$g}-item-corner ${classPrefix$g}-item-corner-bottom`
16960
+ className: `${classPrefix$i}-item-corner ${classPrefix$i}-item-corner-bottom`
16943
16961
  })), React__default["default"].createElement(Badge, {
16944
16962
  content: item.props.badge,
16945
- className: `${classPrefix$g}-badge`
16963
+ className: `${classPrefix$i}-badge`
16946
16964
  }, React__default["default"].createElement("div", {
16947
- className: `${classPrefix$g}-item-title`
16965
+ className: `${classPrefix$i}-item-title`
16948
16966
  }, active && React__default["default"].createElement("div", {
16949
- className: `${classPrefix$g}-item-highlight`
16967
+ className: `${classPrefix$i}-item-highlight`
16950
16968
  }), item.props.title))));
16951
16969
  })), React__default["default"].createElement("div", {
16952
- className: classNames__default["default"](`${classPrefix$g}-extra-space`, isLastItemActive && `${classPrefix$g}-item-active-next-sibling`)
16970
+ className: classNames__default["default"](`${classPrefix$i}-extra-space`, isLastItemActive && `${classPrefix$i}-item-active-next-sibling`)
16953
16971
  }, isLastItemActive && React__default["default"].createElement(Corner, {
16954
- className: `${classPrefix$g}-item-corner ${classPrefix$g}-item-corner-top`
16972
+ className: `${classPrefix$i}-item-corner ${classPrefix$i}-item-corner-top`
16955
16973
  }))));
16956
16974
  };
16957
16975
  var index$4 = attachPropertiesToComponent(SideBar, {
16958
16976
  Item: SideBarItem
16959
16977
  });
16960
16978
  var slider = "";
16961
- const classPrefix$f = `adm-slider`;
16979
+ const classPrefix$h = `adm-slider`;
16962
16980
  const Ticks = ({
16963
16981
  points,
16964
16982
  max,
@@ -16974,8 +16992,8 @@ const Ticks = ({
16974
16992
  left: offset
16975
16993
  };
16976
16994
  const pointClassName = classNames__default["default"]({
16977
- [`${classPrefix$f}-tick`]: true,
16978
- [`${classPrefix$f}-tick-active`]: isActived
16995
+ [`${classPrefix$h}-tick`]: true,
16996
+ [`${classPrefix$h}-tick-active`]: isActived
16979
16997
  });
16980
16998
  return React__default["default"].createElement("span", {
16981
16999
  className: pointClassName,
@@ -16984,10 +17002,10 @@ const Ticks = ({
16984
17002
  });
16985
17003
  });
16986
17004
  return React__default["default"].createElement("div", {
16987
- className: `${classPrefix$f}-ticks`
17005
+ className: `${classPrefix$h}-ticks`
16988
17006
  }, elements);
16989
17007
  };
16990
- const classPrefix$e = `adm-slider-mark`;
17008
+ const classPrefix$g = `adm-slider-mark`;
16991
17009
  const Marks = ({
16992
17010
  marks,
16993
17011
  upperBound,
@@ -17004,8 +17022,8 @@ const Marks = ({
17004
17022
  }
17005
17023
  const isActive = point <= upperBound && point >= lowerBound;
17006
17024
  const markClassName = classNames__default["default"]({
17007
- [`${classPrefix$e}-text`]: true,
17008
- [`${classPrefix$e}-text-active`]: isActive
17025
+ [`${classPrefix$g}-text`]: true,
17026
+ [`${classPrefix$g}-text-active`]: isActive
17009
17027
  });
17010
17028
  const style = {
17011
17029
  left: `${(point - min) / range * 100}%`
@@ -17017,33 +17035,35 @@ const Marks = ({
17017
17035
  }, markPoint);
17018
17036
  });
17019
17037
  return React__default["default"].createElement("div", {
17020
- className: classPrefix$e
17038
+ className: classPrefix$g
17021
17039
  }, elements);
17022
17040
  };
17023
17041
  const ThumbIcon = (props) => {
17024
17042
  return withNativeProps(props, React__default["default"].createElement("svg", {
17025
- viewBox: "0 0 20 20"
17043
+ viewBox: "0 0 24 24",
17044
+ xmlns: "http://www.w3.org/2000/svg"
17026
17045
  }, React__default["default"].createElement("g", {
17027
- stroke: "none",
17028
- strokeWidth: "1",
17029
- fill: "none",
17046
+ fill: "currentColor",
17030
17047
  fillRule: "evenodd"
17031
- }, React__default["default"].createElement("g", {
17032
- transform: "translate(-604.000000, -656.000000)",
17033
- fill: "#999999"
17034
- }, React__default["default"].createElement("g", {
17035
- transform: "translate(592.000000, 644.000000)"
17036
- }, React__default["default"].createElement("g", {
17037
- transform: "translate(12.000000, 12.000000)"
17038
- }, React__default["default"].createElement("polygon", {
17039
- points: "0 3.33333333 2.22222222 3.33333333 2.22222222 17.7777778 0 17.7777778"
17040
- }), React__default["default"].createElement("polygon", {
17041
- points: "17.7777778 3.33333333 20 3.33333333 20 17.7777778 17.7777778 17.7777778"
17042
- }), React__default["default"].createElement("path", {
17043
- d: "M10.8888889,0 L9.11111111,0 C8.98888889,0 8.88888889,0.107142857 8.88888889,0.238095238 L8.88888889,19.7619048 C8.88888889,19.8928571 8.98888889,20 9.11111111,20 L10.8888889,20 C11.0111111,20 11.1111111,19.8928571 11.1111111,19.7619048 L11.1111111,0.238095238 C11.1111111,0.107142857 11.0111111,0 10.8888889,0 Z"
17044
- })))))));
17048
+ }, React__default["default"].createElement("rect", {
17049
+ x: 10,
17050
+ width: 4,
17051
+ height: 24,
17052
+ rx: 2
17053
+ }), React__default["default"].createElement("rect", {
17054
+ y: 4,
17055
+ width: 4,
17056
+ height: 16,
17057
+ rx: 2
17058
+ }), React__default["default"].createElement("rect", {
17059
+ x: 20,
17060
+ y: 4,
17061
+ width: 4,
17062
+ height: 16,
17063
+ rx: 2
17064
+ }))));
17045
17065
  };
17046
- const classPrefix$d = `adm-slider`;
17066
+ const classPrefix$f = `adm-slider`;
17047
17067
  const Thumb = (props) => {
17048
17068
  const {
17049
17069
  value,
@@ -17060,6 +17080,7 @@ const Thumb = (props) => {
17060
17080
  right: "auto"
17061
17081
  };
17062
17082
  };
17083
+ const [dragging, setDragging] = React$1.useState(false);
17063
17084
  const bind = react.useDrag((state) => {
17064
17085
  var _a;
17065
17086
  if (disabled)
@@ -17073,29 +17094,39 @@ const Thumb = (props) => {
17073
17094
  return;
17074
17095
  const diff = x / Math.ceil(sliderOffsetWith) * (max - min);
17075
17096
  onDrag(prevValue.current + diff, state.first, state.last);
17097
+ setDragging(!state.last);
17076
17098
  }, {
17077
17099
  axis: "x",
17078
17100
  pointer: {
17079
17101
  touch: true
17080
17102
  }
17081
17103
  });
17104
+ const renderPopoverContent = typeof props.popover === "function" ? props.popover : props.popover ? (value2) => value2.toString() : null;
17105
+ const thumbElement = React__default["default"].createElement("div", {
17106
+ className: `${classPrefix$f}-thumb`
17107
+ }, icon ? icon : React__default["default"].createElement(ThumbIcon, {
17108
+ className: `${classPrefix$f}-thumb-icon`
17109
+ }));
17082
17110
  return React__default["default"].createElement("div", Object.assign({
17083
- className: `${classPrefix$d}-thumb-container`,
17111
+ className: `${classPrefix$f}-thumb-container`,
17084
17112
  style: currentPosition()
17085
- }, bind()), React__default["default"].createElement("div", {
17086
- className: `${classPrefix$d}-thumb`
17087
- }, icon ? icon : React__default["default"].createElement(ThumbIcon, {
17088
- className: `${classPrefix$d}-thumb-icon`
17089
- })));
17113
+ }, bind()), renderPopoverContent ? React__default["default"].createElement(Popover$1, {
17114
+ content: renderPopoverContent(value),
17115
+ placement: "top",
17116
+ visible: dragging,
17117
+ getContainer: null,
17118
+ mode: "dark"
17119
+ }, thumbElement) : thumbElement);
17090
17120
  };
17091
- const classPrefix$c = `adm-slider`;
17121
+ const classPrefix$e = `adm-slider`;
17092
17122
  const defaultProps$d = {
17093
17123
  min: 0,
17094
17124
  max: 100,
17095
17125
  step: 1,
17096
17126
  ticks: false,
17097
17127
  range: false,
17098
- disabled: false
17128
+ disabled: false,
17129
+ popover: false
17099
17130
  };
17100
17131
  const Slider = (p2) => {
17101
17132
  var _a;
@@ -17190,13 +17221,14 @@ const Slider = (p2) => {
17190
17221
  const valueBeforeDragRef = React$1.useRef();
17191
17222
  const renderThumb = (index2) => {
17192
17223
  return React__default["default"].createElement(Thumb, {
17193
- icon,
17194
17224
  key: index2,
17195
17225
  value: sliderValue[index2],
17196
17226
  min,
17197
17227
  max,
17198
17228
  disabled,
17199
17229
  trackRef,
17230
+ icon,
17231
+ popover: props.popover,
17200
17232
  onDrag: (position, first, last) => {
17201
17233
  if (first) {
17202
17234
  dragLockRef.current += 1;
@@ -17219,18 +17251,18 @@ const Slider = (p2) => {
17219
17251
  });
17220
17252
  };
17221
17253
  return withNativeProps(props, React__default["default"].createElement("div", {
17222
- className: classNames__default["default"](classPrefix$c, {
17223
- [`${classPrefix$c}-disabled`]: disabled
17254
+ className: classNames__default["default"](classPrefix$e, {
17255
+ [`${classPrefix$e}-disabled`]: disabled
17224
17256
  })
17225
17257
  }, React__default["default"].createElement("div", {
17226
- className: `${classPrefix$c}-track-container`,
17258
+ className: `${classPrefix$e}-track-container`,
17227
17259
  onClick: onTrackClick
17228
17260
  }, React__default["default"].createElement("div", {
17229
- className: `${classPrefix$c}-track`,
17261
+ className: `${classPrefix$e}-track`,
17230
17262
  onClick: onTrackClick,
17231
17263
  ref: trackRef
17232
17264
  }, React__default["default"].createElement("div", {
17233
- className: `${classPrefix$c}-fill`,
17265
+ className: `${classPrefix$e}-fill`,
17234
17266
  style: {
17235
17267
  width: fillSize,
17236
17268
  left: fillStart
@@ -17250,7 +17282,7 @@ const Slider = (p2) => {
17250
17282
  })));
17251
17283
  };
17252
17284
  var stepper = "";
17253
- const classPrefix$b = `adm-stepper`;
17285
+ const classPrefix$d = `adm-stepper`;
17254
17286
  const defaultProps$c = {
17255
17287
  defaultValue: 0,
17256
17288
  step: 1,
@@ -17328,20 +17360,20 @@ const Stepper = (p2) => {
17328
17360
  return false;
17329
17361
  };
17330
17362
  return withNativeProps(props, React__default["default"].createElement("div", {
17331
- className: classNames__default["default"](classPrefix$b, {
17332
- [`${classPrefix$b}-active`]: hasFocus
17363
+ className: classNames__default["default"](classPrefix$d, {
17364
+ [`${classPrefix$d}-active`]: hasFocus
17333
17365
  })
17334
17366
  }, React__default["default"].createElement(Button, {
17335
- className: `${classPrefix$b}-minus`,
17367
+ className: `${classPrefix$d}-minus`,
17336
17368
  onClick: handleMinus,
17337
17369
  disabled: minusDisabled(),
17338
17370
  fill: "none",
17339
17371
  shape: "rectangular",
17340
17372
  color: "primary"
17341
17373
  }, React__default["default"].createElement(antdMobileIcons.MinusOutline, null)), React__default["default"].createElement("div", {
17342
- className: `${classPrefix$b}-middle`
17374
+ className: `${classPrefix$d}-middle`
17343
17375
  }, React__default["default"].createElement(Input, {
17344
- className: `${classPrefix$b}-input`,
17376
+ className: `${classPrefix$d}-input`,
17345
17377
  onFocus: (e2) => {
17346
17378
  var _a;
17347
17379
  setHasFocus(true);
@@ -17359,7 +17391,7 @@ const Stepper = (p2) => {
17359
17391
  },
17360
17392
  readOnly: inputReadOnly
17361
17393
  })), React__default["default"].createElement(Button, {
17362
- className: `${classPrefix$b}-plus`,
17394
+ className: `${classPrefix$d}-plus`,
17363
17395
  onClick: handlePlus,
17364
17396
  disabled: plusDisabled(),
17365
17397
  fill: "none",
@@ -17382,7 +17414,7 @@ function convertTextToValue(text) {
17382
17414
  return parseFloat(text);
17383
17415
  }
17384
17416
  var steps = "";
17385
- const classPrefix$a = `adm-step`;
17417
+ const classPrefix$c = `adm-step`;
17386
17418
  const Step = (props) => {
17387
17419
  const {
17388
17420
  title,
@@ -17391,20 +17423,20 @@ const Step = (props) => {
17391
17423
  status = "wait"
17392
17424
  } = props;
17393
17425
  return withNativeProps(props, React__default["default"].createElement("div", {
17394
- className: classNames__default["default"](`${classPrefix$a}`, `${classPrefix$a}-status-${status}`)
17426
+ className: classNames__default["default"](`${classPrefix$c}`, `${classPrefix$c}-status-${status}`)
17395
17427
  }, React__default["default"].createElement("div", {
17396
- className: `${classPrefix$a}-indicator`
17428
+ className: `${classPrefix$c}-indicator`
17397
17429
  }, React__default["default"].createElement("div", {
17398
- className: `${classPrefix$a}-icon-container`
17430
+ className: `${classPrefix$c}-icon-container`
17399
17431
  }, icon)), React__default["default"].createElement("div", {
17400
- className: `${classPrefix$a}-content`
17432
+ className: `${classPrefix$c}-content`
17401
17433
  }, React__default["default"].createElement("div", {
17402
- className: `${classPrefix$a}-title`
17434
+ className: `${classPrefix$c}-title`
17403
17435
  }, title), !!description && React__default["default"].createElement("div", {
17404
- className: `${classPrefix$a}-description`
17436
+ className: `${classPrefix$c}-description`
17405
17437
  }, description))));
17406
17438
  };
17407
- const classPrefix$9 = `adm-steps`;
17439
+ const classPrefix$b = `adm-steps`;
17408
17440
  const stepClassPrefix = `adm-step`;
17409
17441
  const defaultIcon = React__default["default"].createElement("span", {
17410
17442
  className: `${stepClassPrefix}-icon-dot`
@@ -17419,7 +17451,7 @@ const Steps = (p2) => {
17419
17451
  direction,
17420
17452
  current
17421
17453
  } = props;
17422
- const classString = classNames__default["default"](classPrefix$9, `${classPrefix$9}-${direction}`);
17454
+ const classString = classNames__default["default"](classPrefix$b, `${classPrefix$b}-${direction}`);
17423
17455
  return withNativeProps(props, React__default["default"].createElement("div", {
17424
17456
  className: classString
17425
17457
  }, React__default["default"].Children.map(props.children, (child, index2) => {
@@ -17445,6 +17477,7 @@ var index$3 = attachPropertiesToComponent(Steps, {
17445
17477
  Step
17446
17478
  });
17447
17479
  var swipeAction = "";
17480
+ const classPrefix$a = `adm-swipe-action`;
17448
17481
  const defaultProps$a = {
17449
17482
  rightActions: [],
17450
17483
  leftActions: [],
@@ -17562,7 +17595,7 @@ const SwipeAction = React$1.forwardRef((p2, ref) => {
17562
17595
  const color = (_a = action.color) !== null && _a !== void 0 ? _a : "light";
17563
17596
  return React__default["default"].createElement(Button, {
17564
17597
  key: action.key,
17565
- className: "adm-swipe-action-action-button",
17598
+ className: `${classPrefix$a}-action-button`,
17566
17599
  style: {
17567
17600
  "--background-color": (_b = colorRecord$1[color]) !== null && _b !== void 0 ? _b : color
17568
17601
  },
@@ -17577,7 +17610,7 @@ const SwipeAction = React$1.forwardRef((p2, ref) => {
17577
17610
  }, action.text);
17578
17611
  }
17579
17612
  return withNativeProps(props, React__default["default"].createElement("div", Object.assign({
17580
- className: "adm-swipe-action"
17613
+ className: classPrefix$a
17581
17614
  }, bind(), {
17582
17615
  ref: rootRef,
17583
17616
  onClickCapture: (e2) => {
@@ -17587,15 +17620,15 @@ const SwipeAction = React$1.forwardRef((p2, ref) => {
17587
17620
  }
17588
17621
  }
17589
17622
  }), React__default["default"].createElement(web.animated.div, {
17590
- className: "adm-swipe-action-track",
17623
+ className: `${classPrefix$a}-track`,
17591
17624
  style: {
17592
17625
  x
17593
17626
  }
17594
17627
  }, withStopPropagation(props.stopPropagation, React__default["default"].createElement("div", {
17595
- className: "adm-swipe-action-actions adm-swipe-action-actions-left",
17628
+ className: `${classPrefix$a}-actions ${classPrefix$a}-actions-left`,
17596
17629
  ref: leftRef
17597
17630
  }, props.leftActions.map(renderAction))), React__default["default"].createElement("div", {
17598
- className: "adm-swipe-action-content",
17631
+ className: `${classPrefix$a}-content`,
17599
17632
  onClickCapture: (e2) => {
17600
17633
  if (x.goal !== 0) {
17601
17634
  e2.preventDefault();
@@ -17610,7 +17643,7 @@ const SwipeAction = React$1.forwardRef((p2, ref) => {
17610
17643
  pointerEvents: x.to((v) => v !== 0 && x.goal !== 0 ? "none" : "auto")
17611
17644
  }
17612
17645
  }, props.children)), withStopPropagation(props.stopPropagation, React__default["default"].createElement("div", {
17613
- className: "adm-swipe-action-actions adm-swipe-action-actions-right",
17646
+ className: `${classPrefix$a}-actions ${classPrefix$a}-actions-right`,
17614
17647
  ref: rightRef
17615
17648
  }, props.rightActions.map(renderAction))))));
17616
17649
  });
@@ -17637,6 +17670,7 @@ function useRefState(initialState) {
17637
17670
  }, [state]);
17638
17671
  return [state, setState, ref];
17639
17672
  }
17673
+ const classPrefix$9 = `adm-swiper`;
17640
17674
  const defaultProps$9 = {
17641
17675
  defaultIndex: 0,
17642
17676
  allowTouchMove: true,
@@ -17821,10 +17855,10 @@ const Swiper = React$1.forwardRef(stagedComponents.staged((p2, ref) => {
17821
17855
  function renderTrackInner() {
17822
17856
  if (loop) {
17823
17857
  return React__default["default"].createElement("div", {
17824
- className: "adm-swiper-track-inner"
17858
+ className: `${classPrefix$9}-track-inner`
17825
17859
  }, React__default["default"].Children.map(validChildren, (child, index2) => {
17826
17860
  return React__default["default"].createElement(web.animated.div, {
17827
- className: "adm-swiper-slide",
17861
+ className: `${classPrefix$9}-slide`,
17828
17862
  style: {
17829
17863
  [isVertical ? "y" : "x"]: position.to((position2) => {
17830
17864
  let finalPosition = -position2 + index2 * 100;
@@ -17839,13 +17873,13 @@ const Swiper = React$1.forwardRef(stagedComponents.staged((p2, ref) => {
17839
17873
  }));
17840
17874
  } else {
17841
17875
  return React__default["default"].createElement(web.animated.div, {
17842
- className: "adm-swiper-track-inner",
17876
+ className: `${classPrefix$9}-track-inner`,
17843
17877
  style: {
17844
17878
  [isVertical ? "y" : "x"]: position.to((position2) => `${-position2}%`)
17845
17879
  }
17846
17880
  }, React__default["default"].Children.map(validChildren, (child) => {
17847
17881
  return React__default["default"].createElement("div", {
17848
- className: "adm-swiper-slide"
17882
+ className: `${classPrefix$9}-slide`
17849
17883
  }, child);
17850
17884
  }));
17851
17885
  }
@@ -17855,12 +17889,12 @@ const Swiper = React$1.forwardRef(stagedComponents.staged((p2, ref) => {
17855
17889
  "--track-offset": `${props.trackOffset}%`
17856
17890
  };
17857
17891
  return withNativeProps(props, React__default["default"].createElement("div", {
17858
- className: classNames__default["default"]("adm-swiper", `adm-swiper-${props.direction}`),
17892
+ className: classNames__default["default"](classPrefix$9, `${classPrefix$9}-${props.direction}`),
17859
17893
  style
17860
17894
  }, React__default["default"].createElement("div", Object.assign({
17861
17895
  ref: trackRef,
17862
- className: classNames__default["default"]("adm-swiper-track", {
17863
- "adm-swiper-track-allow-touch-move": props.allowTouchMove
17896
+ className: classNames__default["default"](`${classPrefix$9}-track`, {
17897
+ [`${classPrefix$9}-track-allow-touch-move`]: props.allowTouchMove
17864
17898
  }),
17865
17899
  onClickCapture: (e2) => {
17866
17900
  if (draggingRef.current) {
@@ -17868,7 +17902,7 @@ const Swiper = React$1.forwardRef(stagedComponents.staged((p2, ref) => {
17868
17902
  }
17869
17903
  }
17870
17904
  }, props.allowTouchMove ? bind() : {}), renderTrackInner()), props.indicator === void 0 ? React__default["default"].createElement("div", {
17871
- className: "adm-swiper-indicator"
17905
+ className: `${classPrefix$9}-indicator`
17872
17906
  }, React__default["default"].createElement(PageIndicator, Object.assign({}, props.indicatorProps, {
17873
17907
  total: count,
17874
17908
  current,
@@ -18000,7 +18034,7 @@ const TabBar = (p2) => {
18000
18034
  className: `${classPrefix$7}-item-icon`
18001
18035
  }, typeof item.props.icon === "function" ? item.props.icon(active) : item.props.icon);
18002
18036
  const titleElement = item.props.title && React__default["default"].createElement("div", {
18003
- className: `${classPrefix$7}-item-title`
18037
+ className: classNames__default["default"](`${classPrefix$7}-item-title`, Boolean(iconElement) && `${classPrefix$7}-item-title-with-icon`)
18004
18038
  }, typeof item.props.title === "function" ? item.props.title(active) : item.props.title);
18005
18039
  if (iconElement) {
18006
18040
  return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement(Badge, {
@@ -18857,6 +18891,7 @@ exports.CascadePicker = index$f;
18857
18891
  exports.CascadePickerView = CascadePickerView;
18858
18892
  exports.Cascader = index$e;
18859
18893
  exports.CascaderView = CascaderView;
18894
+ exports.CenterPopup = CenterPopup;
18860
18895
  exports.CheckList = CheckList;
18861
18896
  exports.Checkbox = Checkbox;
18862
18897
  exports.Collapse = index$d;