@chaoswise/ui 3.0.22 → 3.1.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 (411) hide show
  1. package/lib/Alert/index.js +48 -2
  2. package/lib/Alert/index.style.js +36 -0
  3. package/lib/Antd5/_util/ActionButton.js +4 -2
  4. package/lib/Antd5/_util/ContextIsolator.js +27 -0
  5. package/lib/Antd5/_util/easings.js +2 -2
  6. package/lib/Antd5/_util/getScroll.js +9 -8
  7. package/lib/Antd5/_util/hooks/useClosable.js +3 -2
  8. package/lib/Antd5/_util/hooks/useUniqueMemo.js +123 -0
  9. package/lib/Antd5/_util/hooks/useZIndex.js +31 -15
  10. package/lib/Antd5/_util/motion.js +3 -2
  11. package/lib/Antd5/_util/placements.js +2 -2
  12. package/lib/Antd5/_util/scrollTo.js +1 -1
  13. package/lib/Antd5/_util/statusUtils.js +1 -1
  14. package/lib/Antd5/_util/toList.js +5 -0
  15. package/lib/Antd5/_util/warning.js +0 -1
  16. package/lib/Antd5/_util/wave/WaveEffect.js +2 -2
  17. package/lib/Antd5/_util/wave/interface.js +2 -1
  18. package/lib/Antd5/_util/wave/useWave.js +1 -1
  19. package/lib/Antd5/_util/wave/util.js +1 -9
  20. package/lib/Antd5/alert/Alert.js +1 -2
  21. package/lib/Antd5/alert/ErrorBoundary.js +1 -1
  22. package/lib/Antd5/alert/design/behavior-pattern.js +3 -3
  23. package/lib/Antd5/alert/style/index.js +6 -4
  24. package/lib/Antd5/anchor/Anchor.js +8 -7
  25. package/lib/Antd5/anchor/AnchorLink.js +4 -4
  26. package/lib/Antd5/app/index.js +2 -1
  27. package/lib/Antd5/app/style/index.js +5 -4
  28. package/lib/Antd5/auto-complete/index.js +1 -1
  29. package/lib/Antd5/avatar/group.js +35 -17
  30. package/lib/Antd5/avatar/style/index.js +18 -13
  31. package/lib/Antd5/back-top/index.js +3 -2
  32. package/lib/Antd5/badge/ScrollNumber.js +1 -1
  33. package/lib/Antd5/badge/SingleNumber.js +17 -16
  34. package/lib/Antd5/badge/style/index.js +6 -7
  35. package/lib/Antd5/badge/style/ribbon.js +3 -3
  36. package/lib/Antd5/breadcrumb/design/behavior-pattern.js +4 -4
  37. package/lib/Antd5/breadcrumb/style/index.js +2 -2
  38. package/lib/Antd5/button/LoadingIcon.js +5 -10
  39. package/lib/Antd5/button/button-group.js +0 -1
  40. package/lib/Antd5/button/button.js +70 -41
  41. package/lib/Antd5/button/buttonHelpers.js +7 -5
  42. package/lib/Antd5/button/style/{compactCmp.js → compact.js} +20 -27
  43. package/lib/Antd5/button/style/group.js +9 -7
  44. package/lib/Antd5/button/style/index.js +150 -110
  45. package/lib/Antd5/button/style/token.js +8 -1
  46. package/lib/Antd5/calendar/generateCalendar.js +25 -28
  47. package/lib/Antd5/calendar/style/index.js +4 -4
  48. package/lib/Antd5/card/Card.js +3 -3
  49. package/lib/Antd5/card/style/index.js +6 -9
  50. package/lib/Antd5/carousel/index.js +3 -3
  51. package/lib/Antd5/carousel/style/index.js +1 -1
  52. package/lib/Antd5/cascader/Panel.js +7 -2
  53. package/lib/Antd5/cascader/hooks/useBase.js +3 -2
  54. package/lib/Antd5/cascader/hooks/useColumnIcons.js +6 -3
  55. package/lib/Antd5/cascader/index.js +1 -1
  56. package/lib/Antd5/cascader/style/columns.js +6 -4
  57. package/lib/Antd5/checkbox/Checkbox.js +11 -5
  58. package/lib/Antd5/checkbox/style/index.js +6 -3
  59. package/lib/Antd5/collapse/Collapse.js +2 -1
  60. package/lib/Antd5/collapse/style/index.js +20 -13
  61. package/lib/Antd5/color-picker/ColorPicker.js +120 -78
  62. package/lib/Antd5/color-picker/ColorPickerPanel.js +44 -26
  63. package/lib/Antd5/color-picker/color.js +82 -10
  64. package/lib/Antd5/color-picker/components/ColorAlphaInput.js +2 -2
  65. package/lib/Antd5/color-picker/components/ColorClear.js +2 -2
  66. package/lib/Antd5/color-picker/components/ColorHexInput.js +5 -4
  67. package/lib/Antd5/color-picker/components/ColorInput.js +4 -3
  68. package/lib/Antd5/color-picker/components/ColorPresets.js +1 -1
  69. package/lib/Antd5/color-picker/components/ColorSlider.js +139 -0
  70. package/lib/Antd5/color-picker/components/ColorTrigger.js +52 -26
  71. package/lib/Antd5/color-picker/components/PanelPicker/GradientColorBar.js +130 -0
  72. package/lib/Antd5/color-picker/components/PanelPicker/index.js +194 -0
  73. package/lib/Antd5/color-picker/context.js +1 -5
  74. package/lib/Antd5/color-picker/hooks/useModeColor.js +87 -0
  75. package/lib/Antd5/color-picker/style/color-block.js +3 -2
  76. package/lib/Antd5/color-picker/style/index.js +33 -15
  77. package/lib/Antd5/color-picker/style/input.js +1 -1
  78. package/lib/Antd5/color-picker/style/picker.js +6 -33
  79. package/lib/Antd5/color-picker/style/slider.js +87 -0
  80. package/lib/Antd5/color-picker/util.js +53 -7
  81. package/lib/Antd5/config-provider/context.js +3 -1
  82. package/lib/Antd5/config-provider/cssVariables.js +0 -1
  83. package/lib/Antd5/config-provider/defaultRenderEmpty.js +8 -1
  84. package/lib/Antd5/config-provider/index.js +13 -5
  85. package/lib/Antd5/config-provider/style/index.js +0 -1
  86. package/lib/Antd5/date-picker/PickerButton.js +3 -2
  87. package/lib/Antd5/date-picker/design/behavior-pattern.js +15 -15
  88. package/lib/Antd5/date-picker/generatePicker/constant.js +15 -0
  89. package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +16 -11
  90. package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +19 -15
  91. package/lib/Antd5/date-picker/generatePicker/index.js +2 -2
  92. package/lib/Antd5/date-picker/generatePicker/interface.js +1 -1
  93. package/lib/Antd5/date-picker/index.js +2 -17
  94. package/lib/Antd5/date-picker/locale/ar_EG.js +9 -1
  95. package/lib/Antd5/date-picker/locale/az_AZ.js +9 -1
  96. package/lib/Antd5/date-picker/locale/el_GR.js +9 -1
  97. package/lib/Antd5/date-picker/locale/ja_JP.js +11 -1
  98. package/lib/Antd5/date-picker/locale/kn_IN.js +9 -1
  99. package/lib/Antd5/date-picker/locale/pl_PL.js +9 -1
  100. package/lib/Antd5/date-picker/locale/uk_UA.js +10 -1
  101. package/lib/Antd5/date-picker/style/index.js +13 -10
  102. package/lib/Antd5/date-picker/style/panel.js +36 -32
  103. package/lib/Antd5/date-picker/style/token.js +1 -1
  104. package/lib/Antd5/date-picker/util.js +0 -48
  105. package/lib/Antd5/descriptions/hooks/useItems.js +5 -0
  106. package/lib/Antd5/descriptions/hooks/useRow.js +42 -34
  107. package/lib/Antd5/descriptions/style/index.js +20 -8
  108. package/lib/Antd5/divider/index.js +4 -3
  109. package/lib/Antd5/divider/style/index.js +19 -4
  110. package/lib/Antd5/drawer/DrawerPanel.js +11 -20
  111. package/lib/Antd5/drawer/index.js +39 -42
  112. package/lib/Antd5/drawer/style/index.js +10 -11
  113. package/lib/Antd5/dropdown/dropdown.js +5 -7
  114. package/lib/Antd5/dropdown/style/index.js +27 -11
  115. package/lib/Antd5/empty/empty.js +9 -3
  116. package/lib/Antd5/empty/simple.js +9 -3
  117. package/lib/Antd5/empty/style/index.js +1 -1
  118. package/lib/Antd5/float-button/BackTop.js +3 -2
  119. package/lib/Antd5/float-button/FloatButton.js +16 -5
  120. package/lib/Antd5/float-button/FloatButtonGroup.js +76 -52
  121. package/lib/Antd5/float-button/style/index.js +117 -76
  122. package/lib/Antd5/float-button/style/keyframes.js +118 -0
  123. package/lib/Antd5/form/ErrorList.js +14 -2
  124. package/lib/Antd5/form/Form.js +11 -3
  125. package/lib/Antd5/form/FormItem/ItemHolder.js +8 -4
  126. package/lib/Antd5/form/FormItem/index.js +6 -4
  127. package/lib/Antd5/form/FormItemInput.js +68 -28
  128. package/lib/Antd5/form/FormItemLabel.js +3 -3
  129. package/lib/Antd5/form/hooks/useForm.js +8 -1
  130. package/lib/Antd5/form/hooks/useVariants.js +10 -4
  131. package/lib/Antd5/form/style/explain.js +9 -8
  132. package/lib/Antd5/form/style/index.js +30 -18
  133. package/lib/Antd5/grid/row.js +2 -2
  134. package/lib/Antd5/image/index.js +3 -1
  135. package/lib/Antd5/image/style/index.js +17 -20
  136. package/lib/Antd5/index.js +2 -1
  137. package/lib/Antd5/input/Input.js +18 -38
  138. package/lib/Antd5/input/OTP/OTPInput.js +10 -5
  139. package/lib/Antd5/input/OTP/index.js +12 -4
  140. package/lib/Antd5/input/Password.js +6 -2
  141. package/lib/Antd5/input/Search.js +2 -4
  142. package/lib/Antd5/input/TextArea.js +1 -1
  143. package/lib/Antd5/input/style/index.js +72 -63
  144. package/lib/Antd5/input/style/otp.js +1 -1
  145. package/lib/Antd5/input/style/variants.js +38 -23
  146. package/lib/Antd5/input/utils.js +0 -1
  147. package/lib/Antd5/input-number/index.js +19 -22
  148. package/lib/Antd5/input-number/style/index.js +26 -16
  149. package/lib/Antd5/layout/Sider.js +15 -8
  150. package/lib/Antd5/layout/style/index.js +6 -96
  151. package/lib/Antd5/layout/style/sider.js +115 -0
  152. package/lib/Antd5/list/Item.js +18 -5
  153. package/lib/Antd5/list/index.js +15 -10
  154. package/lib/Antd5/list/style/index.js +40 -41
  155. package/lib/Antd5/locale/ar_EG.js +14 -1
  156. package/lib/Antd5/locale/az_AZ.js +78 -28
  157. package/lib/Antd5/locale/bn_BD.js +0 -1
  158. package/lib/Antd5/locale/by_BY.js +0 -1
  159. package/lib/Antd5/locale/ca_ES.js +0 -1
  160. package/lib/Antd5/locale/cs_CZ.js +0 -1
  161. package/lib/Antd5/locale/de_DE.js +0 -1
  162. package/lib/Antd5/locale/el_GR.js +104 -3
  163. package/lib/Antd5/locale/en_GB.js +0 -1
  164. package/lib/Antd5/locale/en_US.js +4 -2
  165. package/lib/Antd5/locale/es_ES.js +10 -6
  166. package/lib/Antd5/locale/et_EE.js +0 -1
  167. package/lib/Antd5/locale/eu_ES.js +4 -2
  168. package/lib/Antd5/locale/fa_IR.js +0 -1
  169. package/lib/Antd5/locale/fr_BE.js +5 -1
  170. package/lib/Antd5/locale/fr_CA.js +0 -1
  171. package/lib/Antd5/locale/fr_FR.js +5 -6
  172. package/lib/Antd5/locale/ga_IE.js +0 -1
  173. package/lib/Antd5/locale/gl_ES.js +0 -1
  174. package/lib/Antd5/locale/he_IL.js +0 -1
  175. package/lib/Antd5/locale/hi_IN.js +0 -1
  176. package/lib/Antd5/locale/hr_HR.js +0 -1
  177. package/lib/Antd5/locale/id_ID.js +4 -2
  178. package/lib/Antd5/locale/index.js +1 -1
  179. package/lib/Antd5/locale/it_IT.js +0 -1
  180. package/lib/Antd5/locale/ja_JP.js +4 -2
  181. package/lib/Antd5/locale/ka_GE.js +0 -1
  182. package/lib/Antd5/locale/kk_KZ.js +0 -1
  183. package/lib/Antd5/locale/km_KH.js +0 -1
  184. package/lib/Antd5/locale/kn_IN.js +82 -4
  185. package/lib/Antd5/locale/ko_KR.js +4 -2
  186. package/lib/Antd5/locale/lt_LT.js +4 -2
  187. package/lib/Antd5/locale/ml_IN.js +0 -1
  188. package/lib/Antd5/locale/mn_MN.js +86 -2
  189. package/lib/Antd5/locale/ms_MY.js +101 -18
  190. package/lib/Antd5/locale/my_MM.js +0 -1
  191. package/lib/Antd5/locale/nb_NO.js +0 -1
  192. package/lib/Antd5/locale/ne_NP.js +104 -2
  193. package/lib/Antd5/locale/nl_BE.js +5 -1
  194. package/lib/Antd5/locale/nl_NL.js +5 -1
  195. package/lib/Antd5/locale/pl_PL.js +0 -1
  196. package/lib/Antd5/locale/pt_BR.js +0 -1
  197. package/lib/Antd5/locale/pt_PT.js +55 -38
  198. package/lib/Antd5/locale/ro_RO.js +0 -1
  199. package/lib/Antd5/locale/ru_RU.js +9 -2
  200. package/lib/Antd5/locale/si_LK.js +0 -1
  201. package/lib/Antd5/locale/sk_SK.js +0 -1
  202. package/lib/Antd5/locale/sr_RS.js +0 -1
  203. package/lib/Antd5/locale/sv_SE.js +0 -1
  204. package/lib/Antd5/locale/th_TH.js +11 -3
  205. package/lib/Antd5/locale/tk_TK.js +0 -1
  206. package/lib/Antd5/locale/tr_TR.js +2 -1
  207. package/lib/Antd5/locale/uk_UA.js +1 -1
  208. package/lib/Antd5/locale/ur_PK.js +0 -1
  209. package/lib/Antd5/locale/uz_UZ.js +6 -7
  210. package/lib/Antd5/locale/zh_CN.js +4 -2
  211. package/lib/Antd5/locale/zh_HK.js +0 -1
  212. package/lib/Antd5/locale/zh_TW.js +0 -1
  213. package/lib/Antd5/mentions/index.js +4 -4
  214. package/lib/Antd5/menu/MenuItem.js +6 -5
  215. package/lib/Antd5/menu/OverrideContext.js +4 -3
  216. package/lib/Antd5/menu/SubMenu.js +2 -2
  217. package/lib/Antd5/menu/menu.js +2 -2
  218. package/lib/Antd5/menu/style/index.js +58 -40
  219. package/lib/Antd5/menu/style/theme.js +24 -20
  220. package/lib/Antd5/menu/style/vertical.js +10 -7
  221. package/lib/Antd5/message/PurePanel.js +22 -40
  222. package/lib/Antd5/message/style/index.js +8 -47
  223. package/lib/Antd5/message/useMessage.js +3 -15
  224. package/lib/Antd5/modal/Modal.js +50 -38
  225. package/lib/Antd5/modal/PurePanel.js +0 -1
  226. package/lib/Antd5/modal/confirm.js +4 -5
  227. package/lib/Antd5/modal/style/confirm.js +1 -2
  228. package/lib/Antd5/modal/style/index.js +13 -3
  229. package/lib/Antd5/modal/useModal/HookModal.js +4 -3
  230. package/lib/Antd5/modal/useModal/index.js +0 -1
  231. package/lib/Antd5/notification/index.js +6 -3
  232. package/lib/Antd5/notification/style/index.js +35 -3
  233. package/lib/Antd5/notification/useNotification.js +6 -1
  234. package/lib/Antd5/pagination/Pagination.js +10 -5
  235. package/lib/Antd5/pagination/design/behavior-pattern.js +3 -3
  236. package/lib/Antd5/pagination/style/bordered.js +1 -1
  237. package/lib/Antd5/pagination/style/index.js +27 -18
  238. package/lib/Antd5/popconfirm/PurePanel.js +7 -7
  239. package/lib/Antd5/popover/PurePanel.js +16 -6
  240. package/lib/Antd5/popover/index.js +7 -19
  241. package/lib/Antd5/popover/style/index.js +3 -1
  242. package/lib/Antd5/progress/Line.js +27 -19
  243. package/lib/Antd5/progress/design/behavior-pattern.js +3 -3
  244. package/lib/Antd5/progress/progress.js +37 -11
  245. package/lib/Antd5/progress/style/index.js +46 -11
  246. package/lib/Antd5/progress/utils.js +20 -18
  247. package/lib/Antd5/qr-code/QrcodeStatus.js +42 -0
  248. package/lib/Antd5/qr-code/index.js +31 -31
  249. package/lib/Antd5/rate/index.js +8 -2
  250. package/lib/Antd5/result/noFound.js +3 -1
  251. package/lib/Antd5/result/serverError.js +3 -1
  252. package/lib/Antd5/result/unauthorized.js +5 -3
  253. package/lib/Antd5/segmented/index.js +5 -3
  254. package/lib/Antd5/segmented/style/index.js +11 -3
  255. package/lib/Antd5/select/index.js +4 -2
  256. package/lib/Antd5/select/style/dropdown.js +1 -1
  257. package/lib/Antd5/select/style/index.js +21 -8
  258. package/lib/Antd5/select/style/multiple.js +18 -9
  259. package/lib/Antd5/select/style/single.js +8 -10
  260. package/lib/Antd5/select/style/token.js +9 -2
  261. package/lib/Antd5/select/style/variants.js +20 -11
  262. package/lib/Antd5/skeleton/Image.js +6 -4
  263. package/lib/Antd5/skeleton/Node.js +1 -3
  264. package/lib/Antd5/skeleton/Paragraph.js +1 -1
  265. package/lib/Antd5/skeleton/Title.js +9 -6
  266. package/lib/Antd5/skeleton/style/index.js +13 -13
  267. package/lib/Antd5/slider/Context.js +4 -0
  268. package/lib/Antd5/slider/SliderTooltip.js +9 -5
  269. package/lib/Antd5/slider/index.js +32 -31
  270. package/lib/Antd5/slider/style/index.js +60 -44
  271. package/lib/Antd5/space/Compact.js +1 -1
  272. package/lib/Antd5/space/index.js +3 -3
  273. package/lib/Antd5/spin/Indicator/Looper.js +29 -0
  274. package/lib/Antd5/spin/Indicator/Progress.js +78 -0
  275. package/lib/Antd5/spin/Indicator/index.js +21 -0
  276. package/lib/Antd5/spin/index.js +27 -45
  277. package/lib/Antd5/spin/style/index.js +54 -17
  278. package/lib/Antd5/spin/usePercent.js +40 -0
  279. package/lib/Antd5/splitter/Panel.js +36 -0
  280. package/lib/Antd5/splitter/SplitBar.js +124 -0
  281. package/lib/Antd5/splitter/Splitter.js +194 -0
  282. package/lib/Antd5/{_util/transButton.js → splitter/hooks/useItems.js} +28 -54
  283. package/lib/Antd5/splitter/hooks/useResizable.js +43 -0
  284. package/lib/Antd5/splitter/hooks/useResize.js +138 -0
  285. package/lib/Antd5/splitter/hooks/useSizes.js +109 -0
  286. package/lib/Antd5/splitter/index.js +5 -0
  287. package/lib/Antd5/splitter/interface.js +1 -0
  288. package/lib/Antd5/splitter/style/index.js +219 -0
  289. package/lib/Antd5/statistic/style/index.js +1 -1
  290. package/lib/Antd5/steps/style/custom-icon.js +1 -1
  291. package/lib/Antd5/steps/style/index.js +11 -8
  292. package/lib/Antd5/steps/style/inline.js +5 -4
  293. package/lib/Antd5/steps/style/progress-dot.js +2 -2
  294. package/lib/Antd5/steps/style/small.js +3 -3
  295. package/lib/Antd5/steps/style/vertical.js +2 -2
  296. package/lib/Antd5/style/index.js +37 -13
  297. package/lib/Antd5/style/motion/slide.js +6 -5
  298. package/lib/Antd5/style/placementArrow.js +15 -6
  299. package/lib/Antd5/switch/style/index.js +1 -1
  300. package/lib/Antd5/table/Column.js +2 -3
  301. package/lib/Antd5/table/ColumnGroup.js +2 -3
  302. package/lib/Antd5/table/ExpandIcon.js +6 -6
  303. package/lib/Antd5/table/InternalTable.js +6 -6
  304. package/lib/Antd5/table/RcTable/VirtualTable.js +3 -2
  305. package/lib/Antd5/table/RcTable/index.js +3 -2
  306. package/lib/Antd5/table/hooks/useFilter/FilterDropdown.js +82 -61
  307. package/lib/Antd5/table/hooks/useFilter/FilterSearch.js +7 -7
  308. package/lib/Antd5/table/hooks/useFilter/index.js +28 -26
  309. package/lib/Antd5/table/hooks/useLazyKVMap.js +5 -5
  310. package/lib/Antd5/table/hooks/useSelection.js +21 -11
  311. package/lib/Antd5/table/hooks/useSorter.js +66 -42
  312. package/lib/Antd5/table/hooks/useTitleColumns.js +9 -7
  313. package/lib/Antd5/table/interface.js +1 -1
  314. package/lib/Antd5/table/style/bordered.js +5 -3
  315. package/lib/Antd5/table/style/expand.js +44 -38
  316. package/lib/Antd5/table/style/filter.js +1 -1
  317. package/lib/Antd5/table/style/index.js +26 -21
  318. package/lib/Antd5/table/style/selection.js +3 -1
  319. package/lib/Antd5/table/style/sorter.js +3 -1
  320. package/lib/Antd5/table/style/virtual.js +2 -2
  321. package/lib/Antd5/table/util.js +9 -8
  322. package/lib/Antd5/tabs/style/index.js +2 -2
  323. package/lib/Antd5/tag/style/index.js +2 -2
  324. package/lib/Antd5/theme/index.js +12 -5
  325. package/lib/Antd5/theme/interface/cssinjs-utils.js +1 -0
  326. package/lib/Antd5/theme/internal.js +10 -5
  327. package/lib/Antd5/theme/themes/dark/colors.js +3 -0
  328. package/lib/Antd5/theme/themes/dark/index.js +1 -0
  329. package/lib/Antd5/theme/themes/default/colors.js +3 -0
  330. package/lib/Antd5/theme/themes/default/index.js +6 -2
  331. package/lib/Antd5/theme/themes/seed.js +5 -2
  332. package/lib/Antd5/theme/themes/shared/genColorMapToken.js +2 -0
  333. package/lib/Antd5/theme/themes/shared/genFontSizes.js +1 -1
  334. package/lib/Antd5/theme/useToken.js +2 -1
  335. package/lib/Antd5/theme/util/alias.js +1 -1
  336. package/lib/Antd5/theme/util/genStyleUtils.js +61 -0
  337. package/lib/Antd5/time-picker/index.js +15 -2
  338. package/lib/Antd5/time-picker/locale/az_AZ.js +2 -1
  339. package/lib/Antd5/time-picker/locale/it_IT.js +2 -1
  340. package/lib/Antd5/time-picker/locale/uk_UA.js +2 -1
  341. package/lib/Antd5/timeline/TimelineItemList.js +0 -1
  342. package/lib/Antd5/timeline/style/index.js +1 -1
  343. package/lib/Antd5/tooltip/index.js +3 -2
  344. package/lib/Antd5/tooltip/style/index.js +3 -1
  345. package/lib/Antd5/tooltip/util.js +0 -1
  346. package/lib/Antd5/tour/panelRender.js +7 -13
  347. package/lib/Antd5/tour/style/index.js +6 -13
  348. package/lib/Antd5/transfer/ListItem.js +3 -3
  349. package/lib/Antd5/transfer/hooks/useData.js +1 -1
  350. package/lib/Antd5/transfer/hooks/useSelection.js +26 -21
  351. package/lib/Antd5/transfer/style/index.js +12 -22
  352. package/lib/Antd5/tree/Tree.js +2 -0
  353. package/lib/Antd5/tree/style/directory.js +39 -0
  354. package/lib/Antd5/tree/style/index.js +115 -166
  355. package/lib/Antd5/tree/utils/dropIndicator.js +3 -2
  356. package/lib/Antd5/tree/utils/iconUtil.js +5 -1
  357. package/lib/Antd5/tree-select/index.js +47 -43
  358. package/lib/Antd5/typography/Base/CopyBtn.js +17 -17
  359. package/lib/Antd5/typography/Base/Ellipsis.js +48 -40
  360. package/lib/Antd5/typography/Base/index.js +20 -60
  361. package/lib/Antd5/typography/Base/util.js +31 -1
  362. package/lib/Antd5/typography/Editable.js +11 -10
  363. package/lib/Antd5/typography/Title.js +1 -6
  364. package/lib/Antd5/typography/Typography.js +2 -6
  365. package/lib/Antd5/typography/hooks/useCopyClick.js +3 -2
  366. package/lib/Antd5/typography/hooks/usePrevious.js +1 -1
  367. package/lib/Antd5/{message/assets/Close.js → typography/hooks/useTooltipProps.js} +24 -16
  368. package/lib/Antd5/typography/style/mixins.js +3 -9
  369. package/lib/Antd5/upload/Upload.js +55 -83
  370. package/lib/Antd5/upload/UploadList/ListItem.js +15 -9
  371. package/lib/Antd5/upload/UploadList/index.js +33 -47
  372. package/lib/Antd5/upload/style/dragger.js +5 -26
  373. package/lib/Antd5/upload/style/list.js +2 -7
  374. package/lib/Antd5/version/version.js +1 -1
  375. package/lib/Antd5/watermark/context.js +1 -1
  376. package/lib/Antd5/watermark/index.js +35 -18
  377. package/lib/Antd5/watermark/useClips.js +2 -1
  378. package/lib/Antd5/watermark/useRafDebounce.js +1 -1
  379. package/lib/Antd5/watermark/utils.js +1 -1
  380. package/lib/Button/index.style.js +1 -3
  381. package/lib/CWSelect/index.js +39 -1
  382. package/lib/CWSelect/index.style.js +39 -0
  383. package/lib/CWTree/index.js +3 -9
  384. package/lib/CWTree/index.style.js +2 -0
  385. package/lib/ConfigProvider/ConfigProvider.js +9 -10
  386. package/lib/ConfigProvider/customTheme.js +9 -2
  387. package/lib/ConfigProvider/theme/common.js +140 -0
  388. package/lib/ConfigProvider/theme/dark.js +2 -0
  389. package/lib/ConfigProvider/theme/default.js +115 -0
  390. package/lib/ConfigProvider/theme/utils.js +49 -0
  391. package/lib/QuickTransfer/index.js +44 -48
  392. package/lib/RangePicker/components/ExtraQuickSelect.js +1 -4
  393. package/lib/RangePicker/index.js +38 -26
  394. package/lib/RangePicker/utils/generate/dayjs.js +1 -1
  395. package/lib/Splitter/index.js +2 -0
  396. package/package.json +37 -35
  397. package/lib/Antd5/color-picker/components/PanelPicker.js +0 -53
  398. package/lib/Antd5/color-picker/hooks/useColorState.js +0 -53
  399. package/lib/Antd5/layout/style/light.js +0 -24
  400. package/lib/Antd5/style/operationUnit.js +0 -18
  401. package/lib/Antd5/theme/util/calc/CSSCalculator.js +0 -119
  402. package/lib/Antd5/theme/util/calc/NumCalculator.js +0 -81
  403. package/lib/Antd5/theme/util/calc/calculator.js +0 -10
  404. package/lib/Antd5/theme/util/calc/index.js +0 -9
  405. package/lib/Antd5/theme/util/genComponentStyleHook.js +0 -243
  406. package/lib/Antd5/theme/util/maxmin.js +0 -27
  407. package/lib/Antd5/theme/util/statistic.js +0 -74
  408. package/lib/Antd5/typography/hooks/useUpdatedEffect.js +0 -13
  409. package/lib/Antd5/version/token-meta.json +0 -1
  410. package/lib/Antd5/version/token.json +0 -1
  411. package/lib/ConfigProvider/customTheme.json +0 -163
