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,7 +1,7 @@
1
1
  import { VueNode } from "../_util/type.js";
2
2
  import { ComponentBaseProps } from "../config-provider/context.js";
3
3
  import { AvatarSize } from "./AvatarContext.js";
4
- import * as vue289 from "vue";
4
+ import * as vue290 from "vue";
5
5
  import { SlotsType } from "vue";
6
6
 
7
7
  //#region src/avatar/Avatar.d.ts
@@ -34,8 +34,8 @@ interface AvatarSlots {
34
34
  src: () => any;
35
35
  default: () => any;
36
36
  }
37
- declare const Avatar: vue289.DefineSetupFnComponent<AvatarProps, AvatarEmits, SlotsType<AvatarSlots>, AvatarProps & {
37
+ declare const Avatar: vue290.DefineSetupFnComponent<AvatarProps, AvatarEmits, SlotsType<AvatarSlots>, AvatarProps & {
38
38
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
39
- }, vue289.PublicProps>;
39
+ }, vue290.PublicProps>;
40
40
  //#endregion
41
41
  export { Avatar, AvatarEmits, AvatarProps, AvatarSlots };
@@ -1,7 +1,7 @@
1
1
  import { PopoverProps } from "../popover/index.js";
2
2
  import { ComponentBaseProps } from "../config-provider/context.js";
3
3
  import { AvatarSize } from "./AvatarContext.js";
4
- import * as vue291 from "vue";
4
+ import * as vue292 from "vue";
5
5
  import { CSSProperties } from "vue";
6
6
 
7
7
  //#region src/avatar/AvatarGroup.d.ts
@@ -19,6 +19,6 @@ interface AvatarGroupProps extends ComponentBaseProps {
19
19
  size?: AvatarSize;
20
20
  shape?: 'circle' | 'square';
21
21
  }
22
- declare const AvatarGroup: vue291.DefineSetupFnComponent<AvatarGroupProps, {}, {}, AvatarGroupProps & {}, vue291.PublicProps>;
22
+ declare const AvatarGroup: vue292.DefineSetupFnComponent<AvatarGroupProps, {}, {}, AvatarGroupProps & {}, vue292.PublicProps>;
23
23
  //#endregion
24
24
  export { AvatarGroup, AvatarGroupProps };
@@ -1,7 +1,7 @@
1
1
  import { EmptyEmit, VueNode } from "../_util/type.js";
2
2
  import { PresetColorType } from "../_util/colors.js";
3
3
  import { ComponentBaseProps } from "../config-provider/context.js";
4
- import * as vue92 from "vue";
4
+ import * as vue71 from "vue";
5
5
  import { CSSProperties, SlotsType } from "vue";
6
6
  import { LiteralUnion } from "@v-c/util/dist/type";
7
7
 
@@ -16,8 +16,8 @@ interface RibbonSlots {
16
16
  default?: () => any;
17
17
  text?: () => any;
18
18
  }
19
- declare const _default: vue92.DefineSetupFnComponent<RibbonProps, EmptyEmit, SlotsType<RibbonSlots>, RibbonProps & {
19
+ declare const _default: vue71.DefineSetupFnComponent<RibbonProps, EmptyEmit, SlotsType<RibbonSlots>, RibbonProps & {
20
20
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
21
- }, vue92.PublicProps>;
21
+ }, vue71.PublicProps>;
22
22
  //#endregion
23
23
  export { RibbonProps, _default };
@@ -6,7 +6,7 @@ import "../theme/interface/index.js";
6
6
  import { PresetStatusColorType } from "../_util/colors.js";
7
7
  import { _default } from "./Ribbon.js";
8
8
  import { ComponentBaseProps } from "../config-provider/context.js";
9
- import * as vue90 from "vue";
9
+ import * as vue69 from "vue";
10
10
  import { SlotsType } from "vue";
11
11
  import { LiteralUnion } from "@v-c/util/dist/type";
12
12
 
@@ -37,9 +37,9 @@ interface BadgeSlots {
37
37
  count?: () => any;
38
38
  text?: () => any;
39
39
  }
40
- declare const InternalBadge: vue90.DefineSetupFnComponent<BadgeProps, EmptyEmit, SlotsType<BadgeSlots>, BadgeProps & {
40
+ declare const InternalBadge: vue69.DefineSetupFnComponent<BadgeProps, EmptyEmit, SlotsType<BadgeSlots>, BadgeProps & {
41
41
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
42
- }, vue90.PublicProps>;
42
+ }, vue69.PublicProps>;
43
43
  declare const Badge: typeof InternalBadge & {
44
44
  Ribbon: typeof _default;
45
45
  };
