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
@@ -86,7 +86,8 @@ const Dropdown = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs })
86
86
  });
87
87
  return () => {
88
88
  const children = filterEmpty(slots?.default?.());
89
- const child = children.length === 1 ? isVNode(children[0]) ? children[0] : createVNode("span", null, [children]) : createVNode("span", null, [children]);
89
+ const firstChild = children[0];
90
+ const child = children.length === 1 && isVNode(firstChild) && typeof firstChild.type !== "symbol" ? firstChild : createVNode("span", null, [children]);
90
91
  const { menu, popupRender, mouseEnterDelay, mouseLeaveDelay, arrow, getPopupContainer, rootClass, destroyOnHidden } = props;
91
92
  const mergedPopupRender = slots?.popupRender ?? popupRender;
92
93
  const popupTrigger = createVNode(child, {
@@ -1,6 +1,10 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
1
3
  import { ArrowToken } from "../../style/roundedArrow.js";
2
4
  import { ArrowOffsetToken } from "../../style/placementArrow.js";
5
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
3
6
  import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
7
+ import "../../theme/interface/index.js";
4
8
  import "../../theme/internal.js";
5
9
  import { CSSProperties } from "vue";
6
10
  //#region src/dropdown/style/index.d.ts
@@ -38,6 +42,6 @@ interface DropdownToken extends FullToken<'Dropdown'> {
38
42
  menuCls: string;
39
43
  }
40
44
  declare const prepareComponentToken: GetDefaultToken<'Dropdown'>;
41
- 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>];
45
+ 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>];
42
46
  //#endregion
43
47
  export { ComponentToken, DropdownToken, _default as default, prepareComponentToken };
@@ -1,6 +1,10 @@
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/empty/style/index.d.ts
2
6
  /** Component only token. Which will handle additional calculation of alias token */
3
7
  interface ComponentToken {}
4
- 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>];
8
+ 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>];
5
9
  //#endregion
6
10
  export { ComponentToken, _default as default };
@@ -23,7 +23,7 @@ const Flex = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
23
23
  [`${prefixCls.value}-gap-${gap}`]: isPresetSize(gap),
24
24
  [`${prefixCls.value}-vertical`]: mergedVertical
25
25
  });
26
- const mergedStyle = {};
26
+ const mergedStyle = { ...ctxFlex?.style };
27
27
  if (flex) mergedStyle.flex = flex;
28
28
  if (gap && !isPresetSize(gap)) mergedStyle.gap = /\d/.test(`${gap}`) ? `${gap}px` : gap;
29
29
  return createVNode(component, {
@@ -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, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/flex/style/index.d.ts
4
8
  /** Component only token. Which will handle additional calculation of alias token */
@@ -27,6 +31,6 @@ interface FlexToken extends FullToken<'Flex'> {
27
31
  flexGapLG: number;
28
32
  }
29
33
  declare const prepareComponentToken: GetDefaultToken<'Flex'>;
30
- 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>];
34
+ 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>];
31
35
  //#endregion
32
36
  export { ComponentToken, FlexToken, _default as default, prepareComponentToken };
@@ -62,9 +62,9 @@ const FloatButtonGroup = /* @__PURE__ */ defineComponent((props, { slots, attrs,
62
62
  const mergedDisabled = computed(() => props.disabled ?? disabledContext.value);
63
63
  const triggerOpen = (nextOpen) => {
64
64
  if (mergedDisabled.value) return;
65
+ if (open.value === nextOpen) return;
65
66
  emit("update:open", nextOpen);
66
67
  if (props.open !== void 0) return;
67
- if (open.value === nextOpen) return;
68
68
  open.value = nextOpen;
69
69
  emit("openChange", nextOpen);
70
70
  };
@@ -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, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
2
6
  import "../../theme/internal.js";
3
7
  //#region src/float-button/style/index.d.ts
4
8
  /** Component only token. Which will handle additional calculation of alias token */
@@ -30,6 +34,6 @@ type FloatButtonToken = FullToken<'FloatButton'> & {
30
34
  floatButtonInsetInlineEnd: number;
31
35
  };
32
36
  declare const prepareComponentToken: GetDefaultToken<'FloatButton'>;
33
- 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>];
37
+ 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>];
34
38
  //#endregion
35
39
  export { ComponentToken, FloatButtonToken, _default as default, prepareComponentToken };
@@ -63,6 +63,8 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
63
63
  const errors = shallowRef([]);
64
64
  const warnings = shallowRef([]);
65
65
  const validateDisabled = shallowRef(false);
66
+ let validateId = 0;
67
+ let cancelDebounce;
66
68
  const subFieldErrors = shallowRef({});
67
69
  const initialValue = shallowRef(initialValueFormat(formContext.value?.getFieldValue?.(namePath.value)));
68
70
  const getMergedRules = () => {
@@ -118,6 +120,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
118
120
  });
