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,3 +1,5 @@
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
2
+
1
3
  //#region src/steps/style/util.ts
2
4
  function withoutVar(cssVar) {
3
5
  return (cssVar || "--ant-not-exist").replace(/var\((.*)\)/, "$1");
@@ -7,14 +9,15 @@ function withoutVar(cssVar) {
7
9
  * This should be multiple since will conflict with other `rail` styles.
8
10
  */
9
11
  function getItemWithWidthStyle(token, marginSize, optionalStyle) {
10
- const { calc, componentCls, descriptionMaxWidth } = token;
12
+ const { calc, componentCls, descriptionMaxWidth, antCls } = token;
11
13
  const itemCls = `${componentCls}-item`;
14
+ const [, varRef] = genCssVar(antCls, "cmp-steps");
12
15
  return { [`@container style(${withoutVar(descriptionMaxWidth)})`]: [{
13
- [`${itemCls}-icon`]: { marginInlineStart: calc(descriptionMaxWidth).sub(`var(--steps-icon-size)`).div(2).equal() },
16
+ [`${itemCls}-icon`]: { marginInlineStart: calc(descriptionMaxWidth).sub(varRef("icon-size")).div(2).equal() },
14
17
  [`${itemCls}-rail`]: {
15
18
  width: "auto",
16
- insetInlineStart: calc(descriptionMaxWidth).add(`var(--steps-icon-size)`).div(2).add(marginSize).equal(),
17
- insetInlineEnd: calc(descriptionMaxWidth).sub(`var(--steps-icon-size)`).div(2).sub(marginSize).mul(-1).equal()
19
+ insetInlineStart: calc(descriptionMaxWidth).add(varRef("icon-size")).div(2).add(marginSize).equal(),
20
+ insetInlineEnd: calc(descriptionMaxWidth).sub(varRef("icon-size")).div(2).sub(marginSize).mul(-1).equal()
18
21
  }
19
22
  }, optionalStyle] };
20
23
  }
@@ -1,24 +1,27 @@
1
+ import { genCssVar } from "../../theme/util/genStyleUtils.js";
2
+
1
3
  //#region src/steps/style/vertical.ts
2
4
  const genVerticalStyle = (token) => {
3
- const { componentCls, calc } = token;
5
+ const { componentCls, marginXXS, paddingSM, controlHeight, antCls, calc } = token;
4
6
  const itemCls = `${componentCls}-item`;
7
+ const [varName, varRef] = genCssVar(antCls, "cmp-steps");
5
8
  return { [`${componentCls}-vertical`]: {
6
- "--steps-vertical-rail-margin": calc(token.marginXXS).mul(1.5).equal(),
7
- "flexDirection": "column",
8
- "alignItems": "stretch",
9
+ [varName("vertical-rail-margin")]: calc(marginXXS).mul(1.5).equal(),
10
+ flexDirection: "column",
11
+ alignItems: "stretch",
9
12
  [`> ${itemCls}`]: {
10
- "minHeight": calc(token.controlHeight).mul(1.5).equal(),
11
- "paddingBottom": token.paddingSM,
13
+ "minHeight": calc(controlHeight).mul(1.5).equal(),
14
+ "paddingBottom": paddingSM,
12
15
  "&:last-child": { paddingBottom: 0 },
13
- [`${itemCls}-icon`]: { marginInlineStart: "calc((var(--steps-icon-size-max) - var(--steps-icon-size)) / 2)" },
16
+ [`${itemCls}-icon`]: { marginInlineStart: `calc((${varRef("icon-size-max")} - ${varRef("icon-size")}) / 2)` },
14
17
  [`${itemCls}-rail`]: {
15
- "--steps-rail-offset": calc("var(--steps-heading-height)").sub("var(--steps-icon-size)").div(2).equal(),
16
- "borderInlineStartWidth": "var(--steps-rail-size)",
17
- "position": "absolute",
18
- "top": calc(`var(--steps-icon-size)`).add("var(--steps-item-wrapper-padding-top)").add("var(--steps-rail-offset)").add("var(--steps-vertical-rail-margin)").equal(),
19
- "insetInlineStart": calc(`var(--steps-icon-size-max)`).div(2).equal(),
20
- "bottom": calc("var(--steps-vertical-rail-margin)").sub("var(--steps-rail-offset)").equal(),
21
- "marginInlineStart": `calc(var(--steps-rail-size) / -2)`
18
+ [varName("rail-offset")]: calc(varRef("heading-height")).sub(varRef("icon-size")).div(2).equal(),
19
+ borderInlineStartWidth: varRef("rail-size"),
20
+ position: "absolute",
21
+ top: calc(varRef("icon-size")).add(varRef("item-wrapper-padding-top")).add(varRef("rail-offset")).add(varRef("vertical-rail-margin")).equal(),
22
+ insetInlineStart: calc(varRef("icon-size-max")).div(2).equal(),
23
+ bottom: calc(varRef("vertical-rail-margin")).sub(varRef("rail-offset")).equal(),
24
+ marginInlineStart: `calc(${varRef("rail-size")} / -2)`
22
25
  }
23
26
  }
24
27
  } };
@@ -1,3 +1,4 @@
1
+ import { genCssVar } from "../theme/util/genStyleUtils.js";
1
2
  import { genRoundedArrow } from "./roundedArrow.js";
2
3
  import { unit } from "@antdv-next/cssinjs";
3
4
 
@@ -16,7 +17,8 @@ function isInject(valid, code) {
16
17
  return code;
17
18
  }
18
19
  function getArrowStyle(token, colorBg, options) {
19
- const { componentCls, boxShadowPopoverArrow, arrowOffsetVertical, arrowOffsetHorizontal } = token;
20
+ const { componentCls, boxShadowPopoverArrow, arrowOffsetVertical, arrowOffsetHorizontal, antCls } = token;
21
+ const [varName] = genCssVar(antCls, "tooltip");
20
22
  const { arrowDistance = 0, arrowPlacement = {
21
23
  left: true,
22
24
  right: true,
@@ -48,14 +50,14 @@ function getArrowStyle(token, colorBg, options) {
48
50
  transform: "translateX(-50%) translateY(100%) rotate(180deg)"
49
51
  },
50
52
  "&-placement-topLeft": {
51
- "--arrow-offset-horizontal": arrowOffsetHorizontal,
53
+ [varName("arrow-offset-horizontal")]: arrowOffsetHorizontal,
52
54
  [`> ${componentCls}-arrow`]: { left: {
53
55
  _skip_check_: true,
54
56
  value: arrowOffsetHorizontal
55
57
  } }
56
58
  },
57
59
  "&-placement-topRight": {
58
- "--arrow-offset-horizontal": `calc(100% - ${unit(arrowOffsetHorizontal)})`,
60
+ [varName("arrow-offset-horizontal")]: `calc(100% - ${unit(arrowOffsetHorizontal)})`,
59
61
  [`> ${componentCls}-arrow`]: { right: {
60
62
  _skip_check_: true,
61
63
  value: arrowOffsetHorizontal
@@ -79,14 +81,14 @@ function getArrowStyle(token, colorBg, options) {
79
81
  transform: `translateX(-50%) translateY(-100%)`
80
82
  },
81
83
  "&-placement-bottomLeft": {
82
- "--arrow-offset-horizontal": arrowOffsetHorizontal,
84
+ [varName("arrow-offset-horizontal")]: arrowOffsetHorizontal,
83
85
  [`> ${componentCls}-arrow`]: { left: {
84
86
  _skip_check_: true,
85
87
  value: arrowOffsetHorizontal
86
88
  } }
87
89
  },
88
90
  "&-placement-bottomRight": {
89
- "--arrow-offset-horizontal": `calc(100% - ${unit(arrowOffsetHorizontal)})`,
91
+ [varName("arrow-offset-horizontal")]: `calc(100% - ${unit(arrowOffsetHorizontal)})`,
90
92
  [`> ${componentCls}-arrow`]: { right: {
91
93
  _skip_check_: true,
92
94
  value: arrowOffsetHorizontal
@@ -2,7 +2,7 @@ import { 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 vue190 from "vue";
5
+ import * as vue140 from "vue";
6
6
  import { SlotsType } from "vue";
7
7
  import { SwitchChangeEventHandler, SwitchClickEventHandler } from "@v-c/switch";
8
8
 
@@ -47,8 +47,8 @@ interface SwitchSlots {
47
47
  checkedChildren: () => any;
48
48
  unCheckedChildren: () => any;
49
49
  }
50
- declare const Switch: vue190.DefineSetupFnComponent<SwitchProps, SwitchEmits, SlotsType<SwitchSlots>, SwitchProps & {
50
+ declare const Switch: vue140.DefineSetupFnComponent<SwitchProps, SwitchEmits, SlotsType<SwitchSlots>, SwitchProps & {
51
51
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
52
- }, vue190.PublicProps>;
52
+ }, vue140.PublicProps>;
53
53
  //#endregion
54
54
  export { Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots };
@@ -1,6 +1,6 @@
1
1
  import { AnyObject, EmptyEmit } from "../_util/type.js";
2
2
  import { ColumnType } from "./interface.js";
3
- import * as vue220 from "vue";
3
+ import * as vue365 from "vue";
4
4
  import { SlotsType } from "vue";
5
5
 
6
6
  //#region src/table/Column.d.ts
@@ -13,8 +13,8 @@ interface ColumnSlots {
13
13
  /**
14
14
  * Syntactic sugar for `columns` prop. HOC will not work on this.
15
15
  */
16
- declare const Column: vue220.DefineSetupFnComponent<ColumnProps<AnyObject>, EmptyEmit, SlotsType<ColumnSlots>, ColumnProps<AnyObject> & {
16
+ declare const Column: vue365.DefineSetupFnComponent<ColumnProps<AnyObject>, EmptyEmit, SlotsType<ColumnSlots>, ColumnProps<AnyObject> & {
17
17
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
18
- }, vue220.PublicProps>;
18
+ }, vue365.PublicProps>;
19
19
  //#endregion
20
20
  export { Column, ColumnProps };
@@ -1,7 +1,7 @@
1
1
  import { AnyObject, EmptyEmit } from "../_util/type.js";
2
2
  import { ColumnType } from "./interface.js";
3
3
  import { ColumnProps } from "./Column.js";
4
- import * as vue224 from "vue";
4
+ import * as vue367 from "vue";
5
5
  import { SlotsType } from "vue";
6
6
 
7
7
  //#region src/table/ColumnGroup.d.ts
@@ -14,8 +14,8 @@ interface ColumnGroupSlots {
14
14
  /**
15
15
  * Syntactic sugar for `columns` prop. HOC will not work on this.
16
16
  */
17
- declare const ColumnGroup: vue224.DefineSetupFnComponent<ColumnGroupProps<AnyObject>, EmptyEmit, SlotsType<ColumnGroupSlots>, ColumnGroupProps<AnyObject> & {
17
+ declare const ColumnGroup: vue367.DefineSetupFnComponent<ColumnGroupProps<AnyObject>, EmptyEmit, SlotsType<ColumnGroupSlots>, ColumnGroupProps<AnyObject> & {
18
18
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
19
- }, vue224.PublicProps>;
19
+ }, vue367.PublicProps>;
20
20
  //#endregion
21
21
  export { ColumnGroup };
@@ -11,8 +11,8 @@ import { useSize } from "../config-provider/hooks/useSize.js";
11
11
  import config_provider_default from "../config-provider/index.js";
12
12
  import en_US_default from "../locale/en_US.js";
13
13
  import useLocale_default from "../locale/useLocale.js";
14
- import { useBreakpoint } from "../grid/hooks/useBreakpoint.js";
15
14
  import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
15
+ import { useBreakpoint } from "../grid/hooks/useBreakpoint.js";
16
16
  import spin_default from "../spin/index.js";
17
17
  import pagination_default from "../pagination/index.js";
18
18
  import useSelection from "./hooks/useSelection.js";
@@ -3,14 +3,14 @@ import { SELECTION_ALL, SELECTION_COLUMN, SELECTION_INVERT, SELECTION_NONE } fro
3
3
  import { Column } from "./Column.js";
4
4
  import { ColumnGroup } from "./ColumnGroup.js";
5
5
  import { TableEmits, TableProps as TableProps$1, TableSlots } from "./InternalTable.js";
6
- import * as vue226 from "vue";
6
+ import * as vue369 from "vue";
7
7
  import { SlotsType } from "vue";
8
8
  import { EXPAND_COLUMN, Summary } from "@v-c/table";
9
9
 
10
10
  //#region src/table/Table.d.ts
11
- declare const Table: vue226.DefineSetupFnComponent<TableProps$1<AnyObject>, TableEmits<AnyObject>, SlotsType<TableSlots<AnyObject>>, TableProps$1<AnyObject> & {
11
+ declare const Table: vue369.DefineSetupFnComponent<TableProps$1<AnyObject>, TableEmits<AnyObject>, SlotsType<TableSlots<AnyObject>>, TableProps$1<AnyObject> & {
12
12
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
13
- }, vue226.PublicProps>;
13
+ }, vue369.PublicProps>;
14
14
  declare const ForwardTable: typeof Table & {
15
15
  displayName?: string;
16
16
  SELECTION_COLUMN: typeof SELECTION_COLUMN;
@@ -3,11 +3,11 @@ import { devUseWarning, isDev } from "../../../_util/warning.js";
3
3
  import { toPropsRefs } from "../../../_util/tools.js";
4
4
  import button_default from "../../../button/index.js";
5
5
  import extendsObject_default from "../../../_util/extendsObject.js";
6
+ import empty_default from "../../../empty/index.js";
6
7
  import { OverrideProvider } from "../../../menu/OverrideContext.js";
7
8
  import menu_default from "../../../menu/index.js";
8
9
  import dropdown_default from "../../../dropdown/index.js";
9
10
  import radio_default from "../../../radio/index.js";
10
- import empty_default from "../../../empty/index.js";
11
11
  import checkbox_default from "../../../checkbox/index.js";
12
12
  import tree_default from "../../../tree/index.js";
13
13
  import FilterSearch_default from "./FilterSearch.js";
@@ -1,5 +1,5 @@
1
1
  import { EmptyEmit } from "../_util/type.js";
2
- import * as vue369 from "vue";
2
+ import * as vue288 from "vue";
3
3
  import { CSSProperties, SlotsType } from "vue";
4
4
  import { TabPaneProps } from "@v-c/tabs";
5
5
 
@@ -16,8 +16,8 @@ interface TabPaneSlots {
16
16
  closeIcon?: () => any;
17
17
  icon?: () => any;
18
18
  }
19
- declare const TabPane: vue369.DefineSetupFnComponent<TabPaneProps$1, EmptyEmit, SlotsType<TabPaneSlots>, TabPaneProps$1 & {
19
+ declare const TabPane: vue288.DefineSetupFnComponent<TabPaneProps$1, EmptyEmit, SlotsType<TabPaneSlots>, TabPaneProps$1 & {
20
20
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
21
- }, vue369.PublicProps>;
21
+ }, vue288.PublicProps>;
22
22
  //#endregion
23
23
  export { TabPane, TabPaneProps$1 as TabPaneProps };
@@ -4,7 +4,7 @@ import { SemanticClassNames, SemanticClassNamesType, SemanticStyles, SemanticSty
4
4
  import "../_util/hooks/index.js";
5
5
  import { TabPane, TabPaneProps as TabPaneProps$1 } from "./TabPane.js";
6
6
  import { ComponentBaseProps } from "../config-provider/context.js";
7
- import * as vue192 from "vue";
7
+ import * as vue144 from "vue";
8
8
  import { SlotsType } from "vue";
9
9
  import { GetIndicatorSize, MoreProps, Tab, TabsProps } from "@v-c/tabs";
10
10
 
@@ -87,8 +87,8 @@ interface TabsSlots {
87
87
  rightExtra?: () => any;
88
88
  leftExtra?: () => any;
89
89
  }
90
- declare const Tabs: vue192.DefineSetupFnComponent<TabsProps$1, TabsEmits, SlotsType<TabsSlots>, TabsProps$1 & {
90
+ declare const Tabs: vue144.DefineSetupFnComponent<TabsProps$1, TabsEmits, SlotsType<TabsSlots>, TabsProps$1 & {
91
91
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
92
- }, vue192.PublicProps>;
92
+ }, vue144.PublicProps>;
93
93
  //#endregion
94
94
  export { Tab$1 as Tab, Tabs, TabsEmits, TabsProps$1 as TabsProps, TabsRef, TabsSlots };
@@ -1,6 +1,6 @@
1
1
  import { VueNode } from "../_util/type.js";
2
2
  import { ComponentBaseProps } from "../config-provider/context.js";
3
- import * as vue377 from "vue";
3
+ import * as vue328 from "vue";
4
4
  import { SlotsType } from "vue";
5
5
 
6
6
  //#region src/tag/CheckableTag.d.ts
@@ -27,8 +27,8 @@ interface CheckableTagSlots {
27
27
  default: () => any;
28
28
  icon: () => any;
29
29
  }
30
- declare const CheckableTag: vue377.DefineSetupFnComponent<CheckableTagProps, CheckableTagEmits, SlotsType<CheckableTagSlots>, CheckableTagProps & {
30
+ declare const CheckableTag: vue328.DefineSetupFnComponent<CheckableTagProps, CheckableTagEmits, SlotsType<CheckableTagSlots>, CheckableTagProps & {
31
31
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
32
- }, vue377.PublicProps>;
32
+ }, vue328.PublicProps>;
33
33
  //#endregion
34
34
  export { CheckableTag, CheckableTagProps };
@@ -2,7 +2,7 @@ import { VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNames, SemanticStyles } from "../_util/hooks/useMergeSemantic.js";
3
3
  import "../_util/hooks/index.js";
4
4
  import { ComponentBaseProps } from "../config-provider/context.js";
5
- import * as vue375 from "vue";
5
+ import * as vue326 from "vue";
6
6
 
7
7
  //#region src/tag/CheckableTagGroup.d.ts
8
8
  type CheckableTagDefaultValue = string | number;
@@ -36,8 +36,8 @@ interface CheckableTagGroupEmits<CheckableTagValue = CheckableTagDefaultValue> {
36
36
  'update:value': (value: CheckableTagValue | CheckableTagValue[] | null) => void;
37
37
  [key: string]: (...args: any[]) => any;
38
38
  }
39
- declare const CheckableTagGroup: vue375.DefineSetupFnComponent<CheckableTagGroupProps<CheckableTagDefaultValue>, CheckableTagGroupEmits<CheckableTagDefaultValue>, {}, CheckableTagGroupProps<CheckableTagDefaultValue> & {
39
+ declare const CheckableTagGroup: vue326.DefineSetupFnComponent<CheckableTagGroupProps<CheckableTagDefaultValue>, CheckableTagGroupEmits<CheckableTagDefaultValue>, {}, CheckableTagGroupProps<CheckableTagDefaultValue> & {
40
40
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
41
- }, vue375.PublicProps>;
41
+ }, vue326.PublicProps>;
42
42
  //#endregion
43
43
  export { CheckableTagGroup };
@@ -6,7 +6,7 @@ import { ClosableType } from "../_util/hooks/useClosable.js";
6
6
  import { CheckableTag, CheckableTagProps } from "./CheckableTag.js";
7
7
  import { CheckableTagGroup } from "./CheckableTagGroup.js";
8
8
  import { ComponentBaseProps } from "../config-provider/context.js";
9
- import * as vue194 from "vue";
9
+ import * as vue92 from "vue";
10
10
  import { SlotsType } from "vue";
11
11
  import { LiteralUnion } from "@v-c/util/dist/type";
12
12
 
@@ -38,9 +38,9 @@ interface TagEmits {
38
38
  close: (ev: MouseEvent) => void;
39
39
  [key: string]: (...args: any[]) => any;
40
40
  }
41
- declare const InternalTag: vue194.DefineSetupFnComponent<TagProps, TagEmits, SlotsType<TagSlots>, TagProps & {
41
+ declare const InternalTag: vue92.DefineSetupFnComponent<TagProps, TagEmits, SlotsType<TagSlots>, TagProps & {
42
42
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
43
- }, vue194.PublicProps>;
43
+ }, vue92.PublicProps>;
44
44
  declare const Tag: typeof InternalTag & {
45
45
  CheckableTag: typeof CheckableTag;
46
46
  };
@@ -5,15 +5,15 @@ import { GlobalToken } from "./interface/cssinjs-utils.js";
5
5
  import "./interface/index.js";
6
6
  import { getDesignToken } from "./getDesignToken.js";
7
7
  import { derivative } from "./themes/default/index.js";
8
- import * as vue2 from "vue";
8
+ import * as vue4 from "vue";
9
9
  import * as _antdv_next_cssinjs0 from "@antdv-next/cssinjs";
10
10
 
11
11
  //#region src/theme/index.d.ts
12
12
  /** Get current context Design Token. Will be different if you are using nest theme config. */
13
13
  declare function useToken(): {
14
- theme: vue2.Ref<_antdv_next_cssinjs0.Theme<SeedToken, AliasToken>, _antdv_next_cssinjs0.Theme<SeedToken, AliasToken>>;
15
- token: vue2.Ref<GlobalToken, GlobalToken>;
16
- hashId: vue2.Ref<string, string>;
14
+ theme: vue4.Ref<_antdv_next_cssinjs0.Theme<SeedToken, AliasToken>, _antdv_next_cssinjs0.Theme<SeedToken, AliasToken>>;
15
+ token: vue4.Ref<GlobalToken, GlobalToken>;
16
+ hashId: vue4.Ref<string, string>;
17
17
  };
18
18
  declare const _default: {
19
19
  /** Default seedToken */
@@ -45,12 +45,15 @@ const { genComponentStyleHook, genStyleHooks, genSubStyleComponent } = genStyleU
45
45
  getCommonStyle: genCommonStyle,
46
46
  getCompUnitless: (() => unitless)
47
47
  });
48
- function genCssVar(antCls, componentAbbr) {
49
- const cssPrefix = `--${antCls.replace(".", "")}-${componentAbbr}-`;
50
- return (name, withVar = false) => {
51
- const raw = `${cssPrefix}${name}`;
52
- return withVar ? `var(${raw})` : raw;
48
+ function genCssVar(antCls, component) {
49
+ const cssPrefix = `--${antCls.replace(/\./g, "")}-${component}-`;
50
+ const varName = (name) => {
51
+ return `${cssPrefix}${name}`;
53
52
  };
53
+ const varRef = (name, fallback) => {
54
+ return fallback ? `var(${cssPrefix}${name}, ${fallback})` : `var(${cssPrefix}${name})`;
55
+ };
56
+ return [varName, varRef];
54
57
  }
55
58
 
56
59
  //#endregion
@@ -4,7 +4,7 @@ import "../_util/hooks/index.js";
4
4
  import { InputStatus } from "../_util/statusUtils.js";
5
5
  import "../date-picker/generatePicker/index.js";
6
6
  import { PickerProps as PickerProps$1, RangePickerProps as RangePickerProps$1 } from "../date-picker/generatePicker/interface.js";
7
- import * as vue57 from "vue";
7
+ import * as vue17 from "vue";
8
8
  import { CSSProperties, SlotsType } from "vue";
9
9
  import { PickerMode } from "@v-c/picker";
10
10
 
@@ -46,9 +46,9 @@ interface TimeRangePickerEmits<DateType = AnyObject> {
46
46
  'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
47
47
  [key: string]: (...args: any[]) => void;
48
48
  }
49
- declare const RangePicker$1: vue57.DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<AnyObject>, {}, TimeRangePickerProps & {
49
+ declare const RangePicker$1: vue17.DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<AnyObject>, {}, TimeRangePickerProps & {
50
50
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
51
- }, vue57.PublicProps>;
51
+ }, vue17.PublicProps>;
52
52
  interface TimePickerProps extends Omit<PickerTimeProps<AnyObject>, 'picker' | 'classes' | 'styles'> {
53
53
  addon?: () => VueNode;
54
54
  status?: InputStatus;
@@ -79,15 +79,15 @@ interface TimePickerEmits<DateType = AnyObject> {
79
79
  'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
80
80
  [key: string]: (...args: any[]) => void;
81
81
  }
82
- declare const TimePicker: vue57.DefineSetupFnComponent<TimePickerProps, TimePickerEmits<AnyObject>, SlotsType<TimePickerSlots>, TimePickerProps & {
82
+ declare const TimePicker: vue17.DefineSetupFnComponent<TimePickerProps, TimePickerEmits<AnyObject>, SlotsType<TimePickerSlots>, TimePickerProps & {
83
83
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
84
- }, vue57.PublicProps>;
84
+ }, vue17.PublicProps>;
85
85
  type MergedTimePicker = typeof TimePicker & {
86
86
  RangePicker: typeof RangePicker$1;
87
87
  };
88
88
  declare const _default: MergedTimePicker;
89
- declare const TimeRangePicker: vue57.DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<AnyObject>, {}, TimeRangePickerProps & {
89
+ declare const TimeRangePicker: vue17.DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<AnyObject>, {}, TimeRangePickerProps & {
90
90
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
91
- }, vue57.PublicProps>;
91
+ }, vue17.PublicProps>;
92
92
  //#endregion
93
93
  export { TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, _default };
@@ -1,7 +1,7 @@
1
1
  import { EmptyEmit, VueNode } from "../_util/type.js";
2
2
  import { ComponentBaseProps } from "../config-provider/context.js";
3
3
  import { TimelineItemProps } from "./TimelineItem.js";
4
- import * as vue357 from "vue";
4
+ import * as vue286 from "vue";
5
5
  import { SlotsType } from "vue";
6
6
 
7
7
  //#region src/timeline/Timeline.d.ts
@@ -40,8 +40,8 @@ interface TimelineSlots {
40
40
  index: number;
41
41
  }) => void;
42
42
  }
43
- declare const Timeline: vue357.DefineSetupFnComponent<TimelineProps, EmptyEmit, SlotsType<TimelineSlots>, TimelineProps & {
43
+ declare const Timeline: vue286.DefineSetupFnComponent<TimelineProps, EmptyEmit, SlotsType<TimelineSlots>, TimelineProps & {
44
44
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
45
- }, vue357.PublicProps>;
45
+ }, vue286.PublicProps>;
46
46
  //#endregion
47
47
  export { Timeline, TimelineProps };
@@ -1,9 +1,9 @@
1
1
  import { TooltipProps } from "./index.js";
2
- import * as vue390 from "vue";
2
+ import * as vue312 from "vue";
3
3
 
4
4
  //#region src/tooltip/PurePanel.d.ts
5
5
  interface PurePanelProps extends TooltipProps {}
6
6
  /** @private Internal Component. Do not use in your production. */
7
- declare const PurePanel: vue390.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue390.PublicProps>;
7
+ declare const PurePanel: vue312.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue312.PublicProps>;
8
8
  //#endregion
9
9
  export { PurePanel };
@@ -14,15 +14,15 @@ function _isSlot(s) {
14
14
  }
15
15
  /** @private Internal Component. Do not use in your production. */
16
16
  const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs }) => {
17
- const { prefixCls, getPrefixCls } = useComponentBaseConfig("tooltip", props);
18
- const rootCls = computed(() => getPrefixCls());
17
+ const { prefixCls, rootPrefixCls } = useComponentBaseConfig("tooltip", props);
18
+ const rootCls = rootPrefixCls;
19
19
  const { placement, classes, styles } = toPropsRefs(props, "placement", "classes", "styles");
20
20
  const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
21
21
  const mergedProps = computed(() => ({
22
22
  ...props,
23
23
  placement: placement.value
24
24
  }));
25
- const colorInfo = computed(() => parseColor(prefixCls.value, props.color));
25
+ const colorInfo = computed(() => parseColor(rootPrefixCls.value, prefixCls.value, props.color));
26
26
  const innerStyles = computed(() => ({ container: colorInfo.value.overlayStyle }));
27
27
  const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(classes), useToArr(innerStyles, styles), useToProps(mergedProps));
28
28
  return () => {
@@ -1,6 +1,6 @@
1
- import * as vue388 from "vue";
1
+ import * as vue310 from "vue";
2
2
 
3
3
  //#region src/tooltip/UniqueProvider/index.d.ts
4
- declare const UniqueProvider: vue388.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, vue388.PublicProps>;
4
+ declare const UniqueProvider: vue310.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, vue310.PublicProps>;
5
5
  //#endregion
6
6
  export { UniqueProvider };
@@ -6,7 +6,7 @@ import { AdjustOverflow } from "../_util/placements.js";
6
6
  import { PurePanel } from "./PurePanel.js";
7
7
  import { UniqueProvider as UniqueProvider$1 } from "./UniqueProvider/index.js";
8
8
  import { ComponentBaseProps } from "../config-provider/context.js";
9
- import * as vue196 from "vue";
9
+ import * as vue159 from "vue";
10
10
  import { SlotsType } from "vue";
11
11
  import { TooltipProps, placements } from "@v-c/tooltip";
12
12
  import { ActionType, AlignType } from "@v-c/trigger";
@@ -84,9 +84,9 @@ interface TooltipSlots {
84
84
  interface InternalTooltipProps extends TooltipProps$1 {
85
85
  dataPopoverInject?: boolean;
86
86
  }
87
- declare const InternalTooltip: vue196.DefineSetupFnComponent<InternalTooltipProps, TooltipEmits, SlotsType<TooltipSlots>, InternalTooltipProps & {
87
+ declare const InternalTooltip: vue159.DefineSetupFnComponent<InternalTooltipProps, TooltipEmits, SlotsType<TooltipSlots>, InternalTooltipProps & {
88
88
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
89
- }, vue196.PublicProps>;
89
+ }, vue159.PublicProps>;
90
90
  declare const _default: typeof InternalTooltip & {
91
91
  UniqueProvider: typeof UniqueProvider$1;
92
92
  _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
@@ -30,7 +30,7 @@ function _isSlot(s) {
30
30
  }
31
31
  const InternalTooltip = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose, emit }) => {
32
32
  const [, token] = useToken();
33
- const { getPrefixCls, prefixCls, direction, arrow: contextArrow, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, getPopupContainer: getContextPopupContainer } = useComponentBaseConfig("tooltip", props, ["arrow"]);
33
+ const { prefixCls, rootPrefixCls, direction, arrow: contextArrow, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, getPopupContainer: getContextPopupContainer } = useComponentBaseConfig("tooltip", props, ["arrow"]);
34
34
  const { arrow: tooltipArrow, builtinPlacements, autoAdjustOverflow, classes, styles } = toPropsRefs(props, "arrow", "builtinPlacements", "autoAdjustOverflow", "classes", "styles");
35
35
  const mergedArrow = useMergedArrow_default(tooltipArrow, contextArrow);
36
36
  const mergedShowArrow = computed(() => mergedArrow.value?.show);
@@ -69,7 +69,6 @@ const InternalTooltip = /* @__PURE__ */ defineComponent((props, { slots, attrs,
69
69
  return props;
70
70
  });
71
71
  const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
72
- const rootPrefixCls = computed(() => getPrefixCls());
73
72
  const injectFromPopover = props.dataPopoverInject;
74
73
  const rootCls = useCSSVarCls_default(prefixCls);
75
74
  const [hashId, cssVarCls] = style_default(prefixCls, rootCls, !injectFromPopover);
@@ -85,7 +84,7 @@ const InternalTooltip = /* @__PURE__ */ defineComponent((props, { slots, attrs,
85
84
  child = isVNode(child) ? child : createVNode("span", null, [child]);
86
85
  const childProps = child?.props ?? {};
87
86
  const childCls = !childProps?.class || typeof childProps?.class === "string" ? clsx(childProps.class, openClass || `${prefixCls.value}-open`) : childProps.class;
88
- const colorInfo = parseColor(prefixCls.value, color);
87
+ const colorInfo = parseColor(rootPrefixCls.value, prefixCls.value, color);
89
88
  const arrowContentStyle = colorInfo.arrowStyle;
90
89
  const themeCls = clsx(rootCls.value, hashId.value, cssVarCls.value);
91
90
  const rootClassNames = clsx({ [`${prefixCls.value}-rtl`]: direction.value === "rtl" }, colorInfo.className, rootClass, themeCls, contextClassName.value, mergedClassNames.value.root);
@@ -1,6 +1,6 @@
1
1
  import genPresetColor from "../../theme/util/genPresetColor.js";
2
2
  import { resetComponent } from "../../style/index.js";
3
- import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
3
+ import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
4
4
  import { mergeToken } from "../../theme/internal.js";
5
5
  import { getArrowToken } from "../../style/roundedArrow.js";
6
6
  import getArrowStyle, { MAX_VERTICAL_CONTENT_RADIUS, getArrowOffsetToken } from "../../style/placementArrow.js";
@@ -10,14 +10,16 @@ import "../../style/motion/index.js";
10
10
  import { unit } from "@antdv-next/cssinjs";
11
11
 
12
12
  //#region src/tooltip/style/index.ts
13
+ const FALL_BACK_ORIGIN = "50%";
13
14
  const genTooltipStyle = (token) => {
14
- const { calc, componentCls, tooltipMaxWidth, tooltipColor, tooltipBg, tooltipBorderRadius, zIndexPopup, controlHeight, boxShadowSecondary, paddingSM, paddingXS, arrowOffsetHorizontal, sizePopupArrow } = token;
15
+ const { calc, componentCls, tooltipMaxWidth, tooltipColor, tooltipBg, tooltipBorderRadius, zIndexPopup, controlHeight, boxShadowSecondary, paddingSM, paddingXS, arrowOffsetHorizontal, sizePopupArrow, antCls } = token;
16
+ const [varName, varRef] = genCssVar(antCls, "tooltip");
15
17
  const edgeAlignMinWidth = calc(tooltipBorderRadius).add(sizePopupArrow).add(arrowOffsetHorizontal).equal();
16
18
  const sharedBodyStyle = {
17
19
  minWidth: calc(tooltipBorderRadius).mul(2).add(sizePopupArrow).equal(),
18
20
  minHeight: controlHeight,
19
21
  padding: `${unit(token.calc(paddingSM).div(2).equal())} ${unit(paddingXS)}`,
20
- color: `var(--ant-tooltip-color, ${tooltipColor})`,
22
+ color: varRef("overlay-color", tooltipColor),
21
23
  textAlign: "start",
22
24
  textDecoration: "none",
23
25
  wordWrap: "break-word",
@@ -27,8 +29,8 @@ const genTooltipStyle = (token) => {
27
29
  boxSizing: "border-box"
28
30
  };
29
31
  const sharedTransformOrigin = {
30
- "--valid-offset-x": "var(--arrow-offset-horizontal, var(--arrow-x))",
31
- "transformOrigin": [`var(--valid-offset-x, 50%)`, `var(--arrow-y, 50%)`].join(" ")
32
+ [varName("valid-offset-x")]: varRef("arrow-offset-horizontal", "var(--arrow-x)"),
33
+ transformOrigin: [varRef("valid-offset-x", FALL_BACK_ORIGIN), `var(--arrow-y, ${FALL_BACK_ORIGIN})`].join(" ")
32
34
  };
33
35
  return [
34
36
  { [componentCls]: {
@@ -41,7 +43,7 @@ const genTooltipStyle = (token) => {
41
43
  "visibility": "visible",
42
44
  ...sharedTransformOrigin,
43
45
  "&-hidden": { display: "none" },
44
- "--antd-arrow-background-color": tooltipBg,
46
+ [varName("arrow-background-color")]: tooltipBg,
45
47
  [`${componentCls}-container`]: [sharedBodyStyle, initFadeMotion(token, true)],
46
48
  [`&:has(~ ${componentCls}-unique-container)`]: { [`${componentCls}-container`]: {
47
49
  border: "none",
@@ -65,11 +67,11 @@ const genTooltipStyle = (token) => {
65
67
  [`${componentCls}-content`]: { position: "relative" },
66
68
  ...genPresetColor(token, (colorKey, { darkColor }) => ({ [`&${componentCls}-${colorKey}`]: {
67
69
  [`${componentCls}-container`]: { backgroundColor: darkColor },
68
- [`${componentCls}-arrow`]: { "--antd-arrow-background-color": darkColor }
70
+ [`${componentCls}-arrow`]: { [varName("arrow-background-color")]: darkColor }
69
71
  } })),
70
72
  "&-rtl": { direction: "rtl" }
71
73
  } },
72
- getArrowStyle(token, "var(--antd-arrow-background-color)"),
74
+ getArrowStyle(token, varRef("arrow-background-color")),
73
75
  { [`${componentCls}-pure`]: {
74
76
  position: "relative",
75
77
  maxWidth: "none",
@@ -1,10 +1,12 @@
1
+ import { genCssVar } from "../theme/util/genStyleUtils.js";
1
2
  import { isPresetColor } from "../_util/colors.js";
2
3
  import { generateColor } from "../color-picker/util.js";
3
4
  import { classNames } from "@v-c/util";
4
5
 
5
6
  //#region src/tooltip/util.ts
6
- function parseColor(prefixCls, color) {
7
+ function parseColor(rootPrefixCls, prefixCls, color) {
7
8
  const isInternalColor = isPresetColor(color);
9
+ const [varName] = genCssVar(rootPrefixCls, "tooltip");
8
10
  const className = classNames({ [`${prefixCls}-${color}`]: color && isInternalColor });
9
11
  const overlayStyle = {};
10
12
  const arrowStyle = {};
@@ -12,8 +14,8 @@ function parseColor(prefixCls, color) {
12
14
  const textColor = (.299 * rgb.r + .587 * rgb.g + .114 * rgb.b) / 255 < .5 ? "#FFF" : "#000";
13
15
  if (color && !isInternalColor) {
14
16
  overlayStyle.background = color;
15
- overlayStyle["--ant-tooltip-color"] = textColor;
16
- arrowStyle["--antd-arrow-background-color"] = color;
17
+ overlayStyle[varName("overlay-color")] = textColor;
18
+ arrowStyle[varName("arrow-background-color")] = color;
17
19
  }
18
20
  return {
19
21
  className,
@@ -1,11 +1,11 @@
1
1
  import { TourEmits, TourLocale, TourProps, TourSemanticName, TourSlots, TourStepProps, TourStylesType } from "./interface.js";
2
- import * as vue55 from "vue";
2
+ import * as vue59 from "vue";
3
3
  import { SlotsType } from "vue";
4
4
 
5
5
  //#region src/tour/index.d.ts
6
- declare const Tour: vue55.DefineSetupFnComponent<TourProps, TourEmits, SlotsType<TourSlots>, TourProps & {
6
+ declare const Tour: vue59.DefineSetupFnComponent<TourProps, TourEmits, SlotsType<TourSlots>, TourProps & {
7
7
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
8
- }, vue55.PublicProps>;
8
+ }, vue59.PublicProps>;
9
9
  type TourStepItem = TourStepProps;
10
10
  //#endregion
11
11
  export { Tour, TourStepItem };