@@ -4,7 +4,7 @@ import "../_util/hooks/index.js";
4
4
  import { DropdownProps } from "../dropdown/dropdown.js";
5
5
  import "../dropdown/index.js";
6
6
  import { BreadcrumbItemProps, MenuItem } from "./BreadcrumbItem.js";
7
- import * as vue287 from "vue";
7
+ import * as vue227 from "vue";
8
8
  import { CSSProperties, SlotsType } from "vue";
9
9
  import { Key } from "@v-c/util/dist/type";
10
10
 
@@ -38,7 +38,7 @@ type BreadcrumbStylesType<T extends AnyObject = AnyObject> = SemanticStylesType<
38
38
  interface BreadcrumbProps<T extends AnyObject = AnyObject> {
39
39
  prefixCls?: string;
40
40
  params?: T;
41
- separator?: VueNode;
41
+ separator?: any;
42
42
  rootClass?: string;
43
43
  items?: ItemType[];
44
44
  classes?: BreadcrumbClassNamesType<T>;
@@ -82,8 +82,8 @@ interface BreadcrumbSlots {
82
82
  menu: MenuItem;
83
83
  }) => any;
84
84
  }
85
- declare const Breadcrumb: vue287.DefineSetupFnComponent<BreadcrumbProps<AnyObject>, BreadcrumbEmits, SlotsType<BreadcrumbSlots>, BreadcrumbProps<AnyObject> & {
85
+ declare const Breadcrumb: vue227.DefineSetupFnComponent<BreadcrumbProps<AnyObject>, BreadcrumbEmits, SlotsType<BreadcrumbSlots>, BreadcrumbProps<AnyObject> & {
86
86
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
87
- }, vue287.PublicProps>;
87
+ }, vue227.PublicProps>;
88
88
  //#endregion
89
- export { Breadcrumb, BreadcrumbEmits, BreadcrumbItemType, BreadcrumbProps, BreadcrumbSlots };
89
+ export { Breadcrumb, BreadcrumbEmits, BreadcrumbProps, BreadcrumbSlots, ItemType };
@@ -136,14 +136,6 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
136
136
  default: void 0
137
137
  },
138
138
  separator: {
139
- type: [
140
- Function,
141
- Boolean,
142
- String,
143
- Number,
144
- null,
145
- Object
146
- ],
147
139
  required: false,
148
140
  default: void 0
149
141
  },
@@ -6,7 +6,7 @@ import { Key } from "@v-c/util/dist/type";
6
6
 
7
7
  //#region src/breadcrumb/BreadcrumbItem.d.ts
8
8
  interface SeparatorType {
9
- separator?: VueNode;
9
+ separator?: any;
10
10
  key?: Key;
11
11
  }
12
12
  type MenuType = NonNullable<DropdownProps['menu']>;
@@ -53,7 +53,7 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
53
53
  if (isNonNullable_default(link)) return createVNode(Fragment, null, [createVNode("li", {
54
54
  "class": mergedClassNames?.item,
55
55
  "style": mergedStyles?.item
56
- }, [link]), separator && createVNode(BreadcrumbSeparator_default, null, _isSlot(separator) ? separator : { default: () => [separator] })]);
56
+ }, [link]), !!separator && createVNode(BreadcrumbSeparator_default, null, _isSlot(separator) ? separator : { default: () => [separator] })]);
57
57
  return null;
58
58
  };
59
59
  }, {
@@ -94,14 +94,6 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
94
94
  default: void 0
95
95
  },
96
96
  separator: {
97
- type: [
98
- Function,
99
- Boolean,
100
- String,
101
- Number,
102
- null,
103
- Object
104
- ],
105
97
  required: false,
106
98
  default: void 0
107
99
  }
@@ -155,14 +147,6 @@ const BreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
155
147
  default: void 0
156
148
  },
157
149
  separator: {
158
- type: [
159
- Function,
160
- Boolean,
161
- String,
162
- Number,
163
- null,
164
- Object
165
- ],
166
150
  required: false,
167
151
  default: void 0
168
152
  }
@@ -1,2 +1,2 @@
1
1
  import { BreadcrumbItemProps, SeparatorType } from "./BreadcrumbItem.js";
2
- import { Breadcrumb, BreadcrumbEmits, BreadcrumbItemType, BreadcrumbProps, BreadcrumbSlots } from "./Breadcrumb.js";
2
+ import { Breadcrumb, BreadcrumbEmits, BreadcrumbProps, BreadcrumbSlots, ItemType } from "./Breadcrumb.js";
@@ -4,7 +4,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
4
4
  import "../_util/hooks/index.js";