119
121
  if (!filteredRules.length) {
120
122
  if (validateOnly) return Promise.resolve();
123
+ validateId++;
121
124
  errors.value = [];
122
125
  warnings.value = [];
123
126
  updateMeta({
@@ -134,10 +137,20 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
134
137
  validating: true,
135
138
  validated: true
136
139
  });
137
- const promise = validateRules(namePath.value, fieldValue.value, filteredRules, {
140
+ const currentValidateId = validateOnly ? validateId : ++validateId;
141
+ const runRules = () => validateRules(namePath.value, fieldValue.value, filteredRules, {
138
142
  validateMessages: formContext.value?.validateMessages,
139
143
  ...options
140
144
  }, props.validateFirst ?? false, messageVariables.value);
145
+ const validateDebounce = triggerName && !validateOnly ? props.validateDebounce : void 0;
146
+ const promise = validateDebounce ? new Promise((resolve) => {
147
+ cancelDebounce?.();
148
+ const timer = setTimeout(resolve, validateDebounce);
149
+ cancelDebounce = () => {
150
+ clearTimeout(timer);
151
+ resolve();
152
+ };
153
+ }).then(() => currentValidateId === validateId ? runRules() : []) : runRules();
141
154
  if (validateOnly) return promise.catch((e) => e).then((results = []) => {
142
155
  if (results.some(({ rule: { warningOnly }, errors: ruleErrors }) => !warningOnly && ruleErrors.length)) return Promise.reject(results);
143
156
  return results;
@@ -149,17 +162,19 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
149
162
  if (warningOnly) mergedWarnings.push(...ruleErrors);
150
163
  else mergedErrors.push(...ruleErrors);
151
164
  });
152
- errors.value = mergedErrors;
153
- warnings.value = mergedWarnings;
154
- updateMeta({
155
- errors: mergedErrors,
156
- warnings: mergedWarnings,
157
- validating: false,
158
- validated: true,
159
- touched: meta.value.touched
160
- });
161
- formContext.value?.onValidate?.(namePath.value, mergedErrors.length === 0, mergedErrors.length ? mergedErrors : null);
162
- formContext.value?.triggerFieldsChange?.([namePath.value]);
165
+ if (currentValidateId === validateId) {
166
+ errors.value = mergedErrors;
167
+ warnings.value = mergedWarnings;
168
+ updateMeta({
169
+ errors: mergedErrors,
170
+ warnings: mergedWarnings,
171
+ validating: false,
172
+ validated: true,
173
+ touched: meta.value.touched
174
+ });
175
+ formContext.value?.onValidate?.(namePath.value, mergedErrors.length === 0, mergedErrors.length ? mergedErrors : null);
176
+ formContext.value?.triggerFieldsChange?.([namePath.value]);
177
+ }
163
178
  if (mergedErrors.length) return Promise.reject(results);
164
179
  return results;
165
180
  });
@@ -170,6 +185,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
170
185
  validateRulesInner({ triggerName }).catch((e) => e);
171
186
  };
172
187
  const clearValidate = () => {
188
+ validateId++;
173
189
  errors.value = [];
174
190
  warnings.value = [];
175
191
  updateMeta({
@@ -179,7 +195,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
179
195
  });
180
196
  };
