@unicom-cloud/ui 0.8.61 → 0.8.62

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 (179) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +44 -40
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +7 -7
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +22 -22
  9. package/Button.js +2 -2
  10. package/Calendar.js +106 -104
  11. package/Card.js +1 -1
  12. package/Carousel.js +34 -33
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +12 -12
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +16 -16
  20. package/DatePicker.js +165 -162
  21. package/Descriptions.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +9 -9
  26. package/Empty.js +2 -2
  27. package/Form.js +60 -54
  28. package/Grid.js +2 -2
  29. package/Icon.js +1 -1
  30. package/IconHover.js +1 -1
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +2 -2
  36. package/Link.js +14 -14
  37. package/List.js +3 -3
  38. package/Mentions.js +3 -3
  39. package/Menu.js +1 -1
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +9 -3
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +32 -32
  45. package/PageHeader.js +23 -22
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +7 -7
  49. package/Popover.js +1 -1
  50. package/Progress.js +14 -14
  51. package/Radio.js +2 -2
  52. package/Rate.js +43 -40
  53. package/ResizeBox.js +97 -96
  54. package/Result.js +15 -15
  55. package/Select.js +1 -1
  56. package/SelectView.js +295 -249
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +25 -25
  59. package/Space.js +1 -1
  60. package/SpeechSynthesis.js +32 -29
  61. package/Spin.js +2 -2
  62. package/Statistic.js +1 -1
  63. package/Steps.js +11 -11
  64. package/Switch.js +3 -3
  65. package/Table.js +9 -9
  66. package/Tabs.js +1 -1
  67. package/Tag.js +68 -67
  68. package/TimePicker.js +17 -17
  69. package/Timeline.js +1 -1
  70. package/Tooltip.js +1 -1
  71. package/Transfer.js +47 -46
  72. package/Tree.js +2 -2
  73. package/TreeSelect.js +1 -1
  74. package/Trigger.js +3 -3
  75. package/Typography.js +1 -1
  76. package/Upload.js +2 -2
  77. package/VerificationCode.js +1 -1
  78. package/Version.js +1 -1
  79. package/Watermark.js +1 -1
  80. package/chunk/{V6euPXVB.js → -Z968QpN.js} +257 -251
  81. package/chunk/{IooeSKJJ.js → AqH9yP_J.js} +19 -19
  82. package/chunk/{cZiP8FvM.js → B0oDiPqE.js} +1 -1
  83. package/chunk/{B16KHtX-.js → B4-WpgY2.js} +191 -185
  84. package/chunk/{CuOl4X0X.js → B8SZFOjt.js} +1 -1
  85. package/chunk/{CbiWdbr_.js → BXWxA-tS.js} +35 -34
  86. package/chunk/{DpfUGhi4.js → BlNFmhNa.js} +288 -283
  87. package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
  88. package/chunk/{Kbr6FzOG.js → BnqeQYIZ.js} +210 -186
  89. package/chunk/{BPZ-6HKJ.js → Bp3XomF8.js} +1 -2
  90. package/chunk/BsWphzcT.js +20 -0
  91. package/chunk/{RMBPs_Ry.js → C4eJ9vCf.js} +4 -3
  92. package/chunk/{BNHrEI0Y.js → C6fEFlPt.js} +52 -48
  93. package/chunk/C8o-VGyc.js +376 -0
  94. package/chunk/{eK7lxdak.js → CDJ1EnJ2.js} +8 -8
  95. package/chunk/{C5AQWbC4.js → CHyuuVxl.js} +1 -1
  96. package/chunk/{B2vORJQ8.js → CJnshq6A.js} +13 -13
  97. package/chunk/CT1lZ7ss.js +116 -0
  98. package/chunk/{Bdh4XVuf.js → CV1kLw5Z.js} +290 -281
  99. package/chunk/{DmUhn9ib.js → CazXy0r4.js} +54 -53
  100. package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
  101. package/chunk/{BJ_7JTqC.js → D3VMG9V1.js} +1 -1
  102. package/chunk/{D2HkyI6A.js → DGasAUHE.js} +2 -2
  103. package/chunk/{YIlBPVAs.js → DRQ1v6Ux.js} +1 -1
  104. package/chunk/{DhBo0pPJ.js → DRp7voqz.js} +119 -118
  105. package/chunk/{gIbzjQ-X.js → Dtm4BmKB.js} +2 -2
  106. package/chunk/{BEDYCG-I.js → KchYsivk.js} +18 -18
  107. package/chunk/{Cbd50gx8.js → Wum88vrW.js} +33 -33
  108. package/chunk/{BjSHZA0m.js → mfn4EgmQ.js} +1 -1
  109. package/chunk/{BYhtrDV3.js → nbEvdwT0.js} +152 -148
  110. package/chunk/{C1D7T29r.js → qpd2axxs.js} +83 -76
  111. package/chunk/{BVLwPZis.js → tOFzwzpT.js} +31 -30
  112. package/chunk/{DSGRHf-1.js → yESVS-qX.js} +157 -156
  113. package/hooks/useMergeValue.js +1 -1
  114. package/icons.js +4 -6001
  115. package/index.js +420 -392
  116. package/locale/en-US.js +1 -1
  117. package/locale/tr-TR.js +1 -1
  118. package/package.json +1 -1
  119. package/style.css +1 -1
  120. package/types/cascader/panel/Search.d.ts +1 -1
  121. package/types/config-provider/interface.d.ts +1 -1
  122. package/types/form/interface.d.ts +1 -1
  123. package/types/index.d.ts +1 -1
  124. package/types/message/index.d.ts +2 -2
  125. package/types/notification/index.d.ts +2 -2
  126. package/types/notification-base/index.d.ts +2 -2
  127. package/types/select/interface.d.ts +1 -0
  128. package/types/select-view/interface.d.ts +1 -0
  129. package/types/tree/Context.d.ts +1 -0
  130. package/types/tree/Tree.d.ts +1 -1
  131. package/types/tree/index.d.ts +5 -4
  132. package/types/tree/interface.d.ts +1 -0
  133. package/types/utils/index.d.ts +1 -0
  134. package/types/utils/lodash.d.ts +14 -1
  135. package/types/version/index.d.ts +1 -1
  136. package/utils/CSSTransition.js +1 -1
  137. package/utils/caseName.js +2 -18
  138. package/utils/contextHolder.js +1 -1
  139. package/utils/index.js +220 -191
  140. package/utils/is.js +68 -67
  141. package/utils/lodash.js +32 -6
  142. package/utils/reactDOM.js +1 -1
  143. package/chunk/-LZOUh53.js +0 -29
  144. package/chunk/-jdfq71f.js +0 -23
  145. package/chunk/B0GOLsj_.js +0 -58
  146. package/chunk/B7Zsp3gO.js +0 -29
  147. package/chunk/BDjXkzNj.js +0 -23
  148. package/chunk/BHn4xgbv.js +0 -209
  149. package/chunk/BLSiP_gg.js +0 -32
  150. package/chunk/BMJfSSLX.js +0 -23
  151. package/chunk/B_nfMl0e.js +0 -116
  152. package/chunk/BcS17Pzy.js +0 -66
  153. package/chunk/BdiEwtQO.js +0 -41
  154. package/chunk/Bpug_KxP.js +0 -34
  155. package/chunk/C1u_ckwU.js +0 -29
  156. package/chunk/C43Hv2Bl.js +0 -34
  157. package/chunk/C9vsih_D.js +0 -29
  158. package/chunk/CAfR2wLq.js +0 -41
  159. package/chunk/CAfecMDF.js +0 -46
  160. package/chunk/CKp4rZnD.js +0 -207
  161. package/chunk/CV2Aqv9q.js +0 -52
  162. package/chunk/CYdarMv9.js +0 -32
  163. package/chunk/C_S5Mdvd.js +0 -379
  164. package/chunk/CmB-TL7C.js +0 -46
  165. package/chunk/D-ER56Sf.js +0 -29
  166. package/chunk/D-aYnb6u.js +0 -41
  167. package/chunk/D3xQFJcO.js +0 -23
  168. package/chunk/DJcEys80.js +0 -29
  169. package/chunk/DLIm6rRJ.js +0 -29
  170. package/chunk/DOWEHtqM.js +0 -41
  171. package/chunk/DT37l12z.js +0 -40
  172. package/chunk/DW-B7npC.js +0 -23
  173. package/chunk/D_MTFBb0.js +0 -38
  174. package/chunk/Dx_5J4fO.js +0 -29
  175. package/chunk/Dy487FZ1.js +0 -118
  176. package/chunk/Uz-rNulO.js +0 -98
  177. package/chunk/cDZI_t6o.js +0 -52
  178. package/chunk/sScV-J56.js +0 -206
  179. package/chunk/wI2I1qb0.js +0 -23