5
5
  import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./buttonHelper.js";
6
6
  import { ComponentBaseProps } from "../config-provider/context.js";
7
- import * as vue305 from "vue";
7
+ import * as vue237 from "vue";
8
8
  import { SlotsType } from "vue";
9
9
 
10
10
  //#region src/button/Button.d.ts
@@ -50,9 +50,9 @@ interface ButtonSlots {
50
50
  icon?: () => any;
51
51
  loadingIcon?: () => any;
52
52
  }
53
- declare const InternalCompoundedButton: vue305.DefineSetupFnComponent<ButtonProps, ButtonEmits, SlotsType<ButtonSlots>, ButtonProps & {
53
+ declare const InternalCompoundedButton: vue237.DefineSetupFnComponent<ButtonProps, ButtonEmits, SlotsType<ButtonSlots>, ButtonProps & {
54
54
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
55
- }, vue305.PublicProps>;
55
+ }, vue237.PublicProps>;
56
56
  type CompoundedComponent = typeof InternalCompoundedButton & {
57
57
  /** @internal */
58
58
  __ANT_BUTTON: boolean;
@@ -4,140 +4,152 @@ import { genCssVar } from "../../theme/util/genStyleUtils.js";
4
4
  //#region src/button/style/variant.ts
5
5
  const genVariantStyle = (token) => {
6
6
  const { componentCls, antCls } = token;
7
- const getCssVar = genCssVar(antCls, "btn");
7
+ const [varName, varRef] = genCssVar(antCls, "btn");
8
8
  return { [componentCls]: [
9
9
  {
10
- [getCssVar("border-width")]: "1px",
11
- [getCssVar("border-color")]: "#000",
12
- [getCssVar("border-color-hover")]: `var(${getCssVar("border-color")})`,
13
- [getCssVar("border-color-active")]: `var(${getCssVar("border-color")})`,
14
- [getCssVar("border-color-disabled")]: `var(${getCssVar("border-color")})`,
15
- [getCssVar("border-style")]: "solid",
16
- [getCssVar("text-color")]: "#000",
17
- [getCssVar("text-color-hover")]: `var(${getCssVar("text-color")})`,
18
- [getCssVar("text-color-active")]: `var(${getCssVar("text-color")})`,
19
- [getCssVar("text-color-disabled")]: `var(${getCssVar("text-color")})`,
20
- [getCssVar("bg-color")]: "#ddd",
21
- [getCssVar("bg-color-hover")]: `var(${getCssVar("bg-color")})`,
22
- [getCssVar("bg-color-active")]: `var(${getCssVar("bg-color")})`,
23
- [getCssVar("bg-color-disabled")]: token.colorBgContainerDisabled,
24
- [getCssVar("bg-color-container")]: token.colorBgContainer,
25
- [getCssVar("shadow")]: "none"
10
+ [varName("border-width")]: "1px",
11
+ [varName("border-color")]: "#000",
12
+ [varName("border-color-hover")]: varRef("border-color"),
13
+ [varName("border-color-active")]: varRef("border-color"),
14
+ [varName("border-color-disabled")]: varRef("border-color"),
15
+ [varName("border-style")]: "solid",
16
+ [varName("text-color")]: "#000",
17
+ [varName("text-color-hover")]: varRef("text-color"),
18
+ [varName("text-color-active")]: varRef("text-color"),
19
+ [varName("text-color-disabled")]: varRef("text-color"),
20
+ [varName("bg-color")]: "#ddd",
21
+ [varName("bg-color-hover")]: varRef("bg-color"),
22
+ [varName("bg-color-active")]: varRef("bg-color"),
23
+ [varName("bg-color-disabled")]: token.colorBgContainerDisabled,
24
+ [varName("bg-color-container")]: token.colorBgContainer,
25
+ [varName("shadow")]: "none"
26
26
  },
27
27
  {
28
- border: `var(${getCssVar("border-width")}) var(${getCssVar("border-style")}) var(${getCssVar("border-color")})`,
29
- color: `var(${getCssVar("text-color")})`,
30
- backgroundColor: `var(${getCssVar("bg-color")})`,
28
+ border: [
29
+ varRef("border-width"),
30
+ varRef("border-style"),
31
+ varRef("border-color")
32
+ ].join(" "),
33
+ color: varRef("text-color"),
34
+ backgroundColor: varRef("bg-color"),
31
35
  [`&:not(:disabled):not(${componentCls}-disabled)`]: {
32
36
  "&:hover": {
33
- border: `var(${getCssVar("border-width")}) var(${getCssVar("border-style")}) var(${getCssVar("border-color-hover")})`,
34
- color: `var(${getCssVar("text-color-hover")})`,
35
- backgroundColor: `var(${getCssVar("bg-color-hover")})`
37
+ border: [
38
+ varRef("border-width"),
39
+ varRef("border-style"),
40
+ varRef("border-color-hover")
41
+ ].join(" "),
42
+ color: varRef("text-color-hover"),
43
+ backgroundColor: varRef("bg-color-hover")
36
44
  },
37
45
  "&:active": {
38
- border: `var(${getCssVar("border-width")}) var(${getCssVar("border-style")}) var(${getCssVar("border-color-active")})`,
39
- color: `var(${getCssVar("text-color-active")})`,
40
- backgroundColor: `var(${getCssVar("bg-color-active")})`
46
+ border: [
47
+ varRef("border-width"),
48
+ varRef("border-style"),
49
+ varRef("border-color-active")
50
+ ].join(" "),
51
+ color: varRef("text-color-active"),
52
+ backgroundColor: varRef("bg-color-active")
41
53
  }
42
54
  }
43
55
  },
44
56
  {
45
57
  [`&${componentCls}-variant-solid`]: {
46
- [getCssVar("solid-bg-color")]: `var(${getCssVar("color-base")})`,
47
- [getCssVar("solid-bg-color-hover")]: `var(${getCssVar("color-hover")})`,
48
- [getCssVar("solid-bg-color-active")]: `var(${getCssVar("color-active")})`,
49
- [getCssVar("border-color")]: "transparent",
50
- [getCssVar("text-color")]: token.colorTextLightSolid,
51
- [getCssVar("bg-color")]: `var(${getCssVar("solid-bg-color")})`,
52
- [getCssVar("bg-color-hover")]: `var(${getCssVar("solid-bg-color-hover")})`,
53
- [getCssVar("bg-color-active")]: `var(${getCssVar("solid-bg-color-active")})`,
54
- boxShadow: `var(${getCssVar("shadow")})`
58
+ [varName("solid-bg-color")]: varRef("color-base"),
59
+ [varName("solid-bg-color-hover")]: varRef("color-hover"),
60
+ [varName("solid-bg-color-active")]: varRef("color-active"),
61
+ [varName("border-color")]: "transparent",
62
+ [varName("text-color")]: token.colorTextLightSolid,
63
+ [varName("bg-color")]: varRef("solid-bg-color"),
64
+ [varName("bg-color-hover")]: varRef("solid-bg-color-hover"),
65
+ [varName("bg-color-active")]: varRef("solid-bg-color-active"),
66
+ boxShadow: varRef("shadow")
55
67
  },
56
68
  [`&${componentCls}-variant-outlined, &${componentCls}-variant-dashed`]: {
57
- [getCssVar("border-color")]: `var(${getCssVar("color-base")})`,
58
- [getCssVar("border-color-hover")]: `var(${getCssVar("color-hover")})`,
59
- [getCssVar("border-color-active")]: `var(${getCssVar("color-active")})`,
60
- [getCssVar("bg-color")]: `var(${getCssVar("bg-color-container")})`,
61
- [getCssVar("text-color")]: `var(${getCssVar("color-base")})`,
62
- [getCssVar("text-color-hover")]: `var(${getCssVar("color-hover")})`,
63
- [getCssVar("text-color-active")]: `var(${getCssVar("color-active")})`,
64
- boxShadow: `var(${getCssVar("shadow")})`
69
+ [varName("border-color")]: varRef("color-base"),
70
+ [varName("border-color-hover")]: varRef("color-hover"),
71
+ [varName("border-color-active")]: varRef("color-active"),
72
+ [varName("bg-color")]: varRef("bg-color-container"),
73
+ [varName("text-color")]: varRef("color-base"),
74
+ [varName("text-color-hover")]: varRef("color-hover"),
75
+ [varName("text-color-active")]: varRef("color-active"),
76
+ boxShadow: varRef("shadow")
65
77
  },
66
78
  [`&${componentCls}-variant-dashed`]: {
67
- [getCssVar("border-style")]: "dashed",
68
- [getCssVar("bg-color-disabled")]: token.dashedBgDisabled
79
+ [varName("border-style")]: "dashed",
80
+ [varName("bg-color-disabled")]: token.dashedBgDisabled
69
81
  },
70
82
  [`&${componentCls}-variant-filled`]: {
71
- [getCssVar("border-color")]: "transparent",
72
- [getCssVar("text-color")]: `var(${getCssVar("color-base")})`,
73
- [getCssVar("bg-color")]: `var(${getCssVar("color-light")})`,
74
- [getCssVar("bg-color-hover")]: `var(${getCssVar("color-light-hover")})`,
75
- [getCssVar("bg-color-active")]: `var(${getCssVar("color-light-active")})`
83
+ [varName("border-color")]: "transparent",
84
+ [varName("text-color")]: varRef("color-base"),
85
+ [varName("bg-color")]: varRef("color-light"),
86
+ [varName("bg-color-hover")]: varRef("color-light-hover"),
87
+ [varName("bg-color-active")]: varRef("color-light-active")
76
88
  },
77
89
  [`&${componentCls}-variant-text, &${componentCls}-variant-link`]: {
78
- [getCssVar("border-color")]: "transparent",
79
- [getCssVar("text-color")]: `var(${getCssVar("color-base")})`,
80
- [getCssVar("text-color-hover")]: `var(${getCssVar("color-hover")})`,
81
- [getCssVar("text-color-active")]: `var(${getCssVar("color-active")})`,
82
- [getCssVar("bg-color")]: "transparent",
83
- [getCssVar("bg-color-hover")]: "transparent",
84
- [getCssVar("bg-color-active")]: "transparent",
90
+ [varName("border-color")]: "transparent",
91
+ [varName("text-color")]: varRef("color-base"),
92
+ [varName("text-color-hover")]: varRef("color-hover"),
93
+ [varName("text-color-active")]: varRef("color-active"),
94
+ [varName("bg-color")]: "transparent",
95
+ [varName("bg-color-hover")]: "transparent",
96
+ [varName("bg-color-active")]: "transparent",
85
97
  [`&:disabled, &${token.componentCls}-disabled`]: {
86
98
  background: "transparent",
87
99
  borderColor: "transparent"
88
100
  }
89
101
  },
90
102
  [`&${componentCls}-variant-text`]: {
91
- [getCssVar("bg-color-hover")]: `var(${getCssVar("color-light")})`,
92
- [getCssVar("bg-color-active")]: `var(${getCssVar("color-light-active")})`
103
+ [varName("bg-color-hover")]: varRef("color-light"),
104
+ [varName("bg-color-active")]: varRef("color-light-active")
93
105
  }
94
106
  },
95
107
  {
96
108
  [`&${componentCls}-variant-link`]: {
97
- [getCssVar("color-base")]: token.colorLink,
98
- [getCssVar("color-hover")]: token.colorLinkHover,
99
- [getCssVar("color-active")]: token.colorLinkActive
109
+ [varName("color-base")]: token.colorLink,
110
+ [varName("color-hover")]: token.colorLinkHover,
111
+ [varName("color-active")]: token.colorLinkActive
100
112
  },
101
113
  [`&${componentCls}-color-primary`]: {
102
- [getCssVar("color-base")]: token.colorPrimary,
103
- [getCssVar("color-hover")]: token.colorPrimaryHover,
104
- [getCssVar("color-active")]: token.colorPrimaryActive,
105
- [getCssVar("color-light")]: token.colorPrimaryBg,
106
- [getCssVar("color-light-hover")]: token.colorPrimaryBgHover,
107
- [getCssVar("color-light-active")]: token.colorPrimaryBorder,
108
- [getCssVar("shadow")]: token.primaryShadow
114
+ [varName("color-base")]: token.colorPrimary,
115
+ [varName("color-hover")]: token.colorPrimaryHover,
116
+ [varName("color-active")]: token.colorPrimaryActive,
117
+ [varName("color-light")]: token.colorPrimaryBg,
118
+ [varName("color-light-hover")]: token.colorPrimaryBgHover,
119
+ [varName("color-light-active")]: token.colorPrimaryBorder,
120
+ [varName("shadow")]: token.primaryShadow
109
121
  },
110
122
  [`&${componentCls}-color-dangerous`]: {
111
- [getCssVar("color-base")]: token.colorError,
112
- [getCssVar("color-hover")]: token.colorErrorHover,
113
- [getCssVar("color-active")]: token.colorErrorActive,
114
- [getCssVar("color-light")]: token.colorErrorBg,
115
- [getCssVar("color-light-hover")]: token.colorErrorBgFilledHover,
116
- [getCssVar("color-light-active")]: token.colorErrorBgActive,
117
- [getCssVar("shadow")]: token.dangerShadow
123
+ [varName("color-base")]: token.colorError,
124
+ [varName("color-hover")]: token.colorErrorHover,
125
+ [varName("color-active")]: token.colorErrorActive,
126
+ [varName("color-light")]: token.colorErrorBg,
127
+ [varName("color-light-hover")]: token.colorErrorBgFilledHover,
128
+ [varName("color-light-active")]: token.colorErrorBgActive,
129
+ [varName("shadow")]: token.dangerShadow
118
130
  },
119
131
  [`&${componentCls}-color-default`]: {
120
- [getCssVar("solid-bg-color")]: token.colorBgSolid,
121
- [getCssVar("solid-bg-color-hover")]: token.colorBgSolidHover,
122
- [getCssVar("solid-bg-color-active")]: token.colorBgSolidActive,
123
- [getCssVar("color-base")]: token.defaultBorderColor,
124
- [getCssVar("color-hover")]: token.defaultHoverBorderColor,
125
- [getCssVar("color-active")]: token.defaultActiveBorderColor,
126
- [getCssVar("color-light")]: token.colorFillTertiary,
127
- [getCssVar("color-light-hover")]: token.colorFillSecondary,
128
- [getCssVar("color-light-active")]: token.colorFill,
129
- [getCssVar("text-color")]: token.colorText,
130
- [getCssVar("text-color-hover")]: token.defaultHoverBorderColor,
131
- [getCssVar("text-color-active")]: token.defaultActiveBorderColor,
132
- [getCssVar("shadow")]: token.defaultShadow,
133
- [`&${componentCls}-variant-solid`]: { [getCssVar("text-color")]: token.solidTextColor },
132
+ [varName("solid-bg-color")]: token.colorBgSolid,
133
+ [varName("solid-bg-color-hover")]: token.colorBgSolidHover,
134
+ [varName("solid-bg-color-active")]: token.colorBgSolidActive,
135
+ [varName("color-base")]: token.defaultBorderColor,
136
+ [varName("color-hover")]: token.defaultHoverBorderColor,
137
+ [varName("color-active")]: token.defaultActiveBorderColor,
138
+ [varName("color-light")]: token.colorFillTertiary,
139
+ [varName("color-light-hover")]: token.colorFillSecondary,
140
+ [varName("color-light-active")]: token.colorFill,
141
+ [varName("text-color")]: token.colorText,
142
+ [varName("text-color-hover")]: token.defaultHoverBorderColor,
143
+ [varName("text-color-active")]: token.defaultActiveBorderColor,
144
+ [varName("shadow")]: token.defaultShadow,
145
+ [`&${componentCls}-variant-solid`]: { [varName("text-color")]: token.solidTextColor },
134
146
  [`&${componentCls}-variant-filled, &${componentCls}-variant-text`]: {
135
- [getCssVar("text-color-hover")]: `var(${getCssVar("text-color")})`,
136
- [getCssVar("text-color-active")]: `var(${getCssVar("text-color")})`
147
+ [varName("text-color-hover")]: varRef("text-color"),
148
+ [varName("text-color-active")]: varRef("text-color")
137
149
  },
138
150
  [`&${componentCls}-background-ghost`]: { [`&${componentCls}-variant-outlined, &${componentCls}-variant-dashed`]: {
139
- [getCssVar("text-color")]: token.defaultGhostColor,
140
- [getCssVar("border-color")]: token.defaultGhostBorderColor
151
+ [varName("text-color")]: token.defaultGhostColor,
152
+ [varName("border-color")]: token.defaultGhostBorderColor
141
153
  } }
142
154
  }
143
155
  },
@@ -150,25 +162,25 @@ const genVariantStyle = (token) => {
150
162
  const activeColor = token[`${colorKey}7`];
151
163
  const shadowColor = token[`${colorKey}ShadowColor`];
152
164
  return { [`&${componentCls}-color-${colorKey}`]: {
153
- [getCssVar("color-base")]: darkColor,
154
- [getCssVar("color-hover")]: hoverColor,
155
- [getCssVar("color-active")]: activeColor,
156
- [getCssVar("color-light")]: lightColor,
157
- [getCssVar("color-light-hover")]: lightHoverColor,
158
- [getCssVar("color-light-active")]: lightActiveColor,
159
- [getCssVar("shadow")]: shadowColor
165
+ [varName("color-base")]: darkColor,
166
+ [varName("color-hover")]: hoverColor,
167
+ [varName("color-active")]: activeColor,
168
+ [varName("color-light")]: lightColor,
169
+ [varName("color-light-hover")]: lightHoverColor,
170
+ [varName("color-light-active")]: lightActiveColor,
171
+ [varName("shadow")]: shadowColor
160
172
  } };
161
173
  }),
162
174
  { [`&:disabled, &${token.componentCls}-disabled`]: {
163
175
  cursor: "not-allowed",
164
176
  borderColor: token.colorBorderDisabled,
165
- background: `var(${getCssVar("bg-color-disabled")})`,
177
+ background: varRef("bg-color-disabled"),
166
178
  color: token.colorTextDisabled,
167
179
  boxShadow: "none"
168
180
  } },
169
181
  { [`&${componentCls}-background-ghost`]: {
170
- [getCssVar("bg-color")]: "transparent",
171
- [getCssVar("shadow")]: "none"
182
+ [varName("bg-color")]: "transparent",
183
+ [varName("shadow")]: "none"
172
184
  } }
173
185
  ] };
174
186
  };
