@unicom-cloud/ui 0.8.65 → 0.8.67

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 (358) hide show
  1. package/Affix.js +79 -79
  2. package/Alert.js +46 -46
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +74 -74
  5. package/Avatar.js +36 -36
  6. package/BackTop.js +35 -35
  7. package/Badge.js +55 -55
  8. package/Breadcrumb.js +42 -42
  9. package/Button.js +24 -24
  10. package/Calendar.js +230 -230
  11. package/Card.js +18 -18
  12. package/Carousel.js +165 -165
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +26 -26
  17. package/Comment.js +18 -18
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +28 -27
  20. package/DatePicker.js +872 -871
  21. package/Descriptions.js +34 -34
  22. package/Divider.js +19 -19
  23. package/Draggable.js +27 -26
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +110 -110
  26. package/Empty.js +3 -3
  27. package/Form.js +984 -945
  28. package/Grid.js +34 -34
  29. package/Icon.js +16 -16
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +7 -6
  33. package/InputNumber.js +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +24 -24
  36. package/Link.js +30 -30
  37. package/List.js +95 -95
  38. package/Mentions.js +85 -84
  39. package/Menu.js +2 -2
  40. package/Message.js +7 -6
  41. package/Modal.js +1 -1
  42. package/Notice.js +14 -3
  43. package/Notification.js +9 -7
  44. package/OverflowEllipsis.js +64 -62
  45. package/PageHeader.js +73 -73
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +60 -60
  49. package/Popover.js +31 -31
  50. package/Portal.js +23 -31
  51. package/Progress.js +22 -22
  52. package/Radio.js +2 -2
  53. package/Rate.js +24 -24
  54. package/ResizeBox.js +274 -271
  55. package/Result.js +3 -3
  56. package/Select.js +4 -4
  57. package/SelectView.js +257 -237
  58. package/Skeleton.js +46 -46
  59. package/Slider.js +286 -283
  60. package/Space.js +28 -28
  61. package/SpeechSynthesis.js +62 -55
  62. package/Spin.js +23 -23
  63. package/Statistic.js +80 -80
  64. package/Steps.js +67 -67
  65. package/Switch.js +47 -47
  66. package/Table.js +1463 -1395
  67. package/Tabs.js +5 -5
  68. package/Tag.js +45 -45
  69. package/TimePicker.js +154 -154
  70. package/Timeline.js +2 -2
  71. package/Tooltip.js +80 -79
  72. package/Transfer.js +103 -102
  73. package/Tree.js +3 -2
  74. package/TreeSelect.js +2 -2
  75. package/Trigger.js +699 -772
  76. package/Typography.js +756 -6
  77. package/Upload.js +2 -2
  78. package/VerificationCode.js +1 -1
  79. package/Version.js +1 -1
  80. package/VirtualList.js +1 -1
  81. package/Watermark.js +1 -1
  82. package/chunk/{DIx0qmCq.js → -UuKKT0Z.js} +29 -29
  83. package/chunk/{B8QV6E2b.js → AwZqeapI.js} +5 -5
  84. package/chunk/B5gK1Idp.js +19 -0
  85. package/chunk/B7FlazNB.js +24 -0
  86. package/chunk/{DXZEpA3t.js → BBvWDeuZ.js} +67 -67
  87. package/chunk/BCftTxEy.js +626 -0
  88. package/chunk/{CsbCHnFk.js → BGny4zSb.js} +60 -60
  89. package/chunk/BHF15Dog.js +98 -0
  90. package/chunk/BJQ5UNa-.js +1585 -0
  91. package/chunk/BP9sYyk9.js +8 -0
  92. package/chunk/BUdtVdnv.js +38 -0
  93. package/chunk/BVQlOzTS.js +11 -0
  94. package/chunk/B__a_gb_.js +519 -0
  95. package/chunk/BbEYToV1.js +10 -0
  96. package/chunk/BbdDQAnm.js +15 -0
  97. package/chunk/BdUcgWdu.js +11 -0
  98. package/chunk/BfbXSG70.js +26 -0
  99. package/chunk/BndfNLK4.js +186 -0
  100. package/chunk/BoMCZV6K.js +1098 -0
  101. package/chunk/Br0B6y1T.js +18 -0
  102. package/chunk/BrOW642m.js +130 -0
  103. package/chunk/BxUs8_Cr.js +9 -0
  104. package/chunk/{DK4KcodH.js → C42LIMP9.js} +244 -242
  105. package/chunk/C4YkFMzC.js +778 -0
  106. package/chunk/{CF6p9R93.js → C9Wcraj7.js} +21 -21
  107. package/chunk/{4-gvEY5y.js → CANgSlh3.js} +10 -10
  108. package/chunk/CJ_o9tZM.js +5 -0
  109. package/chunk/{Bqk6yh16.js → CK5m7rLl.js} +36 -36
  110. package/chunk/{CANaGbGR.js → CKNyIitu.js} +57 -56
  111. package/chunk/CLiqJm_T.js +10 -0
  112. package/chunk/{DjtWv6Wn.js → CNmmhbCn.js} +32 -32
  113. package/chunk/{BUCEs557.js → CP0odX99.js} +51 -51
  114. package/chunk/CPT-OZH2.js +14 -0
  115. package/chunk/CVSF8p0O.js +698 -0
  116. package/chunk/C_agcwLN.js +31 -0
  117. package/chunk/{DTjcKyDN.js → C_gJWGGh.js} +201 -201
  118. package/chunk/{CPcm9Cm5.js → CaasmWg_.js} +11 -11
  119. package/chunk/Ce1j9KTi.js +6 -0
  120. package/chunk/{D_-UD4vO.js → Cf5QNhkG.js} +18 -18
  121. package/chunk/CkNSv2U7.js +56 -0
  122. package/chunk/Cp2f70gB.js +9 -0
  123. package/chunk/CpegYjdC.js +16 -0
  124. package/chunk/CucI3KZr.js +20 -0
  125. package/chunk/CwoFBTYz.js +11 -0
  126. package/chunk/D2KPqPhV.js +17 -0
  127. package/chunk/D7NyvE5f.js +17 -0
  128. package/chunk/D8oTPQ2H.js +384 -0
  129. package/chunk/{CLBavO5c.js → DC1iHEiy.js} +87 -87
  130. package/chunk/{Dnycc1qJ.js → DFrfrmfK.js} +120 -119
  131. package/chunk/DGTIZ_0O.js +6 -0
  132. package/chunk/DJfpiZn_.js +25 -0
  133. package/chunk/DKr2_PYd.js +34 -0
  134. package/chunk/DNUz6zgo.js +11 -0
  135. package/chunk/DRtM649q.js +11 -0
  136. package/chunk/DS_mUWn6.js +41 -0
  137. package/chunk/DU6bs_19.js +10 -0
  138. package/chunk/DWdbwz22.js +10 -0
  139. package/chunk/DcveZuqd.js +6 -0
  140. package/chunk/DdVFknul.js +24 -0
  141. package/chunk/DgRfikwe.js +16 -0
  142. package/chunk/{DG-epQqF.js → DkyR2EfG.js} +66 -66
  143. package/chunk/{DUeHQKtx.js → DleQ5HwG.js} +42 -42
  144. package/chunk/DnrZEnQ_.js +27 -0
  145. package/chunk/DsRSHWtX.js +1025 -0
  146. package/chunk/Dz5BdmXo.js +270 -0
  147. package/chunk/EANe01DF.js +1030 -0
  148. package/chunk/{CwhPMMWy.js → Ey4YJCkX.js} +7 -7
  149. package/chunk/GoNx5R4F.js +873 -0
  150. package/chunk/HDUQku8d.js +20 -0
  151. package/chunk/HrAP__Hi.js +25 -0
  152. package/chunk/JPPo5nY_.js +9 -0
  153. package/chunk/{CIlGCedk.js → SLWP34OR.js} +90 -85
  154. package/chunk/VVKtwaGf.js +278 -0
  155. package/chunk/WPNpLxSI.js +16 -0
  156. package/chunk/{DLvMA1OW.js → WpO_DsK4.js} +49 -48
  157. package/chunk/fdU3ang6.js +14 -0
  158. package/chunk/{DqFhzTWC.js → fkclKOAL.js} +298 -292
  159. package/chunk/flvYlqx3.js +22 -0
  160. package/chunk/kTDayEpF.js +288 -0
  161. package/chunk/{DQDkV47j.js → pZoNQ75H.js} +31 -31
  162. package/chunk/qFf1w_Jq.js +8 -0
  163. package/chunk/{CH1UUxsg.js → w-kM1L5W.js} +155 -155
  164. package/hooks/index.js +53 -49
  165. package/hooks/useComputedState.js +2 -10
  166. package/hooks/useCreate.js +2 -7
  167. package/hooks/useForceUpdate.js +2 -7
  168. package/hooks/useId.js +2 -10
  169. package/hooks/useInView.js +2 -30
  170. package/hooks/useIntersectionObserver.js +2 -23
  171. package/hooks/useInterval.js +2 -17
  172. package/hooks/useIsFirstRender.js +2 -9
  173. package/hooks/useIsomorphicLayoutEffect.js +2 -5
  174. package/hooks/useKeyboardEvent.js +2 -16
  175. package/hooks/useMedia.js +2 -15
  176. package/hooks/useMergeProps.js +2 -18
  177. package/hooks/useMergeValue.js +2 -19
  178. package/hooks/useOnlineStatus.js +4 -0
  179. package/hooks/useOverflowHidden.js +2 -25
  180. package/hooks/useOverrideRef.js +2 -13
  181. package/hooks/usePersistCallback.js +2 -13
  182. package/hooks/usePrefersColorSchemeDark.js +4 -0
  183. package/hooks/usePrevious.js +2 -9
  184. package/hooks/useRefs.js +2 -9
  185. package/hooks/useResizeObserver.js +2 -15
  186. package/hooks/useStateCallback.js +2 -15
  187. package/hooks/useStateWithPromise.js +2 -24
  188. package/hooks/useUpdateEffect.js +2 -9
  189. package/hooks/useVerificationCode.js +73 -0
  190. package/hooks/useWatch.js +2 -10
  191. package/hooks/{use-watermark.js → useWatermark.js} +27 -26
  192. package/hooks/useWindowSize.js +2 -20
  193. package/index.js +571 -584
  194. package/locale/en-US.js +4 -2
  195. package/locale/interface.js +1 -4
  196. package/locale/ja-JP.js +3 -1
  197. package/locale/tr-TR.js +1 -1
  198. package/locale/zh-CN.js +3 -1
  199. package/locale/zh-HK.js +3 -1
  200. package/locale/zh-TW.js +3 -1
  201. package/package.json +1 -1
  202. package/style.css +1 -1
  203. package/types/anchor/util.d.ts +1 -1
  204. package/types/button/index.d.ts +2 -2
  205. package/types/color-picker/hooks/useColorPicker.d.ts +2 -2
  206. package/types/form/Control-old.d.ts +56 -0
  207. package/types/form/Control.d.ts +6 -54
  208. package/types/form/FormItem.d.ts +1 -1
  209. package/types/form/store.d.ts +0 -1
  210. package/types/hooks/index.d.ts +2 -0
  211. package/types/hooks/useComputedState.d.ts +1 -4
  212. package/types/hooks/useCreate.d.ts +1 -2
  213. package/types/hooks/useForceUpdate.d.ts +1 -2
  214. package/types/hooks/useId.d.ts +1 -2
  215. package/types/hooks/useInView.d.ts +1 -11
  216. package/types/hooks/useIntersectionObserver.d.ts +1 -7
  217. package/types/hooks/useInterval.d.ts +1 -2
  218. package/types/hooks/useIsFirstRender.d.ts +1 -2
  219. package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
  220. package/types/hooks/useKeyboardEvent.d.ts +1 -8
  221. package/types/hooks/useMedia.d.ts +1 -2
  222. package/types/hooks/useMergeProps.d.ts +1 -5
  223. package/types/hooks/useMergeValue.d.ts +1 -6
  224. package/types/hooks/useOnlineStatus.d.ts +1 -0
  225. package/types/hooks/useOverflowHidden.d.ts +1 -5
  226. package/types/hooks/useOverrideRef.d.ts +1 -6
  227. package/types/hooks/usePersistCallback.d.ts +1 -2
  228. package/types/hooks/usePrefersColorSchemeDark.d.ts +1 -0
  229. package/types/hooks/usePrevious.d.ts +1 -3
  230. package/types/hooks/useRefs.d.ts +1 -2
  231. package/types/hooks/useResizeObserver.d.ts +1 -6
  232. package/types/hooks/useStateCallback.d.ts +1 -5
  233. package/types/hooks/useStateWithPromise.d.ts +1 -2
  234. package/types/hooks/useUpdateEffect.d.ts +1 -3
  235. package/types/hooks/useWatch.d.ts +1 -3
  236. package/types/hooks/useWindowSize.d.ts +1 -5
  237. package/types/image/interface.d.ts +1 -0
  238. package/types/index.d.ts +157 -86
  239. package/types/input/Input.d.ts +1 -1
  240. package/types/input/Textarea.d.ts +2 -2
  241. package/types/locale/en-US.d.ts +2 -0
  242. package/types/locale/interface.d.ts +1 -2
  243. package/types/locale/ja-JP.d.ts +2 -0
  244. package/types/locale/zh-CN.d.ts +2 -0
  245. package/types/locale/zh-HK.d.ts +2 -0
  246. package/types/locale/zh-TW.d.ts +2 -0
  247. package/types/menu/context.d.ts +1 -1
  248. package/types/message/index.d.ts +14 -14
  249. package/types/message/interface.d.ts +2 -0
  250. package/types/modal/config.d.ts +0 -1
  251. package/types/modal/interface.d.ts +0 -1
  252. package/types/notice/index.d.ts +2 -27
  253. package/types/notification/index.d.ts +15 -16
  254. package/types/notification/interface.d.ts +2 -0
  255. package/types/notification/withNotification.d.ts +2 -0
  256. package/types/select/util.d.ts +1 -2
  257. package/types/select-view/interface.d.ts +2 -1
  258. package/types/speech-synthesis/index.d.ts +1 -1
  259. package/types/table/constant.d.ts +2 -0
  260. package/types/table/hook/useThResizable.d.ts +7 -0
  261. package/types/table/index.d.ts +10 -1
  262. package/types/table/style/index.d.ts +1 -0
  263. package/types/table/th-resizable/index.d.ts +2 -0
  264. package/types/table/thead/Column.d.ts +1 -2
  265. package/types/tree/Tree.d.ts +12 -67
  266. package/types/tree-select/Select.d.ts +2 -2
  267. package/types/trigger/index.d.ts +2 -120
  268. package/types/trigger/interface.d.ts +2 -1
  269. package/types/utils/CSSTransition.d.ts +2 -3
  270. package/types/utils/caseName.d.ts +1 -1
  271. package/types/utils/className.d.ts +1 -1
  272. package/types/utils/constant.d.ts +2 -2
  273. package/types/utils/copy.d.ts +1 -1
  274. package/types/utils/dayjs.d.ts +1 -21
  275. package/types/utils/dom.d.ts +1 -6
  276. package/types/utils/fileToURL.d.ts +1 -1
  277. package/types/utils/fillNBSP.d.ts +1 -1
  278. package/types/utils/getHighlightText.d.ts +1 -5
  279. package/types/utils/getHotkeyHandler.d.ts +1 -8
  280. package/types/utils/getStringLength.d.ts +1 -1
  281. package/types/utils/include.d.ts +1 -1
  282. package/types/utils/index.d.ts +3 -4
  283. package/types/utils/is.d.ts +1 -16
  284. package/types/utils/keyboardCode.d.ts +3 -0
  285. package/types/utils/lodash.d.ts +1 -17
  286. package/types/utils/mergeProps.d.ts +1 -1
  287. package/types/utils/mergedToString.d.ts +1 -1
  288. package/types/utils/omit.d.ts +1 -1
  289. package/types/utils/pad.d.ts +1 -2
  290. package/types/utils/pick.d.ts +2 -4
  291. package/types/utils/reactDOM.d.ts +1 -7
  292. package/types/utils/resizeObserverEffect.d.ts +2 -0
  293. package/types/utils/saveAs.d.ts +1 -1
  294. package/types/utils/screenfull.d.ts +2 -0
  295. package/types/utils/scrollIntoView.d.ts +1 -2
  296. package/types/utils/style.d.ts +1 -3
  297. package/types/utils/throttleByRaf.d.ts +1 -5
  298. package/types/utils/throttleByRaf2.d.ts +1 -0
  299. package/types/utils/warning.d.ts +1 -2
  300. package/types/version/index.d.ts +1 -1
  301. package/utils/CSSTransition.js +2 -6
  302. package/utils/className.js +2 -2
  303. package/utils/constant.js +8 -9
  304. package/utils/contextHolder.js +1 -1
  305. package/utils/copy.js +1 -1
  306. package/utils/dayjs.js +14 -173
  307. package/utils/dom.js +33 -29
  308. package/utils/fillNBSP.js +2 -4
  309. package/utils/getHighlightText.js +2 -38
  310. package/utils/getHotkeyHandler.js +2 -25
  311. package/utils/getStringLength.js +2 -7
  312. package/utils/include.js +2 -7
  313. package/utils/index.js +237 -240
  314. package/utils/is.js +116 -156
  315. package/utils/keyboardCode.js +27 -0
  316. package/utils/mergeProps.js +2 -9
  317. package/utils/mergedToString.js +2 -13
  318. package/utils/omit.js +2 -9
  319. package/utils/pad.js +12 -12
  320. package/utils/pick.js +4 -15
  321. package/utils/reactDOM.js +3 -54
  322. package/utils/resizeObserverEffect.js +4 -0
  323. package/utils/saveAs.js +1 -1
  324. package/utils/screenfull.js +4 -0
  325. package/utils/scrollIntoView.js +2 -21
  326. package/utils/style.js +12 -11
  327. package/utils/throttleByRaf.js +13 -12
  328. package/utils/throttleByRaf2.js +5 -0
  329. package/utils/warning.js +5 -4
  330. package/NotificationBase.js +0 -53
  331. package/chunk/1GQdnTJp.js +0 -284
  332. package/chunk/BAWsPQBM.js +0 -11
  333. package/chunk/BS09tn7B.js +0 -638
  334. package/chunk/BqGtwxTi.js +0 -777
  335. package/chunk/BqufsN8i.js +0 -376
  336. package/chunk/BtlvlGQN.js +0 -278
  337. package/chunk/C2lIz2F9.js +0 -60
  338. package/chunk/CGZ0In1p.js +0 -776
  339. package/chunk/CWgltRVL.js +0 -698
  340. package/chunk/D3NFxdmG.js +0 -518
  341. package/chunk/DApXtulb.js +0 -1102
  342. package/chunk/DlLL5JQo.js +0 -1501
  343. package/chunk/Dv_xRzvR.js +0 -269
  344. package/chunk/Ek8U5CTN.js +0 -1032
  345. package/chunk/ewRDIDUz.js +0 -995
  346. package/chunk/l0sNRNKZ.js +0 -1
  347. package/chunk/tYXLFPVI.js +0 -871
  348. package/hooks/use-verification-code.js +0 -73
  349. package/types/notification-base/index.d.ts +0 -15
  350. package/types/notification-base/style/index.d.ts +0 -2
  351. package/types/trigger/Portal.d.ts +0 -7
  352. package/types/utils/keyCode.d.ts +0 -45
  353. package/types/utils/raf.d.ts +0 -3
  354. package/types/utils/throttleByRafV2.d.ts +0 -5
  355. package/utils/keyCode.js +0 -12
  356. package/utils/raf.js +0 -19
  357. package/utils/throttleByRafV2.js +0 -16
  358. /package/style/{variable.less → variables.less} +0 -0
