antdv-next 1.0.0-alpha.4 → 1.0.0-beta.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 (266) hide show
  1. package/dist/_util/PurePanel.js +106 -0
  2. package/dist/_util/hooks/useMergeSemantic.js +3 -3
  3. package/dist/_util/styleUtils.js +10 -0
  4. package/dist/_util/tools.js +2 -1
  5. package/dist/_util/wave/WaveEffect.js +6 -1
  6. package/dist/_util/wave/style.js +4 -3
  7. package/dist/affix/index.d.ts +3 -3
  8. package/dist/alert/Alert.d.ts +4 -3
  9. package/dist/alert/Alert.js +1 -1
  10. package/dist/anchor/Anchor.d.ts +5 -5
  11. package/dist/anchor/AnchorLink.js +2 -2
  12. package/dist/anchor/index.d.ts +1 -1
  13. package/dist/antd.js +123 -115
  14. package/dist/app/App.d.ts +2 -2
  15. package/dist/auto-complete/index.d.ts +78 -0
  16. package/dist/auto-complete/index.js +634 -0
  17. package/dist/avatar/Avatar.d.ts +3 -3
  18. package/dist/avatar/AvatarGroup.d.ts +2 -2
  19. package/dist/badge/Ribbon.d.ts +3 -3
  20. package/dist/badge/ScrollNumber.js +1 -1
  21. package/dist/badge/SingleNumber.js +1 -1
  22. package/dist/badge/index.d.ts +3 -3
  23. package/dist/badge/index.js +5 -3
  24. package/dist/badge/style/index.js +1 -1
  25. package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
  26. package/dist/breadcrumb/Breadcrumb.js +0 -8
  27. package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
  28. package/dist/breadcrumb/BreadcrumbItem.js +1 -17
  29. package/dist/breadcrumb/index.d.ts +1 -1
  30. package/dist/button/Button.d.ts +3 -3
  31. package/dist/button/style/variant.js +116 -104
  32. package/dist/calendar/Header.js +1 -1
  33. package/dist/calendar/generateCalendar.d.ts +3 -3
  34. package/dist/calendar/index.d.ts +3 -3
  35. package/dist/calendar/style/index.d.ts +1 -1
  36. package/dist/calendar/style/index.js +1 -1
  37. package/dist/card/Card.d.ts +3 -3
  38. package/dist/card/CardGrid.d.ts +2 -2
  39. package/dist/card/CardMeta.d.ts +3 -3
  40. package/dist/card/style/index.js +11 -2
  41. package/dist/carousel/index.d.ts +3 -3
  42. package/dist/cascader/Panel.d.ts +3 -3
  43. package/dist/cascader/index.d.ts +4 -3
  44. package/dist/cascader/index.js +3 -1
  45. package/dist/checkbox/Checkbox.d.ts +3 -3
  46. package/dist/checkbox/Group.d.ts +3 -3
  47. package/dist/checkbox/style/index.d.ts +1 -1
  48. package/dist/collapse/Collapse.d.ts +3 -3
  49. package/dist/color-picker/ColorPicker.d.ts +3 -3
  50. package/dist/color-picker/ColorPicker.js +13 -2
  51. package/dist/components.d.ts +11 -8
  52. package/dist/components.js +7 -4
  53. package/dist/config-provider/context.d.ts +2 -1
  54. package/dist/config-provider/context.js +3 -3
  55. package/dist/config-provider/define.d.ts +14 -0
  56. package/dist/config-provider/index.d.ts +3 -3
  57. package/dist/config-provider/index.js +21 -2
  58. package/dist/date-picker/generatePicker/generateRangePicker.js +2 -2
  59. package/dist/date-picker/generatePicker/generateSinglePicker.js +3 -2
  60. package/dist/date-picker/generatePicker/index.d.ts +17 -17
  61. package/dist/date-picker/index.d.ts +29 -27
  62. package/dist/date-picker/index.js +3 -0
  63. package/dist/date-picker/style/panel.js +4 -4
  64. package/dist/descriptions/index.d.ts +3 -3
  65. package/dist/divider/index.d.ts +2 -2
  66. package/dist/drawer/index.d.ts +6 -4
  67. package/dist/drawer/index.js +17 -5
  68. package/dist/drawer/useFocusable.d.ts +10 -0
  69. package/dist/drawer/useFocusable.js +18 -0
  70. package/dist/dropdown/dropdown.d.ts +4 -4
  71. package/dist/dropdown/dropdown.js +12 -3
  72. package/dist/empty/index.d.ts +3 -3
  73. package/dist/flex/index.d.ts +3 -3
  74. package/dist/flex/index.js +1 -1
  75. package/dist/float-button/BackTop.d.ts +3 -3
  76. package/dist/float-button/BackTop.js +4 -1
  77. package/dist/float-button/FloatButton.d.ts +3 -3
  78. package/dist/float-button/FloatButtonGroup.d.ts +3 -3
  79. package/dist/float-button/PurePanel.js +5 -5
  80. package/dist/float-button/style/button.js +4 -4
  81. package/dist/float-button/style/group.js +12 -12
  82. package/dist/form/ErrorList.js +4 -7
  83. package/dist/form/Form.d.ts +7 -3
  84. package/dist/form/Form.js +39 -22
  85. package/dist/form/FormItem/ItemHolder.js +0 -1
  86. package/dist/form/FormItem/index.d.ts +5 -5
  87. package/dist/form/FormItem/index.js +48 -29
  88. package/dist/form/FormItemInput.js +17 -19
  89. package/dist/form/style/index.js +3 -2
  90. package/dist/form/utils/valueUtil.js +4 -1
  91. package/dist/grid/col.js +7 -2
  92. package/dist/grid/index.d.ts +2 -2
  93. package/dist/grid/row.d.ts +2 -2
  94. package/dist/grid/style/index.js +7 -5
  95. package/dist/image/PreviewGroup.d.ts +2 -2
  96. package/dist/image/index.d.ts +7 -4
  97. package/dist/image/index.js +2 -0
  98. package/dist/image/style/index.d.ts +1 -1
  99. package/dist/index.d.ts +16 -12
  100. package/dist/index.js +7 -4
  101. package/dist/input/Input.js +1 -1
  102. package/dist/input/OTP/index.js +1 -1
  103. package/dist/input/TextArea.d.ts +3 -3
  104. package/dist/input/TextArea.js +1 -1
  105. package/dist/input/index.d.ts +11 -11
  106. package/dist/input/style/index.d.ts +2 -2
  107. package/dist/input-number/index.d.ts +4 -4
  108. package/dist/input-number/index.js +2 -6
  109. package/dist/input-number/style/index.js +18 -17
  110. package/dist/layout/index.d.ts +6 -6
  111. package/dist/layout/layout.d.ts +2 -2
  112. package/dist/layout/style/sider.js +1 -1
  113. package/dist/masonry/Masonry.d.ts +3 -3
  114. package/dist/masonry/Masonry.js +8 -6
  115. package/dist/mentions/index.d.ts +4 -3
  116. package/dist/mentions/index.js +4 -2
  117. package/dist/mentions/style/index.js +18 -17
  118. package/dist/menu/MenuDivider.d.ts +2 -2
  119. package/dist/menu/MenuItem.d.ts +3 -3
  120. package/dist/menu/index.d.ts +5 -5
  121. package/dist/menu/style/horizontal.js +1 -1
  122. package/dist/menu/style/index.js +5 -5
  123. package/dist/message/PurePanel.d.ts +2 -2
  124. package/dist/message/useMessage.d.ts +1 -0
  125. package/dist/modal/ConfirmDialog.js +1 -1
  126. package/dist/modal/Modal.d.ts +3 -3
  127. package/dist/modal/Modal.js +17 -6
  128. package/dist/modal/PurePanel.js +305 -0
  129. package/dist/modal/index.js +2 -0
  130. package/dist/modal/interface.d.ts +3 -1
  131. package/dist/notification/PurePanel.d.ts +2 -2
  132. package/dist/notification/PurePanel.js +4 -3
  133. package/dist/notification/style/index.d.ts +1 -1
  134. package/dist/notification/useNotification.d.ts +2 -1
  135. package/dist/notification/useNotification.js +7 -7
  136. package/dist/package.d.ts +143 -3
  137. package/dist/package.js +1 -1
  138. package/dist/pagination/Pagination.d.ts +3 -3
  139. package/dist/pagination/Pagination.js +1 -1
  140. package/dist/pagination/style/index.js +61 -50
  141. package/dist/popconfirm/PurePanel.d.ts +2 -2
  142. package/dist/popconfirm/PurePanel.js +2 -1
  143. package/dist/popconfirm/index.d.ts +3 -3
  144. package/dist/popover/PurePanel.js +4 -2
  145. package/dist/popover/index.d.ts +9 -6
  146. package/dist/popover/index.js +2 -1
  147. package/dist/popover/style/index.js +11 -8
  148. package/dist/progress/progress.d.ts +3 -3
  149. package/dist/qrcode/index.d.ts +3 -3
  150. package/dist/radio/index.d.ts +5 -5
  151. package/dist/radio/radio.d.ts +3 -3
  152. package/dist/radio/style/index.js +1 -1
  153. package/dist/rate/index.d.ts +3 -3
  154. package/dist/rate/style/index.d.ts +1 -1
  155. package/dist/result/index.d.ts +3 -3
  156. package/dist/result/noFound.d.ts +2 -2
  157. package/dist/result/serverError.d.ts +2 -2
  158. package/dist/segmented/index.d.ts +3 -3
  159. package/dist/select/index.d.ts +6 -6
  160. package/dist/select/index.js +5 -3
  161. package/dist/select/style/dropdown.js +1 -1
  162. package/dist/select/style/select-input-multiple.js +31 -29
  163. package/dist/select/style/select-input.js +50 -44
  164. package/dist/skeleton/Avatar.d.ts +2 -2
  165. package/dist/skeleton/Button.d.ts +2 -2
  166. package/dist/skeleton/Image.d.ts +2 -2
  167. package/dist/skeleton/Input.d.ts +2 -2
  168. package/dist/skeleton/Node.d.ts +3 -3
  169. package/dist/skeleton/Skeleton.d.ts +3 -3
  170. package/dist/skeleton/Skeleton.js +1 -1
  171. package/dist/skeleton/Title.d.ts +1 -2
  172. package/dist/skeleton/Title.js +0 -5
  173. package/dist/slider/index.d.ts +3 -3
  174. package/dist/space/Compact.d.ts +2 -0
  175. package/dist/space/Compact.js +17 -4
  176. package/dist/space/index.d.ts +5 -5
  177. package/dist/space/style/addon.js +20 -19
  178. package/dist/spin/index.d.ts +3 -3
  179. package/dist/spin/index.js +7 -6
  180. package/dist/splitter/SplitBar.js +9 -2
  181. package/dist/splitter/Splitter.d.ts +3 -3
  182. package/dist/splitter/Splitter.js +2 -1
  183. package/dist/splitter/index.d.ts +2 -2
  184. package/dist/splitter/style/index.js +6 -6
  185. package/dist/statistic/Statistic.d.ts +3 -3
  186. package/dist/statistic/Timer.d.ts +5 -5
  187. package/dist/statistic/index.d.ts +5 -5
  188. package/dist/steps/ProgressIcon.js +9 -2
  189. package/dist/steps/index.d.ts +3 -3
  190. package/dist/steps/index.js +7 -4
  191. package/dist/steps/style/horizontal.js +13 -10
  192. package/dist/steps/style/icon.js +12 -9
  193. package/dist/steps/style/index.js +19 -18
  194. package/dist/steps/style/inline.js +20 -17
  195. package/dist/steps/style/label-placement.js +22 -20
  196. package/dist/steps/style/nav.js +7 -5
  197. package/dist/steps/style/panel.js +34 -32
  198. package/dist/steps/style/progress-dot.js +10 -8
  199. package/dist/steps/style/progress.js +29 -58
  200. package/dist/steps/style/rtl.js +6 -4
  201. package/dist/steps/style/small.js +10 -8
  202. package/dist/steps/style/status.js +124 -121
  203. package/dist/steps/style/util.js +7 -4
  204. package/dist/steps/style/vertical.js +17 -14
  205. package/dist/style/placementArrow.js +7 -5
  206. package/dist/switch/index.d.ts +3 -3
  207. package/dist/table/Column.d.ts +3 -3
  208. package/dist/table/ColumnGroup.d.ts +3 -3
  209. package/dist/table/InternalTable.js +20 -6
  210. package/dist/table/Table.d.ts +3 -3
  211. package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
  212. package/dist/table/style/index.js +3 -3
  213. package/dist/table/style/radius.js +6 -0
  214. package/dist/table/style/virtual.js +1 -1
  215. package/dist/tabs/TabPane.d.ts +3 -3
  216. package/dist/tabs/index.d.ts +3 -3
  217. package/dist/tag/CheckableTag.d.ts +3 -3
  218. package/dist/tag/CheckableTagGroup.d.ts +3 -3
  219. package/dist/tag/CheckableTagGroup.js +3 -3
  220. package/dist/tag/index.d.ts +3 -3
  221. package/dist/theme/context.d.ts +2 -2
  222. package/dist/theme/index.d.ts +1 -1
  223. package/dist/theme/useToken.d.ts +2 -2
  224. package/dist/theme/useToken.js +1 -1
  225. package/dist/theme/util/genStyleUtils.d.ts +2 -2
  226. package/dist/theme/util/genStyleUtils.js +8 -5
  227. package/dist/theme/util/useResetIconStyle.js +1 -1
  228. package/dist/time-picker/index.d.ts +8 -7
  229. package/dist/time-picker/index.js +17 -13
  230. package/dist/timeline/Timeline.d.ts +3 -3
  231. package/dist/tooltip/PurePanel.d.ts +2 -2
  232. package/dist/tooltip/PurePanel.js +12 -8
  233. package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
  234. package/dist/tooltip/index.d.ts +3 -3
  235. package/dist/tooltip/index.js +2 -3
  236. package/dist/tooltip/style/index.js +10 -8
  237. package/dist/tooltip/util.js +5 -3
  238. package/dist/tour/PurePanel.js +243 -0
  239. package/dist/tour/index.d.ts +3 -3
  240. package/dist/tour/index.js +2 -0
  241. package/dist/tour/style/index.js +5 -4
  242. package/dist/transfer/Actions.d.ts +2 -2
  243. package/dist/transfer/Section.d.ts +2 -2
  244. package/dist/transfer/Transfer.d.ts +3 -3
  245. package/dist/transfer/Transfer.js +2 -2
  246. package/dist/transfer/search.d.ts +3 -3
  247. package/dist/tree/DirectoryTree.d.ts +3 -3
  248. package/dist/tree/Tree.d.ts +3 -3
  249. package/dist/tree/style/index.d.ts +1 -1
  250. package/dist/tree-select/index.d.ts +5 -4
  251. package/dist/tree-select/index.js +3 -1
  252. package/dist/typography/Link.d.ts +3 -3
  253. package/dist/typography/Paragraph.d.ts +3 -3
  254. package/dist/typography/Text.d.ts +3 -3
  255. package/dist/typography/Title.d.ts +3 -3
  256. package/dist/typography/Typography.d.ts +3 -3
  257. package/dist/typography/index.d.ts +9 -9
  258. package/dist/upload/Dragger.d.ts +6 -3
  259. package/dist/upload/Upload.d.ts +3 -3
  260. package/dist/upload/Upload.js +15 -1
  261. package/dist/upload/index.d.ts +6 -3
  262. package/dist/upload/interface.d.ts +4 -4
  263. package/global.d.ts +3 -0
  264. package/package.json +69 -17
  265. package/web-tags.json +5069 -0
  266. package/web-types.json +14335 -0