@@ -1,6 +1,6 @@
1
1
  import { useFormItemInputContext, useFormItemInputContextProvider } from "../form/context.js";
2
- import { RadioButton, RadioGroup } from "../radio/index.js";
3
2
  import select_default from "../select/index.js";
3
+ import { RadioButton, RadioGroup } from "../radio/index.js";
4
4
  import { computed, createVNode, defineComponent, mergeProps, ref } from "vue";
5
5
  import { clsx } from "@v-c/util";
6
6
  import { omit } from "es-toolkit";
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
3
3
  import "../_util/hooks/index.js";
4
4
  import { locale } from "../date-picker/locale/en_US.js";
5
5
  import "./locale/en_US.js";
6
- import * as vue297 from "vue";
6
+ import * as vue239 from "vue";
7
7
  import { SlotsType } from "vue";
8
8
  import { GenerateConfig } from "@v-c/picker/generate/index";
9
9
 
@@ -82,8 +82,8 @@ interface CalendarEmits<DateType = AnyObject> {
82
82
  'select': (date: DateType, selectInfo: SelectInfo) => void;
83
83
  [key: string]: (...args: any[]) => void;
84
84
  }
85
- declare function generateCalendar<DateType extends AnyObject>(generateConfig: GenerateConfig<DateType>): vue297.DefineSetupFnComponent<CalendarProps<DateType>, CalendarEmits<DateType>, SlotsType<CalendarSlots>, CalendarProps<DateType> & {
85
+ declare function generateCalendar<DateType extends AnyObject>(generateConfig: GenerateConfig<DateType>): vue239.DefineSetupFnComponent<CalendarProps<DateType>, CalendarEmits<DateType>, SlotsType<CalendarSlots>, CalendarProps<DateType> & {
86
86
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
87
- }, vue297.PublicProps>;
87
+ }, vue239.PublicProps>;
88
88
  //#endregion
