antdv-next 1.0.0-beta.2 → 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 (265) 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 +18 -2
  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/cascader/index.d.mts +28 -7
  44. package/dist/checkbox/Checkbox.d.mts +16 -7
  45. package/dist/checkbox/Checkbox.mjs +1 -1
  46. package/dist/checkbox/Group.d.mts +4 -3
  47. package/dist/checkbox/Group.mjs +11 -2
  48. package/dist/collapse/Collapse.d.mts +19 -6
  49. package/dist/collapse/Collapse.mjs +1 -1
  50. package/dist/color-picker/ColorPicker.d.mts +3 -3
  51. package/dist/color-picker/interface.d.mts +15 -7
  52. package/dist/color-picker/style/input.mjs +2 -0
  53. package/dist/components.d.mts +2 -3
  54. package/dist/config-provider/context.d.mts +58 -12
  55. package/dist/config-provider/context.mjs +3 -3
  56. package/dist/config-provider/define.d.mts +7 -1
  57. package/dist/config-provider/index.d.mts +3 -4
  58. package/dist/config-provider/index.mjs +82 -8
  59. package/dist/date-picker/generatePicker/index.d.mts +15 -15
  60. package/dist/date-picker/generatePicker/interface.d.mts +37 -10
  61. package/dist/date-picker/hooks/useMergedPickerSemantic.mjs +2 -2
  62. package/dist/date-picker/index.d.mts +25 -25
  63. package/dist/descriptions/Cell.mjs +5 -5
  64. package/dist/descriptions/DescriptionsContext.d.mts +13 -0
  65. package/dist/descriptions/Item.d.mts +3 -3
  66. package/dist/descriptions/hooks/useRow.mjs +7 -7
  67. package/dist/descriptions/index.d.mts +22 -7
  68. package/dist/divider/index.d.mts +15 -5
  69. package/dist/drawer/DrawerPanel.d.mts +28 -3
  70. package/dist/drawer/DrawerPanel.mjs +3 -3
  71. package/dist/drawer/index.d.mts +4 -4
  72. package/dist/drawer/index.mjs +4 -0
  73. package/dist/drawer/style/index.mjs +9 -2
  74. package/dist/dropdown/dropdown.d.mts +20 -7
  75. package/dist/empty/index.d.mts +18 -7
  76. package/dist/flex/index.d.mts +3 -3
  77. package/dist/float-button/FloatButton.d.mts +3 -4
  78. package/dist/float-button/FloatButtonGroup.d.mts +22 -3
  79. package/dist/form/Form.d.mts +16 -7
  80. package/dist/form/FormItem/index.d.mts +3 -3
  81. package/dist/form/FormItem/index.mjs +1 -1
  82. package/dist/form/FormItemInput.d.mts +0 -1
  83. package/dist/image/PreviewGroup.d.mts +3 -5
  84. package/dist/image/index.d.mts +34 -14
  85. package/dist/index.d.mts +3 -4
  86. package/dist/input/Input.d.mts +17 -4
  87. package/dist/input/Input.mjs +2 -2
  88. package/dist/input/OTP/index.d.mts +13 -4
  89. package/dist/input/Password.mjs +3 -3
  90. package/dist/input/Search.d.mts +21 -9
  91. package/dist/input/TextArea.d.mts +16 -7
  92. package/dist/input/TextArea.mjs +2 -2
  93. package/dist/input/index.d.mts +11 -11
  94. package/dist/input/style/index.mjs +5 -2
  95. package/dist/input/style/variants.mjs +2 -1
  96. package/dist/input-number/index.d.mts +20 -7
  97. package/dist/layout/index.d.mts +6 -6
  98. package/dist/layout/layout.d.mts +0 -1
  99. package/dist/locale/index.d.mts +0 -1
  100. package/dist/masonry/Masonry.d.mts +14 -7
  101. package/dist/masonry/MasonryItem.mjs +2 -2
  102. package/dist/mentions/index.d.mts +18 -7
  103. package/dist/mentions/index.mjs +2 -2
  104. package/dist/mentions/style/index.mjs +2 -2
  105. package/dist/menu/MenuContext.d.mts +0 -1
  106. package/dist/menu/MenuDivider.d.mts +2 -2
  107. package/dist/menu/MenuItem.d.mts +3 -3
  108. package/dist/menu/MenuItem.mjs +4 -3
  109. package/dist/menu/SubMenu.d.mts +3 -3
  110. package/dist/menu/SubMenu.mjs +5 -0
  111. package/dist/menu/index.d.mts +5 -5
  112. package/dist/menu/menu.d.mts +42 -10
  113. package/dist/menu/menu.mjs +2 -2
  114. package/dist/menu/style/index.d.mts +1 -1
  115. package/dist/menu/style/vertical.mjs +1 -1
  116. package/dist/message/PurePanel.d.mts +5 -7
  117. package/dist/message/index.mjs +2 -2
  118. package/dist/message/interface.d.mts +20 -4
  119. package/dist/message/useMessage.d.mts +0 -1
  120. package/dist/modal/Modal.d.mts +3 -3
  121. package/dist/modal/confirm.mjs +8 -4
  122. package/dist/modal/interface.d.mts +22 -3
  123. package/dist/modal/style/index.mjs +11 -8
  124. package/dist/notification/PurePanel.d.mts +8 -8
  125. package/dist/notification/index.mjs +2 -2
  126. package/dist/notification/interface.d.mts +18 -5
  127. package/dist/notification/style/index.mjs +8 -8
  128. package/dist/notification/useNotification.d.mts +2 -3
  129. package/dist/package.d.mts +4 -0
  130. package/dist/package.mjs +1 -1
  131. package/dist/pagination/Pagination.d.mts +3 -3
  132. package/dist/pagination/Pagination.mjs +11 -10
  133. package/dist/pagination/interface.d.mts +14 -5
  134. package/dist/pagination/style/bordered.mjs +2 -2
  135. package/dist/pagination/style/index.d.mts +10 -5
  136. package/dist/pagination/style/index.mjs +52 -103
  137. package/dist/popconfirm/PurePanel.d.mts +5 -7
  138. package/dist/popconfirm/index.d.mts +8 -6
  139. package/dist/popconfirm/index.mjs +7 -3
  140. package/dist/popover/index.d.mts +16 -9
  141. package/dist/popover/index.mjs +8 -5
  142. package/dist/progress/Line.mjs +3 -3
  143. package/dist/progress/progress.d.mts +20 -7
  144. package/dist/qrcode/index.d.mts +3 -3
  145. package/dist/qrcode/index.mjs +2 -1
  146. package/dist/qrcode/interface.d.mts +11 -3
  147. package/dist/radio/group.mjs +3 -3
  148. package/dist/radio/index.d.mts +5 -5
  149. package/dist/radio/interface.d.mts +13 -3
  150. package/dist/radio/radio.d.mts +3 -3
  151. package/dist/radio/radio.mjs +1 -1
  152. package/dist/rate/index.d.mts +3 -3
  153. package/dist/result/index.d.mts +22 -7
  154. package/dist/result/index.mjs +11 -6
  155. package/dist/result/noFound.d.mts +2 -2
  156. package/dist/result/serverError.d.mts +2 -2
  157. package/dist/result/unauthorized.d.mts +2 -2
  158. package/dist/segmented/index.d.mts +18 -7
  159. package/dist/select/index.d.mts +48 -20
  160. package/dist/skeleton/Avatar.d.mts +2 -2
  161. package/dist/skeleton/Button.d.mts +2 -2
  162. package/dist/skeleton/Image.d.mts +2 -2
  163. package/dist/skeleton/Input.d.mts +2 -2
  164. package/dist/skeleton/Node.d.mts +3 -3
  165. package/dist/skeleton/Skeleton.d.mts +22 -7
  166. package/dist/slider/index.d.mts +19 -6
  167. package/dist/slider/index.mjs +4 -4
  168. package/dist/space/index.d.mts +18 -9
  169. package/dist/spin/Indicator/Progress.mjs +3 -3
  170. package/dist/spin/index.d.mts +19 -6
  171. package/dist/splitter/SplitBar.mjs +12 -12
  172. package/dist/splitter/Splitter.d.mts +3 -3
  173. package/dist/splitter/Splitter.mjs +1 -1
  174. package/dist/splitter/hooks/useItems.mjs +2 -2
  175. package/dist/splitter/hooks/useResizable.mjs +5 -5
  176. package/dist/splitter/hooks/useResize.mjs +2 -2
  177. package/dist/splitter/index.d.mts +2 -2
  178. package/dist/splitter/interface.d.mts +21 -7
  179. package/dist/splitter/style/index.mjs +2 -28
  180. package/dist/statistic/Statistic.d.mts +21 -6
  181. package/dist/statistic/Statistic.mjs +1 -1
  182. package/dist/statistic/Timer.d.mts +5 -5
  183. package/dist/statistic/index.d.mts +5 -5
  184. package/dist/steps/context.mjs +5 -2
  185. package/dist/steps/index.d.mts +31 -9
  186. package/dist/steps/index.mjs +3 -3
  187. package/dist/style/motion/fade.mjs +25 -0
  188. package/dist/switch/index.d.mts +14 -7
  189. package/dist/switch/index.mjs +2 -2
  190. package/dist/table/Column.d.mts +3 -3
  191. package/dist/table/ColumnGroup.d.mts +3 -3
  192. package/dist/table/InternalTable.d.mts +35 -13
  193. package/dist/table/InternalTable.mjs +12 -6
  194. package/dist/table/Table.d.mts +3 -3
  195. package/dist/table/TableMeasureRowContext.mjs +20 -0
  196. package/dist/table/hooks/useFilter/FilterDropdown.mjs +17 -12
  197. package/dist/table/hooks/useSelection.mjs +1 -1
  198. package/dist/table/interface.d.mts +1 -2
  199. package/dist/table/style/virtual.mjs +1 -1
  200. package/dist/tabs/TabPane.d.mts +3 -3
  201. package/dist/tabs/index.d.mts +27 -11
  202. package/dist/tabs/index.mjs +5 -5
  203. package/dist/tag/CheckableTag.d.mts +3 -3
  204. package/dist/tag/CheckableTagGroup.d.mts +3 -3
  205. package/dist/tag/index.d.mts +16 -7
  206. package/dist/tag/index.mjs +1 -1
  207. package/dist/tag/style/index.mjs +1 -1
  208. package/dist/theme/index.d.mts +1 -2
  209. package/dist/theme/interface/maps/index.d.mts +0 -1
  210. package/dist/theme/useToken.mjs +3 -3
  211. package/dist/theme/util/genStyleUtils.mjs +3 -2
  212. package/dist/time-picker/index.d.mts +38 -14
  213. package/dist/time-picker/index.mjs +1 -1
  214. package/dist/timeline/Timeline.d.mts +49 -14
  215. package/dist/timeline/Timeline.mjs +82 -11
  216. package/dist/timeline/index.d.mts +1 -2
  217. package/dist/timeline/style/horizontal.mjs +73 -0
  218. package/dist/timeline/style/index.d.mts +10 -5
  219. package/dist/timeline/style/index.mjs +93 -137
  220. package/dist/timeline/useItems.mjs +52 -0
  221. package/dist/tooltip/PurePanel.d.mts +2 -2
  222. package/dist/tooltip/UniqueProvider/index.d.mts +2 -2
  223. package/dist/tooltip/index.d.mts +17 -8
  224. package/dist/tooltip/index.mjs +11 -3
  225. package/dist/tooltip/style/index.d.mts +7 -1
  226. package/dist/tooltip/style/index.mjs +3 -2
  227. package/dist/tour/index.d.mts +3 -3
  228. package/dist/tour/index.mjs +1 -1
  229. package/dist/tour/interface.d.mts +29 -3
  230. package/dist/transfer/Actions.d.mts +2 -2
  231. package/dist/transfer/ListItem.mjs +4 -4
  232. package/dist/transfer/Section.d.mts +2 -2
  233. package/dist/transfer/Transfer.d.mts +3 -3
  234. package/dist/transfer/Transfer.mjs +4 -4
  235. package/dist/transfer/index.d.mts +1 -1
  236. package/dist/transfer/interface.d.mts +32 -7
  237. package/dist/transfer/search.d.mts +3 -3
  238. package/dist/tree/DirectoryTree.d.mts +3 -3
  239. package/dist/tree/Tree.d.mts +18 -7
  240. package/dist/tree/index.d.mts +0 -1
  241. package/dist/tree-select/index.d.mts +41 -12
  242. package/dist/tree-select/style/index.d.mts +1 -1
  243. package/dist/typography/Editable.mjs +4 -4
  244. package/dist/typography/Link.d.mts +3 -3
  245. package/dist/typography/Paragraph.d.mts +3 -3
  246. package/dist/typography/Text.d.mts +3 -3
  247. package/dist/typography/Title.d.mts +3 -3
  248. package/dist/typography/Typography.d.mts +3 -3
  249. package/dist/typography/Typography.mjs +2 -12
  250. package/dist/typography/index.d.mts +9 -10
  251. package/dist/typography/interface.d.mts +0 -2
  252. package/dist/typography/style/mixins.mjs +3 -3
  253. package/dist/upload/Dragger.d.mts +3 -3
  254. package/dist/upload/Upload.d.mts +3 -4
  255. package/dist/upload/index.d.mts +3 -3
  256. package/dist/upload/interface.d.mts +13 -4
  257. package/dist/watermark/index.d.mts +2 -2
  258. package/dist/watermark/index.mjs +3 -3
  259. package/package.json +45 -41
  260. package/web-tags.json +1108 -1067
  261. package/web-types.json +3861 -4257
  262. package/dist/timeline/TimelineItem.d.mts +0 -20
  263. package/dist/timeline/TimelineItem.mjs +0 -115
  264. package/dist/timeline/TimelineItemList.mjs +0 -158
  265. /package/dist/{reset.css/reset.css → reset.css} +0 -0
