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/_util/tools.js
CHANGED
|
@@ -13,7 +13,8 @@ function getSlotPropsFnRun(slots, props, key, isNull = true, params) {
|
|
|
13
13
|
if (typeof fn === "function") {
|
|
14
14
|
let node = fn?.(params);
|
|
15
15
|
if (!Array.isArray(node)) node = [node];
|
|
16
|
-
|
|
16
|
+
if (node && node.length === 1 && node[0] === null) return null;
|
|
17
|
+
const nodes = filterEmpty(node).filter((node$1) => node$1 !== void 0 && node$1 !== null);
|
|
17
18
|
if (nodes.length) {
|
|
18
19
|
if (nodes.length === 1) return nodes[0];
|
|
19
20
|
return nodes;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { useConfig } from "../../config-provider/context.js";
|
|
2
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
1
3
|
import { TARGET_CLS } from "./interface.js";
|
|
2
4
|
import { getTargetWaveColor } from "./util.js";
|
|
3
5
|
import { computed, createVNode, defineComponent, nextTick, onBeforeUnmount, onMounted, ref, render, shallowRef, watch } from "vue";
|
|
@@ -31,6 +33,9 @@ const WaveEffect = /* @__PURE__ */ defineComponent({
|
|
|
31
33
|
},
|
|
32
34
|
emits: ["finish"],
|
|
33
35
|
setup(props, { emit }) {
|
|
36
|
+
const configCtx = useConfig();
|
|
37
|
+
const rootPrefixCls = computed(() => configCtx.value.getPrefixCls());
|
|
38
|
+
const waveVarName = computed(() => genCssVar(rootPrefixCls.value, "wave")[0]);
|
|
34
39
|
const divRef = shallowRef();
|
|
35
40
|
const waveColor = ref(null);
|
|
36
41
|
const borderRadius = ref([
|
|
@@ -53,7 +58,7 @@ const WaveEffect = /* @__PURE__ */ defineComponent({
|
|
|
53
58
|
height: `${height.value}px`,
|
|
54
59
|
borderRadius: borderRadius.value.map((radius) => `${radius}px`).join(" ")
|
|
55
60
|
};
|
|
56
|
-
if (waveColor.value) style["
|
|
61
|
+
if (waveColor.value) style[waveVarName.value("color")] = waveColor.value;
|
|
57
62
|
return style;
|
|
58
63
|
});
|
|
59
64
|
const isSmallComponent = computed(() => {
|
package/dist/_util/wave/style.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { genComponentStyleHook } from "../../theme/util/genStyleUtils.js";
|
|
1
|
+
import { genComponentStyleHook, genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
3
|
|
|
4
4
|
//#region src/_util/wave/style.ts
|
|
5
5
|
const genWaveStyle = (token) => {
|
|
6
|
-
const { componentCls, colorPrimary } = token;
|
|
6
|
+
const { componentCls, colorPrimary, antCls } = token;
|
|
7
|
+
const [, varRef] = genCssVar(antCls, "wave");
|
|
7
8
|
return { [componentCls]: {
|
|
8
9
|
"position": "absolute",
|
|
9
10
|
"background": "transparent",
|
|
10
11
|
"pointerEvents": "none",
|
|
11
12
|
"boxSizing": "border-box",
|
|
12
|
-
"color":
|
|
13
|
+
"color": varRef("color", colorPrimary),
|
|
13
14
|
"boxShadow": `0 0 0 0 currentcolor`,
|
|
14
15
|
"opacity": .2,
|
|
15
16
|
"&.wave-motion-appear": {
|
package/dist/affix/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue65 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/affix/index.d.ts
|
|
5
5
|
interface AffixProps extends ComponentBaseProps {
|
|
@@ -17,10 +17,10 @@ interface AffixEmits {
|
|
|
17
17
|
type InternalAffixProps = AffixProps & {
|
|
18
18
|
onTestUpdatePosition?: any;
|
|
19
19
|
};
|
|
20
|
-
declare const Affix:
|
|
20
|
+
declare const Affix: vue65.DefineSetupFnComponent<InternalAffixProps, AffixEmits, {}, AffixProps & {
|
|
21
21
|
onTestUpdatePosition?: any;
|
|
22
22
|
} & {
|
|
23
23
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
24
|
-
},
|
|
24
|
+
}, vue65.PublicProps>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Affix, AffixProps };
|
package/dist/alert/Alert.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ClosableType } from "../_util/hooks/useClosable.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue221 from "vue";
|
|
7
7
|
import { SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/alert/Alert.d.ts
|
|
@@ -43,6 +43,7 @@ type AlertSlots = SlotsDefineType<{
|
|
|
43
43
|
icon?: () => any;
|
|
44
44
|
closeIcon?: () => any;
|
|
45
45
|
action?: () => any;
|
|
46
|
+
title?: () => any;
|
|
46
47
|
}>;
|
|
47
48
|
interface AlertEmits {
|
|
48
49
|
/** Callback when close Alert */
|
|
@@ -52,8 +53,8 @@ interface AlertEmits {
|
|
|
52
53
|
click: (e: any) => any;
|
|
53
54
|
[key: string]: (e: any) => any;
|
|
54
55
|
}
|
|
55
|
-
declare const Alert:
|
|
56
|
+
declare const Alert: vue221.DefineSetupFnComponent<AlertProps, AlertEmits, SlotsType<AlertSlots>, AlertProps & {
|
|
56
57
|
[x: `on${Capitalize<string>}`]: ((e: any) => any) | undefined;
|
|
57
|
-
},
|
|
58
|
+
}, vue221.PublicProps>;
|
|
58
59
|
//#endregion
|
|
59
60
|
export { Alert, AlertEmits, AlertProps, AlertSlots };
|
package/dist/alert/Alert.js
CHANGED
package/dist/anchor/Anchor.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import "../_util/hooks/index.js";
|
|
|
4
4
|
import { AnchorLinkBaseProps } from "./AnchorLink.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
6
|
import { AffixProps } from "../affix/index.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue235 from "vue";
|
|
8
8
|
import { SlotsType, VNodeChild } from "vue";
|
|
9
9
|
import { Key } from "@v-c/util/dist/type";
|
|
10
10
|
|
|
@@ -15,7 +15,7 @@ interface AnchorLinkItemProps extends AnchorLinkBaseProps {
|
|
|
15
15
|
children?: AnchorLinkItemProps[];
|
|
16
16
|
}
|
|
17
17
|
type AnchorDirection = 'vertical' | 'horizontal';
|
|
18
|
-
type SemanticName = 'root' | 'item' | '
|
|
18
|
+
type SemanticName = 'root' | 'item' | 'itemTitle' | 'indicator';
|
|
19
19
|
type AnchorClassNamesType = SemanticClassNamesType<AnchorProps, SemanticName>;
|
|
20
20
|
type AnchorStylesType = SemanticStylesType<AnchorProps, SemanticName>;
|
|
21
21
|
interface AnchorProps extends ComponentBaseProps {
|
|
@@ -45,8 +45,8 @@ interface AnchorEmits {
|
|
|
45
45
|
type AnchorSlots = SlotsDefineType<{
|
|
46
46
|
item: (item: AnchorLinkItemProps) => any;
|
|
47
47
|
}>;
|
|
48
|
-
declare const Anchor:
|
|
48
|
+
declare const Anchor: vue235.DefineSetupFnComponent<AnchorProps, AnchorEmits, SlotsType<AnchorSlots>, AnchorProps & {
|
|
49
49
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
50
|
-
},
|
|
50
|
+
}, vue235.PublicProps>;
|
|
51
51
|
//#endregion
|
|
52
|
-
export { Anchor, AnchorProps };
|
|
52
|
+
export { Anchor, AnchorEmits, AnchorProps, AnchorSlots };
|
|
@@ -38,14 +38,14 @@ const AnchorLink = /* @__PURE__ */ defineComponent((props, { slots, attrs }) =>
|
|
|
38
38
|
return () => {
|
|
39
39
|
const { href, target } = props;
|
|
40
40
|
const wrapperClassName = classNames(`${prefixCls.value}-link`, attrs.class, mergedClassNames?.value?.item, { [`${prefixCls.value}-link-active`]: active.value });
|
|
41
|
-
const titleClassName = classNames(`${prefixCls.value}-link-title`, mergedClassNames?.value?.
|
|
41
|
+
const titleClassName = classNames(`${prefixCls.value}-link-title`, mergedClassNames?.value?.itemTitle, { [`${prefixCls.value}-link-title-active`]: active.value });
|
|
42
42
|
const title = getSlotPropsFnRun(slots, props, "title");
|
|
43
43
|
return createVNode("div", {
|
|
44
44
|
"class": [wrapperClassName],
|
|
45
45
|
"style": mergedStyles?.value?.item
|
|
46
46
|
}, [createVNode("a", {
|
|
47
47
|
"class": titleClassName,
|
|
48
|
-
"style": mergedStyles?.value?.
|
|
48
|
+
"style": mergedStyles?.value?.itemTitle,
|
|
49
49
|
"href": href,
|
|
50
50
|
"title": typeof title === "string" ? title : "",
|
|
51
51
|
"target": target,
|
package/dist/anchor/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnchorLinkProps } from "./AnchorLink.js";
|
|
2
|
-
import { Anchor, AnchorProps } from "./Anchor.js";
|
|
2
|
+
import { Anchor, AnchorEmits, AnchorProps, AnchorSlots } from "./Anchor.js";
|