antdv-next 1.0.0-alpha.3 → 1.0.0-alpha.5

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 (363) hide show
  1. package/dist/_util/ActionButton.js +22 -10
  2. package/dist/_util/ContextIsolator.js +4 -2
  3. package/dist/_util/tools.js +2 -1
  4. package/dist/_util/wave/WaveEffect.js +6 -1
  5. package/dist/_util/wave/index.js +6 -3
  6. package/dist/_util/wave/style.js +4 -3
  7. package/dist/affix/index.d.ts +3 -3
  8. package/dist/affix/index.js +14 -6
  9. package/dist/alert/Alert.d.ts +4 -3
  10. package/dist/alert/Alert.js +52 -26
  11. package/dist/anchor/Anchor.d.ts +5 -5
  12. package/dist/anchor/Anchor.js +28 -14
  13. package/dist/anchor/AnchorLink.js +14 -8
  14. package/dist/anchor/index.d.ts +1 -1
  15. package/dist/antd.js +86 -86
  16. package/dist/app/App.d.ts +2 -2
  17. package/dist/app/App.js +12 -5
  18. package/dist/auto-complete/index.d.ts +77 -0
  19. package/dist/auto-complete/index.js +627 -0
  20. package/dist/avatar/Avatar.d.ts +3 -3
  21. package/dist/avatar/Avatar.js +24 -12
  22. package/dist/avatar/AvatarGroup.d.ts +2 -2
  23. package/dist/avatar/AvatarGroup.js +10 -5
  24. package/dist/badge/Ribbon.d.ts +3 -3
  25. package/dist/badge/Ribbon.js +14 -6
  26. package/dist/badge/ScrollNumber.js +10 -5
  27. package/dist/badge/SingleNumber.js +6 -3
  28. package/dist/badge/index.d.ts +3 -3
  29. package/dist/badge/index.js +32 -15
  30. package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
  31. package/dist/breadcrumb/Breadcrumb.js +24 -19
  32. package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
  33. package/dist/breadcrumb/BreadcrumbItem.js +33 -33
  34. package/dist/breadcrumb/index.d.ts +1 -1
  35. package/dist/button/Button.d.ts +3 -3
  36. package/dist/button/Button.js +46 -22
  37. package/dist/button/DefaultLoadingIcon.js +12 -6
  38. package/dist/button/IconWrapper.js +2 -1
  39. package/dist/button/style/variant.js +116 -104
  40. package/dist/calendar/Header.js +81 -37
  41. package/dist/calendar/generateCalendar.js +44 -19
  42. package/dist/calendar/index.d.ts +3 -3
  43. package/dist/card/Card.d.ts +3 -3
  44. package/dist/card/Card.js +50 -25
  45. package/dist/card/CardGrid.d.ts +2 -2
  46. package/dist/card/CardGrid.js +4 -2
  47. package/dist/card/CardMeta.d.ts +3 -3
  48. package/dist/card/CardMeta.js +12 -6
  49. package/dist/carousel/index.d.ts +3 -3
  50. package/dist/carousel/index.js +112 -56
  51. package/dist/cascader/Panel.d.ts +3 -3
  52. package/dist/cascader/Panel.js +44 -17
  53. package/dist/cascader/index.d.ts +3 -3
  54. package/dist/cascader/index.js +175 -82
  55. package/dist/checkbox/Checkbox.d.ts +3 -3
  56. package/dist/checkbox/Checkbox.js +36 -17
  57. package/dist/checkbox/Group.d.ts +3 -3
  58. package/dist/checkbox/Group.js +16 -8
  59. package/dist/collapse/Collapse.d.ts +3 -3
  60. package/dist/collapse/Collapse.js +34 -17
  61. package/dist/color-picker/ColorPicker.d.ts +4 -4
  62. package/dist/color-picker/ColorPicker.js +58 -28
  63. package/dist/color-picker/ColorPickerPanel.js +74 -35
  64. package/dist/color-picker/components/ColorAlphaInput.js +6 -3
  65. package/dist/color-picker/components/ColorClear.js +8 -4
  66. package/dist/color-picker/components/ColorHexInput.js +6 -3
  67. package/dist/color-picker/components/ColorHsbInput.js +6 -3
  68. package/dist/color-picker/components/ColorInput.js +16 -7
  69. package/dist/color-picker/components/ColorPresets.js +8 -4
  70. package/dist/color-picker/components/ColorRgbInput.js +6 -3
  71. package/dist/color-picker/components/ColorSlider.js +58 -27
  72. package/dist/color-picker/components/ColorSteppers.js +14 -7
  73. package/dist/color-picker/components/ColorTrigger.js +20 -9
  74. package/dist/color-picker/components/PanelPicker/GradientColorBar.js +40 -19
  75. package/dist/components.d.ts +3 -2
  76. package/dist/components.js +7 -4
  77. package/dist/config-provider/SizeContext.js +2 -1
  78. package/dist/config-provider/context.js +2 -2
  79. package/dist/config-provider/defaultRenderEmpty.js +2 -1
  80. package/dist/config-provider/index.d.ts +3 -3
  81. package/dist/config-provider/index.js +304 -152
  82. package/dist/date-picker/PickerButton.js +46 -22
  83. package/dist/date-picker/generatePicker/SuffixIcon.js +8 -4
  84. package/dist/date-picker/generatePicker/generateRangePicker.js +555 -257
  85. package/dist/date-picker/generatePicker/generateSinglePicker.js +559 -257
  86. package/dist/date-picker/generatePicker/index.d.ts +15 -15
  87. package/dist/date-picker/index.d.ts +25 -25
  88. package/dist/descriptions/Cell.js +20 -10
  89. package/dist/descriptions/Row.js +16 -8
  90. package/dist/descriptions/index.d.ts +3 -3
  91. package/dist/descriptions/index.js +30 -15
  92. package/dist/divider/index.d.ts +2 -2
  93. package/dist/divider/index.js +26 -13
  94. package/dist/drawer/DrawerPanel.js +38 -18
  95. package/dist/drawer/index.d.ts +3 -3
  96. package/dist/drawer/index.js +130 -62
  97. package/dist/dropdown/dropdown.d.ts +4 -4
  98. package/dist/dropdown/dropdown.js +47 -24
  99. package/dist/empty/index.d.ts +3 -3
  100. package/dist/empty/index.js +12 -6
  101. package/dist/flex/index.d.ts +3 -3
  102. package/dist/flex/index.js +28 -9
  103. package/dist/float-button/BackTop.d.ts +3 -3
  104. package/dist/float-button/BackTop.js +36 -18
  105. package/dist/float-button/FloatButton.d.ts +3 -3
  106. package/dist/float-button/FloatButton.js +32 -16
  107. package/dist/float-button/FloatButtonGroup.d.ts +3 -3
  108. package/dist/float-button/FloatButtonGroup.js +42 -21
  109. package/dist/float-button/PurePanel.js +78 -39
  110. package/dist/float-button/style/button.js +4 -4
  111. package/dist/float-button/style/group.js +12 -12
  112. package/dist/form/ErrorList.js +12 -6
  113. package/dist/form/Form.d.ts +3 -3
  114. package/dist/form/Form.js +48 -24
  115. package/dist/form/FormItem/ItemHolder.js +66 -33
  116. package/dist/form/FormItem/StatusProvider.js +18 -8
  117. package/dist/form/FormItem/index.d.ts +3 -3
  118. package/dist/form/FormItem/index.js +56 -28
  119. package/dist/form/FormItemInput.js +24 -12
  120. package/dist/form/FormItemLabel.js +20 -10
  121. package/dist/form/context.js +10 -5
  122. package/dist/form/style/index.js +3 -2
  123. package/dist/grid/col.js +26 -13
  124. package/dist/grid/row.js +10 -5
  125. package/dist/grid/style/index.js +5 -4
  126. package/dist/image/PreviewGroup.d.ts +2 -2
  127. package/dist/image/PreviewGroup.js +20 -9
  128. package/dist/image/index.d.ts +4 -4
  129. package/dist/image/index.js +24 -12
  130. package/dist/index.d.ts +5 -4
  131. package/dist/index.js +5 -4
  132. package/dist/input/Group.js +6 -3
  133. package/dist/input/Input.js +71 -30
  134. package/dist/input/OTP/OTPInput.js +76 -33
  135. package/dist/input/OTP/index.js +37 -18
  136. package/dist/input/Password.js +76 -33
  137. package/dist/input/Search.js +80 -33
  138. package/dist/input/TextArea.d.ts +3 -3
  139. package/dist/input/TextArea.js +59 -26
  140. package/dist/input/index.d.ts +11 -11
  141. package/dist/input-number/index.d.ts +3 -3
  142. package/dist/input-number/index.js +89 -38
  143. package/dist/input-number/style/index.js +18 -17
  144. package/dist/layout/Sider.js +20 -10
  145. package/dist/layout/index.d.ts +6 -6
  146. package/dist/layout/layout.d.ts +2 -2
  147. package/dist/layout/layout.js +28 -14
  148. package/dist/locale/index.js +4 -2
  149. package/dist/masonry/Masonry.d.ts +3 -3
  150. package/dist/masonry/Masonry.js +28 -15
  151. package/dist/masonry/MasonryItem.js +18 -8
  152. package/dist/mentions/index.d.ts +3 -3
  153. package/dist/mentions/index.js +63 -29
  154. package/dist/mentions/style/index.js +18 -17
  155. package/dist/menu/MenuContext.js +2 -1
  156. package/dist/menu/MenuDivider.d.ts +2 -2
  157. package/dist/menu/MenuDivider.js +4 -2
  158. package/dist/menu/MenuItem.d.ts +3 -3
  159. package/dist/menu/MenuItem.js +38 -19
  160. package/dist/menu/OverrideContext.js +2 -1
  161. package/dist/menu/SubMenu.d.ts +3 -3
  162. package/dist/menu/SubMenu.js +40 -19
  163. package/dist/menu/index.d.ts +5 -5
  164. package/dist/menu/index.js +84 -37
  165. package/dist/menu/menu.js +88 -39
  166. package/dist/message/PurePanel.d.ts +2 -2
  167. package/dist/message/PurePanel.js +42 -20
  168. package/dist/message/index.js +6 -3
  169. package/dist/message/useMessage.js +26 -12
  170. package/dist/modal/ConfirmDialog.js +392 -184
  171. package/dist/modal/Modal.d.ts +3 -3
  172. package/dist/modal/Modal.js +102 -47
  173. package/dist/modal/confirm.js +116 -54
  174. package/dist/modal/shared.js +18 -9
  175. package/dist/modal/useModal/HookModal.js +8 -4
  176. package/dist/notification/PurePanel.d.ts +2 -2
  177. package/dist/notification/PurePanel.js +56 -27
  178. package/dist/notification/index.js +6 -3
  179. package/dist/notification/useNotification.js +34 -16
  180. package/dist/package.d.ts +109 -3
  181. package/dist/package.js +1 -1
  182. package/dist/pagination/Pagination.d.ts +3 -3
  183. package/dist/pagination/Pagination.js +69 -34
  184. package/dist/pagination/style/index.js +61 -50
  185. package/dist/popconfirm/PurePanel.d.ts +2 -2
  186. package/dist/popconfirm/PurePanel.js +68 -34
  187. package/dist/popconfirm/index.d.ts +3 -3
  188. package/dist/popconfirm/index.js +76 -35
  189. package/dist/popover/PurePanel.js +132 -60
  190. package/dist/popover/index.d.ts +3 -3
  191. package/dist/popover/index.js +60 -27
  192. package/dist/popover/style/index.js +11 -8
  193. package/dist/progress/Circle.js +52 -26
  194. package/dist/progress/Line.js +52 -26
  195. package/dist/progress/Steps.js +50 -25
  196. package/dist/progress/progress.d.ts +3 -3
  197. package/dist/progress/progress.js +50 -25
  198. package/dist/qrcode/QrcodeStatus.js +12 -5
  199. package/dist/qrcode/index.d.ts +3 -3
  200. package/dist/qrcode/index.js +48 -23
  201. package/dist/radio/group.js +34 -15
  202. package/dist/radio/index.d.ts +5 -5
  203. package/dist/radio/radio.d.ts +3 -3
  204. package/dist/radio/radio.js +36 -17
  205. package/dist/radio/radioButton.js +30 -14
  206. package/dist/rate/index.d.ts +3 -3
  207. package/dist/rate/index.js +34 -17
  208. package/dist/result/index.d.ts +3 -3
  209. package/dist/result/index.js +28 -12
  210. package/dist/result/noFound.d.ts +2 -2
  211. package/dist/result/serverError.d.ts +2 -2
  212. package/dist/result/unauthorized.d.ts +2 -2
  213. package/dist/segmented/index.d.ts +3 -3
  214. package/dist/segmented/index.js +36 -18
  215. package/dist/select/index.d.ts +6 -6
  216. package/dist/select/index.js +150 -74
  217. package/dist/select/style/select-input-multiple.js +31 -29
  218. package/dist/select/style/select-input.js +50 -44
  219. package/dist/skeleton/Avatar.d.ts +2 -2
  220. package/dist/skeleton/Avatar.js +10 -5
  221. package/dist/skeleton/Button.d.ts +2 -2
  222. package/dist/skeleton/Button.js +12 -6
  223. package/dist/skeleton/Element.js +10 -5
  224. package/dist/skeleton/Image.d.ts +2 -2
  225. package/dist/skeleton/Image.js +6 -3
  226. package/dist/skeleton/Input.d.ts +2 -2
  227. package/dist/skeleton/Input.js +10 -5
  228. package/dist/skeleton/Node.d.ts +3 -3
  229. package/dist/skeleton/Node.js +8 -4
  230. package/dist/skeleton/Paragraph.js +8 -4
  231. package/dist/skeleton/Skeleton.d.ts +3 -3
  232. package/dist/skeleton/Skeleton.js +20 -10
  233. package/dist/skeleton/Title.js +8 -4
  234. package/dist/slider/SliderTooltip.js +62 -28
  235. package/dist/slider/index.d.ts +3 -3
  236. package/dist/slider/index.js +60 -29
  237. package/dist/space/Addon.js +8 -4
  238. package/dist/space/Compact.d.ts +2 -0
  239. package/dist/space/Compact.js +37 -15
  240. package/dist/space/Item.js +8 -4
  241. package/dist/space/index.d.ts +5 -5
  242. package/dist/space/index.js +23 -12
  243. package/dist/space/style/addon.js +20 -19
  244. package/dist/space/style/compact.js +20 -0
  245. package/dist/spin/Indicator/Looper.js +4 -2
  246. package/dist/spin/Indicator/Progress.js +8 -4
  247. package/dist/spin/Indicator/index.js +6 -3
  248. package/dist/spin/index.d.ts +3 -3
  249. package/dist/spin/index.js +24 -12
  250. package/dist/splitter/Panel.js +18 -9
  251. package/dist/splitter/SplitBar.js +53 -24
  252. package/dist/splitter/Splitter.d.ts +3 -3
  253. package/dist/splitter/Splitter.js +22 -11
  254. package/dist/splitter/index.d.ts +2 -2
  255. package/dist/splitter/style/index.js +6 -6
  256. package/dist/statistic/Number.js +12 -6
  257. package/dist/statistic/Statistic.d.ts +3 -3
  258. package/dist/statistic/Statistic.js +30 -15
  259. package/dist/statistic/Timer.d.ts +5 -5
  260. package/dist/statistic/Timer.js +34 -17
  261. package/dist/statistic/index.d.ts +5 -5
  262. package/dist/steps/PanelArrow.js +2 -1
  263. package/dist/steps/ProgressIcon.js +13 -4
  264. package/dist/steps/index.d.ts +3 -3
  265. package/dist/steps/index.js +51 -26
  266. package/dist/steps/style/horizontal.js +13 -10
  267. package/dist/steps/style/icon.js +11 -8
  268. package/dist/steps/style/index.js +19 -18
  269. package/dist/steps/style/inline.js +19 -16
  270. package/dist/steps/style/label-placement.js +22 -20
  271. package/dist/steps/style/nav.js +7 -5
  272. package/dist/steps/style/panel.js +34 -32
  273. package/dist/steps/style/progress-dot.js +10 -8
  274. package/dist/steps/style/progress.js +29 -58
  275. package/dist/steps/style/rtl.js +6 -4
  276. package/dist/steps/style/small.js +10 -8
  277. package/dist/steps/style/status.js +124 -121
  278. package/dist/steps/style/util.js +7 -4
  279. package/dist/steps/style/vertical.js +17 -14
  280. package/dist/style/placementArrow.js +7 -5
  281. package/dist/switch/index.d.ts +3 -3
  282. package/dist/switch/index.js +34 -17
  283. package/dist/table/Column.d.ts +3 -3
  284. package/dist/table/Column.js +86 -41
  285. package/dist/table/ColumnGroup.d.ts +3 -3
  286. package/dist/table/ColumnGroup.js +84 -41
  287. package/dist/table/InternalTable.js +107 -53
  288. package/dist/table/Table.d.ts +3 -3
  289. package/dist/table/Table.js +104 -51
  290. package/dist/table/hooks/useFilter/FilterDropdown.js +39 -19
  291. package/dist/table/hooks/useFilter/FilterWrapper.js +4 -2
  292. package/dist/tabs/TabPane.d.ts +3 -3
  293. package/dist/tabs/index.d.ts +3 -3
  294. package/dist/tabs/index.js +62 -31
  295. package/dist/tag/CheckableTag.d.ts +3 -3
  296. package/dist/tag/CheckableTag.js +10 -5
  297. package/dist/tag/CheckableTagGroup.d.ts +3 -3
  298. package/dist/tag/CheckableTagGroup.js +28 -12
  299. package/dist/tag/index.d.ts +3 -3
  300. package/dist/tag/index.js +30 -14
  301. package/dist/theme/index.d.ts +4 -4
  302. package/dist/theme/util/genStyleUtils.js +8 -5
  303. package/dist/time-picker/index.d.ts +7 -7
  304. package/dist/time-picker/index.js +1106 -509
  305. package/dist/timeline/Timeline.d.ts +3 -3
  306. package/dist/timeline/Timeline.js +20 -10
  307. package/dist/timeline/TimelineItem.js +22 -10
  308. package/dist/timeline/TimelineItemList.js +24 -12
  309. package/dist/tooltip/PurePanel.d.ts +2 -2
  310. package/dist/tooltip/PurePanel.js +61 -29
  311. package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
  312. package/dist/tooltip/index.d.ts +3 -3
  313. package/dist/tooltip/index.js +62 -30
  314. package/dist/tooltip/style/index.js +10 -8
  315. package/dist/tooltip/util.js +5 -3
  316. package/dist/tour/index.d.ts +3 -3
  317. package/dist/tour/index.js +52 -25
  318. package/dist/tour/panelRender.js +18 -9
  319. package/dist/tour/style/index.js +5 -4
  320. package/dist/transfer/Actions.d.ts +2 -2
  321. package/dist/transfer/Actions.js +36 -18
  322. package/dist/transfer/ListBody.js +76 -38
  323. package/dist/transfer/ListItem.js +22 -11
  324. package/dist/transfer/Section.d.ts +2 -2
  325. package/dist/transfer/Section.js +76 -38
  326. package/dist/transfer/Transfer.d.ts +3 -3
  327. package/dist/transfer/Transfer.js +53 -27
  328. package/dist/transfer/search.js +8 -4
  329. package/dist/tree/DirectoryTree.d.ts +3 -3
  330. package/dist/tree/DirectoryTree.js +90 -45
  331. package/dist/tree/Tree.d.ts +3 -3
  332. package/dist/tree/Tree.js +90 -45
  333. package/dist/tree/utils/iconUtil.js +10 -5
  334. package/dist/tree-select/index.d.ts +4 -4
  335. package/dist/tree-select/index.js +195 -95
  336. package/dist/typography/Base/CopyBtn.js +24 -12
  337. package/dist/typography/Base/Ellipsis.js +16 -8
  338. package/dist/typography/Base/EllipsisTooltip.js +6 -3
  339. package/dist/typography/Base/index.js +42 -20
  340. package/dist/typography/Editable.js +28 -13
  341. package/dist/typography/Link.d.ts +3 -3
  342. package/dist/typography/Link.js +48 -23
  343. package/dist/typography/Paragraph.d.ts +3 -3
  344. package/dist/typography/Paragraph.js +42 -20
  345. package/dist/typography/Text.js +42 -20
  346. package/dist/typography/Title.d.ts +3 -3
  347. package/dist/typography/Title.js +42 -20
  348. package/dist/typography/Typography.d.ts +3 -3
  349. package/dist/typography/Typography.js +16 -7
  350. package/dist/typography/index.d.ts +9 -9
  351. package/dist/upload/Dragger.d.ts +6 -3
  352. package/dist/upload/Dragger.js +76 -38
  353. package/dist/upload/Upload.d.ts +3 -3
  354. package/dist/upload/Upload.js +74 -37
  355. package/dist/upload/UploadList/ListItem.js +44 -22
  356. package/dist/upload/UploadList/index.js +50 -24
  357. package/dist/upload/index.d.ts +6 -3
  358. package/dist/watermark/index.d.ts +2 -2
  359. package/dist/watermark/index.js +22 -11
  360. package/global.d.ts +2 -0
  361. package/package.json +22 -4
  362. package/web-tags.json +4524 -0
  363. package/web-types.json +12779 -0
