@unicom-cloud/ui 0.8.63 → 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 (214) 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 +27 -26
  26. package/Empty.js +2 -2
  27. package/Form.js +4 -4
  28. package/Grid.js +3 -3
  29. package/Icon.js +3 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +4 -1
  32. package/Input.js +11 -2
  33. package/InputNumber.js +3 -3
  34. package/InputTag.js +1 -1
  35. package/Layout.js +25 -21
  36. package/Link.js +2 -2
  37. package/List.js +31 -30
  38. package/Mentions.js +4 -4
  39. package/Menu.js +7 -2
  40. package/Message.js +4 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +4 -3
  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 +4 -2
  52. package/Rate.js +2 -2
  53. package/ResizeBox.js +140 -137
  54. package/Result.js +2 -2
  55. package/Select.js +4 -1
  56. package/SelectView.js +7 -7
  57. package/Skeleton.js +2 -2
  58. package/Slider.js +5 -5
  59. package/Space.js +54 -50
  60. package/Spin.js +2 -2
  61. package/Statistic.js +29 -28
  62. package/Steps.js +41 -39
  63. package/Switch.js +3 -3
  64. package/Table.js +8 -5
  65. package/Tabs.js +6 -2
  66. package/Tag.js +2 -2
  67. package/TimePicker.js +38 -37
  68. package/Timeline.js +4 -2
  69. package/Tooltip.js +2 -2
  70. package/Transfer.js +4 -4
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +3 -1
  73. package/Trigger.js +43 -42
  74. package/Typography.js +6 -2
  75. package/Upload.js +3 -3
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +5 -3
  78. package/Watermark.js +1 -1
  79. package/chunk/{DDDuw0Zi.js → 1GQdnTJp.js} +2 -2
  80. package/chunk/BAWsPQBM.js +11 -0
  81. package/chunk/{CfZWOhnc.js → BS09tn7B.js} +2 -2
  82. package/chunk/{CZ1wrD_H.js → BUCEs557.js} +2 -2
  83. package/chunk/BqGtwxTi.js +777 -0
  84. package/chunk/{BcwdVUDs.js → Bqk6yh16.js} +2 -2
  85. package/chunk/{CD7dGcUa.js → BqufsN8i.js} +4 -4
  86. package/chunk/{Dpzgtdt-.js → BtlvlGQN.js} +2 -2
  87. package/chunk/{BoDdbbF_.js → CF6p9R93.js} +4 -3
  88. package/chunk/{BnLshM9R.js → CGZ0In1p.js} +189 -182
  89. package/chunk/{B5gIo-hD.js → CH1UUxsg.js} +4 -4
  90. package/chunk/{D3dcFbex.js → CIlGCedk.js} +3 -3
  91. package/chunk/{CgDayZDE.js → CPcm9Cm5.js} +2 -2
  92. package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
  93. package/chunk/{JpKOcIfl.js → CWgltRVL.js} +44 -41
  94. package/chunk/{BLLKKgZJ.js → CsbCHnFk.js} +23 -21
  95. package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
  96. package/chunk/{B9w_puFP.js → DG-epQqF.js} +2 -2
  97. package/chunk/{QFkhCtUr.js → DIx0qmCq.js} +3 -3
  98. package/chunk/{Bn2-vqTg.js → DK4KcodH.js} +201 -195
  99. package/chunk/{BEB_A9eY.js → DLvMA1OW.js} +2 -2
  100. package/chunk/{DbPYtS7-.js → DQDkV47j.js} +2 -2
  101. package/chunk/{rlfmXePI.js → DTjcKyDN.js} +135 -134
  102. package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
  103. package/chunk/{C6Zb_-OE.js → DXZEpA3t.js} +2 -2
  104. package/chunk/{aqSmxUbY.js → DjtWv6Wn.js} +1 -1
  105. package/chunk/{C5S_amaH.js → DlLL5JQo.js} +106 -101
  106. package/chunk/{CvlD3aiv.js → Dnycc1qJ.js} +133 -130
  107. package/chunk/{DbLgopUR.js → DqFhzTWC.js} +3 -3
  108. package/chunk/{DXZ8-ha7.js → Dv_xRzvR.js} +3 -3
  109. package/chunk/{Dk6hL04k.js → Ek8U5CTN.js} +222 -221
  110. package/chunk/{CfTcP6nF.js → ewRDIDUz.js} +4 -4
  111. package/chunk/{CAxIyiy6.js → tYXLFPVI.js} +6 -4
  112. package/hooks/useIntersectionObserver.js +1 -1
  113. package/hooks/useMergeValue.js +2 -2
  114. package/index.js +530 -476
  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/calendar/hook/useCellClassName.d.ts +2 -1
  123. package/types/checkbox/IconCheck.d.ts +2 -1
  124. package/types/config-provider/interface.d.ts +1 -1
  125. package/types/date-picker/hook/useCellClassName.d.ts +2 -1
  126. package/types/date-picker/panel/Footer.d.ts +2 -1
  127. package/types/dropdown/index.d.ts +1 -0
  128. package/types/form/IconSymbol.d.ts +2 -1
  129. package/types/form/useForm.d.ts +2 -1
  130. package/types/icon/addFromIconFontCn.d.ts +2 -1
  131. package/types/icon/index.d.ts +2 -0
  132. package/types/image/Image.d.ts +1 -0
  133. package/types/image/index.d.ts +2 -1
  134. package/types/image/util/getFixTranslate.d.ts +2 -1
  135. package/types/image/util/hook/useImageStatus.d.ts +2 -2
  136. package/types/image/util/hook/useShowFooter.d.ts +2 -2
  137. package/types/index.d.ts +26 -26
  138. package/types/input/Input.d.ts +1 -0
  139. package/types/input/index.d.ts +1 -0
  140. package/types/input/useComposition.d.ts +2 -1
  141. package/types/input-number/useSelectionRange.d.ts +2 -1
  142. package/types/layout/index.d.ts +1 -0
  143. package/types/list/index.d.ts +1 -0
  144. package/types/menu/Indent.d.ts +2 -1
  145. package/types/menu/Menu.d.ts +1 -0
  146. package/types/menu/index.d.ts +1 -0
  147. package/types/message/index.d.ts +2 -0
  148. package/types/notification/index.d.ts +2 -0
  149. package/types/overflow-ellipsis/OverflowItem.d.ts +2 -2
  150. package/types/overflow-ellipsis/index.d.ts +2 -2
  151. package/types/radio/Radio.d.ts +2 -0
  152. package/types/radio/index.d.ts +2 -1
  153. package/types/resize-box/ResizeTrigger.d.ts +2 -1
  154. package/types/resize-box/index.d.ts +1 -0
  155. package/types/result/403.d.ts +2 -1
  156. package/types/result/404.d.ts +2 -1
  157. package/types/result/500.d.ts +2 -1
  158. package/types/select/Select.d.ts +1 -1
  159. package/types/select/index.d.ts +1 -0
  160. package/types/select/interface.d.ts +1 -1
  161. package/types/skeleton/Image.d.ts +2 -1
  162. package/types/skeleton/Text.d.ts +2 -1
  163. package/types/slider/hook/useLegalValue.d.ts +2 -1
  164. package/types/space/index.d.ts +2 -0
  165. package/types/space/toArray.d.ts +2 -1
  166. package/types/speech-synthesis/index.d.ts +2 -1
  167. package/types/spin/DotLoading.d.ts +2 -1
  168. package/types/statistic/index.d.ts +1 -0
  169. package/types/steps/index.d.ts +1 -0
  170. package/types/table/hook/useComponent.d.ts +2 -1
  171. package/types/table/hook/useExpand.d.ts +2 -1
  172. package/types/table/hook/useRowSelection.d.ts +2 -1
  173. package/types/table/hook/useSorter.d.ts +2 -1
  174. package/types/table/index.d.ts +2 -1
  175. package/types/table/summary/index.d.ts +3 -0
  176. package/types/tabs/Tab.d.ts +1 -0
  177. package/types/tabs/TabContent.d.ts +2 -2
  178. package/types/tabs/hook/useDomSize.d.ts +2 -1
  179. package/types/tabs/hook/useHeaderScroll.d.ts +2 -1
  180. package/types/tabs/index.d.ts +1 -0
  181. package/types/tabs/tab-header/DropdownIcon.d.ts +2 -1
  182. package/types/time-picker/TimeColumn.d.ts +2 -2
  183. package/types/time-picker/index.d.ts +5 -0
  184. package/types/timeline/Timeline.d.ts +1 -0
  185. package/types/timeline/index.d.ts +1 -0
  186. package/types/tree-select/Select.d.ts +5 -0
  187. package/types/tree-select/hook/useTreeData.d.ts +2 -1
  188. package/types/tree-select/index.d.ts +2 -1
  189. package/types/typography/Operations.d.ts +2 -1
  190. package/types/typography/index.d.ts +1 -0
  191. package/types/upload/Upload.d.ts +2 -1
  192. package/types/upload/index.d.ts +2 -3
  193. package/types/utils/fillNBSP.d.ts +2 -1
  194. package/types/utils/getHighlightText.d.ts +2 -1
  195. package/types/utils/getHotkeyHandler.d.ts +2 -1
  196. package/types/utils/getStringLength.d.ts +2 -1
  197. package/types/utils/include.d.ts +2 -1
  198. package/types/utils/mergeProps.d.ts +2 -1
  199. package/types/utils/mergedToString.d.ts +2 -1
  200. package/types/utils/omit.d.ts +2 -1
  201. package/types/utils/pick.d.ts +2 -1
  202. package/types/utils/throttleByRaf.d.ts +2 -1
  203. package/types/utils/throttleByRafV2.d.ts +2 -1
  204. package/types/utils/warning.d.ts +2 -1
  205. package/types/version/index.d.ts +2 -0
  206. package/utils/className.js +1 -1
  207. package/utils/contextHolder.js +1 -1
  208. package/utils/copy.js +1 -1
  209. package/utils/index.js +41 -41
  210. package/utils/is.js +37 -37
  211. package/utils/reactDOM.js +3 -3
  212. package/utils/scrollIntoView.js +1 -1
  213. package/chunk/BzPkh4Zv.js +0 -11
  214. package/chunk/Co3idurS.js +0 -774
