@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,33 +1,33 @@
1
1
  import { jsx as a, jsxs as ie, Fragment as re } from "react/jsx-runtime";
2
2
  import le from "lodash/merge";
3
- import R, { forwardRef as ae, useContext as ce, useRef as W, useState as q, useEffect as pe, useImperativeHandle as me } from "react";
4
- import { a as de } from "../chunk/CQvM33Vg.js";
3
+ import O, { forwardRef as ae, useContext as ce, useRef as q, useState as F, useEffect as pe, useImperativeHandle as me } from "react";
4
+ import { a as de } from "../chunk/Cplu5dtQ.js";
5
5
  import { u as fe } from "../chunk/CXPOj2uy.js";
6
6
  import { u as ue } from "../chunk/a3hR6zLw.js";
7
7
  import he from "../popover/index.js";
8
8
  import Ee from "../tooltip/index.js";
9
- import F from "@unicom-cloud/utils/class-name";
9
+ import L from "@unicom-cloud/utils/class-name";
10
10
  import "../chunk/ClM74To2.js";
11
11
  import { m as ge } from "../chunk/B5RFT17G.js";
12
12
  import { o as xe } from "../chunk/BKKEev13.js";
13
- import { r as Ce } from "../chunk/CIRG541s.js";
14
- import Te from "../utils/throttleByRaf.js";
13
+ import { r as Te } from "../chunk/CIRG541s.js";
14
+ import Ce from "../utils/throttleByRaf.js";
15
15
  import Ne from "./EditContent.js";
16
16
  import Se from "./Operations.js";
17
17
  import be from "./useCssEllipsis.js";
18
- import we, { MEASURE_STATUS as O } from "./useEllipsis.js";
19
- import { isPlainObject as C, isUndefined as L } from "@unicom-cloud/utils/is";
18
+ import we, { MEASURE_STATUS as _ } from "./useEllipsis.js";
19
+ import { isPlainObject as T, isUndefined as V } from "@unicom-cloud/utils/is";
20
20
  function $e(n, f) {
21
21
  const {
22
22
  type: c,
23
23
  bold: b,
24
- disabled: T,
24
+ disabled: C,
25
25
  mark: u,
26
26
  underline: N,
27
27
  delete: p,
28
28
  code: w
29
29
  } = n, l = [], h = [];
30
- return c && h.push(`${f}-${c}`), T && h.push(`${f}-disabled`), b && l.push("b"), N && l.push("u"), p && l.push("del"), w && l.push("code"), u && l.push("mark"), {
30
+ return c && h.push(`${f}-${c}`), C && h.push(`${f}-disabled`), b && l.push("b"), N && l.push("u"), p && l.push("del"), w && l.push("code"), u && l.push("mark"), {
31
31
  component: l,
32
32
  className: h
33
33
  };
@@ -36,62 +36,62 @@ function ke(n, f) {
36
36
  const {
37
37
  componentType: c,
38
38
  style: b,
39
- className: T,
39
+ className: C,
40
40
  children: u,
41
41
  editable: N,
42
42
  ellipsis: p,
43
43
  heading: w,
44
44
  blockquote: l,
45
45
  ...h
46
- } = n, _ = ce(de), { getPrefixCls: V, rtl: A } = _, i = V("typography"), I = W(), { component: S, className: M } = $e(n, i), [H, U] = q(!1), [G, J] = q(0), $ = C(N) ? N : {}, K = "editing" in $ ? $.editing : H, e = p ? {
46
+ } = n, A = ce(de), { getPrefixCls: $, rtl: I } = A, i = $ == null ? void 0 : $("typography"), M = q(), { component: S, className: U } = $e(n, i), [H, z] = F(!1), [G, J] = F(0), k = T(N) ? N : {}, K = "editing" in k ? k.editing : H, e = p ? {
47
47
  rows: 1,
48
48
  ellipsisStr: "...",
49
49
  cssEllipsis: !1,
50
- ...C(p) ? p : {}
51
- } : {}, Q = e.wrapper || R.Fragment, [r, X] = fe(!1, {
50
+ ...T(p) ? p : {}
51
+ } : {}, Q = e.wrapper || O.Fragment, [r, X] = fe(!1, {
52
52
  defaultValue: e.defaultExpanded,
53
53
  value: e.expanded
54
- }), { simpleEllipsis: k, ellipsisStyle: Y } = be(e), z = (t, o) => {
55
- const s = L(e.ellipsisStr) ? "..." : e.ellipsisStr, d = !L(e.suffix) && e.suffix;
54
+ }), { simpleEllipsis: y, ellipsisStyle: Y } = be(e), D = (t, o) => {
55
+ const s = V(e.ellipsisStr) ? "..." : e.ellipsisStr, d = !V(e.suffix) && e.suffix;
56
56
  return /* @__PURE__ */ ie(Q, { children: [
57
57
  t,
58
- o && !r && !k ? s : "",
58
+ o && !r && !y ? s : "",
59
59
  d,
60
60
  te(o)
61
61
  ] });
62
- }, { ellipsisNode: Z, isEllipsis: m, measureStatus: D } = we({
62
+ }, { ellipsisNode: Z, isEllipsis: m, measureStatus: j } = we({
63
63
  ...e,
64
64
  children: u,
65
65
  expanding: r,
66
66
  width: G,
67
- renderMeasureContent: z,
68
- simpleEllipsis: k || r
69
- }), ee = Te((t) => {
67
+ renderMeasureContent: D,
68
+ simpleEllipsis: y || r
69
+ }), ee = Ce((t) => {
70
70
  const { contentRect: o } = t == null ? void 0 : t[0];
71
71
  if (o) {
72
72
  const s = S.includes("code") ? o.width - 18 : o.width;
73
73
  [
74
- O.NO_NEED_ELLIPSIS,
75
- O.MEASURE_END
76
- ].includes(D) && J(s);
74
+ _.NO_NEED_ELLIPSIS,
75
+ _.MEASURE_END
76
+ ].includes(j) && J(s);
77
77
  }
78
- }), j = W(null);
78
+ }), B = q(null);
79
79
  pe(() => {
80
- const t = Ce([j.current], ee);
80
+ const t = Te([B.current], ee);
81
81
  return () => {
82
82
  t();
83
83
  };
84
- }, [j.current]);
84
+ }, [B.current]);
85
85
  function te(t) {
86
86
  return /* @__PURE__ */ a(re, { children: /* @__PURE__ */ a(
87
87
  Se,
88
88
  {
89
89
  ...n,
90
- setEditing: U,
90
+ setEditing: z,
91
91
  onClickExpand: oe,
92
92
  expanding: r,
93
93
  isEllipsis: t,
94
- currentContext: _
94
+ currentContext: A
95
95
  }
96
96
  ) });
97
97
  }
