useblocks 1.1.85-dev.10 → 1.1.85-dev.11

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 (503) hide show
  1. package/README.md +70 -40
  2. package/compat-globals.js +1 -1
  3. package/iframe/.vite/manifest.json +4 -4
  4. package/iframe/js/discussHandlers.sDXLf5I7.js +88 -0
  5. package/iframe/js/{iframe-eblock.body.js → iframe-eblock.body.714faf8a.js} +1 -1
  6. package/iframe/js/iframe-eblock.js +2 -2
  7. package/iframe/js/{iframe.body.js → iframe.body.714faf8a.js} +35 -35
  8. package/iframe/js/iframe.js +2 -2
  9. package/package.json +4 -1
  10. package/runtime/THIRD_PARTY_LICENSES.txt +49 -42
  11. package/runtime/package.json +4 -1
  12. package/runtime/react/index.js +1 -1
  13. package/runtime/uuid/index.js +21 -0
  14. package/static/core/11bc33e0.js +1 -0
  15. package/static/core/1ed86ed3.js +1 -0
  16. package/static/core/248de796.js +1 -0
  17. package/static/core/{e50b6f57.js → 274b5d7a.js} +1 -1
  18. package/static/core/4067c5be.js +1 -0
  19. package/static/core/453596ac.js +27 -0
  20. package/static/core/4b12ae50.js +1 -0
  21. package/static/core/{db82c42b.js → 50d547f6.js} +1 -1
  22. package/static/core/549c0ef1.js +1 -0
  23. package/static/core/{b29146b3.js → 563a690f.js} +5 -5
  24. package/static/core/{c1bf6439.js → 5c62f38b.js} +1 -1
  25. package/static/core/5f949f39.js +1 -0
  26. package/static/core/{e0d71533.js → 60aa31a3.js} +6 -6
  27. package/static/core/{79749848.js → 66619f08.js} +7 -7
  28. package/static/core/7052d050.js +28 -0
  29. package/static/core/{984e936f.js → 7555e955.js} +1 -1
  30. package/static/core/{55a38638.js → 7c89682e.js} +7 -7
  31. package/static/core/83c17079.js +2 -0
  32. package/static/core/{4c83d06a.js → 8c5284f6.js} +1 -1
  33. package/static/core/{e0e5c9b9.js → 958fe93e.js} +2 -2
  34. package/static/core/{6fcb3c31.js → a3f7b4c9.js} +1 -1
  35. package/static/core/{9560f31a.js → a494cc9f.js} +1 -1
  36. package/static/core/{a5996860.js → a6303cb2.js} +1 -1
  37. package/static/core/b8a0f663.js +1 -0
  38. package/static/core/bb65f553.js +1 -0
  39. package/static/core/{4c3f5897.js → c2f990cf.js} +2 -2
  40. package/static/core/{72d350ea.js → c8d6258e.js} +1 -1
  41. package/static/core/{3ece766f.js → d58ae4ac.js} +2 -2
  42. package/static/core/d61988e0.js +7 -0
  43. package/static/core/d887672a.js +1 -0
  44. package/static/core/dcc37768.js +1 -0
  45. package/static/core/{30841c46.js → e50f64f6.js} +1 -1
  46. package/static/core/{175b5b0f.js → ff7d14e8.js} +1 -1
  47. package/static/esm/2490dab8.js +1 -0
  48. package/static/esm/971f1b2c.js +1 -0
  49. package/static/esm/ad8c16a9.js +1 -0
  50. package/static/esm/f76c9d9d.js +1 -0
  51. package/static/umd/6639d610.js +1 -0
  52. package/static/umd-runtime/B7h7P1Np.js +1 -0
  53. package/static/umd-runtime/{DHIkHsbq.js → BAqQTgiL.js} +1 -1
  54. package/static/umd-runtime/{DiNHpyis.js → BB6AXfHj.js} +1 -1
  55. package/static/umd-runtime/{CnUGCoaH.js → BauvM4c_.js} +1 -1
  56. package/static/umd-runtime/{cL_ha9ef.js → CgVJ4rE0.js} +1 -1
  57. package/static/umd-runtime/Cvm7BS4_.js +341 -0
  58. package/static/umd-runtime/{BnE05QKl.js → D7DggGzi.js} +1 -1
  59. package/static/umd-runtime/{2iAslXEF.js → DBbch1O-.js} +1 -1
  60. package/static/umd-runtime/{Bcqtk2f7.js → Dqoi-pC_.js} +2 -2
  61. package/static/umd-runtime/{CDTBLHGd.js → G2k8ELiO.js} +3 -3
  62. package/static/umd-runtime/{CVtPwspX.js → SFp4nbvq.js} +1 -1
  63. package/static/umd-runtime/{DVB_-O4B.js → UsRzAWs2.js} +1 -1
  64. package/static/umd-runtime/runtime.js +1 -1
  65. package/static/umd-runtime/ui-kit-icons.js +1 -1
  66. package/static/umd-runtime/ui-kit.js +2 -2
  67. package/static/umd-runtime/{DP3QTW77.js → uk9LyZos.js} +1 -1
  68. package/useblocks-core.714faf8a.js +859 -0
  69. package/useblocks-esm.js +11 -11
  70. package/{useblocks-po.8098d114.js → useblocks-po.714faf8a.js} +1 -1
  71. package/useblocks.d.ts +109 -25
  72. package/useblocks.js +39 -15
  73. package/vendor/@rc-component/cascader/package.json +1 -1
  74. package/vendor/@rc-component/dialog/es/Dialog/Content/Panel.js +3 -2
  75. package/vendor/@rc-component/dialog/package.json +1 -1
  76. package/vendor/@rc-component/image/es/Preview/index.js +3 -3
  77. package/vendor/@rc-component/image/package.json +1 -1
  78. package/vendor/@rc-component/input/es/BaseInput.js +3 -3
  79. package/vendor/@rc-component/input/es/Input.js +20 -27
  80. package/vendor/@rc-component/{textarea → input}/es/ResizableTextArea.js +5 -4
  81. package/vendor/@rc-component/{textarea → input}/es/TextArea.js +30 -40
  82. package/vendor/@rc-component/{textarea → input}/es/calculateNodeHeight.js +4 -4
  83. package/vendor/@rc-component/input/es/hooks/useCountDisplay.js +25 -0
  84. package/vendor/@rc-component/input/es/hooks/useCountExceed.js +25 -0
  85. package/vendor/@rc-component/input/es/hooks/useMergedValue.js +13 -0
  86. package/vendor/@rc-component/input/es/index.js +3 -1
  87. package/vendor/@rc-component/input/package.json +1 -1
  88. package/vendor/@rc-component/mentions/es/DropdownMenu.js +1 -1
  89. package/vendor/@rc-component/mentions/es/Mentions.js +35 -8
  90. package/vendor/@rc-component/mentions/package.json +1 -1
  91. package/vendor/@rc-component/menu/es/Menu.js +1 -0
  92. package/vendor/@rc-component/menu/es/MenuItem.js +1 -0
  93. package/vendor/@rc-component/menu/es/MenuItemGroup.js +1 -0
  94. package/vendor/@rc-component/menu/es/SubMenu/PopupTrigger.js +1 -0
  95. package/vendor/@rc-component/menu/es/SubMenu/index.js +1 -0
  96. package/vendor/@rc-component/menu/es/context/MenuContext.js +1 -0
  97. package/vendor/@rc-component/menu/es/hooks/useAccessibility.js +1 -0
  98. package/vendor/@rc-component/menu/es/hooks/useKeyRecords.js +1 -0
  99. package/vendor/@rc-component/menu/es/utils/commonUtil.js +1 -0
  100. package/vendor/@rc-component/menu/es/utils/nodeUtil.js +2 -1
  101. package/vendor/@rc-component/menu/es/utils/warnUtil.js +1 -0
  102. package/vendor/@rc-component/menu/package.json +1 -1
  103. package/vendor/@rc-component/notification/LICENSE +21 -0
  104. package/vendor/@rc-component/notification/_/@rc-component/util/LICENSE +22 -0
  105. package/vendor/@rc-component/notification/_/@rc-component/util/es/Children/toArray.js +15 -0
  106. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/canUseDom.js +6 -0
  107. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/contains.js +13 -0
  108. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/dynamicCSS.js +94 -0
  109. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/findDOMNode.js +14 -0
  110. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/focus.js +99 -0
  111. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/isVisible.js +18 -0
  112. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/shadow.js +12 -0
  113. package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/styleChecker.js +2 -0
  114. package/vendor/@rc-component/notification/_/@rc-component/util/es/KeyCode.js +499 -0
  115. package/vendor/@rc-component/notification/_/@rc-component/util/es/Portal.js +28 -0
  116. package/vendor/@rc-component/notification/_/@rc-component/util/es/React/isFragment.js +12 -0
  117. package/vendor/@rc-component/notification/_/@rc-component/util/es/React/render.js +2 -0
  118. package/vendor/@rc-component/notification/_/@rc-component/util/es/getScrollBarSize.js +2 -0
  119. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useControlledState.js +3 -0
  120. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useDelayState.js +4 -0
  121. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useEvent.js +9 -0
  122. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useId.js +23 -0
  123. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useLayoutEffect.js +26 -0
  124. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMemo.js +12 -0
  125. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMergedState.js +4 -0
  126. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useState.js +24 -0
  127. package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useSyncState.js +20 -0
  128. package/vendor/@rc-component/notification/_/@rc-component/util/es/index.js +36 -0
  129. package/vendor/@rc-component/notification/_/@rc-component/util/es/is.js +21 -0
  130. package/vendor/@rc-component/notification/_/@rc-component/util/es/isEqual.js +35 -0
  131. package/vendor/@rc-component/notification/_/@rc-component/util/es/isMobile.js +11 -0
  132. package/vendor/@rc-component/notification/_/@rc-component/util/es/mergeProps.js +14 -0
  133. package/vendor/@rc-component/notification/_/@rc-component/util/es/omit.js +1 -0
  134. package/vendor/@rc-component/notification/_/@rc-component/util/es/pickAttrs.js +50 -0
  135. package/vendor/@rc-component/notification/_/@rc-component/util/es/proxyObject.js +1 -0
  136. package/vendor/@rc-component/notification/_/@rc-component/util/es/raf.js +36 -0
  137. package/vendor/@rc-component/notification/_/@rc-component/util/es/ref.js +38 -0
  138. package/vendor/@rc-component/notification/_/@rc-component/util/es/test/domHook.js +36 -0
  139. package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/get.js +11 -0
  140. package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/set.js +58 -0
  141. package/vendor/@rc-component/notification/_/@rc-component/util/es/warning.js +46 -0
  142. package/vendor/@rc-component/notification/_/@rc-component/util/package.json +6 -0
  143. package/vendor/@rc-component/notification/es/Notification.js +129 -0
  144. package/vendor/@rc-component/notification/es/NotificationList/Content.js +33 -0
  145. package/vendor/@rc-component/notification/es/NotificationList/index.js +174 -0
  146. package/vendor/@rc-component/notification/es/NotificationProvider.js +4 -3
  147. package/vendor/@rc-component/notification/es/Notifications.js +28 -31
  148. package/vendor/@rc-component/notification/es/Progress.js +10 -0
  149. package/vendor/@rc-component/notification/es/hooks/useClosable.js +30 -0
  150. package/vendor/@rc-component/notification/es/hooks/useListPosition/index.js +50 -0
  151. package/vendor/@rc-component/notification/es/hooks/useListPosition/useSizes.js +33 -0
  152. package/vendor/@rc-component/notification/es/hooks/useNoticeTimer.js +58 -0
  153. package/vendor/@rc-component/notification/es/hooks/useNotification.js +27 -18
  154. package/vendor/@rc-component/notification/es/hooks/useStack.js +4 -4
  155. package/vendor/@rc-component/notification/es/index.js +4 -2
  156. package/vendor/@rc-component/notification/package.json +1 -1
  157. package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/MultipleDates.js +13 -3
  158. package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/index.js +3 -1
  159. package/vendor/@rc-component/picker/es/PickerInput/SinglePicker.js +2 -1
  160. package/vendor/@rc-component/picker/package.json +1 -1
  161. package/vendor/@rc-component/table/LICENSE +21 -0
  162. package/vendor/@rc-component/table/es/Body/MeasureCell.js +1 -0
  163. package/vendor/@rc-component/table/es/Body/MeasureRow.js +1 -0
  164. package/vendor/@rc-component/table/es/Cell/useCellRender.js +1 -0
  165. package/vendor/@rc-component/table/es/FixedHolder/index.js +1 -0
  166. package/vendor/@rc-component/table/es/Table.js +17 -9
  167. package/vendor/@rc-component/table/es/VirtualTable/BodyGrid.js +10 -4
  168. package/vendor/@rc-component/table/es/VirtualTable/BodyLine.js +13 -5
  169. package/vendor/@rc-component/table/es/hooks/useColumns/index.js +1 -0
  170. package/vendor/@rc-component/table/es/hooks/useExpand.js +1 -0
  171. package/vendor/@rc-component/table/es/hooks/useFixedInfo.js +1 -0
  172. package/vendor/@rc-component/table/es/hooks/useSticky.js +1 -0
  173. package/vendor/@rc-component/table/es/index.js +2 -1
  174. package/vendor/@rc-component/table/es/stickyScrollBar.js +1 -0
  175. package/vendor/@rc-component/table/es/utils/legacyUtil.js +1 -0
  176. package/vendor/@rc-component/table/es/utils/offsetUtil.js +1 -0
  177. package/vendor/@rc-component/table/package.json +1 -1
  178. package/vendor/@rc-component/tabs/es/TabNavList/OperationNode.js +4 -2
  179. package/vendor/@rc-component/tabs/es/TabNavList/TabNode.js +5 -4
  180. package/vendor/@rc-component/tabs/es/TabNavList/index.js +11 -4
  181. package/vendor/@rc-component/tabs/es/Tabs.js +1 -0
  182. package/vendor/@rc-component/tabs/es/hooks/useAnimateConfig.js +1 -0
  183. package/vendor/@rc-component/tabs/es/hooks/useIndicator.js +1 -0
  184. package/vendor/@rc-component/tabs/es/hooks/useUpdate.js +1 -0
  185. package/vendor/@rc-component/tabs/package.json +1 -1
  186. package/vendor/@rc-component/tour/es/TourStep/DefaultPanel.js +4 -1
  187. package/vendor/@rc-component/tour/package.json +1 -1
  188. package/vendor/@rc-component/tree/es/MotionTreeNode.js +1 -0
  189. package/vendor/@rc-component/tree/es/NodeList.js +2 -2
  190. package/vendor/@rc-component/tree/es/Tree.js +4 -5
  191. package/vendor/@rc-component/tree/es/TreeNode.js +7 -2
  192. package/vendor/@rc-component/tree/es/index.js +3 -0
  193. package/vendor/@rc-component/tree/es/useUnmount.js +1 -0
  194. package/vendor/@rc-component/tree/es/util.js +1 -0
  195. package/vendor/@rc-component/tree/es/utils/conductUtil.js +1 -0
  196. package/vendor/@rc-component/tree/es/utils/treeUtil.js +1 -0
  197. package/vendor/@rc-component/tree/package.json +1 -1
  198. package/vendor/@rc-component/tree-select/package.json +1 -1
  199. package/vendor/@rc-component/util/es/index.js +10 -10
  200. package/vendor/antd/es/_util/ActionButton.js +2 -3
  201. package/vendor/antd/es/_util/ContextIsolator.js +1 -1
  202. package/vendor/antd/es/_util/PurePanel.js +7 -4
  203. package/vendor/antd/es/_util/convertToTooltipProps.js +2 -2
  204. package/vendor/antd/es/_util/fallbackProp.js +15 -0
  205. package/vendor/antd/es/_util/gapSize.js +2 -1
  206. package/vendor/antd/es/_util/getRenderPropValue.js +2 -1
  207. package/vendor/antd/es/_util/getScroll.js +4 -4
  208. package/vendor/antd/es/_util/hooks/index.js +2 -2
  209. package/vendor/antd/es/_util/hooks/useAllowClear.js +25 -0
  210. package/vendor/antd/es/_util/hooks/useClosable.js +6 -5
  211. package/vendor/antd/es/_util/hooks/{useMergeSemantic.js → useMergeSemantic/index.js} +14 -24
  212. package/vendor/antd/es/_util/hooks/useMergeSemantic/utils.js +14 -0
  213. package/vendor/antd/es/_util/hooks/useMergedMask.js +2 -1
  214. package/vendor/antd/es/_util/is.js +27 -0
  215. package/vendor/antd/es/_util/motion.js +8 -8
  216. package/vendor/antd/es/_util/normalizeIcon.js +9 -0
  217. package/vendor/antd/es/_util/placements.js +2 -1
  218. package/vendor/antd/es/_util/reactNode.js +2 -1
  219. package/vendor/antd/es/_util/responsiveObserver.js +3 -2
  220. package/vendor/antd/es/_util/scrollTo.js +3 -1
  221. package/vendor/antd/es/_util/styleChecker.js +1 -0
  222. package/vendor/antd/es/_util/throttleByAnimationFrame.js +1 -0
  223. package/vendor/antd/es/_util/toList.js +1 -1
  224. package/vendor/antd/es/_util/wave/WaveEffect.js +3 -1
  225. package/vendor/antd/es/_util/wave/index.js +14 -4
  226. package/vendor/antd/es/_util/wave/util.js +5 -3
  227. package/vendor/antd/es/alert/Alert.js +12 -10
  228. package/vendor/antd/es/alert/ErrorBoundary.js +1 -1
  229. package/vendor/antd/es/alert/style/index.js +16 -10
  230. package/vendor/antd/es/anchor/Anchor.js +23 -16
  231. package/vendor/antd/es/anchor/AnchorLink.js +4 -4
  232. package/vendor/antd/es/app/App.js +7 -3
  233. package/vendor/antd/es/auto-complete/AutoComplete.js +7 -8
  234. package/vendor/antd/es/avatar/Avatar.js +5 -3
  235. package/vendor/antd/es/back-top/index.js +1 -0
  236. package/vendor/antd/es/badge/Badge.js +5 -6
  237. package/vendor/antd/es/badge/Ribbon.js +1 -2
  238. package/vendor/antd/es/badge/style/index.js +4 -3
  239. package/vendor/antd/es/border-beam/BorderBeam.js +42 -0
  240. package/vendor/antd/es/border-beam/BorderBeamEffect.js +24 -0
  241. package/vendor/antd/es/border-beam/hooks/useBorderSize.js +37 -0
  242. package/vendor/antd/es/border-beam/hooks/useChildDom.js +24 -0
  243. package/vendor/antd/es/border-beam/index.js +7 -0
  244. package/vendor/antd/es/border-beam/style/index.js +60 -0
  245. package/vendor/antd/es/border-beam/util.js +26 -0
  246. package/vendor/antd/es/breadcrumb/Breadcrumb.js +1 -2
  247. package/vendor/antd/es/breadcrumb/BreadcrumbItem.js +1 -1
  248. package/vendor/antd/es/breadcrumb/useItemRender.js +3 -2
  249. package/vendor/antd/es/button/Button.js +7 -6
  250. package/vendor/antd/es/button/buttonHelpers.js +4 -8
  251. package/vendor/antd/es/button/index.js +2 -2
  252. package/vendor/antd/es/button/style/index.js +5 -0
  253. package/vendor/antd/es/calendar/generateCalendar.js +20 -8
  254. package/vendor/antd/es/card/Card.js +5 -7
  255. package/vendor/antd/es/card/CardMeta.js +1 -2
  256. package/vendor/antd/es/carousel/index.js +2 -1
  257. package/vendor/antd/es/cascader/Panel.js +1 -1
  258. package/vendor/antd/es/cascader/index.js +23 -16
  259. package/vendor/antd/es/cascader/style/columns.js +6 -2
  260. package/vendor/antd/es/checkbox/Checkbox.js +2 -3
  261. package/vendor/antd/es/checkbox/Group.js +2 -1
  262. package/vendor/antd/es/checkbox/style/index.js +1 -5
  263. package/vendor/antd/es/checkbox/useBubbleLock.js +1 -0
  264. package/vendor/antd/es/collapse/Collapse.js +3 -3
  265. package/vendor/antd/es/collapse/style/index.js +1 -4
  266. package/vendor/antd/es/color-picker/ColorPicker.js +1 -2
  267. package/vendor/antd/es/color-picker/ColorPickerPanel.js +2 -1
  268. package/vendor/antd/es/color-picker/components/ColorTrigger.js +3 -1
  269. package/vendor/antd/es/color-picker/components/PanelPicker/index.js +1 -0
  270. package/vendor/antd/es/config-provider/hooks/useSize.js +3 -2
  271. package/vendor/antd/es/config-provider/hooks/useTheme.js +2 -0
  272. package/vendor/antd/es/config-provider/index.js +11 -3
  273. package/vendor/antd/es/date-picker/generatePicker/generateRangePicker.js +20 -10
  274. package/vendor/antd/es/date-picker/generatePicker/generateSinglePicker.js +17 -8
  275. package/vendor/antd/es/date-picker/generatePicker/useSuffixIcon.js +1 -1
  276. package/vendor/antd/es/date-picker/hooks/useMergedPickerSemantic.js +1 -2
  277. package/vendor/antd/es/date-picker/style/index.js +13 -3
  278. package/vendor/antd/es/date-picker/style/multiple.js +3 -4
  279. package/vendor/antd/es/date-picker/style/panel.js +5 -20
  280. package/vendor/antd/es/date-picker/util.js +14 -13
  281. package/vendor/antd/es/descriptions/Cell.js +2 -3
  282. package/vendor/antd/es/descriptions/hooks/useItems.js +2 -1
  283. package/vendor/antd/es/descriptions/index.js +3 -3
  284. package/vendor/antd/es/divider/index.js +3 -2
  285. package/vendor/antd/es/drawer/Drawer.js +10 -5
  286. package/vendor/antd/es/drawer/DrawerPanel.js +3 -2
  287. package/vendor/antd/es/dropdown/dropdown.js +11 -8
  288. package/vendor/antd/es/dropdown/style/index.js +2 -6
  289. package/vendor/antd/es/empty/index.js +1 -2
  290. package/vendor/antd/es/flex/index.js +2 -2
  291. package/vendor/antd/es/float-button/BackTop.js +1 -0
  292. package/vendor/antd/es/float-button/FloatButton.js +3 -3
  293. package/vendor/antd/es/float-button/FloatButtonGroup.js +2 -2
  294. package/vendor/antd/es/form/ErrorList.js +13 -6
  295. package/vendor/antd/es/form/Form.js +7 -6
  296. package/vendor/antd/es/form/FormItem/ItemHolder.js +1 -1
  297. package/vendor/antd/es/form/FormItem/index.js +6 -6
  298. package/vendor/antd/es/form/FormItemInput.js +5 -3
  299. package/vendor/antd/es/form/FormItemLabel.js +2 -1
  300. package/vendor/antd/es/form/FormList.js +1 -0
  301. package/vendor/antd/es/form/hooks/useChildren.js +4 -3
  302. package/vendor/antd/es/form/hooks/useForm.js +3 -1
  303. package/vendor/antd/es/form/hooks/useFrameState.js +1 -0
  304. package/vendor/antd/es/form/hooks/useItemRef.js +7 -5
  305. package/vendor/antd/es/form/style/index.js +1 -3
  306. package/vendor/antd/es/grid/col.js +5 -7
  307. package/vendor/antd/es/grid/hooks/useBreakpoint.js +1 -0
  308. package/vendor/antd/es/grid/hooks/useGutter.js +2 -1
  309. package/vendor/antd/es/grid/row.js +7 -6
  310. package/vendor/antd/es/image/PreviewGroup.js +1 -2
  311. package/vendor/antd/es/image/Progress.js +58 -0
  312. package/vendor/antd/es/image/hooks/useMergedPreviewConfig.js +3 -1
  313. package/vendor/antd/es/image/hooks/usePlaceholderConfig.js +15 -0
  314. package/vendor/antd/es/image/hooks/usePreviewConfig.js +3 -2
  315. package/vendor/antd/es/image/index.js +36 -5
  316. package/vendor/antd/es/image/style/index.js +114 -4
  317. package/vendor/antd/es/image/style/progressAnimation.js +26 -0
  318. package/vendor/antd/es/index.js +2 -1
  319. package/vendor/antd/es/input/Input.js +9 -4
  320. package/vendor/antd/es/input/OTP/OTPInput.js +1 -0
  321. package/vendor/antd/es/input/OTP/index.js +3 -3
  322. package/vendor/antd/es/input/Password.js +45 -26
  323. package/vendor/antd/es/input/Search.js +6 -5
  324. package/vendor/antd/es/input/TextArea.js +13 -7
  325. package/vendor/antd/es/input/style/index.js +17 -11
  326. package/vendor/antd/es/input/style/otp.js +2 -1
  327. package/vendor/antd/es/input/style/variants.js +16 -10
  328. package/vendor/antd/es/input-number/index.js +3 -3
  329. package/vendor/antd/es/input-number/style/index.js +9 -9
  330. package/vendor/antd/es/layout/Sider.js +3 -2
  331. package/vendor/antd/es/list/index.js +5 -3
  332. package/vendor/antd/es/locale/en_US.js +3 -1
  333. package/vendor/antd/es/locale/ru_RU.js +3 -1
  334. package/vendor/antd/es/locale/useLocale.js +2 -1
  335. package/vendor/antd/es/masonry/Masonry.js +4 -3
  336. package/vendor/antd/es/mentions/index.js +28 -14
  337. package/vendor/antd/es/menu/MenuItem.js +2 -1
  338. package/vendor/antd/es/menu/OverrideContext.js +1 -0
  339. package/vendor/antd/es/menu/SubMenu.js +1 -1
  340. package/vendor/antd/es/menu/menu.js +5 -5
  341. package/vendor/antd/es/menu/style/index.js +21 -36
  342. package/vendor/antd/es/menu/style/vertical.js +2 -1
  343. package/vendor/antd/es/message/PureList.js +49 -0
  344. package/vendor/antd/es/message/PurePanel.js +28 -36
  345. package/vendor/antd/es/message/index.js +6 -3
  346. package/vendor/antd/es/message/style/index.js +102 -99
  347. package/vendor/antd/es/message/useMessage.js +29 -33
  348. package/vendor/antd/es/message/util.js +1 -1
  349. package/vendor/antd/es/modal/ConfirmDialog.js +11 -9
  350. package/vendor/antd/es/modal/Modal.js +12 -7
  351. package/vendor/antd/es/modal/PurePanel.js +1 -2
  352. package/vendor/antd/es/modal/confirm.js +4 -3
  353. package/vendor/antd/es/modal/shared.js +3 -2
  354. package/vendor/antd/es/modal/useModal/HookModal.js +2 -1
  355. package/vendor/antd/es/notification/PureList.js +46 -0
  356. package/vendor/antd/es/notification/PurePanel.js +37 -56
  357. package/vendor/antd/es/notification/hooks/useStackConfig.js +13 -0
  358. package/vendor/antd/es/notification/index.js +3 -1
  359. package/vendor/antd/es/notification/style/index.js +103 -170
  360. package/vendor/antd/es/notification/style/notification.js +191 -0
  361. package/vendor/antd/es/notification/style/placement.js +117 -60
  362. package/vendor/antd/es/notification/useNotification.js +37 -40
  363. package/vendor/antd/es/notification/util.js +9 -50
  364. package/vendor/antd/es/pagination/Pagination.js +1 -2
  365. package/vendor/antd/es/pagination/useShowSizeChanger.js +2 -1
  366. package/vendor/antd/es/popconfirm/PurePanel.js +4 -1
  367. package/vendor/antd/es/popconfirm/index.js +1 -2
  368. package/vendor/antd/es/popover/PurePanel.js +1 -2
  369. package/vendor/antd/es/popover/index.js +1 -2
  370. package/vendor/antd/es/progress/Circle.js +2 -1
  371. package/vendor/antd/es/progress/progress.js +3 -3
  372. package/vendor/antd/es/progress/utils.js +4 -3
  373. package/vendor/antd/es/qr-code/index.js +4 -4
  374. package/vendor/antd/es/radio/group.js +4 -3
  375. package/vendor/antd/es/radio/radio.js +2 -2
  376. package/vendor/antd/es/radio/style/index.js +1 -1
  377. package/vendor/antd/es/rate/index.js +2 -4
  378. package/vendor/antd/es/result/index.js +6 -5
  379. package/vendor/antd/es/result/style/index.js +10 -6
  380. package/vendor/antd/es/segmented/index.js +5 -3
  381. package/vendor/antd/es/select/index.js +23 -12
  382. package/vendor/antd/es/select/style/dropdown.js +1 -1
  383. package/vendor/antd/es/select/style/select-input.js +23 -15
  384. package/vendor/antd/es/select/useIcons.js +43 -26
  385. package/vendor/antd/es/skeleton/Element.js +2 -1
  386. package/vendor/antd/es/skeleton/Skeleton.js +3 -3
  387. package/vendor/antd/es/slider/SliderTooltip.js +1 -0
  388. package/vendor/antd/es/slider/index.js +5 -3
  389. package/vendor/antd/es/slider/useRafLock.js +1 -0
  390. package/vendor/antd/es/space/Compact.js +1 -1
  391. package/vendor/antd/es/space/Item.js +1 -1
  392. package/vendor/antd/es/space/index.js +2 -2
  393. package/vendor/antd/es/space/style/addon.js +5 -2
  394. package/vendor/antd/es/spin/Indicator/Progress.js +2 -1
  395. package/vendor/antd/es/spin/index.js +1 -2
  396. package/vendor/antd/es/splitter/Panel.js +7 -3
  397. package/vendor/antd/es/splitter/SplitBar.js +5 -4
  398. package/vendor/antd/es/splitter/Splitter.js +9 -6
  399. package/vendor/antd/es/splitter/hooks/useItems.js +2 -1
  400. package/vendor/antd/es/splitter/hooks/useSizes.js +1 -1
  401. package/vendor/antd/es/splitter/style/index.js +8 -6
  402. package/vendor/antd/es/statistic/Number.js +8 -4
  403. package/vendor/antd/es/statistic/Statistic.js +14 -10
  404. package/vendor/antd/es/steps/index.js +4 -4
  405. package/vendor/antd/es/style/compact-item-vertical.js +2 -1
  406. package/vendor/antd/es/style/compact-item.js +6 -6
  407. package/vendor/antd/es/switch/index.js +1 -2
  408. package/vendor/antd/es/table/InternalTable.js +23 -14
  409. package/vendor/antd/es/table/hooks/useFilledColumns.js +23 -0
  410. package/vendor/antd/es/table/hooks/useFilter/FilterDropdown.js +22 -16
  411. package/vendor/antd/es/table/hooks/useFilter/FilterWrapper.js +1 -0
  412. package/vendor/antd/es/table/hooks/useFilter/index.js +34 -18
  413. package/vendor/antd/es/table/hooks/useLazyKVMap.js +2 -1
  414. package/vendor/antd/es/table/hooks/usePagination.js +7 -4
  415. package/vendor/antd/es/table/hooks/useSelection.js +32 -21
  416. package/vendor/antd/es/table/hooks/useSorter.js +10 -5
  417. package/vendor/antd/es/table/style/bordered.js +5 -27
  418. package/vendor/antd/es/table/style/empty.js +1 -4
  419. package/vendor/antd/es/table/style/index.js +1 -4
  420. package/vendor/antd/es/table/util.js +6 -6
  421. package/vendor/antd/es/tabs/hooks/useAnimateConfig.js +2 -1
  422. package/vendor/antd/es/tabs/index.js +1 -2
  423. package/vendor/antd/es/tag/CheckableTagGroup.js +8 -5
  424. package/vendor/antd/es/tag/hooks/useColor.js +4 -3
  425. package/vendor/antd/es/tag/index.js +13 -7
  426. package/vendor/antd/es/theme/themes/dark/colors.js +2 -1
  427. package/vendor/antd/es/theme/themes/default/colors.js +2 -1
  428. package/vendor/antd/es/theme/useToken.js +2 -2
  429. package/vendor/antd/es/theme/util/alias.js +34 -29
  430. package/vendor/antd/es/timeline/Timeline.js +3 -4
  431. package/vendor/antd/es/tooltip/PurePanel.js +1 -2
  432. package/vendor/antd/es/tooltip/UniqueProvider/index.js +2 -1
  433. package/vendor/antd/es/tooltip/index.js +9 -7
  434. package/vendor/antd/es/tour/PurePanel.js +2 -2
  435. package/vendor/antd/es/tour/index.js +1 -1
  436. package/vendor/antd/es/tour/panelRender.js +4 -2
  437. package/vendor/antd/es/transfer/ListBody.js +3 -1
  438. package/vendor/antd/es/transfer/ListItem.js +2 -1
  439. package/vendor/antd/es/transfer/Section.js +17 -8
  440. package/vendor/antd/es/transfer/index.js +51 -16
  441. package/vendor/antd/es/transfer/style/index.js +5 -1
  442. package/vendor/antd/es/tree/Tree.js +1 -2
  443. package/vendor/antd/es/tree/style/index.js +5 -1
  444. package/vendor/antd/es/tree/utils/iconUtil.js +5 -4
  445. package/vendor/antd/es/tree-select/index.js +3 -3
  446. package/vendor/antd/es/typography/Base/CopyBtn.js +3 -2
  447. package/vendor/antd/es/typography/Base/Ellipsis.js +3 -3
  448. package/vendor/antd/es/typography/Base/index.js +38 -31
  449. package/vendor/antd/es/typography/Editable.js +10 -4
  450. package/vendor/antd/es/typography/Link.js +1 -0
  451. package/vendor/antd/es/typography/Text.js +2 -1
  452. package/vendor/antd/es/typography/Typography.js +20 -10
  453. package/vendor/antd/es/typography/hooks/useCopyClick.js +2 -1
  454. package/vendor/antd/es/typography/hooks/useMergedConfig.js +13 -7
  455. package/vendor/antd/es/typography/hooks/useTooltipProps.js +2 -1
  456. package/vendor/antd/es/typography/hooks/useTypographySemantic.js +33 -0
  457. package/vendor/antd/es/typography/style/index.js +12 -27
  458. package/vendor/antd/es/typography/style/mixins.js +46 -13
  459. package/vendor/antd/es/upload/Upload.js +13 -7
  460. package/vendor/antd/es/upload/UploadList/ListItem.js +6 -5
  461. package/vendor/antd/es/upload/UploadList/index.js +4 -3
  462. package/vendor/antd/es/upload/utils.js +18 -1
  463. package/vendor/antd/es/version/version.js +1 -1
  464. package/vendor/antd/es/watermark/index.js +6 -4
  465. package/vendor/antd/es/watermark/useSingletonCache.js +1 -0
  466. package/vendor/antd/es/watermark/useWatermark.js +3 -3
  467. package/vendor/antd/package.json +1 -1
  468. package/vendor/useblocks-ui-kit/es/components/DataEntry/Input/index.js +1 -1
  469. package/vendor/useblocks-ui-kit/package.json +1 -1
  470. package/iframe/js/discussHandlers.CCCXIEaO.js +0 -88
  471. package/static/core/1f101241.js +0 -1
  472. package/static/core/1fa93ad8.js +0 -28
  473. package/static/core/2007bc93.js +0 -1
  474. package/static/core/30ab7b1d.js +0 -1
  475. package/static/core/440a91be.js +0 -1
  476. package/static/core/44e96a78.js +0 -1
  477. package/static/core/823aedee.js +0 -1
  478. package/static/core/828583e1.js +0 -2
  479. package/static/core/8cc6e392.js +0 -1
  480. package/static/core/9aefcefb.js +0 -1
  481. package/static/core/a4f90443.js +0 -27
  482. package/static/core/a7ac37cd.js +0 -1
  483. package/static/core/df41de18.js +0 -7
  484. package/static/esm/349f9e2c.js +0 -1
  485. package/static/esm/50fbfdf6.js +0 -1
  486. package/static/media/icon-sets/lucide.json +0 -6275
  487. package/static/media/icon-sets/tabler.json +0 -19336
  488. package/static/umd-runtime/Cl8heeC3.js +0 -1
  489. package/static/umd-runtime/D0xo8o9c.js +0 -335
  490. package/useblocks-core.8098d114.js +0 -859
  491. package/vendor/@rc-component/notification/es/Notice.js +0 -106
  492. package/vendor/@rc-component/notification/es/NoticeList.js +0 -98
  493. package/vendor/@rc-component/textarea/LICENSE.md +0 -9
  494. package/vendor/@rc-component/textarea/es/index.js +0 -6
  495. package/vendor/@rc-component/textarea/package.json +0 -6
  496. package/vendor/antd/es/_util/extendsObject.js +0 -12
  497. package/vendor/antd/es/_util/getAllowClear.js +0 -12
  498. package/vendor/antd/es/_util/isNonNullable.js +0 -6
  499. package/vendor/antd/es/_util/isPrimitive.js +0 -4
  500. package/vendor/antd/es/notification/style/pure-panel.js +0 -18
  501. package/vendor/antd/es/notification/style/stack.js +0 -85
  502. /package/iframe/{iframe-eblock.8098d114.html → iframe-eblock.714faf8a.html} +0 -0
  503. /package/iframe/{iframe.8098d114.html → iframe.714faf8a.html} +0 -0
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { composeRef } from "../../../@rc-component/util/es/ref.js";
3
3
  import pickAttrs from "../../../@rc-component/util/es/pickAttrs.js";