89
89
  export { CalendarEmits, CalendarMode, CalendarProps, CalendarSlots, generateCalendar };
@@ -1,11 +1,11 @@
1
1
  import { CalendarEmits, CalendarMode, CalendarProps, CalendarSlots, generateCalendar } from "./generateCalendar.js";
2
- import * as vue94 from "vue";
2
+ import * as vue73 from "vue";
3
3
  import { Dayjs } from "dayjs";
4
4
 
5
5
  //#region src/calendar/index.d.ts
6
- declare const Calendar: vue94.DefineSetupFnComponent<CalendarProps<Dayjs>, CalendarEmits<Dayjs>, vue94.SlotsType<CalendarSlots>, CalendarProps<Dayjs> & {
6
+ declare const Calendar: vue73.DefineSetupFnComponent<CalendarProps<Dayjs>, CalendarEmits<Dayjs>, vue73.SlotsType<CalendarSlots>, CalendarProps<Dayjs> & {
7
7
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
8
- }, vue94.PublicProps>;
8
+ }, vue73.PublicProps>;
9
9
  type CalendarType = typeof Calendar & {
10
10
  generateCalendar: typeof generateCalendar;
11
11
  };
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
3
3
  import "../_util/hooks/index.js";
4
4
  import { Tab, TabsSlots } from "../tabs/index.js";
