@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
@@ -1,4 +1,4 @@
1
- var _excluded = ["className", "rootClassName", "size", "disabled", "prefixCls", "addonBefore", "addonAfter", "prefix", "bordered", "readOnly", "status", "controls", "variant"];
1
+ var _excluded = ["className", "rootClassName", "size", "disabled", "prefixCls", "addonBefore", "addonAfter", "prefix", "suffix", "bordered", "readOnly", "status", "controls", "variant"];
2
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
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; }
4
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; }
@@ -19,21 +19,22 @@ import DownOutlined from '@ant-design/icons/DownOutlined';
19
19
  import UpOutlined from '@ant-design/icons/UpOutlined';
20
20
  import classNames from 'classnames';
21
21
  import RcInputNumber from 'rc-input-number';
22
+ import ContextIsolator from '../_util/ContextIsolator';
22
23
  import { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';
23
24
  import { devUseWarning } from '../_util/warning';
24
25
  import ConfigProvider, { ConfigContext } from '../config-provider';
25
26
  import DisabledContext from '../config-provider/DisabledContext';
26
27
  import useCSSVarCls from '../config-provider/hooks/useCSSVarCls';
27
28
  import useSize from '../config-provider/hooks/useSize';
28
- import { FormItemInputContext, NoFormStyle } from '../form/context';
29
+ import { FormItemInputContext } from '../form/context';
29
30
  import useVariant from '../form/hooks/useVariants';
30
- import { NoCompactStyle, useCompactItemContext } from '../space/Compact';
31
+ import { useCompactItemContext } from '../space/Compact';
31
32
  import useStyle from './style';
32
33
  var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
33
34
  if (process.env.NODE_ENV !== 'production') {
34
- var _devUseWarning = devUseWarning('InputNumber'),
35
- deprecated = _devUseWarning.deprecated;
36
- deprecated(!('bordered' in props), 'bordered', 'variant');
35
+ var typeWarning = devUseWarning('InputNumber');
36
+ typeWarning.deprecated(!('bordered' in props), 'bordered', 'variant');
37
+ typeWarning(!(props.type === 'number' && props.changeOnWheel), 'usage', 'When `type=number` is used together with `changeOnWheel`, changeOnWheel may not work properly. Please delete `type=number` if it is not necessary.');
37
38
  }
38
39
  var _React$useContext = React.useContext(ConfigContext),
39
40
  getPrefixCls = _React$useContext.getPrefixCls,
@@ -50,6 +51,7 @@ var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
50
51
  addonBefore = props.addonBefore,
51
52
  addonAfter = props.addonAfter,
52
53
  prefix = props.prefix,
54
+ suffix = props.suffix,
53
55
  bordered = props.bordered,
54
56
  readOnly = props.readOnly,
55
57
  customStatus = props.status,
@@ -97,11 +99,10 @@ var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
97
99
  // ===================== Disabled =====================
98
100
  var disabled = React.useContext(DisabledContext);
99
101
  var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
100
- var _useVariant = useVariant(customVariant, bordered),
102
+ var _useVariant = useVariant('inputNumber', customVariant, bordered),
101
103
  _useVariant2 = _slicedToArray(_useVariant, 2),
102
104
  variant = _useVariant2[0],
103
105
  enableVariantCls = _useVariant2[1];
104
- // eslint-disable-next-line react/jsx-no-useless-fragment
105
106
  var suffixNode = hasFeedback && _jsx(_Fragment, {
106
107
  children: feedbackIcon
107
108
  });
@@ -117,25 +118,21 @@ var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
117
118
  readOnly: readOnly,
118
119
  controls: controlsTemp,
119
120
  prefix: prefix,
120
- suffix: suffixNode,
121
- addonAfter: addonAfter && _jsx(NoCompactStyle, {
122
- children: _jsx(NoFormStyle, {
123
- override: true,
124
- status: true,
125
- children: addonAfter
126
- })
121
+ suffix: suffixNode || suffix,
122
+ addonBefore: addonBefore && _jsx(ContextIsolator, {
123
+ form: true,
124
+ space: true,
125
+ children: addonBefore
127
126
  }),
128
- addonBefore: addonBefore && _jsx(NoCompactStyle, {
129
- children: _jsx(NoFormStyle, {
130
- override: true,
131
- status: true,
132
- children: addonBefore
133
- })
127
+ addonAfter: addonAfter && _jsx(ContextIsolator, {
128
+ form: true,
129
+ space: true,
130
+ children: addonAfter
134
131
  }),
135
132
  classNames: {
136
133
  input: inputNumberClass,
137
134
  variant: classNames(_defineProperty({}, "".concat(prefixCls, "-").concat(variant), enableVariantCls), getStatusClassNames(prefixCls, mergedStatus, hasFeedback)),
138
- affixWrapper: classNames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-affix-wrapper-sm"), mergedSize === 'small'), "".concat(prefixCls, "-affix-wrapper-lg"), mergedSize === 'large'), "".concat(prefixCls, "-affix-wrapper-rtl"), direction === 'rtl'), hashId),
135
+ affixWrapper: classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-affix-wrapper-sm"), mergedSize === 'small'), "".concat(prefixCls, "-affix-wrapper-lg"), mergedSize === 'large'), "".concat(prefixCls, "-affix-wrapper-rtl"), direction === 'rtl'), "".concat(prefixCls, "-affix-wrapper-without-controls"), controls === false), hashId),
139
136
  wrapper: classNames(_defineProperty({}, "".concat(wrapperClassName, "-rtl"), direction === 'rtl'), hashId),
140
137
  groupWrapper: classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-group-wrapper-sm"), mergedSize === 'small'), "".concat(prefixCls, "-group-wrapper-lg"), mergedSize === 'large'), "".concat(prefixCls, "-group-wrapper-rtl"), direction === 'rtl'), "".concat(prefixCls, "-group-wrapper-").concat(variant), enableVariantCls), getStatusClassNames("".concat(prefixCls, "-group-wrapper"), mergedStatus, hasFeedback), hashId)
141
138
  }
@@ -30,7 +30,8 @@ var genInputNumberStyles = function genInputNumberStyles(token) {
30
30
  lineWidth = token.lineWidth,
31
31
  lineType = token.lineType,
32
32
  borderRadius = token.borderRadius,
33
- fontSizeLG = token.fontSizeLG,
33
+ inputFontSizeSM = token.inputFontSizeSM,
34
+ inputFontSizeLG = token.inputFontSizeLG,
34
35
  controlHeightLG = token.controlHeightLG,
35
36
  controlHeightSM = token.controlHeightSM,
36
37
  colorError = token.colorError,
@@ -41,6 +42,7 @@ var genInputNumberStyles = function genInputNumberStyles(token) {
41
42
  colorTextDescription = token.colorTextDescription,
42
43
  motionDurationMid = token.motionDurationMid,
43
44
  handleHoverColor = token.handleHoverColor,
45
+ handleOpacity = token.handleOpacity,
44
46
  paddingInline = token.paddingInline,
45
47
  paddingBlock = token.paddingBlock,
46
48
  handleBg = token.handleBg,
@@ -49,7 +51,6 @@ var genInputNumberStyles = function genInputNumberStyles(token) {
49
51
  borderRadiusSM = token.borderRadiusSM,
50
52
  borderRadiusLG = token.borderRadiusLG,
51
53
  controlWidth = token.controlWidth,
52
- handleOpacity = token.handleOpacity,
53
54
  handleBorderColor = token.handleBorderColor,
54
55
  filledHandleBg = token.filledHandleBg,
55
56
  lineHeightLG = token.lineHeightLG,
@@ -70,7 +71,7 @@ var genInputNumberStyles = function genInputNumberStyles(token) {
70
71
  borderBlockStart: "".concat(unit(lineWidth), " ").concat(lineType, " ").concat(handleBorderColor)
71
72
  })), '&:focus-within', _defineProperty({}, "".concat(componentCls, "-handler-wrap"), {
72
73
  background: handleBg
73
- })))), genBorderlessStyle(token)), {}, _defineProperty(_defineProperty({
74
+ })))), genBorderlessStyle(token)), {}, _defineProperty(_defineProperty(_defineProperty({
74
75
  '&-rtl': _defineProperty({
75
76
  direction: 'rtl'
76
77
  }, "".concat(componentCls, "-input"), {
@@ -78,7 +79,7 @@ var genInputNumberStyles = function genInputNumberStyles(token) {
78
79
  }),
79
80
  '&-lg': _defineProperty({
80
81
  padding: 0,
81
- fontSize: fontSizeLG,
82
+ fontSize: inputFontSizeLG,
82
83
  lineHeight: lineHeightLG,
83
84
  borderRadius: borderRadiusLG
84
85
  }, "input".concat(componentCls, "-input"), {
@@ -87,6 +88,7 @@ var genInputNumberStyles = function genInputNumberStyles(token) {
87
88
  }),
88
89
  '&-sm': _defineProperty({
89
90
  padding: 0,
91
+ fontSize: inputFontSizeSM,
90
92
  borderRadius: borderRadiusSM
91
93
  }, "input".concat(componentCls, "-input"), {
92
94
  height: calc(controlHeightSM).sub(calc(lineWidth).mul(2)).equal(),
@@ -138,29 +140,30 @@ var genInputNumberStyles = function genInputNumberStyles(token) {
138
140
  }, genPlaceholderStyle(token.colorTextPlaceholder)), {}, {
139
141
  '&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button': {
140
142
  margin: 0,
141
- /* stylelint-disable-next-line property-no-vendor-prefix */
142
143
  webkitAppearance: 'none',
143
144
  appearance: 'none'
144
145
  }
145
146
  })
146
- }))), // Handler
147
- _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&:hover ".concat(componentCls, "-handler-wrap, &-focused ").concat(componentCls, "-handler-wrap"), {
147
+ }), "&:hover ".concat(componentCls, "-handler-wrap, &-focused ").concat(componentCls, "-handler-wrap"), {
148
+ width: token.handleWidth,
148
149
  opacity: 1
149
- }), "".concat(componentCls, "-handler-wrap"), _defineProperty({
150
+ }))), // Handler
151
+ _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-handler-wrap"), _defineProperty({
150
152
  position: 'absolute',
