@chaoswise/ui 3.1.6 → 3.1.8

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 (357) hide show
  1. package/lib/Antd5/_util/PurePanel.js +9 -1
  2. package/lib/Antd5/_util/convertToTooltipProps.js +15 -0
  3. package/lib/Antd5/_util/extendsObject.js +14 -23
  4. package/lib/Antd5/_util/hooks/useClosable.js +25 -31
  5. package/lib/Antd5/_util/hooks/useMergeSemantic/index.js +89 -0
  6. package/lib/Antd5/_util/hooks/useMergeSemantic/interface.js +1 -0
  7. package/lib/Antd5/_util/isPrimitive.js +5 -0
  8. package/lib/Antd5/_util/mediaQueryUtil.js +16 -0
  9. package/lib/Antd5/_util/responsiveObserver.js +41 -33
  10. package/lib/Antd5/_util/toList.js +6 -3
  11. package/lib/Antd5/_util/warning.js +0 -1
  12. package/lib/Antd5/_util/wave/WaveEffect.js +29 -16
  13. package/lib/Antd5/_util/wave/index.js +2 -2
  14. package/lib/Antd5/_util/wave/useWave.js +1 -1
  15. package/lib/Antd5/affix/index.js +13 -11
  16. package/lib/Antd5/alert/Alert.js +19 -18
  17. package/lib/Antd5/anchor/Anchor.js +9 -7
  18. package/lib/Antd5/anchor/AnchorLink.js +16 -3
  19. package/lib/Antd5/app/App.js +90 -0
  20. package/lib/Antd5/app/index.js +3 -92
  21. package/lib/Antd5/app/useApp.js +6 -0
  22. package/lib/Antd5/auto-complete/AutoComplete.js +142 -0
  23. package/lib/Antd5/auto-complete/index.js +8 -106
  24. package/lib/Antd5/avatar/{avatar.js → Avatar.js} +25 -29
  25. package/lib/Antd5/avatar/{group.js → AvatarGroup.js} +14 -9
  26. package/lib/Antd5/avatar/index.js +3 -4
  27. package/lib/Antd5/breadcrumb/Breadcrumb.js +1 -0
  28. package/lib/Antd5/breadcrumb/style/index.js +1 -1
  29. package/lib/Antd5/button/{LoadingIcon.js → DefaultLoadingIcon.js} +12 -9
  30. package/lib/Antd5/button/button-group.js +11 -11
  31. package/lib/Antd5/button/button.js +60 -26
  32. package/lib/Antd5/button/buttonHelpers.js +8 -1
  33. package/lib/Antd5/button/style/compact.js +9 -10
  34. package/lib/Antd5/button/style/index.js +127 -41
  35. package/lib/Antd5/button/style/token.js +19 -8
  36. package/lib/Antd5/calendar/Header.js +4 -4
  37. package/lib/Antd5/calendar/generateCalendar.js +17 -12
  38. package/lib/Antd5/calendar/style/index.js +8 -2
  39. package/lib/Antd5/card/Card.js +9 -5
  40. package/lib/Antd5/card/style/index.js +22 -15
  41. package/lib/Antd5/carousel/index.js +21 -11
  42. package/lib/Antd5/carousel/style/index.js +39 -12
  43. package/lib/Antd5/cascader/index.js +54 -18
  44. package/lib/Antd5/cascader/style/columns.js +4 -2
  45. package/lib/Antd5/cascader/style/index.js +2 -1
  46. package/lib/Antd5/collapse/Collapse.js +32 -25
  47. package/lib/Antd5/collapse/style/index.js +14 -10
  48. package/lib/Antd5/color-picker/ColorPicker.js +13 -8
  49. package/lib/Antd5/color-picker/components/ColorAlphaInput.js +8 -13
  50. package/lib/Antd5/color-picker/components/ColorHexInput.js +1 -1
  51. package/lib/Antd5/color-picker/components/ColorHsbInput.js +8 -13
  52. package/lib/Antd5/color-picker/components/ColorInput.js +7 -7
  53. package/lib/Antd5/color-picker/components/ColorPresets.js +15 -12
  54. package/lib/Antd5/color-picker/components/ColorRgbInput.js +8 -13
  55. package/lib/Antd5/color-picker/components/ColorSteppers.js +6 -13
  56. package/lib/Antd5/color-picker/interface.js +3 -6
  57. package/lib/Antd5/color-picker/style/color-block.js +2 -1
  58. package/lib/Antd5/config-provider/MotionWrapper.js +12 -4
  59. package/lib/Antd5/config-provider/UnstableContext.js +29 -0
  60. package/lib/Antd5/config-provider/context.js +32 -2
  61. package/lib/Antd5/config-provider/cssVariables.js +7 -7
  62. package/lib/Antd5/config-provider/hooks/useSize.js +1 -1
  63. package/lib/Antd5/config-provider/index.js +12 -3
  64. package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +33 -12
  65. package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +32 -13
  66. package/lib/Antd5/date-picker/hooks/useMergedPickerSemantic.js +47 -0
  67. package/lib/Antd5/date-picker/index.js +2 -2
  68. package/lib/Antd5/date-picker/locale/ar_EG.js +1 -8
  69. package/lib/Antd5/date-picker/locale/example.json +5 -8
  70. package/lib/Antd5/date-picker/locale/ko_KR.js +11 -1
  71. package/lib/Antd5/date-picker/locale/pl_PL.js +0 -3
  72. package/lib/Antd5/date-picker/locale/pt_PT.js +0 -3
  73. package/lib/Antd5/date-picker/locale/sl_SI.js +1 -3
  74. package/lib/Antd5/date-picker/style/index.js +9 -6
  75. package/lib/Antd5/date-picker/style/panel.js +12 -8
  76. package/lib/Antd5/date-picker/style/token.js +3 -3
  77. package/lib/Antd5/date-picker/style/variants.js +6 -2
  78. package/lib/Antd5/descriptions/Cell.js +14 -8
  79. package/lib/Antd5/descriptions/Item.js +2 -0
  80. package/lib/Antd5/descriptions/Row.js +10 -6
  81. package/lib/Antd5/descriptions/hooks/useRow.js +1 -1
  82. package/lib/Antd5/descriptions/index.js +45 -18
  83. package/lib/Antd5/descriptions/style/index.js +11 -2
  84. package/lib/Antd5/divider/index.js +32 -15
  85. package/lib/Antd5/divider/style/index.js +20 -7
  86. package/lib/Antd5/drawer/DrawerPanel.js +8 -10
  87. package/lib/Antd5/drawer/index.js +20 -17
  88. package/lib/Antd5/dropdown/dropdown-button.js +9 -3
  89. package/lib/Antd5/dropdown/dropdown.js +33 -35
  90. package/lib/Antd5/dropdown/style/index.js +1 -1
  91. package/lib/Antd5/empty/empty.js +2 -2
  92. package/lib/Antd5/empty/index.js +41 -23
  93. package/lib/Antd5/empty/simple.js +4 -4
  94. package/lib/Antd5/flex/style/index.js +2 -0
  95. package/lib/Antd5/float-button/FloatButton.js +12 -15
  96. package/lib/Antd5/float-button/FloatButtonContent.js +13 -7
  97. package/lib/Antd5/float-button/FloatButtonGroup.js +6 -6
  98. package/lib/Antd5/float-button/style/keyframes.js +4 -4
  99. package/lib/Antd5/form/ErrorList.js +1 -3
  100. package/lib/Antd5/form/Form.js +19 -19
  101. package/lib/Antd5/form/FormItem/index.js +1 -1
  102. package/lib/Antd5/form/FormItemLabel.js +12 -14
  103. package/lib/Antd5/form/context.js +3 -4
  104. package/lib/Antd5/form/hooks/useForm.js +16 -5
  105. package/lib/Antd5/form/hooks/useFormInstance.js +3 -3
  106. package/lib/Antd5/form/hooks/useFormItemStatus.js +7 -7
  107. package/lib/Antd5/form/hooks/useFormWarning.js +2 -2
  108. package/lib/Antd5/form/hooks/useFrameState.js +3 -4
  109. package/lib/Antd5/form/hooks/useItemRef.js +3 -2
  110. package/lib/Antd5/form/hooks/useVariants.js +5 -5
  111. package/lib/Antd5/form/style/index.js +22 -15
  112. package/lib/Antd5/grid/hooks/useBreakpoint.js +2 -1
  113. package/lib/Antd5/grid/hooks/useGutter.js +29 -0
  114. package/lib/Antd5/grid/row.js +8 -63
  115. package/lib/Antd5/grid/style/index.js +14 -8
  116. package/lib/Antd5/image/PreviewGroup.js +9 -2
  117. package/lib/Antd5/image/index.js +26 -17
  118. package/lib/Antd5/image/style/index.js +10 -10
  119. package/lib/Antd5/index.js +3 -1
  120. package/lib/Antd5/input/Group.js +5 -3
  121. package/lib/Antd5/input/Input.js +27 -20
  122. package/lib/Antd5/input/OTP/OTPInput.js +36 -19
  123. package/lib/Antd5/input/OTP/index.js +40 -19
  124. package/lib/Antd5/input/Password.js +7 -9
  125. package/lib/Antd5/input/Search.js +16 -9
  126. package/lib/Antd5/input/TextArea.js +90 -33
  127. package/lib/Antd5/input/style/index.js +31 -82
  128. package/lib/Antd5/input/style/otp.js +22 -6
  129. package/lib/Antd5/input/style/textarea.js +80 -0
  130. package/lib/Antd5/input/style/token.js +16 -7
  131. package/lib/Antd5/input/style/variants.js +67 -12
  132. package/lib/Antd5/input-number/index.js +1 -1
  133. package/lib/Antd5/input-number/style/index.js +10 -7
  134. package/lib/Antd5/input-number/style/token.js +6 -4
  135. package/lib/Antd5/layout/Sider.js +58 -68
  136. package/lib/Antd5/layout/layout.js +7 -5
  137. package/lib/Antd5/layout/style/sider.js +33 -42
  138. package/lib/Antd5/list/index.js +45 -45
  139. package/lib/Antd5/locale/ar_EG.js +7 -1
  140. package/lib/Antd5/locale/az_AZ.js +3 -2
  141. package/lib/Antd5/locale/bg_BG.js +8 -0
  142. package/lib/Antd5/locale/bn_BD.js +7 -1
  143. package/lib/Antd5/locale/by_BY.js +8 -2
  144. package/lib/Antd5/locale/ca_ES.js +7 -1
  145. package/lib/Antd5/locale/cs_CZ.js +19 -2
  146. package/lib/Antd5/locale/da_DK.js +8 -0
  147. package/lib/Antd5/locale/de_DE.js +4 -2
  148. package/lib/Antd5/locale/el_GR.js +3 -2
  149. package/lib/Antd5/locale/en_GB.js +8 -2
  150. package/lib/Antd5/locale/en_US.js +3 -2
  151. package/lib/Antd5/locale/es_ES.js +3 -2
  152. package/lib/Antd5/locale/et_EE.js +8 -2
  153. package/lib/Antd5/locale/eu_ES.js +3 -2
  154. package/lib/Antd5/locale/fa_IR.js +17 -7
  155. package/lib/Antd5/locale/fi_FI.js +8 -0
  156. package/lib/Antd5/locale/fr_BE.js +4 -1
  157. package/lib/Antd5/locale/fr_CA.js +9 -1
  158. package/lib/Antd5/locale/fr_FR.js +4 -1
  159. package/lib/Antd5/locale/ga_IE.js +7 -1
  160. package/lib/Antd5/locale/gl_ES.js +7 -1
  161. package/lib/Antd5/locale/he_IL.js +10 -1
  162. package/lib/Antd5/locale/hi_IN.js +7 -1
  163. package/lib/Antd5/locale/hr_HR.js +7 -1
  164. package/lib/Antd5/locale/hu_HU.js +8 -0
  165. package/lib/Antd5/locale/hy_AM.js +8 -3
  166. package/lib/Antd5/locale/id_ID.js +3 -2
  167. package/lib/Antd5/locale/is_IS.js +8 -0
  168. package/lib/Antd5/locale/it_IT.js +3 -2
  169. package/lib/Antd5/locale/ja_JP.js +3 -2
  170. package/lib/Antd5/locale/ka_GE.js +7 -1
  171. package/lib/Antd5/locale/kk_KZ.js +7 -1
  172. package/lib/Antd5/locale/km_KH.js +3 -0
  173. package/lib/Antd5/locale/kmr_IQ.js +8 -0
  174. package/lib/Antd5/locale/kn_IN.js +8 -2
  175. package/lib/Antd5/locale/ko_KR.js +3 -2
  176. package/lib/Antd5/locale/ku_IQ.js +8 -0
  177. package/lib/Antd5/locale/lt_LT.js +3 -2
  178. package/lib/Antd5/locale/lv_LV.js +8 -0
  179. package/lib/Antd5/locale/mk_MK.js +7 -1
  180. package/lib/Antd5/locale/ml_IN.js +7 -1
  181. package/lib/Antd5/locale/mn_MN.js +8 -2
  182. package/lib/Antd5/locale/ms_MY.js +3 -2
  183. package/lib/Antd5/locale/my_MM.js +3 -2
  184. package/lib/Antd5/locale/nb_NO.js +7 -1
  185. package/lib/Antd5/locale/ne_NP.js +3 -2
  186. package/lib/Antd5/locale/nl_BE.js +2 -1
  187. package/lib/Antd5/locale/nl_NL.js +2 -1
  188. package/lib/Antd5/locale/pl_PL.js +3 -2
  189. package/lib/Antd5/locale/pt_BR.js +3 -2
  190. package/lib/Antd5/locale/pt_PT.js +3 -2
  191. package/lib/Antd5/locale/ro_RO.js +7 -1
  192. package/lib/Antd5/locale/ru_RU.js +4 -3
  193. package/lib/Antd5/locale/si_LK.js +8 -2
  194. package/lib/Antd5/locale/sk_SK.js +8 -2
  195. package/lib/Antd5/locale/sl_SI.js +8 -0
  196. package/lib/Antd5/locale/sr_RS.js +7 -1
  197. package/lib/Antd5/locale/sv_SE.js +3 -2
  198. package/lib/Antd5/locale/ta_IN.js +8 -2
  199. package/lib/Antd5/locale/th_TH.js +3 -2
  200. package/lib/Antd5/locale/tk_TK.js +7 -1
  201. package/lib/Antd5/locale/tr_TR.js +8 -2
  202. package/lib/Antd5/locale/uk_UA.js +3 -2
  203. package/lib/Antd5/locale/ur_PK.js +7 -1
  204. package/lib/Antd5/locale/uz_UZ.js +5 -4
  205. package/lib/Antd5/locale/vi_VN.js +3 -2
  206. package/lib/Antd5/locale/zh_CN.js +3 -2
  207. package/lib/Antd5/locale/zh_HK.js +11 -3
  208. package/lib/Antd5/locale/zh_TW.js +11 -3
  209. package/lib/Antd5/mentions/index.js +1 -1
  210. package/lib/Antd5/mentions/style/index.js +12 -7
  211. package/lib/Antd5/menu/MenuItem.js +3 -1
  212. package/lib/Antd5/menu/OverrideContext.js +2 -2
  213. package/lib/Antd5/menu/menu.js +1 -7
  214. package/lib/Antd5/menu/style/index.js +9 -6
  215. package/lib/Antd5/menu/style/theme.js +4 -3
  216. package/lib/Antd5/menu/style/vertical.js +1 -1
  217. package/lib/Antd5/message/style/index.js +4 -3
  218. package/lib/Antd5/modal/ConfirmDialog.js +2 -19
  219. package/lib/Antd5/modal/Modal.js +67 -35
  220. package/lib/Antd5/modal/confirm.js +5 -3
  221. package/lib/Antd5/modal/style/confirm.js +3 -1
  222. package/lib/Antd5/modal/style/index.js +21 -1
  223. package/lib/Antd5/modal/useModal/HookModal.js +2 -1
  224. package/lib/Antd5/notification/PurePanel.js +13 -6
  225. package/lib/Antd5/notification/index.js +3 -4
  226. package/lib/Antd5/notification/style/index.js +4 -3
  227. package/lib/Antd5/notification/style/stack.js +2 -1
  228. package/lib/Antd5/notification/useNotification.js +9 -4
  229. package/lib/Antd5/notification/util.js +9 -0
  230. package/lib/Antd5/pagination/Pagination.js +87 -20
  231. package/lib/Antd5/pagination/style/index.js +2 -10
  232. package/lib/Antd5/pagination/useShowSizeChanger.js +13 -0
  233. package/lib/Antd5/popconfirm/index.js +21 -6
  234. package/lib/Antd5/popover/index.js +21 -8
  235. package/lib/Antd5/progress/Steps.js +6 -2
  236. package/lib/Antd5/progress/progress.js +2 -2
  237. package/lib/Antd5/progress/utils.js +3 -3
  238. package/lib/Antd5/qr-code/style/index.js +2 -2
  239. package/lib/Antd5/segmented/index.js +16 -8
  240. package/lib/Antd5/segmented/style/index.js +14 -6
  241. package/lib/Antd5/select/index.js +45 -16
  242. package/lib/Antd5/select/style/dropdown.js +10 -9
  243. package/lib/Antd5/select/style/index.js +14 -10
  244. package/lib/Antd5/select/style/single.js +6 -3
  245. package/lib/Antd5/select/style/variants.js +55 -1
  246. package/lib/Antd5/skeleton/Paragraph.js +5 -8
  247. package/lib/Antd5/skeleton/Skeleton.js +8 -7
  248. package/lib/Antd5/slider/SliderTooltip.js +3 -2
  249. package/lib/Antd5/slider/index.js +43 -17
  250. package/lib/Antd5/slider/style/index.js +3 -3
  251. package/lib/Antd5/slider/useRafLock.js +1 -1
  252. package/lib/Antd5/space/Compact.js +8 -6
  253. package/lib/Antd5/space/index.js +16 -12
  254. package/lib/Antd5/spin/index.js +11 -9
  255. package/lib/Antd5/spin/style/index.js +1 -3
  256. package/lib/Antd5/spin/usePercent.js +1 -1
  257. package/lib/Antd5/splitter/SplitBar.js +56 -7
  258. package/lib/Antd5/splitter/Splitter.js +27 -17
  259. package/lib/Antd5/splitter/hooks/useResizable.js +3 -3
  260. package/lib/Antd5/splitter/hooks/useResize.js +17 -6
  261. package/lib/Antd5/splitter/style/index.js +32 -6
  262. package/lib/Antd5/statistic/Countdown.js +8 -61
  263. package/lib/Antd5/statistic/Statistic.js +17 -9
  264. package/lib/Antd5/statistic/Timer.js +91 -0
  265. package/lib/Antd5/statistic/index.js +2 -0
  266. package/lib/Antd5/statistic/utils.js +2 -2
  267. package/lib/Antd5/steps/index.js +8 -7
  268. package/lib/Antd5/steps/style/index.js +1 -1
  269. package/lib/Antd5/style/index.js +9 -4
  270. package/lib/Antd5/switch/style/index.js +2 -2
  271. package/lib/Antd5/table/InternalTable.js +6 -5
  272. package/lib/Antd5/table/hooks/useFilter/FilterDropdown.js +15 -11
  273. package/lib/Antd5/table/hooks/useFilter/FilterSearch.js +1 -1
  274. package/lib/Antd5/table/hooks/useFilter/index.js +3 -2
  275. package/lib/Antd5/table/hooks/useSelection.js +11 -3
  276. package/lib/Antd5/table/hooks/useSorter.js +4 -3
  277. package/lib/Antd5/table/style/filter.js +2 -2
  278. package/lib/Antd5/table/style/index.js +9 -9
  279. package/lib/Antd5/table/style/sorter.js +2 -1
  280. package/lib/Antd5/table/style/sticky.js +1 -1
  281. package/lib/Antd5/tabs/hooks/useLegacyItems.js +11 -4
  282. package/lib/Antd5/tabs/index.js +9 -2
  283. package/lib/Antd5/tabs/style/index.js +44 -23
  284. package/lib/Antd5/tag/style/index.js +3 -3
  285. package/lib/Antd5/theme/context.js +1 -3
  286. package/lib/Antd5/theme/getDesignToken.js +2 -2
  287. package/lib/Antd5/theme/themes/dark/colorAlgorithm.js +3 -3
  288. package/lib/Antd5/theme/themes/dark/index.js +13 -3
  289. package/lib/Antd5/theme/themes/default/colorAlgorithm.js +3 -3
  290. package/lib/Antd5/theme/themes/default/index.js +5 -1
  291. package/lib/Antd5/theme/themes/default/theme.js +4 -0
  292. package/lib/Antd5/theme/themes/shared/genColorMapToken.js +3 -3
  293. package/lib/Antd5/theme/themes/shared/genFontSizes.js +3 -1
  294. package/lib/Antd5/theme/util/alias.js +2 -2
  295. package/lib/Antd5/theme/util/genStyleUtils.js +9 -11
  296. package/lib/Antd5/theme/util/getAlphaColor.js +12 -12
  297. package/lib/Antd5/theme/util/useResetIconStyle.js +2 -10
  298. package/lib/Antd5/time-picker/index.js +1 -1
  299. package/lib/Antd5/timeline/TimelineItemList.js +1 -1
  300. package/lib/Antd5/tooltip/index.js +46 -31
  301. package/lib/Antd5/tooltip/style/index.js +13 -4
  302. package/lib/Antd5/tour/index.js +4 -2
  303. package/lib/Antd5/tour/panelRender.js +42 -27
  304. package/lib/Antd5/tour/style/index.js +3 -3
  305. package/lib/Antd5/transfer/ListItem.js +1 -1
  306. package/lib/Antd5/transfer/hooks/useData.js +8 -4
  307. package/lib/Antd5/transfer/hooks/useSelection.js +5 -4
  308. package/lib/Antd5/transfer/index.js +6 -2
  309. package/lib/Antd5/transfer/list.js +32 -13
  310. package/lib/Antd5/transfer/search.js +1 -1
  311. package/lib/Antd5/transfer/style/index.js +3 -1
  312. package/lib/Antd5/tree/DirectoryTree.js +2 -2
  313. package/lib/Antd5/tree/style/index.js +9 -3
  314. package/lib/Antd5/tree-select/index.js +61 -18
  315. package/lib/Antd5/tree-select/style/index.js +1 -1
  316. package/lib/Antd5/typography/Base/Ellipsis.js +3 -3
  317. package/lib/Antd5/typography/Base/index.js +20 -13
  318. package/lib/Antd5/typography/Editable.js +1 -1
  319. package/lib/Antd5/typography/Typography.js +8 -7
  320. package/lib/Antd5/typography/hooks/useCopyClick.js +24 -25
  321. package/lib/Antd5/typography/hooks/usePrevious.js +1 -1
  322. package/lib/Antd5/typography/style/index.js +5 -5
  323. package/lib/Antd5/typography/style/mixins.js +1 -1
  324. package/lib/Antd5/upload/Upload.js +22 -24
  325. package/lib/Antd5/version/index.js +0 -1
  326. package/lib/Antd5/version/token-meta.json +1 -0
  327. package/lib/Antd5/version/token.json +1 -0
  328. package/lib/Antd5/version/version.js +1 -1
  329. package/lib/Antd5/watermark/context.js +1 -1
  330. package/lib/Antd5/watermark/index.js +20 -13
  331. package/lib/Antd5/watermark/useClips.js +18 -16
  332. package/lib/Antd5/watermark/useRafDebounce.js +1 -1
  333. package/lib/Antd5/watermark/useSingletonCache.js +19 -0
  334. package/lib/Antd5/watermark/useWatermark.js +9 -18
  335. package/lib/CWCascader/rc-cascader/OptionList/Column.js +17 -18
  336. package/lib/CWMessage/MessageContent/TabList/index.js +10 -10
  337. package/lib/CWMessage/MessageContent/index.js +26 -28
  338. package/lib/CWMessage/index.js +42 -46
  339. package/lib/CWRangePicker/index.js +15 -15
  340. package/lib/CWRangePicker/utils/generate/dayjs.js +112 -23
  341. package/lib/CWRangePicker/utils/generate/moment.js +109 -21
  342. package/lib/CWSelect/index.js +423 -150
  343. package/lib/CWTable/CWTable.js +11 -11
  344. package/lib/Joyride/index.js +3 -3
  345. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +38 -39
  346. package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +22 -23
  347. package/lib/QuickTransfer/index.js +13 -13
  348. package/lib/SearchBar/index.js +7 -7
  349. package/lib/SingleSpa/index.js +22 -24
  350. package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useMouse.js +3 -3
  351. package/lib/TimeRangeSlider/index.js +6 -6
  352. package/lib/TimeRangeSlider/utils/generate/dayjs.js +109 -20
  353. package/lib/TimeRangeSlider/utils/generate/moment.js +109 -20
  354. package/lib/TimeZoneSelect/index.js +21 -22
  355. package/package.json +35 -34
  356. package/lib/Antd5/_util/isNumeric.js +0 -4
  357. package/lib/Antd5/pagination/Select.js +0 -24