181
197
  const resetField = () => {
182
- validateDisabled.value = true;
198
+ validateId++;
183
199
  errors.value = [];
184
200
  warnings.value = [];
185
201
  updateMeta({
@@ -190,7 +206,9 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
190
206
  validated: false
191
207
  });
192
208
  if (hasName.value && formContext.value?.model) {
193
- const newStore = setValue(formContext.value.model, namePath.value, initialValueFormat(initialValue.value));
209
+ const nextValue = initialValueFormat(initialValue.value);
210
+ if (!Object.is(fieldValue.value, nextValue)) validateDisabled.value = true;
211
+ const newStore = setValue(formContext.value.model, namePath.value, nextValue);
194
212
  Object.assign(formContext.value.model, newStore);
195
213
  }
196
214
  };
@@ -284,6 +302,8 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
284
302
  } else formContext.value?.removeField?.(eventKey.value);
285
303
  }, { immediate: true });
286
304
  onBeforeUnmount(() => {
305
+ validateId++;
306
+ cancelDebounce?.();
287
307
  if (props.noStyle && notifyParentMetaChange) notifyParentMetaChange({
288
308
  ...meta.value,
289
309
  destroy: true
@@ -310,8 +330,8 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
310
330
  const childProps = child.props || {};
311
331
  const _onBlur = childProps.onBlur;
312
332
  const _onFocus = childProps.onFocus;
313
- if (_onBlur) delete child.props.onBlur;
314
- if (_onFocus) delete child.props.onFocus;
333
+ if (_onBlur) delete childProps.onBlur;
334
+ if (_onFocus) delete childProps.onFocus;
315
335
  const newChildProps = {
316
336
  id: childProps.id || currentFieldId,
317
337
  onBlur: (...args) => {
@@ -71,7 +71,7 @@ declare function useFormItemPrefixContext(): Ref<{
71
71
  prefixCls: string;
72
72
  }>;
73
73
  declare function useVariantContextProvider(variant: Ref<Variant | undefined>): void;
74
- declare function useVariantContext(): Ref<"filled" | "outlined" | "borderless" | "underlined" | undefined, "filled" | "outlined" | "borderless" | "underlined" | undefined>;
74
+ declare function useVariantContext(): Ref<"outlined" | "filled" | "borderless" | "underlined" | undefined, "outlined" | "filled" | "borderless" | "underlined" | undefined>;
75
75
  interface FormItemStatusContextProps {
76
76
  isFormItemInput?: boolean;
77
77
  status?: ValidateStatus;
@@ -3,7 +3,7 @@ import { Variant } from "../../config-provider/context.js";
3
3
  import { Ref } from "vue";
4
4
  //#region src/form/hooks/useVariant.d.ts
5
5
  type VariantComponents = keyof Pick<ConfigProviderProps, 'input' | 'inputPassword' | 'inputSearch' | 'otp' | 'inputNumber' | 'textArea' | 'mentions' | 'select' | 'cascader' | 'treeSelect' | 'datePicker' | 'timePicker' | 'rangePicker' | 'card'>;
6
- declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean, fallbackComponent?: VariantComponents): readonly [import("vue").ComputedRef<"filled" | "outlined" | "borderless" | "underlined">, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>];
6
+ declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean, fallbackComponent?: VariantComponents): readonly [import("vue").ComputedRef<"outlined" | "filled" | "borderless" | "underlined">, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>];
7
7
  declare const useVariants: typeof useVariant;
8
8
  //#endregion
9
9
  export { useVariant as default, useVariants };
@@ -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
  import { CSSProperties } from "vue";
4
8
  //#region src/form/style/index.d.ts
@@ -74,6 +78,6 @@ interface FormToken extends FullToken<'Form'> {
74
78
  }
75
79
  declare const prepareComponentToken: GetDefaultToken<'Form'>;
76
80
  declare function prepareToken(token: Parameters<GenStyleFn<'Form'>>[0], rootPrefixCls: string): FormToken;
77
- 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>];
81
+ 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>];
78
82
  //#endregion
79
83
  export { ComponentToken, FormToken, _default as default, prepareComponentToken, prepareToken };
@@ -1,11 +1,14 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
1
2
  import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
2
4
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
5
+ import "../../theme/interface/index.js";
3
6
  import "../../theme/internal.js";
4
7
  //#region src/grid/style/index.d.ts
5
8
  interface ComponentToken {}
6
9
  declare const prepareRowComponentToken: GetDefaultToken<'Grid'>;
7
10
  declare const prepareColComponentToken: GetDefaultToken<'Grid'>;
8
- declare const useRowStyle: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
11
+ declare const useRowStyle: (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>];
9
12
  declare function getMediaSize(token: AliasToken): {
10
13
  readonly xs: number;
11
14
  readonly sm: number;
@@ -15,6 +18,6 @@ declare function getMediaSize(token: AliasToken): {
15
18
  readonly xxl: number;
16
19
  readonly xxxl: number;
17
20
  };
18
- declare const useColStyle: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
21
+ declare const useColStyle: (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>];
19
22
  //#endregion
20
23
  export { ComponentToken, getMediaSize, prepareColComponentToken, prepareRowComponentToken, useColStyle, useRowStyle };
@@ -7,14 +7,14 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
7
7
  readonly onOpenChange: ((value: boolean, info: {
8
8
  current: number;
9
9
  }) => void) | undefined;
10
- readonly cover: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
- [key: string]: any;
12
- }> | import("vue").ComponentOptions<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> | import("vue").FunctionalComponent<any, {}, any, {}> | {
10
+ readonly cover: string | number | boolean | import("vue").ComponentOptions<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> | import("vue").FunctionalComponent<any, {}, any, {}> | {
13
11
  new (...args: any[]): any;
14
12
  __isFragment?: never;
15
13
  __isTeleport?: never;
16
14
  __isSuspense?: never;
17
- } | (string | number | boolean | void | import("vue").Component | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ } | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
+ [key: string]: any;
17
+ }> | (string | number | boolean | void | import("vue").Component | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
18
  [key: string]: any;
19
19
  }> | null | undefined)[] | import("@v-c/image").CoverConfig | {
20
20
  enabled?: boolean;
@@ -36,21 +36,21 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
36
36
  image: import("@v-c/image").ImgInfo;
37
37
  }) => import("@v-c/util").VueNode;
38
38
  readonly onChange?: (current: number, prevCurrent: number) => void;
39
- readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
40
- readonly src?: string;
41
- readonly alt?: string;
39
+ readonly wheel?: boolean;
42
40
  readonly focusTrap?: boolean;
43
41
  readonly afterOpenChange?: (open: boolean) => void;
44
42
  readonly maskClosable?: boolean;
45
43
  readonly zIndex?: number;
46
44
  readonly getContainer?: import("@v-c/portal/dist/Portal.js").PortalProps["getContainer"];
47
45
  readonly closeIcon?: import("@v-c/util").VueNode | boolean | null;
46
+ readonly motionName?: string;
47
+ readonly src?: string;
48
+ readonly alt?: string;
49
+ readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
48
50
  readonly countRender?: (current: number, total: number) => import("@v-c/util").VueNode;
49
51
  readonly scaleStep?: number;
50
52
  readonly minScale?: number;
51
53
  readonly maxScale?: number;
52
- readonly wheel?: boolean;
53
- readonly motionName?: string;
54
54
  readonly movable?: boolean;
55
55
  readonly onTransform?: (info: {
56
56
  transform: import("@v-c/image/dist/hooks/useImageTransform.js").TransformType;
@@ -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";
@@ -51,6 +54,6 @@ declare function genBoxStyle(position?: PositionType): CSSObject;
51
54
  declare const genImageCoverStyle: GenerateStyle<ImageToken, CSSObject>;
52
55
  declare const genImagePreviewStyle: GenerateStyle<ImageToken, CSSObject>;
53
56
  declare const prepareComponentToken: GetDefaultToken<'Image'>;
54
- 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>];
57
+ 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>];
55
58
  //#endregion
56
59
  export { ComponentToken, ImageToken, PositionType, _default as default, genBoxStyle, genImageCoverStyle, genImagePreviewStyle, prepareComponentToken };
@@ -1,4 +1,7 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
1
3
  import { ComponentToken, InputToken, initComponentToken, initInputToken } from "./token.js";
4
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
2
5
  import { GenerateStyle } from "../../theme/interface/index.js";
3
6
  import "../../theme/internal.js";
4
7
  import { CSSObject } from "@antdv-next/cssinjs";
@@ -15,7 +18,7 @@ declare const genInputGroupStyle: GenerateStyle<InputToken, CSSObject>;
15
18
  declare const genInputStyle: GenerateStyle<InputToken, CSSObject>;
16
19
  declare const genAllowClearStyle: GenerateStyle<InputToken, CSSObject>;
17
20
  declare const genAffixStyle: GenerateStyle<InputToken, CSSObject>;
18
- declare const useSharedStyle: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
19
- 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>];
21
+ declare const useSharedStyle: (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>];
22
+ 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>];
20
23
  //#endregion