4
+ import "../../../@rc-component/util/es/index.js";
4
5
  import { clsx } from "../../../clsx/dist/clsx.js";
5
6
  import { useComponentConfig } from "../config-provider/context.js";
6
7
  import RefIcon from "../../../@ant-design/icons/es/icons/CheckCircleFilled.js";
@@ -9,10 +10,9 @@ import RefIcon$2 from "../../../@ant-design/icons/es/icons/CloseOutlined.js";
9
10
  import RefIcon$3 from "../../../@ant-design/icons/es/icons/ExclamationCircleFilled.js";
10
11
  import RefIcon$4 from "../../../@ant-design/icons/es/icons/InfoCircleFilled.js";
11
12
  import es_default from "../../../@rc-component/motion/es/index.js";
13
+ import { isNonNullable, isPlainObject } from "../_util/is.js";
14
+ import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
12
15
  import "../_util/warning.js";
13
- import isNonNullable from "../_util/isNonNullable.js";
14
- import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
15
- import "../_util/hooks/index.js";
16
16
  import style_default from "./style/index.js";
17
17
  import * as React$1 from "../../../react/index.js";
18
18
  //#region node_modules/antd/es/alert/Alert.js
@@ -47,10 +47,10 @@ const Alert = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
47
47
  const [closed, setClosed] = React$1.useState(false);