@@ -1,11 +1,11 @@
1
1
  import { SkeletonElementProps } from "./Element.js";
2
- import * as vue428 from "vue";
2
+ import * as vue440 from "vue";
3
3
 
4
4
  //#region src/skeleton/Button.d.ts
5
5
  interface SkeletonButtonProps extends Omit<SkeletonElementProps, 'size'> {
6
6
  size?: 'large' | 'small' | 'default';
7
7
  block?: boolean;
8
8
  }
9
- declare const SkeletonButton: vue428.DefineSetupFnComponent<SkeletonButtonProps, {}, {}, SkeletonButtonProps & {}, vue428.PublicProps>;
9
+ declare const SkeletonButton: vue440.DefineSetupFnComponent<SkeletonButtonProps, {}, {}, SkeletonButtonProps & {}, vue440.PublicProps>;
10
10
  //#endregion
11
11
  export { SkeletonButton };
@@ -1,8 +1,8 @@
1
1
  import { SkeletonElementProps } from "./Element.js";
2
- import * as vue432 from "vue";
2
+ import * as vue442 from "vue";
3
3
 
4
4
  //#region src/skeleton/Image.d.ts
5
5
  interface SkeletonImageProps extends Omit<SkeletonElementProps, 'size' | 'shape'> {}
6
- declare const SkeletonImage: vue432.DefineSetupFnComponent<SkeletonImageProps, {}, {}, SkeletonImageProps & {}, vue432.PublicProps>;
6
+ declare const SkeletonImage: vue442.DefineSetupFnComponent<SkeletonImageProps, {}, {}, SkeletonImageProps & {}, vue442.PublicProps>;
7
7
  //#endregion