@@ -5,7 +5,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { unit } from '@ant-design/cssinjs';
8
- import { genFocusStyle, resetComponent, textEllipsis } from '../../style';
8
+ import { genFocusOutline, genFocusStyle, resetComponent, textEllipsis } from '../../style';
9
9
  import { genStyleHooks, mergeToken } from '../../theme/internal';
10
10
  import genMotionStyle from './motion';
11
11
  var genCardStyle = function genCardStyle(token) {
@@ -15,7 +15,7 @@ var genCardStyle = function genCardStyle(token) {
15
15
  cardGutter = token.cardGutter,
16
16
  colorBorderSecondary = token.colorBorderSecondary,
17
17
  itemSelectedColor = token.itemSelectedColor;
18
- return _defineProperty({}, "".concat(componentCls, "-card"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "> ".concat(componentCls, "-nav, > div > ").concat(componentCls, "-nav"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-tab"), {
18
+ return _defineProperty({}, "".concat(componentCls, "-card"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "> ".concat(componentCls, "-nav, > div > ").concat(componentCls, "-nav"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-tab"), {
19
19
  margin: 0,
20
20
  padding: tabsCardPadding,
21
21
  background: cardBg,
@@ -24,6 +24,8 @@ var genCardStyle = function genCardStyle(token) {
24
24
  }), "".concat(componentCls, "-tab-active"), {
25
25
  color: itemSelectedColor,
26
26
  background: token.colorBgContainer
27
+ }), "".concat(componentCls, "-tab-focus:has(").concat(componentCls, "-tab-btn:focus-visible)"), genFocusOutline(token, -3)), "& ".concat(componentCls, "-tab").concat(componentCls, "-tab-focus ").concat(componentCls, "-tab-btn:focus-visible"), {
28
+ outline: 'none'
27
29
  }), "".concat(componentCls, "-ink-bar"), {
28
30
  visibility: 'hidden'
29
31
  })), "&".concat(componentCls, "-top, &").concat(componentCls, "-bottom"), _defineProperty({}, "> ".concat(componentCls, "-nav, > div > ").concat(componentCls, "-nav"), _defineProperty({}, "".concat(componentCls, "-tab + ").concat(componentCls, "-tab"), {
@@ -117,7 +119,7 @@ var genDropdownStyle = function genDropdownStyle(token) {
117
119
  _skip_check_: true,
118
120
  value: token.marginSM
119
121
  },
120
- color: token.colorTextDescription,
122
+ color: token.colorIcon,
121
123
  fontSize: token.fontSizeSM,
122
124
  background: 'transparent',
123
125
  border: 0,
@@ -299,6 +301,8 @@ var genSizeStyle = function genSizeStyle(token) {
299
301
  var componentCls = token.componentCls,
300
302
  cardPaddingSM = token.cardPaddingSM,
301
303
  cardPaddingLG = token.cardPaddingLG,
304
+ cardHeightSM = token.cardHeightSM,
305
+ cardHeightLG = token.cardHeightLG,
302
306
  horizontalItemPaddingSM = token.horizontalItemPaddingSM,
303
307
  horizontalItemPaddingLG = token.horizontalItemPaddingLG;
304
308
  return _defineProperty(_defineProperty({}, componentCls, {
@@ -308,10 +312,14 @@ var genSizeStyle = function genSizeStyle(token) {
308
312
  })),
309
313
  '&-large': _defineProperty({}, "> ".concat(componentCls, "-nav"), _defineProperty({}, "".concat(componentCls, "-tab"), {
310
314
  padding: horizontalItemPaddingLG,
311
- fontSize: token.titleFontSizeLG
315
+ fontSize: token.titleFontSizeLG,
316
+ lineHeight: token.lineHeightLG
312
317
  }))
313
- }), "".concat(componentCls, "-card"), _defineProperty(_defineProperty({}, "&".concat(componentCls, "-small"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "> ".concat(componentCls, "-nav"), _defineProperty({}, "".concat(componentCls, "-tab"), {
318
+ }), "".concat(componentCls, "-card"), _defineProperty(_defineProperty({}, "&".concat(componentCls, "-small"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "> ".concat(componentCls, "-nav"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-tab"), {
314
319
  padding: cardPaddingSM
320
+ }), "".concat(componentCls, "-nav-add"), {
321
+ minWidth: cardHeightSM,
322
+ minHeight: cardHeightSM
315
323
  })), "&".concat(componentCls, "-bottom"), _defineProperty({}, "> ".concat(componentCls, "-nav ").concat(componentCls, "-tab"), {
316
324
  borderRadius: "0 0 ".concat(unit(token.borderRadius), " ").concat(unit(token.borderRadius))
317
325
  })), "&".concat(componentCls, "-top"), _defineProperty({}, "> ".concat(componentCls, "-nav ").concat(componentCls, "-tab"), {
@@ -326,8 +334,11 @@ var genSizeStyle = function genSizeStyle(token) {
326
334
  _skip_check_: true,
327
335
  value: "".concat(unit(token.borderRadius), " 0 0 ").concat(unit(token.borderRadius))
328
336
  }
329
- }))), "&".concat(componentCls, "-large"), _defineProperty({}, "> ".concat(componentCls, "-nav"), _defineProperty({}, "".concat(componentCls, "-tab"), {
337
+ }))), "&".concat(componentCls, "-large"), _defineProperty({}, "> ".concat(componentCls, "-nav"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-tab"), {
330
338
  padding: cardPaddingLG
339
+ }), "".concat(componentCls, "-nav-add"), {
340
+ minWidth: cardHeightLG,
341
+ minHeight: cardHeightLG
331
342
  }))));
