@unicom-cloud/ui 0.8.51 → 0.8.53

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 (130) hide show
  1. package/Affix.js +41 -40
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +3 -3
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +2 -2
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +2 -2
  9. package/Button.js +1 -1
  10. package/Calendar.js +3 -3
  11. package/Card.js +1 -1
  12. package/Carousel.js +1 -1
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +3 -3
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +1 -1
  20. package/DatePicker.js +1268 -1233
  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 +1 -1
  26. package/Empty.js +1 -1
  27. package/Form.js +122 -117
  28. package/Grid.js +86 -83
  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 +2 -2
  34. package/InputTag.js +1 -1
  35. package/Layout.js +2 -2
  36. package/Link.js +1 -1
  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 +1 -1
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +1 -1
  49. package/Popover.js +1 -1
  50. package/Progress.js +1 -1
  51. package/Radio.js +2 -2
  52. package/Rate.js +1 -1
  53. package/ResizeBox.js +33 -32
  54. package/Result.js +1 -1
  55. package/Select.js +1 -1
  56. package/SelectView.js +142 -141
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +2 -2
  59. package/Space.js +1 -1
  60. package/Spin.js +1 -1
  61. package/Statistic.js +1 -1
  62. package/Steps.js +1 -1
  63. package/Switch.js +15 -14
  64. package/Table.js +946 -934
  65. package/Tabs.js +1 -1
  66. package/Tag.js +111 -82
  67. package/TimePicker.js +3 -3
  68. package/Timeline.js +1 -1
  69. package/Tooltip.js +1 -1
  70. package/Transfer.js +3 -3
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +1 -1
  73. package/Trigger.js +31 -30
  74. package/Typography.js +25 -25
  75. package/Upload.js +1 -1
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +1 -1
  78. package/Watermark.js +1 -1
  79. package/chunk/{CoevJNNj.js → -sV-N67P.js} +1 -1
  80. package/chunk/{CkIWpIl6.js → 8hWViek4.js} +1 -1
  81. package/chunk/{Ct7mcZuW.js → B8IzaBdN.js} +1 -1
  82. package/chunk/{DCe3olyi.js → BEVtQ2QL.js} +101 -99
  83. package/chunk/{tkU8zIK4.js → BEiJmFHq.js} +1 -1
  84. package/chunk/{CQvJK4kb.js → BOUZ7hSf.js} +12 -12
  85. package/chunk/{DMeJAY1S.js → BYMRs7t5.js} +6 -5
  86. package/chunk/{DWGwYNvC.js → CBaVCRtG.js} +2 -2
  87. package/chunk/{5PpvDpEt.js → CLU6Le34.js} +2 -2
  88. package/chunk/{dhljdm11.js → COWsswcW.js} +64 -63
  89. package/chunk/{B9nYZhXo.js → CRxPui7e.js} +2 -2
  90. package/chunk/CYyPBcnp.js +970 -0
  91. package/chunk/{DfvdYCUz.js → CccPQyYX.js} +1 -1
  92. package/chunk/{DUX5Hw8l.js → CmEyvBdT.js} +3 -3
  93. package/chunk/{Cku5-xbe.js → Cwp65v9h.js} +47 -46
  94. package/chunk/{I0bfWb5y.js → CyVLxv_U.js} +95 -93
  95. package/chunk/{Cw63stMm.js → Cz65nXZD.js} +18 -18
  96. package/chunk/D3pUE3-b.js +445 -0
  97. package/chunk/{9AJ-uN8F.js → D6BMh1k4.js} +1 -1
  98. package/chunk/{BHWpeAbb.js → DGK45cuc.js} +1 -1
  99. package/chunk/{CfqAfcA3.js → DNyP-r9G.js} +2 -2
  100. package/chunk/DQ3uFRJD.js +892 -0
  101. package/chunk/{4XXtB4ZV.js → DY9WA4bf.js} +1 -1
  102. package/chunk/{DG5zSZDd.js → DdVbiC4t.js} +2 -2
  103. package/chunk/{n58kSv9T.js → DfMf16uZ.js} +11 -5
  104. package/chunk/{z7sBNzI4.js → Lyg-9NEt.js} +17 -17
  105. package/chunk/{BXZYc88i.js → PRN8SqRA.js} +3 -3
  106. package/chunk/bcn23eHi.js +277 -0
  107. package/index.js +408 -346
  108. package/package.json +1 -23
  109. package/style.css +1 -1
  110. package/types/color-picker/colors.d.ts +1 -1
  111. package/types/date-picker/Picker.d.ts +4 -3
  112. package/types/date-picker/PickerRange.d.ts +3 -7
  113. package/types/date-picker/interface.d.ts +9 -1
  114. package/types/grid/index.d.ts +2 -1
  115. package/types/index.d.ts +1 -0
  116. package/types/pagination/interface.d.ts +1 -0
  117. package/types/picker/InputRange.d.ts +1 -1
  118. package/types/select/Select.d.ts +1 -1
  119. package/types/tag/interface.d.ts +7 -3
  120. package/types/utils/CSSTransition.d.ts +2 -1
  121. package/types/utils/is.d.ts +4 -17
  122. package/types/version/index.d.ts +1 -1
  123. package/utils/CSSTransition.js +1 -1
  124. package/utils/contextHolder.js +1 -1
  125. package/utils/is.js +102 -104
  126. package/utils/reactDOM.js +19 -19
  127. package/chunk/C61BEbHK.js +0 -263
  128. package/chunk/DXMtLuTP.js +0 -443
  129. package/chunk/m3_n9fBe.js +0 -961
  130. package/chunk/uUGMUxt_.js +0 -474
