@chaoswise/ui 3.1.6 → 3.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/lib/Antd5/_util/PurePanel.js +9 -1
  2. package/lib/Antd5/_util/convertToTooltipProps.js +15 -0
  3. package/lib/Antd5/_util/extendsObject.js +14 -23
  4. package/lib/Antd5/_util/hooks/useClosable.js +25 -31
  5. package/lib/Antd5/_util/hooks/useMergeSemantic/index.js +89 -0
  6. package/lib/Antd5/_util/hooks/useMergeSemantic/interface.js +1 -0
  7. package/lib/Antd5/_util/isPrimitive.js +5 -0
  8. package/lib/Antd5/_util/mediaQueryUtil.js +16 -0
  9. package/lib/Antd5/_util/responsiveObserver.js +41 -33
  10. package/lib/Antd5/_util/toList.js +6 -3
  11. package/lib/Antd5/_util/warning.js +0 -1
  12. package/lib/Antd5/_util/wave/WaveEffect.js +29 -16
  13. package/lib/Antd5/_util/wave/index.js +2 -2
  14. package/lib/Antd5/_util/wave/useWave.js +1 -1
  15. package/lib/Antd5/affix/index.js +13 -11
  16. package/lib/Antd5/alert/Alert.js +19 -18
  17. package/lib/Antd5/anchor/Anchor.js +9 -7
  18. package/lib/Antd5/anchor/AnchorLink.js +16 -3
  19. package/lib/Antd5/app/App.js +90 -0
  20. package/lib/Antd5/app/index.js +3 -92
  21. package/lib/Antd5/app/useApp.js +6 -0
  22. package/lib/Antd5/auto-complete/AutoComplete.js +142 -0
  23. package/lib/Antd5/auto-complete/index.js +8 -106
  24. package/lib/Antd5/avatar/{avatar.js → Avatar.js} +25 -29
  25. package/lib/Antd5/avatar/{group.js → AvatarGroup.js} +14 -9
  26. package/lib/Antd5/avatar/index.js +3 -4
  27. package/lib/Antd5/breadcrumb/Breadcrumb.js +1 -0
  28. package/lib/Antd5/breadcrumb/style/index.js +1 -1
  29. package/lib/Antd5/button/{LoadingIcon.js → DefaultLoadingIcon.js} +12 -9
  30. package/lib/Antd5/button/button-group.js +11 -11
  31. package/lib/Antd5/button/button.js +60 -26
  32. package/lib/Antd5/button/buttonHelpers.js +8 -1
  33. package/lib/Antd5/button/style/compact.js +9 -10
  34. package/lib/Antd5/button/style/index.js +127 -41
  35. package/lib/Antd5/button/style/token.js +19 -8
  36. package/lib/Antd5/calendar/Header.js +4 -4
  37. package/lib/Antd5/calendar/generateCalendar.js +17 -12
  38. package/lib/Antd5/calendar/style/index.js +8 -2
  39. package/lib/Antd5/card/Card.js +9 -5
  40. package/lib/Antd5/card/style/index.js +22 -15
  41. package/lib/Antd5/carousel/index.js +21 -11
  42. package/lib/Antd5/carousel/style/index.js +39 -12
  43. package/lib/Antd5/cascader/index.js +54 -18
  44. package/lib/Antd5/cascader/style/columns.js +4 -2
  45. package/lib/Antd5/cascader/style/index.js +2 -1
  46. package/lib/Antd5/collapse/Collapse.js +32 -25
  47. package/lib/Antd5/collapse/style/index.js +14 -10
  48. package/lib/Antd5/color-picker/ColorPicker.js +13 -8
  49. package/lib/Antd5/color-picker/components/ColorAlphaInput.js +8 -13
  50. package/lib/Antd5/color-picker/components/ColorHexInput.js +1 -1
  51. package/lib/Antd5/color-picker/components/ColorHsbInput.js +8 -13
  52. package/lib/Antd5/color-picker/components/ColorInput.js +7 -7
  53. package/lib/Antd5/color-picker/components/ColorPresets.js +15 -12
  54. package/lib/Antd5/color-picker/components/ColorRgbInput.js +8 -13
  55. package/lib/Antd5/color-picker/components/ColorSteppers.js +6 -13
  56. package/lib/Antd5/color-picker/interface.js +3 -6
  57. package/lib/Antd5/color-picker/style/color-block.js +2 -1
  58. package/lib/Antd5/config-provider/MotionWrapper.js +12 -4
  59. package/lib/Antd5/config-provider/UnstableContext.js +29 -0
  60. package/lib/Antd5/config-provider/context.js +32 -2
  61. package/lib/Antd5/config-provider/cssVariables.js +7 -7
  62. package/lib/Antd5/config-provider/hooks/useSize.js +1 -1
  63. package/lib/Antd5/config-provider/index.js +12 -3
  64. package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +33 -12
  65. package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +32 -13
  66. package/lib/Antd5/date-picker/hooks/useMergedPickerSemantic.js +47 -0
  67. package/lib/Antd5/date-picker/index.js +2 -2
  68. package/lib/Antd5/date-picker/locale/ar_EG.js +1 -8
  69. package/lib/Antd5/date-picker/locale/example.json +5 -8
  70. package/lib/Antd5/date-picker/locale/ko_KR.js +11 -1
  71. package/lib/Antd5/date-picker/locale/pl_PL.js +0 -3
  72. package/lib/Antd5/date-picker/locale/pt_PT.js +0 -3
  73. package/lib/Antd5/date-picker/locale/sl_SI.js +1 -3
  74. package/lib/Antd5/date-picker/style/index.js +9 -6
  75. package/lib/Antd5/date-picker/style/panel.js +12 -8
  76. package/lib/Antd5/date-picker/style/token.js +3 -3
  77. package/lib/Antd5/date-picker/style/variants.js +6 -2
  78. package/lib/Antd5/descriptions/Cell.js +14 -8
  79. package/lib/Antd5/descriptions/Item.js +2 -0
  80. package/lib/Antd5/descriptions/Row.js +10 -6
  81. package/lib/Antd5/descriptions/hooks/useRow.js +1 -1
  82. package/lib/Antd5/descriptions/index.js +45 -18
  83. package/lib/Antd5/descriptions/style/index.js +11 -2
  84. package/lib/Antd5/divider/index.js +32 -15
  85. package/lib/Antd5/divider/style/index.js +20 -7
  86. package/lib/Antd5/drawer/DrawerPanel.js +8 -10
  87. package/lib/Antd5/drawer/index.js +20 -17
  88. package/lib/Antd5/dropdown/dropdown-button.js +9 -3
  89. package/lib/Antd5/dropdown/dropdown.js +33 -35
  90. package/lib/Antd5/dropdown/style/index.js +1 -1
  91. package/lib/Antd5/empty/empty.js +2 -2
  92. package/lib/Antd5/empty/index.js +41 -23
  93. package/lib/Antd5/empty/simple.js +4 -4
  94. package/lib/Antd5/flex/style/index.js +2 -0
  95. package/lib/Antd5/float-button/FloatButton.js +12 -15
  96. package/lib/Antd5/float-button/FloatButtonContent.js +13 -7
  97. package/lib/Antd5/float-button/FloatButtonGroup.js +6 -6
  98. package/lib/Antd5/float-button/style/keyframes.js +4 -4
  99. package/lib/Antd5/form/ErrorList.js +1 -3
  100. package/lib/Antd5/form/Form.js +19 -19
  101. package/lib/Antd5/form/FormItem/index.js +1 -1
  102. package/lib/Antd5/form/FormItemLabel.js +12 -14
  103. package/lib/Antd5/form/context.js +3 -4
  104. package/lib/Antd5/form/hooks/useForm.js +16 -5
  105. package/lib/Antd5/form/hooks/useFormInstance.js +3 -3
  106. package/lib/Antd5/form/hooks/useFormItemStatus.js +7 -7
  107. package/lib/Antd5/form/hooks/useFormWarning.js +2 -2
  108. package/lib/Antd5/form/hooks/useFrameState.js +3 -4
  109. package/lib/Antd5/form/hooks/useItemRef.js +3 -2
  110. package/lib/Antd5/form/hooks/useVariants.js +5 -5
  111. package/lib/Antd5/form/style/index.js +22 -15
  112. package/lib/Antd5/grid/hooks/useBreakpoint.js +2 -1
  113. package/lib/Antd5/grid/hooks/useGutter.js +29 -0
  114. package/lib/Antd5/grid/row.js +8 -63
  115. package/lib/Antd5/grid/style/index.js +14 -8
  116. package/lib/Antd5/image/PreviewGroup.js +9 -2
  117. package/lib/Antd5/image/index.js +26 -17
  118. package/lib/Antd5/image/style/index.js +10 -10
  119. package/lib/Antd5/index.js +3 -1
  120. package/lib/Antd5/input/Group.js +5 -3
  121. package/lib/Antd5/input/Input.js +27 -20
  122. package/lib/Antd5/input/OTP/OTPInput.js +36 -19
  123. package/lib/Antd5/input/OTP/index.js +40 -19
  124. package/lib/Antd5/input/Password.js +7 -9
  125. package/lib/Antd5/input/Search.js +16 -9
  126. package/lib/Antd5/input/TextArea.js +90 -33
  127. package/lib/Antd5/input/style/index.js +31 -82
  128. package/lib/Antd5/input/style/otp.js +22 -6
  129. package/lib/Antd5/input/style/textarea.js +80 -0
  130. package/lib/Antd5/input/style/token.js +16 -7
  131. package/lib/Antd5/input/style/variants.js +67 -12
  132. package/lib/Antd5/input-number/index.js +1 -1
  133. package/lib/Antd5/input-number/style/index.js +10 -7
  134. package/lib/Antd5/input-number/style/token.js +6 -4
  135. package/lib/Antd5/layout/Sider.js +58 -68
  136. package/lib/Antd5/layout/layout.js +7 -5
  137. package/lib/Antd5/layout/style/sider.js +33 -42
  138. package/lib/Antd5/list/index.js +45 -45
  139. package/lib/Antd5/locale/ar_EG.js +7 -1
  140. package/lib/Antd5/locale/az_AZ.js +3 -2
  141. package/lib/Antd5/locale/bg_BG.js +8 -0
  142. package/lib/Antd5/locale/bn_BD.js +7 -1
  143. package/lib/Antd5/locale/by_BY.js +8 -2
  144. package/lib/Antd5/locale/ca_ES.js +7 -1
  145. package/lib/Antd5/locale/cs_CZ.js +19 -2
  146. package/lib/Antd5/locale/da_DK.js +8 -0
  147. package/lib/Antd5/locale/de_DE.js +4 -2
  148. package/lib/Antd5/locale/el_GR.js +3 -2
  149. package/lib/Antd5/locale/en_GB.js +8 -2
  150. package/lib/Antd5/locale/en_US.js +3 -2
  151. package/lib/Antd5/locale/es_ES.js +3 -2
  152. package/lib/Antd5/locale/et_EE.js +8 -2
  153. package/lib/Antd5/locale/eu_ES.js +3 -2
  154. package/lib/Antd5/locale/fa_IR.js +17 -7
  155. package/lib/Antd5/locale/fi_FI.js +8 -0
  156. package/lib/Antd5/locale/fr_BE.js +4 -1
  157. package/lib/Antd5/locale/fr_CA.js +9 -1
  158. package/lib/Antd5/locale/fr_FR.js +4 -1
  159. package/lib/Antd5/locale/ga_IE.js +7 -1
  160. package/lib/Antd5/locale/gl_ES.js +7 -1
  161. package/lib/Antd5/locale/he_IL.js +10 -1
  162. package/lib/Antd5/locale/hi_IN.js +7 -1
  163. package/lib/Antd5/locale/hr_HR.js +7 -1
  164. package/lib/Antd5/locale/hu_HU.js +8 -0
  165. package/lib/Antd5/locale/hy_AM.js +8 -3
  166. package/lib/Antd5/locale/id_ID.js +3 -2
  167. package/lib/Antd5/locale/is_IS.js +8 -0
  168. package/lib/Antd5/locale/it_IT.js +3 -2
  169. package/lib/Antd5/locale/ja_JP.js +3 -2
  170. package/lib/Antd5/locale/ka_GE.js +7 -1
  171. package/lib/Antd5/locale/kk_KZ.js +7 -1
  172. package/lib/Antd5/locale/km_KH.js +3 -0
  173. package/lib/Antd5/locale/kmr_IQ.js +8 -0
  174. package/lib/Antd5/locale/kn_IN.js +8 -2
  175. package/lib/Antd5/locale/ko_KR.js +3 -2
  176. package/lib/Antd5/locale/ku_IQ.js +8 -0
  177. package/lib/Antd5/locale/lt_LT.js +3 -2
  178. package/lib/Antd5/locale/lv_LV.js +8 -0
  179. package/lib/Antd5/locale/mk_MK.js +7 -1
  180. package/lib/Antd5/locale/ml_IN.js +7 -1
  181. package/lib/Antd5/locale/mn_MN.js +8 -2
  182. package/lib/Antd5/locale/ms_MY.js +3 -2
  183. package/lib/Antd5/locale/my_MM.js +3 -2
  184. package/lib/Antd5/locale/nb_NO.js +7 -1
  185. package/lib/Antd5/locale/ne_NP.js +3 -2
  186. package/lib/Antd5/locale/nl_BE.js +2 -1
  187. package/lib/Antd5/locale/nl_NL.js +2 -1
  188. package/lib/Antd5/locale/pl_PL.js +3 -2
  189. package/lib/Antd5/locale/pt_BR.js +3 -2
  190. package/lib/Antd5/locale/pt_PT.js +3 -2
  191. package/lib/Antd5/locale/ro_RO.js +7 -1
  192. package/lib/Antd5/locale/ru_RU.js +4 -3
  193. package/lib/Antd5/locale/si_LK.js +8 -2
  194. package/lib/Antd5/locale/sk_SK.js +8 -2
  195. package/lib/Antd5/locale/sl_SI.js +8 -0
  196. package/lib/Antd5/locale/sr_RS.js +7 -1
  197. package/lib/Antd5/locale/sv_SE.js +3 -2
  198. package/lib/Antd5/locale/ta_IN.js +8 -2
  199. package/lib/Antd5/locale/th_TH.js +3 -2
  200. package/lib/Antd5/locale/tk_TK.js +7 -1
  201. package/lib/Antd5/locale/tr_TR.js +8 -2
  202. package/lib/Antd5/locale/uk_UA.js +3 -2
  203. package/lib/Antd5/locale/ur_PK.js +7 -1
  204. package/lib/Antd5/locale/uz_UZ.js +5 -4
  205. package/lib/Antd5/locale/vi_VN.js +3 -2
  206. package/lib/Antd5/locale/zh_CN.js +3 -2
  207. package/lib/Antd5/locale/zh_HK.js +11 -3
  208. package/lib/Antd5/locale/zh_TW.js +11 -3
  209. package/lib/Antd5/mentions/index.js +1 -1
  210. package/lib/Antd5/mentions/style/index.js +12 -7
  211. package/lib/Antd5/menu/MenuItem.js +3 -1
  212. package/lib/Antd5/menu/OverrideContext.js +2 -2
  213. package/lib/Antd5/menu/menu.js +1 -7
  214. package/lib/Antd5/menu/style/index.js +9 -6
  215. package/lib/Antd5/menu/style/theme.js +4 -3
  216. package/lib/Antd5/menu/style/vertical.js +1 -1
  217. package/lib/Antd5/message/style/index.js +4 -3
  218. package/lib/Antd5/modal/ConfirmDialog.js +2 -19
  219. package/lib/Antd5/modal/Modal.js +67 -35
  220. package/lib/Antd5/modal/confirm.js +5 -3
  221. package/lib/Antd5/modal/style/confirm.js +3 -1
  222. package/lib/Antd5/modal/style/index.js +21 -1
  223. package/lib/Antd5/modal/useModal/HookModal.js +2 -1
  224. package/lib/Antd5/notification/PurePanel.js +13 -6
  225. package/lib/Antd5/notification/index.js +3 -4
  226. package/lib/Antd5/notification/style/index.js +4 -3
  227. package/lib/Antd5/notification/style/stack.js +2 -1
  228. package/lib/Antd5/notification/useNotification.js +9 -4
  229. package/lib/Antd5/notification/util.js +9 -0
  230. package/lib/Antd5/pagination/Pagination.js +87 -20
  231. package/lib/Antd5/pagination/style/index.js +2 -10
  232. package/lib/Antd5/pagination/useShowSizeChanger.js +13 -0
  233. package/lib/Antd5/popconfirm/index.js +21 -6
  234. package/lib/Antd5/popover/index.js +21 -8
  235. package/lib/Antd5/progress/Steps.js +6 -2
  236. package/lib/Antd5/progress/progress.js +2 -2
  237. package/lib/Antd5/progress/utils.js +3 -3
  238. package/lib/Antd5/qr-code/style/index.js +2 -2
  239. package/lib/Antd5/segmented/index.js +16 -8
  240. package/lib/Antd5/segmented/style/index.js +14 -6
  241. package/lib/Antd5/select/index.js +45 -16
  242. package/lib/Antd5/select/style/dropdown.js +10 -9
  243. package/lib/Antd5/select/style/index.js +14 -10
  244. package/lib/Antd5/select/style/single.js +6 -3
  245. package/lib/Antd5/select/style/variants.js +55 -1
  246. package/lib/Antd5/skeleton/Paragraph.js +5 -8
  247. package/lib/Antd5/skeleton/Skeleton.js +8 -7
  248. package/lib/Antd5/slider/SliderTooltip.js +3 -2
  249. package/lib/Antd5/slider/index.js +43 -17
  250. package/lib/Antd5/slider/style/index.js +3 -3
  251. package/lib/Antd5/slider/useRafLock.js +1 -1
  252. package/lib/Antd5/space/Compact.js +8 -6
  253. package/lib/Antd5/space/index.js +16 -12
  254. package/lib/Antd5/spin/index.js +11 -9
  255. package/lib/Antd5/spin/style/index.js +1 -3
  256. package/lib/Antd5/spin/usePercent.js +1 -1
  257. package/lib/Antd5/splitter/SplitBar.js +56 -7
  258. package/lib/Antd5/splitter/Splitter.js +27 -17
  259. package/lib/Antd5/splitter/hooks/useResizable.js +3 -3
  260. package/lib/Antd5/splitter/hooks/useResize.js +17 -6
  261. package/lib/Antd5/splitter/style/index.js +32 -6
  262. package/lib/Antd5/statistic/Countdown.js +8 -61
  263. package/lib/Antd5/statistic/Statistic.js +17 -9
  264. package/lib/Antd5/statistic/Timer.js +91 -0
  265. package/lib/Antd5/statistic/index.js +2 -0
  266. package/lib/Antd5/statistic/utils.js +2 -2
  267. package/lib/Antd5/steps/index.js +8 -7
  268. package/lib/Antd5/steps/style/index.js +1 -1
  269. package/lib/Antd5/style/index.js +9 -4
  270. package/lib/Antd5/switch/style/index.js +2 -2
  271. package/lib/Antd5/table/InternalTable.js +6 -5
  272. package/lib/Antd5/table/hooks/useFilter/FilterDropdown.js +15 -11
  273. package/lib/Antd5/table/hooks/useFilter/FilterSearch.js +1 -1
  274. package/lib/Antd5/table/hooks/useFilter/index.js +3 -2
  275. package/lib/Antd5/table/hooks/useSelection.js +11 -3
  276. package/lib/Antd5/table/hooks/useSorter.js +4 -3
  277. package/lib/Antd5/table/style/filter.js +2 -2
  278. package/lib/Antd5/table/style/index.js +9 -9
  279. package/lib/Antd5/table/style/sorter.js +2 -1
  280. package/lib/Antd5/table/style/sticky.js +1 -1
  281. package/lib/Antd5/tabs/hooks/useLegacyItems.js +11 -4
  282. package/lib/Antd5/tabs/index.js +9 -2
  283. package/lib/Antd5/tabs/style/index.js +44 -23
  284. package/lib/Antd5/tag/style/index.js +3 -3
  285. package/lib/Antd5/theme/context.js +1 -3
  286. package/lib/Antd5/theme/getDesignToken.js +2 -2
  287. package/lib/Antd5/theme/themes/dark/colorAlgorithm.js +3 -3
  288. package/lib/Antd5/theme/themes/dark/index.js +13 -3
  289. package/lib/Antd5/theme/themes/default/colorAlgorithm.js +3 -3
  290. package/lib/Antd5/theme/themes/default/index.js +5 -1
  291. package/lib/Antd5/theme/themes/default/theme.js +4 -0
  292. package/lib/Antd5/theme/themes/shared/genColorMapToken.js +3 -3
  293. package/lib/Antd5/theme/themes/shared/genFontSizes.js +3 -1
  294. package/lib/Antd5/theme/util/alias.js +2 -2
  295. package/lib/Antd5/theme/util/genStyleUtils.js +9 -11
  296. package/lib/Antd5/theme/util/getAlphaColor.js +12 -12
  297. package/lib/Antd5/theme/util/useResetIconStyle.js +2 -10
  298. package/lib/Antd5/time-picker/index.js +1 -1
  299. package/lib/Antd5/timeline/TimelineItemList.js +1 -1
  300. package/lib/Antd5/tooltip/index.js +46 -31
  301. package/lib/Antd5/tooltip/style/index.js +13 -4
  302. package/lib/Antd5/tour/index.js +4 -2
  303. package/lib/Antd5/tour/panelRender.js +42 -27
  304. package/lib/Antd5/tour/style/index.js +3 -3
  305. package/lib/Antd5/transfer/ListItem.js +1 -1
  306. package/lib/Antd5/transfer/hooks/useData.js +8 -4
  307. package/lib/Antd5/transfer/hooks/useSelection.js +5 -4
  308. package/lib/Antd5/transfer/index.js +6 -2
  309. package/lib/Antd5/transfer/list.js +32 -13
  310. package/lib/Antd5/transfer/search.js +1 -1
  311. package/lib/Antd5/transfer/style/index.js +3 -1
  312. package/lib/Antd5/tree/DirectoryTree.js +2 -2
  313. package/lib/Antd5/tree/style/index.js +9 -3
  314. package/lib/Antd5/tree-select/index.js +61 -18
  315. package/lib/Antd5/tree-select/style/index.js +1 -1
  316. package/lib/Antd5/typography/Base/Ellipsis.js +3 -3
  317. package/lib/Antd5/typography/Base/index.js +20 -13
  318. package/lib/Antd5/typography/Editable.js +1 -1
  319. package/lib/Antd5/typography/Typography.js +8 -7
  320. package/lib/Antd5/typography/hooks/useCopyClick.js +24 -25
  321. package/lib/Antd5/typography/hooks/usePrevious.js +1 -1
  322. package/lib/Antd5/typography/style/index.js +5 -5
  323. package/lib/Antd5/typography/style/mixins.js +1 -1
  324. package/lib/Antd5/upload/Upload.js +22 -24
  325. package/lib/Antd5/version/index.js +0 -1
  326. package/lib/Antd5/version/token-meta.json +1 -0
  327. package/lib/Antd5/version/token.json +1 -0
  328. package/lib/Antd5/version/version.js +1 -1
  329. package/lib/Antd5/watermark/context.js +1 -1
  330. package/lib/Antd5/watermark/index.js +20 -13
  331. package/lib/Antd5/watermark/useClips.js +18 -16
  332. package/lib/Antd5/watermark/useRafDebounce.js +1 -1
  333. package/lib/Antd5/watermark/useSingletonCache.js +19 -0
  334. package/lib/Antd5/watermark/useWatermark.js +9 -18
  335. package/lib/CWCascader/rc-cascader/OptionList/Column.js +17 -18
  336. package/lib/CWMessage/MessageContent/TabList/index.js +10 -10
  337. package/lib/CWMessage/MessageContent/index.js +26 -28
  338. package/lib/CWMessage/index.js +42 -46
  339. package/lib/CWRangePicker/index.js +15 -15
  340. package/lib/CWRangePicker/utils/generate/dayjs.js +112 -23
  341. package/lib/CWRangePicker/utils/generate/moment.js +109 -21
  342. package/lib/CWSelect/index.js +423 -150
  343. package/lib/CWTable/CWTable.js +11 -11
  344. package/lib/Joyride/index.js +3 -3
  345. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +38 -39
  346. package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +22 -23
  347. package/lib/QuickTransfer/index.js +13 -13
  348. package/lib/SearchBar/index.js +7 -7
  349. package/lib/SingleSpa/index.js +22 -24
  350. package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useMouse.js +3 -3
  351. package/lib/TimeRangeSlider/index.js +6 -6
  352. package/lib/TimeRangeSlider/utils/generate/dayjs.js +109 -20
  353. package/lib/TimeRangeSlider/utils/generate/moment.js +109 -20
  354. package/lib/TimeZoneSelect/index.js +21 -22
  355. package/package.json +35 -34
  356. package/lib/Antd5/_util/isNumeric.js +0 -4
  357. package/lib/Antd5/pagination/Select.js +0 -24
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker"];
2
+ var _excluded = ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"];
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -19,7 +19,7 @@ import { forwardRef, useContext, useImperativeHandle } from 'react';
19
19
  import CalendarOutlined from '@ant-design/icons/CalendarOutlined';