@@ -31,11 +31,13 @@ const StatisticNumber = /* @__PURE__ */ defineComponent((props) => {
31
31
  }, { props: {
32
32
  value: {
33
33
  type: [Number, String],
34
- required: true
34
+ required: true,
35
+ default: void 0
35
36
  },
36
37
  prefixCls: {
37
38
  type: String,
38
- required: false
39
+ required: false,
40
+ default: void 0
39
41
  },
40
42
  formatter: {
41
43
  type: [
@@ -43,19 +45,23 @@ const StatisticNumber = /* @__PURE__ */ defineComponent((props) => {
43
45
  String,
44
46
  Function
45
47
  ],
46
- required: false
48
+ required: false,
49
+ default: void 0
47
50
  },
48
51
  decimalSeparator: {
49
52
  type: String,
50
- required: false
53
+ required: false,
54
+ default: void 0
51
55
  },
52
56
  groupSeparator: {
53
57
  type: String,
54
- required: false
58
+ required: false,
59
+ default: void 0
55
60
  },
56
61
  precision: {
57
62
  type: Number,
58
- required: false
63
+ required: false,
64
+ default: void 0
59
65
  }
60
66
  } });
61
67
  var Number_default = StatisticNumber;
@@ -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 vue341 from "vue";
6
+ import * as vue268 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: vue341.DefineSetupFnComponent<StatisticRectProps, StatisticEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
36
+ declare const Statistic: vue268.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: vue341.DefineSetupFnComponent<StatisticRectProps, Stati
45
45
  styles?: StatisticStylesType;
46
46
  } & {
47
47
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
48
- }, vue341.PublicProps>;
48
+ }, vue268.PublicProps>;
49
49
  //#endregion