332
343
  };
333
344
  var genTabStyle = function genTabStyle(token) {
@@ -340,7 +351,7 @@ var genTabStyle = function genTabStyle(token) {
340
351
  itemSelectedColor = token.itemSelectedColor,
341
352
  itemColor = token.itemColor;
342
353
  var tabCls = "".concat(componentCls, "-tab");
343
- return _defineProperty(_defineProperty({}, tabCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
354
+ return _defineProperty(_defineProperty({}, tabCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
344
355
  position: 'relative',
345
356
  WebkitTouchCallout: 'none',
346
357
  WebkitTapHighlightColor: 'transparent',
@@ -353,18 +364,18 @@ var genTabStyle = function genTabStyle(token) {
353
364
  outline: 'none',
354
365
  cursor: 'pointer',
355
366
  color: itemColor,
356
- '&-btn, &-remove': _objectSpread({
367
+ '&-btn, &-remove': {
357
368
  '&:focus:not(:focus-visible), &:active': {
358
369
  color: itemActiveColor
359
370
  }
360
- }, genFocusStyle(token)),
371
+ },
361
372
  '&-btn': _defineProperty({
362
373
  outline: 'none',
363
374
  transition: "all ".concat(token.motionDurationSlow)
364
375
  }, "".concat(tabCls, "-icon:not(:last-child)"), {
365
376
  marginInlineEnd: token.marginSM
366
377
  }),
367
- '&-remove': {
378
+ '&-remove': _objectSpread({
368
379
  flex: 'none',
369
380
  marginRight: {
370
381
  _skip_check_: true,
@@ -374,7 +385,7 @@ var genTabStyle = function genTabStyle(token) {
374
385
  _skip_check_: true,
375
386
  value: token.marginXS
376
387
  },
377
- color: token.colorTextDescription,
388
+ color: token.colorIcon,
378
389
  fontSize: token.fontSizeSM,
379
390
  background: 'transparent',
380
391
  border: 'none',
@@ -384,14 +395,14 @@ var genTabStyle = function genTabStyle(token) {
384
395
  '&:hover': {
385
396
  color: token.colorTextHeading
386
397
  }
387
- },
398
+ }, genFocusStyle(token)),
388
399
  '&:hover': {
389
400
  color: itemHoverColor
390
401
  }
391
402
  }, "&".concat(tabCls, "-active ").concat(tabCls, "-btn"), {
392
403
  color: itemSelectedColor,
393
404
  textShadow: token.tabsActiveTextShadow
394
- }), "&".concat(tabCls, "-disabled"), {
405
+ }), "&".concat(tabCls, "-focus ").concat(tabCls, "-btn:focus-visible"), genFocusOutline(token)), "&".concat(tabCls, "-disabled"), {
395
406
  color: token.colorTextDisabled,
396
407
  cursor: 'not-allowed'
397
408
  }), "&".concat(tabCls, "-disabled ").concat(tabCls, "-btn, &").concat(tabCls, "-disabled ").concat(componentCls, "-remove"), {
@@ -549,7 +560,6 @@ var genTabsStyle = function genTabsStyle(token) {
549
560
  _skip_check_: true,
550
561
  value: cardGutter
551
562
  },
552
- padding: "0 ".concat(unit(token.paddingXS)),
553
563
  background: 'transparent',
554
564
  border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(colorBorderSecondary),
555
565
  borderRadius: "".concat(unit(token.borderRadiusLG), " ").concat(unit(token.borderRadiusLG), " 0 0"),
@@ -563,7 +573,7 @@ var genTabsStyle = function genTabsStyle(token) {
563
573
  '&:active, &:focus:not(:focus-visible)': {
564
574
  color: itemActiveColor
565
575
  }
566
- }, genFocusStyle(token)))), "".concat(componentCls, "-extra-content"), {
576
+ }, genFocusStyle(token, -3)))), "".concat(componentCls, "-extra-content"), {
567
577
  flex: 'none'
568
578
  }), "".concat(componentCls, "-ink-bar"), {
569
579
  position: 'absolute',
@@ -576,25 +586,36 @@ var genTabsStyle = function genTabsStyle(token) {
576
586
  flex: 'auto',
577
587
  minWidth: 0,
578
588
  minHeight: 0
579
- }), "".concat(componentCls, "-tabpane"), {
580
- outline: 'none',
589
+ }), "".concat(componentCls, "-tabpane"), _objectSpread(_objectSpread({}, genFocusStyle(token)), {}, {
581
590
  '&-hidden': {
582
591
  display: 'none'
583
592
  }
584
- }))), "".concat(componentCls, "-centered"), _defineProperty({}, "> ".concat(componentCls, "-nav, > div > ").concat(componentCls, "-nav"), _defineProperty({}, "".concat(componentCls, "-nav-wrap"), _defineProperty({}, "&:not([class*='".concat(componentCls, "-nav-wrap-ping']) > ").concat(componentCls, "-nav-list"), {
593
+ })))), "".concat(componentCls, "-centered"), _defineProperty({}, "> ".concat(componentCls, "-nav, > div > ").concat(componentCls, "-nav"), _defineProperty({}, "".concat(componentCls, "-nav-wrap"), _defineProperty({}, "&:not([class*='".concat(componentCls, "-nav-wrap-ping']) > ").concat(componentCls, "-nav-list"), {
585
594
  margin: 'auto'
586
595
  }))));
