@unicom-cloud/ui 0.8.81 → 0.8.82

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 (262) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +2 -2
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +2 -2
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +2 -2
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +5 -4
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +7 -7
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +1 -1
  23. package/Empty.js +1 -1
  24. package/Icon.js +1 -1
  25. package/IconHover.js +1 -1
  26. package/Image.js +1 -1
  27. package/InputNumber.js +1 -1
  28. package/Layout.js +1 -1
  29. package/Link.js +1 -1
  30. package/List.js +2 -2
  31. package/Mentions.js +2 -2
  32. package/Menu.js +1 -1
  33. package/Message.js +1 -1
  34. package/Modal.js +1 -1
  35. package/Notice.js +1 -1
  36. package/Notification.js +5 -5
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +1 -1
  41. package/Popover.js +1 -1
  42. package/Progress.js +1 -1
  43. package/Radio.js +1 -1
  44. package/Rate.js +1 -1
  45. package/ResizeBox.js +1 -1
  46. package/Result.js +1 -1
  47. package/Select.js +1 -1
  48. package/Skeleton.js +1 -1
  49. package/Slider.js +1 -1
  50. package/Space.js +1 -1
  51. package/SpeechSynthesis.js +1 -1
  52. package/Spin.js +1 -1
  53. package/Statistic.js +2 -2
  54. package/Steps.js +1 -1
  55. package/Switch.js +1 -1
  56. package/Table.js +1 -1
  57. package/Tabs.js +1 -1
  58. package/Tag.js +1 -1
  59. package/Tooltip.js +1 -1
  60. package/Transfer.js +2 -2
  61. package/Tree.js +1 -1
  62. package/TreeSelect.js +1 -1
  63. package/Trigger.js +1 -1
  64. package/Typography.js +1 -1
  65. package/affix/index.js +60 -57
  66. package/alert/index.js +53 -53
  67. package/anchor/Anchor.js +72 -72
  68. package/anchor/Link.js +27 -27
  69. package/anchor/util.js +1 -1
  70. package/auto-complete/index.js +2 -2
  71. package/avatar/Avatar.js +31 -31
  72. package/avatar/Group.js +25 -25
  73. package/back-top/index.js +30 -30
  74. package/badge/index.js +37 -37
  75. package/breadcrumb/index.js +26 -26
  76. package/button/Group.js +7 -7
  77. package/button/index.js +29 -29
  78. package/calendar/index.js +2 -2
  79. package/card/Grid.js +12 -12
  80. package/card/Meta.js +17 -17
  81. package/card/index.js +44 -44
  82. package/carousel/Arrow.js +19 -19
  83. package/carousel/Indicator.js +25 -25
  84. package/carousel/index.js +77 -77
  85. package/cascader/Cascader.js +2 -2
  86. package/cascader/index.js +1 -1
  87. package/cascader/util.js +1 -1
  88. package/checkbox/Checkbox.js +2 -2
  89. package/checkbox/Group.js +2 -2
  90. package/checkbox/GroupBlock.js +2 -2
  91. package/checkbox/index.js +2 -2
  92. package/chunk/{yLRv5RIK.js → CQI1gsQs.js} +181 -181
  93. package/chunk/CmMehQON.js +1464 -0
  94. package/chunk/Cplu5dtQ.js +730 -0
  95. package/chunk/{C5X4hOkx.js → D0338Pbq.js} +80 -80
  96. package/chunk/{DYspELhF.js → DXDbeIai.js} +223 -223
  97. package/chunk/{DEiyXzBZ.js → DfrB26fI.js} +63 -63
  98. package/chunk/{BG7YGUsx.js → dKvAiKxr.js} +119 -119
  99. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  100. package/chunk/{DLBfXSnU.js → w221i0nK.js} +2872 -2871
  101. package/collapse/Collapse.js +2 -2
  102. package/collapse/Item.js +2 -2
  103. package/collapse/index.js +1 -1
  104. package/color-picker/ControlBar.js +36 -36
  105. package/color-picker/InputAlpha.js +11 -11
  106. package/color-picker/InputHex.js +24 -24
  107. package/color-picker/InputRgb.js +23 -23
  108. package/color-picker/Palette.js +18 -18
  109. package/color-picker/Panel.js +2 -2
  110. package/color-picker/index.js +2 -2
  111. package/comment/index.js +31 -31
  112. package/config-provider/ConfigProvider.js +5 -4
  113. package/config-provider/context.js +2 -2
  114. package/config-provider/index.js +4 -3
  115. package/copy/index.js +28 -28
  116. package/date-picker/Picker.js +276 -276
  117. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  118. package/date-picker/index.js +26 -27
  119. package/descriptions/index.js +33 -33
  120. package/divider/index.js +12 -12
  121. package/draggable/index.js +23 -23
  122. package/drawer/Drawer.js +81 -81
  123. package/dropdown/Button.js +1 -1
  124. package/dropdown/index.js +56 -56
  125. package/empty/index.js +1 -1
  126. package/form/Form.js +76 -76
  127. package/form/FormItem.js +64 -64
  128. package/grid/Col.js +53 -53
  129. package/grid/Row.js +34 -34
  130. package/grid/grid-item.js +29 -29
  131. package/grid/grid.js +50 -50
  132. package/icon/index.js +20 -19
  133. package/icon-hover/index.js +1 -1
  134. package/image/Image.js +86 -86
  135. package/image/ImagePreview.js +2 -2
  136. package/image/ImagePreviewArrow.js +22 -22
  137. package/image/ImagePreviewGroup.js +1 -1
  138. package/image/index.js +1 -1
  139. package/index.js +410 -408
  140. package/input/Group.js +8 -8
  141. package/input/Input.js +322 -322
  142. package/input/InputElement.js +1 -1
  143. package/input/Password.js +1 -1
  144. package/input/Search.js +1 -1
  145. package/input/Textarea.js +1 -1
  146. package/input-number/index.js +1 -1
  147. package/input-tag/InputTag.js +40 -40
  148. package/layout/Content.js +7 -7
  149. package/layout/Footer.js +9 -9
  150. package/layout/Header.js +7 -7
  151. package/layout/Sider.js +55 -55
  152. package/layout/index.js +32 -32
  153. package/link/index.js +35 -35
  154. package/list/Item.js +29 -29
  155. package/list/Meta.js +12 -12
  156. package/list/index.js +2 -2
  157. package/mentions/index.js +2 -2
  158. package/menu/Menu.js +2 -2
  159. package/menu/OverflowWrap.js +1 -1
  160. package/menu/index.js +2 -2
  161. package/message/index.js +1 -1
  162. package/message/useMessage.js +1 -1
  163. package/modal/Confirm.js +2 -2
  164. package/modal/Modal.js +2 -2
  165. package/modal/index.js +1 -1
  166. package/notice/index.js +1 -1
  167. package/notification/index.js +5 -5
  168. package/notification/useNotification.js +1 -1
  169. package/overflow-ellipsis/OverflowItem.js +12 -12
  170. package/overflow-ellipsis/index.js +24 -24
  171. package/package.json +1 -1
  172. package/page-header/index.js +38 -38
  173. package/pagination/PageItem.js +16 -16
  174. package/pagination/PageJumper.js +1 -1
  175. package/pagination/PageOption.js +2 -2
  176. package/pagination/Pagination.js +2 -2
  177. package/pagination/index.js +1 -1
  178. package/picker/Input.js +69 -69
  179. package/picker/InputRange.js +111 -111
  180. package/popconfirm/index.js +61 -61
  181. package/popover/index.js +35 -35
  182. package/progress/index.js +22 -22
  183. package/radio/Group.js +2 -2
  184. package/radio/GroupBlock.js +2 -2
  185. package/radio/Radio.js +2 -2
  186. package/radio/index.js +2 -2
  187. package/rate/index.js +49 -49
  188. package/resize-box/ResizeTrigger.js +34 -34
  189. package/resize-box/Split.js +56 -56
  190. package/resize-box/SplitGroup.js +55 -55
  191. package/resize-box/index.js +51 -51
  192. package/result/index.js +41 -41
  193. package/select/Option.js +1 -1
  194. package/select/Select.js +2 -2
  195. package/select/index.js +2 -2
  196. package/select/util.js +1 -1
  197. package/select-view/Core.js +125 -125
  198. package/skeleton/index.js +20 -20
  199. package/slider/Button.js +57 -57
  200. package/slider/index.js +116 -116
  201. package/space/index.js +46 -44
  202. package/speech-synthesis/index.js +1 -1
  203. package/spin/DotLoading.js +10 -10
  204. package/spin/index.js +44 -44
  205. package/statistic/Countdown.js +34 -34
  206. package/statistic/index.js +67 -67
  207. package/steps/index.js +55 -55
  208. package/style.css +1 -1
  209. package/switch/index.js +54 -54
  210. package/table/Table.js +3 -3
  211. package/table/index.js +1 -1
  212. package/tabs/Tab.js +2 -2
  213. package/tabs/TabContent.js +2 -2
  214. package/tabs/TabPane.js +12 -12
  215. package/tabs/index.js +2 -2
  216. package/tag/index.js +45 -45
  217. package/time-picker/Picker.js +76 -76
  218. package/time-picker/TimePicker.js +136 -136
  219. package/time-picker/index.js +8 -8
  220. package/time-picker/util.js +5 -5
  221. package/timeline/Item.js +47 -47
  222. package/timeline/Timeline.js +41 -41
  223. package/tooltip/index.js +29 -29
  224. package/transfer/Item.js +2 -2
  225. package/transfer/List.js +2 -2
  226. package/transfer/index.js +2 -2
  227. package/tree/Animation.js +2 -2
  228. package/tree/Node.js +2 -2
  229. package/tree/NodeList.js +1 -1
  230. package/tree/Tree.js +2 -2
  231. package/tree/index.js +1 -1
  232. package/tree-select/List.js +1 -1
  233. package/tree-select/Select.js +2 -2
  234. package/tree-select/index.js +2 -2
  235. package/trigger/index.js +60 -60
  236. package/types/config-provider/ConfigProvider.d.ts +2 -2
  237. package/types/config-provider/context.d.ts +1 -1
  238. package/types/date-picker/index.d.ts +8 -9
  239. package/types/date-picker/interface.d.ts +9 -9
  240. package/types/index.d.ts +1 -1
  241. package/types/picker/Input.d.ts +2 -2
  242. package/types/space/index.d.ts +2 -1
  243. package/types/utils/names.d.ts +1 -1
  244. package/typography/Base.js +53 -53
  245. package/typography/Ellipsis.js +9 -8
  246. package/typography/Operations.js +28 -28
  247. package/typography/Paragraph.js +8 -8
  248. package/typography/Typography.js +7 -7
  249. package/typography/index.js +1 -1
  250. package/upload/TriggerNode.js +47 -47
  251. package/upload/Upload.js +184 -184
  252. package/utils/contextHolder.js +3 -3
  253. package/utils/index.js +13 -13
  254. package/utils/names.js +1 -1
  255. package/utils/setPrimaryColor.js +18 -13
  256. package/utils/tween.js +1 -1
  257. package/verification-code/VerificationCode.js +49 -49
  258. package/version/index.js +1 -1
  259. package/watermark/Watermark.js +24 -24
  260. package/chunk/CQvM33Vg.js +0 -724
  261. package/chunk/yhU2zeeu.js +0 -1461
  262. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