151
153
  insetBlockStart: 0,
152
154
  insetInlineEnd: 0,
153
- width: token.handleWidth,
155
+ width: 0,
156
+ opacity: handleOpacity,
154
157
  height: '100%',
155
158
  borderStartStartRadius: 0,
156
159
  borderStartEndRadius: borderRadius,
157
160
  borderEndEndRadius: borderRadius,
158
161
  borderEndStartRadius: 0,
159
- opacity: handleOpacity,
160
162
  display: 'flex',
161
163
  flexDirection: 'column',
162
164
  alignItems: 'stretch',
163
- transition: "opacity ".concat(motionDurationMid, " linear ").concat(motionDurationMid)
165
+ transition: "all ".concat(motionDurationMid),
166
+ overflow: 'hidden'
164
167
  }, "".concat(componentCls, "-handler"), _defineProperty({
165
168
  display: 'flex',
166
169
  alignItems: 'center',
@@ -222,13 +225,15 @@ var genAffixWrapperStyles = function genAffixWrapperStyles(token) {
222
225
  paddingInlineLG = token.paddingInlineLG,
223
226
  paddingInlineSM = token.paddingInlineSM,
224
227
  paddingBlockLG = token.paddingBlockLG,
225
- paddingBlockSM = token.paddingBlockSM;
228
+ paddingBlockSM = token.paddingBlockSM,
229
+ motionDurationMid = token.motionDurationMid;
226
230
  return _defineProperty({}, "".concat(componentCls, "-affix-wrapper"), _objectSpread(_objectSpread(_defineProperty({}, "input".concat(componentCls, "-input"), {
227
231
  padding: "".concat(unit(paddingBlock), " 0")
228
- }), genBasicInputStyle(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
232
+ }), genBasicInputStyle(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
229
233
  // or number handler will cover form status
230
234
  position: 'relative',
231
235
  display: 'inline-flex',
236
+ alignItems: 'center',
232
237
  width: controlWidth,
233
238
  padding: 0,
234
239
  paddingInlineStart: paddingInline,
@@ -264,6 +269,7 @@ var genAffixWrapperStyles = function genAffixWrapperStyles(token) {
264
269
  }), "".concat(componentCls, "-handler-wrap"), {
265
270
  zIndex: 2
266
271
  }), componentCls, {
272
+ position: 'static',
267
273
  color: 'inherit',
268
274
  '&-prefix, &-suffix': {
269
275
  display: 'flex',
@@ -275,14 +281,18 @@ var genAffixWrapperStyles = function genAffixWrapperStyles(token) {
275
281
  marginInlineEnd: inputAffixPadding
276
282
  },
277
283
  '&-suffix': {
278
- position: 'absolute',
279
284
  insetBlockStart: 0,
280
285
  insetInlineEnd: 0,
281
- zIndex: 1,
282
286
  height: '100%',
283
287
  marginInlineEnd: paddingInline,
284
- marginInlineStart: inputAffixPadding
288
+ marginInlineStart: inputAffixPadding,
289
+ transition: "margin ".concat(motionDurationMid)
285
290
  }
291
+ }), "&:hover ".concat(componentCls, "-handler-wrap, &-focused ").concat(componentCls, "-handler-wrap"), {
292
+ width: token.handleWidth,
293
+ opacity: 1
294
+ }), "&:not(".concat(componentCls, "-affix-wrapper-without-controls):hover ").concat(componentCls, "-suffix"), {
295
+ marginInlineEnd: token.calc(token.handleWidth).add(paddingInline).equal()
286
296
  })));
