@unicom-cloud/ui 0.8.162 → 0.8.163

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 (833) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +56 -22
  3. package/affix/Affix.js +2 -2
  4. package/affix/index.js +1 -1
  5. package/alert/Alert.js +2 -2
  6. package/alert/index.js +1 -1
  7. package/anchor/Anchor.js +2 -2
  8. package/anchor/Link.js +2 -2
  9. package/anchor/context.js +1 -1
  10. package/anchor/index.js +1 -1
  11. package/anchor/utils.js +1 -1
  12. package/app/App.d.ts +1 -1
  13. package/app/App.js +27 -25
  14. package/app/context.js +1 -1
  15. package/app/index.js +1 -1
  16. package/app/interface.d.ts +5 -1
  17. package/app/useApp.js +1 -1
  18. package/auto-complete/AutoComplete.js +2 -2
  19. package/auto-complete/index.js +1 -1
  20. package/avatar/Avatar.js +2 -2
  21. package/avatar/Group.js +2 -2
  22. package/avatar/context.js +1 -1
  23. package/avatar/index.js +1 -1
  24. package/back-top/BackTop.js +39 -36
  25. package/back-top/index.js +1 -1
  26. package/badge/Badge.js +78 -77
  27. package/badge/Count.d.ts +1 -1
  28. package/badge/Count.js +19 -18
  29. package/badge/index.js +1 -1
  30. package/badge/utils.js +1 -1
  31. package/border-beam/BorderBeam.js +2 -2
  32. package/border-beam/index.js +1 -1
  33. package/breadcrumb/Breadcrumb.js +42 -41
  34. package/breadcrumb/Item.d.ts +1 -1
  35. package/breadcrumb/Item.js +22 -21
  36. package/breadcrumb/context.js +1 -1
  37. package/breadcrumb/index.js +1 -1
  38. package/button/Button.js +64 -66
  39. package/button/Group.js +2 -2
  40. package/button/Toggle.js +2 -2
  41. package/button/index.js +1 -1
  42. package/button/interface.d.ts +3 -3
  43. package/calendar/Calendar.js +2 -2
  44. package/calendar/Month.d.ts +2 -1
  45. package/calendar/Month.js +1 -1
  46. package/calendar/WeekList.d.ts +1 -1
  47. package/calendar/WeekList.js +1 -1
  48. package/calendar/Year.d.ts +2 -1
  49. package/calendar/Year.js +1 -1
  50. package/calendar/header/Panel.d.ts +1 -1
  51. package/calendar/header/Panel.js +1 -1
  52. package/calendar/header/index.d.ts +1 -1
  53. package/calendar/header/index.js +1 -1
  54. package/calendar/hook/useCellClassName.js +1 -1
  55. package/calendar/index.js +1 -1
  56. package/card/Card.js +2 -2
  57. package/card/Grid.js +2 -2
  58. package/card/Meta.js +2 -2
  59. package/card/index.js +1 -1
  60. package/carousel/Arrow.js +2 -2
  61. package/carousel/Carousel.js +2 -2
  62. package/carousel/Indicator.js +2 -2
  63. package/carousel/index.js +1 -1
  64. package/cascader/Cascader.js +6 -6
  65. package/cascader/base/node.js +1 -1
  66. package/cascader/base/store.js +1 -1
  67. package/cascader/hook/useRefCurrent.js +1 -1
  68. package/cascader/index.js +1 -1
  69. package/cascader/panel/List.d.ts +1 -1
  70. package/cascader/panel/List.js +154 -137
  71. package/cascader/panel/Option.d.ts +1 -1
  72. package/cascader/panel/Option.js +2 -2
  73. package/cascader/panel/Search.d.ts +1 -1
  74. package/cascader/panel/Search.js +1 -1
  75. package/cascader/utils.js +1 -1
  76. package/checkbox/Checkbox.js +6 -6
  77. package/checkbox/Group.d.ts +2 -2
  78. package/checkbox/Group.js +2 -2
  79. package/checkbox/GroupBlock.d.ts +1 -1
  80. package/checkbox/GroupBlock.js +2 -2
  81. package/checkbox/context.js +1 -1
  82. package/checkbox/index.js +1 -1
  83. package/checkbox/useCheckbox.js +1 -1
  84. package/collapse/Collapse.js +2 -2
  85. package/collapse/Item.js +12 -12
  86. package/collapse/context.js +1 -1
  87. package/collapse/index.js +1 -1
  88. package/collapse/utils.js +1 -1
  89. package/color-picker/ColorPicker.js +2 -2
  90. package/color-picker/ControlBar.js +2 -2
  91. package/color-picker/InputAlpha.js +2 -2
  92. package/color-picker/InputHex.js +2 -2
  93. package/color-picker/InputRgb.d.ts +1 -1
  94. package/color-picker/InputRgb.js +2 -2
  95. package/color-picker/Mode.js +1 -1
  96. package/color-picker/Palette.d.ts +1 -1
  97. package/color-picker/Palette.js +2 -2
  98. package/color-picker/Panel.js +2 -2
  99. package/color-picker/colors.js +1 -1
  100. package/color-picker/hooks/useColorPicker.js +1 -1
  101. package/color-picker/hooks/useControlBlock.js +1 -1
  102. package/color-picker/index.d.ts +2 -2
  103. package/color-picker/index.js +1 -1
  104. package/color-picker/interface.js +1 -1
  105. package/color-picker/utils.js +1 -1
  106. package/comment/Comment.js +2 -2
  107. package/comment/index.js +1 -1
  108. package/config-provider/ConfigProvider.d.ts +1 -1
  109. package/config-provider/ConfigProvider.js +2 -2
  110. package/config-provider/context.d.ts +1 -1
  111. package/config-provider/context.js +2 -2
  112. package/config-provider/index.js +2 -2
  113. package/config-provider/initUI.js +1 -1
  114. package/config-provider/useConfigProvider.js +2 -2
  115. package/config-provider/utils.js +1 -1
  116. package/constant/index.js +1 -1
  117. package/copy/Copy.d.ts +1 -1
  118. package/copy/Copy.js +2 -2
  119. package/copy/index.js +1 -1
  120. package/countdown/Countdown.js +2 -2
  121. package/countdown/index.js +1 -1
  122. package/countdown/utils.js +1 -1
  123. package/date-picker/DatePicker.js +1 -1
  124. package/date-picker/DatePickerRange.js +9 -9
  125. package/date-picker/Picker.js +8 -8
  126. package/date-picker/context.js +1 -1
  127. package/date-picker/hook/useCellClassName.js +2 -2
  128. package/date-picker/index.js +1 -1
  129. package/date-picker/panel/Body.d.ts +1 -1
  130. package/date-picker/panel/Body.js +1 -1
  131. package/date-picker/panel/Footer.d.ts +1 -1
  132. package/date-picker/panel/Footer.js +1 -1
  133. package/date-picker/panel/Header.d.ts +1 -1
  134. package/date-picker/panel/Header.js +2 -2
  135. package/date-picker/panel/Shortcut.js +1 -1
  136. package/date-picker/panel/WeekList.d.ts +1 -1
  137. package/date-picker/panel/WeekList.js +1 -1
  138. package/date-picker/panel/date/index.d.ts +1 -1
  139. package/date-picker/panel/date/index.js +2 -2
  140. package/date-picker/panel/month/index.d.ts +1 -1
  141. package/date-picker/panel/month/index.js +2 -2
  142. package/date-picker/panel/quarter/index.d.ts +1 -1
  143. package/date-picker/panel/quarter/index.js +2 -2
  144. package/date-picker/panel/range/index.d.ts +1 -1
  145. package/date-picker/panel/range/index.js +2 -2
  146. package/date-picker/panel/week/index.d.ts +1 -1
  147. package/date-picker/panel/week/index.js +2 -2
  148. package/date-picker/panel/year/index.d.ts +1 -1
  149. package/date-picker/panel/year/index.js +2 -2
  150. package/date-picker/utils.js +1 -1
  151. package/descriptions/Descriptions.js +2 -2
  152. package/descriptions/index.js +1 -1
  153. package/details/Details.js +33 -36
  154. package/details/index.js +1 -1
  155. package/details/interface.d.ts +2 -6
  156. package/development/Development.js +2 -2
  157. package/development/index.js +1 -1
  158. package/divider/Divider.js +2 -2
  159. package/divider/index.js +1 -1
  160. package/draggable/Draggable.js +2 -2
  161. package/draggable/Item.d.ts +1 -1
  162. package/draggable/Item.js +1 -1
  163. package/draggable/index.js +1 -1
  164. package/draw/Draw.js +2 -2
  165. package/draw/constant.js +1 -1
  166. package/draw/index.js +1 -1
  167. package/drawer/Drawer.js +6 -6
  168. package/drawer/index.js +1 -1
  169. package/drawer/use-drawer/Hook.js +1 -1
  170. package/drawer/use-drawer/index.d.ts +2 -2
  171. package/drawer/use-drawer/index.js +24 -23
  172. package/dropdown/Button.js +2 -2
  173. package/dropdown/Dropdown.js +2 -2
  174. package/dropdown/index.js +1 -1
  175. package/empty/Empty.js +2 -2
  176. package/empty/index.js +1 -1
  177. package/flex/Flex.js +2 -2
  178. package/flex/index.js +1 -1
  179. package/form/Control.d.ts +1 -1
  180. package/form/Control.js +1 -1
  181. package/form/Form.js +9 -9
  182. package/form/FormControl.js +8 -8
  183. package/form/FormItem.js +2 -2
  184. package/form/FormItemLabel.d.ts +1 -1
  185. package/form/FormItemLabel.js +2 -2
  186. package/form/FormItemTip.js +2 -2
  187. package/form/FormLabelSymbol.d.ts +1 -1
  188. package/form/FormLabelSymbol.js +2 -2
  189. package/form/FormList.d.ts +2 -1
  190. package/form/FormList.js +1 -1
  191. package/form/FormProvider.d.ts +1 -1
  192. package/form/FormProvider.js +1 -1
  193. package/form/constant.js +1 -1
  194. package/form/context.js +1 -1
  195. package/form/hook/useForm.js +1 -1
  196. package/form/hook/useFormContext.js +1 -1
  197. package/form/hook/useFormState.js +1 -1
  198. package/form/hook/useWatch.js +1 -1
  199. package/form/index.d.ts +1 -1
  200. package/form/index.js +1 -1
  201. package/form/interface.js +1 -1
  202. package/form/promisify.js +1 -1
  203. package/form/store.js +1 -1
  204. package/form/utils.js +1 -1
  205. package/global-provider/GlobalProvider.d.ts +1 -1
  206. package/global-provider/GlobalProvider.js +1 -1
  207. package/global-provider/context.js +1 -1
  208. package/global-provider/index.js +1 -1
  209. package/grid/Grid.js +2 -2
  210. package/grid/Item.js +2 -2
  211. package/grid/context.js +1 -1
  212. package/grid/index.js +1 -1
  213. package/grid/utils.js +1 -1
  214. package/hooks/index.js +1 -1
  215. package/hooks/use-breakpoint/index.js +1 -1
  216. package/hooks/use-computed-state/index.js +1 -1
  217. package/hooks/use-controllable-value/index.js +1 -1
  218. package/hooks/use-create/index.js +1 -1
  219. package/hooks/use-creation/index.js +1 -1
  220. package/hooks/use-effect-event/index.js +1 -1
  221. package/hooks/use-event/index.js +1 -1
  222. package/hooks/use-event-listener/index.js +1 -1
  223. package/hooks/use-force-update/index.js +1 -1
  224. package/hooks/use-fullscreen/index.js +1 -1
  225. package/hooks/use-id/index.js +1 -1
  226. package/hooks/use-intersection-observer/index.js +1 -1
  227. package/hooks/use-intersection-observers/index.js +1 -1
  228. package/hooks/use-interval/index.js +1 -1
  229. package/hooks/use-is-first-render/index.js +1 -1
  230. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  231. package/hooks/use-keyboard-event/index.js +1 -1
  232. package/hooks/use-latest/index.js +1 -1
  233. package/hooks/use-listen-window-resize/index.js +1 -1
  234. package/hooks/use-media/index.js +1 -1
  235. package/hooks/use-memoized-fn/index.js +1 -1
  236. package/hooks/use-merge-props/index.js +1 -1
  237. package/hooks/use-move/index.js +1 -1
  238. package/hooks/use-mutation-observers/index.js +1 -1
  239. package/hooks/use-online-status/index.js +1 -1
  240. package/hooks/use-overflow-hidden/index.js +1 -1
  241. package/hooks/use-override-ref/index.js +1 -1
  242. package/hooks/use-persist-callback/index.js +1 -1
  243. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  244. package/hooks/use-previous/index.js +1 -1
  245. package/hooks/use-refs/index.js +1 -1
  246. package/hooks/use-resize-observer/index.js +1 -1
  247. package/hooks/use-resize-observers/index.js +1 -1
  248. package/hooks/use-responsive-state/index.js +1 -1
  249. package/hooks/use-set-state/index.js +1 -1
  250. package/hooks/use-state-callback/index.js +1 -1
  251. package/hooks/use-state-with-promise/index.js +1 -1
  252. package/hooks/use-update-effect/index.js +1 -1
  253. package/hooks/use-update-layout-effect/index.js +1 -1
  254. package/hooks/use-verification-code/index.js +1 -1
  255. package/hooks/use-watch/index.js +1 -1
  256. package/hooks/use-watermark/index.js +1 -1
  257. package/hooks/use-watermark/utils.js +1 -1
  258. package/hooks/use-window-size/index.js +1 -1
  259. package/hooks/useUnmountOnExit.js +1 -1
  260. package/icon/Icon.js +2 -2
  261. package/icon/addIconFromCdn.js +1 -1
  262. package/icon/index.js +1 -1
  263. package/icon-hover/IconHover.js +2 -2
  264. package/icon-hover/index.js +1 -1
  265. package/icons/file/File.js +2 -2
  266. package/icons/file/index.js +1 -1
  267. package/icons.js +1 -1
  268. package/image/Image.js +2 -2
  269. package/image/ImageFooter.d.ts +1 -1
  270. package/image/ImageFooter.js +1 -1
  271. package/image/ImagePreview.js +226 -228
  272. package/image/ImagePreviewArrow.d.ts +1 -1
  273. package/image/ImagePreviewArrow.js +2 -2
  274. package/image/ImagePreviewGroup.js +1 -1
  275. package/image/ImagePreviewToolbar.js +37 -36
  276. package/image/TriggerForToolbar.d.ts +1 -1
  277. package/image/TriggerForToolbar.js +1 -1
  278. package/image/context.js +1 -1
  279. package/image/hook/useImageStatus.js +1 -1
  280. package/image/hook/useShowFooter.js +1 -1
  281. package/image/index.js +1 -1
  282. package/image/utils/getFixTranslate.js +1 -1
  283. package/image/utils/getScale.js +1 -1
  284. package/index.js +904 -899
  285. package/input/Button.js +2 -2
  286. package/input/Group.js +2 -2
  287. package/input/Input.js +2 -2
  288. package/input/InputComponent.js +1 -1
  289. package/input/Password.js +2 -2
  290. package/input/Search.js +2 -2
  291. package/input/Textarea.js +7 -7
  292. package/input/autoSizeTextareaHeight.js +1 -1
  293. package/input/constants.js +1 -1
  294. package/input/index.js +1 -1
  295. package/input/useComposition.js +1 -1
  296. package/input/utils.js +1 -1
  297. package/input-number/InputNumber.js +2 -2
  298. package/input-number/decimal.js +1 -1
  299. package/input-number/index.js +1 -1
  300. package/input-number/useSelectionRange.js +1 -1
  301. package/input-number/utils.js +1 -1
  302. package/input-tag/InputTag.js +2 -2
  303. package/input-tag/constant.js +1 -1
  304. package/input-tag/hook/useComputeAutoWidthDelay.js +1 -1
  305. package/input-tag/index.js +1 -1
  306. package/layout/Content.js +2 -2
  307. package/layout/Footer.js +2 -2
  308. package/layout/Header.js +2 -2
  309. package/layout/Layout.js +2 -2
  310. package/layout/Sider.js +2 -2
  311. package/layout/context.js +1 -1
  312. package/layout/index.js +1 -1
  313. package/link/Link.js +2 -2
  314. package/link/index.js +1 -1
  315. package/liquid-fill/LiquidFill.js +2 -2
  316. package/liquid-fill/index.js +1 -1
  317. package/list/Item.js +2 -2
  318. package/list/List.js +2 -2
  319. package/list/Meta.js +3 -3
  320. package/list/index.js +1 -1
  321. package/loading/Loading.js +2 -2
  322. package/loading/index.js +1 -1
  323. package/locale/ar-EG.js +1 -1
  324. package/locale/de-DE.js +1 -1
  325. package/locale/default.js +1 -1
  326. package/locale/en-US.js +1 -1
  327. package/locale/es-ES.js +1 -1
  328. package/locale/fr-FR.js +1 -1
  329. package/locale/id-ID.js +1 -1
  330. package/locale/it-IT.js +1 -1
  331. package/locale/ja-JP.js +1 -1
  332. package/locale/ko-KR.js +1 -1
  333. package/locale/ms-MY.js +1 -1
  334. package/locale/pt-BR.js +1 -1
  335. package/locale/pt-PT.js +1 -1
  336. package/locale/ru-RU.js +1 -1
  337. package/locale/th-TH.js +1 -1
  338. package/locale/tr-TR.js +1 -1
  339. package/locale/vi-VN.js +1 -1
  340. package/locale/zh-CN.js +1 -1
  341. package/locale/zh-HK.js +1 -1
  342. package/locale/zh-TW.js +1 -1
  343. package/marquee/Marquee.js +2 -2
  344. package/marquee/index.js +1 -1
  345. package/mask/Mask.js +35 -34
  346. package/mask/constant.js +1 -1
  347. package/mask/index.js +1 -1
  348. package/masonry/{MasonryItem.js → Item.js} +2 -2
  349. package/masonry/Masonry.js +16 -16
  350. package/masonry/hooks/useDelay.js +1 -1
  351. package/masonry/hooks/useGutter.js +1 -1
  352. package/masonry/hooks/usePositions.js +1 -1
  353. package/masonry/hooks/useRefs.js +1 -1
  354. package/masonry/index.d.ts +1 -1
  355. package/masonry/index.js +2 -2
  356. package/mentions/Mentions.js +2 -2
  357. package/mentions/index.js +1 -1
  358. package/mentions/utils.js +1 -1
  359. package/menu/Indent.d.ts +1 -1
  360. package/menu/Indent.js +5 -5
  361. package/menu/Item.js +31 -31
  362. package/menu/ItemGroup.js +1 -1
  363. package/menu/Menu.js +54 -53
  364. package/menu/OverflowWrap.d.ts +2 -2
  365. package/menu/OverflowWrap.js +1 -1
  366. package/menu/context.d.ts +1 -0
  367. package/menu/context.js +1 -1
  368. package/menu/index.js +1 -1
  369. package/menu/sub-menu/Inline.d.ts +1 -1
  370. package/menu/sub-menu/Inline.js +48 -44
  371. package/menu/sub-menu/Pop.d.ts +1 -1
  372. package/menu/sub-menu/Pop.js +32 -31
  373. package/menu/sub-menu/index.js +5 -5
  374. package/menu/utils.js +1 -1
  375. package/message/Message.js +94 -91
  376. package/message/config.js +1 -1
  377. package/message/constants.js +3 -3
  378. package/message/index.js +1 -1
  379. package/message/useMessage.d.ts +1 -1
  380. package/message/useMessage.js +1 -1
  381. package/message/utils.js +1 -1
  382. package/modal/Modal.js +24 -24
  383. package/modal/config.js +1 -1
  384. package/modal/confirm.js +13 -11
  385. package/modal/constants.js +1 -1
  386. package/modal/index.js +1 -1
  387. package/modal/use-modal/Hook.js +5 -5
  388. package/modal/use-modal/index.d.ts +2 -1
  389. package/modal/use-modal/index.js +29 -26
  390. package/modal/utils.js +1 -1
  391. package/notice/Notice.js +59 -58
  392. package/notice/config.js +1 -1
  393. package/notice/constants.js +1 -1
  394. package/notice/index.js +1 -1
  395. package/notice/utils.js +1 -1
  396. package/notice/withNotice.js +9 -9
  397. package/notification/Notification.js +125 -120
  398. package/notification/config.js +1 -1
  399. package/notification/constants.js +1 -1
  400. package/notification/index.js +1 -1
  401. package/notification/useNotification.js +1 -1
  402. package/notification/utils.js +1 -1
  403. package/overflow-ellipsis/OverflowEllipsis.js +2 -2
  404. package/overflow-ellipsis/OverflowItem.d.ts +1 -1
  405. package/overflow-ellipsis/OverflowItem.js +2 -2
  406. package/overflow-ellipsis/index.js +1 -1
  407. package/package.json +1 -1
  408. package/page-header/PageHeader.js +2 -2
  409. package/page-header/index.js +1 -1
  410. package/pagination/PageItem.d.ts +3 -3
  411. package/pagination/PageItem.js +2 -2
  412. package/pagination/PageJumper.d.ts +1 -1
  413. package/pagination/PageJumper.js +2 -2
  414. package/pagination/PageOption.d.ts +1 -1
  415. package/pagination/PageOption.js +2 -2
  416. package/pagination/Pagination.js +2 -2
  417. package/pagination/index.js +1 -1
  418. package/pagination/interface.js +1 -1
  419. package/picker/Input.js +2 -2
  420. package/picker/InputRange.js +2 -2
  421. package/picker/index.js +1 -1
  422. package/popconfirm/Popconfirm.js +2 -2
  423. package/popconfirm/index.js +1 -1
  424. package/popover/Popover.js +2 -2
  425. package/popover/index.js +1 -1
  426. package/portal/Portal.js +2 -2
  427. package/portal/index.js +1 -1
  428. package/progress/CircleProgress.d.ts +1 -1
  429. package/progress/CircleProgress.js +1 -1
  430. package/progress/LineProgess.d.ts +1 -1
  431. package/progress/LineProgess.js +1 -1
  432. package/progress/Progress.js +2 -2
  433. package/progress/StepProgress.d.ts +1 -1
  434. package/progress/StepProgress.js +1 -1
  435. package/progress/index.d.ts +2 -2
  436. package/progress/index.js +1 -1
  437. package/qr-code/QRCode.js +2 -2
  438. package/qr-code/index.js +1 -1
  439. package/qr-code/src/index.js +1 -1
  440. package/qr-code/src/qrcodegen.js +1 -1
  441. package/radio/Group.d.ts +1 -1
  442. package/radio/Group.js +2 -2
  443. package/radio/GroupBlock.d.ts +1 -1
  444. package/radio/GroupBlock.js +2 -2
  445. package/radio/Radio.js +2 -2
  446. package/radio/context.js +1 -1
  447. package/radio/index.js +1 -1
  448. package/rate/Rate.js +2 -2
  449. package/rate/index.js +1 -1
  450. package/resize-box/ResizeBox.js +2 -2
  451. package/resize-box/ResizeTrigger.d.ts +1 -1
  452. package/resize-box/ResizeTrigger.js +2 -2
  453. package/resize-box/Split.js +2 -2
  454. package/resize-box/SplitGroup.js +2 -2
  455. package/resize-box/index.js +1 -1
  456. package/result/403.d.ts +1 -1
  457. package/result/403.js +1 -1
  458. package/result/404.d.ts +1 -1
  459. package/result/404.js +1 -1
  460. package/result/500.d.ts +1 -1
  461. package/result/500.js +1 -1
  462. package/result/Result.js +20 -20
  463. package/result/index.js +1 -1
  464. package/rich-text/RichText.js +10 -10
  465. package/rich-text/Toolbar.js +168 -168
  466. package/rich-text/constant.js +1 -1
  467. package/rich-text/index.js +1 -1
  468. package/rich-text/lib/blots/block.js +1 -1
  469. package/rich-text/lib/blots/break.js +1 -1
  470. package/rich-text/lib/blots/container.js +1 -1
  471. package/rich-text/lib/blots/cursor.js +1 -1
  472. package/rich-text/lib/blots/embed.js +1 -1
  473. package/rich-text/lib/blots/inline.js +1 -1
  474. package/rich-text/lib/blots/scroll.js +1 -1
  475. package/rich-text/lib/blots/text.js +1 -1
  476. package/rich-text/lib/core/composition.js +1 -1
  477. package/rich-text/lib/core/editor.js +1 -1
  478. package/rich-text/lib/core/emitter.js +1 -1
  479. package/rich-text/lib/core/logger.js +1 -1
  480. package/rich-text/lib/core/module.js +1 -1
  481. package/rich-text/lib/core/rich.js +1 -1
  482. package/rich-text/lib/core/selection.js +1 -1
  483. package/rich-text/lib/core/theme.js +1 -1
  484. package/rich-text/lib/core/utils/createRegistryWithFormats.js +1 -1
  485. package/rich-text/lib/core/utils/scrollRectIntoView.js +1 -1
  486. package/rich-text/lib/delta/AttributeMap.js +1 -1
  487. package/rich-text/lib/delta/Op.js +1 -1
  488. package/rich-text/lib/delta/OpIterator.js +1 -1
  489. package/rich-text/lib/delta/index.js +1 -1
  490. package/rich-text/lib/diff/index.js +1 -1
  491. package/rich-text/lib/formats/align.js +1 -1
  492. package/rich-text/lib/formats/background.js +1 -1
  493. package/rich-text/lib/formats/blockquote.js +1 -1
  494. package/rich-text/lib/formats/bold.js +1 -1
  495. package/rich-text/lib/formats/code.js +1 -1
  496. package/rich-text/lib/formats/color.js +1 -1
  497. package/rich-text/lib/formats/direction.js +1 -1
  498. package/rich-text/lib/formats/emoji.js +1 -1
  499. package/rich-text/lib/formats/font.js +1 -1
  500. package/rich-text/lib/formats/formula.js +1 -1
  501. package/rich-text/lib/formats/header.js +1 -1
  502. package/rich-text/lib/formats/hr.js +1 -1
  503. package/rich-text/lib/formats/image.js +1 -1
  504. package/rich-text/lib/formats/indent.js +1 -1
  505. package/rich-text/lib/formats/italic.js +1 -1
  506. package/rich-text/lib/formats/lineHeight.js +1 -1
  507. package/rich-text/lib/formats/link.js +1 -1
  508. package/rich-text/lib/formats/list.js +1 -1
  509. package/rich-text/lib/formats/script.js +1 -1
  510. package/rich-text/lib/formats/size.js +1 -1
  511. package/rich-text/lib/formats/strike.js +1 -1
  512. package/rich-text/lib/formats/table.js +1 -1
  513. package/rich-text/lib/formats/underline.js +1 -1
  514. package/rich-text/lib/formats/video.js +1 -1
  515. package/rich-text/lib/index.js +1 -1
  516. package/rich-text/lib/modules/clipboard.js +1 -1
  517. package/rich-text/lib/modules/history.js +1 -1
  518. package/rich-text/lib/modules/image-resize/index.js +1 -1
  519. package/rich-text/lib/modules/image-resize/modules/Base.js +1 -1
  520. package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +1 -1
  521. package/rich-text/lib/modules/image-resize/modules/Resize.js +1 -1
  522. package/rich-text/lib/modules/image-resize/options.js +1 -1
  523. package/rich-text/lib/modules/input.js +1 -1
  524. package/rich-text/lib/modules/keyboard.js +1 -1
  525. package/rich-text/lib/modules/normalizeExternalHTML/index.js +1 -1
  526. package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +1 -1
  527. package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +1 -1
  528. package/rich-text/lib/modules/table.js +1 -1
  529. package/rich-text/lib/modules/toolbar.js +1 -1
  530. package/rich-text/lib/modules/uiNode.js +1 -1
  531. package/rich-text/lib/modules/uploader.js +1 -1
  532. package/rich-text/lib/parchment/attributor/attributor.js +1 -1
  533. package/rich-text/lib/parchment/attributor/class.js +1 -1
  534. package/rich-text/lib/parchment/attributor/store.js +1 -1
  535. package/rich-text/lib/parchment/attributor/style.js +1 -1
  536. package/rich-text/lib/parchment/blot/abstract/container.js +1 -1
  537. package/rich-text/lib/parchment/blot/abstract/leaf.js +1 -1
  538. package/rich-text/lib/parchment/blot/abstract/parent.js +1 -1
  539. package/rich-text/lib/parchment/blot/abstract/shadow.js +1 -1
  540. package/rich-text/lib/parchment/blot/block.js +1 -1
  541. package/rich-text/lib/parchment/blot/embed.js +1 -1
  542. package/rich-text/lib/parchment/blot/inline.js +1 -1
  543. package/rich-text/lib/parchment/blot/scroll.js +1 -1
  544. package/rich-text/lib/parchment/blot/text.js +1 -1
  545. package/rich-text/lib/parchment/collection/linked-list.js +1 -1
  546. package/rich-text/lib/parchment/error.js +1 -1
  547. package/rich-text/lib/parchment/index.js +1 -1
  548. package/rich-text/lib/parchment/registry.js +1 -1
  549. package/rich-text/lib/parchment/scope.js +1 -1
  550. package/router-error/index.d.ts +2 -0
  551. package/router-error/index.js +78 -0
  552. package/row-col/Col-.js +2 -2
  553. package/row-col/Col.js +2 -2
  554. package/row-col/Row.js +2 -2
  555. package/row-col/context.js +1 -1
  556. package/row-col/index.js +1 -1
  557. package/segmented/Segmented.js +3 -3
  558. package/segmented/index.js +1 -1
  559. package/select/Option.js +1 -1
  560. package/select/OptionGroup.js +1 -1
  561. package/select/Select.js +2 -2
  562. package/select/index.js +1 -1
  563. package/select/utils.js +1 -1
  564. package/select-view/Core.js +2 -2
  565. package/select-view/SelectView.js +1 -1
  566. package/select-view/index.js +1 -1
  567. package/skeleton/Image.d.ts +1 -1
  568. package/skeleton/Image.js +1 -1
  569. package/skeleton/Skeleton.js +2 -2
  570. package/skeleton/Text.js +1 -1
  571. package/skeleton/index.js +1 -1
  572. package/slider/Button.d.ts +2 -2
  573. package/slider/Button.js +2 -2
  574. package/slider/Dot.js +1 -1
  575. package/slider/Input.d.ts +1 -1
  576. package/slider/Input.js +1 -1
  577. package/slider/Mark.js +1 -1
  578. package/slider/Slider.js +2 -2
  579. package/slider/Tick.d.ts +1 -1
  580. package/slider/Tick.js +1 -1
  581. package/slider/hook/useInterval.js +1 -1
  582. package/slider/hook/useLegalValue.js +1 -1
  583. package/slider/index.d.ts +3 -3
  584. package/slider/index.js +1 -1
  585. package/slider/utils.js +1 -1
  586. package/space/Space.js +2 -2
  587. package/space/index.js +1 -1
  588. package/speech-synthesis/SpeechSynthesis.js +1 -1
  589. package/speech-synthesis/index.js +1 -1
  590. package/spin/DotLoading.d.ts +1 -1
  591. package/spin/DotLoading.js +2 -2
  592. package/spin/Spin.js +2 -2
  593. package/spin/index.js +1 -1
  594. package/splitter/Panel.js +2 -2
  595. package/splitter/SplitBar.js +2 -2
  596. package/splitter/Splitter.js +2 -2
  597. package/splitter/hooks/useItems.js +1 -1
  598. package/splitter/hooks/useResizable.js +1 -1
  599. package/splitter/hooks/useResize.js +1 -1
  600. package/splitter/hooks/useSizes.js +1 -1
  601. package/splitter/index.js +1 -1
  602. package/statistic/Statistic.js +2 -2
  603. package/statistic/index.js +1 -1
  604. package/statistic/interface.js +1 -1
  605. package/steps/Step.js +46 -45
  606. package/steps/Steps.js +2 -2
  607. package/steps/index.js +1 -1
  608. package/style/animation.less +0 -0
  609. package/style/index.less +2 -1
  610. package/style/{animation → transition}/fade.less +23 -30
  611. package/style/transition/height.less +22 -0
  612. package/style/{animation → transition}/index.less +1 -0
  613. package/style/{animation → transition}/slide.less +5 -13
  614. package/style/{animation → transition}/zoom.less +33 -81
  615. package/style.css +1 -1
  616. package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
  617. package/suspense-fallback-test/index.js +1 -1
  618. package/switch/Switch.js +5 -5
  619. package/switch/index.js +1 -1
  620. package/table/ColGroup.d.ts +1 -1
  621. package/table/ColGroup.js +1 -1
  622. package/table/Table.js +2 -2
  623. package/table/constant.js +1 -1
  624. package/table/context.js +1 -1
  625. package/table/hook/useColumns.js +1 -1
  626. package/table/hook/useComponent.js +1 -1
  627. package/table/hook/useExpand.js +1 -1
  628. package/table/hook/useRowSelection.js +1 -1
  629. package/table/hook/useSorter.js +1 -1
  630. package/table/hook/useStickyClassNames.js +1 -1
  631. package/table/hook/useStickyOffsets.js +1 -1
  632. package/table/hook/useThResizable.d.ts +1 -1
  633. package/table/hook/useThResizable.js +23 -28
  634. package/table/index.js +1 -1
  635. package/table/summary/Cell.d.ts +1 -1
  636. package/table/summary/Cell.js +2 -2
  637. package/table/summary/Row.d.ts +2 -2
  638. package/table/summary/Row.js +2 -2
  639. package/table/summary/context.js +1 -1
  640. package/table/summary/index.js +1 -1
  641. package/table/tbody/DataRecordRenderer.js +1 -1
  642. package/table/tbody/Td.js +2 -2
  643. package/table/tbody/Tr.js +2 -2
  644. package/table/tbody/index.js +1 -1
  645. package/table/tfoot/index.d.ts +1 -1
  646. package/table/tfoot/index.js +1 -1
  647. package/table/th-resizable/index.d.ts +1 -1
  648. package/table/th-resizable/index.js +2 -2
  649. package/table/thead/Column.d.ts +1 -1
  650. package/table/thead/Column.js +2 -2
  651. package/table/thead/index.d.ts +2 -1
  652. package/table/thead/index.js +2 -2
  653. package/table/utils.js +1 -1
  654. package/tabs/TabContent.d.ts +2 -1
  655. package/tabs/TabContent.js +2 -2
  656. package/tabs/TabPane.js +2 -2
  657. package/tabs/Tabs.js +2 -2
  658. package/tabs/context.js +1 -1
  659. package/tabs/hook/useDomSize.js +1 -1
  660. package/tabs/hook/useHeaderScroll.js +1 -1
  661. package/tabs/index.js +1 -1
  662. package/tabs/tab-header/DropdownIcon.d.ts +1 -1
  663. package/tabs/tab-header/DropdownIcon.js +1 -1
  664. package/tabs/tab-header/TabInk.d.ts +1 -1
  665. package/tabs/tab-header/TabInk.js +1 -1
  666. package/tabs/tab-header/TabNavIcon.d.ts +1 -1
  667. package/tabs/tab-header/TabNavIcon.js +1 -1
  668. package/tabs/tab-header/TabTitle.js +1 -1
  669. package/tabs/tab-header/index.js +2 -2
  670. package/tabs/utils.js +1 -1
  671. package/tag/Tag.js +2 -2
  672. package/tag/index.js +1 -1
  673. package/tag/utils.js +1 -1
  674. package/time-picker/Picker.d.ts +2 -1
  675. package/time-picker/Picker.js +3 -3
  676. package/time-picker/TimeColumn.d.ts +1 -1
  677. package/time-picker/TimeColumn.js +1 -1
  678. package/time-picker/TimePicker.d.ts +2 -2
  679. package/time-picker/TimePicker.js +2 -2
  680. package/time-picker/TimePickerRange.d.ts +2 -2
  681. package/time-picker/TimePickerRange.js +1 -1
  682. package/time-picker/context.js +1 -1
  683. package/time-picker/index.d.ts +1 -1
  684. package/time-picker/index.js +1 -1
  685. package/time-picker/utils.js +1 -1
  686. package/time-picker/withTimePicker.d.ts +1 -1
  687. package/time-picker/withTimePicker.js +1 -1
  688. package/timeline/Item.js +2 -2
  689. package/timeline/Timeline.js +2 -2
  690. package/timeline/index.js +1 -1
  691. package/timer/Timer.js +2 -2
  692. package/timer/index.js +1 -1
  693. package/toast/Toast.js +1 -1
  694. package/toast/index.js +1 -1
  695. package/tooltip/Tooltip.js +2 -2
  696. package/tooltip/index.js +1 -1
  697. package/tour/Tour.js +6 -6
  698. package/tour/index.js +1 -1
  699. package/transfer/Item.d.ts +1 -1
  700. package/transfer/Item.js +1 -1
  701. package/transfer/List.d.ts +1 -1
  702. package/transfer/List.js +2 -2
  703. package/transfer/Transfer.js +35 -32
  704. package/transfer/index.js +1 -1
  705. package/transition/index.js +1 -1
  706. package/tree/Animation.d.ts +1 -1
  707. package/tree/Animation.js +2 -2
  708. package/tree/Node.js +2 -2
  709. package/tree/NodeList.js +2 -2
  710. package/tree/Tree.js +2 -2
  711. package/tree/context.js +1 -1
  712. package/tree/index.js +1 -1
  713. package/tree/utils.js +1 -1
  714. package/tree-select/List.js +1 -1
  715. package/tree-select/TreeSelect.js +2 -2
  716. package/tree-select/hook/useKeyCache.js +2 -2
  717. package/tree-select/hook/useStateValue.js +1 -1
  718. package/tree-select/hook/useTreeData.js +5 -5
  719. package/tree-select/index.js +1 -1
  720. package/tree-select/utils.js +1 -1
  721. package/trigger/Trigger.js +2 -2
  722. package/trigger/getPopupStyle.js +1 -1
  723. package/trigger/index.js +1 -1
  724. package/trigger/utils.js +1 -1
  725. package/typography/Base.js +2 -2
  726. package/typography/EditContent.js +1 -1
  727. package/typography/Ellipsis.js +2 -2
  728. package/typography/Operations.d.ts +1 -1
  729. package/typography/Operations.js +2 -2
  730. package/typography/Paragraph.js +2 -2
  731. package/typography/Text.js +1 -1
  732. package/typography/Title.js +1 -1
  733. package/typography/Typography.js +2 -2
  734. package/typography/index.js +1 -1
  735. package/typography/useCssEllipsis.js +1 -1
  736. package/typography/useEllipsis.js +1 -1
  737. package/upload/TriggerNode.js +2 -2
  738. package/upload/Upload.js +2 -2
  739. package/upload/Uploader.js +2 -2
  740. package/upload/constant.js +1 -1
  741. package/upload/index.d.ts +1 -1
  742. package/upload/index.js +1 -1
  743. package/upload/list/PictureItem.js +1 -1
  744. package/upload/list/TextItem.js +1 -1
  745. package/upload/list/UploadProgress.js +2 -2
  746. package/upload/list/index.d.ts +1 -1
  747. package/upload/list/index.js +2 -2
  748. package/upload/list/utils.js +1 -1
  749. package/upload/request.js +1 -1
  750. package/upload/utils.js +1 -1
  751. package/utils/callOrReturn.js +1 -1
  752. package/utils/callbackOriginRef.js +1 -1
  753. package/utils/caseName.js +1 -1
  754. package/utils/className.js +1 -1
  755. package/utils/constant.d.ts +2 -1
  756. package/utils/constant.js +6 -4
  757. package/utils/contextHolder.js +2 -2
  758. package/utils/copy.js +1 -1
  759. package/utils/createGlobalConfigFunction.js +1 -1
  760. package/utils/css.js +1 -1
  761. package/utils/date.js +1 -1
  762. package/utils/dayjs.js +1 -1
  763. package/utils/dom.js +1 -1
  764. package/utils/emitter.js +1 -1
  765. package/utils/file.js +1 -1
  766. package/utils/fileRead.js +1 -1
  767. package/utils/fileToDataURL.js +1 -1
  768. package/utils/fillNBSP.js +1 -1
  769. package/utils/findRootElement.js +1 -1
  770. package/utils/findScrollParent.js +1 -1
  771. package/utils/getHighlightText.js +1 -1
  772. package/utils/getHotkeyHandler.js +1 -1
  773. package/utils/getScrollBarHeight.js +1 -1
  774. package/utils/getScrollBarSize.js +1 -1
  775. package/utils/getScrollBarWidth.js +1 -1
  776. package/utils/getStringLength.js +1 -1
  777. package/utils/include.js +1 -1
  778. package/utils/index.d.ts +2 -1
  779. package/utils/index.js +319 -313
  780. package/utils/intersectionObserver.js +1 -1
  781. package/utils/is.d.ts +1 -1
  782. package/utils/is.js +89 -86
  783. package/utils/keyboardCode.js +1 -1
  784. package/utils/lodash.js +1 -1
  785. package/utils/math.js +1 -1
  786. package/utils/mergeProps.js +1 -1
  787. package/utils/mergedToString.js +1 -1
  788. package/utils/mutationObserver.js +1 -1
  789. package/utils/names.d.ts +19 -1
  790. package/utils/names.js +387 -384
  791. package/utils/object.js +1 -1
  792. package/utils/omit.js +1 -1
  793. package/utils/pad.js +1 -1
  794. package/utils/pick.js +1 -1
  795. package/utils/pinyin.js +1 -1
  796. package/utils/react19Adapter.js +1 -1
  797. package/utils/ref.js +1 -1
  798. package/utils/resizeObserver.js +1 -1
  799. package/utils/responsiveObserve.js +1 -1
  800. package/utils/saveAs.js +1 -1
  801. package/utils/screenfull.js +1 -1
  802. package/utils/scrollIntoViewIfNeeded.js +1 -1
  803. package/utils/setCreateRoot.js +1 -1
  804. package/utils/setDarkTheme.js +1 -1
  805. package/utils/setPrimaryColor.js +1 -1
  806. package/utils/setTheme.js +1 -1
  807. package/utils/string.js +1 -1
  808. package/utils/style.js +1 -1
  809. package/utils/throttleByRequestAnimationFrame.js +1 -1
  810. package/utils/tinycolor.js +1 -1
  811. package/utils/toArray.js +1 -1
  812. package/utils/tree.js +1 -1
  813. package/utils/tunnel.d.ts +1 -0
  814. package/utils/tunnel.js +4 -0
  815. package/utils/tween.js +1 -1
  816. package/utils/uuid.js +1 -1
  817. package/utils/validate.js +1 -1
  818. package/utils/warning.js +1 -1
  819. package/verification-code/VerificationCode.js +2 -2
  820. package/verification-code/index.js +1 -1
  821. package/version/index.js +9 -9
  822. package/virtual-list/Filler.js +1 -1
  823. package/virtual-list/VirtualList.js +2 -2
  824. package/virtual-list/constant.js +1 -1
  825. package/virtual-list/hook/useCacheChildrenNodes.js +1 -1
  826. package/virtual-list/hook/useComputeVirtualItemHeight.js +1 -1
  827. package/virtual-list/index.js +1 -1
  828. package/virtual-list/utils/algorithm.js +1 -1
  829. package/virtual-list/utils/item.js +1 -1
  830. package/watermark/Watermark.js +2 -2
  831. package/watermark/index.js +1 -1
  832. /package/masonry/{MasonryItem.d.ts → Item.d.ts} +0 -0
  833. /package/style/{animation → transition}/keyframes.less +0 -0
