@unicom-cloud/ui 0.8.89 → 0.8.91

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 (597) hide show
  1. package/Affix.js +10 -9
  2. package/Alert.js +6 -5
  3. package/Anchor.js +4 -2
  4. package/AutoComplete.js +12 -7
  5. package/Avatar.js +4 -3
  6. package/BackTop.js +12 -10
  7. package/Badge.js +9 -7
  8. package/Breadcrumb.js +10 -8
  9. package/Button.js +9 -8
  10. package/Calendar.js +13 -8
  11. package/Card.js +9 -6
  12. package/Carousel.js +9 -8
  13. package/Cascader.js +2 -2
  14. package/Checkbox.js +8 -6
  15. package/Collapse.js +4 -2
  16. package/ColorPicker.js +18 -4
  17. package/Comment.js +6 -5
  18. package/ConfigProvider.js +6 -5
  19. package/Copy.js +6 -5
  20. package/DatePicker.js +13 -8
  21. package/Descriptions.js +5 -4
  22. package/Details.js +15 -0
  23. package/Development.js +5 -3
  24. package/Divider.js +5 -4
  25. package/Draggable.js +4 -3
  26. package/Dropdown.js +12 -10
  27. package/Empty.js +6 -3
  28. package/Form.js +17 -13
  29. package/Grid.js +10 -8
  30. package/Icon.js +7 -6
  31. package/IconHover.js +4 -2
  32. package/Image.js +5 -5
  33. package/Input.js +17 -12
  34. package/InputNumber.js +7 -5
  35. package/Layout.js +13 -12
  36. package/Link.js +6 -5
  37. package/List.js +9 -7
  38. package/Loading.js +3 -2
  39. package/Mentions.js +7 -5
  40. package/Menu.js +7 -6
  41. package/Message.js +13 -6
  42. package/Modal.js +2 -2
  43. package/Notice.js +10 -7
  44. package/Notification.js +13 -7
  45. package/OverflowEllipsis.js +5 -4
  46. package/PageHeader.js +9 -7
  47. package/Pagination.js +2 -2
  48. package/Popconfirm.js +6 -5
  49. package/Popover.js +6 -5
  50. package/Progress.js +6 -5
  51. package/Radio.js +8 -6
  52. package/Rate.js +6 -5
  53. package/ResizeBox.js +12 -11
  54. package/Result.js +5 -4
  55. package/Select.js +6 -5
  56. package/SelectView.js +2 -2
  57. package/Skeleton.js +6 -5
  58. package/Slider.js +11 -8
  59. package/Space.js +6 -5
  60. package/SpeechSynthesis.js +4 -2
  61. package/Spin.js +6 -5
  62. package/Statistic.js +10 -8
  63. package/Steps.js +9 -8
  64. package/SuspenseFallbackTest.js +3 -2
  65. package/Switch.js +13 -8
  66. package/Table.js +27 -15
  67. package/Tabs.js +5 -5
  68. package/Tag.js +8 -6
  69. package/TimePicker.js +2 -2
  70. package/Tooltip.js +9 -7
  71. package/Transfer.js +8 -6
  72. package/Tree.js +3 -2
  73. package/TreeSelect.js +3 -3
  74. package/Trigger.js +17 -12
  75. package/Typography.js +7 -6
  76. package/Upload.js +6 -5
  77. package/affix/index.js +32 -31
  78. package/alert/index.js +60 -70
  79. package/anchor/Anchor.js +63 -61
  80. package/anchor/Link.js +9 -8
  81. package/anchor/index.js +2 -0
  82. package/anchor/util.js +15 -14
  83. package/auto-complete/index.js +154 -13
  84. package/avatar/Avatar.js +6 -5
  85. package/avatar/Group.js +17 -16
  86. package/avatar/index.js +4 -3
  87. package/back-top/index.js +38 -36
  88. package/badge/Count.js +11 -11
  89. package/badge/index.js +58 -61
  90. package/breadcrumb/Item.js +7 -7
  91. package/breadcrumb/index.js +40 -38
  92. package/button/Group.js +8 -7
  93. package/button/index.js +13 -12
  94. package/calendar/Month.js +140 -10
  95. package/calendar/Year.js +21 -20
  96. package/calendar/header/Panel.js +57 -0
  97. package/calendar/header/index.js +110 -0
  98. package/calendar/hook/useCellClassName.js +41 -0
  99. package/calendar/index.js +171 -12
  100. package/card/Grid.js +12 -11
  101. package/card/Meta.js +14 -13
  102. package/card/index.js +38 -35
  103. package/carousel/Arrow.js +16 -15
  104. package/carousel/Indicator.js +19 -18
  105. package/carousel/index.js +16 -15
  106. package/cascader/Cascader.js +299 -24
  107. package/cascader/base/node.js +142 -0
  108. package/cascader/base/store.js +93 -0
  109. package/cascader/hook/useRefCurrent.js +12 -0
  110. package/cascader/index.js +2 -2
  111. package/cascader/panel/List.js +278 -0
  112. package/cascader/panel/Option.js +33 -0
  113. package/cascader/panel/Search.js +169 -0
  114. package/cascader/util.js +64 -12
  115. package/checkbox/Checkbox.js +125 -17
  116. package/checkbox/Group.js +97 -12
  117. package/checkbox/GroupBlock.js +62 -6
  118. package/checkbox/index.js +7 -6
  119. package/collapse/Collapse.js +88 -13
  120. package/collapse/Item.js +181 -9
  121. package/collapse/index.js +4 -2
  122. package/color-picker/ControlBar.js +21 -20
  123. package/color-picker/InputAlpha.js +10 -9
  124. package/color-picker/InputHex.js +27 -25
  125. package/color-picker/InputRgb.js +27 -24
  126. package/color-picker/Palette.js +16 -14
  127. package/color-picker/Panel.js +269 -15
  128. package/color-picker/colors.js +8 -7
  129. package/color-picker/hooks/useColorPicker.js +128 -0
  130. package/{chunk/k-OUstoD.js → color-picker/hooks/useControlBlock.js} +1 -1
  131. package/color-picker/index.js +160 -13
  132. package/color-picker/utils.js +18 -17
  133. package/comment/index.js +23 -22
  134. package/components/common/development/index.js +32 -0
  135. package/components/common/empty/index.js +17 -0
  136. package/components/common/higher-order/with-speech-synthesis/index.js +61 -0
  137. package/{chunk/DxVvggX2.js → components/common/hooks/useComputedState.js} +2 -2
  138. package/components/common/hooks/useCreate.js +8 -0
  139. package/components/common/hooks/useForceUpdate.js +8 -0
  140. package/{chunk/B4YRLi8r.js → components/common/hooks/useId.js} +5 -5
  141. package/components/common/hooks/useInView.js +31 -0
  142. package/{chunk/B4WG1mhs.js → components/common/hooks/useIntersectionObserver.js} +9 -9
  143. package/components/common/hooks/useInterval.js +18 -0
  144. package/{chunk/oopARUrq.js → components/common/hooks/useIsFirstRender.js} +1 -1
  145. package/components/common/hooks/useIsomorphicLayoutEffect.js +6 -0
  146. package/components/common/hooks/useKeyboardEvent.js +17 -0
  147. package/{chunk/BL9DMeor.js → components/common/hooks/useListenResize.js} +1 -1
  148. package/{chunk/BXAeh0_V.js → components/common/hooks/useMedia.js} +1 -1
  149. package/{chunk/BFTV6myl.js → components/common/hooks/useMergeProps.js} +3 -3
  150. package/{chunk/D5wldVRB.js → components/common/hooks/useMergeValue.js} +8 -8
  151. package/{chunk/zmmqLCF4.js → components/common/hooks/useOnlineStatus.js} +1 -1
  152. package/{chunk/DU1RCDfh.js → components/common/hooks/useOverflowHidden.js} +1 -1
  153. package/components/common/hooks/useOverrideRef.js +14 -0
  154. package/{chunk/BsY85n3_.js → components/common/hooks/usePersistCallback.js} +2 -2
  155. package/{chunk/rT6qmv-Y.js → components/common/hooks/usePrefersColorSchemeDark.js} +5 -5
  156. package/components/common/hooks/usePrevious.js +10 -0
  157. package/components/common/hooks/useRefs.js +10 -0
  158. package/{chunk/CmZzBtA4.js → components/common/hooks/useResizeObserver.js} +4 -4
  159. package/{chunk/hEWZQ8Zi.js → components/common/hooks/useStateCallback.js} +5 -5
  160. package/{chunk/Duezix3m.js → components/common/hooks/useStateWithPromise.js} +6 -6
  161. package/components/common/hooks/useUpdateEffect.js +12 -0
  162. package/components/common/hooks/useWatch.js +11 -0
  163. package/{chunk/CB4jGw4K.js → components/common/hooks/useWindowSize.js} +6 -6
  164. package/components/common/icons/file/index.js +56 -0
  165. package/components/common/space/index.js +110 -0
  166. package/components/common/utils/PqbCSSTransition.js +32 -0
  167. package/{chunk/B6r8jPCd.js → components/common/utils/constant.js} +2 -2
  168. package/components/common/utils/copy.js +7 -0
  169. package/components/common/utils/dayjs.js +193 -0
  170. package/components/common/utils/dom.js +51 -0
  171. package/components/common/utils/fillNBSP.js +7 -0
  172. package/{chunk/B7M-FGia.js → components/common/utils/getHighlightText.js} +11 -10
  173. package/{chunk/Dh7Osrvr.js → components/common/utils/getHotkeyHandler.js} +6 -5
  174. package/{chunk/DKHXj8Kf.js → components/common/utils/getStringLength.js} +3 -2
  175. package/components/common/utils/include.js +10 -0
  176. package/components/common/utils/is.js +126 -0
  177. package/{chunk/DH7HTOV_.js → components/common/utils/mergeProps.js} +3 -2
  178. package/components/common/utils/mergedToString.js +16 -0
  179. package/components/common/utils/omit.js +12 -0
  180. package/components/common/utils/pad.js +18 -0
  181. package/components/common/utils/pick.js +18 -0
  182. package/components/common/utils/react19Adapter.js +3 -0
  183. package/{chunk/BZ3igxQN.js → components/common/utils/reactDOM.js} +13 -13
  184. package/components/common/utils/resizeObserverEffect.js +23 -0
  185. package/components/common/utils/scrollIntoView.js +25 -0
  186. package/components/common/utils/setDarkTheme.js +27 -0
  187. package/components/common/utils/setPrimaryColor.js +30 -0
  188. package/{chunk/DzekwbB4.js → components/common/utils/setTheme.js} +16 -14
  189. package/components/common/utils/style.js +39 -0
  190. package/components/common/utils/throttleByRaf.js +16 -0
  191. package/components/common/utils/warning.js +11 -0
  192. package/config-provider/ConfigProvider.js +56 -13
  193. package/config-provider/context.js +24 -7
  194. package/config-provider/index.js +6 -5
  195. package/copy/index.js +15 -14
  196. package/date-picker/Picker.js +178 -172
  197. package/date-picker/RangePicker.js +585 -22
  198. package/date-picker/hook/useCellClassName.js +60 -0
  199. package/date-picker/index.js +29 -24
  200. package/date-picker/panel/Body.js +88 -0
  201. package/date-picker/panel/Footer.js +71 -0
  202. package/date-picker/panel/Header.js +69 -0
  203. package/date-picker/panel/Shortcut.js +45 -0
  204. package/date-picker/panel/WeekList.js +19 -0
  205. package/date-picker/panel/date/index.js +193 -0
  206. package/date-picker/panel/month/index.js +112 -0
  207. package/date-picker/panel/quarter/index.js +97 -0
  208. package/date-picker/panel/range/index.js +250 -0
  209. package/date-picker/panel/week/index.js +35 -0
  210. package/date-picker/panel/year/index.js +73 -0
  211. package/date-picker/util.js +8 -8
  212. package/descriptions/index.js +24 -23
  213. package/details/index.js +82 -0
  214. package/details/interface.js +1 -0
  215. package/development/index.js +17 -36
  216. package/dist/compute-scroll-into-view/src/index.js +126 -0
  217. package/dist/dom-helpers/addClass.js +10 -0
  218. package/dist/dom-helpers/hasClass.js +8 -0
  219. package/dist/dom-helpers/removeClass.js +18 -0
  220. package/dist/react-transition-group/chunk/CPfP7aNL.js +381 -0
  221. package/dist/react-transition-group/chunk/F6QOOr2H.js +500 -0
  222. package/dist/react-transition-group/src/CSSTransition.js +202 -0
  223. package/dist/react-transition-group/src/ReplaceTransition.js +43 -0
  224. package/dist/react-transition-group/src/SwitchTransition.js +117 -0
  225. package/dist/react-transition-group/src/TransitionGroup.js +160 -0
  226. package/dist/react-transition-group/src/TransitionGroupContext.js +5 -0
  227. package/dist/react-transition-group/src/config.js +6 -0
  228. package/{chunk/Coz3rCng.js → dist/scroll-into-view-if-needed/src/index.js} +5 -5
  229. package/dist/tinycolor/chunk/DGZSWe7E.js +182 -0
  230. package/dist/tinycolor/customize/index.js +12 -0
  231. package/dist/tinycolor/src/conversion.js +143 -0
  232. package/dist/tinycolor/src/css-color-names.js +153 -0
  233. package/dist/tinycolor/src/format-input.js +77 -0
  234. package/dist/tinycolor/src/index.js +388 -0
  235. package/dist/tinycolor/src/util.js +32 -0
  236. package/dist/tween/src/easing.js +43 -0
  237. package/dist/tween/src/tween.js +70 -0
  238. package/dist/validate/chunk/BXTR2LmP.js +49 -0
  239. package/{chunk/DEuVgCzp.js → dist/validate/src/index.js} +91 -151
  240. package/dist/validate/src/util.js +22 -0
  241. package/divider/index.js +15 -14
  242. package/draggable/index.js +17 -16
  243. package/drawer/Drawer.js +41 -39
  244. package/dropdown/Button.js +88 -9
  245. package/dropdown/index.js +85 -163
  246. package/empty/index.js +21 -5
  247. package/form/Control.js +1 -1
  248. package/form/Form.js +159 -14
  249. package/form/FormItem.js +30 -29
  250. package/form/FormList.js +1 -1
  251. package/form/context.js +1 -1
  252. package/form/hook/useContext.js +32 -0
  253. package/form/hook/useForm.js +58 -0
  254. package/form/hook/useState.js +31 -0
  255. package/form/hook/useWatch.js +36 -0
  256. package/form/index.js +29 -106
  257. package/form/promisify.js +1 -1
  258. package/form/store.js +1 -1
  259. package/form/util.js +5 -5
  260. package/grid/Col.js +14 -13
  261. package/grid/{grid.js → Grid.js} +23 -22
  262. package/grid/{grid-item.js → GridItem.js} +23 -22
  263. package/grid/Row.js +19 -18
  264. package/{chunk/xAb6ZgqS.js → grid/hook/useResponsiveState.js} +2 -2
  265. package/grid/index.js +13 -12
  266. package/hooks/index.js +38 -38
  267. package/hooks/use-watermark/utils.js +9 -0
  268. package/hooks/useComputedState.js +2 -2
  269. package/hooks/useCreate.js +2 -2
  270. package/hooks/useForceUpdate.js +2 -2
  271. package/hooks/useId.js +2 -2
  272. package/hooks/useInView.js +2 -2
  273. package/hooks/useIntersectionObserver.js +2 -2
  274. package/hooks/useInterval.js +2 -2
  275. package/hooks/useIsFirstRender.js +2 -2
  276. package/hooks/useIsomorphicLayoutEffect.js +2 -2
  277. package/hooks/useKeyboardEvent.js +2 -2
  278. package/hooks/useListenResize.js +2 -2
  279. package/hooks/useMedia.js +2 -2
  280. package/hooks/useMergeProps.js +2 -2
  281. package/hooks/useMergeValue.js +2 -2
  282. package/hooks/useOnlineStatus.js +2 -2
  283. package/hooks/useOverflowHidden.js +2 -2
  284. package/hooks/useOverrideRef.js +2 -2
  285. package/hooks/usePersistCallback.js +2 -2
  286. package/hooks/usePrefersColorSchemeDark.js +2 -2
  287. package/hooks/usePrevious.js +2 -2
  288. package/hooks/useRefs.js +2 -2
  289. package/hooks/useResizeObserver.js +2 -2
  290. package/hooks/useStateCallback.js +2 -2
  291. package/hooks/useStateWithPromise.js +2 -2
  292. package/hooks/useUpdateEffect.js +2 -2
  293. package/hooks/useVerificationCode.js +21 -21
  294. package/hooks/useWatch.js +2 -2
  295. package/hooks/useWatermark.js +72 -77
  296. package/hooks/useWindowSize.js +2 -2
  297. package/icon/addFromIconFontCn.js +31 -5
  298. package/icon/index.js +22 -48
  299. package/icon-hover/index.js +37 -5
  300. package/icons/file.js +15 -63
  301. package/image/Image.js +37 -33
  302. package/image/ImageFooter.js +44 -6
  303. package/image/ImagePreview.js +480 -34
  304. package/image/ImagePreviewArrow.js +8 -7
  305. package/image/ImagePreviewGroup.js +9 -9
  306. package/image/index.js +3 -3
  307. package/image/util/getFixTranslate.js +7 -0
  308. package/image/util/getScale.js +74 -0
  309. package/image/util/hook/useImageStatus.js +16 -0
  310. package/image/util/hook/useShowFooter.js +7 -0
  311. package/index.js +670 -574
  312. package/input/Button.js +67 -9
  313. package/input/Group.js +9 -8
  314. package/input/Input.js +158 -684
  315. package/input/InputElement.js +33 -33
  316. package/input/Number.js +2 -2
  317. package/input/Password.js +69 -11
  318. package/input/Search.js +68 -11
  319. package/input/Textarea.js +166 -14
  320. package/input/index.js +17 -13
  321. package/input-number/index.js +209 -16
  322. package/input-number/useSelectionRange.js +3 -3
  323. package/input-tag/InputTag.js +78 -72
  324. package/layout/Content.js +7 -6
  325. package/layout/Footer.js +7 -6
  326. package/layout/Header.js +5 -4
  327. package/layout/Sider.js +19 -18
  328. package/layout/index.js +21 -20
  329. package/link/index.js +15 -14
  330. package/list/Item.js +12 -11
  331. package/list/Meta.js +7 -6
  332. package/list/index.js +268 -17
  333. package/loading/index.js +13 -13
  334. package/loading/style/index.module.less.js +4 -0
  335. package/locale/en-US.js +4 -3
  336. package/locale/tr-TR.js +4 -3
  337. package/mentions/index.js +145 -11
  338. package/menu/Item.js +3 -3
  339. package/menu/Menu.js +182 -24
  340. package/menu/OverflowWrap.js +88 -8
  341. package/menu/index.js +9 -9
  342. package/menu/sub-menu/Inline.js +111 -0
  343. package/menu/sub-menu/Pop.js +120 -0
  344. package/menu/sub-menu/index.js +17 -0
  345. package/message/index.js +147 -13
  346. package/message/useMessage.js +57 -5
  347. package/modal/Confirm.js +110 -11
  348. package/modal/Modal.js +440 -20
  349. package/modal/index.js +1 -1
  350. package/modal/use-modal/Hook.js +52 -0
  351. package/modal/use-modal/index.js +68 -0
  352. package/notice/index.js +176 -17
  353. package/notification/index.js +149 -15
  354. package/notification/useNotification.js +52 -4
  355. package/overflow-ellipsis/OverflowItem.js +17 -16
  356. package/overflow-ellipsis/index.js +30 -29
  357. package/package.json +1 -1
  358. package/page-header/index.js +30 -28
  359. package/pagination/PageItem.js +16 -15
  360. package/pagination/PageJumper.js +13 -12
  361. package/pagination/PageOption.js +45 -5
  362. package/pagination/Pagination.js +244 -11
  363. package/pagination/index.js +2 -2
  364. package/picker/Input.js +47 -45
  365. package/picker/InputRange.js +53 -51
  366. package/popconfirm/index.js +10 -9
  367. package/popover/index.js +12 -11
  368. package/portal/Portal.js +7 -7
  369. package/progress/CircleProgress.js +1 -1
  370. package/progress/index.js +32 -31
  371. package/radio/Group.js +94 -14
  372. package/radio/GroupBlock.js +68 -7
  373. package/radio/Radio.js +92 -14
  374. package/radio/index.js +6 -5
  375. package/rate/index.js +31 -30
  376. package/resize-box/ResizeTrigger.js +10 -9
  377. package/resize-box/Split.js +66 -65
  378. package/resize-box/SplitGroup.js +10 -9
  379. package/resize-box/index.js +18 -17
  380. package/result/index.js +33 -32
  381. package/select/OptGroup.js +10 -10
  382. package/select/Option.js +93 -6
  383. package/select/Select.js +548 -24
  384. package/select/index.js +3 -3
  385. package/select/util.js +139 -18
  386. package/select-view/Core.js +23 -21
  387. package/select-view/index.js +7 -7
  388. package/skeleton/index.js +12 -11
  389. package/slider/Button.js +24 -23
  390. package/slider/Input.js +11 -11
  391. package/slider/hook/useInterval.js +73 -0
  392. package/slider/hook/useLegalValue.js +70 -0
  393. package/slider/index.js +220 -345
  394. package/space/index.js +39 -126
  395. package/space-/index.js +17 -16
  396. package/speech-synthesis/index.js +9 -63
  397. package/speech-synthesis/style/index.less.js +1 -0
  398. package/spin/DotLoading.js +10 -9
  399. package/spin/index.js +21 -20
  400. package/statistic/Countdown.js +16 -15
  401. package/statistic/index.js +45 -43
  402. package/statistic/util.js +1 -1
  403. package/steps/index.js +54 -52
  404. package/style.css +1 -1
  405. package/suspense-fallback-test/index.js +6 -5
  406. package/suspense-fallback-test/style/index.less.js +1 -0
  407. package/switch/index.js +43 -38
  408. package/table/Table.js +627 -21
  409. package/table/hook/useColumns.js +141 -0
  410. package/table/hook/useComponent.js +28 -0
  411. package/table/hook/useExpand.js +36 -0
  412. package/table/hook/useRowSelection.js +94 -0
  413. package/table/hook/useSorter.js +54 -0
  414. package/table/hook/useStickyClassNames.js +30 -0
  415. package/table/hook/useStickyOffsets.js +28 -0
  416. package/table/hook/useThResizable.js +39 -0
  417. package/table/index.js +28 -15
  418. package/table/summary/Cell.js +10 -0
  419. package/table/summary/Row.js +25 -0
  420. package/table/summary/context.js +5 -0
  421. package/table/summary/index.js +12 -0
  422. package/table/tbody/Td.js +180 -0
  423. package/table/tbody/Tr.js +165 -0
  424. package/table/tbody/index.js +154 -0
  425. package/table/tfoot/index.js +16 -0
  426. package/table/th-resizable/index.js +46 -0
  427. package/table/thead/Column.js +251 -0
  428. package/table/thead/index.js +129 -0
  429. package/tabs/Tab.js +169 -16
  430. package/tabs/TabContent.js +51 -6
  431. package/tabs/TabPane.js +13 -12
  432. package/tabs/hook/useDomSize.js +17 -0
  433. package/tabs/hook/useHeaderScroll.js +67 -0
  434. package/tabs/index.js +6 -6
  435. package/tabs/tab-header/DropdownIcon.js +66 -0
  436. package/tabs/tab-header/TabInk.js +66 -0
  437. package/tabs/tab-header/TabNavIcon.js +66 -0
  438. package/tabs/tab-header/TabTitle.js +78 -0
  439. package/tabs/tab-header/index.js +331 -0
  440. package/tag/index.js +32 -30
  441. package/time-picker/Picker.js +64 -63
  442. package/time-picker/RangePicker.js +15 -15
  443. package/time-picker/TimeColumn.js +1 -1
  444. package/time-picker/TimePicker.js +42 -41
  445. package/time-picker/index.js +2 -2
  446. package/time-picker/util.js +23 -22
  447. package/timeline/Item.js +4 -3
  448. package/timeline/Timeline.js +12 -11
  449. package/tooltip/index.js +35 -33
  450. package/transfer/Item.js +104 -9
  451. package/transfer/List.js +186 -13
  452. package/transfer/index.js +181 -13
  453. package/tree/Animation.js +100 -9
  454. package/tree/Node.js +212 -13
  455. package/tree/NodeList.js +80 -6
  456. package/tree/Tree.js +591 -17
  457. package/tree/index.js +3 -2
  458. package/tree-select/List.js +122 -6
  459. package/tree-select/Select.js +258 -22
  460. package/tree-select/hook/useKeyCache.js +55 -0
  461. package/tree-select/hook/useStateValue.js +95 -0
  462. package/tree-select/hook/useTreeData.js +13 -0
  463. package/tree-select/index.js +3 -3
  464. package/trigger/getPopupStyle.js +2 -2
  465. package/trigger/index.js +27 -22
  466. package/types/common/space/interface.d.ts +4 -0
  467. package/types/common/utils/dayjs.d.ts +2 -2
  468. package/types/common/utils/is.d.ts +2 -1
  469. package/types/pc/anchor/Anchor.d.ts +1 -0
  470. package/types/pc/anchor/index.d.ts +2 -1
  471. package/types/pc/auto-complete/index.d.ts +6 -0
  472. package/types/pc/avatar/index.d.ts +1 -0
  473. package/types/pc/badge/index.d.ts +5 -3
  474. package/types/pc/breadcrumb/index.d.ts +1 -0
  475. package/types/pc/calendar/index.d.ts +3 -0
  476. package/types/pc/card/index.d.ts +1 -0
  477. package/types/pc/cascader/Cascader.d.ts +1 -1
  478. package/types/pc/collapse/Collapse.d.ts +1 -0
  479. package/types/pc/collapse/index.d.ts +2 -1
  480. package/types/pc/color-picker/index.d.ts +7 -0
  481. package/types/pc/date-picker/index.d.ts +1 -1
  482. package/types/pc/date-picker/interface.d.ts +2 -2
  483. package/types/pc/date-picker/panel/Body.d.ts +1 -1
  484. package/types/pc/details/index.d.ts +4 -0
  485. package/types/pc/details/interface.d.ts +33 -0
  486. package/types/pc/form/hook/useForm.d.ts +1 -1
  487. package/types/pc/form/index.d.ts +1 -1
  488. package/types/pc/grid/index.d.ts +3 -4
  489. package/types/pc/index.d.ts +16 -14
  490. package/types/pc/menu/Indent.d.ts +1 -1
  491. package/types/pc/select/interface.d.ts +3 -3
  492. package/types/pc/space/index.d.ts +2 -2
  493. package/types/pc/steps/index.d.ts +1 -0
  494. package/types/pc/time-picker/index.d.ts +1 -1
  495. package/types/pc/tree/Context.d.ts +1 -1
  496. package/types/pc/tree/interface.d.ts +2 -2
  497. package/types/pc/utils/constant.d.ts +2 -2
  498. package/types/pc/utils/index.d.ts +1 -0
  499. package/types/pc/utils/names.d.ts +402 -85
  500. package/typography/Base.js +43 -42
  501. package/typography/EditContent.js +7 -7
  502. package/typography/Ellipsis.js +195 -24
  503. package/typography/Operations.js +4 -4
  504. package/typography/Paragraph.js +12 -11
  505. package/typography/Typography.js +8 -7
  506. package/typography/index.js +15 -10
  507. package/typography/useEllipsis.js +21 -21
  508. package/upload/TriggerNode.js +9 -8
  509. package/upload/Upload.js +126 -548
  510. package/upload/Uploader.js +11 -11
  511. package/upload/index.js +2 -2
  512. package/upload/list/PictureItem.js +119 -0
  513. package/upload/list/TextItem.js +123 -0
  514. package/upload/list/UploadProgress.js +96 -0
  515. package/upload/list/index.js +140 -0
  516. package/upload/request.js +3 -3
  517. package/upload/request_.js +5 -5
  518. package/utils/PqbCSSTransition.js +3 -3
  519. package/utils/color.js +1 -1
  520. package/utils/computeScrollIntoView.js +4 -126
  521. package/utils/constant.js +9 -9
  522. package/utils/contextHolder.js +29 -4
  523. package/utils/dayjs.js +11 -11
  524. package/utils/dom.js +7 -49
  525. package/utils/fillNBSP.js +3 -3
  526. package/utils/getHighlightText.js +1 -1
  527. package/utils/getHotkeyHandler.js +1 -1
  528. package/utils/getStringLength.js +1 -1
  529. package/utils/include.js +3 -3
  530. package/utils/index.js +284 -272
  531. package/utils/is.js +39 -39
  532. package/utils/mergeProps.js +1 -1
  533. package/utils/mergedToString.js +1 -1
  534. package/utils/names.js +298 -86
  535. package/utils/omit.js +1 -1
  536. package/utils/pad.js +3 -16
  537. package/utils/pick.js +5 -5
  538. package/utils/react19Adapter.js +1 -3
  539. package/utils/reactDOM.js +3 -3
  540. package/utils/reactTransitionGroup.js +12 -8
  541. package/utils/resizeObserverEffect.js +1 -1
  542. package/utils/scrollIntoView.js +1 -1
  543. package/utils/setDarkTheme.js +10 -30
  544. package/utils/setPrimaryColor.js +6 -29
  545. package/utils/setTheme.js +3 -3
  546. package/utils/style.js +4 -37
  547. package/utils/throttleByRaf.js +3 -14
  548. package/utils/throttleByRaf2.js +1 -1
  549. package/utils/tinycolor.js +26 -27
  550. package/utils/tween.js +4 -3
  551. package/utils/validate.js +5 -4
  552. package/utils/warning.js +3 -9
  553. package/verification-code/VerificationCode.js +25 -24
  554. package/version/index.js +1 -1
  555. package/virtual-list/VirtualList.js +280 -392
  556. package/virtual-list/util/algorithm.js +32 -0
  557. package/virtual-list/util/item.js +99 -0
  558. package/watermark/Watermark.js +17 -16
  559. package/chunk/5_U1CBIu.js +0 -8
  560. package/chunk/9TSjT7x_.js +0 -927
  561. package/chunk/B2yFlXke.js +0 -6
  562. package/chunk/B44Hj5ad.js +0 -697
  563. package/chunk/B5RFT17G.js +0 -15
  564. package/chunk/BC2OXILt.js +0 -178
  565. package/chunk/BJ9_azwQ.js +0 -1391
  566. package/chunk/BKKEev13.js +0 -11
  567. package/chunk/BKT9BFf4.js +0 -11
  568. package/chunk/BL8tIaO8.js +0 -649
  569. package/chunk/BNevupAU.js +0 -72
  570. package/chunk/BP4igg_F.js +0 -213
  571. package/chunk/BYdIoY50.js +0 -17
  572. package/chunk/Bg3uJGPu.js +0 -10
  573. package/chunk/BsUZRQDT.js +0 -23
  574. package/chunk/C4OrxKE6.js +0 -18
  575. package/chunk/C7bohPVD.js +0 -185
  576. package/chunk/CC---6jO.js +0 -110
  577. package/chunk/CCKr5jj1.js +0 -31
  578. package/chunk/CIRG541s.js +0 -22
  579. package/chunk/CPCJg6bv.js +0 -570
  580. package/chunk/CQ_WOOmf.js +0 -8
  581. package/chunk/CYhxqVkn.js +0 -9
  582. package/chunk/CftuXmo_.js +0 -6
  583. package/chunk/CgyNQvYg.js +0 -7828
  584. package/chunk/CkEaf5V0.js +0 -473
  585. package/chunk/ClM74To2.js +0 -58
  586. package/chunk/ClqoGc3r.js +0 -17
  587. package/chunk/D-ap9qEk.js +0 -14
  588. package/chunk/DWvmq7az.js +0 -843
  589. package/chunk/DYmI9fFY.js +0 -257
  590. package/chunk/Doi4-DdV.js +0 -1472
  591. package/chunk/DxYoPlum.js +0 -50
  592. package/chunk/NPajzdOv.js +0 -27
  593. package/chunk/VSe_Wq1g.js +0 -10
  594. package/chunk/a3hR6zLw.js +0 -12
  595. package/types/common/assets/hourglass.d.ts +0 -2
  596. /package/types/pc/grid/{grid.d.ts → Grid.d.ts} +0 -0
  597. /package/types/pc/grid/{grid-item.d.ts → GridItem.d.ts} +0 -0
