@antsoo-lib/components 0.1.11 → 0.1.13

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 (1434) hide show
  1. package/dist/es/modal/index.d.ts +1 -0
  2. package/package.json +3 -4
  3. package/src/_util/ActionButton.tsx +0 -124
  4. package/src/_util/BaseInput.tsx +0 -169
  5. package/src/_util/BaseInputInner.tsx +0 -97
  6. package/src/_util/BaseMixin.ts +0 -46
  7. package/src/_util/EventInterface.ts +0 -19
  8. package/src/_util/KeyCode.ts +0 -522
  9. package/src/_util/Portal.tsx +0 -73
  10. package/src/_util/PortalWrapper.tsx +0 -191
  11. package/src/_util/__mocks__/Portal.tsx +0 -13
  12. package/src/_util/__mocks__/RenderSlot.tsx +0 -12
  13. package/src/_util/canUseDom.ts +0 -5
  14. package/src/_util/classNames.ts +0 -28
  15. package/src/_util/collapseMotion.tsx +0 -51
  16. package/src/_util/colors.ts +0 -34
  17. package/src/_util/component-classes.ts +0 -167
  18. package/src/_util/copy-to-clipboard/index.ts +0 -120
  19. package/src/_util/copy-to-clipboard/toggle-selection.ts +0 -41
  20. package/src/_util/createContext.ts +0 -22
  21. package/src/_util/createRef.ts +0 -31
  22. package/src/_util/cssinjs/Cache.ts +0 -28
  23. package/src/_util/cssinjs/Keyframes.ts +0 -19
  24. package/src/_util/cssinjs/StyleContext.tsx +0 -187
  25. package/src/_util/cssinjs/hooks/useCacheToken.tsx +0 -167
  26. package/src/_util/cssinjs/hooks/useGlobalCache.tsx +0 -60
  27. package/src/_util/cssinjs/hooks/useHMR.ts +0 -34
  28. package/src/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.ts +0 -91
  29. package/src/_util/cssinjs/hooks/useStyleRegister/index.tsx +0 -567
  30. package/src/_util/cssinjs/index.ts +0 -75
  31. package/src/_util/cssinjs/linters/contentQuotesLinter.ts +0 -25
  32. package/src/_util/cssinjs/linters/hashedAnimationLinter.ts +0 -15
  33. package/src/_util/cssinjs/linters/index.ts +0 -6
  34. package/src/_util/cssinjs/linters/interface.ts +0 -9
  35. package/src/_util/cssinjs/linters/legacyNotSelectorLinter.ts +0 -33
  36. package/src/_util/cssinjs/linters/logicalPropertiesLinter.ts +0 -88
  37. package/src/_util/cssinjs/linters/parentSelectorLinter.ts +0 -15
  38. package/src/_util/cssinjs/linters/utils.ts +0 -13
  39. package/src/_util/cssinjs/theme/Theme.ts +0 -38
  40. package/src/_util/cssinjs/theme/ThemeCache.ts +0 -135
  41. package/src/_util/cssinjs/theme/createTheme.ts +0 -26
  42. package/src/_util/cssinjs/theme/index.ts +0 -4
  43. package/src/_util/cssinjs/theme/interface.ts +0 -5
  44. package/src/_util/cssinjs/transformers/interface.ts +0 -5
  45. package/src/_util/cssinjs/transformers/legacyLogicalProperties.ts +0 -162
  46. package/src/_util/cssinjs/transformers/px2rem.ts +0 -77
  47. package/src/_util/cssinjs/util.ts +0 -118
  48. package/src/_util/debouncedWatch.ts +0 -87
  49. package/src/_util/eagerComputed.ts +0 -17
  50. package/src/_util/easings.ts +0 -8
  51. package/src/_util/env.ts +0 -9
  52. package/src/_util/extendsObject.ts +0 -21
  53. package/src/_util/firstNotUndefined.ts +0 -10
  54. package/src/_util/gapSize.ts +0 -13
  55. package/src/_util/getRequestAnimationFrame.ts +0 -47
  56. package/src/_util/getScroll.ts +0 -33
  57. package/src/_util/getScrollBarSize.ts +0 -60
  58. package/src/_util/hooks/_vueuse/_configurable.ts +0 -34
  59. package/src/_util/hooks/_vueuse/is.ts +0 -26
  60. package/src/_util/hooks/_vueuse/resolveUnref.ts +0 -10
  61. package/src/_util/hooks/_vueuse/tryOnMounted.ts +0 -15
  62. package/src/_util/hooks/_vueuse/tryOnScopeDispose.ts +0 -16
  63. package/src/_util/hooks/_vueuse/types.ts +0 -143
  64. package/src/_util/hooks/_vueuse/unrefElement.ts +0 -25
  65. package/src/_util/hooks/_vueuse/useElementSize.ts +0 -66
  66. package/src/_util/hooks/_vueuse/useMutationObserver.ts +0 -63
  67. package/src/_util/hooks/_vueuse/useResizeObserver.ts +0 -95
  68. package/src/_util/hooks/_vueuse/useSupported.ts +0 -14
  69. package/src/_util/hooks/useBreakpoint.ts +0 -25
  70. package/src/_util/hooks/useDestroyed.ts +0 -12
  71. package/src/_util/hooks/useFlexGapSupport.ts +0 -12
  72. package/src/_util/hooks/useId.ts +0 -31
  73. package/src/_util/hooks/useLayoutState.ts +0 -42
  74. package/src/_util/hooks/useMemo.ts +0 -21
  75. package/src/_util/hooks/useMergedState.ts +0 -47
  76. package/src/_util/hooks/useRefs.ts +0 -21
  77. package/src/_util/hooks/useScrollLocker.ts +0 -53
  78. package/src/_util/hooks/useState.ts +0 -17
  79. package/src/_util/isNumeric.ts +0 -5
  80. package/src/_util/isValid.ts +0 -4
  81. package/src/_util/isValidValue.ts +0 -3
  82. package/src/_util/json2mq.ts +0 -60
  83. package/src/_util/omit.ts +0 -9
  84. package/src/_util/pickAttrs.ts +0 -74
  85. package/src/_util/placements.ts +0 -111
  86. package/src/_util/props-util/index.ts +0 -287
  87. package/src/_util/props-util/initDefaultProps.ts +0 -34
  88. package/src/_util/raf.ts +0 -47
  89. package/src/_util/reactivePick.ts +0 -16
  90. package/src/_util/requestAnimationTimeout.ts +0 -24
  91. package/src/_util/responsiveObserve.ts +0 -86
  92. package/src/_util/scrollTo.ts +0 -38
  93. package/src/_util/setStyle.ts +0 -30
  94. package/src/_util/shallowequal.ts +0 -50
  95. package/src/_util/static-style-extract/index.tsx +0 -92
  96. package/src/_util/static-style-extract/interface.ts +0 -3
  97. package/src/_util/statusUtils.tsx +0 -23
  98. package/src/_util/styleChecker.ts +0 -62
  99. package/src/_util/supportsPassive.js +0 -13
  100. package/src/_util/throttleByAnimationFrame.ts +0 -31
  101. package/src/_util/toReactive.ts +0 -43
  102. package/src/_util/transButton.tsx +0 -103
  103. package/src/_util/transKeys.ts +0 -17
  104. package/src/_util/transition.tsx +0 -130
  105. package/src/_util/type.ts +0 -95
  106. package/src/_util/unreachableException.ts +0 -7
  107. package/src/_util/util.ts +0 -102
  108. package/src/_util/vnode.ts +0 -84
  109. package/src/_util/vue-types/index.ts +0 -45
  110. package/src/_util/warning.ts +0 -21
  111. package/src/_util/wave/WaveEffect.tsx +0 -172
  112. package/src/_util/wave/index.tsx +0 -96
  113. package/src/_util/wave/style.ts +0 -38
  114. package/src/_util/wave/useWave.ts +0 -26
  115. package/src/_util/wave/util.ts +0 -34
  116. package/src/affix/index.en-US.md +0 -47
  117. package/src/affix/index.tsx +0 -287
  118. package/src/affix/index.zh-CN.md +0 -50
  119. package/src/affix/style/index.ts +0 -27
  120. package/src/affix/utils.ts +0 -107
  121. package/src/alert/index.en-US.md +0 -36
  122. package/src/alert/index.tsx +0 -207
  123. package/src/alert/index.zh-CN.md +0 -37
  124. package/src/alert/style/index.ts +0 -240
  125. package/src/anchor/Anchor.tsx +0 -331
  126. package/src/anchor/AnchorLink.tsx +0 -108
  127. package/src/anchor/context.ts +0 -36
  128. package/src/anchor/index.en-US.md +0 -59
  129. package/src/anchor/index.tsx +0 -23
  130. package/src/anchor/index.zh-CN.md +0 -60
  131. package/src/anchor/style/index.ts +0 -173
  132. package/src/app/context.ts +0 -45
  133. package/src/app/index.en-US.md +0 -131
  134. package/src/app/index.tsx +0 -84
  135. package/src/app/index.zh-CN.md +0 -132
  136. package/src/app/style/index.ts +0 -22
  137. package/src/auto-complete/OptGroup.tsx +0 -15
  138. package/src/auto-complete/Option.tsx +0 -18
  139. package/src/auto-complete/index.en-US.md +0 -95
  140. package/src/auto-complete/index.tsx +0 -174
  141. package/src/auto-complete/index.zh-CN.md +0 -96
  142. package/src/avatar/Avatar.tsx +0 -222
  143. package/src/avatar/AvatarContext.ts +0 -18
  144. package/src/avatar/Group.tsx +0 -100
  145. package/src/avatar/index.en-US.md +0 -37
  146. package/src/avatar/index.ts +0 -22
  147. package/src/avatar/index.zh-CN.md +0 -42
  148. package/src/avatar/style/index.ts +0 -211
  149. package/src/badge/Badge.tsx +0 -242
  150. package/src/badge/Ribbon.tsx +0 -63
  151. package/src/badge/ScrollNumber.tsx +0 -87
  152. package/src/badge/SingleNumber.tsx +0 -134
  153. package/src/badge/index.en_US.md +0 -48
  154. package/src/badge/index.ts +0 -19
  155. package/src/badge/index.zh-CN.md +0 -49
  156. package/src/badge/style/index.ts +0 -378
  157. package/src/breadcrumb/Breadcrumb.tsx +0 -172
  158. package/src/breadcrumb/BreadcrumbItem.tsx +0 -91
  159. package/src/breadcrumb/BreadcrumbSeparator.tsx +0 -33
  160. package/src/breadcrumb/index.en-US.md +0 -120
  161. package/src/breadcrumb/index.ts +0 -27
  162. package/src/breadcrumb/index.zh-CN.md +0 -121
  163. package/src/breadcrumb/style/index.ts +0 -127
  164. package/src/button/LoadingIcon.tsx +0 -70
  165. package/src/button/button-group.tsx +0 -61
  166. package/src/button/button.tsx +0 -246
  167. package/src/button/buttonTypes.ts +0 -47
  168. package/src/button/index.en-US.md +0 -72
  169. package/src/button/index.ts +0 -25
  170. package/src/button/index.zh-CN.md +0 -75
  171. package/src/button/style/group.ts +0 -80
  172. package/src/button/style/index.ts +0 -557
  173. package/src/calendar/Header.tsx +0 -206
  174. package/src/calendar/date-fns.tsx +0 -9
  175. package/src/calendar/dayjs.tsx +0 -9
  176. package/src/calendar/generateCalendar.tsx +0 -371
  177. package/src/calendar/index.en-US.md +0 -68
  178. package/src/calendar/index.tsx +0 -5
  179. package/src/calendar/index.zh-CN.md +0 -67
  180. package/src/calendar/locale/ar_EG.ts +0 -3
  181. package/src/calendar/locale/az_AZ.ts +0 -3
  182. package/src/calendar/locale/bg_BG.ts +0 -3
  183. package/src/calendar/locale/bn_BD.ts +0 -3
  184. package/src/calendar/locale/by_BY.ts +0 -3
  185. package/src/calendar/locale/ca_ES.ts +0 -3
  186. package/src/calendar/locale/cs_CZ.ts +0 -3
  187. package/src/calendar/locale/da_DK.ts +0 -3
  188. package/src/calendar/locale/de_DE.ts +0 -3
  189. package/src/calendar/locale/el_GR.ts +0 -3
  190. package/src/calendar/locale/en_GB.ts +0 -3
  191. package/src/calendar/locale/en_US.ts +0 -3
  192. package/src/calendar/locale/es_ES.ts +0 -3
  193. package/src/calendar/locale/et_EE.ts +0 -3
  194. package/src/calendar/locale/fa_IR.ts +0 -3
  195. package/src/calendar/locale/fi_FI.ts +0 -3
  196. package/src/calendar/locale/fr_BE.ts +0 -3
  197. package/src/calendar/locale/fr_CA.ts +0 -3
  198. package/src/calendar/locale/fr_FR.ts +0 -3
  199. package/src/calendar/locale/ga_IE.ts +0 -3
  200. package/src/calendar/locale/gl_ES.ts +0 -3
  201. package/src/calendar/locale/he_IL.ts +0 -3
  202. package/src/calendar/locale/hi_IN.ts +0 -3
  203. package/src/calendar/locale/hr_HR.ts +0 -3
  204. package/src/calendar/locale/hu_HU.ts +0 -3
  205. package/src/calendar/locale/id_ID.ts +0 -3
  206. package/src/calendar/locale/is_IS.ts +0 -3
  207. package/src/calendar/locale/it_IT.ts +0 -3
  208. package/src/calendar/locale/ja_JP.ts +0 -3
  209. package/src/calendar/locale/ka_GE.ts +0 -3
  210. package/src/calendar/locale/kk_KZ.ts +0 -3
  211. package/src/calendar/locale/km_KH.ts +0 -3
  212. package/src/calendar/locale/kmr_IQ.ts +0 -3
  213. package/src/calendar/locale/kn_IN.ts +0 -3
  214. package/src/calendar/locale/ko_KR.ts +0 -3
  215. package/src/calendar/locale/lt_LT.ts +0 -3
  216. package/src/calendar/locale/lv_LV.ts +0 -3
  217. package/src/calendar/locale/mk_MK.ts +0 -3
  218. package/src/calendar/locale/ml_IN.ts +0 -3
  219. package/src/calendar/locale/mn_MN.ts +0 -3
  220. package/src/calendar/locale/ms_MY.ts +0 -3
  221. package/src/calendar/locale/nb_NO.ts +0 -3
  222. package/src/calendar/locale/nl_BE.ts +0 -3
  223. package/src/calendar/locale/nl_NL.ts +0 -3
  224. package/src/calendar/locale/pl_PL.ts +0 -3
  225. package/src/calendar/locale/pt_BR.ts +0 -3
  226. package/src/calendar/locale/pt_PT.ts +0 -3
  227. package/src/calendar/locale/ro_RO.ts +0 -3
  228. package/src/calendar/locale/ru_RU.ts +0 -3
  229. package/src/calendar/locale/sk_SK.ts +0 -3
  230. package/src/calendar/locale/sl_SI.ts +0 -3
  231. package/src/calendar/locale/sr_RS.ts +0 -3
  232. package/src/calendar/locale/sv_SE.ts +0 -3
  233. package/src/calendar/locale/ta_IN.ts +0 -3
  234. package/src/calendar/locale/th_TH.ts +0 -3
  235. package/src/calendar/locale/tr_TR.ts +0 -3
  236. package/src/calendar/locale/uk_UA.ts +0 -3
  237. package/src/calendar/locale/ur_PK.ts +0 -3
  238. package/src/calendar/locale/vi_VN.ts +0 -3
  239. package/src/calendar/locale/zh_CN.ts +0 -3
  240. package/src/calendar/locale/zh_TW.ts +0 -3
  241. package/src/calendar/moment.tsx +0 -11
  242. package/src/calendar/style/index.tsx +0 -218
  243. package/src/card/Card.tsx +0 -197
  244. package/src/card/Grid.tsx +0 -28
  245. package/src/card/Meta.tsx +0 -56
  246. package/src/card/index.en-US.md +0 -59
  247. package/src/card/index.ts +0 -26
  248. package/src/card/index.zh-CN.md +0 -60
  249. package/src/card/style/index.tsx +0 -387
  250. package/src/carousel/index.en-US.md +0 -38
  251. package/src/carousel/index.tsx +0 -161
  252. package/src/carousel/index.zh-CN.md +0 -39
  253. package/src/carousel/style/index.tsx +0 -350
  254. package/src/cascader/index.en-US.md +0 -97
  255. package/src/cascader/index.tsx +0 -357
  256. package/src/cascader/index.zh-CN.md +0 -100
  257. package/src/cascader/style/index.ts +0 -165
  258. package/src/checkbox/Checkbox.tsx +0 -140
  259. package/src/checkbox/Group.tsx +0 -131
  260. package/src/checkbox/index.en-US.md +0 -58
  261. package/src/checkbox/index.ts +0 -21
  262. package/src/checkbox/index.zh-CN.md +0 -59
  263. package/src/checkbox/interface.ts +0 -90
  264. package/src/checkbox/style/index.ts +0 -303
  265. package/src/col/index.ts +0 -5
  266. package/src/col/style/index.ts +0 -4
  267. package/src/collapse/Collapse.tsx +0 -204
  268. package/src/collapse/CollapsePanel.tsx +0 -124
  269. package/src/collapse/PanelContent.tsx +0 -35
  270. package/src/collapse/commonProps.ts +0 -56
  271. package/src/collapse/index.en-US.md +0 -47
  272. package/src/collapse/index.ts +0 -22
  273. package/src/collapse/index.zh-CN.md +0 -47
  274. package/src/collapse/style/index.tsx +0 -271
  275. package/src/comment/index.en-US.md +0 -22
  276. package/src/comment/index.tsx +0 -118
  277. package/src/comment/index.zh-CN.md +0 -23
  278. package/src/comment/style/index.ts +0 -160
  279. package/src/components.ts +0 -263
  280. package/src/config-provider/DisabledContext.ts +0 -17
  281. package/src/config-provider/SizeContext.ts +0 -17
  282. package/src/config-provider/context.ts +0 -178
  283. package/src/config-provider/cssVariables.ts +0 -102
  284. package/src/config-provider/hooks/useConfigInject.ts +0 -74
  285. package/src/config-provider/hooks/useTheme.ts +0 -44
  286. package/src/config-provider/index.en-US.md +0 -115
  287. package/src/config-provider/index.tsx +0 -296
  288. package/src/config-provider/index.zh-CN.md +0 -116
  289. package/src/config-provider/renderEmpty.tsx +0 -35
  290. package/src/config-provider/style/index.ts +0 -31
  291. package/src/date-picker/PickerButton.tsx +0 -9
  292. package/src/date-picker/PickerTag.tsx +0 -6
  293. package/src/date-picker/date-fns.tsx +0 -38
  294. package/src/date-picker/dayjs.tsx +0 -40
  295. package/src/date-picker/generatePicker/generateRangePicker.tsx +0 -256
  296. package/src/date-picker/generatePicker/generateSinglePicker.tsx +0 -290
  297. package/src/date-picker/generatePicker/index.tsx +0 -85
  298. package/src/date-picker/generatePicker/interface.ts +0 -74
  299. package/src/date-picker/generatePicker/props.ts +0 -301
  300. package/src/date-picker/index.en-US.md +0 -232
  301. package/src/date-picker/index.tsx +0 -5
  302. package/src/date-picker/index.zh-CN.md +0 -231
  303. package/src/date-picker/locale/ar_EG.ts +0 -24
  304. package/src/date-picker/locale/az_AZ.ts +0 -16
  305. package/src/date-picker/locale/bg_BG.ts +0 -20
  306. package/src/date-picker/locale/bn_BD.ts +0 -27
  307. package/src/date-picker/locale/by_BY.ts +0 -23
  308. package/src/date-picker/locale/ca_ES.ts +0 -20
  309. package/src/date-picker/locale/cs_CZ.ts +0 -20
  310. package/src/date-picker/locale/da_DK.ts +0 -20
  311. package/src/date-picker/locale/de_DE.ts +0 -20
  312. package/src/date-picker/locale/el_GR.ts +0 -20
  313. package/src/date-picker/locale/en_GB.ts +0 -28
  314. package/src/date-picker/locale/en_US.ts +0 -28
  315. package/src/date-picker/locale/es_ES.ts +0 -20
  316. package/src/date-picker/locale/et_EE.ts +0 -20
  317. package/src/date-picker/locale/example.json +0 -40
  318. package/src/date-picker/locale/fa_IR.ts +0 -27
  319. package/src/date-picker/locale/fi_FI.ts +0 -20
  320. package/src/date-picker/locale/fr_BE.ts +0 -20
  321. package/src/date-picker/locale/fr_CA.ts +0 -27
  322. package/src/date-picker/locale/fr_FR.ts +0 -27
  323. package/src/date-picker/locale/ga_IE.ts +0 -27
  324. package/src/date-picker/locale/gl_ES.ts +0 -20
  325. package/src/date-picker/locale/he_IL.ts +0 -20
  326. package/src/date-picker/locale/hi_IN.ts +0 -27
  327. package/src/date-picker/locale/hr_HR.ts +0 -27
  328. package/src/date-picker/locale/hu_HU.ts +0 -20
  329. package/src/date-picker/locale/id_ID.ts +0 -20
  330. package/src/date-picker/locale/is_IS.ts +0 -20
  331. package/src/date-picker/locale/it_IT.ts +0 -20
  332. package/src/date-picker/locale/ja_JP.ts +0 -28
  333. package/src/date-picker/locale/ka_GE.ts +0 -23
  334. package/src/date-picker/locale/kk_KZ.ts +0 -27
  335. package/src/date-picker/locale/km_KH.ts +0 -27
  336. package/src/date-picker/locale/kmr_IQ.ts +0 -19
  337. package/src/date-picker/locale/kn_IN.ts +0 -20
  338. package/src/date-picker/locale/ko_KR.ts +0 -20
  339. package/src/date-picker/locale/lt_LT.ts +0 -27
  340. package/src/date-picker/locale/lv_LV.ts +0 -20
  341. package/src/date-picker/locale/mk_MK.ts +0 -20
  342. package/src/date-picker/locale/ml_IN.ts +0 -27
  343. package/src/date-picker/locale/mn_MN.ts +0 -20
  344. package/src/date-picker/locale/ms_MY.ts +0 -20
  345. package/src/date-picker/locale/nb_NO.ts +0 -27
  346. package/src/date-picker/locale/nl_BE.ts +0 -27
  347. package/src/date-picker/locale/nl_NL.ts +0 -27
  348. package/src/date-picker/locale/pl_PL.ts +0 -20
  349. package/src/date-picker/locale/pt_BR.ts +0 -20
  350. package/src/date-picker/locale/pt_PT.ts +0 -47
  351. package/src/date-picker/locale/ro_RO.ts +0 -20
  352. package/src/date-picker/locale/ru_RU.ts +0 -28
  353. package/src/date-picker/locale/sk_SK.ts +0 -20
  354. package/src/date-picker/locale/sl_SI.ts +0 -45
  355. package/src/date-picker/locale/sr_RS.ts +0 -27
  356. package/src/date-picker/locale/sv_SE.ts +0 -27
  357. package/src/date-picker/locale/ta_IN.ts +0 -21
  358. package/src/date-picker/locale/th_TH.ts +0 -27
  359. package/src/date-picker/locale/tr_TR.ts +0 -28
  360. package/src/date-picker/locale/uk_UA.ts +0 -20
  361. package/src/date-picker/locale/ur_PK.ts +0 -27
  362. package/src/date-picker/locale/vi_VN.ts +0 -20
  363. package/src/date-picker/locale/zh_CN.ts +0 -31
  364. package/src/date-picker/locale/zh_TW.ts +0 -30
  365. package/src/date-picker/moment.tsx +0 -41
  366. package/src/date-picker/style/index.ts +0 -1451
  367. package/src/date-picker/util.ts +0 -102
  368. package/src/descriptions/Cell.tsx +0 -75
  369. package/src/descriptions/Row.tsx +0 -139
  370. package/src/descriptions/index.en-US.md +0 -40
  371. package/src/descriptions/index.tsx +0 -257
  372. package/src/descriptions/index.zh-CN.md +0 -41
  373. package/src/descriptions/style/index.ts +0 -208
  374. package/src/divider/index.en-US.md +0 -24
  375. package/src/divider/index.tsx +0 -98
  376. package/src/divider/index.zh-CN.md +0 -25
  377. package/src/divider/style/index.ts +0 -167
  378. package/src/drawer/index.en-US.md +0 -60
  379. package/src/drawer/index.tsx +0 -441
  380. package/src/drawer/index.zh-CN.md +0 -59
  381. package/src/drawer/style/index.ts +0 -230
  382. package/src/drawer/style/motion.ts +0 -134
  383. package/src/dropdown/dropdown-button.tsx +0 -120
  384. package/src/dropdown/dropdown.tsx +0 -219
  385. package/src/dropdown/index.en-US.md +0 -64
  386. package/src/dropdown/index.ts +0 -24
  387. package/src/dropdown/index.zh-CN.md +0 -68
  388. package/src/dropdown/props.ts +0 -95
  389. package/src/dropdown/style/button.ts +0 -26
  390. package/src/dropdown/style/index.ts +0 -458
  391. package/src/dropdown/style/status.ts +0 -25
  392. package/src/empty/empty.tsx +0 -77
  393. package/src/empty/index.en-US.md +0 -38
  394. package/src/empty/index.tsx +0 -91
  395. package/src/empty/index.zh-CN.md +0 -39
  396. package/src/empty/simple.tsx +0 -42
  397. package/src/empty/style/index.ts +0 -80
  398. package/src/flex/index.en-US.md +0 -32
  399. package/src/flex/index.tsx +0 -59
  400. package/src/flex/index.zh-CN.md +0 -33
  401. package/src/flex/interface.ts +0 -17
  402. package/src/flex/style/index.ts +0 -110
  403. package/src/flex/utils.ts +0 -67
  404. package/src/float-button/BackTop.tsx +0 -146
  405. package/src/float-button/FloatButton.tsx +0 -105
  406. package/src/float-button/FloatButtonContent.tsx +0 -38
  407. package/src/float-button/FloatButtonGroup.tsx +0 -142
  408. package/src/float-button/context.ts +0 -19
  409. package/src/float-button/index.en-US.md +0 -60
  410. package/src/float-button/index.ts +0 -41
  411. package/src/float-button/index.zh-CN.md +0 -63
  412. package/src/float-button/interface.ts +0 -71
  413. package/src/float-button/style/index.ts +0 -396
  414. package/src/float-button/util.ts +0 -10
  415. package/src/form/ErrorList.tsx +0 -66
  416. package/src/form/Form.tsx +0 -416
  417. package/src/form/FormItem.tsx +0 -545
  418. package/src/form/FormItemContext.ts +0 -128
  419. package/src/form/FormItemInput.tsx +0 -114
  420. package/src/form/FormItemLabel.tsx +0 -118
  421. package/src/form/context.ts +0 -78
  422. package/src/form/index.en-US.md +0 -255
  423. package/src/form/index.tsx +0 -31
  424. package/src/form/index.zh-CN.md +0 -253
  425. package/src/form/interface.ts +0 -227
  426. package/src/form/style/explain.ts +0 -56
  427. package/src/form/style/index.ts +0 -492
  428. package/src/form/useForm.ts +0 -394
  429. package/src/form/utils/asyncUtil.ts +0 -34
  430. package/src/form/utils/messages.ts +0 -49
  431. package/src/form/utils/typeUtil.ts +0 -7
  432. package/src/form/utils/useDebounce.ts +0 -18
  433. package/src/form/utils/validateUtil.ts +0 -244
  434. package/src/form/utils/valueUtil.ts +0 -85
  435. package/src/grid/Col.tsx +0 -160
  436. package/src/grid/Row.tsx +0 -199
  437. package/src/grid/context.ts +0 -25
  438. package/src/grid/index.en-US.md +0 -67
  439. package/src/grid/index.ts +0 -11
  440. package/src/grid/index.zh-CN.md +0 -64
  441. package/src/grid/style/index.ts +0 -179
  442. package/src/icon/index.en-US.md +0 -247
  443. package/src/icon/index.tsx +0 -11
  444. package/src/icon/index.zh-CN.md +0 -248
  445. package/src/image/PreviewGroup.tsx +0 -77
  446. package/src/image/index.en-US.md +0 -48
  447. package/src/image/index.tsx +0 -87
  448. package/src/image/index.zh-CN.md +0 -49
  449. package/src/image/style/index.ts +0 -322
  450. package/src/index.ts +0 -32
  451. package/src/input/ClearableLabeledInput.tsx +0 -126
  452. package/src/input/Group.tsx +0 -50
  453. package/src/input/Input.tsx +0 -206
  454. package/src/input/Password.tsx +0 -112
  455. package/src/input/ResizableTextArea.tsx +0 -189
  456. package/src/input/Search.tsx +0 -171
  457. package/src/input/TextArea.tsx +0 -317
  458. package/src/input/calculateNodeHeight.tsx +0 -175
  459. package/src/input/index.en-US.md +0 -101
  460. package/src/input/index.ts +0 -38
  461. package/src/input/index.zh-CN.md +0 -102
  462. package/src/input/inputProps.ts +0 -41
  463. package/src/input/style/index.ts +0 -971
  464. package/src/input/util.ts +0 -21
  465. package/src/input-number/index.en-US.md +0 -65
  466. package/src/input-number/index.tsx +0 -250
  467. package/src/input-number/index.zh-CN.md +0 -68
  468. package/src/input-number/src/InputNumber.tsx +0 -593
  469. package/src/input-number/src/StepHandler.tsx +0 -110
  470. package/src/input-number/src/hooks/useCursor.ts +0 -79
  471. package/src/input-number/src/hooks/useFrame.ts +0 -26
  472. package/src/input-number/src/utils/MiniDecimal.ts +0 -307
  473. package/src/input-number/src/utils/numberUtil.ts +0 -115
  474. package/src/input-number/src/utils/supportUtil.ts +0 -3
  475. package/src/input-number/style/index.tsx +0 -416
  476. package/src/layout/Sider.tsx +0 -235
  477. package/src/layout/index.en-US.md +0 -122
  478. package/src/layout/index.ts +0 -28
  479. package/src/layout/index.zh-CN.md +0 -123
  480. package/src/layout/injectionKey.ts +0 -12
  481. package/src/layout/layout.tsx +0 -113
  482. package/src/layout/style/index.ts +0 -226
  483. package/src/layout/style/light.ts +0 -27
  484. package/src/list/Item.tsx +0 -112
  485. package/src/list/ItemMeta.tsx +0 -52
  486. package/src/list/contextKey.ts +0 -8
  487. package/src/list/index.en-US.md +0 -73
  488. package/src/list/index.tsx +0 -344
  489. package/src/list/index.zh-CN.md +0 -74
  490. package/src/list/style/index.tsx +0 -354
  491. package/src/locale/LocaleReceiver.tsx +0 -87
  492. package/src/locale/ar_EG.ts +0 -120
  493. package/src/locale/az_AZ.ts +0 -48
  494. package/src/locale/bg_BG.ts +0 -46
  495. package/src/locale/bn_BD.ts +0 -134
  496. package/src/locale/by_BY.ts +0 -128
  497. package/src/locale/ca_ES.ts +0 -129
  498. package/src/locale/cs_CZ.ts +0 -57
  499. package/src/locale/da_DK.ts +0 -56
  500. package/src/locale/de_DE.ts +0 -127
  501. package/src/locale/el_GR.ts +0 -46
  502. package/src/locale/en_GB.ts +0 -108
  503. package/src/locale/en_US.ts +0 -146
  504. package/src/locale/es_ES.ts +0 -134
  505. package/src/locale/et_EE.ts +0 -136
  506. package/src/locale/fa_IR.ts +0 -134
  507. package/src/locale/fi_FI.ts +0 -56
  508. package/src/locale/fr_BE.ts +0 -50
  509. package/src/locale/fr_CA.ts +0 -62
  510. package/src/locale/fr_FR.ts +0 -131
  511. package/src/locale/ga_IE.ts +0 -127
  512. package/src/locale/gl_ES.ts +0 -114
  513. package/src/locale/he_IL.ts +0 -120
  514. package/src/locale/hi_IN.ts +0 -134
  515. package/src/locale/hr_HR.ts +0 -133
  516. package/src/locale/hu_HU.ts +0 -47
  517. package/src/locale/hy_AM.ts +0 -115
  518. package/src/locale/id_ID.ts +0 -48
  519. package/src/locale/index.tsx +0 -111
  520. package/src/locale/is_IS.ts +0 -46
  521. package/src/locale/it_IT.ts +0 -62
  522. package/src/locale/ja_JP.ts +0 -106
  523. package/src/locale/ka_GE.ts +0 -134
  524. package/src/locale/kk_KZ.ts +0 -128
  525. package/src/locale/km_KH.ts +0 -108
  526. package/src/locale/kmr_IQ.ts +0 -46
  527. package/src/locale/kn_IN.ts +0 -54
  528. package/src/locale/ko_KR.ts +0 -100
  529. package/src/locale/ku_IQ.ts +0 -50
  530. package/src/locale/lt_LT.ts +0 -125
  531. package/src/locale/lv_LV.ts +0 -46
  532. package/src/locale/mk_MK.ts +0 -61
  533. package/src/locale/ml_IN.ts +0 -134
  534. package/src/locale/mn_MN.ts +0 -46
  535. package/src/locale/ms_MY.ts +0 -66
  536. package/src/locale/nb_NO.ts +0 -128
  537. package/src/locale/ne_NP.ts +0 -47
  538. package/src/locale/nl_BE.ts +0 -134
  539. package/src/locale/nl_NL.ts +0 -134
  540. package/src/locale/pl_PL.ts +0 -136
  541. package/src/locale/pt_BR.ts +0 -139
  542. package/src/locale/pt_PT.ts +0 -47
  543. package/src/locale/ro_RO.ts +0 -134
  544. package/src/locale/ru_RU.ts +0 -143
  545. package/src/locale/sk_SK.ts +0 -135
  546. package/src/locale/sl_SI.ts +0 -46
  547. package/src/locale/sr_RS.ts +0 -134
  548. package/src/locale/sv_SE.ts +0 -134
  549. package/src/locale/ta_IN.ts +0 -66
  550. package/src/locale/th_TH.ts +0 -130
  551. package/src/locale/tr_TR.ts +0 -132
  552. package/src/locale/uk_UA.ts +0 -46
  553. package/src/locale/ur_PK.ts +0 -134
  554. package/src/locale/vi_VN.ts +0 -46
  555. package/src/locale/zh_CN.ts +0 -145
  556. package/src/locale/zh_HK.ts +0 -141
  557. package/src/locale/zh_TW.ts +0 -142
  558. package/src/locale-provider/LocaleReceiver.tsx +0 -5
  559. package/src/locale-provider/index.ts +0 -5
  560. package/src/mentions/index.en-US.md +0 -70
  561. package/src/mentions/index.tsx +0 -301
  562. package/src/mentions/index.zh-CN.md +0 -71
  563. package/src/mentions/style/index.ts +0 -232
  564. package/src/menu/index.en-US.md +0 -166
  565. package/src/menu/index.tsx +0 -56
  566. package/src/menu/index.zh-CN.md +0 -166
  567. package/src/menu/src/Divider.tsx +0 -29
  568. package/src/menu/src/InlineSubMenuList.tsx +0 -56
  569. package/src/menu/src/ItemGroup.tsx +0 -48
  570. package/src/menu/src/Menu.tsx +0 -529
  571. package/src/menu/src/MenuItem.tsx +0 -272
  572. package/src/menu/src/OverrideContext.ts +0 -30
  573. package/src/menu/src/PopupTrigger.tsx +0 -117
  574. package/src/menu/src/SubMenu.tsx +0 -376
  575. package/src/menu/src/SubMenuList.tsx +0 -25
  576. package/src/menu/src/hooks/useDirectionStyle.ts +0 -16
  577. package/src/menu/src/hooks/useItems.tsx +0 -137
  578. package/src/menu/src/hooks/useKeyPath.ts +0 -46
  579. package/src/menu/src/hooks/useMenuContext.ts +0 -144
  580. package/src/menu/src/interface.ts +0 -116
  581. package/src/menu/src/placements.ts +0 -52
  582. package/src/menu/style/horizontal.ts +0 -57
  583. package/src/menu/style/index.ts +0 -585
  584. package/src/menu/style/rtl.ts +0 -28
  585. package/src/menu/style/theme.ts +0 -264
  586. package/src/menu/style/vertical.ts +0 -231
  587. package/src/message/PurePanel.tsx +0 -75
  588. package/src/message/index.en-US.md +0 -119
  589. package/src/message/index.tsx +0 -263
  590. package/src/message/index.zh-CN.md +0 -122
  591. package/src/message/interface.ts +0 -49
  592. package/src/message/style/index.ts +0 -180
  593. package/src/message/useMessage.tsx +0 -231
  594. package/src/modal/ConfirmDialog.tsx +0 -232
  595. package/src/modal/Modal.tsx +0 -262
  596. package/src/modal/confirm.tsx +0 -146
  597. package/src/modal/destroyFns.ts +0 -2
  598. package/src/modal/index.en-US.md +0 -161
  599. package/src/modal/index.tsx +0 -84
  600. package/src/modal/index.zh-CN.md +0 -165
  601. package/src/modal/locale.ts +0 -28
  602. package/src/modal/style/index.ts +0 -466
  603. package/src/modal/useModal/HookModal.tsx +0 -75
  604. package/src/modal/useModal/index.tsx +0 -151
  605. package/src/notification/PurePanel.tsx +0 -122
  606. package/src/notification/index.en-US.md +0 -108
  607. package/src/notification/index.tsx +0 -256
  608. package/src/notification/index.zh-CN.md +0 -109
  609. package/src/notification/interface.ts +0 -62
  610. package/src/notification/style/index.ts +0 -287
  611. package/src/notification/style/placement.ts +0 -81
  612. package/src/notification/useNotification.tsx +0 -150
  613. package/src/notification/util.ts +0 -74
  614. package/src/page-header/index.en-US.md +0 -34
  615. package/src/page-header/index.tsx +0 -196
  616. package/src/page-header/index.zh-CN.md +0 -34
  617. package/src/page-header/style/index.ts +0 -155
  618. package/src/pagination/Pagination.tsx +0 -169
  619. package/src/pagination/Select.tsx +0 -38
  620. package/src/pagination/index.en-US.md +0 -48
  621. package/src/pagination/index.ts +0 -7
  622. package/src/pagination/index.zh-CN.md +0 -42
  623. package/src/pagination/style/index.tsx +0 -717
  624. package/src/popconfirm/index.en-US.md +0 -47
  625. package/src/popconfirm/index.tsx +0 -243
  626. package/src/popconfirm/index.zh-CN.md +0 -46
  627. package/src/popconfirm/style/index.ts +0 -89
  628. package/src/popover/index.en-US.md +0 -28
  629. package/src/popover/index.tsx +0 -81
  630. package/src/popover/index.zh-CN.md +0 -29
  631. package/src/popover/style/index.ts +0 -183
  632. package/src/progress/Circle.tsx +0 -110
  633. package/src/progress/Line.tsx +0 -163
  634. package/src/progress/Steps.tsx +0 -67
  635. package/src/progress/index.en-US.md +0 -56
  636. package/src/progress/index.ts +0 -6
  637. package/src/progress/index.zh-CN.md +0 -57
  638. package/src/progress/progress.tsx +0 -163
  639. package/src/progress/props.ts +0 -52
  640. package/src/progress/style/index.ts +0 -274
  641. package/src/progress/utils.ts +0 -97
  642. package/src/qrcode/QRCode.tsx +0 -354
  643. package/src/qrcode/index.en-US.md +0 -43
  644. package/src/qrcode/index.tsx +0 -117
  645. package/src/qrcode/index.zh-CN.md +0 -44
  646. package/src/qrcode/interface.ts +0 -51
  647. package/src/qrcode/qrcodegen.ts +0 -969
  648. package/src/qrcode/style/index.ts +0 -65
  649. package/src/radio/Group.tsx +0 -148
  650. package/src/radio/Radio.tsx +0 -127
  651. package/src/radio/RadioButton.tsx +0 -23
  652. package/src/radio/context.ts +0 -24
  653. package/src/radio/index.en-US.md +0 -54
  654. package/src/radio/index.ts +0 -27
  655. package/src/radio/index.zh-CN.md +0 -55
  656. package/src/radio/interface.ts +0 -33
  657. package/src/radio/style/index.tsx +0 -545
  658. package/src/rate/Star.tsx +0 -99
  659. package/src/rate/index.en-US.md +0 -44
  660. package/src/rate/index.tsx +0 -254
  661. package/src/rate/index.zh-CN.md +0 -45
  662. package/src/rate/style/index.ts +0 -135
  663. package/src/rate/util.ts +0 -40
  664. package/src/result/index.en-US.md +0 -23
  665. package/src/result/index.tsx +0 -122
  666. package/src/result/index.zh-CN.md +0 -24
  667. package/src/result/noFound.tsx +0 -289
  668. package/src/result/serverError.tsx +0 -331
  669. package/src/result/style/index.tsx +0 -157
  670. package/src/result/unauthorized.tsx +0 -280
  671. package/src/row/index.ts +0 -6
  672. package/src/row/style/index.ts +0 -4
  673. package/src/segmented/index.en-US.md +0 -50
  674. package/src/segmented/index.ts +0 -6
  675. package/src/segmented/index.zh-CN.md +0 -53
  676. package/src/segmented/src/MotionThumb.tsx +0 -162
  677. package/src/segmented/src/index.ts +0 -5
  678. package/src/segmented/src/segmented.tsx +0 -191
  679. package/src/segmented/style/index.ts +0 -216
  680. package/src/select/index.en-US.md +0 -128
  681. package/src/select/index.tsx +0 -318
  682. package/src/select/index.zh-CN.md +0 -128
  683. package/src/select/style/dropdown.ts +0 -166
  684. package/src/select/style/index.ts +0 -342
  685. package/src/select/style/multiple.ts +0 -239
  686. package/src/select/style/single.ts +0 -192
  687. package/src/select/utils/iconUtil.tsx +0 -63
  688. package/src/skeleton/Avatar.tsx +0 -49
  689. package/src/skeleton/Button.tsx +0 -50
  690. package/src/skeleton/Element.tsx +0 -43
  691. package/src/skeleton/Image.tsx +0 -43
  692. package/src/skeleton/Input.tsx +0 -48
  693. package/src/skeleton/Paragraph.tsx +0 -44
  694. package/src/skeleton/Skeleton.tsx +0 -174
  695. package/src/skeleton/Title.tsx +0 -24
  696. package/src/skeleton/index.en-US.md +0 -64
  697. package/src/skeleton/index.tsx +0 -42
  698. package/src/skeleton/index.zh-CN.md +0 -65
  699. package/src/skeleton/style/index.ts +0 -388
  700. package/src/slider/SliderTooltip.tsx +0 -50
  701. package/src/slider/index.en-US.md +0 -51
  702. package/src/slider/index.tsx +0 -256
  703. package/src/slider/index.zh-CN.md +0 -50
  704. package/src/slider/style/index.tsx +0 -346
  705. package/src/space/Compact.tsx +0 -136
  706. package/src/space/index.en-US.md +0 -46
  707. package/src/space/index.tsx +0 -162
  708. package/src/space/index.zh-CN.md +0 -52
  709. package/src/space/style/compact.tsx +0 -30
  710. package/src/space/style/index.tsx +0 -54
  711. package/src/spin/Spin.tsx +0 -133
  712. package/src/spin/index.en-US.md +0 -36
  713. package/src/spin/index.ts +0 -19
  714. package/src/spin/index.zh-CN.md +0 -37
  715. package/src/spin/style/index.ts +0 -241
  716. package/src/statistic/Countdown.tsx +0 -103
  717. package/src/statistic/Number.tsx +0 -54
  718. package/src/statistic/Statistic.tsx +0 -89
  719. package/src/statistic/index.en-US.md +0 -47
  720. package/src/statistic/index.ts +0 -21
  721. package/src/statistic/index.zh-CN.md +0 -48
  722. package/src/statistic/style/index.tsx +0 -69
  723. package/src/statistic/utils.ts +0 -69
  724. package/src/steps/index.en-US.md +0 -58
  725. package/src/steps/index.tsx +0 -170
  726. package/src/steps/index.zh-CN.md +0 -63
  727. package/src/steps/style/custom-icon.ts +0 -36
  728. package/src/steps/style/index.tsx +0 -408
  729. package/src/steps/style/inline.ts +0 -124
  730. package/src/steps/style/label-placement.ts +0 -56
  731. package/src/steps/style/nav.ts +0 -146
  732. package/src/steps/style/progress-dot.ts +0 -133
  733. package/src/steps/style/progress.ts +0 -60
  734. package/src/steps/style/rtl.ts +0 -47
  735. package/src/steps/style/small.ts +0 -68
  736. package/src/steps/style/vertical.ts +0 -72
  737. package/src/style/compact-item-vertical.ts +0 -57
  738. package/src/style/compact-item.ts +0 -102
  739. package/src/style/index.ts +0 -138
  740. package/src/style/motion/collapse.ts +0 -24
  741. package/src/style/motion/fade.ts +0 -49
  742. package/src/style/motion/index.ts +0 -77
  743. package/src/style/motion/motion.ts +0 -51
  744. package/src/style/motion/move.ts +0 -163
  745. package/src/style/motion/slide.ts +0 -166
  746. package/src/style/motion/zoom.ts +0 -230
  747. package/src/style/operationUnit.ts +0 -20
  748. package/src/style/placementArrow.ts +0 -257
  749. package/src/style/presetColor.tsx +0 -34
  750. package/src/style/reset.css +0 -253
  751. package/src/style/roundedArrow.ts +0 -71
  752. package/src/switch/index.en-US.md +0 -42
  753. package/src/switch/index.tsx +0 -209
  754. package/src/switch/index.zh-CN.md +0 -43
  755. package/src/switch/style/index.ts +0 -354
  756. package/src/table/Column.tsx +0 -18
  757. package/src/table/ColumnGroup.tsx +0 -16
  758. package/src/table/ExpandIcon.tsx +0 -41
  759. package/src/table/Table.tsx +0 -689
  760. package/src/table/context.ts +0 -45
  761. package/src/table/hooks/useColumns.tsx +0 -55
  762. package/src/table/hooks/useFilter/FilterDropdown.tsx +0 -576
  763. package/src/table/hooks/useFilter/FilterSearch.tsx +0 -41
  764. package/src/table/hooks/useFilter/FilterWrapper.tsx +0 -16
  765. package/src/table/hooks/useFilter/index.tsx +0 -300
  766. package/src/table/hooks/useLazyKVMap.ts +0 -51
  767. package/src/table/hooks/usePagination.ts +0 -92
  768. package/src/table/hooks/useSelection.tsx +0 -690
  769. package/src/table/hooks/useSorter.tsx +0 -450
  770. package/src/table/hooks/useTitleColumns.tsx +0 -30
  771. package/src/table/index.en-US.md +0 -306
  772. package/src/table/index.tsx +0 -56
  773. package/src/table/index.zh-CN.md +0 -313
  774. package/src/table/interface.tsx +0 -235
  775. package/src/table/style/bordered.ts +0 -159
  776. package/src/table/style/ellipsis.ts +0 -37
  777. package/src/table/style/empty.ts +0 -22
  778. package/src/table/style/expand.ts +0 -152
  779. package/src/table/style/filter.ts +0 -172
  780. package/src/table/style/fixed.ts +0 -132
  781. package/src/table/style/index.ts +0 -378
  782. package/src/table/style/pagination.ts +0 -39
  783. package/src/table/style/radius.ts +0 -57
  784. package/src/table/style/resize.ts +0 -52
  785. package/src/table/style/rtl.ts +0 -39
  786. package/src/table/style/selection.ts +0 -76
  787. package/src/table/style/size.ts +0 -68
  788. package/src/table/style/sorter.ts +0 -101
  789. package/src/table/style/sticky.ts +0 -59
  790. package/src/table/style/summary.ts +0 -29
  791. package/src/table/util.ts +0 -62
  792. package/src/tabs/index.en-US.md +0 -69
  793. package/src/tabs/index.ts +0 -21
  794. package/src/tabs/index.zh-CN.md +0 -71
  795. package/src/tabs/src/TabContext.ts +0 -35
  796. package/src/tabs/src/TabNavList/AddButton.tsx +0 -50
  797. package/src/tabs/src/TabNavList/OperationNode.tsx +0 -253
  798. package/src/tabs/src/TabNavList/TabNode.tsx +0 -140
  799. package/src/tabs/src/TabNavList/index.tsx +0 -581
  800. package/src/tabs/src/TabPanelList/TabPane.tsx +0 -81
  801. package/src/tabs/src/TabPanelList/index.tsx +0 -68
  802. package/src/tabs/src/Tabs.tsx +0 -387
  803. package/src/tabs/src/hooks/useOffsets.ts +0 -41
  804. package/src/tabs/src/hooks/useRaf.ts +0 -53
  805. package/src/tabs/src/hooks/useSyncState.ts +0 -21
  806. package/src/tabs/src/hooks/useTouchMove.ts +0 -141
  807. package/src/tabs/src/index.ts +0 -11
  808. package/src/tabs/src/interface.ts +0 -48
  809. package/src/tabs/style/index.ts +0 -906
  810. package/src/tabs/style/motion.ts +0 -46
  811. package/src/tag/CheckableTag.tsx +0 -56
  812. package/src/tag/index.en-US.md +0 -44
  813. package/src/tag/index.tsx +0 -175
  814. package/src/tag/index.zh-CN.md +0 -45
  815. package/src/tag/style/index.ts +0 -184
  816. package/src/theme/convertLegacyToken.ts +0 -1107
  817. package/src/theme/index.ts +0 -30
  818. package/src/theme/interface/alias.ts +0 -153
  819. package/src/theme/interface/components.ts +0 -121
  820. package/src/theme/interface/index.ts +0 -25
  821. package/src/theme/interface/maps/colors.ts +0 -438
  822. package/src/theme/interface/maps/font.ts +0 -49
  823. package/src/theme/interface/maps/index.ts +0 -34
  824. package/src/theme/interface/maps/size.ts +0 -68
  825. package/src/theme/interface/maps/style.ts +0 -38
  826. package/src/theme/interface/presetColors.ts +0 -25
  827. package/src/theme/interface/seeds.ts +0 -221
  828. package/src/theme/internal.ts +0 -145
  829. package/src/theme/themes/ColorMap.ts +0 -20
  830. package/src/theme/themes/compact/genCompactSizeMapToken.ts +0 -19
  831. package/src/theme/themes/compact/index.ts +0 -27
  832. package/src/theme/themes/dark/colorAlgorithm.ts +0 -9
  833. package/src/theme/themes/dark/colors.ts +0 -54
  834. package/src/theme/themes/dark/index.ts +0 -45
  835. package/src/theme/themes/default/colorAlgorithm.ts +0 -9
  836. package/src/theme/themes/default/colors.ts +0 -54
  837. package/src/theme/themes/default/index.ts +0 -49
  838. package/src/theme/themes/seed.ts +0 -79
  839. package/src/theme/themes/shared/genColorMapToken.ts +0 -93
  840. package/src/theme/themes/shared/genCommonMapToken.ts +0 -19
  841. package/src/theme/themes/shared/genControlHeight.ts +0 -13
  842. package/src/theme/themes/shared/genFontMapToken.ts +0 -33
  843. package/src/theme/themes/shared/genFontSizes.ts +0 -24
  844. package/src/theme/themes/shared/genRadius.ts +0 -59
  845. package/src/theme/themes/shared/genSizeMapToken.ts +0 -17
  846. package/src/theme/util/alias.ts +0 -202
  847. package/src/theme/util/genComponentStyleHook.ts +0 -110
  848. package/src/theme/util/getAlphaColor.ts +0 -29
  849. package/src/theme/util/statistic.ts +0 -71
  850. package/src/time-picker/date-fns.tsx +0 -27
  851. package/src/time-picker/dayjs.tsx +0 -30
  852. package/src/time-picker/index.en-US.md +0 -95
  853. package/src/time-picker/index.tsx +0 -9
  854. package/src/time-picker/index.zh-CN.md +0 -97
  855. package/src/time-picker/locale/ar_EG.ts +0 -7
  856. package/src/time-picker/locale/az_AZ.ts +0 -7
  857. package/src/time-picker/locale/bg_BG.ts +0 -7
  858. package/src/time-picker/locale/bn_BD.ts +0 -8
  859. package/src/time-picker/locale/by_BY.ts +0 -8
  860. package/src/time-picker/locale/ca_ES.ts +0 -7
  861. package/src/time-picker/locale/cs_CZ.ts +0 -7
  862. package/src/time-picker/locale/da_DK.ts +0 -8
  863. package/src/time-picker/locale/de_DE.ts +0 -7
  864. package/src/time-picker/locale/el_GR.ts +0 -7
  865. package/src/time-picker/locale/en_GB.ts +0 -7
  866. package/src/time-picker/locale/en_US.ts +0 -8
  867. package/src/time-picker/locale/es_ES.ts +0 -7
  868. package/src/time-picker/locale/et_EE.ts +0 -7
  869. package/src/time-picker/locale/fa_IR.ts +0 -8
  870. package/src/time-picker/locale/fi_FI.ts +0 -7
  871. package/src/time-picker/locale/fr_BE.ts +0 -7
  872. package/src/time-picker/locale/fr_CA.ts +0 -8
  873. package/src/time-picker/locale/fr_FR.ts +0 -8
  874. package/src/time-picker/locale/ga_IE.ts +0 -8
  875. package/src/time-picker/locale/gl_ES.ts +0 -7
  876. package/src/time-picker/locale/he_IL.ts +0 -7
  877. package/src/time-picker/locale/hi_IN.ts +0 -8
  878. package/src/time-picker/locale/hr_HR.ts +0 -8
  879. package/src/time-picker/locale/hu_HU.ts +0 -7
  880. package/src/time-picker/locale/id_ID.ts +0 -7
  881. package/src/time-picker/locale/is_IS.ts +0 -7
  882. package/src/time-picker/locale/it_IT.ts +0 -7
  883. package/src/time-picker/locale/ja_JP.ts +0 -8
  884. package/src/time-picker/locale/ka_GE.ts +0 -8
  885. package/src/time-picker/locale/kk_KZ.ts +0 -8
  886. package/src/time-picker/locale/km_KH.ts +0 -8
  887. package/src/time-picker/locale/kmr_IQ.ts +0 -7
  888. package/src/time-picker/locale/kn_IN.ts +0 -7
  889. package/src/time-picker/locale/ko_KR.ts +0 -8
  890. package/src/time-picker/locale/lt_LT.ts +0 -8
  891. package/src/time-picker/locale/lv_LV.ts +0 -7
  892. package/src/time-picker/locale/mk_MK.ts +0 -7
  893. package/src/time-picker/locale/ml_IN.ts +0 -8
  894. package/src/time-picker/locale/mn_MN.ts +0 -7
  895. package/src/time-picker/locale/ms_MY.ts +0 -7
  896. package/src/time-picker/locale/nb_NO.ts +0 -8
  897. package/src/time-picker/locale/nl_BE.ts +0 -8
  898. package/src/time-picker/locale/nl_NL.ts +0 -8
  899. package/src/time-picker/locale/pl_PL.ts +0 -7
  900. package/src/time-picker/locale/pt_BR.ts +0 -7
  901. package/src/time-picker/locale/pt_PT.ts +0 -7
  902. package/src/time-picker/locale/ro_RO.ts +0 -7
  903. package/src/time-picker/locale/ru_RU.ts +0 -9
  904. package/src/time-picker/locale/sk_SK.ts +0 -7
  905. package/src/time-picker/locale/sl_SI.ts +0 -7
  906. package/src/time-picker/locale/sr_RS.ts +0 -8
  907. package/src/time-picker/locale/sv_SE.ts +0 -7
  908. package/src/time-picker/locale/ta_IN.ts +0 -7
  909. package/src/time-picker/locale/th_TH.ts +0 -7
  910. package/src/time-picker/locale/tr_TR.ts +0 -8
  911. package/src/time-picker/locale/uk_UA.ts +0 -7
  912. package/src/time-picker/locale/ur_PK.ts +0 -8
  913. package/src/time-picker/locale/vi_VN.ts +0 -7
  914. package/src/time-picker/locale/zh_CN.ts +0 -8
  915. package/src/time-picker/locale/zh_TW.ts +0 -7
  916. package/src/time-picker/moment.tsx +0 -29
  917. package/src/time-picker/time-picker.tsx +0 -247
  918. package/src/timeline/Timeline.tsx +0 -116
  919. package/src/timeline/TimelineItem.tsx +0 -64
  920. package/src/timeline/index.en-US.md +0 -47
  921. package/src/timeline/index.tsx +0 -21
  922. package/src/timeline/index.zh-CN.md +0 -48
  923. package/src/timeline/style/index.tsx +0 -237
  924. package/src/tooltip/Tooltip.tsx +0 -322
  925. package/src/tooltip/abstractTooltipProps.ts +0 -61
  926. package/src/tooltip/index.en-US.md +0 -52
  927. package/src/tooltip/index.ts +0 -14
  928. package/src/tooltip/index.zh-CN.md +0 -53
  929. package/src/tooltip/style/index.ts +0 -158
  930. package/src/tooltip/util.ts +0 -23
  931. package/src/tour/index.en-US.md +0 -60
  932. package/src/tour/index.tsx +0 -92
  933. package/src/tour/index.zh-CN.md +0 -61
  934. package/src/tour/interface.ts +0 -43
  935. package/src/tour/panelRender.tsx +0 -152
  936. package/src/tour/style/index.ts +0 -251
  937. package/src/tour/useMergedType.ts +0 -39
  938. package/src/transfer/ListBody.tsx +0 -170
  939. package/src/transfer/ListItem.tsx +0 -97
  940. package/src/transfer/index.en-US.md +0 -104
  941. package/src/transfer/index.tsx +0 -455
  942. package/src/transfer/index.zh-CN.md +0 -105
  943. package/src/transfer/interface.ts +0 -8
  944. package/src/transfer/list.tsx +0 -424
  945. package/src/transfer/operation.tsx +0 -68
  946. package/src/transfer/search.tsx +0 -52
  947. package/src/transfer/style/index.tsx +0 -376
  948. package/src/tree/DirectoryTree.tsx +0 -309
  949. package/src/tree/Tree.tsx +0 -277
  950. package/src/tree/breakchange.md +0 -1
  951. package/src/tree/index.en-US.md +0 -93
  952. package/src/tree/index.tsx +0 -38
  953. package/src/tree/index.zh-CN.md +0 -94
  954. package/src/tree/style/index.ts +0 -482
  955. package/src/tree/utils/dictUtil.ts +0 -100
  956. package/src/tree/utils/dropIndicator.tsx +0 -33
  957. package/src/tree/utils/iconUtil.tsx +0 -67
  958. package/src/tree-select/index.en-US.md +0 -100
  959. package/src/tree-select/index.tsx +0 -364
  960. package/src/tree-select/index.zh-CN.md +0 -95
  961. package/src/tree-select/style/index.tsx +0 -75
  962. package/src/typography/Base.tsx +0 -626
  963. package/src/typography/Editable.tsx +0 -161
  964. package/src/typography/Link.tsx +0 -37
  965. package/src/typography/Paragraph.tsx +0 -24
  966. package/src/typography/Text.tsx +0 -45
  967. package/src/typography/Title.tsx +0 -40
  968. package/src/typography/Typography.tsx +0 -58
  969. package/src/typography/index.en-US.md +0 -146
  970. package/src/typography/index.tsx +0 -41
  971. package/src/typography/index.zh-CN.md +0 -147
  972. package/src/typography/style/index.tsx +0 -128
  973. package/src/typography/style/mixins.tsx +0 -262
  974. package/src/typography/util.tsx +0 -227
  975. package/src/upload/Dragger.tsx +0 -24
  976. package/src/upload/Upload.tsx +0 -458
  977. package/src/upload/UploadList/ListItem.tsx +0 -306
  978. package/src/upload/UploadList/index.tsx +0 -264
  979. package/src/upload/index.en-US.md +0 -139
  980. package/src/upload/index.tsx +0 -19
  981. package/src/upload/index.zh-CN.md +0 -140
  982. package/src/upload/interface.tsx +0 -195
  983. package/src/upload/style/dragger.ts +0 -76
  984. package/src/upload/style/index.ts +0 -66
  985. package/src/upload/style/list.ts +0 -129
  986. package/src/upload/style/motion.ts +0 -52
  987. package/src/upload/style/picture.ts +0 -228
  988. package/src/upload/style/rtl.ts +0 -15
  989. package/src/upload/utils.tsx +0 -124
  990. package/src/vc-align/Align.tsx +0 -209
  991. package/src/vc-align/hooks/useBuffer.tsx +0 -39
  992. package/src/vc-align/index.ts +0 -4
  993. package/src/vc-align/interface.ts +0 -60
  994. package/src/vc-align/util.ts +0 -61
  995. package/src/vc-cascader/Cascader.tsx +0 -585
  996. package/src/vc-cascader/OptionList/Checkbox.tsx +0 -44
  997. package/src/vc-cascader/OptionList/Column.tsx +0 -182
  998. package/src/vc-cascader/OptionList/index.tsx +0 -246
  999. package/src/vc-cascader/OptionList/useActive.ts +0 -32
  1000. package/src/vc-cascader/OptionList/useKeyboard.ts +0 -194
  1001. package/src/vc-cascader/context.ts +0 -37
  1002. package/src/vc-cascader/hooks/useDisplayValues.ts +0 -64
  1003. package/src/vc-cascader/hooks/useEntities.ts +0 -37
  1004. package/src/vc-cascader/hooks/useMissingValues.ts +0 -27
  1005. package/src/vc-cascader/hooks/useSearchConfig.ts +0 -41
  1006. package/src/vc-cascader/hooks/useSearchOptions.ts +0 -78
  1007. package/src/vc-cascader/index.tsx +0 -16
  1008. package/src/vc-cascader/utils/commonUtil.ts +0 -51
  1009. package/src/vc-cascader/utils/treeUtil.ts +0 -60
  1010. package/src/vc-checkbox/Checkbox.tsx +0 -151
  1011. package/src/vc-dialog/Content.tsx +0 -158
  1012. package/src/vc-dialog/Dialog.tsx +0 -203
  1013. package/src/vc-dialog/DialogWrap.tsx +0 -78
  1014. package/src/vc-dialog/IDialogPropTypes.ts +0 -50
  1015. package/src/vc-dialog/Mask.tsx +0 -25
  1016. package/src/vc-dialog/index.ts +0 -7
  1017. package/src/vc-dialog/util.ts +0 -46
  1018. package/src/vc-drawer/index.ts +0 -4
  1019. package/src/vc-drawer/src/DrawerChild.tsx +0 -258
  1020. package/src/vc-drawer/src/DrawerWrapper.tsx +0 -101
  1021. package/src/vc-drawer/src/IDrawerPropTypes.ts +0 -60
  1022. package/src/vc-drawer/src/utils.ts +0 -112
  1023. package/src/vc-dropdown/Dropdown.tsx +0 -145
  1024. package/src/vc-dropdown/index.ts +0 -4
  1025. package/src/vc-dropdown/placements.ts +0 -47
  1026. package/src/vc-image/index.ts +0 -5
  1027. package/src/vc-image/src/Image.tsx +0 -308
  1028. package/src/vc-image/src/Preview.tsx +0 -422
  1029. package/src/vc-image/src/PreviewGroup.tsx +0 -212
  1030. package/src/vc-image/src/getFixScaleEleTransPosition.ts +0 -61
  1031. package/src/vc-image/src/hooks/useFrameSetState.ts +0 -32
  1032. package/src/vc-input/BaseInput.tsx +0 -153
  1033. package/src/vc-input/Input.tsx +0 -255
  1034. package/src/vc-input/inputProps.ts +0 -123
  1035. package/src/vc-input/utils/commonUtils.ts +0 -105
  1036. package/src/vc-input/utils/types.ts +0 -3
  1037. package/src/vc-mentions/index.ts +0 -6
  1038. package/src/vc-mentions/src/DropdownMenu.tsx +0 -86
  1039. package/src/vc-mentions/src/KeywordTrigger.tsx +0 -102
  1040. package/src/vc-mentions/src/Mentions.tsx +0 -306
  1041. package/src/vc-mentions/src/MentionsContext.ts +0 -16
  1042. package/src/vc-mentions/src/Option.tsx +0 -31
  1043. package/src/vc-mentions/src/mentionsProps.ts +0 -52
  1044. package/src/vc-mentions/src/util.ts +0 -124
  1045. package/src/vc-notification/HookNotification.tsx +0 -231
  1046. package/src/vc-notification/Notice.tsx +0 -139
  1047. package/src/vc-notification/Notification.tsx +0 -279
  1048. package/src/vc-notification/index.ts +0 -6
  1049. package/src/vc-notification/useNotification.tsx +0 -182
  1050. package/src/vc-overflow/Item.tsx +0 -100
  1051. package/src/vc-overflow/Overflow.tsx +0 -376
  1052. package/src/vc-overflow/RawItem.tsx +0 -54
  1053. package/src/vc-overflow/context.ts +0 -49
  1054. package/src/vc-overflow/index.ts +0 -6
  1055. package/src/vc-pagination/KeyCode.ts +0 -14
  1056. package/src/vc-pagination/Options.tsx +0 -172
  1057. package/src/vc-pagination/Pager.tsx +0 -69
  1058. package/src/vc-pagination/Pagination.tsx +0 -683
  1059. package/src/vc-pagination/index.ts +0 -2
  1060. package/src/vc-pagination/locale/ar_EG.ts +0 -15
  1061. package/src/vc-pagination/locale/az_AZ.ts +0 -15
  1062. package/src/vc-pagination/locale/bg_BG.ts +0 -15
  1063. package/src/vc-pagination/locale/bn_BD.ts +0 -15
  1064. package/src/vc-pagination/locale/by_BY.ts +0 -14
  1065. package/src/vc-pagination/locale/ca_ES.ts +0 -15
  1066. package/src/vc-pagination/locale/cs_CZ.ts +0 -15
  1067. package/src/vc-pagination/locale/da_DK.ts +0 -15
  1068. package/src/vc-pagination/locale/de_DE.ts +0 -15
  1069. package/src/vc-pagination/locale/el_GR.ts +0 -15
  1070. package/src/vc-pagination/locale/en_GB.ts +0 -15
  1071. package/src/vc-pagination/locale/en_US.ts +0 -15
  1072. package/src/vc-pagination/locale/es_ES.ts +0 -15
  1073. package/src/vc-pagination/locale/et_EE.ts +0 -15
  1074. package/src/vc-pagination/locale/fa_IR.ts +0 -15
  1075. package/src/vc-pagination/locale/fi_FI.ts +0 -15
  1076. package/src/vc-pagination/locale/fr_BE.ts +0 -15
  1077. package/src/vc-pagination/locale/fr_CA.ts +0 -15
  1078. package/src/vc-pagination/locale/fr_FR.ts +0 -15
  1079. package/src/vc-pagination/locale/ga_IE.ts +0 -15
  1080. package/src/vc-pagination/locale/gl_ES.ts +0 -15
  1081. package/src/vc-pagination/locale/he_IL.ts +0 -15
  1082. package/src/vc-pagination/locale/hi_IN.ts +0 -15
  1083. package/src/vc-pagination/locale/hr_HR.ts +0 -15
  1084. package/src/vc-pagination/locale/hu_HU.ts +0 -15
  1085. package/src/vc-pagination/locale/id_ID.ts +0 -15
  1086. package/src/vc-pagination/locale/is_IS.ts +0 -15
  1087. package/src/vc-pagination/locale/it_IT.ts +0 -15
  1088. package/src/vc-pagination/locale/ja_JP.ts +0 -15
  1089. package/src/vc-pagination/locale/ka_GE.ts +0 -14
  1090. package/src/vc-pagination/locale/kk_KZ.ts +0 -15
  1091. package/src/vc-pagination/locale/km_KH.ts +0 -15
  1092. package/src/vc-pagination/locale/kmr_IQ.ts +0 -15
  1093. package/src/vc-pagination/locale/kn_IN.ts +0 -15
  1094. package/src/vc-pagination/locale/ko_KR.ts +0 -15
  1095. package/src/vc-pagination/locale/lt_LT.ts +0 -15
  1096. package/src/vc-pagination/locale/lv_LV.ts +0 -15
  1097. package/src/vc-pagination/locale/mk_MK.ts +0 -15
  1098. package/src/vc-pagination/locale/ml_IN.ts +0 -15
  1099. package/src/vc-pagination/locale/mm_MM.ts +0 -15
  1100. package/src/vc-pagination/locale/mn_MN.ts +0 -15
  1101. package/src/vc-pagination/locale/ms_MY.ts +0 -15
  1102. package/src/vc-pagination/locale/nb_NO.ts +0 -14
  1103. package/src/vc-pagination/locale/nl_BE.ts +0 -15
  1104. package/src/vc-pagination/locale/nl_NL.ts +0 -15
  1105. package/src/vc-pagination/locale/pa_IN.ts +0 -15
  1106. package/src/vc-pagination/locale/pb_IN.ts +0 -15
  1107. package/src/vc-pagination/locale/pl_PL.ts +0 -15
  1108. package/src/vc-pagination/locale/pt_BR.ts +0 -15
  1109. package/src/vc-pagination/locale/pt_PT.ts +0 -15
  1110. package/src/vc-pagination/locale/ro_RO.ts +0 -15
  1111. package/src/vc-pagination/locale/ru_RU.ts +0 -15
  1112. package/src/vc-pagination/locale/sk_SK.ts +0 -15
  1113. package/src/vc-pagination/locale/sl_SI.ts +0 -15
  1114. package/src/vc-pagination/locale/sr_RS.ts +0 -14
  1115. package/src/vc-pagination/locale/sv_SE.ts +0 -15
  1116. package/src/vc-pagination/locale/ta_IN.ts +0 -15
  1117. package/src/vc-pagination/locale/th_TH.ts +0 -15
  1118. package/src/vc-pagination/locale/tr_TR.ts +0 -15
  1119. package/src/vc-pagination/locale/ug_CN.ts +0 -14
  1120. package/src/vc-pagination/locale/uk_UA.ts +0 -15
  1121. package/src/vc-pagination/locale/ur_PK.ts +0 -15
  1122. package/src/vc-pagination/locale/vi_VN.ts +0 -15
  1123. package/src/vc-pagination/locale/zh_CN.ts +0 -15
  1124. package/src/vc-pagination/locale/zh_TW.ts +0 -15
  1125. package/src/vc-picker/PanelContext.tsx +0 -39
  1126. package/src/vc-picker/Picker.tsx +0 -641
  1127. package/src/vc-picker/PickerPanel.tsx +0 -609
  1128. package/src/vc-picker/PickerTrigger.tsx +0 -104
  1129. package/src/vc-picker/PresetPanel.tsx +0 -44
  1130. package/src/vc-picker/RangeContext.tsx +0 -76
  1131. package/src/vc-picker/RangePicker.tsx +0 -1324
  1132. package/src/vc-picker/generate/dateFns.ts +0 -140
  1133. package/src/vc-picker/generate/dayjs.ts +0 -250
  1134. package/src/vc-picker/generate/index.ts +0 -52
  1135. package/src/vc-picker/generate/moment.ts +0 -159
  1136. package/src/vc-picker/hooks/useCellClassName.ts +0 -97
  1137. package/src/vc-picker/hooks/useHoverValue.ts +0 -47
  1138. package/src/vc-picker/hooks/useMergeProps.ts +0 -8
  1139. package/src/vc-picker/hooks/usePickerInput.ts +0 -177
  1140. package/src/vc-picker/hooks/usePresets.ts +0 -30
  1141. package/src/vc-picker/hooks/useRangeDisabled.ts +0 -115
  1142. package/src/vc-picker/hooks/useRangeViewDates.ts +0 -129
  1143. package/src/vc-picker/hooks/useTextValueMapping.ts +0 -37
  1144. package/src/vc-picker/hooks/useValueTexts.ts +0 -52
  1145. package/src/vc-picker/index.tsx +0 -12
  1146. package/src/vc-picker/interface.ts +0 -116
  1147. package/src/vc-picker/locale/ar_EG.ts +0 -32
  1148. package/src/vc-picker/locale/az_AZ.ts +0 -33
  1149. package/src/vc-picker/locale/bg_BG.ts +0 -31
  1150. package/src/vc-picker/locale/bn_BD.ts +0 -33
  1151. package/src/vc-picker/locale/by_BY.ts +0 -33
  1152. package/src/vc-picker/locale/ca_ES.ts +0 -32
  1153. package/src/vc-picker/locale/cs_CZ.ts +0 -32
  1154. package/src/vc-picker/locale/da_DK.ts +0 -32
  1155. package/src/vc-picker/locale/de_DE.ts +0 -32
  1156. package/src/vc-picker/locale/el_GR.ts +0 -32
  1157. package/src/vc-picker/locale/en_GB.ts +0 -32
  1158. package/src/vc-picker/locale/en_US.ts +0 -33
  1159. package/src/vc-picker/locale/es_ES.ts +0 -32
  1160. package/src/vc-picker/locale/es_MX.ts +0 -33
  1161. package/src/vc-picker/locale/et_EE.ts +0 -32
  1162. package/src/vc-picker/locale/fa_IR.ts +0 -32
  1163. package/src/vc-picker/locale/fi_FI.ts +0 -32
  1164. package/src/vc-picker/locale/fr_BE.ts +0 -32
  1165. package/src/vc-picker/locale/fr_CA.ts +0 -32
  1166. package/src/vc-picker/locale/fr_FR.ts +0 -32
  1167. package/src/vc-picker/locale/ga_IE.ts +0 -33
  1168. package/src/vc-picker/locale/gl_ES.ts +0 -32
  1169. package/src/vc-picker/locale/he_IL.ts +0 -33
  1170. package/src/vc-picker/locale/hi_IN.ts +0 -33
  1171. package/src/vc-picker/locale/hr_HR.ts +0 -33
  1172. package/src/vc-picker/locale/hu_HU.ts +0 -32
  1173. package/src/vc-picker/locale/id_ID.ts +0 -33
  1174. package/src/vc-picker/locale/is_IS.ts +0 -32
  1175. package/src/vc-picker/locale/it_IT.ts +0 -32
  1176. package/src/vc-picker/locale/ja_JP.ts +0 -32
  1177. package/src/vc-picker/locale/ka_GE.ts +0 -33
  1178. package/src/vc-picker/locale/kk_KZ.ts +0 -32
  1179. package/src/vc-picker/locale/km_KH.ts +0 -32
  1180. package/src/vc-picker/locale/kmr_IQ.ts +0 -32
  1181. package/src/vc-picker/locale/kn_IN.ts +0 -33
  1182. package/src/vc-picker/locale/ko_KR.ts +0 -32
  1183. package/src/vc-picker/locale/lt_LT.ts +0 -32
  1184. package/src/vc-picker/locale/lv_LV.ts +0 -32
  1185. package/src/vc-picker/locale/mk_MK.ts +0 -32
  1186. package/src/vc-picker/locale/ml_IN.ts +0 -33
  1187. package/src/vc-picker/locale/mm_MM.ts +0 -33
  1188. package/src/vc-picker/locale/mn_MN.ts +0 -33
  1189. package/src/vc-picker/locale/ms_MY.ts +0 -32
  1190. package/src/vc-picker/locale/nb_NO.ts +0 -33
  1191. package/src/vc-picker/locale/nl_BE.ts +0 -32
  1192. package/src/vc-picker/locale/nl_NL.ts +0 -32
  1193. package/src/vc-picker/locale/pl_PL.ts +0 -32
  1194. package/src/vc-picker/locale/pt_BR.ts +0 -34
  1195. package/src/vc-picker/locale/pt_PT.ts +0 -34
  1196. package/src/vc-picker/locale/ro_RO.ts +0 -33
  1197. package/src/vc-picker/locale/ru_RU.ts +0 -32
  1198. package/src/vc-picker/locale/sk_SK.ts +0 -32
  1199. package/src/vc-picker/locale/sl_SI.ts +0 -32
  1200. package/src/vc-picker/locale/sr_RS.ts +0 -32
  1201. package/src/vc-picker/locale/sv_SE.ts +0 -32
  1202. package/src/vc-picker/locale/ta_IN.ts +0 -33
  1203. package/src/vc-picker/locale/th_TH.ts +0 -32
  1204. package/src/vc-picker/locale/tr_TR.ts +0 -32
  1205. package/src/vc-picker/locale/ug_CN.ts +0 -31
  1206. package/src/vc-picker/locale/uk_UA.ts +0 -32
  1207. package/src/vc-picker/locale/ur_PK.ts +0 -33
  1208. package/src/vc-picker/locale/vi_VN.ts +0 -33
  1209. package/src/vc-picker/locale/zh_CN.ts +0 -32
  1210. package/src/vc-picker/locale/zh_TW.ts +0 -33
  1211. package/src/vc-picker/panels/DatePanel/DateBody.tsx +0 -119
  1212. package/src/vc-picker/panels/DatePanel/DateHeader.tsx +0 -106
  1213. package/src/vc-picker/panels/DatePanel/index.tsx +0 -117
  1214. package/src/vc-picker/panels/DatetimePanel/index.tsx +0 -167
  1215. package/src/vc-picker/panels/DecadePanel/DecadeBody.tsx +0 -68
  1216. package/src/vc-picker/panels/DecadePanel/DecadeHeader.tsx +0 -45
  1217. package/src/vc-picker/panels/DecadePanel/index.tsx +0 -80
  1218. package/src/vc-picker/panels/Header.tsx +0 -101
  1219. package/src/vc-picker/panels/MonthPanel/MonthBody.tsx +0 -89
  1220. package/src/vc-picker/panels/MonthPanel/MonthHeader.tsx +0 -50
  1221. package/src/vc-picker/panels/MonthPanel/index.tsx +0 -83
  1222. package/src/vc-picker/panels/PanelBody.tsx +0 -146
  1223. package/src/vc-picker/panels/QuarterPanel/QuarterBody.tsx +0 -71
  1224. package/src/vc-picker/panels/QuarterPanel/QuarterHeader.tsx +0 -49
  1225. package/src/vc-picker/panels/QuarterPanel/index.tsx +0 -76
  1226. package/src/vc-picker/panels/TimePanel/TimeBody.tsx +0 -315
  1227. package/src/vc-picker/panels/TimePanel/TimeHeader.tsx +0 -42
  1228. package/src/vc-picker/panels/TimePanel/TimeUnitColumn.tsx +0 -103
  1229. package/src/vc-picker/panels/TimePanel/index.tsx +0 -111
  1230. package/src/vc-picker/panels/WeekPanel/index.tsx +0 -44
  1231. package/src/vc-picker/panels/YearPanel/YearBody.tsx +0 -78
  1232. package/src/vc-picker/panels/YearPanel/YearHeader.tsx +0 -49
  1233. package/src/vc-picker/panels/YearPanel/index.tsx +0 -85
  1234. package/src/vc-picker/utils/dateUtil.ts +0 -320
  1235. package/src/vc-picker/utils/getExtraFooter.tsx +0 -13
  1236. package/src/vc-picker/utils/getRanges.tsx +0 -66
  1237. package/src/vc-picker/utils/miscUtil.ts +0 -55
  1238. package/src/vc-picker/utils/timeUtil.ts +0 -60
  1239. package/src/vc-picker/utils/uiUtil.ts +0 -277
  1240. package/src/vc-picker/utils/warnUtil.ts +0 -17
  1241. package/src/vc-progress/index.ts +0 -9
  1242. package/src/vc-progress/src/Circle.tsx +0 -178
  1243. package/src/vc-progress/src/Line.tsx +0 -114
  1244. package/src/vc-progress/src/common.ts +0 -44
  1245. package/src/vc-progress/src/index.ts +0 -12
  1246. package/src/vc-progress/src/types.ts +0 -30
  1247. package/src/vc-resize-observer/index.tsx +0 -141
  1248. package/src/vc-select/BaseSelect.tsx +0 -928
  1249. package/src/vc-select/OptGroup.tsx +0 -15
  1250. package/src/vc-select/Option.tsx +0 -18
  1251. package/src/vc-select/OptionList.tsx +0 -391
  1252. package/src/vc-select/Select.tsx +0 -658
  1253. package/src/vc-select/SelectContext.ts +0 -36
  1254. package/src/vc-select/SelectTrigger.tsx +0 -193
  1255. package/src/vc-select/Selector/Input.tsx +0 -172
  1256. package/src/vc-select/Selector/MultipleSelector.tsx +0 -302
  1257. package/src/vc-select/Selector/SingleSelector.tsx +0 -187
  1258. package/src/vc-select/Selector/index.tsx +0 -283
  1259. package/src/vc-select/Selector/interface.ts +0 -27
  1260. package/src/vc-select/TransBtn.tsx +0 -69
  1261. package/src/vc-select/hooks/useBaseProps.ts +0 -24
  1262. package/src/vc-select/hooks/useCache.ts +0 -56
  1263. package/src/vc-select/hooks/useDelayReset.ts +0 -32
  1264. package/src/vc-select/hooks/useFilterOptions.ts +0 -87
  1265. package/src/vc-select/hooks/useId.ts +0 -31
  1266. package/src/vc-select/hooks/useLock.ts +0 -29
  1267. package/src/vc-select/hooks/useOptions.ts +0 -59
  1268. package/src/vc-select/hooks/useSelectTriggerControl.ts +0 -32
  1269. package/src/vc-select/index.ts +0 -13
  1270. package/src/vc-select/interface.ts +0 -11
  1271. package/src/vc-select/utils/commonUtil.ts +0 -12
  1272. package/src/vc-select/utils/keyUtil.ts +0 -34
  1273. package/src/vc-select/utils/legacyUtil.ts +0 -62
  1274. package/src/vc-select/utils/platformUtil.ts +0 -4
  1275. package/src/vc-select/utils/valueUtil.ts +0 -130
  1276. package/src/vc-select/utils/warningPropsUtil.ts +0 -136
  1277. package/src/vc-slick/arrows.jsx +0 -119
  1278. package/src/vc-slick/default-props.js +0 -56
  1279. package/src/vc-slick/dots.jsx +0 -86
  1280. package/src/vc-slick/index.js +0 -4
  1281. package/src/vc-slick/initial-state.js +0 -27
  1282. package/src/vc-slick/inner-slider.jsx +0 -760
  1283. package/src/vc-slick/slider.jsx +0 -198
  1284. package/src/vc-slick/track.jsx +0 -190
  1285. package/src/vc-slick/utils/innerSliderUtils.js +0 -785
  1286. package/src/vc-slider/index.ts +0 -4
  1287. package/src/vc-slider/src/Handle.tsx +0 -148
  1288. package/src/vc-slider/src/Range.tsx +0 -527
  1289. package/src/vc-slider/src/Slider.tsx +0 -226
  1290. package/src/vc-slider/src/common/Marks.tsx +0 -75
  1291. package/src/vc-slider/src/common/Steps.tsx +0 -76
  1292. package/src/vc-slider/src/common/Track.tsx +0 -29
  1293. package/src/vc-slider/src/common/createSlider.tsx +0 -368
  1294. package/src/vc-slider/src/index.ts +0 -8
  1295. package/src/vc-slider/src/utils.ts +0 -134
  1296. package/src/vc-steps/Step.tsx +0 -201
  1297. package/src/vc-steps/Steps.tsx +0 -146
  1298. package/src/vc-steps/index.ts +0 -6
  1299. package/src/vc-steps/interface.ts +0 -16
  1300. package/src/vc-table/Body/BodyRow.tsx +0 -217
  1301. package/src/vc-table/Body/ExpandedRow.tsx +0 -68
  1302. package/src/vc-table/Body/MeasureCell.tsx +0 -35
  1303. package/src/vc-table/Body/index.tsx +0 -146
  1304. package/src/vc-table/Cell/index.tsx +0 -368
  1305. package/src/vc-table/ColGroup.tsx +0 -38
  1306. package/src/vc-table/FixedHolder/index.tsx +0 -191
  1307. package/src/vc-table/Footer/Cell.tsx +0 -53
  1308. package/src/vc-table/Footer/Row.tsx +0 -9
  1309. package/src/vc-table/Footer/Summary.tsx +0 -27
  1310. package/src/vc-table/Footer/index.tsx +0 -41
  1311. package/src/vc-table/Header/DragHandle.tsx +0 -160
  1312. package/src/vc-table/Header/Header.tsx +0 -128
  1313. package/src/vc-table/Header/HeaderRow.tsx +0 -112
  1314. package/src/vc-table/Panel/index.tsx +0 -7
  1315. package/src/vc-table/Table.tsx +0 -865
  1316. package/src/vc-table/constant.ts +0 -1
  1317. package/src/vc-table/context/BodyContext.tsx +0 -41
  1318. package/src/vc-table/context/ExpandedRowContext.tsx +0 -18
  1319. package/src/vc-table/context/HoverContext.tsx +0 -21
  1320. package/src/vc-table/context/ResizeContext.tsx +0 -18
  1321. package/src/vc-table/context/StickyContext.tsx +0 -14
  1322. package/src/vc-table/context/SummaryContext.tsx +0 -23
  1323. package/src/vc-table/context/TableContext.tsx +0 -34
  1324. package/src/vc-table/hooks/useColumns.tsx +0 -251
  1325. package/src/vc-table/hooks/useFlattenRecords.ts +0 -90
  1326. package/src/vc-table/hooks/useFrame.ts +0 -63
  1327. package/src/vc-table/hooks/useSticky.ts +0 -41
  1328. package/src/vc-table/hooks/useStickyOffsets.ts +0 -55
  1329. package/src/vc-table/index.ts +0 -11
  1330. package/src/vc-table/interface.ts +0 -257
  1331. package/src/vc-table/stickyScrollBar.tsx +0 -241
  1332. package/src/vc-table/sugar/Column.tsx +0 -14
  1333. package/src/vc-table/sugar/ColumnGroup.tsx +0 -15
  1334. package/src/vc-table/utils/expandUtil.tsx +0 -51
  1335. package/src/vc-table/utils/fixUtil.ts +0 -69
  1336. package/src/vc-table/utils/legacyUtil.ts +0 -59
  1337. package/src/vc-table/utils/valueUtil.tsx +0 -89
  1338. package/src/vc-tooltip/index.ts +0 -4
  1339. package/src/vc-tooltip/src/Content.tsx +0 -30
  1340. package/src/vc-tooltip/src/Tooltip.tsx +0 -137
  1341. package/src/vc-tooltip/src/placements.ts +0 -83
  1342. package/src/vc-tour/Mask.tsx +0 -132
  1343. package/src/vc-tour/Tour.tsx +0 -259
  1344. package/src/vc-tour/TourStep/DefaultPanel.tsx +0 -57
  1345. package/src/vc-tour/TourStep/index.tsx +0 -27
  1346. package/src/vc-tour/hooks/useTarget.ts +0 -101
  1347. package/src/vc-tour/index.ts +0 -7
  1348. package/src/vc-tour/interface.ts +0 -37
  1349. package/src/vc-tour/placements.tsx +0 -79
  1350. package/src/vc-tour/util.ts +0 -7
  1351. package/src/vc-tree/DropIndicator.tsx +0 -34
  1352. package/src/vc-tree/Indent.tsx +0 -31
  1353. package/src/vc-tree/MotionTreeNode.tsx +0 -125
  1354. package/src/vc-tree/NodeList.tsx +0 -304
  1355. package/src/vc-tree/Tree.tsx +0 -1242
  1356. package/src/vc-tree/TreeNode.tsx +0 -585
  1357. package/src/vc-tree/contextTypes.ts +0 -149
  1358. package/src/vc-tree/index.ts +0 -9
  1359. package/src/vc-tree/interface.tsx +0 -102
  1360. package/src/vc-tree/props.ts +0 -256
  1361. package/src/vc-tree/useMaxLevel.ts +0 -39
  1362. package/src/vc-tree/util.tsx +0 -352
  1363. package/src/vc-tree/utils/conductUtil.ts +0 -241
  1364. package/src/vc-tree/utils/diffUtil.ts +0 -45
  1365. package/src/vc-tree/utils/treeUtil.ts +0 -458
  1366. package/src/vc-tree-select/LegacyContext.tsx +0 -65
  1367. package/src/vc-tree-select/OptionList.tsx +0 -263
  1368. package/src/vc-tree-select/TreeNode.tsx +0 -15
  1369. package/src/vc-tree-select/TreeSelect.tsx +0 -765
  1370. package/src/vc-tree-select/TreeSelectContext.ts +0 -27
  1371. package/src/vc-tree-select/hooks/useCache.ts +0 -44
  1372. package/src/vc-tree-select/hooks/useCheckedKeys.ts +0 -39
  1373. package/src/vc-tree-select/hooks/useDataEntities.ts +0 -42
  1374. package/src/vc-tree-select/hooks/useFilterTreeData.ts +0 -64
  1375. package/src/vc-tree-select/hooks/useTreeData.ts +0 -75
  1376. package/src/vc-tree-select/index.tsx +0 -10
  1377. package/src/vc-tree-select/interface.ts +0 -101
  1378. package/src/vc-tree-select/utils/legacyUtil.tsx +0 -180
  1379. package/src/vc-tree-select/utils/strategyUtil.ts +0 -48
  1380. package/src/vc-tree-select/utils/valueUtil.ts +0 -50
  1381. package/src/vc-tree-select/utils/warningPropsUtil.ts +0 -35
  1382. package/src/vc-trigger/Popup/Mask.tsx +0 -38
  1383. package/src/vc-trigger/Popup/MobilePopupInner.tsx +0 -60
  1384. package/src/vc-trigger/Popup/PopupInner.tsx +0 -221
  1385. package/src/vc-trigger/Popup/index.tsx +0 -57
  1386. package/src/vc-trigger/Popup/interface.ts +0 -61
  1387. package/src/vc-trigger/Popup/useStretchStyle.ts +0 -42
  1388. package/src/vc-trigger/Popup/useVisibleStatus.ts +0 -98
  1389. package/src/vc-trigger/Trigger.tsx +0 -716
  1390. package/src/vc-trigger/context.ts +0 -38
  1391. package/src/vc-trigger/index.ts +0 -8
  1392. package/src/vc-trigger/interface.ts +0 -147
  1393. package/src/vc-trigger/utils/alignUtil.ts +0 -40
  1394. package/src/vc-trigger/utils/motionUtil.ts +0 -22
  1395. package/src/vc-upload/AjaxUploader.tsx +0 -320
  1396. package/src/vc-upload/Upload.tsx +0 -43
  1397. package/src/vc-upload/attr-accept.ts +0 -53
  1398. package/src/vc-upload/index.ts +0 -7
  1399. package/src/vc-upload/interface.tsx +0 -83
  1400. package/src/vc-upload/request.ts +0 -104
  1401. package/src/vc-upload/traverseFileTree.ts +0 -73
  1402. package/src/vc-upload/uid.ts +0 -6
  1403. package/src/vc-util/Children/toArray.ts +0 -26
  1404. package/src/vc-util/Dom/addEventListener.js +0 -22
  1405. package/src/vc-util/Dom/class.js +0 -28
  1406. package/src/vc-util/Dom/contains.ts +0 -12
  1407. package/src/vc-util/Dom/css.ts +0 -133
  1408. package/src/vc-util/Dom/dynamicCSS.ts +0 -153
  1409. package/src/vc-util/Dom/isVisible.ts +0 -25
  1410. package/src/vc-util/Dom/scrollLocker.ts +0 -130
  1411. package/src/vc-util/devWarning.ts +0 -7
  1412. package/src/vc-util/get.ts +0 -13
  1413. package/src/vc-util/isEqual.ts +0 -52
  1414. package/src/vc-util/isMobile.ts +0 -15
  1415. package/src/vc-util/set.ts +0 -51
  1416. package/src/vc-util/warning.ts +0 -40
  1417. package/src/vc-virtual-list/Filler.tsx +0 -72
  1418. package/src/vc-virtual-list/Item.tsx +0 -26
  1419. package/src/vc-virtual-list/List.tsx +0 -549
  1420. package/src/vc-virtual-list/ScrollBar.tsx +0 -266
  1421. package/src/vc-virtual-list/hooks/useFrameWheel.ts +0 -62
  1422. package/src/vc-virtual-list/hooks/useHeights.tsx +0 -67
  1423. package/src/vc-virtual-list/hooks/useMobileTouchMove.ts +0 -85
  1424. package/src/vc-virtual-list/hooks/useOriginScroll.ts +0 -33
  1425. package/src/vc-virtual-list/hooks/useScrollTo.tsx +0 -113
  1426. package/src/vc-virtual-list/index.ts +0 -4
  1427. package/src/vc-virtual-list/interface.ts +0 -11
  1428. package/src/vc-virtual-list/utils/algorithmUtil.js +0 -81
  1429. package/src/vc-virtual-list/utils/isFirefox.ts +0 -3
  1430. package/src/vc-virtual-list/utils/itemUtil.js +0 -147
  1431. package/src/watermark/index.en-US.md +0 -42
  1432. package/src/watermark/index.tsx +0 -260
  1433. package/src/watermark/index.zh-CN.md +0 -43
  1434. package/src/watermark/utils.ts +0 -43