package/Descriptions.js CHANGED
@@ -3,9 +3,9 @@ import z from "lodash/isArray";
3
3
  import T from "lodash/isNumber";
4
4
  import V from "lodash/isPlainObject";
5
5
  import S, { useContext as q, useState as B, useRef as G, useEffect as J } from "react";
6
- import { d as K } from "./chunk/C5S_amaH.js";
6
+ import { d as K } from "./chunk/DlLL5JQo.js";
7
7
  import { useMergeProps as Q } from "./hooks/useMergeProps.js";
8
- import { y as U } from "./chunk/BzPkh4Zv.js";
8
+ import { y as U } from "./chunk/BAWsPQBM.js";
9
9
  import x, { responsiveArray as P } from "./utils/responsiveObserve.js";
10
10
  const k = (f) => z(f) ? f.reduce((h, p) => h + (p.span || 1), 0) : 0, W = {
11
11
  layout: "horizontal",
package/Divider.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as x, useContext as $ } from "react";
3
- import { d as u } from "./chunk/C5S_amaH.js";
3
+ import { d as u } from "./chunk/DlLL5JQo.js";
4
4
  import { useMergeProps as h } from "./hooks/useMergeProps.js";
5
- import { y as v } from "./chunk/BzPkh4Zv.js";
5
+ import { y as v } from "./chunk/BAWsPQBM.js";
6
6
  const y = {
7
7
  type: "horizontal",
8
8
  orientation: "center"
package/Draggable.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as I } from "react/jsx-runtime";
2
2
  import S, { useRef as P, useState as u, useEffect as $, useContext as O } from "react";