5
5
  import { ComponentBaseProps } from "../config-provider/context.js";
6
- import * as vue301 from "vue";
6
+ import * as vue260 from "vue";
7
7
  import { CSSProperties, SlotsType } from "vue";
8
8
 
9
9
  //#region src/card/Card.d.ts
@@ -60,8 +60,8 @@ interface CardSlots {
60
60
  tabLabelRender?: TabsSlots['labelRender'];
61
61
  tabBarExtraContent?: () => any;
62
62
  }
63
- declare const Card: vue301.DefineSetupFnComponent<CardProps, CardEmits, SlotsType<CardSlots>, CardProps & {
63
+ declare const Card: vue260.DefineSetupFnComponent<CardProps, CardEmits, SlotsType<CardSlots>, CardProps & {
64
64
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
65
- }, vue301.PublicProps>;
65
+ }, vue260.PublicProps>;
66
66
  //#endregion
67
67
  export { Card, CardEmits, CardProps, CardSize, CardSlots, CardTabListType };
@@ -1,10 +1,10 @@
1
- import * as vue303 from "vue";
1
+ import * as vue262 from "vue";
2
2
 
3
3
  //#region src/card/CardGrid.d.ts
4
4
  interface CardGridProps {
5
5
  prefixCls?: string;
6
6
  hoverable?: boolean;
7
7
  }