@@ -102,14 +102,14 @@ function ke(n, f) {
102
102
  ue(() => {
103
103
  var t;
104
104
  (t = e.onEllipsis) == null || t.call(e, m);
105
- }, [m]), me(f, () => I.current);
106
- function B(t, o, s, d = {}) {
105
+ }, [m]), me(f, () => M.current);
106
+ function W(t, o, s, d = {}) {
107
107
  let g = t;
108
- return o.forEach((P, y) => {
109
- const v = { className: `${i}-${P}` }, x = y === 0 ? d : {}, ne = C(s.mark) && s.mark.color ? { style: { backgroundColor: s.mark.color }, ...x } : { ...x };
110
- g = R.createElement(
111
- P,
112
- le({ ...ne }, v),
108
+ return o.forEach((v, P) => {
109
+ const R = { className: `${i}-${v}` }, x = P === 0 ? d : {}, ne = T(s.mark) && s.mark.color ? { style: { backgroundColor: s.mark.color }, ...x } : { ...x };
110
+ g = O.createElement(
111
+ v,
112
+ le({ ...ne }, R),
113
113
  g
114
114
  );
115
115
  }), g;
@@ -117,20 +117,20 @@ function ke(n, f) {
117
117
  let E;
118
118
  c === "Paragraph" ? E = l ? "blockquote" : "div" : c === "Title" ? E = `h${w}` : c === "Text" && (E = p ? "div" : "span");
119
119
  function se() {
120
- const t = ge(R.Children.toArray(u)), o = e.showTooltip, s = C(e.showTooltip) && e.showTooltip.type === "popover" ? "popover" : "tooltip", d = C(e.showTooltip) ? e.showTooltip.props || {} : {}, g = s === "popover" ? he : Ee, y = {
120
+ const t = ge(O.Children.toArray(u)), o = e.showTooltip, s = T(e.showTooltip) && e.showTooltip.type === "popover" ? "popover" : "tooltip", d = T(e.showTooltip) ? e.showTooltip.props || {} : {}, g = s === "popover" ? he : Ee, P = {
121
121
  style: b,
122
122
  ...m && !o && !r ? { title: t } : {}
123
- }, v = m && o && !r, x = /* @__PURE__ */ a(
123
+ }, R = m && o && !r, x = /* @__PURE__ */ a(
124
124
  E,
125
125
  {
126
- ref: I,
127
- className: F(
126
+ ref: M,
127
+ className: L(
128
128
  i,
129
- M,
130
- { [`${i}-rtl`]: A },
131
- T
129
+ U,
130
+ { [`${i}-rtl`]: I },
131
+ C
132
132
  ),
133
- ...y,
133
+ ...P,
134
134
  ...xe(h, [
135
135
  "spacing",
136
136
  "type",
@@ -148,9 +148,9 @@ function ke(n, f) {
148
148
  "setEditing",
149
149
  "forceShowExpand"
150
150
  ]),
151
- children: k && D !== O.INIT && !r && m ? B(
151
+ children: y && j !== _.INIT && !r && m ? W(
152
152
  // CSS folding style, need to wrap the text separately.
153
- z(
153
+ D(
154
154
  /* @__PURE__ */ a("span", { style: Y, children: u }),
155
155
  m
156
156
  ),
@@ -159,26 +159,26 @@ function ke(n, f) {
159
159
  // The simple-ellipsis class ensures that the ReactNode after the text is displayed correctly (no line breaks)
160
160
  // Need to act on the immediate parent node of the text
161
161
  { className: `${i}-simple-ellipsis` }
162
- ) : B(Z, S, n)
162
+ ) : W(Z, S, n)
163
163
  }
164
164
  );
165
- return v ? /* @__PURE__ */ a(g, { content: t, ...d, children: /* @__PURE__ */ a("span", { children: x }) }) : x;
165
+ return R ? /* @__PURE__ */ a(g, { content: t, ...d, children: /* @__PURE__ */ a("span", { children: x }) }) : x;
166
166
  }
167
167
  return K ? /* @__PURE__ */ a(
168
168
  Ne,
169
169
  {
170
170
  ref: f,
171
171
  ...n,
172
- className: F(
172
+ className: L(
173
173
  i,
174
- M,
175
- { [`${i}-rtl`]: A },
174
+ U,
175
+ { [`${i}-rtl`]: I },
176
176
  `${i}-${E}`,
177
- T
177
+ C
178
178
  ),
179
179
  prefixCls: i,
180
- setEditing: U,
181
- editableConfig: $
180
+ setEditing: z,
181
+ editableConfig: k
182
182
  }
183
183
  ) : se();
184
184
  }
@@ -1,6 +1,6 @@
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 "lodash/isEqualWith";
@@ -44,13 +44,13 @@ import "@unicom-cloud/utils/file/saveAs";
44
44
  import "@unicom-cloud/utils/screenfull";
45
45
  import "../utils/throttleByRaf.js";
46
46
  import "@unicom-cloud/utils/tree";
47
- import "@unicom-cloud/utils/is";
47
+ import "lodash/isFunction";
48
48
  import "uuid";
49
49
  import "../chunk/DEuVgCzp.js";
50
50
  import "../affix/index.js";
51
51
  import "../alert/index.js";
52
52
  import "../anchor/Anchor.js";
53
- import { E as or } from "../chunk/DLBfXSnU.js";
53
+ import { E as rr } from "../chunk/w221i0nK.js";
54
54
  import "../avatar/index.js";
55
55
  import "../back-top/index.js";
56
56
  import "../badge/index.js";
@@ -58,7 +58,7 @@ import "../breadcrumb/index.js";
58
58
  import "../button/index.js";
59
59
  import "../card/index.js";
60
60
  import "../carousel/index.js";
61
- import "../chunk/DEiyXzBZ.js";
61
+ import "../chunk/DfrB26fI.js";
62
62
  import "../comment/index.js";
63
63
  import "../copy/index.js";
64
64
  import "../date-picker/index.js";
@@ -74,8 +74,8 @@ import "../input/Input.js";
74
74
  import "../input-tag/InputTag.js";
75
75
  import "../layout/index.js";
76
76
  import "../link/index.js";
77
- import "../chunk/C5X4hOkx.js";
78
- import "../chunk/DYspELhF.js";
77
+ import "../chunk/D0338Pbq.js";
78
+ import "../chunk/DXDbeIai.js";
79
79
  import "../page-header/index.js";
80
80
  import "../popconfirm/index.js";
81
81
  import "../popover/index.js";
@@ -94,7 +94,7 @@ import "../statistic/index.js";
94
94
  import "../steps/index.js";
95
95
  import "../suspense-fallback-test/index.js";
96
96
  import "../switch/index.js";
97
- import "../chunk/BG7YGUsx.js";
97
+ import "../chunk/dKvAiKxr.js";
98
98
  import "../tag/index.js";
99
99
  import "../time-picker/index.js";
100
100
  import "../timeline/Timeline.js";
@@ -104,6 +104,7 @@ import "../upload/Upload.js";
104
104
  import "../verification-code/VerificationCode.js";
105
105
  import "../watermark/Watermark.js";
106
106
  import "../chunk/CIRG541s.js";
107
+ import "@unicom-cloud/utils/is";
107
108
  export {
108
- or as default
109
+ rr as default
109
110
  };
@@ -1,30 +1,30 @@
1
1
  import { jsx as t, jsxs as A, Fragment as F } from "react/jsx-runtime";
2
2
  import K from "@unicom-cloud/icons/IconUiEdit";
3
3
  import L from "lodash/isArray";
4
- import a from "lodash/isPlainObject";
4
+ import d from "lodash/isPlainObject";
5
5
  import { useEffect as U } from "react";
6
6
  import q from "../copy/index.js";
7
7
  import { u as z } from "../chunk/BYdIoY50.js";
8
8
  import B from "../tooltip/index.js";
9
- import { m as C } from "../chunk/B5RFT17G.js";
10
- function X(P) {
11
- var x, g, u, E, h;
9
+ import { m as T } from "../chunk/B5RFT17G.js";
10
+ function X(N) {
11
+ var u, E, g, h, b;
12
12
  const {
13
- children: d,
13
+ children: m,
14
14
  copyable: r,
15
15
  editable: i,
16
- ellipsis: m,
17
- expanding: T,
18
- setEditing: N,
19
- onClickExpand: c,
20
- forceShowExpand: k,
21
- isEllipsis: j,
22
- currentContext: v = {}
23
- } = P, l = z(), { getPrefixCls: I, locale: o } = v, s = I("typography"), p = a(m) ? m : {}, n = a(i) ? i : {}, f = L(p.expandNodes) ? p.expandNodes : [(x = o == null ? void 0 : o.Typography) == null ? void 0 : x.fold, (g = o == null ? void 0 : o.Typography) == null ? void 0 : g.unfold], y = (w) => {
24
- var b;
25
- (b = n.onStart) == null || b.call(n, C(d), w), N(!0);
26
- }, e = a(r) ? { ...r } : {};
27
- e.text === void 0 && (e.text = C(d));
16
+ ellipsis: c,
17
+ expanding: P,
18
+ setEditing: k,
19
+ onClickExpand: l,
20
+ forceShowExpand: j,
21
+ isEllipsis: v,
22
+ currentContext: I = {}
23
+ } = N, f = z(), { getPrefixCls: p, locale: o } = I, s = p == null ? void 0 : p("typography"), a = d(c) ? c : {}, n = d(i) ? i : {}, y = L(a.expandNodes) ? a.expandNodes : [(u = o == null ? void 0 : o.Typography) == null ? void 0 : u.fold, (E = o == null ? void 0 : o.Typography) == null ? void 0 : E.unfold], x = (w) => {
24
+ var C;
25
+ (C = n.onStart) == null || C.call(n, T(m), w), k(!0);
26
+ }, e = d(r) ? { ...r } : {};
27
+ e.text === void 0 && (e.text = T(m));
28
28
  const S = !!r && /* @__PURE__ */ t(
29
29
  q,
30
30
  {
@@ -35,35 +35,35 @@ function X(P) {
35
35
  ), $ = i && /* @__PURE__ */ t(
36
36
  B,
37
37
  {
38
- content: (u = o == null ? void 0 : o.Typography) == null ? void 0 : u.edit,
38
+ content: (g = o == null ? void 0 : o.Typography) == null ? void 0 : g.edit,
39
39
  ...n.tooltipProps,
40
40
  children: /* @__PURE__ */ t(
41
41
  "span",
42
42
  {
43
43
  tabIndex: 0,
44
- "aria-label": (E = o == null ? void 0 : o.Typography) == null ? void 0 : E.edit,
44
+ "aria-label": (h = o == null ? void 0 : o.Typography) == null ? void 0 : h.edit,
45
45
  role: "button",
46
46
  className: `${s}-operation-edit`,
47
- onClick: y,
48
- ...l({
49
- onPressEnter: y
47
+ onClick: x,
48
+ ...f({
49
+ onPressEnter: x
50
50
  }),
51
51
  children: /* @__PURE__ */ t(K, {})
52
52
  }
53
53
  )
54
54
  }
55
- ), O = k || p.expandable && j ? /* @__PURE__ */ t(
55
+ ), O = j || a.expandable && v ? /* @__PURE__ */ t(
56
56
  "a",
57
57
  {
58
58
  className: `${s}-operation-expand`,
59
- onClick: c,
59
+ onClick: l,
60
60
  role: "button",
61
61
  tabIndex: 0,
62
- "aria-label": (h = o == null ? void 0 : o.Typography) == null ? void 0 : h.unfold,
63
- ...l({
64
- onPressEnter: c
62
+ "aria-label": (b = o == null ? void 0 : o.Typography) == null ? void 0 : b.unfold,
63
+ ...f({
64
+ onPressEnter: l
65
65
  }),
66
- children: T ? f[0] : f[1]
66
+ children: P ? y[0] : y[1]
67
67
  }
68
68
  ) : null;
69
69
  return U(() => () => {
@@ -1,24 +1,24 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as p, useContext as c } from "react";
3
- import { a as f } from "../chunk/CQvM33Vg.js";
3
+ import { a as f } from "../chunk/Cplu5dtQ.js";
4
4
  import i from "@unicom-cloud/utils/class-name";
5
5
  import l from "./Base.js";
6
- function g(a, s) {
7
- const { spacing: r = "default", className: o } = a, { getPrefixCls: e } = c(f), t = e("typography"), m = r === "close" ? i(`${t}-spacing-close`, o) : o;
6
+ function g(o, r) {
7
+ const { spacing: t = "default", className: s } = o, { getPrefixCls: a } = c(f), e = a == null ? void 0 : a("typography"), m = t === "close" ? i(`${e}-spacing-close`, s) : s;
8
8
  return /* @__PURE__ */ n(
9
9
  l,
10
10
  {
11
- ...a,
12
- ref: s,
11
+ ...o,
12
+ ref: r,
13
13
  componentType: "Paragraph",
14
14
  className: m
15
15
  }
16
16
  );
17
17
  }
18
- const x = p(
18
+ const N = p(
19
19
  g
20
20
  );
21
- x.displayName = "Paragraph";
21
+ N.displayName = "Paragraph";
22
22
  export {
23
- x as default
23
+ N as default
24
24
  };
@@ -1,13 +1,13 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as c, useContext as l } from "react";
3
- import { a as f } from "../chunk/CQvM33Vg.js";
4
- import i from "@unicom-cloud/utils/class-name";
5
- function y(o, s) {
6
- const { getPrefixCls: a } = l(f), t = a("typography"), { className: r, style: e, children: p } = o, m = i(t, r);
3
+ import { a as y } from "../chunk/Cplu5dtQ.js";
4
+ import f from "@unicom-cloud/utils/class-name";
5
+ function i(a, s) {
6
+ const { getPrefixCls: o } = l(y), t = o == null ? void 0 : o("typography"), { className: r, style: e, children: p } = a, m = f(t, r);
7
7
  return /* @__PURE__ */ n("article", { ref: s, style: e, className: m, children: p });
8
8
  }
9
- const g = c(y);
10
- g.displayName = "Typography";
9
+ const N = c(i);
10
+ N.displayName = "Typography";
11
11
  export {
12
- g as default
12
+ N as default
13
13
  };
@@ -1,4 +1,4 @@
1
- import { E as o, w as t } from "../chunk/DLBfXSnU.js";
1
+ import { E as o, w as t } from "../chunk/w221i0nK.js";
2
2
  import { default as f } from "./Paragraph.js";
3
3
  import { default as l } from "./Text.js";
4
4
  import { default as T } from "./Title.js";
@@ -1,108 +1,108 @@
1
- import { jsx as r, jsxs as x } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as x } from "react/jsx-runtime";
2
2
  import y from "@unicom-cloud/icons/IconUiPlus";
3
3
  import A from "@unicom-cloud/icons/IconUiUpload";
4
4
  import C, { forwardRef as G, useContext as K, useState as U, useEffect as L } from "react";
5
5
  import O from "../button/index.js";
6
- import { a as R } from "../chunk/CQvM33Vg.js";
6
+ import { a as R } from "../chunk/Cplu5dtQ.js";
7
7
  import { u as B } from "../chunk/BYdIoY50.js";
8
8
  import I from "@unicom-cloud/utils/class-name";
9
9
  import { loopDirectory as H, getFiles as S } from "./util.js";
10
10
  const V = (e, T) => {
11
- const k = B(), { locale: l } = K(R), [c, g] = U(!1), [s, f] = U(0), {
11
+ const k = B(), { locale: t } = K(R), [l, s] = U(!1), [o, f] = U(0), {
12
12
  tip: N,
13
13
  children: m,
14
- disabled: n,
14
+ disabled: d,
15
15
  drag: w,
16
16
  listType: F,
17
- prefixCls: a,
17
+ prefixCls: i,
18
18
  accept: E,
19
19
  multiple: P
20
20
  } = e, $ = {
21
- disabled: n
21
+ disabled: d
22
22
  };
23
23
  return L(() => {
24
24
  f(0);
25
- }, [c]), m === null ? null : /* @__PURE__ */ r(
25
+ }, [l]), m === null ? null : /* @__PURE__ */ a(
26
26
  "div",
27
27
  {
28
- className: `${a}-trigger`,
29
- onClick: n ? void 0 : e.onClick,
28
+ className: `${i}-trigger`,
29
+ onClick: d ? void 0 : e.onClick,
30
30
  ...k({
31
31
  onPressEnter: () => {
32
- var t;
33
- !n && ((t = e.onClick) == null || t.call(e));
32
+ var r;
33
+ !d && ((r = e.onClick) == null || r.call(e));
34
34
  }
35
35
  }),
36
36
  ref: T,
37
37
  onDragEnter: () => {
38
- f(s + 1);
38
+ f(o + 1);
39
39
  },
40
- onDragLeave: (t) => {
41
- var i;
42
- t.preventDefault(), s === 0 ? (g(!1), !n && ((i = e.onDragLeave) == null || i.call(e, t))) : f(s - 1);
40
+ onDragLeave: (r) => {
41
+ var n;
42
+ r.preventDefault(), o === 0 ? (s(!1), !d && ((n = e.onDragLeave) == null || n.call(e, r))) : f(o - 1);
43
43
  },
44
- onDrop: (t) => {
45
- var i, b;
46
- if (t.preventDefault(), !n && e.drag !== !1) {
47
- if (g(!1), e.directory)
48
- H(t.dataTransfer.items, E, (u) => {
49
- var d;
50
- (d = e.onDragFiles) == null || d.call(e, u);
44
+ onDrop: (r) => {
45
+ var n, b;
46
+ if (r.preventDefault(), !d && e.drag !== !1) {
47
+ if (s(!1), e.directory)
48
+ H(r.dataTransfer.items, E, (u) => {
49
+ var c;
50
+ (c = e.onDragFiles) == null || c.call(e, u);
51
51
  });
52
52
  else {
53
- const u = [].slice.call(t.dataTransfer.items || []).reduce((D, o, j) => {
54
- if (o.webkitGetAsEntry) {
55
- const h = o.webkitGetAsEntry();
53
+ const u = [].slice.call(r.dataTransfer.items || []).reduce((D, g, j) => {
54
+ if (g.webkitGetAsEntry) {
55
+ const h = g.webkitGetAsEntry();
56
56
  return h != null && h.isDirectory ? [...D, j] : D;
57
57
  }
58
- }, []), d = [].slice.call(t.dataTransfer.files || []).filter((D, o) => !u.includes(o)), v = S(d, E);
59
- v.length > 0 && ((i = e.onDragFiles) == null || i.call(e, P ? v : v.slice(0, 1)));
58
+ }, []), c = [].slice.call(r.dataTransfer.files || []).filter((D, g) => !u.includes(g)), v = S(c, E);
59
+ v.length > 0 && ((n = e.onDragFiles) == null || n.call(e, P ? v : v.slice(0, 1)));
60
60
  }
61
- (b = e.onDrop) == null || b.call(e, t);
61
+ (b = e.onDrop) == null || b.call(e, r);
62
62
  }
63
63
  },
64
- onDragOver: (t) => {
65
- var i;
66
- t.preventDefault(), !n && !c && (g(!0), (i = e.onDragOver) == null || i.call(e, t));
64
+ onDragOver: (r) => {
65
+ var n;
66
+ r.preventDefault(), !d && !l && (s(!0), (n = e.onDragOver) == null || n.call(e, r));
67
67
  },
68
- children: C.isValidElement(m) ? /* @__PURE__ */ r(
68
+ children: C.isValidElement(m) ? /* @__PURE__ */ a(
69
69
  "div",
70
70
  {
71
- className: I({ [`${a}-trigger-custom-active`]: c }),
71
+ className: I({ [`${i}-trigger-custom-active`]: l }),
72
72
  children: C.cloneElement(m, $)
73
73
  }
74
- ) : F === "picture-card" ? /* @__PURE__ */ r("div", { className: `${a}-trigger-picture-wrapper`, children: /* @__PURE__ */ r(
74
+ ) : F === "picture-card" ? /* @__PURE__ */ a("div", { className: `${i}-trigger-picture-wrapper`, children: /* @__PURE__ */ a(
75
75
  "div",
76
76
  {
77
- className: `${a}-trigger-picture`,
77
+ className: `${i}-trigger-picture`,
78
78
  tabIndex: 0,
79
- "aria-label": l.Upload.upload,
80
- children: /* @__PURE__ */ r("div", { className: `${a}-trigger-picture-text`, children: /* @__PURE__ */ r(y, {}) })
79
+ "aria-label": t == null ? void 0 : t.Upload.upload,
80
+ children: /* @__PURE__ */ a("div", { className: `${i}-trigger-picture-text`, children: /* @__PURE__ */ a(y, {}) })
81
81
  }
82
82
  ) }) : w ? /* @__PURE__ */ x(
83
83
  "div",
84
84
  {
85
- className: I(`${a}-trigger-drag`, {
86
- [`${a}-trigger-drag-active`]: c
85
+ className: I(`${i}-trigger-drag`, {
86
+ [`${i}-trigger-drag-active`]: l
87
87
  }),
88
88
  tabIndex: 0,
89
- "aria-label": l.Upload.drag,
89
+ "aria-label": t == null ? void 0 : t.Upload.drag,
90
90
  children: [
91
- /* @__PURE__ */ r(y, {}),
92
- /* @__PURE__ */ r("p", { className: `${a}-trigger-drag-text`, children: c ? l.Upload.dragHover : l.Upload.drag }),
93
- N && /* @__PURE__ */ r("div", { className: `${a}-trigger-tip`, children: N })
91
+ /* @__PURE__ */ a(y, {}),
92
+ /* @__PURE__ */ a("p", { className: `${i}-trigger-drag-text`, children: l ? t == null ? void 0 : t.Upload.dragHover : t == null ? void 0 : t.Upload.drag }),
93
+ N && /* @__PURE__ */ a("div", { className: `${i}-trigger-tip`, children: N })
94
94
  ]
95
95
  }
96
96
  ) : /* @__PURE__ */ x(
97
97
  O,
98
98
  {
99
99
  ...$,
100
- "aria-label": l.Upload.upload,
100
+ "aria-label": t == null ? void 0 : t.Upload.upload,
101
101
  type: "primary",
102
- className: `${a}-trigger-with-icon`,
102
+ className: `${i}-trigger-with-icon`,
103
103
  children: [
104
- /* @__PURE__ */ r(A, {}),
105
- l.Upload.upload
104
+ /* @__PURE__ */ a(A, {}),
105
+ t == null ? void 0 : t.Upload.upload
106
106
  ]
107
107
  }
108
108
  )