@@ -0,0 +1,445 @@
1
+ import { jsx as a, jsxs as _, Fragment as Je } from "react/jsx-runtime";
2
+ import W, { useContext as O, useState as Oe, useRef as ge, useEffect as te, forwardRef as Ae, createElement as J } from "react";
3
+ import { a as A } from "./Lyg-9NEt.js";
4
+ import Fe from "../hooks/useMergeProps.js";
5
+ import le from "../hooks/useMergeValue.js";
6
+ import q from "@unicom-cloud/utils/class-name";
7
+ import { pickDataAttributes as _e } from "../utils/pick.js";
8
+ import Le from "@unicom-cloud/icons/IconUiLeft";
9
+ import Te from "@unicom-cloud/icons/IconUiMore";
10
+ import Ue from "@unicom-cloud/icons/IconUiRight";
11
+ import pe from "../hooks/useKeyboardEvent.js";
12
+ import Be from "lodash/isFunction";
13
+ import Ke from "lodash/isPlainObject";
14
+ import ce from "lodash/isUndefined";
15
+ import { I as Ve } from "./CyVLxv_U.js";
16
+ import { S as fe } from "./BEVtQ2QL.js";
17
+ var E = /* @__PURE__ */ ((e) => (e[e.previous = 0] = "previous", e[e.next = 1] = "next", e))(E || {});
18
+ function De(e) {
19
+ var M, h, t;
20
+ const { locale: n } = O(A), o = pe(), {
21
+ pageNum: i,
22
+ current: f,
23
+ rootPrefixCls: u,
24
+ pageItemStyle: C,
25
+ activePageItemStyle: r,
26
+ itemRender: $
27
+ } = e, y = `${u}-item`, P = f === i, m = q(y, P ? `${y}-active` : "");
28
+ let g = C;
29
+ P && (g = { ...g, ...r });
30
+ const k = P ? { "aria-current": !0 } : {}, v = (s) => {
31
+ const { pageNum: l, onClick: S, disabled: d } = e;
32
+ s.currentTarget.dataset.active !== "true" && (s.stopPropagation(), d || S == null || S(l));
33
+ };
34
+ return /* @__PURE__ */ a(
35
+ "li",
36
+ {
37
+ style: g,
38
+ className: m,
39
+ onClick: v,
40
+ tabIndex: e.disabled ? -1 : 0,
41
+ "aria-label": (t = (h = (M = n == null ? void 0 : n.Pagination) == null ? void 0 : M.currentPage) == null ? void 0 : h.replace) == null ? void 0 : t.call(h, "{0}", i),
42
+ ...o({ onPressEnter: v }),
43
+ ...k,
44
+ children: $ ? $(i, "page", i) : i
45
+ }
46
+ );
47
+ }
48
+ function ne(e, n) {
49
+ switch (e) {
50
+ case "prev":
51
+ return n && n.prev ? n.prev : /* @__PURE__ */ a(Le, {});
52
+ case "next":
53
+ return n && n.next ? n.next : /* @__PURE__ */ a(Ue, {});
54
+ case "more":
55
+ return n && n.more ? n.more : /* @__PURE__ */ a(Te, {});
56
+ default:
57
+ return null;
58
+ }
59
+ }
60
+ const Z = (e) => {
61
+ var t, s, l, S, d, N;
62
+ const { locale: n } = O(A), {
63
+ rootPrefixCls: o,
64
+ current: i,
65
+ allPages: f,
66
+ jumpPage: u,
67
+ icons: C,
68
+ disabled: r,
69
+ pageItemStyle: $,
70
+ itemRender: y
71
+ } = e, P = f > 0 ? 1 : 0, m = Math.min(f, Math.max(P, i + u)), g = `${o}-item ${o}-item-jumper`, k = q(g), v = () => {
72
+ var L;
73
+ !r && ((L = e.onClick) == null || L.call(e, m));
74
+ }, M = ne("more", C), h = u > 0 ? (l = (s = (t = n == null ? void 0 : n.Pagination) == null ? void 0 : t.nextSomePages) == null ? void 0 : s.replace) == null ? void 0 : l.call(s, "{0}", u) : (N = (d = (S = n == null ? void 0 : n.Pagination) == null ? void 0 : S.prevSomePages) == null ? void 0 : d.replace) == null ? void 0 : N.call(d, "{0}", -u);
75
+ return /* @__PURE__ */ a(
76
+ "li",
77
+ {
78
+ style: $,
79
+ className: k,
80
+ onClick: v,
81
+ "aria-label": h,
82
+ children: y ? y(void 0, "more", M) : M
83
+ }
84
+ );
85
+ }, D = (e) => {
86
+ const { locale: n, rtl: o } = O(A), i = pe(), {
87
+ rootPrefixCls: f,
88
+ current: u,
89
+ allPages: C,
90
+ type: r,
91
+ icons: $,
92
+ disabled: y,
93
+ pageItemStyle: P,
94
+ itemRender: m
95
+ } = e, g = `${f}-item`, [k, v] = o ? ["next", "prev"] : ["prev", "next"], M = ne(r === 0 ? k : v, $);
96
+ let h = !1;
97
+ C === 0 ? h = !0 : r === 0 ? h = u <= 1 : h = u === C;
98
+ const t = y || h;
99
+ let s = u + (r === 0 ? -1 : 1);
100
+ s = Math.max(0, Math.min(C, s));
101
+ const l = r === 0 ? "prev" : "next", S = q(g, `${g}-${l}`, {
102
+ [`${g}-disabled`]: t
103
+ }), d = () => {
104
+ var N;
105
+ t || (N = e.onClick) == null || N.call(e, s);
106
+ };
107
+ return /* @__PURE__ */ a(
108
+ "li",
109
+ {
110
+ style: P,
111
+ className: S,
112
+ onClick: d,
113
+ tabIndex: t ? -1 : 0,
114
+ "aria-label": n.Pagination[l],
115
+ ...i({
116
+ onPressEnter: d
117
+ }),
118
+ children: m ? m(void 0, l, M) : M
119
+ }
120
+ );
121
+ }, G = W.memo(De);
122
+ function ue(e) {
123
+ var h, t;
124
+ const n = e.simple ? e.current : void 0, { locale: o } = O(A), [i, f] = Oe(n), u = ge();
125
+ te(() => {
126
+ e.simple && f(e.current);
127
+ }, [e.simple, e.current]);
128
+ const C = (s) => {
129
+ const l = parseInt(s, 10);
130
+ f(isNaN(l) ? void 0 : l);
131
+ }, r = () => {
132
+ const { onPageChange: s, totalPages: l, current: S, simple: d } = e;
133
+ if (ce(i))
134
+ return;
135
+ if (i === S) {
136
+ d || f(void 0);
137
+ return;
138
+ }
139
+ let N = isNaN(Number(i)) ? S : Number(i);
140
+ N < 1 ? N = 1 : N > l && (N = l), f(d ? N : void 0), Be(s) && s(N);
141
+ }, $ = () => {
142
+ const s = u.current.dom;
143
+ String(i) && s && s.setSelectionRange(0, String(i).length);
144
+ }, { rootPrefixCls: y, totalPages: P, simple: m, size: g, disabled: k } = e, v = `${y}-jumper`, M = {
145
+ showJumper: !0,
146
+ ...Ke(m) ? m : {}
147
+ };
148
+ return /* @__PURE__ */ _("div", { className: `${v}`, children: [
149
+ !m && /* @__PURE__ */ a("span", { className: `${v}-text-goto`, children: (h = o == null ? void 0 : o.Pagination) == null ? void 0 : h.goto }),
150
+ M.showJumper ? /* @__PURE__ */ a(
151
+ Ve,
152
+ {
153
+ _ignorePropsFromGlobal: !0,
154
+ ref: (s) => u.current = s,
155
+ className: `${v}-input`,
156
+ value: ce(i) ? void 0 : i.toString(),
157
+ size: g,
158
+ disabled: k || !P,
159
+ onChange: C,
160
+ onPressEnter: r,
161
+ onFocus: $,
162
+ onBlur: r
163
+ }
164
+ ) : /* @__PURE__ */ a("span", { children: i }),
165
+ !m && /* @__PURE__ */ a("span", { className: `${v}-text-goto-suffix`, children: (t = o == null ? void 0 : o.Pagination) == null ? void 0 : t.page }),
166
+ m && /* @__PURE__ */ _(Je, { children: [
167
+ /* @__PURE__ */ a("span", { className: `${v}-separator`, children: "/" }),
168
+ /* @__PURE__ */ a("span", { children: P })
169
+ ] })
170
+ ] });
171
+ }
172
+ const Ge = () => {
173
+ }, We = fe.Option, qe = [10, 20, 30, 40, 50];
174
+ function He(e) {
175
+ var P;
176
+ const n = ge(null), { locale: o } = O(A), {
177
+ onPageSizeChange: i = Ge,
178
+ rootPrefixCls: f,
179
+ sizeOptions: u = qe,
180
+ pageSize: C = 10,
181
+ size: r,
182
+ selectProps: $,
183
+ disabled: y
184
+ } = e;
185
+ return /* @__PURE__ */ a(
186
+ "div",
187
+ {
188
+ ref: n,
189
+ className: `${f}-option`,
190
+ "aria-label": (P = o == null ? void 0 : o.Pagination) == null ? void 0 : P.pageSize,
191
+ children: /* @__PURE__ */ a(
192
+ fe,
193
+ {
194
+ value: u.indexOf(C) !== -1 ? C : u[0],
195
+ onChange: (m) => {
196
+ i(m);
197
+ },
198
+ size: r,
199
+ getPopupContainer: () => n.current,
200
+ disabled: y,
201
+ ...$,
202
+ children: u.map((m) => {
203
+ var g;
204
+ return /* @__PURE__ */ a(We, { value: m, children: `${m} ${(g = o == null ? void 0 : o.Pagination) == null ? void 0 : g.countPerPage}` }, m);
205
+ })
206
+ }
207
+ )
208
+ }
209
+ );
210
+ }
211
+ const Qe = W.memo(He), Xe = 1, de = 10;
212
+ function ee(e = de, n) {
213
+ return Math.ceil(n / e);
214
+ }
215
+ function Ye(e, n) {
216
+ const i = Math.floor(n / 2) - 1, f = Math.max(e, 0);
217
+ return Math.min(f, i);
218
+ }
219
+ function me(e) {
220
+ return e && e.length ? e[0] : de;
221
+ }
222
+ const Ze = {
223
+ total: 0,
224
+ pageSizeChangeResetCurrent: !0,
225
+ bufferSize: 2
226
+ };
227
+ function et(e, n) {
228
+ var ae, K, ie;
229
+ const {
230
+ getPrefixCls: o,
231
+ size: i,
232
+ locale: f,
233
+ componentConfig: u,
234
+ rtl: C
235
+ } = O(A), r = Fe(
236
+ e,
237
+ Ze,
238
+ u == null ? void 0 : u.Pagination
239
+ ), {
240
+ total: $,
241
+ pageSize: y,
242
+ current: P,
243
+ showMore: m,
244
+ sizeOptions: g,
245
+ pageSizeChangeResetCurrent: k,
246
+ defaultCurrent: v,
247
+ defaultPageSize: M,
248
+ pageOption: h = {}
249
+ // 潘启宝添加
250
+ } = r, [t, s] = le(Xe, {
251
+ defaultValue: v,
252
+ value: P
253
+ }), [l, S] = le(
254
+ me(g),
255
+ {
256
+ defaultValue: M,
257
+ value: y
258
+ }
259
+ ), d = $, N = !!m;
260
+ P && !r.onChange && console.warn(
261
+ "Warning: you have provide current prop for pagination but without onChange handler , this will cause no-change when you change page. "
262
+ );
263
+ function L(c, b) {
264
+ const p = ee(c, b);
265
+ return t > p ? p : t;
266
+ }
267
+ te(() => {
268
+ if (g && !g.includes(l)) {
269
+ const b = me(g);
270
+ "pageSize" in r || S(b);
271
+ }
272
+ }, [g]), te(() => {
273
+ const c = L(l, d);
274
+ c !== t && !("current" in r) && s(c);
275
+ }, [d, t, l]);
276
+ const re = (c = t, b = l) => {
277
+ const { onChange: p } = r;
278
+ p == null || p(c, b);
279
+ }, Pe = (c) => {
280
+ const { onPageSizeChange: b } = r, p = ee(c, d), z = {
281
+ pageSize: c
282
+ };
283
+ k ? z.current = 1 : z.current = t > p ? p : t, "pageSize" in r || S(z.pageSize), !("current" in r) && t !== z.current && s(z.current), b == null || b(c, z.current), re(k ? 1 : z.current, c);
284
+ }, H = (c) => {
285
+ "current" in r || s(c), re(c);
286
+ }, {
287
+ className: he,
288
+ style: xe,
289
+ pageItemStyle: Ce,
290
+ activePageItemStyle: ve,
291
+ showTotal: T,
292
+ sizeCanChange: Se,
293
+ sizeOptions: Ne,
294
+ simple: U,
295
+ mini: be,
296
+ showJumper: Q,
297
+ selectProps: ze,
298
+ icons: $e,
299
+ disabled: F,
300
+ itemRender: ye,
301
+ hideOnSinglePage: we
302
+ } = r, Ie = r.size || i, x = o("pagination"), B = be ? "mini" : Ie, Me = q(
303
+ x,
304
+ `${x}-size-${B}`,
305
+ {
306
+ [`${x}-simple`]: U,
307
+ [`${x}-disabled`]: F,
308
+ [`${x}-rtl`]: C
309
+ },
310
+ he
311
+ );
312
+ let X;
313
+ const w = [], I = ee(l, d), R = Ye(r.bufferSize, I);
314
+ if (we && I <= 1)
315
+ return null;
316
+ const j = {
317
+ onClick: H,
318
+ rootPrefixCls: x,
319
+ simple: U,
320
+ current: t,
321
+ allPages: I,
322
+ icons: $e,
323
+ disabled: F,
324
+ pageItemStyle: Ce,
325
+ activePageItemStyle: ve,
326
+ itemRender: ye
327
+ };
328
+ if (U) {
329
+ const c = `${x}-item-simple`;
330
+ X = /* @__PURE__ */ _("ul", { className: `${x}-list`, children: [
331
+ /* @__PURE__ */ a(D, { ...j, type: E.previous }, "previous"),
332
+ /* @__PURE__ */ a("li", { className: `${c}-pager`, children: /* @__PURE__ */ a(
333
+ ue,
334
+ {
335
+ disabled: F,
336
+ rootPrefixCls: x,
337
+ totalPages: I,
338
+ current: t,
339
+ onPageChange: H,
340
+ simple: {
341
+ showJumper: typeof Q == "boolean" ? Q : !0
342
+ },
343
+ size: B
344
+ }
345
+ ) }),
346
+ /* @__PURE__ */ a(D, { ...j, type: E.next }, "next")
347
+ ] });
348
+ } else {
349
+ const c = 3 + R, b = I - 2 - R;
350
+ if (
351
+ // beginPage(1 page) + bufferSize * 2 + endPage(1 page) + ...(2 pages)
352
+ I <= 4 + R * 2 || t === c && t === b
353
+ )
354
+ for (let p = 1; p <= I; p++)
355
+ w.push(/* @__PURE__ */ J(G, { ...j, key: p, pageNum: p }));
356
+ else {
357
+ let p = 1, z = I, se = !0, oe = !0;
358
+ t > c && t < b ? (z = t + R, p = t - R) : t <= c ? (se = !1, p = 1, z = Math.max(c, R + t)) : t >= b && (oe = !1, z = I, p = Math.min(b, t - R));
359
+ for (let V = p; V <= z; V++)
360
+ w.push(/* @__PURE__ */ a(G, { pageNum: V, ...j }, V));
361
+ const je = /* @__PURE__ */ J(
362
+ Z,
363
+ {
364
+ ...j,
365
+ key: p - 1,
366
+ type: E.previous,
367
+ jumpPage: -(R * 2 + 1)
368
+ }
369
+ ), ke = /* @__PURE__ */ J(
370
+ Z,
371
+ {
372
+ ...j,
373
+ key: z + 1,
374
+ type: E.next,
375
+ jumpPage: R * 2 + 1
376
+ }
377
+ ), Re = /* @__PURE__ */ a(G, { pageNum: 1, ...j }, 1), Ee = /* @__PURE__ */ J(G, { ...j, key: I, pageNum: I });
378
+ se && (w[0] = W.cloneElement(w[0], {
379
+ className: `${x}-item-after-pre`
380
+ }), w.unshift(je), w.unshift(Re)), oe && (w[w.length - 1] = W.cloneElement(
381
+ w[w.length - 1],
382
+ {
383
+ className: `${x}-item-before-next`
384
+ }
385
+ ), w.push(ke), w.push(Ee));
386
+ }
387
+ X = /* @__PURE__ */ _("ul", { className: `${x}-list`, children: [
388
+ /* @__PURE__ */ J(D, { ...j, key: "previous", type: E.previous }),
389
+ w,
390
+ N && /* @__PURE__ */ J(
391
+ Z,
392
+ {
393
+ ...j,
394
+ key: I + 1,
395
+ type: E.next,
396
+ jumpPage: R * 2 + 1
397
+ }
398
+ ),
399
+ /* @__PURE__ */ a(D, { ...j, type: E.next }, "next")
400
+ ] });
401
+ }
402
+ let Y = null;
403
+ return typeof T == "boolean" && T && (Y = /* @__PURE__ */ a("div", { className: `${x}-total-text`, children: (ie = (K = (ae = f == null ? void 0 : f.Pagination) == null ? void 0 : ae.total) == null ? void 0 : K.replace) == null ? void 0 : ie.call(K, "{0}", d) })), typeof T == "function" && (Y = /* @__PURE__ */ a("div", { className: `${x}-total-text`, children: T(d, [(t - 1) * l + 1, t * l]) })), /* @__PURE__ */ _(
404
+ "div",
405
+ {
406
+ ..._e(r),
407
+ className: Me,
408
+ style: xe,
409
+ ref: n,
410
+ children: [
411
+ Y,
412
+ X,
413
+ !!h && /* @__PURE__ */ a(
414
+ Qe,
415
+ {
416
+ disabled: F,
417
+ rootPrefixCls: x,
418
+ sizeCanChange: Se,
419
+ sizeOptions: Ne,
420
+ onPageSizeChange: Pe,
421
+ pageSize: l,
422
+ size: B,
423
+ selectProps: ze
424
+ }
425
+ ),
426
+ !U && Q && /* @__PURE__ */ a(
427
+ ue,
428
+ {
429
+ disabled: F,
430
+ rootPrefixCls: x,
431
+ totalPages: I,
432
+ current: t,
433
+ onPageChange: H,
434
+ size: B
435
+ }
436
+ )
437
+ ]
438
+ }
439
+ );
440
+ }
441
+ const tt = Ae(et);
442
+ tt.displayName = "Pagination";
443
+ export {
444
+ tt as P
445
+ };
@@ -2,7 +2,7 @@ import { jsx as z } from "react/jsx-runtime";
2
2
  import Q from "lodash/isNumber";
