antdv-next 1.0.0-beta.3 → 1.0.0-rc.1

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 (269) hide show
  1. package/dist/_util/PurePanel.mjs +4 -4
  2. package/dist/_util/hooks/useClosable.d.mts +0 -1
  3. package/dist/_util/hooks/useClosable.mjs +1 -1
  4. package/dist/_util/hooks/useMergeSemantic.d.mts +2 -3
  5. package/dist/_util/hooks/useMergeSemantic.mjs +9 -9
  6. package/dist/_util/tools.mjs +1 -1
  7. package/dist/_util/warning.d.mts +0 -1
  8. package/dist/affix/index.d.mts +3 -3
  9. package/dist/alert/Alert.d.mts +24 -7
  10. package/dist/alert/Alert.mjs +91 -28
  11. package/dist/anchor/Anchor.d.mts +18 -7
  12. package/dist/antd.css +1 -1
  13. package/dist/antd.js +101 -112
  14. package/dist/app/App.d.mts +2 -2
  15. package/dist/app/App.mjs +2 -2
  16. package/dist/auto-complete/index.d.mts +23 -11
  17. package/dist/auto-complete/index.mjs +1 -1
  18. package/dist/avatar/Avatar.d.mts +3 -3
  19. package/dist/avatar/AvatarGroup.d.mts +2 -2
  20. package/dist/avatar/style/index.mjs +2 -2
  21. package/dist/badge/Ribbon.d.mts +21 -5
  22. package/dist/badge/Ribbon.mjs +44 -23
  23. package/dist/badge/SingleNumber.mjs +2 -1
  24. package/dist/badge/index.d.mts +14 -7
  25. package/dist/badge/style/ribbon.mjs +1 -1
  26. package/dist/breadcrumb/Breadcrumb.d.mts +17 -6
  27. package/dist/breadcrumb/Breadcrumb.mjs +18 -3
  28. package/dist/breadcrumb/BreadcrumbItem.d.mts +1 -0
  29. package/dist/breadcrumb/BreadcrumbItem.mjs +29 -4
  30. package/dist/breadcrumb/style/index.mjs +5 -5
  31. package/dist/button/Button.d.mts +18 -10
  32. package/dist/button/buttonHelper.d.mts +0 -1
  33. package/dist/button/index.d.mts +1 -1
  34. package/dist/button/style/compact.mjs +28 -19
  35. package/dist/button/style/token.d.mts +0 -5
  36. package/dist/button/style/variant.mjs +27 -3
  37. package/dist/calendar/generateCalendar.d.mts +20 -7
  38. package/dist/calendar/generateCalendar.mjs +1 -1
  39. package/dist/calendar/index.d.mts +3 -3
  40. package/dist/card/Card.d.mts +23 -6
  41. package/dist/card/CardGrid.d.mts +2 -2
  42. package/dist/card/CardMeta.d.mts +20 -7
  43. package/dist/carousel/index.d.mts +3 -3
  44. package/dist/cascader/Panel.d.mts +3 -3
  45. package/dist/cascader/index.d.mts +31 -10
  46. package/dist/checkbox/Checkbox.d.mts +16 -7
  47. package/dist/checkbox/Checkbox.mjs +1 -1
  48. package/dist/checkbox/Group.d.mts +4 -3
  49. package/dist/checkbox/Group.mjs +11 -2
  50. package/dist/collapse/Collapse.d.mts +19 -6
  51. package/dist/collapse/Collapse.mjs +1 -1
  52. package/dist/color-picker/ColorPicker.d.mts +3 -3
  53. package/dist/color-picker/interface.d.mts +15 -7
  54. package/dist/color-picker/style/input.mjs +2 -0
  55. package/dist/components.d.mts +2 -3
  56. package/dist/config-provider/context.d.mts +58 -12
  57. package/dist/config-provider/context.mjs +3 -3
  58. package/dist/config-provider/define.d.mts +7 -1
  59. package/dist/config-provider/index.d.mts +3 -4
  60. package/dist/config-provider/index.mjs +82 -8
  61. package/dist/date-picker/generatePicker/index.d.mts +15 -15
  62. package/dist/date-picker/generatePicker/interface.d.mts +37 -10
  63. package/dist/date-picker/hooks/useMergedPickerSemantic.mjs +2 -2
  64. package/dist/date-picker/index.d.mts +25 -25
  65. package/dist/descriptions/Cell.mjs +5 -5
  66. package/dist/descriptions/DescriptionsContext.d.mts +13 -0
  67. package/dist/descriptions/Item.d.mts +3 -3
  68. package/dist/descriptions/hooks/useRow.mjs +7 -7
  69. package/dist/descriptions/index.d.mts +22 -7
  70. package/dist/divider/index.d.mts +15 -5
  71. package/dist/drawer/DrawerPanel.d.mts +28 -3
  72. package/dist/drawer/DrawerPanel.mjs +3 -3
  73. package/dist/drawer/index.d.mts +4 -4
  74. package/dist/drawer/index.mjs +4 -0
  75. package/dist/drawer/style/index.mjs +9 -2
  76. package/dist/dropdown/dropdown.d.mts +20 -7
  77. package/dist/empty/index.d.mts +18 -7
  78. package/dist/flex/index.d.mts +3 -3
  79. package/dist/float-button/BackTop.d.mts +3 -3
  80. package/dist/float-button/FloatButton.d.mts +6 -7
  81. package/dist/float-button/FloatButtonGroup.d.mts +25 -6
  82. package/dist/form/Form.d.mts +16 -7
  83. package/dist/form/FormItem/index.d.mts +3 -3
  84. package/dist/form/FormItem/index.mjs +1 -1
  85. package/dist/form/FormItemInput.d.mts +0 -1
  86. package/dist/grid/index.d.mts +2 -2
  87. package/dist/grid/row.d.mts +2 -2
  88. package/dist/image/PreviewGroup.d.mts +3 -5
  89. package/dist/image/index.d.mts +34 -14
  90. package/dist/index.d.mts +3 -4
  91. package/dist/input/Input.d.mts +17 -4
  92. package/dist/input/Input.mjs +2 -2
  93. package/dist/input/OTP/index.d.mts +13 -4
  94. package/dist/input/Password.mjs +3 -3
  95. package/dist/input/Search.d.mts +21 -9
  96. package/dist/input/TextArea.d.mts +16 -7
  97. package/dist/input/TextArea.mjs +2 -2
  98. package/dist/input/index.d.mts +11 -11
  99. package/dist/input/style/index.mjs +5 -2
  100. package/dist/input/style/variants.mjs +2 -1
  101. package/dist/input-number/index.d.mts +20 -7
  102. package/dist/layout/index.d.mts +6 -6
  103. package/dist/layout/layout.d.mts +2 -3
  104. package/dist/locale/index.d.mts +0 -1
  105. package/dist/masonry/Masonry.d.mts +14 -7
  106. package/dist/masonry/MasonryItem.mjs +2 -2
  107. package/dist/mentions/index.d.mts +18 -7
  108. package/dist/mentions/index.mjs +2 -2
  109. package/dist/mentions/style/index.mjs +2 -2
  110. package/dist/menu/MenuContext.d.mts +0 -1
  111. package/dist/menu/MenuDivider.d.mts +2 -2
  112. package/dist/menu/MenuItem.d.mts +3 -3
  113. package/dist/menu/MenuItem.mjs +4 -3
  114. package/dist/menu/SubMenu.d.mts +3 -3
  115. package/dist/menu/SubMenu.mjs +5 -0
  116. package/dist/menu/index.d.mts +5 -5
  117. package/dist/menu/menu.d.mts +42 -10
  118. package/dist/menu/menu.mjs +2 -2
  119. package/dist/menu/style/index.d.mts +1 -1
  120. package/dist/menu/style/vertical.mjs +1 -1
  121. package/dist/message/PurePanel.d.mts +5 -7
  122. package/dist/message/index.mjs +2 -2
  123. package/dist/message/interface.d.mts +20 -4
  124. package/dist/message/useMessage.d.mts +0 -1
  125. package/dist/modal/Modal.d.mts +3 -3
  126. package/dist/modal/confirm.mjs +8 -4
  127. package/dist/modal/interface.d.mts +22 -3
  128. package/dist/modal/style/index.mjs +11 -8
  129. package/dist/notification/PurePanel.d.mts +8 -8
  130. package/dist/notification/index.mjs +2 -2
  131. package/dist/notification/interface.d.mts +18 -5
  132. package/dist/notification/style/index.mjs +8 -8
  133. package/dist/notification/useNotification.d.mts +2 -3
  134. package/dist/package.d.mts +4 -0
  135. package/dist/package.mjs +1 -1
  136. package/dist/pagination/Pagination.d.mts +3 -3
  137. package/dist/pagination/Pagination.mjs +11 -10
  138. package/dist/pagination/interface.d.mts +14 -5
  139. package/dist/pagination/style/bordered.mjs +2 -2
  140. package/dist/pagination/style/index.d.mts +10 -5
  141. package/dist/pagination/style/index.mjs +52 -103
  142. package/dist/popconfirm/PurePanel.d.mts +5 -7
  143. package/dist/popconfirm/index.d.mts +8 -6
  144. package/dist/popconfirm/index.mjs +7 -3
  145. package/dist/popover/index.d.mts +16 -9
  146. package/dist/popover/index.mjs +8 -5
  147. package/dist/progress/Line.mjs +3 -3
  148. package/dist/progress/progress.d.mts +20 -7
  149. package/dist/qrcode/index.d.mts +3 -3
  150. package/dist/qrcode/index.mjs +2 -1
  151. package/dist/qrcode/interface.d.mts +11 -3
  152. package/dist/radio/group.mjs +3 -3
  153. package/dist/radio/index.d.mts +5 -5
  154. package/dist/radio/interface.d.mts +13 -3
  155. package/dist/radio/radio.d.mts +3 -3
  156. package/dist/radio/radio.mjs +1 -1
  157. package/dist/rate/index.d.mts +3 -3
  158. package/dist/result/index.d.mts +22 -7
  159. package/dist/result/index.mjs +11 -6
  160. package/dist/result/noFound.d.mts +2 -2
  161. package/dist/result/serverError.d.mts +2 -2
  162. package/dist/result/unauthorized.d.mts +2 -2
  163. package/dist/segmented/index.d.mts +18 -7
  164. package/dist/select/index.d.mts +48 -20
  165. package/dist/skeleton/Avatar.d.mts +2 -2
  166. package/dist/skeleton/Button.d.mts +2 -2
  167. package/dist/skeleton/Image.d.mts +2 -2
  168. package/dist/skeleton/Input.d.mts +2 -2
  169. package/dist/skeleton/Node.d.mts +3 -3
  170. package/dist/skeleton/Skeleton.d.mts +22 -7
  171. package/dist/slider/index.d.mts +19 -6
  172. package/dist/slider/index.mjs +4 -4
  173. package/dist/space/index.d.mts +18 -9
  174. package/dist/spin/Indicator/Progress.mjs +3 -3
  175. package/dist/spin/index.d.mts +19 -6
  176. package/dist/splitter/SplitBar.mjs +12 -12
  177. package/dist/splitter/Splitter.d.mts +3 -3
  178. package/dist/splitter/Splitter.mjs +1 -1
  179. package/dist/splitter/hooks/useItems.mjs +2 -2
  180. package/dist/splitter/hooks/useResizable.mjs +5 -5
  181. package/dist/splitter/hooks/useResize.mjs +2 -2
  182. package/dist/splitter/index.d.mts +2 -2
  183. package/dist/splitter/interface.d.mts +21 -7
  184. package/dist/splitter/style/index.mjs +2 -28
  185. package/dist/statistic/Statistic.d.mts +21 -6
  186. package/dist/statistic/Statistic.mjs +1 -1
  187. package/dist/statistic/Timer.d.mts +5 -5
  188. package/dist/statistic/index.d.mts +5 -5
  189. package/dist/steps/context.mjs +5 -2
  190. package/dist/steps/index.d.mts +31 -9
  191. package/dist/steps/index.mjs +3 -3
  192. package/dist/style/motion/fade.mjs +25 -0
  193. package/dist/switch/index.d.mts +14 -7
  194. package/dist/switch/index.mjs +2 -2
  195. package/dist/table/Column.d.mts +3 -3
  196. package/dist/table/ColumnGroup.d.mts +3 -3
  197. package/dist/table/InternalTable.d.mts +35 -13
  198. package/dist/table/InternalTable.mjs +12 -6
  199. package/dist/table/Table.d.mts +3 -3
  200. package/dist/table/TableMeasureRowContext.mjs +20 -0
  201. package/dist/table/hooks/useFilter/FilterDropdown.mjs +17 -12
  202. package/dist/table/hooks/useSelection.mjs +1 -1
  203. package/dist/table/interface.d.mts +1 -2
  204. package/dist/table/style/virtual.mjs +1 -1
  205. package/dist/tabs/TabPane.d.mts +3 -3
  206. package/dist/tabs/index.d.mts +27 -11
  207. package/dist/tabs/index.mjs +5 -5
  208. package/dist/tag/CheckableTag.d.mts +3 -3
  209. package/dist/tag/CheckableTagGroup.d.mts +3 -3
  210. package/dist/tag/index.d.mts +16 -7
  211. package/dist/tag/index.mjs +1 -1
  212. package/dist/tag/style/index.mjs +1 -1
  213. package/dist/theme/index.d.mts +1 -2
  214. package/dist/theme/interface/maps/index.d.mts +0 -1
  215. package/dist/theme/useToken.mjs +3 -3
  216. package/dist/theme/util/genStyleUtils.mjs +3 -2
  217. package/dist/time-picker/index.d.mts +38 -14
  218. package/dist/time-picker/index.mjs +1 -1
  219. package/dist/timeline/Timeline.d.mts +49 -14
  220. package/dist/timeline/Timeline.mjs +82 -11
  221. package/dist/timeline/index.d.mts +1 -2
  222. package/dist/timeline/style/horizontal.mjs +73 -0
  223. package/dist/timeline/style/index.d.mts +10 -5
  224. package/dist/timeline/style/index.mjs +93 -137
  225. package/dist/timeline/useItems.mjs +52 -0
  226. package/dist/tooltip/PurePanel.d.mts +2 -2
  227. package/dist/tooltip/UniqueProvider/index.d.mts +2 -2
  228. package/dist/tooltip/index.d.mts +17 -8
  229. package/dist/tooltip/index.mjs +11 -3
  230. package/dist/tooltip/style/index.d.mts +7 -1
  231. package/dist/tooltip/style/index.mjs +3 -2
  232. package/dist/tour/index.d.mts +3 -3
  233. package/dist/tour/index.mjs +1 -1
  234. package/dist/tour/interface.d.mts +29 -3
  235. package/dist/transfer/Actions.d.mts +2 -2
  236. package/dist/transfer/ListItem.mjs +4 -4
  237. package/dist/transfer/Section.d.mts +2 -2
  238. package/dist/transfer/Transfer.d.mts +3 -3
  239. package/dist/transfer/Transfer.mjs +4 -4
  240. package/dist/transfer/index.d.mts +1 -1
  241. package/dist/transfer/interface.d.mts +32 -7
  242. package/dist/transfer/search.d.mts +3 -3
  243. package/dist/tree/DirectoryTree.d.mts +3 -3
  244. package/dist/tree/Tree.d.mts +18 -7
  245. package/dist/tree/index.d.mts +0 -1
  246. package/dist/tree-select/index.d.mts +41 -12
  247. package/dist/tree-select/style/index.d.mts +1 -1
  248. package/dist/typography/Editable.mjs +4 -4
  249. package/dist/typography/Link.d.mts +3 -3
  250. package/dist/typography/Paragraph.d.mts +3 -3
  251. package/dist/typography/Text.d.mts +3 -3
  252. package/dist/typography/Title.d.mts +3 -3
  253. package/dist/typography/Typography.d.mts +3 -3
  254. package/dist/typography/Typography.mjs +2 -12
  255. package/dist/typography/index.d.mts +9 -10
  256. package/dist/typography/interface.d.mts +0 -2
  257. package/dist/typography/style/mixins.mjs +3 -3
  258. package/dist/upload/Dragger.d.mts +3 -3
  259. package/dist/upload/Upload.d.mts +3 -4
  260. package/dist/upload/index.d.mts +3 -3
  261. package/dist/upload/interface.d.mts +13 -4
  262. package/dist/watermark/index.d.mts +2 -2
  263. package/dist/watermark/index.mjs +3 -3
  264. package/package.json +45 -41
  265. package/web-tags.json +1918 -1873
  266. package/web-types.json +6815 -7198
  267. package/dist/timeline/TimelineItem.d.mts +0 -20
  268. package/dist/timeline/TimelineItem.mjs +0 -115
  269. package/dist/timeline/TimelineItemList.mjs +0 -158
