antd-mobile 5.23.0 → 5.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (941) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +578 -373
  2. package/2x/bundle/antd-mobile.cjs.js +11 -11
  3. package/2x/bundle/antd-mobile.es.development.js +579 -374
  4. package/2x/bundle/antd-mobile.es.js +5188 -5020
  5. package/2x/bundle/antd-mobile.umd.development.js +578 -373
  6. package/2x/bundle/antd-mobile.umd.js +11 -11
  7. package/2x/bundle/style.css +22 -16
  8. package/2x/cjs/components/action-sheet/action-sheet.js +0 -17
  9. package/2x/cjs/components/action-sheet/index.js +0 -5
  10. package/2x/cjs/components/auto-center/auto-center.js +0 -6
  11. package/2x/cjs/components/auto-center/index.js +0 -3
  12. package/2x/cjs/components/avatar/avatar.js +0 -9
  13. package/2x/cjs/components/avatar/fallback.js +0 -4
  14. package/2x/cjs/components/avatar/index.js +0 -3
  15. package/2x/cjs/components/badge/badge.js +0 -9
  16. package/2x/cjs/components/badge/index.js +0 -5
  17. package/2x/cjs/components/button/button.js +0 -15
  18. package/2x/cjs/components/button/index.js +0 -3
  19. package/2x/cjs/components/calendar/arrow-left-double.js +0 -4
  20. package/2x/cjs/components/calendar/arrow-left.js +0 -4
  21. package/2x/cjs/components/calendar/calendar.d.ts +3 -5
  22. package/2x/cjs/components/calendar/calendar.js +21 -46
  23. package/2x/cjs/components/calendar/convert.d.ts +6 -0
  24. package/2x/cjs/components/calendar/convert.js +6 -4
  25. package/2x/cjs/components/calendar/index.js +0 -3
  26. package/2x/cjs/components/capsule-tabs/capsule-tabs.js +0 -25
  27. package/2x/cjs/components/capsule-tabs/index.js +0 -5
  28. package/2x/cjs/components/card/card.js +0 -11
  29. package/2x/cjs/components/card/index.js +0 -3
  30. package/2x/cjs/components/cascade-picker/cascade-picker-utils.js +0 -7
  31. package/2x/cjs/components/cascade-picker/cascade-picker.js +3 -11
  32. package/2x/cjs/components/cascade-picker/index.js +0 -5
  33. package/2x/cjs/components/cascade-picker/prompt.js +0 -10
  34. package/2x/cjs/components/cascade-picker-view/cascade-picker-view.js +3 -10
  35. package/2x/cjs/components/cascade-picker-view/index.js +0 -2
  36. package/2x/cjs/components/cascader/cascader.js +0 -21
  37. package/2x/cjs/components/cascader/index.js +0 -7
  38. package/2x/cjs/components/cascader/prompt.js +0 -10
  39. package/2x/cjs/components/cascader-view/cascader-view.js +0 -30
  40. package/2x/cjs/components/cascader-view/index.js +0 -6
  41. package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +0 -13
  42. package/2x/cjs/components/center-popup/center-popup.js +0 -27
  43. package/2x/cjs/components/center-popup/index.js +0 -3
  44. package/2x/cjs/components/check-list/check-list-item.js +0 -19
  45. package/2x/cjs/components/check-list/check-list.js +0 -14
  46. package/2x/cjs/components/check-list/context.js +0 -2
  47. package/2x/cjs/components/check-list/index.js +0 -6
  48. package/2x/cjs/components/checkbox/check-icon.js +0 -5
  49. package/2x/cjs/components/checkbox/checkbox.js +0 -26
  50. package/2x/cjs/components/checkbox/group-context.js +0 -2
  51. package/2x/cjs/components/checkbox/group.js +2 -9
  52. package/2x/cjs/components/checkbox/indeterminate-icon.js +0 -5
  53. package/2x/cjs/components/checkbox/index.js +0 -6
  54. package/2x/cjs/components/checkbox/native-input.js +0 -6
  55. package/2x/cjs/components/collapse/collapse.js +0 -31
  56. package/2x/cjs/components/collapse/index.js +0 -5
  57. package/2x/cjs/components/config-provider/config-provider.js +3 -17
  58. package/2x/cjs/components/config-provider/index.js +0 -2
  59. package/2x/cjs/components/date-picker/date-picker-date-utils.js +0 -28
  60. package/2x/cjs/components/date-picker/date-picker-utils.js +0 -13
  61. package/2x/cjs/components/date-picker/date-picker-week-utils.js +0 -24
  62. package/2x/cjs/components/date-picker/date-picker.js +0 -15
  63. package/2x/cjs/components/date-picker/index.js +0 -6
  64. package/2x/cjs/components/date-picker/prompt.js +0 -10
  65. package/2x/cjs/components/date-picker-view/date-picker-view.js +0 -15
  66. package/2x/cjs/components/date-picker-view/index.js +0 -2
  67. package/2x/cjs/components/dialog/alert.js +0 -5
  68. package/2x/cjs/components/dialog/clear.js +0 -2
  69. package/2x/cjs/components/dialog/confirm.js +0 -9
  70. package/2x/cjs/components/dialog/dialog-action-button.js +0 -7
  71. package/2x/cjs/components/dialog/dialog.js +0 -18
  72. package/2x/cjs/components/dialog/index.js +0 -9
  73. package/2x/cjs/components/dialog/show.js +0 -7
  74. package/2x/cjs/components/divider/divider.js +0 -8
  75. package/2x/cjs/components/divider/index.js +0 -3
  76. package/2x/cjs/components/dot-loading/dot-loading.js +0 -9
  77. package/2x/cjs/components/dot-loading/index.js +0 -3
  78. package/2x/cjs/components/dropdown/dropdown.js +4 -21
  79. package/2x/cjs/components/dropdown/index.js +0 -7
  80. package/2x/cjs/components/dropdown/item.js +0 -12
  81. package/2x/cjs/components/ellipsis/ellipsis.js +14 -34
  82. package/2x/cjs/components/ellipsis/index.js +0 -3
  83. package/2x/cjs/components/empty/empty-icon.js +0 -5
  84. package/2x/cjs/components/empty/empty.js +0 -12
  85. package/2x/cjs/components/empty/index.js +0 -3
  86. package/2x/cjs/components/error-block/create-error-block.js +0 -10
  87. package/2x/cjs/components/error-block/error-block.js +0 -3
  88. package/2x/cjs/components/error-block/images/busy.js +0 -4
  89. package/2x/cjs/components/error-block/images/default.js +0 -4
  90. package/2x/cjs/components/error-block/images/disconnected.js +0 -4
  91. package/2x/cjs/components/error-block/images/empty.js +0 -4
  92. package/2x/cjs/components/error-block/images/index.js +0 -4
  93. package/2x/cjs/components/error-block/index.js +0 -4
  94. package/2x/cjs/components/floating-bubble/floating-bubble.js +2 -18
  95. package/2x/cjs/components/floating-bubble/index.js +0 -3
  96. package/2x/cjs/components/floating-panel/floating-panel.js +0 -21
  97. package/2x/cjs/components/floating-panel/index.js +0 -3
  98. package/2x/cjs/components/footer/footer.js +0 -12
  99. package/2x/cjs/components/footer/index.js +0 -3
  100. package/2x/cjs/components/form/context.js +0 -7
  101. package/2x/cjs/components/form/form-array.js +0 -9
  102. package/2x/cjs/components/form/form-item.css +0 -1
  103. package/2x/cjs/components/form/form-item.js +33 -94
  104. package/2x/cjs/components/form/form-subscribe.js +0 -8
  105. package/2x/cjs/components/form/form.css +9 -3
  106. package/2x/cjs/components/form/form.d.ts +2 -2
  107. package/2x/cjs/components/form/form.js +11 -31
  108. package/2x/cjs/components/form/header.js +0 -2
  109. package/2x/cjs/components/form/index.css +9 -4
  110. package/2x/cjs/components/form/index.d.ts +1 -1
  111. package/2x/cjs/components/form/index.js +0 -10
  112. package/2x/cjs/components/form/utils.js +4 -9
  113. package/2x/cjs/components/grid/grid.js +0 -12
  114. package/2x/cjs/components/grid/index.js +0 -5
  115. package/2x/cjs/components/image/broken-image-icon.js +0 -4
  116. package/2x/cjs/components/image/image-icon.js +0 -4
  117. package/2x/cjs/components/image/image.js +0 -21
  118. package/2x/cjs/components/image/index.js +0 -3
  119. package/2x/cjs/components/image/lazy-detector.js +0 -6
  120. package/2x/cjs/components/image/test/image.test.js +0 -10
  121. package/2x/cjs/components/image-uploader/image-uploader.js +0 -39
  122. package/2x/cjs/components/image-uploader/index.js +0 -3
  123. package/2x/cjs/components/image-uploader/preview-item.js +0 -17
  124. package/2x/cjs/components/image-viewer/image-viewer.js +0 -23
  125. package/2x/cjs/components/image-viewer/index.js +0 -7
  126. package/2x/cjs/components/image-viewer/methods.js +0 -10
  127. package/2x/cjs/components/image-viewer/slide.js +0 -28
  128. package/2x/cjs/components/image-viewer/slides.js +0 -13
  129. package/2x/cjs/components/index-bar/index-bar.js +0 -25
  130. package/2x/cjs/components/index-bar/index.js +0 -6
  131. package/2x/cjs/components/index-bar/panel.js +0 -2
  132. package/2x/cjs/components/index-bar/sidebar.js +0 -9
  133. package/2x/cjs/components/infinite-scroll/index.js +0 -3
  134. package/2x/cjs/components/infinite-scroll/infinite-scroll.js +4 -28
  135. package/2x/cjs/components/input/index.js +0 -3
  136. package/2x/cjs/components/input/input.js +2 -37
  137. package/2x/cjs/components/jumbo-tabs/index.js +0 -5
  138. package/2x/cjs/components/jumbo-tabs/jumbo-tabs.js +0 -25
  139. package/2x/cjs/components/list/index.js +0 -6
  140. package/2x/cjs/components/list/list-item.js +0 -12
  141. package/2x/cjs/components/list/list.js +0 -9
  142. package/2x/cjs/components/loading/index.js +0 -3
  143. package/2x/cjs/components/mask/index.js +0 -3
  144. package/2x/cjs/components/mask/mask.js +0 -19
  145. package/2x/cjs/components/modal/alert.js +0 -5
  146. package/2x/cjs/components/modal/clear.js +0 -2
  147. package/2x/cjs/components/modal/confirm.js +0 -9
  148. package/2x/cjs/components/modal/index.js +0 -9
  149. package/2x/cjs/components/modal/modal-action-button.js +0 -7
  150. package/2x/cjs/components/modal/modal.js +0 -18
  151. package/2x/cjs/components/modal/show.js +0 -7
  152. package/2x/cjs/components/nav-bar/index.js +0 -3
  153. package/2x/cjs/components/nav-bar/nav-bar.d.ts +1 -1
  154. package/2x/cjs/components/nav-bar/nav-bar.js +0 -10
  155. package/2x/cjs/components/notice-bar/index.js +0 -3
  156. package/2x/cjs/components/notice-bar/notice-bar.js +0 -19
  157. package/2x/cjs/components/number-keyboard/index.js +0 -3
  158. package/2x/cjs/components/number-keyboard/number-keyboard.css +1 -1
  159. package/2x/cjs/components/number-keyboard/number-keyboard.js +0 -33
  160. package/2x/cjs/components/page-indicator/index.js +0 -3
  161. package/2x/cjs/components/page-indicator/page-indicator.js +0 -10
  162. package/2x/cjs/components/passcode-input/index.js +0 -3
  163. package/2x/cjs/components/passcode-input/passcode-input.css +1 -1
  164. package/2x/cjs/components/passcode-input/passcode-input.js +2 -30
  165. package/2x/cjs/components/picker/index.js +0 -6
  166. package/2x/cjs/components/picker/picker-utils.js +0 -2
  167. package/2x/cjs/components/picker/picker.css +1 -0
  168. package/2x/cjs/components/picker/picker.js +0 -25
  169. package/2x/cjs/components/picker/prompt.js +0 -10
  170. package/2x/cjs/components/picker-view/columns-extend.js +0 -7
  171. package/2x/cjs/components/picker-view/index.js +0 -3
  172. package/2x/cjs/components/picker-view/picker-view.js +2 -16
  173. package/2x/cjs/components/picker-view/wheel.js +0 -27
  174. package/2x/cjs/components/popover/arrow.js +0 -5
  175. package/2x/cjs/components/popover/index.js +0 -7
  176. package/2x/cjs/components/popover/normalize-placement.js +0 -2
  177. package/2x/cjs/components/popover/popover-menu.js +2 -14
  178. package/2x/cjs/components/popover/popover.js +2 -27
  179. package/2x/cjs/components/popover/wrapper.js +0 -10
  180. package/2x/cjs/components/popup/index.js +0 -3
  181. package/2x/cjs/components/popup/popup.js +1 -30
  182. package/2x/cjs/components/progress-bar/index.js +0 -3
  183. package/2x/cjs/components/progress-bar/progress-bar.js +0 -13
  184. package/2x/cjs/components/progress-circle/index.js +0 -3
  185. package/2x/cjs/components/progress-circle/progress-circle.js +0 -7
  186. package/2x/cjs/components/pull-to-refresh/index.js +0 -3
  187. package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +2 -43
  188. package/2x/cjs/components/radio/group-context.js +0 -2
  189. package/2x/cjs/components/radio/group.js +2 -10
  190. package/2x/cjs/components/radio/index.js +0 -6
  191. package/2x/cjs/components/radio/radio.js +0 -26
  192. package/2x/cjs/components/rate/index.js +0 -3
  193. package/2x/cjs/components/rate/rate.js +0 -18
  194. package/2x/cjs/components/rate/star.js +0 -4
  195. package/2x/cjs/components/result/index.js +0 -3
  196. package/2x/cjs/components/result/result.js +0 -11
  197. package/2x/cjs/components/result-page/index.js +0 -6
  198. package/2x/cjs/components/result-page/result-page-card.js +0 -7
  199. package/2x/cjs/components/result-page/result-page.js +0 -15
  200. package/2x/cjs/components/safe-area/index.js +0 -3
  201. package/2x/cjs/components/safe-area/safe-area.js +0 -7
  202. package/2x/cjs/components/scroll-mask/index.js +0 -3
  203. package/2x/cjs/components/scroll-mask/scroll-mask.js +0 -10
  204. package/2x/cjs/components/search-bar/index.js +0 -3
  205. package/2x/cjs/components/search-bar/search-bar.js +0 -28
  206. package/2x/cjs/components/selector/check-mark.js +0 -4
  207. package/2x/cjs/components/selector/index.js +0 -3
  208. package/2x/cjs/components/selector/selector.js +0 -15
  209. package/2x/cjs/components/side-bar/corner.js +0 -5
  210. package/2x/cjs/components/side-bar/index.js +0 -5
  211. package/2x/cjs/components/side-bar/side-bar.js +0 -17
  212. package/2x/cjs/components/skeleton/index.js +0 -5
  213. package/2x/cjs/components/skeleton/skeleton.js +0 -15
  214. package/2x/cjs/components/slider/index.js +0 -3
  215. package/2x/cjs/components/slider/marks.js +0 -8
  216. package/2x/cjs/components/slider/slider.js +12 -47
  217. package/2x/cjs/components/slider/thumb-icon.js +0 -5
  218. package/2x/cjs/components/slider/thumb.js +0 -17
  219. package/2x/cjs/components/slider/ticks.js +0 -6
  220. package/2x/cjs/components/space/index.js +0 -3
  221. package/2x/cjs/components/space/space.js +0 -8
  222. package/2x/cjs/components/spin-loading/index.js +0 -3
  223. package/2x/cjs/components/spin-loading/spin-loading.js +0 -9
  224. package/2x/cjs/components/stepper/index.js +0 -3
  225. package/2x/cjs/components/stepper/stepper.js +2 -38
  226. package/2x/cjs/components/steps/index.js +0 -6
  227. package/2x/cjs/components/steps/step.js +0 -7
  228. package/2x/cjs/components/steps/steps.js +0 -14
  229. package/2x/cjs/components/swipe-action/index.js +0 -3
  230. package/2x/cjs/components/swipe-action/swipe-action.js +0 -40
  231. package/2x/cjs/components/swiper/index.js +0 -6
  232. package/2x/cjs/components/swiper/swiper-item.js +0 -5
  233. package/2x/cjs/components/swiper/swiper.js +7 -45
  234. package/2x/cjs/components/switch/index.js +0 -3
  235. package/2x/cjs/components/switch/spin-icon.js +0 -5
  236. package/2x/cjs/components/switch/switch.js +0 -23
  237. package/2x/cjs/components/tab-bar/index.js +0 -5
  238. package/2x/cjs/components/tab-bar/tab-bar.js +0 -22
  239. package/2x/cjs/components/tabs/index.js +0 -5
  240. package/2x/cjs/components/tabs/tabs.js +0 -34
  241. package/2x/cjs/components/tag/index.js +0 -3
  242. package/2x/cjs/components/tag/tag.js +0 -9
  243. package/2x/cjs/components/text-area/index.js +0 -3
  244. package/2x/cjs/components/text-area/text-area.js +0 -27
  245. package/2x/cjs/components/toast/index.js +0 -3
  246. package/2x/cjs/components/toast/methods.js +0 -17
  247. package/2x/cjs/components/toast/toast.js +0 -19
  248. package/2x/cjs/components/tree-select/index.js +0 -6
  249. package/2x/cjs/components/tree-select/multiple.js +26 -87
  250. package/2x/cjs/components/tree-select/tree-select.js +4 -32
  251. package/2x/cjs/components/virtual-input/index.js +0 -3
  252. package/2x/cjs/components/virtual-input/virtual-input.js +0 -28
  253. package/2x/cjs/components/water-mark/index.js +0 -3
  254. package/2x/cjs/components/water-mark/water-mark.js +2 -15
  255. package/2x/cjs/global/index.js +2 -3
  256. package/2x/cjs/index.js +0 -85
  257. package/2x/cjs/locales/en-US.js +0 -3
  258. package/2x/cjs/locales/es-ES.js +0 -3
  259. package/2x/cjs/locales/fa-IR.js +0 -3
  260. package/2x/cjs/locales/fr-FR.js +0 -3
  261. package/2x/cjs/locales/id-ID.js +0 -3
  262. package/2x/cjs/locales/ja-JP.d.ts +127 -0
  263. package/2x/cjs/locales/ja-JP.js +137 -0
  264. package/2x/cjs/locales/kk-KZ.js +0 -3
  265. package/2x/cjs/locales/ko-KR.js +0 -3
  266. package/2x/cjs/locales/zh-CN.js +0 -3
  267. package/2x/cjs/locales/zh-HK.js +0 -3
  268. package/2x/cjs/locales/zh-TW.js +0 -3
  269. package/2x/cjs/utils/attach-properties-to-component.js +0 -3
  270. package/2x/cjs/utils/bound.js +0 -4
  271. package/2x/cjs/utils/convert-px.js +0 -9
  272. package/2x/cjs/utils/create-icon-component.js +0 -2
  273. package/2x/cjs/utils/dev-log.d.ts +1 -0
  274. package/2x/cjs/utils/dev-log.js +23 -3
  275. package/2x/cjs/utils/generate-int-array.js +0 -3
  276. package/2x/cjs/utils/get-container.d.ts +2 -1
  277. package/2x/cjs/utils/get-container.js +0 -1
  278. package/2x/cjs/utils/get-scroll-parent.js +0 -9
  279. package/2x/cjs/utils/is-node-with-content.js +0 -1
  280. package/2x/cjs/utils/matrix.js +0 -18
  281. package/2x/cjs/utils/measure-css-length.js +0 -7
  282. package/2x/cjs/utils/merge-locale.js +0 -5
  283. package/2x/cjs/utils/native-props.js +0 -10
  284. package/2x/cjs/utils/nearest.js +0 -1
  285. package/2x/cjs/utils/noop.js +0 -2
  286. package/2x/cjs/utils/reduce-and-restore-motion.js +0 -10
  287. package/2x/cjs/utils/render-imperatively.js +0 -15
  288. package/2x/cjs/utils/render-to-body.js +0 -5
  289. package/2x/cjs/utils/render-to-container.js +0 -5
  290. package/2x/cjs/utils/render.js +4 -22
  291. package/2x/cjs/utils/rubberband.js +0 -3
  292. package/2x/cjs/utils/should-render.js +0 -4
  293. package/2x/cjs/utils/shuffle.js +0 -3
  294. package/2x/cjs/utils/sleep.js +0 -2
  295. package/2x/cjs/utils/supports-passive.js +0 -4
  296. package/2x/cjs/utils/to-css-length.js +0 -1
  297. package/2x/cjs/utils/traverse-react-node.js +0 -6
  298. package/2x/cjs/utils/tree.js +0 -2
  299. package/2x/cjs/utils/undefined-fallback.js +0 -3
  300. package/2x/cjs/utils/use-drag-and-pinch.js +0 -2
  301. package/2x/cjs/utils/use-initialized.js +0 -4
  302. package/2x/cjs/utils/use-inner-visible.js +0 -3
  303. package/2x/cjs/utils/use-isomorphic-update-layout-effect.js +0 -2
  304. package/2x/cjs/utils/use-lock-scroll.d.ts +1 -1
  305. package/2x/cjs/utils/use-lock-scroll.js +20 -16
  306. package/2x/cjs/utils/use-mutation-effect.js +0 -3
  307. package/2x/cjs/utils/use-props-value.js +0 -5
  308. package/2x/cjs/utils/use-ref-state.js +0 -2
  309. package/2x/cjs/utils/use-resize-effect.js +0 -3
  310. package/2x/cjs/utils/use-tab-list-scroll.js +0 -9
  311. package/2x/cjs/utils/use-touch.js +2 -15
  312. package/2x/cjs/utils/validate.js +0 -9
  313. package/2x/cjs/utils/with-cache.js +0 -2
  314. package/2x/cjs/utils/with-default-props.js +0 -6
  315. package/2x/cjs/utils/with-stop-propagation.js +0 -8
  316. package/2x/es/components/action-sheet/action-sheet.js +0 -5
  317. package/2x/es/components/button/button.js +0 -4
  318. package/2x/es/components/calendar/calendar.d.ts +3 -5
  319. package/2x/es/components/calendar/calendar.js +22 -26
  320. package/2x/es/components/calendar/convert.d.ts +6 -0
  321. package/2x/es/components/calendar/convert.js +4 -3
  322. package/2x/es/components/capsule-tabs/capsule-tabs.js +0 -7
  323. package/2x/es/components/card/card.js +0 -4
  324. package/2x/es/components/cascade-picker/cascade-picker-utils.js +0 -5
  325. package/2x/es/components/cascade-picker/cascade-picker.js +3 -4
  326. package/2x/es/components/cascade-picker/prompt.js +0 -4
  327. package/2x/es/components/cascade-picker-view/cascade-picker-view.js +3 -4
  328. package/2x/es/components/cascader/cascader.js +0 -7
  329. package/2x/es/components/cascader/prompt.js +0 -4
  330. package/2x/es/components/cascader-view/cascader-view.js +0 -12
  331. package/2x/es/components/cascader-view/use-cascader-value-extend.js +0 -9
  332. package/2x/es/components/center-popup/center-popup.js +0 -5
  333. package/2x/es/components/check-list/check-list-item.js +0 -5
  334. package/2x/es/components/check-list/check-list.js +0 -3
  335. package/2x/es/components/checkbox/checkbox.js +0 -11
  336. package/2x/es/components/checkbox/group.js +2 -1
  337. package/2x/es/components/collapse/collapse.js +0 -13
  338. package/2x/es/components/config-provider/config-provider.js +3 -5
  339. package/2x/es/components/date-picker/date-picker-date-utils.js +0 -15
  340. package/2x/es/components/date-picker/date-picker-week-utils.js +0 -11
  341. package/2x/es/components/date-picker/date-picker.js +0 -3
  342. package/2x/es/components/date-picker/prompt.js +0 -4
  343. package/2x/es/components/date-picker-view/date-picker-view.js +0 -3
  344. package/2x/es/components/dialog/alert.js +0 -1
  345. package/2x/es/components/dialog/confirm.js +0 -3
  346. package/2x/es/components/dialog/dialog.js +0 -4
  347. package/2x/es/components/dialog/show.js +0 -1
  348. package/2x/es/components/dot-loading/dot-loading.js +0 -1
  349. package/2x/es/components/dropdown/dropdown.js +4 -7
  350. package/2x/es/components/dropdown/item.js +0 -3
  351. package/2x/es/components/ellipsis/ellipsis.js +14 -24
  352. package/2x/es/components/empty/empty.js +0 -5
  353. package/2x/es/components/error-block/create-error-block.js +0 -2
  354. package/2x/es/components/floating-bubble/floating-bubble.js +2 -8
  355. package/2x/es/components/floating-panel/floating-panel.js +0 -9
  356. package/2x/es/components/footer/footer.js +0 -3
  357. package/2x/es/components/form/form-array.js +0 -3
  358. package/2x/es/components/form/form-item.css +0 -1
  359. package/2x/es/components/form/form-item.js +33 -75
  360. package/2x/es/components/form/form.css +9 -3
  361. package/2x/es/components/form/form.d.ts +2 -2
  362. package/2x/es/components/form/form.js +11 -17
  363. package/2x/es/components/form/index.css +9 -4
  364. package/2x/es/components/form/index.d.ts +1 -1
  365. package/2x/es/components/form/utils.js +4 -6
  366. package/2x/es/components/grid/grid.js +0 -2
  367. package/2x/es/components/image/image.js +0 -8
  368. package/2x/es/components/image-uploader/image-uploader.js +0 -21
  369. package/2x/es/components/image-uploader/preview-item.js +0 -7
  370. package/2x/es/components/image-viewer/image-viewer.js +0 -6
  371. package/2x/es/components/image-viewer/methods.js +0 -2
  372. package/2x/es/components/image-viewer/slide.js +0 -16
  373. package/2x/es/components/image-viewer/slides.js +0 -4
  374. package/2x/es/components/index-bar/index-bar.js +0 -11
  375. package/2x/es/components/index-bar/sidebar.js +0 -1
  376. package/2x/es/components/infinite-scroll/infinite-scroll.js +4 -15
  377. package/2x/es/components/input/input.js +2 -23
  378. package/2x/es/components/jumbo-tabs/jumbo-tabs.js +0 -7
  379. package/2x/es/components/list/list-item.js +0 -1
  380. package/2x/es/components/list/list.js +0 -1
  381. package/2x/es/components/mask/mask.js +0 -4
  382. package/2x/es/components/modal/alert.js +0 -1
  383. package/2x/es/components/modal/confirm.js +0 -3
  384. package/2x/es/components/modal/modal.js +0 -3
  385. package/2x/es/components/modal/show.js +0 -1
  386. package/2x/es/components/nav-bar/nav-bar.d.ts +1 -1
  387. package/2x/es/components/nav-bar/nav-bar.js +0 -1
  388. package/2x/es/components/notice-bar/notice-bar.js +0 -7
  389. package/2x/es/components/number-keyboard/number-keyboard.css +1 -1
  390. package/2x/es/components/number-keyboard/number-keyboard.js +0 -18
  391. package/2x/es/components/page-indicator/page-indicator.js +0 -2
  392. package/2x/es/components/passcode-input/passcode-input.css +1 -1
  393. package/2x/es/components/passcode-input/passcode-input.js +2 -19
  394. package/2x/es/components/picker/picker.css +1 -0
  395. package/2x/es/components/picker/picker.js +0 -7
  396. package/2x/es/components/picker/prompt.js +0 -4
  397. package/2x/es/components/picker-view/columns-extend.js +0 -3
  398. package/2x/es/components/picker-view/picker-view.js +2 -4
  399. package/2x/es/components/picker-view/wheel.js +0 -14
  400. package/2x/es/components/popover/normalize-placement.js +0 -1
  401. package/2x/es/components/popover/popover-menu.js +2 -7
  402. package/2x/es/components/popover/popover.js +2 -8
  403. package/2x/es/components/popover/wrapper.js +0 -5
  404. package/2x/es/components/popup/popup.js +1 -10
  405. package/2x/es/components/progress-bar/progress-bar.js +0 -4
  406. package/2x/es/components/pull-to-refresh/pull-to-refresh.js +2 -27
  407. package/2x/es/components/radio/group.js +2 -2
  408. package/2x/es/components/radio/radio.js +0 -10
  409. package/2x/es/components/rate/rate.js +0 -4
  410. package/2x/es/components/search-bar/search-bar.js +0 -15
  411. package/2x/es/components/selector/selector.js +0 -3
  412. package/2x/es/components/side-bar/side-bar.js +0 -5
  413. package/2x/es/components/slider/marks.js +0 -4
  414. package/2x/es/components/slider/slider.js +12 -31
  415. package/2x/es/components/slider/thumb.js +0 -7
  416. package/2x/es/components/slider/ticks.js +0 -2
  417. package/2x/es/components/spin-loading/spin-loading.js +0 -1
  418. package/2x/es/components/stepper/stepper.js +2 -21
  419. package/2x/es/components/steps/steps.js +0 -4
  420. package/2x/es/components/swipe-action/swipe-action.js +0 -28
  421. package/2x/es/components/swiper/swiper.js +7 -26
  422. package/2x/es/components/switch/switch.js +0 -8
  423. package/2x/es/components/tab-bar/tab-bar.js +0 -9
  424. package/2x/es/components/tabs/tabs.js +0 -13
  425. package/2x/es/components/tag/tag.js +0 -1
  426. package/2x/es/components/text-area/text-area.js +0 -18
  427. package/2x/es/components/toast/methods.js +0 -8
  428. package/2x/es/components/toast/toast.js +0 -6
  429. package/2x/es/components/tree-select/multiple.js +26 -72
  430. package/2x/es/components/tree-select/tree-select.js +4 -19
  431. package/2x/es/components/virtual-input/virtual-input.js +0 -15
  432. package/2x/es/components/water-mark/water-mark.js +2 -5
  433. package/2x/es/global/index.js +2 -2
  434. package/2x/es/locales/ja-JP.d.ts +127 -0
  435. package/2x/es/locales/ja-JP.js +130 -0
  436. package/2x/es/utils/attach-properties-to-component.js +0 -2
  437. package/2x/es/utils/bound.js +0 -3
  438. package/2x/es/utils/convert-px.js +0 -5
  439. package/2x/es/utils/create-icon-component.js +0 -1
  440. package/2x/es/utils/dev-log.d.ts +1 -0
  441. package/2x/es/utils/dev-log.js +22 -0
  442. package/2x/es/utils/generate-int-array.js +0 -2
  443. package/2x/es/utils/get-container.d.ts +2 -1
  444. package/2x/es/utils/get-scroll-parent.js +0 -7
  445. package/2x/es/utils/measure-css-length.js +0 -4
  446. package/2x/es/utils/merge-locale.js +0 -4
  447. package/2x/es/utils/native-props.js +0 -6
  448. package/2x/es/utils/reduce-and-restore-motion.js +0 -2
  449. package/2x/es/utils/render-imperatively.js +0 -8
  450. package/2x/es/utils/render-to-body.js +0 -3
  451. package/2x/es/utils/render-to-container.js +0 -1
  452. package/2x/es/utils/render.js +6 -18
  453. package/2x/es/utils/shuffle.js +0 -2
  454. package/2x/es/utils/supports-passive.js +0 -2
  455. package/2x/es/utils/traverse-react-node.js +0 -2
  456. package/2x/es/utils/tree.js +0 -1
  457. package/2x/es/utils/undefined-fallback.js +0 -2
  458. package/2x/es/utils/use-initialized.js +0 -2
  459. package/2x/es/utils/use-lock-scroll.d.ts +1 -1
  460. package/2x/es/utils/use-lock-scroll.js +20 -11
  461. package/2x/es/utils/use-props-value.js +0 -2
  462. package/2x/es/utils/use-resize-effect.js +0 -1
  463. package/2x/es/utils/use-tab-list-scroll.js +0 -2
  464. package/2x/es/utils/use-touch.js +2 -13
  465. package/2x/es/utils/with-cache.js +0 -1
  466. package/2x/es/utils/with-default-props.js +0 -3
  467. package/2x/es/utils/with-stop-propagation.js +0 -4
  468. package/2x/package.json +3 -2
  469. package/bundle/antd-mobile.cjs.development.js +578 -373
  470. package/bundle/antd-mobile.cjs.js +11 -11
  471. package/bundle/antd-mobile.compatible.umd.js +2 -25435
  472. package/bundle/antd-mobile.es.development.js +579 -374
  473. package/bundle/antd-mobile.es.js +5188 -5020
  474. package/bundle/antd-mobile.umd.development.js +578 -373
  475. package/bundle/antd-mobile.umd.js +11 -11
  476. package/bundle/style.css +1 -1
  477. package/cjs/components/action-sheet/action-sheet.js +0 -17
  478. package/cjs/components/action-sheet/index.js +0 -5
  479. package/cjs/components/auto-center/auto-center.js +0 -6
  480. package/cjs/components/auto-center/index.js +0 -3
  481. package/cjs/components/avatar/avatar.js +0 -9
  482. package/cjs/components/avatar/fallback.js +0 -4
  483. package/cjs/components/avatar/index.js +0 -3
  484. package/cjs/components/badge/badge.js +0 -9
  485. package/cjs/components/badge/index.js +0 -5
  486. package/cjs/components/button/button.js +0 -15
  487. package/cjs/components/button/index.js +0 -3
  488. package/cjs/components/calendar/arrow-left-double.js +0 -4
  489. package/cjs/components/calendar/arrow-left.js +0 -4
  490. package/cjs/components/calendar/calendar.d.ts +3 -5
  491. package/cjs/components/calendar/calendar.js +21 -46
  492. package/cjs/components/calendar/convert.d.ts +6 -0
  493. package/cjs/components/calendar/convert.js +6 -4
  494. package/cjs/components/calendar/index.js +0 -3
  495. package/cjs/components/capsule-tabs/capsule-tabs.js +0 -25
  496. package/cjs/components/capsule-tabs/index.js +0 -5
  497. package/cjs/components/card/card.js +0 -11
  498. package/cjs/components/card/index.js +0 -3
  499. package/cjs/components/cascade-picker/cascade-picker-utils.js +0 -7
  500. package/cjs/components/cascade-picker/cascade-picker.js +3 -11
  501. package/cjs/components/cascade-picker/index.js +0 -5
  502. package/cjs/components/cascade-picker/prompt.js +0 -10
  503. package/cjs/components/cascade-picker-view/cascade-picker-view.js +3 -10
  504. package/cjs/components/cascade-picker-view/index.js +0 -2
  505. package/cjs/components/cascader/cascader.js +0 -21
  506. package/cjs/components/cascader/index.js +0 -7
  507. package/cjs/components/cascader/prompt.js +0 -10
  508. package/cjs/components/cascader-view/cascader-view.js +0 -30
  509. package/cjs/components/cascader-view/index.js +0 -6
  510. package/cjs/components/cascader-view/use-cascader-value-extend.js +0 -13
  511. package/cjs/components/center-popup/center-popup.js +0 -27
  512. package/cjs/components/center-popup/index.js +0 -3
  513. package/cjs/components/check-list/check-list-item.js +0 -19
  514. package/cjs/components/check-list/check-list.js +0 -14
  515. package/cjs/components/check-list/context.js +0 -2
  516. package/cjs/components/check-list/index.js +0 -6
  517. package/cjs/components/checkbox/check-icon.js +0 -5
  518. package/cjs/components/checkbox/checkbox.js +0 -26
  519. package/cjs/components/checkbox/group-context.js +0 -2
  520. package/cjs/components/checkbox/group.js +2 -9
  521. package/cjs/components/checkbox/indeterminate-icon.js +0 -5
  522. package/cjs/components/checkbox/index.js +0 -6
  523. package/cjs/components/checkbox/native-input.js +0 -6
  524. package/cjs/components/collapse/collapse.js +0 -31
  525. package/cjs/components/collapse/index.js +0 -5
  526. package/cjs/components/config-provider/config-provider.js +3 -17
  527. package/cjs/components/config-provider/index.js +0 -2
  528. package/cjs/components/date-picker/date-picker-date-utils.js +0 -28
  529. package/cjs/components/date-picker/date-picker-utils.js +0 -13
  530. package/cjs/components/date-picker/date-picker-week-utils.js +0 -24
  531. package/cjs/components/date-picker/date-picker.js +0 -15
  532. package/cjs/components/date-picker/index.js +0 -6
  533. package/cjs/components/date-picker/prompt.js +0 -10
  534. package/cjs/components/date-picker-view/date-picker-view.js +0 -15
  535. package/cjs/components/date-picker-view/index.js +0 -2
  536. package/cjs/components/dialog/alert.js +0 -5
  537. package/cjs/components/dialog/clear.js +0 -2
  538. package/cjs/components/dialog/confirm.js +0 -9
  539. package/cjs/components/dialog/dialog-action-button.js +0 -7
  540. package/cjs/components/dialog/dialog.js +0 -18
  541. package/cjs/components/dialog/index.js +0 -9
  542. package/cjs/components/dialog/show.js +0 -7
  543. package/cjs/components/divider/divider.js +0 -8
  544. package/cjs/components/divider/index.js +0 -3
  545. package/cjs/components/dot-loading/dot-loading.js +0 -9
  546. package/cjs/components/dot-loading/index.js +0 -3
  547. package/cjs/components/dropdown/dropdown.js +4 -21
  548. package/cjs/components/dropdown/index.js +0 -7
  549. package/cjs/components/dropdown/item.js +0 -12
  550. package/cjs/components/ellipsis/ellipsis.js +14 -34
  551. package/cjs/components/ellipsis/index.js +0 -3
  552. package/cjs/components/empty/empty-icon.js +0 -5
  553. package/cjs/components/empty/empty.js +0 -12
  554. package/cjs/components/empty/index.js +0 -3
  555. package/cjs/components/error-block/create-error-block.js +0 -10
  556. package/cjs/components/error-block/error-block.js +0 -3
  557. package/cjs/components/error-block/images/busy.js +0 -4
  558. package/cjs/components/error-block/images/default.js +0 -4
  559. package/cjs/components/error-block/images/disconnected.js +0 -4
  560. package/cjs/components/error-block/images/empty.js +0 -4
  561. package/cjs/components/error-block/images/index.js +0 -4
  562. package/cjs/components/error-block/index.js +0 -4
  563. package/cjs/components/floating-bubble/floating-bubble.js +2 -18
  564. package/cjs/components/floating-bubble/index.js +0 -3
  565. package/cjs/components/floating-panel/floating-panel.js +0 -21
  566. package/cjs/components/floating-panel/index.js +0 -3
  567. package/cjs/components/footer/footer.js +0 -12
  568. package/cjs/components/footer/index.js +0 -3
  569. package/cjs/components/form/context.js +0 -7
  570. package/cjs/components/form/form-array.js +0 -9
  571. package/cjs/components/form/form-item.css +0 -1
  572. package/cjs/components/form/form-item.js +33 -94
  573. package/cjs/components/form/form-subscribe.js +0 -8
  574. package/cjs/components/form/form.css +8 -3
  575. package/cjs/components/form/form.d.ts +2 -2
  576. package/cjs/components/form/form.js +11 -31
  577. package/cjs/components/form/header.js +0 -2
  578. package/cjs/components/form/index.css +8 -4
  579. package/cjs/components/form/index.d.ts +1 -1
  580. package/cjs/components/form/index.js +0 -10
  581. package/cjs/components/form/utils.js +4 -9
  582. package/cjs/components/grid/grid.js +0 -12
  583. package/cjs/components/grid/index.js +0 -5
  584. package/cjs/components/image/broken-image-icon.js +0 -4
  585. package/cjs/components/image/image-icon.js +0 -4
  586. package/cjs/components/image/image.js +0 -21
  587. package/cjs/components/image/index.js +0 -3
  588. package/cjs/components/image/lazy-detector.js +0 -6
  589. package/cjs/components/image/test/image.test.js +0 -10
  590. package/cjs/components/image-uploader/image-uploader.js +0 -39
  591. package/cjs/components/image-uploader/index.js +0 -3
  592. package/cjs/components/image-uploader/preview-item.js +0 -17
  593. package/cjs/components/image-viewer/image-viewer.js +0 -23
  594. package/cjs/components/image-viewer/index.js +0 -7
  595. package/cjs/components/image-viewer/methods.js +0 -10
  596. package/cjs/components/image-viewer/slide.js +0 -28
  597. package/cjs/components/image-viewer/slides.js +0 -13
  598. package/cjs/components/index-bar/index-bar.js +0 -25
  599. package/cjs/components/index-bar/index.js +0 -6
  600. package/cjs/components/index-bar/panel.js +0 -2
  601. package/cjs/components/index-bar/sidebar.js +0 -9
  602. package/cjs/components/infinite-scroll/index.js +0 -3
  603. package/cjs/components/infinite-scroll/infinite-scroll.js +4 -28
  604. package/cjs/components/input/index.js +0 -3
  605. package/cjs/components/input/input.js +2 -37
  606. package/cjs/components/jumbo-tabs/index.js +0 -5
  607. package/cjs/components/jumbo-tabs/jumbo-tabs.js +0 -25
  608. package/cjs/components/list/index.js +0 -6
  609. package/cjs/components/list/list-item.js +0 -12
  610. package/cjs/components/list/list.js +0 -9
  611. package/cjs/components/loading/index.js +0 -3
  612. package/cjs/components/mask/index.js +0 -3
  613. package/cjs/components/mask/mask.js +0 -19
  614. package/cjs/components/modal/alert.js +0 -5
  615. package/cjs/components/modal/clear.js +0 -2
  616. package/cjs/components/modal/confirm.js +0 -9
  617. package/cjs/components/modal/index.js +0 -9
  618. package/cjs/components/modal/modal-action-button.js +0 -7
  619. package/cjs/components/modal/modal.js +0 -18
  620. package/cjs/components/modal/show.js +0 -7
  621. package/cjs/components/nav-bar/index.js +0 -3
  622. package/cjs/components/nav-bar/nav-bar.d.ts +1 -1
  623. package/cjs/components/nav-bar/nav-bar.js +0 -10
  624. package/cjs/components/notice-bar/index.js +0 -3
  625. package/cjs/components/notice-bar/notice-bar.js +0 -19
  626. package/cjs/components/number-keyboard/index.js +0 -3
  627. package/cjs/components/number-keyboard/number-keyboard.css +1 -1
  628. package/cjs/components/number-keyboard/number-keyboard.js +0 -33
  629. package/cjs/components/page-indicator/index.js +0 -3
  630. package/cjs/components/page-indicator/page-indicator.js +0 -10
  631. package/cjs/components/passcode-input/index.js +0 -3
  632. package/cjs/components/passcode-input/passcode-input.css +1 -1
  633. package/cjs/components/passcode-input/passcode-input.js +2 -30
  634. package/cjs/components/picker/index.js +0 -6
  635. package/cjs/components/picker/picker-utils.js +0 -2
  636. package/cjs/components/picker/picker.css +1 -0
  637. package/cjs/components/picker/picker.js +0 -25
  638. package/cjs/components/picker/prompt.js +0 -10
  639. package/cjs/components/picker-view/columns-extend.js +0 -7
  640. package/cjs/components/picker-view/index.js +0 -3
  641. package/cjs/components/picker-view/picker-view.js +2 -16
  642. package/cjs/components/picker-view/wheel.js +0 -27
  643. package/cjs/components/popover/arrow.js +0 -5
  644. package/cjs/components/popover/index.js +0 -7
  645. package/cjs/components/popover/normalize-placement.js +0 -2
  646. package/cjs/components/popover/popover-menu.js +2 -14
  647. package/cjs/components/popover/popover.js +2 -27
  648. package/cjs/components/popover/wrapper.js +0 -10
  649. package/cjs/components/popup/index.js +0 -3
  650. package/cjs/components/popup/popup.js +1 -30
  651. package/cjs/components/progress-bar/index.js +0 -3
  652. package/cjs/components/progress-bar/progress-bar.js +0 -13
  653. package/cjs/components/progress-circle/index.js +0 -3
  654. package/cjs/components/progress-circle/progress-circle.js +0 -7
  655. package/cjs/components/pull-to-refresh/index.js +0 -3
  656. package/cjs/components/pull-to-refresh/pull-to-refresh.js +2 -43
  657. package/cjs/components/radio/group-context.js +0 -2
  658. package/cjs/components/radio/group.js +2 -10
  659. package/cjs/components/radio/index.js +0 -6
  660. package/cjs/components/radio/radio.js +0 -26
  661. package/cjs/components/rate/index.js +0 -3
  662. package/cjs/components/rate/rate.js +0 -18
  663. package/cjs/components/rate/star.js +0 -4
  664. package/cjs/components/result/index.js +0 -3
  665. package/cjs/components/result/result.js +0 -11
  666. package/cjs/components/result-page/index.js +0 -6
  667. package/cjs/components/result-page/result-page-card.js +0 -7
  668. package/cjs/components/result-page/result-page.js +0 -15
  669. package/cjs/components/safe-area/index.js +0 -3
  670. package/cjs/components/safe-area/safe-area.js +0 -7
  671. package/cjs/components/scroll-mask/index.js +0 -3
  672. package/cjs/components/scroll-mask/scroll-mask.js +0 -10
  673. package/cjs/components/search-bar/index.js +0 -3
  674. package/cjs/components/search-bar/search-bar.js +0 -28
  675. package/cjs/components/selector/check-mark.js +0 -4
  676. package/cjs/components/selector/index.js +0 -3
  677. package/cjs/components/selector/selector.js +0 -15
  678. package/cjs/components/side-bar/corner.js +0 -5
  679. package/cjs/components/side-bar/index.js +0 -5
  680. package/cjs/components/side-bar/side-bar.js +0 -17
  681. package/cjs/components/skeleton/index.js +0 -5
  682. package/cjs/components/skeleton/skeleton.js +0 -15
  683. package/cjs/components/slider/index.js +0 -3
  684. package/cjs/components/slider/marks.js +0 -8
  685. package/cjs/components/slider/slider.js +12 -47
  686. package/cjs/components/slider/thumb-icon.js +0 -5
  687. package/cjs/components/slider/thumb.js +0 -17
  688. package/cjs/components/slider/ticks.js +0 -6
  689. package/cjs/components/space/index.js +0 -3
  690. package/cjs/components/space/space.js +0 -8
  691. package/cjs/components/spin-loading/index.js +0 -3
  692. package/cjs/components/spin-loading/spin-loading.js +0 -9
  693. package/cjs/components/stepper/index.js +0 -3
  694. package/cjs/components/stepper/stepper.js +2 -38
  695. package/cjs/components/steps/index.js +0 -6
  696. package/cjs/components/steps/step.js +0 -7
  697. package/cjs/components/steps/steps.js +0 -14
  698. package/cjs/components/swipe-action/index.js +0 -3
  699. package/cjs/components/swipe-action/swipe-action.js +0 -40
  700. package/cjs/components/swiper/index.js +0 -6
  701. package/cjs/components/swiper/swiper-item.js +0 -5
  702. package/cjs/components/swiper/swiper.js +7 -45
  703. package/cjs/components/switch/index.js +0 -3
  704. package/cjs/components/switch/spin-icon.js +0 -5
  705. package/cjs/components/switch/switch.js +0 -23
  706. package/cjs/components/tab-bar/index.js +0 -5
  707. package/cjs/components/tab-bar/tab-bar.js +0 -22
  708. package/cjs/components/tabs/index.js +0 -5
  709. package/cjs/components/tabs/tabs.js +0 -34
  710. package/cjs/components/tag/index.js +0 -3
  711. package/cjs/components/tag/tag.js +0 -9
  712. package/cjs/components/text-area/index.js +0 -3
  713. package/cjs/components/text-area/text-area.js +0 -27
  714. package/cjs/components/toast/index.js +0 -3
  715. package/cjs/components/toast/methods.js +0 -17
  716. package/cjs/components/toast/toast.js +0 -19
  717. package/cjs/components/tree-select/index.js +0 -6
  718. package/cjs/components/tree-select/multiple.js +26 -87
  719. package/cjs/components/tree-select/tree-select.js +4 -32
  720. package/cjs/components/virtual-input/index.js +0 -3
  721. package/cjs/components/virtual-input/virtual-input.js +0 -28
  722. package/cjs/components/water-mark/index.js +0 -3
  723. package/cjs/components/water-mark/water-mark.js +2 -15
  724. package/cjs/global/index.js +2 -3
  725. package/cjs/index.js +0 -85
  726. package/cjs/locales/en-US.js +0 -3
  727. package/cjs/locales/es-ES.js +0 -3
  728. package/cjs/locales/fa-IR.js +0 -3
  729. package/cjs/locales/fr-FR.js +0 -3
  730. package/cjs/locales/id-ID.js +0 -3
  731. package/cjs/locales/ja-JP.d.ts +127 -0
  732. package/cjs/locales/ja-JP.js +137 -0
  733. package/cjs/locales/kk-KZ.js +0 -3
  734. package/cjs/locales/ko-KR.js +0 -3
  735. package/cjs/locales/zh-CN.js +0 -3
  736. package/cjs/locales/zh-HK.js +0 -3
  737. package/cjs/locales/zh-TW.js +0 -3
  738. package/cjs/utils/attach-properties-to-component.js +0 -3
  739. package/cjs/utils/bound.js +0 -4
  740. package/cjs/utils/convert-px.js +0 -9
  741. package/cjs/utils/create-icon-component.js +0 -2
  742. package/cjs/utils/dev-log.d.ts +1 -0
  743. package/cjs/utils/dev-log.js +23 -3
  744. package/cjs/utils/generate-int-array.js +0 -3
  745. package/cjs/utils/get-container.d.ts +2 -1
  746. package/cjs/utils/get-container.js +0 -1
  747. package/cjs/utils/get-scroll-parent.js +0 -9
  748. package/cjs/utils/is-node-with-content.js +0 -1
  749. package/cjs/utils/matrix.js +0 -18
  750. package/cjs/utils/measure-css-length.js +0 -7
  751. package/cjs/utils/merge-locale.js +0 -5
  752. package/cjs/utils/native-props.js +0 -10
  753. package/cjs/utils/nearest.js +0 -1
  754. package/cjs/utils/noop.js +0 -2
  755. package/cjs/utils/reduce-and-restore-motion.js +0 -10
  756. package/cjs/utils/render-imperatively.js +0 -15
  757. package/cjs/utils/render-to-body.js +0 -5
  758. package/cjs/utils/render-to-container.js +0 -5
  759. package/cjs/utils/render.js +4 -22
  760. package/cjs/utils/rubberband.js +0 -3
  761. package/cjs/utils/should-render.js +0 -4
  762. package/cjs/utils/shuffle.js +0 -3
  763. package/cjs/utils/sleep.js +0 -2
  764. package/cjs/utils/supports-passive.js +0 -4
  765. package/cjs/utils/to-css-length.js +0 -1
  766. package/cjs/utils/traverse-react-node.js +0 -6
  767. package/cjs/utils/tree.js +0 -2
  768. package/cjs/utils/undefined-fallback.js +0 -3
  769. package/cjs/utils/use-drag-and-pinch.js +0 -2
  770. package/cjs/utils/use-initialized.js +0 -4
  771. package/cjs/utils/use-inner-visible.js +0 -3
  772. package/cjs/utils/use-isomorphic-update-layout-effect.js +0 -2
  773. package/cjs/utils/use-lock-scroll.d.ts +1 -1
  774. package/cjs/utils/use-lock-scroll.js +20 -16
  775. package/cjs/utils/use-mutation-effect.js +0 -3
  776. package/cjs/utils/use-props-value.js +0 -5
  777. package/cjs/utils/use-ref-state.js +0 -2
  778. package/cjs/utils/use-resize-effect.js +0 -3
  779. package/cjs/utils/use-tab-list-scroll.js +0 -9
  780. package/cjs/utils/use-touch.js +2 -15
  781. package/cjs/utils/validate.js +0 -9
  782. package/cjs/utils/with-cache.js +0 -2
  783. package/cjs/utils/with-default-props.js +0 -6
  784. package/cjs/utils/with-stop-propagation.js +0 -8
  785. package/es/components/action-sheet/action-sheet.js +0 -5
  786. package/es/components/button/button.js +0 -4
  787. package/es/components/calendar/calendar.d.ts +3 -5
  788. package/es/components/calendar/calendar.js +22 -26
  789. package/es/components/calendar/convert.d.ts +6 -0
  790. package/es/components/calendar/convert.js +4 -3
  791. package/es/components/capsule-tabs/capsule-tabs.js +0 -7
  792. package/es/components/card/card.js +0 -4
  793. package/es/components/cascade-picker/cascade-picker-utils.js +0 -5
  794. package/es/components/cascade-picker/cascade-picker.js +3 -4
  795. package/es/components/cascade-picker/prompt.js +0 -4
  796. package/es/components/cascade-picker-view/cascade-picker-view.js +3 -4
  797. package/es/components/cascader/cascader.js +0 -7
  798. package/es/components/cascader/prompt.js +0 -4
  799. package/es/components/cascader-view/cascader-view.js +0 -12
  800. package/es/components/cascader-view/use-cascader-value-extend.js +0 -9
  801. package/es/components/center-popup/center-popup.js +0 -5
  802. package/es/components/check-list/check-list-item.js +0 -5
  803. package/es/components/check-list/check-list.js +0 -3
  804. package/es/components/checkbox/checkbox.js +0 -11
  805. package/es/components/checkbox/group.js +2 -1
  806. package/es/components/collapse/collapse.js +0 -13
  807. package/es/components/config-provider/config-provider.js +3 -5
  808. package/es/components/date-picker/date-picker-date-utils.js +0 -15
  809. package/es/components/date-picker/date-picker-week-utils.js +0 -11
  810. package/es/components/date-picker/date-picker.js +0 -3
  811. package/es/components/date-picker/prompt.js +0 -4
  812. package/es/components/date-picker-view/date-picker-view.js +0 -3
  813. package/es/components/dialog/alert.js +0 -1
  814. package/es/components/dialog/confirm.js +0 -3
  815. package/es/components/dialog/dialog.js +0 -4
  816. package/es/components/dialog/show.js +0 -1
  817. package/es/components/dot-loading/dot-loading.js +0 -1
  818. package/es/components/dropdown/dropdown.js +4 -7
  819. package/es/components/dropdown/item.js +0 -3
  820. package/es/components/ellipsis/ellipsis.js +14 -24
  821. package/es/components/empty/empty.js +0 -5
  822. package/es/components/error-block/create-error-block.js +0 -2
  823. package/es/components/floating-bubble/floating-bubble.js +2 -8
  824. package/es/components/floating-panel/floating-panel.js +0 -9
  825. package/es/components/footer/footer.js +0 -3
  826. package/es/components/form/form-array.js +0 -3
  827. package/es/components/form/form-item.css +0 -1
  828. package/es/components/form/form-item.js +33 -75
  829. package/es/components/form/form.css +8 -3
  830. package/es/components/form/form.d.ts +2 -2
  831. package/es/components/form/form.js +11 -17
  832. package/es/components/form/index.css +8 -4
  833. package/es/components/form/index.d.ts +1 -1
  834. package/es/components/form/utils.js +4 -6
  835. package/es/components/grid/grid.js +0 -2
  836. package/es/components/image/image.js +0 -8
  837. package/es/components/image-uploader/image-uploader.js +0 -21
  838. package/es/components/image-uploader/preview-item.js +0 -7
  839. package/es/components/image-viewer/image-viewer.js +0 -6
  840. package/es/components/image-viewer/methods.js +0 -2
  841. package/es/components/image-viewer/slide.js +0 -16
  842. package/es/components/image-viewer/slides.js +0 -4
  843. package/es/components/index-bar/index-bar.js +0 -11
  844. package/es/components/index-bar/sidebar.js +0 -1
  845. package/es/components/infinite-scroll/infinite-scroll.js +4 -15
  846. package/es/components/input/input.js +2 -23
  847. package/es/components/jumbo-tabs/jumbo-tabs.js +0 -7
  848. package/es/components/list/list-item.js +0 -1
  849. package/es/components/list/list.js +0 -1
  850. package/es/components/mask/mask.js +0 -4
  851. package/es/components/modal/alert.js +0 -1
  852. package/es/components/modal/confirm.js +0 -3
  853. package/es/components/modal/modal.js +0 -3
  854. package/es/components/modal/show.js +0 -1
  855. package/es/components/nav-bar/nav-bar.d.ts +1 -1
  856. package/es/components/nav-bar/nav-bar.js +0 -1
  857. package/es/components/notice-bar/notice-bar.js +0 -7
  858. package/es/components/number-keyboard/number-keyboard.css +1 -1
  859. package/es/components/number-keyboard/number-keyboard.js +0 -18
  860. package/es/components/page-indicator/page-indicator.js +0 -2
  861. package/es/components/passcode-input/passcode-input.css +1 -1
  862. package/es/components/passcode-input/passcode-input.js +2 -19
  863. package/es/components/picker/picker.css +1 -0
  864. package/es/components/picker/picker.js +0 -7
  865. package/es/components/picker/prompt.js +0 -4
  866. package/es/components/picker-view/columns-extend.js +0 -3
  867. package/es/components/picker-view/picker-view.js +2 -4
  868. package/es/components/picker-view/wheel.js +0 -14
  869. package/es/components/popover/normalize-placement.js +0 -1
  870. package/es/components/popover/popover-menu.js +2 -7
  871. package/es/components/popover/popover.js +2 -8
  872. package/es/components/popover/wrapper.js +0 -5
  873. package/es/components/popup/popup.js +1 -10
  874. package/es/components/progress-bar/progress-bar.js +0 -4
  875. package/es/components/pull-to-refresh/pull-to-refresh.js +2 -27
  876. package/es/components/radio/group.js +2 -2
  877. package/es/components/radio/radio.js +0 -10
  878. package/es/components/rate/rate.js +0 -4
  879. package/es/components/search-bar/search-bar.js +0 -15
  880. package/es/components/selector/selector.js +0 -3
  881. package/es/components/side-bar/side-bar.js +0 -5
  882. package/es/components/slider/marks.js +0 -4
  883. package/es/components/slider/slider.js +12 -31
  884. package/es/components/slider/thumb.js +0 -7
  885. package/es/components/slider/ticks.js +0 -2
  886. package/es/components/spin-loading/spin-loading.js +0 -1
  887. package/es/components/stepper/stepper.js +2 -21
  888. package/es/components/steps/steps.js +0 -4
  889. package/es/components/swipe-action/swipe-action.js +0 -28
  890. package/es/components/swiper/swiper.js +7 -26
  891. package/es/components/switch/switch.js +0 -8
  892. package/es/components/tab-bar/tab-bar.js +0 -9
  893. package/es/components/tabs/tabs.js +0 -13
  894. package/es/components/tag/tag.js +0 -1
  895. package/es/components/text-area/text-area.js +0 -18
  896. package/es/components/toast/methods.js +0 -8
  897. package/es/components/toast/toast.js +0 -6
  898. package/es/components/tree-select/multiple.js +26 -72
  899. package/es/components/tree-select/tree-select.js +4 -19
  900. package/es/components/virtual-input/virtual-input.js +0 -15
  901. package/es/components/water-mark/water-mark.js +2 -5
  902. package/es/global/index.js +2 -2
  903. package/es/locales/ja-JP.d.ts +127 -0
  904. package/es/locales/ja-JP.js +130 -0
  905. package/es/utils/attach-properties-to-component.js +0 -2
  906. package/es/utils/bound.js +0 -3
  907. package/es/utils/convert-px.js +0 -5
  908. package/es/utils/create-icon-component.js +0 -1
  909. package/es/utils/dev-log.d.ts +1 -0
  910. package/es/utils/dev-log.js +22 -0
  911. package/es/utils/generate-int-array.js +0 -2
  912. package/es/utils/get-container.d.ts +2 -1
  913. package/es/utils/get-scroll-parent.js +0 -7
  914. package/es/utils/measure-css-length.js +0 -4
  915. package/es/utils/merge-locale.js +0 -4
  916. package/es/utils/native-props.js +0 -6
  917. package/es/utils/reduce-and-restore-motion.js +0 -2
  918. package/es/utils/render-imperatively.js +0 -8
  919. package/es/utils/render-to-body.js +0 -3
  920. package/es/utils/render-to-container.js +0 -1
  921. package/es/utils/render.js +6 -18
  922. package/es/utils/shuffle.js +0 -2
  923. package/es/utils/supports-passive.js +0 -2
  924. package/es/utils/traverse-react-node.js +0 -2
  925. package/es/utils/tree.js +0 -1
  926. package/es/utils/undefined-fallback.js +0 -2
  927. package/es/utils/use-initialized.js +0 -2
  928. package/es/utils/use-lock-scroll.d.ts +1 -1
  929. package/es/utils/use-lock-scroll.js +20 -11
  930. package/es/utils/use-props-value.js +0 -2
  931. package/es/utils/use-resize-effect.js +0 -1
  932. package/es/utils/use-tab-list-scroll.js +0 -2
  933. package/es/utils/use-touch.js +2 -13
  934. package/es/utils/with-cache.js +0 -1
  935. package/es/utils/with-default-props.js +0 -3
  936. package/es/utils/with-stop-propagation.js +0 -4
  937. package/package.json +3 -2
  938. package/umd/antd-mobile.js +1 -1
  939. package/umd/antd-mobile.js.LICENSE.txt +3 -3
  940. package/2x/bundle/antd-mobile.compatible.umd.js +0 -25435
  941. package/2x/umd/antd-mobile.js +0 -25435