@@ -1,79 +1,79 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isEqualWith as e, isFunction as t, isHTMLElement as n, isNull as r, isPlainObject as i, isString as a } from "../../utils/is.js";
3
3
  import o from "../../hooks/use-force-update/index.js";
4
- import { ArrowDown as s, ArrowLeft as c, ArrowRight as l, ArrowUp as ee, Enter as u, Esc as d } from "../../utils/keyboardCode.js";
5
- import f from "../../utils/callOrReturn.js";
6
- import p from "../../utils/className.js";
7
- import { forceReflow as m, off as h, on as te } from "../../utils/dom.js";
8
- import { transition_exports as g } from "../../transition/index.js";
9
- import ne from "../../hooks/use-update-effect/index.js";
10
- import _ from "../../virtual-list/index.js";
11
- import { getMultipleCheckValue as v } from "../utils.js";
4
+ import { ArrowDown as s, ArrowLeft as c, ArrowRight as l, ArrowUp as u, Enter as d, Esc as f } from "../../utils/keyboardCode.js";
5
+ import p from "../../utils/callOrReturn.js";
6
+ import m from "../../utils/className.js";
7
+ import { off as h, on as g } from "../../utils/dom.js";
8
+ import { transition_exports as _ } from "../../transition/index.js";
9
+ import v from "../../hooks/use-update-effect/index.js";
10
+ import ee from "../../virtual-list/index.js";
11
+ import { getMultipleCheckValue as y } from "../utils.js";
12
12
  import "../base/node.js";
