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
@@ -1,8 +1,6 @@
1
- import { SemanticClassNames, SemanticStyles } from "../_util/hooks/useMergeSemantic.mjs";
2
- import "../_util/hooks/index.mjs";
3
- import { PopoverSemanticName } from "../popover/index.mjs";
1
+ import { PopoverSemanticClassNames, PopoverSemanticStyles } from "../popover/index.mjs";
4
2
  import { PopconfirmProps } from "./index.mjs";
5
- import * as vue57 from "vue";
3
+ import * as vue19 from "vue";
6
4
  import { CSSProperties } from "vue";
7
5
 
8
6
  //#region src/popconfirm/PurePanel.d.ts
@@ -16,13 +14,13 @@ interface OverlayProps extends Pick<PopconfirmProps, 'icon' | 'okButtonProps' |
16
14
  onConfirm?: (e?: MouseEvent) => void;
17
15
  onCancel?: (e?: MouseEvent) => void;
18
16
  onPopupClick?: (e: MouseEvent) => void;
19
- classes?: SemanticClassNames<PopoverSemanticName>;
20
- styles?: SemanticStyles<PopoverSemanticName>;
17
+ classes?: PopoverSemanticClassNames;
18
+ styles?: PopoverSemanticStyles;
21
19
  }
22
20
  interface PurePanelProps extends Omit<OverlayProps, 'prefixCls'>, Pick<PopconfirmProps, 'placement'> {
23
21
  class?: string;
24
22
  style?: CSSProperties;
25
23
  }
26
- declare const PurePanel: vue57.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue57.PublicProps>;
24
+ declare const PurePanel: vue19.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue19.PublicProps>;
27
25
  //#endregion
28
26
  export { PopconfirmLocale, PurePanel };
@@ -4,14 +4,16 @@ import "../_util/hooks/index.mjs";
4
4
  import { TooltipEmits } from "../tooltip/index.mjs";
5
5
  import { ButtonProps, LegacyButtonType } from "../button/Button.mjs";
6
6
  import "../button/index.mjs";
7
- import { PopoverProps, PopoverSemanticName } from "../popover/index.mjs";
7
+ import { PopoverProps, PopoverSemanticClassNames, PopoverSemanticStyles } from "../popover/index.mjs";
8
8
  import { PurePanel } from "./PurePanel.mjs";
9
- import * as vue75 from "vue";
9
+ import * as vue129 from "vue";
10
10
  import { App, SlotsType } from "vue";
11
11
 
12
12
  //#region src/popconfirm/index.d.ts
13
- type PopconfirmClassNamesType = SemanticClassNamesType<PopconfirmProps, PopoverSemanticName>;
14
- type PopconfirmStylesType = SemanticStylesType<PopconfirmProps, PopoverSemanticName>;
13
+ type PopconfirmSemanticClassNames = PopoverSemanticClassNames;
14
+ type PopconfirmSemanticStyles = PopoverSemanticStyles;
15
+ type PopconfirmClassNamesType = SemanticClassNamesType<PopconfirmProps, PopconfirmSemanticClassNames>;
16
+ type PopconfirmStylesType = SemanticStylesType<PopconfirmProps, PopconfirmSemanticStyles>;
15
17
  interface PopconfirmProps extends Omit<PopoverProps, 'title' | 'content' | 'classes' | 'styles'> {
16
18
  title?: VueNode;
17
19
  description?: VueNode;
@@ -40,9 +42,9 @@ interface PopconfirmSlots {
40
42
  okText?: () => any;
41
43
  cancelText?: () => any;
42
44
  }
43
- declare const InternalPopconfirm: vue75.DefineSetupFnComponent<PopconfirmProps, PopconfirmEmits, SlotsType<PopconfirmSlots>, PopconfirmProps & {
45
+ declare const InternalPopconfirm: vue129.DefineSetupFnComponent<PopconfirmProps, PopconfirmEmits, SlotsType<PopconfirmSlots>, PopconfirmProps & {
44
46
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
45
- }, vue75.PublicProps>;
47
+ }, vue129.PublicProps>;
46
48
  type PopconfirmType = typeof InternalPopconfirm & {
47
49
  install: (app: App) => void;
48
50
  _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
@@ -31,10 +31,11 @@ const OMITTED_PROP_KEYS = [
31
31
  ];
32
32
  const defaultIcon = createVNode(ExclamationCircleFilled, null, null);
33
33
  const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose, emit }) => {
34
- const { class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, arrow: contextArrow, prefixCls } = useComponentBaseConfig("popconfirm", props, ["arrow"]);
34
+ const { class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, arrow: contextArrow, trigger: contextTrigger, prefixCls } = useComponentBaseConfig("popconfirm", props, ["arrow", "trigger"]);
35
35
  const { arrow: arrowProp, classes, styles } = toPropsRefs(props, "arrow", "classes", "styles");
36
36
  const [hashId, cssVarCls] = style_default(prefixCls);
37
37
  const mergedArrow = useMergedArrow_default(arrowProp, contextArrow);
38
+ const mergedTrigger = computed(() => props?.trigger ?? contextTrigger.value ?? "click");
38
39
  const popoverRef = shallowRef();
39
40
  const open = shallowRef(props.open ?? props.defaultOpen ?? false);
40
41
  watchEffect(() => {
@@ -67,7 +68,10 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
67
68
  nativeElement: computed(() => popoverRef.value?.nativeElement),
68
69
  popupElement: computed(() => popoverRef.value?.popupElement)
69
70
  });
70
- const mergedProps = computed(() => ({ ...props }));
71
+ const mergedProps = computed(() => ({
72
+ ...props,
73
+ trigger: mergedTrigger.value
74
+ }));
71
75
  const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
72
76
  const rootClassNames = computed(() => clsx(prefixCls.value, hashId.value, cssVarCls.value, contextClassName.value, mergedClassNames.value.root));
73
77
  return () => {
@@ -96,6 +100,7 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
96
100
  "styles": mergedStyles.value
97
101
  }, null);