50
50
  export { Statistic, StatisticClassNamesType, StatisticProps, StatisticSlots, StatisticStylesType };
@@ -92,39 +92,48 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
92
92
  String,
93
93
  Function
94
94
  ],
95
- required: false
95
+ required: false,
96
+ default: void 0
96
97
  },
97
98
  decimalSeparator: {
98
99
  type: String,
99
- required: false
100
+ required: false,
101
+ default: void 0
100
102
  },
101
103
  groupSeparator: {
102
104
  type: String,
103
- required: false
105
+ required: false,
106
+ default: void 0
104
107
  },
105
108
  precision: {
106
109
  type: Number,
107
- required: false
110
+ required: false,
111
+ default: void 0
108
112
  },
109
113
  rootClass: {
110
114
  type: String,
111
- required: false
115
+ required: false,
116
+ default: void 0
112
117
  },
113
118
  prefixCls: {
114
119
  type: String,
115
- required: false
120
+ required: false,
121
+ default: void 0
116
122
  },
117
123
  value: {
118
124
  type: [Number, String],
119
- required: false
125
+ required: false,
126
+ default: void 0
120
127
  },
121
128
  valueStyle: {
122
129
  type: Object,
123
- required: false
130
+ required: false,
131
+ default: void 0
124
132
  },