13
- import y from "../../hooks/use-refs/index.js";
14
- import b from "./Option.js";
15
- import { useCallback as x, useEffect as S, useState as C } from "react";
16
- import { Fragment as re, jsx as w, jsxs as ie } from "react/jsx-runtime";
13
+ import b from "../../hooks/use-refs/index.js";
14
+ import x from "./Option.js";
15
+ import { useCallback as S, useEffect as C, useState as w } from "react";
16
+ import { Fragment as T, jsx as E, jsxs as te } from "react/jsx-runtime";
17
17
  //#region components/pc/cascader/panel/List.tsx
18
- var T = (e) => {
18
+ var ne = (e) => {
19
19
  for (let t = 0; t < e.length; t++) if (!e[t].disabled) return e[t];
20
- }, E = (e) => {
20
+ }, D = (e) => {
21
21
  if (e?.disabled) {
22
22
  let t = e;
23
23
  for (; t.parent && t.parent.disabled;) t = t.parent;
24
24
  return t;
25
25
  }
26
26
  return e;
27
- }, D = (e, t) => e < 0 ? t : e > t ? 0 : e, O = (O) => {
28
- let { store: k, prefixCls: A, value: j, multiple: M, renderFooter: N, renderOption: P, showEmptyChildren: F, loadMore: I, renderEmpty: L, rtl: R, icons: z, dropdownColumnRender: B } = O, [V, H] = y(), U = o(), [W, G] = C(k.findNodeByValue(j && j[j.length - 1]) || null), K = k.getOptions(), q = (e) => {
29
- O.onChange?.(e);
27
+ }, O = (e, t) => e < 0 ? t : e > t ? 0 : e, k = (k) => {
28
+ let { store: A, prefixCls: j, value: M, multiple: N, renderFooter: P, renderOption: F, showEmptyChildren: re, loadMore: I, renderEmpty: L, rtl: R, icons: z, dropdownColumnRender: B } = k, [V, H] = b(), U = o(), [W, G] = w(A.findNodeByValue(M && M[M.length - 1]) || null), K = A.getOptions(), q = (e) => {
29
+ k.onChange?.(e);
30
30
  }, J = async (e) => {
31
31
  if (!e.isLeaf && t(I) && !e.children) {
32
32
  e.setLoading(!0), U();
33
33
  try {
34
34
  let t = await I(e.pathValue, e.pathValue.length);
35
- k.appendOptionChildren(e, t), k.setNodeCheckedByValue(O.value);
35
+ A.appendOptionChildren(e, t), A.setNodeCheckedByValue(k.value);
36
36
  } catch (e) {
37
37
  console.error(e);
38
38
  }
39
39
  e.setLoading(!1), U();
40
40
  }
41
41
  }, Y = async (e, t = !0) => {
42
- !e || e.disabled || (G(e), J(e), !M && t && (O.changeOnSelect || e.isLeaf) && q([e.pathValue]));
42
+ !e || e.disabled || (G(e), J(e), !N && t && (k.changeOnSelect || e.isLeaf) && q([e.pathValue]));
43
43
  }, X = (e, t) => {
44
- let n = v(O.value, k, e, t);
45
- e === W && U(), G(e), O.changeOnSelect || J(e), q(n);
46
- }, Z = x((e = W) => {
44
+ let n = y(k.value, A, e, t);
45
+ e === W && U(), G(e), k.changeOnSelect || J(e), q(n);
46
+ }, Z = S((e = W) => {
47
47
  let t = e;
48
48
  for (; t;) V[t._level]?.scrollTo?.({
49
49
  index: t._index,
50
50
  options: { block: "nearest" }
51
51
  }), t = t._level < 1 ? null : t.parent;
52
- }, [W]), Q = x((e) => {
52
+ }, [W]), Q = S((e) => {
53
53
  let t = e.key, n;
54
54
  switch (t) {
55
- case d.key:
56
- e.preventDefault(), O.onEsc?.();
55
+ case f.key:
56
+ e.preventDefault(), k.onEsc?.();
57
57
  break;
58
58
  case s.key:
59
- case ee.key:
59
+ case u.key:
60
60
  if (W) {
61
- let e = E(W), r = e.parent?.children || K, i = t === s.key ? 1 : -1, a = D(e._index + i, r.length - 1);
62
- for (; a !== e._index && (n = r[a], n.disabled);) a = D(a + i, r.length - 1);
63
- } else n = T(K);
61
+ let e = D(W), r = e.parent?.children || K, i = t === s.key ? 1 : -1, a = O(e._index + i, r.length - 1);
62
+ for (; a !== e._index && (n = r[a], n.disabled);) a = O(a + i, r.length - 1);
63
+ } else n = ne(K);
64
64
  return Z(n), Y(n, !1), e.preventDefault(), !1;
65
65
  case l.key: return W && !W.disabled && (n = (W.children || [])[0] || W, Y(n, !1)), e.preventDefault(), !1;
66
66
  case c.key:
67
67
  if (W) {
68
- let e = E(W);
68
+ let e = D(W);
69
69
  n = e.parent || e;
70
70
  }
71
71
  return Y(n, !1), e.preventDefault(), !1;
72
- case u.key: return W && (M ? X(W, !W._checked) : Y(W)), e.preventDefault(), !1;
72
+ case d.key: return W && (N ? X(W, !W._checked) : Y(W)), e.preventDefault(), !1;
73
73
  default: break;
74
74
  }
75
75
  }, [W]);
76
- ne(() => {
76
+ v(() => {
77
77
  G((e) => {
78
78
  let t;
79
79
  if (e?.pathValue?.length) {
@@ -85,124 +85,141 @@ var T = (e) => {
85
85
  }
86
86
  return t;
87
87
  });
88
- }, [k]), S(() => {
89
- O.popupVisible && K.length && setTimeout(Z);
90
- }, [O.popupVisible]), S(() => {
91
- let e = O.getTriggerElement();
92
- if (e) return O.popupVisible ? te(e, "keydown", Q) : h(e, "keydown", Q), () => {
88
+ }, [A]), C(() => {
89
+ k.popupVisible && K.length && setTimeout(Z);
90
+ }, [k.popupVisible]), C(() => {
91
+ let e = k.getTriggerElement();
92
+ if (e) return k.popupVisible ? g(e, "keydown", Q) : h(e, "keydown", Q), () => {
93
93
  h(e, "keydown", Q);
94
94
  };
95
- }, [O.popupVisible, Q]);
96
- let $ = f(() => {
95
+ }, [k.popupVisible, Q]);
96
+ let $ = p(() => {
97
97
  let e = [K];
98
98
  return (W ? W.getPathNodes() : []).forEach((t, n, r) => {
99
99
  let i = t?.children;
100
100
  i && e.push(i);
101
101
  }), e;
102
- }), ae = t(B) ? B : (e) => e;
102
+ }), ie = t(B) ? B : (e) => e;
103
+ function ae(e) {
104
+ n(e) && (e.style.marginInlineStart = `-${e.scrollWidth}px`), console.log("onEnterStart", e);
105
+ }
103
106
  function oe(e) {
104
- n(e) && e.scrollWidth && (e.style.marginInlineStart = `-${e.scrollWidth}px`), console.log("onEnterStart", e);
107
+ n(e) && (e.style.marginInlineStart = "0px"), console.log("onEnterActive", e);
105
108
  }
106
109
  function se(e) {
107
- n(e) && (m(e), e.style.marginInlineStart = "0px", m(e)), console.log("onEnterActive", e);
110
+ n(e) && (e.style.marginInlineStart = ""), console.log("onEnterDone", e);
108
111
  }
109
112
  function ce(e) {
110
- n(e) && (m(e), e.style.marginInlineStart = "", m(e)), console.log("onEnterDone", e);
113
+ n(e) && (e.style.marginInlineStart = "0px"), console.log("onExitStart", e);
111
114
  }
112
- return $[0]?.length ? /* @__PURE__ */ w(g.TransitionGroup, { children: $.map((n, o, s) => {
113
- let c;
114
- if (n.length || F) {
115
- let s, l = t(N) ? N(o, W || null) : null;
116
- c = /* @__PURE__ */ w(g.TransitionCSS, {
117
- refElement: () => s,
118
- duration: {
119
- enter: 300,
120
- exit: 0
121
- },
122
- classNames: `${A}-slide`,
123
- exit: !1,
124
- onEnterStart: oe,
125
- onEnterActive: se,
126
- onEnterDone: ce,
127
- children: /* @__PURE__ */ w("div", {
128
- ref: (e) => {
129
- s = e;
130
- },
131
- style: {
132
- zIndex: $.length - o,
133
- ...O.dropdownMenuColumnStyle
115
+ function le(e) {
116
+ n(e) && (e.style.marginInlineStart = `-${e.scrollWidth}px`), console.log("onExitActive", e);
117
+ }
118
+ function ue(e) {
119
+ n(e), console.log("onExitDone", e);
120
+ }
121
+ return $[0]?.length ? /* @__PURE__ */ E(_.TransitionGroup, {
122
+ appear: !1,
123
+ exit: !1,
124
+ children: $.map((n, o, s) => {
125
+ let c;
126
+ if (n.length || re) {
127
+ let s, l = t(P) ? P(o, W || null) : null;
128
+ c = /* @__PURE__ */ E(_.TransitionCSS, {
129
+ refElement: () => s,
130
+ duration: {
131
+ enter: 300,
132
+ exit: 0
134
133
  },
135
- className: p(`${A}-list-column`, {
136
- [`${A}-list-column-virtual`]: O.virtualListProps && !r(O.virtualListProps.threshold),
137
- [`${A}-list-column-rtl`]: R
138
- }),
139
- children: ae(/* @__PURE__ */ ie("div", {
140
- className: p(`${A}-list-wrapper`, { [`${A}-list-wrapper-with-footer`]: !r(l) }),
141
- children: [n.length ? /* @__PURE__ */ w(_, {
142
- needFiller: !1,
143
- threshold: O.virtualListProps ? 100 : null,
144
- data: n,
145
- isStaticItemHeight: !0,
146
- itemKey: "value",
147
- ...i(O.virtualListProps) ? O.virtualListProps : {},
148
- wrapper: "ul",
149
- role: "menu",
150
- ref: (e) => H(e, o),
151
- className: p(`${A}-list`, `${A}-list-select`, {
152
- [`${A}-list-multiple`]: M,
153
- [`${A}-list-rtl`]: R
154
- }),
155
- children: (n) => {
156
- let r = n, i = !1;
157
- W && (i = W.pathValue[o] === r.value);
158
- let s = r.disabled || M && r.disableCheckbox;
159
- return /* @__PURE__ */ w("li", {
160
- tabIndex: 0,
161
- role: "menuitem",
162
- "aria-haspopup": !r.isLeaf,
163
- "aria-expanded": i && !r.isLeaf,
164
- "aria-disabled": r.disabled,
165
- title: a(r.label) ? r.label : void 0,
166
- className: p(`${A}-list-item`, {
167
- [`${A}-list-item-active`]: i,
168
- [`${A}-list-item-disabled`]: r.disabled
169
- }),
170
- onMouseEnter: () => {
171
- r.disabled || O.expandTrigger === "hover" && (G(r), r.isLeaf || J(r));
172
- },
173
- onClick: () => {
174
- r.isLeaf && M && !r.disableCheckbox && !r.disabled ? X(r, !r._checked) : Y(r);
175
- },
176
- onDoubleClick: s ? void 0 : O.onDoubleClickOption,
177
- children: /* @__PURE__ */ w(b, {
178
- prefixCls: A,
179
- rtl: R,
180
- multiple: M,
181
- checkboxDisabled: s,
182
- option: r,
183
- selected: !M && r.isLeaf && e(O.value, r.pathValue),
184
- icons: z,
185
- renderOption: t(P) ? () => P(r._data, o) : void 0,
186
- onMultipleChecked: (e) => {
187
- X(r, e);
188
- }
189
- })
190
- }, r.value);
191
- }
192
- }) : L?.(O.virtualListProps ? "100%" : 120), l && /* @__PURE__ */ w("div", {
193
- className: `${A}-list-footer`,
194
- onMouseDown: (e) => {
195
- e.stopPropagation();
196
- },
197
- children: l
198
- })]
199
- }), o)
200
- })
201
- }, o);
202
- }
203
- return c;
204
- }) }) : /* @__PURE__ */ w(re, { children: L?.() });
134
+ classNames: `${j}-slide`,
135
+ appear: !1,
136
+ exit: !1,
137
+ onEnterStart: ae,
138
+ onEnterActive: oe,
139
+ onEnterDone: se,
140
+ onExitStart: ce,
141
+ onExitActive: le,
142
+ onExitDone: ue,
143
+ children: /* @__PURE__ */ E("div", {
144
+ ref: (e) => {
145
+ s = e;
146
+ },
147
+ style: {
148
+ zIndex: $.length - o,
149
+ ...k.dropdownMenuColumnStyle
150
+ },
151
+ className: m(`${j}-list-column`, {
152
+ [`${j}-list-column-virtual`]: k.virtualListProps && !r(k.virtualListProps.threshold),
153
+ [`${j}-list-column-rtl`]: R
154
+ }),
155
+ children: ie(/* @__PURE__ */ te("div", {
156
+ className: m(`${j}-list-wrapper`, { [`${j}-list-wrapper-with-footer`]: !r(l) }),
157
+ children: [n.length ? /* @__PURE__ */ E(ee, {
158
+ needFiller: !1,
159
+ threshold: k.virtualListProps ? 100 : null,
160
+ data: n,
161
+ isStaticItemHeight: !0,
162
+ itemKey: "value",
163
+ ...i(k.virtualListProps) ? k.virtualListProps : {},
164
+ wrapper: "ul",
165
+ role: "menu",
166
+ ref: (e) => H(e, o),
167
+ className: m(`${j}-list`, `${j}-list-select`, {
168
+ [`${j}-list-multiple`]: N,
169
+ [`${j}-list-rtl`]: R
170
+ }),
171
+ children: (n) => {
172
+ let r = n, i = !1;
173
+ W && (i = W.pathValue[o] === r.value);
174
+ let s = r.disabled || N && r.disableCheckbox;
175
+ return /* @__PURE__ */ E("li", {
176
+ tabIndex: 0,
177
+ role: "menuitem",
178
+ "aria-haspopup": !r.isLeaf,
179
+ "aria-expanded": i && !r.isLeaf,
180
+ "aria-disabled": r.disabled,
181
+ title: a(r.label) ? r.label : void 0,
182
+ className: m(`${j}-list-item`, {
183
+ [`${j}-list-item-active`]: i,
184
+ [`${j}-list-item-disabled`]: r.disabled
185
+ }),
186
+ onMouseEnter: () => {
187
+ r.disabled || k.expandTrigger === "hover" && (G(r), r.isLeaf || J(r));
188
+ },
189
+ onClick: () => {
190
+ r.isLeaf && N && !r.disableCheckbox && !r.disabled ? X(r, !r._checked) : Y(r);
191
+ },
192
+ onDoubleClick: s ? void 0 : k.onDoubleClickOption,
193
+ children: /* @__PURE__ */ E(x, {
194
+ prefixCls: j,
195
+ rtl: R,
196
+ multiple: N,
197
+ checkboxDisabled: s,
198
+ option: r,
199
+ selected: !N && r.isLeaf && e(k.value, r.pathValue),
200
+ icons: z,
201
+ renderOption: t(F) ? () => F(r._data, o) : void 0,
202
+ onMultipleChecked: (e) => {
203
+ X(r, e);
204
+ }
205
+ })
206
+ }, r.value);
207
+ }
208
+ }) : L?.(k.virtualListProps ? "100%" : 120), l && /* @__PURE__ */ E("div", {
209
+ className: `${j}-list-footer`,
210
+ onMouseDown: (e) => {
211
+ e.stopPropagation();
212
+ },
213
+ children: l
214
+ })]
215
+ }), o)
216
+ })
217
+ }, o);
218
+ }
219
+ return c;
220
+ })
221
+ }) : /* @__PURE__ */ E(T, { children: L?.() });
205
222
  };
206
223
  //#endregion
207
- export { O as default };
224
+ export { k as default };
208
225
  /* 独立思考,明辨是非 */
@@ -20,5 +20,5 @@ export interface CascaderOptionProps<T> {
20
20
  onMultipleChecked?: (checked: boolean) => void;
21
21
  checkboxDisabled?: boolean;
22
22
  }
23
- declare const Option: <T extends OptionProps>(props: CascaderOptionProps<T>) => import("react/jsx-runtime").JSX.Element;
23
+ declare const Option: <T extends OptionProps>(props: CascaderOptionProps<T>) => import("react").JSX.Element;
24
24
  export default Option;
@@ -1,5 +1,5 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
2
- import e from "../../config-provider/context.js";
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
+ import { ConfigContext as e } from "../../config-provider/context.js";
3
3
  import t from "../../checkbox/index.js";
4
4
  import "../base/node.js";
5
5
  import { useContext as n } from "react";
@@ -24,5 +24,5 @@ export type SearchPanelProps<T> = {
24
24
  next?: ReactNode;
25
25
  };
26
26
  };
27
- declare const SearchPanel: <T extends OptionProps>(props: SearchPanelProps<T>) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
27
+ declare const SearchPanel: <T extends OptionProps>(props: SearchPanelProps<T>) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
28
28
  export default SearchPanel;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isEqualWith as e, isFunction as t, isPlainObject as n, isString as r } from "../../utils/is.js";
3
3
  import { ArrowDown as i, ArrowUp as a, Enter as o, Esc as s } from "../../utils/keyboardCode.js";
4
4
  import c from "../../utils/className.js";
package/cascader/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isArray as e, isUndefined as t } from "../utils/is.js";
3
3
  import { CHILDREN_NAME as n } from "../constant/index.js";
4
4
  import r from "./base/store.js";
@@ -1,13 +1,13 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isFunction as e, isNil as t } from "../utils/is.js";
3
3
  import n from "../hooks/use-controllable-value/index.js";
4
4
  import r from "../utils/className.js";
5
5
  import { CHECKBOX_COMPONENT_INFO as i } from "../utils/names.js";
6
6
  import a from "../hooks/use-merge-props/index.js";
7
- import o from "../config-provider/context.js";
7
+ import { ConfigContext as o } from "../config-provider/context.js";
8
8
  import s from "../utils/omit.js";
9
- import c from "../hooks/use-memoized-fn/index.js";
10
- import { FormContext as l, FormItemContext as u } from "../form/context.js";
9
+ import { FormContext as c, FormItemContext as l } from "../form/context.js";
10
+ import u from "../hooks/use-memoized-fn/index.js";
11
11
  import d from "../icon-hover/index.js";
12
12
  import { CheckboxGroupContext as f } from "./context.js";
13
13
  import p, { forwardRef as m, useContext as h, useEffect as g, useImperativeHandle as _, useRef as v } from "react";
@@ -16,7 +16,7 @@ import S from "@unicom-cloud/icons/IconUiCheck";
16
16
  import C from "@unicom-cloud/icons/IconUiMinus";
17
17
  //#region components/pc/checkbox/Checkbox.tsx
18
18
  function w(i, m) {
19
- let w = v(null), { prefixCls: T, getPrefixCls: E, componentConfig: D, rtl: O } = h(o), k = h(l), A = h(u), j = a(i, {}, D?.Checkbox), M = h(f), N = M.prefixCls ?? E?.("checkbox");
19
+ let w = v(null), { prefixCls: T, getPrefixCls: E, componentConfig: D, rtl: O } = h(o), k = h(c), A = h(l), j = a(i, {}, D?.Checkbox), M = h(f), N = M.prefixCls ?? E?.("checkbox");
20
20
  `${M.prefixClsGroup ?? `${N}-group`}`;
21
21
  let { onGroupChange: P } = M, F = { ...j }, I = A?.readOnly ?? k?.readOnly;
22
22
  M.isCheckboxGroup && (F.checked = M.checkboxGroupValue.includes(j.value), F.disabled = "disabled" in j ? j.disabled : M.disabled, F.readOnly = "readOnly" in j ? j.readOnly : M.readOnly ?? I);
@@ -36,7 +36,7 @@ function w(i, m) {
36
36
  g(() => (M.registerValue(V), () => {
37
37
  M.unRegisterValue(V);
38
38
  }), [V]);
39
- let Y = c((e) => {
39
+ let Y = u((e) => {
40
40
  L || (e.persist(), e.stopPropagation(), q(e.target.checked, e), M.isCheckboxGroup && P?.(j.value, e.target.checked, e));
41
41
  }), X = p.useCallback((t) => {
42
42
  e(j.children) && (t.preventDefault(), w.current?.click?.()), G.onClick?.(t);
@@ -1,7 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import type { CheckboxGroupProps } from './interface';
3
- export declare const ClearCheckboxGroupContext: ({ children, }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
4
- declare function Group<T extends string>(baseProps: PropsWithChildren<CheckboxGroupProps<T>>): import("react/jsx-runtime").JSX.Element;
3
+ export declare const ClearCheckboxGroupContext: ({ children, }: PropsWithChildren<{}>) => import("react").JSX.Element;
4
+ declare function Group<T extends string>(baseProps: PropsWithChildren<CheckboxGroupProps<T>>): import("react").JSX.Element;
5
5
  declare namespace Group {
6
6
  var displayName: string;
7
7
  }
package/checkbox/Group.js CHANGED
@@ -1,11 +1,11 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isArray as e, isPlainObject as t } from "../utils/is.js";
3
3
  import n from "../hooks/use-controllable-value/index.js";
4
4
  import r from "../utils/className.js";
5
5
  import { pickTriggerPropsFromRest as i } from "../utils/constant.js";
6
6
  import { CHECKBOX_GROUP_COMPONENT_INFO as a } from "../utils/names.js";
7
7
  import o from "../hooks/use-merge-props/index.js";
8
- import s from "../config-provider/context.js";
8
+ import { ConfigContext as s } from "../config-provider/context.js";
9
9
  import { FormContext as c, FormItemContext as l } from "../form/context.js";
10
10
  import { CheckboxGroupContext as u, defaultCheckboxGroupContextValue as d } from "./context.js";
11
11
  import f from "./Checkbox.js";
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import type { CheckboxGroupProps } from './interface';
3
- declare function CheckboxGroupBlock<T extends string>(baseProps: PropsWithChildren<CheckboxGroupProps<T>>): import("react/jsx-runtime").JSX.Element;
3
+ declare function CheckboxGroupBlock<T extends string>(baseProps: PropsWithChildren<CheckboxGroupProps<T>>): import("react").JSX.Element;
4
4
  declare namespace CheckboxGroupBlock {
5
5
  var displayName: string;
6
6
  }
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isPlainObject as e } from "../utils/is.js";
3
3
  import t from "../utils/className.js";
4
4
  import { CHECKBOX_GROUP_BLOCK_COMPONENT_INFO as n } from "../utils/names.js";
5
5
  import r from "../hooks/use-merge-props/index.js";
6
- import i from "../config-provider/context.js";
6
+ import { ConfigContext as i } from "../config-provider/context.js";
7
7
  import { FormContext as a, FormItemContext as o } from "../form/context.js";
8
8
  import { CheckboxGroupContext as s } from "./context.js";
9
9
  import c from "./Checkbox.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { createContext as e } from "react";
3
3
  //#region components/pc/checkbox/context.ts
4
4
  var t = {
package/checkbox/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { CHECKBOX_COMPONENT_INFO as e } from "../utils/names.js";
3
3
  import { CheckboxGroupContext as t } from "./context.js";
4
4
  import n from "./Checkbox.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { useMemo as e, useState as t } from "react";
3
3
  import n from "lodash/castArray";
4
4
  //#region components/pc/checkbox/useCheckbox.ts
@@ -1,10 +1,10 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isArrayAndNotEmpty as e, isFunction as t, isNullOrUndefined as n } from "../utils/is.js";
3
3
  import r from "../hooks/use-controllable-value/index.js";
4
4
  import i from "../utils/className.js";
5
5
  import { COLLAPSE_COMPONENT_INFO as a } from "../utils/names.js";
6
6
  import o from "../hooks/use-merge-props/index.js";
7
- import s from "../config-provider/context.js";
7
+ import { ConfigContext as s } from "../config-provider/context.js";
8
8
  import c from "../utils/omit.js";
9
9
  import { getReactElementRef as l } from "../utils/ref.js";
10
10
  import { CollapseContext as u } from "./context.js";
package/collapse/Item.js CHANGED
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isFunction as e, isHTMLElement as t } from "../utils/is.js";
3
3
  import n from "../utils/className.js";
4
- import { COLLAPSE_ITEM_COMPONENT_INFO as r } from "../utils/names.js";
5
- import { forceReflow as i } from "../utils/dom.js";
6
- import a from "../config-provider/context.js";
4
+ import { PREFIX_CLASS as r } from "../utils/constant.js";
5
+ import { COLLAPSE_ITEM_COMPONENT_INFO as i } from "../utils/names.js";
6
+ import { ConfigContext as a } from "../config-provider/context.js";
7
7
  import { css_exports as o } from "../utils/css.js";
8
8
  import { transition_exports as s } from "../transition/index.js";
9
9
  import c from "../icon-hover/index.js";
@@ -13,8 +13,8 @@ import { normalizeName as d } from "./utils.js";
13
13
  import { forwardRef as f, useContext as p, useRef as m } from "react";
14
14
  import { jsx as h, jsxs as g } from "react/jsx-runtime";
15
15
  //#region components/pc/collapse/Item.tsx
16
- function _(r, f) {
17
- let { prefixCls: _, getPrefixCls: v } = p(a), y = p(u), b = l(), { children: x, name: S, header: C, title: w, className: T, style: E, contentStyle: D, extra: O, disabled: k, destroyOnHide: A, expandIcon: j, showExpandIcon: M = !0, ...N } = r, P = d(S), F = w ?? C, I = m(null), L = m(null), R = v?.("collapse-item"), z = y.activeKeys?.includes?.(P), B = M ? "expandIcon" in r ? j : y.expandIcon : null, V = (e, t) => {
16
+ function _(i, f) {
17
+ let { prefixCls: _, getPrefixCls: v } = p(a), y = p(u), b = l(), { children: x, name: S, header: C, title: w, className: T, style: E, contentStyle: D, extra: O, disabled: k, destroyOnHide: A, expandIcon: j, showExpandIcon: M = !0, ...N } = i, P = d(S), F = w ?? C, I = m(null), L = m(null), R = v?.("collapse-item"), z = y.activeKeys?.includes?.(P), B = M ? "expandIcon" in i ? j : y.expandIcon : null, V = (e, t) => {
18
18
  if (k) return;
19
19
  let { triggerRegion: n } = y, r = n === "title";
20
20
  (t === (n === "icon" ? 0 : r ? 1 : 2) || r && [0, 1].includes(t)) && y.onToggle?.(P, e);
@@ -71,10 +71,10 @@ function _(r, f) {
71
71
  }), /* @__PURE__ */ h(s.TransitionCSS, {
72
72
  refElement: I,
73
73
  in: z,
74
- duration: 200,
75
- classNames: `${R}-transition`,
76
- mountOnEnter: "destroyOnHide" in r ? A : y.destroyOnHide || y.lazyload,
77
- unmountOnExit: "destroyOnHide" in r ? A : y.destroyOnHide,
74
+ duration: 227,
75
+ classNames: `${r}-height`,
76
+ mountOnEnter: "destroyOnHide" in i ? A : y.destroyOnHide || y.lazyload,
77
+ unmountOnExit: "destroyOnHide" in i ? A : y.destroyOnHide,
78
78
  onEnterStart: (e) => {
79
79
  e ||= I.current, t(e) && (o.cssCalcSizeSupported || (e.style.height = "0"), e.style.display = "block");
80
80
  },
@@ -89,7 +89,7 @@ function _(r, f) {
89
89
  onExitStart: (e) => {
90
90
  e ||= I.current;
91
91
  let n = L.current;
92
- t(e) && t(n) && (e.style.display = "block", o.cssCalcSizeSupported || (i(e), i(n), e.style.height = `${Math.max(e.offsetHeight, n.offsetHeight)}px`, i(e), i(n)));
92
+ t(e) && t(n) && (e.style.display = "block", o.cssCalcSizeSupported || (e.style.height = `${Math.max(e.offsetHeight, n.offsetHeight)}px`));
93
93
  },
94
94
  onExitActive: (e) => {
95
95
  e ||= I.current, t(e) && (o.cssCalcSizeSupported || (e.style.height = "0"));
@@ -112,7 +112,7 @@ function _(r, f) {
112
112
  });
113
113
  }
114
114
  var v = f(_), y = Object.assign(v, { ___COLLAPSE_ITEM___: !0 });
115
- y.displayName = r.displayName;
115
+ y.displayName = i.displayName;
116
116
  //#endregion
117
117
  export { y as default };
118
118
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { createContext as e, createElement as t } from "react";
3
3
  import n from "@unicom-cloud/icons/IconUiCaretRight";
4
4
  //#region components/pc/collapse/context.ts
package/collapse/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { COLLAPSE_COMPONENT_INFO as e } from "../utils/names.js";
3
3
  import { CollapseContext as t } from "./context.js";
4
4
  import n from "./Item.js";
package/collapse/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isArray as e, isString as t } from "../utils/is.js";
3
3
  //#region components/pc/collapse/utils.ts
4
4
  function n(e) {
@@ -1,9 +1,9 @@
1
- /* 潘启宝 2026-05-26 15:50:14 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-06-02 15:43:25 星期二 山东省济南市 */
2
2
  import { isArray as e, isFunction as t, isNil as n, isString as r } from "../utils/is.js";
3
3
  import i from "../utils/className.js";
4
4
  import { COLOR_PICKER_COMPONENT_INFO as a } from "../utils/names.js";
5
5
  import o from "../hooks/use-merge-props/index.js";
6
- import ee from "../config-provider/context.js";
6
+ import { ConfigContext as ee } from "../config-provider/context.js";
7
7
  import { FormContext as te, FormItemContext as ne } from "../form/context.js";
8
8
  import s from "../trigger/index.js";
9
9
  import c from "../copy/index.js";