8
8
  export { SkeletonImage };
@@ -1,11 +1,11 @@
1
1
  import { SkeletonElementProps } from "./Element.js";
2
- import * as vue434 from "vue";
2
+ import * as vue444 from "vue";
3
3
 
4
4
  //#region src/skeleton/Input.d.ts
5
5
  interface SkeletonInputProps extends Omit<SkeletonElementProps, 'size' | 'shape'> {
6
6
  size?: 'large' | 'small' | 'default';
7
7
  block?: boolean;
8
8
  }
9
- declare const SkeletonInput: vue434.DefineSetupFnComponent<SkeletonInputProps, {}, {}, SkeletonInputProps & {}, vue434.PublicProps>;
9
+ declare const SkeletonInput: vue444.DefineSetupFnComponent<SkeletonInputProps, {}, {}, SkeletonInputProps & {}, vue444.PublicProps>;
10
10
  //#endregion
11
11
  export { SkeletonInput };
@@ -1,6 +1,6 @@
1
1
  import { EmptyEmit } from "../_util/type.js";
2
2
  import { SkeletonElementProps } from "./Element.js";
3
- import * as vue426 from "vue";
3
+ import * as vue432 from "vue";
4
4
  import { SlotsType } from "vue";
5
5
 
6
6
  //#region src/skeleton/Node.d.ts
