@arco-design/mobile-react 2.30.1 → 2.30.3

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 (410) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/form/type.d.ts +2 -2
  5. package/cjs/image-preview/index.d.ts +6 -0
  6. package/cjs/image-preview/index.js +48 -14
  7. package/cjs/image-preview/style/css/index.css +2 -1
  8. package/cjs/image-preview/style/index.less +2 -1
  9. package/cjs/nav-bar/back-icon.js +20 -10
  10. package/cjs/picker-view/components/picker-cell.js +1 -1
  11. package/cjs/picker-view/index.js +1 -1
  12. package/cjs/popover/style/css/index.css +9 -2
  13. package/cjs/popover/style/css/menu.css +4 -0
  14. package/cjs/popover/style/index.less +1 -2
  15. package/cjs/popover/style/menu.less +1 -1
  16. package/cjs/slider/hooks/useSliderEvents.js +14 -8
  17. package/cjs/slider/hooks/useSliderStyle.js +13 -7
  18. package/cjs/slider/index.js +4 -2
  19. package/cjs/slider/marks.js +4 -2
  20. package/cjs/slider/style/css/index.css +28 -0
  21. package/cjs/slider/style/index.less +13 -4
  22. package/dist/index.js +118 -64
  23. package/dist/index.min.js +4 -4
  24. package/dist/style.css +39 -3
  25. package/dist/style.min.css +1 -1
  26. package/esm/form/type.d.ts +2 -2
  27. package/esm/image-preview/index.d.ts +6 -0
  28. package/esm/image-preview/index.js +48 -14
  29. package/esm/image-preview/style/css/index.css +2 -1
  30. package/esm/image-preview/style/index.less +2 -1
  31. package/esm/nav-bar/back-icon.js +18 -10
  32. package/esm/picker-view/components/picker-cell.js +1 -1
  33. package/esm/picker-view/index.js +1 -1
  34. package/esm/popover/style/css/index.css +9 -2
  35. package/esm/popover/style/css/menu.css +4 -0
  36. package/esm/popover/style/index.less +1 -2
  37. package/esm/popover/style/menu.less +1 -1
  38. package/esm/slider/hooks/useSliderEvents.js +13 -8
  39. package/esm/slider/hooks/useSliderStyle.js +12 -7
  40. package/esm/slider/index.js +4 -2
  41. package/esm/slider/marks.js +4 -2
  42. package/esm/slider/style/css/index.css +28 -0
  43. package/esm/slider/style/index.less +13 -4
  44. package/package.json +3 -3
  45. package/style/css/public.css +2 -0
  46. package/tokens/app/arcodesign/default/css-variables.less +1 -1
  47. package/tokens/app/arcodesign/default/index.d.ts +1 -1
  48. package/tokens/app/arcodesign/default/index.js +1 -1
  49. package/tokens/app/arcodesign/default/index.json +7 -7
  50. package/tokens/app/arcodesign/default/index.less +1 -1
  51. package/umd/form/type.d.ts +2 -2
  52. package/umd/image-preview/index.d.ts +6 -0
  53. package/umd/image-preview/index.js +48 -14
  54. package/umd/image-preview/style/css/index.css +2 -1
  55. package/umd/image-preview/style/index.less +2 -1
  56. package/umd/nav-bar/back-icon.js +20 -14
  57. package/umd/picker-view/components/picker-cell.js +1 -1
  58. package/umd/picker-view/index.js +1 -1
  59. package/umd/popover/style/css/index.css +9 -2
  60. package/umd/popover/style/css/menu.css +4 -0
  61. package/umd/popover/style/index.less +1 -2
  62. package/umd/popover/style/menu.less +1 -1
  63. package/umd/slider/hooks/useSliderEvents.js +16 -12
  64. package/umd/slider/hooks/useSliderStyle.js +15 -11
  65. package/umd/slider/index.js +4 -2
  66. package/umd/slider/marks.js +4 -2
  67. package/umd/slider/style/css/index.css +28 -0
  68. package/umd/slider/style/index.less +13 -4
  69. package/cjs/action-sheet/demo/style/css/mobile.css +0 -523
  70. package/cjs/action-sheet/demo/style/mobile.less +0 -52
  71. package/cjs/avatar/demo/style/css/mobile.css +0 -578
  72. package/cjs/avatar/demo/style/mobile.less +0 -96
  73. package/cjs/badge/demo/style/css/mobile.css +0 -580
  74. package/cjs/badge/demo/style/mobile.less +0 -107
  75. package/cjs/button/demo/style/css/mobile.css +0 -530
  76. package/cjs/button/demo/style/mobile.less +0 -44
  77. package/cjs/carousel/demo/style/css/mobile.css +0 -553
  78. package/cjs/carousel/demo/style/mobile.less +0 -70
  79. package/cjs/cell/demo/style/css/mobile.css +0 -585
  80. package/cjs/cell/demo/style/mobile.less +0 -102
  81. package/cjs/checkbox/demo/style/css/mobile.css +0 -520
  82. package/cjs/checkbox/demo/style/mobile.less +0 -45
  83. package/cjs/circle-progress/demo/style/css/mobile.css +0 -516
  84. package/cjs/circle-progress/demo/style/mobile.less +0 -34
  85. package/cjs/collapse/demo/style/css/mobile.css +0 -516
  86. package/cjs/collapse/demo/style/mobile.less +0 -33
  87. package/cjs/context-provider/demo/style/css/mobile.css +0 -520
  88. package/cjs/context-provider/demo/style/mobile.less +0 -37
  89. package/cjs/count-down/demo/style/css/mobile.css +0 -575
  90. package/cjs/count-down/demo/style/mobile.less +0 -96
  91. package/cjs/date-picker/demo/style/css/mobile.css +0 -520
  92. package/cjs/date-picker/demo/style/mobile.less +0 -37
  93. package/cjs/dialog/demo/style/css/mobile.css +0 -548
  94. package/cjs/dialog/demo/style/mobile.less +0 -80
  95. package/cjs/divider/demo/style/css/mobile.css +0 -516
  96. package/cjs/divider/demo/style/mobile.less +0 -36
  97. package/cjs/dropdown/demo/style/css/mobile.css +0 -515
  98. package/cjs/dropdown/demo/style/mobile.less +0 -32
  99. package/cjs/dropdown-menu/demo/style/css/mobile.css +0 -516
  100. package/cjs/dropdown-menu/demo/style/mobile.less +0 -33
  101. package/cjs/ellipsis/demo/style/css/mobile.css +0 -528
  102. package/cjs/ellipsis/demo/style/mobile.less +0 -53
  103. package/cjs/grid/demo/style/css/mobile.css +0 -613
  104. package/cjs/grid/demo/style/mobile.less +0 -157
  105. package/cjs/image/demo/style/css/mobile.css +0 -580
  106. package/cjs/image/demo/style/mobile.less +0 -86
  107. package/cjs/image-picker/demo/style/css/mobile.css +0 -550
  108. package/cjs/image-picker/demo/style/mobile.less +0 -67
  109. package/cjs/image-preview/demo/style/css/mobile.css +0 -551
  110. package/cjs/image-preview/demo/style/mobile.less +0 -61
  111. package/cjs/index-bar/demo/style/css/mobile.css +0 -533
  112. package/cjs/index-bar/demo/style/mobile.less +0 -51
  113. package/cjs/input/demo/style/css/mobile.css +0 -602
  114. package/cjs/input/demo/style/mobile.less +0 -132
  115. package/cjs/keyboard/demo/style/css/mobile.css +0 -520
  116. package/cjs/keyboard/demo/style/mobile.less +0 -42
  117. package/cjs/load-more/demo/style/css/mobile.css +0 -520
  118. package/cjs/load-more/demo/style/mobile.less +0 -39
  119. package/cjs/loading/demo/style/css/mobile.css +0 -529
  120. package/cjs/loading/demo/style/mobile.less +0 -48
  121. package/cjs/masking/demo/style/css/mobile.css +0 -535
  122. package/cjs/masking/demo/style/mobile.less +0 -56
  123. package/cjs/nav-bar/demo/style/css/mobile.css +0 -523
  124. package/cjs/nav-bar/demo/style/mobile.less +0 -46
  125. package/cjs/notice-bar/demo/style/css/mobile.css +0 -4
  126. package/cjs/notice-bar/demo/style/mobile.less +0 -6
  127. package/cjs/notify/demo/style/css/mobile.css +0 -545
  128. package/cjs/notify/demo/style/mobile.less +0 -60
  129. package/cjs/pagination/demo/style/css/index.css +0 -516
  130. package/cjs/pagination/demo/style/index.less +0 -35
  131. package/cjs/picker/demo/style/css/mobile.css +0 -531
  132. package/cjs/picker/demo/style/mobile.less +0 -49
  133. package/cjs/picker-view/demo/style/css/mobile.css +0 -513
  134. package/cjs/picker-view/demo/style/mobile.less +0 -32
  135. package/cjs/popover/demo/style/css/mobile.css +0 -649
  136. package/cjs/popover/demo/style/mobile.less +0 -135
  137. package/cjs/popup/demo/style/css/mobile.css +0 -540
  138. package/cjs/popup/demo/style/mobile.less +0 -66
  139. package/cjs/popup-swiper/demo/style/css/mobile.css +0 -540
  140. package/cjs/popup-swiper/demo/style/mobile.less +0 -66
  141. package/cjs/portal/demo/style/css/mobile.css +0 -527
  142. package/cjs/portal/demo/style/mobile.less +0 -48
  143. package/cjs/progress/demo/style/css/mobile.css +0 -520
  144. package/cjs/progress/demo/style/mobile.less +0 -39
  145. package/cjs/pull-refresh/demo/style/css/mobile.css +0 -554
  146. package/cjs/pull-refresh/demo/style/mobile.less +0 -83
  147. package/cjs/radio/demo/style/css/mobile.css +0 -529
  148. package/cjs/radio/demo/style/mobile.less +0 -54
  149. package/cjs/rate/demo/style/css/mobile.css +0 -514
  150. package/cjs/rate/demo/style/mobile.less +0 -33
  151. package/cjs/search-bar/demo/style/css/mobile.css +0 -520
  152. package/cjs/search-bar/demo/style/mobile.less +0 -43
  153. package/cjs/show-monitor/demo/style/css/mobile.css +0 -569
  154. package/cjs/show-monitor/demo/style/mobile.less +0 -90
  155. package/cjs/skeleton/demo/style/css/mobile.css +0 -517
  156. package/cjs/skeleton/demo/style/mobile.less +0 -38
  157. package/cjs/slider/demo/style/css/mobile.css +0 -529
  158. package/cjs/slider/demo/style/mobile.less +0 -60
  159. package/cjs/stepper/demo/style/css/mobile.css +0 -514
  160. package/cjs/stepper/demo/style/mobile.less +0 -34
  161. package/cjs/steps/demo/style/css/mobile.css +0 -611
  162. package/cjs/steps/demo/style/mobile.less +0 -75
  163. package/cjs/sticky/demo/style/css/mobile.css +0 -527
  164. package/cjs/sticky/demo/style/mobile.less +0 -48
  165. package/cjs/swipe-action/demo/style/css/mobile.css +0 -515
  166. package/cjs/swipe-action/demo/style/mobile.less +0 -34
  167. package/cjs/swipe-load/demo/style/css/mobile.css +0 -580
  168. package/cjs/swipe-load/demo/style/mobile.less +0 -116
  169. package/cjs/switch/demo/style/css/mobile.css +0 -524
  170. package/cjs/switch/demo/style/mobile.less +0 -49
  171. package/cjs/tab-bar/demo/style/css/mobile.css +0 -553
  172. package/cjs/tab-bar/demo/style/mobile.less +0 -59
  173. package/cjs/tabs/demo/style/css/mobile.css +0 -633
  174. package/cjs/tabs/demo/style/mobile.less +0 -174
  175. package/cjs/tag/demo/style/css/mobile.css +0 -516
  176. package/cjs/tag/demo/style/mobile.less +0 -33
  177. package/cjs/textarea/demo/style/css/mobile.css +0 -523
  178. package/cjs/textarea/demo/style/mobile.less +0 -47
  179. package/cjs/toast/demo/style/css/mobile.css +0 -520
  180. package/cjs/toast/demo/style/mobile.less +0 -37
  181. package/cjs/transition/demo/style/css/mobile.css +0 -529
  182. package/cjs/transition/demo/style/mobile.less +0 -47
  183. package/esm/action-sheet/demo/style/css/mobile.css +0 -523
  184. package/esm/action-sheet/demo/style/mobile.less +0 -52
  185. package/esm/avatar/demo/style/css/mobile.css +0 -578
  186. package/esm/avatar/demo/style/mobile.less +0 -96
  187. package/esm/badge/demo/style/css/mobile.css +0 -580
  188. package/esm/badge/demo/style/mobile.less +0 -107
  189. package/esm/button/demo/style/css/mobile.css +0 -530
  190. package/esm/button/demo/style/mobile.less +0 -44
  191. package/esm/carousel/demo/style/css/mobile.css +0 -553
  192. package/esm/carousel/demo/style/mobile.less +0 -70
  193. package/esm/cell/demo/style/css/mobile.css +0 -585
  194. package/esm/cell/demo/style/mobile.less +0 -102
  195. package/esm/checkbox/demo/style/css/mobile.css +0 -520
  196. package/esm/checkbox/demo/style/mobile.less +0 -45
  197. package/esm/circle-progress/demo/style/css/mobile.css +0 -516
  198. package/esm/circle-progress/demo/style/mobile.less +0 -34
  199. package/esm/collapse/demo/style/css/mobile.css +0 -516
  200. package/esm/collapse/demo/style/mobile.less +0 -33
  201. package/esm/context-provider/demo/style/css/mobile.css +0 -520
  202. package/esm/context-provider/demo/style/mobile.less +0 -37
  203. package/esm/count-down/demo/style/css/mobile.css +0 -575
  204. package/esm/count-down/demo/style/mobile.less +0 -96
  205. package/esm/date-picker/demo/style/css/mobile.css +0 -520
  206. package/esm/date-picker/demo/style/mobile.less +0 -37
  207. package/esm/dialog/demo/style/css/mobile.css +0 -548
  208. package/esm/dialog/demo/style/mobile.less +0 -80
  209. package/esm/divider/demo/style/css/mobile.css +0 -516
  210. package/esm/divider/demo/style/mobile.less +0 -36
  211. package/esm/dropdown/demo/style/css/mobile.css +0 -515
  212. package/esm/dropdown/demo/style/mobile.less +0 -32
  213. package/esm/dropdown-menu/demo/style/css/mobile.css +0 -516
  214. package/esm/dropdown-menu/demo/style/mobile.less +0 -33
  215. package/esm/ellipsis/demo/style/css/mobile.css +0 -528
  216. package/esm/ellipsis/demo/style/mobile.less +0 -53
  217. package/esm/grid/demo/style/css/mobile.css +0 -613
  218. package/esm/grid/demo/style/mobile.less +0 -157
  219. package/esm/image/demo/style/css/mobile.css +0 -580
  220. package/esm/image/demo/style/mobile.less +0 -86
  221. package/esm/image-picker/demo/style/css/mobile.css +0 -550
  222. package/esm/image-picker/demo/style/mobile.less +0 -67
  223. package/esm/image-preview/demo/style/css/mobile.css +0 -551
  224. package/esm/image-preview/demo/style/mobile.less +0 -61
  225. package/esm/index-bar/demo/style/css/mobile.css +0 -533
  226. package/esm/index-bar/demo/style/mobile.less +0 -51
  227. package/esm/input/demo/style/css/mobile.css +0 -602
  228. package/esm/input/demo/style/mobile.less +0 -132
  229. package/esm/keyboard/demo/style/css/mobile.css +0 -520
  230. package/esm/keyboard/demo/style/mobile.less +0 -42
  231. package/esm/load-more/demo/style/css/mobile.css +0 -520
  232. package/esm/load-more/demo/style/mobile.less +0 -39
  233. package/esm/loading/demo/style/css/mobile.css +0 -529
  234. package/esm/loading/demo/style/mobile.less +0 -48
  235. package/esm/masking/demo/style/css/mobile.css +0 -535
  236. package/esm/masking/demo/style/mobile.less +0 -56
  237. package/esm/nav-bar/demo/style/css/mobile.css +0 -523
  238. package/esm/nav-bar/demo/style/mobile.less +0 -46
  239. package/esm/notice-bar/demo/style/css/mobile.css +0 -4
  240. package/esm/notice-bar/demo/style/mobile.less +0 -6
  241. package/esm/notify/demo/style/css/mobile.css +0 -545
  242. package/esm/notify/demo/style/mobile.less +0 -60
  243. package/esm/pagination/demo/style/css/index.css +0 -516
  244. package/esm/pagination/demo/style/index.less +0 -35
  245. package/esm/picker/demo/style/css/mobile.css +0 -531
  246. package/esm/picker/demo/style/mobile.less +0 -49
  247. package/esm/picker-view/demo/style/css/mobile.css +0 -513
  248. package/esm/picker-view/demo/style/mobile.less +0 -32
  249. package/esm/popover/demo/style/css/mobile.css +0 -649
  250. package/esm/popover/demo/style/mobile.less +0 -135
  251. package/esm/popup/demo/style/css/mobile.css +0 -540
  252. package/esm/popup/demo/style/mobile.less +0 -66
  253. package/esm/popup-swiper/demo/style/css/mobile.css +0 -540
  254. package/esm/popup-swiper/demo/style/mobile.less +0 -66
  255. package/esm/portal/demo/style/css/mobile.css +0 -527
  256. package/esm/portal/demo/style/mobile.less +0 -48
  257. package/esm/progress/demo/style/css/mobile.css +0 -520
  258. package/esm/progress/demo/style/mobile.less +0 -39
  259. package/esm/pull-refresh/demo/style/css/mobile.css +0 -554
  260. package/esm/pull-refresh/demo/style/mobile.less +0 -83
  261. package/esm/radio/demo/style/css/mobile.css +0 -529
  262. package/esm/radio/demo/style/mobile.less +0 -54
  263. package/esm/rate/demo/style/css/mobile.css +0 -514
  264. package/esm/rate/demo/style/mobile.less +0 -33
  265. package/esm/search-bar/demo/style/css/mobile.css +0 -520
  266. package/esm/search-bar/demo/style/mobile.less +0 -43
  267. package/esm/show-monitor/demo/style/css/mobile.css +0 -569
  268. package/esm/show-monitor/demo/style/mobile.less +0 -90
  269. package/esm/skeleton/demo/style/css/mobile.css +0 -517
  270. package/esm/skeleton/demo/style/mobile.less +0 -38
  271. package/esm/slider/demo/style/css/mobile.css +0 -529
  272. package/esm/slider/demo/style/mobile.less +0 -60
  273. package/esm/stepper/demo/style/css/mobile.css +0 -514
  274. package/esm/stepper/demo/style/mobile.less +0 -34
  275. package/esm/steps/demo/style/css/mobile.css +0 -611
  276. package/esm/steps/demo/style/mobile.less +0 -75
  277. package/esm/sticky/demo/style/css/mobile.css +0 -527
  278. package/esm/sticky/demo/style/mobile.less +0 -48
  279. package/esm/swipe-action/demo/style/css/mobile.css +0 -515
  280. package/esm/swipe-action/demo/style/mobile.less +0 -34
  281. package/esm/swipe-load/demo/style/css/mobile.css +0 -580
  282. package/esm/swipe-load/demo/style/mobile.less +0 -116
  283. package/esm/switch/demo/style/css/mobile.css +0 -524
  284. package/esm/switch/demo/style/mobile.less +0 -49
  285. package/esm/tab-bar/demo/style/css/mobile.css +0 -553
  286. package/esm/tab-bar/demo/style/mobile.less +0 -59
  287. package/esm/tabs/demo/style/css/mobile.css +0 -633
  288. package/esm/tabs/demo/style/mobile.less +0 -174
  289. package/esm/tag/demo/style/css/mobile.css +0 -516
  290. package/esm/tag/demo/style/mobile.less +0 -33
  291. package/esm/textarea/demo/style/css/mobile.css +0 -523
  292. package/esm/textarea/demo/style/mobile.less +0 -47
  293. package/esm/toast/demo/style/css/mobile.css +0 -520
  294. package/esm/toast/demo/style/mobile.less +0 -37
  295. package/esm/transition/demo/style/css/mobile.css +0 -529
  296. package/esm/transition/demo/style/mobile.less +0 -47
  297. package/umd/action-sheet/demo/style/css/mobile.css +0 -523
  298. package/umd/action-sheet/demo/style/mobile.less +0 -52
  299. package/umd/avatar/demo/style/css/mobile.css +0 -578
  300. package/umd/avatar/demo/style/mobile.less +0 -96
  301. package/umd/badge/demo/style/css/mobile.css +0 -580
  302. package/umd/badge/demo/style/mobile.less +0 -107
  303. package/umd/button/demo/style/css/mobile.css +0 -530
  304. package/umd/button/demo/style/mobile.less +0 -44
  305. package/umd/carousel/demo/style/css/mobile.css +0 -553
  306. package/umd/carousel/demo/style/mobile.less +0 -70
  307. package/umd/cell/demo/style/css/mobile.css +0 -585
  308. package/umd/cell/demo/style/mobile.less +0 -102
  309. package/umd/checkbox/demo/style/css/mobile.css +0 -520
  310. package/umd/checkbox/demo/style/mobile.less +0 -45
  311. package/umd/circle-progress/demo/style/css/mobile.css +0 -516
  312. package/umd/circle-progress/demo/style/mobile.less +0 -34
  313. package/umd/collapse/demo/style/css/mobile.css +0 -516
  314. package/umd/collapse/demo/style/mobile.less +0 -33
  315. package/umd/context-provider/demo/style/css/mobile.css +0 -520
  316. package/umd/context-provider/demo/style/mobile.less +0 -37
  317. package/umd/count-down/demo/style/css/mobile.css +0 -575
  318. package/umd/count-down/demo/style/mobile.less +0 -96
  319. package/umd/date-picker/demo/style/css/mobile.css +0 -520
  320. package/umd/date-picker/demo/style/mobile.less +0 -37
  321. package/umd/dialog/demo/style/css/mobile.css +0 -548
  322. package/umd/dialog/demo/style/mobile.less +0 -80
  323. package/umd/divider/demo/style/css/mobile.css +0 -516
  324. package/umd/divider/demo/style/mobile.less +0 -36
  325. package/umd/dropdown/demo/style/css/mobile.css +0 -515
  326. package/umd/dropdown/demo/style/mobile.less +0 -32
  327. package/umd/dropdown-menu/demo/style/css/mobile.css +0 -516
  328. package/umd/dropdown-menu/demo/style/mobile.less +0 -33
  329. package/umd/ellipsis/demo/style/css/mobile.css +0 -528
  330. package/umd/ellipsis/demo/style/mobile.less +0 -53
  331. package/umd/grid/demo/style/css/mobile.css +0 -613
  332. package/umd/grid/demo/style/mobile.less +0 -157
  333. package/umd/image/demo/style/css/mobile.css +0 -580
  334. package/umd/image/demo/style/mobile.less +0 -86
  335. package/umd/image-picker/demo/style/css/mobile.css +0 -550
  336. package/umd/image-picker/demo/style/mobile.less +0 -67
  337. package/umd/image-preview/demo/style/css/mobile.css +0 -551
  338. package/umd/image-preview/demo/style/mobile.less +0 -61
  339. package/umd/index-bar/demo/style/css/mobile.css +0 -533
  340. package/umd/index-bar/demo/style/mobile.less +0 -51
  341. package/umd/input/demo/style/css/mobile.css +0 -602
  342. package/umd/input/demo/style/mobile.less +0 -132
  343. package/umd/keyboard/demo/style/css/mobile.css +0 -520
  344. package/umd/keyboard/demo/style/mobile.less +0 -42
  345. package/umd/load-more/demo/style/css/mobile.css +0 -520
  346. package/umd/load-more/demo/style/mobile.less +0 -39
  347. package/umd/loading/demo/style/css/mobile.css +0 -529
  348. package/umd/loading/demo/style/mobile.less +0 -48
  349. package/umd/masking/demo/style/css/mobile.css +0 -535
  350. package/umd/masking/demo/style/mobile.less +0 -56
  351. package/umd/nav-bar/demo/style/css/mobile.css +0 -523
  352. package/umd/nav-bar/demo/style/mobile.less +0 -46
  353. package/umd/notice-bar/demo/style/css/mobile.css +0 -4
  354. package/umd/notice-bar/demo/style/mobile.less +0 -6
  355. package/umd/notify/demo/style/css/mobile.css +0 -545
  356. package/umd/notify/demo/style/mobile.less +0 -60
  357. package/umd/pagination/demo/style/css/index.css +0 -516
  358. package/umd/pagination/demo/style/index.less +0 -35
  359. package/umd/picker/demo/style/css/mobile.css +0 -531
  360. package/umd/picker/demo/style/mobile.less +0 -49
  361. package/umd/picker-view/demo/style/css/mobile.css +0 -513
  362. package/umd/picker-view/demo/style/mobile.less +0 -32
  363. package/umd/popover/demo/style/css/mobile.css +0 -649
  364. package/umd/popover/demo/style/mobile.less +0 -135
  365. package/umd/popup/demo/style/css/mobile.css +0 -540
  366. package/umd/popup/demo/style/mobile.less +0 -66
  367. package/umd/popup-swiper/demo/style/css/mobile.css +0 -540
  368. package/umd/popup-swiper/demo/style/mobile.less +0 -66
  369. package/umd/portal/demo/style/css/mobile.css +0 -527
  370. package/umd/portal/demo/style/mobile.less +0 -48
  371. package/umd/progress/demo/style/css/mobile.css +0 -520
  372. package/umd/progress/demo/style/mobile.less +0 -39
  373. package/umd/pull-refresh/demo/style/css/mobile.css +0 -554
  374. package/umd/pull-refresh/demo/style/mobile.less +0 -83
  375. package/umd/radio/demo/style/css/mobile.css +0 -529
  376. package/umd/radio/demo/style/mobile.less +0 -54
  377. package/umd/rate/demo/style/css/mobile.css +0 -514
  378. package/umd/rate/demo/style/mobile.less +0 -33
  379. package/umd/search-bar/demo/style/css/mobile.css +0 -520
  380. package/umd/search-bar/demo/style/mobile.less +0 -43
  381. package/umd/show-monitor/demo/style/css/mobile.css +0 -569
  382. package/umd/show-monitor/demo/style/mobile.less +0 -90
  383. package/umd/skeleton/demo/style/css/mobile.css +0 -517
  384. package/umd/skeleton/demo/style/mobile.less +0 -38
  385. package/umd/slider/demo/style/css/mobile.css +0 -529
  386. package/umd/slider/demo/style/mobile.less +0 -60
  387. package/umd/stepper/demo/style/css/mobile.css +0 -514
  388. package/umd/stepper/demo/style/mobile.less +0 -34
  389. package/umd/steps/demo/style/css/mobile.css +0 -611
  390. package/umd/steps/demo/style/mobile.less +0 -75
  391. package/umd/sticky/demo/style/css/mobile.css +0 -527
  392. package/umd/sticky/demo/style/mobile.less +0 -48
  393. package/umd/swipe-action/demo/style/css/mobile.css +0 -515
  394. package/umd/swipe-action/demo/style/mobile.less +0 -34
  395. package/umd/swipe-load/demo/style/css/mobile.css +0 -580
  396. package/umd/swipe-load/demo/style/mobile.less +0 -116
  397. package/umd/switch/demo/style/css/mobile.css +0 -524
  398. package/umd/switch/demo/style/mobile.less +0 -49
  399. package/umd/tab-bar/demo/style/css/mobile.css +0 -553
  400. package/umd/tab-bar/demo/style/mobile.less +0 -59
  401. package/umd/tabs/demo/style/css/mobile.css +0 -633
  402. package/umd/tabs/demo/style/mobile.less +0 -174
  403. package/umd/tag/demo/style/css/mobile.css +0 -516
  404. package/umd/tag/demo/style/mobile.less +0 -33
  405. package/umd/textarea/demo/style/css/mobile.css +0 -523
  406. package/umd/textarea/demo/style/mobile.less +0 -47
  407. package/umd/toast/demo/style/css/mobile.css +0 -520
  408. package/umd/toast/demo/style/mobile.less +0 -37
  409. package/umd/transition/demo/style/css/mobile.css +0 -529
  410. package/umd/transition/demo/style/mobile.less +0 -47
