@unicom-cloud/ui 0.8.64 → 0.8.65

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 (136) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +2 -2
  6. package/BackTop.js +2 -2
  7. package/Badge.js +37 -31
  8. package/Breadcrumb.js +3 -3
  9. package/Button.js +82 -71
  10. package/Calendar.js +4 -4
  11. package/Card.js +2 -2
  12. package/Carousel.js +2 -2
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +5 -5
  17. package/Comment.js +2 -2
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +3 -3
  20. package/DatePicker.js +92 -92
  21. package/Descriptions.js +2 -2
  22. package/Divider.js +2 -2
  23. package/Draggable.js +2 -2
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +2 -2
  26. package/Empty.js +2 -2
  27. package/Form.js +4 -4
  28. package/Grid.js +3 -3
  29. package/Icon.js +2 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +3 -3
  33. package/InputNumber.js +3 -3
  34. package/InputTag.js +1 -1
  35. package/Layout.js +3 -3
  36. package/Link.js +2 -2
  37. package/List.js +30 -30
  38. package/Mentions.js +4 -4
  39. package/Menu.js +2 -2
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +2 -2
  45. package/PageHeader.js +2 -2
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +2 -2
  49. package/Popover.js +2 -2
  50. package/Progress.js +2 -2
  51. package/Radio.js +2 -2
  52. package/Rate.js +2 -2
  53. package/ResizeBox.js +155 -154
  54. package/Result.js +2 -2
  55. package/Select.js +2 -2
  56. package/SelectView.js +7 -7
  57. package/Skeleton.js +2 -2
  58. package/Slider.js +5 -5
  59. package/Space.js +2 -2
  60. package/Spin.js +2 -2
  61. package/Statistic.js +2 -2
  62. package/Steps.js +2 -2
  63. package/Switch.js +3 -3
  64. package/Table.js +5 -5
  65. package/Tabs.js +4 -4
  66. package/Tag.js +2 -2
  67. package/TimePicker.js +4 -4
  68. package/Timeline.js +2 -2
  69. package/Tooltip.js +2 -2
  70. package/Transfer.js +4 -4
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +2 -2
  73. package/Trigger.js +43 -42
  74. package/Typography.js +1 -1
  75. package/Upload.js +4 -5
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +5 -3
  78. package/Watermark.js +1 -1
  79. package/chunk/{-IELMT_x.js → 1GQdnTJp.js} +2 -2
  80. package/chunk/BAWsPQBM.js +11 -0
  81. package/chunk/{BJSjbYSN.js → BS09tn7B.js} +2 -2
  82. package/chunk/{oR9TkA35.js → BUCEs557.js} +2 -2
  83. package/chunk/BqGtwxTi.js +777 -0
  84. package/chunk/{CtUTlwlQ.js → Bqk6yh16.js} +2 -2
  85. package/chunk/{DPJEIBKZ.js → BqufsN8i.js} +4 -4
  86. package/chunk/{CA69nxbj.js → BtlvlGQN.js} +2 -2
  87. package/chunk/{CAhODOfT.js → CF6p9R93.js} +2 -2
  88. package/chunk/{D-oHJail.js → CGZ0In1p.js} +178 -175
  89. package/chunk/{BHnRi7Xh.js → CH1UUxsg.js} +4 -4
  90. package/chunk/{Yvz-hPQB.js → CIlGCedk.js} +3 -3
  91. package/chunk/{tW_FgNSv.js → CPcm9Cm5.js} +2 -2
  92. package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
  93. package/chunk/{BtIG250j.js → CWgltRVL.js} +40 -40
  94. package/chunk/{BCxoi4Kf.js → CsbCHnFk.js} +2 -2
  95. package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
  96. package/chunk/{QlYCEvCX.js → DG-epQqF.js} +2 -2
  97. package/chunk/{CxpFYX4B.js → DIx0qmCq.js} +3 -3
  98. package/chunk/{D01b7bWX.js → DK4KcodH.js} +176 -175
  99. package/chunk/{CYQ1EE4h.js → DLvMA1OW.js} +2 -2
  100. package/chunk/{CAiaqaWc.js → DQDkV47j.js} +2 -2
  101. package/chunk/{BfHNSLva.js → DTjcKyDN.js} +135 -134
  102. package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
  103. package/chunk/{CZfGDXaB.js → DXZEpA3t.js} +2 -2
  104. package/chunk/{CTF5o0OX.js → DjtWv6Wn.js} +1 -1
  105. package/chunk/{B5GDq8NJ.js → DlLL5JQo.js} +99 -96
  106. package/chunk/{CBgwLBAC.js → Dnycc1qJ.js} +104 -103
  107. package/chunk/{B68hRpYG.js → DqFhzTWC.js} +3 -3
  108. package/chunk/{BwSpYGK-.js → Dv_xRzvR.js} +3 -3
  109. package/chunk/{DQ561AmR.js → Ek8U5CTN.js} +222 -221
  110. package/chunk/{BSBJlVZH.js → ewRDIDUz.js} +4 -4
  111. package/chunk/{pq-36BDW.js → tYXLFPVI.js} +3 -3
  112. package/hooks/useIntersectionObserver.js +1 -1
  113. package/hooks/useMergeValue.js +2 -2
  114. package/index.js +378 -374
  115. package/locale/en-US.js +1 -1
  116. package/locale/tr-TR.js +1 -1
  117. package/package.json +1 -1
  118. package/style/variable.less +820 -0
  119. package/style.css +1 -1
  120. package/types/badge/index.d.ts +2 -2
  121. package/types/button/index.d.ts +3 -1
  122. package/types/config-provider/interface.d.ts +1 -1
  123. package/types/index.d.ts +5 -5
  124. package/types/select/interface.d.ts +1 -1
  125. package/types/tabs/Tab.d.ts +1 -1
  126. package/types/upload/Upload.d.ts +1 -1
  127. package/types/version/index.d.ts +2 -0
  128. package/utils/className.js +1 -1
  129. package/utils/contextHolder.js +1 -1
  130. package/utils/copy.js +1 -1
  131. package/utils/index.js +41 -41
  132. package/utils/is.js +37 -37
  133. package/utils/reactDOM.js +3 -3
  134. package/utils/scrollIntoView.js +1 -1
  135. package/chunk/BzPkh4Zv.js +0 -11
  136. package/chunk/_m8hLSsx.js +0 -776
