@chaoswise/ui 3.0.23 → 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 (405) hide show
  1. package/lib/Antd5/_util/ActionButton.js +4 -2
  2. package/lib/Antd5/_util/ContextIsolator.js +27 -0
  3. package/lib/Antd5/_util/easings.js +2 -2
  4. package/lib/Antd5/_util/getScroll.js +9 -8
  5. package/lib/Antd5/_util/hooks/useClosable.js +3 -2
  6. package/lib/Antd5/_util/hooks/useUniqueMemo.js +123 -0
  7. package/lib/Antd5/_util/hooks/useZIndex.js +31 -15
  8. package/lib/Antd5/_util/motion.js +3 -2
  9. package/lib/Antd5/_util/placements.js +2 -2
  10. package/lib/Antd5/_util/scrollTo.js +1 -1
  11. package/lib/Antd5/_util/statusUtils.js +1 -1
  12. package/lib/Antd5/_util/toList.js +5 -0
  13. package/lib/Antd5/_util/warning.js +0 -1
  14. package/lib/Antd5/_util/wave/WaveEffect.js +2 -2
  15. package/lib/Antd5/_util/wave/interface.js +2 -1
  16. package/lib/Antd5/_util/wave/useWave.js +1 -1
  17. package/lib/Antd5/_util/wave/util.js +1 -9
  18. package/lib/Antd5/alert/Alert.js +1 -2
  19. package/lib/Antd5/alert/ErrorBoundary.js +1 -1
  20. package/lib/Antd5/alert/design/behavior-pattern.js +3 -3
  21. package/lib/Antd5/alert/style/index.js +6 -4
  22. package/lib/Antd5/anchor/Anchor.js +8 -7
  23. package/lib/Antd5/anchor/AnchorLink.js +4 -4
  24. package/lib/Antd5/app/index.js +2 -1
  25. package/lib/Antd5/app/style/index.js +5 -4
  26. package/lib/Antd5/auto-complete/index.js +1 -1
  27. package/lib/Antd5/avatar/group.js +35 -17
  28. package/lib/Antd5/avatar/style/index.js +18 -13
  29. package/lib/Antd5/back-top/index.js +3 -2
  30. package/lib/Antd5/badge/ScrollNumber.js +1 -1
  31. package/lib/Antd5/badge/SingleNumber.js +17 -16
  32. package/lib/Antd5/badge/style/index.js +6 -7
  33. package/lib/Antd5/badge/style/ribbon.js +3 -3
  34. package/lib/Antd5/breadcrumb/design/behavior-pattern.js +4 -4
  35. package/lib/Antd5/breadcrumb/style/index.js +2 -2
  36. package/lib/Antd5/button/LoadingIcon.js +5 -10
  37. package/lib/Antd5/button/button-group.js +0 -1
  38. package/lib/Antd5/button/button.js +70 -41
  39. package/lib/Antd5/button/buttonHelpers.js +7 -5
  40. package/lib/Antd5/button/style/{compactCmp.js → compact.js} +20 -27
  41. package/lib/Antd5/button/style/group.js +9 -7
  42. package/lib/Antd5/button/style/index.js +150 -110
  43. package/lib/Antd5/button/style/token.js +8 -1
  44. package/lib/Antd5/calendar/generateCalendar.js +25 -28
  45. package/lib/Antd5/calendar/style/index.js +4 -4
  46. package/lib/Antd5/card/Card.js +3 -3
  47. package/lib/Antd5/card/style/index.js +6 -9
  48. package/lib/Antd5/carousel/index.js +3 -3
  49. package/lib/Antd5/carousel/style/index.js +1 -1
  50. package/lib/Antd5/cascader/Panel.js +7 -2
  51. package/lib/Antd5/cascader/hooks/useBase.js +3 -2
  52. package/lib/Antd5/cascader/hooks/useColumnIcons.js +6 -3
  53. package/lib/Antd5/cascader/index.js +1 -1
  54. package/lib/Antd5/cascader/style/columns.js +6 -4
  55. package/lib/Antd5/checkbox/Checkbox.js +11 -5
  56. package/lib/Antd5/checkbox/style/index.js +6 -3
  57. package/lib/Antd5/collapse/Collapse.js +2 -1
  58. package/lib/Antd5/collapse/style/index.js +20 -13
  59. package/lib/Antd5/color-picker/ColorPicker.js +120 -78
  60. package/lib/Antd5/color-picker/ColorPickerPanel.js +44 -26
  61. package/lib/Antd5/color-picker/color.js +82 -10
  62. package/lib/Antd5/color-picker/components/ColorAlphaInput.js +2 -2
  63. package/lib/Antd5/color-picker/components/ColorClear.js +2 -2
  64. package/lib/Antd5/color-picker/components/ColorHexInput.js +5 -4
  65. package/lib/Antd5/color-picker/components/ColorInput.js +4 -3
  66. package/lib/Antd5/color-picker/components/ColorPresets.js +1 -1
  67. package/lib/Antd5/color-picker/components/ColorSlider.js +139 -0
  68. package/lib/Antd5/color-picker/components/ColorTrigger.js +52 -26
  69. package/lib/Antd5/color-picker/components/PanelPicker/GradientColorBar.js +130 -0
  70. package/lib/Antd5/color-picker/components/PanelPicker/index.js +194 -0
  71. package/lib/Antd5/color-picker/context.js +1 -5
  72. package/lib/Antd5/color-picker/hooks/useModeColor.js +87 -0
  73. package/lib/Antd5/color-picker/style/color-block.js +3 -2
  74. package/lib/Antd5/color-picker/style/index.js +33 -15
  75. package/lib/Antd5/color-picker/style/input.js +1 -1
  76. package/lib/Antd5/color-picker/style/picker.js +6 -33
  77. package/lib/Antd5/color-picker/style/slider.js +87 -0
  78. package/lib/Antd5/color-picker/util.js +53 -7
  79. package/lib/Antd5/config-provider/context.js +3 -1
  80. package/lib/Antd5/config-provider/cssVariables.js +0 -1
  81. package/lib/Antd5/config-provider/defaultRenderEmpty.js +8 -1
  82. package/lib/Antd5/config-provider/index.js +13 -5
  83. package/lib/Antd5/config-provider/style/index.js +0 -1
  84. package/lib/Antd5/date-picker/PickerButton.js +3 -2
  85. package/lib/Antd5/date-picker/design/behavior-pattern.js +15 -15
  86. package/lib/Antd5/date-picker/generatePicker/constant.js +15 -0
  87. package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +16 -11
  88. package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +19 -15
  89. package/lib/Antd5/date-picker/generatePicker/index.js +2 -2
  90. package/lib/Antd5/date-picker/generatePicker/interface.js +1 -1
  91. package/lib/Antd5/date-picker/index.js +2 -17
  92. package/lib/Antd5/date-picker/locale/ar_EG.js +9 -1
  93. package/lib/Antd5/date-picker/locale/az_AZ.js +9 -1
  94. package/lib/Antd5/date-picker/locale/el_GR.js +9 -1
  95. package/lib/Antd5/date-picker/locale/ja_JP.js +11 -1
  96. package/lib/Antd5/date-picker/locale/kn_IN.js +9 -1
  97. package/lib/Antd5/date-picker/locale/pl_PL.js +9 -1
  98. package/lib/Antd5/date-picker/locale/uk_UA.js +10 -1
  99. package/lib/Antd5/date-picker/style/index.js +13 -10
  100. package/lib/Antd5/date-picker/style/panel.js +36 -32
  101. package/lib/Antd5/date-picker/style/token.js +1 -1
  102. package/lib/Antd5/date-picker/util.js +0 -48
  103. package/lib/Antd5/descriptions/hooks/useItems.js +5 -0
  104. package/lib/Antd5/descriptions/hooks/useRow.js +42 -34
  105. package/lib/Antd5/descriptions/style/index.js +20 -8
  106. package/lib/Antd5/divider/index.js +4 -3
  107. package/lib/Antd5/divider/style/index.js +19 -4
  108. package/lib/Antd5/drawer/DrawerPanel.js +11 -20
  109. package/lib/Antd5/drawer/index.js +39 -42
  110. package/lib/Antd5/drawer/style/index.js +10 -11
  111. package/lib/Antd5/dropdown/dropdown.js +5 -7
  112. package/lib/Antd5/dropdown/style/index.js +27 -11
  113. package/lib/Antd5/empty/empty.js +9 -3
  114. package/lib/Antd5/empty/simple.js +9 -3
  115. package/lib/Antd5/empty/style/index.js +1 -1
  116. package/lib/Antd5/float-button/BackTop.js +3 -2
  117. package/lib/Antd5/float-button/FloatButton.js +16 -5
  118. package/lib/Antd5/float-button/FloatButtonGroup.js +76 -52
  119. package/lib/Antd5/float-button/style/index.js +117 -76
  120. package/lib/Antd5/float-button/style/keyframes.js +118 -0
  121. package/lib/Antd5/form/ErrorList.js +14 -2
  122. package/lib/Antd5/form/Form.js +11 -3
  123. package/lib/Antd5/form/FormItem/ItemHolder.js +8 -4
  124. package/lib/Antd5/form/FormItem/index.js +6 -4
  125. package/lib/Antd5/form/FormItemInput.js +68 -28
  126. package/lib/Antd5/form/FormItemLabel.js +3 -3
  127. package/lib/Antd5/form/hooks/useForm.js +8 -1
  128. package/lib/Antd5/form/hooks/useVariants.js +10 -4
  129. package/lib/Antd5/form/style/explain.js +9 -8
  130. package/lib/Antd5/form/style/index.js +30 -18
  131. package/lib/Antd5/grid/row.js +2 -2
  132. package/lib/Antd5/image/index.js +3 -1
  133. package/lib/Antd5/image/style/index.js +17 -20
  134. package/lib/Antd5/index.js +2 -1
  135. package/lib/Antd5/input/Input.js +18 -38
  136. package/lib/Antd5/input/OTP/OTPInput.js +10 -5
  137. package/lib/Antd5/input/OTP/index.js +12 -4
  138. package/lib/Antd5/input/Password.js +6 -2
  139. package/lib/Antd5/input/Search.js +2 -4
  140. package/lib/Antd5/input/TextArea.js +1 -1
  141. package/lib/Antd5/input/style/index.js +72 -63
  142. package/lib/Antd5/input/style/otp.js +1 -1
  143. package/lib/Antd5/input/style/variants.js +38 -23
  144. package/lib/Antd5/input/utils.js +0 -1
  145. package/lib/Antd5/input-number/index.js +19 -22
  146. package/lib/Antd5/input-number/style/index.js +26 -16
  147. package/lib/Antd5/layout/Sider.js +15 -8
  148. package/lib/Antd5/layout/style/index.js +6 -96
  149. package/lib/Antd5/layout/style/sider.js +115 -0
  150. package/lib/Antd5/list/Item.js +18 -5
  151. package/lib/Antd5/list/index.js +15 -10
  152. package/lib/Antd5/list/style/index.js +40 -41
  153. package/lib/Antd5/locale/ar_EG.js +14 -1
  154. package/lib/Antd5/locale/az_AZ.js +78 -28
  155. package/lib/Antd5/locale/bn_BD.js +0 -1
  156. package/lib/Antd5/locale/by_BY.js +0 -1
  157. package/lib/Antd5/locale/ca_ES.js +0 -1
  158. package/lib/Antd5/locale/cs_CZ.js +0 -1
  159. package/lib/Antd5/locale/de_DE.js +0 -1
  160. package/lib/Antd5/locale/el_GR.js +104 -3
  161. package/lib/Antd5/locale/en_GB.js +0 -1
  162. package/lib/Antd5/locale/en_US.js +4 -2
  163. package/lib/Antd5/locale/es_ES.js +10 -6
  164. package/lib/Antd5/locale/et_EE.js +0 -1
  165. package/lib/Antd5/locale/eu_ES.js +4 -2
  166. package/lib/Antd5/locale/fa_IR.js +0 -1
  167. package/lib/Antd5/locale/fr_BE.js +5 -1
  168. package/lib/Antd5/locale/fr_CA.js +0 -1
  169. package/lib/Antd5/locale/fr_FR.js +5 -6
  170. package/lib/Antd5/locale/ga_IE.js +0 -1
  171. package/lib/Antd5/locale/gl_ES.js +0 -1
  172. package/lib/Antd5/locale/he_IL.js +0 -1
  173. package/lib/Antd5/locale/hi_IN.js +0 -1
  174. package/lib/Antd5/locale/hr_HR.js +0 -1
  175. package/lib/Antd5/locale/id_ID.js +4 -2
  176. package/lib/Antd5/locale/index.js +1 -1
  177. package/lib/Antd5/locale/it_IT.js +0 -1
  178. package/lib/Antd5/locale/ja_JP.js +4 -2
  179. package/lib/Antd5/locale/ka_GE.js +0 -1
  180. package/lib/Antd5/locale/kk_KZ.js +0 -1
  181. package/lib/Antd5/locale/km_KH.js +0 -1
  182. package/lib/Antd5/locale/kn_IN.js +82 -4
  183. package/lib/Antd5/locale/ko_KR.js +4 -2
  184. package/lib/Antd5/locale/lt_LT.js +4 -2
  185. package/lib/Antd5/locale/ml_IN.js +0 -1
  186. package/lib/Antd5/locale/mn_MN.js +86 -2
  187. package/lib/Antd5/locale/ms_MY.js +101 -18
  188. package/lib/Antd5/locale/my_MM.js +0 -1
  189. package/lib/Antd5/locale/nb_NO.js +0 -1
  190. package/lib/Antd5/locale/ne_NP.js +104 -2
  191. package/lib/Antd5/locale/nl_BE.js +5 -1
  192. package/lib/Antd5/locale/nl_NL.js +5 -1
  193. package/lib/Antd5/locale/pl_PL.js +0 -1
  194. package/lib/Antd5/locale/pt_BR.js +0 -1
  195. package/lib/Antd5/locale/pt_PT.js +55 -38
  196. package/lib/Antd5/locale/ro_RO.js +0 -1
  197. package/lib/Antd5/locale/ru_RU.js +9 -2
  198. package/lib/Antd5/locale/si_LK.js +0 -1
  199. package/lib/Antd5/locale/sk_SK.js +0 -1
  200. package/lib/Antd5/locale/sr_RS.js +0 -1
  201. package/lib/Antd5/locale/sv_SE.js +0 -1
  202. package/lib/Antd5/locale/th_TH.js +11 -3
  203. package/lib/Antd5/locale/tk_TK.js +0 -1
  204. package/lib/Antd5/locale/tr_TR.js +2 -1
  205. package/lib/Antd5/locale/uk_UA.js +1 -1
  206. package/lib/Antd5/locale/ur_PK.js +0 -1
  207. package/lib/Antd5/locale/uz_UZ.js +6 -7
  208. package/lib/Antd5/locale/zh_CN.js +4 -2
  209. package/lib/Antd5/locale/zh_HK.js +0 -1
  210. package/lib/Antd5/locale/zh_TW.js +0 -1
  211. package/lib/Antd5/mentions/index.js +4 -4
  212. package/lib/Antd5/menu/MenuItem.js +6 -5
  213. package/lib/Antd5/menu/OverrideContext.js +4 -3
  214. package/lib/Antd5/menu/SubMenu.js +2 -2
  215. package/lib/Antd5/menu/menu.js +2 -2
  216. package/lib/Antd5/menu/style/index.js +58 -40
  217. package/lib/Antd5/menu/style/theme.js +24 -20
  218. package/lib/Antd5/menu/style/vertical.js +10 -7
  219. package/lib/Antd5/message/PurePanel.js +22 -40
  220. package/lib/Antd5/message/style/index.js +8 -47
  221. package/lib/Antd5/message/useMessage.js +3 -15
  222. package/lib/Antd5/modal/Modal.js +50 -38
  223. package/lib/Antd5/modal/PurePanel.js +0 -1
  224. package/lib/Antd5/modal/confirm.js +4 -5
  225. package/lib/Antd5/modal/style/confirm.js +1 -2
  226. package/lib/Antd5/modal/style/index.js +13 -3
  227. package/lib/Antd5/modal/useModal/HookModal.js +4 -3
  228. package/lib/Antd5/modal/useModal/index.js +0 -1
  229. package/lib/Antd5/notification/index.js +6 -3
  230. package/lib/Antd5/notification/style/index.js +35 -3
  231. package/lib/Antd5/notification/useNotification.js +6 -1
  232. package/lib/Antd5/pagination/Pagination.js +10 -5
  233. package/lib/Antd5/pagination/design/behavior-pattern.js +3 -3
  234. package/lib/Antd5/pagination/style/bordered.js +1 -1
  235. package/lib/Antd5/pagination/style/index.js +27 -18
  236. package/lib/Antd5/popconfirm/PurePanel.js +7 -7
  237. package/lib/Antd5/popover/PurePanel.js +16 -6
  238. package/lib/Antd5/popover/index.js +7 -19
  239. package/lib/Antd5/popover/style/index.js +3 -1
  240. package/lib/Antd5/progress/Line.js +27 -19
  241. package/lib/Antd5/progress/design/behavior-pattern.js +3 -3
  242. package/lib/Antd5/progress/progress.js +37 -11
  243. package/lib/Antd5/progress/style/index.js +46 -11
  244. package/lib/Antd5/progress/utils.js +20 -18
  245. package/lib/Antd5/qr-code/QrcodeStatus.js +42 -0
  246. package/lib/Antd5/qr-code/index.js +31 -31
  247. package/lib/Antd5/rate/index.js +8 -2
  248. package/lib/Antd5/result/noFound.js +3 -1
  249. package/lib/Antd5/result/serverError.js +3 -1
  250. package/lib/Antd5/result/unauthorized.js +5 -3
  251. package/lib/Antd5/segmented/index.js +5 -3
  252. package/lib/Antd5/segmented/style/index.js +11 -3
  253. package/lib/Antd5/select/index.js +4 -2
  254. package/lib/Antd5/select/style/dropdown.js +1 -1
  255. package/lib/Antd5/select/style/index.js +21 -8
  256. package/lib/Antd5/select/style/multiple.js +18 -9
  257. package/lib/Antd5/select/style/single.js +8 -10
  258. package/lib/Antd5/select/style/token.js +9 -2
  259. package/lib/Antd5/select/style/variants.js +20 -11
  260. package/lib/Antd5/skeleton/Image.js +6 -4
  261. package/lib/Antd5/skeleton/Node.js +1 -3
  262. package/lib/Antd5/skeleton/Paragraph.js +1 -1
  263. package/lib/Antd5/skeleton/Title.js +9 -6
  264. package/lib/Antd5/skeleton/style/index.js +13 -13
  265. package/lib/Antd5/slider/Context.js +4 -0
  266. package/lib/Antd5/slider/SliderTooltip.js +9 -5
  267. package/lib/Antd5/slider/index.js +32 -31
  268. package/lib/Antd5/slider/style/index.js +60 -44
  269. package/lib/Antd5/space/Compact.js +1 -1
  270. package/lib/Antd5/space/index.js +3 -3
  271. package/lib/Antd5/spin/Indicator/Looper.js +29 -0
  272. package/lib/Antd5/spin/Indicator/Progress.js +78 -0
  273. package/lib/Antd5/spin/Indicator/index.js +21 -0
  274. package/lib/Antd5/spin/index.js +27 -45
  275. package/lib/Antd5/spin/style/index.js +54 -17
  276. package/lib/Antd5/spin/usePercent.js +40 -0
  277. package/lib/Antd5/splitter/Panel.js +36 -0
  278. package/lib/Antd5/splitter/SplitBar.js +124 -0
  279. package/lib/Antd5/splitter/Splitter.js +194 -0
  280. package/lib/Antd5/{_util/transButton.js → splitter/hooks/useItems.js} +28 -54
  281. package/lib/Antd5/splitter/hooks/useResizable.js +43 -0
  282. package/lib/Antd5/splitter/hooks/useResize.js +138 -0
  283. package/lib/Antd5/splitter/hooks/useSizes.js +109 -0
  284. package/lib/Antd5/splitter/index.js +5 -0
  285. package/lib/Antd5/splitter/interface.js +1 -0
  286. package/lib/Antd5/splitter/style/index.js +219 -0
  287. package/lib/Antd5/statistic/style/index.js +1 -1
  288. package/lib/Antd5/steps/style/custom-icon.js +1 -1
  289. package/lib/Antd5/steps/style/index.js +11 -8
  290. package/lib/Antd5/steps/style/inline.js +5 -4
  291. package/lib/Antd5/steps/style/progress-dot.js +2 -2
  292. package/lib/Antd5/steps/style/small.js +3 -3
  293. package/lib/Antd5/steps/style/vertical.js +2 -2
  294. package/lib/Antd5/style/index.js +37 -13
  295. package/lib/Antd5/style/motion/slide.js +6 -5
  296. package/lib/Antd5/style/placementArrow.js +15 -6
  297. package/lib/Antd5/switch/style/index.js +1 -1
  298. package/lib/Antd5/table/Column.js +2 -3
  299. package/lib/Antd5/table/ColumnGroup.js +2 -3
  300. package/lib/Antd5/table/ExpandIcon.js +6 -6
  301. package/lib/Antd5/table/InternalTable.js +6 -6
  302. package/lib/Antd5/table/RcTable/VirtualTable.js +3 -2
  303. package/lib/Antd5/table/RcTable/index.js +3 -2
  304. package/lib/Antd5/table/hooks/useFilter/FilterDropdown.js +82 -61
  305. package/lib/Antd5/table/hooks/useFilter/FilterSearch.js +7 -7
  306. package/lib/Antd5/table/hooks/useFilter/index.js +28 -26
  307. package/lib/Antd5/table/hooks/useLazyKVMap.js +5 -5
  308. package/lib/Antd5/table/hooks/useSelection.js +21 -11
  309. package/lib/Antd5/table/hooks/useSorter.js +66 -42
  310. package/lib/Antd5/table/hooks/useTitleColumns.js +9 -7
  311. package/lib/Antd5/table/interface.js +1 -1
  312. package/lib/Antd5/table/style/bordered.js +5 -3
  313. package/lib/Antd5/table/style/expand.js +44 -38
  314. package/lib/Antd5/table/style/filter.js +1 -1
  315. package/lib/Antd5/table/style/index.js +26 -21
  316. package/lib/Antd5/table/style/selection.js +3 -1
  317. package/lib/Antd5/table/style/sorter.js +3 -1
  318. package/lib/Antd5/table/style/virtual.js +2 -2
  319. package/lib/Antd5/table/util.js +9 -8
  320. package/lib/Antd5/tabs/style/index.js +2 -2
  321. package/lib/Antd5/tag/style/index.js +2 -2
  322. package/lib/Antd5/theme/index.js +12 -5
  323. package/lib/Antd5/theme/interface/cssinjs-utils.js +1 -0
  324. package/lib/Antd5/theme/internal.js +10 -5
  325. package/lib/Antd5/theme/themes/dark/colors.js +3 -0
  326. package/lib/Antd5/theme/themes/dark/index.js +1 -0
  327. package/lib/Antd5/theme/themes/default/colors.js +3 -0
  328. package/lib/Antd5/theme/themes/default/index.js +6 -2
  329. package/lib/Antd5/theme/themes/seed.js +5 -2
  330. package/lib/Antd5/theme/themes/shared/genColorMapToken.js +2 -0
  331. package/lib/Antd5/theme/themes/shared/genFontSizes.js +1 -1
  332. package/lib/Antd5/theme/useToken.js +2 -1
  333. package/lib/Antd5/theme/util/alias.js +1 -1
  334. package/lib/Antd5/theme/util/genStyleUtils.js +61 -0
  335. package/lib/Antd5/time-picker/index.js +15 -2
  336. package/lib/Antd5/time-picker/locale/az_AZ.js +2 -1
  337. package/lib/Antd5/time-picker/locale/it_IT.js +2 -1
  338. package/lib/Antd5/time-picker/locale/uk_UA.js +2 -1
  339. package/lib/Antd5/timeline/TimelineItemList.js +0 -1
  340. package/lib/Antd5/timeline/style/index.js +1 -1
  341. package/lib/Antd5/tooltip/index.js +3 -2
  342. package/lib/Antd5/tooltip/style/index.js +3 -1
  343. package/lib/Antd5/tooltip/util.js +0 -1
  344. package/lib/Antd5/tour/panelRender.js +7 -13
  345. package/lib/Antd5/tour/style/index.js +6 -13
  346. package/lib/Antd5/transfer/ListItem.js +3 -3
  347. package/lib/Antd5/transfer/hooks/useData.js +1 -1
  348. package/lib/Antd5/transfer/hooks/useSelection.js +26 -21
  349. package/lib/Antd5/transfer/style/index.js +12 -22
  350. package/lib/Antd5/tree/Tree.js +2 -0
  351. package/lib/Antd5/tree/style/directory.js +39 -0
  352. package/lib/Antd5/tree/style/index.js +115 -166
  353. package/lib/Antd5/tree/utils/dropIndicator.js +3 -2
  354. package/lib/Antd5/tree/utils/iconUtil.js +5 -1
  355. package/lib/Antd5/tree-select/index.js +47 -43
  356. package/lib/Antd5/typography/Base/CopyBtn.js +17 -17
  357. package/lib/Antd5/typography/Base/Ellipsis.js +48 -40
  358. package/lib/Antd5/typography/Base/index.js +20 -60
  359. package/lib/Antd5/typography/Base/util.js +31 -1
  360. package/lib/Antd5/typography/Editable.js +11 -10
  361. package/lib/Antd5/typography/Title.js +1 -6
  362. package/lib/Antd5/typography/Typography.js +2 -6
  363. package/lib/Antd5/typography/hooks/useCopyClick.js +3 -2
  364. package/lib/Antd5/typography/hooks/usePrevious.js +1 -1
  365. package/lib/Antd5/{message/assets/Close.js → typography/hooks/useTooltipProps.js} +24 -16
  366. package/lib/Antd5/typography/style/mixins.js +3 -9
  367. package/lib/Antd5/upload/Upload.js +55 -83
  368. package/lib/Antd5/upload/UploadList/ListItem.js +15 -9
  369. package/lib/Antd5/upload/UploadList/index.js +33 -47
  370. package/lib/Antd5/upload/style/dragger.js +5 -26
  371. package/lib/Antd5/upload/style/list.js +2 -7
  372. package/lib/Antd5/version/version.js +1 -1
  373. package/lib/Antd5/watermark/context.js +1 -1
  374. package/lib/Antd5/watermark/index.js +35 -18
  375. package/lib/Antd5/watermark/useClips.js +2 -1
  376. package/lib/Antd5/watermark/useRafDebounce.js +1 -1
  377. package/lib/Antd5/watermark/utils.js +1 -1
  378. package/lib/CWSelect/index.js +39 -1
  379. package/lib/CWSelect/index.style.js +39 -0
  380. package/lib/CWTree/index.js +3 -9
  381. package/lib/CWTree/index.style.js +2 -0
  382. package/lib/ConfigProvider/ConfigProvider.js +9 -10
  383. package/lib/ConfigProvider/customTheme.js +6 -0
  384. package/lib/ConfigProvider/theme/common.js +140 -0
  385. package/lib/ConfigProvider/theme/dark.js +2 -0
  386. package/lib/ConfigProvider/theme/default.js +115 -0
  387. package/lib/ConfigProvider/theme/utils.js +49 -0
  388. package/lib/QuickTransfer/index.js +45 -59
  389. package/lib/Splitter/index.js +2 -0
  390. package/package.json +37 -35
  391. package/lib/Antd5/color-picker/components/PanelPicker.js +0 -53
  392. package/lib/Antd5/color-picker/hooks/useColorState.js +0 -53
  393. package/lib/Antd5/layout/style/light.js +0 -24
  394. package/lib/Antd5/style/operationUnit.js +0 -18
  395. package/lib/Antd5/theme/util/calc/CSSCalculator.js +0 -119
  396. package/lib/Antd5/theme/util/calc/NumCalculator.js +0 -81
  397. package/lib/Antd5/theme/util/calc/calculator.js +0 -10
  398. package/lib/Antd5/theme/util/calc/index.js +0 -9
  399. package/lib/Antd5/theme/util/genComponentStyleHook.js +0 -243
  400. package/lib/Antd5/theme/util/maxmin.js +0 -27
  401. package/lib/Antd5/theme/util/statistic.js +0 -74
  402. package/lib/Antd5/typography/hooks/useUpdatedEffect.js +0 -13
  403. package/lib/Antd5/version/token-meta.json +0 -1
  404. package/lib/Antd5/version/token.json +0 -1
  405. package/lib/ConfigProvider/customTheme.json +0 -163
