antd-mobile 5.32.0 → 5.32.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 (366) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +385 -303
  2. package/2x/bundle/antd-mobile.cjs.js +9 -9
  3. package/2x/bundle/antd-mobile.es.development.js +385 -303
  4. package/2x/bundle/antd-mobile.es.js +5266 -5213
  5. package/2x/bundle/antd-mobile.umd.development.js +385 -303
  6. package/2x/bundle/antd-mobile.umd.js +9 -9
  7. package/2x/bundle/style.css +43 -35
  8. package/2x/cjs/components/action-sheet/action-sheet.css +1 -1
  9. package/2x/cjs/components/badge/badge.css +1 -1
  10. package/2x/cjs/components/button/button.css +2 -2
  11. package/2x/cjs/components/calendar/calendar.js +5 -1
  12. package/2x/cjs/components/cascader/cascader.d.ts +2 -2
  13. package/2x/cjs/components/cascader/index.d.ts +4 -4
  14. package/2x/cjs/components/cascader/prompt.d.ts +1 -1
  15. package/2x/cjs/components/cascader-view/cascader-view.d.ts +2 -1
  16. package/2x/cjs/components/center-popup/center-popup.js +6 -5
  17. package/2x/cjs/components/check-list/check-list-item.d.ts +2 -1
  18. package/2x/cjs/components/check-list/check-list.d.ts +4 -3
  19. package/2x/cjs/components/check-list/context.d.ts +4 -3
  20. package/2x/cjs/components/check-list/index.d.ts +1 -1
  21. package/2x/cjs/components/checkbox/checkbox.css +1 -1
  22. package/2x/cjs/components/collapse/collapse.js +27 -12
  23. package/2x/cjs/components/ellipsis/ellipsis.js +4 -5
  24. package/2x/cjs/components/error-block/create-error-block.js +4 -4
  25. package/2x/cjs/components/error-block/error-block.css +1 -1
  26. package/2x/cjs/components/floating-panel/floating-panel.js +8 -7
  27. package/2x/cjs/components/footer/footer.css +1 -1
  28. package/2x/cjs/components/form/form-item.d.ts +1 -1
  29. package/2x/cjs/components/form/form-item.js +6 -9
  30. package/2x/cjs/components/form/form.css +1 -1
  31. package/2x/cjs/components/form/index.css +1 -1
  32. package/2x/cjs/components/image-uploader/image-uploader.css +1 -1
  33. package/2x/cjs/components/image-viewer/image-viewer.css +1 -1
  34. package/2x/cjs/components/input/input.d.ts +2 -8
  35. package/2x/cjs/components/notice-bar/notice-bar.css +5 -5
  36. package/2x/cjs/components/number-keyboard/number-keyboard.css +2 -2
  37. package/2x/cjs/components/page-indicator/page-indicator.css +1 -1
  38. package/2x/cjs/components/passcode-input/passcode-input.css +1 -1
  39. package/2x/cjs/components/picker-view/wheel.js +61 -14
  40. package/2x/cjs/components/popover/popover-menu.css +2 -2
  41. package/2x/cjs/components/progress-bar/progress-bar.css +2 -2
  42. package/2x/cjs/components/progress-circle/progress-circle.css +1 -1
  43. package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
  44. package/2x/cjs/components/radio/radio.css +1 -1
  45. package/2x/cjs/components/rate/rate.css +3 -3
  46. package/2x/cjs/components/rate/rate.d.ts +1 -1
  47. package/2x/cjs/components/selector/selector.css +1 -1
  48. package/2x/cjs/components/steps/steps.css +3 -3
  49. package/2x/cjs/components/steps/steps.js +5 -5
  50. package/2x/cjs/components/swipe-action/swipe-action.d.ts +4 -3
  51. package/2x/cjs/components/tag/tag.js +1 -1
  52. package/2x/cjs/components/text-area/text-area.js +11 -2
  53. package/2x/cjs/components/toast/toast.css +2 -2
  54. package/2x/cjs/components/tree-select/tree-select.css +1 -1
  55. package/2x/cjs/components/water-mark/water-mark.js +1 -1
  56. package/2x/cjs/global/global.css +8 -0
  57. package/2x/cjs/global/theme-dark.css +3 -0
  58. package/2x/cjs/global/theme-default.css +4 -0
  59. package/2x/cjs/locales/base.d.ts +1 -1
  60. package/2x/cjs/locales/base.js +1 -1
  61. package/2x/cjs/locales/da-DK.d.ts +1 -1
  62. package/2x/cjs/locales/da-DK.js +1 -1
  63. package/2x/cjs/locales/en-US.d.ts +1 -1
  64. package/2x/cjs/locales/es-ES.d.ts +1 -1
  65. package/2x/cjs/locales/es-ES.js +1 -1
  66. package/2x/cjs/locales/fa-IR.d.ts +1 -1
  67. package/2x/cjs/locales/fa-IR.js +1 -1
  68. package/2x/cjs/locales/fr-FR.d.ts +1 -1
  69. package/2x/cjs/locales/fr-FR.js +1 -1
  70. package/2x/cjs/locales/id-ID.d.ts +1 -1
  71. package/2x/cjs/locales/id-ID.js +1 -1
  72. package/2x/cjs/locales/it-IT.d.ts +1 -1
  73. package/2x/cjs/locales/it-IT.js +1 -1
  74. package/2x/cjs/locales/ja-JP.d.ts +1 -1
  75. package/2x/cjs/locales/ja-JP.js +1 -1
  76. package/2x/cjs/locales/kk-KZ.d.ts +1 -1
  77. package/2x/cjs/locales/kk-KZ.js +1 -1
  78. package/2x/cjs/locales/ko-KR.d.ts +1 -1
  79. package/2x/cjs/locales/ko-KR.js +1 -1
  80. package/2x/cjs/locales/nb-NO.d.ts +1 -1
  81. package/2x/cjs/locales/nb-NO.js +1 -1
  82. package/2x/cjs/locales/nl-NL.d.ts +1 -1
  83. package/2x/cjs/locales/nl-NL.js +1 -1
  84. package/2x/cjs/locales/ru-RU.d.ts +1 -1
  85. package/2x/cjs/locales/ru-RU.js +1 -1
  86. package/2x/cjs/locales/zh-CN.d.ts +1 -1
  87. package/2x/cjs/locales/zh-CN.js +1 -1
  88. package/2x/cjs/locales/zh-HK.d.ts +1 -1
  89. package/2x/cjs/locales/zh-HK.js +1 -1
  90. package/2x/cjs/locales/zh-TW.d.ts +1 -1
  91. package/2x/cjs/locales/zh-TW.js +1 -1
  92. package/2x/cjs/utils/replace-message.d.ts +1 -0
  93. package/2x/cjs/utils/replace-message.js +13 -0
  94. package/2x/cjs/utils/use-lock-scroll.js +6 -2
  95. package/2x/es/components/action-sheet/action-sheet.css +1 -1
  96. package/2x/es/components/badge/badge.css +1 -1
  97. package/2x/es/components/button/button.css +2 -2
  98. package/2x/es/components/calendar/calendar.js +5 -1
  99. package/2x/es/components/cascader/cascader.d.ts +2 -2
  100. package/2x/es/components/cascader/index.d.ts +4 -4
  101. package/2x/es/components/cascader/prompt.d.ts +1 -1
  102. package/2x/es/components/cascader-view/cascader-view.d.ts +2 -1
  103. package/2x/es/components/center-popup/center-popup.js +6 -5
  104. package/2x/es/components/check-list/check-list-item.d.ts +2 -1
  105. package/2x/es/components/check-list/check-list.d.ts +4 -3
  106. package/2x/es/components/check-list/context.d.ts +4 -3
  107. package/2x/es/components/check-list/index.d.ts +1 -1
  108. package/2x/es/components/checkbox/checkbox.css +1 -1
  109. package/2x/es/components/collapse/collapse.js +27 -12
  110. package/2x/es/components/ellipsis/ellipsis.js +4 -5
  111. package/2x/es/components/error-block/create-error-block.js +4 -4
  112. package/2x/es/components/error-block/error-block.css +1 -1
  113. package/2x/es/components/floating-panel/floating-panel.js +8 -7
  114. package/2x/es/components/footer/footer.css +1 -1
  115. package/2x/es/components/form/form-item.d.ts +1 -1
  116. package/2x/es/components/form/form-item.js +6 -9
  117. package/2x/es/components/form/form.css +1 -1
  118. package/2x/es/components/form/index.css +1 -1
  119. package/2x/es/components/image-uploader/image-uploader.css +1 -1
  120. package/2x/es/components/image-viewer/image-viewer.css +1 -1
  121. package/2x/es/components/input/input.d.ts +2 -8
  122. package/2x/es/components/notice-bar/notice-bar.css +5 -5
  123. package/2x/es/components/number-keyboard/number-keyboard.css +2 -2
  124. package/2x/es/components/page-indicator/page-indicator.css +1 -1
  125. package/2x/es/components/passcode-input/passcode-input.css +1 -1
  126. package/2x/es/components/picker-view/wheel.js +61 -14
  127. package/2x/es/components/popover/popover-menu.css +2 -2
  128. package/2x/es/components/progress-bar/progress-bar.css +2 -2
  129. package/2x/es/components/progress-circle/progress-circle.css +1 -1
  130. package/2x/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
  131. package/2x/es/components/radio/radio.css +1 -1
  132. package/2x/es/components/rate/rate.css +3 -3
  133. package/2x/es/components/rate/rate.d.ts +1 -1
  134. package/2x/es/components/selector/selector.css +1 -1
  135. package/2x/es/components/steps/steps.css +3 -3
  136. package/2x/es/components/steps/steps.js +5 -5
  137. package/2x/es/components/swipe-action/swipe-action.d.ts +4 -3
  138. package/2x/es/components/tag/tag.js +1 -1
  139. package/2x/es/components/text-area/text-area.js +11 -2
  140. package/2x/es/components/toast/toast.css +2 -2
  141. package/2x/es/components/tree-select/tree-select.css +1 -1
  142. package/2x/es/components/water-mark/water-mark.js +1 -1
  143. package/2x/es/global/global.css +8 -0
  144. package/2x/es/global/theme-dark.css +3 -0
  145. package/2x/es/global/theme-default.css +4 -0
  146. package/2x/es/locales/base.d.ts +1 -1
  147. package/2x/es/locales/base.js +1 -1
  148. package/2x/es/locales/da-DK.d.ts +1 -1
  149. package/2x/es/locales/da-DK.js +1 -1
  150. package/2x/es/locales/en-US.d.ts +1 -1
  151. package/2x/es/locales/es-ES.d.ts +1 -1
  152. package/2x/es/locales/es-ES.js +1 -1
  153. package/2x/es/locales/fa-IR.d.ts +1 -1
  154. package/2x/es/locales/fa-IR.js +1 -1
  155. package/2x/es/locales/fr-FR.d.ts +1 -1
  156. package/2x/es/locales/fr-FR.js +1 -1
  157. package/2x/es/locales/id-ID.d.ts +1 -1
  158. package/2x/es/locales/id-ID.js +1 -1
  159. package/2x/es/locales/it-IT.d.ts +1 -1
  160. package/2x/es/locales/it-IT.js +1 -1
  161. package/2x/es/locales/ja-JP.d.ts +1 -1
  162. package/2x/es/locales/ja-JP.js +1 -1
  163. package/2x/es/locales/kk-KZ.d.ts +1 -1
  164. package/2x/es/locales/kk-KZ.js +1 -1
  165. package/2x/es/locales/ko-KR.d.ts +1 -1
  166. package/2x/es/locales/ko-KR.js +1 -1
  167. package/2x/es/locales/nb-NO.d.ts +1 -1
  168. package/2x/es/locales/nb-NO.js +1 -1
  169. package/2x/es/locales/nl-NL.d.ts +1 -1
  170. package/2x/es/locales/nl-NL.js +1 -1
  171. package/2x/es/locales/ru-RU.d.ts +1 -1
  172. package/2x/es/locales/ru-RU.js +1 -1
  173. package/2x/es/locales/zh-CN.d.ts +1 -1
  174. package/2x/es/locales/zh-CN.js +1 -1
  175. package/2x/es/locales/zh-HK.d.ts +1 -1
  176. package/2x/es/locales/zh-HK.js +1 -1
  177. package/2x/es/locales/zh-TW.d.ts +1 -1
  178. package/2x/es/locales/zh-TW.js +1 -1
  179. package/2x/es/utils/replace-message.d.ts +1 -0
  180. package/2x/es/utils/replace-message.js +7 -0
  181. package/2x/es/utils/use-lock-scroll.js +6 -2
  182. package/2x/package.json +1 -1
  183. package/bundle/antd-mobile.cjs.development.js +385 -303
  184. package/bundle/antd-mobile.cjs.js +9 -9
  185. package/bundle/antd-mobile.compatible.umd.js +1 -1
  186. package/bundle/antd-mobile.es.development.js +385 -303
  187. package/bundle/antd-mobile.es.js +5266 -5213
  188. package/bundle/antd-mobile.umd.development.js +385 -303
  189. package/bundle/antd-mobile.umd.js +9 -9
  190. package/bundle/style.css +1 -1
  191. package/cjs/components/action-sheet/action-sheet.css +1 -1
  192. package/cjs/components/badge/badge.css +1 -1
  193. package/cjs/components/button/button.css +2 -2
  194. package/cjs/components/calendar/calendar.js +5 -1
  195. package/cjs/components/cascader/cascader.d.ts +2 -2
  196. package/cjs/components/cascader/index.d.ts +4 -4
  197. package/cjs/components/cascader/prompt.d.ts +1 -1
  198. package/cjs/components/cascader-view/cascader-view.d.ts +2 -1
  199. package/cjs/components/center-popup/center-popup.js +6 -5
  200. package/cjs/components/check-list/check-list-item.d.ts +2 -1
  201. package/cjs/components/check-list/check-list.d.ts +4 -3
  202. package/cjs/components/check-list/context.d.ts +4 -3
  203. package/cjs/components/check-list/index.d.ts +1 -1
  204. package/cjs/components/checkbox/checkbox.css +1 -1
  205. package/cjs/components/collapse/collapse.js +27 -12
  206. package/cjs/components/ellipsis/ellipsis.js +4 -5
  207. package/cjs/components/error-block/create-error-block.js +4 -4
  208. package/cjs/components/error-block/error-block.css +1 -1
  209. package/cjs/components/floating-panel/floating-panel.js +8 -7
  210. package/cjs/components/footer/footer.css +1 -1
  211. package/cjs/components/form/form-item.d.ts +1 -1
  212. package/cjs/components/form/form-item.js +6 -9
  213. package/cjs/components/form/form.css +1 -1
  214. package/cjs/components/form/index.css +1 -1
  215. package/cjs/components/image-uploader/image-uploader.css +1 -1
  216. package/cjs/components/image-viewer/image-viewer.css +1 -1
  217. package/cjs/components/input/input.d.ts +2 -8
  218. package/cjs/components/notice-bar/notice-bar.css +5 -5
  219. package/cjs/components/number-keyboard/number-keyboard.css +2 -2
  220. package/cjs/components/page-indicator/page-indicator.css +1 -1
  221. package/cjs/components/passcode-input/passcode-input.css +1 -1
  222. package/cjs/components/picker-view/wheel.js +61 -14
  223. package/cjs/components/popover/popover-menu.css +2 -2
  224. package/cjs/components/progress-bar/progress-bar.css +2 -2
  225. package/cjs/components/progress-circle/progress-circle.css +1 -1
  226. package/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
  227. package/cjs/components/radio/radio.css +1 -1
  228. package/cjs/components/rate/rate.css +3 -3
  229. package/cjs/components/rate/rate.d.ts +1 -1
  230. package/cjs/components/selector/selector.css +1 -1
  231. package/cjs/components/steps/steps.css +3 -3
  232. package/cjs/components/steps/steps.js +5 -5
  233. package/cjs/components/swipe-action/swipe-action.d.ts +4 -3
  234. package/cjs/components/tag/tag.js +1 -1
  235. package/cjs/components/text-area/text-area.js +11 -2
  236. package/cjs/components/toast/toast.css +2 -2
  237. package/cjs/components/tree-select/tree-select.css +1 -1
  238. package/cjs/components/water-mark/water-mark.js +1 -1
  239. package/cjs/global/global.css +8 -0
  240. package/cjs/global/theme-dark.css +3 -0
  241. package/cjs/global/theme-default.css +4 -0
  242. package/cjs/locales/base.d.ts +1 -1
  243. package/cjs/locales/base.js +1 -1
  244. package/cjs/locales/da-DK.d.ts +1 -1
  245. package/cjs/locales/da-DK.js +1 -1
  246. package/cjs/locales/en-US.d.ts +1 -1
  247. package/cjs/locales/es-ES.d.ts +1 -1
  248. package/cjs/locales/es-ES.js +1 -1
  249. package/cjs/locales/fa-IR.d.ts +1 -1
  250. package/cjs/locales/fa-IR.js +1 -1
  251. package/cjs/locales/fr-FR.d.ts +1 -1
  252. package/cjs/locales/fr-FR.js +1 -1
  253. package/cjs/locales/id-ID.d.ts +1 -1
  254. package/cjs/locales/id-ID.js +1 -1
  255. package/cjs/locales/it-IT.d.ts +1 -1
  256. package/cjs/locales/it-IT.js +1 -1
  257. package/cjs/locales/ja-JP.d.ts +1 -1
  258. package/cjs/locales/ja-JP.js +1 -1
  259. package/cjs/locales/kk-KZ.d.ts +1 -1
  260. package/cjs/locales/kk-KZ.js +1 -1
  261. package/cjs/locales/ko-KR.d.ts +1 -1
  262. package/cjs/locales/ko-KR.js +1 -1
  263. package/cjs/locales/nb-NO.d.ts +1 -1
  264. package/cjs/locales/nb-NO.js +1 -1
  265. package/cjs/locales/nl-NL.d.ts +1 -1
  266. package/cjs/locales/nl-NL.js +1 -1
  267. package/cjs/locales/ru-RU.d.ts +1 -1
  268. package/cjs/locales/ru-RU.js +1 -1
  269. package/cjs/locales/zh-CN.d.ts +1 -1
  270. package/cjs/locales/zh-CN.js +1 -1
  271. package/cjs/locales/zh-HK.d.ts +1 -1
  272. package/cjs/locales/zh-HK.js +1 -1
  273. package/cjs/locales/zh-TW.d.ts +1 -1
  274. package/cjs/locales/zh-TW.js +1 -1
  275. package/cjs/utils/replace-message.d.ts +1 -0
  276. package/cjs/utils/replace-message.js +13 -0
  277. package/cjs/utils/use-lock-scroll.js +6 -2
  278. package/es/components/action-sheet/action-sheet.css +1 -1
  279. package/es/components/badge/badge.css +1 -1
  280. package/es/components/button/button.css +2 -2
  281. package/es/components/calendar/calendar.js +5 -1
  282. package/es/components/cascader/cascader.d.ts +2 -2
  283. package/es/components/cascader/index.d.ts +4 -4
  284. package/es/components/cascader/prompt.d.ts +1 -1
  285. package/es/components/cascader-view/cascader-view.d.ts +2 -1
  286. package/es/components/center-popup/center-popup.js +6 -5
  287. package/es/components/check-list/check-list-item.d.ts +2 -1
  288. package/es/components/check-list/check-list.d.ts +4 -3
  289. package/es/components/check-list/context.d.ts +4 -3
  290. package/es/components/check-list/index.d.ts +1 -1
  291. package/es/components/checkbox/checkbox.css +1 -1
  292. package/es/components/collapse/collapse.js +27 -12
  293. package/es/components/ellipsis/ellipsis.js +4 -5
  294. package/es/components/error-block/create-error-block.js +4 -4
  295. package/es/components/error-block/error-block.css +1 -1
  296. package/es/components/floating-panel/floating-panel.js +8 -7
  297. package/es/components/footer/footer.css +1 -1
  298. package/es/components/form/form-item.d.ts +1 -1
  299. package/es/components/form/form-item.js +6 -9
  300. package/es/components/form/form.css +1 -1
  301. package/es/components/form/index.css +1 -1
  302. package/es/components/image-uploader/image-uploader.css +1 -1
  303. package/es/components/image-viewer/image-viewer.css +1 -1
  304. package/es/components/input/input.d.ts +2 -8
  305. package/es/components/notice-bar/notice-bar.css +5 -5
  306. package/es/components/number-keyboard/number-keyboard.css +2 -2
  307. package/es/components/page-indicator/page-indicator.css +1 -1
  308. package/es/components/passcode-input/passcode-input.css +1 -1
  309. package/es/components/picker-view/wheel.js +61 -14
  310. package/es/components/popover/popover-menu.css +2 -2
  311. package/es/components/progress-bar/progress-bar.css +2 -2
  312. package/es/components/progress-circle/progress-circle.css +1 -1
  313. package/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
  314. package/es/components/radio/radio.css +1 -1
  315. package/es/components/rate/rate.css +3 -3
  316. package/es/components/rate/rate.d.ts +1 -1
  317. package/es/components/selector/selector.css +1 -1
  318. package/es/components/steps/steps.css +3 -3
  319. package/es/components/steps/steps.js +5 -5
  320. package/es/components/swipe-action/swipe-action.d.ts +4 -3
  321. package/es/components/tag/tag.js +1 -1
  322. package/es/components/text-area/text-area.js +11 -2
  323. package/es/components/toast/toast.css +2 -2
  324. package/es/components/tree-select/tree-select.css +1 -1
  325. package/es/components/water-mark/water-mark.js +1 -1
  326. package/es/global/global.css +8 -0
  327. package/es/global/theme-dark.css +3 -0
  328. package/es/global/theme-default.css +4 -0
  329. package/es/locales/base.d.ts +1 -1
  330. package/es/locales/base.js +1 -1
  331. package/es/locales/da-DK.d.ts +1 -1
  332. package/es/locales/da-DK.js +1 -1
  333. package/es/locales/en-US.d.ts +1 -1
  334. package/es/locales/es-ES.d.ts +1 -1
  335. package/es/locales/es-ES.js +1 -1
  336. package/es/locales/fa-IR.d.ts +1 -1
  337. package/es/locales/fa-IR.js +1 -1
  338. package/es/locales/fr-FR.d.ts +1 -1
  339. package/es/locales/fr-FR.js +1 -1
  340. package/es/locales/id-ID.d.ts +1 -1
  341. package/es/locales/id-ID.js +1 -1
  342. package/es/locales/it-IT.d.ts +1 -1
  343. package/es/locales/it-IT.js +1 -1
  344. package/es/locales/ja-JP.d.ts +1 -1
  345. package/es/locales/ja-JP.js +1 -1
  346. package/es/locales/kk-KZ.d.ts +1 -1
  347. package/es/locales/kk-KZ.js +1 -1
  348. package/es/locales/ko-KR.d.ts +1 -1
  349. package/es/locales/ko-KR.js +1 -1
  350. package/es/locales/nb-NO.d.ts +1 -1
  351. package/es/locales/nb-NO.js +1 -1
  352. package/es/locales/nl-NL.d.ts +1 -1
  353. package/es/locales/nl-NL.js +1 -1
  354. package/es/locales/ru-RU.d.ts +1 -1
  355. package/es/locales/ru-RU.js +1 -1
  356. package/es/locales/zh-CN.d.ts +1 -1
  357. package/es/locales/zh-CN.js +1 -1
  358. package/es/locales/zh-HK.d.ts +1 -1
  359. package/es/locales/zh-HK.js +1 -1
  360. package/es/locales/zh-TW.d.ts +1 -1
  361. package/es/locales/zh-TW.js +1 -1
  362. package/es/utils/replace-message.d.ts +1 -0
  363. package/es/utils/replace-message.js +7 -0
  364. package/es/utils/use-lock-scroll.js +6 -2
  365. package/package.json +1 -1
  366. package/umd/antd-mobile.js +1 -1