3
3
  import U from "lodash/isPlainObject";
4
4
  import { createContext as L, forwardRef as T, useContext as H, useMemo as W, useState as X, useRef as Y, useEffect as Z } from "react";
5
- import { a as D } from "./z7sBNzI4.js";
5
+ import { a as D } from "./Lyg-9NEt.js";
6
6
  import F from "../hooks/useMergeProps.js";
7
7
  import q from "@unicom-cloud/utils/class-name";
8
8
  import _ from "../utils/omit.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as g, useContext as u, useRef as p, useCallback as d, useEffect as C } from "react";
3
- import { a as h } from "./z7sBNzI4.js";
3
+ import { a as h } from "./Lyg-9NEt.js";
4
4
  import x from "../hooks/use-watermark.js";
5
5
  import k from "../hooks/useMergeProps.js";
6
6
  import w from "@unicom-cloud/utils/class-name";
@@ -2,7 +2,7 @@ import { jsx as u, jsxs as et } from "react/jsx-runtime";
2
2
  import ft from "lodash/isFunction";
3
3
  import kt from "lodash/isPlainObject";
4
4
  import F, { useContext as nt, useRef as j, useState as wt, useEffect as Y, useMemo as at, useCallback as ce, useImperativeHandle as le } from "react";
5
- import { a as mt, I as pt } from "./z7sBNzI4.js";
5
+ import { a as mt, I as pt } from "./Lyg-9NEt.js";
6
6
  import se from "../hooks/useId.js";
7
7
  import fe from "../hooks/useMergeProps.js";
8
8
  import de from "../hooks/useMergeValue.js";
@@ -17,7 +17,7 @@ import { setTransformStyle as me } from "../utils/style.js";
17
17
  import jt from "@unicom-cloud/icons/IconUiDown";
18
18
  import Ut from "lodash/isNull";
19
19
  import pe from "../Dropdown.js";
20
- import { M as Mt } from "./DUX5Hw8l.js";
20
+ import { M as Mt } from "./CmEyvBdT.js";
21
21
  import ge from "lodash/isEqualWith";
22
22
  import be from "../utils/throttleByRaf.js";
23
23
  import Et from "@unicom-cloud/icons/IconUiLeft";