@@ -18,7 +18,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
18
  import { createElement as _createElement } from "react";
19
19
  import * as React from 'react';
20
20
  import classNames from 'classnames';
21
- import { useEvent } from 'rc-util';
21
+ import useEvent from 'rc-util/lib/hooks/useEvent';
22
22
  import scrollIntoView from 'scroll-into-view-if-needed';
23
23
  import getScroll from '../_util/getScroll';
24
24
  import scrollTo from '../_util/scrollTo';
@@ -39,8 +39,7 @@ function getOffsetTop(element, container) {
39
39
  var rect = element.getBoundingClientRect();
40
40
  if (rect.width || rect.height) {
41
41
  if (container === window) {
42
- container = element.ownerDocument.documentElement;
43
- return rect.top - container.clientTop;
42
+ return rect.top - element.ownerDocument.documentElement.clientTop;
44
43
  }
45
44
  return rect.top - container.getBoundingClientRect().top;
46
45
  }
@@ -198,7 +197,7 @@ var Anchor = function Anchor(props) {
198
197
  return;
199
198
  }
200
199
  var container = getCurrentContainer();
201
- var scrollTop = getScroll(container, true);
200
+ var scrollTop = getScroll(container);
202
201
  var eleOffsetTop = getOffsetTop(targetElement, container);
203
202
  var y = scrollTop + eleOffsetTop;
204
203
  y -= targetOffset !== undefined ? targetOffset : offsetTop || 0;
@@ -263,13 +262,15 @@ var Anchor = function Anchor(props) {
263
262
  direction: anchorDirection
264
263
  };
265
264
  }, [activeLink, onClick, handleScrollTo, anchorDirection]);
