antd-mobile 5.31.1 → 5.32.1

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 (414) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +665 -553
  2. package/2x/bundle/antd-mobile.cjs.js +9 -9
  3. package/2x/bundle/antd-mobile.es.development.js +666 -554
  4. package/2x/bundle/antd-mobile.es.js +5659 -5580
  5. package/2x/bundle/antd-mobile.umd.development.js +665 -553
  6. package/2x/bundle/antd-mobile.umd.js +9 -9
  7. package/2x/bundle/style.css +16 -15
  8. package/2x/cjs/components/action-sheet/action-sheet.css +1 -1
  9. package/2x/cjs/components/button/button.css +2 -2
  10. package/2x/cjs/components/calendar/calendar.js +5 -1
  11. package/2x/cjs/components/calendar/convert.js +1 -6
  12. package/2x/cjs/components/capsule-tabs/capsule-tabs.js +2 -4
  13. package/2x/cjs/components/cascader/cascader.d.ts +2 -0
  14. package/2x/cjs/components/cascader/index.d.ts +1 -0
  15. package/2x/cjs/components/center-popup/center-popup.js +6 -5
  16. package/2x/cjs/components/checkbox/checkbox.d.ts +2 -0
  17. package/2x/cjs/components/checkbox/checkbox.js +1 -0
  18. package/2x/cjs/components/checkbox/index.d.ts +1 -0
  19. package/2x/cjs/components/collapse/collapse.js +28 -13
  20. package/2x/cjs/components/date-picker/date-picker-date-utils.js +24 -36
  21. package/2x/cjs/components/date-picker/date-picker-week-utils.js +12 -18
  22. package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +7 -5
  23. package/2x/cjs/components/date-picker-view/date-picker-view.js +8 -2
  24. package/2x/cjs/components/dropdown/dropdown.js +1 -1
  25. package/2x/cjs/components/ellipsis/ellipsis.js +4 -4
  26. package/2x/cjs/components/error-block/create-error-block.js +4 -4
  27. package/2x/cjs/components/error-block/error-block.css +1 -1
  28. package/2x/cjs/components/floating-panel/floating-panel.js +8 -7
  29. package/2x/cjs/components/footer/footer.js +17 -21
  30. package/2x/cjs/components/form/form-item.d.ts +1 -1
  31. package/2x/cjs/components/form/form-item.js +6 -9
  32. package/2x/cjs/components/form/form.css +1 -1
  33. package/2x/cjs/components/form/index.css +1 -1
  34. package/2x/cjs/components/image-uploader/image-uploader.css +1 -1
  35. package/2x/cjs/components/image-uploader/image-uploader.js +1 -3
  36. package/2x/cjs/components/input/input.d.ts +2 -8
  37. package/2x/cjs/components/input/input.js +5 -1
  38. package/2x/cjs/components/jumbo-tabs/jumbo-tabs.js +1 -1
  39. package/2x/cjs/components/modal/modal.js +11 -13
  40. package/2x/cjs/components/notice-bar/notice-bar.css +2 -2
  41. package/2x/cjs/components/number-keyboard/number-keyboard.css +2 -2
  42. package/2x/cjs/components/picker-view/wheel.js +61 -14
  43. package/2x/cjs/components/popover/popover-menu.css +2 -2
  44. package/2x/cjs/components/popover/popover.js +5 -7
  45. package/2x/cjs/components/popup/popup.js +3 -3
  46. package/2x/cjs/components/progress-bar/progress-bar.css +1 -1
  47. package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
  48. package/2x/cjs/components/radio/radio.d.ts +1 -0
  49. package/2x/cjs/components/radio/radio.js +1 -0
  50. package/2x/cjs/components/rate/rate.d.ts +1 -1
  51. package/2x/cjs/components/rate/star.d.ts +1 -1
  52. package/2x/cjs/components/result/result.js +2 -2
  53. package/2x/cjs/components/safe-area/safe-area.d.ts +1 -1
  54. package/2x/cjs/components/safe-area/safe-area.js +1 -1
  55. package/2x/cjs/components/side-bar/side-bar.d.ts +1 -2
  56. package/2x/cjs/components/side-bar/side-bar.js +4 -2
  57. package/2x/cjs/components/skeleton/skeleton.d.ts +1 -1
  58. package/2x/cjs/components/stepper/stepper.js +1 -5
  59. package/2x/cjs/components/steps/steps.js +5 -5
  60. package/2x/cjs/components/swipe-action/swipe-action.d.ts +4 -3
  61. package/2x/cjs/components/tab-bar/tab-bar.d.ts +1 -2
  62. package/2x/cjs/components/tab-bar/tab-bar.js +4 -2
  63. package/2x/cjs/components/tabs/tabs.js +1 -1
  64. package/2x/cjs/components/tag/tag.js +1 -1
  65. package/2x/cjs/components/text-area/text-area.css +1 -0
  66. package/2x/cjs/components/text-area/text-area.js +11 -2
  67. package/2x/cjs/components/toast/toast.css +2 -2
  68. package/2x/cjs/components/tree-select/multiple.js +2 -6
  69. package/2x/cjs/components/virtual-input/virtual-input.js +1 -1
  70. package/2x/cjs/components/water-mark/water-mark.js +1 -1
  71. package/2x/cjs/locales/base.d.ts +1 -1
  72. package/2x/cjs/locales/base.js +1 -1
  73. package/2x/cjs/locales/da-DK.d.ts +1 -1
  74. package/2x/cjs/locales/da-DK.js +1 -1
  75. package/2x/cjs/locales/en-US.d.ts +1 -1
  76. package/2x/cjs/locales/es-ES.d.ts +1 -1
  77. package/2x/cjs/locales/es-ES.js +1 -1
  78. package/2x/cjs/locales/fa-IR.d.ts +1 -1
  79. package/2x/cjs/locales/fa-IR.js +1 -1
  80. package/2x/cjs/locales/fr-FR.d.ts +1 -1
  81. package/2x/cjs/locales/fr-FR.js +1 -1
  82. package/2x/cjs/locales/id-ID.d.ts +1 -1
  83. package/2x/cjs/locales/id-ID.js +1 -1
  84. package/2x/cjs/locales/it-IT.d.ts +1 -1
  85. package/2x/cjs/locales/it-IT.js +1 -1
  86. package/2x/cjs/locales/ja-JP.d.ts +1 -1
  87. package/2x/cjs/locales/ja-JP.js +1 -1
  88. package/2x/cjs/locales/kk-KZ.d.ts +1 -1
  89. package/2x/cjs/locales/kk-KZ.js +1 -1
  90. package/2x/cjs/locales/ko-KR.d.ts +1 -1
  91. package/2x/cjs/locales/ko-KR.js +1 -1
  92. package/2x/cjs/locales/nb-NO.d.ts +1 -1
  93. package/2x/cjs/locales/nb-NO.js +1 -1
  94. package/2x/cjs/locales/nl-NL.d.ts +1 -1
  95. package/2x/cjs/locales/nl-NL.js +1 -1
  96. package/2x/cjs/locales/ru-RU.d.ts +134 -0
  97. package/2x/cjs/locales/ru-RU.js +144 -0
  98. package/2x/cjs/locales/zh-CN.d.ts +1 -1
  99. package/2x/cjs/locales/zh-CN.js +1 -1
  100. package/2x/cjs/locales/zh-HK.d.ts +1 -1
  101. package/2x/cjs/locales/zh-HK.js +1 -1
  102. package/2x/cjs/locales/zh-TW.d.ts +1 -1
  103. package/2x/cjs/locales/zh-TW.js +1 -1
  104. package/2x/cjs/utils/replace-message.d.ts +1 -0
  105. package/2x/cjs/utils/replace-message.js +13 -0
  106. package/2x/cjs/utils/use-lock-scroll.js +6 -2
  107. package/2x/es/components/action-sheet/action-sheet.css +1 -1
  108. package/2x/es/components/button/button.css +2 -2
  109. package/2x/es/components/calendar/calendar.js +5 -1
  110. package/2x/es/components/calendar/convert.js +1 -6
  111. package/2x/es/components/capsule-tabs/capsule-tabs.js +3 -5
  112. package/2x/es/components/cascader/cascader.d.ts +2 -0
  113. package/2x/es/components/cascader/index.d.ts +1 -0
  114. package/2x/es/components/center-popup/center-popup.js +6 -5
  115. package/2x/es/components/checkbox/checkbox.d.ts +2 -0
  116. package/2x/es/components/checkbox/checkbox.js +1 -0
  117. package/2x/es/components/checkbox/index.d.ts +1 -0
  118. package/2x/es/components/collapse/collapse.js +29 -14
  119. package/2x/es/components/date-picker/date-picker-date-utils.js +24 -36
  120. package/2x/es/components/date-picker/date-picker-week-utils.js +12 -18
  121. package/2x/es/components/date-picker-view/date-picker-view.d.ts +7 -5
  122. package/2x/es/components/date-picker-view/date-picker-view.js +8 -2
  123. package/2x/es/components/dropdown/dropdown.js +2 -2
  124. package/2x/es/components/ellipsis/ellipsis.js +4 -4
  125. package/2x/es/components/error-block/create-error-block.js +4 -4
  126. package/2x/es/components/error-block/error-block.css +1 -1
  127. package/2x/es/components/floating-panel/floating-panel.js +8 -7
  128. package/2x/es/components/footer/footer.js +17 -21
  129. package/2x/es/components/form/form-item.d.ts +1 -1
  130. package/2x/es/components/form/form-item.js +6 -9
  131. package/2x/es/components/form/form.css +1 -1
  132. package/2x/es/components/form/index.css +1 -1
  133. package/2x/es/components/image-uploader/image-uploader.css +1 -1
  134. package/2x/es/components/image-uploader/image-uploader.js +1 -3
  135. package/2x/es/components/input/input.d.ts +2 -8
  136. package/2x/es/components/input/input.js +5 -1
  137. package/2x/es/components/jumbo-tabs/jumbo-tabs.js +2 -2
  138. package/2x/es/components/modal/modal.js +11 -13
  139. package/2x/es/components/notice-bar/notice-bar.css +2 -2
  140. package/2x/es/components/number-keyboard/number-keyboard.css +2 -2
  141. package/2x/es/components/picker-view/wheel.js +61 -14
  142. package/2x/es/components/popover/popover-menu.css +2 -2
  143. package/2x/es/components/popover/popover.js +5 -7
  144. package/2x/es/components/popup/popup.js +3 -3
  145. package/2x/es/components/progress-bar/progress-bar.css +1 -1
  146. package/2x/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
  147. package/2x/es/components/radio/radio.d.ts +1 -0
  148. package/2x/es/components/radio/radio.js +1 -0
  149. package/2x/es/components/rate/rate.d.ts +1 -1
  150. package/2x/es/components/rate/star.d.ts +1 -1
  151. package/2x/es/components/result/result.js +2 -2
  152. package/2x/es/components/safe-area/safe-area.d.ts +1 -1
  153. package/2x/es/components/safe-area/safe-area.js +1 -1
  154. package/2x/es/components/side-bar/side-bar.d.ts +1 -2
  155. package/2x/es/components/side-bar/side-bar.js +2 -2
  156. package/2x/es/components/skeleton/skeleton.d.ts +1 -1
  157. package/2x/es/components/stepper/stepper.js +1 -5
  158. package/2x/es/components/steps/steps.js +5 -5
  159. package/2x/es/components/swipe-action/swipe-action.d.ts +4 -3
  160. package/2x/es/components/tab-bar/tab-bar.d.ts +1 -2
  161. package/2x/es/components/tab-bar/tab-bar.js +2 -2
  162. package/2x/es/components/tabs/tabs.js +2 -2
  163. package/2x/es/components/tag/tag.js +1 -1
  164. package/2x/es/components/text-area/text-area.css +1 -0
  165. package/2x/es/components/text-area/text-area.js +11 -2
  166. package/2x/es/components/toast/toast.css +2 -2
  167. package/2x/es/components/tree-select/multiple.js +2 -6
  168. package/2x/es/components/virtual-input/virtual-input.js +1 -1
  169. package/2x/es/components/water-mark/water-mark.js +1 -1
  170. package/2x/es/locales/base.d.ts +1 -1
  171. package/2x/es/locales/base.js +1 -1
  172. package/2x/es/locales/da-DK.d.ts +1 -1
  173. package/2x/es/locales/da-DK.js +1 -1
  174. package/2x/es/locales/en-US.d.ts +1 -1
  175. package/2x/es/locales/es-ES.d.ts +1 -1
  176. package/2x/es/locales/es-ES.js +1 -1
  177. package/2x/es/locales/fa-IR.d.ts +1 -1
  178. package/2x/es/locales/fa-IR.js +1 -1
  179. package/2x/es/locales/fr-FR.d.ts +1 -1
  180. package/2x/es/locales/fr-FR.js +1 -1
  181. package/2x/es/locales/id-ID.d.ts +1 -1
  182. package/2x/es/locales/id-ID.js +1 -1
  183. package/2x/es/locales/it-IT.d.ts +1 -1
  184. package/2x/es/locales/it-IT.js +1 -1
  185. package/2x/es/locales/ja-JP.d.ts +1 -1
  186. package/2x/es/locales/ja-JP.js +1 -1
  187. package/2x/es/locales/kk-KZ.d.ts +1 -1
  188. package/2x/es/locales/kk-KZ.js +1 -1
  189. package/2x/es/locales/ko-KR.d.ts +1 -1
  190. package/2x/es/locales/ko-KR.js +1 -1
  191. package/2x/es/locales/nb-NO.d.ts +1 -1
  192. package/2x/es/locales/nb-NO.js +1 -1
  193. package/2x/es/locales/nl-NL.d.ts +1 -1
  194. package/2x/es/locales/nl-NL.js +1 -1
  195. package/2x/es/locales/ru-RU.d.ts +134 -0
  196. package/2x/es/locales/ru-RU.js +137 -0
  197. package/2x/es/locales/zh-CN.d.ts +1 -1
  198. package/2x/es/locales/zh-CN.js +1 -1
  199. package/2x/es/locales/zh-HK.d.ts +1 -1
  200. package/2x/es/locales/zh-HK.js +1 -1
  201. package/2x/es/locales/zh-TW.d.ts +1 -1
  202. package/2x/es/locales/zh-TW.js +1 -1
  203. package/2x/es/utils/replace-message.d.ts +1 -0
  204. package/2x/es/utils/replace-message.js +7 -0
  205. package/2x/es/utils/use-lock-scroll.js +6 -2
  206. package/2x/package.json +2 -2
  207. package/bundle/antd-mobile.cjs.development.js +665 -553
  208. package/bundle/antd-mobile.cjs.js +9 -9
  209. package/bundle/antd-mobile.compatible.umd.js +1 -1
  210. package/bundle/antd-mobile.es.development.js +666 -554
  211. package/bundle/antd-mobile.es.js +5659 -5580
  212. package/bundle/antd-mobile.umd.development.js +665 -553
  213. package/bundle/antd-mobile.umd.js +9 -9
  214. package/bundle/style.css +1 -1
  215. package/cjs/components/action-sheet/action-sheet.css +1 -1
  216. package/cjs/components/button/button.css +2 -2
  217. package/cjs/components/calendar/calendar.js +5 -1
  218. package/cjs/components/calendar/convert.js +1 -6
  219. package/cjs/components/capsule-tabs/capsule-tabs.js +2 -4
  220. package/cjs/components/cascader/cascader.d.ts +2 -0
  221. package/cjs/components/cascader/index.d.ts +1 -0
  222. package/cjs/components/center-popup/center-popup.js +6 -5
  223. package/cjs/components/checkbox/checkbox.d.ts +2 -0
  224. package/cjs/components/checkbox/checkbox.js +1 -0
  225. package/cjs/components/checkbox/index.d.ts +1 -0
  226. package/cjs/components/collapse/collapse.js +28 -13
  227. package/cjs/components/date-picker/date-picker-date-utils.js +24 -36
  228. package/cjs/components/date-picker/date-picker-week-utils.js +12 -18
  229. package/cjs/components/date-picker-view/date-picker-view.d.ts +7 -5
  230. package/cjs/components/date-picker-view/date-picker-view.js +8 -2
  231. package/cjs/components/dropdown/dropdown.js +1 -1
  232. package/cjs/components/ellipsis/ellipsis.js +4 -4
  233. package/cjs/components/error-block/create-error-block.js +4 -4
  234. package/cjs/components/error-block/error-block.css +1 -1
  235. package/cjs/components/floating-panel/floating-panel.js +8 -7
  236. package/cjs/components/footer/footer.js +17 -21
  237. package/cjs/components/form/form-item.d.ts +1 -1
  238. package/cjs/components/form/form-item.js +6 -9
  239. package/cjs/components/form/form.css +1 -1
  240. package/cjs/components/form/index.css +1 -1
  241. package/cjs/components/image-uploader/image-uploader.css +1 -1
  242. package/cjs/components/image-uploader/image-uploader.js +1 -3
  243. package/cjs/components/input/input.d.ts +2 -8
  244. package/cjs/components/input/input.js +5 -1
  245. package/cjs/components/jumbo-tabs/jumbo-tabs.js +1 -1
  246. package/cjs/components/modal/modal.js +11 -13
  247. package/cjs/components/notice-bar/notice-bar.css +2 -2
  248. package/cjs/components/number-keyboard/number-keyboard.css +2 -2
  249. package/cjs/components/picker-view/wheel.js +61 -14
  250. package/cjs/components/popover/popover-menu.css +2 -2
  251. package/cjs/components/popover/popover.js +5 -7
  252. package/cjs/components/popup/popup.js +3 -3
  253. package/cjs/components/progress-bar/progress-bar.css +1 -1
  254. package/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
  255. package/cjs/components/radio/radio.d.ts +1 -0
  256. package/cjs/components/radio/radio.js +1 -0
  257. package/cjs/components/rate/rate.d.ts +1 -1
  258. package/cjs/components/rate/star.d.ts +1 -1
  259. package/cjs/components/result/result.js +2 -2
  260. package/cjs/components/safe-area/safe-area.d.ts +1 -1
  261. package/cjs/components/safe-area/safe-area.js +1 -1
  262. package/cjs/components/side-bar/side-bar.d.ts +1 -2
  263. package/cjs/components/side-bar/side-bar.js +4 -2
  264. package/cjs/components/skeleton/skeleton.d.ts +1 -1
  265. package/cjs/components/stepper/stepper.js +1 -5
  266. package/cjs/components/steps/steps.js +5 -5
  267. package/cjs/components/swipe-action/swipe-action.d.ts +4 -3
  268. package/cjs/components/tab-bar/tab-bar.d.ts +1 -2
  269. package/cjs/components/tab-bar/tab-bar.js +4 -2
  270. package/cjs/components/tabs/tabs.js +1 -1
  271. package/cjs/components/tag/tag.js +1 -1
  272. package/cjs/components/text-area/text-area.css +1 -0
  273. package/cjs/components/text-area/text-area.js +11 -2
  274. package/cjs/components/toast/toast.css +2 -2
  275. package/cjs/components/tree-select/multiple.js +2 -6
  276. package/cjs/components/virtual-input/virtual-input.js +1 -1
  277. package/cjs/components/water-mark/water-mark.js +1 -1
  278. package/cjs/locales/base.d.ts +1 -1
  279. package/cjs/locales/base.js +1 -1
  280. package/cjs/locales/da-DK.d.ts +1 -1
  281. package/cjs/locales/da-DK.js +1 -1
  282. package/cjs/locales/en-US.d.ts +1 -1
  283. package/cjs/locales/es-ES.d.ts +1 -1
  284. package/cjs/locales/es-ES.js +1 -1
  285. package/cjs/locales/fa-IR.d.ts +1 -1
  286. package/cjs/locales/fa-IR.js +1 -1
  287. package/cjs/locales/fr-FR.d.ts +1 -1
  288. package/cjs/locales/fr-FR.js +1 -1
  289. package/cjs/locales/id-ID.d.ts +1 -1
  290. package/cjs/locales/id-ID.js +1 -1
  291. package/cjs/locales/it-IT.d.ts +1 -1
  292. package/cjs/locales/it-IT.js +1 -1
  293. package/cjs/locales/ja-JP.d.ts +1 -1
  294. package/cjs/locales/ja-JP.js +1 -1
  295. package/cjs/locales/kk-KZ.d.ts +1 -1
  296. package/cjs/locales/kk-KZ.js +1 -1
  297. package/cjs/locales/ko-KR.d.ts +1 -1
  298. package/cjs/locales/ko-KR.js +1 -1
  299. package/cjs/locales/nb-NO.d.ts +1 -1
  300. package/cjs/locales/nb-NO.js +1 -1
  301. package/cjs/locales/nl-NL.d.ts +1 -1
  302. package/cjs/locales/nl-NL.js +1 -1
  303. package/cjs/locales/ru-RU.d.ts +134 -0
  304. package/cjs/locales/ru-RU.js +144 -0
  305. package/cjs/locales/zh-CN.d.ts +1 -1
  306. package/cjs/locales/zh-CN.js +1 -1
  307. package/cjs/locales/zh-HK.d.ts +1 -1
  308. package/cjs/locales/zh-HK.js +1 -1
  309. package/cjs/locales/zh-TW.d.ts +1 -1
  310. package/cjs/locales/zh-TW.js +1 -1
  311. package/cjs/utils/replace-message.d.ts +1 -0
  312. package/cjs/utils/replace-message.js +13 -0
  313. package/cjs/utils/use-lock-scroll.js +6 -2
  314. package/es/components/action-sheet/action-sheet.css +1 -1
  315. package/es/components/button/button.css +2 -2
  316. package/es/components/calendar/calendar.js +5 -1
  317. package/es/components/calendar/convert.js +1 -6
  318. package/es/components/capsule-tabs/capsule-tabs.js +3 -5
  319. package/es/components/cascader/cascader.d.ts +2 -0
  320. package/es/components/cascader/index.d.ts +1 -0
  321. package/es/components/center-popup/center-popup.js +6 -5
  322. package/es/components/checkbox/checkbox.d.ts +2 -0
  323. package/es/components/checkbox/checkbox.js +1 -0
  324. package/es/components/checkbox/index.d.ts +1 -0
  325. package/es/components/collapse/collapse.js +29 -14
  326. package/es/components/date-picker/date-picker-date-utils.js +24 -36
  327. package/es/components/date-picker/date-picker-week-utils.js +12 -18
  328. package/es/components/date-picker-view/date-picker-view.d.ts +7 -5
  329. package/es/components/date-picker-view/date-picker-view.js +8 -2
  330. package/es/components/dropdown/dropdown.js +2 -2
  331. package/es/components/ellipsis/ellipsis.js +4 -4
  332. package/es/components/error-block/create-error-block.js +4 -4
  333. package/es/components/error-block/error-block.css +1 -1
  334. package/es/components/floating-panel/floating-panel.js +8 -7
  335. package/es/components/footer/footer.js +17 -21
  336. package/es/components/form/form-item.d.ts +1 -1
  337. package/es/components/form/form-item.js +6 -9
  338. package/es/components/form/form.css +1 -1
  339. package/es/components/form/index.css +1 -1
  340. package/es/components/image-uploader/image-uploader.css +1 -1
  341. package/es/components/image-uploader/image-uploader.js +1 -3
  342. package/es/components/input/input.d.ts +2 -8
  343. package/es/components/input/input.js +5 -1
  344. package/es/components/jumbo-tabs/jumbo-tabs.js +2 -2
  345. package/es/components/modal/modal.js +11 -13
  346. package/es/components/notice-bar/notice-bar.css +2 -2
  347. package/es/components/number-keyboard/number-keyboard.css +2 -2
  348. package/es/components/picker-view/wheel.js +61 -14
  349. package/es/components/popover/popover-menu.css +2 -2
  350. package/es/components/popover/popover.js +5 -7
  351. package/es/components/popup/popup.js +3 -3
  352. package/es/components/progress-bar/progress-bar.css +1 -1
  353. package/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
  354. package/es/components/radio/radio.d.ts +1 -0
  355. package/es/components/radio/radio.js +1 -0
  356. package/es/components/rate/rate.d.ts +1 -1
  357. package/es/components/rate/star.d.ts +1 -1
  358. package/es/components/result/result.js +2 -2
  359. package/es/components/safe-area/safe-area.d.ts +1 -1
  360. package/es/components/safe-area/safe-area.js +1 -1
  361. package/es/components/side-bar/side-bar.d.ts +1 -2
  362. package/es/components/side-bar/side-bar.js +2 -2
  363. package/es/components/skeleton/skeleton.d.ts +1 -1
  364. package/es/components/stepper/stepper.js +1 -5
  365. package/es/components/steps/steps.js +5 -5
  366. package/es/components/swipe-action/swipe-action.d.ts +4 -3
  367. package/es/components/tab-bar/tab-bar.d.ts +1 -2
  368. package/es/components/tab-bar/tab-bar.js +2 -2
  369. package/es/components/tabs/tabs.js +2 -2
  370. package/es/components/tag/tag.js +1 -1
  371. package/es/components/text-area/text-area.css +1 -0
  372. package/es/components/text-area/text-area.js +11 -2
  373. package/es/components/toast/toast.css +2 -2
  374. package/es/components/tree-select/multiple.js +2 -6
  375. package/es/components/virtual-input/virtual-input.js +1 -1
  376. package/es/components/water-mark/water-mark.js +1 -1
  377. package/es/locales/base.d.ts +1 -1
  378. package/es/locales/base.js +1 -1
  379. package/es/locales/da-DK.d.ts +1 -1
  380. package/es/locales/da-DK.js +1 -1
  381. package/es/locales/en-US.d.ts +1 -1
  382. package/es/locales/es-ES.d.ts +1 -1
  383. package/es/locales/es-ES.js +1 -1
  384. package/es/locales/fa-IR.d.ts +1 -1
  385. package/es/locales/fa-IR.js +1 -1
  386. package/es/locales/fr-FR.d.ts +1 -1
  387. package/es/locales/fr-FR.js +1 -1
  388. package/es/locales/id-ID.d.ts +1 -1
  389. package/es/locales/id-ID.js +1 -1
  390. package/es/locales/it-IT.d.ts +1 -1
  391. package/es/locales/it-IT.js +1 -1
  392. package/es/locales/ja-JP.d.ts +1 -1
  393. package/es/locales/ja-JP.js +1 -1
  394. package/es/locales/kk-KZ.d.ts +1 -1
  395. package/es/locales/kk-KZ.js +1 -1
  396. package/es/locales/ko-KR.d.ts +1 -1
  397. package/es/locales/ko-KR.js +1 -1
  398. package/es/locales/nb-NO.d.ts +1 -1
  399. package/es/locales/nb-NO.js +1 -1
  400. package/es/locales/nl-NL.d.ts +1 -1
  401. package/es/locales/nl-NL.js +1 -1
  402. package/es/locales/ru-RU.d.ts +134 -0
  403. package/es/locales/ru-RU.js +137 -0
  404. package/es/locales/zh-CN.d.ts +1 -1
  405. package/es/locales/zh-CN.js +1 -1
  406. package/es/locales/zh-HK.d.ts +1 -1
  407. package/es/locales/zh-HK.js +1 -1
  408. package/es/locales/zh-TW.d.ts +1 -1
  409. package/es/locales/zh-TW.js +1 -1
  410. package/es/utils/replace-message.d.ts +1 -0
  411. package/es/utils/replace-message.js +7 -0
  412. package/es/utils/use-lock-scroll.js +6 -2
  413. package/package.json +2 -2
  414. package/umd/antd-mobile.js +1 -1