package/Calendar.js CHANGED
@@ -1,21 +1,23 @@
1
- import { jsx as t, jsxs as L, Fragment as ae } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as L, Fragment as te } from "react/jsx-runtime";
2
2
  import Me from "lodash/merge";
3
3
  import se, { useMemo as ie, useContext as be, useState as J } from "react";
4
- import { d as De } from "./chunk/Bdh4XVuf.js";
4
+ import { d as De } from "./chunk/CV1kLw5Z.js";
5
5
  import { useMergeProps as Re } from "./hooks/useMergeProps.js";
6
6
  import { y as V } from "./chunk/BzPkh4Zv.js";
7
7
  import { getNow as O, methods as E, dayjs as le, getDayjsValue as B } from "./utils/dayjs.js";
8
8
  import { pickDataAttributes as Ae } from "./utils/pick.js";
9
- import { newArray as te } from "./utils/constant.js";
9
+ import { newArray as ae } from "./utils/constant.js";
10
10
  import { padStart as de } from "./utils/pad.js";
11
11
  import K from "lodash/isArray";
12
- import { a as ce, I as me } from "./chunk/DT37l12z.js";
12
+ import ce from "@unicom-cloud/icons/IconUiLeft";
13
+ import me from "@unicom-cloud/icons/IconUiRight";
13
14
  import xe from "./Button.js";