@@ -9,7 +9,15 @@ import TimePickerLocale from '../../time-picker/locale/az_AZ';
9
9
  var locale = {
10
10
  lang: _objectSpread({
11
11
  placeholder: 'Tarix seçin',
12
- rangePlaceholder: ['Başlama tarixi', 'Bitmə tarixi']
12
+ rangePlaceholder: ['Başlama tarixi', 'Bitmə tarixi'],
13
+ yearPlaceholder: 'İl seçin',
14
+ quarterPlaceholder: 'Rüb seçin',
15
+ monthPlaceholder: 'Ay seçin',
16
+ weekPlaceholder: 'Həftə seçin',
17
+ rangeYearPlaceholder: ['Başlama il', 'Bitmə il'],
18
+ rangeQuarterPlaceholder: ['Başlama rüb', 'Bitmə rüb'],
19
+ rangeMonthPlaceholder: ['Başlama ay', 'Bitmə ay'],
20
+ rangeWeekPlaceholder: ['Başlama həftə', 'Bitmə həftə']
13
21
  }, CalendarLocale),
14
22
  timePickerLocale: _objectSpread({}, TimePickerLocale)
15
23
  };
@@ -10,7 +10,15 @@ import TimePickerLocale from '../../time-picker/locale/el_GR';
10
10
  var locale = {
11
11
  lang: _objectSpread({
12
12
  placeholder: 'Επιλέξτε ημερομηνία',
13
- rangePlaceholder: ['Αρχική ημερομηνία', 'Τελική ημερομηνία']
13
+ yearPlaceholder: 'Επιλέξτε έτος',
14
+ quarterPlaceholder: 'Επιλέξτε τρίμηνο',
15
+ monthPlaceholder: 'Επιλέξτε μήνα',
16
+ weekPlaceholder: 'Επιλέξτε εβδομάδα',
17
+ rangePlaceholder: ['Αρχική ημερομηνία', 'Τελική ημερομηνία'],
18
+ rangeYearPlaceholder: ['Αρχικό έτος', 'Τελικό έτος'],
19
+ rangeMonthPlaceholder: ['Αρχικός μήνας', 'Τελικός μήνας'],
20
+ rangeQuarterPlaceholder: ['Αρχικό τρίμηνο', 'Τελικό τρίμηνο'],
21
+ rangeWeekPlaceholder: ['Αρχική εβδομάδα', 'Τελική εβδομάδα']
14
22
  }, CalendarLocale),
15
23
  timePickerLocale: _objectSpread({}, TimePickerLocale)
16
24
  };
