@unicom-cloud/ui 0.8.64 → 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 (136) 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 +2 -2
  26. package/Empty.js +2 -2
  27. package/Form.js +4 -4
  28. package/Grid.js +3 -3
  29. package/Icon.js +2 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +3 -3
  33. package/InputNumber.js +3 -3
  34. package/InputTag.js +1 -1
  35. package/Layout.js +3 -3
  36. package/Link.js +2 -2
  37. package/List.js +30 -30
  38. package/Mentions.js +4 -4
  39. package/Menu.js +2 -2
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +2 -2
  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 +2 -2
  52. package/Rate.js +2 -2
  53. package/ResizeBox.js +155 -154
  54. package/Result.js +2 -2
  55. package/Select.js +2 -2
  56. package/SelectView.js +7 -7
  57. package/Skeleton.js +2 -2
  58. package/Slider.js +5 -5
  59. package/Space.js +2 -2
  60. package/Spin.js +2 -2
  61. package/Statistic.js +2 -2
  62. package/Steps.js +2 -2
  63. package/Switch.js +3 -3
  64. package/Table.js +5 -5
  65. package/Tabs.js +4 -4
  66. package/Tag.js +2 -2
  67. package/TimePicker.js +4 -4
  68. package/Timeline.js +2 -2
  69. package/Tooltip.js +2 -2
  70. package/Transfer.js +4 -4
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +2 -2
  73. package/Trigger.js +43 -42
  74. package/Typography.js +1 -1
  75. package/Upload.js +4 -5
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +5 -3
  78. package/Watermark.js +1 -1
  79. package/chunk/{-IELMT_x.js → 1GQdnTJp.js} +2 -2
  80. package/chunk/BAWsPQBM.js +11 -0
  81. package/chunk/{BJSjbYSN.js → BS09tn7B.js} +2 -2
  82. package/chunk/{oR9TkA35.js → BUCEs557.js} +2 -2
  83. package/chunk/BqGtwxTi.js +777 -0
  84. package/chunk/{CtUTlwlQ.js → Bqk6yh16.js} +2 -2
  85. package/chunk/{DPJEIBKZ.js → BqufsN8i.js} +4 -4
  86. package/chunk/{CA69nxbj.js → BtlvlGQN.js} +2 -2
  87. package/chunk/{CAhODOfT.js → CF6p9R93.js} +2 -2
  88. package/chunk/{D-oHJail.js → CGZ0In1p.js} +178 -175
  89. package/chunk/{BHnRi7Xh.js → CH1UUxsg.js} +4 -4
  90. package/chunk/{Yvz-hPQB.js → CIlGCedk.js} +3 -3
  91. package/chunk/{tW_FgNSv.js → CPcm9Cm5.js} +2 -2
  92. package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
  93. package/chunk/{BtIG250j.js → CWgltRVL.js} +40 -40
  94. package/chunk/{BCxoi4Kf.js → CsbCHnFk.js} +2 -2
  95. package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
  96. package/chunk/{QlYCEvCX.js → DG-epQqF.js} +2 -2
  97. package/chunk/{CxpFYX4B.js → DIx0qmCq.js} +3 -3
  98. package/chunk/{D01b7bWX.js → DK4KcodH.js} +176 -175
  99. package/chunk/{CYQ1EE4h.js → DLvMA1OW.js} +2 -2
  100. package/chunk/{CAiaqaWc.js → DQDkV47j.js} +2 -2
  101. package/chunk/{BfHNSLva.js → DTjcKyDN.js} +135 -134
  102. package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
  103. package/chunk/{CZfGDXaB.js → DXZEpA3t.js} +2 -2
  104. package/chunk/{CTF5o0OX.js → DjtWv6Wn.js} +1 -1
  105. package/chunk/{B5GDq8NJ.js → DlLL5JQo.js} +99 -96
  106. package/chunk/{CBgwLBAC.js → Dnycc1qJ.js} +104 -103
  107. package/chunk/{B68hRpYG.js → DqFhzTWC.js} +3 -3
  108. package/chunk/{BwSpYGK-.js → Dv_xRzvR.js} +3 -3
  109. package/chunk/{DQ561AmR.js → Ek8U5CTN.js} +222 -221
  110. package/chunk/{BSBJlVZH.js → ewRDIDUz.js} +4 -4
  111. package/chunk/{pq-36BDW.js → tYXLFPVI.js} +3 -3
  112. package/hooks/useIntersectionObserver.js +1 -1
  113. package/hooks/useMergeValue.js +2 -2
  114. package/index.js +378 -374
  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/config-provider/interface.d.ts +1 -1
  123. package/types/index.d.ts +5 -5
  124. package/types/select/interface.d.ts +1 -1
  125. package/types/tabs/Tab.d.ts +1 -1
  126. package/types/upload/Upload.d.ts +1 -1
  127. package/types/version/index.d.ts +2 -0
  128. package/utils/className.js +1 -1
  129. package/utils/contextHolder.js +1 -1
  130. package/utils/copy.js +1 -1
  131. package/utils/index.js +41 -41
  132. package/utils/is.js +37 -37
  133. package/utils/reactDOM.js +3 -3
  134. package/utils/scrollIntoView.js +1 -1
  135. package/chunk/BzPkh4Zv.js +0 -11
  136. package/chunk/_m8hLSsx.js +0 -776