@@ -1,1451 +0,0 @@
1
- import { TinyColor } from '@ctrl/tinycolor'
2
-
3
- import type { CSSObject } from '../../_util/cssinjs'
4
- import type { InputToken } from '../../input/style'
5
- import {
6
- genActiveStyle,
7
- genBasicInputStyle,
8
- genHoverStyle,
9
- initInputToken,
10
- } from '../../input/style'
11
- import { resetComponent, roundedArrow, textEllipsis } from '../../style'
12
- import { genCompactItemStyle } from '../../style/compact-item'
13
- import {
14
- initMoveMotion,
15
- initSlideMotion,
16
- slideDownIn,
17
- slideDownOut,
18
- slideUpIn,
19
- slideUpOut,
20
- } from '../../style/motion'
21
- import type { GlobalToken } from '../../theme/interface'
22
- import type { FullToken, GenerateStyle } from '../../theme/internal'
23
- import { genComponentStyleHook, mergeToken } from '../../theme/internal'
24
- import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook'
25
-
26
- export interface ComponentToken {
27
- presetsWidth: number
28
- presetsMaxWidth: number
29
- zIndexPopup: number
30
- }
31
-
32
- export interface PickerPanelToken {
33
- pickerCellCls: string
34
- pickerCellInnerCls: string
35
- pickerTextHeight: number
36
- pickerPanelCellWidth: number
37
- pickerPanelCellHeight: number
38
- pickerDateHoverRangeBorderColor: string
39
- pickerBasicCellHoverWithRangeColor: string
40
- pickerPanelWithoutTimeCellHeight: number
41
- pickerYearMonthCellWidth: number
42
- pickerTimePanelColumnHeight: number
43
- pickerTimePanelColumnWidth: number
44
- pickerTimePanelCellHeight: number
45
- pickerCellPaddingVertical: number
46
- pickerQuarterPanelContentHeight: number
47
- pickerCellBorderGap: number
48
- pickerControlIconSize: number
49
- pickerControlIconBorderWidth: number
50
- }
51
-
52
- type PickerToken = InputToken<FullToken<'DatePicker'>> & PickerPanelToken
53
-
54
- type SharedPickerToken = Omit<PickerToken, 'zIndexPopup' | 'presetsWidth' | 'presetsMaxWidth'>
55
-
56
- const genPikerPadding = (
57
- token: PickerToken,
58
- inputHeight: number,
59
- fontSize: number,
60
- paddingHorizontal: number,
61
- ): CSSObject => {
62
- const { lineHeight } = token
63
-
64
- const fontHeight = Math.floor(fontSize * lineHeight) + 2
65
- const paddingTop = Math.max((inputHeight - fontHeight) / 2, 0)
66
- const paddingBottom = Math.max(inputHeight - fontHeight - paddingTop, 0)
67
-
68
- return {
69
- padding: `${paddingTop}px ${paddingHorizontal}px ${paddingBottom}px`,
70
- }
71
- }
72
-
73
- const genPickerCellInnerStyle = (token: SharedPickerToken): CSSObject => {
74
- const {
75
- componentCls,
76
- pickerCellCls,
77
- pickerCellInnerCls,
78
- pickerPanelCellHeight,
79
- motionDurationSlow,
80
- borderRadiusSM,
81
- motionDurationMid,
82
- controlItemBgHover,
83
- lineWidth,
84
- lineType,
85
- colorPrimary,
86
- controlItemBgActive,
87
- colorTextLightSolid,
88
- controlHeightSM,
89
- pickerDateHoverRangeBorderColor,
90
- pickerCellBorderGap,
91
- pickerBasicCellHoverWithRangeColor,
92
- pickerPanelCellWidth,
93
- colorTextDisabled,
94
- colorBgContainerDisabled,
95
- } = token
96
-
97
- return {
98
- '&::before': {
99
- position: 'absolute',
100
- top: '50%',
101
- insetInlineStart: 0,
102
- insetInlineEnd: 0,
103
- zIndex: 1,
104
- height: pickerPanelCellHeight,
105
- transform: 'translateY(-50%)',
106
- transition: `all ${motionDurationSlow}`,
107
- content: '""',
108
- },
109
-
110
- // >>> Default
111
- [pickerCellInnerCls]: {
112
- position: 'relative',
113
- zIndex: 2,
114
- display: 'inline-block',
115
- minWidth: pickerPanelCellHeight,
116
- height: pickerPanelCellHeight,
117
- lineHeight: `${pickerPanelCellHeight}px`,
118
- borderRadius: borderRadiusSM,
119
- transition: `background ${motionDurationMid}, border ${motionDurationMid}`,
120
- },
121
-
122
- // >>> Hover
123
- [`&:hover:not(${pickerCellCls}-in-view),
124
- &:hover:not(${pickerCellCls}-selected):not(${pickerCellCls}-range-start):not(${pickerCellCls}-range-end):not(${pickerCellCls}-range-hover-start):not(${pickerCellCls}-range-hover-end)`]:
125
- {
126
- [pickerCellInnerCls]: {
127
- background: controlItemBgHover,
128
- },
129
- },
130
-
131
- // >>> Today
132
- [`&-in-view${pickerCellCls}-today ${pickerCellInnerCls}`]: {
133
- '&::before': {
134
- position: 'absolute',
135
- top: 0,
136
- insetInlineEnd: 0,
137
- bottom: 0,
138
- insetInlineStart: 0,
139
- zIndex: 1,
140
- border: `${lineWidth}px ${lineType} ${colorPrimary}`,
141
- borderRadius: borderRadiusSM,
142
- content: '""',
143
- },
144
- },
145
-
146
- // >>> In Range
147
- [`&-in-view${pickerCellCls}-in-range`]: {
148
- position: 'relative',
149
-
150
- '&::before': {
151
- background: controlItemBgActive,
152
- },
153
- },
154
-
155
- // >>> Selected
156
- [`&-in-view${pickerCellCls}-selected ${pickerCellInnerCls},
157
- &-in-view${pickerCellCls}-range-start ${pickerCellInnerCls},
158
- &-in-view${pickerCellCls}-range-end ${pickerCellInnerCls}`]: {
159
- color: colorTextLightSolid,
160
- background: colorPrimary,
161
- },
162
-
163
- [`&-in-view${pickerCellCls}-range-start:not(${pickerCellCls}-range-start-single),
164
- &-in-view${pickerCellCls}-range-end:not(${pickerCellCls}-range-end-single)`]: {
165
- '&::before': {
166
- background: controlItemBgActive,
167
- },
168
- },
169
-
170
- [`&-in-view${pickerCellCls}-range-start::before`]: {
171
- insetInlineStart: '50%',
172
- },
173
-
174
- [`&-in-view${pickerCellCls}-range-end::before`]: {
175
- insetInlineEnd: '50%',
176
- },
177
-
178
- // >>> Range Hover
179
- [`&-in-view${pickerCellCls}-range-hover-start:not(${pickerCellCls}-in-range):not(${pickerCellCls}-range-start):not(${pickerCellCls}-range-end),
180
- &-in-view${pickerCellCls}-range-hover-end:not(${pickerCellCls}-in-range):not(${pickerCellCls}-range-start):not(${pickerCellCls}-range-end),
181
- &-in-view${pickerCellCls}-range-hover-start${pickerCellCls}-range-start-single,
182
- &-in-view${pickerCellCls}-range-hover-start${pickerCellCls}-range-start${pickerCellCls}-range-end${pickerCellCls}-range-end-near-hover,
183
- &-in-view${pickerCellCls}-range-hover-end${pickerCellCls}-range-start${pickerCellCls}-range-end${pickerCellCls}-range-start-near-hover,
184
- &-in-view${pickerCellCls}-range-hover-end${pickerCellCls}-range-end-single,
185
- &-in-view${pickerCellCls}-range-hover:not(${pickerCellCls}-in-range)`]: {
186
- '&::after': {
187
- position: 'absolute',
188
- top: '50%',
189
- zIndex: 0,
190
- height: controlHeightSM,
191
- borderTop: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
192
- borderBottom: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
193
- transform: 'translateY(-50%)',
194
- transition: `all ${motionDurationSlow}`,
195
- content: '""',
196
- },
197
- },
198
-
199
- // Add space for stash
200
- [`&-range-hover-start::after,
201
- &-range-hover-end::after,
202
- &-range-hover::after`]: {
203
- insetInlineEnd: 0,
204
- insetInlineStart: pickerCellBorderGap,
205
- },
206
-
207
- // Hover with in range
208
- [`&-in-view${pickerCellCls}-in-range${pickerCellCls}-range-hover::before,
209
- &-in-view${pickerCellCls}-range-start${pickerCellCls}-range-hover::before,
210
- &-in-view${pickerCellCls}-range-end${pickerCellCls}-range-hover::before,
211
- &-in-view${pickerCellCls}-range-start:not(${pickerCellCls}-range-start-single)${pickerCellCls}-range-hover-start::before,
212
- &-in-view${pickerCellCls}-range-end:not(${pickerCellCls}-range-end-single)${pickerCellCls}-range-hover-end::before,
213
- ${componentCls}-panel
214
- > :not(${componentCls}-date-panel)
215
- &-in-view${pickerCellCls}-in-range${pickerCellCls}-range-hover-start::before,
216
- ${componentCls}-panel
217
- > :not(${componentCls}-date-panel)
218
- &-in-view${pickerCellCls}-in-range${pickerCellCls}-range-hover-end::before`]: {
219
- background: pickerBasicCellHoverWithRangeColor,
220
- },
221
-
222
- // range start border-radius
223
- [`&-in-view${pickerCellCls}-range-start:not(${pickerCellCls}-range-start-single):not(${pickerCellCls}-range-end) ${pickerCellInnerCls}`]:
224
- {
225
- borderStartStartRadius: borderRadiusSM,
226
- borderEndStartRadius: borderRadiusSM,
227
- borderStartEndRadius: 0,
228
- borderEndEndRadius: 0,
229
- },
230
-
231
- // range end border-radius
232
- [`&-in-view${pickerCellCls}-range-end:not(${pickerCellCls}-range-end-single):not(${pickerCellCls}-range-start) ${pickerCellInnerCls}`]:
233
- {
234
- borderStartStartRadius: 0,
235
- borderEndStartRadius: 0,
236
- borderStartEndRadius: borderRadiusSM,
237
- borderEndEndRadius: borderRadiusSM,
238
- },
239
-
240
- [`&-range-hover${pickerCellCls}-range-end::after`]: {
241
- insetInlineStart: '50%',
242
- },
243
-
244
- // Edge start
245
- [`tr > &-in-view${pickerCellCls}-range-hover:first-child::after,
246
- tr > &-in-view${pickerCellCls}-range-hover-end:first-child::after,
247
- &-in-view${pickerCellCls}-start${pickerCellCls}-range-hover-edge-start${pickerCellCls}-range-hover-edge-start-near-range::after,
248
- &-in-view${pickerCellCls}-range-hover-edge-start:not(${pickerCellCls}-range-hover-edge-start-near-range)::after,
249
- &-in-view${pickerCellCls}-range-hover-start::after`]: {
250
- insetInlineStart: (pickerPanelCellWidth - pickerPanelCellHeight) / 2,
251
- borderInlineStart: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
252
- borderStartStartRadius: lineWidth,
253
- borderEndStartRadius: lineWidth,
254
- },
255
-
256
- // Edge end
257
- [`tr > &-in-view${pickerCellCls}-range-hover:last-child::after,
258
- tr > &-in-view${pickerCellCls}-range-hover-start:last-child::after,
259
- &-in-view${pickerCellCls}-end${pickerCellCls}-range-hover-edge-end${pickerCellCls}-range-hover-edge-end-near-range::after,
260
- &-in-view${pickerCellCls}-range-hover-edge-end:not(${pickerCellCls}-range-hover-edge-end-near-range)::after,
261
- &-in-view${pickerCellCls}-range-hover-end::after`]: {
262
- insetInlineEnd: (pickerPanelCellWidth - pickerPanelCellHeight) / 2,
263
- borderInlineEnd: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
264
- borderStartEndRadius: lineWidth,
265
- borderEndEndRadius: lineWidth,
266
- },
267
-
268
- // >>> Disabled
269
- '&-disabled': {
270
- color: colorTextDisabled,
271
- pointerEvents: 'none',
272
-
273
- [pickerCellInnerCls]: {
274
- background: 'transparent',
275
- },
276
-
277
- '&::before': {
278
- background: colorBgContainerDisabled,
279
- },
280
- },
281
- [`&-disabled${pickerCellCls}-today ${pickerCellInnerCls}::before`]: {
282
- borderColor: colorTextDisabled,
283
- },
284
- }
285
- }
286
-
287
- export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
288
- const {
289
- componentCls,
290
- pickerCellInnerCls,
291
- pickerYearMonthCellWidth,
292
- pickerControlIconSize,
293
- pickerPanelCellWidth,
294
- paddingSM,
295
- paddingXS,
296
- paddingXXS,
297
- colorBgContainer,
298
- lineWidth,
299
- lineType,
300
- borderRadiusLG,
301
- colorPrimary,
302
- colorTextHeading,
303
- colorSplit,
304
- pickerControlIconBorderWidth,
305
- colorIcon,
306
- pickerTextHeight,
307
- motionDurationMid,
308
- colorIconHover,
309
- fontWeightStrong,
310
- pickerPanelCellHeight,
311
- pickerCellPaddingVertical,
312
- colorTextDisabled,
313
- colorText,
314
- fontSize,
315
- pickerBasicCellHoverWithRangeColor,
316
- motionDurationSlow,
317
- pickerPanelWithoutTimeCellHeight,
318
- pickerQuarterPanelContentHeight,
319
- colorLink,
320
- colorLinkActive,
321
- colorLinkHover,
322
- pickerDateHoverRangeBorderColor,
323
- borderRadiusSM,
324
- colorTextLightSolid,
325
- borderRadius,
326
- controlItemBgHover,
327
- pickerTimePanelColumnHeight,
328
- pickerTimePanelColumnWidth,
329
- pickerTimePanelCellHeight,
330
- controlItemBgActive,
331
- marginXXS,
332
- } = token
333
-
334
- const pickerPanelWidth = pickerPanelCellWidth * 7 + paddingSM * 2 + 4
335
-
336
- const hoverCellFixedDistance =
337
- (pickerPanelWidth - paddingXS * 2) / 3 - pickerYearMonthCellWidth - paddingSM
338
-
339
- return {
340
- [componentCls]: {
341
- '&-panel': {
342
- display: 'inline-flex',
343
- flexDirection: 'column',
344
- textAlign: 'center',
345
- background: colorBgContainer,
346
- border: `${lineWidth}px ${lineType} ${colorSplit}`,
347
- borderRadius: borderRadiusLG,
348
- outline: 'none',
349
-
350
- '&-focused': {
351
- borderColor: colorPrimary,
352
- },
353
-
354
- '&-rtl': {
355
- direction: 'rtl',
356
-
357
- [`${componentCls}-prev-icon,
358
- ${componentCls}-super-prev-icon`]: {
359
- transform: 'rotate(45deg)',
360
- },
361
-
362
- [`${componentCls}-next-icon,
363
- ${componentCls}-super-next-icon`]: {
364
- transform: 'rotate(-135deg)',
365
- },
366
- },
367
- },
368
-
369
- // ========================================================
370
- // = Shared Panel =
371
- // ========================================================
372
- [`&-decade-panel,
373
- &-year-panel,
374
- &-quarter-panel,
375
- &-month-panel,
376
- &-week-panel,
377
- &-date-panel,
378
- &-time-panel`]: {
379
- display: 'flex',
380
- flexDirection: 'column',
381
- width: pickerPanelWidth,
382
- },
383
-
384
- // ======================= Header =======================
385
- '&-header': {
386
- display: 'flex',
387
- padding: `0 ${paddingXS}px`,
388
- color: colorTextHeading,
389
- borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`,
390
-
391
- '> *': {
392
- flex: 'none',
393
- },
394
-
395
- button: {
396
- padding: 0,
397
- color: colorIcon,
398
- lineHeight: `${pickerTextHeight}px`,
399
- background: 'transparent',
400
- border: 0,
401
- cursor: 'pointer',
402
- transition: `color ${motionDurationMid}`,
403
- },
404
-
405
- '> button': {
406
- minWidth: '1.6em',
407
- fontSize,
408
-
409
- '&:hover': {
410
- color: colorIconHover,
411
- },
412
- },
413
-
414
- '&-view': {
415
- flex: 'auto',
416
- fontWeight: fontWeightStrong,
417
- lineHeight: `${pickerTextHeight}px`,
418
-
419
- button: {
420
- color: 'inherit',
421
- fontWeight: 'inherit',
422
- verticalAlign: 'top',
423
-
424
- '&:not(:first-child)': {
425
- marginInlineStart: paddingXS,
426
- },
427
-
428
- '&:hover': {
429
- color: colorPrimary,
430
- },
431
- },
432
- },
433
- },
434
- // Arrow button
435
- [`&-prev-icon,
436
- &-next-icon,
437
- &-super-prev-icon,
438
- &-super-next-icon`]: {
439
- position: 'relative',
440
- display: 'inline-block',
441
- width: pickerControlIconSize,
442
- height: pickerControlIconSize,
443
-
444
- '&::before': {
445
- position: 'absolute',
446
- top: 0,
447
- insetInlineStart: 0,
448
- display: 'inline-block',
449
- width: pickerControlIconSize,
450
- height: pickerControlIconSize,
451
- border: `0 solid currentcolor`,
452
- borderBlockStartWidth: pickerControlIconBorderWidth,
453
- borderBlockEndWidth: 0,
454
- borderInlineStartWidth: pickerControlIconBorderWidth,
455
- borderInlineEndWidth: 0,
456
- content: '""',
457
- },
458
- },
459
-
460
- [`&-super-prev-icon,
461
- &-super-next-icon`]: {
462
- '&::after': {
463
- position: 'absolute',
464
- top: Math.ceil(pickerControlIconSize / 2),
465
- insetInlineStart: Math.ceil(pickerControlIconSize / 2),
466
- display: 'inline-block',
467
- width: pickerControlIconSize,
468
- height: pickerControlIconSize,
469
- border: '0 solid currentcolor',
470
- borderBlockStartWidth: pickerControlIconBorderWidth,
471
- borderBlockEndWidth: 0,
472
- borderInlineStartWidth: pickerControlIconBorderWidth,
473
- borderInlineEndWidth: 0,
474
- content: '""',
475
- },
476
- },
477
-
478
- [`&-prev-icon,
479
- &-super-prev-icon`]: {
480
- transform: 'rotate(-45deg)',
481
- },
482
-
483
- [`&-next-icon,
484
- &-super-next-icon`]: {
485
- transform: 'rotate(135deg)',
486
- },
487
-
488
- // ======================== Body ========================
489
- '&-content': {
490
- width: '100%',
491
- tableLayout: 'fixed',
492
- borderCollapse: 'collapse',
493
-
494
- 'th, td': {
495
- position: 'relative',
496
- minWidth: pickerPanelCellHeight,
497
- fontWeight: 'normal',
498
- },
499
-
500
- th: {
501
- height: pickerPanelCellHeight + pickerCellPaddingVertical * 2,
502
- color: colorText,
503
- verticalAlign: 'middle',
504
- },
505
- },
506
-
507
- '&-cell': {
508
- padding: `${pickerCellPaddingVertical}px 0`,
509
- color: colorTextDisabled,
510
- cursor: 'pointer',
511
-
512
- // In view
513
- '&-in-view': {
514
- color: colorText,
515
- },
516
-
517
- ...genPickerCellInnerStyle(token),
518
- },
519
-
520
- // DatePanel only
521
- [`&-date-panel ${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-start ${pickerCellInnerCls},
522
- &-date-panel ${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-end ${pickerCellInnerCls}`]:
523
- {
524
- '&::after': {
525
- position: 'absolute',
526
- top: 0,
527
- bottom: 0,
528
- zIndex: -1,
529
- background: pickerBasicCellHoverWithRangeColor,
530
- transition: `all ${motionDurationSlow}`,
531
- content: '""',
532
- },
533
- },
534
-
535
- [`&-date-panel
536
- ${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-start
537
- ${pickerCellInnerCls}::after`]: {
538
- insetInlineEnd: -(pickerPanelCellWidth - pickerPanelCellHeight) / 2,
539
- insetInlineStart: 0,
540
- },
541
-
542
- [`&-date-panel ${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-end ${pickerCellInnerCls}::after`]:
543
- {
544
- insetInlineEnd: 0,
545
- insetInlineStart: -(pickerPanelCellWidth - pickerPanelCellHeight) / 2,
546
- },
547
-
548
- // Hover with range start & end
549
- [`&-range-hover${componentCls}-range-start::after`]: {
550
- insetInlineEnd: '50%',
551
- },
552
-
553
- [`&-decade-panel,
554
- &-year-panel,
555
- &-quarter-panel,
556
- &-month-panel`]: {
557
- [`${componentCls}-content`]: {
558
- height: pickerPanelWithoutTimeCellHeight * 4,
559
- },
560
-
561
- [pickerCellInnerCls]: {
562
- padding: `0 ${paddingXS}px`,
563
- },
564
- },
565
-
566
- '&-quarter-panel': {
567
- [`${componentCls}-content`]: {
568
- height: pickerQuarterPanelContentHeight,
569
- },
570
- },
571
-
572
- // ======================== Footer ========================
573
- [`&-panel ${componentCls}-footer`]: {
574
- borderTop: `${lineWidth}px ${lineType} ${colorSplit}`,
575
- },
576
-
577
- '&-footer': {
578
- width: 'min-content',
579
- minWidth: '100%',
580
- lineHeight: `${pickerTextHeight - 2 * lineWidth}px`,
581
- textAlign: 'center',
582
-
583
- '&-extra': {
584
- padding: `0 ${paddingSM}`,
585
- lineHeight: `${pickerTextHeight - 2 * lineWidth}px`,
586
- textAlign: 'start',
587
-
588
- '&:not(:last-child)': {
589
- borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`,
590
- },
591
- },
592
- },
593
-
594
- '&-now': {
595
- textAlign: 'start',
596
- },
597
-
598
- '&-today-btn': {
599
- color: colorLink,
600
-
601
- '&:hover': {
602
- color: colorLinkHover,
603
- },
604
-
605
- '&:active': {
606
- color: colorLinkActive,
607
- },
608
-
609
- [`&${componentCls}-today-btn-disabled`]: {
610
- color: colorTextDisabled,
611
- cursor: 'not-allowed',
612
- },
613
- },
614
-
615
- // ========================================================
616
- // = Special =
617
- // ========================================================
618
-
619
- // ===================== Decade Panel =====================
620
- '&-decade-panel': {
621
- [pickerCellInnerCls]: {
622
- padding: `0 ${paddingXS / 2}px`,
623
- },
624
-
625
- [`${componentCls}-cell::before`]: {
626
- display: 'none',
627
- },
628
- },
629
-
630
- // ============= Year & Quarter & Month Panel =============
631
- [`&-year-panel,
632
- &-quarter-panel,
633
- &-month-panel`]: {
634
- [`${componentCls}-body`]: {
635
- padding: `0 ${paddingXS}px`,
636
- },
637
-
638
- [pickerCellInnerCls]: {
639
- width: pickerYearMonthCellWidth,
640
- },
641
-
642
- [`${componentCls}-cell-range-hover-start::after`]: {
643
- insetInlineStart: hoverCellFixedDistance,
644
- borderInlineStart: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
645
- borderStartStartRadius: borderRadiusSM,
646
- borderBottomStartRadius: borderRadiusSM,
647
- borderStartEndRadius: 0,
648
- borderBottomEndRadius: 0,
649
-
650
- [`${componentCls}-panel-rtl &`]: {
651
- insetInlineEnd: hoverCellFixedDistance,
652
- borderInlineEnd: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
653
- borderStartStartRadius: 0,
654
- borderBottomStartRadius: 0,
655
- borderStartEndRadius: borderRadiusSM,
656
- borderBottomEndRadius: borderRadiusSM,
657
- },
658
- },
659
- [`${componentCls}-cell-range-hover-end::after`]: {
660
- insetInlineEnd: hoverCellFixedDistance,
661
- borderInlineEnd: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
662
- borderStartStartRadius: 0,
663
- borderEndStartRadius: 0,
664
- borderStartEndRadius: borderRadius,
665
- borderEndEndRadius: borderRadius,
666
-
667
- [`${componentCls}-panel-rtl &`]: {
668
- insetInlineStart: hoverCellFixedDistance,
669
- borderInlineStart: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
670
- borderStartStartRadius: borderRadius,
671
- borderEndStartRadius: borderRadius,
672
- borderStartEndRadius: 0,
673
- borderEndEndRadius: 0,
674
- },
675
- },
676
- },
677
-
678
- // ====================== Week Panel ======================
679
- '&-week-panel': {
680
- [`${componentCls}-body`]: {
681
- padding: `${paddingXS}px ${paddingSM}px`,
682
- },
683
-
684
- // Clear cell style
685
- [`${componentCls}-cell`]: {
686
- [`&:hover ${pickerCellInnerCls},
687
- &-selected ${pickerCellInnerCls},
688
- ${pickerCellInnerCls}`]: {
689
- background: 'transparent !important',
690
- },
691
- },
692
-
693
- '&-row': {
694
- td: {
695
- transition: `background ${motionDurationMid}`,
696
-
697
- '&:first-child': {
698
- borderStartStartRadius: borderRadiusSM,
699
- borderEndStartRadius: borderRadiusSM,
700
- },
701
-
702
- '&:last-child': {
703
- borderStartEndRadius: borderRadiusSM,
704
- borderEndEndRadius: borderRadiusSM,
705
- },
706
- },
707
-
708
- '&:hover td': {
709
- background: controlItemBgHover,
710
- },
711
-
712
- [`&-selected td,
713
- &-selected:hover td`]: {
714
- background: colorPrimary,
715
-
716
- [`&${componentCls}-cell-week`]: {
717
- color: new TinyColor(colorTextLightSolid).setAlpha(0.5).toHexString(),
718
- },
719
-
720
- [`&${componentCls}-cell-today ${pickerCellInnerCls}::before`]: {
721
- borderColor: colorTextLightSolid,
722
- },
723
-
724
- [pickerCellInnerCls]: {
725
- color: colorTextLightSolid,
726
- },
727
- },
728
- },
729
- },
730
-
731
- // ====================== Date Panel ======================
732
- '&-date-panel': {
733
- [`${componentCls}-body`]: {
734
- padding: `${paddingXS}px ${paddingSM}px`,
735
- },
736
-
737
- [`${componentCls}-content`]: {
738
- width: pickerPanelCellWidth * 7,
739
-
740
- th: {
741
- width: pickerPanelCellWidth,
742
- },
743
- },
744
- },
745
-
746
- // ==================== Datetime Panel ====================
747
- '&-datetime-panel': {
748
- display: 'flex',
749
-
750
- [`${componentCls}-time-panel`]: {
751
- borderInlineStart: `${lineWidth}px ${lineType} ${colorSplit}`,
752
- },
753
-
754
- [`${componentCls}-date-panel,
755
- ${componentCls}-time-panel`]: {
756
- transition: `opacity ${motionDurationSlow}`,
757
- },
758
-
759
- // Keyboard
760
- '&-active': {
761
- [`${componentCls}-date-panel,
762
- ${componentCls}-time-panel`]: {
763
- opacity: 0.3,
764
-
765
- '&-active': {
766
- opacity: 1,
767
- },
768
- },
769
- },
770
- },
771
-
772
- // ====================== Time Panel ======================
773
- '&-time-panel': {
774
- width: 'auto',
775
- minWidth: 'auto',
776
- direction: 'ltr',
777
-
778
- [`${componentCls}-content`]: {
779
- display: 'flex',
780
- flex: 'auto',
781
- height: pickerTimePanelColumnHeight,
782
- },
783
-
784
- '&-column': {
785
- flex: '1 0 auto',
786
- width: pickerTimePanelColumnWidth,
787
- margin: `${paddingXXS}px 0`,
788
- padding: 0,
789
- overflowY: 'hidden',
790
- textAlign: 'start',
791
- listStyle: 'none',
792
- transition: `background ${motionDurationMid}`,
793
- overflowX: 'hidden',
794
-
795
- '&::after': {
796
- display: 'block',
797
- height: pickerTimePanelColumnHeight - pickerTimePanelCellHeight,
798
- content: '""',
799
- },
800
-
801
- '&:not(:first-child)': {
802
- borderInlineStart: `${lineWidth}px ${lineType} ${colorSplit}`,
803
- },
804
-
805
- '&-active': {
806
- background: new TinyColor(controlItemBgActive).setAlpha(0.2).toHexString(),
807
- },
808
-
809
- '&:hover': {
810
- overflowY: 'auto',
811
- },
812
-
813
- '> li': {
814
- margin: 0,
815
- padding: 0,
816
-
817
- [`&${componentCls}-time-panel-cell`]: {
818
- marginInline: marginXXS,
819
- [`${componentCls}-time-panel-cell-inner`]: {
820
- display: 'block',
821
- width: pickerTimePanelColumnWidth - 2 * marginXXS,
822
- height: pickerTimePanelCellHeight,
823
- margin: 0,
824
- paddingBlock: 0,
825
- paddingInlineEnd: 0,
826
- paddingInlineStart: (pickerTimePanelColumnWidth - pickerTimePanelCellHeight) / 2,
827
- color: colorText,
828
- lineHeight: `${pickerTimePanelCellHeight}px`,
829
- borderRadius: borderRadiusSM,
830
- cursor: 'pointer',
831
- transition: `background ${motionDurationMid}`,
832
-
833
- '&:hover': {
834
- background: controlItemBgHover,
835
- },
836
- },
837
-
838
- '&-selected': {
839
- [`${componentCls}-time-panel-cell-inner`]: {
840
- background: controlItemBgActive,
841
- },
842
- },
843
-
844
- '&-disabled': {
845
- [`${componentCls}-time-panel-cell-inner`]: {
846
- color: colorTextDisabled,
847
- background: 'transparent',
848
- cursor: 'not-allowed',
849
- },
850
- },
851
- },
852
- },
853
- },
854
- },
855
- // https://github.com/ant-design/ant-design/issues/39227
856
- [`&-datetime-panel ${componentCls}-time-panel-column:after`]: {
857
- height: pickerTimePanelColumnHeight - pickerTimePanelCellHeight + paddingXXS * 2,
858
- },
859
- },
860
- }
861
- }
862
-
863
- const genPickerStatusStyle: GenerateStyle<PickerToken> = (token) => {
864
- const {
865
- componentCls,
866
- colorBgContainer,
867
- colorError,
868
- colorErrorOutline,
869
- colorWarning,
870
- colorWarningOutline,
871
- } = token
872
-
873
- return {
874
- [componentCls]: {
875
- [`&-status-error${componentCls}`]: {
876
- '&, &:not([disabled]):hover': {
877
- backgroundColor: colorBgContainer,
878
- borderColor: colorError,
879
- },
880
-
881
- '&-focused, &:focus': {
882
- ...genActiveStyle(
883
- mergeToken<PickerToken>(token, {
884
- inputBorderActiveColor: colorError,
885
- inputBorderHoverColor: colorError,
886
- controlOutline: colorErrorOutline,
887
- }),
888
- ),
889
- },
890
-
891
- [`${componentCls}-active-bar`]: {
892
- background: colorError,
893
- },
894
- },
895
-
896
- [`&-status-warning${componentCls}`]: {
897
- '&, &:not([disabled]):hover': {
898
- backgroundColor: colorBgContainer,
899
- borderColor: colorWarning,
900
- },
901
-
902
- '&-focused, &:focus': {
903
- ...genActiveStyle(
904
- mergeToken<PickerToken>(token, {
905
- inputBorderActiveColor: colorWarning,
906
- inputBorderHoverColor: colorWarning,
907
- controlOutline: colorWarningOutline,
908
- }),
909
- ),
910
- },
911
-
912
- [`${componentCls}-active-bar`]: {
913
- background: colorWarning,
914
- },
915
- },
916
- },
917
- }
918
- }
919
-
920
- const genPickerStyle: GenerateStyle<PickerToken> = (token) => {
921
- const {
922
- componentCls,
923
- antCls,
924
- boxShadowPopoverArrow,
925
- controlHeight,
926
- fontSize,
927
- inputPaddingHorizontal,
928
- colorBgContainer,
929
- lineWidth,
930
- lineType,
931
- colorBorder,
932
- borderRadius,
933
- motionDurationMid,
934
- colorBgContainerDisabled,
935
- colorTextDisabled,
936
- colorTextPlaceholder,
937
- controlHeightLG,
938
- fontSizeLG,
939
- controlHeightSM,
940
- inputPaddingHorizontalSM,
941
- paddingXS,
942
- marginXS,
943
- colorTextDescription,
944
- lineWidthBold,
945
- lineHeight,
946
- colorPrimary,
947
- motionDurationSlow,
948
- zIndexPopup,
949
- paddingXXS,
950
- paddingSM,
951
- pickerTextHeight,
952
- controlItemBgActive,
953
- colorPrimaryBorder,
954
- sizePopupArrow,
955
- borderRadiusXS,
956
- borderRadiusOuter,
957
- colorBgElevated,
958
- borderRadiusLG,
959
- boxShadowSecondary,
960
- borderRadiusSM,
961
- colorSplit,
962
- controlItemBgHover,
963
- presetsWidth,
964
- presetsMaxWidth,
965
- } = token
966
-
967
- return [
968
- {
969
- [componentCls]: {
970
- ...resetComponent(token),
971
- ...genPikerPadding(token, controlHeight, fontSize, inputPaddingHorizontal),
972
- position: 'relative',
973
- display: 'inline-flex',
974
- alignItems: 'center',
975
- background: colorBgContainer,
976
- lineHeight: 1,
977
- border: `${lineWidth}px ${lineType} ${colorBorder}`,
978
- borderRadius,
979
- transition: `border ${motionDurationMid}, box-shadow ${motionDurationMid}`,
980
-
981
- '&:hover, &-focused': {
982
- ...genHoverStyle(token),
983
- },
984
-
985
- '&-focused': {
986
- ...genActiveStyle(token),
987
- },
988
-
989
- [`&${componentCls}-disabled`]: {
990
- background: colorBgContainerDisabled,
991
- borderColor: colorBorder,
992
- cursor: 'not-allowed',
993
-
994
- [`${componentCls}-suffix`]: {
995
- color: colorTextDisabled,
996
- },
997
- },
998
-
999
- [`&${componentCls}-borderless`]: {
1000
- backgroundColor: 'transparent !important',
1001
- borderColor: 'transparent !important',
1002
- boxShadow: 'none !important',
1003
- },
1004
-
1005
- // ======================== Input =========================
1006
- [`${componentCls}-input`]: {
1007
- position: 'relative',
1008
- display: 'inline-flex',
1009
- alignItems: 'center',
1010
- width: '100%',
1011
-
1012
- '> input': {
1013
- ...genBasicInputStyle(token),
1014
- flex: 'auto',
1015
-
1016
- // Fix Firefox flex not correct:
1017
- // https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553
1018
- minWidth: 1,
1019
- height: 'auto',
1020
- padding: 0,
1021
- background: 'transparent',
1022
- border: 0,
1023
-
1024
- '&:focus': {
1025
- boxShadow: 'none',
1026
- },
1027
-
1028
- '&[disabled]': {
1029
- background: 'transparent',
1030
- },
1031
- },
1032
-
1033
- '&:hover': {
1034
- [`${componentCls}-clear`]: {
1035
- opacity: 1,
1036
- },
1037
- },
1038
-
1039
- '&-placeholder': {
1040
- '> input': {
1041
- color: colorTextPlaceholder,
1042
- },
1043
- },
1044
- },
1045
-
1046
- // Size
1047
- '&-large': {
1048
- ...genPikerPadding(token, controlHeightLG, fontSizeLG, inputPaddingHorizontal),
1049
-
1050
- [`${componentCls}-input > input`]: {
1051
- fontSize: fontSizeLG,
1052
- },
1053
- },
1054
-
1055
- '&-small': {
1056
- ...genPikerPadding(token, controlHeightSM, fontSize, inputPaddingHorizontalSM),
1057
- },
1058
-
1059
- [`${componentCls}-suffix`]: {
1060
- display: 'flex',
1061
- flex: 'none',
1062
- alignSelf: 'center',
1063
- marginInlineStart: paddingXS / 2,
1064
- color: colorTextDisabled,
1065
- lineHeight: 1,
1066
- pointerEvents: 'none',
1067
-
1068
- '> *': {
1069
- verticalAlign: 'top',
1070
-
1071
- '&:not(:last-child)': {
1072
- marginInlineEnd: marginXS,
1073
- },
1074
- },
1075
- },
1076
-
1077
- [`${componentCls}-clear`]: {
1078
- position: 'absolute',
1079
- top: '50%',
1080
- insetInlineEnd: 0,
1081
- color: colorTextDisabled,
1082
- lineHeight: 1,
1083
- background: colorBgContainer,
1084
- transform: 'translateY(-50%)',
1085
- cursor: 'pointer',
1086
- opacity: 0,
1087
- transition: `opacity ${motionDurationMid}, color ${motionDurationMid}`,
1088
-
1089
- '> *': {
1090
- verticalAlign: 'top',
1091
- },
1092
-
1093
- '&:hover': {
1094
- color: colorTextDescription,
1095
- },
1096
- },
1097
-
1098
- [`${componentCls}-separator`]: {
1099
- position: 'relative',
1100
- display: 'inline-block',
1101
- width: '1em',
1102
- height: fontSizeLG,
1103
- color: colorTextDisabled,
1104
- fontSize: fontSizeLG,
1105
- verticalAlign: 'top',
1106
- cursor: 'default',
1107
-
1108
- [`${componentCls}-focused &`]: {
1109
- color: colorTextDescription,
1110
- },
1111
-
1112
- [`${componentCls}-range-separator &`]: {
1113
- [`${componentCls}-disabled &`]: {
1114
- cursor: 'not-allowed',
1115
- },
1116
- },
1117
- },
1118
-
1119
- // ======================== Range =========================
1120
- '&-range': {
1121
- position: 'relative',
1122
- display: 'inline-flex',
1123
-
1124
- // Clear
1125
- [`${componentCls}-clear`]: {
1126
- insetInlineEnd: inputPaddingHorizontal,
1127
- },
1128
-
1129
- '&:hover': {
1130
- [`${componentCls}-clear`]: {
1131
- opacity: 1,
1132
- },
1133
- },
1134
-
1135
- // Active bar
1136
- [`${componentCls}-active-bar`]: {
1137
- bottom: -lineWidth,
1138
- height: lineWidthBold,
1139
- marginInlineStart: inputPaddingHorizontal,
1140
- background: colorPrimary,
1141
- opacity: 0,
1142
- transition: `all ${motionDurationSlow} ease-out`,
1143
- pointerEvents: 'none',
1144
- },
1145
-
1146
- [`&${componentCls}-focused`]: {
1147
- [`${componentCls}-active-bar`]: {
1148
- opacity: 1,
1149
- },
1150
- },
1151
-
1152
- [`${componentCls}-range-separator`]: {
1153
- alignItems: 'center',
1154
- padding: `0 ${paddingXS}px`,
1155
- lineHeight: 1,
1156
- },
1157
-
1158
- [`&${componentCls}-small`]: {
1159
- [`${componentCls}-clear`]: {
1160
- insetInlineEnd: inputPaddingHorizontalSM,
1161
- },
1162
-
1163
- [`${componentCls}-active-bar`]: {
1164
- marginInlineStart: inputPaddingHorizontalSM,
1165
- },
1166
- },
1167
- },
1168
-
1169
- // ======================= Dropdown =======================
1170
- '&-dropdown': {
1171
- ...resetComponent(token),
1172
- ...genPanelStyle(token),
1173
- position: 'absolute',
1174
- // Fix incorrect position of picker popup
1175
- // https://github.com/ant-design/ant-design/issues/35590
1176
- top: -9999,
1177
- left: {
1178
- _skip_check_: true,
1179
- value: -9999,
1180
- },
1181
- zIndex: zIndexPopup,
1182
-
1183
- [`&${componentCls}-dropdown-hidden`]: {
1184
- display: 'none',
1185
- },
1186
-
1187
- [`&${componentCls}-dropdown-placement-bottomLeft`]: {
1188
- [`${componentCls}-range-arrow`]: {
1189
- top: 0,
1190
- display: 'block',
1191
- transform: 'translateY(-100%)',
1192
- },
1193
- },
1194
-
1195
- [`&${componentCls}-dropdown-placement-topLeft`]: {
1196
- [`${componentCls}-range-arrow`]: {
1197
- bottom: 0,
1198
- display: 'block',
1199
- transform: 'translateY(100%) rotate(180deg)',
1200
- },
1201
- },
1202
-
1203
- [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-topLeft,
1204
- &${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-topRight,
1205
- &${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-topLeft,
1206
- &${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-topRight`]:
1207
- {
1208
- animationName: slideDownIn,
1209
- },
1210
-
1211
- [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-bottomLeft,
1212
- &${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-bottomRight,
1213
- &${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-bottomLeft,
1214
- &${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-bottomRight`]:
1215
- {
1216
- animationName: slideUpIn,
1217
- },
1218
-
1219
- [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-topLeft,
1220
- &${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-topRight`]:
1221
- {
1222
- animationName: slideDownOut,
1223
- },
1224
-
1225
- [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-bottomLeft,
1226
- &${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-bottomRight`]:
1227
- {
1228
- animationName: slideUpOut,
1229
- },
1230
-
1231
- // Time picker with additional style
1232
- [`${componentCls}-panel > ${componentCls}-time-panel`]: {
1233
- paddingTop: paddingXXS,
1234
- },
1235
-
1236
- // ======================== Ranges ========================
1237
- [`${componentCls}-ranges`]: {
1238
- marginBottom: 0,
1239
- padding: `${paddingXXS}px ${paddingSM}px`,
1240
- overflow: 'hidden',
1241
- lineHeight: `${pickerTextHeight - 2 * lineWidth - paddingXS / 2}px`,
1242
- textAlign: 'start',
1243
- listStyle: 'none',
1244
- display: 'flex',
1245
- justifyContent: 'space-between',
1246
-
1247
- '> li': {
1248
- display: 'inline-block',
1249
- },
1250
-
1251
- // https://github.com/ant-design/ant-design/issues/23687
1252
- [`${componentCls}-preset > ${antCls}-tag-blue`]: {
1253
- color: colorPrimary,
1254
- background: controlItemBgActive,
1255
- borderColor: colorPrimaryBorder,
1256
- cursor: 'pointer',
1257
- },
1258
-
1259
- [`${componentCls}-ok`]: {
1260
- marginInlineStart: 'auto',
1261
- },
1262
- },
1263
-
1264
- [`${componentCls}-range-wrapper`]: {
1265
- display: 'flex',
1266
- position: 'relative',
1267
- },
1268
-
1269
- [`${componentCls}-range-arrow`]: {
1270
- position: 'absolute',
1271
- zIndex: 1,
1272
- display: 'none',
1273
- marginInlineStart: inputPaddingHorizontal * 1.5,
1274
- transition: `left ${motionDurationSlow} ease-out`,
1275
- ...roundedArrow(
1276
- sizePopupArrow,
1277
- borderRadiusXS,
1278
- borderRadiusOuter,
1279
- colorBgElevated,
1280
- boxShadowPopoverArrow,
1281
- ),
1282
- },
1283
-
1284
- [`${componentCls}-panel-container`]: {
1285
- overflow: 'hidden',
1286
- verticalAlign: 'top',
1287
- background: colorBgElevated,
1288
- borderRadius: borderRadiusLG,
1289
- boxShadow: boxShadowSecondary,
1290
- transition: `margin ${motionDurationSlow}`,
1291
-
1292
- // ======================== Layout ========================
1293
- [`${componentCls}-panel-layout`]: {
1294
- display: 'flex',
1295
- flexWrap: 'nowrap',
1296
- alignItems: 'stretch',
1297
- },
1298
-
1299
- // ======================== Preset ========================
1300
- [`${componentCls}-presets`]: {
1301
- display: 'flex',
1302
- flexDirection: 'column',
1303
- minWidth: presetsWidth,
1304
- maxWidth: presetsMaxWidth,
1305
-
1306
- ul: {
1307
- height: 0,
1308
- flex: 'auto',
1309
- listStyle: 'none',
1310
- overflow: 'auto',
1311
- margin: 0,
1312
- padding: paddingXS,
1313
- borderInlineEnd: `${lineWidth}px ${lineType} ${colorSplit}`,
1314
-
1315
- li: {
1316
- ...textEllipsis,
1317
- borderRadius: borderRadiusSM,
1318
- paddingInline: paddingXS,
1319
- paddingBlock: (controlHeightSM - Math.round(fontSize * lineHeight)) / 2,
1320
- cursor: 'pointer',
1321
- transition: `all ${motionDurationSlow}`,
1322
-
1323
- '+ li': {
1324
- marginTop: marginXS,
1325
- },
1326
-
1327
- '&:hover': {
1328
- background: controlItemBgHover,
1329
- },
1330
- },
1331
- },
1332
- },
1333
-
1334
- // ======================== Panels ========================
1335
- [`${componentCls}-panels`]: {
1336
- display: 'inline-flex',
1337
- flexWrap: 'nowrap',
1338
- direction: 'ltr',
1339
-
1340
- [`${componentCls}-panel`]: {
1341
- borderWidth: `0 0 ${lineWidth}px`,
1342
- },
1343
-
1344
- '&:last-child': {
1345
- [`${componentCls}-panel`]: {
1346
- borderWidth: 0,
1347
- },
1348
- },
1349
- },
1350
-
1351
- [`${componentCls}-panel`]: {
1352
- verticalAlign: 'top',
1353
- background: 'transparent',
1354
- borderRadius: 0,
1355
- borderWidth: 0,
1356
-
1357
- [`${componentCls}-content,
1358
- table`]: {
1359
- textAlign: 'center',
1360
- },
1361
-
1362
- '&-focused': {
1363
- borderColor: colorBorder,
1364
- },
1365
- },
1366
- },
1367
- },
1368
-
1369
- '&-dropdown-range': {
1370
- padding: `${(sizePopupArrow * 2) / 3}px 0`,
1371
-
1372
- '&-hidden': {
1373
- display: 'none',
1374
- },
1375
- },
1376
-
1377
- '&-rtl': {
1378
- direction: 'rtl',
1379
-
1380
- [`${componentCls}-separator`]: {
1381
- transform: 'rotate(180deg)',
1382
- },
1383
-
1384
- [`${componentCls}-footer`]: {
1385
- '&-extra': {
1386
- direction: 'rtl',
1387
- },
1388
- },
1389
- },
1390
- },
1391
- },
1392
-
1393
- // Follow code may reuse in other components
1394
- initSlideMotion(token, 'slide-up'),
1395
- initSlideMotion(token, 'slide-down'),
1396
- initMoveMotion(token, 'move-up'),
1397
- initMoveMotion(token, 'move-down'),
1398
- ]
1399
- }
1400
-
1401
- export const initPickerPanelToken = (token: TokenWithCommonCls<GlobalToken>): PickerPanelToken => {
1402
- const pickerTimePanelCellHeight = 28
1403
- const { componentCls, controlHeightLG, controlHeightSM, colorPrimary, paddingXXS } = token
1404
-
1405
- return {
1406
- pickerCellCls: `${componentCls}-cell`,
1407
- pickerCellInnerCls: `${componentCls}-cell-inner`,
1408
- pickerTextHeight: controlHeightLG,
1409
- pickerPanelCellWidth: controlHeightSM * 1.5,
1410
- pickerPanelCellHeight: controlHeightSM,
1411
- pickerDateHoverRangeBorderColor: new TinyColor(colorPrimary).lighten(20).toHexString(),
1412
- pickerBasicCellHoverWithRangeColor: new TinyColor(colorPrimary).lighten(35).toHexString(),
1413
- pickerPanelWithoutTimeCellHeight: controlHeightLG * 1.65,
1414
- pickerYearMonthCellWidth: controlHeightLG * 1.5,
1415
- pickerTimePanelColumnHeight: pickerTimePanelCellHeight * 8,
1416
- pickerTimePanelColumnWidth: controlHeightLG * 1.4,
1417
- pickerTimePanelCellHeight,
1418
- pickerQuarterPanelContentHeight: controlHeightLG * 1.4,
1419
- pickerCellPaddingVertical: paddingXXS,
1420
- pickerCellBorderGap: 2, // Magic for gap between cells
1421
- pickerControlIconSize: 7,
1422
- pickerControlIconBorderWidth: 1.5,
1423
- }
1424
- }
1425
-
1426
- // ============================== Export ==============================
1427
- export default genComponentStyleHook(
1428
- 'DatePicker',
1429
- (token) => {
1430
- const pickerToken = mergeToken<PickerToken>(
1431
- initInputToken<FullToken<'DatePicker'>>(token),
1432
- initPickerPanelToken(token),
1433
- )
1434
-
1435
- return [
1436
- genPickerStyle(pickerToken),
1437
- genPickerStatusStyle(pickerToken),
1438
- // =====================================================
1439
- // == Space Compact ==
1440
- // =====================================================
1441
- genCompactItemStyle(token, {
1442
- focusElCls: `${token.componentCls}-focused`,
1443
- }),
1444
- ]
1445
- },
1446
- (token) => ({
1447
- presetsWidth: 120,
1448
- presetsMaxWidth: 200,
1449
- zIndexPopup: token.zIndexPopupBase + 50,
1450
- }),
1451
- )