@unicom-cloud/ui 0.8.147 → 0.8.149

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 (812) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/Anchor.js +1 -1
  4. package/App.js +1 -1
  5. package/AutoComplete.js +1 -1
  6. package/Avatar.js +1 -1
  7. package/BackTop.js +1 -1
  8. package/Badge.js +1 -1
  9. package/Breadcrumb.js +1 -1
  10. package/Button.js +1 -1
  11. package/Calendar.js +1 -1
  12. package/Card.js +1 -1
  13. package/Carousel.js +1 -1
  14. package/Cascader.js +1 -1
  15. package/Checkbox.js +1 -1
  16. package/Collapse.js +1 -1
  17. package/ColorPicker.js +1 -1
  18. package/Comment.js +1 -1
  19. package/ConfigProvider.js +1 -1
  20. package/Constant.js +1 -1
  21. package/Copy.js +1 -1
  22. package/Countdown.js +1 -1
  23. package/DatePicker.js +1 -1
  24. package/Descriptions.js +2 -2
  25. package/Details.js +1 -1
  26. package/Development.js +1 -1
  27. package/Divider.js +1 -1
  28. package/Draggable.js +1 -1
  29. package/Draw.js +6 -0
  30. package/Drawer.js +1 -1
  31. package/Dropdown.js +1 -1
  32. package/Empty.js +1 -1
  33. package/Flex.js +1 -1
  34. package/Form.js +1 -1
  35. package/GlobalProvider.js +11 -0
  36. package/Grid.js +1 -1
  37. package/Icon.js +1 -1
  38. package/IconHover.js +1 -1
  39. package/Image.js +1 -1
  40. package/Input.js +1 -1
  41. package/InputNumber.js +1 -1
  42. package/InputTag.js +1 -1
  43. package/Layout.js +1 -1
  44. package/Link.js +1 -1
  45. package/LiquidFill.js +1 -1
  46. package/List.js +1 -1
  47. package/Loading.js +1 -1
  48. package/Marquee.js +1 -1
  49. package/Mask.js +1 -1
  50. package/Masonry.js +1 -1
  51. package/Mentions.js +1 -1
  52. package/Menu.js +1 -1
  53. package/Message.js +1 -1
  54. package/Modal.js +1 -1
  55. package/Notice.js +1 -1
  56. package/Notification.js +1 -1
  57. package/OverflowEllipsis.js +1 -1
  58. package/PageHeader.js +1 -1
  59. package/Pagination.js +1 -1
  60. package/Picker.js +1 -1
  61. package/Popconfirm.js +1 -1
  62. package/Popover.js +1 -1
  63. package/Portal.js +1 -1
  64. package/Progress.js +1 -1
  65. package/Progress2.js +1 -1
  66. package/QrCode.js +1 -1
  67. package/Radio.js +1 -1
  68. package/Rate.js +1 -1
  69. package/ResizeBox.js +1 -1
  70. package/Result.js +1 -1
  71. package/RichText.js +1 -1
  72. package/RowCol.js +1 -1
  73. package/Segmented.js +1 -1
  74. package/Select.js +1 -1
  75. package/SelectView.js +1 -1
  76. package/Skeleton.js +1 -1
  77. package/Slider.js +1 -1
  78. package/Space.js +1 -1
  79. package/SpeechSynthesis.js +1 -1
  80. package/Spin.js +1 -1
  81. package/Splitter.js +1 -1
  82. package/Statistic.js +1 -1
  83. package/Steps.js +1 -1
  84. package/SuspenseFallbackTest.js +1 -1
  85. package/Switch.js +1 -1
  86. package/Table.js +1 -1
  87. package/Tabs.js +1 -1
  88. package/Tag.js +1 -1
  89. package/TimePicker.js +1 -1
  90. package/Timeline.js +1 -1
  91. package/Timer.js +1 -1
  92. package/Tooltip.js +1 -1
  93. package/Tour.js +1 -1
  94. package/Transfer.js +1 -1
  95. package/Tree.js +1 -1
  96. package/TreeSelect.js +1 -1
  97. package/Trigger.js +1 -1
  98. package/Typography.js +1 -1
  99. package/Upload.js +1 -1
  100. package/VerificationCode.js +3 -3
  101. package/VirtualList.js +1 -1
  102. package/Watermark.js +5 -5
  103. package/affix/Affix.js +1 -1
  104. package/affix/index.js +1 -1
  105. package/alert/Alert.js +1 -1
  106. package/alert/index.js +1 -1
  107. package/anchor/Anchor.js +1 -1
  108. package/anchor/Link.js +1 -1
  109. package/anchor/context.js +1 -1
  110. package/anchor/index.js +1 -1
  111. package/anchor/utils.js +1 -1
  112. package/app/App.js +1 -1
  113. package/app/context.js +1 -1
  114. package/app/index.js +1 -1
  115. package/app/useApp.js +1 -1
  116. package/auto-complete/AutoComplete.js +1 -1
  117. package/auto-complete/index.js +1 -1
  118. package/avatar/Avatar.js +1 -1
  119. package/avatar/Group.js +1 -1
  120. package/avatar/context.js +1 -1
  121. package/avatar/index.js +1 -1
  122. package/back-top/BackTop.js +1 -1
  123. package/back-top/index.js +1 -1
  124. package/badge/Badge.js +1 -1
  125. package/badge/Count.js +1 -1
  126. package/badge/index.js +1 -1
  127. package/breadcrumb/Breadcrumb.js +35 -35
  128. package/breadcrumb/Item.js +1 -1
  129. package/breadcrumb/context.js +1 -1
  130. package/breadcrumb/index.js +1 -1
  131. package/button/Button.js +8 -8
  132. package/button/Group.js +1 -1
  133. package/button/index.js +1 -1
  134. package/calendar/Lunar.js +1 -1
  135. package/calendar/Month.js +1 -1
  136. package/calendar/WeekList.js +1 -1
  137. package/calendar/Year.js +1 -1
  138. package/calendar/header/Panel.js +1 -1
  139. package/calendar/header/index.js +2 -2
  140. package/calendar/hook/useCellClassName.js +1 -1
  141. package/calendar/index.js +1 -1
  142. package/card/Grid.js +1 -1
  143. package/card/Meta.js +1 -1
  144. package/card/index.js +1 -1
  145. package/carousel/Arrow.js +1 -1
  146. package/carousel/Indicator.js +1 -1
  147. package/carousel/index.js +1 -1
  148. package/cascader/Cascader.js +1 -1
  149. package/cascader/base/node.js +1 -1
  150. package/cascader/base/store.js +1 -1
  151. package/cascader/hook/useRefCurrent.js +1 -1
  152. package/cascader/index.js +1 -1
  153. package/cascader/panel/List.js +1 -1
  154. package/cascader/panel/Option.js +1 -1
  155. package/cascader/panel/Search.js +1 -1
  156. package/cascader/utils.js +1 -1
  157. package/checkbox/Checkbox.js +1 -1
  158. package/checkbox/Group.js +1 -1
  159. package/checkbox/GroupBlock.js +1 -1
  160. package/checkbox/context.js +1 -1
  161. package/checkbox/index.js +1 -1
  162. package/checkbox/useCheckbox.js +1 -1
  163. package/collapse/Collapse.js +40 -38
  164. package/collapse/Item.js +2 -2
  165. package/collapse/context.js +1 -1
  166. package/collapse/index.js +1 -1
  167. package/color-picker/ControlBar.js +1 -1
  168. package/color-picker/InputAlpha.js +1 -1
  169. package/color-picker/InputHex.js +1 -1
  170. package/color-picker/InputRgb.js +1 -1
  171. package/color-picker/Mode.js +1 -1
  172. package/color-picker/Palette.js +1 -1
  173. package/color-picker/Panel.js +57 -55
  174. package/color-picker/colors.js +1 -1
  175. package/color-picker/hooks/useColorPicker.js +48 -48
  176. package/color-picker/hooks/useControlBlock.js +1 -1
  177. package/color-picker/index.js +124 -120
  178. package/color-picker/interface.js +1 -1
  179. package/color-picker/utils.js +33 -33
  180. package/comment/index.js +1 -1
  181. package/config-provider/ConfigProvider.js +15 -13
  182. package/config-provider/context.js +9 -8
  183. package/config-provider/index.js +1 -1
  184. package/config-provider/initUI.js +18 -0
  185. package/config-provider/useConfigProvider.js +33 -28
  186. package/constant/index.js +1 -1
  187. package/copy/index.js +1 -1
  188. package/countdown/index.js +1 -1
  189. package/countdown/utils.js +1 -1
  190. package/date-picker/DatePickerRange.js +1 -1
  191. package/date-picker/Picker.js +1 -1
  192. package/date-picker/context.js +1 -1
  193. package/date-picker/hook/useCellClassName.js +1 -1
  194. package/date-picker/index.js +1 -1
  195. package/date-picker/panel/Body.js +1 -1
  196. package/date-picker/panel/Footer.js +1 -1
  197. package/date-picker/panel/Header.js +1 -1
  198. package/date-picker/panel/Shortcut.js +1 -1
  199. package/date-picker/panel/WeekList.js +1 -1
  200. package/date-picker/panel/date/index.js +1 -1
  201. package/date-picker/panel/month/index.js +1 -1
  202. package/date-picker/panel/quarter/index.js +1 -1
  203. package/date-picker/panel/range/index.js +1 -1
  204. package/date-picker/panel/week/index.js +1 -1
  205. package/date-picker/panel/year/index.js +1 -1
  206. package/date-picker/utils.js +1 -1
  207. package/descriptions/index.js +3 -3
  208. package/details/index.js +1 -1
  209. package/development/index.js +1 -1
  210. package/divider/index.js +1 -1
  211. package/draggable/Item.js +1 -1
  212. package/draggable/index.js +1 -1
  213. package/draw/Draw.js +47 -0
  214. package/draw/constant.js +1 -0
  215. package/draw/index.js +6 -0
  216. package/drawer/Drawer.js +204 -198
  217. package/drawer/index.js +1 -1
  218. package/dropdown/Button.js +1 -1
  219. package/dropdown/index.js +1 -1
  220. package/empty/index.js +1 -1
  221. package/flex/index.js +1 -1
  222. package/form/Control.js +1 -1
  223. package/form/Form.js +1 -1
  224. package/form/FormItem.js +68 -60
  225. package/form/FormItemTip.js +13 -19
  226. package/form/FormLabel.js +1 -1
  227. package/form/FormList.js +39 -33
  228. package/form/FormProvider.js +1 -1
  229. package/form/context.js +9 -8
  230. package/form/hook/useForm.js +1 -1
  231. package/form/hook/useFormContext.js +1 -1
  232. package/form/hook/useFormState.js +1 -1
  233. package/form/hook/useWatch.js +1 -1
  234. package/form/index.js +1 -1
  235. package/form/interface.js +1 -1
  236. package/form/promisify.js +1 -1
  237. package/form/store.js +1 -1
  238. package/form/utils.js +1 -1
  239. package/global-provider/context.js +6 -0
  240. package/global-provider/index.js +20 -0
  241. package/grid/Grid.js +2 -2
  242. package/grid/Item.js +2 -2
  243. package/grid/context.js +1 -1
  244. package/grid/index.js +1 -1
  245. package/grid/utils.js +1 -1
  246. package/hooks/index.js +21 -21
  247. package/hooks/use-breakpoint/index.js +2 -2
  248. package/hooks/use-computed-state/index.js +1 -1
  249. package/hooks/use-create/index.js +1 -1
  250. package/hooks/use-creation/index.js +1 -1
  251. package/hooks/use-event/index.js +1 -1
  252. package/hooks/use-event-listener/index.js +1 -1
  253. package/hooks/use-force-update/index.js +1 -1
  254. package/hooks/use-fullscreen/index.js +1 -1
  255. package/hooks/use-id/index.js +1 -1
  256. package/hooks/use-in-view/index.js +1 -1
  257. package/hooks/use-intersection-observer/index.js +1 -1
  258. package/hooks/use-intersection-observers/index.js +1 -1
  259. package/hooks/use-interval/index.js +1 -1
  260. package/hooks/use-is-first-render/index.js +1 -1
  261. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  262. package/hooks/use-keyboard-event/index.js +1 -1
  263. package/hooks/use-latest/index.js +1 -1
  264. package/hooks/use-listen-window-resize/index.js +1 -1
  265. package/hooks/use-media/index.js +1 -1
  266. package/hooks/use-merge-props/index.js +1 -1
  267. package/hooks/use-merge-value/index.js +1 -1
  268. package/hooks/use-move/index.js +1 -1
  269. package/hooks/use-mutation-observers/index.js +1 -1
  270. package/hooks/use-online-status/index.js +1 -1
  271. package/hooks/use-overflow-hidden/index.js +1 -1
  272. package/hooks/use-override-ref/index.js +1 -1
  273. package/hooks/use-persist-callback/index.js +1 -1
  274. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  275. package/hooks/use-previous/index.js +1 -1
  276. package/hooks/use-refs/index.js +1 -1
  277. package/hooks/use-resize-observer/index.js +1 -1
  278. package/hooks/use-resize-observers/index.js +1 -1
  279. package/hooks/use-responsive-state/index.js +2 -2
  280. package/hooks/use-set-state/index.js +1 -1
  281. package/hooks/use-state-callback/index.js +1 -1
  282. package/hooks/use-state-with-promise/index.js +1 -1
  283. package/hooks/use-update-effect/index.js +1 -1
  284. package/hooks/use-update-layout-effect/index.js +1 -1
  285. package/hooks/use-verification-code/index.js +1 -1
  286. package/hooks/use-watch/index.js +1 -1
  287. package/hooks/use-watermark/index.js +1 -1
  288. package/hooks/use-watermark/utils.js +1 -1
  289. package/hooks/use-window-size/index.js +1 -1
  290. package/hooks/useBreakpoint.js +1 -1
  291. package/hooks/useComputedState.js +1 -1
  292. package/hooks/useCreate.js +1 -1
  293. package/hooks/useCreation.js +1 -1
  294. package/hooks/useEvent.js +1 -1
  295. package/hooks/useEventListener.js +1 -1
  296. package/hooks/useForceUpdate.js +1 -1
  297. package/hooks/useFullscreen.js +1 -1
  298. package/hooks/useId.js +1 -1
  299. package/hooks/useInView.js +1 -1
  300. package/hooks/useIntersectionObserver.js +1 -1
  301. package/hooks/useIntersectionObservers.js +1 -1
  302. package/hooks/useInterval.js +1 -1
  303. package/hooks/useIsFirstRender.js +1 -1
  304. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  305. package/hooks/useKeyboardEvent.js +1 -1
  306. package/hooks/useLatest.js +1 -1
  307. package/hooks/useListenWindowResize.js +1 -1
  308. package/hooks/useMedia.js +1 -1
  309. package/hooks/useMergeProps.js +1 -1
  310. package/hooks/useMergeValue.js +1 -1
  311. package/hooks/useMove.js +1 -1
  312. package/hooks/useMutationObservers.js +1 -1
  313. package/hooks/useOnlineStatus.js +1 -1
  314. package/hooks/useOverflowHidden.js +1 -1
  315. package/hooks/useOverrideRef.js +1 -1
  316. package/hooks/usePersistCallback.js +1 -1
  317. package/hooks/usePrefersColorSchemeDark.js +1 -1
  318. package/hooks/usePrevious.js +1 -1
  319. package/hooks/useRefs.js +1 -1
  320. package/hooks/useResizeObserver.js +1 -1
  321. package/hooks/useResizeObservers.js +1 -1
  322. package/hooks/useResponsiveState.js +2 -2
  323. package/hooks/useSetState.js +1 -1
  324. package/hooks/useStateCallback.js +1 -1
  325. package/hooks/useStateWithPromise.js +1 -1
  326. package/hooks/useUnmountOnExit.js +1 -1
  327. package/hooks/useUpdateEffect.js +1 -1
  328. package/hooks/useUpdateLayoutEffect.js +1 -1
  329. package/hooks/useVerificationCode.js +2 -2
  330. package/hooks/useWatch.js +1 -1
  331. package/hooks/useWatermark.js +3 -3
  332. package/hooks/useWindowSize.js +1 -1
  333. package/icon/Icon.js +1 -1
  334. package/icon/addIconFromCdn.js +1 -1
  335. package/icon/index.js +1 -1
  336. package/icon-hover/index.js +1 -1
  337. package/icons/file/index.js +1 -1
  338. package/icons/file.js +1 -1
  339. package/icons.js +1 -1
  340. package/image/Image.js +1 -1
  341. package/image/ImageFooter.js +1 -1
  342. package/image/ImagePreview.js +1 -1
  343. package/image/ImagePreviewArrow.js +1 -1
  344. package/image/ImagePreviewGroup.js +1 -1
  345. package/image/ImagePreviewToolbar.js +1 -1
  346. package/image/TriggerForToolbar.js +1 -1
  347. package/image/context.js +1 -1
  348. package/image/index.js +1 -1
  349. package/image/utils/getFixTranslate.js +1 -1
  350. package/image/utils/getScale.js +1 -1
  351. package/image/utils/hook/useImageStatus.js +1 -1
  352. package/image/utils/hook/useShowFooter.js +1 -1
  353. package/index.js +723 -715
  354. package/input/Button.js +1 -1
  355. package/input/Group.js +1 -1
  356. package/input/Input.js +1 -1
  357. package/input/InputElement.js +65 -61
  358. package/input/Number.js +1 -1
  359. package/input/Password.js +1 -1
  360. package/input/Search.js +1 -1
  361. package/input/Tag.js +1 -1
  362. package/input/Textarea.js +113 -111
  363. package/input/autoSizeTextareaHeight.js +1 -1
  364. package/input/index.js +1 -1
  365. package/input/useComposition.js +1 -1
  366. package/input/utils.js +1 -1
  367. package/input-number/decimal.js +1 -1
  368. package/input-number/index.js +1 -1
  369. package/input-number/useSelectionRange.js +1 -1
  370. package/input-number/utils.js +1 -1
  371. package/input-tag/InputTag.js +39 -37
  372. package/input-tag/index.js +1 -1
  373. package/layout/Content.js +1 -1
  374. package/layout/Footer.js +1 -1
  375. package/layout/Header.js +1 -1
  376. package/layout/Sider.js +54 -54
  377. package/layout/context.js +1 -1
  378. package/layout/index.js +1 -1
  379. package/link/index.js +1 -1
  380. package/liquid-fill/index.js +1 -1
  381. package/list/Item.js +27 -26
  382. package/list/Meta.js +1 -1
  383. package/list/index.js +1 -1
  384. package/loading/index.js +1 -1
  385. package/locale/ar-EG.js +1 -1
  386. package/locale/de-DE.js +1 -1
  387. package/locale/default.js +1 -1
  388. package/locale/en-US.js +1 -1
  389. package/locale/es-ES.js +1 -1
  390. package/locale/fr-FR.js +1 -1
  391. package/locale/id-ID.js +1 -1
  392. package/locale/it-IT.js +1 -1
  393. package/locale/ja-JP.js +1 -1
  394. package/locale/ko-KR.js +1 -1
  395. package/locale/ms-MY.js +1 -1
  396. package/locale/pt-BR.js +1 -1
  397. package/locale/pt-PT.js +1 -1
  398. package/locale/ru-RU.js +1 -1
  399. package/locale/th-TH.js +1 -1
  400. package/locale/tr-TR.js +1 -1
  401. package/locale/vi-VN.js +1 -1
  402. package/locale/zh-CN.js +1 -1
  403. package/locale/zh-HK.js +1 -1
  404. package/locale/zh-TW.js +1 -1
  405. package/marquee/index.js +1 -1
  406. package/mask/Mask.js +65 -50
  407. package/mask/index.js +1 -1
  408. package/masonry/Masonry.js +2 -2
  409. package/masonry/MasonryItem.js +1 -1
  410. package/masonry/hooks/useDelay.js +1 -1
  411. package/masonry/hooks/useGutter.js +1 -1
  412. package/masonry/hooks/usePositions.js +1 -1
  413. package/masonry/hooks/useRefs.js +1 -1
  414. package/masonry/index.js +1 -1
  415. package/mentions/index.js +1 -1
  416. package/mentions/utils.js +1 -1
  417. package/menu/Indent.js +1 -1
  418. package/menu/Item.js +34 -34
  419. package/menu/ItemGroup.js +1 -1
  420. package/menu/Menu.js +66 -61
  421. package/menu/OverflowWrap.js +1 -1
  422. package/menu/context.js +1 -1
  423. package/menu/index.js +1 -1
  424. package/menu/sub-menu/Inline.js +1 -1
  425. package/menu/sub-menu/Pop.js +1 -1
  426. package/menu/sub-menu/index.js +1 -1
  427. package/menu/utils.js +26 -24
  428. package/message/Message.js +36 -36
  429. package/message/index.js +1 -1
  430. package/message/useMessage.js +2 -2
  431. package/modal/Confirm.js +66 -61
  432. package/modal/Modal.js +227 -221
  433. package/modal/config.js +1 -1
  434. package/modal/index.js +1 -1
  435. package/modal/use-modal/Hook.js +33 -31
  436. package/modal/use-modal/index.js +52 -47
  437. package/notice/Notice.js +53 -52
  438. package/notice/index.js +1 -1
  439. package/notification/Notification.js +1 -1
  440. package/notification/index.js +1 -1
  441. package/notification/useNotification.js +2 -2
  442. package/notification/withNotification.js +1 -1
  443. package/overflow-ellipsis/OverflowItem.js +1 -1
  444. package/overflow-ellipsis/index.js +1 -1
  445. package/package.json +1 -1
  446. package/page-header/index.js +1 -1
  447. package/pagination/PageItem.js +1 -1
  448. package/pagination/PageJumper.js +1 -1
  449. package/pagination/PageOption.js +2 -2
  450. package/pagination/Pagination.js +1 -1
  451. package/pagination/index.js +1 -1
  452. package/pagination/interface.js +1 -1
  453. package/picker/Input.js +1 -1
  454. package/picker/InputRange.js +1 -1
  455. package/picker/index.js +1 -1
  456. package/popconfirm/index.js +1 -1
  457. package/popover/Popover.js +1 -1
  458. package/popover/index.js +1 -1
  459. package/portal/Portal.js +1 -1
  460. package/portal/index.js +1 -1
  461. package/progress/CircleProgress.js +1 -1
  462. package/progress/LineProgess.js +1 -1
  463. package/progress/StepProgress.js +1 -1
  464. package/progress/index.js +1 -1
  465. package/progress2/index.js +1 -1
  466. package/qr-code/QRCode.js +1 -1
  467. package/qr-code/index.js +1 -1
  468. package/qr-code/src/index.js +1 -1
  469. package/qr-code/src/qrcodegen.js +1 -1
  470. package/radio/Group.js +99 -96
  471. package/radio/GroupBlock.js +1 -1
  472. package/radio/Radio.js +1 -1
  473. package/radio/index.js +1 -1
  474. package/rate/index.js +1 -1
  475. package/resize-box/ResizeTrigger.js +1 -1
  476. package/resize-box/Split.js +1 -1
  477. package/resize-box/SplitGroup.js +1 -1
  478. package/resize-box/index.js +1 -1
  479. package/result/403.js +1 -1
  480. package/result/404.js +1 -1
  481. package/result/500.js +1 -1
  482. package/result/index.js +1 -1
  483. package/rich-text/RichText.js +1 -1
  484. package/rich-text/Toolbar.js +1 -1
  485. package/rich-text/constant.js +1 -1
  486. package/rich-text/index.js +1 -1
  487. package/rich-text/lib/blots/block.js +1 -1
  488. package/rich-text/lib/blots/break.js +1 -1
  489. package/rich-text/lib/blots/container.js +1 -1
  490. package/rich-text/lib/blots/cursor.js +1 -1
  491. package/rich-text/lib/blots/embed.js +1 -1
  492. package/rich-text/lib/blots/inline.js +1 -1
  493. package/rich-text/lib/blots/scroll.js +1 -1
  494. package/rich-text/lib/blots/text.js +1 -1
  495. package/rich-text/lib/core/composition.js +1 -1
  496. package/rich-text/lib/core/editor.js +1 -1
  497. package/rich-text/lib/core/emitter.js +13 -12
  498. package/rich-text/lib/core/logger.js +1 -1
  499. package/rich-text/lib/core/module.js +1 -1
  500. package/rich-text/lib/core/rich.js +1 -1
  501. package/rich-text/lib/core/selection.js +1 -1
  502. package/rich-text/lib/core/theme.js +1 -1
  503. package/rich-text/lib/core/utils/createRegistryWithFormats.js +1 -1
  504. package/rich-text/lib/core/utils/scrollRectIntoView.js +1 -1
  505. package/rich-text/lib/delta/AttributeMap.js +1 -1
  506. package/rich-text/lib/delta/Op.js +1 -1
  507. package/rich-text/lib/delta/OpIterator.js +1 -1
  508. package/rich-text/lib/delta/index.js +1 -1
  509. package/rich-text/lib/diff/index.js +1 -1
  510. package/rich-text/lib/formats/align.js +1 -1
  511. package/rich-text/lib/formats/background.js +1 -1
  512. package/rich-text/lib/formats/blockquote.js +1 -1
  513. package/rich-text/lib/formats/bold.js +1 -1
  514. package/rich-text/lib/formats/code.js +1 -1
  515. package/rich-text/lib/formats/color.js +1 -1
  516. package/rich-text/lib/formats/direction.js +1 -1
  517. package/rich-text/lib/formats/emoji.js +1 -1
  518. package/rich-text/lib/formats/font.js +1 -1
  519. package/rich-text/lib/formats/formula.js +1 -1
  520. package/rich-text/lib/formats/header.js +1 -1
  521. package/rich-text/lib/formats/hr.js +1 -1
  522. package/rich-text/lib/formats/image.js +1 -1
  523. package/rich-text/lib/formats/indent.js +1 -1
  524. package/rich-text/lib/formats/italic.js +1 -1
  525. package/rich-text/lib/formats/lineHeight.js +1 -1
  526. package/rich-text/lib/formats/link.js +1 -1
  527. package/rich-text/lib/formats/list.js +1 -1
  528. package/rich-text/lib/formats/script.js +1 -1
  529. package/rich-text/lib/formats/size.js +1 -1
  530. package/rich-text/lib/formats/strike.js +1 -1
  531. package/rich-text/lib/formats/table.js +1 -1
  532. package/rich-text/lib/formats/underline.js +1 -1
  533. package/rich-text/lib/formats/video.js +1 -1
  534. package/rich-text/lib/index.js +1 -1
  535. package/rich-text/lib/modules/clipboard.js +1 -1
  536. package/rich-text/lib/modules/history.js +1 -1
  537. package/rich-text/lib/modules/image-resize/index.js +1 -1
  538. package/rich-text/lib/modules/image-resize/modules/Base.js +1 -1
  539. package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +1 -1
  540. package/rich-text/lib/modules/image-resize/modules/Resize.js +1 -1
  541. package/rich-text/lib/modules/image-resize/options.js +1 -1
  542. package/rich-text/lib/modules/input.js +1 -1
  543. package/rich-text/lib/modules/keyboard.js +1 -1
  544. package/rich-text/lib/modules/normalizeExternalHTML/index.js +1 -1
  545. package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +1 -1
  546. package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +1 -1
  547. package/rich-text/lib/modules/table.js +1 -1
  548. package/rich-text/lib/modules/toolbar.js +1 -1
  549. package/rich-text/lib/modules/uiNode.js +1 -1
  550. package/rich-text/lib/modules/uploader.js +1 -1
  551. package/rich-text/lib/parchment/attributor/attributor.js +1 -1
  552. package/rich-text/lib/parchment/attributor/class.js +1 -1
  553. package/rich-text/lib/parchment/attributor/store.js +1 -1
  554. package/rich-text/lib/parchment/attributor/style.js +1 -1
  555. package/rich-text/lib/parchment/blot/abstract/container.js +1 -1
  556. package/rich-text/lib/parchment/blot/abstract/leaf.js +1 -1
  557. package/rich-text/lib/parchment/blot/abstract/parent.js +1 -1
  558. package/rich-text/lib/parchment/blot/abstract/shadow.js +1 -1
  559. package/rich-text/lib/parchment/blot/block.js +1 -1
  560. package/rich-text/lib/parchment/blot/embed.js +1 -1
  561. package/rich-text/lib/parchment/blot/inline.js +1 -1
  562. package/rich-text/lib/parchment/blot/scroll.js +1 -1
  563. package/rich-text/lib/parchment/blot/text.js +1 -1
  564. package/rich-text/lib/parchment/collection/linked-list.js +1 -1
  565. package/rich-text/lib/parchment/error.js +1 -1
  566. package/rich-text/lib/parchment/index.js +1 -1
  567. package/rich-text/lib/parchment/registry.js +1 -1
  568. package/rich-text/lib/parchment/scope.js +1 -1
  569. package/row-col/Col-.js +1 -1
  570. package/row-col/Col.js +1 -1
  571. package/row-col/Row.js +2 -2
  572. package/row-col/context.js +1 -1
  573. package/row-col/index.js +1 -1
  574. package/segmented/index.js +1 -1
  575. package/select/Option.js +1 -1
  576. package/select/OptionGroup.js +1 -1
  577. package/select/Select.js +1 -1
  578. package/select/index.js +1 -1
  579. package/select/utils.js +1 -1
  580. package/select-view/Core.js +1 -1
  581. package/select-view/index.js +1 -1
  582. package/skeleton/Image.js +1 -1
  583. package/skeleton/Text.js +1 -1
  584. package/skeleton/index.js +1 -1
  585. package/slider/Button.js +1 -1
  586. package/slider/Dot.js +1 -1
  587. package/slider/Input.js +1 -1
  588. package/slider/Mark.js +1 -1
  589. package/slider/Tick.js +1 -1
  590. package/slider/hook/useInterval.js +1 -1
  591. package/slider/hook/useLegalValue.js +1 -1
  592. package/slider/index.js +2 -2
  593. package/slider/utils.js +1 -1
  594. package/space/index.js +1 -1
  595. package/speech-synthesis/index.js +1 -1
  596. package/spin/DotLoading.js +1 -1
  597. package/spin/index.js +1 -1
  598. package/splitter/Panel.js +1 -1
  599. package/splitter/SplitBar.js +1 -1
  600. package/splitter/Splitter.js +1 -1
  601. package/splitter/hooks/useItems.js +1 -1
  602. package/splitter/hooks/useResizable.js +1 -1
  603. package/splitter/hooks/useResize.js +1 -1
  604. package/splitter/hooks/useSizes.js +1 -1
  605. package/splitter/index.js +1 -1
  606. package/statistic/index.js +1 -1
  607. package/statistic/interface.js +1 -1
  608. package/steps/Step.js +2 -2
  609. package/steps/index.js +1 -1
  610. package/style/variables.css +3 -3
  611. package/style.css +1 -1
  612. package/suspense-fallback-test/index.js +1 -1
  613. package/switch/index.js +1 -1
  614. package/table/ColGroup.js +1 -1
  615. package/table/Table.js +1 -1
  616. package/table/constant.js +1 -1
  617. package/table/context.js +1 -1
  618. package/table/hook/useColumns.js +1 -1
  619. package/table/hook/useComponent.js +1 -1
  620. package/table/hook/useExpand.js +1 -1
  621. package/table/hook/useRowSelection.js +1 -1
  622. package/table/hook/useSorter.js +1 -1
  623. package/table/hook/useStickyClassNames.js +1 -1
  624. package/table/hook/useStickyOffsets.js +1 -1
  625. package/table/hook/useThResizable.js +1 -1
  626. package/table/index.js +1 -1
  627. package/table/summary/Cell.js +1 -1
  628. package/table/summary/Row.js +1 -1
  629. package/table/summary/context.js +1 -1
  630. package/table/summary/index.js +1 -1
  631. package/table/tbody/Td.js +119 -121
  632. package/table/tbody/Tr.js +1 -1
  633. package/table/tbody/index.js +1 -1
  634. package/table/tfoot/index.js +1 -1
  635. package/table/th-resizable/index.js +1 -1
  636. package/table/thead/Column.js +1 -1
  637. package/table/thead/index.js +1 -1
  638. package/table/utils.js +1 -1
  639. package/tabs/TabContent.js +1 -1
  640. package/tabs/TabPane.js +1 -1
  641. package/tabs/Tabs.js +56 -56
  642. package/tabs/context.js +1 -1
  643. package/tabs/hook/useDomSize.js +1 -1
  644. package/tabs/hook/useHeaderScroll.js +1 -1
  645. package/tabs/index.js +1 -1
  646. package/tabs/tab-header/DropdownIcon.js +1 -1
  647. package/tabs/tab-header/TabInk.js +1 -1
  648. package/tabs/tab-header/TabNavIcon.js +1 -1
  649. package/tabs/tab-header/TabTitle.js +1 -1
  650. package/tabs/tab-header/index.js +1 -1
  651. package/tabs/utils.js +1 -1
  652. package/tag/index.js +1 -1
  653. package/time-picker/Picker.js +1 -1
  654. package/time-picker/TimeColumn.js +1 -1
  655. package/time-picker/TimePicker.js +1 -1
  656. package/time-picker/TimePickerRange.js +1 -1
  657. package/time-picker/context.js +1 -1
  658. package/time-picker/index.js +1 -1
  659. package/time-picker/utils.js +1 -1
  660. package/timeline/Item.js +1 -1
  661. package/timeline/Timeline.js +1 -1
  662. package/timeline/index.js +1 -1
  663. package/timer/index.js +1 -1
  664. package/tooltip/Tooltip.js +74 -78
  665. package/tooltip/index.js +1 -1
  666. package/tour/index.js +1 -1
  667. package/transfer/Item.js +1 -1
  668. package/transfer/List.js +4 -4
  669. package/transfer/index.js +1 -1
  670. package/tree/Animation.js +1 -1
  671. package/tree/Node.js +1 -1
  672. package/tree/NodeList.js +1 -1
  673. package/tree/Tree.js +1 -1
  674. package/tree/context.js +1 -1
  675. package/tree/index.js +1 -1
  676. package/tree/utils.js +1 -1
  677. package/tree-select/List.js +1 -1
  678. package/tree-select/Select.js +1 -1
  679. package/tree-select/hook/useKeyCache.js +1 -1
  680. package/tree-select/hook/useStateValue.js +1 -1
  681. package/tree-select/hook/useTreeData.js +1 -1
  682. package/tree-select/index.js +1 -1
  683. package/tree-select/interface.js +1 -1
  684. package/tree-select/utils.js +1 -1
  685. package/trigger/getPopupStyle.js +84 -83
  686. package/trigger/index.js +287 -286
  687. package/types/button/interface.d.ts +1 -1
  688. package/types/color-picker/Panel.d.ts +2 -0
  689. package/types/config-provider/context.d.ts +1 -0
  690. package/types/config-provider/initUI.d.ts +3 -0
  691. package/types/config-provider/interface.d.ts +6 -0
  692. package/types/draw/Draw.d.ts +6 -0
  693. package/types/draw/constant.d.ts +0 -0
  694. package/types/draw/index.d.ts +4 -0
  695. package/types/draw/interface.d.ts +8 -0
  696. package/types/drawer/interface.d.ts +5 -4
  697. package/types/form/context.d.ts +1 -0
  698. package/types/form/interface.d.ts +5 -0
  699. package/types/global-provider/context.d.ts +3 -0
  700. package/types/global-provider/index.d.ts +11 -0
  701. package/types/global-provider/interface.d.ts +4 -0
  702. package/types/index.d.ts +2 -0
  703. package/types/interface.d.ts +1 -1
  704. package/types/mask/interface.d.ts +1 -0
  705. package/types/menu/context.d.ts +1 -1
  706. package/types/menu/interface.d.ts +1 -1
  707. package/types/modal/Confirm.d.ts +1 -1
  708. package/types/modal/interface.d.ts +11 -13
  709. package/types/modal/use-modal/Hook.d.ts +1 -1
  710. package/types/radio/interface.d.ts +2 -2
  711. package/types/rich-text/lib/core/emitter.d.ts +1 -1
  712. package/types/table/interface.d.ts +3 -4
  713. package/types/trigger/interface.d.ts +7 -0
  714. package/types/utils/emitter.d.ts +7 -1
  715. package/types/utils/names.d.ts +6 -0
  716. package/types/utils/setDarkTheme.d.ts +2 -2
  717. package/types/utils/setTheme.d.ts +1 -1
  718. package/typography/Base.js +1 -1
  719. package/typography/EditContent.js +1 -1
  720. package/typography/Ellipsis.js +1 -1
  721. package/typography/Operations.js +1 -1
  722. package/typography/Paragraph.js +1 -1
  723. package/typography/Text.js +1 -1
  724. package/typography/Title.js +1 -1
  725. package/typography/Typography.js +1 -1
  726. package/typography/index.js +1 -1
  727. package/typography/useCssEllipsis.js +1 -1
  728. package/typography/useEllipsis.js +1 -1
  729. package/upload/TriggerNode.js +1 -1
  730. package/upload/Upload.js +126 -116
  731. package/upload/Uploader.js +1 -1
  732. package/upload/constant.js +1 -1
  733. package/upload/index.js +1 -1
  734. package/upload/list/PictureItem.js +1 -1
  735. package/upload/list/TextItem.js +1 -1
  736. package/upload/list/UploadProgress.js +1 -1
  737. package/upload/list/index.js +1 -1
  738. package/upload/list/utils.js +1 -1
  739. package/upload/request.js +1 -1
  740. package/upload/utils.js +1 -1
  741. package/utils/callOrReturn.js +1 -1
  742. package/utils/callbackOriginRef.js +1 -1
  743. package/utils/caseName.js +1 -1
  744. package/utils/className.js +1 -1
  745. package/utils/constant.js +1 -1
  746. package/utils/contextHolder.js +1 -1
  747. package/utils/copy.js +1 -1
  748. package/utils/date.js +1 -1
  749. package/utils/dayjs.js +1 -1
  750. package/utils/dom.js +1 -1
  751. package/utils/emitter.js +11 -4
  752. package/utils/fileRead.js +1 -1
  753. package/utils/fileToDataURL.js +1 -1
  754. package/utils/fillNBSP.js +1 -1
  755. package/utils/findRootElement.js +1 -1
  756. package/utils/findScrollParent.js +1 -1
  757. package/utils/getHighlightText.js +1 -1
  758. package/utils/getHotkeyHandler.js +1 -1
  759. package/utils/getStringLength.js +1 -1
  760. package/utils/include.js +1 -1
  761. package/utils/index.js +264 -261
  762. package/utils/intersectionObserver.js +1 -1
  763. package/utils/is.js +1 -1
  764. package/utils/keyboardCode.js +1 -1
  765. package/utils/lodash.js +1 -1
  766. package/utils/math.js +1 -1
  767. package/utils/mergeProps.js +1 -1
  768. package/utils/mergedToString.js +1 -1
  769. package/utils/mutationObserver.js +1 -1
  770. package/utils/names.js +7 -1
  771. package/utils/omit.js +1 -1
  772. package/utils/pad.js +1 -1
  773. package/utils/pick.js +1 -1
  774. package/utils/pinyin.js +1 -1
  775. package/utils/react19Adapter.js +1 -1
  776. package/utils/ref.js +1 -1
  777. package/utils/resizeObserver.js +1 -1
  778. package/utils/responsiveObserve.js +1 -1
  779. package/utils/saveAs.js +1 -1
  780. package/utils/screenfull.js +1 -1
  781. package/utils/scrollIntoViewIfNeeded.js +1 -1
  782. package/utils/setCreateRoot.js +1 -1
  783. package/utils/setDarkTheme.js +6 -6
  784. package/utils/setPrimaryColor.js +1 -1
  785. package/utils/setTheme.js +1 -1
  786. package/utils/string.js +1 -1
  787. package/utils/style.js +1 -1
  788. package/utils/throttleByRaf.js +1 -1
  789. package/utils/throttleByRaf2.js +1 -1
  790. package/utils/toArray.js +1 -1
  791. package/utils/tree.js +1 -1
  792. package/utils/tween.js +1 -1
  793. package/utils/uuid.js +1 -1
  794. package/utils/validate.js +1 -1
  795. package/utils/warning.js +1 -1
  796. package/verification-code/VerificationCode.js +2 -2
  797. package/verification-code/index.js +4 -4
  798. package/version/index.js +2 -2
  799. package/virtual-list/Filler.js +1 -1
  800. package/virtual-list/VirtualList.js +5 -5
  801. package/virtual-list/constant.js +1 -1
  802. package/virtual-list/hook/useCacheChildrenNodes.js +1 -1
  803. package/virtual-list/hook/useComputeVirtualItemHeight.js +1 -1
  804. package/virtual-list/index.js +1 -1
  805. package/virtual-list/utils/algorithm.js +1 -1
  806. package/virtual-list/utils/item.js +1 -1
  807. package/watermark/Watermark.js +2 -2
  808. package/watermark/index.js +2 -2
  809. package/types/masonry/demo/basic.d.ts +0 -3
  810. package/types/masonry/demo/dynamic.d.ts +0 -3
  811. package/types/masonry/demo/image.d.ts +0 -2
  812. package/types/masonry/demo/responsive.d.ts +0 -3
