@chaoswise/ui 3.0.23 → 3.1.1

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 (407) 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 +4 -2
  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 +1 -1
  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 +44 -10
  56. package/lib/Antd5/checkbox/Group.js +7 -2
  57. package/lib/Antd5/checkbox/assets/duigou1.js +29 -0
  58. package/lib/Antd5/checkbox/assets/duigou2.js +29 -0
  59. package/lib/Antd5/checkbox/style/index.js +112 -6
  60. package/lib/Antd5/collapse/Collapse.js +2 -1
  61. package/lib/Antd5/collapse/style/index.js +20 -13
  62. package/lib/Antd5/color-picker/ColorPicker.js +120 -78
  63. package/lib/Antd5/color-picker/ColorPickerPanel.js +44 -26
  64. package/lib/Antd5/color-picker/color.js +82 -10
  65. package/lib/Antd5/color-picker/components/ColorAlphaInput.js +2 -2
  66. package/lib/Antd5/color-picker/components/ColorClear.js +2 -2
  67. package/lib/Antd5/color-picker/components/ColorHexInput.js +5 -4
  68. package/lib/Antd5/color-picker/components/ColorInput.js +4 -3
  69. package/lib/Antd5/color-picker/components/ColorPresets.js +1 -1
  70. package/lib/Antd5/color-picker/components/ColorSlider.js +139 -0
  71. package/lib/Antd5/color-picker/components/ColorTrigger.js +52 -26
  72. package/lib/Antd5/color-picker/components/PanelPicker/GradientColorBar.js +130 -0
  73. package/lib/Antd5/color-picker/components/PanelPicker/index.js +194 -0
  74. package/lib/Antd5/color-picker/context.js +1 -5
  75. package/lib/Antd5/color-picker/hooks/useModeColor.js +87 -0
  76. package/lib/Antd5/color-picker/style/color-block.js +3 -2
  77. package/lib/Antd5/color-picker/style/index.js +33 -15
  78. package/lib/Antd5/color-picker/style/input.js +1 -1
  79. package/lib/Antd5/color-picker/style/picker.js +6 -33
  80. package/lib/Antd5/color-picker/style/slider.js +87 -0
  81. package/lib/Antd5/color-picker/util.js +53 -7
  82. package/lib/Antd5/config-provider/context.js +3 -1
  83. package/lib/Antd5/config-provider/cssVariables.js +0 -1
  84. package/lib/Antd5/config-provider/defaultRenderEmpty.js +8 -1
  85. package/lib/Antd5/config-provider/index.js +13 -5
  86. package/lib/Antd5/config-provider/style/index.js +0 -1
  87. package/lib/Antd5/date-picker/PickerButton.js +3 -2
  88. package/lib/Antd5/date-picker/design/behavior-pattern.js +15 -15
  89. package/lib/Antd5/date-picker/generatePicker/constant.js +15 -0
  90. package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +16 -11
  91. package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +19 -15
  92. package/lib/Antd5/date-picker/generatePicker/index.js +2 -2
  93. package/lib/Antd5/date-picker/generatePicker/interface.js +1 -1
  94. package/lib/Antd5/date-picker/index.js +2 -17
  95. package/lib/Antd5/date-picker/locale/ar_EG.js +9 -1
  96. package/lib/Antd5/date-picker/locale/az_AZ.js +9 -1
  97. package/lib/Antd5/date-picker/locale/el_GR.js +9 -1
  98. package/lib/Antd5/date-picker/locale/ja_JP.js +11 -1
  99. package/lib/Antd5/date-picker/locale/kn_IN.js +9 -1
  100. package/lib/Antd5/date-picker/locale/pl_PL.js +9 -1
  101. package/lib/Antd5/date-picker/locale/uk_UA.js +10 -1
  102. package/lib/Antd5/date-picker/style/index.js +13 -10
  103. package/lib/Antd5/date-picker/style/panel.js +36 -32
  104. package/lib/Antd5/date-picker/style/token.js +1 -1
  105. package/lib/Antd5/date-picker/util.js +0 -48
  106. package/lib/Antd5/descriptions/hooks/useItems.js +5 -0
  107. package/lib/Antd5/descriptions/hooks/useRow.js +42 -34
  108. package/lib/Antd5/descriptions/style/index.js +20 -8
  109. package/lib/Antd5/divider/index.js +4 -3
  110. package/lib/Antd5/divider/style/index.js +19 -4
  111. package/lib/Antd5/drawer/DrawerPanel.js +11 -20
  112. package/lib/Antd5/drawer/index.js +39 -42
  113. package/lib/Antd5/drawer/style/index.js +10 -11
  114. package/lib/Antd5/dropdown/dropdown.js +5 -7
  115. package/lib/Antd5/dropdown/style/index.js +27 -11
  116. package/lib/Antd5/empty/empty.js +9 -3
  117. package/lib/Antd5/empty/simple.js +9 -3
  118. package/lib/Antd5/empty/style/index.js +1 -1
  119. package/lib/Antd5/float-button/BackTop.js +3 -2
  120. package/lib/Antd5/float-button/FloatButton.js +16 -5
  121. package/lib/Antd5/float-button/FloatButtonGroup.js +76 -52
  122. package/lib/Antd5/float-button/style/index.js +117 -76
  123. package/lib/Antd5/float-button/style/keyframes.js +118 -0
  124. package/lib/Antd5/form/ErrorList.js +14 -2
  125. package/lib/Antd5/form/Form.js +11 -3
  126. package/lib/Antd5/form/FormItem/ItemHolder.js +8 -4
  127. package/lib/Antd5/form/FormItem/index.js +6 -4
  128. package/lib/Antd5/form/FormItemInput.js +68 -28
  129. package/lib/Antd5/form/FormItemLabel.js +3 -3
  130. package/lib/Antd5/form/hooks/useForm.js +8 -1
  131. package/lib/Antd5/form/hooks/useVariants.js +10 -4
  132. package/lib/Antd5/form/style/explain.js +9 -8
  133. package/lib/Antd5/form/style/index.js +30 -18
  134. package/lib/Antd5/grid/row.js +2 -2
  135. package/lib/Antd5/image/index.js +3 -1
  136. package/lib/Antd5/image/style/index.js +17 -20
  137. package/lib/Antd5/index.js +2 -1
  138. package/lib/Antd5/input/Input.js +18 -38
  139. package/lib/Antd5/input/OTP/OTPInput.js +10 -5
  140. package/lib/Antd5/input/OTP/index.js +12 -4
  141. package/lib/Antd5/input/Password.js +6 -2
  142. package/lib/Antd5/input/Search.js +2 -4
  143. package/lib/Antd5/input/TextArea.js +1 -1
  144. package/lib/Antd5/input/style/index.js +72 -63
  145. package/lib/Antd5/input/style/otp.js +1 -1
  146. package/lib/Antd5/input/style/variants.js +38 -23
  147. package/lib/Antd5/input/utils.js +0 -1
  148. package/lib/Antd5/input-number/index.js +19 -22
  149. package/lib/Antd5/input-number/style/index.js +26 -16
  150. package/lib/Antd5/layout/Sider.js +15 -8
  151. package/lib/Antd5/layout/style/index.js +6 -96
  152. package/lib/Antd5/layout/style/sider.js +115 -0
  153. package/lib/Antd5/list/Item.js +18 -5
  154. package/lib/Antd5/list/index.js +15 -10
  155. package/lib/Antd5/list/style/index.js +40 -41
  156. package/lib/Antd5/locale/ar_EG.js +14 -1
  157. package/lib/Antd5/locale/az_AZ.js +78 -28
  158. package/lib/Antd5/locale/bn_BD.js +0 -1
  159. package/lib/Antd5/locale/by_BY.js +0 -1
  160. package/lib/Antd5/locale/ca_ES.js +0 -1
  161. package/lib/Antd5/locale/cs_CZ.js +0 -1
  162. package/lib/Antd5/locale/de_DE.js +0 -1
  163. package/lib/Antd5/locale/el_GR.js +104 -3
  164. package/lib/Antd5/locale/en_GB.js +0 -1
  165. package/lib/Antd5/locale/en_US.js +4 -2
  166. package/lib/Antd5/locale/es_ES.js +10 -6
  167. package/lib/Antd5/locale/et_EE.js +0 -1
  168. package/lib/Antd5/locale/eu_ES.js +4 -2
  169. package/lib/Antd5/locale/fa_IR.js +0 -1
  170. package/lib/Antd5/locale/fr_BE.js +5 -1
  171. package/lib/Antd5/locale/fr_CA.js +0 -1
  172. package/lib/Antd5/locale/fr_FR.js +5 -6
  173. package/lib/Antd5/locale/ga_IE.js +0 -1
  174. package/lib/Antd5/locale/gl_ES.js +0 -1
  175. package/lib/Antd5/locale/he_IL.js +0 -1
  176. package/lib/Antd5/locale/hi_IN.js +0 -1
  177. package/lib/Antd5/locale/hr_HR.js +0 -1
  178. package/lib/Antd5/locale/id_ID.js +4 -2
  179. package/lib/Antd5/locale/index.js +1 -1
  180. package/lib/Antd5/locale/it_IT.js +0 -1
  181. package/lib/Antd5/locale/ja_JP.js +4 -2
  182. package/lib/Antd5/locale/ka_GE.js +0 -1
  183. package/lib/Antd5/locale/kk_KZ.js +0 -1
  184. package/lib/Antd5/locale/km_KH.js +0 -1
  185. package/lib/Antd5/locale/kn_IN.js +82 -4
  186. package/lib/Antd5/locale/ko_KR.js +4 -2
  187. package/lib/Antd5/locale/lt_LT.js +4 -2
  188. package/lib/Antd5/locale/ml_IN.js +0 -1
  189. package/lib/Antd5/locale/mn_MN.js +86 -2
  190. package/lib/Antd5/locale/ms_MY.js +101 -18
  191. package/lib/Antd5/locale/my_MM.js +0 -1
  192. package/lib/Antd5/locale/nb_NO.js +0 -1
  193. package/lib/Antd5/locale/ne_NP.js +104 -2
  194. package/lib/Antd5/locale/nl_BE.js +5 -1
  195. package/lib/Antd5/locale/nl_NL.js +5 -1
  196. package/lib/Antd5/locale/pl_PL.js +0 -1
  197. package/lib/Antd5/locale/pt_BR.js +0 -1
  198. package/lib/Antd5/locale/pt_PT.js +55 -38
  199. package/lib/Antd5/locale/ro_RO.js +0 -1
  200. package/lib/Antd5/locale/ru_RU.js +9 -2
  201. package/lib/Antd5/locale/si_LK.js +0 -1
  202. package/lib/Antd5/locale/sk_SK.js +0 -1
  203. package/lib/Antd5/locale/sr_RS.js +0 -1
  204. package/lib/Antd5/locale/sv_SE.js +0 -1
  205. package/lib/Antd5/locale/th_TH.js +11 -3
  206. package/lib/Antd5/locale/tk_TK.js +0 -1
  207. package/lib/Antd5/locale/tr_TR.js +2 -1
  208. package/lib/Antd5/locale/uk_UA.js +1 -1
  209. package/lib/Antd5/locale/ur_PK.js +0 -1
  210. package/lib/Antd5/locale/uz_UZ.js +6 -7
  211. package/lib/Antd5/locale/zh_CN.js +4 -2
  212. package/lib/Antd5/locale/zh_HK.js +0 -1
  213. package/lib/Antd5/locale/zh_TW.js +0 -1
  214. package/lib/Antd5/mentions/index.js +4 -4
  215. package/lib/Antd5/menu/MenuItem.js +6 -5
  216. package/lib/Antd5/menu/OverrideContext.js +4 -3
  217. package/lib/Antd5/menu/SubMenu.js +2 -2
  218. package/lib/Antd5/menu/menu.js +2 -2
  219. package/lib/Antd5/menu/style/index.js +58 -40
  220. package/lib/Antd5/menu/style/theme.js +24 -20
  221. package/lib/Antd5/menu/style/vertical.js +10 -7
  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/radio/radio.js +4 -10
  248. package/lib/Antd5/radio/style/index.js +65 -80
  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/typography/hooks/useTooltipProps.js +30 -0
  368. package/lib/Antd5/typography/style/mixins.js +3 -9
  369. package/lib/Antd5/version/version.js +1 -1
  370. package/lib/Antd5/watermark/context.js +1 -1
  371. package/lib/Antd5/watermark/index.js +35 -18
  372. package/lib/Antd5/watermark/useClips.js +2 -1
  373. package/lib/Antd5/watermark/useRafDebounce.js +1 -1
  374. package/lib/Antd5/watermark/utils.js +1 -1
  375. package/lib/AppHolder/index.js +2 -1
  376. package/lib/CWSelect/index.js +39 -1
  377. package/lib/CWSelect/index.style.js +39 -0
  378. package/lib/CWTree/index.js +3 -9
  379. package/lib/CWTree/index.style.js +2 -0
  380. package/lib/ConfigProvider/ConfigProvider.js +11 -10
  381. package/lib/ConfigProvider/customTheme.js +6 -0
  382. package/lib/ConfigProvider/theme/common.js +140 -0
  383. package/lib/ConfigProvider/theme/dark.js +2 -0
  384. package/lib/ConfigProvider/theme/default.js +122 -0
  385. package/lib/ConfigProvider/theme/utils.js +49 -0
  386. package/lib/Header/UserSetting/TenantTree.js +0 -1
  387. package/lib/Pagination/index.style.js +1 -1
  388. package/lib/QuickTransfer/index.js +45 -59
  389. package/lib/SiderMenu/index.style.js +4 -2
  390. package/lib/Slider/index.style.js +2 -1
  391. package/lib/Splitter/index.js +2 -0
  392. package/package.json +37 -35
  393. package/lib/Antd5/color-picker/components/PanelPicker.js +0 -53
  394. package/lib/Antd5/color-picker/hooks/useColorState.js +0 -53
  395. package/lib/Antd5/layout/style/light.js +0 -24
  396. package/lib/Antd5/style/operationUnit.js +0 -18
  397. package/lib/Antd5/theme/util/calc/CSSCalculator.js +0 -119
  398. package/lib/Antd5/theme/util/calc/NumCalculator.js +0 -81
  399. package/lib/Antd5/theme/util/calc/calculator.js +0 -10
  400. package/lib/Antd5/theme/util/calc/index.js +0 -9
  401. package/lib/Antd5/theme/util/genComponentStyleHook.js +0 -243
  402. package/lib/Antd5/theme/util/maxmin.js +0 -27
  403. package/lib/Antd5/theme/util/statistic.js +0 -74
  404. package/lib/Antd5/typography/hooks/useUpdatedEffect.js +0 -13
  405. package/lib/Antd5/version/token-meta.json +0 -1
  406. package/lib/Antd5/version/token.json +0 -1
  407. package/lib/ConfigProvider/customTheme.json +0 -163
