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/steps/style/util.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
|
|
1
3
|
//#region src/steps/style/util.ts
|
|
2
4
|
function withoutVar(cssVar) {
|
|
3
5
|
return (cssVar || "--ant-not-exist").replace(/var\((.*)\)/, "$1");
|
|
@@ -7,14 +9,15 @@ function withoutVar(cssVar) {
|
|
|
7
9
|
* This should be multiple since will conflict with other `rail` styles.
|
|
8
10
|
*/
|
|
9
11
|
function getItemWithWidthStyle(token, marginSize, optionalStyle) {
|
|
10
|
-
const { calc, componentCls, descriptionMaxWidth } = token;
|
|
12
|
+
const { calc, componentCls, descriptionMaxWidth, antCls } = token;
|
|
11
13
|
const itemCls = `${componentCls}-item`;
|
|
14
|
+
const [, varRef] = genCssVar(antCls, "cmp-steps");
|
|
12
15
|
return { [`@container style(${withoutVar(descriptionMaxWidth)})`]: [{
|
|
13
|
-
[`${itemCls}-icon`]: { marginInlineStart: calc(descriptionMaxWidth).sub(
|
|
16
|
+
[`${itemCls}-icon`]: { marginInlineStart: calc(descriptionMaxWidth).sub(varRef("icon-size")).div(2).equal() },
|
|
14
17
|
[`${itemCls}-rail`]: {
|
|
15
18
|
width: "auto",
|
|
16
|
-
insetInlineStart: calc(descriptionMaxWidth).add(
|
|
17
|
-
insetInlineEnd: calc(descriptionMaxWidth).sub(
|
|
19
|
+
insetInlineStart: calc(descriptionMaxWidth).add(varRef("icon-size")).div(2).add(marginSize).equal(),
|
|
20
|
+
insetInlineEnd: calc(descriptionMaxWidth).sub(varRef("icon-size")).div(2).sub(marginSize).mul(-1).equal()
|
|
18
21
|
}
|
|
19
22
|
}, optionalStyle] };
|
|
20
23
|
}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
|
|
1
3
|
//#region src/steps/style/vertical.ts
|
|
2
4
|
const genVerticalStyle = (token) => {
|
|
3
|
-
const { componentCls, calc } = token;
|
|
5
|
+
const { componentCls, marginXXS, paddingSM, controlHeight, antCls, calc } = token;
|
|
4
6
|
const itemCls = `${componentCls}-item`;
|
|
7
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
5
8
|
return { [`${componentCls}-vertical`]: {
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
[varName("vertical-rail-margin")]: calc(marginXXS).mul(1.5).equal(),
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
alignItems: "stretch",
|
|
9
12
|
[`> ${itemCls}`]: {
|
|
10
|
-
"minHeight": calc(
|
|
11
|
-
"paddingBottom":
|
|
13
|
+
"minHeight": calc(controlHeight).mul(1.5).equal(),
|
|
14
|
+
"paddingBottom": paddingSM,
|
|
12
15
|
"&:last-child": { paddingBottom: 0 },
|
|
13
|
-
[`${itemCls}-icon`]: { marginInlineStart:
|
|
16
|
+
[`${itemCls}-icon`]: { marginInlineStart: `calc((${varRef("icon-size-max")} - ${varRef("icon-size")}) / 2)` },
|
|
14
17
|
[`${itemCls}-rail`]: {
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
[varName("rail-offset")]: calc(varRef("heading-height")).sub(varRef("icon-size")).div(2).equal(),
|
|
19
|
+
borderInlineStartWidth: varRef("rail-size"),
|
|
20
|
+
position: "absolute",
|
|
21
|
+
top: calc(varRef("icon-size")).add(varRef("item-wrapper-padding-top")).add(varRef("rail-offset")).add(varRef("vertical-rail-margin")).equal(),
|
|
22
|
+
insetInlineStart: calc(varRef("icon-size-max")).div(2).equal(),
|
|
23
|
+
bottom: calc(varRef("vertical-rail-margin")).sub(varRef("rail-offset")).equal(),
|
|
24
|
+
marginInlineStart: `calc(${varRef("rail-size")} / -2)`
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
} };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
1
2
|
import { genRoundedArrow } from "./roundedArrow.js";
|
|
2
3
|
import { unit } from "@antdv-next/cssinjs";
|
|
3
4
|
|
|
@@ -16,7 +17,8 @@ function isInject(valid, code) {
|
|
|
16
17
|
return code;
|
|
17
18
|
}
|
|
18
19
|
function getArrowStyle(token, colorBg, options) {
|
|
19
|
-
const { componentCls, boxShadowPopoverArrow, arrowOffsetVertical, arrowOffsetHorizontal } = token;
|
|
20
|
+
const { componentCls, boxShadowPopoverArrow, arrowOffsetVertical, arrowOffsetHorizontal, antCls } = token;
|
|
21
|
+
const [varName] = genCssVar(antCls, "tooltip");
|
|
20
22
|
const { arrowDistance = 0, arrowPlacement = {
|
|
21
23
|
left: true,
|
|
22
24
|
right: true,
|
|
@@ -48,14 +50,14 @@ function getArrowStyle(token, colorBg, options) {
|
|
|
48
50
|
transform: "translateX(-50%) translateY(100%) rotate(180deg)"
|
|
49
51
|
},
|
|
50
52
|
"&-placement-topLeft": {
|
|
51
|
-
"
|
|
53
|
+
[varName("arrow-offset-horizontal")]: arrowOffsetHorizontal,
|
|
52
54
|
[`> ${componentCls}-arrow`]: { left: {
|
|
53
55
|
_skip_check_: true,
|
|
54
56
|
value: arrowOffsetHorizontal
|
|
55
57
|
} }
|
|
56
58
|
},
|
|
57
59
|
"&-placement-topRight": {
|
|
58
|
-
"
|
|
60
|
+
[varName("arrow-offset-horizontal")]: `calc(100% - ${unit(arrowOffsetHorizontal)})`,
|
|
59
61
|
[`> ${componentCls}-arrow`]: { right: {
|
|
60
62
|
_skip_check_: true,
|
|
61
63
|
value: arrowOffsetHorizontal
|
|
@@ -79,14 +81,14 @@ function getArrowStyle(token, colorBg, options) {
|
|
|
79
81
|
transform: `translateX(-50%) translateY(-100%)`
|
|
80
82
|
},
|
|
81
83
|
"&-placement-bottomLeft": {
|
|
82
|
-
"
|
|
84
|
+
[varName("arrow-offset-horizontal")]: arrowOffsetHorizontal,
|
|
83
85
|
[`> ${componentCls}-arrow`]: { left: {
|
|
84
86
|
_skip_check_: true,
|
|
85
87
|
value: arrowOffsetHorizontal
|
|
86
88
|
} }
|
|
87
89
|
},
|
|
88
90
|
"&-placement-bottomRight": {
|
|
89
|
-
"
|
|
91
|
+
[varName("arrow-offset-horizontal")]: `calc(100% - ${unit(arrowOffsetHorizontal)})`,
|
|
90
92
|
[`> ${componentCls}-arrow`]: { right: {
|
|
91
93
|
_skip_check_: true,
|
|
92
94
|
value: arrowOffsetHorizontal
|
package/dist/switch/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { VueNode } from "../_util/type.js";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue140 from "vue";
|
|
6
6
|
import { SlotsType } from "vue";
|
|
7
7
|
import { SwitchChangeEventHandler, SwitchClickEventHandler } from "@v-c/switch";
|
|
8
8
|
|
|
@@ -47,8 +47,8 @@ interface SwitchSlots {
|
|
|
47
47
|
checkedChildren: () => any;
|
|
48
48
|
unCheckedChildren: () => any;
|
|
49
49
|
}
|
|
50
|
-
declare const Switch:
|
|
50
|
+
declare const Switch: vue140.DefineSetupFnComponent<SwitchProps, SwitchEmits, SlotsType<SwitchSlots>, SwitchProps & {
|
|
51
51
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
52
|
-
},
|
|
52
|
+
}, vue140.PublicProps>;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots };
|
package/dist/table/Column.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyObject, EmptyEmit } from "../_util/type.js";
|
|
2
2
|
import { ColumnType } from "./interface.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue365 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/table/Column.d.ts
|
|
@@ -13,8 +13,8 @@ interface ColumnSlots {
|
|
|
13
13
|
/**
|
|
14
14
|
* Syntactic sugar for `columns` prop. HOC will not work on this.
|
|
15
15
|
*/
|
|
16
|
-
declare const Column:
|
|
16
|
+
declare const Column: vue365.DefineSetupFnComponent<ColumnProps<AnyObject>, EmptyEmit, SlotsType<ColumnSlots>, ColumnProps<AnyObject> & {
|
|
17
17
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
18
|
-
},
|
|
18
|
+
}, vue365.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { Column, ColumnProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyObject, EmptyEmit } from "../_util/type.js";
|
|
2
2
|
import { ColumnType } from "./interface.js";
|
|
3
3
|
import { ColumnProps } from "./Column.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue367 from "vue";
|
|
5
5
|
import { SlotsType } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/table/ColumnGroup.d.ts
|
|
@@ -14,8 +14,8 @@ interface ColumnGroupSlots {
|
|
|
14
14
|
/**
|
|
15
15
|
* Syntactic sugar for `columns` prop. HOC will not work on this.
|
|
16
16
|
*/
|
|
17
|
-
declare const ColumnGroup:
|
|
17
|
+
declare const ColumnGroup: vue367.DefineSetupFnComponent<ColumnGroupProps<AnyObject>, EmptyEmit, SlotsType<ColumnGroupSlots>, ColumnGroupProps<AnyObject> & {
|
|
18
18
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
19
|
-
},
|
|
19
|
+
}, vue367.PublicProps>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ColumnGroup };
|
|
@@ -11,8 +11,8 @@ import { useSize } from "../config-provider/hooks/useSize.js";
|
|
|
11
11
|
import config_provider_default from "../config-provider/index.js";
|
|
12
12
|
import en_US_default from "../locale/en_US.js";
|
|
13
13
|
import useLocale_default from "../locale/useLocale.js";
|
|
14
|
-
import { useBreakpoint } from "../grid/hooks/useBreakpoint.js";
|
|
15
14
|
import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
|
|
15
|
+
import { useBreakpoint } from "../grid/hooks/useBreakpoint.js";
|
|
16
16
|
import spin_default from "../spin/index.js";
|
|
17
17
|
import pagination_default from "../pagination/index.js";
|
|
18
18
|
import useSelection from "./hooks/useSelection.js";
|
package/dist/table/Table.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { SELECTION_ALL, SELECTION_COLUMN, SELECTION_INVERT, SELECTION_NONE } fro
|
|
|
3
3
|
import { Column } from "./Column.js";
|
|
4
4
|
import { ColumnGroup } from "./ColumnGroup.js";
|
|
5
5
|
import { TableEmits, TableProps as TableProps$1, TableSlots } from "./InternalTable.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue369 from "vue";
|
|
7
7
|
import { SlotsType } from "vue";
|
|
8
8
|
import { EXPAND_COLUMN, Summary } from "@v-c/table";
|
|
9
9
|
|
|
10
10
|
//#region src/table/Table.d.ts
|
|
11
|
-
declare const Table:
|
|
11
|
+
declare const Table: vue369.DefineSetupFnComponent<TableProps$1<AnyObject>, TableEmits<AnyObject>, SlotsType<TableSlots<AnyObject>>, TableProps$1<AnyObject> & {
|
|
12
12
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
13
|
-
},
|
|
13
|
+
}, vue369.PublicProps>;
|
|
14
14
|
declare const ForwardTable: typeof Table & {
|
|
15
15
|
displayName?: string;
|
|
16
16
|
SELECTION_COLUMN: typeof SELECTION_COLUMN;
|
|
@@ -3,11 +3,11 @@ import { devUseWarning, isDev } from "../../../_util/warning.js";
|
|
|
3
3
|
import { toPropsRefs } from "../../../_util/tools.js";
|
|
4
4
|
import button_default from "../../../button/index.js";
|
|
5
5
|
import extendsObject_default from "../../../_util/extendsObject.js";
|
|
6
|
+
import empty_default from "../../../empty/index.js";
|
|
6
7
|
import { OverrideProvider } from "../../../menu/OverrideContext.js";
|
|
7
8
|
import menu_default from "../../../menu/index.js";
|
|
8
9
|
import dropdown_default from "../../../dropdown/index.js";
|
|
9
10
|
import radio_default from "../../../radio/index.js";
|
|
10
|
-
import empty_default from "../../../empty/index.js";
|
|
11
11
|
import checkbox_default from "../../../checkbox/index.js";
|
|
12
12
|
import tree_default from "../../../tree/index.js";
|
|
13
13
|
import FilterSearch_default from "./FilterSearch.js";
|
package/dist/tabs/TabPane.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue288 from "vue";
|
|
3
3
|
import { CSSProperties, SlotsType } from "vue";
|
|
4
4
|
import { TabPaneProps } from "@v-c/tabs";
|
|
5
5
|
|
|
@@ -16,8 +16,8 @@ interface TabPaneSlots {
|
|
|
16
16
|
closeIcon?: () => any;
|
|
17
17
|
icon?: () => any;
|
|
18
18
|
}
|
|
19
|
-
declare const TabPane:
|
|
19
|
+
declare const TabPane: vue288.DefineSetupFnComponent<TabPaneProps$1, EmptyEmit, SlotsType<TabPaneSlots>, TabPaneProps$1 & {
|
|
20
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
21
|
+
}, vue288.PublicProps>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { TabPane, TabPaneProps$1 as TabPaneProps };
|
package/dist/tabs/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { SemanticClassNames, SemanticClassNamesType, SemanticStyles, SemanticSty
|
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
5
|
import { TabPane, TabPaneProps as TabPaneProps$1 } from "./TabPane.js";
|
|
6
6
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue144 from "vue";
|
|
8
8
|
import { SlotsType } from "vue";
|
|
9
9
|
import { GetIndicatorSize, MoreProps, Tab, TabsProps } from "@v-c/tabs";
|
|
10
10
|
|
|
@@ -87,8 +87,8 @@ interface TabsSlots {
|
|
|
87
87
|
rightExtra?: () => any;
|
|
88
88
|
leftExtra?: () => any;
|
|
89
89
|
}
|
|
90
|
-
declare const Tabs:
|
|
90
|
+
declare const Tabs: vue144.DefineSetupFnComponent<TabsProps$1, TabsEmits, SlotsType<TabsSlots>, TabsProps$1 & {
|
|
91
91
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
92
|
-
},
|
|
92
|
+
}, vue144.PublicProps>;
|
|
93
93
|
//#endregion
|
|
94
94
|
export { Tab$1 as Tab, Tabs, TabsEmits, TabsProps$1 as TabsProps, TabsRef, TabsSlots };
|
|
@@ -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 vue328 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/tag/CheckableTag.d.ts
|
|
@@ -27,8 +27,8 @@ interface CheckableTagSlots {
|
|
|
27
27
|
default: () => any;
|
|
28
28
|
icon: () => any;
|
|
29
29
|
}
|
|
30
|
-
declare const CheckableTag:
|
|
30
|
+
declare const CheckableTag: vue328.DefineSetupFnComponent<CheckableTagProps, CheckableTagEmits, SlotsType<CheckableTagSlots>, CheckableTagProps & {
|
|
31
31
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
32
|
-
},
|
|
32
|
+
}, vue328.PublicProps>;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { CheckableTag, CheckableTagProps };
|
|
@@ -2,7 +2,7 @@ import { VueNode } from "../_util/type.js";
|
|
|
2
2
|
import { SemanticClassNames, SemanticStyles } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue326 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/tag/CheckableTagGroup.d.ts
|
|
8
8
|
type CheckableTagDefaultValue = string | number;
|
|
@@ -36,8 +36,8 @@ interface CheckableTagGroupEmits<CheckableTagValue = CheckableTagDefaultValue> {
|
|
|
36
36
|
'update:value': (value: CheckableTagValue | CheckableTagValue[] | null) => void;
|
|
37
37
|
[key: string]: (...args: any[]) => any;
|
|
38
38
|
}
|
|
39
|
-
declare const CheckableTagGroup:
|
|
39
|
+
declare const CheckableTagGroup: vue326.DefineSetupFnComponent<CheckableTagGroupProps<CheckableTagDefaultValue>, CheckableTagGroupEmits<CheckableTagDefaultValue>, {}, CheckableTagGroupProps<CheckableTagDefaultValue> & {
|
|
40
40
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
41
|
-
},
|
|
41
|
+
}, vue326.PublicProps>;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { CheckableTagGroup };
|
package/dist/tag/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ClosableType } from "../_util/hooks/useClosable.js";
|
|
|
6
6
|
import { CheckableTag, CheckableTagProps } from "./CheckableTag.js";
|
|
7
7
|
import { CheckableTagGroup } from "./CheckableTagGroup.js";
|
|
8
8
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as vue92 from "vue";
|
|
10
10
|
import { SlotsType } from "vue";
|
|
11
11
|
import { LiteralUnion } from "@v-c/util/dist/type";
|
|
12
12
|
|
|
@@ -38,9 +38,9 @@ interface TagEmits {
|
|
|
38
38
|
close: (ev: MouseEvent) => void;
|
|
39
39
|
[key: string]: (...args: any[]) => any;
|
|
40
40
|
}
|
|
41
|
-
declare const InternalTag:
|
|
41
|
+
declare const InternalTag: vue92.DefineSetupFnComponent<TagProps, TagEmits, SlotsType<TagSlots>, TagProps & {
|
|
42
42
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
43
|
-
},
|
|
43
|
+
}, vue92.PublicProps>;
|
|
44
44
|
declare const Tag: typeof InternalTag & {
|
|
45
45
|
CheckableTag: typeof CheckableTag;
|
|
46
46
|
};
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -5,15 +5,15 @@ import { GlobalToken } from "./interface/cssinjs-utils.js";
|
|
|
5
5
|
import "./interface/index.js";
|
|
6
6
|
import { getDesignToken } from "./getDesignToken.js";
|
|
7
7
|
import { derivative } from "./themes/default/index.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue4 from "vue";
|
|
9
9
|
import * as _antdv_next_cssinjs0 from "@antdv-next/cssinjs";
|
|
10
10
|
|
|
11
11
|
//#region src/theme/index.d.ts
|
|
12
12
|
/** Get current context Design Token. Will be different if you are using nest theme config. */
|
|
13
13
|
declare function useToken(): {
|
|
14
|
-
theme:
|
|
15
|
-
token:
|
|
16
|
-
hashId:
|
|
14
|
+
theme: vue4.Ref<_antdv_next_cssinjs0.Theme<SeedToken, AliasToken>, _antdv_next_cssinjs0.Theme<SeedToken, AliasToken>>;
|
|
15
|
+
token: vue4.Ref<GlobalToken, GlobalToken>;
|
|
16
|
+
hashId: vue4.Ref<string, string>;
|
|
17
17
|
};
|
|
18
18
|
declare const _default: {
|
|
19
19
|
/** Default seedToken */
|
|
@@ -45,12 +45,15 @@ const { genComponentStyleHook, genStyleHooks, genSubStyleComponent } = genStyleU
|
|
|
45
45
|
getCommonStyle: genCommonStyle,
|
|
46
46
|
getCompUnitless: (() => unitless)
|
|
47
47
|
});
|
|
48
|
-
function genCssVar(antCls,
|
|
49
|
-
const cssPrefix = `--${antCls.replace(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return withVar ? `var(${raw})` : raw;
|
|
48
|
+
function genCssVar(antCls, component) {
|
|
49
|
+
const cssPrefix = `--${antCls.replace(/\./g, "")}-${component}-`;
|
|
50
|
+
const varName = (name) => {
|
|
51
|
+
return `${cssPrefix}${name}`;
|
|
53
52
|
};
|
|
53
|
+
const varRef = (name, fallback) => {
|
|
54
|
+
return fallback ? `var(${cssPrefix}${name}, ${fallback})` : `var(${cssPrefix}${name})`;
|
|
55
|
+
};
|
|
56
|
+
return [varName, varRef];
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
//#endregion
|
|
@@ -4,7 +4,7 @@ import "../_util/hooks/index.js";
|
|
|
4
4
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
5
5
|
import "../date-picker/generatePicker/index.js";
|
|
6
6
|
import { PickerProps as PickerProps$1, RangePickerProps as RangePickerProps$1 } from "../date-picker/generatePicker/interface.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue17 from "vue";
|
|
8
8
|
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { PickerMode } from "@v-c/picker";
|
|
10
10
|
|
|
@@ -46,9 +46,9 @@ interface TimeRangePickerEmits<DateType = AnyObject> {
|
|
|
46
46
|
'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
|
|
47
47
|
[key: string]: (...args: any[]) => void;
|
|
48
48
|
}
|
|
49
|
-
declare const RangePicker$1:
|
|
49
|
+
declare const RangePicker$1: vue17.DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<AnyObject>, {}, TimeRangePickerProps & {
|
|
50
50
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
51
|
-
},
|
|
51
|
+
}, vue17.PublicProps>;
|
|
52
52
|
interface TimePickerProps extends Omit<PickerTimeProps<AnyObject>, 'picker' | 'classes' | 'styles'> {
|
|
53
53
|
addon?: () => VueNode;
|
|
54
54
|
status?: InputStatus;
|
|
@@ -79,15 +79,15 @@ interface TimePickerEmits<DateType = AnyObject> {
|
|
|
79
79
|
'keydown': (e: KeyboardEvent, preventDefault: VoidFunction) => void;
|
|
80
80
|
[key: string]: (...args: any[]) => void;
|
|
81
81
|
}
|
|
82
|
-
declare const TimePicker:
|
|
82
|
+
declare const TimePicker: vue17.DefineSetupFnComponent<TimePickerProps, TimePickerEmits<AnyObject>, SlotsType<TimePickerSlots>, TimePickerProps & {
|
|
83
83
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
84
|
-
},
|
|
84
|
+
}, vue17.PublicProps>;
|
|
85
85
|
type MergedTimePicker = typeof TimePicker & {
|
|
86
86
|
RangePicker: typeof RangePicker$1;
|
|
87
87
|
};
|
|
88
88
|
declare const _default: MergedTimePicker;
|
|
89
|
-
declare const TimeRangePicker:
|
|
89
|
+
declare const TimeRangePicker: vue17.DefineSetupFnComponent<TimeRangePickerProps, TimeRangePickerEmits<AnyObject>, {}, TimeRangePickerProps & {
|
|
90
90
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
91
|
-
},
|
|
91
|
+
}, vue17.PublicProps>;
|
|
92
92
|
//#endregion
|
|
93
93
|
export { TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, _default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
3
|
import { TimelineItemProps } from "./TimelineItem.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue286 from "vue";
|
|
5
5
|
import { SlotsType } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/timeline/Timeline.d.ts
|
|
@@ -40,8 +40,8 @@ interface TimelineSlots {
|
|
|
40
40
|
index: number;
|
|
41
41
|
}) => void;
|
|
42
42
|
}
|
|
43
|
-
declare const Timeline:
|
|
43
|
+
declare const Timeline: vue286.DefineSetupFnComponent<TimelineProps, EmptyEmit, SlotsType<TimelineSlots>, TimelineProps & {
|
|
44
44
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
45
|
-
},
|
|
45
|
+
}, vue286.PublicProps>;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { Timeline, TimelineProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TooltipProps } from "./index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue312 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/tooltip/PurePanel.d.ts
|
|
5
5
|
interface PurePanelProps extends TooltipProps {}
|
|
6
6
|
/** @private Internal Component. Do not use in your production. */
|
|
7
|
-
declare const PurePanel:
|
|
7
|
+
declare const PurePanel: vue312.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue312.PublicProps>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PurePanel };
|
|
@@ -14,15 +14,15 @@ function _isSlot(s) {
|
|
|
14
14
|
}
|
|
15
15
|
/** @private Internal Component. Do not use in your production. */
|
|
16
16
|
const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
17
|
-
const { prefixCls,
|
|
18
|
-
const rootCls =
|
|
17
|
+
const { prefixCls, rootPrefixCls } = useComponentBaseConfig("tooltip", props);
|
|
18
|
+
const rootCls = rootPrefixCls;
|
|
19
19
|
const { placement, classes, styles } = toPropsRefs(props, "placement", "classes", "styles");
|
|
20
20
|
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
21
21
|
const mergedProps = computed(() => ({
|
|
22
22
|
...props,
|
|
23
23
|
placement: placement.value
|
|
24
24
|
}));
|
|
25
|
-
const colorInfo = computed(() => parseColor(prefixCls.value, props.color));
|
|
25
|
+
const colorInfo = computed(() => parseColor(rootPrefixCls.value, prefixCls.value, props.color));
|
|
26
26
|
const innerStyles = computed(() => ({ container: colorInfo.value.overlayStyle }));
|
|
27
27
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(classes), useToArr(innerStyles, styles), useToProps(mergedProps));
|
|
28
28
|
return () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue310 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/tooltip/UniqueProvider/index.d.ts
|
|
4
|
-
declare const UniqueProvider:
|
|
4
|
+
declare const UniqueProvider: vue310.DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, vue310.PublicProps>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { UniqueProvider };
|
package/dist/tooltip/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { AdjustOverflow } from "../_util/placements.js";
|
|
|
6
6
|
import { PurePanel } from "./PurePanel.js";
|
|
7
7
|
import { UniqueProvider as UniqueProvider$1 } from "./UniqueProvider/index.js";
|
|
8
8
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as vue159 from "vue";
|
|
10
10
|
import { SlotsType } from "vue";
|
|
11
11
|
import { TooltipProps, placements } from "@v-c/tooltip";
|
|
12
12
|
import { ActionType, AlignType } from "@v-c/trigger";
|
|
@@ -84,9 +84,9 @@ interface TooltipSlots {
|
|
|
84
84
|
interface InternalTooltipProps extends TooltipProps$1 {
|
|
85
85
|
dataPopoverInject?: boolean;
|
|
86
86
|
}
|
|
87
|
-
declare const InternalTooltip:
|
|
87
|
+
declare const InternalTooltip: vue159.DefineSetupFnComponent<InternalTooltipProps, TooltipEmits, SlotsType<TooltipSlots>, InternalTooltipProps & {
|
|
88
88
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
89
|
-
},
|
|
89
|
+
}, vue159.PublicProps>;
|
|
90
90
|
declare const _default: typeof InternalTooltip & {
|
|
91
91
|
UniqueProvider: typeof UniqueProvider$1;
|
|
92
92
|
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
package/dist/tooltip/index.js
CHANGED
|
@@ -30,7 +30,7 @@ function _isSlot(s) {
|
|
|
30
30
|
}
|
|
31
31
|
const InternalTooltip = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose, emit }) => {
|
|
32
32
|
const [, token] = useToken();
|
|
33
|
-
const {
|
|
33
|
+
const { prefixCls, rootPrefixCls, direction, arrow: contextArrow, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, getPopupContainer: getContextPopupContainer } = useComponentBaseConfig("tooltip", props, ["arrow"]);
|
|
34
34
|
const { arrow: tooltipArrow, builtinPlacements, autoAdjustOverflow, classes, styles } = toPropsRefs(props, "arrow", "builtinPlacements", "autoAdjustOverflow", "classes", "styles");
|
|
35
35
|
const mergedArrow = useMergedArrow_default(tooltipArrow, contextArrow);
|
|
36
36
|
const mergedShowArrow = computed(() => mergedArrow.value?.show);
|
|
@@ -69,7 +69,6 @@ const InternalTooltip = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
69
69
|
return props;
|
|
70
70
|
});
|
|
71
71
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
|
|
72
|
-
const rootPrefixCls = computed(() => getPrefixCls());
|
|
73
72
|
const injectFromPopover = props.dataPopoverInject;
|
|
74
73
|
const rootCls = useCSSVarCls_default(prefixCls);
|
|
75
74
|
const [hashId, cssVarCls] = style_default(prefixCls, rootCls, !injectFromPopover);
|
|
@@ -85,7 +84,7 @@ const InternalTooltip = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
85
84
|
child = isVNode(child) ? child : createVNode("span", null, [child]);
|
|
86
85
|
const childProps = child?.props ?? {};
|
|
87
86
|
const childCls = !childProps?.class || typeof childProps?.class === "string" ? clsx(childProps.class, openClass || `${prefixCls.value}-open`) : childProps.class;
|
|
88
|
-
const colorInfo = parseColor(prefixCls.value, color);
|
|
87
|
+
const colorInfo = parseColor(rootPrefixCls.value, prefixCls.value, color);
|
|
89
88
|
const arrowContentStyle = colorInfo.arrowStyle;
|
|
90
89
|
const themeCls = clsx(rootCls.value, hashId.value, cssVarCls.value);
|
|
91
90
|
const rootClassNames = clsx({ [`${prefixCls.value}-rtl`]: direction.value === "rtl" }, colorInfo.className, rootClass, themeCls, contextClassName.value, mergedClassNames.value.root);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import genPresetColor from "../../theme/util/genPresetColor.js";
|
|
2
2
|
import { resetComponent } from "../../style/index.js";
|
|
3
|
-
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
|
+
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
4
4
|
import { mergeToken } from "../../theme/internal.js";
|
|
5
5
|
import { getArrowToken } from "../../style/roundedArrow.js";
|
|
6
6
|
import getArrowStyle, { MAX_VERTICAL_CONTENT_RADIUS, getArrowOffsetToken } from "../../style/placementArrow.js";
|
|
@@ -10,14 +10,16 @@ import "../../style/motion/index.js";
|
|
|
10
10
|
import { unit } from "@antdv-next/cssinjs";
|
|
11
11
|
|
|
12
12
|
//#region src/tooltip/style/index.ts
|
|
13
|
+
const FALL_BACK_ORIGIN = "50%";
|
|
13
14
|
const genTooltipStyle = (token) => {
|
|
14
|
-
const { calc, componentCls, tooltipMaxWidth, tooltipColor, tooltipBg, tooltipBorderRadius, zIndexPopup, controlHeight, boxShadowSecondary, paddingSM, paddingXS, arrowOffsetHorizontal, sizePopupArrow } = token;
|
|
15
|
+
const { calc, componentCls, tooltipMaxWidth, tooltipColor, tooltipBg, tooltipBorderRadius, zIndexPopup, controlHeight, boxShadowSecondary, paddingSM, paddingXS, arrowOffsetHorizontal, sizePopupArrow, antCls } = token;
|
|
16
|
+
const [varName, varRef] = genCssVar(antCls, "tooltip");
|
|
15
17
|
const edgeAlignMinWidth = calc(tooltipBorderRadius).add(sizePopupArrow).add(arrowOffsetHorizontal).equal();
|
|
16
18
|
const sharedBodyStyle = {
|
|
17
19
|
minWidth: calc(tooltipBorderRadius).mul(2).add(sizePopupArrow).equal(),
|
|
18
20
|
minHeight: controlHeight,
|
|
19
21
|
padding: `${unit(token.calc(paddingSM).div(2).equal())} ${unit(paddingXS)}`,
|
|
20
|
-
color:
|
|
22
|
+
color: varRef("overlay-color", tooltipColor),
|
|
21
23
|
textAlign: "start",
|
|
22
24
|
textDecoration: "none",
|
|
23
25
|
wordWrap: "break-word",
|
|
@@ -27,8 +29,8 @@ const genTooltipStyle = (token) => {
|
|
|
27
29
|
boxSizing: "border-box"
|
|
28
30
|
};
|
|
29
31
|
const sharedTransformOrigin = {
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
+
[varName("valid-offset-x")]: varRef("arrow-offset-horizontal", "var(--arrow-x)"),
|
|
33
|
+
transformOrigin: [varRef("valid-offset-x", FALL_BACK_ORIGIN), `var(--arrow-y, ${FALL_BACK_ORIGIN})`].join(" ")
|
|
32
34
|
};
|
|
33
35
|
return [
|
|
34
36
|
{ [componentCls]: {
|
|
@@ -41,7 +43,7 @@ const genTooltipStyle = (token) => {
|
|
|
41
43
|
"visibility": "visible",
|
|
42
44
|
...sharedTransformOrigin,
|
|
43
45
|
"&-hidden": { display: "none" },
|
|
44
|
-
"
|
|
46
|
+
[varName("arrow-background-color")]: tooltipBg,
|
|
45
47
|
[`${componentCls}-container`]: [sharedBodyStyle, initFadeMotion(token, true)],
|
|
46
48
|
[`&:has(~ ${componentCls}-unique-container)`]: { [`${componentCls}-container`]: {
|
|
47
49
|
border: "none",
|
|
@@ -65,11 +67,11 @@ const genTooltipStyle = (token) => {
|
|
|
65
67
|
[`${componentCls}-content`]: { position: "relative" },
|
|
66
68
|
...genPresetColor(token, (colorKey, { darkColor }) => ({ [`&${componentCls}-${colorKey}`]: {
|
|
67
69
|
[`${componentCls}-container`]: { backgroundColor: darkColor },
|
|
68
|
-
[`${componentCls}-arrow`]: { "
|
|
70
|
+
[`${componentCls}-arrow`]: { [varName("arrow-background-color")]: darkColor }
|
|
69
71
|
} })),
|
|
70
72
|
"&-rtl": { direction: "rtl" }
|
|
71
73
|
} },
|
|
72
|
-
getArrowStyle(token, "
|
|
74
|
+
getArrowStyle(token, varRef("arrow-background-color")),
|
|
73
75
|
{ [`${componentCls}-pure`]: {
|
|
74
76
|
position: "relative",
|
|
75
77
|
maxWidth: "none",
|
package/dist/tooltip/util.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
1
2
|
import { isPresetColor } from "../_util/colors.js";
|
|
2
3
|
import { generateColor } from "../color-picker/util.js";
|
|
3
4
|
import { classNames } from "@v-c/util";
|
|
4
5
|
|
|
5
6
|
//#region src/tooltip/util.ts
|
|
6
|
-
function parseColor(prefixCls, color) {
|
|
7
|
+
function parseColor(rootPrefixCls, prefixCls, color) {
|
|
7
8
|
const isInternalColor = isPresetColor(color);
|
|
9
|
+
const [varName] = genCssVar(rootPrefixCls, "tooltip");
|
|
8
10
|
const className = classNames({ [`${prefixCls}-${color}`]: color && isInternalColor });
|
|
9
11
|
const overlayStyle = {};
|
|
10
12
|
const arrowStyle = {};
|
|
@@ -12,8 +14,8 @@ function parseColor(prefixCls, color) {
|
|
|
12
14
|
const textColor = (.299 * rgb.r + .587 * rgb.g + .114 * rgb.b) / 255 < .5 ? "#FFF" : "#000";
|
|
13
15
|
if (color && !isInternalColor) {
|
|
14
16
|
overlayStyle.background = color;
|
|
15
|
-
overlayStyle["
|
|
16
|
-
arrowStyle["
|
|
17
|
+
overlayStyle[varName("overlay-color")] = textColor;
|
|
18
|
+
arrowStyle[varName("arrow-background-color")] = color;
|
|
17
19
|
}
|
|
18
20
|
return {
|
|
19
21
|
className,
|
package/dist/tour/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TourEmits, TourLocale, TourProps, TourSemanticName, TourSlots, TourStepProps, TourStylesType } from "./interface.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue59 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/tour/index.d.ts
|
|
6
|
-
declare const Tour:
|
|
6
|
+
declare const Tour: vue59.DefineSetupFnComponent<TourProps, TourEmits, SlotsType<TourSlots>, TourProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue59.PublicProps>;
|
|
9
9
|
type TourStepItem = TourStepProps;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Tour, TourStepItem };
|