@@ -4,14 +4,27 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
4
4
  import "../_util/hooks/index.mjs";
5
5
  import { InputStatus } from "../_util/statusUtils.mjs";
6
6
  import { ComponentBaseProps, Variant } from "../config-provider/context.mjs";
7
- import * as vue175 from "vue";
8
- import { SlotsType } from "vue";
7
+ import * as vue112 from "vue";
8
+ import { CSSProperties, SlotsType } from "vue";
9
9
  import { InputNumberProps, InputNumberRef as VcInputNumberRef, ValueType } from "@v-c/input-number";
10
10
 
11
11
  //#region src/input-number/index.d.ts
12
- type SemanticName = 'root' | 'prefix' | 'suffix' | 'input' | 'actions';
13
- type InputNumberClassNamesType = SemanticClassNamesType<InputNumberProps$1, SemanticName>;
14
- type InputNumberStylesType = SemanticStylesType<InputNumberProps$1, SemanticName>;
12
+ interface InputNumberSemanticClassNames {
13
+ root?: string;
14
+ prefix?: string;
15
+ suffix?: string;
16
+ input?: string;
17
+ actions?: string;
18
+ }
19
+ interface InputNumberSemanticStyles {
20
+ root?: CSSProperties;
21
+ prefix?: CSSProperties;
22
+ suffix?: CSSProperties;
23
+ input?: CSSProperties;
24
+ actions?: CSSProperties;
25
+ }
26
+ type InputNumberClassNamesType = SemanticClassNamesType<InputNumberProps$1, InputNumberSemanticClassNames>;
27
+ type InputNumberStylesType = SemanticStylesType<InputNumberProps$1, InputNumberSemanticStyles>;
15
28
  interface InputNumberStepContext {
16
29
  offset: ValueType;
17
30
  type: 'up' | 'down';
@@ -69,8 +82,8 @@ interface InputNumberSlots {
69
82
  addonAfter?: () => any;
70
83
  default?: () => any;
71
84
  }
72
- declare const InputNumber: vue175.DefineSetupFnComponent<InputNumberProps$1, InputNumberEmits, SlotsType<InputNumberSlots>, InputNumberProps$1 & {
85
+ declare const InputNumber: vue112.DefineSetupFnComponent<InputNumberProps$1, InputNumberEmits, SlotsType<InputNumberSlots>, InputNumberProps$1 & {
73
86
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
74
- }, vue175.PublicProps>;
87
+ }, vue112.PublicProps>;
75
88
  //#endregion
76
89
  export { InputNumber, InputNumberEmits, InputNumberProps$1 as InputNumberProps, InputNumberStepContext, type ValueType, VcInputNumberRef };
@@ -1,14 +1,14 @@
1
1
  import { BasicProps, Layout } from "./layout.mjs";
2
2
  import { SiderEmits, SiderProps, SiderSlots, useSiderCtx } from "./Sider.mjs";
3
- import * as vue177 from "vue";
3
+ import * as vue114 from "vue";
4
4
 
5
5
  //#region src/layout/index.d.ts
6
6
  declare const useLayoutSider: typeof useSiderCtx;
7
- declare const LayoutHeader: vue177.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue177.PublicProps>;
8
- declare const LayoutFooter: vue177.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue177.PublicProps>;
9
- declare const LayoutContent: vue177.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue177.PublicProps>;
10
- declare const LayoutSider: vue177.DefineSetupFnComponent<SiderProps, SiderEmits, vue177.SlotsType<SiderSlots>, SiderProps & {
7
+ declare const LayoutHeader: vue114.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue114.PublicProps>;
8
+ declare const LayoutFooter: vue114.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue114.PublicProps>;
9
+ declare const LayoutContent: vue114.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue114.PublicProps>;
10
+ declare const LayoutSider: vue114.DefineSetupFnComponent<SiderProps, SiderEmits, vue114.SlotsType<SiderSlots>, SiderProps & {
11
11
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
12
- }, vue177.PublicProps>;
12
+ }, vue114.PublicProps>;
13
13
  //#endregion
14
14
  export { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider };
@@ -1,12 +1,11 @@
1
1
  import { ComponentBaseProps } from "../config-provider/context.mjs";
2
- import * as vue330 from "vue";
2
+ import * as vue267 from "vue";
3
3
 
4
4
  //#region src/layout/layout.d.ts
5
-
6
5
  interface BasicProps extends ComponentBaseProps {
7
6
  suffixCls?: string;
8
7
  hasSider?: boolean;
9
8
  }
10
- declare const Layout: vue330.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue330.PublicProps>;
9
+ declare const Layout: vue267.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue267.PublicProps>;
11
10
  //#endregion
12
11
  export { BasicProps, Layout };
@@ -17,7 +17,6 @@ import { UploadLocale } from "../upload/interface.mjs";
17
17
  import { Ref } from "vue";
18
18
 
19
19
  //#region src/locale/index.d.ts
20
-
21
20
  interface Locale {
22
21
  locale: string;
23
22
  Pagination?: PaginationLocale;
@@ -5,14 +5,21 @@ import { RowProps } from "../grid/row.mjs";
5
5
  import "../grid/index.mjs";
6
6
  import { MasonryItemType } from "./MasonryItem.mjs";
7
7
  import { ComponentBaseProps } from "../config-provider/context.mjs";
8
- import * as vue326 from "vue";
9
- import { SlotsType } from "vue";
8
+ import * as vue257 from "vue";
9
+ import { CSSProperties, SlotsType } from "vue";
10
10
 
11
11
  //#region src/masonry/Masonry.d.ts
12
12
  type Key = string | number;
13
- type SemanticName = 'root' | 'item';
14
- type MasonryClassNamesType = SemanticClassNamesType<MasonryProps, SemanticName>;
15
- type MasonryStylesType = SemanticStylesType<MasonryProps, SemanticName>;
13
+ interface MasonrySemanticClassNames {
14
+ root?: string;
15
+ item?: string;
16
+ }
17
+ interface MasonrySemanticStyles {
18
+ root?: CSSProperties;
19
+ item?: CSSProperties;
20
+ }
21
+ type MasonryClassNamesType = SemanticClassNamesType<MasonryProps, MasonrySemanticClassNames>;
22
+ type MasonryStylesType = SemanticStylesType<MasonryProps, MasonrySemanticStyles>;
16
23
  interface MasonryProps extends ComponentBaseProps {
17
24
  classes?: MasonryClassNamesType;
18
25
  styles?: MasonryStylesType;
@@ -43,8 +50,8 @@ interface MasonrySlots {
43
50
  interface MasonryRef {
44
51
  nativeElement: HTMLDivElement;
45
52
  }
46
- declare const Masonry: vue326.DefineSetupFnComponent<MasonryProps, MasonryEmits, SlotsType<MasonrySlots>, MasonryProps & {
53
+ declare const Masonry: vue257.DefineSetupFnComponent<MasonryProps, MasonryEmits, SlotsType<MasonrySlots>, MasonryProps & {
47
54
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
48
- }, vue326.PublicProps>;
55
+ }, vue257.PublicProps>;
49
56
  //#endregion
50
57
  export { Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots };
@@ -7,8 +7,8 @@ const MasonryItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
7
7
  const domRef = shallowRef();
8
8
  let observer = null;
9
9
  const onResize = () => {
10
- const onResize$1 = props?.onResize;
11
- if (onResize$1) onResize$1();
10
+ const onResize = props?.onResize;
11
+ if (onResize) onResize();
12
12
  };
13
13
  watch([() => props.onResize, domRef], (_n, _o, onCleanup) => {
14
14
  if (props.onResize && domRef.value) {
@@ -4,15 +4,26 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
4
4
  import "../_util/hooks/index.mjs";
5
5
  import { InputStatus } from "../_util/statusUtils.mjs";
6
6
  import { ComponentBaseProps, Variant } from "../config-provider/context.mjs";
7
- import * as vue186 from "vue";
8
- import { App, SlotsType } from "vue";
7
+ import * as vue123 from "vue";
8
+ import { App, CSSProperties, SlotsType } from "vue";
9
9
  import { DataDrivenOptionProps, MentionsProps, MentionsRef, Option } from "@v-c/mentions";
10
10
 
11
11
  //#region src/mentions/index.d.ts
12
12
  type MentionPlacement = 'top' | 'bottom';
13
- type SemanticName = 'root' | 'textarea' | 'popup' | 'suffix';
14
- type MentionsClassNamesType = SemanticClassNamesType<MentionProps, SemanticName>;
15
- type MentionsStylesType = SemanticStylesType<MentionProps, SemanticName>;
13
+ interface MentionSemanticClassNames {
14
+ root?: string;
15
+ textarea?: string;
16
+ popup?: string;
17
+ suffix?: string;
18
+ }
19
+ interface MentionSemanticStyles {
20
+ root?: CSSProperties;
21
+ textarea?: CSSProperties;
22
+ popup?: CSSProperties;
23
+ suffix?: CSSProperties;
24
+ }
25
+ type MentionsClassNamesType = SemanticClassNamesType<MentionProps, MentionSemanticClassNames>;
26
+ type MentionsStylesType = SemanticStylesType<MentionProps, MentionSemanticStyles>;
16
27
  interface MentionsOptionProps extends DataDrivenOptionProps {
17
28
  content?: VueNode;
18
29
  }
@@ -66,9 +77,9 @@ interface MentionsEntity {
66
77
  prefix: string;
67
78
  value: string;
68
79
  }
69
- declare const InternalMentions: vue186.DefineSetupFnComponent<MentionProps, MentionsEmits, SlotsType<MentionsSlots>, MentionProps & {
80
+ declare const InternalMentions: vue123.DefineSetupFnComponent<MentionProps, MentionsEmits, SlotsType<MentionsSlots>, MentionProps & {
70
81
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
71
- }, vue186.PublicProps>;
82
+ }, vue123.PublicProps>;
72
83
  declare const Mentions: typeof InternalMentions & {
73
84
  Option: typeof Option;
74
85
  getMentions: (value: string, config?: MentionsConfig) => MentionsEntity[];
@@ -149,7 +149,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
149
149
  "disabled": true
150
150
  }, { default: () => [createVNode(spin_default, { "size": "small" }, null)] }) : props.options !== void 0 ? null : filterEmpty(slots.default?.() ?? []).filter(Boolean);
151
151
  const mergedPopupClassName = clsx(mergedClassNames.value.popup, rootClass.value, hashId.value, cssVarCls.value, rootCls.value);
152
- const classNames$1 = {
152
+ const classNames = {
153
153
  mentions: clsx({
154
154
  [`${prefixCls.value}-disabled`]: mergedDisabled.value,
155
155
  [`${prefixCls.value}-focused`]: focused.value,
@@ -171,7 +171,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
171
171
  "prefixCls": prefixCls.value,
172
172
  "className": mergedClassName,
173
173
  "style": rootStyle,
174
- "classNames": classNames$1,
174
+ "classNames": classNames,
175
175
  "styles": mergedStylesValue,
176
176
  "popupClassName": props.popupClassName,
177
177
  "notFoundContent": notFoundContent.value,
@@ -42,7 +42,7 @@ const genDropdownStyle = (token) => {
42
42
  "fontWeight": "normal",
43
43
  lineHeight,
44
44
  "cursor": "pointer",
45
- "transition": `background ${motionDurationSlow} ease`,
45
+ "transition": `background-color ${motionDurationSlow} ease`,
46
46
  "&:hover": { backgroundColor: controlItemBgHover },
47
47
  "&-disabled": {
48
48
  "color": colorTextDisabled,
@@ -64,7 +64,7 @@ const genDropdownStyle = (token) => {
64
64
  } } };
65
65
  };
66
66
  const genMentionsStyle = (token) => {
67
- const { componentCls, calc, colorText, antCls, colorTextDisabled } = token;
67
+ const { componentCls, colorText, antCls, colorTextDisabled, calc } = token;
68
68
  const [varName, varRef] = genCssVar(antCls, "cmp-mentions");
69
69
  return { [componentCls]: [
70
70
  resetComponent(token),
@@ -1,4 +1,3 @@
1
- import "../_util/hooks/index.mjs";
2
1
  import "./menu.mjs";
3
2
  import "../config-provider/context.mjs";
4
3
  import { Ref } from "vue";
@@ -1,10 +1,10 @@
1
- import * as vue404 from "vue";
1
+ import * as vue391 from "vue";
2
2
 
3
3
  //#region src/menu/MenuDivider.d.ts
4
4
  interface MenuDividerProps {
5
5
  prefixCls?: string;
6
6
  dashed?: boolean;
7
7
  }
8
- declare const MenuDivider: vue404.DefineSetupFnComponent<MenuDividerProps, {}, {}, MenuDividerProps & {}, vue404.PublicProps>;
8
+ declare const MenuDivider: vue391.DefineSetupFnComponent<MenuDividerProps, {}, {}, MenuDividerProps & {}, vue391.PublicProps>;
9
9
  //#endregion
10
10
  export { MenuDivider };
@@ -1,5 +1,5 @@
1
1
  import { EmptyEmit, VueNode } from "../_util/type.mjs";
2
- import * as vue406 from "vue";
2
+ import * as vue393 from "vue";
3
3
  import { SlotsType } from "vue";
4
4
  import { MenuItemType } from "@v-c/menu";
5
5
 
@@ -24,8 +24,8 @@ interface MenuItemSlots {
24
24
  title: () => any;
25
25
  extra: () => any;
26
26
  }
27
- declare const MenuItem: vue406.DefineSetupFnComponent<MenuItemProps$1, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps$1 & {
27
+ declare const MenuItem: vue393.DefineSetupFnComponent<MenuItemProps$1, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps$1 & {
28
28
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
29
- }, vue406.PublicProps>;
29
+ }, vue393.PublicProps>;
30
30
  //#endregion
31
31
  export { MenuItem, MenuItemProps$1 as MenuItemProps, MenuItemSlots };
@@ -6,7 +6,7 @@ import { useSiderCtx } from "../layout/Sider.mjs";
6
6
  import { useMenuContext } from "./MenuContext.mjs";
7
7
  import { createVNode, defineComponent, isVNode, mergeProps } from "vue";
8
8
  import { clsx } from "@v-c/util";
9
- import { filterEmpty } from "@v-c/util/dist/props-util";
9
+ import { filterEmpty, getAttrStyleAndClass } from "@v-c/util/dist/props-util";
10
10
  import { omit } from "es-toolkit";
11
11
  import { Item } from "@v-c/menu";
12
12
 
@@ -21,6 +21,7 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
21
21
  const extra = getSlotPropsFnRun(slots, props, "extra");
22
22
  const icon = getSlotPropsFnRun(slots, props, "icon");
23
23
  const title = getSlotPropsFnRun(slots, props, "title");
24
+ const { className, style } = getAttrStyleAndClass(attrs);
24
25
  const { danger } = props;
25
26
  const { prefixCls, firstLevel, direction, disableMenuItemTitleTooltip, inlineCollapsed: isInlineCollapsed, styles, classes } = menuContext.value;
26
27
  const children = filterEmpty(slots?.default?.());
@@ -53,8 +54,8 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
53
54
  "class": clsx(firstLevel ? classes?.item : classes?.subMenu?.item, {
54
55
  [`${prefixCls}-item-danger`]: !!danger,
55
56
  [`${prefixCls}-item-only-child`]: (icon ? childrenLength + 1 : childrenLength) === 1
56
- }, attrs.class),
57
- "style": [attrs.style, firstLevel ? styles?.item : styles?.subMenu?.item],
57
+ }, className),
58
+ "style": [firstLevel ? styles?.item : styles?.subMenu?.item, style],
58
59
  "title": typeof title === "string" ? title : void 0
59
60
  }), { default: () => [icon ? createVNode(icon, {
60
61
  class: clsx(`${prefixCls}-item-icon`, firstLevel ? classes?.itemIcon : classes?.subMenu?.itemIcon),
@@ -1,6 +1,6 @@
1
1
  import { EmptyEmit, VueNode } from "../_util/type.mjs";
2
2
  import { SubMenuType } from "./interface.mjs";
3
- import * as vue410 from "vue";
3
+ import * as vue397 from "vue";
4
4
  import { SlotsType } from "vue";
5
5
 
6
6
  //#region src/menu/SubMenu.d.ts
@@ -12,8 +12,8 @@ interface SubMenuSlots {
12
12
  icon: () => any;
13
13
  default: () => any;
14
14
  }
15
- declare const SubMenu: vue410.DefineSetupFnComponent<SubMenuProps, EmptyEmit, SlotsType<SubMenuSlots>, SubMenuProps & {
15
+ declare const SubMenu: vue397.DefineSetupFnComponent<SubMenuProps, EmptyEmit, SlotsType<SubMenuSlots>, SubMenuProps & {
16
16
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
17
- }, vue410.PublicProps>;
17
+ }, vue397.PublicProps>;
18
18
  //#endregion
19
19
  export { SubMenu, SubMenuProps };
@@ -140,6 +140,11 @@ const SubMenu$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
140
140
  required: false,
141
141
  default: void 0
142
142
  },
143
+ popupRender: {
144
+ type: Function,
145
+ required: false,
146
+ default: void 0
147
+ },
143
148
  onClick: {
144
149
  type: Function,
145
150
  required: false,
@@ -4,7 +4,7 @@ import { ItemType } from "./interface.mjs";
4
4
  import { MenuEmits, MenuProps as MenuProps$1, MenuSlots } from "./menu.mjs";
5
5
  import { SubMenu as SubMenu$1, SubMenuProps } from "./SubMenu.mjs";
6
6
  import { MenuDivider } from "./MenuDivider.mjs";
7
- import * as vue188 from "vue";
7
+ import * as vue125 from "vue";
8
8
  import { SlotsType } from "vue";
9
9
  import { MenuItemGroupProps, MenuRef } from "@v-c/menu";
10
10
 
@@ -14,12 +14,12 @@ interface MenuRef$1 {
14
14
  menu: MenuRef | null;
15
15
  focus: (options?: FocusOptions) => void;
16
16
  }
17
- declare const Menu: vue188.DefineSetupFnComponent<MenuProps$1, MenuEmits, SlotsType<MenuSlots>, MenuProps$1 & {
17
+ declare const Menu: vue125.DefineSetupFnComponent<MenuProps$1, MenuEmits, SlotsType<MenuSlots>, MenuProps$1 & {
18
18
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
19
- }, vue188.PublicProps>;
20
- declare const MenuItem: vue188.DefineSetupFnComponent<MenuItemProps$1, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps$1 & {
19
+ }, vue125.PublicProps>;
20
+ declare const MenuItem: vue125.DefineSetupFnComponent<MenuItemProps$1, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps$1 & {
21
21
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
22
- }, vue188.PublicProps>;
22
+ }, vue125.PublicProps>;
23
23
  declare const _default: typeof Menu & {
24
24
  Item: typeof MenuItem$1;
25
25
  SubMenu: typeof SubMenu$1;
@@ -1,20 +1,52 @@
1
- import { SemanticClassNames, SemanticStyles } from "../_util/hooks/useMergeSemantic.mjs";
2
- import "../_util/hooks/index.mjs";
3
1
  import { ItemType } from "./interface.mjs";
4
2
  import { MenuTheme } from "./MenuContext.mjs";
5
3
  import { CSSProperties, SlotsType } from "vue";
6
4
  import { MenuInfo, MenuItemProps, MenuProps, RenderIconInfo, SelectInfo } from "@v-c/menu";
7
5
 
8
6
  //#region src/menu/menu.d.ts
9
- type SemanticName = 'root' | 'itemTitle' | 'list' | 'item' | 'itemIcon' | 'itemContent';
10
- type SubMenuSemanticName = 'item' | 'itemTitle' | 'list' | 'itemContent' | 'itemIcon';
11
- type MenuClassNamesSchemaType = SemanticClassNames<SemanticName> & {
12
- popup?: SemanticClassNames<'root'> | string;
13
- subMenu?: SemanticClassNames<SubMenuSemanticName>;
7
+ interface MenuSemanticClassNames {
8
+ root?: string;
9
+ itemTitle?: string;
10
+ list?: string;
11
+ item?: string;
12
+ itemIcon?: string;
13
+ itemContent?: string;
14
+ }
15
+ interface MenuSemanticStyles {
16
+ root?: CSSProperties;
17
+ itemTitle?: CSSProperties;
18
+ list?: CSSProperties;
19
+ item?: CSSProperties;
20
+ itemIcon?: CSSProperties;
21
+ itemContent?: CSSProperties;
22
+ }
23
+ interface SubMenuSemanticClassNames {
24
+ item?: string;
25
+ itemTitle?: string;
26
+ list?: string;
27
+ itemContent?: string;
28
+ itemIcon?: string;
29
+ }
30
+ interface SubMenuSemanticStyles {
31
+ item?: CSSProperties;
32
+ itemTitle?: CSSProperties;
33
+ list?: CSSProperties;
34
+ itemContent?: CSSProperties;
35
+ itemIcon?: CSSProperties;
36
+ }
37
+ interface MenuPopupSemanticClassNames {
38
+ root?: string;
39
+ }
40
+ interface MenuPopupSemanticStyles {
41
+ root?: CSSProperties;
42
+ }
43
+ type MenuClassNamesSchemaType = MenuSemanticClassNames & {
44
+ popup?: MenuPopupSemanticClassNames | string;
45
+ subMenu?: SubMenuSemanticClassNames;
14
46
  };
15
- type MenuStylesSchemaType = SemanticStyles<SemanticName> & {
16
- popup?: SemanticStyles<'root'> | CSSProperties;
17
- subMenu?: SemanticStyles<SubMenuSemanticName>;
47
+ type MenuStylesSchemaType = MenuSemanticStyles & {
48
+ popup?: MenuPopupSemanticStyles | CSSProperties;
49
+ subMenu?: SubMenuSemanticStyles;
18
50
  };
19
51
  type MenuClassNamesType = MenuClassNamesSchemaType | ((info: {
20
52
  props: MenuProps$1;
@@ -105,12 +105,12 @@ const InternalMenu = /* @__PURE__ */ defineComponent((props, { slots, emit, attr
105
105
  expose({ menu: menuRef });
106
106
  return () => {
107
107
  const expandIcon = slots?.expandIcon ?? props?.expandIcon;
108
- const mergedExpandIcon = (props$1) => {
108
+ const mergedExpandIcon = (props) => {
109
109
  if (typeof expandIcon === "function" || isEmptyIcon(expandIcon)) return expandIcon || null;
110
110
  if (typeof overrideObj.value?.expandIcon === "function" || isEmptyIcon(overrideObj.value?.expandIcon)) return overrideObj.value.expandIcon || null;
111
111
  if (typeof contextExpandIcon.value === "function" || isEmptyIcon(contextExpandIcon.value)) return contextExpandIcon.value || null;
112
112
  const mergedIcon = expandIcon ?? overrideObj?.value.expandIcon ?? contextExpandIcon.value;
113
- const icon = typeof mergedIcon === "function" ? mergedIcon?.(props$1) : mergedIcon;
113
+ const icon = typeof mergedIcon === "function" ? mergedIcon?.(props) : mergedIcon;
114
114
  const iconChild = filterEmpty(Array.isArray(icon) ? icon : [icon])[0];
115
115
  if (isVNode(iconChild)) return createVNode(iconChild, { class: `${prefixCls.value}-submenu-expand-icon` });
116
116
  };
@@ -1,5 +1,5 @@
1
1
  import "../../theme/internal.mjs";
2
- import { CSSProperties, Ref } from "vue";
2
+ import { CSSProperties } from "vue";
3
3
 
4
4
  //#region src/menu/style/index.d.ts
5
5
  /** Component only token. Which will handle additional calculation of alias token */
@@ -66,7 +66,7 @@ const getVerticalStyle = (token) => {
66
66
  "alignItems": "center",
67
67
  "transition": [
68
68
  `border-color ${motionDurationSlow}`,
69
- `background ${motionDurationSlow}`,
69
+ `background-color ${motionDurationSlow}`,
70
70
  `padding ${motionDurationFast} ${motionEaseOut}`
71
71
  ].join(","),
72
72
  [`> ${componentCls}-title-content`]: {
@@ -1,16 +1,14 @@
1
1
  import { VueNode } from "../_util/type.mjs";
2
- import { SemanticClassNames, SemanticStyles } from "../_util/hooks/useMergeSemantic.mjs";
3
- import "../_util/hooks/index.mjs";
4
- import { ArgsClassNamesType, ArgsStylesType, NoticeType, SemanticName } from "./interface.mjs";
5
- import * as vue396 from "vue";
2
+ import { ArgsClassNamesType, ArgsStylesType, MessageSemanticClassNames, MessageSemanticStyles, NoticeType } from "./interface.mjs";
3
+ import * as vue399 from "vue";
6
4
 
7
5
  //#region src/message/PurePanel.d.ts
8
6
  interface PureContentProps {
9
7
  prefixCls: string;
10
8
  type?: NoticeType;
11
9
  icon?: VueNode;
12
- classNames?: SemanticClassNames<SemanticName>;
13
- styles?: SemanticStyles<SemanticName>;
10
+ classNames?: MessageSemanticClassNames;
11
+ styles?: MessageSemanticStyles;
14
12
  }
15
13
  interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children' | 'classNames' | 'styles'> {
16
14
  content?: VueNode;
@@ -31,6 +29,6 @@ interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children'
31
29
  styles?: ArgsStylesType;
32
30
  }
33
31
  /** @private Internal Component. Do not use in your production. */
34
- declare const PurePanel: vue396.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue396.PublicProps>;
32
+ declare const PurePanel: vue399.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue399.PublicProps>;
35
33
  //#endregion
36
34
  export { PurePanel };
@@ -83,8 +83,8 @@ const GlobalHolderWrapper = /* @__PURE__ */ defineComponent((props) => {
83
83
  });
84
84
  }
85
85
  }, { immediate: true });
86
+ const global = globalConfig();
86
87
  return () => {
87
- const global = globalConfig();
88
88
  const holderNode = createVNode(GlobalHolder, {
89
89
  "ref": holderRef,
90
90
  "sync": sync,
@@ -94,7 +94,7 @@ const GlobalHolderWrapper = /* @__PURE__ */ defineComponent((props) => {
94
94
  return createVNode(config_provider_default, {
95
95
  "prefixCls": global.getRootPrefixCls(),
96
96
  "iconPrefixCls": global.getIconPrefixCls(),
97
- "theme": global.getTheme()
97
+ "theme": global.theme.value
98
98
  }, _isSlot(dom) ? dom : { default: () => [dom] });
99
99
  };
100
100
  }, { props: { onReady: {
@@ -6,9 +6,18 @@ import { Key } from "@v-c/util/dist/type";
6
6
 
7
7
  //#region src/message/interface.d.ts
8
8
  type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading';
9
- type SemanticName = 'root' | 'icon' | 'content';
10
- type ArgsClassNamesType = SemanticClassNamesType<ArgsProps, SemanticName>;
11
- type ArgsStylesType = SemanticStylesType<ArgsProps, SemanticName>;
9
+ interface MessageSemanticClassNames {
10
+ root?: string;
11
+ icon?: string;
12
+ content?: string;
13
+ }
14
+ interface MessageSemanticStyles {
15
+ root?: CSSProperties;
16
+ icon?: CSSProperties;
17
+ content?: CSSProperties;
18
+ }
19
+ type ArgsClassNamesType = SemanticClassNamesType<ArgsProps, MessageSemanticClassNames>;
20
+ type ArgsStylesType = SemanticStylesType<ArgsProps, MessageSemanticStyles>;
12
21
  interface ConfigOptions {
13
22
  top?: string | number;
14
23
  duration?: number;
@@ -62,6 +71,11 @@ interface ArgsProps {
62
71
  * @descEN keep the timer running or not on hover
63
72
  */
64
73
  pauseOnHover?: boolean;
74
+ /**
75
+ * @descCN 消息通知的应用上下文
76
+ * @descEN The application context of the message notification
77
+ */
78
+ appContext?: any;
65
79
  }
66
80
  type JointContent = VueNode | ArgsProps;
67
81
  interface MessageType extends PromiseLike<boolean> {
@@ -72,11 +86,13 @@ type TypeOpen = (content: JointContent,
72
86
  * @descCN 消息通知持续显示的时间,也可以直接使用 onClose。
73
87
  * @descEN You can also use onClose directly to determine how long the message notification continues to be displayed.
74
88
  */
89
+
75
90
  duration?: number | VoidFunction,
76
91
  /**
77
92
  * @descCN 消息通知关闭时进行调用的回调函数
78
93
  * @descEN The callback function called when the message notification is closed
79
94
  */
95
+
80
96
  onClose?: VoidFunction) => MessageType;
81
97
  interface MessageInstance {
82
98
  info: TypeOpen;
@@ -88,4 +104,4 @@ interface MessageInstance {
88
104
  destroy: (key?: Key) => void;
89
105
  }
90
106
  //#endregion
91
- export { ArgsClassNamesType, ArgsProps, ArgsStylesType, ConfigOptions, MessageInstance, MessageType, NoticeType, SemanticName, TypeOpen };
107
+ export { ArgsClassNamesType, ArgsProps, ArgsStylesType, ConfigOptions, MessageInstance, MessageSemanticClassNames, MessageSemanticStyles, MessageType, NoticeType, TypeOpen };
@@ -3,7 +3,6 @@ import { MaybeRef } from "@v-c/util/dist/type";
3
3
  import * as vue_jsx_runtime15 from "vue/jsx-runtime";
4
4
 
5
5
  //#region src/message/useMessage.d.ts
6
-
7
6
  declare function useMessage(messageConfig?: ConfigOptions): readonly [MessageInstance, () => vue_jsx_runtime15.JSX.Element];
8
7
  //#endregion
9
8
  export { useMessage };
@@ -1,10 +1,10 @@
1
1
  import { ModalEmits, ModalProps, ModalSlots } from "./interface.mjs";
2
- import * as vue320 from "vue";
2
+ import * as vue289 from "vue";
3
3
  import { SlotsType } from "vue";
4
4
 
5
5
  //#region src/modal/Modal.d.ts
6
- declare const Modal: vue320.DefineSetupFnComponent<ModalProps, ModalEmits, SlotsType<ModalSlots>, ModalProps & {
6
+ declare const Modal: vue289.DefineSetupFnComponent<ModalProps, ModalEmits, SlotsType<ModalSlots>, ModalProps & {
7
7
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
8
- }, vue320.PublicProps>;
8
+ }, vue289.PublicProps>;
9
9
  //#endregion
10
10
  export { Modal };
@@ -2,7 +2,7 @@ import { devUseWarning, isDev } from "../_util/warning.mjs";
2
2
  import { globalConfig } from "../config-provider/index.mjs";
3
3
  import ConfirmDialog_default from "./ConfirmDialog.mjs";
4
4
  import destroyFns_default from "./destroyFns.mjs";
5
- import { createVNode, defineComponent, render } from "vue";
5
+ import { createVNode, defineComponent, render, watch } from "vue";
6
6
 
7
7
  //#region src/modal/confirm.tsx
8
8
  let defaultRootPrefixCls = "";
@@ -362,15 +362,19 @@ function confirm(config) {
362
362
  function renderWithProps(props) {
363
363
  const rootPrefixCls = global.getPrefixCls(void 0, getRootPrefixCls());
364
364
  const iconPrefixCls = global.getIconPrefixCls?.();
365
- const theme = global.getTheme?.();
365
+ const theme = global.theme.value;
366
366
  const prefixCls = props.prefixCls ?? `${rootPrefixCls}-modal`;
367
- render(createVNode(ConfirmDialogWrapper, {
367
+ const vnode = createVNode(ConfirmDialogWrapper, {
368
368
  ...props,
369
369
  prefixCls,
370
370
  rootPrefixCls,
371
371
  iconPrefixCls,
372
372
  theme
373
- }), container);
373
+ });
374
+ watch(() => global.theme.value, () => {
375
+ vnode.component?.update?.();
376
+ });
377
+ render(vnode, container);
374
378
  }
375
379
  function close(...args) {
376
380
  currentConfig = {
@@ -12,9 +12,28 @@ import { CSSProperties } from "vue";
12
12
  import { DialogProps } from "@v-c/dialog";
13
13
 
14
14
  //#region src/modal/interface.d.ts
15
- type SemanticName = 'root' | 'header' | 'body' | 'footer' | 'container' | 'title' | 'wrapper' | 'mask';
16
- type ModalClassNamesType = SemanticClassNamesType<ModalProps, SemanticName>;
17
- type ModalStylesType = SemanticStylesType<ModalProps, SemanticName>;
15
+ interface ModalSemanticClassNames {
16
+ root?: string;
17
+ header?: string;
18
+ body?: string;
19
+ footer?: string;
20
+ container?: string;
21
+ title?: string;
22
+ wrapper?: string;
23
+ mask?: string;
24
+ }
25
+ interface ModalSemanticStyles {
26
+ root?: CSSProperties;
27
+ header?: CSSProperties;
28
+ body?: CSSProperties;
29
+ footer?: CSSProperties;
30
+ container?: CSSProperties;
31
+ title?: CSSProperties;
32
+ wrapper?: CSSProperties;
33
+ mask?: CSSProperties;
34
+ }
35
+ type ModalClassNamesType = SemanticClassNamesType<ModalProps, ModalSemanticClassNames>;
36
+ type ModalStylesType = SemanticStylesType<ModalProps, ModalSemanticStyles>;
18
37
  interface ModalCommonProps extends Omit<DialogProps, 'footer' | 'width' | 'onClose' | 'animation' | 'maskAnimation' | 'transitionName' | 'maskTransitionName' | 'mask' | 'classNames' | 'styles' | 'modalRender' | 'rootStyle' | 'style' | OmitFocusType> {
19
38
  footer?: VueNode | ((params: {
20
39
  originNode: VueNode;