package/DatePicker.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsxs as ne, jsx as n, Fragment as Te } from "react/jsx-runtime";
1
+ import { jsxs as te, jsx as n, Fragment as Te } from "react/jsx-runtime";
2
2
  import sn, { createContext as oo, forwardRef as cn, useContext as De, useRef as $e, useImperativeHandle as ln, useState as ae, useEffect as xt, useMemo as Yn } from "react";
3
3
  import Ln from "@unicom-cloud/icons/IconUiCalendar";
4
4
  import $n from "@unicom-cloud/icons/IconUiCalendarClock";
@@ -6,14 +6,14 @@ import ro, { isDayjs as ze } from "dayjs";
6
6
  import X from "lodash/isArray";
7
7
  import Tt from "lodash/isPlainObject";
8
8
  import Rn from "lodash/isUndefined";
9
- import { d as tt } from "./chunk/B5GDq8NJ.js";
9
+ import { d as tt } from "./chunk/DlLL5JQo.js";
10
10
  import { useMergeProps as Mn } from "./hooks/useMergeProps.js";
11
11
  import { usePrevious as At } from "./hooks/usePrevious.js";
12
12
  import { useUpdateEffect as en } from "./hooks/useUpdateEffect.js";
13
- import { I as ao, a as so } from "./chunk/CA69nxbj.js";
13
+ import { I as ao, a as so } from "./chunk/BtlvlGQN.js";
14
14
  import En from "./Trigger.js";
15
- import { y as Re } from "./chunk/BzPkh4Zv.js";
16
- import { methods as te, getDayjsValue as ee, getNow as ie, toLocal as We, toTimezone as tn, isDayjsChange as io, getValueWithTime as et, dayjs as Yt, getSortedDayjsArray as Vt, getTimeFormat as co, isDayjsArrayChange as lo, isValidTimeString as uo } from "./utils/dayjs.js";
15
+ import { y as Re } from "./chunk/BAWsPQBM.js";
16
+ import { methods as ee, getDayjsValue as Z, getNow as ie, toLocal as We, toTimezone as tn, isDayjsChange as io, getValueWithTime as et, dayjs as Yt, getSortedDayjsArray as Vt, getTimeFormat as co, isDayjsArrayChange as lo, isValidTimeString as uo } from "./utils/dayjs.js";
17
17
  import In from "./utils/omit.js";
18
18
  import { pickDataAttributes as On } from "./utils/pick.js";
19
19
  import Ht from "./Button.js";
@@ -25,7 +25,7 @@ import bn from "@unicom-cloud/icons/IconUiLeft";
25
25
  import Nn from "@unicom-cloud/icons/IconUiRight";
26
26
  import { newArray as Bt } from "./utils/constant.js";
27
27
  import { padStart as An } from "./utils/pad.js";
28
- import { T as mo } from "./chunk/CZfGDXaB.js";
28
+ import { T as mo } from "./chunk/DXZEpA3t.js";
29
29
  const nt = oo({});