265
+ var affixProps = affix && _typeof(affix) === 'object' ? affix : undefined;
266
266
  return wrapCSSVar(_jsx(AnchorContext.Provider, {
267
267
  value: memoizedContextValue,
268
- children: affix ? _jsx(Affix, {
268
+ children: affix ? _jsx(Affix, _objectSpread(_objectSpread({
269
269
  offsetTop: offsetTop,
270
- target: getCurrentContainer,
270
+ target: getCurrentContainer
271
+ }, affixProps), {}, {
271
272
  children: anchorContent
272
- }) : anchorContent
273
+ })) : anchorContent
273
274
  }));
274
275
  };
275
276
  if (process.env.NODE_ENV !== 'production') {
@@ -31,15 +31,15 @@ var AnchorLink = function AnchorLink(props) {
31
31
  };
32
32
  }, [href]);
33
33
  var handleClick = function handleClick(e) {
34
- if (replace) {
35
- e.preventDefault();
36
- window.location.replace(href);
37
- }
38
34
  onClick === null || onClick === void 0 || onClick(e, {
39
35
  title: title,
40
36
  href: href
41
37
  });
42
38
  scrollTo === null || scrollTo === void 0 || scrollTo(href);
39
+ if (replace) {
40
+ e.preventDefault();
41
+ window.location.replace(href);
42
+ }
43
43
  };
