@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
@@ -17,7 +17,9 @@ import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-run
17
17
  import React, { forwardRef, useContext, useEffect, useRef } from 'react';
18
18
  import classNames from 'classnames';
19
19
  import RcInput from 'rc-input';
20
+ import { triggerFocus } from 'rc-input/lib/utils/commonUtils';
20
21
  import { composeRef } from 'rc-util/lib/ref';
22
+ import ContextIsolator from '../_util/ContextIsolator';
21
23
  import getAllowClear from '../_util/getAllowClear';
22
24
  import { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';
23
25
  import { devUseWarning } from '../_util/warning';
@@ -25,34 +27,13 @@ import { ConfigContext } from '../config-provider';
25
27
  import DisabledContext from '../config-provider/DisabledContext';
26
28
  import useCSSVarCls from '../config-provider/hooks/useCSSVarCls';
27
29
  import useSize from '../config-provider/hooks/useSize';
28
- import { FormItemInputContext, NoFormStyle } from '../form/context';
30
+ import { FormItemInputContext } from '../form/context';
29
31
  import useVariant from '../form/hooks/useVariants';
30
- import { NoCompactStyle, useCompactItemContext } from '../space/Compact';
32
+ import { useCompactItemContext } from '../space/Compact';
31
33
  import useRemovePasswordTimeout from './hooks/useRemovePasswordTimeout';
32
34
  import useStyle from './style';
33
35
  import { hasPrefixSuffix } from './utils';
34
- export function triggerFocus(element, option) {
35
- if (!element) {
36
- return;
37
- }
38
- element.focus(option);
39
- // Selection content
40
- var _ref = option || {},
41
- cursor = _ref.cursor;
42
- if (cursor) {
43
- var len = element.value.length;
44
- switch (cursor) {
45
- case 'start':
46
- element.setSelectionRange(0, 0);
47
- break;
48
- case 'end':
49
- element.setSelectionRange(len, len);
50
- break;
51
- default:
52
- element.setSelectionRange(0, len);
53
- }
54
- }
55
- }
36
+ export { triggerFocus };
56
37
  var Input = /*#__PURE__*/forwardRef(function (props, ref) {
57
38
  var _input$classNames;
58
39
  var customizePrefixCls = props.prefixCls,
@@ -99,8 +80,8 @@ var Input = /*#__PURE__*/forwardRef(function (props, ref) {
99
80
  compactItemClassnames = _useCompactItemContex.compactItemClassnames;
100
81
  // ===================== Size =====================
101
82
  var mergedSize = useSize(function (ctx) {
102
- var _ref2;
103
- return (_ref2 = customSize !== null && customSize !== void 0 ? customSize : compactSize) !== null && _ref2 !== void 0 ? _ref2 : ctx;
83
+ var _ref;
84
+ return (_ref = customSize !== null && customSize !== void 0 ? customSize : compactSize) !== null && _ref !== void 0 ? _ref : ctx;
104
85
  });
105
86
  // ===================== Disabled =====================
106
87
  var disabled = React.useContext(DisabledContext);
@@ -143,17 +124,8 @@ var Input = /*#__PURE__*/forwardRef(function (props, ref) {
143
124
  var suffixNode = (hasFeedback || suffix) && _jsxs(_Fragment, {
144
125
  children: [suffix, hasFeedback && feedbackIcon]
145
126
  });
146
- var getAddon = function getAddon(addon) {
147
- return addon && _jsx(NoCompactStyle, {
148
- children: _jsx(NoFormStyle, {
149
- override: true,
150
- status: true,
151
- children: addon
152
- })
153
- });
154
- };
155
127
  var mergedAllowClear = getAllowClear(allowClear !== null && allowClear !== void 0 ? allowClear : input === null || input === void 0 ? void 0 : input.allowClear);
156
- var _useVariant = useVariant(customVariant, bordered),
128
+ var _useVariant = useVariant('input', customVariant, bordered),
157
129
  _useVariant2 = _slicedToArray(_useVariant, 2),
158
130
  variant = _useVariant2[0],
159
131
  enableVariantCls = _useVariant2[1];
@@ -171,8 +143,16 @@ var Input = /*#__PURE__*/forwardRef(function (props, ref) {
171
143
  allowClear: mergedAllowClear,
172
144
  className: classNames(className, rootClassName, cssVarCls, rootCls, compactItemClassnames, input === null || input === void 0 ? void 0 : input.className),
173
145
  onChange: handleChange,
174
- addonBefore: getAddon(addonBefore),
175
- addonAfter: getAddon(addonAfter),
146
+ addonBefore: addonBefore && _jsx(ContextIsolator, {
147
+ form: true,
148
+ space: true,
149
+ children: addonBefore
150
+ }),
151
+ addonAfter: addonAfter && _jsx(ContextIsolator, {
152
+ form: true,
153
+ space: true,
154
+ children: addonAfter
155
+ }),
176
156
  classNames: _objectSpread(_objectSpread(_objectSpread({}, classes), input === null || input === void 0 ? void 0 : input.classNames), {}, {
177
157
  input: classNames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-sm"), mergedSize === 'small'), "".concat(prefixCls, "-lg"), mergedSize === 'large'), "".concat(prefixCls, "-rtl"), direction === 'rtl'), classes === null || classes === void 0 ? void 0 : classes.input, input === null || input === void 0 || (_input$classNames = input.classNames) === null || _input$classNames === void 0 ? void 0 : _input$classNames.input, hashId),
178
158
  variant: classNames(_defineProperty({}, "".concat(prefixCls, "-").concat(variant), enableVariantCls), getStatusClassNames(prefixCls, mergedStatus)),
@@ -38,12 +38,16 @@ var OTPInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
38
38
  });
39
39
  };
40
40
  // ======================== Keyboard ========================
41
- var onInternalKeyDown = function onInternalKeyDown(_ref) {
42
- var key = _ref.key;
41
+ var onInternalKeyDown = function onInternalKeyDown(event) {
42
+ var key = event.key,
43
+ ctrlKey = event.ctrlKey,
44
+ metaKey = event.metaKey;
43
45
  if (key === 'ArrowLeft') {
44
46
  onActiveChange(index - 1);
45
47
  } else if (key === 'ArrowRight') {
46
48
  onActiveChange(index + 1);
49
+ } else if (key === 'z' && (ctrlKey || metaKey)) {
50
+ event.preventDefault();
47
51
  }
48
52
  syncSelection();
49
53
  };
@@ -54,7 +58,9 @@ var OTPInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
54
58
  syncSelection();
55
59
  };
56
60
  // ========================= Render =========================
57
- return _jsx(Input, _objectSpread(_objectSpread({}, restProps), {}, {
61
+ return _jsx(Input, _objectSpread(_objectSpread({
62
+ type: mask === true ? 'password' : 'text'
63
+ }, restProps), {}, {
58
64
  ref: inputRef,
59
65
  value: internalValue,
60
66
  onInput: onInternalChange,
@@ -62,8 +68,7 @@ var OTPInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
62
68
  onKeyDown: onInternalKeyDown,
63
69
  onKeyUp: onInternalKeyUp,
64
70
  onMouseDown: syncSelection,
65
- onMouseUp: syncSelection,
66
- type: mask === true ? 'password' : 'text'
71
+ onMouseUp: syncSelection
67
72
  }));
68
73
  });
69
74
  export default OTPInput;
@@ -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", "length", "size", "defaultValue", "value", "onChange", "formatter", "variant", "disabled", "status", "autoFocus", "mask"];
2
+ var _excluded = ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "variant", "disabled", "status", "autoFocus", "mask", "type", "onInput", "inputMode"];
3
3
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
4
4
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
5
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
@@ -20,7 +20,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  import * as React from 'react';
22
22
  import classNames from 'classnames';
23
- import { useEvent } from 'rc-util';
23
+ import useEvent from 'rc-util/lib/hooks/useEvent';
24
24
  import pickAttrs from 'rc-util/lib/pickAttrs';
25
25
  import { getMergedStatus } from '../../_util/statusUtils';
26
26
  import { devUseWarning } from '../../_util/warning';
@@ -47,6 +47,9 @@ var OTP = /*#__PURE__*/React.forwardRef(function (props, ref) {
47
47
  customStatus = props.status,
48
48
  autoFocus = props.autoFocus,
49
49
  mask = props.mask,
50
+ type = props.type,
51
+ onInput = props.onInput,
52
+ inputMode = props.inputMode,
50
53
  restProps = _objectWithoutProperties(props, _excluded);
51
54
  if (process.env.NODE_ENV !== 'production') {
52
55
  var warning = devUseWarning('Input.OTP');
@@ -117,6 +120,9 @@ var OTP = /*#__PURE__*/React.forwardRef(function (props, ref) {
117
120
  }, [value]);
118
121
  var triggerValueCellsChange = useEvent(function (nextValueCells) {
119
122
  setValueCells(nextValueCells);
123
+ if (onInput) {
124
+ onInput(nextValueCells);
125
+ }
120
126
  // Trigger if all cells are filled
121
127
  if (onChange && nextValueCells.length === length && nextValueCells.every(function (c) {
122
128
  return c;
@@ -163,7 +169,7 @@ var OTP = /*#__PURE__*/React.forwardRef(function (props, ref) {
163
169
  var onInputChange = function onInputChange(index, txt) {
164
170
  var nextCells = patchValue(index, txt);
165
171
  var nextIndex = Math.min(index + txt.length, length - 1);
166
- if (nextIndex !== index) {
172
+ if (nextIndex !== index && nextCells[index] !== undefined) {
167
173
  var _refs$current$nextInd;
168
174
  (_refs$current$nextInd = refs.current[nextIndex]) === null || _refs$current$nextInd === void 0 || _refs$current$nextInd.focus();
169
175
  }
@@ -178,7 +184,9 @@ var OTP = /*#__PURE__*/React.forwardRef(function (props, ref) {
178
184
  variant: variant,
179
185
  disabled: disabled,
180
186
  status: mergedStatus,
181
- mask: mask
187
+ mask: mask,
188
+ type: type,
189
+ inputMode: inputMode
182
190
  };
183
191
  return wrapCSSVar(_jsx("div", _objectSpread(_objectSpread({}, domAttrs), {}, {
184
192
  ref: containerRef,
@@ -24,6 +24,7 @@ import { composeRef } from 'rc-util/lib/ref';
24
24
  import { ConfigContext } from '../config-provider';
25
25
  import useRemovePasswordTimeout from './hooks/useRemovePasswordTimeout';
26
26
  import Input from './Input';
27
+ import DisabledContext from '../config-provider/DisabledContext';
27
28
  var defaultIconRender = function defaultIconRender(visible) {
28
29
  return visible ? _jsx(EyeOutlined, {}) : _jsx(EyeInvisibleOutlined, {});
29
30
  };
@@ -32,13 +33,16 @@ var actionMap = {
32
33
  hover: 'onMouseOver'
33
34
  };
34
35
  var Password = /*#__PURE__*/React.forwardRef(function (props, ref) {
35
- var disabled = props.disabled,
36
+ var customDisabled = props.disabled,
36
37
  _props$action = props.action,
37
38
  action = _props$action === void 0 ? 'click' : _props$action,
38
39
  _props$visibilityTogg = props.visibilityToggle,
39
40
  visibilityToggle = _props$visibilityTogg === void 0 ? true : _props$visibilityTogg,
40
41
  _props$iconRender = props.iconRender,
41
42
  iconRender = _props$iconRender === void 0 ? defaultIconRender : _props$iconRender;
43
+ // ===================== Disabled =====================
44
+ var disabled = React.useContext(DisabledContext);
45
+ var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
42
46
  var visibilityControlled = _typeof(visibilityToggle) === 'object' && visibilityToggle.visible !== undefined;
43
47
  var _useState = useState(function () {
44
48
  return visibilityControlled ? visibilityToggle.visible : false;
@@ -55,7 +59,7 @@ var Password = /*#__PURE__*/React.forwardRef(function (props, ref) {
55
59
  // Remove Password value
56
60
  var removePasswordTimeout = useRemovePasswordTimeout(inputRef);
57
61
  var onVisibleChange = function onVisibleChange() {
58
- if (disabled) {
62
+ if (mergedDisabled) {
59
63
  return;
60
64
  }
61
65
  if (visible) {
@@ -48,14 +48,12 @@ var Search = /*#__PURE__*/React.forwardRef(function (props, ref) {
48
48
  });
49
49
  var inputRef = React.useRef(null);
50
50
  var onChange = function onChange(e) {
51
- if (e && e.target && e.type === 'click' && customOnSearch) {
51
+ if (e !== null && e !== void 0 && e.target && e.type === 'click' && customOnSearch) {
52
52
  customOnSearch(e.target.value, e, {
53
53
  source: 'clear'
54
54
  });
55
55
  }
56
- if (customOnChange) {
57
- customOnChange(e);
58
- }
56
+ customOnChange === null || customOnChange === void 0 || customOnChange(e);
59
57
  };
60
58
  var onMouseDown = function onMouseDown(e) {
61
59
  var _inputRef$current;
@@ -89,7 +89,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (props, ref) {
89
89
  wrapCSSVar = _useStyle2[0],
90
90
  hashId = _useStyle2[1],
91
91
  cssVarCls = _useStyle2[2];
92
- var _useVariant = useVariant(customVariant, bordered),
92
+ var _useVariant = useVariant('textArea', customVariant, bordered),
93
93
  _useVariant2 = _slicedToArray(_useVariant, 2),
94
94
  variant = _useVariant2[0],
95
95
  enableVariantCls = _useVariant2[1];
@@ -95,13 +95,15 @@ export var genInputGroupStyle = function genInputGroupStyle(token) {
95
95
  display: 'table',
96
96
  width: '100%',
97
97
  borderCollapse: 'separate',
98
- borderSpacing: 0
99
- }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "&[class*='col-']", {
100
- paddingInlineEnd: token.paddingXS,
101
- '&:last-child': {
102
- paddingInlineEnd: 0
98
+ borderSpacing: 0,
99
+ // Undo padding and float of grid classes
100
+ "&[class*='col-']": {
101
+ paddingInlineEnd: token.paddingXS,
102
+ '&:last-child': {
103
+ paddingInlineEnd: 0
104
+ }
103
105
  }
104
- }), "&-lg ".concat(componentCls, ", &-lg > ").concat(componentCls, "-group-addon"), _objectSpread({}, genInputLargeStyle(token))), "&-sm ".concat(componentCls, ", &-sm > ").concat(componentCls, "-group-addon"), _objectSpread({}, genInputSmallStyle(token))), "&-lg ".concat(antCls, "-select-single ").concat(antCls, "-select-selector"), {
106
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "&-lg ".concat(componentCls, ", &-lg > ").concat(componentCls, "-group-addon"), _objectSpread({}, genInputLargeStyle(token))), "&-sm ".concat(componentCls, ", &-sm > ").concat(componentCls, "-group-addon"), _objectSpread({}, genInputSmallStyle(token))), "&-lg ".concat(antCls, "-select-single ").concat(antCls, "-select-selector"), {
105
107
  height: token.controlHeightLG
106
108
  }), "&-sm ".concat(antCls, "-select-single ").concat(antCls, "-select-selector"), {
107
109
  height: token.controlHeightSM
@@ -110,42 +112,44 @@ export var genInputGroupStyle = function genInputGroupStyle(token) {
110
112
  '&:not(:first-child):not(:last-child)': {
111
113
  borderRadius: 0
112
114
  }
113
- }), "".concat(componentCls, "-group"), _defineProperty(_defineProperty(_defineProperty({}, "&-addon, &-wrap", {
114
- display: 'table-cell',
115
- width: 1,
116
- whiteSpace: 'nowrap',
117
- verticalAlign: 'middle',
118
- '&:not(:first-child):not(:last-child)': {
119
- borderRadius: 0
120
- }
121
- }), '&-wrap > *', {
122
- display: 'block !important'
123
- }), '&-addon', _defineProperty(_defineProperty({
124
- position: 'relative',
125
- padding: "0 ".concat(unit(token.paddingInline)),
126
- color: token.colorText,
127
- fontWeight: 'normal',
128
- fontSize: token.inputFontSize,
129
- textAlign: 'center',
130
- borderRadius: token.borderRadius,
131
- transition: "all ".concat(token.motionDurationSlow),
132
- lineHeight: 1
133
- }, "".concat(antCls, "-select"), _defineProperty(_defineProperty({
134
- margin: "".concat(unit(token.calc(token.paddingBlock).add(1).mul(-1).equal()), " ").concat(unit(token.calc(token.paddingInline).mul(-1).equal()))
135
- }, "&".concat(antCls, "-select-single:not(").concat(antCls, "-select-customize-input):not(").concat(antCls, "-pagination-size-changer)"), _defineProperty({}, "".concat(antCls, "-select-selector"), {
136
- backgroundColor: 'inherit',
137
- border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " transparent"),
138
- boxShadow: 'none'
139
- })), '&-open, &-focused', _defineProperty({}, "".concat(antCls, "-select-selector"), {
140
- color: token.colorPrimary
141
- }))), "".concat(antCls, "-cascader-picker"), _defineProperty({
142
- margin: "-9px ".concat(unit(token.calc(token.paddingInline).mul(-1).equal())),
143
- backgroundColor: 'transparent'
144
- }, "".concat(antCls, "-cascader-input"), {
145
- textAlign: 'start',
146
- border: 0,
147
- boxShadow: 'none'
148
- })))), "".concat(componentCls), {
115
+ }), "".concat(componentCls, "-group"), {
116
+ '&-addon, &-wrap': {
117
+ display: 'table-cell',
118
+ width: 1,
119
+ whiteSpace: 'nowrap',
120
+ verticalAlign: 'middle',
121
+ '&:not(:first-child):not(:last-child)': {
122
+ borderRadius: 0
123
+ }
124
+ },
125
+ '&-wrap > *': {
126
+ display: 'block !important'
127
+ },
128
+ '&-addon': _defineProperty(_defineProperty({
129
+ position: 'relative',
130
+ padding: "0 ".concat(unit(token.paddingInline)),
131
+ color: token.colorText,
132
+ fontWeight: 'normal',
133
+ fontSize: token.inputFontSize,
134
+ textAlign: 'center',
135
+ borderRadius: token.borderRadius,
136
+ transition: "all ".concat(token.motionDurationSlow),
137
+ lineHeight: 1
138
+ }, "".concat(antCls, "-select"), _defineProperty({
139
+ margin: "".concat(unit(token.calc(token.paddingBlock).add(1).mul(-1).equal()), " ").concat(unit(token.calc(token.paddingInline).mul(-1).equal()))
140
+ }, "&".concat(antCls, "-select-single:not(").concat(antCls, "-select-customize-input):not(").concat(antCls, "-pagination-size-changer)"), _defineProperty({}, "".concat(antCls, "-select-selector"), {
141
+ backgroundColor: 'inherit',
142
+ border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " transparent"),
143
+ boxShadow: 'none'
144
+ }))), "".concat(antCls, "-cascader-picker"), _defineProperty({
145
+ margin: "-9px ".concat(unit(token.calc(token.paddingInline).mul(-1).equal())),
146
+ backgroundColor: 'transparent'
147
+ }, "".concat(antCls, "-cascader-input"), {
148
+ textAlign: 'start',
149
+ border: 0,
150
+ boxShadow: 'none'
151
+ }))
152
+ }), componentCls, {
149
153
  width: '100%',
150
154
  marginBottom: 0,
151
155
  textAlign: 'inherit',
@@ -172,13 +176,13 @@ export var genInputGroupStyle = function genInputGroupStyle(token) {
172
176
  }), "&:not(:last-child) ".concat(componentCls), {
173
177
  borderStartEndRadius: 0,
174
178
  borderEndEndRadius: 0
175
- })), _defineProperty(_defineProperty(_defineProperty(_ref, "> ".concat(componentCls, ":last-child, ").concat(componentCls, "-group-addon:last-child"), _defineProperty({
179
+ })), "> ".concat(componentCls, ":last-child, ").concat(componentCls, "-group-addon:last-child"), _defineProperty({
176
180
  borderStartStartRadius: 0,
177
181
  borderEndStartRadius: 0
178
182
  }, "".concat(antCls, "-select ").concat(antCls, "-select-selector"), {
179
183
  borderStartStartRadius: 0,
180
184
  borderEndStartRadius: 0
181
- })), "".concat(componentCls, "-affix-wrapper"), _defineProperty({
185
+ })), _defineProperty(_defineProperty(_ref, "".concat(componentCls, "-affix-wrapper"), _defineProperty({
182
186
  '&:not(:last-child)': _defineProperty({
183
187
  borderStartEndRadius: 0,
184
188
  borderEndEndRadius: 0
@@ -199,7 +203,7 @@ export var genInputGroupStyle = function genInputGroupStyle(token) {
199
203
  }
200
204
  }
201
205
  }), '& > *', {
202
- display: 'inline-block',
206
+ display: 'inline-flex',
203
207
  "float": 'none',
204
208
  verticalAlign: 'top',
205
209
  // https://github.com/ant-design/ant-design-pro/issues/139
@@ -209,7 +213,7 @@ export var genInputGroupStyle = function genInputGroupStyle(token) {
209
213
  }), '& > *:not(:last-child)', {
210
214
  marginInlineEnd: token.calc(token.lineWidth).mul(-1).equal(),
211
215
  borderInlineEndWidth: token.lineWidth
212
- }), "".concat(componentCls), {
216
+ }), componentCls, {
213
217
  "float": 'none'
214
218
  }), "& > ".concat(antCls, "-select > ").concat(antCls, "-select-selector,\n & > ").concat(antCls, "-select-auto-complete ").concat(componentCls, ",\n & > ").concat(antCls, "-cascader-picker ").concat(componentCls, ",\n & > ").concat(componentCls, "-group-wrapper ").concat(componentCls), {
215
219
  borderInlineEndWidth: token.lineWidth,
@@ -269,6 +273,7 @@ var genAllowClearStyle = function genAllowClearStyle(token) {
269
273
  var componentCls = token.componentCls;
270
274
  return _defineProperty({}, "".concat(componentCls, "-clear-icon"), {
271
275
  margin: 0,
276
+ lineHeight: 0,
272
277
  color: token.colorTextQuaternary,
273
278
  fontSize: token.fontSizeIcon,
274
279
  verticalAlign: -1,
@@ -299,7 +304,8 @@ var genAffixStyle = function genAffixStyle(token) {
299
304
  colorIconHover = token.colorIconHover,
300
305
  iconCls = token.iconCls;
301
306
  var affixCls = "".concat(componentCls, "-affix-wrapper");
302
- return _defineProperty({}, affixCls, _objectSpread(_objectSpread(_objectSpread({}, genBasicInputStyle(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
307
+ var affixClsDisabled = "".concat(componentCls, "-affix-wrapper-disabled");
308
+ return _defineProperty(_defineProperty({}, affixCls, _objectSpread(_objectSpread(_objectSpread({}, genBasicInputStyle(token)), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
303
309
  display: 'inline-flex'
304
310
  }, "&:not(".concat(componentCls, "-disabled):hover"), _defineProperty({
305
311
  zIndex: 1
@@ -327,7 +333,7 @@ var genAffixStyle = function genAffixStyle(token) {
327
333
  width: 0,
328
334
  visibility: 'hidden',
329
335
  content: '"\\a0"'
330
- }), "".concat(componentCls), {
336
+ }), componentCls, {
331
337
  '&-prefix, &-suffix': {
332
338
  display: 'flex',
333
339
  flex: 'none',
@@ -355,7 +361,13 @@ var genAffixStyle = function genAffixStyle(token) {
355
361
  '&:hover': {
356
362
  color: colorIconHover
357
363
  }
358
- })));
364
+ }))), affixClsDisabled, _defineProperty({}, "".concat(iconCls).concat(componentCls, "-password-icon"), {
365
+ color: colorIcon,
366
+ cursor: 'not-allowed',
367
+ '&:hover': {
368
+ color: colorIcon
369
+ }
370
+ }));
359
371
  };
360
372
  var genGroupStyle = function genGroupStyle(token) {
361
373
  var componentCls = token.componentCls,
@@ -400,18 +412,15 @@ var genSearchInputStyle = function genSearchInputStyle(token) {
400
412
  var componentCls = token.componentCls,
401
413
  antCls = token.antCls;
402
414
  var searchPrefixCls = "".concat(componentCls, "-search");
403
- return _defineProperty({}, searchPrefixCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls), {
404
- '&:hover, &:focus': _defineProperty({
405
- borderColor: token.colorPrimaryHover
406
- }, "+ ".concat(componentCls, "-group-addon ").concat(searchPrefixCls, "-button:not(").concat(antCls, "-btn-primary)"), {
415
+ return _defineProperty({}, searchPrefixCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentCls, {
416
+ '&:hover, &:focus': _defineProperty({}, "+ ".concat(componentCls, "-group-addon ").concat(searchPrefixCls, "-button:not(").concat(antCls, "-btn-primary)"), {
407
417
  borderInlineStartColor: token.colorPrimaryHover
408
418
  })
409
419
  }), "".concat(componentCls, "-affix-wrapper"), {
420
+ height: token.controlHeight,
410
421
  borderRadius: 0
411
422
  }), "".concat(componentCls, "-lg"), {
412
- lineHeight: token.calc(token.lineHeightLG).sub(0.0002).equal({
413
- unit: false
414
- })
423
+ lineHeight: token.calc(token.lineHeightLG).sub(0.0002).equal()
415
424
  }), "> ".concat(componentCls, "-group"), _defineProperty({}, "> ".concat(componentCls, "-group-addon:last-child"), _defineProperty(_defineProperty({
416
425
  insetInlineStart: -1,
417
426
  padding: 0,
@@ -422,8 +431,6 @@ var genSearchInputStyle = function genSearchInputStyle(token) {
422
431
  paddingTop: 0,
423
432
  paddingBottom: 0,
424
433
  borderStartStartRadius: 0,
425
- borderStartEndRadius: token.borderRadius,
426
- borderEndEndRadius: token.borderRadius,
427
434
  borderEndStartRadius: 0,
428
435
  boxShadow: 'none'
429
436
  }), "".concat(searchPrefixCls, "-button:not(").concat(antCls, "-btn-primary)"), _defineProperty({
@@ -444,11 +451,11 @@ var genSearchInputStyle = function genSearchInputStyle(token) {
444
451
  '&:hover, &:focus': {
445
452
  zIndex: 1
446
453
  }
447
- }), "&-large ".concat(searchPrefixCls, "-button"), {
454
+ }), '&-large', _defineProperty({}, "".concat(componentCls, "-affix-wrapper, ").concat(searchPrefixCls, "-button"), {
448
455
  height: token.controlHeightLG
449
- }), "&-small ".concat(searchPrefixCls, "-button"), {
456
+ })), '&-small', _defineProperty({}, "".concat(componentCls, "-affix-wrapper, ").concat(searchPrefixCls, "-button"), {
450
457
  height: token.controlHeightSM
451
- }), '&-rtl', {
458
+ })), '&-rtl', {
452
459
  direction: 'rtl'
453
460
  }), "&".concat(componentCls, "-compact-item"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&:not(".concat(componentCls, "-compact-last-item)"), _defineProperty({}, "".concat(componentCls, "-group-addon"), _defineProperty({}, "".concat(componentCls, "-search-button"), {
454
461
  marginInlineEnd: token.calc(token.lineWidth).mul(-1).equal(),
@@ -467,7 +474,7 @@ var genTextAreaStyle = function genTextAreaStyle(token) {
467
474
  var componentCls = token.componentCls,
468
475
  paddingLG = token.paddingLG;
469
476
  var textareaPrefixCls = "".concat(componentCls, "-textarea");
470
- return _defineProperty({}, textareaPrefixCls, _defineProperty(_defineProperty({
477
+ return _defineProperty({}, textareaPrefixCls, _defineProperty(_defineProperty(_defineProperty({
471
478
  position: 'relative',
472
479
  '&-show-count': _defineProperty(_defineProperty({}, "> ".concat(componentCls), {
473
480
  height: '100%'
@@ -498,7 +505,7 @@ var genTextAreaStyle = function genTextAreaStyle(token) {
498
505
  }
499
506
  }, "".concat(componentCls, "-clear-icon"), {
500
507
  position: 'absolute',
501
- insetInlineEnd: token.paddingXS,
508
+ insetInlineEnd: token.paddingInline,
502
509
  insetBlockStart: token.paddingXS
503
510
  }), "".concat(textareaPrefixCls, "-suffix"), {
504
511
  position: 'absolute',
@@ -510,6 +517,8 @@ var genTextAreaStyle = function genTextAreaStyle(token) {
510
517
  alignItems: 'center',
511
518
  margin: 'auto',
512
519
  pointerEvents: 'none'
520
+ }))), "&-affix-wrapper".concat(componentCls, "-affix-wrapper-sm"), _defineProperty({}, "".concat(componentCls, "-suffix"), _defineProperty({}, "".concat(componentCls, "-clear-icon"), {
521
+ insetInlineEnd: token.paddingInlineSM
513
522
  }))));
514
523
  };
515
524
  // ============================== Range ===============================
@@ -8,7 +8,7 @@ import { initComponentToken, initInputToken } from './token';
8
8
  var genOTPStyle = function genOTPStyle(token) {
9
9
  var componentCls = token.componentCls,
10
10
  paddingXS = token.paddingXS;
11
- return _defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty({
11
+ return _defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty({
12
12
  display: 'inline-flex',
13
13
  alignItems: 'center',
14
14
  flexWrap: 'nowrap',
@@ -13,19 +13,21 @@ export var genHoverStyle = function genHoverStyle(token) {
13
13
  };
14
14
  };
15
15
  export var genDisabledStyle = function genDisabledStyle(token) {
16
- return _defineProperty(_defineProperty({
16
+ return {
17
17
  color: token.colorTextDisabled,
18
18
  backgroundColor: token.colorBgContainerDisabled,
19
19
  borderColor: token.colorBorder,
20
20
  boxShadow: 'none',
21
21
  cursor: 'not-allowed',
22
- opacity: 1
23
- }, "input[disabled], textarea[disabled]", {
24
- cursor: 'not-allowed'
25
- }), '&:hover:not([disabled])', _objectSpread({}, genHoverStyle(mergeToken(token, {
26
- hoverBorderColor: token.colorBorder,
27
- hoverBg: token.colorBgContainerDisabled
28
- }))));
22
+ opacity: 1,
23
+ 'input[disabled], textarea[disabled]': {
24
+ cursor: 'not-allowed'
25
+ },
26
+ '&:hover:not([disabled])': _objectSpread({}, genHoverStyle(mergeToken(token, {
27
+ hoverBorderColor: token.colorBorder,
28
+ hoverBg: token.colorBgContainerDisabled
29
+ })))
30
+ };
29
31
  };
30
32
  /* ============== Outlined ============== */
31
33
  export var genBaseOutlinedStyle = function genBaseOutlinedStyle(token, options) {
@@ -109,34 +111,47 @@ export var genOutlinedGroupStyle = function genOutlinedGroupStyle(token) {
109
111
  };
110
112
  /* ============ Borderless ============ */
111
113
  export var genBorderlessStyle = function genBorderlessStyle(token, extraStyles) {
114
+ var componentCls = token.componentCls;
112
115
  return {
113
- '&-borderless': _objectSpread(_defineProperty({
116
+ '&-borderless': _objectSpread(_defineProperty(_defineProperty(_defineProperty({
114
117
  background: 'transparent',
115
118
  border: 'none',
116
119
  '&:focus, &:focus-within': {
117
120
  outline: 'none'
118
121
  }
119
- }, "&".concat(token.componentCls, "-disabled, &[disabled]"), {
120
- color: token.colorTextDisabled
122
+ }, "&".concat(componentCls, "-disabled, &[disabled]"), {
123
+ color: token.colorTextDisabled,
124
+ cursor: 'not-allowed'
125
+ }), "&".concat(componentCls, "-status-error"), {
126
+ '&, & input, & textarea': {
127
+ color: token.colorError
128
+ }
129
+ }), "&".concat(componentCls, "-status-warning"), {
130
+ '&, & input, & textarea': {
131
+ color: token.colorWarning
132
+ }
121
133
  }), extraStyles)
122
134
  };
123
135
  };
124
136
  /* ============== Filled ============== */
125
137
  var genBaseFilledStyle = function genBaseFilledStyle(token, options) {
126
- return _defineProperty(_defineProperty(_defineProperty({
138
+ return {
127
139
  background: options.bg,
128
140
  borderWidth: token.lineWidth,
129
141
  borderStyle: token.lineType,
130
- borderColor: 'transparent'
131
- }, "input&, & input, textarea&, & textarea", {
132
- color: options === null || options === void 0 ? void 0 : options.inputColor
133
- }), '&:hover', {
134
- background: options.hoverBg
135
- }), '&:focus, &:focus-within', {
136
- outline: 0,
137
- borderColor: options.activeBorderColor,
138
- backgroundColor: token.activeBg
139
- });
142
+ borderColor: 'transparent',
143
+ 'input&, & input, textarea&, & textarea': {
144
+ color: options === null || options === void 0 ? void 0 : options.inputColor
145
+ },
146
+ '&:hover': {
147
+ background: options.hoverBg
148
+ },
149
+ '&:focus, &:focus-within': {
150
+ outline: 0,
151
+ borderColor: options.activeBorderColor,
152
+ backgroundColor: token.activeBg
153
+ }
154
+ };
140
155
  };
141
156
  var genFilledStatusStyle = function genFilledStatusStyle(token, options) {
142
157
  return _defineProperty({}, "&".concat(token.componentCls, "-status-").concat(options.status, ":not(").concat(token.componentCls, "-disabled)"), _objectSpread(_objectSpread({}, genBaseFilledStyle(token, options)), {}, _defineProperty({}, "".concat(token.componentCls, "-prefix, ").concat(token.componentCls, "-suffix"), {
@@ -148,7 +163,7 @@ export var genFilledStyle = function genFilledStyle(token, extraStyles) {
148
163
  '&-filled': _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, genBaseFilledStyle(token, {
149
164
  bg: token.colorFillTertiary,
150
165
  hoverBg: token.colorFillSecondary,
151
- activeBorderColor: token.colorPrimary
166
+ activeBorderColor: token.activeBorderColor
152
167
  })), {}, _defineProperty({}, "&".concat(token.componentCls, "-disabled, &[disabled]"), _objectSpread({}, genDisabledStyle(token))), genFilledStatusStyle(token, {
153
168
  status: 'error',
154
169
  bg: token.colorErrorBg,
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line import/prefer-default-export
2
1
  export function hasPrefixSuffix(props) {
3
2
  return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
4
3
  }