@@ -10,7 +10,17 @@ import TimePickerLocale from '../../time-picker/locale/ja_JP';
10
10
  var locale = {
11
11
  lang: _objectSpread({
12
12
  placeholder: '日付を選択',
13
- rangePlaceholder: ['開始日付', '終了日付']
13
+ yearPlaceholder: '年を選択',
14
+ quarterPlaceholder: '四半期を選択',
15
+ monthPlaceholder: '月を選択',
16
+ weekPlaceholder: '週を選択',
17
+ rangePlaceholder: ['開始日付', '終了日付'],
18
+ rangeYearPlaceholder: ['開始年', '終了年'],
19
+ rangeMonthPlaceholder: ['開始月', '終了月'],
20
+ rangeQuarterPlaceholder: ['開始四半期', '終了四半期'],
21
+ rangeWeekPlaceholder: ['開始週', '終了週'],
22
+ shortWeekDays: ['日', '月', '火', '水', '木', '金', '土'],
23
+ shortMonths: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
14
24
  }, CalendarLocale),
15
25
  timePickerLocale: _objectSpread({}, TimePickerLocale)
16
26
  };
@@ -10,7 +10,15 @@ import TimePickerLocale from '../../time-picker/locale/kn_IN';
10
10
  var locale = {
11
11
  lang: _objectSpread({
12
12
  placeholder: 'ದಿನಾಂಕ ಆಯ್ಕೆಮಾಡಿ',
13
- rangePlaceholder: ['ಪ್ರಾರಂಭ ದಿನಾಂಕ', 'ಅಂತಿಮ ದಿನಾಂಕ']
13
+ yearPlaceholder: 'ವರ್ಷ ಆಯ್ಕೆಮಾಡಿ',
14
+ rangePlaceholder: ['ಪ್ರಾರಂಭ ದಿನಾಂಕ', 'ಅಂತಿಮ ದಿನಾಂಕ'],
15
+ quarterPlaceholder: 'ಕಾಲುಭಾಗವನ್ನು ಆಯ್ಕೆಮಾಡಿ',
16
+ monthPlaceholder: 'ತಿಂಗಳನ್ನು ಆಯ್ಕೆಮಾಡಿ',
17
+ weekPlaceholder: 'ವಾರವನ್ನು ಆಯ್ಕೆಮಾಡಿ',
18
+ rangeYearPlaceholder: ['ಉದ್ಘಾಟನಾ ವರ್ಷ', 'ಅಂತಿಮ ವರ್ಷ'],
19
+ rangeQuarterPlaceholder: ['ತ್ರೈಮಾಸಿಕದ ಆರಂಭ', 'ಅಂತಿಮ ತ್ರೈಮಾಸಿಕ'],
20
+ rangeMonthPlaceholder: ['ಆರಂಭಿಕ ತಿಂಗಳು', 'ಅಂತಿಮ ತಿಂಗಳು'],
21
+ rangeWeekPlaceholder: ['ತೆರೆಯುವ ವಾರ', 'ಅಂತಿಮ ವಾರ']
14
22
  }, CalendarLocale),
15
23
  timePickerLocale: _objectSpread({}, TimePickerLocale)
16
24
  };