125
133
  valueRender: {
126
134
  type: Function,
127
- required: false
135
+ required: false,
136
+ default: void 0
128
137
  },
129
138
  title: {
130
139
  type: [
@@ -135,7 +144,8 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
135
144
  null,
136
145
  Object
137
146
  ],
138
- required: false
147
+ required: false,
148
+ default: void 0
139
149
  },
140
150
  prefix: {
141
151
  type: [
@@ -146,7 +156,8 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
146
156
  null,
147
157
  Object
148
158
  ],
149
- required: false
159
+ required: false,
160
+ default: void 0
150
161
  },
151
162
  suffix: {
152
163
  type: [
@@ -157,19 +168,23 @@ const Statistic = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit,
157
168
  null,
158
169
  Object
159
170
  ],
160
- required: false
171
+ required: false,
172
+ default: void 0
161
173
  },
162
174
  loading: {
163
175
  type: Boolean,
164
- required: false
176
+ required: false,
177
+ default: void 0
165
178
  },
166
179
  classes: {
167
180
  type: [Object, Function],
168
- required: false
181
+ required: false,
182
+ default: void 0
169
183
  },
170
184
  styles: {
171
185
  type: [Object, Function],
172
- required: false
186
+ required: false,
187
+ default: void 0
173
188
  }