98
102
  return createVNode(popover_default, mergeProps(attrs, removeUndefined(restProps), {
103
+ "trigger": mergedTrigger.value,
99
104
  "ref": popoverRef,
100
105
  "open": open.value,
101
106
  "arrow": mergedArrow.value,
@@ -341,7 +346,6 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
341
346
  }
342
347
  }, {
343
348
  placement: "top",
344
- trigger: "click",
345
349
  okType: "primary"
346
350
  }),
347
351
  name: "APopconfirm",
@@ -1,14 +1,21 @@
1
1
  import { VueNode } from "../_util/type.mjs";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
3
3
  import "../_util/hooks/index.mjs";
4
- import { SemanticName, TooltipEmits, TooltipProps } from "../tooltip/index.mjs";
5
- import * as vue77 from "vue";
6
- import { App, SlotsType } from "vue";
4
+ import { TooltipEmits, TooltipProps, TooltipSemanticClassNames, TooltipSemanticStyles } from "../tooltip/index.mjs";
5
+ import * as vue131 from "vue";
6
+ import { App, CSSProperties, SlotsType } from "vue";
7
7
 
8
8
  //#region src/popover/index.d.ts
9
- type PopoverSemanticName = SemanticName | 'title' | 'content';
10
- type PopoverClassNamesType = SemanticClassNamesType<PopoverProps, PopoverSemanticName>;
11
- type PopoverStylesType = SemanticStylesType<PopoverProps, PopoverSemanticName>;
9
+ type PopoverSemanticClassNames = TooltipSemanticClassNames & {
10
+ title?: string;
11
+ content?: string;
12
+ };
13
+ type PopoverSemanticStyles = TooltipSemanticStyles & {
14
+ title?: CSSProperties;
15
+ content?: CSSProperties;
16
+ };
17
+ type PopoverClassNamesType = SemanticClassNamesType<PopoverProps, PopoverSemanticClassNames>;
18
+ type PopoverStylesType = SemanticStylesType<PopoverProps, PopoverSemanticStyles>;
12
19
  interface PopoverProps extends TooltipProps {
13
20
  title?: VueNode;
14
21
  content?: VueNode;
@@ -23,12 +30,12 @@ interface PopoverSlots {
23
30
  content: () => any;
24
31
  default: () => any;
25
32
  }
26
- declare const InternalPopover: vue77.DefineSetupFnComponent<PopoverProps, PopoverEmits, SlotsType<PopoverSlots>, PopoverProps & {
33
+ declare const InternalPopover: vue131.DefineSetupFnComponent<PopoverProps, PopoverEmits, SlotsType<PopoverSlots>, PopoverProps & {
27
34
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
28
- }, vue77.PublicProps>;
35
+ }, vue131.PublicProps>;
29
36
  declare const Popover: typeof InternalPopover & {
30
37
  install: (app: App) => void;
31
38
  _InternalPanelDoNotUseOrYouWillBeFired: any;
32
39
  };
33
40
  //#endregion
34
- export { Popover, PopoverProps, PopoverSemanticName };
41
+ export { Popover, PopoverProps, PopoverSemanticClassNames, PopoverSemanticStyles };
@@ -17,11 +17,12 @@ function _isSlot(s) {
17
17
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
18
18
  }
19
19
  const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose, emit }) => {
20
- const { getPrefixCls, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, arrow: contextArrow, prefixCls } = useComponentBaseConfig("popover", props, ["arrow"]);
20
+ const { getPrefixCls, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, arrow: contextArrow, trigger: contextTrigger, prefixCls } = useComponentBaseConfig("popover", props, ["arrow", "trigger"]);
21
21
  const { arrow: popoverArrow, classes, styles } = toPropsRefs(props, "arrow", "classes", "styles");
22
22
  const rootCls = computed(() => getPrefixCls());
23
23
  const [hashId, cssVarCls] = style_default(prefixCls);
24
24
  const mergedArrow = useMergedArrow_default(popoverArrow, contextArrow);
25
+ const mergedTrigger = computed(() => props?.trigger ?? contextTrigger.value ?? "hover");
25
26
  const popoverRef = shallowRef();
26
27
  const forceAlign = () => {
27
28
  popoverRef.value?.forceAlign?.();
@@ -31,7 +32,10 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
31
32
  nativeElement: computed(() => popoverRef.value?.nativeElement),
32
33
  popupElement: computed(() => popoverRef.value?.popupElement)
33
34
  });