@@ -1,19 +1,19 @@
1
- import { jsxs as Z, jsx as l, Fragment as xt } from "react/jsx-runtime";
2
- import rt, { forwardRef as U, useContext as lt, useRef as X, useState as J, useMemo as nt, useEffect as z, useCallback as bt, useImperativeHandle as vt } from "react";
3
- import { d as ct } from "./B5GDq8NJ.js";
4
- import { useMergeProps as Tt } from "../hooks/useMergeProps.js";
5
- import { useMergeValue as gt } from "../hooks/useMergeValue.js";
1
+ import { jsxs as Y, jsx as l, Fragment as gt } from "react/jsx-runtime";
2
+ import rt, { forwardRef as Z, useContext as lt, useRef as K, useState as A, useMemo as nt, useEffect as z, useCallback as vt, useImperativeHandle as Tt } from "react";
3
+ import { d as ct } from "./DlLL5JQo.js";
4
+ import { useMergeProps as Pt } from "../hooks/useMergeProps.js";
5
+ import { useMergeValue as yt } from "../hooks/useMergeValue.js";
6
6
  /* empty css */
7
7
  import "lodash/isEqualWith";
8
8
  import "../utils/is.js";
9
- import Pt from "lodash/isNumber";
10
- import It from "lodash/merge";
11
- import { isServerRendering as kt } from "../utils/dom.js";
9
+ import It from "lodash/isNumber";
10
+ import kt from "lodash/merge";
11
+ import { isServerRendering as Lt } from "../utils/dom.js";
12
12
  import "../hooks/useIntersectionObserver.js";
13
13
  import "../utils/reactDOM.js";
14
14
  import "./DApXtulb.js";
15
15
  import "./D_-UD4vO.js";
16
- import "./CTF5o0OX.js";
16
+ import "./DjtWv6Wn.js";
17
17
  import "../utils/dayjs.js";
18
18
  import "lodash/camelCase";
19
19
  import "lodash/capitalize";
@@ -37,18 +37,19 @@ import "lodash/kebabCase.js";
37
37
  import "lodash/snakeCase.js";
38
38
  import "lodash/startCase.js";
39
39
  import "lodash/upperFirst.js";
40
- import { y as _ } from "./BzPkh4Zv.js";
41
- import Lt from "lodash/isString";
40
+ import { y as _ } from "./BAWsPQBM.js";
41
+ import "lodash/isString.js";
42
42
  import "./CLBavO5c.js";
43
43
  import "lodash/escapeRegExp";
44
44
  import Rt from "lodash/isArray";
45
- import K from "lodash/isPlainObject";
46
- import yt from "../utils/throttleByRaf.js";
45
+ import Mt from "lodash/isString";
46
+ import dt from "lodash/isPlainObject";
47
+ import Et from "../utils/throttleByRaf.js";
47
48
  import "lodash/isFunction";
48
- import "./BmO1y0vr.js";
49
+ import "./DUeHQKtx.js";
49
50
  import "../Affix.js";
50
51
  import "../Alert.js";
51
- import "./-IELMT_x.js";
52
+ import "./1GQdnTJp.js";
52
53
  import "../AutoComplete.js";
53
54
  import "../Avatar.js";
54
55
  import "../BackTop.js";
@@ -58,41 +59,41 @@ import "../Button.js";
58
59
  import "../Calendar.js";
59
60
  import "../Card.js";
60
61
  import "../Carousel.js";
61
- import "./BfHNSLva.js";
62
- import "./QlYCEvCX.js";
63
- import "./CYQ1EE4h.js";
62
+ import "./DTjcKyDN.js";
63
+ import "./DG-epQqF.js";
64
+ import "./DLvMA1OW.js";
64
65
  import "../Comment.js";
65
- import Mt from "../Copy.js";
66
+ import Wt from "../Copy.js";
66
67
  import "../DatePicker.js";
67
68
  import "../Descriptions.js";
68
69
  import "../Divider.js";
69
- import "./oR9TkA35.js";
70
+ import "./BUCEs557.js";
70
71
  import "../Dropdown.js";
71
72
  import "../Form.js";
72
73
  import "../Grid.js";
73
74
  import "../Icon.js";
74
- import "./Yvz-hPQB.js";
75
- import { I as Wt } from "./D01b7bWX.js";
76
- import "./DPJEIBKZ.js";
75
+ import "./CIlGCedk.js";
76
+ import { I as Bt } from "./DK4KcodH.js";
77
+ import "./BqufsN8i.js";
77
78
  import "../Layout.js";
78
79
  import "../Link.js";
79
80
  import "../List.js";
80
81
  import "../Mentions.js";
81
- import "./BtIG250j.js";
82
- import "./BJSjbYSN.js";
82
+ import "./CWgltRVL.js";
83
+ import "./BS09tn7B.js";
83
84
  import "../PageHeader.js";
84
- import "./BHnRi7Xh.js";
85
+ import "./CH1UUxsg.js";
85
86
  import "../Popconfirm.js";
86
- import Bt from "../Popover.js";
87
+ import Ht from "../Popover.js";
87
88
  import "../Portal.js";
88
89
  import "../Progress.js";
89
90
  import "../ColorPicker.js";
90
91
  import "../Loading.js";
91
- import "./BCxoi4Kf.js";
92
+ import "./CsbCHnFk.js";
92
93
  import "../Rate.js";
93
94
  import "../ResizeBox.js";
94
95
  import "../Result.js";
95
- import "./_m8hLSsx.js";
96
+ import "./BqGtwxTi.js";
96
97
  import "../Skeleton.js";
97
98
  import "../Slider.js";
98
99
  import "../Space.js";
@@ -107,43 +108,45 @@ import "../Steps.js";
107
108
  import "../SuspenseFallbackTest.js";
108
109
  import "../Switch.js";
109
110
  import "../Table.js";
110
- import "./pq-36BDW.js";
111
+ import "./tYXLFPVI.js";
111
112
  import "../Tag.js";
112
113
  import "../TimePicker.js";
113
- import "./CAhODOfT.js";
114
+ import "./CF6p9R93.js";
114
115
  import ut from "../Tooltip.js";
115
116
  import "../Transfer.js";