21
24
  export { type ComponentToken, _default as default, genActiveStyle, genAffixStyle, genAllowClearStyle, genBasicInputStyle, genInputGroupStyle, genInputLargeStyle, genInputSmallStyle, genInputStyle, genPlaceholderStyle, initComponentToken, initInputToken, useSharedStyle };
@@ -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/input/style/otp.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,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/input/style/search.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";
1
3
  import { ComponentToken, initComponentToken, initInputToken } from "./token.js";
4
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
5
+ import "../../theme/interface/index.js";
2
6
  //#region src/input/style/textarea.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, initComponentToken, initInputToken };
@@ -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/input-number/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,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, GetDefaultToken } 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/layout/style/index.d.ts
@@ -93,6 +97,6 @@ interface ComponentToken {
93
97
  interface LayoutToken extends FullToken<'Layout'> {}
94
98
  declare const prepareComponentToken: GetDefaultToken<'Layout'>;
95
99
  declare const DEPRECATED_TOKENS: [keyof ComponentToken, keyof ComponentToken][];
96
- 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>];
100
+ 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>];
97
101
  //#endregion
98
102
  export { ComponentToken, DEPRECATED_TOKENS, LayoutToken, _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/layout/style/sider.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,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/listy/style/index.d.ts
4
8
  interface ComponentToken {
@@ -18,6 +22,6 @@ interface ComponentToken {
18
22
  itemPaddingInline: number;
19
23
  }
20
24
  declare const prepareComponentToken: GetDefaultToken<'Listy'>;
21
- 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>];
25
+ 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>];
22
26
  //#endregion