@@ -53,7 +53,7 @@ export var genCalendarStyles = function genCalendarStyles(token) {
53
53
  th: {
54
54
  height: 'auto',
55
55
  padding: 0,
56
- lineHeight: "".concat(unit(token.weekHeight))
56
+ lineHeight: unit(token.weekHeight)
57
57
  }
58
58
  }), "".concat(componentCls, "-cell::before"), {
59
59
  pointerEvents: 'none'
@@ -71,7 +71,7 @@ export var genCalendarStyles = function genCalendarStyles(token) {
71
71
  height: 'auto',
72
72
  paddingInlineEnd: token.paddingSM,
73
73
  paddingBottom: token.paddingXXS,
74
- lineHeight: "".concat(unit(token.weekHeight))
74
+ lineHeight: unit(token.weekHeight)
75
75
  }
76
76
  })), "".concat(componentCls, "-cell"), _defineProperty(_defineProperty(_defineProperty({
77
77
  '&::before': {
@@ -97,7 +97,7 @@ export var genCalendarStyles = function genCalendarStyles(token) {
97
97
  borderRadius: 0,
98
98
  transition: "background ".concat(token.motionDurationSlow),
99
99
  '&-value': {
100
- lineHeight: "".concat(unit(token.dateValueHeight)),
100
+ lineHeight: unit(token.dateValueHeight),
101
101
  transition: "color ".concat(token.motionDurationSlow)
102
102
  },
103
103
  '&-content': {
@@ -114,7 +114,7 @@ export var genCalendarStyles = function genCalendarStyles(token) {
114
114
  }, "".concat(calendarCls, "-date-value"), {
115
115
  color: token.colorText
116
116
  })
117
- })), "@media only screen and (max-width: ".concat(unit(token.screenXS), ") "), _defineProperty({}, "".concat(calendarCls), _defineProperty({}, "".concat(calendarCls, "-header"), _defineProperty(_defineProperty(_defineProperty({
117
+ })), "@media only screen and (max-width: ".concat(unit(token.screenXS), ") "), _defineProperty({}, calendarCls, _defineProperty({}, "".concat(calendarCls, "-header"), _defineProperty(_defineProperty(_defineProperty({
118
118
  display: 'block'
119
119
  }, "".concat(calendarCls, "-year-select"), {
120
120
  width: '50%'
@@ -107,7 +107,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
107
107
  var isContainGrid = React.useMemo(function () {
108
108
  var containGrid = false;
109
109
  React.Children.forEach(children, function (element) {
110
- if (element && element.type && element.type === Grid) {
110
+ if ((element === null || element === void 0 ? void 0 : element.type) === Grid) {
111
111
  containGrid = true;
112
112
  }
113
113
  });
@@ -182,13 +182,13 @@ var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
182
182
  children: loading ? loadingBlock : children
183
183
  });
184
184
  var actionClasses = classNames("".concat(prefixCls, "-actions"), moduleClass('actions'));
185
- var actionDom = actions && actions.length ? _jsx(ActionNode, {
185
+ var actionDom = actions !== null && actions !== void 0 && actions.length ? _jsx(ActionNode, {
186
186
  actionClasses: actionClasses,
187
187
  actionStyle: moduleStyle('actions'),
188
188
  actions: actions
189
189
  }) : null;
190
190
  var divProps = omit(others, ['onTabChange']);
191
- var classString = classNames(prefixCls, card === null || card === void 0 ? void 0 : card.className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-loading"), loading), "".concat(prefixCls, "-bordered"), bordered), "".concat(prefixCls, "-hoverable"), hoverable), "".concat(prefixCls, "-contain-grid"), isContainGrid), "".concat(prefixCls, "-contain-tabs"), tabList && tabList.length), "".concat(prefixCls, "-").concat(mergedSize), mergedSize), "".concat(prefixCls, "-type-").concat(type), !!type), "".concat(prefixCls, "-rtl"), direction === 'rtl'), className, rootClassName, hashId, cssVarCls);
191
+ var classString = classNames(prefixCls, card === null || card === void 0 ? void 0 : card.className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-loading"), loading), "".concat(prefixCls, "-bordered"), bordered), "".concat(prefixCls, "-hoverable"), hoverable), "".concat(prefixCls, "-contain-grid"), isContainGrid), "".concat(prefixCls, "-contain-tabs"), tabList === null || tabList === void 0 ? void 0 : tabList.length), "".concat(prefixCls, "-").concat(mergedSize), mergedSize), "".concat(prefixCls, "-type-").concat(type), !!type), "".concat(prefixCls, "-rtl"), direction === 'rtl'), className, rootClassName, hashId, cssVarCls);
192
192
  var mergedStyle = _objectSpread(_objectSpread({}, card === null || card === void 0 ? void 0 : card.style), style);
193
193
  return wrapCSSVar(_jsxs("div", _objectSpread(_objectSpread({
194
194
  ref: ref
@@ -177,8 +177,7 @@ var genCardLoadingStyle = function genCardLoadingStyle(token) {
177
177
  };
178
178
  // ============================== Basic ==============================
179
179
  var genCardStyle = function genCardStyle(token) {
180
- var antCls = token.antCls,
181
- componentCls = token.componentCls,
180
+ var componentCls = token.componentCls,
182
181
  cardShadow = token.cardShadow,
183
182
  cardHeadPadding = token.cardHeadPadding,
184
183
  colorBorderSecondary = token.colorBorderSecondary,
@@ -190,8 +189,7 @@ var genCardStyle = function genCardStyle(token) {
190
189
  background: token.colorBgContainer,
191
190
  borderRadius: token.borderRadiusLG
192
191
  }, "&:not(".concat(componentCls, "-bordered)"), {
193
- // boxShadow: boxShadowTertiary,
194
- boxShadow: "none"
192
+ boxShadow: boxShadowTertiary
195
193
  }), "".concat(componentCls, "-head"), genCardHeadStyle(token)), "".concat(componentCls, "-extra"), {
196
194
  // https://stackoverflow.com/a/22429853/3040605
197
195
  marginInlineStart: 'auto',
@@ -201,14 +199,13 @@ var genCardStyle = function genCardStyle(token) {
201
199
  }), "".concat(componentCls, "-body"), _objectSpread({
202
200
  padding: cardPaddingBase,
203
201
  borderRadius: "0 0 ".concat(unit(token.borderRadiusLG), " ").concat(unit(token.borderRadiusLG))
204
- }, clearFix())), "".concat(componentCls, "-grid"), genCardGridStyle(token)), "".concat(componentCls, "-cover"), _defineProperty({
202
+ }, clearFix())), "".concat(componentCls, "-grid"), genCardGridStyle(token)), "".concat(componentCls, "-cover"), {
205
203
  '> *': {
206
204
  display: 'block',
207
- width: '100%'
205
+ width: '100%',
206
+ borderRadius: "".concat(unit(token.borderRadiusLG), " ").concat(unit(token.borderRadiusLG), " 0 0")
208
207
  }
209
- }, "img, img + ".concat(antCls, "-image-mask"), {
210
- borderRadius: "".concat(unit(token.borderRadiusLG), " ").concat(unit(token.borderRadiusLG), " 0 0")
211
- })), "".concat(componentCls, "-actions"), genCardActionsStyle(token)), "".concat(componentCls, "-meta"), genCardMetaStyle(token)))), "".concat(componentCls, "-bordered"), _defineProperty({
208
+ }), "".concat(componentCls, "-actions"), genCardActionsStyle(token)), "".concat(componentCls, "-meta"), genCardMetaStyle(token)))), "".concat(componentCls, "-bordered"), _defineProperty({
212
209
  border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(colorBorderSecondary)
213
210
  }, "".concat(componentCls, "-cover"), {
214
211
  marginTop: -1,
@@ -20,14 +20,15 @@ import SlickCarousel from '@ant-design/react-slick';
20
20
  import classNames from 'classnames';
21
21
  import { ConfigContext } from '../config-provider';
22
22
  import useStyle from './style';
23
- function ArrowButton(_ref) {
23
+ var dotsClass = 'slick-dots';
24
+ var ArrowButton = function ArrowButton(_ref) {
24
25
  var currentSlide = _ref.currentSlide,
25
26
  slideCount = _ref.slideCount,
26
27
  rest = _objectWithoutProperties(_ref, _excluded);
27
28
  return _jsx("button", _objectSpread({
28
29
  type: "button"
29
30
  }, rest));
30
- }
31
+ };
31
32
  var Carousel = /*#__PURE__*/React.forwardRef(function (props, ref) {
32
33
  var _props$dots = props.dots,
33
34
  dots = _props$dots === void 0 ? true : _props$dots,
@@ -88,7 +89,6 @@ var Carousel = /*#__PURE__*/React.forwardRef(function (props, ref) {
88
89
  newProps.fade = true;
89
90
  }
90
91
  var prefixCls = getPrefixCls('carousel', newProps.prefixCls);
91
- var dotsClass = 'slick-dots';
92
92
  var enableDots = !!dots;
93
93
  var dsClass = classNames(dotsClass, "".concat(dotsClass, "-").concat(dotPosition), typeof dots === 'boolean' ? false : dots === null || dots === void 0 ? void 0 : dots.className);
94
94
  var _useStyle = useStyle(prefixCls),
@@ -86,7 +86,7 @@ var genArrowsStyle = function genArrowsStyle(token) {
86
86
  motionDurationSlow = token.motionDurationSlow,
87
87
  arrowSize = token.arrowSize,
88
88
  arrowOffset = token.arrowOffset;
89
- var arrowLength = token.calc(arrowSize).div(1.414).equal();
89
+ var arrowLength = token.calc(arrowSize).div(Math.SQRT2).equal();
90
90
  return [_defineProperty({}, componentCls, {
91
91
  // Arrows
92
92
  '.slick-prev, .slick-next': {
@@ -15,6 +15,7 @@ import * as React from 'react';
15
15
  import classNames from 'classnames';
16
16
  import { Panel } from 'rc-cascader';
17
17
  import DefaultRenderEmpty from '../config-provider/defaultRenderEmpty';
18
+ import DisabledContext from '../config-provider/DisabledContext';
18
19
  import useCSSVarCls from '../config-provider/hooks/useCSSVarCls';
19
20
  import useBase from './hooks/useBase';
20
21
  import useCheckable from './hooks/useCheckable';
@@ -28,7 +29,10 @@ function CascaderPanel(props) {
28
29
  rootClassName = props.rootClassName,
29
30
  notFoundContent = props.notFoundContent,
30
31
  direction = props.direction,
31
- expandIcon = props.expandIcon;
32
+ expandIcon = props.expandIcon,
33
+ customDisabled = props.disabled;
34
+ var disabled = React.useContext(DisabledContext);
35
+ var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
32
36
  var _useBase = useBase(customizePrefixCls, direction),
33
37
  _useBase2 = _slicedToArray(_useBase, 4),
34
38
  prefixCls = _useBase2[0],
@@ -62,7 +66,8 @@ function CascaderPanel(props) {
62
66
  notFoundContent: mergedNotFoundContent,
63
67
  direction: mergedDirection,
64
68
  expandIcon: mergedExpandIcon,
65
- loadingIcon: loadingIcon
69
+ loadingIcon: loadingIcon,
70
+ disabled: mergedDisabled
66
71
  })));
67
72
  }
68
73
  export default CascaderPanel;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ConfigContext } from '../../config-provider';
3
- export default function useBase(customizePrefixCls, direction) {
3
+ function useBase(customizePrefixCls, direction) {
4
4
  var _React$useContext = React.useContext(ConfigContext),
5
5
  getPrefixCls = _React$useContext.getPrefixCls,
6
6
  rootDirection = _React$useContext.direction,
@@ -9,4 +9,5 @@ export default function useBase(customizePrefixCls, direction) {
9
9
  var prefixCls = getPrefixCls('select', customizePrefixCls);
10
10
  var cascaderPrefixCls = getPrefixCls('cascader', customizePrefixCls);
11
11
  return [prefixCls, cascaderPrefixCls, mergedDirection, renderEmpty];
12
- }
12
+ }
13
+ export default useBase;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import LeftOutlined from '@ant-design/icons/LeftOutlined';
4
4
  import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
5
5
  import RightOutlined from '@ant-design/icons/RightOutlined';
6
- export default function useColumnIcons(prefixCls, rtl, expandIcon) {
6
+ var useColumnIcons = function useColumnIcons(prefixCls, rtl, expandIcon) {
7
7
  var mergedExpandIcon = expandIcon;
8
8
  if (!expandIcon) {
9
9
  mergedExpandIcon = rtl ? _jsx(LeftOutlined, {}) : _jsx(RightOutlined, {});
@@ -14,5 +14,8 @@ export default function useColumnIcons(prefixCls, rtl, expandIcon) {
14
14
  spin: true
15
15
  })
16
16
  });
17
- return [mergedExpandIcon, loadingIcon];
18
- }
17
+ return React.useMemo(function () {
18
+ return [mergedExpandIcon, loadingIcon];
19
+ }, [mergedExpandIcon]);
20
+ };
21
+ export default useColumnIcons;
@@ -156,7 +156,7 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
156
156
  var _useCompactItemContex = useCompactItemContext(prefixCls, direction),
157
157
  compactSize = _useCompactItemContex.compactSize,
158
158
  compactItemClassnames = _useCompactItemContex.compactItemClassnames;
159
- var _useVariant = useVariant(customVariant, bordered),
159
+ var _useVariant = useVariant('cascader', customVariant, bordered),
160
160
  _useVariant2 = _slicedToArray(_useVariant, 2),
161
161
  variant = _useVariant2[0],
162
162
  enableVariantCls = _useVariant2[1];
@@ -69,10 +69,12 @@ var getColumnsStyle = function getColumnsStyle(token) {
69
69
  }, iconCls, {
70
70
  color: token.colorTextDisabled
71
71
  })
72
- }, "&-active:not(".concat(cascaderMenuItemCls, "-disabled)"), _defineProperty({}, "&, &:hover", {
73
- fontWeight: token.optionSelectedFontWeight,
74
- backgroundColor: token.optionSelectedBg
75
- })), '&-content', {
72
+ }, "&-active:not(".concat(cascaderMenuItemCls, "-disabled)"), {
73
+ '&, &:hover': {
74
+ fontWeight: token.optionSelectedFontWeight,
75
+ backgroundColor: token.optionSelectedBg
76
+ }
77
+ }), '&-content', {
76
78
  flex: 'auto'
77
79
  }), iconCls, {
78
80
  marginInlineStart: token.paddingXXS,
@@ -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", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"];
2
+ var _excluded = ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled", "type", "render", "option"];
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; }
@@ -13,10 +13,11 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
13
13
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
14
14
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
15
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
16
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
17
17
  import * as React from 'react';
18
18
  import classNames from 'classnames';
19
19
  import RcCheckbox from 'rc-checkbox';
20
+ import { composeRef } from 'rc-util/lib/ref';
20
21
  import { devUseWarning } from '../_util/warning';
21
22
  import Wave from '../_util/wave';
22
23
  import { TARGET_CLS } from '../_util/wave/interface';
@@ -26,6 +27,10 @@ import useCSSVarCls from '../config-provider/hooks/useCSSVarCls';
26
27
  import { FormItemInputContext } from '../form/context';
27
28
  import GroupContext from './GroupContext';
28
29
  import useStyle from './style';
30
+ // @ts-ignore
31
+ import Duigou01 from "./assets/duigou1";
32
+ // @ts-ignore
33
+ import Duigou02 from "./assets/duigou2";
29
34
  var InternalCheckbox = function InternalCheckbox(props, ref) {
30
35
  var _ref;
31
36
  var customizePrefixCls = props.prefixCls,
@@ -40,17 +45,23 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
40
45
  _props$skipGroup = props.skipGroup,
41
46
  skipGroup = _props$skipGroup === void 0 ? false : _props$skipGroup,
42
47
  disabled = props.disabled,
48
+ type = props.type,
49
+ render = props.render,
50
+ option = props.option,
43
51
  restProps = _objectWithoutProperties(props, _excluded);
44
52
  var _React$useContext = React.useContext(ConfigContext),
45
53
  getPrefixCls = _React$useContext.getPrefixCls,
46
54
  direction = _React$useContext.direction,
47
55
  checkbox = _React$useContext.checkbox;
48
56
  var checkboxGroup = React.useContext(GroupContext);
57
+ var newTypeExist = type == "checkbox_" ? true : false;
49
58
  var _React$useContext2 = React.useContext(FormItemInputContext),
50
59
  isFormItemInput = _React$useContext2.isFormItemInput;
51
60
  var contextDisabled = React.useContext(DisabledContext);
52
61
  var mergedDisabled = (_ref = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _ref !== void 0 ? _ref : contextDisabled;
53
62
  var prevValue = React.useRef(restProps.value);
63
+ var checkboxRef = React.useRef(null);
64
+ var mergedRef = composeRef(ref, checkboxRef);
54
65
  if (process.env.NODE_ENV !== 'production') {
55
66
  var warning = devUseWarning('Checkbox');
56
67
  warning('checked' in restProps || !!checkboxGroup || !('value' in restProps), 'usage', '`value` is not a valid prop, do you mean `checked`?');
@@ -71,6 +82,12 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
71
82
  return checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
72
83
  };
73
84
  }, [restProps.value]);
85
+ React.useEffect(function () {
86
+ var _checkboxRef$current;
87
+ if ((_checkboxRef$current = checkboxRef.current) !== null && _checkboxRef$current !== void 0 && _checkboxRef$current.input) {
88
+ checkboxRef.current.input.indeterminate = indeterminate;
89
+ }
90
+ }, [indeterminate]);
74
91
  var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
75
92
  var rootCls = useCSSVarCls(prefixCls);
76
93
  var _useStyle = useStyle(prefixCls, rootCls),
@@ -94,9 +111,15 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
94
111
  checkboxProps.name = checkboxGroup.name;
95
112
  checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
96
113
  }
97
- var classString = classNames("".concat(prefixCls, "-wrapper"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'), "".concat(prefixCls, "-wrapper-checked"), checkboxProps.checked), "".concat(prefixCls, "-wrapper-disabled"), mergedDisabled), "".concat(prefixCls, "-wrapper-in-form-item"), isFormItemInput), checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, cssVarCls, rootCls, hashId);
114
+ var classString = classNames("".concat(prefixCls, "-wrapper"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'), "".concat(prefixCls, "-wrapper-checked"), checkboxProps.checked), "".concat(prefixCls, "-wrapper-disabled"), mergedDisabled), "".concat(prefixCls, "-wrapper-in-form-item"), isFormItemInput), "".concat(prefixCls, "-checkbox_-wrapper"), newTypeExist), "".concat(prefixCls, "-checkbox_-wrapper-checked"), checkboxProps.checked && newTypeExist), "".concat(prefixCls, "-checkbox_-wrapper-disabled"), mergedDisabled && newTypeExist), "".concat(prefixCls, "-checkbox_-wrapper-custom"), render), checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, cssVarCls, rootCls, hashId);
98
115
  var checkboxClass = classNames(_defineProperty({}, "".concat(prefixCls, "-indeterminate"), indeterminate), TARGET_CLS, hashId);
99
- var ariaChecked = indeterminate ? 'mixed' : undefined;
116
+ function renderImg() {
117
+ return checkboxProps.checked ? checkboxProps.disabled ? _jsx(Duigou02, {
118
+ className: "".concat(prefixCls, "-content-img")
119
+ }) : _jsx(Duigou01, {
120
+ className: "".concat(prefixCls, "-content-img")
121
+ }) : null;
122
+ }
100
123
  return wrapCSSVar(_jsx(Wave, {
101
124
  component: "Checkbox",
102
125
  disabled: mergedDisabled,
@@ -105,16 +128,27 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
105
128
  style: _objectSpread(_objectSpread({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style),
106
129
  onMouseEnter: onMouseEnter,
107
130
  onMouseLeave: onMouseLeave,
108
- children: [_jsx(RcCheckbox, _objectSpread(_objectSpread({
109
- "aria-checked": ariaChecked
110
- }, checkboxProps), {}, {
131
+ children: [_jsx(RcCheckbox, _objectSpread(_objectSpread({}, checkboxProps), {}, {
111
132
  prefixCls: prefixCls,
112
133
  className: checkboxClass,
113
134
  disabled: mergedDisabled,
114
- ref: ref
115
- })), children !== undefined && _jsx("span", {
135
+ ref: mergedRef
136
+ })), newTypeExist ? render ? _jsxs("div", {
137
+ children: [render(option), " ", renderImg()]
138
+ }) : _jsxs(_Fragment, {
139
+ children: [_jsxs("div", {
140
+ className: "".concat(prefixCls, "-content"),
141
+ children: [_jsx("p", {
142
+ className: classNames("".concat(prefixCls, "-content-title"), _defineProperty({}, "".concat(prefixCls, "-content-no-title"), !(children || option !== null && option !== void 0 && option.label))),
143
+ children: children ? children : option !== null && option !== void 0 && option.label ? option === null || option === void 0 ? void 0 : option.label : null
144
+ }), (option === null || option === void 0 ? void 0 : option.describe) && _jsx("div", {
145
+ className: "".concat(prefixCls, "-content-description"),
146
+ children: option === null || option === void 0 ? void 0 : option.describe
147
+ })]
148
+ }), renderImg()]
149
+ }) : children !== undefined ? _jsx("span", {
116
150
  children: children
117
- })]
151
+ }) : null]
118
152
  })
119
153
  }));
120
154
  };
@@ -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 = ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"];
2
+ var _excluded = ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange", "type", "render"];
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; }
@@ -36,6 +36,8 @@ var CheckboxGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
36
36
  rootClassName = props.rootClassName,
37
37
  style = props.style,
38
38
  onChange = props.onChange,
39
+ type = props.type,
40
+ render = props.render,
39
41
  restProps = _objectWithoutProperties(props, _excluded);
40
42
  var _React$useContext = React.useContext(ConfigContext),
41
43
  getPrefixCls = _React$useContext.getPrefixCls,
@@ -120,6 +122,9 @@ var CheckboxGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
120
122
  title: option.title,
121
123
  id: option.id,
122
124
  required: option.required,
125
+ type: type,
126
+ option: option,
127
+ render: render,
123
128
  children: option.label
124
129
  }, option.value.toString());
125
130
  }) : children;
@@ -132,7 +137,7 @@ var CheckboxGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
132
137
  registerValue: registerValue,
133
138
  cancelValue: cancelValue
134
139
  };
135
- var classString = classNames(groupPrefixCls, _defineProperty({}, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), className, rootClassName, cssVarCls, rootCls, hashId);
140
+ var classString = classNames(groupPrefixCls, _defineProperty(_defineProperty({}, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), "".concat(groupPrefixCls, "-").concat(type), type === "checkbox_"), className, rootClassName, cssVarCls, rootCls, hashId);
136
141
  return wrapCSSVar(_jsx("div", _objectSpread(_objectSpread({
137
142
  className: classString,
138
143
  style: style
@@ -0,0 +1,29 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
3
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
5
+ 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; }
6
+ 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; } }
7
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
8
+ import * as React from "react";
9
+ import { useToken } from "../../theme/internal";
10
+ var SvgDuigou1 = function SvgDuigou1(props) {
11
+ var _useToken = useToken(),
12
+ _useToken2 = _slicedToArray(_useToken, 2),
13
+ token = _useToken2[1];
14
+ return /*#__PURE__*/React.createElement("svg", _extends({
15
+ width: 24,
16
+ height: 24,
17
+ xmlns: "http://www.w3.org/2000/svg"
18
+ }, props), /*#__PURE__*/React.createElement("g", {
19
+ fill: "none",
20
+ fillRule: "evenodd"
21
+ }, /*#__PURE__*/React.createElement("path", {
22
+ d: "M24 0v22a2 2 0 0 1-2 2H0l.003-.397C.215 10.531 10.878 0 24 0Z",
23
+ fill: token["colorPrimary"]
24
+ }), /*#__PURE__*/React.createElement("path", {
25
+ d: "m19.07 10.856-6.089 6.639a.623.623 0 0 1-.885 0L8.731 14.12a.625.625 0 0 1 .885-.882l2.923 2.93 5.646-6.195a.624.624 0 1 1 .885.883Z",
26
+ fill: token["colorWhite"]
27
+ })));
28
+ };
29
+ export default SvgDuigou1;
@@ -0,0 +1,29 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
3
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
5
+ 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; }
6
+ 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; } }
7
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
8
+ import * as React from "react";
9
+ import { useToken } from "../../theme/internal";
10
+ var SvgDuigou2 = function SvgDuigou2(props) {
11
+ var _useToken = useToken(),
12
+ _useToken2 = _slicedToArray(_useToken, 2),
13
+ token = _useToken2[1];
14
+ return /*#__PURE__*/React.createElement("svg", _extends({
15
+ width: 24,
16
+ height: 24,
17
+ xmlns: "http://www.w3.org/2000/svg"
18
+ }, props), /*#__PURE__*/React.createElement("g", {
19
+ fill: "none",
20
+ fillRule: "evenodd"
21
+ }, /*#__PURE__*/React.createElement("path", {
22
+ d: "M24 0v22a2 2 0 0 1-2 2H0l.003-.397C.215 10.531 10.878 0 24 0Z",
23
+ fill: token["colorPrimaryBorder"]
24
+ }), /*#__PURE__*/React.createElement("path", {
25
+ d: "m19.07 10.856-6.089 6.639a.623.623 0 0 1-.885 0L8.731 14.12a.625.625 0 0 1 .885-.882l2.923 2.93 5.646-6.195a.624.624 0 1 1 .885.883Z",
26
+ fill: token["colorWhite"]
27
+ })));
28
+ };
29
+ export default SvgDuigou2;
@@ -108,9 +108,9 @@ export var genCheckboxStyle = function genCheckboxStyle(token) {
108
108
  borderColor: 'transparent'
109
109
  })), // ================= Indeterminate =================