@@ -4,44 +4,50 @@ import Dt from "@unicom-cloud/icons/IconUiCalendarClock";
4
4
  import { isDayjs as Le } from "dayjs";
5
5
  import ze from "lodash/isArray";
6
6
  import kt from "lodash/isPlainObject";
7
- import jt from "lodash/isUndefined";
8
- import Ct, { forwardRef as Nt, useContext as Ht, useRef as ie, useImperativeHandle as Mt, useState as m, useEffect as Tt } from "react";
9
- import { a as It } from "../chunk/B44Hj5ad.js";
10
- import { u as Lt } from "../chunk/BFTV6myl.js";
11
- import { u as Fe } from "../chunk/VSe_Wq1g.js";
12
- import { u as zt } from "../chunk/a3hR6zLw.js";
13
- import Ft from "../picker/Input.js";
7
+ import Ct from "lodash/isUndefined";
8
+ import Nt, { forwardRef as jt, useContext as Ht, useRef as ue, useImperativeHandle as Mt, useState as m, useEffect as Tt } from "react";
9
+ import "../config-provider/ConfigProvider.js";
10
+ import It from "../components/common/hooks/useMergeProps.js";
11
+ import $e from "../components/common/hooks/usePrevious.js";
12
+ import Lt from "../components/common/hooks/useUpdateEffect.js";
13
+ import zt from "../picker/Input.js";
14
14
  import $t from "../trigger/index.js";