23
27
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -1,6 +1,6 @@
1
1
  import { Locale } from "./index.js";
2
2
  //#region src/locale/useLocale.d.ts
3
3
  type LocaleComponentName = Exclude<keyof Locale, 'locale'>;
4
- declare function useLocale<C extends LocaleComponentName = LocaleComponentName>(componentName: C, defaultLocale?: Locale[C] | (() => Locale[C])): import("vue").ComputedRef<any>[];
4
+ declare function useLocale<C extends LocaleComponentName = LocaleComponentName>(componentName: C, defaultLocale?: Locale[C] | (() => Locale[C])): readonly [import("vue").ComputedRef<any>, import("vue").ComputedRef<string>];
5
5
  //#endregion
6
6
  export { LocaleComponentName, useLocale 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";
@@ -6,6 +9,6 @@ import { CSSObject } from "@antdv-next/cssinjs";
6
9
  interface ComponentToken {}
7
10
  interface MasonryToken extends FullToken<'Masonry'> {}
8
11
  declare const genMasonryStyle: GenerateStyle<MasonryToken, CSSObject>;
9
- 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>];
12
+ 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>];
10
13
  //#endregion
11
14
  export { ComponentToken, MasonryToken, _default as default, genMasonryStyle };
@@ -102,7 +102,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
102
102
  const [mentionsZIndex] = useZIndex("SelectLike", computed(() => props.styles?.popup?.zIndex));
103
103
  const notFoundContent = computed(() => {
104
104
  if (props.notFoundContent !== void 0) return props.notFoundContent;
105
- return renderEmpty?.value?.("Select") || createVNode(DefaultRenderEmpty, { "componentName": "Select" }, null);
105
+ return renderEmpty?.value?.("Mentions") || createVNode(DefaultRenderEmpty, { "componentName": "Mentions" }, null);
106
106
  });
107
107
  const mergedFilterOption = computed(() => props.loading ? loadingFilterOption : props.filterOption);
