@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
@@ -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", "className", "rootClassName", "style", "tooltips", "character"];
2
+ var _excluded = ["prefixCls", "className", "rootClassName", "style", "tooltips", "character", "disabled"];
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; }
@@ -21,6 +21,7 @@ import RcRate from 'rc-rate';
21
21
  import { ConfigContext } from '../config-provider';
22
22
  import Tooltip from '../tooltip';
23
23
  import useStyle from './style';
24
+ import DisabledContext from '../config-provider/DisabledContext';
24
25
  var Rate = /*#__PURE__*/React.forwardRef(function (props, ref) {
25
26
  var prefixCls = props.prefixCls,
26
27
  className = props.className,
@@ -29,6 +30,7 @@ var Rate = /*#__PURE__*/React.forwardRef(function (props, ref) {
29
30
  tooltips = props.tooltips,
30
31
  _props$character = props.character,
31
32
  character = _props$character === void 0 ? _jsx(StarFilled, {}) : _props$character,
33
+ customDisabled = props.disabled,
32
34
  rest = _objectWithoutProperties(props, _excluded);
33
35
  var characterRender = function characterRender(node, _ref) {
34
36
  var index = _ref.index;
@@ -52,10 +54,14 @@ var Rate = /*#__PURE__*/React.forwardRef(function (props, ref) {
52
54
  hashId = _useStyle2[1],
53
55
  cssVarCls = _useStyle2[2];
54
56
  var mergedStyle = _objectSpread(_objectSpread({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
57
+ // ===================== Disabled =====================
58
+ var disabled = React.useContext(DisabledContext);
59
+ var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
55
60
  return wrapCSSVar(_jsx(RcRate, _objectSpread(_objectSpread({
56
61
  ref: ref,
57
62
  character: character,
58
- characterRender: characterRender
63
+ characterRender: characterRender,
64
+ disabled: mergedDisabled
59
65
  }, rest), {}, {
60
66
  className: classNames(className, rootClassName, hashId, cssVarCls, rate === null || rate === void 0 ? void 0 : rate.className),
61
67
  style: mergedStyle,
@@ -4,7 +4,9 @@ var NoFound = function NoFound() {
4
4
  return _jsxs("svg", {
5
5
  width: "252",
6
6
  height: "294",
7
- children: [_jsx("defs", {
7
+ children: [_jsx("title", {
8
+ children: "No Found"
9
+ }), _jsx("defs", {
8
10
  children: _jsx("path", {
9
11
  d: "M0 .387h251.772v251.772H0z"
10
12
  })
@@ -4,7 +4,9 @@ var ServerError = function ServerError() {
4
4
  return _jsxs("svg", {
5
5
  width: "254",
6
6
  height: "294",
7
- children: [_jsxs("defs", {
7
+ children: [_jsx("title", {
8
+ children: "Server Error"
9
+ }), _jsxs("defs", {
8
10
  children: [_jsx("path", {
9
11
  d: "M0 .335h253.49v253.49H0z"
10
12
  }), _jsx("path", {
@@ -1,10 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  var Unauthorized = function Unauthorized() {
4
- return _jsx("svg", {
4
+ return _jsxs("svg", {
5
5
  width: "251",
6
6
  height: "294",
7
- children: _jsxs("g", {
7
+ children: [_jsx("title", {
8
+ children: "Unauthorized"
9
+ }), _jsxs("g", {
8
10
  fill: "none",
9
11
  fillRule: "evenodd",
10
12
  children: [_jsx("path", {
@@ -224,7 +226,7 @@ var Unauthorized = function Unauthorized() {
224
226
  strokeLinecap: "round",
225
227
  strokeLinejoin: "round"
226
228
  })]
227
- })
229
+ })]
228
230
  });
229
231
  };
230
232
  export default Unauthorized;
@@ -1,4 +1,4 @@
1
- var _excluded = ["prefixCls", "className", "rootClassName", "block", "options", "size", "style"],
1
+ var _excluded = ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical"],
2
2
  _excluded2 = ["icon", "label"];
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; }
@@ -34,6 +34,7 @@ var InternalSegmented = /*#__PURE__*/React.forwardRef(function (props, ref) {
34
34
  _props$size = props.size,
35
35
  customSize = _props$size === void 0 ? 'middle' : _props$size,
36
36
  style = props.style,
37
+ vertical = props.vertical,
37
38
  restProps = _objectWithoutProperties(props, _excluded);
38
39
  var _React$useContext = React.useContext(ConfigContext),
39
40
  getPrefixCls = _React$useContext.getPrefixCls,
@@ -69,7 +70,7 @@ var InternalSegmented = /*#__PURE__*/React.forwardRef(function (props, ref) {
69
70
  return option;
70
71
  });
71
72
  }, [options, prefixCls]);
72
- var cls = classNames(className, rootClassName, segmented === null || segmented === void 0 ? void 0 : segmented.className, _defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-block"), block), "".concat(prefixCls, "-sm"), mergedSize === 'small'), "".concat(prefixCls, "-lg"), mergedSize === 'large'), hashId, cssVarCls);
73
+ var cls = classNames(className, rootClassName, segmented === null || segmented === void 0 ? void 0 : segmented.className, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-block"), block), "".concat(prefixCls, "-sm"), mergedSize === 'small'), "".concat(prefixCls, "-lg"), mergedSize === 'large'), "".concat(prefixCls, "-vertical"), vertical), hashId, cssVarCls);
73
74
  var mergedStyle = _objectSpread(_objectSpread({}, segmented === null || segmented === void 0 ? void 0 : segmented.style), style);
74
75
  return wrapCSSVar(_jsx(RcSegmented, _objectSpread(_objectSpread({}, restProps), {}, {
75
76
  className: cls,
@@ -77,7 +78,8 @@ var InternalSegmented = /*#__PURE__*/React.forwardRef(function (props, ref) {
77
78
  options: extendedOptions,
78
79
  ref: ref,
79
80
  prefixCls: prefixCls,
80
- direction: direction
81
+ direction: direction,
82
+ vertical: vertical
81
83
  })));
82
84
  });
83
85
  var Segmented = InternalSegmented;
@@ -29,7 +29,7 @@ var genSegmentedStyle = function genSegmentedStyle(token) {
29
29
  var labelHeight = token.calc(token.controlHeight).sub(token.calc(token.trackPadding).mul(2)).equal();
30
30
  var labelHeightLG = token.calc(token.controlHeightLG).sub(token.calc(token.trackPadding).mul(2)).equal();
31
31
  var labelHeightSM = token.calc(token.controlHeightSM).sub(token.calc(token.trackPadding).mul(2)).equal();
32
- return _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
32
+ return _defineProperty({}, componentCls, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
33
33
  display: 'inline-block',
34
34
  padding: token.trackPadding,
35
35
  color: token.itemColor,
@@ -41,10 +41,17 @@ var genSegmentedStyle = function genSegmentedStyle(token) {
41
41
  display: 'flex',
42
42
  alignItems: 'stretch',
43
43
  justifyItems: 'flex-start',
44
+ flexDirection: 'row',
44
45
  width: '100%'
45
46
  }), "&".concat(componentCls, "-rtl"), {
46
47
  direction: 'rtl'
47
- }), "&".concat(componentCls, "-block"), {
48
+ }), "&".concat(componentCls, "-vertical"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-group"), {
49
+ flexDirection: 'column'
50
+ }), "".concat(componentCls, "-thumb"), {
51
+ width: '100%',
52
+ height: 0,
53
+ padding: "0 ".concat(unit(token.paddingXXS))
54
+ })), "&".concat(componentCls, "-block"), {
48
55
  display: 'flex'
49
56
  }), "&".concat(componentCls, "-block ").concat(componentCls, "-item"), {
50
57
  flex: 1,
@@ -106,7 +113,8 @@ var genSegmentedStyle = function genSegmentedStyle(token) {
106
113
  width: 0,
107
114
  height: '100%',
108
115
  padding: "".concat(unit(token.paddingXXS), " 0"),
109
- borderRadius: token.borderRadiusSM
116
+ borderRadius: token.borderRadiusSM,
117
+ transition: "transform ".concat(token.motionDurationSlow, " ").concat(token.motionEaseInOut, ", height ").concat(token.motionDurationSlow, " ").concat(token.motionEaseInOut)
110
118
  }, "& ~ ".concat(componentCls, "-item:not(").concat(componentCls, "-item-selected):not(").concat(componentCls, "-item-disabled)::after"), {
111
119
  backgroundColor: 'transparent'
112
120
  }))), "&".concat(componentCls, "-lg"), _defineProperty(_defineProperty({
@@ -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", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount"];
2
+ var _excluded = ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount", "prefix"];
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; }
@@ -66,6 +66,7 @@ var InternalSelect = function InternalSelect(props, ref) {
66
66
  transitionName = props.transitionName,
67
67
  tagRender = props.tagRender,
68
68
  maxCount = props.maxCount,
69
+ prefix = props.prefix,
69
70
  rest = _objectWithoutProperties(props, _excluded);
70
71
  var _React$useContext = React.useContext(ConfigContext),
71
72
  getContextPopupContainer = _React$useContext.getPopupContainer,
@@ -86,7 +87,7 @@ var InternalSelect = function InternalSelect(props, ref) {
86
87
  var _useCompactItemContex = useCompactItemContext(prefixCls, direction),
87
88
  compactSize = _useCompactItemContex.compactSize,
88
89
  compactItemClassnames = _useCompactItemContex.compactItemClassnames;
89
- var _useVariants = useVariants(customizeVariant, bordered),
90
+ var _useVariants = useVariants('select', customizeVariant, bordered),
90
91
  _useVariants2 = _slicedToArray(_useVariants, 2),
91
92
  variant = _useVariants2[0],
92
93
  enableVariantCls = _useVariants2[1];
@@ -189,6 +190,7 @@ var InternalSelect = function InternalSelect(props, ref) {
189
190
  prefixCls: prefixCls,
190
191
  placement: memoPlacement,
191
192
  direction: direction,
193
+ prefix: prefix,
192
194
  suffixIcon: suffixIcon,
193
195
  menuItemSelectedIcon: itemIcon,
194
196
  removeIcon: removeIcon,
@@ -57,7 +57,7 @@ var genSingleStyle = function genSingleStyle(token) {
57
57
  animationName: slideDownOut
58
58
  }), '&-hidden', {
59
59
  display: 'none'
60
- }), "".concat(selectItemCls), _objectSpread(_objectSpread({}, genItemStyle(token)), {}, {
60
+ }), selectItemCls, _objectSpread(_objectSpread({}, genItemStyle(token)), {}, {
61
61
  cursor: 'pointer',
62
62
  transition: "background ".concat(token.motionDurationSlow, " ease"),
63
63
  borderRadius: token.borderRadiusSM,
@@ -59,9 +59,9 @@ var genBaseStyle = function genBaseStyle(token) {
59
59
  componentCls = token.componentCls,
60
60
  inputPaddingHorizontalBase = token.inputPaddingHorizontalBase,
61
61
  iconCls = token.iconCls;
62
- return _defineProperty(_defineProperty({}, componentCls, _objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
62
+ return _defineProperty(_defineProperty({}, componentCls, _objectSpread(_objectSpread({}, resetComponent(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
63
63
  position: 'relative',
64
- display: 'inline-block',
64
+ display: 'inline-flex',
65
65
  cursor: 'pointer'
66
66
  }, "&:not(".concat(componentCls, "-customize-input) ").concat(componentCls, "-selector"), _objectSpread(_objectSpread({}, genSelectorStyle(token)), getSearchInputWithoutBorderStyle(token))), "".concat(componentCls, "-selection-item"), _objectSpread(_objectSpread({
67
67
  flex: 1,
@@ -101,7 +101,20 @@ var genBaseStyle = function genBaseStyle(token) {
101
101
  cursor: 'not-allowed'
102
102
  }), '> *:not(:last-child)', {
103
103
  marginInlineEnd: 8 // FIXME: magic
104
- }))), "".concat(componentCls, "-clear"), {
104
+ }))), "".concat(componentCls, "-selection-wrap"), {
105
+ display: 'flex',
106
+ width: '100%',
107
+ position: 'relative',
108
+ // https://github.com/ant-design/ant-design/issues/51669
109
+ '&:after': {
110
+ content: '"\\a0"',
111
+ width: 0,
112
+ overflow: 'hidden'
113
+ }
114
+ }), "".concat(componentCls, "-prefix"), {
115
+ flex: 'none',
116
+ marginInlineEnd: token.selectAffixPadding
117
+ }), "".concat(componentCls, "-clear"), {
105
118
  position: 'absolute',
106
119
  top: '50%',
107
120
  insetInlineStart: 'auto',
@@ -127,11 +140,11 @@ var genBaseStyle = function genBaseStyle(token) {
127
140
  '&:hover': {
128
141
  color: token.colorTextTertiary
129
142
  }
130
- }), '&:hover', _defineProperty(_defineProperty({}, "".concat(componentCls, "-clear"), {
131
- opacity: 1
132
- }), "".concat(componentCls, "-arrow:not(:last-child)"), {
133
- opacity: 0
134
- })))), "".concat(componentCls, "-has-feedback"), _defineProperty({}, "".concat(componentCls, "-clear"), {
143
+ }), "&:hover ".concat(componentCls, "-clear"), {
144
+ opacity: 1,
145
+ background: token.colorBgBase,
146
+ borderRadius: '50%'
147
+ }))), "".concat(componentCls, "-has-feedback"), _defineProperty({}, "".concat(componentCls, "-clear"), {
135
148
  insetInlineEnd: token.calc(inputPaddingHorizontalBase).add(token.fontSize).add(token.paddingXS).equal()
136
149
  }));
137
150
  };
@@ -119,10 +119,10 @@ var genSelectionStyle = function genSelectionStyle(token, suffix) {
119
119
  var selectItemDist = getSelectItemStyle(token);
120
120
  var suffixCls = suffix ? "".concat(componentCls, "-").concat(suffix) : '';
121
121
  var multipleSelectorUnit = getMultipleSelectorUnit(token);
122
- return _defineProperty({}, "".concat(componentCls, "-multiple").concat(suffixCls), _objectSpread(_objectSpread({}, genOverflowStyle(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-selector"), _defineProperty(_defineProperty({
122
+ return _defineProperty({}, "".concat(componentCls, "-multiple").concat(suffixCls), _objectSpread(_objectSpread({}, genOverflowStyle(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-selector"), _defineProperty(_defineProperty({
123
123
  display: 'flex',
124
- flexWrap: 'wrap',
125
124
  alignItems: 'center',
125
+ width: '100%',
126
126
  height: '100%',
127
127
  // Multiple is little different that horizontal is follow the vertical
128
128
  paddingInline: multipleSelectorUnit.basePadding,
@@ -141,10 +141,21 @@ var genSelectionStyle = function genSelectionStyle(token, suffix) {
141
141
  })), "".concat(componentCls, "-selection-item"), {
142
142
  height: multipleSelectorUnit.itemHeight,
143
143
  lineHeight: unit(multipleSelectorUnit.itemLineHeight)
144
- }), "".concat(selectOverflowPrefixCls, "-item + ").concat(selectOverflowPrefixCls, "-item"), _defineProperty({}, "".concat(componentCls, "-selection-search"), {
144
+ }), "".concat(componentCls, "-selection-wrap"), {
145
+ alignSelf: 'flex-start',
146
+ '&:after': {
147
+ lineHeight: unit(selectItemHeight),
148
+ marginBlock: INTERNAL_FIXED_ITEM_MARGIN
149
+ }
150
+ }), "".concat(componentCls, "-prefix"), {
151
+ marginInlineStart: token.calc(token.inputPaddingHorizontalBase).sub(multipleSelectorUnit.basePadding).equal()
152
+ }), "".concat(selectOverflowPrefixCls, "-item + ").concat(selectOverflowPrefixCls, "-item,\n ").concat(componentCls, "-prefix + ").concat(componentCls, "-selection-wrap\n "), _defineProperty(_defineProperty({}, "".concat(componentCls, "-selection-search"), {
145
153
  marginInlineStart: 0
154
+ }), "".concat(componentCls, "-selection-placeholder"), {
155
+ insetInlineStart: 0
146
156
  })), "".concat(selectOverflowPrefixCls, "-item-suffix"), {
147
- height: '100%'
157
+ minHeight: multipleSelectorUnit.itemHeight,
158
+ marginBlock: INTERNAL_FIXED_ITEM_MARGIN
148
159
  }), "".concat(componentCls, "-selection-search"), _defineProperty(_defineProperty(_defineProperty({
149
160
  display: 'inline-flex',
150
161
  position: 'relative',
@@ -170,7 +181,7 @@ var genSelectionStyle = function genSelectionStyle(token, suffix) {
170
181
  })), "".concat(componentCls, "-selection-placeholder"), {
171
182
  position: 'absolute',
172
183
  top: '50%',
173
- insetInlineStart: token.inputPaddingHorizontalBase,
184
+ insetInlineStart: token.calc(token.inputPaddingHorizontalBase).sub(multipleSelectorUnit.basePadding).equal(),
174
185
  insetInlineEnd: token.inputPaddingHorizontalBase,
175
186
  transform: 'translateY(-50%)',
176
187
  transition: "all ".concat(token.motionDurationSlow)
@@ -179,13 +190,11 @@ var genSelectionStyle = function genSelectionStyle(token, suffix) {
179
190
  function genSizeStyle(token, suffix) {
180
191
  var componentCls = token.componentCls;
181
192
  var suffixCls = suffix ? "".concat(componentCls, "-").concat(suffix) : '';
182
- var rawStyle = _defineProperty({}, "".concat(componentCls, "-multiple").concat(suffixCls), _defineProperty(_defineProperty(_defineProperty({
193
+ var rawStyle = _defineProperty({}, "".concat(componentCls, "-multiple").concat(suffixCls), _defineProperty(_defineProperty({
183
194
  fontSize: token.fontSize
184
195
  }, "".concat(componentCls, "-selector"), _defineProperty({}, "".concat(componentCls, "-show-search&"), {
185
196
  cursor: 'text'
186
- })), "\n &".concat(componentCls, "-show-arrow ").concat(componentCls, "-selection-placeholder\n "), {
187
- paddingInlineEnd: token.showArrowPaddingInlineEnd
188
- }), "\n &".concat(componentCls, "-show-arrow ").concat(componentCls, "-selector,\n &").concat(componentCls, "-allow-clear ").concat(componentCls, "-selector\n "), {
197
+ })), "\n &".concat(componentCls, "-show-arrow ").concat(componentCls, "-selector,\n &").concat(componentCls, "-allow-clear ").concat(componentCls, "-selector\n "), {
189
198
  paddingInlineEnd: token.calc(token.fontSizeIcon).add(token.controlPaddingHorizontal).equal()
190
199
  }));
191
200
  return [genSelectionStyle(token, suffix), rawStyle];
@@ -18,18 +18,18 @@ function genSizeStyle(token, suffix) {
18
18
  height: token.controlHeight
19
19
  }, "".concat(componentCls, "-selector"), _objectSpread(_objectSpread({}, resetComponent(token, true)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
20
20
  display: 'flex',
21
- borderRadius: borderRadius
21
+ borderRadius: borderRadius,
22
+ flex: '1 1 auto'
22
23
  }, "".concat(componentCls, "-selection-search"), {
23
24
  position: 'absolute',
24
- top: 0,
25
- insetInlineStart: inputPaddingHorizontalBase,
26
- insetInlineEnd: inputPaddingHorizontalBase,
27
- bottom: 0,
25
+ inset: 0,
26
+ width: '100%',
28
27
  '&-input': {
29
28
  width: '100%',
30
29
  WebkitAppearance: 'textfield'
31
30
  }
32
31
  }), "\n ".concat(componentCls, "-selection-item,\n ").concat(componentCls, "-selection-placeholder\n "), {
32
+ display: 'block',
33
33
  padding: 0,
34
34
  lineHeight: unit(selectHeightWithoutBorder),
35
35
  transition: "all ".concat(token.motionDurationSlow, ", visibility 0s"),
@@ -42,13 +42,14 @@ function genSizeStyle(token, suffix) {
42
42
  width: 0,
43
43
  visibility: 'hidden',
44
44
  content: '"\\a0"'
45
- }))), "\n &".concat(componentCls, "-show-arrow ").concat(componentCls, "-selection-item,\n &").concat(componentCls, "-show-arrow ").concat(componentCls, "-selection-placeholder\n "), {
45
+ }))), "\n &".concat(componentCls, "-show-arrow ").concat(componentCls, "-selection-item,\n &").concat(componentCls, "-show-arrow ").concat(componentCls, "-selection-search,\n &").concat(componentCls, "-show-arrow ").concat(componentCls, "-selection-placeholder\n "), {
46
46
  paddingInlineEnd: token.showArrowPaddingInlineEnd
47
47
  }), "&".concat(componentCls, "-open ").concat(componentCls, "-selection-item"), {
48
48
  color: token.colorTextPlaceholder
49
49
  }), "&:not(".concat(componentCls, "-customize-input)"), _defineProperty({}, "".concat(componentCls, "-selector"), _defineProperty(_defineProperty({
50
50
  width: '100%',
51
51
  height: '100%',
52
+ alignItems: 'center',
52
53
  padding: "0 ".concat(unit(inputPaddingHorizontalBase))
53
54
  }, "".concat(componentCls, "-selection-search-input"), {
54
55
  height: selectHeightWithoutBorder
@@ -81,10 +82,7 @@ export default function genSingleStyle(token) {
81
82
  controlHeight: token.controlHeightSM,
82
83
  borderRadius: token.borderRadiusSM
83
84
  }), 'sm'), // padding
84
- _defineProperty({}, "".concat(componentCls, "-single").concat(componentCls, "-sm"), _defineProperty({}, "&:not(".concat(componentCls, "-customize-input)"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-selection-search"), {
85
- insetInlineStart: inputPaddingHorizontalSM,
86
- insetInlineEnd: inputPaddingHorizontalSM
87
- }), "".concat(componentCls, "-selector"), {
85
+ _defineProperty({}, "".concat(componentCls, "-single").concat(componentCls, "-sm"), _defineProperty({}, "&:not(".concat(componentCls, "-customize-input)"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-selector"), {
88
86
  padding: "0 ".concat(unit(inputPaddingHorizontalSM))
89
87
  }), "&".concat(componentCls, "-show-arrow ").concat(componentCls, "-selection-search"), {
90
88
  insetInlineEnd: token.calc(inputPaddingHorizontalSM).add(token.calc(token.fontSize).mul(1.5)).equal()
@@ -15,7 +15,10 @@ export var prepareComponentToken = function prepareComponentToken(token) {
15
15
  colorBgContainer = token.colorBgContainer,
16
16
  colorFillSecondary = token.colorFillSecondary,
17
17
  colorBgContainerDisabled = token.colorBgContainerDisabled,
18
- colorTextDisabled = token.colorTextDisabled;
18
+ colorTextDisabled = token.colorTextDisabled,
19
+ colorPrimaryHover = token.colorPrimaryHover,
20
+ colorPrimary = token.colorPrimary,
21
+ controlOutline = token.controlOutline;
19
22
  // Item height default use `controlHeight - 2 * paddingXXS`,
20
23
  // but some case `paddingXXS=0`.
21
24
  // Let's fallback it.
@@ -48,6 +51,10 @@ export var prepareComponentToken = function prepareComponentToken(token) {
48
51
  multipleSelectorBgDisabled: colorBgContainerDisabled,
49
52
  multipleItemColorDisabled: colorTextDisabled,
50
53
  multipleItemBorderColorDisabled: 'transparent',
51
- showArrowPaddingInlineEnd: Math.ceil(token.fontSize * 1.25)
54
+ showArrowPaddingInlineEnd: Math.ceil(token.fontSize * 1.25),
55
+ hoverBorderColor: colorPrimaryHover,
56
+ activeBorderColor: colorPrimary,
57
+ activeOutlineColor: controlOutline,
58
+ selectAffixPadding: paddingXXS
52
59
  };
53
60
  };
@@ -15,12 +15,14 @@ var genBaseOutlinedStyle = function genBaseOutlinedStyle(token, options) {
15
15
  return _defineProperty(_defineProperty({}, "&:not(".concat(componentCls, "-customize-input) ").concat(componentCls, "-selector"), {
16
16
  border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(options.borderColor),
17
17
  background: token.selectorBg
18
- }), "&:not(".concat(componentCls, "-disabled):not(").concat(componentCls, "-customize-input):not(").concat(antCls, "-pagination-size-changer)"), _defineProperty(_defineProperty({}, "&:hover ".concat(componentCls, "-selector"), {
18
+ }), "&:not(".concat(componentCls, "-disabled):not(").concat(componentCls, "-customize-input):not(").concat(antCls, "-pagination-size-changer)"), _defineProperty(_defineProperty(_defineProperty({}, "&:hover ".concat(componentCls, "-selector"), {
19
19
  borderColor: options.hoverBorderHover
20
20
  }), "".concat(componentCls, "-focused& ").concat(componentCls, "-selector"), {
21
21
  borderColor: options.activeBorderColor,
22
- boxShadow: "0 0 0 ".concat(unit(controlOutlineWidth), " ").concat(options.activeShadowColor),
22
+ boxShadow: "0 0 0 ".concat(unit(controlOutlineWidth), " ").concat(options.activeOutlineColor),
23
23
  outline: 0
24
+ }), "".concat(componentCls, "-prefix"), {
25
+ color: options.color
24
26
  }));
25
27
  };
26
28
  var genOutlinedStatusStyle = function genOutlinedStatusStyle(token, options) {
@@ -30,21 +32,24 @@ var genOutlinedStyle = function genOutlinedStyle(token) {
30
32
  return {
31
33
  '&-outlined': _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, genBaseOutlinedStyle(token, {
32
34
  borderColor: token.colorBorder,
33
- hoverBorderHover: token.colorPrimaryHover,
34
- activeBorderColor: token.colorPrimary,
35
- activeShadowColor: token.controlOutline
35
+ hoverBorderHover: token.hoverBorderColor,
36
+ activeBorderColor: token.activeBorderColor,
37
+ activeOutlineColor: token.activeOutlineColor,
38
+ color: token.colorText
36
39
  })), genOutlinedStatusStyle(token, {
37
40
  status: 'error',
38
41
  borderColor: token.colorError,
39
42
  hoverBorderHover: token.colorErrorHover,
40
43
  activeBorderColor: token.colorError,
41
- activeShadowColor: token.colorErrorOutline
44
+ activeOutlineColor: token.colorErrorOutline,
45
+ color: token.colorError
42
46
  })), genOutlinedStatusStyle(token, {
43
47
  status: 'warning',
44
48
  borderColor: token.colorWarning,
45
49
  hoverBorderHover: token.colorWarningHover,
46
50
  activeBorderColor: token.colorWarning,
47
- activeShadowColor: token.colorWarningOutline
51
+ activeOutlineColor: token.colorWarningOutline,
52
+ color: token.colorWarning
48
53
  })), {}, _defineProperty(_defineProperty({}, "&".concat(token.componentCls, "-disabled"), _defineProperty({}, "&:not(".concat(token.componentCls, "-customize-input) ").concat(token.componentCls, "-selector"), {
49
54
  background: token.colorBgContainerDisabled,
50
55
  color: token.colorTextDisabled
@@ -80,7 +85,7 @@ var genFilledStyle = function genFilledStyle(token) {
80
85
  '&-filled': _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, genBaseFilledStyle(token, {
81
86
  bg: token.colorFillTertiary,
82
87
  hoverBg: token.colorFillSecondary,
83
- activeBorderColor: token.colorPrimary,
88
+ activeBorderColor: token.activeBorderColor,
84
89
  color: token.colorText
85
90
  })), genFilledStatusStyle(token, {
86
91
  status: 'error',
@@ -109,15 +114,19 @@ var genFilledStyle = function genFilledStyle(token) {
109
114
  // =====================================================
110
115
  var genBorderlessStyle = function genBorderlessStyle(token) {
111
116
  return {
112
- '&-borderless': _defineProperty(_defineProperty(_defineProperty({}, "".concat(token.componentCls, "-selector"), {
117
+ '&-borderless': _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(token.componentCls, "-selector"), {
113
118
  background: 'transparent',
114
- borderColor: 'transparent'
119
+ border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " transparent")
115
120
  }), "&".concat(token.componentCls, "-disabled"), _defineProperty({}, "&:not(".concat(token.componentCls, "-customize-input) ").concat(token.componentCls, "-selector"), {
116
121
  color: token.colorTextDisabled
117
122
  })), "&".concat(token.componentCls, "-multiple ").concat(token.componentCls, "-selection-item"), {
118
123
  background: token.multipleItemBg,
119
124
  border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.multipleItemBorderColor)
120
- })
125
+ }), "&".concat(token.componentCls, "-status-error"), _defineProperty({}, "".concat(token.componentCls, "-prefix, ").concat(token.componentCls, "-selection-item"), {
126
+ color: token.colorError
127
+ })), "&".concat(token.componentCls, "-status-warning"), _defineProperty({}, "".concat(token.componentCls, "-prefix, ").concat(token.componentCls, "-selection-item"), {
128
+ color: token.colorWarning
129
+ }))
121
130
  };
122
131
  };
123
132
  var genVariantsStyle = function genVariantsStyle(token) {
@@ -8,7 +8,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
8
8
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9
9
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
10
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
11
- import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  import * as React from 'react';
13
13
  import classNames from 'classnames';
14
14
  import { ConfigContext } from '../config-provider';
@@ -34,14 +34,16 @@ var SkeletonImage = function SkeletonImage(props) {
34
34
  children: _jsx("div", {
35
35
  className: classNames("".concat(prefixCls, "-image"), className),
36
36
  style: style,
37
- children: _jsx("svg", {
37
+ children: _jsxs("svg", {
38
38
  viewBox: "0 0 1098 1024",
39
39
  xmlns: "http://www.w3.org/2000/svg",
40
40
  className: "".concat(prefixCls, "-image-svg"),
41
- children: _jsx("path", {
41
+ children: [_jsx("title", {
42
+ children: "Image placeholder"
43
+ }), _jsx("path", {
42
44
  d: path,
43
45
  className: "".concat(prefixCls, "-image-path")
44
- })
46
+ })]
45
47
  })
46
48
  })
47
49
  }));
@@ -10,7 +10,6 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
10
10
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  import * as React from 'react';
13
- import DotChartOutlined from '@ant-design/icons/DotChartOutlined';
14
13
  import classNames from 'classnames';
15
14
  import { ConfigContext } from '../config-provider';
16
15
  import useStyle from './style';
@@ -30,13 +29,12 @@ var SkeletonNode = function SkeletonNode(props) {
30
29
  hashId = _useStyle2[1],
31
30
  cssVarCls = _useStyle2[2];
32
31
  var cls = classNames(prefixCls, "".concat(prefixCls, "-element"), _defineProperty({}, "".concat(prefixCls, "-active"), active), hashId, className, rootClassName, cssVarCls);
33
- var content = children !== null && children !== void 0 ? children : _jsx(DotChartOutlined, {});
34
32
  return wrapCSSVar(_jsx("div", {
35
33
  className: cls,
36
34
  children: _jsx("div", {
37
35
  className: classNames("".concat(prefixCls, "-image"), className),
38
36
  style: style,
39
- children: content
37
+ children: children
40
38
  })
41
39
  }));
42
40
  };
@@ -25,7 +25,7 @@ var Paragraph = function Paragraph(props) {
25
25
  className = props.className,
26
26
  style = props.style,
27
27
  rows = props.rows;
28
- var rowList = _toConsumableArray(Array(rows)).map(function (_, index) {
28
+ var rowList = _toConsumableArray(new Array(rows)).map(function (_, index) {
29
29
  return (
30
30
  // eslint-disable-next-line react/no-array-index-key
31
31
  _jsx("li", {
@@ -13,11 +13,14 @@ var Title = function Title(_ref) {
13
13
  className = _ref.className,
14
14
  width = _ref.width,
15
15
  style = _ref.style;
16
- return _jsx("h3", {
17
- className: classNames(prefixCls, className),
18
- style: _objectSpread({
19
- width: width
20
- }, style)
21
- });
16
+ return (
17
+ // biome-ignore lint/a11y/useHeadingContent: HOC here
18
+ _jsx("h3", {
19
+ className: classNames(prefixCls, className),
20
+ style: _objectSpread({
21
+ width: width
22
+ }, style)
23
+ })
24
+ );
22
25
  };
23
26
  export default Title;