110
110
  _defineProperty({}, checkboxCls, {
111
- '&-indeterminate': _defineProperty({}, "".concat(checkboxCls, "-inner"), {
112
- backgroundColor: token.colorBgContainer,
113
- borderColor: token.colorBorder,
111
+ '&-indeterminate': _defineProperty(_defineProperty({}, "".concat(checkboxCls, "-inner"), {
112
+ backgroundColor: "".concat(token.colorBgContainer, " !important"),
113
+ borderColor: "".concat(token.colorBorder, " !important"),
114
114
  '&:after': {
115
115
  top: '50%',
116
116
  insetInlineStart: '50%',
@@ -122,6 +122,9 @@ export var genCheckboxStyle = function genCheckboxStyle(token) {
122
122
  opacity: 1,
123
123
  content: '""'
124
124
  }
125
+ }), "&:hover ".concat(checkboxCls, "-inner"), {
126
+ backgroundColor: "".concat(token.colorBgContainer, " !important"),
127
+ borderColor: "".concat(token.colorPrimary, " !important")
125
128
  })
126
129
  }), // ==================== Disable ====================
127
130
  _defineProperty(_defineProperty({}, "".concat(wrapperCls, "-disabled"), {
@@ -145,6 +148,109 @@ export var genCheckboxStyle = function genCheckboxStyle(token) {
145
148
  background: token.colorTextDisabled
146
149
  }))];
147
150
  };
151
+ // Styles from checkbox-card
152
+ var getCheckboxCardStyle = function getCheckboxCardStyle(token) {
153
+ var componentCls = token.componentCls,
154
+ borderRadius = token.borderRadius,
155
+ colorBgContainer = token.colorBgContainer,
156
+ lineWidth = token.lineWidth,
157
+ lineType = token.lineType,
158
+ colorPrimary = token.colorPrimary,
159
+ colorPrimaryHover = token.colorPrimaryHover,
160
+ colorPrimaryBorder = token.colorPrimaryBorder,
161
+ colorBorder = token.colorBorder,
162
+ colorTextDisabled = token.colorTextDisabled,
163
+ colorTextSecondary = token.colorTextSecondary,
164
+ colorTextDescription = token.colorTextDescription;
165
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-group"), _defineProperty({}, "&".concat(componentCls, "-group-checkbox_"), {
166
+ display: "flex",
167
+ flexWrap: "wrap"
168
+ })), "".concat(componentCls, "-wrapper").concat(componentCls, "-checkbox_-wrapper"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
169
+ cursor: "pointer",
170
+ width: "242px",
171
+ height: "100%",
172
+ background: colorBgContainer,
173
+ display: "flex",
174
+ padding: "15px 23px",
175
+ border: "".concat(unit(lineWidth), " ").concat(lineType, " ").concat(colorBorder),
176
+ whiteSpace: "normal",
177
+ marginRight: "16px",
178
+ marginBottom: "12px",
179
+ boxSizing: "border-box",
180
+ borderRadius: borderRadius
181
+ }, "&:hover:not(".concat(componentCls, "-checkbox_-wrapper-disabled):not(").concat(componentCls, "-checkbox_-wrapper-checked)"), {
182
+ border: "".concat(unit(lineWidth), " ").concat(lineType, " ").concat(colorPrimaryHover)
183
+ }), "&:after", {
184
+ height: 0,
185
+ overflow: "hidden"
186
+ }), "> ".concat(componentCls), _defineProperty({
187
+ display: "block",
188
+ width: 0,
189
+ height: 0,
190
+ "&-checked::after": {
191
+ width: 0,
192
+ height: 0,
193
+ border: 0
194
+ },
195
+ "&+*": {
196
+ padding: 0
197
+ }
198
+ }, "".concat(componentCls, "-inner, input[type='checkbox']"), {
199
+ width: 0,
200
+ height: 0,
201
+ opacity: 0,
202
+ border: 0,
203
+ pointerEvents: "none"
204
+ })), "".concat(componentCls, "-content"), _defineProperty(_defineProperty(_defineProperty({
205
+ display: "flex",
206
+ flexDirection: "column"
207
+ }, "".concat(componentCls, "-content-title"), {
208
+ fontSize: "16px",
209
+ height: "24px",
210
+ lineHeight: "24px",
211
+ marginBottom: 0,
212
+ fontWeight: 500,
213
+ color: colorTextSecondary,
214
+ overflow: "hidden"
215
+ }), "".concat(componentCls, "-content-description"), {
216
+ fontSize: "12px",
217
+ color: colorTextDescription,
218
+ marginTop: "8px",
219
+ flex: 1,
220
+ whiteSpace: "normal",
221
+ lineHeight: "20px"
222
+ }), "".concat(componentCls, "-content-no-title"), _defineProperty({
223
+ height: 0
224
+ }, "&+".concat(componentCls, "-content-description"), {
225
+ marginTop: 0
226
+ })))), "".concat(componentCls, "-wrapper").concat(componentCls, "-checkbox_-wrapper-checked"), _defineProperty({
227
+ position: "relative"
228
+ }, "".concat(componentCls, "-content-img"), {
229
+ position: "absolute",
230
+ bottom: "-1px",
231
+ right: "-1px",
232
+ width: "24px",
233
+ height: "24px"
234
+ })), "".concat(componentCls, "-wrapper").concat(componentCls, "-checkbox_-wrapper-checked:not(").concat(componentCls, "-checkbox_-wrapper-disabled)"), {
235
+ border: "".concat(unit(lineWidth), " ").concat(lineType, " ").concat(colorPrimary)
236
+ }), "".concat(componentCls, "-wrapper").concat(componentCls, "-checkbox_-wrapper-disabled:not(").concat(componentCls, "-checkbox_-wrapper-checked)"), _defineProperty({
237
+ border: "".concat(unit(lineWidth), " ").concat(lineType, " rgba(0, 0, 0, 0.09)"),
238
+ cursor: "not-allowed"
239
+ }, "".concat(componentCls, "-content"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-content-title"), {
240
+ color: colorTextDisabled
241
+ }), "".concat(componentCls, "-content-description"), {
242
+ color: colorTextDisabled
243
+ }))), "".concat(componentCls, "-wrapper").concat(componentCls, "-checkbox_-wrapper-checked").concat(componentCls, "-checkbox_-wrapper-disabled"), _defineProperty({
244
+ border: "".concat(unit(lineWidth), " ").concat(lineType, " ").concat(colorPrimaryBorder),
245
+ cursor: "not-allowed",
246
+ position: "relative",
247
+ overflow: "hidden"
248
+ }, "".concat(componentCls, "-content"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-content-title"), {
249
+ color: colorTextDisabled
250
+ }), "".concat(componentCls, "-content-description"), {
251
+ color: colorTextDisabled
252
+ })));
253
+ };
148
254
  // ============================== Export ==============================