15
- import Ut from "@unicom-cloud/utils/class-name";
16
- import { g as d, a as M, j as T, k as Wt, e as ue, d as $e, f as Bt, m as Ue } from "../chunk/C7bohPVD.js";
17
- import { o as Ot } from "../chunk/BKKEev13.js";
18
- import { a as qt } from "../chunk/ClqoGc3r.js";
19
- import Qt from "./context.js";
20
- import { F as Rt, S as Et } from "../chunk/CC---6jO.js";
21
- import { getDefaultWeekStart as Gt, getLocaleDayjsValue as Y } from "./util.js";
22
- function Jt(I) {
23
- const { format: L, picker: b, showTime: o } = I;
24
- let c;
25
- switch (I.mode || b.props.pickerType) {
26
- case "date":
27
- c = o ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
28
- break;
29
- case "month":
30
- c = "YYYY-MM";
31
- break;
32
- case "year":
33
- c = "YYYY";
34
- break;
35
- case "week":
36
- c = "gggg-wo";
37
- break;
38
- case "quarter":
39
- c = "YYYY-[Q]Q";
40
- break;
41
- default:
42
- c = "YYYY-MM-DD";
43
- }
44
- return L && (c = L), c;
15
+ import Ft from "@unicom-cloud/utils/class-name";
16
+ import { getDayjsValue as d, getNow as T, toLocal as I, toTimezone as Ut, getValueWithTime as le, dayjs as Fe, isDayjsChange as Wt, methods as Ue } from "../components/common/utils/dayjs.js";
17
+ import { omit as Bt } from "../components/common/utils/omit.js";
18
+ import { pickDataAttributes as Ot } from "../components/common/utils/pick.js";
19
+ import qt from "./context.js";
20
+ import Qt from "./panel/Footer.js";
21
+ import Rt from "./panel/Shortcut.js";
22
+ import { getDefaultWeekStart as Et, getLocaleDayjsValue as x } from "./util.js";
23
+ import Gt from "../config-provider/context.js";
24
+ function Jt(L) {
25
+ var b;
26
+ const { format: z, picker: y, showTime: o } = L;
27
+ let l;
28
+ if (z)
29
+ l = z;
30
+ else
31
+ switch (L.mode || ((b = y == null ? void 0 : y.props) == null ? void 0 : b.pickerType)) {
32
+ case "date":
33
+ l = o ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
34
+ break;
35
+ case "month":
36
+ l = "YYYY-MM";
37
+ break;
38
+ case "year":
39
+ l = "YYYY";
40
+ break;
41
+ case "week":
42
+ l = "gggg-wo";
43
+ break;
44
+ case "quarter":
45
+ l = "YYYY-[Q]Q";
46
+ break;
47
+ default:
48
+ l = "YYYY-MM-DD";
49
+ }
50
+ return l;
45
51
  }
46
52
  const We = {
47
53
  allowClear: !0,
@@ -49,23 +55,23 @@ const We = {
49
55
  position: "bl",
50
56
  editable: !0,
51
57
  showNowBtn: !0
52
- }, Xt = { bottom: 4 }, Zt = (I, L) => {
53
- var je, Ce, Ne;
58
+ }, Xt = { bottom: 4 }, Zt = (L, z) => {
59
+ var Ce, Ne, je;
54
60
  const {
55
- getPrefixCls: b,
61
+ getPrefixCls: y,
56
62
  locale: o,
57
- size: c,
58
- componentConfig: z,
59
- rtl: ce
60
- } = Ht(It);
61
- ce && (We.position = "br");
62
- const r = Lt(
63
- I,
63
+ size: l,
64
+ componentConfig: b,
65
+ rtl: q
66
+ } = Ht(Gt);
67
+ q && (We.position = "br");
68
+ const r = It(
69
+ L,
64
70
  We,
65
- z == null ? void 0 : z.DatePicker
71
+ b == null ? void 0 : b.DatePicker
66
72
  ), {
67
73
  allowClear: Be,
68
- className: le,
74
+ className: ce,
69
75
  style: fe,
70
76
  placeholder: Oe,
71
77
  getPopupContainer: qe,
@@ -77,148 +83,148 @@ const We = {
77
83
  editable: Je,
78
84
  triggerProps: Xe,
79
85
  picker: me,
80
- shortcuts: F,
86
+ shortcuts: $,
81
87
  onSelect: f,
82
- onVisibleChange: q,
88
+ onVisibleChange: Q,
83
89
  value: Ze,
84
- onChange: Q,
85
- icons: $,
90
+ onChange: R,
91
+ icons: F,
86
92
  disabledDate: de,
87
- showTime: l,
93
+ showTime: c,
88
94
  showNowBtn: he,
89
- onSelectShortcut: R,
95
+ onSelectShortcut: E,
90
96
  extra: ve,
91
- shortcutsPlacementLeft: x,
92
- onOk: E,
97
+ shortcutsPlacementLeft: D,
98
+ onOk: G,
93
99
  defaultPickerValue: _e,
94
100
  pickerValue: Ae,
95
- onPickerValueChange: G,
101
+ onPickerValueChange: J,
96
102
  triggerElement: ge,
97
103
  utcOffset: a,
98
- timezone: s,
104
+ timezone: i,
99
105
  panelRender: Ve,
100
106
  inputProps: Ke
101
- } = r, y = b == null ? void 0 : b("picker"), w = o == null ? void 0 : o.DatePicker, et = jt(r.dayStartOfWeek) ? Gt(o == null ? void 0 : o.dayjsLocale) : r.dayStartOfWeek, D = r.mode || me.props.pickerType, J = ie(null), X = ie(null), Z = ie(null);
107
+ } = r, w = y == null ? void 0 : y("picker"), P = o == null ? void 0 : o.DatePicker, et = Ct(r.dayStartOfWeek) ? Et(o == null ? void 0 : o.dayjsLocale) : r.dayStartOfWeek, k = r.mode || me.props.pickerType, X = ue(null), Z = ue(null), _ = ue(null);
102
108
  Mt(
103
- L,
109
+ z,
104
110
  () => ({
105
111
  focus() {
106
- ne();
112
+ re();
107
113
  },
108
114
  blur() {
109
- re();
115
+ ae();
110
116
  }
111
117
  }),
112
118
  []
113
119
  );
114
- const k = ((Ce = (je = w == null ? void 0 : w.Calendar) == null ? void 0 : je[D]) == null ? void 0 : Ce.format) || Jt(r);
115
- let n = k;
116
- typeof n == "function" && (n = l ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
120
+ const C = ((Ne = (Ce = P == null ? void 0 : P.Calendar) == null ? void 0 : Ce[k]) == null ? void 0 : Ne.format) || Jt(r);
121
+ let n = C;
122
+ typeof n == "function" && (n = c ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
117
123
  function tt() {
118
124
  let e;
119
- return r.value ? e = d(r.value, n, a, s) : e = d(r.defaultValue, n, a, s), e;
125
+ return r.value ? e = d(r.value, n, a, i) : e = d(r.defaultValue, n, a, i), e;
120
126
  }
121
- const [_, j] = m(tt()), [ot, nt] = m(r.popupVisible), [A, ye] = m(!1), [we, U] = m(), h = "popupVisible" in r ? r.popupVisible : ot, C = "value" in r ? d(Ze, n, a, s) : _, Pe = C || d(_e, n) || M(), [rt, W] = m(), [K, N] = m(), [at, ee] = m(), [st, P] = m(Pe), te = d(Ae, n) || st, v = at || K || C, [B, Se] = m(D), it = kt(l) && d(
122
- l.defaultValue,
123
- l.format || "HH:mm:ss"
124
- ) || M(a, s), oe = v || it;
125
- function ne() {
127
+ const [A, N] = m(tt()), [ot, nt] = m(r.popupVisible), [K, ye] = m(!1), [we, U] = m(), h = "popupVisible" in r ? r.popupVisible : ot, j = "value" in r ? d(Ze, n, a, i) : A, Pe = j || d(_e, n) || T(), [rt, W] = m(), [ee, H] = m(), [at, te] = m(), [it, S] = m(Pe), oe = d(Ae, n) || it, v = at || ee || j, [B, Se] = m(k), st = kt(c) && d(
128
+ c.defaultValue,
129
+ c.format || "HH:mm:ss"
130
+ ) || T(a, i), ne = v || st;
131
+ function re() {
126
132
  var e, t;
127
- (t = (e = J.current) == null ? void 0 : e.focus) == null || t.call(e);
133
+ (t = (e = X.current) == null ? void 0 : e.focus) == null || t.call(e);
128
134
  }
129
- function re() {
135
+ function ae() {
130
136
  var e, t;
131
- (t = (e = J.current) == null ? void 0 : e.blur) == null || t.call(e);
137
+ (t = (e = X.current) == null ? void 0 : e.blur) == null || t.call(e);
132
138
  }
133
- const ae = Fe(a), se = Fe(s);
134
- zt(() => {
135
- if (_ && (ae !== a || s !== se)) {
136
- const e = T(_, ae, se);
137
- j(Wt(e, a, s));
139
+ const ie = $e(a), se = $e(i);
140
+ Lt(() => {
141
+ if (A && (ie !== a || i !== se)) {
142
+ const e = I(A, ie, se);
143
+ N(Ut(e, a, i));
138
144
  }
139
- }, [a, ae, s, se]), Tt(() => {
140
- W(void 0), U(void 0), h ? (P(Pe), x && Z.current && X.current && (Z.current.style.maxHeight = `${X.current.clientHeight}px`)) : (N(void 0), ee(void 0), setTimeout(() => {
141
- ye(!1), Se(D), re();
145
+ }, [a, ie, i, se]), Tt(() => {
146
+ W(void 0), U(void 0), h ? (S(Pe), D && _.current && Z.current && (_.current.style.maxHeight = `${Z.current.clientHeight}px`)) : (H(void 0), te(void 0), setTimeout(() => {
147
+ ye(!1), Se(k), ae();
142
148
  }, 100));
143
149
  }, [h]);
144
150
  function ut(e) {
145
- e ? S(e, () => {
146
- ne();
147
- }) : S(!1);
151
+ e ? Y(e, () => {
152
+ re();
153
+ }) : Y(!1);
148
154
  }
149
- function H(e) {
150
- G == null || G(e.format(n), e);
155
+ function M(e) {
156
+ J == null || J(e.format(n), e);
151
157
  }
152
- function S(e, t) {
153
- nt(e), q == null || q(e), t == null || t();
158
+ function Y(e, t) {
159
+ nt(e), Q == null || Q(e), t == null || t();
154
160
  }
155
- function ct(e) {
161
+ function lt(e) {
156
162
  var t;
157
- e.stopPropagation(), j(void 0), N(void 0), O(void 0), (t = r.onClear) == null || t.call(r);
163
+ e.stopPropagation(), N(void 0), H(void 0), O(void 0), (t = r.onClear) == null || t.call(r);
158
164
  }
159
- function lt() {
160
- const e = Y(v, o == null ? void 0 : o.dayjsLocale);
161
- Ye(), E == null || E(e && e.format(n), e);
165
+ function ct() {
166
+ const e = x(v, o == null ? void 0 : o.dayjsLocale);
167
+ Ye(), G == null || G(e && e.format(n), e);
162
168
  }
163
169
  function Ye() {
164
- j(v), O(v), S(!1);
170
+ N(v), O(v), Y(!1);
165
171
  }
166
172
  function be(e, t, u) {
167
- if (W(void 0), U(void 0), l) {
168
- const i = u ? t : ue(t, oe);
169
- N(i), P(i);
170
- const V = Y(
171
- T(i, a, s),
173
+ if (W(void 0), U(void 0), c) {
174
+ const s = u ? t : le(t, ne);
175
+ H(s), S(s);
176
+ const V = x(
177
+ I(s, a, i),
172
178
  o == null ? void 0 : o.dayjsLocale
173
179
  );
174
180
  f == null || f(V.format(n), V);
175
181
  } else {
176
- const i = Y(
177
- T(t, a, s).locale(o == null ? void 0 : o.dayjsLocale),
182
+ const s = x(
183
+ I(t, a, i).locale(o == null ? void 0 : o.dayjsLocale),
178
184
  o == null ? void 0 : o.dayjsLocale
179
185
  );
180
- f == null || f(i ? i.format(n) : void 0, i), j(t), O(t), S(!1);
186
+ f == null || f(s ? s.format(n) : void 0, s), N(t), O(t), Y(!1);
181
187
  }
182
188
  }
183
189
  function O(e) {
184
- if (Bt(e, C)) {
185
- const t = Y(
186
- T(e, a, s),
190
+ if (Wt(e, j)) {
191
+ const t = x(
192
+ I(e, a, i),
187
193
  o == null ? void 0 : o.dayjsLocale
188
194
  );
189
- Q == null || Q(
195
+ R == null || R(
190
196
  t ? t.format(n) : void 0,
191
197
  t
192
198
  );
193
199
  }
194
200
  }
195
201
  function ft(e, t) {
196
- const u = v || M(a, s), i = ue(u, t);
197
- N(i);
198
- const V = Y(
199
- T(i, a, s),
202
+ const u = v || T(a, i), s = le(u, t);
203
+ H(s);
204
+ const V = x(
205
+ I(s, a, i),
200
206
  o == null ? void 0 : o.dayjsLocale
201
207
  );
202
208
  f == null || f(V.format(n), V);
203
209
  }
204
210
  function pt(e) {
205
- return typeof e == "string" && $e(e, n).format(n) === e && (typeof de == "function" ? !de($e(e, n)) : !0);
211
+ return typeof e == "string" && Fe(e, n).format(n) === e && (typeof de == "function" ? !de(Fe(e, n)) : !0);
206
212
  }
207
213
  function mt(e) {
208
214
  const t = e.target.value;
209
- if (W(t), h || S(!0), pt(t)) {
215
+ if (W(t), h || Y(!0), pt(t)) {
210
216
  const u = d(t, n);
211
- N(u), P(u), W(void 0);
217
+ H(u), S(u), W(void 0);
212
218
  }
213
219
  }
214
220
  function dt() {
215
- v ? (Ye(), re()) : h && S(!1);
221
+ v ? (Ye(), ae()) : h && Y(!1);
216
222
  }
217
223
  function g(e, t, u = 1) {
218
- let i;
219
- e === "prev" && (i = Ue.subtract(te, u, t)), e === "next" && (i = Ue.add(te, u, t)), H(i), P(i);
224
+ let s;
225
+ e === "prev" && (s = Ue.subtract(oe, u, t)), e === "next" && (s = Ue.add(oe, u, t)), M(s), S(s);
220
226
  }
221
- function xe(e = D) {
227
+ function xe(e = k) {
222
228
  if (e === "date" || e === "week")
223
229
  return {
224
230
  onPrev: () => g("prev", "month"),
@@ -238,17 +244,17 @@ const We = {
238
244
  };
239
245
  }
240
246
  function De() {
241
- const e = Y(
242
- M(a, s),
247
+ const e = x(
248
+ T(a, i),
243
249
  o == null ? void 0 : o.dayjsLocale
244
250
  );
245
- H(e), be(e.format(n), e, !0);
251
+ M(e), be(e.format(n), e, !0);
246
252
  }
247
253
  function ht(e, t) {
248
254
  if (!t) {
249
- const u = l ? ue(e, oe) : e;
255
+ const u = c ? le(e, ne) : e;
250
256
  U(
251
- typeof k == "function" ? k(e) : u.locale(o == null ? void 0 : o.dayjsLocale).format(n)
257
+ typeof C == "function" ? C(e) : u.locale(o == null ? void 0 : o.dayjsLocale).format(n)
252
258
  );
253
259
  }
254
260
  }
@@ -261,50 +267,50 @@ const We = {
261
267
  e.value(),
262
268
  n,
263
269
  a,
264
- s
270
+ i
265
271
  );
266
- P(t), H(t), ee(t);
272
+ S(t), M(t), te(t);
267
273
  }
268
274
  }
269
275
  function Vt() {
270
- const e = K || C || M(a, s);
271
- ee(void 0), P(e), H(e);
276
+ const e = ee || j || T(a, i);
277
+ te(void 0), S(e), M(e);
272
278
  }
273
279
  function yt(e) {
274
- if (R == null || R(e), typeof e.value == "function" && Le(e.value())) {
280
+ if (E == null || E(e), typeof e.value == "function" && Le(e.value())) {
275
281
  const t = d(
276
282
  e.value(),
277
283
  n,
278
284
  a,
279
- s
285
+ i
280
286
  );
281
- j(t), O(t), S(!1);
287
+ N(t), O(t), Y(!1);
282
288
  }
283
289
  }
284
290
  function wt() {
285
- ye(!A);
291
+ ye(!K);
286
292
  }
287
293
  function ke(e) {
288
- const t = Ut(
289
- `${y}-container`,
294
+ const t = Ft(
295
+ `${w}-container`,
290
296
  {
291
- [`${y}-panel-only`]: e,
292
- [`${y}-container-shortcuts-placement-left`]: ze(F) && x,
293
- [`${y}-container-rtl`]: ce
297
+ [`${w}-panel-only`]: e,
298
+ [`${w}-container-shortcuts-placement-left`]: ze($) && D,
299
+ [`${w}-container-rtl`]: q
294
300
  },
295
- e ? le : ""
301
+ e ? ce : ""
296
302
  ), u = {
297
- prefixCls: y,
298
- showTime: l,
299
- shortcuts: F,
303
+ prefixCls: w,
304
+ showTime: c,
305
+ shortcuts: $,
300
306
  onSelectNow: De,
301
307
  showNowBtn: he,
302
308
  onMouseEnterShortcut: gt,
303
309
  onMouseLeaveShortcut: Vt,
304
310
  onSelectShortcut: yt
305
- }, i = l && B === "date" || ve || ze(F) && F.length && !x || !l && B === "date" && he, V = /* @__PURE__ */ Te(Ie, { children: [
306
- Ct.cloneElement(me, {
307
- ...Ot(r, ["style"]),
311
+ }, s = c && B === "date" || ve || ze($) && $.length && !D || !c && B === "date" && he, V = /* @__PURE__ */ Te(Ie, { children: [
312
+ Nt.cloneElement(me, {
313
+ ...Bt(r, ["style"]),
308
314
  ...xe(),
309
315
  getHeaderOperations: xe,
310
316
  onSelect: be,
@@ -313,65 +319,65 @@ const We = {
313
319
  popupVisible: h,
314
320
  format: n,
315
321
  value: v,
316
- pageShowDate: te,
322
+ pageShowDate: oe,
317
323
  localeName: o == null ? void 0 : o.dayjsLocale,
318
324
  setPageShowDate: (Me) => {
319
- P(Me), H(Me);
325
+ S(Me), M(Me);
320
326
  },
321
- timeValue: oe,
322
- isTimePanel: A,
327
+ timeValue: ne,
328
+ isTimePanel: K,
323
329
  panelMode: B,
324
330
  setPanelMode: Se,
325
331
  onMouseEnterCell: ht,
326
332
  onMouseLeaveCell: vt
327
333
  }),
328
- !!i && /* @__PURE__ */ p(
329
- Rt,
334
+ !!s && /* @__PURE__ */ p(
335
+ Qt,
330
336
  {
331
337
  ...u,
332
- DATEPICKER_LOCALE: w,
338
+ DATEPICKER_LOCALE: P,
333
339
  disabled: !v,
334
- onClickConfirmBtn: lt,
340
+ onClickConfirmBtn: ct,
335
341
  extra: ve,
336
342
  mode: B,
337
- shortcutsPlacementLeft: x,
343
+ shortcutsPlacementLeft: D,
338
344
  onClickSelectTimeBtn: wt,
339
- isTimePanel: A
345
+ isTimePanel: K
340
346
  }
341
347
  )
342
- ] }), He = x ? /* @__PURE__ */ Te(Ie, { children: [
343
- /* @__PURE__ */ p(Et, { ref: Z, ...u }),
344
- /* @__PURE__ */ p("div", { ref: X, className: `${y}-panel-wrapper`, children: V })
348
+ ] }), He = D ? /* @__PURE__ */ Te(Ie, { children: [
349
+ /* @__PURE__ */ p(Rt, { ref: _, ...u }),
350
+ /* @__PURE__ */ p("div", { ref: Z, className: `${w}-panel-wrapper`, children: V })
345
351
  ] }) : V, bt = typeof Ve == "function" ? Ve(He) : He;
346
352
  return /* @__PURE__ */ p(
347
353
  "div",
348
354
  {
349
355
  className: t,
350
356
  onClick: () => {
351
- ne();
357
+ re();
352
358
  },
353
359
  style: e ? fe : {},
354
360
  children: bt
355
361
  }
356
362
  );
357
363
  }
358
- const Pt = r.size || c, St = $ && $.inputSuffix === null ? null : $ && $.inputSuffix || (l ? /* @__PURE__ */ p(Dt, {}) : /* @__PURE__ */ p(xt, {})), Yt = {
364
+ const Pt = r.size || l, St = F && F.inputSuffix === null ? null : F && F.inputSuffix || (c ? /* @__PURE__ */ p(Dt, {}) : /* @__PURE__ */ p(xt, {})), Yt = {
359
365
  style: fe,
360
- className: le,
366
+ className: ce,
361
367
  popupVisible: h,
362
- format: k,
368
+ format: C,
363
369
  disabled: pe,
364
370
  error: Re,
365
371
  status: Ee,
366
372
  size: Pt,
367
373
  onPressEnter: dt,
368
- onClear: ct,
374
+ onClear: lt,
369
375
  prefix: r.prefix,
370
376
  suffixIcon: St,
371
- editable: Je && typeof k != "function",
377
+ editable: Je && typeof C != "function",
372
378
  allowClear: Be
373
379
  };
374
- return /* @__PURE__ */ p(Qt.Provider, { value: { utcOffset: a, timezone: s, weekStart: et }, children: ge === null ? ke(!0) : /* @__PURE__ */ p(
380
+ return /* @__PURE__ */ p(qt.Provider, { value: { utcOffset: a, timezone: i, weekStart: et }, children: ge === null ? ke(!0) : /* @__PURE__ */ p(
375
381
  $t,
376
382
  {
377
383
  popup: ke,
@@ -387,16 +393,16 @@ const We = {
387
393
  unmountOnExit: Ge,
388
394
  ...Xe,
389
395
  children: ge || /* @__PURE__ */ p(
390
- Ft,
396
+ zt,
391
397
  {
392
- ...qt(r),
398
+ ...Ot(r),
393
399
  ...Yt,
394
- ref: J,
395
- placeholder: Oe || ((Ne = w == null ? void 0 : w.placeholder) == null ? void 0 : Ne[D]),
400
+ ref: X,
401
+ placeholder: Oe || ((je = P == null ? void 0 : P.placeholder) == null ? void 0 : je[k]),
396
402
  popupVisible: h,
397
- value: K || C,
403
+ value: ee || j,
398
404
  inputValue: we || rt,
399
- prefixCls: y,
405
+ prefixCls: w,
400
406
  onChange: mt,
401
407
  isPlaceholder: !!we,
402
408
  inputProps: Ke
@@ -404,7 +410,7 @@ const We = {
404
410
  )
405
411
  }
406
412
  ) });
407
- }, yo = Nt(Zt);
413
+ }, Po = jt(Zt);
408
414
  export {
409
- yo as default
415
+ Po as default
410
416
  };