package/dist/index.js CHANGED
@@ -1715,6 +1715,9 @@
1715
1715
  boolean: {
1716
1716
  equal: '%s 不等于 `%s`'
1717
1717
  }
1718
+ },
1719
+ NavBar: {
1720
+ backBtnAriaLabel: '返回'
1718
1721
  }
1719
1722
  };
1720
1723
 
@@ -12457,7 +12460,7 @@
12457
12460
  function getCurrentCellValue() {
12458
12461
  var _a;
12459
12462
 
12460
- return currentValue || ((_a = data[currentIndex]) === null || _a === void 0 ? void 0 : _a.value);
12463
+ return (_a = data[currentIndex]) === null || _a === void 0 ? void 0 : _a.value;
12461
12464
  }
12462
12465
 
12463
12466
  function _clearTimer() {
@@ -12754,7 +12757,7 @@
12754
12757
  // @en Remove empty values from cascader
12755
12758
 
12756
12759
  return curValues.filter(function (v) {
12757
- return v;
12760
+ return v !== undefined;
12758
12761
  });
12759
12762
  };
12760
12763
 
@@ -20870,7 +20873,7 @@
20870
20873
  transformersRef.current = []; // 移除过渡图片
20871
20874
  // @en Remove transition image
20872
20875
 
20873
- removeChild(document.querySelector('.image-preview-fake-trans-image'));
20876
+ removeChild(transImageRef.current);
20874
20877
  setTransImageInfo(null);