174
189
  }, {
175
190
  value: 0,
@@ -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 vue349 from "vue";
5
+ import * as vue264 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: vue349.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
22
+ declare const StatisticTimer: vue264.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
23
23
  value?: valueType;
24
- valueStyle?: vue349.CSSProperties;
25
- valueRender?: (node: any) => vue349.VNodeChild;
24
+ valueStyle?: vue264.CSSProperties;
25
+ valueRender?: (node: any) => vue264.VNodeChild;
26
26
  title?: VueNode;
27
27
  prefix?: VueNode;
28
28
  suffix?: VueNode;
@@ -34,6 +34,6 @@ declare const StatisticTimer: vue349.DefineSetupFnComponent<StatisticTimerProps,
34
34
  format?: string;
35
35
  } & {
36
36
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
37
- }, vue349.PublicProps>;
37
+ }, vue264.PublicProps>;
38
38
  //#endregion
39
39
  export { StatisticTimeEmits, StatisticTimer, StatisticTimerProps, TimerType };
@@ -63,39 +63,48 @@ const StatisticTimer = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
63
63
  String,
64
64
  Function
65
65
  ],
66
- required: false
66
+ required: false,
67
+ default: void 0
67
68
  },
68
69
  decimalSeparator: {
69
70
  type: String,
70
- required: false
71
+ required: false,
72
+ default: void 0
71
73
  },
