antdv-next 1.2.2 → 1.3.0

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 (490) hide show
  1. package/dist/_util/ActionButton.d.ts +2 -2
  2. package/dist/_util/ContextIsolator.d.ts +3 -3
  3. package/dist/_util/PurePanel.d.ts +3 -3
  4. package/dist/_util/hooks/useClosable.d.ts +7 -7
  5. package/dist/_util/hooks/useMergeSemantic.d.ts +4 -4
  6. package/dist/_util/hooks/useMergedMask.d.ts +3 -3
  7. package/dist/_util/instance.d.ts +2 -2
  8. package/dist/_util/responsiveObserver.d.ts +2 -2
  9. package/dist/_util/statusUtils.d.ts +1 -1
  10. package/dist/_util/vueNode.d.ts +4 -9
  11. package/dist/_util/wave/WaveEffect.d.ts +5 -5
  12. package/dist/_util/wave/index.d.ts +2 -2
  13. package/dist/_util/wave/style.d.ts +2 -2
  14. package/dist/_util/wave/util.d.ts +1 -1
  15. package/dist/_util/wave/util.js +1 -1
  16. package/dist/_util/zindexContext.d.ts +2 -2
  17. package/dist/affix/index.d.ts +3 -3
  18. package/dist/affix/style/index.d.ts +2 -2
  19. package/dist/alert/Alert.d.ts +17 -10
  20. package/dist/alert/Alert.js +9 -3
  21. package/dist/alert/style/index.d.ts +3 -3
  22. package/dist/anchor/Anchor.d.ts +3 -3
  23. package/dist/anchor/Anchor.js +2 -2
  24. package/dist/anchor/AnchorLink.d.ts +9 -4
  25. package/dist/anchor/AnchorLink.js +5 -1
  26. package/dist/anchor/style/index.d.ts +2 -2
  27. package/dist/antd-with-locales.esm.js +14614 -14290
  28. package/dist/antd-with-locales.js +73 -80
  29. package/dist/antd.css +1 -1
  30. package/dist/antd.esm.js +10754 -10431
  31. package/dist/antd.js +70 -77
  32. package/dist/app/App.d.ts +2 -2
  33. package/dist/app/App.js +6 -1
  34. package/dist/app/context.d.ts +2 -2
  35. package/dist/app/style/index.d.ts +2 -2
  36. package/dist/auto-complete/index.d.ts +6 -6
  37. package/dist/auto-complete/index.js +1 -1
  38. package/dist/avatar/Avatar.d.ts +5 -5
  39. package/dist/avatar/AvatarGroup.d.ts +2 -2
  40. package/dist/avatar/style/index.d.ts +3 -3
  41. package/dist/badge/Ribbon.d.ts +4 -4
  42. package/dist/badge/ScrollNumber.d.ts +2 -2
  43. package/dist/badge/SingleNumber.d.ts +2 -2
  44. package/dist/badge/index.d.ts +6 -6
  45. package/dist/badge/style/index.d.ts +7 -2
  46. package/dist/badge/style/index.js +4 -3
  47. package/dist/badge/style/ribbon.d.ts +2 -2
  48. package/dist/border-beam/BorderBeam.d.ts +19 -0
  49. package/dist/border-beam/BorderBeam.js +82 -0
  50. package/dist/border-beam/hooks/useBorderSize.d.ts +12 -0
  51. package/dist/border-beam/hooks/useBorderSize.js +42 -0
  52. package/dist/border-beam/index.d.ts +3 -0
  53. package/dist/border-beam/index.js +7 -0
  54. package/dist/border-beam/style/index.d.ts +7 -0
  55. package/dist/border-beam/style/index.js +59 -0
  56. package/dist/border-beam/util.d.ts +11 -0
  57. package/dist/border-beam/util.js +35 -0
  58. package/dist/breadcrumb/Breadcrumb.d.ts +7 -7
  59. package/dist/breadcrumb/BreadcrumbItem.d.ts +7 -7
  60. package/dist/breadcrumb/BreadcrumbSeparator.d.ts +2 -2
  61. package/dist/breadcrumb/style/index.d.ts +2 -2
  62. package/dist/breadcrumb/useItemRender.d.ts +2 -2
  63. package/dist/button/Button.d.ts +4 -4
  64. package/dist/button/Button.js +1 -0
  65. package/dist/button/DefaultLoadingIcon.d.ts +2 -2
  66. package/dist/button/IconWrapper.d.ts +2 -2
  67. package/dist/button/buttonHelper.d.ts +1 -1
  68. package/dist/button/style/compact.d.ts +4 -4
  69. package/dist/button/style/index.d.ts +2 -2
  70. package/dist/button/style/index.js +5 -0
  71. package/dist/calendar/Header.d.ts +2 -2
  72. package/dist/calendar/generateCalendar.d.ts +12 -10
  73. package/dist/calendar/generateCalendar.js +8 -2
  74. package/dist/calendar/index.d.ts +2 -2
  75. package/dist/calendar/style/index.d.ts +2 -2
  76. package/dist/card/Card.d.ts +11 -11
  77. package/dist/card/CardGrid.d.ts +2 -2
  78. package/dist/card/CardMeta.d.ts +6 -6
  79. package/dist/card/style/index.d.ts +2 -2
  80. package/dist/carousel/index.d.ts +5 -5
  81. package/dist/carousel/style/index.d.ts +2 -2
  82. package/dist/cascader/Panel.d.ts +2 -2
  83. package/dist/cascader/hooks/useBase.d.ts +5 -5
  84. package/dist/cascader/hooks/useCheckable.d.ts +2 -2
  85. package/dist/cascader/index.d.ts +4 -4
  86. package/dist/cascader/index.js +11 -2
  87. package/dist/cascader/style/index.d.ts +2 -2
  88. package/dist/cascader/style/panel.d.ts +2 -2
  89. package/dist/checkbox/Checkbox.d.ts +2 -2
  90. package/dist/checkbox/Group.d.ts +4 -4
  91. package/dist/checkbox/style/index.d.ts +4 -4
  92. package/dist/collapse/Collapse.d.ts +5 -5
  93. package/dist/collapse/CollapsePanel.d.ts +5 -5
  94. package/dist/collapse/style/index.d.ts +2 -2
  95. package/dist/color-picker/ColorPicker.d.ts +2 -2
  96. package/dist/color-picker/ColorPickerPanel.d.ts +2 -2
  97. package/dist/color-picker/components/ColorAlphaInput.d.ts +2 -2
  98. package/dist/color-picker/components/ColorClear.d.ts +2 -2
  99. package/dist/color-picker/components/ColorHexInput.d.ts +2 -2
  100. package/dist/color-picker/components/ColorHsbInput.d.ts +2 -2
  101. package/dist/color-picker/components/ColorInput.d.ts +2 -2
  102. package/dist/color-picker/components/ColorPresets.d.ts +2 -2
  103. package/dist/color-picker/components/ColorRgbInput.d.ts +2 -2
  104. package/dist/color-picker/components/ColorSlider.d.ts +3 -3
  105. package/dist/color-picker/components/ColorSteppers.d.ts +2 -2
  106. package/dist/color-picker/components/ColorTrigger.d.ts +2 -2
  107. package/dist/color-picker/components/PanelPicker/GradientColorBar.d.ts +2 -2
  108. package/dist/color-picker/components/PanelPicker/index.d.ts +2 -2
  109. package/dist/color-picker/components/PanelPresets.d.ts +2 -2
  110. package/dist/color-picker/context.d.ts +3 -3
  111. package/dist/color-picker/hooks/useModeColor.d.ts +4 -4
  112. package/dist/color-picker/interface.d.ts +2 -2
  113. package/dist/color-picker/style/index.d.ts +2 -2
  114. package/dist/components.d.ts +4 -1
  115. package/dist/components.js +3 -1
  116. package/dist/config-provider/DisabledContext.d.ts +2 -2
  117. package/dist/config-provider/SizeContext.d.ts +2 -2
  118. package/dist/config-provider/context.d.ts +67 -34
  119. package/dist/config-provider/defaultRenderEmpty.d.ts +2 -2
  120. package/dist/config-provider/hooks/useCSSVarCls.d.ts +2 -2
  121. package/dist/config-provider/hooks/useConfig.d.ts +3 -3
  122. package/dist/config-provider/hooks/useSize.d.ts +2 -2
  123. package/dist/config-provider/hooks/useTheme.d.ts +2 -2
  124. package/dist/config-provider/index.d.ts +4 -4
  125. package/dist/config-provider/index.js +2 -0
  126. package/dist/date-picker/PickerButton.d.ts +2 -2
  127. package/dist/date-picker/generatePicker/SuffixIcon.d.ts +5 -5
  128. package/dist/date-picker/generatePicker/SuffixIcon.js +1 -1
  129. package/dist/date-picker/generatePicker/generateRangePicker.d.ts +4 -4
  130. package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +9 -9
  131. package/dist/date-picker/generatePicker/generateSinglePicker.js +4 -0
  132. package/dist/date-picker/generatePicker/index.d.ts +8 -8
  133. package/dist/date-picker/generatePicker/useComponents.d.ts +11 -11
  134. package/dist/date-picker/index.d.ts +13 -13
  135. package/dist/date-picker/style/index.d.ts +2 -2
  136. package/dist/date-picker/style/index.js +13 -3
  137. package/dist/date-picker/util.d.ts +3 -3
  138. package/dist/descriptions/Cell.d.ts +5 -5
  139. package/dist/descriptions/Item.d.ts +5 -5
  140. package/dist/descriptions/Row.d.ts +2 -2
  141. package/dist/descriptions/Row.js +3 -3
  142. package/dist/descriptions/hooks/useItems.d.ts +13 -13
  143. package/dist/descriptions/hooks/useRow.d.ts +2 -2
  144. package/dist/descriptions/index.d.ts +5 -5
  145. package/dist/descriptions/style/index.d.ts +2 -2
  146. package/dist/divider/index.d.ts +2 -2
  147. package/dist/divider/style/index.d.ts +2 -2
  148. package/dist/drawer/DrawerPanel.d.ts +7 -7
  149. package/dist/drawer/index.d.ts +3 -3
  150. package/dist/drawer/index.js +5 -2
  151. package/dist/drawer/style/index.d.ts +2 -2
  152. package/dist/drawer/useFocusable.d.ts +2 -2
  153. package/dist/dropdown/dropdown.d.ts +2 -2
  154. package/dist/dropdown/style/index.d.ts +2 -2
  155. package/dist/dropdown/style/index.js +1 -1
  156. package/dist/empty/empty.d.ts +2 -2
  157. package/dist/empty/index.d.ts +8 -8
  158. package/dist/empty/simple.d.ts +2 -2
  159. package/dist/empty/style/index.d.ts +2 -2
  160. package/dist/flex/index.d.ts +2 -2
  161. package/dist/flex/style/index.d.ts +2 -2
  162. package/dist/float-button/BackTop.d.ts +2 -2
  163. package/dist/float-button/BackTop.js +5 -0
  164. package/dist/float-button/FloatButton.d.ts +8 -7
  165. package/dist/float-button/FloatButton.js +6 -0
  166. package/dist/float-button/FloatButtonGroup.d.ts +4 -4
  167. package/dist/float-button/FloatButtonGroup.js +5 -0
  168. package/dist/float-button/PurePanel.d.ts +2 -2
  169. package/dist/float-button/PurePanel.js +10 -0
  170. package/dist/float-button/context.d.ts +3 -3
  171. package/dist/float-button/style/index.d.ts +2 -2
  172. package/dist/form/ErrorList.d.ts +8 -4
  173. package/dist/form/ErrorList.js +13 -2
  174. package/dist/form/Form.d.ts +9 -2
  175. package/dist/form/Form.js +10 -4
  176. package/dist/form/FormItem/ItemHolder.d.ts +3 -3
  177. package/dist/form/FormItem/StatusProvider.d.ts +2 -2
  178. package/dist/form/FormItem/index.d.ts +2 -2
  179. package/dist/form/FormItemInput.d.ts +6 -6
  180. package/dist/form/FormItemInput.js +6 -2
  181. package/dist/form/FormItemLabel.d.ts +7 -7
  182. package/dist/form/context.d.ts +7 -7
  183. package/dist/form/hooks/useVariant.d.ts +2 -2
  184. package/dist/form/style/fallbackCmp.d.ts +4 -4
  185. package/dist/form/style/index.d.ts +2 -2
  186. package/dist/grid/col.d.ts +2 -2
  187. package/dist/grid/index.d.ts +2 -2
  188. package/dist/grid/row.d.ts +2 -2
  189. package/dist/grid/style/index.d.ts +3 -3
  190. package/dist/image/PreviewGroup.d.ts +12 -12
  191. package/dist/image/hooks/useMergedPreviewConfig.d.ts +6 -6
  192. package/dist/image/hooks/usePreviewConfig.d.ts +10 -10
  193. package/dist/image/index.d.ts +12 -5
  194. package/dist/image/style/index.d.ts +2 -2
  195. package/dist/index.d.ts +3 -1
  196. package/dist/index.js +2 -1
  197. package/dist/input/Group.d.ts +3 -3
  198. package/dist/input/Input.d.ts +10 -7
  199. package/dist/input/Input.js +8 -2
  200. package/dist/input/OTP/OTPInput.d.ts +3 -3
  201. package/dist/input/OTP/OTPInput.js +4 -0
  202. package/dist/input/OTP/index.d.ts +4 -4
  203. package/dist/input/Password.d.ts +4 -4
  204. package/dist/input/Password.js +4 -0
  205. package/dist/input/Search.d.ts +14 -4
  206. package/dist/input/Search.js +19 -2
  207. package/dist/input/TextArea.d.ts +2 -2
  208. package/dist/input/index.d.ts +6 -6
  209. package/dist/input/style/index.d.ts +3 -3
  210. package/dist/input/style/otp.d.ts +2 -2
  211. package/dist/input/style/search.d.ts +2 -2
  212. package/dist/input/style/textarea.d.ts +2 -2
  213. package/dist/input/style/variants.js +14 -8
  214. package/dist/input-number/index.d.ts +9 -9
  215. package/dist/input-number/style/index.d.ts +2 -2
  216. package/dist/layout/Sider.d.ts +2 -2
  217. package/dist/layout/index.d.ts +5 -5
  218. package/dist/layout/layout.d.ts +5 -5
  219. package/dist/layout/style/index.d.ts +2 -2
  220. package/dist/layout/style/sider.d.ts +2 -2
  221. package/dist/locale/index.d.ts +2 -2
  222. package/dist/locale/useLocale.d.ts +2 -2
  223. package/dist/masonry/Masonry.d.ts +3 -3
  224. package/dist/masonry/MasonryItem.d.ts +4 -4
  225. package/dist/masonry/hooks/usePositions.d.ts +2 -2
  226. package/dist/masonry/style/index.d.ts +2 -2
  227. package/dist/mentions/index.d.ts +6 -6
  228. package/dist/mentions/index.js +7 -1
  229. package/dist/mentions/style/index.d.ts +2 -2
  230. package/dist/menu/MenuContext.d.ts +3 -3
  231. package/dist/menu/MenuDivider.d.ts +2 -2
  232. package/dist/menu/MenuItem.d.ts +5 -5
  233. package/dist/menu/MenuItemGroup.d.ts +4 -4
  234. package/dist/menu/OverrideContext.d.ts +5 -5
  235. package/dist/menu/SubMenu.d.ts +4 -4
  236. package/dist/menu/index.d.ts +3 -3
  237. package/dist/menu/menu.d.ts +2 -2
  238. package/dist/menu/style/index.d.ts +2 -2
  239. package/dist/menu/style/index.js +11 -3
  240. package/dist/menu/style/vertical.js +2 -1
  241. package/dist/message/PureList.d.ts +28 -0
  242. package/dist/message/PureList.js +75 -0
  243. package/dist/message/PurePanel.d.ts +17 -9
  244. package/dist/message/PurePanel.js +33 -38
  245. package/dist/message/index.d.ts +3 -0
  246. package/dist/message/index.js +3 -1
  247. package/dist/message/interface.d.ts +11 -5
  248. package/dist/message/style/index.d.ts +12 -6
  249. package/dist/message/style/index.js +102 -98
  250. package/dist/message/useMessage.d.ts +3 -3
  251. package/dist/message/useMessage.js +18 -14
  252. package/dist/message/util.js +1 -1
  253. package/dist/modal/ConfirmDialog.d.ts +4 -4
  254. package/dist/modal/Modal.d.ts +2 -2
  255. package/dist/modal/Modal.js +7 -3
  256. package/dist/modal/PurePanel.d.ts +2 -2
  257. package/dist/modal/components/ConfirmCancelBtn.d.ts +4 -4
  258. package/dist/modal/components/ConfirmOkBtn.d.ts +4 -4
  259. package/dist/modal/components/NormalCancelBtn.d.ts +4 -4
  260. package/dist/modal/components/NormalOkBtn.d.ts +4 -4
  261. package/dist/modal/interface.d.ts +22 -14
  262. package/dist/modal/shared.d.ts +4 -4
  263. package/dist/modal/style/confirm.d.ts +4 -4
  264. package/dist/modal/style/index.d.ts +4 -4
  265. package/dist/modal/useModal/HookModal.d.ts +3 -3
  266. package/dist/notification/PureList.d.ts +32 -0
  267. package/dist/notification/PureList.js +72 -0
  268. package/dist/notification/PurePanel.d.ts +16 -13
  269. package/dist/notification/PurePanel.js +42 -19
  270. package/dist/notification/index.d.ts +3 -0
  271. package/dist/notification/index.js +3 -1
  272. package/dist/notification/interface.d.ts +8 -8
  273. package/dist/notification/style/index.d.ts +27 -26
  274. package/dist/notification/style/index.js +104 -174
  275. package/dist/notification/style/notification.d.ts +23 -0
  276. package/dist/notification/style/notification.js +195 -0
  277. package/dist/notification/style/placement.d.ts +1 -0
  278. package/dist/notification/style/placement.js +125 -60
  279. package/dist/notification/useNotification.d.ts +3 -3
  280. package/dist/notification/useNotification.js +22 -14
  281. package/dist/notification/util.d.ts +14 -4
  282. package/dist/notification/util.js +18 -52
  283. package/dist/package.js +1 -1
  284. package/dist/package.json.d.ts +12 -12
  285. package/dist/pagination/Pagination.d.ts +2 -2
  286. package/dist/pagination/interface.d.ts +7 -7
  287. package/dist/pagination/style/bordered.d.ts +4 -4
  288. package/dist/pagination/style/index.d.ts +2 -2
  289. package/dist/popconfirm/PurePanel.d.ts +6 -7
  290. package/dist/popconfirm/PurePanel.js +4 -1
  291. package/dist/popconfirm/index.d.ts +16 -12
  292. package/dist/popconfirm/style/index.d.ts +2 -2
  293. package/dist/popover/PurePanel.d.ts +7 -7
  294. package/dist/popover/index.d.ts +5 -5
  295. package/dist/popover/style/index.d.ts +2 -2
  296. package/dist/progress/Circle.d.ts +3 -3
  297. package/dist/progress/Line.d.ts +3 -3
  298. package/dist/progress/Steps.d.ts +2 -2
  299. package/dist/progress/progress.d.ts +2 -2
  300. package/dist/progress/style/index.d.ts +2 -2
  301. package/dist/qrcode/QrcodeStatus.d.ts +2 -2
  302. package/dist/qrcode/index.d.ts +2 -2
  303. package/dist/qrcode/style/index.d.ts +2 -2
  304. package/dist/radio/group.d.ts +2 -2
  305. package/dist/radio/index.d.ts +3 -3
  306. package/dist/radio/radio.d.ts +2 -2
  307. package/dist/radio/radioButton.d.ts +2 -2
  308. package/dist/radio/style/index.d.ts +2 -2
  309. package/dist/rate/index.d.ts +2 -2
  310. package/dist/rate/style/index.d.ts +2 -2
  311. package/dist/result/index.d.ts +7 -7
  312. package/dist/result/noFound.d.ts +2 -2
  313. package/dist/result/serverError.d.ts +2 -2
  314. package/dist/result/style/index.d.ts +4 -4
  315. package/dist/result/style/index.js +1 -1
  316. package/dist/result/unauthorized.d.ts +2 -2
  317. package/dist/segmented/index.d.ts +4 -4
  318. package/dist/segmented/index.js +1 -1
  319. package/dist/segmented/style/index.d.ts +2 -2
  320. package/dist/select/index.d.ts +8 -8
  321. package/dist/select/index.js +1 -1
  322. package/dist/select/style/dropdown.js +1 -1
  323. package/dist/select/style/index.d.ts +2 -2
  324. package/dist/select/style/select-input.js +10 -5
  325. package/dist/select/useIcons.d.ts +5 -5
  326. package/dist/select/usePopupRender.d.ts +2 -2
  327. package/dist/skeleton/Avatar.d.ts +2 -2
  328. package/dist/skeleton/Button.d.ts +2 -2
  329. package/dist/skeleton/Element.d.ts +2 -2
  330. package/dist/skeleton/Image.d.ts +2 -2
  331. package/dist/skeleton/Input.d.ts +2 -2
  332. package/dist/skeleton/Node.d.ts +2 -2
  333. package/dist/skeleton/Paragraph.d.ts +2 -2
  334. package/dist/skeleton/Skeleton.d.ts +2 -2
  335. package/dist/skeleton/Title.d.ts +2 -2
  336. package/dist/skeleton/style/index.d.ts +2 -2
  337. package/dist/slider/SliderTooltip.d.ts +3 -3
  338. package/dist/slider/index.d.ts +2 -2
  339. package/dist/slider/style/index.d.ts +2 -2
  340. package/dist/space/Addon.d.ts +2 -2
  341. package/dist/space/Compact.d.ts +6 -6
  342. package/dist/space/Item.d.ts +2 -2
  343. package/dist/space/index.d.ts +6 -6
  344. package/dist/space/style/addon.d.ts +2 -2
  345. package/dist/space/style/compact.d.ts +2 -2
  346. package/dist/space/style/index.d.ts +16 -3
  347. package/dist/spin/Indicator/Looper.d.ts +2 -2
  348. package/dist/spin/Indicator/Progress.d.ts +2 -2
  349. package/dist/spin/Indicator/index.d.ts +4 -4
  350. package/dist/spin/index.d.ts +7 -7
  351. package/dist/spin/style/index.d.ts +2 -2
  352. package/dist/spin/usePercent.d.ts +2 -2
  353. package/dist/splitter/Panel.d.ts +3 -3
  354. package/dist/splitter/Panel.js +14 -3
  355. package/dist/splitter/SplitBar.d.ts +2 -2
  356. package/dist/splitter/Splitter.d.ts +2 -2
  357. package/dist/splitter/Splitter.js +8 -2
  358. package/dist/splitter/hooks/useResizable.d.ts +2 -2
  359. package/dist/splitter/hooks/useResize.d.ts +2 -2
  360. package/dist/splitter/hooks/useSizes.d.ts +2 -2
  361. package/dist/splitter/index.d.ts +2 -2
  362. package/dist/splitter/interface.d.ts +21 -4
  363. package/dist/splitter/style/index.d.ts +2 -2
  364. package/dist/statistic/Number.d.ts +2 -2
  365. package/dist/statistic/Statistic.d.ts +6 -6
  366. package/dist/statistic/Timer.d.ts +2 -2
  367. package/dist/statistic/index.d.ts +2 -2
  368. package/dist/statistic/style/index.d.ts +3 -3
  369. package/dist/steps/PanelArrow.d.ts +2 -2
  370. package/dist/steps/ProgressIcon.d.ts +2 -2
  371. package/dist/steps/index.d.ts +8 -8
  372. package/dist/steps/style/index.d.ts +3 -3
  373. package/dist/style/compact-item-vertical.js +2 -1
  374. package/dist/style/compact-item.js +6 -6
  375. package/dist/switch/index.d.ts +5 -5
  376. package/dist/switch/style/index.d.ts +2 -2
  377. package/dist/table/Column.d.ts +2 -2
  378. package/dist/table/ColumnGroup.d.ts +2 -2
  379. package/dist/table/ExpandIcon.d.ts +2 -2
  380. package/dist/table/InternalTable.d.ts +2 -2
  381. package/dist/table/InternalTable.js +6 -4
  382. package/dist/table/TableMeasureRowContext.d.ts +3 -3
  383. package/dist/table/hooks/useFilledColumns.d.ts +14 -0
  384. package/dist/table/hooks/useFilledColumns.js +41 -0
  385. package/dist/table/hooks/useFilter/FilterSearch.d.ts +2 -2
  386. package/dist/table/hooks/useFilter/FilterWrapper.d.ts +3 -3
  387. package/dist/table/hooks/useFilter/index.d.ts +21 -21
  388. package/dist/table/hooks/usePagination.d.ts +2 -2
  389. package/dist/table/hooks/useSelection.d.ts +2 -2
  390. package/dist/table/hooks/useSorter.d.ts +2 -2
  391. package/dist/table/style/index.d.ts +2 -2
  392. package/dist/tabs/TabPane.d.ts +2 -2
  393. package/dist/tabs/hooks/useLegacyItems.d.ts +2 -2
  394. package/dist/tabs/index.d.ts +9 -7
  395. package/dist/tabs/style/index.d.ts +2 -2
  396. package/dist/tag/CheckableTag.d.ts +4 -4
  397. package/dist/tag/CheckableTagGroup.d.ts +4 -4
  398. package/dist/tag/hooks/useColor.d.ts +2 -2
  399. package/dist/tag/index.d.ts +7 -5
  400. package/dist/tag/index.js +7 -2
  401. package/dist/tag/style/index.d.ts +2 -2
  402. package/dist/tag/style/presetCmp.d.ts +4 -4
  403. package/dist/tag/style/statusCmp.d.ts +4 -4
  404. package/dist/theme/context.d.ts +2 -2
  405. package/dist/theme/index.d.ts +4 -4
  406. package/dist/theme/interface/alias.d.ts +14 -0
  407. package/dist/theme/interface/components.d.ts +118 -116
  408. package/dist/theme/interface/maps/colors.d.ts +14 -0
  409. package/dist/theme/interface/maps/font.d.ts +5 -5
  410. package/dist/theme/themes/default/theme.d.ts +2 -2
  411. package/dist/theme/themes/shared/genColorMapToken.js +2 -0
  412. package/dist/theme/useToken.js +1 -1
  413. package/dist/theme/util/alias.js +2 -0
  414. package/dist/theme/util/genStyleUtils.d.ts +6 -6
  415. package/dist/time-picker/index.d.ts +6 -6
  416. package/dist/time-picker/index.js +4 -0
  417. package/dist/timeline/Timeline.d.ts +11 -11
  418. package/dist/timeline/TimelineItem.d.ts +2 -2
  419. package/dist/timeline/style/index.d.ts +2 -2
  420. package/dist/tooltip/PurePanel.d.ts +2 -2
  421. package/dist/tooltip/UniqueProvider/MotionContent.d.ts +2 -2
  422. package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
  423. package/dist/tooltip/index.d.ts +5 -5
  424. package/dist/tooltip/style/index.d.ts +2 -2
  425. package/dist/tour/PurePanel.d.ts +2 -2
  426. package/dist/tour/index.d.ts +2 -2
  427. package/dist/tour/index.js +5 -0
  428. package/dist/tour/interface.d.ts +6 -4
  429. package/dist/tour/panelRender.d.ts +2 -2
  430. package/dist/tour/panelRender.js +4 -9
  431. package/dist/tour/style/index.d.ts +2 -2
  432. package/dist/transfer/Actions.d.ts +4 -4
  433. package/dist/transfer/ListBody.d.ts +2 -2
  434. package/dist/transfer/ListItem.d.ts +4 -4
  435. package/dist/transfer/Section.d.ts +2 -2
  436. package/dist/transfer/Transfer.d.ts +2 -2
  437. package/dist/transfer/Transfer.js +34 -4
  438. package/dist/transfer/hooks/useData.d.ts +2 -2
  439. package/dist/transfer/interface.d.ts +47 -15
  440. package/dist/transfer/search.d.ts +4 -4
  441. package/dist/transfer/style/index.d.ts +2 -2
  442. package/dist/tree/DirectoryTree.d.ts +2 -2
  443. package/dist/tree/DirectoryTree.js +0 -4
  444. package/dist/tree/Tree.d.ts +10 -8
  445. package/dist/tree/Tree.js +0 -4
  446. package/dist/tree/style/index.d.ts +2 -2
  447. package/dist/tree/utils/dropIndicator.d.ts +2 -2
  448. package/dist/tree/utils/iconUtil.d.ts +4 -4
  449. package/dist/tree-select/index.d.ts +8 -6
  450. package/dist/tree-select/index.js +1 -1
  451. package/dist/tree-select/style/index.d.ts +2 -2
  452. package/dist/typography/Base/CopyBtn.d.ts +2 -2
  453. package/dist/typography/Base/Ellipsis.d.ts +5 -5
  454. package/dist/typography/Base/EllipsisTooltip.d.ts +2 -2
  455. package/dist/typography/Base/index.d.ts +2 -2
  456. package/dist/typography/Base/index.js +31 -26
  457. package/dist/typography/Editable.d.ts +11 -4
  458. package/dist/typography/Editable.js +18 -3
  459. package/dist/typography/Link.d.ts +2 -2
  460. package/dist/typography/Link.js +4 -0
  461. package/dist/typography/Paragraph.d.ts +2 -2
  462. package/dist/typography/Paragraph.js +4 -0
  463. package/dist/typography/Text.d.ts +2 -2
  464. package/dist/typography/Text.js +4 -0
  465. package/dist/typography/Title.d.ts +2 -2
  466. package/dist/typography/Title.js +4 -0
  467. package/dist/typography/Typography.d.ts +2 -2
  468. package/dist/typography/hooks/useCopyClick.d.ts +3 -3
  469. package/dist/typography/hooks/useMergedConfig.d.ts +2 -2
  470. package/dist/typography/hooks/useTooltipProps.d.ts +2 -2
  471. package/dist/typography/index.d.ts +5 -5
  472. package/dist/typography/interface.d.ts +25 -17
  473. package/dist/typography/style/index.d.ts +2 -2
  474. package/dist/upload/Dragger.d.ts +3 -3
  475. package/dist/upload/Upload.d.ts +2 -2
  476. package/dist/upload/UploadList/ListItem.d.ts +2 -2
  477. package/dist/upload/UploadList/index.d.ts +2 -2
  478. package/dist/upload/index.d.ts +3 -3
  479. package/dist/upload/style/index.d.ts +2 -2
  480. package/dist/upload/utils.js +1 -1
  481. package/dist/watermark/context.d.ts +2 -2
  482. package/dist/watermark/index.d.ts +2 -2
  483. package/dist/watermark/index.js +4 -3
  484. package/package.json +65 -29
  485. package/web-tags.json +1251 -1233
  486. package/web-types.json +3794 -3750
  487. package/dist/notification/style/pure-panel.d.ts +0 -12
  488. package/dist/notification/style/pure-panel.js +0 -18
  489. package/dist/notification/style/stack.d.ts +0 -9
  490. package/dist/notification/style/stack.js +0 -88