@@ -10,8 +10,8 @@ interface SkeletonNodeProps extends Omit<SkeletonElementProps, 'size' | 'shape'>
10
10
  interface SkeletonNodeSlots {
11
11
  default?: () => any;
12
12
  }
13
- declare const SkeletonNode: vue426.DefineSetupFnComponent<SkeletonNodeProps, EmptyEmit, SlotsType<SkeletonNodeSlots>, SkeletonNodeProps & {
13
+ declare const SkeletonNode: vue432.DefineSetupFnComponent<SkeletonNodeProps, EmptyEmit, SlotsType<SkeletonNodeSlots>, SkeletonNodeProps & {
14
14
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
15
- }, vue426.PublicProps>;
15
+ }, vue432.PublicProps>;
16
16
  //#endregion
17
17
  export { SkeletonNode };
@@ -9,7 +9,7 @@ import { SkeletonImage } from "./Image.js";
9
9
  import { SkeletonInput } from "./Input.js";
10
10
  import { SkeletonNode } from "./Node.js";
11
11
  import { ComponentBaseProps } from "../config-provider/context.js";
12
- import * as vue341 from "vue";
12
+ import * as vue281 from "vue";
13
13
  import { SlotsType } from "vue";
14
14
 
15
15
  //#region src/skeleton/Skeleton.d.ts
@@ -30,9 +30,9 @@ interface SkeletonProps extends ComponentBaseProps {
30
30
  interface SkeletonSlots {
31
31
  default?: () => any;
32
32
  }
33
- declare const Skeleton: vue341.DefineSetupFnComponent<SkeletonProps, EmptyEmit, SlotsType<SkeletonSlots>, SkeletonProps & {
33
+ declare const Skeleton: vue281.DefineSetupFnComponent<SkeletonProps, EmptyEmit, SlotsType<SkeletonSlots>, SkeletonProps & {
34
34
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
35
- }, vue341.PublicProps>;
35
+ }, vue281.PublicProps>;
36
36
  type SkeletonType = typeof Skeleton & {
37
37
  Button: typeof SkeletonButton;
38
38
  Avatar: typeof SkeletonAvatar;
@@ -64,7 +64,7 @@ const Skeleton = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
64
64
  avatarNode = createVNode("div", {
65
65
  "class": [mergedClassNames.value.header, `${prefixCls.value}-header`],
66
66
  "style": mergedStyles.value.header
67
- }, [createVNode(Element_default, mergeProps({ "class": mergedClassNames.value.avatar }, avatarProps, { "style": mergedStyles.value.header }), null)]);
67
+ }, [createVNode(Element_default, mergeProps({ "class": mergedClassNames.value.avatar }, avatarProps, { "style": mergedStyles.value.avatar }), null)]);
68
68
  }
69
69
  let contentNode;
