antdv-next 1.5.6 → 1.6.0

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 (159) hide show
  1. package/dist/_util/PurePanel.js +17 -14
  2. package/dist/_util/fallbackProp.d.ts +13 -0
  3. package/dist/_util/fallbackProp.js +15 -0
  4. package/dist/_util/hooks/useAllowClear.d.ts +19 -0
  5. package/dist/_util/hooks/useAllowClear.js +16 -0
  6. package/dist/_util/hooks/useMergeSemantic.js +3 -2
  7. package/dist/_util/omitUndefined.d.ts +13 -0
  8. package/dist/_util/omitUndefined.js +20 -0
  9. package/dist/_util/statusUtils.d.ts +1 -1
  10. package/dist/_util/vueNode.d.ts +2 -6
  11. package/dist/_util/wave/index.js +4 -2
  12. package/dist/_util/wave/style.d.ts +5 -1
  13. package/dist/_util/wave/useWave.d.ts +2 -1
  14. package/dist/_util/wave/useWave.js +4 -3
  15. package/dist/affix/style/index.d.ts +5 -1
  16. package/dist/alert/Alert.d.ts +6 -2
  17. package/dist/alert/Alert.js +131 -128
  18. package/dist/alert/style/index.d.ts +4 -1
  19. package/dist/alert/style/index.js +9 -6
  20. package/dist/anchor/style/index.d.ts +5 -1
  21. package/dist/antd-with-locales.esm.js +18709 -16277
  22. package/dist/antd-with-locales.js +80 -80
  23. package/dist/antd.css +1 -1
  24. package/dist/antd.esm.js +17119 -14687
  25. package/dist/antd.js +80 -80
  26. package/dist/app/style/index.d.ts +5 -1
  27. package/dist/avatar/style/index.d.ts +5 -1
  28. package/dist/badge/index.js +1 -1
  29. package/dist/badge/style/index.d.ts +5 -1
  30. package/dist/badge/style/index.js +2 -9
  31. package/dist/badge/style/ribbon.d.ts +5 -1
  32. package/dist/border-beam/style/index.d.ts +5 -1
  33. package/dist/breadcrumb/BreadcrumbItem.js +1 -1
  34. package/dist/breadcrumb/style/index.d.ts +5 -1
  35. package/dist/button/style/index.d.ts +5 -1
  36. package/dist/calendar/style/index.d.ts +4 -1
  37. package/dist/card/Card.js +1 -1
  38. package/dist/card/style/index.d.ts +5 -1
  39. package/dist/carousel/index.js +1 -1
  40. package/dist/carousel/style/index.d.ts +5 -1
  41. package/dist/carousel/style/index.js +1 -1
  42. package/dist/cascader/index.js +3 -2
  43. package/dist/cascader/style/index.d.ts +5 -1
  44. package/dist/cascader/style/panel.d.ts +5 -1
  45. package/dist/checkbox/style/index.d.ts +4 -1
  46. package/dist/collapse/style/index.d.ts +4 -1
  47. package/dist/color-picker/ColorPicker.js +7 -11
  48. package/dist/color-picker/style/index.d.ts +5 -1
  49. package/dist/config-provider/context.d.ts +16 -21
  50. package/dist/config-provider/context.js +32 -38
  51. package/dist/config-provider/define.d.ts +3 -1
  52. package/dist/config-provider/hooks/useCSSVarCls.d.ts +3 -0
  53. package/dist/config-provider/hooks/useCSSVarCls.js +4 -3
  54. package/dist/config-provider/index.d.ts +2 -2
  55. package/dist/config-provider/index.js +24 -1
  56. package/dist/date-picker/generatePicker/generateRangePicker.js +10 -3
  57. package/dist/date-picker/generatePicker/generateSinglePicker.js +13 -5
  58. package/dist/date-picker/generatePicker/useComponents.d.ts +3 -3
  59. package/dist/date-picker/style/index.d.ts +5 -1
  60. package/dist/date-picker/util.d.ts +8 -12
  61. package/dist/date-picker/util.js +14 -7
  62. package/dist/descriptions/Cell.js +80 -75
  63. package/dist/descriptions/Row.js +14 -11
  64. package/dist/descriptions/hooks/useItems.d.ts +6 -6
  65. package/dist/descriptions/style/index.d.ts +5 -1
  66. package/dist/divider/style/index.d.ts +5 -1
  67. package/dist/drawer/DrawerPanel.js +6 -6
  68. package/dist/drawer/index.d.ts +0 -2
  69. package/dist/drawer/index.js +0 -1
  70. package/dist/drawer/style/index.d.ts +5 -1
  71. package/dist/dropdown/dropdown.js +2 -1
  72. package/dist/dropdown/style/index.d.ts +5 -1
  73. package/dist/empty/style/index.d.ts +5 -1
  74. package/dist/flex/index.js +1 -1
  75. package/dist/flex/style/index.d.ts +5 -1
  76. package/dist/float-button/FloatButtonGroup.js +1 -1
  77. package/dist/float-button/style/index.d.ts +5 -1
  78. package/dist/form/FormItem/index.js +36 -16
  79. package/dist/form/context.d.ts +1 -1
  80. package/dist/form/hooks/useVariant.d.ts +1 -1
  81. package/dist/form/style/index.d.ts +5 -1
  82. package/dist/grid/style/index.d.ts +5 -2
  83. package/dist/image/hooks/usePreviewConfig.d.ts +9 -9
  84. package/dist/image/style/index.d.ts +4 -1
  85. package/dist/input/style/index.d.ts +5 -2
  86. package/dist/input/style/otp.d.ts +5 -1
  87. package/dist/input/style/search.d.ts +5 -1
  88. package/dist/input/style/textarea.d.ts +5 -1
  89. package/dist/input-number/style/index.d.ts +5 -1
  90. package/dist/layout/style/index.d.ts +5 -1
  91. package/dist/layout/style/sider.d.ts +5 -1
  92. package/dist/listy/style/index.d.ts +5 -1
  93. package/dist/locale/useLocale.d.ts +1 -1
  94. package/dist/masonry/style/index.d.ts +4 -1
  95. package/dist/mentions/index.js +1 -1
  96. package/dist/mentions/style/index.d.ts +5 -1
  97. package/dist/menu/MenuItem.js +2 -1
  98. package/dist/message/style/index.d.ts +5 -1
  99. package/dist/modal/style/index.d.ts +3 -1
  100. package/dist/notification/style/index.d.ts +4 -1
  101. package/dist/package.js +1 -1
  102. package/dist/pagination/style/index.d.ts +5 -1
  103. package/dist/popconfirm/style/index.d.ts +5 -1
  104. package/dist/popover/index.js +4 -3
  105. package/dist/popover/style/index.d.ts +5 -1
  106. package/dist/progress/style/index.d.ts +5 -1
  107. package/dist/qrcode/index.js +0 -21
  108. package/dist/qrcode/interface.d.ts +1 -1
  109. package/dist/qrcode/style/index.d.ts +5 -1
  110. package/dist/radio/style/index.d.ts +5 -1
  111. package/dist/rate/style/index.d.ts +5 -1
  112. package/dist/result/style/index.d.ts +5 -1
  113. package/dist/segmented/style/index.d.ts +5 -1
  114. package/dist/select/index.js +2 -2
  115. package/dist/select/style/index.d.ts +5 -1
  116. package/dist/skeleton/style/index.d.ts +5 -1
  117. package/dist/slider/style/index.d.ts +5 -1
  118. package/dist/space/Compact.d.ts +1 -1
  119. package/dist/space/style/addon.d.ts +5 -1
  120. package/dist/space/style/compact.d.ts +5 -1
  121. package/dist/space/style/index.d.ts +5 -1
  122. package/dist/spin/style/index.d.ts +5 -1
  123. package/dist/splitter/style/index.d.ts +5 -1
  124. package/dist/statistic/style/index.d.ts +5 -1
  125. package/dist/steps/style/index.d.ts +5 -1
  126. package/dist/switch/style/index.d.ts +5 -1
  127. package/dist/table/InternalTable.js +52 -48
  128. package/dist/table/hooks/useSelection.js +19 -6
  129. package/dist/table/style/index.d.ts +5 -1
  130. package/dist/table/style/selection.js +1 -1
  131. package/dist/table/util.d.ts +1 -1
  132. package/dist/tabs/style/index.d.ts +5 -1
  133. package/dist/tag/CheckableTagGroup.d.ts +2 -2
  134. package/dist/tag/hooks/useColor.d.ts +1 -1
  135. package/dist/tag/style/index.d.ts +5 -1
  136. package/dist/theme/context.js +2 -1
  137. package/dist/theme/useToken.d.ts +6 -2
  138. package/dist/theme/useToken.js +46 -14
  139. package/dist/theme/util/genStyleUtils.d.ts +13 -3
  140. package/dist/theme/util/genStyleUtils.js +42 -28
  141. package/dist/timeline/style/index.d.ts +5 -1
  142. package/dist/timeline/useItems.d.ts +2 -2
  143. package/dist/timeline/useItems.js +1 -1
  144. package/dist/tooltip/index.js +1 -1
  145. package/dist/tooltip/style/index.d.ts +2 -2
  146. package/dist/tour/style/index.d.ts +5 -1
  147. package/dist/transfer/Transfer.js +2 -0
  148. package/dist/transfer/style/index.d.ts +5 -1
  149. package/dist/tree/DirectoryTree.js +1 -1
  150. package/dist/tree/style/index.d.ts +4 -1
  151. package/dist/tree-select/index.js +1 -1
  152. package/dist/tree-select/style/index.d.ts +2 -2
  153. package/dist/typography/style/index.d.ts +5 -1
  154. package/dist/upload/style/index.d.ts +5 -1
  155. package/dist/version/token.json +1 -1
  156. package/global.d.ts +5 -0
  157. package/package.json +11 -11
  158. package/web-tags.json +5007 -3018
  159. package/web-types.json +12961 -7217
