antdv-next 1.0.0-alpha.4 → 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 (195) hide show
  1. package/dist/_util/tools.js +2 -1
  2. package/dist/_util/wave/WaveEffect.js +6 -1
  3. package/dist/_util/wave/style.js +4 -3
  4. package/dist/affix/index.d.ts +3 -3
  5. package/dist/alert/Alert.d.ts +4 -3
  6. package/dist/alert/Alert.js +1 -1
  7. package/dist/anchor/Anchor.d.ts +5 -5
  8. package/dist/anchor/AnchorLink.js +2 -2
  9. package/dist/anchor/index.d.ts +1 -1
  10. package/dist/antd.js +76 -76
  11. package/dist/app/App.d.ts +2 -2
  12. package/dist/auto-complete/index.d.ts +77 -0
  13. package/dist/auto-complete/index.js +627 -0
  14. package/dist/avatar/Avatar.d.ts +3 -3
  15. package/dist/avatar/AvatarGroup.d.ts +2 -2
  16. package/dist/badge/Ribbon.d.ts +3 -3
  17. package/dist/badge/index.d.ts +3 -3
  18. package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
  19. package/dist/breadcrumb/Breadcrumb.js +0 -8
  20. package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
  21. package/dist/breadcrumb/BreadcrumbItem.js +1 -17
  22. package/dist/breadcrumb/index.d.ts +1 -1
  23. package/dist/button/Button.d.ts +3 -3
  24. package/dist/button/style/variant.js +116 -104
  25. package/dist/calendar/Header.js +1 -1
  26. package/dist/calendar/generateCalendar.d.ts +3 -3
  27. package/dist/calendar/index.d.ts +3 -3
  28. package/dist/card/Card.d.ts +3 -3
  29. package/dist/card/CardGrid.d.ts +2 -2
  30. package/dist/card/CardMeta.d.ts +3 -3
  31. package/dist/carousel/index.d.ts +3 -3
  32. package/dist/cascader/Panel.d.ts +3 -3
  33. package/dist/cascader/index.d.ts +3 -3
  34. package/dist/cascader/index.js +1 -1
  35. package/dist/checkbox/Checkbox.d.ts +3 -3
  36. package/dist/checkbox/Group.d.ts +3 -3
  37. package/dist/collapse/Collapse.d.ts +3 -3
  38. package/dist/color-picker/ColorPicker.d.ts +4 -4
  39. package/dist/color-picker/ColorPicker.js +2 -2
  40. package/dist/components.d.ts +3 -2
  41. package/dist/components.js +7 -4
  42. package/dist/config-provider/context.js +2 -2
  43. package/dist/config-provider/index.d.ts +3 -3
  44. package/dist/date-picker/generatePicker/generateRangePicker.js +1 -1
  45. package/dist/date-picker/generatePicker/generateSinglePicker.js +1 -1
  46. package/dist/date-picker/generatePicker/index.d.ts +15 -15
  47. package/dist/date-picker/index.d.ts +25 -25
  48. package/dist/descriptions/index.d.ts +3 -3
  49. package/dist/divider/index.d.ts +2 -2
  50. package/dist/drawer/index.d.ts +3 -3
  51. package/dist/dropdown/dropdown.d.ts +4 -4
  52. package/dist/dropdown/dropdown.js +5 -3
  53. package/dist/empty/index.d.ts +3 -3
  54. package/dist/flex/index.d.ts +3 -3
  55. package/dist/float-button/BackTop.d.ts +3 -3
  56. package/dist/float-button/FloatButton.d.ts +3 -3
  57. package/dist/float-button/FloatButtonGroup.d.ts +3 -3
  58. package/dist/float-button/style/button.js +4 -4
  59. package/dist/float-button/style/group.js +12 -12
  60. package/dist/form/Form.d.ts +3 -3
  61. package/dist/form/FormItem/index.d.ts +3 -3
  62. package/dist/form/style/index.js +3 -2
  63. package/dist/grid/row.d.ts +2 -2
  64. package/dist/grid/style/index.js +5 -4
  65. package/dist/image/PreviewGroup.d.ts +2 -2
  66. package/dist/image/index.d.ts +4 -4
  67. package/dist/index.d.ts +5 -4
  68. package/dist/index.js +5 -4
  69. package/dist/input/Input.js +1 -1
  70. package/dist/input/OTP/index.js +1 -1
  71. package/dist/input/TextArea.d.ts +3 -3
  72. package/dist/input/TextArea.js +1 -1
  73. package/dist/input/index.d.ts +11 -11
  74. package/dist/input-number/index.d.ts +3 -3
  75. package/dist/input-number/index.js +1 -1
  76. package/dist/input-number/style/index.js +18 -17
  77. package/dist/layout/index.d.ts +6 -6
  78. package/dist/layout/layout.d.ts +2 -2
  79. package/dist/masonry/Masonry.d.ts +3 -3
  80. package/dist/masonry/Masonry.js +8 -6
  81. package/dist/mentions/index.d.ts +3 -3
  82. package/dist/mentions/index.js +1 -1
  83. package/dist/mentions/style/index.js +18 -17
  84. package/dist/menu/MenuDivider.d.ts +2 -2
  85. package/dist/menu/SubMenu.d.ts +3 -3
  86. package/dist/menu/index.d.ts +5 -5
  87. package/dist/message/PurePanel.d.ts +2 -2
  88. package/dist/modal/Modal.d.ts +3 -3
  89. package/dist/notification/PurePanel.d.ts +2 -2
  90. package/dist/notification/useNotification.d.ts +2 -2
  91. package/dist/package.d.ts +109 -3
  92. package/dist/package.js +1 -1
  93. package/dist/pagination/Pagination.d.ts +3 -3
  94. package/dist/pagination/Pagination.js +1 -1
  95. package/dist/pagination/style/index.js +61 -50
  96. package/dist/popconfirm/PurePanel.d.ts +2 -2
  97. package/dist/popconfirm/index.d.ts +3 -3
  98. package/dist/popover/index.d.ts +3 -3
  99. package/dist/popover/style/index.js +11 -8
  100. package/dist/progress/progress.d.ts +3 -3
  101. package/dist/qrcode/index.d.ts +3 -3
  102. package/dist/radio/index.d.ts +5 -5
  103. package/dist/radio/radio.d.ts +3 -3
  104. package/dist/rate/index.d.ts +3 -3
  105. package/dist/result/index.d.ts +3 -3
  106. package/dist/result/noFound.d.ts +2 -2
  107. package/dist/result/serverError.d.ts +2 -2
  108. package/dist/segmented/index.d.ts +3 -3
  109. package/dist/select/index.d.ts +6 -6
  110. package/dist/select/index.js +2 -2
  111. package/dist/select/style/select-input-multiple.js +31 -29
  112. package/dist/select/style/select-input.js +50 -44
  113. package/dist/skeleton/Button.d.ts +2 -2
  114. package/dist/skeleton/Input.d.ts +2 -2
  115. package/dist/skeleton/Node.d.ts +3 -3
  116. package/dist/skeleton/Skeleton.d.ts +3 -3
  117. package/dist/slider/index.d.ts +3 -3
  118. package/dist/space/Compact.d.ts +2 -0
  119. package/dist/space/Compact.js +17 -4
  120. package/dist/space/index.d.ts +5 -5
  121. package/dist/space/style/addon.js +20 -19
  122. package/dist/spin/index.d.ts +3 -3
  123. package/dist/splitter/SplitBar.js +9 -2
  124. package/dist/splitter/Splitter.d.ts +3 -3
  125. package/dist/splitter/Splitter.js +2 -1
  126. package/dist/splitter/index.d.ts +2 -2
  127. package/dist/splitter/style/index.js +6 -6
  128. package/dist/statistic/Statistic.d.ts +3 -3
  129. package/dist/statistic/Timer.d.ts +5 -5
  130. package/dist/statistic/index.d.ts +5 -5
  131. package/dist/steps/ProgressIcon.js +9 -2
  132. package/dist/steps/index.d.ts +3 -3
  133. package/dist/steps/index.js +7 -4
  134. package/dist/steps/style/horizontal.js +13 -10
  135. package/dist/steps/style/icon.js +11 -8
  136. package/dist/steps/style/index.js +19 -18
  137. package/dist/steps/style/inline.js +19 -16
  138. package/dist/steps/style/label-placement.js +22 -20
  139. package/dist/steps/style/nav.js +7 -5
  140. package/dist/steps/style/panel.js +34 -32
  141. package/dist/steps/style/progress-dot.js +10 -8
  142. package/dist/steps/style/progress.js +29 -58
  143. package/dist/steps/style/rtl.js +6 -4
  144. package/dist/steps/style/small.js +10 -8
  145. package/dist/steps/style/status.js +124 -121
  146. package/dist/steps/style/util.js +7 -4
  147. package/dist/steps/style/vertical.js +17 -14
  148. package/dist/style/placementArrow.js +7 -5
  149. package/dist/switch/index.d.ts +3 -3
  150. package/dist/table/Column.d.ts +3 -3
  151. package/dist/table/ColumnGroup.d.ts +3 -3
  152. package/dist/table/InternalTable.js +1 -1
  153. package/dist/table/Table.d.ts +3 -3
  154. package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
  155. package/dist/tabs/TabPane.d.ts +3 -3
  156. package/dist/tabs/index.d.ts +3 -3
  157. package/dist/tag/CheckableTag.d.ts +3 -3
  158. package/dist/tag/CheckableTagGroup.d.ts +3 -3
  159. package/dist/tag/index.d.ts +3 -3
  160. package/dist/theme/index.d.ts +4 -4
  161. package/dist/theme/util/genStyleUtils.js +8 -5
  162. package/dist/time-picker/index.d.ts +7 -7
  163. package/dist/timeline/Timeline.d.ts +3 -3
  164. package/dist/tooltip/PurePanel.d.ts +2 -2
  165. package/dist/tooltip/PurePanel.js +3 -3
  166. package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
  167. package/dist/tooltip/index.d.ts +3 -3
  168. package/dist/tooltip/index.js +2 -3
  169. package/dist/tooltip/style/index.js +10 -8
  170. package/dist/tooltip/util.js +5 -3
  171. package/dist/tour/index.d.ts +3 -3
  172. package/dist/tour/style/index.js +5 -4
  173. package/dist/transfer/Actions.d.ts +2 -2
  174. package/dist/transfer/Section.d.ts +2 -2
  175. package/dist/transfer/Transfer.d.ts +3 -3
  176. package/dist/transfer/Transfer.js +1 -1
  177. package/dist/transfer/search.d.ts +3 -3
  178. package/dist/tree/DirectoryTree.d.ts +3 -3
  179. package/dist/tree/Tree.d.ts +3 -3
  180. package/dist/tree-select/index.d.ts +4 -4
  181. package/dist/tree-select/index.js +1 -1
  182. package/dist/typography/Link.d.ts +3 -3
  183. package/dist/typography/Paragraph.d.ts +3 -3
  184. package/dist/typography/Text.d.ts +3 -3
  185. package/dist/typography/Title.d.ts +3 -3
  186. package/dist/typography/Typography.d.ts +3 -3
  187. package/dist/typography/index.d.ts +9 -9
  188. package/dist/upload/Dragger.d.ts +6 -3
  189. package/dist/upload/Upload.d.ts +3 -3
  190. package/dist/upload/index.d.ts +6 -3
  191. package/dist/watermark/index.d.ts +2 -2
  192. package/global.d.ts +2 -0
  193. package/package.json +22 -4
  194. package/web-tags.json +4524 -0
  195. package/web-types.json +12779 -0
