@unicom-cloud/ui 0.8.66 → 0.8.67

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/Affix.js +79 -79
  2. package/Alert.js +46 -46
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +74 -74
  5. package/Avatar.js +36 -36
  6. package/BackTop.js +35 -35
  7. package/Badge.js +55 -55
  8. package/Breadcrumb.js +42 -42
  9. package/Button.js +24 -24
  10. package/Calendar.js +230 -230
  11. package/Card.js +18 -18
  12. package/Carousel.js +165 -165
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +26 -26
  17. package/Comment.js +18 -18
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +28 -27
  20. package/DatePicker.js +872 -871
  21. package/Descriptions.js +34 -34
  22. package/Divider.js +19 -19
  23. package/Draggable.js +27 -26
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +110 -110
  26. package/Empty.js +3 -3
  27. package/Form.js +984 -945
  28. package/Grid.js +34 -34
  29. package/Icon.js +16 -16
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +7 -6
  33. package/InputNumber.js +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +24 -24
  36. package/Link.js +30 -30
  37. package/List.js +95 -95
  38. package/Mentions.js +85 -84
  39. package/Menu.js +2 -2
  40. package/Message.js +7 -6
  41. package/Modal.js +1 -1
  42. package/Notice.js +14 -3
  43. package/Notification.js +9 -7
  44. package/OverflowEllipsis.js +64 -62
  45. package/PageHeader.js +73 -73
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +60 -60
  49. package/Popover.js +31 -31
  50. package/Portal.js +23 -31
  51. package/Progress.js +22 -22
  52. package/Radio.js +2 -2
  53. package/Rate.js +24 -24
  54. package/ResizeBox.js +274 -271
  55. package/Result.js +3 -3
  56. package/Select.js +4 -4
  57. package/SelectView.js +257 -238
  58. package/Skeleton.js +46 -46
  59. package/Slider.js +286 -283
  60. package/Space.js +28 -28
  61. package/SpeechSynthesis.js +62 -55
  62. package/Spin.js +23 -23
  63. package/Statistic.js +80 -80
  64. package/Steps.js +67 -67
  65. package/Switch.js +47 -47
  66. package/Table.js +1445 -1380
  67. package/Tabs.js +5 -5
  68. package/Tag.js +45 -45
  69. package/TimePicker.js +154 -154
  70. package/Timeline.js +2 -2
  71. package/Tooltip.js +80 -79
  72. package/Transfer.js +103 -102
  73. package/Tree.js +3 -2
  74. package/TreeSelect.js +2 -2
  75. package/Trigger.js +699 -772
  76. package/Typography.js +756 -6
  77. package/Upload.js +2 -2
  78. package/VerificationCode.js +1 -1
  79. package/Version.js +1 -1
  80. package/VirtualList.js +1 -1
  81. package/Watermark.js +1 -1
  82. package/chunk/{BHgJ5Y3T.js → -UuKKT0Z.js} +29 -29
  83. package/chunk/{B8QV6E2b.js → AwZqeapI.js} +5 -5
  84. package/chunk/B5gK1Idp.js +19 -0
  85. package/chunk/B7FlazNB.js +24 -0
  86. package/chunk/{DTBtQQ2H.js → BBvWDeuZ.js} +67 -67
  87. package/chunk/BCftTxEy.js +626 -0
  88. package/chunk/{CZOP_ZHJ.js → BGny4zSb.js} +60 -60
  89. package/chunk/BHF15Dog.js +98 -0
  90. package/chunk/BJQ5UNa-.js +1585 -0
  91. package/chunk/BP9sYyk9.js +8 -0
  92. package/chunk/BUdtVdnv.js +38 -0
  93. package/chunk/BVQlOzTS.js +11 -0
  94. package/chunk/B__a_gb_.js +519 -0
  95. package/chunk/BbEYToV1.js +10 -0
  96. package/chunk/BbdDQAnm.js +15 -0
  97. package/chunk/BdUcgWdu.js +11 -0
  98. package/chunk/BfbXSG70.js +26 -0
  99. package/chunk/BndfNLK4.js +186 -0
  100. package/chunk/BoMCZV6K.js +1098 -0
  101. package/chunk/Br0B6y1T.js +18 -0
  102. package/chunk/BrOW642m.js +130 -0
  103. package/chunk/BxUs8_Cr.js +9 -0
  104. package/chunk/{CcV4wQB1.js → C42LIMP9.js} +244 -242
  105. package/chunk/C4YkFMzC.js +778 -0
  106. package/chunk/{Bh23P4l7.js → C9Wcraj7.js} +21 -21
  107. package/chunk/{4-gvEY5y.js → CANgSlh3.js} +10 -10
  108. package/chunk/CJ_o9tZM.js +5 -0
  109. package/chunk/{DNAigumg.js → CK5m7rLl.js} +36 -36
  110. package/chunk/{CANaGbGR.js → CKNyIitu.js} +57 -56
  111. package/chunk/CLiqJm_T.js +10 -0
  112. package/chunk/{BnSVm1YC.js → CNmmhbCn.js} +32 -32
  113. package/chunk/{BFipyA67.js → CP0odX99.js} +51 -51
  114. package/chunk/CPT-OZH2.js +14 -0
  115. package/chunk/CVSF8p0O.js +698 -0
  116. package/chunk/C_agcwLN.js +31 -0
  117. package/chunk/{jhQQCFMn.js → C_gJWGGh.js} +201 -201
  118. package/chunk/{Bc7t9jkb.js → CaasmWg_.js} +11 -11
  119. package/chunk/Ce1j9KTi.js +6 -0
  120. package/chunk/{D_-UD4vO.js → Cf5QNhkG.js} +18 -18
  121. package/chunk/CkNSv2U7.js +56 -0
  122. package/chunk/Cp2f70gB.js +9 -0
  123. package/chunk/CpegYjdC.js +16 -0
  124. package/chunk/CucI3KZr.js +20 -0
  125. package/chunk/CwoFBTYz.js +11 -0
  126. package/chunk/D2KPqPhV.js +17 -0
  127. package/chunk/D7NyvE5f.js +17 -0
  128. package/chunk/D8oTPQ2H.js +384 -0
  129. package/chunk/{CLBavO5c.js → DC1iHEiy.js} +87 -87
  130. package/chunk/{DnvO8A0Z.js → DFrfrmfK.js} +120 -119
  131. package/chunk/DGTIZ_0O.js +6 -0
  132. package/chunk/DJfpiZn_.js +25 -0
  133. package/chunk/DKr2_PYd.js +34 -0
  134. package/chunk/DNUz6zgo.js +11 -0
  135. package/chunk/DRtM649q.js +11 -0
  136. package/chunk/DS_mUWn6.js +41 -0
  137. package/chunk/DU6bs_19.js +10 -0
  138. package/chunk/DWdbwz22.js +10 -0
  139. package/chunk/DcveZuqd.js +6 -0
  140. package/chunk/DdVFknul.js +24 -0
  141. package/chunk/DgRfikwe.js +16 -0
  142. package/chunk/{znkyQ-HR.js → DkyR2EfG.js} +66 -66
  143. package/chunk/{DUeHQKtx.js → DleQ5HwG.js} +42 -42
  144. package/chunk/DnrZEnQ_.js +27 -0
  145. package/chunk/DsRSHWtX.js +1025 -0
  146. package/chunk/Dz5BdmXo.js +270 -0
  147. package/chunk/EANe01DF.js +1030 -0
  148. package/chunk/{CwhPMMWy.js → Ey4YJCkX.js} +7 -7
  149. package/chunk/GoNx5R4F.js +873 -0
  150. package/chunk/HDUQku8d.js +20 -0
  151. package/chunk/HrAP__Hi.js +25 -0
  152. package/chunk/JPPo5nY_.js +9 -0
  153. package/chunk/{Du-bw6qA.js → SLWP34OR.js} +90 -85
  154. package/chunk/VVKtwaGf.js +278 -0
  155. package/chunk/WPNpLxSI.js +16 -0
  156. package/chunk/{CPvvjMwZ.js → WpO_DsK4.js} +49 -48
  157. package/chunk/fdU3ang6.js +14 -0
  158. package/chunk/{DQAot004.js → fkclKOAL.js} +298 -292
  159. package/chunk/flvYlqx3.js +22 -0
  160. package/chunk/kTDayEpF.js +288 -0
  161. package/chunk/{CssIjN1g.js → pZoNQ75H.js} +31 -31
  162. package/chunk/qFf1w_Jq.js +8 -0
  163. package/chunk/{CHnFKgbk.js → w-kM1L5W.js} +155 -155
  164. package/hooks/index.js +53 -49
  165. package/hooks/useComputedState.js +2 -10
  166. package/hooks/useCreate.js +2 -7
  167. package/hooks/useForceUpdate.js +2 -7
  168. package/hooks/useId.js +2 -10
  169. package/hooks/useInView.js +2 -30
  170. package/hooks/useIntersectionObserver.js +2 -23
  171. package/hooks/useInterval.js +2 -17
  172. package/hooks/useIsFirstRender.js +2 -9
  173. package/hooks/useIsomorphicLayoutEffect.js +2 -5
  174. package/hooks/useKeyboardEvent.js +2 -16
  175. package/hooks/useMedia.js +2 -15
  176. package/hooks/useMergeProps.js +2 -18
  177. package/hooks/useMergeValue.js +2 -19
  178. package/hooks/useOnlineStatus.js +4 -0
  179. package/hooks/useOverflowHidden.js +2 -25
  180. package/hooks/useOverrideRef.js +2 -13
  181. package/hooks/usePersistCallback.js +2 -13
  182. package/hooks/usePrefersColorSchemeDark.js +4 -0
  183. package/hooks/usePrevious.js +2 -9
  184. package/hooks/useRefs.js +2 -9
  185. package/hooks/useResizeObserver.js +2 -15
  186. package/hooks/useStateCallback.js +2 -15
  187. package/hooks/useStateWithPromise.js +2 -24
  188. package/hooks/useUpdateEffect.js +2 -9
  189. package/hooks/useVerificationCode.js +73 -0
  190. package/hooks/useWatch.js +2 -10
  191. package/hooks/{use-watermark.js → useWatermark.js} +27 -26
  192. package/hooks/useWindowSize.js +2 -20
  193. package/index.js +571 -584
  194. package/locale/en-US.js +4 -2
  195. package/locale/interface.js +1 -4
  196. package/locale/ja-JP.js +3 -1
  197. package/locale/tr-TR.js +1 -1
  198. package/locale/zh-CN.js +3 -1
  199. package/locale/zh-HK.js +3 -1
  200. package/locale/zh-TW.js +3 -1
  201. package/package.json +1 -1
  202. package/style.css +1 -1
  203. package/types/anchor/util.d.ts +1 -1
  204. package/types/button/index.d.ts +2 -2
  205. package/types/color-picker/hooks/useColorPicker.d.ts +2 -2
  206. package/types/form/Control-old.d.ts +56 -0
  207. package/types/form/Control.d.ts +6 -54
  208. package/types/form/FormItem.d.ts +1 -1
  209. package/types/form/store.d.ts +0 -1
  210. package/types/hooks/index.d.ts +2 -0
  211. package/types/hooks/useComputedState.d.ts +1 -4
  212. package/types/hooks/useCreate.d.ts +1 -2
  213. package/types/hooks/useForceUpdate.d.ts +1 -2
  214. package/types/hooks/useId.d.ts +1 -2
  215. package/types/hooks/useInView.d.ts +1 -11
  216. package/types/hooks/useIntersectionObserver.d.ts +1 -7
  217. package/types/hooks/useInterval.d.ts +1 -2
  218. package/types/hooks/useIsFirstRender.d.ts +1 -2
  219. package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
  220. package/types/hooks/useKeyboardEvent.d.ts +1 -8
  221. package/types/hooks/useMedia.d.ts +1 -2
  222. package/types/hooks/useMergeProps.d.ts +1 -5
  223. package/types/hooks/useMergeValue.d.ts +1 -6
  224. package/types/hooks/useOnlineStatus.d.ts +1 -0
  225. package/types/hooks/useOverflowHidden.d.ts +1 -5
  226. package/types/hooks/useOverrideRef.d.ts +1 -6
  227. package/types/hooks/usePersistCallback.d.ts +1 -2
  228. package/types/hooks/usePrefersColorSchemeDark.d.ts +1 -0
  229. package/types/hooks/usePrevious.d.ts +1 -3
  230. package/types/hooks/useRefs.d.ts +1 -2
  231. package/types/hooks/useResizeObserver.d.ts +1 -6
  232. package/types/hooks/useStateCallback.d.ts +1 -5
  233. package/types/hooks/useStateWithPromise.d.ts +1 -2
  234. package/types/hooks/useUpdateEffect.d.ts +1 -3
  235. package/types/hooks/useWatch.d.ts +1 -3
  236. package/types/hooks/useWindowSize.d.ts +1 -5
  237. package/types/image/interface.d.ts +1 -0
  238. package/types/index.d.ts +157 -86
  239. package/types/input/Input.d.ts +1 -1
  240. package/types/input/Textarea.d.ts +2 -2
  241. package/types/locale/en-US.d.ts +2 -0
  242. package/types/locale/interface.d.ts +1 -2
  243. package/types/locale/ja-JP.d.ts +2 -0
  244. package/types/locale/zh-CN.d.ts +2 -0
  245. package/types/locale/zh-HK.d.ts +2 -0
  246. package/types/locale/zh-TW.d.ts +2 -0
  247. package/types/menu/context.d.ts +1 -1
  248. package/types/message/index.d.ts +14 -14
  249. package/types/message/interface.d.ts +2 -0
  250. package/types/modal/config.d.ts +0 -1
  251. package/types/modal/interface.d.ts +0 -1
  252. package/types/notice/index.d.ts +2 -27
  253. package/types/notification/index.d.ts +15 -16
  254. package/types/notification/interface.d.ts +2 -0
  255. package/types/notification/withNotification.d.ts +2 -0
  256. package/types/select/util.d.ts +1 -2
  257. package/types/select-view/interface.d.ts +2 -1
  258. package/types/speech-synthesis/index.d.ts +1 -1
  259. package/types/table/constant.d.ts +2 -0
  260. package/types/table/hook/useThResizable.d.ts +7 -0
  261. package/types/table/index.d.ts +10 -1
  262. package/types/table/style/index.d.ts +1 -0
  263. package/types/table/th-resizable/index.d.ts +2 -0
  264. package/types/table/thead/Column.d.ts +1 -2
  265. package/types/tree/Tree.d.ts +12 -67
  266. package/types/tree-select/Select.d.ts +2 -2
  267. package/types/trigger/index.d.ts +2 -120
  268. package/types/trigger/interface.d.ts +2 -1
  269. package/types/utils/CSSTransition.d.ts +2 -3
  270. package/types/utils/caseName.d.ts +1 -1
  271. package/types/utils/className.d.ts +1 -1
  272. package/types/utils/constant.d.ts +2 -2
  273. package/types/utils/copy.d.ts +1 -1
  274. package/types/utils/dayjs.d.ts +1 -21
  275. package/types/utils/dom.d.ts +1 -6
  276. package/types/utils/fileToURL.d.ts +1 -1
  277. package/types/utils/fillNBSP.d.ts +1 -1
  278. package/types/utils/getHighlightText.d.ts +1 -5
  279. package/types/utils/getHotkeyHandler.d.ts +1 -8
  280. package/types/utils/getStringLength.d.ts +1 -1
  281. package/types/utils/include.d.ts +1 -1
  282. package/types/utils/index.d.ts +3 -4
  283. package/types/utils/is.d.ts +1 -16
  284. package/types/utils/keyboardCode.d.ts +3 -0
  285. package/types/utils/lodash.d.ts +1 -17
  286. package/types/utils/mergeProps.d.ts +1 -1
  287. package/types/utils/mergedToString.d.ts +1 -1
  288. package/types/utils/omit.d.ts +1 -1
  289. package/types/utils/pad.d.ts +1 -2
  290. package/types/utils/pick.d.ts +2 -4
  291. package/types/utils/reactDOM.d.ts +1 -7
  292. package/types/utils/resizeObserverEffect.d.ts +2 -0
  293. package/types/utils/saveAs.d.ts +1 -1
  294. package/types/utils/screenfull.d.ts +2 -0
  295. package/types/utils/scrollIntoView.d.ts +1 -2
  296. package/types/utils/style.d.ts +1 -3
  297. package/types/utils/throttleByRaf.d.ts +1 -5
  298. package/types/utils/throttleByRaf2.d.ts +1 -0
  299. package/types/utils/warning.d.ts +1 -2
  300. package/types/version/index.d.ts +1 -1
  301. package/utils/CSSTransition.js +2 -6
  302. package/utils/className.js +2 -2
  303. package/utils/constant.js +8 -9
  304. package/utils/contextHolder.js +1 -1
  305. package/utils/copy.js +1 -1
  306. package/utils/dayjs.js +14 -173
  307. package/utils/dom.js +33 -29
  308. package/utils/fillNBSP.js +2 -4
  309. package/utils/getHighlightText.js +2 -38
  310. package/utils/getHotkeyHandler.js +2 -25
  311. package/utils/getStringLength.js +2 -7
  312. package/utils/include.js +2 -7
  313. package/utils/index.js +237 -240
  314. package/utils/is.js +116 -156
  315. package/utils/keyboardCode.js +27 -0
  316. package/utils/mergeProps.js +2 -9
  317. package/utils/mergedToString.js +2 -13
  318. package/utils/omit.js +2 -9
  319. package/utils/pad.js +12 -12
  320. package/utils/pick.js +4 -15
  321. package/utils/reactDOM.js +3 -54
  322. package/utils/resizeObserverEffect.js +4 -0
  323. package/utils/saveAs.js +1 -1
  324. package/utils/screenfull.js +4 -0
  325. package/utils/scrollIntoView.js +2 -21
  326. package/utils/style.js +12 -11
  327. package/utils/throttleByRaf.js +13 -12
  328. package/utils/throttleByRaf2.js +5 -0
  329. package/utils/warning.js +5 -4
  330. package/NotificationBase.js +0 -53
  331. package/chunk/-zpSUpGE.js +0 -1501
  332. package/chunk/BAWsPQBM.js +0 -11
  333. package/chunk/BIT0j3HT.js +0 -269
  334. package/chunk/BbLKnaNO.js +0 -871
  335. package/chunk/Bfhv56O2.js +0 -638
  336. package/chunk/C2lIz2F9.js +0 -60
  337. package/chunk/C6QWSzsM.js +0 -376
  338. package/chunk/CVkHTbic.js +0 -995
  339. package/chunk/CeGEvXby.js +0 -278
  340. package/chunk/D3NFxdmG.js +0 -518
  341. package/chunk/DApXtulb.js +0 -1102
  342. package/chunk/DPByB1ab.js +0 -698
  343. package/chunk/DV1Ab_cG.js +0 -284
  344. package/chunk/dBnNCOIU.js +0 -778
  345. package/chunk/it8qlDZ3.js +0 -1032
  346. package/chunk/l0sNRNKZ.js +0 -1
  347. package/chunk/te_43YrB.js +0 -776
  348. package/hooks/use-verification-code.js +0 -73
  349. package/types/notification-base/index.d.ts +0 -15
  350. package/types/notification-base/style/index.d.ts +0 -2
  351. package/types/trigger/Portal.d.ts +0 -7
  352. package/types/utils/keyCode.d.ts +0 -45
  353. package/types/utils/raf.d.ts +0 -3
  354. package/types/utils/throttleByRafV2.d.ts +0 -5
  355. package/utils/keyCode.js +0 -12
  356. package/utils/raf.js +0 -19
  357. package/utils/throttleByRafV2.js +0 -16