@@ -16,12 +16,16 @@
16
16
  --adm-color-success: #00b578;
17
17
  --adm-color-warning: #ff8f1f;
18
18
  --adm-color-danger: #ff3141;
19
+ --adm-color-yellow: #ff9f18;
20
+ --adm-color-orange: #ff6430;
21
+ --adm-color-wathet: #e7f1ff;
19
22
  --adm-color-text: #333333;
20
23
  --adm-color-text-secondary: #666666;
21
24
  --adm-color-weak: #999999;
22
25
  --adm-color-light: #cccccc;
23
26
  --adm-color-border: #eeeeee;
24
27
  --adm-color-background: #ffffff;
28
+ --adm-color-highlight: var(--adm-color-danger);
25
29
  --adm-color-white: #ffffff;
26
30
  --adm-color-box: #f5f5f5;
27
31
  --adm-color-text-light-solid: var(--adm-color-white);
@@ -37,6 +41,9 @@ html[data-prefers-color-scheme=dark] {
37
41
  --adm-color-success: #34b368;
38
42
  --adm-color-warning: #ffa930;
39
43
  --adm-color-danger: #ff4a58;
44
+ --adm-color-yellow: #ffa930;
45
+ --adm-color-orange: #e65a2b;
46
+ --adm-color-wathet: #0d2543;
40
47
  --adm-color-text: #e6e6e6;
41
48
  --adm-color-text-secondary: #b3b3b3;
42
49
  --adm-color-weak: #808080;
@@ -55,6 +62,7 @@ body {
55
62
  color: var(--adm-color-text);
56
63
  font-size: var(--adm-font-size-main);
57
64
  font-family: var(--adm-font-family);
65
+ background-color: var(--adm-color-background);
58
66
  }
59
67
 
60
68
  a,
@@ -128,7 +136,7 @@ div.adm-px-tester {
128
136
  }
129
137
 
130
138
  .adm-action-sheet-button-item:active {
131
- background-color: #eee;
139
+ background-color: var(--adm-color-border);
132
140
  }
133
141
 
134
142
  .adm-action-sheet-button-item-disabled {
@@ -340,7 +348,7 @@ div.adm-px-tester {
340
348
  background-color: var(--color);
341
349
  --right: 0;
342
350
  --top: 0;
343
- --color: var(--adm-badge-color, #ff411c);
351
+ --color: var(--adm-badge-color, var(--adm-color-highlight));
344
352
  }
345
353
 
346
354
  .adm-badge-content {
@@ -411,8 +419,8 @@ div.adm-px-tester {
411
419
  transform: translate(calc(var(--border-width) * -1),calc(var(--border-width) * -1));
412
420
  width: 100%;
413
421
  height: 100%;
414
- background-color: #000;
415
- border: var(--border-width) var(--border-style) #000;
422
+ background-color: var(--adm-color-text-dark-solid);
423
+ border: var(--border-width) var(--border-style) var(--adm-color-text-dark-solid);
416
424
  border-radius: var(--border-radius);
417
425
  opacity: 0;
418
426
  content: " ";
@@ -1447,7 +1455,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
1447
1455
  }
1448
1456
 
1449
1457
  .adm-checkbox.adm-checkbox-disabled .adm-checkbox-icon.adm-checkbox-icon {
1450
- color: #b7b7b7;
1458
+ color: var(--adm-color-light);
1451
1459
  border-color: var(--adm-color-light);
1452
1460
  background-color: var(--adm-color-fill-content);
1453
1461
  }
@@ -1766,7 +1774,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
1766
1774
 
1767
1775
  .adm-error-block-description {
1768
1776
  font-size: var(--adm-font-size-4);
1769
- color: #999;
1777
+ color: var(--adm-color-weak);
1770
1778
  line-height: 1.4;
1771
1779
  margin-top: 24px;
1772
1780
  }
@@ -1946,7 +1954,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
1946
1954
 
1947
1955
  .adm-form-list-operation {
1948
1956
  text-align: center;
1949
- color: #1677ff;
1957
+ color: var(--adm-color-primary);
1950
1958
  }
1951
1959
 
1952
1960
  .adm-form-item+.adm-form-item {
@@ -2113,7 +2121,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
2113
2121
  }
2114
2122
 
2115
2123
  .adm-popover-menu {
2116
- --border-color: #eeeeee;
2124
+ --border-color: var(--adm-color-border);
2117
2125
  }
2118
2126
 
2119
2127
  .adm-popover-menu.adm-popover {
@@ -2172,7 +2180,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
2172
2180
  }
2173
2181
 
2174
2182
  .adm-popover.adm-popover-dark.adm-popover-menu {
2175
- --border-color: #333333;
2183
+ --border-color: var(--adm-color-text);
2176
2184
  --background: rgba(0, 0, 0, .9);
2177
2185
  }
2178
2186
 
@@ -2265,7 +2273,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
2265
2273
  left: 50%;
2266
2274
  top: 24px;
2267
2275
  transform: translate(-50%);
2268
- color: #e6e6e6;
2276
+ color: var(--adm-color-border);
2269
2277
  font-size: var(--adm-font-size-6);
2270
2278
  }
2271
2279
 
@@ -2451,7 +2459,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
2451
2459
  }
2452
2460
 
2453
2461
  .adm-image-uploader-upload-button-wrap .adm-image-uploader-upload-button-icon {
2454
- color: #999;
2462
+ color: var(--adm-color-weak);
2455
2463
  font-size: 64px;
2456
2464
  }
2457
2465
 
@@ -2928,8 +2936,8 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
2928
2936
  }
2929
2937
 
2930
2938
  .adm-notice-bar {
2931
- --background-color: #ababab;
2932
- --border-color: #999999;
2939
+ --background-color: var(--adm-color-weak);
2940
+ --border-color: var(--adm-color-weak);
2933
2941
  --text-color: var(--adm-color-text-light-solid);
2934
2942
  --font-size: var(--adm-font-size-7);
2935
2943
  --icon-font-size: var(--adm-font-size-10);
@@ -2955,11 +2963,11 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
2955
2963
  .adm-notice-bar.adm-notice-bar-alert {
2956
2964
  --background-color: #fff9ed;
2957
2965
  --border-color: #fff3e9;
2958
- --text-color: #ff6010;
2966
+ --text-color: var(--adm-color-orange);
2959
2967
  }
2960
2968
 
2961
2969
  .adm-notice-bar.adm-notice-bar-error {
2962
- --background-color: #ff3b30;
2970
+ --background-color: var(--adm-color-danger);
2963
2971
  --border-color: #d9281e;
2964
2972
  --text-color: #ffffff;
2965
2973
  }
@@ -2967,7 +2975,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
2967
2975
  .adm-notice-bar.adm-notice-bar-info {
2968
2976
  --background-color: #d0e4ff;
2969
2977
  --border-color: #bcd8ff;
2970
- --text-color: #1677ff;
2978
+ --text-color: var(--adm-color-primary);
2971
2979
  }
2972
2980
 
2973
2981
  .adm-notice-bar .adm-notice-bar-left {
@@ -3112,9 +3120,9 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
3112
3120
  left: 50%;
3113
3121
  width: 100%;
3114
3122
  height: 100%;
3115
- background-color: #000;
3123
+ background-color: var(--adm-color-text-dark-solid);
3116
3124
  border: inherit;
3117
- border-color: #000;
3125
+ border-color: var(--adm-color-text-dark-solid);
3118
3126
  border-radius: inherit;
3119
3127
  transform: translate(-50%,-50%);
3120
3128
  opacity: 0;
@@ -3156,7 +3164,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
3156
3164
  .adm-page-indicator {
3157
3165
  display: flex;
3158
3166
  width: auto;
3159
- --dot-color: #dddddd;
3167
+ --dot-color: var(--adm-color-light);
3160
3168
  --active-dot-color: var(--adm-color-primary);
3161
3169
  --dot-size: 6px;
3162
3170
  --active-dot-size: 26px;
@@ -3217,7 +3225,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
3217
3225
  --cell-size: 80px;
3218
3226
  --cell-gap: 12px;
3219
3227
  --dot-size: 20px;
3220
- --border-color: #e5e5e5;
3228
+ --border-color: var(--adm-color-border);
3221
3229
  --border-radius: 16px;
3222
3230
  }
3223
3231
 
@@ -3362,7 +3370,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
3362
3370
 
3363
3371
  .adm-progress-bar {
3364
3372
  --track-width: var(--adm-progress-bar-track-width, 16px);
3365
- --track-color: var(--adm-progress-bar-track-color, #e5e5e5);
3373
+ --track-color: var(--adm-progress-bar-track-color, var(--adm-color-border));
3366
3374
  --fill-color: var(--adm-progress-bar-fill-color, var(--adm-color-primary));
3367
3375
  --text-width: var(--adm-progress-bar-text-width, 80px);
3368
3376
  display: flex;
@@ -3386,7 +3394,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
3386
3394
  flex: none;
3387
3395
  width: calc(var(--text-width) + 16px);
3388
3396
  padding-left: 16px;
3389
- color: #999;
3397
+ color: var(--adm-color-weak);
3390
3398
  }
3391
3399
 
3392
3400
  .adm-progress-bar-rounded .adm-progress-bar-trail,
@@ -3397,7 +3405,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
3397
3405
  .adm-progress-circle {
3398
3406
  --track-width: var(--adm-progress-circle-track-width, 6px);
3399
3407
  --size: var(--adm-progress-circle-size, 100px);
3400
- --track-color: var(--adm-progress-circle-track-color, #e5e5e5);
3408
+ --track-color: var(--adm-progress-circle-track-color, var(--adm-color-border));
3401
3409
  --fill-color: var(--adm-progress-circle-fill-color, var(--adm-color-primary));
3402
3410
  --percent: 0;
3403
3411
  --pi: 3.14159265;
@@ -3516,7 +3524,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
3516
3524
  }
3517
3525
 
3518
3526
  .adm-radio.adm-radio-disabled .adm-radio-icon {
3519
- color: #b7b7b7;
3527
+ color: var(--adm-color-light);
3520
3528
  border-color: var(--adm-color-light);
3521
3529
  background-color: var(--adm-color-fill-content);
3522
3530
  }
@@ -3533,9 +3541,9 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
3533
3541
 
3534
3542
  .adm-rate {
3535
3543
  --star-size: 48px;
3536
- --active-color: #ffd21e;
3537
- --inactive-color: #e5e5e5;
3538
- --inactive-color-half: #dbdbdb;
3544
+ --active-color: var(--adm-color-yellow);
3545
+ --inactive-color: var(--adm-color-border);
3546
+ --inactive-color-half: var(--adm-color-border);
3539
3547
  display: inline-flex;
3540
3548
  touch-action: pan-y;
3541
3549
  -webkit-user-select: none;
@@ -3828,7 +3836,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
3828
3836
 
3829
3837
  .adm-selector {
3830
3838
  --color: var(--adm-color-fill-content);
3831
- --checked-color: #e7f1ff;
3839
+ --checked-color: var(--adm-color-wathet);
3832
3840
  --text-color: var(--adm-color-text);
3833
3841
  --checked-text-color: var(--adm-color-primary);
3834
3842
  --border: none;
@@ -4200,8 +4208,8 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
4200
4208
  }
4201
4209
 
4202
4210
  .adm-step {
4203
- --line-to-next-color: #e5e5e5;
4204
- --icon-color: #e5e5e5;
4211
+ --line-to-next-color: var(--adm-color-border);
4212
+ --icon-color: var(--adm-color-border);
4205
4213
  position: relative;
4206
4214
  z-index: 0;
4207
4215
  }
@@ -4236,7 +4244,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
4236
4244
  }
4237
4245
 
4238
4246
  .adm-step-status-wait {
4239
- --icon-color: #e5e5e5;
4247
+ --icon-color: var(--adm-color-border);
4240
4248
  }
4241
4249
 
4242
4250
  .adm-step-status-wait .adm-step-title {
@@ -4784,14 +4792,14 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
4784
4792
  left: 0;
4785
4793
  width: 100%;
4786
4794
  height: 100%;
4795
+ text-align: center;
4787
4796
  }
4788
4797
 
4789
4798
  .adm-toast-mask .adm-toast-main {
4790
4799
  display: inline-block;
4791
4800
  position: relative;
4792
4801
  top: 50%;
4793
- left: 50%;
4794
- transform: translate(-50%,-50%);
4802
+ transform: translateY(-50%);
4795
4803
  width: auto;
4796
4804
  max-width: 408px;
4797
4805
  max-height: 70%;
@@ -4850,7 +4858,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
4850
4858
 
4851
4859
  .adm-tree-select-column:nth-child(2),
4852
4860
  .adm-tree-select-multiple-column:nth-child(2) {
4853
- background-color: #fafafa;
4861
+ background-color: var(--adm-color-box);
4854
4862
  }
4855
4863
 
4856
4864
  .adm-tree-select-item,
@@ -5068,7 +5076,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
5068
5076
 
5069
5077
  .adm-footer-chip-link {
5070
5078
  cursor: pointer;
5071
- background-color: #e7f1ff;
5079
+ background-color: var(--adm-color-wathet);
5072
5080
  color: var(--adm-color-primary);
5073
5081
  }
5074
5082
 
@@ -33,7 +33,7 @@
33
33
  }
34
34
 
35
35
  .adm-action-sheet-button-item:active {
36
- background-color: #eeeeee;
36
+ background-color: var(--adm-color-border);
37
37
  }
38
38
 
39
39
  .adm-action-sheet-button-item-disabled {
@@ -11,7 +11,7 @@
11
11
  background-color: var(--color);
12
12
  --right: 0;
13
13
  --top: 0;
14
- --color: var(--adm-badge-color, #ff411c);
14
+ --color: var(--adm-badge-color, var(--adm-color-highlight));
15
15
  }
16
16
 
17
17
  .adm-badge-content {
@@ -36,8 +36,8 @@
36
36
  transform: translate(calc(var(--border-width) * -1), calc(var(--border-width) * -1));
37
37
  width: 100%;
38
38
  height: 100%;
39
- background-color: #000;
40
- border: var(--border-width) var(--border-style) #000;
39
+ background-color: var(--adm-color-text-dark-solid);
40
+ border: var(--border-width) var(--border-style) var(--adm-color-text-dark-solid);
41
41
  border-radius: var(--border-radius);
42
42
  opacity: 0;
43
43
  content: ' ';
@@ -15,6 +15,7 @@ var _configProvider = require("../config-provider");
15
15
  var _isoWeek = _interopRequireDefault(require("dayjs/plugin/isoWeek"));
16
16
  var _ahooks = require("ahooks");
17
17
  var _usePropsValue = require("../../utils/use-props-value");
18
+ var _replaceMessage = require("../../utils/replace-message");
18
19
  var _convert = require("./convert");
19
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
21
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -106,7 +107,10 @@ const Calendar = (0, _react.forwardRef)((p, ref) => {
106
107
  }
107
108
  }, props.prevMonthButton), _react.default.createElement("div", {
108
109
  className: `${classPrefix}-title`
109
- }, locale.Calendar.renderYearAndMonth(current.year(), current.month() + 1)), _react.default.createElement("a", {
110
+ }, (0, _replaceMessage.replaceMessage)(locale.Calendar.yearAndMonth, {
111
+ year: current.year().toString(),
112
+ month: (current.month() + 1).toString()
113
+ })), _react.default.createElement("a", {
110
114
  className: (0, _classnames.default)(`${classPrefix}-arrow-button`, `${classPrefix}-arrow-button-right`, `${classPrefix}-arrow-button-right-month`),
111
115
  onClick: () => {
112
116
  handlePageChange('add', 1, 'month');
@@ -28,8 +28,8 @@ export declare type CascaderProps = {
28
28
  } & Pick<PopupProps, 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'stopPropagation' | 'destroyOnClose' | 'forceRender'> & NativeProps;
29
29
  export declare const Cascader: React.ForwardRefExoticComponent<{
30
30
  options: CascaderOption[];
31
- value?: string[] | undefined;
32
- defaultValue?: string[] | undefined;
31
+ value?: import("../check-list").CheckListValue[] | undefined;
32
+ defaultValue?: import("../check-list").CheckListValue[] | undefined;
33
33
  placeholder?: string | undefined;
34
34
  onSelect?: ((value: CascaderValue[], extend: CascaderValueExtend) => void) | undefined;
35
35
  onConfirm?: ((value: CascaderValue[], extend: CascaderValueExtend) => void) | undefined;
@@ -4,11 +4,11 @@ export type { CascaderProps, CascaderRef, CascaderActions } from './cascader';
4
4
  export type { CascaderValue, CascaderValueExtend, CascaderOption, } from '../cascader-view';
5
5
  declare const _default: import("react").ForwardRefExoticComponent<{
6
6
  options: import("../cascader-view").CascaderOption[];
7
- value?: string[] | undefined;
8
- defaultValue?: string[] | undefined;
7
+ value?: import("../check-list").CheckListValue[] | undefined;
8
+ defaultValue?: import("../check-list").CheckListValue[] | undefined;
9
9
  placeholder?: string | undefined;
10
- onSelect?: ((value: string[], extend: import("../cascader-view").CascaderValueExtend) => void) | undefined;
11
- onConfirm?: ((value: string[], extend: import("../cascader-view").CascaderValueExtend) => void) | undefined;
10
+ onSelect?: ((value: import("../check-list").CheckListValue[], extend: import("../cascader-view").CascaderValueExtend) => void) | undefined;
11
+ onConfirm?: ((value: import("../check-list").CheckListValue[], extend: import("../cascader-view").CascaderValueExtend) => void) | undefined;
12
12
  onCancel?: (() => void) | undefined;
13
13
  onClose?: (() => void) | undefined;
14
14
  visible?: boolean | undefined;
@@ -1,2 +1,2 @@
1
1
  import type { CascaderProps } from './index';
2
- export declare function prompt(props: Omit<CascaderProps, 'value' | 'visible' | 'children'>): Promise<string[] | null>;
2
+ export declare function prompt(props: Omit<CascaderProps, 'value' | 'visible' | 'children'>): Promise<import("../check-list").CheckListValue[] | null>;
@@ -1,6 +1,7 @@
1
1
  import { FC, ReactNode } from 'react';
2
+ import { CheckListValue } from '../check-list';
2
3
  import { NativeProps } from '../../utils/native-props';
3
- export declare type CascaderValue = string;
4
+ export declare type CascaderValue = CheckListValue;
4
5
  export declare type CascaderOption = {
5
6
  label: string;
6
7
  value: string;
@@ -21,6 +21,7 @@ var _popupBaseProps = require("../popup/popup-base-props");
21
21
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
22
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
23
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
+ const classPrefix = 'adm-center-popup';
24
25
  const defaultProps = Object.assign(Object.assign({}, _popupBaseProps.defaultPopupBaseProps), {
25
26
  getContainer: null
26
27
  });
@@ -57,11 +58,11 @@ const CenterPopup = p => {
57
58
  (0, _useLockScroll.useLockScroll)(ref, props.disableBodyScroll && active);
58
59
  const maskVisible = (0, _useInnerVisible.useInnerVisible)(active && props.visible);
59
60
  const body = _react.default.createElement("div", {
60
- className: (0, _classnames.default)('adm-center-popup-body', props.bodyClassName),
61
+ className: (0, _classnames.default)(`${classPrefix}-body`, props.bodyClassName),
61
62
  style: props.bodyStyle
62
63
  }, props.children);
63
64
  const node = (0, _withStopPropagation.withStopPropagation)(props.stopPropagation, (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
64
- className: 'adm-center-popup',
65
+ className: classPrefix,
65
66
  style: {
66
67
  display: active ? undefined : 'none',
67
68
  pointerEvents: active ? undefined : 'none'
@@ -78,18 +79,18 @@ const CenterPopup = p => {
78
79
  }
79
80
  },
80
81
  style: props.maskStyle,
81
- className: (0, _classnames.default)('adm-center-popup-mask', props.maskClassName),
82
+ className: (0, _classnames.default)(`${classPrefix}-mask`, props.maskClassName),
82
83
  disableBodyScroll: false,
83
84
  stopPropagation: props.stopPropagation
84
85
  }), _react.default.createElement("div", {
85
- className: 'adm-center-popup-wrap',
86
+ className: `${classPrefix}-wrap`,
86
87
  role: props.role,
87
88
  "aria-label": props['aria-label']
88
89
  }, _react.default.createElement(_web.animated.div, {
89
90
  style: style,
90
91
  ref: ref
91
92
  }, props.showCloseButton && _react.default.createElement("a", {
92
- className: (0, _classnames.default)('adm-center-popup-close', 'adm-plain-anchor'),
93
+ className: (0, _classnames.default)(`${classPrefix}-close`, 'adm-plain-anchor'),
93
94
  onClick: () => {
94
95
  var _a;
95
96
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -1,8 +1,9 @@
1
1
  import { FC } from 'react';
2
2
  import { ListItemProps } from '../list';
3
3
  import { NativeProps } from '../../utils/native-props';
4
+ import { CheckListValue } from '.';
4
5
  export declare type CheckListItemProps = Pick<ListItemProps, 'title' | 'children' | 'description' | 'prefix' | 'disabled' | 'onClick' | 'style'> & {
5
- value: string;
6
+ value: CheckListValue;
6
7
  readOnly?: boolean;
7
8
  } & NativeProps;
8
9
  export declare const CheckListItem: FC<CheckListItemProps>;
@@ -1,10 +1,11 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  import { ListProps } from '../list';
4
+ export declare type CheckListValue = string | number;
4
5
  export declare type CheckListProps = Pick<ListProps, 'mode' | 'style'> & {
5
- defaultValue?: string[];
6
- value?: string[];
7
- onChange?: (val: string[]) => void;
6
+ defaultValue?: CheckListValue[];
7
+ value?: CheckListValue[];
8
+ onChange?: (val: CheckListValue[]) => void;
8
9
  multiple?: boolean;
9
10
  activeIcon?: ReactNode;
10
11
  extra?: (active: boolean) => ReactNode;
@@ -1,8 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
+ import { CheckListValue } from '.';
2
3
  export declare const CheckListContext: import("react").Context<{
3
- value: string[];
4
- check: (val: string) => void;
5
- uncheck: (val: string) => void;
4
+ value: CheckListValue[];
5
+ check: (val: CheckListValue) => void;
6
+ uncheck: (val: CheckListValue) => void;
6
7
  activeIcon?: ReactNode;
7
8
  extra?: ((active: boolean) => ReactNode) | undefined;
8
9
  disabled?: boolean | undefined;
@@ -1,5 +1,5 @@
1
1
  import './check-list.less';
2
- export type { CheckListProps } from './check-list';
2
+ export type { CheckListValue, CheckListProps } from './check-list';
3
3
  export type { CheckListItemProps } from './check-list-item';
4
4
  declare const _default: import("react").FC<import("./check-list").CheckListProps> & {
5
5
  Item: import("react").FC<import("./check-list-item").CheckListItemProps>;
@@ -47,7 +47,7 @@
47
47
  }
48
48
 
49
49
  .adm-checkbox.adm-checkbox-disabled .adm-checkbox-icon.adm-checkbox-icon {
50
- color: #b7b7b7;
50
+ color: var(--adm-color-light);
51
51
  border-color: var(--adm-color-light);
52
52
  background-color: var(--adm-color-fill-content);
53
53
  }
@@ -88,7 +88,6 @@ const CollapsePanelContent = props => {
88
88
  }, _react.default.createElement(_list.default.Item, null, shouldRender && props.children)));
89
89
  };
90
90
  const Collapse = props => {
91
- var _a;
92
91
  const panels = [];
93
92
  (0, _traverseReactNode.traverseReactNode)(props.children, child => {
94
93
  if (!(0, _react.isValidElement)(child)) return;
@@ -96,18 +95,34 @@ const Collapse = props => {
96
95
  if (typeof key !== 'string') return;
97
96
  panels.push(child);
98
97
  });
99
- const [activeKey, setActiveKey] = (0, _usePropsValue.usePropsValue)(props.accordion ? {
100
- value: props.activeKey === undefined ? undefined : props.activeKey === null ? [] : [props.activeKey],
101
- defaultValue: props.defaultActiveKey === undefined || props.defaultActiveKey === null ? [] : [props.defaultActiveKey],
102
- onChange: v => {
103
- var _a, _b;
104
- (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, (_b = v[0]) !== null && _b !== void 0 ? _b : null);
98
+ const handlePropsValue = () => {
99
+ var _a;
100
+ if (!props.accordion) {
101
+ return {
102
+ value: props.activeKey,
103
+ defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
104
+ onChange: props.onChange
105
+ };
105
106
  }
106
- } : {
107
- value: props.activeKey,
108
- defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
109
- onChange: props.onChange
110
- });
107
+ const initValue = {
108
+ value: [],
109
+ defaultValue: [],
110
+ onChange: v => {
111
+ var _a, _b;
112
+ (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, (_b = v[0]) !== null && _b !== void 0 ? _b : null);
113
+ }
114
+ };
115
+ if (props.activeKey === undefined) {
116
+ initValue.value = undefined;
117
+ } else if (props.activeKey !== null) {
118
+ initValue.value = [props.activeKey];
119
+ }
120
+ if (![null, undefined].includes(props.defaultActiveKey)) {
121
+ initValue.defaultValue = [props.defaultActiveKey];
122
+ }
123
+ return initValue;
124
+ };
125
+ const [activeKey, setActiveKey] = (0, _usePropsValue.usePropsValue)(handlePropsValue());
111
126
  const activeKeyList = activeKey === null ? [] : Array.isArray(activeKey) ? activeKey : [activeKey];
112
127
  return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
113
128
  className: classPrefix
@@ -54,7 +54,6 @@ const Ellipsis = p => {
54
54
  container.style.minHeight = 'auto';
55
55
  container.style.maxHeight = 'auto';
56
56
  container.style.textOverflow = 'clip';
57
- container.style.whiteSpace = 'normal';
58
57
  container.style.webkitLineClamp = 'unset';
59
58
  container.style.display = 'block';
60
59
  const lineHeight = pxToNumber(originStyle.lineHeight);
@@ -127,18 +126,18 @@ const Ellipsis = p => {
127
126
  (0, _ahooks.useIsomorphicLayoutEffect)(() => {
128
127
  calcEllipsised();
129
128
  }, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
130
- const expandActionElement = exceeded && props.expandText ? (0, _withStopPropagation.withStopPropagation)(props.stopPropagationForActionButtons, _react.default.createElement("a", {
129
+ const expandActionElement = !!props.expandText && (0, _withStopPropagation.withStopPropagation)(props.stopPropagationForActionButtons, _react.default.createElement("a", {
131
130
  ref: expandElRef,
132
131
  onClick: () => {
133
132
  setExpanded(true);
134
133
  }
135
- }, props.expandText)) : null;
136
- const collapseActionElement = exceeded && props.collapseText ? (0, _withStopPropagation.withStopPropagation)(props.stopPropagationForActionButtons, _react.default.createElement("a", {
134
+ }, props.expandText));
135
+ const collapseActionElement = !!props.collapseText && (0, _withStopPropagation.withStopPropagation)(props.stopPropagationForActionButtons, _react.default.createElement("a", {
137
136
  ref: collapseElRef,
138
137
  onClick: () => {
139
138
  setExpanded(false);
140
139
  }
141
- }, props.collapseText)) : null;
140
+ }, props.collapseText));
142
141
  const renderContent = () => {
143
142
  if (!exceeded) return props.content;
144
143
  if (expanded) return _react.default.createElement(_react.default.Fragment, null, props.content, collapseActionElement);
@@ -22,7 +22,7 @@ function createErrorBlock(imageRecord) {
22
22
  locale
23
23
  } = (0, _configProvider.useConfig)();
24
24
  const contentPack = locale.ErrorBlock[props.status];
25
- const des = 'description' in props ? props.description : contentPack.description;
25
+ const desc = 'description' in props ? props.description : contentPack.description;
26
26
  const title = 'title' in props ? props.title : contentPack.title;
27
27
  const image = (_a = props.image) !== null && _a !== void 0 ? _a : imageRecord[props.status];
28
28
  const imageNode = typeof image === 'string' ? _react.default.createElement("img", {
@@ -37,11 +37,11 @@ function createErrorBlock(imageRecord) {
37
37
  className: `${classPrefix}-image`
38
38
  }, imageNode), _react.default.createElement("div", {
39
39
  className: `${classPrefix}-description`
40
- }, title && _react.default.createElement("div", {
40
+ }, ![undefined, null].includes(title) && _react.default.createElement("div", {
41
41
  className: `${classPrefix}-description-title`
42
- }, title), des && _react.default.createElement("div", {
42
+ }, title), ![undefined, null].includes(desc) && _react.default.createElement("div", {
43
43
  className: `${classPrefix}-description-subtitle`
44
- }, des)), props.children && _react.default.createElement("div", {
44
+ }, desc)), props.children && _react.default.createElement("div", {
45
45
  className: `${classPrefix}-content`
46
46
  }, props.children)));
47
47
  };
@@ -21,7 +21,7 @@
21
21
 
22
22
  .adm-error-block-description {
23
23
  font-size: var(--adm-font-size-4);
24
- color: #999;
24
+ color: var(--adm-color-weak);
25
25
  line-height: 1.4;
26
26
  margin-top: 24px;
27
27
  }