@unicom-cloud/ui 0.8.112 → 0.8.114

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 (462) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +3 -3
  5. package/Badge.js +2 -2
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/ColorPicker.js +1 -1
  14. package/Comment.js +1 -1
  15. package/ConfigProvider.js +1 -1
  16. package/Copy.js +3 -47
  17. package/Countdown.js +17 -51
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Details.js +15 -51
  21. package/Development.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Dropdown.js +2 -2
  25. package/Empty.js +1 -1
  26. package/Flex.js +16 -52
  27. package/Form.js +1 -1
  28. package/Icon.js +1 -1
  29. package/IconHover.js +1 -1
  30. package/Image.js +1 -1
  31. package/InputNumber.js +1 -1
  32. package/Layout.js +1 -1
  33. package/Link.js +1 -1
  34. package/LiquidFill.js +17 -52
  35. package/List.js +1 -1
  36. package/Loading.js +15 -51
  37. package/Marquee.js +24 -46
  38. package/Mentions.js +1 -1
  39. package/Menu.js +1 -1
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +14 -50
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Popconfirm.js +1 -1
  47. package/Popover.js +1 -1
  48. package/Progress.js +1 -1
  49. package/QrCode.js +16 -53
  50. package/Radio.js +1 -1
  51. package/Rate.js +1 -1
  52. package/ResizeBox.js +2 -2
  53. package/Result.js +1 -1
  54. package/RichText.js +12 -13
  55. package/Segmented.js +16 -51
  56. package/Skeleton.js +1 -1
  57. package/Slider.js +2 -2
  58. package/Space.js +16 -52
  59. package/Spin.js +1 -1
  60. package/Statistic.js +1 -1
  61. package/Steps.js +1 -1
  62. package/Switch.js +2 -2
  63. package/Table.js +1 -1
  64. package/Tabs.js +1 -1
  65. package/Tag.js +1 -1
  66. package/Tooltip.js +1 -1
  67. package/Tour.js +18 -54
  68. package/Transfer.js +1 -1
  69. package/Tree.js +1 -1
  70. package/TreeSelect.js +1 -1
  71. package/Trigger.js +3 -3
  72. package/affix/index.js +2 -2
  73. package/alert/index.js +2 -2
  74. package/anchor/Anchor.js +3 -3
  75. package/anchor/Link.js +1 -1
  76. package/app/App.js +2 -2
  77. package/auto-complete/index.js +1 -1
  78. package/avatar/Avatar.js +1 -1
  79. package/avatar/Group.js +1 -1
  80. package/back-top/index.js +3 -3
  81. package/badge/Count.js +1 -1
  82. package/badge/index.js +2 -2
  83. package/breadcrumb/index.js +2 -2
  84. package/button/Group.js +1 -1
  85. package/button/index.js +1 -1
  86. package/calendar/index.js +2 -2
  87. package/card/Grid.js +1 -1
  88. package/card/Meta.js +1 -1
  89. package/card/index.js +1 -1
  90. package/carousel/Arrow.js +1 -1
  91. package/carousel/Indicator.js +1 -1
  92. package/carousel/index.js +1 -1
  93. package/cascader/Cascader.js +3 -3
  94. package/cascader/index.js +1 -1
  95. package/cascader/util.js +1 -1
  96. package/checkbox/Checkbox.js +2 -2
  97. package/checkbox/Group.js +2 -2
  98. package/checkbox/GroupBlock.js +2 -2
  99. package/checkbox/index.js +2 -2
  100. package/chunk/{BiZSULcr.js → BGb_jT2S.js} +640 -672
  101. package/chunk/{C6A94b7f.js → BcWPf1id.js} +1 -1
  102. package/chunk/BcdTSJks.js +48 -0
  103. package/chunk/{CrOzsnI0.js → Bl3hZtxi.js} +1 -1
  104. package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
  105. package/chunk/{Cx92e1S8.js → CKojyqln.js} +5 -5
  106. package/chunk/{C3kH2ES3.js → CRgtPpMG.js} +1 -1
  107. package/chunk/CVMFAeSw.js +39 -0
  108. package/chunk/{0BhDjhcd.js → CVjWKHBo.js} +1 -1
  109. package/chunk/{DfbO4QTS.js → CYPFoLks.js} +4 -4
  110. package/chunk/{BfVlSL8A.js → Ch4iApRQ.js} +4 -4
  111. package/chunk/ClNkxEcR.js +154 -0
  112. package/chunk/{CYssV-zz.js → Cs9GrNJa.js} +66 -100
  113. package/chunk/{DfUcAhyT.js → CwLSam2p.js} +2 -2
  114. package/chunk/CxbF1opI.js +231 -0
  115. package/chunk/Cy26_CKq.js +33 -0
  116. package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
  117. package/chunk/{CylbdYce.js → D6I1_o6O.js} +1 -1
  118. package/chunk/{CtCFA4ht.js → DPDyV8yt.js} +4 -4
  119. package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
  120. package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
  121. package/chunk/{C1vY8016.js → DstheLSK.js} +79 -110
  122. package/chunk/{KPBMJlOB.js → HFPyZ48d.js} +37 -35
  123. package/chunk/{DhAvt6tJ.js → efH9HX0H.js} +3 -3
  124. package/chunk/exc7v_Hl.js +53 -0
  125. package/chunk/gJsdBcpG.js +10 -0
  126. package/collapse/Collapse.js +2 -2
  127. package/collapse/Item.js +2 -2
  128. package/color-picker/ControlBar.js +1 -1
  129. package/color-picker/InputAlpha.js +1 -1
  130. package/color-picker/InputHex.js +1 -1
  131. package/color-picker/InputRgb.js +1 -1
  132. package/color-picker/Palette.js +1 -1
  133. package/color-picker/Panel.js +2 -2
  134. package/color-picker/index.js +1 -1
  135. package/comment/index.js +1 -1
  136. package/config-provider/ConfigProvider.js +1 -1
  137. package/config-provider/context.js +1 -1
  138. package/config-provider/index.js +2 -2
  139. package/copy/index.js +22 -66
  140. package/countdown/index.js +42 -76
  141. package/date-picker/Picker.js +1 -1
  142. package/date-picker/RangePicker.js +2 -2
  143. package/date-picker/index.js +1 -1
  144. package/descriptions/index.js +1 -1
  145. package/details/index.js +47 -83
  146. package/development/index.js +1 -1
  147. package/divider/index.js +1 -1
  148. package/draggable/index.js +1 -1
  149. package/drawer/Drawer.js +89 -93
  150. package/dropdown/Button.js +1 -1
  151. package/dropdown/index.js +2 -2
  152. package/empty/index.js +1 -1
  153. package/flex/index.js +38 -72
  154. package/form/Control.js +115 -103
  155. package/form/Form.js +2 -2
  156. package/form/FormItem.js +2 -2
  157. package/form/index.js +1 -1
  158. package/form/promisify.js +10 -19
  159. package/form/store.js +3 -3
  160. package/form/util.js +62 -52
  161. package/grid/Grid.js +1 -1
  162. package/grid/Item.js +1 -1
  163. package/hooks/index.js +9 -9
  164. package/hooks/useId.js +1 -1
  165. package/hooks/useInView.js +1 -1
  166. package/hooks/useIntersectionObserver.js +1 -1
  167. package/hooks/useOverrideRef.js +1 -1
  168. package/hooks/useResizeObserver.js +7 -50
  169. package/hooks/useStateWithPromise.js +1 -1
  170. package/hooks/useWatermark.js +1 -1
  171. package/hooks/useWindowSize.js +1 -1
  172. package/icon/addFromIconFontCn.js +1 -1
  173. package/icon/index.js +2 -2
  174. package/icon-hover/index.js +1 -1
  175. package/icons/file.js +1 -1
  176. package/image/Image.js +3 -3
  177. package/image/ImagePreview.js +18 -53
  178. package/image/ImagePreviewArrow.js +1 -1
  179. package/image/ImagePreviewGroup.js +1 -1
  180. package/image/index.js +1 -1
  181. package/index.js +703 -690
  182. package/input/Button.js +1 -1
  183. package/input/Group.js +1 -1
  184. package/input/Input.js +2 -2
  185. package/input/InputElement.js +1 -1
  186. package/input/Password.js +1 -1
  187. package/input/Search.js +1 -1
  188. package/input/Textarea.js +1 -1
  189. package/input/autoSizeTextAreaHeight.js +29 -20
  190. package/input-number/index.js +1 -1
  191. package/input-tag/InputTag.js +2 -2
  192. package/layout/Content.js +1 -1
  193. package/layout/Footer.js +1 -1
  194. package/layout/Header.js +1 -1
  195. package/layout/Sider.js +1 -1
  196. package/layout/index.js +1 -1
  197. package/link/index.js +1 -1
  198. package/liquid-fill/index.js +57 -92
  199. package/list/Item.js +1 -1
  200. package/list/Meta.js +1 -1
  201. package/list/index.js +1 -1
  202. package/loading/index.js +27 -63
  203. package/locale/en-US.js +5 -3
  204. package/locale/tr-TR.js +5 -3
  205. package/marquee/index.js +71 -93
  206. package/marquee-/index.js +74 -96
  207. package/mentions/index.js +1 -1
  208. package/menu/Menu.js +3 -3
  209. package/menu/OverflowWrap.js +1 -1
  210. package/menu/index.js +2 -2
  211. package/message/index.js +2 -2
  212. package/message/useMessage.js +1 -1
  213. package/modal/Confirm.js +2 -2
  214. package/modal/Modal.js +5 -5
  215. package/modal/index.js +2 -2
  216. package/notice/index.js +14 -50
  217. package/notification/index.js +2 -2
  218. package/notification/useNotification.js +1 -1
  219. package/overflow-ellipsis/OverflowItem.js +1 -1
  220. package/overflow-ellipsis/index.js +1 -1
  221. package/package.json +1 -1
  222. package/page-header/index.js +1 -1
  223. package/pagination/PageItem.js +1 -1
  224. package/pagination/PageJumper.js +1 -1
  225. package/pagination/PageOption.js +1 -1
  226. package/pagination/Pagination.js +1 -1
  227. package/picker/Input.js +1 -1
  228. package/picker/InputRange.js +1 -1
  229. package/popconfirm/index.js +1 -1
  230. package/popover/index.js +1 -1
  231. package/progress/CircleProgress.js +1 -1
  232. package/progress/index.js +1 -1
  233. package/qr-code/index.js +1243 -92
  234. package/radio/Group.js +2 -2
  235. package/radio/GroupBlock.js +2 -2
  236. package/radio/Radio.js +2 -2
  237. package/radio/index.js +2 -2
  238. package/rate/index.js +1 -1
  239. package/resize-box/ResizeTrigger.js +1 -1
  240. package/resize-box/Split.js +2 -2
  241. package/resize-box/SplitGroup.js +2 -2
  242. package/resize-box/index.js +2 -2
  243. package/result/index.js +1 -1
  244. package/rich-text/index.js +6332 -77
  245. package/rich-text/lib/diff/index.d.ts +21 -0
  246. package/row-col/Col-.js +1 -1
  247. package/row-col/Col.js +1 -1
  248. package/row-col/Row.js +1 -1
  249. package/segmented/index.js +126 -161
  250. package/select/Option.js +44 -41
  251. package/select/Select.js +10 -12
  252. package/select-view/Core.js +1 -1
  253. package/skeleton/index.js +1 -1
  254. package/slider/Button.js +2 -2
  255. package/slider/index.js +2 -2
  256. package/space/index.js +24 -60
  257. package/spin/DotLoading.js +1 -1
  258. package/spin/index.js +1 -1
  259. package/splitter/Panel.js +1 -1
  260. package/splitter/SplitBar.js +2 -2
  261. package/splitter/Splitter.js +2 -2
  262. package/statistic/index.js +1 -1
  263. package/steps/index.js +1 -1
  264. package/style.css +1 -1
  265. package/switch/index.js +2 -2
  266. package/table/Table.js +14 -53
  267. package/table/index.js +77 -120
  268. package/tabs/Tab.js +3 -3
  269. package/tabs/TabContent.js +2 -2
  270. package/tabs/TabPane.js +1 -1
  271. package/tabs/index.js +2 -2
  272. package/tag/index.js +1 -1
  273. package/time-picker/Picker.js +1 -1
  274. package/time-picker/TimePicker.js +1 -1
  275. package/timeline/Item.js +1 -1
  276. package/timeline/Timeline.js +1 -1
  277. package/tooltip/index.js +1 -1
  278. package/tour/index.js +81 -117
  279. package/transfer/Item.js +2 -2
  280. package/transfer/List.js +2 -2
  281. package/transfer/index.js +1 -1
  282. package/tree/Animation.js +3 -3
  283. package/tree/Node.js +3 -3
  284. package/tree/NodeList.js +1 -1
  285. package/tree/Tree.js +2 -2
  286. package/tree/index.js +1 -1
  287. package/tree-select/Select.js +3 -3
  288. package/tree-select/index.js +1 -1
  289. package/trigger/getPopupStyle.js +1 -1
  290. package/trigger/index.js +145 -145
  291. package/types/common/hooks/src/use-theme/index.d.ts +2 -2
  292. package/types/common/hooks/useStateWithPromise.d.ts +1 -1
  293. package/types/common/hooks/useWindowSize.d.ts +4 -4
  294. package/types/common/utils/dom.d.ts +13 -1
  295. package/types/common/utils/lodash.d.ts +2 -1
  296. package/types/common/utils/reactDOM.d.ts +10 -1
  297. package/types/common/utils/validate.d.ts +2 -1
  298. package/types/pc/carousel/interface.d.ts +2 -2
  299. package/types/pc/color-picker/Panel.d.ts +1 -1
  300. package/types/pc/date-picker/RangePicker.d.ts +1 -1
  301. package/types/pc/form/interface.d.ts +6 -1
  302. package/types/pc/form/promisify.d.ts +5 -0
  303. package/types/pc/form/store.d.ts +1 -1
  304. package/types/pc/form/util.d.ts +1 -1
  305. package/types/pc/index.d.ts +1 -1
  306. package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
  307. package/types/pc/list/interface.d.ts +2 -2
  308. package/types/pc/menu/context.d.ts +1 -1
  309. package/types/pc/qr-code/examples/demo.d.ts +1 -0
  310. package/types/pc/qr-code/examples/download.d.ts +2 -0
  311. package/types/pc/qr-code/examples/full.d.ts +2 -0
  312. package/types/pc/qr-code/examples/image.d.ts +2 -0
  313. package/types/pc/qr-code/index.d.ts +2 -0
  314. package/types/pc/qr-code/src/index.d.ts +116 -0
  315. package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
  316. package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
  317. package/types/pc/rich-text/index.d.ts +7 -4
  318. package/types/pc/rich-text/interface.d.ts +3 -2
  319. package/types/pc/rich-text/{core → lib/core}/editor.d.ts +1 -1
  320. package/types/pc/rich-text/{core → lib/core}/rich.d.ts +3 -7
  321. package/types/pc/rich-text/{core → lib/core}/selection.d.ts +1 -0
  322. package/types/pc/rich-text/{core.d.ts → lib/core.d.ts} +1 -1
  323. package/types/pc/rich-text/lib/delta/AttributeMap.d.ts +15 -0
  324. package/types/pc/rich-text/lib/delta/Op.d.ts +13 -0
  325. package/types/pc/rich-text/lib/delta/OpIterator.d.ts +14 -0
  326. package/types/pc/rich-text/lib/delta/index.d.ts +53 -0
  327. package/types/pc/rich-text/lib/diff/index.d.ts +40 -0
  328. package/types/pc/rich-text/{formats → lib/formats}/bold.d.ts +1 -1
  329. package/types/pc/rich-text/{formats → lib/formats}/font.d.ts +1 -1
  330. package/types/pc/rich-text/lib/formats/hr.d.ts +5 -0
  331. package/types/pc/rich-text/lib/formats/image-resize/index.d.ts +27 -0
  332. package/types/pc/rich-text/lib/formats/image-resize/modules/BaseModule.d.ts +10 -0
  333. package/types/pc/rich-text/lib/formats/image-resize/modules/DisplaySize.d.ts +5 -0
  334. package/types/pc/rich-text/lib/formats/image-resize/modules/Resize.d.ts +13 -0
  335. package/types/pc/rich-text/lib/formats/image-resize/options.d.ts +7 -0
  336. package/types/pc/rich-text/lib/formats/liOl.d.ts +10 -0
  337. package/types/pc/rich-text/lib/formats/liUl.d.ts +10 -0
  338. package/types/pc/rich-text/lib/formats/lineHeight.d.ts +3 -0
  339. package/types/pc/rich-text/{formats → lib/formats}/list.d.ts +1 -0
  340. package/types/pc/rich-text/{formats → lib/formats}/table.d.ts +3 -3
  341. package/types/pc/rich-text/{modules → lib/modules}/clipboard.d.ts +2 -2
  342. package/types/pc/rich-text/{modules → lib/modules}/history.d.ts +1 -1
  343. package/types/pc/rich-text/{modules → lib/modules}/keyboard.d.ts +1 -1
  344. package/types/pc/rich-text/{modules → lib/modules}/syntax.d.ts +2 -2
  345. package/types/pc/rich-text/{modules → lib/modules}/tableEmbed.d.ts +3 -3
  346. package/types/pc/rich-text/{modules → lib/modules}/toolbar.d.ts +1 -1
  347. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/attributor.d.ts +3 -3
  348. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/style.d.ts +2 -2
  349. package/types/pc/rich-text/{ui → lib/ui}/icons.d.ts +5 -1
  350. package/types/pc/rich-text/{ui → lib/ui}/picker.d.ts +1 -0
  351. package/types/pc/tabs/hook/useDomSize.d.ts +2 -2
  352. package/types/pc/tabs/hook/useHeaderScroll.d.ts +2 -2
  353. package/types/pc/tree-select/hook/useStateValue.d.ts +2 -2
  354. package/types/pc/utils/date.d.ts +1 -0
  355. package/types/pc/utils/index.d.ts +2 -2
  356. package/types/pc/utils/validate.d.ts +1 -1
  357. package/typography/Base.js +1 -1
  358. package/typography/Ellipsis.js +70 -114
  359. package/typography/Operations.js +29 -74
  360. package/typography/Paragraph.js +1 -1
  361. package/typography/Typography.js +1 -1
  362. package/upload/TriggerNode.js +1 -1
  363. package/upload/Upload.js +2 -2
  364. package/upload/Uploader.js +1 -1
  365. package/upload/request_.js +1972 -41
  366. package/utils/PqbCSSTransition.js +1 -1
  367. package/utils/contextHolder.js +1 -1
  368. package/utils/date.js +1 -0
  369. package/utils/dom.js +1 -1
  370. package/utils/index.js +248 -236
  371. package/utils/lodash.js +33 -32
  372. package/utils/react19Adapter.js +1 -1
  373. package/utils/reactDOM.js +1 -1
  374. package/utils/validate.js +15 -5
  375. package/verification-code/VerificationCode.js +1 -1
  376. package/version/index.js +1 -1
  377. package/virtual-list/VirtualList.js +218 -217
  378. package/watermark/Watermark.js +1 -1
  379. package/chunk/BCmfDFV4.js +0 -4237
  380. package/chunk/BG6j6Ct7.js +0 -30
  381. package/chunk/C5CbL5ku.js +0 -56
  382. package/chunk/CXrVhA6-.js +0 -54
  383. package/chunk/DMv8Hn4u.js +0 -231
  384. package/chunk/DsuIQH0F.js +0 -200
  385. package/chunk/d1c9z8T1.js +0 -49
  386. package/chunk/vP3qfmKM.js +0 -84
  387. package/rich-text/core.js +0 -11
  388. package/rich-text/rich.js +0 -1347
  389. package/types/common/utils/index.d.ts +0 -47
  390. package/types/common/utils/keyboardCode.d.ts +0 -4
  391. package/types/common/utils/math.d.ts +0 -1
  392. package/types/common/utils/reactTransitionGroup.d.ts +0 -1
  393. package/types/common/utils/uuid.d.ts +0 -1
  394. package/types/pc/rich-text/delta/AttributeMap.d.ts +0 -10
  395. package/types/pc/rich-text/delta/Op.d.ts +0 -11
  396. package/types/pc/rich-text/delta/OpIterator.d.ts +0 -13
  397. package/types/pc/rich-text/delta/index.d.ts +0 -45
  398. package/types/common/hooks/src/utils/{index.d.ts → is.d.ts} +0 -0
  399. package/types/pc/rich-text/{blots → lib/blots}/block.d.ts +0 -0
  400. package/types/pc/rich-text/{blots → lib/blots}/break.d.ts +0 -0
  401. package/types/pc/rich-text/{blots → lib/blots}/container.d.ts +0 -0
  402. package/types/pc/rich-text/{blots → lib/blots}/cursor.d.ts +0 -0
  403. package/types/pc/rich-text/{blots → lib/blots}/embed.d.ts +0 -0
  404. package/types/pc/rich-text/{blots → lib/blots}/inline.d.ts +0 -0
  405. package/types/pc/rich-text/{blots → lib/blots}/scroll.d.ts +0 -0
  406. package/types/pc/rich-text/{blots → lib/blots}/text.d.ts +0 -0
  407. package/types/pc/rich-text/{core → lib/core}/composition.d.ts +0 -0
  408. package/types/pc/rich-text/{core → lib/core}/emitter.d.ts +0 -0
  409. package/types/pc/rich-text/{core → lib/core}/instances.d.ts +0 -0
  410. package/types/pc/rich-text/{core → lib/core}/logger.d.ts +0 -0
  411. package/types/pc/rich-text/{core → lib/core}/module.d.ts +0 -0
  412. package/types/pc/rich-text/{core → lib/core}/theme.d.ts +0 -0
  413. package/types/pc/rich-text/{core → lib/core}/utils/createRegistryWithFormats.d.ts +0 -0
  414. package/types/pc/rich-text/{core → lib/core}/utils/scrollRectIntoView.d.ts +0 -0
  415. package/types/pc/rich-text/{formats → lib/formats}/align.d.ts +0 -0
  416. package/types/pc/rich-text/{formats → lib/formats}/background.d.ts +0 -0
  417. package/types/pc/rich-text/{formats → lib/formats}/blockquote.d.ts +0 -0
  418. package/types/pc/rich-text/{formats → lib/formats}/code.d.ts +0 -0
  419. package/types/pc/rich-text/{formats → lib/formats}/color.d.ts +0 -0
  420. package/types/pc/rich-text/{formats → lib/formats}/direction.d.ts +0 -0
  421. package/types/pc/rich-text/{formats → lib/formats}/formula.d.ts +0 -0
  422. package/types/pc/rich-text/{formats → lib/formats}/header.d.ts +0 -0
  423. package/types/pc/rich-text/{formats → lib/formats}/image.d.ts +0 -0
  424. package/types/pc/rich-text/{formats → lib/formats}/indent.d.ts +0 -0
  425. package/types/pc/rich-text/{formats → lib/formats}/italic.d.ts +0 -0
  426. package/types/pc/rich-text/{formats → lib/formats}/link.d.ts +0 -0
  427. package/types/pc/rich-text/{formats → lib/formats}/script.d.ts +0 -0
  428. package/types/pc/rich-text/{formats → lib/formats}/size.d.ts +0 -0
  429. package/types/pc/rich-text/{formats → lib/formats}/strike.d.ts +0 -0
  430. package/types/pc/rich-text/{formats → lib/formats}/underline.d.ts +0 -0
  431. package/types/pc/rich-text/{formats → lib/formats}/video.d.ts +0 -0
  432. package/types/pc/rich-text/{rich.d.ts → lib/index.d.ts} +0 -0
  433. package/types/pc/rich-text/{modules → lib/modules}/input.d.ts +0 -0
  434. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/index.d.ts +0 -0
  435. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
  436. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
  437. package/types/pc/rich-text/{modules → lib/modules}/table.d.ts +0 -0
  438. package/types/pc/rich-text/{modules → lib/modules}/uiNode.d.ts +0 -0
  439. package/types/pc/rich-text/{modules → lib/modules}/uploader.d.ts +0 -0
  440. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/class.d.ts +0 -0
  441. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/store.d.ts +0 -0
  442. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/blot.d.ts +0 -0
  443. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/container.d.ts +0 -0
  444. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/leaf.d.ts +0 -0
  445. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/parent.d.ts +0 -0
  446. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/shadow.d.ts +0 -0
  447. package/types/pc/rich-text/{parchment → lib/parchment}/blot/block.d.ts +0 -0
  448. package/types/pc/rich-text/{parchment → lib/parchment}/blot/embed.d.ts +0 -0
  449. package/types/pc/rich-text/{parchment → lib/parchment}/blot/inline.d.ts +0 -0
  450. package/types/pc/rich-text/{parchment → lib/parchment}/blot/scroll.d.ts +0 -0
  451. package/types/pc/rich-text/{parchment → lib/parchment}/blot/text.d.ts +0 -0
  452. package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-list.d.ts +0 -0
  453. package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-node.d.ts +0 -0
  454. package/types/pc/rich-text/{parchment → lib/parchment}/error.d.ts +0 -0
  455. package/types/pc/rich-text/{parchment → lib/parchment}/index.d.ts +1 -1
  456. /package/types/pc/rich-text/{parchment → lib/parchment}/registry.d.ts +0 -0
  457. /package/types/pc/rich-text/{parchment → lib/parchment}/scope.d.ts +0 -0
  458. /package/types/pc/rich-text/{themes → lib/themes}/base.d.ts +0 -0
  459. /package/types/pc/rich-text/{themes → lib/themes}/pqb.d.ts +0 -0
  460. /package/types/pc/rich-text/{ui → lib/ui}/color-picker.d.ts +0 -0
  461. /package/types/pc/rich-text/{ui → lib/ui}/icon-picker.d.ts +0 -0
  462. /package/types/pc/rich-text/{ui → lib/ui}/tooltip.d.ts +0 -0