14
15
  import { useKeyboardEvent as Le } from "./hooks/useKeyboardEvent.js";
15
- import { R as Ee } from "./chunk/CuOl4X0X.js";
16
- import { S as ne } from "./chunk/BYhtrDV3.js";
17
- import { I as Pe, a as Ye } from "./chunk/cDZI_t6o.js";
18
- function Ve(a) {
16
+ import { R as Ee } from "./chunk/B8SZFOjt.js";
17
+ import { S as ne } from "./chunk/nbEvdwT0.js";
18
+ import Pe from "@unicom-cloud/icons/IconUiDoubleLeft";
19
+ import Ye from "@unicom-cloud/icons/IconUiDoubleRight";
20
+ function Ve(t) {
19
21
  const {
20
22
  prefixCls: e,
21
23
  dayStartOfWeek: h,
@@ -23,7 +25,7 @@ function Ve(a) {
23
25
  CALENDAR_LOCALE: d,
24
26
  panel: r,
25
27
  innerMode: o
26
- } = a, s = [
28
+ } = t, s = [
27
29
  "monday",
28
30
  "tuesday",
29
31
  "wednesday",
@@ -33,13 +35,13 @@ function Ve(a) {
33
35
  ];
34
36
  h === 0 ? s.unshift("sunday") : s.push("sunday"), f && s.unshift("self");
35
37
  const n = d.week[r || o === "year" ? "short" : "long"];
36
- return /* @__PURE__ */ t("div", { className: `${e}-week-list`, children: s.map((l) => /* @__PURE__ */ t("div", { className: `${e}-week-list-item`, children: n[l] }, l)) });
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)) });
37
39
  }
38
- function _(a, e) {
39
- if (a && K(a))
40
- return a[e];
40
+ function _(t, e) {
41
+ if (t && K(t))
42
+ return t[e];
41
43
  }
42
- function he(a) {
44
+ function he(t) {
43
45
  const {
44
46
  prefixCls: e,
45
47
  mergedValue: h,
@@ -48,7 +50,7 @@ function he(a) {
48
50
  panel: r,
49
51
  isSameTime: o,
50
52
  innerMode: s
51
- } = a;
53
+ } = t;
52
54
  function n(l, i, g) {
53
55
  return !i || !g ? !1 : o(l, i) || o(l, g) || l.isBetween(i, g, null, "[]");
54
56
  }
@@ -70,19 +72,19 @@ function he(a) {
70
72
  });
71
73
  };
72
74
  }
