@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/Calendar.js CHANGED
@@ -1,31 +1,31 @@
1
- import { jsx as a, jsxs as L, Fragment as te } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as L, Fragment as ae } from "react/jsx-runtime";
2
2
  import Me from "lodash/merge";
3
- import se, { useMemo as ie, useContext as be, useState as J } from "react";
4
- import { d as De } from "./chunk/-zpSUpGE.js";
5
- import { useMergeProps as Re } from "./hooks/useMergeProps.js";
6
- import { y as V } from "./chunk/BAWsPQBM.js";
7
- import { getNow as O, methods as E, dayjs as le, getDayjsValue as B } from "./utils/dayjs.js";
8
- import { pickDataAttributes as Ae } from "./utils/pick.js";
9
- import { newArray as ae } from "./utils/constant.js";
10
- import { padStart as de } from "./utils/pad.js";
3
+ import se, { useMemo as ie, useContext as Re, useState as J } from "react";
4
+ import { a as be } from "./chunk/BJQ5UNa-.js";
5
+ import { c as De } from "./chunk/B5gK1Idp.js";
6
+ import { m as V } from "./chunk/JPPo5nY_.js";
7
+ import { X as O, h as Y, c as le, V as B } from "./chunk/BndfNLK4.js";
8
+ import { r as Ae } from "./chunk/D7NyvE5f.js";
9
+ import { newArray as te } from "./utils/constant.js";
10
+ import { padStart as ce } from "./utils/pad.js";
11
11
  import K from "lodash/isArray";
12
- import ce from "@unicom-cloud/icons/IconUiLeft";
12
+ import de from "@unicom-cloud/icons/IconUiLeft";
13
13
  import me from "@unicom-cloud/icons/IconUiRight";
14
14
  import xe from "./Button.js";