@@ -1,8 +1,12 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/app/style/index.d.ts
4
8
  interface ComponentToken {}
5
9
  declare const prepareComponentToken: GetDefaultToken<'App'>;
6
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
10
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
7
11
  //#endregion
8
12
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/avatar/style/index.d.ts
4
8
  interface ComponentToken {
@@ -64,6 +68,6 @@ interface ComponentToken {
64
68
  groupBorderColor: string;
65
69
  }
66
70
  declare const prepareComponentToken: GetDefaultToken<'Avatar'>;
67
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
71
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
68
72
  //#endregion
69
73
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -65,7 +65,7 @@ const InternalBadge = /* @__PURE__ */ defineComponent((props, { slots, attrs, ex
65
65
  const childrenNodes = computed(() => filterEmpty(slots.default?.() ?? []));
66
66
  const hasTextSlot = computed(() => textNodes.value.length > 0);
67
67
  const showStatusTextNode = computed(() => !isHidden.value && (hasTextSlot.value || (props.text === 0 ? props.showZero : !!props.text && props.text !== true)));
68
- const isStatusBadge = computed(() => Boolean(!childrenNodes.value.length && hasStatus.value && (hasTextSlot.value || !!props.text || hasStatusValue.value || !ignoreCount.value)));
68
+ const isStatusBadge = computed(() => Boolean(!childrenNodes.value.length && hasStatus.value && (hasTextSlot.value || !!props.text || hasStatusValue.value)));
69
69
  const offsetStyle = computed(() => {
70
70
  if (!props.offset) return;
71
71
  const horizontalOffset = Number.parseFloat(props.offset[0]);
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { FullToken, GenStyleFn, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/badge/style/index.d.ts
4
8
  /** Component only token. Which will handle additional calculation of alias token */
@@ -107,6 +111,6 @@ interface BadgeToken extends FullToken<'Badge'> {
107
111
  }
108
112
  declare function prepareToken(token: Parameters<GenStyleFn<'Badge'>>[0]): BadgeToken;
109
113
  declare const prepareComponentToken: GetDefaultToken<'Badge'>;
110
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
114
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
111
115
  //#endregion
112
116
  export { BadgeToken, ComponentToken, _default as default, prepareComponentToken, prepareToken };
@@ -202,15 +202,8 @@ const genSharedBadgeStyle = (token) => {
202
202
  height: indicatorHeight,
203
203
  transition: `all ${token.motionDurationSlow} ${token.motionEaseOutBack}`,
204
204
  WebkitTransformStyle: "preserve-3d",
205
- WebkitBackfaceVisibility: "hidden",
206
- [`> p${numberPrefixCls}-only-unit`]: {
207
- height: indicatorHeight,
208
- margin: 0,
209
- WebkitTransformStyle: "preserve-3d",
210
- WebkitBackfaceVisibility: "hidden"
211
- }
212
- },
213
- [`${numberPrefixCls}-symbol`]: { verticalAlign: "top" }
205
+ WebkitBackfaceVisibility: "hidden"
206
+ }
214
207
  },
215
208
  "&-rtl": {
216
209
  direction: "rtl",
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
4
+ import "../../theme/interface/index.js";
1
5
  //#region src/badge/style/ribbon.d.ts
2
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
6
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
3
7
  //#endregion
4
8
  export { _default as default };
@@ -1,5 +1,9 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
4
+ import "../../theme/interface/index.js";
1
5
  //#region src/border-beam/style/index.d.ts
2
6
  type ComponentToken = object;
3
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
7
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
4
8
  //#endregion
5
9
  export { ComponentToken, _default as default };
@@ -32,7 +32,7 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
32
32
  (function() {
33
33
  return mergedLabel;
34
34
  })();
35
- mergedLabel = createVNode("a", { "href": `${href}${path}` }, [mergedLabel]);
35
+ mergedLabel = createVNode("a", { "href": `${href ?? ""}${path}` }, [mergedLabel]);
36
36
  }
37
37
  return {
38
38
  ...itemProps,
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/breadcrumb/style/index.d.ts
4
8
  interface ComponentToken {
@@ -39,6 +43,6 @@ interface ComponentToken {
39
43
  separatorColor: string;
40
44
  }
41
45
  declare const prepareComponentToken: GetDefaultToken<'Breadcrumb'>;
42
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
46
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
43
47
  //#endregion
44
48
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -1,5 +1,9 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
1
3
  import { ComponentToken } from "./token.js";
4
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
5
+ import "../../theme/interface/index.js";
2
6
  //#region src/button/style/index.d.ts
3
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
7
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
4
8
  //#endregion
5
9
  export { type ComponentToken, _default as default };
@@ -1,5 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
1
3
  import { PanelComponentToken, PickerPanelToken } from "../../date-picker/style/token.js";
2
4
  import "../../date-picker/style/index.js";
5
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
3
6
  import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
4
7
  import { GenerateStyle } from "../../theme/interface/index.js";
5
8
  import "../../theme/internal.js";
@@ -61,6 +64,6 @@ interface CalendarToken extends FullToken<'Calendar'>, PickerPanelToken, PanelCo
61
64
  }
62
65
  declare const genCalendarStyles: GenerateStyle<CalendarToken, CSSObject>;
63
66
  declare const prepareComponentToken: GetDefaultToken<'Calendar'>;
64
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
67
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
65
68
  //#endregion
66
69
  export { ComponentToken, _default as default, genCalendarStyles, prepareComponentToken };
package/dist/card/Card.js CHANGED
@@ -95,7 +95,7 @@ const Card = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
95
95
  const hasActiveTabKey = activeTabKey !== void 0;
96
96
  const extraProps = {
97
97
  ...tabProps,
98
- [hasActiveTabKey ? "activeKey" : "defaultActiveKey"]: hasActiveTabKey ? activeTabKey : defaultActiveTabKey,
98
+ [hasActiveTabKey ? "activeKey" : "defaultActiveKey"]: hasActiveTabKey ? activeTabKey : defaultActiveTabKey ?? tabProps?.defaultActiveKey,
99
99
  tabBarExtraContent: getSlotPropsFnRun(slots, props, "tabBarExtraContent")
100
100
  };
101
101
  let head;
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/card/style/index.d.ts
4
8
  interface ComponentToken {
@@ -69,6 +73,6 @@ interface ComponentToken {
69
73
  extraColor: string;
70
74
  }
71
75
  declare const prepareComponentToken: GetDefaultToken<'Card'>;
72
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
76
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
73
77
  //#endregion
74
78
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -77,7 +77,7 @@ const Carousel = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
77
77
  innerSlider: computed(() => slickRef.value?.innerSlider)
78
78
  });
79
79
  const count = shallowRef(0);
80
- const isRTL = computed(() => (props?.rtl ?? direction.value === "rtl") && !props.vertical);
80
+ const isRTL = computed(() => (props?.rtl ?? direction.value === "rtl") && !mergedVertical.value);
81
81
  const syncInitialSlide = () => {
82
82
  const { initialSlide = 0 } = props;
83
83
  if (count.value > 0) {
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/carousel/style/index.d.ts
4
8
  interface ComponentToken {
@@ -42,6 +46,6 @@ interface ComponentToken {
42
46
  }
43
47
  declare const DotDuration = "--dot-duration";
44
48
  declare const prepareComponentToken: GetDefaultToken<'Carousel'>;
45
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
49
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
46
50
  //#endregion
47
51
  export { ComponentToken, DotDuration, _default as default, prepareComponentToken };
@@ -275,7 +275,7 @@ const genCarouselVerticalStyle = (token) => {
275
275
  };
276
276
  const genCarouselRtlStyle = (token) => {
277
277
  const { componentCls } = token;
278
- return [{ [`${componentCls}-rtl`]: { direction: "rtl" } }, { [`${componentCls}-vertical`]: { ".slick-dots": { [`${componentCls}-rtl&`]: { flexDirection: "column" } } } }];
278
+ return [{ [`${componentCls}-rtl`]: { direction: "rtl" } }];
279
279
  };
280
280
  const prepareComponentToken = (token) => {
281
281
  const dotActiveWidth = 24;
@@ -174,11 +174,12 @@ const InternalCascader = /* @__PURE__ */ defineComponent((props, { attrs, emit,
174
174
  showSuffixIcon,
175
175
  suffixIcon: mergedSuffixIcon,
176
176
  removeIcon: rest.removeIcon ?? contextRemoveIcon.value,
177
- clearIcon: rest.clearIcon ?? contextClearIcon.value,
177
+ clearIcon: rest.clearIcon,
178
178
  prefixCls: prefixCls.value,
179
179
  componentName: "Cascader"
180
180
  });
181
- const mergedAllowClear = (allowClear ?? true) === true ? { clearIcon } : allowClear;
181
+ const mergedClearIcon = rest.clearIcon ?? contextClearIcon.value ?? clearIcon;
182
+ const mergedAllowClear = (allowClear ?? true) === true ? { clearIcon: mergedClearIcon } : allowClear;
182
183
  const mergedPopupRender = usePopupRender((slots.popupRender ?? popupRender) || dropdownRender);
183
184
  const mergedPopupMenuColumnStyle = popupMenuColumnStyle ?? dropdownMenuColumnStyle;
184
185
  const customExpandIcon = getSlotPropsFnRun(slots, props, "expandIcon", false) ?? expandIcon;
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { FullToken, GlobalToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  import { CSSProperties } from "vue";
4
8
  //#region src/cascader/style/index.d.ts
@@ -46,6 +50,6 @@ interface ComponentToken {
46
50
  }
47
51
  type CascaderToken = FullToken<'Cascader'>;
48
52
  declare function prepareComponentToken(token: GlobalToken): ComponentToken;
49
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
53
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
50
54
  //#endregion
51
55
  export { CascaderToken, ComponentToken, _default as default, prepareComponentToken };
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
4
+ import "../../theme/interface/index.js";
1
5
  //#region src/cascader/style/panel.d.ts
2
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => import("vue").Ref<string, string>;
6
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => import("vue").Ref<string, string>;
3
7
  //#endregion
4
8
  export { _default as default };
@@ -1,3 +1,6 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { FullToken } from "../../theme/interface/cssinjs-utils.js";
2
5
  import { GenerateStyle } from "../../theme/interface/index.js";
3
6
  import "../../theme/internal.js";
@@ -21,6 +24,6 @@ interface CheckboxToken extends FullToken<'Checkbox'> {
21
24
  }
22
25
  declare const genCheckboxStyle: GenerateStyle<CheckboxToken>;
23
26
  declare function getStyle(prefixCls: string, token: FullToken<'Checkbox'>): import("@antdv-next/cssinjs").CSSInterpolation;
24
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
27
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
25
28
  //#endregion
26
29
  export { ComponentToken, _default as default, genCheckboxStyle, getStyle };
@@ -1,3 +1,6 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
2
5
  import { GenerateStyle } from "../../theme/interface/index.js";
3
6
  import "../../theme/internal.js";
@@ -66,6 +69,6 @@ type CollapseToken = FullToken<'Collapse'> & {
66
69
  };
67
70
  declare const genBaseStyle: GenerateStyle<CollapseToken, CSSObject>;
68
71
  declare const prepareComponentToken: GetDefaultToken<'Collapse'>;
69
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
72
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
70
73
  //#endregion
71
74
  export { ComponentToken, _default as default, genBaseStyle, prepareComponentToken };
@@ -118,11 +118,7 @@ const ColorPicker = /* @__PURE__ */ defineComponent((props, { slots, expose, emi
118
118
  const rootCls = useCSSVarCls(prefixCls);
119
119
  const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
120
120
  const handleClear = () => {
121
- const cleared = new AggregationColor("");
122
- setColor(cleared);
123
121
  emit("clear");
124
- emit("change", cleared, cleared.toCssString());
125
- emit("update:value", valueFormat.value ? formatColorValue(cleared, valueFormat.value) : cleared.toCssString());
126
122
  };
127
123
  expose({
128
124
  focus: () => {},
@@ -130,7 +126,7 @@ const ColorPicker = /* @__PURE__ */ defineComponent((props, { slots, expose, emi
130
126
  });
131
127
  return () => {
132
128
  const { rootClass, trigger, placement, getPopupContainer, autoAdjustOverflow, destroyOnHidden } = props;
133
- const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
129
+ const { className, style, restAttrs } = getAttrStyleAndClass(attrs, void 0, props);
134
130
  const children = filterEmpty(slots?.default?.() ?? []);
135
131
  const showText = slots?.showText ?? props?.showText;
136
132
  const panelRender = slots?.panelRender ?? props?.panelRender;
@@ -151,8 +147,7 @@ const ColorPicker = /* @__PURE__ */ defineComponent((props, { slots, expose, emi
151
147
  autoAdjustOverflow,
152
148
  destroyOnHidden
153
149
  };
154
- const mergedShowText = showText ? typeof showText === "function" ? (color) => showText({ color }) : showText : void 0;
155
- const panelNode = createVNode(ContextIsolator, { "form": true }, { default: () => [createVNode(ColorPickerPanel_default, mergeProps(restAttrs, {
150
+ const panelNode = createVNode(ContextIsolator, { "form": true }, { default: () => [createVNode(ColorPickerPanel_default, mergeProps({
156
151
  "prefixCls": prefixCls.value,
157
152
  "presets": presets.value,
158
153
  "panelRender": panelRender,
@@ -176,19 +171,20 @@ const ColorPicker = /* @__PURE__ */ defineComponent((props, { slots, expose, emi
176
171
  "classes": mergedClassNames.value,
177
172
  "styles": mergedStyles.value
178
173
  }), null)] });
179
- const triggerNode = children.length ? children : createVNode(ColorTrigger_default, {
174
+ const triggerNode = children.length ? children : createVNode(ColorTrigger_default, mergeProps({
180
175
  "activeIndex": popupOpen.value ? activeIndex.value : -1,
181
176
  "open": popupOpen.value,
182
177
  "className": mergedCls,
183
178
  "style": style,
184
179
  "prefixCls": prefixCls.value,
185
180
  "disabled": mergedDisabled.value,
186
- "showText": mergedShowText,
187
- "format": formatValue.value,
181
+ "showText": showText,
182
+ "format": formatValue.value
183
+ }, restAttrs, {
188
184
  "color": mergedColor.value,
189
185
  "classes": mergedClassNames.value,
190
186
  "styles": mergedStyles.value
191
- }, null);
187
+ }), null);
192
188
  return createVNode(Popover, mergeProps({
193
189
  "classes": { root: mergedPopupCls },
194
190
  "styles": {
@@ -1,4 +1,8 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
1
4
  import { FullToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/color-picker/style/index.d.ts
4
8
  interface ComponentToken {}
@@ -59,6 +63,6 @@ declare function genActiveStyle(token: ColorPickerToken, borderColor: string, ou
59
63
  boxShadow: string;
60
64
  outline: number;
61
65
  };
62
- declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
66
+ declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
63
67
  //#endregion
64
68
  export { ColorPickerToken, ComponentToken, _default as default, genActiveStyle };
@@ -90,7 +90,7 @@ import { TreeSelectProps } from "../tree-select/index.js";
90
90
  import { BlockProps } from "../typography/interface.js";
91
91
  import { ButtonProps } from "../button/Button.js";
92
92
  import "../button/index.js";
93
- import { AriaAttributes, CSSProperties, Ref } from "vue";
93
+ import { CSSProperties, Ref } from "vue";
94
94
  import { DerivativeFunc } from "@antdv-next/cssinjs";
95
95
  import { MoreProps } from "@v-c/tabs";
96
96
  //#region src/config-provider/context.d.ts
@@ -232,10 +232,7 @@ type ButtonConfig = ComponentStyleConfig & Pick<ButtonProps, 'classes' | 'styles
232
232
  loadingIcon?: VueNode;
233
233
  };
234
234
  type FlexConfig = ComponentStyleConfig & Pick<FlexProps, 'vertical'>;
235
- type AlertConfig = ComponentStyleConfig & Pick<AlertProps, 'variant' | 'closeIcon' | 'classes' | 'styles'> & {
236
- closable?: boolean | ({
237
- closeIcon?: VueNode;
238
- } & AriaAttributes);
235
+ type AlertConfig = ComponentStyleConfig & Pick<AlertProps, 'variant' | 'closeIcon' | 'closable' | 'classes' | 'styles'> & {
239
236
  successIcon?: VueNode;
240
237
  infoIcon?: VueNode;
241
238
  warningIcon?: VueNode;
@@ -343,9 +340,7 @@ type UploadConfig = ComponentStyleConfig & Pick<UploadProps, 'classes' | 'styles
343
340
  type DatePickerConfig = ComponentStyleConfig & Pick<DatePickerProps, 'classes' | 'styles' | 'variant' | 'suffixIcon' | 'allowClear'> & {
344
341
  clearIcon?: any;
345
342
  };
346
- type RangePickerConfig = ComponentStyleConfig & Pick<RangePickerProps, 'classes' | 'styles' | 'variant' | 'separator' | 'suffixIcon' | 'allowClear'> & {
347
- clearIcon?: any;
348
- };
343
+ type RangePickerConfig = ComponentStyleConfig & Pick<RangePickerProps, 'variant' | 'separator'>;
349
344
  type TimePickerConfig = ComponentStyleConfig & Pick<TimePickerProps, 'classes' | 'styles' | 'variant' | 'suffixIcon' | 'allowClear'> & {
350
345
  clearIcon?: any;
351
346
  };
@@ -481,13 +476,13 @@ declare function useConfig(): Ref<ConfigConsumerProps, ConfigConsumerProps>;
481
476
  */
482
477
  type ConfigRefs<R extends ConfigConsumerProps = ConfigConsumerProps> = { [K in keyof R]?: R[K] extends ((...args: any[]) => any) ? R[K] : R[K] extends object | undefined ? Ref<R[K]> : Ref<R[K]>; };
483
478
  declare function useBaseConfig<K extends string>(suffixCls?: K, props?: ComponentBaseProps): {
484
- result: import("vue").ComputedRef<ResultConfig | undefined>;
485
- modal: import("vue").ComputedRef<ModalConfig | undefined>;
486
- timeline: import("vue").ComputedRef<TimelineConfig | undefined>;
487
- notification: import("vue").ComputedRef<NotificationConfig | undefined>;
479
+ result: Readonly<Ref<ResultConfig | undefined, ResultConfig | undefined>>;
480
+ modal: Readonly<Ref<ModalConfig | undefined, ModalConfig | undefined>>;
481
+ timeline: Readonly<Ref<TimelineConfig | undefined, TimelineConfig | undefined>>;
482
+ notification: Readonly<Ref<NotificationConfig | undefined, NotificationConfig | undefined>>;
488
483
  getPrefixCls: (suffixCls?: string, prefixCls?: string) => string;
489
- prefixCls: import("vue").ComputedRef<string>;
490
- direction: import("vue").ComputedRef<DirectionType>;
484
+ prefixCls: Readonly<Ref<string, string>>;
485
+ direction: Readonly<Ref<DirectionType, DirectionType>>;
491
486
  getPopupContainer: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
492
487
  };
493
488
  /**
@@ -503,16 +498,16 @@ declare function useComponentBaseConfig<T extends keyof ConfigComponentProps, K
503
498
  classes?: any;
504
499
  styles?: any;
505
500
  } & ConfigComponentProps[T] extends (infer T_1) ? { [Key in keyof T_1]-?: Ref<T_1[Key], T_1[Key]>; } : never) & {
506
- direction: import("vue").ComputedRef<DirectionType>;
507
- prefixCls: import("vue").ComputedRef<string>;
508
- rootPrefixCls: import("vue").ComputedRef<string>;
501
+ direction: Readonly<Ref<DirectionType, DirectionType>>;
502
+ prefixCls: Readonly<Ref<string, string>>;
503
+ rootPrefixCls: Readonly<Ref<string, string>>;
509
504
  getPopupContainer: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
510
505
  getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string;
511
506
  getTargetContainer: (() => HTMLElement) | undefined;
512
- virtual: import("vue").ComputedRef<boolean | undefined>;
513
- renderEmpty: import("vue").ComputedRef<RenderEmptyHandler | undefined>;
514
- popupMatchSelectWidth: import("vue").ComputedRef<boolean | undefined>;
515
- popupOverflow: import("vue").ComputedRef<PopupOverflow | undefined>;
507
+ virtual: Readonly<Ref<boolean | undefined, boolean | undefined>>;
508
+ renderEmpty: Readonly<Ref<RenderEmptyHandler | undefined, RenderEmptyHandler | undefined>>;
509
+ popupMatchSelectWidth: Readonly<Ref<boolean | undefined, boolean | undefined>>;
510
+ popupOverflow: Readonly<Ref<PopupOverflow | undefined, PopupOverflow | undefined>>;
516
511
  };
517
512
  //#endregion
518
513
  export { AlertConfig, AnchorStyleConfig, BadgeConfig, BreadcrumbConfig, ButtonConfig, CSPConfig, CalendarConfig, CardConfig, CardMetaConfig, CascaderConfig, CheckboxConfig, CollapseConfig, ColorPickerConfig, ComponentBaseProps, ComponentStyleConfig, ConfigComponentProps, ConfigConsumerProps, ConfigRefs, DatePickerConfig, DescriptionsConfig, DirectionType, DividerConfig, DrawerConfig, DropdownConfig, EmptyConfig, FlexConfig, FloatButtonConfig, FloatButtonGroupConfig, FormConfig, ImageConfig, InputConfig, InputNumberConfig, InputPasswordConfig, InputSearchConfig, ListyConfig, MappingAlgorithm, MasonryConfig, MentionsConfig, MenuConfig, ModalConfig, NotificationConfig, OTPConfig, PaginationConfig, PopconfirmConfig, PopoverConfig, PopupOverflow, ProgressConfig, QRcodeConfig, RadioConfig, RangePickerConfig, ResultConfig, RibbonConfig, SegmentedConfig, SelectConfig, SkeletonConfig, SliderConfig, SpaceConfig, SpinConfig, SplitterConfig, StatisticConfig, StepsConfig, SwitchStyleConfig, TableConfig, TabsConfig, TabsMoreConfig, TagConfig, TextAreaConfig, Theme, ThemeConfig, TimePickerConfig, TimelineConfig, TooltipConfig, TooltipUniqueConfig, TourConfig, TransferConfig, TreeConfig, TreeSelectConfig, TriggerType, TypographyConfig, UploadConfig, Variant, Variants, WaveConfig, defaultIconPrefixCls, defaultPrefixCls, useBaseConfig, useComponentBaseConfig, useComponentConfig, useConfig, useConfigProvider };
@@ -1,4 +1,4 @@
1
- import { computed, inject, provide, ref } from "vue";
1
+ import { computed, inject, provide, ref, toRef } from "vue";
2
2
  //#region src/config-provider/context.ts
3
3
  const defaultPrefixCls = "ant";
4
4
  const defaultIconPrefixCls = "anticon";
@@ -17,26 +17,23 @@ function defaultGetPrefixCls(suffixCls, customizePrefixCls) {
17
17
  if (customizePrefixCls) return customizePrefixCls;
18
18
  return suffixCls ? `ant-${suffixCls}` : "ant";
19
19
  }
20
+ const defaultConfigRef = ref({
21
+ getPrefixCls: defaultGetPrefixCls,
22
+ iconPrefixCls: defaultIconPrefixCls
23
+ });
20
24
  function useConfig() {
21
- return inject(ConfigConsumerKey, ref({
22
- getPrefixCls: defaultGetPrefixCls,
23
- iconPrefixCls: defaultIconPrefixCls
24
- }));
25
+ return inject(ConfigConsumerKey, defaultConfigRef);
25
26
  }
26
27
  function useBaseConfig(suffixCls, props) {
27
28
  const config = useConfig();
28
29
  return {
29
- result: computed(() => config.value?.result),
30
- modal: computed(() => config.value?.modal),
31
- timeline: computed(() => config.value?.timeline),
32
- notification: computed(() => config.value?.notification),
30
+ result: toRef(() => config.value?.result),
31
+ modal: toRef(() => config.value?.modal),
32
+ timeline: toRef(() => config.value?.timeline),
33
+ notification: toRef(() => config.value?.notification),
33
34
  getPrefixCls: (suffixCls, prefixCls) => config.value?.getPrefixCls(suffixCls, prefixCls),
34
- prefixCls: computed(() => {
35
- return config.value?.getPrefixCls(suffixCls, props?.prefixCls);
36
- }),
37
- direction: computed(() => {
38
- return config.value?.direction;
39
- }),
35
+ prefixCls: toRef(() => config.value?.getPrefixCls(suffixCls, props?.prefixCls)),
36
+ direction: toRef(() => config.value?.direction),
40
37
  getPopupContainer: config?.value.getPopupContainer
41
38
  };
42
39
  }
@@ -65,37 +62,34 @@ function useComponentConfig(propName) {
65
62
  }
66
63
  function useComponentBaseConfig(propName, props, keys, suffixCls) {
67
64
  const context = useConfig();
68
- const propValue = computed(() => {
69
- return context.value[propName];
70
- });
71
- const toRefs = (propValues) => {
65
+ const getPropValue = () => context.value[propName];
66
+ const toRefs = (getPropValues) => {
72
67
  const result = {
73
- classes: computed(() => propValues.value?.classes ?? EMPTY_OBJECT),
74
- styles: computed(() => propValues.value?.styles ?? EMPTY_OBJECT),
75
- class: computed(() => propValues.value?.class),
76
- style: computed(() => propValues.value?.style)
68
+ classes: toRef(() => getPropValues()?.classes ?? EMPTY_OBJECT),
69
+ styles: toRef(() => getPropValues()?.styles ?? EMPTY_OBJECT),
70
+ class: toRef(() => getPropValues()?.class),
71
+ style: toRef(() => getPropValues()?.style)
72
+ };
73
+ const addKey = (key) => {
74
+ if (!result[key]) result[key] = toRef(() => getPropValues()?.[key]);
77
75
  };
78
- const __keys = Object.keys(result);
79
- for (const key in propValues.value) if (!__keys.includes(key)) result[key] = computed(() => propValues.value[key]);
80
- if (keys && keys.length) keys.forEach((key) => {
81
- if (!result[key]) result[key] = computed(() => propValues.value?.[key]);
82
- });
76
+ const current = getPropValues();
77
+ if (current) Object.keys(current).forEach(addKey);
78
+ keys?.forEach((key) => addKey(key));
83
79
  return result;
84
80
  };
85
81
  return {
86
- ...toRefs(propValue),
87
- direction: computed(() => context.value.direction),
88
- prefixCls: computed(() => {
89
- return context.value?.getPrefixCls(suffixCls ?? propName, props?.prefixCls);
90
- }),
91
- rootPrefixCls: computed(() => context.value?.getPrefixCls()),
82
+ ...toRefs(getPropValue),
83
+ direction: toRef(() => context.value.direction),
84
+ prefixCls: toRef(() => context.value?.getPrefixCls(suffixCls ?? propName, props?.prefixCls)),
85
+ rootPrefixCls: toRef(() => context.value?.getPrefixCls()),
92
86
  getPopupContainer: context.value.getPopupContainer,
93
87
  getPrefixCls: context.value.getPrefixCls,
94
88
  getTargetContainer: context.value.getTargetContainer,
95
- virtual: computed(() => context.value.virtual),
96
- renderEmpty: computed(() => context.value.renderEmpty),
97
- popupMatchSelectWidth: computed(() => context.value.popupMatchSelectWidth),
98
- popupOverflow: computed(() => context.value.popupOverflow)
89
+ virtual: toRef(() => context.value.virtual),
90
+ renderEmpty: toRef(() => context.value.renderEmpty),
91
+ popupMatchSelectWidth: toRef(() => context.value.popupMatchSelectWidth),
92
+ popupOverflow: toRef(() => context.value.popupOverflow)
99
93
  };
100
94
  }
101
95
  //#endregion
@@ -4,7 +4,7 @@ import { ColumnType } from "../table/interface.js";
4
4
  import "../table/index.js";
5
5
  import { Locale } from "../locale/index.js";
6
6
  import { RenderEmptyHandler } from "./defaultRenderEmpty.js";
7
- import { AlertConfig, AnchorStyleConfig, BadgeConfig, BreadcrumbConfig, ButtonConfig, CSPConfig, CalendarConfig, CardConfig, CascaderConfig, CheckboxConfig, CollapseConfig, ColorPickerConfig, ComponentStyleConfig, DatePickerConfig, DescriptionsConfig, DirectionType, DividerConfig, DrawerConfig, DropdownConfig, EmptyConfig, FlexConfig, FloatButtonConfig, FloatButtonGroupConfig, FormConfig, ImageConfig, InputConfig, InputNumberConfig, InputPasswordConfig, InputSearchConfig, ListyConfig, MasonryConfig, MentionsConfig, MenuConfig, ModalConfig, NotificationConfig, OTPConfig, PaginationConfig, PopconfirmConfig, PopoverConfig, PopupOverflow, ProgressConfig, RadioConfig, RangePickerConfig, ResultConfig, SegmentedConfig, SelectConfig, SkeletonConfig, SliderConfig, SpaceConfig, SpinConfig, SplitterConfig, StatisticConfig, StepsConfig, SwitchStyleConfig, TableConfig, TabsConfig, TagConfig, TextAreaConfig, ThemeConfig, TimePickerConfig, TimelineConfig, TooltipConfig, TourConfig, TransferConfig, TreeConfig, TreeSelectConfig, TypographyConfig, UploadConfig, Variant, WaveConfig } from "./context.js";
7
+ import { AlertConfig, AnchorStyleConfig, BadgeConfig, BreadcrumbConfig, ButtonConfig, CSPConfig, CalendarConfig, CardConfig, CardMetaConfig, CascaderConfig, CheckboxConfig, CollapseConfig, ColorPickerConfig, ComponentStyleConfig, DatePickerConfig, DescriptionsConfig, DirectionType, DividerConfig, DrawerConfig, DropdownConfig, EmptyConfig, FlexConfig, FloatButtonConfig, FloatButtonGroupConfig, FormConfig, ImageConfig, InputConfig, InputNumberConfig, InputPasswordConfig, InputSearchConfig, ListyConfig, MasonryConfig, MentionsConfig, MenuConfig, ModalConfig, NotificationConfig, OTPConfig, PaginationConfig, PopconfirmConfig, PopoverConfig, PopupOverflow, ProgressConfig, RadioConfig, RangePickerConfig, ResultConfig, RibbonConfig, SegmentedConfig, SelectConfig, SkeletonConfig, SliderConfig, SpaceConfig, SpinConfig, SplitterConfig, StatisticConfig, StepsConfig, SwitchStyleConfig, TableConfig, TabsConfig, TagConfig, TextAreaConfig, ThemeConfig, TimePickerConfig, TimelineConfig, TooltipConfig, TourConfig, TransferConfig, TreeConfig, TreeSelectConfig, TypographyConfig, UploadConfig, Variant, WaveConfig } from "./context.js";
8
8
  //#region src/config-provider/define.d.ts
9
9
  interface ConfigProviderProps {
10
10
  getTargetContainer?: () => HTMLElement | Window;
@@ -89,6 +89,7 @@ interface ConfigProviderProps {
89
89
  badge?: BadgeConfig;
90
90
  radio?: RadioConfig;
91
91
  rate?: ComponentStyleConfig;
92
+ ribbon?: RibbonConfig;
92
93
  switch?: SwitchStyleConfig;
93
94
  transfer?: TransferConfig;
94
95
  avatar?: ComponentStyleConfig;
@@ -96,6 +97,7 @@ interface ConfigProviderProps {
96
97
  tag?: TagConfig;
97
98
  table?: TableConfig;
98
99
  card?: CardConfig;
100
+ cardMeta?: CardMetaConfig;
99
101
  tabs?: TabsConfig;
100
102
  timeline?: TimelineConfig;
101
103
  timePicker?: TimePickerConfig;
@@ -3,6 +3,9 @@ import { Ref } from "vue";
3
3
  /**
4
4
  * This hook is only for cssVar to add root className for components.
5
5
  * If root ClassName is needed, this hook could be refactored with `-root`
6
+ *
7
+ * antd 6 always runs with CSS variables enabled (`useToken()` always yields a
8
+ * cssVar config), so the class is unconditional and no token lookup is needed.
6
9
  * @param prefixCls
7
10
  */
8
11
  declare function useCSSVarCls(prefixCls: Ref<string>): import("vue").ComputedRef<string>;