73
- const re = 6 * 7, z = (a) => ({
74
- year: a.year(),
75
- month: a.month() + 1,
76
- date: a.date(),
77
- day: a.day(),
78
- time: a
79
- }), Oe = (a) => ({
80
- start: z(E.startOf(a, "month")),
81
- end: z(E.endOf(a, "month")),
82
- days: a.daysInMonth()
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()
83
85
  });
84
- function ue(a, e) {
85
- const { dayStartOfWeek: h = 0, isWeek: f } = a, d = Oe(e), r = te(re).map(() => ({})), o = h === 0 ? d.start.day : (d.start.day || 7) - 1;
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;
86
88
  r[o] = {
87
89
  ...d.start,
88
90
  isCurrent: !0
@@ -98,7 +100,7 @@ function ue(a, e) {
98
100
  isCurrent: n < d.days,
99
101
  isNext: n >= d.days - 1
100
102
  };
101
- const s = te(6).map(() => []);
103
+ const s = ae(6).map(() => []);
102
104
  for (let n = 0; n < 6; n++)
103
105
  if (s[n] = r.slice(n * 7, 7 * (n + 1)), f) {
104
106
  const l = s[n][0].time, i = [...s[n]];
@@ -109,7 +111,7 @@ function ue(a, e) {
109
111
  }
110
112
  return s;
111
113
  }
112
- function fe(a) {
114
+ function fe(t) {
113
115
  const {
114
116
  prefixCls: e,
115
117
  cell: h,
@@ -128,15 +130,15 @@ function fe(a) {
128
130
  mergedPageShowDate: v,
129
131
  dayStartOfWeek: w,
130
132
  CALENDAR_LOCALE: $
131
- } = a, b = v.year(), D = he({
132
- ...a,
133
+ } = t, b = v.year(), D = he({
134
+ ...t,
133
135
  isSameTime: (x, m) => x.isSame(m, "day")
134
136
  });
135
137
  function c(x) {
136
- return x.map((m, I) => {
138
+ return x.map((m, T) => {
137
139
  if (m.time) {
138
140
  const M = typeof s == "function" && s(m.time), C = () => n(m.time, M), Y = o ? { onClick: C } : {}, P = o ? {} : { onClick: C };
139
- return /* @__PURE__ */ t(
141
+ return /* @__PURE__ */ a(
140
142
  "div",
141
143
  {
142
144
  className: D(m, M),
@@ -147,37 +149,37 @@ function fe(a) {
147
149
  g(m.time),
148
150
  P
149
151
  ) : /* @__PURE__ */ L("div", { className: `${e}-date`, ...P, children: [
150
- /* @__PURE__ */ t("div", { className: `${e}-date-value`, children: l ? m.date : /* @__PURE__ */ t("div", { className: `${e}-date-circle`, children: m.date }) }),
151
- !l && i !== "year" && /* @__PURE__ */ t("div", { className: `${e}-date-content`, children: y == null ? void 0 : y(m.time) })
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) })
152
154
  ] })
153
155
  },
154
- I
156
+ T
155
157
  );
156
158
  }
157
159
  if ("weekOfYear" in m) {
158
160
  const M = r && r.year(), C = r && r.month() + 1, Y = r && r.week(), P = r && m.weekRows.find(
159
161
  (S) => S.year === M && S.month === C
160
162
  ) && Y === m.weekOfYear;
161
- return /* @__PURE__ */ t(
163
+ return /* @__PURE__ */ a(
162
164
  "div",
163
165
  {
164
166
  className: V(`${e}-cell`, `${e}-cell-week`, {
165
167
  [`${e}-cell-selected-week`]: P,
166
168
  [`${e}-cell-in-range`]: P
167
169
  }),
168
- children: /* @__PURE__ */ t("div", { className: `${e}-date`, children: /* @__PURE__ */ t("div", { className: `${e}-date-value`, children: m.weekOfYear }) })
170
+ children: /* @__PURE__ */ a("div", { className: `${e}-date`, children: /* @__PURE__ */ a("div", { className: `${e}-date-value`, children: m.weekOfYear }) })
169
171
  },
170
- I
172
+ T
171
173
  );
172
174
  }
173
175
  });
174
176
  }
175
177
  let k = d;
176
178
  return typeof f == "number" && (k = ue(
177
- a,
179
+ t,
178
180
  le(`${b}-${de(f + 1, 2, "0")}-01`)
179
181
  )), /* @__PURE__ */ L("div", { className: h ? `${e}-month-cell` : `${e}-month`, children: [
180
- /* @__PURE__ */ t(
182
+ /* @__PURE__ */ a(
181
183
  Ve,
182
184
  {
183
185
  prefixCls: e,
@@ -188,7 +190,7 @@ function fe(a) {
188
190
  innerMode: i
189
191
  }
190
192
  ),
191
- /* @__PURE__ */ t("div", { className: `${e}-month-cell-body`, children: k.map((x, m) => /* @__PURE__ */ t(
193
+ /* @__PURE__ */ a("div", { className: `${e}-month-cell-body`, children: k.map((x, m) => /* @__PURE__ */ a(
192
194
  "div",
193
195
  {
194
196
  className: V(`${e}-month-row`, {
@@ -213,16 +215,16 @@ const pe = [
213
215
  "October",
214
216
  "November",
215
217
  "December"
216
- ].map((a, e) => ({
217
- name: a,
218
+ ].map((t, e) => ({
219
+ name: t,
218
220
  value: e
219
221
  })), ge = Array(3);
220
- for (let a = 0; a < 3; a++)
221
- ge[a] = pe.slice(a * 4, 4 * (a + 1));
222
+ for (let t = 0; t < 3; t++)
223
+ ge[t] = pe.slice(t * 4, 4 * (t + 1));
222
224
  const ye = Array(4);
223
- for (let a = 0; a < 4; a++)
224
- ye[a] = pe.slice(a * 3, 3 * (a + 1));
225
- function Ie(a) {
225
+ for (let t = 0; t < 4; t++)
226
+ ye[t] = pe.slice(t * 3, 3 * (t + 1));
227
+ function Te(t) {
226
228
  const {
227
229
  prefixCls: e,
228
230
  mergedPageShowDate: h,
@@ -233,15 +235,15 @@ function Ie(a) {
233
235
  selectHandler: s,
234
236
  innerMode: n,
235
237
  CALENDAR_LOCALE: l
236
- } = a, i = he({
237
- ...a,
238
+ } = t, i = he({
239
+ ...t,
238
240
  isSameTime: (u, y) => u.isSame(y, "month")
239
241
  }), g = h.year(), p = f ? ye : ge;
240
- return /* @__PURE__ */ t("div", { className: `${e}-year`, children: p.map((u, y) => /* @__PURE__ */ t("div", { className: `${e}-year-row`, children: u.map((v) => {
242
+ return /* @__PURE__ */ a("div", { className: `${e}-year`, children: p.map((u, y) => /* @__PURE__ */ a("div", { className: `${e}-year-row`, children: u.map((v) => {
241
243
  const w = le(
242
244
  `${g}-${de(v.value + 1, 2, "0")}-01`
243
245
  ), $ = typeof r == "function" && r(w), b = f ? { onClick: () => s(w, $) } : {};
244
- return /* @__PURE__ */ t(
246
+ return /* @__PURE__ */ a(
245
247
  "div",
246
248
  {
247
249
  className: i({ ...v, time: w }, $),
@@ -249,12 +251,12 @@ function Ie(a) {
249
251
  children: o ? se.cloneElement(
250
252
  o(w),
251
253
  b
252
- ) : f ? /* @__PURE__ */ t("div", { className: `${e}-date`, ...b, children: /* @__PURE__ */ t("div", { className: `${e}-date-value`, children: l.month.short[v.name] }) }) : /* @__PURE__ */ L("div", { className: `${e}-month-with-days`, children: [
253
- /* @__PURE__ */ t("div", { className: `${e}-month-title`, children: l.month.long[v.name] }),
254
- /* @__PURE__ */ t(
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(
255
257
  fe,
256
258
  {
257
- ...a,
259
+ ...t,
258
260
  cell: !0,
259
261
  value: v.value,
260
262
  innerMode: n
@@ -266,10 +268,10 @@ function Ie(a) {
266
268
  );
267
269
  }) }, y)) });
268
270
  }
269
- function oe(a) {
270
- return (a == null ? void 0 : a.parentElement) || null;
271
+ function oe(t) {
272
+ return (t == null ? void 0 : t.parentElement) || null;
271
273
  }
272
- function Te(a) {
274
+ function We(t) {
273
275
  const {
274
276
  prefixCls: e,
275
277
  changePageShowDate: h,
@@ -283,7 +285,7 @@ function Te(a) {
283
285
  onChangeYear: i,
284
286
  onChangeMonth: g,
285
287
  modes: p
286
- } = a, u = Le(), y = K(p) ? p.map((c) => ({
288
+ } = t, u = Le(), y = K(p) ? p.map((c) => ({
287
289
  label: r.view[c],
288
290
  value: c
289
291
  })) : [], v = l === "select", w = d.year(), $ = d.month() + 1, b = ie(() => {
@@ -296,8 +298,8 @@ function Te(a) {
296
298
  }, [w]), D = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
297
299
  return /* @__PURE__ */ L("div", { className: `${e}-header`, children: [
298
300
  /* @__PURE__ */ L("div", { className: `${e}-header-left`, children: [
299
- v ? /* @__PURE__ */ L(ae, { children: [
300
- /* @__PURE__ */ t(
301
+ v ? /* @__PURE__ */ L(te, { children: [
302
+ /* @__PURE__ */ a(
301
303
  ne,
302
304
  {
303
305
  size: "small",
@@ -308,7 +310,7 @@ function Te(a) {
308
310
  getPopupContainer: oe
309
311
  }
310
312
  ),
311
- s === "month" && /* @__PURE__ */ t(
313
+ s === "month" && /* @__PURE__ */ a(
312
314
  ne,
313
315
  {
314
316
  size: "small",
@@ -319,8 +321,8 @@ function Te(a) {
319
321
  getPopupContainer: oe
320
322
  }
321
323
  )
322
- ] }) : /* @__PURE__ */ L(ae, { children: [
323
- /* @__PURE__ */ t(
324
+ ] }) : /* @__PURE__ */ L(te, { children: [
325
+ /* @__PURE__ */ a(
324
326
  "div",
325
327
  {
326
328
  className: `${e}-header-icon`,
@@ -330,11 +332,11 @@ function Te(a) {
330
332
  ...u({
331
333
  onPressEnter: () => h("prev", s)
332
334
  }),
333
- children: /* @__PURE__ */ t(ce, {})
335
+ children: /* @__PURE__ */ a(ce, {})
334
336
  }
335
337
  ),
336
- /* @__PURE__ */ t("div", { className: `${e}-header-value`, children: d.format(f) }),
337
- /* @__PURE__ */ t(
338
+ /* @__PURE__ */ a("div", { className: `${e}-header-value`, children: d.format(f) }),
339
+ /* @__PURE__ */ a(
338
340
  "div",
339
341
  {
340
342
  role: "button",
@@ -344,13 +346,13 @@ function Te(a) {
344
346
  ...u({
345
347
  onPressEnter: () => h("next", s)
346
348
  }),
347
- children: /* @__PURE__ */ t(me, {})
349
+ children: /* @__PURE__ */ a(me, {})
348
350
  }
349
351
  )
350
352
  ] }),
351
- /* @__PURE__ */ t(xe, { size: "small", onClick: () => o(O()), children: r.today })
353
+ /* @__PURE__ */ a(xe, { size: "small", onClick: () => o(O()), children: r.today })
352
354
  ] }),
353
- /* @__PURE__ */ t("div", { className: `${e}-header-right`, children: /* @__PURE__ */ t(
355
+ /* @__PURE__ */ a("div", { className: `${e}-header-right`, children: /* @__PURE__ */ a(
354
356
  Ee.Group,
355
357
  {
356
358
  size: "small",
@@ -362,7 +364,7 @@ function Te(a) {
362
364
  ) })
363
365
  ] });
364
366
  }
365
- function We(a) {
367
+ function Ie(t) {
366
368
  const {
367
369
  prefixCls: e,
368
370
  changePageShowDate: h,
@@ -370,47 +372,47 @@ function We(a) {
370
372
  mergedPageShowDate: d,
371
373
  innerMode: r,
372
374
  panelOperations: o
373
- } = a, 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`, {
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
376
  [`${e}-header-icon-hidden`]: !u
375
377
  });
376
378
  return /* @__PURE__ */ L("div", { className: `${e}-header`, children: [
377
- /* @__PURE__ */ t(
379
+ /* @__PURE__ */ a(
378
380
  "div",
379
381
  {
380
382
  className: p(n),
381
383
  onClick: () => n && h("prev", "year"),
382
- children: n && /* @__PURE__ */ t(Pe, {})
384
+ children: n && /* @__PURE__ */ a(Pe, {})
383
385
  }
384
386
  ),
385
- /* @__PURE__ */ t(
387
+ /* @__PURE__ */ a(
386
388
  "div",
387
389
  {
388
390
  className: p(l),
389
391
  onClick: () => l && h("prev", "month"),
390
- children: l && /* @__PURE__ */ t(ce, {})
392
+ children: l && /* @__PURE__ */ a(ce, {})
391
393
  }
392
394
  ),
393
- /* @__PURE__ */ t("div", { className: `${e}-header-value`, children: d.format(f) }),
394
- /* @__PURE__ */ t(
395
+ /* @__PURE__ */ a("div", { className: `${e}-header-value`, children: d.format(f) }),
396
+ /* @__PURE__ */ a(
395
397
  "div",
396
398
  {
397
399
  className: p(g),
398
400
  onClick: () => g && h("next", "month"),
399
- children: g && /* @__PURE__ */ t(me, {})
401
+ children: g && /* @__PURE__ */ a(me, {})
400
402
  }
401
403
  ),
402
- /* @__PURE__ */ t(
404
+ /* @__PURE__ */ a(
403
405
  "div",
404
406
  {
405
407
  className: p(i),
406
408
  onClick: () => i && h("next", "year"),
407
- children: i && /* @__PURE__ */ t(Ye, {})
409
+ children: i && /* @__PURE__ */ a(Ye, {})
408
410
  }
409
411
  )
410
412
  ] });
411
413
  }
412
- function He(a, e) {
413
- return a === "month" || a === "year" && !e ? "YYYY-MM-DD" : "YYYY-MM";
414
+ function He(t, e) {
415
+ return t === "month" || t === "year" && !e ? "YYYY-MM-DD" : "YYYY-MM";
414
416
  }
415
417
  const Fe = {
416
418
  dayStartOfWeek: 0,
@@ -419,14 +421,14 @@ const Fe = {
419
421
  headerType: "button",
420
422
  modes: ["month", "year"]
421
423
  };
422
- function Be(a) {
424
+ function Be(t) {
423
425
  const {
424
426
  getPrefixCls: e,
425
427
  locale: h,
426
428
  componentConfig: f,
427
429
  rtl: d
428
430
  } = be(De), r = Re(
429
- a,
431
+ t,
430
432
  Fe,
431
433
  f == null ? void 0 : f.Calendar
432
434
  ), {
@@ -448,19 +450,19 @@ function Be(a) {
448
450
  headerRender: k,
449
451
  headerType: x,
450
452
  modes: m,
451
- panelOperations: I
453
+ panelOperations: T
452
454
  } = r, M = Me(h.Calendar, i), C = e("calendar"), [Y, P] = J(
453
455
  $ || b
454
- ), S = $ || Y, T = He(S, l), [q, ve] = J(
455
- B(y || w, T)
456
- ), [we, W] = J(
457
- B(u, T) || q || O()
458
- ), R = B(v, T) || we, U = "value" in r ? B(y, T) : q, Q = ie(() => ue(r, R), [R.toString(), S, n]);
456
+ ), S = $ || Y, W = He(S, l), [q, ve] = J(
457
+ B(y || w, W)
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
461
  function H(N) {
460
462
  ve(N), D == null || D(N), X(N);
461
463
  }
462
464
  function X(N) {
463
- W(N), c == null || c(N);
465
+ I(N), c == null || c(N);
464
466
  }
465
467
  function Z(N, A) {
466
468
  A || H(N);
@@ -469,15 +471,15 @@ function Be(a) {
469
471
  S === "month" ? G = M.formatMonth : S === "year" && (G = M.formatYear);
470
472
  function $e(N, A) {
471
473
  let F;
472
- N === "prev" && (F = E.subtract(R, 1, A)), N === "next" && (F = E.add(R, 1, A)), W(F), c == null || c(F);
474
+ N === "prev" && (F = E.subtract(R, 1, A)), N === "next" && (F = E.add(R, 1, A)), I(F), c == null || c(F);
473
475
  }
474
476
  function Ne(N) {
475
477
  const A = E.set(R, "year", N);
476
- W(A), c == null || c(A);
478
+ I(A), c == null || c(A);
477
479
  }
478
480
  function Ce(N) {
479
481
  const A = E.set(R, "month", N - 1);
480
- W(A), c == null || c(A);
482
+ I(A), c == null || c(A);
481
483
  }
482
484
  function j(N) {
483
485
  P(N);
@@ -497,7 +499,7 @@ function Be(a) {
497
499
  mergedPageShowDate: R,
498
500
  modes: m,
499
501
  innerMode: S,
500
- panelOperations: I
502
+ panelOperations: T
501
503
  };
502
504
  return /* @__PURE__ */ L(
503
505
  "div",
@@ -512,8 +514,8 @@ function Be(a) {
512
514
  onChangeMode: j,
513
515
  onChange: H,
514
516
  onChangePageDate: X
515
- }) : l ? /* @__PURE__ */ t(We, { ...ee }) : /* @__PURE__ */ t(
516
- Te,
517
+ }) : l ? /* @__PURE__ */ a(Ie, { ...ee }) : /* @__PURE__ */ a(
518
+ We,
517
519
  {
518
520
  ...ee,
519
521
  CALENDAR_LOCALE: M,
@@ -525,7 +527,7 @@ function Be(a) {
525
527
  headerType: x
526
528
  }
527
529
  ),
528
- S === "month" && /* @__PURE__ */ t("div", { className: `${C}-body`, children: /* @__PURE__ */ t(
530
+ S === "month" && /* @__PURE__ */ a("div", { className: `${C}-body`, children: /* @__PURE__ */ a(
529
531
  fe,
530
532
  {
531
533
  ...r,
@@ -538,8 +540,8 @@ function Be(a) {
538
540
  CALENDAR_LOCALE: M
539
541
  }
540
542
  ) }),
541
- S === "year" && /* @__PURE__ */ t("div", { className: `${C}-body`, children: /* @__PURE__ */ t(
542
- Ie,
543
+ S === "year" && /* @__PURE__ */ a("div", { className: `${C}-body`, children: /* @__PURE__ */ a(
544
+ Te,
543
545
  {
544
546
  ...r,
545
547
  prefixCls: C,
@@ -551,7 +553,7 @@ function Be(a) {
551
553
  CALENDAR_LOCALE: M
552
554
  }
553
555
  ) }),
554
- p && l && /* @__PURE__ */ t(
556
+ p && l && /* @__PURE__ */ a(
555
557
  "div",
556
558
  {
557
559
  className: `${C}-footer-btn-wrapper`,
package/Card.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
2
  import h, { useContext as y } from "react";
3
- import { d as x } from "./chunk/Bdh4XVuf.js";
3
+ import { d as x } from "./chunk/CV1kLw5Z.js";
4
4
  import { useMergeProps as q } from "./hooks/useMergeProps.js";
5
5
  import A from "./Spin.js";
6
6
  import { y as p } from "./chunk/BzPkh4Zv.js";