108
108
  const resolveRenderNode = (key, ctx) => {
@@ -1,5 +1,9 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
2
+ import { AliasToken } from "../../theme/interface/alias.js";
1
3
  import { SharedComponentToken } from "../../input/style/token.js";
4
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
2
5
  import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
6
+ import "../../theme/interface/index.js";
3
7
  import "../../theme/internal.js";
4
8
  //#region src/mentions/style/index.d.ts
5
9
  interface ComponentToken extends SharedComponentToken {
@@ -20,6 +24,6 @@ interface ComponentToken extends SharedComponentToken {
20
24
  controlItemWidth: number | string;
21
25
  }
22
26
  declare const prepareComponentToken: GetDefaultToken<'Mentions'>;
23
- 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>];
24
28
  //#endregion
25
29
  export { ComponentToken, _default as default, prepareComponentToken };
@@ -1,6 +1,7 @@
1
1
  import { getAttrStyleAndClass, pureAttrs } from "../_util/hooks/useMergeSemantic.js";
2
2
  import { getSlotPropsFnRun } from "../_util/tools.js";
3
3
  import InternalTooltip from "../tooltip/index.js";
4
+ import { omitUndefined } from "../_util/omitUndefined.js";
4
5
  import { useSiderCtx } from "../layout/Sider.js";
5
6
  import { useMenuContext } from "./MenuContext.js";
6
7
  import { computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef, watch } from "vue";
@@ -54,7 +55,7 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
54
55
  };
55
56
  }
56
57
  const childrenLength = children.length;
57
- let returnNode = createVNode(Item, mergeProps(omit(pureAttrs(attrs), ["itemData"]), omit(props, [
58
+ let returnNode = createVNode(Item, mergeProps(omit(pureAttrs(attrs), ["itemData"]), omitUndefined(props, [
58
59
  "title",
59
60
  "icon",
60
61
  "danger",
@@ -1,3 +1,7 @@
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
  import { CSSProperties } from "vue";
2
6
  //#region src/message/style/index.d.ts
3
7
  /** Component only token. Which will handle additional calculation of alias token */
@@ -27,6 +31,6 @@ declare const PurePanelStyle: import("vue").DefineComponent<import("vue").Extrac
27
31
  rootCls: StringConstructor;
28
32
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
33
  /** Register the main style hook for Message. */
30
- 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>];
34
+ 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>];
31
35
  //#endregion
32
36
  export { ComponentToken, PurePanelStyle, _default as default };
@@ -1,4 +1,6 @@
1
+ import { SeedToken } from "../../theme/interface/seeds.js";
1
2
  import { AliasToken } from "../../theme/interface/alias.js";
3
+ import { ComponentTokenMap } from "../../theme/interface/components.js";
2
4
  import { FullToken, GenStyleFn, GlobalToken } from "../../theme/interface/cssinjs-utils.js";
3
5
  import { GenerateStyle } from "../../theme/interface/index.js";
4
6
  import { TokenWithCommonCls } from "../../theme/internal.js";
@@ -134,6 +136,6 @@ declare function prepareComponentToken(token: GlobalToken): {
134
136
  confirmBtnsMarginTop: number;
135
137
  mask: boolean;
136
138
  };
137
- 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>];
139
+ 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>];
138
140
  //#endregion
139
141
  export { ComponentToken, ModalToken, _default as default, genModalMaskStyle, prepareComponentToken, prepareToken };
@@ -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, GenStyleFn } from "../../theme/interface/cssinjs-utils.js";
2
5
  import { GenerateStyle } from "../../theme/interface/index.js";
3
6
  import "../../theme/internal.js";
@@ -115,6 +118,6 @@ declare const PurePanelStyle: import("vue").DefineComponent<import("vue").Extrac
115
118
  /** Compose the shared list, item, and placement styles. */
116
119
  declare function sharedGenerateStyle<Token extends NotificationToken>(token: Token, config: SharedStyleConfig<Token>): ReturnType<GenerateStyle<Token>>;
117
120
  /** Register the main style hook for Notification. */
118
- 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>];
121
+ 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>];
119
122
  //#endregion
120
123
  export { ComponentToken, NotificationToken, PurePanelStyle, _default as default, prepareNotificationToken, sharedGenerateStyle };
package/dist/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.5.6";
2
+ var version = "1.6.0";
3
3
  //#endregion
4
4
  export { version };