34
- const mergedProps = computed(() => ({ ...props }));
35
+ const mergedProps = computed(() => ({
36
+ ...props,
37
+ trigger: mergedTrigger.value
38
+ }));
35
39
  const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
36
40
  const open = shallowRef(props?.open ?? props?.defaultOpen ?? false);
37
41
  watchEffect(() => {
@@ -51,7 +55,7 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
51
55
  return () => {
52
56
  let _slot;
53
57
  const children = filterEmpty(slots?.default?.() ?? [])?.[0];
54
- const { placement, trigger, mouseLeaveDelay, mouseEnterDelay, motion, ...restProps } = props;
58
+ const { placement, mouseLeaveDelay, mouseEnterDelay, motion, ...restProps } = props;
55
59
  const titleNode = getSlotPropsFnRun(slots, props, "title");
56
60
  const contentNode = getSlotPropsFnRun(slots, props, "content");
57
61
  const rootClassNames = clsx(hashId.value, cssVarCls.value, contextClassName.value, mergedClassNames.value.root);
@@ -59,7 +63,7 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
59
63
  "unique": false,
60
64
  "arrow": mergedArrow.value,
61
65
  "placement": placement,
62
- "trigger": trigger,
66
+ "trigger": mergedTrigger.value,
63
67
  "mouseLeaveDelay": mouseLeaveDelay,
64
68
  "mouseEnterDelay": mouseEnterDelay
65
69
  }, removeUndefined(restProps), {
@@ -249,7 +253,6 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
249
253
  }
250
254
  }, {
251
255
  placement: "top",
252
- trigger: "hover",
253
256
  mouseEnterDelay: .1,
254
257
  mouseLeaveDelay: .1
255
258
  }),