@@ -10,7 +10,15 @@ import TimePickerLocale from '../../time-picker/locale/pl_PL';
10
10
  var locale = {
11
11
  lang: _objectSpread({
12
12
  placeholder: 'Wybierz datę',
13
- rangePlaceholder: ['Data początkowa', 'Data końcowa']
13
+ rangePlaceholder: ['Data początkowa', 'Data końcowa'],
14
+ yearFormat: 'YYYY',
15
+ dateFormat: 'M/D/YYYY',
16
+ dayFormat: 'D',
17
+ dateTimeFormat: 'M/D/YYYY HH:mm:ss',
18
+ monthFormat: 'MMMM',
19
+ monthBeforeYear: true,
20
+ shortWeekDays: ['Niedz', 'Pon', 'Wt', 'Śr', 'Czw', 'Pt', 'Sob'],
21
+ shortMonths: ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru']
14
22
  }, CalendarLocale),
15
23
  timePickerLocale: _objectSpread({}, TimePickerLocale)
16
24
  };
@@ -10,7 +10,16 @@ import TimePickerLocale from '../../time-picker/locale/uk_UA';
10
10
  var locale = {
11
11
  lang: _objectSpread({
12
12
  placeholder: 'Оберіть дату',
13
- rangePlaceholder: ['Початкова дата', 'Кінцева дата']
13
+ yearPlaceholder: 'Оберіть рік',
14
+ quarterPlaceholder: 'Оберіть квартал',
15
+ monthPlaceholder: 'Оберіть місяць',
16
+ weekPlaceholder: 'Оберіть тиждень',
17
+ rangePlaceholder: ['Початкова дата', 'Кінцева дата'],
18
+ rangeYearPlaceholder: ['Початковий рік', 'Кінцевий рік'],
19
+ rangeMonthPlaceholder: ['Початковий місяць', 'Кінцевий місяць'],
20
+ rangeWeekPlaceholder: ['Початковий тиждень', 'Кінцевий тиждень'],
21
+ shortWeekDays: ['Нд', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
22
+ shortMonths: ['Січ', 'Лют', 'Бер', 'Кві', 'Тра', 'Чер', 'Лип', 'Сер', 'Вер', 'Жов', 'Лис', 'Гру']
14
23
  }, CalendarLocale),
15
24
  timePickerLocale: _objectSpread({}, TimePickerLocale)
16
25
  };
@@ -79,7 +79,9 @@ var genPickerStyle = function genPickerStyle(token) {
79
79
  lineHeight: 1,
80
80
  borderRadius: borderRadius,
81
81
  transition: "border ".concat(motionDurationMid, ", box-shadow ").concat(motionDurationMid, ", background ").concat(motionDurationMid)
82
- }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread4, "".concat(componentCls, "-input"), {
82
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread4, "".concat(componentCls, "-prefix"), {
83
+ marginInlineEnd: token.inputAffixPadding
84
+ }), "".concat(componentCls, "-input"), {
83
85
  position: 'relative',
84
86
  display: 'inline-flex',
85
87
  alignItems: 'center',
@@ -188,7 +190,7 @@ var genPickerStyle = function genPickerStyle(token) {
188
190
  insetInlineEnd: paddingInline
189
191
  }), "&".concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-clear"), {
190
192
  insetInlineEnd: paddingInlineSM
191
- }))), '&-dropdown', _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), genPanelStyle(token)), {}, (_objectSpread3 = {
193
+ }))), _defineProperty(_defineProperty(_defineProperty(_objectSpread4, '&-dropdown', _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), genPanelStyle(token)), {}, (_objectSpread3 = {
192
194
  pointerEvents: 'none',
193
195
  position: 'absolute',
194
196
  // Fix incorrect position of picker popup
@@ -201,11 +203,13 @@ var genPickerStyle = function genPickerStyle(token) {
201
203
  zIndex: zIndexPopup
202
204
  }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread3, "&".concat(componentCls, "-dropdown-hidden"), {
203
205
  display: 'none'
204
- }), "&".concat(componentCls, "-dropdown-placement-bottomLeft"), _defineProperty({}, "".concat(componentCls, "-range-arrow"), {
206
+ }), '&-rtl', {
207
+ direction: 'rtl'
208
+ }), "&".concat(componentCls, "-dropdown-placement-bottomLeft,\n &").concat(componentCls, "-dropdown-placement-bottomRight"), _defineProperty({}, "".concat(componentCls, "-range-arrow"), {
205
209
  top: 0,
206
210
  display: 'block',
207
211
  transform: 'translateY(-100%)'
208
- })), "&".concat(componentCls, "-dropdown-placement-topLeft"), _defineProperty({}, "".concat(componentCls, "-range-arrow"), {
212
+ })), "&".concat(componentCls, "-dropdown-placement-topLeft,\n &").concat(componentCls, "-dropdown-placement-topRight"), _defineProperty({}, "".concat(componentCls, "-range-arrow"), {
209
213
  bottom: 0,
210
214
  display: 'block',
211
215
  transform: 'translateY(100%) rotate(180deg)'
@@ -221,16 +225,16 @@ var genPickerStyle = function genPickerStyle(token) {
221
225
  animationName: slideUpOut
222
226
  }), "".concat(componentCls, "-panel > ").concat(componentCls, "-time-panel"), {
223
227
  paddingTop: paddingXXS
224
- }), "".concat(componentCls, "-range-wrapper"), {
228
+ }), _defineProperty(_defineProperty(_defineProperty(_objectSpread3, "".concat(componentCls, "-range-wrapper"), {
225
229
  display: 'flex',
226
230
  position: 'relative'
227
- }), _defineProperty(_defineProperty(_objectSpread3, "".concat(componentCls, "-range-arrow"), _objectSpread(_objectSpread({
231
+ }), "".concat(componentCls, "-range-arrow"), _objectSpread(_objectSpread({
228
232
  position: 'absolute',
229
233
  zIndex: 1,
230
234
  display: 'none',
231
235
  paddingInline: token.calc(paddingInline).mul(1.5).equal(),
232
236
  boxSizing: 'content-box',
233
- transition: "left ".concat(motionDurationSlow, " ease-out")
237
+ transition: "all ".concat(motionDurationSlow, " ease-out")
234
238
  }, genRoundedArrow(token, colorBgElevated, boxShadowPopoverArrow)), {}, {
235
239
  '&:before': {
236
240
  insetInlineStart: token.calc(paddingInline).mul(1.5).equal()
@@ -278,7 +282,6 @@ var genPickerStyle = function genPickerStyle(token) {
278
282
  }), "".concat(componentCls, "-panels"), {
279
283
  display: 'inline-flex',
280
284
  flexWrap: 'nowrap',
281
- direction: 'ltr',
282
285
  // [`${componentCls}-panel`]: {
283
286
  // borderWidth: `0 0 ${unit(lineWidth)}`,
284
287
  // },
@@ -290,11 +293,11 @@ var genPickerStyle = function genPickerStyle(token) {
290
293
  background: 'transparent',
291
294
  borderRadius: 0,
292
295
  borderWidth: 0
293
- }, "".concat(componentCls, "-content,\n table"), {
296
+ }, "".concat(componentCls, "-content, table"), {
294
297
  textAlign: 'center'
295
298
  }), '&-focused', {
296
299
  borderColor: colorBorder
297
- })))))), _defineProperty(_defineProperty(_objectSpread4, '&-dropdown-range', {
300
+ })))))), '&-dropdown-range', {
298
301
  padding: "".concat(unit(token.calc(sizePopupArrow).mul(2).div(3).equal()), " 0"),
299
302
  '&-hidden': {
300
303
  display: 'none'
@@ -31,7 +31,8 @@ var genPickerCellInnerStyle = function genPickerCellInnerStyle(token) {
31
31
  zIndex: 1,
32
32
  height: cellHeight,
33
33
  transform: 'translateY(-50%)',
34
- content: '""'
34
+ content: '""',
35
+ pointerEvents: 'none'
35
36
  }
36
37
  }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, pickerCellInnerCls, {
37
38
  position: 'relative',
@@ -42,7 +43,7 @@ var genPickerCellInnerStyle = function genPickerCellInnerStyle(token) {
42
43
  lineHeight: unit(cellHeight),
43
44
  borderRadius: borderRadiusSM,
44
45
  transition: "background ".concat(motionDurationMid)
45
- }), "&:hover:not(".concat(pickerCellCls, "-in-view),\n &:hover:not(").concat(pickerCellCls, "-selected):not(").concat(pickerCellCls, "-range-start):not(").concat(pickerCellCls, "-range-end)"), _defineProperty({}, pickerCellInnerCls, {
46
+ }), "&:hover:not(".concat(pickerCellCls, "-in-view):not(").concat(pickerCellCls, "-disabled),\n &:hover:not(").concat(pickerCellCls, "-selected):not(").concat(pickerCellCls, "-range-start):not(").concat(pickerCellCls, "-range-end):not(").concat(pickerCellCls, "-disabled)"), _defineProperty({}, pickerCellInnerCls, {
46
47
  background: cellHoverBg
47
48
  })), "&-in-view".concat(pickerCellCls, "-today ").concat(pickerCellInnerCls), {
48
49
  '&::before': {
@@ -81,7 +82,7 @@ var genPickerCellInnerStyle = function genPickerCellInnerStyle(token) {
81
82
  borderEndEndRadius: borderRadiusSM
82
83
  }), '&-disabled', _defineProperty(_defineProperty({
83
84
  color: colorTextDisabled,
84
- pointerEvents: 'none'
85
+ cursor: 'not-allowed'
85
86
  }, pickerCellInnerCls, {
86
87
  background: 'transparent'
87
88
  }), '&::before', {
@@ -144,13 +145,16 @@ export var genPanelStyle = function genPanelStyle(token) {
144
145
  '&-focused': {
145
146
  borderColor: colorPrimary
146
147
  },
147
- '&-rtl': _defineProperty(_defineProperty({
148
- direction: 'rtl'
149
- }, "".concat(componentCls, "-prev-icon,\n ").concat(componentCls, "-super-prev-icon"), {
148
+ '&-rtl': _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-prev-icon,\n ").concat(componentCls, "-super-prev-icon"), {
150
149
  transform: 'rotate(45deg)'
151
150
  }), "".concat(componentCls, "-next-icon,\n ").concat(componentCls, "-super-next-icon"), {
152
151
  transform: 'rotate(-135deg)'
153
- })
152
+ }), "".concat(componentCls, "-time-panel"), _defineProperty({}, "".concat(componentCls, "-content"), {
153
+ direction: 'ltr',
154
+ '> *': {
155
+ direction: 'rtl'
156
+ }
157
+ }))
154
158
  }