8
- declare const CardGrid: vue303.DefineSetupFnComponent<CardGridProps, {}, {}, CardGridProps & {}, vue303.PublicProps>;
8
+ declare const CardGrid: vue262.DefineSetupFnComponent<CardGridProps, {}, {}, CardGridProps & {}, vue262.PublicProps>;
9
9
  //#endregion
10
10
  export { CardGrid, CardGridProps };
@@ -1,7 +1,7 @@
1
1
  import { EmptyEmit, VueNode } from "../_util/type.js";
2
2
  import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
3
3
  import "../_util/hooks/index.js";
4
- import * as vue299 from "vue";
4
+ import * as vue258 from "vue";
5
5
  import { SlotsType } from "vue";
6
6
 
7
7
  //#region src/card/CardMeta.d.ts
@@ -22,8 +22,8 @@ interface CardMetaSlots {
22
22
  description?: () => any;
23
23
  default?: () => any;
24
24
  }
25
- declare const CardMeta: vue299.DefineSetupFnComponent<CardMetaProps, EmptyEmit, SlotsType<CardMetaSlots>, CardMetaProps & {
25
+ declare const CardMeta: vue258.DefineSetupFnComponent<CardMetaProps, EmptyEmit, SlotsType<CardMetaSlots>, CardMetaProps & {
26
26
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
27
- }, vue299.PublicProps>;
27
+ }, vue258.PublicProps>;
28
28
  //#endregion