587
596
  };
588
597
  export var prepareComponentToken = function prepareComponentToken(token) {
589
- var cardHeight = token.controlHeightLG;
598
+ var cardHeight = token.cardHeight,
599
+ cardHeightSM = token.cardHeightSM,
600
+ cardHeightLG = token.cardHeightLG,
601
+ controlHeight = token.controlHeight,
602
+ controlHeightLG = token.controlHeightLG;
603
+ var mergedCardHeight = cardHeight || controlHeightLG;
604
+ var mergedCardHeightSM = cardHeightSM || controlHeight;
605
+ // `controlHeight` missing XL variable, so we directly write it here:
606
+ var mergedCardHeightLG = cardHeightLG || controlHeightLG + 8;
590
607
  return {
591
608
  zIndexPopup: token.zIndexPopupBase + 50,
592
609
  cardBg: token.colorFillAlter,
593
- cardHeight: cardHeight,
610
+ // We can not pass this as valid value,
611
+ // Since `cardHeight` will lock nav add button height.
612
+ cardHeight: mergedCardHeight,
613
+ cardHeightSM: mergedCardHeightSM,
614
+ cardHeightLG: mergedCardHeightLG,
594
615
  // Initialize with empty string, because cardPadding will be calculated with cardHeight by default.
595
- cardPadding: "".concat((cardHeight - Math.round(token.fontSize * token.lineHeight)) / 2 - token.lineWidth, "px ").concat(token.padding, "px"),
596
- cardPaddingSM: "".concat(token.paddingXXS * 1.5, "px ").concat(token.padding, "px"),
597
- cardPaddingLG: "".concat(token.paddingXS, "px ").concat(token.padding, "px ").concat(token.paddingXXS * 1.5, "px"),
616
+ cardPadding: "".concat((mergedCardHeight - token.fontHeight) / 2 - token.lineWidth, "px ").concat(token.padding, "px"),
617
+ cardPaddingSM: "".concat((mergedCardHeightSM - token.fontHeight) / 2 - token.lineWidth, "px ").concat(token.paddingXS, "px"),
618
+ cardPaddingLG: "".concat((mergedCardHeightLG - token.fontHeightLG) / 2 - token.lineWidth, "px ").concat(token.padding, "px"),
598
619
  titleFontSize: token.fontSize,
599
620
  titleFontSizeLG: token.fontSizeLG,
600
621
  titleFontSizeSM: token.fontSize,
@@ -5,7 +5,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { unit } from '@ant-design/cssinjs';
8
- import { TinyColor } from '@ctrl/tinycolor';
8
+ import { FastColor } from '@ant-design/fast-color';
9
9
  import { resetComponent } from '../../style';
10
10
  import { genStyleHooks, mergeToken } from '../../theme/internal';
11
11
  // ============================== Styles ==============================
@@ -40,7 +40,7 @@ var genBaseStyle = function genBaseStyle(token) {
40
40
  }), "".concat(componentCls, "-close-icon"), {
41
41
  marginInlineStart: iconMarginInline,
42
42
  fontSize: token.tagIconSize,
43
- color: token.colorTextDescription,
43
+ color: token.colorIcon,
44
44
  cursor: 'pointer',
45
45
  transition: "all ".concat(token.motionDurationMid),
46
46
  '&:hover': {
@@ -94,7 +94,7 @@ export var prepareToken = function prepareToken(token) {
94
94
  };
95
95
  export var prepareComponentToken = function prepareComponentToken(token) {
96
96
  return {
97
- defaultBg: new TinyColor(token.colorFillQuaternary).onBackground(token.colorBgContainer).toHexString(),
97
+ defaultBg: new FastColor(token.colorFillQuaternary).onBackground(token.colorBgContainer).toHexString(),
98
98
  defaultColor: token.colorText
99
99
  };
100
100
  };
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
- import { createTheme } from '@ant-design/cssinjs';
3
- import defaultDerivative from './themes/default';
4
2
  import defaultSeedToken from './themes/seed';
5
- export var defaultTheme = createTheme(defaultDerivative);
3
+ export { default as defaultTheme } from './themes/default/theme';
6
4
  // ================================ Context =================================
7
5
  // To ensure snapshot stable. We disable hashed in test env.
8
6
  export var defaultConfig = {
@@ -5,11 +5,11 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { createTheme, getComputedToken } from '@ant-design/cssinjs';
8
- import defaultDerivative from './themes/default';
8
+ import defaultTheme from './themes/default/theme';
9
9
  import seedToken from './themes/seed';
10
10
  import formatToken from './util/alias';
11
11
  var getDesignToken = function getDesignToken(config) {
12
- var theme = config !== null && config !== void 0 && config.algorithm ? createTheme(config.algorithm) : createTheme(defaultDerivative);
12
+ var theme = config !== null && config !== void 0 && config.algorithm ? createTheme(config.algorithm) : defaultTheme;
13
13
  var mergedToken = _objectSpread(_objectSpread({}, seedToken), config === null || config === void 0 ? void 0 : config.token);
14
14
  return getComputedToken(mergedToken, {
15
15
  override: config === null || config === void 0 ? void 0 : config.token
@@ -1,8 +1,8 @@
1
- import { TinyColor } from '@ctrl/tinycolor';
1
+ import { FastColor } from '@ant-design/fast-color';
2
2
  export var getAlphaColor = function getAlphaColor(baseColor, alpha) {
3
- return new TinyColor(baseColor).setAlpha(alpha).toRgbString();
3
+ return new FastColor(baseColor).setA(alpha).toRgbString();
4
4
  };
5
5
  export var getSolidColor = function getSolidColor(baseColor, brightness) {
6
- var instance = new TinyColor(baseColor);
6
+ var instance = new FastColor(baseColor);
7
7
  return instance.lighten(brightness).toHexString();
8
8
  };
@@ -14,7 +14,11 @@ var derivative = function derivative(token, mapToken) {
14
14
  var colors = generate(token[colorKey], {
15
15
  theme: 'dark'
16
16
  });
17
- return new Array(10).fill(1).reduce(function (prev, _, i) {
17
+ return Array.from({
18
+ length: 10
19
+ }, function () {
20
+ return 1;
21
+ }).reduce(function (prev, _, i) {
18
22
  prev["".concat(colorKey, "-").concat(i + 1)] = colors[i];
19
23
  prev["".concat(colorKey).concat(i + 1)] = colors[i];
20
24
  return prev;
@@ -25,9 +29,15 @@ var derivative = function derivative(token, mapToken) {
25
29
  return prev;
26
30
  }, {});
27
31
  var mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : defaultAlgorithm(token);
28
- return _objectSpread(_objectSpread(_objectSpread({}, mergedMapToken), colorPalettes), genColorMapToken(token, {
32
+ var colorMapToken = genColorMapToken(token, {
29
33
  generateColorPalettes: generateColorPalettes,
30
34
  generateNeutralColorPalettes: generateNeutralColorPalettes
31
- }));
35
+ });
36
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, mergedMapToken), colorPalettes), colorMapToken), {}, {
37
+ // Customize selected item background color
38
+ // https://github.com/ant-design/ant-design/issues/30524#issuecomment-871961867
39
+ colorPrimaryBg: colorMapToken.colorPrimaryBorder,
40
+ colorPrimaryBgHover: colorMapToken.colorPrimaryBorderHover
41
+ });
32
42
  };
33
43
  export default derivative;
@@ -1,8 +1,8 @@
1
- import { TinyColor } from '@ctrl/tinycolor';
1
+ import { FastColor } from '@ant-design/fast-color';
2
2
  export var getAlphaColor = function getAlphaColor(baseColor, alpha) {
3
- return new TinyColor(baseColor).setAlpha(alpha).toRgbString();
3
+ return new FastColor(baseColor).setA(alpha).toRgbString();
4
4
  };
5
5
  export var getSolidColor = function getSolidColor(baseColor, brightness) {
6
- var instance = new TinyColor(baseColor);
6
+ var instance = new FastColor(baseColor);
7
7
  return instance.darken(brightness).toHexString();
8
8
  };
@@ -18,7 +18,11 @@ export default function derivative(token) {
18
18
  presetPalettes.pink = presetPalettes.magenta;
19
19
  var colorPalettes = Object.keys(defaultPresetColors).map(function (colorKey) {
20
20
  var colors = token[colorKey] === presetPrimaryColors[colorKey] ? presetPalettes[colorKey] : generate(token[colorKey]);
21
- return new Array(10).fill(1).reduce(function (prev, _, i) {
21
+ return Array.from({
22
+ length: 10
23
+ }, function () {
24
+ return 1;
25
+ }).reduce(function (prev, _, i) {
22
26
  prev["".concat(colorKey, "-").concat(i + 1)] = colors[i];
23
27
  prev["".concat(colorKey).concat(i + 1)] = colors[i];
24
28
  return prev;
@@ -0,0 +1,4 @@
1
+ import { createTheme } from '@ant-design/cssinjs';
2
+ import defaultDerivative from './index';
3
+ var defaultTheme = createTheme(defaultDerivative);
4
+ export default defaultTheme;
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import { TinyColor } from '@ctrl/tinycolor';
7
+ import { FastColor } from '@ant-design/fast-color';
8
8
  export default function genColorMapToken(seed, _ref) {
9
9
  var generateColorPalettes = _ref.generateColorPalettes,
10
10
  generateNeutralColorPalettes = _ref.generateNeutralColorPalettes;
@@ -24,7 +24,7 @@ export default function genColorMapToken(seed, _ref) {
24
24
  // Color Link
25
25
  var colorLink = seed.colorLink || seed.colorInfo;
26
26
  var linkColors = generateColorPalettes(colorLink);
27
- var colorErrorBgFilledHover = new TinyColor(errorColors[1]).mix(new TinyColor(errorColors[3]), 50).toHexString();
27
+ var colorErrorBgFilledHover = new FastColor(errorColors[1]).mix(new FastColor(errorColors[3]), 50).toHexString();
28
28
  return _objectSpread(_objectSpread({}, neutralColors), {}, {
29
29
  colorPrimaryBg: primaryColors[1],
30
30
  colorPrimaryBgHover: primaryColors[2],
@@ -81,7 +81,7 @@ export default function genColorMapToken(seed, _ref) {
81
81
  colorLinkHover: linkColors[4],
82
82
  colorLink: linkColors[6],
83
83
  colorLinkActive: linkColors[7],
84
- colorBgMask: new TinyColor('#000').setAlpha(0.45).toRgbString(),
84
+ colorBgMask: new FastColor('#000').setA(0.45).toRgbString(),
85
85
  colorWhite: '#fff'
86
86
  });
87
87
  }
@@ -3,7 +3,9 @@ export function getLineHeight(fontSize) {
3
3
  }
4
4
  // https://zhuanlan.zhihu.com/p/32746810
5
5
  export default function getFontSizes(base) {
6
- var fontSizes = new Array(10).fill(null).map(function (_, index) {
6
+ var fontSizes = Array.from({
7
+ length: 10
8
+ }).map(function (_, index) {
7
9
  var i = index - 1;
8
10
  var baseSize = base * Math.pow(Math.E, i / 5);
9
11
  var intSize = index > 1 ? Math.floor(baseSize) : Math.ceil(baseSize);
@@ -7,7 +7,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
8
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
9
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
- import { TinyColor } from '@ctrl/tinycolor';
10
+ import { FastColor } from '@ant-design/fast-color';
11
11
  import seedToken from '../themes/seed';
12
12
  import getAlphaColor from './getAlphaColor';
13
13
  /**
@@ -129,7 +129,7 @@ export default function formatToken(derivativeToken) {
129
129
  screenXXL: screenXXL,
130
130
  screenXXLMin: screenXXL,
131
131
  boxShadowPopoverArrow: '2px 2px 5px rgba(0, 0, 0, 0.05)',
132
- boxShadowCard: "\n 0 1px 2px -2px ".concat(new TinyColor('rgba(0, 0, 0, 0.16)').toRgbString(), ",\n 0 3px 6px 0 ").concat(new TinyColor('rgba(0, 0, 0, 0.12)').toRgbString(), ",\n 0 5px 12px 4px ").concat(new TinyColor('rgba(0, 0, 0, 0.09)').toRgbString(), "\n "),
132
+ boxShadowCard: "\n 0 1px 2px -2px ".concat(new FastColor('rgba(0, 0, 0, 0.16)').toRgbString(), ",\n 0 3px 6px 0 ").concat(new FastColor('rgba(0, 0, 0, 0.12)').toRgbString(), ",\n 0 5px 12px 4px ").concat(new FastColor('rgba(0, 0, 0, 0.09)').toRgbString(), "\n "),
133
133
  boxShadowDrawerRight: "\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",
134
134
  boxShadowDrawerLeft: "\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",
135
135
  boxShadowDrawerUp: "\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",
@@ -6,10 +6,9 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
6
6
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
7
  import { useContext } from 'react';
8
8
  import { genStyleUtils } from '@ant-design/cssinjs-utils';
9
- import { ConfigContext } from '../../config-provider/context';
10
- import { genCommonStyle, genLinkStyle } from '../../style';
9
+ import { ConfigContext, defaultIconPrefixCls } from '../../config-provider/context';
10
+ import { genCommonStyle, genIconStyle, genLinkStyle } from '../../style';
11
11
  import useLocalToken, { unitless } from '../useToken';
12
- import useResetIconStyle from './useResetIconStyle';
13
12
  var _genStyleUtils = genStyleUtils({
14
13
  usePrefix: function usePrefix() {
15
14
  var _useContext = useContext(ConfigContext),
@@ -39,16 +38,15 @@ var _genStyleUtils = genStyleUtils({
39
38
  },
40
39
  useCSP: function useCSP() {
41
40
  var _useContext2 = useContext(ConfigContext),
42
- csp = _useContext2.csp,
43
- iconPrefixCls = _useContext2.iconPrefixCls;
44
- // Generate style for icons
45
- useResetIconStyle(iconPrefixCls, csp);
41
+ csp = _useContext2.csp;
46
42
  return csp !== null && csp !== void 0 ? csp : {};
47
43
  },
48
- getResetStyles: function getResetStyles(token) {
49
- return [{
50
- '&': genLinkStyle(token)
51
- }];
44
+ getResetStyles: function getResetStyles(token, config) {
45
+ var _config$prefix$iconPr;
46
+ var linkStyle = genLinkStyle(token);
47
+ return [linkStyle, {
48
+ '&': linkStyle
49
+ }, genIconStyle((_config$prefix$iconPr = config === null || config === void 0 ? void 0 : config.prefix.iconPrefixCls) !== null && _config$prefix$iconPr !== void 0 ? _config$prefix$iconPr : defaultIconPrefixCls)];
52
50
  },
53
51
  getCommonStyle: genCommonStyle,
54
52
  getCompUnitless: function getCompUnitless() {
@@ -1,26 +1,26 @@
1
- import { TinyColor } from '@ctrl/tinycolor';
1
+ import { FastColor } from '@ant-design/fast-color';
2
2
  function isStableColor(color) {
3
3
  return color >= 0 && color <= 255;
4
4
  }
5
5
  function getAlphaColor(frontColor, backgroundColor) {
6
- var _TinyColor$toRgb = new TinyColor(frontColor).toRgb(),
7
- fR = _TinyColor$toRgb.r,
8
- fG = _TinyColor$toRgb.g,
9
- fB = _TinyColor$toRgb.b,
10
- originAlpha = _TinyColor$toRgb.a;
6
+ var _FastColor$toRgb = new FastColor(frontColor).toRgb(),
7
+ fR = _FastColor$toRgb.r,
8
+ fG = _FastColor$toRgb.g,
9
+ fB = _FastColor$toRgb.b,
10
+ originAlpha = _FastColor$toRgb.a;
11
11
  if (originAlpha < 1) {
12
12
  return frontColor;
13
13
  }
14
- var _TinyColor$toRgb2 = new TinyColor(backgroundColor).toRgb(),
15
- bR = _TinyColor$toRgb2.r,
16
- bG = _TinyColor$toRgb2.g,
17
- bB = _TinyColor$toRgb2.b;
14
+ var _FastColor$toRgb2 = new FastColor(backgroundColor).toRgb(),
15
+ bR = _FastColor$toRgb2.r,
16
+ bG = _FastColor$toRgb2.g,
17
+ bB = _FastColor$toRgb2.b;
18
18
  for (var fA = 0.01; fA <= 1; fA += 0.01) {
19
19
  var r = Math.round((fR - bR * (1 - fA)) / fA);
20
20
  var g = Math.round((fG - bG * (1 - fA)) / fA);
21
21
  var b = Math.round((fB - bB * (1 - fA)) / fA);
22
22
  if (isStableColor(r) && isStableColor(g) && isStableColor(b)) {
23
- return new TinyColor({
23
+ return new FastColor({
24
24
  r: r,
25
25
  g: g,
26
26
  b: b,
@@ -30,7 +30,7 @@ function getAlphaColor(frontColor, backgroundColor) {
30
30
  }
31
31
  // fallback
32
32
  /* istanbul ignore next */
33
- return new TinyColor({
33
+ return new FastColor({
34
34
  r: fR,
35
35
  g: fG,
36
36
  b: fB,
@@ -1,9 +1,3 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
1
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
8
2
  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."); }
9
3
  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; } }
@@ -11,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
11
5
  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; } }
12
6
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
7
  import { useStyleRegister } from '@ant-design/cssinjs';
14
- import { resetIcon } from '../../style';
8
+ import { genIconStyle } from '../../style';
15
9
  import useToken from '../useToken';
16
10
  var useResetIconStyle = function useResetIconStyle(iconPrefixCls, csp) {
17
11
  var _useToken = useToken(),
@@ -31,9 +25,7 @@ var useResetIconStyle = function useResetIconStyle(iconPrefixCls, csp) {
31
25
  name: 'antd'
32
26
  }
33
27
  }, function () {
34
- return [_defineProperty({}, ".".concat(iconPrefixCls), _objectSpread(_objectSpread({}, resetIcon()), {}, _defineProperty({}, ".".concat(iconPrefixCls, " .").concat(iconPrefixCls, "-icon"), {
35
- display: 'block'
36
- })))];
28
+ return [genIconStyle(iconPrefixCls)];
37
29
  });
38
30
  };
39
31
  export default useResetIconStyle;
@@ -62,7 +62,7 @@ if (process.env.NODE_ENV !== 'production') {
62
62
  }
63
63
  // We don't care debug panel
64
64
  /* istanbul ignore next */
65
- var PurePanel = genPurePanel(TimePicker, 'picker');
65
+ var PurePanel = genPurePanel(TimePicker, 'popupAlign', undefined, 'picker');
66
66
  TimePicker._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
67
67
  TimePicker.RangePicker = RangePicker;
68
68
  TimePicker._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
@@ -78,7 +78,7 @@ var TimelineItemList = function TimelineItemList(_ref) {
78
78
  return !!(item !== null && item !== void 0 && item.label);
79
79
  });
80
80
  var classString = classNames(prefixCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-pending"), !!pending), "".concat(prefixCls, "-reverse"), !!reverse), "".concat(prefixCls, "-").concat(mode), !!mode && !hasLabelItem), "".concat(prefixCls, "-label"), hasLabelItem), "".concat(prefixCls, "-rtl"), direction === 'rtl'), className, rootClassName, hashId);
81
- return _jsx("ul", _objectSpread(_objectSpread({}, restProps), {}, {
81
+ return _jsx("ol", _objectSpread(_objectSpread({}, restProps), {}, {
82
82
  className: classString,
83
83
  children: itemsList
84
84
  }));