72
74
  groupSeparator: {
73
75
  type: String,
74
- required: false
76
+ required: false,
77
+ default: void 0
75
78
  },
76
79
  precision: {
77
80
  type: Number,
78
- required: false
81
+ required: false,
82
+ default: void 0
79
83
  },
80
84
  rootClass: {
81
85
  type: String,
82
- required: false
86
+ required: false,
87
+ default: void 0
83
88
  },
84
89
  prefixCls: {
85
90
  type: String,
86
- required: false
91
+ required: false,
92
+ default: void 0
87
93
  },
88
94
  value: {
89
95
  type: [Number, String],
90
- required: false
96
+ required: false,
97
+ default: void 0
91
98
  },
92
99
  valueStyle: {
93
100
  type: Object,
94
- required: false
101
+ required: false,
102
+ default: void 0
95
103
  },
96
104
  valueRender: {
97
105
  type: Function,
98
- required: false
106
+ required: false,
107
+ default: void 0
99
108
  },
100
109
  title: {
101
110
  type: [
@@ -106,7 +115,8 @@ const StatisticTimer = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
106
115
  null,
107
116
  Object
108
117
  ],
109
- required: false
118
+ required: false,
119
+ default: void 0
110
120
  },
111
121
  prefix: {
112
122
  type: [
@@ -117,7 +127,8 @@ const StatisticTimer = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
117
127
  null,
118
128
  Object
119
129
  ],
120
- required: false
130
+ required: false,
131
+ default: void 0
121
132
  },
122
133
  suffix: {
123
134
  type: [
@@ -128,27 +139,33 @@ const StatisticTimer = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
128
139
  null,
129
140
  Object
130
141
  ],
131
- required: false
142
+ required: false,
143
+ default: void 0
132
144
  },
133
145
  loading: {
134
146
  type: Boolean,
135
- required: false
147
+ required: false,
148
+ default: void 0
136
149
  },
137
150
  classes: {
138
151
  type: [Object, Function],
139
- required: false
152
+ required: false,
153
+ default: void 0
140
154
  },
141
155
  styles: {
142
156
  type: [Object, Function],
143
- required: false
157
+ required: false,
158
+ default: void 0
144
159
  },
145
160
  type: {
146
161
  type: String,
147
- required: true
162
+ required: true,
163
+ default: void 0
148
164
  },
149
165
  format: {
150
166
  type: String,
151
- required: false
167
+ required: false,
168
+ default: void 0
152
169
  }
153
170
  }, {
154
171
  value: 0,
@@ -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 vue162 from "vue";
6
+ import * as vue112 from "vue";
7
7
 
8
8
  //#region src/statistic/index.d.ts
9
- declare const StatisticTimer$1: vue162.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, vue162.SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
9
+ declare const StatisticTimer$1: vue112.DefineSetupFnComponent<StatisticTimerProps, StatisticTimeEmits, vue112.SlotsType<StatisticSlots>, FormatConfig & ComponentBaseProps & {
10
10
  value?: valueType;
11
- valueStyle?: vue162.CSSProperties;
12
- valueRender?: (node: any) => vue162.VNodeChild;
11
+ valueStyle?: vue112.CSSProperties;
12
+ valueRender?: (node: any) => vue112.VNodeChild;
13
13
  title?: VueNode;
14
14
  prefix?: VueNode;
15
15
  suffix?: VueNode;
@@ -21,7 +21,7 @@ declare const StatisticTimer$1: vue162.DefineSetupFnComponent<StatisticTimerProp
21
21
  format?: string;
22
22
  } & {
23
23
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
24
- }, vue162.PublicProps>;
24
+ }, vue112.PublicProps>;
25
25
  declare const _default: typeof Statistic & {
26
26
  Timer: typeof StatisticTimer;
27
27
  };
@@ -14,7 +14,8 @@ const PanelArrow = /* @__PURE__ */ defineComponent((props) => {
14
14
  }, {
15
15
  props: { prefixCls: {
16
16
  type: String,
17
- required: true
17
+ required: true,
18
+ default: void 0
18
19
  } },
19
20
  name: "PanelArrow"
20
21
  });
