antdv-next 1.0.0-alpha.4 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/tools.js +2 -1
- package/dist/_util/wave/WaveEffect.js +6 -1
- package/dist/_util/wave/style.js +4 -3
- package/dist/affix/index.d.ts +3 -3
- package/dist/alert/Alert.d.ts +4 -3
- package/dist/alert/Alert.js +1 -1
- package/dist/anchor/Anchor.d.ts +5 -5
- package/dist/anchor/AnchorLink.js +2 -2
- package/dist/anchor/index.d.ts +1 -1
- package/dist/antd.js +76 -76
- package/dist/app/App.d.ts +2 -2
- package/dist/auto-complete/index.d.ts +77 -0
- package/dist/auto-complete/index.js +627 -0
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +3 -3
- package/dist/badge/index.d.ts +3 -3
- package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
- package/dist/breadcrumb/Breadcrumb.js +0 -8
- package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.js +1 -17
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/button/Button.d.ts +3 -3
- package/dist/button/style/variant.js +116 -104
- package/dist/calendar/Header.js +1 -1
- package/dist/calendar/generateCalendar.d.ts +3 -3
- package/dist/calendar/index.d.ts +3 -3
- package/dist/card/Card.d.ts +3 -3
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardMeta.d.ts +3 -3
- package/dist/carousel/index.d.ts +3 -3
- package/dist/cascader/Panel.d.ts +3 -3
- package/dist/cascader/index.d.ts +3 -3
- package/dist/cascader/index.js +1 -1
- package/dist/checkbox/Checkbox.d.ts +3 -3
- package/dist/checkbox/Group.d.ts +3 -3
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/color-picker/ColorPicker.d.ts +4 -4
- package/dist/color-picker/ColorPicker.js +2 -2
- package/dist/components.d.ts +3 -2
- package/dist/components.js +7 -4
- package/dist/config-provider/context.js +2 -2
- package/dist/config-provider/index.d.ts +3 -3
- package/dist/date-picker/generatePicker/generateRangePicker.js +1 -1
- package/dist/date-picker/generatePicker/generateSinglePicker.js +1 -1
- package/dist/date-picker/generatePicker/index.d.ts +15 -15
- package/dist/date-picker/index.d.ts +25 -25
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/divider/index.d.ts +2 -2
- package/dist/drawer/index.d.ts +3 -3
- package/dist/dropdown/dropdown.d.ts +4 -4
- package/dist/dropdown/dropdown.js +5 -3
- package/dist/empty/index.d.ts +3 -3
- package/dist/flex/index.d.ts +3 -3
- package/dist/float-button/BackTop.d.ts +3 -3
- package/dist/float-button/FloatButton.d.ts +3 -3
- package/dist/float-button/FloatButtonGroup.d.ts +3 -3
- package/dist/float-button/style/button.js +4 -4
- package/dist/float-button/style/group.js +12 -12
- package/dist/form/Form.d.ts +3 -3
- package/dist/form/FormItem/index.d.ts +3 -3
- package/dist/form/style/index.js +3 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/grid/style/index.js +5 -4
- package/dist/image/PreviewGroup.d.ts +2 -2
- package/dist/image/index.d.ts +4 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5 -4
- package/dist/input/Input.js +1 -1
- package/dist/input/OTP/index.js +1 -1
- package/dist/input/TextArea.d.ts +3 -3
- package/dist/input/TextArea.js +1 -1
- package/dist/input/index.d.ts +11 -11
- package/dist/input-number/index.d.ts +3 -3
- package/dist/input-number/index.js +1 -1
- package/dist/input-number/style/index.js +18 -17
- package/dist/layout/index.d.ts +6 -6
- package/dist/layout/layout.d.ts +2 -2
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/Masonry.js +8 -6
- package/dist/mentions/index.d.ts +3 -3
- package/dist/mentions/index.js +1 -1
- package/dist/mentions/style/index.js +18 -17
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/SubMenu.d.ts +3 -3
- package/dist/menu/index.d.ts +5 -5
- package/dist/message/PurePanel.d.ts +2 -2
- package/dist/modal/Modal.d.ts +3 -3
- package/dist/notification/PurePanel.d.ts +2 -2
- package/dist/notification/useNotification.d.ts +2 -2
- package/dist/package.d.ts +109 -3
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +3 -3
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/style/index.js +61 -50
- package/dist/popconfirm/PurePanel.d.ts +2 -2
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popover/index.d.ts +3 -3
- package/dist/popover/style/index.js +11 -8
- package/dist/progress/progress.d.ts +3 -3
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/radio/index.d.ts +5 -5
- package/dist/radio/radio.d.ts +3 -3
- package/dist/rate/index.d.ts +3 -3
- package/dist/result/index.d.ts +3 -3
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/segmented/index.d.ts +3 -3
- package/dist/select/index.d.ts +6 -6
- package/dist/select/index.js +2 -2
- package/dist/select/style/select-input-multiple.js +31 -29
- package/dist/select/style/select-input.js +50 -44
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Node.d.ts +3 -3
- package/dist/skeleton/Skeleton.d.ts +3 -3
- package/dist/slider/index.d.ts +3 -3
- package/dist/space/Compact.d.ts +2 -0
- package/dist/space/Compact.js +17 -4
- package/dist/space/index.d.ts +5 -5
- package/dist/space/style/addon.js +20 -19
- package/dist/spin/index.d.ts +3 -3
- package/dist/splitter/SplitBar.js +9 -2
- package/dist/splitter/Splitter.d.ts +3 -3
- package/dist/splitter/Splitter.js +2 -1
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +6 -6
- package/dist/statistic/Statistic.d.ts +3 -3
- package/dist/statistic/Timer.d.ts +5 -5
- package/dist/statistic/index.d.ts +5 -5
- package/dist/steps/ProgressIcon.js +9 -2
- package/dist/steps/index.d.ts +3 -3
- package/dist/steps/index.js +7 -4
- package/dist/steps/style/horizontal.js +13 -10
- package/dist/steps/style/icon.js +11 -8
- package/dist/steps/style/index.js +19 -18
- package/dist/steps/style/inline.js +19 -16
- package/dist/steps/style/label-placement.js +22 -20
- package/dist/steps/style/nav.js +7 -5
- package/dist/steps/style/panel.js +34 -32
- package/dist/steps/style/progress-dot.js +10 -8
- package/dist/steps/style/progress.js +29 -58
- package/dist/steps/style/rtl.js +6 -4
- package/dist/steps/style/small.js +10 -8
- package/dist/steps/style/status.js +124 -121
- package/dist/steps/style/util.js +7 -4
- package/dist/steps/style/vertical.js +17 -14
- package/dist/style/placementArrow.js +7 -5
- package/dist/switch/index.d.ts +3 -3
- package/dist/table/Column.d.ts +3 -3
- package/dist/table/ColumnGroup.d.ts +3 -3
- package/dist/table/InternalTable.js +1 -1
- package/dist/table/Table.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/dist/tabs/TabPane.d.ts +3 -3
- package/dist/tabs/index.d.ts +3 -3
- package/dist/tag/CheckableTag.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.d.ts +3 -3
- package/dist/tag/index.d.ts +3 -3
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/util/genStyleUtils.js +8 -5
- package/dist/time-picker/index.d.ts +7 -7
- package/dist/timeline/Timeline.d.ts +3 -3
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/PurePanel.js +3 -3
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/style/index.js +10 -8
- package/dist/tooltip/util.js +5 -3
- package/dist/tour/index.d.ts +3 -3
- package/dist/tour/style/index.js +5 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +3 -3
- package/dist/transfer/Transfer.js +1 -1
- package/dist/transfer/search.d.ts +3 -3
- package/dist/tree/DirectoryTree.d.ts +3 -3
- package/dist/tree/Tree.d.ts +3 -3
- package/dist/tree-select/index.d.ts +4 -4
- package/dist/tree-select/index.js +1 -1
- package/dist/typography/Link.d.ts +3 -3
- package/dist/typography/Paragraph.d.ts +3 -3
- package/dist/typography/Text.d.ts +3 -3
- package/dist/typography/Title.d.ts +3 -3
- package/dist/typography/Typography.d.ts +3 -3
- package/dist/typography/index.d.ts +9 -9
- package/dist/upload/Dragger.d.ts +6 -3
- package/dist/upload/Upload.d.ts +3 -3
- package/dist/upload/index.d.ts +6 -3
- package/dist/watermark/index.d.ts +2 -2
- package/global.d.ts +2 -0
- package/package.json +22 -4
- package/web-tags.json +4524 -0
- package/web-types.json +12779 -0
package/dist/avatar/Avatar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
3
|
import { AvatarSize } from "./AvatarContext.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue290 from "vue";
|
|
5
5
|
import { SlotsType } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/avatar/Avatar.d.ts
|
|
@@ -34,8 +34,8 @@ interface AvatarSlots {
|
|
|
34
34
|
src: () => any;
|
|
35
35
|
default: () => any;
|
|
36
36
|
}
|
|
37
|
-
declare const Avatar:
|
|
37
|
+
declare const Avatar: vue290.DefineSetupFnComponent<AvatarProps, AvatarEmits, SlotsType<AvatarSlots>, AvatarProps & {
|
|
38
38
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
39
|
-
},
|
|
39
|
+
}, vue290.PublicProps>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { Avatar, AvatarEmits, AvatarProps, AvatarSlots };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopoverProps } from "../popover/index.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
3
|
import { AvatarSize } from "./AvatarContext.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue292 from "vue";
|
|
5
5
|
import { CSSProperties } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/avatar/AvatarGroup.d.ts
|
|
@@ -19,6 +19,6 @@ interface AvatarGroupProps extends ComponentBaseProps {
|
|
|
19
19
|
size?: AvatarSize;
|
|
20
20
|
shape?: 'circle' | 'square';
|
|
21
21
|
}
|
|
22
|
-
declare const AvatarGroup:
|
|
22
|
+
declare const AvatarGroup: vue292.DefineSetupFnComponent<AvatarGroupProps, {}, {}, AvatarGroupProps & {}, vue292.PublicProps>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { AvatarGroup, AvatarGroupProps };
|
package/dist/badge/Ribbon.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { PresetColorType } from "../_util/colors.js";
|
|
3
3
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue71 from "vue";
|
|
5
5
|
import { CSSProperties, SlotsType } from "vue";
|
|
6
6
|
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
7
7
|
|
|
@@ -16,8 +16,8 @@ interface RibbonSlots {
|
|
|
16
16
|
default?: () => any;
|
|
17
17
|
text?: () => any;
|
|
18
18
|
}
|
|
19
|
-
declare const _default:
|
|
19
|
+
declare const _default: vue71.DefineSetupFnComponent<RibbonProps, EmptyEmit, SlotsType<RibbonSlots>, RibbonProps & {
|
|
20
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
21
|
+
}, vue71.PublicProps>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { RibbonProps, _default };
|
package/dist/badge/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import "../theme/interface/index.js";
|
|
|
6
6
|
import { PresetStatusColorType } from "../_util/colors.js";
|
|
7
7
|
import { _default } from "./Ribbon.js";
|
|
8
8
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as vue69 from "vue";
|
|
10
10
|
import { SlotsType } from "vue";
|
|
11
11
|
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
12
12
|
|
|
@@ -37,9 +37,9 @@ interface BadgeSlots {
|
|
|
37
37
|
count?: () => any;
|
|
38
38
|
text?: () => any;
|
|
39
39
|
}
|
|
40
|
-
declare const InternalBadge:
|
|
40
|
+
declare const InternalBadge: vue69.DefineSetupFnComponent<BadgeProps, EmptyEmit, SlotsType<BadgeSlots>, BadgeProps & {
|
|
41
41
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
42
|
-
},
|
|
42
|
+
}, vue69.PublicProps>;
|
|
43
43
|
declare const Badge: typeof InternalBadge & {
|
|
44
44
|
Ribbon: typeof _default;
|
|
45
45
|
};
|
|
@@ -4,7 +4,7 @@ import "../_util/hooks/index.js";
|
|
|
4
4
|
import { DropdownProps } from "../dropdown/dropdown.js";
|
|
5
5
|
import "../dropdown/index.js";
|
|
6
6
|
import { BreadcrumbItemProps, MenuItem } from "./BreadcrumbItem.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue227 from "vue";
|
|
8
8
|
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { Key } from "@v-c/util/dist/type";
|
|
10
10
|
|
|
@@ -38,7 +38,7 @@ type BreadcrumbStylesType<T extends AnyObject = AnyObject> = SemanticStylesType<
|
|
|
38
38
|
interface BreadcrumbProps<T extends AnyObject = AnyObject> {
|
|
39
39
|
prefixCls?: string;
|
|
40
40
|
params?: T;
|
|
41
|
-
separator?:
|
|
41
|
+
separator?: any;
|
|
42
42
|
rootClass?: string;
|
|
43
43
|
items?: ItemType[];
|
|
44
44
|
classes?: BreadcrumbClassNamesType<T>;
|
|
@@ -82,8 +82,8 @@ interface BreadcrumbSlots {
|
|
|
82
82
|
menu: MenuItem;
|
|
83
83
|
}) => any;
|
|
84
84
|
}
|
|
85
|
-
declare const Breadcrumb:
|
|
85
|
+
declare const Breadcrumb: vue227.DefineSetupFnComponent<BreadcrumbProps<AnyObject>, BreadcrumbEmits, SlotsType<BreadcrumbSlots>, BreadcrumbProps<AnyObject> & {
|
|
86
86
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
87
|
-
},
|
|
87
|
+
}, vue227.PublicProps>;
|
|
88
88
|
//#endregion
|
|
89
|
-
export { Breadcrumb, BreadcrumbEmits,
|
|
89
|
+
export { Breadcrumb, BreadcrumbEmits, BreadcrumbProps, BreadcrumbSlots, ItemType };
|
|
@@ -136,14 +136,6 @@ const Breadcrumb = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
136
136
|
default: void 0
|
|
137
137
|
},
|
|
138
138
|
separator: {
|
|
139
|
-
type: [
|
|
140
|
-
Function,
|
|
141
|
-
Boolean,
|
|
142
|
-
String,
|
|
143
|
-
Number,
|
|
144
|
-
null,
|
|
145
|
-
Object
|
|
146
|
-
],
|
|
147
139
|
required: false,
|
|
148
140
|
default: void 0
|
|
149
141
|
},
|
|
@@ -53,7 +53,7 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
|
|
|
53
53
|
if (isNonNullable_default(link)) return createVNode(Fragment, null, [createVNode("li", {
|
|
54
54
|
"class": mergedClassNames?.item,
|
|
55
55
|
"style": mergedStyles?.item
|
|
56
|
-
}, [link]), separator && createVNode(BreadcrumbSeparator_default, null, _isSlot(separator) ? separator : { default: () => [separator] })]);
|
|
56
|
+
}, [link]), !!separator && createVNode(BreadcrumbSeparator_default, null, _isSlot(separator) ? separator : { default: () => [separator] })]);
|
|
57
57
|
return null;
|
|
58
58
|
};
|
|
59
59
|
}, {
|
|
@@ -94,14 +94,6 @@ const InternalBreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }
|
|
|
94
94
|
default: void 0
|
|
95
95
|
},
|
|
96
96
|
separator: {
|
|
97
|
-
type: [
|
|
98
|
-
Function,
|
|
99
|
-
Boolean,
|
|
100
|
-
String,
|
|
101
|
-
Number,
|
|
102
|
-
null,
|
|
103
|
-
Object
|
|
104
|
-
],
|
|
105
97
|
required: false,
|
|
106
98
|
default: void 0
|
|
107
99
|
}
|
|
@@ -155,14 +147,6 @@ const BreadcrumbItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
155
147
|
default: void 0
|
|
156
148
|
},
|
|
157
149
|
separator: {
|
|
158
|
-
type: [
|
|
159
|
-
Function,
|
|
160
|
-
Boolean,
|
|
161
|
-
String,
|
|
162
|
-
Number,
|
|
163
|
-
null,
|
|
164
|
-
Object
|
|
165
|
-
],
|
|
166
150
|
required: false,
|
|
167
151
|
default: void 0
|
|
168
152
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BreadcrumbItemProps, SeparatorType } from "./BreadcrumbItem.js";
|
|
2
|
-
import { Breadcrumb, BreadcrumbEmits,
|
|
2
|
+
import { Breadcrumb, BreadcrumbEmits, BreadcrumbProps, BreadcrumbSlots, ItemType } from "./Breadcrumb.js";
|
package/dist/button/Button.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
5
|
import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./buttonHelper.js";
|
|
6
6
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue237 from "vue";
|
|
8
8
|
import { SlotsType } from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/button/Button.d.ts
|
|
@@ -50,9 +50,9 @@ interface ButtonSlots {
|
|
|
50
50
|
icon?: () => any;
|
|
51
51
|
loadingIcon?: () => any;
|
|
52
52
|
}
|
|
53
|
-
declare const InternalCompoundedButton:
|
|
53
|
+
declare const InternalCompoundedButton: vue237.DefineSetupFnComponent<ButtonProps, ButtonEmits, SlotsType<ButtonSlots>, ButtonProps & {
|
|
54
54
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
55
|
-
},
|
|
55
|
+
}, vue237.PublicProps>;
|
|
56
56
|
type CompoundedComponent = typeof InternalCompoundedButton & {
|
|
57
57
|
/** @internal */
|
|
58
58
|
__ANT_BUTTON: boolean;
|
|
@@ -4,140 +4,152 @@ import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
|
4
4
|
//#region src/button/style/variant.ts
|
|
5
5
|
const genVariantStyle = (token) => {
|
|
6
6
|
const { componentCls, antCls } = token;
|
|
7
|
-
const
|
|
7
|
+
const [varName, varRef] = genCssVar(antCls, "btn");
|
|
8
8
|
return { [componentCls]: [
|
|
9
9
|
{
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
10
|
+
[varName("border-width")]: "1px",
|
|
11
|
+
[varName("border-color")]: "#000",
|
|
12
|
+
[varName("border-color-hover")]: varRef("border-color"),
|
|
13
|
+
[varName("border-color-active")]: varRef("border-color"),
|
|
14
|
+
[varName("border-color-disabled")]: varRef("border-color"),
|
|
15
|
+
[varName("border-style")]: "solid",
|
|
16
|
+
[varName("text-color")]: "#000",
|
|
17
|
+
[varName("text-color-hover")]: varRef("text-color"),
|
|
18
|
+
[varName("text-color-active")]: varRef("text-color"),
|
|
19
|
+
[varName("text-color-disabled")]: varRef("text-color"),
|
|
20
|
+
[varName("bg-color")]: "#ddd",
|
|
21
|
+
[varName("bg-color-hover")]: varRef("bg-color"),
|
|
22
|
+
[varName("bg-color-active")]: varRef("bg-color"),
|
|
23
|
+
[varName("bg-color-disabled")]: token.colorBgContainerDisabled,
|
|
24
|
+
[varName("bg-color-container")]: token.colorBgContainer,
|
|
25
|
+
[varName("shadow")]: "none"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
border:
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
border: [
|
|
29
|
+
varRef("border-width"),
|
|
30
|
+
varRef("border-style"),
|
|
31
|
+
varRef("border-color")
|
|
32
|
+
].join(" "),
|
|
33
|
+
color: varRef("text-color"),
|
|
34
|
+
backgroundColor: varRef("bg-color"),
|
|
31
35
|
[`&:not(:disabled):not(${componentCls}-disabled)`]: {
|
|
32
36
|
"&:hover": {
|
|
33
|
-
border:
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
border: [
|
|
38
|
+
varRef("border-width"),
|
|
39
|
+
varRef("border-style"),
|
|
40
|
+
varRef("border-color-hover")
|
|
41
|
+
].join(" "),
|
|
42
|
+
color: varRef("text-color-hover"),
|
|
43
|
+
backgroundColor: varRef("bg-color-hover")
|
|
36
44
|
},
|
|
37
45
|
"&:active": {
|
|
38
|
-
border:
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
border: [
|
|
47
|
+
varRef("border-width"),
|
|
48
|
+
varRef("border-style"),
|
|
49
|
+
varRef("border-color-active")
|
|
50
|
+
].join(" "),
|
|
51
|
+
color: varRef("text-color-active"),
|
|
52
|
+
backgroundColor: varRef("bg-color-active")
|
|
41
53
|
}
|
|
42
54
|
}
|
|
43
55
|
},
|
|
44
56
|
{
|
|
45
57
|
[`&${componentCls}-variant-solid`]: {
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
boxShadow:
|
|
58
|
+
[varName("solid-bg-color")]: varRef("color-base"),
|
|
59
|
+
[varName("solid-bg-color-hover")]: varRef("color-hover"),
|
|
60
|
+
[varName("solid-bg-color-active")]: varRef("color-active"),
|
|
61
|
+
[varName("border-color")]: "transparent",
|
|
62
|
+
[varName("text-color")]: token.colorTextLightSolid,
|
|
63
|
+
[varName("bg-color")]: varRef("solid-bg-color"),
|
|
64
|
+
[varName("bg-color-hover")]: varRef("solid-bg-color-hover"),
|
|
65
|
+
[varName("bg-color-active")]: varRef("solid-bg-color-active"),
|
|
66
|
+
boxShadow: varRef("shadow")
|
|
55
67
|
},
|
|
56
68
|
[`&${componentCls}-variant-outlined, &${componentCls}-variant-dashed`]: {
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
boxShadow:
|
|
69
|
+
[varName("border-color")]: varRef("color-base"),
|
|
70
|
+
[varName("border-color-hover")]: varRef("color-hover"),
|
|
71
|
+
[varName("border-color-active")]: varRef("color-active"),
|
|
72
|
+
[varName("bg-color")]: varRef("bg-color-container"),
|
|
73
|
+
[varName("text-color")]: varRef("color-base"),
|
|
74
|
+
[varName("text-color-hover")]: varRef("color-hover"),
|
|
75
|
+
[varName("text-color-active")]: varRef("color-active"),
|
|
76
|
+
boxShadow: varRef("shadow")
|
|
65
77
|
},
|
|
66
78
|
[`&${componentCls}-variant-dashed`]: {
|
|
67
|
-
[
|
|
68
|
-
[
|
|
79
|
+
[varName("border-style")]: "dashed",
|
|
80
|
+
[varName("bg-color-disabled")]: token.dashedBgDisabled
|
|
69
81
|
},
|
|
70
82
|
[`&${componentCls}-variant-filled`]: {
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
83
|
+
[varName("border-color")]: "transparent",
|
|
84
|
+
[varName("text-color")]: varRef("color-base"),
|
|
85
|
+
[varName("bg-color")]: varRef("color-light"),
|
|
86
|
+
[varName("bg-color-hover")]: varRef("color-light-hover"),
|
|
87
|
+
[varName("bg-color-active")]: varRef("color-light-active")
|
|
76
88
|
},
|
|
77
89
|
[`&${componentCls}-variant-text, &${componentCls}-variant-link`]: {
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
[
|
|
82
|
-
[
|
|
83
|
-
[
|
|
84
|
-
[
|
|
90
|
+
[varName("border-color")]: "transparent",
|
|
91
|
+
[varName("text-color")]: varRef("color-base"),
|
|
92
|
+
[varName("text-color-hover")]: varRef("color-hover"),
|
|
93
|
+
[varName("text-color-active")]: varRef("color-active"),
|
|
94
|
+
[varName("bg-color")]: "transparent",
|
|
95
|
+
[varName("bg-color-hover")]: "transparent",
|
|
96
|
+
[varName("bg-color-active")]: "transparent",
|
|
85
97
|
[`&:disabled, &${token.componentCls}-disabled`]: {
|
|
86
98
|
background: "transparent",
|
|
87
99
|
borderColor: "transparent"
|
|
88
100
|
}
|
|
89
101
|
},
|
|
90
102
|
[`&${componentCls}-variant-text`]: {
|
|
91
|
-
[
|
|
92
|
-
[
|
|
103
|
+
[varName("bg-color-hover")]: varRef("color-light"),
|
|
104
|
+
[varName("bg-color-active")]: varRef("color-light-active")
|
|
93
105
|
}
|
|
94
106
|
},
|
|
95
107
|
{
|
|
96
108
|
[`&${componentCls}-variant-link`]: {
|
|
97
|
-
[
|
|
98
|
-
[
|
|
99
|
-
[
|
|
109
|
+
[varName("color-base")]: token.colorLink,
|
|
110
|
+
[varName("color-hover")]: token.colorLinkHover,
|
|
111
|
+
[varName("color-active")]: token.colorLinkActive
|
|
100
112
|
},
|
|
101
113
|
[`&${componentCls}-color-primary`]: {
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
[
|
|
105
|
-
[
|
|
106
|
-
[
|
|
107
|
-
[
|
|
108
|
-
[
|
|
114
|
+
[varName("color-base")]: token.colorPrimary,
|
|
115
|
+
[varName("color-hover")]: token.colorPrimaryHover,
|
|
116
|
+
[varName("color-active")]: token.colorPrimaryActive,
|
|
117
|
+
[varName("color-light")]: token.colorPrimaryBg,
|
|
118
|
+
[varName("color-light-hover")]: token.colorPrimaryBgHover,
|
|
119
|
+
[varName("color-light-active")]: token.colorPrimaryBorder,
|
|
120
|
+
[varName("shadow")]: token.primaryShadow
|
|
109
121
|
},
|
|
110
122
|
[`&${componentCls}-color-dangerous`]: {
|
|
111
|
-
[
|
|
112
|
-
[
|
|
113
|
-
[
|
|
114
|
-
[
|
|
115
|
-
[
|
|
116
|
-
[
|
|
117
|
-
[
|
|
123
|
+
[varName("color-base")]: token.colorError,
|
|
124
|
+
[varName("color-hover")]: token.colorErrorHover,
|
|
125
|
+
[varName("color-active")]: token.colorErrorActive,
|
|
126
|
+
[varName("color-light")]: token.colorErrorBg,
|
|
127
|
+
[varName("color-light-hover")]: token.colorErrorBgFilledHover,
|
|
128
|
+
[varName("color-light-active")]: token.colorErrorBgActive,
|
|
129
|
+
[varName("shadow")]: token.dangerShadow
|
|
118
130
|
},
|
|
119
131
|
[`&${componentCls}-color-default`]: {
|
|
120
|
-
[
|
|
121
|
-
[
|
|
122
|
-
[
|
|
123
|
-
[
|
|
124
|
-
[
|
|
125
|
-
[
|
|
126
|
-
[
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
130
|
-
[
|
|
131
|
-
[
|
|
132
|
-
[
|
|
133
|
-
[`&${componentCls}-variant-solid`]: { [
|
|
132
|
+
[varName("solid-bg-color")]: token.colorBgSolid,
|
|
133
|
+
[varName("solid-bg-color-hover")]: token.colorBgSolidHover,
|
|
134
|
+
[varName("solid-bg-color-active")]: token.colorBgSolidActive,
|
|
135
|
+
[varName("color-base")]: token.defaultBorderColor,
|
|
136
|
+
[varName("color-hover")]: token.defaultHoverBorderColor,
|
|
137
|
+
[varName("color-active")]: token.defaultActiveBorderColor,
|
|
138
|
+
[varName("color-light")]: token.colorFillTertiary,
|
|
139
|
+
[varName("color-light-hover")]: token.colorFillSecondary,
|
|
140
|
+
[varName("color-light-active")]: token.colorFill,
|
|
141
|
+
[varName("text-color")]: token.colorText,
|
|
142
|
+
[varName("text-color-hover")]: token.defaultHoverBorderColor,
|
|
143
|
+
[varName("text-color-active")]: token.defaultActiveBorderColor,
|
|
144
|
+
[varName("shadow")]: token.defaultShadow,
|
|
145
|
+
[`&${componentCls}-variant-solid`]: { [varName("text-color")]: token.solidTextColor },
|
|
134
146
|
[`&${componentCls}-variant-filled, &${componentCls}-variant-text`]: {
|
|
135
|
-
[
|
|
136
|
-
[
|
|
147
|
+
[varName("text-color-hover")]: varRef("text-color"),
|
|
148
|
+
[varName("text-color-active")]: varRef("text-color")
|
|
137
149
|
},
|
|
138
150
|
[`&${componentCls}-background-ghost`]: { [`&${componentCls}-variant-outlined, &${componentCls}-variant-dashed`]: {
|
|
139
|
-
[
|
|
140
|
-
[
|
|
151
|
+
[varName("text-color")]: token.defaultGhostColor,
|
|
152
|
+
[varName("border-color")]: token.defaultGhostBorderColor
|
|
141
153
|
} }
|
|
142
154
|
}
|
|
143
155
|
},
|
|
@@ -150,25 +162,25 @@ const genVariantStyle = (token) => {
|
|
|
150
162
|
const activeColor = token[`${colorKey}7`];
|
|
151
163
|
const shadowColor = token[`${colorKey}ShadowColor`];
|
|
152
164
|
return { [`&${componentCls}-color-${colorKey}`]: {
|
|
153
|
-
[
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[
|
|
157
|
-
[
|
|
158
|
-
[
|
|
159
|
-
[
|
|
165
|
+
[varName("color-base")]: darkColor,
|
|
166
|
+
[varName("color-hover")]: hoverColor,
|
|
167
|
+
[varName("color-active")]: activeColor,
|
|
168
|
+
[varName("color-light")]: lightColor,
|
|
169
|
+
[varName("color-light-hover")]: lightHoverColor,
|
|
170
|
+
[varName("color-light-active")]: lightActiveColor,
|
|
171
|
+
[varName("shadow")]: shadowColor
|
|
160
172
|
} };
|
|
161
173
|
}),
|
|
162
174
|
{ [`&:disabled, &${token.componentCls}-disabled`]: {
|
|
163
175
|
cursor: "not-allowed",
|
|
164
176
|
borderColor: token.colorBorderDisabled,
|
|
165
|
-
background:
|
|
177
|
+
background: varRef("bg-color-disabled"),
|
|
166
178
|
color: token.colorTextDisabled,
|
|
167
179
|
boxShadow: "none"
|
|
168
180
|
} },
|
|
169
181
|
{ [`&${componentCls}-background-ghost`]: {
|
|
170
|
-
[
|
|
171
|
-
[
|
|
182
|
+
[varName("bg-color")]: "transparent",
|
|
183
|
+
[varName("shadow")]: "none"
|
|
172
184
|
} }
|
|
173
185
|
] };
|
|
174
186
|
};
|
package/dist/calendar/Header.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useFormItemInputContext, useFormItemInputContextProvider } from "../form/context.js";
|
|
2
|
-
import { RadioButton, RadioGroup } from "../radio/index.js";
|
|
3
2
|
import select_default from "../select/index.js";
|
|
3
|
+
import { RadioButton, RadioGroup } from "../radio/index.js";
|
|
4
4
|
import { computed, createVNode, defineComponent, mergeProps, ref } from "vue";
|
|
5
5
|
import { clsx } from "@v-c/util";
|
|
6
6
|
import { omit } from "es-toolkit";
|
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { locale } from "../date-picker/locale/en_US.js";
|
|
5
5
|
import "./locale/en_US.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue239 from "vue";
|
|
7
7
|
import { SlotsType } from "vue";
|
|
8
8
|
import { GenerateConfig } from "@v-c/picker/generate/index";
|
|
9
9
|
|
|
@@ -82,8 +82,8 @@ interface CalendarEmits<DateType = AnyObject> {
|
|
|
82
82
|
'select': (date: DateType, selectInfo: SelectInfo) => void;
|
|
83
83
|
[key: string]: (...args: any[]) => void;
|
|
84
84
|
}
|
|
85
|
-
declare function generateCalendar<DateType extends AnyObject>(generateConfig: GenerateConfig<DateType>):
|
|
85
|
+
declare function generateCalendar<DateType extends AnyObject>(generateConfig: GenerateConfig<DateType>): vue239.DefineSetupFnComponent<CalendarProps<DateType>, CalendarEmits<DateType>, SlotsType<CalendarSlots>, CalendarProps<DateType> & {
|
|
86
86
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
87
|
-
},
|
|
87
|
+
}, vue239.PublicProps>;
|
|
88
88
|
//#endregion
|
|
89
89
|
export { CalendarEmits, CalendarMode, CalendarProps, CalendarSlots, generateCalendar };
|
package/dist/calendar/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CalendarEmits, CalendarMode, CalendarProps, CalendarSlots, generateCalendar } from "./generateCalendar.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue73 from "vue";
|
|
3
3
|
import { Dayjs } from "dayjs";
|
|
4
4
|
|
|
5
5
|
//#region src/calendar/index.d.ts
|
|
6
|
-
declare const Calendar:
|
|
6
|
+
declare const Calendar: vue73.DefineSetupFnComponent<CalendarProps<Dayjs>, CalendarEmits<Dayjs>, vue73.SlotsType<CalendarSlots>, CalendarProps<Dayjs> & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue73.PublicProps>;
|
|
9
9
|
type CalendarType = typeof Calendar & {
|
|
10
10
|
generateCalendar: typeof generateCalendar;
|
|
11
11
|
};
|
package/dist/card/Card.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { Tab, TabsSlots } from "../tabs/index.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue260 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/card/Card.d.ts
|
|
@@ -60,8 +60,8 @@ interface CardSlots {
|
|
|
60
60
|
tabLabelRender?: TabsSlots['labelRender'];
|
|
61
61
|
tabBarExtraContent?: () => any;
|
|
62
62
|
}
|
|
63
|
-
declare const Card:
|
|
63
|
+
declare const Card: vue260.DefineSetupFnComponent<CardProps, CardEmits, SlotsType<CardSlots>, CardProps & {
|
|
64
64
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
65
|
-
},
|
|
65
|
+
}, vue260.PublicProps>;
|
|
66
66
|
//#endregion
|
|
67
67
|
export { Card, CardEmits, CardProps, CardSize, CardSlots, CardTabListType };
|
package/dist/card/CardGrid.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue262 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/card/CardGrid.d.ts
|
|
4
4
|
interface CardGridProps {
|
|
5
5
|
prefixCls?: string;
|
|
6
6
|
hoverable?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const CardGrid:
|
|
8
|
+
declare const CardGrid: vue262.DefineSetupFnComponent<CardGridProps, {}, {}, CardGridProps & {}, vue262.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { CardGrid, CardGridProps };
|
package/dist/card/CardMeta.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue258 from "vue";
|
|
5
5
|
import { SlotsType } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/card/CardMeta.d.ts
|
|
@@ -22,8 +22,8 @@ interface CardMetaSlots {
|
|
|
22
22
|
description?: () => any;
|
|
23
23
|
default?: () => any;
|
|
24
24
|
}
|
|
25
|
-
declare const CardMeta:
|
|
25
|
+
declare const CardMeta: vue258.DefineSetupFnComponent<CardMetaProps, EmptyEmit, SlotsType<CardMetaSlots>, CardMetaProps & {
|
|
26
26
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
27
|
-
},
|
|
27
|
+
}, vue258.PublicProps>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { CardMeta, CardMetaProps };
|
package/dist/carousel/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue76 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
import { SlickProps } from "@v-c/slick";
|
|
6
6
|
|
|
@@ -45,8 +45,8 @@ interface CarouselRef {
|
|
|
45
45
|
autoPlay: (playType?: 'update' | 'leave' | 'blur') => void;
|
|
46
46
|
innerSlider: any;
|
|
47
47
|
}
|
|
48
|
-
declare const Carousel:
|
|
48
|
+
declare const Carousel: vue76.DefineSetupFnComponent<CarouselProps, CarouselEmits, SlotsType<CarouselSlots>, CarouselProps & {
|
|
49
49
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
50
|
-
},
|
|
50
|
+
}, vue76.PublicProps>;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots };
|
package/dist/cascader/Panel.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CascaderProps as CascaderProps$1 } from "./index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue86 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
import { CascaderProps, DefaultOptionType } from "@v-c/cascader";
|
|
5
5
|
|
|
@@ -16,8 +16,8 @@ interface CascaderPanelSlots {
|
|
|
16
16
|
notFoundContent?: () => any;
|
|
17
17
|
optionRender?: (option: DefaultOptionType) => any;
|
|
18
18
|
}
|
|
19
|
-
declare const CascaderPanel:
|
|
19
|
+
declare const CascaderPanel: vue86.DefineSetupFnComponent<CascaderPanelProps<DefaultOptionType, string, boolean>, CascaderPanelEmits, SlotsType<CascaderPanelSlots>, CascaderPanelProps<DefaultOptionType, string, boolean> & {
|
|
20
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
21
|
+
}, vue86.PublicProps>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots };
|