package/chunk/BG6j6Ct7.js DELETED
@@ -1,30 +0,0 @@
1
- import { useState as u, useEffect as s } from "react";
2
- function m(o) {
3
- const [t, r] = u({
4
- value: o,
5
- resolve: (e) => {
6
- }
7
- });
8
- return s(() => {
9
- const e = window.requestAnimationFrame(() => {
10
- t.resolve(t.value);
11
- });
12
- return () => {
13
- window.cancelAnimationFrame(e);
14
- };
15
- }, [t]), [
16
- t.value,
17
- (e) => new Promise((a) => {
18
- r((i) => {
19
- let n = e;
20
- return typeof e == "function" && (n = e(i.value)), {
21
- value: n,
22
- resolve: a
23
- };
24
- });
25
- })
26
- ];
27
- }
28
- export {
29
- m as u
30
- };
package/chunk/C5CbL5ku.js DELETED
@@ -1,56 +0,0 @@
1
- import o from "react";
2
- import "@unicom-cloud/utils/date";
3
- import "@unicom-cloud/utils/case-name";
4
- import "@unicom-cloud/utils/class-name";
5
- import "@unicom-cloud/utils/constant/ui";
6
- import "@unicom-cloud/utils/clipboard-copy";
7
- import "./DS_deHpN.js";
8
- import "./d1c9z8T1.js";
9
- import "@unicom-cloud/utils/emitter";
10
- import "@unicom-cloud/utils/file/fileToURL";
11
- import "react/jsx-runtime";
12
- import "lodash/escapeRegExp";
13
- import "lodash/isArray";
14
- import "lodash/isNumber";
15
- import "lodash/isString";
16
- import "lodash/isFunction";
17
- import "lodash/throttle";
18
- import "./DsaQZE4X.js";
19
- import "lodash/camelCase";
20
- import "lodash/capitalize";
21
- import "lodash/cloneDeep";
22
- import "lodash/debounce";
23
- import "lodash/get";
24
- import "lodash/has";
25
- import "lodash/kebabCase";
26
- import "lodash/merge";
27
- import "lodash/mergeWith";
28
- import "lodash/set";
29
- import "lodash/setWith";
30
- import "lodash/snakeCase";
31
- import "lodash/startCase";
32
- import "lodash/uniq";
33
- import "lodash/upperFirst";
34
- import "@unicom-cloud/utils/math";
35
- import "lodash/isPlainObject";
36
- import "@unicom-cloud/utils/pinyin";
37
- import "./BJ9_azwQ.js";
38
- import "./CXrVhA6-.js";
39
- import "@unicom-cloud/utils/file/saveAs";
40
- import "@unicom-cloud/utils/screenfull";
41
- import "@unicom-cloud/utils/constant/ui.js";
42
- import "@unicom-cloud/utils/tinycolor";
43
- import "@unicom-cloud/utils/ui-color";
44
- import "react-is";
45
- import "@unicom-cloud/utils/tree";
46
- import { isString as i } from "@unicom-cloud/utils/is";
47
- import "uuid";
48
- import "./hc_ufgVf.js";
49
- import "@unicom-cloud/utils/constant/keyboardCode";
50
- function _(r) {
51
- const t = o.useId();
52
- return i(r) ? `${r}-${t}` : t;
53
- }
54
- export {
55
- _ as u
56
- };
package/chunk/CXrVhA6-.js DELETED
@@ -1,54 +0,0 @@
1
- import { Component as s } from "react";
2
- import u, { findDOMNode as f } from "react-dom";
3
- import d from "react-dom/client";
4
- import { g as c, f as l } from "./DsaQZE4X.js";
5
- import m from "../utils/warning.js";
6
- import { isFunction as o } from "@unicom-cloud/utils/is";
7
- const p = u;
8
- let a;
9
- try {
10
- a = p.createRoot || d.createRoot;
11
- } catch (t) {
12
- console.error(t);
13
- }
14
- let i;
15
- function R(t) {
16
- const r = t.constructor;
17
- if (!o(r)) return !1;
18
- i ||= /* @__PURE__ */ new WeakSet();
19
- const e = i.has(r);
20
- return i.add(r), e;
21
- }
22
- function E(t, r) {
23
- if (!t) return null;
24
- const e = t;
25
- if (t instanceof Element)
26
- return t;
27
- if (e.dom instanceof Element)
28
- return e.dom;
29
- if (e.current instanceof Element)
30
- return e.current;
31
- if (c) {
32
- const n = e.props?.ref;
33
- if (n && "current" in n && n.current instanceof Element)
34
- return n.current;
35
- }
36
- return o(e.getRootDOMNode) ? e.getRootDOMNode() : e instanceof s && o(f) ? f(e) : r && (m(
37
- l && !R(r),
38
- "Element does not define the `getRootDOMNode` method causing a call to React.findDOMNode. but findDOMNode is deprecated in StrictMode. Please check the code logic",
39
- { element: t, instance: r }
40
- ), o(f)) ? f(r) : null;
41
- }
42
- function k(t, r) {
43
- if (!t) return;
44
- let e;
45
- c ? e = t?.props?.ref ?? t?.ref : e = t?.ref, e && (o(e) ? e(r) : "current" in e && (e.current = r));
46
- }
47
- function C(t) {
48
- a = t;
49
- }
50
- export {
51
- k as c,
52
- E as f,
53
- C as s
54
- };
package/chunk/DMv8Hn4u.js DELETED
@@ -1,231 +0,0 @@
1
- import { jsx as a, jsxs as x, Fragment as H } from "react/jsx-runtime";
2
- import T from "lodash/isFunction";
3
- import L from "lodash/isNil";
4
- import Q, { createContext as S, useContext as y, useRef as q } from "react";
5
- import { a as B, I as J } from "./C1vY8016.js";
6
- import { u as E } from "./FgWHhRFz.js";
7
- import { u as j } from "./2vdCeheu.js";
8
- import R from "@unicom-cloud/utils/class-name";
9
- import { o as K } from "./BKKEev13.js";
10
- import U from "lodash/isArray";
11
- import W from "lodash/isPlainObject";
12
- import { pickTriggerPropsFromRest as X } from "../utils/constant.js";
13
- import { a as Y } from "./ClqoGc3r.js";
14
- import _ from "../typography/index.js";
15
- const A = {
16
- type: "radio"
17
- }, Z = {
18
- type: "radio",
19
- mode: "outline",
20
- direction: "horizontal"
21
- }, P = S(A), he = ({ children: m }) => /* @__PURE__ */ a(P.Provider, { value: A, children: m });
22
- function D(m) {
23
- const {
24
- getPrefixCls: f,
25
- size: g,
26
- componentConfig: v,
27
- rtl: h
28
- } = y(B), e = E(
29
- m,
30
- Z,
31
- v?.RadioGroup
32
- ), {
33
- style: r,
34
- className: s,
35
- name: o,
36
- children: t,
37
- direction: n,
38
- type: C,
39
- mode: b,
40
- options: $,
41
- disabled: p
42
- } = e, [d, G] = j(void 0, {
43
- defaultValue: e.defaultValue,
44
- value: e.value
45
- }), k = e.size || g, i = f?.("radio"), V = R(
46
- `${i}-group`,
47
- {
48
- [`${i}-group-type-button`]: C !== "radio",
49
- [`${i}-size-${k}`]: !!k,
50
- [`${i}-mode-${b}`]: !!b,
51
- [`${i}-group-disabled`]: p,
52
- [`${i}-group-direction-horizontal`]: n === "horizontal",
53
- // 潘启宝添加
54
- [`${i}-group-direction-vertical`]: n === "vertical",
55
- [`${i}-group-rtl`]: h
56
- },
57
- s
58
- ), z = {
59
- onChangeValue: (c, w) => {
60
- const { onChange: N } = e;
61
- c !== d && ("value" in e || G(c), N?.(c, w));
62
- },
63
- type: C,
64
- value: d,
65
- disabled: p,
66
- group: !0,
67
- name: o
68
- };
69
- return /* @__PURE__ */ a(P.Provider, { value: z, children: /* @__PURE__ */ a(
70
- "div",
71
- {
72
- className: V,
73
- role: "radiogroup",
74
- style: r,
75
- ...X(e),
76
- ...Y(e),
77
- children: $ && U($) ? $.map((c, w) => {
78
- const { value: N, label: I, disabled: M, ...O } = c;
79
- return W(c) ? /* @__PURE__ */ a(
80
- u,
81
- {
82
- ...O,
83
- disabled: p || M,
84
- value: N,
85
- children: I
86
- },
87
- N
88
- ) : /* @__PURE__ */ a(u, { value: c, disabled: p, children: c }, w);
89
- }) : t
90
- }
91
- ) });
92
- }
93
- D.displayName = "RadioGroup";
94
- const ee = {};
95
- function F(m) {
96
- const { getPrefixCls: f, componentConfig: g, rtl: v } = y(B), h = E(
97
- m,
98
- ee,
99
- g?.["Radio.Block"]
100
- ), { className: e, options: r, ...s } = h, o = f?.("radio-group-block");
101
- return /* @__PURE__ */ a(
102
- u.Group,
103
- {
104
- className: R(`${o}`, e),
105
- ...s,
106
- onChange: (t, n) => {
107
- h.onChange?.(t, n);
108
- },
109
- children: r.map((t) => /* @__PURE__ */ a(u, { value: t.value, children: ({ checked: n }) => /* @__PURE__ */ x(
110
- "div",
111
- {
112
- style: { width: t.width },
113
- className: R(
114
- `${o}-card`,
115
- n && `${o}-card-checked`
116
- ),
117
- children: [
118
- /* @__PURE__ */ a("div", { className: `${o}-card-mask`, children: /* @__PURE__ */ a("div", { className: `${o}-card-mask-dot` }) }),
119
- /* @__PURE__ */ x("div", { className: `${o}-card-content`, children: [
120
- /* @__PURE__ */ a(
121
- _.Ellipsis,
122
- {
123
- className: `${o}-card-content-title`,
124
- rows: 1,
125
- showTooltip: !0,
126
- expandable: !1,
127
- onExpand: (C) => {
128
- },
129
- children: t.title
130
- }
131
- ),
132
- /* @__PURE__ */ a(
133
- _.Ellipsis,
134
- {
135
- className: `${o}-card-content-desc`,
136
- rows: 1,
137
- showTooltip: !0,
138
- expandable: !1,
139
- onExpand: (C) => {
140
- },
141
- children: t.desc
142
- }
143
- )
144
- ] })
145
- ]
146
- }
147
- ) }, t.title))
148
- }
149
- );
150
- }
151
- F.displayName = "RadioGroupBlock";
152
- function u(m) {
153
- const f = q(null), { getPrefixCls: g, componentConfig: v, rtl: h } = y(B), e = E(
154
- m,
155
- {},
156
- v?.Radio
157
- ), r = y(P), s = g?.("radio"), o = { ...e };
158
- r.group && (o.checked = r.value === e.value, o.disabled = "disabled" in e ? e.disabled : r.disabled);
159
- const { disabled: t, children: n, value: C, style: b, className: $, ...p } = o, [d, G] = j(!1, {
160
- value: o.checked,
161
- defaultValue: o.defaultChecked
162
- }), k = R(
163
- `${s}${r.type === "button" ? "-button" : ""}`,
164
- {
165
- [`${s}-checked`]: d,
166
- [`${s}-disabled`]: t,
167
- [`${s}-rtl`]: h
168
- },
169
- $
170
- ), i = (l) => {
171
- const { onChange: z, value: c } = o;
172
- t || (r.group ? r.onChangeValue?.(c, l) : !("checked" in e) && !d && G(!0), !d && z?.(!0, l));
173
- }, V = Q.useCallback(
174
- (l) => {
175
- T(e.children) && (l.preventDefault(), f.current && f.current.click()), p.onClick?.(l);
176
- },
177
- [e.children, p.onClick]
178
- );
179
- return /* @__PURE__ */ x(
180
- "label",
181
- {
182
- ...K(p, ["checked", "onChange"]),
183
- onClick: V,
184
- style: b,
185
- className: k,
186
- children: [
187
- /* @__PURE__ */ a(
188
- "input",
189
- {
190
- ref: f,
191
- disabled: t,
192
- value: C || "",
193
- type: "radio",
194
- ...r.name ? { name: r.name } : {},
195
- checked: d,
196
- onChange: (l) => {
197
- l.persist(), i(l);
198
- },
199
- onClick: (l) => {
200
- l.stopPropagation();
201
- }
202
- }
203
- ),
204
- T(n) ? n({ checked: d }) : r.type === "radio" ? /* @__PURE__ */ x(H, { children: [
205
- /* @__PURE__ */ a(
206
- J,
207
- {
208
- prefix: s,
209
- className: `${s}-mask-wrapper`,
210
- disabled: d || t,
211
- children: /* @__PURE__ */ a("div", { className: `${s}-mask` })
212
- }
213
- ),
214
- !L(n) && /* @__PURE__ */ a("span", { className: `${s}-text`, children: n })
215
- ] }) : r.type === "button" && /* @__PURE__ */ a("span", { className: `${s}-button-inner`, children: n })
216
- ]
217
- }
218
- );
219
- }
220
- u.__PQB_RADIO = !0;
221
- u.displayName = "Radio";
222
- u.Group = D;
223
- u.GroupBlock = F;
224
- u.GroupContext = P;
225
- export {
226
- he as C,
227
- D as G,
228
- u as R,
229
- F as a,
230
- P as b
231
- };
package/chunk/DsuIQH0F.js DELETED
@@ -1,200 +0,0 @@
1
- import { useRef as m, useEffect as b, useState as L } from "react";
2
- import { u as w } from "./DfChiMIE.js";
3
- import { isBrowser as p } from "@unicom-cloud/utils/constant/platform";
4
- import "@unicom-cloud/utils/date";
5
- import "@unicom-cloud/utils/case-name";
6
- import "@unicom-cloud/utils/class-name";
7
- import "@unicom-cloud/utils/constant/ui";
8
- import "@unicom-cloud/utils/clipboard-copy";
9
- import "./DS_deHpN.js";
10
- import "./d1c9z8T1.js";
11
- import "@unicom-cloud/utils/emitter";
12
- import "@unicom-cloud/utils/file/fileToURL";
13
- import "react/jsx-runtime";
14
- import "lodash/escapeRegExp";
15
- import "lodash/isArray";
16
- import "lodash/isNumber";
17
- import "lodash/isString";
18
- import "lodash/isFunction";
19
- import "lodash/throttle";
20
- import "./DsaQZE4X.js";
21
- import "lodash/camelCase";
22
- import "lodash/capitalize";
23
- import "lodash/cloneDeep";
24
- import "lodash/debounce";
25
- import "lodash/get";
26
- import "lodash/has";
27
- import "lodash/kebabCase";
28
- import "lodash/merge";
29
- import "lodash/mergeWith";
30
- import "lodash/set";
31
- import "lodash/setWith";
32
- import "lodash/snakeCase";
33
- import "lodash/startCase";
34
- import "lodash/uniq";
35
- import "lodash/upperFirst";
36
- import "@unicom-cloud/utils/math";
37
- import "lodash/isPlainObject";
38
- import "@unicom-cloud/utils/pinyin";
39
- import "./BJ9_azwQ.js";
40
- import "./CXrVhA6-.js";
41
- import "@unicom-cloud/utils/file/saveAs";
42
- import "@unicom-cloud/utils/screenfull";
43
- import "@unicom-cloud/utils/constant/ui.js";
44
- import "@unicom-cloud/utils/tinycolor";
45
- import "@unicom-cloud/utils/ui-color";
46
- import "react-is";
47
- import "@unicom-cloud/utils/tree";
48
- import { isFunction as E } from "@unicom-cloud/utils/is";
49
- import "uuid";
50
- import "./hc_ufgVf.js";
51
- import "@unicom-cloud/utils/constant/keyboardCode";
52
- import { i as x } from "./CdXR6dj7.js";
53
- import { d as h } from "./CN7NKv_2.js";
54
- function A(t) {
55
- const e = m(t);
56
- return e.current = t, e;
57
- }
58
- function R(t, e) {
59
- if (!p)
60
- return;
61
- if (!t)
62
- return e;
63
- let r;
64
- return E(t) ? r = t() : "current" in t ? r = t.current : r = t, r;
65
- }
66
- const T = (t) => {
67
- x && (E(t) || console.error(
68
- `useUnmount expected parameter is a function, got ${typeof t}`
69
- ));
70
- const e = A(t);
71
- b(
72
- () => () => {
73
- e.current();
74
- },
75
- []
76
- );
77
- }, y = (t) => (r, s, u) => {
78
- const i = m(!1), n = m([]), c = m([]), o = m(void 0);
79
- t(() => {
80
- const a = (Array.isArray(u) ? u : [u]).map((N) => R(N));
81
- if (!i.current) {
82
- i.current = !0, n.current = a, c.current = s, o.current = r();
83
- return;
84
- }
85
- (a.length !== n.current.length || !h(n.current, a) || !h(c.current, s)) && (o.current?.(), n.current = a, c.current = s, o.current = r());
86
- }), T(() => {
87
- o.current?.(), i.current = !1;
88
- });
89
- }, W = y(b), B = (t, {
90
- manual: e,
91
- ready: r = !0,
92
- defaultParams: s = [],
93
- refreshDeps: u = [],
94
- refreshDepsAction: i
95
- }) => {
96
- const n = m(!1);
97
- return n.current = !1, w(() => {
98
- !e && r && (n.current = !0, t.run(...s));
99
- }, [r]), w(() => {
100
- n.current || e || (n.current = !0, i ? i() : t.refresh());
101
- }, [...u]), {
102
- onBefore: () => {
103
- if (!r)
104
- return {
105
- stopNow: !0
106
- };
107
- }
108
- };
109
- };
110
- B.onInit = ({ ready: t = !0, manual: e }) => ({
111
- loading: !e && t
112
- });
113
- function S() {
114
- return p ? document.visibilityState !== "hidden" : !0;
115
- }
116
- const l = /* @__PURE__ */ new Set();
117
- function Ut(t) {
118
- return l.add(t), function() {
119
- l.has(t) && l.delete(t);
120
- };
121
- }
122
- if (p) {
123
- const t = () => {
124
- S() && l.forEach((e) => e());
125
- };
126
- window.addEventListener("visibilitychange", t, !1);
127
- }
128
- const O = () => p && typeof navigator.onLine < "u" ? navigator.onLine : !0, d = /* @__PURE__ */ new Set();
129
- function $t(t) {
130
- return d.add(t), function() {
131
- d.has(t) && d.delete(t);
132
- };
133
- }
134
- if (p) {
135
- const t = () => {
136
- !S() || !O() || d.forEach((e) => e());
137
- };
138
- window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1);
139
- }
140
- const g = {
141
- top: NaN,
142
- left: NaN,
143
- bottom: NaN,
144
- right: NaN,
145
- height: NaN,
146
- width: NaN
147
- }, v = {
148
- text: "",
149
- ...g
150
- };
151
- function U(t) {
152
- if (!t || t.rangeCount < 1)
153
- return g;
154
- const e = t.getRangeAt(0), { height: r, width: s, top: u, left: i, right: n, bottom: c } = e.getBoundingClientRect();
155
- return {
156
- height: r,
157
- width: s,
158
- top: u,
159
- left: i,
160
- right: n,
161
- bottom: c
162
- };
163
- }
164
- function jt(t) {
165
- const [e, r] = L(v), s = m(e), u = m(!1);
166
- return s.current = e, W(
167
- () => {
168
- const i = R(t, document);
169
- if (!i)
170
- return;
171
- const n = () => {
172
- let o = null, f = "", a = g;
173
- window.getSelection && (o = window.getSelection(), f = o ? o.toString() : "", f && u.current && (a = U(o), r({ ...e, text: f, ...a })));
174
- }, c = (o) => {
175
- if (o.button === 2 || !window.getSelection)
176
- return;
177
- s.current.text && r({ ...v }), u.current = !1;
178
- const f = window.getSelection();
179
- f && (f.removeAllRanges(), u.current = i.contains(o.target));
180
- };
181
- return i.addEventListener("mouseup", n), document.addEventListener("mousedown", c), () => {
182
- i.removeEventListener("mouseup", n), document.removeEventListener("mousedown", c);
183
- };
184
- },
185
- [],
186
- t
187
- ), e;
188
- }
189
- export {
190
- jt as a,
191
- T as b,
192
- y as c,
193
- W as d,
194
- $t as e,
195
- B as f,
196
- R as g,
197
- S as i,
198
- Ut as s,
199
- A as u
200
- };
package/chunk/d1c9z8T1.js DELETED
@@ -1,49 +0,0 @@
1
- import { N as i } from "./CjNkKiBA.js";
2
- const s = function() {
3
- try {
4
- return !(typeof window < "u" && document !== void 0);
5
- } catch {
6
- return !0;
7
- }
8
- }(), w = /* @__PURE__ */ function() {
9
- return s ? i : function(t, o, n, e) {
10
- t?.addEventListener?.(o, n, e || !1);
11
- };
12
- }(), g = /* @__PURE__ */ function() {
13
- return s ? i : function(t, o, n, e) {
14
- t?.removeEventListener?.(o, n, e || !1);
15
- };
16
- }(), E = function(t, o) {
17
- if (!t)
18
- return !1;
19
- if (t.contains)
20
- return t.contains(o);
21
- let n = o;
22
- for (; n; ) {
23
- if (n === t)
24
- return !0;
25
- n = n.parentNode;
26
- }
27
- return !1;
28
- };
29
- function h(t) {
30
- if (!(t instanceof HTMLElement) || t === document.documentElement || t === window)
31
- return !1;
32
- const o = t === document.documentElement ? t.clientHeight : t.offsetHeight, n = t === document.documentElement ? t.clientWidth : t.offsetWidth, e = t.scrollHeight, l = t.scrollWidth, c = window.getComputedStyle(t), u = c.getPropertyValue("overflow-x"), f = c.getPropertyValue("overflow-y"), r = ["scroll", "auto"], a = e > o && r.includes(f), d = l > n && r.includes(u);
33
- return a || d;
34
- }
35
- const p = (t, o = document.documentElement) => {
36
- const n = [];
37
- let e = t;
38
- for (; e && e !== o; )
39
- h(e) && n.push(e), e = e.parentElement;
40
- return n;
41
- };
42
- export {
43
- s as a,
44
- w as b,
45
- E as c,
46
- p as g,
47
- h as i,
48
- g as o
49
- };