antdv-next 1.0.0-beta.3 → 1.0.0-rc.1
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/PurePanel.mjs +4 -4
- package/dist/_util/hooks/useClosable.d.mts +0 -1
- package/dist/_util/hooks/useClosable.mjs +1 -1
- package/dist/_util/hooks/useMergeSemantic.d.mts +2 -3
- package/dist/_util/hooks/useMergeSemantic.mjs +9 -9
- package/dist/_util/tools.mjs +1 -1
- package/dist/_util/warning.d.mts +0 -1
- package/dist/affix/index.d.mts +3 -3
- package/dist/alert/Alert.d.mts +24 -7
- package/dist/alert/Alert.mjs +91 -28
- package/dist/anchor/Anchor.d.mts +18 -7
- package/dist/antd.css +1 -1
- package/dist/antd.js +101 -112
- package/dist/app/App.d.mts +2 -2
- package/dist/app/App.mjs +2 -2
- package/dist/auto-complete/index.d.mts +23 -11
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/avatar/Avatar.d.mts +3 -3
- package/dist/avatar/AvatarGroup.d.mts +2 -2
- package/dist/avatar/style/index.mjs +2 -2
- package/dist/badge/Ribbon.d.mts +21 -5
- package/dist/badge/Ribbon.mjs +44 -23
- package/dist/badge/SingleNumber.mjs +2 -1
- package/dist/badge/index.d.mts +14 -7
- package/dist/badge/style/ribbon.mjs +1 -1
- package/dist/breadcrumb/Breadcrumb.d.mts +17 -6
- package/dist/breadcrumb/Breadcrumb.mjs +18 -3
- package/dist/breadcrumb/BreadcrumbItem.d.mts +1 -0
- package/dist/breadcrumb/BreadcrumbItem.mjs +29 -4
- package/dist/breadcrumb/style/index.mjs +5 -5
- package/dist/button/Button.d.mts +18 -10
- package/dist/button/buttonHelper.d.mts +0 -1
- package/dist/button/index.d.mts +1 -1
- package/dist/button/style/compact.mjs +28 -19
- package/dist/button/style/token.d.mts +0 -5
- package/dist/button/style/variant.mjs +27 -3
- package/dist/calendar/generateCalendar.d.mts +20 -7
- package/dist/calendar/generateCalendar.mjs +1 -1
- package/dist/calendar/index.d.mts +3 -3
- package/dist/card/Card.d.mts +23 -6
- package/dist/card/CardGrid.d.mts +2 -2
- package/dist/card/CardMeta.d.mts +20 -7
- package/dist/carousel/index.d.mts +3 -3
- package/dist/cascader/Panel.d.mts +3 -3
- package/dist/cascader/index.d.mts +31 -10
- package/dist/checkbox/Checkbox.d.mts +16 -7
- package/dist/checkbox/Checkbox.mjs +1 -1
- package/dist/checkbox/Group.d.mts +4 -3
- package/dist/checkbox/Group.mjs +11 -2
- package/dist/collapse/Collapse.d.mts +19 -6
- package/dist/collapse/Collapse.mjs +1 -1
- package/dist/color-picker/ColorPicker.d.mts +3 -3
- package/dist/color-picker/interface.d.mts +15 -7
- package/dist/color-picker/style/input.mjs +2 -0
- package/dist/components.d.mts +2 -3
- package/dist/config-provider/context.d.mts +58 -12
- package/dist/config-provider/context.mjs +3 -3
- package/dist/config-provider/define.d.mts +7 -1
- package/dist/config-provider/index.d.mts +3 -4
- package/dist/config-provider/index.mjs +82 -8
- package/dist/date-picker/generatePicker/index.d.mts +15 -15
- package/dist/date-picker/generatePicker/interface.d.mts +37 -10
- package/dist/date-picker/hooks/useMergedPickerSemantic.mjs +2 -2
- package/dist/date-picker/index.d.mts +25 -25
- package/dist/descriptions/Cell.mjs +5 -5
- package/dist/descriptions/DescriptionsContext.d.mts +13 -0
- package/dist/descriptions/Item.d.mts +3 -3
- package/dist/descriptions/hooks/useRow.mjs +7 -7
- package/dist/descriptions/index.d.mts +22 -7
- package/dist/divider/index.d.mts +15 -5
- package/dist/drawer/DrawerPanel.d.mts +28 -3
- package/dist/drawer/DrawerPanel.mjs +3 -3
- package/dist/drawer/index.d.mts +4 -4
- package/dist/drawer/index.mjs +4 -0
- package/dist/drawer/style/index.mjs +9 -2
- package/dist/dropdown/dropdown.d.mts +20 -7
- package/dist/empty/index.d.mts +18 -7
- package/dist/flex/index.d.mts +3 -3
- package/dist/float-button/BackTop.d.mts +3 -3
- package/dist/float-button/FloatButton.d.mts +6 -7
- package/dist/float-button/FloatButtonGroup.d.mts +25 -6
- package/dist/form/Form.d.mts +16 -7
- package/dist/form/FormItem/index.d.mts +3 -3
- package/dist/form/FormItem/index.mjs +1 -1
- package/dist/form/FormItemInput.d.mts +0 -1
- package/dist/grid/index.d.mts +2 -2
- package/dist/grid/row.d.mts +2 -2
- package/dist/image/PreviewGroup.d.mts +3 -5
- package/dist/image/index.d.mts +34 -14
- package/dist/index.d.mts +3 -4
- package/dist/input/Input.d.mts +17 -4
- package/dist/input/Input.mjs +2 -2
- package/dist/input/OTP/index.d.mts +13 -4
- package/dist/input/Password.mjs +3 -3
- package/dist/input/Search.d.mts +21 -9
- package/dist/input/TextArea.d.mts +16 -7
- package/dist/input/TextArea.mjs +2 -2
- package/dist/input/index.d.mts +11 -11
- package/dist/input/style/index.mjs +5 -2
- package/dist/input/style/variants.mjs +2 -1
- package/dist/input-number/index.d.mts +20 -7
- package/dist/layout/index.d.mts +6 -6
- package/dist/layout/layout.d.mts +2 -3
- package/dist/locale/index.d.mts +0 -1
- package/dist/masonry/Masonry.d.mts +14 -7
- package/dist/masonry/MasonryItem.mjs +2 -2
- package/dist/mentions/index.d.mts +18 -7
- package/dist/mentions/index.mjs +2 -2
- package/dist/mentions/style/index.mjs +2 -2
- package/dist/menu/MenuContext.d.mts +0 -1
- package/dist/menu/MenuDivider.d.mts +2 -2
- package/dist/menu/MenuItem.d.mts +3 -3
- package/dist/menu/MenuItem.mjs +4 -3
- package/dist/menu/SubMenu.d.mts +3 -3
- package/dist/menu/SubMenu.mjs +5 -0
- package/dist/menu/index.d.mts +5 -5
- package/dist/menu/menu.d.mts +42 -10
- package/dist/menu/menu.mjs +2 -2
- package/dist/menu/style/index.d.mts +1 -1
- package/dist/menu/style/vertical.mjs +1 -1
- package/dist/message/PurePanel.d.mts +5 -7
- package/dist/message/index.mjs +2 -2
- package/dist/message/interface.d.mts +20 -4
- package/dist/message/useMessage.d.mts +0 -1
- package/dist/modal/Modal.d.mts +3 -3
- package/dist/modal/confirm.mjs +8 -4
- package/dist/modal/interface.d.mts +22 -3
- package/dist/modal/style/index.mjs +11 -8
- package/dist/notification/PurePanel.d.mts +8 -8
- package/dist/notification/index.mjs +2 -2
- package/dist/notification/interface.d.mts +18 -5
- package/dist/notification/style/index.mjs +8 -8
- package/dist/notification/useNotification.d.mts +2 -3
- package/dist/package.d.mts +4 -0
- package/dist/package.mjs +1 -1
- package/dist/pagination/Pagination.d.mts +3 -3
- package/dist/pagination/Pagination.mjs +11 -10
- package/dist/pagination/interface.d.mts +14 -5
- package/dist/pagination/style/bordered.mjs +2 -2
- package/dist/pagination/style/index.d.mts +10 -5
- package/dist/pagination/style/index.mjs +52 -103
- package/dist/popconfirm/PurePanel.d.mts +5 -7
- package/dist/popconfirm/index.d.mts +8 -6
- package/dist/popconfirm/index.mjs +7 -3
- package/dist/popover/index.d.mts +16 -9
- package/dist/popover/index.mjs +8 -5
- package/dist/progress/Line.mjs +3 -3
- package/dist/progress/progress.d.mts +20 -7
- package/dist/qrcode/index.d.mts +3 -3
- package/dist/qrcode/index.mjs +2 -1
- package/dist/qrcode/interface.d.mts +11 -3
- package/dist/radio/group.mjs +3 -3
- package/dist/radio/index.d.mts +5 -5
- package/dist/radio/interface.d.mts +13 -3
- package/dist/radio/radio.d.mts +3 -3
- package/dist/radio/radio.mjs +1 -1
- package/dist/rate/index.d.mts +3 -3
- package/dist/result/index.d.mts +22 -7
- package/dist/result/index.mjs +11 -6
- package/dist/result/noFound.d.mts +2 -2
- package/dist/result/serverError.d.mts +2 -2
- package/dist/result/unauthorized.d.mts +2 -2
- package/dist/segmented/index.d.mts +18 -7
- package/dist/select/index.d.mts +48 -20
- package/dist/skeleton/Avatar.d.mts +2 -2
- package/dist/skeleton/Button.d.mts +2 -2
- package/dist/skeleton/Image.d.mts +2 -2
- package/dist/skeleton/Input.d.mts +2 -2
- package/dist/skeleton/Node.d.mts +3 -3
- package/dist/skeleton/Skeleton.d.mts +22 -7
- package/dist/slider/index.d.mts +19 -6
- package/dist/slider/index.mjs +4 -4
- package/dist/space/index.d.mts +18 -9
- package/dist/spin/Indicator/Progress.mjs +3 -3
- package/dist/spin/index.d.mts +19 -6
- package/dist/splitter/SplitBar.mjs +12 -12
- package/dist/splitter/Splitter.d.mts +3 -3
- package/dist/splitter/Splitter.mjs +1 -1
- package/dist/splitter/hooks/useItems.mjs +2 -2
- package/dist/splitter/hooks/useResizable.mjs +5 -5
- package/dist/splitter/hooks/useResize.mjs +2 -2
- package/dist/splitter/index.d.mts +2 -2
- package/dist/splitter/interface.d.mts +21 -7
- package/dist/splitter/style/index.mjs +2 -28
- package/dist/statistic/Statistic.d.mts +21 -6
- package/dist/statistic/Statistic.mjs +1 -1
- package/dist/statistic/Timer.d.mts +5 -5
- package/dist/statistic/index.d.mts +5 -5
- package/dist/steps/context.mjs +5 -2
- package/dist/steps/index.d.mts +31 -9
- package/dist/steps/index.mjs +3 -3
- package/dist/style/motion/fade.mjs +25 -0
- package/dist/switch/index.d.mts +14 -7
- package/dist/switch/index.mjs +2 -2
- package/dist/table/Column.d.mts +3 -3
- package/dist/table/ColumnGroup.d.mts +3 -3
- package/dist/table/InternalTable.d.mts +35 -13
- package/dist/table/InternalTable.mjs +12 -6
- package/dist/table/Table.d.mts +3 -3
- package/dist/table/TableMeasureRowContext.mjs +20 -0
- package/dist/table/hooks/useFilter/FilterDropdown.mjs +17 -12
- package/dist/table/hooks/useSelection.mjs +1 -1
- package/dist/table/interface.d.mts +1 -2
- package/dist/table/style/virtual.mjs +1 -1
- package/dist/tabs/TabPane.d.mts +3 -3
- package/dist/tabs/index.d.mts +27 -11
- package/dist/tabs/index.mjs +5 -5
- package/dist/tag/CheckableTag.d.mts +3 -3
- package/dist/tag/CheckableTagGroup.d.mts +3 -3
- package/dist/tag/index.d.mts +16 -7
- package/dist/tag/index.mjs +1 -1
- package/dist/tag/style/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -2
- package/dist/theme/interface/maps/index.d.mts +0 -1
- package/dist/theme/useToken.mjs +3 -3
- package/dist/theme/util/genStyleUtils.mjs +3 -2
- package/dist/time-picker/index.d.mts +38 -14
- package/dist/time-picker/index.mjs +1 -1
- package/dist/timeline/Timeline.d.mts +49 -14
- package/dist/timeline/Timeline.mjs +82 -11
- package/dist/timeline/index.d.mts +1 -2
- package/dist/timeline/style/horizontal.mjs +73 -0
- package/dist/timeline/style/index.d.mts +10 -5
- package/dist/timeline/style/index.mjs +93 -137
- package/dist/timeline/useItems.mjs +52 -0
- package/dist/tooltip/PurePanel.d.mts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.mts +2 -2
- package/dist/tooltip/index.d.mts +17 -8
- package/dist/tooltip/index.mjs +11 -3
- package/dist/tooltip/style/index.d.mts +7 -1
- package/dist/tooltip/style/index.mjs +3 -2
- package/dist/tour/index.d.mts +3 -3
- package/dist/tour/index.mjs +1 -1
- package/dist/tour/interface.d.mts +29 -3
- package/dist/transfer/Actions.d.mts +2 -2
- package/dist/transfer/ListItem.mjs +4 -4
- package/dist/transfer/Section.d.mts +2 -2
- package/dist/transfer/Transfer.d.mts +3 -3
- package/dist/transfer/Transfer.mjs +4 -4
- package/dist/transfer/index.d.mts +1 -1
- package/dist/transfer/interface.d.mts +32 -7
- package/dist/transfer/search.d.mts +3 -3
- package/dist/tree/DirectoryTree.d.mts +3 -3
- package/dist/tree/Tree.d.mts +18 -7
- package/dist/tree/index.d.mts +0 -1
- package/dist/tree-select/index.d.mts +41 -12
- package/dist/tree-select/style/index.d.mts +1 -1
- package/dist/typography/Editable.mjs +4 -4
- package/dist/typography/Link.d.mts +3 -3
- package/dist/typography/Paragraph.d.mts +3 -3
- package/dist/typography/Text.d.mts +3 -3
- package/dist/typography/Title.d.mts +3 -3
- package/dist/typography/Typography.d.mts +3 -3
- package/dist/typography/Typography.mjs +2 -12
- package/dist/typography/index.d.mts +9 -10
- package/dist/typography/interface.d.mts +0 -2
- package/dist/typography/style/mixins.mjs +3 -3
- package/dist/upload/Dragger.d.mts +3 -3
- package/dist/upload/Upload.d.mts +3 -4
- package/dist/upload/index.d.mts +3 -3
- package/dist/upload/interface.d.mts +13 -4
- package/dist/watermark/index.d.mts +2 -2
- package/dist/watermark/index.mjs +3 -3
- package/package.json +45 -41
- package/web-tags.json +1918 -1873
- package/web-types.json +6815 -7198
- package/dist/timeline/TimelineItem.d.mts +0 -20
- package/dist/timeline/TimelineItem.mjs +0 -115
- package/dist/timeline/TimelineItemList.mjs +0 -158
package/dist/button/Button.d.mts
CHANGED
|
@@ -4,14 +4,23 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./buttonHelper.mjs";
|
|
6
6
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import { SlotsType } from "vue";
|
|
7
|
+
import * as vue249 from "vue";
|
|
8
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/button/Button.d.ts
|
|
11
11
|
type LegacyButtonType = ButtonType | 'danger';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
interface ButtonSemanticClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
content?: string;
|
|
16
|
+
}
|
|
17
|
+
interface ButtonSemanticStyles {
|
|
18
|
+
root?: CSSProperties;
|
|
19
|
+
icon?: CSSProperties;
|
|
20
|
+
content?: CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
type ButtonClassNamesType = SemanticClassNamesType<BaseButtonProps, ButtonSemanticClassNames>;
|
|
23
|
+
type ButtonStylesType = SemanticStylesType<BaseButtonProps, ButtonSemanticStyles>;
|
|
15
24
|
interface BaseButtonProps extends ComponentBaseProps {
|
|
16
25
|
type?: ButtonType;
|
|
17
26
|
color?: ButtonColorType;
|
|
@@ -50,13 +59,12 @@ interface ButtonSlots {
|
|
|
50
59
|
icon?: () => any;
|
|
51
60
|
loadingIcon?: () => any;
|
|
52
61
|
}
|
|
53
|
-
declare const InternalCompoundedButton:
|
|
62
|
+
declare const InternalCompoundedButton: vue249.DefineSetupFnComponent<ButtonProps, ButtonEmits, SlotsType<ButtonSlots>, ButtonProps & {
|
|
54
63
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
55
|
-
},
|
|
64
|
+
}, vue249.PublicProps>;
|
|
56
65
|
type CompoundedComponent = typeof InternalCompoundedButton & {
|
|
57
|
-
/** @internal */
|
|
58
|
-
__ANT_BUTTON: boolean;
|
|
66
|
+
/** @internal */__ANT_BUTTON: boolean;
|
|
59
67
|
};
|
|
60
68
|
declare const Button: CompoundedComponent;
|
|
61
69
|
//#endregion
|
|
62
|
-
export { Button, ButtonProps,
|
|
70
|
+
export { Button, ButtonProps, ButtonSemanticClassNames, ButtonSemanticStyles, LegacyButtonType };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, VNodeChild } from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/button/buttonHelper.d.ts
|
|
4
|
-
|
|
5
4
|
declare const _ButtonTypes: readonly ["default", "primary", "dashed", "link", "text"];
|
|
6
5
|
type ButtonType = (typeof _ButtonTypes)[number];
|
|
7
6
|
declare const _ButtonShapes: readonly ["default", "circle", "round", "square"];
|
package/dist/button/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SizeType } from "../config-provider/SizeContext.mjs";
|
|
2
2
|
import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType, _ButtonColorTypes, _ButtonVariantTypes } from "./buttonHelper.mjs";
|
|
3
|
-
import { Button, ButtonProps,
|
|
3
|
+
import { Button, ButtonProps, LegacyButtonType } from "./Button.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { genSubStyleComponent } from "../../theme/util/genStyleUtils.mjs";
|
|
1
|
+
import { genCssVar, genSubStyleComponent } from "../../theme/util/genStyleUtils.mjs";
|
|
2
2
|
import "../../theme/internal.mjs";
|
|
3
3
|
import { prepareComponentToken, prepareToken } from "./token.mjs";
|
|
4
4
|
import { genCompactItemStyle } from "../../style/compact-item.mjs";
|
|
@@ -6,28 +6,37 @@ import { genCompactItemVerticalStyle } from "../../style/compact-item-vertical.m
|
|
|
6
6
|
|
|
7
7
|
//#region src/button/style/compact.ts
|
|
8
8
|
const genButtonCompactStyle = (token) => {
|
|
9
|
-
const {
|
|
9
|
+
const { antCls, componentCls, lineWidth, calc, colorBgContainer } = token;
|
|
10
|
+
const solidSelector = `${componentCls}-variant-solid:not([disabled])`;
|
|
10
11
|
const insetOffset = calc(lineWidth).mul(-1).equal();
|
|
12
|
+
const [varName, varRef] = genCssVar(antCls, "btn");
|
|
11
13
|
const getCompactBorderStyle = (vertical) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
return { [`${componentCls}-compact${vertical ? "-vertical" : ""}-item`]: {
|
|
15
|
+
[varName("compact-connect-border-color")]: varRef("bg-color-hover"),
|
|
16
|
+
[`&${solidSelector}`]: {
|
|
17
|
+
"transition": `none`,
|
|
18
|
+
[`& + ${solidSelector}:before`]: [{
|
|
19
|
+
position: "absolute",
|
|
20
|
+
backgroundColor: varRef("compact-connect-border-color"),
|
|
21
|
+
content: "\"\""
|
|
22
|
+
}, vertical ? {
|
|
23
|
+
top: insetOffset,
|
|
24
|
+
insetInline: insetOffset,
|
|
25
|
+
height: lineWidth
|
|
26
|
+
} : {
|
|
27
|
+
insetBlock: insetOffset,
|
|
28
|
+
insetInlineStart: insetOffset,
|
|
29
|
+
width: lineWidth
|
|
30
|
+
}],
|
|
31
|
+
"&:hover:before": { display: "none" }
|
|
24
32
|
}
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
return {
|
|
28
|
-
...getCompactBorderStyle(),
|
|
29
|
-
...getCompactBorderStyle(true)
|
|
33
|
+
} };
|
|
30
34
|
};
|
|
35
|
+
return [
|
|
36
|
+
getCompactBorderStyle(),
|
|
37
|
+
getCompactBorderStyle(true),
|
|
38
|
+
{ [`${solidSelector}${componentCls}-color-default`]: { [varName("compact-connect-border-color")]: `color-mix(in srgb, ${varRef("bg-color-hover")} 75%, ${colorBgContainer})` } }
|
|
39
|
+
];
|
|
31
40
|
};
|
|
32
41
|
var compact_default = genSubStyleComponent(["Button", "compact"], (token) => {
|
|
33
42
|
const buttonToken = prepareToken(token);
|
|
@@ -174,11 +174,6 @@ interface ComponentToken {
|
|
|
174
174
|
* @descEN Icon size of small button which only contains icon
|
|
175
175
|
*/
|
|
176
176
|
onlyIconSizeSM: number | string;
|
|
177
|
-
/**
|
|
178
|
-
* @desc 按钮组边框颜色
|
|
179
|
-
* @descEN Border color of button group
|
|
180
|
-
*/
|
|
181
|
-
groupBorderColor: string;
|
|
182
177
|
/**
|
|
183
178
|
* @desc 链接按钮悬浮态背景色
|
|
184
179
|
* @descEN Background color of link button when hover
|
|
@@ -117,7 +117,12 @@ const genVariantStyle = (token) => {
|
|
|
117
117
|
[varName("color-light")]: token.colorPrimaryBg,
|
|
118
118
|
[varName("color-light-hover")]: token.colorPrimaryBgHover,
|
|
119
119
|
[varName("color-light-active")]: token.colorPrimaryBorder,
|
|
120
|
-
[varName("shadow")]: token.primaryShadow
|
|
120
|
+
[varName("shadow")]: token.primaryShadow,
|
|
121
|
+
[`&${componentCls}-variant-solid`]: {
|
|
122
|
+
[varName("text-color")]: token.primaryColor,
|
|
123
|
+
[varName("text-color-hover")]: varRef("text-color"),
|
|
124
|
+
[varName("text-color-active")]: varRef("text-color")
|
|
125
|
+
}
|
|
121
126
|
},
|
|
122
127
|
[`&${componentCls}-color-dangerous`]: {
|
|
123
128
|
[varName("color-base")]: token.colorError,
|
|
@@ -126,7 +131,12 @@ const genVariantStyle = (token) => {
|
|
|
126
131
|
[varName("color-light")]: token.colorErrorBg,
|
|
127
132
|
[varName("color-light-hover")]: token.colorErrorBgFilledHover,
|
|
128
133
|
[varName("color-light-active")]: token.colorErrorBgActive,
|
|
129
|
-
[varName("shadow")]: token.dangerShadow
|
|
134
|
+
[varName("shadow")]: token.dangerShadow,
|
|
135
|
+
[`&${componentCls}-variant-solid`]: {
|
|
136
|
+
[varName("text-color")]: token.dangerColor,
|
|
137
|
+
[varName("text-color-hover")]: varRef("text-color"),
|
|
138
|
+
[varName("text-color-active")]: varRef("text-color")
|
|
139
|
+
}
|
|
130
140
|
},
|
|
131
141
|
[`&${componentCls}-color-default`]: {
|
|
132
142
|
[varName("solid-bg-color")]: token.colorBgSolid,
|
|
@@ -142,11 +152,25 @@ const genVariantStyle = (token) => {
|
|
|
142
152
|
[varName("text-color-hover")]: token.defaultHoverBorderColor,
|
|
143
153
|
[varName("text-color-active")]: token.defaultActiveBorderColor,
|
|
144
154
|
[varName("shadow")]: token.defaultShadow,
|
|
145
|
-
[`&${componentCls}-variant-solid`]: {
|
|
155
|
+
[`&${componentCls}-variant-solid`]: {
|
|
156
|
+
[varName("text-color")]: token.solidTextColor,
|
|
157
|
+
[varName("text-color-hover")]: varRef("text-color"),
|
|
158
|
+
[varName("text-color-active")]: varRef("text-color")
|
|
159
|
+
},
|
|
146
160
|
[`&${componentCls}-variant-filled, &${componentCls}-variant-text`]: {
|
|
147
161
|
[varName("text-color-hover")]: varRef("text-color"),
|
|
148
162
|
[varName("text-color-active")]: varRef("text-color")
|
|
149
163
|
},
|
|
164
|
+
[`&${componentCls}-variant-outlined, &${componentCls}-variant-dashed`]: {
|
|
165
|
+
[varName("bg-color-hover")]: token.defaultHoverBg,
|
|
166
|
+
[varName("bg-color-active")]: token.defaultActiveBg
|
|
167
|
+
},
|
|
168
|
+
[`&${componentCls}-variant-text`]: {
|
|
169
|
+
[varName("text-color")]: token.textTextColor,
|
|
170
|
+
[varName("text-color-hover")]: token.textTextHoverColor,
|
|
171
|
+
[varName("text-color-active")]: token.textTextActiveColor,
|
|
172
|
+
[varName("bg-color-hover")]: token.textHoverBg
|
|
173
|
+
},
|
|
150
174
|
[`&${componentCls}-background-ghost`]: { [`&${componentCls}-variant-outlined, &${componentCls}-variant-dashed`]: {
|
|
151
175
|
[varName("text-color")]: token.defaultGhostColor,
|
|
152
176
|
[varName("border-color")]: token.defaultGhostBorderColor
|
|
@@ -3,8 +3,8 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { locale } from "../date-picker/locale/en_US.mjs";
|
|
5
5
|
import "./locale/en_US.mjs";
|
|
6
|
-
import * as
|
|
7
|
-
import { SlotsType } from "vue";
|
|
6
|
+
import * as vue344 from "vue";
|
|
7
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { GenerateConfig } from "@v-c/picker/generate/index";
|
|
9
9
|
|
|
10
10
|
//#region src/calendar/generateCalendar.d.ts
|
|
@@ -18,9 +18,22 @@ type HeaderRender<DateType> = (config: {
|
|
|
18
18
|
interface SelectInfo {
|
|
19
19
|
source: 'year' | 'month' | 'date' | 'customize';
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
interface CalendarSemanticClassNames {
|
|
22
|
+
root?: string;
|
|
23
|
+
header?: string;
|
|
24
|
+
body?: string;
|
|
25
|
+
content?: string;
|
|
26
|
+
item?: string;
|
|
27
|
+
}
|
|
28
|
+
interface CalendarSemanticStyles {
|
|
29
|
+
root?: CSSProperties;
|
|
30
|
+
header?: CSSProperties;
|
|
31
|
+
body?: CSSProperties;
|
|
32
|
+
content?: CSSProperties;
|
|
33
|
+
item?: CSSProperties;
|
|
34
|
+
}
|
|
35
|
+
type CalendarClassNamesType<DateType> = SemanticClassNamesType<CalendarProps<DateType>, CalendarSemanticClassNames>;
|
|
36
|
+
type CalendarStylesType<DateType> = SemanticStylesType<CalendarProps<DateType>, CalendarSemanticStyles>;
|
|
24
37
|
interface CalendarProps<DateType> {
|
|
25
38
|
prefixCls?: string;
|
|
26
39
|
rootClass?: string;
|
|
@@ -82,8 +95,8 @@ interface CalendarEmits<DateType = AnyObject> {
|
|
|
82
95
|
'select': (date: DateType, selectInfo: SelectInfo) => void;
|
|
83
96
|
[key: string]: (...args: any[]) => void;
|
|
84
97
|
}
|
|
85
|
-
declare function generateCalendar<DateType extends AnyObject>(generateConfig: GenerateConfig<DateType>):
|
|
98
|
+
declare function generateCalendar<DateType extends AnyObject>(generateConfig: GenerateConfig<DateType>): vue344.DefineSetupFnComponent<CalendarProps<DateType>, CalendarEmits<DateType>, SlotsType<CalendarSlots>, CalendarProps<DateType> & {
|
|
86
99
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
87
|
-
},
|
|
100
|
+
}, vue344.PublicProps>;
|
|
88
101
|
//#endregion
|
|
89
102
|
export { CalendarEmits, CalendarMode, CalendarProps, CalendarSlots, generateCalendar };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CalendarEmits, CalendarMode, CalendarProps, CalendarSlots, generateCalendar } from "./generateCalendar.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue69 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: vue69.DefineSetupFnComponent<CalendarProps<Dayjs>, CalendarEmits<Dayjs>, vue69.SlotsType<CalendarSlots>, CalendarProps<Dayjs> & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue69.PublicProps>;
|
|
9
9
|
type CalendarType = typeof Calendar & {
|
|
10
10
|
generateCalendar: typeof generateCalendar;
|
|
11
11
|
};
|
package/dist/card/Card.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { Tab, TabsSlots } from "../tabs/index.mjs";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue229 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/card/Card.d.ts
|
|
@@ -15,9 +15,26 @@ interface CardTabListType extends Omit<Tab, 'label'> {
|
|
|
15
15
|
tab?: VueNode;
|
|
16
16
|
label?: VueNode;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
interface CardSemanticClassNames {
|
|
19
|
+
root?: string;
|
|
20
|
+
header?: string;
|
|
21
|
+
body?: string;
|
|
22
|
+
extra?: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
actions?: string;
|
|
25
|
+
cover?: string;
|
|
26
|
+
}
|
|
27
|
+
interface CardSemanticStyles {
|
|
28
|
+
root?: CSSProperties;
|
|
29
|
+
header?: CSSProperties;
|
|
30
|
+
body?: CSSProperties;
|
|
31
|
+
extra?: CSSProperties;
|
|
32
|
+
title?: CSSProperties;
|
|
33
|
+
actions?: CSSProperties;
|
|
34
|
+
cover?: CSSProperties;
|
|
35
|
+
}
|
|
36
|
+
type CardClassNamesType = SemanticClassNamesType<CardProps, CardSemanticClassNames>;
|
|
37
|
+
type CardStylesType = SemanticStylesType<CardProps, CardSemanticStyles>;
|
|
21
38
|
interface CardProps extends ComponentBaseProps {
|
|
22
39
|
title?: VueNode;
|
|
23
40
|
extra?: VueNode;
|
|
@@ -60,8 +77,8 @@ interface CardSlots {
|
|
|
60
77
|
tabLabelRender?: TabsSlots['labelRender'];
|
|
61
78
|
tabBarExtraContent?: () => any;
|
|
62
79
|
}
|
|
63
|
-
declare const Card:
|
|
80
|
+
declare const Card: vue229.DefineSetupFnComponent<CardProps, CardEmits, SlotsType<CardSlots>, CardProps & {
|
|
64
81
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
65
|
-
},
|
|
82
|
+
}, vue229.PublicProps>;
|
|
66
83
|
//#endregion
|
|
67
84
|
export { Card, CardEmits, CardProps, CardSize, CardSlots, CardTabListType };
|
package/dist/card/CardGrid.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue231 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: vue231.DefineSetupFnComponent<CardGridProps, {}, {}, CardGridProps & {}, vue231.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { CardGrid, CardGridProps };
|
package/dist/card/CardMeta.d.mts
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
|
-
import * as
|
|
5
|
-
import { SlotsType } from "vue";
|
|
4
|
+
import * as vue225 from "vue";
|
|
5
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/card/CardMeta.d.ts
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
interface CardMetaSemanticClassNames {
|
|
9
|
+
root?: string;
|
|
10
|
+
section?: string;
|
|
11
|
+
avatar?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
}
|
|
15
|
+
interface CardMetaSemanticStyles {
|
|
16
|
+
root?: CSSProperties;
|
|
17
|
+
section?: CSSProperties;
|
|
18
|
+
avatar?: CSSProperties;
|
|
19
|
+
title?: CSSProperties;
|
|
20
|
+
description?: CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
type CardMetaClassNamesType = SemanticClassNamesType<CardMetaProps, CardMetaSemanticClassNames>;
|
|
23
|
+
type CardMetaStylesType = SemanticStylesType<CardMetaProps, CardMetaSemanticStyles>;
|
|
11
24
|
interface CardMetaProps {
|
|
12
25
|
prefixCls?: string;
|
|
13
26
|
avatar?: VueNode;
|
|
@@ -22,8 +35,8 @@ interface CardMetaSlots {
|
|
|
22
35
|
description?: () => any;
|
|
23
36
|
default?: () => any;
|
|
24
37
|
}
|
|
25
|
-
declare const CardMeta:
|
|
38
|
+
declare const CardMeta: vue225.DefineSetupFnComponent<CardMetaProps, EmptyEmit, SlotsType<CardMetaSlots>, CardMetaProps & {
|
|
26
39
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
27
|
-
},
|
|
40
|
+
}, vue225.PublicProps>;
|
|
28
41
|
//#endregion
|
|
29
42
|
export { CardMeta, CardMetaProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue74 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: vue74.DefineSetupFnComponent<CarouselProps, CarouselEmits, SlotsType<CarouselSlots>, CarouselProps & {
|
|
49
49
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
50
|
-
},
|
|
50
|
+
}, vue74.PublicProps>;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CascaderProps as CascaderProps$1 } from "./index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue78 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: vue78.DefineSetupFnComponent<CascaderPanelProps<DefaultOptionType, string, boolean>, CascaderPanelEmits, SlotsType<CascaderPanelSlots>, CascaderPanelProps<DefaultOptionType, string, boolean> & {
|
|
20
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
21
|
+
}, vue78.PublicProps>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots };
|
|
@@ -1,23 +1,44 @@
|
|
|
1
1
|
import { SizeType } from "../config-provider/SizeContext.mjs";
|
|
2
2
|
import { VueNode } from "../_util/type.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.mjs";
|
|
6
6
|
import { SelectCommonPlacement } from "../_util/motion.mjs";
|
|
7
|
+
import { SelectPopupSemanticClassNames, SelectPopupSemanticStyles } from "../select/index.mjs";
|
|
7
8
|
import { CascaderPanel } from "./Panel.mjs";
|
|
8
9
|
import { Variant } from "../config-provider/context.mjs";
|
|
9
|
-
import * as
|
|
10
|
+
import * as vue76 from "vue";
|
|
10
11
|
import { App, CSSProperties, SlotsType } from "vue";
|
|
11
12
|
import { CascaderProps, DefaultOptionType, SHOW_CHILD, SHOW_PARENT } from "@v-c/cascader";
|
|
12
13
|
|
|
13
14
|
//#region src/cascader/index.d.ts
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
interface CascaderSemanticClassNames {
|
|
16
|
+
root?: string;
|
|
17
|
+
prefix?: string;
|
|
18
|
+
suffix?: string;
|
|
19
|
+
input?: string;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
content?: string;
|
|
22
|
+
item?: string;
|
|
23
|
+
itemContent?: string;
|
|
24
|
+
itemRemove?: string;
|
|
25
|
+
}
|
|
26
|
+
interface CascaderSemanticStyles {
|
|
27
|
+
root?: CSSProperties;
|
|
28
|
+
prefix?: CSSProperties;
|
|
29
|
+
suffix?: CSSProperties;
|
|
30
|
+
input?: CSSProperties;
|
|
31
|
+
placeholder?: CSSProperties;
|
|
32
|
+
content?: CSSProperties;
|
|
33
|
+
item?: CSSProperties;
|
|
34
|
+
itemContent?: CSSProperties;
|
|
35
|
+
itemRemove?: CSSProperties;
|
|
36
|
+
}
|
|
37
|
+
type CascaderClassNamesType = SemanticClassNamesType<CascaderProps$1, CascaderSemanticClassNames, {
|
|
38
|
+
popup?: SelectPopupSemanticClassNames;
|
|
18
39
|
}>;
|
|
19
|
-
type CascaderStylesType = SemanticStylesType<CascaderProps$1,
|
|
20
|
-
popup?:
|
|
40
|
+
type CascaderStylesType = SemanticStylesType<CascaderProps$1, CascaderSemanticStyles, {
|
|
41
|
+
popup?: SelectPopupSemanticStyles;
|
|
21
42
|
}>;
|
|
22
43
|
interface CascaderProps$1<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean = boolean> extends Omit<CascaderProps<OptionType, ValueField, Multiple>, 'checkable' | 'className' | 'style' | 'classNames' | 'styles' | 'onChange' | 'onSearch' | 'onPopupVisibleChange' | 'multiple' | 'value'> {
|
|
23
44
|
value?: any;
|
|
@@ -77,9 +98,9 @@ interface CascaderEmits {
|
|
|
77
98
|
'search': NonNullable<CascaderProps['onSearch']>;
|
|
78
99
|
[key: string]: (...args: any[]) => void;
|
|
79
100
|
}
|
|
80
|
-
declare const InternalCascader:
|
|
101
|
+
declare const InternalCascader: vue76.DefineSetupFnComponent<CascaderProps$1<DefaultOptionType, string, boolean>, CascaderEmits, SlotsType<CascaderSlots>, CascaderProps$1<DefaultOptionType, string, boolean> & {
|
|
81
102
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
82
|
-
},
|
|
103
|
+
}, vue76.PublicProps>;
|
|
83
104
|
declare const Cascader: typeof InternalCascader & {
|
|
84
105
|
install: (app: App) => void;
|
|
85
106
|
Panel: typeof CascaderPanel;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
2
2
|
import "../_util/hooks/index.mjs";
|
|
3
3
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
4
|
-
import * as
|
|
5
|
-
import { SlotsType } from "vue";
|
|
4
|
+
import * as vue285 from "vue";
|
|
5
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
6
6
|
import { CheckboxChangeEvent } from "@v-c/checkbox";
|
|
7
7
|
|
|
8
8
|
//#region src/checkbox/Checkbox.d.ts
|
|
@@ -36,16 +36,25 @@ interface CheckboxEmits {
|
|
|
36
36
|
interface CheckboxSlots {
|
|
37
37
|
default?: () => any;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
interface CheckboxSemanticClassNames {
|
|
40
|
+
root?: string;
|
|
41
|
+
icon?: string;
|
|
42
|
+
label?: string;
|
|
43
|
+
}
|
|
44
|
+
interface CheckboxSemanticStyles {
|
|
45
|
+
root?: CSSProperties;
|
|
46
|
+
icon?: CSSProperties;
|
|
47
|
+
label?: CSSProperties;
|
|
48
|
+
}
|
|
49
|
+
type CheckboxClassNamesType = SemanticClassNamesType<CheckboxProps, CheckboxSemanticClassNames>;
|
|
50
|
+
type CheckboxStylesType = SemanticStylesType<CheckboxProps, CheckboxSemanticStyles>;
|
|
42
51
|
interface CheckboxProps extends AbstractCheckboxProps {
|
|
43
52
|
indeterminate?: boolean;
|
|
44
53
|
classes?: CheckboxClassNamesType;
|
|
45
54
|
styles?: CheckboxStylesType;
|
|
46
55
|
}
|
|
47
|
-
declare const InternalCheckbox:
|
|
56
|
+
declare const InternalCheckbox: vue285.DefineSetupFnComponent<CheckboxProps, CheckboxEmits, SlotsType<CheckboxSlots>, CheckboxProps & {
|
|
48
57
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
49
|
-
},
|
|
58
|
+
}, vue285.PublicProps>;
|
|
50
59
|
//#endregion
|
|
51
60
|
export { AbstractCheckboxProps, CheckboxEmits, CheckboxProps, CheckboxSlots, InternalCheckbox };
|
|
@@ -3,11 +3,11 @@ import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useTo
|
|
|
3
3
|
import { devUseWarning, isDev } from "../_util/warning.mjs";
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { toPropsRefs } from "../_util/tools.mjs";
|
|
6
|
-
import { checkRenderNode } from "../_util/vueNode.mjs";
|
|
7
6
|
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.mjs";
|
|
8
7
|
import { useDisabledContext } from "../config-provider/DisabledContext.mjs";
|
|
9
8
|
import { TARGET_CLS } from "../_util/wave/interface.mjs";
|
|
10
9
|
import wave_default from "../_util/wave/index.mjs";
|
|
10
|
+
import { checkRenderNode } from "../_util/vueNode.mjs";
|
|
11
11
|
import isNonNullable_default from "../_util/isNonNullable.mjs";
|
|
12
12
|
import { useFormItemContext, useFormItemInputContext } from "../form/context.mjs";
|
|
13
13
|
import useBubbleLock from "./useBubbleLock.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue287 from "vue";
|
|
4
4
|
import { CSSProperties, SlotsType } from "vue";
|
|
5
5
|
import { CheckboxChangeEvent } from "@v-c/checkbox";
|
|
6
6
|
|
|
@@ -28,6 +28,7 @@ interface CheckboxGroupProps extends AbstractCheckboxGroupProps {
|
|
|
28
28
|
item: CheckboxOptionType;
|
|
29
29
|
index: number;
|
|
30
30
|
}) => any;
|
|
31
|
+
role?: string;
|
|
31
32
|
}
|
|
32
33
|
interface CheckboxGroupEmits {
|
|
33
34
|
'update:value': (value: any[]) => void;
|
|
@@ -41,8 +42,8 @@ interface CheckboxGroupSlots {
|
|
|
41
42
|
index: number;
|
|
42
43
|
}) => any;
|
|
43
44
|
}
|
|
44
|
-
declare const CheckboxGroup:
|
|
45
|
+
declare const CheckboxGroup: vue287.DefineSetupFnComponent<CheckboxGroupProps, CheckboxGroupEmits, SlotsType<CheckboxGroupSlots>, CheckboxGroupProps & {
|
|
45
46
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
46
|
-
},
|
|
47
|
+
}, vue287.PublicProps>;
|
|
47
48
|
//#endregion
|
|
48
49
|
export { AbstractCheckboxGroupProps, CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType };
|
package/dist/checkbox/Group.mjs
CHANGED
|
@@ -61,7 +61,7 @@ const CheckboxGroup = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
61
61
|
};
|
|
62
62
|
}));
|
|
63
63
|
return () => {
|
|
64
|
-
const { options = [], rootClass } = props;
|
|
64
|
+
const { options = [], rootClass, role } = props;
|
|
65
65
|
const restProps = omit(props, [
|
|
66
66
|
"options",
|
|
67
67
|
"rootClass",
|
|
@@ -93,6 +93,7 @@ const CheckboxGroup = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
93
93
|
const classString = clsx(groupPrefixCls.value, { [`${groupPrefixCls.value}-rtl`]: direction.value === "rtl" }, className, rootClass, cssVarCls.value, rootCls.value, hashId.value);
|
|
94
94
|
return createVNode("div", mergeProps({
|
|
95
95
|
"class": classString,
|
|
96
|
+
"role": role,
|
|
96
97
|
"style": style
|
|
97
98
|
}, restAttrs), [childrenNode]);
|
|
98
99
|
};
|
|
@@ -119,6 +120,11 @@ const CheckboxGroup = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
119
120
|
required: false,
|
|
120
121
|
default: void 0
|
|
121
122
|
},
|
|
123
|
+
role: {
|
|
124
|
+
type: String,
|
|
125
|
+
required: false,
|
|
126
|
+
default: void 0
|
|
127
|
+
},
|
|
122
128
|
options: {
|
|
123
129
|
type: Array,
|
|
124
130
|
required: false,
|
|
@@ -139,7 +145,10 @@ const CheckboxGroup = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
139
145
|
required: false,
|
|
140
146
|
default: void 0
|
|
141
147
|
}
|
|
142
|
-
}, {
|
|
148
|
+
}, {
|
|
149
|
+
options: [],
|
|
150
|
+
role: "group"
|
|
151
|
+
}),
|
|
143
152
|
name: "ACheckboxGroup",
|
|
144
153
|
inheritAttrs: false
|
|
145
154
|
});
|
|
@@ -3,15 +3,28 @@ import { VueNode } from "../_util/type.mjs";
|
|
|
3
3
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { CollapsibleType } from "./CollapsePanel.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue707 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { ItemType } from "@v-c/collapse";
|
|
9
9
|
|
|
10
10
|
//#region src/collapse/Collapse.d.ts
|
|
11
11
|
type ExpandIconPlacement = 'start' | 'end';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
interface CollapseSemanticClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
header?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
body?: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
}
|
|
19
|
+
interface CollapseSemanticStyles {
|
|
20
|
+
root?: CSSProperties;
|
|
21
|
+
header?: CSSProperties;
|
|
22
|
+
title?: CSSProperties;
|
|
23
|
+
body?: CSSProperties;
|
|
24
|
+
icon?: CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
type CollapseClassNamesType = SemanticClassNamesType<CollapseProps, CollapseSemanticClassNames>;
|
|
27
|
+
type CollapseStylesType = SemanticStylesType<CollapseProps, CollapseSemanticStyles>;
|
|
15
28
|
type CollapseItemType = Omit<ItemType, 'children'> & {
|
|
16
29
|
content?: ItemType['children'];
|
|
17
30
|
};
|
|
@@ -69,8 +82,8 @@ interface CollapseSlots {
|
|
|
69
82
|
index: number;
|
|
70
83
|
}) => any;
|
|
71
84
|
}
|
|
72
|
-
declare const Collapse:
|
|
85
|
+
declare const Collapse: vue707.DefineSetupFnComponent<CollapseProps, CollapseEmits, SlotsType<CollapseSlots>, CollapseProps & {
|
|
73
86
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
74
|
-
},
|
|
87
|
+
}, vue707.PublicProps>;
|
|
75
88
|
//#endregion
|
|
76
89
|
export { Collapse, CollapseProps };
|