20875
20878
  setPlaceholders({});
20876
20879
  var mounted_1 = isInitialMount.current;
@@ -20912,8 +20915,10 @@
20912
20915
  }, [getMaxScale]);
20913
20916
 
20914
20917
  function removeChild(child) {
20918
+ var _a, _b, _c;
20919
+
20915
20920
  try {
20916
- child && document.body.removeChild(child);
20921
+ child && ((_c = (_b = (_a = domRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.carousel-item')) === null || _b === void 0 ? void 0 : _b[innerIndexRef.current]) === null || _c === void 0 ? void 0 : _c.removeChild(child));
20917
20922
  } catch (e) {}
20918
20923
  } // 监听滑动到上下边缘后还在往外滑动的操作,则关闭弹窗
20919
20924
  // @en Monitor the operation of sliding out after sliding to the upper and lower edges, then close the popup
@@ -21333,7 +21338,41 @@
21333
21338
  }
21334
21339
  }
21335
21340
 
21336
- var handleClick = useSingleAndDoubleClick(handleImageClick, handleImageDoubleClick);
21341
+ var handleClick = useSingleAndDoubleClick(handleImageClick, handleImageDoubleClick); // 当使用 getThumbBounds 时,关闭图片预览有缩小效果
21342
+ // @en When using getThumbBounds, closing the image preview has a shrinking effect
21343
+
21344
+ function animateBeforeClose() {
21345
+ var _a;
21346
+
21347
+ var index = innerIndexRef.current;
21348
+ var imageDom = (_a = imagesRef.current[index]) === null || _a === void 0 ? void 0 : _a.image;
21349
+ var thumbBounds = getThumbBounds === null || getThumbBounds === void 0 ? void 0 : getThumbBounds(index);
21350
+
21351
+ if (!imageDom || !thumbBounds || !thumbBounds.width || !thumbBounds.height) {
21352
+ return;
21353
+ } // 小图超过一半在视野外时,不展示缩小效果
21354
+ // @en When more than half of the thumbnail is outside the field of view, the zoom effect will not be displayed
21355
+
21356
+
21357
+ if (thumbBounds.top < -1 * thumbBounds.height / 2 || thumbBounds.top > windowHeight - thumbBounds.height / 2 || thumbBounds.left < -1 * thumbBounds.width / 2 || thumbBounds.left > windowWidth - thumbBounds.width / 2) {
21358
+ return;
21359
+ }
21360
+
21361
+ var imageDomRect = imageDom.getBoundingClientRect();
21362
+
21363
+ if (!imageDomRect.width || !imageDomRect.height) {
21364
+ return;
21365
+ }
21366
+
21367
+ imageDom.classList.add('closing-animation');
21368
+ setImageBounds(imageDom, imageDomRect, imageDomRect);
21369
+ imageDom.style.objectPosition = images[index].thumbPosition || 'top center';
21370
+ nextTick(function () {
21371
+ imageDom.style.transitionDuration = displayDuration + "ms";
21372
+ imageDom.style.webkitTransitionDuration = displayDuration + "ms";
21373
+ setImageBounds(imageDom, thumbBounds, imageDomRect);
21374
+ });
21375
+ }
21337
21376
 
21338
21377
  function goClose(e) {
21339
21378
  if (closingRef.current) {
@@ -21341,6 +21380,7 @@
21341
21380
  }
21342
21381
 
21343
21382
  closingRef.current = true;
21383
+ animateBeforeClose();
21344
21384
  close(e);
21345
21385
  }
21346
21386
  /**
@@ -21363,7 +21403,7 @@
21363
21403
 
21364
21404
 
21365
21405
  function setDisplayAnimation(index) {
21366
- var _a;
21406
+ var _a, _b, _c, _d;
21367
21407
 
21368
21408
  var firstLoaded = (_a = imagesStatusRef.current[index]) === null || _a === void 0 ? void 0 : _a.firstLoaded;
21369
21409
  var fallbackSrc = replaceFallbackWhenLoaded && firstLoaded ? images[index].src : images[index].fallbackSrc; // 用户设置了getThumbBounds和images的fallbackSrc属性才有放大过渡效果
@@ -21394,7 +21434,7 @@
21394
21434
  transImage.style.opacity = '0';
21395
21435
  transImage.style.transitionDuration = displayDuration + "ms";
21396
21436
  transImage.style.webkitTransitionDuration = displayDuration + "ms";
21397
- document.body.appendChild(transImage); // 拿到放大之后的位置rect,没拿到就取消小图放大效果
21437
+ (_d = (_c = (_b = domRef.current) === null || _b === void 0 ? void 0 : _b.querySelectorAll('.carousel-item')) === null || _c === void 0 ? void 0 : _c[index]) === null || _d === void 0 ? void 0 : _d.prepend(transImage); // 拿到放大之后的位置rect,没拿到就取消小图放大效果
21398
21438
  // @en Get the zoomed-in position rect, and cancel the zoom-in effect if not getting it
21399
21439
 
21400
21440
  getNewImageBounds(index, fallbackSrc, transImage, function (rect) {
@@ -21416,9 +21456,10 @@
21416
21456
  return __assign$2(__assign$2({}, holders), (_a = {}, _a[index] = true, _a));
21417
21457
  });
21418
21458
  }, Math.max(0, displayDuration - 80));
21459
+ var transitionEndDelay = images[index].transitionEndDelay || 30;
21419
21460
  setTimeout(function () {
21420
21461
  resetAnimation(index);
21421
- }, displayDuration + 30);
21462
+ }, displayDuration + transitionEndDelay);
21422
21463
  });
21423
21464
  });
21424
21465
  }
@@ -21577,18 +21618,14 @@
21577
21618
  }) : null;
21578
21619
  }
21579
21620
 
21580
- function renderLoadingArea(index) {
21581
- // loadingArea提出来,放到过渡图上层
21582
- // @en The loadingArea is extracted and placed on the upper layer of the transition image
21583
- return index === openIndex ? /*#__PURE__*/React__default["default"].createElement(Portal, {
21584
- getContainer: getContainer
21585
- }, /*#__PURE__*/React__default["default"].createElement("div", {
21621
+ function renderLoadingArea() {
21622
+ return /*#__PURE__*/React__default["default"].createElement("div", {
21586
21623
  className: "image-preview-loading-area"
21587
21624
  }, loadingArea || /*#__PURE__*/React__default["default"].createElement(Loading, {
21588
21625
  type: "circle",
21589
21626
  className: "loading-icon",
21590
21627
  radius: 7
21591
- }))) : loadingArea;
21628
+ }));
21592
21629
  }
21593
21630
 
21594
21631
  return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
@@ -21636,7 +21673,7 @@
21636
21673
  imagesRef.current[index] = r;
21637
21674
  },