@@ -1,66 +1,66 @@
1
- import { jsxs as c, jsx as r, Fragment as H } from "react/jsx-runtime";
2
- import B from "@unicom-cloud/icons/IconUiLeft";
1
+ import { jsxs as c, jsx as r, Fragment as B } from "react/jsx-runtime";
2
+ import C from "@unicom-cloud/icons/IconUiLeft";
3
3
  import _ from "@unicom-cloud/icons/IconUiRight";
4
4
  import T, { useContext as W, useState as j, useRef as z, useImperativeHandle as K, useEffect as U } from "react";
5
5
  import D from "../breadcrumb/index.js";
6
- import { a as F, I as L } from "../chunk/CQvM33Vg.js";
6
+ import { a as F, I as L } from "../chunk/Cplu5dtQ.js";
7
7
  import { u as M } from "../chunk/BYdIoY50.js";
8
8
  import { u as O } from "../chunk/BFTV6myl.js";
9
- import p from "@unicom-cloud/utils/class-name";
9
+ import $ from "@unicom-cloud/utils/class-name";
10
10
  import { o as S } from "../chunk/BKKEev13.js";
11
11
  import { r as q } from "../chunk/CIRG541s.js";
12
- function $(b, g) {
13
- const { getPrefixCls: v, componentConfig: d, rtl: h } = W(F), a = O(
14
- b,
12
+ function b(v, N) {
13
+ const { getPrefixCls: d, componentConfig: m, rtl: p } = W(F), a = O(
14
+ v,
15
15
  {},
16
- d == null ? void 0 : d.PageHeader
16
+ m == null ? void 0 : m.PageHeader
17
17
  ), {
18
- header: N,
19
- title: x,
20
- subTitle: y,
18
+ header: g,
19
+ title: y,
20
+ subTitle: x,
21
21
  extra: k,
22
- children: m,
22
+ children: f,
23
23
  backIcon: l,
24
- footer: f,
25
- breadcrumb: u,
24
+ footer: u,
25
+ breadcrumb: h,
26
26
  ...A
27
27
  } = a;
28
- let s = N;
28
+ let s = g;
29
29
  Array.isArray(s) && !s.length && (s = null);
30
- let i = x;
30
+ let i = y;
31
31
  Array.isArray(i) && !i.length && (i = null);
32
- let n = y;
32
+ let n = x;
33
33
  Array.isArray(n) && !n.length && (n = null);
34
34
  let o = k;
35
35
  Array.isArray(o) && !o.length && (o = null);
36
- const w = M(), [I, P] = j(!1), t = z(), e = v("page-header");
37
- K(g, () => ({
38
- getRootDomElement: R
36
+ const w = M(), [I, R] = j(!1), t = z(), e = d == null ? void 0 : d("page-header");
37
+ K(N, () => ({
38
+ getRootDomElement: E
39
39
  }), []);
40
- function R() {
40
+ function E() {
41
41
  return t.current;
42
42
  }
43
- function C() {
44
- t.current && P(t.current.offsetWidth < 768);
43
+ function H() {
44
+ t.current && R(t.current.offsetWidth < 768);
45
45
  }
46
46
  return U(() => {
47
- const E = q([t.current], C);
47
+ const P = q([t.current], H);
48
48
  return () => {
49
- E();
49
+ P();
50
50
  };
51
51
  }, [t.current]), /* @__PURE__ */ c(
52
52
  "div",
53
53
  {
54
54
  ...S(A, ["onBack"]),
55
55
  ref: t,
56
- className: p(
56
+ className: $(
57
57
  `${e}`,
58
58
  {
59
- [`${e}-with-breadcrumb`]: u,
60
- [`${e}-with-content`]: m,
61
- [`${e}-with-footer`]: f,
59
+ [`${e}-with-breadcrumb`]: h,
60
+ [`${e}-with-content`]: f,
61
+ [`${e}-with-footer`]: u,
62
62
  [`${e}-wrap`]: I,
63
- [`${e}-rtl`]: h
63
+ [`${e}-rtl`]: p
64
64
  },
65
65
  a.className
66
66
  ),
@@ -68,12 +68,12 @@ function $(b, g) {
68
68
  children: [
69
69
  !!s && /* @__PURE__ */ r("div", { className: `${e}-header`, children: s }),
70
70
  /* @__PURE__ */ c("div", { className: `${e}-head-wrapper`, children: [
71
- u && /* @__PURE__ */ r(D, { ...u }),
71
+ h && /* @__PURE__ */ r(D, { ...h }),
72
72
  /* @__PURE__ */ c("div", { className: `${e}-head`, children: [
73
73
  /* @__PURE__ */ c(
74
74
  "div",
75
75
  {
76
- className: p(`${e}-head-main`, {
76
+ className: $(`${e}-head-main`, {
77
77
  [`${e}-head-main-with-back`]: l
78
78
  }),
79
79
  children: [
@@ -88,11 +88,11 @@ function $(b, g) {
88
88
  ...w({
89
89
  onPressEnter: a.onBack
90
90
  }),
91
- children: /* @__PURE__ */ r("span", { className: `${e}-back-icon`, children: l === !0 ? h ? /* @__PURE__ */ r(_, {}) : /* @__PURE__ */ r(B, {}) : l })
91
+ children: /* @__PURE__ */ r("span", { className: `${e}-back-icon`, children: l === !0 ? p ? /* @__PURE__ */ r(_, {}) : /* @__PURE__ */ r(C, {}) : l })
92
92
  }
93
93
  ),
94
94
  i && /* @__PURE__ */ r("div", { className: `${e}-title`, children: i }),
95
- n && /* @__PURE__ */ c(H, { children: [
95
+ n && /* @__PURE__ */ c(B, { children: [
96
96
  /* @__PURE__ */ r("div", { className: `${e}-divider` }),
97
97
  /* @__PURE__ */ r("div", { className: `${e}-sub-title`, children: n })
98
98
  ] })
@@ -102,14 +102,14 @@ function $(b, g) {
102
102
  o && /* @__PURE__ */ r("div", { className: `${e}-head-extra`, children: o })
103
103
  ] })
104
104
  ] }),
105
- m && /* @__PURE__ */ r("div", { className: `${e}-content`, children: m }),
106
- f && /* @__PURE__ */ r("div", { className: `${e}-footer`, children: f })
105
+ f && /* @__PURE__ */ r("div", { className: `${e}-content`, children: f }),
106
+ u && /* @__PURE__ */ r("div", { className: `${e}-footer`, children: u })
107
107
  ]
108
108
  }
109
109
  );
110
110
  }
111
- $.displayName = "PageHeader";
112
- const se = T.forwardRef($);
111
+ b.displayName = "PageHeader";
112
+ const se = T.forwardRef(b);
113
113
  export {
114
114
  se as default
115
115
  };
@@ -3,22 +3,22 @@ import S from "@unicom-cloud/icons/IconUiLeft";
3
3
  import j from "@unicom-cloud/icons/IconUiMore";
4
4
  import K from "@unicom-cloud/icons/IconUiRight";
5
5
  import U, { useContext as N } from "react";
6
- import { a as E } from "../chunk/CQvM33Vg.js";
6
+ import { a as E } from "../chunk/Cplu5dtQ.js";
7
7
  import { u as R } from "../chunk/BYdIoY50.js";
8
8
  import k from "@unicom-cloud/utils/class-name";
9
9
  var _ = /* @__PURE__ */ ((t) => (t[t.previous = 0] = "previous", t[t.next = 1] = "next", t))(_ || {});
10
10
  function L(t) {
11
- var m, n, s;
11
+ var l, n, s;
12
12
  const { locale: e } = N(E), v = R(), {
13
13
  pageNum: i,
14
14
  current: b,
15
15
  rootPrefixCls: a,
16
16
  pageItemStyle: d,
17
- activePageItemStyle: l,
17
+ activePageItemStyle: m,
18
18
  itemRender: f
19
19
  } = t, x = `${a}-item`, P = b === i, C = k(x, P ? `${x}-active` : "");
20
20
  let o = d;
21
- P && (o = { ...o, ...l });
21
+ P && (o = { ...o, ...m });
22
22
  const h = P ? { "aria-current": !0 } : {}, p = (r) => {
23
23
  const { pageNum: u, onClick: g, disabled: c } = t;
24
24
  r.currentTarget.dataset.active !== "true" && (r.stopPropagation(), c || g == null || g(u));
@@ -30,7 +30,7 @@ function L(t) {
30
30
  className: C,
31
31
  onClick: p,
32
32
  tabIndex: t.disabled ? -1 : 0,
33
- "aria-label": (s = (n = (m = e == null ? void 0 : e.Pagination) == null ? void 0 : m.currentPage) == null ? void 0 : n.replace) == null ? void 0 : s.call(n, "{0}", i),
33
+ "aria-label": (s = (n = (l = e == null ? void 0 : e.Pagination) == null ? void 0 : l.currentPage) == null ? void 0 : n.replace) == null ? void 0 : s.call(n, "{0}", i),
34
34
  ...v({ onPressEnter: p }),
35
35
  ...h,
36
36
  children: f ? f(i, "page", i) : i
@@ -57,13 +57,13 @@ const G = (t) => {
57
57
  allPages: b,
58
58
  jumpPage: a,
59
59
  icons: d,
60
- disabled: l,
60
+ disabled: m,
61
61
  pageItemStyle: f,
62
62
  itemRender: x
63
63
  } = t, P = b > 0 ? 1 : 0, C = Math.min(b, Math.max(P, i + a)), o = `${v}-item ${v}-item-jumper`, h = k(o), p = () => {
64
64
  var M;
65
- !l && ((M = t.onClick) == null || M.call(t, C));
66
- }, m = $("more", d), n = a > 0 ? (u = (r = (s = e == null ? void 0 : e.Pagination) == null ? void 0 : s.nextSomePages) == null ? void 0 : r.replace) == null ? void 0 : u.call(r, "{0}", a) : (y = (c = (g = e == null ? void 0 : e.Pagination) == null ? void 0 : g.prevSomePages) == null ? void 0 : c.replace) == null ? void 0 : y.call(c, "{0}", -a);
65
+ !m && ((M = t.onClick) == null || M.call(t, C));
66
+ }, l = $("more", d), n = a > 0 ? (u = (r = (s = e == null ? void 0 : e.Pagination) == null ? void 0 : s.nextSomePages) == null ? void 0 : r.replace) == null ? void 0 : u.call(r, "{0}", a) : (y = (c = (g = e == null ? void 0 : e.Pagination) == null ? void 0 : g.prevSomePages) == null ? void 0 : c.replace) == null ? void 0 : y.call(c, "{0}", -a);
67
67
  return /* @__PURE__ */ I(
68
68
  "li",
69
69
  {
@@ -71,7 +71,7 @@ const G = (t) => {
71
71
  className: h,
72
72
  onClick: p,
73
73
  "aria-label": n,
74
- children: x ? x(void 0, "more", m) : m
74
+ children: x ? x(void 0, "more", l) : l
75
75
  }
76
76
  );
77
77
  }, H = (t) => {
@@ -79,18 +79,18 @@ const G = (t) => {
79
79
  rootPrefixCls: b,
80
80
  current: a,
81
81
  allPages: d,
82
- type: l,
82
+ type: m,
83
83
  icons: f,
84
84
  disabled: x,
85
85
  pageItemStyle: P,
86
86
  itemRender: C
87
- } = t, o = `${b}-item`, [h, p] = v ? ["next", "prev"] : ["prev", "next"], m = $(l === 0 ? h : p, f);
87
+ } = t, o = `${b}-item`, [h, p] = v ? ["next", "prev"] : ["prev", "next"], l = $(m === 0 ? h : p, f);
88
88
  let n = !1;
89
- d === 0 ? n = !0 : l === 0 ? n = a <= 1 : n = a === d;
89
+ d === 0 ? n = !0 : m === 0 ? n = a <= 1 : n = a === d;
90
90
  const s = x || n;
91
- let r = a + (l === 0 ? -1 : 1);
91
+ let r = a + (m === 0 ? -1 : 1);
92
92
  r = Math.max(0, Math.min(d, r));
93
- const u = l === 0 ? "prev" : "next", g = k(o, `${o}-${u}`, {
93
+ const u = m === 0 ? "prev" : "next", g = k(o, `${o}-${u}`, {
94
94
  [`${o}-disabled`]: s
95
95
  }), c = () => {
96
96
  var y;
@@ -103,11 +103,11 @@ const G = (t) => {
103
103
  className: g,
104
104
  onClick: c,
105
105
  tabIndex: s ? -1 : 0,
106
- "aria-label": e.Pagination[u],
106
+ "aria-label": e == null ? void 0 : e.Pagination[u],
107
107
  ...i({
108
108
  onPressEnter: c
109
109
  }),
110
- children: C ? C(void 0, u, m) : m
110
+ children: C ? C(void 0, u, l) : l
111
111
  }
112
112
  );
113
113
  }, O = U.memo(L);
@@ -3,7 +3,7 @@ import I from "lodash/isFunction";
3
3
  import J from "lodash/isPlainObject";
4
4
  import N from "lodash/isUndefined";
5
5
  import { useContext as E, useState as R, useRef as T, useEffect as w } from "react";
6
- import { a as z } from "../chunk/CQvM33Vg.js";
6
+ import { a as z } from "../chunk/Cplu5dtQ.js";
7
7
  import B from "../input/Input.js";
8
8
  function A(n) {
9
9
  var d, g;
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../chunk/CQvM33Vg.js";
4
- import { Y as i } from "../chunk/DLBfXSnU.js";
3
+ import "../chunk/Cplu5dtQ.js";
4
+ import { Y as i } from "../chunk/w221i0nK.js";
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1,13 +1,13 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../chunk/CQvM33Vg.js";
3
+ import "../chunk/Cplu5dtQ.js";
4
4
  import "../chunk/BFTV6myl.js";
5
5
  import "../chunk/CXPOj2uy.js";
6
6
  import "@unicom-cloud/utils/class-name";
7
7
  import "../chunk/ClqoGc3r.js";
8
8
  import "./PageItem.js";
9
9
  import "./PageJumper.js";
10
- import { P as s } from "../chunk/DLBfXSnU.js";
10
+ import { P as s } from "../chunk/w221i0nK.js";
11
11
  export {
12
12
  s as default
13
13
  };
@@ -1,4 +1,4 @@
1
- import { P as a } from "../chunk/DLBfXSnU.js";
1
+ import { P as a } from "../chunk/w221i0nK.js";
2
2
  export {
3
3
  a as default
4
4
  };
package/picker/Input.js CHANGED
@@ -1,130 +1,130 @@
1
- import { jsxs as C, jsx as f } from "react/jsx-runtime";
1
+ import { jsxs as v, jsx as f } from "react/jsx-runtime";
2
2
  import X from "@unicom-cloud/icons/IconUiClose";
3
3
  import Y from "lodash/isArray";
4
- import { forwardRef as Z, useContext as _, useRef as I, useState as E, useImperativeHandle as P } from "react";
5
- import { a as p, I as ee } from "../chunk/CQvM33Vg.js";
6
- import k from "@unicom-cloud/utils/class-name";
4
+ import { forwardRef as Z, useContext as _, useRef as C, useState as E, useImperativeHandle as P } from "react";
5
+ import { a as p, I as ee } from "../chunk/Cplu5dtQ.js";
6
+ import z from "@unicom-cloud/utils/class-name";
7
7
  import { Enter as ce } from "@unicom-cloud/utils/constant/keyboardCode";
8
- import { o as le } from "../chunk/BKKEev13.js";
9
- function ae({
10
- style: v,
11
- className: z,
12
- prefixCls: g,
13
- allowClear: w,
14
- status: D,
15
- error: F,
16
- disabled: i,
17
- placeholder: R,
8
+ import { o as ae } from "../chunk/BKKEev13.js";
9
+ function le({
10
+ style: w,
11
+ className: D,
12
+ prefixCls: F,
13
+ allowClear: R,
14
+ status: j,
15
+ error: O,
16
+ disabled: y,
17
+ placeholder: S,
18
18
  format: m,
19
- size: j,
20
- onClear: O,
21
- editable: S,
19
+ size: b,
20
+ onClear: g,
21
+ editable: u,
22
22
  value: o,
23
- inputValue: $,
23
+ inputValue: N,
24
24
  onPressEnter: d,
25
- suffixIcon: b,
25
+ suffixIcon: B,
26
26
  prefix: t,
27
27
  onChange: r,
28
- popupVisible: u,
29
- isPlaceholder: B,
28
+ popupVisible: H,
29
+ isPlaceholder: K,
30
30
  inputProps: e,
31
- ...H
32
- }, K) {
31
+ ...A
32
+ }, L) {
33
33
  const {
34
- getPrefixCls: A,
35
- size: L,
36
- locale: M,
34
+ getPrefixCls: n,
35
+ size: M,
36
+ locale: i,
37
37
  rtl: U
38
- } = _(p), n = I(null), [W, x] = E(!1), q = j || L, y = I(null);
39
- P(K, () => ({
38
+ } = _(p), $ = C(null), [W, x] = E(!1), q = b || M, h = C(null);
39
+ P(L, () => ({
40
40
  focus() {
41
- var c, a;
42
- (a = (c = n.current) == null ? void 0 : c.focus) == null || a.call(c);
41
+ var c, l;
42
+ (l = (c = $.current) == null ? void 0 : c.focus) == null || l.call(c);
43
43
  },
44
44
  blur() {
45
- var c, a;
46
- (a = (c = n.current) == null ? void 0 : c.blur) == null || a.call(c);
45
+ var c, l;
46
+ (l = (c = $.current) == null ? void 0 : c.blur) == null || l.call(c);
47
47
  },
48
- getRootDOMNode: () => y.current
48
+ getRootDOMNode: () => h.current
49
49
  }));
50
50
  function G(c) {
51
- var h;
52
- (h = e == null ? void 0 : e.onKeyDown) == null || h.call(e, c), c.key === ce.key && (d == null || d());
51
+ var k;
52
+ (k = e == null ? void 0 : e.onKeyDown) == null || k.call(e, c), c.key === ce.key && (d == null || d());
53
53
  }
54
54
  function J(c) {
55
- var a;
56
- (a = e == null ? void 0 : e.onChange) == null || a.call(e, c), r == null || r(c);
55
+ var l;
56
+ (l = e == null ? void 0 : e.onChange) == null || l.call(e, c), r == null || r(c);
57
57
  }
58
58
  let s = "";
59
- $ !== void 0 ? s = $ : o && !Y(o) && (s = typeof m == "function" ? m(o) : o.locale(M.dayjsLocale).format(m));
60
- const Q = S ? {} : { readOnly: !0 }, l = g || A("picker"), N = D || (F ? "error" : void 0), T = W || u, V = k(
61
- l,
62
- `${l}-size-${q}`,
59
+ N !== void 0 ? s = N : o && !Y(o) && (s = typeof m == "function" ? m(o) : o.locale(i == null ? void 0 : i.dayjsLocale).format(m));
60
+ const Q = u ? {} : { readOnly: !0 }, a = F || (n == null ? void 0 : n("picker")), I = j || (O ? "error" : void 0), T = W || H, V = z(
61
+ a,
62
+ `${a}-size-${q}`,
63
63
  {
64
- [`${l}-focused`]: T,
65
- [`${l}-disabled`]: i,
66
- [`${l}-has-prefix`]: t,
67
- [`${l}-${N}`]: N,
68
- [`${l}-rtl`]: U
64
+ [`${a}-focused`]: T,
65
+ [`${a}-disabled`]: y,
66
+ [`${a}-has-prefix`]: t,
67
+ [`${a}-${I}`]: I,
68
+ [`${a}-rtl`]: U
69
69
  },
70
- z
70
+ D
71
71
  );
72
- return /* @__PURE__ */ C(
72
+ return /* @__PURE__ */ v(
73
73
  "div",
74
74
  {
75
- style: v,
75
+ style: w,
76
76
  className: V,
77
- ref: y,
78
- ...le(H, ["onChange", "onPressEnter"]),
77
+ ref: h,
78
+ ...ae(A, ["onChange", "onPressEnter"]),
79
79
  children: [
80
- t && /* @__PURE__ */ f("div", { className: `${l}-prefix`, children: t }),
80
+ t && /* @__PURE__ */ f("div", { className: `${a}-prefix`, children: t }),
81
81
  /* @__PURE__ */ f(
82
82
  "div",
83
83
  {
84
- className: k(`${l}-input`, {
85
- [`${l}-input-placeholder`]: B
84
+ className: z(`${a}-input`, {
85
+ [`${a}-input-placeholder`]: K
86
86
  }),
87
87
  children: /* @__PURE__ */ f(
88
88
  "input",
89
89
  {
90
- ref: n,
90
+ ref: $,
91
91
  ...e,
92
- disabled: i,
93
- placeholder: R,
94
- className: `${l}-start-time`,
92
+ disabled: y,
93
+ placeholder: S,
94
+ className: `${a}-start-time`,
95
95
  value: s,
96
96
  onKeyDown: G,
97
97
  onChange: J,
98
98
  ...Q,
99
99
  onFocus: (c) => {
100
- var a;
101
- x(!0), (a = e == null ? void 0 : e.onFocus) == null || a.call(e, c);
100
+ var l;
101
+ x(!0), (l = e == null ? void 0 : e.onFocus) == null || l.call(e, c);
102
102
  },
103
103
  onBlur: (c) => {
104
- var a;
105
- x(!1), (a = e == null ? void 0 : e.onBlur) == null || a.call(e, c);
104
+ var l;
105
+ x(!1), (l = e == null ? void 0 : e.onBlur) == null || l.call(e, c);
106
106
  }
107
107
  }
108
108
  )
109
109
  }
110
110
  ),
111
- /* @__PURE__ */ C("div", { className: `${l}-suffix`, children: [
112
- w && s && /* @__PURE__ */ f(
111
+ /* @__PURE__ */ v("div", { className: `${a}-suffix`, children: [
112
+ R && s && /* @__PURE__ */ f(
113
113
  ee,
114
114
  {
115
- prefix: l,
116
- onClick: O,
117
- className: `${l}-clear-icon`,
115
+ prefix: a,
116
+ onClick: g,
117
+ className: `${a}-clear-icon`,
118
118
  children: /* @__PURE__ */ f(X, {})
119
119
  }
120
120
  ),
121
- /* @__PURE__ */ f("span", { className: `${l}-suffix-icon`, children: b })
121
+ /* @__PURE__ */ f("span", { className: `${a}-suffix-icon`, children: B })
122
122
  ] })
123
123
  ]
124
124
  }
125
125
  );
126
126
  }
127
- const ie = Z(ae);
127
+ const ie = Z(le);
128
128
  export {
129
129
  ie as default
130
130
  };