3
- import { d as T } from "./chunk/C5S_amaH.js";
4
- import { y as w } from "./chunk/BzPkh4Zv.js";
3
+ import { d as T } from "./chunk/DlLL5JQo.js";
4
+ import { y as w } from "./chunk/BAWsPQBM.js";
5
5
  function N(m) {
6
6
  const {
7
7
  prefixCls: e,
package/Drawer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as r } from "./chunk/CZ1wrD_H.js";
1
+ import { D as r } from "./chunk/BUCEs557.js";
2
2
  export {
3
3
  r as default
4
4
  };
package/Dropdown.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsx as s, jsxs as J } from "react/jsx-runtime";
2
2
  import $ from "lodash/get";
3
3
  import l, { forwardRef as K, useContext as j, useRef as A } from "react";
4
- import { d as U } from "./chunk/C5S_amaH.js";
4
+ import { d as U } from "./chunk/DlLL5JQo.js";
5
5
  import { useMergeProps as z } from "./hooks/useMergeProps.js";
6
6
  import { useMergeValue as S } from "./hooks/useMergeValue.js";
7
7
  import W, { EventsByTriggerNeed as X } from "./Trigger.js";
8
- import { y as T } from "./chunk/BzPkh4Zv.js";
8
+ import { y as T } from "./chunk/BAWsPQBM.js";
9
9
  import { supportRef as Y } from "./utils/is.js";
10
10
  import Z from "./utils/omit.js";
11
11
  import ee, { pickDataAttributes as F } from "./utils/pick.js";
@@ -19,22 +19,22 @@ const te = {
19
19
  icon: /* @__PURE__ */ s(G, {}),
20
20
  unmountOnExit: !0
21
21
  };