21638
21675
  showLoading: showLoading,
21639
- loadingArea: renderLoadingArea(index),
21676
+ loadingArea: renderLoadingArea(),
21640
21677
  errorArea: errorArea,
21641
21678
  showError: showError,
21642
21679
  retryTime: retryTime,
@@ -22974,16 +23011,22 @@
22974
23011
  function BackArrow(_a) {
22975
23012
  var _b = _a.color,
22976
23013
  color = _b === void 0 ? 'currentColor' : _b;
22977
- return /*#__PURE__*/React__default["default"].createElement("div", {
22978
- className: "c-svg-arrow nav-bar-back"
22979
- }, /*#__PURE__*/React__default["default"].createElement("svg", {
22980
- height: "100%",
22981
- viewBox: "0 0 16 16"
22982
- }, /*#__PURE__*/React__default["default"].createElement("path", {
22983
- id: "path-1_1_",
22984
- d: "M2.1,8l5.4,5.4c0.1,0.1,0.1,0.3,0,0.5L7,14.4c-0.1,0.1-0.3,0.1-0.5,0L0.7,8.5c-0.3-0.3-0.3-0.7,0-0.9\n l5.9-5.9c0.1-0.1,0.3-0.1,0.5,0l0.5,0.5c0.1,0.1,0.1,0.3,0,0.5L2.1,8z",
22985
- fill: color
22986
- })));
23014
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
23015
+ var _b = _a.locale,
23016
+ locale = _b === void 0 ? defaultLocale : _b;
23017
+ return /*#__PURE__*/React__default["default"].createElement("div", {
23018
+ role: "button",
23019
+ className: "c-svg-arrow nav-bar-back",
23020
+ "aria-label": locale.NavBar.backBtnAriaLabel
23021
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
23022
+ height: "100%",
23023
+ viewBox: "0 0 16 16"
23024
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
23025
+ id: "path-1_1_",
23026
+ d: "M2.1,8l5.4,5.4c0.1,0.1,0.1,0.3,0,0.5L7,14.4c-0.1,0.1-0.3,0.1-0.5,0L0.7,8.5c-0.3-0.3-0.3-0.7,0-0.9\n l5.9-5.9c0.1-0.1,0.3-0.1,0.5,0l0.5,0.5c0.1,0.1,0.1,0.3,0,0.5L2.1,8z",
23027
+ fill: color
23028
+ })));
23029
+ });
22987
23030
  }