@@ -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",
@@ -31,11 +33,18 @@ const ProgressIcon = /* @__PURE__ */ defineComponent((props, { slots }) => {
31
33
  props: {
32
34
  prefixCls: {
33
35
  type: String,
34
- required: true
36
+ required: true,
37
+ default: void 0
38
+ },
39
+ rootPrefixCls: {
40
+ type: String,
41
+ required: true,
42
+ default: void 0
35
43
  },
36
44
  percent: {
37
45
  type: Number,
38
- required: true
46
+ required: true,
47
+ default: void 0
39
48
  }
40
49
  },
41
50
  name: "ProgressIcon"
@@ -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 vue167 from "vue";
4
+ import * as vue136 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: vue167.DefineSetupFnComponent<StepsProps$1, StepsEmits, SlotsType<StepsSlots>, StepsProps$1 & {
83
+ declare const Steps: vue136.DefineSetupFnComponent<StepsProps$1, StepsEmits, SlotsType<StepsSlots>, StepsProps$1 & {
84
84
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
85
- }, vue167.PublicProps>;
85
+ }, vue136.PublicProps>;
86
86
  //#endregion
87
87
  export { Steps, StepsProps$1 as StepsProps };
@@ -1,4 +1,5 @@
1
1
  import { useComponentBaseConfig } from "../config-provider/context.js";
2
+ import { genCssVar } from "../theme/util/genStyleUtils.js";
2
3
  import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
3
4
  import { devUseWarning, isDev } from "../_util/warning.js";
4
5
  import "../_util/hooks/index.js";
@@ -25,7 +26,7 @@ function _isSlot(s) {
25
26
  const waveEffectClassNames = { itemIcon: TARGET_CLS };
26
27
  const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) => {
27
28
  const internalContent = useInternalContext();
28
- const { direction: rtlDirection, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, prefixCls } = useComponentBaseConfig("steps", props);
29
+ const { direction: rtlDirection, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, prefixCls, rootPrefixCls } = useComponentBaseConfig("steps", props);
29
30
  const { size, items, responsive, type, classes, styles } = toPropsRefs(props, "size", "items", "responsive", "type", "classes", "styles");
30
31
  const components = computed(() => {
31
32
  return {
@@ -35,10 +36,11 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
35
36
  });
36
37
  const itemIconCls = computed(() => `${prefixCls.value}-item-icon`);
37
38
  const [hashId, cssVarCls] = style_default(prefixCls);
39
+ const [varName] = genCssVar(rootPrefixCls.value, "cmp-steps");
38
40
  const mergedSize = useSize(size);
39
41
  const mergedItems = computed(() => (items.value || []).filter(Boolean));
40
42
  const breakpoint = useBreakpoint_default(responsive);
41
- const xl = computed(() => breakpoint.value?.xl);
43
+ const xs = computed(() => breakpoint.value?.xs);
42
44
  const mergedType = computed(() => {
43
45
  if (type.value && type.value !== "default") return type.value;
44
46
  if (props.progressDot) return "dot";
@@ -49,7 +51,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
49
51
  const mergedOrientation = computed(() => {
50
52
  const nextOrientation = props.orientation || props.direction;
51
53
  if (mergedType.value === "panel") return "horizontal";
52
- return responsive.value && xl.value || nextOrientation === "vertical" ? "vertical" : "horizontal";
54
+ return responsive.value && xs.value || nextOrientation === "vertical" ? "vertical" : "horizontal";
53
55
  });
54
56
  const mergedTitlePlacement = computed(() => {
55
57
  if (isDot.value || mergedOrientation.value === "vertical") return mergedOrientation.value === "vertical" ? "horizontal" : "vertical";
@@ -104,6 +106,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
104
106
  }();
105
107
  numNode = createVNode(ProgressIcon_default, {
106
108
  "prefixCls": prefixCls.value,
109
+ "rootPrefixCls": rootPrefixCls.value,
107
110
  "percent": mergedPercent.value
108
111
  }, _isSlot(numNode) ? numNode : { default: () => [_numNode] });
109
112
  }
@@ -146,7 +149,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
146
149
  return createVNode(Fragment, null, [itemNode, createVNode(PanelArrow_default, { "prefixCls": prefixCls.value }, null)]);
147
150
  } : void 0;
148
151
  const mergedStyle = {
149
- "--steps-items-offset": offset,
152
+ [varName("items-offset")]: `${offset}`,
150
153
  ...contextStyle.value,
151
154
  ...style
152
155
  };
@@ -183,91 +186,113 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
183
186
  props: /* @__PURE__ */ mergeDefaults({
184
187
  prefixCls: {
185
188
  type: String,
186
- required: false
189
+ required: false,
190
+ default: void 0
187
191
  },
188
192
  rootClass: {
189
193
  type: String,
190
- required: false
194
+ required: false,
195
+ default: void 0
191
196
  },
192
197
  classes: {
193
198
  type: [Object, Function],
194
- required: false
199
+ required: false,
200
+ default: void 0
195
201
  },
196
202
  styles: {
197
203
  type: [Object, Function],
198
- required: false
204
+ required: false,
205
+ default: void 0
199
206
  },
200
207
  variant: {
201
208
  type: String,
202
- required: false
209
+ required: false,
210
+ default: void 0
203
211
  },
204
212
  size: {
205
213
  type: String,
206
- required: false
214
+ required: false,
215
+ default: void 0
207
216
  },
208
217
  type: {
209
218
  type: String,
210
- required: false
219
+ required: false,
220
+ default: void 0
211
221
  },
212
222
  direction: {
213
223
  type: String,
214
- required: false
224
+ required: false,
225
+ default: void 0
215
226
  },
216
227
  orientation: {
217
228
  type: String,
218
- required: false
229
+ required: false,
230
+ default: void 0
219
231
  },
220
232
  labelPlacement: {
221
233
  type: String,
222
- required: false
234
+ required: false,
235
+ default: void 0
223
236
  },
224
237
  titlePlacement: {
225
238
  type: String,
226
- required: false
239
+ required: false,
240
+ default: void 0
227
241
  },
228
242
  progressDot: {
229
243
  type: [Boolean, Function],
230
- required: false
244
+ required: false,
245
+ default: void 0
231
246
  },
232
247
  responsive: {
233
248
  type: Boolean,
234
- required: false
249
+ required: false,
250
+ default: void 0
235
251
  },
236
252
  ellipsis: {
237
253
  type: Boolean,
238
- required: false
254
+ required: false,
255
+ default: void 0
239
256
  },
240
257
  offset: {
241
258
  type: Number,
242
- required: false
259
+ required: false,
260
+ default: void 0
243
261
  },
244
262
  current: {
245
263
  type: Number,
246
- required: false
264
+ required: false,
265
+ default: void 0
247
266
  },
248
267
  initial: {
249
268
  type: Number,
250
- required: false
269
+ required: false,
270
+ default: void 0
251
271
  },
252
272
  items: {
253
273
  type: Array,
254
- required: false
274
+ required: false,
275
+ default: void 0
255
276
  },
256
277
  percent: {
257
278
  type: Number,
258
- required: false
279
+ required: false,
280
+ default: void 0
259
281
  },
260
282
  status: {
261
283
  type: String,
262
- required: false
284
+ required: false,
285
+ default: void 0
263
286
  },
264
287
  iconRender: {
265
288
  type: Function,
266
- required: false
289
+ required: false,
290
+ default: void 0
267
291
  },
268
292
  onChange: {
269
293
  type: Function,
270
- required: false
294
+ required: false,
295
+ default: void 0
271
296
  }
272
297
  }, {
273
298
  variant: "filled",
@@ -1,20 +1,23 @@
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
2
+
1
3
  //#region src/steps/style/horizontal.ts
2
4
  const genHorizontalStyle = (token) => {
3
- const { componentCls } = token;
5
+ const { componentCls, antCls } = token;
4
6
  const itemCls = `${componentCls}-item`;
7
+ const [varName, varRef] = genCssVar(antCls, "cmp-steps");
5
8
  return { [`${componentCls}-horizontal`]: { [`> ${itemCls}`]: {
6
9
  flex: "1 1 auto",
7
10
  minWidth: token.iconSize,
8
11
  [`${itemCls}-rail`]: {
9
- "--steps-horizontal-rail-margin": "calc(var(--steps-icon-size-max) / 2 + var(--steps-item-wrapper-padding-top))",
10
- "position": "static",
11
- "marginTop": "var(--steps-horizontal-rail-margin)",
12
- "width": "auto",
13
- "borderBlockStartWidth": "var(--steps-rail-size)",
14
- "flex": 1,
15
- "minWidth": 0,
16
- "alignSelf": "flex-start",
17
- "transform": "translateY(-50%)"
12
+ [varName("horizontal-rail-margin")]: `calc(${varRef("icon-size-max")} / 2 + ${varRef("item-wrapper-padding-top")})`,
13
+ position: "static",
14
+ marginTop: varRef("horizontal-rail-margin"),
15
+ width: "auto",
16
+ borderBlockStartWidth: varRef("rail-size"),
17
+ flex: 1,
18
+ minWidth: 0,
19
+ alignSelf: "flex-start",
20
+ transform: "translateY(-50%)"
18
21
  }
19
22
  } } };
20
23
  };
@@ -1,13 +1,16 @@
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
2
+
1
3
  //#region src/steps/style/icon.ts
2
4
  const genIconStyle = (token) => {
3
- const { componentCls, customIconFontSize, motionDurationSlow } = token;
5
+ const { componentCls, customIconFontSize, motionDurationSlow, iconSize, lineWidth, lineType, antCls } = token;
4
6
  const itemCls = `${componentCls}-item`;
7
+ const [varName, varRef] = genCssVar(antCls, "cmp-steps");
5
8
  return { [componentCls]: {
6
- "--steps-icon-size": token.iconSize,
7
- "--steps-icon-border-width": token.lineWidth,
9
+ [varName("icon-size")]: iconSize,
10
+ [varName("icon-border-width")]: lineWidth,
8
11
  [`${itemCls}-icon`]: {
9
- width: "var(--steps-icon-size)",
10
- height: "var(--steps-icon-size)",
12
+ width: varRef("icon-size"),
13
+ height: varRef("icon-size"),
11
14
  margin: 0,
12
15
  flex: "none",
13
16
  display: "flex",
@@ -15,10 +18,10 @@ const genIconStyle = (token) => {
15
18
  justifyContent: "center",
16
19
  fontSize: token.iconFontSize,
17
20
  fontFamily: token.fontFamily,
18
- lineHeight: "var(--steps-icon-size)",
21
+ lineHeight: varRef("icon-size"),
19
22
  textAlign: "center",
20
- borderRadius: "var(--steps-icon-size)",
21
- border: `var(--steps-icon-border-width) ${token.lineType} transparent`,
23
+ borderRadius: varRef("icon-size"),
24
+ border: `${varRef("icon-border-width")} ${lineType} transparent`,
22
25
  transition: [
23
26
  "background",
24
27
  "border",