@@ -1,10 +1,12 @@
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
1
2
  import { unit } from "@antdv-next/cssinjs";
2
3
 
3
4
  //#region src/steps/style/panel.ts
4
5
  const genPanelStyle = (token) => {
5
- const { componentCls, calc, lineWidthBold, borderRadius, borderRadiusSM, motionDurationMid } = token;
6
+ const { componentCls, lineWidthBold, borderRadius, borderRadiusSM, motionDurationMid, paddingXS, lineType, paddingSM, antCls, calc } = token;
6
7
  const itemCls = `${componentCls}-item`;
7
- const borderStyle = `${unit(lineWidthBold)} ${token.lineType} var(--steps-panel-border-color)`;
8
+ const [varName, varRef] = genCssVar(antCls, "cmp-steps");
9
+ const borderStyle = `${unit(lineWidthBold)} ${lineType} ${varRef("panel-border-color")}`;
8
10
  return { [`${componentCls}${componentCls}-panel`]: [
9
11
  {
10
12
  [`${itemCls}-rail`]: { display: "none" },
@@ -18,17 +20,17 @@ const genPanelStyle = (token) => {
18
20
  },
19
21
  {
20
22
  "&": {
21
- "--steps-panel-padding": token.paddingSM,
22
- "--steps-item-border-radius": borderRadius,
23
+ [varName("panel-padding")]: paddingSM,
24
+ [varName("item-border-radius")]: borderRadius,
23
25
  [itemCls]: {
24
- "--steps-panel-bg-color": "var(--steps-item-icon-bg-color)",
25
- "--steps-panel-border-color": "var(--steps-item-icon-border-color)",
26
- "--steps-panel-active-bg-color": "var(--steps-item-icon-active-bg-color)",
27
- "--steps-panel-active-border-color": "var(--steps-item-icon-active-border-color)",
28
- "--steps-panel-title-height": `calc(var(--steps-title-font-size) * var(--steps-title-line-height))`,
29
- "--steps-item-base-height": calc("var(--steps-panel-padding)").mul(2).add("var(--steps-icon-size)").add("var(--steps-panel-title-height)").equal(),
30
- "--steps-item-base-width": "calc(var(--steps-item-base-height) * 0.7071)",
31
- "transition": `background ${motionDurationMid}`
26
+ [varName("panel-bg-color")]: varRef("item-icon-bg-color"),
27
+ [varName("panel-border-color")]: varRef("item-icon-border-color"),
28
+ [varName("panel-active-bg-color")]: varRef("item-icon-active-bg-color"),
29
+ [varName("panel-active-border-color")]: varRef("item-icon-active-border-color"),
30
+ [varName("panel-title-height")]: `calc(${varRef("title-font-size")} * ${varRef("title-line-height")})`,
31
+ [varName("item-base-height")]: calc(varRef("panel-padding")).mul(2).add(varRef("icon-size")).add(varRef("panel-title-height")).equal(),
32
+ [varName("item-base-width")]: `calc(${varRef("item-base-height")} * 0.7071)`,
33
+ transition: `background ${motionDurationMid}`
32
34
  }
33
35
  },
34
36
  [`${itemCls}-icon`]: { display: "none" },
@@ -39,12 +41,12 @@ const genPanelStyle = (token) => {
39
41
  insetInlineStart: "100%",
40
42
  zIndex: 1,
41
43
  height: calc(lineWidthBold).mul(2).add("100%").equal(),
42
- width: "var(--steps-item-base-width)",
44
+ width: varRef("item-base-width"),
43
45
  overflow: "visible",
44
46
  strokeLinecap: "round",
45
47
  path: {
46
- fill: "var(--steps-panel-bg-color)",
47
- stroke: "var(--steps-panel-border-color)",
48
+ fill: varRef("panel-bg-color"),
49
+ stroke: varRef("panel-border-color"),
48
50
  strokeWidth: lineWidthBold,
49
51
  vectorEffect: "non-scaling-stroke",
50
52
  transition: `fill ${motionDurationMid}`
@@ -52,42 +54,42 @@ const genPanelStyle = (token) => {
52
54
  },
53
55
  [`${itemCls}:last-child ${componentCls}-panel-arrow`]: { display: "none" },
54
56
  [itemCls]: {
55
- "padding": "var(--steps-panel-padding)",
56
- "background": "var(--steps-panel-bg-color)",
57
+ "padding": varRef("panel-padding"),
58
+ "background": varRef("panel-bg-color"),
57
59
  "position": "relative",
58
60
  "borderBlock": borderStyle,
59
- "&:not(:first-child)": { paddingInlineStart: `calc(var(--steps-panel-padding) + var(--steps-item-base-width))` },
61
+ "&:not(:first-child)": { paddingInlineStart: `calc(${varRef("panel-padding")} + ${varRef("item-base-width")})` },
60
62
  "&:first-child": {
61
63
  borderInlineStart: borderStyle,
62
- borderStartStartRadius: "var(--steps-item-border-radius)",
63
- borderEndStartRadius: "var(--steps-item-border-radius)"
64
+ borderStartStartRadius: varRef("item-border-radius"),
65
+ borderEndStartRadius: varRef("item-border-radius")
64
66
  },
65
67
  "&:last-child": {
66
68
  borderInlineEnd: borderStyle,
67
- borderStartEndRadius: "var(--steps-item-border-radius)",
68
- borderEndEndRadius: "var(--steps-item-border-radius)"
69
+ borderStartEndRadius: varRef("item-border-radius"),
70
+ borderEndEndRadius: varRef("item-border-radius")
69
71
  },
70
72
  "&-active": {
71
- background: "var(--steps-panel-active-bg-color)",
72
- borderColor: "var(--steps-panel-active-border-color)",
73
+ background: varRef("panel-active-bg-color"),
74
+ borderColor: varRef("panel-active-border-color"),
73
75
  [`${componentCls}-panel-arrow`]: { path: {
74
- fill: "var(--steps-panel-active-bg-color)",
75
- stroke: "var(--steps-panel-active-border-color)"
76
+ fill: varRef("panel-active-bg-color"),
77
+ stroke: varRef("panel-active-border-color")
76
78
  } },
77
- [`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: { color: "var(--steps-item-icon-active-text-color)" }
79
+ [`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: { color: varRef("item-icon-active-text-color") }
78
80
  }
79
81
  }
80
82
  },
81
83
  { [`&${componentCls}-small`]: {
82
- "--steps-panel-padding": token.paddingXS,
83
- "--steps-item-border-radius": borderRadiusSM
84
+ [varName("panel-padding")]: paddingXS,
85
+ [varName("item-border-radius")]: borderRadiusSM
84
86
  } },
85
87
  { [`&${componentCls}-filled`]: { [itemCls]: { "&:not(:first-child)": { clipPath: `polygon(${[
86
88
  `${unit(lineWidthBold)} 0`,
87
- "calc(100% + var(--steps-item-base-width)) 0",
88
- "calc(100% + var(--steps-item-base-width)) 100%",
89
+ `calc(100% + ${varRef("item-base-width")}) 0`,
90
+ `calc(100% + ${varRef("item-base-width")}) 100%`,
89
91
  `${unit(lineWidthBold)} 100%`,
90
- `calc(var(--steps-item-base-width) + ${unit(lineWidthBold)}) 50%`
92
+ `calc(${varRef("item-base-width")} + ${unit(lineWidthBold)}) 50%`
91
93
  ].join(",")})` } } } },
92
94
  { [`&${componentCls}-outlined`]: { [`${componentCls}-panel-arrow`]: {
93
95
  top: calc(lineWidthBold).div(2).mul(-1).equal(),
@@ -1,16 +1,18 @@
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
1
2
  import { getItemWithWidthStyle } from "./util.js";
2
3
 
3
4
  //#region src/steps/style/progress-dot.ts
4
5
  const genDotStyle = (token) => {
5
- const { componentCls, iconSize, dotSize, dotCurrentSize, marginXXS, lineWidthBold, fontSizeSM } = token;
6
+ const { componentCls, iconSize, dotSize, dotCurrentSize, marginXXS, lineWidthBold, fontSizeSM, antCls } = token;
6
7
  const itemCls = `${componentCls}-item`;
8
+ const [varName, varRef] = genCssVar(antCls, "cmp-steps");
7
9
  return { [`${componentCls}${componentCls}-dot`]: {
8
- "--steps-icon-size-active": dotCurrentSize,
9
- "--steps-icon-size": dotSize,
10
- "--steps-dot-icon-size": dotSize,
11
- "--steps-dot-icon-border-width": token.lineWidthBold,
12
- "--steps-rail-size": lineWidthBold,
13
- "--steps-icon-border-width": lineWidthBold,
10
+ [varName("icon-size-active")]: dotCurrentSize,
11
+ [varName("icon-size")]: dotSize,
12
+ [varName("dot-icon-size")]: dotSize,
13
+ [varName("dot-icon-border-width")]: lineWidthBold,
14
+ [varName("rail-size")]: lineWidthBold,
15
+ [varName("icon-border-width")]: lineWidthBold,
14
16
  [`${itemCls}-custom ${itemCls}-icon`]: { fontSize: fontSizeSM },
15
17
  [`${itemCls}-icon`]: {
16
18
  "position": "relative",
@@ -28,7 +30,7 @@ const genDotStyle = (token) => {
28
30
  transform: "translate(-50%, -50%)"
29
31
  }
30
32
  },
31
- [`${itemCls}-active ${itemCls}-icon`]: { "--steps-icon-size": "var(--steps-icon-size-active)" },
33
+ [`${itemCls}-active ${itemCls}-icon`]: { [varName("icon-size")]: varRef("icon-size-active") },
32
34
  [`&${componentCls}-horizontal`]: { [`&, &${componentCls}-small`]: getItemWithWidthStyle(token, marginXXS) }
33
35
  } };
34
36
  };
@@ -1,68 +1,39 @@
1
- import { unit } from "@antdv-next/cssinjs";
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
2
2
 
3
3
  //#region src/steps/style/progress.ts
4
4
  const genStepsProgressStyle = (token) => {
5
- const { calc, antCls, componentCls, iconSize, iconSizeSM, lineWidthBold, paddingXXS } = token;
5
+ const { calc, antCls, componentCls, lineWidthBold, motionDurationSlow } = token;
6
6
  const itemCls = `${componentCls}-item`;
7
- const progressSize = token.calc(iconSize).add(token.calc(lineWidthBold).mul(4).equal()).equal();
8
- const progressSizeSM = token.calc(iconSizeSM).add(token.calc(token.lineWidth).mul(4).equal()).equal();
7
+ const [varName, varRef] = genCssVar(antCls, "cmp-steps");
9
8
  const enhanceSize = calc(lineWidthBold).add(lineWidthBold).equal();
10
- return {
11
- [`${componentCls}${componentCls}-with-progress`]: {
12
- "--steps-item-wrapper-padding-top": enhanceSize,
13
- [`${itemCls}${itemCls}-process`]: { [`${itemCls}-icon`]: { position: "relative" } },
14
- [`${itemCls}-progress-icon`]: {
15
- "&-svg": {
16
- "--steps-svg-size": calc(enhanceSize).mul(2).add(`var(--steps-icon-size)`).equal(),
17
- "--icon-size-ptg-unitless": `calc(100 / tan(atan2(var(--steps-svg-size),1px)))`,
18
- "fontSize": `var(--steps-svg-size)`,
19
- "lineHeight": `var(--icon-size-ptg-unitless)`,
20
- "position": "absolute",
21
- "inset": calc(enhanceSize).mul(-1).equal(),
22
- "width": "auto",
23
- "height": "auto"
24
- },
25
- "&-circle": {
26
- "lineHeight": `var(--icon-size-ptg-unitless)`,
27
- "strokeWidth": calc(`var(--icon-size-ptg-unitless)`).mul(lineWidthBold).equal(),
28
- "--progress-r": calc(`var(--steps-svg-size)`).sub(lineWidthBold).mul(`var(--icon-size-ptg-unitless)`).div(2).equal(),
29
- "r": `var(--progress-r)`,
30
- "fill": "none",
31
- "cx": 50,
32
- "cy": 50,
33
- "transition": `all ${token.motionDurationSlow} ease-in-out`,
34
- "&-rail": { stroke: token.colorSplit },
35
- "&-ptg": { stroke: token.colorPrimary }
36
- }
37
- }
38
- },
39
- [`&${componentCls}-with-progress11`]: {
40
- [itemCls]: {
41
- paddingTop: paddingXXS,
42
- paddingInlineStart: paddingXXS
43
- },
44
- [`${itemCls}-icon`]: {
45
- position: "relative",
46
- [`${antCls}-progress`]: {
47
- "position": "absolute",
48
- "left": {
49
- _skip_check_: true,
50
- value: "50%"
51
- },
52
- "top": "50%",
53
- "transform": "translate(-50%, -50%)",
54
- "&-body": {
55
- width: `${unit(progressSize)} !important`,
56
- height: `${unit(progressSize)} !important`
57
- }
58
- }
9
+ return { [`${componentCls}${componentCls}-with-progress`]: {
10
+ [varName("item-wrapper-padding-top")]: enhanceSize,
11
+ [`${itemCls}${itemCls}-process`]: { [`${itemCls}-icon`]: { position: "relative" } },
12
+ [`${itemCls}-progress-icon`]: {
13
+ "&-svg": {
14
+ [varName("svg-size")]: calc(enhanceSize).mul(2).add(varRef("icon-size")).equal(),
15
+ [varName("icon-size-ptg-unitless")]: `calc(100 / tan(atan2(${varRef("svg-size")}, 1px)))`,
16
+ fontSize: varRef("svg-size"),
17
+ lineHeight: varRef("icon-size-ptg-unitless"),
18
+ position: "absolute",
19
+ inset: calc(enhanceSize).mul(-1).equal(),
20
+ width: "auto",
21
+ height: "auto"
59
22
  },
60
- [`&${componentCls}-small`]: { [`${itemCls}-icon ${antCls}-progress-body`]: {
61
- width: `${unit(progressSizeSM)} !important`,
62
- height: `${unit(progressSizeSM)} !important`
63
- } }
23
+ "&-circle": {
24
+ "lineHeight": varRef("icon-size-ptg-unitless"),
25
+ "strokeWidth": calc(varRef("icon-size-ptg-unitless")).mul(lineWidthBold).equal(),
26
+ [varName("progress-radius")]: calc(varRef("svg-size")).sub(lineWidthBold).mul(varRef("icon-size-ptg-unitless")).div(2).equal(),
27
+ "r": varRef("progress-radius"),
28
+ "fill": "none",
29
+ "cx": 50,
30
+ "cy": 50,
31
+ "transition": `all ${motionDurationSlow} ease-in-out`,
32
+ "&-rail": { stroke: token.colorSplit },
33
+ "&-ptg": { stroke: token.colorPrimary }
34
+ }
64
35
  }
65
- };
36
+ } };
66
37
  };
67
38
  var progress_default = genStepsProgressStyle;
68
39
 
@@ -1,20 +1,22 @@
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
1
2
  import { unit } from "@antdv-next/cssinjs";
2
3
 
3
4
  //#region src/steps/style/rtl.ts
4
5
  const genRTLStyle = (token) => {
5
- const { componentCls, lineWidthBold } = token;
6
+ const { componentCls, lineWidthBold, antCls } = token;
6
7
  const itemCls = `${componentCls}-item`;
8
+ const [, varRef] = genCssVar(antCls, "cmp-steps");
7
9
  return { [`${componentCls}${componentCls}-rtl`]: {
8
10
  direction: "rtl",
9
11
  [`&${componentCls}-navigation${componentCls}-horizontal`]: { [`${itemCls}:after`]: { transform: "translateY(-50%) rotate(-45deg)" } },
10
12
  [`&${componentCls}-panel`]: {
11
13
  [`${componentCls}-panel-arrow`]: { transform: `scaleX(-1)` },
12
14
  [`&${componentCls}-filled`]: { [itemCls]: { "&:not(:first-child)": { clipPath: `polygon(${[
13
- `calc(0px - var(--steps-item-base-width)) 0px`,
15
+ `calc(0px - ${varRef("item-base-width")}) 0px`,
14
16
  `calc(100% - ${unit(lineWidthBold)}) 0px`,
15
- `calc(100% - var(--steps-item-base-width) - ${unit(lineWidthBold)}) 50%`,
17
+ `calc(100% - ${varRef("item-base-width")} - ${unit(lineWidthBold)}) 50%`,
16
18
  `calc(100% - ${unit(lineWidthBold)}) 100%`,
17
- `calc(0px - var(--steps-item-base-width)) 100%`
19
+ `calc(0px - ${varRef("item-base-width")}) 100%`
18
20
  ].join(",")})` } } }
19
21
  }
20
22
  } };
@@ -1,16 +1,18 @@
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
1
2
  import { getItemWithWidthStyle } from "./util.js";
2
3
 
3
4
  //#region src/steps/style/small.ts
4
5
  const genSmallStyle = (token) => {
5
- const { componentCls, iconSizeSM, fontSize, lineHeight, marginXS } = token;
6
+ const { componentCls, iconSizeSM, fontSize, lineHeight, marginXS, fontHeight, marginSM, paddingXS, antCls } = token;
7
+ const [varName] = genCssVar(antCls, "cmp-steps");
6
8
  return { [`${componentCls}${componentCls}-small`]: {
7
- "--steps-icon-size": iconSizeSM,
8
- "--steps-title-horizontal-item-margin": token.marginSM,
9
- "--steps-title-vertical-row-gap": token.paddingXS,
10
- "--steps-title-font-size": fontSize,
11
- "--steps-title-line-height": lineHeight,
12
- "--steps-title-horizontal-rail-margin": token.marginXS,
13
- "--steps-title-horizontal-title-height": token.fontHeight,
9
+ [varName("icon-size")]: iconSizeSM,
10
+ [varName("title-horizontal-item-margin")]: marginSM,
11
+ [varName("title-vertical-row-gap")]: paddingXS,
12
+ [varName("title-font-size")]: fontSize,
13
+ [varName("title-line-height")]: lineHeight,
14
+ [varName("title-horizontal-rail-margin")]: marginXS,
15
+ [varName("title-horizontal-title-height")]: fontHeight,
14
16
  [`&${componentCls}-horizontal${componentCls}-title-vertical`]: getItemWithWidthStyle(token, marginXS)
15
17
  } };
16
18
  };
@@ -1,64 +1,67 @@
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
2
+
1
3
  //#region src/steps/style/status.ts
2
4
  const STATUS_WAIT = "wait";
3
5
  const STATUS_PROCESS = "process";
4
6
  const STATUS_FINISH = "finish";
5
7
  const STATUS_ERROR = "error";
6
8
  const genStatusStyle = (token) => {
7
- const { componentCls, colorTextDisabled, colorTextLightSolid, colorPrimary, colorTextLabel, colorError, colorText, colorTextDescription, colorBgContainer, colorPrimaryHover } = token;
9
+ const { componentCls, colorTextDisabled, colorTextLightSolid, colorPrimary, colorTextLabel, colorError, colorErrorHover, colorErrorBgFilledHover, colorFillTertiary, colorErrorBg, colorPrimaryBgHover, colorPrimaryBg, colorText, colorTextDescription, colorBgContainer, colorPrimaryHover, lineType, antCls } = token;
8
10
  const itemCls = `${componentCls}-item`;
11
+ const [varName, varRef] = genCssVar(antCls, "cmp-steps");
9
12
  return { [componentCls]: [
10
13
  {
11
14
  [itemCls]: {
12
- "--steps-item-solid-line-color": "#000",
13
- "--steps-item-title-color": "#000",
14
- "--steps-item-content-color": "#000",
15
- "--steps-item-subtitle-color": "var(--steps-item-content-color)",
16
- "--steps-item-icon-custom-color": "#000",
17
- "--steps-item-icon-bg-color": "#000",
18
- "--steps-item-icon-border-color": "#000",
19
- "--steps-item-icon-text-color": "#fff",
20
- "--steps-item-icon-dot-color": "#000",
21
- "--steps-item-icon-dot-bg-color": "var(--steps-item-icon-dot-color)",
22
- "--steps-item-icon-dot-border-color": "var(--steps-item-icon-dot-color)",
23
- "--steps-item-text-hover-color": "#000",
24
- "--steps-item-icon-bg-hover-color": `var(--steps-item-icon-bg-color)`,
25
- "--steps-item-icon-border-hover-color": `var(--steps-item-icon-border-color)`,
26
- "--steps-item-icon-text-hover-color": `var(--steps-item-icon-text-color)`,
27
- "--steps-item-content-active-color": `var(--steps-item-content-color)`,
28
- "--steps-item-icon-active-bg-color": "var(--steps-item-icon-bg-color)",
29
- "--steps-item-icon-active-border-color": "var(--steps-item-icon-border-color)",
30
- "--steps-item-icon-active-text-color": "var(--steps-item-icon-text-color)",
31
- "--steps-item-process-rail-line-style": token.lineType
15
+ [varName("item-solid-line-color")]: "#000",
16
+ [varName("item-title-color")]: "#000",
17
+ [varName("item-content-color")]: "#000",
18
+ [varName("item-subtitle-color")]: varRef("item-content-color"),
19
+ [varName("item-icon-custom-color")]: "#000",
20
+ [varName("item-icon-bg-color")]: "#000",
21
+ [varName("item-icon-border-color")]: "#000",
22
+ [varName("item-icon-text-color")]: "#fff",
23
+ [varName("item-icon-dot-color")]: "#000",
24
+ [varName("item-icon-dot-bg-color")]: varRef("item-icon-dot-color"),
25
+ [varName("item-icon-dot-border-color")]: varRef("item-icon-dot-color"),
26
+ [varName("item-text-hover-color")]: "#000",
27
+ [varName("item-icon-bg-hover-color")]: varRef("item-icon-bg-color"),
28
+ [varName("item-icon-border-hover-color")]: varRef("item-icon-border-color"),
29
+ [varName("item-icon-text-hover-color")]: varRef("item-icon-text-color"),
30
+ [varName("item-content-active-color")]: varRef("item-content-color"),
31
+ [varName("item-icon-active-bg-color")]: varRef("item-icon-bg-color"),
32
+ [varName("item-icon-active-border-color")]: varRef("item-icon-border-color"),
33
+ [varName("item-icon-active-text-color")]: varRef("item-icon-text-color"),
34
+ [varName("item-process-rail-line-style")]: lineType
32
35
  },
33
- [`${itemCls}-rail`]: { borderColor: `var(--steps-item-solid-line-color)` },
34
- [`${itemCls}-custom ${itemCls}-icon`]: { color: `var(--steps-item-icon-custom-color)` },
35
- [`${itemCls}-title`]: { color: `var(--steps-item-title-color)` },
36
- [`${itemCls}-subtitle`]: { color: `var(--steps-item-subtitle-color)` },
37
- [`${itemCls}-content`]: { color: `var(--steps-item-content-color)` },
36
+ [`${itemCls}-rail`]: { borderColor: varRef("item-solid-line-color") },
37
+ [`${itemCls}-custom ${itemCls}-icon`]: { color: varRef("item-icon-custom-color") },
38
+ [`${itemCls}-title`]: { color: varRef("item-title-color") },
39
+ [`${itemCls}-subtitle`]: { color: varRef("item-subtitle-color") },
40
+ [`${itemCls}-content`]: { color: varRef("item-content-color") },
38
41
  [`${itemCls}-active ${itemCls}-icon`]: {},
39
- [`${itemCls}-active ${itemCls}-content`]: { color: `var(--steps-item-content-active-color)` },
40
- [`${itemCls}[role='button']:not(${itemCls}-active):hover`]: { [`${itemCls}-title, ${itemCls}-content`]: { color: `var(--steps-item-text-hover-color)` } },
42
+ [`${itemCls}-active ${itemCls}-content`]: { color: varRef("item-content-active-color") },
43
+ [`${itemCls}[role='button']:not(${itemCls}-active):hover`]: { [`${itemCls}-title, ${itemCls}-content`]: { color: varRef("item-text-hover-color") } },
41
44
  [`&:not(${componentCls}-dot)`]: { [`${itemCls}:not(${itemCls}-custom)`]: {
42
45
  [`${itemCls}-icon`]: {
43
- background: `var(--steps-item-icon-bg-color)`,
44
- borderColor: `var(--steps-item-icon-border-color)`,
45
- color: `var(--steps-item-icon-text-color)`
46
+ background: varRef("item-icon-bg-color"),
47
+ borderColor: varRef("item-icon-border-color"),
48
+ color: varRef("item-icon-text-color")
46
49
  },
47
50
  [`&[role='button']:not(${itemCls}-active):hover`]: { [`${itemCls}-icon`]: {
48
- background: `var(--steps-item-icon-bg-hover-color)`,
49
- borderColor: `var(--steps-item-icon-border-hover-color)`,
50
- color: `var(--steps-item-icon-text-hover-color)`
51
+ background: varRef("item-icon-bg-hover-color"),
52
+ borderColor: varRef("item-icon-border-hover-color"),
53
+ color: varRef("item-icon-text-hover-color")
51
54
  } },
52
55
  [`&${itemCls}-active`]: { [`${itemCls}-icon`]: {
53
- background: `var(--steps-item-icon-active-bg-color)`,
54
- borderColor: `var(--steps-item-icon-active-border-color)`,
55
- color: `var(--steps-item-icon-active-text-color)`
56
+ background: varRef("item-icon-active-bg-color"),
57
+ borderColor: varRef("item-icon-active-border-color"),
58
+ color: varRef("item-icon-active-text-color")
56
59
  } }
57
60
  } },
58
61
  [`&${componentCls}-dot`]: { [`${itemCls}-icon`]: {
59
- background: `var(--steps-item-icon-dot-bg-color)`,
60
- borderColor: `var(--steps-item-icon-dot-border-color)`,
61
- color: `var(--steps-item-icon-dot-color)`,
62
+ background: varRef("item-icon-dot-bg-color"),
63
+ borderColor: varRef("item-icon-dot-border-color"),
64
+ color: varRef("item-icon-dot-color"),
62
65
  [`&${itemCls}-icon-dot-custom`]: {
63
66
  background: "transparent",
64
67
  border: "none"
@@ -67,111 +70,111 @@ const genStatusStyle = (token) => {
67
70
  },
68
71
  {
69
72
  [`${itemCls}-${STATUS_WAIT}`]: {
70
- "--steps-item-icon-custom-color": colorTextDisabled,
71
- "--steps-item-title-color": colorTextDescription,
72
- "--steps-item-content-color": colorTextDescription,
73
- "--steps-item-content-active-color": colorText,
74
- "--steps-item-text-hover-color": colorPrimaryHover
73
+ [varName("item-icon-custom-color")]: colorTextDisabled,
74
+ [varName("item-title-color")]: colorTextDescription,
75
+ [varName("item-content-color")]: colorTextDescription,
76
+ [varName("item-content-active-color")]: colorText,
77
+ [varName("item-text-hover-color")]: colorPrimaryHover
75
78
  },
76
- [`${itemCls}-rail-${STATUS_WAIT}`]: { "--steps-item-solid-line-color": colorTextDisabled },
79
+ [`${itemCls}-rail-${STATUS_WAIT}`]: { [varName("item-solid-line-color")]: colorTextDisabled },
77
80
  [`${itemCls}-${STATUS_PROCESS}`]: {
78
- "--steps-item-icon-custom-color": colorPrimary,
79
- "--steps-item-title-color": colorText,
80
- "--steps-item-content-color": colorTextDescription,
81
- "--steps-item-content-active-color": colorText,
82
- "--steps-item-text-hover-color": colorPrimaryHover
81
+ [varName("item-icon-custom-color")]: colorPrimary,
82
+ [varName("item-title-color")]: colorText,
83
+ [varName("item-content-color")]: colorTextDescription,
84
+ [varName("item-content-active-color")]: colorText,
85
+ [varName("item-text-hover-color")]: colorPrimaryHover
83
86
  },
84
87
  [`${itemCls}-rail-${STATUS_PROCESS}`]: {
85
- "--steps-item-solid-line-color": colorPrimary,
86
- "--steps-rail-line-style": "var(--steps-item-process-rail-line-style)"
88
+ [varName("item-solid-line-color")]: colorPrimary,
89
+ [varName("rail-line-style")]: varRef("item-process-rail-line-style")
87
90
  },
88
91
  [`${itemCls}-${STATUS_FINISH}`]: {
89
- "--steps-item-icon-custom-color": colorPrimary,
90
- "--steps-item-title-color": colorText,
91
- "--steps-item-content-color": colorTextDescription,
92
- "--steps-item-content-active-color": colorText,
93
- "--steps-item-text-hover-color": colorPrimaryHover
92
+ [varName("item-icon-custom-color")]: colorPrimary,
93
+ [varName("item-title-color")]: colorText,
94
+ [varName("item-content-color")]: colorTextDescription,
95
+ [varName("item-content-active-color")]: colorText,
96
+ [varName("item-text-hover-color")]: colorPrimaryHover
94
97
  },
95
- [`${itemCls}-rail-${STATUS_FINISH}`]: { "--steps-item-solid-line-color": colorPrimary },
98
+ [`${itemCls}-rail-${STATUS_FINISH}`]: { [varName("item-solid-line-color")]: colorPrimary },
96
99
  [`${itemCls}-${STATUS_ERROR}`]: {
97
- "--steps-item-icon-custom-color": colorError,
98
- "--steps-item-title-color": colorError,
99
- "--steps-item-content-color": colorError,
100
- "--steps-item-content-active-color": colorError,
101
- "--steps-item-text-hover-color": token.colorErrorHover
100
+ [varName("item-icon-custom-color")]: colorError,
101
+ [varName("item-title-color")]: colorError,
102
+ [varName("item-content-color")]: colorError,
103
+ [varName("item-content-active-color")]: colorError,
104
+ [varName("item-text-hover-color")]: colorErrorHover
102
105
  },
103
- [`${itemCls}-rail-${STATUS_ERROR}`]: { "--steps-item-solid-line-color": colorError }
106
+ [`${itemCls}-rail-${STATUS_ERROR}`]: { [varName("item-solid-line-color")]: colorError }
104
107
  },
105
108
  { [`&${componentCls}-filled`]: {
106
- [itemCls]: { "--steps-item-icon-dot-border-color": "transparent" },
109
+ [itemCls]: { [varName("item-icon-dot-border-color")]: "transparent" },
107
110
  [`${itemCls}-${STATUS_WAIT}`]: {
108
- "--steps-item-icon-bg-color": token.colorFillTertiary,
109
- "--steps-item-icon-border-color": "transparent",
110
- "--steps-item-icon-text-color": colorTextLabel,
111
- "--steps-item-icon-dot-bg-color": colorTextDisabled,
112
- "--steps-item-icon-bg-hover-color": token.colorPrimaryBgHover,
113
- "--steps-item-icon-border-hover-color": "transparent",
114
- "--steps-item-icon-text-hover-color": colorPrimary,
115
- "--steps-item-icon-active-bg-color": colorPrimary,
116
- "--steps-item-icon-active-border-color": "transparent",
117
- "--steps-item-icon-active-text-color": colorTextLightSolid
111
+ [varName("item-icon-bg-color")]: colorFillTertiary,
112
+ [varName("item-icon-border-color")]: "transparent",
113
+ [varName("item-icon-text-color")]: colorTextLabel,
114
+ [varName("item-icon-dot-bg-color")]: colorTextDisabled,
115
+ [varName("item-icon-bg-hover-color")]: colorPrimaryBgHover,
116
+ [varName("item-icon-border-hover-color")]: "transparent",
117
+ [varName("item-icon-text-hover-color")]: colorPrimary,
118
+ [varName("item-icon-active-bg-color")]: colorPrimary,
119
+ [varName("item-icon-active-border-color")]: "transparent",
120
+ [varName("item-icon-active-text-color")]: colorTextLightSolid
118
121
  },
119
122
  [`${itemCls}-${STATUS_PROCESS}, ${itemCls}-${STATUS_FINISH}`]: {
120
- "--steps-item-icon-bg-color": token.colorPrimaryBg,
121
- "--steps-item-icon-border-color": "transparent",
122
- "--steps-item-icon-text-color": colorPrimary,
123
- "--steps-item-icon-dot-bg-color": colorPrimary,
124
- "--steps-item-icon-bg-hover-color": token.colorPrimaryBgHover,
125
- "--steps-item-icon-border-hover-color": "transparent",
126
- "--steps-item-icon-text-hover-color": colorPrimary,
127
- "--steps-item-icon-active-bg-color": colorPrimary,
128
- "--steps-item-icon-active-border-color": "transparent",
129
- "--steps-item-icon-active-text-color": colorTextLightSolid
123
+ [varName("item-icon-bg-color")]: colorPrimaryBg,
124
+ [varName("item-icon-border-color")]: "transparent",
125
+ [varName("item-icon-text-color")]: colorPrimary,
126
+ [varName("item-icon-dot-bg-color")]: colorPrimary,
127
+ [varName("item-icon-bg-hover-color")]: colorPrimaryBgHover,
128
+ [varName("item-icon-border-hover-color")]: "transparent",
129
+ [varName("item-icon-text-hover-color")]: colorPrimary,
130
+ [varName("item-icon-active-bg-color")]: colorPrimary,
131
+ [varName("item-icon-active-border-color")]: "transparent",
132
+ [varName("item-icon-active-text-color")]: colorTextLightSolid
130
133
  },
131
134
  [`${itemCls}-${STATUS_ERROR}`]: {
132
- "--steps-item-icon-bg-color": token.colorErrorBg,
133
- "--steps-item-icon-border-color": "transparent",
134
- "--steps-item-icon-text-color": colorError,
135
- "--steps-item-icon-dot-bg-color": colorError,
136
- "--steps-item-icon-bg-hover-color": token.colorErrorBgFilledHover,
137
- "--steps-item-icon-border-hover-color": "transparent",
138
- "--steps-item-icon-text-hover-color": colorError,
139
- "--steps-item-icon-active-bg-color": colorError,
140
- "--steps-item-icon-active-border-color": "transparent",
141
- "--steps-item-icon-active-text-color": colorTextLightSolid
135
+ [varName("item-icon-bg-color")]: colorErrorBg,
136
+ [varName("item-icon-border-color")]: "transparent",
137
+ [varName("item-icon-text-color")]: colorError,
138
+ [varName("item-icon-dot-bg-color")]: colorError,
139
+ [varName("item-icon-bg-hover-color")]: colorErrorBgFilledHover,
140
+ [varName("item-icon-border-hover-color")]: "transparent",
141
+ [varName("item-icon-text-hover-color")]: colorError,
142
+ [varName("item-icon-active-bg-color")]: colorError,
143
+ [varName("item-icon-active-border-color")]: "transparent",
144
+ [varName("item-icon-active-text-color")]: colorTextLightSolid
142
145
  }
143
146
  } },
144
147
  { [`&${componentCls}-outlined`]: {
145
- [itemCls]: { "--steps-item-icon-dot-bg-color": "transparent" },
148
+ [itemCls]: { [varName("item-icon-dot-bg-color")]: "transparent" },
146
149
  [`${itemCls}-${STATUS_WAIT}`]: {
147
- "--steps-item-icon-bg-color": colorBgContainer,
148
- "--steps-item-icon-border-color": colorTextDisabled,
149
- "--steps-item-icon-text-color": colorTextDisabled,
150
- "--steps-item-icon-dot-color": colorTextDisabled,
151
- "--steps-item-icon-bg-hover-color": "transparent",
152
- "--steps-item-icon-border-hover-color": colorPrimaryHover,
153
- "--steps-item-icon-text-hover-color": colorPrimaryHover,
154
- "--steps-item-icon-active-bg-color": token.colorFillTertiary
150
+ [varName("item-icon-bg-color")]: colorBgContainer,
151
+ [varName("item-icon-border-color")]: colorTextDisabled,
152
+ [varName("item-icon-text-color")]: colorTextDisabled,
153
+ [varName("item-icon-dot-color")]: colorTextDisabled,
154
+ [varName("item-icon-bg-hover-color")]: "transparent",
155
+ [varName("item-icon-border-hover-color")]: colorPrimaryHover,
156
+ [varName("item-icon-text-hover-color")]: colorPrimaryHover,
157
+ [varName("item-icon-active-bg-color")]: colorFillTertiary
155
158
  },
156
159
  [`${itemCls}-${STATUS_PROCESS}, ${itemCls}-${STATUS_FINISH}`]: {
157
- "--steps-item-icon-bg-color": colorBgContainer,
158
- "--steps-item-icon-border-color": colorPrimary,
159
- "--steps-item-icon-text-color": colorPrimary,
160
- "--steps-item-icon-dot-color": colorPrimary,
161
- "--steps-item-icon-bg-hover-color": "transparent",
162
- "--steps-item-icon-border-hover-color": token.colorPrimaryHover,
163
- "--steps-item-icon-text-hover-color": token.colorPrimaryHover,
164
- "--steps-item-icon-active-bg-color": token.colorPrimaryBg
160
+ [varName("item-icon-bg-color")]: colorBgContainer,
161
+ [varName("item-icon-border-color")]: colorPrimary,
162
+ [varName("item-icon-text-color")]: colorPrimary,
163
+ [varName("item-icon-dot-color")]: colorPrimary,
164
+ [varName("item-icon-bg-hover-color")]: "transparent",
165
+ [varName("item-icon-border-hover-color")]: colorPrimaryHover,
166
+ [varName("item-icon-text-hover-color")]: colorPrimaryHover,
167
+ [varName("item-icon-active-bg-color")]: colorPrimaryBg
165
168
  },
166
169
  [`${itemCls}-${STATUS_ERROR}`]: {
167
- "--steps-item-icon-bg-color": colorBgContainer,
168
- "--steps-item-icon-border-color": colorError,
169
- "--steps-item-icon-text-color": colorError,
170
- "--steps-item-icon-dot-color": colorError,
171
- "--steps-item-icon-bg-hover-color": "transparent",
172
- "--steps-item-icon-border-hover-color": token.colorErrorHover,
173
- "--steps-item-icon-text-hover-color": token.colorErrorHover,
174
- "--steps-item-icon-active-bg-color": token.colorErrorBg
170
+ [varName("item-icon-bg-color")]: colorBgContainer,
171
+ [varName("item-icon-border-color")]: colorError,
172
+ [varName("item-icon-text-color")]: colorError,
173
+ [varName("item-icon-dot-color")]: colorError,
174
+ [varName("item-icon-bg-hover-color")]: "transparent",
175
+ [varName("item-icon-border-hover-color")]: colorErrorHover,
176
+ [varName("item-icon-text-hover-color")]: colorErrorHover,
177
+ [varName("item-icon-active-bg-color")]: colorErrorBg
175
178
  }
176
179
  } }
177
180
  ] };