44
44
  // =================== Warning =====================
45
45
  if (process.env.NODE_ENV !== 'production') {
@@ -34,6 +34,7 @@ var App = function App(props) {
34
34
  _props$component = props.component,
35
35
  component = _props$component === void 0 ? 'div' : _props$component;
36
36
  var _useContext = useContext(ConfigContext),
37
+ direction = _useContext.direction,
37
38
  getPrefixCls = _useContext.getPrefixCls;
38
39
  var prefixCls = getPrefixCls('app', customizePrefixCls);
39
40
  var _useStyle = useStyle(prefixCls),
@@ -41,7 +42,7 @@ var App = function App(props) {
41
42
  wrapCSSVar = _useStyle2[0],
42
43
  hashId = _useStyle2[1],
43
44
  cssVarCls = _useStyle2[2];
44
- var customClassName = classNames(hashId, prefixCls, className, rootClassName, cssVarCls);
45
+ var customClassName = classNames(hashId, prefixCls, className, rootClassName, cssVarCls, _defineProperty({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
45
46
  var appConfig = useContext(AppConfigContext);
46
47
  var mergedAppConfig = React.useMemo(function () {
47
48
  return {
@@ -10,13 +10,14 @@ var genBaseStyle = function genBaseStyle(token) {
10
10
  fontSize = token.fontSize,
11
11
  lineHeight = token.lineHeight,
12
12
  fontFamily = token.fontFamily;
13
- return _defineProperty({}, componentCls, {
13
+ return _defineProperty({}, componentCls, _defineProperty({
14
14
  color: colorText,
15
15
  fontSize: fontSize,
16
16
  lineHeight: lineHeight,
17
- fontFamily: fontFamily,
18
- height: "100%"
19
- });
17
+ fontFamily: fontFamily
18
+ }, "&".concat(componentCls, "-rtl"), {
19
+ direction: 'rtl'
20
+ }));
20
21
  };
21
22
  export var prepareComponentToken = function prepareComponentToken() {
22
23
  return {};
@@ -22,7 +22,7 @@ import { ConfigContext } from '../config-provider';
22
22
  import Select from '../select';
23
23
  var Option = Select.Option;
24
24
  function isSelectOptionOrSelectOptGroup(child) {
25
- return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
25
+ return (child === null || child === void 0 ? void 0 : child.type) && (child.type.isSelectOption || child.type.isSelectOptGroup);
26
26
  }
27
27
  var AutoComplete = function AutoComplete(props, ref) {
28
28
  var _props$dropdownStyle;
@@ -1,4 +1,6 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2
4
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
3
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
4
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -13,6 +15,7 @@ import * as React from 'react';
13
15
  import classNames from 'classnames';
14
16
  import toArray from 'rc-util/lib/Children/toArray';
15
17
  import { cloneElement } from '../_util/reactNode';
18
+ import { devUseWarning } from '../_util/warning';
16
19
  import { ConfigContext } from '../config-provider';
17
20
  import useCSSVarCls from '../config-provider/hooks/useCSSVarCls';
18
21
  import Popover from '../popover';
@@ -46,11 +49,17 @@ var Group = function Group(props) {
46
49
  maxStyle = props.maxStyle,
47
50
  size = props.size,
48
51
  shape = props.shape,
49
- _props$maxPopoverPlac = props.maxPopoverPlacement,
50
- maxPopoverPlacement = _props$maxPopoverPlac === void 0 ? 'top' : _props$maxPopoverPlac,
51
- _props$maxPopoverTrig = props.maxPopoverTrigger,
52
- maxPopoverTrigger = _props$maxPopoverTrig === void 0 ? 'hover' : _props$maxPopoverTrig,
53
- children = props.children;
52
+ maxPopoverPlacement = props.maxPopoverPlacement,
53
+ maxPopoverTrigger = props.maxPopoverTrigger,
54
+ children = props.children,
55
+ max = props.max;
56
+ if (process.env.NODE_ENV !== 'production') {
57
+ var warning = devUseWarning('Avatar.Group');
58
+ warning.deprecated(!maxCount, 'maxCount', 'max={{ count: number }}');
59
+ warning.deprecated(!maxStyle, 'maxStyle', 'max={{ style: CSSProperties }}');
60
+ warning.deprecated(!maxPopoverPlacement, 'maxPopoverPlacement', 'max={{ popover: PopoverProps }}');
61
+ warning.deprecated(!maxPopoverTrigger, 'maxPopoverTrigger', 'max={{ popover: PopoverProps }}');
62
+ }
54
63
  var prefixCls = getPrefixCls('avatar', customizePrefixCls);
55
64
  var groupPrefixCls = "".concat(prefixCls, "-group");
56
65
  var rootCls = useCSSVarCls(prefixCls);
@@ -65,21 +74,30 @@ var Group = function Group(props) {
65
74
  key: "avatar-key-".concat(index)
66
75
  });
67
76
  });
77
+ var mergeCount = (max === null || max === void 0 ? void 0 : max.count) || maxCount;
68
78
  var numOfChildren = childrenWithProps.length;
69
- if (maxCount && maxCount < numOfChildren) {
70
- var childrenShow = childrenWithProps.slice(0, maxCount);
71
- var childrenHidden = childrenWithProps.slice(maxCount, numOfChildren);
72
- childrenShow.push(_jsx(Popover, {
73
- content: childrenHidden,
74
- trigger: maxPopoverTrigger,
75
- placement: maxPopoverPlacement,
76
- overlayClassName: "".concat(groupPrefixCls, "-popover"),
77
- destroyTooltipOnHide: true,
79
+ if (mergeCount && mergeCount < numOfChildren) {
80
+ var _max$popover, _max$popover2, _max$popover3;
81
+ var childrenShow = childrenWithProps.slice(0, mergeCount);
82
+ var childrenHidden = childrenWithProps.slice(mergeCount, numOfChildren);
83
+ var mergeStyle = (max === null || max === void 0 ? void 0 : max.style) || maxStyle;
84
+ var mergePopoverTrigger = (max === null || max === void 0 || (_max$popover = max.popover) === null || _max$popover === void 0 ? void 0 : _max$popover.trigger) || maxPopoverTrigger || 'hover';
85
+ var mergePopoverPlacement = (max === null || max === void 0 || (_max$popover2 = max.popover) === null || _max$popover2 === void 0 ? void 0 : _max$popover2.placement) || maxPopoverPlacement || 'top';
86
+ var mergeProps = _objectSpread(_objectSpread({
87
+ content: childrenHidden
88
+ }, max === null || max === void 0 ? void 0 : max.popover), {}, {
89
+ overlayClassName: classNames("".concat(groupPrefixCls, "-popover"), max === null || max === void 0 || (_max$popover3 = max.popover) === null || _max$popover3 === void 0 ? void 0 : _max$popover3.overlayClassName),
90
+ placement: mergePopoverPlacement,
91
+ trigger: mergePopoverTrigger
92
+ });
93
+ childrenShow.push(_jsx(Popover, _objectSpread(_objectSpread({
94
+ destroyTooltipOnHide: true
95
+ }, mergeProps), {}, {
78
96
  children: _jsx(Avatar, {
79
- style: maxStyle,
80
- children: "+".concat(numOfChildren - maxCount)
97
+ style: mergeStyle,
98
+ children: "+".concat(numOfChildren - mergeCount)
81
99
  })
82
- }, "avatar-popover-key"));
100
+ }), "avatar-popover-key"));
83
101
  return wrapCSSVar(_jsx(AvatarContextProvider, {
84
102
  shape: shape,
85
103
  size: size,
@@ -38,7 +38,7 @@ var genBaseStyle = function genBaseStyle(token) {
38
38
  margin: 0
39
39
  }));
40
40
  };
41
- return _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty({
41
+ return _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty({
42
42
  position: 'relative',
43
43
  display: 'inline-flex',
44
44
  justifyContent: 'center',
@@ -49,17 +49,22 @@ var genBaseStyle = function genBaseStyle(token) {
49
49
  textAlign: 'center',
50
50
  verticalAlign: 'middle',
51
51
  background: avatarBg,
52
- border: "".concat(unit(lineWidth), " ").concat(lineType, " transparent")
53
- }, "&-image", {
54
- background: 'transparent'
55
- }), "".concat(antCls, "-image-img"), {
52
+ border: "".concat(unit(lineWidth), " ").concat(lineType, " transparent"),
53
+ '&-image': {
54
+ background: 'transparent'
55
+ }
56
+ }, "".concat(antCls, "-image-img"), {
56
57
  display: 'block'
57
- }), avatarSizeStyle(containerSize, textFontSize, borderRadius)), {}, _defineProperty(_defineProperty(_defineProperty({}, "&-lg", _objectSpread({}, avatarSizeStyle(containerSizeLG, textFontSizeLG, borderRadiusLG))), "&-sm", _objectSpread({}, avatarSizeStyle(containerSizeSM, textFontSizeSM, borderRadiusSM))), '> img', {
58
- display: 'block',
59
- width: '100%',
60
- height: '100%',
61
- objectFit: 'cover'
62
- })));
58
+ }), avatarSizeStyle(containerSize, textFontSize, borderRadius)), {}, {
59
+ '&-lg': _objectSpread({}, avatarSizeStyle(containerSizeLG, textFontSizeLG, borderRadiusLG)),
60
+ '&-sm': _objectSpread({}, avatarSizeStyle(containerSizeSM, textFontSizeSM, borderRadiusSM)),
61
+ '> img': {
62
+ display: 'block',
63
+ width: '100%',
64
+ height: '100%',
65
+ objectFit: 'cover'
66
+ }
67
+ }));
63
68
  };
64
69
  var genGroupStyle = function genGroupStyle(token) {
65
70
  var componentCls = token.componentCls,
@@ -68,9 +73,9 @@ var genGroupStyle = function genGroupStyle(token) {
68
73
  groupSpace = token.groupSpace;
69
74
  return _defineProperty(_defineProperty({}, "".concat(componentCls, "-group"), _defineProperty(_defineProperty({
70
75
  display: 'inline-flex'
71
- }, "".concat(componentCls), {
76
+ }, componentCls, {
72
77
  borderColor: groupBorderColor
73
- }), "> *:not(:first-child)", {
78
+ }), '> *:not(:first-child)', {
74
79
  marginInlineStart: groupOverlapping
75
80
  })), "".concat(componentCls, "-group-popover"), _defineProperty({}, "".concat(componentCls, " + ").concat(componentCls), {
76
81
  marginInlineStart: groupSpace
@@ -39,10 +39,11 @@ var BackTop = function BackTop(props) {
39
39
  setVisible = _React$useState2[1];
40
40
  var ref = React.useRef(null);
41
41
  var getDefaultTarget = function getDefaultTarget() {
42
- return ref.current && ref.current.ownerDocument ? ref.current.ownerDocument : window;
42
+ var _ref$current;
43
+ return ((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.ownerDocument) || window;
43
44
  };
44
45
  var handleScroll = throttleByAnimationFrame(function (e) {
45
- var scrollTop = getScroll(e.target, true);
46
+ var scrollTop = getScroll(e.target);
46
47
  setVisible(scrollTop >= visibilityHeight);
47
48
  });
48
49
  if (process.env.NODE_ENV !== 'production') {
@@ -52,7 +52,7 @@ var ScrollNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
52
52
  // allow specify the border
53
53
  // mock border-color by box-shadow for compatible with old usage:
54
54
  // <Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />
55
- if (style && style.borderColor) {
55
+ if (style !== null && style !== void 0 && style.borderColor) {
56
56
  newProps.style = _objectSpread(_objectSpread({}, style), {}, {
57
57
  boxShadow: "0 0 0 1px ".concat(style.borderColor, " inset")
58
58
  });
@@ -14,12 +14,12 @@ import { createElement as _createElement } from "react";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  import * as React from 'react';
16
16
  import classNames from 'classnames';
17
- function UnitNumber(_ref) {
18
- var prefixCls = _ref.prefixCls,
19
- value = _ref.value,
20
- current = _ref.current,
21
- _ref$offset = _ref.offset,
22
- offset = _ref$offset === void 0 ? 0 : _ref$offset;
17
+ var UnitNumber = function UnitNumber(props) {
18
+ var prefixCls = props.prefixCls,
19
+ value = props.value,
20
+ current = props.current,
21
+ _props$offset = props.offset,
22
+ offset = _props$offset === void 0 ? 0 : _props$offset;
23
23
  var style;
24
24
  if (offset) {
25
25
  style = {
@@ -35,7 +35,7 @@ function UnitNumber(_ref) {
35
35
  }),
36
36
  children: value
37
37
  });
38
- }
38
+ };
39
39
  function getOffset(start, end, unit) {
40
40
  var index = start;
41
41
  var offset = 0;
@@ -45,7 +45,7 @@ function getOffset(start, end, unit) {
45
45
  }
46
46
  return offset;
47
47
  }
48
- export default function SingleNumber(props) {
48
+ var SingleNumber = function SingleNumber(props) {
49
49
  var prefixCls = props.prefixCls,
50
50
  originCount = props.count,
51
51
  originValue = props.value;
@@ -66,11 +66,9 @@ export default function SingleNumber(props) {
66
66
  };
67
67
  // Fallback if transition events are not supported
68
68
  React.useEffect(function () {
69
- var timeout = setTimeout(function () {
70
- onTransitionEnd();
71
- }, 1000);
69
+ var timer = setTimeout(onTransitionEnd, 1000);
72
70
  return function () {
73
- clearTimeout(timeout);
71
+ return clearTimeout(timer);
74
72
  };
75
73
  }, [value]);
76
74
  // ============================= Render =============================
@@ -94,21 +92,23 @@ export default function SingleNumber(props) {
94
92
  for (var index = value; index <= end; index += 1) {
95
93
  unitNumberList.push(index);
96
94
  }
95
+ var unit = prevCount < count ? 1 : -1;
97
96
  // Fill with number unit nodes
98
97
  var prevIndex = unitNumberList.findIndex(function (n) {
99
98
  return n % 10 === prevValue;
100
99
  });
101
- unitNodes = unitNumberList.map(function (n, index) {
100
+ // Cut list
101
+ var cutUnitNumberList = unit < 0 ? unitNumberList.slice(0, prevIndex + 1) : unitNumberList.slice(prevIndex);
102
+ unitNodes = cutUnitNumberList.map(function (n, index) {
102
103
  var singleUnit = n % 10;
103
104
  return /*#__PURE__*/_createElement(UnitNumber, _objectSpread(_objectSpread({}, props), {}, {
104
105
  key: n,
105
106
  value: singleUnit,
106
- offset: index - prevIndex,
107
+ offset: unit < 0 ? index - prevIndex : index,
107
108
  current: index === prevIndex
108
109
  }));
109
110
  });
110
111
  // Calculate container offset value
111
- var unit = prevCount < count ? 1 : -1;
112
112
  offsetStyle = {
113
113
  transform: "translateY(".concat(-getOffset(prevValue, value, unit), "00%)")
114
114
  };
@@ -119,4 +119,5 @@ export default function SingleNumber(props) {
119
119
  onTransitionEnd: onTransitionEnd,
120
120
  children: unitNodes
121
121
  });
122
- }
122
+ };
123
+ export default SingleNumber;
@@ -67,7 +67,6 @@ var genSharedBadgeStyle = function genSharedBadgeStyle(token) {
67
67
  iconCls = token.iconCls,
68
68
  antCls = token.antCls,
69
69
  badgeShadowSize = token.badgeShadowSize,
70
- motionDurationSlow = token.motionDurationSlow,
71
70
  textFontSize = token.textFontSize,
72
71
  textFontSizeSM = token.textFontSizeSM,
73
72
  statusSize = token.statusSize,
@@ -88,7 +87,7 @@ var genSharedBadgeStyle = function genSharedBadgeStyle(token) {
88
87
  background: darkColor
89
88
  }));
90
89
  });
91
- return _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
90
+ return _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
92
91
  position: 'relative',
93
92
  display: 'inline-block',
94
93
  width: 'fit-content',
@@ -137,8 +136,6 @@ var genSharedBadgeStyle = function genSharedBadgeStyle(token) {
137
136
  background: token.badgeColor,
138
137
  borderRadius: '100%',
139
138
  boxShadow: "0 0 0 ".concat(unit(badgeShadowSize), " ").concat(token.badgeShadowColor)
140
- }), "".concat(componentCls, "-dot").concat(numberPrefixCls), {
141
- transition: "background ".concat(motionDurationSlow)
142
139
  }), "".concat(componentCls, "-count, ").concat(componentCls, "-dot, ").concat(numberPrefixCls, "-custom-component"), _defineProperty({
143
140
  position: 'absolute',
144
141
  top: 0,
@@ -168,6 +165,7 @@ var genSharedBadgeStyle = function genSharedBadgeStyle(token) {
168
165
  overflow: 'visible',
169
166
  color: token.colorInfo,
170
167
  backgroundColor: token.colorInfo,
168
+ borderColor: 'currentcolor',
171
169
  '&::after': {
172
170
  position: 'absolute',
173
171
  top: 0,
@@ -221,8 +219,9 @@ var genSharedBadgeStyle = function genSharedBadgeStyle(token) {
221
219
  top: 'auto',
222
220
  display: 'block',
223
221
  transformOrigin: '50% 50%'
224
- })), "".concat(numberPrefixCls), _defineProperty(_defineProperty({
225
- overflow: 'hidden'
222
+ })), numberPrefixCls, _defineProperty(_defineProperty({
223
+ overflow: 'hidden',
224
+ transition: "all ".concat(token.motionDurationMid, " ").concat(token.motionEaseOutBack)
226
225
  }, "".concat(numberPrefixCls, "-only"), _defineProperty({
227
226
  position: 'relative',
228
227
  display: 'inline-block',
@@ -251,7 +250,7 @@ export var prepareToken = function prepareToken(token) {
251
250
  colorBorderBg = token.colorBorderBg;
252
251
  var badgeFontHeight = fontHeight;
253
252
  var badgeShadowSize = lineWidth;
254
- var badgeTextColor = token.colorBgContainer;
253
+ var badgeTextColor = token.colorTextLightSolid;
255
254
  var badgeColor = token.colorError;
256
255
  var badgeColorHover = token.colorErrorHover;
257
256
  var badgeToken = mergeToken(token, {
@@ -24,9 +24,9 @@ var genRibbonStyle = function genRibbonStyle(token) {
24
24
  color: darkColor
25
25
  });
26
26
  });
27
- return _defineProperty(_defineProperty({}, "".concat(ribbonWrapperPrefixCls), {
27
+ return _defineProperty(_defineProperty({}, ribbonWrapperPrefixCls, {
28
28
  position: 'relative'
29
- }), "".concat(ribbonPrefixCls), _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty({
29
+ }), ribbonPrefixCls, _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty({
30
30
  position: 'absolute',
31
31
  top: marginXS,
32
32
  padding: "0 ".concat(unit(token.paddingXS)),
@@ -36,7 +36,7 @@ var genRibbonStyle = function genRibbonStyle(token) {
36
36
  backgroundColor: token.colorPrimary,
37
37
  borderRadius: token.borderRadiusSM
38
38
  }, "".concat(ribbonPrefixCls, "-text"), {
39
- color: token.colorTextLightSolid
39
+ color: token.badgeTextColor
40
40
  }), "".concat(ribbonPrefixCls, "-corner"), {
41
41
  position: 'absolute',
42
42
  top: '100%',
@@ -13,22 +13,22 @@ var BehaviorPattern = function BehaviorPattern() {
13
13
  children: [{
14
14
  id: '707000085',
15
15
  label: '了解当前页面的位置',
16
- link: 'components-breadcrumb-index-tab-design-demo-basic'
16
+ link: 'breadcrumb-index-tab-design-demo-basic'
17
17
  }, {
18
18
  id: '707000086',
19
19
  label: '了解系统层级结构',
20
- link: 'components-breadcrumb-index-tab-design-demo-basic'
20
+ link: 'breadcrumb-index-tab-design-demo-basic'
21
21
  }]
22
22
  }, {
23
23
  id: '200000005',
24
24
  label: '向上导航',
25
25
  targetType: 'mvp',
26
- link: 'components-breadcrumb-index-tab-design-demo-basic'
26
+ link: 'breadcrumb-index-tab-design-demo-basic'
27
27
  }, {
28
28
  id: '200000006',
29
29
  label: '快捷导航',
30
30
  targetType: 'extension',
31
- link: 'components-breadcrumb-index-tab-design-demo-overlay'
31
+ link: 'breadcrumb-index-tab-design-demo-overlay'
32
32
  }]
33
33
  }
34
34
  });
@@ -34,7 +34,7 @@ var genBreadcrumbStyle = function genBreadcrumbStyle(token) {
34
34
  color: token.linkHoverColor,
35
35
  backgroundColor: token.colorBgTextHover
36
36
  }
37
- }, genFocusStyle(token))), "li:last-child", {
37
+ }, genFocusStyle(token))), 'li:last-child', {
38
38
  color: token.lastItemColor
39
39
  }), "".concat(componentCls, "-separator"), {
40
40
  marginInline: token.separatorMargin,
@@ -70,7 +70,7 @@ export var prepareComponentToken = function prepareComponentToken(token) {
70
70
  lastItemColor: token.colorText,
71
71
  iconFontSize: token.fontSize,
72
72
  linkColor: token.colorTextDescription,
73
- linkHoverColor: token.colorPrimaryHover,
73
+ linkHoverColor: token.colorText,
74
74
  separatorColor: token.colorTextDescription,
75
75
  separatorMargin: token.marginXS
76
76
  };
@@ -14,10 +14,8 @@ var InnerLoadingIcon = /*#__PURE__*/forwardRef(function (props, ref) {
14
14
  var prefixCls = props.prefixCls,
15
15
  className = props.className,
16
16
  style = props.style,
17
- iconClassName = props.iconClassName,
18
- _props$iconPosition = props.iconPosition,
19
- iconPosition = _props$iconPosition === void 0 ? 'start' : _props$iconPosition;
20
- var mergedIconCls = classNames(className, _defineProperty(_defineProperty({}, "".concat(prefixCls, "-loading-icon-end"), iconPosition === 'end'), "".concat(prefixCls, "-loading-icon"), iconPosition === 'start'));
17
+ iconClassName = props.iconClassName;
18
+ var mergedIconCls = classNames("".concat(prefixCls, "-loading-icon"), className);
21
19
  return _jsx(IconWrapper, {
22
20
  prefixCls: prefixCls,
23
21
  className: mergedIconCls,
@@ -47,15 +45,13 @@ var LoadingIcon = function LoadingIcon(props) {
47
45
  loading = props.loading,
48
46
  existIcon = props.existIcon,
49
47
  className = props.className,
50
- style = props.style,
51
- iconPosition = props.iconPosition;
48
+ style = props.style;
52
49
  var visible = !!loading;
53
50
  if (existIcon) {
54
51
  return _jsx(InnerLoadingIcon, {
55
52
  prefixCls: prefixCls,
56
53
  className: className,
57
- style: style,
58
- iconPosition: iconPosition
54
+ style: style
59
55
  });
60
56
  }
61
57
  return _jsx(CSSMotion, {
@@ -78,8 +74,7 @@ var LoadingIcon = function LoadingIcon(props) {
78
74
  className: className,
79
75
  style: _objectSpread(_objectSpread({}, style), motionStyle),
80
76
  ref: ref,
81
- iconClassName: motionCls,
82
- iconPosition: iconPosition
77
+ iconClassName: motionCls
83
78
  });
84
79
  }
85
80
  });
@@ -40,7 +40,6 @@ var ButtonGroup = function ButtonGroup(props) {
40
40
  case 'small':
41
41
  sizeCls = 'sm';
42
42
  break;
43
- case 'middle':
44
43
  default:
45
44
  // Do nothing
46
45
  }