@arco-design/mobile-react 2.30.0 → 2.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) 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/carousel/index.js +3 -1
  5. package/cjs/context-provider/index.d.ts +5 -1
  6. package/cjs/context-provider/index.js +10 -3
  7. package/cjs/form/form-item.js +15 -7
  8. package/cjs/form/type.d.ts +3 -2
  9. package/cjs/form/utils.d.ts +1 -0
  10. package/cjs/form/utils.js +6 -2
  11. package/cjs/nav-bar/back-icon.js +20 -10
  12. package/cjs/nav-bar/style/css/index.css +1 -1
  13. package/cjs/picker-view/components/picker-cell.js +1 -1
  14. package/cjs/picker-view/index.js +1 -1
  15. package/cjs/tabs/style/css/index.css +1 -1
  16. package/dist/index.js +57 -27
  17. package/dist/index.min.js +3 -3
  18. package/dist/style.css +3 -0
  19. package/dist/style.min.css +1 -1
  20. package/esm/carousel/index.js +3 -1
  21. package/esm/context-provider/index.d.ts +5 -1
  22. package/esm/context-provider/index.js +11 -4
  23. package/esm/form/form-item.js +15 -7
  24. package/esm/form/type.d.ts +3 -2
  25. package/esm/form/utils.d.ts +1 -0
  26. package/esm/form/utils.js +6 -2
  27. package/esm/nav-bar/back-icon.js +18 -10
  28. package/esm/nav-bar/style/css/index.css +1 -1
  29. package/esm/picker-view/components/picker-cell.js +1 -1
  30. package/esm/picker-view/index.js +1 -1
  31. package/esm/tabs/style/css/index.css +1 -1
  32. package/package.json +3 -3
  33. package/style/css/public.css +2 -0
  34. package/tokens/app/arcodesign/default/css-variables.less +4 -4
  35. package/tokens/app/arcodesign/default/index.js +4 -4
  36. package/tokens/app/arcodesign/default/index.json +10 -10
  37. package/tokens/app/arcodesign/default/index.less +4 -4
  38. package/umd/carousel/index.js +3 -1
  39. package/umd/context-provider/index.d.ts +5 -1
  40. package/umd/context-provider/index.js +10 -3
  41. package/umd/form/form-item.js +15 -7
  42. package/umd/form/type.d.ts +3 -2
  43. package/umd/form/utils.d.ts +1 -0
  44. package/umd/form/utils.js +6 -2
  45. package/umd/nav-bar/back-icon.js +20 -14
  46. package/umd/nav-bar/style/css/index.css +1 -1
  47. package/umd/picker-view/components/picker-cell.js +1 -1
  48. package/umd/picker-view/index.js +1 -1
  49. package/umd/tabs/style/css/index.css +1 -1
  50. package/cjs/action-sheet/demo/style/css/mobile.css +0 -523
  51. package/cjs/action-sheet/demo/style/mobile.less +0 -52
  52. package/cjs/avatar/demo/style/css/mobile.css +0 -578
  53. package/cjs/avatar/demo/style/mobile.less +0 -96
  54. package/cjs/badge/demo/style/css/mobile.css +0 -580
  55. package/cjs/badge/demo/style/mobile.less +0 -107
  56. package/cjs/button/demo/style/css/mobile.css +0 -530
  57. package/cjs/button/demo/style/mobile.less +0 -44
  58. package/cjs/carousel/demo/style/css/mobile.css +0 -553
  59. package/cjs/carousel/demo/style/mobile.less +0 -70
  60. package/cjs/cell/demo/style/css/mobile.css +0 -585
  61. package/cjs/cell/demo/style/mobile.less +0 -102
  62. package/cjs/checkbox/demo/style/css/mobile.css +0 -520
  63. package/cjs/checkbox/demo/style/mobile.less +0 -45
  64. package/cjs/circle-progress/demo/style/css/mobile.css +0 -516
  65. package/cjs/circle-progress/demo/style/mobile.less +0 -34
  66. package/cjs/collapse/demo/style/css/mobile.css +0 -516
  67. package/cjs/collapse/demo/style/mobile.less +0 -33
  68. package/cjs/context-provider/demo/style/css/mobile.css +0 -520
  69. package/cjs/context-provider/demo/style/mobile.less +0 -37
  70. package/cjs/count-down/demo/style/css/mobile.css +0 -575
  71. package/cjs/count-down/demo/style/mobile.less +0 -96
  72. package/cjs/date-picker/demo/style/css/mobile.css +0 -520
  73. package/cjs/date-picker/demo/style/mobile.less +0 -37
  74. package/cjs/dialog/demo/style/css/mobile.css +0 -547
  75. package/cjs/dialog/demo/style/mobile.less +0 -79
  76. package/cjs/divider/demo/style/css/mobile.css +0 -516
  77. package/cjs/divider/demo/style/mobile.less +0 -36
  78. package/cjs/dropdown/demo/style/css/mobile.css +0 -515
  79. package/cjs/dropdown/demo/style/mobile.less +0 -32
  80. package/cjs/dropdown-menu/demo/style/css/mobile.css +0 -516
  81. package/cjs/dropdown-menu/demo/style/mobile.less +0 -33
  82. package/cjs/ellipsis/demo/style/css/mobile.css +0 -528
  83. package/cjs/ellipsis/demo/style/mobile.less +0 -53
  84. package/cjs/grid/demo/style/css/mobile.css +0 -613
  85. package/cjs/grid/demo/style/mobile.less +0 -157
  86. package/cjs/image/demo/style/css/mobile.css +0 -580
  87. package/cjs/image/demo/style/mobile.less +0 -86
  88. package/cjs/image-picker/demo/style/css/mobile.css +0 -550
  89. package/cjs/image-picker/demo/style/mobile.less +0 -67
  90. package/cjs/image-preview/demo/style/css/mobile.css +0 -551
  91. package/cjs/image-preview/demo/style/mobile.less +0 -61
  92. package/cjs/index-bar/demo/style/css/mobile.css +0 -533
  93. package/cjs/index-bar/demo/style/mobile.less +0 -51
  94. package/cjs/input/demo/style/css/mobile.css +0 -584
  95. package/cjs/input/demo/style/mobile.less +0 -107
  96. package/cjs/keyboard/demo/style/css/mobile.css +0 -520
  97. package/cjs/keyboard/demo/style/mobile.less +0 -42
  98. package/cjs/load-more/demo/style/css/mobile.css +0 -520
  99. package/cjs/load-more/demo/style/mobile.less +0 -39
  100. package/cjs/loading/demo/style/css/mobile.css +0 -529
  101. package/cjs/loading/demo/style/mobile.less +0 -48
  102. package/cjs/masking/demo/style/css/mobile.css +0 -535
  103. package/cjs/masking/demo/style/mobile.less +0 -56
  104. package/cjs/nav-bar/demo/style/css/mobile.css +0 -523
  105. package/cjs/nav-bar/demo/style/mobile.less +0 -46
  106. package/cjs/notice-bar/demo/style/css/mobile.css +0 -4
  107. package/cjs/notice-bar/demo/style/mobile.less +0 -6
  108. package/cjs/notify/demo/style/css/mobile.css +0 -541
  109. package/cjs/notify/demo/style/mobile.less +0 -52
  110. package/cjs/pagination/demo/style/css/index.css +0 -516
  111. package/cjs/pagination/demo/style/index.less +0 -35
  112. package/cjs/picker/demo/style/css/mobile.css +0 -531
  113. package/cjs/picker/demo/style/mobile.less +0 -49
  114. package/cjs/picker-view/demo/style/css/mobile.css +0 -513
  115. package/cjs/picker-view/demo/style/mobile.less +0 -32
  116. package/cjs/popover/demo/style/css/mobile.css +0 -645
  117. package/cjs/popover/demo/style/mobile.less +0 -125
  118. package/cjs/popup/demo/style/css/mobile.css +0 -540
  119. package/cjs/popup/demo/style/mobile.less +0 -66
  120. package/cjs/popup-swiper/demo/style/css/mobile.css +0 -540
  121. package/cjs/popup-swiper/demo/style/mobile.less +0 -66
  122. package/cjs/portal/demo/style/css/mobile.css +0 -527
  123. package/cjs/portal/demo/style/mobile.less +0 -48
  124. package/cjs/progress/demo/style/css/mobile.css +0 -520
  125. package/cjs/progress/demo/style/mobile.less +0 -39
  126. package/cjs/pull-refresh/demo/style/css/mobile.css +0 -554
  127. package/cjs/pull-refresh/demo/style/mobile.less +0 -83
  128. package/cjs/radio/demo/style/css/mobile.css +0 -529
  129. package/cjs/radio/demo/style/mobile.less +0 -54
  130. package/cjs/rate/demo/style/css/mobile.css +0 -514
  131. package/cjs/rate/demo/style/mobile.less +0 -33
  132. package/cjs/search-bar/demo/style/css/mobile.css +0 -520
  133. package/cjs/search-bar/demo/style/mobile.less +0 -43
  134. package/cjs/show-monitor/demo/style/css/mobile.css +0 -569
  135. package/cjs/show-monitor/demo/style/mobile.less +0 -90
  136. package/cjs/skeleton/demo/style/css/mobile.css +0 -517
  137. package/cjs/skeleton/demo/style/mobile.less +0 -38
  138. package/cjs/slider/demo/style/css/mobile.css +0 -529
  139. package/cjs/slider/demo/style/mobile.less +0 -60
  140. package/cjs/stepper/demo/style/css/mobile.css +0 -514
  141. package/cjs/stepper/demo/style/mobile.less +0 -34
  142. package/cjs/steps/demo/style/css/mobile.css +0 -611
  143. package/cjs/steps/demo/style/mobile.less +0 -75
  144. package/cjs/sticky/demo/style/css/mobile.css +0 -527
  145. package/cjs/sticky/demo/style/mobile.less +0 -48
  146. package/cjs/swipe-action/demo/style/css/mobile.css +0 -515
  147. package/cjs/swipe-action/demo/style/mobile.less +0 -34
  148. package/cjs/swipe-load/demo/style/css/mobile.css +0 -580
  149. package/cjs/swipe-load/demo/style/mobile.less +0 -116
  150. package/cjs/switch/demo/style/css/mobile.css +0 -524
  151. package/cjs/switch/demo/style/mobile.less +0 -49
  152. package/cjs/tab-bar/demo/style/css/mobile.css +0 -553
  153. package/cjs/tab-bar/demo/style/mobile.less +0 -59
  154. package/cjs/tabs/demo/style/css/mobile.css +0 -629
  155. package/cjs/tabs/demo/style/mobile.less +0 -168
  156. package/cjs/tag/demo/style/css/mobile.css +0 -516
  157. package/cjs/tag/demo/style/mobile.less +0 -33
  158. package/cjs/textarea/demo/style/css/mobile.css +0 -523
  159. package/cjs/textarea/demo/style/mobile.less +0 -47
  160. package/cjs/toast/demo/style/css/mobile.css +0 -520
  161. package/cjs/toast/demo/style/mobile.less +0 -37
  162. package/cjs/transition/demo/style/css/mobile.css +0 -529
  163. package/cjs/transition/demo/style/mobile.less +0 -47
  164. package/esm/action-sheet/demo/style/css/mobile.css +0 -523
  165. package/esm/action-sheet/demo/style/mobile.less +0 -52
  166. package/esm/avatar/demo/style/css/mobile.css +0 -578
  167. package/esm/avatar/demo/style/mobile.less +0 -96
  168. package/esm/badge/demo/style/css/mobile.css +0 -580
  169. package/esm/badge/demo/style/mobile.less +0 -107
  170. package/esm/button/demo/style/css/mobile.css +0 -530
  171. package/esm/button/demo/style/mobile.less +0 -44
  172. package/esm/carousel/demo/style/css/mobile.css +0 -553
  173. package/esm/carousel/demo/style/mobile.less +0 -70
  174. package/esm/cell/demo/style/css/mobile.css +0 -585
  175. package/esm/cell/demo/style/mobile.less +0 -102
  176. package/esm/checkbox/demo/style/css/mobile.css +0 -520
  177. package/esm/checkbox/demo/style/mobile.less +0 -45
  178. package/esm/circle-progress/demo/style/css/mobile.css +0 -516
  179. package/esm/circle-progress/demo/style/mobile.less +0 -34
  180. package/esm/collapse/demo/style/css/mobile.css +0 -516
  181. package/esm/collapse/demo/style/mobile.less +0 -33
  182. package/esm/context-provider/demo/style/css/mobile.css +0 -520
  183. package/esm/context-provider/demo/style/mobile.less +0 -37
  184. package/esm/count-down/demo/style/css/mobile.css +0 -575
  185. package/esm/count-down/demo/style/mobile.less +0 -96
  186. package/esm/date-picker/demo/style/css/mobile.css +0 -520
  187. package/esm/date-picker/demo/style/mobile.less +0 -37
  188. package/esm/dialog/demo/style/css/mobile.css +0 -547
  189. package/esm/dialog/demo/style/mobile.less +0 -79
  190. package/esm/divider/demo/style/css/mobile.css +0 -516
  191. package/esm/divider/demo/style/mobile.less +0 -36
  192. package/esm/dropdown/demo/style/css/mobile.css +0 -515
  193. package/esm/dropdown/demo/style/mobile.less +0 -32
  194. package/esm/dropdown-menu/demo/style/css/mobile.css +0 -516
  195. package/esm/dropdown-menu/demo/style/mobile.less +0 -33
  196. package/esm/ellipsis/demo/style/css/mobile.css +0 -528
  197. package/esm/ellipsis/demo/style/mobile.less +0 -53
  198. package/esm/grid/demo/style/css/mobile.css +0 -613
  199. package/esm/grid/demo/style/mobile.less +0 -157
  200. package/esm/image/demo/style/css/mobile.css +0 -580
  201. package/esm/image/demo/style/mobile.less +0 -86
  202. package/esm/image-picker/demo/style/css/mobile.css +0 -550
  203. package/esm/image-picker/demo/style/mobile.less +0 -67
  204. package/esm/image-preview/demo/style/css/mobile.css +0 -551
  205. package/esm/image-preview/demo/style/mobile.less +0 -61
  206. package/esm/index-bar/demo/style/css/mobile.css +0 -533
  207. package/esm/index-bar/demo/style/mobile.less +0 -51
  208. package/esm/input/demo/style/css/mobile.css +0 -584
  209. package/esm/input/demo/style/mobile.less +0 -107
  210. package/esm/keyboard/demo/style/css/mobile.css +0 -520
  211. package/esm/keyboard/demo/style/mobile.less +0 -42
  212. package/esm/load-more/demo/style/css/mobile.css +0 -520
  213. package/esm/load-more/demo/style/mobile.less +0 -39
  214. package/esm/loading/demo/style/css/mobile.css +0 -529
  215. package/esm/loading/demo/style/mobile.less +0 -48
  216. package/esm/masking/demo/style/css/mobile.css +0 -535
  217. package/esm/masking/demo/style/mobile.less +0 -56
  218. package/esm/nav-bar/demo/style/css/mobile.css +0 -523
  219. package/esm/nav-bar/demo/style/mobile.less +0 -46
  220. package/esm/notice-bar/demo/style/css/mobile.css +0 -4
  221. package/esm/notice-bar/demo/style/mobile.less +0 -6
  222. package/esm/notify/demo/style/css/mobile.css +0 -541
  223. package/esm/notify/demo/style/mobile.less +0 -52
  224. package/esm/pagination/demo/style/css/index.css +0 -516
  225. package/esm/pagination/demo/style/index.less +0 -35
  226. package/esm/picker/demo/style/css/mobile.css +0 -531
  227. package/esm/picker/demo/style/mobile.less +0 -49
  228. package/esm/picker-view/demo/style/css/mobile.css +0 -513
  229. package/esm/picker-view/demo/style/mobile.less +0 -32
  230. package/esm/popover/demo/style/css/mobile.css +0 -645
  231. package/esm/popover/demo/style/mobile.less +0 -125
  232. package/esm/popup/demo/style/css/mobile.css +0 -540
  233. package/esm/popup/demo/style/mobile.less +0 -66
  234. package/esm/popup-swiper/demo/style/css/mobile.css +0 -540
  235. package/esm/popup-swiper/demo/style/mobile.less +0 -66
  236. package/esm/portal/demo/style/css/mobile.css +0 -527
  237. package/esm/portal/demo/style/mobile.less +0 -48
  238. package/esm/progress/demo/style/css/mobile.css +0 -520
  239. package/esm/progress/demo/style/mobile.less +0 -39
  240. package/esm/pull-refresh/demo/style/css/mobile.css +0 -554
  241. package/esm/pull-refresh/demo/style/mobile.less +0 -83
  242. package/esm/radio/demo/style/css/mobile.css +0 -529
  243. package/esm/radio/demo/style/mobile.less +0 -54
  244. package/esm/rate/demo/style/css/mobile.css +0 -514
  245. package/esm/rate/demo/style/mobile.less +0 -33
  246. package/esm/search-bar/demo/style/css/mobile.css +0 -520
  247. package/esm/search-bar/demo/style/mobile.less +0 -43
  248. package/esm/show-monitor/demo/style/css/mobile.css +0 -569
  249. package/esm/show-monitor/demo/style/mobile.less +0 -90
  250. package/esm/skeleton/demo/style/css/mobile.css +0 -517
  251. package/esm/skeleton/demo/style/mobile.less +0 -38
  252. package/esm/slider/demo/style/css/mobile.css +0 -529
  253. package/esm/slider/demo/style/mobile.less +0 -60
  254. package/esm/stepper/demo/style/css/mobile.css +0 -514
  255. package/esm/stepper/demo/style/mobile.less +0 -34
  256. package/esm/steps/demo/style/css/mobile.css +0 -611
  257. package/esm/steps/demo/style/mobile.less +0 -75
  258. package/esm/sticky/demo/style/css/mobile.css +0 -527
  259. package/esm/sticky/demo/style/mobile.less +0 -48
  260. package/esm/swipe-action/demo/style/css/mobile.css +0 -515
  261. package/esm/swipe-action/demo/style/mobile.less +0 -34
  262. package/esm/swipe-load/demo/style/css/mobile.css +0 -580
  263. package/esm/swipe-load/demo/style/mobile.less +0 -116
  264. package/esm/switch/demo/style/css/mobile.css +0 -524
  265. package/esm/switch/demo/style/mobile.less +0 -49
  266. package/esm/tab-bar/demo/style/css/mobile.css +0 -553
  267. package/esm/tab-bar/demo/style/mobile.less +0 -59
  268. package/esm/tabs/demo/style/css/mobile.css +0 -629
  269. package/esm/tabs/demo/style/mobile.less +0 -168
  270. package/esm/tag/demo/style/css/mobile.css +0 -516
  271. package/esm/tag/demo/style/mobile.less +0 -33
  272. package/esm/textarea/demo/style/css/mobile.css +0 -523
  273. package/esm/textarea/demo/style/mobile.less +0 -47
  274. package/esm/toast/demo/style/css/mobile.css +0 -520
  275. package/esm/toast/demo/style/mobile.less +0 -37
  276. package/esm/transition/demo/style/css/mobile.css +0 -529
  277. package/esm/transition/demo/style/mobile.less +0 -47
  278. package/umd/action-sheet/demo/style/css/mobile.css +0 -523
  279. package/umd/action-sheet/demo/style/mobile.less +0 -52
  280. package/umd/avatar/demo/style/css/mobile.css +0 -578
  281. package/umd/avatar/demo/style/mobile.less +0 -96
  282. package/umd/badge/demo/style/css/mobile.css +0 -580
  283. package/umd/badge/demo/style/mobile.less +0 -107
  284. package/umd/button/demo/style/css/mobile.css +0 -530
  285. package/umd/button/demo/style/mobile.less +0 -44
  286. package/umd/carousel/demo/style/css/mobile.css +0 -553
  287. package/umd/carousel/demo/style/mobile.less +0 -70
  288. package/umd/cell/demo/style/css/mobile.css +0 -585
  289. package/umd/cell/demo/style/mobile.less +0 -102
  290. package/umd/checkbox/demo/style/css/mobile.css +0 -520
  291. package/umd/checkbox/demo/style/mobile.less +0 -45
  292. package/umd/circle-progress/demo/style/css/mobile.css +0 -516
  293. package/umd/circle-progress/demo/style/mobile.less +0 -34
  294. package/umd/collapse/demo/style/css/mobile.css +0 -516
  295. package/umd/collapse/demo/style/mobile.less +0 -33
  296. package/umd/context-provider/demo/style/css/mobile.css +0 -520
  297. package/umd/context-provider/demo/style/mobile.less +0 -37
  298. package/umd/count-down/demo/style/css/mobile.css +0 -575
  299. package/umd/count-down/demo/style/mobile.less +0 -96
  300. package/umd/date-picker/demo/style/css/mobile.css +0 -520
  301. package/umd/date-picker/demo/style/mobile.less +0 -37
  302. package/umd/dialog/demo/style/css/mobile.css +0 -547
  303. package/umd/dialog/demo/style/mobile.less +0 -79
  304. package/umd/divider/demo/style/css/mobile.css +0 -516
  305. package/umd/divider/demo/style/mobile.less +0 -36
  306. package/umd/dropdown/demo/style/css/mobile.css +0 -515
  307. package/umd/dropdown/demo/style/mobile.less +0 -32
  308. package/umd/dropdown-menu/demo/style/css/mobile.css +0 -516
  309. package/umd/dropdown-menu/demo/style/mobile.less +0 -33
  310. package/umd/ellipsis/demo/style/css/mobile.css +0 -528
  311. package/umd/ellipsis/demo/style/mobile.less +0 -53
  312. package/umd/grid/demo/style/css/mobile.css +0 -613
  313. package/umd/grid/demo/style/mobile.less +0 -157
  314. package/umd/image/demo/style/css/mobile.css +0 -580
  315. package/umd/image/demo/style/mobile.less +0 -86
  316. package/umd/image-picker/demo/style/css/mobile.css +0 -550
  317. package/umd/image-picker/demo/style/mobile.less +0 -67
  318. package/umd/image-preview/demo/style/css/mobile.css +0 -551
  319. package/umd/image-preview/demo/style/mobile.less +0 -61
  320. package/umd/index-bar/demo/style/css/mobile.css +0 -533
  321. package/umd/index-bar/demo/style/mobile.less +0 -51
  322. package/umd/input/demo/style/css/mobile.css +0 -584
  323. package/umd/input/demo/style/mobile.less +0 -107
  324. package/umd/keyboard/demo/style/css/mobile.css +0 -520
  325. package/umd/keyboard/demo/style/mobile.less +0 -42
  326. package/umd/load-more/demo/style/css/mobile.css +0 -520
  327. package/umd/load-more/demo/style/mobile.less +0 -39
  328. package/umd/loading/demo/style/css/mobile.css +0 -529
  329. package/umd/loading/demo/style/mobile.less +0 -48
  330. package/umd/masking/demo/style/css/mobile.css +0 -535
  331. package/umd/masking/demo/style/mobile.less +0 -56
  332. package/umd/nav-bar/demo/style/css/mobile.css +0 -523
  333. package/umd/nav-bar/demo/style/mobile.less +0 -46
  334. package/umd/notice-bar/demo/style/css/mobile.css +0 -4
  335. package/umd/notice-bar/demo/style/mobile.less +0 -6
  336. package/umd/notify/demo/style/css/mobile.css +0 -541
  337. package/umd/notify/demo/style/mobile.less +0 -52
  338. package/umd/pagination/demo/style/css/index.css +0 -516
  339. package/umd/pagination/demo/style/index.less +0 -35
  340. package/umd/picker/demo/style/css/mobile.css +0 -531
  341. package/umd/picker/demo/style/mobile.less +0 -49
  342. package/umd/picker-view/demo/style/css/mobile.css +0 -513
  343. package/umd/picker-view/demo/style/mobile.less +0 -32
  344. package/umd/popover/demo/style/css/mobile.css +0 -645
  345. package/umd/popover/demo/style/mobile.less +0 -125
  346. package/umd/popup/demo/style/css/mobile.css +0 -540
  347. package/umd/popup/demo/style/mobile.less +0 -66
  348. package/umd/popup-swiper/demo/style/css/mobile.css +0 -540
  349. package/umd/popup-swiper/demo/style/mobile.less +0 -66
  350. package/umd/portal/demo/style/css/mobile.css +0 -527
  351. package/umd/portal/demo/style/mobile.less +0 -48
  352. package/umd/progress/demo/style/css/mobile.css +0 -520
  353. package/umd/progress/demo/style/mobile.less +0 -39
  354. package/umd/pull-refresh/demo/style/css/mobile.css +0 -554
  355. package/umd/pull-refresh/demo/style/mobile.less +0 -83
  356. package/umd/radio/demo/style/css/mobile.css +0 -529
  357. package/umd/radio/demo/style/mobile.less +0 -54
  358. package/umd/rate/demo/style/css/mobile.css +0 -514
  359. package/umd/rate/demo/style/mobile.less +0 -33
  360. package/umd/search-bar/demo/style/css/mobile.css +0 -520
  361. package/umd/search-bar/demo/style/mobile.less +0 -43
  362. package/umd/show-monitor/demo/style/css/mobile.css +0 -569
  363. package/umd/show-monitor/demo/style/mobile.less +0 -90
  364. package/umd/skeleton/demo/style/css/mobile.css +0 -517
  365. package/umd/skeleton/demo/style/mobile.less +0 -38
  366. package/umd/slider/demo/style/css/mobile.css +0 -529
  367. package/umd/slider/demo/style/mobile.less +0 -60
  368. package/umd/stepper/demo/style/css/mobile.css +0 -514
  369. package/umd/stepper/demo/style/mobile.less +0 -34
  370. package/umd/steps/demo/style/css/mobile.css +0 -611
  371. package/umd/steps/demo/style/mobile.less +0 -75
  372. package/umd/sticky/demo/style/css/mobile.css +0 -527
  373. package/umd/sticky/demo/style/mobile.less +0 -48
  374. package/umd/swipe-action/demo/style/css/mobile.css +0 -515
  375. package/umd/swipe-action/demo/style/mobile.less +0 -34
  376. package/umd/swipe-load/demo/style/css/mobile.css +0 -580
  377. package/umd/swipe-load/demo/style/mobile.less +0 -116
  378. package/umd/switch/demo/style/css/mobile.css +0 -524
  379. package/umd/switch/demo/style/mobile.less +0 -49
  380. package/umd/tab-bar/demo/style/css/mobile.css +0 -553
  381. package/umd/tab-bar/demo/style/mobile.less +0 -59
  382. package/umd/tabs/demo/style/css/mobile.css +0 -629
  383. package/umd/tabs/demo/style/mobile.less +0 -168
  384. package/umd/tag/demo/style/css/mobile.css +0 -516
  385. package/umd/tag/demo/style/mobile.less +0 -33
  386. package/umd/textarea/demo/style/css/mobile.css +0 -523
  387. package/umd/textarea/demo/style/mobile.less +0 -47
  388. package/umd/toast/demo/style/css/mobile.css +0 -520
  389. package/umd/toast/demo/style/mobile.less +0 -37
  390. package/umd/transition/demo/style/css/mobile.css +0 -529
  391. package/umd/transition/demo/style/mobile.less +0 -47
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
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.30.2](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.30.1...@arco-design/mobile-react@2.30.2) (2023-11-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * `NavBar` add aria-label to back arrow ([#196](https://github.com/arco-design/arco-design-mobile/issues/196)) ([ad97b65](https://github.com/arco-design/arco-design-mobile/commit/ad97b652d142a4d2331fbc4699c7d15d61153e50))
12
+ * `Picker` fix the issue that value=0 cannot be selected ([#199](https://github.com/arco-design/arco-design-mobile/issues/199)) ([acb97ac](https://github.com/arco-design/arco-design-mobile/commit/acb97ac158995cea86f99755e6d0d60b166717fd))
13
+
14
+
15
+
16
+
17
+
18
+ ## [2.30.1](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.30.0...@arco-design/mobile-react@2.30.1) (2023-11-07)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * `Form` put error types to classname & i18n usage description ([#192](https://github.com/arco-design/arco-design-mobile/issues/192)) ([d3a611a](https://github.com/arco-design/arco-design-mobile/commit/d3a611ab368a32c98495e1601a5e16e4d6f4f86f))
24
+ * adjust dark mode style ([#193](https://github.com/arco-design/arco-design-mobile/issues/193)) ([919d661](https://github.com/arco-design/arco-design-mobile/commit/919d66120c1b2e445e3d0f95cf4d34e8c84e9998))
25
+
26
+
27
+
28
+
29
+
6
30
  # [2.30.0](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.29.6...@arco-design/mobile-react@2.30.0) (2023-10-19)
7
31
 
8
32
 
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.29.6/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.29.6/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.1/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.30.1/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.29.6/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.29.6/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.1/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.30.1/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## 引入全部
@@ -737,7 +737,9 @@ var Carousel = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
737
737
  // @en When noLoop is used, the blank space of spaceBetween needs to be exposed at the end, so when sliding to the last one, the transform value moves to the left by the corresponding width
738
738
 
739
739
  var translateDis = noLoop ? noLoopDis - (total > 1 && index === total - 1 ? spaceBetween : 0) * rtlRatio : dis;
740
- var transStr = childSize > 0 ? translateDis + "px" : "-" + index * 100 + "%";
740
+ var initTranslateDis = -1 * index * 100; // bugfix: prop `style` did not match in ssr
741
+
742
+ var transStr = childSize > 0 ? "" + translateDis + (translateDis ? 'px' : '') : "" + initTranslateDis + (initTranslateDis ? '%' : '');
741
743
 
742
744
  if (vertical) {
743
745
  var _translateStyle = (0, _helpers.getStyleWithVendor)({
@@ -47,11 +47,15 @@ export interface GlobalContextParams {
47
47
  * @default false
48
48
  */
49
49
  useRtl?: boolean;
50
+ /**
51
+ * 当系统原生暗黑模式发生变化时触发,useDarkMode=true 时有效
52
+ * @en Triggered when the system's native dark mode changes, valid when useDarkMode=true
53
+ */
54
+ onDarkModeChange?: (isDark: boolean) => void;
50
55
  }
51
56
  export declare const defaultContext: GlobalContextParams;
52
57
  export declare const GlobalContext: React.Context<GlobalContextParams>;
53
58
  export interface ContextProviderProps extends GlobalContextParams {
54
- onDarkModeChange?: (isDark: boolean) => void;
55
59
  children: React.ReactNode;
56
60
  }
57
61
  export declare type WithGlobalContext<T> = T & {
@@ -66,9 +66,15 @@ function ContextProvider(props) {
66
66
  isDarkModeState = _useState[0],
67
67
  setIsDarkModeState = _useState[1];
68
68
 
69
- var setDarkModeState = function setDarkModeState(isDark) {
69
+ var mountedRef = (0, _react.useRef)(false);
70
+
71
+ var setDarkModeState = function setDarkModeState(isDark, needChange) {
72
+ if (needChange === void 0) {
73
+ needChange = true;
74
+ }
75
+
70
76
  setIsDarkModeState(isDark);
71
- onDarkModeChange && onDarkModeChange(isDark);
77
+ needChange && onDarkModeChange && onDarkModeChange(isDark);
72
78
  };
73
79
 
74
80
  var isDarkMode = (0, _react.useMemo)(function () {
@@ -97,7 +103,7 @@ function ContextProvider(props) {
97
103
 
98
104
  if (useDarkMode) {
99
105
  var dark = matchMedia.matches;
100
- setDarkModeState(dark);
106
+ setDarkModeState(dark, mountedRef.current);
101
107
 
102
108
  if (typeof matchMedia.addEventListener === 'function') {
103
109
  matchMedia.addEventListener('change', changeDarkMode);
@@ -106,6 +112,7 @@ function ContextProvider(props) {
106
112
  }
107
113
  }
108
114
 
115
+ mountedRef.current = true;
109
116
  return function () {
110
117
  if (useDarkMode) {
111
118
  if (typeof matchMedia.removeEventListener === 'function') {
@@ -88,12 +88,14 @@ var FormItemInner = /*#__PURE__*/function (_PureComponent) {
88
88
  fieldValidator.validate((_fieldValidator$valid = {}, _fieldValidator$valid[field] = value, _fieldValidator$valid), function (errorsMap) {
89
89
  var _getErrorAndWarnings = (0, _utils.getErrorAndWarnings)((errorsMap == null ? void 0 : errorsMap[field]) || []),
90
90
  errors = _getErrorAndWarnings.errors,
91
- warnings = _getErrorAndWarnings.warnings;
91
+ warnings = _getErrorAndWarnings.warnings,
92
+ errorTypes = _getErrorAndWarnings.errorTypes;
92
93
 
93
94
  _this._errors = errors;
94
95
  onValidateStatusChange({
95
96
  errors: _this._errors,
96
- warnings: warnings
97
+ warnings: warnings,
98
+ errorTypes: errorTypes
97
99
  });
98
100
  return resolve({
99
101
  errors: _this._errors,
@@ -338,16 +340,22 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
338
340
  errors = _useState[0],
339
341
  setErrors = _useState[1];
340
342
 
341
- var _useState2 = (0, _react.useState)([]),
342
- warnings = _useState2[0],
343
- setWarnings = _useState2[1];
343
+ var _useState2 = (0, _react.useState)(null),
344
+ errorTypes = _useState2[0],
345
+ setErrorTypes = _useState2[1];
346
+
347
+ var _useState3 = (0, _react.useState)([]),
348
+ warnings = _useState3[0],
349
+ setWarnings = _useState3[1];
344
350
 
345
351
  var formItemRef = (0, _react.useRef)(null);
346
352
 
347
353
  var onValidateStatusChange = function onValidateStatusChange(validateResult) {
348
354
  var _errors = validateResult.errors,
349
- _warnings = validateResult.warnings;
355
+ _warnings = validateResult.warnings,
356
+ _errorTypes = validateResult.errorTypes;
350
357
  setErrors(_errors.length ? _errors[0] : null);
358
+ setErrorTypes(_errorTypes.length ? _errorTypes[0] : null);
351
359
  setWarnings(_warnings);
352
360
  };
353
361
 
@@ -369,7 +377,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
369
377
  return /*#__PURE__*/_react.default.createElement("div", {
370
378
  className: (0, _mobileUtils.cls)(prefixCls + "-form-item", prefixCls + "-form-item-" + (itemLayout || layout), className, (_cls = {
371
379
  disabled: fieldDisabled
372
- }, _cls[prefixCls + "-form-item-error"] = !!errors, _cls[prefixCls + "-form-item-warning"] = Boolean(!errors && warnings), _cls)),
380
+ }, _cls[prefixCls + "-form-item-error"] = !!errors, _cls[prefixCls + "-form-item-warning"] = Boolean(!errors && warnings), _cls[prefixCls + "-form-item-error-" + errorTypes] = errorTypes, _cls)),
373
381
  style: style,
374
382
  ref: formItemRef
375
383
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -344,8 +344,9 @@ export interface IFormItemInnerProps {
344
344
  * @en The callback when validating status changes
345
345
  */
346
346
  onValidateStatusChange: (data: {
347
- errors: any;
348
- warnings: any;
347
+ errors: ReactNode[];
348
+ warnings: ReactNode[];
349
+ errorTypes: string[];
349
350
  }) => void;
350
351
  /**
351
352
  * 获取内部表单项的dom
@@ -3,4 +3,5 @@ export declare const isFieldRequired: (rules?: IRules[]) => boolean;
3
3
  export declare const getErrorAndWarnings: (result: ValidatorError[]) => {
4
4
  warnings: string[];
5
5
  errors: string[];
6
+ errorTypes: string[];
6
7
  };
package/cjs/form/utils.js CHANGED
@@ -18,11 +18,13 @@ exports.isFieldRequired = isFieldRequired;
18
18
  var getErrorAndWarnings = function getErrorAndWarnings(result) {
19
19
  var errors = [];
20
20
  var warnings = [];
21
+ var errorTypes = [];
21
22
  result.map(function (_ref) {
22
23
  var _ref$message = _ref.message,
23
24
  message = _ref$message === void 0 ? [] : _ref$message,
24
25
  _ref$validateLevel = _ref.validateLevel,
25
- validateLevel = _ref$validateLevel === void 0 ? 'error' : _ref$validateLevel;
26
+ validateLevel = _ref$validateLevel === void 0 ? 'error' : _ref$validateLevel,
27
+ resultErrorTypes = _ref.errorTypes;
26
28
 
27
29
  if (!(message != null && message.length)) {
28
30
  return;
@@ -32,11 +34,13 @@ var getErrorAndWarnings = function getErrorAndWarnings(result) {
32
34
  warnings = [].concat(warnings, message);
33
35
  } else {
34
36
  errors = [].concat(errors, message);
37
+ errorTypes = [].concat(errorTypes, resultErrorTypes);
35
38
  }
36
39
  });
37
40
  return {
38
41
  warnings: warnings,
39
- errors: errors
42
+ errors: errors,
43
+ errorTypes: errorTypes
40
44
  };
41
45
  };
42
46
 
@@ -7,19 +7,29 @@ exports.default = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
+ var _mobileUtils = require("@arco-design/mobile-utils");
11
+
12
+ var _contextProvider = require("../context-provider");
13
+
10
14
  function BackArrow(_ref) {
11
15
  var _ref$color = _ref.color,
12
16
  color = _ref$color === void 0 ? 'currentColor' : _ref$color;
13
- return /*#__PURE__*/_react.default.createElement("div", {
14
- className: "c-svg-arrow nav-bar-back"
15
- }, /*#__PURE__*/_react.default.createElement("svg", {
16
- height: "100%",
17
- viewBox: "0 0 16 16"
18
- }, /*#__PURE__*/_react.default.createElement("path", {
19
- id: "path-1_1_",
20
- 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 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",
21
- fill: color
22
- })));
17
+ return /*#__PURE__*/_react.default.createElement(_contextProvider.ContextLayout, null, function (_ref2) {
18
+ var _ref2$locale = _ref2.locale,
19
+ locale = _ref2$locale === void 0 ? _mobileUtils.defaultLocale : _ref2$locale;
20
+ return /*#__PURE__*/_react.default.createElement("div", {
21
+ role: "button",
22
+ className: "c-svg-arrow nav-bar-back",
23
+ "aria-label": locale.NavBar.backBtnAriaLabel
24
+ }, /*#__PURE__*/_react.default.createElement("svg", {
25
+ height: "100%",
26
+ viewBox: "0 0 16 16"
27
+ }, /*#__PURE__*/_react.default.createElement("path", {
28
+ id: "path-1_1_",
29
+ 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 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",
30
+ fill: color
31
+ })));
32
+ });
23
33
  }
24
34
 
25
35
  var _default = BackArrow;
@@ -650,7 +650,7 @@
650
650
  }
651
651
  .arco-theme-dark .arco-nav-bar {
652
652
  color: #f6f6f6 ;
653
- background: #232324 ;
653
+ background: #17171A ;
654
654
  }
655
655
  .arco-theme-dark .arco-nav-bar-wrapper.arco-nav-bar-wrapper-border {
656
656
  position: relative;
@@ -301,7 +301,7 @@ var PickerCell = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
301
301
  function getCurrentCellValue() {
302
302
  var _data$currentIndex;
303
303
 
304
- return currentValue || ((_data$currentIndex = data[currentIndex]) == null ? void 0 : _data$currentIndex.value);
304
+ return (_data$currentIndex = data[currentIndex]) == null ? void 0 : _data$currentIndex.value;
305
305
  }
306
306
 
307
307
  function _clearTimer() {
@@ -131,7 +131,7 @@ var PickerView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
131
131
  // @en Remove empty values from cascader
132
132
 
133
133
  return curValues.filter(function (v) {
134
- return v;
134
+ return v !== undefined;
135
135
  });
136
136
  };
137
137
 
@@ -1052,7 +1052,7 @@
1052
1052
  color: #f6f6f6 ;
1053
1053
  }
1054
1054
  .arco-theme-dark .arco-tab-cell-container-wrap {
1055
- background: #232324 ;
1055
+ background: #17171A ;
1056
1056
  }
1057
1057
  .arco-theme-dark .arco-tab-cell-container-inner.has-divider.pos-top {
1058
1058
  box-shadow: 0 -1PX 0 0 #484849 inset;
package/dist/index.js CHANGED
@@ -1106,7 +1106,7 @@
1106
1106
  * @desc {en} Get properties of the scrolling container. Perform additional attribute compatibility processing for window and document.
1107
1107
  * @param property 所需属性
1108
1108
  * @param property {en} Required attributes
1109
- * @param getContainer 待计算滚动容器
1109
+ * @param {() => HTMLElement | Window | Document | null} getContainer 待计算滚动容器
1110
1110
  * @param getContainer {en} Scrolling container to be calculated.
1111
1111
  * @example
1112
1112
  * ```
@@ -1147,7 +1147,7 @@
1147
1147
  /**
1148
1148
  * 提供了元素的大小及其相对于视口的位置。
1149
1149
  * @desc {en} Provide information about the size of an element and its position relative to the viewport.
1150
- * @param container 滚动容器
1150
+ * @param {HTMLElement | Window | null} container 滚动容器
1151
1151
  * @param container {en} Scroll Container
1152
1152
  * @example
1153
1153
  * ```
@@ -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
 
@@ -3771,9 +3774,15 @@
3771
3774
  isDarkModeState = _c[0],
3772
3775
  setIsDarkModeState = _c[1];
3773
3776
 
3774
- var setDarkModeState = function setDarkModeState(isDark) {
3777
+ var mountedRef = React.useRef(false);
3778
+
3779
+ var setDarkModeState = function setDarkModeState(isDark, needChange) {
3780
+ if (needChange === void 0) {
3781
+ needChange = true;
3782
+ }
3783
+
3775
3784
  setIsDarkModeState(isDark);
3776
- onDarkModeChange && onDarkModeChange(isDark);
3785
+ needChange && onDarkModeChange && onDarkModeChange(isDark);
3777
3786
  };
3778
3787
 
3779
3788
  var isDarkMode = React.useMemo(function () {
@@ -3802,7 +3811,7 @@
3802
3811
 
3803
3812
  if (useDarkMode) {
3804
3813
  var dark = matchMedia.matches;
3805
- setDarkModeState(dark);
3814
+ setDarkModeState(dark, mountedRef.current);
3806
3815
 
3807
3816
  if (typeof matchMedia.addEventListener === 'function') {
3808
3817
  matchMedia.addEventListener('change', changeDarkMode);
@@ -3811,6 +3820,7 @@
3811
3820
  }
3812
3821
  }
3813
3822
 
3823
+ mountedRef.current = true;
3814
3824
  return function () {
3815
3825
  if (useDarkMode) {
3816
3826
  if (typeof matchMedia.removeEventListener === 'function') {
@@ -10283,7 +10293,9 @@
10283
10293
  // @en When noLoop is used, the blank space of spaceBetween needs to be exposed at the end, so when sliding to the last one, the transform value moves to the left by the corresponding width
10284
10294
 
10285
10295
  var translateDis = noLoop ? noLoopDis - (total > 1 && index === total - 1 ? spaceBetween : 0) * rtlRatio : dis;
10286
- var transStr = childSize > 0 ? translateDis + "px" : "-" + index * 100 + "%";
10296
+ var initTranslateDis = -1 * index * 100; // bugfix: prop `style` did not match in ssr
10297
+
10298
+ var transStr = childSize > 0 ? "" + translateDis + (translateDis ? 'px' : '') : "" + initTranslateDis + (initTranslateDis ? '%' : '');
10287
10299
 
10288
10300
  if (vertical) {
10289
10301
  var translateStyle_1 = getStyleWithVendor({
@@ -12448,7 +12460,7 @@
12448
12460
  function getCurrentCellValue() {
12449
12461
  var _a;
12450
12462
 
12451
- 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;
12452
12464
  }
12453
12465
 
12454
12466
  function _clearTimer() {
@@ -12745,7 +12757,7 @@
12745
12757
  // @en Remove empty values from cascader
12746
12758
 
12747
12759
  return curValues.filter(function (v) {
12748
- return v;
12760
+ return v !== undefined;
12749
12761
  });
12750
12762
  };
12751
12763
 
@@ -16145,11 +16157,13 @@
16145
16157
  var getErrorAndWarnings = function getErrorAndWarnings(result) {
16146
16158
  var errors = [];
16147
16159
  var warnings = [];
16160
+ var errorTypes = [];
16148
16161
  result.map(function (_a) {
16149
16162
  var _b = _a.message,
16150
16163
  message = _b === void 0 ? [] : _b,
16151
16164
  _c = _a.validateLevel,
16152
- validateLevel = _c === void 0 ? 'error' : _c;
16165
+ validateLevel = _c === void 0 ? 'error' : _c,
16166
+ resultErrorTypes = _a.errorTypes;
16153
16167
 
16154
16168
  if (!(message === null || message === void 0 ? void 0 : message.length)) {
16155
16169
  return;
@@ -16159,11 +16173,13 @@
16159
16173
  warnings = __spreadArrays$1(warnings, message);
16160
16174
  } else {
16161
16175
  errors = __spreadArrays$1(errors, message);
16176
+ errorTypes = __spreadArrays$1(errorTypes, resultErrorTypes);
16162
16177
  }
16163
16178
  });
16164
16179
  return {
16165
16180
  warnings: warnings,
16166
- errors: errors
16181
+ errors: errors,
16182
+ errorTypes: errorTypes
16167
16183
  };
16168
16184
  };
16169
16185
 
@@ -16226,12 +16242,14 @@
16226
16242
  fieldValidator_1.validate((_a = {}, _a[field] = value, _a), function (errorsMap) {
16227
16243
  var _a = getErrorAndWarnings((errorsMap === null || errorsMap === void 0 ? void 0 : errorsMap[field]) || []),
16228
16244
  errors = _a.errors,
16229
- warnings = _a.warnings;
16245
+ warnings = _a.warnings,
16246
+ errorTypes = _a.errorTypes;
16230
16247
 
16231
16248
  _this._errors = errors;
16232
16249
  onValidateStatusChange({
16233
16250
  errors: _this._errors,
16234
- warnings: warnings
16251
+ warnings: warnings,
16252
+ errorTypes: errorTypes
16235
16253
  });
16236
16254
  return resolve({
16237
16255
  errors: _this._errors,
@@ -16470,16 +16488,22 @@
16470
16488
  errors = _e[0],
16471
16489
  setErrors = _e[1];
16472
16490
 
16473
- var _f = React.useState([]),
16474
- warnings = _f[0],
16475
- setWarnings = _f[1];
16491
+ var _f = React.useState(null),
16492
+ errorTypes = _f[0],
16493
+ setErrorTypes = _f[1];
16494
+
16495
+ var _g = React.useState([]),
16496
+ warnings = _g[0],
16497
+ setWarnings = _g[1];
16476
16498
 
16477
16499
  var formItemRef = React.useRef(null);
16478
16500
 
16479
16501
  var onValidateStatusChange = function onValidateStatusChange(validateResult) {
16480
16502
  var _errors = validateResult.errors,
16481
- _warnings = validateResult.warnings;
16503
+ _warnings = validateResult.warnings,
16504
+ _errorTypes = validateResult.errorTypes;
16482
16505
  setErrors(_errors.length ? _errors[0] : null);
16506
+ setErrorTypes(_errorTypes.length ? _errorTypes[0] : null);
16483
16507
  setWarnings(_warnings);
16484
16508
  };
16485
16509
 
@@ -16501,7 +16525,7 @@
16501
16525
  return /*#__PURE__*/React__default["default"].createElement("div", {
16502
16526
  className: cls(prefixCls + "-form-item", prefixCls + "-form-item-" + (itemLayout || layout), className, (_a = {
16503
16527
  disabled: fieldDisabled
16504
- }, _a[prefixCls + "-form-item-error"] = !!errors, _a[prefixCls + "-form-item-warning"] = Boolean(!errors && warnings), _a)),
16528
+ }, _a[prefixCls + "-form-item-error"] = !!errors, _a[prefixCls + "-form-item-warning"] = Boolean(!errors && warnings), _a[prefixCls + "-form-item-error-" + errorTypes] = errorTypes, _a)),
16505
16529
  style: style,
16506
16530
  ref: formItemRef
16507
16531
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -22953,16 +22977,22 @@
22953
22977
  function BackArrow(_a) {
22954
22978
  var _b = _a.color,
22955
22979
  color = _b === void 0 ? 'currentColor' : _b;
22956
- return /*#__PURE__*/React__default["default"].createElement("div", {
22957
- className: "c-svg-arrow nav-bar-back"
22958
- }, /*#__PURE__*/React__default["default"].createElement("svg", {
22959
- height: "100%",
22960
- viewBox: "0 0 16 16"
22961
- }, /*#__PURE__*/React__default["default"].createElement("path", {
22962
- id: "path-1_1_",
22963
- 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",
22964
- fill: color
22965
- })));
22980
+ return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
22981
+ var _b = _a.locale,
22982
+ locale = _b === void 0 ? defaultLocale : _b;
22983
+ return /*#__PURE__*/React__default["default"].createElement("div", {
22984
+ role: "button",
22985
+ className: "c-svg-arrow nav-bar-back",
22986
+ "aria-label": locale.NavBar.backBtnAriaLabel
22987
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
22988
+ height: "100%",
22989
+ viewBox: "0 0 16 16"
22990
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
22991
+ id: "path-1_1_",
22992
+ 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",
22993
+ fill: color
22994
+ })));
22995
+ });
22966
22996
  }
22967
22997
 
22968
22998
  /**