@@ -44,10 +44,10 @@ function sortGradient(gradients) {
44
44
  function handleGradient(strokeColor, directionConfig) {
45
45
  const { from = presetPrimaryColors.blue, to = presetPrimaryColors.blue, direction = directionConfig === "rtl" ? "to left" : "to right", ...rest } = strokeColor;
46
46
  if (Object.keys(rest).length !== 0) {
47
- const background$1 = `linear-gradient(${direction}, ${sortGradient(rest)})`;
47
+ const background = `linear-gradient(${direction}, ${sortGradient(rest)})`;
48
48
  return {
49
- background: background$1,
50
- [LineStrokeColorVar]: background$1
49
+ background,
50
+ [LineStrokeColorVar]: background
51
51
  };
52
52
  }
53
53
  const background = `linear-gradient(${direction}, ${from}, ${to})`;
@@ -2,13 +2,26 @@ import { EmptyEmit } from "../_util/type.mjs";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
3
3
  import "../_util/hooks/index.mjs";
4
4
  import { ComponentBaseProps } from "../config-provider/context.mjs";
5
- import * as vue90 from "vue";
6
- import { AriaAttributes, SlotsType } from "vue";
5
+ import * as vue133 from "vue";
6
+ import { AriaAttributes, CSSProperties, SlotsType } from "vue";
7
7
 
8
8
  //#region src/progress/progress.d.ts
9
- type SemanticName = 'root' | 'body' | 'rail' | 'track' | 'indicator';
10
- type ProgressClassNamesType = SemanticClassNamesType<ProgressProps, SemanticName>;
11
- type ProgressStylesType = SemanticStylesType<ProgressProps, SemanticName>;
9
+ interface ProgressSemanticClassNames {
10
+ root?: string;
11
+ body?: string;
12
+ rail?: string;
13
+ track?: string;
14
+ indicator?: string;
15
+ }
16
+ interface ProgressSemanticStyles {
17
+ root?: CSSProperties;
18
+ body?: CSSProperties;
19
+ rail?: CSSProperties;
20
+ track?: CSSProperties;
21
+ indicator?: CSSProperties;
22
+ }
23
+ type ProgressClassNamesType = SemanticClassNamesType<ProgressProps, ProgressSemanticClassNames>;
24
+ type ProgressStylesType = SemanticStylesType<ProgressProps, ProgressSemanticStyles>;
12
25
  declare const ProgressTypes: readonly ["line", "circle", "dashboard"];
13
26
  type ProgressType = (typeof ProgressTypes)[number];
14
27
  declare const ProgressStatuses: readonly ["normal", "exception", "active", "success"];
@@ -67,8 +80,8 @@ interface ProgressProps extends ComponentBaseProps, ProgressAriaProps {
67
80
  interface ProgressSlots {
68
81
  default?: () => any;
69
82
  }
70
- declare const Progress: vue90.DefineSetupFnComponent<ProgressProps, EmptyEmit, SlotsType<ProgressSlots>, ProgressProps & {
83
+ declare const Progress: vue133.DefineSetupFnComponent<ProgressProps, EmptyEmit, SlotsType<ProgressSlots>, ProgressProps & {
71
84
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
72
- }, vue90.PublicProps>;
85
+ }, vue133.PublicProps>;
73
86
  //#endregion
74
87
  export { Progress, ProgressAriaProps, ProgressProps };
@@ -1,10 +1,10 @@
1
1
  import { QRCodeEmits, QRCodeProps, QRCodeSlots } from "./interface.mjs";
2
- import * as vue198 from "vue";
2
+ import * as vue135 from "vue";
3
3
  import { SlotsType } from "vue";
4
4
 
5
5
  //#region src/qrcode/index.d.ts
6
- declare const QRCode: vue198.DefineSetupFnComponent<QRCodeProps, QRCodeEmits, SlotsType<QRCodeSlots>, QRCodeProps & {
6
+ declare const QRCode: vue135.DefineSetupFnComponent<QRCodeProps, QRCodeEmits, SlotsType<QRCodeSlots>, QRCodeProps & {
7
7
  [x: `on${Capitalize<string>}`]: (() => any) | undefined;
8
- }, vue198.PublicProps>;
8
+ }, vue135.PublicProps>;
9
9
  //#endregion
10
10
  export { QRCode };
@@ -39,7 +39,7 @@ const QRCode = /* @__PURE__ */ defineComponent((props, { emit, attrs, slots }) =
39
39
  });
40
40
  const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
41
41
  return () => {
42
- const { type, value, size, errorLevel, bgColor, icon, boostLevel, bordered, rootClass, status } = props;
42
+ const { type, value, size, errorLevel, bgColor, icon, boostLevel, bordered, rootClass, status, marginSize } = props;
43
43
  const statusRender = slots?.statusRender ?? props?.statusRender;
44
44
  const a11yProps = pickAttrs(attrs, true);
45
45
  const restProps = omit(attrs, Object.keys(a11yProps));
@@ -57,6 +57,7 @@ const QRCode = /* @__PURE__ */ defineComponent((props, { emit, attrs, slots }) =
57
57
  },
58
58
  imageSettings: icon ? imageSettings.value : void 0,
59
59
  boostLevel,
60
+ marginSize,
60
61
  ...a11yProps
61
62
  };
62
63
  if (isDev) {
@@ -2,6 +2,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
2
2
  import "../_util/hooks/index.mjs";
3
3
  import { Locale } from "../locale/index.mjs";
4
4
  import { ComponentBaseProps } from "../config-provider/context.mjs";
5
+ import { CSSProperties } from "vue";
5
6
  import { QRProps } from "@v-c/qrcode";
6
7
 
7
8
  //#region src/qrcode/interface.d.ts
@@ -11,9 +12,16 @@ interface StatusRenderInfo {
11
12
  locale: Locale['QRCode'];
12
13
  onRefresh?: () => void;
13
14
  }
14
- type QRCodeSemanticName = 'root' | 'cover';
15
- type QRCodeClassNamesType = SemanticClassNamesType<QRCodeProps, QRCodeSemanticName>;
16
- type QRCodeStylesType = SemanticStylesType<QRCodeProps, QRCodeSemanticName>;
15
+ interface QRCodeSemanticClassNames {
16
+ root?: string;
17
+ cover?: string;
18
+ }
19
+ interface QRCodeSemanticStyles {
20
+ root?: CSSProperties;
21
+ cover?: CSSProperties;
22
+ }
23
+ type QRCodeClassNamesType = SemanticClassNamesType<QRCodeProps, QRCodeSemanticClassNames>;
24
+ type QRCodeStylesType = SemanticStylesType<QRCodeProps, QRCodeSemanticStyles>;
17
25
  interface QRCodeProps extends QRProps, ComponentBaseProps {
18
26
  type?: 'canvas' | 'svg';
19
27
  icon?: string;
@@ -3,9 +3,9 @@ import { getAttrStyleAndClass as getAttrStyleAndClass$1 } from "../_util/hooks/u
3
3
  import { useOrientation } from "../_util/hooks/useOrientation.mjs";
4
4
  import "../_util/hooks/index.mjs";
5
5
  import { toPropsRefs } from "../_util/tools.mjs";
6
- import { checkRenderNode } from "../_util/vueNode.mjs";
7
6
  import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.mjs";
8
7
  import { useSize } from "../config-provider/hooks/useSize.mjs";
8
+ import { checkRenderNode } from "../_util/vueNode.mjs";
9
9
  import { useFormItemContext, useFormItemInputContext } from "../form/context.mjs";
10
10
  import { toNamePathStr } from "../form/hooks/useForm.mjs";
11
11
  import { useRadioGroupContextProvider } from "./context.mjs";
@@ -68,7 +68,7 @@ const RadioGroup = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
68
68
  const labelRender = slots?.labelRender ?? props?.labelRender;
69
69
  if (options && options.length) childrenToRender = options.map((option, index) => {
70
70
  if (typeof option === "string" || typeof option === "number") {
71
- const _label$1 = labelRender ? labelRender({
71
+ const _label = labelRender ? labelRender({
72
72
  item: {
73
73
  label: option,
74
74
  value: option
@@ -81,7 +81,7 @@ const RadioGroup = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
81
81
  "disabled": disabled,
82
82
  "value": option,
83
83
  "checked": value.value === option
84
- }, _isSlot(_label$1) ? _label$1 : { default: () => [_label$1] });
84
+ }, _isSlot(_label) ? _label : { default: () => [_label] });
85
85
  }
86
86
  const _label = labelRender ? labelRender({
87
87
  item: option,
@@ -4,15 +4,15 @@ import "../checkbox/index.mjs";
4
4
  import { RadioChangeEvent, RadioEmits, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioProps, RadioSlots } from "./interface.mjs";
5
5
  import { InternalRadio } from "./radio.mjs";
6
6
  import "../index.mjs";
7
- import * as vue130 from "vue";
7
+ import * as vue139 from "vue";
8
8
 
9
9
  //#region src/radio/index.d.ts
10
10
  type RadioOptionType = CheckboxOptionType;
11
- declare const RadioGroup: vue130.DefineSetupFnComponent<RadioGroupProps, RadioGroupEmits, vue130.SlotsType<RadioGroupSlots>, RadioGroupProps & {
11
+ declare const RadioGroup: vue139.DefineSetupFnComponent<RadioGroupProps, RadioGroupEmits, vue139.SlotsType<RadioGroupSlots>, RadioGroupProps & {
12
12
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
13
- }, vue130.PublicProps>;
14
- declare const RadioButton: vue130.DefineSetupFnComponent<AbstractCheckboxProps, CheckboxEmits, vue130.SlotsType<CheckboxSlots>, AbstractCheckboxProps & {
13
+ }, vue139.PublicProps>;
14
+ declare const RadioButton: vue139.DefineSetupFnComponent<AbstractCheckboxProps, CheckboxEmits, vue139.SlotsType<CheckboxSlots>, AbstractCheckboxProps & {
15
15
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
16
- }, vue130.PublicProps>;
16
+ }, vue139.PublicProps>;
17
17
  //#endregion
18
18
  export { RadioButton, RadioGroup, RadioOptionType };
@@ -4,6 +4,7 @@ import { Orientation } from "../_util/hooks/useOrientation.mjs";
4
4
  import "../_util/hooks/index.mjs";
5
5
  import { AbstractCheckboxProps, CheckboxEmits } from "../checkbox/Checkbox.mjs";
6
6
  import { AbstractCheckboxGroupProps, CheckboxOptionType } from "../checkbox/Group.mjs";
7
+ import { CSSProperties } from "vue";
7
8
 
8
9
  //#region src/radio/interface.d.ts
9
10
  type RadioGroupButtonStyle = 'outline' | 'solid';
@@ -41,9 +42,18 @@ interface RadioGroupSlots {
41
42
  index: number;
42
43
  }) => any;
43
44
  }
44
- type RadioSemanticName = 'root' | 'icon' | 'label';
45
- type RadioClassNamesType = SemanticClassNamesType<RadioProps, RadioSemanticName>;
46
- type RadioStylesType = SemanticStylesType<RadioProps, RadioSemanticName>;
45
+ interface RadioSemanticClassNames {
46
+ root?: string;
47
+ icon?: string;
48
+ label?: string;
49
+ }
50
+ interface RadioSemanticStyles {
51
+ root?: CSSProperties;
52
+ icon?: CSSProperties;
53
+ label?: CSSProperties;
54
+ }
55
+ type RadioClassNamesType = SemanticClassNamesType<RadioProps, RadioSemanticClassNames>;
56
+ type RadioStylesType = SemanticStylesType<RadioProps, RadioSemanticStyles>;
47
57
  interface RadioProps extends AbstractCheckboxProps {
48
58
  /**
49
59
  * Control the appearance for Radio to display as button or not
@@ -1,10 +1,10 @@
1
1
  import { RadioEmits, RadioProps, RadioSlots } from "./interface.mjs";
2
- import * as vue424 from "vue";
2
+ import * as vue403 from "vue";
3
3
  import { SlotsType } from "vue";
4
4
 
5
5
  //#region src/radio/radio.d.ts
6
- declare const InternalRadio: vue424.DefineSetupFnComponent<RadioProps, RadioEmits, SlotsType<RadioSlots>, RadioProps & {
6
+ declare const InternalRadio: vue403.DefineSetupFnComponent<RadioProps, RadioEmits, SlotsType<RadioSlots>, RadioProps & {
7
7
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
8
- }, vue424.PublicProps>;
8
+ }, vue403.PublicProps>;
9
9
  //#endregion
10
10
  export { InternalRadio };
@@ -3,11 +3,11 @@ import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useTo
3
3
  import { devUseWarning, isDev } from "../_util/warning.mjs";
4
4
  import "../_util/hooks/index.mjs";
5
5
  import { toPropsRefs } from "../_util/tools.mjs";
6
- import { checkRenderNode } from "../_util/vueNode.mjs";
7
6
  import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.mjs";
8
7
  import { useDisabledContext } from "../config-provider/DisabledContext.mjs";
9
8
  import { TARGET_CLS } from "../_util/wave/interface.mjs";
10
9
  import wave_default from "../_util/wave/index.mjs";
10
+ import { checkRenderNode } from "../_util/vueNode.mjs";
11
11
  import { useFormItemInputContext } from "../form/context.mjs";
12
12
  import { useRadioGroupContext, useRadioOptionTypeContext } from "./context.mjs";
13
13
  import useBubbleLock from "../checkbox/useBubbleLock.mjs";
@@ -1,5 +1,5 @@
1
1
  import { TooltipProps } from "../tooltip/index.mjs";
2
- import * as vue136 from "vue";
2
+ import * as vue137 from "vue";
3
3
  import { RateProps } from "@v-c/rate";
4
4
 
5
5
  //#region src/rate/index.d.ts
@@ -18,8 +18,8 @@ interface RateEmits {
18
18
  'mouseleave': (e: FocusEvent) => void;
19
19
  [key: string]: (...args: any[]) => void;
20
20
  }
21
- declare const Rate: vue136.DefineSetupFnComponent<RateProps$1, RateEmits, {}, RateProps$1 & {
21
+ declare const Rate: vue137.DefineSetupFnComponent<RateProps$1, RateEmits, {}, RateProps$1 & {
22
22
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
23
- }, vue136.PublicProps>;
23
+ }, vue137.PublicProps>;
24
24
  //#endregion
25
25
  export { Rate, RateEmits, RateProps$1 as RateProps };
@@ -5,8 +5,8 @@ import { NoFound } from "./noFound.mjs";
5
5
  import { ServerError } from "./serverError.mjs";
6
6
  import { Unauthorized } from "./unauthorized.mjs";
7
7
  import { ComponentBaseProps } from "../config-provider/context.mjs";
8
- import * as vue128 from "vue";
9
- import { SlotsType } from "vue";
8
+ import * as vue151 from "vue";
9
+ import { CSSProperties, SlotsType } from "vue";
10
10
 
11
11
  //#region src/result/index.d.ts
12
12
  declare const IconMap: Record<string, any>;
@@ -17,9 +17,24 @@ declare const ExceptionMap: {
17
17
  };
18
18
  type ExceptionStatusType = 403 | 404 | 500 | '403' | '404' | '500';
19
19
  type ResultStatusType = ExceptionStatusType | keyof typeof IconMap;
20
- type SemanticName = 'root' | 'title' | 'subTitle' | 'body' | 'extra' | 'icon';
21
- type ResultClassNamesType = SemanticClassNamesType<ResultProps, SemanticName>;
22
- type ResultStylesType = SemanticStylesType<ResultProps, SemanticName>;
20
+ interface ResultSemanticClassNames {
21
+ root?: string;
22
+ title?: string;
23
+ subTitle?: string;
24
+ body?: string;
25
+ extra?: string;
26
+ icon?: string;
27
+ }
28
+ interface ResultSemanticStyles {
29
+ root?: CSSProperties;
30
+ title?: CSSProperties;
31
+ subTitle?: CSSProperties;
32
+ body?: CSSProperties;
33
+ extra?: CSSProperties;
34
+ icon?: CSSProperties;
35
+ }
36
+ type ResultClassNamesType = SemanticClassNamesType<ResultProps, ResultSemanticClassNames>;
37
+ type ResultStylesType = SemanticStylesType<ResultProps, ResultSemanticStyles>;
23
38
  interface ResultProps extends ComponentBaseProps {
24
39
  icon?: VueNode;
25
40
  status?: ResultStatusType;
@@ -36,9 +51,9 @@ interface ResultSlots {
36
51
  extra?: () => any;
37
52
  default?: () => any;
38
53
  }
39
- declare const Result: vue128.DefineSetupFnComponent<ResultProps, EmptyEmit, SlotsType<ResultSlots>, ResultProps & {
54
+ declare const Result: vue151.DefineSetupFnComponent<ResultProps, EmptyEmit, SlotsType<ResultSlots>, ResultProps & {
40
55
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
41
- }, vue128.PublicProps>;
56
+ }, vue151.PublicProps>;
42
57
  declare const _default: typeof Result & {
43
58
  PRESENTED_IMAGE_403: (typeof ExceptionMap)["403"];
44
59
  PRESENTED_IMAGE_404: (typeof ExceptionMap)["404"];
@@ -6,10 +6,11 @@ import noFound_default from "./noFound.mjs";
6
6
  import serverError_default from "./serverError.mjs";
7
7
  import style_default from "./style/index.mjs";
8
8
  import unauthorized_default from "./unauthorized.mjs";
9
- import { computed, createVNode, defineComponent, mergeDefaults } from "vue";
9
+ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
10
10
  import { classNames } from "@v-c/util";
11
- import { filterEmpty } from "@v-c/util/dist/props-util";
11
+ import { filterEmpty, getAttrStyleAndClass } from "@v-c/util/dist/props-util";
12
12
  import { CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, WarningFilled } from "@antdv-next/icons";
13
+ import pickAttrs from "@v-c/util/dist/pickAttrs";
13
14
 
14
15
  //#region src/result/index.tsx
15
16
  const IconMap = {
@@ -86,7 +87,8 @@ const Result = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
86
87
  const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
87
88
  return () => {
88
89
  const { status, rootClass } = props;
89
- const rootClassNames = classNames(prefixCls.value, `${prefixCls.value}-${status}`, attrs.class, contextClassName.value, rootClass, { [`${prefixCls.value}-rtl`]: direction.value === "rtl" }, hashId.value, cssVarCls.value, mergedClassNames.value.root);
90
+ const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
91
+ const rootClassNames = classNames(prefixCls.value, `${prefixCls.value}-${status}`, className, contextClassName.value, rootClass, { [`${prefixCls.value}-rtl`]: direction.value === "rtl" }, hashId.value, cssVarCls.value, mergedClassNames.value.root);
90
92
  const subTitle = getSlotPropsFnRun(slots, props, "subTitle");
91
93
  const title = getSlotPropsFnRun(slots, props, "title");
92
94
  const extra = getSlotPropsFnRun(slots, props, "extra");
@@ -95,17 +97,20 @@ const Result = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
95
97
  const rootStyles = [
96
98
  mergedStyles.value.root,
97
99
  contextStyle.value,
98
- attrs.style
100
+ style
99
101
  ];
100
102
  const titleClassNames = clsx$1(`${prefixCls.value}-title`, mergedClassNames.value.title);
101
103
  const subTitleClassNames = clsx$1(`${prefixCls.value}-subtitle`, mergedClassNames.value.subTitle);
102
104
  const extraClassNames = clsx$1(`${prefixCls.value}-extra`, mergedClassNames.value.extra);
103
105
  const bodyClassNames = clsx$1(`${prefixCls.value}-body`, mergedClassNames.value.body);
104
106
  const iconClassNames = clsx$1(`${prefixCls.value}-icon`, { [`${prefixCls.value}-image`]: ExceptionStatus.includes(`${status}`) }, mergedClassNames.value.icon);
105
- return createVNode("div", {
107
+ return createVNode("div", mergeProps(pickAttrs(restAttrs, {
108
+ aria: true,
109
+ data: true
110
+ }), {
106
111
  "class": rootClassNames,
107
112
  "style": rootStyles
108
- }, [
113
+ }), [
109
114
  createVNode(Icon, {
110
115
  "class": iconClassNames,
111
116
  "status": status,
@@ -1,6 +1,6 @@
1
- import * as vue_jsx_runtime10 from "vue/jsx-runtime";
1
+ import * as vue_jsx_runtime3 from "vue/jsx-runtime";
2
2
 
3
3
  //#region src/result/noFound.d.ts
4
- declare function NoFound(): vue_jsx_runtime10.JSX.Element;
4
+ declare function NoFound(): vue_jsx_runtime3.JSX.Element;
5
5
  //#endregion
6
6
  export { NoFound };
@@ -1,6 +1,6 @@
1
- import * as vue_jsx_runtime12 from "vue/jsx-runtime";
1
+ import * as vue_jsx_runtime2 from "vue/jsx-runtime";
2
2
 
3
3
  //#region src/result/serverError.d.ts
4
- declare function ServerError(): vue_jsx_runtime12.JSX.Element;
4
+ declare function ServerError(): vue_jsx_runtime2.JSX.Element;
5
5
  //#endregion
6
6
  export { ServerError };
@@ -1,6 +1,6 @@
1
- import * as vue_jsx_runtime11 from "vue/jsx-runtime";
1
+ import * as vue_jsx_runtime1 from "vue/jsx-runtime";
2
2
 
3
3
  //#region src/result/unauthorized.d.ts
4
- declare function Unauthorized(): vue_jsx_runtime11.JSX.Element;
4
+ declare function Unauthorized(): vue_jsx_runtime1.JSX.Element;
5
5
  //#endregion
6
6
  export { Unauthorized };
@@ -4,12 +4,23 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
4
4
  import { Orientation } from "../_util/hooks/useOrientation.mjs";
5
5
  import "../_util/hooks/index.mjs";
6
6
  import { TooltipProps } from "../tooltip/index.mjs";
7
- import * as vue196 from "vue";
8
- import { App, SlotsType } from "vue";
7
+ import * as vue145 from "vue";
8
+ import { App, CSSProperties, SlotsType } from "vue";
9
9
  import { SegmentedLabeledOption, SegmentedProps, SegmentedRawOption, SegmentedValue } from "@v-c/segmented";
10
10
 
11
11
  //#region src/segmented/index.d.ts
12
- type SemanticName = 'root' | 'icon' | 'label' | 'item';
12
+ interface SegmentedSemanticClassNames {
13
+ root?: string;
14
+ icon?: string;
15
+ label?: string;
16
+ item?: string;
17
+ }
18
+ interface SegmentedSemanticStyles {
19
+ root?: CSSProperties;
20
+ icon?: CSSProperties;
21
+ label?: CSSProperties;
22
+ item?: CSSProperties;
23
+ }
13
24
  interface SegmentedLabeledOptionWithoutIcon<ValueType = SegmentedValue> extends SegmentedLabeledOption<ValueType> {
14
25
  label: SegmentedLabeledOption['label'];
15
26
  tooltip?: string | TooltipProps;
@@ -22,8 +33,8 @@ interface SegmentedLabeledOptionWithIcon<ValueType = SegmentedValue> extends Omi
22
33
  }
23
34
  type SegmentedLabeledOption$1<ValueType = SegmentedValue> = SegmentedLabeledOptionWithIcon<ValueType> | SegmentedLabeledOptionWithoutIcon<ValueType>;
24
35
  type SegmentedOptions<T = SegmentedRawOption> = (T | SegmentedLabeledOption$1<T>)[];
25
- type SegmentedClassNamesType = SemanticClassNamesType<SegmentedProps$1, SemanticName>;
26
- type SegmentedStylesType = SemanticStylesType<SegmentedProps$1, SemanticName>;
36
+ type SegmentedClassNamesType = SemanticClassNamesType<SegmentedProps$1, SegmentedSemanticClassNames>;
37
+ type SegmentedStylesType = SemanticStylesType<SegmentedProps$1, SegmentedSemanticStyles>;
27
38
  interface SegmentedProps$1 extends Omit<SegmentedProps, 'size' | 'options' | 'itemRender' | 'styles' | 'classNames' | 'onChange'> {
28
39
  options: SegmentedOptions;
29
40
  rootClass?: string;
@@ -48,9 +59,9 @@ interface SegmentedSlots {
48
59
  iconRender: (option: SegmentedLabeledOption$1) => any;
49
60
  labelRender: (option: SegmentedLabeledOption$1) => any;
50
61
  }
51
- declare const InternalSegmented: vue196.DefineSetupFnComponent<SegmentedProps$1, SegmentedEmits, SlotsType<SegmentedSlots>, SegmentedProps$1 & {
62
+ declare const InternalSegmented: vue145.DefineSetupFnComponent<SegmentedProps$1, SegmentedEmits, SlotsType<SegmentedSlots>, SegmentedProps$1 & {
52
63
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
53
- }, vue196.PublicProps>;
64
+ }, vue145.PublicProps>;
54
65
  declare const Segmented: typeof InternalSegmented & {
55
66
  install: (app: App) => void;
56
67
  };