@@ -374,11 +374,11 @@ function attachPropertiesToComponent(component, properties) {
374
374
  return ret;
375
375
  }
376
376
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
377
- var classnames = { exports: {} };
377
+ var _classnames_2_3_2_classnames = { exports: {} };
378
378
  /*!
379
- Copyright (c) 2018 Jed Watson.
380
- Licensed under the MIT License (MIT), see
381
- http://jedwatson.github.io/classnames
379
+ Copyright (c) 2018 Jed Watson.
380
+ Licensed under the MIT License (MIT), see
381
+ http://jedwatson.github.io/classnames
382
382
  */
383
383
  (function(module2) {
384
384
  (function() {
@@ -400,14 +400,14 @@ var classnames = { exports: {} };
400
400
  }
401
401
  }
402
402
  } else if (argType === "object") {
403
- if (arg.toString === Object.prototype.toString) {
404
- for (var key in arg) {
405
- if (hasOwn.call(arg, key) && arg[key]) {
406
- classes.push(key);
407
- }
408
- }
409
- } else {
403
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
410
404
  classes.push(arg.toString());
405
+ continue;
406
+ }
407
+ for (var key in arg) {
408
+ if (hasOwn.call(arg, key) && arg[key]) {
409
+ classes.push(key);
410
+ }
411
411
  }
412
412
  }
413
413
  }