@@ -229,7 +229,7 @@ const base = {
229
229
  },
230
230
  Calendar: {
231
231
  markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
232
- renderYearAndMonth: (year, month) => `${year}/${month}`
232
+ yearAndMonth: "${year}/${month}"
233
233
  },
234
234
  Cascader: {
235
235
  placeholder: "Selecting"
@@ -363,7 +363,7 @@ const zhCN = mergeLocale(base, {
363
363
  },
364
364
  Calendar: {
365
365
  markItems: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
366
- renderYearAndMonth: (year, month) => `${year}\u5E74${month}\u6708`
366
+ yearAndMonth: "${year}\u5E74${month}\u6708"
367
367
  },
368
368
  Cascader: {
369
369
  placeholder: "\u8BF7\u9009\u62E9"
@@ -3549,14 +3549,17 @@ function useLockScroll(rootRef, shouldLock) {
3549
3549
  offsetHeight,
3550
3550
  scrollTop
3551
3551
  } = el;
3552
+ const {
3553
+ height
3554
+ } = el.getBoundingClientRect();
3552
3555
  let status = "11";
3553
3556
  if (scrollTop === 0) {
3554
3557
  status = offsetHeight >= scrollHeight ? "00" : "01";
3555
- } else if (scrollTop + offsetHeight >= scrollHeight) {
3558
+ } else if (scrollHeight <= Math.round(height + scrollTop)) {
3556
3559
  status = "10";
3557
3560
  }
3558
3561
  if (status !== "11" && touch.isVertical() && !(parseInt(status, 2) & parseInt(direction, 2))) {
3559
- if (event.cancelable) {
3562
+ if (event.cancelable && supportsPassive) {
3560
3563
  event.preventDefault();
3561
3564
  }
3562
3565
  }
@@ -6823,7 +6826,7 @@ function withStopPropagation(events, element) {
6823
6826
  }
6824
6827
  return React__default.default.cloneElement(element, props);
6825
6828
  }
6826
- const classPrefix$1l = `adm-mask`;
6829
+ const classPrefix$1n = `adm-mask`;
6827
6830
  const opacityRecord = {
6828
6831
  default: 0.55,
6829
6832
  thin: 0.35,
@@ -6885,7 +6888,7 @@ const Mask$1 = (p) => {
6885
6888
  }
6886
6889
  });
6887
6890
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.default.createElement(animated.div, {
6888
- className: classPrefix$1l,
6891
+ className: classPrefix$1n,
6889
6892
  ref,
6890
6893
  style: Object.assign(Object.assign({}, props.style), {
6891
6894
  background,
@@ -6899,12 +6902,12 @@ const Mask$1 = (p) => {
6899
6902
  }
6900
6903
  }
6901
6904
  }, props.onMaskClick && React__default.default.createElement("div", {
6902
- className: `${classPrefix$1l}-aria-button`,
6905
+ className: `${classPrefix$1n}-aria-button`,
6903
6906
  role: "button",
6904
6907
  "aria-label": locale.Mask.name,
6905
6908
  onClick: props.onMaskClick
6906
6909
  }), React__default.default.createElement("div", {
6907
- className: `${classPrefix$1l}-content`
6910
+ className: `${classPrefix$1n}-content`
6908
6911
  }, props.children))));
6909
6912
  return React__default.default.createElement(ShouldRender, {
6910
6913
  active,
@@ -9316,25 +9319,25 @@ function createUseGesture(actions) {
9316
9319
  return useRecognizers(handlers, config2, void 0, nativeHandlers);
9317
9320
  };
9318
9321
  }
9319
- const classPrefix$1k = `adm-popup`;
9322
+ const classPrefix$1m = `adm-popup`;
9320
9323
  const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
9321
9324
  closeOnSwipe: false,
9322
9325
  position: "bottom"
9323
9326
  });
9324
9327
  const Popup$1 = (p) => {
9325
9328
  const props = mergeProps(defaultProps$12, p);
9329
+ const bodyCls = classNames(`${classPrefix$1m}-body`, props.bodyClassName, `${classPrefix$1m}-body-position-${props.position}`);
9326
9330
  const {
9327
9331
  locale
9328
9332
  } = useConfig();
9329
- const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
9330
9333
  const [active, setActive] = React$4.useState(props.visible);
9334
+ const ref = React$4.useRef(null);
9335
+ useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
9331
9336
  useIsomorphicLayoutEffect$2(() => {
9332
9337
  if (props.visible) {
9333
9338
  setActive(true);
9334
9339
  }
9335
9340
  }, [props.visible]);
9336
- const ref = React$4.useRef(null);
9337
- useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
9338
9341
  const unmountedRef = useUnmountedRef$1();
9339
9342
  const {
9340
9343
  percent
@@ -9373,7 +9376,7 @@ const Popup$1 = (p) => {
9373
9376
  });
9374
9377
  const maskVisible = useInnerVisible(active && props.visible);
9375
9378
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.default.createElement("div", Object.assign({
9376
- className: classPrefix$1k,
9379
+ className: classPrefix$1m,
9377
9380
  onClick: props.onClick,
9378
9381
  style: {
9379
9382
  display: active ? void 0 : "none",
@@ -9415,7 +9418,7 @@ const Popup$1 = (p) => {
9415
9418
  }),
9416
9419
  ref
9417
9420
  }, props.showCloseButton && React__default.default.createElement("a", {
9418
- className: classNames(`${classPrefix$1k}-close-icon`, "adm-plain-anchor"),
9421
+ className: classNames(`${classPrefix$1m}-close-icon`, "adm-plain-anchor"),
9419
9422
  onClick: () => {
9420
9423
  var _a;
9421
9424
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -9431,10 +9434,10 @@ const Popup$1 = (p) => {
9431
9434
  };
9432
9435
  const Popup = Popup$1;
9433
9436
  const safeArea = "";
9434
- const classPrefix$1j = "adm-safe-area";
9437
+ const classPrefix$1l = "adm-safe-area";
9435
9438
  const SafeArea$1 = (props) => {
9436
9439
  return withNativeProps(props, React__default.default.createElement("div", {
9437
- className: classNames(classPrefix$1j, `${classPrefix$1j}-position-${props.position}`)
9440
+ className: classNames(classPrefix$1l, `${classPrefix$1l}-position-${props.position}`)
9438
9441
  }));
9439
9442
  };
9440
9443
  const SafeArea = SafeArea$1;
@@ -9567,7 +9570,7 @@ function renderImperatively(element) {
9567
9570
  }
9568
9571
  };
9569
9572
  }
9570
- const classPrefix$1i = `adm-action-sheet`;
9573
+ const classPrefix$1k = `adm-action-sheet`;
9571
9574
  const defaultProps$11 = {
9572
9575
  visible: false,
9573
9576
  actions: [],
@@ -9590,25 +9593,25 @@ const ActionSheet = (p) => {
9590
9593
  }
9591
9594
  },
9592
9595
  afterClose: props.afterClose,
9593
- className: classNames(`${classPrefix$1i}-popup`, props.popupClassName),
9596
+ className: classNames(`${classPrefix$1k}-popup`, props.popupClassName),
9594
9597
  style: props.popupStyle,
9595
9598
  getContainer: props.getContainer,
9596
9599
  destroyOnClose: props.destroyOnClose,
9597
9600
  forceRender: props.forceRender
9598
9601
  }, withNativeProps(props, React__default.default.createElement("div", {
9599
- className: classPrefix$1i
9602
+ className: classPrefix$1k
9600
9603
  }, props.extra && React__default.default.createElement("div", {
9601
- className: `${classPrefix$1i}-extra`
9604
+ className: `${classPrefix$1k}-extra`
9602
9605
  }, props.extra), React__default.default.createElement("div", {
9603
- className: `${classPrefix$1i}-button-list`
9606
+ className: `${classPrefix$1k}-button-list`
9604
9607
  }, props.actions.map((action, index2) => React__default.default.createElement("div", {
9605
9608
  key: action.key,
9606
- className: `${classPrefix$1i}-button-item-wrapper`
9609
+ className: `${classPrefix$1k}-button-item-wrapper`
9607
9610
  }, React__default.default.createElement("a", {
9608
- className: classNames("adm-plain-anchor", `${classPrefix$1i}-button-item`, {
9609
- [`${classPrefix$1i}-button-item-danger`]: action.danger,
9610
- [`${classPrefix$1i}-button-item-disabled`]: action.disabled,
9611
- [`${classPrefix$1i}-button-item-bold`]: action.bold
9611
+ className: classNames("adm-plain-anchor", `${classPrefix$1k}-button-item`, {
9612
+ [`${classPrefix$1k}-button-item-danger`]: action.danger,
9613
+ [`${classPrefix$1k}-button-item-disabled`]: action.disabled,
9614
+ [`${classPrefix$1k}-button-item-bold`]: action.bold
9612
9615
  }),
9613
9616
  onClick: () => {
9614
9617
  var _a, _b, _c;
@@ -9621,23 +9624,23 @@ const ActionSheet = (p) => {
9621
9624
  role: "option",
9622
9625
  "aria-disabled": action.disabled
9623
9626
  }, React__default.default.createElement("div", {
9624
- className: `${classPrefix$1i}-button-item-name`
9627
+ className: `${classPrefix$1k}-button-item-name`
9625
9628
  }, action.text), action.description && React__default.default.createElement("div", {
9626
- className: `${classPrefix$1i}-button-item-description`
9629
+ className: `${classPrefix$1k}-button-item-description`
9627
9630
  }, action.description))))), props.cancelText && React__default.default.createElement("div", {
9628
- className: `${classPrefix$1i}-cancel`,
9631
+ className: `${classPrefix$1k}-cancel`,
9629
9632
  role: "option",
9630
9633
  "aria-label": props.cancelText
9631
9634
  }, React__default.default.createElement("div", {
9632
- className: `${classPrefix$1i}-button-item-wrapper`
9635
+ className: `${classPrefix$1k}-button-item-wrapper`
9633
9636
  }, React__default.default.createElement("a", {
9634
- className: classNames("adm-plain-anchor", `${classPrefix$1i}-button-item`),
9637
+ className: classNames("adm-plain-anchor", `${classPrefix$1k}-button-item`),
9635
9638
  onClick: () => {
9636
9639
  var _a;
9637
9640
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
9638
9641
  }
9639
9642
  }, React__default.default.createElement("div", {
9640
- className: `${classPrefix$1i}-button-item-name`
9643
+ className: `${classPrefix$1k}-button-item-name`
9641
9644
  }, props.cancelText)))), props.safeArea && React__default.default.createElement(SafeArea, {
9642
9645
  position: "bottom"
9643
9646
  }))));
@@ -9649,12 +9652,12 @@ const index$j = attachPropertiesToComponent(ActionSheet, {
9649
9652
  show: showActionSheet
9650
9653
  });
9651
9654
  const autoCenter = "";
9652
- const classPrefix$1h = "adm-auto-center";
9655
+ const classPrefix$1j = "adm-auto-center";
9653
9656
  const AutoCenter$1 = (props) => {
9654
9657
  return withNativeProps(props, React__default.default.createElement("div", {
9655
- className: classPrefix$1h
9658
+ className: classPrefix$1j
9656
9659
  }, React__default.default.createElement("div", {
9657
- className: `${classPrefix$1h}-content`
9660
+ className: `${classPrefix$1j}-content`
9658
9661
  }, props.children)));
9659
9662
  };
9660
9663
  const AutoCenter = AutoCenter$1;
@@ -9755,14 +9758,14 @@ const BrokenImageIcon = () => React__default.default.createElement("svg", {
9755
9758
  fill: "#DBDBDB",
9756
9759
  fillRule: "nonzero"
9757
9760
  }));
9758
- const classPrefix$1g = `adm-image`;
9761
+ const classPrefix$1i = `adm-image`;
9759
9762
  const defaultProps$10 = {
9760
9763
  fit: "fill",
9761
9764
  placeholder: React__default.default.createElement("div", {
9762
- className: `${classPrefix$1g}-tip`
9765
+ className: `${classPrefix$1i}-tip`
9763
9766
  }, React__default.default.createElement(ImageIcon, null)),
9764
9767
  fallback: React__default.default.createElement("div", {
9765
- className: `${classPrefix$1g}-tip`
9768
+ className: `${classPrefix$1i}-tip`
9766
9769
  }, React__default.default.createElement(BrokenImageIcon, null)),
9767
9770
  lazy: false,
9768
9771
  draggable: false
@@ -9795,7 +9798,7 @@ const Image$2 = staged_1((p) => {
9795
9798
  const img = React__default.default.createElement("img", {
9796
9799
  ref: imgRef,
9797
9800
  id: props.id,
9798
- className: `${classPrefix$1g}-img`,
9801
+ className: `${classPrefix$1i}-img`,
9799
9802
  src,
9800
9803
  alt: props.alt,
9801
9804
  onClick: props.onClick,
@@ -9835,7 +9838,7 @@ const Image$2 = staged_1((p) => {
9835
9838
  }
9836
9839
  return withNativeProps(props, React__default.default.createElement("div", {
9837
9840
  ref,
9838
- className: classPrefix$1g,
9841
+ className: classPrefix$1i,
9839
9842
  style,
9840
9843
  onClick: props.onContainerClick
9841
9844
  }, props.lazy && !initialized && React__default.default.createElement(LazyDetector, {
@@ -9845,7 +9848,7 @@ const Image$2 = staged_1((p) => {
9845
9848
  }), renderInner()));
9846
9849
  });
9847
9850
  const Image$1 = Image$2;
9848
- const classPrefix$1f = "adm-avatar";
9851
+ const classPrefix$1h = "adm-avatar";
9849
9852
  const defaultProps$$ = {
9850
9853
  fallback: React__default.default.createElement(Fallback, null),
9851
9854
  fit: "cover"
@@ -9853,7 +9856,7 @@ const defaultProps$$ = {
9853
9856
  const Avatar$1 = (p) => {
9854
9857
  const props = mergeProps(defaultProps$$, p);
9855
9858
  return withNativeProps(props, React__default.default.createElement(Image$1, {
9856
- className: classPrefix$1f,
9859
+ className: classPrefix$1h,
9857
9860
  src: props.src,
9858
9861
  fallback: props.fallback,
9859
9862
  placeholder: props.fallback,
@@ -9867,7 +9870,7 @@ const Avatar$1 = (p) => {
9867
9870
  };
9868
9871
  const Avatar = Avatar$1;
9869
9872
  const badge = "";
9870
- const classPrefix$1e = `adm-badge`;
9873
+ const classPrefix$1g = `adm-badge`;
9871
9874
  const dot = React__default.default.createElement(React__default.default.Fragment, null);
9872
9875
  const Badge$1 = (props) => {
9873
9876
  const {
@@ -9876,17 +9879,17 @@ const Badge$1 = (props) => {
9876
9879
  children
9877
9880
  } = props;
9878
9881
  const isDot = content === dot;
9879
- const badgeCls = classNames(classPrefix$1e, !!children && `${classPrefix$1e}-fixed`, isDot && `${classPrefix$1e}-dot`, props.bordered && `${classPrefix$1e}-bordered`);
9882
+ const badgeCls = classNames(classPrefix$1g, !!children && `${classPrefix$1g}-fixed`, isDot && `${classPrefix$1g}-dot`, props.bordered && `${classPrefix$1g}-bordered`);
9880
9883
  const element = content || content === 0 ? withNativeProps(props, React__default.default.createElement("div", {
9881
9884
  className: badgeCls,
9882
9885
  style: {
9883
9886
  "--color": color
9884
9887
  }
9885
9888
  }, !isDot && React__default.default.createElement("div", {
9886
- className: `${classPrefix$1e}-content`
9889
+ className: `${classPrefix$1g}-content`
9887
9890
  }, content))) : null;
9888
9891
  return children ? React__default.default.createElement("div", {
9889
- className: classNames(`${classPrefix$1e}-wrapper`, props.wrapperClassName),
9892
+ className: classNames(`${classPrefix$1g}-wrapper`, props.wrapperClassName),
9890
9893
  style: props.wrapperStyle
9891
9894
  }, children, element) : element;
9892
9895
  };
@@ -9895,7 +9898,7 @@ const Badge = attachPropertiesToComponent(Badge$1, {
9895
9898
  });
9896
9899
  const button = "";
9897
9900
  const dotLoading = "";
9898
- const classPrefix$1d = `adm-dot-loading`;
9901
+ const classPrefix$1f = `adm-dot-loading`;
9899
9902
  const colorRecord$3 = {
9900
9903
  default: "var(--adm-color-weak)",
9901
9904
  primary: "var(--adm-color-primary)",
@@ -9911,7 +9914,7 @@ const DotLoading$2 = React$4.memo((p) => {
9911
9914
  style: {
9912
9915
  color: (_a = colorRecord$3[props.color]) !== null && _a !== void 0 ? _a : props.color
9913
9916
  },
9914
- className: classNames("adm-loading", classPrefix$1d)
9917
+ className: classNames("adm-loading", classPrefix$1f)
9915
9918
  }, React__default.default.createElement("svg", {
9916
9919
  height: "1em",
9917
9920
  viewBox: "0 0 100 40",
@@ -9955,7 +9958,7 @@ function isPromise(obj) {
9955
9958
  function isIOS() {
9956
9959
  return canUseDom$2 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
9957
9960
  }
9958
- const classPrefix$1c = `adm-button`;
9961
+ const classPrefix$1e = `adm-button`;
9959
9962
  const defaultProps$Z = {
9960
9963
  color: "default",
9961
9964
  fill: "solid",
@@ -9998,23 +10001,23 @@ const Button$1 = React$4.forwardRef((p, ref) => {
9998
10001
  ref: nativeButtonRef,
9999
10002
  type: props.type,
10000
10003
  onClick: handleClick,
10001
- className: classNames(classPrefix$1c, props.color ? `${classPrefix$1c}-${props.color}` : null, {
10002
- [`${classPrefix$1c}-block`]: props.block,
10003
- [`${classPrefix$1c}-disabled`]: disabled,
10004
- [`${classPrefix$1c}-fill-outline`]: props.fill === "outline",
10005
- [`${classPrefix$1c}-fill-none`]: props.fill === "none",
10006
- [`${classPrefix$1c}-mini`]: props.size === "mini",
10007
- [`${classPrefix$1c}-small`]: props.size === "small",
10008
- [`${classPrefix$1c}-large`]: props.size === "large",
10009
- [`${classPrefix$1c}-loading`]: loading
10010
- }, `${classPrefix$1c}-shape-${props.shape}`),
10004
+ className: classNames(classPrefix$1e, props.color ? `${classPrefix$1e}-${props.color}` : null, {
10005
+ [`${classPrefix$1e}-block`]: props.block,
10006
+ [`${classPrefix$1e}-disabled`]: disabled,
10007
+ [`${classPrefix$1e}-fill-outline`]: props.fill === "outline",
10008
+ [`${classPrefix$1e}-fill-none`]: props.fill === "none",
10009
+ [`${classPrefix$1e}-mini`]: props.size === "mini",
10010
+ [`${classPrefix$1e}-small`]: props.size === "small",
10011
+ [`${classPrefix$1e}-large`]: props.size === "large",
10012
+ [`${classPrefix$1e}-loading`]: loading
10013
+ }, `${classPrefix$1e}-shape-${props.shape}`),
10011
10014
  disabled,
10012
10015
  onMouseDown: props.onMouseDown,
10013
10016
  onMouseUp: props.onMouseUp,
10014
10017
  onTouchStart: props.onTouchStart,
10015
10018
  onTouchEnd: props.onTouchEnd
10016
10019
  }, loading ? React__default.default.createElement("div", {
10017
- className: `${classPrefix$1c}-loading-wrapper`
10020
+ className: `${classPrefix$1e}-loading-wrapper`
10018
10021
  }, props.loadingIcon, props.loadingText) : React__default.default.createElement("span", null, props.children)));
10019
10022
  });
10020
10023
  const Button = Button$1;
@@ -10123,13 +10126,15 @@ function usePropsValue(options) {
10123
10126
  });
10124
10127
  return [stateRef.current, setState];
10125
10128
  }
10129
+ function replaceMessage$1(template, kv) {
10130
+ return template.replace(/\$\{\w+\}/g, (str) => {
10131
+ const key = str.slice(2, -1);
10132
+ return kv[key];
10133
+ });
10134
+ }
10126
10135
  function convertValueToRange(selectionMode, value) {
10127
- if (selectionMode === void 0) {
10128
- return null;
10129
- }
10130
- if (value === null) {
10136
+ if (selectionMode === void 0 || value === null)
10131
10137
  return null;
10132
- }
10133
10138
  if (Array.isArray(value)) {
10134
10139
  return value;
10135
10140
  }
@@ -10139,7 +10144,7 @@ function convertPageToDayjs(page) {
10139
10144
  return dayjs().year(page.year).month(page.month - 1).date(1);
10140
10145
  }
10141
10146
  dayjs.extend(isoWeek);
10142
- const classPrefix$1b = "adm-calendar";
10147
+ const classPrefix$1d = "adm-calendar";
10143
10148
  const defaultProps$Y = {
10144
10149
  weekStartsOn: "Sunday",
10145
10150
  defaultValue: null,
@@ -10213,26 +10218,29 @@ const Calendar$1 = React$4.forwardRef((p, ref) => {
10213
10218
  setCurrent(nxtCurrent);
10214
10219
  };
10215
10220
  const header = React__default.default.createElement("div", {
10216
- className: `${classPrefix$1b}-header`
10221
+ className: `${classPrefix$1d}-header`
10217
10222
  }, React__default.default.createElement("a", {
10218
- className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-year`,
10223
+ className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-year`,
10219
10224
  onClick: () => {
10220
10225
  handlePageChange("subtract", 1, "year");
10221
10226
  }
10222
10227
  }, props.prevYearButton), React__default.default.createElement("a", {
10223
- className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-month`,
10228
+ className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-month`,
10224
10229
  onClick: () => {
10225
10230
  handlePageChange("subtract", 1, "month");
10226
10231
  }
10227
10232
  }, props.prevMonthButton), React__default.default.createElement("div", {
10228
- className: `${classPrefix$1b}-title`
10229
- }, locale.Calendar.renderYearAndMonth(current.year(), current.month() + 1)), React__default.default.createElement("a", {
10230
- className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-month`),
10233
+ className: `${classPrefix$1d}-title`
10234
+ }, replaceMessage$1(locale.Calendar.yearAndMonth, {
10235
+ year: current.year().toString(),
10236
+ month: (current.month() + 1).toString()
10237
+ })), React__default.default.createElement("a", {
10238
+ className: classNames(`${classPrefix$1d}-arrow-button`, `${classPrefix$1d}-arrow-button-right`, `${classPrefix$1d}-arrow-button-right-month`),
10231
10239
  onClick: () => {
10232
10240
  handlePageChange("add", 1, "month");
10233
10241
  }
10234
10242
  }, props.nextMonthButton), React__default.default.createElement("a", {
10235
- className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-year`),
10243
+ className: classNames(`${classPrefix$1d}-arrow-button`, `${classPrefix$1d}-arrow-button-right`, `${classPrefix$1d}-arrow-button-right-year`),
10236
10244
  onClick: () => {
10237
10245
  handlePageChange("add", 1, "year");
10238
10246
  }
@@ -10267,13 +10275,13 @@ const Calendar$1 = React$4.forwardRef((p, ref) => {
10267
10275
  const disabled = props.shouldDisableDate ? props.shouldDisableDate(d.toDate()) : maxDay && d.isAfter(maxDay, "day") || minDay && d.isBefore(minDay, "day");
10268
10276
  cells.push(React__default.default.createElement("div", {
10269
10277
  key: d.valueOf(),
10270
- className: classNames(`${classPrefix$1b}-cell`, (disabled || !inThisMonth) && `${classPrefix$1b}-cell-disabled`, inThisMonth && {
10271
- [`${classPrefix$1b}-cell-today`]: d.isSame(today, "day"),
10272
- [`${classPrefix$1b}-cell-selected`]: isSelect,
10273
- [`${classPrefix$1b}-cell-selected-begin`]: isBegin,
10274
- [`${classPrefix$1b}-cell-selected-end`]: isEnd,
10275
- [`${classPrefix$1b}-cell-selected-row-begin`]: isSelectRowBegin,
10276
- [`${classPrefix$1b}-cell-selected-row-end`]: isSelectRowEnd
10278
+ className: classNames(`${classPrefix$1d}-cell`, (disabled || !inThisMonth) && `${classPrefix$1d}-cell-disabled`, inThisMonth && {
10279
+ [`${classPrefix$1d}-cell-today`]: d.isSame(today, "day"),
10280
+ [`${classPrefix$1d}-cell-selected`]: isSelect,
10281
+ [`${classPrefix$1d}-cell-selected-begin`]: isBegin,
10282
+ [`${classPrefix$1d}-cell-selected-end`]: isEnd,
10283
+ [`${classPrefix$1d}-cell-selected-row-begin`]: isSelectRowBegin,
10284
+ [`${classPrefix$1d}-cell-selected-row-end`]: isSelectRowEnd
10277
10285
  }),
10278
10286
  onClick: () => {
10279
10287
  if (!props.selectionMode)
@@ -10320,25 +10328,25 @@ const Calendar$1 = React$4.forwardRef((p, ref) => {
10320
10328
  }
10321
10329
  }
10322
10330
  }, React__default.default.createElement("div", {
10323
- className: `${classPrefix$1b}-cell-top`
10331
+ className: `${classPrefix$1d}-cell-top`
10324
10332
  }, props.renderDate ? props.renderDate(d.toDate()) : d.date()), React__default.default.createElement("div", {
10325
- className: `${classPrefix$1b}-cell-bottom`
10333
+ className: `${classPrefix$1d}-cell-bottom`
10326
10334
  }, (_a = props.renderLabel) === null || _a === void 0 ? void 0 : _a.call(props, d.toDate()))));
10327
10335
  iterator = iterator.add(1, "day");
10328
10336
  }
10329
10337
  return cells;
10330
10338
  }
10331
10339
  const body = React__default.default.createElement("div", {
10332
- className: `${classPrefix$1b}-cells`
10340
+ className: `${classPrefix$1d}-cells`
10333
10341
  }, renderCells());
10334
10342
  const mark = React__default.default.createElement("div", {
10335
- className: `${classPrefix$1b}-mark`
10343
+ className: `${classPrefix$1d}-mark`
10336
10344
  }, markItems.map((item, index2) => React__default.default.createElement("div", {
10337
10345
  key: index2,
10338
- className: `${classPrefix$1b}-mark-cell`
10346
+ className: `${classPrefix$1d}-mark-cell`
10339
10347
  }, item)));
10340
10348
  return withNativeProps(props, React__default.default.createElement("div", {
10341
- className: classPrefix$1b
10349
+ className: classPrefix$1d
10342
10350
  }, header, mark, body));
10343
10351
  });
10344
10352
  const Calendar = Calendar$1;
@@ -10442,7 +10450,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
10442
10450
  };
10443
10451
  };
10444
10452
  const scrollMask = "";
10445
- const classPrefix$1a = `adm-scroll-mask`;
10453
+ const classPrefix$1c = `adm-scroll-mask`;
10446
10454
  const ScrollMask$1 = (props) => {
10447
10455
  const maskRef = React$4.useRef(null);
10448
10456
  const [{
@@ -10489,12 +10497,12 @@ const ScrollMask$1 = (props) => {
10489
10497
  }, []);
10490
10498
  return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(animated.div, {
10491
10499
  ref: maskRef,
10492
- className: classNames(classPrefix$1a, `${classPrefix$1a}-left`),
10500
+ className: classNames(classPrefix$1c, `${classPrefix$1c}-left`),
10493
10501
  style: {
10494
10502
  opacity: leftMaskOpacity
10495
10503
  }
10496
10504
  }), React__default.default.createElement(animated.div, {
10497
- className: classNames(classPrefix$1a, `${classPrefix$1a}-right`),
10505
+ className: classNames(classPrefix$1c, `${classPrefix$1c}-right`),
10498
10506
  style: {
10499
10507
  opacity: rightMaskOpacity
10500
10508
  }
@@ -10701,10 +10709,8 @@ function traverseReactNode(children, fn) {
10701
10709
  }
10702
10710
  handle(children);
10703
10711
  }
10704
- const classPrefix$19 = `adm-capsule-tabs`;
10705
- const CapsuleTab = () => {
10706
- return null;
10707
- };
10712
+ const classPrefix$1b = `adm-capsule-tabs`;
10713
+ const CapsuleTab = () => null;
10708
10714
  const CapsuleTabs = (props) => {
10709
10715
  var _a;
10710
10716
  const tabListContainerRef = React$4.useRef(null);
@@ -10713,7 +10719,7 @@ const CapsuleTabs = (props) => {
10713
10719
  let firstActiveKey = null;
10714
10720
  const panes = [];
10715
10721
  traverseReactNode(props.children, (child, index2) => {
10716
- if (!React__default.default.isValidElement(child))
10722
+ if (!React$4.isValidElement(child))
10717
10723
  return;
10718
10724
  const key = child.key;
10719
10725
  if (typeof key !== "string")
@@ -10742,19 +10748,19 @@ const CapsuleTabs = (props) => {
10742
10748
  animate(true);
10743
10749
  }, rootRef);
10744
10750
  return withNativeProps(props, React__default.default.createElement("div", {
10745
- className: classPrefix$19,
10751
+ className: classPrefix$1b,
10746
10752
  ref: rootRef
10747
10753
  }, React__default.default.createElement("div", {
10748
- className: `${classPrefix$19}-header`
10754
+ className: `${classPrefix$1b}-header`
10749
10755
  }, React__default.default.createElement(ScrollMask, {
10750
10756
  scrollTrackRef: tabListContainerRef
10751
10757
  }), React__default.default.createElement(animated.div, {
10752
- className: `${classPrefix$19}-tab-list`,
10758
+ className: `${classPrefix$1b}-tab-list`,
10753
10759
  ref: tabListContainerRef,
10754
10760
  scrollLeft
10755
10761
  }, panes.map((pane) => withNativeProps(pane.props, React__default.default.createElement("div", {
10756
10762
  key: pane.key,
10757
- className: `${classPrefix$19}-tab-wrapper`
10763
+ className: `${classPrefix$1b}-tab-wrapper`
10758
10764
  }, React__default.default.createElement("div", {
10759
10765
  onClick: () => {
10760
10766
  const {
@@ -10767,9 +10773,9 @@ const CapsuleTabs = (props) => {
10767
10773
  }
10768
10774
  setActiveKey(key.toString());
10769
10775
  },
10770
- className: classNames(`${classPrefix$19}-tab`, {
10771
- [`${classPrefix$19}-tab-active`]: pane.key === activeKey,
10772
- [`${classPrefix$19}-tab-disabled`]: pane.props.disabled
10776
+ className: classNames(`${classPrefix$1b}-tab`, {
10777
+ [`${classPrefix$1b}-tab-active`]: pane.key === activeKey,
10778
+ [`${classPrefix$1b}-tab-disabled`]: pane.props.disabled
10773
10779
  })
10774
10780
  }, pane.props.title)))))), panes.map((pane) => {
10775
10781
  if (pane.props.children === void 0) {
@@ -10782,7 +10788,7 @@ const CapsuleTabs = (props) => {
10782
10788
  forceRender: pane.props.forceRender,
10783
10789
  destroyOnClose: pane.props.destroyOnClose
10784
10790
  }, React__default.default.createElement("div", {
10785
- className: `${classPrefix$19}-content`,
10791
+ className: `${classPrefix$1b}-content`,
10786
10792
  style: {
10787
10793
  display: active ? "block" : "none"
10788
10794
  }
@@ -10793,18 +10799,18 @@ const index$i = attachPropertiesToComponent(CapsuleTabs, {
10793
10799
  Tab: CapsuleTab
10794
10800
  });
10795
10801
  const card = "";
10796
- const classPrefix$18 = `adm-card`;
10802
+ const classPrefix$1a = `adm-card`;
10797
10803
  const Card$1 = (props) => {
10798
10804
  const renderHeader = () => {
10799
10805
  if (!(props.title || props.extra)) {
10800
10806
  return null;
10801
10807
  }
10802
10808
  return React__default.default.createElement("div", {
10803
- className: classNames(`${classPrefix$18}-header`, props.headerClassName),
10809
+ className: classNames(`${classPrefix$1a}-header`, props.headerClassName),
10804
10810
  style: props.headerStyle,
10805
10811
  onClick: props.onHeaderClick
10806
10812
  }, React__default.default.createElement("div", {
10807
- className: `${classPrefix$18}-header-title`
10813
+ className: `${classPrefix$1a}-header-title`
10808
10814
  }, props.title), props.extra);
10809
10815
  };
10810
10816
  const renderBody = () => {
@@ -10812,13 +10818,13 @@ const Card$1 = (props) => {
10812
10818
  return null;
10813
10819
  }
10814
10820
  return React__default.default.createElement("div", {
10815
- className: classNames(`${classPrefix$18}-body`, props.bodyClassName),
10821
+ className: classNames(`${classPrefix$1a}-body`, props.bodyClassName),
10816
10822
  style: props.bodyStyle,
10817
10823
  onClick: props.onBodyClick
10818
10824
  }, props.children);
10819
10825
  };
10820
10826
  return withNativeProps(props, React__default.default.createElement("div", {
10821
- className: classPrefix$18,
10827
+ className: classPrefix$1a,
10822
10828
  onClick: props.onClick
10823
10829
  }, renderHeader(), renderBody()));
10824
10830
  };
@@ -10868,7 +10874,7 @@ function measureCSSLength(raw) {
10868
10874
  return 0;
10869
10875
  }
10870
10876
  }
10871
- const classPrefix$17 = `adm-picker-view`;
10877
+ const classPrefix$19 = `adm-picker-view`;
10872
10878
  const Wheel = React$4.memo((props) => {
10873
10879
  const {
10874
10880
  value,
@@ -10935,17 +10941,66 @@ const Wheel = React$4.memo((props) => {
10935
10941
  return;
10936
10942
  onSelect(item.value);
10937
10943
  }
10944
+ const handleGestureState = (state) => {
10945
+ const {
10946
+ direction: [, direction],
10947
+ distance: [, distance],
10948
+ velocity: [, velocity],
10949
+ offset: [, offset2],
10950
+ last
10951
+ } = state;
10952
+ return {
10953
+ direction,
10954
+ distance,
10955
+ velocity,
10956
+ offset: offset2,
10957
+ last
10958
+ };
10959
+ };
10938
10960
  const handleDrag = (state) => {
10939
10961
  draggingRef.current = true;
10940
10962
  const min2 = -((column.length - 1) * itemHeight.current);
10941
10963
  const max2 = 0;
10942
- if (state.last) {
10964
+ const {
10965
+ direction,
10966
+ last,
10967
+ velocity,
10968
+ offset: offset2
10969
+ } = handleGestureState(state);
10970
+ if (last) {
10971
+ draggingRef.current = false;
10972
+ const position = offset2 + velocity * direction * 50;
10973
+ const boundNum = bound(position, min2, max2);
10974
+ const targetIndex = -Math.round(boundNum / itemHeight.current);
10975
+ scrollSelect(targetIndex);
10976
+ } else {
10977
+ const position = offset2;
10978
+ api.start({
10979
+ y: rubberbandIfOutOfBounds(position, min2, max2, itemHeight.current * 50, 0.2)
10980
+ });
10981
+ }
10982
+ };
10983
+ const handleWheel = (state) => {
10984
+ draggingRef.current = true;
10985
+ const min2 = -((column.length - 1) * itemHeight.current);
10986
+ const max2 = 0;
10987
+ const {
10988
+ direction,
10989
+ last,
10990
+ velocity,
10991
+ distance
10992
+ } = handleGestureState(state);
10993
+ const whellDir = -direction;
10994
+ const scrollY = y.get();
10995
+ if (last) {
10943
10996
  draggingRef.current = false;
10944
- const position = state.offset[1] + state.velocity[1] * state.direction[1] * 50;
10945
- const targetIndex = min2 < max2 ? -Math.round(bound(position, min2, max2) / itemHeight.current) : 0;
10997
+ const speed = velocity * whellDir * 50;
10998
+ const position = scrollY + distance * whellDir + speed;
10999
+ const boundNum = bound(position, min2, max2);
11000
+ const targetIndex = -Math.round(boundNum / itemHeight.current);
10946
11001
  scrollSelect(targetIndex);
10947
11002
  } else {
10948
- const position = state.offset[1];
11003
+ const position = scrollY + distance * whellDir;
10949
11004
  api.start({
10950
11005
  y: rubberbandIfOutOfBounds(position, min2, max2, itemHeight.current * 50, 0.2)
10951
11006
  });
@@ -10965,15 +11020,15 @@ const Wheel = React$4.memo((props) => {
10965
11020
  });
10966
11021
  useWheel((state) => {
10967
11022
  state.event.stopPropagation();
10968
- handleDrag(state);
11023
+ handleWheel(state);
10969
11024
  }, {
11025
+ target: props.mouseWheel ? rootRef : void 0,
10970
11026
  axis: "y",
10971
11027
  from: () => [0, y.get()],
10972
11028
  preventDefault: true,
10973
- target: props.mouseWheel ? rootRef : void 0,
10974
11029
  eventOptions: supportsPassive ? {
10975
11030
  passive: false
10976
- } : false
11031
+ } : void 0
10977
11032
  });
10978
11033
  let selectedIndex = null;
10979
11034
  function renderAccessible() {
@@ -10986,13 +11041,13 @@ const Wheel = React$4.memo((props) => {
10986
11041
  const previous = column[previousIndex];
10987
11042
  const next = column[nextIndex];
10988
11043
  return React__default.default.createElement("div", {
10989
- className: "adm-picker-view-column-accessible"
11044
+ className: `${classPrefix$19}-column-accessible`
10990
11045
  }, React__default.default.createElement("div", {
10991
- className: "adm-picker-view-column-accessible-current",
11046
+ className: `${classPrefix$19}-column-accessible-current`,
10992
11047
  role: "button",
10993
11048
  "aria-label": current ? `\u5F53\u524D\u9009\u62E9\u7684\u662F\uFF1A${current.label}` : "\u5F53\u524D\u672A\u9009\u62E9"
10994
11049
  }, "-"), React__default.default.createElement("div", {
10995
- className: "adm-picker-view-column-accessible-button",
11050
+ className: `${classPrefix$19}-column-accessible-button`,
10996
11051
  onClick: () => {
10997
11052
  if (!previous)
10998
11053
  return;
@@ -11001,7 +11056,7 @@ const Wheel = React$4.memo((props) => {
11001
11056
  role: previous ? "button" : "text",
11002
11057
  "aria-label": !previous ? "\u6CA1\u6709\u4E0A\u4E00\u9879" : `\u9009\u62E9\u4E0A\u4E00\u9879\uFF1A${previous.label}`
11003
11058
  }, "-"), React__default.default.createElement("div", {
11004
- className: "adm-picker-view-column-accessible-button",
11059
+ className: `${classPrefix$19}-column-accessible-button`,
11005
11060
  onClick: () => {
11006
11061
  if (!next)
11007
11062
  return;
@@ -11012,16 +11067,16 @@ const Wheel = React$4.memo((props) => {
11012
11067
  }, "-"));
11013
11068
  }
11014
11069
  return React__default.default.createElement("div", {
11015
- className: `${classPrefix$17}-column`
11070
+ className: `${classPrefix$19}-column`
11016
11071
  }, React__default.default.createElement("div", {
11017
- className: `${classPrefix$17}-item-height-measure`,
11072
+ className: `${classPrefix$19}-item-height-measure`,
11018
11073
  ref: itemHeightMeasureRef
11019
11074
  }), React__default.default.createElement(animated.div, {
11020
11075
  ref: rootRef,
11021
11076
  style: {
11022
11077
  translateY: y
11023
11078
  },
11024
- className: `${classPrefix$17}-column-wheel`,
11079
+ className: `${classPrefix$19}-column-wheel`,
11025
11080
  "aria-hidden": true
11026
11081
  }, column.map((item, index2) => {
11027
11082
  var _a;
@@ -11035,12 +11090,12 @@ const Wheel = React$4.memo((props) => {
11035
11090
  return React__default.default.createElement("div", {
11036
11091
  key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
11037
11092
  "data-selected": item.value === value,
11038
- className: `${classPrefix$17}-column-item`,
11093
+ className: `${classPrefix$19}-column-item`,
11039
11094
  onClick: handleClick,
11040
11095
  "aria-hidden": !selected,
11041
11096
  "aria-label": selected ? "active" : ""
11042
11097
  }, React__default.default.createElement("div", {
11043
- className: `${classPrefix$17}-column-item-label`
11098
+ className: `${classPrefix$19}-column-item-label`
11044
11099
  }, renderLabel(item)));
11045
11100
  })), renderAccessible());
11046
11101
  }, (prev, next) => {
@@ -11054,9 +11109,8 @@ const Wheel = React$4.memo((props) => {
11054
11109
  return false;
11055
11110
  if (prev.mouseWheel !== next.mouseWheel)
11056
11111
  return false;
11057
- if (!isEqual_1(prev.column, next.column)) {
11112
+ if (!isEqual_1(prev.column, next.column))
11058
11113
  return false;
11059
- }
11060
11114
  return true;
11061
11115
  });
11062
11116
  Wheel.displayName = "Wheel";
@@ -11264,7 +11318,7 @@ function subscribe(onStoreChange) {
11264
11318
  function useMotionReduced() {
11265
11319
  return shim.exports.useSyncExternalStore(subscribe, isMotionReduced, isMotionReduced);
11266
11320
  }
11267
- const classPrefix$16 = "adm-spin-loading";
11321
+ const classPrefix$18 = "adm-spin-loading";
11268
11322
  const colorRecord$2 = {
11269
11323
  default: "var(--adm-color-weak)",
11270
11324
  primary: "var(--adm-color-primary)",
@@ -11296,16 +11350,16 @@ const SpinLoading$1 = React$4.memo((p) => {
11296
11350
  }
11297
11351
  });
11298
11352
  return withNativeProps(props, React__default.default.createElement(animated.div, {
11299
- className: classPrefix$16,
11353
+ className: classPrefix$18,
11300
11354
  style: {
11301
11355
  "--color": (_a = colorRecord$2[props.color]) !== null && _a !== void 0 ? _a : props.color,
11302
11356
  "--percent": percent
11303
11357
  }
11304
11358
  }, React__default.default.createElement("svg", {
11305
- className: `${classPrefix$16}-svg`,
11359
+ className: `${classPrefix$18}-svg`,
11306
11360
  viewBox: "0 0 32 32"
11307
11361
  }, React__default.default.createElement(animated.circle, {
11308
- className: `${classPrefix$16}-fill`,
11362
+ className: `${classPrefix$18}-fill`,
11309
11363
  fill: "transparent",
11310
11364
  strokeWidth: "2",
11311
11365
  strokeDasharray: circumference,
@@ -11317,13 +11371,13 @@ const SpinLoading$1 = React$4.memo((p) => {
11317
11371
  }))));
11318
11372
  });
11319
11373
  const SpinLoading = SpinLoading$1;
11320
- const classPrefix$15 = `adm-picker-view`;
11374
+ const classPrefix$17 = `adm-picker-view`;
11321
11375
  const defaultProps$W = {
11322
11376
  defaultValue: [],
11323
11377
  renderLabel: defaultRenderLabel,
11324
11378
  mouseWheel: false,
11325
11379
  loadingContent: React__default.default.createElement("div", {
11326
- className: `${classPrefix$15}-loading-content`
11380
+ className: `${classPrefix$17}-loading-content`
11327
11381
  }, React__default.default.createElement(SpinLoading, null))
11328
11382
  };
11329
11383
  const PickerView$1 = React$4.memo((p) => {
@@ -11368,7 +11422,7 @@ const PickerView$1 = React$4.memo((p) => {
11368
11422
  });
11369
11423
  }, []);
11370
11424
  return withNativeProps(props, React__default.default.createElement("div", {
11371
- className: `${classPrefix$15}`
11425
+ className: `${classPrefix$17}`
11372
11426
  }, props.loading ? props.loadingContent : React__default.default.createElement(React__default.default.Fragment, null, columns.map((column, index2) => React__default.default.createElement(Wheel, {
11373
11427
  key: index2,
11374
11428
  index: index2,
@@ -11378,19 +11432,19 @@ const PickerView$1 = React$4.memo((p) => {
11378
11432
  renderLabel: props.renderLabel,
11379
11433
  mouseWheel: props.mouseWheel
11380
11434
  })), React__default.default.createElement("div", {
11381
- className: `${classPrefix$15}-mask`
11435
+ className: `${classPrefix$17}-mask`
11382
11436
  }, React__default.default.createElement("div", {
11383
- className: `${classPrefix$15}-mask-top`
11437
+ className: `${classPrefix$17}-mask-top`
11384
11438
  }), React__default.default.createElement("div", {
11385
- className: `${classPrefix$15}-mask-middle`
11439
+ className: `${classPrefix$17}-mask-middle`
11386
11440
  }), React__default.default.createElement("div", {
11387
- className: `${classPrefix$15}-mask-bottom`
11441
+ className: `${classPrefix$17}-mask-bottom`
11388
11442
  })))));
11389
11443
  });
11390
11444
  PickerView$1.displayName = "PickerView";
11391
11445
  const pickerView = "";
11392
11446
  const PickerView = PickerView$1;
11393
- const classPrefix$14 = `adm-picker`;
11447
+ const classPrefix$16 = `adm-picker`;
11394
11448
  const defaultProps$V = {
11395
11449
  defaultValue: [],
11396
11450
  closeOnMaskClick: true,
@@ -11456,22 +11510,22 @@ const Picker$1 = React$4.memo(React$4.forwardRef((p, ref) => {
11456
11510
  }
11457
11511
  });
11458
11512
  const pickerElement = withNativeProps(props, React__default.default.createElement("div", {
11459
- className: classPrefix$14
11513
+ className: classPrefix$16
11460
11514
  }, React__default.default.createElement("div", {
11461
- className: `${classPrefix$14}-header`
11515
+ className: `${classPrefix$16}-header`
11462
11516
  }, React__default.default.createElement("a", {
11463
11517
  role: "button",
11464
- className: `${classPrefix$14}-header-button`,
11518
+ className: `${classPrefix$16}-header-button`,
11465
11519
  onClick: () => {
11466
11520
  var _a2;
11467
11521
  (_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
11468
11522
  setVisible(false);
11469
11523
  }
11470
11524
  }, props.cancelText), React__default.default.createElement("div", {
11471
- className: `${classPrefix$14}-header-title`
11525
+ className: `${classPrefix$16}-header-title`
11472
11526
  }, props.title), React__default.default.createElement("a", {
11473
11527
  role: "button",
11474
- className: classNames(`${classPrefix$14}-header-button`, props.loading && `${classPrefix$14}-header-button-disabled`),
11528
+ className: classNames(`${classPrefix$16}-header-button`, props.loading && `${classPrefix$16}-header-button-disabled`),
11475
11529
  onClick: () => {
11476
11530
  if (props.loading)
11477
11531
  return;
@@ -11480,7 +11534,7 @@ const Picker$1 = React$4.memo(React$4.forwardRef((p, ref) => {
11480
11534
  },
11481
11535
  "aria-disabled": props.loading
11482
11536
  }, props.confirmText)), React__default.default.createElement("div", {
11483
- className: `${classPrefix$14}-body`
11537
+ className: `${classPrefix$16}-body`
11484
11538
  }, React__default.default.createElement(PickerView, {
11485
11539
  loading: props.loading,
11486
11540
  loadingContent: props.loadingContent,
@@ -11492,7 +11546,7 @@ const Picker$1 = React$4.memo(React$4.forwardRef((p, ref) => {
11492
11546
  }))));
11493
11547
  const popupElement = React__default.default.createElement(Popup, {
11494
11548
  style: props.popupStyle,
11495
- className: classNames(`${classPrefix$14}-popup`, props.popupClassName),
11549
+ className: classNames(`${classPrefix$16}-popup`, props.popupClassName),
11496
11550
  visible,
11497
11551
  position: "bottom",
11498
11552
  onMaskClick: () => {
@@ -11642,7 +11696,7 @@ const CascadePickerView$1 = (props) => {
11642
11696
  const CascadePickerView = CascadePickerView$1;
11643
11697
  const cascaderView = "";
11644
11698
  const tabs = "";
11645
- const classPrefix$13 = `adm-tabs`;
11699
+ const classPrefix$15 = `adm-tabs`;
11646
11700
  const Tab = () => {
11647
11701
  return null;
11648
11702
  };
@@ -11659,7 +11713,7 @@ const Tabs$1 = (p) => {
11659
11713
  let firstActiveKey = null;
11660
11714
  const panes = [];
11661
11715
  traverseReactNode(props.children, (child, index2) => {
11662
- if (!React__default.default.isValidElement(child))
11716
+ if (!React$4.isValidElement(child))
11663
11717
  return;
11664
11718
  const key = child.key;
11665
11719
  if (typeof key !== "string")
@@ -11803,36 +11857,36 @@ const Tabs$1 = (p) => {
11803
11857
  updateMask(true);
11804
11858
  }, []);
11805
11859
  return withNativeProps(props, React__default.default.createElement("div", {
11806
- className: classPrefix$13
11860
+ className: classPrefix$15
11807
11861
  }, React__default.default.createElement("div", {
11808
- className: `${classPrefix$13}-header`
11862
+ className: `${classPrefix$15}-header`
11809
11863
  }, React__default.default.createElement(animated.div, {
11810
- className: classNames(`${classPrefix$13}-header-mask`, `${classPrefix$13}-header-mask-left`),
11864
+ className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-left`),
11811
11865
  style: {
11812
11866
  opacity: leftMaskOpacity
11813
11867
  }
11814
11868
  }), React__default.default.createElement(animated.div, {
11815
- className: classNames(`${classPrefix$13}-header-mask`, `${classPrefix$13}-header-mask-right`),
11869
+ className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-right`),
11816
11870
  style: {
11817
11871
  opacity: rightMaskOpacity
11818
11872
  }
11819
11873
  }), React__default.default.createElement(animated.div, {
11820
- className: `${classPrefix$13}-tab-list`,
11874
+ className: `${classPrefix$15}-tab-list`,
11821
11875
  ref: tabListContainerRef,
11822
11876
  scrollLeft,
11823
11877
  onScroll: updateMask,
11824
11878
  role: "tablist"
11825
11879
  }, React__default.default.createElement(animated.div, {
11826
11880
  ref: activeLineRef,
11827
- className: `${classPrefix$13}-tab-line`,
11881
+ className: `${classPrefix$15}-tab-line`,
11828
11882
  style: {
11829
11883
  width: props.activeLineMode === "fixed" ? "var(--fixed-active-line-width, 30px)" : width,
11830
11884
  x
11831
11885
  }
11832
11886
  }), panes.map((pane) => withNativeProps(pane.props, React__default.default.createElement("div", {
11833
11887
  key: pane.key,
11834
- className: classNames(`${classPrefix$13}-tab-wrapper`, {
11835
- [`${classPrefix$13}-tab-wrapper-stretch`]: props.stretch
11888
+ className: classNames(`${classPrefix$15}-tab-wrapper`, {
11889
+ [`${classPrefix$15}-tab-wrapper-stretch`]: props.stretch
11836
11890
  })
11837
11891
  }, React__default.default.createElement("div", {
11838
11892
  onClick: () => {
@@ -11846,9 +11900,9 @@ const Tabs$1 = (p) => {
11846
11900
  }
11847
11901
  setActiveKey(key.toString());
11848
11902
  },
11849
- className: classNames(`${classPrefix$13}-tab`, {
11850
- [`${classPrefix$13}-tab-active`]: pane.key === activeKey,
11851
- [`${classPrefix$13}-tab-disabled`]: pane.props.disabled
11903
+ className: classNames(`${classPrefix$15}-tab`, {
11904
+ [`${classPrefix$15}-tab-active`]: pane.key === activeKey,
11905
+ [`${classPrefix$15}-tab-disabled`]: pane.props.disabled
11852
11906
  }),
11853
11907
  role: "tab",
11854
11908
  "aria-selected": pane.key === activeKey
@@ -11863,7 +11917,7 @@ const Tabs$1 = (p) => {
11863
11917
  forceRender: pane.props.forceRender,
11864
11918
  destroyOnClose: pane.props.destroyOnClose
11865
11919
  }, React__default.default.createElement("div", {
11866
- className: `${classPrefix$13}-content`,
11920
+ className: `${classPrefix$15}-content`,
11867
11921
  style: {
11868
11922
  display: active ? "block" : "none"
11869
11923
  }
@@ -11875,7 +11929,7 @@ const Tabs = attachPropertiesToComponent(Tabs$1, {
11875
11929
  });
11876
11930
  const checkList = "";
11877
11931
  const list = "";
11878
- const classPrefix$12 = `adm-list`;
11932
+ const classPrefix$14 = `adm-list`;
11879
11933
  const defaultProps$T = {
11880
11934
  mode: "default"
11881
11935
  };
@@ -11888,41 +11942,41 @@ const List$2 = React$4.forwardRef((p, ref) => {
11888
11942
  }
11889
11943
  }));
11890
11944
  return withNativeProps(props, React__default.default.createElement("div", {
11891
- className: classNames(classPrefix$12, `${classPrefix$12}-${props.mode}`),
11945
+ className: classNames(classPrefix$14, `${classPrefix$14}-${props.mode}`),
11892
11946
  ref: nativeElementRef
11893
11947
  }, props.header && React__default.default.createElement("div", {
11894
- className: `${classPrefix$12}-header`
11948
+ className: `${classPrefix$14}-header`
11895
11949
  }, props.header), React__default.default.createElement("div", {
11896
- className: `${classPrefix$12}-body`
11950
+ className: `${classPrefix$14}-body`
11897
11951
  }, React__default.default.createElement("div", {
11898
- className: `${classPrefix$12}-body-inner`
11952
+ className: `${classPrefix$14}-body-inner`
11899
11953
  }, props.children))));
11900
11954
  });
11901
11955
  function isNodeWithContent(node) {
11902
11956
  return node !== void 0 && node !== null && node !== false;
11903
11957
  }
11904
- const classPrefix$11 = `adm-list-item`;
11958
+ const classPrefix$13 = `adm-list-item`;
11905
11959
  const ListItem = (props) => {
11906
11960
  var _a;
11907
11961
  const clickable = (_a = props.clickable) !== null && _a !== void 0 ? _a : !!props.onClick;
11908
11962
  const arrow2 = props.arrow === void 0 ? clickable : props.arrow;
11909
11963
  const content = React__default.default.createElement("div", {
11910
- className: `${classPrefix$11}-content`
11964
+ className: `${classPrefix$13}-content`
11911
11965
  }, isNodeWithContent(props.prefix) && React__default.default.createElement("div", {
11912
- className: `${classPrefix$11}-content-prefix`
11966
+ className: `${classPrefix$13}-content-prefix`
11913
11967
  }, props.prefix), React__default.default.createElement("div", {
11914
- className: `${classPrefix$11}-content-main`
11968
+ className: `${classPrefix$13}-content-main`
11915
11969
  }, isNodeWithContent(props.title) && React__default.default.createElement("div", {
11916
- className: `${classPrefix$11}-title`
11970
+ className: `${classPrefix$13}-title`
11917
11971
  }, props.title), props.children, isNodeWithContent(props.description) && React__default.default.createElement("div", {
11918
- className: `${classPrefix$11}-description`
11972
+ className: `${classPrefix$13}-description`
11919
11973
  }, props.description)), isNodeWithContent(props.extra) && React__default.default.createElement("div", {
11920
- className: `${classPrefix$11}-content-extra`
11974
+ className: `${classPrefix$13}-content-extra`
11921
11975
  }, props.extra), isNodeWithContent(arrow2) && React__default.default.createElement("div", {
11922
- className: `${classPrefix$11}-content-arrow`
11976
+ className: `${classPrefix$13}-content-arrow`
11923
11977
  }, arrow2 === true ? React__default.default.createElement(RightOutline, null) : arrow2));
11924
11978
  return withNativeProps(props, React__default.default.createElement(clickable ? "a" : "div", {
11925
- className: classNames(`${classPrefix$11}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$11}-disabled`),
11979
+ className: classNames(`${classPrefix$13}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$13}-disabled`),
11926
11980
  onClick: props.disabled ? void 0 : props.onClick
11927
11981
  }, content));
11928
11982
  };
@@ -11930,7 +11984,7 @@ const List$1 = attachPropertiesToComponent(List$2, {
11930
11984
  Item: ListItem
11931
11985
  });
11932
11986
  const CheckListContext = React$4.createContext(null);
11933
- const classPrefix$10 = "adm-check-list";
11987
+ const classPrefix$12 = "adm-check-list";
11934
11988
  const defaultProps$S = {
11935
11989
  multiple: false,
11936
11990
  defaultValue: [],
@@ -11967,10 +12021,10 @@ const CheckList$1 = (p) => {
11967
12021
  }
11968
12022
  }, withNativeProps(props, React__default.default.createElement(List$1, {
11969
12023
  mode: props.mode,
11970
- className: classPrefix$10
12024
+ className: classPrefix$12
11971
12025
  }, props.children)));
11972
12026
  };
11973
- const classPrefix$$ = `adm-check-list-item`;
12027
+ const classPrefix$11 = `adm-check-list-item`;
11974
12028
  const CheckListItem = (props) => {
11975
12029
  const context = React$4.useContext(CheckListContext);
11976
12030
  if (context === null) {
@@ -11982,11 +12036,11 @@ const CheckListItem = (props) => {
11982
12036
  const defaultExtra = active ? context.activeIcon : null;
11983
12037
  const renderExtra = context.extra ? context.extra(active) : defaultExtra;
11984
12038
  const extra = React__default.default.createElement("div", {
11985
- className: `${classPrefix$$}-extra`
12039
+ className: `${classPrefix$11}-extra`
11986
12040
  }, renderExtra);
11987
12041
  return withNativeProps(props, React__default.default.createElement(List$1.Item, {
11988
12042
  title: props.title,
11989
- className: classNames(classPrefix$$, readOnly && `${classPrefix$$}-readonly`, active && `${classPrefix$$}-active`),
12043
+ className: classNames(classPrefix$11, readOnly && `${classPrefix$11}-readonly`, active && `${classPrefix$11}-active`),
11990
12044
  description: props.description,
11991
12045
  prefix: props.prefix,
11992
12046
  onClick: (e2) => {
@@ -12077,18 +12131,18 @@ function generateIntArray(from, to2) {
12077
12131
  }
12078
12132
  return array4;
12079
12133
  }
12080
- const classPrefix$_ = "adm-skeleton";
12134
+ const classPrefix$10 = "adm-skeleton";
12081
12135
  const Skeleton$1 = (props) => {
12082
12136
  return withNativeProps(props, React__default.default.createElement("div", {
12083
- className: classNames(classPrefix$_, {
12084
- [`${classPrefix$_}-animated`]: props.animated
12137
+ className: classNames(classPrefix$10, {
12138
+ [`${classPrefix$10}-animated`]: props.animated
12085
12139
  })
12086
12140
  }));
12087
12141
  };
12088
12142
  const SkeletonTitle = (props) => {
12089
12143
  return withNativeProps(props, React__default.default.createElement(Skeleton$1, {
12090
12144
  animated: props.animated,
12091
- className: `${classPrefix$_}-title`
12145
+ className: `${classPrefix$10}-title`
12092
12146
  }));
12093
12147
  };
12094
12148
  const defaultSkeletonParagraphProps = {
@@ -12098,11 +12152,11 @@ const SkeletonParagraph = (p) => {
12098
12152
  const props = mergeProps(defaultSkeletonParagraphProps, p);
12099
12153
  const keys2 = generateIntArray(1, props.lineCount);
12100
12154
  const node = React__default.default.createElement("div", {
12101
- className: `${classPrefix$_}-paragraph`
12155
+ className: `${classPrefix$10}-paragraph`
12102
12156
  }, keys2.map((key) => React__default.default.createElement(Skeleton$1, {
12103
12157
  key,
12104
12158
  animated: props.animated,
12105
- className: `${classPrefix$_}-paragraph-line`
12159
+ className: `${classPrefix$10}-paragraph-line`
12106
12160
  })));
12107
12161
  return withNativeProps(props, node);
12108
12162
  };
@@ -12110,7 +12164,7 @@ const Skeleton = attachPropertiesToComponent(Skeleton$1, {
12110
12164
  Title: SkeletonTitle,
12111
12165
  Paragraph: SkeletonParagraph
12112
12166
  });
12113
- const classPrefix$Z = `adm-cascader-view`;
12167
+ const classPrefix$$ = `adm-cascader-view`;
12114
12168
  const defaultProps$R = {
12115
12169
  defaultValue: []
12116
12170
  };
@@ -12174,7 +12228,7 @@ const CascaderView$1 = (p) => {
12174
12228
  };
12175
12229
  const whetherLoading = (options) => props.loading || options === optionSkeleton;
12176
12230
  return withNativeProps(props, React__default.default.createElement("div", {
12177
- className: classPrefix$Z
12231
+ className: classPrefix$$
12178
12232
  }, React__default.default.createElement(Tabs, {
12179
12233
  activeKey: tabActiveIndex.toString(),
12180
12234
  onChange: (key) => {
@@ -12182,30 +12236,30 @@ const CascaderView$1 = (p) => {
12182
12236
  setTabActiveIndex(activeIndex);
12183
12237
  },
12184
12238
  stretch: false,
12185
- className: `${classPrefix$Z}-tabs`
12239
+ className: `${classPrefix$$}-tabs`
12186
12240
  }, levels.map((level, index2) => {
12187
12241
  const selected = level.selected;
12188
12242
  return React__default.default.createElement(Tabs.Tab, {
12189
12243
  key: index2.toString(),
12190
12244
  title: React__default.default.createElement("div", {
12191
- className: `${classPrefix$Z}-header-title`
12245
+ className: `${classPrefix$$}-header-title`
12192
12246
  }, selected ? selected.label : typeof placeholder === "function" ? placeholder(index2) : placeholder),
12193
12247
  forceRender: true
12194
12248
  }, React__default.default.createElement("div", {
12195
- className: `${classPrefix$Z}-content`
12249
+ className: `${classPrefix$$}-content`
12196
12250
  }, whetherLoading(level.options) ? React__default.default.createElement("div", {
12197
- className: `${classPrefix$Z}-skeleton`
12251
+ className: `${classPrefix$$}-skeleton`
12198
12252
  }, React__default.default.createElement(Skeleton, {
12199
- className: `${classPrefix$Z}-skeleton-line-1`,
12253
+ className: `${classPrefix$$}-skeleton-line-1`,
12200
12254
  animated: true
12201
12255
  }), React__default.default.createElement(Skeleton, {
12202
- className: `${classPrefix$Z}-skeleton-line-2`,
12256
+ className: `${classPrefix$$}-skeleton-line-2`,
12203
12257
  animated: true
12204
12258
  }), React__default.default.createElement(Skeleton, {
12205
- className: `${classPrefix$Z}-skeleton-line-3`,
12259
+ className: `${classPrefix$$}-skeleton-line-3`,
12206
12260
  animated: true
12207
12261
  }), React__default.default.createElement(Skeleton, {
12208
- className: `${classPrefix$Z}-skeleton-line-4`,
12262
+ className: `${classPrefix$$}-skeleton-line-4`,
12209
12263
  animated: true
12210
12264
  })) : React__default.default.createElement(CheckList, {
12211
12265
  value: [value[index2]],
@@ -12217,8 +12271,8 @@ const CascaderView$1 = (p) => {
12217
12271
  value: option.value,
12218
12272
  key: option.value,
12219
12273
  disabled: option.disabled,
12220
- className: classNames(`${classPrefix$Z}-item`, {
12221
- [`${classPrefix$Z}-item-active`]: active
12274
+ className: classNames(`${classPrefix$$}-item`, {
12275
+ [`${classPrefix$$}-item-active`]: active
12222
12276
  })
12223
12277
  }, option.label);
12224
12278
  }))));
@@ -12227,7 +12281,7 @@ const CascaderView$1 = (p) => {
12227
12281
  const CascaderView = attachPropertiesToComponent(CascaderView$1, {
12228
12282
  optionSkeleton
12229
12283
  });
12230
- const classPrefix$Y = `adm-cascader`;
12284
+ const classPrefix$_ = `adm-cascader`;
12231
12285
  const defaultProps$Q = {
12232
12286
  defaultValue: [],
12233
12287
  destroyOnClose: true,
@@ -12279,26 +12333,26 @@ const Cascader = React$4.forwardRef((p, ref) => {
12279
12333
  }
12280
12334
  }, [visible, value]);
12281
12335
  const cascaderElement = withNativeProps(props, React__default.default.createElement("div", {
12282
- className: classPrefix$Y
12336
+ className: classPrefix$_
12283
12337
  }, React__default.default.createElement("div", {
12284
- className: `${classPrefix$Y}-header`
12338
+ className: `${classPrefix$_}-header`
12285
12339
  }, React__default.default.createElement("a", {
12286
- className: `${classPrefix$Y}-header-button`,
12340
+ className: `${classPrefix$_}-header-button`,
12287
12341
  onClick: () => {
12288
12342
  var _a2;
12289
12343
  (_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
12290
12344
  setVisible(false);
12291
12345
  }
12292
12346
  }, props.cancelText), React__default.default.createElement("div", {
12293
- className: `${classPrefix$Y}-header-title`
12347
+ className: `${classPrefix$_}-header-title`
12294
12348
  }, props.title), React__default.default.createElement("a", {
12295
- className: `${classPrefix$Y}-header-button`,
12349
+ className: `${classPrefix$_}-header-button`,
12296
12350
  onClick: () => {
12297
12351
  setValue2(innerValue, true);
12298
12352
  setVisible(false);
12299
12353
  }
12300
12354
  }, props.confirmText)), React__default.default.createElement("div", {
12301
- className: `${classPrefix$Y}-body`
12355
+ className: `${classPrefix$_}-body`
12302
12356
  }, React__default.default.createElement(CascaderView, Object.assign({}, props, {
12303
12357
  value: innerValue,
12304
12358
  onChange: (val, ext) => {
@@ -12363,6 +12417,7 @@ const index$g = attachPropertiesToComponent(Cascader, {
12363
12417
  optionSkeleton
12364
12418
  });
12365
12419
  const centerPopup = "";
12420
+ const classPrefix$Z = "adm-center-popup";
12366
12421
  const defaultProps$P = Object.assign(Object.assign({}, defaultPopupBaseProps), {
12367
12422
  getContainer: null
12368
12423
  });
@@ -12400,11 +12455,11 @@ const CenterPopup$1 = (p) => {
12400
12455
  useLockScroll(ref, props.disableBodyScroll && active);
12401
12456
  const maskVisible = useInnerVisible(active && props.visible);
12402
12457
  const body = React__default.default.createElement("div", {
12403
- className: classNames("adm-center-popup-body", props.bodyClassName),
12458
+ className: classNames(`${classPrefix$Z}-body`, props.bodyClassName),
12404
12459
  style: props.bodyStyle
12405
12460
  }, props.children);
12406
12461
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.default.createElement("div", {
12407
- className: "adm-center-popup",
12462
+ className: classPrefix$Z,
12408
12463
  style: {
12409
12464
  display: active ? void 0 : "none",
12410
12465
  pointerEvents: active ? void 0 : "none"
@@ -12421,18 +12476,18 @@ const CenterPopup$1 = (p) => {
12421
12476
  }
12422
12477
  },
12423
12478
  style: props.maskStyle,
12424
- className: classNames("adm-center-popup-mask", props.maskClassName),
12479
+ className: classNames(`${classPrefix$Z}-mask`, props.maskClassName),
12425
12480
  disableBodyScroll: false,
12426
12481
  stopPropagation: props.stopPropagation
12427
12482
  }), React__default.default.createElement("div", {
12428
- className: "adm-center-popup-wrap",
12483
+ className: `${classPrefix$Z}-wrap`,
12429
12484
  role: props.role,
12430
12485
  "aria-label": props["aria-label"]
12431
12486
  }, React__default.default.createElement(animated.div, {
12432
12487
  style,
12433
12488
  ref
12434
12489
  }, props.showCloseButton && React__default.default.createElement("a", {
12435
- className: classNames("adm-center-popup-close", "adm-plain-anchor"),
12490
+ className: classNames(`${classPrefix$Z}-close`, "adm-plain-anchor"),
12436
12491
  onClick: () => {
12437
12492
  var _a;
12438
12493
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -12518,7 +12573,7 @@ const NativeInput = (props) => {
12518
12573
  id: props.id
12519
12574
  });
12520
12575
  };
12521
- const classPrefix$X = `adm-checkbox`;
12576
+ const classPrefix$Y = `adm-checkbox`;
12522
12577
  const defaultProps$N = {
12523
12578
  defaultChecked: false,
12524
12579
  indeterminate: false
@@ -12570,19 +12625,20 @@ const Checkbox$1 = React$4.forwardRef((p, ref) => {
12570
12625
  const renderIcon = () => {
12571
12626
  if (props.icon) {
12572
12627
  return React__default.default.createElement("div", {
12573
- className: `${classPrefix$X}-custom-icon`
12628
+ className: `${classPrefix$Y}-custom-icon`
12574
12629
  }, props.icon(checked, props.indeterminate));
12575
12630
  }
12576
12631
  return React__default.default.createElement("div", {
12577
- className: `${classPrefix$X}-icon`
12632
+ className: `${classPrefix$Y}-icon`
12578
12633
  }, props.indeterminate ? React__default.default.createElement(IndeterminateIcon, null) : checked && React__default.default.createElement(CheckIcon, null));
12579
12634
  };
12580
12635
  return withNativeProps(props, React__default.default.createElement("label", {
12581
- className: classNames(classPrefix$X, {
12582
- [`${classPrefix$X}-checked`]: checked && !props.indeterminate,
12583
- [`${classPrefix$X}-indeterminate`]: props.indeterminate,
12584
- [`${classPrefix$X}-disabled`]: disabled,
12585
- [`${classPrefix$X}-block`]: props.block
12636
+ onClick: props.onClick,
12637
+ className: classNames(classPrefix$Y, {
12638
+ [`${classPrefix$Y}-checked`]: checked && !props.indeterminate,
12639
+ [`${classPrefix$Y}-indeterminate`]: props.indeterminate,
12640
+ [`${classPrefix$Y}-disabled`]: disabled,
12641
+ [`${classPrefix$Y}-block`]: props.block
12586
12642
  })
12587
12643
  }, React__default.default.createElement(NativeInput, {
12588
12644
  type: "checkbox",
@@ -12591,14 +12647,14 @@ const Checkbox$1 = React$4.forwardRef((p, ref) => {
12591
12647
  disabled,
12592
12648
  id: props.id
12593
12649
  }), renderIcon(), props.children && React__default.default.createElement("div", {
12594
- className: `${classPrefix$X}-content`
12650
+ className: `${classPrefix$Y}-content`
12595
12651
  }, props.children)));
12596
12652
  });
12597
12653
  const Checkbox = attachPropertiesToComponent(Checkbox$1, {
12598
12654
  Group: Group$1
12599
12655
  });
12600
12656
  const collapse = "";
12601
- const classPrefix$W = `adm-collapse`;
12657
+ const classPrefix$X = `adm-collapse`;
12602
12658
  const CollapsePanel = () => {
12603
12659
  return null;
12604
12660
  };
@@ -12652,8 +12708,8 @@ const CollapsePanelContent = (props) => {
12652
12708
  }
12653
12709
  }, [visible]);
12654
12710
  return React__default.default.createElement(animated.div, {
12655
- className: classNames(`${classPrefix$W}-panel-content`, {
12656
- [`${classPrefix$W}-panel-content-active`]: visible
12711
+ className: classNames(`${classPrefix$X}-panel-content`, {
12712
+ [`${classPrefix$X}-panel-content-active`]: visible
12657
12713
  }),
12658
12714
  style: {
12659
12715
  height: height.to((v) => {
@@ -12665,41 +12721,56 @@ const CollapsePanelContent = (props) => {
12665
12721
  })
12666
12722
  }
12667
12723
  }, React__default.default.createElement("div", {
12668
- className: `${classPrefix$W}-panel-content-inner`,
12724
+ className: `${classPrefix$X}-panel-content-inner`,
12669
12725
  ref: innerRef
12670
12726
  }, React__default.default.createElement(List$1.Item, null, shouldRender && props.children)));
12671
12727
  };
12672
12728
  const Collapse = (props) => {
12673
- var _a;
12674
12729
  const panels = [];
12675
12730
  traverseReactNode(props.children, (child) => {
12676
- if (!React__default.default.isValidElement(child))
12731
+ if (!React$4.isValidElement(child))
12677
12732
  return;
12678
12733
  const key = child.key;
12679
12734
  if (typeof key !== "string")
12680
12735
  return;
12681
12736
  panels.push(child);
12682
12737
  });
12683
- const [activeKey, setActiveKey] = usePropsValue(props.accordion ? {
12684
- value: props.activeKey === void 0 ? void 0 : props.activeKey === null ? [] : [props.activeKey],
12685
- defaultValue: props.defaultActiveKey === void 0 || props.defaultActiveKey === null ? [] : [props.defaultActiveKey],
12686
- onChange: (v) => {
12687
- var _a2, _b;
12688
- (_a2 = props.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, (_b = v[0]) !== null && _b !== void 0 ? _b : null);
12738
+ const handlePropsValue = () => {
12739
+ var _a;
12740
+ if (!props.accordion) {
12741
+ return {
12742
+ value: props.activeKey,
12743
+ defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
12744
+ onChange: props.onChange
12745
+ };
12689
12746
  }
12690
- } : {
12691
- value: props.activeKey,
12692
- defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
12693
- onChange: props.onChange
12694
- });
12747
+ const initValue = {
12748
+ value: [],
12749
+ defaultValue: [],
12750
+ onChange: (v) => {
12751
+ var _a2, _b;
12752
+ (_a2 = props.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, (_b = v[0]) !== null && _b !== void 0 ? _b : null);
12753
+ }
12754
+ };
12755
+ if (props.activeKey === void 0) {
12756
+ initValue.value = void 0;
12757
+ } else if (props.activeKey !== null) {
12758
+ initValue.value = [props.activeKey];
12759
+ }
12760
+ if (![null, void 0].includes(props.defaultActiveKey)) {
12761
+ initValue.defaultValue = [props.defaultActiveKey];
12762
+ }
12763
+ return initValue;
12764
+ };
12765
+ const [activeKey, setActiveKey] = usePropsValue(handlePropsValue());
12695
12766
  const activeKeyList = activeKey === null ? [] : Array.isArray(activeKey) ? activeKey : [activeKey];
12696
12767
  return withNativeProps(props, React__default.default.createElement("div", {
12697
- className: classPrefix$W
12768
+ className: classPrefix$X
12698
12769
  }, React__default.default.createElement(List$1, null, panels.map((panel) => {
12699
12770
  const key = panel.key;
12700
12771
  const active = activeKeyList.includes(key);
12701
12772
  function handleClick(event) {
12702
- var _a2, _b;
12773
+ var _a, _b;
12703
12774
  if (props.accordion) {
12704
12775
  if (active) {
12705
12776
  setActiveKey([]);
@@ -12713,7 +12784,7 @@ const Collapse = (props) => {
12713
12784
  setActiveKey([...activeKeyList, key]);
12714
12785
  }
12715
12786
  }
12716
- (_b = (_a2 = panel.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a2, event);
12787
+ (_b = (_a = panel.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event);
12717
12788
  }
12718
12789
  const renderArrow = () => {
12719
12790
  let arrow2 = React__default.default.createElement(DownOutline, null);
@@ -12724,15 +12795,15 @@ const Collapse = (props) => {
12724
12795
  arrow2 = panel.props.arrow;
12725
12796
  }
12726
12797
  return typeof arrow2 === "function" ? arrow2(active) : React__default.default.createElement("div", {
12727
- className: classNames(`${classPrefix$W}-arrow`, {
12728
- [`${classPrefix$W}-arrow-active`]: active
12798
+ className: classNames(`${classPrefix$X}-arrow`, {
12799
+ [`${classPrefix$X}-arrow-active`]: active
12729
12800
  })
12730
12801
  }, arrow2);
12731
12802
  };
12732
12803
  return React__default.default.createElement(React__default.default.Fragment, {
12733
12804
  key
12734
12805
  }, withNativeProps(panel.props, React__default.default.createElement(List$1.Item, {
12735
- className: `${classPrefix$W}-panel-header`,
12806
+ className: `${classPrefix$X}-panel-header`,
12736
12807
  onClick: handleClick,
12737
12808
  disabled: panel.props.disabled,
12738
12809
  arrow: renderArrow()
@@ -12838,67 +12909,55 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
12838
12909
  const lower = minYear;
12839
12910
  const upper = maxYear;
12840
12911
  const years = generateColumn(lower, upper, "year");
12841
- ret.push(years.map((v) => {
12842
- return {
12843
- label: renderLabel("year", v),
12844
- value: v.toString()
12845
- };
12846
- }));
12912
+ ret.push(years.map((v) => ({
12913
+ label: renderLabel("year", v),
12914
+ value: v.toString()
12915
+ })));
12847
12916
  }
12848
12917
  if (rank >= precisionRankRecord$1.month) {
12849
12918
  const lower = isInMinYear ? minMonth : 1;
12850
12919
  const upper = isInMaxYear ? maxMonth : 12;
12851
12920
  const months = generateColumn(lower, upper, "month");
12852
- ret.push(months.map((v) => {
12853
- return {
12854
- label: renderLabel("month", v),
12855
- value: v.toString()
12856
- };
12857
- }));
12921
+ ret.push(months.map((v) => ({
12922
+ label: renderLabel("month", v),
12923
+ value: v.toString()
12924
+ })));
12858
12925
  }
12859
12926
  if (rank >= precisionRankRecord$1.day) {
12860
12927
  const lower = isInMinMonth ? minDay : 1;
12861
12928
  const upper = isInMaxMonth ? maxDay : firstDayInSelectedMonth.daysInMonth();
12862
12929
  const days = generateColumn(lower, upper, "day");
12863
- ret.push(days.map((v) => {
12864
- return {
12865
- label: renderLabel("day", v),
12866
- value: v.toString()
12867
- };
12868
- }));
12930
+ ret.push(days.map((v) => ({
12931
+ label: renderLabel("day", v),
12932
+ value: v.toString()
12933
+ })));
12869
12934
  }
12870
12935
  if (rank >= precisionRankRecord$1.hour) {
12871
12936
  const lower = isInMinDay ? minHour : 0;
12872
12937
  const upper = isInMaxDay ? maxHour : 23;
12873
12938
  const hours = generateColumn(lower, upper, "hour");
12874
- ret.push(hours.map((v) => {
12875
- return {
12876
- label: renderLabel("hour", v),
12877
- value: v.toString()
12878
- };
12879
- }));
12939
+ ret.push(hours.map((v) => ({
12940
+ label: renderLabel("hour", v),
12941
+ value: v.toString()
12942
+ })));
12880
12943
  }
12881
12944
  if (rank >= precisionRankRecord$1.minute) {
12882
12945
  const lower = isInMinHour ? minMinute : 0;
12883
12946
  const upper = isInMaxHour ? maxMinute : 59;
12884
12947
  const minutes = generateColumn(lower, upper, "minute");
12885
- ret.push(minutes.map((v) => {
12886
- return {
12887
- label: renderLabel("minute", v),
12888
- value: v.toString()
12889
- };
12890
- }));
12948
+ ret.push(minutes.map((v) => ({
12949
+ label: renderLabel("minute", v),
12950
+ value: v.toString()
12951
+ })));
12891
12952
  }
12892
12953
  if (rank >= precisionRankRecord$1.second) {
12893
12954
  const lower = isInMinMinute ? minSecond : 0;
12894
12955
  const upper = isInMaxMinute ? maxSecond : 59;
12895
12956
  const seconds = generateColumn(lower, upper, "second");
12896
- ret.push(seconds.map((v) => {
12897
- return {
12898
- label: renderLabel("second", v),
12899
- value: v.toString()
12900
- };
12901
- }));
12957
+ ret.push(seconds.map((v) => ({
12958
+ label: renderLabel("second", v),
12959
+ value: v.toString()
12960
+ })));
12902
12961
  }
12903
12962
  if (tillNow) {
12904
12963
  ret[0].push({
@@ -12975,34 +13034,28 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
12975
13034
  const lower = minYear;
12976
13035
  const upper = maxYear;
12977
13036
  const years = generateColumn(lower, upper, "year");
12978
- ret.push(years.map((v) => {
12979
- return {
12980
- label: renderLabel("year", v),
12981
- value: v.toString()
12982
- };
12983
- }));
13037
+ ret.push(years.map((v) => ({
13038
+ label: renderLabel("year", v),
13039
+ value: v.toString()
13040
+ })));
12984
13041
  }
12985
13042
  if (rank >= precisionRankRecord.week) {
12986
13043
  const lower = isInMinYear ? minWeek : 1;
12987
13044
  const upper = isInMaxYear ? maxWeek : selectedYearWeeks;
12988
13045
  const weeks = generateColumn(lower, upper, "week");
12989
- ret.push(weeks.map((v) => {
12990
- return {
12991
- label: renderLabel("week", v),
12992
- value: v.toString()
12993
- };
12994
- }));
13046
+ ret.push(weeks.map((v) => ({
13047
+ label: renderLabel("week", v),
13048
+ value: v.toString()
13049
+ })));
12995
13050
  }
12996
13051
  if (rank >= precisionRankRecord["week-day"]) {
12997
13052
  const lower = isInMinWeek ? minWeekday : 1;
12998
13053
  const upper = isInMaxWeek ? maxWeekday : 7;
12999
13054
  const weeks = generateColumn(lower, upper, "week-day");
13000
- ret.push(weeks.map((v) => {
13001
- return {
13002
- label: renderLabel("week-day", v),
13003
- value: v.toString()
13004
- };
13005
- }));
13055
+ ret.push(weeks.map((v) => ({
13056
+ label: renderLabel("week-day", v),
13057
+ value: v.toString()
13058
+ })));
13006
13059
  }
13007
13060
  return ret;
13008
13061
  }
@@ -13197,7 +13250,12 @@ const DatePickerView$1 = (p) => {
13197
13250
  defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
13198
13251
  });
13199
13252
  const mergedRenderLabel = useRenderLabel(renderLabel);
13200
- const pickerValue = React$4.useMemo(() => convertDateToStringArray(value, props.precision), [value, props.precision]);
13253
+ const pickerValue = React$4.useMemo(() => {
13254
+ if (value === null || value === void 0 ? void 0 : value.tillNow) {
13255
+ return [TILL_NOW, null, null];
13256
+ }
13257
+ return convertDateToStringArray(value, props.precision);
13258
+ }, [value, props.precision]);
13201
13259
  const onChange = React$4.useCallback((val) => {
13202
13260
  var _a2;
13203
13261
  const date4 = convertStringArrayToDate(val, props.precision);
@@ -13207,7 +13265,7 @@ const DatePickerView$1 = (p) => {
13207
13265
  }
13208
13266
  }, [props.onChange, props.precision]);
13209
13267
  return withNativeProps(props, React__default.default.createElement(PickerView, {
13210
- columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter),
13268
+ columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter, props.tillNow),
13211
13269
  loading: props.loading,
13212
13270
  loadingContent: props.loadingContent,
13213
13271
  value: pickerValue,
@@ -13386,7 +13444,7 @@ const index$d = attachPropertiesToComponent(Dialog, {
13386
13444
  clear: clear$2
13387
13445
  });
13388
13446
  const divider = "";
13389
- const classPrefix$V = `adm-divider`;
13447
+ const classPrefix$W = `adm-divider`;
13390
13448
  const defaultProps$I = {
13391
13449
  contentPosition: "center",
13392
13450
  direction: "horizontal"
@@ -13394,30 +13452,30 @@ const defaultProps$I = {
13394
13452
  const Divider$1 = (p) => {
13395
13453
  const props = mergeProps(defaultProps$I, p);
13396
13454
  return withNativeProps(props, React__default.default.createElement("div", {
13397
- className: classNames(classPrefix$V, `${classPrefix$V}-${props.direction}`, `${classPrefix$V}-${props.contentPosition}`)
13455
+ className: classNames(classPrefix$W, `${classPrefix$W}-${props.direction}`, `${classPrefix$W}-${props.contentPosition}`)
13398
13456
  }, props.children && React__default.default.createElement("div", {
13399
- className: `${classPrefix$V}-content`
13457
+ className: `${classPrefix$W}-content`
13400
13458
  }, props.children)));
13401
13459
  };
13402
13460
  const Divider = Divider$1;
13403
13461
  const dropdown = "";
13404
- const classPrefix$U = `adm-dropdown-item`;
13462
+ const classPrefix$V = `adm-dropdown-item`;
13405
13463
  const Item = (props) => {
13406
13464
  var _a;
13407
- const cls2 = classNames(classPrefix$U, {
13408
- [`${classPrefix$U}-active`]: props.active,
13409
- [`${classPrefix$U}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
13465
+ const cls2 = classNames(classPrefix$V, {
13466
+ [`${classPrefix$V}-active`]: props.active,
13467
+ [`${classPrefix$V}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
13410
13468
  });
13411
13469
  return withNativeProps(props, React__default.default.createElement("div", {
13412
13470
  className: cls2,
13413
13471
  onClick: props.onClick
13414
13472
  }, React__default.default.createElement("div", {
13415
- className: `${classPrefix$U}-title`
13473
+ className: `${classPrefix$V}-title`
13416
13474
  }, React__default.default.createElement("span", {
13417
- className: `${classPrefix$U}-title-text`
13475
+ className: `${classPrefix$V}-title-text`
13418
13476
  }, props.title), React__default.default.createElement("span", {
13419
- className: classNames(`${classPrefix$U}-title-arrow`, {
13420
- [`${classPrefix$U}-title-arrow-active`]: props.active
13477
+ className: classNames(`${classPrefix$V}-title-arrow`, {
13478
+ [`${classPrefix$V}-title-arrow-active`]: props.active
13421
13479
  })
13422
13480
  }, props.arrow === void 0 ? React__default.default.createElement(DownFill, null) : props.arrow))));
13423
13481
  };
@@ -13427,15 +13485,15 @@ const ItemChildrenWrap = (props) => {
13427
13485
  active = false
13428
13486
  } = props;
13429
13487
  const shouldRender = useShouldRender(active, props.forceRender, props.destroyOnClose);
13430
- const cls2 = classNames(`${classPrefix$U}-content`, {
13431
- [`${classPrefix$U}-content-hidden`]: !active
13488
+ const cls2 = classNames(`${classPrefix$V}-content`, {
13489
+ [`${classPrefix$V}-content-hidden`]: !active
13432
13490
  });
13433
13491
  return shouldRender ? React__default.default.createElement("div", {
13434
13492
  className: cls2,
13435
13493
  onClick: props.onClick
13436
13494
  }, props.children) : null;
13437
13495
  };
13438
- const classPrefix$T = `adm-dropdown`;
13496
+ const classPrefix$U = `adm-dropdown`;
13439
13497
  const defaultProps$H = {
13440
13498
  defaultActiveKey: null,
13441
13499
  closeOnMaskClick: true,
@@ -13477,7 +13535,7 @@ const Dropdown = React$4.forwardRef((p, ref) => {
13477
13535
  let popupForceRender = false;
13478
13536
  const items = [];
13479
13537
  const navs = React__default.default.Children.map(props.children, (child) => {
13480
- if (React__default.default.isValidElement(child)) {
13538
+ if (React$4.isValidElement(child)) {
13481
13539
  const childProps = Object.assign(Object.assign({}, child.props), {
13482
13540
  onClick: () => {
13483
13541
  changeActive(child.key);
@@ -13499,20 +13557,20 @@ const Dropdown = React$4.forwardRef((p, ref) => {
13499
13557
  }
13500
13558
  }), [setValue2]);
13501
13559
  return withNativeProps(props, React__default.default.createElement("div", {
13502
- className: classNames(classPrefix$T, {
13503
- [`${classPrefix$T}-open`]: !!value
13560
+ className: classNames(classPrefix$U, {
13561
+ [`${classPrefix$U}-open`]: !!value
13504
13562
  }),
13505
13563
  ref: containerRef
13506
13564
  }, React__default.default.createElement("div", {
13507
- className: `${classPrefix$T}-nav`,
13565
+ className: `${classPrefix$U}-nav`,
13508
13566
  ref: navRef
13509
13567
  }, navs), React__default.default.createElement(Popup, {
13510
13568
  visible: !!value,
13511
13569
  position: "top",
13512
13570
  getContainer: props.getContainer,
13513
- className: `${classPrefix$T}-popup`,
13514
- maskClassName: `${classPrefix$T}-popup-mask`,
13515
- bodyClassName: `${classPrefix$T}-popup-body`,
13571
+ className: `${classPrefix$U}-popup`,
13572
+ maskClassName: `${classPrefix$U}-popup-mask`,
13573
+ bodyClassName: `${classPrefix$U}-popup-body`,
13516
13574
  style: {
13517
13575
  top
13518
13576
  },
@@ -13597,7 +13655,7 @@ function betweenInclusive(i2, e2, n2) {
13597
13655
  !function(i2) {
13598
13656
  i2[i2.unit_1 = 1] = "unit_1", i2[i2.unit_2 = 2] = "unit_2", i2[i2.unit_4 = 4] = "unit_4";
13599
13657
  }(n || (n = {}));
13600
- const classPrefix$S = `adm-ellipsis`;
13658
+ const classPrefix$T = `adm-ellipsis`;
13601
13659
  const defaultProps$G = {
13602
13660
  direction: "end",
13603
13661
  rows: 1,
@@ -13711,18 +13769,18 @@ const Ellipsis$1 = (p) => {
13711
13769
  useIsomorphicLayoutEffect$2(() => {
13712
13770
  calcEllipsised();
13713
13771
  }, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
13714
- const expandActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
13772
+ const expandActionElement = !!props.expandText && withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
13715
13773
  ref: expandElRef,
13716
13774
  onClick: () => {
13717
13775
  setExpanded(true);
13718
13776
  }
13719
- }, props.expandText)) : null;
13720
- const collapseActionElement = exceeded && props.collapseText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
13777
+ }, props.expandText));
13778
+ const collapseActionElement = !!props.collapseText && withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
13721
13779
  ref: collapseElRef,
13722
13780
  onClick: () => {
13723
13781
  setExpanded(false);
13724
13782
  }
13725
- }, props.collapseText)) : null;
13783
+ }, props.collapseText));
13726
13784
  const renderContent = () => {
13727
13785
  if (!exceeded)
13728
13786
  return props.content;
@@ -13732,7 +13790,7 @@ const Ellipsis$1 = (p) => {
13732
13790
  };
13733
13791
  return withNativeProps(props, React__default.default.createElement("div", {
13734
13792
  ref: rootRef,
13735
- className: classPrefix$S,
13793
+ className: classPrefix$T,
13736
13794
  onClick: (e2) => {
13737
13795
  if (e2.target === e2.currentTarget) {
13738
13796
  props.onContentClick(e2);
@@ -13770,7 +13828,7 @@ const EmptyIcon = (props) => {
13770
13828
  fill: "#fafafa"
13771
13829
  })))));
13772
13830
  };
13773
- const classPrefix$R = `adm-empty`;
13831
+ const classPrefix$S = `adm-empty`;
13774
13832
  const Empty$1 = (props) => {
13775
13833
  function renderImageNode() {
13776
13834
  const {
@@ -13778,13 +13836,13 @@ const Empty$1 = (props) => {
13778
13836
  } = props;
13779
13837
  if (image2 === void 0) {
13780
13838
  return React__default.default.createElement(EmptyIcon, {
13781
- className: `${classPrefix$R}-image`,
13839
+ className: `${classPrefix$S}-image`,
13782
13840
  style: props.imageStyle
13783
13841
  });
13784
13842
  }
13785
13843
  if (typeof image2 === "string") {
13786
13844
  return React__default.default.createElement("img", {
13787
- className: `${classPrefix$R}-image`,
13845
+ className: `${classPrefix$S}-image`,
13788
13846
  style: props.imageStyle,
13789
13847
  src: image2,
13790
13848
  alt: "empty"
@@ -13793,16 +13851,16 @@ const Empty$1 = (props) => {
13793
13851
  return image2;
13794
13852
  }
13795
13853
  return withNativeProps(props, React__default.default.createElement("div", {
13796
- className: classPrefix$R
13854
+ className: classPrefix$S
13797
13855
  }, React__default.default.createElement("div", {
13798
- className: `${classPrefix$R}-image-container`
13856
+ className: `${classPrefix$S}-image-container`
13799
13857
  }, renderImageNode()), props.description && React__default.default.createElement("div", {
13800
- className: classNames(`${classPrefix$R}-description`)
13858
+ className: classNames(`${classPrefix$S}-description`)
13801
13859
  }, props.description)));
13802
13860
  };
13803
13861
  const Empty = Empty$1;
13804
13862
  const errorBlock = "";
13805
- const classPrefix$Q = `adm-error-block`;
13863
+ const classPrefix$R = `adm-error-block`;
13806
13864
  const defaultProps$F = {
13807
13865
  status: "default"
13808
13866
  };
@@ -13814,7 +13872,7 @@ function createErrorBlock(imageRecord2) {
13814
13872
  locale
13815
13873
  } = useConfig();
13816
13874
  const contentPack = locale.ErrorBlock[props.status];
13817
- const des = "description" in props ? props.description : contentPack.description;
13875
+ const desc = "description" in props ? props.description : contentPack.description;
13818
13876
  const title = "title" in props ? props.title : contentPack.title;
13819
13877
  const image2 = (_a = props.image) !== null && _a !== void 0 ? _a : imageRecord2[props.status];
13820
13878
  const imageNode = typeof image2 === "string" ? React__default.default.createElement("img", {
@@ -13822,19 +13880,19 @@ function createErrorBlock(imageRecord2) {
13822
13880
  alt: "error block image"
13823
13881
  }) : image2;
13824
13882
  return withNativeProps(props, React__default.default.createElement("div", {
13825
- className: classNames(classPrefix$Q, {
13826
- [`${classPrefix$Q}-full-page`]: props.fullPage
13883
+ className: classNames(classPrefix$R, {
13884
+ [`${classPrefix$R}-full-page`]: props.fullPage
13827
13885
  })
13828
13886
  }, React__default.default.createElement("div", {
13829
- className: `${classPrefix$Q}-image`
13887
+ className: `${classPrefix$R}-image`
13830
13888
  }, imageNode), React__default.default.createElement("div", {
13831
- className: `${classPrefix$Q}-description`
13832
- }, title && React__default.default.createElement("div", {
13833
- className: `${classPrefix$Q}-description-title`
13834
- }, title), des && React__default.default.createElement("div", {
13835
- className: `${classPrefix$Q}-description-subtitle`
13836
- }, des)), props.children && React__default.default.createElement("div", {
13837
- className: `${classPrefix$Q}-content`
13889
+ className: `${classPrefix$R}-description`
13890
+ }, ![void 0, null].includes(title) && React__default.default.createElement("div", {
13891
+ className: `${classPrefix$R}-description-title`
13892
+ }, title), ![void 0, null].includes(desc) && React__default.default.createElement("div", {
13893
+ className: `${classPrefix$R}-description-subtitle`
13894
+ }, desc)), props.children && React__default.default.createElement("div", {
13895
+ className: `${classPrefix$R}-content`
13838
13896
  }, props.children)));
13839
13897
  };
13840
13898
  return ErrorBlock2;
@@ -14342,7 +14400,7 @@ const imageRecord = {
14342
14400
  const ErrorBlock$1 = createErrorBlock(imageRecord);
14343
14401
  const ErrorBlock = ErrorBlock$1;
14344
14402
  const floatingBubble = "";
14345
- const classPrefix$P = `adm-floating-bubble`;
14403
+ const classPrefix$Q = `adm-floating-bubble`;
14346
14404
  const defaultProps$E = {
14347
14405
  axis: "y",
14348
14406
  defaultOffset: {
@@ -14426,11 +14484,11 @@ const FloatingBubble$1 = (p) => {
14426
14484
  from: () => [x.get(), y.get()]
14427
14485
  });
14428
14486
  return withNativeProps(props, React__default.default.createElement("div", {
14429
- className: classPrefix$P
14487
+ className: classPrefix$Q
14430
14488
  }, React__default.default.createElement("div", {
14431
- className: `${classPrefix$P}-boundary-outer`
14489
+ className: `${classPrefix$Q}-boundary-outer`
14432
14490
  }, React__default.default.createElement("div", {
14433
- className: `${classPrefix$P}-boundary`,
14491
+ className: `${classPrefix$Q}-boundary`,
14434
14492
  ref: boundaryRef
14435
14493
  })), React__default.default.createElement(animated.div, Object.assign({}, bind(), {
14436
14494
  style: {
@@ -14438,7 +14496,7 @@ const FloatingBubble$1 = (p) => {
14438
14496
  transform: to([x, y], (x2, y2) => `translate(${x2}px, ${y2}px)`)
14439
14497
  },
14440
14498
  onClick: props.onClick,
14441
- className: `${classPrefix$P}-button`,
14499
+ className: `${classPrefix$Q}-button`,
14442
14500
  ref: buttonRef
14443
14501
  }), props.children)));
14444
14502
  };
@@ -14449,6 +14507,7 @@ function nearest(arr, target) {
14449
14507
  return Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur;
14450
14508
  });
14451
14509
  }
14510
+ const classPrefix$P = "adm-floating-panel";
14452
14511
  const defaultProps$D = {
14453
14512
  handleDraggingOfContent: true
14454
14513
  };
@@ -14511,7 +14570,7 @@ const FloatingPanel$1 = React$4.forwardRef((p, ref) => {
14511
14570
  const {
14512
14571
  event
14513
14572
  } = state;
14514
- if (event.cancelable) {
14573
+ if (event.cancelable && supportsPassive) {
14515
14574
  event.preventDefault();
14516
14575
  }
14517
14576
  event.stopPropagation();
@@ -14535,7 +14594,7 @@ const FloatingPanel$1 = React$4.forwardRef((p, ref) => {
14535
14594
  target: elementRef,
14536
14595
  eventOptions: supportsPassive ? {
14537
14596
  passive: false
14538
- } : false
14597
+ } : void 0
14539
14598
  });
14540
14599
  React$4.useImperativeHandle(ref, () => ({
14541
14600
  setHeight: (height, options) => {
@@ -14548,23 +14607,23 @@ const FloatingPanel$1 = React$4.forwardRef((p, ref) => {
14548
14607
  useLockScroll(elementRef, true);
14549
14608
  return withNativeProps(props, React__default.default.createElement(animated.div, {
14550
14609
  ref: elementRef,
14551
- className: "adm-floating-panel",
14610
+ className: classPrefix$P,
14552
14611
  style: {
14553
14612
  height: Math.round(maxHeight),
14554
14613
  translateY: y.to((y2) => `calc(100% + (${Math.round(y2)}px))`)
14555
14614
  }
14556
14615
  }, React__default.default.createElement("div", {
14557
- className: "adm-floating-panel-mask",
14616
+ className: `${classPrefix$P}-mask`,
14558
14617
  style: {
14559
14618
  display: pulling ? "block" : "none"
14560
14619
  }
14561
14620
  }), React__default.default.createElement("div", {
14562
- className: "adm-floating-panel-header",
14621
+ className: `${classPrefix$P}-header`,
14563
14622
  ref: headerRef
14564
14623
  }, React__default.default.createElement("div", {
14565
- className: "adm-floating-panel-bar"
14624
+ className: `${classPrefix$P}-bar`
14566
14625
  })), React__default.default.createElement("div", {
14567
- className: "adm-floating-panel-content",
14626
+ className: `${classPrefix$P}-content`,
14568
14627
  ref: contentRef
14569
14628
  }, props.children)));
14570
14629
  });
@@ -19192,6 +19251,9 @@ const computePosition$1 = async (reference, floating, config2) => {
19192
19251
  middlewareData
19193
19252
  };
19194
19253
  };
19254
+ function evaluate(value, param) {
19255
+ return typeof value === "function" ? value(param) : value;
19256
+ }
19195
19257
  function expandPaddingObject(padding) {
19196
19258
  return {
19197
19259
  top: 0,
@@ -19237,7 +19299,7 @@ async function detectOverflow(state, options) {
19237
19299
  elementContext = "floating",
19238
19300
  altBoundary = false,
19239
19301
  padding = 0
19240
- } = options;
19302
+ } = evaluate(options, state);
19241
19303
  const paddingObject = getSideObjectFromPadding(padding);
19242
19304
  const altContext = elementContext === "floating" ? "reference" : "floating";
19243
19305
  const element = elements[altBoundary ? altContext : elementContext];
@@ -19281,10 +19343,6 @@ const arrow = (options) => ({
19281
19343
  name: "arrow",
19282
19344
  options,
19283
19345
  async fn(state) {
19284
- const {
19285
- element,
19286
- padding = 0
19287
- } = options || {};
19288
19346
  const {
19289
19347
  x,
19290
19348
  y,
@@ -19293,6 +19351,10 @@ const arrow = (options) => ({
19293
19351
  platform: platform2,
19294
19352
  elements
19295
19353
  } = state;
19354
+ const {
19355
+ element,
19356
+ padding = 0
19357
+ } = evaluate(options, state) || {};
19296
19358
  if (element == null) {
19297
19359
  return {};
19298
19360
  }
@@ -19316,17 +19378,20 @@ const arrow = (options) => ({
19316
19378
  clientSize = elements.floating[clientProp] || rects.floating[length];
19317
19379
  }
19318
19380
  const centerToReference = endDiff / 2 - startDiff / 2;
19319
- const min2 = paddingObject[minProp];
19320
- const max2 = clientSize - arrowDimensions[length] - paddingObject[maxProp];
19381
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
19382
+ const minPadding = min$1(paddingObject[minProp], largestPossiblePadding);
19383
+ const maxPadding = min$1(paddingObject[maxProp], largestPossiblePadding);
19384
+ const min$1$1 = minPadding;
19385
+ const max2 = clientSize - arrowDimensions[length] - maxPadding;
19321
19386
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
19322
- const offset2 = within(min2, center, max2);
19323
- const shouldAddOffset = getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min2 ? paddingObject[minProp] : paddingObject[maxProp]) - arrowDimensions[length] / 2 < 0;
19324
- const alignmentOffset = shouldAddOffset ? center < min2 ? min2 - center : max2 - center : 0;
19387
+ const offset2 = within(min$1$1, center, max2);
19388
+ const shouldAddOffset = getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min$1$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
19389
+ const alignmentOffset = shouldAddOffset ? center < min$1$1 ? min$1$1 - center : max2 - center : 0;
19325
19390
  return {
19326
19391
  [axis]: coords[axis] - alignmentOffset,
19327
19392
  data: {
19328
19393
  [axis]: offset2,
19329
- centerOffset: center - offset2
19394
+ centerOffset: center - offset2 + alignmentOffset
19330
19395
  }
19331
19396
  };
19332
19397
  }
@@ -19422,7 +19487,7 @@ const flip = function(options) {
19422
19487
  fallbackAxisSideDirection = "none",
19423
19488
  flipAlignment = true,
19424
19489
  ...detectOverflowOptions
19425
- } = options;
19490
+ } = evaluate(options, state);
19426
19491
  const side = getSide(placement);
19427
19492
  const isBasePlacement = getSide(initialPlacement) === initialPlacement;
19428
19493
  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
@@ -19510,13 +19575,13 @@ const hide = function(options) {
19510
19575
  name: "hide",
19511
19576
  options,
19512
19577
  async fn(state) {
19513
- const {
19514
- strategy = "referenceHidden",
19515
- ...detectOverflowOptions
19516
- } = options;
19517
19578
  const {
19518
19579
  rects
19519
19580
  } = state;
19581
+ const {
19582
+ strategy = "referenceHidden",
19583
+ ...detectOverflowOptions
19584
+ } = evaluate(options, state);
19520
19585
  switch (strategy) {
19521
19586
  case "referenceHidden": {
19522
19587
  const overflow = await detectOverflow(state, {
@@ -19551,7 +19616,7 @@ const hide = function(options) {
19551
19616
  }
19552
19617
  };
19553
19618
  };
19554
- async function convertValueToCoords(state, value) {
19619
+ async function convertValueToCoords(state, options) {
19555
19620
  const {
19556
19621
  placement,
19557
19622
  platform: platform2,
@@ -19563,7 +19628,7 @@ async function convertValueToCoords(state, value) {
19563
19628
  const isVertical = getMainAxisFromPlacement(placement) === "x";
19564
19629
  const mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
19565
19630
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
19566
- const rawValue = typeof value === "function" ? value(state) : value;
19631
+ const rawValue = evaluate(options, state);
19567
19632
  let {
19568
19633
  mainAxis,
19569
19634
  crossAxis,
@@ -19589,19 +19654,19 @@ async function convertValueToCoords(state, value) {
19589
19654
  y: crossAxis * crossAxisMulti
19590
19655
  };
19591
19656
  }
19592
- const offset = function(value) {
19593
- if (value === void 0) {
19594
- value = 0;
19657
+ const offset = function(options) {
19658
+ if (options === void 0) {
19659
+ options = 0;
19595
19660
  }
19596
19661
  return {
19597
19662
  name: "offset",
19598
- options: value,
19663
+ options,
19599
19664
  async fn(state) {
19600
19665
  const {
19601
19666
  x,
19602
19667
  y
19603
19668
  } = state;
19604
- const diffCoords = await convertValueToCoords(state, value);
19669
+ const diffCoords = await convertValueToCoords(state, options);
19605
19670
  return {
19606
19671
  x: x + diffCoords.x,
19607
19672
  y: y + diffCoords.y,
@@ -19642,7 +19707,7 @@ const shift = function(options) {
19642
19707
  }
19643
19708
  },
19644
19709
  ...detectOverflowOptions
19645
- } = options;
19710
+ } = evaluate(options, state);
19646
19711
  const coords = {
19647
19712
  x,
19648
19713
  y
@@ -19699,7 +19764,7 @@ const limitShift = function(options) {
19699
19764
  offset: offset2 = 0,
19700
19765
  mainAxis: checkMainAxis = true,
19701
19766
  crossAxis: checkCrossAxis = true
19702
- } = options;
19767
+ } = evaluate(options, state);
19703
19768
  const coords = {
19704
19769
  x,
19705
19770
  y
@@ -19708,7 +19773,7 @@ const limitShift = function(options) {
19708
19773
  const crossAxis = getCrossAxis(mainAxis);
19709
19774
  let mainAxisCoord = coords[mainAxis];
19710
19775
  let crossAxisCoord = coords[crossAxis];
19711
- const rawOffset = typeof offset2 === "function" ? offset2(state) : offset2;
19776
+ const rawOffset = evaluate(offset2, state);
19712
19777
  const computedOffset = typeof rawOffset === "number" ? {
19713
19778
  mainAxis: rawOffset,
19714
19779
  crossAxis: 0
@@ -19757,19 +19822,10 @@ function isNode(value) {
19757
19822
  return value instanceof getWindow(value).Node;
19758
19823
  }
19759
19824
  function getNodeName(node) {
19760
- return isNode(node) ? (node.nodeName || "").toLowerCase() : "";
19761
- }
19762
- let uaString;
19763
- function getUAString() {
19764
- if (uaString) {
19765
- return uaString;
19825
+ if (isNode(node)) {
19826
+ return (node.nodeName || "").toLowerCase();
19766
19827
  }
19767
- const uaData = navigator.userAgentData;
19768
- if (uaData && Array.isArray(uaData.brands)) {
19769
- uaString = uaData.brands.map((item) => item.brand + "/" + item.version).join(" ");
19770
- return uaString;
19771
- }
19772
- return navigator.userAgent;
19828
+ return "#document";
19773
19829
  }
19774
19830
  function isHTMLElement(value) {
19775
19831
  return value instanceof getWindow(value).HTMLElement;
@@ -19781,8 +19837,7 @@ function isShadowRoot(node) {
19781
19837
  if (typeof ShadowRoot === "undefined") {
19782
19838
  return false;
19783
19839
  }
19784
- const OwnElement = getWindow(node).ShadowRoot;
19785
- return node instanceof OwnElement || node instanceof ShadowRoot;
19840
+ return node instanceof getWindow(node).ShadowRoot || node instanceof ShadowRoot;
19786
19841
  }
19787
19842
  function isOverflowElement(element) {
19788
19843
  const {
@@ -19797,16 +19852,14 @@ function isTableElement(element) {
19797
19852
  return ["table", "td", "th"].includes(getNodeName(element));
19798
19853
  }
19799
19854
  function isContainingBlock(element) {
19800
- const isFirefox = /firefox/i.test(getUAString());
19855
+ const safari = isSafari();
19801
19856
  const css = getComputedStyle$1(element);
19802
- const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
19803
- return css.transform !== "none" || css.perspective !== "none" || (backdropFilter ? backdropFilter !== "none" : false) || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective"].some((value) => css.willChange.includes(value)) || ["paint", "layout", "strict", "content"].some((value) => {
19804
- const contain = css.contain;
19805
- return contain != null ? contain.includes(value) : false;
19806
- });
19857
+ return css.transform !== "none" || css.perspective !== "none" || !safari && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !safari && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
19807
19858
  }
19808
- function isClientRectVisualViewportBased() {
19809
- return /^((?!chrome|android).)*safari/i.test(getUAString());
19859
+ function isSafari() {
19860
+ if (typeof CSS === "undefined" || !CSS.supports)
19861
+ return false;
19862
+ return CSS.supports("-webkit-backdrop-filter", "none");
19810
19863
  }
19811
19864
  function isLastTraversableNode(node) {
19812
19865
  return ["html", "body", "#document"].includes(getNodeName(node));
@@ -19814,10 +19867,15 @@ function isLastTraversableNode(node) {
19814
19867
  const min = Math.min;
19815
19868
  const max = Math.max;
19816
19869
  const round = Math.round;
19870
+ const floor = Math.floor;
19871
+ const createEmptyCoords = (v) => ({
19872
+ x: v,
19873
+ y: v
19874
+ });
19817
19875
  function getCssDimensions(element) {
19818
19876
  const css = getComputedStyle$1(element);
19819
- let width = parseFloat(css.width);
19820
- let height = parseFloat(css.height);
19877
+ let width = parseFloat(css.width) || 0;
19878
+ let height = parseFloat(css.height) || 0;
19821
19879
  const hasOffset = isHTMLElement(element);
19822
19880
  const offsetWidth = hasOffset ? element.offsetWidth : width;
19823
19881
  const offsetHeight = hasOffset ? element.offsetHeight : height;
@@ -19829,29 +19887,25 @@ function getCssDimensions(element) {
19829
19887
  return {
19830
19888
  width,
19831
19889
  height,
19832
- fallback: shouldFallback
19890
+ $: shouldFallback
19833
19891
  };
19834
19892
  }
19835
19893
  function unwrapElement(element) {
19836
19894
  return !isElement(element) ? element.contextElement : element;
19837
19895
  }
19838
- const FALLBACK_SCALE = {
19839
- x: 1,
19840
- y: 1
19841
- };
19842
19896
  function getScale(element) {
19843
19897
  const domElement = unwrapElement(element);
19844
19898
  if (!isHTMLElement(domElement)) {
19845
- return FALLBACK_SCALE;
19899
+ return createEmptyCoords(1);
19846
19900
  }
19847
19901
  const rect = domElement.getBoundingClientRect();
19848
19902
  const {
19849
19903
  width,
19850
19904
  height,
19851
- fallback
19905
+ $
19852
19906
  } = getCssDimensions(domElement);
19853
- let x = (fallback ? round(rect.width) : rect.width) / width;
19854
- let y = (fallback ? round(rect.height) : rect.height) / height;
19907
+ let x = ($ ? round(rect.width) : rect.width) / width;
19908
+ let y = ($ ? round(rect.height) : rect.height) / height;
19855
19909
  if (!x || !Number.isFinite(x)) {
19856
19910
  x = 1;
19857
19911
  }
@@ -19863,8 +19917,25 @@ function getScale(element) {
19863
19917
  y
19864
19918
  };
19865
19919
  }
19866
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
19920
+ const noOffsets = /* @__PURE__ */ createEmptyCoords(0);
19921
+ function getVisualOffsets(element, isFixed, floatingOffsetParent) {
19867
19922
  var _win$visualViewport, _win$visualViewport2;
19923
+ if (isFixed === void 0) {
19924
+ isFixed = true;
19925
+ }
19926
+ if (!isSafari()) {
19927
+ return noOffsets;
19928
+ }
19929
+ const win = element ? getWindow(element) : window;
19930
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== win) {
19931
+ return noOffsets;
19932
+ }
19933
+ return {
19934
+ x: ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0,
19935
+ y: ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0
19936
+ };
19937
+ }
19938
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
19868
19939
  if (includeScale === void 0) {
19869
19940
  includeScale = false;
19870
19941
  }
@@ -19873,7 +19944,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
19873
19944
  }
19874
19945
  const clientRect = element.getBoundingClientRect();
19875
19946
  const domElement = unwrapElement(element);
19876
- let scale2 = FALLBACK_SCALE;
19947
+ let scale2 = createEmptyCoords(1);
19877
19948
  if (includeScale) {
19878
19949
  if (offsetParent) {
19879
19950
  if (isElement(offsetParent)) {
@@ -19883,28 +19954,27 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
19883
19954
  scale2 = getScale(element);
19884
19955
  }
19885
19956
  }
19886
- const win = domElement ? getWindow(domElement) : window;
19887
- const addVisualOffsets = isClientRectVisualViewportBased() && isFixedStrategy;
19888
- let x = (clientRect.left + (addVisualOffsets ? ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0 : 0)) / scale2.x;
19889
- let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale2.y;
19957
+ const visualOffsets = getVisualOffsets(domElement, isFixedStrategy, offsetParent);
19958
+ let x = (clientRect.left + visualOffsets.x) / scale2.x;
19959
+ let y = (clientRect.top + visualOffsets.y) / scale2.y;
19890
19960
  let width = clientRect.width / scale2.x;
19891
19961
  let height = clientRect.height / scale2.y;
19892
19962
  if (domElement) {
19893
- const win2 = getWindow(domElement);
19963
+ const win = getWindow(domElement);
19894
19964
  const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
19895
- let currentIFrame = win2.frameElement;
19896
- while (currentIFrame && offsetParent && offsetWin !== win2) {
19965
+ let currentIFrame = win.frameElement;
19966
+ while (currentIFrame && offsetParent && offsetWin !== win) {
19897
19967
  const iframeScale = getScale(currentIFrame);
19898
19968
  const iframeRect = currentIFrame.getBoundingClientRect();
19899
19969
  const css = getComputedStyle(currentIFrame);
19900
- iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
19901
- iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
19970
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
19971
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
19902
19972
  x *= iframeScale.x;
19903
19973
  y *= iframeScale.y;
19904
19974
  width *= iframeScale.x;
19905
19975
  height *= iframeScale.y;
19906
- x += iframeRect.x;
19907
- y += iframeRect.y;
19976
+ x += left;
19977
+ y += top;
19908
19978
  currentIFrame = getWindow(currentIFrame).frameElement;
19909
19979
  }
19910
19980
  }
@@ -19945,14 +20015,8 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
19945
20015
  scrollLeft: 0,
19946
20016
  scrollTop: 0
19947
20017
  };
19948
- let scale2 = {
19949
- x: 1,
19950
- y: 1
19951
- };
19952
- const offsets = {
19953
- x: 0,
19954
- y: 0
19955
- };
20018
+ let scale2 = createEmptyCoords(1);
20019
+ const offsets = createEmptyCoords(0);
19956
20020
  if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== "fixed") {
19957
20021
  if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
19958
20022
  scroll = getNodeScroll(offsetParent);
@@ -20002,7 +20066,7 @@ function getParentNode(node) {
20002
20066
  function getNearestOverflowAncestor(node) {
20003
20067
  const parentNode = getParentNode(node);
20004
20068
  if (isLastTraversableNode(parentNode)) {
20005
- return parentNode.ownerDocument.body;
20069
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
20006
20070
  }
20007
20071
  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
20008
20072
  return parentNode;
@@ -20033,7 +20097,7 @@ function getViewportRect(element, strategy) {
20033
20097
  if (visualViewport) {
20034
20098
  width = visualViewport.width;
20035
20099
  height = visualViewport.height;
20036
- const visualViewportBased = isClientRectVisualViewportBased();
20100
+ const visualViewportBased = isSafari();
20037
20101
  if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
20038
20102
  x = visualViewport.offsetLeft;
20039
20103
  y = visualViewport.offsetTop;
@@ -20050,10 +20114,7 @@ function getInnerBoundingClientRect(element, strategy) {
20050
20114
  const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
20051
20115
  const top = clientRect.top + element.clientTop;
20052
20116
  const left = clientRect.left + element.clientLeft;
20053
- const scale2 = isHTMLElement(element) ? getScale(element) : {
20054
- x: 1,
20055
- y: 1
20056
- };
20117
+ const scale2 = isHTMLElement(element) ? getScale(element) : createEmptyCoords(1);
20057
20118
  const width = element.clientWidth * scale2.x;
20058
20119
  const height = element.clientHeight * scale2.y;
20059
20120
  const x = left * scale2.x;
@@ -20074,19 +20135,22 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
20074
20135
  } else if (isElement(clippingAncestor)) {
20075
20136
  rect = getInnerBoundingClientRect(clippingAncestor, strategy);
20076
20137
  } else {
20077
- const mutableRect = {
20078
- ...clippingAncestor
20138
+ const visualOffsets = getVisualOffsets(element);
20139
+ rect = {
20140
+ ...clippingAncestor,
20141
+ x: clippingAncestor.x - visualOffsets.x,
20142
+ y: clippingAncestor.y - visualOffsets.y
20079
20143
  };
20080
- if (isClientRectVisualViewportBased()) {
20081
- var _win$visualViewport, _win$visualViewport2;
20082
- const win = getWindow(element);
20083
- mutableRect.x -= ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0;
20084
- mutableRect.y -= ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0;
20085
- }
20086
- rect = mutableRect;
20087
20144
  }
20088
20145
  return rectToClientRect(rect);
20089
20146
  }
20147
+ function hasFixedPositionAncestor(element, stopNode) {
20148
+ const parentNode = getParentNode(element);
20149
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
20150
+ return false;
20151
+ }
20152
+ return getComputedStyle$1(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
20153
+ }
20090
20154
  function getClippingElementAncestors(element, cache) {
20091
20155
  const cachedResult = cache.get(element);
20092
20156
  if (cachedResult) {
@@ -20098,11 +20162,11 @@ function getClippingElementAncestors(element, cache) {
20098
20162
  let currentNode = elementIsFixed ? getParentNode(element) : element;
20099
20163
  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
20100
20164
  const computedStyle = getComputedStyle$1(currentNode);
20101
- const containingBlock = isContainingBlock(currentNode);
20102
- if (computedStyle.position === "fixed") {
20165
+ const currentNodeIsContaining = isContainingBlock(currentNode);
20166
+ if (!currentNodeIsContaining && computedStyle.position === "fixed") {
20103
20167
  currentContainingBlockComputedStyle = null;
20104
20168
  }
20105
- const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
20169
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
20106
20170
  if (shouldDropCurrentNode) {
20107
20171
  result2 = result2.filter((ancestor) => ancestor !== currentNode);
20108
20172
  } else {
@@ -20178,21 +20242,19 @@ function getOffsetParent(element, polyfill) {
20178
20242
  function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
20179
20243
  const isOffsetParentAnElement = isHTMLElement(offsetParent);
20180
20244
  const documentElement = getDocumentElement(offsetParent);
20181
- const rect = getBoundingClientRect(element, true, strategy === "fixed", offsetParent);
20245
+ const isFixed = strategy === "fixed";
20246
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
20182
20247
  let scroll = {
20183
20248
  scrollLeft: 0,
20184
20249
  scrollTop: 0
20185
20250
  };
20186
- const offsets = {
20187
- x: 0,
20188
- y: 0
20189
- };
20190
- if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== "fixed") {
20251
+ const offsets = createEmptyCoords(0);
20252
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
20191
20253
  if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
20192
20254
  scroll = getNodeScroll(offsetParent);
20193
20255
  }
20194
20256
  if (isHTMLElement(offsetParent)) {
20195
- const offsetRect = getBoundingClientRect(offsetParent, true);
20257
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
20196
20258
  offsets.x = offsetRect.x + offsetParent.clientLeft;
20197
20259
  offsets.y = offsetRect.y + offsetParent.clientTop;
20198
20260
  } else if (documentElement) {
@@ -20234,34 +20296,92 @@ const platform = {
20234
20296
  getClientRects: (element) => Array.from(element.getClientRects()),
20235
20297
  isRTL: (element) => getComputedStyle$1(element).direction === "rtl"
20236
20298
  };
20299
+ function observeMove(element, onMove) {
20300
+ let io = null;
20301
+ let timeoutId;
20302
+ const root2 = getDocumentElement(element);
20303
+ function cleanup() {
20304
+ clearTimeout(timeoutId);
20305
+ io && io.disconnect();
20306
+ io = null;
20307
+ }
20308
+ function refresh(skip, threshold) {
20309
+ if (skip === void 0) {
20310
+ skip = false;
20311
+ }
20312
+ if (threshold === void 0) {
20313
+ threshold = 1;
20314
+ }
20315
+ cleanup();
20316
+ const {
20317
+ left,
20318
+ top,
20319
+ width,
20320
+ height
20321
+ } = element.getBoundingClientRect();
20322
+ if (!skip) {
20323
+ onMove();
20324
+ }
20325
+ if (!width || !height) {
20326
+ return;
20327
+ }
20328
+ const insetTop = floor(top);
20329
+ const insetRight = floor(root2.clientWidth - (left + width));
20330
+ const insetBottom = floor(root2.clientHeight - (top + height));
20331
+ const insetLeft = floor(left);
20332
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
20333
+ let isFirstUpdate = true;
20334
+ io = new IntersectionObserver((entries) => {
20335
+ const ratio = entries[0].intersectionRatio;
20336
+ if (ratio !== threshold) {
20337
+ if (!isFirstUpdate) {
20338
+ return refresh();
20339
+ }
20340
+ if (!ratio) {
20341
+ timeoutId = setTimeout(() => {
20342
+ refresh(false, 1e-7);
20343
+ }, 100);
20344
+ } else {
20345
+ refresh(false, ratio);
20346
+ }
20347
+ }
20348
+ isFirstUpdate = false;
20349
+ }, {
20350
+ rootMargin,
20351
+ threshold: max(0, min(1, threshold)) || 1
20352
+ });
20353
+ io.observe(element);
20354
+ }
20355
+ refresh(true);
20356
+ return cleanup;
20357
+ }
20237
20358
  function autoUpdate(reference, floating, update2, options) {
20238
20359
  if (options === void 0) {
20239
20360
  options = {};
20240
20361
  }
20241
20362
  const {
20242
- ancestorScroll: _ancestorScroll = true,
20363
+ ancestorScroll = true,
20243
20364
  ancestorResize = true,
20244
20365
  elementResize = true,
20366
+ layoutShift = typeof IntersectionObserver === "function",
20245
20367
  animationFrame = false
20246
20368
  } = options;
20247
- const ancestorScroll = _ancestorScroll && !animationFrame;
20248
- const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : [], ...getOverflowAncestors(floating)] : [];
20369
+ const referenceEl = unwrapElement(reference);
20370
+ const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
20249
20371
  ancestors.forEach((ancestor) => {
20250
20372
  ancestorScroll && ancestor.addEventListener("scroll", update2, {
20251
20373
  passive: true
20252
20374
  });
20253
20375
  ancestorResize && ancestor.addEventListener("resize", update2);
20254
20376
  });
20255
- let observer = null;
20377
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2) : null;
20378
+ let resizeObserver = null;
20256
20379
  if (elementResize) {
20257
- observer = new ResizeObserver(() => {
20258
- update2();
20259
- });
20260
- isElement(reference) && !animationFrame && observer.observe(reference);
20261
- if (!isElement(reference) && reference.contextElement && !animationFrame) {
20262
- observer.observe(reference.contextElement);
20380
+ resizeObserver = new ResizeObserver(update2);
20381
+ if (referenceEl && !animationFrame) {
20382
+ resizeObserver.observe(referenceEl);
20263
20383
  }
20264
- observer.observe(floating);
20384
+ resizeObserver.observe(floating);
20265
20385
  }
20266
20386
  let frameId;
20267
20387
  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
@@ -20278,13 +20398,13 @@ function autoUpdate(reference, floating, update2, options) {
20278
20398
  }
20279
20399
  update2();
20280
20400
  return () => {
20281
- var _observer;
20282
20401
  ancestors.forEach((ancestor) => {
20283
20402
  ancestorScroll && ancestor.removeEventListener("scroll", update2);
20284
20403
  ancestorResize && ancestor.removeEventListener("resize", update2);
20285
20404
  });
20286
- (_observer = observer) == null ? void 0 : _observer.disconnect();
20287
- observer = null;
20405
+ cleanupIo && cleanupIo();
20406
+ resizeObserver && resizeObserver.disconnect();
20407
+ resizeObserver = null;
20288
20408
  if (animationFrame) {
20289
20409
  cancelAnimationFrame(frameId);
20290
20410
  }
@@ -20382,13 +20502,11 @@ const Popover$1 = React$4.forwardRef((p, ref) => {
20382
20502
  defaultValue: props.defaultVisible,
20383
20503
  onChange: props.onVisibleChange
20384
20504
  });
20385
- React$4.useImperativeHandle(ref, () => {
20386
- return {
20387
- show: () => setVisible(true),
20388
- hide: () => setVisible(false),
20389
- visible
20390
- };
20391
- }, [visible]);
20505
+ React$4.useImperativeHandle(ref, () => ({
20506
+ show: () => setVisible(true),
20507
+ hide: () => setVisible(false),
20508
+ visible
20509
+ }), [visible]);
20392
20510
  const targetRef = React$4.useRef(null);
20393
20511
  const floatingRef = React$4.useRef(null);
20394
20512
  const arrowRef = React$4.useRef(null);
@@ -20563,7 +20681,6 @@ const MemoInput = React__default.default.memo(({
20563
20681
  const FormItemLayout = (props) => {
20564
20682
  var _a;
20565
20683
  const {
20566
- className,
20567
20684
  style,
20568
20685
  extra,
20569
20686
  label,
@@ -20605,7 +20722,7 @@ const FormItemLayout = (props) => {
20605
20722
  return null;
20606
20723
  }
20607
20724
  })();
20608
- const labelElement = label ? React__default.default.createElement("label", {
20725
+ const labelElement = !!label && React__default.default.createElement("label", {
20609
20726
  className: `${classPrefix$L}-label`,
20610
20727
  htmlFor
20611
20728
  }, label, requiredMark, help && React__default.default.createElement(Popover, {
@@ -20617,21 +20734,21 @@ const FormItemLayout = (props) => {
20617
20734
  onClick: (e2) => {
20618
20735
  e2.preventDefault();
20619
20736
  }
20620
- }, React__default.default.createElement(QuestionCircleOutline, null)))) : null;
20621
- const description = props.description || hasFeedback ? 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", {
20737
+ }, React__default.default.createElement(QuestionCircleOutline, null))));
20738
+ const description = (!!props.description || hasFeedback) && 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", {
20622
20739
  key: `error-${index2}`,
20623
20740
  className: `${classPrefix$L}-feedback-error`
20624
20741
  }, error)), props.warnings.map((warning3, index2) => React__default.default.createElement("div", {
20625
20742
  key: `warning-${index2}`,
20626
20743
  className: `${classPrefix$L}-feedback-warning`
20627
- }, warning3)))) : null;
20744
+ }, warning3))));
20628
20745
  return withNativeProps(props, React__default.default.createElement(List$1.Item, {
20629
20746
  style,
20630
20747
  title: layout === "vertical" && labelElement,
20631
20748
  prefix: layout === "horizontal" && labelElement,
20632
20749
  extra,
20633
20750
  description,
20634
- className: classNames(classPrefix$L, className, `${classPrefix$L}-${layout}`, {
20751
+ className: classNames(classPrefix$L, `${classPrefix$L}-${layout}`, {
20635
20752
  [`${classPrefix$L}-hidden`]: hidden,
20636
20753
  [`${classPrefix$L}-has-error`]: props.errors.length
20637
20754
  }),
@@ -20647,7 +20764,6 @@ const FormItemLayout = (props) => {
20647
20764
  };
20648
20765
  const FormItem = (props) => {
20649
20766
  const {
20650
- className,
20651
20767
  style,
20652
20768
  label,
20653
20769
  help,
@@ -20671,7 +20787,7 @@ const FormItem = (props) => {
20671
20787
  dependencies,
20672
20788
  clickable,
20673
20789
  arrow: arrow2
20674
- } = props, fieldProps = __rest(props, ["className", "style", "label", "help", "extra", "hasFeedback", "name", "required", "noStyle", "hidden", "layout", "childElementPosition", "description", "disabled", "rules", "children", "messageVariables", "trigger", "validateTrigger", "onClick", "shouldUpdate", "dependencies", "clickable", "arrow"]);
20790
+ } = props, fieldProps = __rest(props, ["style", "label", "help", "extra", "hasFeedback", "name", "required", "noStyle", "hidden", "layout", "childElementPosition", "description", "disabled", "rules", "children", "messageVariables", "trigger", "validateTrigger", "onClick", "shouldUpdate", "dependencies", "clickable", "arrow"]);
20675
20791
  const {
20676
20792
  name: formName
20677
20793
  } = React$4.useContext(FormContext);
@@ -20719,7 +20835,6 @@ const FormItem = (props) => {
20719
20835
  return subWarnings;
20720
20836
  }, curWarnings);
20721
20837
  return withNativeProps(props, React__default.default.createElement(FormItemLayout, {
20722
- className,
20723
20838
  style,
20724
20839
  label,
20725
20840
  extra,
@@ -21448,9 +21563,7 @@ const ImageUploader$1 = (p) => {
21448
21563
  let files = [].slice.call(rawFiles);
21449
21564
  e2.target.value = "";
21450
21565
  if (props.beforeUpload) {
21451
- const postFiles = files.map((file) => {
21452
- return processFile(file, files);
21453
- });
21566
+ const postFiles = files.map((file) => processFile(file, files));
21454
21567
  yield Promise.all(postFiles).then((filesList) => {
21455
21568
  files = filesList.filter(Boolean);
21456
21569
  });
@@ -21924,7 +22037,10 @@ const Input$1 = React$4.forwardRef((p, ref) => {
21924
22037
  function checkValue() {
21925
22038
  let nextValue = value;
21926
22039
  if (props.type === "number") {
21927
- nextValue = nextValue && bound(parseFloat(nextValue), props.min, props.max).toString();
22040
+ const boundValue = nextValue && bound(parseFloat(nextValue), props.min, props.max).toString();
22041
+ if (Number(nextValue) !== Number(boundValue)) {
22042
+ nextValue = boundValue;
22043
+ }
21928
22044
  }
21929
22045
  if (nextValue !== value) {
21930
22046
  setValue2(nextValue);
@@ -22025,7 +22141,7 @@ const JumboTabs = (props) => {
22025
22141
  let firstActiveKey = null;
22026
22142
  const panes = [];
22027
22143
  traverseReactNode(props.children, (child, index2) => {
22028
- if (!React__default.default.isValidElement(child))
22144
+ if (!React$4.isValidElement(child))
22029
22145
  return;
22030
22146
  const key = child.key;
22031
22147
  if (typeof key !== "string")
@@ -22152,19 +22268,17 @@ const Modal = (p) => {
22152
22268
  direction: "vertical",
22153
22269
  block: true,
22154
22270
  className: classNames(cls("footer"), props.actions.length === 0 && cls("footer-empty"))
22155
- }, props.actions.map((action, index2) => {
22156
- return React__default.default.createElement(ModalActionButton, {
22157
- key: action.key,
22158
- action,
22159
- onAction: () => __awaiter(void 0, void 0, void 0, function* () {
22160
- var _a, _b, _c;
22161
- yield Promise.all([(_a = action.onClick) === null || _a === void 0 ? void 0 : _a.call(action), (_b = props.onAction) === null || _b === void 0 ? void 0 : _b.call(props, action, index2)]);
22162
- if (props.closeOnAction) {
22163
- (_c = props.onClose) === null || _c === void 0 ? void 0 : _c.call(props);
22164
- }
22165
- })
22166
- });
22167
- })));
22271
+ }, props.actions.map((action, index2) => React__default.default.createElement(ModalActionButton, {
22272
+ key: action.key,
22273
+ action,
22274
+ onAction: () => __awaiter(void 0, void 0, void 0, function* () {
22275
+ var _a, _b, _c;
22276
+ yield Promise.all([(_a = action.onClick) === null || _a === void 0 ? void 0 : _a.call(action), (_b = props.onAction) === null || _b === void 0 ? void 0 : _b.call(props, action, index2)]);
22277
+ if (props.closeOnAction) {
22278
+ (_c = props.onClose) === null || _c === void 0 ? void 0 : _c.call(props);
22279
+ }
22280
+ })
22281
+ }))));
22168
22282
  return React__default.default.createElement(CenterPopup, {
22169
22283
  className: classNames(cls(), props.className),
22170
22284
  style: props.style,
@@ -22922,7 +23036,7 @@ const PullToRefresh$1 = (p) => {
22922
23036
  enabled: !props.disabled,
22923
23037
  eventOptions: supportsPassive ? {
22924
23038
  passive: false
22925
- } : false
23039
+ } : void 0
22926
23040
  });
22927
23041
  const renderStatusText = () => {
22928
23042
  var _a2;
@@ -23036,6 +23150,7 @@ const Radio = (p) => {
23036
23150
  }, checked && React__default.default.createElement(CheckIcon, null));
23037
23151
  };
23038
23152
  return withNativeProps(props, React__default.default.createElement("label", {
23153
+ onClick: props.onClick,
23039
23154
  className: classNames(classPrefix$q, {
23040
23155
  [`${classPrefix$q}-checked`]: checked,
23041
23156
  [`${classPrefix$q}-disabled`]: disabled,
@@ -23165,9 +23280,9 @@ const Result$1 = (p) => {
23165
23280
  className: `${classPrefix$o}-icon`
23166
23281
  }, resultIcon), React__default.default.createElement("div", {
23167
23282
  className: `${classPrefix$o}-title`
23168
- }, title), description ? React__default.default.createElement("div", {
23283
+ }, title), !!description && React__default.default.createElement("div", {
23169
23284
  className: `${classPrefix$o}-description`
23170
- }, description) : null));
23285
+ }, description)));
23171
23286
  };
23172
23287
  const Result = Result$1;
23173
23288
  const resultPage = "";
@@ -23490,7 +23605,7 @@ const SideBar = (props) => {
23490
23605
  let firstActiveKey = null;
23491
23606
  const items = [];
23492
23607
  traverseReactNode(props.children, (child, index2) => {
23493
- if (!React__default.default.isValidElement(child))
23608
+ if (!React$4.isValidElement(child))
23494
23609
  return;
23495
23610
  const key = child.key;
23496
23611
  if (typeof key !== "string")
@@ -24515,11 +24630,7 @@ function InnerStepper(p, ref) {
24515
24630
  const formatValue = (value2) => {
24516
24631
  if (value2 === null)
24517
24632
  return "";
24518
- if (formatter) {
24519
- return formatter(value2);
24520
- } else {
24521
- return fixedValue(value2);
24522
- }
24633
+ return formatter ? formatter(value2) : fixedValue(value2);
24523
24634
  };
24524
24635
  const [mergedValue, setMergedValue] = _default(defaultValue, {
24525
24636
  value,
@@ -24710,14 +24821,14 @@ const Steps = (p) => {
24710
24821
  if (!React__default.default.isValidElement(child)) {
24711
24822
  return child;
24712
24823
  }
24713
- const props2 = child.props;
24714
- let status = props2.status || "wait";
24824
+ const childProps = child.props;
24825
+ let status = childProps.status || "wait";
24715
24826
  if (index2 < current) {
24716
- status = props2.status || "finish";
24827
+ status = childProps.status || "finish";
24717
24828
  } else if (index2 === current) {
24718
- status = props2.status || "process";
24829
+ status = childProps.status || "process";
24719
24830
  }
24720
- const icon = (_a = props2.icon) !== null && _a !== void 0 ? _a : defaultIcon;
24831
+ const icon = (_a = childProps.icon) !== null && _a !== void 0 ? _a : defaultIcon;
24721
24832
  return React__default.default.cloneElement(child, {
24722
24833
  status,
24723
24834
  icon
@@ -25356,7 +25467,7 @@ const TabBar = (p) => {
25356
25467
  let firstActiveKey = null;
25357
25468
  const items = [];
25358
25469
  traverseReactNode(props.children, (child, index2) => {
25359
- if (!React__default.default.isValidElement(child))
25470
+ if (!React$4.isValidElement(child))
25360
25471
  return;
25361
25472
  const key = child.key;
25362
25473
  if (typeof key !== "string")
@@ -25426,7 +25537,7 @@ const index$1 = attachPropertiesToComponent(TabBar, {
25426
25537
  const tag = "";
25427
25538
  const classPrefix$7 = `adm-tag`;
25428
25539
  const colorRecord = {
25429
- default: "#666666",
25540
+ default: "var(--adm-color-text-secondary, #666666)",
25430
25541
  primary: "var(--adm-color-primary, #1677ff)",
25431
25542
  success: "var(--adm-color-success, #00b578)",
25432
25543
  warning: "var(--adm-color-warning, #ff8f1f)",
@@ -25529,12 +25640,21 @@ const TextArea$1 = React$4.forwardRef((p, ref) => {
25529
25640
  className: `${classPrefix$6}-count`
25530
25641
  }, maxLength === void 0 ? valueLength : valueLength + "/" + maxLength);
25531
25642
  }
25643
+ let rows = props.rows;
25644
+ if (typeof autoSize === "object") {
25645
+ if (autoSize.maxRows && rows > autoSize.maxRows) {
25646
+ rows = autoSize.maxRows;
25647
+ }
25648
+ if (autoSize.minRows && rows < autoSize.minRows) {
25649
+ rows = autoSize.minRows;
25650
+ }
25651
+ }
25532
25652
  return withNativeProps(props, React__default.default.createElement("div", {
25533
25653
  className: classPrefix$6
25534
25654
  }, React__default.default.createElement("textarea", {
25535
25655
  ref: nativeTextAreaRef,
25536
25656
  className: `${classPrefix$6}-element`,
25537
- rows: props.rows,
25657
+ rows,
25538
25658
  value,
25539
25659
  placeholder: props.placeholder,
25540
25660
  onChange: (e2) => {
@@ -25571,7 +25691,7 @@ const TextArea$1 = React$4.forwardRef((p, ref) => {
25571
25691
  ref: hiddenTextAreaRef,
25572
25692
  className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
25573
25693
  value,
25574
- rows: props.rows,
25694
+ rows,
25575
25695
  "aria-hidden": true,
25576
25696
  readOnly: true
25577
25697
  })));
@@ -26008,13 +26128,9 @@ const Multiple = (p) => {
26008
26128
  }
26009
26129
  const isLeaf = deep === index2 + 1;
26010
26130
  if (isLeaf) {
26011
- return React__default.default.createElement(React__default.default.Fragment, null, renderSelectAllLeafItem(columnOptions, index2), columnOptions.map((option) => {
26012
- return renderLeafItem(option);
26013
- }));
26131
+ return React__default.default.createElement(React__default.default.Fragment, null, renderSelectAllLeafItem(columnOptions, index2), columnOptions.map((option) => renderLeafItem(option)));
26014
26132
  }
26015
- return React__default.default.createElement(React__default.default.Fragment, null, renderSelectAllItem(columnOptions, index2), columnOptions.map((option) => {
26016
- return renderItem(option);
26017
- }));
26133
+ return React__default.default.createElement(React__default.default.Fragment, null, renderSelectAllItem(columnOptions, index2), columnOptions.map((option) => renderItem(option)));
26018
26134
  };
26019
26135
  const renderColumns = () => {
26020
26136
  var _a;
@@ -26148,7 +26264,7 @@ const VirtualInput$1 = React$4.forwardRef((p, ref) => {
26148
26264
  },
26149
26265
  role: "button",
26150
26266
  "aria-label": locale.Input.clear
26151
- }, React__default.default.createElement(CloseCircleFill, null)), !value && React__default.default.createElement("div", {
26267
+ }, React__default.default.createElement(CloseCircleFill, null)), [void 0, null, ""].includes(value) && React__default.default.createElement("div", {
26152
26268
  className: `${classPrefix$2}-placeholder`
26153
26269
  }, props.placeholder), keyboardElement));
26154
26270
  });
@@ -26161,7 +26277,7 @@ const defaultProps$1 = {
26161
26277
  const WaterMark$1 = (p) => {
26162
26278
  const props = mergeProps(defaultProps$1, p);
26163
26279
  const {
26164
- zIndex = 2e3,
26280
+ zIndex,
26165
26281
  gapX = 24,
26166
26282
  gapY = 48,
26167
26283
  width = 120,
@@ -26266,31 +26382,27 @@ const Footer$1 = (p) => {
26266
26382
  className: classNames(classPrefix)
26267
26383
  }, label && React__default.default.createElement("div", {
26268
26384
  className: `${classPrefix}-label`
26269
- }, React__default.default.createElement(Divider, null, label)), links && links.length > 0 && React__default.default.createElement("div", {
26385
+ }, React__default.default.createElement(Divider, null, label)), !!(links === null || links === void 0 ? void 0 : links.length) && React__default.default.createElement("div", {
26270
26386
  className: `${classPrefix}-links`
26271
- }, links.map((link, index2) => {
26272
- return React__default.default.createElement(React__default.default.Fragment, {
26273
- key: index2
26274
- }, React__default.default.createElement("a", {
26275
- href: link.href,
26276
- rel: "noopener noreferrer",
26277
- onClick: (event) => clickLinkItem(link, index2, event)
26278
- }, link.text), index2 !== links.length - 1 && React__default.default.createElement(Divider, {
26279
- direction: "vertical"
26280
- }));
26281
- })), content && React__default.default.createElement("div", {
26387
+ }, links.map((link, index2) => React__default.default.createElement(React__default.default.Fragment, {
26388
+ key: index2
26389
+ }, React__default.default.createElement("a", {
26390
+ href: link.href,
26391
+ rel: "noopener noreferrer",
26392
+ onClick: (event) => clickLinkItem(link, index2, event)
26393
+ }, link.text), index2 !== links.length - 1 && React__default.default.createElement(Divider, {
26394
+ direction: "vertical"
26395
+ })))), content && React__default.default.createElement("div", {
26282
26396
  className: `${classPrefix}-content`
26283
26397
  }, content), chips && chips.length > 0 && React__default.default.createElement("div", {
26284
26398
  className: `${classPrefix}-chips`
26285
- }, chips.map((chip, index2) => {
26286
- return React__default.default.createElement("div", {
26287
- key: index2,
26288
- onClick: () => clickChipItem(chip, index2),
26289
- className: classNames(`${classPrefix}-chip`, {
26290
- [`${classPrefix}-chip-link`]: chip.type === "link"
26291
- })
26292
- }, chip.text);
26293
- }))));
26399
+ }, chips.map((chip, index2) => React__default.default.createElement("div", {
26400
+ key: index2,
26401
+ onClick: () => clickChipItem(chip, index2),
26402
+ className: classNames(`${classPrefix}-chip`, {
26403
+ [`${classPrefix}-chip-link`]: chip.type === "link"
26404
+ })
26405
+ }, chip.text)))));
26294
26406
  };
26295
26407
  const Footer = Footer$1;
26296
26408
  exports.ActionSheet = index$j;