70
70
  if (hasTitle || hasParagraph) {
@@ -1,10 +1,9 @@
1
- import { CSSProperties } from "vue";
1
+ import "vue";
2
2
 
3
3
  //#region src/skeleton/Title.d.ts
4
4
  interface SkeletonTitleProps {
5
5
  prefixCls?: string;
6
6
  rootClass?: string;
7
- style?: CSSProperties;
8
7
  width?: number | string;
9
8
  }
10
9
  //#endregion
@@ -23,11 +23,6 @@ const Title = /* @__PURE__ */ defineComponent((props, { attrs }) => {
23
23
  required: false,
24
24
  default: void 0
25
25
  },
26
- style: {
27
- type: Object,
28
- required: false,
29
- default: void 0
30
- },
31
26
  width: {
32
27
  type: [Number, String],
33
28
  required: false,
@@ -2,7 +2,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
2
2
  import { Orientation } from "../_util/hooks/useOrientation.js";
3
3
  import "../_util/hooks/index.js";
4
4
  import { TooltipPlacement, TriggerCommonApi } from "../tooltip/index.js";
5
- import * as vue181 from "vue";
5
+ import * as vue154 from "vue";
6
6
  import { CSSProperties, SlotsType } from "vue";
7
7
  import { SliderProps } from "@v-c/slider";
8
8
 
@@ -69,8 +69,8 @@ interface SliderEmits {
69
69
  }
70
70
  interface SliderSlots {}
71
71
  type SliderRange = SliderProps['range'];
72
- declare const Slider: vue181.DefineSetupFnComponent<SliderInternalProps, SliderEmits, SlotsType<SliderSlots>, SliderInternalProps & {
72
+ declare const Slider: vue154.DefineSetupFnComponent<SliderInternalProps, SliderEmits, SlotsType<SliderSlots>, SliderInternalProps & {
73
73
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
74
- }, vue181.PublicProps>;
74
+ }, vue154.PublicProps>;
75
75
  //#endregion
76
76
  export { Slider, SliderEmits, SliderProps$1 as SliderProps };
@@ -7,6 +7,8 @@ interface SpaceCompactProps extends ComponentBaseProps {
7
7
  size?: SizeType;
8
8
  direction?: 'horizontal' | 'vertical';
9
9
  block?: boolean;
10
+ orientation?: 'horizontal' | 'vertical';
11
+ vertical?: boolean;
10
12
  }
11
13
  //#endregion
12
14
  export { SpaceCompactProps };
@@ -1,7 +1,8 @@
1
1
  import { useConfig } from "../config-provider/context.js";
2
+ import { useOrientation } from "../_util/hooks/useOrientation.js";
2
3
  import { useSize } from "../config-provider/hooks/useSize.js";
3
4
  import compact_default from "./style/compact.js";
4
- import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref } from "vue";
5
+ import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref, toRefs } from "vue";
5
6
  import { classNames } from "@v-c/util";
6
7
  import { filterEmpty } from "@v-c/util/dist/props-util";
7
8
 
@@ -73,20 +74,22 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
73
74
  const prefixCls = computed(() => configContext.value?.getPrefixCls?.("space-compact", props.prefixCls));
74
75
  const [hashId, cssVarCls] = compact_default(prefixCls);
75
76
  const compactItemContext = useSpaceCompactItemContext();
77
+ const { direction, vertical, orientation } = toRefs(props);
78
+ const [mergedOrientation, mergedVertical] = useOrientation(orientation, vertical, direction);
76
79
  return () => {
77
- const { rootClass, direction, block } = props;
80
+ const { rootClass, block } = props;
78
81
  const directionConfig = configContext.value?.direction;
79
82
  const clx = classNames(prefixCls.value, hashId.value, cssVarCls.value, {
80
83
  [`${prefixCls.value}-rtl`]: directionConfig === "rtl",
81
84
  [`${prefixCls.value}-block`]: block,
82
- [`${prefixCls.value}-vertical`]: direction === "vertical"
85
+ [`${prefixCls.value}-vertical`]: mergedVertical.value
83
86
  }, rootClass);
84
87
  const childNodes = filterEmpty(slots?.default?.());
85
88
  const nodes = childNodes.map((child, i) => {
86
89
  const key = child?.key || `${prefixCls.value}-item-${i}`;
87
90
  return createVNode(CompactItem, {
88
91
  "compactSize": mergedSize.value,
89
- "compactDirection": direction,
92
+ "compactDirection": mergedOrientation.value,
90
93
  "isFirstItem": i === 0 && (!compactItemContext.value || compactItemContext.value?.isFirstItem),
91
94
  "key": key,
92
95
  "isLastItem": i === childNodes.length - 1 && (!compactItemContext.value || compactItemContext.value?.isLastItem)
@@ -112,6 +115,16 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
112
115
  required: false,
113
116
  default: void 0
114
117
  },
118
+ orientation: {
119
+ type: String,
120
+ required: false,
121
+ default: void 0
122
+ },
123
+ vertical: {
124
+ type: Boolean,
125
+ required: false,
126
+ default: void 0
127
+ },
115
128
  rootClass: {
116
129
  type: String,
117
130
  required: false,
@@ -6,7 +6,7 @@ import "../_util/hooks/index.js";
6
6
  import { SpaceCompactProps } from "./Compact.js";
7
7
  import { SpaceCompactCellProps } from "./Addon.js";
8
8
  import { ComponentBaseProps } from "../config-provider/context.js";
9
- import * as vue171 from "vue";
9
+ import * as vue156 from "vue";
10
10
  import { SlotsType } from "vue";
11
11
 
12
12
  //#region src/space/index.d.ts
@@ -30,10 +30,10 @@ interface SpaceSlots {
30
30
  default?: () => any;
31
31
  separator?: () => any;
32
32
  }
33
- declare const Space: vue171.DefineSetupFnComponent<SpaceProps, EmptyEmit, SlotsType<SpaceSlots>, SpaceProps & {
33
+ declare const Space: vue156.DefineSetupFnComponent<SpaceProps, EmptyEmit, SlotsType<SpaceSlots>, SpaceProps & {
34
34
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
35
- }, vue171.PublicProps>;
36
- declare const SpaceCompact: vue171.DefineSetupFnComponent<SpaceCompactProps, {}, {}, SpaceCompactProps & {}, vue171.PublicProps>;
37
- declare const SpaceAddon: vue171.DefineSetupFnComponent<SpaceCompactCellProps, {}, {}, SpaceCompactCellProps & {}, vue171.PublicProps>;
35
+ }, vue156.PublicProps>;
36
+ declare const SpaceCompact: vue156.DefineSetupFnComponent<SpaceCompactProps, {}, {}, SpaceCompactProps & {}, vue156.PublicProps>;
37
+ declare const SpaceAddon: vue156.DefineSetupFnComponent<SpaceCompactCellProps, {}, {}, SpaceCompactCellProps & {}, vue156.PublicProps>;
38
38
  //#endregion
39
39
  export { Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots };
@@ -1,10 +1,11 @@
1
- import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
1
+ import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
2
2
  import "../../theme/internal.js";
3
3
  import { genCompactItemStyle } from "../../style/compact-item.js";
4
4
 
5
5
  //#region src/space/style/addon.ts
6
6
  const genSpaceAddonStyle = (token) => {
7
- const { componentCls, borderRadius, paddingSM, colorBorder, paddingXS, fontSizeLG, fontSizeSM, borderRadiusLG, borderRadiusSM, colorBgContainerDisabled, lineWidth } = token;
7
+ const { componentCls, borderRadius, paddingSM, colorBorder, paddingXS, fontSizeLG, fontSizeSM, borderRadiusLG, borderRadiusSM, colorBgContainerDisabled, lineWidth, antCls } = token;
8
+ const [varName, varRef] = genCssVar(antCls, "space");
8
9
  return { [componentCls]: [
9
10
  {
10
11
  "display": "inline-flex",
@@ -39,19 +40,19 @@ const genSpaceAddonStyle = (token) => {
39
40
  "&-compact-item:not(:first-child)": { borderInlineStartWidth: 0 }
40
41
  },
41
42
  {
42
- "--space-addon-border-color": colorBorder,
43
- "--space-addon-background": colorBgContainerDisabled,
44
- "--space-addon-border-color-outlined": colorBorder,
45
- "--space-addon-background-filled": colorBgContainerDisabled,
46
- "borderColor": "var(--space-addon-border-color)",
47
- "background": "var(--space-addon-background)",
48
- "&-variant-outlined": { "--space-addon-border-color": "var(--space-addon-border-color-outlined)" },
43
+ [varName("addon-border-color")]: colorBorder,
44
+ [varName("addon-background")]: colorBgContainerDisabled,
45
+ [varName("addon-border-color-outlined")]: colorBorder,
46
+ [varName("addon-background-filled")]: colorBgContainerDisabled,
47
+ "borderColor": varRef("addon-border-color"),
48
+ "background": varRef("addon-background"),
49
+ "&-variant-outlined": { [varName("addon-border-color")]: varRef("addon-border-color-outlined") },
49
50
  "&-variant-filled": {
50
- "--space-addon-border-color": "transparent",
51
- "--space-addon-background": "var(--space-addon-background-filled)",
51
+ [varName("addon-border-color")]: "transparent",
52
+ [varName("addon-background")]: varRef("addon-background-filled"),
52
53
  [`&${componentCls}-disabled`]: {
53
- "--space-addon-border-color": colorBorder,
54
- "--space-addon-background": colorBgContainerDisabled
54
+ [varName("addon-border-color")]: colorBorder,
55
+ [varName("addon-background")]: colorBgContainerDisabled
55
56
  }
56
57
  },
57
58
  "&-variant-borderless": {
@@ -65,14 +66,14 @@ const genSpaceAddonStyle = (token) => {
65
66
  },
66
67
  {
67
68
  "&-status-error": {
68
- "--space-addon-border-color-outlined": token.colorError,
69
- "--space-addon-background-filled": token.colorErrorBg,
70
- "color": token.colorError
69
+ [varName("addon-border-color-outlined")]: token.colorError,
70
+ [varName("addon-background-filled")]: token.colorErrorBg,
71
+ color: token.colorError
71
72
  },
72
73
  "&-status-warning": {
73
- "--space-addon-border-color-outlined": token.colorWarning,
74
- "--space-addon-background-filled": token.colorWarningBg,
75
- "color": token.colorWarning
74
+ [varName("addon-border-color-outlined")]: token.colorWarning,
75
+ [varName("addon-background-filled")]: token.colorWarningBg,
76
+ color: token.colorWarning
76
77
  }
77
78
  }
78
79
  ] };
@@ -2,7 +2,7 @@ import { EmptyEmit, VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import "../_util/hooks/index.js";
4
4
  import { ComponentBaseProps } from "../config-provider/context.js";
5
- import * as vue177 from "vue";
5
+ import * as vue146 from "vue";
6
6
  import { CSSProperties, SlotsType } from "vue";
7
7
 
8
8
  //#region src/spin/index.d.ts
@@ -37,9 +37,9 @@ interface SpinSlots {
37
37
  tip?: () => any;
38
38
  default?: () => any;
39
39
  }
40
- declare const Spin: vue177.DefineSetupFnComponent<SpinProps, EmptyEmit, SlotsType<SpinSlots>, SpinProps & {
40
+ declare const Spin: vue146.DefineSetupFnComponent<SpinProps, EmptyEmit, SlotsType<SpinSlots>, SpinProps & {
41
41
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
42
- }, vue177.PublicProps>;
42
+ }, vue146.PublicProps>;
43
43
  declare const _default: typeof Spin & {
44
44
  setDefaultIndicator: (indicator: VueNode) => void;
45
45
  };
@@ -6,10 +6,11 @@ import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
6
6
  import Indicator_default from "./Indicator/index.js";
7
7
  import style_default from "./style/index.js";
8
8
  import usePercent from "./usePercent.js";
9
- import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef, watchEffect } from "vue";
9
+ import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
10
10
  import { classNames } from "@v-c/util";
11
11
  import { filterEmpty } from "@v-c/util/dist/props-util";
12
- import { debounce, omit } from "es-toolkit";
12
+ import { omit } from "es-toolkit";
13
+ import { debounce } from "throttle-debounce";
13
14
 
14
15
  //#region src/spin/index.tsx
15
16
  let defaultIndicator;
@@ -23,11 +24,11 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
23
24
  const { classes, styles } = toPropsRefs(props, "classes", "styles");
24
25
  const spinning = shallowRef(shouldDelay(props.spinning, props.delay) ? false : !!props.spinning);
25
26
  const mergedPercent = usePercent(spinning, computed(() => props.percent));
26
- watchEffect((onCleanup) => {
27
+ watch([() => props.delay, () => props.spinning], (_, _p, onCleanup) => {
27
28
  if (props.spinning) {
28
- const showSpinning = debounce(() => {
29
+ const showSpinning = debounce(props?.delay ?? 0, () => {
29
30
  spinning.value = true;
30
- }, props.delay ?? 0);
31
+ });
31
32
  showSpinning();
32
33
  onCleanup(() => {
33
34
  showSpinning?.cancel?.();
@@ -35,7 +36,7 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
35
36
  return;
36
37
  }
37
38
  spinning.value = false;
38
- });
39
+ }, { immediate: true });
39
40
  const warning = devUseWarning("Spin");
40
41
  const mergedProps = computed(() => {
41
42
  return {
@@ -1,3 +1,4 @@
1
+ import { genCssVar } from "../theme/util/genStyleUtils.js";
1
2
  import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
2
3
  import { computed, createVNode, defineComponent, mergeProps, shallowRef, watch } from "vue";
3
4
  import { clsx } from "@v-c/util";
@@ -8,8 +9,9 @@ function getValidNumber(num) {
8
9
  return typeof num === "number" && !Number.isNaN(num) && Number.isFinite(num) ? Math.round(num) : 0;
9
10
  }
10
11
  const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
11
- const { vertical, resizable, index, containerSize, ariaNow, ariaMin, ariaMax, prefixCls, lazy } = toPropsRefs(props, "vertical", "resizable", "index", "containerSize", "ariaNow", "ariaMin", "ariaMax", "prefixCls", "lazy");
12
+ const { vertical, resizable, index, containerSize, ariaNow, ariaMin, ariaMax, prefixCls, rootPrefixCls, lazy } = toPropsRefs(props, "vertical", "resizable", "index", "containerSize", "ariaNow", "ariaMin", "ariaMax", "prefixCls", "rootPrefixCls", "lazy");
12
13
  const splitBarPrefixCls = computed(() => `${prefixCls.value}-bar`);
14
+ const barVarName = computed(() => genCssVar(rootPrefixCls.value, "splitter")[0]);
13
15
  const startPos = shallowRef();
14
16
  const constrainedOffset = shallowRef(0);
15
17
  const constrainedOffsetX = computed(() => vertical.value ? 0 : constrainedOffset.value);
@@ -97,7 +99,7 @@ const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
97
99
  });
98
100
  return () => {
99
101
  const { collapsibleIcon, draggerClassName, draggerStyle, active, startCollapsible, showStartCollapsibleIcon, onCollapse, endCollapsible, showEndCollapsibleIcon } = props;
100
- const transformStyle = { [`--${splitBarPrefixCls.value}-preview-offset`]: `${constrainedOffset.value}px` };
102
+ const transformStyle = { [barVarName.value("bar-preview-offset")]: `${constrainedOffset.value}px` };
101
103
  const propCollapsibleIconStart = collapsibleIcon?.start;
102
104
  const propCollapsibleIconEnd = collapsibleIcon?.end;
103
105
  const collapsibleIconStart = getSlotPropsFnRun(slots, { collapsibleIconStart: propCollapsibleIconStart }, "collapsibleIconStart", false);
@@ -181,6 +183,11 @@ const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
181
183
  required: true,
182
184
  default: void 0
183
185
  },
186
+ rootPrefixCls: {
187
+ type: String,
188
+ required: true,
189
+ default: void 0
190
+ },
184
191
  resizable: {
185
192
  type: Boolean,
186
193
  required: true,
@@ -1,10 +1,10 @@
1
1
  import { SplitterEmits, SplitterProps, SplitterSlots } from "./interface.js";
2
- import * as vue418 from "vue";
2
+ import * as vue410 from "vue";
3
3
  import { SlotsType } from "vue";
4
4
 
5
5
  //#region src/splitter/Splitter.d.ts
6
- declare const Splitter: vue418.DefineSetupFnComponent<SplitterProps, SplitterEmits, SlotsType<SplitterSlots>, SplitterProps & {
6
+ declare const Splitter: vue410.DefineSetupFnComponent<SplitterProps, SplitterEmits, SlotsType<SplitterSlots>, SplitterProps & {
7
7
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
8
- }, vue418.PublicProps>;
8
+ }, vue410.PublicProps>;
9
9
  //#endregion
10
10
  export { Splitter };
@@ -19,7 +19,7 @@ import ResizeObserver from "@v-c/resize-observer";
19
19
 
20
20
  //#region src/splitter/Splitter.tsx
21
21
  const Splitter = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) => {
22
- const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("splitter", props);
22
+ const { prefixCls, rootPrefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("splitter", props);
23
23
  const { classes, styles, orientation, layout, vertical } = toPropsRefs(props, "classes", "styles", "orientation", "layout", "vertical");
24
24
  const rootCls = useCSSVarCls_default(prefixCls);
25
25
  const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
@@ -121,6 +121,7 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs })
121
121
  "index": idx,
122
122
  "active": movingIndex.value === idx,
123
123
  "prefixCls": prefixCls.value,
124
+ "rootPrefixCls": rootPrefixCls.value,
124
125
  "vertical": isVertical.value,
125
126
  "resizable": resizableInfo.resizable,
126
127
  "draggerStyle": mergedStyles.value.dragger,
@@ -1,8 +1,8 @@
1
1
  import { InternalPanelProps, SplitterEmits, SplitterProps, SplitterSlots } from "./interface.js";
2
2
  import { Splitter } from "./Splitter.js";
3
- import * as vue179 from "vue";
3
+ import * as vue164 from "vue";
4
4
 
5
5
  //#region src/splitter/index.d.ts
6
- declare const SplitterPanel: vue179.DefineSetupFnComponent<InternalPanelProps, {}, {}, InternalPanelProps & {}, vue179.PublicProps>;
6
+ declare const SplitterPanel: vue164.DefineSetupFnComponent<InternalPanelProps, {}, {}, InternalPanelProps & {}, vue164.PublicProps>;
7
7
  //#endregion
8
8
  export { SplitterPanel };
@@ -1,5 +1,5 @@
1
1
  import { resetComponent } from "../../style/index.js";
2
- import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
2
+ import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
3
3
  import "../../theme/internal.js";
4
4
 
5
5
  //#region src/splitter/style/index.ts
@@ -38,12 +38,12 @@ const centerStyle = {
38
38
  transform: "translate(-50%, -50%)"
39
39
  };
40
40
  const genSplitterStyle = (token) => {
41
- const { componentCls, colorFill, splitBarDraggableSize, splitBarSize, splitTriggerSize, controlItemBgHover, controlItemBgActive, controlItemBgActiveHover, prefixCls, colorPrimary } = token;
41
+ const { componentCls, colorFill, splitBarDraggableSize, splitBarSize, splitTriggerSize, controlItemBgHover, controlItemBgActive, controlItemBgActiveHover, colorPrimary, antCls, calc } = token;
42
42
  const splitBarCls = `${componentCls}-bar`;
43
43
  const splitMaskCls = `${componentCls}-mask`;
44
44
  const splitPanelCls = `${componentCls}-panel`;
45
- const halfTriggerSize = token.calc(splitTriggerSize).div(2).equal();
46
- const splitterBarPreviewOffsetVar = `${prefixCls}-bar-preview-offset`;
45
+ const [, varRef] = genCssVar(antCls, "splitter");
46
+ const halfTriggerSize = calc(splitTriggerSize).div(2).equal();
47
47
  const splitterBarPreviewStyle = {
48
48
  position: "absolute",
49
49
  background: token.colorPrimary,
@@ -143,7 +143,7 @@ const genSplitterStyle = (token) => {
143
143
  ...splitterBarPreviewStyle,
144
144
  [`&${splitBarCls}-preview-active`]: {
145
145
  display: "block",
146
- transform: `translateX(var(--${splitterBarPreviewOffsetVar}))`
146
+ transform: `translate3d(${varRef("bar-preview-offset")}, 0, 0)`
147
147
  }
148
148
  },
149
149
  [`${splitBarCls}-dragger`]: {
@@ -197,7 +197,7 @@ const genSplitterStyle = (token) => {
197
197
  ...splitterBarPreviewStyle,
198
198
  [`&${splitBarCls}-preview-active`]: {
199
199
  display: "block",
200
- transform: `translateY(var(--${splitterBarPreviewOffsetVar}))`
200
+ transform: `translate3d(0, ${varRef("bar-preview-offset")}, 0)`
201
201
  }
202
202
  },
203
203
  [`${splitBarCls}-dragger`]: {
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
3
3
  import "../_util/hooks/index.js";
4
4
  import { FormatConfig, valueType } from "./utils.js";
5
5
  import { ComponentBaseProps } from "../config-provider/context.js";
6
- import * as vue363 from "vue";
6
+ import * as vue310 from "vue";
7
7
  import { CSSProperties, SlotsType, VNodeChild } from "vue";
8
8
 
9
9
  //#region src/statistic/Statistic.d.ts
@@ -33,7 +33,7 @@ interface StatisticSlots {
33
33
  prefix: () => any;
34
34
  suffix: () => any;
35
35
  }
36
- declare const Statistic: vue363.DefineSetupFnComponent<StatisticRectProps, StatisticEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
36
+ declare const Statistic: vue310.DefineSetupFnComponent<StatisticRectProps, StatisticEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
37
37
  value?: valueType;
38
38
  valueStyle?: CSSProperties;
39
39
  valueRender?: (node: any) => VNodeChild;
@@ -45,6 +45,6 @@ declare const Statistic: vue363.DefineSetupFnComponent<StatisticRectProps, Stati
45
45
  styles?: StatisticStylesType;
46
46
  } & {
47
47
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
48
- }, vue363.PublicProps>;
48
+ }, vue310.PublicProps>;
49
49
  //#endregion
50
50
  export { Statistic, StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType };
@@ -2,7 +2,7 @@ import { VueNode } from "../_util/type.js";
2
2
  import { FormatConfig, valueType } from "./utils.js";
3
3
  import { StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType } from "./Statistic.js";
4
4
  import { ComponentBaseProps } from "../config-provider/context.js";
5
- import * as vue359 from "vue";
5
+ import * as vue306 from "vue";
6
6
  import { SlotsType } from "vue";
7
7
 
8
8
  //#region src/statistic/Timer.d.ts
@@ -19,10 +19,10 @@ interface StatisticTimeEmits {
19
19
  change: (value?: valueType) => void;
20
20
  [key: string]: (...args: any[]) => any;
21
21
  }
22
- declare const StatisticTimer: vue359.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
22
+ declare const StatisticTimer: vue306.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
23
23
  value?: valueType;
24
- valueStyle?: vue359.CSSProperties;
25
- valueRender?: (node: any) => vue359.VNodeChild;
24
+ valueStyle?: vue306.CSSProperties;
25
+ valueRender?: (node: any) => vue306.VNodeChild;
26
26
  title?: VueNode;
27
27
  prefix?: VueNode;
28
28
  suffix?: VueNode;
@@ -34,6 +34,6 @@ declare const StatisticTimer: vue359.DefineSetupFnComponent<StatisticTimerProps,
34
34
  format?: string;
35
35
  } & {
36
36
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
37
- }, vue359.PublicProps>;
37
+ }, vue306.PublicProps>;
38
38
  //#endregion
39
39
  export { StatisticTimeEmits, StatisticTimer, StatisticTimerProps, TimerType };
@@ -3,13 +3,13 @@ import { FormatConfig, valueType } from "./utils.js";
3
3
  import { Statistic, StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType } from "./Statistic.js";
4
4
  import { StatisticTimeEmits, StatisticTimer, StatisticTimerProps, TimerType } from "./Timer.js";
5
5
  import { ComponentBaseProps } from "../config-provider/context.js";
6
- import * as vue183 from "vue";
6
+ import * as vue166 from "vue";
7
7
 
8
8
  //#region src/statistic/index.d.ts
9
- declare const StatisticTimer$1: vue183.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, vue183.SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
9
+ declare const StatisticTimer$1: vue166.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, vue166.SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
10
10
  value?: valueType;
11
- valueStyle?: vue183.CSSProperties;
12
- valueRender?: (node: any) => vue183.VNodeChild;
11
+ valueStyle?: vue166.CSSProperties;
12
+ valueRender?: (node: any) => vue166.VNodeChild;
13
13
  title?: VueNode;
14
14
  prefix?: VueNode;
15
15
  suffix?: VueNode;
@@ -21,7 +21,7 @@ declare const StatisticTimer$1: vue183.DefineSetupFnComponent<StatisticTimerProp
21
21
  format?: string;
22
22
  } & {
23
23
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
24
- }, vue183.PublicProps>;
24
+ }, vue166.PublicProps>;
25
25
  declare const _default: typeof Statistic & {
26
26
  Timer: typeof StatisticTimer;
27
27
  };
@@ -1,13 +1,15 @@
1
+ import { genCssVar } from "../theme/util/genStyleUtils.js";
1
2
  import { Fragment, createTextVNode, createVNode, defineComponent } from "vue";
2
3
  import { clsx } from "@v-c/util";
3
4
 
4
5
  //#region src/steps/ProgressIcon.tsx
5
6
  const ProgressIcon = /* @__PURE__ */ defineComponent((props, { slots }) => {
6
7
  return () => {
7
- const { prefixCls, percent } = props;
8
+ const { prefixCls, rootPrefixCls, percent } = props;
8
9
  const progressCls = `${prefixCls}-item-progress-icon`;
9
10
  const circleCls = `${progressCls}-circle`;
10
- const dashArray = `calc(var(--progress-r) * 2 * ${Math.PI * percent / 100}) 9999`;
11
+ const [, varRef] = genCssVar(rootPrefixCls, "cmp-steps");
12
+ const dashArray = `calc(${varRef("progress-radius")} * 2 * ${Math.PI * percent / 100}) 9999`;
11
13
  return createVNode(Fragment, null, [createVNode("svg", {
12
14
  "class": `${progressCls}-svg`,
13
15
  "viewBox": "0 0 100 100",
@@ -34,6 +36,11 @@ const ProgressIcon = /* @__PURE__ */ defineComponent((props, { slots }) => {
34
36
  required: true,
35
37
  default: void 0
36
38
  },
39
+ rootPrefixCls: {
40
+ type: String,
41
+ required: true,
42
+ default: void 0
43
+ },
37
44
  percent: {
38
45
  type: Number,
39
46
  required: true,
@@ -1,7 +1,7 @@
1
1
  import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import "../_util/hooks/index.js";
4
- import * as vue188 from "vue";
4
+ import * as vue171 from "vue";
5
5
  import { CSSProperties, SlotsType } from "vue";
6
6
  import { StepsProps } from "@v-c/steps";
7
7
 
@@ -80,8 +80,8 @@ interface StepsSlots {
80
80
  default: () => any;
81
81
  iconRender?: IconRenderType;
82
82
  }
83
- declare const Steps: vue188.DefineSetupFnComponent<StepsProps$1, StepsEmits, SlotsType<StepsSlots>, StepsProps$1 & {
83
+ declare const Steps: vue171.DefineSetupFnComponent<StepsProps$1, StepsEmits, SlotsType<StepsSlots>, StepsProps$1 & {
84
84
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
85
- }, vue188.PublicProps>;
85
+ }, vue171.PublicProps>;
86
86
  //#endregion
87
87
  export { Steps, StepsProps$1 as StepsProps };