@arco-design/mobile-react 2.29.6 → 2.30.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 (712) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/_helpers/hooks.d.ts +242 -2
  5. package/cjs/_helpers/hooks.js +267 -10
  6. package/cjs/_helpers/index.d.ts +78 -1
  7. package/cjs/_helpers/index.js +87 -8
  8. package/cjs/action-sheet/demo/style/css/mobile.css +514 -1
  9. package/cjs/action-sheet/demo/style/mobile.less +32 -0
  10. package/cjs/action-sheet/style/css/index.css +597 -2
  11. package/cjs/action-sheet/style/index.less +62 -0
  12. package/cjs/avatar/demo/style/css/mobile.css +518 -1
  13. package/cjs/avatar/demo/style/mobile.less +41 -1
  14. package/cjs/avatar/style/css/index.css +529 -3
  15. package/cjs/avatar/style/index.less +54 -1
  16. package/cjs/badge/demo/style/css/mobile.css +520 -1
  17. package/cjs/badge/demo/style/mobile.less +40 -0
  18. package/cjs/badge/style/css/index.css +518 -1
  19. package/cjs/badge/style/index.less +36 -0
  20. package/cjs/button/demo/style/css/mobile.css +510 -0
  21. package/cjs/button/demo/style/mobile.less +25 -0
  22. package/cjs/button/style/css/index.css +616 -39
  23. package/cjs/button/style/index.less +135 -25
  24. package/cjs/carousel/demo/style/css/mobile.css +514 -0
  25. package/cjs/carousel/demo/style/mobile.less +33 -0
  26. package/cjs/carousel/style/css/index.css +525 -3
  27. package/cjs/carousel/style/index.less +55 -0
  28. package/cjs/cell/demo/style/css/mobile.css +521 -0
  29. package/cjs/cell/demo/style/mobile.less +46 -0
  30. package/cjs/cell/style/css/index.css +707 -2
  31. package/cjs/cell/style/index.less +96 -0
  32. package/cjs/checkbox/demo/style/css/mobile.css +510 -0
  33. package/cjs/checkbox/demo/style/mobile.less +25 -0
  34. package/cjs/checkbox/style/css/index.css +535 -4
  35. package/cjs/checkbox/style/index.less +61 -0
  36. package/cjs/circle-progress/demo/style/css/mobile.css +510 -0
  37. package/cjs/circle-progress/demo/style/mobile.less +25 -0
  38. package/cjs/circle-progress/style/css/index.css +527 -3
  39. package/cjs/circle-progress/style/index.less +49 -0
  40. package/cjs/collapse/demo/style/css/mobile.css +510 -0
  41. package/cjs/collapse/demo/style/mobile.less +25 -0
  42. package/cjs/collapse/style/css/index.css +557 -1
  43. package/cjs/collapse/style/index.less +53 -0
  44. package/cjs/context-provider/demo/style/css/mobile.css +510 -0
  45. package/cjs/context-provider/demo/style/mobile.less +25 -0
  46. package/cjs/context-provider/index.d.ts +10 -3
  47. package/cjs/context-provider/index.js +40 -7
  48. package/cjs/count-down/demo/style/css/mobile.css +518 -2
  49. package/cjs/count-down/demo/style/mobile.less +39 -0
  50. package/cjs/count-down/style/css/index.css +513 -0
  51. package/cjs/count-down/style/index.less +30 -0
  52. package/cjs/date-picker/demo/style/css/mobile.css +510 -0
  53. package/cjs/date-picker/demo/style/mobile.less +25 -0
  54. package/cjs/date-picker/style/css/index.css +510 -0
  55. package/cjs/date-picker/style/index.less +25 -0
  56. package/cjs/dialog/demo/style/css/mobile.css +520 -1
  57. package/cjs/dialog/demo/style/mobile.less +44 -0
  58. package/cjs/dialog/style/css/index.css +645 -4
  59. package/cjs/dialog/style/index.less +102 -0
  60. package/cjs/divider/demo/style/css/mobile.css +510 -1
  61. package/cjs/divider/demo/style/mobile.less +26 -2
  62. package/cjs/divider/style/css/index.css +516 -0
  63. package/cjs/divider/style/index.less +44 -9
  64. package/cjs/dropdown/demo/style/css/mobile.css +510 -0
  65. package/cjs/dropdown/demo/style/mobile.less +25 -0
  66. package/cjs/dropdown/style/css/index.css +542 -6
  67. package/cjs/dropdown/style/index.less +69 -0
  68. package/cjs/dropdown-menu/demo/style/css/mobile.css +510 -0
  69. package/cjs/dropdown-menu/demo/style/mobile.less +25 -0
  70. package/cjs/dropdown-menu/style/css/index.css +566 -3
  71. package/cjs/dropdown-menu/style/index.less +62 -0
  72. package/cjs/ellipsis/demo/style/css/mobile.css +519 -1
  73. package/cjs/ellipsis/demo/style/mobile.less +39 -0
  74. package/cjs/ellipsis/style/css/index.css +514 -0
  75. package/cjs/ellipsis/style/index.less +32 -0
  76. package/cjs/form/style/css/index.css +538 -5
  77. package/cjs/form/style/index.less +66 -3
  78. package/cjs/grid/demo/style/css/mobile.css +525 -3
  79. package/cjs/grid/demo/style/mobile.less +47 -0
  80. package/cjs/grid/style/css/index.css +519 -0
  81. package/cjs/grid/style/index.less +48 -0
  82. package/cjs/image/demo/style/css/mobile.css +510 -0
  83. package/cjs/image/demo/style/mobile.less +25 -0
  84. package/cjs/image/style/css/index.css +551 -7
  85. package/cjs/image/style/index.less +54 -0
  86. package/cjs/image-picker/demo/style/css/mobile.css +510 -0
  87. package/cjs/image-picker/demo/style/mobile.less +25 -0
  88. package/cjs/image-picker/style/css/index.css +529 -4
  89. package/cjs/image-picker/style/index.less +54 -0
  90. package/cjs/image-preview/demo/style/css/mobile.css +510 -0
  91. package/cjs/image-preview/demo/style/mobile.less +25 -0
  92. package/cjs/image-preview/style/css/index.css +530 -5
  93. package/cjs/image-preview/style/index.less +37 -0
  94. package/cjs/index-bar/demo/style/css/mobile.css +510 -0
  95. package/cjs/index-bar/demo/style/mobile.less +25 -0
  96. package/cjs/index-bar/style/css/index.css +572 -8
  97. package/cjs/index-bar/style/index.less +67 -0
  98. package/cjs/input/demo/style/css/mobile.css +514 -1
  99. package/cjs/input/demo/style/mobile.less +32 -0
  100. package/cjs/input/style/css/index.css +589 -2
  101. package/cjs/input/style/index.less +87 -0
  102. package/cjs/keyboard/demo/style/css/mobile.css +516 -0
  103. package/cjs/keyboard/demo/style/mobile.less +35 -1
  104. package/cjs/keyboard/style/css/index.css +526 -2
  105. package/cjs/keyboard/style/index.less +51 -0
  106. package/cjs/load-more/demo/style/css/mobile.css +513 -0
  107. package/cjs/load-more/demo/style/mobile.less +30 -0
  108. package/cjs/load-more/style/css/index.css +513 -0
  109. package/cjs/load-more/style/index.less +30 -0
  110. package/cjs/loading/demo/style/css/mobile.css +510 -0
  111. package/cjs/loading/demo/style/mobile.less +25 -0
  112. package/cjs/loading/style/css/index.css +534 -5
  113. package/cjs/loading/style/index.less +45 -0
  114. package/cjs/masking/demo/style/css/mobile.css +514 -1
  115. package/cjs/masking/demo/style/mobile.less +30 -0
  116. package/cjs/masking/style/css/index.css +510 -0
  117. package/cjs/masking/style/index.less +25 -0
  118. package/cjs/nav-bar/demo/style/css/mobile.css +514 -1
  119. package/cjs/nav-bar/demo/style/mobile.less +33 -1
  120. package/cjs/nav-bar/style/css/index.css +550 -1
  121. package/cjs/nav-bar/style/index.less +38 -0
  122. package/cjs/notice-bar/style/css/index.css +520 -2
  123. package/cjs/notice-bar/style/index.less +36 -0
  124. package/cjs/notify/demo/style/css/mobile.css +510 -0
  125. package/cjs/notify/demo/style/mobile.less +25 -0
  126. package/cjs/notify/style/css/index.css +529 -4
  127. package/cjs/notify/style/index.less +50 -0
  128. package/cjs/pagination/demo/style/css/index.css +510 -0
  129. package/cjs/pagination/demo/style/index.less +25 -0
  130. package/cjs/pagination/style/css/index.css +543 -4
  131. package/cjs/pagination/style/index.less +72 -0
  132. package/cjs/picker/demo/style/css/mobile.css +510 -0
  133. package/cjs/picker/demo/style/mobile.less +25 -0
  134. package/cjs/picker/style/css/index.css +525 -3
  135. package/cjs/picker/style/index.less +49 -0
  136. package/cjs/picker-view/demo/style/css/mobile.css +510 -0
  137. package/cjs/picker-view/demo/style/mobile.less +25 -0
  138. package/cjs/picker-view/style/css/index.css +587 -0
  139. package/cjs/picker-view/style/index.less +50 -0
  140. package/cjs/popover/demo/style/css/mobile.css +510 -0
  141. package/cjs/popover/demo/style/mobile.less +25 -0
  142. package/cjs/popover/style/css/index.css +614 -4
  143. package/cjs/popover/style/css/menu.css +539 -1
  144. package/cjs/popover/style/index.less +126 -9
  145. package/cjs/popover/style/menu.less +69 -0
  146. package/cjs/popup/demo/style/css/mobile.css +517 -0
  147. package/cjs/popup/demo/style/mobile.less +38 -0
  148. package/cjs/popup/style/css/index.css +514 -1
  149. package/cjs/popup/style/index.less +32 -0
  150. package/cjs/popup-swiper/demo/style/css/mobile.css +517 -0
  151. package/cjs/popup-swiper/demo/style/mobile.less +38 -0
  152. package/cjs/popup-swiper/style/css/index.css +510 -0
  153. package/cjs/popup-swiper/style/index.less +25 -0
  154. package/cjs/portal/demo/style/css/mobile.css +515 -1
  155. package/cjs/portal/demo/style/mobile.less +31 -0
  156. package/cjs/progress/demo/style/css/mobile.css +510 -0
  157. package/cjs/progress/demo/style/mobile.less +25 -0
  158. package/cjs/progress/style/css/index.css +556 -8
  159. package/cjs/progress/style/index.less +91 -0
  160. package/cjs/pull-refresh/demo/style/css/mobile.css +514 -2
  161. package/cjs/pull-refresh/demo/style/mobile.less +35 -2
  162. package/cjs/pull-refresh/style/css/index.css +536 -3
  163. package/cjs/pull-refresh/style/index.less +45 -0
  164. package/cjs/radio/demo/style/css/mobile.css +513 -0
  165. package/cjs/radio/demo/style/mobile.less +32 -0
  166. package/cjs/radio/style/css/index.css +535 -4
  167. package/cjs/radio/style/index.less +61 -0
  168. package/cjs/rate/demo/style/css/mobile.css +510 -0
  169. package/cjs/rate/demo/style/mobile.less +25 -0
  170. package/cjs/rate/style/css/index.css +522 -2
  171. package/cjs/rate/style/index.less +43 -0
  172. package/cjs/search-bar/demo/style/css/mobile.css +516 -1
  173. package/cjs/search-bar/demo/style/mobile.less +39 -5
  174. package/cjs/search-bar/style/css/index.css +586 -6
  175. package/cjs/search-bar/style/index.less +84 -0
  176. package/cjs/show-monitor/demo/style/css/mobile.css +521 -2
  177. package/cjs/show-monitor/demo/style/mobile.less +43 -1
  178. package/cjs/skeleton/demo/style/css/mobile.css +510 -0
  179. package/cjs/skeleton/demo/style/mobile.less +25 -0
  180. package/cjs/skeleton/style/css/index.css +517 -1
  181. package/cjs/skeleton/style/index.less +35 -0
  182. package/cjs/slider/demo/style/css/mobile.css +514 -1
  183. package/cjs/slider/demo/style/mobile.less +34 -0
  184. package/cjs/slider/style/css/index.css +542 -5
  185. package/cjs/slider/style/index.less +74 -0
  186. package/cjs/stepper/demo/style/css/mobile.css +510 -0
  187. package/cjs/stepper/demo/style/mobile.less +25 -1
  188. package/cjs/stepper/style/css/index.css +551 -7
  189. package/cjs/stepper/style/index.less +84 -3
  190. package/cjs/steps/demo/style/css/mobile.css +544 -4
  191. package/cjs/steps/demo/style/mobile.less +41 -3
  192. package/cjs/steps/style/css/index.css +580 -9
  193. package/cjs/steps/style/index.less +138 -0
  194. package/cjs/steps/type.d.ts +1 -1
  195. package/cjs/sticky/demo/style/css/mobile.css +515 -2
  196. package/cjs/sticky/demo/style/mobile.less +34 -2
  197. package/cjs/sticky/style/css/index.css +510 -0
  198. package/cjs/sticky/style/index.less +25 -0
  199. package/cjs/swipe-action/demo/style/css/mobile.css +510 -0
  200. package/cjs/swipe-action/demo/style/mobile.less +25 -0
  201. package/cjs/swipe-action/style/css/index.css +518 -2
  202. package/cjs/swipe-action/style/index.less +43 -0
  203. package/cjs/swipe-load/demo/style/css/mobile.css +539 -5
  204. package/cjs/swipe-load/demo/style/mobile.less +64 -0
  205. package/cjs/swipe-load/style/css/index.css +517 -1
  206. package/cjs/swipe-load/style/index.less +37 -0
  207. package/cjs/switch/demo/style/css/mobile.css +515 -1
  208. package/cjs/switch/demo/style/mobile.less +35 -0
  209. package/cjs/switch/style/css/index.css +532 -4
  210. package/cjs/switch/style/index.less +59 -0
  211. package/cjs/tab-bar/demo/style/css/mobile.css +510 -0
  212. package/cjs/tab-bar/demo/style/mobile.less +25 -0
  213. package/cjs/tab-bar/style/css/index.css +517 -1
  214. package/cjs/tab-bar/style/index.less +37 -0
  215. package/cjs/tabs/demo/style/css/mobile.css +542 -5
  216. package/cjs/tabs/demo/style/mobile.less +75 -0
  217. package/cjs/tabs/style/css/index.css +618 -13
  218. package/cjs/tabs/style/index.less +123 -0
  219. package/cjs/tabs/tab-cell.js +1 -1
  220. package/cjs/tag/demo/style/css/mobile.css +510 -0
  221. package/cjs/tag/demo/style/mobile.less +25 -0
  222. package/cjs/tag/style/css/index.css +538 -10
  223. package/cjs/tag/style/index.less +55 -0
  224. package/cjs/textarea/demo/style/css/mobile.css +514 -1
  225. package/cjs/textarea/demo/style/mobile.less +32 -1
  226. package/cjs/textarea/style/css/index.css +527 -2
  227. package/cjs/textarea/style/index.less +47 -0
  228. package/cjs/toast/demo/style/css/mobile.css +510 -0
  229. package/cjs/toast/demo/style/mobile.less +25 -0
  230. package/cjs/toast/style/css/index.css +530 -5
  231. package/cjs/toast/style/index.less +37 -0
  232. package/cjs/transition/demo/style/css/mobile.css +510 -0
  233. package/cjs/transition/demo/style/mobile.less +25 -0
  234. package/cjs/transition/style/css/index.css +510 -0
  235. package/cjs/transition/style/index.less +25 -0
  236. package/dist/index.js +1073 -29
  237. package/dist/index.min.js +4 -4
  238. package/dist/style.css +28002 -211
  239. package/dist/style.min.css +1 -1
  240. package/esm/_helpers/hooks.d.ts +242 -2
  241. package/esm/_helpers/hooks.js +269 -10
  242. package/esm/_helpers/index.d.ts +78 -1
  243. package/esm/_helpers/index.js +80 -1
  244. package/esm/action-sheet/demo/style/css/mobile.css +514 -1
  245. package/esm/action-sheet/demo/style/mobile.less +32 -0
  246. package/esm/action-sheet/style/css/index.css +597 -2
  247. package/esm/action-sheet/style/index.less +62 -0
  248. package/esm/avatar/demo/style/css/mobile.css +518 -1
  249. package/esm/avatar/demo/style/mobile.less +41 -1
  250. package/esm/avatar/style/css/index.css +529 -3
  251. package/esm/avatar/style/index.less +54 -1
  252. package/esm/badge/demo/style/css/mobile.css +520 -1
  253. package/esm/badge/demo/style/mobile.less +40 -0
  254. package/esm/badge/style/css/index.css +518 -1
  255. package/esm/badge/style/index.less +36 -0
  256. package/esm/button/demo/style/css/mobile.css +510 -0
  257. package/esm/button/demo/style/mobile.less +25 -0
  258. package/esm/button/style/css/index.css +616 -39
  259. package/esm/button/style/index.less +135 -25
  260. package/esm/carousel/demo/style/css/mobile.css +514 -0
  261. package/esm/carousel/demo/style/mobile.less +33 -0
  262. package/esm/carousel/style/css/index.css +525 -3
  263. package/esm/carousel/style/index.less +55 -0
  264. package/esm/cell/demo/style/css/mobile.css +521 -0
  265. package/esm/cell/demo/style/mobile.less +46 -0
  266. package/esm/cell/style/css/index.css +707 -2
  267. package/esm/cell/style/index.less +96 -0
  268. package/esm/checkbox/demo/style/css/mobile.css +510 -0
  269. package/esm/checkbox/demo/style/mobile.less +25 -0
  270. package/esm/checkbox/style/css/index.css +535 -4
  271. package/esm/checkbox/style/index.less +61 -0
  272. package/esm/circle-progress/demo/style/css/mobile.css +510 -0
  273. package/esm/circle-progress/demo/style/mobile.less +25 -0
  274. package/esm/circle-progress/style/css/index.css +527 -3
  275. package/esm/circle-progress/style/index.less +49 -0
  276. package/esm/collapse/demo/style/css/mobile.css +510 -0
  277. package/esm/collapse/demo/style/mobile.less +25 -0
  278. package/esm/collapse/style/css/index.css +557 -1
  279. package/esm/collapse/style/index.less +53 -0
  280. package/esm/context-provider/demo/style/css/mobile.css +510 -0
  281. package/esm/context-provider/demo/style/mobile.less +25 -0
  282. package/esm/context-provider/index.d.ts +10 -3
  283. package/esm/context-provider/index.js +41 -8
  284. package/esm/count-down/demo/style/css/mobile.css +518 -2
  285. package/esm/count-down/demo/style/mobile.less +39 -0
  286. package/esm/count-down/style/css/index.css +513 -0
  287. package/esm/count-down/style/index.less +30 -0
  288. package/esm/date-picker/demo/style/css/mobile.css +510 -0
  289. package/esm/date-picker/demo/style/mobile.less +25 -0
  290. package/esm/date-picker/style/css/index.css +510 -0
  291. package/esm/date-picker/style/index.less +25 -0
  292. package/esm/dialog/demo/style/css/mobile.css +520 -1
  293. package/esm/dialog/demo/style/mobile.less +44 -0
  294. package/esm/dialog/style/css/index.css +645 -4
  295. package/esm/dialog/style/index.less +102 -0
  296. package/esm/divider/demo/style/css/mobile.css +510 -1
  297. package/esm/divider/demo/style/mobile.less +26 -2
  298. package/esm/divider/style/css/index.css +516 -0
  299. package/esm/divider/style/index.less +44 -9
  300. package/esm/dropdown/demo/style/css/mobile.css +510 -0
  301. package/esm/dropdown/demo/style/mobile.less +25 -0
  302. package/esm/dropdown/style/css/index.css +542 -6
  303. package/esm/dropdown/style/index.less +69 -0
  304. package/esm/dropdown-menu/demo/style/css/mobile.css +510 -0
  305. package/esm/dropdown-menu/demo/style/mobile.less +25 -0
  306. package/esm/dropdown-menu/style/css/index.css +566 -3
  307. package/esm/dropdown-menu/style/index.less +62 -0
  308. package/esm/ellipsis/demo/style/css/mobile.css +519 -1
  309. package/esm/ellipsis/demo/style/mobile.less +39 -0
  310. package/esm/ellipsis/style/css/index.css +514 -0
  311. package/esm/ellipsis/style/index.less +32 -0
  312. package/esm/form/style/css/index.css +538 -5
  313. package/esm/form/style/index.less +66 -3
  314. package/esm/grid/demo/style/css/mobile.css +525 -3
  315. package/esm/grid/demo/style/mobile.less +47 -0
  316. package/esm/grid/style/css/index.css +519 -0
  317. package/esm/grid/style/index.less +48 -0
  318. package/esm/image/demo/style/css/mobile.css +510 -0
  319. package/esm/image/demo/style/mobile.less +25 -0
  320. package/esm/image/style/css/index.css +551 -7
  321. package/esm/image/style/index.less +54 -0
  322. package/esm/image-picker/demo/style/css/mobile.css +510 -0
  323. package/esm/image-picker/demo/style/mobile.less +25 -0
  324. package/esm/image-picker/style/css/index.css +529 -4
  325. package/esm/image-picker/style/index.less +54 -0
  326. package/esm/image-preview/demo/style/css/mobile.css +510 -0
  327. package/esm/image-preview/demo/style/mobile.less +25 -0
  328. package/esm/image-preview/style/css/index.css +530 -5
  329. package/esm/image-preview/style/index.less +37 -0
  330. package/esm/index-bar/demo/style/css/mobile.css +510 -0
  331. package/esm/index-bar/demo/style/mobile.less +25 -0
  332. package/esm/index-bar/style/css/index.css +572 -8
  333. package/esm/index-bar/style/index.less +67 -0
  334. package/esm/input/demo/style/css/mobile.css +514 -1
  335. package/esm/input/demo/style/mobile.less +32 -0
  336. package/esm/input/style/css/index.css +589 -2
  337. package/esm/input/style/index.less +87 -0
  338. package/esm/keyboard/demo/style/css/mobile.css +516 -0
  339. package/esm/keyboard/demo/style/mobile.less +35 -1
  340. package/esm/keyboard/style/css/index.css +526 -2
  341. package/esm/keyboard/style/index.less +51 -0
  342. package/esm/load-more/demo/style/css/mobile.css +513 -0
  343. package/esm/load-more/demo/style/mobile.less +30 -0
  344. package/esm/load-more/style/css/index.css +513 -0
  345. package/esm/load-more/style/index.less +30 -0
  346. package/esm/loading/demo/style/css/mobile.css +510 -0
  347. package/esm/loading/demo/style/mobile.less +25 -0
  348. package/esm/loading/style/css/index.css +534 -5
  349. package/esm/loading/style/index.less +45 -0
  350. package/esm/masking/demo/style/css/mobile.css +514 -1
  351. package/esm/masking/demo/style/mobile.less +30 -0
  352. package/esm/masking/style/css/index.css +510 -0
  353. package/esm/masking/style/index.less +25 -0
  354. package/esm/nav-bar/demo/style/css/mobile.css +514 -1
  355. package/esm/nav-bar/demo/style/mobile.less +33 -1
  356. package/esm/nav-bar/style/css/index.css +550 -1
  357. package/esm/nav-bar/style/index.less +38 -0
  358. package/esm/notice-bar/style/css/index.css +520 -2
  359. package/esm/notice-bar/style/index.less +36 -0
  360. package/esm/notify/demo/style/css/mobile.css +510 -0
  361. package/esm/notify/demo/style/mobile.less +25 -0
  362. package/esm/notify/style/css/index.css +529 -4
  363. package/esm/notify/style/index.less +50 -0
  364. package/esm/pagination/demo/style/css/index.css +510 -0
  365. package/esm/pagination/demo/style/index.less +25 -0
  366. package/esm/pagination/style/css/index.css +543 -4
  367. package/esm/pagination/style/index.less +72 -0
  368. package/esm/picker/demo/style/css/mobile.css +510 -0
  369. package/esm/picker/demo/style/mobile.less +25 -0
  370. package/esm/picker/style/css/index.css +525 -3
  371. package/esm/picker/style/index.less +49 -0
  372. package/esm/picker-view/demo/style/css/mobile.css +510 -0
  373. package/esm/picker-view/demo/style/mobile.less +25 -0
  374. package/esm/picker-view/style/css/index.css +587 -0
  375. package/esm/picker-view/style/index.less +50 -0
  376. package/esm/popover/demo/style/css/mobile.css +510 -0
  377. package/esm/popover/demo/style/mobile.less +25 -0
  378. package/esm/popover/style/css/index.css +614 -4
  379. package/esm/popover/style/css/menu.css +539 -1
  380. package/esm/popover/style/index.less +126 -9
  381. package/esm/popover/style/menu.less +69 -0
  382. package/esm/popup/demo/style/css/mobile.css +517 -0
  383. package/esm/popup/demo/style/mobile.less +38 -0
  384. package/esm/popup/style/css/index.css +514 -1
  385. package/esm/popup/style/index.less +32 -0
  386. package/esm/popup-swiper/demo/style/css/mobile.css +517 -0
  387. package/esm/popup-swiper/demo/style/mobile.less +38 -0
  388. package/esm/popup-swiper/style/css/index.css +510 -0
  389. package/esm/popup-swiper/style/index.less +25 -0
  390. package/esm/portal/demo/style/css/mobile.css +515 -1
  391. package/esm/portal/demo/style/mobile.less +31 -0
  392. package/esm/progress/demo/style/css/mobile.css +510 -0
  393. package/esm/progress/demo/style/mobile.less +25 -0
  394. package/esm/progress/style/css/index.css +556 -8
  395. package/esm/progress/style/index.less +91 -0
  396. package/esm/pull-refresh/demo/style/css/mobile.css +514 -2
  397. package/esm/pull-refresh/demo/style/mobile.less +35 -2
  398. package/esm/pull-refresh/style/css/index.css +536 -3
  399. package/esm/pull-refresh/style/index.less +45 -0
  400. package/esm/radio/demo/style/css/mobile.css +513 -0
  401. package/esm/radio/demo/style/mobile.less +32 -0
  402. package/esm/radio/style/css/index.css +535 -4
  403. package/esm/radio/style/index.less +61 -0
  404. package/esm/rate/demo/style/css/mobile.css +510 -0
  405. package/esm/rate/demo/style/mobile.less +25 -0
  406. package/esm/rate/style/css/index.css +522 -2
  407. package/esm/rate/style/index.less +43 -0
  408. package/esm/search-bar/demo/style/css/mobile.css +516 -1
  409. package/esm/search-bar/demo/style/mobile.less +39 -5
  410. package/esm/search-bar/style/css/index.css +586 -6
  411. package/esm/search-bar/style/index.less +84 -0
  412. package/esm/show-monitor/demo/style/css/mobile.css +521 -2
  413. package/esm/show-monitor/demo/style/mobile.less +43 -1
  414. package/esm/skeleton/demo/style/css/mobile.css +510 -0
  415. package/esm/skeleton/demo/style/mobile.less +25 -0
  416. package/esm/skeleton/style/css/index.css +517 -1
  417. package/esm/skeleton/style/index.less +35 -0
  418. package/esm/slider/demo/style/css/mobile.css +514 -1
  419. package/esm/slider/demo/style/mobile.less +34 -0
  420. package/esm/slider/style/css/index.css +542 -5
  421. package/esm/slider/style/index.less +74 -0
  422. package/esm/stepper/demo/style/css/mobile.css +510 -0
  423. package/esm/stepper/demo/style/mobile.less +25 -1
  424. package/esm/stepper/style/css/index.css +551 -7
  425. package/esm/stepper/style/index.less +84 -3
  426. package/esm/steps/demo/style/css/mobile.css +544 -4
  427. package/esm/steps/demo/style/mobile.less +41 -3
  428. package/esm/steps/style/css/index.css +580 -9
  429. package/esm/steps/style/index.less +138 -0
  430. package/esm/steps/type.d.ts +1 -1
  431. package/esm/sticky/demo/style/css/mobile.css +515 -2
  432. package/esm/sticky/demo/style/mobile.less +34 -2
  433. package/esm/sticky/style/css/index.css +510 -0
  434. package/esm/sticky/style/index.less +25 -0
  435. package/esm/swipe-action/demo/style/css/mobile.css +510 -0
  436. package/esm/swipe-action/demo/style/mobile.less +25 -0
  437. package/esm/swipe-action/style/css/index.css +518 -2
  438. package/esm/swipe-action/style/index.less +43 -0
  439. package/esm/swipe-load/demo/style/css/mobile.css +539 -5
  440. package/esm/swipe-load/demo/style/mobile.less +64 -0
  441. package/esm/swipe-load/style/css/index.css +517 -1
  442. package/esm/swipe-load/style/index.less +37 -0
  443. package/esm/switch/demo/style/css/mobile.css +515 -1
  444. package/esm/switch/demo/style/mobile.less +35 -0
  445. package/esm/switch/style/css/index.css +532 -4
  446. package/esm/switch/style/index.less +59 -0
  447. package/esm/tab-bar/demo/style/css/mobile.css +510 -0
  448. package/esm/tab-bar/demo/style/mobile.less +25 -0
  449. package/esm/tab-bar/style/css/index.css +517 -1
  450. package/esm/tab-bar/style/index.less +37 -0
  451. package/esm/tabs/demo/style/css/mobile.css +542 -5
  452. package/esm/tabs/demo/style/mobile.less +75 -0
  453. package/esm/tabs/style/css/index.css +618 -13
  454. package/esm/tabs/style/index.less +123 -0
  455. package/esm/tabs/tab-cell.js +1 -1
  456. package/esm/tag/demo/style/css/mobile.css +510 -0
  457. package/esm/tag/demo/style/mobile.less +25 -0
  458. package/esm/tag/style/css/index.css +538 -10
  459. package/esm/tag/style/index.less +55 -0
  460. package/esm/textarea/demo/style/css/mobile.css +514 -1
  461. package/esm/textarea/demo/style/mobile.less +32 -1
  462. package/esm/textarea/style/css/index.css +527 -2
  463. package/esm/textarea/style/index.less +47 -0
  464. package/esm/toast/demo/style/css/mobile.css +510 -0
  465. package/esm/toast/demo/style/mobile.less +25 -0
  466. package/esm/toast/style/css/index.css +530 -5
  467. package/esm/toast/style/index.less +37 -0
  468. package/esm/transition/demo/style/css/mobile.css +510 -0
  469. package/esm/transition/demo/style/mobile.less +25 -0
  470. package/esm/transition/style/css/index.css +510 -0
  471. package/esm/transition/style/index.less +25 -0
  472. package/less-loader.config.js +6 -0
  473. package/package.json +3 -3
  474. package/style/css/public.css +510 -0
  475. package/tokens/app/arcodesign/default/css-variables.less +357 -103
  476. package/tokens/app/arcodesign/default/index.d.ts +257 -3
  477. package/tokens/app/arcodesign/default/index.js +357 -103
  478. package/tokens/app/arcodesign/default/index.json +2574 -526
  479. package/tokens/app/arcodesign/default/index.less +357 -103
  480. package/tokens/mixin/index.less +255 -1
  481. package/umd/_helpers/hooks.d.ts +242 -2
  482. package/umd/_helpers/hooks.js +267 -10
  483. package/umd/_helpers/index.d.ts +78 -1
  484. package/umd/_helpers/index.js +89 -10
  485. package/umd/action-sheet/demo/style/css/mobile.css +514 -1
  486. package/umd/action-sheet/demo/style/mobile.less +32 -0
  487. package/umd/action-sheet/style/css/index.css +597 -2
  488. package/umd/action-sheet/style/index.less +62 -0
  489. package/umd/avatar/demo/style/css/mobile.css +518 -1
  490. package/umd/avatar/demo/style/mobile.less +41 -1
  491. package/umd/avatar/style/css/index.css +529 -3
  492. package/umd/avatar/style/index.less +54 -1
  493. package/umd/badge/demo/style/css/mobile.css +520 -1
  494. package/umd/badge/demo/style/mobile.less +40 -0
  495. package/umd/badge/style/css/index.css +518 -1
  496. package/umd/badge/style/index.less +36 -0
  497. package/umd/button/demo/style/css/mobile.css +510 -0
  498. package/umd/button/demo/style/mobile.less +25 -0
  499. package/umd/button/style/css/index.css +616 -39
  500. package/umd/button/style/index.less +135 -25
  501. package/umd/carousel/demo/style/css/mobile.css +514 -0
  502. package/umd/carousel/demo/style/mobile.less +33 -0
  503. package/umd/carousel/style/css/index.css +525 -3
  504. package/umd/carousel/style/index.less +55 -0
  505. package/umd/cell/demo/style/css/mobile.css +521 -0
  506. package/umd/cell/demo/style/mobile.less +46 -0
  507. package/umd/cell/style/css/index.css +707 -2
  508. package/umd/cell/style/index.less +96 -0
  509. package/umd/checkbox/demo/style/css/mobile.css +510 -0
  510. package/umd/checkbox/demo/style/mobile.less +25 -0
  511. package/umd/checkbox/style/css/index.css +535 -4
  512. package/umd/checkbox/style/index.less +61 -0
  513. package/umd/circle-progress/demo/style/css/mobile.css +510 -0
  514. package/umd/circle-progress/demo/style/mobile.less +25 -0
  515. package/umd/circle-progress/style/css/index.css +527 -3
  516. package/umd/circle-progress/style/index.less +49 -0
  517. package/umd/collapse/demo/style/css/mobile.css +510 -0
  518. package/umd/collapse/demo/style/mobile.less +25 -0
  519. package/umd/collapse/style/css/index.css +557 -1
  520. package/umd/collapse/style/index.less +53 -0
  521. package/umd/context-provider/demo/style/css/mobile.css +510 -0
  522. package/umd/context-provider/demo/style/mobile.less +25 -0
  523. package/umd/context-provider/index.d.ts +10 -3
  524. package/umd/context-provider/index.js +40 -7
  525. package/umd/count-down/demo/style/css/mobile.css +518 -2
  526. package/umd/count-down/demo/style/mobile.less +39 -0
  527. package/umd/count-down/style/css/index.css +513 -0
  528. package/umd/count-down/style/index.less +30 -0
  529. package/umd/date-picker/demo/style/css/mobile.css +510 -0
  530. package/umd/date-picker/demo/style/mobile.less +25 -0
  531. package/umd/date-picker/style/css/index.css +510 -0
  532. package/umd/date-picker/style/index.less +25 -0
  533. package/umd/dialog/demo/style/css/mobile.css +520 -1
  534. package/umd/dialog/demo/style/mobile.less +44 -0
  535. package/umd/dialog/style/css/index.css +645 -4
  536. package/umd/dialog/style/index.less +102 -0
  537. package/umd/divider/demo/style/css/mobile.css +510 -1
  538. package/umd/divider/demo/style/mobile.less +26 -2
  539. package/umd/divider/style/css/index.css +516 -0
  540. package/umd/divider/style/index.less +44 -9
  541. package/umd/dropdown/demo/style/css/mobile.css +510 -0
  542. package/umd/dropdown/demo/style/mobile.less +25 -0
  543. package/umd/dropdown/style/css/index.css +542 -6
  544. package/umd/dropdown/style/index.less +69 -0
  545. package/umd/dropdown-menu/demo/style/css/mobile.css +510 -0
  546. package/umd/dropdown-menu/demo/style/mobile.less +25 -0
  547. package/umd/dropdown-menu/style/css/index.css +566 -3
  548. package/umd/dropdown-menu/style/index.less +62 -0
  549. package/umd/ellipsis/demo/style/css/mobile.css +519 -1
  550. package/umd/ellipsis/demo/style/mobile.less +39 -0
  551. package/umd/ellipsis/style/css/index.css +514 -0
  552. package/umd/ellipsis/style/index.less +32 -0
  553. package/umd/form/style/css/index.css +538 -5
  554. package/umd/form/style/index.less +66 -3
  555. package/umd/grid/demo/style/css/mobile.css +525 -3
  556. package/umd/grid/demo/style/mobile.less +47 -0
  557. package/umd/grid/style/css/index.css +519 -0
  558. package/umd/grid/style/index.less +48 -0
  559. package/umd/image/demo/style/css/mobile.css +510 -0
  560. package/umd/image/demo/style/mobile.less +25 -0
  561. package/umd/image/style/css/index.css +551 -7
  562. package/umd/image/style/index.less +54 -0
  563. package/umd/image-picker/demo/style/css/mobile.css +510 -0
  564. package/umd/image-picker/demo/style/mobile.less +25 -0
  565. package/umd/image-picker/style/css/index.css +529 -4
  566. package/umd/image-picker/style/index.less +54 -0
  567. package/umd/image-preview/demo/style/css/mobile.css +510 -0
  568. package/umd/image-preview/demo/style/mobile.less +25 -0
  569. package/umd/image-preview/style/css/index.css +530 -5
  570. package/umd/image-preview/style/index.less +37 -0
  571. package/umd/index-bar/demo/style/css/mobile.css +510 -0
  572. package/umd/index-bar/demo/style/mobile.less +25 -0
  573. package/umd/index-bar/style/css/index.css +572 -8
  574. package/umd/index-bar/style/index.less +67 -0
  575. package/umd/input/demo/style/css/mobile.css +514 -1
  576. package/umd/input/demo/style/mobile.less +32 -0
  577. package/umd/input/style/css/index.css +589 -2
  578. package/umd/input/style/index.less +87 -0
  579. package/umd/keyboard/demo/style/css/mobile.css +516 -0
  580. package/umd/keyboard/demo/style/mobile.less +35 -1
  581. package/umd/keyboard/style/css/index.css +526 -2
  582. package/umd/keyboard/style/index.less +51 -0
  583. package/umd/load-more/demo/style/css/mobile.css +513 -0
  584. package/umd/load-more/demo/style/mobile.less +30 -0
  585. package/umd/load-more/style/css/index.css +513 -0
  586. package/umd/load-more/style/index.less +30 -0
  587. package/umd/loading/demo/style/css/mobile.css +510 -0
  588. package/umd/loading/demo/style/mobile.less +25 -0
  589. package/umd/loading/style/css/index.css +534 -5
  590. package/umd/loading/style/index.less +45 -0
  591. package/umd/masking/demo/style/css/mobile.css +514 -1
  592. package/umd/masking/demo/style/mobile.less +30 -0
  593. package/umd/masking/style/css/index.css +510 -0
  594. package/umd/masking/style/index.less +25 -0
  595. package/umd/nav-bar/demo/style/css/mobile.css +514 -1
  596. package/umd/nav-bar/demo/style/mobile.less +33 -1
  597. package/umd/nav-bar/style/css/index.css +550 -1
  598. package/umd/nav-bar/style/index.less +38 -0
  599. package/umd/notice-bar/style/css/index.css +520 -2
  600. package/umd/notice-bar/style/index.less +36 -0
  601. package/umd/notify/demo/style/css/mobile.css +510 -0
  602. package/umd/notify/demo/style/mobile.less +25 -0
  603. package/umd/notify/style/css/index.css +529 -4
  604. package/umd/notify/style/index.less +50 -0
  605. package/umd/pagination/demo/style/css/index.css +510 -0
  606. package/umd/pagination/demo/style/index.less +25 -0
  607. package/umd/pagination/style/css/index.css +543 -4
  608. package/umd/pagination/style/index.less +72 -0
  609. package/umd/picker/demo/style/css/mobile.css +510 -0
  610. package/umd/picker/demo/style/mobile.less +25 -0
  611. package/umd/picker/style/css/index.css +525 -3
  612. package/umd/picker/style/index.less +49 -0
  613. package/umd/picker-view/demo/style/css/mobile.css +510 -0
  614. package/umd/picker-view/demo/style/mobile.less +25 -0
  615. package/umd/picker-view/style/css/index.css +587 -0
  616. package/umd/picker-view/style/index.less +50 -0
  617. package/umd/popover/demo/style/css/mobile.css +510 -0
  618. package/umd/popover/demo/style/mobile.less +25 -0
  619. package/umd/popover/style/css/index.css +614 -4
  620. package/umd/popover/style/css/menu.css +539 -1
  621. package/umd/popover/style/index.less +126 -9
  622. package/umd/popover/style/menu.less +69 -0
  623. package/umd/popup/demo/style/css/mobile.css +517 -0
  624. package/umd/popup/demo/style/mobile.less +38 -0
  625. package/umd/popup/style/css/index.css +514 -1
  626. package/umd/popup/style/index.less +32 -0
  627. package/umd/popup-swiper/demo/style/css/mobile.css +517 -0
  628. package/umd/popup-swiper/demo/style/mobile.less +38 -0
  629. package/umd/popup-swiper/style/css/index.css +510 -0
  630. package/umd/popup-swiper/style/index.less +25 -0
  631. package/umd/portal/demo/style/css/mobile.css +515 -1
  632. package/umd/portal/demo/style/mobile.less +31 -0
  633. package/umd/progress/demo/style/css/mobile.css +510 -0
  634. package/umd/progress/demo/style/mobile.less +25 -0
  635. package/umd/progress/style/css/index.css +556 -8
  636. package/umd/progress/style/index.less +91 -0
  637. package/umd/pull-refresh/demo/style/css/mobile.css +514 -2
  638. package/umd/pull-refresh/demo/style/mobile.less +35 -2
  639. package/umd/pull-refresh/style/css/index.css +536 -3
  640. package/umd/pull-refresh/style/index.less +45 -0
  641. package/umd/radio/demo/style/css/mobile.css +513 -0
  642. package/umd/radio/demo/style/mobile.less +32 -0
  643. package/umd/radio/style/css/index.css +535 -4
  644. package/umd/radio/style/index.less +61 -0
  645. package/umd/rate/demo/style/css/mobile.css +510 -0
  646. package/umd/rate/demo/style/mobile.less +25 -0
  647. package/umd/rate/style/css/index.css +522 -2
  648. package/umd/rate/style/index.less +43 -0
  649. package/umd/search-bar/demo/style/css/mobile.css +516 -1
  650. package/umd/search-bar/demo/style/mobile.less +39 -5
  651. package/umd/search-bar/style/css/index.css +586 -6
  652. package/umd/search-bar/style/index.less +84 -0
  653. package/umd/show-monitor/demo/style/css/mobile.css +521 -2
  654. package/umd/show-monitor/demo/style/mobile.less +43 -1
  655. package/umd/skeleton/demo/style/css/mobile.css +510 -0
  656. package/umd/skeleton/demo/style/mobile.less +25 -0
  657. package/umd/skeleton/style/css/index.css +517 -1
  658. package/umd/skeleton/style/index.less +35 -0
  659. package/umd/slider/demo/style/css/mobile.css +514 -1
  660. package/umd/slider/demo/style/mobile.less +34 -0
  661. package/umd/slider/style/css/index.css +542 -5
  662. package/umd/slider/style/index.less +74 -0
  663. package/umd/stepper/demo/style/css/mobile.css +510 -0
  664. package/umd/stepper/demo/style/mobile.less +25 -1
  665. package/umd/stepper/style/css/index.css +551 -7
  666. package/umd/stepper/style/index.less +84 -3
  667. package/umd/steps/demo/style/css/mobile.css +544 -4
  668. package/umd/steps/demo/style/mobile.less +41 -3
  669. package/umd/steps/style/css/index.css +580 -9
  670. package/umd/steps/style/index.less +138 -0
  671. package/umd/steps/type.d.ts +1 -1
  672. package/umd/sticky/demo/style/css/mobile.css +515 -2
  673. package/umd/sticky/demo/style/mobile.less +34 -2
  674. package/umd/sticky/style/css/index.css +510 -0
  675. package/umd/sticky/style/index.less +25 -0
  676. package/umd/swipe-action/demo/style/css/mobile.css +510 -0
  677. package/umd/swipe-action/demo/style/mobile.less +25 -0
  678. package/umd/swipe-action/style/css/index.css +518 -2
  679. package/umd/swipe-action/style/index.less +43 -0
  680. package/umd/swipe-load/demo/style/css/mobile.css +539 -5
  681. package/umd/swipe-load/demo/style/mobile.less +64 -0
  682. package/umd/swipe-load/style/css/index.css +517 -1
  683. package/umd/swipe-load/style/index.less +37 -0
  684. package/umd/switch/demo/style/css/mobile.css +515 -1
  685. package/umd/switch/demo/style/mobile.less +35 -0
  686. package/umd/switch/style/css/index.css +532 -4
  687. package/umd/switch/style/index.less +59 -0
  688. package/umd/tab-bar/demo/style/css/mobile.css +510 -0
  689. package/umd/tab-bar/demo/style/mobile.less +25 -0
  690. package/umd/tab-bar/style/css/index.css +517 -1
  691. package/umd/tab-bar/style/index.less +37 -0
  692. package/umd/tabs/demo/style/css/mobile.css +542 -5
  693. package/umd/tabs/demo/style/mobile.less +75 -0
  694. package/umd/tabs/style/css/index.css +618 -13
  695. package/umd/tabs/style/index.less +123 -0
  696. package/umd/tabs/tab-cell.js +1 -1
  697. package/umd/tag/demo/style/css/mobile.css +510 -0
  698. package/umd/tag/demo/style/mobile.less +25 -0
  699. package/umd/tag/style/css/index.css +538 -10
  700. package/umd/tag/style/index.less +55 -0
  701. package/umd/textarea/demo/style/css/mobile.css +514 -1
  702. package/umd/textarea/demo/style/mobile.less +32 -1
  703. package/umd/textarea/style/css/index.css +527 -2
  704. package/umd/textarea/style/index.less +47 -0
  705. package/umd/toast/demo/style/css/mobile.css +510 -0
  706. package/umd/toast/demo/style/mobile.less +25 -0
  707. package/umd/toast/style/css/index.css +530 -5
  708. package/umd/toast/style/index.less +37 -0
  709. package/umd/transition/demo/style/css/mobile.css +510 -0
  710. package/umd/transition/demo/style/mobile.less +25 -0
  711. package/umd/transition/style/css/index.css +510 -0
  712. package/umd/transition/style/index.less +25 -0
