@unicom-cloud/ui 0.8.55 → 0.8.56

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 (428) hide show
  1. package/Affix.js +36 -36
  2. package/Alert.js +41 -45
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +40 -40
  5. package/Avatar.js +36 -36
  6. package/BackTop.js +26 -26
  7. package/Badge.js +43 -43
  8. package/Breadcrumb.js +17 -17
  9. package/Button.js +42 -42
  10. package/Calendar.js +54 -56
  11. package/Card.js +28 -28
  12. package/Carousel.js +42 -43
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +11 -580
  17. package/Comment.js +14 -14
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +26 -26
  20. package/DatePicker.js +661 -670
  21. package/Descriptions.js +53 -53
  22. package/Divider.js +15 -15
  23. package/Draggable.js +16 -16
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +10 -10
  26. package/Empty.js +3 -3
  27. package/Form.js +10 -1410
  28. package/Grid.js +49 -49
  29. package/Icon.js +10 -10
  30. package/IconHover.js +2 -2
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +7 -7
  34. package/InputTag.js +1 -1
  35. package/Layout.js +34 -34
  36. package/Link.js +26 -26
  37. package/List.js +39 -39
  38. package/Mentions.js +17 -17
  39. package/Menu.js +1 -1
  40. package/Message.js +3 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +4 -10
  43. package/Notification.js +3 -3
  44. package/OverflowEllipsis.js +18 -18
  45. package/PageHeader.js +26 -27
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +15 -15
  49. package/Popover.js +22 -22
  50. package/Progress.js +18 -18
  51. package/Radio.js +2 -2
  52. package/Rate.js +40 -43
  53. package/ResizeBox.js +191 -192
  54. package/Result.js +17 -17
  55. package/Select.js +1 -1
  56. package/SelectView.js +56 -56
  57. package/Skeleton.js +35 -35
  58. package/Slider.js +81 -81
  59. package/Space.js +27 -27
  60. package/SpeechSynthesis.js +29 -32
  61. package/Spin.js +15 -15
  62. package/Statistic.js +54 -54
  63. package/Steps.js +44 -44
  64. package/Switch.js +39 -38
  65. package/Table.js +488 -488
  66. package/Tabs.js +1 -1
  67. package/Tag.js +13 -14
  68. package/TimePicker.js +68 -68
  69. package/Timeline.js +1 -1
  70. package/Tooltip.js +27 -28
  71. package/Transfer.js +29 -30
  72. package/Tree.js +1 -1
  73. package/TreeSelect.js +1 -1
  74. package/Trigger.js +53 -52
  75. package/Typography.js +2 -737
  76. package/Upload.js +1 -1
  77. package/VerificationCode.js +1 -1
  78. package/Version.js +1 -1
  79. package/Watermark.js +1 -1
  80. package/chunk/1mEO29GP.js +23 -0
  81. package/chunk/5pZ3ayqs.js +29 -0
  82. package/chunk/9Gh1afjL.js +23 -0
  83. package/chunk/B1S1OEw6.js +29 -0
  84. package/chunk/{RRWbBHK-.js → B2Bp3i5u.js} +221 -221
  85. package/chunk/B45v5S9k.js +209 -0
  86. package/chunk/B6fn5y_s.js +23 -0
  87. package/chunk/B9PsJar0.js +118 -0
  88. package/chunk/BA02BFUV.js +41 -0
  89. package/chunk/BCk8e9fj.js +29 -0
  90. package/chunk/BHK9zpXn.js +207 -0
  91. package/chunk/BHLTzWzi.js +29 -0
  92. package/chunk/BK1FKNAX.js +41 -0
  93. package/chunk/BM6dpkeM.js +32 -0
  94. package/chunk/{DQ3uFRJD.js → BP7xX86Q.js} +223 -202
  95. package/chunk/BWx1cVT_.js +66 -0
  96. package/chunk/BbI3gqVr.js +23 -0
  97. package/chunk/{CIc4yo9k.js → BbYzi8M0.js} +46 -46
  98. package/chunk/Be7oeWU8.js +34 -0
  99. package/chunk/BeM2hfks.js +88 -0
  100. package/chunk/BkHxm4sv.js +41 -0
  101. package/chunk/{BUQBof6z.js → Bl-ODC57.js} +206 -207
  102. package/chunk/BlKc_pDZ.js +678 -0
  103. package/chunk/{BzqZZHGK.js → Bny52uiG.js} +48 -48
  104. package/chunk/{PuuHmqnW.js → BpwDupra.js} +238 -238
  105. package/chunk/BqxwlITu.js +52 -0
  106. package/chunk/BuEC_zcc.js +278 -0
  107. package/chunk/{CqcZfQQ4.js → Bv8ZRDFt.js} +80 -80
  108. package/chunk/{DZGcv_9A.js → C-w9pFY-.js} +32 -32
  109. package/chunk/C2fspJbE.js +23 -0
  110. package/chunk/C7Okdv4u.js +34 -0
  111. package/chunk/C95ipQ6b.js +41 -0
  112. package/chunk/{BzMYgxgO.js → CF3Telny.js} +26 -26
  113. package/chunk/CPl52AZh.js +206 -0
  114. package/chunk/CXNW5Y2a.js +23 -0
  115. package/chunk/Cb_oWoGj.js +40 -0
  116. package/chunk/CcX2pBUh.js +46 -0
  117. package/chunk/{BdJcAQ0Q.js → CggcswbO.js} +18 -18
  118. package/chunk/CilQ012k.js +1796 -0
  119. package/chunk/CkAOsst1.js +73 -0
  120. package/chunk/CnY8SvgY.js +126 -0
  121. package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
  122. package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
  123. package/chunk/{DTgc2wl4.js → D6RTBH4C.js} +36 -36
  124. package/chunk/D6mVoX-C.js +116 -0
  125. package/chunk/D9TqtOhq.js +40 -0
  126. package/chunk/{CZ8iz63Z.js → DBJ8d0o0.js} +210 -217
  127. package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
  128. package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
  129. package/chunk/DPvnQJ-H.js +52 -0
  130. package/chunk/DQXq1QT0.js +58 -0
  131. package/chunk/DRJO1GfY.js +855 -0
  132. package/chunk/DUxWiN2U.js +1465 -0
  133. package/chunk/DYZzQ2uT.js +29 -0
  134. package/chunk/{CK0H_Yi4.js → DafaH1Qt.js} +140 -138
  135. package/chunk/{ShWkfsJd.js → DalIRWr7.js} +21 -21
  136. package/chunk/{CzTYWtfa.js → Dg2DmtzA.js} +31 -30
  137. package/chunk/DhLbnw3R.js +29 -0
  138. package/chunk/{BmtF7P8U.js → DkIjpuBZ.js} +170 -170
  139. package/chunk/Do1aMgY3.js +12 -0
  140. package/chunk/Dtnux4qL.js +38 -0
  141. package/chunk/{Niaq_og8.js → Dw4SJ4o1.js} +219 -225
  142. package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
  143. package/chunk/JnyGFb5j.js +284 -0
  144. package/chunk/Lk60-jkf.js +1098 -0
  145. package/chunk/V_IcWDFx.js +49 -0
  146. package/chunk/{DG7VgAhL.js → WkB0MERB.js} +107 -108
  147. package/chunk/bsawGxt8.js +32 -0
  148. package/chunk/cUuQh7L_.js +46 -0
  149. package/chunk/fqgc8r6C.js +29 -0
  150. package/chunk/m_kOQCiU.js +29 -0
  151. package/chunk/sl8s35SK.js +29 -0
  152. package/chunk/{Dki1RB5p.js → t51ig1FZ.js} +154 -155
  153. package/chunk/{BC0PujUD.js → yvbAFxtk.js} +119 -121
  154. package/hooks/index.js +52 -246
  155. package/hooks/useForceUpdate.js +6 -6
  156. package/hooks/useIntersectionObserver.js +12 -10
  157. package/hooks/useKeyboardEvent.js +7 -7
  158. package/hooks/useMedia.js +9 -12
  159. package/hooks/useMergeValue.js +10 -8
  160. package/hooks/useResizeObserver.js +16 -0
  161. package/hooks/useUpdateEffect.js +7 -9
  162. package/hooks/useWindowSize.js +16 -20
  163. package/icons.js +6003 -0
  164. package/index.js +377 -472
  165. package/locale/en-US.js +20 -6
  166. package/locale/ja-JP.js +4 -2
  167. package/locale/ko-KR.js +2 -2
  168. package/locale/pt-BR.js +3 -3
  169. package/locale/pt-PT.js +3 -3
  170. package/locale/tr-TR.js +11 -3
  171. package/locale/zh-CN.js +6 -0
  172. package/locale/zh-HK.js +2 -0
  173. package/locale/zh-TW.js +2 -0
  174. package/package.json +1 -1
  175. package/style.css +1 -1
  176. package/types/anchor/util.d.ts +1 -0
  177. package/types/button/index.d.ts +2 -2
  178. package/types/color-picker/colors.d.ts +1 -1
  179. package/types/date-picker/util.d.ts +1 -1
  180. package/types/hooks/index.d.ts +3 -101
  181. package/types/hooks/useForceUpdate.d.ts +1 -2
  182. package/types/hooks/useIntersectionObserver.d.ts +1 -1
  183. package/types/hooks/useKeyboardEvent.d.ts +2 -2
  184. package/types/hooks/useMergeProps.d.ts +1 -1
  185. package/types/hooks/useResizeObserver.d.ts +5 -0
  186. package/types/hooks/useUpdateEffect.d.ts +2 -3
  187. package/types/hooks/useWindowSize.d.ts +1 -1
  188. package/types/icons.d.ts +4 -0
  189. package/types/index.d.ts +12 -2
  190. package/types/locale/en-US.d.ts +4 -0
  191. package/types/locale/interface.d.ts +2 -0
  192. package/types/locale/ja-JP.d.ts +4 -0
  193. package/types/locale/zh-CN.d.ts +4 -0
  194. package/types/locale/zh-HK.d.ts +4 -0
  195. package/types/locale/zh-TW.d.ts +4 -0
  196. package/types/version/index.d.ts +1 -1
  197. package/utils/CSSTransition.js +1 -1
  198. package/utils/className.js +2 -3
  199. package/utils/contextHolder.js +2 -2
  200. package/utils/copy.js +2 -3
  201. package/utils/is.js +127 -90
  202. package/utils/reactDOM.js +17 -15
  203. package/utils/responsiveObserve.js +16 -16
  204. package/utils/saveAs.js +2 -3
  205. package/utils/scrollIntoView.js +1 -1
  206. package/chunk/BdYAMaw9.js +0 -6
  207. package/chunk/CiZVOdJ3.js +0 -122
  208. package/chunk/DdtfPvgk.js +0 -272
  209. package/chunk/I4RV9SKZ.js +0 -135
  210. package/chunk/TXCrI0jN.js +0 -20
  211. package/chunk/i1A7W8Qt.js +0 -277
  212. package/chunk/xPzFRQJn.js +0 -740
  213. package/hooks/useAsync.js +0 -13
  214. package/hooks/useAsyncFn.js +0 -15
  215. package/hooks/useAsyncRetry.js +0 -17
  216. package/hooks/useAudio.js +0 -5
  217. package/hooks/useBeforeUnload.js +0 -18
  218. package/hooks/useBoolean.js +0 -4
  219. package/hooks/useClickAway.js +0 -22
  220. package/hooks/useCopyToClipboard.js +0 -51
  221. package/hooks/useCounter.js +0 -45
  222. package/hooks/useCreation.js +0 -17
  223. package/hooks/useCustomCompareEffect.js +0 -15
  224. package/hooks/useDebounce.js +0 -9
  225. package/hooks/useDefault.js +0 -10
  226. package/hooks/useDrop.js +0 -44
  227. package/hooks/useDropArea.js +0 -45
  228. package/hooks/useEffectOnce.js +0 -7
  229. package/hooks/useEffectState.js +0 -9
  230. package/hooks/useEnsuredForwardedRef.js +0 -17
  231. package/hooks/useError.js +0 -13
  232. package/hooks/useEvent.js +0 -13
  233. package/hooks/useEventListener.js +0 -39
  234. package/hooks/useFavicon.js +0 -16
  235. package/hooks/useFirstMountState.js +0 -8
  236. package/hooks/useFullscreen.js +0 -39
  237. package/hooks/useGeolocation.js +0 -38
  238. package/hooks/useGetSet.js +0 -18
  239. package/hooks/useGetSetState.js +0 -12
  240. package/hooks/useHash.js +0 -26
  241. package/hooks/useHover.js +0 -16
  242. package/hooks/useHoverDirty.js +0 -17
  243. package/hooks/useIdle.js +0 -34
  244. package/hooks/useIntersection.js +0 -19
  245. package/hooks/useIsomorphicLayoutEffect2.js +0 -6
  246. package/hooks/useKey.js +0 -16
  247. package/hooks/useKeyPress.js +0 -13
  248. package/hooks/useKeyPressEvent.js +0 -11
  249. package/hooks/useLatest.js +0 -8
  250. package/hooks/useLifecycles.js +0 -9
  251. package/hooks/useList.js +0 -67
  252. package/hooks/useLocalStorage.js +0 -42
  253. package/hooks/useLocation.js +0 -51
  254. package/hooks/useLockBodyScroll.js +0 -55
  255. package/hooks/useLogger.js +0 -10
  256. package/hooks/useLongPress.js +0 -24
  257. package/hooks/useMap.js +0 -31
  258. package/hooks/useMeasure.js +0 -34
  259. package/hooks/useMeasureDirty.js +0 -24
  260. package/hooks/useMediaDevices.js +0 -26
  261. package/hooks/useMediatedState.js +0 -14
  262. package/hooks/useMethods.js +0 -14
  263. package/hooks/useMotion.js +0 -56
  264. package/hooks/useMount.js +0 -9
  265. package/hooks/useMountedState.js +0 -10
  266. package/hooks/useMouse.js +0 -44
  267. package/hooks/useMouseHovered.js +0 -9
  268. package/hooks/useMouseWheel.js +0 -14
  269. package/hooks/useMultiStateValidator.js +0 -19
  270. package/hooks/useNetworkState.js +0 -31
  271. package/hooks/useNumber.js +0 -4
  272. package/hooks/useObservable.js +0 -12
  273. package/hooks/useOrientation.js +0 -30
  274. package/hooks/usePageLeave.js +0 -19
  275. package/hooks/usePermission.js +0 -19
  276. package/hooks/usePinchZoom.js +0 -40
  277. package/hooks/usePreviousDistinct.js +0 -10
  278. package/hooks/usePromise.js +0 -19
  279. package/hooks/useQueue.js +0 -25
  280. package/hooks/useRaf.js +0 -24
  281. package/hooks/useRafLoop.js +0 -24
  282. package/hooks/useRafState.js +0 -15
  283. package/hooks/useReactive.js +0 -21
  284. package/hooks/useRendersCount.js +0 -7
  285. package/hooks/useScroll.js +0 -27
  286. package/hooks/useScrolling.js +0 -23
  287. package/hooks/useSearchParam.js +0 -18
  288. package/hooks/useSessionStorage.js +0 -29
  289. package/hooks/useSet.js +0 -15
  290. package/hooks/useSetState.js +0 -16
  291. package/hooks/useSize.js +0 -58
  292. package/hooks/useSlider.js +0 -48
  293. package/hooks/useSpeech.js +0 -45
  294. package/hooks/useStartTyping.js +0 -30
  295. package/hooks/useStateList.js +0 -37
  296. package/hooks/useStateValidator.js +0 -17
  297. package/hooks/useStateWithHistory.js +0 -46
  298. package/hooks/useSyncState.js +0 -14
  299. package/hooks/useThrottle.js +0 -21
  300. package/hooks/useThrottleFn.js +0 -21
  301. package/hooks/useTimeout.js +0 -17
  302. package/hooks/useTimeoutFn.js +0 -16
  303. package/hooks/useTitle.js +0 -18
  304. package/hooks/useToggle.js +0 -5
  305. package/hooks/useTween.js +0 -11
  306. package/hooks/useUnmount.js +0 -9
  307. package/hooks/useUnmountPromise.js +0 -20
  308. package/hooks/useUpdate.js +0 -10
  309. package/hooks/useUpdateTimeout.js +0 -9
  310. package/hooks/useUpsert.js +0 -16
  311. package/hooks/useVibrate.js +0 -21
  312. package/hooks/useVideo.js +0 -5
  313. package/hooks/useWindowScroll.js +0 -29
  314. package/types/hooks/component/UseKey.d.ts +0 -2
  315. package/types/hooks/factory/createBreakpoint.d.ts +0 -4
  316. package/types/hooks/factory/createGlobalState.d.ts +0 -7
  317. package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
  318. package/types/hooks/factory/createMemo.d.ts +0 -2
  319. package/types/hooks/factory/createReducer.d.ts +0 -8
  320. package/types/hooks/factory/createReducerContext.d.ts +0 -5
  321. package/types/hooks/factory/createRenderProp.d.ts +0 -1
  322. package/types/hooks/factory/createRouter.d.ts +0 -7
  323. package/types/hooks/factory/createStateContext.d.ts +0 -5
  324. package/types/hooks/misc/hookState.d.ts +0 -8
  325. package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
  326. package/types/hooks/misc/types.d.ts +0 -2
  327. package/types/hooks/misc/util.d.ts +0 -5
  328. package/types/hooks/useAsync.d.ts +0 -20
  329. package/types/hooks/useAsyncFn.d.ts +0 -23
  330. package/types/hooks/useAsyncRetry.d.ts +0 -27
  331. package/types/hooks/useAudio.d.ts +0 -11
  332. package/types/hooks/useBeforeUnload.d.ts +0 -2
  333. package/types/hooks/useBoolean.d.ts +0 -2
  334. package/types/hooks/useClickAway.d.ts +0 -3
  335. package/types/hooks/useCopyToClipboard.d.ts +0 -7
  336. package/types/hooks/useCounter.d.ts +0 -9
  337. package/types/hooks/useCreation.d.ts +0 -2
  338. package/types/hooks/useCustomCompareEffect.d.ts +0 -4
  339. package/types/hooks/useDebounce.d.ts +0 -3
  340. package/types/hooks/useDefault.d.ts +0 -2
  341. package/types/hooks/useDrop.d.ts +0 -17
  342. package/types/hooks/useDropArea.d.ts +0 -18
  343. package/types/hooks/useEffectOnce.d.ts +0 -3
  344. package/types/hooks/useEffectState.d.ts +0 -2
  345. package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
  346. package/types/hooks/useError.d.ts +0 -2
  347. package/types/hooks/useEvent.d.ts +0 -13
  348. package/types/hooks/useEventListener.d.ts +0 -2
  349. package/types/hooks/useFavicon.d.ts +0 -2
  350. package/types/hooks/useFirstMountState.d.ts +0 -1
  351. package/types/hooks/useFullscreen.d.ts +0 -10
  352. package/types/hooks/useGeolocation.d.ts +0 -21
  353. package/types/hooks/useGetSet.d.ts +0 -3
  354. package/types/hooks/useGetSetState.d.ts +0 -2
  355. package/types/hooks/useHash.d.ts +0 -2
  356. package/types/hooks/useHover.d.ts +0 -4
  357. package/types/hooks/useHoverDirty.d.ts +0 -3
  358. package/types/hooks/useIdle.d.ts +0 -2
  359. package/types/hooks/useIntersection.d.ts +0 -3
  360. package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
  361. package/types/hooks/useKey.d.ts +0 -12
  362. package/types/hooks/useKeyPress.d.ts +0 -3
  363. package/types/hooks/useKeyPressEvent.d.ts +0 -3
  364. package/types/hooks/useLatest.d.ts +0 -4
  365. package/types/hooks/useLifecycles.d.ts +0 -2
  366. package/types/hooks/useList.d.ts +0 -18
  367. package/types/hooks/useLocalStorage.d.ts +0 -10
  368. package/types/hooks/useLocation.d.ts +0 -16
  369. package/types/hooks/useLockBodyScroll.d.ts +0 -8
  370. package/types/hooks/useLogger.d.ts +0 -2
  371. package/types/hooks/useLongPress.d.ts +0 -12
  372. package/types/hooks/useMap.d.ts +0 -11
  373. package/types/hooks/useMeasure.d.ts +0 -9
  374. package/types/hooks/useMeasureDirty.d.ts +0 -11
  375. package/types/hooks/useMediaDevices.d.ts +0 -2
  376. package/types/hooks/useMediatedState.d.ts +0 -9
  377. package/types/hooks/useMethods.d.ts +0 -8
  378. package/types/hooks/useMotion.d.ts +0 -20
  379. package/types/hooks/useMount.d.ts +0 -2
  380. package/types/hooks/useMountedState.d.ts +0 -1
  381. package/types/hooks/useMouse.d.ts +0 -13
  382. package/types/hooks/useMouseHovered.d.ts +0 -8
  383. package/types/hooks/useMouseWheel.d.ts +0 -2
  384. package/types/hooks/useMultiStateValidator.d.ts +0 -9
  385. package/types/hooks/useNetworkState.d.ts +0 -22
  386. package/types/hooks/useNumber.d.ts +0 -2
  387. package/types/hooks/useObservable.d.ts +0 -8
  388. package/types/hooks/useOrientation.d.ts +0 -6
  389. package/types/hooks/usePageLeave.d.ts +0 -2
  390. package/types/hooks/usePermission.d.ts +0 -16
  391. package/types/hooks/usePinchZoom.d.ts +0 -18
  392. package/types/hooks/usePreviousDistinct.d.ts +0 -2
  393. package/types/hooks/usePromise.d.ts +0 -3
  394. package/types/hooks/useQueue.d.ts +0 -9
  395. package/types/hooks/useRaf.d.ts +0 -2
  396. package/types/hooks/useRafLoop.d.ts +0 -2
  397. package/types/hooks/useRafState.d.ts +0 -3
  398. package/types/hooks/useReactive.d.ts +0 -2
  399. package/types/hooks/useRendersCount.d.ts +0 -1
  400. package/types/hooks/useScroll.d.ts +0 -7
  401. package/types/hooks/useScrolling.d.ts +0 -3
  402. package/types/hooks/useSearchParam.d.ts +0 -3
  403. package/types/hooks/useSessionStorage.d.ts +0 -2
  404. package/types/hooks/useSet.d.ts +0 -11
  405. package/types/hooks/useSetState.d.ts +0 -2
  406. package/types/hooks/useSize.d.ts +0 -8
  407. package/types/hooks/useSlider.d.ts +0 -15
  408. package/types/hooks/useSpeech.d.ts +0 -16
  409. package/types/hooks/useStartTyping.d.ts +0 -2
  410. package/types/hooks/useStateList.d.ts +0 -9
  411. package/types/hooks/useStateValidator.d.ts +0 -8
  412. package/types/hooks/useStateWithHistory.d.ts +0 -18
  413. package/types/hooks/useSyncState.d.ts +0 -3
  414. package/types/hooks/useThrottle.d.ts +0 -2
  415. package/types/hooks/useThrottleFn.d.ts +0 -2
  416. package/types/hooks/useTimeout.d.ts +0 -2
  417. package/types/hooks/useTimeoutFn.d.ts +0 -2
  418. package/types/hooks/useTitle.d.ts +0 -6
  419. package/types/hooks/useToggle.d.ts +0 -2
  420. package/types/hooks/useTween.d.ts +0 -3
  421. package/types/hooks/useUnmount.d.ts +0 -2
  422. package/types/hooks/useUnmountPromise.d.ts +0 -3
  423. package/types/hooks/useUpdate.d.ts +0 -2
  424. package/types/hooks/useUpdateTimeout.d.ts +0 -2
  425. package/types/hooks/useUpsert.d.ts +0 -6
  426. package/types/hooks/useVibrate.d.ts +0 -4
  427. package/types/hooks/useVideo.d.ts +0 -11
  428. package/types/hooks/useWindowScroll.d.ts +0 -6