116
- import "./Cqyp4qni.js";
117
- import ft from "lodash/isUndefined";
118
- import "./BSBJlVZH.js";
119
- import "./CBgwLBAC.js";
117
+ import "./CSC_V_25.js";
118
+ import Dt from "lodash/isUndefined";
119
+ import "./ewRDIDUz.js";
120
+ import "./Dnycc1qJ.js";
120
121
  import "lodash/isEqual";
121
122
  import "react-dom";
122
- import { useUpdateEffect as Et } from "../hooks/useUpdateEffect.js";
123
+ import { useUpdateEffect as Nt } from "../hooks/useUpdateEffect.js";
123
124
  import st from "../utils/mergedToString.js";
124
- import Ht from "../utils/omit.js";
125
- import Dt from "../utils/throttleByRafV2.js";
126
- import _t from "@unicom-cloud/icons/IconUiEdit";
127
- import { useKeyboardEvent as Vt } from "../hooks/useKeyboardEvent.js";
128
- import { useIsomorphicLayoutEffect as dt } from "../hooks/useIsomorphicLayoutEffect.js";
129
- import "./DQ561AmR.js";
130
- import "./CxpFYX4B.js";
131
- import "./tW_FgNSv.js";
125
+ import _t from "../utils/omit.js";
126
+ import Vt from "../utils/throttleByRafV2.js";
127
+ import jt from "@unicom-cloud/icons/IconUiEdit";
128
+ import { useKeyboardEvent as Ot } from "../hooks/useKeyboardEvent.js";
129
+ import { useIsomorphicLayoutEffect as ft } from "../hooks/useIsomorphicLayoutEffect.js";
130
+ import U from "lodash/isPlainObject.js";
131
+ import xt from "lodash/isUndefined.js";
132
+ import "./Ek8U5CTN.js";
133
+ import "./DIx0qmCq.js";
134
+ import "./CPcm9Cm5.js";
132
135
  const I = [];
133
136
  for (let t = 0; t < 256; ++t)
134
137
  I.push((t + 256).toString(16).slice(1));