48
48
  const internalRef = React$1.useRef(null);
49
49
  React$1.useImperativeHandle(ref, () => ({ nativeElement: internalRef.current }));
50
- const { getPrefixCls, direction, closable: contextClosable, closeIcon: contextCloseIcon, className: contextClassName, style: contextStyle, classNames: contextClassNames, styles: contextStyles, successIcon, infoIcon, warningIcon, errorIcon } = useComponentConfig("alert");
50
+ const { getPrefixCls, direction, variant: contextVariant, closable: contextClosable, closeIcon: contextCloseIcon, className: contextClassName, style: contextStyle, classNames: contextClassNames, styles: contextStyles, successIcon, infoIcon, warningIcon, errorIcon } = useComponentConfig("alert");
51
51
  const prefixCls = getPrefixCls("alert", customizePrefixCls);
52
52
  const [hashId, cssVarCls] = style_default(prefixCls);
53
- const { onClose: closableOnClose, afterClose: closableAfterClose } = closable && typeof closable === "object" ? closable : {};
53
+ const { onClose: closableOnClose, afterClose: closableAfterClose } = isPlainObject(closable) ? closable : {};
54
54
  const handleClose = (e) => {
55
55
  setClosed(true);
56
56
  (closableOnClose ?? props.onClose)?.(e);
@@ -59,8 +59,9 @@ const Alert = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
59
59
  if (props.type !== void 0) return props.type;
60
60
  return banner ? "warning" : "info";
61
61
  }, [props.type, banner]);