15
- import { useKeyboardEvent as Le } from "./hooks/useKeyboardEvent.js";
16
- import { R as Ee } from "./chunk/CZOP_ZHJ.js";
17
- import { S as ne } from "./chunk/dBnNCOIU.js";
18
- import Pe from "@unicom-cloud/icons/IconUiDoubleLeft";
19
- import Ye from "@unicom-cloud/icons/IconUiDoubleRight";
20
- function Ve(t) {
15
+ import { h as Le } from "./chunk/D2KPqPhV.js";
16
+ import { R as Ye } from "./chunk/BGny4zSb.js";
17
+ import { S as ne } from "./chunk/C4YkFMzC.js";
18
+ import Ee from "@unicom-cloud/icons/IconUiDoubleLeft";
19
+ import Pe from "@unicom-cloud/icons/IconUiDoubleRight";
20
+ function Ve(a) {
21
21
  const {
22
22
  prefixCls: e,
23
23
  dayStartOfWeek: h,
24
24
  isWeek: f,
25
- CALENDAR_LOCALE: d,
25
+ CALENDAR_LOCALE: c,
26
26
  panel: r,
27
- innerMode: o
28
- } = t, s = [
27
+ innerMode: s
28
+ } = a, i = [
29
29
  "monday",
30
30
  "tuesday",
31
31
  "wednesday",
@@ -33,170 +33,170 @@ function Ve(t) {
33
33
  "friday",
34
34
  "saturday"
35
35
  ];
36
- h === 0 ? s.unshift("sunday") : s.push("sunday"), f && s.unshift("self");
37
- const n = d.week[r || o === "year" ? "short" : "long"];
38
- return /* @__PURE__ */ a("div", { className: `${e}-week-list`, children: s.map((l) => /* @__PURE__ */ a("div", { className: `${e}-week-list-item`, children: n[l] }, l)) });
36
+ h === 0 ? i.unshift("sunday") : i.push("sunday"), f && i.unshift("self");
37
+ const n = c.week[r || s === "year" ? "short" : "long"];
38
+ return /* @__PURE__ */ t("div", { className: `${e}-week-list`, children: i.map((l) => /* @__PURE__ */ t("div", { className: `${e}-week-list-item`, children: n[l] }, l)) });
39
39
  }
40
- function _(t, e) {
41
- if (t && K(t))
42
- return t[e];
40
+ function _(a, e) {
41
+ if (a && K(a))
42
+ return a[e];
43
43
  }
44
- function he(t) {
44
+ function he(a) {
45
45
  const {
46
46
  prefixCls: e,
47
47
  mergedValue: h,
48
48
  rangeValues: f,
49
- hoverRangeValues: d,
49
+ hoverRangeValues: c,
50
50
  panel: r,
51
- isSameTime: o,
52
- innerMode: s
53
- } = t;
54
- function n(l, i, g) {
55
- return !i || !g ? !1 : o(l, i) || o(l, g) || l.isBetween(i, g, null, "[]");
51
+ isSameTime: s,
52
+ innerMode: i
53
+ } = a;
54
+ function n(l, o, g) {
55
+ return !o || !g ? !1 : s(l, o) || s(l, g) || l.isBetween(o, g, null, "[]");
56
56
  }
57
- return function(i, g) {
58
- const p = _(f, 0), u = _(f, 1), y = _(d, 0), v = _(d, 1), w = !i.isPrev && !i.isNext, $ = w && r, b = $ && p && o(i.time, p), D = $ && u && o(i.time, u), c = y && p && y.isBefore(p), k = u && v && v.isAfter(u), x = c && b || k && D;
59
- let m = o(i.time, O());
60
- return !r && s === "year" && (m = O().isSame(i.time, "date")), V(`${e}-cell`, {
57
+ return function(o, g) {
58
+ const p = _(f, 0), u = _(f, 1), v = _(c, 0), y = _(c, 1), w = !o.isPrev && !o.isNext, $ = w && r, R = $ && p && s(o.time, p), b = $ && u && s(o.time, u), d = v && p && v.isBefore(p), k = u && y && y.isAfter(u), x = d && R || k && b;
59
+ let m = s(o.time, O());
60
+ return !r && i === "year" && (m = O().isSame(o.time, "date")), V(`${e}-cell`, {
61
61
  [`${e}-cell-in-view`]: w,
62
62
  [`${e}-cell-today`]: m,
63
- [`${e}-cell-selected`]: h && o(i.time, h),
64
- [`${e}-cell-range-start`]: b,
65
- [`${e}-cell-range-end`]: D,
66
- [`${e}-cell-in-range`]: $ && n(i.time, p, u),
63
+ [`${e}-cell-selected`]: h && s(o.time, h),
64
+ [`${e}-cell-range-start`]: R,
65
+ [`${e}-cell-range-end`]: b,
66
+ [`${e}-cell-in-range`]: $ && n(o.time, p, u),
67
67
  [`${e}-cell-in-range-near-hover`]: x,
68
- [`${e}-cell-hover-range-start`]: $ && y && o(i.time, y),
69
- [`${e}-cell-hover-range-end`]: $ && v && o(i.time, v),
70
- [`${e}-cell-hover-in-range`]: $ && n(i.time, y, v),
68
+ [`${e}-cell-hover-range-start`]: $ && v && s(o.time, v),
69
+ [`${e}-cell-hover-range-end`]: $ && y && s(o.time, y),
70
+ [`${e}-cell-hover-in-range`]: $ && n(o.time, v, y),
71
71
  [`${e}-cell-disabled`]: g
72
72
  });
73
73
  };
74
74
  }
75
- const re = 6 * 7, z = (t) => ({
76
- year: t.year(),
77
- month: t.month() + 1,
78
- date: t.date(),
79
- day: t.day(),
80
- time: t
81
- }), Oe = (t) => ({
82
- start: z(E.startOf(t, "month")),
83
- end: z(E.endOf(t, "month")),
84
- days: t.daysInMonth()
75
+ const re = 6 * 7, z = (a) => ({
76
+ year: a.year(),
77
+ month: a.month() + 1,
78
+ date: a.date(),
79
+ day: a.day(),
80
+ time: a
81
+ }), Oe = (a) => ({
82
+ start: z(Y.startOf(a, "month")),
83
+ end: z(Y.endOf(a, "month")),
84
+ days: a.daysInMonth()
85
85
  });
86
- function ue(t, e) {
87
- const { dayStartOfWeek: h = 0, isWeek: f } = t, d = Oe(e), r = ae(re).map(() => ({})), o = h === 0 ? d.start.day : (d.start.day || 7) - 1;
88
- r[o] = {
89
- ...d.start,
86
+ function ue(a, e) {
87
+ const { dayStartOfWeek: h = 0, isWeek: f } = a, c = Oe(e), r = te(re).map((n, l, o) => ({})), s = h === 0 ? c.start.day : (c.start.day || 7) - 1;
88
+ r[s] = {
89
+ ...c.start,
90
90
  isCurrent: !0
91
91
  };
92
- for (let n = 0; n < o; n++)
93
- r[o - n - 1] = {
94
- ...z(E.subtract(d.start.time, n + 1, "day")),
92
+ for (let n = 0; n < s; n++)
93
+ r[s - n - 1] = {
94
+ ...z(Y.subtract(c.start.time, n + 1, "day")),
95
95
  isPrev: !0
96
96
  };
97
- for (let n = 0; n < re - o - 1; n++)
98
- r[o + n + 1] = {
99
- ...z(E.add(d.start.time, n + 1, "day")),
100
- isCurrent: n < d.days,
101
- isNext: n >= d.days - 1
97
+ for (let n = 0; n < re - s - 1; n++)
98
+ r[s + n + 1] = {
99
+ ...z(Y.add(c.start.time, n + 1, "day")),
100
+ isCurrent: n < c.days,
101
+ isNext: n >= c.days - 1
102
102
  };
103
- const s = ae(6).map(() => []);
103
+ const i = te(6).map((n, l, o) => []);
104
104
  for (let n = 0; n < 6; n++)
105
- if (s[n] = r.slice(n * 7, 7 * (n + 1)), f) {
106
- const l = s[n][0].time, i = [...s[n]];
107
- s[n].unshift({
108
- weekRows: i,
105
+ if (i[n] = r.slice(n * 7, 7 * (n + 1)), f) {
106
+ const l = i[n][0].time, o = [...i[n]];
107
+ i[n].unshift({
108
+ weekRows: o,
109
109
  weekOfYear: l.week()
110
110
  });
111
111
  }
112
- return s;
112
+ return i;
113
113
  }
114
- function fe(t) {
114
+ function fe(a) {
115
115
  const {
116
116
  prefixCls: e,
117
117
  cell: h,
118
118
  value: f,
119
- pageData: d,
119
+ pageData: c,
120
120
  mergedValue: r,
121
- isWeek: o,
122
- disabledDate: s,
121
+ isWeek: s,
122
+ disabledDate: i,
123
123
  selectHandler: n,
124
124
  panel: l,
125
- innerMode: i,
125
+ innerMode: o,
126
126
  dateRender: g,
127
127
  onMouseEnterCell: p,
128
128
  onMouseLeaveCell: u,
129
- dateInnerContent: y,
130
- mergedPageShowDate: v,
129
+ dateInnerContent: v,
130
+ mergedPageShowDate: y,
131
131
  dayStartOfWeek: w,
132
132
  CALENDAR_LOCALE: $
133
- } = t, b = v.year(), D = he({
134
- ...t,
133
+ } = a, R = y.year(), b = he({
134
+ ...a,
135
135
  isSameTime: (x, m) => x.isSame(m, "day")
136
136
  });
137
- function c(x) {
137
+ function d(x) {
138
138
  return x.map((m, T) => {
139
139
  if (m.time) {
140
- const M = typeof s == "function" && s(m.time), C = () => n(m.time, M), Y = o ? { onClick: C } : {}, P = o ? {} : { onClick: C };
141
- return /* @__PURE__ */ a(
140
+ const M = typeof i == "function" && i(m.time), C = () => n(m.time, M), P = s ? { onClick: C } : {}, E = s ? {} : { onClick: C };
141
+ return /* @__PURE__ */ t(
142
142
  "div",
143
143
  {
144
- className: D(m, M),
144
+ className: b(m, M),
145
145
  onMouseEnter: () => p == null ? void 0 : p(m.time, M),
146
146
  onMouseLeave: () => u == null ? void 0 : u(m.time, M),
147
- ...Y,
147
+ ...P,
148
148
  children: g ? se.cloneElement(
149
149
  g(m.time),
150
- P
151
- ) : /* @__PURE__ */ L("div", { className: `${e}-date`, ...P, children: [
152
- /* @__PURE__ */ a("div", { className: `${e}-date-value`, children: l ? m.date : /* @__PURE__ */ a("div", { className: `${e}-date-circle`, children: m.date }) }),
153
- !l && i !== "year" && /* @__PURE__ */ a("div", { className: `${e}-date-content`, children: y == null ? void 0 : y(m.time) })
150
+ E
151
+ ) : /* @__PURE__ */ L("div", { className: `${e}-date`, ...E, children: [
152
+ /* @__PURE__ */ t("div", { className: `${e}-date-value`, children: l ? m.date : /* @__PURE__ */ t("div", { className: `${e}-date-circle`, children: m.date }) }),
153
+ !l && o !== "year" && /* @__PURE__ */ t("div", { className: `${e}-date-content`, children: v == null ? void 0 : v(m.time) })
154
154
  ] })
155
155
  },
156
156
  T
157
157
  );
158
158
  }
159
159
  if ("weekOfYear" in m) {
160
- const M = r && r.year(), C = r && r.month() + 1, Y = r && r.week(), P = r && m.weekRows.find(
160
+ const M = r && r.year(), C = r && r.month() + 1, P = r && r.week(), E = r && m.weekRows.find(
161
161
  (S) => S.year === M && S.month === C
162
- ) && Y === m.weekOfYear;
163
- return /* @__PURE__ */ a(
162
+ ) && P === m.weekOfYear;
163
+ return /* @__PURE__ */ t(
164
164
  "div",
165
165
  {
166
166
  className: V(`${e}-cell`, `${e}-cell-week`, {
167
- [`${e}-cell-selected-week`]: P,
168
- [`${e}-cell-in-range`]: P
167
+ [`${e}-cell-selected-week`]: E,
168
+ [`${e}-cell-in-range`]: E
169
169
  }),
170
- children: /* @__PURE__ */ a("div", { className: `${e}-date`, children: /* @__PURE__ */ a("div", { className: `${e}-date-value`, children: m.weekOfYear }) })
170
+ children: /* @__PURE__ */ t("div", { className: `${e}-date`, children: /* @__PURE__ */ t("div", { className: `${e}-date-value`, children: m.weekOfYear }) })
171
171
  },
172
172
  T
173
173
  );
174
174
  }
175
175
  });
176
176
  }
177
- let k = d;
177
+ let k = c;
178
178
  return typeof f == "number" && (k = ue(
179
- t,
180
- le(`${b}-${de(f + 1, 2, "0")}-01`)
179
+ a,
180
+ le(`${R}-${ce(f + 1, 2, "0")}-01`)
181
181
  )), /* @__PURE__ */ L("div", { className: h ? `${e}-month-cell` : `${e}-month`, children: [
182
- /* @__PURE__ */ a(
182
+ /* @__PURE__ */ t(
183
183
  Ve,
184
184
  {
185
185
  prefixCls: e,
186
186
  dayStartOfWeek: w,
187
- isWeek: o,
187
+ isWeek: s,
188
188
  CALENDAR_LOCALE: $,
189
189
  panel: l,
190
- innerMode: i
190
+ innerMode: o
191
191
  }
192
192
  ),
193
- /* @__PURE__ */ a("div", { className: `${e}-month-cell-body`, children: k.map((x, m) => /* @__PURE__ */ a(
193
+ /* @__PURE__ */ t("div", { className: `${e}-month-cell-body`, children: k.map((x, m) => /* @__PURE__ */ t(
194
194
  "div",
195
195
  {
196
196
  className: V(`${e}-month-row`, {
197
- [`${e}-row-week`]: o
197
+ [`${e}-row-week`]: s
198
198
  }),
199
- children: c(x)
199
+ children: d(x)
200
200
  },
201
201
  m
202
202
  )) })
@@ -215,204 +215,204 @@ const pe = [
215
215
  "October",
216
216
  "November",
217
217
  "December"
218
- ].map((t, e) => ({
219
- name: t,
218
+ ].map((a, e) => ({
219
+ name: a,
220
220
  value: e
221
221
  })), ge = Array(3);
222
- for (let t = 0; t < 3; t++)
223
- ge[t] = pe.slice(t * 4, 4 * (t + 1));
224
- const ye = Array(4);
225
- for (let t = 0; t < 4; t++)
226
- ye[t] = pe.slice(t * 3, 3 * (t + 1));
227
- function Te(t) {
222
+ for (let a = 0; a < 3; a++)
223
+ ge[a] = pe.slice(a * 4, 4 * (a + 1));
224
+ const ve = Array(4);
225
+ for (let a = 0; a < 4; a++)
226
+ ve[a] = pe.slice(a * 3, 3 * (a + 1));
227
+ function Te(a) {
228
228
  const {
229
229
  prefixCls: e,
230
230
  mergedPageShowDate: h,
231
231
  panel: f,
232
- onMouseEnterCell: d,
232
+ onMouseEnterCell: c,
233
233
  disabledDate: r,
234
- monthRender: o,
235
- selectHandler: s,
234
+ monthRender: s,
235
+ selectHandler: i,
236
236
  innerMode: n,
237
237
  CALENDAR_LOCALE: l
238
- } = t, i = he({
239
- ...t,
240
- isSameTime: (u, y) => u.isSame(y, "month")
241
- }), g = h.year(), p = f ? ye : ge;
242
- return /* @__PURE__ */ a("div", { className: `${e}-year`, children: p.map((u, y) => /* @__PURE__ */ a("div", { className: `${e}-year-row`, children: u.map((v) => {
238
+ } = a, o = he({
239
+ ...a,
240
+ isSameTime: (u, v) => u.isSame(v, "month")
241
+ }), g = h.year(), p = f ? ve : ge;
242
+ return /* @__PURE__ */ t("div", { className: `${e}-year`, children: p.map((u, v) => /* @__PURE__ */ t("div", { className: `${e}-year-row`, children: u.map((y) => {
243
243
  const w = le(
244
- `${g}-${de(v.value + 1, 2, "0")}-01`
245
- ), $ = typeof r == "function" && r(w), b = f ? { onClick: () => s(w, $) } : {};
246
- return /* @__PURE__ */ a(
244
+ `${g}-${ce(y.value + 1, 2, "0")}-01`
245
+ ), $ = typeof r == "function" && r(w), R = f ? { onClick: () => i(w, $) } : {};
246
+ return /* @__PURE__ */ t(
247
247
  "div",
248
248
  {
249
- className: i({ ...v, time: w }, $),
250
- onMouseEnter: () => d == null ? void 0 : d(w, $),
251
- children: o ? se.cloneElement(
252
- o(w),
253
- b
254
- ) : f ? /* @__PURE__ */ a("div", { className: `${e}-date`, ...b, children: /* @__PURE__ */ a("div", { className: `${e}-date-value`, children: l.month.short[v.name] }) }) : /* @__PURE__ */ L("div", { className: `${e}-month-with-days`, children: [
255
- /* @__PURE__ */ a("div", { className: `${e}-month-title`, children: l.month.long[v.name] }),
256
- /* @__PURE__ */ a(
249
+ className: o({ ...y, time: w }, $),
250
+ onMouseEnter: () => c == null ? void 0 : c(w, $),
251
+ children: s ? se.cloneElement(
252
+ s(w),
253
+ R
254
+ ) : f ? /* @__PURE__ */ t("div", { className: `${e}-date`, ...R, children: /* @__PURE__ */ t("div", { className: `${e}-date-value`, children: l.month.short[y.name] }) }) : /* @__PURE__ */ L("div", { className: `${e}-month-with-days`, children: [
255
+ /* @__PURE__ */ t("div", { className: `${e}-month-title`, children: l.month.long[y.name] }),
256
+ /* @__PURE__ */ t(
257
257
  fe,
258
258
  {
259
- ...t,
259
+ ...a,
260
260
  cell: !0,
261
- value: v.value,
261
+ value: y.value,
262
262
  innerMode: n
263
263
  }
264
264
  )
265
265
  ] })
266
266
  },
267
- v.value
267
+ y.value
268
268
  );
269
- }) }, y)) });
269
+ }) }, v)) });
270
270
  }
271
- function oe(t) {
272
- return (t == null ? void 0 : t.parentElement) || null;
271
+ function oe(a) {
272
+ return (a == null ? void 0 : a.parentElement) || null;
273
273
  }
274
- function We(t) {
274
+ function We(a) {
275
275
  const {
276
276
  prefixCls: e,
277
277
  changePageShowDate: h,
278
278
  headerValueFormat: f,
279
- mergedPageShowDate: d,
279
+ mergedPageShowDate: c,
280
280
  CALENDAR_LOCALE: r,
281
- move: o,
282
- innerMode: s,
281
+ move: s,
282
+ innerMode: i,
283
283
  changeMode: n,
284
284
  headerType: l,
285
- onChangeYear: i,
285
+ onChangeYear: o,
286
286
  onChangeMonth: g,
287
287
  modes: p
288
- } = t, u = Le(), y = K(p) ? p.map((c) => ({
289
- label: r.view[c],
290
- value: c
291
- })) : [], v = l === "select", w = d.year(), $ = d.month() + 1, b = ie(() => {
292
- const c = [w];
288
+ } = a, u = Le(), v = K(p) ? p.map((d) => ({
289
+ label: r.view[d],
290
+ value: d
291
+ })) : [], y = l === "select", w = c.year(), $ = c.month() + 1, R = ie(() => {
292
+ const d = [w];
293
293
  for (let k = 1; k <= 10; k++)
294
- c.unshift(w - k);
294
+ d.unshift(w - k);
295
295
  for (let k = 1; k < 10; k++)
296
- c.push(w + k);
297
- return c;
298
- }, [w]), D = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
296
+ d.push(w + k);
297
+ return d;
298
+ }, [w]), b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
299
299
  return /* @__PURE__ */ L("div", { className: `${e}-header`, children: [
300
300
  /* @__PURE__ */ L("div", { className: `${e}-header-left`, children: [
301
- v ? /* @__PURE__ */ L(te, { children: [
302
- /* @__PURE__ */ a(
301
+ y ? /* @__PURE__ */ L(ae, { children: [
302
+ /* @__PURE__ */ t(
303
303
  ne,
304
304
  {
305
305
  size: "small",
306
306
  className: `${e}-header-value-year`,
307
307
  value: w,
308
- options: b,
309
- onChange: i,
308
+ options: R,
309
+ onChange: o,
310
310
  getPopupContainer: oe
311
311
  }
312
312
  ),
313
- s === "month" && /* @__PURE__ */ a(
313
+ i === "month" && /* @__PURE__ */ t(
314
314
  ne,
315
315
  {
316
316
  size: "small",
317
317
  className: `${e}-header-value-month`,
318
318
  value: $,
319
- options: D,
319
+ options: b,
320
320
  onChange: g,
321
321
  getPopupContainer: oe
322
322
  }
323
323
  )
324
- ] }) : /* @__PURE__ */ L(te, { children: [
325
- /* @__PURE__ */ a(
324
+ ] }) : /* @__PURE__ */ L(ae, { children: [
325
+ /* @__PURE__ */ t(
326
326
  "div",
327
327
  {
328
328
  className: `${e}-header-icon`,
329
329
  role: "button",
330
330
  tabIndex: 0,
331
- onClick: () => h("prev", s),
331
+ onClick: () => h("prev", i),
332
332
  ...u({
333
- onPressEnter: () => h("prev", s)
333
+ onPressEnter: () => h("prev", i)
334
334
  }),
335
- children: /* @__PURE__ */ a(ce, {})
335
+ children: /* @__PURE__ */ t(de, {})
336
336
  }
337
337
  ),
338
- /* @__PURE__ */ a("div", { className: `${e}-header-value`, children: d.format(f) }),
339
- /* @__PURE__ */ a(
338
+ /* @__PURE__ */ t("div", { className: `${e}-header-value`, children: c.format(f) }),
339
+ /* @__PURE__ */ t(
340
340
  "div",
341
341
  {
342
342
  role: "button",
343
343
  tabIndex: 0,
344
344
  className: `${e}-header-icon`,
345
- onClick: () => h("next", s),
345
+ onClick: () => h("next", i),
346
346
  ...u({
347
- onPressEnter: () => h("next", s)
347
+ onPressEnter: () => h("next", i)
348
348
  }),
349
- children: /* @__PURE__ */ a(me, {})
349
+ children: /* @__PURE__ */ t(me, {})
350
350
  }
351
351
  )
352
352
  ] }),
353
- /* @__PURE__ */ a(xe, { size: "small", onClick: () => o(O()), children: r.today })
353
+ /* @__PURE__ */ t(xe, { size: "small", onClick: () => s(O()), children: r.today })
354
354
  ] }),
355
- /* @__PURE__ */ a("div", { className: `${e}-header-right`, children: /* @__PURE__ */ a(
356
- Ee.Group,
355
+ /* @__PURE__ */ t("div", { className: `${e}-header-right`, children: /* @__PURE__ */ t(
356
+ Ye.Group,
357
357
  {
358
358
  size: "small",
359
359
  type: "button",
360
- options: y,
360
+ options: v,
361
361
  onChange: n,
362
- value: s
362
+ value: i
363
363
  }
364
364
  ) })
365
365
  ] });
366
366
  }
367
- function Ie(t) {
367
+ function Ie(a) {
368
368
  const {
369
369
  prefixCls: e,
370
370
  changePageShowDate: h,
371
371
  headerValueFormat: f,
372
- mergedPageShowDate: d,
372
+ mergedPageShowDate: c,
373
373
  innerMode: r,
374
- panelOperations: o
375
- } = t, s = (u) => K(o) ? o.indexOf(u) > -1 : !0, n = s("double-left"), l = s("left") && r !== "year", i = s("double-right"), g = s("right") && r !== "year", p = (u) => V(`${e}-header-icon`, {
374
+ panelOperations: s
375
+ } = a, i = (u) => K(s) ? s.indexOf(u) > -1 : !0, n = i("double-left"), l = i("left") && r !== "year", o = i("double-right"), g = i("right") && r !== "year", p = (u) => V(`${e}-header-icon`, {
376
376
  [`${e}-header-icon-hidden`]: !u
377
377
  });
378
378
  return /* @__PURE__ */ L("div", { className: `${e}-header`, children: [
379
- /* @__PURE__ */ a(
379
+ /* @__PURE__ */ t(
380
380
  "div",
381
381
  {
382
382
  className: p(n),
383
383
  onClick: () => n && h("prev", "year"),
384
- children: n && /* @__PURE__ */ a(Pe, {})
384
+ children: n && /* @__PURE__ */ t(Ee, {})
385
385
  }
386
386
  ),
387
- /* @__PURE__ */ a(
387
+ /* @__PURE__ */ t(
388
388
  "div",
389
389
  {
390
390
  className: p(l),
391
391
  onClick: () => l && h("prev", "month"),
392
- children: l && /* @__PURE__ */ a(ce, {})
392
+ children: l && /* @__PURE__ */ t(de, {})
393
393
  }
394
394
  ),
395
- /* @__PURE__ */ a("div", { className: `${e}-header-value`, children: d.format(f) }),
396
- /* @__PURE__ */ a(
395
+ /* @__PURE__ */ t("div", { className: `${e}-header-value`, children: c.format(f) }),
396
+ /* @__PURE__ */ t(
397
397
  "div",
398
398
  {
399
399
  className: p(g),
400
400
  onClick: () => g && h("next", "month"),
401
- children: g && /* @__PURE__ */ a(me, {})
401
+ children: g && /* @__PURE__ */ t(me, {})
402
402
  }
403
403
  ),
404
- /* @__PURE__ */ a(
404
+ /* @__PURE__ */ t(
405
405
  "div",
406
406
  {
407
- className: p(i),
408
- onClick: () => i && h("next", "year"),
409
- children: i && /* @__PURE__ */ a(Ye, {})
407
+ className: p(o),
408
+ onClick: () => o && h("next", "year"),
409
+ children: o && /* @__PURE__ */ t(Pe, {})
410
410
  }
411
411
  )
412
412
  ] });
413
413
  }
414
- function He(t, e) {
415
- return t === "month" || t === "year" && !e ? "YYYY-MM-DD" : "YYYY-MM";
414
+ function He(a, e) {
415
+ return a === "month" || a === "year" && !e ? "YYYY-MM-DD" : "YYYY-MM";
416
416
  }
417
417
  const Fe = {
418
418
  dayStartOfWeek: 0,
@@ -421,48 +421,48 @@ const Fe = {
421
421
  headerType: "button",
422
422
  modes: ["month", "year"]
423
423
  };
424
- function Be(t) {
424
+ function Be(a) {
425
425
  const {
426
426
  getPrefixCls: e,
427
427
  locale: h,
428
428
  componentConfig: f,
429
- rtl: d
430
- } = be(De), r = Re(
431
- t,
429
+ rtl: c
430
+ } = Re(be), r = De(
431
+ a,
432
432
  Fe,
433
433
  f == null ? void 0 : f.Calendar
434
434
  ), {
435
- style: o,
436
- className: s,
435
+ style: s,
436
+ className: i,
437
437
  dayStartOfWeek: n,
438
438
  panel: l,
439
- locale: i,
439
+ locale: o,
440
440
  panelWidth: g,
441
441
  panelTodayBtn: p,
442
442
  defaultPageShowDate: u,
443
- value: y,
444
- pageShowDate: v,
443
+ value: v,
444
+ pageShowDate: y,
445
445
  defaultValue: w,
446
446
  mode: $,
447
- defaultMode: b,
448
- onChange: D,
449
- onPanelChange: c,
447
+ defaultMode: R,
448
+ onChange: b,
449
+ onPanelChange: d,
450
450
  headerRender: k,
451
451
  headerType: x,
452
452
  modes: m,
453
453
  panelOperations: T
454
- } = r, M = Me(h.Calendar, i), C = e("calendar"), [Y, P] = J(
455
- $ || b
456
- ), S = $ || Y, W = He(S, l), [q, ve] = J(
457
- B(y || w, W)
454
+ } = r, M = Me(h.Calendar, o), C = e("calendar"), [P, E] = J(
455
+ $ || R
456
+ ), S = $ || P, W = He(S, l), [X, ye] = J(
457
+ B(v || w, W)
458
458
  ), [we, I] = J(
459
- B(u, W) || q || O()
460
- ), R = B(v, W) || we, U = "value" in r ? B(y, W) : q, Q = ie(() => ue(r, R), [R.toString(), S, n]);
459
+ B(u, W) || X || O()
460
+ ), D = B(y, W) || we, U = "value" in r ? B(v, W) : X, q = ie(() => ue(r, D), [D.toString(), S, n]);
461
461
  function H(N) {
462
- ve(N), D == null || D(N), X(N);
462
+ ye(N), b == null || b(N), Q(N);
463
463
  }
464
- function X(N) {
465
- I(N), c == null || c(N);
464
+ function Q(N) {
465
+ I(N), d == null || d(N);
466
466
  }
467
467
  function Z(N, A) {
468
468
  A || H(N);
@@ -471,32 +471,32 @@ function Be(t) {
471
471
  S === "month" ? G = M.formatMonth : S === "year" && (G = M.formatYear);
472
472
  function $e(N, A) {
473
473
  let F;
474
- N === "prev" && (F = E.subtract(R, 1, A)), N === "next" && (F = E.add(R, 1, A)), I(F), c == null || c(F);
474
+ N === "prev" && (F = Y.subtract(D, 1, A)), N === "next" && (F = Y.add(D, 1, A)), I(F), d == null || d(F);
475
475
  }
476
476
  function Ne(N) {
477
- const A = E.set(R, "year", N);
478
- I(A), c == null || c(A);
477
+ const A = Y.set(D, "year", N);
478
+ I(A), d == null || d(A);
479
479
  }
480
480
  function Ce(N) {
481
- const A = E.set(R, "month", N - 1);
482
- I(A), c == null || c(A);
481
+ const A = Y.set(D, "month", N - 1);
482
+ I(A), d == null || d(A);
483
483
  }
484
484
  function j(N) {
485
- P(N);
485
+ E(N);
486
486
  }
487
487
  const Se = V(
488
488
  C,
489
489
  S === "month" ? `${C}-mode-month` : `${C}-mode-year`,
490
490
  {
491
491
  [`${C}-panel`]: l && (S === "month" || S === "year"),
492
- [`${C}-rtl`]: d
492
+ [`${C}-rtl`]: c
493
493
  },
494
- s
494
+ i
495
495
  ), ke = l ? { width: g } : {}, ee = {
496
496
  prefixCls: C,
497
497
  changePageShowDate: $e,
498
498
  headerValueFormat: G,
499
- mergedPageShowDate: R,
499
+ mergedPageShowDate: D,
500
500
  modes: m,
501
501
  innerMode: S,
502
502
  panelOperations: T
@@ -505,16 +505,16 @@ function Be(t) {
505
505
  "div",
506
506
  {
507
507
  className: Se,
508
- style: { ...o, ...ke },
508
+ style: { ...s, ...ke },
509
509
  ...Ae(r),
510
510
  children: [
511
511
  typeof k == "function" ? k({
512
512
  value: U,
513
- pageShowDate: R,
513
+ pageShowDate: D,
514
514
  onChangeMode: j,
515
515
  onChange: H,
516
- onChangePageDate: X
517
- }) : l ? /* @__PURE__ */ a(Ie, { ...ee }) : /* @__PURE__ */ a(
516
+ onChangePageDate: Q
517
+ }) : l ? /* @__PURE__ */ t(Ie, { ...ee }) : /* @__PURE__ */ t(
518
518
  We,
519
519
  {
520
520
  ...ee,
@@ -527,33 +527,33 @@ function Be(t) {
527
527
  headerType: x
528
528
  }
529
529
  ),
530
- S === "month" && /* @__PURE__ */ a("div", { className: `${C}-body`, children: /* @__PURE__ */ a(
530
+ S === "month" && /* @__PURE__ */ t("div", { className: `${C}-body`, children: /* @__PURE__ */ t(
531
531
  fe,
532
532
  {
533
533
  ...r,
534
534
  prefixCls: C,
535
- pageData: Q,
535
+ pageData: q,
536
536
  mergedValue: U,
537
537
  innerMode: S,
538
538
  selectHandler: Z,
539
- mergedPageShowDate: R,
539
+ mergedPageShowDate: D,
540
540
  CALENDAR_LOCALE: M
541
541
  }
542
542
  ) }),
543
- S === "year" && /* @__PURE__ */ a("div", { className: `${C}-body`, children: /* @__PURE__ */ a(
543
+ S === "year" && /* @__PURE__ */ t("div", { className: `${C}-body`, children: /* @__PURE__ */ t(
544
544
  Te,
545
545
  {
546
546
  ...r,
547
547
  prefixCls: C,
548
- pageData: Q,
549
- mergedPageShowDate: R,
548
+ pageData: q,
549
+ mergedPageShowDate: D,
550
550
  innerMode: S,
551
551
  mergedValue: U,
552
552
  selectHandler: Z,
553
553
  CALENDAR_LOCALE: M
554
554
  }
555
555
  ) }),
556
- p && l && /* @__PURE__ */ a(
556
+ p && l && /* @__PURE__ */ t(
557
557
  "div",
558
558
  {
559
559
  className: `${C}-footer-btn-wrapper`,