package/Typography.js CHANGED
@@ -1,739 +1,4 @@
1
- import { jsxs as Y, jsx as l, Fragment as xt } from "react/jsx-runtime";
2
- import it, { forwardRef as Z, useContext as lt, useRef as q, useState as X, useMemo as tt, useEffect as U, useCallback as vt, useImperativeHandle as St } from "react";
3
- import { a as ct } from "./chunk/xPzFRQJn.js";
4
- import bt from "./hooks/useMergeProps.js";
5
- import gt from "./hooks/useMergeValue.js";
6
- /* empty css */
7
- import "./chunk/DQ3uFRJD.js";
8
- import "lodash/isEqualWith";
9
- import "./utils/is.js";
10
- import Tt from "lodash/isNumber";
11
- import "lodash/merge";
12
- import { isServerRendering as Pt } from "./utils/dom.js";
13
- import "@unicom-cloud/utils/clipboard-copy";
14
- import "@unicom-cloud/utils/screenfull";
15
- import "lodash/throttle";
16
- import "./hooks/useIntersectionObserver.js";
17
- import "./hooks/useLocation.js";
18
- import "./hooks/useNetworkState.js";
19
- import "./utils/reactDOM.js";
20
- import "@unicom-cloud/utils/tween/easing";
21
- import D from "@unicom-cloud/utils/class-name";
22
- import "./Affix.js";
23
- import "./Alert.js";
24
- import "./chunk/DdtfPvgk.js";
25
- import "./AutoComplete.js";
26
- import "./Avatar.js";
27
- import "./BackTop.js";
28
- import "./Badge.js";
29
- import "./Breadcrumb.js";
30
- import "./Button.js";
31
- import "./Calendar.js";
32
- import "./Card.js";
33
- import "./Carousel.js";
34
- import "./chunk/Dki1RB5p.js";
35
- import "./chunk/BH5fVprw.js";
36
- import "./chunk/C3I_L73_.js";
37
- import "./Comment.js";
38
- import It from "./Copy.js";
39
- import "./DatePicker.js";
40
- import "./Descriptions.js";
41
- import "./Divider.js";
42
- import "./chunk/BdJcAQ0Q.js";
43
- import "./Dropdown.js";
44
- import "./Form.js";
45
- import "./Grid.js";
46
- import "./chunk/DZGcv_9A.js";
47
- import "./Icon.js";
48
- import "./chunk/DTgc2wl4.js";
49
- import { I as kt } from "./chunk/BUQBof6z.js";
50
- import "./chunk/CK0H_Yi4.js";
51
- import "./Layout.js";
52
- import "./Link.js";
53
- import "./List.js";
54
- import "./Mentions.js";
55
- import "./chunk/BC0PujUD.js";
56
- import "./chunk/CZ8iz63Z.js";
57
- import "./PageHeader.js";
58
- import "./chunk/DG7VgAhL.js";
59
- import "./Popconfirm.js";
60
- import Lt from "./Popover.js";
61
- import "./Portal.js";
62
- import "./Progress.js";
63
- import "./ColorPicker.js";
64
- import "./Loading.js";
65
- import "./chunk/CIc4yo9k.js";
66
- import "./Rate.js";
67
- import "./ResizeBox.js";
68
- import "./Result.js";
69
- import "./chunk/PuuHmqnW.js";
70
- import "./Skeleton.js";
71
- import "./Slider.js";
72
- import "./Space.js";
73
- import "./chunk/l0sNRNKZ.js";
74
- import "@unicom-cloud/icons/IconUiMute";
75
- import "@unicom-cloud/icons/IconUiPauseCircleFill";
76
- import "@unicom-cloud/icons/IconUiPlayCircleFill";
77
- import "@unicom-cloud/icons/IconUiSound";
78
- import "./Spin.js";
79
- import "./Statistic.js";
80
- import "./Steps.js";
81
- import "./SuspenseFallbackTest.js";
82
- import "./Switch.js";
83
- import "./Table.js";
84
- import "./chunk/RRWbBHK-.js";
85
- import "./Tag.js";
86
- import "./TimePicker.js";
87
- import "./chunk/BzMYgxgO.js";
88
- import ft from "./Tooltip.js";
89
- import "./Transfer.js";
90
- import { isPlainObject as Q, isUndefined as ht } from "@unicom-cloud/utils/is";
91
- import "lodash/get";
92
- import "lodash/has";
93
- import Rt from "lodash/isArray";
94
- import "lodash/isFunction";
95
- import Mt from "lodash/isUndefined";
96
- import "./chunk/BzqZZHGK.js";
97
- import "./chunk/BmtF7P8U.js";
98
- import "lodash/isEqual";
99
- import "./utils/raf.js";
100
- import yt from "./utils/throttleByRaf.js";
101
- import "react-dom";
102
- import Nt from "./hooks/useUpdateEffect.js";
103
- import st from "./utils/mergedToString.js";
104
- import Wt from "./utils/omit.js";
105
- import Bt from "./utils/throttleByRafV2.js";
106
- import Ht from "@unicom-cloud/icons/IconUiEdit";
107
- import mt from "lodash/isPlainObject";
108
- import Dt from "./hooks/useKeyboardEvent.js";
109
- import _t from "lodash/isString";
110
- import dt from "./hooks/useIsomorphicLayoutEffect.js";
111
- import "./chunk/Niaq_og8.js";
112
- import "./chunk/ShWkfsJd.js";
113
- import "./chunk/RL1SNlng.js";
114
- const jt = {
115
- rows: 1,
116
- expandable: !0,
117
- defaultExpanded: !1
118
- }, Ot = (t, s) => {
119
- var h;
120
- const r = lt(ct), c = bt(
121
- t,
122
- jt,
123
- (h = r.componentConfig) == null ? void 0 : h["Typography.Ellipsis"]
124
- ), {
125
- className: E,
126
- style: p,
127
- rows: f,
128
- disabled: y,
129
- showTooltip: I,
130
- children: d,
131
- expandable: b,
132
- expandRender: _,
133
- onExpand: $,
134
- onEllipsis: i
135
- } = c, { locale: x } = r, L = Pt ? !1 : /^((?!chrome|android).)*safari/i.test((navigator == null ? void 0 : navigator.userAgent) ?? ""), T = q(null), R = q(null), [N, k] = X(""), [j, M] = X(!1), v = q(null), C = q(null), [n, W] = gt(!1, {
136
- defaultValue: c.defaultExpanded,
137
- value: c.expanded
138
- }), [u, F] = X(!1), O = tt(() => Q(b) ? !b.single && f === 1 : f === 1, [f, b]), S = tt(() => Q(I) ? {
139
- tooltip: !0,
140
- tooltipProps: I
141
- } : {
142
- tooltip: !!I,
143
- tooltipProps: I
144
- }, [I]);
145
- U(() => {
146
- if (R.current) {
147
- const e = R.current.textContent;
148
- e && k(e);
149
- }
150
- }, [d, R]);
151
- const a = r.getPrefixCls("ellipsis"), A = () => _ ? _(n) : /* @__PURE__ */ l("span", { className: `${a}-action-text`, children: n ? x.Typography.fold : x.Typography.unfold }), B = () => b && u ? /* @__PURE__ */ l(
152
- "div",
153
- {
154
- className: D(`${a}-action`, {
155
- [`${a}-action-collapsed`]: !n
156
- }),
157
- onClick: (e) => {
158
- n ? (W(!1), $ == null || $(!1, e)) : (W(!0), M(!1), $ == null || $(!0, e));
159
- },
160
- children: A()
161
- }
162
- ) : null, K = vt(
163
- yt(() => {
164
- C.current && v.current && ((O ? C.current.offsetWidth > v.current.offsetWidth : C.current.offsetHeight > v.current.offsetHeight) ? u === !1 && (F(!0), i == null || i(!0)) : u === !0 && (F(!1), i == null || i(!1)));
165
- }),
166
- [u, O]
167
- );
168
- U(() => {
169
- let e;
170
- return v.current && (e = new ResizeObserver(K), e.observe(v.current)), () => {
171
- var g, P;
172
- v.current && ((g = e == null ? void 0 : e.unobserve) == null || g.call(e, v.current)), (P = e == null ? void 0 : e.disconnect) == null || P.call(e), e = null;
173
- };
174
- }, [v.current]), U(() => {
175
- let e;
176
- return C.current && (e = new ResizeObserver(K), e.observe(C.current)), () => {
177
- var g, P;
178
- 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;
179
- };
180
- }, [C.current]);
181
- const z = () => y ? null : /* @__PURE__ */ l(
182
- "div",
183
- {
184
- className: O ? D(`${a}-content-mirror`, `${a}-single`) : D(
185
- `${a}-content-mirror`,
186
- `${a}-multiple`,
187
- `${a}-collapsed`
188
- ),
189
- style: {
190
- WebkitBoxOrient: "vertical",
191
- MozBoxOrient: "vertical",
192
- WebkitLineClamp: f
193
- },
194
- ref: v,
195
- children: /* @__PURE__ */ l("span", { ref: C, className: `${a}-text`, children: d })
196
- }
197
- ), V = () => O ? /* @__PURE__ */ l("div", { className: D(`${a}-content`, `${a}-single`), children: /* @__PURE__ */ l("span", { ref: R, className: `${a}-text`, children: d }) }) : L ? /* @__PURE__ */ Y(
198
- "div",
199
- {
200
- className: D(`${a}-content`, `${a}-multiple`),
201
- title: !S.tooltip && u && !n ? N : void 0,
202
- children: [
203
- !n && B(),
204
- /* @__PURE__ */ l(
205
- "span",
206
- {
207
- ref: R,
208
- className: D(`${a}-text`, {
209
- [`${a}-collapsed`]: !n
210
- }),
211
- style: {
212
- WebkitBoxOrient: "vertical",
213
- MozBoxOrient: "vertical",
214
- WebkitLineClamp: f
215
- },
216
- children: d
217
- }
218
- ),
219
- n && B()
220
- ]
221
- }
222
- ) : /* @__PURE__ */ Y(
223
- "div",
224
- {
225
- className: D(`${a}-content`, `${a}-multiple`, {
226
- [`${a}-collapsed`]: !n
227
- }),
228
- style: {
229
- WebkitBoxOrient: "vertical",
230
- MozBoxOrient: "vertical",
231
- WebkitLineClamp: f
232
- },
233
- title: !S.tooltip && u && !n ? N : void 0,
234
- children: [
235
- !n && B(),
236
- /* @__PURE__ */ l("span", { ref: R, className: `${a}-text`, children: d }),
237
- n && B()
238
- ]
239
- }
240
- ), H = () => y ? /* @__PURE__ */ l("div", { className: `${a}-content`, children: /* @__PURE__ */ l("span", { ref: R, className: `${a}-text`, children: d }) }) : S.tooltip ? /* @__PURE__ */ l(
241
- ft,
242
- {
243
- content: N,
244
- popupVisible: j,
245
- disabled: !u || n,
246
- triggerProps: {
247
- mouseEnterDelay: 100
248
- },
249
- onVisibleChange: (e) => {
250
- e ? u && !n && M(!0) : M(!1);
251
- },
252
- ...S.tooltipProps,
253
- children: V()
254
- }
255
- ) : V();
256
- return /* @__PURE__ */ Y("div", { ref: T, className: D(a, E), style: p, children: [
257
- z(),
258
- H()
259
- ] });
260
- }, Vt = Z(Ot);
261
- function Ft(t, s) {
262
- const { prefixCls: r, children: c, setEditing: E, editableConfig: p, style: f } = t, y = D(
263
- `${r}-typography`,
264
- `${r}-edit-content`,
265
- t.className
266
- ), I = st(c), d = q(null);
267
- U(() => {
268
- var i, x;
269
- if (d.current && ((x = (i = d.current).focus) == null || x.call(i)), d.current && d.current.dom) {
270
- const { length: L } = d.current.dom.value;
271
- d.current.dom.setSelectionRange(L, L);
272
- }
273
- }, []);
274
- function b() {
275
- var i;
276
- E(!1), (i = p.onEnd) == null || i.call(p, I);
277
- }
278
- function _(i) {
279
- var x;
280
- (x = p.onChange) == null || x.call(p, i);
281
- }
282
- function $() {
283
- b();
284
- }
285
- return /* @__PURE__ */ l("div", { className: y, style: f, ref: s, children: /* @__PURE__ */ l(
286
- kt.TextArea,
287
- {
288
- className: `${r}-edit-content-textarea`,
289
- onBlur: $,
290
- ref: d,
291
- value: I,
292
- autoSize: !0,
293
- onChange: _,
294
- onPressEnter: b
295
- }
296
- ) });
297
- }
298
- const Gt = Z(Ft);
299
- function qt(t) {
300
- var C, n, W, u, F;
301
- const {
302
- children: s,
303
- copyable: r,
304
- editable: c,
305
- ellipsis: E,
306
- expanding: p,
307
- setEditing: f,
308
- onClickExpand: y,
309
- forceShowExpand: I,
310
- isEllipsis: d,
311
- currentContext: b = {}
312
- } = t, _ = Dt(), { getPrefixCls: $, locale: i } = b, x = $("typography"), L = mt(E) ? E : {}, T = mt(c) ? c : {}, R = Rt(L.expandNodes) ? L.expandNodes : [(C = i == null ? void 0 : i.Typography) == null ? void 0 : C.fold, (n = i == null ? void 0 : i.Typography) == null ? void 0 : n.unfold], N = (O) => {
313
- var S;
314
- (S = T.onStart) == null || S.call(T, st(s), O), f(!0);
315
- }, k = mt(r) ? { ...r } : {};
316
- k.text === void 0 && (k.text = st(s));
317
- const j = !!r && /* @__PURE__ */ l(
318
- It,
319
- {
320
- ...k,
321
- className: `${x}-operation-copy`,
322
- tooltipProps: k.tooltipProps
323
- }
324
- ), M = c && /* @__PURE__ */ l(
325
- ft,
326
- {
327
- content: (W = i == null ? void 0 : i.Typography) == null ? void 0 : W.edit,
328
- ...T.tooltipProps,
329
- children: /* @__PURE__ */ l(
330
- "span",
331
- {
332
- tabIndex: 0,
333
- "aria-label": (u = i == null ? void 0 : i.Typography) == null ? void 0 : u.edit,
334
- role: "button",
335
- className: `${x}-operation-edit`,
336
- onClick: N,
337
- ..._({
338
- onPressEnter: N
339
- }),
340
- children: /* @__PURE__ */ l(Ht, {})
341
- }
342
- )
343
- }
344
- ), v = I || L.expandable && d ? /* @__PURE__ */ l(
345
- "a",
346
- {
347
- className: `${x}-operation-expand`,
348
- onClick: y,
349
- role: "button",
350
- tabIndex: 0,
351
- "aria-label": (F = i == null ? void 0 : i.Typography) == null ? void 0 : F.unfold,
352
- ..._({
353
- onPressEnter: y
354
- }),
355
- children: p ? R[0] : R[1]
356
- }
357
- ) : null;
358
- return U(() => () => {
359
- }, []), /* @__PURE__ */ Y(xt, { children: [
360
- v,
361
- M,
362
- j
363
- ] });
364
- }
365
- const Kt = (t, s) => {
366
- if (typeof window < "u" && window.CSS && window.CSS.supports)
367
- return Mt(s) ? window.CSS.supports(t) : window.CSS.supports(t, s);
368
- if (typeof document < "u" && document.createElement) {
369
- const r = document.createElement("div");
370
- return r.setAttribute("style", `${t}:${s};`), typeof r.style[t] < "u";
371
- }
372
- return !1;
373
- }, Xt = {
374
- display: " -webkit-box",
375
- "-webkit-line-clamp": 2
376
- }, At = () => Object.entries(Xt).every(
377
- ([t, s]) => Kt(t, s)
378
- );
379
- function Jt(t) {
380
- const { cssEllipsis: s, ellipsisStr: r = "...", suffix: c, rows: E } = t, p = tt(() => !s || E > 1 && !At() ? !1 : r === "..." && !c, [r, s, E, c]), f = {
381
- textOverflow: "ellipsis",
382
- whiteSpace: "nowrap",
383
- overflow: "hidden"
384
- }, y = {
385
- textOverflow: "ellipsis",
386
- whiteSpace: "normal",
387
- overflow: "hidden",
388
- WebkitLineClamp: `${t.rows}`,
389
- WebkitBoxOrient: "vertical",
390
- display: "-webkit-box"
391
- };
392
- return {
393
- simpleEllipsis: p,
394
- ellipsisStyle: p ? t.rows > 1 ? y : f : {}
395
- };
396
- }
397
- const Qt = "hxj";
398
- var rt = /* @__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))(rt || {});
399
- function Yt(t) {
400
- const {
401
- children: s,
402
- rows: r = 1,
403
- width: c,
404
- expanding: E,
405
- renderMeasureContent: p,
406
- simpleEllipsis: f,
407
- onEllipsis: y,
408
- suffix: I,
409
- expandNodes: d,
410
- expandable: b,
411
- ellipsisStr: _
412
- } = t, $ = q(), i = q(), [x, L] = X([0, 0, 0]), [T, R] = X(0), [N, k] = X(
413
- 4
414
- /* NO_NEED_ELLIPSIS */
415
- ), [j, M, v] = x, [C, n] = X(!1), W = tt(() => it.Children.toArray(s), [s]), u = q(0);
416
- Nt(() => {
417
- y == null || y(C);
418
- }, [C]);
419
- const F = (h) => _t(h) || Tt(h), O = (h) => {
420
- let e = 0;
421
- return h.forEach((g) => {
422
- F(g) ? e += String(g).length : e += 1;
423
- }), e;
424
- }, S = tt(() => O(W), [W]), a = yt(
425
- (h) => L(h)
426
- ), A = (h) => {
427
- const e = [];
428
- let g = 0;
429
- if (h >= S)
430
- return W;
431
- for (const P in W) {
432
- const o = W[P];
433
- if (g >= h)
434
- return e;
435
- const m = F(o) ? String(o).length : 1;
436
- if (m > h - g)
437
- return e.push(String(o).slice(0, h - g)), g = h, e;
438
- g += m, e.push(o);
439
- }
440
- return e;
441
- }, B = () => {
442
- var h, e, g;
443
- if (T) {
444
- if (N === 0) {
445
- const P = r * T, m = ((h = i.current) == null ? void 0 : h.offsetHeight) > P;
446
- !m || f || E ? (k(
447
- 3
448
- /* MEASURE_END */
449
- ), n(m), L([0, S, S])) : (n(!0), k(
450
- 1
451
- /* BEFORE_MEASURE */
452
- ));
453
- } else if (N === 1) {
454
- const P = (e = $ == null ? void 0 : $.current) == null ? void 0 : e.offsetWidth, o = r * c;
455
- if (P > r * c) {
456
- const m = Math.max(o / P - 0.1, 0), w = Math.min(o / P + 0.1, 1), G = Math.floor(m * S), J = Math.ceil(w * S), et = Math.floor(
457
- (G + J) / 2
458
- );
459
- u.current = et;
460
- }
461
- k(
462
- 2
463
- /* MEASURING */
464
- );
465
- } else if (N === 2)
466
- if (j !== v - 1) {
467
- const P = (g = i.current) == null ? void 0 : g.offsetHeight, o = r * T;
468
- let m = j, w = v;
469
- P <= o ? m = M : w = M;
470
- const G = Math.floor((w + m) / 2);
471
- a([m, G, w]);
472
- } else
473
- a([j, j, j]), k(
474
- 3
475
- /* MEASURE_END */
476
- );
477
- }
478
- };
479
- dt(() => {
480
- t.rows && c ? (L([0, Math.floor(S / 2), S]), k(
481
- 0
482
- /* INIT */
483
- )) : k(
484
- 4
485
- /* NO_NEED_ELLIPSIS */
486
- );
487
- }, [
488
- S,
489
- f,
490
- E,
491
- c,
492
- I,
493
- d,
494
- b,
495
- _,
496
- t.rows
497
- ]), dt(() => {
498
- if ($.current && N === 0) {
499
- const h = $.current.offsetHeight;
500
- R(h);
501
- }
502
- }, [N]), dt(() => {
503
- B();
504
- }, [N, M, j, v, T]);
505
- const K = {
506
- zIndex: -999,
507
- position: "fixed",
508
- opacity: 0,
509
- padding: 0,
510
- margin: 0
511
- }, z = {
512
- whiteSpace: "nowrap",
513
- ...K
514
- }, V = f ? {
515
- textOverflow: "clip",
516
- ...K
517
- } : K;
518
- let H;
519
- if (N === 0 || N === 1)
520
- H = /* @__PURE__ */ Y("div", { children: [
521
- /* @__PURE__ */ l("div", { ref: $, style: z, children: N === 0 ? Qt : p(s, !1) }),
522
- /* @__PURE__ */ l("div", { ref: i, style: { width: c, ...V }, children: p(s, C) })
523
- ] }), H = H.props.children;
524
- else if (N === 2) {
525
- const h = {
526
- height: T * r,
527
- overflow: "hidden"
528
- };
529
- H = /* @__PURE__ */ Y("div", { children: [
530
- /* @__PURE__ */ l("div", { ref: i, style: { width: c, ...V }, children: p(A(M), C) }),
531
- /* @__PURE__ */ l("div", { style: h, children: A(u.current) })
532
- ] }), H = H.props.children;
533
- } else N === 3 ? H = p(A(M), C) : N === 4 && (H = p(s, !1));
534
- return { ellipsisNode: H, isEllipsis: C, measureStatus: N };
535
- }
536
- function Zt(t, s) {
537
- const {
538
- type: r,
539
- bold: c,
540
- disabled: E,
541
- mark: p,
542
- underline: f,
543
- delete: y,
544
- code: I
545
- } = t, d = [], b = [];
546
- return r && b.push(`${s}-${r}`), E && b.push(`${s}-disabled`), c && d.push("b"), f && d.push("u"), y && d.push("del"), I && d.push("code"), p && d.push("mark"), {
547
- component: d,
548
- className: b
549
- };
550
- }
551
- function Ut(t, s) {
552
- const {
553
- componentType: r,
554
- style: c,
555
- className: E,
556
- children: p,
557
- editable: f,
558
- ellipsis: y,
559
- heading: I,
560
- blockquote: d,
561
- ...b
562
- } = t, _ = lt(ct), { getPrefixCls: $, rtl: i } = _, x = $("typography"), L = q(), { component: T, className: R } = Zt(t, x), [N, k] = X(!1), [j, M] = X(0), v = Q(f) ? f : {}, C = "editing" in v ? v.editing : N, n = y ? {
563
- rows: 1,
564
- ellipsisStr: "...",
565
- cssEllipsis: !1,
566
- ...Q(y) ? y : {}
567
- } : {}, W = n.wrapper || it.Fragment, [u, F] = gt(!1, {
568
- defaultValue: n.defaultExpanded,
569
- value: n.expanded
570
- }), { simpleEllipsis: O, ellipsisStyle: S } = Jt(n), a = (o, m) => {
571
- const w = ht(n.ellipsisStr) ? "..." : n.ellipsisStr, G = !ht(n.suffix) && n.suffix;
572
- return /* @__PURE__ */ Y(W, { children: [
573
- o,
574
- m && !u && !O ? w : "",
575
- G,
576
- H(m)
577
- ] });
578
- }, { ellipsisNode: A, isEllipsis: B, measureStatus: K } = Yt({
579
- ...n,
580
- children: p,
581
- expanding: u,
582
- width: j,
583
- renderMeasureContent: a,
584
- simpleEllipsis: O || u
585
- }), z = Bt((o) => {
586
- const { contentRect: m } = o == null ? void 0 : o[0];
587
- if (m) {
588
- const w = T.includes("code") ? m.width - 18 : m.width;
589
- [
590
- rt.NO_NEED_ELLIPSIS,
591
- rt.MEASURE_END
592
- ].includes(K) && M(w);
593
- }
594
- }), V = q(null);
595
- U(() => {
596
- let o;
597
- return V.current && (o = new ResizeObserver(z), o.observe(V.current)), () => {
598
- var m, w;
599
- V.current && ((m = o == null ? void 0 : o.unobserve) == null || m.call(o, V.current)), (w = o == null ? void 0 : o.disconnect) == null || w.call(o), o = null;
600
- };
601
- }, [V.current]);
602
- function H(o) {
603
- return /* @__PURE__ */ l(xt, { children: /* @__PURE__ */ l(
604
- qt,
605
- {
606
- ...t,
607
- setEditing: k,
608
- onClickExpand: h,
609
- expanding: u,
610
- isEllipsis: o,
611
- currentContext: _
612
- }
613
- ) });
614
- }
615
- function h(o) {
616
- var m, w;
617
- F(!u), (m = t.onClickExpand) == null || m.call(t, o), (w = n.onExpand) == null || w.call(n, !u, o);
618
- }
619
- Nt(() => {
620
- var o;
621
- (o = n.onEllipsis) == null || o.call(n, B);
622
- }, [B]), St(s, () => L.current);
623
- function e(o, m, w, G = {}) {
624
- let J = o;
625
- return m.forEach((et, at) => {
626
- const ot = at === 0 ? G : {}, nt = Q(w.mark) && w.mark.color ? { style: { backgroundColor: w.mark.color }, ...ot } : { ...ot };
627
- J = it.createElement(et, { ...nt }, J);
628
- }), J;
629
- }
630
- let g;
631
- r === "Paragraph" ? g = d ? "blockquote" : "div" : r === "Title" ? g = `h${I}` : r === "Text" && (g = y ? "div" : "span");
632
- function P() {
633
- const o = st(it.Children.toArray(p)), m = n.showTooltip, w = Q(n.showTooltip) && n.showTooltip.type === "popover" ? "popover" : "tooltip", G = Q(n.showTooltip) ? n.showTooltip.props || {} : {}, J = w === "popover" ? Lt : ft, at = {
634
- style: c,
635
- ...B && !m && !u ? { title: o } : {}
636
- }, ot = B && m && !u, nt = /* @__PURE__ */ l(
637
- g,
638
- {
639
- ref: L,
640
- className: D(
641
- x,
642
- R,
643
- { [`${x}-rtl`]: i },
644
- E
645
- ),
646
- ...at,
647
- ...Wt(b, [
648
- "spacing",
649
- "type",
650
- "close",
651
- "bold",
652
- "disabled",
653
- "mark",
654
- "underline",
655
- "delete",
656
- "code",
657
- "copyable",
658
- "isEllipsis",
659
- "expanding",
660
- "onClickExpand",
661
- "setEditing",
662
- "forceShowExpand"
663
- ]),
664
- children: O && K !== rt.INIT && !u && B ? e(
665
- // CSS folding style, need to wrap the text separately.
666
- a(
667
- /* @__PURE__ */ l("span", { style: S, children: p }),
668
- B
669
- ),
670
- T.length ? T : ["span"],
671
- t,
672
- // The simple-ellipsis class ensures that the ReactNode after the text is displayed correctly (no line breaks)
673
- // Need to act on the immediate parent node of the text
674
- { className: `${x}-simple-ellipsis` }
675
- ) : e(A, T, t)
676
- }
677
- );
678
- return ot ? /* @__PURE__ */ l(J, { content: o, ...G, children: /* @__PURE__ */ l("span", { children: nt }) }) : nt;
679
- }
680
- return C ? /* @__PURE__ */ l(
681
- Gt,
682
- {
683
- ref: s,
684
- ...t,
685
- className: D(
686
- x,
687
- R,
688
- { [`${x}-rtl`]: i },
689
- `${x}-${g}`,
690
- E
691
- ),
692
- prefixCls: x,
693
- setEditing: k,
694
- editableConfig: v
695
- }
696
- ) : P();
697
- }
698
- const ut = Z(Ut);
699
- function zt(t, s) {
700
- const { spacing: r = "default", className: c } = t, { getPrefixCls: E } = lt(ct), p = E("typography"), f = r === "close" ? D(`${p}-spacing-close`, c) : c;
701
- return /* @__PURE__ */ l(
702
- ut,
703
- {
704
- ...t,
705
- ref: s,
706
- componentType: "Paragraph",
707
- className: f
708
- }
709
- );
710
- }
711
- const Et = Z(
712
- zt
713
- );
714
- Et.displayName = "Paragraph";
715
- function te(t, s) {
716
- return /* @__PURE__ */ l(ut, { ...t, componentType: "Text", ref: s });
717
- }
718
- const Ct = Z(te);
719
- Ct.displayName = "Text";
720
- function ee(t, s) {
721
- const { heading: r = 1, ...c } = t;
722
- return /* @__PURE__ */ l(ut, { heading: r, ...c, componentType: "Title", ref: s });
723
- }
724
- const wt = Z(ee);
725
- wt.displayName = "Title";
726
- function oe(t, s) {
727
- const { getPrefixCls: r } = lt(ct), c = r("typography"), { className: E, style: p, children: f } = t, y = D(c, E);
728
- return /* @__PURE__ */ l("article", { ref: s, style: p, className: y, children: f });
729
- }
730
- const $t = Z(oe);
731
- $t.displayName = "Typography";
732
- const pt = $t;
733
- pt.Title = wt;
734
- pt.Text = Ct;
735
- pt.Paragraph = Et;
736
- pt.Ellipsis = Vt;
1
+ import { T as f } from "./chunk/DRJO1GfY.js";
737
2
  export {
738
- pt as default
3
+ f as default
739
4
  };