135
- function kn(t, o = 0) {
138
+ function Bn(t, o = 0) {
136
139
  return (I[t[o + 0]] + I[t[o + 1]] + I[t[o + 2]] + I[t[o + 3]] + "-" + I[t[o + 4]] + I[t[o + 5]] + "-" + I[t[o + 6]] + I[t[o + 7]] + "-" + I[t[o + 8]] + I[t[o + 9]] + "-" + I[t[o + 10]] + I[t[o + 11]] + I[t[o + 12]] + I[t[o + 13]] + I[t[o + 14]] + I[t[o + 15]]).toLowerCase();
137
140
  }
138
- const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ln = { randomUUID: jt }, Ot = {
141
+ const Ft = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Hn = { randomUUID: Ft }, Gt = {
139
142
  rows: 1,
140
143
  expandable: !0,
141
144
  defaultExpanded: !1
142
- }, Ft = (t, o) => {
145
+ }, qt = (t, o) => {
143
146
  var x;
144
- const s = lt(ct), c = Tt(
147
+ const s = lt(ct), c = Pt(
145
148
  t,
146
- Ot,
149
+ Gt,
147
150
  (x = s.componentConfig) == null ? void 0 : x["Typography.Ellipsis"]
148
151
  ), {
149
152
  className: N,
@@ -156,10 +159,10 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
156
159
  expandRender: V,
157
160
  onExpand: $,
158
161
  onEllipsis: i
159
- } = c, { locale: u } = s, R = kt ? !1 : /^((?!chrome|android).)*safari/i.test((navigator == null ? void 0 : navigator.userAgent) ?? ""), T = X(null), M = X(null), [E, L] = J(""), [j, W] = J(!1), S = X(null), C = X(null), [r, B] = gt(!1, {
162
+ } = c, { locale: u } = s, R = Lt ? !1 : /^((?!chrome|android).)*safari/i.test((navigator == null ? void 0 : navigator.userAgent) ?? ""), T = K(null), M = K(null), [E, L] = A(""), [j, W] = A(!1), b = K(null), C = K(null), [r, B] = yt(!1, {
160
163
  defaultValue: c.defaultExpanded,
161
164
  value: c.expanded
162
- }), [h, G] = J(!1), O = nt(() => K(v) ? !v.single && f === 1 : f === 1, [f, v]), b = nt(() => K(k) ? {
165
+ }), [h, G] = A(!1), O = nt(() => U(v) ? !v.single && f === 1 : f === 1, [f, v]), S = nt(() => U(k) ? {
163
166
  tooltip: !0,
164
167
  tooltipProps: k
165
168
  } : {
@@ -172,7 +175,7 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
172
175
  e && L(e);
173
176
  }
174
177
  }, [d, M]);
175
- const a = s.getPrefixCls("ellipsis"), Q = () => V ? V(r) : /* @__PURE__ */ l("span", { className: `${a}-action-text`, children: r ? u.Typography.fold : u.Typography.unfold }), H = () => v && h ? /* @__PURE__ */ l(
178
+ const a = s.getPrefixCls("ellipsis"), J = () => V ? V(r) : /* @__PURE__ */ l("span", { className: `${a}-action-text`, children: r ? u.Typography.fold : u.Typography.unfold }), H = () => v && h ? /* @__PURE__ */ l(
176
179
  "div",
177
180
  {
178
181
  className: _(`${a}-action`, {
@@ -181,23 +184,23 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
181
184
  onClick: (e) => {
182
185
  r ? (B(!1), $ == null || $(!1, e)) : (B(!0), W(!1), $ == null || $(!0, e));
183
186
  },
184
- children: Q()
187
+ children: J()
185
188
  }
186
- ) : null, A = bt(
187
- yt(() => {
188
- C.current && S.current && ((O ? C.current.offsetWidth > S.current.offsetWidth : C.current.offsetHeight > S.current.offsetHeight) ? h === !1 && (G(!0), i == null || i(!0)) : h === !0 && (G(!1), i == null || i(!1)));
189
+ ) : null, X = vt(
190
+ Et(() => {
191
+ C.current && b.current && ((O ? C.current.offsetWidth > b.current.offsetWidth : C.current.offsetHeight > b.current.offsetHeight) ? h === !1 && (G(!0), i == null || i(!0)) : h === !0 && (G(!1), i == null || i(!1)));
189
192
  }),
190
193
  [h, O]
191
194
  );
192
195
  z(() => {
193
196
  let e;
194
- return S.current && (e = new ResizeObserver(A), e.observe(S.current)), () => {
197
+ return b.current && (e = new ResizeObserver(X), e.observe(b.current)), () => {
195
198
  var g, P;
196
- S.current && ((g = e == null ? void 0 : e.unobserve) == null || g.call(e, S.current)), (P = e == null ? void 0 : e.disconnect) == null || P.call(e), e = null;
199
+ b.current && ((g = e == null ? void 0 : e.unobserve) == null || g.call(e, b.current)), (P = e == null ? void 0 : e.disconnect) == null || P.call(e), e = null;
197
200
  };
198
- }, [S.current]), z(() => {
201
+ }, [b.current]), z(() => {
199
202
  let e;
200
- return C.current && (e = new ResizeObserver(A), e.observe(C.current)), () => {
203
+ return C.current && (e = new ResizeObserver(X), e.observe(C.current)), () => {
201
204
  var g, P;
202
205
  C.current && ((g = e == null ? void 0 : e.unobserve) == null || g.call(e, C.current)), (P = e == null ? void 0 : e.disconnect) == null || P.call(e), e = null;
203
206
  };
@@ -215,14 +218,14 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
215
218
  MozBoxOrient: "vertical",
216
219
  WebkitLineClamp: f
217
220
  },
218
- ref: S,
221
+ ref: b,
219
222
  children: /* @__PURE__ */ l("span", { ref: C, className: `${a}-text`, children: d })
220
223
  }
221
- ), F = () => O ? /* @__PURE__ */ l("div", { className: _(`${a}-content`, `${a}-single`), children: /* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }) }) : R ? /* @__PURE__ */ Z(
224
+ ), F = () => O ? /* @__PURE__ */ l("div", { className: _(`${a}-content`, `${a}-single`), children: /* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }) }) : R ? /* @__PURE__ */ Y(
222
225
  "div",
223
226
  {
224
227
  className: _(`${a}-content`, `${a}-multiple`),
225
- title: !b.tooltip && h && !r ? E : void 0,
228
+ title: !S.tooltip && h && !r ? E : void 0,
226
229
  children: [
227
230
  !r && H(),
228
231
  /* @__PURE__ */ l(
@@ -243,7 +246,7 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
243
246
  r && H()
244
247
  ]
245
248
  }
246
- ) : /* @__PURE__ */ Z(
249
+ ) : /* @__PURE__ */ Y(
247
250
  "div",
248
251
  {
249
252
  className: _(`${a}-content`, `${a}-multiple`, {
@@ -254,14 +257,14 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
254
257
  MozBoxOrient: "vertical",
255
258
  WebkitLineClamp: f
256
259
  },
257
- title: !b.tooltip && h && !r ? E : void 0,
260
+ title: !S.tooltip && h && !r ? E : void 0,
258
261
  children: [
259
262
  !r && H(),
260
263
  /* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }),
261
264
  r && H()
262
265
  ]
263
266
  }
264
- ), D = () => y ? /* @__PURE__ */ l("div", { className: `${a}-content`, children: /* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }) }) : b.tooltip ? /* @__PURE__ */ l(
267
+ ), D = () => y ? /* @__PURE__ */ l("div", { className: `${a}-content`, children: /* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }) }) : S.tooltip ? /* @__PURE__ */ l(
265
268
  ut,
266
269
  {
267
270
  content: E,
@@ -273,21 +276,21 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
273
276
  onVisibleChange: (e) => {
274
277
  e ? h && !r && W(!0) : W(!1);
275
278
  },
276
- ...b.tooltipProps,
279
+ ...S.tooltipProps,
277
280
  children: F()
278
281
  }
279
282
  ) : F();
280
- return /* @__PURE__ */ Z("div", { ref: T, className: _(a, N), style: p, children: [
283
+ return /* @__PURE__ */ Y("div", { ref: T, className: _(a, N), style: p, children: [
281
284
  tt(),
282
285
  D()
283
286
  ] });
284
- }, Gt = U(Ft);
285
- function qt(t, o) {
287
+ }, Kt = Z(qt);
288
+ function Xt(t, o) {
286
289
  const { prefixCls: s, children: c, setEditing: N, editableConfig: p, style: f } = t, y = _(
287
290
  `${s}-typography`,
288
291
  `${s}-edit-content`,
289
292
  t.className
290
- ), k = st(c), d = X(null);
293
+ ), k = st(c), d = K(null);
291
294
  z(() => {
292
295
  var i, u;
293
296
  if (d.current && ((u = (i = d.current).focus) == null || u.call(i)), d.current && d.current.dom) {
@@ -307,7 +310,7 @@ function qt(t, o) {
307
310
  v();
308
311
  }
309
312
  return /* @__PURE__ */ l("div", { className: y, style: f, ref: o, children: /* @__PURE__ */ l(
310
- Wt.TextArea,
313
+ Bt.TextArea,
311
314
  {
312
315
  className: `${s}-edit-content-textarea`,
313
316
  onBlur: $,
@@ -319,8 +322,8 @@ function qt(t, o) {
319
322
  }
320
323
  ) });
321
324
  }
322
- const Kt = U(qt);
323
- function Xt(t) {
325
+ const At = Z(Xt);
326
+ function Jt(t) {
324
327
  var C, r, B, h, G;
325
328
  const {
326
329
  children: o,
@@ -333,13 +336,13 @@ function Xt(t) {
333
336
  forceShowExpand: k,
334
337
  isEllipsis: d,
335
338
  currentContext: v = {}
336
- } = t, V = Vt(), { getPrefixCls: $, locale: i } = v, u = $("typography"), R = K(N) ? N : {}, T = K(c) ? c : {}, M = Rt(R.expandNodes) ? R.expandNodes : [(C = i == null ? void 0 : i.Typography) == null ? void 0 : C.fold, (r = i == null ? void 0 : i.Typography) == null ? void 0 : r.unfold], E = (O) => {
337
- var b;
338
- (b = T.onStart) == null || b.call(T, st(o), O), f(!0);
339
- }, L = K(s) ? { ...s } : {};
339
+ } = t, V = Ot(), { getPrefixCls: $, locale: i } = v, u = $("typography"), R = dt(N) ? N : {}, T = dt(c) ? c : {}, M = Rt(R.expandNodes) ? R.expandNodes : [(C = i == null ? void 0 : i.Typography) == null ? void 0 : C.fold, (r = i == null ? void 0 : i.Typography) == null ? void 0 : r.unfold], E = (O) => {
340
+ var S;
341
+ (S = T.onStart) == null || S.call(T, st(o), O), f(!0);
342
+ }, L = dt(s) ? { ...s } : {};
340
343
  L.text === void 0 && (L.text = st(o));
341
344
  const j = !!s && /* @__PURE__ */ l(
342
- Mt,
345
+ Wt,
343
346
  {
344
347
  ...L,
345
348
  className: `${u}-operation-copy`,
@@ -361,11 +364,11 @@ function Xt(t) {
361
364
  ...V({
362
365
  onPressEnter: E
363
366
  }),
364
- children: /* @__PURE__ */ l(_t, {})
367
+ children: /* @__PURE__ */ l(jt, {})
365
368
  }
366
369
  )
367
370
  }
368
- ), S = k || R.expandable && d ? /* @__PURE__ */ l(
371
+ ), b = k || R.expandable && d ? /* @__PURE__ */ l(
369
372
  "a",
370
373
  {
371
374
  className: `${u}-operation-expand`,
@@ -380,28 +383,28 @@ function Xt(t) {
380
383
  }
381
384
  ) : null;
382
385
  return z(() => () => {
383
- }, []), /* @__PURE__ */ Z(xt, { children: [
384
- S,
386
+ }, []), /* @__PURE__ */ Y(gt, { children: [
387
+ b,
385
388
  W,
386
389
  j
387
390
  ] });
388
391
  }
389
- const At = (t, o) => {
392
+ const Qt = (t, o) => {
390
393
  if (typeof window < "u" && window.CSS && window.CSS.supports)
391
- return ft(o) ? window.CSS.supports(t) : window.CSS.supports(t, o);
394
+ return Dt(o) ? window.CSS.supports(t) : window.CSS.supports(t, o);
392
395
  if (typeof document < "u" && document.createElement) {
393
396
  const s = document.createElement("div");
394
397
  return s.setAttribute("style", `${t}:${o};`), typeof s.style[t] < "u";
395
398
  }
396
399
  return !1;
397
- }, Jt = {
400
+ }, Ut = {
398
401
  display: " -webkit-box",
399
402
  "-webkit-line-clamp": 2
400
- }, Qt = () => Object.entries(Jt).every(
401
- ([t, o]) => At(t, o)
403
+ }, Yt = () => Object.entries(Ut).every(
404
+ ([t, o]) => Qt(t, o)
402
405
  );
403
- function Yt(t) {
404
- const { cssEllipsis: o, ellipsisStr: s = "...", suffix: c, rows: N } = t, p = nt(() => !o || N > 1 && !Qt() ? !1 : s === "..." && !c, [s, o, N, c]), f = {
406
+ function Zt(t) {
407
+ const { cssEllipsis: o, ellipsisStr: s = "...", suffix: c, rows: N } = t, p = nt(() => !o || N > 1 && !Yt() ? !1 : s === "..." && !c, [s, o, N, c]), f = {
405
408
  textOverflow: "ellipsis",
406
409
  whiteSpace: "nowrap",
407
410
  overflow: "hidden"
@@ -418,9 +421,9 @@ function Yt(t) {
418
421
  ellipsisStyle: p ? t.rows > 1 ? y : f : {}
419
422
  };
420
423
  }
421
- const Zt = "hxj";
424
+ const zt = "hxj";
422
425
  var it = /* @__PURE__ */ ((t) => (t[t.INIT = 0] = "INIT", t[t.BEFORE_MEASURE = 1] = "BEFORE_MEASURE", t[t.MEASURING = 2] = "MEASURING", t[t.MEASURE_END = 3] = "MEASURE_END", t[t.NO_NEED_ELLIPSIS = 4] = "NO_NEED_ELLIPSIS", t))(it || {});
423
- function Ut(t) {
426
+ function te(t) {
424
427
  const {
425
428
  children: o,
426
429
  rows: s = 1,
@@ -433,24 +436,24 @@ function Ut(t) {
433
436
  expandNodes: d,
434
437
  expandable: v,
435
438
  ellipsisStr: V
436
- } = t, $ = X(), i = X(), [u, R] = J([0, 0, 0]), [T, M] = J(0), [E, L] = J(
439
+ } = t, $ = K(), i = K(), [u, R] = A([0, 0, 0]), [T, M] = A(0), [E, L] = A(
437
440
  4
438
441
  /* NO_NEED_ELLIPSIS */
439
- ), [j, W, S] = u, [C, r] = J(!1), B = nt(() => rt.Children.toArray(o), [o]), h = X(0);
440
- Et(() => {
442
+ ), [j, W, b] = u, [C, r] = A(!1), B = nt(() => rt.Children.toArray(o), [o]), h = K(0);
443
+ Nt(() => {
441
444
  y == null || y(C);
442
445
  }, [C]);
443
- const G = (x) => Lt(x) || Pt(x), O = (x) => {
446
+ const G = (x) => Mt(x) || It(x), O = (x) => {
444
447
  let e = 0;
445
448
  return x.forEach((g) => {
446
449
  G(g) ? e += String(g).length : e += 1;
447
450
  }), e;
448
- }, b = nt(() => O(B), [B]), a = yt(
451
+ }, S = nt(() => O(B), [B]), a = Et(
449
452
  (x) => R(x)
450
- ), Q = (x) => {
453
+ ), J = (x) => {
451
454
  const e = [];
452
455
  let g = 0;
453
- if (x >= b)
456
+ if (x >= S)
454
457
  return B;
455
458
  for (const P in B) {
456
459
  const n = B[P];
@@ -470,15 +473,15 @@ function Ut(t) {
470
473
  !m || f || N ? (L(
471
474
  3
472
475
  /* MEASURE_END */
473
- ), r(m), R([0, b, b])) : (r(!0), L(
476
+ ), r(m), R([0, S, S])) : (r(!0), L(
474
477
  1
475
478
  /* BEFORE_MEASURE */
476
479
  ));
477
480
  } else if (E === 1) {
478
481
  const P = (e = $ == null ? void 0 : $.current) == null ? void 0 : e.offsetWidth, n = s * c;
479
482
  if (P > s * c) {
480
- const m = Math.max(n / P - 0.1, 0), w = Math.min(n / P + 0.1, 1), q = Math.floor(m * b), Y = Math.ceil(w * b), et = Math.floor(
481
- (q + Y) / 2
483
+ const m = Math.max(n / P - 0.1, 0), w = Math.min(n / P + 0.1, 1), q = Math.floor(m * S), Q = Math.ceil(w * S), et = Math.floor(
484
+ (q + Q) / 2
482
485
  );
483
486
  h.current = et;
484
487
  }
@@ -487,9 +490,9 @@ function Ut(t) {
487
490
  /* MEASURING */
488
491
  );
489
492
  } else if (E === 2)
490
- if (j !== S - 1) {
493
+ if (j !== b - 1) {
491
494
  const P = (g = i.current) == null ? void 0 : g.offsetHeight, n = s * T;
492
- let m = j, w = S;
495
+ let m = j, w = b;
493
496
  P <= n ? m = W : w = W;
494
497
  const q = Math.floor((w + m) / 2);
495
498
  a([m, q, w]);
@@ -500,8 +503,8 @@ function Ut(t) {
500
503
  );
501
504
  }
502
505
  };
503
- dt(() => {
504
- t.rows && c ? (R([0, Math.floor(b / 2), b]), L(
506
+ ft(() => {
507
+ t.rows && c ? (R([0, Math.floor(S / 2), S]), L(
505
508
  0
506
509
  /* INIT */
507
510
  )) : L(
@@ -509,7 +512,7 @@ function Ut(t) {
509
512
  /* NO_NEED_ELLIPSIS */
510
513
  );
511
514
  }, [
512
- b,
515
+ S,
513
516
  f,
514
517
  N,
515
518
  c,
@@ -518,15 +521,15 @@ function Ut(t) {
518
521
  v,
519
522
  V,
520
523
  t.rows
521
- ]), dt(() => {
524
+ ]), ft(() => {
522
525
  if ($.current && E === 0) {
523
526
  const x = $.current.offsetHeight;
524
527
  M(x);
525
528
  }
526
- }, [E]), dt(() => {
529
+ }, [E]), ft(() => {
527
530
  H();
528
- }, [E, W, j, S, T]);
529
- const A = {
531
+ }, [E, W, j, b, T]);
532
+ const X = {
530
533
  zIndex: -999,
531
534
  position: "fixed",
532
535
  opacity: 0,
@@ -534,15 +537,15 @@ function Ut(t) {
534
537
  margin: 0
535
538
  }, tt = {
536
539
  whiteSpace: "nowrap",
537
- ...A
540
+ ...X
538
541
  }, F = f ? {
539
542
  textOverflow: "clip",
540
- ...A
541
- } : A;
543
+ ...X
544
+ } : X;
542
545
  let D;
543
546
  if (E === 0 || E === 1)
544
- D = /* @__PURE__ */ Z("div", { children: [
545
- /* @__PURE__ */ l("div", { ref: $, style: tt, children: E === 0 ? Zt : p(o, !1) }),
547
+ D = /* @__PURE__ */ Y("div", { children: [
548
+ /* @__PURE__ */ l("div", { ref: $, style: tt, children: E === 0 ? zt : p(o, !1) }),
546
549
  /* @__PURE__ */ l("div", { ref: i, style: { width: c, ...F }, children: p(o, C) })
547
550
  ] }), D = D.props.children;
548
551
  else if (E === 2) {
@@ -550,14 +553,14 @@ function Ut(t) {
550
553
  height: T * s,
551
554
  overflow: "hidden"
552
555
  };
553
- D = /* @__PURE__ */ Z("div", { children: [
554
- /* @__PURE__ */ l("div", { ref: i, style: { width: c, ...F }, children: p(Q(W), C) }),
555
- /* @__PURE__ */ l("div", { style: x, children: Q(h.current) })
556
+ D = /* @__PURE__ */ Y("div", { children: [
557
+ /* @__PURE__ */ l("div", { ref: i, style: { width: c, ...F }, children: p(J(W), C) }),
558
+ /* @__PURE__ */ l("div", { style: x, children: J(h.current) })
556
559
  ] }), D = D.props.children;
557
- } else E === 3 ? D = p(Q(W), C) : E === 4 && (D = p(o, !1));
560
+ } else E === 3 ? D = p(J(W), C) : E === 4 && (D = p(o, !1));
558
561
  return { ellipsisNode: D, isEllipsis: C, measureStatus: E };
559
562
  }
560
- function zt(t, o) {
563
+ function ee(t, o) {
561
564
  const {
562
565
  type: s,
563
566
  bold: c,
@@ -572,7 +575,7 @@ function zt(t, o) {
572
575
  className: v
573
576
  };
574
577
  }
575
- function te(t, o) {
578
+ function oe(t, o) {
576
579
  const {
577
580
  componentType: s,
578
581
  style: c,
@@ -583,39 +586,39 @@ function te(t, o) {
583
586
  heading: k,
584
587
  blockquote: d,
585
588
  ...v
586
- } = t, V = lt(ct), { getPrefixCls: $, rtl: i } = V, u = $("typography"), R = X(), { component: T, className: M } = zt(t, u), [E, L] = J(!1), [j, W] = J(0), S = K(f) ? f : {}, C = "editing" in S ? S.editing : E, r = y ? {
589
+ } = t, V = lt(ct), { getPrefixCls: $, rtl: i } = V, u = $("typography"), R = K(), { component: T, className: M } = ee(t, u), [E, L] = A(!1), [j, W] = A(0), b = U(f) ? f : {}, C = "editing" in b ? b.editing : E, r = y ? {
587
590
  rows: 1,
588
591
  ellipsisStr: "...",
589
592
  cssEllipsis: !1,
590
- ...K(y) ? y : {}
591
- } : {}, B = r.wrapper || rt.Fragment, [h, G] = gt(!1, {
593
+ ...U(y) ? y : {}
594
+ } : {}, B = r.wrapper || rt.Fragment, [h, G] = yt(!1, {
592
595
  defaultValue: r.defaultExpanded,
593
596
  value: r.expanded
594
- }), { simpleEllipsis: O, ellipsisStyle: b } = Yt(r), a = (n, m) => {
595
- const w = ft(r.ellipsisStr) ? "..." : r.ellipsisStr, q = !ft(r.suffix) && r.suffix;
596
- return /* @__PURE__ */ Z(B, { children: [
597
+ }), { simpleEllipsis: O, ellipsisStyle: S } = Zt(r), a = (n, m) => {
598
+ const w = xt(r.ellipsisStr) ? "..." : r.ellipsisStr, q = !xt(r.suffix) && r.suffix;
599
+ return /* @__PURE__ */ Y(B, { children: [
597
600
  n,
598
601
  m && !h && !O ? w : "",
599
602
  q,
600
603
  D(m)
601
604
  ] });
602
- }, { ellipsisNode: Q, isEllipsis: H, measureStatus: A } = Ut({
605
+ }, { ellipsisNode: J, isEllipsis: H, measureStatus: X } = te({
603
606
  ...r,
604
607
  children: p,
605
608
  expanding: h,
606
609
  width: j,
607
610
  renderMeasureContent: a,
608
611
  simpleEllipsis: O || h
609
- }), tt = Dt((n) => {
612
+ }), tt = Vt((n) => {
610
613
  const { contentRect: m } = n == null ? void 0 : n[0];
611
614
  if (m) {
612
615
  const w = T.includes("code") ? m.width - 18 : m.width;
613
616
  [
614
617
  it.NO_NEED_ELLIPSIS,
615
618
  it.MEASURE_END
616
- ].includes(A) && W(w);
619
+ ].includes(X) && W(w);
617
620
  }
618
- }), F = X(null);
621
+ }), F = K(null);
619
622
  z(() => {
620
623
  let n;
621
624
  return F.current && (n = new ResizeObserver(tt), n.observe(F.current)), () => {
@@ -624,8 +627,8 @@ function te(t, o) {
624
627
  };
625
628
  }, [F.current]);
626
629
  function D(n) {
627
- return /* @__PURE__ */ l(xt, { children: /* @__PURE__ */ l(
628
- Xt,
630
+ return /* @__PURE__ */ l(gt, { children: /* @__PURE__ */ l(
631
+ Jt,
629
632
  {
630
633
  ...t,
631
634
  setEditing: L,
@@ -640,25 +643,25 @@ function te(t, o) {
640
643
  var m, w;
641
644
  G(!h), (m = t.onClickExpand) == null || m.call(t, n), (w = r.onExpand) == null || w.call(r, !h, n);
642
645
  }
643
- Et(() => {
646
+ Nt(() => {
644
647
  var n;
645
648
  (n = r.onEllipsis) == null || n.call(r, H);
646
- }, [H]), vt(o, () => R.current);
649
+ }, [H]), Tt(o, () => R.current);
647
650
  function e(n, m, w, q = {}) {
648
- let Y = n;
651
+ let Q = n;
649
652
  return m.forEach((et, at) => {
650
- const mt = { className: `${u}-${et}` }, ot = at === 0 ? q : {}, St = K(w.mark) && w.mark.color ? { style: { backgroundColor: w.mark.color }, ...ot } : { ...ot };
651
- Y = rt.createElement(
653
+ const mt = { className: `${u}-${et}` }, ot = at === 0 ? q : {}, St = U(w.mark) && w.mark.color ? { style: { backgroundColor: w.mark.color }, ...ot } : { ...ot };
654
+ Q = rt.createElement(
652
655
  et,
653
- It({ ...St }, mt),
654
- Y
656
+ kt({ ...St }, mt),
657
+ Q
655
658
  );
656
- }), Y;
659
+ }), Q;
657
660
  }
658
661
  let g;
659
662
  s === "Paragraph" ? g = d ? "blockquote" : "div" : s === "Title" ? g = `h${k}` : s === "Text" && (g = y ? "div" : "span");
660
663
  function P() {
661
- const n = st(rt.Children.toArray(p)), m = r.showTooltip, w = K(r.showTooltip) && r.showTooltip.type === "popover" ? "popover" : "tooltip", q = K(r.showTooltip) ? r.showTooltip.props || {} : {}, Y = w === "popover" ? Bt : ut, at = {
664
+ const n = st(rt.Children.toArray(p)), m = r.showTooltip, w = U(r.showTooltip) && r.showTooltip.type === "popover" ? "popover" : "tooltip", q = U(r.showTooltip) ? r.showTooltip.props || {} : {}, Q = w === "popover" ? Ht : ut, at = {
662
665
  style: c,
663
666
  ...H && !m && !h ? { title: n } : {}
664
667
  }, mt = H && m && !h, ot = /* @__PURE__ */ l(
@@ -672,7 +675,7 @@ function te(t, o) {
672
675
  N
673
676
  ),
674
677
  ...at,
675
- ...Ht(v, [
678
+ ..._t(v, [
676
679
  "spacing",
677
680
  "type",
678
681
  "close",
@@ -689,10 +692,10 @@ function te(t, o) {
689
692
  "setEditing",
690
693
  "forceShowExpand"
691
694
  ]),
692
- children: O && A !== it.INIT && !h && H ? e(
695
+ children: O && X !== it.INIT && !h && H ? e(
693
696
  // CSS folding style, need to wrap the text separately.
694
697
  a(
695
- /* @__PURE__ */ l("span", { style: b, children: p }),
698
+ /* @__PURE__ */ l("span", { style: S, children: p }),
696
699
  H
697
700
  ),
698
701
  T.length ? T : ["span"],
@@ -700,13 +703,13 @@ function te(t, o) {
700
703
  // The simple-ellipsis class ensures that the ReactNode after the text is displayed correctly (no line breaks)
701
704
  // Need to act on the immediate parent node of the text
702
705
  { className: `${u}-simple-ellipsis` }
703
- ) : e(Q, T, t)
706
+ ) : e(J, T, t)
704
707
  }
705
708
  );
706
- return mt ? /* @__PURE__ */ l(Y, { content: n, ...q, children: /* @__PURE__ */ l("span", { children: ot }) }) : ot;
709
+ return mt ? /* @__PURE__ */ l(Q, { content: n, ...q, children: /* @__PURE__ */ l("span", { children: ot }) }) : ot;
707
710
  }
708
711
  return C ? /* @__PURE__ */ l(
709
- Kt,
712
+ At,
710
713
  {
711
714
  ref: o,
712
715
  ...t,
@@ -719,12 +722,12 @@ function te(t, o) {
719
722
  ),
720
723
  prefixCls: u,
721
724
  setEditing: L,
722
- editableConfig: S
725
+ editableConfig: b
723
726
  }
724
727
  ) : P();
725
728
  }
726
- const ht = U(te);
727
- function ee(t, o) {
729
+ const ht = Z(oe);
730
+ function ne(t, o) {
728
731
  const { spacing: s = "default", className: c } = t, { getPrefixCls: N } = lt(ct), p = N("typography"), f = s === "close" ? _(`${p}-spacing-close`, c) : c;
729
732
  return /* @__PURE__ */ l(
730
733
  ht,
@@ -736,38 +739,38 @@ function ee(t, o) {
736
739
  }
737
740
  );
738
741
  }
739
- const Nt = U(
740
- ee
742
+ const Ct = Z(
743
+ ne
741
744
  );
742
- Nt.displayName = "Paragraph";
743
- function oe(t, o) {
745
+ Ct.displayName = "Paragraph";
746
+ function re(t, o) {
744
747
  return /* @__PURE__ */ l(ht, { ...t, componentType: "Text", ref: o });
745
748
  }
746
- const Ct = U(oe);
747
- Ct.displayName = "Text";
748
- function ne(t, o) {
749
+ const wt = Z(re);
750
+ wt.displayName = "Text";
751
+ function ie(t, o) {
749
752
  const { heading: s = 1, ...c } = t;
750
753
  return /* @__PURE__ */ l(ht, { heading: s, ...c, componentType: "Title", ref: o });
751
754
  }
752
- const wt = U(ne);
753
- wt.displayName = "Title";
754
- function re(t, o) {
755
+ const $t = Z(ie);
756
+ $t.displayName = "Title";
757
+ function se(t, o) {
755
758
  const { getPrefixCls: s } = lt(ct), c = s("typography"), { className: N, style: p, children: f } = t, y = _(c, N);
756
759
  return /* @__PURE__ */ l("article", { ref: o, style: p, className: y, children: f });
757
760
  }
758
- const $t = U(re);
759
- $t.displayName = "Typography";
760
- const pt = $t;
761
- pt.Title = wt;
762
- pt.Text = Ct;
763
- pt.Paragraph = Nt;
764
- pt.Ellipsis = Gt;
761
+ const bt = Z(se);
762
+ bt.displayName = "Typography";
763
+ const pt = bt;
764
+ pt.Title = $t;
765
+ pt.Text = wt;
766
+ pt.Paragraph = Ct;
767
+ pt.Ellipsis = Kt;
765
768
  export {
766
- Gt as E,
767
- Nt as P,
769
+ Kt as E,
770
+ Ct as P,
768
771
  pt as T,
769
- Ct as a,
770
- wt as b,
771
- kn as l,
772
- Ln as t
772
+ wt as a,
773
+ $t as b,
774
+ Bn as l,
775
+ Hn as t
773
776
  };