antd-mobile 5.32.0 → 5.32.2

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 (366) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +385 -303
  2. package/2x/bundle/antd-mobile.cjs.js +9 -9
  3. package/2x/bundle/antd-mobile.es.development.js +385 -303
  4. package/2x/bundle/antd-mobile.es.js +5266 -5213
  5. package/2x/bundle/antd-mobile.umd.development.js +385 -303
  6. package/2x/bundle/antd-mobile.umd.js +9 -9
  7. package/2x/bundle/style.css +43 -35
  8. package/2x/cjs/components/action-sheet/action-sheet.css +1 -1
  9. package/2x/cjs/components/badge/badge.css +1 -1
  10. package/2x/cjs/components/button/button.css +2 -2
  11. package/2x/cjs/components/calendar/calendar.js +5 -1
  12. package/2x/cjs/components/cascader/cascader.d.ts +2 -2
  13. package/2x/cjs/components/cascader/index.d.ts +4 -4
  14. package/2x/cjs/components/cascader/prompt.d.ts +1 -1
  15. package/2x/cjs/components/cascader-view/cascader-view.d.ts +2 -1
  16. package/2x/cjs/components/center-popup/center-popup.js +6 -5
  17. package/2x/cjs/components/check-list/check-list-item.d.ts +2 -1
  18. package/2x/cjs/components/check-list/check-list.d.ts +4 -3
  19. package/2x/cjs/components/check-list/context.d.ts +4 -3
  20. package/2x/cjs/components/check-list/index.d.ts +1 -1
  21. package/2x/cjs/components/checkbox/checkbox.css +1 -1
  22. package/2x/cjs/components/collapse/collapse.js +27 -12
  23. package/2x/cjs/components/ellipsis/ellipsis.js +4 -5
  24. package/2x/cjs/components/error-block/create-error-block.js +4 -4
  25. package/2x/cjs/components/error-block/error-block.css +1 -1
  26. package/2x/cjs/components/floating-panel/floating-panel.js +8 -7
  27. package/2x/cjs/components/footer/footer.css +1 -1
  28. package/2x/cjs/components/form/form-item.d.ts +1 -1
  29. package/2x/cjs/components/form/form-item.js +6 -9
  30. package/2x/cjs/components/form/form.css +1 -1
  31. package/2x/cjs/components/form/index.css +1 -1
  32. package/2x/cjs/components/image-uploader/image-uploader.css +1 -1
  33. package/2x/cjs/components/image-viewer/image-viewer.css +1 -1
  34. package/2x/cjs/components/input/input.d.ts +2 -8
  35. package/2x/cjs/components/notice-bar/notice-bar.css +5 -5
  36. package/2x/cjs/components/number-keyboard/number-keyboard.css +2 -2
  37. package/2x/cjs/components/page-indicator/page-indicator.css +1 -1
  38. package/2x/cjs/components/passcode-input/passcode-input.css +1 -1
  39. package/2x/cjs/components/picker-view/wheel.js +61 -14
  40. package/2x/cjs/components/popover/popover-menu.css +2 -2
  41. package/2x/cjs/components/progress-bar/progress-bar.css +2 -2
  42. package/2x/cjs/components/progress-circle/progress-circle.css +1 -1
  43. package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
  44. package/2x/cjs/components/radio/radio.css +1 -1
  45. package/2x/cjs/components/rate/rate.css +3 -3
  46. package/2x/cjs/components/rate/rate.d.ts +1 -1
  47. package/2x/cjs/components/selector/selector.css +1 -1
  48. package/2x/cjs/components/steps/steps.css +3 -3
  49. package/2x/cjs/components/steps/steps.js +5 -5
  50. package/2x/cjs/components/swipe-action/swipe-action.d.ts +4 -3
  51. package/2x/cjs/components/tag/tag.js +1 -1
  52. package/2x/cjs/components/text-area/text-area.js +11 -2
  53. package/2x/cjs/components/toast/toast.css +2 -2
  54. package/2x/cjs/components/tree-select/tree-select.css +1 -1
  55. package/2x/cjs/components/water-mark/water-mark.js +1 -1
  56. package/2x/cjs/global/global.css +8 -0
  57. package/2x/cjs/global/theme-dark.css +3 -0
  58. package/2x/cjs/global/theme-default.css +4 -0
  59. package/2x/cjs/locales/base.d.ts +1 -1
  60. package/2x/cjs/locales/base.js +1 -1
  61. package/2x/cjs/locales/da-DK.d.ts +1 -1
  62. package/2x/cjs/locales/da-DK.js +1 -1
  63. package/2x/cjs/locales/en-US.d.ts +1 -1
  64. package/2x/cjs/locales/es-ES.d.ts +1 -1
  65. package/2x/cjs/locales/es-ES.js +1 -1
  66. package/2x/cjs/locales/fa-IR.d.ts +1 -1
  67. package/2x/cjs/locales/fa-IR.js +1 -1
  68. package/2x/cjs/locales/fr-FR.d.ts +1 -1
  69. package/2x/cjs/locales/fr-FR.js +1 -1
  70. package/2x/cjs/locales/id-ID.d.ts +1 -1
  71. package/2x/cjs/locales/id-ID.js +1 -1
  72. package/2x/cjs/locales/it-IT.d.ts +1 -1
  73. package/2x/cjs/locales/it-IT.js +1 -1
  74. package/2x/cjs/locales/ja-JP.d.ts +1 -1
  75. package/2x/cjs/locales/ja-JP.js +1 -1
  76. package/2x/cjs/locales/kk-KZ.d.ts +1 -1
  77. package/2x/cjs/locales/kk-KZ.js +1 -1
  78. package/2x/cjs/locales/ko-KR.d.ts +1 -1
  79. package/2x/cjs/locales/ko-KR.js +1 -1
  80. package/2x/cjs/locales/nb-NO.d.ts +1 -1
  81. package/2x/cjs/locales/nb-NO.js +1 -1
  82. package/2x/cjs/locales/nl-NL.d.ts +1 -1
  83. package/2x/cjs/locales/nl-NL.js +1 -1
  84. package/2x/cjs/locales/ru-RU.d.ts +1 -1
  85. package/2x/cjs/locales/ru-RU.js +1 -1
  86. package/2x/cjs/locales/zh-CN.d.ts +1 -1
  87. package/2x/cjs/locales/zh-CN.js +1 -1
  88. package/2x/cjs/locales/zh-HK.d.ts +1 -1
  89. package/2x/cjs/locales/zh-HK.js +1 -1
  90. package/2x/cjs/locales/zh-TW.d.ts +1 -1
  91. package/2x/cjs/locales/zh-TW.js +1 -1
  92. package/2x/cjs/utils/replace-message.d.ts +1 -0
  93. package/2x/cjs/utils/replace-message.js +13 -0
  94. package/2x/cjs/utils/use-lock-scroll.js +6 -2
  95. package/2x/es/components/action-sheet/action-sheet.css +1 -1
  96. package/2x/es/components/badge/badge.css +1 -1
  97. package/2x/es/components/button/button.css +2 -2
  98. package/2x/es/components/calendar/calendar.js +5 -1
  99. package/2x/es/components/cascader/cascader.d.ts +2 -2
  100. package/2x/es/components/cascader/index.d.ts +4 -4
  101. package/2x/es/components/cascader/prompt.d.ts +1 -1
  102. package/2x/es/components/cascader-view/cascader-view.d.ts +2 -1
  103. package/2x/es/components/center-popup/center-popup.js +6 -5
  104. package/2x/es/components/check-list/check-list-item.d.ts +2 -1
  105. package/2x/es/components/check-list/check-list.d.ts +4 -3
  106. package/2x/es/components/check-list/context.d.ts +4 -3
  107. package/2x/es/components/check-list/index.d.ts +1 -1
  108. package/2x/es/components/checkbox/checkbox.css +1 -1
  109. package/2x/es/components/collapse/collapse.js +27 -12
  110. package/2x/es/components/ellipsis/ellipsis.js +4 -5
  111. package/2x/es/components/error-block/create-error-block.js +4 -4
  112. package/2x/es/components/error-block/error-block.css +1 -1
  113. package/2x/es/components/floating-panel/floating-panel.js +8 -7
  114. package/2x/es/components/footer/footer.css +1 -1
  115. package/2x/es/components/form/form-item.d.ts +1 -1
  116. package/2x/es/components/form/form-item.js +6 -9
  117. package/2x/es/components/form/form.css +1 -1
  118. package/2x/es/components/form/index.css +1 -1
  119. package/2x/es/components/image-uploader/image-uploader.css +1 -1
  120. package/2x/es/components/image-viewer/image-viewer.css +1 -1
  121. package/2x/es/components/input/input.d.ts +2 -8
  122. package/2x/es/components/notice-bar/notice-bar.css +5 -5
  123. package/2x/es/components/number-keyboard/number-keyboard.css +2 -2
  124. package/2x/es/components/page-indicator/page-indicator.css +1 -1
  125. package/2x/es/components/passcode-input/passcode-input.css +1 -1
  126. package/2x/es/components/picker-view/wheel.js +61 -14
  127. package/2x/es/components/popover/popover-menu.css +2 -2
  128. package/2x/es/components/progress-bar/progress-bar.css +2 -2
  129. package/2x/es/components/progress-circle/progress-circle.css +1 -1
  130. package/2x/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
  131. package/2x/es/components/radio/radio.css +1 -1
  132. package/2x/es/components/rate/rate.css +3 -3
  133. package/2x/es/components/rate/rate.d.ts +1 -1
  134. package/2x/es/components/selector/selector.css +1 -1
  135. package/2x/es/components/steps/steps.css +3 -3
  136. package/2x/es/components/steps/steps.js +5 -5
  137. package/2x/es/components/swipe-action/swipe-action.d.ts +4 -3
  138. package/2x/es/components/tag/tag.js +1 -1
  139. package/2x/es/components/text-area/text-area.js +11 -2
  140. package/2x/es/components/toast/toast.css +2 -2
  141. package/2x/es/components/tree-select/tree-select.css +1 -1
  142. package/2x/es/components/water-mark/water-mark.js +1 -1
  143. package/2x/es/global/global.css +8 -0
  144. package/2x/es/global/theme-dark.css +3 -0
  145. package/2x/es/global/theme-default.css +4 -0
  146. package/2x/es/locales/base.d.ts +1 -1
  147. package/2x/es/locales/base.js +1 -1
  148. package/2x/es/locales/da-DK.d.ts +1 -1
  149. package/2x/es/locales/da-DK.js +1 -1
  150. package/2x/es/locales/en-US.d.ts +1 -1
  151. package/2x/es/locales/es-ES.d.ts +1 -1
  152. package/2x/es/locales/es-ES.js +1 -1
  153. package/2x/es/locales/fa-IR.d.ts +1 -1
  154. package/2x/es/locales/fa-IR.js +1 -1
  155. package/2x/es/locales/fr-FR.d.ts +1 -1
  156. package/2x/es/locales/fr-FR.js +1 -1
  157. package/2x/es/locales/id-ID.d.ts +1 -1
  158. package/2x/es/locales/id-ID.js +1 -1
  159. package/2x/es/locales/it-IT.d.ts +1 -1
  160. package/2x/es/locales/it-IT.js +1 -1
  161. package/2x/es/locales/ja-JP.d.ts +1 -1
  162. package/2x/es/locales/ja-JP.js +1 -1
  163. package/2x/es/locales/kk-KZ.d.ts +1 -1
  164. package/2x/es/locales/kk-KZ.js +1 -1
  165. package/2x/es/locales/ko-KR.d.ts +1 -1
  166. package/2x/es/locales/ko-KR.js +1 -1
  167. package/2x/es/locales/nb-NO.d.ts +1 -1
  168. package/2x/es/locales/nb-NO.js +1 -1
  169. package/2x/es/locales/nl-NL.d.ts +1 -1
  170. package/2x/es/locales/nl-NL.js +1 -1
  171. package/2x/es/locales/ru-RU.d.ts +1 -1
  172. package/2x/es/locales/ru-RU.js +1 -1
  173. package/2x/es/locales/zh-CN.d.ts +1 -1
  174. package/2x/es/locales/zh-CN.js +1 -1
  175. package/2x/es/locales/zh-HK.d.ts +1 -1
  176. package/2x/es/locales/zh-HK.js +1 -1
  177. package/2x/es/locales/zh-TW.d.ts +1 -1
  178. package/2x/es/locales/zh-TW.js +1 -1
  179. package/2x/es/utils/replace-message.d.ts +1 -0
  180. package/2x/es/utils/replace-message.js +7 -0
  181. package/2x/es/utils/use-lock-scroll.js +6 -2
  182. package/2x/package.json +1 -1
  183. package/bundle/antd-mobile.cjs.development.js +385 -303
  184. package/bundle/antd-mobile.cjs.js +9 -9
  185. package/bundle/antd-mobile.compatible.umd.js +1 -1
  186. package/bundle/antd-mobile.es.development.js +385 -303
  187. package/bundle/antd-mobile.es.js +5266 -5213
  188. package/bundle/antd-mobile.umd.development.js +385 -303
  189. package/bundle/antd-mobile.umd.js +9 -9
  190. package/bundle/style.css +1 -1
  191. package/cjs/components/action-sheet/action-sheet.css +1 -1
  192. package/cjs/components/badge/badge.css +1 -1
  193. package/cjs/components/button/button.css +2 -2
  194. package/cjs/components/calendar/calendar.js +5 -1
  195. package/cjs/components/cascader/cascader.d.ts +2 -2
  196. package/cjs/components/cascader/index.d.ts +4 -4
  197. package/cjs/components/cascader/prompt.d.ts +1 -1
  198. package/cjs/components/cascader-view/cascader-view.d.ts +2 -1
  199. package/cjs/components/center-popup/center-popup.js +6 -5
  200. package/cjs/components/check-list/check-list-item.d.ts +2 -1
  201. package/cjs/components/check-list/check-list.d.ts +4 -3
  202. package/cjs/components/check-list/context.d.ts +4 -3
  203. package/cjs/components/check-list/index.d.ts +1 -1
  204. package/cjs/components/checkbox/checkbox.css +1 -1
  205. package/cjs/components/collapse/collapse.js +27 -12
  206. package/cjs/components/ellipsis/ellipsis.js +4 -5
  207. package/cjs/components/error-block/create-error-block.js +4 -4
  208. package/cjs/components/error-block/error-block.css +1 -1
  209. package/cjs/components/floating-panel/floating-panel.js +8 -7
  210. package/cjs/components/footer/footer.css +1 -1
  211. package/cjs/components/form/form-item.d.ts +1 -1
  212. package/cjs/components/form/form-item.js +6 -9
  213. package/cjs/components/form/form.css +1 -1
  214. package/cjs/components/form/index.css +1 -1
  215. package/cjs/components/image-uploader/image-uploader.css +1 -1
  216. package/cjs/components/image-viewer/image-viewer.css +1 -1
  217. package/cjs/components/input/input.d.ts +2 -8
  218. package/cjs/components/notice-bar/notice-bar.css +5 -5
  219. package/cjs/components/number-keyboard/number-keyboard.css +2 -2
  220. package/cjs/components/page-indicator/page-indicator.css +1 -1
  221. package/cjs/components/passcode-input/passcode-input.css +1 -1
  222. package/cjs/components/picker-view/wheel.js +61 -14
  223. package/cjs/components/popover/popover-menu.css +2 -2
  224. package/cjs/components/progress-bar/progress-bar.css +2 -2
  225. package/cjs/components/progress-circle/progress-circle.css +1 -1
  226. package/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
  227. package/cjs/components/radio/radio.css +1 -1
  228. package/cjs/components/rate/rate.css +3 -3
  229. package/cjs/components/rate/rate.d.ts +1 -1
  230. package/cjs/components/selector/selector.css +1 -1
  231. package/cjs/components/steps/steps.css +3 -3
  232. package/cjs/components/steps/steps.js +5 -5
  233. package/cjs/components/swipe-action/swipe-action.d.ts +4 -3
  234. package/cjs/components/tag/tag.js +1 -1
  235. package/cjs/components/text-area/text-area.js +11 -2
  236. package/cjs/components/toast/toast.css +2 -2
  237. package/cjs/components/tree-select/tree-select.css +1 -1
  238. package/cjs/components/water-mark/water-mark.js +1 -1
  239. package/cjs/global/global.css +8 -0
  240. package/cjs/global/theme-dark.css +3 -0
  241. package/cjs/global/theme-default.css +4 -0
  242. package/cjs/locales/base.d.ts +1 -1
  243. package/cjs/locales/base.js +1 -1
  244. package/cjs/locales/da-DK.d.ts +1 -1
  245. package/cjs/locales/da-DK.js +1 -1
  246. package/cjs/locales/en-US.d.ts +1 -1
  247. package/cjs/locales/es-ES.d.ts +1 -1
  248. package/cjs/locales/es-ES.js +1 -1
  249. package/cjs/locales/fa-IR.d.ts +1 -1
  250. package/cjs/locales/fa-IR.js +1 -1
  251. package/cjs/locales/fr-FR.d.ts +1 -1
  252. package/cjs/locales/fr-FR.js +1 -1
  253. package/cjs/locales/id-ID.d.ts +1 -1
  254. package/cjs/locales/id-ID.js +1 -1
  255. package/cjs/locales/it-IT.d.ts +1 -1
  256. package/cjs/locales/it-IT.js +1 -1
  257. package/cjs/locales/ja-JP.d.ts +1 -1
  258. package/cjs/locales/ja-JP.js +1 -1
  259. package/cjs/locales/kk-KZ.d.ts +1 -1
  260. package/cjs/locales/kk-KZ.js +1 -1
  261. package/cjs/locales/ko-KR.d.ts +1 -1
  262. package/cjs/locales/ko-KR.js +1 -1
  263. package/cjs/locales/nb-NO.d.ts +1 -1
  264. package/cjs/locales/nb-NO.js +1 -1
  265. package/cjs/locales/nl-NL.d.ts +1 -1
  266. package/cjs/locales/nl-NL.js +1 -1
  267. package/cjs/locales/ru-RU.d.ts +1 -1
  268. package/cjs/locales/ru-RU.js +1 -1
  269. package/cjs/locales/zh-CN.d.ts +1 -1
  270. package/cjs/locales/zh-CN.js +1 -1
  271. package/cjs/locales/zh-HK.d.ts +1 -1
  272. package/cjs/locales/zh-HK.js +1 -1
  273. package/cjs/locales/zh-TW.d.ts +1 -1
  274. package/cjs/locales/zh-TW.js +1 -1
  275. package/cjs/utils/replace-message.d.ts +1 -0
  276. package/cjs/utils/replace-message.js +13 -0
  277. package/cjs/utils/use-lock-scroll.js +6 -2
  278. package/es/components/action-sheet/action-sheet.css +1 -1
  279. package/es/components/badge/badge.css +1 -1
  280. package/es/components/button/button.css +2 -2
  281. package/es/components/calendar/calendar.js +5 -1
  282. package/es/components/cascader/cascader.d.ts +2 -2
  283. package/es/components/cascader/index.d.ts +4 -4
  284. package/es/components/cascader/prompt.d.ts +1 -1
  285. package/es/components/cascader-view/cascader-view.d.ts +2 -1
  286. package/es/components/center-popup/center-popup.js +6 -5
  287. package/es/components/check-list/check-list-item.d.ts +2 -1
  288. package/es/components/check-list/check-list.d.ts +4 -3
  289. package/es/components/check-list/context.d.ts +4 -3
  290. package/es/components/check-list/index.d.ts +1 -1
  291. package/es/components/checkbox/checkbox.css +1 -1
  292. package/es/components/collapse/collapse.js +27 -12
  293. package/es/components/ellipsis/ellipsis.js +4 -5
  294. package/es/components/error-block/create-error-block.js +4 -4
  295. package/es/components/error-block/error-block.css +1 -1
  296. package/es/components/floating-panel/floating-panel.js +8 -7
  297. package/es/components/footer/footer.css +1 -1
  298. package/es/components/form/form-item.d.ts +1 -1
  299. package/es/components/form/form-item.js +6 -9
  300. package/es/components/form/form.css +1 -1
  301. package/es/components/form/index.css +1 -1
  302. package/es/components/image-uploader/image-uploader.css +1 -1
  303. package/es/components/image-viewer/image-viewer.css +1 -1
  304. package/es/components/input/input.d.ts +2 -8
  305. package/es/components/notice-bar/notice-bar.css +5 -5
  306. package/es/components/number-keyboard/number-keyboard.css +2 -2
  307. package/es/components/page-indicator/page-indicator.css +1 -1
  308. package/es/components/passcode-input/passcode-input.css +1 -1
  309. package/es/components/picker-view/wheel.js +61 -14
  310. package/es/components/popover/popover-menu.css +2 -2
  311. package/es/components/progress-bar/progress-bar.css +2 -2
  312. package/es/components/progress-circle/progress-circle.css +1 -1
  313. package/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
  314. package/es/components/radio/radio.css +1 -1
  315. package/es/components/rate/rate.css +3 -3
  316. package/es/components/rate/rate.d.ts +1 -1
  317. package/es/components/selector/selector.css +1 -1
  318. package/es/components/steps/steps.css +3 -3
  319. package/es/components/steps/steps.js +5 -5
  320. package/es/components/swipe-action/swipe-action.d.ts +4 -3
  321. package/es/components/tag/tag.js +1 -1
  322. package/es/components/text-area/text-area.js +11 -2
  323. package/es/components/toast/toast.css +2 -2
  324. package/es/components/tree-select/tree-select.css +1 -1
  325. package/es/components/water-mark/water-mark.js +1 -1
  326. package/es/global/global.css +8 -0
  327. package/es/global/theme-dark.css +3 -0
  328. package/es/global/theme-default.css +4 -0
  329. package/es/locales/base.d.ts +1 -1
  330. package/es/locales/base.js +1 -1
  331. package/es/locales/da-DK.d.ts +1 -1
  332. package/es/locales/da-DK.js +1 -1
  333. package/es/locales/en-US.d.ts +1 -1
  334. package/es/locales/es-ES.d.ts +1 -1
  335. package/es/locales/es-ES.js +1 -1
  336. package/es/locales/fa-IR.d.ts +1 -1
  337. package/es/locales/fa-IR.js +1 -1
  338. package/es/locales/fr-FR.d.ts +1 -1
  339. package/es/locales/fr-FR.js +1 -1
  340. package/es/locales/id-ID.d.ts +1 -1
  341. package/es/locales/id-ID.js +1 -1
  342. package/es/locales/it-IT.d.ts +1 -1
  343. package/es/locales/it-IT.js +1 -1
  344. package/es/locales/ja-JP.d.ts +1 -1
  345. package/es/locales/ja-JP.js +1 -1
  346. package/es/locales/kk-KZ.d.ts +1 -1
  347. package/es/locales/kk-KZ.js +1 -1
  348. package/es/locales/ko-KR.d.ts +1 -1
  349. package/es/locales/ko-KR.js +1 -1
  350. package/es/locales/nb-NO.d.ts +1 -1
  351. package/es/locales/nb-NO.js +1 -1
  352. package/es/locales/nl-NL.d.ts +1 -1
  353. package/es/locales/nl-NL.js +1 -1
  354. package/es/locales/ru-RU.d.ts +1 -1
  355. package/es/locales/ru-RU.js +1 -1
  356. package/es/locales/zh-CN.d.ts +1 -1
  357. package/es/locales/zh-CN.js +1 -1
  358. package/es/locales/zh-HK.d.ts +1 -1
  359. package/es/locales/zh-HK.js +1 -1
  360. package/es/locales/zh-TW.d.ts +1 -1
  361. package/es/locales/zh-TW.js +1 -1
  362. package/es/utils/replace-message.d.ts +1 -0
  363. package/es/utils/replace-message.js +7 -0
  364. package/es/utils/use-lock-scroll.js +6 -2
  365. package/package.json +1 -1
  366. package/umd/antd-mobile.js +1 -1
@@ -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,14 +9297,14 @@ 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);
9304
- const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
9307
+ const bodyCls = classNames(`${classPrefix$1m}-body`, props.bodyClassName, `${classPrefix$1m}-body-position-${props.position}`);
9305
9308
  const {
9306
9309
  locale
9307
9310
  } = useConfig();
@@ -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,6 +10104,12 @@ 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
10114
  if (selectionMode === void 0 || value === null)
10106
10115
  return null;
@@ -10113,7 +10122,7 @@ function convertPageToDayjs(page) {
10113
10122
  return dayjs().year(page.year).month(page.month - 1).date(1);
10114
10123
  }
10115
10124
  dayjs.extend(isoWeek);
10116
- const classPrefix$1b = "adm-calendar";
10125
+ const classPrefix$1d = "adm-calendar";
10117
10126
  const defaultProps$Y = {
10118
10127
  weekStartsOn: "Sunday",
10119
10128
  defaultValue: null,
@@ -10187,26 +10196,29 @@ const Calendar$1 = forwardRef((p, ref) => {
10187
10196
  setCurrent(nxtCurrent);
10188
10197
  };
10189
10198
  const header = React__default.createElement("div", {
10190
- className: `${classPrefix$1b}-header`
10199
+ className: `${classPrefix$1d}-header`
10191
10200
  }, React__default.createElement("a", {
10192
- className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-year`,
10201
+ className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-year`,
10193
10202
  onClick: () => {
10194
10203
  handlePageChange("subtract", 1, "year");
10195
10204
  }
10196
10205
  }, props.prevYearButton), React__default.createElement("a", {
10197
- className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-month`,
10206
+ className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-month`,
10198
10207
  onClick: () => {
10199
10208
  handlePageChange("subtract", 1, "month");
10200
10209
  }
10201
10210
  }, props.prevMonthButton), React__default.createElement("div", {
10202
- className: `${classPrefix$1b}-title`
10203
- }, locale.Calendar.renderYearAndMonth(current.year(), current.month() + 1)), React__default.createElement("a", {
10204
- 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`),
10205
10217
  onClick: () => {
10206
10218
  handlePageChange("add", 1, "month");
10207
10219
  }
10208
10220
  }, props.nextMonthButton), React__default.createElement("a", {
10209
- 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`),
10210
10222
  onClick: () => {
10211
10223
  handlePageChange("add", 1, "year");
10212
10224
  }
@@ -10241,13 +10253,13 @@ const Calendar$1 = forwardRef((p, ref) => {
10241
10253
  const disabled = props.shouldDisableDate ? props.shouldDisableDate(d.toDate()) : maxDay && d.isAfter(maxDay, "day") || minDay && d.isBefore(minDay, "day");
10242
10254
  cells.push(React__default.createElement("div", {
10243
10255
  key: d.valueOf(),
10244
- className: classNames(`${classPrefix$1b}-cell`, (disabled || !inThisMonth) && `${classPrefix$1b}-cell-disabled`, inThisMonth && {
10245
- [`${classPrefix$1b}-cell-today`]: d.isSame(today, "day"),
10246
- [`${classPrefix$1b}-cell-selected`]: isSelect,
10247
- [`${classPrefix$1b}-cell-selected-begin`]: isBegin,
10248
- [`${classPrefix$1b}-cell-selected-end`]: isEnd,
10249
- [`${classPrefix$1b}-cell-selected-row-begin`]: isSelectRowBegin,
10250
- [`${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
10251
10263
  }),
10252
10264
  onClick: () => {
10253
10265
  if (!props.selectionMode)
@@ -10294,25 +10306,25 @@ const Calendar$1 = forwardRef((p, ref) => {
10294
10306
  }
10295
10307
  }
10296
10308
  }, React__default.createElement("div", {
10297
- className: `${classPrefix$1b}-cell-top`
10309
+ className: `${classPrefix$1d}-cell-top`
10298
10310
  }, props.renderDate ? props.renderDate(d.toDate()) : d.date()), React__default.createElement("div", {
10299
- className: `${classPrefix$1b}-cell-bottom`
10311
+ className: `${classPrefix$1d}-cell-bottom`
10300
10312
  }, (_a = props.renderLabel) === null || _a === void 0 ? void 0 : _a.call(props, d.toDate()))));
10301
10313
  iterator = iterator.add(1, "day");
10302
10314
  }
10303
10315
  return cells;
10304
10316
  }
10305
10317
  const body = React__default.createElement("div", {
10306
- className: `${classPrefix$1b}-cells`
10318
+ className: `${classPrefix$1d}-cells`
10307
10319
  }, renderCells());
10308
10320
  const mark = React__default.createElement("div", {
10309
- className: `${classPrefix$1b}-mark`
10321
+ className: `${classPrefix$1d}-mark`
10310
10322
  }, markItems.map((item, index2) => React__default.createElement("div", {
10311
10323
  key: index2,
10312
- className: `${classPrefix$1b}-mark-cell`
10324
+ className: `${classPrefix$1d}-mark-cell`
10313
10325
  }, item)));
10314
10326
  return withNativeProps(props, React__default.createElement("div", {
10315
- className: classPrefix$1b
10327
+ className: classPrefix$1d
10316
10328
  }, header, mark, body));
10317
10329
  });
10318
10330
  const Calendar = Calendar$1;
@@ -10416,7 +10428,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
10416
10428
  };
10417
10429
  };
10418
10430
  const scrollMask = "";
10419
- const classPrefix$1a = `adm-scroll-mask`;
10431
+ const classPrefix$1c = `adm-scroll-mask`;
10420
10432
  const ScrollMask$1 = (props) => {
10421
10433
  const maskRef = useRef(null);
10422
10434
  const [{
@@ -10463,12 +10475,12 @@ const ScrollMask$1 = (props) => {
10463
10475
  }, []);
10464
10476
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(animated.div, {
10465
10477
  ref: maskRef,
10466
- className: classNames(classPrefix$1a, `${classPrefix$1a}-left`),
10478
+ className: classNames(classPrefix$1c, `${classPrefix$1c}-left`),
10467
10479
  style: {
10468
10480
  opacity: leftMaskOpacity
10469
10481
  }
10470
10482
  }), React__default.createElement(animated.div, {
10471
- className: classNames(classPrefix$1a, `${classPrefix$1a}-right`),
10483
+ className: classNames(classPrefix$1c, `${classPrefix$1c}-right`),
10472
10484
  style: {
10473
10485
  opacity: rightMaskOpacity
10474
10486
  }
@@ -10675,7 +10687,7 @@ function traverseReactNode(children, fn) {
10675
10687
  }
10676
10688
  handle(children);
10677
10689
  }
10678
- const classPrefix$19 = `adm-capsule-tabs`;
10690
+ const classPrefix$1b = `adm-capsule-tabs`;
10679
10691
  const CapsuleTab = () => null;
10680
10692
  const CapsuleTabs = (props) => {
10681
10693
  var _a;
@@ -10714,19 +10726,19 @@ const CapsuleTabs = (props) => {
10714
10726
  animate(true);
10715
10727
  }, rootRef);
10716
10728
  return withNativeProps(props, React__default.createElement("div", {
10717
- className: classPrefix$19,
10729
+ className: classPrefix$1b,
10718
10730
  ref: rootRef
10719
10731
  }, React__default.createElement("div", {
10720
- className: `${classPrefix$19}-header`
10732
+ className: `${classPrefix$1b}-header`
10721
10733
  }, React__default.createElement(ScrollMask, {
10722
10734
  scrollTrackRef: tabListContainerRef
10723
10735
  }), React__default.createElement(animated.div, {
10724
- className: `${classPrefix$19}-tab-list`,
10736
+ className: `${classPrefix$1b}-tab-list`,
10725
10737
  ref: tabListContainerRef,
10726
10738
  scrollLeft
10727
10739
  }, panes.map((pane) => withNativeProps(pane.props, React__default.createElement("div", {
10728
10740
  key: pane.key,
10729
- className: `${classPrefix$19}-tab-wrapper`
10741
+ className: `${classPrefix$1b}-tab-wrapper`
10730
10742
  }, React__default.createElement("div", {
10731
10743
  onClick: () => {
10732
10744
  const {
@@ -10739,9 +10751,9 @@ const CapsuleTabs = (props) => {
10739
10751
  }
10740
10752
  setActiveKey(key.toString());
10741
10753
  },
10742
- className: classNames(`${classPrefix$19}-tab`, {
10743
- [`${classPrefix$19}-tab-active`]: pane.key === activeKey,
10744
- [`${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
10745
10757
  })
10746
10758
  }, pane.props.title)))))), panes.map((pane) => {
10747
10759
  if (pane.props.children === void 0) {
@@ -10754,7 +10766,7 @@ const CapsuleTabs = (props) => {
10754
10766
  forceRender: pane.props.forceRender,
10755
10767
  destroyOnClose: pane.props.destroyOnClose
10756
10768
  }, React__default.createElement("div", {
10757
- className: `${classPrefix$19}-content`,
10769
+ className: `${classPrefix$1b}-content`,
10758
10770
  style: {
10759
10771
  display: active ? "block" : "none"
10760
10772
  }
@@ -10765,18 +10777,18 @@ const index$i = attachPropertiesToComponent(CapsuleTabs, {
10765
10777
  Tab: CapsuleTab
10766
10778
  });
10767
10779
  const card = "";
10768
- const classPrefix$18 = `adm-card`;
10780
+ const classPrefix$1a = `adm-card`;
10769
10781
  const Card$1 = (props) => {
10770
10782
  const renderHeader = () => {
10771
10783
  if (!(props.title || props.extra)) {
10772
10784
  return null;
10773
10785
  }
10774
10786
  return React__default.createElement("div", {
10775
- className: classNames(`${classPrefix$18}-header`, props.headerClassName),
10787
+ className: classNames(`${classPrefix$1a}-header`, props.headerClassName),
10776
10788
  style: props.headerStyle,
10777
10789
  onClick: props.onHeaderClick
10778
10790
  }, React__default.createElement("div", {
10779
- className: `${classPrefix$18}-header-title`
10791
+ className: `${classPrefix$1a}-header-title`
10780
10792
  }, props.title), props.extra);
10781
10793
  };
10782
10794
  const renderBody = () => {
@@ -10784,13 +10796,13 @@ const Card$1 = (props) => {
10784
10796
  return null;
10785
10797
  }
10786
10798
  return React__default.createElement("div", {
10787
- className: classNames(`${classPrefix$18}-body`, props.bodyClassName),
10799
+ className: classNames(`${classPrefix$1a}-body`, props.bodyClassName),
10788
10800
  style: props.bodyStyle,
10789
10801
  onClick: props.onBodyClick
10790
10802
  }, props.children);
10791
10803
  };
10792
10804
  return withNativeProps(props, React__default.createElement("div", {
10793
- className: classPrefix$18,
10805
+ className: classPrefix$1a,
10794
10806
  onClick: props.onClick
10795
10807
  }, renderHeader(), renderBody()));
10796
10808
  };
@@ -10840,7 +10852,7 @@ function measureCSSLength(raw) {
10840
10852
  return 0;
10841
10853
  }
10842
10854
  }
10843
- const classPrefix$17 = `adm-picker-view`;
10855
+ const classPrefix$19 = `adm-picker-view`;
10844
10856
  const Wheel = memo((props) => {
10845
10857
  const {
10846
10858
  value,
@@ -10907,17 +10919,66 @@ const Wheel = memo((props) => {
10907
10919
  return;
10908
10920
  onSelect(item.value);
10909
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
+ };
10910
10938
  const handleDrag = (state) => {
10911
10939
  draggingRef.current = true;
10912
10940
  const min2 = -((column.length - 1) * itemHeight.current);
10913
10941
  const max2 = 0;
10914
- 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) {
10915
10974
  draggingRef.current = false;
10916
- const position = state.offset[1] + state.velocity[1] * state.direction[1] * 50;
10917
- 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);
10918
10979
  scrollSelect(targetIndex);
10919
10980
  } else {
10920
- const position = state.offset[1];
10981
+ const position = scrollY + distance * whellDir;
10921
10982
  api.start({
10922
10983
  y: rubberbandIfOutOfBounds(position, min2, max2, itemHeight.current * 50, 0.2)
10923
10984
  });
@@ -10937,15 +10998,15 @@ const Wheel = memo((props) => {
10937
10998
  });
10938
10999
  useWheel((state) => {
10939
11000
  state.event.stopPropagation();
10940
- handleDrag(state);
11001
+ handleWheel(state);
10941
11002
  }, {
11003
+ target: props.mouseWheel ? rootRef : void 0,
10942
11004
  axis: "y",
10943
11005
  from: () => [0, y.get()],
10944
11006
  preventDefault: true,
10945
- target: props.mouseWheel ? rootRef : void 0,
10946
11007
  eventOptions: supportsPassive ? {
10947
11008
  passive: false
10948
- } : false
11009
+ } : void 0
10949
11010
  });
10950
11011
  let selectedIndex = null;
10951
11012
  function renderAccessible() {
@@ -10958,13 +11019,13 @@ const Wheel = memo((props) => {
10958
11019
  const previous = column[previousIndex];
10959
11020
  const next = column[nextIndex];
10960
11021
  return React__default.createElement("div", {
10961
- className: "adm-picker-view-column-accessible"
11022
+ className: `${classPrefix$19}-column-accessible`
10962
11023
  }, React__default.createElement("div", {
10963
- className: "adm-picker-view-column-accessible-current",
11024
+ className: `${classPrefix$19}-column-accessible-current`,
10964
11025
  role: "button",
10965
11026
  "aria-label": current ? `\u5F53\u524D\u9009\u62E9\u7684\u662F\uFF1A${current.label}` : "\u5F53\u524D\u672A\u9009\u62E9"
10966
11027
  }, "-"), React__default.createElement("div", {
10967
- className: "adm-picker-view-column-accessible-button",
11028
+ className: `${classPrefix$19}-column-accessible-button`,
10968
11029
  onClick: () => {
10969
11030
  if (!previous)
10970
11031
  return;
@@ -10973,7 +11034,7 @@ const Wheel = memo((props) => {
10973
11034
  role: previous ? "button" : "text",
10974
11035
  "aria-label": !previous ? "\u6CA1\u6709\u4E0A\u4E00\u9879" : `\u9009\u62E9\u4E0A\u4E00\u9879\uFF1A${previous.label}`
10975
11036
  }, "-"), React__default.createElement("div", {
10976
- className: "adm-picker-view-column-accessible-button",
11037
+ className: `${classPrefix$19}-column-accessible-button`,
10977
11038
  onClick: () => {
10978
11039
  if (!next)
10979
11040
  return;
@@ -10984,16 +11045,16 @@ const Wheel = memo((props) => {
10984
11045
  }, "-"));
10985
11046
  }
10986
11047
  return React__default.createElement("div", {
10987
- className: `${classPrefix$17}-column`
11048
+ className: `${classPrefix$19}-column`
10988
11049
  }, React__default.createElement("div", {
10989
- className: `${classPrefix$17}-item-height-measure`,
11050
+ className: `${classPrefix$19}-item-height-measure`,
10990
11051
  ref: itemHeightMeasureRef
10991
11052
  }), React__default.createElement(animated.div, {
10992
11053
  ref: rootRef,
10993
11054
  style: {
10994
11055
  translateY: y
10995
11056
  },
10996
- className: `${classPrefix$17}-column-wheel`,
11057
+ className: `${classPrefix$19}-column-wheel`,
10997
11058
  "aria-hidden": true
10998
11059
  }, column.map((item, index2) => {
10999
11060
  var _a;
@@ -11007,12 +11068,12 @@ const Wheel = memo((props) => {
11007
11068
  return React__default.createElement("div", {
11008
11069
  key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
11009
11070
  "data-selected": item.value === value,
11010
- className: `${classPrefix$17}-column-item`,
11071
+ className: `${classPrefix$19}-column-item`,
11011
11072
  onClick: handleClick,
11012
11073
  "aria-hidden": !selected,
11013
11074
  "aria-label": selected ? "active" : ""
11014
11075
  }, React__default.createElement("div", {
11015
- className: `${classPrefix$17}-column-item-label`
11076
+ className: `${classPrefix$19}-column-item-label`
11016
11077
  }, renderLabel(item)));
11017
11078
  })), renderAccessible());
11018
11079
  }, (prev, next) => {
@@ -11026,9 +11087,8 @@ const Wheel = memo((props) => {
11026
11087
  return false;
11027
11088
  if (prev.mouseWheel !== next.mouseWheel)
11028
11089
  return false;
11029
- if (!isEqual_1(prev.column, next.column)) {
11090
+ if (!isEqual_1(prev.column, next.column))
11030
11091
  return false;
11031
- }
11032
11092
  return true;
11033
11093
  });
11034
11094
  Wheel.displayName = "Wheel";
@@ -11236,7 +11296,7 @@ function subscribe(onStoreChange) {
11236
11296
  function useMotionReduced() {
11237
11297
  return shim.exports.useSyncExternalStore(subscribe, isMotionReduced, isMotionReduced);
11238
11298
  }
11239
- const classPrefix$16 = "adm-spin-loading";
11299
+ const classPrefix$18 = "adm-spin-loading";
11240
11300
  const colorRecord$2 = {
11241
11301
  default: "var(--adm-color-weak)",
11242
11302
  primary: "var(--adm-color-primary)",
@@ -11268,16 +11328,16 @@ const SpinLoading$1 = memo((p) => {
11268
11328
  }
11269
11329
  });
11270
11330
  return withNativeProps(props, React__default.createElement(animated.div, {
11271
- className: classPrefix$16,
11331
+ className: classPrefix$18,
11272
11332
  style: {
11273
11333
  "--color": (_a = colorRecord$2[props.color]) !== null && _a !== void 0 ? _a : props.color,
11274
11334
  "--percent": percent
11275
11335
  }
11276
11336
  }, React__default.createElement("svg", {
11277
- className: `${classPrefix$16}-svg`,
11337
+ className: `${classPrefix$18}-svg`,
11278
11338
  viewBox: "0 0 32 32"
11279
11339
  }, React__default.createElement(animated.circle, {
11280
- className: `${classPrefix$16}-fill`,
11340
+ className: `${classPrefix$18}-fill`,
11281
11341
  fill: "transparent",
11282
11342
  strokeWidth: "2",
11283
11343
  strokeDasharray: circumference,
@@ -11289,13 +11349,13 @@ const SpinLoading$1 = memo((p) => {
11289
11349
  }))));
11290
11350
  });
11291
11351
  const SpinLoading = SpinLoading$1;
11292
- const classPrefix$15 = `adm-picker-view`;
11352
+ const classPrefix$17 = `adm-picker-view`;
11293
11353
  const defaultProps$W = {
11294
11354
  defaultValue: [],
11295
11355
  renderLabel: defaultRenderLabel,
11296
11356
  mouseWheel: false,
11297
11357
  loadingContent: React__default.createElement("div", {
11298
- className: `${classPrefix$15}-loading-content`
11358
+ className: `${classPrefix$17}-loading-content`
11299
11359
  }, React__default.createElement(SpinLoading, null))
11300
11360
  };
11301
11361
  const PickerView$1 = memo((p) => {
@@ -11340,7 +11400,7 @@ const PickerView$1 = memo((p) => {
11340
11400
  });
11341
11401
  }, []);
11342
11402
  return withNativeProps(props, React__default.createElement("div", {
11343
- className: `${classPrefix$15}`
11403
+ className: `${classPrefix$17}`
11344
11404
  }, props.loading ? props.loadingContent : React__default.createElement(React__default.Fragment, null, columns.map((column, index2) => React__default.createElement(Wheel, {
11345
11405
  key: index2,
11346
11406
  index: index2,
@@ -11350,19 +11410,19 @@ const PickerView$1 = memo((p) => {
11350
11410
  renderLabel: props.renderLabel,
11351
11411
  mouseWheel: props.mouseWheel
11352
11412
  })), React__default.createElement("div", {
11353
- className: `${classPrefix$15}-mask`
11413
+ className: `${classPrefix$17}-mask`
11354
11414
  }, React__default.createElement("div", {
11355
- className: `${classPrefix$15}-mask-top`
11415
+ className: `${classPrefix$17}-mask-top`
11356
11416
  }), React__default.createElement("div", {
11357
- className: `${classPrefix$15}-mask-middle`
11417
+ className: `${classPrefix$17}-mask-middle`
11358
11418
  }), React__default.createElement("div", {
11359
- className: `${classPrefix$15}-mask-bottom`
11419
+ className: `${classPrefix$17}-mask-bottom`
11360
11420
  })))));
11361
11421
  });
11362
11422
  PickerView$1.displayName = "PickerView";
11363
11423
  const pickerView = "";
11364
11424
  const PickerView = PickerView$1;
11365
- const classPrefix$14 = `adm-picker`;
11425
+ const classPrefix$16 = `adm-picker`;
11366
11426
  const defaultProps$V = {
11367
11427
  defaultValue: [],
11368
11428
  closeOnMaskClick: true,
@@ -11428,22 +11488,22 @@ const Picker$1 = memo(forwardRef((p, ref) => {
11428
11488
  }
11429
11489
  });
11430
11490
  const pickerElement = withNativeProps(props, React__default.createElement("div", {
11431
- className: classPrefix$14
11491
+ className: classPrefix$16
11432
11492
  }, React__default.createElement("div", {
11433
- className: `${classPrefix$14}-header`
11493
+ className: `${classPrefix$16}-header`
11434
11494
  }, React__default.createElement("a", {
11435
11495
  role: "button",
11436
- className: `${classPrefix$14}-header-button`,
11496
+ className: `${classPrefix$16}-header-button`,
11437
11497
  onClick: () => {
11438
11498
  var _a2;
11439
11499
  (_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
11440
11500
  setVisible(false);
11441
11501
  }
11442
11502
  }, props.cancelText), React__default.createElement("div", {
11443
- className: `${classPrefix$14}-header-title`
11503
+ className: `${classPrefix$16}-header-title`
11444
11504
  }, props.title), React__default.createElement("a", {
11445
11505
  role: "button",
11446
- 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`),
11447
11507
  onClick: () => {
11448
11508
  if (props.loading)
11449
11509
  return;
@@ -11452,7 +11512,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
11452
11512
  },
11453
11513
  "aria-disabled": props.loading
11454
11514
  }, props.confirmText)), React__default.createElement("div", {
11455
- className: `${classPrefix$14}-body`
11515
+ className: `${classPrefix$16}-body`
11456
11516
  }, React__default.createElement(PickerView, {
11457
11517
  loading: props.loading,
11458
11518
  loadingContent: props.loadingContent,
@@ -11464,7 +11524,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
11464
11524
  }))));
11465
11525
  const popupElement = React__default.createElement(Popup, {
11466
11526
  style: props.popupStyle,
11467
- className: classNames(`${classPrefix$14}-popup`, props.popupClassName),
11527
+ className: classNames(`${classPrefix$16}-popup`, props.popupClassName),
11468
11528
  visible,
11469
11529
  position: "bottom",
11470
11530
  onMaskClick: () => {
@@ -11614,7 +11674,7 @@ const CascadePickerView$1 = (props) => {
11614
11674
  const CascadePickerView = CascadePickerView$1;
11615
11675
  const cascaderView = "";
11616
11676
  const tabs = "";
11617
- const classPrefix$13 = `adm-tabs`;
11677
+ const classPrefix$15 = `adm-tabs`;
11618
11678
  const Tab = () => {
11619
11679
  return null;
11620
11680
  };
@@ -11775,36 +11835,36 @@ const Tabs$1 = (p) => {
11775
11835
  updateMask(true);
11776
11836
  }, []);
11777
11837
  return withNativeProps(props, React__default.createElement("div", {
11778
- className: classPrefix$13
11838
+ className: classPrefix$15
11779
11839
  }, React__default.createElement("div", {
11780
- className: `${classPrefix$13}-header`
11840
+ className: `${classPrefix$15}-header`
11781
11841
  }, React__default.createElement(animated.div, {
11782
- className: classNames(`${classPrefix$13}-header-mask`, `${classPrefix$13}-header-mask-left`),
11842
+ className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-left`),
11783
11843
  style: {
11784
11844
  opacity: leftMaskOpacity
11785
11845
  }
11786
11846
  }), React__default.createElement(animated.div, {
11787
- className: classNames(`${classPrefix$13}-header-mask`, `${classPrefix$13}-header-mask-right`),
11847
+ className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-right`),
11788
11848
  style: {
11789
11849
  opacity: rightMaskOpacity
11790
11850
  }
11791
11851
  }), React__default.createElement(animated.div, {
11792
- className: `${classPrefix$13}-tab-list`,
11852
+ className: `${classPrefix$15}-tab-list`,
11793
11853
  ref: tabListContainerRef,
11794
11854
  scrollLeft,
11795
11855
  onScroll: updateMask,
11796
11856
  role: "tablist"
11797
11857
  }, React__default.createElement(animated.div, {
11798
11858
  ref: activeLineRef,
11799
- className: `${classPrefix$13}-tab-line`,
11859
+ className: `${classPrefix$15}-tab-line`,
11800
11860
  style: {
11801
11861
  width: props.activeLineMode === "fixed" ? "var(--fixed-active-line-width, 30px)" : width,
11802
11862
  x
11803
11863
  }
11804
11864
  }), panes.map((pane) => withNativeProps(pane.props, React__default.createElement("div", {
11805
11865
  key: pane.key,
11806
- className: classNames(`${classPrefix$13}-tab-wrapper`, {
11807
- [`${classPrefix$13}-tab-wrapper-stretch`]: props.stretch
11866
+ className: classNames(`${classPrefix$15}-tab-wrapper`, {
11867
+ [`${classPrefix$15}-tab-wrapper-stretch`]: props.stretch
11808
11868
  })
11809
11869
  }, React__default.createElement("div", {
11810
11870
  onClick: () => {
@@ -11818,9 +11878,9 @@ const Tabs$1 = (p) => {
11818
11878
  }
11819
11879
  setActiveKey(key.toString());
11820
11880
  },
11821
- className: classNames(`${classPrefix$13}-tab`, {
11822
- [`${classPrefix$13}-tab-active`]: pane.key === activeKey,
11823
- [`${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
11824
11884
  }),
11825
11885
  role: "tab",
11826
11886
  "aria-selected": pane.key === activeKey
@@ -11835,7 +11895,7 @@ const Tabs$1 = (p) => {
11835
11895
  forceRender: pane.props.forceRender,
11836
11896
  destroyOnClose: pane.props.destroyOnClose
11837
11897
  }, React__default.createElement("div", {
11838
- className: `${classPrefix$13}-content`,
11898
+ className: `${classPrefix$15}-content`,
11839
11899
  style: {
11840
11900
  display: active ? "block" : "none"
11841
11901
  }
@@ -11847,7 +11907,7 @@ const Tabs = attachPropertiesToComponent(Tabs$1, {
11847
11907
  });
11848
11908
  const checkList = "";
11849
11909
  const list = "";
11850
- const classPrefix$12 = `adm-list`;
11910
+ const classPrefix$14 = `adm-list`;
11851
11911
  const defaultProps$T = {
11852
11912
  mode: "default"
11853
11913
  };
@@ -11860,41 +11920,41 @@ const List$2 = forwardRef((p, ref) => {
11860
11920
  }
11861
11921
  }));
11862
11922
  return withNativeProps(props, React__default.createElement("div", {
11863
- className: classNames(classPrefix$12, `${classPrefix$12}-${props.mode}`),
11923
+ className: classNames(classPrefix$14, `${classPrefix$14}-${props.mode}`),
11864
11924
  ref: nativeElementRef
11865
11925
  }, props.header && React__default.createElement("div", {
11866
- className: `${classPrefix$12}-header`
11926
+ className: `${classPrefix$14}-header`
11867
11927
  }, props.header), React__default.createElement("div", {
11868
- className: `${classPrefix$12}-body`
11928
+ className: `${classPrefix$14}-body`
11869
11929
  }, React__default.createElement("div", {
11870
- className: `${classPrefix$12}-body-inner`
11930
+ className: `${classPrefix$14}-body-inner`
11871
11931
  }, props.children))));
11872
11932
  });
11873
11933
  function isNodeWithContent(node) {
11874
11934
  return node !== void 0 && node !== null && node !== false;
11875
11935
  }
11876
- const classPrefix$11 = `adm-list-item`;
11936
+ const classPrefix$13 = `adm-list-item`;
11877
11937
  const ListItem = (props) => {
11878
11938
  var _a;
11879
11939
  const clickable = (_a = props.clickable) !== null && _a !== void 0 ? _a : !!props.onClick;
11880
11940
  const arrow2 = props.arrow === void 0 ? clickable : props.arrow;
11881
11941
  const content = React__default.createElement("div", {
11882
- className: `${classPrefix$11}-content`
11942
+ className: `${classPrefix$13}-content`
11883
11943
  }, isNodeWithContent(props.prefix) && React__default.createElement("div", {
11884
- className: `${classPrefix$11}-content-prefix`
11944
+ className: `${classPrefix$13}-content-prefix`
11885
11945
  }, props.prefix), React__default.createElement("div", {
11886
- className: `${classPrefix$11}-content-main`
11946
+ className: `${classPrefix$13}-content-main`
11887
11947
  }, isNodeWithContent(props.title) && React__default.createElement("div", {
11888
- className: `${classPrefix$11}-title`
11948
+ className: `${classPrefix$13}-title`
11889
11949
  }, props.title), props.children, isNodeWithContent(props.description) && React__default.createElement("div", {
11890
- className: `${classPrefix$11}-description`
11950
+ className: `${classPrefix$13}-description`
11891
11951
  }, props.description)), isNodeWithContent(props.extra) && React__default.createElement("div", {
11892
- className: `${classPrefix$11}-content-extra`
11952
+ className: `${classPrefix$13}-content-extra`
11893
11953
  }, props.extra), isNodeWithContent(arrow2) && React__default.createElement("div", {
11894
- className: `${classPrefix$11}-content-arrow`
11954
+ className: `${classPrefix$13}-content-arrow`
11895
11955
  }, arrow2 === true ? React__default.createElement(RightOutline, null) : arrow2));
11896
11956
  return withNativeProps(props, React__default.createElement(clickable ? "a" : "div", {
11897
- 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`),
11898
11958
  onClick: props.disabled ? void 0 : props.onClick
11899
11959
  }, content));
11900
11960
  };
@@ -11902,7 +11962,7 @@ const List$1 = attachPropertiesToComponent(List$2, {
11902
11962
  Item: ListItem
11903
11963
  });
11904
11964
  const CheckListContext = createContext(null);
11905
- const classPrefix$10 = "adm-check-list";
11965
+ const classPrefix$12 = "adm-check-list";
11906
11966
  const defaultProps$S = {
11907
11967
  multiple: false,
11908
11968
  defaultValue: [],
@@ -11939,10 +11999,10 @@ const CheckList$1 = (p) => {
11939
11999
  }
11940
12000
  }, withNativeProps(props, React__default.createElement(List$1, {
11941
12001
  mode: props.mode,
11942
- className: classPrefix$10
12002
+ className: classPrefix$12
11943
12003
  }, props.children)));
11944
12004
  };
11945
- const classPrefix$$ = `adm-check-list-item`;
12005
+ const classPrefix$11 = `adm-check-list-item`;
11946
12006
  const CheckListItem = (props) => {
11947
12007
  const context = useContext(CheckListContext);
11948
12008
  if (context === null) {
@@ -11954,11 +12014,11 @@ const CheckListItem = (props) => {
11954
12014
  const defaultExtra = active ? context.activeIcon : null;
11955
12015
  const renderExtra = context.extra ? context.extra(active) : defaultExtra;
11956
12016
  const extra = React__default.createElement("div", {
11957
- className: `${classPrefix$$}-extra`
12017
+ className: `${classPrefix$11}-extra`
11958
12018
  }, renderExtra);
11959
12019
  return withNativeProps(props, React__default.createElement(List$1.Item, {
11960
12020
  title: props.title,
11961
- className: classNames(classPrefix$$, readOnly && `${classPrefix$$}-readonly`, active && `${classPrefix$$}-active`),
12021
+ className: classNames(classPrefix$11, readOnly && `${classPrefix$11}-readonly`, active && `${classPrefix$11}-active`),
11962
12022
  description: props.description,
11963
12023
  prefix: props.prefix,
11964
12024
  onClick: (e2) => {
@@ -12049,18 +12109,18 @@ function generateIntArray(from, to2) {
12049
12109
  }
12050
12110
  return array4;
12051
12111
  }
12052
- const classPrefix$_ = "adm-skeleton";
12112
+ const classPrefix$10 = "adm-skeleton";
12053
12113
  const Skeleton$1 = (props) => {
12054
12114
  return withNativeProps(props, React__default.createElement("div", {
12055
- className: classNames(classPrefix$_, {
12056
- [`${classPrefix$_}-animated`]: props.animated
12115
+ className: classNames(classPrefix$10, {
12116
+ [`${classPrefix$10}-animated`]: props.animated
12057
12117
  })
12058
12118
  }));
12059
12119
  };
12060
12120
  const SkeletonTitle = (props) => {
12061
12121
  return withNativeProps(props, React__default.createElement(Skeleton$1, {
12062
12122
  animated: props.animated,
12063
- className: `${classPrefix$_}-title`
12123
+ className: `${classPrefix$10}-title`
12064
12124
  }));
12065
12125
  };
12066
12126
  const defaultSkeletonParagraphProps = {
@@ -12070,11 +12130,11 @@ const SkeletonParagraph = (p) => {
12070
12130
  const props = mergeProps(defaultSkeletonParagraphProps, p);
12071
12131
  const keys2 = generateIntArray(1, props.lineCount);
12072
12132
  const node = React__default.createElement("div", {
12073
- className: `${classPrefix$_}-paragraph`
12133
+ className: `${classPrefix$10}-paragraph`
12074
12134
  }, keys2.map((key) => React__default.createElement(Skeleton$1, {
12075
12135
  key,
12076
12136
  animated: props.animated,
12077
- className: `${classPrefix$_}-paragraph-line`
12137
+ className: `${classPrefix$10}-paragraph-line`
12078
12138
  })));
12079
12139
  return withNativeProps(props, node);
12080
12140
  };
@@ -12082,7 +12142,7 @@ const Skeleton = attachPropertiesToComponent(Skeleton$1, {
12082
12142
  Title: SkeletonTitle,
12083
12143
  Paragraph: SkeletonParagraph
12084
12144
  });
12085
- const classPrefix$Z = `adm-cascader-view`;
12145
+ const classPrefix$$ = `adm-cascader-view`;
12086
12146
  const defaultProps$R = {
12087
12147
  defaultValue: []
12088
12148
  };
@@ -12146,7 +12206,7 @@ const CascaderView$1 = (p) => {
12146
12206
  };
12147
12207
  const whetherLoading = (options) => props.loading || options === optionSkeleton;
12148
12208
  return withNativeProps(props, React__default.createElement("div", {
12149
- className: classPrefix$Z
12209
+ className: classPrefix$$
12150
12210
  }, React__default.createElement(Tabs, {
12151
12211
  activeKey: tabActiveIndex.toString(),
12152
12212
  onChange: (key) => {
@@ -12154,30 +12214,30 @@ const CascaderView$1 = (p) => {
12154
12214
  setTabActiveIndex(activeIndex);
12155
12215
  },
12156
12216
  stretch: false,
12157
- className: `${classPrefix$Z}-tabs`
12217
+ className: `${classPrefix$$}-tabs`
12158
12218
  }, levels.map((level, index2) => {
12159
12219
  const selected = level.selected;
12160
12220
  return React__default.createElement(Tabs.Tab, {
12161
12221
  key: index2.toString(),
12162
12222
  title: React__default.createElement("div", {
12163
- className: `${classPrefix$Z}-header-title`
12223
+ className: `${classPrefix$$}-header-title`
12164
12224
  }, selected ? selected.label : typeof placeholder === "function" ? placeholder(index2) : placeholder),
12165
12225
  forceRender: true
12166
12226
  }, React__default.createElement("div", {
12167
- className: `${classPrefix$Z}-content`
12227
+ className: `${classPrefix$$}-content`
12168
12228
  }, whetherLoading(level.options) ? React__default.createElement("div", {
12169
- className: `${classPrefix$Z}-skeleton`
12229
+ className: `${classPrefix$$}-skeleton`
12170
12230
  }, React__default.createElement(Skeleton, {
12171
- className: `${classPrefix$Z}-skeleton-line-1`,
12231
+ className: `${classPrefix$$}-skeleton-line-1`,
12172
12232
  animated: true
12173
12233
  }), React__default.createElement(Skeleton, {
12174
- className: `${classPrefix$Z}-skeleton-line-2`,
12234
+ className: `${classPrefix$$}-skeleton-line-2`,
12175
12235
  animated: true
12176
12236
  }), React__default.createElement(Skeleton, {
12177
- className: `${classPrefix$Z}-skeleton-line-3`,
12237
+ className: `${classPrefix$$}-skeleton-line-3`,
12178
12238
  animated: true
12179
12239
  }), React__default.createElement(Skeleton, {
12180
- className: `${classPrefix$Z}-skeleton-line-4`,
12240
+ className: `${classPrefix$$}-skeleton-line-4`,
12181
12241
  animated: true
12182
12242
  })) : React__default.createElement(CheckList, {
12183
12243
  value: [value[index2]],
@@ -12189,8 +12249,8 @@ const CascaderView$1 = (p) => {
12189
12249
  value: option.value,
12190
12250
  key: option.value,
12191
12251
  disabled: option.disabled,
12192
- className: classNames(`${classPrefix$Z}-item`, {
12193
- [`${classPrefix$Z}-item-active`]: active
12252
+ className: classNames(`${classPrefix$$}-item`, {
12253
+ [`${classPrefix$$}-item-active`]: active
12194
12254
  })
12195
12255
  }, option.label);
12196
12256
  }))));
@@ -12199,7 +12259,7 @@ const CascaderView$1 = (p) => {
12199
12259
  const CascaderView = attachPropertiesToComponent(CascaderView$1, {
12200
12260
  optionSkeleton
12201
12261
  });
12202
- const classPrefix$Y = `adm-cascader`;
12262
+ const classPrefix$_ = `adm-cascader`;
12203
12263
  const defaultProps$Q = {
12204
12264
  defaultValue: [],
12205
12265
  destroyOnClose: true,
@@ -12251,26 +12311,26 @@ const Cascader = forwardRef((p, ref) => {
12251
12311
  }
12252
12312
  }, [visible, value]);
12253
12313
  const cascaderElement = withNativeProps(props, React__default.createElement("div", {
12254
- className: classPrefix$Y
12314
+ className: classPrefix$_
12255
12315
  }, React__default.createElement("div", {
12256
- className: `${classPrefix$Y}-header`
12316
+ className: `${classPrefix$_}-header`
12257
12317
  }, React__default.createElement("a", {
12258
- className: `${classPrefix$Y}-header-button`,
12318
+ className: `${classPrefix$_}-header-button`,
12259
12319
  onClick: () => {
12260
12320
  var _a2;
12261
12321
  (_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
12262
12322
  setVisible(false);
12263
12323
  }
12264
12324
  }, props.cancelText), React__default.createElement("div", {
12265
- className: `${classPrefix$Y}-header-title`
12325
+ className: `${classPrefix$_}-header-title`
12266
12326
  }, props.title), React__default.createElement("a", {
12267
- className: `${classPrefix$Y}-header-button`,
12327
+ className: `${classPrefix$_}-header-button`,
12268
12328
  onClick: () => {
12269
12329
  setValue2(innerValue, true);
12270
12330
  setVisible(false);
12271
12331
  }
12272
12332
  }, props.confirmText)), React__default.createElement("div", {
12273
- className: `${classPrefix$Y}-body`
12333
+ className: `${classPrefix$_}-body`
12274
12334
  }, React__default.createElement(CascaderView, Object.assign({}, props, {
12275
12335
  value: innerValue,
12276
12336
  onChange: (val, ext) => {
@@ -12335,6 +12395,7 @@ const index$g = attachPropertiesToComponent(Cascader, {
12335
12395
  optionSkeleton
12336
12396
  });
12337
12397
  const centerPopup = "";
12398
+ const classPrefix$Z = "adm-center-popup";
12338
12399
  const defaultProps$P = Object.assign(Object.assign({}, defaultPopupBaseProps), {
12339
12400
  getContainer: null
12340
12401
  });
@@ -12372,11 +12433,11 @@ const CenterPopup$1 = (p) => {
12372
12433
  useLockScroll(ref, props.disableBodyScroll && active);
12373
12434
  const maskVisible = useInnerVisible(active && props.visible);
12374
12435
  const body = React__default.createElement("div", {
12375
- className: classNames("adm-center-popup-body", props.bodyClassName),
12436
+ className: classNames(`${classPrefix$Z}-body`, props.bodyClassName),
12376
12437
  style: props.bodyStyle
12377
12438
  }, props.children);
12378
12439
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement("div", {
12379
- className: "adm-center-popup",
12440
+ className: classPrefix$Z,
12380
12441
  style: {
12381
12442
  display: active ? void 0 : "none",
12382
12443
  pointerEvents: active ? void 0 : "none"
@@ -12393,18 +12454,18 @@ const CenterPopup$1 = (p) => {
12393
12454
  }
12394
12455
  },
12395
12456
  style: props.maskStyle,
12396
- className: classNames("adm-center-popup-mask", props.maskClassName),
12457
+ className: classNames(`${classPrefix$Z}-mask`, props.maskClassName),
12397
12458
  disableBodyScroll: false,
12398
12459
  stopPropagation: props.stopPropagation
12399
12460
  }), React__default.createElement("div", {
12400
- className: "adm-center-popup-wrap",
12461
+ className: `${classPrefix$Z}-wrap`,
12401
12462
  role: props.role,
12402
12463
  "aria-label": props["aria-label"]
12403
12464
  }, React__default.createElement(animated.div, {
12404
12465
  style,
12405
12466
  ref
12406
12467
  }, props.showCloseButton && React__default.createElement("a", {
12407
- className: classNames("adm-center-popup-close", "adm-plain-anchor"),
12468
+ className: classNames(`${classPrefix$Z}-close`, "adm-plain-anchor"),
12408
12469
  onClick: () => {
12409
12470
  var _a;
12410
12471
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -12490,7 +12551,7 @@ const NativeInput = (props) => {
12490
12551
  id: props.id
12491
12552
  });
12492
12553
  };
12493
- const classPrefix$X = `adm-checkbox`;
12554
+ const classPrefix$Y = `adm-checkbox`;
12494
12555
  const defaultProps$N = {
12495
12556
  defaultChecked: false,
12496
12557
  indeterminate: false
@@ -12542,20 +12603,20 @@ const Checkbox$1 = forwardRef((p, ref) => {
12542
12603
  const renderIcon = () => {
12543
12604
  if (props.icon) {
12544
12605
  return React__default.createElement("div", {
12545
- className: `${classPrefix$X}-custom-icon`
12606
+ className: `${classPrefix$Y}-custom-icon`
12546
12607
  }, props.icon(checked, props.indeterminate));
12547
12608
  }
12548
12609
  return React__default.createElement("div", {
12549
- className: `${classPrefix$X}-icon`
12610
+ className: `${classPrefix$Y}-icon`
12550
12611
  }, props.indeterminate ? React__default.createElement(IndeterminateIcon, null) : checked && React__default.createElement(CheckIcon, null));
12551
12612
  };
12552
12613
  return withNativeProps(props, React__default.createElement("label", {
12553
12614
  onClick: props.onClick,
12554
- className: classNames(classPrefix$X, {
12555
- [`${classPrefix$X}-checked`]: checked && !props.indeterminate,
12556
- [`${classPrefix$X}-indeterminate`]: props.indeterminate,
12557
- [`${classPrefix$X}-disabled`]: disabled,
12558
- [`${classPrefix$X}-block`]: props.block
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
12559
12620
  })
12560
12621
  }, React__default.createElement(NativeInput, {
12561
12622
  type: "checkbox",
@@ -12564,14 +12625,14 @@ const Checkbox$1 = forwardRef((p, ref) => {
12564
12625
  disabled,
12565
12626
  id: props.id
12566
12627
  }), renderIcon(), props.children && React__default.createElement("div", {
12567
- className: `${classPrefix$X}-content`
12628
+ className: `${classPrefix$Y}-content`
12568
12629
  }, props.children)));
12569
12630
  });
12570
12631
  const Checkbox = attachPropertiesToComponent(Checkbox$1, {
12571
12632
  Group: Group$1
12572
12633
  });
12573
12634
  const collapse = "";
12574
- const classPrefix$W = `adm-collapse`;
12635
+ const classPrefix$X = `adm-collapse`;
12575
12636
  const CollapsePanel = () => {
12576
12637
  return null;
12577
12638
  };
@@ -12625,8 +12686,8 @@ const CollapsePanelContent = (props) => {
12625
12686
  }
12626
12687
  }, [visible]);
12627
12688
  return React__default.createElement(animated.div, {
12628
- className: classNames(`${classPrefix$W}-panel-content`, {
12629
- [`${classPrefix$W}-panel-content-active`]: visible
12689
+ className: classNames(`${classPrefix$X}-panel-content`, {
12690
+ [`${classPrefix$X}-panel-content-active`]: visible
12630
12691
  }),
12631
12692
  style: {
12632
12693
  height: height.to((v) => {
@@ -12638,12 +12699,11 @@ const CollapsePanelContent = (props) => {
12638
12699
  })
12639
12700
  }
12640
12701
  }, React__default.createElement("div", {
12641
- className: `${classPrefix$W}-panel-content-inner`,
12702
+ className: `${classPrefix$X}-panel-content-inner`,
12642
12703
  ref: innerRef
12643
12704
  }, React__default.createElement(List$1.Item, null, shouldRender && props.children)));
12644
12705
  };
12645
12706
  const Collapse = (props) => {
12646
- var _a;
12647
12707
  const panels = [];
12648
12708
  traverseReactNode(props.children, (child) => {
12649
12709
  if (!isValidElement(child))
@@ -12653,26 +12713,42 @@ const Collapse = (props) => {
12653
12713
  return;
12654
12714
  panels.push(child);
12655
12715
  });
12656
- const [activeKey, setActiveKey] = usePropsValue(props.accordion ? {
12657
- value: props.activeKey === void 0 ? void 0 : props.activeKey === null ? [] : [props.activeKey],
12658
- defaultValue: props.defaultActiveKey === void 0 || props.defaultActiveKey === null ? [] : [props.defaultActiveKey],
12659
- onChange: (v) => {
12660
- var _a2, _b;
12661
- (_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
+ };
12662
12724
  }
12663
- } : {
12664
- value: props.activeKey,
12665
- defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
12666
- onChange: props.onChange
12667
- });
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());
12668
12744
  const activeKeyList = activeKey === null ? [] : Array.isArray(activeKey) ? activeKey : [activeKey];
12669
12745
  return withNativeProps(props, React__default.createElement("div", {
12670
- className: classPrefix$W
12746
+ className: classPrefix$X
12671
12747
  }, React__default.createElement(List$1, null, panels.map((panel) => {
12672
12748
  const key = panel.key;
12673
12749
  const active = activeKeyList.includes(key);
12674
12750
  function handleClick(event) {
12675
- var _a2, _b;
12751
+ var _a, _b;
12676
12752
  if (props.accordion) {
12677
12753
  if (active) {
12678
12754
  setActiveKey([]);
@@ -12686,7 +12762,7 @@ const Collapse = (props) => {
12686
12762
  setActiveKey([...activeKeyList, key]);
12687
12763
  }
12688
12764
  }
12689
- (_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);
12690
12766
  }
12691
12767
  const renderArrow = () => {
12692
12768
  let arrow2 = React__default.createElement(DownOutline, null);
@@ -12697,15 +12773,15 @@ const Collapse = (props) => {
12697
12773
  arrow2 = panel.props.arrow;
12698
12774
  }
12699
12775
  return typeof arrow2 === "function" ? arrow2(active) : React__default.createElement("div", {
12700
- className: classNames(`${classPrefix$W}-arrow`, {
12701
- [`${classPrefix$W}-arrow-active`]: active
12776
+ className: classNames(`${classPrefix$X}-arrow`, {
12777
+ [`${classPrefix$X}-arrow-active`]: active
12702
12778
  })
12703
12779
  }, arrow2);
12704
12780
  };
12705
12781
  return React__default.createElement(React__default.Fragment, {
12706
12782
  key
12707
12783
  }, withNativeProps(panel.props, React__default.createElement(List$1.Item, {
12708
- className: `${classPrefix$W}-panel-header`,
12784
+ className: `${classPrefix$X}-panel-header`,
12709
12785
  onClick: handleClick,
12710
12786
  disabled: panel.props.disabled,
12711
12787
  arrow: renderArrow()
@@ -13346,7 +13422,7 @@ const index$d = attachPropertiesToComponent(Dialog, {
13346
13422
  clear: clear$2
13347
13423
  });
13348
13424
  const divider = "";
13349
- const classPrefix$V = `adm-divider`;
13425
+ const classPrefix$W = `adm-divider`;
13350
13426
  const defaultProps$I = {
13351
13427
  contentPosition: "center",
13352
13428
  direction: "horizontal"
@@ -13354,30 +13430,30 @@ const defaultProps$I = {
13354
13430
  const Divider$1 = (p) => {
13355
13431
  const props = mergeProps(defaultProps$I, p);
13356
13432
  return withNativeProps(props, React__default.createElement("div", {
13357
- 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}`)
13358
13434
  }, props.children && React__default.createElement("div", {
13359
- className: `${classPrefix$V}-content`
13435
+ className: `${classPrefix$W}-content`
13360
13436
  }, props.children)));
13361
13437
  };
13362
13438
  const Divider = Divider$1;
13363
13439
  const dropdown = "";
13364
- const classPrefix$U = `adm-dropdown-item`;
13440
+ const classPrefix$V = `adm-dropdown-item`;
13365
13441
  const Item = (props) => {
13366
13442
  var _a;
13367
- const cls2 = classNames(classPrefix$U, {
13368
- [`${classPrefix$U}-active`]: props.active,
13369
- [`${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
13370
13446
  });
13371
13447
  return withNativeProps(props, React__default.createElement("div", {
13372
13448
  className: cls2,
13373
13449
  onClick: props.onClick
13374
13450
  }, React__default.createElement("div", {
13375
- className: `${classPrefix$U}-title`
13451
+ className: `${classPrefix$V}-title`
13376
13452
  }, React__default.createElement("span", {
13377
- className: `${classPrefix$U}-title-text`
13453
+ className: `${classPrefix$V}-title-text`
13378
13454
  }, props.title), React__default.createElement("span", {
13379
- className: classNames(`${classPrefix$U}-title-arrow`, {
13380
- [`${classPrefix$U}-title-arrow-active`]: props.active
13455
+ className: classNames(`${classPrefix$V}-title-arrow`, {
13456
+ [`${classPrefix$V}-title-arrow-active`]: props.active
13381
13457
  })
13382
13458
  }, props.arrow === void 0 ? React__default.createElement(DownFill, null) : props.arrow))));
13383
13459
  };
@@ -13387,15 +13463,15 @@ const ItemChildrenWrap = (props) => {
13387
13463
  active = false
13388
13464
  } = props;
13389
13465
  const shouldRender = useShouldRender(active, props.forceRender, props.destroyOnClose);
13390
- const cls2 = classNames(`${classPrefix$U}-content`, {
13391
- [`${classPrefix$U}-content-hidden`]: !active
13466
+ const cls2 = classNames(`${classPrefix$V}-content`, {
13467
+ [`${classPrefix$V}-content-hidden`]: !active
13392
13468
  });
13393
13469
  return shouldRender ? React__default.createElement("div", {
13394
13470
  className: cls2,
13395
13471
  onClick: props.onClick
13396
13472
  }, props.children) : null;
13397
13473
  };
13398
- const classPrefix$T = `adm-dropdown`;
13474
+ const classPrefix$U = `adm-dropdown`;
13399
13475
  const defaultProps$H = {
13400
13476
  defaultActiveKey: null,
13401
13477
  closeOnMaskClick: true,
@@ -13459,20 +13535,20 @@ const Dropdown = forwardRef((p, ref) => {
13459
13535
  }
13460
13536
  }), [setValue2]);
13461
13537
  return withNativeProps(props, React__default.createElement("div", {
13462
- className: classNames(classPrefix$T, {
13463
- [`${classPrefix$T}-open`]: !!value
13538
+ className: classNames(classPrefix$U, {
13539
+ [`${classPrefix$U}-open`]: !!value
13464
13540
  }),
13465
13541
  ref: containerRef
13466
13542
  }, React__default.createElement("div", {
13467
- className: `${classPrefix$T}-nav`,
13543
+ className: `${classPrefix$U}-nav`,
13468
13544
  ref: navRef
13469
13545
  }, navs), React__default.createElement(Popup, {
13470
13546
  visible: !!value,
13471
13547
  position: "top",
13472
13548
  getContainer: props.getContainer,
13473
- className: `${classPrefix$T}-popup`,
13474
- maskClassName: `${classPrefix$T}-popup-mask`,
13475
- bodyClassName: `${classPrefix$T}-popup-body`,
13549
+ className: `${classPrefix$U}-popup`,
13550
+ maskClassName: `${classPrefix$U}-popup-mask`,
13551
+ bodyClassName: `${classPrefix$U}-popup-body`,
13476
13552
  style: {
13477
13553
  top
13478
13554
  },
@@ -13557,7 +13633,7 @@ function betweenInclusive(i2, e2, n2) {
13557
13633
  !function(i2) {
13558
13634
  i2[i2.unit_1 = 1] = "unit_1", i2[i2.unit_2 = 2] = "unit_2", i2[i2.unit_4 = 4] = "unit_4";
13559
13635
  }(n || (n = {}));
13560
- const classPrefix$S = `adm-ellipsis`;
13636
+ const classPrefix$T = `adm-ellipsis`;
13561
13637
  const defaultProps$G = {
13562
13638
  direction: "end",
13563
13639
  rows: 1,
@@ -13599,7 +13675,6 @@ const Ellipsis$1 = (p) => {
13599
13675
  container.style.minHeight = "auto";
13600
13676
  container.style.maxHeight = "auto";
13601
13677
  container.style.textOverflow = "clip";
13602
- container.style.whiteSpace = "normal";
13603
13678
  container.style.webkitLineClamp = "unset";
13604
13679
  container.style.display = "block";
13605
13680
  const lineHeight = pxToNumber(originStyle.lineHeight);
@@ -13671,18 +13746,18 @@ const Ellipsis$1 = (p) => {
13671
13746
  useIsomorphicLayoutEffect$2(() => {
13672
13747
  calcEllipsised();
13673
13748
  }, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
13674
- const expandActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13749
+ const expandActionElement = !!props.expandText && withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13675
13750
  ref: expandElRef,
13676
13751
  onClick: () => {
13677
13752
  setExpanded(true);
13678
13753
  }
13679
- }, props.expandText)) : null;
13680
- const collapseActionElement = exceeded && props.collapseText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13754
+ }, props.expandText));
13755
+ const collapseActionElement = !!props.collapseText && withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13681
13756
  ref: collapseElRef,
13682
13757
  onClick: () => {
13683
13758
  setExpanded(false);
13684
13759
  }
13685
- }, props.collapseText)) : null;
13760
+ }, props.collapseText));
13686
13761
  const renderContent = () => {
13687
13762
  if (!exceeded)
13688
13763
  return props.content;
@@ -13692,7 +13767,7 @@ const Ellipsis$1 = (p) => {
13692
13767
  };
13693
13768
  return withNativeProps(props, React__default.createElement("div", {
13694
13769
  ref: rootRef,
13695
- className: classPrefix$S,
13770
+ className: classPrefix$T,
13696
13771
  onClick: (e2) => {
13697
13772
  if (e2.target === e2.currentTarget) {
13698
13773
  props.onContentClick(e2);
@@ -13730,7 +13805,7 @@ const EmptyIcon = (props) => {
13730
13805
  fill: "#fafafa"
13731
13806
  })))));
13732
13807
  };
13733
- const classPrefix$R = `adm-empty`;
13808
+ const classPrefix$S = `adm-empty`;
13734
13809
  const Empty$1 = (props) => {
13735
13810
  function renderImageNode() {
13736
13811
  const {
@@ -13738,13 +13813,13 @@ const Empty$1 = (props) => {
13738
13813
  } = props;
13739
13814
  if (image2 === void 0) {
13740
13815
  return React__default.createElement(EmptyIcon, {
13741
- className: `${classPrefix$R}-image`,
13816
+ className: `${classPrefix$S}-image`,
13742
13817
  style: props.imageStyle
13743
13818
  });
13744
13819
  }
13745
13820
  if (typeof image2 === "string") {
13746
13821
  return React__default.createElement("img", {
13747
- className: `${classPrefix$R}-image`,
13822
+ className: `${classPrefix$S}-image`,
13748
13823
  style: props.imageStyle,
13749
13824
  src: image2,
13750
13825
  alt: "empty"
@@ -13753,16 +13828,16 @@ const Empty$1 = (props) => {
13753
13828
  return image2;
13754
13829
  }
13755
13830
  return withNativeProps(props, React__default.createElement("div", {
13756
- className: classPrefix$R
13831
+ className: classPrefix$S
13757
13832
  }, React__default.createElement("div", {
13758
- className: `${classPrefix$R}-image-container`
13833
+ className: `${classPrefix$S}-image-container`
13759
13834
  }, renderImageNode()), props.description && React__default.createElement("div", {
13760
- className: classNames(`${classPrefix$R}-description`)
13835
+ className: classNames(`${classPrefix$S}-description`)
13761
13836
  }, props.description)));
13762
13837
  };
13763
13838
  const Empty = Empty$1;
13764
13839
  const errorBlock = "";
13765
- const classPrefix$Q = `adm-error-block`;
13840
+ const classPrefix$R = `adm-error-block`;
13766
13841
  const defaultProps$F = {
13767
13842
  status: "default"
13768
13843
  };
@@ -13774,7 +13849,7 @@ function createErrorBlock(imageRecord2) {
13774
13849
  locale
13775
13850
  } = useConfig();
13776
13851
  const contentPack = locale.ErrorBlock[props.status];
13777
- const des = "description" in props ? props.description : contentPack.description;
13852
+ const desc = "description" in props ? props.description : contentPack.description;
13778
13853
  const title = "title" in props ? props.title : contentPack.title;
13779
13854
  const image2 = (_a = props.image) !== null && _a !== void 0 ? _a : imageRecord2[props.status];
13780
13855
  const imageNode = typeof image2 === "string" ? React__default.createElement("img", {
@@ -13782,19 +13857,19 @@ function createErrorBlock(imageRecord2) {
13782
13857
  alt: "error block image"
13783
13858
  }) : image2;
13784
13859
  return withNativeProps(props, React__default.createElement("div", {
13785
- className: classNames(classPrefix$Q, {
13786
- [`${classPrefix$Q}-full-page`]: props.fullPage
13860
+ className: classNames(classPrefix$R, {
13861
+ [`${classPrefix$R}-full-page`]: props.fullPage
13787
13862
  })
13788
13863
  }, React__default.createElement("div", {
13789
- className: `${classPrefix$Q}-image`
13864
+ className: `${classPrefix$R}-image`
13790
13865
  }, imageNode), React__default.createElement("div", {
13791
- className: `${classPrefix$Q}-description`
13792
- }, title && React__default.createElement("div", {
13793
- className: `${classPrefix$Q}-description-title`
13794
- }, title), des && React__default.createElement("div", {
13795
- className: `${classPrefix$Q}-description-subtitle`
13796
- }, des)), props.children && React__default.createElement("div", {
13797
- className: `${classPrefix$Q}-content`
13866
+ className: `${classPrefix$R}-description`
13867
+ }, ![void 0, null].includes(title) && React__default.createElement("div", {
13868
+ className: `${classPrefix$R}-description-title`
13869
+ }, title), ![void 0, null].includes(desc) && React__default.createElement("div", {
13870
+ className: `${classPrefix$R}-description-subtitle`
13871
+ }, desc)), props.children && React__default.createElement("div", {
13872
+ className: `${classPrefix$R}-content`
13798
13873
  }, props.children)));
13799
13874
  };
13800
13875
  return ErrorBlock2;
@@ -14302,7 +14377,7 @@ const imageRecord = {
14302
14377
  const ErrorBlock$1 = createErrorBlock(imageRecord);
14303
14378
  const ErrorBlock = ErrorBlock$1;
14304
14379
  const floatingBubble = "";
14305
- const classPrefix$P = `adm-floating-bubble`;
14380
+ const classPrefix$Q = `adm-floating-bubble`;
14306
14381
  const defaultProps$E = {
14307
14382
  axis: "y",
14308
14383
  defaultOffset: {
@@ -14386,11 +14461,11 @@ const FloatingBubble$1 = (p) => {
14386
14461
  from: () => [x.get(), y.get()]
14387
14462
  });
14388
14463
  return withNativeProps(props, React__default.createElement("div", {
14389
- className: classPrefix$P
14464
+ className: classPrefix$Q
14390
14465
  }, React__default.createElement("div", {
14391
- className: `${classPrefix$P}-boundary-outer`
14466
+ className: `${classPrefix$Q}-boundary-outer`
14392
14467
  }, React__default.createElement("div", {
14393
- className: `${classPrefix$P}-boundary`,
14468
+ className: `${classPrefix$Q}-boundary`,
14394
14469
  ref: boundaryRef
14395
14470
  })), React__default.createElement(animated.div, Object.assign({}, bind(), {
14396
14471
  style: {
@@ -14398,7 +14473,7 @@ const FloatingBubble$1 = (p) => {
14398
14473
  transform: to([x, y], (x2, y2) => `translate(${x2}px, ${y2}px)`)
14399
14474
  },
14400
14475
  onClick: props.onClick,
14401
- className: `${classPrefix$P}-button`,
14476
+ className: `${classPrefix$Q}-button`,
14402
14477
  ref: buttonRef
14403
14478
  }), props.children)));
14404
14479
  };
@@ -14409,6 +14484,7 @@ function nearest(arr, target) {
14409
14484
  return Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur;
14410
14485
  });
14411
14486
  }
14487
+ const classPrefix$P = "adm-floating-panel";
14412
14488
  const defaultProps$D = {
14413
14489
  handleDraggingOfContent: true
14414
14490
  };
@@ -14471,7 +14547,7 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
14471
14547
  const {
14472
14548
  event
14473
14549
  } = state;
14474
- if (event.cancelable) {
14550
+ if (event.cancelable && supportsPassive) {
14475
14551
  event.preventDefault();
14476
14552
  }
14477
14553
  event.stopPropagation();
@@ -14495,7 +14571,7 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
14495
14571
  target: elementRef,
14496
14572
  eventOptions: supportsPassive ? {
14497
14573
  passive: false
14498
- } : false
14574
+ } : void 0
14499
14575
  });
14500
14576
  useImperativeHandle(ref, () => ({
14501
14577
  setHeight: (height, options) => {
@@ -14508,23 +14584,23 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
14508
14584
  useLockScroll(elementRef, true);
14509
14585
  return withNativeProps(props, React__default.createElement(animated.div, {
14510
14586
  ref: elementRef,
14511
- className: "adm-floating-panel",
14587
+ className: classPrefix$P,
14512
14588
  style: {
14513
14589
  height: Math.round(maxHeight),
14514
14590
  translateY: y.to((y2) => `calc(100% + (${Math.round(y2)}px))`)
14515
14591
  }
14516
14592
  }, React__default.createElement("div", {
14517
- className: "adm-floating-panel-mask",
14593
+ className: `${classPrefix$P}-mask`,
14518
14594
  style: {
14519
14595
  display: pulling ? "block" : "none"
14520
14596
  }
14521
14597
  }), React__default.createElement("div", {
14522
- className: "adm-floating-panel-header",
14598
+ className: `${classPrefix$P}-header`,
14523
14599
  ref: headerRef
14524
14600
  }, React__default.createElement("div", {
14525
- className: "adm-floating-panel-bar"
14601
+ className: `${classPrefix$P}-bar`
14526
14602
  })), React__default.createElement("div", {
14527
- className: "adm-floating-panel-content",
14603
+ className: `${classPrefix$P}-content`,
14528
14604
  ref: contentRef
14529
14605
  }, props.children)));
14530
14606
  });
@@ -20582,7 +20658,6 @@ const MemoInput = React__default.memo(({
20582
20658
  const FormItemLayout = (props) => {
20583
20659
  var _a;
20584
20660
  const {
20585
- className,
20586
20661
  style,
20587
20662
  extra,
20588
20663
  label,
@@ -20624,7 +20699,7 @@ const FormItemLayout = (props) => {
20624
20699
  return null;
20625
20700
  }
20626
20701
  })();
20627
- const labelElement = label ? React__default.createElement("label", {
20702
+ const labelElement = !!label && React__default.createElement("label", {
20628
20703
  className: `${classPrefix$L}-label`,
20629
20704
  htmlFor
20630
20705
  }, label, requiredMark, help && React__default.createElement(Popover, {
@@ -20636,21 +20711,21 @@ const FormItemLayout = (props) => {
20636
20711
  onClick: (e2) => {
20637
20712
  e2.preventDefault();
20638
20713
  }
20639
- }, React__default.createElement(QuestionCircleOutline, null)))) : null;
20640
- 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", {
20714
+ }, React__default.createElement(QuestionCircleOutline, null))));
20715
+ 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", {
20641
20716
  key: `error-${index2}`,
20642
20717
  className: `${classPrefix$L}-feedback-error`
20643
20718
  }, error)), props.warnings.map((warning3, index2) => React__default.createElement("div", {
20644
20719
  key: `warning-${index2}`,
20645
20720
  className: `${classPrefix$L}-feedback-warning`
20646
- }, warning3)))) : null;
20721
+ }, warning3))));
20647
20722
  return withNativeProps(props, React__default.createElement(List$1.Item, {
20648
20723
  style,
20649
20724
  title: layout === "vertical" && labelElement,
20650
20725
  prefix: layout === "horizontal" && labelElement,
20651
20726
  extra,
20652
20727
  description,
20653
- className: classNames(classPrefix$L, className, `${classPrefix$L}-${layout}`, {
20728
+ className: classNames(classPrefix$L, `${classPrefix$L}-${layout}`, {
20654
20729
  [`${classPrefix$L}-hidden`]: hidden,
20655
20730
  [`${classPrefix$L}-has-error`]: props.errors.length
20656
20731
  }),
@@ -20666,7 +20741,6 @@ const FormItemLayout = (props) => {
20666
20741
  };
20667
20742
  const FormItem = (props) => {
20668
20743
  const {
20669
- className,
20670
20744
  style,
20671
20745
  label,
20672
20746
  help,
@@ -20690,7 +20764,7 @@ const FormItem = (props) => {
20690
20764
  dependencies,
20691
20765
  clickable,
20692
20766
  arrow: arrow2
20693
- } = 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"]);
20767
+ } = 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"]);
20694
20768
  const {
20695
20769
  name: formName
20696
20770
  } = useContext(FormContext);
@@ -20738,7 +20812,6 @@ const FormItem = (props) => {
20738
20812
  return subWarnings;
20739
20813
  }, curWarnings);
20740
20814
  return withNativeProps(props, React__default.createElement(FormItemLayout, {
20741
- className,
20742
20815
  style,
20743
20816
  label,
20744
20817
  extra,
@@ -22940,7 +23013,7 @@ const PullToRefresh$1 = (p) => {
22940
23013
  enabled: !props.disabled,
22941
23014
  eventOptions: supportsPassive ? {
22942
23015
  passive: false
22943
- } : false
23016
+ } : void 0
22944
23017
  });
22945
23018
  const renderStatusText = () => {
22946
23019
  var _a2;
@@ -24725,14 +24798,14 @@ const Steps = (p) => {
24725
24798
  if (!React__default.isValidElement(child)) {
24726
24799
  return child;
24727
24800
  }
24728
- const props2 = child.props;
24729
- let status = props2.status || "wait";
24801
+ const childProps = child.props;
24802
+ let status = childProps.status || "wait";
24730
24803
  if (index2 < current) {
24731
- status = props2.status || "finish";
24804
+ status = childProps.status || "finish";
24732
24805
  } else if (index2 === current) {
24733
- status = props2.status || "process";
24806
+ status = childProps.status || "process";
24734
24807
  }
24735
- const icon = (_a = props2.icon) !== null && _a !== void 0 ? _a : defaultIcon;
24808
+ const icon = (_a = childProps.icon) !== null && _a !== void 0 ? _a : defaultIcon;
24736
24809
  return React__default.cloneElement(child, {
24737
24810
  status,
24738
24811
  icon
@@ -25441,7 +25514,7 @@ const index$1 = attachPropertiesToComponent(TabBar, {
25441
25514
  const tag = "";
25442
25515
  const classPrefix$7 = `adm-tag`;
25443
25516
  const colorRecord = {
25444
- default: "#666666",
25517
+ default: "var(--adm-color-text-secondary, #666666)",
25445
25518
  primary: "var(--adm-color-primary, #1677ff)",
25446
25519
  success: "var(--adm-color-success, #00b578)",
25447
25520
  warning: "var(--adm-color-warning, #ff8f1f)",
@@ -25544,12 +25617,21 @@ const TextArea$1 = forwardRef((p, ref) => {
25544
25617
  className: `${classPrefix$6}-count`
25545
25618
  }, maxLength === void 0 ? valueLength : valueLength + "/" + maxLength);
25546
25619
  }
25620
+ let rows = props.rows;
25621
+ if (typeof autoSize === "object") {
25622
+ if (autoSize.maxRows && rows > autoSize.maxRows) {
25623
+ rows = autoSize.maxRows;
25624
+ }
25625
+ if (autoSize.minRows && rows < autoSize.minRows) {
25626
+ rows = autoSize.minRows;
25627
+ }
25628
+ }
25547
25629
  return withNativeProps(props, React__default.createElement("div", {
25548
25630
  className: classPrefix$6
25549
25631
  }, React__default.createElement("textarea", {
25550
25632
  ref: nativeTextAreaRef,
25551
25633
  className: `${classPrefix$6}-element`,
25552
- rows: props.rows,
25634
+ rows,
25553
25635
  value,
25554
25636
  placeholder: props.placeholder,
25555
25637
  onChange: (e2) => {
@@ -25586,7 +25668,7 @@ const TextArea$1 = forwardRef((p, ref) => {
25586
25668
  ref: hiddenTextAreaRef,
25587
25669
  className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
25588
25670
  value,
25589
- rows: props.rows,
25671
+ rows,
25590
25672
  "aria-hidden": true,
25591
25673
  readOnly: true
25592
25674
  })));
@@ -26172,7 +26254,7 @@ const defaultProps$1 = {
26172
26254
  const WaterMark$1 = (p) => {
26173
26255
  const props = mergeProps(defaultProps$1, p);
26174
26256
  const {
26175
- zIndex = 2e3,
26257
+ zIndex,
26176
26258
  gapX = 24,
26177
26259
  gapY = 48,
26178
26260
  width = 120,