package/Typography.js CHANGED
@@ -1,8 +1,758 @@
1
- import { E as r, P as y, a as s, b as T, T as o } from "./chunk/CGZ0In1p.js";
1
+ import { jsxs as Q, jsx as n, Fragment as gt } from "react/jsx-runtime";
2
+ import rt, { forwardRef as Y, useContext as st, useRef as F, useState as G, useMemo as et, useEffect as ot, useCallback as Tt, useImperativeHandle as St } from "react";
3
+ import { a as lt } from "./chunk/BJQ5UNa-.js";
4
+ import { c as Pt } from "./chunk/B5gK1Idp.js";
5
+ import { R as yt } from "./chunk/HDUQku8d.js";
6
+ /* empty css */
7
+ import "lodash/isEqualWith";
8
+ import "./chunk/CkNSv2U7.js";
9
+ import It from "lodash/isNumber";
10
+ import kt from "lodash/merge";
11
+ import { isServerRendering as Lt } from "./utils/dom.js";
12
+ import "./chunk/HrAP__Hi.js";
13
+ import "react-dom";
14
+ import "./chunk/CSC_V_25.js";
15
+ import "./chunk/Ce1j9KTi.js";
16
+ import "lodash/debounce";
17
+ import "./chunk/BoMCZV6K.js";
18
+ import "./chunk/CNmmhbCn.js";
19
+ import "./chunk/BndfNLK4.js";
20
+ import "lodash/camelCase";
21
+ import "lodash/capitalize";
22
+ import "lodash/cloneDeep";
23
+ import "lodash/get";
24
+ import "lodash/has";
25
+ import "lodash/kebabCase";
26
+ import "lodash/mergeWith";
27
+ import "lodash/set";
28
+ import "lodash/setWith";
29
+ import "lodash/snakeCase";
30
+ import "lodash/startCase";
31
+ import "lodash/throttle";
32
+ import "lodash/uniq";
33
+ import "lodash/upperFirst";
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";
40
+ import { m as H } from "./chunk/JPPo5nY_.js";
41
+ import "lodash/isString.js";
42
+ import "./chunk/DC1iHEiy.js";
43
+ import "lodash/escapeRegExp";
44
+ import Ot from "lodash/isArray";
45
+ import Rt from "lodash/isString";
46
+ import mt from "lodash/isPlainObject";
47
+ import "./chunk/Cf5QNhkG.js";
48
+ import ft from "./utils/throttleByRaf.js";
49
+ import "lodash/isFunction";
50
+ import "./chunk/DleQ5HwG.js";
51
+ import "./Affix.js";
52
+ import "./Alert.js";
53
+ import "./chunk/kTDayEpF.js";
54
+ import "./AutoComplete.js";
55
+ import "./Avatar.js";
56
+ import "./BackTop.js";
57
+ import "./Badge.js";
58
+ import "./Breadcrumb.js";
59
+ import "./Button.js";
60
+ import "./Calendar.js";
61
+ import "./Card.js";
62
+ import "./Carousel.js";
63
+ import "./chunk/C_gJWGGh.js";
64
+ import "./chunk/DkyR2EfG.js";
65
+ import "./chunk/WpO_DsK4.js";
66
+ import "./Comment.js";
67
+ import Mt from "./Copy.js";
68
+ import "./DatePicker.js";
69
+ import "./Descriptions.js";
70
+ import "./Divider.js";
71
+ import "./chunk/CP0odX99.js";
72
+ import "./Dropdown.js";
73
+ import "./Form.js";
74
+ import "./Grid.js";
75
+ import "./Icon.js";
76
+ import "./chunk/SLWP34OR.js";
77
+ import { I as Wt } from "./chunk/C42LIMP9.js";
78
+ import "./chunk/D8oTPQ2H.js";
79
+ import "./Layout.js";
80
+ import "./Link.js";
81
+ import "./List.js";
82
+ import "./Mentions.js";
83
+ import "./chunk/CVSF8p0O.js";
84
+ import "./chunk/BCftTxEy.js";
85
+ import "./PageHeader.js";
86
+ import "./chunk/w-kM1L5W.js";
87
+ import "./Popconfirm.js";
88
+ import Ht from "./Popover.js";
89
+ import "./Portal.js";
90
+ import "./Progress.js";
91
+ import "./ColorPicker.js";
92
+ import "./Loading.js";
93
+ import "./chunk/BGny4zSb.js";
94
+ import "./Rate.js";
95
+ import "./ResizeBox.js";
96
+ import "./Result.js";
97
+ import "./chunk/C4YkFMzC.js";
98
+ import "./Skeleton.js";
99
+ import "./Slider.js";
100
+ import "./Space.js";
101
+ import "./SpeechSynthesis.js";
102
+ import "./Spin.js";
103
+ import "./Statistic.js";
104
+ import "./Steps.js";
105
+ import "./SuspenseFallbackTest.js";
106
+ import "./Switch.js";
107
+ import "./Table.js";
108
+ import "./chunk/GoNx5R4F.js";
109
+ import "./Tag.js";
110
+ import "./TimePicker.js";
111
+ import "./chunk/C9Wcraj7.js";
112
+ import ut from "./Tooltip.js";
113
+ import "./Transfer.js";
114
+ import "./chunk/DsRSHWtX.js";
115
+ import "./chunk/DFrfrmfK.js";
116
+ import "./Trigger.js";
117
+ import { c as Et } from "./chunk/BbEYToV1.js";
118
+ import { u as nt } from "./chunk/BbdDQAnm.js";
119
+ import { c as Bt } from "./chunk/BdUcgWdu.js";
120
+ import { l as Nt } from "./chunk/flvYlqx3.js";
121
+ import Dt from "@unicom-cloud/icons/IconUiEdit";
122
+ import { h as zt } from "./chunk/D2KPqPhV.js";
123
+ import _t from "lodash/isUndefined";
124
+ import { s as dt } from "./chunk/DcveZuqd.js";
125
+ import K from "lodash/isPlainObject.js";
126
+ import xt from "lodash/isUndefined.js";
127
+ import "./chunk/EANe01DF.js";
128
+ import "./chunk/-UuKKT0Z.js";
129
+ import "./chunk/CaasmWg_.js";
130
+ const jt = {
131
+ rows: 1,
132
+ expandable: !0,
133
+ defaultExpanded: !1
134
+ }, Vt = (t, i) => {
135
+ var x;
136
+ const r = st(lt), l = Pt(
137
+ t,
138
+ jt,
139
+ (x = r.componentConfig) == null ? void 0 : x["Typography.Ellipsis"]
140
+ ), {
141
+ className: E,
142
+ style: p,
143
+ rows: f,
144
+ disabled: g,
145
+ showTooltip: S,
146
+ children: a,
147
+ expandable: b,
148
+ expandRender: B,
149
+ onExpand: N,
150
+ onEllipsis: o
151
+ } = l, { locale: u } = r, k = Lt ? !1 : /^((?!chrome|android).)*safari/i.test((navigator == null ? void 0 : navigator.userAgent) ?? ""), v = F(null), L = F(null), [y, P] = G(""), [D, O] = G(!1), I = F(null), C = F(null), [e, R] = yt(!1, {
152
+ defaultValue: l.defaultExpanded,
153
+ value: l.expanded
154
+ }), [h, j] = G(!1), z = et(() => K(b) ? !b.single && f === 1 : f === 1, [f, b]), w = et(() => K(S) ? {
155
+ tooltip: !0,
156
+ tooltipProps: S
157
+ } : {
158
+ tooltip: !!S,
159
+ tooltipProps: S
160
+ }, [S]);
161
+ ot(() => {
162
+ if (L.current) {
163
+ const m = L.current.textContent;
164
+ m && P(m);
165
+ }
166
+ }, [a, L]);
167
+ const c = r.getPrefixCls("ellipsis"), A = () => B ? B(e) : /* @__PURE__ */ n("span", { className: `${c}-action-text`, children: e ? u.Typography.fold : u.Typography.unfold }), M = () => b && h ? /* @__PURE__ */ n(
168
+ "div",
169
+ {
170
+ className: H(`${c}-action`, {
171
+ [`${c}-action-collapsed`]: !e
172
+ }),
173
+ onClick: (m) => {
174
+ e ? (R(!1), N == null || N(!1, m)) : (R(!0), O(!1), N == null || N(!0, m));
175
+ },
176
+ children: A()
177
+ }
178
+ ) : null, q = Tt(
179
+ ft(() => {
180
+ C.current && I.current && ((z ? C.current.offsetWidth > I.current.offsetWidth : C.current.offsetHeight > I.current.offsetHeight) ? h === !1 && (j(!0), o == null || o(!0)) : h === !0 && (j(!1), o == null || o(!1)));
181
+ }),
182
+ [h, z]
183
+ );
184
+ ot(() => {
185
+ const m = Nt(
186
+ [I.current, C.current],
187
+ q
188
+ );
189
+ return () => {
190
+ m();
191
+ };
192
+ }, [I.current, C.current]);
193
+ const Z = () => g ? null : /* @__PURE__ */ n(
194
+ "div",
195
+ {
196
+ className: z ? H(`${c}-content-mirror`, `${c}-single`) : H(
197
+ `${c}-content-mirror`,
198
+ `${c}-multiple`,
199
+ `${c}-collapsed`
200
+ ),
201
+ style: {
202
+ WebkitBoxOrient: "vertical",
203
+ MozBoxOrient: "vertical",
204
+ WebkitLineClamp: f
205
+ },
206
+ ref: I,
207
+ children: /* @__PURE__ */ n("span", { ref: C, className: `${c}-text`, children: a })
208
+ }
209
+ ), X = () => z ? /* @__PURE__ */ n("div", { className: H(`${c}-content`, `${c}-single`), children: /* @__PURE__ */ n("span", { ref: L, className: `${c}-text`, children: a }) }) : k ? /* @__PURE__ */ Q(
210
+ "div",
211
+ {
212
+ className: H(`${c}-content`, `${c}-multiple`),
213
+ title: !w.tooltip && h && !e ? y : void 0,
214
+ children: [
215
+ !e && M(),
216
+ /* @__PURE__ */ n(
217
+ "span",
218
+ {
219
+ ref: L,
220
+ className: H(`${c}-text`, {
221
+ [`${c}-collapsed`]: !e
222
+ }),
223
+ style: {
224
+ WebkitBoxOrient: "vertical",
225
+ MozBoxOrient: "vertical",
226
+ WebkitLineClamp: f
227
+ },
228
+ children: a
229
+ }
230
+ ),
231
+ e && M()
232
+ ]
233
+ }
234
+ ) : /* @__PURE__ */ Q(
235
+ "div",
236
+ {
237
+ className: H(`${c}-content`, `${c}-multiple`, {
238
+ [`${c}-collapsed`]: !e
239
+ }),
240
+ style: {
241
+ WebkitBoxOrient: "vertical",
242
+ MozBoxOrient: "vertical",
243
+ WebkitLineClamp: f
244
+ },
245
+ title: !w.tooltip && h && !e ? y : void 0,
246
+ children: [
247
+ !e && M(),
248
+ /* @__PURE__ */ n("span", { ref: L, className: `${c}-text`, children: a }),
249
+ e && M()
250
+ ]
251
+ }
252
+ ), W = () => g ? /* @__PURE__ */ n("div", { className: `${c}-content`, children: /* @__PURE__ */ n("span", { ref: L, className: `${c}-text`, children: a }) }) : w.tooltip ? /* @__PURE__ */ n(
253
+ ut,
254
+ {
255
+ content: y,
256
+ popupVisible: D,
257
+ disabled: !h || e,
258
+ triggerProps: {
259
+ mouseEnterDelay: 100
260
+ },
261
+ onVisibleChange: (m) => {
262
+ m ? h && !e && O(!0) : O(!1);
263
+ },
264
+ ...w.tooltipProps,
265
+ children: X()
266
+ }
267
+ ) : X();
268
+ return /* @__PURE__ */ Q("div", { ref: v, className: H(c, E), style: p, children: [
269
+ Z(),
270
+ W()
271
+ ] });
272
+ }, Ft = Y(Vt);
273
+ function Gt(t, i) {
274
+ const { prefixCls: r, children: l, setEditing: E, editableConfig: p, style: f } = t, g = H(
275
+ `${r}-typography`,
276
+ `${r}-edit-content`,
277
+ t.className
278
+ ), S = nt(l), a = F(null);
279
+ ot(() => {
280
+ var o, u;
281
+ if (a.current && ((u = (o = a.current).focus) == null || u.call(o)), a.current && a.current.dom) {
282
+ const { length: k } = a.current.dom.value;
283
+ a.current.dom.setSelectionRange(k, k);
284
+ }
285
+ }, []);
286
+ function b() {
287
+ var o;
288
+ E(!1), (o = p.onEnd) == null || o.call(p, S);
289
+ }
290
+ function B(o) {
291
+ var u;
292
+ (u = p.onChange) == null || u.call(p, o);
293
+ }
294
+ function N() {
295
+ b();
296
+ }
297
+ return /* @__PURE__ */ n("div", { className: g, style: f, ref: i, children: /* @__PURE__ */ n(
298
+ Wt.TextArea,
299
+ {
300
+ className: `${r}-edit-content-textarea`,
301
+ onBlur: N,
302
+ ref: a,
303
+ value: S,
304
+ autoSize: !0,
305
+ onChange: B,
306
+ onPressEnter: b
307
+ }
308
+ ) });
309
+ }
310
+ const qt = Y(Gt);
311
+ function Xt(t) {
312
+ var C, e, R, h, j;
313
+ const {
314
+ children: i,
315
+ copyable: r,
316
+ editable: l,
317
+ ellipsis: E,
318
+ expanding: p,
319
+ setEditing: f,
320
+ onClickExpand: g,
321
+ forceShowExpand: S,
322
+ isEllipsis: a,
323
+ currentContext: b = {}
324
+ } = t, B = zt(), { getPrefixCls: N, locale: o } = b, u = N("typography"), k = mt(E) ? E : {}, v = mt(l) ? l : {}, L = Ot(k.expandNodes) ? k.expandNodes : [(C = o == null ? void 0 : o.Typography) == null ? void 0 : C.fold, (e = o == null ? void 0 : o.Typography) == null ? void 0 : e.unfold], y = (z) => {
325
+ var w;
326
+ (w = v.onStart) == null || w.call(v, nt(i), z), f(!0);
327
+ }, P = mt(r) ? { ...r } : {};
328
+ P.text === void 0 && (P.text = nt(i));
329
+ const D = !!r && /* @__PURE__ */ n(
330
+ Mt,
331
+ {
332
+ ...P,
333
+ className: `${u}-operation-copy`,
334
+ tooltipProps: P.tooltipProps
335
+ }
336
+ ), O = l && /* @__PURE__ */ n(
337
+ ut,
338
+ {
339
+ content: (R = o == null ? void 0 : o.Typography) == null ? void 0 : R.edit,
340
+ ...v.tooltipProps,
341
+ children: /* @__PURE__ */ n(
342
+ "span",
343
+ {
344
+ tabIndex: 0,
345
+ "aria-label": (h = o == null ? void 0 : o.Typography) == null ? void 0 : h.edit,
346
+ role: "button",
347
+ className: `${u}-operation-edit`,
348
+ onClick: y,
349
+ ...B({
350
+ onPressEnter: y
351
+ }),
352
+ children: /* @__PURE__ */ n(Dt, {})
353
+ }
354
+ )
355
+ }
356
+ ), I = S || k.expandable && a ? /* @__PURE__ */ n(
357
+ "a",
358
+ {
359
+ className: `${u}-operation-expand`,
360
+ onClick: g,
361
+ role: "button",
362
+ tabIndex: 0,
363
+ "aria-label": (j = o == null ? void 0 : o.Typography) == null ? void 0 : j.unfold,
364
+ ...B({
365
+ onPressEnter: g
366
+ }),
367
+ children: p ? L[0] : L[1]
368
+ }
369
+ ) : null;
370
+ return ot(() => () => {
371
+ }, []), /* @__PURE__ */ Q(gt, { children: [
372
+ I,
373
+ O,
374
+ D
375
+ ] });
376
+ }
377
+ const At = (t, i) => {
378
+ if (typeof window < "u" && window.CSS && window.CSS.supports)
379
+ return _t(i) ? window.CSS.supports(t) : window.CSS.supports(t, i);
380
+ if (typeof document < "u" && document.createElement) {
381
+ const r = document.createElement("div");
382
+ return r.setAttribute("style", `${t}:${i};`), typeof r.style[t] < "u";
383
+ }
384
+ return !1;
385
+ }, Jt = {
386
+ display: " -webkit-box",
387
+ "-webkit-line-clamp": 2
388
+ }, Kt = () => Object.entries(Jt).every(
389
+ ([t, i]) => At(t, i)
390
+ );
391
+ function Qt(t) {
392
+ const { cssEllipsis: i, ellipsisStr: r = "...", suffix: l, rows: E } = t, p = et(() => !i || E > 1 && !Kt() ? !1 : r === "..." && !l, [r, i, E, l]), f = {
393
+ textOverflow: "ellipsis",
394
+ whiteSpace: "nowrap",
395
+ overflow: "hidden"
396
+ }, g = {
397
+ textOverflow: "ellipsis",
398
+ whiteSpace: "normal",
399
+ overflow: "hidden",
400
+ WebkitLineClamp: `${t.rows}`,
401
+ WebkitBoxOrient: "vertical",
402
+ display: "-webkit-box"
403
+ };
404
+ return {
405
+ simpleEllipsis: p,
406
+ ellipsisStyle: p ? t.rows > 1 ? g : f : {}
407
+ };
408
+ }
409
+ const Yt = "hxj";
410
+ 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 || {});
411
+ function Zt(t) {
412
+ const {
413
+ children: i,
414
+ rows: r = 1,
415
+ width: l,
416
+ expanding: E,
417
+ renderMeasureContent: p,
418
+ simpleEllipsis: f,
419
+ onEllipsis: g,
420
+ suffix: S,
421
+ expandNodes: a,
422
+ expandable: b,
423
+ ellipsisStr: B
424
+ } = t, N = F(), o = F(), [u, k] = G([0, 0, 0]), [v, L] = G(0), [y, P] = G(
425
+ 4
426
+ /* NO_NEED_ELLIPSIS */
427
+ ), [D, O, I] = u, [C, e] = G(!1), R = et(() => rt.Children.toArray(i), [i]), h = F(0);
428
+ Et(() => {
429
+ g == null || g(C);
430
+ }, [C]);
431
+ const j = (x) => Rt(x) || It(x), z = (x) => {
432
+ let m = 0;
433
+ return x.forEach((T) => {
434
+ j(T) ? m += String(T).length : m += 1;
435
+ }), m;
436
+ }, w = et(() => z(R), [R]), c = ft(
437
+ (x) => k(x)
438
+ ), A = (x) => {
439
+ const m = [];
440
+ let T = 0;
441
+ if (x >= w)
442
+ return R;
443
+ for (const _ in R) {
444
+ const s = R[_];
445
+ if (T >= x)
446
+ return m;
447
+ const d = j(s) ? String(s).length : 1;
448
+ if (d > x - T)
449
+ return m.push(String(s).slice(0, x - T)), T = x, m;
450
+ T += d, m.push(s);
451
+ }
452
+ return m;
453
+ }, M = () => {
454
+ var x, m, T;
455
+ if (v) {
456
+ if (y === 0) {
457
+ const _ = r * v, d = ((x = o.current) == null ? void 0 : x.offsetHeight) > _;
458
+ !d || f || E ? (P(
459
+ 3
460
+ /* MEASURE_END */
461
+ ), e(d), k([0, w, w])) : (e(!0), P(
462
+ 1
463
+ /* BEFORE_MEASURE */
464
+ ));
465
+ } else if (y === 1) {
466
+ const _ = (m = N == null ? void 0 : N.current) == null ? void 0 : m.offsetWidth, s = r * l;
467
+ if (_ > r * l) {
468
+ const d = Math.max(s / _ - 0.1, 0), $ = Math.min(s / _ + 0.1, 1), V = Math.floor(d * w), J = Math.ceil($ * w), U = Math.floor(
469
+ (V + J) / 2
470
+ );
471
+ h.current = U;
472
+ }
473
+ P(
474
+ 2
475
+ /* MEASURING */
476
+ );
477
+ } else if (y === 2)
478
+ if (D !== I - 1) {
479
+ const _ = (T = o.current) == null ? void 0 : T.offsetHeight, s = r * v;
480
+ let d = D, $ = I;
481
+ _ <= s ? d = O : $ = O;
482
+ const V = Math.floor(($ + d) / 2);
483
+ c([d, V, $]);
484
+ } else
485
+ c([D, D, D]), P(
486
+ 3
487
+ /* MEASURE_END */
488
+ );
489
+ }
490
+ };
491
+ dt(() => {
492
+ t.rows && l ? (k([0, Math.floor(w / 2), w]), P(
493
+ 0
494
+ /* INIT */
495
+ )) : P(
496
+ 4
497
+ /* NO_NEED_ELLIPSIS */
498
+ );
499
+ }, [
500
+ w,
501
+ f,
502
+ E,
503
+ l,
504
+ S,
505
+ a,
506
+ b,
507
+ B,
508
+ t.rows
509
+ ]), dt(() => {
510
+ if (N.current && y === 0) {
511
+ const x = N.current.offsetHeight;
512
+ L(x);
513
+ }
514
+ }, [y]), dt(() => {
515
+ M();
516
+ }, [y, O, D, I, v]);
517
+ const q = {
518
+ zIndex: -999,
519
+ position: "fixed",
520
+ opacity: 0,
521
+ padding: 0,
522
+ margin: 0
523
+ }, Z = {
524
+ whiteSpace: "nowrap",
525
+ ...q
526
+ }, X = f ? {
527
+ textOverflow: "clip",
528
+ ...q
529
+ } : q;
530
+ let W;
531
+ if (y === 0 || y === 1)
532
+ W = /* @__PURE__ */ Q("div", { children: [
533
+ /* @__PURE__ */ n("div", { ref: N, style: Z, children: y === 0 ? Yt : p(i, !1) }),
534
+ /* @__PURE__ */ n("div", { ref: o, style: { width: l, ...X }, children: p(i, C) })
535
+ ] }), W = W.props.children;
536
+ else if (y === 2) {
537
+ const x = {
538
+ height: v * r,
539
+ overflow: "hidden"
540
+ };
541
+ W = /* @__PURE__ */ Q("div", { children: [
542
+ /* @__PURE__ */ n("div", { ref: o, style: { width: l, ...X }, children: p(A(O), C) }),
543
+ /* @__PURE__ */ n("div", { style: x, children: A(h.current) })
544
+ ] }), W = W.props.children;
545
+ } else y === 3 ? W = p(A(O), C) : y === 4 && (W = p(i, !1));
546
+ return { ellipsisNode: W, isEllipsis: C, measureStatus: y };
547
+ }
548
+ function Ut(t, i) {
549
+ const {
550
+ type: r,
551
+ bold: l,
552
+ disabled: E,
553
+ mark: p,
554
+ underline: f,
555
+ delete: g,
556
+ code: S
557
+ } = t, a = [], b = [];
558
+ return r && b.push(`${i}-${r}`), E && b.push(`${i}-disabled`), l && a.push("b"), f && a.push("u"), g && a.push("del"), S && a.push("code"), p && a.push("mark"), {
559
+ component: a,
560
+ className: b
561
+ };
562
+ }
563
+ function te(t, i) {
564
+ const {
565
+ componentType: r,
566
+ style: l,
567
+ className: E,
568
+ children: p,
569
+ editable: f,
570
+ ellipsis: g,
571
+ heading: S,
572
+ blockquote: a,
573
+ ...b
574
+ } = t, B = st(lt), { getPrefixCls: N, rtl: o } = B, u = N("typography"), k = F(), { component: v, className: L } = Ut(t, u), [y, P] = G(!1), [D, O] = G(0), I = K(f) ? f : {}, C = "editing" in I ? I.editing : y, e = g ? {
575
+ rows: 1,
576
+ ellipsisStr: "...",
577
+ cssEllipsis: !1,
578
+ ...K(g) ? g : {}
579
+ } : {}, R = e.wrapper || rt.Fragment, [h, j] = yt(!1, {
580
+ defaultValue: e.defaultExpanded,
581
+ value: e.expanded
582
+ }), { simpleEllipsis: z, ellipsisStyle: w } = Qt(e), c = (s, d) => {
583
+ const $ = xt(e.ellipsisStr) ? "..." : e.ellipsisStr, V = !xt(e.suffix) && e.suffix;
584
+ return /* @__PURE__ */ Q(R, { children: [
585
+ s,
586
+ d && !h && !z ? $ : "",
587
+ V,
588
+ W(d)
589
+ ] });
590
+ }, { ellipsisNode: A, isEllipsis: M, measureStatus: q } = Zt({
591
+ ...e,
592
+ children: p,
593
+ expanding: h,
594
+ width: D,
595
+ renderMeasureContent: c,
596
+ simpleEllipsis: z || h
597
+ }), Z = ft((s) => {
598
+ const { contentRect: d } = s == null ? void 0 : s[0];
599
+ if (d) {
600
+ const $ = v.includes("code") ? d.width - 18 : d.width;
601
+ [
602
+ it.NO_NEED_ELLIPSIS,
603
+ it.MEASURE_END
604
+ ].includes(q) && O($);
605
+ }
606
+ }), X = F(null);
607
+ ot(() => {
608
+ const s = Nt([X.current], Z);
609
+ return () => {
610
+ s();
611
+ };
612
+ }, [X.current]);
613
+ function W(s) {
614
+ return /* @__PURE__ */ n(gt, { children: /* @__PURE__ */ n(
615
+ Xt,
616
+ {
617
+ ...t,
618
+ setEditing: P,
619
+ onClickExpand: x,
620
+ expanding: h,
621
+ isEllipsis: s,
622
+ currentContext: B
623
+ }
624
+ ) });
625
+ }
626
+ function x(s) {
627
+ var d, $;
628
+ j(!h), (d = t.onClickExpand) == null || d.call(t, s), ($ = e.onExpand) == null || $.call(e, !h, s);
629
+ }
630
+ Et(() => {
631
+ var s;
632
+ (s = e.onEllipsis) == null || s.call(e, M);
633
+ }, [M]), St(i, () => k.current);
634
+ function m(s, d, $, V = {}) {
635
+ let J = s;
636
+ return d.forEach((U, ct) => {
637
+ const at = { className: `${u}-${U}` }, tt = ct === 0 ? V : {}, vt = K($.mark) && $.mark.color ? { style: { backgroundColor: $.mark.color }, ...tt } : { ...tt };
638
+ J = rt.createElement(
639
+ U,
640
+ kt({ ...vt }, at),
641
+ J
642
+ );
643
+ }), J;
644
+ }
645
+ let T;
646
+ r === "Paragraph" ? T = a ? "blockquote" : "div" : r === "Title" ? T = `h${S}` : r === "Text" && (T = g ? "div" : "span");
647
+ function _() {
648
+ const s = nt(rt.Children.toArray(p)), d = e.showTooltip, $ = K(e.showTooltip) && e.showTooltip.type === "popover" ? "popover" : "tooltip", V = K(e.showTooltip) ? e.showTooltip.props || {} : {}, J = $ === "popover" ? Ht : ut, ct = {
649
+ style: l,
650
+ ...M && !d && !h ? { title: s } : {}
651
+ }, at = M && d && !h, tt = /* @__PURE__ */ n(
652
+ T,
653
+ {
654
+ ref: k,
655
+ className: H(
656
+ u,
657
+ L,
658
+ { [`${u}-rtl`]: o },
659
+ E
660
+ ),
661
+ ...ct,
662
+ ...Bt(b, [
663
+ "spacing",
664
+ "type",
665
+ "close",
666
+ "bold",
667
+ "disabled",
668
+ "mark",
669
+ "underline",
670
+ "delete",
671
+ "code",
672
+ "copyable",
673
+ "isEllipsis",
674
+ "expanding",
675
+ "onClickExpand",
676
+ "setEditing",
677
+ "forceShowExpand"
678
+ ]),
679
+ children: z && q !== it.INIT && !h && M ? m(
680
+ // CSS folding style, need to wrap the text separately.
681
+ c(
682
+ /* @__PURE__ */ n("span", { style: w, children: p }),
683
+ M
684
+ ),
685
+ v.length ? v : ["span"],
686
+ t,
687
+ // The simple-ellipsis class ensures that the ReactNode after the text is displayed correctly (no line breaks)
688
+ // Need to act on the immediate parent node of the text
689
+ { className: `${u}-simple-ellipsis` }
690
+ ) : m(A, v, t)
691
+ }
692
+ );
693
+ return at ? /* @__PURE__ */ n(J, { content: s, ...V, children: /* @__PURE__ */ n("span", { children: tt }) }) : tt;
694
+ }
695
+ return C ? /* @__PURE__ */ n(
696
+ qt,
697
+ {
698
+ ref: i,
699
+ ...t,
700
+ className: H(
701
+ u,
702
+ L,
703
+ { [`${u}-rtl`]: o },
704
+ `${u}-${T}`,
705
+ E
706
+ ),
707
+ prefixCls: u,
708
+ setEditing: P,
709
+ editableConfig: I
710
+ }
711
+ ) : _();
712
+ }
713
+ const ht = Y(te);
714
+ function ee(t, i) {
715
+ const { spacing: r = "default", className: l } = t, { getPrefixCls: E } = st(lt), p = E("typography"), f = r === "close" ? H(`${p}-spacing-close`, l) : l;
716
+ return /* @__PURE__ */ n(
717
+ ht,
718
+ {
719
+ ...t,
720
+ ref: i,
721
+ componentType: "Paragraph",
722
+ className: f
723
+ }
724
+ );
725
+ }
726
+ const Ct = Y(
727
+ ee
728
+ );
729
+ Ct.displayName = "Paragraph";
730
+ function oe(t, i) {
731
+ return /* @__PURE__ */ n(ht, { ...t, componentType: "Text", ref: i });
732
+ }
733
+ const wt = Y(oe);
734
+ wt.displayName = "Text";
735
+ function re(t, i) {
736
+ const { heading: r = 1, ...l } = t;
737
+ return /* @__PURE__ */ n(ht, { heading: r, ...l, componentType: "Title", ref: i });
738
+ }
739
+ const $t = Y(re);
740
+ $t.displayName = "Title";
741
+ function ie(t, i) {
742
+ const { getPrefixCls: r } = st(lt), l = r("typography"), { className: E, style: p, children: f } = t, g = H(l, E);
743
+ return /* @__PURE__ */ n("article", { ref: i, style: p, className: g, children: f });
744
+ }
745
+ const bt = Y(ie);
746
+ bt.displayName = "Typography";
747
+ const pt = bt;
748
+ pt.Title = $t;
749
+ pt.Text = wt;
750
+ pt.Paragraph = Ct;
751
+ pt.Ellipsis = Ft;
2
752
  export {
3
- r as TypographyEllipsis,
4
- y as TypographyParagraph,
5
- s as TypographyText,
6
- T as TypographyTitle,
7
- o as default
753
+ Ft as TypographyEllipsis,
754
+ Ct as TypographyParagraph,
755
+ wt as TypographyText,
756
+ $t as TypographyTitle,
757
+ pt as default
8
758
  };