@@ -1,173 +1,14 @@
1
- import { genFocusStyle, resetComponent } from "../../style/index.js";
2
- import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
1
+ import { resetComponent } from "../../style/index.js";
2
+ import { genStyleHooks, genSubStyleComponent } from "../../theme/util/genStyleUtils.js";
3
3
  import { mergeToken } from "../../theme/internal.js";
4
4
  import { CONTAINER_MAX_OFFSET } from "../../_util/hooks/useZIndex.js";
5
+ import notification_default, { genPurePanelStyle } from "./notification.js";
5
6
  import placement_default from "./placement.js";
6
- import stack_default from "./stack.js";
7
- import { Keyframes, unit } from "@antdv-next/cssinjs";
7
+ import { unit } from "@antdv-next/cssinjs";
8
8
 
9
9
  //#region src/notification/style/index.ts
10
- const genNoticeStyle = (token) => {
11
- const { iconCls, componentCls, boxShadow, fontSizeLG, notificationMarginBottom, borderRadiusLG, colorSuccess, colorInfo, colorWarning, colorError, colorTextHeading, notificationBg, notificationPadding, notificationMarginEdge, progressBg, notificationProgressHeight, fontSize, lineHeight, width, notificationIconSize, colorText, colorSuccessBg, colorErrorBg, colorInfoBg, colorWarningBg, motionDurationMid } = token;
12
- const noticeCls = `${componentCls}-notice`;
13
- return {
14
- position: "relative",
15
- marginBottom: notificationMarginBottom,
16
- marginInlineStart: "auto",
17
- background: notificationBg,
18
- borderRadius: borderRadiusLG,
19
- boxShadow,
20
- [noticeCls]: {
21
- padding: notificationPadding,
22
- width,
23
- maxWidth: `calc(100vw - ${unit(token.calc(notificationMarginEdge).mul(2).equal())})`,
24
- lineHeight,
25
- wordWrap: "break-word",
26
- borderRadius: borderRadiusLG,
27
- overflow: "hidden",
28
- "&-success": colorSuccessBg ? { background: colorSuccessBg } : {},
29
- "&-error": colorErrorBg ? { background: colorErrorBg } : {},
30
- "&-info": colorInfoBg ? { background: colorInfoBg } : {},
31
- "&-warning": colorWarningBg ? { background: colorWarningBg } : {}
32
- },
33
- [`${noticeCls}-title`]: {
34
- marginBottom: token.marginXS,
35
- color: colorTextHeading,
36
- fontSize: fontSizeLG,
37
- lineHeight: token.lineHeightLG
38
- },
39
- [`${noticeCls}-description`]: {
40
- fontSize,
41
- color: colorText,
42
- marginTop: token.marginXS,
43
- "&:first-child": {
44
- marginTop: 0,
45
- marginInlineEnd: token.marginSM
46
- }
47
- },
48
- [`${noticeCls}-closable ${noticeCls}-title`]: { paddingInlineEnd: token.paddingLG },
49
- [`${noticeCls}-with-icon ${noticeCls}-title`]: {
50
- marginBottom: token.marginXS,
51
- marginInlineStart: token.calc(token.marginSM).add(notificationIconSize).equal(),
52
- fontSize: fontSizeLG
53
- },
54
- [`${noticeCls}-with-icon ${noticeCls}-description`]: {
55
- marginInlineStart: token.calc(token.marginSM).add(notificationIconSize).equal(),
56
- fontSize
57
- },
58
- [`${noticeCls}-icon`]: {
59
- position: "absolute",
60
- fontSize: notificationIconSize,
61
- lineHeight: 1,
62
- [`&-success${iconCls}`]: { color: colorSuccess },
63
- [`&-info${iconCls}`]: { color: colorInfo },
64
- [`&-warning${iconCls}`]: { color: colorWarning },
65
- [`&-error${iconCls}`]: { color: colorError }
66
- },
67
- [`${noticeCls}-close`]: {
68
- position: "absolute",
69
- top: token.notificationPaddingVertical,
70
- insetInlineEnd: token.notificationPaddingHorizontal,
71
- color: token.colorIcon,
72
- outline: "none",
73
- width: token.notificationCloseButtonSize,
74
- height: token.notificationCloseButtonSize,
75
- borderRadius: token.borderRadiusSM,
76
- transition: ["color", "background-color"].map((prop) => `${prop} ${motionDurationMid}`).join(", "),
77
- display: "flex",
78
- alignItems: "center",
79
- justifyContent: "center",
80
- background: "none",
81
- border: "none",
82
- "&:hover": {
83
- color: token.colorIconHover,
84
- backgroundColor: token.colorBgTextHover
85
- },
86
- "&:active": { backgroundColor: token.colorBgTextActive },
87
- ...genFocusStyle(token)
88
- },
89
- [`${noticeCls}-progress`]: {
90
- position: "absolute",
91
- display: "block",
92
- appearance: "none",
93
- inlineSize: `calc(100% - ${unit(borderRadiusLG)} * 2)`,
94
- left: {
95
- _skip_check_: true,
96
- value: borderRadiusLG
97
- },
98
- right: {
99
- _skip_check_: true,
100
- value: borderRadiusLG
101
- },
102
- bottom: 0,
103
- blockSize: notificationProgressHeight,
104
- border: 0,
105
- "&, &::-webkit-progress-bar": {
106
- borderRadius: borderRadiusLG,
107
- backgroundColor: `rgba(0, 0, 0, 0.04)`
108
- },
109
- "&::-moz-progress-bar": { background: progressBg },
110
- "&::-webkit-progress-value": {
111
- borderRadius: borderRadiusLG,
112
- background: progressBg
113
- }
114
- },
115
- [`${noticeCls}-actions`]: {
116
- float: "right",
117
- marginTop: token.marginSM
118
- }
119
- };
120
- };
121
- const genNotificationStyle = (token) => {
122
- const { componentCls, notificationMarginBottom, notificationMarginEdge, motionDurationMid, motionEaseInOut } = token;
123
- const noticeCls = `${componentCls}-notice`;
124
- const fadeOut = new Keyframes("antNotificationFadeOut", {
125
- "0%": {
126
- maxHeight: token.animationMaxHeight,
127
- marginBottom: notificationMarginBottom
128
- },
129
- "100%": {
130
- maxHeight: 0,
131
- marginBottom: 0,
132
- paddingTop: 0,
133
- paddingBottom: 0,
134
- opacity: 0
135
- }
136
- });
137
- return [{ [componentCls]: {
138
- ...resetComponent(token),
139
- position: "fixed",
140
- zIndex: token.zIndexPopup,
141
- marginRight: {
142
- value: notificationMarginEdge,
143
- _skip_check_: true
144
- },
145
- [`${componentCls}-hook-holder`]: { position: "relative" },
146
- [`${componentCls}-fade-appear-prepare`]: { opacity: "0 !important" },
147
- [`${componentCls}-fade-enter, ${componentCls}-fade-appear`]: {
148
- animationDuration: token.motionDurationMid,
149
- animationTimingFunction: motionEaseInOut,
150
- animationFillMode: "both",
151
- opacity: 0,
152
- animationPlayState: "paused"
153
- },
154
- [`${componentCls}-fade-leave`]: {
155
- animationTimingFunction: motionEaseInOut,
156
- animationFillMode: "both",
157
- animationDuration: motionDurationMid,
158
- animationPlayState: "paused"
159
- },
160
- [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: { animationPlayState: "running" },
161
- [`${componentCls}-fade-leave${componentCls}-fade-leave-active`]: {
162
- animationName: fadeOut,
163
- animationPlayState: "running"
164
- },
165
- "&-rtl": {
166
- direction: "rtl",
167
- [`${noticeCls}-actions`]: { float: "left" }
168
- }
169
- } }, { [componentCls]: { [`${noticeCls}-wrapper`]: genNoticeStyle(token) } }];
170
- };
10
+ const DEFAULT_COLLAPSED_STACK_VISIBLE_COUNT = 3;
11
+ /** Provide default public ComponentToken values for Notification. */
171
12
  function prepareComponentToken(token) {
172
13
  return {
173
14
  zIndexPopup: token.zIndexPopupBase + CONTAINER_MAX_OFFSET + 50,
@@ -179,6 +20,7 @@ function prepareComponentToken(token) {
179
20
  colorWarningBg: void 0
180
21
  };
181
22
  }
23
+ /** Derive internal Notification style tokens from alias and component tokens. */
182
24
  const prepareNotificationToken = (token) => {
183
25
  const notificationPaddingVertical = token.paddingMD;
184
26
  const notificationPaddingHorizontal = token.paddingLG;
@@ -191,19 +33,107 @@ const prepareNotificationToken = (token) => {
191
33
  notificationMarginBottom: token.margin,
192
34
  notificationPadding: `${unit(token.paddingMD)} ${unit(token.paddingContentHorizontalLG)}`,
193
35
  notificationMarginEdge: token.marginLG,
194
- animationMaxHeight: 150,
195
- notificationStackLayer: 3,
196
- notificationProgressHeight: 2
36
+ notificationProgressHeight: 2,
37
+ notificationMotionOffset: 64
197
38
  });
198
39
  };
199
- var style_default = genStyleHooks("Notification", (token) => {
200
- const notificationToken = prepareNotificationToken(token);
40
+ /** Build a clip-path inset that keeps stack shadows visible. */
41
+ function getStackNoticeClipPath(offset) {
42
+ return `inset(${offset} ${offset} ${offset} ${offset})`;
43
+ }
44
+ /** Generate shared list content and motion base styles. */
45
+ const genNotificationListContentStyle = (token) => {
46
+ const { componentCls, motionDurationMid, motionDurationSlow, motionEaseInOut } = token;
47
+ const listContentCls = `${`${componentCls}-list`}-content`;
48
+ return {
49
+ [listContentCls]: {
50
+ position: "relative",
51
+ display: "flex",
52
+ flexShrink: 0,
53
+ flexDirection: "column",
54
+ gap: token.notificationMarginBottom,
55
+ width: "100%",
56
+ willChange: "height, transform",
57
+ transition: "none",
58
+ [`&${listContentCls}-decrease`]: { transition: `height calc(${motionDurationSlow} * 2) ${motionEaseInOut} ${motionDurationMid}` }
59
+ },
60
+ [`${componentCls}-fade`]: {
61
+ backfaceVisibility: "hidden",
62
+ willChange: "transform, opacity"
63
+ }
64
+ };
65
+ };
66
+ /** Generate the root holder, list, stack, and RTL styles for notifications. */
67
+ function genNotificationListStyle(token, config) {
68
+ const { componentCls, notificationMarginEdge } = token;
69
+ const notificationMarginEdgeVar = "--notification-margin-edge";
70
+ const noticeCls = `${componentCls}-notice`;
71
+ const listCls = `${componentCls}-list`;
72
+ const listWidth = config.listWidthKey ? token.calc(token[config.listWidthKey]).add(token.calc(notificationMarginEdge).mul(2)).equal() : "100%";
73
+ const noticeBeyondStackVisibleCountCls = `${noticeCls}:nth-last-child(n + ${(config.stackVisibleCount ?? DEFAULT_COLLAPSED_STACK_VISIBLE_COUNT) + 1})`;
74
+ const stackNoticeClipPath = getStackNoticeClipPath(unit(token.calc(token.marginXXL).mul(-1).equal()));
75
+ return { [componentCls]: {
76
+ ...resetComponent(token),
77
+ [notificationMarginEdgeVar]: unit(notificationMarginEdge),
78
+ position: "fixed",
79
+ zIndex: token.zIndexPopup,
80
+ width: listWidth,
81
+ maxWidth: "100vw",
82
+ height: "100vh",
83
+ overflow: "hidden",
84
+ overscrollBehavior: "contain",
85
+ [`${componentCls}-hook-holder`]: { position: "relative" },
86
+ [`&${listCls}`]: {
87
+ maxHeight: "100vh",
88
+ padding: `var(${notificationMarginEdgeVar})`,
89
+ overflowX: "hidden",
90
+ overflowY: "auto",
91
+ overscrollBehavior: "contain",
92
+ scrollbarWidth: "none",
93
+ msOverflowStyle: "none",
94
+ pointerEvents: "none",
95
+ "&::-webkit-scrollbar": {
96
+ display: "none",
97
+ width: 0,
98
+ height: 0
99
+ }
100
+ },
101
+ ...genNotificationListContentStyle(token),
102
+ [`&${componentCls}-stack`]: {
103
+ [noticeCls]: { clipPath: stackNoticeClipPath },
104
+ [`&:not(${componentCls}-stack-expanded)`]: {
105
+ [noticeCls]: { "--notification-scale": "calc(1 - min(var(--notification-index, 0), 2) * 0.06)" },
106
+ [`${noticeCls}:not(${noticeCls}-stack-in-threshold)`]: {
107
+ opacity: 0,
108
+ pointerEvents: "none"
109
+ },
110
+ [noticeBeyondStackVisibleCountCls]: {
111
+ opacity: 0,
112
+ pointerEvents: "none"
113
+ }
114
+ }
115
+ },
116
+ "&-rtl": {
117
+ direction: "rtl",
118
+ [`${noticeCls}-actions`]: { float: "left" }
119
+ }
120
+ } };
121
+ }
122
+ /** Register the PurePanel sub-style component for Notification. */
123
+ const PurePanelStyle = genSubStyleComponent(["Notification", "PurePanel"], (token) => genPurePanelStyle(prepareNotificationToken(token)), prepareComponentToken);
124
+ /** Compose the shared list, item, and placement styles. */
125
+ function sharedGenerateStyle(token, config) {
126
+ const itemStyle = config.itemStyle ?? notification_default;
201
127
  return [
202
- genNotificationStyle(notificationToken),
203
- placement_default(notificationToken),
204
- stack_default(notificationToken)
128
+ genNotificationListStyle(token, config),
129
+ itemStyle(token),
130
+ placement_default(token)
205
131
  ];
132
+ }
133
+ /** Register the main style hook for Notification. */
134
+ var style_default = genStyleHooks("Notification", (token) => {
135
+ return sharedGenerateStyle(prepareNotificationToken(token), { listWidthKey: "width" });
206
136
  }, prepareComponentToken);
207
137
 
208
138
  //#endregion
209
- export { style_default as default, genNoticeStyle, prepareComponentToken, prepareNotificationToken };
139
+ export { PurePanelStyle, style_default as default, prepareNotificationToken, sharedGenerateStyle };
@@ -0,0 +1,23 @@
1
+ import { NotificationToken } from "./index.js";
2
+ import { GenerateStyle } from "../../theme/interface/index.js";
3
+ import "../../theme/internal.js";
4
+ import { CSSObject } from "@antdv-next/cssinjs";
5
+
6
+ //#region src/notification/style/notification.d.ts
7
+ interface NotificationItemSharedStyleConfig {
8
+ width: number | string;
9
+ iconFontSize: number | string;
10
+ titleFontSize: number | string;
11
+ titleLineHeight: number | string;
12
+ contentStyle: CSSObject;
13
+ noticeStyle?: CSSObject;
14
+ typeStyle?: boolean;
15
+ }
16
+ /** Generate item styles shared by Notification and Message notice cards. */
17
+ declare function genListItemSharedStyle(token: NotificationToken, config: NotificationItemSharedStyleConfig): CSSObject;
18
+ /** Generate standalone PurePanel styles for Notification. */
19
+ declare function genPurePanelStyle(token: NotificationToken): CSSObject;
20
+ /** Wrap Notification item styles under the component root selector. */
21
+ declare const genNotificationStyle: GenerateStyle<NotificationToken, CSSObject>;
22
+ //#endregion
23
+ export { genNotificationStyle as default, genListItemSharedStyle, genPurePanelStyle };
@@ -0,0 +1,195 @@
1
+ import { genFocusStyle } from "../../style/index.js";
2
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
3
+ import { unit } from "@antdv-next/cssinjs";
4
+
5
+ //#region src/notification/style/notification.ts
6
+ /** Generate motion transitions shared by notification-like notice cards. */
7
+ function genNotificationItemMotionStyle(token) {
8
+ const { motionDurationMid, motionEaseInOut } = token;
9
+ const transition = `${motionDurationMid} ${motionEaseInOut}`;
10
+ return {
11
+ transform: "scale(var(--notification-scale, 1))",
12
+ transition: [
13
+ "transform",
14
+ "inset",
15
+ "clip-path",
16
+ "opacity"
17
+ ].map((property) => `${property} ${transition}`).join(", ")
18
+ };
19
+ }
20
+ /** Generate item styles shared by Notification and Message notice cards. */
21
+ function genListItemSharedStyle(token, config) {
22
+ const { componentCls, antCls, colorSuccess, colorInfo, colorWarning, colorError, colorTextHeading, colorText, boxShadow, borderRadiusLG, fontSize, lineHeight, notificationBg, notificationPadding, notificationMarginEdge, margin, calc } = token;
23
+ const noticeCls = `${componentCls}-notice`;
24
+ const [varName, varRef] = genCssVar(antCls, "notification");
25
+ return {
26
+ [noticeCls]: {
27
+ position: "absolute",
28
+ width: config.width,
29
+ maxWidth: `calc(100vw - ${unit(calc(notificationMarginEdge).mul(2).equal())})`,
30
+ padding: notificationPadding,
31
+ pointerEvents: "auto",
32
+ [varName("icon-font-size")]: config.iconFontSize,
33
+ [varName("title-font-size")]: config.titleFontSize,
34
+ [varName("title-line-height")]: config.titleLineHeight,
35
+ boxSizing: "border-box",
36
+ color: colorText,
37
+ background: notificationBg,
38
+ borderRadius: borderRadiusLG,
39
+ boxShadow,
40
+ fontSize,
41
+ lineHeight,
42
+ wordWrap: "break-word",
43
+ overflow: "visible",
44
+ ...genNotificationItemMotionStyle(token),
45
+ ...config.noticeStyle,
46
+ "&::after": {
47
+ position: "absolute",
48
+ insetInline: 0,
49
+ top: calc(margin).mul(-1).equal(),
50
+ height: margin,
51
+ content: "\"\""
52
+ },
53
+ ...config.typeStyle && {
54
+ "&-success": { background: varRef("color-success-bg", notificationBg) },
55
+ "&-error": { background: varRef("color-error-bg", notificationBg) },
56
+ "&-info": { background: varRef("color-info-bg", notificationBg) },
57
+ "&-warning": { background: varRef("color-warning-bg", notificationBg) }
58
+ }
59
+ },
60
+ [`${noticeCls}-wrapper`]: {
61
+ display: "flex",
62
+ ...config.contentStyle
63
+ },
64
+ [`${noticeCls}-title`]: {
65
+ color: colorTextHeading,
66
+ fontSize: varRef("title-font-size"),
67
+ lineHeight: varRef("title-line-height")
68
+ },
69
+ [`${noticeCls}-icon`]: {
70
+ flex: "none",
71
+ fontSize: varRef("icon-font-size"),
72
+ lineHeight: 1,
73
+ [`&${noticeCls}-icon-success`]: { color: colorSuccess },
74
+ [`&${noticeCls}-icon-info, &${noticeCls}-icon-loading`]: { color: colorInfo },
75
+ [`&${noticeCls}-icon-warning`]: { color: colorWarning },
76
+ [`&${noticeCls}-icon-error`]: { color: colorError }
77
+ }
78
+ };
79
+ }
80
+ /** Generate the complete notice item styles for Notification. */
81
+ function genNotificationItemStyle(token) {
82
+ const { componentCls, progressBg, notificationProgressHeight, fontSize, borderRadiusLG, width, notificationIconSize, colorText, motionDurationMid, fontSizeLG, lineHeightLG, marginSM, marginXS, paddingLG, notificationPaddingVertical, notificationPaddingHorizontal, notificationCloseButtonSize, colorIcon, borderRadiusSM, colorIconHover, colorBgTextHover, colorBgTextActive } = token;
83
+ const noticeCls = `${componentCls}-notice`;
84
+ return {
85
+ ...genListItemSharedStyle(token, {
86
+ width,
87
+ iconFontSize: notificationIconSize,
88
+ titleFontSize: fontSizeLG,
89
+ titleLineHeight: lineHeightLG,
90
+ contentStyle: {
91
+ alignItems: "flex-start",
92
+ gap: marginSM
93
+ },
94
+ typeStyle: true
95
+ }),
96
+ [`${noticeCls}-section`]: {
97
+ display: "flex",
98
+ flexDirection: "column",
99
+ flex: "auto",
100
+ gap: marginXS,
101
+ minWidth: 0
102
+ },
103
+ [`${noticeCls}-description`]: {
104
+ color: colorText,
105
+ fontSize
106
+ },
107
+ [`${noticeCls}-closable ${noticeCls}-title`]: { paddingInlineEnd: paddingLG },
108
+ [`${noticeCls}-closable ${noticeCls}-description`]: { paddingInlineEnd: paddingLG },
109
+ [`${noticeCls}-closable ${noticeCls}-title + ${noticeCls}-description`]: { paddingInlineEnd: 0 },
110
+ [`${noticeCls}-close`]: {
111
+ position: "absolute",
112
+ top: notificationPaddingVertical,
113
+ insetInlineEnd: notificationPaddingHorizontal,
114
+ display: "flex",
115
+ alignItems: "center",
116
+ justifyContent: "center",
117
+ width: notificationCloseButtonSize,
118
+ height: notificationCloseButtonSize,
119
+ color: colorIcon,
120
+ background: "none",
121
+ border: "none",
122
+ borderRadius: borderRadiusSM,
123
+ outline: "none",
124
+ transition: ["color", "background-color"].map((prop) => `${prop} ${motionDurationMid}`).join(", "),
125
+ "&:hover": {
126
+ color: colorIconHover,
127
+ backgroundColor: colorBgTextHover
128
+ },
129
+ "&:active": { backgroundColor: colorBgTextActive },
130
+ ...genFocusStyle(token)
131
+ },
132
+ [`${noticeCls}-progress`]: {
133
+ position: "absolute",
134
+ bottom: 0,
135
+ display: "block",
136
+ appearance: "none",
137
+ inlineSize: `calc(100% - ${unit(borderRadiusLG)} * 2)`,
138
+ blockSize: notificationProgressHeight,
139
+ border: 0,
140
+ left: {
141
+ _skip_check_: true,
142
+ value: borderRadiusLG
143
+ },
144
+ right: {
145
+ _skip_check_: true,
146
+ value: borderRadiusLG
147
+ },
148
+ "&, &::-webkit-progress-bar": {
149
+ borderRadius: borderRadiusLG,
150
+ backgroundColor: "rgba(0, 0, 0, 0.04)"
151
+ },
152
+ "&::-moz-progress-bar": { background: progressBg },
153
+ "&::-webkit-progress-value": {
154
+ borderRadius: borderRadiusLG,
155
+ background: progressBg
156
+ }
157
+ },
158
+ [`${noticeCls}-actions`]: {
159
+ float: "right",
160
+ marginTop: marginSM
161
+ }
162
+ };
163
+ }
164
+ /** Generate standalone PurePanel styles for Notification. */
165
+ function genPurePanelStyle(token) {
166
+ const { componentCls, width } = token;
167
+ const noticeCls = `${componentCls}-notice`;
168
+ const actionsCls = `${noticeCls}-actions`;
169
+ const notificationItemStyle = genNotificationItemStyle(token);
170
+ return { [`${noticeCls}-pure-panel`]: {
171
+ width,
172
+ maxWidth: "100%",
173
+ ...notificationItemStyle,
174
+ [noticeCls]: {
175
+ ...notificationItemStyle[noticeCls],
176
+ position: "relative",
177
+ width: "100%",
178
+ maxWidth: "100%"
179
+ },
180
+ [actionsCls]: {
181
+ ...notificationItemStyle[actionsCls],
182
+ float: "none",
183
+ textAlign: "end"
184
+ }
185
+ } };
186
+ }
187
+ /** Wrap Notification item styles under the component root selector. */
188
+ const genNotificationStyle = (token) => {
189
+ const { componentCls } = token;
190
+ return { [componentCls]: genNotificationItemStyle(token) };
191
+ };
192
+ var notification_default = genNotificationStyle;
193
+
194
+ //#endregion
195
+ export { notification_default as default, genListItemSharedStyle, genPurePanelStyle };
@@ -4,6 +4,7 @@ import "../../theme/internal.js";
4
4
  import { CSSObject } from "@antdv-next/cssinjs";
5
5
 
6
6
  //#region src/notification/style/placement.d.ts
7
+ /** Wrap placement styles under the component root selector. */
7
8
  declare const genNotificationPlacementStyle: GenerateStyle<NotificationToken, CSSObject>;
8
9
  //#endregion
9
10
  export { genNotificationPlacementStyle as default };