package/Upload.js CHANGED
@@ -1,5 +1,5 @@
1
- import { U as o } from "./chunk/it8qlDZ3.js";
2
- import { S as s, F as t } from "./chunk/it8qlDZ3.js";
1
+ import { U as o } from "./chunk/EANe01DF.js";
2
+ import { S as s, F as t } from "./chunk/EANe01DF.js";
3
3
  export {
4
4
  s as UPLOAD_STATUS,
5
5
  t as UploadList,
@@ -1,4 +1,4 @@
1
- import { V as a } from "./chunk/BHgJ5Y3T.js";
1
+ import { V as a } from "./chunk/-UuKKT0Z.js";
2
2
  export {
3
3
  a as default
4
4
  };
package/Version.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "2024-12-31 14:33:49", e = "1735626829438", o = "2.65.0";
1
+ const t = "2025-03-11 17:07:43", e = "1741684063203", o = "2.66.0-beta.2";
2
2
  export {
3
3
  t as buildDate,
4
4
  e as buildTime,
package/VirtualList.js CHANGED
@@ -1,4 +1,4 @@
1
- import { V as a } from "./chunk/D3NFxdmG.js";
1
+ import { V as a } from "./chunk/B__a_gb_.js";
2
2
  export {
3
3
  a as default
4
4
  };
package/Watermark.js CHANGED
@@ -1,4 +1,4 @@
1
- import { W as r } from "./chunk/Bc7t9jkb.js";
1
+ import { W as r } from "./chunk/CaasmWg_.js";
2
2
  export {
3
3
  r as default
4
4
  };
@@ -1,53 +1,53 @@
1
1
  import { jsx as R, jsxs as b } from "react/jsx-runtime";
2
2
  import w, { forwardRef as N, useContext as F, useRef as j, createElement as z } from "react";
3
- import { d as D } from "./-zpSUpGE.js";
4
- import { useMergeProps as E } from "../hooks/useMergeProps.js";
5
- import { I as K } from "./BIT0j3HT.js";
6
- import { y as u } from "./BAWsPQBM.js";
7
- import { useVerificationCode as L } from "../hooks/use-verification-code.js";
8
- const M = {
3
+ import { a as D } from "./BJQ5UNa-.js";
4
+ import { c as E } from "./B5gK1Idp.js";
5
+ import { I as K } from "./Dz5BdmXo.js";
6
+ import { m as p } from "./JPPo5nY_.js";
7
+ import { useVerificationCode as L } from "../hooks/useVerificationCode.js";
8
+ const _ = {
9
9
  length: 6
10
10
  };
11
- function C(y, _) {
11
+ function C(y, q) {
12
12
  var d;
13
- const o = F(D), e = E(
13
+ const n = F(D), e = E(
14
14
  y,
15
- M,
16
- (d = o.componentConfig) == null ? void 0 : d.VerificationCode
17
- ), { size: l, separator: s, status: c, length: g, masked: h, disabled: v } = e, f = j([]), { value: $, filledValue: P, getInputProps: x } = L({
15
+ _,
16
+ (d = n.componentConfig) == null ? void 0 : d.VerificationCode
17
+ ), { size: l, separator: r, status: f, length: g, masked: h, disabled: $ } = e, c = j([]), { value: v, filledValue: x, getInputProps: P } = L({
18
18
  defaultValue: e.defaultValue,
19
19
  value: e.value,
20
20
  length: g,
21
- getInputRefList: () => f.current,
21
+ getInputRefList: () => c.current,
22
22
  onChange: e.onChange,
23
23
  onFinish: e.onFinish
24
- }), i = o.getPrefixCls("verification-code"), n = o.getPrefixCls("input");
24
+ }), s = n.getPrefixCls("verification-code"), o = n.getPrefixCls("input");
25
25
  return /* @__PURE__ */ R(
26
26
  "div",
27
27
  {
28
- className: u(`${i}`, e.className, {
29
- [`${i}-rtl`]: o.rtl
28
+ className: p(`${s}`, e.className, {
29
+ [`${s}-rtl`]: n.rtl
30
30
  }),
31
31
  style: e.style,
32
- children: P.map((V, r) => {
33
- const { onChange: m, onClick: I, onPaste: O, onKeyDown: k, ...p } = x(r);
32
+ children: x.map((V, i) => {
33
+ const { onChange: m, onClick: I, onPaste: O, onKeyDown: k, ...u } = P(i);
34
34
  return /* @__PURE__ */ b(w.Fragment, { children: [
35
35
  /* @__PURE__ */ z(
36
36
  K,
37
37
  {
38
38
  disabled: e.disabled,
39
39
  readOnly: e.readOnly,
40
- className: u(n, `${i}-input`, {
41
- [`${n}-size-${l}`]: l,
42
- [`${n}-${c}`]: c,
43
- [`${n}-disabled`]: v,
44
- [`${n}-rtl`]: o.rtl
40
+ className: p(o, `${s}-input`, {
41
+ [`${o}-size-${l}`]: l,
42
+ [`${o}-${f}`]: f,
43
+ [`${o}-disabled`]: $,
44
+ [`${o}-rtl`]: n.rtl
45
45
  }),
46
46
  ref: (t) => {
47
- f.current[r] = t == null ? void 0 : t.dom;
47
+ c.current[i] = t == null ? void 0 : t.dom;
48
48
  },
49
- ...p,
50
- key: p.key,
49
+ ...u,
50
+ key: u.key,
51
51
  onClick: e.readOnly ? void 0 : I,
52
52
  onPaste: e.readOnly ? void 0 : O,
53
53
  onKeyDown: e.readOnly ? void 0 : k,
@@ -55,8 +55,8 @@ function C(y, _) {
55
55
  if (e.validate) {
56
56
  const a = e == null ? void 0 : e.validate({
57
57
  inputValue: t,
58
- index: r,
59
- value: $
58
+ index: i,
59
+ value: v
60
60
  });
61
61
  a !== !1 && m(
62
62
  typeof a == "string" ? a : t
@@ -67,8 +67,8 @@ function C(y, _) {
67
67
  type: h ? "password" : "text"
68
68
  }
69
69
  ),
70
- s == null ? void 0 : s({ index: r, character: V })
71
- ] }, r);
70
+ r == null ? void 0 : r({ index: i, character: V })
71
+ ] }, i);
72
72
  })
73
73
  }
74
74
  );
@@ -5,7 +5,7 @@ function t(o) {
5
5
  function s(o, n) {
6
6
  const e = t();
7
7
  e.open("GET", o), e.responseType = "blob", e.onload = () => {
8
- a(e.response, n);
8
+ i(e.response, n);
9
9
  }, e.onerror = () => {
10
10
  console.error("无法下载文件");
11
11
  }, e.send();
@@ -20,15 +20,15 @@ function c(o) {
20
20
  }
21
21
  return n.status >= 200 && n.status <= 299;
22
22
  }
23
- async function i(o, n) {
23
+ async function a(o, n) {
24
24
  const e = document.createElementNS("http://www.w3.org/1999/xhtml", "a");
25
25
  e.rel = "noopener", typeof o == "string" && (e.href = o, e.origin === location.origin || (c(o) ? s(o, n) : e.target = "_blank")), o instanceof Blob && (e.href = await r(o)), o instanceof File && (n || (n = o.name)), n || (n = "download"), e.download = n, setTimeout(() => {
26
26
  e.dispatchEvent(new MouseEvent("click"));
27
27
  }, 0);
28
28
  }
29
- function a(o, n) {
30
- i(o, n);
29
+ function i(o, n) {
30
+ a(o, n);
31
31
  }
32
32
  export {
33
- a as c
33
+ i as c
34
34
  };
@@ -0,0 +1,19 @@
1
+ import { useMemo as m } from "react";
2
+ import { c as i } from "./BdUcgWdu.js";
3
+ function u(o, s, t = {}) {
4
+ const { _ignorePropsFromGlobal: c } = o, r = m(() => ({
5
+ ...s,
6
+ ...c ? {} : t
7
+ }), [s, t, c]);
8
+ return m(() => {
9
+ const n = i(o, [
10
+ "_ignorePropsFromGlobal"
11
+ ]);
12
+ for (const e in r)
13
+ n[e] === void 0 && (n[e] = r[e]);
14
+ return n;
15
+ }, [o, r]);
16
+ }
17
+ export {
18
+ u as c
19
+ };
@@ -0,0 +1,24 @@
1
+ import { e } from "./Ce1j9KTi.js";
2
+ import { useState as c, useEffect as m } from "react";
3
+ function f() {
4
+ const [n, r] = c(
5
+ e.matches
6
+ );
7
+ return m(() => {
8
+ function t(o) {
9
+ r(!!o.matches);
10
+ }
11
+ return e.addEventListener(
12
+ "change",
13
+ t
14
+ ), () => {
15
+ e.removeEventListener(
16
+ "change",
17
+ t
18
+ );
19
+ };
20
+ }, []), n;
21
+ }
22
+ export {
23
+ f as m
24
+ };
@@ -1,13 +1,13 @@
1
- import { jsx as $, jsxs as Q, Fragment as Te } from "react/jsx-runtime";
2
- import { useRef as j, useEffect as X, useCallback as V, createContext as Ce, useContext as ie } from "react";
1
+ import { jsx as $, jsxs as K, Fragment as Te } from "react/jsx-runtime";
2
+ import { useRef as z, useEffect as Q, useCallback as V, createContext as Ce, useContext as ie } from "react";
3
3
  import se from "../Button.js";
4
- import { d as He } from "./-zpSUpGE.js";
5
- import { y as ee } from "./BAWsPQBM.js";
6
- import { dayjs as g, methods as Y, getDayjsValue as Oe, getNow as re, toLocal as ce } from "../utils/dayjs.js";
4
+ import { a as He } from "./BJQ5UNa-.js";
5
+ import { m as ee } from "./JPPo5nY_.js";
6
+ import { c as g, h as Y, V as Oe, X as re, v as ce } from "./BndfNLK4.js";
7
7
  import { padStart as C } from "../utils/pad.js";
8
8
  import ge from "lodash/debounce";
9
- import { usePrevious as ye } from "../hooks/usePrevious.js";
10
- import { C as we, S as Se } from "./4-gvEY5y.js";
9
+ import { n as ye } from "./DU6bs_19.js";
10
+ import { C as we, S as Se } from "./CANgSlh3.js";
11
11
  import { isDayjs as ke } from "dayjs";
12
12
  function _(r) {
13
13
  const s = ["H", "h", "m", "s", "a", "A"], o = [];
@@ -44,7 +44,7 @@ function _e(r) {
44
44
  }
45
45
  return r;
46
46
  }
47
- function R(r) {
47
+ function L(r) {
48
48
  const {
49
49
  prefixCls: s,
50
50
  list: o,
@@ -53,24 +53,24 @@ function R(r) {
53
53
  unit: u,
54
54
  popupVisible: a,
55
55
  scrollSticky: d
56
- } = r, y = j(/* @__PURE__ */ new Map()), p = j(null), w = j(), z = j(0), F = ye(a), v = j(
56
+ } = r, y = z(/* @__PURE__ */ new Map()), p = z(null), w = z(), E = z(0), M = ye(a), b = z(
57
57
  p.current && p.current.scrollTop
58
58
  );
59
- X(() => {
59
+ Q(() => {
60
60
  const i = y.current.get(h);
61
- i && a && F && (le(p.current, i.offsetTop, 150), v.current = i.offsetTop);
62
- }, [h]), X(() => {
63
- if (a && a !== F) {
61
+ i && a && M && (le(p.current, i.offsetTop, 150), b.current = i.offsetTop);
62
+ }, [h]), Q(() => {
63
+ if (a && a !== M) {
64
64
  const i = y.current.get(h);
65
- i && (le(p.current, i.offsetTop, 0), v.current = i.offsetTop);
65
+ i && (le(p.current, i.offsetTop, 0), b.current = i.offsetTop);
66
66
  }
67
- }, [a, F]), X(() => {
68
- o.length <= 1 || (z.current = (w.current.clientHeight - p.current.clientHeight) / (o.length - 1));
67
+ }, [a, M]), Q(() => {
68
+ o.length <= 1 || (E.current = (w.current.clientHeight - p.current.clientHeight) / (o.length - 1));
69
69
  }, [o.length]);
70
- const E = V(
70
+ const j = V(
71
71
  ge(() => {
72
- const H = (p.current.scrollTop - v.current > 0 ? Math.ceil : Math.floor)(
73
- p.current.scrollTop / z.current
72
+ const H = (p.current.scrollTop - b.current > 0 ? Math.ceil : Math.floor)(
73
+ p.current.scrollTop / E.current
74
74
  );
75
75
  H !== h && o[H] && !o[H].disabled && c(o[H].value, u);
76
76
  }, 100),
@@ -81,7 +81,7 @@ function R(r) {
81
81
  {
82
82
  className: ee(`${s}-list`),
83
83
  ref: p,
84
- onWheel: d ? E : void 0,
84
+ onWheel: d ? j : void 0,
85
85
  children: /* @__PURE__ */ $("ul", { ref: w, children: o.map((i) => /* @__PURE__ */ $(
86
86
  "li",
87
87
  {
@@ -100,8 +100,8 @@ function R(r) {
100
100
  }
101
101
  );
102
102
  }
103
- const Ne = Ce({}), Pe = ["am", "pm"];
104
- function Fe(r) {
103
+ const Ne = Ce({}), Fe = ["am", "pm"];
104
+ function Me(r) {
105
105
  return r.use12Hours ?? _(r.format).use12Hours;
106
106
  }
107
107
  function qe(r) {
@@ -116,15 +116,15 @@ function qe(r) {
116
116
  hideDisabledOptions: y,
117
117
  onConfirmValue: p,
118
118
  isRangePicker: w,
119
- confirmBtnDisabled: z,
120
- valueShow: F,
121
- setValueShow: v,
122
- extra: E,
119
+ confirmBtnDisabled: E,
120
+ valueShow: M,
121
+ setValueShow: b,
122
+ extra: j,
123
123
  disableConfirm: i,
124
124
  hideFooter: H,
125
125
  showNowBtn: ne = !0,
126
126
  scrollSticky: fe
127
- } = r, { getPrefixCls: ue, locale: te } = ie(He), B = ue("timepicker"), { utcOffset: q, timezone: W } = ie(Ne), x = Oe(F, s), M = x && x.hour() >= 12 ? "pm" : "am", O = Fe(r), G = V(
127
+ } = r, { getPrefixCls: ue, locale: te } = ie(He), B = ue("timepicker"), { utcOffset: q, timezone: W } = ie(Ne), x = Oe(M, s), P = x && x.hour() >= 12 ? "pm" : "am", O = Me(r), X = V(
128
128
  (n) => {
129
129
  const t = c.hour || 1, e = c.minute || 1, U = c.second || 1, m = [];
130
130
  if (n === "hour") {
@@ -141,10 +141,10 @@ function qe(r) {
141
141
  return m;
142
142
  },
143
143
  [c.hour, c.minute, c.second, O]
144
- ), A = G("hour"), N = G("minute"), S = G("second");
144
+ ), A = X("hour"), N = X("minute"), S = X("second");
145
145
  let l = x && x.hour();
146
- l = O && l > 12 ? l - 12 : l, O && l === 0 && M === "am" && (l += 12);
147
- const P = x && x.minute(), oe = x && x.second(), J = V(
146
+ l = O && l > 12 ? l - 12 : l, O && l === 0 && P === "am" && (l += 12);
147
+ const F = x && x.minute(), oe = x && x.second(), G = V(
148
148
  (n) => {
149
149
  switch (n) {
150
150
  case "hour":
@@ -164,7 +164,7 @@ function qe(r) {
164
164
  case "second":
165
165
  return typeof d == "function" ? C(
166
166
  S.find(
167
- (t) => d(l, P).indexOf(t) === -1
167
+ (t) => d(l, F).indexOf(t) === -1
168
168
  ) || 0,
169
169
  2,
170
170
  "0"
@@ -181,52 +181,52 @@ function qe(r) {
181
181
  a,
182
182
  d,
183
183
  l,
184
- P
184
+ F
185
185
  ]
186
186
  );
187
187
  function ae(n, t) {
188
188
  const e = _(s).list.indexOf("A") !== -1, U = x || g(
189
- `${J("hour")}:${J("minute")}:${J(
189
+ `${G("hour")}:${G("minute")}:${G(
190
190
  "second"
191
191
  )}`,
192
192
  "HH:mm:ss"
193
193
  );
194
194
  let m = U.hour(), f = U.minute(), k = U.second();
195
- const K = e ? M.toUpperCase() : M;
196
- let T = "HH:mm:ss", b;
195
+ const J = e ? P.toUpperCase() : P;
196
+ let T = "HH:mm:ss", v;
197
197
  O && (e ? T = `${T} A` : T = `${T} a`), O && (m = m > 12 ? m - 12 : m), t === "hour" && (typeof a == "function" && a(n).includes(f) && (f = N.find(
198
198
  (D) => a(n).indexOf(D) === -1
199
199
  ) ?? 0), typeof d == "function" && d(n, f).includes(k) && (k = S.find(
200
200
  (D) => d(n, f).indexOf(D) === -1
201
- ) ?? 0), b = g(
202
- `${n}:${f}:${k} ${K}`,
201
+ ) ?? 0), v = g(
202
+ `${n}:${f}:${k} ${J}`,
203
203
  T,
204
204
  "en"
205
205
  )), t === "minute" && (typeof d == "function" && d(m, n).includes(k) && (k = S.find(
206
206
  (D) => d(m, n).indexOf(D) === -1
207
- ) ?? 0), b = g(
208
- `${m}:${n}:${k} ${K}`,
207
+ ) ?? 0), v = g(
208
+ `${m}:${n}:${k} ${J}`,
209
209
  T,
210
210
  "en"
211
- )), t === "second" && (b = g(
212
- `${m}:${f}:${n} ${K}`,
211
+ )), t === "second" && (v = g(
212
+ `${m}:${f}:${n} ${J}`,
213
213
  T,
214
214
  "en"
215
- )), t === "ampm" && (b = g(
215
+ )), t === "ampm" && (v = g(
216
216
  `${m}:${f}:${k} ${e ? n.toUpperCase() : n}`,
217
217
  T,
218
218
  "en"
219
- )), b = g(b, T).locale(g.locale()), o == null || o(
220
- ce(b, q, W).format(s),
221
- ce(b, q, W)
222
- ), w || (v == null || v(b), i && p(b));
219
+ )), v = g(v, T).locale(g.locale()), o == null || o(
220
+ ce(v, q, W).format(s),
221
+ ce(v, q, W)
222
+ ), w || (b == null || b(v), i && p(v));
223
223
  }
224
224
  function de() {
225
225
  x && p(x);
226
226
  }
227
227
  function me() {
228
228
  const n = re(), t = re(q, W);
229
- o == null || o(n.format(s), n), i ? p == null || p(t) : v == null || v(t);
229
+ o == null || o(n.format(s), n), i ? p == null || p(t) : b == null || b(t);
230
230
  }
231
231
  const I = {
232
232
  prefixCls: B,
@@ -242,7 +242,7 @@ function qe(r) {
242
242
  disabled: typeof u == "function" && u().indexOf(e) !== -1
243
243
  }));
244
244
  return /* @__PURE__ */ $(
245
- R,
245
+ L,
246
246
  {
247
247
  ...I,
248
248
  list: t,
@@ -255,30 +255,30 @@ function qe(r) {
255
255
  const t = (y && typeof a == "function" ? N.filter((e) => a(l).indexOf(e) === -1) : N).map((e) => ({
256
256
  label: C(`${e}`, 2, "0"),
257
257
  value: e,
258
- selected: l !== void 0 && P === e,
258
+ selected: l !== void 0 && F === e,
259
259
  disabled: typeof a == "function" && a(l).indexOf(e) !== -1
260
260
  }));
261
261
  return /* @__PURE__ */ $(
262
- R,
262
+ L,
263
263
  {
264
264
  ...I,
265
265
  list: t,
266
- value: P,
266
+ value: F,
267
267
  unit: "minute"
268
268
  }
269
269
  );
270
270
  }
271
271
  function xe() {
272
272
  const t = (y && typeof d == "function" ? S.filter(
273
- (e) => d(l, P).indexOf(e) === -1
273
+ (e) => d(l, F).indexOf(e) === -1
274
274
  ) : S).map((e) => ({
275
275
  label: C(`${e}`, 2, "0"),
276
276
  value: e,
277
277
  selected: l !== void 0 && oe === e,
278
- disabled: typeof d == "function" && d(l, P).indexOf(e) !== -1
278
+ disabled: typeof d == "function" && d(l, F).indexOf(e) !== -1
279
279
  }));
280
280
  return /* @__PURE__ */ $(
281
- R,
281
+ L,
282
282
  {
283
283
  ...I,
284
284
  list: t,
@@ -288,31 +288,31 @@ function qe(r) {
288
288
  );
289
289
  }
290
290
  function $e() {
291
- const n = _(s).list.indexOf("A") !== -1, t = Pe.map((e) => ({
291
+ const n = _(s).list.indexOf("A") !== -1, t = Fe.map((e) => ({
292
292
  label: n ? e.toUpperCase() : e,
293
293
  value: e,
294
- selected: M === e
294
+ selected: P === e
295
295
  }));
296
296
  return /* @__PURE__ */ $(
297
- R,
297
+ L,
298
298
  {
299
299
  ...I,
300
300
  list: t,
301
- value: M,
301
+ value: P,
302
302
  unit: "ampm"
303
303
  }
304
304
  );
305
305
  }
306
- const { list: L } = _(s), ve = ee(B), be = H || i && w || !w && i && !ne;
307
- return /* @__PURE__ */ Q(Te, { children: [
308
- /* @__PURE__ */ Q("div", { className: ve, children: [
309
- (L.indexOf("H") !== -1 || L.indexOf("h") !== -1) && pe(),
310
- L.indexOf("m") !== -1 && he(),
311
- L.indexOf("s") !== -1 && xe(),
306
+ const { list: R } = _(s), be = ee(B), ve = H || i && w || !w && i && !ne;
307
+ return /* @__PURE__ */ K(Te, { children: [
308
+ /* @__PURE__ */ K("div", { className: be, children: [
309
+ (R.indexOf("H") !== -1 || R.indexOf("h") !== -1) && pe(),
310
+ R.indexOf("m") !== -1 && he(),
311
+ R.indexOf("s") !== -1 && xe(),
312
312
  O && $e()
313
313
  ] }),
314
- E && /* @__PURE__ */ $("div", { className: `${B}-footer-extra-wrapper`, children: E }),
315
- !be && /* @__PURE__ */ Q("div", { className: `${B}-footer-btn-wrapper`, children: [
314
+ j && /* @__PURE__ */ $("div", { className: `${B}-footer-extra-wrapper`, children: j }),
315
+ !ve && /* @__PURE__ */ K("div", { className: `${B}-footer-btn-wrapper`, children: [
316
316
  !w && ne ? /* @__PURE__ */ $(se, { size: "mini", onClick: me, children: te.TimePicker.now }) : /* @__PURE__ */ $("div", {}),
317
317
  !i && /* @__PURE__ */ $(
318
318
  se,
@@ -320,7 +320,7 @@ function qe(r) {
320
320
  type: "primary",
321
321
  size: "mini",
322
322
  onClick: de,
323
- disabled: z || !x,
323
+ disabled: E || !x,
324
324
  children: te.TimePicker.ok
325
325
  }
326
326
  )