20
20
  import ClockCircleOutlined from '@ant-design/icons/ClockCircleOutlined';
21
21
  import SwapRightOutlined from '@ant-design/icons/SwapRightOutlined';
22
- import classNames from 'classnames';
22
+ import cls from 'classnames';
23
23
  import { RangePicker as RCRangePicker } from 'rc-picker';
24
24
  import ContextIsolator from '../../_util/ContextIsolator';
25
25
  import { useZIndex } from '../../_util/hooks/useZIndex';
@@ -38,9 +38,10 @@ import useStyle from '../style';
38
38
  import { getRangePlaceholder, useIcons } from '../util';
39
39
  import { TIME } from './constant';
40
40
  import useComponents from './useComponents';
41
+ import useMergedPickerSemantic from '../hooks/useMergedPickerSemantic';
41
42
  var generateRangePicker = function generateRangePicker(generateConfig) {
42
43
  var RangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
43
- var _props$popupStyle;
44
+ var _mergedStyles$popup$r;
44
45
  var customizePrefixCls = props.prefixCls,
45
46
  customGetPopupContainer = props.getPopupContainer,
46
47
  components = props.components,
@@ -52,13 +53,17 @@ var generateRangePicker = function generateRangePicker(generateConfig) {
52
53
  _props$bordered = props.bordered,
53
54
  bordered = _props$bordered === void 0 ? true : _props$bordered,
54
55
  placeholder = props.placeholder,
56
+ popupStyle = props.popupStyle,
55
57
  popupClassName = props.popupClassName,
56
58
  dropdownClassName = props.dropdownClassName,
57
59
  customStatus = props.status,
58
60
  rootClassName = props.rootClassName,
59
61
  customVariant = props.variant,
60
62
  picker = props.picker,
63
+ styles = props.styles,
64
+ classNames = props.classNames,
61
65
  restProps = _objectWithoutProperties(props, _excluded);
66
+ var pickerType = picker === TIME ? 'timePicker' : 'datePicker';
62
67
  var innerRef = React.useRef(null);
63
68
  var _useContext = useContext(ConfigContext),
64
69
  getPrefixCls = _useContext.getPrefixCls,
@@ -83,9 +88,25 @@ var generateRangePicker = function generateRangePicker(generateConfig) {
83
88
  // =================== Warning =====================
84
89
  if (process.env.NODE_ENV !== 'production') {
85
90
  var warning = devUseWarning('DatePicker.RangePicker');
86
- warning.deprecated(!dropdownClassName, 'dropdownClassName', 'popupClassName');
87
- warning.deprecated(!('bordered' in props), 'bordered', 'variant');
91
+ // ==================== Deprecated =====================
92
+ var deprecatedProps = {
93
+ dropdownClassName: 'classNames.popup.root',
94
+ popupClassName: 'classNames.popup.root',
95
+ popupStyle: 'styles.popup.root',
96
+ bordered: 'variant',
97
+ onSelect: 'onCalendarChange'
98
+ };
99
+ Object.entries(deprecatedProps).forEach(function (_ref) {
100
+ var _ref2 = _slicedToArray(_ref, 2),
101
+ oldProp = _ref2[0],
102
+ newProp = _ref2[1];
103
+ warning.deprecated(!(oldProp in props), oldProp, newProp);
104
+ });
88
105
  }
106
+ var _useMergedPickerSeman = useMergedPickerSemantic(pickerType, classNames, styles, popupClassName || dropdownClassName, popupStyle),
107
+ _useMergedPickerSeman2 = _slicedToArray(_useMergedPickerSeman, 2),
108
+ mergedClassNames = _useMergedPickerSeman2[0],
109
+ mergedStyles = _useMergedPickerSeman2[1];
89
110
  // ===================== Icon =====================
90
111
  var _useIcons = useIcons(props, prefixCls),
91
112
  _useIcons2 = _slicedToArray(_useIcons, 1),
@@ -94,8 +115,8 @@ var generateRangePicker = function generateRangePicker(generateConfig) {
94
115
  var mergedComponents = useComponents(components);
95
116
  // ===================== Size =====================
96
117
  var mergedSize = useSize(function (ctx) {
97
- var _ref;
98
- return (_ref = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _ref !== void 0 ? _ref : ctx;
118
+ var _ref3;
119
+ return (_ref3 = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _ref3 !== void 0 ? _ref3 : ctx;
99
120
  });
100
121
  // ===================== Disabled =====================
101
122
  var disabled = React.useContext(DisabledContext);
@@ -116,7 +137,7 @@ var generateRangePicker = function generateRangePicker(generateConfig) {
116
137
  contextLocale = _useLocale2[0];
117
138
  var locale = _objectSpread(_objectSpread({}, contextLocale), props.locale);
118
139
  // ============================ zIndex ============================
119
- var _useZIndex = useZIndex('DatePicker', (_props$popupStyle = props.popupStyle) === null || _props$popupStyle === void 0 ? void 0 : _props$popupStyle.zIndex),
140
+ var _useZIndex = useZIndex('DatePicker', (_mergedStyles$popup$r = mergedStyles.popup.root) === null || _mergedStyles$popup$r === void 0 ? void 0 : _mergedStyles$popup$r.zIndex),
120
141
  _useZIndex2 = _slicedToArray(_useZIndex, 1),
121
142
  zIndex = _useZIndex2[0];
122
143
  return wrapCSSVar(_jsx(ContextIsolator, {
@@ -147,8 +168,8 @@ var generateRangePicker = function generateRangePicker(generateConfig) {
147
168
  transitionName: "".concat(rootPrefixCls, "-slide-up"),
148
169
  picker: picker
149
170
  }, restProps), {}, {
150
- className: classNames(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-").concat(mergedSize), mergedSize), "".concat(prefixCls, "-").concat(variant), enableVariantCls), getStatusClassNames(prefixCls, getMergedStatus(contextStatus, customStatus), hasFeedback), hashId, compactItemClassnames, className, rangePicker === null || rangePicker === void 0 ? void 0 : rangePicker.className, cssVarCls, rootCls, rootClassName),
151
- style: _objectSpread(_objectSpread({}, rangePicker === null || rangePicker === void 0 ? void 0 : rangePicker.style), style),
171
+ className: cls(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-").concat(mergedSize), mergedSize), "".concat(prefixCls, "-").concat(variant), enableVariantCls), getStatusClassNames(prefixCls, getMergedStatus(contextStatus, customStatus), hasFeedback), hashId, compactItemClassnames, className, rangePicker === null || rangePicker === void 0 ? void 0 : rangePicker.className, cssVarCls, rootCls, rootClassName, mergedClassNames.root),
172
+ style: _objectSpread(_objectSpread(_objectSpread({}, rangePicker === null || rangePicker === void 0 ? void 0 : rangePicker.style), style), mergedStyles.root),
152
173
  locale: locale.lang,
153
174
  prefixCls: prefixCls,
154
175
  getPopupContainer: customGetPopupContainer || getPopupContainer,
@@ -156,10 +177,10 @@ var generateRangePicker = function generateRangePicker(generateConfig) {
156
177
  components: mergedComponents,
157
178
  direction: direction,
158
179
  classNames: {
159
- popup: classNames(hashId, popupClassName || dropdownClassName, cssVarCls, rootCls, rootClassName)
180
+ popup: cls(hashId, cssVarCls, rootCls, rootClassName, mergedClassNames.popup.root)
160
181
  },
161
182
  styles: {
162
- popup: _objectSpread(_objectSpread({}, props.popupStyle), {}, {
183
+ popup: _objectSpread(_objectSpread({}, mergedStyles.popup.root), {}, {
163
184
  zIndex: zIndex
164
185
  })
165
186
  },
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange"];
2
+ var _excluded = ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"];
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -18,7 +18,7 @@ import * as React from 'react';
18
18
  import { forwardRef, useContext, useImperativeHandle } from 'react';
19
19
  import CalendarOutlined from '@ant-design/icons/CalendarOutlined';
20
20
  import ClockCircleOutlined from '@ant-design/icons/ClockCircleOutlined';
21
- import classNames from 'classnames';
21
+ import cls from 'classnames';
22
22
  import RCPicker from 'rc-picker';
23
23
  import ContextIsolator from '../../_util/ContextIsolator';
24
24
  import { useZIndex } from '../../_util/hooks/useZIndex';
@@ -37,11 +37,12 @@ import useStyle from '../style';
37
37
  import { getPlaceholder, useIcons } from '../util';
38
38
  import { MONTH, MONTHPICKER, QUARTER, QUARTERPICKER, TIME, TIMEPICKER, WEEK, WEEKPICKER, YEAR, YEARPICKER } from './constant';
39
39
  import useComponents from './useComponents';
40
+ import useMergedPickerSemantic from '../hooks/useMergedPickerSemantic';
40
41
  var generatePicker = function generatePicker(generateConfig) {
41
42
  var getPicker = function getPicker(picker, displayName) {
42
43
  var consumerName = displayName === TIMEPICKER ? 'timePicker' : 'datePicker';
43
44
  var Picker = /*#__PURE__*/forwardRef(function (props, ref) {
44
- var _props$popupStyle;
45
+ var _mergedStyles$popup$r;
45
46
  var customizePrefixCls = props.prefixCls,
46
47
  customizeGetPopupContainer = props.getPopupContainer,
47
48
  components = props.components,
@@ -52,12 +53,15 @@ var generatePicker = function generatePicker(generateConfig) {
52
53
  bordered = props.bordered,
53
54
  placement = props.placement,
54
55
  placeholder = props.placeholder,
56
+ popupStyle = props.popupStyle,
55
57
  popupClassName = props.popupClassName,
56
58
  dropdownClassName = props.dropdownClassName,
57
59
  customDisabled = props.disabled,
58
60
  customStatus = props.status,
59
61
  customVariant = props.variant,
60
62
  onCalendarChange = props.onCalendarChange,
63
+ styles = props.styles,
64
+ classNames = props.classNames,
61
65
  restProps = _objectWithoutProperties(props, _excluded);
62
66
  var _useContext = useContext(ConfigContext),
63
67
  getPrefixCls = _useContext.getPrefixCls,
@@ -101,10 +105,25 @@ var generatePicker = function generatePicker(generateConfig) {
101
105
  if (process.env.NODE_ENV !== 'production') {
102
106
  var warning = devUseWarning(displayName || 'DatePicker');
103
107
  warning(picker !== 'quarter', 'deprecated', "DatePicker.".concat(displayName, " is legacy usage. Please use DatePicker[picker='").concat(picker, "'] directly."));
104
- warning.deprecated(!dropdownClassName, 'dropdownClassName', 'popupClassName');
105
- warning.deprecated(!('bordered' in props), 'bordered', 'variant');
106
- warning.deprecated(!hasLegacyOnSelect, 'onSelect', 'onCalendarChange');
108
+ // ==================== Deprecated =====================
109
+ var deprecatedProps = {
110
+ dropdownClassName: 'classNames.popup.root',
111
+ popupClassName: 'classNames.popup.root',
112
+ popupStyle: 'styles.popup.root',
113
+ bordered: 'variant',
114
+ onSelect: 'onCalendarChange'
115
+ };
116
+ Object.entries(deprecatedProps).forEach(function (_ref) {
117
+ var _ref2 = _slicedToArray(_ref, 2),
118
+ oldProp = _ref2[0],
119
+ newProp = _ref2[1];
120
+ warning.deprecated(!(oldProp in props), oldProp, newProp);
121
+ });
107
122
  }
123
+ var _useMergedPickerSeman = useMergedPickerSemantic(consumerName, classNames, styles, popupClassName || dropdownClassName, popupStyle),
124
+ _useMergedPickerSeman2 = _slicedToArray(_useMergedPickerSeman, 2),
125
+ mergedClassNames = _useMergedPickerSeman2[0],
126
+ mergedStyles = _useMergedPickerSeman2[1];
108
127
  // ===================== Icon =====================
109
128
  var _useIcons = useIcons(props, prefixCls),
110
129
  _useIcons2 = _slicedToArray(_useIcons, 2),
@@ -114,8 +133,8 @@ var generatePicker = function generatePicker(generateConfig) {
114
133
  var mergedComponents = useComponents(components);
115
134
  // ===================== Size =====================
116
135
  var mergedSize = useSize(function (ctx) {
117
- var _ref;
118
- return (_ref = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _ref !== void 0 ? _ref : ctx;
136
+ var _ref3;
137
+ return (_ref3 = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _ref3 !== void 0 ? _ref3 : ctx;
119
138
  });
120
139
  // ===================== Disabled =====================
121
140
  var disabled = React.useContext(DisabledContext);
@@ -133,7 +152,7 @@ var generatePicker = function generatePicker(generateConfig) {
133
152
  contextLocale = _useLocale2[0];
134
153
  var locale = _objectSpread(_objectSpread({}, contextLocale), props.locale);
135
154
  // ============================ zIndex ============================
136
- var _useZIndex = useZIndex('DatePicker', (_props$popupStyle = props.popupStyle) === null || _props$popupStyle === void 0 ? void 0 : _props$popupStyle.zIndex),
155
+ var _useZIndex = useZIndex('DatePicker', (_mergedStyles$popup$r = mergedStyles.popup.root) === null || _mergedStyles$popup$r === void 0 ? void 0 : _mergedStyles$popup$r.zIndex),
137
156
  _useZIndex2 = _slicedToArray(_useZIndex, 1),
138
157
  zIndex = _useZIndex2[0];
139
158
  return wrapCSSVar(_jsx(ContextIsolator, {
@@ -160,8 +179,8 @@ var generatePicker = function generatePicker(generateConfig) {
160
179
  onCalendarChange: onInternalCalendarChange
161
180
  }, additionalProps), restProps), {}, {
162
181
  locale: locale.lang,
163
- className: classNames(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-").concat(mergedSize), mergedSize), "".concat(prefixCls, "-").concat(variant), enableVariantCls), getStatusClassNames(prefixCls, getMergedStatus(contextStatus, customStatus), hasFeedback), hashId, compactItemClassnames, consumerStyle === null || consumerStyle === void 0 ? void 0 : consumerStyle.className, className, cssVarCls, rootCls, rootClassName),
164
- style: _objectSpread(_objectSpread({}, consumerStyle === null || consumerStyle === void 0 ? void 0 : consumerStyle.style), style),
182
+ className: cls(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-").concat(mergedSize), mergedSize), "".concat(prefixCls, "-").concat(variant), enableVariantCls), getStatusClassNames(prefixCls, getMergedStatus(contextStatus, customStatus), hasFeedback), hashId, compactItemClassnames, consumerStyle === null || consumerStyle === void 0 ? void 0 : consumerStyle.className, className, cssVarCls, rootCls, rootClassName, mergedClassNames.root),
183
+ style: _objectSpread(_objectSpread(_objectSpread({}, consumerStyle === null || consumerStyle === void 0 ? void 0 : consumerStyle.style), style), mergedStyles.root),
165
184
  prefixCls: prefixCls,
166
185
  getPopupContainer: customizeGetPopupContainer || getPopupContainer,
167
186
  generateConfig: generateConfig,
@@ -169,10 +188,10 @@ var generatePicker = function generatePicker(generateConfig) {
169
188
  direction: direction,
170
189
  disabled: mergedDisabled,
171
190
  classNames: {
172
- popup: classNames(hashId, cssVarCls, rootCls, rootClassName, popupClassName || dropdownClassName)
191
+ popup: cls(hashId, cssVarCls, rootCls, rootClassName, mergedClassNames.popup.root)
173
192
  },
174
193
  styles: {
175
- popup: _objectSpread(_objectSpread({}, props.popupStyle), {}, {
194
+ popup: _objectSpread(_objectSpread({}, mergedStyles.popup.root), {}, {
176
195
  zIndex: zIndex
177
196
  })
178
197
  },
@@ -0,0 +1,47 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
10
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
+ import * as React from 'react';
14
+ import cls from 'classnames';
15
+ import useMergeSemantic from '../../_util/hooks/useMergeSemantic';
16
+ import { useComponentConfig } from '../../config-provider/context';
17
+ var useMergedPickerSemantic = function useMergedPickerSemantic(pickerType, classNames, styles, popupClassName, popupStyle) {
18
+ var _useComponentConfig = useComponentConfig(pickerType),
19
+ contextClassNames = _useComponentConfig.classNames,
20
+ contextStyles = _useComponentConfig.styles;
21
+ var _useMergeSemantic = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {
22
+ popup: {
23
+ _default: 'root'
24
+ }
25
+ }),
26
+ _useMergeSemantic2 = _slicedToArray(_useMergeSemantic, 2),
27
+ mergedClassNames = _useMergeSemantic2[0],
28
+ mergedStyles = _useMergeSemantic2[1];
29
+ return React.useMemo(function () {
30
+ var _mergedClassNames$pop, _mergedStyles$popup;
31
+ // ClassNames
32
+ var filledClassNames = _objectSpread(_objectSpread({}, mergedClassNames), {}, {
33
+ popup: _objectSpread(_objectSpread({}, mergedClassNames.popup), {}, {
34
+ root: cls((_mergedClassNames$pop = mergedClassNames.popup) === null || _mergedClassNames$pop === void 0 ? void 0 : _mergedClassNames$pop.root, popupClassName)
35
+ })
36
+ });
37
+ // Styles
38
+ var filledStyles = _objectSpread(_objectSpread({}, mergedStyles), {}, {
39
+ popup: _objectSpread(_objectSpread({}, mergedStyles.popup), {}, {
40
+ root: _objectSpread(_objectSpread({}, (_mergedStyles$popup = mergedStyles.popup) === null || _mergedStyles$popup === void 0 ? void 0 : _mergedStyles$popup.root), popupStyle)
41
+ })
42
+ });
43
+ // Return
44
+ return [filledClassNames, filledStyles];
45
+ }, [mergedClassNames, mergedStyles, popupClassName, popupStyle]);
46
+ };
47
+ export default useMergedPickerSemantic;
@@ -4,9 +4,9 @@ import generatePicker from './generatePicker';
4
4
  var DatePicker = generatePicker(dayjsGenerateConfig);
5
5
  // We don't care debug panel
6
6
  /* istanbul ignore next */
7
- var PurePanel = genPurePanel(DatePicker, 'picker', null);
7
+ var PurePanel = genPurePanel(DatePicker, 'popupAlign', undefined, 'picker');
8
8
  DatePicker._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
9
- var PureRangePanel = genPurePanel(DatePicker.RangePicker, 'picker', null);
9
+ var PureRangePanel = genPurePanel(DatePicker.RangePicker, 'popupAlign', undefined, 'picker');
10
10
  DatePicker._InternalRangePanelDoNotUseOrYouWillBeFired = PureRangePanel;
11
11
  DatePicker.generatePicker = generatePicker;
12
12
  export default DatePicker;
@@ -12,19 +12,12 @@ var locale = {
12
12
  placeholder: 'اختيار التاريخ',
13
13
  rangePlaceholder: ['البداية', 'النهاية'],
14
14
  yearFormat: 'YYYY',
15
- dateFormat: 'D/M/YYYY',
16
- dayFormat: 'D',
17
- dateTimeFormat: 'DD/MM/YYYY HH:mm:ss',
18
15
  monthFormat: 'MMMM',
19
16
  monthBeforeYear: true,
20
17
  shortWeekDays: ['الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
21
18
  shortMonths: ['يناير', 'فبراير', 'مارس', 'إبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر']
22
19
  }, CalendarLocale),
23
- timePickerLocale: _objectSpread({}, TimePickerLocale),
24
- dateFormat: 'DD-MM-YYYY',
25
- monthFormat: 'MM-YYYY',
26
- dateTimeFormat: 'DD-MM-YYYY HH:mm:ss',
27
- weekFormat: 'wo-YYYY'
20
+ timePickerLocale: _objectSpread({}, TimePickerLocale)
28
21
  };
29
22
  // All settings at:
30
23
  // https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
@@ -16,10 +16,11 @@
16
16
  "yearSelect": "Choose a year",
17
17
  "decadeSelect": "Choose a decade",
18
18
  "yearFormat": "YYYY",
19
- "dateFormat": "M/D/YYYY",
20
- "dayFormat": "D",
21
- "dateTimeFormat": "M/D/YYYY HH:mm:ss",
19
+ "fieldDateFormat": "M/D/YYYY",
20
+ "cellDateFormat": "D",
21
+ "fieldDateTimeFormat": "M/D/YYYY HH:mm:ss",
22
22
  "monthFormat": "MMMM",
23
+ "fieldWeekFormat": "YYYY-wo",
23
24
  "monthBeforeYear": true,
24
25
  "previousMonth": "Previous month (PageUp)",
25
26
  "nextMonth": "Next month (PageDown)",
@@ -47,9 +48,5 @@
47
48
  },
48
49
  "timePickerLocale": {
49
50
  "placeholder": "Select time"
50
- },
51
- "dateFormat": "YYYY-MM-DD",
52
- "dateTimeFormat": "YYYY-MM-DD HH:mm:ss",
53
- "weekFormat": "YYYY-wo",
54
- "monthFormat": "YYYY-MM"
51
+ }
55
52
  }
@@ -10,7 +10,17 @@ import TimePickerLocale from '../../time-picker/locale/ko_KR';
10
10
  var locale = {
11
11
  lang: _objectSpread({
12
12
  placeholder: '날짜 선택',
13
- rangePlaceholder: ['시작일', '종료일']
13
+ yearPlaceholder: '연도 선택',
14
+ quarterPlaceholder: '분기 선택',
15
+ monthPlaceholder: '월 선택',
16
+ weekPlaceholder: '주 선택',
17
+ rangePlaceholder: ['시작일', '종료일'],
18
+ rangeYearPlaceholder: ['시작 연도', '종료 연도'],
19
+ rangeMonthPlaceholder: ['시작 월', '종료 월'],
20
+ rangeQuarterPlaceholder: ['시작 분기', '종료 분기'],
21
+ rangeWeekPlaceholder: ['시작 주', '종료 주'],
22
+ shortWeekDays: ['일', '월', '화', '수', '목', '금', '토'],
23
+ shortMonths: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월']
14
24
  }, CalendarLocale),
15
25
  timePickerLocale: _objectSpread({}, TimePickerLocale)
16
26
  };
@@ -12,9 +12,6 @@ var locale = {
12
12
  placeholder: 'Wybierz datę',
13
13
  rangePlaceholder: ['Data początkowa', 'Data końcowa'],
14
14
  yearFormat: 'YYYY',
15
- dateFormat: 'M/D/YYYY',
16
- dayFormat: 'D',
17
- dateTimeFormat: 'M/D/YYYY HH:mm:ss',
18
15
  monthFormat: 'MMMM',
19
16
  monthBeforeYear: true,
20
17
  shortWeekDays: ['Niedz', 'Pon', 'Wt', 'Śr', 'Czw', 'Pt', 'Sob'],
@@ -24,9 +24,6 @@ var locale = {
24
24
  yearSelect: 'Selecionar ano',
25
25
  decadeSelect: 'Selecionar década',
26
26
  yearFormat: 'YYYY',
27
- dateFormat: 'D/M/YYYY',
28
- dayFormat: 'D',
29
- dateTimeFormat: 'D/M/YYYY HH:mm:ss',
30
27
  monthFormat: 'MMMM',
31
28
  monthBeforeYear: false,
32
29
  previousMonth: 'Mês anterior (PageUp)',
@@ -16,6 +16,7 @@ var locale = {
16
16
  backToToday: 'Nazaj na trenutni datum',
17
17
  ok: 'OK',
18
18
  clear: 'Počisti',
19
+ week: 'Teden',
19
20
  month: 'Mesec',
20
21
  year: 'Leto',
21
22
  timeSelect: 'Izberi čas',
@@ -24,9 +25,6 @@ var locale = {
24
25
  yearSelect: 'Izberite leto',
25
26
  decadeSelect: 'Izberite desetletje',
26
27
  yearFormat: 'YYYY',
27
- dateFormat: 'D.M.YYYY',
28
- dayFormat: 'D',
29
- dateTimeFormat: 'D.M.YYYY HH:mm:ss',
30
28
  monthFormat: 'MMMM',
31
29
  monthBeforeYear: true,
32
30
  previousMonth: 'Prejšnji mesec (PageUp)',
@@ -53,7 +53,7 @@ var genPickerStyle = function genPickerStyle(token) {
53
53
  paddingInlineSM = token.paddingInlineSM,
54
54
  paddingXS = token.paddingXS,
55
55
  marginXS = token.marginXS,
56
- colorTextDescription = token.colorTextDescription,
56
+ colorIcon = token.colorIcon,
57
57
  lineWidthBold = token.lineWidthBold,
58
58
  colorPrimary = token.colorPrimary,
59
59
  motionDurationSlow = token.motionDurationSlow,
@@ -80,6 +80,7 @@ var genPickerStyle = function genPickerStyle(token) {
80
80
  borderRadius: borderRadius,
81
81
  transition: "border ".concat(motionDurationMid, ", box-shadow ").concat(motionDurationMid, ", background ").concat(motionDurationMid)
82
82
  }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread4, "".concat(componentCls, "-prefix"), {
83
+ flex: '0 0 auto',
83
84
  marginInlineEnd: token.inputAffixPadding
84
85
  }), "".concat(componentCls, "-input"), {
85
86
  position: 'relative',
@@ -151,7 +152,7 @@ var genPickerStyle = function genPickerStyle(token) {
151
152
  verticalAlign: 'top'
152
153
  },
153
154
  '&:hover': {
154
- color: colorTextDescription
155
+ color: colorIcon
155
156
  }
156
157
  }), '&:hover', _defineProperty(_defineProperty({}, "".concat(componentCls, "-clear"), {
157
158
  opacity: 1
@@ -167,7 +168,7 @@ var genPickerStyle = function genPickerStyle(token) {
167
168
  verticalAlign: 'top',
168
169
  cursor: 'default'
169
170
  }, "".concat(componentCls, "-focused &"), {
170
- color: colorTextDescription
171
+ color: colorIcon
171
172
  }), "".concat(componentCls, "-range-separator &"), _defineProperty({}, "".concat(componentCls, "-disabled &"), {
172
173
  cursor: 'not-allowed'
173
174
  }))), '&-range', _defineProperty(_defineProperty(_defineProperty({
@@ -213,6 +214,8 @@ var genPickerStyle = function genPickerStyle(token) {
213
214
  bottom: 0,
214
215
  display: 'block',
215
216
  transform: 'translateY(100%) rotate(180deg)'
217
+ })), "&".concat(antCls, "-slide-up-appear, &").concat(antCls, "-slide-up-enter"), _defineProperty({}, "".concat(componentCls, "-range-arrow").concat(componentCls, "-range-arrow"), {
218
+ transition: 'none'
216
219
  })), "&".concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active").concat(componentCls, "-dropdown-placement-topLeft,\n &").concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active").concat(componentCls, "-dropdown-placement-topRight,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active").concat(componentCls, "-dropdown-placement-topLeft,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active").concat(componentCls, "-dropdown-placement-topRight"), {
217
220
  animationName: slideDownIn
218
221
  }), "&".concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active").concat(componentCls, "-dropdown-placement-bottomLeft,\n &").concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active").concat(componentCls, "-dropdown-placement-bottomRight,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active").concat(componentCls, "-dropdown-placement-bottomLeft,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active").concat(componentCls, "-dropdown-placement-bottomRight"), {
@@ -223,9 +226,9 @@ var genPickerStyle = function genPickerStyle(token) {
223
226
  animationName: slideDownOut
224
227
  }), "&".concat(antCls, "-slide-up-leave").concat(antCls, "-slide-up-leave-active").concat(componentCls, "-dropdown-placement-bottomLeft,\n &").concat(antCls, "-slide-up-leave").concat(antCls, "-slide-up-leave-active").concat(componentCls, "-dropdown-placement-bottomRight"), {
225
228
  animationName: slideUpOut
226
- }), "".concat(componentCls, "-panel > ").concat(componentCls, "-time-panel"), {
229
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread3, "".concat(componentCls, "-panel > ").concat(componentCls, "-time-panel"), {
227
230
  paddingTop: paddingXXS
228
- }), _defineProperty(_defineProperty(_defineProperty(_objectSpread3, "".concat(componentCls, "-range-wrapper"), {
231
+ }), "".concat(componentCls, "-range-wrapper"), {
229
232
  display: 'flex',
230
233
  position: 'relative'
231
234
  }), "".concat(componentCls, "-range-arrow"), _objectSpread(_objectSpread({
@@ -305,7 +308,7 @@ var genPickerStyle = function genPickerStyle(token) {
305
308
  }), '&-rtl', _defineProperty(_defineProperty({
306
309
  direction: 'rtl'
307
310
  }, "".concat(componentCls, "-separator"), {
308
- transform: 'rotate(180deg)'
311
+ transform: 'scale(-1, 1)'
309
312
  }), "".concat(componentCls, "-footer"), {
310
313
  '&-extra': {
311
314
  direction: 'rtl'
@@ -5,7 +5,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { unit } from '@ant-design/cssinjs';
8
- import { TinyColor } from '@ctrl/tinycolor';
8
+ import { FastColor } from '@ant-design/fast-color';
9
9
  var genPickerCellInnerStyle = function genPickerCellInnerStyle(token) {
10
10
  var _ref;
11
11
  var pickerCellCls = token.pickerCellCls,
@@ -179,7 +179,10 @@ export var genPanelStyle = function genPanelStyle(token) {
179
179
  fontSize: 'inherit',
180
180
  display: 'inline-flex',
181
181
  alignItems: 'center',
182
- justifyContent: 'center'
182
+ justifyContent: 'center',
183
+ '&:empty': {
184
+ display: 'none'
185
+ }
183
186
  },
184
187
  '> button': {
185
188
  minWidth: '1.6em',
@@ -199,6 +202,7 @@ export var genPanelStyle = function genPanelStyle(token) {
199
202
  '> button': {
200
203
  color: 'inherit',
201
204
  fontWeight: 'inherit',
205
+ verticalAlign: 'top',
202
206
  '&:not(:first-child)': {
203
207
  marginInlineStart: paddingXS
204
208
  },
@@ -218,8 +222,8 @@ export var genPanelStyle = function genPanelStyle(token) {
218
222
  width: pickerControlIconSize,
219
223
  height: pickerControlIconSize,
220
224
  border: "0 solid currentcolor",
221
- borderBlockWidth: "".concat(unit(pickerControlIconBorderWidth), " 0"),
222
- borderInlineWidth: "".concat(unit(pickerControlIconBorderWidth), " 0"),
225
+ borderBlockStartWidth: pickerControlIconBorderWidth,
226
+ borderInlineStartWidth: pickerControlIconBorderWidth,
223
227
  content: '""'
224
228
  }
225
229
  }), "&-super-prev-icon,\n &-super-next-icon", {
@@ -231,8 +235,8 @@ export var genPanelStyle = function genPanelStyle(token) {
231
235
  width: pickerControlIconSize,
232
236
  height: pickerControlIconSize,
233
237
  border: '0 solid currentcolor',
234
- borderBlockWidth: "".concat(unit(pickerControlIconBorderWidth), " 0"),
235
- borderInlineWidth: "".concat(unit(pickerControlIconBorderWidth), " 0"),
238
+ borderBlockStartWidth: pickerControlIconBorderWidth,
239
+ borderInlineStartWidth: pickerControlIconBorderWidth,
236
240
  content: '""'
237
241
  }
238
242
  }), '&-prev-icon, &-super-prev-icon', {
@@ -304,7 +308,7 @@ export var genPanelStyle = function genPanelStyle(token) {
304
308
  background: colorPrimary
305
309
  }
306
310
  }, "&".concat(componentCls, "-cell-week"), {
307
- color: new TinyColor(colorTextLightSolid).setAlpha(0.5).toHexString()
311
+ color: new FastColor(colorTextLightSolid).setA(0.5).toHexString()
308
312
  }), pickerCellInnerCls, {
309
313
  color: colorTextLightSolid
310
314
  })),
@@ -365,7 +369,7 @@ export var genPanelStyle = function genPanelStyle(token) {
365
369
  borderInlineStart: "".concat(unit(lineWidth), " ").concat(lineType, " ").concat(colorSplit)
366
370
  },
367
371
  '&-active': {
368
- background: new TinyColor(controlItemBgActive).setAlpha(0.2).toHexString()
372
+ background: new FastColor(controlItemBgActive).setA(0.2).toHexString()
369
373
  },
370
374
  '&:hover': {
371
375
  overflowY: 'auto'
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import { TinyColor } from '@ctrl/tinycolor';
7
+ import { FastColor } from '@ant-design/fast-color';
8
8
  import { initComponentToken } from '../../input/style/token';
9
9
  import { getArrowToken } from '../../style/roundedArrow';
10
10
  export var initPickerPanelToken = function initPickerPanelToken(token) {
@@ -47,8 +47,8 @@ export var initPanelComponentToken = function initPanelComponentToken(token) {
47
47
  INTERNAL_FIXED_ITEM_MARGIN: INTERNAL_FIXED_ITEM_MARGIN,
48
48
  cellHoverBg: token.controlItemBgHover,
49
49
  cellActiveWithRangeBg: token.controlItemBgActive,
50
- cellHoverWithRangeBg: new TinyColor(token.colorPrimary).lighten(35).toHexString(),
51
- cellRangeBorderColor: new TinyColor(token.colorPrimary).lighten(20).toHexString(),
50
+ cellHoverWithRangeBg: new FastColor(token.colorPrimary).lighten(35).toHexString(),
51
+ cellRangeBorderColor: new FastColor(token.colorPrimary).lighten(20).toHexString(),
52
52
  cellBgDisabled: colorBgContainerDisabled,
53
53
  timeColumnWidth: controlHeightLG * 1.4,
54
54
  timeColumnHeight: 28 * 8,
@@ -5,10 +5,10 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { unit } from '@ant-design/cssinjs';
8
- import { genBorderlessStyle, genFilledStyle, genOutlinedStyle } from '../../input/style/variants';
8
+ import { genBorderlessStyle, genFilledStyle, genOutlinedStyle, genUnderlinedStyle } from '../../input/style/variants';
9
9
  var genVariantsStyle = function genVariantsStyle(token) {
10
10
  var componentCls = token.componentCls;
11
- return _defineProperty({}, componentCls, [_objectSpread(_objectSpread(_objectSpread({}, genOutlinedStyle(token)), genFilledStyle(token)), genBorderlessStyle(token)),
11
+ return _defineProperty({}, componentCls, [_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, genOutlinedStyle(token)), genUnderlinedStyle(token)), genFilledStyle(token)), genBorderlessStyle(token)),
12
12
  // ========================= Multiple =========================
13
13
  {
14
14
  '&-outlined': _defineProperty({}, "&".concat(componentCls, "-multiple ").concat(componentCls, "-selection-item"), {
@@ -22,6 +22,10 @@ var genVariantsStyle = function genVariantsStyle(token) {
22
22
  '&-borderless': _defineProperty({}, "&".concat(componentCls, "-multiple ").concat(componentCls, "-selection-item"), {
23
23
  background: token.multipleItemBg,
24
24
  border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.multipleItemBorderColor)
25
+ }),
26
+ '&-underlined': _defineProperty({}, "&".concat(componentCls, "-multiple ").concat(componentCls, "-selection-item"), {
27
+ background: token.multipleItemBg,
28
+ border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.multipleItemBorderColor)
25
29
  })
26
30
  }]);
27
31
  };