155
159
  }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_componentCls, "&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel", {
156
160
  display: 'flex',
@@ -172,7 +176,10 @@ export var genPanelStyle = function genPanelStyle(token) {
172
176
  border: 0,
173
177
  cursor: 'pointer',
174
178
  transition: "color ".concat(motionDurationMid),
175
- fontSize: 'inherit'
179
+ fontSize: 'inherit',
180
+ display: 'inline-flex',
181
+ alignItems: 'center',
182
+ justifyContent: 'center'
176
183
  },
177
184
  '> button': {
178
185
  minWidth: '1.6em',
@@ -189,10 +196,9 @@ export var genPanelStyle = function genPanelStyle(token) {
189
196
  flex: 'auto',
190
197
  fontWeight: fontWeightStrong,
191
198
  lineHeight: unit(textHeight),
192
- button: {
199
+ '> button': {
193
200
  color: 'inherit',
194
201
  fontWeight: 'inherit',
195
- verticalAlign: 'top',
196
202
  '&:not(:first-child)': {
197
203
  marginInlineStart: paddingXS
198
204
  },
@@ -203,14 +209,12 @@ export var genPanelStyle = function genPanelStyle(token) {
203
209
  }
204
210
  }), "&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon", {
205
211
  position: 'relative',
206
- display: 'inline-block',
207
212
  width: pickerControlIconSize,
208
213
  height: pickerControlIconSize,
209
214
  '&::before': {
210
215
  position: 'absolute',
211
216
  top: 0,
212
217
  insetInlineStart: 0,
213
- display: 'inline-block',
214
218
  width: pickerControlIconSize,
215
219
  height: pickerControlIconSize,
216
220
  border: "0 solid currentcolor",
@@ -231,9 +235,9 @@ export var genPanelStyle = function genPanelStyle(token) {
231
235
  borderInlineWidth: "".concat(unit(pickerControlIconBorderWidth), " 0"),
232
236
  content: '""'
233
237
  }
234
- }), "&-prev-icon,\n &-super-prev-icon", {
238
+ }), '&-prev-icon, &-super-prev-icon', {
235
239
  transform: 'rotate(-45deg)'
236
- }), "&-next-icon,\n &-super-next-icon", {
240
+ }), '&-next-icon, &-super-next-icon', {
237
241
  transform: 'rotate(135deg)'
238
242
  }), '&-content', {
239
243
  width: '100%',
@@ -278,7 +282,7 @@ export var genPanelStyle = function genPanelStyle(token) {
278
282
  padding: 0
279
283
  })), '&-week-panel', _defineProperty(_defineProperty({}, "".concat(componentCls, "-cell"), _defineProperty({}, "&:hover ".concat(pickerCellInnerCls, ",\n &-selected ").concat(pickerCellInnerCls, ",\n ").concat(pickerCellInnerCls), {
280
284
  background: 'transparent !important'
281
- })), '&-row', _defineProperty(_defineProperty(_defineProperty({
285
+ })), '&-row', {
282
286
  td: {
283
287
  '&:before': {
284
288
  transition: "background ".concat(motionDurationMid)
@@ -291,22 +295,23 @@ export var genPanelStyle = function genPanelStyle(token) {
291
295
  borderStartEndRadius: borderRadiusSM,
292
296
  borderEndEndRadius: borderRadiusSM
293
297
  }
294
- }
295
- }, "&:hover td", {
296
- '&:before': {
298
+ },
299
+ '&:hover td:before': {
297
300
  background: cellHoverBg
301
+ },
302
+ '&-range-start td, &-range-end td, &-selected td, &-hover td': _defineProperty({}, "&".concat(pickerCellCls), _defineProperty(_defineProperty({
303
+ '&:before': {
304
+ background: colorPrimary
305
+ }
306
+ }, "&".concat(componentCls, "-cell-week"), {
307
+ color: new TinyColor(colorTextLightSolid).setAlpha(0.5).toHexString()
308
+ }), pickerCellInnerCls, {
309
+ color: colorTextLightSolid
310
+ })),
311
+ '&-range-hover td:before': {
312
+ background: controlItemBgActive
298
313
  }
299
- }), "&-range-start td,\n &-range-end td,\n &-selected td,\n &-hover td", _defineProperty({}, "&".concat(pickerCellCls), _defineProperty(_defineProperty({
300
- '&:before': {
301
- background: colorPrimary
302
- }
303
- }, "&".concat(componentCls, "-cell-week"), {
304
- color: new TinyColor(colorTextLightSolid).setAlpha(0.5).toHexString()
305
- }), pickerCellInnerCls, {
306
- color: colorTextLightSolid
307
- }))), "&-range-hover td:before", {
308
- background: controlItemBgActive
309
- }))), "&-week-panel, &-date-panel-show-week", _defineProperty(_defineProperty({}, "".concat(componentCls, "-body"), {
314
+ })), '&-week-panel, &-date-panel-show-week', _defineProperty(_defineProperty({}, "".concat(componentCls, "-body"), {
310
315
  padding: "".concat(unit(paddingXS), " ").concat(unit(paddingSM))
311
316
  }), "".concat(componentCls, "-content th"), {
312
317
  width: 'auto'
@@ -323,8 +328,7 @@ export var genPanelStyle = function genPanelStyle(token) {
323
328
  }
324
329
  }))), '&-time-panel', _defineProperty(_defineProperty({
325
330
  width: 'auto',
326
- minWidth: 'auto',
327
- direction: 'ltr'
331
+ minWidth: 'auto'
328
332
  }, "".concat(componentCls, "-content"), {
329
333
  display: 'flex',
330
334
  flex: 'auto',
@@ -354,7 +358,7 @@ export var genPanelStyle = function genPanelStyle(token) {
354
358
  },
355
359
  '&::after': {
356
360
  display: 'block',
357
- height: token.calc('100%').sub(timeCellHeight).equal(),
361
+ height: "calc(100% - ".concat(unit(timeCellHeight), ")"),
358
362
  content: '""'
359
363
  },
360
364
  '&:not(:first-child)': {
@@ -45,7 +45,7 @@ export var initPanelComponentToken = function initPanelComponentToken(token) {
45
45
  var INTERNAL_FIXED_ITEM_MARGIN = Math.floor(paddingXXS / 2);
46
46
  var filledToken = {
47
47
  INTERNAL_FIXED_ITEM_MARGIN: INTERNAL_FIXED_ITEM_MARGIN,
48
- cellHoverBg: token.colorPrimaryBg,
48
+ cellHoverBg: token.controlItemBgHover,
49
49
  cellActiveWithRangeBg: token.controlItemBgActive,
50
50
  cellHoverWithRangeBg: new TinyColor(token.colorPrimary).lighten(35).toHexString(),
51
51
  cellRangeBorderColor: new TinyColor(token.colorPrimary).lighten(20).toHexString(),
@@ -48,54 +48,6 @@ export function getRangePlaceholder(locale, picker, customizePlaceholder) {
48
48
  }
49
49
  return locale.lang.rangePlaceholder;
50
50
  }
51
- export function transPlacement2DropdownAlign(direction, placement) {
52
- var overflow = {
53
- adjustX: 1,
54
- adjustY: 1
55
- };
56
- switch (placement) {
57
- case 'bottomLeft':
58
- {
59
- return {
60
- points: ['tl', 'bl'],
61
- offset: [0, 4],
62
- overflow: overflow
63
- };
64
- }
65
- case 'bottomRight':
66
- {
67
- return {
68
- points: ['tr', 'br'],
69
- offset: [0, 4],
70
- overflow: overflow
71
- };
72
- }
73
- case 'topLeft':
74
- {
75
- return {
76
- points: ['bl', 'tl'],
77
- offset: [0, -4],
78
- overflow: overflow
79
- };
80
- }
81
- case 'topRight':
82
- {
83
- return {
84
- points: ['br', 'tr'],
85
- offset: [0, -4],
86
- overflow: overflow
87
- };
88
- }
89
- default:
90
- {
91
- return {
92
- points: direction === 'rtl' ? ['tr', 'br'] : ['tl', 'bl'],
93
- offset: [0, 4],
94
- overflow: overflow
95
- };
96
- }
97
- }
98
- }
99
51
  export function useIcons(props, prefixCls) {
100
52
  var _props$allowClear = props.allowClear,
101
53
  allowClear = _props$allowClear === void 0 ? true : _props$allowClear;
@@ -29,6 +29,11 @@ export default function useItems(screens, items, children) {
29
29
  return mergedItems.map(function (_ref) {
30
30
  var span = _ref.span,
31
31
  restItem = _objectWithoutProperties(_ref, _excluded);
32
+ if (span === 'filled') {
33
+ return _objectSpread(_objectSpread({}, restItem), {}, {
34
+ filled: true
35
+ });
36
+ }
32
37
  return _objectSpread(_objectSpread({}, restItem), {}, {
33
38
  span: typeof span === 'number' ? span : matchScreen(screens, span)
34
39
  });
@@ -1,4 +1,5 @@
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
+ var _excluded = ["filled"];
2
3
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
3
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
5
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -10,55 +11,62 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
11
  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; }
11
12
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
13
  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); }
14
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
13
16
  import { useMemo } from 'react';
14
17
  import { devUseWarning } from '../../_util/warning';
15
- function getFilledItem(rowItem, rowRestCol, span) {
16
- var clone = rowItem;
17
- var exceed = false;
18
- if (span === undefined || span > rowRestCol) {
19
- clone = _objectSpread(_objectSpread({}, rowItem), {}, {
20
- span: rowRestCol
21
- });
22
- exceed = span !== undefined;
23
- }
24
- return [clone, exceed];
25
- }
26
18
  // Calculate the sum of span in a row
27
19
  function getCalcRows(rowItems, mergedColumn) {
28
20
  var rows = [];
29
21
  var tmpRow = [];
30
- var rowRestCol = mergedColumn;
31
22
  var exceed = false;
23
+ var count = 0;
32
24
  rowItems.filter(function (n) {
33
25
  return n;
34
- }).forEach(function (rowItem, index) {
35
- var span = rowItem === null || rowItem === void 0 ? void 0 : rowItem.span;
36
- var mergedSpan = span || 1;
37
- // Additional handle last one
38
- if (index === rowItems.length - 1) {
39
- var _getFilledItem = getFilledItem(rowItem, rowRestCol, span),
40
- _getFilledItem2 = _slicedToArray(_getFilledItem, 2),
41
- item = _getFilledItem2[0],
42
- itemExceed = _getFilledItem2[1];
43
- exceed = exceed || itemExceed;
44
- tmpRow.push(item);
26
+ }).forEach(function (rowItem) {
27
+ var filled = rowItem.filled,
28
+ restItem = _objectWithoutProperties(rowItem, _excluded);
29
+ if (filled) {
30
+ tmpRow.push(restItem);
45
31
  rows.push(tmpRow);
32
+ // reset
33
+ tmpRow = [];
34
+ count = 0;
46
35
  return;
47
36
  }
48
- if (mergedSpan < rowRestCol) {
49
- rowRestCol -= mergedSpan;
50
- tmpRow.push(rowItem);
51
- } else {
52
- var _getFilledItem3 = getFilledItem(rowItem, rowRestCol, mergedSpan),
53
- _getFilledItem4 = _slicedToArray(_getFilledItem3, 2),
54
- _item = _getFilledItem4[0],
55
- _itemExceed = _getFilledItem4[1];
56
- exceed = exceed || _itemExceed;
57
- tmpRow.push(_item);
37
+ var restSpan = mergedColumn - count;
38
+ count += rowItem.span || 1;
39
+ if (count >= mergedColumn) {
40
+ if (count > mergedColumn) {
41
+ exceed = true;
42
+ tmpRow.push(_objectSpread(_objectSpread({}, restItem), {}, {
43
+ span: restSpan
44
+ }));
45
+ } else {
46
+ tmpRow.push(restItem);
47
+ }
58
48
  rows.push(tmpRow);
59
- rowRestCol = mergedColumn;
49
+ // reset
60
50
  tmpRow = [];
51
+ count = 0;
52
+ } else {
53
+ tmpRow.push(restItem);
54
+ }
55
+ });
56
+ if (tmpRow.length > 0) {
57
+ rows.push(tmpRow);
58
+ }
59
+ rows = rows.map(function (rows) {
60
+ var count = rows.reduce(function (acc, item) {
61
+ return acc + (item.span || 1);
62
+ }, 0);
63
+ if (count < mergedColumn) {
64
+ // If the span of the last element in the current row is less than the column, then add its span to the remaining columns
65
+ var last = rows[rows.length - 1];
66
+ last.span = mergedColumn - count + 1;
67
+ return rows;
61
68
  }
69
+ return rows;
62
70
  });
63
71
  return [rows, exceed];
64
72
  }
@@ -43,12 +43,15 @@ var genDescriptionStyles = function genDescriptionStyles(token) {
43
43
  var componentCls = token.componentCls,
44
44
  extraColor = token.extraColor,
45
45
  itemPaddingBottom = token.itemPaddingBottom,
46
+ itemPaddingEnd = token.itemPaddingEnd,
46
47
  colonMarginRight = token.colonMarginRight,
47
48
  colonMarginLeft = token.colonMarginLeft,
48
49
  titleMarginBottom = token.titleMarginBottom;
49
- return _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), genBorderedStyle(token)), {}, (_objectSpread2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread2, "&-rtl", {
50
- direction: 'rtl'
51
- }), "".concat(componentCls, "-header"), {
50
+ return _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), genBorderedStyle(token)), {}, (_objectSpread2 = {
51
+ '&-rtl': {
52
+ direction: 'rtl'
53
+ }
54
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread2, "".concat(componentCls, "-header"), {
52
55
  display: 'flex',
53
56
  alignItems: 'center',
54
57
  marginBottom: titleMarginBottom
@@ -72,10 +75,17 @@ var genDescriptionStyles = function genDescriptionStyles(token) {
72
75
  }
73
76
  }), "".concat(componentCls, "-row"), {
74
77
  '> th, > td': {
75
- paddingBottom: itemPaddingBottom
78
+ paddingBottom: itemPaddingBottom,
79
+ paddingInlineEnd: itemPaddingEnd
80
+ },
81
+ '> th:last-child, > td:last-child': {
82
+ paddingInlineEnd: 0
76
83
  },
77
84
  '&:last-child': {
78
- borderBottom: 'none'
85
+ borderBottom: 'none',
86
+ '> th, > td': {
87
+ paddingBottom: 0
88
+ }
79
89
  }
80
90
  }), "".concat(componentCls, "-item-label"), _defineProperty({
81
91
  color: token.colorTextTertiary,
@@ -115,13 +125,14 @@ var genDescriptionStyles = function genDescriptionStyles(token) {
115
125
  alignItems: 'baseline'
116
126
  }), "".concat(componentCls, "-item-content"), {
117
127
  display: 'inline-flex',
118
- alignItems: 'baseline'
128
+ alignItems: 'baseline',
129
+ minWidth: '1em'
119
130
  })
120
- }), _defineProperty(_defineProperty(_objectSpread2, '&-middle', _defineProperty({}, "".concat(componentCls, "-row"), {
131
+ }), '&-middle', _defineProperty({}, "".concat(componentCls, "-row"), {
121
132
  '> th, > td': {
122
133
  paddingBottom: token.paddingSM
123
134
  }
124
- })), '&-small', _defineProperty({}, "".concat(componentCls, "-row"), {
135
+ })), _defineProperty(_objectSpread2, '&-small', _defineProperty({}, "".concat(componentCls, "-row"), {
125
136
  '> th, > td': {
126
137
  paddingBottom: token.paddingXS
127
138
  }
@@ -133,6 +144,7 @@ export var prepareComponentToken = function prepareComponentToken(token) {
133
144
  titleColor: token.colorText,
134
145
  titleMarginBottom: token.fontSizeSM * token.lineHeightSM,
135
146
  itemPaddingBottom: token.padding,
147
+ itemPaddingEnd: token.padding,
136
148
  colonMarginRight: token.marginXS,
137
149
  colonMarginLeft: token.marginXXS / 2,
138
150
  contentColor: token.colorText,
@@ -1,5 +1,5 @@
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
- var _excluded = ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"];
2
+ var _excluded = ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "variant", "plain", "style"];
3
3
  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; }
4
4
  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; }
5
5
  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; }
@@ -34,6 +34,8 @@ var Divider = function Divider(props) {
34
34
  rootClassName = props.rootClassName,
35
35
  children = props.children,
36
36
  dashed = props.dashed,
37
+ _props$variant = props.variant,
38
+ variant = _props$variant === void 0 ? 'solid' : _props$variant,
37
39
  plain = props.plain,
38
40
  style = props.style,
39
41
  restProps = _objectWithoutProperties(props, _excluded);
@@ -43,11 +45,10 @@ var Divider = function Divider(props) {
43
45
  wrapCSSVar = _useStyle2[0],
44
46
  hashId = _useStyle2[1],
45
47
  cssVarCls = _useStyle2[2];
46
- var orientationPrefix = orientation.length > 0 ? "-".concat(orientation) : orientation;
47
48
  var hasChildren = !!children;
48
49
  var hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
49
50
  var hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
50
- var classString = classNames(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, cssVarCls, "".concat(prefixCls, "-").concat(type), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-with-text"), hasChildren), "".concat(prefixCls, "-with-text").concat(orientationPrefix), hasChildren), "".concat(prefixCls, "-dashed"), !!dashed), "".concat(prefixCls, "-plain"), !!plain), "".concat(prefixCls, "-rtl"), direction === 'rtl'), "".concat(prefixCls, "-no-default-orientation-margin-left"), hasCustomMarginLeft), "".concat(prefixCls, "-no-default-orientation-margin-right"), hasCustomMarginRight), className, rootClassName);
51
+ var classString = classNames(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, cssVarCls, "".concat(prefixCls, "-").concat(type), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-with-text"), hasChildren), "".concat(prefixCls, "-with-text-").concat(orientation), hasChildren), "".concat(prefixCls, "-dashed"), !!dashed), "".concat(prefixCls, "-").concat(variant), variant !== 'solid'), "".concat(prefixCls, "-plain"), !!plain), "".concat(prefixCls, "-rtl"), direction === 'rtl'), "".concat(prefixCls, "-no-default-orientation-margin-left"), hasCustomMarginLeft), "".concat(prefixCls, "-no-default-orientation-margin-right"), hasCustomMarginRight), className, rootClassName);
51
52
  var memoizedOrientationMargin = React.useMemo(function () {
52
53
  if (typeof orientationMargin === 'number') {
53
54
  return orientationMargin;