62
+ const mergedVariant = props.variant ?? contextVariant ?? "outlined";
62
63
  const isClosable = React$1.useMemo(() => {
63
- if (typeof closable === "object" && closable.closeIcon) return true;
64
+ if (isPlainObject(closable) && closable.closeIcon) return true;
64
65
  if (closeText) return true;
65
66
  if (typeof closable === "boolean") return closable;
66
67
  if (closeIcon !== false && isNonNullable(closeIcon)) return true;
@@ -75,12 +76,13 @@ const Alert = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
75
76
  const mergedProps = {
76
77
  ...props,
77
78
  prefixCls,
79
+ variant: mergedVariant,
78
80
  type,
79
81
  showIcon: isShowIcon,
80
82
  closable: isClosable
81
83
  };
82
84
  const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], { props: mergedProps });
83
- const alertCls = clsx(prefixCls, `${prefixCls}-${type}`, {
85
+ const alertCls = clsx(prefixCls, `${prefixCls}-${type}`, `${prefixCls}-${mergedVariant}`, {
84
86
  [`${prefixCls}-with-description`]: !!description,
85
87
  [`${prefixCls}-no-icon`]: !isShowIcon,
86
88
  [`${prefixCls}-banner`]: !!banner,
@@ -91,10 +93,10 @@ const Alert = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
91
93
  data: true
92
94
  });
93
95
  const mergedCloseIcon = React$1.useMemo(() => {
94
- if (typeof closable === "object" && closable.closeIcon) return closable.closeIcon;
96
+ if (isPlainObject(closable) && closable.closeIcon) return closable.closeIcon;
95
97
  if (closeText) return closeText;
96
98
  if (closeIcon !== void 0) return closeIcon;
97
- if (typeof contextClosable === "object" && contextClosable.closeIcon) return contextClosable.closeIcon;
99
+ if (isPlainObject(contextClosable) && contextClosable.closeIcon) return contextClosable.closeIcon;
98
100
  return contextCloseIcon;
99
101
  }, [
100
102
  closeIcon,
@@ -105,7 +107,7 @@ const Alert = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
105
107
  ]);
106
108
  const mergedAriaProps = React$1.useMemo(() => {
107
109
  const merged = closable ?? contextClosable;
108
- if (typeof merged === "object") return pickAttrs(merged, {
110
+ if (isPlainObject(merged)) return pickAttrs(merged, {
109
111
  data: true,
110
112
  aria: true
111
113
  });
@@ -2,7 +2,7 @@
2
2
  import _classCallCheck from "../../../@babel/runtime/helpers/esm/classCallCheck.js";
3
3
  import _createClass from "../../../@babel/runtime/helpers/esm/createClass.js";
4
4
  import _inherits from "../../../@babel/runtime/helpers/esm/inherits.js";
5
- import isNonNullable from "../_util/isNonNullable.js";
5
+ import { isNonNullable } from "../_util/is.js";
6
6
  import Alert from "./Alert.js";
7
7
  import _callSuper from "../../../@babel/runtime/helpers/esm/callSuper.js";
8
8
  import * as React$1 from "../../../react/index.js";
@@ -1,16 +1,15 @@
1
1
  import { unit } from "../../../../@ant-design/cssinjs/es/util/index.js";
2
2
  import "../../../../@ant-design/cssinjs/es/index.js";
3
- import { resetComponent } from "../../style/index.js";
3
+ import { genFocusStyle, resetComponent } from "../../style/index.js";
4
4
  import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
5
5
  import "../../theme/internal.js";
6
6
  //#region node_modules/antd/es/alert/style/index.js
7
- const genAlertTypeStyle = (bgColor, borderColor, iconColor, token, alertCls) => ({
7
+ const genAlertTypeStyle = (bgColor, iconColor, alertCls) => ({
8
8
  background: bgColor,
9
- border: `${unit(token.lineWidth)} ${token.lineType} ${borderColor}`,
10
9
  [`${alertCls}-icon`]: { color: iconColor }
11
10
  });
12
11
  const genBaseStyle = (token) => {
13
- const { componentCls, motionDurationSlow: duration, marginXS, marginSM, fontSize, fontSizeLG, lineHeight, borderRadiusLG: borderRadius, motionEaseInOutCirc, withDescriptionIconSize, colorText, colorTextHeading, withDescriptionPadding, defaultPadding } = token;
12
+ const { componentCls, motionDurationSlow: duration, marginXS, marginSM, fontSize, fontSizeLG, lineHeight, borderRadiusLG: borderRadius, motionEaseInOutCirc, withDescriptionIconSize, colorText, colorTextHeading, withDescriptionPadding, defaultPadding, lineWidth, lineType, colorSuccessBorder, colorWarningBorder, colorErrorBorder, colorInfoBorder } = token;
14
13
  return {
15
14
  [componentCls]: {
16
15
  ...resetComponent(token),
@@ -20,6 +19,13 @@ const genBaseStyle = (token) => {
20
19
  padding: defaultPadding,
21
20
  wordWrap: "break-word",
22
21
  borderRadius,
22
+ borderWidth: unit(lineWidth),
23
+ borderStyle: lineType,
24
+ [`&${componentCls}-success`]: { borderColor: colorSuccessBorder },
25
+ [`&${componentCls}-info`]: { borderColor: colorInfoBorder },
26
+ [`&${componentCls}-warning`]: { borderColor: colorWarningBorder },
27
+ [`&${componentCls}-error`]: { borderColor: colorErrorBorder },
28
+ [`&${componentCls}-filled`]: { borderColor: "transparent" },
23
29
  [`&${componentCls}-rtl`]: { direction: "rtl" },
24
30
  [`${componentCls}-section`]: {
25
31
  flex: 1,
@@ -81,13 +87,13 @@ const genBaseStyle = (token) => {
81
87
  };
82
88
  };
83
89
  const genTypeStyle = (token) => {
84
- const { componentCls, colorSuccess, colorSuccessBorder, colorSuccessBg, colorWarning, colorWarningBorder, colorWarningBg, colorError, colorErrorBorder, colorErrorBg, colorInfo, colorInfoBorder, colorInfoBg } = token;
90
+ const { componentCls, colorSuccess, colorSuccessBg, colorWarning, colorWarningBg, colorError, colorErrorBg, colorInfo, colorInfoBg } = token;
85
91
  return { [componentCls]: {
86
- "&-success": genAlertTypeStyle(colorSuccessBg, colorSuccessBorder, colorSuccess, token, componentCls),
87
- "&-info": genAlertTypeStyle(colorInfoBg, colorInfoBorder, colorInfo, token, componentCls),
88
- "&-warning": genAlertTypeStyle(colorWarningBg, colorWarningBorder, colorWarning, token, componentCls),
92
+ "&-success": genAlertTypeStyle(colorSuccessBg, colorSuccess, componentCls),
93
+ "&-info": genAlertTypeStyle(colorInfoBg, colorInfo, componentCls),
94
+ "&-warning": genAlertTypeStyle(colorWarningBg, colorWarning, componentCls),
89
95
  "&-error": {
90
- ...genAlertTypeStyle(colorErrorBg, colorErrorBorder, colorError, token, componentCls),
96
+ ...genAlertTypeStyle(colorErrorBg, colorError, componentCls),
91
97
  [`${componentCls}-description > pre`]: {
92
98
  margin: 0,
93
99
  padding: 0
@@ -107,8 +113,8 @@ const genActionStyle = (token) => {
107
113
  lineHeight: unit(fontSizeIcon),
108
114
  backgroundColor: "transparent",
109
115
  border: "none",
110
- outline: "none",
111
116
  cursor: "pointer",
117
+ ...genFocusStyle(token),
112
118
  [`${iconCls}-close`]: {
113
119
  color: colorIcon,
114
120
  transition: `color ${motionDurationMid}`,
@@ -5,9 +5,9 @@ import { clsx } from "../../../clsx/dist/clsx.js";
5
5
  import _toConsumableArray from "../../../@babel/runtime/helpers/esm/toConsumableArray.js";
6
6
  import { ConfigContext, useComponentConfig } from "../config-provider/context.js";
7
7
  import Affix from "../affix/index.js";
8
+ import { isFunction, isNumber, isPlainObject } from "../_util/is.js";
9
+ import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
8
10
  import "../_util/warning.js";
9
- import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
10
- import "../_util/hooks/index.js";
11
11
  import e from "../../../scroll-into-view-if-needed/dist/index.js";
12
12
  import getScroll from "../_util/getScroll.js";
13
13
  import scrollTo from "../_util/scrollTo.js";
@@ -39,6 +39,7 @@ const Anchor = (props) => {
39
39
  const spanLinkNodeRef = React$1.useRef(null);
40
40
  const animatingRef = React$1.useRef(false);
41
41
  const scrollRequestIdRef = React$1.useRef(null);
42
+ const linkTargetOffsetRef = React$1.useRef({});
42
43
  const { direction, getPrefixCls, className: contextClassName, style: contextStyle, classNames: contextClassNames, styles: contextStyles } = useComponentConfig("anchor");
43
44
  const { getTargetContainer } = React$1.useContext(ConfigContext);
44
45
  const prefixCls = getPrefixCls("anchor", customPrefixCls);
@@ -46,12 +47,17 @@ const Anchor = (props) => {
46
47
  const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
47
48
  const getCurrentContainer = getContainer ?? getTargetContainer ?? getDefaultContainer;
48
49
  const dependencyListItem = JSON.stringify(links);
49
- const registerLink = useEvent((link) => {
50
- if (!links.includes(link)) setLinks((prev) => [].concat(_toConsumableArray(prev), [link]));
51
- });
52
- const unregisterLink = useEvent((link) => {
53
- if (links.includes(link)) setLinks((prev) => prev.filter((i) => i !== link));
54
- });
50
+ const registerLink = (link, newTargetOffset) => {
51
+ setLinks((prev) => {
52
+ if (!prev.includes(link)) return [].concat(_toConsumableArray(prev), [link]);
53
+ return prev;
54
+ });
55
+ if (newTargetOffset !== void 0) linkTargetOffsetRef.current[link] = newTargetOffset;
56
+ };
57
+ const unregisterLink = (link) => {
58
+ setLinks((prev) => prev.filter((i) => i !== link));
59
+ delete linkTargetOffsetRef.current[link];
60
+ };
55
61
  const updateInk = () => {
56
62
  const linkNode = wrapperRef.current?.querySelector(`.${prefixCls}-link-title-active`);
57
63
  if (linkNode && spanLinkNodeRef.current) {
@@ -67,7 +73,7 @@ const Anchor = (props) => {
67
73
  });
68
74
  }
69
75
  };
70
- const getInternalCurrentAnchor = (_links, _offsetTop = 0, _bounds = 5) => {
76
+ const getInternalCurrentAnchor = (_links, _offsetTop, _bounds = 5, _linkTargetOffset) => {
71
77
  const linkSections = [];
72
78
  const container = getCurrentContainer();
73
79
  _links.forEach((link) => {
@@ -75,8 +81,9 @@ const Anchor = (props) => {
75
81
  if (!sharpLinkMatch) return;
76
82
  const target = document.getElementById(sharpLinkMatch[1]);
77
83
  if (target) {
84
+ const linkOffsetTop = _linkTargetOffset?.[link] ?? _offsetTop;
78
85
  const top = getOffsetTop(target, container);
79
- if (top <= _offsetTop + _bounds) linkSections.push({
86
+ if (top <= linkOffsetTop + _bounds) linkSections.push({
80
87
  link,
81
88
  top
82
89
  });
@@ -87,14 +94,14 @@ const Anchor = (props) => {
87
94
  };
88
95
  const setCurrentActiveLink = useEvent((link) => {
89
96
  if (activeLinkRef.current === link) return;
90
- const newLink = typeof getCurrentAnchor === "function" ? getCurrentAnchor(link) : link;
97
+ const newLink = isFunction(getCurrentAnchor) ? getCurrentAnchor(link) : link;
91
98
  setActiveLink(newLink);
92
99
  activeLinkRef.current = newLink;
93
100
  onChange?.(link);
94
101
  });
95
102
  const handleScroll = React$1.useCallback(() => {
96
103
  if (animatingRef.current) return;
97
- const currentActiveLink = getInternalCurrentAnchor(links, targetOffset !== void 0 ? targetOffset : offsetTop || 0, bounds);
104
+ const currentActiveLink = getInternalCurrentAnchor(links, isNumber(targetOffset) ? targetOffset : offsetTop || 0, bounds, linkTargetOffsetRef.current);
98
105
  setCurrentActiveLink(currentActiveLink);
99
106
  }, [
100
107
  links,
@@ -102,7 +109,7 @@ const Anchor = (props) => {
102
109
  offsetTop,
103
110
  bounds
104
111
  ]);
105
- const handleScrollTo = React$1.useCallback((link) => {
112
+ const handleScrollTo = React$1.useCallback((link, targetOffsetParams) => {
106
113
  const previousActiveLink = activeLinkRef.current;
107
114
  setCurrentActiveLink(link);
108
115
  const sharpLinkMatch = sharpMatcherRegex.exec(link);
@@ -115,7 +122,7 @@ const Anchor = (props) => {
115
122
  }
116
123
  const container = getCurrentContainer();
117
124
  let y = getScroll(container) + getOffsetTop(targetElement, container);
118
- y -= targetOffset !== void 0 ? targetOffset : offsetTop || 0;
125
+ y -= targetOffsetParams ?? targetOffset ?? offsetTop ?? 0;
119
126
  animatingRef.current = true;
120
127
  scrollRequestIdRef.current = scrollTo(y, {
121
128
  getContainer: getCurrentContainer,
@@ -164,7 +171,7 @@ const Anchor = (props) => {
164
171
  };
165
172
  }, [dependencyListItem]);
166
173
  React$1.useEffect(() => {
167
- if (typeof getCurrentAnchor === "function") setCurrentActiveLink(getCurrentAnchor(activeLinkRef.current || ""));
174
+ if (isFunction(getCurrentAnchor)) setCurrentActiveLink(getCurrentAnchor(activeLinkRef.current || ""));
168
175
  }, [getCurrentAnchor]);
169
176
  React$1.useEffect(() => {
170
177
  updateInk();
@@ -191,7 +198,7 @@ const Anchor = (props) => {
191
198
  mergedStyles,
192
199
  mergedClassNames
193
200
  ]);
194
- const affixProps = affix && typeof affix === "object" ? affix : void 0;
201
+ const affixProps = isPlainObject(affix) ? affix : void 0;
195
202
  return /*#__PURE__*/ React$1.createElement(AnchorContext.Provider, { value: memoizedContextValue }, affix ? /*#__PURE__*/ React$1.createElement(Affix, {
196
203
  offsetTop,
197
204
  target: getCurrentContainer,
@@ -7,20 +7,20 @@ import AnchorContext from "./context.js";
7
7
  import * as React$1 from "../../../react/index.js";
8
8
  //#region node_modules/antd/es/anchor/AnchorLink.js
9
9
  const AnchorLink = (props) => {
10
- const { href, title, prefixCls: customizePrefixCls, children, className, target, replace } = props;
10
+ const { href, title, prefixCls: customizePrefixCls, children, className, target, replace, targetOffset } = props;
11
11
  const { registerLink, unregisterLink, scrollTo, onClick, activeLink, direction, classNames: mergedClassNames, styles: mergedStyles } = React$1.useContext(AnchorContext) || {};
12
12
  React$1.useEffect(() => {
13
- registerLink?.(href);
13
+ registerLink?.(href, targetOffset);
14
14
  return () => {
15
15
  unregisterLink?.(href);
16
16
  };
17
- }, [href]);
17
+ }, [href, targetOffset]);
18
18
  const handleClick = (e) => {
19
19
  onClick?.(e, {
20
20
  title,
21
21
  href
22
22
  });
23
- scrollTo?.(href);
23
+ scrollTo?.(href, targetOffset);
24
24
  if (e.defaultPrevented) return;
25
25
  if (href.startsWith("http://") || href.startsWith("https://")) {
26
26
  if (replace) {
@@ -9,7 +9,7 @@ import AppContext, { AppConfigContext } from "./context.js";
9
9
  import style_default from "./style/index.js";
10
10
  import React, { useContext } from "../../../react/index.js";
11
11
  //#region node_modules/antd/es/app/App.js
12
- const App = (props) => {
12
+ const App = /*#__PURE__*/ React.forwardRef((props, ref) => {
13
13
  const { prefixCls: customizePrefixCls, children, className, rootClassName, message, notification, style, component = "div" } = props;
14
14
  const { direction, getPrefixCls, className: contextClassName, style: contextStyle } = useComponentConfig("app");
15
15
  const prefixCls = getPrefixCls("app", customizePrefixCls);
@@ -44,6 +44,7 @@ const App = (props) => {
44
44
  ModalApi
45
45
  ]);
46
46
  devUseWarning("App")(!(cssVarCls && component === false), "usage", "When using cssVar, ensure `component` is assigned a valid React component string.");
47
+ devUseWarning("App")(!ref || component !== false, "usage", "`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");
47
48
  const Component = component === false ? React.Fragment : component;
48
49
  const rootProps = {
49
50
  className: clsx(contextClassName, customClassName),
@@ -52,7 +53,10 @@ const App = (props) => {
52
53
  ...style
53
54
  }
54
55
  };
55
- return /*#__PURE__*/ React.createElement(AppContext.Provider, { value: memoizedContextValue }, /*#__PURE__*/ React.createElement(AppConfigContext.Provider, { value: mergedAppConfig }, /*#__PURE__*/ React.createElement(Component, { ...component === false ? void 0 : rootProps }, ModalContextHolder, messageContextHolder, notificationContextHolder, children)));
56
- };
56
+ return /*#__PURE__*/ React.createElement(AppContext.Provider, { value: memoizedContextValue }, /*#__PURE__*/ React.createElement(AppConfigContext.Provider, { value: mergedAppConfig }, /*#__PURE__*/ React.createElement(Component, { ...component === false ? void 0 : {
57
+ ...rootProps,
58
+ ref
59
+ } }, ModalContextHolder, messageContextHolder, notificationContextHolder, children)));
60
+ });
57
61
  //#endregion
58
62
  export { App as default };
@@ -4,9 +4,8 @@ import omit from "../../../@rc-component/util/es/omit.js";
4
4
  import "../../../@rc-component/util/es/index.js";
5
5
  import { clsx } from "../../../clsx/dist/clsx.js";
6
6
  import { ConfigContext } from "../config-provider/context.js";
7
+ import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
7
8
  import "../_util/warning.js";
8
- import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
9
- import "../_util/hooks/index.js";
10
9
  import "../config-provider/index.js";
11
10
  import Select from "../select/index.js";
12
11
  import * as React$1 from "../../../react/index.js";
@@ -59,9 +58,9 @@ const AutoComplete = (props, ref) => {
59
58
  placeholder: mergedClassNames.placeholder,
60
59
  content: mergedClassNames.content,
61
60
  popup: {
62
- root: clsx(popupClassName, dropdownClassName, mergedClassNames.popup?.root),
63
- list: mergedClassNames.popup?.list,
64
- listItem: mergedClassNames.popup?.listItem
61
+ root: clsx(popupClassName, dropdownClassName, mergedClassNames.popup.root),
62
+ list: mergedClassNames.popup.list,
63
+ listItem: mergedClassNames.popup.listItem
65
64
  }
66
65
  }), [
67
66
  prefixCls,
@@ -83,10 +82,10 @@ const AutoComplete = (props, ref) => {
83
82
  popup: {
84
83
  root: {
85
84
  ...dropdownStyle,
86
- ...mergedStyles.popup?.root
85
+ ...mergedStyles.popup.root
87
86
  },
88
- list: mergedStyles.popup?.list,
89
- listItem: mergedStyles.popup?.listItem
87
+ list: mergedStyles.popup.list,
88
+ listItem: mergedStyles.popup.listItem
90
89
  }
91
90
  }), [
92
91
  mergedStyles,
@@ -1,8 +1,10 @@
1
1
  "use client";
2
2
  import { composeRef } from "../../../@rc-component/util/es/ref.js";
3
+ import "../../../@rc-component/util/es/index.js";
3
4
  import RefResizeObserver from "../../../@rc-component/resize-observer/es/index.js";
4
5
  import { clsx } from "../../../clsx/dist/clsx.js";
5
6
  import { useComponentConfig } from "../config-provider/context.js";
7
+ import { isNumber, isPlainObject } from "../_util/is.js";
6
8
  import "../_util/warning.js";
7
9
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
8
10
  import useSize from "../config-provider/hooks/useSize.js";
@@ -42,10 +44,10 @@ const Avatar = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
42
44
  if (onError?.() !== false) setIsImgExist(false);
43
45
  };
44
46
  const size = useSize((ctxSize) => customSize ?? avatarCtx?.size ?? ctxSize ?? "medium");
45
- const needResponsive = Object.keys(typeof size === "object" ? size || {} : {}).some((key) => responsiveArray.includes(key));
47
+ const needResponsive = Object.keys(isPlainObject(size) ? size || {} : {}).some((key) => responsiveArray.includes(key));
46
48
  const screens = useBreakpoint(needResponsive);
47
49
  const responsiveSizeStyle = React$1.useMemo(() => {
48
- if (typeof size !== "object") return {};
50
+ if (!isPlainObject(size)) return {};
49
51
  const currentBreakpoint = responsiveArray.find((screen) => screens[screen]);
50
52
  const currentSize = size[currentBreakpoint];
51
53
  return currentSize ? {
@@ -72,7 +74,7 @@ const Avatar = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
72
74
  [`${prefixCls}-image`]: hasImageElement || src && isImgExist,
73
75
  [`${prefixCls}-icon`]: !!icon
74
76
  }, cssVarCls, rootCls, className, rootClassName, hashId);
75
- const sizeStyle = typeof size === "number" ? {
77
+ const sizeStyle = isNumber(size) ? {
76
78
  width: size,
77
79
  height: size,
78
80
  fontSize: icon ? size / 2 : 18
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import omit from "../../../@rc-component/util/es/omit.js";
3
+ import "../../../@rc-component/util/es/index.js";
3
4
  import { clsx } from "../../../clsx/dist/clsx.js";
4
5
  import throttleByAnimationFrame from "../_util/throttleByAnimationFrame.js";
5
6
  import { ConfigContext } from "../config-provider/context.js";
@@ -2,10 +2,9 @@
2
2
  import { clsx } from "../../../clsx/dist/clsx.js";
3
3
  import { useComponentConfig } from "../config-provider/context.js";
4
4
  import es_default from "../../../@rc-component/motion/es/index.js";
5
+ import { isNonNullable, isNumber, isPlainObject } from "../_util/is.js";
6
+ import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
5
7
  import "../_util/warning.js";
6
- import isNonNullable from "../_util/isNonNullable.js";
7
- import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
8
- import "../_util/hooks/index.js";
9
8
  import { cloneElement as cloneElement$1 } from "../_util/reactNode.js";
10
9
  import { isPresetColor } from "../_util/colors.js";
11
10
  import ScrollNumber from "./ScrollNumber.js";
@@ -67,13 +66,13 @@ const Badge = /*#__PURE__*/ React$1.forwardRef((props, ref) => {
67
66
  style,
68
67
  contextStyle
69
68
  ]);
70
- const titleNode = title ?? (typeof livingCount === "string" || typeof livingCount === "number" ? livingCount : void 0);
69
+ const titleNode = title ?? (typeof livingCount === "string" || isNumber(livingCount) ? livingCount : void 0);
71
70
  const showStatusTextNode = !isHidden && (text === 0 ? showZero : !!text && text !== true);
72
71
  const statusTextNode = !showStatusTextNode ? null : /*#__PURE__*/ React$1.createElement("span", { className: `${prefixCls}-status-text` }, text);
73
- const displayNode = !livingCount || typeof livingCount !== "object" ? void 0 : cloneElement$1(livingCount, (oriProps) => ({ style: {
72
+ const displayNode = isPlainObject(livingCount) ? cloneElement$1(livingCount, (oriProps) => ({ style: {
74
73
  ...mergedStyle,
75
74
  ...oriProps.style
76
- } }));
75
+ } })) : void 0;
77
76
  const isInternalColor = isPresetColor(color, false);
78
77
  const statusCls = clsx(mergedClassNames.indicator, {
79
78
  [`${prefixCls}-status-dot`]: hasStatus,
@@ -1,8 +1,7 @@
1
1
  "use client";
2
2
  import { clsx } from "../../../clsx/dist/clsx.js";
3
3
  import { useComponentConfig } from "../config-provider/context.js";
4
- import { useMergeSemantic } from "../_util/hooks/useMergeSemantic.js";
5
- import "../_util/hooks/index.js";
4
+ import { useMergeSemantic } from "../_util/hooks/useMergeSemantic/index.js";
6
5
  import { isPresetColor } from "../_util/colors.js";
7
6
  import ribbon_default from "./style/ribbon.js";
8
7
  import * as React$1 from "../../../react/index.js";
@@ -94,7 +94,7 @@ const genSharedBadgeStyle = (token) => {
94
94
  borderRadius: calc(indicatorHeightSM).div(2).equal()
95
95
  },
96
96
  [`${componentCls}-multiple-words`]: {
97
- padding: `0 ${unit(token.paddingXS)}`,
97
+ paddingInline: token.paddingInline,
98
98
  bdi: { unicodeBidi: "plaintext" }
99
99
  },
100
100
  [`${componentCls}-dot`]: {
@@ -242,7 +242,7 @@ const prepareToken = (token) => {
242
242
  });
243
243
  };
244
244
  const prepareComponentToken = (token) => {
245
- const { fontSize, lineHeight, fontSizeSM, lineWidth } = token;
245
+ const { fontSize, lineHeight, fontSizeSM, lineWidth, paddingXS } = token;
246
246
  return {
247
247
  indicatorZIndex: "auto",
248
248
  indicatorHeight: Math.round(fontSize * lineHeight) - 2 * lineWidth,
@@ -251,7 +251,8 @@ const prepareComponentToken = (token) => {
251
251
  textFontSize: fontSizeSM,
252
252
  textFontSizeSM: fontSizeSM,
253
253
  textFontWeight: "normal",
254
- statusSize: fontSizeSM / 2
254
+ statusSize: fontSizeSM / 2,
255
+ paddingInline: paddingXS
255
256
  };
256
257
  };
257
258
  var style_default = genStyleHooks("Badge", (token) => {
@@ -0,0 +1,42 @@
1
+ "use client";
2
+ import { clsx } from "../../../clsx/dist/clsx.js";
3
+ import { useComponentConfig } from "../config-provider/context.js";
4
+ import { genCssVar } from "../theme/util/genStyleUtils.js";
5
+ import { isNonNullable, isString } from "../_util/is.js";
6
+ import BorderBeamEffect from "./BorderBeamEffect.js";
7
+ import useBorderSize from "./hooks/useBorderSize.js";
8
+ import useChildDom from "./hooks/useChildDom.js";
9
+ import { getBorderBeamGradient } from "./util.js";
10
+ import style_default from "./style/index.js";
11
+ import React, { useMemo } from "../../../react/index.js";
12
+ //#region node_modules/antd/es/border-beam/BorderBeam.js
13
+ const getInset = (width) => {
14
+ return isString(width) ? `calc(-1 * ${width})` : `-${width}px`;
15
+ };
16
+ const BorderBeam = (props) => {
17
+ const { prefixCls: customizePrefixCls, className, style, children, color, outset } = props;
18
+ const { className: contextClassName, style: contextStyle, getPrefixCls } = useComponentConfig("borderBeam");
19
+ const prefixCls = getPrefixCls("border-beam", customizePrefixCls);
20
+ const [hashId, cssVarCls] = style_default(prefixCls);
21
+ const [varName] = genCssVar(getPrefixCls(), "border-beam");
22
+ const [childNode, childDomNode] = useChildDom(children);
23
+ const { borderWidth, borderRadius } = useBorderSize(childDomNode);
24
+ const beamGradient = useMemo(() => getBorderBeamGradient(color), [color]);
25
+ const insetOffset = useMemo(() => {
26
+ return isNonNullable(outset) ? getInset(outset) : borderWidth.map(getInset).join(" ");
27
+ }, [borderWidth, outset]);
28
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, childNode, /*#__PURE__*/ React.createElement(BorderBeamEffect, {
29
+ prefixCls,
30
+ hostDom: childDomNode,
31
+ className: clsx(contextClassName, className, hashId, cssVarCls),
32
+ style: {
33
+ ...contextStyle,
34
+ ...style,
35
+ ...beamGradient && { [varName("beam-gradient")]: beamGradient },
36
+ [varName("inset-offset")]: insetOffset,
37
+ [varName("border-radius")]: borderRadius
38
+ }
39
+ }));
40
+ };
41
+ //#endregion
42
+ export { BorderBeam as default };
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import { clsx } from "../../../clsx/dist/clsx.js";
3
+ import React from "../../../react/index.js";
4
+ import { createPortal } from "../../../react-dom/index.js";
5
+ //#region node_modules/antd/es/border-beam/BorderBeamEffect.js
6
+ const supportPortalHost = (hostDom) => typeof HTMLElement !== "undefined" && hostDom instanceof HTMLElement;
7
+ const BorderBeamEffectElement = (props) => {
8
+ const { prefixCls, className, ...rest } = props;
9
+ return /*#__PURE__*/ React.createElement("div", {
10
+ "aria-hidden": "true",
11
+ className: clsx(prefixCls, className),
12
+ ...rest
13
+ });
14
+ };
15
+ const BorderBeamEffect = (props) => {
16
+ const { prefixCls, hostDom, ...rest } = props;
17
+ if (!hostDom || !supportPortalHost(hostDom)) return null;
18
+ return /*#__PURE__*/ createPortal(/*#__PURE__*/ React.createElement(BorderBeamEffectElement, {
19
+ prefixCls,
20
+ ...rest
21
+ }), hostDom);
22
+ };
23
+ //#endregion
24
+ export { BorderBeamEffect as default };
@@ -0,0 +1,37 @@
1
+ import React from "../../../../react/index.js";
2
+ //#region node_modules/antd/es/border-beam/hooks/useBorderSize.js
3
+ const DEFAULT_BORDER_INFO = {
4
+ borderWidth: [
5
+ 0,
6
+ 0,
7
+ 0,
8
+ 0
9
+ ],
10
+ borderRadius: "0px"
11
+ };
12
+ const parseBorderWidth = (value) => {
13
+ const size = Number.parseFloat(value);
14
+ return Number.isFinite(size) ? size : 0;
15
+ };
16
+ const useBorderSize = (domNode) => {
17
+ const [borderInfo, setBorderInfo] = React.useState(DEFAULT_BORDER_INFO);
18
+ React.useEffect(() => {
19
+ if (!domNode) {
20
+ setBorderInfo(DEFAULT_BORDER_INFO);
21
+ return;
22
+ }
23
+ const { borderTopWidth, borderRightWidth, borderBottomWidth, borderLeftWidth, borderRadius } = getComputedStyle(domNode);
24
+ setBorderInfo({
25
+ borderWidth: [
26
+ parseBorderWidth(borderTopWidth),
27
+ parseBorderWidth(borderRightWidth),
28
+ parseBorderWidth(borderBottomWidth),
29
+ parseBorderWidth(borderLeftWidth)
30
+ ],
31
+ borderRadius
32
+ });
33
+ }, [domNode]);
34
+ return borderInfo;
35
+ };
36
+ //#endregion
37
+ export { useBorderSize as default };
@@ -0,0 +1,24 @@
1
+ import { getDOM } from "../../../../@rc-component/util/es/Dom/findDOMNode.js";
2
+ import { getNodeRef, supportRef, useComposeRef } from "../../../../@rc-component/util/es/ref.js";
3
+ import "../../../../@rc-component/util/es/index.js";
4
+ import { cloneElement as cloneElement$1 } from "../../_util/reactNode.js";
5
+ import React from "../../../../react/index.js";
6
+ //#region node_modules/antd/es/border-beam/hooks/useChildDom.js
7
+ /**
8
+ * Merge the child ref with an internal ref and expose the resolved DOM node.
9
+ *
10
+ * @returns A tuple containing the renderable child node and the DOM node resolved from its ref.
11
+ */
12
+ const useChildDom = (children) => {
13
+ const [domNode, setDomNode] = React.useState(null);
14
+ const childNode = /*#__PURE__*/ React.isValidElement(children) ? children : null;
15
+ const internalRef = React.useCallback((node) => {
16
+ const nextDom = getDOM(node);
17
+ setDomNode((prevDom) => prevDom === nextDom ? prevDom : nextDom);
18
+ }, []);
19
+ const mergedRef = useComposeRef(childNode ? getNodeRef(childNode) : null, internalRef);
20
+ if (!childNode || !supportRef(childNode)) return [children, domNode];
21
+ return [cloneElement$1(childNode, { ref: mergedRef }), domNode];
22
+ };
23
+ //#endregion
24
+ export { useChildDom as default };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import BorderBeam from "./BorderBeam.js";
3
+ //#region node_modules/antd/es/border-beam/index.js
4
+ /* istanbul ignore file -- barrel export only */
5
+ var border_beam_default = BorderBeam;
6
+ //#endregion
7
+ export { border_beam_default as default };