29
29
  export { CardMeta, CardMetaProps };
@@ -1,6 +1,6 @@
1
1
  import { VueNode } from "../_util/type.js";
2
2
  import { ComponentBaseProps } from "../config-provider/context.js";
3
- import * as vue97 from "vue";
3
+ import * as vue76 from "vue";
4
4
  import { SlotsType } from "vue";
5
5
  import { SlickProps } from "@v-c/slick";
6
6
 
@@ -45,8 +45,8 @@ interface CarouselRef {
45
45
  autoPlay: (playType?: 'update' | 'leave' | 'blur') => void;
46
46
  innerSlider: any;
47
47
  }
48
- declare const Carousel: vue97.DefineSetupFnComponent<CarouselProps, CarouselEmits, SlotsType<CarouselSlots>, CarouselProps & {
48
+ declare const Carousel: vue76.DefineSetupFnComponent<CarouselProps, CarouselEmits, SlotsType<CarouselSlots>, CarouselProps & {
49
49
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
50
- }, vue97.PublicProps>;
50
+ }, vue76.PublicProps>;
51
51
  //#endregion
52
52
  export { Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots };
@@ -1,5 +1,5 @@
1
1
  import { CascaderProps as CascaderProps$1 } from "./index.js";
2
- import * as vue99 from "vue";
2
+ import * as vue86 from "vue";
3
3
  import { SlotsType } from "vue";
4
4
  import { CascaderProps, DefaultOptionType } from "@v-c/cascader";
5
5
 
@@ -16,8 +16,8 @@ interface CascaderPanelSlots {
16
16
  notFoundContent?: () => any;
17
17
  optionRender?: (option: DefaultOptionType) => any;
18
18
  }
19
- declare const CascaderPanel: vue99.DefineSetupFnComponent<CascaderPanelProps<DefaultOptionType, string, boolean>, CascaderPanelEmits, SlotsType<CascaderPanelSlots>, CascaderPanelProps<DefaultOptionType, string, boolean> & {
19
+ declare const CascaderPanel: vue86.DefineSetupFnComponent<CascaderPanelProps<DefaultOptionType, string, boolean>, CascaderPanelEmits, SlotsType<CascaderPanelSlots>, CascaderPanelProps<DefaultOptionType, string, boolean> & {
20
20
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
21
- }, vue99.PublicProps>;
21
+ }, vue86.PublicProps>;
22
22
  //#endregion
23
23
  export { CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots };