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
@@ -1,5 +1,5 @@
1
1
  import * as React$4 from "react";
2
- import React__default, { useContext, useRef, useMemo, useEffect, useState as useState$1, useCallback, useLayoutEffect as useLayoutEffect$2, forwardRef, useImperativeHandle, memo, createContext, cloneElement } from "react";
2
+ import React__default, { useContext, useRef, useMemo, useEffect, useState as useState$1, useCallback, useLayoutEffect as useLayoutEffect$2, forwardRef, useImperativeHandle, memo, isValidElement, createContext, cloneElement } from "react";
3
3
  import * as ReactDOM from "react-dom";
4
4
  import { unstable_batchedUpdates, createPortal, findDOMNode } from "react-dom";
5
5
  const global$2 = "";
@@ -207,7 +207,7 @@ const base = {
207
207
  },
208
208
  Calendar: {
209
209
  markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
210
- renderYearAndMonth: (year, month) => `${year}/${month}`
210
+ yearAndMonth: "${year}/${month}"
211
211
  },
212
212
  Cascader: {
213
213
  placeholder: "Selecting"
@@ -341,7 +341,7 @@ const zhCN = mergeLocale(base, {
341
341
  },
342
342
  Calendar: {
343
343
  markItems: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
344
- renderYearAndMonth: (year, month) => `${year}\u5E74${month}\u6708`
344
+ yearAndMonth: "${year}\u5E74${month}\u6708"
345
345
  },
346
346
  Cascader: {
347
347
  placeholder: "\u8BF7\u9009\u62E9"
@@ -3527,14 +3527,17 @@ function useLockScroll(rootRef, shouldLock) {
3527
3527
  offsetHeight,
3528
3528
  scrollTop
3529
3529
  } = el;
3530
+ const {
3531
+ height
3532
+ } = el.getBoundingClientRect();
3530
3533
  let status = "11";
3531
3534
  if (scrollTop === 0) {
3532
3535
  status = offsetHeight >= scrollHeight ? "00" : "01";
3533
- } else if (scrollTop + offsetHeight >= scrollHeight) {
3536
+ } else if (scrollHeight <= Math.round(height + scrollTop)) {
3534
3537
  status = "10";
3535
3538
  }
3536
3539
  if (status !== "11" && touch.isVertical() && !(parseInt(status, 2) & parseInt(direction, 2))) {
3537
- if (event.cancelable) {
3540
+ if (event.cancelable && supportsPassive) {
3538
3541
  event.preventDefault();
3539
3542
  }
3540
3543
  }
@@ -6801,7 +6804,7 @@ function withStopPropagation(events, element) {
6801
6804
  }
6802
6805
  return React__default.cloneElement(element, props);
6803
6806
  }
6804
- const classPrefix$1l = `adm-mask`;
6807
+ const classPrefix$1n = `adm-mask`;
6805
6808
  const opacityRecord = {
6806
6809
  default: 0.55,
6807
6810
  thin: 0.35,
@@ -6863,7 +6866,7 @@ const Mask$1 = (p) => {
6863
6866
  }
6864
6867
  });
6865
6868
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement(animated.div, {
6866
- className: classPrefix$1l,
6869
+ className: classPrefix$1n,
6867
6870
  ref,
6868
6871
  style: Object.assign(Object.assign({}, props.style), {
6869
6872
  background,
@@ -6877,12 +6880,12 @@ const Mask$1 = (p) => {
6877
6880
  }
6878
6881
  }
6879
6882
  }, props.onMaskClick && React__default.createElement("div", {
6880
- className: `${classPrefix$1l}-aria-button`,
6883
+ className: `${classPrefix$1n}-aria-button`,
6881
6884
  role: "button",
6882
6885
  "aria-label": locale.Mask.name,
6883
6886
  onClick: props.onMaskClick
6884
6887
  }), React__default.createElement("div", {
6885
- className: `${classPrefix$1l}-content`
6888
+ className: `${classPrefix$1n}-content`
6886
6889
  }, props.children))));
6887
6890
  return React__default.createElement(ShouldRender, {
6888
6891
  active,
@@ -9294,25 +9297,25 @@ function createUseGesture(actions) {
9294
9297
  return useRecognizers(handlers, config2, void 0, nativeHandlers);
9295
9298
  };
9296
9299
  }
9297
- const classPrefix$1k = `adm-popup`;
9300
+ const classPrefix$1m = `adm-popup`;
9298
9301
  const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
9299
9302
  closeOnSwipe: false,
9300
9303
  position: "bottom"
9301
9304
  });
9302
9305
  const Popup$1 = (p) => {
9303
9306
  const props = mergeProps(defaultProps$12, p);
9307
+ const bodyCls = classNames(`${classPrefix$1m}-body`, props.bodyClassName, `${classPrefix$1m}-body-position-${props.position}`);
9304
9308
  const {
9305
9309
  locale
9306
9310
  } = useConfig();
9307
- const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
9308
9311
  const [active, setActive] = useState$1(props.visible);
9312
+ const ref = useRef(null);
9313
+ useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
9309
9314
  useIsomorphicLayoutEffect$2(() => {
9310
9315
  if (props.visible) {
9311
9316
  setActive(true);
9312
9317
  }
9313
9318
  }, [props.visible]);
9314
- const ref = useRef(null);
9315
- useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
9316
9319
  const unmountedRef = useUnmountedRef$1();
9317
9320
  const {
9318
9321
  percent
@@ -9351,7 +9354,7 @@ const Popup$1 = (p) => {
9351
9354
  });
9352
9355
  const maskVisible = useInnerVisible(active && props.visible);
9353
9356
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement("div", Object.assign({
9354
- className: classPrefix$1k,
9357
+ className: classPrefix$1m,
9355
9358
  onClick: props.onClick,
9356
9359
  style: {
9357
9360
  display: active ? void 0 : "none",
@@ -9393,7 +9396,7 @@ const Popup$1 = (p) => {
9393
9396
  }),
9394
9397
  ref
9395
9398
  }, props.showCloseButton && React__default.createElement("a", {
9396
- className: classNames(`${classPrefix$1k}-close-icon`, "adm-plain-anchor"),
9399
+ className: classNames(`${classPrefix$1m}-close-icon`, "adm-plain-anchor"),
9397
9400
  onClick: () => {
9398
9401
  var _a;
9399
9402
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -9409,10 +9412,10 @@ const Popup$1 = (p) => {
9409
9412
  };
9410
9413
  const Popup = Popup$1;
9411
9414
  const safeArea = "";
9412
- const classPrefix$1j = "adm-safe-area";
9415
+ const classPrefix$1l = "adm-safe-area";
9413
9416
  const SafeArea$1 = (props) => {
9414
9417
  return withNativeProps(props, React__default.createElement("div", {
9415
- className: classNames(classPrefix$1j, `${classPrefix$1j}-position-${props.position}`)
9418
+ className: classNames(classPrefix$1l, `${classPrefix$1l}-position-${props.position}`)
9416
9419
  }));
9417
9420
  };
9418
9421
  const SafeArea = SafeArea$1;
@@ -9545,7 +9548,7 @@ function renderImperatively(element) {
9545
9548
  }
9546
9549
  };
9547
9550
  }
9548
- const classPrefix$1i = `adm-action-sheet`;
9551
+ const classPrefix$1k = `adm-action-sheet`;
9549
9552
  const defaultProps$11 = {
9550
9553
  visible: false,
9551
9554
  actions: [],
@@ -9568,25 +9571,25 @@ const ActionSheet = (p) => {
9568
9571
  }
9569
9572
  },
9570
9573
  afterClose: props.afterClose,
9571
- className: classNames(`${classPrefix$1i}-popup`, props.popupClassName),
9574
+ className: classNames(`${classPrefix$1k}-popup`, props.popupClassName),
9572
9575
  style: props.popupStyle,
9573
9576
  getContainer: props.getContainer,
9574
9577
  destroyOnClose: props.destroyOnClose,
9575
9578
  forceRender: props.forceRender
9576
9579
  }, withNativeProps(props, React__default.createElement("div", {
9577
- className: classPrefix$1i
9580
+ className: classPrefix$1k
9578
9581
  }, props.extra && React__default.createElement("div", {
9579
- className: `${classPrefix$1i}-extra`
9582
+ className: `${classPrefix$1k}-extra`
9580
9583
  }, props.extra), React__default.createElement("div", {
9581
- className: `${classPrefix$1i}-button-list`
9584
+ className: `${classPrefix$1k}-button-list`
9582
9585
  }, props.actions.map((action, index2) => React__default.createElement("div", {
9583
9586
  key: action.key,
9584
- className: `${classPrefix$1i}-button-item-wrapper`
9587
+ className: `${classPrefix$1k}-button-item-wrapper`
9585
9588
  }, React__default.createElement("a", {
9586
- className: classNames("adm-plain-anchor", `${classPrefix$1i}-button-item`, {
9587
- [`${classPrefix$1i}-button-item-danger`]: action.danger,
9588
- [`${classPrefix$1i}-button-item-disabled`]: action.disabled,
9589
- [`${classPrefix$1i}-button-item-bold`]: action.bold
9589
+ className: classNames("adm-plain-anchor", `${classPrefix$1k}-button-item`, {
9590
+ [`${classPrefix$1k}-button-item-danger`]: action.danger,
9591
+ [`${classPrefix$1k}-button-item-disabled`]: action.disabled,
9592
+ [`${classPrefix$1k}-button-item-bold`]: action.bold
9590
9593
  }),
9591
9594
  onClick: () => {
9592
9595
  var _a, _b, _c;
@@ -9599,23 +9602,23 @@ const ActionSheet = (p) => {
9599
9602
  role: "option",
9600
9603
  "aria-disabled": action.disabled
9601
9604
  }, React__default.createElement("div", {
9602
- className: `${classPrefix$1i}-button-item-name`
9605
+ className: `${classPrefix$1k}-button-item-name`
9603
9606
  }, action.text), action.description && React__default.createElement("div", {
9604
- className: `${classPrefix$1i}-button-item-description`
9607
+ className: `${classPrefix$1k}-button-item-description`
9605
9608
  }, action.description))))), props.cancelText && React__default.createElement("div", {
9606
- className: `${classPrefix$1i}-cancel`,
9609
+ className: `${classPrefix$1k}-cancel`,
9607
9610
  role: "option",
9608
9611
  "aria-label": props.cancelText
9609
9612
  }, React__default.createElement("div", {
9610
- className: `${classPrefix$1i}-button-item-wrapper`
9613
+ className: `${classPrefix$1k}-button-item-wrapper`
9611
9614
  }, React__default.createElement("a", {
9612
- className: classNames("adm-plain-anchor", `${classPrefix$1i}-button-item`),
9615
+ className: classNames("adm-plain-anchor", `${classPrefix$1k}-button-item`),
9613
9616
  onClick: () => {
9614
9617
  var _a;
9615
9618
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
9616
9619
  }
9617
9620
  }, React__default.createElement("div", {
9618
- className: `${classPrefix$1i}-button-item-name`
9621
+ className: `${classPrefix$1k}-button-item-name`
9619
9622
  }, props.cancelText)))), props.safeArea && React__default.createElement(SafeArea, {
9620
9623
  position: "bottom"
9621
9624
  }))));
@@ -9627,12 +9630,12 @@ const index$j = attachPropertiesToComponent(ActionSheet, {
9627
9630
  show: showActionSheet
9628
9631
  });
9629
9632
  const autoCenter = "";
9630
- const classPrefix$1h = "adm-auto-center";
9633
+ const classPrefix$1j = "adm-auto-center";
9631
9634
  const AutoCenter$1 = (props) => {
9632
9635
  return withNativeProps(props, React__default.createElement("div", {
9633
- className: classPrefix$1h
9636
+ className: classPrefix$1j
9634
9637
  }, React__default.createElement("div", {
9635
- className: `${classPrefix$1h}-content`
9638
+ className: `${classPrefix$1j}-content`
9636
9639
  }, props.children)));
9637
9640
  };
9638
9641
  const AutoCenter = AutoCenter$1;
@@ -9733,14 +9736,14 @@ const BrokenImageIcon = () => React__default.createElement("svg", {
9733
9736
  fill: "#DBDBDB",
9734
9737
  fillRule: "nonzero"
9735
9738
  }));
9736
- const classPrefix$1g = `adm-image`;
9739
+ const classPrefix$1i = `adm-image`;
9737
9740
  const defaultProps$10 = {
9738
9741
  fit: "fill",
9739
9742
  placeholder: React__default.createElement("div", {
9740
- className: `${classPrefix$1g}-tip`
9743
+ className: `${classPrefix$1i}-tip`
9741
9744
  }, React__default.createElement(ImageIcon, null)),
9742
9745
  fallback: React__default.createElement("div", {
9743
- className: `${classPrefix$1g}-tip`
9746
+ className: `${classPrefix$1i}-tip`
9744
9747
  }, React__default.createElement(BrokenImageIcon, null)),
9745
9748
  lazy: false,
9746
9749
  draggable: false
@@ -9773,7 +9776,7 @@ const Image$2 = staged_1((p) => {
9773
9776
  const img = React__default.createElement("img", {
9774
9777
  ref: imgRef,
9775
9778
  id: props.id,
9776
- className: `${classPrefix$1g}-img`,
9779
+ className: `${classPrefix$1i}-img`,
9777
9780
  src,
9778
9781
  alt: props.alt,
9779
9782
  onClick: props.onClick,
@@ -9813,7 +9816,7 @@ const Image$2 = staged_1((p) => {
9813
9816
  }
9814
9817
  return withNativeProps(props, React__default.createElement("div", {
9815
9818
  ref,
9816
- className: classPrefix$1g,
9819
+ className: classPrefix$1i,
9817
9820
  style,
9818
9821
  onClick: props.onContainerClick
9819
9822
  }, props.lazy && !initialized && React__default.createElement(LazyDetector, {
@@ -9823,7 +9826,7 @@ const Image$2 = staged_1((p) => {
9823
9826
  }), renderInner()));
9824
9827
  });
9825
9828
  const Image$1 = Image$2;
9826
- const classPrefix$1f = "adm-avatar";
9829
+ const classPrefix$1h = "adm-avatar";
9827
9830
  const defaultProps$$ = {
9828
9831
  fallback: React__default.createElement(Fallback, null),
9829
9832
  fit: "cover"
@@ -9831,7 +9834,7 @@ const defaultProps$$ = {
9831
9834
  const Avatar$1 = (p) => {
9832
9835
  const props = mergeProps(defaultProps$$, p);
9833
9836
  return withNativeProps(props, React__default.createElement(Image$1, {
9834
- className: classPrefix$1f,
9837
+ className: classPrefix$1h,
9835
9838
  src: props.src,
9836
9839
  fallback: props.fallback,
9837
9840
  placeholder: props.fallback,
@@ -9845,7 +9848,7 @@ const Avatar$1 = (p) => {
9845
9848
  };
9846
9849
  const Avatar = Avatar$1;
9847
9850
  const badge = "";
9848
- const classPrefix$1e = `adm-badge`;
9851
+ const classPrefix$1g = `adm-badge`;
9849
9852
  const dot = React__default.createElement(React__default.Fragment, null);
9850
9853
  const Badge$1 = (props) => {
9851
9854
  const {
@@ -9854,17 +9857,17 @@ const Badge$1 = (props) => {
9854
9857
  children
9855
9858
  } = props;
9856
9859
  const isDot = content === dot;
9857
- const badgeCls = classNames(classPrefix$1e, !!children && `${classPrefix$1e}-fixed`, isDot && `${classPrefix$1e}-dot`, props.bordered && `${classPrefix$1e}-bordered`);
9860
+ const badgeCls = classNames(classPrefix$1g, !!children && `${classPrefix$1g}-fixed`, isDot && `${classPrefix$1g}-dot`, props.bordered && `${classPrefix$1g}-bordered`);
9858
9861
  const element = content || content === 0 ? withNativeProps(props, React__default.createElement("div", {
9859
9862
  className: badgeCls,
9860
9863
  style: {
9861
9864
  "--color": color
9862
9865
  }
9863
9866
  }, !isDot && React__default.createElement("div", {
9864
- className: `${classPrefix$1e}-content`
9867
+ className: `${classPrefix$1g}-content`
9865
9868
  }, content))) : null;
9866
9869
  return children ? React__default.createElement("div", {
9867
- className: classNames(`${classPrefix$1e}-wrapper`, props.wrapperClassName),
9870
+ className: classNames(`${classPrefix$1g}-wrapper`, props.wrapperClassName),
9868
9871
  style: props.wrapperStyle
9869
9872
  }, children, element) : element;
9870
9873
  };
@@ -9873,7 +9876,7 @@ const Badge = attachPropertiesToComponent(Badge$1, {
9873
9876
  });
9874
9877
  const button = "";
9875
9878
  const dotLoading = "";
9876
- const classPrefix$1d = `adm-dot-loading`;
9879
+ const classPrefix$1f = `adm-dot-loading`;
9877
9880
  const colorRecord$3 = {
9878
9881
  default: "var(--adm-color-weak)",
9879
9882
  primary: "var(--adm-color-primary)",
@@ -9889,7 +9892,7 @@ const DotLoading$2 = memo((p) => {
9889
9892
  style: {
9890
9893
  color: (_a = colorRecord$3[props.color]) !== null && _a !== void 0 ? _a : props.color
9891
9894
  },
9892
- className: classNames("adm-loading", classPrefix$1d)
9895
+ className: classNames("adm-loading", classPrefix$1f)
9893
9896
  }, React__default.createElement("svg", {
9894
9897
  height: "1em",
9895
9898
  viewBox: "0 0 100 40",
@@ -9933,7 +9936,7 @@ function isPromise(obj) {
9933
9936
  function isIOS() {
9934
9937
  return canUseDom$2 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
9935
9938
  }
9936
- const classPrefix$1c = `adm-button`;
9939
+ const classPrefix$1e = `adm-button`;
9937
9940
  const defaultProps$Z = {
9938
9941
  color: "default",
9939
9942
  fill: "solid",
@@ -9976,23 +9979,23 @@ const Button$1 = forwardRef((p, ref) => {
9976
9979
  ref: nativeButtonRef,
9977
9980
  type: props.type,
9978
9981
  onClick: handleClick,
9979
- className: classNames(classPrefix$1c, props.color ? `${classPrefix$1c}-${props.color}` : null, {
9980
- [`${classPrefix$1c}-block`]: props.block,
9981
- [`${classPrefix$1c}-disabled`]: disabled,
9982
- [`${classPrefix$1c}-fill-outline`]: props.fill === "outline",
9983
- [`${classPrefix$1c}-fill-none`]: props.fill === "none",
9984
- [`${classPrefix$1c}-mini`]: props.size === "mini",
9985
- [`${classPrefix$1c}-small`]: props.size === "small",
9986
- [`${classPrefix$1c}-large`]: props.size === "large",
9987
- [`${classPrefix$1c}-loading`]: loading
9988
- }, `${classPrefix$1c}-shape-${props.shape}`),
9982
+ className: classNames(classPrefix$1e, props.color ? `${classPrefix$1e}-${props.color}` : null, {
9983
+ [`${classPrefix$1e}-block`]: props.block,
9984
+ [`${classPrefix$1e}-disabled`]: disabled,
9985
+ [`${classPrefix$1e}-fill-outline`]: props.fill === "outline",
9986
+ [`${classPrefix$1e}-fill-none`]: props.fill === "none",
9987
+ [`${classPrefix$1e}-mini`]: props.size === "mini",
9988
+ [`${classPrefix$1e}-small`]: props.size === "small",
9989
+ [`${classPrefix$1e}-large`]: props.size === "large",
9990
+ [`${classPrefix$1e}-loading`]: loading
9991
+ }, `${classPrefix$1e}-shape-${props.shape}`),
9989
9992
  disabled,
9990
9993
  onMouseDown: props.onMouseDown,
9991
9994
  onMouseUp: props.onMouseUp,
9992
9995
  onTouchStart: props.onTouchStart,
9993
9996
  onTouchEnd: props.onTouchEnd
9994
9997
  }, loading ? React__default.createElement("div", {
9995
- className: `${classPrefix$1c}-loading-wrapper`
9998
+ className: `${classPrefix$1e}-loading-wrapper`
9996
9999
  }, props.loadingIcon, props.loadingText) : React__default.createElement("span", null, props.children)));
9997
10000
  });
9998
10001
  const Button = Button$1;
@@ -10101,13 +10104,15 @@ function usePropsValue(options) {
10101
10104
  });
10102
10105
  return [stateRef.current, setState];
10103
10106
  }
10107
+ function replaceMessage$1(template, kv) {
10108
+ return template.replace(/\$\{\w+\}/g, (str) => {
10109
+ const key = str.slice(2, -1);
10110
+ return kv[key];
10111
+ });
10112
+ }
10104
10113
  function convertValueToRange(selectionMode, value) {
10105
- if (selectionMode === void 0) {
10106
- return null;
10107
- }
10108
- if (value === null) {
10114
+ if (selectionMode === void 0 || value === null)
10109
10115
  return null;
10110
- }
10111
10116
  if (Array.isArray(value)) {
10112
10117
  return value;
10113
10118
  }
@@ -10117,7 +10122,7 @@ function convertPageToDayjs(page) {
10117
10122
  return dayjs().year(page.year).month(page.month - 1).date(1);
10118
10123
  }
10119
10124
  dayjs.extend(isoWeek);
10120
- const classPrefix$1b = "adm-calendar";
10125
+ const classPrefix$1d = "adm-calendar";
10121
10126
  const defaultProps$Y = {
10122
10127
  weekStartsOn: "Sunday",
10123
10128
  defaultValue: null,
@@ -10191,26 +10196,29 @@ const Calendar$1 = forwardRef((p, ref) => {
10191
10196
  setCurrent(nxtCurrent);
10192
10197
  };
10193
10198
  const header = React__default.createElement("div", {
10194
- className: `${classPrefix$1b}-header`
10199
+ className: `${classPrefix$1d}-header`
10195
10200
  }, React__default.createElement("a", {
10196
- className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-year`,
10201
+ className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-year`,
10197
10202
  onClick: () => {
10198
10203
  handlePageChange("subtract", 1, "year");
10199
10204
  }
10200
10205
  }, props.prevYearButton), React__default.createElement("a", {
10201
- className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-month`,
10206
+ className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-month`,
10202
10207
  onClick: () => {
10203
10208
  handlePageChange("subtract", 1, "month");
10204
10209
  }
10205
10210
  }, props.prevMonthButton), React__default.createElement("div", {
10206
- className: `${classPrefix$1b}-title`
10207
- }, locale.Calendar.renderYearAndMonth(current.year(), current.month() + 1)), React__default.createElement("a", {
10208
- className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-month`),
10211
+ className: `${classPrefix$1d}-title`
10212
+ }, replaceMessage$1(locale.Calendar.yearAndMonth, {
10213
+ year: current.year().toString(),
10214
+ month: (current.month() + 1).toString()
10215
+ })), React__default.createElement("a", {
10216
+ className: classNames(`${classPrefix$1d}-arrow-button`, `${classPrefix$1d}-arrow-button-right`, `${classPrefix$1d}-arrow-button-right-month`),
10209
10217
  onClick: () => {
10210
10218
  handlePageChange("add", 1, "month");
10211
10219
  }
10212
10220
  }, props.nextMonthButton), React__default.createElement("a", {
10213
- className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-year`),
10221
+ className: classNames(`${classPrefix$1d}-arrow-button`, `${classPrefix$1d}-arrow-button-right`, `${classPrefix$1d}-arrow-button-right-year`),
10214
10222
  onClick: () => {
10215
10223
  handlePageChange("add", 1, "year");
10216
10224
  }
@@ -10245,13 +10253,13 @@ const Calendar$1 = forwardRef((p, ref) => {
10245
10253
  const disabled = props.shouldDisableDate ? props.shouldDisableDate(d.toDate()) : maxDay && d.isAfter(maxDay, "day") || minDay && d.isBefore(minDay, "day");
10246
10254
  cells.push(React__default.createElement("div", {
10247
10255
  key: d.valueOf(),
10248
- className: classNames(`${classPrefix$1b}-cell`, (disabled || !inThisMonth) && `${classPrefix$1b}-cell-disabled`, inThisMonth && {
10249
- [`${classPrefix$1b}-cell-today`]: d.isSame(today, "day"),
10250
- [`${classPrefix$1b}-cell-selected`]: isSelect,
10251
- [`${classPrefix$1b}-cell-selected-begin`]: isBegin,
10252
- [`${classPrefix$1b}-cell-selected-end`]: isEnd,
10253
- [`${classPrefix$1b}-cell-selected-row-begin`]: isSelectRowBegin,
10254
- [`${classPrefix$1b}-cell-selected-row-end`]: isSelectRowEnd
10256
+ className: classNames(`${classPrefix$1d}-cell`, (disabled || !inThisMonth) && `${classPrefix$1d}-cell-disabled`, inThisMonth && {
10257
+ [`${classPrefix$1d}-cell-today`]: d.isSame(today, "day"),
10258
+ [`${classPrefix$1d}-cell-selected`]: isSelect,
10259
+ [`${classPrefix$1d}-cell-selected-begin`]: isBegin,
10260
+ [`${classPrefix$1d}-cell-selected-end`]: isEnd,
10261
+ [`${classPrefix$1d}-cell-selected-row-begin`]: isSelectRowBegin,
10262
+ [`${classPrefix$1d}-cell-selected-row-end`]: isSelectRowEnd
10255
10263
  }),
10256
10264
  onClick: () => {
10257
10265
  if (!props.selectionMode)
@@ -10298,25 +10306,25 @@ const Calendar$1 = forwardRef((p, ref) => {
10298
10306
  }
10299
10307
  }
10300
10308
  }, React__default.createElement("div", {
10301
- className: `${classPrefix$1b}-cell-top`
10309
+ className: `${classPrefix$1d}-cell-top`
10302
10310
  }, props.renderDate ? props.renderDate(d.toDate()) : d.date()), React__default.createElement("div", {
10303
- className: `${classPrefix$1b}-cell-bottom`
10311
+ className: `${classPrefix$1d}-cell-bottom`
10304
10312
  }, (_a = props.renderLabel) === null || _a === void 0 ? void 0 : _a.call(props, d.toDate()))));
10305
10313
  iterator = iterator.add(1, "day");
10306
10314
  }
10307
10315
  return cells;
10308
10316
  }
10309
10317
  const body = React__default.createElement("div", {
10310
- className: `${classPrefix$1b}-cells`
10318
+ className: `${classPrefix$1d}-cells`
10311
10319
  }, renderCells());
10312
10320
  const mark = React__default.createElement("div", {
10313
- className: `${classPrefix$1b}-mark`
10321
+ className: `${classPrefix$1d}-mark`
10314
10322
  }, markItems.map((item, index2) => React__default.createElement("div", {
10315
10323
  key: index2,
10316
- className: `${classPrefix$1b}-mark-cell`
10324
+ className: `${classPrefix$1d}-mark-cell`
10317
10325
  }, item)));
10318
10326
  return withNativeProps(props, React__default.createElement("div", {
10319
- className: classPrefix$1b
10327
+ className: classPrefix$1d
10320
10328
  }, header, mark, body));
10321
10329
  });
10322
10330
  const Calendar = Calendar$1;
@@ -10420,7 +10428,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
10420
10428
  };
10421
10429
  };
10422
10430
  const scrollMask = "";
10423
- const classPrefix$1a = `adm-scroll-mask`;
10431
+ const classPrefix$1c = `adm-scroll-mask`;
10424
10432
  const ScrollMask$1 = (props) => {
10425
10433
  const maskRef = useRef(null);
10426
10434
  const [{
@@ -10467,12 +10475,12 @@ const ScrollMask$1 = (props) => {
10467
10475
  }, []);
10468
10476
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(animated.div, {
10469
10477
  ref: maskRef,
10470
- className: classNames(classPrefix$1a, `${classPrefix$1a}-left`),
10478
+ className: classNames(classPrefix$1c, `${classPrefix$1c}-left`),
10471
10479
  style: {
10472
10480
  opacity: leftMaskOpacity
10473
10481
  }
10474
10482
  }), React__default.createElement(animated.div, {
10475
- className: classNames(classPrefix$1a, `${classPrefix$1a}-right`),
10483
+ className: classNames(classPrefix$1c, `${classPrefix$1c}-right`),
10476
10484
  style: {
10477
10485
  opacity: rightMaskOpacity
10478
10486
  }
@@ -10679,10 +10687,8 @@ function traverseReactNode(children, fn) {
10679
10687
  }
10680
10688
  handle(children);
10681
10689
  }
10682
- const classPrefix$19 = `adm-capsule-tabs`;
10683
- const CapsuleTab = () => {
10684
- return null;
10685
- };
10690
+ const classPrefix$1b = `adm-capsule-tabs`;
10691
+ const CapsuleTab = () => null;
10686
10692
  const CapsuleTabs = (props) => {
10687
10693
  var _a;
10688
10694
  const tabListContainerRef = useRef(null);
@@ -10691,7 +10697,7 @@ const CapsuleTabs = (props) => {
10691
10697
  let firstActiveKey = null;
10692
10698
  const panes = [];
10693
10699
  traverseReactNode(props.children, (child, index2) => {
10694
- if (!React__default.isValidElement(child))
10700
+ if (!isValidElement(child))
10695
10701
  return;
10696
10702
  const key = child.key;
10697
10703
  if (typeof key !== "string")
@@ -10720,19 +10726,19 @@ const CapsuleTabs = (props) => {
10720
10726
  animate(true);
10721
10727
  }, rootRef);
10722
10728
  return withNativeProps(props, React__default.createElement("div", {
10723
- className: classPrefix$19,
10729
+ className: classPrefix$1b,
10724
10730
  ref: rootRef
10725
10731
  }, React__default.createElement("div", {
10726
- className: `${classPrefix$19}-header`
10732
+ className: `${classPrefix$1b}-header`
10727
10733
  }, React__default.createElement(ScrollMask, {
10728
10734
  scrollTrackRef: tabListContainerRef
10729
10735
  }), React__default.createElement(animated.div, {
10730
- className: `${classPrefix$19}-tab-list`,
10736
+ className: `${classPrefix$1b}-tab-list`,
10731
10737
  ref: tabListContainerRef,
10732
10738
  scrollLeft
10733
10739
  }, panes.map((pane) => withNativeProps(pane.props, React__default.createElement("div", {
10734
10740
  key: pane.key,
10735
- className: `${classPrefix$19}-tab-wrapper`
10741
+ className: `${classPrefix$1b}-tab-wrapper`
10736
10742
  }, React__default.createElement("div", {
10737
10743
  onClick: () => {
10738
10744
  const {
@@ -10745,9 +10751,9 @@ const CapsuleTabs = (props) => {
10745
10751
  }
10746
10752
  setActiveKey(key.toString());
10747
10753
  },
10748
- className: classNames(`${classPrefix$19}-tab`, {
10749
- [`${classPrefix$19}-tab-active`]: pane.key === activeKey,
10750
- [`${classPrefix$19}-tab-disabled`]: pane.props.disabled
10754
+ className: classNames(`${classPrefix$1b}-tab`, {
10755
+ [`${classPrefix$1b}-tab-active`]: pane.key === activeKey,
10756
+ [`${classPrefix$1b}-tab-disabled`]: pane.props.disabled
10751
10757
  })
10752
10758
  }, pane.props.title)))))), panes.map((pane) => {
10753
10759
  if (pane.props.children === void 0) {
@@ -10760,7 +10766,7 @@ const CapsuleTabs = (props) => {
10760
10766
  forceRender: pane.props.forceRender,
10761
10767
  destroyOnClose: pane.props.destroyOnClose
10762
10768
  }, React__default.createElement("div", {
10763
- className: `${classPrefix$19}-content`,
10769
+ className: `${classPrefix$1b}-content`,
10764
10770
  style: {
10765
10771
  display: active ? "block" : "none"
10766
10772
  }
@@ -10771,18 +10777,18 @@ const index$i = attachPropertiesToComponent(CapsuleTabs, {
10771
10777
  Tab: CapsuleTab
10772
10778
  });
10773
10779
  const card = "";
10774
- const classPrefix$18 = `adm-card`;
10780
+ const classPrefix$1a = `adm-card`;
10775
10781
  const Card$1 = (props) => {
10776
10782
  const renderHeader = () => {
10777
10783
  if (!(props.title || props.extra)) {
10778
10784
  return null;
10779
10785
  }
10780
10786
  return React__default.createElement("div", {
10781
- className: classNames(`${classPrefix$18}-header`, props.headerClassName),
10787
+ className: classNames(`${classPrefix$1a}-header`, props.headerClassName),
10782
10788
  style: props.headerStyle,
10783
10789
  onClick: props.onHeaderClick
10784
10790
  }, React__default.createElement("div", {
10785
- className: `${classPrefix$18}-header-title`
10791
+ className: `${classPrefix$1a}-header-title`
10786
10792
  }, props.title), props.extra);
10787
10793
  };
10788
10794
  const renderBody = () => {
@@ -10790,13 +10796,13 @@ const Card$1 = (props) => {
10790
10796
  return null;
10791
10797
  }
10792
10798
  return React__default.createElement("div", {
10793
- className: classNames(`${classPrefix$18}-body`, props.bodyClassName),
10799
+ className: classNames(`${classPrefix$1a}-body`, props.bodyClassName),
10794
10800
  style: props.bodyStyle,
10795
10801
  onClick: props.onBodyClick
10796
10802
  }, props.children);
10797
10803
  };
10798
10804
  return withNativeProps(props, React__default.createElement("div", {
10799
- className: classPrefix$18,
10805
+ className: classPrefix$1a,
10800
10806
  onClick: props.onClick
10801
10807
  }, renderHeader(), renderBody()));
10802
10808
  };
@@ -10846,7 +10852,7 @@ function measureCSSLength(raw) {
10846
10852
  return 0;
10847
10853
  }
10848
10854
  }
10849
- const classPrefix$17 = `adm-picker-view`;
10855
+ const classPrefix$19 = `adm-picker-view`;
10850
10856
  const Wheel = memo((props) => {
10851
10857
  const {
10852
10858
  value,
@@ -10913,17 +10919,66 @@ const Wheel = memo((props) => {
10913
10919
  return;
10914
10920
  onSelect(item.value);
10915
10921
  }
10922
+ const handleGestureState = (state) => {
10923
+ const {
10924
+ direction: [, direction],
10925
+ distance: [, distance],
10926
+ velocity: [, velocity],
10927
+ offset: [, offset2],
10928
+ last
10929
+ } = state;
10930
+ return {
10931
+ direction,
10932
+ distance,
10933
+ velocity,
10934
+ offset: offset2,
10935
+ last
10936
+ };
10937
+ };
10916
10938
  const handleDrag = (state) => {
10917
10939
  draggingRef.current = true;
10918
10940
  const min2 = -((column.length - 1) * itemHeight.current);
10919
10941
  const max2 = 0;
10920
- if (state.last) {
10942
+ const {
10943
+ direction,
10944
+ last,
10945
+ velocity,
10946
+ offset: offset2
10947
+ } = handleGestureState(state);
10948
+ if (last) {
10949
+ draggingRef.current = false;
10950
+ const position = offset2 + velocity * direction * 50;
10951
+ const boundNum = bound(position, min2, max2);
10952
+ const targetIndex = -Math.round(boundNum / itemHeight.current);
10953
+ scrollSelect(targetIndex);
10954
+ } else {
10955
+ const position = offset2;
10956
+ api.start({
10957
+ y: rubberbandIfOutOfBounds(position, min2, max2, itemHeight.current * 50, 0.2)
10958
+ });
10959
+ }
10960
+ };
10961
+ const handleWheel = (state) => {
10962
+ draggingRef.current = true;
10963
+ const min2 = -((column.length - 1) * itemHeight.current);
10964
+ const max2 = 0;
10965
+ const {
10966
+ direction,
10967
+ last,
10968
+ velocity,
10969
+ distance
10970
+ } = handleGestureState(state);
10971
+ const whellDir = -direction;
10972
+ const scrollY = y.get();
10973
+ if (last) {
10921
10974
  draggingRef.current = false;
10922
- const position = state.offset[1] + state.velocity[1] * state.direction[1] * 50;
10923
- const targetIndex = min2 < max2 ? -Math.round(bound(position, min2, max2) / itemHeight.current) : 0;
10975
+ const speed = velocity * whellDir * 50;
10976
+ const position = scrollY + distance * whellDir + speed;
10977
+ const boundNum = bound(position, min2, max2);
10978
+ const targetIndex = -Math.round(boundNum / itemHeight.current);
10924
10979
  scrollSelect(targetIndex);
10925
10980
  } else {
10926
- const position = state.offset[1];
10981
+ const position = scrollY + distance * whellDir;
10927
10982
  api.start({
10928
10983
  y: rubberbandIfOutOfBounds(position, min2, max2, itemHeight.current * 50, 0.2)
10929
10984
  });
@@ -10943,15 +10998,15 @@ const Wheel = memo((props) => {
10943
10998
  });
10944
10999
  useWheel((state) => {
10945
11000
  state.event.stopPropagation();
10946
- handleDrag(state);
11001
+ handleWheel(state);
10947
11002
  }, {
11003
+ target: props.mouseWheel ? rootRef : void 0,
10948
11004
  axis: "y",
10949
11005
  from: () => [0, y.get()],
10950
11006
  preventDefault: true,
10951
- target: props.mouseWheel ? rootRef : void 0,
10952
11007
  eventOptions: supportsPassive ? {
10953
11008
  passive: false
10954
- } : false
11009
+ } : void 0
10955
11010
  });
10956
11011
  let selectedIndex = null;
10957
11012
  function renderAccessible() {
@@ -10964,13 +11019,13 @@ const Wheel = memo((props) => {
10964
11019
  const previous = column[previousIndex];
10965
11020
  const next = column[nextIndex];
10966
11021
  return React__default.createElement("div", {
10967
- className: "adm-picker-view-column-accessible"
11022
+ className: `${classPrefix$19}-column-accessible`
10968
11023
  }, React__default.createElement("div", {
10969
- className: "adm-picker-view-column-accessible-current",
11024
+ className: `${classPrefix$19}-column-accessible-current`,
10970
11025
  role: "button",
10971
11026
  "aria-label": current ? `\u5F53\u524D\u9009\u62E9\u7684\u662F\uFF1A${current.label}` : "\u5F53\u524D\u672A\u9009\u62E9"
10972
11027
  }, "-"), React__default.createElement("div", {
10973
- className: "adm-picker-view-column-accessible-button",
11028
+ className: `${classPrefix$19}-column-accessible-button`,
10974
11029
  onClick: () => {
10975
11030
  if (!previous)
10976
11031
  return;
@@ -10979,7 +11034,7 @@ const Wheel = memo((props) => {
10979
11034
  role: previous ? "button" : "text",
10980
11035
  "aria-label": !previous ? "\u6CA1\u6709\u4E0A\u4E00\u9879" : `\u9009\u62E9\u4E0A\u4E00\u9879\uFF1A${previous.label}`
10981
11036
  }, "-"), React__default.createElement("div", {
10982
- className: "adm-picker-view-column-accessible-button",
11037
+ className: `${classPrefix$19}-column-accessible-button`,
10983
11038
  onClick: () => {
10984
11039
  if (!next)
10985
11040
  return;
@@ -10990,16 +11045,16 @@ const Wheel = memo((props) => {
10990
11045
  }, "-"));
10991
11046
  }
10992
11047
  return React__default.createElement("div", {
10993
- className: `${classPrefix$17}-column`
11048
+ className: `${classPrefix$19}-column`
10994
11049
  }, React__default.createElement("div", {
10995
- className: `${classPrefix$17}-item-height-measure`,
11050
+ className: `${classPrefix$19}-item-height-measure`,
10996
11051
  ref: itemHeightMeasureRef
10997
11052
  }), React__default.createElement(animated.div, {
10998
11053
  ref: rootRef,
10999
11054
  style: {
11000
11055
  translateY: y
11001
11056
  },
11002
- className: `${classPrefix$17}-column-wheel`,
11057
+ className: `${classPrefix$19}-column-wheel`,
11003
11058
  "aria-hidden": true
11004
11059
  }, column.map((item, index2) => {
11005
11060
  var _a;
@@ -11013,12 +11068,12 @@ const Wheel = memo((props) => {
11013
11068
  return React__default.createElement("div", {
11014
11069
  key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
11015
11070
  "data-selected": item.value === value,
11016
- className: `${classPrefix$17}-column-item`,
11071
+ className: `${classPrefix$19}-column-item`,
11017
11072
  onClick: handleClick,
11018
11073
  "aria-hidden": !selected,
11019
11074
  "aria-label": selected ? "active" : ""
11020
11075
  }, React__default.createElement("div", {
11021
- className: `${classPrefix$17}-column-item-label`
11076
+ className: `${classPrefix$19}-column-item-label`
11022
11077
  }, renderLabel(item)));
11023
11078
  })), renderAccessible());
11024
11079
  }, (prev, next) => {
@@ -11032,9 +11087,8 @@ const Wheel = memo((props) => {
11032
11087
  return false;
11033
11088
  if (prev.mouseWheel !== next.mouseWheel)
11034
11089
  return false;
11035
- if (!isEqual_1(prev.column, next.column)) {
11090
+ if (!isEqual_1(prev.column, next.column))
11036
11091
  return false;
11037
- }
11038
11092
  return true;
11039
11093
  });
11040
11094
  Wheel.displayName = "Wheel";
@@ -11242,7 +11296,7 @@ function subscribe(onStoreChange) {
11242
11296
  function useMotionReduced() {
11243
11297
  return shim.exports.useSyncExternalStore(subscribe, isMotionReduced, isMotionReduced);
11244
11298
  }
11245
- const classPrefix$16 = "adm-spin-loading";
11299
+ const classPrefix$18 = "adm-spin-loading";
11246
11300
  const colorRecord$2 = {
11247
11301
  default: "var(--adm-color-weak)",
11248
11302
  primary: "var(--adm-color-primary)",
@@ -11274,16 +11328,16 @@ const SpinLoading$1 = memo((p) => {
11274
11328
  }
11275
11329
  });
11276
11330
  return withNativeProps(props, React__default.createElement(animated.div, {
11277
- className: classPrefix$16,
11331
+ className: classPrefix$18,
11278
11332
  style: {
11279
11333
  "--color": (_a = colorRecord$2[props.color]) !== null && _a !== void 0 ? _a : props.color,
11280
11334
  "--percent": percent
11281
11335
  }
11282
11336
  }, React__default.createElement("svg", {
11283
- className: `${classPrefix$16}-svg`,
11337
+ className: `${classPrefix$18}-svg`,
11284
11338
  viewBox: "0 0 32 32"
11285
11339
  }, React__default.createElement(animated.circle, {
11286
- className: `${classPrefix$16}-fill`,
11340
+ className: `${classPrefix$18}-fill`,
11287
11341
  fill: "transparent",
11288
11342
  strokeWidth: "2",
11289
11343
  strokeDasharray: circumference,
@@ -11295,13 +11349,13 @@ const SpinLoading$1 = memo((p) => {
11295
11349
  }))));
11296
11350
  });
11297
11351
  const SpinLoading = SpinLoading$1;
11298
- const classPrefix$15 = `adm-picker-view`;
11352
+ const classPrefix$17 = `adm-picker-view`;
11299
11353
  const defaultProps$W = {
11300
11354
  defaultValue: [],
11301
11355
  renderLabel: defaultRenderLabel,
11302
11356
  mouseWheel: false,
11303
11357
  loadingContent: React__default.createElement("div", {
11304
- className: `${classPrefix$15}-loading-content`
11358
+ className: `${classPrefix$17}-loading-content`
11305
11359
  }, React__default.createElement(SpinLoading, null))
11306
11360
  };
11307
11361
  const PickerView$1 = memo((p) => {
@@ -11346,7 +11400,7 @@ const PickerView$1 = memo((p) => {
11346
11400
  });
11347
11401
  }, []);
11348
11402
  return withNativeProps(props, React__default.createElement("div", {
11349
- className: `${classPrefix$15}`
11403
+ className: `${classPrefix$17}`
11350
11404
  }, props.loading ? props.loadingContent : React__default.createElement(React__default.Fragment, null, columns.map((column, index2) => React__default.createElement(Wheel, {
11351
11405
  key: index2,
11352
11406
  index: index2,
@@ -11356,19 +11410,19 @@ const PickerView$1 = memo((p) => {
11356
11410
  renderLabel: props.renderLabel,
11357
11411
  mouseWheel: props.mouseWheel
11358
11412
  })), React__default.createElement("div", {
11359
- className: `${classPrefix$15}-mask`
11413
+ className: `${classPrefix$17}-mask`
11360
11414
  }, React__default.createElement("div", {
11361
- className: `${classPrefix$15}-mask-top`
11415
+ className: `${classPrefix$17}-mask-top`
11362
11416
  }), React__default.createElement("div", {
11363
- className: `${classPrefix$15}-mask-middle`
11417
+ className: `${classPrefix$17}-mask-middle`
11364
11418
  }), React__default.createElement("div", {
11365
- className: `${classPrefix$15}-mask-bottom`
11419
+ className: `${classPrefix$17}-mask-bottom`
11366
11420
  })))));
11367
11421
  });
11368
11422
  PickerView$1.displayName = "PickerView";
11369
11423
  const pickerView = "";
11370
11424
  const PickerView = PickerView$1;
11371
- const classPrefix$14 = `adm-picker`;
11425
+ const classPrefix$16 = `adm-picker`;
11372
11426
  const defaultProps$V = {
11373
11427
  defaultValue: [],
11374
11428
  closeOnMaskClick: true,
@@ -11434,22 +11488,22 @@ const Picker$1 = memo(forwardRef((p, ref) => {
11434
11488
  }
11435
11489
  });
11436
11490
  const pickerElement = withNativeProps(props, React__default.createElement("div", {
11437
- className: classPrefix$14
11491
+ className: classPrefix$16
11438
11492
  }, React__default.createElement("div", {
11439
- className: `${classPrefix$14}-header`
11493
+ className: `${classPrefix$16}-header`
11440
11494
  }, React__default.createElement("a", {
11441
11495
  role: "button",
11442
- className: `${classPrefix$14}-header-button`,
11496
+ className: `${classPrefix$16}-header-button`,
11443
11497
  onClick: () => {
11444
11498
  var _a2;
11445
11499
  (_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
11446
11500
  setVisible(false);
11447
11501
  }
11448
11502
  }, props.cancelText), React__default.createElement("div", {
11449
- className: `${classPrefix$14}-header-title`
11503
+ className: `${classPrefix$16}-header-title`
11450
11504
  }, props.title), React__default.createElement("a", {
11451
11505
  role: "button",
11452
- className: classNames(`${classPrefix$14}-header-button`, props.loading && `${classPrefix$14}-header-button-disabled`),
11506
+ className: classNames(`${classPrefix$16}-header-button`, props.loading && `${classPrefix$16}-header-button-disabled`),
11453
11507
  onClick: () => {
11454
11508
  if (props.loading)
11455
11509
  return;
@@ -11458,7 +11512,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
11458
11512
  },
11459
11513
  "aria-disabled": props.loading
11460
11514
  }, props.confirmText)), React__default.createElement("div", {
11461
- className: `${classPrefix$14}-body`
11515
+ className: `${classPrefix$16}-body`
11462
11516
  }, React__default.createElement(PickerView, {
11463
11517
  loading: props.loading,
11464
11518
  loadingContent: props.loadingContent,
@@ -11470,7 +11524,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
11470
11524
  }))));
11471
11525
  const popupElement = React__default.createElement(Popup, {
11472
11526
  style: props.popupStyle,
11473
- className: classNames(`${classPrefix$14}-popup`, props.popupClassName),
11527
+ className: classNames(`${classPrefix$16}-popup`, props.popupClassName),
11474
11528
  visible,
11475
11529
  position: "bottom",
11476
11530
  onMaskClick: () => {
@@ -11620,7 +11674,7 @@ const CascadePickerView$1 = (props) => {
11620
11674
  const CascadePickerView = CascadePickerView$1;
11621
11675
  const cascaderView = "";
11622
11676
  const tabs = "";
11623
- const classPrefix$13 = `adm-tabs`;
11677
+ const classPrefix$15 = `adm-tabs`;
11624
11678
  const Tab = () => {
11625
11679
  return null;
11626
11680
  };
@@ -11637,7 +11691,7 @@ const Tabs$1 = (p) => {
11637
11691
  let firstActiveKey = null;
11638
11692
  const panes = [];
11639
11693
  traverseReactNode(props.children, (child, index2) => {
11640
- if (!React__default.isValidElement(child))
11694
+ if (!isValidElement(child))
11641
11695
  return;
11642
11696
  const key = child.key;
11643
11697
  if (typeof key !== "string")
@@ -11781,36 +11835,36 @@ const Tabs$1 = (p) => {
11781
11835
  updateMask(true);
11782
11836
  }, []);
11783
11837
  return withNativeProps(props, React__default.createElement("div", {
11784
- className: classPrefix$13
11838
+ className: classPrefix$15
11785
11839
  }, React__default.createElement("div", {
11786
- className: `${classPrefix$13}-header`
11840
+ className: `${classPrefix$15}-header`
11787
11841
  }, React__default.createElement(animated.div, {
11788
- className: classNames(`${classPrefix$13}-header-mask`, `${classPrefix$13}-header-mask-left`),
11842
+ className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-left`),
11789
11843
  style: {
11790
11844
  opacity: leftMaskOpacity
11791
11845
  }
11792
11846
  }), React__default.createElement(animated.div, {
11793
- className: classNames(`${classPrefix$13}-header-mask`, `${classPrefix$13}-header-mask-right`),
11847
+ className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-right`),
11794
11848
  style: {
11795
11849
  opacity: rightMaskOpacity
11796
11850
  }
11797
11851
  }), React__default.createElement(animated.div, {
11798
- className: `${classPrefix$13}-tab-list`,
11852
+ className: `${classPrefix$15}-tab-list`,
11799
11853
  ref: tabListContainerRef,
11800
11854
  scrollLeft,
11801
11855
  onScroll: updateMask,
11802
11856
  role: "tablist"
11803
11857
  }, React__default.createElement(animated.div, {
11804
11858
  ref: activeLineRef,
11805
- className: `${classPrefix$13}-tab-line`,
11859
+ className: `${classPrefix$15}-tab-line`,
11806
11860
  style: {
11807
11861
  width: props.activeLineMode === "fixed" ? "var(--fixed-active-line-width, 30px)" : width,
11808
11862
  x
11809
11863
  }
11810
11864
  }), panes.map((pane) => withNativeProps(pane.props, React__default.createElement("div", {
11811
11865
  key: pane.key,
11812
- className: classNames(`${classPrefix$13}-tab-wrapper`, {
11813
- [`${classPrefix$13}-tab-wrapper-stretch`]: props.stretch
11866
+ className: classNames(`${classPrefix$15}-tab-wrapper`, {
11867
+ [`${classPrefix$15}-tab-wrapper-stretch`]: props.stretch
11814
11868
  })
11815
11869
  }, React__default.createElement("div", {
11816
11870
  onClick: () => {
@@ -11824,9 +11878,9 @@ const Tabs$1 = (p) => {
11824
11878
  }
11825
11879
  setActiveKey(key.toString());
11826
11880
  },
11827
- className: classNames(`${classPrefix$13}-tab`, {
11828
- [`${classPrefix$13}-tab-active`]: pane.key === activeKey,
11829
- [`${classPrefix$13}-tab-disabled`]: pane.props.disabled
11881
+ className: classNames(`${classPrefix$15}-tab`, {
11882
+ [`${classPrefix$15}-tab-active`]: pane.key === activeKey,
11883
+ [`${classPrefix$15}-tab-disabled`]: pane.props.disabled
11830
11884
  }),
11831
11885
  role: "tab",
11832
11886
  "aria-selected": pane.key === activeKey
@@ -11841,7 +11895,7 @@ const Tabs$1 = (p) => {
11841
11895
  forceRender: pane.props.forceRender,
11842
11896
  destroyOnClose: pane.props.destroyOnClose
11843
11897
  }, React__default.createElement("div", {
11844
- className: `${classPrefix$13}-content`,
11898
+ className: `${classPrefix$15}-content`,
11845
11899
  style: {
11846
11900
  display: active ? "block" : "none"
11847
11901
  }
@@ -11853,7 +11907,7 @@ const Tabs = attachPropertiesToComponent(Tabs$1, {
11853
11907
  });
11854
11908
  const checkList = "";
11855
11909
  const list = "";
11856
- const classPrefix$12 = `adm-list`;
11910
+ const classPrefix$14 = `adm-list`;
11857
11911
  const defaultProps$T = {
11858
11912
  mode: "default"
11859
11913
  };
@@ -11866,41 +11920,41 @@ const List$2 = forwardRef((p, ref) => {
11866
11920
  }
11867
11921
  }));
11868
11922
  return withNativeProps(props, React__default.createElement("div", {
11869
- className: classNames(classPrefix$12, `${classPrefix$12}-${props.mode}`),
11923
+ className: classNames(classPrefix$14, `${classPrefix$14}-${props.mode}`),
11870
11924
  ref: nativeElementRef
11871
11925
  }, props.header && React__default.createElement("div", {
11872
- className: `${classPrefix$12}-header`
11926
+ className: `${classPrefix$14}-header`
11873
11927
  }, props.header), React__default.createElement("div", {
11874
- className: `${classPrefix$12}-body`
11928
+ className: `${classPrefix$14}-body`
11875
11929
  }, React__default.createElement("div", {
11876
- className: `${classPrefix$12}-body-inner`
11930
+ className: `${classPrefix$14}-body-inner`
11877
11931
  }, props.children))));
11878
11932
  });
11879
11933
  function isNodeWithContent(node) {
11880
11934
  return node !== void 0 && node !== null && node !== false;
11881
11935
  }
11882
- const classPrefix$11 = `adm-list-item`;
11936
+ const classPrefix$13 = `adm-list-item`;
11883
11937
  const ListItem = (props) => {
11884
11938
  var _a;
11885
11939
  const clickable = (_a = props.clickable) !== null && _a !== void 0 ? _a : !!props.onClick;
11886
11940
  const arrow2 = props.arrow === void 0 ? clickable : props.arrow;
11887
11941
  const content = React__default.createElement("div", {
11888
- className: `${classPrefix$11}-content`
11942
+ className: `${classPrefix$13}-content`
11889
11943
  }, isNodeWithContent(props.prefix) && React__default.createElement("div", {
11890
- className: `${classPrefix$11}-content-prefix`
11944
+ className: `${classPrefix$13}-content-prefix`
11891
11945
  }, props.prefix), React__default.createElement("div", {
11892
- className: `${classPrefix$11}-content-main`
11946
+ className: `${classPrefix$13}-content-main`
11893
11947
  }, isNodeWithContent(props.title) && React__default.createElement("div", {
11894
- className: `${classPrefix$11}-title`
11948
+ className: `${classPrefix$13}-title`
11895
11949
  }, props.title), props.children, isNodeWithContent(props.description) && React__default.createElement("div", {
11896
- className: `${classPrefix$11}-description`
11950
+ className: `${classPrefix$13}-description`
11897
11951
  }, props.description)), isNodeWithContent(props.extra) && React__default.createElement("div", {
11898
- className: `${classPrefix$11}-content-extra`
11952
+ className: `${classPrefix$13}-content-extra`
11899
11953
  }, props.extra), isNodeWithContent(arrow2) && React__default.createElement("div", {
11900
- className: `${classPrefix$11}-content-arrow`
11954
+ className: `${classPrefix$13}-content-arrow`
11901
11955
  }, arrow2 === true ? React__default.createElement(RightOutline, null) : arrow2));
11902
11956
  return withNativeProps(props, React__default.createElement(clickable ? "a" : "div", {
11903
- className: classNames(`${classPrefix$11}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$11}-disabled`),
11957
+ className: classNames(`${classPrefix$13}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$13}-disabled`),
11904
11958
  onClick: props.disabled ? void 0 : props.onClick
11905
11959
  }, content));
11906
11960
  };
@@ -11908,7 +11962,7 @@ const List$1 = attachPropertiesToComponent(List$2, {
11908
11962
  Item: ListItem
11909
11963
  });
11910
11964
  const CheckListContext = createContext(null);
11911
- const classPrefix$10 = "adm-check-list";
11965
+ const classPrefix$12 = "adm-check-list";
11912
11966
  const defaultProps$S = {
11913
11967
  multiple: false,
11914
11968
  defaultValue: [],
@@ -11945,10 +11999,10 @@ const CheckList$1 = (p) => {
11945
11999
  }
11946
12000
  }, withNativeProps(props, React__default.createElement(List$1, {
11947
12001
  mode: props.mode,
11948
- className: classPrefix$10
12002
+ className: classPrefix$12
11949
12003
  }, props.children)));
11950
12004
  };
11951
- const classPrefix$$ = `adm-check-list-item`;
12005
+ const classPrefix$11 = `adm-check-list-item`;
11952
12006
  const CheckListItem = (props) => {
11953
12007
  const context = useContext(CheckListContext);
11954
12008
  if (context === null) {
@@ -11960,11 +12014,11 @@ const CheckListItem = (props) => {
11960
12014
  const defaultExtra = active ? context.activeIcon : null;
11961
12015
  const renderExtra = context.extra ? context.extra(active) : defaultExtra;
11962
12016
  const extra = React__default.createElement("div", {
11963
- className: `${classPrefix$$}-extra`
12017
+ className: `${classPrefix$11}-extra`
11964
12018
  }, renderExtra);
11965
12019
  return withNativeProps(props, React__default.createElement(List$1.Item, {
11966
12020
  title: props.title,
11967
- className: classNames(classPrefix$$, readOnly && `${classPrefix$$}-readonly`, active && `${classPrefix$$}-active`),
12021
+ className: classNames(classPrefix$11, readOnly && `${classPrefix$11}-readonly`, active && `${classPrefix$11}-active`),
11968
12022
  description: props.description,
11969
12023
  prefix: props.prefix,
11970
12024
  onClick: (e2) => {
@@ -12055,18 +12109,18 @@ function generateIntArray(from, to2) {
12055
12109
  }
12056
12110
  return array4;
12057
12111
  }
12058
- const classPrefix$_ = "adm-skeleton";
12112
+ const classPrefix$10 = "adm-skeleton";
12059
12113
  const Skeleton$1 = (props) => {
12060
12114
  return withNativeProps(props, React__default.createElement("div", {
12061
- className: classNames(classPrefix$_, {
12062
- [`${classPrefix$_}-animated`]: props.animated
12115
+ className: classNames(classPrefix$10, {
12116
+ [`${classPrefix$10}-animated`]: props.animated
12063
12117
  })
12064
12118
  }));
12065
12119
  };
12066
12120
  const SkeletonTitle = (props) => {
12067
12121
  return withNativeProps(props, React__default.createElement(Skeleton$1, {
12068
12122
  animated: props.animated,
12069
- className: `${classPrefix$_}-title`
12123
+ className: `${classPrefix$10}-title`
12070
12124
  }));
12071
12125
  };
12072
12126
  const defaultSkeletonParagraphProps = {
@@ -12076,11 +12130,11 @@ const SkeletonParagraph = (p) => {
12076
12130
  const props = mergeProps(defaultSkeletonParagraphProps, p);
12077
12131
  const keys2 = generateIntArray(1, props.lineCount);
12078
12132
  const node = React__default.createElement("div", {
12079
- className: `${classPrefix$_}-paragraph`
12133
+ className: `${classPrefix$10}-paragraph`
12080
12134
  }, keys2.map((key) => React__default.createElement(Skeleton$1, {
12081
12135
  key,
12082
12136
  animated: props.animated,
12083
- className: `${classPrefix$_}-paragraph-line`
12137
+ className: `${classPrefix$10}-paragraph-line`
12084
12138
  })));
12085
12139
  return withNativeProps(props, node);
12086
12140
  };
@@ -12088,7 +12142,7 @@ const Skeleton = attachPropertiesToComponent(Skeleton$1, {
12088
12142
  Title: SkeletonTitle,
12089
12143
  Paragraph: SkeletonParagraph
12090
12144
  });
12091
- const classPrefix$Z = `adm-cascader-view`;
12145
+ const classPrefix$$ = `adm-cascader-view`;
12092
12146
  const defaultProps$R = {
12093
12147
  defaultValue: []
12094
12148
  };
@@ -12152,7 +12206,7 @@ const CascaderView$1 = (p) => {
12152
12206
  };
12153
12207
  const whetherLoading = (options) => props.loading || options === optionSkeleton;
12154
12208
  return withNativeProps(props, React__default.createElement("div", {
12155
- className: classPrefix$Z
12209
+ className: classPrefix$$
12156
12210
  }, React__default.createElement(Tabs, {
12157
12211
  activeKey: tabActiveIndex.toString(),
12158
12212
  onChange: (key) => {
@@ -12160,30 +12214,30 @@ const CascaderView$1 = (p) => {
12160
12214
  setTabActiveIndex(activeIndex);
12161
12215
  },
12162
12216
  stretch: false,
12163
- className: `${classPrefix$Z}-tabs`
12217
+ className: `${classPrefix$$}-tabs`
12164
12218
  }, levels.map((level, index2) => {
12165
12219
  const selected = level.selected;
12166
12220
  return React__default.createElement(Tabs.Tab, {
12167
12221
  key: index2.toString(),
12168
12222
  title: React__default.createElement("div", {
12169
- className: `${classPrefix$Z}-header-title`
12223
+ className: `${classPrefix$$}-header-title`
12170
12224
  }, selected ? selected.label : typeof placeholder === "function" ? placeholder(index2) : placeholder),
12171
12225
  forceRender: true
12172
12226
  }, React__default.createElement("div", {
12173
- className: `${classPrefix$Z}-content`
12227
+ className: `${classPrefix$$}-content`
12174
12228
  }, whetherLoading(level.options) ? React__default.createElement("div", {
12175
- className: `${classPrefix$Z}-skeleton`
12229
+ className: `${classPrefix$$}-skeleton`
12176
12230
  }, React__default.createElement(Skeleton, {
12177
- className: `${classPrefix$Z}-skeleton-line-1`,
12231
+ className: `${classPrefix$$}-skeleton-line-1`,
12178
12232
  animated: true
12179
12233
  }), React__default.createElement(Skeleton, {
12180
- className: `${classPrefix$Z}-skeleton-line-2`,
12234
+ className: `${classPrefix$$}-skeleton-line-2`,
12181
12235
  animated: true
12182
12236
  }), React__default.createElement(Skeleton, {
12183
- className: `${classPrefix$Z}-skeleton-line-3`,
12237
+ className: `${classPrefix$$}-skeleton-line-3`,
12184
12238
  animated: true
12185
12239
  }), React__default.createElement(Skeleton, {
12186
- className: `${classPrefix$Z}-skeleton-line-4`,
12240
+ className: `${classPrefix$$}-skeleton-line-4`,
12187
12241
  animated: true
12188
12242
  })) : React__default.createElement(CheckList, {
12189
12243
  value: [value[index2]],
@@ -12195,8 +12249,8 @@ const CascaderView$1 = (p) => {
12195
12249
  value: option.value,
12196
12250
  key: option.value,
12197
12251
  disabled: option.disabled,
12198
- className: classNames(`${classPrefix$Z}-item`, {
12199
- [`${classPrefix$Z}-item-active`]: active
12252
+ className: classNames(`${classPrefix$$}-item`, {
12253
+ [`${classPrefix$$}-item-active`]: active
12200
12254
  })
12201
12255
  }, option.label);
12202
12256
  }))));
@@ -12205,7 +12259,7 @@ const CascaderView$1 = (p) => {
12205
12259
  const CascaderView = attachPropertiesToComponent(CascaderView$1, {
12206
12260
  optionSkeleton
12207
12261
  });
12208
- const classPrefix$Y = `adm-cascader`;
12262
+ const classPrefix$_ = `adm-cascader`;
12209
12263
  const defaultProps$Q = {
12210
12264
  defaultValue: [],
12211
12265
  destroyOnClose: true,
@@ -12257,26 +12311,26 @@ const Cascader = forwardRef((p, ref) => {
12257
12311
  }
12258
12312
  }, [visible, value]);
12259
12313
  const cascaderElement = withNativeProps(props, React__default.createElement("div", {
12260
- className: classPrefix$Y
12314
+ className: classPrefix$_
12261
12315
  }, React__default.createElement("div", {
12262
- className: `${classPrefix$Y}-header`
12316
+ className: `${classPrefix$_}-header`
12263
12317
  }, React__default.createElement("a", {
12264
- className: `${classPrefix$Y}-header-button`,
12318
+ className: `${classPrefix$_}-header-button`,
12265
12319
  onClick: () => {
12266
12320
  var _a2;
12267
12321
  (_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
12268
12322
  setVisible(false);
12269
12323
  }
12270
12324
  }, props.cancelText), React__default.createElement("div", {
12271
- className: `${classPrefix$Y}-header-title`
12325
+ className: `${classPrefix$_}-header-title`
12272
12326
  }, props.title), React__default.createElement("a", {
12273
- className: `${classPrefix$Y}-header-button`,
12327
+ className: `${classPrefix$_}-header-button`,
12274
12328
  onClick: () => {
12275
12329
  setValue2(innerValue, true);
12276
12330
  setVisible(false);
12277
12331
  }
12278
12332
  }, props.confirmText)), React__default.createElement("div", {
12279
- className: `${classPrefix$Y}-body`
12333
+ className: `${classPrefix$_}-body`
12280
12334
  }, React__default.createElement(CascaderView, Object.assign({}, props, {
12281
12335
  value: innerValue,
12282
12336
  onChange: (val, ext) => {
@@ -12341,6 +12395,7 @@ const index$g = attachPropertiesToComponent(Cascader, {
12341
12395
  optionSkeleton
12342
12396
  });
12343
12397
  const centerPopup = "";
12398
+ const classPrefix$Z = "adm-center-popup";
12344
12399
  const defaultProps$P = Object.assign(Object.assign({}, defaultPopupBaseProps), {
12345
12400
  getContainer: null
12346
12401
  });
@@ -12378,11 +12433,11 @@ const CenterPopup$1 = (p) => {
12378
12433
  useLockScroll(ref, props.disableBodyScroll && active);
12379
12434
  const maskVisible = useInnerVisible(active && props.visible);
12380
12435
  const body = React__default.createElement("div", {
12381
- className: classNames("adm-center-popup-body", props.bodyClassName),
12436
+ className: classNames(`${classPrefix$Z}-body`, props.bodyClassName),
12382
12437
  style: props.bodyStyle
12383
12438
  }, props.children);
12384
12439
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement("div", {
12385
- className: "adm-center-popup",
12440
+ className: classPrefix$Z,
12386
12441
  style: {
12387
12442
  display: active ? void 0 : "none",
12388
12443
  pointerEvents: active ? void 0 : "none"
@@ -12399,18 +12454,18 @@ const CenterPopup$1 = (p) => {
12399
12454
  }
12400
12455
  },
12401
12456
  style: props.maskStyle,
12402
- className: classNames("adm-center-popup-mask", props.maskClassName),
12457
+ className: classNames(`${classPrefix$Z}-mask`, props.maskClassName),
12403
12458
  disableBodyScroll: false,
12404
12459
  stopPropagation: props.stopPropagation
12405
12460
  }), React__default.createElement("div", {
12406
- className: "adm-center-popup-wrap",
12461
+ className: `${classPrefix$Z}-wrap`,
12407
12462
  role: props.role,
12408
12463
  "aria-label": props["aria-label"]
12409
12464
  }, React__default.createElement(animated.div, {
12410
12465
  style,
12411
12466
  ref
12412
12467
  }, props.showCloseButton && React__default.createElement("a", {
12413
- className: classNames("adm-center-popup-close", "adm-plain-anchor"),
12468
+ className: classNames(`${classPrefix$Z}-close`, "adm-plain-anchor"),
12414
12469
  onClick: () => {
12415
12470
  var _a;
12416
12471
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -12496,7 +12551,7 @@ const NativeInput = (props) => {
12496
12551
  id: props.id
12497
12552
  });
12498
12553
  };
12499
- const classPrefix$X = `adm-checkbox`;
12554
+ const classPrefix$Y = `adm-checkbox`;
12500
12555
  const defaultProps$N = {
12501
12556
  defaultChecked: false,
12502
12557
  indeterminate: false
@@ -12548,19 +12603,20 @@ const Checkbox$1 = forwardRef((p, ref) => {
12548
12603
  const renderIcon = () => {
12549
12604
  if (props.icon) {
12550
12605
  return React__default.createElement("div", {
12551
- className: `${classPrefix$X}-custom-icon`
12606
+ className: `${classPrefix$Y}-custom-icon`
12552
12607
  }, props.icon(checked, props.indeterminate));
12553
12608
  }
12554
12609
  return React__default.createElement("div", {
12555
- className: `${classPrefix$X}-icon`
12610
+ className: `${classPrefix$Y}-icon`
12556
12611
  }, props.indeterminate ? React__default.createElement(IndeterminateIcon, null) : checked && React__default.createElement(CheckIcon, null));
12557
12612
  };
12558
12613
  return withNativeProps(props, React__default.createElement("label", {
12559
- className: classNames(classPrefix$X, {
12560
- [`${classPrefix$X}-checked`]: checked && !props.indeterminate,
12561
- [`${classPrefix$X}-indeterminate`]: props.indeterminate,
12562
- [`${classPrefix$X}-disabled`]: disabled,
12563
- [`${classPrefix$X}-block`]: props.block
12614
+ onClick: props.onClick,
12615
+ className: classNames(classPrefix$Y, {
12616
+ [`${classPrefix$Y}-checked`]: checked && !props.indeterminate,
12617
+ [`${classPrefix$Y}-indeterminate`]: props.indeterminate,
12618
+ [`${classPrefix$Y}-disabled`]: disabled,
12619
+ [`${classPrefix$Y}-block`]: props.block
12564
12620
  })
12565
12621
  }, React__default.createElement(NativeInput, {
12566
12622
  type: "checkbox",
@@ -12569,14 +12625,14 @@ const Checkbox$1 = forwardRef((p, ref) => {
12569
12625
  disabled,
12570
12626
  id: props.id
12571
12627
  }), renderIcon(), props.children && React__default.createElement("div", {
12572
- className: `${classPrefix$X}-content`
12628
+ className: `${classPrefix$Y}-content`
12573
12629
  }, props.children)));
12574
12630
  });
12575
12631
  const Checkbox = attachPropertiesToComponent(Checkbox$1, {
12576
12632
  Group: Group$1
12577
12633
  });
12578
12634
  const collapse = "";
12579
- const classPrefix$W = `adm-collapse`;
12635
+ const classPrefix$X = `adm-collapse`;
12580
12636
  const CollapsePanel = () => {
12581
12637
  return null;
12582
12638
  };
@@ -12630,8 +12686,8 @@ const CollapsePanelContent = (props) => {
12630
12686
  }
12631
12687
  }, [visible]);
12632
12688
  return React__default.createElement(animated.div, {
12633
- className: classNames(`${classPrefix$W}-panel-content`, {
12634
- [`${classPrefix$W}-panel-content-active`]: visible
12689
+ className: classNames(`${classPrefix$X}-panel-content`, {
12690
+ [`${classPrefix$X}-panel-content-active`]: visible
12635
12691
  }),
12636
12692
  style: {
12637
12693
  height: height.to((v) => {
@@ -12643,41 +12699,56 @@ const CollapsePanelContent = (props) => {
12643
12699
  })
12644
12700
  }
12645
12701
  }, React__default.createElement("div", {
12646
- className: `${classPrefix$W}-panel-content-inner`,
12702
+ className: `${classPrefix$X}-panel-content-inner`,
12647
12703
  ref: innerRef
12648
12704
  }, React__default.createElement(List$1.Item, null, shouldRender && props.children)));
12649
12705
  };
12650
12706
  const Collapse = (props) => {
12651
- var _a;
12652
12707
  const panels = [];
12653
12708
  traverseReactNode(props.children, (child) => {
12654
- if (!React__default.isValidElement(child))
12709
+ if (!isValidElement(child))
12655
12710
  return;
12656
12711
  const key = child.key;
12657
12712
  if (typeof key !== "string")
12658
12713
  return;
12659
12714
  panels.push(child);
12660
12715
  });
12661
- const [activeKey, setActiveKey] = usePropsValue(props.accordion ? {
12662
- value: props.activeKey === void 0 ? void 0 : props.activeKey === null ? [] : [props.activeKey],
12663
- defaultValue: props.defaultActiveKey === void 0 || props.defaultActiveKey === null ? [] : [props.defaultActiveKey],
12664
- onChange: (v) => {
12665
- var _a2, _b;
12666
- (_a2 = props.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, (_b = v[0]) !== null && _b !== void 0 ? _b : null);
12716
+ const handlePropsValue = () => {
12717
+ var _a;
12718
+ if (!props.accordion) {
12719
+ return {
12720
+ value: props.activeKey,
12721
+ defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
12722
+ onChange: props.onChange
12723
+ };
12667
12724
  }
12668
- } : {
12669
- value: props.activeKey,
12670
- defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
12671
- onChange: props.onChange
12672
- });
12725
+ const initValue = {
12726
+ value: [],
12727
+ defaultValue: [],
12728
+ onChange: (v) => {
12729
+ var _a2, _b;
12730
+ (_a2 = props.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, (_b = v[0]) !== null && _b !== void 0 ? _b : null);
12731
+ }
12732
+ };
12733
+ if (props.activeKey === void 0) {
12734
+ initValue.value = void 0;
12735
+ } else if (props.activeKey !== null) {
12736
+ initValue.value = [props.activeKey];
12737
+ }
12738
+ if (![null, void 0].includes(props.defaultActiveKey)) {
12739
+ initValue.defaultValue = [props.defaultActiveKey];
12740
+ }
12741
+ return initValue;
12742
+ };
12743
+ const [activeKey, setActiveKey] = usePropsValue(handlePropsValue());
12673
12744
  const activeKeyList = activeKey === null ? [] : Array.isArray(activeKey) ? activeKey : [activeKey];
12674
12745
  return withNativeProps(props, React__default.createElement("div", {
12675
- className: classPrefix$W
12746
+ className: classPrefix$X
12676
12747
  }, React__default.createElement(List$1, null, panels.map((panel) => {
12677
12748
  const key = panel.key;
12678
12749
  const active = activeKeyList.includes(key);
12679
12750
  function handleClick(event) {
12680
- var _a2, _b;
12751
+ var _a, _b;
12681
12752
  if (props.accordion) {
12682
12753
  if (active) {
12683
12754
  setActiveKey([]);
@@ -12691,7 +12762,7 @@ const Collapse = (props) => {
12691
12762
  setActiveKey([...activeKeyList, key]);
12692
12763
  }
12693
12764
  }
12694
- (_b = (_a2 = panel.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a2, event);
12765
+ (_b = (_a = panel.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event);
12695
12766
  }
12696
12767
  const renderArrow = () => {
12697
12768
  let arrow2 = React__default.createElement(DownOutline, null);
@@ -12702,15 +12773,15 @@ const Collapse = (props) => {
12702
12773
  arrow2 = panel.props.arrow;
12703
12774
  }
12704
12775
  return typeof arrow2 === "function" ? arrow2(active) : React__default.createElement("div", {
12705
- className: classNames(`${classPrefix$W}-arrow`, {
12706
- [`${classPrefix$W}-arrow-active`]: active
12776
+ className: classNames(`${classPrefix$X}-arrow`, {
12777
+ [`${classPrefix$X}-arrow-active`]: active
12707
12778
  })
12708
12779
  }, arrow2);
12709
12780
  };
12710
12781
  return React__default.createElement(React__default.Fragment, {
12711
12782
  key
12712
12783
  }, withNativeProps(panel.props, React__default.createElement(List$1.Item, {
12713
- className: `${classPrefix$W}-panel-header`,
12784
+ className: `${classPrefix$X}-panel-header`,
12714
12785
  onClick: handleClick,
12715
12786
  disabled: panel.props.disabled,
12716
12787
  arrow: renderArrow()
@@ -12816,67 +12887,55 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
12816
12887
  const lower = minYear;
12817
12888
  const upper = maxYear;
12818
12889
  const years = generateColumn(lower, upper, "year");
12819
- ret.push(years.map((v) => {
12820
- return {
12821
- label: renderLabel("year", v),
12822
- value: v.toString()
12823
- };
12824
- }));
12890
+ ret.push(years.map((v) => ({
12891
+ label: renderLabel("year", v),
12892
+ value: v.toString()
12893
+ })));
12825
12894
  }
12826
12895
  if (rank >= precisionRankRecord$1.month) {
12827
12896
  const lower = isInMinYear ? minMonth : 1;
12828
12897
  const upper = isInMaxYear ? maxMonth : 12;
12829
12898
  const months = generateColumn(lower, upper, "month");
12830
- ret.push(months.map((v) => {
12831
- return {
12832
- label: renderLabel("month", v),
12833
- value: v.toString()
12834
- };
12835
- }));
12899
+ ret.push(months.map((v) => ({
12900
+ label: renderLabel("month", v),
12901
+ value: v.toString()
12902
+ })));
12836
12903
  }
12837
12904
  if (rank >= precisionRankRecord$1.day) {
12838
12905
  const lower = isInMinMonth ? minDay : 1;
12839
12906
  const upper = isInMaxMonth ? maxDay : firstDayInSelectedMonth.daysInMonth();
12840
12907
  const days = generateColumn(lower, upper, "day");
12841
- ret.push(days.map((v) => {
12842
- return {
12843
- label: renderLabel("day", v),
12844
- value: v.toString()
12845
- };
12846
- }));
12908
+ ret.push(days.map((v) => ({
12909
+ label: renderLabel("day", v),
12910
+ value: v.toString()
12911
+ })));
12847
12912
  }
12848
12913
  if (rank >= precisionRankRecord$1.hour) {
12849
12914
  const lower = isInMinDay ? minHour : 0;
12850
12915
  const upper = isInMaxDay ? maxHour : 23;
12851
12916
  const hours = generateColumn(lower, upper, "hour");
12852
- ret.push(hours.map((v) => {
12853
- return {
12854
- label: renderLabel("hour", v),
12855
- value: v.toString()
12856
- };
12857
- }));
12917
+ ret.push(hours.map((v) => ({
12918
+ label: renderLabel("hour", v),
12919
+ value: v.toString()
12920
+ })));
12858
12921
  }
12859
12922
  if (rank >= precisionRankRecord$1.minute) {
12860
12923
  const lower = isInMinHour ? minMinute : 0;
12861
12924
  const upper = isInMaxHour ? maxMinute : 59;
12862
12925
  const minutes = generateColumn(lower, upper, "minute");
12863
- ret.push(minutes.map((v) => {
12864
- return {
12865
- label: renderLabel("minute", v),
12866
- value: v.toString()
12867
- };
12868
- }));
12926
+ ret.push(minutes.map((v) => ({
12927
+ label: renderLabel("minute", v),
12928
+ value: v.toString()
12929
+ })));
12869
12930
  }
12870
12931
  if (rank >= precisionRankRecord$1.second) {
12871
12932
  const lower = isInMinMinute ? minSecond : 0;
12872
12933
  const upper = isInMaxMinute ? maxSecond : 59;
12873
12934
  const seconds = generateColumn(lower, upper, "second");
12874
- ret.push(seconds.map((v) => {
12875
- return {
12876
- label: renderLabel("second", v),
12877
- value: v.toString()
12878
- };
12879
- }));
12935
+ ret.push(seconds.map((v) => ({
12936
+ label: renderLabel("second", v),
12937
+ value: v.toString()
12938
+ })));
12880
12939
  }
12881
12940
  if (tillNow) {
12882
12941
  ret[0].push({
@@ -12953,34 +13012,28 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
12953
13012
  const lower = minYear;
12954
13013
  const upper = maxYear;
12955
13014
  const years = generateColumn(lower, upper, "year");
12956
- ret.push(years.map((v) => {
12957
- return {
12958
- label: renderLabel("year", v),
12959
- value: v.toString()
12960
- };
12961
- }));
13015
+ ret.push(years.map((v) => ({
13016
+ label: renderLabel("year", v),
13017
+ value: v.toString()
13018
+ })));
12962
13019
  }
12963
13020
  if (rank >= precisionRankRecord.week) {
12964
13021
  const lower = isInMinYear ? minWeek : 1;
12965
13022
  const upper = isInMaxYear ? maxWeek : selectedYearWeeks;
12966
13023
  const weeks = generateColumn(lower, upper, "week");
12967
- ret.push(weeks.map((v) => {
12968
- return {
12969
- label: renderLabel("week", v),
12970
- value: v.toString()
12971
- };
12972
- }));
13024
+ ret.push(weeks.map((v) => ({
13025
+ label: renderLabel("week", v),
13026
+ value: v.toString()
13027
+ })));
12973
13028
  }
12974
13029
  if (rank >= precisionRankRecord["week-day"]) {
12975
13030
  const lower = isInMinWeek ? minWeekday : 1;
12976
13031
  const upper = isInMaxWeek ? maxWeekday : 7;
12977
13032
  const weeks = generateColumn(lower, upper, "week-day");
12978
- ret.push(weeks.map((v) => {
12979
- return {
12980
- label: renderLabel("week-day", v),
12981
- value: v.toString()
12982
- };
12983
- }));
13033
+ ret.push(weeks.map((v) => ({
13034
+ label: renderLabel("week-day", v),
13035
+ value: v.toString()
13036
+ })));
12984
13037
  }
12985
13038
  return ret;
12986
13039
  }
@@ -13175,7 +13228,12 @@ const DatePickerView$1 = (p) => {
13175
13228
  defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
13176
13229
  });
13177
13230
  const mergedRenderLabel = useRenderLabel(renderLabel);
13178
- const pickerValue = useMemo(() => convertDateToStringArray(value, props.precision), [value, props.precision]);
13231
+ const pickerValue = useMemo(() => {
13232
+ if (value === null || value === void 0 ? void 0 : value.tillNow) {
13233
+ return [TILL_NOW, null, null];
13234
+ }
13235
+ return convertDateToStringArray(value, props.precision);
13236
+ }, [value, props.precision]);
13179
13237
  const onChange = useCallback((val) => {
13180
13238
  var _a2;
13181
13239
  const date4 = convertStringArrayToDate(val, props.precision);
@@ -13185,7 +13243,7 @@ const DatePickerView$1 = (p) => {
13185
13243
  }
13186
13244
  }, [props.onChange, props.precision]);
13187
13245
  return withNativeProps(props, React__default.createElement(PickerView, {
13188
- columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter),
13246
+ columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter, props.tillNow),
13189
13247
  loading: props.loading,
13190
13248
  loadingContent: props.loadingContent,
13191
13249
  value: pickerValue,
@@ -13364,7 +13422,7 @@ const index$d = attachPropertiesToComponent(Dialog, {
13364
13422
  clear: clear$2
13365
13423
  });
13366
13424
  const divider = "";
13367
- const classPrefix$V = `adm-divider`;
13425
+ const classPrefix$W = `adm-divider`;
13368
13426
  const defaultProps$I = {
13369
13427
  contentPosition: "center",
13370
13428
  direction: "horizontal"
@@ -13372,30 +13430,30 @@ const defaultProps$I = {
13372
13430
  const Divider$1 = (p) => {
13373
13431
  const props = mergeProps(defaultProps$I, p);
13374
13432
  return withNativeProps(props, React__default.createElement("div", {
13375
- className: classNames(classPrefix$V, `${classPrefix$V}-${props.direction}`, `${classPrefix$V}-${props.contentPosition}`)
13433
+ className: classNames(classPrefix$W, `${classPrefix$W}-${props.direction}`, `${classPrefix$W}-${props.contentPosition}`)
13376
13434
  }, props.children && React__default.createElement("div", {
13377
- className: `${classPrefix$V}-content`
13435
+ className: `${classPrefix$W}-content`
13378
13436
  }, props.children)));
13379
13437
  };
13380
13438
  const Divider = Divider$1;
13381
13439
  const dropdown = "";
13382
- const classPrefix$U = `adm-dropdown-item`;
13440
+ const classPrefix$V = `adm-dropdown-item`;
13383
13441
  const Item = (props) => {
13384
13442
  var _a;
13385
- const cls2 = classNames(classPrefix$U, {
13386
- [`${classPrefix$U}-active`]: props.active,
13387
- [`${classPrefix$U}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
13443
+ const cls2 = classNames(classPrefix$V, {
13444
+ [`${classPrefix$V}-active`]: props.active,
13445
+ [`${classPrefix$V}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
13388
13446
  });
13389
13447
  return withNativeProps(props, React__default.createElement("div", {
13390
13448
  className: cls2,
13391
13449
  onClick: props.onClick
13392
13450
  }, React__default.createElement("div", {
13393
- className: `${classPrefix$U}-title`
13451
+ className: `${classPrefix$V}-title`
13394
13452
  }, React__default.createElement("span", {
13395
- className: `${classPrefix$U}-title-text`
13453
+ className: `${classPrefix$V}-title-text`
13396
13454
  }, props.title), React__default.createElement("span", {
13397
- className: classNames(`${classPrefix$U}-title-arrow`, {
13398
- [`${classPrefix$U}-title-arrow-active`]: props.active
13455
+ className: classNames(`${classPrefix$V}-title-arrow`, {
13456
+ [`${classPrefix$V}-title-arrow-active`]: props.active
13399
13457
  })
13400
13458
  }, props.arrow === void 0 ? React__default.createElement(DownFill, null) : props.arrow))));
13401
13459
  };
@@ -13405,15 +13463,15 @@ const ItemChildrenWrap = (props) => {
13405
13463
  active = false
13406
13464
  } = props;
13407
13465
  const shouldRender = useShouldRender(active, props.forceRender, props.destroyOnClose);
13408
- const cls2 = classNames(`${classPrefix$U}-content`, {
13409
- [`${classPrefix$U}-content-hidden`]: !active
13466
+ const cls2 = classNames(`${classPrefix$V}-content`, {
13467
+ [`${classPrefix$V}-content-hidden`]: !active
13410
13468
  });
13411
13469
  return shouldRender ? React__default.createElement("div", {
13412
13470
  className: cls2,
13413
13471
  onClick: props.onClick
13414
13472
  }, props.children) : null;
13415
13473
  };
13416
- const classPrefix$T = `adm-dropdown`;
13474
+ const classPrefix$U = `adm-dropdown`;
13417
13475
  const defaultProps$H = {
13418
13476
  defaultActiveKey: null,
13419
13477
  closeOnMaskClick: true,
@@ -13455,7 +13513,7 @@ const Dropdown = forwardRef((p, ref) => {
13455
13513
  let popupForceRender = false;
13456
13514
  const items = [];
13457
13515
  const navs = React__default.Children.map(props.children, (child) => {
13458
- if (React__default.isValidElement(child)) {
13516
+ if (isValidElement(child)) {
13459
13517
  const childProps = Object.assign(Object.assign({}, child.props), {
13460
13518
  onClick: () => {
13461
13519
  changeActive(child.key);
@@ -13477,20 +13535,20 @@ const Dropdown = forwardRef((p, ref) => {
13477
13535
  }
13478
13536
  }), [setValue2]);
13479
13537
  return withNativeProps(props, React__default.createElement("div", {
13480
- className: classNames(classPrefix$T, {
13481
- [`${classPrefix$T}-open`]: !!value
13538
+ className: classNames(classPrefix$U, {
13539
+ [`${classPrefix$U}-open`]: !!value
13482
13540
  }),
13483
13541
  ref: containerRef
13484
13542
  }, React__default.createElement("div", {
13485
- className: `${classPrefix$T}-nav`,
13543
+ className: `${classPrefix$U}-nav`,
13486
13544
  ref: navRef
13487
13545
  }, navs), React__default.createElement(Popup, {
13488
13546
  visible: !!value,
13489
13547
  position: "top",
13490
13548
  getContainer: props.getContainer,
13491
- className: `${classPrefix$T}-popup`,
13492
- maskClassName: `${classPrefix$T}-popup-mask`,
13493
- bodyClassName: `${classPrefix$T}-popup-body`,
13549
+ className: `${classPrefix$U}-popup`,
13550
+ maskClassName: `${classPrefix$U}-popup-mask`,
13551
+ bodyClassName: `${classPrefix$U}-popup-body`,
13494
13552
  style: {
13495
13553
  top
13496
13554
  },
@@ -13575,7 +13633,7 @@ function betweenInclusive(i2, e2, n2) {
13575
13633
  !function(i2) {
13576
13634
  i2[i2.unit_1 = 1] = "unit_1", i2[i2.unit_2 = 2] = "unit_2", i2[i2.unit_4 = 4] = "unit_4";
13577
13635
  }(n || (n = {}));
13578
- const classPrefix$S = `adm-ellipsis`;
13636
+ const classPrefix$T = `adm-ellipsis`;
13579
13637
  const defaultProps$G = {
13580
13638
  direction: "end",
13581
13639
  rows: 1,
@@ -13689,18 +13747,18 @@ const Ellipsis$1 = (p) => {
13689
13747
  useIsomorphicLayoutEffect$2(() => {
13690
13748
  calcEllipsised();
13691
13749
  }, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
13692
- const expandActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13750
+ const expandActionElement = !!props.expandText && withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13693
13751
  ref: expandElRef,
13694
13752
  onClick: () => {
13695
13753
  setExpanded(true);
13696
13754
  }
13697
- }, props.expandText)) : null;
13698
- const collapseActionElement = exceeded && props.collapseText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13755
+ }, props.expandText));
13756
+ const collapseActionElement = !!props.collapseText && withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13699
13757
  ref: collapseElRef,
13700
13758
  onClick: () => {
13701
13759
  setExpanded(false);
13702
13760
  }
13703
- }, props.collapseText)) : null;
13761
+ }, props.collapseText));
13704
13762
  const renderContent = () => {
13705
13763
  if (!exceeded)
13706
13764
  return props.content;
@@ -13710,7 +13768,7 @@ const Ellipsis$1 = (p) => {
13710
13768
  };
13711
13769
  return withNativeProps(props, React__default.createElement("div", {
13712
13770
  ref: rootRef,
13713
- className: classPrefix$S,
13771
+ className: classPrefix$T,
13714
13772
  onClick: (e2) => {
13715
13773
  if (e2.target === e2.currentTarget) {
13716
13774
  props.onContentClick(e2);
@@ -13748,7 +13806,7 @@ const EmptyIcon = (props) => {
13748
13806
  fill: "#fafafa"
13749
13807
  })))));
13750
13808
  };
13751
- const classPrefix$R = `adm-empty`;
13809
+ const classPrefix$S = `adm-empty`;
13752
13810
  const Empty$1 = (props) => {
13753
13811
  function renderImageNode() {
13754
13812
  const {
@@ -13756,13 +13814,13 @@ const Empty$1 = (props) => {
13756
13814
  } = props;
13757
13815
  if (image2 === void 0) {
13758
13816
  return React__default.createElement(EmptyIcon, {
13759
- className: `${classPrefix$R}-image`,
13817
+ className: `${classPrefix$S}-image`,
13760
13818
  style: props.imageStyle
13761
13819
  });
13762
13820
  }
13763
13821
  if (typeof image2 === "string") {
13764
13822
  return React__default.createElement("img", {
13765
- className: `${classPrefix$R}-image`,
13823
+ className: `${classPrefix$S}-image`,
13766
13824
  style: props.imageStyle,
13767
13825
  src: image2,
13768
13826
  alt: "empty"
@@ -13771,16 +13829,16 @@ const Empty$1 = (props) => {
13771
13829
  return image2;
13772
13830
  }
13773
13831
  return withNativeProps(props, React__default.createElement("div", {
13774
- className: classPrefix$R
13832
+ className: classPrefix$S
13775
13833
  }, React__default.createElement("div", {
13776
- className: `${classPrefix$R}-image-container`
13834
+ className: `${classPrefix$S}-image-container`
13777
13835
  }, renderImageNode()), props.description && React__default.createElement("div", {
13778
- className: classNames(`${classPrefix$R}-description`)
13836
+ className: classNames(`${classPrefix$S}-description`)
13779
13837
  }, props.description)));
13780
13838
  };
13781
13839
  const Empty = Empty$1;
13782
13840
  const errorBlock = "";
13783
- const classPrefix$Q = `adm-error-block`;
13841
+ const classPrefix$R = `adm-error-block`;
13784
13842
  const defaultProps$F = {
13785
13843
  status: "default"
13786
13844
  };
@@ -13792,7 +13850,7 @@ function createErrorBlock(imageRecord2) {
13792
13850
  locale
13793
13851
  } = useConfig();
13794
13852
  const contentPack = locale.ErrorBlock[props.status];
13795
- const des = "description" in props ? props.description : contentPack.description;
13853
+ const desc = "description" in props ? props.description : contentPack.description;
13796
13854
  const title = "title" in props ? props.title : contentPack.title;
13797
13855
  const image2 = (_a = props.image) !== null && _a !== void 0 ? _a : imageRecord2[props.status];
13798
13856
  const imageNode = typeof image2 === "string" ? React__default.createElement("img", {
@@ -13800,19 +13858,19 @@ function createErrorBlock(imageRecord2) {
13800
13858
  alt: "error block image"
13801
13859
  }) : image2;
13802
13860
  return withNativeProps(props, React__default.createElement("div", {
13803
- className: classNames(classPrefix$Q, {
13804
- [`${classPrefix$Q}-full-page`]: props.fullPage
13861
+ className: classNames(classPrefix$R, {
13862
+ [`${classPrefix$R}-full-page`]: props.fullPage
13805
13863
  })
13806
13864
  }, React__default.createElement("div", {
13807
- className: `${classPrefix$Q}-image`
13865
+ className: `${classPrefix$R}-image`
13808
13866
  }, imageNode), React__default.createElement("div", {
13809
- className: `${classPrefix$Q}-description`
13810
- }, title && React__default.createElement("div", {
13811
- className: `${classPrefix$Q}-description-title`
13812
- }, title), des && React__default.createElement("div", {
13813
- className: `${classPrefix$Q}-description-subtitle`
13814
- }, des)), props.children && React__default.createElement("div", {
13815
- className: `${classPrefix$Q}-content`
13867
+ className: `${classPrefix$R}-description`
13868
+ }, ![void 0, null].includes(title) && React__default.createElement("div", {
13869
+ className: `${classPrefix$R}-description-title`
13870
+ }, title), ![void 0, null].includes(desc) && React__default.createElement("div", {
13871
+ className: `${classPrefix$R}-description-subtitle`
13872
+ }, desc)), props.children && React__default.createElement("div", {
13873
+ className: `${classPrefix$R}-content`
13816
13874
  }, props.children)));
13817
13875
  };
13818
13876
  return ErrorBlock2;
@@ -14320,7 +14378,7 @@ const imageRecord = {
14320
14378
  const ErrorBlock$1 = createErrorBlock(imageRecord);
14321
14379
  const ErrorBlock = ErrorBlock$1;
14322
14380
  const floatingBubble = "";
14323
- const classPrefix$P = `adm-floating-bubble`;
14381
+ const classPrefix$Q = `adm-floating-bubble`;
14324
14382
  const defaultProps$E = {
14325
14383
  axis: "y",
14326
14384
  defaultOffset: {
@@ -14404,11 +14462,11 @@ const FloatingBubble$1 = (p) => {
14404
14462
  from: () => [x.get(), y.get()]
14405
14463
  });
14406
14464
  return withNativeProps(props, React__default.createElement("div", {
14407
- className: classPrefix$P
14465
+ className: classPrefix$Q
14408
14466
  }, React__default.createElement("div", {
14409
- className: `${classPrefix$P}-boundary-outer`
14467
+ className: `${classPrefix$Q}-boundary-outer`
14410
14468
  }, React__default.createElement("div", {
14411
- className: `${classPrefix$P}-boundary`,
14469
+ className: `${classPrefix$Q}-boundary`,
14412
14470
  ref: boundaryRef
14413
14471
  })), React__default.createElement(animated.div, Object.assign({}, bind(), {
14414
14472
  style: {
@@ -14416,7 +14474,7 @@ const FloatingBubble$1 = (p) => {
14416
14474
  transform: to([x, y], (x2, y2) => `translate(${x2}px, ${y2}px)`)
14417
14475
  },
14418
14476
  onClick: props.onClick,
14419
- className: `${classPrefix$P}-button`,
14477
+ className: `${classPrefix$Q}-button`,
14420
14478
  ref: buttonRef
14421
14479
  }), props.children)));
14422
14480
  };
@@ -14427,6 +14485,7 @@ function nearest(arr, target) {
14427
14485
  return Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur;
14428
14486
  });
14429
14487
  }
14488
+ const classPrefix$P = "adm-floating-panel";
14430
14489
  const defaultProps$D = {
14431
14490
  handleDraggingOfContent: true
14432
14491
  };
@@ -14489,7 +14548,7 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
14489
14548
  const {
14490
14549
  event
14491
14550
  } = state;
14492
- if (event.cancelable) {
14551
+ if (event.cancelable && supportsPassive) {
14493
14552
  event.preventDefault();
14494
14553
  }
14495
14554
  event.stopPropagation();
@@ -14513,7 +14572,7 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
14513
14572
  target: elementRef,
14514
14573
  eventOptions: supportsPassive ? {
14515
14574
  passive: false
14516
- } : false
14575
+ } : void 0
14517
14576
  });
14518
14577
  useImperativeHandle(ref, () => ({
14519
14578
  setHeight: (height, options) => {
@@ -14526,23 +14585,23 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
14526
14585
  useLockScroll(elementRef, true);
14527
14586
  return withNativeProps(props, React__default.createElement(animated.div, {
14528
14587
  ref: elementRef,
14529
- className: "adm-floating-panel",
14588
+ className: classPrefix$P,
14530
14589
  style: {
14531
14590
  height: Math.round(maxHeight),
14532
14591
  translateY: y.to((y2) => `calc(100% + (${Math.round(y2)}px))`)
14533
14592
  }
14534
14593
  }, React__default.createElement("div", {
14535
- className: "adm-floating-panel-mask",
14594
+ className: `${classPrefix$P}-mask`,
14536
14595
  style: {
14537
14596
  display: pulling ? "block" : "none"
14538
14597
  }
14539
14598
  }), React__default.createElement("div", {
14540
- className: "adm-floating-panel-header",
14599
+ className: `${classPrefix$P}-header`,
14541
14600
  ref: headerRef
14542
14601
  }, React__default.createElement("div", {
14543
- className: "adm-floating-panel-bar"
14602
+ className: `${classPrefix$P}-bar`
14544
14603
  })), React__default.createElement("div", {
14545
- className: "adm-floating-panel-content",
14604
+ className: `${classPrefix$P}-content`,
14546
14605
  ref: contentRef
14547
14606
  }, props.children)));
14548
14607
  });
@@ -19170,6 +19229,9 @@ const computePosition$1 = async (reference, floating, config2) => {
19170
19229
  middlewareData
19171
19230
  };
19172
19231
  };
19232
+ function evaluate(value, param) {
19233
+ return typeof value === "function" ? value(param) : value;
19234
+ }
19173
19235
  function expandPaddingObject(padding) {
19174
19236
  return {
19175
19237
  top: 0,
@@ -19215,7 +19277,7 @@ async function detectOverflow(state, options) {
19215
19277
  elementContext = "floating",
19216
19278
  altBoundary = false,
19217
19279
  padding = 0
19218
- } = options;
19280
+ } = evaluate(options, state);
19219
19281
  const paddingObject = getSideObjectFromPadding(padding);
19220
19282
  const altContext = elementContext === "floating" ? "reference" : "floating";
19221
19283
  const element = elements[altBoundary ? altContext : elementContext];
@@ -19259,10 +19321,6 @@ const arrow = (options) => ({
19259
19321
  name: "arrow",
19260
19322
  options,
19261
19323
  async fn(state) {
19262
- const {
19263
- element,
19264
- padding = 0
19265
- } = options || {};
19266
19324
  const {
19267
19325
  x,
19268
19326
  y,
@@ -19271,6 +19329,10 @@ const arrow = (options) => ({
19271
19329
  platform: platform2,
19272
19330
  elements
19273
19331
  } = state;
19332
+ const {
19333
+ element,
19334
+ padding = 0
19335
+ } = evaluate(options, state) || {};
19274
19336
  if (element == null) {
19275
19337
  return {};
19276
19338
  }
@@ -19294,17 +19356,20 @@ const arrow = (options) => ({
19294
19356
  clientSize = elements.floating[clientProp] || rects.floating[length];
19295
19357
  }
19296
19358
  const centerToReference = endDiff / 2 - startDiff / 2;
19297
- const min2 = paddingObject[minProp];
19298
- const max2 = clientSize - arrowDimensions[length] - paddingObject[maxProp];
19359
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
19360
+ const minPadding = min$1(paddingObject[minProp], largestPossiblePadding);
19361
+ const maxPadding = min$1(paddingObject[maxProp], largestPossiblePadding);
19362
+ const min$1$1 = minPadding;
19363
+ const max2 = clientSize - arrowDimensions[length] - maxPadding;
19299
19364
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
19300
- const offset2 = within(min2, center, max2);
19301
- const shouldAddOffset = getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min2 ? paddingObject[minProp] : paddingObject[maxProp]) - arrowDimensions[length] / 2 < 0;
19302
- const alignmentOffset = shouldAddOffset ? center < min2 ? min2 - center : max2 - center : 0;
19365
+ const offset2 = within(min$1$1, center, max2);
19366
+ const shouldAddOffset = getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min$1$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
19367
+ const alignmentOffset = shouldAddOffset ? center < min$1$1 ? min$1$1 - center : max2 - center : 0;
19303
19368
  return {
19304
19369
  [axis]: coords[axis] - alignmentOffset,
19305
19370
  data: {
19306
19371
  [axis]: offset2,
19307
- centerOffset: center - offset2
19372
+ centerOffset: center - offset2 + alignmentOffset
19308
19373
  }
19309
19374
  };
19310
19375
  }
@@ -19400,7 +19465,7 @@ const flip = function(options) {
19400
19465
  fallbackAxisSideDirection = "none",
19401
19466
  flipAlignment = true,
19402
19467
  ...detectOverflowOptions
19403
- } = options;
19468
+ } = evaluate(options, state);
19404
19469
  const side = getSide(placement);
19405
19470
  const isBasePlacement = getSide(initialPlacement) === initialPlacement;
19406
19471
  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
@@ -19488,13 +19553,13 @@ const hide = function(options) {
19488
19553
  name: "hide",
19489
19554
  options,
19490
19555
  async fn(state) {
19491
- const {
19492
- strategy = "referenceHidden",
19493
- ...detectOverflowOptions
19494
- } = options;
19495
19556
  const {
19496
19557
  rects
19497
19558
  } = state;
19559
+ const {
19560
+ strategy = "referenceHidden",
19561
+ ...detectOverflowOptions
19562
+ } = evaluate(options, state);
19498
19563
  switch (strategy) {
19499
19564
  case "referenceHidden": {
19500
19565
  const overflow = await detectOverflow(state, {
@@ -19529,7 +19594,7 @@ const hide = function(options) {
19529
19594
  }
19530
19595
  };
19531
19596
  };
19532
- async function convertValueToCoords(state, value) {
19597
+ async function convertValueToCoords(state, options) {
19533
19598
  const {
19534
19599
  placement,
19535
19600
  platform: platform2,
@@ -19541,7 +19606,7 @@ async function convertValueToCoords(state, value) {
19541
19606
  const isVertical = getMainAxisFromPlacement(placement) === "x";
19542
19607
  const mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
19543
19608
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
19544
- const rawValue = typeof value === "function" ? value(state) : value;
19609
+ const rawValue = evaluate(options, state);
19545
19610
  let {
19546
19611
  mainAxis,
19547
19612
  crossAxis,
@@ -19567,19 +19632,19 @@ async function convertValueToCoords(state, value) {
19567
19632
  y: crossAxis * crossAxisMulti
19568
19633
  };
19569
19634
  }
19570
- const offset = function(value) {
19571
- if (value === void 0) {
19572
- value = 0;
19635
+ const offset = function(options) {
19636
+ if (options === void 0) {
19637
+ options = 0;
19573
19638
  }
19574
19639
  return {
19575
19640
  name: "offset",
19576
- options: value,
19641
+ options,
19577
19642
  async fn(state) {
19578
19643
  const {
19579
19644
  x,
19580
19645
  y
19581
19646
  } = state;
19582
- const diffCoords = await convertValueToCoords(state, value);
19647
+ const diffCoords = await convertValueToCoords(state, options);
19583
19648
  return {
19584
19649
  x: x + diffCoords.x,
19585
19650
  y: y + diffCoords.y,
@@ -19620,7 +19685,7 @@ const shift = function(options) {
19620
19685
  }
19621
19686
  },
19622
19687
  ...detectOverflowOptions
19623
- } = options;
19688
+ } = evaluate(options, state);
19624
19689
  const coords = {
19625
19690
  x,
19626
19691
  y
@@ -19677,7 +19742,7 @@ const limitShift = function(options) {
19677
19742
  offset: offset2 = 0,
19678
19743
  mainAxis: checkMainAxis = true,
19679
19744
  crossAxis: checkCrossAxis = true
19680
- } = options;
19745
+ } = evaluate(options, state);
19681
19746
  const coords = {
19682
19747
  x,
19683
19748
  y
@@ -19686,7 +19751,7 @@ const limitShift = function(options) {
19686
19751
  const crossAxis = getCrossAxis(mainAxis);
19687
19752
  let mainAxisCoord = coords[mainAxis];
19688
19753
  let crossAxisCoord = coords[crossAxis];
19689
- const rawOffset = typeof offset2 === "function" ? offset2(state) : offset2;
19754
+ const rawOffset = evaluate(offset2, state);
19690
19755
  const computedOffset = typeof rawOffset === "number" ? {
19691
19756
  mainAxis: rawOffset,
19692
19757
  crossAxis: 0
@@ -19735,19 +19800,10 @@ function isNode(value) {
19735
19800
  return value instanceof getWindow(value).Node;
19736
19801
  }
19737
19802
  function getNodeName(node) {
19738
- return isNode(node) ? (node.nodeName || "").toLowerCase() : "";
19739
- }
19740
- let uaString;
19741
- function getUAString() {
19742
- if (uaString) {
19743
- return uaString;
19803
+ if (isNode(node)) {
19804
+ return (node.nodeName || "").toLowerCase();
19744
19805
  }
19745
- const uaData = navigator.userAgentData;
19746
- if (uaData && Array.isArray(uaData.brands)) {
19747
- uaString = uaData.brands.map((item) => item.brand + "/" + item.version).join(" ");
19748
- return uaString;
19749
- }
19750
- return navigator.userAgent;
19806
+ return "#document";
19751
19807
  }
19752
19808
  function isHTMLElement(value) {
19753
19809
  return value instanceof getWindow(value).HTMLElement;
@@ -19759,8 +19815,7 @@ function isShadowRoot(node) {
19759
19815
  if (typeof ShadowRoot === "undefined") {
19760
19816
  return false;
19761
19817
  }
19762
- const OwnElement = getWindow(node).ShadowRoot;
19763
- return node instanceof OwnElement || node instanceof ShadowRoot;
19818
+ return node instanceof getWindow(node).ShadowRoot || node instanceof ShadowRoot;
19764
19819
  }
19765
19820
  function isOverflowElement(element) {
19766
19821
  const {
@@ -19775,16 +19830,14 @@ function isTableElement(element) {
19775
19830
  return ["table", "td", "th"].includes(getNodeName(element));
19776
19831
  }
19777
19832
  function isContainingBlock(element) {
19778
- const isFirefox = /firefox/i.test(getUAString());
19833
+ const safari = isSafari();
19779
19834
  const css = getComputedStyle$1(element);
19780
- const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
19781
- 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) => {
19782
- const contain = css.contain;
19783
- return contain != null ? contain.includes(value) : false;
19784
- });
19835
+ 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));
19785
19836
  }
19786
- function isClientRectVisualViewportBased() {
19787
- return /^((?!chrome|android).)*safari/i.test(getUAString());
19837
+ function isSafari() {
19838
+ if (typeof CSS === "undefined" || !CSS.supports)
19839
+ return false;
19840
+ return CSS.supports("-webkit-backdrop-filter", "none");
19788
19841
  }
19789
19842
  function isLastTraversableNode(node) {
19790
19843
  return ["html", "body", "#document"].includes(getNodeName(node));
@@ -19792,10 +19845,15 @@ function isLastTraversableNode(node) {
19792
19845
  const min = Math.min;
19793
19846
  const max = Math.max;
19794
19847
  const round = Math.round;
19848
+ const floor = Math.floor;
19849
+ const createEmptyCoords = (v) => ({
19850
+ x: v,
19851
+ y: v
19852
+ });
19795
19853
  function getCssDimensions(element) {
19796
19854
  const css = getComputedStyle$1(element);
19797
- let width = parseFloat(css.width);
19798
- let height = parseFloat(css.height);
19855
+ let width = parseFloat(css.width) || 0;
19856
+ let height = parseFloat(css.height) || 0;
19799
19857
  const hasOffset = isHTMLElement(element);
19800
19858
  const offsetWidth = hasOffset ? element.offsetWidth : width;
19801
19859
  const offsetHeight = hasOffset ? element.offsetHeight : height;
@@ -19807,29 +19865,25 @@ function getCssDimensions(element) {
19807
19865
  return {
19808
19866
  width,
19809
19867
  height,
19810
- fallback: shouldFallback
19868
+ $: shouldFallback
19811
19869
  };
19812
19870
  }
19813
19871
  function unwrapElement(element) {
19814
19872
  return !isElement(element) ? element.contextElement : element;
19815
19873
  }
19816
- const FALLBACK_SCALE = {
19817
- x: 1,
19818
- y: 1
19819
- };
19820
19874
  function getScale(element) {
19821
19875
  const domElement = unwrapElement(element);
19822
19876
  if (!isHTMLElement(domElement)) {
19823
- return FALLBACK_SCALE;
19877
+ return createEmptyCoords(1);
19824
19878
  }
19825
19879
  const rect = domElement.getBoundingClientRect();
19826
19880
  const {
19827
19881
  width,
19828
19882
  height,
19829
- fallback
19883
+ $
19830
19884
  } = getCssDimensions(domElement);
19831
- let x = (fallback ? round(rect.width) : rect.width) / width;
19832
- let y = (fallback ? round(rect.height) : rect.height) / height;
19885
+ let x = ($ ? round(rect.width) : rect.width) / width;
19886
+ let y = ($ ? round(rect.height) : rect.height) / height;
19833
19887
  if (!x || !Number.isFinite(x)) {
19834
19888
  x = 1;
19835
19889
  }
@@ -19841,8 +19895,25 @@ function getScale(element) {
19841
19895
  y
19842
19896
  };
19843
19897
  }
19844
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
19898
+ const noOffsets = /* @__PURE__ */ createEmptyCoords(0);
19899
+ function getVisualOffsets(element, isFixed, floatingOffsetParent) {
19845
19900
  var _win$visualViewport, _win$visualViewport2;
19901
+ if (isFixed === void 0) {
19902
+ isFixed = true;
19903
+ }
19904
+ if (!isSafari()) {
19905
+ return noOffsets;
19906
+ }
19907
+ const win = element ? getWindow(element) : window;
19908
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== win) {
19909
+ return noOffsets;
19910
+ }
19911
+ return {
19912
+ x: ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0,
19913
+ y: ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0
19914
+ };
19915
+ }
19916
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
19846
19917
  if (includeScale === void 0) {
19847
19918
  includeScale = false;
19848
19919
  }
@@ -19851,7 +19922,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
19851
19922
  }
19852
19923
  const clientRect = element.getBoundingClientRect();
19853
19924
  const domElement = unwrapElement(element);
19854
- let scale2 = FALLBACK_SCALE;
19925
+ let scale2 = createEmptyCoords(1);
19855
19926
  if (includeScale) {
19856
19927
  if (offsetParent) {
19857
19928
  if (isElement(offsetParent)) {
@@ -19861,28 +19932,27 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
19861
19932
  scale2 = getScale(element);
19862
19933
  }
19863
19934
  }
19864
- const win = domElement ? getWindow(domElement) : window;
19865
- const addVisualOffsets = isClientRectVisualViewportBased() && isFixedStrategy;
19866
- let x = (clientRect.left + (addVisualOffsets ? ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0 : 0)) / scale2.x;
19867
- let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale2.y;
19935
+ const visualOffsets = getVisualOffsets(domElement, isFixedStrategy, offsetParent);
19936
+ let x = (clientRect.left + visualOffsets.x) / scale2.x;
19937
+ let y = (clientRect.top + visualOffsets.y) / scale2.y;
19868
19938
  let width = clientRect.width / scale2.x;
19869
19939
  let height = clientRect.height / scale2.y;
19870
19940
  if (domElement) {
19871
- const win2 = getWindow(domElement);
19941
+ const win = getWindow(domElement);
19872
19942
  const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
19873
- let currentIFrame = win2.frameElement;
19874
- while (currentIFrame && offsetParent && offsetWin !== win2) {
19943
+ let currentIFrame = win.frameElement;
19944
+ while (currentIFrame && offsetParent && offsetWin !== win) {
19875
19945
  const iframeScale = getScale(currentIFrame);
19876
19946
  const iframeRect = currentIFrame.getBoundingClientRect();
19877
19947
  const css = getComputedStyle(currentIFrame);
19878
- iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
19879
- iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
19948
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
19949
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
19880
19950
  x *= iframeScale.x;
19881
19951
  y *= iframeScale.y;
19882
19952
  width *= iframeScale.x;
19883
19953
  height *= iframeScale.y;
19884
- x += iframeRect.x;
19885
- y += iframeRect.y;
19954
+ x += left;
19955
+ y += top;
19886
19956
  currentIFrame = getWindow(currentIFrame).frameElement;
19887
19957
  }
19888
19958
  }
@@ -19923,14 +19993,8 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
19923
19993
  scrollLeft: 0,
19924
19994
  scrollTop: 0
19925
19995
  };
19926
- let scale2 = {
19927
- x: 1,
19928
- y: 1
19929
- };
19930
- const offsets = {
19931
- x: 0,
19932
- y: 0
19933
- };
19996
+ let scale2 = createEmptyCoords(1);
19997
+ const offsets = createEmptyCoords(0);
19934
19998
  if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== "fixed") {
19935
19999
  if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
19936
20000
  scroll = getNodeScroll(offsetParent);
@@ -19980,7 +20044,7 @@ function getParentNode(node) {
19980
20044
  function getNearestOverflowAncestor(node) {
19981
20045
  const parentNode = getParentNode(node);
19982
20046
  if (isLastTraversableNode(parentNode)) {
19983
- return parentNode.ownerDocument.body;
20047
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
19984
20048
  }
19985
20049
  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
19986
20050
  return parentNode;
@@ -20011,7 +20075,7 @@ function getViewportRect(element, strategy) {
20011
20075
  if (visualViewport) {
20012
20076
  width = visualViewport.width;
20013
20077
  height = visualViewport.height;
20014
- const visualViewportBased = isClientRectVisualViewportBased();
20078
+ const visualViewportBased = isSafari();
20015
20079
  if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
20016
20080
  x = visualViewport.offsetLeft;
20017
20081
  y = visualViewport.offsetTop;
@@ -20028,10 +20092,7 @@ function getInnerBoundingClientRect(element, strategy) {
20028
20092
  const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
20029
20093
  const top = clientRect.top + element.clientTop;
20030
20094
  const left = clientRect.left + element.clientLeft;
20031
- const scale2 = isHTMLElement(element) ? getScale(element) : {
20032
- x: 1,
20033
- y: 1
20034
- };
20095
+ const scale2 = isHTMLElement(element) ? getScale(element) : createEmptyCoords(1);
20035
20096
  const width = element.clientWidth * scale2.x;
20036
20097
  const height = element.clientHeight * scale2.y;
20037
20098
  const x = left * scale2.x;
@@ -20052,19 +20113,22 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
20052
20113
  } else if (isElement(clippingAncestor)) {
20053
20114
  rect = getInnerBoundingClientRect(clippingAncestor, strategy);
20054
20115
  } else {
20055
- const mutableRect = {
20056
- ...clippingAncestor
20116
+ const visualOffsets = getVisualOffsets(element);
20117
+ rect = {
20118
+ ...clippingAncestor,
20119
+ x: clippingAncestor.x - visualOffsets.x,
20120
+ y: clippingAncestor.y - visualOffsets.y
20057
20121
  };
20058
- if (isClientRectVisualViewportBased()) {
20059
- var _win$visualViewport, _win$visualViewport2;
20060
- const win = getWindow(element);
20061
- mutableRect.x -= ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0;
20062
- mutableRect.y -= ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0;
20063
- }
20064
- rect = mutableRect;
20065
20122
  }
20066
20123
  return rectToClientRect(rect);
20067
20124
  }
20125
+ function hasFixedPositionAncestor(element, stopNode) {
20126
+ const parentNode = getParentNode(element);
20127
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
20128
+ return false;
20129
+ }
20130
+ return getComputedStyle$1(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
20131
+ }
20068
20132
  function getClippingElementAncestors(element, cache) {
20069
20133
  const cachedResult = cache.get(element);
20070
20134
  if (cachedResult) {
@@ -20076,11 +20140,11 @@ function getClippingElementAncestors(element, cache) {
20076
20140
  let currentNode = elementIsFixed ? getParentNode(element) : element;
20077
20141
  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
20078
20142
  const computedStyle = getComputedStyle$1(currentNode);
20079
- const containingBlock = isContainingBlock(currentNode);
20080
- if (computedStyle.position === "fixed") {
20143
+ const currentNodeIsContaining = isContainingBlock(currentNode);
20144
+ if (!currentNodeIsContaining && computedStyle.position === "fixed") {
20081
20145
  currentContainingBlockComputedStyle = null;
20082
20146
  }
20083
- const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
20147
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
20084
20148
  if (shouldDropCurrentNode) {
20085
20149
  result2 = result2.filter((ancestor) => ancestor !== currentNode);
20086
20150
  } else {
@@ -20156,21 +20220,19 @@ function getOffsetParent(element, polyfill) {
20156
20220
  function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
20157
20221
  const isOffsetParentAnElement = isHTMLElement(offsetParent);
20158
20222
  const documentElement = getDocumentElement(offsetParent);
20159
- const rect = getBoundingClientRect(element, true, strategy === "fixed", offsetParent);
20223
+ const isFixed = strategy === "fixed";
20224
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
20160
20225
  let scroll = {
20161
20226
  scrollLeft: 0,
20162
20227
  scrollTop: 0
20163
20228
  };
20164
- const offsets = {
20165
- x: 0,
20166
- y: 0
20167
- };
20168
- if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== "fixed") {
20229
+ const offsets = createEmptyCoords(0);
20230
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
20169
20231
  if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
20170
20232
  scroll = getNodeScroll(offsetParent);
20171
20233
  }
20172
20234
  if (isHTMLElement(offsetParent)) {
20173
- const offsetRect = getBoundingClientRect(offsetParent, true);
20235
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
20174
20236
  offsets.x = offsetRect.x + offsetParent.clientLeft;
20175
20237
  offsets.y = offsetRect.y + offsetParent.clientTop;
20176
20238
  } else if (documentElement) {
@@ -20212,34 +20274,92 @@ const platform = {
20212
20274
  getClientRects: (element) => Array.from(element.getClientRects()),
20213
20275
  isRTL: (element) => getComputedStyle$1(element).direction === "rtl"
20214
20276
  };
20277
+ function observeMove(element, onMove) {
20278
+ let io = null;
20279
+ let timeoutId;
20280
+ const root2 = getDocumentElement(element);
20281
+ function cleanup() {
20282
+ clearTimeout(timeoutId);
20283
+ io && io.disconnect();
20284
+ io = null;
20285
+ }
20286
+ function refresh(skip, threshold) {
20287
+ if (skip === void 0) {
20288
+ skip = false;
20289
+ }
20290
+ if (threshold === void 0) {
20291
+ threshold = 1;
20292
+ }
20293
+ cleanup();
20294
+ const {
20295
+ left,
20296
+ top,
20297
+ width,
20298
+ height
20299
+ } = element.getBoundingClientRect();
20300
+ if (!skip) {
20301
+ onMove();
20302
+ }
20303
+ if (!width || !height) {
20304
+ return;
20305
+ }
20306
+ const insetTop = floor(top);
20307
+ const insetRight = floor(root2.clientWidth - (left + width));
20308
+ const insetBottom = floor(root2.clientHeight - (top + height));
20309
+ const insetLeft = floor(left);
20310
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
20311
+ let isFirstUpdate = true;
20312
+ io = new IntersectionObserver((entries) => {
20313
+ const ratio = entries[0].intersectionRatio;
20314
+ if (ratio !== threshold) {
20315
+ if (!isFirstUpdate) {
20316
+ return refresh();
20317
+ }
20318
+ if (!ratio) {
20319
+ timeoutId = setTimeout(() => {
20320
+ refresh(false, 1e-7);
20321
+ }, 100);
20322
+ } else {
20323
+ refresh(false, ratio);
20324
+ }
20325
+ }
20326
+ isFirstUpdate = false;
20327
+ }, {
20328
+ rootMargin,
20329
+ threshold: max(0, min(1, threshold)) || 1
20330
+ });
20331
+ io.observe(element);
20332
+ }
20333
+ refresh(true);
20334
+ return cleanup;
20335
+ }
20215
20336
  function autoUpdate(reference, floating, update2, options) {
20216
20337
  if (options === void 0) {
20217
20338
  options = {};
20218
20339
  }
20219
20340
  const {
20220
- ancestorScroll: _ancestorScroll = true,
20341
+ ancestorScroll = true,
20221
20342
  ancestorResize = true,
20222
20343
  elementResize = true,
20344
+ layoutShift = typeof IntersectionObserver === "function",
20223
20345
  animationFrame = false
20224
20346
  } = options;
20225
- const ancestorScroll = _ancestorScroll && !animationFrame;
20226
- const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : [], ...getOverflowAncestors(floating)] : [];
20347
+ const referenceEl = unwrapElement(reference);
20348
+ const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
20227
20349
  ancestors.forEach((ancestor) => {
20228
20350
  ancestorScroll && ancestor.addEventListener("scroll", update2, {
20229
20351
  passive: true
20230
20352
  });
20231
20353
  ancestorResize && ancestor.addEventListener("resize", update2);
20232
20354
  });
20233
- let observer = null;
20355
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2) : null;
20356
+ let resizeObserver = null;
20234
20357
  if (elementResize) {
20235
- observer = new ResizeObserver(() => {
20236
- update2();
20237
- });
20238
- isElement(reference) && !animationFrame && observer.observe(reference);
20239
- if (!isElement(reference) && reference.contextElement && !animationFrame) {
20240
- observer.observe(reference.contextElement);
20358
+ resizeObserver = new ResizeObserver(update2);
20359
+ if (referenceEl && !animationFrame) {
20360
+ resizeObserver.observe(referenceEl);
20241
20361
  }
20242
- observer.observe(floating);
20362
+ resizeObserver.observe(floating);
20243
20363
  }
20244
20364
  let frameId;
20245
20365
  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
@@ -20256,13 +20376,13 @@ function autoUpdate(reference, floating, update2, options) {
20256
20376
  }
20257
20377
  update2();
20258
20378
  return () => {
20259
- var _observer;
20260
20379
  ancestors.forEach((ancestor) => {
20261
20380
  ancestorScroll && ancestor.removeEventListener("scroll", update2);
20262
20381
  ancestorResize && ancestor.removeEventListener("resize", update2);
20263
20382
  });
20264
- (_observer = observer) == null ? void 0 : _observer.disconnect();
20265
- observer = null;
20383
+ cleanupIo && cleanupIo();
20384
+ resizeObserver && resizeObserver.disconnect();
20385
+ resizeObserver = null;
20266
20386
  if (animationFrame) {
20267
20387
  cancelAnimationFrame(frameId);
20268
20388
  }
@@ -20360,13 +20480,11 @@ const Popover$1 = forwardRef((p, ref) => {
20360
20480
  defaultValue: props.defaultVisible,
20361
20481
  onChange: props.onVisibleChange
20362
20482
  });
20363
- useImperativeHandle(ref, () => {
20364
- return {
20365
- show: () => setVisible(true),
20366
- hide: () => setVisible(false),
20367
- visible
20368
- };
20369
- }, [visible]);
20483
+ useImperativeHandle(ref, () => ({
20484
+ show: () => setVisible(true),
20485
+ hide: () => setVisible(false),
20486
+ visible
20487
+ }), [visible]);
20370
20488
  const targetRef = useRef(null);
20371
20489
  const floatingRef = useRef(null);
20372
20490
  const arrowRef = useRef(null);
@@ -20541,7 +20659,6 @@ const MemoInput = React__default.memo(({
20541
20659
  const FormItemLayout = (props) => {
20542
20660
  var _a;
20543
20661
  const {
20544
- className,
20545
20662
  style,
20546
20663
  extra,
20547
20664
  label,
@@ -20583,7 +20700,7 @@ const FormItemLayout = (props) => {
20583
20700
  return null;
20584
20701
  }
20585
20702
  })();
20586
- const labelElement = label ? React__default.createElement("label", {
20703
+ const labelElement = !!label && React__default.createElement("label", {
20587
20704
  className: `${classPrefix$L}-label`,
20588
20705
  htmlFor
20589
20706
  }, label, requiredMark, help && React__default.createElement(Popover, {
@@ -20595,21 +20712,21 @@ const FormItemLayout = (props) => {
20595
20712
  onClick: (e2) => {
20596
20713
  e2.preventDefault();
20597
20714
  }
20598
- }, React__default.createElement(QuestionCircleOutline, null)))) : null;
20599
- const description = props.description || hasFeedback ? React__default.createElement(React__default.Fragment, null, props.description, hasFeedback && React__default.createElement(React__default.Fragment, null, props.errors.map((error, index2) => React__default.createElement("div", {
20715
+ }, React__default.createElement(QuestionCircleOutline, null))));
20716
+ const description = (!!props.description || hasFeedback) && React__default.createElement(React__default.Fragment, null, props.description, hasFeedback && React__default.createElement(React__default.Fragment, null, props.errors.map((error, index2) => React__default.createElement("div", {
20600
20717
  key: `error-${index2}`,
20601
20718
  className: `${classPrefix$L}-feedback-error`
20602
20719
  }, error)), props.warnings.map((warning3, index2) => React__default.createElement("div", {
20603
20720
  key: `warning-${index2}`,
20604
20721
  className: `${classPrefix$L}-feedback-warning`
20605
- }, warning3)))) : null;
20722
+ }, warning3))));
20606
20723
  return withNativeProps(props, React__default.createElement(List$1.Item, {
20607
20724
  style,
20608
20725
  title: layout === "vertical" && labelElement,
20609
20726
  prefix: layout === "horizontal" && labelElement,
20610
20727
  extra,
20611
20728
  description,
20612
- className: classNames(classPrefix$L, className, `${classPrefix$L}-${layout}`, {
20729
+ className: classNames(classPrefix$L, `${classPrefix$L}-${layout}`, {
20613
20730
  [`${classPrefix$L}-hidden`]: hidden,
20614
20731
  [`${classPrefix$L}-has-error`]: props.errors.length
20615
20732
  }),
@@ -20625,7 +20742,6 @@ const FormItemLayout = (props) => {
20625
20742
  };
20626
20743
  const FormItem = (props) => {
20627
20744
  const {
20628
- className,
20629
20745
  style,
20630
20746
  label,
20631
20747
  help,
@@ -20649,7 +20765,7 @@ const FormItem = (props) => {
20649
20765
  dependencies,
20650
20766
  clickable,
20651
20767
  arrow: arrow2
20652
- } = 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"]);
20768
+ } = 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"]);
20653
20769
  const {
20654
20770
  name: formName
20655
20771
  } = useContext(FormContext);
@@ -20697,7 +20813,6 @@ const FormItem = (props) => {
20697
20813
  return subWarnings;
20698
20814
  }, curWarnings);
20699
20815
  return withNativeProps(props, React__default.createElement(FormItemLayout, {
20700
- className,
20701
20816
  style,
20702
20817
  label,
20703
20818
  extra,
@@ -21426,9 +21541,7 @@ const ImageUploader$1 = (p) => {
21426
21541
  let files = [].slice.call(rawFiles);
21427
21542
  e2.target.value = "";
21428
21543
  if (props.beforeUpload) {
21429
- const postFiles = files.map((file) => {
21430
- return processFile(file, files);
21431
- });
21544
+ const postFiles = files.map((file) => processFile(file, files));
21432
21545
  yield Promise.all(postFiles).then((filesList) => {
21433
21546
  files = filesList.filter(Boolean);
21434
21547
  });
@@ -21902,7 +22015,10 @@ const Input$1 = forwardRef((p, ref) => {
21902
22015
  function checkValue() {
21903
22016
  let nextValue = value;
21904
22017
  if (props.type === "number") {
21905
- nextValue = nextValue && bound(parseFloat(nextValue), props.min, props.max).toString();
22018
+ const boundValue = nextValue && bound(parseFloat(nextValue), props.min, props.max).toString();
22019
+ if (Number(nextValue) !== Number(boundValue)) {
22020
+ nextValue = boundValue;
22021
+ }
21906
22022
  }
21907
22023
  if (nextValue !== value) {
21908
22024
  setValue2(nextValue);
@@ -22003,7 +22119,7 @@ const JumboTabs = (props) => {
22003
22119
  let firstActiveKey = null;
22004
22120
  const panes = [];
22005
22121
  traverseReactNode(props.children, (child, index2) => {
22006
- if (!React__default.isValidElement(child))
22122
+ if (!isValidElement(child))
22007
22123
  return;
22008
22124
  const key = child.key;
22009
22125
  if (typeof key !== "string")
@@ -22130,19 +22246,17 @@ const Modal = (p) => {
22130
22246
  direction: "vertical",
22131
22247
  block: true,
22132
22248
  className: classNames(cls("footer"), props.actions.length === 0 && cls("footer-empty"))
22133
- }, props.actions.map((action, index2) => {
22134
- return React__default.createElement(ModalActionButton, {
22135
- key: action.key,
22136
- action,
22137
- onAction: () => __awaiter(void 0, void 0, void 0, function* () {
22138
- var _a, _b, _c;
22139
- 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)]);
22140
- if (props.closeOnAction) {
22141
- (_c = props.onClose) === null || _c === void 0 ? void 0 : _c.call(props);
22142
- }
22143
- })
22144
- });
22145
- })));
22249
+ }, props.actions.map((action, index2) => React__default.createElement(ModalActionButton, {
22250
+ key: action.key,
22251
+ action,
22252
+ onAction: () => __awaiter(void 0, void 0, void 0, function* () {
22253
+ var _a, _b, _c;
22254
+ 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)]);
22255
+ if (props.closeOnAction) {
22256
+ (_c = props.onClose) === null || _c === void 0 ? void 0 : _c.call(props);
22257
+ }
22258
+ })
22259
+ }))));
22146
22260
  return React__default.createElement(CenterPopup, {
22147
22261
  className: classNames(cls(), props.className),
22148
22262
  style: props.style,
@@ -22900,7 +23014,7 @@ const PullToRefresh$1 = (p) => {
22900
23014
  enabled: !props.disabled,
22901
23015
  eventOptions: supportsPassive ? {
22902
23016
  passive: false
22903
- } : false
23017
+ } : void 0
22904
23018
  });
22905
23019
  const renderStatusText = () => {
22906
23020
  var _a2;
@@ -23014,6 +23128,7 @@ const Radio = (p) => {
23014
23128
  }, checked && React__default.createElement(CheckIcon, null));
23015
23129
  };
23016
23130
  return withNativeProps(props, React__default.createElement("label", {
23131
+ onClick: props.onClick,
23017
23132
  className: classNames(classPrefix$q, {
23018
23133
  [`${classPrefix$q}-checked`]: checked,
23019
23134
  [`${classPrefix$q}-disabled`]: disabled,
@@ -23143,9 +23258,9 @@ const Result$1 = (p) => {
23143
23258
  className: `${classPrefix$o}-icon`
23144
23259
  }, resultIcon), React__default.createElement("div", {
23145
23260
  className: `${classPrefix$o}-title`
23146
- }, title), description ? React__default.createElement("div", {
23261
+ }, title), !!description && React__default.createElement("div", {
23147
23262
  className: `${classPrefix$o}-description`
23148
- }, description) : null));
23263
+ }, description)));
23149
23264
  };
23150
23265
  const Result = Result$1;
23151
23266
  const resultPage = "";
@@ -23468,7 +23583,7 @@ const SideBar = (props) => {
23468
23583
  let firstActiveKey = null;
23469
23584
  const items = [];
23470
23585
  traverseReactNode(props.children, (child, index2) => {
23471
- if (!React__default.isValidElement(child))
23586
+ if (!isValidElement(child))
23472
23587
  return;
23473
23588
  const key = child.key;
23474
23589
  if (typeof key !== "string")
@@ -24493,11 +24608,7 @@ function InnerStepper(p, ref) {
24493
24608
  const formatValue = (value2) => {
24494
24609
  if (value2 === null)
24495
24610
  return "";
24496
- if (formatter) {
24497
- return formatter(value2);
24498
- } else {
24499
- return fixedValue(value2);
24500
- }
24611
+ return formatter ? formatter(value2) : fixedValue(value2);
24501
24612
  };
24502
24613
  const [mergedValue, setMergedValue] = _default(defaultValue, {
24503
24614
  value,
@@ -24688,14 +24799,14 @@ const Steps = (p) => {
24688
24799
  if (!React__default.isValidElement(child)) {
24689
24800
  return child;
24690
24801
  }
24691
- const props2 = child.props;
24692
- let status = props2.status || "wait";
24802
+ const childProps = child.props;
24803
+ let status = childProps.status || "wait";
24693
24804
  if (index2 < current) {
24694
- status = props2.status || "finish";
24805
+ status = childProps.status || "finish";
24695
24806
  } else if (index2 === current) {
24696
- status = props2.status || "process";
24807
+ status = childProps.status || "process";
24697
24808
  }
24698
- const icon = (_a = props2.icon) !== null && _a !== void 0 ? _a : defaultIcon;
24809
+ const icon = (_a = childProps.icon) !== null && _a !== void 0 ? _a : defaultIcon;
24699
24810
  return React__default.cloneElement(child, {
24700
24811
  status,
24701
24812
  icon
@@ -25334,7 +25445,7 @@ const TabBar = (p) => {
25334
25445
  let firstActiveKey = null;
25335
25446
  const items = [];
25336
25447
  traverseReactNode(props.children, (child, index2) => {
25337
- if (!React__default.isValidElement(child))
25448
+ if (!isValidElement(child))
25338
25449
  return;
25339
25450
  const key = child.key;
25340
25451
  if (typeof key !== "string")
@@ -25404,7 +25515,7 @@ const index$1 = attachPropertiesToComponent(TabBar, {
25404
25515
  const tag = "";
25405
25516
  const classPrefix$7 = `adm-tag`;
25406
25517
  const colorRecord = {
25407
- default: "#666666",
25518
+ default: "var(--adm-color-text-secondary, #666666)",
25408
25519
  primary: "var(--adm-color-primary, #1677ff)",
25409
25520
  success: "var(--adm-color-success, #00b578)",
25410
25521
  warning: "var(--adm-color-warning, #ff8f1f)",
@@ -25507,12 +25618,21 @@ const TextArea$1 = forwardRef((p, ref) => {
25507
25618
  className: `${classPrefix$6}-count`
25508
25619
  }, maxLength === void 0 ? valueLength : valueLength + "/" + maxLength);
25509
25620
  }
25621
+ let rows = props.rows;
25622
+ if (typeof autoSize === "object") {
25623
+ if (autoSize.maxRows && rows > autoSize.maxRows) {
25624
+ rows = autoSize.maxRows;
25625
+ }
25626
+ if (autoSize.minRows && rows < autoSize.minRows) {
25627
+ rows = autoSize.minRows;
25628
+ }
25629
+ }
25510
25630
  return withNativeProps(props, React__default.createElement("div", {
25511
25631
  className: classPrefix$6
25512
25632
  }, React__default.createElement("textarea", {
25513
25633
  ref: nativeTextAreaRef,
25514
25634
  className: `${classPrefix$6}-element`,
25515
- rows: props.rows,
25635
+ rows,
25516
25636
  value,
25517
25637
  placeholder: props.placeholder,
25518
25638
  onChange: (e2) => {
@@ -25549,7 +25669,7 @@ const TextArea$1 = forwardRef((p, ref) => {
25549
25669
  ref: hiddenTextAreaRef,
25550
25670
  className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
25551
25671
  value,
25552
- rows: props.rows,
25672
+ rows,
25553
25673
  "aria-hidden": true,
25554
25674
  readOnly: true
25555
25675
  })));
@@ -25986,13 +26106,9 @@ const Multiple = (p) => {
25986
26106
  }
25987
26107
  const isLeaf = deep === index2 + 1;
25988
26108
  if (isLeaf) {
25989
- return React__default.createElement(React__default.Fragment, null, renderSelectAllLeafItem(columnOptions, index2), columnOptions.map((option) => {
25990
- return renderLeafItem(option);
25991
- }));
26109
+ return React__default.createElement(React__default.Fragment, null, renderSelectAllLeafItem(columnOptions, index2), columnOptions.map((option) => renderLeafItem(option)));
25992
26110
  }
25993
- return React__default.createElement(React__default.Fragment, null, renderSelectAllItem(columnOptions, index2), columnOptions.map((option) => {
25994
- return renderItem(option);
25995
- }));
26111
+ return React__default.createElement(React__default.Fragment, null, renderSelectAllItem(columnOptions, index2), columnOptions.map((option) => renderItem(option)));
25996
26112
  };
25997
26113
  const renderColumns = () => {
25998
26114
  var _a;
@@ -26126,7 +26242,7 @@ const VirtualInput$1 = forwardRef((p, ref) => {
26126
26242
  },
26127
26243
  role: "button",
26128
26244
  "aria-label": locale.Input.clear
26129
- }, React__default.createElement(CloseCircleFill, null)), !value && React__default.createElement("div", {
26245
+ }, React__default.createElement(CloseCircleFill, null)), [void 0, null, ""].includes(value) && React__default.createElement("div", {
26130
26246
  className: `${classPrefix$2}-placeholder`
26131
26247
  }, props.placeholder), keyboardElement));
26132
26248
  });
@@ -26139,7 +26255,7 @@ const defaultProps$1 = {
26139
26255
  const WaterMark$1 = (p) => {
26140
26256
  const props = mergeProps(defaultProps$1, p);
26141
26257
  const {
26142
- zIndex = 2e3,
26258
+ zIndex,
26143
26259
  gapX = 24,
26144
26260
  gapY = 48,
26145
26261
  width = 120,
@@ -26244,31 +26360,27 @@ const Footer$1 = (p) => {
26244
26360
  className: classNames(classPrefix)
26245
26361
  }, label && React__default.createElement("div", {
26246
26362
  className: `${classPrefix}-label`
26247
- }, React__default.createElement(Divider, null, label)), links && links.length > 0 && React__default.createElement("div", {
26363
+ }, React__default.createElement(Divider, null, label)), !!(links === null || links === void 0 ? void 0 : links.length) && React__default.createElement("div", {
26248
26364
  className: `${classPrefix}-links`
26249
- }, links.map((link, index2) => {
26250
- return React__default.createElement(React__default.Fragment, {
26251
- key: index2
26252
- }, React__default.createElement("a", {
26253
- href: link.href,
26254
- rel: "noopener noreferrer",
26255
- onClick: (event) => clickLinkItem(link, index2, event)
26256
- }, link.text), index2 !== links.length - 1 && React__default.createElement(Divider, {
26257
- direction: "vertical"
26258
- }));
26259
- })), content && React__default.createElement("div", {
26365
+ }, links.map((link, index2) => React__default.createElement(React__default.Fragment, {
26366
+ key: index2
26367
+ }, React__default.createElement("a", {
26368
+ href: link.href,
26369
+ rel: "noopener noreferrer",
26370
+ onClick: (event) => clickLinkItem(link, index2, event)
26371
+ }, link.text), index2 !== links.length - 1 && React__default.createElement(Divider, {
26372
+ direction: "vertical"
26373
+ })))), content && React__default.createElement("div", {
26260
26374
  className: `${classPrefix}-content`
26261
26375
  }, content), chips && chips.length > 0 && React__default.createElement("div", {
26262
26376
  className: `${classPrefix}-chips`
26263
- }, chips.map((chip, index2) => {
26264
- return React__default.createElement("div", {
26265
- key: index2,
26266
- onClick: () => clickChipItem(chip, index2),
26267
- className: classNames(`${classPrefix}-chip`, {
26268
- [`${classPrefix}-chip-link`]: chip.type === "link"
26269
- })
26270
- }, chip.text);
26271
- }))));
26377
+ }, chips.map((chip, index2) => React__default.createElement("div", {
26378
+ key: index2,
26379
+ onClick: () => clickChipItem(chip, index2),
26380
+ className: classNames(`${classPrefix}-chip`, {
26381
+ [`${classPrefix}-chip-link`]: chip.type === "link"
26382
+ })
26383
+ }, chip.text)))));
26272
26384
  };
26273
26385
  const Footer = Footer$1;
26274
26386
  export {