@@ -420,8 +420,8 @@ var classnames = { exports: {} };
420
420
  window.classNames = classNames2;
421
421
  }
422
422
  })();
423
- })(classnames);
424
- const classNames = classnames.exports;
423
+ })(_classnames_2_3_2_classnames);
424
+ const classNames = _classnames_2_3_2_classnames.exports;
425
425
  function withNativeProps(props, element) {
426
426
  const p = Object.assign({}, element.props);
427
427
  if (props.className) {
@@ -539,7 +539,9 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
539
539
  var funcProto$1 = Function.prototype, objectProto$c = Object.prototype;
540
540
  var funcToString$1 = funcProto$1.toString;
541
541
  var hasOwnProperty$a = objectProto$c.hasOwnProperty;
542
- var reIsNative = RegExp("^" + funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
542
+ var reIsNative = RegExp(
543
+ "^" + funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
544
+ );
543
545
  function baseIsNative$1(value) {
544
546
  if (!isObject$9(value) || isMasked(value)) {
545
547
  return false;
@@ -917,8 +919,10 @@ var isFunction$1 = function isFunction(value) {
917
919
  var isNumber = function isNumber2(value) {
918
920
  return typeof value === "number";
919
921
  };
922
+ var isDev = true;
923
+ const isDev$1 = isDev;
920
924
  function useMemoizedFn(fn) {
921
- {
925
+ if (isDev$1) {
922
926
  if (!isFunction$1(fn)) {
923
927
  console.error("useMemoizedFn expected parameter is a function, got " + typeof fn);
924
928
  }
@@ -955,7 +959,7 @@ function useLatest(value) {
955
959
  return ref;
956
960
  }
957
961
  var useUnmount = function useUnmount2(fn) {
958
- {
962
+ if (isDev$1) {
959
963
  if (!isFunction$1(fn)) {
960
964
  console.error("useUnmount expected parameter is a function, got " + typeof fn);
961
965
  }
@@ -1124,7 +1128,7 @@ function throttle$1(func, wait, options) {
1124
1128
  }
1125
1129
  var throttle_1 = throttle$1;
1126
1130
  var useMount = function useMount2(fn) {
1127
- {
1131
+ if (isDev$1) {
1128
1132
  if (!isFunction$1(fn)) {
1129
1133
  console.error('useMount: parameter `fn` expected to be a function, but got "' + typeof fn + '".');
1130
1134
  }
@@ -1294,7 +1298,7 @@ var dayjs_min = { exports: {} };
1294
1298
  }, p: function(t2) {
1295
1299
  return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
1296
1300
  }, u: function(t2) {
1297
- return t2 === void 0;
1301
+ return void 0 === t2;
1298
1302
  } }, v = "en", D = {};
1299
1303
  D[v] = M;
1300
1304
  var p = function(t2) {
@@ -1303,7 +1307,7 @@ var dayjs_min = { exports: {} };
1303
1307
  var i2;
1304
1308
  if (!e2)
1305
1309
  return v;
1306
- if (typeof e2 == "string") {
1310
+ if ("string" == typeof e2) {
1307
1311
  var s2 = e2.toLowerCase();
1308
1312
  D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
1309
1313
  var u2 = e2.split("-");
@@ -1317,7 +1321,7 @@ var dayjs_min = { exports: {} };
1317
1321
  }, w = function(t2, e2) {
1318
1322
  if (p(t2))
1319
1323
  return t2.clone();
1320
- var n2 = typeof e2 == "object" ? e2 : {};
1324
+ var n2 = "object" == typeof e2 ? e2 : {};
1321
1325
  return n2.date = t2, n2.args = arguments, new _(n2);
1322
1326
  }, O = g;
1323
1327
  O.l = S, O.i = p, O.w = function(t2, e2) {
@@ -1331,13 +1335,13 @@ var dayjs_min = { exports: {} };
1331
1335
  return m2.parse = function(t2) {
1332
1336
  this.$d = function(t3) {
1333
1337
  var e2 = t3.date, n2 = t3.utc;
1334
- if (e2 === null)
1338
+ if (null === e2)
1335
1339
  return new Date(NaN);
1336
1340
  if (O.u(e2))
1337
1341
  return new Date();
1338
1342
  if (e2 instanceof Date)
1339
1343
  return new Date(e2);
1340
- if (typeof e2 == "string" && !/Z$/i.test(e2)) {
1344
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
1341
1345
  var r2 = e2.match(l);
1342
1346
  if (r2) {
1343
1347
  var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
@@ -1511,7 +1515,7 @@ var __spread$2 = globalThis && globalThis.__spread || function() {
1511
1515
  };
1512
1516
  function useDebounceFn(fn, options) {
1513
1517
  var _a;
1514
- {
1518
+ if (isDev$1) {
1515
1519
  if (!isFunction$1(fn)) {
1516
1520
  console.error("useDebounceFn expected parameter is a function, got " + typeof fn);
1517
1521
  }
@@ -2159,11 +2163,15 @@ var isEqual_1 = isEqual$1;
2159
2163
  }
2160
2164
  if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) {
2161
2165
  if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) {
2162
- Object.defineProperty(window.IntersectionObserverEntry.prototype, "isIntersecting", {
2163
- get: function() {
2164
- return this.intersectionRatio > 0;
2166
+ Object.defineProperty(
2167
+ window.IntersectionObserverEntry.prototype,
2168
+ "isIntersecting",
2169
+ {
2170
+ get: function() {
2171
+ return this.intersectionRatio > 0;
2172
+ }
2165
2173
  }
2166
- });
2174
+ );
2167
2175
  }
2168
2176
  return;
2169
2177
  }
@@ -2211,7 +2219,10 @@ var isEqual_1 = isEqual$1;
2211
2219
  if (options.root && options.root.nodeType != 1 && options.root.nodeType != 9) {
2212
2220
  throw new Error("root must be a Document or Element");
2213
2221
  }
2214
- this._checkForIntersections = throttle2(this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT);
2222
+ this._checkForIntersections = throttle2(
2223
+ this._checkForIntersections.bind(this),
2224
+ this.THROTTLE_TIMEOUT
2225
+ );
2215
2226
  this._callback = callback;
2216
2227
  this._observationTargets = [];
2217
2228
  this._queuedEntries = [];
@@ -2772,8 +2783,8 @@ function useInViewport(target, options) {
2772
2783
  }, [], target);
2773
2784
  return [state, ratio];
2774
2785
  }
2775
- var useIsomorphicLayoutEffect = isBrowser$3 ? React$1.useLayoutEffect : React$1.useEffect;
2776
- const useIsomorphicLayoutEffect$1 = useIsomorphicLayoutEffect;
2786
+ var useIsomorphicLayoutEffect$1 = isBrowser$3 ? React$1.useLayoutEffect : React$1.useEffect;
2787
+ const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
2777
2788
  var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
2778
2789
  function adopt(value) {
2779
2790
  return value instanceof P2 ? value : new P2(function(resolve) {
@@ -3571,7 +3582,7 @@ var __spread = globalThis && globalThis.__spread || function() {
3571
3582
  };
3572
3583
  function useThrottleFn(fn, options) {
3573
3584
  var _a;
3574
- {
3585
+ if (isDev$1) {
3575
3586
  if (!isFunction$1(fn)) {
3576
3587
  console.error("useThrottleFn expected parameter is a function, got " + typeof fn);
3577
3588
  }
@@ -3713,6 +3724,16 @@ if (canUseDom) {
3713
3724
  }
3714
3725
  let totalLockCount = 0;
3715
3726
  const BODY_LOCK_CLASS = "adm-overflow-hidden";
3727
+ function getScrollableElement(el) {
3728
+ let current = el === null || el === void 0 ? void 0 : el.parentElement;
3729
+ while (current) {
3730
+ if (current.clientHeight < current.scrollHeight) {
3731
+ return current;
3732
+ }
3733
+ current = current.parentElement;
3734
+ }
3735
+ return null;
3736
+ }
3716
3737
  function useLockScroll(rootRef, shouldLock) {
3717
3738
  const touch = useTouch();
3718
3739
  const onTouchMove = (event) => {
@@ -3721,6 +3742,13 @@ function useLockScroll(rootRef, shouldLock) {
3721
3742
  const el = getScrollParent(event.target, rootRef.current);
3722
3743
  if (!el)
3723
3744
  return;
3745
+ if (shouldLock === "strict") {
3746
+ const scrollableParent = getScrollableElement(event.target);
3747
+ if (scrollableParent === document.body || scrollableParent === document.documentElement) {
3748
+ event.preventDefault();
3749
+ return;
3750
+ }
3751
+ }
3724
3752
  const {
3725
3753
  scrollHeight,
3726
3754
  offsetHeight,
@@ -3800,9 +3828,9 @@ let findTimeout = (time) => ~(~timeouts.findIndex((t) => t.time > time) || ~time
3800
3828
  raf.cancel = (fn) => {
3801
3829
  onStartQueue.delete(fn);
3802
3830
  onFrameQueue.delete(fn);
3831
+ onFinishQueue.delete(fn);
3803
3832
  updateQueue.delete(fn);
3804
3833
  writeQueue.delete(fn);
3805
- onFinishQueue.delete(fn);
3806
3834
  };
3807
3835
  raf.sync = (fn) => {
3808
3836
  sync = true;
@@ -3880,14 +3908,15 @@ function update() {
3880
3908
  eachSafely(timeouts.splice(0, count), (t) => t.handler());
3881
3909
  pendingCount -= count;
3882
3910
  }
3911
+ if (!pendingCount) {
3912
+ stop();
3913
+ return;
3914
+ }
3883
3915
  onStartQueue.flush();
3884
3916
  updateQueue.flush(prevTs ? Math.min(64, ts - prevTs) : 16.667);
3885
3917
  onFrameQueue.flush();
3886
3918
  writeQueue.flush();
3887
3919
  onFinishQueue.flush();
3888
- if (!pendingCount) {
3889
- stop();
3890
- }
3891
3920
  }
3892
3921
  function makeQueue() {
3893
3922
  let next = /* @__PURE__ */ new Set();
@@ -4407,7 +4436,7 @@ function findRange(input2, inputRange) {
4407
4436
  return i - 1;
4408
4437
  }
4409
4438
  function _extends$4() {
4410
- _extends$4 = Object.assign || function(target) {
4439
+ _extends$4 = Object.assign ? Object.assign.bind() : function(target) {
4411
4440
  for (var i = 1; i < arguments.length; i++) {
4412
4441
  var source = arguments[i];
4413
4442
  for (var key in source) {
@@ -4569,10 +4598,10 @@ function deprecateDirectCall() {
4569
4598
  function isAnimatedString(value) {
4570
4599
  return is.str(value) && (value[0] == "#" || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
4571
4600
  }
4572
- const useLayoutEffect = typeof window !== "undefined" && window.document && window.document.createElement ? React__namespace.useLayoutEffect : React__namespace.useEffect;
4601
+ const useIsomorphicLayoutEffect = isSSR() ? React$1.useEffect : React$1.useLayoutEffect;
4573
4602
  const useIsMounted = () => {
4574
4603
  const isMounted = React$1.useRef(false);
4575
- useLayoutEffect(() => {
4604
+ useIsomorphicLayoutEffect(() => {
4576
4605
  isMounted.current = true;
4577
4606
  return () => {
4578
4607
  isMounted.current = false;
@@ -4820,7 +4849,7 @@ function getAnimatedType(value) {
4820
4849
  return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
4821
4850
  }
4822
4851
  function _extends$3() {
4823
- _extends$3 = Object.assign || function(target) {
4852
+ _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
4824
4853
  for (var i = 1; i < arguments.length; i++) {
4825
4854
  var source = arguments[i];
4826
4855
  for (var key in source) {
@@ -4854,7 +4883,7 @@ const withAnimated = (Component, host2) => {
4854
4883
  };
4855
4884
  const observer = new PropsObserver(callback, deps);
4856
4885
  const observerRef = React$1.useRef();
4857
- useLayoutEffect(() => {
4886
+ useIsomorphicLayoutEffect(() => {
4858
4887
  observerRef.current = observer;
4859
4888
  each(deps, (dep) => addFluidObserver(dep, observer));
4860
4889
  return () => {
@@ -4939,7 +4968,7 @@ const createHost = (components, {
4939
4968
  };
4940
4969
  const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
4941
4970
  function _extends$2() {
4942
- _extends$2 = Object.assign || function(target) {
4971
+ _extends$2 = Object.assign ? Object.assign.bind() : function(target) {
4943
4972
  for (var i = 1; i < arguments.length; i++) {
4944
4973
  var source = arguments[i];
4945
4974
  for (var key in source) {
@@ -5572,6 +5601,7 @@ class SpringValue extends FrameValue {
5572
5601
  const from = anim.fromValues[i];
5573
5602
  const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
5574
5603
  let velocity;
5604
+ const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
5575
5605
  if (!is.und(config2.duration)) {
5576
5606
  let p = 1;
5577
5607
  if (config2.duration > 0) {
@@ -5593,11 +5623,10 @@ class SpringValue extends FrameValue {
5593
5623
  const decay = config2.decay === true ? 0.998 : config2.decay;
5594
5624
  const e = Math.exp(-(1 - decay) * elapsed);
5595
5625
  position = from + v0 / (1 - decay) * (1 - e);
5596
- finished = Math.abs(node2.lastPosition - position) < 0.1;
5626
+ finished = Math.abs(node2.lastPosition - position) <= precision;
5597
5627
  velocity = v0 * e;
5598
5628
  } else {
5599
5629
  velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
5600
- const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
5601
5630
  const restVelocity = config2.restVelocity || precision / 10;
5602
5631
  const bounceFactor = config2.clamp ? 0 : config2.bounce;
5603
5632
  const canBounce = !is.und(bounceFactor);
@@ -6590,7 +6619,7 @@ function useSprings(length, props, deps) {
6590
6619
  const context = React$1.useContext(SpringContext);
6591
6620
  const prevContext = usePrev(context);
6592
6621
  const hasContext = context !== prevContext && hasProps(context);
6593
- useLayoutEffect(() => {
6622
+ useIsomorphicLayoutEffect(() => {
6594
6623
  layoutId.current++;
6595
6624
  state.ctrls = ctrls.current;
6596
6625
  const {
@@ -7676,7 +7705,7 @@ const defaultPopupBaseProps = {
7676
7705
  };
7677
7706
  function useInnerVisible(outerVisible) {
7678
7707
  const [innerVisible, setInnerVisible] = React$1.useState(outerVisible);
7679
- useIsomorphicLayoutEffect$1(() => {
7708
+ useIsomorphicLayoutEffect$2(() => {
7680
7709
  setInnerVisible(outerVisible);
7681
7710
  }, [outerVisible]);
7682
7711
  return innerVisible;
@@ -7689,13 +7718,13 @@ const Popup = (p) => {
7689
7718
  const props = mergeProps(defaultProps$12, p);
7690
7719
  const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
7691
7720
  const [active, setActive] = React$1.useState(props.visible);
7692
- useIsomorphicLayoutEffect$1(() => {
7721
+ useIsomorphicLayoutEffect$2(() => {
7693
7722
  if (props.visible) {
7694
7723
  setActive(true);
7695
7724
  }
7696
7725
  }, [props.visible]);
7697
7726
  const ref = React$1.useRef(null);
7698
- useLockScroll(ref, props.disableBodyScroll && active);
7727
+ useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
7699
7728
  const unmountedRef = useUnmountedRef$1();
7700
7729
  const {
7701
7730
  percent
@@ -7994,12 +8023,12 @@ const AutoCenter = (props) => {
7994
8023
  };
7995
8024
  const avatar = "";
7996
8025
  const image = "";
7997
- var stagedComponents = {};
8026
+ var _stagedComponents_1_1_3_stagedComponents = {};
7998
8027
  var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
7999
8028
  return mod && mod.__esModule ? mod : { "default": mod };
8000
8029
  };
8001
- Object.defineProperty(stagedComponents, "__esModule", { value: true });
8002
- var staged_1 = stagedComponents.staged = void 0;
8030
+ Object.defineProperty(_stagedComponents_1_1_3_stagedComponents, "__esModule", { value: true });
8031
+ var staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = void 0;
8003
8032
  const react_1 = __importDefault(React__default.default);
8004
8033
  function processNext(next) {
8005
8034
  if (typeof next === "function") {
@@ -8018,7 +8047,7 @@ function staged(stage) {
8018
8047
  return processNext(next);
8019
8048
  };
8020
8049
  }
8021
- staged_1 = stagedComponents.staged = staged;
8050
+ staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = staged;
8022
8051
  function toCSSLength(val) {
8023
8052
  return typeof val === "number" ? `${val}px` : val;
8024
8053
  }
@@ -8034,7 +8063,7 @@ const LazyDetector = (props) => {
8034
8063
  ref
8035
8064
  });
8036
8065
  };
8037
- const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$1);
8066
+ const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$2);
8038
8067
  const ImageIcon = () => React__default.default.createElement("svg", {
8039
8068
  viewBox: "0 0 48 48",
8040
8069
  xmlns: "http://www.w3.org/2000/svg"
@@ -8416,7 +8445,7 @@ var isoWeek$1 = { exports: {} };
8416
8445
  var n = d.startOf;
8417
8446
  d.startOf = function(e2, t2) {
8418
8447
  var i2 = this.$utils(), s2 = !!i2.u(t2) || t2;
8419
- return i2.p(e2) === "isoweek" ? s2 ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : n.bind(this)(e2, t2);
8448
+ return "isoweek" === i2.p(e2) ? s2 ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : n.bind(this)(e2, t2);
8420
8449
  };
8421
8450
  };
8422
8451
  });
@@ -8455,6 +8484,9 @@ function convertValueToRange(selectionMode, value) {
8455
8484
  }
8456
8485
  return [value, value];
8457
8486
  }
8487
+ function convertPageToDayjs(page) {
8488
+ return dayjs().year(page.year).month(page.month - 1).date(1);
8489
+ }
8458
8490
  dayjs.extend(isoWeek);
8459
8491
  const classPrefix$1b = "adm-calendar";
8460
8492
  const defaultProps$Y = {
@@ -8507,35 +8539,51 @@ const Calendar = React$1.forwardRef((p, ref) => {
8507
8539
  } else {
8508
8540
  page = pageOrPageGenerator;
8509
8541
  }
8510
- setCurrent(dayjs().year(page.year).month(page.month - 1).date(1));
8542
+ setCurrent(convertPageToDayjs(page));
8511
8543
  },
8512
8544
  jumpToToday: () => {
8513
8545
  setCurrent(dayjs().date(1));
8514
8546
  }
8515
8547
  }));
8548
+ const handlePageChange = (action, num, type4) => {
8549
+ const nxtCurrent = current[action](num, type4);
8550
+ if (action === "subtract" && props.minPage) {
8551
+ const minPage = convertPageToDayjs(props.minPage);
8552
+ if (nxtCurrent.isBefore(minPage, type4)) {
8553
+ return;
8554
+ }
8555
+ }
8556
+ if (action === "add" && props.maxPage) {
8557
+ const maxPage = convertPageToDayjs(props.maxPage);
8558
+ if (nxtCurrent.isAfter(maxPage, type4)) {
8559
+ return;
8560
+ }
8561
+ }
8562
+ setCurrent(current[action](num, type4));
8563
+ };
8516
8564
  const header = React__default.default.createElement("div", {
8517
8565
  className: `${classPrefix$1b}-header`
8518
8566
  }, React__default.default.createElement("a", {
8519
8567
  className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-year`,
8520
8568
  onClick: () => {
8521
- setCurrent(current.subtract(1, "year"));
8569
+ handlePageChange("subtract", 1, "year");
8522
8570
  }
8523
8571
  }, props.prevYearButton), React__default.default.createElement("a", {
8524
8572
  className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-month`,
8525
8573
  onClick: () => {
8526
- setCurrent(current.subtract(1, "month"));
8574
+ handlePageChange("subtract", 1, "month");
8527
8575
  }
8528
8576
  }, props.prevMonthButton), React__default.default.createElement("div", {
8529
8577
  className: `${classPrefix$1b}-title`
8530
8578
  }, locale.Calendar.renderYearAndMonth(current.year(), current.month() + 1)), React__default.default.createElement("a", {
8531
8579
  className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-month`),
8532
8580
  onClick: () => {
8533
- setCurrent(current.add(1, "month"));
8581
+ handlePageChange("add", 1, "month");
8534
8582
  }
8535
8583
  }, props.nextMonthButton), React__default.default.createElement("a", {
8536
8584
  className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-year`),
8537
8585
  onClick: () => {
8538
- setCurrent(current.add(1, "year"));
8586
+ handlePageChange("add", 1, "year");
8539
8587
  }
8540
8588
  }, props.nextYearButton));
8541
8589
  const maxDay = React$1.useMemo(() => props.max && dayjs(props.max), [props.max]);
@@ -8637,7 +8685,7 @@ const Calendar = React$1.forwardRef((p, ref) => {
8637
8685
  const capsuleTabs = "";
8638
8686
  function useResizeEffect(effect, targetRef) {
8639
8687
  const fn = useMemoizedFn(effect);
8640
- useIsomorphicLayoutEffect$1(() => {
8688
+ useIsomorphicLayoutEffect$2(() => {
8641
8689
  const target = targetRef.current;
8642
8690
  if (!target)
8643
8691
  return;
@@ -8715,7 +8763,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
8715
8763
  immediate: immediate && !scrollLeft.isAnimating
8716
8764
  });
8717
8765
  }
8718
- useIsomorphicLayoutEffect$1(() => {
8766
+ useIsomorphicLayoutEffect$2(() => {
8719
8767
  animate(true);
8720
8768
  }, []);
8721
8769
  useIsomorphicUpdateLayoutEffect(() => {
@@ -8792,7 +8840,7 @@ const ScrollMask = (props) => {
8792
8840
  }
8793
8841
  }));
8794
8842
  };
8795
- var reactIs$1 = { exports: {} };
8843
+ var _reactIs_17_0_2_reactIs = { exports: {} };
8796
8844
  var reactIs_development$1 = {};
8797
8845
  /** @license React v17.0.2
8798
8846
  * react-is.development.js
@@ -8987,12 +9035,12 @@ var reactIs_development$1 = {};
8987
9035
  {
8988
9036
  module2.exports = reactIs_development$1;
8989
9037
  }
8990
- })(reactIs$1);
9038
+ })(_reactIs_17_0_2_reactIs);
8991
9039
  function traverseReactNode(children, fn) {
8992
9040
  let i = 0;
8993
9041
  function handle(target) {
8994
9042
  React__default.default.Children.forEach(target, (child) => {
8995
- if (!reactIs$1.exports.isFragment(child)) {
9043
+ if (!_reactIs_17_0_2_reactIs.exports.isFragment(child)) {
8996
9044
  fn(child, i);
8997
9045
  i += 1;
8998
9046
  } else {
@@ -9191,7 +9239,7 @@ function ownKeys$1(object4, enumerableOnly) {
9191
9239
  }
9192
9240
  function _objectSpread2$1(target) {
9193
9241
  for (var i = 1; i < arguments.length; i++) {
9194
- var source = arguments[i] != null ? arguments[i] : {};
9242
+ var source = null != arguments[i] ? arguments[i] : {};
9195
9243
  i % 2 ? ownKeys$1(Object(source), true).forEach(function(key) {
9196
9244
  _defineProperty$1(target, key, source[key]);
9197
9245
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
@@ -9913,7 +9961,7 @@ Please upgrade to the latest version.`);
9913
9961
  this.emit();
9914
9962
  }
9915
9963
  pointerClick(event) {
9916
- if (!this.state.tap) {
9964
+ if (!this.state.tap && event.detail > 0) {
9917
9965
  event.preventDefault();
9918
9966
  event.stopPropagation();
9919
9967
  }
@@ -10621,23 +10669,21 @@ function resolveWith(config2 = {}, resolvers) {
10621
10669
  }
10622
10670
  return result2;
10623
10671
  }
10624
- function parse$1(config2, gestureKey) {
10625
- const _ref = config2, {
10672
+ function parse$1(newConfig, gestureKey, _config = {}) {
10673
+ const _ref = newConfig, {
10626
10674
  target,
10627
10675
  eventOptions,
10628
10676
  window: window2,
10629
10677
  enabled,
10630
10678
  transform
10631
10679
  } = _ref, rest = _objectWithoutProperties$1(_ref, _excluded$3);
10632
- const _config = {
10633
- shared: resolveWith({
10634
- target,
10635
- eventOptions,
10636
- window: window2,
10637
- enabled,
10638
- transform
10639
- }, sharedConfigResolver)
10640
- };
10680
+ _config.shared = resolveWith({
10681
+ target,
10682
+ eventOptions,
10683
+ window: window2,
10684
+ enabled,
10685
+ transform
10686
+ }, sharedConfigResolver);
10641
10687
  if (gestureKey) {
10642
10688
  const resolver = ConfigResolverMap.get(gestureKey);
10643
10689
  _config[gestureKey] = resolveWith(_objectSpread2$1({
@@ -10741,7 +10787,7 @@ class Controller {
10741
10787
  this.nativeHandlers = nativeHandlers;
10742
10788
  }
10743
10789
  applyConfig(config2, gestureKey) {
10744
- this.config = parse$1(config2, gestureKey);
10790
+ this.config = parse$1(config2, gestureKey, this.config);
10745
10791
  }
10746
10792
  clean() {
10747
10793
  this._targetEventStore.clean();
@@ -10988,13 +11034,13 @@ const Wheel = React$1.memo((props) => {
10988
11034
  const rootRef = React$1.useRef(null);
10989
11035
  const itemHeightMeasureRef = React$1.useRef(null);
10990
11036
  const itemHeight = React$1.useRef(34);
10991
- useIsomorphicLayoutEffect$1(() => {
11037
+ useIsomorphicLayoutEffect$2(() => {
10992
11038
  const itemHeightMeasure = itemHeightMeasureRef.current;
10993
11039
  if (!itemHeightMeasure)
10994
11040
  return;
10995
11041
  itemHeight.current = measureCSSLength(window.getComputedStyle(itemHeightMeasure).getPropertyValue("height"));
10996
11042
  });
10997
- useIsomorphicLayoutEffect$1(() => {
11043
+ useIsomorphicLayoutEffect$2(() => {
10998
11044
  if (draggingRef.current)
10999
11045
  return;
11000
11046
  if (value === null)
@@ -11008,7 +11054,7 @@ const Wheel = React$1.memo((props) => {
11008
11054
  immediate: y.goal !== finalPosition
11009
11055
  });
11010
11056
  }, [value, column]);
11011
- useIsomorphicLayoutEffect$1(() => {
11057
+ useIsomorphicLayoutEffect$2(() => {
11012
11058
  if (column.length === 0) {
11013
11059
  if (value !== null) {
11014
11060
  onSelect(null);
@@ -11243,7 +11289,7 @@ var useSyncExternalStoreShim_development = {};
11243
11289
  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
11244
11290
  }
11245
11291
  var objectIs = typeof Object.is === "function" ? Object.is : is2;
11246
- var useState = React2.useState, useEffect = React2.useEffect, useLayoutEffect2 = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
11292
+ var useState = React2.useState, useEffect = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
11247
11293
  var didWarnOld18Alpha = false;
11248
11294
  var didWarnUncachedGetSnapshot = false;
11249
11295
  function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
@@ -11271,7 +11317,7 @@ var useSyncExternalStoreShim_development = {};
11271
11317
  getSnapshot
11272
11318
  }
11273
11319
  }), inst = _useState[0].inst, forceUpdate = _useState[1];
11274
- useLayoutEffect2(function() {
11320
+ useLayoutEffect(function() {
11275
11321
  inst.value = value;
11276
11322
  inst.getSnapshot = getSnapshot;
11277
11323
  if (checkIfSnapshotChanged(inst)) {
@@ -11855,7 +11901,7 @@ const Tabs$1 = (p) => {
11855
11901
  immediate
11856
11902
  });
11857
11903
  }
11858
- useIsomorphicLayoutEffect$1(() => {
11904
+ useIsomorphicLayoutEffect$2(() => {
11859
11905
  animate(!x.isAnimating);
11860
11906
  }, []);
11861
11907
  useIsomorphicUpdateLayoutEffect(() => {
@@ -11890,7 +11936,7 @@ const Tabs$1 = (p) => {
11890
11936
  trailing: true,
11891
11937
  leading: true
11892
11938
  });
11893
- useIsomorphicLayoutEffect$1(() => {
11939
+ useIsomorphicLayoutEffect$2(() => {
11894
11940
  updateMask(true);
11895
11941
  }, []);
11896
11942
  return withNativeProps(props, React__default.default.createElement("div", {
@@ -12480,7 +12526,7 @@ const CenterPopup = (p) => {
12480
12526
  }
12481
12527
  });
12482
12528
  const [active, setActive] = React$1.useState(props.visible);
12483
- useIsomorphicLayoutEffect$1(() => {
12529
+ useIsomorphicLayoutEffect$2(() => {
12484
12530
  if (props.visible) {
12485
12531
  setActive(true);
12486
12532
  }
@@ -12542,18 +12588,22 @@ const defaultProps$O = {
12542
12588
  const Group$1 = (p) => {
12543
12589
  const props = mergeProps(defaultProps$O, p);
12544
12590
  const [value, setValue2] = usePropsValue(props);
12545
- return React__default.default.createElement(CheckboxGroupContext.Provider, {
12546
- value: {
12547
- value,
12548
- disabled: props.disabled,
12549
- check: (v) => {
12550
- setValue2([...value, v]);
12551
- },
12552
- uncheck: (v) => {
12553
- setValue2(value.filter((item) => item !== v));
12591
+ return React__default.default.createElement(
12592
+ CheckboxGroupContext.Provider,
12593
+ {
12594
+ value: {
12595
+ value,
12596
+ disabled: props.disabled,
12597
+ check: (v) => {
12598
+ setValue2([...value, v]);
12599
+ },
12600
+ uncheck: (v) => {
12601
+ setValue2(value.filter((item) => item !== v));
12602
+ }
12554
12603
  }
12555
- }
12556
- }, props.children);
12604
+ },
12605
+ props.children
12606
+ );
12557
12607
  };
12558
12608
  const CheckIcon = React$1.memo((props) => {
12559
12609
  return withNativeProps(props, React__default.default.createElement("svg", {
@@ -12837,7 +12887,7 @@ var isoWeeksInYear$1 = { exports: {} };
12837
12887
  return function(e, n) {
12838
12888
  n.prototype.isoWeeksInYear = function() {
12839
12889
  var e2 = this.isLeapYear(), n2 = this.endOf("y").day();
12840
- return n2 === 4 || e2 && n2 === 5 ? 53 : 52;
12890
+ return 4 === n2 || e2 && 5 === n2 ? 53 : 52;
12841
12891
  };
12842
12892
  };
12843
12893
  });
@@ -13585,11 +13635,132 @@ const index$c = attachPropertiesToComponent(Dropdown, {
13585
13635
  Item
13586
13636
  });
13587
13637
  const ellipsis = "";
13638
+ var _runes_0_4_3_runes = { exports: {} };
13639
+ const HIGH_SURROGATE_START = 55296;
13640
+ const HIGH_SURROGATE_END = 56319;
13641
+ const LOW_SURROGATE_START = 56320;
13642
+ const REGIONAL_INDICATOR_START = 127462;
13643
+ const REGIONAL_INDICATOR_END = 127487;
13644
+ const FITZPATRICK_MODIFIER_START = 127995;
13645
+ const FITZPATRICK_MODIFIER_END = 127999;
13646
+ const VARIATION_MODIFIER_START = 65024;
13647
+ const VARIATION_MODIFIER_END = 65039;
13648
+ const DIACRITICAL_MARKS_START = 8400;
13649
+ const DIACRITICAL_MARKS_END = 8447;
13650
+ const ZWJ = 8205;
13651
+ const GRAPHEMS = [
13652
+ 776,
13653
+ 2359,
13654
+ 2359,
13655
+ 2367,
13656
+ 2367,
13657
+ 2984,
13658
+ 3007,
13659
+ 3021,
13660
+ 3633,
13661
+ 3635,
13662
+ 3648,
13663
+ 3657,
13664
+ 4352,
13665
+ 4449,
13666
+ 4520
13667
+ ];
13668
+ function runes(string3) {
13669
+ if (typeof string3 !== "string") {
13670
+ throw new Error("string cannot be undefined or null");
13671
+ }
13672
+ const result2 = [];
13673
+ let i = 0;
13674
+ let increment = 0;
13675
+ while (i < string3.length) {
13676
+ increment += nextUnits(i + increment, string3);
13677
+ if (isGraphem(string3[i + increment])) {
13678
+ increment++;
13679
+ }
13680
+ if (isVariationSelector(string3[i + increment])) {
13681
+ increment++;
13682
+ }
13683
+ if (isDiacriticalMark(string3[i + increment])) {
13684
+ increment++;
13685
+ }
13686
+ if (isZeroWidthJoiner(string3[i + increment])) {
13687
+ increment++;
13688
+ continue;
13689
+ }
13690
+ result2.push(string3.substring(i, i + increment));
13691
+ i += increment;
13692
+ increment = 0;
13693
+ }
13694
+ return result2;
13695
+ }
13696
+ function nextUnits(i, string3) {
13697
+ const current = string3[i];
13698
+ if (!isFirstOfSurrogatePair(current) || i === string3.length - 1) {
13699
+ return 1;
13700
+ }
13701
+ const currentPair = current + string3[i + 1];
13702
+ let nextPair = string3.substring(i + 2, i + 5);
13703
+ if (isRegionalIndicator(currentPair) && isRegionalIndicator(nextPair)) {
13704
+ return 4;
13705
+ }
13706
+ if (isFitzpatrickModifier(nextPair)) {
13707
+ return 4;
13708
+ }
13709
+ return 2;
13710
+ }
13711
+ function isFirstOfSurrogatePair(string3) {
13712
+ return string3 && betweenInclusive(string3[0].charCodeAt(0), HIGH_SURROGATE_START, HIGH_SURROGATE_END);
13713
+ }
13714
+ function isRegionalIndicator(string3) {
13715
+ return betweenInclusive(codePointFromSurrogatePair(string3), REGIONAL_INDICATOR_START, REGIONAL_INDICATOR_END);
13716
+ }
13717
+ function isFitzpatrickModifier(string3) {
13718
+ return betweenInclusive(codePointFromSurrogatePair(string3), FITZPATRICK_MODIFIER_START, FITZPATRICK_MODIFIER_END);
13719
+ }
13720
+ function isVariationSelector(string3) {
13721
+ return typeof string3 === "string" && betweenInclusive(string3.charCodeAt(0), VARIATION_MODIFIER_START, VARIATION_MODIFIER_END);
13722
+ }
13723
+ function isDiacriticalMark(string3) {
13724
+ return typeof string3 === "string" && betweenInclusive(string3.charCodeAt(0), DIACRITICAL_MARKS_START, DIACRITICAL_MARKS_END);
13725
+ }
13726
+ function isGraphem(string3) {
13727
+ return typeof string3 === "string" && GRAPHEMS.indexOf(string3.charCodeAt(0)) !== -1;
13728
+ }
13729
+ function isZeroWidthJoiner(string3) {
13730
+ return typeof string3 === "string" && string3.charCodeAt(0) === ZWJ;
13731
+ }
13732
+ function codePointFromSurrogatePair(pair) {
13733
+ const highOffset = pair.charCodeAt(0) - HIGH_SURROGATE_START;
13734
+ const lowOffset = pair.charCodeAt(1) - LOW_SURROGATE_START;
13735
+ return (highOffset << 10) + lowOffset + 65536;
13736
+ }
13737
+ function betweenInclusive(value, lower, upper) {
13738
+ return value >= lower && value <= upper;
13739
+ }
13740
+ function substring(string3, start2, width) {
13741
+ const chars = runes(string3);
13742
+ if (start2 === void 0) {
13743
+ return string3;
13744
+ }
13745
+ if (start2 >= chars.length) {
13746
+ return "";
13747
+ }
13748
+ const rest = chars.length - start2;
13749
+ const stringWidth = width === void 0 ? rest : width;
13750
+ let endIndex = start2 + stringWidth;
13751
+ if (endIndex > start2 + rest) {
13752
+ endIndex = void 0;
13753
+ }
13754
+ return chars.slice(start2, endIndex).join("");
13755
+ }
13756
+ _runes_0_4_3_runes.exports = runes;
13757
+ _runes_0_4_3_runes.exports.substr = substring;
13588
13758
  const classPrefix$S = `adm-ellipsis`;
13589
13759
  const defaultProps$G = {
13590
13760
  direction: "end",
13591
13761
  rows: 1,
13592
13762
  expandText: "",
13763
+ content: "",
13593
13764
  collapseText: "",
13594
13765
  stopPropagationForActionButtons: [],
13595
13766
  onContentClick: () => {
@@ -13601,6 +13772,10 @@ const Ellipsis = (p) => {
13601
13772
  const [ellipsised, setEllipsised] = React$1.useState({});
13602
13773
  const [expanded, setExpanded] = React$1.useState(false);
13603
13774
  const [exceeded, setExceeded] = React$1.useState(false);
13775
+ const chars = React$1.useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
13776
+ function getSubString(start2, end) {
13777
+ return chars.slice(start2, end).join("");
13778
+ }
13604
13779
  function calcEllipsised() {
13605
13780
  const root2 = rootRef.current;
13606
13781
  if (!root2)
@@ -13635,19 +13810,19 @@ const Ellipsis = (p) => {
13635
13810
  if (right - left <= 1) {
13636
13811
  if (props.direction === "end") {
13637
13812
  return {
13638
- leading: props.content.slice(0, left) + "..."
13813
+ leading: getSubString(0, left) + "..."
13639
13814
  };
13640
13815
  } else {
13641
13816
  return {
13642
- tailing: "..." + props.content.slice(right, end)
13817
+ tailing: "..." + getSubString(right, end)
13643
13818
  };
13644
13819
  }
13645
13820
  }
13646
13821
  const middle2 = Math.round((left + right) / 2);
13647
13822
  if (props.direction === "end") {
13648
- container.innerText = props.content.slice(0, middle2) + "..." + actionText;
13823
+ container.innerText = getSubString(0, middle2) + "..." + actionText;
13649
13824
  } else {
13650
- container.innerText = actionText + "..." + props.content.slice(middle2, end);
13825
+ container.innerText = actionText + "..." + getSubString(middle2, end);
13651
13826
  }
13652
13827
  if (container.offsetHeight <= maxHeight) {
13653
13828
  if (props.direction === "end") {
@@ -13665,13 +13840,13 @@ const Ellipsis = (p) => {
13665
13840
  }, checkMiddle = function(leftPart, rightPart) {
13666
13841
  if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
13667
13842
  return {
13668
- leading: props.content.slice(0, leftPart[0]) + "...",
13669
- tailing: "..." + props.content.slice(rightPart[1], end)
13843
+ leading: getSubString(0, leftPart[0]) + "...",
13844
+ tailing: "..." + getSubString(rightPart[1], end)
13670
13845
  };
13671
13846
  }
13672
13847
  const leftPartMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
13673
13848
  const rightPartMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
13674
- container.innerText = props.content.slice(0, leftPartMiddle) + "..." + actionText + "..." + props.content.slice(rightPartMiddle, end);
13849
+ container.innerText = getSubString(0, leftPartMiddle) + "..." + actionText + "..." + getSubString(rightPartMiddle, end);
13675
13850
  if (container.offsetHeight <= maxHeight) {
13676
13851
  return checkMiddle([leftPartMiddle, leftPart[1]], [rightPart[0], rightPartMiddle]);
13677
13852
  } else {
@@ -13688,7 +13863,7 @@ const Ellipsis = (p) => {
13688
13863
  document.body.removeChild(container);
13689
13864
  }
13690
13865
  useResizeEffect(calcEllipsised, rootRef);
13691
- useIsomorphicLayoutEffect$1(() => {
13866
+ useIsomorphicLayoutEffect$2(() => {
13692
13867
  calcEllipsised();
13693
13868
  }, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
13694
13869
  const expandActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
@@ -14597,7 +14772,7 @@ function ownKeys(object4, enumerableOnly) {
14597
14772
  }
14598
14773
  function _objectSpread2(target) {
14599
14774
  for (var i = 1; i < arguments.length; i++) {
14600
- var source = arguments[i] != null ? arguments[i] : {};
14775
+ var source = null != arguments[i] ? arguments[i] : {};
14601
14776
  i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
14602
14777
  _defineProperty(target, key, source[key]);
14603
14778
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
@@ -14719,10 +14894,10 @@ function _isNativeReflectConstruct$1() {
14719
14894
  }
14720
14895
  function _typeof$1(obj) {
14721
14896
  "@babel/helpers - typeof";
14722
- return _typeof$1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
14897
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
14723
14898
  return typeof obj2;
14724
14899
  } : function(obj2) {
14725
- return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
14900
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
14726
14901
  }, _typeof$1(obj);
14727
14902
  }
14728
14903
  function _possibleConstructorReturn(self2, call2) {
@@ -14746,7 +14921,7 @@ function _createSuper(Derived) {
14746
14921
  return _possibleConstructorReturn(this, result2);
14747
14922
  };
14748
14923
  }
14749
- var reactIs = { exports: {} };
14924
+ var _reactIs_16_13_1_reactIs = { exports: {} };
14750
14925
  var reactIs_development = {};
14751
14926
  /** @license React v16.13.1
14752
14927
  * react-is.development.js
@@ -14906,7 +15081,7 @@ var reactIs_development = {};
14906
15081
  {
14907
15082
  module2.exports = reactIs_development;
14908
15083
  }
14909
- })(reactIs);
15084
+ })(_reactIs_16_13_1_reactIs);
14910
15085
  function toArray$2(children) {
14911
15086
  var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14912
15087
  var ret = [];
@@ -14916,7 +15091,7 @@ function toArray$2(children) {
14916
15091
  }
14917
15092
  if (Array.isArray(child)) {
14918
15093
  ret = ret.concat(toArray$2(child));
14919
- } else if (reactIs.exports.isFragment(child) && child.props) {
15094
+ } else if (_reactIs_16_13_1_reactIs.exports.isFragment(child) && child.props) {
14920
15095
  ret = ret.concat(toArray$2(child.props.children, option));
14921
15096
  } else {
14922
15097
  ret.push(child);
@@ -14984,11 +15159,10 @@ function toArray$1(value) {
14984
15159
  return Array.isArray(value) ? value : [value];
14985
15160
  }
14986
15161
  function _regeneratorRuntime() {
14987
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
14988
15162
  _regeneratorRuntime = function _regeneratorRuntime2() {
14989
15163
  return exports2;
14990
15164
  };
14991
- var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = typeof Symbol == "function" ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
15165
+ var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
14992
15166
  function define(obj, key, value) {
14993
15167
  return Object.defineProperty(obj, key, {
14994
15168
  value,
@@ -15009,10 +15183,10 @@ function _regeneratorRuntime() {
15009
15183
  return generator._invoke = function(innerFn2, self3, context2) {
15010
15184
  var state = "suspendedStart";
15011
15185
  return function(method4, arg) {
15012
- if (state === "executing")
15186
+ if ("executing" === state)
15013
15187
  throw new Error("Generator is already running");
15014
- if (state === "completed") {
15015
- if (method4 === "throw")
15188
+ if ("completed" === state) {
15189
+ if ("throw" === method4)
15016
15190
  throw arg;
15017
15191
  return doneResult();
15018
15192
  }
@@ -15026,17 +15200,17 @@ function _regeneratorRuntime() {
15026
15200
  return delegateResult;
15027
15201
  }
15028
15202
  }
15029
- if (context2.method === "next")
15203
+ if ("next" === context2.method)
15030
15204
  context2.sent = context2._sent = context2.arg;
15031
- else if (context2.method === "throw") {
15032
- if (state === "suspendedStart")
15205
+ else if ("throw" === context2.method) {
15206
+ if ("suspendedStart" === state)
15033
15207
  throw state = "completed", context2.arg;
15034
15208
  context2.dispatchException(context2.arg);
15035
15209
  } else
15036
- context2.method === "return" && context2.abrupt("return", context2.arg);
15210
+ "return" === context2.method && context2.abrupt("return", context2.arg);
15037
15211
  state = "executing";
15038
15212
  var record2 = tryCatch(innerFn2, self3, context2);
15039
- if (record2.type === "normal") {
15213
+ if ("normal" === record2.type) {
15040
15214
  if (state = context2.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
15041
15215
  continue;
15042
15216
  return {
@@ -15044,7 +15218,7 @@ function _regeneratorRuntime() {
15044
15218
  done: context2.done
15045
15219
  };
15046
15220
  }
15047
- record2.type === "throw" && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
15221
+ "throw" === record2.type && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
15048
15222
  }
15049
15223
  };
15050
15224
  }(innerFn, self2, context), generator;
@@ -15087,9 +15261,9 @@ function _regeneratorRuntime() {
15087
15261
  function AsyncIterator(generator, PromiseImpl) {
15088
15262
  function invoke(method4, arg, resolve, reject) {
15089
15263
  var record2 = tryCatch(generator[method4], generator, arg);
15090
- if (record2.type !== "throw") {
15264
+ if ("throw" !== record2.type) {
15091
15265
  var result2 = record2.arg, value = result2.value;
15092
- return value && _typeof$1(value) == "object" && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
15266
+ return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
15093
15267
  invoke("next", value2, resolve, reject);
15094
15268
  }, function(err) {
15095
15269
  invoke("throw", err, resolve, reject);
@@ -15113,19 +15287,19 @@ function _regeneratorRuntime() {
15113
15287
  }
15114
15288
  function maybeInvokeDelegate(delegate, context) {
15115
15289
  var method4 = delegate.iterator[context.method];
15116
- if (method4 === void 0) {
15117
- if (context.delegate = null, context.method === "throw") {
15118
- if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method === "throw"))
15290
+ if (void 0 === method4) {
15291
+ if (context.delegate = null, "throw" === context.method) {
15292
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
15119
15293
  return ContinueSentinel;
15120
15294
  context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
15121
15295
  }
15122
15296
  return ContinueSentinel;
15123
15297
  }
15124
15298
  var record2 = tryCatch(method4, delegate.iterator, context.arg);
15125
- if (record2.type === "throw")
15299
+ if ("throw" === record2.type)
15126
15300
  return context.method = "throw", context.arg = record2.arg, context.delegate = null, ContinueSentinel;
15127
15301
  var info = record2.arg;
15128
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, context.method !== "return" && (context.method = "next", context.arg = void 0), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
15302
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = void 0), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
15129
15303
  }
15130
15304
  function pushTryEntry(locs) {
15131
15305
  var entry = {
@@ -15147,7 +15321,7 @@ function _regeneratorRuntime() {
15147
15321
  var iteratorMethod = iterable[iteratorSymbol];
15148
15322
  if (iteratorMethod)
15149
15323
  return iteratorMethod.call(iterable);
15150
- if (typeof iterable.next == "function")
15324
+ if ("function" == typeof iterable.next)
15151
15325
  return iterable;
15152
15326
  if (!isNaN(iterable.length)) {
15153
15327
  var i = -1, next = function next2() {
@@ -15171,8 +15345,8 @@ function _regeneratorRuntime() {
15171
15345
  };
15172
15346
  }
15173
15347
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports2.isGeneratorFunction = function(genFun) {
15174
- var ctor = typeof genFun == "function" && genFun.constructor;
15175
- return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction");
15348
+ var ctor = "function" == typeof genFun && genFun.constructor;
15349
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
15176
15350
  }, exports2.mark = function(genFun) {
15177
15351
  return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
15178
15352
  }, exports2.awrap = function(arg) {
@@ -15182,7 +15356,7 @@ function _regeneratorRuntime() {
15182
15356
  }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
15183
15357
  return this;
15184
15358
  }), exports2.AsyncIterator = AsyncIterator, exports2.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) {
15185
- PromiseImpl === void 0 && (PromiseImpl = Promise);
15359
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
15186
15360
  var iter = new AsyncIterator(wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl);
15187
15361
  return exports2.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result2) {
15188
15362
  return result2.done ? result2.value : iter.next();
@@ -15209,13 +15383,13 @@ function _regeneratorRuntime() {
15209
15383
  reset: function reset(skipTempReset) {
15210
15384
  if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = false, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(resetTryEntry), !skipTempReset)
15211
15385
  for (var name in this) {
15212
- name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
15386
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
15213
15387
  }
15214
15388
  },
15215
15389
  stop: function stop2() {
15216
15390
  this.done = true;
15217
15391
  var rootRecord = this.tryEntries[0].completion;
15218
- if (rootRecord.type === "throw")
15392
+ if ("throw" === rootRecord.type)
15219
15393
  throw rootRecord.arg;
15220
15394
  return this.rval;
15221
15395
  },
@@ -15228,7 +15402,7 @@ function _regeneratorRuntime() {
15228
15402
  }
15229
15403
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
15230
15404
  var entry = this.tryEntries[i], record2 = entry.completion;
15231
- if (entry.tryLoc === "root")
15405
+ if ("root" === entry.tryLoc)
15232
15406
  return handle("end");
15233
15407
  if (entry.tryLoc <= this.prev) {
15234
15408
  var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
@@ -15257,14 +15431,14 @@ function _regeneratorRuntime() {
15257
15431
  break;
15258
15432
  }
15259
15433
  }
15260
- finallyEntry && (type4 === "break" || type4 === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
15434
+ finallyEntry && ("break" === type4 || "continue" === type4) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
15261
15435
  var record2 = finallyEntry ? finallyEntry.completion : {};
15262
15436
  return record2.type = type4, record2.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record2);
15263
15437
  },
15264
15438
  complete: function complete(record2, afterLoc) {
15265
- if (record2.type === "throw")
15439
+ if ("throw" === record2.type)
15266
15440
  throw record2.arg;
15267
- return record2.type === "break" || record2.type === "continue" ? this.next = record2.arg : record2.type === "return" ? (this.rval = this.arg = record2.arg, this.method = "return", this.next = "end") : record2.type === "normal" && afterLoc && (this.next = afterLoc), ContinueSentinel;
15441
+ return "break" === record2.type || "continue" === record2.type ? this.next = record2.arg : "return" === record2.type ? (this.rval = this.arg = record2.arg, this.method = "return", this.next = "end") : "normal" === record2.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
15268
15442
  },
15269
15443
  finish: function finish(finallyLoc) {
15270
15444
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
@@ -15278,7 +15452,7 @@ function _regeneratorRuntime() {
15278
15452
  var entry = this.tryEntries[i];
15279
15453
  if (entry.tryLoc === tryLoc) {
15280
15454
  var record2 = entry.completion;
15281
- if (record2.type === "throw") {
15455
+ if ("throw" === record2.type) {
15282
15456
  var thrown = record2.arg;
15283
15457
  resetTryEntry(entry);
15284
15458
  }
@@ -15292,7 +15466,7 @@ function _regeneratorRuntime() {
15292
15466
  iterator: values(iterable),
15293
15467
  resultName,
15294
15468
  nextLoc
15295
- }, this.method === "next" && (this.arg = void 0), ContinueSentinel;
15469
+ }, "next" === this.method && (this.arg = void 0), ContinueSentinel;
15296
15470
  }
15297
15471
  }, exports2;
15298
15472
  }
@@ -16560,7 +16734,7 @@ function isSimilar(source, target) {
16560
16734
  }
16561
16735
  var sourceKeys = Object.keys(source);
16562
16736
  var targetKeys = Object.keys(target);
16563
- var keys2 = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
16737
+ var keys2 = new Set([].concat(sourceKeys, targetKeys));
16564
16738
  return _toConsumableArray(keys2).every(function(key) {
16565
16739
  var sourceValue = source[key];
16566
16740
  var targetValue = target[key];
@@ -17024,10 +17198,11 @@ var Field = /* @__PURE__ */ function(_React$Component) {
17024
17198
  }).then(function() {
17025
17199
  var ruleErrors = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : EMPTY_ERRORS;
17026
17200
  if (_this.validatePromise === rootPromise) {
17201
+ var _ruleErrors$forEach;
17027
17202
  _this.validatePromise = null;
17028
17203
  var nextErrors = [];
17029
17204
  var nextWarnings = [];
17030
- ruleErrors.forEach(function(_ref3) {
17205
+ (_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref3) {
17031
17206
  var warningOnly = _ref3.rule.warningOnly, _ref3$errors = _ref3.errors, errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
17032
17207
  if (warningOnly) {
17033
17208
  nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
@@ -18116,9 +18291,10 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
18116
18291
  warnings: []
18117
18292
  };
18118
18293
  }).catch(function(ruleErrors) {
18294
+ var _ruleErrors$forEach;
18119
18295
  var mergedErrors = [];
18120
18296
  var mergedWarnings = [];
18121
- ruleErrors.forEach(function(_ref6) {
18297
+ (_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref6) {
18122
18298
  var warningOnly = _ref6.rule.warningOnly, errors = _ref6.errors;
18123
18299
  if (warningOnly) {
18124
18300
  mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
@@ -18302,9 +18478,12 @@ var Form$1 = function Form(_ref, ref) {
18302
18478
  if (!mountRef.current) {
18303
18479
  mountRef.current = true;
18304
18480
  }
18305
- React__namespace.useEffect(function() {
18306
- return destroyForm;
18307
- }, []);
18481
+ React__namespace.useEffect(
18482
+ function() {
18483
+ return destroyForm;
18484
+ },
18485
+ []
18486
+ );
18308
18487
  var childrenNode;
18309
18488
  var childrenRenderProps = typeof children === "function";
18310
18489
  if (childrenRenderProps) {
@@ -18354,8 +18533,10 @@ function stringify$1(value) {
18354
18533
  }
18355
18534
  }
18356
18535
  function useWatch() {
18357
- var dependencies = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
18358
- var form = arguments.length > 1 ? arguments[1] : void 0;
18536
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18537
+ args[_key] = arguments[_key];
18538
+ }
18539
+ var _args$ = args[0], dependencies = _args$ === void 0 ? [] : _args$, form = args[1];
18359
18540
  var _useState = React$1.useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
18360
18541
  var valueStr = React$1.useMemo(function() {
18361
18542
  return stringify$1(value);
@@ -18366,29 +18547,32 @@ function useWatch() {
18366
18547
  var formInstance = form || fieldContext;
18367
18548
  var isValidForm = formInstance && formInstance._init;
18368
18549
  {
18369
- warningOnce$1(isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
18550
+ warningOnce$1(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
18370
18551
  }
18371
18552
  var namePath = getNamePath(dependencies);
18372
18553
  var namePathRef = React$1.useRef(namePath);
18373
18554
  namePathRef.current = namePath;
18374
- React$1.useEffect(function() {
18375
- if (!isValidForm) {
18376
- return;
18377
- }
18378
- var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
18379
- var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
18380
- var cancelRegister = registerWatch(function(store) {
18381
- var newValue = getValue(store, namePathRef.current);
18382
- var nextValueStr = stringify$1(newValue);
18383
- if (valueStrRef.current !== nextValueStr) {
18384
- valueStrRef.current = nextValueStr;
18385
- setValue2(newValue);
18555
+ React$1.useEffect(
18556
+ function() {
18557
+ if (!isValidForm) {
18558
+ return;
18386
18559
  }
18387
- });
18388
- var initialValue = getValue(getFieldsValue(), namePathRef.current);
18389
- setValue2(initialValue);
18390
- return cancelRegister;
18391
- }, []);
18560
+ var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
18561
+ var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
18562
+ var cancelRegister = registerWatch(function(store) {
18563
+ var newValue = getValue(store, namePathRef.current);
18564
+ var nextValueStr = stringify$1(newValue);
18565
+ if (valueStrRef.current !== nextValueStr) {
18566
+ valueStrRef.current = nextValueStr;
18567
+ setValue2(newValue);
18568
+ }
18569
+ });
18570
+ var initialValue = getValue(getFieldsValue(), namePathRef.current);
18571
+ setValue2(initialValue);
18572
+ return cancelRegister;
18573
+ },
18574
+ [isValidForm]
18575
+ );
18392
18576
  return value;
18393
18577
  }
18394
18578
  var InternalForm = /* @__PURE__ */ React__namespace.forwardRef(Form$1);
@@ -18741,10 +18925,10 @@ var _typeof = { exports: {} };
18741
18925
  (function(module2) {
18742
18926
  function _typeof2(obj) {
18743
18927
  "@babel/helpers - typeof";
18744
- return module2.exports = _typeof2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
18928
+ return module2.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
18745
18929
  return typeof obj2;
18746
18930
  } : function(obj2) {
18747
- return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
18931
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
18748
18932
  }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof2(obj);
18749
18933
  }
18750
18934
  module2.exports = _typeof2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
@@ -18903,9 +19087,9 @@ function isSimpleFunctionComponent(type4) {
18903
19087
  return typeof type4 === "function" && !shouldConstruct(type4) && type4.defaultProps === void 0;
18904
19088
  }
18905
19089
  function isSafeSetRefComponent(component) {
18906
- if (reactIs$1.exports.isFragment(component))
19090
+ if (_reactIs_17_0_2_reactIs.exports.isFragment(component))
18907
19091
  return false;
18908
- if (reactIs$1.exports.isMemo(component))
19092
+ if (_reactIs_17_0_2_reactIs.exports.isMemo(component))
18909
19093
  return isSafeSetRefComponent(component.type);
18910
19094
  return !isSimpleFunctionComponent(component.type);
18911
19095
  }
@@ -19607,7 +19791,7 @@ function getWindow(node) {
19607
19791
  }
19608
19792
  return node;
19609
19793
  }
19610
- function getComputedStyle$1(element) {
19794
+ function getComputedStyle(element) {
19611
19795
  return getWindow(element).getComputedStyle(element);
19612
19796
  }
19613
19797
  function getNodeName(node) {
@@ -19641,7 +19825,7 @@ function isOverflowElement(element) {
19641
19825
  overflow,
19642
19826
  overflowX,
19643
19827
  overflowY
19644
- } = getComputedStyle$1(element);
19828
+ } = getComputedStyle(element);
19645
19829
  return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
19646
19830
  }
19647
19831
  function isTableElement(element) {
@@ -19649,7 +19833,7 @@ function isTableElement(element) {
19649
19833
  }
19650
19834
  function isContainingBlock(element) {
19651
19835
  const isFirefox = /firefox/i.test(getUAString());
19652
- const css = getComputedStyle$1(element);
19836
+ const css = getComputedStyle(element);
19653
19837
  return css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].includes(css.willChange) || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false);
19654
19838
  }
19655
19839
  function isLayoutViewport() {
@@ -19715,7 +19899,11 @@ function isScaled(element) {
19715
19899
  function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
19716
19900
  const isOffsetParentAnElement = isHTMLElement(offsetParent);
19717
19901
  const documentElement = getDocumentElement(offsetParent);
19718
- const rect = getBoundingClientRect(element, isOffsetParentAnElement && isScaled(offsetParent), strategy === "fixed");
19902
+ const rect = getBoundingClientRect(
19903
+ element,
19904
+ isOffsetParentAnElement && isScaled(offsetParent),
19905
+ strategy === "fixed"
19906
+ );
19719
19907
  let scroll = {
19720
19908
  scrollLeft: 0,
19721
19909
  scrollTop: 0
@@ -19764,7 +19952,8 @@ function getContainingBlock(element) {
19764
19952
  if (isContainingBlock(currentNode)) {
19765
19953
  return currentNode;
19766
19954
  } else {
19767
- currentNode = currentNode.parentNode;
19955
+ const parent = currentNode.parentNode;
19956
+ currentNode = isShadowRoot(parent) ? parent.host : parent;
19768
19957
  }
19769
19958
  }
19770
19959
  return null;
@@ -19861,7 +20050,7 @@ function getDocumentRect(element) {
19861
20050
  const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
19862
20051
  let x = -scroll.scrollLeft + getWindowScrollBarX(element);
19863
20052
  const y = -scroll.scrollTop;
19864
- if (getComputedStyle$1(body || html).direction === "rtl") {
20053
+ if (getComputedStyle(body || html).direction === "rtl") {
19865
20054
  x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
19866
20055
  }
19867
20056
  return {
@@ -19934,7 +20123,7 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
19934
20123
  }
19935
20124
  function getClippingAncestors(element) {
19936
20125
  const clippingAncestors = getOverflowAncestors(element);
19937
- const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle$1(element).position);
20126
+ const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle(element).position);
19938
20127
  const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
19939
20128
  if (!isElement(clipperElement)) {
19940
20129
  return [];
@@ -19989,7 +20178,7 @@ const platform = {
19989
20178
  };
19990
20179
  },
19991
20180
  getClientRects: (element) => Array.from(element.getClientRects()),
19992
- isRTL: (element) => getComputedStyle$1(element).direction === "rtl"
20181
+ isRTL: (element) => getComputedStyle(element).direction === "rtl"
19993
20182
  };
19994
20183
  function autoUpdate(reference, floating, update2, options) {
19995
20184
  if (options === void 0) {
@@ -20210,7 +20399,7 @@ const Popover$1 = React$1.forwardRef((p, ref) => {
20210
20399
  arrowElement.style.setProperty("--arrow-icon-rotate", arrowRotate);
20211
20400
  });
20212
20401
  }
20213
- useIsomorphicLayoutEffect$1(() => {
20402
+ useIsomorphicLayoutEffect$2(() => {
20214
20403
  update2();
20215
20404
  });
20216
20405
  React$1.useEffect(() => {
@@ -20238,10 +20427,10 @@ const Popover$1 = React$1.forwardRef((p, ref) => {
20238
20427
  if (!props.trigger)
20239
20428
  return;
20240
20429
  setVisible(false);
20241
- }, () => {
20430
+ }, [() => {
20242
20431
  var _a;
20243
20432
  return (_a = targetRef.current) === null || _a === void 0 ? void 0 : _a.element;
20244
- });
20433
+ }, floatingRef], ["click", "touchmove"]);
20245
20434
  const shouldRender = useShouldRender(visible, false, props.destroyOnHide);
20246
20435
  return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(Wrapper, {
20247
20436
  ref: targetRef
@@ -21119,14 +21308,14 @@ const ImageUploader = (p) => {
21119
21308
  const props = mergeProps(defaultProps$y, p);
21120
21309
  const [value, setValue2] = usePropsValue(props);
21121
21310
  const [tasks, setTasks] = React$1.useState([]);
21122
- useIsomorphicLayoutEffect$1(() => {
21311
+ useIsomorphicLayoutEffect$2(() => {
21123
21312
  setTasks((prev) => prev.filter((task) => {
21124
21313
  if (task.url === void 0)
21125
21314
  return true;
21126
21315
  return !value.some((fileItem) => fileItem.url === task.url);
21127
21316
  }));
21128
21317
  }, [value]);
21129
- useIsomorphicLayoutEffect$1(() => {
21318
+ useIsomorphicLayoutEffect$2(() => {
21130
21319
  var _a;
21131
21320
  (_a = props.onUploadQueueChange) === null || _a === void 0 ? void 0 : _a.call(props, tasks.map((item) => ({
21132
21321
  id: item.id,
@@ -21608,7 +21797,7 @@ const Input = React$1.forwardRef((p, ref) => {
21608
21797
  }
21609
21798
  (_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
21610
21799
  };
21611
- useIsomorphicLayoutEffect$1(() => {
21800
+ useIsomorphicLayoutEffect$2(() => {
21612
21801
  var _a;
21613
21802
  if (!props.enterKeyHint)
21614
21803
  return;
@@ -21971,7 +22160,6 @@ const index$7 = attachPropertiesToComponent(Modal, {
21971
22160
  const navBar = "";
21972
22161
  const classPrefix$y = `adm-nav-bar`;
21973
22162
  const defaultProps$s = {
21974
- back: "",
21975
22163
  backArrow: true
21976
22164
  };
21977
22165
  const NavBar = (p) => {
@@ -22648,17 +22836,21 @@ const Group = (p) => {
22648
22836
  (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, v);
22649
22837
  }
22650
22838
  });
22651
- return React__default.default.createElement(RadioGroupContext.Provider, {
22652
- value: {
22653
- value: value === null ? [] : [value],
22654
- check: (v) => {
22655
- setValue2(v);
22656
- },
22657
- uncheck: () => {
22658
- },
22659
- disabled: props.disabled
22660
- }
22661
- }, props.children);
22839
+ return React__default.default.createElement(
22840
+ RadioGroupContext.Provider,
22841
+ {
22842
+ value: {
22843
+ value: value === null ? [] : [value],
22844
+ check: (v) => {
22845
+ setValue2(v);
22846
+ },
22847
+ uncheck: () => {
22848
+ },
22849
+ disabled: props.disabled
22850
+ }
22851
+ },
22852
+ props.children
22853
+ );
22662
22854
  };
22663
22855
  const classPrefix$q = `adm-radio`;
22664
22856
  const defaultProps$k = {
@@ -23366,178 +23558,6 @@ const Thumb = (props) => {
23366
23558
  mode: "dark"
23367
23559
  }, thumbElement) : thumbElement);
23368
23560
  };
23369
- const classPrefix$f = `adm-slider`;
23370
- const defaultProps$e = {
23371
- min: 0,
23372
- max: 100,
23373
- step: 1,
23374
- ticks: false,
23375
- range: false,
23376
- disabled: false,
23377
- popover: false,
23378
- residentPopover: false
23379
- };
23380
- const Slider = (p) => {
23381
- var _a;
23382
- const props = mergeProps(defaultProps$e, p);
23383
- const {
23384
- min: min2,
23385
- max: max2,
23386
- disabled,
23387
- marks,
23388
- ticks,
23389
- step,
23390
- icon
23391
- } = props;
23392
- function sortValue(val) {
23393
- return val.sort((a, b) => a - b);
23394
- }
23395
- function convertValue(value) {
23396
- return props.range ? value : [props.min, value];
23397
- }
23398
- function reverseValue(value) {
23399
- return props.range ? value : value[1];
23400
- }
23401
- function onAfterChange(value) {
23402
- var _a2;
23403
- (_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
23404
- }
23405
- let propsValue = props.value;
23406
- if (props.range && typeof props.value === "number") {
23407
- devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
23408
- propsValue = [0, props.value];
23409
- }
23410
- const [rawValue, setRawValue] = usePropsValue({
23411
- value: propsValue,
23412
- defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
23413
- onChange: props.onChange
23414
- });
23415
- const sliderValue = sortValue(convertValue(rawValue));
23416
- function setSliderValue(value) {
23417
- const next = sortValue(value);
23418
- const current = sliderValue;
23419
- if (next[0] === current[0] && next[1] === current[1])
23420
- return;
23421
- setRawValue(reverseValue(next));
23422
- }
23423
- const trackRef = React$1.useRef(null);
23424
- const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
23425
- const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
23426
- const pointList = React$1.useMemo(() => {
23427
- if (marks) {
23428
- return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
23429
- } else {
23430
- const points = [];
23431
- for (let i = min2; i <= max2; i += step) {
23432
- points.push(i);
23433
- }
23434
- return points;
23435
- }
23436
- }, [marks, ticks, step, min2, max2]);
23437
- function getValueByPosition(position) {
23438
- const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
23439
- let value = min2;
23440
- if (pointList.length) {
23441
- value = nearest(pointList, newPosition);
23442
- } else {
23443
- const lengthPerStep = 100 / ((max2 - min2) / step);
23444
- const steps2 = Math.round(newPosition / lengthPerStep);
23445
- value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
23446
- }
23447
- return value;
23448
- }
23449
- const dragLockRef = React$1.useRef(0);
23450
- const onTrackClick = (event) => {
23451
- if (dragLockRef.current > 0)
23452
- return;
23453
- event.stopPropagation();
23454
- if (disabled)
23455
- return;
23456
- const track = trackRef.current;
23457
- if (!track)
23458
- return;
23459
- const sliderOffsetLeft = track.getBoundingClientRect().left;
23460
- const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
23461
- const targetValue = getValueByPosition(position);
23462
- let nextSliderValue;
23463
- if (props.range) {
23464
- if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
23465
- nextSliderValue = [sliderValue[0], targetValue];
23466
- } else {
23467
- nextSliderValue = [targetValue, sliderValue[1]];
23468
- }
23469
- } else {
23470
- nextSliderValue = [props.min, targetValue];
23471
- }
23472
- setSliderValue(nextSliderValue);
23473
- onAfterChange(nextSliderValue);
23474
- };
23475
- const valueBeforeDragRef = React$1.useRef();
23476
- const renderThumb = (index2) => {
23477
- return React__default.default.createElement(Thumb, {
23478
- key: index2,
23479
- value: sliderValue[index2],
23480
- min: min2,
23481
- max: max2,
23482
- disabled,
23483
- trackRef,
23484
- icon,
23485
- popover: props.popover,
23486
- residentPopover: props.residentPopover,
23487
- onDrag: (position, first, last) => {
23488
- if (first) {
23489
- dragLockRef.current += 1;
23490
- valueBeforeDragRef.current = sliderValue;
23491
- }
23492
- const val = getValueByPosition(position);
23493
- const valueBeforeDrag = valueBeforeDragRef.current;
23494
- if (!valueBeforeDrag)
23495
- return;
23496
- const next = [...valueBeforeDrag];
23497
- next[index2] = val;
23498
- setSliderValue(next);
23499
- if (last) {
23500
- onAfterChange(next);
23501
- window.setTimeout(() => {
23502
- dragLockRef.current -= 1;
23503
- }, 100);
23504
- }
23505
- },
23506
- "aria-label": props["aria-label"]
23507
- });
23508
- };
23509
- return withNativeProps(props, React__default.default.createElement("div", {
23510
- className: classNames(classPrefix$f, {
23511
- [`${classPrefix$f}-disabled`]: disabled
23512
- })
23513
- }, React__default.default.createElement("div", {
23514
- className: `${classPrefix$f}-track-container`,
23515
- onClick: onTrackClick
23516
- }, React__default.default.createElement("div", {
23517
- className: `${classPrefix$f}-track`,
23518
- onClick: onTrackClick,
23519
- ref: trackRef
23520
- }, React__default.default.createElement("div", {
23521
- className: `${classPrefix$f}-fill`,
23522
- style: {
23523
- width: fillSize,
23524
- left: fillStart
23525
- }
23526
- }), props.ticks && React__default.default.createElement(Ticks, {
23527
- points: pointList,
23528
- min: min2,
23529
- max: max2,
23530
- lowerBound: sliderValue[0],
23531
- upperBound: sliderValue[1]
23532
- }), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks, {
23533
- min: min2,
23534
- max: max2,
23535
- marks,
23536
- lowerBound: sliderValue[0],
23537
- upperBound: sliderValue[1]
23538
- })));
23539
- };
23540
- const stepper = "";
23541
23561
  var DP = 20, RM = 1, MAX_DP = 1e6, MAX_POWER = 1e6, NE = -7, PE = 21, STRICT = false, NAME = "[big.js] ", INVALID = NAME + "Invalid ", INVALID_DP = INVALID + "decimal places", INVALID_RM = INVALID + "rounding mode", DIV_BY_ZERO = NAME + "Division by zero", P = {}, UNDEFINED = void 0, NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
23542
23562
  function _Big_() {
23543
23563
  function Big2(n) {
@@ -24046,6 +24066,182 @@ P.valueOf = function() {
24046
24066
  return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
24047
24067
  };
24048
24068
  var Big = _Big_();
24069
+ const classPrefix$f = `adm-slider`;
24070
+ const defaultProps$e = {
24071
+ min: 0,
24072
+ max: 100,
24073
+ step: 1,
24074
+ ticks: false,
24075
+ range: false,
24076
+ disabled: false,
24077
+ popover: false,
24078
+ residentPopover: false
24079
+ };
24080
+ const Slider = (p) => {
24081
+ var _a;
24082
+ const props = mergeProps(defaultProps$e, p);
24083
+ const {
24084
+ min: min2,
24085
+ max: max2,
24086
+ disabled,
24087
+ marks,
24088
+ ticks,
24089
+ step,
24090
+ icon
24091
+ } = props;
24092
+ function sortValue(val) {
24093
+ return val.sort((a, b) => a - b);
24094
+ }
24095
+ function convertValue(value) {
24096
+ return props.range ? value : [props.min, value];
24097
+ }
24098
+ function reverseValue(value) {
24099
+ const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
24100
+ return props.range ? value.map((v) => Big(Big(v).toFixed(mergedDecimalLen)).toNumber()) : Big(Big(value[1]).toFixed(mergedDecimalLen)).toNumber();
24101
+ }
24102
+ function getDecimalLen(n) {
24103
+ return (`${n}`.split(".")[1] || "").length;
24104
+ }
24105
+ function onAfterChange(value) {
24106
+ var _a2;
24107
+ (_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
24108
+ }
24109
+ let propsValue = props.value;
24110
+ if (props.range && typeof props.value === "number") {
24111
+ devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
24112
+ propsValue = [0, props.value];
24113
+ }
24114
+ const [rawValue, setRawValue] = usePropsValue({
24115
+ value: propsValue,
24116
+ defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
24117
+ onChange: props.onChange
24118
+ });
24119
+ const sliderValue = sortValue(convertValue(rawValue));
24120
+ function setSliderValue(value) {
24121
+ const next = sortValue(value);
24122
+ const current = sliderValue;
24123
+ if (next[0] === current[0] && next[1] === current[1])
24124
+ return;
24125
+ setRawValue(reverseValue(next));
24126
+ }
24127
+ const trackRef = React$1.useRef(null);
24128
+ const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
24129
+ const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
24130
+ const pointList = React$1.useMemo(() => {
24131
+ if (marks) {
24132
+ return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
24133
+ } else {
24134
+ const points = [];
24135
+ for (let i = Big(min2); i.lt(max2); i = i.plus(step)) {
24136
+ points.push(i.toNumber());
24137
+ }
24138
+ return points;
24139
+ }
24140
+ }, [marks, ticks, step, min2, max2]);
24141
+ function getValueByPosition(position) {
24142
+ const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
24143
+ let value = min2;
24144
+ if (pointList.length) {
24145
+ value = nearest(pointList, newPosition);
24146
+ } else {
24147
+ const lengthPerStep = 100 / ((max2 - min2) / step);
24148
+ const steps2 = Math.round(newPosition / lengthPerStep);
24149
+ value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
24150
+ }
24151
+ return value;
24152
+ }
24153
+ const dragLockRef = React$1.useRef(0);
24154
+ const onTrackClick = (event) => {
24155
+ if (dragLockRef.current > 0)
24156
+ return;
24157
+ event.stopPropagation();
24158
+ if (disabled)
24159
+ return;
24160
+ const track = trackRef.current;
24161
+ if (!track)
24162
+ return;
24163
+ const sliderOffsetLeft = track.getBoundingClientRect().left;
24164
+ const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
24165
+ const targetValue = getValueByPosition(position);
24166
+ let nextSliderValue;
24167
+ if (props.range) {
24168
+ if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
24169
+ nextSliderValue = [sliderValue[0], targetValue];
24170
+ } else {
24171
+ nextSliderValue = [targetValue, sliderValue[1]];
24172
+ }
24173
+ } else {
24174
+ nextSliderValue = [props.min, targetValue];
24175
+ }
24176
+ setSliderValue(nextSliderValue);
24177
+ onAfterChange(nextSliderValue);
24178
+ };
24179
+ const valueBeforeDragRef = React$1.useRef();
24180
+ const renderThumb = (index2) => {
24181
+ return React__default.default.createElement(Thumb, {
24182
+ key: index2,
24183
+ value: sliderValue[index2],
24184
+ min: min2,
24185
+ max: max2,
24186
+ disabled,
24187
+ trackRef,
24188
+ icon,
24189
+ popover: props.popover,
24190
+ residentPopover: props.residentPopover,
24191
+ onDrag: (position, first, last) => {
24192
+ if (first) {
24193
+ dragLockRef.current += 1;
24194
+ valueBeforeDragRef.current = sliderValue;
24195
+ }
24196
+ const val = getValueByPosition(position);
24197
+ const valueBeforeDrag = valueBeforeDragRef.current;
24198
+ if (!valueBeforeDrag)
24199
+ return;
24200
+ const next = [...valueBeforeDrag];
24201
+ next[index2] = val;
24202
+ setSliderValue(next);
24203
+ if (last) {
24204
+ onAfterChange(next);
24205
+ window.setTimeout(() => {
24206
+ dragLockRef.current -= 1;
24207
+ }, 100);
24208
+ }
24209
+ },
24210
+ "aria-label": props["aria-label"]
24211
+ });
24212
+ };
24213
+ return withNativeProps(props, React__default.default.createElement("div", {
24214
+ className: classNames(classPrefix$f, {
24215
+ [`${classPrefix$f}-disabled`]: disabled
24216
+ })
24217
+ }, React__default.default.createElement("div", {
24218
+ className: `${classPrefix$f}-track-container`,
24219
+ onClick: onTrackClick
24220
+ }, React__default.default.createElement("div", {
24221
+ className: `${classPrefix$f}-track`,
24222
+ onClick: onTrackClick,
24223
+ ref: trackRef
24224
+ }, React__default.default.createElement("div", {
24225
+ className: `${classPrefix$f}-fill`,
24226
+ style: {
24227
+ width: fillSize,
24228
+ left: fillStart
24229
+ }
24230
+ }), props.ticks && React__default.default.createElement(Ticks, {
24231
+ points: pointList,
24232
+ min: min2,
24233
+ max: max2,
24234
+ lowerBound: sliderValue[0],
24235
+ upperBound: sliderValue[1]
24236
+ }), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks, {
24237
+ min: min2,
24238
+ max: max2,
24239
+ marks,
24240
+ lowerBound: sliderValue[0],
24241
+ upperBound: sliderValue[1]
24242
+ })));
24243
+ };
24244
+ const stepper = "";
24049
24245
  const classPrefix$e = `adm-stepper`;
24050
24246
  const defaultProps$d = {
24051
24247
  defaultValue: 0,
@@ -24161,7 +24357,8 @@ const Stepper = (p) => {
24161
24357
  role: "spinbutton",
24162
24358
  "aria-valuenow": Number(inputValue),
24163
24359
  "aria-valuemax": max2,
24164
- "aria-valuemin": min2
24360
+ "aria-valuemin": min2,
24361
+ inputMode: "decimal"
24165
24362
  })), React__default.default.createElement(Button, {
24166
24363
  className: `${classPrefix$e}-plus`,
24167
24364
  onClick: handlePlus,
@@ -24476,8 +24673,10 @@ const defaultProps$a = {
24476
24673
  stuckAtBoundary: true,
24477
24674
  rubberband: true
24478
24675
  };
24676
+ let currentUid;
24479
24677
  const Swiper = React$1.forwardRef(staged_1((p, ref) => {
24480
24678
  const props = mergeProps(defaultProps$a, p);
24679
+ const [uid] = React$1.useState({});
24481
24680
  const isVertical = props.direction === "vertical";
24482
24681
  const slideRatio = props.slideSize / 100;
24483
24682
  const offsetRatio = props.trackOffset / 100;
@@ -24567,6 +24766,12 @@ const Swiper = React$1.forwardRef(staged_1((p, ref) => {
24567
24766
  dragCancelRef.current = state.cancel;
24568
24767
  if (!state.intentional)
24569
24768
  return;
24769
+ if (state.first && !currentUid) {
24770
+ currentUid = uid;
24771
+ }
24772
+ if (currentUid !== uid)
24773
+ return;
24774
+ currentUid = state.last ? void 0 : uid;
24570
24775
  const slidePixels = getSlidePixels();
24571
24776
  if (!slidePixels)
24572
24777
  return;
@@ -24637,7 +24842,7 @@ const Swiper = React$1.forwardRef(staged_1((p, ref) => {
24637
24842
  swipeNext,
24638
24843
  swipePrev
24639
24844
  }));
24640
- useIsomorphicLayoutEffect$1(() => {
24845
+ useIsomorphicLayoutEffect$2(() => {
24641
24846
  const maxIndex = validChildren.length - 1;
24642
24847
  if (current > maxIndex) {
24643
24848
  swipeTo(maxIndex, true);
@@ -24960,7 +25165,7 @@ const TextArea = React$1.forwardRef((p, ref) => {
24960
25165
  return nativeTextAreaRef.current;
24961
25166
  }
24962
25167
  }));
24963
- useIsomorphicLayoutEffect$1(() => {
25168
+ useIsomorphicLayoutEffect$2(() => {
24964
25169
  if (!autoSize)
24965
25170
  return;
24966
25171
  const textArea2 = nativeTextAreaRef.current;
@@ -25520,7 +25725,7 @@ const VirtualInput = React$1.forwardRef((p, ref) => {
25520
25725
  return;
25521
25726
  content.scrollLeft = content.clientWidth;
25522
25727
  }
25523
- useIsomorphicLayoutEffect$1(() => {
25728
+ useIsomorphicLayoutEffect$2(() => {
25524
25729
  scrollToEnd();
25525
25730
  }, [value]);
25526
25731
  React$1.useEffect(() => {