antdv-next 1.0.0-beta.2 → 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 +18 -2
- 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/cascader/index.d.mts +28 -7
- 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/FloatButton.d.mts +3 -4
- package/dist/float-button/FloatButtonGroup.d.mts +22 -3
- 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/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 +0 -1
- 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 +1108 -1067
- package/web-types.json +3861 -4257
- package/dist/timeline/TimelineItem.d.mts +0 -20
- package/dist/timeline/TimelineItem.mjs +0 -115
- package/dist/timeline/TimelineItemList.mjs +0 -158
- /package/dist/{reset.css/reset.css → reset.css} +0 -0
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { MaskType } from "../_util/hooks/useMergedMask.mjs";
|
|
2
2
|
import "../_util/hooks/index.mjs";
|
|
3
3
|
import { DeprecatedPreviewConfig, ImageClassNamesType, ImageStylesType } from "./index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue350 from "vue";
|
|
5
5
|
import { PreviewGroupProps } from "@v-c/image";
|
|
6
6
|
|
|
7
7
|
//#region src/image/PreviewGroup.d.ts
|
|
8
|
-
|
|
9
8
|
type OriginPreviewConfig = NonNullable<Exclude<PreviewGroupProps['preview'], boolean>>;
|
|
10
9
|
type GroupPreviewConfig = OriginPreviewConfig & DeprecatedPreviewConfig & {
|
|
11
|
-
/** @deprecated Use `onOpenChange` instead */
|
|
12
|
-
onVisibleChange?: (visible: boolean, prevVisible: boolean, current: number) => void;
|
|
10
|
+
/** @deprecated Use `onOpenChange` instead */onVisibleChange?: (visible: boolean, prevVisible: boolean, current: number) => void;
|
|
13
11
|
mask?: MaskType;
|
|
14
12
|
};
|
|
15
13
|
interface PreviewGroupProps$1 extends Omit<PreviewGroupProps, 'preview' | 'styles'> {
|
|
@@ -17,6 +15,6 @@ interface PreviewGroupProps$1 extends Omit<PreviewGroupProps, 'preview' | 'style
|
|
|
17
15
|
classes?: ImageClassNamesType;
|
|
18
16
|
styles?: ImageStylesType;
|
|
19
17
|
}
|
|
20
|
-
declare const InternalPreviewGroup:
|
|
18
|
+
declare const InternalPreviewGroup: vue350.DefineSetupFnComponent<PreviewGroupProps$1, {}, {}, PreviewGroupProps$1 & {}, vue350.PublicProps>;
|
|
21
19
|
//#endregion
|
|
22
20
|
export { InternalPreviewGroup, PreviewGroupProps$1 as PreviewGroupProps };
|
package/dist/image/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MaskType } from "../_util/hooks/useMergedMask.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 { InternalPreviewGroup, PreviewGroupProps as PreviewGroupProps$1 } from "./PreviewGroup.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue93 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { ImageProps } from "@v-c/image";
|
|
9
9
|
|
|
@@ -27,18 +27,38 @@ interface DeprecatedPreviewConfig {
|
|
|
27
27
|
/** @deprecated Use `actionsRender` instead */
|
|
28
28
|
toolbarRender?: OriginPreviewConfig['actionsRender'];
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
interface ImageSemanticClassNames {
|
|
31
|
+
root?: string;
|
|
32
|
+
image?: string;
|
|
33
|
+
cover?: string;
|
|
34
|
+
}
|
|
35
|
+
interface ImageSemanticStyles {
|
|
36
|
+
root?: CSSProperties;
|
|
37
|
+
image?: CSSProperties;
|
|
38
|
+
cover?: CSSProperties;
|
|
39
|
+
}
|
|
40
|
+
interface ImagePopupSemanticClassNames {
|
|
41
|
+
root?: string;
|
|
42
|
+
mask?: string;
|
|
43
|
+
body?: string;
|
|
44
|
+
footer?: string;
|
|
45
|
+
actions?: string;
|
|
46
|
+
}
|
|
47
|
+
interface ImagePopupSemanticStyles {
|
|
48
|
+
root?: CSSProperties;
|
|
49
|
+
mask?: CSSProperties;
|
|
50
|
+
body?: CSSProperties;
|
|
51
|
+
footer?: CSSProperties;
|
|
52
|
+
actions?: CSSProperties;
|
|
53
|
+
}
|
|
54
|
+
type ImageClassNamesType = SemanticClassNamesType<ImageProps$1, ImageSemanticClassNames, {
|
|
55
|
+
popup?: ImagePopupSemanticClassNames;
|
|
34
56
|
}>;
|
|
35
|
-
type ImageStylesType = SemanticStylesType<ImageProps$1,
|
|
36
|
-
popup?:
|
|
57
|
+
type ImageStylesType = SemanticStylesType<ImageProps$1, ImageSemanticStyles, {
|
|
58
|
+
popup?: ImagePopupSemanticStyles;
|
|
37
59
|
}>;
|
|
38
60
|
type PreviewConfig = OriginPreviewConfig & DeprecatedPreviewConfig & {
|
|
39
|
-
/** @deprecated Use `onOpenChange` instead */
|
|
40
|
-
onVisibleChange?: (visible: boolean, prevVisible: boolean) => void;
|
|
41
|
-
/** @deprecated Use `classNames.cover` instead */
|
|
61
|
+
/** @deprecated Use `onOpenChange` instead */onVisibleChange?: (visible: boolean, prevVisible: boolean) => void; /** @deprecated Use `classNames.cover` instead */
|
|
42
62
|
maskClassName?: string;
|
|
43
63
|
mask?: MaskType | VueNode;
|
|
44
64
|
};
|
|
@@ -62,13 +82,13 @@ interface ImageSlots {
|
|
|
62
82
|
cover: () => any;
|
|
63
83
|
actionsRender: () => OriginPreviewConfig['actionsRender'];
|
|
64
84
|
}
|
|
65
|
-
declare const Image:
|
|
85
|
+
declare const Image: vue93.DefineSetupFnComponent<ImageProps$1, ImageEmits, SlotsType<ImageSlots>, ImageProps$1 & {
|
|
66
86
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
67
|
-
},
|
|
87
|
+
}, vue93.PublicProps>;
|
|
68
88
|
declare const _default_1: typeof Image & {
|
|
69
89
|
PreviewGroup: typeof InternalPreviewGroup;
|
|
70
90
|
};
|
|
71
|
-
declare const ImagePreviewGroup:
|
|
91
|
+
declare const ImagePreviewGroup: vue93.DefineSetupFnComponent<PreviewGroupProps$1, {}, {}, PreviewGroupProps$1 & {}, vue93.PublicProps>;
|
|
72
92
|
type ImagePreviewGroupProps = PreviewGroupProps$1;
|
|
73
93
|
//#endregion
|
|
74
94
|
export { DeprecatedPreviewConfig, ImageClassNamesType, ImageEmits, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps$1 as ImageProps, ImageSlots, ImageStylesType, PreviewConfig, _default_1 };
|
package/dist/index.d.mts
CHANGED
|
@@ -39,7 +39,7 @@ import { TourEmits, TourLocale, TourProps, TourSlots, TourStylesType } from "./t
|
|
|
39
39
|
import { Tour, TourStepItem } from "./tour/index.mjs";
|
|
40
40
|
import { TransferOperationProps } from "./transfer/Actions.mjs";
|
|
41
41
|
import { TransferSearchEmits, TransferSearchProps, TransferSearchSlots } from "./transfer/search.mjs";
|
|
42
|
-
import { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult, RenderResultObject, SelectAllLabel, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferProps, TransferRender, TransferSearchOption,
|
|
42
|
+
import { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult, RenderResultObject, SelectAllLabel, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferProps, TransferRender, TransferSearchOption, TransferSlots, TransferStylesType } from "./transfer/interface.mjs";
|
|
43
43
|
import { InternalTransfer } from "./transfer/index.mjs";
|
|
44
44
|
import { Progress, ProgressProps } from "./progress/progress.mjs";
|
|
45
45
|
import { UploadChangeParam, UploadEmits, UploadFile, UploadProps, UploadSlots } from "./upload/interface.mjs";
|
|
@@ -132,8 +132,7 @@ import { Rate, RateEmits, RateProps } from "./rate/index.mjs";
|
|
|
132
132
|
import { SplitterEmits, SplitterProps, SplitterSlots } from "./splitter/interface.mjs";
|
|
133
133
|
import { Splitter } from "./splitter/Splitter.mjs";
|
|
134
134
|
import { SplitterPanel } from "./splitter/index.mjs";
|
|
135
|
-
import {
|
|
136
|
-
import { Timeline, TimelineProps } from "./timeline/Timeline.mjs";
|
|
135
|
+
import { Timeline, TimelineItemType, TimelineProps } from "./timeline/Timeline.mjs";
|
|
137
136
|
import { TextProps } from "./typography/Text.mjs";
|
|
138
137
|
import { LinkProps } from "./typography/Link.mjs";
|
|
139
138
|
import { TitleProps } from "./typography/Title.mjs";
|
|
@@ -150,4 +149,4 @@ import { Plugin } from "vue";
|
|
|
150
149
|
//#region src/index.d.ts
|
|
151
150
|
declare const _default$11: Plugin;
|
|
152
151
|
//#endregion
|
|
153
|
-
export { Affix, AffixProps, Alert, AlertEmits, AlertProps, AlertSlots, Anchor, AnchorLinkProps, AnchorProps, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, _default as App, AppProps, AutoComplete, AutoCompleteClassNamesType, AutoCompleteEmits, Option as AutoCompleteOption, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, Avatar, AvatarEmits, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSlots, BackTopWithInstall as BackTop, Badge, BadgeProps, RibbonProps as BadgeRibbonProps, BadgeSlots, BasicDataNode, Breadcrumb, BreadcrumbEmits, BreadcrumbItemProps, ItemType as BreadcrumbItemType, BreadcrumbProps, BreadcrumbSlots, Button, ButtonColorType, ButtonHTMLType, ButtonProps, ButtonShape, SizeType as ButtonSize, ButtonType, ButtonVariantType, _default$1 as Calendar, CalendarMode, CalendarProps, Card, CardEmits, CardGrid, CardGridProps, CardMeta, CardMetaProps, CardProps, CardSize, CardSlots, CardTabListType, Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots, Cascader, CascaderEmits, CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots, CascaderProps, CascaderSlots, CheckableTag, CheckableTagGroup, CheckableTagProps, InternalCheckbox as Checkbox, CheckboxEmits, CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType, CheckboxProps, CheckboxSlots, Col, ColProps, ColSize, Collapse, CollapseProps, AggregationColor as Color, ColorPicker, ColorPickerEmits, ColorPickerProps, ColorPickerSlots, ColorValueType, ConfigProvider, ConfigProviderProps, DataSourceItemObject, DataSourceItemType, DateMonthPicker, _default$2 as DatePicker, DatePickerEmits, DatePickerProps, DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItemType, DescriptionsProps, DescriptionsSlots, DirectoryTree, DirectoryTreeEmits, ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, DirectoryTreeSlots, Divider, DividerProps, Drawer, DrawerEmits, DrawerProps, DrawerResizableConfig, DrawerSlots, Dropdown, DropdownArrowOptions, DropdownEmits, DropdownProps, DropdownSlots, _default$3 as Empty, EmptyProps, Flex, FlexProps, FloatButton, FloatButtonGroup, FloatButtonGroupProps, FloatButtonProps, FloatButtonRef, InternalForm as Form, FormEmits, FormInstance, InternalFormItem as FormItem, FormProps, FormSlots, _default_1 as Image, ImageEmits, PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSlots, CompoundedInput as Input, InputEmits, InputGroup, InputGroupProps, InputNumber, InputNumberEmits, InputNumberProps, VcInputNumberRef as InputNumberRef, InputNumberStepContext, ValueType as InputNumberValueType, InputOTP, OTPProps as InputOTPProps, InputPassword, PasswordProps as InputPasswordProps, InputProps, InputRef, InputSearch, SearchProps as InputSearchProps, InputSlots, KeyWise, KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, BasicProps as LayoutProps, LayoutSider, ListStyle, Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots, MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, Option$1 as MentionsOption, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, _default$4 as Menu, MenuDivider, MenuEmits, MenuItem, MenuItemGroupProps, MenuItemProps, MenuItemType, MenuProps, MenuRef, MenuSlots, _default$5 as Modal, ModalEmits, ModalProps, ModalSlots, MonthPickerProps, Pagination, PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps, PaginationSlots, PaginationStylesType, Popconfirm, PopconfirmEmits, PopconfirmProps, PopconfirmSlots, Popover, PopoverProps, Progress, ProgressProps, QRCode, QRCodeEmits, QRCodeProps, InternalRadio as Radio, RadioButton, RadioChangeEvent, RadioEmits, RadioGroup, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioOptionType, RadioProps, RadioSlots, RangePickerProps, Rate, RateEmits, RateProps, RenderResult, RenderResultObject, _default$6 as Result, ResultProps, Row, RowProps, Segmented, SegmentedEmits, SegmentedOptions, SegmentedProps, Select, SelectAllLabel, SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue, type SizeType, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, SkeletonProps, Slider, SliderEmits, SliderProps, Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots, _default$7 as Spin, SpinProps, SpinSlots, Splitter, SplitterEmits, SplitterPanel, SplitterProps, SplitterSlots, _default$8 as Statistic, StatisticProps, StatisticTimer, StatisticTimerProps, Steps, StepsProps, StyleProvider, SubMenu, SubMenuProps, Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots, TabPane, TabPaneProps, InternalTable as Table, TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, ColumnType as TableColumnType, ColumnsType as TableColumnsType, DataIndex as TableDataIndex, TableEmits, TableLocale, TablePaginationConfig, TableProps, TableRowSelection, TableSlots, SortOrder as TableSortOrder, SorterResult as TableSorterResult, TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, TabsEmits, TabsProps, TabsRef, TabsSlots, Tag, TagProps, TagSlots, InternalTextArea as TextArea, TextAreaProps, TextAreaRef, _default$9 as TimePicker, TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, Timeline, TimelineItemProps, TimelineProps, _default$10 as Tooltip, TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots, Tour, TourEmits, TourLocale, TourProps, TourSlots, TourStepItem, TourStylesType, InternalTransfer as Transfer, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferOperationProps, PaginationType as TransferPaginationType, TransferProps, TransferRender, TransferSearchEmits, TransferSearchOption, TransferSearchProps, TransferSearchSlots,
|
|
152
|
+
export { Affix, AffixProps, Alert, AlertEmits, AlertProps, AlertSlots, Anchor, AnchorLinkProps, AnchorProps, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, _default as App, AppProps, AutoComplete, AutoCompleteClassNamesType, AutoCompleteEmits, Option as AutoCompleteOption, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, Avatar, AvatarEmits, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSlots, BackTopWithInstall as BackTop, Badge, BadgeProps, RibbonProps as BadgeRibbonProps, BadgeSlots, BasicDataNode, Breadcrumb, BreadcrumbEmits, BreadcrumbItemProps, ItemType as BreadcrumbItemType, BreadcrumbProps, BreadcrumbSlots, Button, ButtonColorType, ButtonHTMLType, ButtonProps, ButtonShape, SizeType as ButtonSize, ButtonType, ButtonVariantType, _default$1 as Calendar, CalendarMode, CalendarProps, Card, CardEmits, CardGrid, CardGridProps, CardMeta, CardMetaProps, CardProps, CardSize, CardSlots, CardTabListType, Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots, Cascader, CascaderEmits, CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots, CascaderProps, CascaderSlots, CheckableTag, CheckableTagGroup, CheckableTagProps, InternalCheckbox as Checkbox, CheckboxEmits, CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType, CheckboxProps, CheckboxSlots, Col, ColProps, ColSize, Collapse, CollapseProps, AggregationColor as Color, ColorPicker, ColorPickerEmits, ColorPickerProps, ColorPickerSlots, ColorValueType, ConfigProvider, ConfigProviderProps, DataSourceItemObject, DataSourceItemType, DateMonthPicker, _default$2 as DatePicker, DatePickerEmits, DatePickerProps, DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItemType, DescriptionsProps, DescriptionsSlots, DirectoryTree, DirectoryTreeEmits, ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, DirectoryTreeSlots, Divider, DividerProps, Drawer, DrawerEmits, DrawerProps, DrawerResizableConfig, DrawerSlots, Dropdown, DropdownArrowOptions, DropdownEmits, DropdownProps, DropdownSlots, _default$3 as Empty, EmptyProps, Flex, FlexProps, FloatButton, FloatButtonGroup, FloatButtonGroupProps, FloatButtonProps, FloatButtonRef, InternalForm as Form, FormEmits, FormInstance, InternalFormItem as FormItem, FormProps, FormSlots, _default_1 as Image, ImageEmits, PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSlots, CompoundedInput as Input, InputEmits, InputGroup, InputGroupProps, InputNumber, InputNumberEmits, InputNumberProps, VcInputNumberRef as InputNumberRef, InputNumberStepContext, ValueType as InputNumberValueType, InputOTP, OTPProps as InputOTPProps, InputPassword, PasswordProps as InputPasswordProps, InputProps, InputRef, InputSearch, SearchProps as InputSearchProps, InputSlots, KeyWise, KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, BasicProps as LayoutProps, LayoutSider, ListStyle, Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots, MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, Option$1 as MentionsOption, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, _default$4 as Menu, MenuDivider, MenuEmits, MenuItem, MenuItemGroupProps, MenuItemProps, MenuItemType, MenuProps, MenuRef, MenuSlots, _default$5 as Modal, ModalEmits, ModalProps, ModalSlots, MonthPickerProps, Pagination, PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps, PaginationSlots, PaginationStylesType, Popconfirm, PopconfirmEmits, PopconfirmProps, PopconfirmSlots, Popover, PopoverProps, Progress, ProgressProps, QRCode, QRCodeEmits, QRCodeProps, InternalRadio as Radio, RadioButton, RadioChangeEvent, RadioEmits, RadioGroup, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioOptionType, RadioProps, RadioSlots, RangePickerProps, Rate, RateEmits, RateProps, RenderResult, RenderResultObject, _default$6 as Result, ResultProps, Row, RowProps, Segmented, SegmentedEmits, SegmentedOptions, SegmentedProps, Select, SelectAllLabel, SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue, type SizeType, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, SkeletonProps, Slider, SliderEmits, SliderProps, Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots, _default$7 as Spin, SpinProps, SpinSlots, Splitter, SplitterEmits, SplitterPanel, SplitterProps, SplitterSlots, _default$8 as Statistic, StatisticProps, StatisticTimer, StatisticTimerProps, Steps, StepsProps, StyleProvider, SubMenu, SubMenuProps, Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots, TabPane, TabPaneProps, InternalTable as Table, TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, ColumnType as TableColumnType, ColumnsType as TableColumnsType, DataIndex as TableDataIndex, TableEmits, TableLocale, TablePaginationConfig, TableProps, TableRowSelection, TableSlots, SortOrder as TableSortOrder, SorterResult as TableSorterResult, TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, TabsEmits, TabsProps, TabsRef, TabsSlots, Tag, TagProps, TagSlots, InternalTextArea as TextArea, TextAreaProps, TextAreaRef, _default$9 as TimePicker, TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, Timeline, TimelineItemType as TimelineItemProps, TimelineProps, _default$10 as Tooltip, TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots, Tour, TourEmits, TourLocale, TourProps, TourSlots, TourStepItem, TourStylesType, InternalTransfer as Transfer, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferOperationProps, PaginationType as TransferPaginationType, TransferProps, TransferRender, TransferSearchEmits, TransferSearchOption, TransferSearchProps, TransferSearchSlots, TransferSlots, TransferStylesType, Tree, DataNode as TreeDataNode, TreeEmits, TreeProps, TreeSelect, TreeSelectEmits, TreeSelectNode, TreeSelectProps, TreeSelectSlots, TreeSlots, Typography, BlockProps as TypographyBaseProps, TypographyLink, LinkProps as TypographyLinkProps, TypographyParagraph, ParagraphProps as TypographyParagraphProps, TypographyText, TextProps as TypographyTextProps, TypographyTitle, TitleProps as TypographyTitleProps, UniqueProvider, Upload, UploadChangeParam, UploadDragger, DraggerProps as UploadDraggerProps, UploadEmits, UploadFile, UploadProps, UploadSlots, Watermark, WatermarkProps, WeekPickerProps, _default$11 as default, staticMethods as message, staticMethods$1 as notification, _default$12 as theme, useBreakpoint, useLayoutSider, useMessage, useModal, useNotification, useResponsive, _version2 as version };
|
package/dist/input/Input.d.mts
CHANGED
|
@@ -4,13 +4,26 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.mjs";
|
|
6
6
|
import { ComponentBaseProps, Variant } from "../config-provider/context.mjs";
|
|
7
|
-
import { SlotsType } from "vue";
|
|
7
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { InputProps, InputRef } from "@v-c/input";
|
|
9
9
|
|
|
10
10
|
//#region src/input/Input.d.ts
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
interface InputSemanticClassNames {
|
|
12
|
+
root?: string;
|
|
13
|
+
prefix?: string;
|
|
14
|
+
suffix?: string;
|
|
15
|
+
input?: string;
|
|
16
|
+
count?: string;
|
|
17
|
+
}
|
|
18
|
+
interface InputSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
prefix?: CSSProperties;
|
|
21
|
+
suffix?: CSSProperties;
|
|
22
|
+
input?: CSSProperties;
|
|
23
|
+
count?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
type InputClassNamesType = SemanticClassNamesType<InputProps$1, InputSemanticClassNames>;
|
|
26
|
+
type InputStylesType = SemanticStylesType<InputProps$1, InputSemanticStyles>;
|
|
14
27
|
type InputRef$1 = InputRef;
|
|
15
28
|
interface BaseVcInputProps {
|
|
16
29
|
value?: any;
|
package/dist/input/Input.mjs
CHANGED
|
@@ -143,7 +143,7 @@ const InternalInput = /* @__PURE__ */ defineComponent((props, { slots, expose, e
|
|
|
143
143
|
...style
|
|
144
144
|
};
|
|
145
145
|
const variantClassName = clsx({ [`${prefixCls.value}-${mergedVariant.value}`]: enableVariantCls.value }, getStatusClassNames(prefixCls.value, mergedStatus.value));
|
|
146
|
-
const classNames
|
|
146
|
+
const classNames = {
|
|
147
147
|
...mergedClassNames.value,
|
|
148
148
|
input: clsx({
|
|
149
149
|
[`${prefixCls.value}-sm`]: mergedSize.value === "small",
|
|
@@ -171,7 +171,7 @@ const InternalInput = /* @__PURE__ */ defineComponent((props, { slots, expose, e
|
|
|
171
171
|
"prefixCls": prefixCls.value,
|
|
172
172
|
"class": classesValue,
|
|
173
173
|
"style": mergedStyle,
|
|
174
|
-
"classNames": classNames
|
|
174
|
+
"classNames": classNames,
|
|
175
175
|
"styles": mergedStyles.value,
|
|
176
176
|
"disabled": mergedDisabled.value,
|
|
177
177
|
"allowClear": mergedAllowClear.value,
|
|
@@ -4,12 +4,21 @@ import { SemanticClassNamesType, SemanticStylesType } from "../../_util/hooks/us
|
|
|
4
4
|
import "../../_util/hooks/index.mjs";
|
|
5
5
|
import { InputStatus } from "../../_util/statusUtils.mjs";
|
|
6
6
|
import { ComponentBaseProps, Variant } from "../../config-provider/context.mjs";
|
|
7
|
-
import { HTMLAttributes, SlotsType } from "vue";
|
|
7
|
+
import { CSSProperties, HTMLAttributes, SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/input/OTP/index.d.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
interface OTPSemanticClassNames {
|
|
11
|
+
root?: string;
|
|
12
|
+
input?: string;
|
|
13
|
+
separator?: string;
|
|
14
|
+
}
|
|
15
|
+
interface OTPSemanticStyles {
|
|
16
|
+
root?: CSSProperties;
|
|
17
|
+
input?: CSSProperties;
|
|
18
|
+
separator?: CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
type OTPClassNamesType = SemanticClassNamesType<OTPProps, OTPSemanticClassNames>;
|
|
21
|
+
type OTPStylesType = SemanticStylesType<OTPProps, OTPSemanticStyles>;
|
|
13
22
|
interface OTPProps extends ComponentBaseProps, Omit<HTMLAttributes, 'onChange' | 'onInput'> {
|
|
14
23
|
length?: number;
|
|
15
24
|
variant?: Variant;
|
package/dist/input/Password.mjs
CHANGED
|
@@ -33,10 +33,10 @@ const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
33
33
|
if (typeof visibilityToggle.value === "object") visibilityToggle.value.onVisibleChange?.(next);
|
|
34
34
|
};
|
|
35
35
|
const action = computed(() => props.action ?? "click");
|
|
36
|
-
const iconRender = (visible
|
|
37
|
-
const _iconRender = getSlotPropsFnRun(slots, props, "iconRender", true, { visible
|
|
36
|
+
const iconRender = (visible) => {
|
|
37
|
+
const _iconRender = getSlotPropsFnRun(slots, props, "iconRender", true, { visible });
|
|
38
38
|
if (_iconRender) return _iconRender;
|
|
39
|
-
return defaultIconRender(visible
|
|
39
|
+
return defaultIconRender(visible);
|
|
40
40
|
};
|
|
41
41
|
const getIcon = () => {
|
|
42
42
|
if (!visibilityToggle.value) return null;
|
package/dist/input/Search.d.mts
CHANGED
|
@@ -1,20 +1,32 @@
|
|
|
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
|
-
import {
|
|
6
|
-
import "../button/index.mjs";
|
|
5
|
+
import { ButtonSemanticClassNames, ButtonSemanticStyles } from "../button/Button.mjs";
|
|
7
6
|
import { InputEmits, InputProps } from "./Input.mjs";
|
|
8
7
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
9
|
-
import { SlotsType } from "vue";
|
|
8
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
10
9
|
|
|
11
10
|
//#region src/input/Search.d.ts
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
interface InputSearchSemanticClassNames {
|
|
12
|
+
root?: string;
|
|
13
|
+
input?: string;
|
|
14
|
+
prefix?: string;
|
|
15
|
+
suffix?: string;
|
|
16
|
+
count?: string;
|
|
17
|
+
}
|
|
18
|
+
interface InputSearchSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
input?: CSSProperties;
|
|
21
|
+
prefix?: CSSProperties;
|
|
22
|
+
suffix?: CSSProperties;
|
|
23
|
+
count?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
type InputSearchClassNamesType = SemanticClassNamesType<SearchProps, InputSearchSemanticClassNames> & {
|
|
26
|
+
button?: ButtonSemanticClassNames;
|
|
15
27
|
};
|
|
16
|
-
type InputSearchStylesType = SemanticStylesType<SearchProps,
|
|
17
|
-
button?:
|
|
28
|
+
type InputSearchStylesType = SemanticStylesType<SearchProps, InputSearchSemanticStyles> & {
|
|
29
|
+
button?: ButtonSemanticStyles;
|
|
18
30
|
};
|
|
19
31
|
interface SearchProps extends Omit<InputProps, 'class' | 'style' | 'rootClass'>, ComponentBaseProps {
|
|
20
32
|
inputPrefixCls?: string;
|
|
@@ -3,15 +3,24 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { InputStatus } from "../_util/statusUtils.mjs";
|
|
5
5
|
import { ComponentBaseProps, Variant } from "../config-provider/context.mjs";
|
|
6
|
-
import * as
|
|
7
|
-
import { SlotsType } from "vue";
|
|
6
|
+
import * as vue251 from "vue";
|
|
7
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { InputProps } from "@v-c/input";
|
|
9
9
|
import { TextAreaProps } from "@v-c/textarea";
|
|
10
10
|
|
|
11
11
|
//#region src/input/TextArea.d.ts
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
interface TextAreaSemanticClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
textarea?: string;
|
|
15
|
+
count?: string;
|
|
16
|
+
}
|
|
17
|
+
interface TextAreaSemanticStyles {
|
|
18
|
+
root?: CSSProperties;
|
|
19
|
+
textarea?: CSSProperties;
|
|
20
|
+
count?: CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
type TextAreaClassNamesType = SemanticClassNamesType<TextAreaProps$1, TextAreaSemanticClassNames>;
|
|
23
|
+
type TextAreaStylesType = SemanticStylesType<TextAreaProps$1, TextAreaSemanticStyles>;
|
|
15
24
|
interface TextAreaRef {
|
|
16
25
|
resizableTextArea?: any;
|
|
17
26
|
focus: (...args: any[]) => void;
|
|
@@ -48,8 +57,8 @@ interface TextAreaEmits {
|
|
|
48
57
|
interface TextAreaSlots {
|
|
49
58
|
default?: () => any;
|
|
50
59
|
}
|
|
51
|
-
declare const InternalTextArea:
|
|
60
|
+
declare const InternalTextArea: vue251.DefineSetupFnComponent<TextAreaProps$1, TextAreaEmits, SlotsType<TextAreaSlots>, TextAreaProps$1 & {
|
|
52
61
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
53
|
-
},
|
|
62
|
+
}, vue251.PublicProps>;
|
|
54
63
|
//#endregion
|
|
55
64
|
export { InternalTextArea, TextAreaProps$1 as TextAreaProps, TextAreaRef };
|
package/dist/input/TextArea.mjs
CHANGED
|
@@ -114,7 +114,7 @@ const InternalTextArea = /* @__PURE__ */ defineComponent((props, { attrs, emit,
|
|
|
114
114
|
...contextStyle.value,
|
|
115
115
|
...style
|
|
116
116
|
};
|
|
117
|
-
const classNames
|
|
117
|
+
const classNames = {
|
|
118
118
|
...mergedClassNames.value,
|
|
119
119
|
textarea: clsx({
|
|
120
120
|
[`${prefixCls.value}-sm`]: mergedSize.value === "small",
|
|
@@ -133,7 +133,7 @@ const InternalTextArea = /* @__PURE__ */ defineComponent((props, { attrs, emit,
|
|
|
133
133
|
"prefixCls": prefixCls.value,
|
|
134
134
|
"class": classesValue,
|
|
135
135
|
"style": mergedStyle,
|
|
136
|
-
"classNames": classNames
|
|
136
|
+
"classNames": classNames,
|
|
137
137
|
"styles": mergedStyles.value,
|
|
138
138
|
"disabled": mergedDisabled.value,
|
|
139
139
|
"allowClear": mergedAllowClear.value,
|
package/dist/input/index.d.mts
CHANGED
|
@@ -5,25 +5,25 @@ import { SearchEmits, SearchProps, SearchSlots } from "./Search.mjs";
|
|
|
5
5
|
import { InternalTextArea, TextAreaProps, TextAreaRef } from "./TextArea.mjs";
|
|
6
6
|
import { InputGroupProps } from "./Group.mjs";
|
|
7
7
|
import { PasswordEmits, PasswordProps, PasswordSlots } from "./Password.mjs";
|
|
8
|
-
import * as
|
|
8
|
+
import * as vue97 from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/input/index.d.ts
|
|
11
|
-
declare const CompoundedInput:
|
|
11
|
+
declare const CompoundedInput: vue97.DefineSetupFnComponent<InputProps, InputEmits, vue97.SlotsType<InputSlots>, InputProps & {
|
|
12
12
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
13
|
-
},
|
|
14
|
-
declare const InputGroup:
|
|
13
|
+
}, vue97.PublicProps>;
|
|
14
|
+
declare const InputGroup: vue97.DefineSetupFnComponent<InputGroupProps, EmptyEmit, vue97.SlotsType<{
|
|
15
15
|
default?: () => any;
|
|
16
16
|
}>, InputGroupProps & {
|
|
17
17
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
18
|
-
},
|
|
19
|
-
declare const InputOTP:
|
|
18
|
+
}, vue97.PublicProps>;
|
|
19
|
+
declare const InputOTP: vue97.DefineSetupFnComponent<OTPProps, OTPEmits, vue97.SlotsType<OPTSlots>, OTPProps & {
|
|
20
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
22
|
-
declare const InputPassword:
|
|
21
|
+
}, vue97.PublicProps>;
|
|
22
|
+
declare const InputPassword: vue97.DefineSetupFnComponent<PasswordProps, PasswordEmits, vue97.SlotsType<PasswordSlots>, PasswordProps & {
|
|
23
23
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
24
|
-
},
|
|
25
|
-
declare const InputSearch:
|
|
24
|
+
}, vue97.PublicProps>;
|
|
25
|
+
declare const InputSearch: vue97.DefineSetupFnComponent<SearchProps, SearchEmits, vue97.SlotsType<SearchSlots>, SearchProps & {
|
|
26
26
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
27
|
-
},
|
|
27
|
+
}, vue97.PublicProps>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { CompoundedInput, InputGroup, InputOTP, InputPassword, InputSearch };
|
|
@@ -371,9 +371,12 @@ var style_default = genStyleHooks(["Input", "Component"], (token) => {
|
|
|
371
371
|
return [
|
|
372
372
|
genGroupStyle(inputToken),
|
|
373
373
|
genRangeStyle(inputToken),
|
|
374
|
-
genCompactItemStyle(inputToken
|
|
374
|
+
genCompactItemStyle(inputToken, {
|
|
375
|
+
focus: true,
|
|
376
|
+
focusElCls: `${inputToken.componentCls}-affix-wrapper-focused`
|
|
377
|
+
})
|
|
375
378
|
];
|
|
376
379
|
}, initComponentToken, { resetFont: false });
|
|
377
380
|
|
|
378
381
|
//#endregion
|
|
379
|
-
export { style_default as default, genBasicInputStyle, genInputSmallStyle, genPlaceholderStyle, useSharedStyle };
|
|
382
|
+
export { style_default as default, genBasicInputStyle, genInputLargeStyle, genInputSmallStyle, genPlaceholderStyle, useSharedStyle };
|
|
@@ -148,7 +148,8 @@ function genFilledStyle(token, extraStyles) {
|
|
|
148
148
|
...genBaseFilledStyle(token, {
|
|
149
149
|
bg: token.colorFillTertiary,
|
|
150
150
|
hoverBg: token.colorFillSecondary,
|
|
151
|
-
activeBorderColor: token.activeBorderColor
|
|
151
|
+
activeBorderColor: token.activeBorderColor,
|
|
152
|
+
inputColor: token.colorText
|
|
152
153
|
}),
|
|
153
154
|
[`&${token.componentCls}-disabled, &[disabled]`]: { ...genDisabledStyle(token) },
|
|
154
155
|
...genFilledStatusStyle(token, {
|
|
@@ -4,14 +4,27 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.mjs";
|
|
6
6
|
import { ComponentBaseProps, Variant } from "../config-provider/context.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import { SlotsType } from "vue";
|
|
7
|
+
import * as vue112 from "vue";
|
|
8
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { InputNumberProps, InputNumberRef as VcInputNumberRef, ValueType } from "@v-c/input-number";
|
|
10
10
|
|
|
11
11
|
//#region src/input-number/index.d.ts
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
interface InputNumberSemanticClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
prefix?: string;
|
|
15
|
+
suffix?: string;
|
|
16
|
+
input?: string;
|
|
17
|
+
actions?: string;
|
|
18
|
+
}
|
|
19
|
+
interface InputNumberSemanticStyles {
|
|
20
|
+
root?: CSSProperties;
|
|
21
|
+
prefix?: CSSProperties;
|
|
22
|
+
suffix?: CSSProperties;
|
|
23
|
+
input?: CSSProperties;
|
|
24
|
+
actions?: CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
type InputNumberClassNamesType = SemanticClassNamesType<InputNumberProps$1, InputNumberSemanticClassNames>;
|
|
27
|
+
type InputNumberStylesType = SemanticStylesType<InputNumberProps$1, InputNumberSemanticStyles>;
|
|
15
28
|
interface InputNumberStepContext {
|
|
16
29
|
offset: ValueType;
|
|
17
30
|
type: 'up' | 'down';
|
|
@@ -69,8 +82,8 @@ interface InputNumberSlots {
|
|
|
69
82
|
addonAfter?: () => any;
|
|
70
83
|
default?: () => any;
|
|
71
84
|
}
|
|
72
|
-
declare const InputNumber:
|
|
85
|
+
declare const InputNumber: vue112.DefineSetupFnComponent<InputNumberProps$1, InputNumberEmits, SlotsType<InputNumberSlots>, InputNumberProps$1 & {
|
|
73
86
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
74
|
-
},
|
|
87
|
+
}, vue112.PublicProps>;
|
|
75
88
|
//#endregion
|
|
76
89
|
export { InputNumber, InputNumberEmits, InputNumberProps$1 as InputNumberProps, InputNumberStepContext, type ValueType, VcInputNumberRef };
|
package/dist/layout/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BasicProps, Layout } from "./layout.mjs";
|
|
2
2
|
import { SiderEmits, SiderProps, SiderSlots, useSiderCtx } from "./Sider.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue114 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/layout/index.d.ts
|
|
6
6
|
declare const useLayoutSider: typeof useSiderCtx;
|
|
7
|
-
declare const LayoutHeader:
|
|
8
|
-
declare const LayoutFooter:
|
|
9
|
-
declare const LayoutContent:
|
|
10
|
-
declare const LayoutSider:
|
|
7
|
+
declare const LayoutHeader: vue114.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue114.PublicProps>;
|
|
8
|
+
declare const LayoutFooter: vue114.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue114.PublicProps>;
|
|
9
|
+
declare const LayoutContent: vue114.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue114.PublicProps>;
|
|
10
|
+
declare const LayoutSider: vue114.DefineSetupFnComponent<SiderProps, SiderEmits, vue114.SlotsType<SiderSlots>, SiderProps & {
|
|
11
11
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
12
|
-
},
|
|
12
|
+
}, vue114.PublicProps>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider };
|
package/dist/layout/layout.d.mts
CHANGED
package/dist/locale/index.d.mts
CHANGED
|
@@ -5,14 +5,21 @@ import { RowProps } from "../grid/row.mjs";
|
|
|
5
5
|
import "../grid/index.mjs";
|
|
6
6
|
import { MasonryItemType } from "./MasonryItem.mjs";
|
|
7
7
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
8
|
-
import * as
|
|
9
|
-
import { SlotsType } from "vue";
|
|
8
|
+
import * as vue257 from "vue";
|
|
9
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
10
10
|
|
|
11
11
|
//#region src/masonry/Masonry.d.ts
|
|
12
12
|
type Key = string | number;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
interface MasonrySemanticClassNames {
|
|
14
|
+
root?: string;
|
|
15
|
+
item?: string;
|
|
16
|
+
}
|
|
17
|
+
interface MasonrySemanticStyles {
|
|
18
|
+
root?: CSSProperties;
|
|
19
|
+
item?: CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
type MasonryClassNamesType = SemanticClassNamesType<MasonryProps, MasonrySemanticClassNames>;
|
|
22
|
+
type MasonryStylesType = SemanticStylesType<MasonryProps, MasonrySemanticStyles>;
|
|
16
23
|
interface MasonryProps extends ComponentBaseProps {
|
|
17
24
|
classes?: MasonryClassNamesType;
|
|
18
25
|
styles?: MasonryStylesType;
|
|
@@ -43,8 +50,8 @@ interface MasonrySlots {
|
|
|
43
50
|
interface MasonryRef {
|
|
44
51
|
nativeElement: HTMLDivElement;
|
|
45
52
|
}
|
|
46
|
-
declare const Masonry:
|
|
53
|
+
declare const Masonry: vue257.DefineSetupFnComponent<MasonryProps, MasonryEmits, SlotsType<MasonrySlots>, MasonryProps & {
|
|
47
54
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
48
|
-
},
|
|
55
|
+
}, vue257.PublicProps>;
|
|
49
56
|
//#endregion
|
|
50
57
|
export { Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots };
|
|
@@ -7,8 +7,8 @@ const MasonryItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
7
7
|
const domRef = shallowRef();
|
|
8
8
|
let observer = null;
|
|
9
9
|
const onResize = () => {
|
|
10
|
-
const onResize
|
|
11
|
-
if (onResize
|
|
10
|
+
const onResize = props?.onResize;
|
|
11
|
+
if (onResize) onResize();
|
|
12
12
|
};
|
|
13
13
|
watch([() => props.onResize, domRef], (_n, _o, onCleanup) => {
|
|
14
14
|
if (props.onResize && domRef.value) {
|
|
@@ -4,15 +4,26 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.mjs";
|
|
6
6
|
import { ComponentBaseProps, Variant } from "../config-provider/context.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import { App, SlotsType } from "vue";
|
|
7
|
+
import * as vue123 from "vue";
|
|
8
|
+
import { App, CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { DataDrivenOptionProps, MentionsProps, MentionsRef, Option } from "@v-c/mentions";
|
|
10
10
|
|
|
11
11
|
//#region src/mentions/index.d.ts
|
|
12
12
|
type MentionPlacement = 'top' | 'bottom';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
interface MentionSemanticClassNames {
|
|
14
|
+
root?: string;
|
|
15
|
+
textarea?: string;
|
|
16
|
+
popup?: string;
|
|
17
|
+
suffix?: string;
|
|
18
|
+
}
|
|
19
|
+
interface MentionSemanticStyles {
|
|
20
|
+
root?: CSSProperties;
|
|
21
|
+
textarea?: CSSProperties;
|
|
22
|
+
popup?: CSSProperties;
|
|
23
|
+
suffix?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
type MentionsClassNamesType = SemanticClassNamesType<MentionProps, MentionSemanticClassNames>;
|
|
26
|
+
type MentionsStylesType = SemanticStylesType<MentionProps, MentionSemanticStyles>;
|
|
16
27
|
interface MentionsOptionProps extends DataDrivenOptionProps {
|
|
17
28
|
content?: VueNode;
|
|
18
29
|
}
|
|
@@ -66,9 +77,9 @@ interface MentionsEntity {
|
|
|
66
77
|
prefix: string;
|
|
67
78
|
value: string;
|
|
68
79
|
}
|
|
69
|
-
declare const InternalMentions:
|
|
80
|
+
declare const InternalMentions: vue123.DefineSetupFnComponent<MentionProps, MentionsEmits, SlotsType<MentionsSlots>, MentionProps & {
|
|
70
81
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
71
|
-
},
|
|
82
|
+
}, vue123.PublicProps>;
|
|
72
83
|
declare const Mentions: typeof InternalMentions & {
|
|
73
84
|
Option: typeof Option;
|
|
74
85
|
getMentions: (value: string, config?: MentionsConfig) => MentionsEntity[];
|
package/dist/mentions/index.mjs
CHANGED
|
@@ -149,7 +149,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
|
|
|
149
149
|
"disabled": true
|
|
150
150
|
}, { default: () => [createVNode(spin_default, { "size": "small" }, null)] }) : props.options !== void 0 ? null : filterEmpty(slots.default?.() ?? []).filter(Boolean);
|
|
151
151
|
const mergedPopupClassName = clsx(mergedClassNames.value.popup, rootClass.value, hashId.value, cssVarCls.value, rootCls.value);
|
|
152
|
-
const classNames
|
|
152
|
+
const classNames = {
|
|
153
153
|
mentions: clsx({
|
|
154
154
|
[`${prefixCls.value}-disabled`]: mergedDisabled.value,
|
|
155
155
|
[`${prefixCls.value}-focused`]: focused.value,
|
|
@@ -171,7 +171,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
|
|
|
171
171
|
"prefixCls": prefixCls.value,
|
|
172
172
|
"className": mergedClassName,
|
|
173
173
|
"style": rootStyle,
|
|
174
|
-
"classNames": classNames
|
|
174
|
+
"classNames": classNames,
|
|
175
175
|
"styles": mergedStylesValue,
|
|
176
176
|
"popupClassName": props.popupClassName,
|
|
177
177
|
"notFoundContent": notFoundContent.value,
|