@@ -1,11 +1,11 @@
1
1
  import { ComponentBaseProps } from "../config-provider/context.mjs";
2
2
  import { AppConfig } from "./context.mjs";
3
- import * as vue224 from "vue";
3
+ import * as vue239 from "vue";
4
4
 
5
5
  //#region src/app/App.d.ts
6
6
  interface AppProps extends ComponentBaseProps, AppConfig {
7
7
  component?: any;
8
8
  }
9
- declare const App$1: vue224.DefineSetupFnComponent<AppProps, {}, {}, AppProps & {}, vue224.PublicProps>;
9
+ declare const App$1: vue239.DefineSetupFnComponent<AppProps, {}, {}, AppProps & {}, vue239.PublicProps>;
10
10
  //#endregion
11
11
  export { App$1 as App, AppProps };
package/dist/app/App.mjs CHANGED
@@ -43,13 +43,13 @@ const App$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
43
43
  const customClassName = clsx(hashId.value, prefixCls.value, className, rootClass, cssVarCls.value, { [`${prefixCls.value}-rtl`]: direction.value === "rtl" });
44
44
  const { component = "div" } = props;
45
45
  devUseWarning("App")(!(cssVarCls.value && component === false), "usage", "When using cssVar, ensure `component` is assigned a valid React component string.");