149
255
  export function getStyle(prefixCls, token) {
150
256
  var checkboxToken = mergeToken(token, {
@@ -153,7 +259,7 @@ export function getStyle(prefixCls, token) {
153
259
  });
154
260
  return [genCheckboxStyle(checkboxToken)];
155
261
  }
156
- export default genStyleHooks('Checkbox', function (token, _ref6) {
157
- var prefixCls = _ref6.prefixCls;
158
- return [getStyle(prefixCls, token)];
262
+ export default genStyleHooks("Checkbox", function (token, _ref7) {
263
+ var prefixCls = _ref7.prefixCls;
264
+ return [getStyle(prefixCls, token), getCheckboxCardStyle(token)];
159
265
  });
@@ -68,7 +68,8 @@ var Collapse = /*#__PURE__*/React.forwardRef(function (props, ref) {
68
68
  var renderExpandIcon = React.useCallback(function () {
69
69
  var panelProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
70
70
  var icon = typeof mergedExpandIcon === 'function' ? mergedExpandIcon(panelProps) : _jsx(RightOutlined, {
71
- rotate: panelProps.isActive ? 90 : undefined
71
+ rotate: panelProps.isActive ? 90 : undefined,
72
+ "aria-label": panelProps.isActive ? 'expanded' : 'collapsed'
72
73
  });
73
74
  return cloneElement(icon, function () {
74
75
  var _icon$props;