30
30
  function po(s, t) {
31
31
  const {
@@ -49,7 +49,7 @@ function po(s, t) {
49
49
  D == null || D(P, O);
50
50
  }
51
51
  const w = X(i) && i.length > 0, S = m && o && !w;
52
- return /* @__PURE__ */ ne("div", { ref: t, className: `${u}-shortcuts`, children: [
52
+ return /* @__PURE__ */ te("div", { ref: t, className: `${u}-shortcuts`, children: [
53
53
  S && /* @__PURE__ */ n(Ht, { size: "mini", onClick: c, children: l }),
54
54
  w && i.map((P, O) => /* @__PURE__ */ n(
55
55
  Ht,
@@ -84,10 +84,10 @@ function Hn(s) {
84
84
  mode: P,
85
85
  shortcutsPlacementLeft: O
86
86
  } = s, D = X(k) && k.length > 0, C = N && t && !D || D && !O;
87
- return /* @__PURE__ */ ne("div", { className: `${u}-footer`, children: [
87
+ return /* @__PURE__ */ te("div", { className: `${u}-footer`, children: [
88
88
  S && /* @__PURE__ */ n("div", { className: `${u}-footer-extra-wrapper`, children: S }),
89
89
  !t && N && P === "date" && /* @__PURE__ */ n("div", { className: `${u}-footer-now-wrapper`, children: /* @__PURE__ */ n(fo, { onClick: d, children: i.today }) }),
90
- C || t ? /* @__PURE__ */ ne("div", { className: `${u}-footer-btn-wrapper`, children: [
90
+ C || t ? /* @__PURE__ */ te("div", { className: `${u}-footer-btn-wrapper`, children: [
91
91
  O ? /* @__PURE__ */ n("div", {}) : /* @__PURE__ */ n(
92
92
  un,
93
93
  {
@@ -102,7 +102,7 @@ function Hn(s) {
102
102
  showTime: t
103
103
  }
104
104
  ),
105
- t && /* @__PURE__ */ ne(Te, { children: [
105
+ t && /* @__PURE__ */ te(Te, { children: [
106
106
  /* @__PURE__ */ n(
107
107
  Ht,
108
108
  {
@@ -140,17 +140,17 @@ function nn(s, t, u) {
140
140
  let d;
141
141
  switch (c) {
142
142
  case "date": {
143
- if (d = te.set(s, "date", o), !t(d))
143
+ if (d = ee.set(s, "date", o), !t(d))
144
144
  return !1;
145
145
  break;
146
146
  }
147
147
  case "month": {
148
- if (d = te.set(s, "month", o), !nn(d, t, "month"))
148
+ if (d = ee.set(s, "month", o), !nn(d, t, "month"))
149
149
  return !1;
150
150
  break;
151
151
  }
152
152
  case "year": {
153
- if (d = te.set(s, "year", o), !nn(d, t, "year"))
153
+ if (d = ee.set(s, "year", o), !nn(d, t, "year"))
154
154
  return !1;
155
155
  break;
156
156
  }
@@ -251,7 +251,7 @@ const xn = {
251
251
  value: E,
252
252
  onChange: R,
253
253
  icons: A,
254
- disabledDate: oe,
254
+ disabledDate: ne,
255
255
  showTime: p,
256
256
  showNowBtn: M,
257
257
  onSelectShortcut: J,
@@ -284,9 +284,9 @@ const xn = {
284
284
  typeof h == "function" && (h = p ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
285
285
  function be() {
286
286
  let a;
287
- return o.value ? a = ee(o.value, h, H, F) : a = ee(o.defaultValue, h, H, F), a;
287
+ return o.value ? a = Z(o.value, h, H, F) : a = Z(o.defaultValue, h, H, F), a;
288
288
  }
289
- const [I, ge] = ae(be()), [Ee, ye] = ae(o.popupVisible), [dt, ce] = ae(!1), [ot, Ie] = ae(), ve = "popupVisible" in o ? o.popupVisible : Ee, we = "value" in o ? ee(E, h, H, F) : I, mt = we || ee(b, h) || ie(), [rt, Be] = ae(), [je, pe] = ae(), [_e, pt] = ae(), [qe, Ye] = ae(mt), Ue = ee(z, h) || qe, Le = _e || je || we, [at, st] = ae(q), ht = Tt(p) && ee(
289
+ const [I, ge] = ae(be()), [Ee, ye] = ae(o.popupVisible), [dt, ce] = ae(!1), [ot, Ie] = ae(), ve = "popupVisible" in o ? o.popupVisible : Ee, we = "value" in o ? Z(E, h, H, F) : I, mt = we || Z(b, h) || ie(), [rt, Be] = ae(), [je, pe] = ae(), [_e, pt] = ae(), [qe, Ye] = ae(mt), Ue = Z(z, h) || qe, Le = _e || je || we, [at, st] = ae(q), ht = Tt(p) && Z(
290
290
  p.defaultValue,
291
291
  p.format || "HH:mm:ss"
292
292
  ) || ie(H, F), Qe = Le || ht;
@@ -309,7 +309,7 @@ const xn = {
309
309
  ce(!1), st(q), ke();
310
310
  }, 100));
311
311
  }, [ve]);
312
- function Z(a) {
312
+ function oe(a) {
313
313
  a ? Pe(a, () => {
314
314
  it();
315
315
  }) : Pe(!1);
@@ -370,12 +370,12 @@ const xn = {
370
370
  y == null || y(Ve.format(h), Ve);
371
371
  }
372
372
  function wt(a) {
373
- return typeof a == "string" && Yt(a, h).format(h) === a && (typeof oe == "function" ? !oe(Yt(a, h)) : !0);
373
+ return typeof a == "string" && Yt(a, h).format(h) === a && (typeof ne == "function" ? !ne(Yt(a, h)) : !0);
374
374
  }
375
375
  function Ut(a) {
376
376
  const g = a.target.value;
377
377
  if (Be(g), ve || Pe(!0), wt(g)) {
378
- const ue = ee(g, h);
378
+ const ue = Z(g, h);
379
379
  pe(ue), Ye(ue), Be(void 0);
380
380
  }
381
381
  }
@@ -384,7 +384,7 @@ const xn = {
384
384
  }
385
385
  function xe(a, g, ue = 1) {
386
386
  let re;
387
- a === "prev" && (re = te.subtract(Ue, ue, g)), a === "next" && (re = te.add(Ue, ue, g)), le(re), Ye(re);
387
+ a === "prev" && (re = ee.subtract(Ue, ue, g)), a === "next" && (re = ee.add(Ue, ue, g)), le(re), Ye(re);
388
388
  }
389
389
  function Ge(a = q) {
390
390
  if (a === "date" || a === "week")
@@ -425,7 +425,7 @@ const xn = {
425
425
  }
426
426
  function Qt(a) {
427
427
  if (typeof a.value == "function" && ze(a.value())) {
428
- const g = ee(
428
+ const g = Z(
429
429
  a.value(),
430
430
  h,
431
431
  H,
@@ -440,7 +440,7 @@ const xn = {
440
440
  }
441
441
  function Ze(a) {
442
442
  if (J == null || J(a), typeof a.value == "function" && ze(a.value())) {
443
- const g = ee(
443
+ const g = Z(
444
444
  a.value(),
445
445
  h,
446
446
  H,
@@ -470,7 +470,7 @@ const xn = {
470
470
  onMouseEnterShortcut: Qt,
471
471
  onMouseLeaveShortcut: Kt,
472
472
  onSelectShortcut: Ze
473
- }, re = p && at === "date" || K || X(Y) && Y.length && !_ || !p && at === "date" && M, Ve = /* @__PURE__ */ ne(Te, { children: [
473
+ }, re = p && at === "date" || K || X(Y) && Y.length && !_ || !p && at === "date" && M, Ve = /* @__PURE__ */ te(Te, { children: [
474
474
  sn.cloneElement(v, {
475
475
  ...In(o, ["style"]),
476
476
  ...Ge(),
@@ -507,7 +507,7 @@ const xn = {
507
507
  isTimePanel: dt
508
508
  }
509
509
  )
510
- ] }), It = _ ? /* @__PURE__ */ ne(Te, { children: [
510
+ ] }), It = _ ? /* @__PURE__ */ te(Te, { children: [
511
511
  /* @__PURE__ */ n(un, { ref: G, ...ue }),
512
512
  /* @__PURE__ */ n("div", { ref: U, className: `${$}-panel-wrapper`, children: Ve })
513
513
  ] }) : Ve, Jt = typeof he == "function" ? he(It) : It;
@@ -549,7 +549,7 @@ const xn = {
549
549
  disabled: w,
550
550
  popupAlign: go,
551
551
  getPopupContainer: x,
552
- onVisibleChange: Z,
552
+ onVisibleChange: oe,
553
553
  popupVisible: ve,
554
554
  classNames: "slideDynamicOrigin",
555
555
  unmountOnExit: D,
@@ -599,13 +599,13 @@ function Po(s) {
599
599
  function A(z) {
600
600
  return R && !P && z && l(S.time, z);
601
601
  }
602
- const oe = A(T), p = A(C), M = A(
602
+ const ne = A(T), p = A(C), M = A(
603
603
  ut(i, 0)
604
604
  ), J = A(
605
605
  ut(i, 1)
606
606
  ), K = A(v), _ = A(Y);
607
607
  let W = !1;
608
- oe ? W = v && T && v.isBefore(T) && x(T, v, Y) : p && (W = Y && C && Y.isAfter(C) && x(C, v, Y));
608
+ ne ? W = v && T && v.isBefore(T) && x(T, v, Y) : p && (W = Y && C && Y.isAfter(C) && x(C, v, Y));
609
609
  let b = !1;
610
610
  return K ? b = v && T && T.isBefore(v) && x(v, T, C) : _ && (b = Y && C && C.isAfter(Y) && x(Y, T, C)), Re(`${t}-cell`, {
611
611
  [`${t}-cell-disabled`]: P,
@@ -613,7 +613,7 @@ function Po(s) {
613
613
  [`${t}-cell-in-view`]: y,
614
614
  [`${t}-cell-today`]: E && y,
615
615
  [`${t}-cell-selected`]: Q || M || J,
616
- [`${t}-cell-range-start`]: oe,
616
+ [`${t}-cell-range-start`]: ne,
617
617
  [`${t}-cell-range-end`]: p,
618
618
  [`${t}-cell-in-range`]: R && !P && x(S.time, T, C),
619
619
  [`${t}-cell-hover-range-start`]: K,
@@ -685,7 +685,7 @@ function jt(s) {
685
685
  );
686
686
  });
687
687
  }
688
- return /* @__PURE__ */ ne(Te, { children: [
688
+ return /* @__PURE__ */ te(Te, { children: [
689
689
  k && /* @__PURE__ */ n(
690
690
  So,
691
691
  {
@@ -737,7 +737,7 @@ function qt(s) {
737
737
  children: d.format(R || "YYYY")
738
738
  },
739
739
  "year-node"
740
- ), oe = /* @__PURE__ */ n(
740
+ ), ne = /* @__PURE__ */ n(
741
741
  "span",
742
742
  {
743
743
  className: `${t}-header-label`,
@@ -746,7 +746,7 @@ function qt(s) {
746
746
  },
747
747
  "month-node"
748
748
  );
749
- return Q ? [oe, A] : [A, oe];
749
+ return Q ? [ne, A] : [A, ne];
750
750
  }
751
751
  if (o === "month" || o === "quarter")
752
752
  return /* @__PURE__ */ n(
@@ -759,7 +759,7 @@ function qt(s) {
759
759
  );
760
760
  }
761
761
  const C = k.prevDouble === null, v = k.prev === null, Y = k.next === null, y = k.nextDouble === null;
762
- return /* @__PURE__ */ ne("div", { className: `${t}-header`, children: [
762
+ return /* @__PURE__ */ te("div", { className: `${t}-header`, children: [
763
763
  !C && /* @__PURE__ */ n("div", { className: D(S), onClick: l, children: S && (C ? null : k.prevDouble || (L ? /* @__PURE__ */ n(Dn, {}) : /* @__PURE__ */ n(Cn, {}))) }),
764
764
  !v && /* @__PURE__ */ n("div", { className: D(w), onClick: i, children: w && (v ? null : k.prev || (L ? /* @__PURE__ */ n(Nn, {}) : /* @__PURE__ */ n(bn, {}))) }),
765
765
  /* @__PURE__ */ n("div", { className: `${t}-header-value`, children: T() }),
@@ -785,7 +785,7 @@ function ft(s) {
785
785
  format: S,
786
786
  icons: P,
787
787
  ...O
788
- } = s, { locale: D, getPrefixCls: T, rtl: C } = De(tt), Y = zt(D.DatePicker, d).Calendar, { utcOffset: y, timezone: Q } = De(nt), E = T("panel-year"), R = Re(E), A = N ? { rangeValues: L } : { value: o }, oe = t ? t.year() : ie(y, Q).year(), p = Math.floor(oe / 10) * 10 - 1, M = Bt(3).map((W) => ""), J = Bt(4).map((W) => M).map((W, b) => W.map((z, j) => ({
788
+ } = s, { locale: D, getPrefixCls: T, rtl: C } = De(tt), Y = zt(D.DatePicker, d).Calendar, { utcOffset: y, timezone: Q } = De(nt), E = T("panel-year"), R = Re(E), A = N ? { rangeValues: L } : { value: o }, ne = t ? t.year() : ie(y, Q).year(), p = Math.floor(ne / 10) * 10 - 1, M = Bt(3).map((W) => ""), J = Bt(4).map((W) => M).map((W, b) => W.map((z, j) => ({
789
789
  name: p + b * 3 + j,
790
790
  time: Yt(`${p + b * 3 + j}`, "YYYY").endOf("year"),
791
791
  isPrev: b === 0 && j === 0,
@@ -812,7 +812,7 @@ function ft(s) {
812
812
  );
813
813
  }
814
814
  const _ = { onSuperPrev: x, onSuperNext: w };
815
- return /* @__PURE__ */ ne("div", { className: R, style: u, children: [
815
+ return /* @__PURE__ */ te("div", { className: R, style: u, children: [
816
816
  /* @__PURE__ */ n(
817
817
  qt,
818
818
  {
@@ -848,7 +848,7 @@ function Ft(s) {
848
848
  panelMode: T,
849
849
  setPanelMode: C,
850
850
  ...v
851
- } = s, { locale: Y, getPrefixCls: y, rtl: Q } = De(tt), E = zt(Y.DatePicker, d), R = E.Calendar, A = y("panel-month"), oe = Re(A), p = N ? { rangeValues: L } : { value: o }, M = t.year(), J = Yn(() => {
851
+ } = s, { locale: Y, getPrefixCls: y, rtl: Q } = De(tt), E = zt(Y.DatePicker, d), R = E.Calendar, A = y("panel-month"), ne = Re(A), p = N ? { rangeValues: L } : { value: o }, M = t.year(), J = Yn(() => {
852
852
  const b = [
853
853
  "January",
854
854
  "February",
@@ -907,7 +907,7 @@ function Ft(s) {
907
907
  },
908
908
  disabledDate: m
909
909
  }
910
- ) : /* @__PURE__ */ ne("div", { className: oe, style: u, children: [
910
+ ) : /* @__PURE__ */ te("div", { className: ne, style: u, children: [
911
911
  /* @__PURE__ */ n(
912
912
  qt,
913
913
  {
@@ -931,7 +931,7 @@ const Vn = 6 * 7, on = (s) => ({
931
931
  name: s.date(),
932
932
  time: s
933
933
  }), yo = (s) => ({
934
- ...on(te.startOf(s, "month")),
934
+ ...on(ee.startOf(s, "month")),
935
935
  days: s.daysInMonth()
936
936
  });
937
937
  function ko(s, t) {
@@ -941,12 +941,12 @@ function ko(s, t) {
941
941
  };
942
942
  for (let d = 0; d < m; d++)
943
943
  l[m - d - 1] = {
944
- ...on(te.subtract(c.time, d + 1, "day")),
944
+ ...on(ee.subtract(c.time, d + 1, "day")),
945
945
  isPrev: !0
946
946
  };
947
947
  for (let d = 0; d < Vn - m - 1; d++)
948
948
  l[m + d + 1] = {
949
- ...on(te.add(c.time, d + 1, "day")),
949
+ ...on(ee.add(c.time, d + 1, "day")),
950
950
  isNext: d >= c.days - 1
951
951
  };
952
952
  const o = Bt(6).map(() => []);
@@ -988,7 +988,7 @@ function Wt(s) {
988
988
  index: E,
989
989
  getHeaderOperations: R,
990
990
  setPageShowDate: A,
991
- timeValue: oe,
991
+ timeValue: ne,
992
992
  hideNotInViewDates: p,
993
993
  icons: M,
994
994
  isTimePanel: J,
@@ -1003,7 +1003,7 @@ function Wt(s) {
1003
1003
  O ? U = typeof x == "function" ? x(
1004
1004
  S[E],
1005
1005
  E === 0 ? "start" : "end"
1006
- ) : {} : U = typeof x == "function" ? x(ee(w, i)) : {};
1006
+ ) : {} : U = typeof x == "function" ? x(Z(w, i)) : {};
1007
1007
  function G() {
1008
1008
  return /* @__PURE__ */ n(
1009
1009
  jt,
@@ -1029,7 +1029,7 @@ function Wt(s) {
1029
1029
  }
1030
1030
  function de() {
1031
1031
  const I = Tt(l) ? l : {};
1032
- return /* @__PURE__ */ ne("div", { className: `${B}-timepicker`, children: [
1032
+ return /* @__PURE__ */ te("div", { className: `${B}-timepicker`, children: [
1033
1033
  /* @__PURE__ */ n("header", { className: `${B}-timepicker-title`, children: he.selectTime }),
1034
1034
  /* @__PURE__ */ n(
1035
1035
  mo,
@@ -1039,7 +1039,7 @@ function Wt(s) {
1039
1039
  ...U,
1040
1040
  hideFooter: !0,
1041
1041
  format: Se,
1042
- valueShow: oe.format(Se),
1042
+ valueShow: ne.format(Se),
1043
1043
  onSelect: T,
1044
1044
  popupVisible: u,
1045
1045
  utcOffset: me,
@@ -1082,7 +1082,7 @@ function Wt(s) {
1082
1082
  disabledDate: L,
1083
1083
  setPanelMode: _
1084
1084
  }
1085
- ) : /* @__PURE__ */ n("div", { className: $, style: m, children: l && J ? de() : /* @__PURE__ */ ne("div", { className: `${B}-inner`, children: [
1085
+ ) : /* @__PURE__ */ n("div", { className: $, style: m, children: l && J ? de() : /* @__PURE__ */ te("div", { className: `${B}-inner`, children: [
1086
1086
  /* @__PURE__ */ n(
1087
1087
  qt,
1088
1088
  {
@@ -1120,7 +1120,7 @@ function rn(s) {
1120
1120
  panelMode: T,
1121
1121
  setPanelMode: C,
1122
1122
  ...v
1123
- } = s, { locale: Y, getPrefixCls: y, rtl: Q } = De(tt), E = zt(Y.DatePicker, d), R = E.Calendar, A = y("panel-quarter"), oe = Re(A), p = N ? { rangeValues: L } : { value: o }, M = t.year(), J = [
1123
+ } = s, { locale: Y, getPrefixCls: y, rtl: Q } = De(tt), E = zt(Y.DatePicker, d), R = E.Calendar, A = y("panel-quarter"), ne = Re(A), p = N ? { rangeValues: L } : { value: o }, M = t.year(), J = [
1124
1124
  [1, 2, 3, 4].map((b, z, j) => {
1125
1125
  var me;
1126
1126
  return {
@@ -1164,7 +1164,7 @@ function rn(s) {
1164
1164
  },
1165
1165
  disabledDate: m
1166
1166
  }
1167
- ) : /* @__PURE__ */ ne("div", { className: oe, style: u, children: [
1167
+ ) : /* @__PURE__ */ te("div", { className: ne, style: u, children: [
1168
1168
  /* @__PURE__ */ n(
1169
1169
  qt,
1170
1170
  {
@@ -1194,7 +1194,7 @@ function an(s) {
1194
1194
  ...N
1195
1195
  } = s, { weekStart: k } = De(nt), L = u ? { rangeValues: i } : { value: t }, x = { onPrev: c, onNext: l, onSuperPrev: m, onSuperNext: o };
1196
1196
  function w(S, P) {
1197
- return te.isSameWeek(S, P, k, d);
1197
+ return ee.isSameWeek(S, P, k, d);
1198
1198
  }
1199
1199
  return /* @__PURE__ */ n(
1200
1200
  Wt,
@@ -1242,13 +1242,13 @@ function Co(s) {
1242
1242
  setRangePageShowDates: E,
1243
1243
  disabledTimePickerIndex: R,
1244
1244
  hideNotInViewDates: A,
1245
- isTimePanel: oe,
1245
+ isTimePanel: ne,
1246
1246
  valueShowHover: p,
1247
1247
  panelModes: M,
1248
1248
  setPanelModes: J
1249
1249
  } = s, { getPrefixCls: K } = De(tt), _ = K("picker-range"), { utcOffset: W, timezone: b } = De(nt), z = L[0] || ie(W, b), j = L[1] || ie(W, b), H = {
1250
1250
  isRangePicker: !0,
1251
- rangeValues: ee(o, l),
1251
+ rangeValues: Z(o, l),
1252
1252
  onMouseEnterCell: x,
1253
1253
  onMouseLeaveCell: w,
1254
1254
  locale: k,
@@ -1283,10 +1283,10 @@ function Co(s) {
1283
1283
  timepickerProps: y,
1284
1284
  getHeaderOperations: Q,
1285
1285
  hideNotInViewDates: A,
1286
- isTimePanel: oe
1286
+ isTimePanel: ne
1287
1287
  };
1288
1288
  if (t === "week")
1289
- return /* @__PURE__ */ ne(Te, { children: [
1289
+ return /* @__PURE__ */ te(Te, { children: [
1290
1290
  /* @__PURE__ */ n(
1291
1291
  an,
1292
1292
  {
@@ -1299,7 +1299,7 @@ function Co(s) {
1299
1299
  /* @__PURE__ */ n(
1300
1300
  an,
1301
1301
  {
1302
- setPageShowDate: (h) => E([te.subtract(h, 1, "month"), h], 1),
1302
+ setPageShowDate: (h) => E([ee.subtract(h, 1, "month"), h], 1),
1303
1303
  ...fe,
1304
1304
  ...U,
1305
1305
  ...he
@@ -1321,7 +1321,7 @@ function Co(s) {
1321
1321
  hideDisabledOptions: !1
1322
1322
  };
1323
1323
  }
1324
- return /* @__PURE__ */ ne(Te, { children: [
1324
+ return /* @__PURE__ */ te(Te, { children: [
1325
1325
  /* @__PURE__ */ n(
1326
1326
  Wt,
1327
1327
  {
@@ -1349,7 +1349,7 @@ function Co(s) {
1349
1349
  S(1, h, be);
1350
1350
  },
1351
1351
  index: 1,
1352
- setPageShowDate: (h) => E([te.subtract(h, 1, "month"), h], 1),
1352
+ setPageShowDate: (h) => E([ee.subtract(h, 1, "month"), h], 1),
1353
1353
  timeValue: d[1],
1354
1354
  ...he
1355
1355
  }
@@ -1362,7 +1362,7 @@ function Co(s) {
1362
1362
  }, fe = {
1363
1363
  onSuperNext: C
1364
1364
  }, U = H;
1365
- return /* @__PURE__ */ ne(Te, { children: [
1365
+ return /* @__PURE__ */ te(Te, { children: [
1366
1366
  /* @__PURE__ */ n(
1367
1367
  Ft,
1368
1368
  {
@@ -1375,7 +1375,7 @@ function Co(s) {
1375
1375
  /* @__PURE__ */ n(
1376
1376
  Ft,
1377
1377
  {
1378
- setPageShowDate: (G) => E([te.subtract(G, 1, "year"), G], 1),
1378
+ setPageShowDate: (G) => E([ee.subtract(G, 1, "year"), G], 1),
1379
1379
  ...fe,
1380
1380
  ...U,
1381
1381
  ...he
@@ -1389,7 +1389,7 @@ function Co(s) {
1389
1389
  }, fe = {
1390
1390
  onSuperNext: C
1391
1391
  }, U = H;
1392
- return /* @__PURE__ */ ne(Te, { children: [
1392
+ return /* @__PURE__ */ te(Te, { children: [
1393
1393
  /* @__PURE__ */ n(
1394
1394
  ft,
1395
1395
  {
@@ -1414,7 +1414,7 @@ function Co(s) {
1414
1414
  }, fe = {
1415
1415
  onSuperNext: C
1416
1416
  }, U = H;
1417
- return /* @__PURE__ */ ne(Te, { children: [
1417
+ return /* @__PURE__ */ te(Te, { children: [
1418
1418
  /* @__PURE__ */ n(
1419
1419
  rn,
1420
1420
  {
@@ -1427,7 +1427,7 @@ function Co(s) {
1427
1427
  /* @__PURE__ */ n(
1428
1428
  rn,
1429
1429
  {
1430
- setPageShowDate: (G) => E([te.subtract(G, 1, "year"), G], 1),
1430
+ setPageShowDate: (G) => E([ee.subtract(G, 1, "year"), G], 1),
1431
1431
  ...fe,
1432
1432
  ...U,
1433
1433
  ...he
@@ -1435,7 +1435,7 @@ function Co(s) {
1435
1435
  )
1436
1436
  ] });
1437
1437
  }
1438
- return /* @__PURE__ */ n("div", { className: _, children: /* @__PURE__ */ ne("div", { className: `${_}-wrapper`, children: [
1438
+ return /* @__PURE__ */ n("div", { className: _, children: /* @__PURE__ */ te("div", { className: `${_}-wrapper`, children: [
1439
1439
  (t === "date" || t === "week") && B(),
1440
1440
  t === "month" && $(),
1441
1441
  t === "year" && Me(),
@@ -1506,7 +1506,7 @@ const Tn = {
1506
1506
  onChange: E,
1507
1507
  icons: R,
1508
1508
  disabledDate: A,
1509
- disabledTime: oe,
1509
+ disabledTime: ne,
1510
1510
  mode: p,
1511
1511
  showTime: M,
1512
1512
  onSelectShortcut: J,
@@ -1552,29 +1552,29 @@ const Tn = {
1552
1552
  xt(() => {
1553
1553
  ye && ot(Ee);
1554
1554
  }, [w]);
1555
- const Ie = 1 ^ ce, [ve, we] = ae(), [mt, rt] = ae(), [Be, je] = ae(Ut()), [pe, _e] = ae(), [pt, qe] = ae(), [Ye, Ue] = ae(), [Le, at] = ae(o.popupVisible), [st, ht] = ae([p, p]), [Qe, it] = ae(!1), ke = "popupVisible" in o ? o.popupVisible : Le, Ne = ee(
1555
+ const Ie = 1 ^ ce, [ve, we] = ae(), [mt, rt] = ae(), [Be, je] = ae(Ut()), [pe, _e] = ae(), [pt, qe] = ae(), [Ye, Ue] = ae(), [Le, at] = ae(o.popupVisible), [st, ht] = ae([p, p]), [Qe, it] = ae(!1), ke = "popupVisible" in o ? o.popupVisible : Le, Ne = Z(
1556
1556
  Q,
1557
1557
  I,
1558
1558
  B,
1559
1559
  $
1560
- ), Ce = "value" in o ? Ne : Be, Z = Ye || pe || Ce || [], le = _t(pe || Ce), Pe = $e(!0), gt = ie(), $t = tn(gt, B, $);
1560
+ ), Ce = "value" in o ? Ne : Be, oe = Ye || pe || Ce || [], le = _t(pe || Ce), Pe = $e(!0), gt = ie(), $t = tn(gt, B, $);
1561
1561
  function Rt() {
1562
- const e = [], r = Tt(M) && M.defaultValue ? ee(M.defaultValue, M.format || "HH:mm:ss") : [];
1563
- return e[0] = Z[0] || r[0] || $t, e[1] = Z[1] || r[1] || $t, e;
1562
+ const e = [], r = Tt(M) && M.defaultValue ? Z(M.defaultValue, M.format || "HH:mm:ss") : [];
1563
+ return e[0] = oe[0] || r[0] || $t, e[1] = oe[1] || r[1] || $t, e;
1564
1564
  }
1565
- const Ke = Rt(), Je = ye ? (e) => Ee === 0 ? e.isAfter(Z[1], p) : e.isBefore(Z[0], p) : void 0, vt = H !== void 0, wt = vt || F;
1565
+ const Ke = Rt(), Je = ye ? (e) => Ee === 0 ? e.isAfter(oe[1], p) : e.isBefore(oe[0], p) : void 0, vt = H !== void 0, wt = vt || F;
1566
1566
  function Ut() {
1567
1567
  let e;
1568
- if (o.value ? e = ee(o.value, I, B, $) : e = ee(o.defaultValue, I, B, $), ye && (!e || e && !e[Ie])) {
1568
+ if (o.value ? e = Z(o.value, I, B, $) : e = Z(o.defaultValue, I, B, $), ye && (!e || e && !e[Ie])) {
1569
1569
  const r = [];
1570
1570
  return r[Ie] = ie(B, $), r;
1571
1571
  }
1572
1572
  return e;
1573
1573
  }
1574
- const Pt = Ce || ee(b, I) || [gt, gt], [xe, Ge] = ae(
1574
+ const Pt = Ce || Z(b, I) || [gt, gt], [xe, Ge] = ae(
1575
1575
  Oe(Pt)
1576
1576
  ), Xe = Oe(
1577
- ee(z, I, B, $)
1577
+ Z(z, I, B, $)
1578
1578
  ) || xe, St = At(B), yt = At($);
1579
1579
  en(() => {
1580
1580
  if (X(Be) && (St !== B || $ !== yt)) {
@@ -1639,12 +1639,12 @@ const Tn = {
1639
1639
  switch (r) {
1640
1640
  case "date":
1641
1641
  case "week":
1642
- return V ? [e, te.add(e, 1, "month")] : [te.subtract(e, 1, "month"), e];
1642
+ return V ? [e, ee.add(e, 1, "month")] : [ee.subtract(e, 1, "month"), e];
1643
1643
  case "month":
1644
1644
  case "quarter":
1645
- return V ? [e, te.add(e, 1, "year")] : [te.subtract(e, 1, "year"), e];
1645
+ return V ? [e, ee.add(e, 1, "year")] : [ee.subtract(e, 1, "year"), e];
1646
1646
  case "year":
1647
- return V ? [e, te.add(e, 10, "year")] : [te.subtract(e, 10, "year"), e];
1647
+ return V ? [e, ee.add(e, 10, "year")] : [ee.subtract(e, 10, "year"), e];
1648
1648
  default:
1649
1649
  return [];
1650
1650
  }
@@ -1666,12 +1666,12 @@ const Tn = {
1666
1666
  function g(e) {
1667
1667
  var f;
1668
1668
  e.stopPropagation();
1669
- let r = [...Z];
1669
+ let r = [...oe];
1670
1670
  ye ? r[Ee] = void 0 : r = void 0, je(r), _e(r), bt(r), (f = o.onClear) == null || f.call(o);
1671
1671
  }
1672
1672
  function ue(e, r) {
1673
- if (ot(e), Z && Z.length && !r) {
1674
- const f = Oe(Z, e);
1673
+ if (ot(e), oe.length && !r) {
1674
+ const f = Oe(oe, e);
1675
1675
  Ge(f), kt(f);
1676
1676
  }
1677
1677
  }
@@ -1680,11 +1680,11 @@ const Tn = {
1680
1680
  return (typeof A == "function" ? A(e) : !1) || r;
1681
1681
  }
1682
1682
  function Ve(e) {
1683
- return uo(e, I, ce) && !re(ee(e, I));
1683
+ return uo(e, I, ce) && !re(Z(e, I));
1684
1684
  }
1685
1685
  function It(e) {
1686
- const r = [...Z || []], f = e.target.value;
1687
- we(f), ke || a(!0), Ve(f) && (r[ce] = ee(f, I), _e(r), Ze(r), we(void 0));
1686
+ const r = [...oe], f = e.target.value;
1687
+ we(f), ke || a(!0), Ve(f) && (r[ce] = Z(f, I), _e(r), Ze(r), we(void 0));
1688
1688
  }
1689
1689
  function Jt() {
1690
1690
  ve && we(void 0);
@@ -1707,7 +1707,7 @@ const Tn = {
1707
1707
  X(pe) && pe.length ? ve && !Ve(ve) ? we(void 0) : le !== 2 ? Ot() : le === 2 && lt(pe) : ke && a(!1);
1708
1708
  }
1709
1709
  function lt(e, r) {
1710
- const f = e || Z;
1710
+ const f = e || oe;
1711
1711
  if (!f || !f[0] || !f[1])
1712
1712
  return;
1713
1713
  const V = Vt(f);
@@ -1715,7 +1715,7 @@ const Tn = {
1715
1715
  }
1716
1716
  function Wn() {
1717
1717
  lt();
1718
- const e = Z.map(
1718
+ const e = oe.map(
1719
1719
  (r) => He(r, i.dayjsLocale)
1720
1720
  );
1721
1721
  W == null || W(
@@ -1745,7 +1745,7 @@ const Tn = {
1745
1745
  return !!(ce === 0 && e.isAfter(r[1], fn()) || ce === 1 && e.isBefore(r[0], fn()));
1746
1746
  }
1747
1747
  function zn(e, r) {
1748
- const f = dn(r) && Pe.current, V = wt && le === 2 && !ye ? [] : [...Z], se = vt ? le === 0 || le === 2 ? 0 : 1 : ce, Nt = M ? et(r, Ke[se]) : r;
1748
+ const f = dn(r) && Pe.current, V = wt && le === 2 && !ye ? [] : [...oe], se = vt ? le === 0 || le === 2 ? 0 : 1 : ce, Nt = M ? et(r, Ke[se]) : r;
1749
1749
  f ? (V[se] = Nt, V[1 ^ se] = void 0) : V[se] = Nt;
1750
1750
  const Gt = Vt(V);
1751
1751
  mn(Gt), we(void 0), rt(void 0);
@@ -1753,7 +1753,7 @@ const Tn = {
1753
1753
  wt ? le === 0 || le === 2 && !ye ? vt ? ot(1) : Ot(!0) : M || lt(V) : Xt <= 1 ? Ot(!0) : le === 2 && Pe.current && !ye ? (Pe.current = !1, Ot(!0), !M && !f && lt(V, !0)) : (Pe.current = !1, !M && !f && lt(V));
1754
1754
  }
1755
1755
  function jn(e, r, f) {
1756
- const V = X(Z) ? [...Z] : [], se = et(
1756
+ const V = X(oe) ? [...oe] : [], se = et(
1757
1757
  V[e] || ie(B, $),
1758
1758
  f
1759
1759
  );
@@ -1774,7 +1774,7 @@ const Tn = {
1774
1774
  ue(Ie, e), setTimeout(() => Ct(Ie));
1775
1775
  }
1776
1776
  function qn(e, r) {
1777
- const f = [...Z || []];
1777
+ const f = [...oe];
1778
1778
  if (!r && (wt ? le === 1 : le !== 0) && !dn(e) && (f[ce] = et(
1779
1779
  e,
1780
1780
  Ke[ce]
@@ -1801,7 +1801,7 @@ const Tn = {
1801
1801
  function Qn(e) {
1802
1802
  gn(), h.current = setTimeout(() => {
1803
1803
  if (hn(e)) {
1804
- const r = ee(
1804
+ const r = Z(
1805
1805
  e.value(),
1806
1806
  I,
1807
1807
  B,
@@ -1823,7 +1823,7 @@ const Tn = {
1823
1823
  }
1824
1824
  function Jn(e) {
1825
1825
  if (J == null || J(e), hn(e)) {
1826
- const r = ee(
1826
+ const r = Z(
1827
1827
  e.value(),
1828
1828
  I,
1829
1829
  B,
@@ -1835,11 +1835,11 @@ const Tn = {
1835
1835
  function Fe(e, r, f = 1) {
1836
1836
  const V = e === "prev" ? 0 : 1;
1837
1837
  let se = [...Xe];
1838
- e === "prev" && (se[V] = te.subtract(
1838
+ e === "prev" && (se[V] = ee.subtract(
1839
1839
  Xe[V],
1840
1840
  f,
1841
1841
  r
1842
- )), e === "next" && (se[V] = te.add(
1842
+ )), e === "next" && (se[V] = ee.add(
1843
1843
  Xe[V],
1844
1844
  f,
1845
1845
  r
@@ -1887,7 +1887,7 @@ const Tn = {
1887
1887
  onMouseEnterShortcut: Qn,
1888
1888
  onMouseLeaveShortcut: Kn,
1889
1889
  onSelectShortcut: Jn
1890
- }, V = M && st[0] === "date" && st[1] === "date" || K || X(v) && v.length && !_, se = /* @__PURE__ */ ne(Te, { children: [
1890
+ }, V = M && st[0] === "date" && st[1] === "date" || K || X(v) && v.length && !_, se = /* @__PURE__ */ te(Te, { children: [
1891
1891
  /* @__PURE__ */ n(
1892
1892
  Co,
1893
1893
  {
@@ -1896,13 +1896,13 @@ const Tn = {
1896
1896
  getHeaderOperations: vn,
1897
1897
  setRangePageShowDates: Ze,
1898
1898
  pageShowDates: Xe,
1899
- value: Z,
1899
+ value: oe,
1900
1900
  format: I,
1901
1901
  onSelectPanel: zn,
1902
1902
  onMouseEnterCell: qn,
1903
1903
  onMouseLeaveCell: Un,
1904
1904
  disabledDate: (Xt) => re(Xt),
1905
- disabledTime: oe,
1905
+ disabledTime: ne,
1906
1906
  mode: p,
1907
1907
  localeName: i.dayjsLocale,
1908
1908
  showTime: M,
@@ -1921,7 +1921,7 @@ const Tn = {
1921
1921
  {
1922
1922
  ...f,
1923
1923
  DATEPICKER_LOCALE: q,
1924
- disabled: !(X(Z) && Z[0] && Z[1]),
1924
+ disabled: !(X(oe) && oe[0] && oe[1]),
1925
1925
  onClickConfirmBtn: Wn,
1926
1926
  extra: K,
1927
1927
  shortcutsPlacementLeft: _,
@@ -1929,7 +1929,7 @@ const Tn = {
1929
1929
  isTimePanel: Qe
1930
1930
  }
1931
1931
  )
1932
- ] }), Nt = _ ? /* @__PURE__ */ ne(Te, { children: [
1932
+ ] }), Nt = _ ? /* @__PURE__ */ te(Te, { children: [
1933
1933
  /* @__PURE__ */ n(un, { ref: de, ...f }),
1934
1934
  /* @__PURE__ */ n("div", { ref: G, className: `${Se}-panel-wrapper`, children: se })
1935
1935
  ] }) : se, Gt = typeof j == "function" ? j(Nt) : Nt;