46
- const Component$1 = component === false ? Fragment : component;
46
+ const Component = component === false ? Fragment : component;
47
47
  const rootProps = {
48
48
  ...restAttrs,
49
49
  class: customClassName,
50
50
  style
51
51
  };
52
- return createVNode(AppConfigProvider, mergedAppConfig.value, { default: () => [createVNode(Component$1, component === false ? void 0 : rootProps, { default: () => [
52
+ return createVNode(AppConfigProvider, mergedAppConfig.value, { default: () => [createVNode(Component, component === false ? void 0 : rootProps, { default: () => [
53
53
  createVNode(MessageContextHolder, null, null),
54
54
  createVNode(NotificationContextHolder, null, null),
55
55
  createVNode(ModalContextHolder, null, null),
@@ -1,25 +1,37 @@
1
1
  import { VueNode } from "../_util/type.mjs";
2
- import { SemanticClassNames, SemanticClassNamesType, SemanticStyles, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
2
+ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
3
3
  import "../_util/hooks/index.mjs";
4
4
  import { InputStatus } from "../_util/statusUtils.mjs";
5
- import { InternalSelectProps } from "../select/index.mjs";
6
- import * as vue63 from "vue";
5
+ import { InternalSelectProps, SelectPopupSemanticClassNames, SelectPopupSemanticStyles } from "../select/index.mjs";
6
+ import * as vue65 from "vue";
7
7
  import { App, CSSProperties, SlotsType } from "vue";
8
8
  import { Option as Option$1, SelectProps } from "@v-c/select";
9
9
 
10
10
  //#region src/auto-complete/index.d.ts
11
- type AutoCompleteSemanticName = 'root' | 'prefix' | 'input' | 'placeholder' | 'content';
12
- type PopupSemantic = 'root' | 'listItem' | 'list';
11
+ interface AutoCompleteSemanticClassNames {
12
+ root?: string;
13
+ prefix?: string;
14
+ input?: string;
15
+ placeholder?: string;
16
+ content?: string;
17
+ }
18
+ interface AutoCompleteSemanticStyles {
19
+ root?: CSSProperties;
20
+ prefix?: CSSProperties;
21
+ input?: CSSProperties;
22
+ placeholder?: CSSProperties;
23
+ content?: CSSProperties;
24
+ }
13
25
  interface DataSourceItemObject {
14
26
  value: string;
15
27
  text: string;
16
28
  }
17
29
  type DataSourceItemType = DataSourceItemObject | VueNode;
18
- type AutoCompleteClassNamesType = SemanticClassNamesType<AutoCompleteProps, AutoCompleteSemanticName, {
19
- popup?: SemanticClassNames<PopupSemantic>;
30
+ type AutoCompleteClassNamesType = SemanticClassNamesType<AutoCompleteProps, AutoCompleteSemanticClassNames, {
31
+ popup?: SelectPopupSemanticClassNames;
20
32
  }>;
21
- type AutoCompleteStylesType = SemanticStylesType<AutoCompleteProps, AutoCompleteSemanticName, {
22
- popup?: SemanticStyles<PopupSemantic>;
33
+ type AutoCompleteStylesType = SemanticStylesType<AutoCompleteProps, AutoCompleteSemanticStyles, {
34
+ popup?: SelectPopupSemanticStyles;
23
35
  }>;
24
36
  type RcEventKeys = 'onClear' | 'onKeyUp' | 'onKeyDown' | 'onBlur' | 'onClick' | 'onActive' | 'onChange' | 'onDeselect' | 'onInputKeyDown' | 'onMouseDown' | 'onMouseLeave' | 'onMouseEnter' | 'onFocus' | 'onPopupScroll' | 'onPopupVisibleChange' | 'onSelect' | 'onSearch';
25
37
  interface AutoCompleteProps extends Omit<InternalSelectProps, 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue' | 'classes' | 'styles' | 'getInputElement' | 'getRawInputElement' | RcEventKeys> {
@@ -66,9 +78,9 @@ interface AutoCompleteEmits {
66
78
  interface AutoCompleteSlots {
67
79
  default?: () => any;
68
80
  }
69
- declare const InternalAutoComplete: vue63.DefineSetupFnComponent<AutoCompleteProps, AutoCompleteEmits, SlotsType<AutoCompleteSlots>, AutoCompleteProps & {
81
+ declare const InternalAutoComplete: vue65.DefineSetupFnComponent<AutoCompleteProps, AutoCompleteEmits, SlotsType<AutoCompleteSlots>, AutoCompleteProps & {
70
82
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
71
- }, vue63.PublicProps>;
83
+ }, vue65.PublicProps>;
72
84
  declare const AutoComplete: typeof InternalAutoComplete & {
73
85
  Option: typeof Option$1;
74
86
  install: (app: App) => void;
@@ -105,7 +105,7 @@ const InternalAutoComplete = /* @__PURE__ */ defineComponent((props, { slots, em
105
105
  popup: {
106
106
  root: {
107
107
  ...props.dropdownStyle,
108
- ...mergedStyles.value.popup?.root
108
+ ...mergedStyles?.value?.popup?.root
109
109
  },
110
110
  list: mergedStyles.value.popup?.list,
111
111
  listItem: mergedStyles.value.popup?.listItem
@@ -1,7 +1,7 @@
1
1
  import { VueNode } from "../_util/type.mjs";
2
2
  import { ComponentBaseProps } from "../config-provider/context.mjs";
3
3
  import { AvatarSize } from "./AvatarContext.mjs";
4
- import * as vue230 from "vue";
4
+ import * as vue245 from "vue";
5
5
  import { SlotsType } from "vue";
6
6
 
7
7
  //#region src/avatar/Avatar.d.ts
@@ -34,8 +34,8 @@ interface AvatarSlots {
34
34
  src: () => any;
35
35
  default: () => any;
36
36
  }
37
- declare const Avatar: vue230.DefineSetupFnComponent<AvatarProps, AvatarEmits, SlotsType<AvatarSlots>, AvatarProps & {
37
+ declare const Avatar: vue245.DefineSetupFnComponent<AvatarProps, AvatarEmits, SlotsType<AvatarSlots>, AvatarProps & {
38
38
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
39
- }, vue230.PublicProps>;
39
+ }, vue245.PublicProps>;
40
40
  //#endregion
41
41
  export { Avatar, AvatarEmits, AvatarProps, AvatarSlots };
@@ -1,7 +1,7 @@
1
1
  import { PopoverProps } from "../popover/index.mjs";
2
2
  import { ComponentBaseProps } from "../config-provider/context.mjs";
3
3
  import { AvatarSize } from "./AvatarContext.mjs";
4
- import * as vue232 from "vue";
4
+ import * as vue247 from "vue";
5
5
  import { CSSProperties } from "vue";
6
6
 
7
7
  //#region src/avatar/AvatarGroup.d.ts
@@ -19,6 +19,6 @@ interface AvatarGroupProps extends ComponentBaseProps {
19
19
  size?: AvatarSize;
20
20
  shape?: 'circle' | 'square';
21
21
  }
22
- declare const AvatarGroup: vue232.DefineSetupFnComponent<AvatarGroupProps, {}, {}, AvatarGroupProps & {}, vue232.PublicProps>;
22
+ declare const AvatarGroup: vue247.DefineSetupFnComponent<AvatarGroupProps, {}, {}, AvatarGroupProps & {}, vue247.PublicProps>;
23
23
  //#endregion
24
24
  export { AvatarGroup, AvatarGroupProps };
@@ -6,14 +6,14 @@ import { unit } from "@antdv-next/cssinjs";
6
6
  //#region src/avatar/style/index.ts
7
7
  const genBaseStyle = (token) => {
8
8
  const { antCls, componentCls, iconCls, avatarBg, avatarColor, containerSize, containerSizeLG, containerSizeSM, textFontSize, textFontSizeLG, textFontSizeSM, iconFontSize, iconFontSizeLG, iconFontSizeSM, borderRadius, borderRadiusLG, borderRadiusSM, lineWidth, lineType } = token;
9
- const avatarSizeStyle = (size, fontSize, iconFontSize$1, radius) => ({
9
+ const avatarSizeStyle = (size, fontSize, iconFontSize, radius) => ({
10
10
  width: size,
11
11
  height: size,
12
12
  borderRadius: "50%",
13
13
  fontSize,
14
14
  [`&${componentCls}-square`]: { borderRadius: radius },
15
15
  [`&${componentCls}-icon`]: {
16
- fontSize: iconFontSize$1,
16
+ fontSize: iconFontSize,
17
17
  [`> ${iconCls}`]: { margin: 0 }
18
18
  }
19
19
  });
@@ -1,4 +1,6 @@
1
1
  import { EmptyEmit, VueNode } from "../_util/type.mjs";
2
+ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
3
+ import "../_util/hooks/index.mjs";
2
4
  import { PresetColorType } from "../_util/colors.mjs";
3
5
  import { ComponentBaseProps } from "../config-provider/context.mjs";
4
6
  import * as vue67 from "vue";
@@ -6,11 +8,25 @@ import { CSSProperties, SlotsType } from "vue";
6
8
  import { LiteralUnion } from "@v-c/util/dist/type";
7
9
 
8
10
  //#region src/badge/Ribbon.d.ts
11
+ type RibbonPlacement = 'start' | 'end';
12
+ interface RibbonSemanticClassNames {
13
+ root?: string;
14
+ content?: string;
15
+ indicator?: string;
16
+ }
17
+ interface RibbonSemanticStyles {
18
+ root?: CSSProperties;
19
+ content?: CSSProperties;
20
+ indicator?: CSSProperties;
21
+ }
22
+ type RibbonClassNamesType = SemanticClassNamesType<RibbonProps, RibbonSemanticClassNames>;
23
+ type RibbonStylesType = SemanticStylesType<RibbonProps, RibbonSemanticStyles>;
9
24
  interface RibbonProps extends ComponentBaseProps {
10
- style?: CSSProperties;
11
25
  text?: VueNode;
12
26
  color?: LiteralUnion<PresetColorType>;
13
- placement?: 'start' | 'end';
27
+ placement?: RibbonPlacement;
28
+ classes?: RibbonClassNamesType;
29
+ styles?: RibbonStylesType;
14
30
  }
15
31
  interface RibbonSlots {
16
32
  default?: () => any;
@@ -1,20 +1,32 @@
1
- import { useConfig } from "../config-provider/context.mjs";
2
- import { getSlotPropsFnRun } from "../_util/tools.mjs";
1
+ import { useComponentBaseConfig } from "../config-provider/context.mjs";
2
+ import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.mjs";
3
+ import "../_util/hooks/index.mjs";
4
+ import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.mjs";
3
5
  import { isPresetColor } from "../_util/colors.mjs";
4
6
  import ribbon_default from "./style/ribbon.mjs";
5
- import { computed, createVNode, defineComponent, mergeProps } from "vue";
6
- import { classNames } from "@v-c/util";
7
+ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
8
+ import { clsx } from "@v-c/util";
9
+ import { getAttrStyleAndClass } from "@v-c/util/dist/props-util";
7
10
 
8
11
  //#region src/badge/Ribbon.tsx
12
+ const defaults = { placement: "end" };
9
13
  var Ribbon_default = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
10
- const configContext = useConfig();
11
- const prefixCls = computed(() => configContext.value.getPrefixCls("ribbon", props.prefixCls));
14
+ const { styles, classes: ribbonClassNames } = toPropsRefs(props, "classes", "styles");
15
+ const { prefixCls, class: contextClassName, style: contextStyle, direction, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("ribbon", props);
12
16
  const wrapperCls = computed(() => `${prefixCls.value}-wrapper`);
13
17
  const [hashId, cssVarCls] = ribbon_default(prefixCls, wrapperCls);
18
+ const mergedProps = computed(() => {
19
+ return props;
20
+ });
21
+ const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, ribbonClassNames), useToArr(contextStyles, styles), useToProps(mergedProps));
14
22
  return () => {
15
- const placement = props.placement ?? "end";
16
- const { class: attrClass, style: attrStyle, ...restAttrs } = attrs;
23
+ const { placement = "end", color } = props;
24
+ const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
17
25
  const colorInPreset = isPresetColor(props.color, false);
26
+ const ribbonCls = clsx(prefixCls.value, `${prefixCls.value}-placement-${placement}`, {
27
+ [`${prefixCls.value}-rtl`]: direction.value === "rtl",
28
+ [`${prefixCls.value}-color-${color}`]: colorInPreset
29
+ }, className, contextClassName.value, mergedClassNames.value.indicator);
18
30
  const colorStyle = {};
19
31
  const cornerColorStyle = {};
20
32
  if (props.color && !colorInPreset) {
@@ -23,28 +35,27 @@ var Ribbon_default = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =
23
35
  }
24
36
  const textNodes = getSlotPropsFnRun(slots, props, "text");
25
37
  const children = slots.default?.();
26
- return createVNode("div", { "class": classNames(wrapperCls.value, props.rootClass, hashId.value, cssVarCls.value) }, [children, createVNode("div", mergeProps(restAttrs, {
27
- "class": classNames(prefixCls.value, `${prefixCls.value}-placement-${placement}`, {
28
- [`${prefixCls.value}-rtl`]: configContext.value.direction === "rtl",
29
- [`${prefixCls.value}-color-${props.color}`]: colorInPreset
30
- }, attrClass, hashId.value),
38
+ return createVNode("div", {
39
+ "class": clsx(wrapperCls.value, props.rootClass, hashId.value, cssVarCls.value, mergedClassNames.value?.root),
40
+ "style": mergedStyles.value?.root
41
+ }, [children, createVNode("div", mergeProps(restAttrs, {
42
+ "class": clsx(ribbonCls, hashId.value),
31
43
  "style": [
32
44
  colorStyle,
33
- props.style,
34
- attrStyle
45
+ mergedStyles.value?.indicator,
46
+ contextStyle.value,
47
+ style
35
48
  ]
36
- }), [createVNode("span", { "class": `${prefixCls.value}-text` }, [Array.isArray(textNodes) ? textNodes : textNodes ?? props.text]), createVNode("div", {
49
+ }), [createVNode("span", {
50
+ "class": clsx(`${prefixCls.value}-content`, mergedClassNames.value.content),
51
+ "style": mergedStyles.value?.content
52
+ }, [Array.isArray(textNodes) ? textNodes : textNodes ?? props.text]), createVNode("div", {
37
53
  "class": `${prefixCls.value}-corner`,
38
54
  "style": cornerColorStyle
39
55
  }, null)])]);
40
56
  };
41
57
  }, {
42
- props: {
43
- style: {
44
- type: Object,
45
- required: false,
46
- default: void 0
47
- },
58
+ props: /* @__PURE__ */ mergeDefaults({
48
59
  text: {
49
60
  type: [
50
61
  Function,
@@ -66,6 +77,16 @@ var Ribbon_default = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =
66
77
  required: false,
67
78
  default: void 0
68
79
  },
80
+ classes: {
81
+ type: [Object, Function],
82
+ required: false,
83
+ default: void 0
84
+ },
85
+ styles: {
86
+ type: [Object, Function],
87
+ required: false,
88
+ default: void 0
89
+ },
69
90
  rootClass: {
70
91
  type: String,
71
92
  required: false,
@@ -76,7 +97,7 @@ var Ribbon_default = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =
76
97
  required: false,
77
98
  default: void 0
78
99
  }
79
- },
100
+ }, defaults),
80
101
  name: "ABadgeRibbon",
81
102
  inheritAttrs: false
82
103
  });
@@ -46,8 +46,9 @@ var SingleNumber_default = /* @__PURE__ */ defineComponent((props) => {
46
46
  top: `${offset}00%`,
47
47
  left: 0
48
48
  } : void 0;
49
+ const spanKey = Number.isNaN(key) ? unitValue : key ?? unitValue;
49
50
  return createVNode("span", {
50
- "key": key ?? unitValue,
51
+ "key": spanKey,
51
52
  "class": classNames(`${prefixCls}-only-unit`, { current }),
52
53
  "style": style
53
54
  }, [unitValue]);
@@ -6,14 +6,21 @@ import "../theme/interface/index.mjs";
6
6
  import { PresetStatusColorType } from "../_util/colors.mjs";
7
7
  import { _default } from "./Ribbon.mjs";
8
8
  import { ComponentBaseProps } from "../config-provider/context.mjs";
9
- import * as vue69 from "vue";
10
- import { SlotsType } from "vue";
9
+ import * as vue72 from "vue";
10
+ import { CSSProperties, SlotsType } from "vue";
11
11
  import { LiteralUnion } from "@v-c/util/dist/type";
12
12
 
13
13
  //#region src/badge/index.d.ts
14
- type SemanticName = 'root' | 'indicator';
15
- type BadgeClassNamesType = SemanticClassNamesType<BadgeProps, SemanticName>;
16
- type BadgeStylesType = SemanticStylesType<BadgeProps, SemanticName>;
14
+ interface BadgeSemanticClassNames {
15
+ root?: string;
16
+ indicator?: string;
17
+ }
18
+ interface BadgeSemanticStyles {
19
+ root?: CSSProperties;
20
+ indicator?: CSSProperties;
21
+ }
22
+ type BadgeClassNamesType = SemanticClassNamesType<BadgeProps, BadgeSemanticClassNames>;
23
+ type BadgeStylesType = SemanticStylesType<BadgeProps, BadgeSemanticStyles>;
17
24
  interface BadgeProps extends ComponentBaseProps {
18
25
  /** Number to show in badge */
19
26
  count?: VueNode;
@@ -37,9 +44,9 @@ interface BadgeSlots {
37
44
  count?: () => any;
38
45
  text?: () => any;
39
46
  }
40
- declare const InternalBadge: vue69.DefineSetupFnComponent<BadgeProps, EmptyEmit, SlotsType<BadgeSlots>, BadgeProps & {
47
+ declare const InternalBadge: vue72.DefineSetupFnComponent<BadgeProps, EmptyEmit, SlotsType<BadgeSlots>, BadgeProps & {
41
48
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
42
- }, vue69.PublicProps>;
49
+ }, vue72.PublicProps>;
43
50
  declare const Badge: typeof InternalBadge & {
44
51
  Ribbon: typeof _default;
45
52
  };
@@ -26,7 +26,7 @@ const genRibbonStyle = (token) => {
26
26
  "whiteSpace": "nowrap",
27
27
  "backgroundColor": token.colorPrimary,
28
28
  "borderRadius": token.borderRadiusSM,
29
- [`${ribbonPrefixCls}-text`]: { color: token.badgeTextColor },
29
+ [`${ribbonPrefixCls}-content`]: { color: token.badgeTextColor },
30
30
  [`${ribbonPrefixCls}-corner`]: {
31
31
  position: "absolute",
32
32
  top: "100%",
@@ -4,7 +4,7 @@ import "../_util/hooks/index.mjs";
4
4
  import { DropdownProps } from "../dropdown/dropdown.mjs";
5
5
  import "../dropdown/index.mjs";
6
6
  import { BreadcrumbItemProps, MenuItem } from "./BreadcrumbItem.mjs";
7
- import * as vue238 from "vue";
7
+ import * as vue237 from "vue";
8
8
  import { CSSProperties, SlotsType } from "vue";
9
9
  import { Key } from "@v-c/util/dist/type";
10
10
 
@@ -32,9 +32,18 @@ interface BreadcrumbSeparatorType {
32
32
  separator?: VueNode;
33
33
  }
34
34
  type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
35
- type BreadcrumbSemanticName = 'root' | 'item' | 'separator';
36
- type BreadcrumbClassNamesType<T extends AnyObject = AnyObject> = SemanticClassNamesType<BreadcrumbProps<T>, BreadcrumbSemanticName>;
37
- type BreadcrumbStylesType<T extends AnyObject = AnyObject> = SemanticStylesType<BreadcrumbProps<T>, BreadcrumbSemanticName>;
35
+ interface BreadcrumbSemanticClassNames {
36
+ root?: string;
37
+ item?: string;
38
+ separator?: string;
39
+ }
40
+ interface BreadcrumbSemanticStyles {
41
+ root?: CSSProperties;
42
+ item?: CSSProperties;
43
+ separator?: CSSProperties;
44
+ }
45
+ type BreadcrumbClassNamesType<T extends AnyObject = AnyObject> = SemanticClassNamesType<BreadcrumbProps<T>, BreadcrumbSemanticClassNames>;
46
+ type BreadcrumbStylesType<T extends AnyObject = AnyObject> = SemanticStylesType<BreadcrumbProps<T>, BreadcrumbSemanticStyles>;
38
47
  interface BreadcrumbProps<T extends AnyObject = AnyObject> {
39
48
  prefixCls?: string;
40
49
  params?: T;
@@ -43,6 +52,7 @@ interface BreadcrumbProps<T extends AnyObject = AnyObject> {
43
52
  items?: ItemType[];
44
53
  classes?: BreadcrumbClassNamesType<T>;
45
54
  styles?: BreadcrumbStylesType<T>;
55
+ dropdownIcon?: VueNode;
46
56
  itemRender?: (route: ItemType, params: T, routes: ItemType[], paths: string[]) => any;
47
57
  titleRender?: (params: {
48
58
  item: ItemType;
@@ -71,6 +81,7 @@ interface BreadcrumbSlots {
71
81
  }) => any;
72
82
  separator: () => any;
73
83
  default: () => any;
84
+ dropdownIcon: () => any;
74
85
  menuLabelRender?: (params: {
75
86
  item: ItemType;
76
87
  index: number;
@@ -82,8 +93,8 @@ interface BreadcrumbSlots {
82
93
  menu: MenuItem;
83
94
  }) => any;
84
95
  }
85
- declare const Breadcrumb: vue238.DefineSetupFnComponent<BreadcrumbProps<AnyObject>, BreadcrumbEmits, SlotsType<BreadcrumbSlots>, BreadcrumbProps<AnyObject> & {
96
+ declare const Breadcrumb: vue237.DefineSetupFnComponent<BreadcrumbProps<AnyObject>, BreadcrumbEmits, SlotsType<BreadcrumbSlots>, BreadcrumbProps<AnyObject> & {
86
97
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
87
- }, vue238.PublicProps>;
98
+ }, vue237.PublicProps>;
88
99
  //#endregion
89
100
  export { Breadcrumb, BreadcrumbEmits, BreadcrumbProps, BreadcrumbSlots, ItemType };
@@ -10,6 +10,7 @@ import style_default from "./style/index.mjs";
10
10
  import { computed, createVNode, defineComponent, isVNode, mergeProps } from "vue";
11
11
  import { clsx } from "@v-c/util";
12
12
  import { filterEmpty } from "@v-c/util/dist/props-util";
13
+ import { DownOutlined } from "@antdv-next/icons";
13
14
  import pickAttrs from "@v-c/util/dist/pickAttrs";
14
15
 
15
16
  //#region src/breadcrumb/Breadcrumb.tsx
@@ -25,7 +26,7 @@ function getPath(params, path) {
25
26
  return mergedPath;
26
27
  }
27
28
  const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) => {
28
- const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, separator: contextSeparator } = useComponentBaseConfig("breadcrumb", props, ["separator"]);
29
+ const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, separator: contextSeparator, dropdownIcon: contextDropdownIcon } = useComponentBaseConfig("breadcrumb", props, ["separator", "dropdownIcon"]);
29
30
  const { classes, styles } = toPropsRefs(props, "classes", "styles");
30
31
  const mergedSeparator = computed(() => {
31
32
  const separator = getSlotPropsFnRun(slots, props, "separator");
@@ -50,6 +51,7 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
50
51
  return () => {
51
52
  const { params = {}, rootClass } = props;
52
53
  const itemRender = slots?.itemRender ?? props?.itemRender;
54
+ const mergedDropdownIcon = getSlotPropsFnRun(slots, props, "dropdownIcon") ?? contextDropdownIcon.value ?? createVNode(DownOutlined, null, null);
53
55
  const children = filterEmpty(slots?.default?.() ?? []);
54
56
  let crumbs;
55
57
  const titleRender = slots?.titleRender ?? props?.titleRender;
@@ -59,7 +61,7 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
59
61
  const itemRenderRoutes = props?.items;
60
62
  crumbs = mergedItems.value.map((item, index) => {
61
63
  let _slot;
62
- const { path, key, type, menu, onClick, class: itemClassName, style: style$1, dropdownProps } = item;
64
+ const { path, key, type, menu, onClick, class: itemClassName, style, dropdownProps } = item;
63
65
  const handleClick = (event) => {
64
66
  onClick?.(event);
65
67
  emit("clickItem", item, event);
@@ -93,8 +95,9 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
93
95
  aria: true
94
96
  }), {
95
97
  "class": itemClassName,
96
- "style": style$1,
98
+ "style": style,
97
99
  "dropdownProps": dropdownProps,
100
+ "dropdownIcon": mergedDropdownIcon,
98
101
  "href": href,
99
102
  "separator": isLastItem ? "" : mergedSeparator.value,
100
103
  "onClick": handleClick,
@@ -159,6 +162,18 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
159
162
  required: false,
160
163
  default: void 0
161
164
  },
165
+ dropdownIcon: {
166
+ type: [
167
+ Function,
168
+ Boolean,
169
+ String,
170
+ Number,
171
+ null,
172
+ Object
173
+ ],
174
+ required: false,
175
+ default: void 0
176
+ },
162
177
  itemRender: {
163
178
  type: Function,
164
179
  required: false,
@@ -24,6 +24,7 @@ interface BreadcrumbItemProps extends SeparatorType {
24
24
  items?: MenuItem[];
25
25
  };
26
26
  dropdownProps?: DropdownProps;
27
+ dropdownIcon?: VueNode;
27
28
  onClick?: (event: MouseEvent) => void;
28
29
  class?: string;
29
30
  style?: CSSProperties;
@@ -7,8 +7,8 @@ import dropdown_default from "../dropdown/index.mjs";
7
7
  import BreadcrumbSeparator_default from "./BreadcrumbSeparator.mjs";
8
8
  import { renderItem } from "./useItemRender.mjs";
9
9
  import { Fragment, createVNode, defineComponent, isVNode, mergeProps } from "vue";
10
+ import { clsx } from "@v-c/util";
10
11
  import { filterEmpty } from "@v-c/util/dist/props-util";
11
- import { DownOutlined } from "@antdv-next/icons";
12
12
 
13
13
  //#region src/breadcrumb/BreadcrumbItem.tsx
14
14
  function _isSlot(s) {
@@ -19,6 +19,7 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
19
19
  /** If overlay is have Wrap a Dropdown */
20
20
  const renderBreadcrumbNode = (breadcrumbItem) => {
21
21
  const { prefixCls, menu, dropdownProps, href } = props;
22
+ const dropdownIcon = getSlotPropsFnRun({}, props, "dropdownIcon");
22
23
  if (menu) {
23
24
  const mergeDropDownProps = { ...dropdownProps };
24
25
  if (menu) {
@@ -41,17 +42,17 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
41
42
  })
42
43
  };
43
44
  }
44
- return createVNode(dropdown_default, mergeProps({ "placement": "bottom" }, mergeDropDownProps), { default: () => [createVNode("span", { "class": `${prefixCls}-overlay-link` }, [breadcrumbItem, createVNode(DownOutlined, null, null)])] });
45
+ return createVNode(dropdown_default, mergeProps({ "placement": "bottom" }, mergeDropDownProps), { default: () => [createVNode("span", { "class": `${prefixCls}-overlay-link` }, [breadcrumbItem, dropdownIcon])] });
45
46
  }
46
47
  return breadcrumbItem;
47
48
  };
48
49
  return () => {
49
- const { separator = "/" } = props;
50
+ const { separator = "/", prefixCls } = props;
50
51
  const children = checkRenderNode(filterEmpty(slots?.default?.() ?? []));
51
52
  const { classes: mergedClassNames, styles: mergedStyles } = breadcrumbContext.value;
52
53
  const link = renderBreadcrumbNode(children);
53
54
  if (isNonNullable_default(link)) return createVNode(Fragment, null, [createVNode("li", {
54
- "class": mergedClassNames?.item,
55
+ "class": clsx(`${prefixCls}-item`, mergedClassNames?.item),
55
56
  "style": mergedStyles?.item
56
57
  }, [link]), !!separator && createVNode(BreadcrumbSeparator_default, null, _isSlot(separator) ? separator : { default: () => [separator] })]);
57
58
  return null;
@@ -78,6 +79,18 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
78
79
  required: false,
79
80
  default: void 0
80
81
  },
82
+ dropdownIcon: {
83
+ type: [
84
+ Function,
85
+ Boolean,
86
+ String,
87
+ Number,
88
+ null,
89
+ Object
90
+ ],
91
+ required: false,
92
+ default: void 0
93
+ },
81
94
  onClick: {
82
95
  type: Function,
83
96
  required: false,
@@ -131,6 +144,18 @@ const BreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
131
144
  required: false,
132
145
  default: void 0
133
146
  },
147
+ dropdownIcon: {
148
+ type: [
149
+ Function,
150
+ Boolean,
151
+ String,
152
+ Number,
153
+ null,
154
+ Object
155
+ ],
156
+ required: false,
157
+ default: void 0
158
+ },
134
159
  onClick: {
135
160
  type: Function,
136
161
  required: false,
@@ -8,17 +8,17 @@ const genBreadcrumbStyle = (token) => {
8
8
  const { componentCls, iconCls, calc } = token;
9
9
  return { [componentCls]: {
10
10
  ...resetComponent(token),
11
- "color": token.itemColor,
12
- "fontSize": token.fontSize,
11
+ color: token.itemColor,
12
+ fontSize: token.fontSize,
13
13
  [iconCls]: { fontSize: token.iconFontSize },
14
- "ol": {
14
+ ol: {
15
15
  display: "flex",
16
16
  flexWrap: "wrap",
17
17
  margin: 0,
18
18
  padding: 0,
19
19
  listStyle: "none"
20
20
  },
21
- "a": {
21
+ [`${componentCls}-item a`]: {
22
22
  "color": token.linkColor,
23
23
  "transition": `color ${token.motionDurationMid}`,
24
24
  "padding": `0 ${unit(token.paddingXXS)}`,
@@ -32,7 +32,7 @@ const genBreadcrumbStyle = (token) => {
32
32
  },
33
33
  ...genFocusStyle(token)
34
34
  },
35
- "li:last-child": { color: token.lastItemColor },
35
+ [`${componentCls}-item:last-child`]: { color: token.lastItemColor },
36
36
  [`${componentCls}-separator`]: {
37
37
  marginInline: token.separatorMargin,
38
38
  color: token.separatorColor
@@ -4,14 +4,23 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
4
4
  import "../_util/hooks/index.mjs";
5
5
  import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./buttonHelper.mjs";
6
6
  import { ComponentBaseProps } from "../config-provider/context.mjs";
7
- import * as vue248 from "vue";
8
- import { SlotsType } from "vue";
7
+ import * as vue249 from "vue";
8
+ import { CSSProperties, SlotsType } from "vue";
9
9
 
10
10
  //#region src/button/Button.d.ts
11
11
  type LegacyButtonType = ButtonType | 'danger';
12
- type ButtonSemanticName = 'root' | 'icon' | 'content';
13
- type ButtonClassNamesType = SemanticClassNamesType<BaseButtonProps, ButtonSemanticName>;
14
- type ButtonStylesType = SemanticStylesType<BaseButtonProps, ButtonSemanticName>;
12
+ interface ButtonSemanticClassNames {
13
+ root?: string;
14
+ icon?: string;
15
+ content?: string;
16
+ }
17
+ interface ButtonSemanticStyles {
18
+ root?: CSSProperties;
19
+ icon?: CSSProperties;
20
+ content?: CSSProperties;
21
+ }
22
+ type ButtonClassNamesType = SemanticClassNamesType<BaseButtonProps, ButtonSemanticClassNames>;
23
+ type ButtonStylesType = SemanticStylesType<BaseButtonProps, ButtonSemanticStyles>;
15
24
  interface BaseButtonProps extends ComponentBaseProps {
16
25
  type?: ButtonType;
17
26
  color?: ButtonColorType;
@@ -50,13 +59,12 @@ interface ButtonSlots {
50
59
  icon?: () => any;
51
60
  loadingIcon?: () => any;
52
61
  }
53
- declare const InternalCompoundedButton: vue248.DefineSetupFnComponent<ButtonProps, ButtonEmits, SlotsType<ButtonSlots>, ButtonProps & {
62
+ declare const InternalCompoundedButton: vue249.DefineSetupFnComponent<ButtonProps, ButtonEmits, SlotsType<ButtonSlots>, ButtonProps & {
54
63
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
55
- }, vue248.PublicProps>;
64
+ }, vue249.PublicProps>;
56
65
  type CompoundedComponent = typeof InternalCompoundedButton & {
57
- /** @internal */
58
- __ANT_BUTTON: boolean;
66
+ /** @internal */__ANT_BUTTON: boolean;
59
67
  };
60
68
  declare const Button: CompoundedComponent;
61
69
  //#endregion
62
- export { Button, ButtonProps, ButtonSemanticName, LegacyButtonType };
70
+ export { Button, ButtonProps, ButtonSemanticClassNames, ButtonSemanticStyles, LegacyButtonType };