@arco-design/mobile-react 2.36.2 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/_helpers/hooks.d.ts +1 -1
  5. package/cjs/_helpers/hooks.js +1 -1
  6. package/cjs/_helpers/react-dom.d.ts +5 -5
  7. package/cjs/_helpers/react-dom.js +49 -32
  8. package/cjs/_helpers/render.js +6 -3
  9. package/cjs/action-sheet/index.d.ts +3 -2
  10. package/cjs/action-sheet/index.js +2 -2
  11. package/cjs/action-sheet/style/css/index.css +18 -0
  12. package/cjs/avatar/style/css/index.css +18 -0
  13. package/cjs/badge/index.d.ts +2 -1
  14. package/cjs/badge/index.js +1 -1
  15. package/cjs/badge/style/css/index.css +26 -4
  16. package/cjs/badge/style/index.less +4 -2
  17. package/cjs/button/style/css/index.css +18 -0
  18. package/cjs/carousel/style/css/index.css +18 -0
  19. package/cjs/cell/style/css/index.css +18 -0
  20. package/cjs/checkbox/checkbox.d.ts +1 -1
  21. package/cjs/checkbox/group.d.ts +1 -1
  22. package/cjs/checkbox/hooks/useMergeProps.d.ts +1 -1
  23. package/cjs/checkbox/index.d.ts +2 -2
  24. package/cjs/checkbox/style/css/index.css +18 -0
  25. package/cjs/circle-progress/style/css/index.css +18 -0
  26. package/cjs/collapse/style/css/index.css +18 -0
  27. package/cjs/context-provider/index.d.ts +8 -2
  28. package/cjs/count-down/hooks.js +2 -2
  29. package/cjs/count-down/style/css/index.css +18 -0
  30. package/cjs/date-picker/style/css/index.css +18 -0
  31. package/cjs/dialog/index.d.ts +12 -6
  32. package/cjs/dialog/index.js +4 -1
  33. package/cjs/dialog/methods.d.ts +6 -2
  34. package/cjs/dialog/style/css/index.css +26 -4
  35. package/cjs/dialog/style/index.less +4 -2
  36. package/cjs/divider/style/css/index.css +18 -0
  37. package/cjs/dropdown/style/css/index.css +18 -0
  38. package/cjs/dropdown-menu/helper.d.ts +2 -2
  39. package/cjs/dropdown-menu/style/css/index.css +18 -0
  40. package/cjs/ellipsis/components/native-ellipsis.d.ts +2 -3
  41. package/cjs/ellipsis/components/native-ellipsis.js +1 -2
  42. package/cjs/ellipsis/style/css/index.css +18 -0
  43. package/cjs/form/style/css/index.css +18 -0
  44. package/cjs/form/type.d.ts +5 -5
  45. package/cjs/grid/style/css/index.css +18 -0
  46. package/cjs/image/style/css/index.css +18 -0
  47. package/cjs/image-picker/style/css/index.css +18 -0
  48. package/cjs/image-preview/index.d.ts +2 -2
  49. package/cjs/image-preview/style/css/index.css +18 -0
  50. package/cjs/index-bar/group.js +3 -1
  51. package/cjs/index-bar/index.d.ts +2 -2
  52. package/cjs/index-bar/style/css/index.css +18 -0
  53. package/cjs/index-bar/utils.d.ts +1 -1
  54. package/cjs/input/style/css/index.css +18 -0
  55. package/cjs/keyboard/style/css/index.css +18 -0
  56. package/cjs/load-more/style/css/index.css +18 -0
  57. package/cjs/loading/style/css/index.css +18 -0
  58. package/cjs/masking/index.d.ts +11 -5
  59. package/cjs/masking/index.js +2 -0
  60. package/cjs/masking/style/css/index.css +18 -0
  61. package/cjs/nav-bar/style/css/index.css +18 -0
  62. package/cjs/notice-bar/style/css/index.css +18 -0
  63. package/cjs/notify/index.d.ts +8 -8
  64. package/cjs/notify/index.js +2 -2
  65. package/cjs/notify/style/css/index.css +18 -0
  66. package/cjs/pagination/style/css/index.css +18 -0
  67. package/cjs/picker/style/css/index.css +18 -0
  68. package/cjs/picker-view/components/cascader.js +3 -1
  69. package/cjs/picker-view/components/picker-cell.js +1 -1
  70. package/cjs/picker-view/index.js +3 -1
  71. package/cjs/picker-view/style/css/index.css +18 -0
  72. package/cjs/popover/style/css/index.css +18 -0
  73. package/cjs/popover/style/css/menu.css +18 -0
  74. package/cjs/popup/index.d.ts +3 -3
  75. package/cjs/popup/index.js +1 -0
  76. package/cjs/popup/style/css/index.css +35 -0
  77. package/cjs/popup/style/index.less +36 -3
  78. package/cjs/popup-swiper/index.d.ts +2 -2
  79. package/cjs/popup-swiper/index.js +20 -3
  80. package/cjs/popup-swiper/style/css/index.css +18 -0
  81. package/cjs/progress/style/css/index.css +18 -0
  82. package/cjs/pull-refresh/hooks.d.ts +2 -2
  83. package/cjs/pull-refresh/style/css/index.css +18 -0
  84. package/cjs/radio/group.d.ts +1 -1
  85. package/cjs/radio/index.d.ts +2 -2
  86. package/cjs/radio/radio.d.ts +1 -1
  87. package/cjs/radio/style/css/index.css +18 -0
  88. package/cjs/rate/style/css/index.css +18 -0
  89. package/cjs/search-bar/style/css/index.css +18 -0
  90. package/cjs/skeleton/elements.js +9 -3
  91. package/cjs/skeleton/style/css/index.css +18 -0
  92. package/cjs/slider/hooks/index.d.ts +1 -1
  93. package/cjs/slider/hooks/useSliderEvents.d.ts +1 -1
  94. package/cjs/slider/style/css/index.css +18 -0
  95. package/cjs/stepper/hooks/useValue.d.ts +2 -1
  96. package/cjs/stepper/style/css/index.css +18 -0
  97. package/cjs/steps/index.d.ts +1 -1
  98. package/cjs/steps/style/css/index.css +18 -0
  99. package/cjs/sticky/style/css/index.css +18 -0
  100. package/cjs/swipe-action/style/css/index.css +18 -0
  101. package/cjs/swipe-load/style/css/index.css +18 -0
  102. package/cjs/switch/style/css/index.css +18 -0
  103. package/cjs/tab-bar/style/css/index.css +18 -0
  104. package/cjs/tabs/index.js +7 -3
  105. package/cjs/tabs/style/css/index.css +18 -0
  106. package/cjs/tabs/tab-cell.js +9 -1
  107. package/cjs/tabs/type.d.ts +7 -2
  108. package/cjs/tag/style/css/index.css +18 -0
  109. package/cjs/textarea/style/css/index.css +18 -0
  110. package/cjs/toast/index.d.ts +12 -12
  111. package/cjs/toast/index.js +1 -1
  112. package/cjs/toast/style/css/index.css +18 -0
  113. package/cjs/transition/index.d.ts +9 -3
  114. package/cjs/transition/index.js +36 -6
  115. package/cjs/transition/style/css/index.css +22 -4
  116. package/cjs/transition/style/index.less +2 -2
  117. package/cjs/uploader/style/css/index.css +18 -0
  118. package/dist/index.js +185 -97
  119. package/dist/index.min.js +4 -4
  120. package/dist/style.css +1049 -6
  121. package/dist/style.min.css +1 -1
  122. package/esm/_helpers/hooks.d.ts +1 -1
  123. package/esm/_helpers/hooks.js +1 -1
  124. package/esm/_helpers/react-dom.d.ts +5 -5
  125. package/esm/_helpers/react-dom.js +49 -30
  126. package/esm/_helpers/render.js +6 -3
  127. package/esm/action-sheet/index.d.ts +3 -2
  128. package/esm/action-sheet/index.js +2 -2
  129. package/esm/action-sheet/style/css/index.css +18 -0
  130. package/esm/avatar/style/css/index.css +18 -0
  131. package/esm/badge/index.d.ts +2 -1
  132. package/esm/badge/index.js +1 -1
  133. package/esm/badge/style/css/index.css +26 -4
  134. package/esm/badge/style/index.less +4 -2
  135. package/esm/button/style/css/index.css +18 -0
  136. package/esm/carousel/style/css/index.css +18 -0
  137. package/esm/cell/style/css/index.css +18 -0
  138. package/esm/checkbox/checkbox.d.ts +1 -1
  139. package/esm/checkbox/group.d.ts +1 -1
  140. package/esm/checkbox/hooks/useMergeProps.d.ts +1 -1
  141. package/esm/checkbox/index.d.ts +2 -2
  142. package/esm/checkbox/style/css/index.css +18 -0
  143. package/esm/circle-progress/style/css/index.css +18 -0
  144. package/esm/collapse/style/css/index.css +18 -0
  145. package/esm/context-provider/index.d.ts +8 -2
  146. package/esm/count-down/hooks.js +2 -2
  147. package/esm/count-down/style/css/index.css +18 -0
  148. package/esm/date-picker/style/css/index.css +18 -0
  149. package/esm/dialog/index.d.ts +12 -6
  150. package/esm/dialog/index.js +4 -1
  151. package/esm/dialog/methods.d.ts +6 -2
  152. package/esm/dialog/style/css/index.css +26 -4
  153. package/esm/dialog/style/index.less +4 -2
  154. package/esm/divider/style/css/index.css +18 -0
  155. package/esm/dropdown/style/css/index.css +18 -0
  156. package/esm/dropdown-menu/helper.d.ts +2 -2
  157. package/esm/dropdown-menu/style/css/index.css +18 -0
  158. package/esm/ellipsis/components/native-ellipsis.d.ts +2 -3
  159. package/esm/ellipsis/components/native-ellipsis.js +1 -1
  160. package/esm/ellipsis/style/css/index.css +18 -0
  161. package/esm/form/style/css/index.css +18 -0
  162. package/esm/form/type.d.ts +5 -5
  163. package/esm/grid/style/css/index.css +18 -0
  164. package/esm/image/style/css/index.css +18 -0
  165. package/esm/image-picker/style/css/index.css +18 -0
  166. package/esm/image-preview/index.d.ts +2 -2
  167. package/esm/image-preview/style/css/index.css +18 -0
  168. package/esm/index-bar/group.js +3 -1
  169. package/esm/index-bar/index.d.ts +2 -2
  170. package/esm/index-bar/style/css/index.css +18 -0
  171. package/esm/index-bar/utils.d.ts +1 -1
  172. package/esm/input/style/css/index.css +18 -0
  173. package/esm/keyboard/style/css/index.css +18 -0
  174. package/esm/load-more/style/css/index.css +18 -0
  175. package/esm/loading/style/css/index.css +18 -0
  176. package/esm/masking/index.d.ts +11 -5
  177. package/esm/masking/index.js +2 -0
  178. package/esm/masking/style/css/index.css +18 -0
  179. package/esm/nav-bar/style/css/index.css +18 -0
  180. package/esm/notice-bar/style/css/index.css +18 -0
  181. package/esm/notify/index.d.ts +8 -8
  182. package/esm/notify/index.js +2 -2
  183. package/esm/notify/style/css/index.css +18 -0
  184. package/esm/pagination/style/css/index.css +18 -0
  185. package/esm/picker/style/css/index.css +18 -0
  186. package/esm/picker-view/components/cascader.js +3 -1
  187. package/esm/picker-view/components/picker-cell.js +1 -1
  188. package/esm/picker-view/index.js +3 -1
  189. package/esm/picker-view/style/css/index.css +18 -0
  190. package/esm/popover/style/css/index.css +18 -0
  191. package/esm/popover/style/css/menu.css +18 -0
  192. package/esm/popup/index.d.ts +3 -3
  193. package/esm/popup/index.js +1 -0
  194. package/esm/popup/style/css/index.css +35 -0
  195. package/esm/popup/style/index.less +36 -3
  196. package/esm/popup-swiper/index.d.ts +2 -2
  197. package/esm/popup-swiper/index.js +20 -3
  198. package/esm/popup-swiper/style/css/index.css +18 -0
  199. package/esm/progress/style/css/index.css +18 -0
  200. package/esm/pull-refresh/hooks.d.ts +2 -2
  201. package/esm/pull-refresh/style/css/index.css +18 -0
  202. package/esm/radio/group.d.ts +1 -1
  203. package/esm/radio/index.d.ts +2 -2
  204. package/esm/radio/radio.d.ts +1 -1
  205. package/esm/radio/style/css/index.css +18 -0
  206. package/esm/rate/style/css/index.css +18 -0
  207. package/esm/search-bar/style/css/index.css +18 -0
  208. package/esm/skeleton/elements.js +9 -3
  209. package/esm/skeleton/style/css/index.css +18 -0
  210. package/esm/slider/hooks/index.d.ts +1 -1
  211. package/esm/slider/hooks/useSliderEvents.d.ts +1 -1
  212. package/esm/slider/style/css/index.css +18 -0
  213. package/esm/stepper/hooks/useValue.d.ts +2 -1
  214. package/esm/stepper/style/css/index.css +18 -0
  215. package/esm/steps/index.d.ts +1 -1
  216. package/esm/steps/style/css/index.css +18 -0
  217. package/esm/sticky/style/css/index.css +18 -0
  218. package/esm/swipe-action/style/css/index.css +18 -0
  219. package/esm/swipe-load/style/css/index.css +18 -0
  220. package/esm/switch/style/css/index.css +18 -0
  221. package/esm/tab-bar/style/css/index.css +18 -0
  222. package/esm/tabs/index.js +7 -3
  223. package/esm/tabs/style/css/index.css +18 -0
  224. package/esm/tabs/tab-cell.js +9 -1
  225. package/esm/tabs/type.d.ts +7 -2
  226. package/esm/tag/style/css/index.css +18 -0
  227. package/esm/textarea/style/css/index.css +18 -0
  228. package/esm/toast/index.d.ts +12 -12
  229. package/esm/toast/index.js +1 -1
  230. package/esm/toast/style/css/index.css +18 -0
  231. package/esm/transition/index.d.ts +9 -3
  232. package/esm/transition/index.js +32 -7
  233. package/esm/transition/style/css/index.css +22 -4
  234. package/esm/transition/style/index.less +2 -2
  235. package/esm/uploader/style/css/index.css +18 -0
  236. package/esnext/_helpers/hooks.js +1 -1
  237. package/esnext/_helpers/react-dom.d.ts +5 -5
  238. package/esnext/_helpers/react-dom.js +47 -28
  239. package/esnext/_helpers/render.js +3 -2
  240. package/esnext/action-sheet/index.d.ts +3 -2
  241. package/esnext/action-sheet/index.js +1 -1
  242. package/esnext/action-sheet/style/css/index.css +18 -0
  243. package/esnext/avatar/style/css/index.css +18 -0
  244. package/esnext/badge/index.d.ts +2 -1
  245. package/esnext/badge/index.js +1 -1
  246. package/esnext/badge/style/css/index.css +26 -4
  247. package/esnext/badge/style/index.less +4 -2
  248. package/esnext/button/style/css/index.css +18 -0
  249. package/esnext/carousel/style/css/index.css +18 -0
  250. package/esnext/cell/style/css/index.css +18 -0
  251. package/esnext/checkbox/style/css/index.css +18 -0
  252. package/esnext/circle-progress/style/css/index.css +18 -0
  253. package/esnext/collapse/style/css/index.css +18 -0
  254. package/esnext/context-provider/index.d.ts +8 -2
  255. package/esnext/context-provider/index.js +1 -1
  256. package/esnext/count-down/hooks.js +2 -2
  257. package/esnext/count-down/style/css/index.css +18 -0
  258. package/esnext/date-picker/style/css/index.css +18 -0
  259. package/esnext/dialog/index.d.ts +12 -6
  260. package/esnext/dialog/index.js +1 -1
  261. package/esnext/dialog/methods.d.ts +6 -2
  262. package/esnext/dialog/style/css/index.css +26 -4
  263. package/esnext/dialog/style/index.less +4 -2
  264. package/esnext/divider/style/css/index.css +18 -0
  265. package/esnext/dropdown/style/css/index.css +18 -0
  266. package/esnext/dropdown-menu/helper.d.ts +1 -1
  267. package/esnext/dropdown-menu/style/css/index.css +18 -0
  268. package/esnext/ellipsis/components/native-ellipsis.d.ts +2 -3
  269. package/esnext/ellipsis/components/native-ellipsis.js +1 -1
  270. package/esnext/ellipsis/style/css/index.css +18 -0
  271. package/esnext/form/style/css/index.css +18 -0
  272. package/esnext/form/type.d.ts +5 -5
  273. package/esnext/grid/style/css/index.css +18 -0
  274. package/esnext/image/style/css/index.css +18 -0
  275. package/esnext/image-picker/style/css/index.css +18 -0
  276. package/esnext/image-preview/index.d.ts +2 -2
  277. package/esnext/image-preview/style/css/index.css +18 -0
  278. package/esnext/index-bar/group.js +5 -1
  279. package/esnext/index-bar/index.d.ts +2 -2
  280. package/esnext/index-bar/style/css/index.css +18 -0
  281. package/esnext/input/style/css/index.css +18 -0
  282. package/esnext/keyboard/style/css/index.css +18 -0
  283. package/esnext/load-more/style/css/index.css +18 -0
  284. package/esnext/loading/style/css/index.css +18 -0
  285. package/esnext/masking/index.d.ts +11 -5
  286. package/esnext/masking/index.js +3 -3
  287. package/esnext/masking/style/css/index.css +18 -0
  288. package/esnext/nav-bar/style/css/index.css +18 -0
  289. package/esnext/notice-bar/style/css/index.css +18 -0
  290. package/esnext/notify/index.d.ts +8 -8
  291. package/esnext/notify/index.js +2 -2
  292. package/esnext/notify/style/css/index.css +18 -0
  293. package/esnext/pagination/style/css/index.css +18 -0
  294. package/esnext/picker/style/css/index.css +18 -0
  295. package/esnext/picker-view/components/cascader.js +5 -1
  296. package/esnext/picker-view/components/picker-cell.js +1 -1
  297. package/esnext/picker-view/index.js +5 -1
  298. package/esnext/picker-view/style/css/index.css +18 -0
  299. package/esnext/popover/style/css/index.css +18 -0
  300. package/esnext/popover/style/css/menu.css +18 -0
  301. package/esnext/popup/index.d.ts +3 -3
  302. package/esnext/popup/index.js +1 -1
  303. package/esnext/popup/style/css/index.css +35 -0
  304. package/esnext/popup/style/index.less +36 -3
  305. package/esnext/popup-swiper/index.d.ts +2 -2
  306. package/esnext/popup-swiper/index.js +7 -2
  307. package/esnext/popup-swiper/style/css/index.css +18 -0
  308. package/esnext/progress/style/css/index.css +18 -0
  309. package/esnext/pull-refresh/hooks.d.ts +2 -2
  310. package/esnext/pull-refresh/style/css/index.css +18 -0
  311. package/esnext/radio/style/css/index.css +18 -0
  312. package/esnext/rate/style/css/index.css +18 -0
  313. package/esnext/search-bar/style/css/index.css +18 -0
  314. package/esnext/skeleton/elements.js +15 -3
  315. package/esnext/skeleton/style/css/index.css +18 -0
  316. package/esnext/slider/hooks/useSliderEvents.d.ts +1 -1
  317. package/esnext/slider/style/css/index.css +18 -0
  318. package/esnext/stepper/style/css/index.css +18 -0
  319. package/esnext/steps/style/css/index.css +18 -0
  320. package/esnext/sticky/style/css/index.css +18 -0
  321. package/esnext/swipe-action/style/css/index.css +18 -0
  322. package/esnext/swipe-load/style/css/index.css +18 -0
  323. package/esnext/switch/style/css/index.css +18 -0
  324. package/esnext/tab-bar/style/css/index.css +18 -0
  325. package/esnext/tabs/index.js +3 -2
  326. package/esnext/tabs/style/css/index.css +18 -0
  327. package/esnext/tabs/tab-cell.js +8 -1
  328. package/esnext/tabs/type.d.ts +7 -2
  329. package/esnext/tag/style/css/index.css +18 -0
  330. package/esnext/textarea/style/css/index.css +18 -0
  331. package/esnext/toast/index.d.ts +12 -12
  332. package/esnext/toast/index.js +1 -1
  333. package/esnext/toast/style/css/index.css +18 -0
  334. package/esnext/transition/index.d.ts +9 -3
  335. package/esnext/transition/index.js +28 -3
  336. package/esnext/transition/style/css/index.css +22 -4
  337. package/esnext/transition/style/index.less +2 -2
  338. package/esnext/uploader/style/css/index.css +18 -0
  339. package/package.json +3 -3
  340. package/style/css/public.css +18 -0
  341. package/tokens/mixin/index.less +31 -2
  342. package/umd/_helpers/hooks.d.ts +1 -1
  343. package/umd/_helpers/hooks.js +1 -1
  344. package/umd/_helpers/react-dom.d.ts +5 -5
  345. package/umd/_helpers/react-dom.js +53 -35
  346. package/umd/_helpers/render.js +6 -3
  347. package/umd/action-sheet/index.d.ts +3 -2
  348. package/umd/action-sheet/index.js +2 -2
  349. package/umd/action-sheet/style/css/index.css +18 -0
  350. package/umd/avatar/style/css/index.css +18 -0
  351. package/umd/badge/index.d.ts +2 -1
  352. package/umd/badge/index.js +1 -1
  353. package/umd/badge/style/css/index.css +26 -4
  354. package/umd/badge/style/index.less +4 -2
  355. package/umd/button/style/css/index.css +18 -0
  356. package/umd/carousel/style/css/index.css +18 -0
  357. package/umd/cell/style/css/index.css +18 -0
  358. package/umd/checkbox/checkbox.d.ts +1 -1
  359. package/umd/checkbox/group.d.ts +1 -1
  360. package/umd/checkbox/hooks/useMergeProps.d.ts +1 -1
  361. package/umd/checkbox/index.d.ts +2 -2
  362. package/umd/checkbox/style/css/index.css +18 -0
  363. package/umd/circle-progress/style/css/index.css +18 -0
  364. package/umd/collapse/style/css/index.css +18 -0
  365. package/umd/context-provider/index.d.ts +8 -2
  366. package/umd/count-down/hooks.js +2 -2
  367. package/umd/count-down/style/css/index.css +18 -0
  368. package/umd/date-picker/style/css/index.css +18 -0
  369. package/umd/dialog/index.d.ts +12 -6
  370. package/umd/dialog/index.js +4 -1
  371. package/umd/dialog/methods.d.ts +6 -2
  372. package/umd/dialog/style/css/index.css +26 -4
  373. package/umd/dialog/style/index.less +4 -2
  374. package/umd/divider/style/css/index.css +18 -0
  375. package/umd/dropdown/style/css/index.css +18 -0
  376. package/umd/dropdown-menu/helper.d.ts +2 -2
  377. package/umd/dropdown-menu/style/css/index.css +18 -0
  378. package/umd/ellipsis/components/native-ellipsis.d.ts +2 -3
  379. package/umd/ellipsis/components/native-ellipsis.js +1 -2
  380. package/umd/ellipsis/style/css/index.css +18 -0
  381. package/umd/form/style/css/index.css +18 -0
  382. package/umd/form/type.d.ts +5 -5
  383. package/umd/grid/style/css/index.css +18 -0
  384. package/umd/image/style/css/index.css +18 -0
  385. package/umd/image-picker/style/css/index.css +18 -0
  386. package/umd/image-preview/index.d.ts +2 -2
  387. package/umd/image-preview/style/css/index.css +18 -0
  388. package/umd/index-bar/group.js +3 -1
  389. package/umd/index-bar/index.d.ts +2 -2
  390. package/umd/index-bar/style/css/index.css +18 -0
  391. package/umd/index-bar/utils.d.ts +1 -1
  392. package/umd/input/style/css/index.css +18 -0
  393. package/umd/keyboard/style/css/index.css +18 -0
  394. package/umd/load-more/style/css/index.css +18 -0
  395. package/umd/loading/style/css/index.css +18 -0
  396. package/umd/masking/index.d.ts +11 -5
  397. package/umd/masking/index.js +2 -0
  398. package/umd/masking/style/css/index.css +18 -0
  399. package/umd/nav-bar/style/css/index.css +18 -0
  400. package/umd/notice-bar/style/css/index.css +18 -0
  401. package/umd/notify/index.d.ts +8 -8
  402. package/umd/notify/index.js +2 -2
  403. package/umd/notify/style/css/index.css +18 -0
  404. package/umd/pagination/style/css/index.css +18 -0
  405. package/umd/picker/style/css/index.css +18 -0
  406. package/umd/picker-view/components/cascader.js +3 -1
  407. package/umd/picker-view/components/picker-cell.js +1 -1
  408. package/umd/picker-view/index.js +3 -1
  409. package/umd/picker-view/style/css/index.css +18 -0
  410. package/umd/popover/style/css/index.css +18 -0
  411. package/umd/popover/style/css/menu.css +18 -0
  412. package/umd/popup/index.d.ts +3 -3
  413. package/umd/popup/index.js +1 -0
  414. package/umd/popup/style/css/index.css +35 -0
  415. package/umd/popup/style/index.less +36 -3
  416. package/umd/popup-swiper/index.d.ts +2 -2
  417. package/umd/popup-swiper/index.js +20 -3
  418. package/umd/popup-swiper/style/css/index.css +18 -0
  419. package/umd/progress/style/css/index.css +18 -0
  420. package/umd/pull-refresh/hooks.d.ts +2 -2
  421. package/umd/pull-refresh/style/css/index.css +18 -0
  422. package/umd/radio/group.d.ts +1 -1
  423. package/umd/radio/index.d.ts +2 -2
  424. package/umd/radio/radio.d.ts +1 -1
  425. package/umd/radio/style/css/index.css +18 -0
  426. package/umd/rate/style/css/index.css +18 -0
  427. package/umd/search-bar/style/css/index.css +18 -0
  428. package/umd/skeleton/elements.js +9 -3
  429. package/umd/skeleton/style/css/index.css +18 -0
  430. package/umd/slider/hooks/index.d.ts +1 -1
  431. package/umd/slider/hooks/useSliderEvents.d.ts +1 -1
  432. package/umd/slider/style/css/index.css +18 -0
  433. package/umd/stepper/hooks/useValue.d.ts +2 -1
  434. package/umd/stepper/style/css/index.css +18 -0
  435. package/umd/steps/index.d.ts +1 -1
  436. package/umd/steps/style/css/index.css +18 -0
  437. package/umd/sticky/style/css/index.css +18 -0
  438. package/umd/swipe-action/style/css/index.css +18 -0
  439. package/umd/swipe-load/style/css/index.css +18 -0
  440. package/umd/switch/style/css/index.css +18 -0
  441. package/umd/tab-bar/style/css/index.css +18 -0
  442. package/umd/tabs/index.js +7 -3
  443. package/umd/tabs/style/css/index.css +18 -0
  444. package/umd/tabs/tab-cell.js +9 -1
  445. package/umd/tabs/type.d.ts +7 -2
  446. package/umd/tag/style/css/index.css +18 -0
  447. package/umd/textarea/style/css/index.css +18 -0
  448. package/umd/toast/index.d.ts +12 -12
  449. package/umd/toast/index.js +1 -1
  450. package/umd/toast/style/css/index.css +18 -0
  451. package/umd/transition/index.d.ts +9 -3
  452. package/umd/transition/index.js +36 -6
  453. package/umd/transition/style/css/index.css +22 -4
  454. package/umd/transition/style/index.less +2 -2
  455. package/umd/uploader/style/css/index.css +18 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,34 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.38.0](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.37.0...@arco-design/mobile-react@2.38.0) (2025-09-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * `PopupSwiper` animation loss issue & add faq ([#338](https://github.com/arco-design/arco-design-mobile/issues/338)) ([12f1f0c](https://github.com/arco-design/arco-design-mobile/commit/12f1f0cc4b93bc698d365ba64c2c0e0413a2e0f3))
12
+ * `Tabs` underline initial transition ([#344](https://github.com/arco-design/arco-design-mobile/issues/344)) ([62ea305](https://github.com/arco-design/arco-design-mobile/commit/62ea305e83b15244755436253e6b053f07d10443))
13
+
14
+
15
+ ### Features
16
+
17
+ * `Transition` support changing timeout by component props ([#341](https://github.com/arco-design/arco-design-mobile/issues/341)) ([0337ba1](https://github.com/arco-design/arco-design-mobile/commit/0337ba1685ed3cc0f3268ab56207d466deb62754))
18
+
19
+
20
+
21
+
22
+
23
+ # [2.37.0](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.36.2...@arco-design/mobile-react@2.37.0) (2025-06-17)
24
+
25
+
26
+ ### Features
27
+
28
+ * add new locale "es" and "de" & react 19 compatibility ([#334](https://github.com/arco-design/arco-design-mobile/issues/334)) ([95559a5](https://github.com/arco-design/arco-design-mobile/commit/95559a5f592fdf85c4e79176ddbfe3c93910330f))
29
+
30
+
31
+
32
+
33
+
6
34
  ## [2.36.2](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.36.1...@arco-design/mobile-react@2.36.2) (2025-06-06)
7
35
 
8
36
 
package/README.en-US.md CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="_b
59
59
  React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">Click here</a>**
60
60
 
61
61
  ```
62
- <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.36.1/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.36.1/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.37.0/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.37.0/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## Full import
package/README.md CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="
59
59
  React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">戳这里获取</a>**
60
60
 
61
61
  ```
62
- <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.36.1/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.36.1/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.37.0/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.37.0/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## 引入全部
@@ -146,7 +146,7 @@ export declare function useLatestRef<T>(variable: T): React.MutableRefObject<T>;
146
146
  * const systemWithHarmony = useSystem({ detectHarmony: true });
147
147
  * ```
148
148
  */
149
- export declare function useSystem(options?: SystemOptions): "" | "android" | "harmony" | "ios" | "pc";
149
+ export declare function useSystem(options?: SystemOptions): "" | "pc" | "android" | "ios" | "harmony";
150
150
  /**
151
151
  * 获取页面视口宽高大小,并在页面有resize时更新大小
152
152
  * @desc {en} Get the width and height of the page viewport, and update the size when the page is resized
@@ -787,7 +787,7 @@ function useSingleAndDoubleClick(onClick, onDoubleClick, delay) {
787
787
  clickTimes = _useState11[0],
788
788
  setClickTimes = _useState11[1];
789
789
 
790
- var eventRef = (0, _react.useRef)();
790
+ var eventRef = (0, _react.useRef)(undefined);
791
791
  (0, _react.useEffect)(function () {
792
792
  var timer = setTimeout(function () {
793
793
  if (clickTimes === 1) onClick(eventRef.current);
@@ -1,13 +1,13 @@
1
1
  import { ReactElement } from 'react';
2
2
  export interface RootType {
3
- render: (container: ReactElement) => void;
3
+ render: (element: ReactElement) => void;
4
4
  _unmount: () => void;
5
5
  }
6
6
  export interface RootTypeReact extends RootType {
7
7
  unmount?: () => void;
8
8
  }
9
- export declare type CreateRootFnType = (container: Element | DocumentFragment) => RootTypeReact;
10
- export declare const render: (app: ReactElement, container: Element | DocumentFragment) => {
11
- render: (container: ReactElement) => void;
12
- _unmount: () => void;
9
+ export declare type CreateRootFnType = (container: Element | DocumentFragment) => {
10
+ render: (element: ReactElement) => void;
11
+ unmount?: () => void;
13
12
  };
13
+ export declare const render: (app: ReactElement, container: Element | DocumentFragment, createRootFunction?: CreateRootFnType | undefined) => RootType;
@@ -1,12 +1,8 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  exports.__esModule = true;
6
4
  exports.render = void 0;
7
5
 
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
-
10
6
  var ReactDOM = _interopRequireWildcard(require("react-dom"));
11
7
 
12
8
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -17,56 +13,77 @@ function isObject(obj) {
17
13
  return Object.prototype.toString.call(obj) === '[object Object]';
18
14
  }
19
15
 
20
- var CopyReactDOM = (0, _extends2.default)({}, ReactDOM);
16
+ // Cast ReactDOM to a version that might have createRoot and other properties
17
+ var typedReactDOM = ReactDOM;
21
18
  var copyRender;
22
- var version = CopyReactDOM.version,
23
- reactRender = CopyReactDOM.render,
24
- unmountComponentAtNode = CopyReactDOM.unmountComponentAtNode;
25
- var isReact18 = Number((version || '').split('.')[0]) > 17;
26
19
 
27
20
  var updateUsingClientEntryPoint = function updateUsingClientEntryPoint(skipWarning) {
28
21
  // https://github.com/facebook/react/blob/17806594cc28284fe195f918e8d77de3516848ec/packages/react-dom/npm/client.js#L10
29
22
  // Avoid console warning
30
- var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = CopyReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
+ var secretInternals = typedReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
31
24
 
32
- if (isObject(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)) {
33
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skipWarning;
25
+ if (isObject(secretInternals)) {
26
+ secretInternals.usingClientEntryPoint = skipWarning;
34
27
  }
35
28
  };
36
29
 
37
- var createRoot;
38
-
39
- try {
40
- createRoot = CopyReactDOM.createRoot;
41
- } catch (_) {}
30
+ var createRootFn = typedReactDOM.createRoot;
42
31
 
43
- if (isReact18 && createRoot) {
44
- copyRender = function copyRender(app, container) {
32
+ var getRender = function getRender(createRootFunction) {
33
+ return function (app, container) {
45
34
  updateUsingClientEntryPoint(true);
46
- var root = createRoot(container);
35
+ var root = createRootFunction(container);
47
36
  updateUsingClientEntryPoint(false);
48
37
  root.render(app);
49
-
50
- root._unmount = function () {
51
- setTimeout(function () {
52
- root == null ? void 0 : root.unmount == null ? void 0 : root.unmount();
53
- });
38
+ return {
39
+ render: function render(elementToRender) {
40
+ root.render(elementToRender);
41
+ },
42
+ _unmount: function _unmount() {
43
+ setTimeout(function () {
44
+ if (root && typeof root.unmount === 'function') {
45
+ root.unmount();
46
+ }
47
+ });
48
+ }
54
49
  };
55
-
56
- return root;
57
50
  };
58
- } else {
51
+ };
52
+
53
+ if (createRootFn) {
54
+ // React 18
55
+ copyRender = getRender(createRootFn);
56
+ } else if (typeof typedReactDOM.render === 'function' && typeof typedReactDOM.unmountComponentAtNode === 'function') {
57
+ // React 16/17
59
58
  copyRender = function copyRender(app, container) {
60
- reactRender(app, container);
59
+ typedReactDOM.render(app, container); // Use non-null assertion
60
+
61
61
  return {
62
- render: function render(comment) {
63
- reactRender(comment, container);
62
+ render: function render(elementToRender) {
63
+ typedReactDOM.render(elementToRender, container); // Use non-null assertion
64
64
  },
65
65
  _unmount: function _unmount() {
66
- unmountComponentAtNode(container);
66
+ typedReactDOM.unmountComponentAtNode(container); // Use non-null assertion
67
67
  }
68
68
  };
69
69
  };
70
+ } else {
71
+ copyRender = function copyRender(app, container, createRootFunction) {
72
+ var defaultCb = function defaultCb() {
73
+ // Fallback if no rendering method is found
74
+ console.error('ArcoDesign: ReactDOM.createRoot() or ReactDOM.render() not found. ' + 'This usually means you are using an unsupported version of React, ' + 'or ReactDOM is not properly initialized. ' + 'ArcoDesign Mobile React requires React 16, 17, 18, or 19.');
75
+ return {
76
+ render: function render(_element) {},
77
+ _unmount: function _unmount() {}
78
+ };
79
+ };
80
+
81
+ if (createRootFunction) {
82
+ return getRender(createRootFunction)(app, container);
83
+ }
84
+
85
+ return defaultCb();
86
+ };
70
87
  }
71
88
 
72
89
  var render = copyRender;
@@ -27,14 +27,17 @@ root // use root in cache
27
27
 
28
28
  this.render = function (props) {
29
29
  var CustomApp = _this.app;
30
- var propsWithContext = (0, _extends2.default)({}, props, {
30
+ var propsWithContext = (0, _extends2.default)({
31
31
  context: _this.context
32
- });
32
+ }, props);
33
33
 
34
34
  if (_this.root) {
35
35
  _this.root.render( /*#__PURE__*/_react.default.createElement(CustomApp, propsWithContext));
36
36
  } else {
37
- _this.root = (0, _reactDom.render)( /*#__PURE__*/_react.default.createElement(CustomApp, propsWithContext), _this.container);
37
+ var _ref = _this.context || {},
38
+ createRoot = _ref.createRoot;
39
+
40
+ _this.root = (0, _reactDom.render)( /*#__PURE__*/_react.default.createElement(CustomApp, propsWithContext), _this.container, createRoot);
38
41
  }
39
42
  };
40
43
 
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode, CSSProperties } from 'react';
2
+ import { Promise } from 'es6-promise';
2
3
  import { PopupProps } from '../popup';
3
4
  import { OpenBaseProps } from '../masking';
4
5
  export interface ActionSheetItemOptions {
@@ -86,11 +87,11 @@ declare const _default: React.ForwardRefExoticComponent<ActionSheetProps & React
86
87
  * @param {ActionSheetProps} config setting
87
88
  * @returns {{ close: () => void; update: (newConfig: ActionSheetProps) => void; }}
88
89
  */
89
- open: (config: Pick<import("../context-provider").WithGlobalContext<ActionSheetProps & React.RefAttributes<ActionSheetRef>>, "title" | "ref" | "key" | "context" | "translateZ" | "className" | "onTouchMove" | "getContainer" | "items" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "cancelText" | "subTitle"> & {
90
+ open: (config: Pick<import("../context-provider").WithGlobalContext<ActionSheetProps & React.RefAttributes<ActionSheetRef>>, "ref" | "className" | "title" | "context" | "key" | "translateZ" | "onTouchMove" | "getContainer" | "items" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "contentTransitionVarType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "cancelText" | "subTitle"> & {
90
91
  key?: string | undefined;
91
92
  }, context?: import("../context-provider").GlobalContextParams | undefined) => {
92
93
  close: () => void;
93
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ActionSheetProps & React.RefAttributes<ActionSheetRef>>, "title" | "ref" | "key" | "context" | "translateZ" | "className" | "onTouchMove" | "getContainer" | "items" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "cancelText" | "subTitle"> & {
94
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ActionSheetProps & React.RefAttributes<ActionSheetRef>>, "ref" | "className" | "title" | "context" | "key" | "translateZ" | "onTouchMove" | "getContainer" | "items" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "contentTransitionVarType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "cancelText" | "subTitle"> & {
94
95
  key?: string | undefined;
95
96
  }) => void;
96
97
  };
@@ -78,14 +78,14 @@ var ActionSheet = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
78
78
  }, subTitle) : null) : null, /*#__PURE__*/_react.default.createElement("div", {
79
79
  className: prefixCls + "-action-sheet-list"
80
80
  }, (items || []).map(function (item, index) {
81
- return /*#__PURE__*/_react.default.createElement("div", {
81
+ return item.content ? /*#__PURE__*/_react.default.createElement("div", {
82
82
  className: (0, _mobileUtils.cls)(prefixCls + "-action-sheet-item", item.className, item.status || 'normal'),
83
83
  key: index,
84
84
  style: item.style,
85
85
  onClick: function onClick(e) {
86
86
  return handleItemClick(e, item);
87
87
  }
88
- }, item.content);
88
+ }, item.content) : null;
89
89
  })), cancelText ? /*#__PURE__*/_react.default.createElement("div", {
90
90
  className: prefixCls + "-action-sheet-item cancel-item",
91
91
  onClick: function onClick(e) {
@@ -75,6 +75,24 @@
75
75
  * }
76
76
  * ```
77
77
  */
78
+ /**
79
+ * 为属性设置 transition 变量
80
+ * @desc {en} set the transition variable for the attribute
81
+ * @param @transitionVariable transition 变量名
82
+ * @param @transitionVariable {en} transition variable name
83
+ * @param @backupVariable 备份变量名
84
+ * @param @backupVariable {en} backup variable name
85
+ * @param @property css属性名
86
+ * @param @property {en} css property
87
+ * @example
88
+ * ```
89
+ * @import '@arco-design/mobile-react/style/mixin.less';
90
+ *
91
+ * .demo {
92
+ * .use-transition-var(builtin-transition-fade-enter-duration, transition-fade-duration);
93
+ * }
94
+ * ```
95
+ */
78
96
  /**
79
97
  * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
98
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
@@ -75,6 +75,24 @@
75
75
  * }
76
76
  * ```
77
77
  */
78
+ /**
79
+ * 为属性设置 transition 变量
80
+ * @desc {en} set the transition variable for the attribute
81
+ * @param @transitionVariable transition 变量名
82
+ * @param @transitionVariable {en} transition variable name
83
+ * @param @backupVariable 备份变量名
84
+ * @param @backupVariable {en} backup variable name
85
+ * @param @property css属性名
86
+ * @param @property {en} css property
87
+ * @example
88
+ * ```
89
+ * @import '@arco-design/mobile-react/style/mixin.less';
90
+ *
91
+ * .demo {
92
+ * .use-transition-var(builtin-transition-fade-enter-duration, transition-fade-duration);
93
+ * }
94
+ * ```
95
+ */
78
96
  /**
79
97
  * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
98
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
@@ -1,4 +1,5 @@
1
- import React, { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
2
3
  export interface BadgeProps {
3
4
  /**
4
5
  * 自定义类名
@@ -44,7 +44,7 @@ var Badge = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
44
44
  _props$bordered = props.bordered,
45
45
  bordered = _props$bordered === void 0 ? false : _props$bordered,
46
46
  _props$timeout = props.timeout,
47
- timeout = _props$timeout === void 0 ? 300 : _props$timeout;
47
+ timeout = _props$timeout === void 0 ? 400 : _props$timeout;
48
48
  var domRef = (0, _react.useRef)(null);
49
49
  (0, _react.useImperativeHandle)(ref, function () {
50
50
  return {
@@ -75,6 +75,24 @@
75
75
  * }
76
76
  * ```
77
77
  */
78
+ /**
79
+ * 为属性设置 transition 变量
80
+ * @desc {en} set the transition variable for the attribute
81
+ * @param @transitionVariable transition 变量名
82
+ * @param @transitionVariable {en} transition variable name
83
+ * @param @backupVariable 备份变量名
84
+ * @param @backupVariable {en} backup variable name
85
+ * @param @property css属性名
86
+ * @param @property {en} css property
87
+ * @example
88
+ * ```
89
+ * @import '@arco-design/mobile-react/style/mixin.less';
90
+ *
91
+ * .demo {
92
+ * .use-transition-var(builtin-transition-fade-enter-duration, transition-fade-duration);
93
+ * }
94
+ * ```
95
+ */
78
96
  /**
79
97
  * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
98
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
@@ -559,12 +577,16 @@
559
577
  }
560
578
  }
561
579
  .arco-scale-enter-active {
562
- -webkit-animation: scale-on 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
563
- animation: scale-on 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
580
+ -webkit-animation: scale-on cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
581
+ animation: scale-on cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
582
+ -webkit-animation-duration: var(--builtin-transition-scale-enter-duration, 0.4s);
583
+ animation-duration: var(--builtin-transition-scale-enter-duration, 0.4s);
564
584
  }
565
585
  .arco-scale-exit-active {
566
- -webkit-animation: scale-off 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
567
- animation: scale-off 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
586
+ -webkit-animation: scale-off cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
587
+ animation: scale-off cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
588
+ -webkit-animation-duration: var(--builtin-transition-scale-exit-duration, 0.4s);
589
+ animation-duration: var(--builtin-transition-scale-exit-duration, 0.4s);
568
590
  }
569
591
  .arco-badge {
570
592
  cursor: pointer;
@@ -19,11 +19,13 @@
19
19
  }
20
20
 
21
21
  .@{prefix}-scale-enter-active {
22
- animation: scale-on .4s cubic-bezier(.3, 1.3, .3, 1) forwards;
22
+ animation: scale-on cubic-bezier(.3, 1.3, .3, 1) forwards;
23
+ animation-duration: var(--builtin-transition-scale-enter-duration, .4s);
23
24
  }
24
25
 
25
26
  .@{prefix}-scale-exit-active {
26
- animation: scale-off .4s cubic-bezier(.3, 1.3, .3, 1) forwards;
27
+ animation: scale-off cubic-bezier(.3, 1.3, .3, 1) forwards;
28
+ animation-duration: var(--builtin-transition-scale-exit-duration, .4s);
27
29
  }
28
30
 
29
31
  .@{prefix}-badge {
@@ -75,6 +75,24 @@
75
75
  * }
76
76
  * ```
77
77
  */
78
+ /**
79
+ * 为属性设置 transition 变量
80
+ * @desc {en} set the transition variable for the attribute
81
+ * @param @transitionVariable transition 变量名
82
+ * @param @transitionVariable {en} transition variable name
83
+ * @param @backupVariable 备份变量名
84
+ * @param @backupVariable {en} backup variable name
85
+ * @param @property css属性名
86
+ * @param @property {en} css property
87
+ * @example
88
+ * ```
89
+ * @import '@arco-design/mobile-react/style/mixin.less';
90
+ *
91
+ * .demo {
92
+ * .use-transition-var(builtin-transition-fade-enter-duration, transition-fade-duration);
93
+ * }
94
+ * ```
95
+ */
78
96
  /**
79
97
  * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
98
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
@@ -75,6 +75,24 @@
75
75
  * }
76
76
  * ```
77
77
  */
78
+ /**
79
+ * 为属性设置 transition 变量
80
+ * @desc {en} set the transition variable for the attribute
81
+ * @param @transitionVariable transition 变量名
82
+ * @param @transitionVariable {en} transition variable name
83
+ * @param @backupVariable 备份变量名
84
+ * @param @backupVariable {en} backup variable name
85
+ * @param @property css属性名
86
+ * @param @property {en} css property
87
+ * @example
88
+ * ```
89
+ * @import '@arco-design/mobile-react/style/mixin.less';
90
+ *
91
+ * .demo {
92
+ * .use-transition-var(builtin-transition-fade-enter-duration, transition-fade-duration);
93
+ * }
94
+ * ```
95
+ */
78
96
  /**
79
97
  * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
98
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
@@ -75,6 +75,24 @@
75
75
  * }
76
76
  * ```
77
77
  */
78
+ /**
79
+ * 为属性设置 transition 变量
80
+ * @desc {en} set the transition variable for the attribute
81
+ * @param @transitionVariable transition 变量名
82
+ * @param @transitionVariable {en} transition variable name
83
+ * @param @backupVariable 备份变量名
84
+ * @param @backupVariable {en} backup variable name
85
+ * @param @property css属性名
86
+ * @param @property {en} css property
87
+ * @example
88
+ * ```
89
+ * @import '@arco-design/mobile-react/style/mixin.less';
90
+ *
91
+ * .demo {
92
+ * .use-transition-var(builtin-transition-fade-enter-duration, transition-fade-duration);
93
+ * }
94
+ * ```
95
+ */
78
96
  /**
79
97
  * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
98
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { CheckboxProps, CheckboxRef } from './type';
3
- export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps<string | number> & React.RefAttributes<CheckboxRef>>;
3
+ export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps<React.ReactText> & React.RefAttributes<CheckboxRef>>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { GroupContextParams, CheckboxGroupProps, CheckboxGroupRef, ValueType, CheckboxProps, CheckboxRef } from './type';
3
- export declare const CheckboxGroupContext: React.Context<GroupContextParams<string | number>>;
3
+ export declare const CheckboxGroupContext: React.Context<GroupContextParams<React.ReactText>>;
4
4
  export declare function componentGenerator<T extends ValueType = ValueType, P extends CheckboxProps<T> = CheckboxProps<T>, R extends CheckboxRef = CheckboxRef>(Comp: React.ForwardRefExoticComponent<P & React.RefAttributes<R>>): React.ForwardRefExoticComponent<CheckboxGroupProps<T, P> & React.RefAttributes<CheckboxGroupRef>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { CheckboxProps, GroupContextParams, ValueType } from '../type';
3
- export declare const useMergeProps: <T extends string | number = string | number, P extends CheckboxProps<T> = CheckboxProps<T>>(props: P, groupContext: React.Context<GroupContextParams<ValueType>>) => P;
3
+ export declare const useMergeProps: <T extends React.ReactText = React.ReactText, P extends CheckboxProps<T> = CheckboxProps<T>>(props: P, groupContext: React.Context<GroupContextParams<ValueType>>) => P;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export * from './type';
3
- declare const _default: import("react").ForwardRefExoticComponent<import("./type").CheckboxProps<string | number> & import("react").RefAttributes<import("./type").CheckboxRef>> & {
4
- Group: import("react").ForwardRefExoticComponent<import("./type").CheckboxGroupProps<string | number, import("./type").CheckboxProps<string | number> & import("react").RefAttributes<import("./type").CheckboxRef>> & import("react").RefAttributes<import("./type").CheckboxGroupRef>> & {
3
+ declare const _default: import("react").ForwardRefExoticComponent<import("./type").CheckboxProps<import("react").ReactText> & import("react").RefAttributes<import("./type").CheckboxRef>> & {
4
+ Group: import("react").ForwardRefExoticComponent<import("./type").CheckboxGroupProps<import("react").ReactText, import("./type").CheckboxProps<import("react").ReactText> & import("react").RefAttributes<import("./type").CheckboxRef>> & import("react").RefAttributes<import("./type").CheckboxGroupRef>> & {
5
5
  displayName?: string | undefined;
6
6
  };
7
7
  } & {
@@ -75,6 +75,24 @@
75
75
  * }
76
76
  * ```
77
77
  */
78
+ /**
79
+ * 为属性设置 transition 变量
80
+ * @desc {en} set the transition variable for the attribute
81
+ * @param @transitionVariable transition 变量名
82
+ * @param @transitionVariable {en} transition variable name
83
+ * @param @backupVariable 备份变量名
84
+ * @param @backupVariable {en} backup variable name
85
+ * @param @property css属性名
86
+ * @param @property {en} css property
87
+ * @example
88
+ * ```
89
+ * @import '@arco-design/mobile-react/style/mixin.less';
90
+ *
91
+ * .demo {
92
+ * .use-transition-var(builtin-transition-fade-enter-duration, transition-fade-duration);
93
+ * }
94
+ * ```
95
+ */
78
96
  /**
79
97
  * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
98
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
@@ -75,6 +75,24 @@
75
75
  * }
76
76
  * ```
77
77
  */
78
+ /**
79
+ * 为属性设置 transition 变量
80
+ * @desc {en} set the transition variable for the attribute
81
+ * @param @transitionVariable transition 变量名
82
+ * @param @transitionVariable {en} transition variable name
83
+ * @param @backupVariable 备份变量名
84
+ * @param @backupVariable {en} backup variable name
85
+ * @param @property css属性名
86
+ * @param @property {en} css property
87
+ * @example
88
+ * ```
89
+ * @import '@arco-design/mobile-react/style/mixin.less';
90
+ *
91
+ * .demo {
92
+ * .use-transition-var(builtin-transition-fade-enter-duration, transition-fade-duration);
93
+ * }
94
+ * ```
95
+ */
78
96
  /**
79
97
  * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
98
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
@@ -75,6 +75,24 @@
75
75
  * }
76
76
  * ```
77
77
  */
78
+ /**
79
+ * 为属性设置 transition 变量
80
+ * @desc {en} set the transition variable for the attribute
81
+ * @param @transitionVariable transition 变量名
82
+ * @param @transitionVariable {en} transition variable name
83
+ * @param @backupVariable 备份变量名
84
+ * @param @backupVariable {en} backup variable name
85
+ * @param @property css属性名
86
+ * @param @property {en} css property
87
+ * @example
88
+ * ```
89
+ * @import '@arco-design/mobile-react/style/mixin.less';
90
+ *
91
+ * .demo {
92
+ * .use-transition-var(builtin-transition-fade-enter-duration, transition-fade-duration);
93
+ * }
94
+ * ```
95
+ */
78
96
  /**
79
97
  * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
98
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
@@ -1,5 +1,6 @@
1
- import React from 'react';
1
+ import React, { Attributes } from 'react';
2
2
  import { ILocale } from '@arco-design/mobile-utils';
3
+ import { CreateRootFnType } from '../_helpers';
3
4
  export interface GlobalContextParams {
4
5
  /**
5
6
  * 组件类名前缀
@@ -52,6 +53,11 @@ export interface GlobalContextParams {
52
53
  * @en Triggered when the system's native dark mode changes, valid when useDarkMode=true
53
54
  */
54
55
  onDarkModeChange?: (isDark: boolean) => void;
56
+ /**
57
+ * React19 修改了 createRoot 的引入路径,导致组件内部无法直接引入(低react版本会找不到模块)。因此使用 react 19 的用户需从外部传入 createRoot 方法
58
+ * @en Users using react 19 need to pass in the createRoot method from outside
59
+ */
60
+ createRoot?: CreateRootFnType;
55
61
  }
56
62
  export declare const defaultContext: GlobalContextParams;
57
63
  export declare const GlobalContext: React.Context<GlobalContextParams>;
@@ -71,4 +77,4 @@ export declare type WithGlobalContext<T> = T & {
71
77
  */
72
78
  export default function ContextProvider(props: ContextProviderProps): JSX.Element;
73
79
  export declare const ContextLayout: React.Consumer<GlobalContextParams>;
74
- export declare function CompWithGlobalContext<P extends JSX.IntrinsicAttributes>(Component: React.FunctionComponent<P>): (props: WithGlobalContext<P>) => JSX.Element;
80
+ export declare function CompWithGlobalContext<P extends Attributes>(Component: React.FunctionComponent<P>): (props: WithGlobalContext<P>) => JSX.Element;
@@ -13,8 +13,8 @@ var _util = require("./util");
13
13
 
14
14
  var useCountDown = function useCountDown(options) {
15
15
  var taskIdRef = (0, _react.useRef)(0);
16
- var endTimeRef = (0, _react.useRef)();
17
- var countingRef = (0, _react.useRef)();
16
+ var endTimeRef = (0, _react.useRef)(undefined);
17
+ var countingRef = (0, _react.useRef)(undefined);
18
18
 
19
19
  var _useRefState = (0, _helpers.useRefState)(options.time),
20
20
  remain = _useRefState[0],