287
297
  };
288
298
  export default genStyleHooks('InputNumber', function (token) {
@@ -24,6 +24,7 @@ import omit from 'rc-util/lib/omit';
24
24
  import isNumeric from '../_util/isNumeric';
25
25
  import { ConfigContext } from '../config-provider';
26
26
  import { LayoutContext } from './context';
27
+ import useStyle from './style/sider';
27
28
  var dimensionMaxMap = {
28
29
  xs: '479.98px',
29
30
  sm: '575.98px',
@@ -86,6 +87,15 @@ var Sider = /*#__PURE__*/React.forwardRef(function (props, ref) {
86
87
  }
87
88
  onCollapse === null || onCollapse === void 0 || onCollapse(value, type);
88
89
  };
90
+ // =========================== Prefix ===========================
91
+ var _useContext2 = useContext(ConfigContext),
92
+ getPrefixCls = _useContext2.getPrefixCls;
93
+ var prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
94
+ var _useStyle = useStyle(prefixCls),
95
+ _useStyle2 = _slicedToArray(_useStyle, 3),
96
+ wrapCSSVar = _useStyle2[0],
97
+ hashId = _useStyle2[1],
98
+ cssVarCls = _useStyle2[2];
89
99
  // ========================= Responsive =========================
90
100
  var responsiveHandlerRef = useRef();
91
101
  responsiveHandlerRef.current = function (mql) {
@@ -107,7 +117,7 @@ var Sider = /*#__PURE__*/React.forwardRef(function (props, ref) {
107
117
  mql = matchMedia("screen and (max-width: ".concat(dimensionMaxMap[breakpoint], ")"));
108
118
  try {
109
119
  mql.addEventListener('change', responsiveHandler);
110
- } catch (error) {
120
+ } catch (_unused) {
111
121
  mql.addListener(responsiveHandler);
112
122
  }
113
123
  responsiveHandler(mql);
@@ -117,7 +127,7 @@ var Sider = /*#__PURE__*/React.forwardRef(function (props, ref) {
117
127
  try {
118
128
  var _mql;
119
129
  (_mql = mql) === null || _mql === void 0 || _mql.removeEventListener('change', responsiveHandler);
120
- } catch (error) {
130
+ } catch (_unused2) {
121
131
  var _mql2;
122
132
  (_mql2 = mql) === null || _mql2 === void 0 || _mql2.removeListener(responsiveHandler);
123
133
  }
@@ -133,10 +143,7 @@ var Sider = /*#__PURE__*/React.forwardRef(function (props, ref) {
133
143
  var toggle = function toggle() {
134
144
  handleSetCollapsed(!collapsed, 'clickTrigger');
135
145
  };
136
- var _useContext2 = useContext(ConfigContext),
137
- getPrefixCls = _useContext2.getPrefixCls;
138
146
  var renderSider = function renderSider() {
139
- var prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
140
147
  var divProps = omit(otherProps, ['collapsed']);
141
148
  var rawWidth = collapsed ? collapsedWidth : width;
142
149
  // use "px" as fallback unit for width
@@ -170,7 +177,7 @@ var Sider = /*#__PURE__*/React.forwardRef(function (props, ref) {
170
177
  // https://github.com/ant-design/ant-design/issues/6349
171
178
  width: siderWidth
172
179
  });
173
- var siderCls = classNames(prefixCls, "".concat(prefixCls, "-").concat(theme), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-collapsed"), !!collapsed), "".concat(prefixCls, "-has-trigger"), collapsible && trigger !== null && !zeroWidthTrigger), "".concat(prefixCls, "-below"), !!below), "".concat(prefixCls, "-zero-width"), parseFloat(siderWidth) === 0), className);
180
+ var siderCls = classNames(prefixCls, "".concat(prefixCls, "-").concat(theme), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-collapsed"), !!collapsed), "".concat(prefixCls, "-has-trigger"), collapsible && trigger !== null && !zeroWidthTrigger), "".concat(prefixCls, "-below"), !!below), "".concat(prefixCls, "-zero-width"), parseFloat(siderWidth) === 0), className, hashId, cssVarCls);
174
181
  return _jsxs("aside", _objectSpread(_objectSpread({
175
182
  className: siderCls
176
183
  }, divProps), {}, {
@@ -187,10 +194,10 @@ var Sider = /*#__PURE__*/React.forwardRef(function (props, ref) {
187
194
  siderCollapsed: collapsed
188
195
  };
189
196
  }, [collapsed]);
190
- return _jsx(SiderContext.Provider, {
197
+ return wrapCSSVar(_jsx(SiderContext.Provider, {
191
198
  value: contextValue,
192
199
  children: renderSider()
193
- });
200
+ }));
194
201
  });
195
202
  if (process.env.NODE_ENV !== 'production') {
196
203
  Sider.displayName = 'Sider';
@@ -1,34 +1,22 @@
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; }
4
2
  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; }
5
3
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
4
  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); }
7
5
  import { unit } from '@ant-design/cssinjs';
8
6
  import { genStyleHooks } from '../../theme/internal';
9
- import genLayoutLightStyle from './light';
10
7
  var genLayoutStyle = function genLayoutStyle(token) {
11
8
  var antCls = token.antCls,
12
9
  componentCls = token.componentCls,
13
10
  colorText = token.colorText,
14
- triggerColor = token.triggerColor,
15
11
  footerBg = token.footerBg,
16
- triggerBg = token.triggerBg,
17
12
  headerHeight = token.headerHeight,
18
13
  headerPadding = token.headerPadding,
19
14
  headerColor = token.headerColor,
20
15
  footerPadding = token.footerPadding,
21
- triggerHeight = token.triggerHeight,
22
- zeroTriggerHeight = token.zeroTriggerHeight,
23
- zeroTriggerWidth = token.zeroTriggerWidth,
24
- motionDurationMid = token.motionDurationMid,
25
- motionDurationSlow = token.motionDurationSlow,
26
16
  fontSize = token.fontSize,
27
- borderRadius = token.borderRadius,
28
17
  bodyBg = token.bodyBg,
29
- headerBg = token.headerBg,
30
- siderBg = token.siderBg;
31
- return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentCls, _objectSpread(_objectSpread(_defineProperty(_defineProperty(_defineProperty({
18
+ headerBg = token.headerBg;
19
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty({
32
20
  display: 'flex',
33
21
  flex: 'auto',
34
22
  flexDirection: 'column',
@@ -45,87 +33,8 @@ var genLayoutStyle = function genLayoutStyle(token) {
45
33
  width: 0
46
34
  })), "".concat(componentCls, "-header, &").concat(componentCls, "-footer"), {
47
35
  flex: '0 0 auto'
48
- }), "".concat(componentCls, "-sider"), {
49
- position: 'relative',
50
- // fix firefox can't set width smaller than content on flex item
51
- minWidth: 0,
52
- background: siderBg,
53
- transition: "all ".concat(motionDurationMid, ", background 0s"),
54
- '&-children': _defineProperty({
55
- height: '100%',
56
- // Hack for fixing margin collapse bug
57
- // https://github.com/ant-design/ant-design/issues/7967
58
- // solution from https://stackoverflow.com/a/33132624/3040605
59
- marginTop: -0.1,
60
- paddingTop: 0.1
61
- }, "".concat(antCls, "-menu").concat(antCls, "-menu-inline-collapsed"), {
62
- width: 'auto'
63
- }),
64
- '&-has-trigger': {
65
- paddingBottom: triggerHeight
66
- },
67
- '&-right': {
68
- order: 1
69
- },
70
- '&-trigger': {
71
- position: 'fixed',
72
- bottom: 0,
73
- zIndex: 1,
74
- height: triggerHeight,
75
- color: triggerColor,
76
- lineHeight: unit(triggerHeight),
77
- textAlign: 'center',
78
- background: triggerBg,
79
- cursor: 'pointer',
80
- transition: "all ".concat(motionDurationMid)
81
- },
82
- '&-zero-width': {
83
- '> *': {
84
- overflow: 'hidden'
85
- },
86
- '&-trigger': {
87
- position: 'absolute',
88
- top: headerHeight,
89
- insetInlineEnd: token.calc(zeroTriggerWidth).mul(-1).equal(),
90
- zIndex: 1,
91
- width: zeroTriggerWidth,
92
- height: zeroTriggerHeight,
93
- color: triggerColor,
94
- fontSize: token.fontSizeXL,
95
- display: 'flex',
96
- alignItems: 'center',
97
- justifyContent: 'center',
98
- background: siderBg,
99
- borderStartStartRadius: 0,
100
- borderStartEndRadius: borderRadius,
101
- borderEndEndRadius: borderRadius,
102
- borderEndStartRadius: 0,
103
- cursor: 'pointer',
104
- transition: "background ".concat(motionDurationSlow, " ease"),
105
- '&::after': {
106
- position: 'absolute',
107
- inset: 0,
108
- background: 'transparent',
109
- transition: "all ".concat(motionDurationSlow),
110
- content: '""'
111
- },
112
- '&:hover::after': {
113
- background: "rgba(255, 255, 255, 0.2)"
114
- },
115
- '&-right': {
116
- insetInlineStart: token.calc(zeroTriggerWidth).mul(-1).equal(),
117
- borderStartStartRadius: borderRadius,
118
- borderStartEndRadius: 0,
119
- borderEndEndRadius: 0,
120
- borderEndStartRadius: borderRadius
121
- }
122
- }
123
- }
124
- }), genLayoutLightStyle(token)), {}, {
125
- // RTL
126
- '&-rtl': {
127
- direction: 'rtl'
128
- }
36
+ }), '&-rtl', {
37
+ direction: 'rtl'
129
38
  })), "".concat(componentCls, "-header"), _defineProperty({
130
39
  height: headerHeight,
131
40
  padding: headerPadding,
@@ -180,8 +89,9 @@ export var prepareComponentToken = function prepareComponentToken(token) {
180
89
  };
181
90
  };
182
91
  // ============================== Export ==============================
92
+ export var DEPRECATED_TOKENS = [['colorBgBody', 'bodyBg'], ['colorBgHeader', 'headerBg'], ['colorBgTrigger', 'triggerBg']];
183
93
  export default genStyleHooks('Layout', function (token) {
184
94
  return [genLayoutStyle(token)];
185
95
  }, prepareComponentToken, {
186
- deprecatedTokens: [['colorBgBody', 'bodyBg'], ['colorBgHeader', 'headerBg'], ['colorBgTrigger', 'triggerBg']]
96
+ deprecatedTokens: DEPRECATED_TOKENS
187
97
  });
@@ -0,0 +1,115 @@
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 _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
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
4
+ 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); }
5
+ import { unit } from '@ant-design/cssinjs';
6
+ import { DEPRECATED_TOKENS, prepareComponentToken } from '.';
7
+ import { genStyleHooks } from '../../theme/internal';
8
+ var genSiderStyle = function genSiderStyle(token) {
9
+ var componentCls = token.componentCls,
10
+ siderBg = token.siderBg,
11
+ motionDurationMid = token.motionDurationMid,
12
+ motionDurationSlow = token.motionDurationSlow,
13
+ antCls = token.antCls,
14
+ triggerHeight = token.triggerHeight,
15
+ triggerColor = token.triggerColor,
16
+ triggerBg = token.triggerBg,
17
+ headerHeight = token.headerHeight,
18
+ zeroTriggerWidth = token.zeroTriggerWidth,
19
+ zeroTriggerHeight = token.zeroTriggerHeight,
20
+ borderRadius = token.borderRadius,
21
+ lightSiderBg = token.lightSiderBg,
22
+ lightTriggerColor = token.lightTriggerColor,
23
+ lightTriggerBg = token.lightTriggerBg,
24
+ bodyBg = token.bodyBg;
25
+ return _defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
26
+ position: 'relative',
27
+ // fix firefox can't set width smaller than content on flex item
28
+ minWidth: 0,
29
+ background: siderBg,
30
+ transition: "all ".concat(motionDurationMid, ", background 0s"),
31
+ '&-has-trigger': {
32
+ paddingBottom: triggerHeight
33
+ },
34
+ '&-right': {
35
+ order: 1
36
+ }
37
+ }, "".concat(componentCls, "-children"), _defineProperty({
38
+ height: '100%',
39
+ // Hack for fixing margin collapse bug
40
+ // https://github.com/ant-design/ant-design/issues/7967
41
+ // solution from https://stackoverflow.com/a/33132624/3040605
42
+ marginTop: -0.1,
43
+ paddingTop: 0.1
44
+ }, "".concat(antCls, "-menu").concat(antCls, "-menu-inline-collapsed"), {
45
+ width: 'auto'
46
+ })), "".concat(componentCls, "-trigger"), {
47
+ position: 'fixed',
48
+ bottom: 0,
49
+ zIndex: 1,
50
+ height: triggerHeight,
51
+ color: triggerColor,
52
+ lineHeight: unit(triggerHeight),
53
+ textAlign: 'center',
54
+ background: triggerBg,
55
+ cursor: 'pointer',
56
+ transition: "all ".concat(motionDurationMid)
57
+ }), '&-zero-width', {
58
+ '> *': {
59
+ overflow: 'hidden'
60
+ },
61
+ '&-trigger': {
62
+ position: 'absolute',
63
+ top: headerHeight,
64
+ insetInlineEnd: token.calc(zeroTriggerWidth).mul(-1).equal(),
65
+ zIndex: 1,
66
+ width: zeroTriggerWidth,
67
+ height: zeroTriggerHeight,
68
+ color: triggerColor,
69
+ fontSize: token.fontSizeXL,
70
+ display: 'flex',
71
+ alignItems: 'center',
72
+ justifyContent: 'center',
73
+ background: siderBg,
74
+ borderStartStartRadius: 0,
75
+ borderStartEndRadius: borderRadius,
76
+ borderEndEndRadius: borderRadius,
77
+ borderEndStartRadius: 0,
78
+ cursor: 'pointer',
79
+ transition: "background ".concat(motionDurationSlow, " ease"),
80
+ '&::after': {
81
+ position: 'absolute',
82
+ inset: 0,
83
+ background: 'transparent',
84
+ transition: "all ".concat(motionDurationSlow),
85
+ content: '""'
86
+ },
87
+ '&:hover::after': {
88
+ background: "rgba(255, 255, 255, 0.2)"
89
+ },
90
+ '&-right': {
91
+ insetInlineStart: token.calc(zeroTriggerWidth).mul(-1).equal(),
92
+ borderStartStartRadius: borderRadius,
93
+ borderStartEndRadius: 0,
94
+ borderEndEndRadius: 0,
95
+ borderEndStartRadius: borderRadius
96
+ }
97
+ }
98
+ }), '&-light', _defineProperty(_defineProperty({
99
+ background: lightSiderBg
100
+ }, "".concat(componentCls, "-trigger"), {
101
+ color: lightTriggerColor,
102
+ background: lightTriggerBg
103
+ }), "".concat(componentCls, "-zero-width-trigger"), {
104
+ color: lightTriggerColor,
105
+ background: lightTriggerBg,
106
+ border: "1px solid ".concat(bodyBg),
107
+ // Safe to modify to any other color
108
+ borderInlineStart: 0
109
+ })));
110
+ };
111
+ export default genStyleHooks(['Layout', 'Sider'], function (token) {
112
+ return [genSiderStyle(token)];
113
+ }, prepareComponentToken, {
114
+ deprecatedTokens: DEPRECATED_TOKENS
115
+ });
@@ -1,6 +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
2
  var _excluded = ["prefixCls", "className", "avatar", "title", "description"],
3
- _excluded2 = ["prefixCls", "children", "actions", "extra", "className", "colStyle"];
3
+ _excluded2 = ["prefixCls", "children", "actions", "extra", "styles", "className", "classNames", "colStyle"];
4
4
  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; }
5
5
  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; }
6
6
  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; }
@@ -49,16 +49,27 @@ var InternalItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
49
49
  children = props.children,
50
50
  actions = props.actions,
51
51
  extra = props.extra,
52
+ styles = props.styles,
52
53
  className = props.className,
54
+ customizeClassNames = props.classNames,
53
55
  colStyle = props.colStyle,
54
56
  others = _objectWithoutProperties(props, _excluded2);
55
57
  var _useContext2 = useContext(ListContext),
56
58
  grid = _useContext2.grid,
57
59
  itemLayout = _useContext2.itemLayout;
58
60
  var _useContext3 = useContext(ConfigContext),
59
- getPrefixCls = _useContext3.getPrefixCls;
61
+ getPrefixCls = _useContext3.getPrefixCls,
62
+ list = _useContext3.list;
63
+ var moduleClass = function moduleClass(moduleName) {
64
+ var _list$item;
65
+ return classNames(list === null || list === void 0 || (_list$item = list.item) === null || _list$item === void 0 || (_list$item = _list$item.classNames) === null || _list$item === void 0 ? void 0 : _list$item[moduleName], customizeClassNames === null || customizeClassNames === void 0 ? void 0 : customizeClassNames[moduleName]);
66
+ };
67
+ var moduleStyle = function moduleStyle(moduleName) {
68
+ var _list$item2;
69
+ return _objectSpread(_objectSpread({}, list === null || list === void 0 || (_list$item2 = list.item) === null || _list$item2 === void 0 || (_list$item2 = _list$item2.styles) === null || _list$item2 === void 0 ? void 0 : _list$item2[moduleName]), styles === null || styles === void 0 ? void 0 : styles[moduleName]);
70
+ };
60
71
  var isItemContainsTextNodeAndNotSingular = function isItemContainsTextNodeAndNotSingular() {
61
- var result;
72
+ var result = false;
62
73
  Children.forEach(children, function (element) {
63
74
  if (typeof element === 'string') {
64
75
  result = true;
@@ -74,7 +85,8 @@ var InternalItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
74
85
  };
75
86
  var prefixCls = getPrefixCls('list', customizePrefixCls);
76
87
  var actionsContent = actions && actions.length > 0 && _jsx("ul", {
77
- className: "".concat(prefixCls, "-item-action"),
88
+ className: classNames("".concat(prefixCls, "-item-action"), moduleClass('actions')),
89
+ style: moduleStyle('actions'),
78
90
  children: actions.map(function (action, i) {
79
91
  return (
80
92
  // eslint-disable-next-line react/no-array-index-key
@@ -95,7 +107,8 @@ var InternalItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
95
107
  className: "".concat(prefixCls, "-item-main"),
96
108
  children: [children, actionsContent]
97
109
  }, "content"), _jsx("div", {
98
- className: "".concat(prefixCls, "-item-extra"),
110
+ className: classNames("".concat(prefixCls, "-item-extra"), moduleClass('extra')),
111
+ style: moduleStyle('extra'),
99
112
  children: extra
100
113
  }, "extra")] : [children, actionsContent, cloneElement(extra, {
101
114
  key: 'extra'