package/trigger/index.js CHANGED
@@ -1,34 +1,34 @@
1
- /* 2026-01-29 15:15:33 */
2
- import { jsx as T, jsxs as xe } from "react/jsx-runtime";
3
- import { CSSTransition as co } from "@unicom-cloud/ui-common/transition-group";
4
- import { forwardRef as ao, useContext as po, useRef as H, useState as fo, Children as Se, useCallback as Me, cloneElement as ve, useImperativeHandle as mo, useLayoutEffect as go, useEffect as M, Fragment as yo } from "react";
5
- import { createPortal as Co } from "react-dom";
1
+ /* 2026-03-02 09:28:59 */
2
+ import { jsx as P, jsxs as De } from "react/jsx-runtime";
3
+ import { CSSTransition as ao } from "@unicom-cloud/ui-common/transition-group";
4
+ import { forwardRef as po, useContext as fo, useRef as L, useState as mo, Children as xe, useCallback as Se, cloneElement as Me, useImperativeHandle as go, useLayoutEffect as yo, useEffect as v, Fragment as Co } from "react";
5
+ import { createPortal as To } from "react-dom";
6
6
  import "../config-provider/ConfigProvider.js";
7
7
  import G from "@unicom-cloud/ui-common/hooks/use-resize-observers";
8
- import To from "@unicom-cloud/ui-common/utils/callbackOriginRef";
9
- import R from "@unicom-cloud/ui-common/utils/className";
10
- import { on as J, off as Z, getScrollElements as Eo, contains as be } from "@unicom-cloud/ui-common/utils/dom";
11
- import Po from "@unicom-cloud/ui-common/utils/findRootElement";
12
- import { isExist as ho, isPlainObject as ee, isArray as _e, isString as wo, isFunction as v, isScrollElement as Do } from "@unicom-cloud/ui-common/utils/is";
13
- import { Esc as $e } from "@unicom-cloud/utils/constant/keyboardCode";
14
- import xo from "@unicom-cloud/ui-common/utils/mergeProps";
15
- import { pickDataAttributes as So } from "@unicom-cloud/ui-common/utils/pick";
16
- import { supportRef as Mo, getReactElementRef as vo } from "@unicom-cloud/ui-common/utils/ref";
17
- import ke from "@unicom-cloud/ui-common/utils/throttleByRaf";
18
- import bo, { getBoundingClientRect as _o } from "./getPopupStyle.js";
19
- import $o from "../config-provider/context.js";
20
- function ko(d, b) {
21
- if (!d)
8
+ import Po from "@unicom-cloud/ui-common/utils/callbackOriginRef";
9
+ import F from "@unicom-cloud/ui-common/utils/className";
10
+ import { on as J, off as Z, getScrollElements as Eo, contains as ve } from "@unicom-cloud/ui-common/utils/dom";
11
+ import ho from "@unicom-cloud/ui-common/utils/findRootElement";
12
+ import { isBoolean as wo, isExist as Do, isPlainObject as ee, isArray as be, isString as xo, isFunction as b, isScrollElement as So } from "@unicom-cloud/ui-common/utils/is";
13
+ import { Esc as _e } from "@unicom-cloud/utils/constant/keyboardCode";
14
+ import Mo from "@unicom-cloud/ui-common/utils/mergeProps";
15
+ import { pickDataAttributes as vo } from "@unicom-cloud/ui-common/utils/pick";
16
+ import { supportRef as bo, getReactElementRef as _o } from "@unicom-cloud/ui-common/utils/ref";
17
+ import $e from "@unicom-cloud/ui-common/utils/throttleByRaf";
18
+ import $o, { getBoundingClientRect as ko } from "./getPopupStyle.js";
19
+ import Oo from "../config-provider/context.js";
20
+ function No(f, _) {
21
+ if (!f)
22
22
  return {};
23
- const { width: E, height: m, left: C, right: F } = _o(d, b);
23
+ const { width: E, height: d, left: T, right: z } = ko(f, _);
24
24
  return {
25
25
  width: E,
26
- height: m,
27
- left: C,
28
- right: F
26
+ height: d,
27
+ left: T,
28
+ right: z
29
29
  };
30
30
  }
31
- const et = [
31
+ const tt = [
32
32
  "onClick",
33
33
  "onMouseEnter",
34
34
  "onMouseLeave",
@@ -38,23 +38,23 @@ const et = [
38
38
  "onContextMenu",
39
39
  "onKeyDown"
40
40
  ];
41
- function Oo(d, b) {
42
- const E = {}, m = { ...d };
43
- return b.forEach((C) => {
44
- d && C in d && (E[C] = d[C], delete m[C]);
45
- }), { picked: E, omitted: m };
41
+ function Ho(f, _) {
42
+ const E = {}, d = { ...f };
43
+ return _.forEach((T) => {
44
+ f && T in f && (E[T] = f[T], delete d[T]);
45
+ }), { picked: E, omitted: d };
46
46
  }
47
- function No(d, b) {
48
- const E = po($o), {
49
- prefixCls: m,
50
- getPrefixCls: C,
51
- zIndex: F,
52
- rtl: Oe,
53
- componentConfig: z
54
- } = E, Ne = {
47
+ function Lo(f, _) {
48
+ const E = fo(Oo), {
49
+ prefixCls: d,
50
+ getPrefixCls: T,
51
+ zIndex: z,
52
+ rtl: ke,
53
+ componentConfig: A
54
+ } = E, Oe = {
55
55
  blurToHide: !0,
56
56
  // clickToClose: true,
57
- classNames: `${m}-fade-in`,
57
+ classNames: `${d}-fade-in`,
58
58
  trigger: "hover",
59
59
  position: "bottom",
60
60
  duration: 200,
@@ -71,25 +71,29 @@ function No(d, b) {
71
71
  mouseLeaveDelay: 100,
72
72
  autoFitPosition: !0,
73
73
  updateOnScroll: !0
74
- }, l = i(d), oe = l.getPopupContainer || E.getPopupContainer, {
75
- children: He,
74
+ }, l = s(f), oe = l.getPopupContainer || E.getPopupContainer, {
75
+ children: Ne,
76
76
  style: te,
77
- className: Le,
78
- arrowProps: L,
79
- disabled: D,
77
+ className: He,
78
+ arrowProps: Le,
79
+ disabled: x,
80
80
  popup: Ie,
81
- classNames: A,
82
- duration: Ve,
81
+ classNames: Y,
82
+ duration: Be,
83
83
  unmountOnExit: ne,
84
- alignPoint: Be,
84
+ alignPoint: Ve,
85
85
  autoAlignPopupWidth: Re,
86
86
  position: Fe,
87
- childrenPrefix: P,
87
+ childrenPrefix: h,
88
88
  showArrow: ze,
89
89
  popupStyle: re,
90
90
  __onExit: Ae,
91
- __onExited: Ye
92
- } = l, ie = "popupVisible" in l, Ke = "defaultPopupVisible" in l, se = ho(He), p = H(null), _ = H(null), le = H(null), ue = H(null), t = H({
91
+ __onExited: Ye,
92
+ arrow: Ke
93
+ } = l;
94
+ let m = Ke || ze || Le;
95
+ wo(m) && (m = m ? {} : null);
96
+ const ie = "popupVisible" in l, Qe = "defaultPopupVisible" in l, se = Do(Ne), a = L(null), $ = L(null), le = L(null), ue = L(null), t = L({
93
97
  rootElement: null,
94
98
  triggerDestoried: !1,
95
99
  // 标志 popup 是否被销毁
@@ -113,118 +117,115 @@ function No(d, b) {
113
117
  children: null
114
118
  });
115
119
  t.current.rootElement = ce();
116
- const [Y, $] = fo({ popupVisible: !1, popupStyle: {} }), K = l.popupVisible, Qe = Y.popupVisible, r = K ?? Qe, u = {}, Q = {
120
+ const [K, k] = mo({ popupVisible: !1, popupStyle: {} }), Q = l.popupVisible, We = K.popupVisible, i = Q ?? We, u = {}, W = {
117
121
  onMouseDown() {
118
122
  t.current.hasPopupMouseDown = !0, setTimeout(() => {
119
123
  t.current.hasPopupMouseDown = !1;
120
124
  }, 0);
121
125
  }
122
126
  };
123
- N() && !D ? (u.onMouseEnter = Je, u.onMouseLeave = Te, U() && (u.onClick = Ee), Be && (u.onMouseMove = Ze), Ue() || (Q.onMouseEnter = eo, Q.onMouseLeave = oo)) : (u.onMouseEnter = w("onMouseEnter"), u.onMouseLeave = w("onMouseLeave")), pe() && !D ? (u.onContextMenu = to, u.onClick = Ee) : u.onContextMenu = w("onContextMenu"), ae() && !D ? u.onClick = no : u.onClick = u.onClick || w("onClick"), X() && !D ? (u.onFocus = ro, fe() && (u.onBlur = io)) : (u.onFocus = w("onFocus"), u.onBlur = w("onBlur")), D ? u.onKeyDown = w("onKeyDown") : u.onKeyDown = qe;
124
- const k = V(), O = Se.only(Ie?.());
125
- k.props.className && (u.className = k.props.className), P && r && (u.className = R(
127
+ H() && !x ? (u.onMouseEnter = Ze, u.onMouseLeave = Te, j() && (u.onClick = Pe), Ve && (u.onMouseMove = eo), je() || (W.onMouseEnter = oo, W.onMouseLeave = to)) : (u.onMouseEnter = D("onMouseEnter"), u.onMouseLeave = D("onMouseLeave")), pe() && !x ? (u.onContextMenu = no, u.onClick = Pe) : u.onContextMenu = D("onContextMenu"), ae() && !x ? u.onClick = ro : u.onClick = u.onClick || D("onClick"), U() && !x ? (u.onFocus = io, fe() && (u.onBlur = so)) : (u.onFocus = D("onFocus"), u.onBlur = D("onBlur")), x ? u.onKeyDown = D("onKeyDown") : u.onKeyDown = Ge;
128
+ const O = B(), N = xe.only(Ie?.());
129
+ O.props.className && (u.className = O.props.className), h && i && (u.className = F(
126
130
  u.className,
127
- `${P}-open`
128
- )), X() && (u.tabIndex = D ? -1 : 0);
129
- const x = C?.("trigger"), We = R(
130
- z?.Trigger?.className,
131
- x,
132
- P,
133
- `${x}-position-${Fe}`,
134
- { [`${x}-rtl`]: Oe },
135
- Le
131
+ `${h}-open`
132
+ )), U() && (u.tabIndex = x ? -1 : 0);
133
+ const S = T?.("trigger"), Xe = F(
134
+ A?.Trigger?.className,
135
+ S,
136
+ h,
137
+ `${S}-position-${Fe}`,
138
+ { [`${S}-rtl`]: ke },
139
+ He
136
140
  );
137
- function i(e) {
138
- return xo(
139
- ee(e) ? e : d,
140
- Ne,
141
- z?.Trigger ?? {},
142
- _e(e) ? e : void 0
141
+ function s(e) {
142
+ return Mo(
143
+ ee(e) ? e : f,
144
+ Oe,
145
+ A?.Trigger ?? {},
146
+ be(e) ? e : void 0
143
147
  );
144
148
  }
145
149
  function ce() {
146
150
  const e = l.getRootElement?.() || t.current.children;
147
- return Po(e);
151
+ return ho(e);
148
152
  }
149
- const W = Me(
150
- ke(() => {
151
- S();
153
+ const X = Se(
154
+ $e(() => {
155
+ M();
152
156
  }),
153
- [r]
157
+ [i]
154
158
  );
155
159
  function ae() {
156
- const { trigger: e } = i(["trigger"]);
160
+ const { trigger: e } = s(["trigger"]);
157
161
  return [].concat(e).includes("click");
158
162
  }
159
- function X() {
160
- const { trigger: e } = i(["trigger"]);
163
+ function U() {
164
+ const { trigger: e } = s(["trigger"]);
161
165
  return [].concat(e).includes("focus");
162
166
  }
163
- function N() {
164
- const { trigger: e } = i(["trigger"]);
167
+ function H() {
168
+ const { trigger: e } = s(["trigger"]);
165
169
  return [].concat(e).includes("hover");
166
170
  }
167
171
  function pe() {
168
- const { trigger: e } = i(["trigger"]);
172
+ const { trigger: e } = s(["trigger"]);
169
173
  return [].concat(e).includes("contextMenu");
170
174
  }
171
- function Xe() {
172
- return N() && i(["mouseLeaveToClose"]).mouseLeaveToClose;
173
- }
174
175
  function Ue() {
175
- return N() && !i(["popupHoverStay"]).popupHoverStay;
176
+ return H() && s(["mouseLeaveToClose"]).mouseLeaveToClose;
176
177
  }
177
- function U() {
178
+ function je() {
179
+ return H() && !s(["popupHoverStay"]).popupHoverStay;
180
+ }
181
+ function j() {
178
182
  if (ae() || pe()) {
179
- const { clickToClose: e = !0 } = i(["clickToClose"]);
183
+ const { clickToClose: e = !0 } = s(["clickToClose"]);
180
184
  return e;
181
185
  }
182
- return N() && l.clickToClose;
186
+ return H() && l.clickToClose;
183
187
  }
184
188
  function fe() {
185
- return X() && i(["blurToHide"]).blurToHide;
189
+ return U() && s(["blurToHide"]).blurToHide;
186
190
  }
187
- function je() {
188
- t.current.updatePositionTimeoutID && (t.current.updatePositionTimeoutID.cancel ? t.current.updatePositionTimeoutID.cancel() : (window.clearTimeout(t.current.updatePositionTimeoutID), t.current.updatePositionTimeoutID = null)), h();
191
+ function qe() {
192
+ t.current.updatePositionTimeoutID && (t.current.updatePositionTimeoutID.cancel ? t.current.updatePositionTimeoutID.cancel() : (window.clearTimeout(t.current.updatePositionTimeoutID), t.current.updatePositionTimeoutID = null)), w();
189
193
  }
190
194
  function de(e) {
191
- const o = p.current;
195
+ const o = a.current;
192
196
  if (!o)
193
197
  return {};
194
- const { showArrow: n, classNames: s } = i([
195
- "showArrow",
196
- "classNames"
197
- ]);
198
- let c = n && t.current.arrowStyle?.top || 0, a = n && t.current.arrowStyle?.left || 0;
199
- c = c ? `${c}px` : "", a = a ? `${a}px` : "";
200
- const q = {
201
- top: `${a || "50%"} 100% 0`,
202
- tl: `${a || "15px"} 100% 0`,
203
- tr: `${a || `${o.clientWidth - 15}px`} 100% 0`,
204
- bottom: `${a || "50%"} 0 0`,
205
- bl: `${a || "15px"} 0 0`,
206
- br: `${a || `${o.clientWidth - 15}px`} 0 0`,
207
- left: `100% ${c || "50%"} 0`,
208
- lt: `100% ${c || "15px"} 0`,
209
- lb: `100% ${c || `${o.clientHeight - 15}px`} 0`,
210
- right: `0 ${c || "50%"} 0`,
211
- rt: `0 ${c || "15px"} 0`,
212
- rb: `0 ${c || `${o.clientHeight - 15}px`} 0`
198
+ const { classNames: n } = s(["classNames"]);
199
+ let r = !!m && t.current.arrowStyle?.top || 0, c = !!m && t.current.arrowStyle?.left || 0;
200
+ r = r ? `${r}px` : "", c = c ? `${c}px` : "";
201
+ const g = {
202
+ top: `${c || "50%"} 100% 0`,
203
+ tl: `${c || "15px"} 100% 0`,
204
+ tr: `${c || `${o.clientWidth - 15}px`} 100% 0`,
205
+ bottom: `${c || "50%"} 0 0`,
206
+ bl: `${c || "15px"} 0 0`,
207
+ br: `${c || `${o.clientWidth - 15}px`} 0 0`,
208
+ left: `100% ${r || "50%"} 0`,
209
+ lt: `100% ${r || "15px"} 0`,
210
+ lb: `100% ${r || `${o.clientHeight - 15}px`} 0`,
211
+ right: `0 ${r || "50%"} 0`,
212
+ rt: `0 ${r || "15px"} 0`,
213
+ rb: `0 ${r || `${o.clientHeight - 15}px`} 0`
213
214
  };
214
- if (s && s.includes("zoom"))
215
+ if (n && n.includes("zoom"))
215
216
  return {
216
- transformOrigin: q[e]
217
+ transformOrigin: g[e]
217
218
  };
218
- if (s === `${m}-slide-dynamic-origin`) {
219
- let De = "0% 0%";
220
- return ["top", "tl", "tr"].includes(e) && (De = "100% 100%"), {
221
- transformOrigin: De
219
+ if (n === `${d}-slide-dynamic-origin`) {
220
+ let R = "0% 0%";
221
+ return ["top", "tl", "tr"].includes(e) && (R = "100% 100%"), {
222
+ transformOrigin: R
222
223
  };
223
224
  }
224
225
  return {};
225
226
  }
226
227
  function me() {
227
- if (i(["classNames"]).classNames !== `${m}-slide-dynamic-origin`)
228
+ if (s(["classNames"]).classNames !== `${d}-slide-dynamic-origin`)
228
229
  return "";
229
230
  switch (t.current.realPosition) {
230
231
  case "bottom":
@@ -240,131 +241,131 @@ function No(d, b) {
240
241
  }
241
242
  }
242
243
  function ge() {
243
- if (!_.current) return {};
244
- const e = p.current, o = t.current.rootElement;
244
+ if (!$.current) return {};
245
+ const e = a.current, o = t.current.rootElement;
245
246
  if (!o?.offsetParent && !o?.getClientRects()?.length)
246
- return Y.popupStyle;
247
- const { style: n, arrowStyle: s, realPosition: c } = bo(
248
- l,
247
+ return K.popupStyle;
248
+ const { style: n, arrowStyle: r, realPosition: c } = $o(
249
+ { ...l, arrow: m },
249
250
  e,
250
251
  o,
251
- _.current,
252
+ $.current,
252
253
  t.current.mouseLocation
253
254
  );
254
- t.current.arrowStyle = s || {};
255
- const a = c || l.position;
256
- return t.current.realPosition = a, {
255
+ t.current.arrowStyle = r || {};
256
+ const g = c || l.position;
257
+ return t.current.realPosition = g, {
257
258
  ...n,
258
- ...de(a)
259
+ ...de(g)
259
260
  };
260
261
  }
261
- function g(e) {
262
+ function y(e) {
262
263
  const o = ge();
263
- $((n) => {
264
- const s = { ...n };
265
- return s.popupStyle = o, s;
266
- }), v(e) && setTimeout(() => {
264
+ k((n) => {
265
+ const r = { ...n };
266
+ return r.popupStyle = o, r;
267
+ }), b(e) && setTimeout(() => {
267
268
  e();
268
269
  }, 27);
269
270
  }
270
- const I = Me(ke(g), [
271
- r
271
+ const I = Se($e(y), [
272
+ i
272
273
  ]);
273
- function S(e = 0, o) {
274
- r && (e < 4 ? t.current.updatePositionTimeoutID = I(o) : t.current.updatePositionTimeoutID = window.setTimeout(() => {
275
- g(o);
274
+ function M(e = 0, o) {
275
+ i && (e < 4 ? t.current.updatePositionTimeoutID = I(o) : t.current.updatePositionTimeoutID = window.setTimeout(() => {
276
+ y(o);
276
277
  }, e));
277
278
  }
278
- function f(e, o = 0, n) {
279
- const s = i(["onVisibleChange", "popupVisible"]);
280
- e !== r ? ye(o, () => {
281
- s.onVisibleChange?.(e), ie ? n?.() : ($((c) => {
282
- const a = { ...c };
283
- return a.popupVisible = !!e, a;
279
+ function p(e, o = 0, n) {
280
+ const r = s(["onVisibleChange", "popupVisible"]);
281
+ e !== i ? ye(o, () => {
282
+ r.onVisibleChange?.(e), ie ? n?.() : (k((c) => {
283
+ const g = { ...c };
284
+ return g.popupVisible = !!e, g;
284
285
  }), setTimeout(e ? () => {
285
- g(n);
286
+ y(n);
286
287
  } : () => {
287
288
  n?.();
288
289
  }, 0));
289
290
  }) : n?.();
290
291
  }
291
292
  function ye(e, o) {
292
- e ? (h(), t.current.delayTimeoutID = setTimeout(() => {
293
- o(), h();
293
+ e ? (w(), t.current.delayTimeoutID = setTimeout(() => {
294
+ o(), w();
294
295
  }, e)) : o();
295
296
  }
296
- function h() {
297
+ function w() {
297
298
  t.current.delayTimeoutID && (clearTimeout(t.current.delayTimeoutID), t.current.delayTimeoutID = null);
298
299
  }
299
300
  function Ce(e) {
300
- const o = i(["onClickOutside", "clickOutsideToClose"]);
301
- let n = be(p.current, e.target);
302
- n ||= be(t.current.rootElement, e.target), n ||= !!t.current.hasPopupMouseDown, n || (o.onClickOutside?.(), o.clickOutsideToClose && (fe() || N() || f(!1)));
303
- }
304
- function qe(e) {
305
- const o = e.key;
306
- y("onKeyDown", e), o === $e.key && Ge(e);
301
+ const o = s(["onClickOutside", "clickOutsideToClose"]);
302
+ let n = ve(a.current, e.target);
303
+ n ||= ve(t.current.rootElement, e.target), n ||= !!t.current.hasPopupMouseDown, n || (o.onClickOutside?.(), o.clickOutsideToClose && (fe() || H() || p(!1)));
307
304
  }
308
305
  function Ge(e) {
309
- const { escToClose: o } = i(["escToClose"]);
310
- o && e && e.key === $e.key && r && f(!1);
306
+ const o = e.key;
307
+ C("onKeyDown", e), o === _e.key && Je(e);
311
308
  }
312
309
  function Je(e) {
313
- const { mouseEnterDelay: o } = i(["mouseEnterDelay"]);
314
- y("onMouseEnter", e), h(), f(!0, o || 0);
310
+ const { escToClose: o } = s(["escToClose"]);
311
+ o && e && e.key === _e.key && i && p(!1);
315
312
  }
316
313
  function Ze(e) {
317
- y("onMouseMove", e), j(e), r && I();
314
+ const { mouseEnterDelay: o } = s(["mouseEnterDelay"]);
315
+ C("onMouseEnter", e), w(), p(!0, o || 0);
316
+ }
317
+ function eo(e) {
318
+ C("onMouseMove", e), q(e), i && I();
318
319
  }
319
320
  function Te(e) {
320
- const { mouseLeaveDelay: o } = i(["mouseLeaveDelay"]);
321
- h(), y("onMouseLeave", e), Xe() && r && f(!1, o || 0);
321
+ const { mouseLeaveDelay: o } = s(["mouseLeaveDelay"]);
322
+ w(), C("onMouseLeave", e), Ue() && i && p(!1, o || 0);
322
323
  }
323
- function eo() {
324
- h();
324
+ function oo() {
325
+ w();
325
326
  }
326
- function oo(e) {
327
+ function to(e) {
327
328
  Te(e);
328
329
  }
329
- function j(e) {
330
- i(["alignPoint"]).alignPoint && (t.current.mouseLocation = {
330
+ function q(e) {
331
+ s(["alignPoint"]).alignPoint && (t.current.mouseLocation = {
331
332
  clientX: e.clientX,
332
333
  clientY: e.clientY
333
334
  });
334
335
  }
335
- function to(e) {
336
- e.preventDefault(), y("onContextMenu", e), j(e), r ? i(["alignPoint"]).alignPoint && I() : f(!0, 0);
337
- }
338
- function Ee(e) {
339
- r && (t.current.mousedownToHide = !0), y("onClick", e), U() && r && f(!r, 0);
340
- }
341
336
  function no(e) {
342
- r && (t.current.mousedownToHide = !0), y("onClick", e), j(e), !(!U() && r) && f(!r, 0);
337
+ e.preventDefault(), C("onContextMenu", e), q(e), i ? s(["alignPoint"]).alignPoint && I() : p(!0, 0);
338
+ }
339
+ function Pe(e) {
340
+ i && (t.current.mousedownToHide = !0), C("onClick", e), j() && i && p(!i, 0);
343
341
  }
344
342
  function ro(e) {
345
- const { focusDelay: o } = i(["focusDelay"]), n = () => {
346
- y("onFocus", e);
347
- };
348
- h(), t.current.mousedownToHide || (r ? n?.() : f(!0, o || 0, n)), t.current.mousedownToHide = !1;
343
+ i && (t.current.mousedownToHide = !0), C("onClick", e), q(e), !(!j() && i) && p(!i, 0);
349
344
  }
350
345
  function io(e) {
351
- f(!1, 200, () => y("onBlur", e));
346
+ const { focusDelay: o } = s(["focusDelay"]), n = () => {
347
+ C("onFocus", e);
348
+ };
349
+ w(), t.current.mousedownToHide || (i ? n?.() : p(!0, o || 0, n)), t.current.mousedownToHide = !1;
352
350
  }
353
- function Pe(e) {
354
- r && i(["autoFixPosition"]).autoFixPosition && S();
351
+ function so(e) {
352
+ p(!1, 200, () => C("onBlur", e));
353
+ }
354
+ function Ee(e) {
355
+ i && s(["autoFixPosition"]).autoFixPosition && M();
355
356
  }
356
- function V() {
357
- const { children: e } = l, o = e, n = o && !wo(o) && o.type;
358
- let s = e;
359
- if (["string", "number"].includes(typeof e) || Se.count(e) > 1)
360
- s = /* @__PURE__ */ T("span", { children: e });
357
+ function B() {
358
+ const { children: e } = l, o = e, n = o && !xo(o) && o.type;
359
+ let r = e;
360
+ if (["string", "number"].includes(typeof e) || xe.count(e) > 1)
361
+ r = /* @__PURE__ */ P("span", { children: e });
361
362
  else if (o && n && (n === "button" || [
362
363
  n.___PQB_BUTTON___,
363
364
  n.___PQB_CHECKBOX___,
364
365
  n.___PQB_SWITCH___,
365
366
  n.___PQB_RADIO___
366
- ].some((c, a, q) => c === !0)) && o.props.disabled) {
367
- const { picked: c, omitted: a } = Oo(o.props.style, [
367
+ ].some((c, g, R) => c === !0)) && o.props.disabled) {
368
+ const { picked: c, omitted: g } = Ho(o.props.style, [
368
369
  "position",
369
370
  "left",
370
371
  "right",
@@ -374,14 +375,14 @@ function No(d, b) {
374
375
  "display",
375
376
  "zIndex"
376
377
  ]);
377
- s = /* @__PURE__ */ T(
378
+ r = /* @__PURE__ */ P(
378
379
  "span",
379
380
  {
380
381
  className: o.props?.className,
381
382
  style: { display: "inline-block", ...c, cursor: "not-allowed" },
382
- children: ve(o, {
383
+ children: Me(o, {
383
384
  style: {
384
- ...a,
385
+ ...g,
385
386
  pointerEvents: "none"
386
387
  },
387
388
  className: void 0
@@ -389,29 +390,29 @@ function No(d, b) {
389
390
  }
390
391
  );
391
392
  }
392
- return s || /* @__PURE__ */ T("span", {});
393
+ return r || /* @__PURE__ */ P("span", {});
393
394
  }
394
- function y(e, o) {
395
- const n = V(), s = n && n.props && n.props[e], c = i([e])[e];
396
- v(s) && s(o), v(c) && c(o);
395
+ function C(e, o) {
396
+ const n = B(), r = n && n.props && n.props[e], c = s([e])[e];
397
+ b(r) && r(o), b(c) && c(o);
397
398
  }
398
- function w(e) {
399
- const o = V(), n = o && o.props && o.props[e], s = i([e])[e];
400
- return v(s) && v(n) ? (c) => {
401
- n(c), s(c);
402
- } : n || s;
399
+ function D(e) {
400
+ const o = B(), n = o && o.props && o.props[e], r = s([e])[e];
401
+ return b(r) && b(n) ? (c) => {
402
+ n(c), r(c);
403
+ } : n || r;
403
404
  }
404
405
  function he() {
405
- const e = i(["containerScrollToClose", "updateOnScroll"]);
406
- e.containerScrollToClose ? f(!1) : e.updateOnScroll && S();
406
+ const e = s(["containerScrollToClose", "updateOnScroll"]);
407
+ e.containerScrollToClose ? p(!1) : e.updateOnScroll && M();
407
408
  }
408
- function so() {
409
+ function lo() {
409
410
  if (!t.current.scrollElements && (t.current.scrollElements = Eo(
410
411
  t.current.rootElement
411
412
  // refPopupContainer.current.parentNode as HTMLElement,
412
- ), _e(t.current.scrollElements))) {
413
+ ), be(t.current.scrollElements))) {
413
414
  const e = document.body;
414
- l.containerScrollToClose && _.current?.parentNode === e && !t.current.scrollElements.includes(e) && Do(document.documentElement) && t.current.scrollElements.push(window), t.current.scrollElements.forEach((o) => {
415
+ l.containerScrollToClose && $.current?.parentNode === e && !t.current.scrollElements.includes(e) && So(document.documentElement) && t.current.scrollElements.push(window), t.current.scrollElements.forEach((o) => {
415
416
  J(o, "scroll", he);
416
417
  });
417
418
  }
@@ -421,49 +422,49 @@ function No(d, b) {
421
422
  Z(e, "scroll", he);
422
423
  }), t.current.scrollElements = null);
423
424
  }
424
- mo(b, () => ({
425
+ go(_, () => ({
425
426
  getPopupElement() {
426
- return p.current;
427
+ return a.current;
427
428
  },
428
429
  getRootElement: ce,
429
- getChildren: V,
430
+ getChildren: B,
430
431
  getPopupStyle: ge,
431
432
  getTransformTranslate: me,
432
433
  getTransformOrigin: de,
433
434
  updateThrottleByRaf: I,
434
- update: g,
435
- updatePopupStyle: g,
436
- updatePopupPosition: S,
437
- handleUpdatePosition: W,
438
- setPopupVisible: f,
435
+ update: y,
436
+ updatePopupStyle: y,
437
+ updatePopupPosition: M,
438
+ handleUpdatePosition: X,
439
+ setPopupVisible: p,
439
440
  delayToDo: ye
440
- })), go(() => (g(), () => {
441
+ })), yo(() => (y(), () => {
441
442
  }), [
442
- p.current,
443
+ a.current,
443
444
  le.current,
444
445
  ue.current,
445
446
  t.current.rootElement
446
447
  ]), G(
447
448
  (e) => {
448
- S(e);
449
+ M(e);
449
450
  },
450
- [_.current?.parentNode],
451
+ [$.current?.parentNode],
451
452
  { immediate: !0 }
452
453
  ), G(
453
454
  (e) => {
454
- Pe();
455
+ Ee();
455
456
  },
456
- [p.current],
457
+ [a.current],
457
458
  { immediate: !0 }
458
459
  ), G(
459
460
  (e) => {
460
- Pe();
461
+ Ee();
461
462
  },
462
463
  [t.current.rootElement],
463
464
  { immediate: !0 }
464
- ), M(() => {
465
+ ), v(() => {
465
466
  const e = t.current.rootElement;
466
- return r && (t.current.childrenDomSize = ko(e, {
467
+ return i && (t.current.childrenDomSize = No(e, {
467
468
  boundaryDistance: l.alignPoint ? void 0 : l.boundaryDistance,
468
469
  position: l.position
469
470
  })), () => {
@@ -473,121 +474,121 @@ function No(d, b) {
473
474
  l.alignPoint,
474
475
  l.boundaryDistance,
475
476
  l.position
476
- ]), M(() => (r && (l.updateOnScroll || l.containerScrollToClose ? so() : (S(), we())), () => {
477
+ ]), v(() => (i && (l.updateOnScroll || l.containerScrollToClose ? lo() : (M(), we())), () => {
477
478
  we();
478
479
  }), [
479
- r,
480
+ i,
480
481
  l.updateOnScroll,
481
482
  l.containerScrollToClose
482
- ]), M(() => {
483
- const { clickOutsideToClose: e, getDocument: o } = i([
483
+ ]), v(() => {
484
+ const { clickOutsideToClose: e, getDocument: o } = s([
484
485
  "clickOutsideToClose",
485
486
  "getDocument"
486
- ]), n = o?.() || window.document, s = {
487
+ ]), n = o?.() || window.document, r = {
487
488
  // clickOutside 必须监听mousedown。
488
489
  // 1. 如果事件目标元素在click后被移除,document.onclick被触发时已经没有该元素,会错误触发clickOutside逻辑,隐藏popup。
489
490
  // 2. 点击label标签,会触发对应input元素的点击事件,导致触发clickOutside,隐藏popup。
490
491
  capture: ee(e) ? e.capture : !1
491
492
  };
492
- return r && (J(n, "mousedown", Ce, s), J(window, "resize", W)), () => {
493
- Z(n, "mousedown", Ce, s), Z(window, "resize", W);
493
+ return i && (J(n, "mousedown", Ce, r), J(window, "resize", X)), () => {
494
+ Z(n, "mousedown", Ce, r), Z(window, "resize", X);
494
495
  };
495
- }, [r]), M(() => (Ke && $((e) => {
496
+ }, [i]), v(() => (Qe && k((e) => {
496
497
  const o = { ...e };
497
498
  return o.popupVisible = !!l?.defaultPopupVisible, o;
498
499
  }), () => {
499
- }), []), M(() => (ie && $((e) => {
500
+ }), []), v(() => (ie && k((e) => {
500
501
  const o = { ...e };
501
- return o.popupVisible = !!K, o;
502
+ return o.popupVisible = !!Q, o;
502
503
  }), () => {
503
- }), [K]), M(() => () => {
504
- je();
504
+ }), [Q]), v(() => () => {
505
+ qe();
505
506
  }, []);
506
- const lo = se && ve(k, {
507
+ const uo = se && Me(O, {
507
508
  ...u,
508
- ref: Mo(k) ? (e) => {
509
- t.current.children = e, To(k, e);
509
+ ref: bo(O) ? (e) => {
510
+ t.current.children = e, Po(O, e);
510
511
  } : void 0
511
- }), uo = /* @__PURE__ */ T(
512
- co,
512
+ }), co = /* @__PURE__ */ P(
513
+ ao,
513
514
  {
514
- in: !!r,
515
- timeout: Ve,
516
- classNames: A,
515
+ in: !!i,
516
+ timeout: Be,
517
+ classNames: Y,
517
518
  unmountOnExit: ne,
518
519
  appear: !0,
519
520
  mountOnEnter: !0,
520
521
  onEnter: () => {
521
522
  t.current.triggerDestoried = !1;
522
- const e = p.current;
523
- e && (e.style.display = "initial", e.style.pointerEvents = "none", A === `${m}-slide-dynamic-origin` && (e.style.transform = me()), g());
523
+ const e = a.current;
524
+ e && (e.style.display = "initial", e.style.pointerEvents = "none", Y === `${d}-slide-dynamic-origin` && (e.style.transform = me()), y());
524
525
  },
525
526
  onEntering: () => {
526
- const e = p.current;
527
- e && (A === `${m}-slide-dynamic-origin` && (e.style.transform = ""), g());
527
+ const e = a.current;
528
+ e && (Y === `${d}-slide-dynamic-origin` && (e.style.transform = ""), y());
528
529
  },
529
530
  onEntered: () => {
530
- const e = p.current;
531
- e && (e.style.pointerEvents = "auto", g());
531
+ const e = a.current;
532
+ e && (e.style.pointerEvents = "auto", y());
532
533
  },
533
534
  onExit: () => {
534
- const e = p.current;
535
+ const e = a.current;
535
536
  e && (e.style.pointerEvents = "none", Ae?.(e));
536
537
  },
537
538
  onExited: () => {
538
- const e = p.current;
539
- e && (e.style.display = "none", ne && (t.current.triggerDestoried = !0), $((o) => {
539
+ const e = a.current;
540
+ e && (e.style.display = "none", ne && (t.current.triggerDestoried = !0), k((o) => {
540
541
  const n = { ...o };
541
542
  return n.popupStyle = {}, n;
542
543
  }), Ye?.(e));
543
544
  },
544
- refElement: p,
545
- children: /* @__PURE__ */ xe(
545
+ refElement: a,
546
+ children: /* @__PURE__ */ De(
546
547
  "span",
547
548
  {
548
- ref: p,
549
+ ref: a,
549
550
  "trigger-placement": t.current.realPosition,
550
- ...So(l),
551
+ ...vo(l),
551
552
  style: {
552
- ...z?.Trigger?.style,
553
+ ...A?.Trigger?.style,
553
554
  width: Re && te?.width === void 0 ? t.current.childrenDomSize?.width : "",
554
- ...Y.popupStyle,
555
+ ...K.popupStyle,
555
556
  position: "absolute",
556
- zIndex: F || "",
557
+ zIndex: z || "",
557
558
  ...te
558
559
  // display
559
560
  },
560
- ...Q,
561
- className: We,
561
+ ...W,
562
+ className: Xe,
562
563
  children: [
563
- ee(re) ? /* @__PURE__ */ T(
564
- O.type,
564
+ ee(re) ? /* @__PURE__ */ P(
565
+ N.type,
565
566
  {
566
- ref: vo(O),
567
- ...O.props,
568
- style: { ...O.props.style, ...re }
567
+ ref: _o(N),
568
+ ...N.props,
569
+ style: { ...N.props.style, ...re }
569
570
  }
570
- ) : O,
571
- (ze || L) && /* @__PURE__ */ T(
571
+ ) : N,
572
+ !!m && /* @__PURE__ */ P(
572
573
  "div",
573
574
  {
574
575
  ref: le,
575
- className: R(`${x}-arrow-container`, {
576
- [`${P}-arrow-container`]: P
576
+ className: F(`${S}-arrow-container`, {
577
+ [`${h}-arrow-container`]: h
577
578
  }),
578
- children: /* @__PURE__ */ T(
579
+ children: /* @__PURE__ */ P(
579
580
  "div",
580
581
  {
581
582
  ref: ue,
582
- ...L,
583
- className: R(
584
- `${x}-arrow`,
583
+ ...m,
584
+ className: F(
585
+ `${S}-arrow`,
585
586
  {
586
- [`${P}-arrow`]: P
587
+ [`${h}-arrow`]: h
587
588
  },
588
- L?.className
589
+ m?.className
589
590
  ),
590
- style: { ...t.current.arrowStyle, ...L?.style }
591
+ style: { ...t.current.arrowStyle, ...m?.style }
591
592
  }
592
593
  )
593
594
  }
@@ -597,25 +598,25 @@ function No(d, b) {
597
598
  )
598
599
  }
599
600
  );
600
- let B;
601
- if ((r || !!p.current && !t.current.triggerDestoried) && v(oe)) {
601
+ let V;
602
+ if ((i || !!a.current && !t.current.triggerDestoried) && b(oe)) {
602
603
  const e = oe(
603
604
  t.current.rootElement
604
605
  );
605
- e && (B = Co(
606
- /* @__PURE__ */ T("div", { ref: _, className: `${x}-container`, children: uo }),
606
+ e && (V = To(
607
+ /* @__PURE__ */ P("div", { ref: $, className: `${S}-container`, children: co }),
607
608
  e
608
609
  // visible ? 1 : 0,
609
610
  ));
610
611
  }
611
- return se && (B = /* @__PURE__ */ xe(yo, { children: [
612
- lo,
613
- B
614
- ] })), B;
612
+ return se && (V = /* @__PURE__ */ De(Co, { children: [
613
+ uo,
614
+ V
615
+ ] })), V;
615
616
  }
616
- const Ho = ao(No);
617
- Ho.displayName = "Trigger";
617
+ const Io = po(Lo);
618
+ Io.displayName = "Trigger";
618
619
  export {
619
- et as EventsByTriggerNeed,
620
- Ho as default
620
+ tt as EventsByTriggerNeed,
621
+ Io as default
621
622
  };