@unicom-cloud/ui 0.8.61 → 0.8.63
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.
- package/Affix.js +1 -1
- package/Alert.js +44 -40
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +1 -1
- package/BackTop.js +7 -7
- package/Badge.js +2 -2
- package/Breadcrumb.js +22 -22
- package/Button.js +2 -2
- package/Calendar.js +106 -104
- package/Card.js +1 -1
- package/Carousel.js +34 -33
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +12 -12
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +16 -16
- package/DatePicker.js +1021 -1008
- package/Descriptions.js +10 -10
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +9 -9
- package/Empty.js +2 -2
- package/Form.js +60 -54
- package/Grid.js +2 -2
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +2 -2
- package/Link.js +14 -14
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +9 -3
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +32 -32
- package/PageHeader.js +23 -22
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +7 -7
- package/Popover.js +1 -1
- package/Progress.js +14 -14
- package/Radio.js +2 -2
- package/Rate.js +43 -40
- package/ResizeBox.js +97 -96
- package/Result.js +15 -15
- package/Select.js +1 -1
- package/SelectView.js +295 -249
- package/Skeleton.js +1 -1
- package/Slider.js +25 -25
- package/Space.js +32 -32
- package/SpeechSynthesis.js +32 -29
- package/Spin.js +2 -2
- package/Statistic.js +1 -1
- package/Steps.js +11 -11
- package/Switch.js +3 -3
- package/Table.js +9 -9
- package/Tabs.js +1 -1
- package/Tag.js +68 -67
- package/TimePicker.js +17 -17
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +47 -46
- package/Tree.js +2 -2
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/Typography.js +1 -1
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{DhBo0pPJ.js → B5gIo-hD.js} +119 -118
- package/chunk/{eK7lxdak.js → B9w_puFP.js} +8 -8
- package/chunk/{RMBPs_Ry.js → BEB_A9eY.js} +4 -3
- package/chunk/{CuOl4X0X.js → BLLKKgZJ.js} +1 -1
- package/chunk/{cZiP8FvM.js → BcwdVUDs.js} +1 -1
- package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
- package/chunk/{DmUhn9ib.js → Bn2-vqTg.js} +54 -53
- package/chunk/{Kbr6FzOG.js → BnLshM9R.js} +210 -186
- package/chunk/{BJ_7JTqC.js → BoDdbbF_.js} +1 -1
- package/chunk/BsWphzcT.js +20 -0
- package/chunk/{Bdh4XVuf.js → C5S_amaH.js} +290 -281
- package/chunk/{YIlBPVAs.js → C6Zb_-OE.js} +1 -1
- package/chunk/{CbiWdbr_.js → CAxIyiy6.js} +35 -34
- package/chunk/CD7dGcUa.js +376 -0
- package/chunk/{BPZ-6HKJ.js → CLBavO5c.js} +24 -22
- package/chunk/{B2vORJQ8.js → CZ1wrD_H.js} +13 -13
- package/chunk/{DpfUGhi4.js → CfTcP6nF.js} +288 -283
- package/chunk/{BNHrEI0Y.js → CfZWOhnc.js} +52 -48
- package/chunk/{BjSHZA0m.js → CgDayZDE.js} +1 -1
- package/chunk/{BYhtrDV3.js → Co3idurS.js} +152 -148
- package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
- package/chunk/{Cbd50gx8.js → CvlD3aiv.js} +33 -33
- package/chunk/{IooeSKJJ.js → D3dcFbex.js} +19 -19
- package/chunk/{C5AQWbC4.js → DDDuw0Zi.js} +1 -1
- package/chunk/{gIbzjQ-X.js → DXZ8-ha7.js} +2 -2
- package/chunk/{C1D7T29r.js → DbLgopUR.js} +83 -76
- package/chunk/{BVLwPZis.js → DbPYtS7-.js} +31 -30
- package/chunk/{V6euPXVB.js → Dk6hL04k.js} +257 -251
- package/chunk/{BEDYCG-I.js → Dpzgtdt-.js} +18 -18
- package/chunk/{B16KHtX-.js → JpKOcIfl.js} +191 -185
- package/chunk/{D2HkyI6A.js → QFkhCtUr.js} +11 -11
- package/chunk/aqSmxUbY.js +116 -0
- package/chunk/{DSGRHf-1.js → rlfmXePI.js} +157 -156
- package/hooks/useMergeValue.js +1 -1
- package/icons.js +4 -6001
- package/index.js +439 -393
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/locale/zh-CN.js +8 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cascader/panel/Search.d.ts +1 -1
- package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
- package/types/config-provider/interface.d.ts +1 -1
- package/types/date-picker/index.d.ts +7 -0
- package/types/form/interface.d.ts +1 -1
- package/types/index.d.ts +3 -3
- package/types/locale/interface.d.ts +1 -0
- package/types/locale/zh-CN.d.ts +14 -0
- package/types/message/index.d.ts +2 -2
- package/types/notification/index.d.ts +2 -2
- package/types/notification-base/index.d.ts +2 -2
- package/types/select/interface.d.ts +1 -0
- package/types/select-view/interface.d.ts +1 -0
- package/types/space/index.d.ts +2 -1
- package/types/tree/Context.d.ts +1 -0
- package/types/tree/Tree.d.ts +1 -1
- package/types/tree/index.d.ts +5 -4
- package/types/tree/interface.d.ts +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/is.d.ts +2 -0
- package/types/utils/lodash.d.ts +14 -1
- package/types/verification-code/VerificationCode.d.ts +2 -1
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/caseName.js +2 -18
- package/utils/contextHolder.js +1 -1
- package/utils/dayjs.js +50 -49
- package/utils/index.js +227 -185
- package/utils/is.js +125 -111
- package/utils/lodash.js +32 -6
- package/utils/reactDOM.js +1 -1
- package/chunk/-LZOUh53.js +0 -29
- package/chunk/-jdfq71f.js +0 -23
- package/chunk/B0GOLsj_.js +0 -58
- package/chunk/B7Zsp3gO.js +0 -29
- package/chunk/BDjXkzNj.js +0 -23
- package/chunk/BHn4xgbv.js +0 -209
- package/chunk/BLSiP_gg.js +0 -32
- package/chunk/BMJfSSLX.js +0 -23
- package/chunk/B_nfMl0e.js +0 -116
- package/chunk/BcS17Pzy.js +0 -66
- package/chunk/BdiEwtQO.js +0 -41
- package/chunk/Bpug_KxP.js +0 -34
- package/chunk/C1u_ckwU.js +0 -29
- package/chunk/C43Hv2Bl.js +0 -34
- package/chunk/C9vsih_D.js +0 -29
- package/chunk/CAfR2wLq.js +0 -41
- package/chunk/CAfecMDF.js +0 -46
- package/chunk/CKp4rZnD.js +0 -207
- package/chunk/CV2Aqv9q.js +0 -52
- package/chunk/CYdarMv9.js +0 -32
- package/chunk/C_S5Mdvd.js +0 -379
- package/chunk/CmB-TL7C.js +0 -46
- package/chunk/D-ER56Sf.js +0 -29
- package/chunk/D-aYnb6u.js +0 -41
- package/chunk/D3xQFJcO.js +0 -23
- package/chunk/DJcEys80.js +0 -29
- package/chunk/DLIm6rRJ.js +0 -29
- package/chunk/DOWEHtqM.js +0 -41
- package/chunk/DT37l12z.js +0 -40
- package/chunk/DW-B7npC.js +0 -23
- package/chunk/D_MTFBb0.js +0 -38
- package/chunk/Dx_5J4fO.js +0 -29
- package/chunk/Dy487FZ1.js +0 -118
- package/chunk/Uz-rNulO.js +0 -98
- package/chunk/cDZI_t6o.js +0 -52
- package/chunk/sScV-J56.js +0 -206
- package/chunk/wI2I1qb0.js +0 -23
|
@@ -1,35 +1,54 @@
|
|
|
1
1
|
import { jsxs as Z, jsx as l, Fragment as xt } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { d as
|
|
4
|
-
import { useMergeProps as
|
|
2
|
+
import rt, { forwardRef as U, useContext as lt, useRef as X, useState as J, useMemo as nt, useEffect as z, useCallback as vt, useImperativeHandle as bt } from "react";
|
|
3
|
+
import { d as ct } from "./C5S_amaH.js";
|
|
4
|
+
import { useMergeProps as Tt } from "../hooks/useMergeProps.js";
|
|
5
5
|
import { useMergeValue as gt } from "../hooks/useMergeValue.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import "lodash/isEqualWith";
|
|
8
8
|
import "../utils/is.js";
|
|
9
|
-
import
|
|
10
|
-
import "lodash/merge";
|
|
11
|
-
import { isServerRendering as
|
|
9
|
+
import Pt from "lodash/isNumber";
|
|
10
|
+
import It from "lodash/merge";
|
|
11
|
+
import { isServerRendering as kt } 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 "./
|
|
16
|
+
import "./aqSmxUbY.js";
|
|
17
17
|
import "../utils/dayjs.js";
|
|
18
|
+
import "lodash/camelCase";
|
|
19
|
+
import "lodash/capitalize";
|
|
18
20
|
import "lodash/cloneDeep";
|
|
21
|
+
import "lodash/debounce";
|
|
22
|
+
import "lodash/get";
|
|
23
|
+
import "lodash/has";
|
|
24
|
+
import "lodash/kebabCase";
|
|
19
25
|
import "lodash/mergeWith";
|
|
26
|
+
import "lodash/set";
|
|
27
|
+
import "lodash/setWith";
|
|
28
|
+
import "lodash/snakeCase";
|
|
29
|
+
import "lodash/startCase";
|
|
30
|
+
import "lodash/throttle";
|
|
31
|
+
import "lodash/uniq";
|
|
32
|
+
import "lodash/upperFirst";
|
|
20
33
|
import "../utils/raf.js";
|
|
34
|
+
import "lodash/camelCase.js";
|
|
35
|
+
import "lodash/capitalize.js";
|
|
36
|
+
import "lodash/kebabCase.js";
|
|
37
|
+
import "lodash/snakeCase.js";
|
|
38
|
+
import "lodash/startCase.js";
|
|
39
|
+
import "lodash/upperFirst.js";
|
|
21
40
|
import { y as _ } from "./BzPkh4Zv.js";
|
|
22
|
-
import
|
|
23
|
-
import "./
|
|
41
|
+
import Lt from "lodash/isString";
|
|
42
|
+
import "./CLBavO5c.js";
|
|
24
43
|
import "lodash/escapeRegExp";
|
|
25
|
-
import
|
|
44
|
+
import Rt from "lodash/isArray";
|
|
26
45
|
import K from "lodash/isPlainObject";
|
|
27
46
|
import yt from "../utils/throttleByRaf.js";
|
|
28
47
|
import "lodash/isFunction";
|
|
29
|
-
import "./
|
|
48
|
+
import "./BmO1y0vr.js";
|
|
30
49
|
import "../Affix.js";
|
|
31
50
|
import "../Alert.js";
|
|
32
|
-
import "./
|
|
51
|
+
import "./DDDuw0Zi.js";
|
|
33
52
|
import "../AutoComplete.js";
|
|
34
53
|
import "../Avatar.js";
|
|
35
54
|
import "../BackTop.js";
|
|
@@ -39,96 +58,97 @@ import "../Button.js";
|
|
|
39
58
|
import "../Calendar.js";
|
|
40
59
|
import "../Card.js";
|
|
41
60
|
import "../Carousel.js";
|
|
42
|
-
import "./
|
|
43
|
-
import "./
|
|
44
|
-
import "./
|
|
61
|
+
import "./rlfmXePI.js";
|
|
62
|
+
import "./B9w_puFP.js";
|
|
63
|
+
import "./BEB_A9eY.js";
|
|
45
64
|
import "../Comment.js";
|
|
46
|
-
import
|
|
65
|
+
import Mt from "../Copy.js";
|
|
47
66
|
import "../DatePicker.js";
|
|
48
67
|
import "../Descriptions.js";
|
|
49
68
|
import "../Divider.js";
|
|
50
|
-
import "./
|
|
69
|
+
import "./CZ1wrD_H.js";
|
|
51
70
|
import "../Dropdown.js";
|
|
52
71
|
import "../Form.js";
|
|
53
72
|
import "../Grid.js";
|
|
54
73
|
import "../Icon.js";
|
|
55
|
-
import "./
|
|
56
|
-
import { I as
|
|
57
|
-
import "./
|
|
74
|
+
import "./D3dcFbex.js";
|
|
75
|
+
import { I as Wt } from "./Bn2-vqTg.js";
|
|
76
|
+
import "./CD7dGcUa.js";
|
|
58
77
|
import "../Layout.js";
|
|
59
78
|
import "../Link.js";
|
|
60
79
|
import "../List.js";
|
|
61
80
|
import "../Mentions.js";
|
|
62
|
-
import "./
|
|
63
|
-
import "./
|
|
81
|
+
import "./JpKOcIfl.js";
|
|
82
|
+
import "./CfZWOhnc.js";
|
|
64
83
|
import "../PageHeader.js";
|
|
65
|
-
import "./
|
|
84
|
+
import "./B5gIo-hD.js";
|
|
66
85
|
import "../Popconfirm.js";
|
|
67
|
-
import
|
|
86
|
+
import Bt from "../Popover.js";
|
|
68
87
|
import "../Portal.js";
|
|
69
88
|
import "../Progress.js";
|
|
70
89
|
import "../ColorPicker.js";
|
|
71
90
|
import "../Loading.js";
|
|
72
|
-
import "./
|
|
91
|
+
import "./BLLKKgZJ.js";
|
|
73
92
|
import "../Rate.js";
|
|
74
93
|
import "../ResizeBox.js";
|
|
75
94
|
import "../Result.js";
|
|
76
|
-
import "./
|
|
95
|
+
import "./Co3idurS.js";
|
|
77
96
|
import "../Skeleton.js";
|
|
78
97
|
import "../Slider.js";
|
|
79
98
|
import "../Space.js";
|
|
80
99
|
import "./l0sNRNKZ.js";
|
|
81
|
-
import "
|
|
100
|
+
import "@unicom-cloud/icons/IconUiMute";
|
|
101
|
+
import "@unicom-cloud/icons/IconUiPauseCircleFill";
|
|
102
|
+
import "@unicom-cloud/icons/IconUiPlayCircleFill";
|
|
103
|
+
import "@unicom-cloud/icons/IconUiSound";
|
|
82
104
|
import "../Spin.js";
|
|
83
105
|
import "../Statistic.js";
|
|
84
106
|
import "../Steps.js";
|
|
85
107
|
import "../SuspenseFallbackTest.js";
|
|
86
108
|
import "../Switch.js";
|
|
87
109
|
import "../Table.js";
|
|
88
|
-
import "./
|
|
110
|
+
import "./CAxIyiy6.js";
|
|
89
111
|
import "../Tag.js";
|
|
90
112
|
import "../TimePicker.js";
|
|
91
|
-
import "./
|
|
92
|
-
import
|
|
113
|
+
import "./BoDdbbF_.js";
|
|
114
|
+
import ut from "../Tooltip.js";
|
|
93
115
|
import "../Transfer.js";
|
|
94
|
-
import "./
|
|
95
|
-
import "lodash/
|
|
96
|
-
import "
|
|
97
|
-
import
|
|
98
|
-
import "./DpfUGhi4.js";
|
|
99
|
-
import "./Cbd50gx8.js";
|
|
116
|
+
import "./Cqyp4qni.js";
|
|
117
|
+
import ft from "lodash/isUndefined";
|
|
118
|
+
import "./CfTcP6nF.js";
|
|
119
|
+
import "./CvlD3aiv.js";
|
|
100
120
|
import "lodash/isEqual";
|
|
101
121
|
import "react-dom";
|
|
102
122
|
import { useUpdateEffect as Et } from "../hooks/useUpdateEffect.js";
|
|
103
|
-
import
|
|
104
|
-
import
|
|
105
|
-
import
|
|
106
|
-
import
|
|
107
|
-
import { useKeyboardEvent as
|
|
123
|
+
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";
|
|
108
128
|
import { useIsomorphicLayoutEffect as dt } from "../hooks/useIsomorphicLayoutEffect.js";
|
|
109
|
-
import "./
|
|
110
|
-
import "./
|
|
111
|
-
import "./
|
|
129
|
+
import "./Dk6hL04k.js";
|
|
130
|
+
import "./QFkhCtUr.js";
|
|
131
|
+
import "./CgDayZDE.js";
|
|
112
132
|
const I = [];
|
|
113
133
|
for (let t = 0; t < 256; ++t)
|
|
114
134
|
I.push((t + 256).toString(16).slice(1));
|
|
115
|
-
function
|
|
135
|
+
function kn(t, o = 0) {
|
|
116
136
|
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();
|
|
117
137
|
}
|
|
118
|
-
const
|
|
138
|
+
const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ln = { randomUUID: jt }, Ot = {
|
|
119
139
|
rows: 1,
|
|
120
140
|
expandable: !0,
|
|
121
141
|
defaultExpanded: !1
|
|
122
|
-
},
|
|
123
|
-
var
|
|
124
|
-
const s = ct
|
|
142
|
+
}, Ft = (t, o) => {
|
|
143
|
+
var x;
|
|
144
|
+
const s = lt(ct), c = Tt(
|
|
125
145
|
t,
|
|
126
|
-
|
|
127
|
-
(
|
|
146
|
+
Ot,
|
|
147
|
+
(x = s.componentConfig) == null ? void 0 : x["Typography.Ellipsis"]
|
|
128
148
|
), {
|
|
129
149
|
className: N,
|
|
130
150
|
style: p,
|
|
131
|
-
rows:
|
|
151
|
+
rows: f,
|
|
132
152
|
disabled: y,
|
|
133
153
|
showTooltip: k,
|
|
134
154
|
children: d,
|
|
@@ -136,10 +156,10 @@ const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
136
156
|
expandRender: V,
|
|
137
157
|
onExpand: $,
|
|
138
158
|
onEllipsis: i
|
|
139
|
-
} = c, { locale:
|
|
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, {
|
|
140
160
|
defaultValue: c.defaultExpanded,
|
|
141
161
|
value: c.expanded
|
|
142
|
-
}), [
|
|
162
|
+
}), [h, G] = J(!1), O = nt(() => K(b) ? !b.single && f === 1 : f === 1, [f, b]), v = nt(() => K(k) ? {
|
|
143
163
|
tooltip: !0,
|
|
144
164
|
tooltipProps: k
|
|
145
165
|
} : {
|
|
@@ -152,7 +172,7 @@ const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
152
172
|
e && L(e);
|
|
153
173
|
}
|
|
154
174
|
}, [d, M]);
|
|
155
|
-
const a = s.getPrefixCls("ellipsis"), Q = () => V ? V(r) : /* @__PURE__ */ l("span", { className: `${a}-action-text`, children: r ?
|
|
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 = () => b && h ? /* @__PURE__ */ l(
|
|
156
176
|
"div",
|
|
157
177
|
{
|
|
158
178
|
className: _(`${a}-action`, {
|
|
@@ -163,11 +183,11 @@ const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
163
183
|
},
|
|
164
184
|
children: Q()
|
|
165
185
|
}
|
|
166
|
-
) : null, A =
|
|
186
|
+
) : null, A = vt(
|
|
167
187
|
yt(() => {
|
|
168
|
-
C.current && S.current && ((O ? C.current.offsetWidth > S.current.offsetWidth : C.current.offsetHeight > S.current.offsetHeight) ?
|
|
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)));
|
|
169
189
|
}),
|
|
170
|
-
[
|
|
190
|
+
[h, O]
|
|
171
191
|
);
|
|
172
192
|
z(() => {
|
|
173
193
|
let e;
|
|
@@ -193,7 +213,7 @@ const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
193
213
|
style: {
|
|
194
214
|
WebkitBoxOrient: "vertical",
|
|
195
215
|
MozBoxOrient: "vertical",
|
|
196
|
-
WebkitLineClamp:
|
|
216
|
+
WebkitLineClamp: f
|
|
197
217
|
},
|
|
198
218
|
ref: S,
|
|
199
219
|
children: /* @__PURE__ */ l("span", { ref: C, className: `${a}-text`, children: d })
|
|
@@ -202,7 +222,7 @@ const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
202
222
|
"div",
|
|
203
223
|
{
|
|
204
224
|
className: _(`${a}-content`, `${a}-multiple`),
|
|
205
|
-
title: !v.tooltip &&
|
|
225
|
+
title: !v.tooltip && h && !r ? E : void 0,
|
|
206
226
|
children: [
|
|
207
227
|
!r && H(),
|
|
208
228
|
/* @__PURE__ */ l(
|
|
@@ -215,7 +235,7 @@ const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
215
235
|
style: {
|
|
216
236
|
WebkitBoxOrient: "vertical",
|
|
217
237
|
MozBoxOrient: "vertical",
|
|
218
|
-
WebkitLineClamp:
|
|
238
|
+
WebkitLineClamp: f
|
|
219
239
|
},
|
|
220
240
|
children: d
|
|
221
241
|
}
|
|
@@ -232,9 +252,9 @@ const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
232
252
|
style: {
|
|
233
253
|
WebkitBoxOrient: "vertical",
|
|
234
254
|
MozBoxOrient: "vertical",
|
|
235
|
-
WebkitLineClamp:
|
|
255
|
+
WebkitLineClamp: f
|
|
236
256
|
},
|
|
237
|
-
title: !v.tooltip &&
|
|
257
|
+
title: !v.tooltip && h && !r ? E : void 0,
|
|
238
258
|
children: [
|
|
239
259
|
!r && H(),
|
|
240
260
|
/* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }),
|
|
@@ -242,16 +262,16 @@ const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
242
262
|
]
|
|
243
263
|
}
|
|
244
264
|
), D = () => y ? /* @__PURE__ */ l("div", { className: `${a}-content`, children: /* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }) }) : v.tooltip ? /* @__PURE__ */ l(
|
|
245
|
-
|
|
265
|
+
ut,
|
|
246
266
|
{
|
|
247
267
|
content: E,
|
|
248
268
|
popupVisible: j,
|
|
249
|
-
disabled: !
|
|
269
|
+
disabled: !h || r,
|
|
250
270
|
triggerProps: {
|
|
251
271
|
mouseEnterDelay: 100
|
|
252
272
|
},
|
|
253
273
|
onVisibleChange: (e) => {
|
|
254
|
-
e ?
|
|
274
|
+
e ? h && !r && W(!0) : W(!1);
|
|
255
275
|
},
|
|
256
276
|
...v.tooltipProps,
|
|
257
277
|
children: F()
|
|
@@ -261,16 +281,16 @@ const _t = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
261
281
|
tt(),
|
|
262
282
|
D()
|
|
263
283
|
] });
|
|
264
|
-
},
|
|
265
|
-
function
|
|
266
|
-
const { prefixCls: s, children: c, setEditing: N, editableConfig: p, style:
|
|
284
|
+
}, Gt = U(Ft);
|
|
285
|
+
function qt(t, o) {
|
|
286
|
+
const { prefixCls: s, children: c, setEditing: N, editableConfig: p, style: f } = t, y = _(
|
|
267
287
|
`${s}-typography`,
|
|
268
288
|
`${s}-edit-content`,
|
|
269
289
|
t.className
|
|
270
|
-
), k =
|
|
290
|
+
), k = st(c), d = X(null);
|
|
271
291
|
z(() => {
|
|
272
|
-
var i,
|
|
273
|
-
if (d.current && ((
|
|
292
|
+
var i, u;
|
|
293
|
+
if (d.current && ((u = (i = d.current).focus) == null || u.call(i)), d.current && d.current.dom) {
|
|
274
294
|
const { length: R } = d.current.dom.value;
|
|
275
295
|
d.current.dom.setSelectionRange(R, R);
|
|
276
296
|
}
|
|
@@ -280,14 +300,14 @@ function Ft(t, o) {
|
|
|
280
300
|
N(!1), (i = p.onEnd) == null || i.call(p, k);
|
|
281
301
|
}
|
|
282
302
|
function V(i) {
|
|
283
|
-
var
|
|
284
|
-
(
|
|
303
|
+
var u;
|
|
304
|
+
(u = p.onChange) == null || u.call(p, i);
|
|
285
305
|
}
|
|
286
306
|
function $() {
|
|
287
307
|
b();
|
|
288
308
|
}
|
|
289
|
-
return /* @__PURE__ */ l("div", { className: y, style:
|
|
290
|
-
|
|
309
|
+
return /* @__PURE__ */ l("div", { className: y, style: f, ref: o, children: /* @__PURE__ */ l(
|
|
310
|
+
Wt.TextArea,
|
|
291
311
|
{
|
|
292
312
|
className: `${s}-edit-content-textarea`,
|
|
293
313
|
onBlur: $,
|
|
@@ -299,34 +319,34 @@ function Ft(t, o) {
|
|
|
299
319
|
}
|
|
300
320
|
) });
|
|
301
321
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
var C, r, B,
|
|
322
|
+
const Kt = U(qt);
|
|
323
|
+
function Xt(t) {
|
|
324
|
+
var C, r, B, h, G;
|
|
305
325
|
const {
|
|
306
326
|
children: o,
|
|
307
327
|
copyable: s,
|
|
308
328
|
editable: c,
|
|
309
329
|
ellipsis: N,
|
|
310
330
|
expanding: p,
|
|
311
|
-
setEditing:
|
|
331
|
+
setEditing: f,
|
|
312
332
|
onClickExpand: y,
|
|
313
333
|
forceShowExpand: k,
|
|
314
334
|
isEllipsis: d,
|
|
315
335
|
currentContext: b = {}
|
|
316
|
-
} = t, V =
|
|
336
|
+
} = t, V = Vt(), { getPrefixCls: $, locale: i } = b, 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) => {
|
|
317
337
|
var v;
|
|
318
|
-
(v = T.onStart) == null || v.call(T,
|
|
338
|
+
(v = T.onStart) == null || v.call(T, st(o), O), f(!0);
|
|
319
339
|
}, L = K(s) ? { ...s } : {};
|
|
320
|
-
L.text === void 0 && (L.text =
|
|
340
|
+
L.text === void 0 && (L.text = st(o));
|
|
321
341
|
const j = !!s && /* @__PURE__ */ l(
|
|
322
|
-
|
|
342
|
+
Mt,
|
|
323
343
|
{
|
|
324
344
|
...L,
|
|
325
|
-
className: `${
|
|
345
|
+
className: `${u}-operation-copy`,
|
|
326
346
|
tooltipProps: L.tooltipProps
|
|
327
347
|
}
|
|
328
348
|
), W = c && /* @__PURE__ */ l(
|
|
329
|
-
|
|
349
|
+
ut,
|
|
330
350
|
{
|
|
331
351
|
content: (B = i == null ? void 0 : i.Typography) == null ? void 0 : B.edit,
|
|
332
352
|
...T.tooltipProps,
|
|
@@ -334,21 +354,21 @@ function qt(t) {
|
|
|
334
354
|
"span",
|
|
335
355
|
{
|
|
336
356
|
tabIndex: 0,
|
|
337
|
-
"aria-label": (
|
|
357
|
+
"aria-label": (h = i == null ? void 0 : i.Typography) == null ? void 0 : h.edit,
|
|
338
358
|
role: "button",
|
|
339
|
-
className: `${
|
|
359
|
+
className: `${u}-operation-edit`,
|
|
340
360
|
onClick: E,
|
|
341
361
|
...V({
|
|
342
362
|
onPressEnter: E
|
|
343
363
|
}),
|
|
344
|
-
children: /* @__PURE__ */ l(
|
|
364
|
+
children: /* @__PURE__ */ l(_t, {})
|
|
345
365
|
}
|
|
346
366
|
)
|
|
347
367
|
}
|
|
348
368
|
), S = k || R.expandable && d ? /* @__PURE__ */ l(
|
|
349
369
|
"a",
|
|
350
370
|
{
|
|
351
|
-
className: `${
|
|
371
|
+
className: `${u}-operation-expand`,
|
|
352
372
|
onClick: y,
|
|
353
373
|
role: "button",
|
|
354
374
|
tabIndex: 0,
|
|
@@ -366,22 +386,22 @@ function qt(t) {
|
|
|
366
386
|
j
|
|
367
387
|
] });
|
|
368
388
|
}
|
|
369
|
-
const
|
|
389
|
+
const At = (t, o) => {
|
|
370
390
|
if (typeof window < "u" && window.CSS && window.CSS.supports)
|
|
371
|
-
return
|
|
391
|
+
return ft(o) ? window.CSS.supports(t) : window.CSS.supports(t, o);
|
|
372
392
|
if (typeof document < "u" && document.createElement) {
|
|
373
393
|
const s = document.createElement("div");
|
|
374
394
|
return s.setAttribute("style", `${t}:${o};`), typeof s.style[t] < "u";
|
|
375
395
|
}
|
|
376
396
|
return !1;
|
|
377
|
-
},
|
|
397
|
+
}, Jt = {
|
|
378
398
|
display: " -webkit-box",
|
|
379
399
|
"-webkit-line-clamp": 2
|
|
380
|
-
},
|
|
381
|
-
([t, o]) =>
|
|
400
|
+
}, Qt = () => Object.entries(Jt).every(
|
|
401
|
+
([t, o]) => At(t, o)
|
|
382
402
|
);
|
|
383
|
-
function
|
|
384
|
-
const { cssEllipsis: o, ellipsisStr: s = "...", suffix: c, rows: N } = t, p =
|
|
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 = {
|
|
385
405
|
textOverflow: "ellipsis",
|
|
386
406
|
whiteSpace: "nowrap",
|
|
387
407
|
overflow: "hidden"
|
|
@@ -395,59 +415,59 @@ function Jt(t) {
|
|
|
395
415
|
};
|
|
396
416
|
return {
|
|
397
417
|
simpleEllipsis: p,
|
|
398
|
-
ellipsisStyle: p ? t.rows > 1 ? y :
|
|
418
|
+
ellipsisStyle: p ? t.rows > 1 ? y : f : {}
|
|
399
419
|
};
|
|
400
420
|
}
|
|
401
|
-
const
|
|
402
|
-
var
|
|
403
|
-
function
|
|
421
|
+
const Zt = "hxj";
|
|
422
|
+
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) {
|
|
404
424
|
const {
|
|
405
425
|
children: o,
|
|
406
426
|
rows: s = 1,
|
|
407
427
|
width: c,
|
|
408
428
|
expanding: N,
|
|
409
429
|
renderMeasureContent: p,
|
|
410
|
-
simpleEllipsis:
|
|
430
|
+
simpleEllipsis: f,
|
|
411
431
|
onEllipsis: y,
|
|
412
432
|
suffix: k,
|
|
413
433
|
expandNodes: d,
|
|
414
434
|
expandable: b,
|
|
415
435
|
ellipsisStr: V
|
|
416
|
-
} = t, $ = X(), i = X(), [
|
|
436
|
+
} = t, $ = X(), i = X(), [u, R] = J([0, 0, 0]), [T, M] = J(0), [E, L] = J(
|
|
417
437
|
4
|
|
418
438
|
/* NO_NEED_ELLIPSIS */
|
|
419
|
-
), [j, W, S] =
|
|
439
|
+
), [j, W, S] = u, [C, r] = J(!1), B = nt(() => rt.Children.toArray(o), [o]), h = X(0);
|
|
420
440
|
Et(() => {
|
|
421
441
|
y == null || y(C);
|
|
422
442
|
}, [C]);
|
|
423
|
-
const G = (
|
|
443
|
+
const G = (x) => Lt(x) || Pt(x), O = (x) => {
|
|
424
444
|
let e = 0;
|
|
425
|
-
return
|
|
445
|
+
return x.forEach((g) => {
|
|
426
446
|
G(g) ? e += String(g).length : e += 1;
|
|
427
447
|
}), e;
|
|
428
|
-
}, v =
|
|
429
|
-
(
|
|
430
|
-
), Q = (
|
|
448
|
+
}, v = nt(() => O(B), [B]), a = yt(
|
|
449
|
+
(x) => R(x)
|
|
450
|
+
), Q = (x) => {
|
|
431
451
|
const e = [];
|
|
432
452
|
let g = 0;
|
|
433
|
-
if (
|
|
453
|
+
if (x >= v)
|
|
434
454
|
return B;
|
|
435
455
|
for (const P in B) {
|
|
436
456
|
const n = B[P];
|
|
437
|
-
if (g >=
|
|
457
|
+
if (g >= x)
|
|
438
458
|
return e;
|
|
439
459
|
const m = G(n) ? String(n).length : 1;
|
|
440
|
-
if (m >
|
|
441
|
-
return e.push(String(n).slice(0,
|
|
460
|
+
if (m > x - g)
|
|
461
|
+
return e.push(String(n).slice(0, x - g)), g = x, e;
|
|
442
462
|
g += m, e.push(n);
|
|
443
463
|
}
|
|
444
464
|
return e;
|
|
445
465
|
}, H = () => {
|
|
446
|
-
var
|
|
466
|
+
var x, e, g;
|
|
447
467
|
if (T) {
|
|
448
468
|
if (E === 0) {
|
|
449
|
-
const P = s * T, m = ((
|
|
450
|
-
!m ||
|
|
469
|
+
const P = s * T, m = ((x = i.current) == null ? void 0 : x.offsetHeight) > P;
|
|
470
|
+
!m || f || N ? (L(
|
|
451
471
|
3
|
|
452
472
|
/* MEASURE_END */
|
|
453
473
|
), r(m), R([0, v, v])) : (r(!0), L(
|
|
@@ -457,10 +477,10 @@ function Yt(t) {
|
|
|
457
477
|
} else if (E === 1) {
|
|
458
478
|
const P = (e = $ == null ? void 0 : $.current) == null ? void 0 : e.offsetWidth, n = s * c;
|
|
459
479
|
if (P > s * c) {
|
|
460
|
-
const m = Math.max(n / P - 0.1, 0), w = Math.min(n / P + 0.1, 1), q = Math.floor(m * v), Y = Math.ceil(w * v),
|
|
480
|
+
const m = Math.max(n / P - 0.1, 0), w = Math.min(n / P + 0.1, 1), q = Math.floor(m * v), Y = Math.ceil(w * v), et = Math.floor(
|
|
461
481
|
(q + Y) / 2
|
|
462
482
|
);
|
|
463
|
-
|
|
483
|
+
h.current = et;
|
|
464
484
|
}
|
|
465
485
|
L(
|
|
466
486
|
2
|
|
@@ -490,7 +510,7 @@ function Yt(t) {
|
|
|
490
510
|
);
|
|
491
511
|
}, [
|
|
492
512
|
v,
|
|
493
|
-
|
|
513
|
+
f,
|
|
494
514
|
N,
|
|
495
515
|
c,
|
|
496
516
|
k,
|
|
@@ -500,8 +520,8 @@ function Yt(t) {
|
|
|
500
520
|
t.rows
|
|
501
521
|
]), dt(() => {
|
|
502
522
|
if ($.current && E === 0) {
|
|
503
|
-
const
|
|
504
|
-
M(
|
|
523
|
+
const x = $.current.offsetHeight;
|
|
524
|
+
M(x);
|
|
505
525
|
}
|
|
506
526
|
}, [E]), dt(() => {
|
|
507
527
|
H();
|
|
@@ -515,84 +535,84 @@ function Yt(t) {
|
|
|
515
535
|
}, tt = {
|
|
516
536
|
whiteSpace: "nowrap",
|
|
517
537
|
...A
|
|
518
|
-
}, F =
|
|
538
|
+
}, F = f ? {
|
|
519
539
|
textOverflow: "clip",
|
|
520
540
|
...A
|
|
521
541
|
} : A;
|
|
522
542
|
let D;
|
|
523
543
|
if (E === 0 || E === 1)
|
|
524
544
|
D = /* @__PURE__ */ Z("div", { children: [
|
|
525
|
-
/* @__PURE__ */ l("div", { ref: $, style: tt, children: E === 0 ?
|
|
545
|
+
/* @__PURE__ */ l("div", { ref: $, style: tt, children: E === 0 ? Zt : p(o, !1) }),
|
|
526
546
|
/* @__PURE__ */ l("div", { ref: i, style: { width: c, ...F }, children: p(o, C) })
|
|
527
547
|
] }), D = D.props.children;
|
|
528
548
|
else if (E === 2) {
|
|
529
|
-
const
|
|
549
|
+
const x = {
|
|
530
550
|
height: T * s,
|
|
531
551
|
overflow: "hidden"
|
|
532
552
|
};
|
|
533
553
|
D = /* @__PURE__ */ Z("div", { children: [
|
|
534
554
|
/* @__PURE__ */ l("div", { ref: i, style: { width: c, ...F }, children: p(Q(W), C) }),
|
|
535
|
-
/* @__PURE__ */ l("div", { style:
|
|
555
|
+
/* @__PURE__ */ l("div", { style: x, children: Q(h.current) })
|
|
536
556
|
] }), D = D.props.children;
|
|
537
557
|
} else E === 3 ? D = p(Q(W), C) : E === 4 && (D = p(o, !1));
|
|
538
558
|
return { ellipsisNode: D, isEllipsis: C, measureStatus: E };
|
|
539
559
|
}
|
|
540
|
-
function
|
|
560
|
+
function zt(t, o) {
|
|
541
561
|
const {
|
|
542
562
|
type: s,
|
|
543
563
|
bold: c,
|
|
544
564
|
disabled: N,
|
|
545
565
|
mark: p,
|
|
546
|
-
underline:
|
|
566
|
+
underline: f,
|
|
547
567
|
delete: y,
|
|
548
568
|
code: k
|
|
549
569
|
} = t, d = [], b = [];
|
|
550
|
-
return s && b.push(`${o}-${s}`), N && b.push(`${o}-disabled`), c && d.push("b"),
|
|
570
|
+
return s && b.push(`${o}-${s}`), N && b.push(`${o}-disabled`), c && d.push("b"), f && d.push("u"), y && d.push("del"), k && d.push("code"), p && d.push("mark"), {
|
|
551
571
|
component: d,
|
|
552
572
|
className: b
|
|
553
573
|
};
|
|
554
574
|
}
|
|
555
|
-
function
|
|
575
|
+
function te(t, o) {
|
|
556
576
|
const {
|
|
557
577
|
componentType: s,
|
|
558
578
|
style: c,
|
|
559
579
|
className: N,
|
|
560
580
|
children: p,
|
|
561
|
-
editable:
|
|
581
|
+
editable: f,
|
|
562
582
|
ellipsis: y,
|
|
563
583
|
heading: k,
|
|
564
584
|
blockquote: d,
|
|
565
585
|
...b
|
|
566
|
-
} = t, V = ct
|
|
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 ? {
|
|
567
587
|
rows: 1,
|
|
568
588
|
ellipsisStr: "...",
|
|
569
589
|
cssEllipsis: !1,
|
|
570
590
|
...K(y) ? y : {}
|
|
571
|
-
} : {}, B = r.wrapper ||
|
|
591
|
+
} : {}, B = r.wrapper || rt.Fragment, [h, G] = gt(!1, {
|
|
572
592
|
defaultValue: r.defaultExpanded,
|
|
573
593
|
value: r.expanded
|
|
574
|
-
}), { simpleEllipsis: O, ellipsisStyle: v } =
|
|
575
|
-
const w =
|
|
594
|
+
}), { simpleEllipsis: O, ellipsisStyle: v } = Yt(r), a = (n, m) => {
|
|
595
|
+
const w = ft(r.ellipsisStr) ? "..." : r.ellipsisStr, q = !ft(r.suffix) && r.suffix;
|
|
576
596
|
return /* @__PURE__ */ Z(B, { children: [
|
|
577
597
|
n,
|
|
578
|
-
m && !
|
|
598
|
+
m && !h && !O ? w : "",
|
|
579
599
|
q,
|
|
580
600
|
D(m)
|
|
581
601
|
] });
|
|
582
|
-
}, { ellipsisNode: Q, isEllipsis: H, measureStatus: A } =
|
|
602
|
+
}, { ellipsisNode: Q, isEllipsis: H, measureStatus: A } = Ut({
|
|
583
603
|
...r,
|
|
584
604
|
children: p,
|
|
585
|
-
expanding:
|
|
605
|
+
expanding: h,
|
|
586
606
|
width: j,
|
|
587
607
|
renderMeasureContent: a,
|
|
588
|
-
simpleEllipsis: O ||
|
|
589
|
-
}), tt =
|
|
608
|
+
simpleEllipsis: O || h
|
|
609
|
+
}), tt = Dt((n) => {
|
|
590
610
|
const { contentRect: m } = n == null ? void 0 : n[0];
|
|
591
611
|
if (m) {
|
|
592
612
|
const w = T.includes("code") ? m.width - 18 : m.width;
|
|
593
613
|
[
|
|
594
|
-
|
|
595
|
-
|
|
614
|
+
it.NO_NEED_ELLIPSIS,
|
|
615
|
+
it.MEASURE_END
|
|
596
616
|
].includes(A) && W(w);
|
|
597
617
|
}
|
|
598
618
|
}), F = X(null);
|
|
@@ -605,50 +625,54 @@ function Ut(t, o) {
|
|
|
605
625
|
}, [F.current]);
|
|
606
626
|
function D(n) {
|
|
607
627
|
return /* @__PURE__ */ l(xt, { children: /* @__PURE__ */ l(
|
|
608
|
-
|
|
628
|
+
Xt,
|
|
609
629
|
{
|
|
610
630
|
...t,
|
|
611
631
|
setEditing: L,
|
|
612
|
-
onClickExpand:
|
|
613
|
-
expanding:
|
|
632
|
+
onClickExpand: x,
|
|
633
|
+
expanding: h,
|
|
614
634
|
isEllipsis: n,
|
|
615
635
|
currentContext: V
|
|
616
636
|
}
|
|
617
637
|
) });
|
|
618
638
|
}
|
|
619
|
-
function
|
|
639
|
+
function x(n) {
|
|
620
640
|
var m, w;
|
|
621
|
-
G(!
|
|
641
|
+
G(!h), (m = t.onClickExpand) == null || m.call(t, n), (w = r.onExpand) == null || w.call(r, !h, n);
|
|
622
642
|
}
|
|
623
643
|
Et(() => {
|
|
624
644
|
var n;
|
|
625
645
|
(n = r.onEllipsis) == null || n.call(r, H);
|
|
626
|
-
}, [H]),
|
|
646
|
+
}, [H]), bt(o, () => R.current);
|
|
627
647
|
function e(n, m, w, q = {}) {
|
|
628
648
|
let Y = n;
|
|
629
|
-
return m.forEach((
|
|
630
|
-
const
|
|
631
|
-
Y =
|
|
649
|
+
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(
|
|
652
|
+
et,
|
|
653
|
+
It({ ...St }, mt),
|
|
654
|
+
Y
|
|
655
|
+
);
|
|
632
656
|
}), Y;
|
|
633
657
|
}
|
|
634
658
|
let g;
|
|
635
659
|
s === "Paragraph" ? g = d ? "blockquote" : "div" : s === "Title" ? g = `h${k}` : s === "Text" && (g = y ? "div" : "span");
|
|
636
660
|
function P() {
|
|
637
|
-
const n =
|
|
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 = {
|
|
638
662
|
style: c,
|
|
639
|
-
...H && !m && !
|
|
640
|
-
},
|
|
663
|
+
...H && !m && !h ? { title: n } : {}
|
|
664
|
+
}, mt = H && m && !h, ot = /* @__PURE__ */ l(
|
|
641
665
|
g,
|
|
642
666
|
{
|
|
643
667
|
ref: R,
|
|
644
668
|
className: _(
|
|
645
|
-
|
|
669
|
+
u,
|
|
646
670
|
M,
|
|
647
|
-
{ [`${
|
|
671
|
+
{ [`${u}-rtl`]: i },
|
|
648
672
|
N
|
|
649
673
|
),
|
|
650
|
-
...
|
|
651
|
-
...
|
|
674
|
+
...at,
|
|
675
|
+
...Ht(b, [
|
|
652
676
|
"spacing",
|
|
653
677
|
"type",
|
|
654
678
|
"close",
|
|
@@ -665,7 +689,7 @@ function Ut(t, o) {
|
|
|
665
689
|
"setEditing",
|
|
666
690
|
"forceShowExpand"
|
|
667
691
|
]),
|
|
668
|
-
children: O && A !==
|
|
692
|
+
children: O && A !== it.INIT && !h && H ? e(
|
|
669
693
|
// CSS folding style, need to wrap the text separately.
|
|
670
694
|
a(
|
|
671
695
|
/* @__PURE__ */ l("span", { style: v, children: p }),
|
|
@@ -675,71 +699,71 @@ function Ut(t, o) {
|
|
|
675
699
|
t,
|
|
676
700
|
// The simple-ellipsis class ensures that the ReactNode after the text is displayed correctly (no line breaks)
|
|
677
701
|
// Need to act on the immediate parent node of the text
|
|
678
|
-
{ className: `${
|
|
702
|
+
{ className: `${u}-simple-ellipsis` }
|
|
679
703
|
) : e(Q, T, t)
|
|
680
704
|
}
|
|
681
705
|
);
|
|
682
|
-
return
|
|
706
|
+
return mt ? /* @__PURE__ */ l(Y, { content: n, ...q, children: /* @__PURE__ */ l("span", { children: ot }) }) : ot;
|
|
683
707
|
}
|
|
684
708
|
return C ? /* @__PURE__ */ l(
|
|
685
|
-
|
|
709
|
+
Kt,
|
|
686
710
|
{
|
|
687
711
|
ref: o,
|
|
688
712
|
...t,
|
|
689
713
|
className: _(
|
|
690
|
-
|
|
714
|
+
u,
|
|
691
715
|
M,
|
|
692
|
-
{ [`${
|
|
693
|
-
`${
|
|
716
|
+
{ [`${u}-rtl`]: i },
|
|
717
|
+
`${u}-${g}`,
|
|
694
718
|
N
|
|
695
719
|
),
|
|
696
|
-
prefixCls:
|
|
720
|
+
prefixCls: u,
|
|
697
721
|
setEditing: L,
|
|
698
722
|
editableConfig: S
|
|
699
723
|
}
|
|
700
724
|
) : P();
|
|
701
725
|
}
|
|
702
|
-
const ht = U(
|
|
703
|
-
function
|
|
704
|
-
const { spacing: s = "default", className: c } = t, { getPrefixCls: N } = ct
|
|
726
|
+
const ht = U(te);
|
|
727
|
+
function ee(t, o) {
|
|
728
|
+
const { spacing: s = "default", className: c } = t, { getPrefixCls: N } = lt(ct), p = N("typography"), f = s === "close" ? _(`${p}-spacing-close`, c) : c;
|
|
705
729
|
return /* @__PURE__ */ l(
|
|
706
730
|
ht,
|
|
707
731
|
{
|
|
708
732
|
...t,
|
|
709
733
|
ref: o,
|
|
710
734
|
componentType: "Paragraph",
|
|
711
|
-
className:
|
|
735
|
+
className: f
|
|
712
736
|
}
|
|
713
737
|
);
|
|
714
738
|
}
|
|
715
739
|
const Nt = U(
|
|
716
|
-
|
|
740
|
+
ee
|
|
717
741
|
);
|
|
718
742
|
Nt.displayName = "Paragraph";
|
|
719
|
-
function
|
|
743
|
+
function oe(t, o) {
|
|
720
744
|
return /* @__PURE__ */ l(ht, { ...t, componentType: "Text", ref: o });
|
|
721
745
|
}
|
|
722
|
-
const Ct = U(
|
|
746
|
+
const Ct = U(oe);
|
|
723
747
|
Ct.displayName = "Text";
|
|
724
|
-
function
|
|
748
|
+
function ne(t, o) {
|
|
725
749
|
const { heading: s = 1, ...c } = t;
|
|
726
750
|
return /* @__PURE__ */ l(ht, { heading: s, ...c, componentType: "Title", ref: o });
|
|
727
751
|
}
|
|
728
|
-
const wt = U(
|
|
752
|
+
const wt = U(ne);
|
|
729
753
|
wt.displayName = "Title";
|
|
730
|
-
function
|
|
731
|
-
const { getPrefixCls: s } = ct
|
|
732
|
-
return /* @__PURE__ */ l("article", { ref: o, style: p, className: y, children:
|
|
754
|
+
function re(t, o) {
|
|
755
|
+
const { getPrefixCls: s } = lt(ct), c = s("typography"), { className: N, style: p, children: f } = t, y = _(c, N);
|
|
756
|
+
return /* @__PURE__ */ l("article", { ref: o, style: p, className: y, children: f });
|
|
733
757
|
}
|
|
734
|
-
const $t = U(
|
|
758
|
+
const $t = U(re);
|
|
735
759
|
$t.displayName = "Typography";
|
|
736
|
-
const
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
760
|
+
const pt = $t;
|
|
761
|
+
pt.Title = wt;
|
|
762
|
+
pt.Text = Ct;
|
|
763
|
+
pt.Paragraph = Nt;
|
|
764
|
+
pt.Ellipsis = Gt;
|
|
741
765
|
export {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
766
|
+
pt as T,
|
|
767
|
+
kn as l,
|
|
768
|
+
Ln as t
|
|
745
769
|
};
|