@@ -2,8 +2,6 @@
2
2
 
3
3
  @size-map: huge, large, medium, small, mini;
4
4
 
5
- @type-map: primary, default, ghost;
6
-
7
5
  .button-has-border(@color) {
8
6
  .use-var(border, @color, 1PX solid);
9
7
  &.half-border {
@@ -61,7 +59,50 @@
61
59
  display: inline-block;
62
60
  }
63
61
 
64
- .set-button-type(length(@type-map));
62
+ &&-type-primary {
63
+ .use-var(background, button-primary-background);
64
+ .use-var(color, button-primary-text-color);
65
+ &-disabled {
66
+ .use-var(background, button-primary-disabled-background);
67
+ .use-var(color, button-primary-disabled-text-color)
68
+ }
69
+ &-active {
70
+ .use-var(background, button-primary-clicked-background);
71
+ }
72
+ }
73
+ &-type-primary {
74
+ .set-loading-color-var(button-primary-text-color);
75
+ }
76
+
77
+ &&-type-default {
78
+ .use-var(background, button-default-background);
79
+ .use-var(color, button-default-text-color);
80
+ &-disabled {
81
+ .use-var(background, button-default-disabled-background);
82
+ .use-var(color, button-default-disabled-text-color)
83
+ }
84
+ &-active {
85
+ .use-var(background, button-default-clicked-background);
86
+ }
87
+ }
88
+ &-type-default {
89
+ .set-loading-color-var(button-default-text-color);
90
+ }
91
+
92
+ &&-type-ghost {
93
+ .use-var(background, button-ghost-background);
94
+ .use-var(color, button-ghost-text-color);
95
+ &-disabled {
96
+ .use-var(background, button-ghost-disabled-background);
97
+ .use-var(color, button-ghost-disabled-text-color)
98
+ }
99
+ &-active {
100
+ .use-var(background, button-ghost-clicked-background);
101
+ }
102
+ }
103
+ &-type-ghost {
104
+ .set-loading-color-var(button-ghost-text-color);
105
+ }
65
106
 
66
107
  &&-type-ghost {
67
108
  .button-has-border-value(currentColor);
@@ -97,28 +138,6 @@
97
138
  }
98
139
  }
99
140
 
100
-
101
- .set-button-type(@index) when (@index > 0) {
102
- @type: extract(@type-map, @index);
103
-
104
- &&-type-@{type} {
105
- .use-var(background, 'button-@{type}-background');
106
- .use-var(color, 'button-@{type}-text-color');
107
- &-disabled {
108
- .use-var(background, 'button-@{type}-disabled-background');
109
- .use-var(color, 'button-@{type}-disabled-text-color')
110
- }
111
- &-active {
112
- .use-var(background, 'button-@{type}-clicked-background');
113
- }
114
- }
115
- &-type-@{type} {
116
- .set-loading-color-var('button-@{type}-text-color');
117
- }
118
-
119
- .set-button-type(@index - 1);
120
- }
121
-
122
141
  .set-button-size(@index) when (@index > 0) {
123
142
  @size: extract(@size-map, @index);
124
143
 
@@ -130,3 +149,94 @@
130
149
 
131
150
  .set-button-size(@index - 1);
132
151
  }
152
+
153
+ /***************************************************
154
+ * *
155
+ * Arco Theme Style *
156
+ * *
157
+ ***************************************************/
158
+ & when (@use-dark-mode = 1) {
159
+
160
+ .process-bg-color-with-config,
161
+ .process-custom-icon-bg-color-with-config {
162
+ @{arco-dark-mode-selector} & {
163
+ .use-var(color, dark-steps-process-with-config-item-icon-color);
164
+ .use-var(color, dark-steps-process-with-config-item-icon-color);
165
+ }
166
+ }
167
+ .wait-custom-icon-bg-color-with-config {
168
+ @{arco-dark-mode-selector} & {
169
+ .use-var(background, dark-steps-wait-icon-num-background);
170
+ .use-var(color, dark-sub-info-font-color);
171
+ .use-var(background, dark-steps-wait-icon-num-background);
172
+ .use-var(color, dark-sub-info-font-color);
173
+ }
174
+ }
175
+ .@{prefix}-button {
176
+ &&-type-primary {
177
+ @{arco-dark-mode-selector} & {
178
+ .use-var(background, dark-button-primary-background);
179
+ .use-var(color, dark-button-primary-text-color);
180
+ }
181
+ &-disabled {
182
+ @{arco-dark-mode-selector} & {
183
+ .use-var(background, dark-button-primary-disabled-background);
184
+ .use-var(color, dark-button-primary-disabled-text-color);
185
+ }
186
+ }
187
+ &-active {
188
+ @{arco-dark-mode-selector} & {
189
+ .use-var(background, dark-button-primary-clicked-background);
190
+ }
191
+ }
192
+ }
193
+ &-type-primary {
194
+ @{arco-dark-mode-selector} & {
195
+ .set-loading-color-var(dark-button-primary-text-color);
196
+ }
197
+ }
198
+ &&-type-default {
199
+ @{arco-dark-mode-selector} & {
200
+ .use-var(background, dark-button-default-background);
201
+ .use-var(color, dark-button-default-text-color);
202
+ }
203
+ &-disabled {
204
+ @{arco-dark-mode-selector} & {
205
+ .use-var(background, dark-button-default-disabled-background);
206
+ .use-var(color, dark-button-default-disabled-text-color);
207
+ }
208
+ }
209
+ &-active {
210
+ @{arco-dark-mode-selector} & {
211
+ .use-var(background, dark-button-default-clicked-background);
212
+ }
213
+ }
214
+ }
215
+ &-type-default {
216
+ @{arco-dark-mode-selector} & {
217
+ .set-loading-color-var(dark-button-default-text-color);
218
+ }
219
+ }
220
+ &&-type-ghost {
221
+ @{arco-dark-mode-selector} & {
222
+ .use-var(color, dark-button-ghost-text-color);
223
+ }
224
+ &-disabled {
225
+ @{arco-dark-mode-selector} & {
226
+ .use-var(color, dark-button-ghost-disabled-text-color);
227
+ }
228
+ }
229
+ &-active {
230
+ @{arco-dark-mode-selector} & {
231
+ .use-var(background, dark-button-ghost-clicked-background);
232
+ }
233
+ }
234
+ }
235
+ &-type-ghost {
236
+ @{arco-dark-mode-selector} & {
237
+ .set-loading-color-var(dark-button-ghost-text-color);
238
+ }
239
+ }
240
+ }
241
+ }
242
+ /********************* End *************************/
@@ -1,3 +1,499 @@
1
+ /**
2
+ * @type mixin-var
3
+ * @name GeneralMixinVars
4
+ * @name_en General Mixin
5
+ */
6
+ /**
7
+ * 根据base-font-size,设置单位尺寸为rem
8
+ * @desc {en} set the unit size to rem based on base-font-size
9
+ * @param @property css属性名
10
+ * @param @property {en} css property
11
+ * @param @values css属性值,如果为复合属性,值可以用逗号分隔开
12
+ * @param @values {en} css property value, the values can be separated by commas when the style is composite
13
+ * @example
14
+ * ```
15
+ * @import '@arco-design/mobile-react/style/mixin.less';
16
+ *
17
+ * .demo {
18
+ * .rem(font-size, 14);
19
+ * .rem(padding, 16, 0);
20
+ * }
21
+ * ```
22
+ */
23
+ /**
24
+ * 根据base-font-size,设置常规模式和rtl模式下单位尺寸为rem
25
+ * @desc {en} set the unit size to rem for regular and RTL modes based on the base-font-size
26
+ * @param @property css属性名
27
+ * @param @property {en} css property
28
+ * @param @values css属性值,如果为复合属性,值可以用逗号分隔开
29
+ * @param @values {en} css property value, the values can be separated by commas when the style is composite
30
+ * @example
31
+ * ```
32
+ * @import '@arco-design/mobile-react/style/mixin.less';
33
+ *
34
+ * .demo {
35
+ * .rem-with-rtl(font-size, 14);
36
+ * .rem-with-rtl(padding, 16, 0);
37
+ * }
38
+ * ```
39
+ */
40
+ /**
41
+ * 当less变量use-dark-mode=1时,为原生暗黑模式媒体查询事件prefers-color-scheme:dark绑定对应css规则
42
+ * @desc {en} bind corresponding CSS rules to the native dark mode media query event prefers-color-scheme: dark when the less variable use-dark-mode=1.
43
+ * @param @rules 对应的暗黑模式规则
44
+ * @param @rules {en} Corresponding dark mode rules
45
+ * @example
46
+ * ```
47
+ * @import '@arco-design/mobile-react/style/mixin.less';
48
+ *
49
+ * .demo {
50
+ * .use-dark-mode-query({
51
+ * background-color: #000;
52
+ * });
53
+ * }
54
+ * ```
55
+ */
56
+ /**
57
+ * 为属性设置arco提供的token变量
58
+ * @desc {en} set the token variable provided by Arco for the attribute
59
+ * @param @property css属性名
60
+ * @param @property {en} css property
61
+ * @param @variables token变量名
62
+ * @param @variables {en} token variable name
63
+ * @param @preValues 复合属性css变量前缀
64
+ * @param @preValues {en} prefix for Compound Attribute CSS Variables
65
+ * @param @nextValues 复合属性css变量后缀
66
+ * @param @nextValues {en} suffix for Compound Attribute CSS Variables
67
+ * @example
68
+ * ```
69
+ * @import '@arco-design/mobile-react/style/mixin.less';
70
+ *
71
+ * .demo {
72
+ * .use-var(background, primary-color);
73
+ * .use-var(border, primary-color, 1px solid);
74
+ * .use-var(border, cell-border-width, '', solid black);
75
+ * }
76
+ * ```
77
+ */
78
+ /**
79
+ * 在常规模式和rtl模式下为属性设置arco提供的token变量
80
+ * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
81
+ * @param @property css属性名
82
+ * @param @property {en} css property
83
+ * @param @variables token变量名
84
+ * @param @variables {en} token variable name
85
+ * @param @preValues
86
+ * @param @preValues {en}
87
+ * @param @nextValues
88
+ * @param @nextValues {en}
89
+ * @example
90
+ * ```
91
+ * @import '@arco-design/mobile-react/style/mixin.less';
92
+ *
93
+ * .demo {
94
+ * .use-var-with-rtl(margin-left, button-icon-text-gutter);
95
+ * }
96
+ * ```
97
+ */
98
+ /**
99
+ * 0.5px的边框线
100
+ * @desc {en} a border line of 0.5 pixels
101
+ * @param @color 使用css变量为线设置颜色
102
+ * @param @color {en} set border-color by CSS variable
103
+ * @param @direction 边框方向,默认为全部方向
104
+ * @param @direction {en} border direction,default to all directions.
105
+ * @example
106
+ * ```
107
+ * @import '@arco-design/mobile-react/style/mixin.less';
108
+ *
109
+ * .demo {
110
+ * .hairline-var(line-color);
111
+ * .hairline-var(line-color, top);
112
+ * }
113
+ * ```
114
+ */
115
+ /**
116
+ * 字体加粗
117
+ * @desc {en} font bold
118
+ * @param @color 使用css变量设置加粗的字体颜色,默认继承文字当前颜色
119
+ * @param @color {en} set color by CSS variable
120
+ * @param @stroke 字体粗细,默认0.3px
121
+ * @param @stroke {en} font weight, default 0.3 pixel
122
+ * @example
123
+ * ```
124
+ * @import '@arco-design/mobile-react/style/mixin.less';
125
+ *
126
+ * .demo {
127
+ * .text-medium-var();
128
+ * .text-medium-var(primary-color, 0.5PX);
129
+ * }
130
+ * ```
131
+ */
132
+ /**
133
+ * 1px边框
134
+ * @desc {en} 1 pixel border
135
+ * @param @direction 边框方向
136
+ * @param @direction {en} border direction
137
+ * @param @borderColor 使用css变量设置边框颜色
138
+ * @param @borderColor {en} set border-color by CSS variable
139
+ * @param @borderRadius border-radius,默认为0
140
+ * @param @borderRadius {en} border-radius, default value is 0
141
+ * @param @borderWidth border-width,默认为1px
142
+ * @param @borderWidth {en} border-width, default value is 1 pixel
143
+ * @param @borderStyle border-style,默认为solid
144
+ * @param @borderStyle {en} border-style, default value is solid
145
+ * @example
146
+ * ```
147
+ * @import '@arco-design/mobile-react/style/mixin.less';
148
+ *
149
+ * .demo {
150
+ * .onepx-border-var(top, line-color);
151
+ * .onepx-border-var(all, line-color, 2, 2px, dashed);
152
+ * }
153
+ * ```
154
+ */
155
+ /**
156
+ * 元素右下0.5px边框
157
+ * @desc {en} 0.5px border on bottom right
158
+ * @param @color 使用css变量设置边框颜色
159
+ * @param @color {en} set border-color by CSS variable
160
+ * @example
161
+ * ```
162
+ * @import '@arco-design/mobile-react/style/mixin.less';
163
+ *
164
+ * .demo {
165
+ * .hairline-bottom-right-var(line-color);
166
+ * }
167
+ * ```
168
+ */
169
+ /**
170
+ * 元素左上0.5px边框
171
+ * @desc {en} 0.5px border on top left
172
+ * @param @color 使用css变量设置边框颜色
173
+ * @param @color {en} set border-color by CSS variable
174
+ * @example
175
+ * ```
176
+ * @import '@arco-design/mobile-react/style/mixin.less';
177
+ *
178
+ * .demo {
179
+ * .hairline-top-left-var(line-color);
180
+ * }
181
+ * ```
182
+ */
183
+ /**
184
+ * 设置Loading组件颜色
185
+ * @desc {en} set Loading component color
186
+ * @param @color 使用css变量设置颜色
187
+ * @param @color {en} set color by CSS variable
188
+ * @example
189
+ * ```
190
+ * @import '@arco-design/mobile-react/style/mixin.less';
191
+ *
192
+ * .demo {
193
+ * .set-loading-color-var(primary-color);
194
+ * }
195
+ * ```
196
+ */
197
+ /**
198
+ * 设置最小字号
199
+ * @desc {en} set minimum font-size
200
+ * @param @size 使用css变量设置最小字号
201
+ * @param @size {en} set minimum font-size by CSS variable
202
+ * @param @scale 设置最小字号下文字缩放比例,默认为0.9
203
+ * @param @scale {en} set minimum font-size down text scale,default value is 0.9
204
+ * @example
205
+ * ```
206
+ * @import '@arco-design/mobile-react/style/mixin.less';
207
+ *
208
+ * .demo {
209
+ * .set-font-size-var(badge-font-size);
210
+ * .set-font-size-var(badge-font-size, 0.5);
211
+ * }
212
+ * ```
213
+ */
214
+ /**
215
+ * 设置content-box盒模型下元素宽度
216
+ * @desc {en} set box width in content-box
217
+ * @param @property css属性名
218
+ * @param @property {en} css property
219
+ * @param @width 元素总宽度,包含内边距
220
+ * @param @width element width, include padding
221
+ * @param @padding-left 左侧内边距
222
+ * @param @padding-left {en} padding-left
223
+ * @param @padding-right 右侧内边距
224
+ * @param @padding-right {en} padding-right
225
+ * @example
226
+ * ```
227
+ * @import '@arco-design/mobile-react/style/mixin.less';
228
+ *
229
+ * .demo {
230
+ * .set-content-box-width-var(min-width, badge-text-width, badge-text-padding-left, badge-text-padding-right);
231
+ * }
232
+ * ```
233
+ */
234
+ /**
235
+ * 设置Steps组件颜色
236
+ * @desc {en} set Steps component color
237
+ * @param @color 使用css变量设置主颜色
238
+ * @param @color {en} set main step color by CSS variable
239
+ * @param @finish-color 使用css变量设置已完成步骤的颜色
240
+ * @param @finish-color {en} set finished step color by CSS variable
241
+ * @example
242
+ * ```
243
+ * @import '@arco-design/mobile-react/style/mixin.less';
244
+ *
245
+ * .demo {
246
+ * .set-steps-color-var(primary-color, lighter-primary-color);
247
+ * }
248
+ * ```
249
+ */
250
+ /**
251
+ * @type mixin
252
+ * @name GeneralMixin
253
+ * @name_en General Mixin
254
+ */
255
+ /**
256
+ * 文本溢出,支持1行/多行文本
257
+ * @desc {en} text overflow, support single line or multiple lines
258
+ * @param @lines 最大展示行数,默认为1行
259
+ * @param @lines {en} allows limiting of the contents of a block to the specified number of lines, default to 1
260
+ * @example
261
+ * ```
262
+ * @import '@arco-design/mobile-utils/style/mixin.less';
263
+ * .demo1{
264
+ * .text-overflow();
265
+ * }
266
+ * .demo2 {
267
+ * .text-overflow(2);
268
+ * }
269
+ * ```
270
+ */
271
+ /**
272
+ * 禁用用户选择文本
273
+ * @desc {en} disable user selection of text
274
+ * @example
275
+ * ```
276
+ * @import '@arco-design/mobile-utils/style/mixin.less';
277
+ *
278
+ * .demo {
279
+ * .noselect();
280
+ * }
281
+ */
282
+ /**
283
+ * 全屏布局
284
+ * @desc {en} full-screen layout
285
+ * @example
286
+ * ```
287
+ * @import '@arco-design/mobile-utils/style/mixin.less';
288
+ *
289
+ * .demo {
290
+ * .full-screen();
291
+ * }
292
+ */
293
+ /**
294
+ * 文本加粗,兼容安卓设备
295
+ * @desc {en} text-bold, compatible with Android devices
296
+ * @param @color 文本颜色,默认为currentColor
297
+ * @param @color {en} text color, default to currentColor
298
+ * @param @stroke 文本字符笔触宽度,默认为0.3PX
299
+ * @param @stroke {en} the width of strokes for text characters, default to 0.3PX
300
+ * @example
301
+ * ```
302
+ * @import '@arco-design/mobile-utils/style/mixin.less';
303
+ *
304
+ * .demo1 {
305
+ * .text-medium();
306
+ * }
307
+ * .demo2 {
308
+ * .text-medium(#fff, 0.5px);
309
+ * }
310
+ */
311
+ /**
312
+ * 消除文本加粗样式,兼容安卓设备
313
+ * @desc {en} remove text-bold, compatible with Android devices
314
+ * @example
315
+ * ```
316
+ * @import '@arco-design/mobile-utils/style/mixin.less';
317
+ *
318
+ * .demo {
319
+ * .remove-text-medium();
320
+ * }
321
+ */
322
+ /**
323
+ * 1px(物理像素)边框
324
+ * @desc {en} a border line of 1 pixel
325
+ * @param @direction 边框方向
326
+ * @param @direction {en} border direction
327
+ * @param @borderColor 边框颜色,默认inherit
328
+ * @param @borderColor {en} border color, default to inherit
329
+ * @param @borderRadius 边框圆角,默认0
330
+ * @param @borderRadius {en} border radius, default to 0
331
+ * @param @borderWidth 边框宽度,默认1px
332
+ * @param @borderWidth {en} border width, default to 1px
333
+ * @param @borderStyle 边框样式,默认solid
334
+ * @param @borderStyle {en} border style, default to solid
335
+ * @example
336
+ * ```
337
+ * @import '@arco-design/mobile-utils/style/mixin.less';
338
+ *
339
+ * .demo {
340
+ * .onepx-border();
341
+ * }
342
+ */
343
+ /**
344
+ * 移除0.5px的边框线
345
+ * @desc {en} remove border line of 0.5 pixels
346
+ * @param @direction 边框方向,默认为全部方向
347
+ * @param @direction {en} border direction,default to all directions.
348
+ * @example
349
+ * ```
350
+ * @import '@arco-design/mobile-utils/style/mixin.less';
351
+ *
352
+ * .demo {
353
+ * .remove-hairline(all);
354
+ * }
355
+ * ```
356
+ */
357
+ /**
358
+ * 元素右下 0.5px border
359
+ * @desc {en} 0.5px border on bottom right
360
+ * @param @color 边框颜色
361
+ * @param @color {en} border-color
362
+ * @example
363
+ * ```
364
+ * @import '@arco-design/mobile-utils/style/mixin.less';
365
+ *
366
+ * .demo {
367
+ * .hairline-bottom-right(#000);
368
+ * }
369
+ * ```
370
+ */
371
+ /**
372
+ * 元素左上 0.5px border
373
+ * @desc {en} 0.5px border on top left
374
+ * @param @color 边框颜色
375
+ * @param @color {en} border-color
376
+ * @example
377
+ * ```
378
+ * @import '@arco-design/mobile-utils/style/mixin.less';
379
+ *
380
+ * .demo {
381
+ * .hairline-top-left(#000);
382
+ * }
383
+ * ```
384
+ */
385
+ /**
386
+ * 输入涉及左右相关的属性名,获取方向相反的属性名,可用于处理rtl模式
387
+ * @desc {en} get the property name in the opposite direction of the input property name, which can be used to process rtl mode
388
+ * @param @origin-property css属性名
389
+ * @param @origin-property {en} css property
390
+ * @example
391
+ * ```
392
+ * @import '@arco-design/mobile-utils/style/mixin.less';
393
+ *
394
+ * .demo {
395
+ * @a: .prop-with-rtl(margin-left)[@property-name]; // @a 变量值为margin-right
396
+ * }
397
+ * ```
398
+ */
399
+ /**
400
+ * 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
401
+ * @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
402
+ * @param @property css属性名
403
+ * @param @property {en} css property
404
+ * @param @value css属性值
405
+ * @param @value {en} css property value
406
+ * @param @rules 自定义的复写规则,默认重置为initial
407
+ * @param @rules {en} customized rewrite rules, default to initial
408
+ * @example
409
+ * ```
410
+ * @import '@arco-design/mobile-utils/style/mixin.less';
411
+ *
412
+ * .demo {
413
+ * .set-prop-with-rtl(right, auto);
414
+ * }
415
+ * ```
416
+ */
417
+ /**
418
+ * 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
419
+ * @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
420
+ * @param @property css属性名
421
+ * @param @property {en} css property
422
+ * @param @value css属性值
423
+ * @param @value {en} css property value
424
+ * @example
425
+ * ```
426
+ * @import '@arco-design/mobile-utils/style/mixin.less';
427
+ *
428
+ * .demo {
429
+ * .set-value-with-rtl(text-align, left);
430
+ * }
431
+ * ```
432
+ */
433
+ /**
434
+ * 设置Loading组件颜色
435
+ * @desc {en} set Loading component color
436
+ * @param @color 颜色
437
+ * @param @color {en} color
438
+ * @example
439
+ * ```
440
+ * @import '@arco-design/mobile-utils/style/mixin.less';
441
+ *
442
+ * .demo {
443
+ * .set-loading-color(#000);
444
+ * }
445
+ * ```
446
+ */
447
+ /**
448
+ * 设置最小字号
449
+ * @desc {en} set minimum font-size
450
+ * @param @size 最小字号
451
+ * @param @size {en} minimum font-size
452
+ * @example
453
+ * ```
454
+ * @import '@arco-design/mobile-utils/style/mixin.less';
455
+ *
456
+ * .demo {
457
+ * .set-font-size(10px);
458
+ * }
459
+ * ```
460
+ */
461
+ /**
462
+ * 设置content-box盒模型下元素宽度
463
+ * @desc {en} set box width in content-box
464
+ * @param @property css属性名
465
+ * @param @property {en} css property
466
+ * @param @width 元素总宽度,包含内边距
467
+ * @param @width element width, include padding
468
+ * @param @padding-left 左侧内边距
469
+ * @param @padding-left {en} padding-left
470
+ * @param @padding-right 右侧内边距
471
+ * @param @padding-right {en} padding-right
472
+ * @example
473
+ * ```
474
+ * @import '@arco-design/mobile-utils/style/mixin.less';
475
+ *
476
+ * .demo {
477
+ * .set-content-box-width(min-width, 300px, 10px, 10px);
478
+ * }
479
+ * ```
480
+ */
481
+ /**
482
+ * 设置Steps组件当前步骤主要颜色,已完成步骤颜色自动计算为当前步骤颜色透明度10%
483
+ * @desc {en} set Steps component color
484
+ * @param @color 当前步骤背景、标题文本颜色
485
+ * @param @color {en} color of current step background and title text
486
+ * @param @finish-color 已完成步骤背景色
487
+ * @param @finish-color {en} color of finished step background
488
+ * @example
489
+ * ```
490
+ * @import '@arco-design/mobile-utils/style/mixin.less';
491
+ *
492
+ * .demo {
493
+ * .set-steps-color(#FFB400);
494
+ * }
495
+ * ```
496
+ */
1
497
  #demo-carousel .radius-num-indicator {
2
498
  display: inline-block;
3
499
  background: rgba(0, 0, 0, 0.3);
@@ -11,6 +507,7 @@
11
507
  #demo-carousel .vertical-text {
12
508
  font-size: 0.32rem;
13
509
  line-height: 0.44rem;
510
+ color: #1d2129 ;
14
511
  }
15
512
  #demo-carousel .arco-carousel-indicator.outside {
16
513
  padding-bottom: 0;
@@ -37,3 +534,20 @@
37
534
  #demo-carousel .change-index-btns button {
38
535
  width: 40%;
39
536
  }
537
+ /***************************************************
538
+ * *
539
+ * Arco Theme Style *
540
+ * *
541
+ ***************************************************/
542
+ .arco-theme-dark .process-bg-color-with-config,
543
+ .arco-theme-dark .process-custom-icon-bg-color-with-config {
544
+ color: rgba(255, 255, 255, 0.9) ;
545
+ }
546
+ .arco-theme-dark .wait-custom-icon-bg-color-with-config {
547
+ background: #2e2e30 ;
548
+ color: #929293 ;
549
+ }
550
+ .arco-theme-dark #demo-carousel .vertical-text {
551
+ color: #f6f6f6 ;
552
+ }
553
+ /********************* End *************************/