22
- function ne(D, O) {
22
+ function ne(P, O) {
23
23
  const { componentConfig: u } = j(U), g = z(
24
- D,
24
+ P,
25
25
  te,
26
26
  u == null ? void 0 : u["Dropdown.Button"]
27
27
  ), {
28
28
  className: x,
29
29
  style: a,
30
- children: M,
30
+ children: w,
31
31
  disabled: t,
32
32
  position: b = "br",
33
33
  type: C = "default",
34
34
  size: n,
35
- icon: V = /* @__PURE__ */ s(G, {}),
35
+ icon: B = /* @__PURE__ */ s(G, {}),
36
36
  onClick: c,
37
- buttonProps: w,
37
+ buttonProps: M,
38
38
  rightButtonProps: r,
39
39
  // 潘启宝添加
40
40
  buttonsRender: h,
@@ -47,8 +47,8 @@ function ne(D, O) {
47
47
  type: C,
48
48
  size: n,
49
49
  onClick: c,
50
- ...w,
51
- children: M
50
+ ...M,
51
+ children: w
52
52
  }
53
53
  ), o = /* @__PURE__ */ s(
54
54
  N,
@@ -56,7 +56,7 @@ function ne(D, O) {
56
56
  disabled: t,
57
57
  type: C,
58
58
  size: n,
59
- icon: V,
59
+ icon: B,
60
60
  ...r
61
61
  }
62
62
  );
@@ -90,7 +90,7 @@ function ne(D, O) {
90
90
  }
91
91
  const L = K(ne);
92
92
  L.displayName = "DropdownButton";
93
- function re(D, O) {
93
+ function re(P, O) {
94
94
  const u = {
95
95
  position: "bl",
96
96
  trigger: "hover",
@@ -100,29 +100,29 @@ function re(D, O) {
100
100
  right: 4,
101
101
  top: 4,
102
102
  bottom: 4
103
- }, { getPrefixCls: x, componentConfig: a, rtl: M } = j(U), t = z(
104
- D,
103
+ }, { getPrefixCls: x, componentConfig: a, rtl: w } = j(U), t = z(
104
+ P,
105
105
  u,
106
106
  a == null ? void 0 : a.Dropdown
107
107
  ), {
108
108
  trigger: b,
109
109
  droplist: C,
110
110
  children: n,
111
- position: V,
111
+ position: B,
112
112
  disabled: c,
113
- unmountOnExit: w,
113
+ unmountOnExit: M,
114
114
  triggerProps: r,
115
115
  getPopupContainer: h,
116
116
  onVisibleChange: i,
117
117
  ...p
118
- } = t, o = x("dropdown"), f = A(null), [B, Q] = S(!1, {
118
+ } = t, o = x("dropdown"), f = A(null), [V, Q] = S(!1, {
119
119
  defaultValue: t.defaultPopupVisible,
120
120
  value: t.popupVisible
121
121
  }), R = () => l.Children.only(C || /* @__PURE__ */ s("span", {})), E = (e) => {
122
122
  var m;
123
123
  Q(e), i == null || i(e), (m = r == null ? void 0 : r.onVisibleChange) == null || m.call(r, e);
124
124
  }, q = (e) => {
125
- e !== B && E(e);
125
+ e !== V && E(e);
126
126
  }, H = () => {
127
127
  const e = R();
128
128
  if ($(e, "type.__PQB_MENU__") || $(e, "props.isMenu")) {
@@ -140,15 +140,15 @@ function re(D, O) {
140
140
  selectable: !1,
141
141
  onClickMenuItem: (...y) => {
142
142
  var I;
143
- let P = null;
143
+ let D = null;
144
144
  const v = R();
145
- v.props.onClickMenuItem && (P = v.props.onClickMenuItem(
145
+ v.props.onClickMenuItem && (D = v.props.onClickMenuItem(
146
146
  ...y
147
147
  ));
148
148
  const d = f.current && f.current.getRootElement();
149
- (I = d == null ? void 0 : d.focus) == null || I.call(d), P instanceof Promise ? P.finally(
149
+ (I = d == null ? void 0 : d.focus) == null || I.call(d), D instanceof Promise ? D.finally(
150
150
  () => E(!1)
151
- ) : P !== !1 && E(!1);
151
+ ) : D !== !1 && E(!1);
152
152
  }
153
153
  });
154
154
  }
@@ -165,9 +165,9 @@ function re(D, O) {
165
165
  mouseEnterDelay: 400,
166
166
  mouseLeaveDelay: 400,
167
167
  disabled: c,
168
- unmountOnExit: w,
169
- position: V,
170
- popupVisible: B,
168
+ unmountOnExit: M,
169
+ position: B,
170
+ popupVisible: V,
171
171
  popupAlign: g,
172
172
  getPopupContainer: h,
173
173
  alignPoint: b === "contextMenu",
@@ -180,8 +180,8 @@ function re(D, O) {
180
180
  ...typeof c == "boolean" ? { disabled: c } : {},
181
181
  className: T(
182
182
  {
183
- [`${o}-popup-visible`]: B,
184
- [`${[o]}-rtl`]: M
183
+ [`${o}-popup-visible`]: V,
184
+ [`${[o]}-rtl`]: w
185
185
  },
186
186
  n.props.className
187
187
  ),
@@ -196,5 +196,6 @@ const ie = l.forwardRef(re), k = ie;
196
196
  k.displayName = "Dropdown";
197
197
  k.Button = L;
198
198
  export {
199
+ L as DropdownButton,
199
200
  k as default
200
201
  };
package/Empty.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/IconUiEmpty";
3
3
  import "react";
4
- import { E as e } from "./chunk/C5S_amaH.js";
4
+ import { E as e } from "./chunk/DlLL5JQo.js";
5
5
  import "./hooks/useMergeProps.js";
6
- import "./chunk/BzPkh4Zv.js";
6
+ import "./chunk/BAWsPQBM.js";
7
7
  export {
8
8
  e as default
9
9
  };
package/Form.js CHANGED
@@ -6,10 +6,10 @@ import { p as Ke } from "./chunk/CANaGbGR.js";
6
6
  import M from "lodash/isPlainObject";
7
7
  import Me from "lodash/merge";
8
8
  import H, { createContext as ue, useRef as L, forwardRef as Ve, useContext as O, useEffect as ie, useImperativeHandle as et, Component as tt, isValidElement as fe, useState as ce, useMemo as we, createElement as Ee, cloneElement as Te, useCallback as ee } from "react";
9
- import { d as xe, a as rt } from "./chunk/C5S_amaH.js";
9
+ import { d as xe, a as rt } from "./chunk/DlLL5JQo.js";
10
10
  import { useCreate as st } from "./hooks/useCreate.js";
11
11
  import { useMergeProps as it } from "./hooks/useMergeProps.js";
12
- import { y as G } from "./chunk/BzPkh4Zv.js";
12
+ import { y as G } from "./chunk/BAWsPQBM.js";
13
13
  import _e from "./utils/omit.js";
14
14
  import { NOOP as b } from "./utils/constant.js";
15
15
  import $ from "lodash/get";
@@ -19,7 +19,7 @@ import j from "lodash/isFunction";
19
19
  import nt from "lodash/omit";
20
20
  import De from "lodash/setWith";
21
21
  import { isExist as $e } from "./utils/is.js";
22
- import { P as lt } from "./chunk/BmO1y0vr.js";
22
+ import { P as lt } from "./chunk/DUeHQKtx.js";
23
23
  import Ue from "lodash/cloneDeepWith";
24
24
  import ot from "lodash/flatten";
25
25
  import Oe from "lodash/set";
@@ -1235,7 +1235,7 @@ const Pe = (s, e) => !te(s) && s >= 0 && s < e.length, He = (s) => {
1235
1235
  }
1236
1236
  const v = ((R = a.getInnerMethods(!0)) == null ? void 0 : R.innerGetFieldValue(e)) || [], y = i.current.id;
1237
1237
  i.current.id += 1;
1238
- const w = v || [];
1238
+ const w = v;
1239
1239
  let k = w;
1240
1240
  p !== void 0 && p >= 0 && p <= w.length ? (n.splice(p, 0, y), k = [
1241
1241
  ...w.slice(0, p),
package/Grid.js CHANGED
@@ -1,10 +1,10 @@
1
- import { G as V, a as A, C as Y, R as Z } from "./chunk/BcwdVUDs.js";
1
+ import { G as V, a as A, C as Y, R as Z } from "./chunk/Bqk6yh16.js";
2
2
  import { jsx as M } from "react/jsx-runtime";
3
3
  import X from "lodash/get";
4
4
  import y, { useRef as ee, useState as q, useEffect as z, useMemo as b, forwardRef as H, useContext as h } from "react";
5
- import { d as J } from "./chunk/C5S_amaH.js";
5
+ import { d as J } from "./chunk/DlLL5JQo.js";
6
6
  import { useMergeProps as K } from "./hooks/useMergeProps.js";
7
- import { y as L } from "./chunk/BzPkh4Zv.js";
7
+ import { y as L } from "./chunk/BAWsPQBM.js";
8
8
  import te from "lodash/isPlainObject";
9
9
  import F, { responsiveArray as Q } from "./utils/responsiveObserve.js";
10
10
  import se from "lodash/isFunction";
package/Icon.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import i from "react";
3
- import { b as g } from "./chunk/C5S_amaH.js";
4
- import { y as x } from "./chunk/BzPkh4Zv.js";
3
+ import { b as g } from "./chunk/DlLL5JQo.js";
4
+ import { y as x } from "./chunk/BAWsPQBM.js";
5
5
  import { isServerRendering as y } from "./utils/dom.js";
6
6
  const I = [];
7
7
  function P(p = {}) {
@@ -52,5 +52,6 @@ const m = i.forwardRef(function(r, u) {
52
52
  m.displayName = "Icon";
53
53
  m.addFromIconFontCn = P;
54
54
  export {
55
+ P as addFromIconFontCn,
55
56
  m as default
56
57
  };
package/IconHover.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { I as i } from "./chunk/C5S_amaH.js";
4
- import "./chunk/BzPkh4Zv.js";
3
+ import { I as i } from "./chunk/DlLL5JQo.js";
4
+ import "./chunk/BAWsPQBM.js";
5
5
  export {
6
6
  i as default
7
7
  };
package/Image.js CHANGED
@@ -1,4 +1,7 @@
1
- import { I as a } from "./chunk/D3dcFbex.js";
1
+ import { I as a } from "./chunk/CIlGCedk.js";
2
+ import { P as m, a as p } from "./chunk/DqFhzTWC.js";
2
3
  export {
4
+ m as ImagePreview,
5
+ p as ImagePreviewGroup,
3
6
  a as default
4
7
  };
package/Input.js CHANGED
@@ -1,4 +1,13 @@
1
- import { I as e } from "./chunk/Bn2-vqTg.js";
1
+ import { I as t } from "./chunk/DK4KcodH.js";
2
+ import { G as e, a as s, P as u, S as o, T as I, f as n } from "./chunk/DK4KcodH.js";
3
+ import { I as f } from "./chunk/BqufsN8i.js";
2
4
  export {
3
- e as default
5
+ e as InputGroup,
6
+ s as InputNumber,
7
+ u as InputPassword,
8
+ o as InputSearch,
9
+ f as InputTag,
10
+ I as InputTextArea,
11
+ t as default,
12
+ n as formatValue
4
13
  };
package/InputNumber.js CHANGED
@@ -5,10 +5,10 @@ import "@unicom-cloud/icons/IconUiPlus";
5
5
  import "@unicom-cloud/icons/IconUiUp";
6
6
  import "lodash/isNumber";
7
7
  import "react";
8
- import "./chunk/C5S_amaH.js";
8
+ import "./chunk/DlLL5JQo.js";
9
9
  import "./hooks/useMergeProps.js";
10
- import { a as b } from "./chunk/Bn2-vqTg.js";
11
- import "./chunk/BzPkh4Zv.js";
10
+ import { a as b } from "./chunk/DK4KcodH.js";
11
+ import "./chunk/BAWsPQBM.js";
12
12
  import "./chunk/C2lIz2F9.js";
13
13
  import "./utils/omit.js";
14
14
  export {
package/InputTag.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as t } from "./chunk/CD7dGcUa.js";
1
+ import { I as t } from "./chunk/BqufsN8i.js";
2
2
  export {
3
3
  t as default
4
4
  };
package/Layout.js CHANGED
@@ -1,54 +1,58 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import g from "lodash/get";
3
- import S, { forwardRef as f, useContext as p, useState as w } from "react";
4
- import { d as u } from "./chunk/C5S_amaH.js";
2
+ import L from "lodash/get";
3
+ import S, { forwardRef as u, useContext as f, useState as w } from "react";
4
+ import { d as p } from "./chunk/DlLL5JQo.js";
5
5
  import { useMergeProps as M } from "./hooks/useMergeProps.js";
6
- import { y as d } from "./chunk/BzPkh4Zv.js";
7
- import { S as b } from "./chunk/DbPYtS7-.js";
6
+ import { y as d } from "./chunk/BAWsPQBM.js";
7
+ import { S as b } from "./chunk/DQDkV47j.js";
8
8
  function j(o, s) {
9
- const { className: n, children: e, ...r } = o, { getPrefixCls: a } = p(u), t = a("layout-content"), c = d(t, n);
9
+ const { className: n, children: e, ...r } = o, { getPrefixCls: a } = f(p), t = a("layout-content"), c = d(t, n);
10
10
  return /* @__PURE__ */ l("main", { ref: s, ...r, className: c, children: e });
11
11
  }
12
- const L = f(j);
13
- L.displayName = "LayoutContent";
12
+ const g = u(j);
13
+ g.displayName = "LayoutContent";
14
14
  function B(o, s) {
15
- const { className: n, children: e, ...r } = o, { getPrefixCls: a } = p(u), t = a("layout-footer"), c = d(t, n);
15
+ const { className: n, children: e, ...r } = o, { getPrefixCls: a } = f(p), t = a("layout-footer"), c = d(t, n);
16
16
  return /* @__PURE__ */ l("footer", { ref: s, ...r, className: c, children: e });
17
17
  }
18
- const h = f(B);
18
+ const h = u(B);
19
19
  h.displayName = "LayoutFooter";
20
20
  function E(o, s) {
21
- const { getPrefixCls: n } = p(u), { className: e, children: r, ...a } = o, t = n("layout-header"), c = d(t, e);
21
+ const { getPrefixCls: n } = f(p), { className: e, children: r, ...a } = o, t = n("layout-header"), c = d(t, e);
22
22
  return /* @__PURE__ */ l("header", { ref: s, ...a, className: c, children: r });
23
23
  }
24
- const P = f(E);
25
- P.displayName = "LayoutHeader";
24
+ const F = u(E);
25
+ F.displayName = "LayoutHeader";
26
26
  function G(o, s) {
27
- const { getPrefixCls: n, componentConfig: e } = p(u), r = M(
27
+ const { getPrefixCls: n, componentConfig: e } = f(p), r = M(
28
28
  o,
29
29
  {},
30
30
  e == null ? void 0 : e.Layout
31
- ), { className: a, hasSider: t, children: c, ...F } = r, [y, N] = w([]), x = n("layout"), _ = d(
31
+ ), { className: a, hasSider: t, children: c, ...P } = r, [y, N] = w([]), x = n("layout"), H = d(
32
32
  x,
33
33
  {
34
34
  [`${x}-has-sider`]: typeof t == "boolean" ? t : y.length > 0
35
35
  },
36
36
  a
37
37
  );
38
- return /* @__PURE__ */ l("section", { ref: s, ...F, className: _, children: S.Children.map(c, (i) => {
39
- const H = g(i, "type.__PQB_SIGN__") || g(i, "props.sign");
40
- return i && H === "sider" ? S.cloneElement(i, {
38
+ return /* @__PURE__ */ l("section", { ref: s, ...P, className: H, children: S.Children.map(c, (i) => {
39
+ const _ = L(i, "type.__PQB_SIGN__") || L(i, "props.sign");
40
+ return i && _ === "sider" ? S.cloneElement(i, {
41
41
  onSiderMount: (C) => N([...y, C]),
42
42
  onSiderUnmount: (C) => N(y.filter((R) => R !== C))
43
43
  }) : i;
44
44
  }) });
45
45
  }
46
- const I = f(G), m = I;
46
+ const I = u(G), m = I;
47
47
  m.displayName = "Layout";
48
48
  m.Sider = b;
49
- m.Header = P;
49
+ m.Header = F;
50
50
  m.Footer = h;
51
- m.Content = L;
51
+ m.Content = g;
52
52
  export {
53
+ g as LayoutContent,
54
+ h as LayoutFooter,
55
+ F as LayoutHeader,
56
+ b as LayoutSider,
53
57
  m as default
54
58
  };
package/Link.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsxs as C, jsx as c } from "react/jsx-runtime";
2
2
  import $ from "@unicom-cloud/icons/IconUiLink";
3
3
  import { forwardRef as g, useContext as L } from "react";
4
- import { d as P } from "./chunk/C5S_amaH.js";
4
+ import { d as P } from "./chunk/DlLL5JQo.js";
5
5
  import { useKeyboardEvent as w } from "./hooks/useKeyboardEvent.js";
6
6
  import { useMergeProps as K } from "./hooks/useMergeProps.js";
7
- import { y as N } from "./chunk/BzPkh4Zv.js";
7
+ import { y as N } from "./chunk/BAWsPQBM.js";
8
8
  const D = {
9
9
  hoverable: !0
10
10
  };
package/List.js CHANGED
@@ -1,22 +1,22 @@
1
- import { jsxs as N, jsx as s, Fragment as At } from "react/jsx-runtime";
1
+ import { jsxs as C, jsx as s, Fragment as At } from "react/jsx-runtime";
2
2
  import F, { useContext as K, useRef as R, useState as J, useImperativeHandle as Dt, useCallback as Ht, createElement as Tt } from "react";
3
3
  import Vt from "lodash/throttle";
4
- import { d as Q } from "./chunk/C5S_amaH.js";
5
- import { R as mt, C as dt } from "./chunk/BcwdVUDs.js";
4
+ import { d as Q } from "./chunk/DlLL5JQo.js";
5
+ import { R as mt, C as dt } from "./chunk/Bqk6yh16.js";
6
6
  import { useMergeProps as ht } from "./hooks/useMergeProps.js";
7
- import { P as _t } from "./chunk/B5gIo-hD.js";
7
+ import { P as _t } from "./chunk/CH1UUxsg.js";
8
8
  import kt from "./Spin.js";
9
- import { y as M } from "./chunk/BzPkh4Zv.js";
9
+ import { y as M } from "./chunk/BAWsPQBM.js";
10
10
  import Bt from "./utils/omit.js";
11
11
  import { pickDataAttributes as Gt } from "./utils/pick.js";
12
12
  import Ot from "./utils/scrollIntoView.js";
13
13
  import { V as Ut } from "./chunk/D3NFxdmG.js";
14
14
  function Wt(w, S) {
15
- const { getPrefixCls: z } = K(Q), { className: y, avatar: $, title: v, description: d, ...f } = w, m = `${z("list")}-item-meta`, x = !!$, j = !!(v || d);
16
- return /* @__PURE__ */ N("div", { ref: S, ...f, className: M(m, y), children: [
17
- x && /* @__PURE__ */ s("div", { className: `${m}-avatar`, children: $ }),
18
- j && /* @__PURE__ */ N("div", { className: `${m}-content`, children: [
19
- v && /* @__PURE__ */ s("div", { className: `${m}-title`, children: v }),
15
+ const { getPrefixCls: z } = K(Q), { className: y, avatar: N, title: $, description: d, ...f } = w, m = `${z("list")}-item-meta`, x = !!N, j = !!($ || d);
16
+ return /* @__PURE__ */ C("div", { ref: S, ...f, className: M(m, y), children: [
17
+ x && /* @__PURE__ */ s("div", { className: `${m}-avatar`, children: N }),
18
+ j && /* @__PURE__ */ C("div", { className: `${m}-content`, children: [
19
+ $ && /* @__PURE__ */ s("div", { className: `${m}-title`, children: $ }),
20
20
  d && /* @__PURE__ */ s("div", { className: `${m}-description`, children: d })
21
21
  ] })
22
22
  ] });
@@ -27,16 +27,16 @@ const Zt = {
27
27
  actionLayout: "horizontal"
28
28
  };
29
29
  function qt(w, S) {
30
- const { getPrefixCls: z, componentConfig: y } = K(Q), $ = ht(
30
+ const { getPrefixCls: z, componentConfig: y } = K(Q), N = ht(
31
31
  w,
32
32
  Zt,
33
33
  y && y["List.Item"]
34
- ), { children: v, className: d, actions: f, extra: c, actionLayout: m, ...x } = $, h = `${z("list")}-item`, L = [], p = [];
35
- F.Children.forEach(v, (t) => {
34
+ ), { children: $, className: d, actions: f, extra: c, actionLayout: m, ...x } = N, h = `${z("list")}-item`, L = [], p = [];
35
+ F.Children.forEach($, (t) => {
36
36
  t && t.type && t.type === X ? L.push(t) : p.push(t);
37
37
  });
38
38
  const V = p.length ? /* @__PURE__ */ s("div", { className: `${h}-content`, children: p }) : null, A = c ? /* @__PURE__ */ s("div", { className: `${h}-extra-content`, children: c }) : null, b = f && f.length ? /* @__PURE__ */ s("div", { className: `${h}-action`, children: f.map((t, _) => /* @__PURE__ */ s("li", { children: t }, `${h}-action-${_}`)) }) : null;
39
- return /* @__PURE__ */ N(
39
+ return /* @__PURE__ */ C(
40
40
  "div",
41
41
  {
42
42
  role: "listitem",
@@ -44,7 +44,7 @@ function qt(w, S) {
44
44
  className: M(h, d),
45
45
  ...x,
46
46
  children: [
47
- /* @__PURE__ */ N("div", { className: `${h}-main`, children: [
47
+ /* @__PURE__ */ C("div", { className: `${h}-main`, children: [
48
48
  L,
49
49
  V,
50
50
  m === "vertical" ? b : null
@@ -69,8 +69,8 @@ function Xt(w, S) {
69
69
  const {
70
70
  getPrefixCls: z,
71
71
  loadingElement: y,
72
- size: $,
73
- renderEmpty: v,
72
+ size: N,
73
+ renderEmpty: $,
74
74
  componentConfig: d,
75
75
  rtl: f
76
76
  } = K(Q), c = ht(
@@ -103,7 +103,7 @@ function Xt(w, S) {
103
103
  listRef: Lt,
104
104
  onReachBottom: E,
105
105
  onListScroll: H
106
- } = c, Pt = V || (Kt.indexOf($) > -1 ? $ : "default"), e = z("list"), B = R(null), G = R(null), P = R(null), O = R(null), U = R(!0), [It, wt] = J(
106
+ } = c, Pt = V || (Kt.indexOf(N) > -1 ? N : "default"), e = z("list"), B = R(null), G = R(null), P = R(null), O = R(null), U = R(!0), [It, wt] = J(
107
107
  t && typeof t == "object" && (t.pageSize || t.defaultPageSize) || pt
108
108
  ), [zt, xt] = J(
109
109
  t && typeof t == "object" && (t.current || t.defaultCurrent) || ft
@@ -123,7 +123,7 @@ function Xt(w, S) {
123
123
  },
124
124
  getRootDOMNode: () => B.current
125
125
  }));
126
- const Z = c.virtualListProps ? c.virtualListProps : c.height ? { height: c.height } : void 0, C = {
126
+ const Z = c.virtualListProps ? c.virtualListProps : c.height ? { height: c.height } : void 0, v = {
127
127
  pageSize: It,
128
128
  current: zt,
129
129
  total: p.length > 0 ? p.length : rt,
@@ -137,9 +137,9 @@ function Xt(w, S) {
137
137
  xt(n), t && typeof t == "object" && ((o = t.onChange) == null || o.call(t, n, l));
138
138
  }
139
139
  };
140
- C.current = Math.min(
141
- C.current,
142
- Math.ceil(C.total / C.pageSize)
140
+ v.current = Math.min(
141
+ v.current,
142
+ Math.ceil(v.total / v.pageSize)
143
143
  );
144
144
  const nt = !!(H || E), ot = Ht(
145
145
  Vt(() => {
@@ -155,7 +155,7 @@ function Xt(w, S) {
155
155
  [et, W, H, E]
156
156
  ), Et = () => {
157
157
  const n = (i) => {
158
- const { current: u, pageSize: a } = C, r = (u - 1) * a;
158
+ const { current: u, pageSize: a } = v, r = (u - 1) * a;
159
159
  return t && i.length > r ? i.slice(r, r + a) : i;
160
160
  }, l = (i, u) => {
161
161
  const a = n(i);
@@ -208,19 +208,19 @@ function Xt(w, S) {
208
208
  u ? u(r, T) : r
209
209
  )) });
210
210
  };
211
- return p.length > 0 && k ? g ? o(p, k) : l(p, k) : rt > 0 ? g ? o(L) : l(L) : D ? null : yt || v("List");
211
+ return p.length > 0 && k ? g ? o(p, k) : l(p, k) : rt > 0 ? g ? o(L) : l(L) : D ? null : yt || $("List");
212
212
  }, st = () => {
213
213
  const n = Et(), l = Z && Z.threshold !== null && Array.isArray(n), o = t ? /* @__PURE__ */ s(
214
214
  _t,
215
215
  {
216
- ...C,
216
+ ...v,
217
217
  className: M(
218
218
  `${e}-pagination`,
219
- C && C.className
219
+ v.className
220
220
  )
221
221
  }
222
222
  ) : null, i = tt ? o : null, u = tt ? null : o, a = D != null ? /* @__PURE__ */ s("div", { className: `${e}-item ${e}-scroll-loading`, children: D }) : null;
223
- return /* @__PURE__ */ N(
223
+ return /* @__PURE__ */ C(
224
224
  "div",
225
225
  {
226
226
  ref: (r) => {
@@ -233,7 +233,7 @@ function Xt(w, S) {
233
233
  h
234
234
  ),
235
235
  children: [
236
- /* @__PURE__ */ N(
236
+ /* @__PURE__ */ C(
237
237
  "div",
238
238
  {
239
239
  ...Gt(c),
@@ -269,7 +269,7 @@ function Xt(w, S) {
269
269
  ...Z,
270
270
  children: (r) => r
271
271
  }
272
- ) }) : /* @__PURE__ */ N(
272
+ ) }) : /* @__PURE__ */ C(
273
273
  "div",
274
274
  {
275
275
  role: "list",
@@ -281,7 +281,7 @@ function Xt(w, S) {
281
281
  ]
282
282
  }
283
283
  ),
284
- A || i ? /* @__PURE__ */ N("div", { className: `${e}-footer`, children: [
284
+ A || i ? /* @__PURE__ */ C("div", { className: `${e}-footer`, children: [
285
285
  A,
286
286
  i
287
287
  ] }) : null
@@ -309,5 +309,6 @@ const gt = F.forwardRef(
309
309
  gt.displayName = "List";
310
310
  gt.Item = Y;
311
311
  export {
312
+ Y as ListItem,
312
313
  gt as default
313
314
  };
package/Mentions.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsxs as P, jsx as M } from "react/jsx-runtime";
2
2
  import q, { useContext as z, useRef as T, useState as G, useEffect as J } from "react";
3
- import { d as Q } from "./chunk/C5S_amaH.js";
3
+ import { d as Q } from "./chunk/DlLL5JQo.js";
4
4
  import { useMergeProps as X } from "./hooks/useMergeProps.js";
5
5
  import { useMergeValue as Y } from "./hooks/useMergeValue.js";
6
- import { I as Z } from "./chunk/Bn2-vqTg.js";
7
- import { S as _ } from "./chunk/Co3idurS.js";
8
- import { y as ee } from "./chunk/BzPkh4Zv.js";
6
+ import { I as Z } from "./chunk/DK4KcodH.js";
7
+ import { S as _ } from "./chunk/BqGtwxTi.js";
8
+ import { y as ee } from "./chunk/BAWsPQBM.js";
9
9
  import { d as V, E as S, c as w, A as N } from "./chunk/C2lIz2F9.js";
10
10
  function te(i, { split: t }) {
11
11
  return !t || i.indexOf(t) === -1;
package/Menu.js CHANGED
@@ -1,4 +1,9 @@
1
- import { M as e } from "./chunk/JpKOcIfl.js";
1
+ import { M as u } from "./chunk/CWgltRVL.js";
2
+ import { I as o, a as t, S as M, S as m } from "./chunk/CWgltRVL.js";
2
3
  export {
3
- e as default
4
+ o as MenuItem,
5
+ t as MenuItemGroup,
6
+ M as MenuSubMenu,
7
+ m as SubMenu,
8
+ u as default
4
9
  };
package/Message.js CHANGED
@@ -2,10 +2,11 @@ import "react/jsx-runtime";
2
2
  import "./chunk/CLBavO5c.js";
3
3
  import "lodash/isNumber";
4
4
  import "lodash/isUndefined";
5
- import { M as d } from "./chunk/C5S_amaH.js";
5
+ import { M as u, u as f } from "./chunk/DlLL5JQo.js";
6
6
  import "./NotificationBase.js";
7
- import "./chunk/BzPkh4Zv.js";
7
+ import "./chunk/BAWsPQBM.js";
8
8
  import "./utils/reactDOM.js";
9
9
  export {
10
- d as default
10
+ u as default,
11
+ f as useMessage
11
12
  };
package/Modal.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as t } from "./chunk/CfZWOhnc.js";
1
+ import { E as t } from "./chunk/BS09tn7B.js";
2
2
  export {
3
3
  t as default
4
4
  };