22988
23031
 
22989
23032
  /**
@@ -27713,6 +27756,7 @@
27713
27756
  var getLinePosition = _a.getLinePosition,
27714
27757
  commonIsTouching = _a.commonIsTouching,
27715
27758
  valueGroup = _a.valueGroup;
27759
+ var useRtl = React.useContext(GlobalContext).useRtl;
27716
27760
 
27717
27761
  var _b = React.useContext(SliderContext),
27718
27762
  size = _b.size,
@@ -27751,7 +27795,8 @@
27751
27795
  length = (larger - min) / (max - min) * length - start;
27752
27796
  }
27753
27797
 
27754
- return _a = {}, _a[isHorizontal ? 'left' : 'bottom'] = start + "px", _a[isHorizontal ? 'width' : 'height'] = Math.abs(length) + "px", _a;
27798
+ var leftStyle = useRtl ? 'right' : 'left';
27799
+ return _a = {}, _a[isHorizontal ? leftStyle : 'bottom'] = start + "px", _a[isHorizontal ? 'width' : 'height'] = Math.abs(length) + "px", _a;
27755
27800
  }, [valueGroup, getLinePosition, min, max, isHorizontal]);
27756
27801
  return {
27757
27802
  heightStyle: heightStyle,
@@ -27774,6 +27819,7 @@
27774
27819
  valueGroup = _a.valueGroup,
27775
27820
  setValueGroup = _a.setValueGroup,
27776
27821
  setCommonIsTouching = _a.setCommonIsTouching;
27822
+ var useRtl = React.useContext(GlobalContext).useRtl;
27777
27823
 
27778
27824
  var _b = React.useContext(SliderContext),
27779
27825
  disabled = _b.disabled,
@@ -27807,7 +27853,8 @@
27807
27853
  length = _a.length,
27808
27854
  start = _a.start;
27809
27855
  if (length === 0) return 0;
27810
- var newWidth = isHorizontal ? touchPosition - start : length - touchPosition + start;
27856
+ var rtlRatio = useRtl ? -1 : 1;
27857
+ var newWidth = isHorizontal ? (touchPosition - start) * rtlRatio : length - touchPosition + start;
27811
27858
 
27812
27859
  if (newWidth < 0) {
27813
27860
  newWidth = 0;
@@ -28039,20 +28086,24 @@
28039
28086
  className = _b === void 0 ? '' : _b,
28040
28087
  _c = _a.style,
28041
28088
  style = _c === void 0 ? {} : _c;
28042
- var _d = React.useContext(GlobalContext).prefixCls,
28043
- prefixCls = _d === void 0 ? '' : _d;
28044
28089
 
28045
- var _e = React.useContext(SliderContext),
28046
- type = _e.type,
28047
- showMarks = _e.showMarks,
28048
- max = _e.max,
28049
- min = _e.min;
28090
+ var _d = React.useContext(GlobalContext),
28091
+ _e = _d.prefixCls,
28092
+ prefixCls = _e === void 0 ? '' : _e,
28093
+ useRtl = _d.useRtl;
28094
+
28095
+ var _f = React.useContext(SliderContext),
28096
+ type = _f.type,
28097
+ showMarks = _f.showMarks,
28098
+ max = _f.max,
28099
+ min = _f.min;
28050
28100
 
28051
28101
  var isHorizontal = /^horizontal/g.test(type);
28052
28102
  var genMarkStyle = React.useCallback(function (value) {
28053
28103
  var _a;
28054
28104
 
28055
- return _a = {}, _a[isHorizontal ? 'left' : 'bottom'] = (value - min) / (max - min) * 100 + "%", _a;
28105
+ var leftStyle = useRtl ? 'right' : 'left';
28106
+ return _a = {}, _a[isHorizontal ? leftStyle : 'bottom'] = (value - min) / (max - min) * 100 + "%", _a;
28056
28107
  }, [isHorizontal, min, max]);
28057
28108
  return /*#__PURE__*/React__default["default"].createElement("div", {
28058
28109
  className: prefixCls + "-slider-marks"
@@ -28073,26 +28124,28 @@
28073
28124
  }
28074
28125
 
28075
28126
  var Slider = /*#__PURE__*/React.forwardRef(function (_, ref) {
28076
- var _a = React.useContext(GlobalContext).prefixCls,
28077
- prefixCls = _a === void 0 ? '' : _a;
28127
+ var _a = React.useContext(GlobalContext),
28128
+ _b = _a.prefixCls,
28129
+ prefixCls = _b === void 0 ? '' : _b,
28130
+ useRtl = _a.useRtl;
28078
28131
 
28079
- var _b = React.useContext(SliderContext),
28080
- className = _b.className,
28081
- style = _b.style,
28082
- disabled = _b.disabled,
28083
- min = _b.min,
28084
- max = _b.max,
28085
- type = _b.type,
28086
- showTooltip = _b.showTooltip,
28087
- showMarks = _b.showMarks;
28132
+ var _c = React.useContext(SliderContext),
28133
+ className = _c.className,
28134
+ style = _c.style,
28135
+ disabled = _c.disabled,
28136
+ min = _c.min,
28137
+ max = _c.max,
28138
+ type = _c.type,
28139
+ showTooltip = _c.showTooltip,
28140
+ showMarks = _c.showMarks;
28088
28141
 
28089
28142
  var domRef = React.useRef(null);
28090
28143
  var lineRef = React.useRef(null); // 拖动滑块的 index 为当前的 isTouching
28091
28144
  // @en The index of the slider is the current isTouching
28092
28145
 
28093
- var _c = React.useState(-1),
28094
- commonIsTouching = _c[0],
28095
- setCommonIsTouching = _c[1];
28146
+ var _d = React.useState(-1),
28147
+ commonIsTouching = _d[0],
28148
+ setCommonIsTouching = _d[1];
28096
28149
 
28097
28150
  var isHorizontal = /^horizontal/g.test(type);
28098
28151
  React.useImperativeHandle(ref, function () {
@@ -28101,14 +28154,14 @@
28101
28154
  };
28102
28155
  });
28103
28156
 
28104
- var _d = useSliderInit({
28157
+ var _e = useSliderInit({
28105
28158
  commonIsTouching: commonIsTouching
28106
28159
  }),
28107
- firstRender = _d.firstRender,
28108
- valueGroup = _d.valueGroup,
28109
- setValueGroup = _d.setValueGroup,
28110
- runTimeConfig = _d.runTimeConfig,
28111
- isMultiThumb = _d.isMultiThumb; // 最长线 div 位置
28160
+ firstRender = _e.firstRender,
28161
+ valueGroup = _e.valueGroup,
28162
+ setValueGroup = _e.setValueGroup,
28163
+ runTimeConfig = _e.runTimeConfig,
28164
+ isMultiThumb = _e.isMultiThumb; // 最长线 div 位置
28112
28165
 
28113
28166
 
28114
28167
  var getLinePosition = React.useCallback(function () {
@@ -28125,20 +28178,21 @@
28125
28178
  top = _c.top,
28126
28179
  height = _c.height;
28127
28180
 
28181
+ var leftValue = useRtl ? left + width : left;
28128
28182
  return {
28129
28183
  length: isHorizontal ? width : height,
28130
- start: isHorizontal ? left : top
28184
+ start: isHorizontal ? leftValue : top
28131
28185
  };
28132
28186
  }, [isHorizontal, firstRender]);
28133
28187
 
28134
- var _e = useSliderStyle({
28188
+ var _f = useSliderStyle({
28135
28189
  getLinePosition: getLinePosition,
28136
28190
  commonIsTouching: commonIsTouching,
28137
28191
  valueGroup: valueGroup
28138
28192
  }),
28139
- heightStyle = _e.heightStyle,
28140
- transitionClass = _e.transitionClass,
28141
- activeLineStyle = _e.activeLineStyle;
28193
+ heightStyle = _f.heightStyle,
28194
+ transitionClass = _f.transitionClass,
28195
+ activeLineStyle = _f.activeLineStyle;
28142
28196
 
28143
28197
  useSliderEvents({
28144
28198
  lineRef: lineRef,
@@ -28148,11 +28202,11 @@
28148
28202
  setCommonIsTouching: setCommonIsTouching
28149
28203
  });
28150
28204
 
28151
- var _f = useSliderIcon({
28205
+ var _g = useSliderIcon({
28152
28206
  valueGroup: valueGroup
28153
28207
  }),
28154
- renderPrefixLabel = _f.renderPrefixLabel,
28155
- renderSuffixLabel = _f.renderSuffixLabel;
28208
+ renderPrefixLabel = _g.renderPrefixLabel,
28209
+ renderSuffixLabel = _g.renderSuffixLabel;
28156
28210
  /**
28157
28211
  * 为了减少 dom 元素计算,只改变激活 line 的样式,让对应的 thumb 附着在两边,所以需要实时调整 className
28158
28212
  * @en In order to reduce the calculation of dom elements, only the style of the active line is changed, so that the corresponding thumb is attached to both sides, so the className needs to be adjusted in real time