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
|
@@ -42,7 +42,7 @@ const genDropdownStyle = (token) => {
|
|
|
42
42
|
"fontWeight": "normal",
|
|
43
43
|
lineHeight,
|
|
44
44
|
"cursor": "pointer",
|
|
45
|
-
"transition": `background ${motionDurationSlow} ease`,
|
|
45
|
+
"transition": `background-color ${motionDurationSlow} ease`,
|
|
46
46
|
"&:hover": { backgroundColor: controlItemBgHover },
|
|
47
47
|
"&-disabled": {
|
|
48
48
|
"color": colorTextDisabled,
|
|
@@ -64,7 +64,7 @@ const genDropdownStyle = (token) => {
|
|
|
64
64
|
} } };
|
|
65
65
|
};
|
|
66
66
|
const genMentionsStyle = (token) => {
|
|
67
|
-
const { componentCls,
|
|
67
|
+
const { componentCls, colorText, antCls, colorTextDisabled, calc } = token;
|
|
68
68
|
const [varName, varRef] = genCssVar(antCls, "cmp-mentions");
|
|
69
69
|
return { [componentCls]: [
|
|
70
70
|
resetComponent(token),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue391 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/menu/MenuDivider.d.ts
|
|
4
4
|
interface MenuDividerProps {
|
|
5
5
|
prefixCls?: string;
|
|
6
6
|
dashed?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const MenuDivider:
|
|
8
|
+
declare const MenuDivider: vue391.DefineSetupFnComponent<MenuDividerProps, {}, {}, MenuDividerProps & {}, vue391.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { MenuDivider };
|
package/dist/menu/MenuItem.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue393 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
import { MenuItemType } from "@v-c/menu";
|
|
5
5
|
|
|
@@ -24,8 +24,8 @@ interface MenuItemSlots {
|
|
|
24
24
|
title: () => any;
|
|
25
25
|
extra: () => any;
|
|
26
26
|
}
|
|
27
|
-
declare const MenuItem:
|
|
27
|
+
declare const MenuItem: vue393.DefineSetupFnComponent<MenuItemProps$1, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps$1 & {
|
|
28
28
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
29
|
-
},
|
|
29
|
+
}, vue393.PublicProps>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { MenuItem, MenuItemProps$1 as MenuItemProps, MenuItemSlots };
|
package/dist/menu/MenuItem.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { useSiderCtx } from "../layout/Sider.mjs";
|
|
|
6
6
|
import { useMenuContext } from "./MenuContext.mjs";
|
|
7
7
|
import { createVNode, defineComponent, isVNode, mergeProps } from "vue";
|
|
8
8
|
import { clsx } from "@v-c/util";
|
|
9
|
-
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
9
|
+
import { filterEmpty, getAttrStyleAndClass } from "@v-c/util/dist/props-util";
|
|
10
10
|
import { omit } from "es-toolkit";
|
|
11
11
|
import { Item } from "@v-c/menu";
|
|
12
12
|
|
|
@@ -21,6 +21,7 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
21
21
|
const extra = getSlotPropsFnRun(slots, props, "extra");
|
|
22
22
|
const icon = getSlotPropsFnRun(slots, props, "icon");
|
|
23
23
|
const title = getSlotPropsFnRun(slots, props, "title");
|
|
24
|
+
const { className, style } = getAttrStyleAndClass(attrs);
|
|
24
25
|
const { danger } = props;
|
|
25
26
|
const { prefixCls, firstLevel, direction, disableMenuItemTitleTooltip, inlineCollapsed: isInlineCollapsed, styles, classes } = menuContext.value;
|
|
26
27
|
const children = filterEmpty(slots?.default?.());
|
|
@@ -53,8 +54,8 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
53
54
|
"class": clsx(firstLevel ? classes?.item : classes?.subMenu?.item, {
|
|
54
55
|
[`${prefixCls}-item-danger`]: !!danger,
|
|
55
56
|
[`${prefixCls}-item-only-child`]: (icon ? childrenLength + 1 : childrenLength) === 1
|
|
56
|
-
},
|
|
57
|
-
"style": [
|
|
57
|
+
}, className),
|
|
58
|
+
"style": [firstLevel ? styles?.item : styles?.subMenu?.item, style],
|
|
58
59
|
"title": typeof title === "string" ? title : void 0
|
|
59
60
|
}), { default: () => [icon ? createVNode(icon, {
|
|
60
61
|
class: clsx(`${prefixCls}-item-icon`, firstLevel ? classes?.itemIcon : classes?.subMenu?.itemIcon),
|
package/dist/menu/SubMenu.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { SubMenuType } from "./interface.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue397 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/menu/SubMenu.d.ts
|
|
@@ -12,8 +12,8 @@ interface SubMenuSlots {
|
|
|
12
12
|
icon: () => any;
|
|
13
13
|
default: () => any;
|
|
14
14
|
}
|
|
15
|
-
declare const SubMenu:
|
|
15
|
+
declare const SubMenu: vue397.DefineSetupFnComponent<SubMenuProps, EmptyEmit, SlotsType<SubMenuSlots>, SubMenuProps & {
|
|
16
16
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
17
|
-
},
|
|
17
|
+
}, vue397.PublicProps>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SubMenu, SubMenuProps };
|
package/dist/menu/SubMenu.mjs
CHANGED
|
@@ -140,6 +140,11 @@ const SubMenu$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
140
140
|
required: false,
|
|
141
141
|
default: void 0
|
|
142
142
|
},
|
|
143
|
+
popupRender: {
|
|
144
|
+
type: Function,
|
|
145
|
+
required: false,
|
|
146
|
+
default: void 0
|
|
147
|
+
},
|
|
143
148
|
onClick: {
|
|
144
149
|
type: Function,
|
|
145
150
|
required: false,
|
package/dist/menu/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { ItemType } from "./interface.mjs";
|
|
|
4
4
|
import { MenuEmits, MenuProps as MenuProps$1, MenuSlots } from "./menu.mjs";
|
|
5
5
|
import { SubMenu as SubMenu$1, SubMenuProps } from "./SubMenu.mjs";
|
|
6
6
|
import { MenuDivider } from "./MenuDivider.mjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue125 from "vue";
|
|
8
8
|
import { SlotsType } from "vue";
|
|
9
9
|
import { MenuItemGroupProps, MenuRef } from "@v-c/menu";
|
|
10
10
|
|
|
@@ -14,12 +14,12 @@ interface MenuRef$1 {
|
|
|
14
14
|
menu: MenuRef | null;
|
|
15
15
|
focus: (options?: FocusOptions) => void;
|
|
16
16
|
}
|
|
17
|
-
declare const Menu:
|
|
17
|
+
declare const Menu: vue125.DefineSetupFnComponent<MenuProps$1, MenuEmits, SlotsType<MenuSlots>, MenuProps$1 & {
|
|
18
18
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
19
|
-
},
|
|
20
|
-
declare const MenuItem:
|
|
19
|
+
}, vue125.PublicProps>;
|
|
20
|
+
declare const MenuItem: vue125.DefineSetupFnComponent<MenuItemProps$1, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps$1 & {
|
|
21
21
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
22
|
-
},
|
|
22
|
+
}, vue125.PublicProps>;
|
|
23
23
|
declare const _default: typeof Menu & {
|
|
24
24
|
Item: typeof MenuItem$1;
|
|
25
25
|
SubMenu: typeof SubMenu$1;
|
package/dist/menu/menu.d.mts
CHANGED
|
@@ -1,20 +1,52 @@
|
|
|
1
|
-
import { SemanticClassNames, SemanticStyles } from "../_util/hooks/useMergeSemantic.mjs";
|
|
2
|
-
import "../_util/hooks/index.mjs";
|
|
3
1
|
import { ItemType } from "./interface.mjs";
|
|
4
2
|
import { MenuTheme } from "./MenuContext.mjs";
|
|
5
3
|
import { CSSProperties, SlotsType } from "vue";
|
|
6
4
|
import { MenuInfo, MenuItemProps, MenuProps, RenderIconInfo, SelectInfo } from "@v-c/menu";
|
|
7
5
|
|
|
8
6
|
//#region src/menu/menu.d.ts
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
interface MenuSemanticClassNames {
|
|
8
|
+
root?: string;
|
|
9
|
+
itemTitle?: string;
|
|
10
|
+
list?: string;
|
|
11
|
+
item?: string;
|
|
12
|
+
itemIcon?: string;
|
|
13
|
+
itemContent?: string;
|
|
14
|
+
}
|
|
15
|
+
interface MenuSemanticStyles {
|
|
16
|
+
root?: CSSProperties;
|
|
17
|
+
itemTitle?: CSSProperties;
|
|
18
|
+
list?: CSSProperties;
|
|
19
|
+
item?: CSSProperties;
|
|
20
|
+
itemIcon?: CSSProperties;
|
|
21
|
+
itemContent?: CSSProperties;
|
|
22
|
+
}
|
|
23
|
+
interface SubMenuSemanticClassNames {
|
|
24
|
+
item?: string;
|
|
25
|
+
itemTitle?: string;
|
|
26
|
+
list?: string;
|
|
27
|
+
itemContent?: string;
|
|
28
|
+
itemIcon?: string;
|
|
29
|
+
}
|
|
30
|
+
interface SubMenuSemanticStyles {
|
|
31
|
+
item?: CSSProperties;
|
|
32
|
+
itemTitle?: CSSProperties;
|
|
33
|
+
list?: CSSProperties;
|
|
34
|
+
itemContent?: CSSProperties;
|
|
35
|
+
itemIcon?: CSSProperties;
|
|
36
|
+
}
|
|
37
|
+
interface MenuPopupSemanticClassNames {
|
|
38
|
+
root?: string;
|
|
39
|
+
}
|
|
40
|
+
interface MenuPopupSemanticStyles {
|
|
41
|
+
root?: CSSProperties;
|
|
42
|
+
}
|
|
43
|
+
type MenuClassNamesSchemaType = MenuSemanticClassNames & {
|
|
44
|
+
popup?: MenuPopupSemanticClassNames | string;
|
|
45
|
+
subMenu?: SubMenuSemanticClassNames;
|
|
14
46
|
};
|
|
15
|
-
type MenuStylesSchemaType =
|
|
16
|
-
popup?:
|
|
17
|
-
subMenu?:
|
|
47
|
+
type MenuStylesSchemaType = MenuSemanticStyles & {
|
|
48
|
+
popup?: MenuPopupSemanticStyles | CSSProperties;
|
|
49
|
+
subMenu?: SubMenuSemanticStyles;
|
|
18
50
|
};
|
|
19
51
|
type MenuClassNamesType = MenuClassNamesSchemaType | ((info: {
|
|
20
52
|
props: MenuProps$1;
|
package/dist/menu/menu.mjs
CHANGED
|
@@ -105,12 +105,12 @@ const InternalMenu = /* @__PURE__ */ defineComponent((props, { slots, emit, attr
|
|
|
105
105
|
expose({ menu: menuRef });
|
|
106
106
|
return () => {
|
|
107
107
|
const expandIcon = slots?.expandIcon ?? props?.expandIcon;
|
|
108
|
-
const mergedExpandIcon = (props
|
|
108
|
+
const mergedExpandIcon = (props) => {
|
|
109
109
|
if (typeof expandIcon === "function" || isEmptyIcon(expandIcon)) return expandIcon || null;
|
|
110
110
|
if (typeof overrideObj.value?.expandIcon === "function" || isEmptyIcon(overrideObj.value?.expandIcon)) return overrideObj.value.expandIcon || null;
|
|
111
111
|
if (typeof contextExpandIcon.value === "function" || isEmptyIcon(contextExpandIcon.value)) return contextExpandIcon.value || null;
|
|
112
112
|
const mergedIcon = expandIcon ?? overrideObj?.value.expandIcon ?? contextExpandIcon.value;
|
|
113
|
-
const icon = typeof mergedIcon === "function" ? mergedIcon?.(props
|
|
113
|
+
const icon = typeof mergedIcon === "function" ? mergedIcon?.(props) : mergedIcon;
|
|
114
114
|
const iconChild = filterEmpty(Array.isArray(icon) ? icon : [icon])[0];
|
|
115
115
|
if (isVNode(iconChild)) return createVNode(iconChild, { class: `${prefixCls.value}-submenu-expand-icon` });
|
|
116
116
|
};
|
|
@@ -66,7 +66,7 @@ const getVerticalStyle = (token) => {
|
|
|
66
66
|
"alignItems": "center",
|
|
67
67
|
"transition": [
|
|
68
68
|
`border-color ${motionDurationSlow}`,
|
|
69
|
-
`background ${motionDurationSlow}`,
|
|
69
|
+
`background-color ${motionDurationSlow}`,
|
|
70
70
|
`padding ${motionDurationFast} ${motionEaseOut}`
|
|
71
71
|
].join(","),
|
|
72
72
|
[`> ${componentCls}-title-content`]: {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import { ArgsClassNamesType, ArgsStylesType, NoticeType, SemanticName } from "./interface.mjs";
|
|
5
|
-
import * as vue398 from "vue";
|
|
2
|
+
import { ArgsClassNamesType, ArgsStylesType, MessageSemanticClassNames, MessageSemanticStyles, NoticeType } from "./interface.mjs";
|
|
3
|
+
import * as vue399 from "vue";
|
|
6
4
|
|
|
7
5
|
//#region src/message/PurePanel.d.ts
|
|
8
6
|
interface PureContentProps {
|
|
9
7
|
prefixCls: string;
|
|
10
8
|
type?: NoticeType;
|
|
11
9
|
icon?: VueNode;
|
|
12
|
-
classNames?:
|
|
13
|
-
styles?:
|
|
10
|
+
classNames?: MessageSemanticClassNames;
|
|
11
|
+
styles?: MessageSemanticStyles;
|
|
14
12
|
}
|
|
15
13
|
interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children' | 'classNames' | 'styles'> {
|
|
16
14
|
content?: VueNode;
|
|
@@ -31,6 +29,6 @@ interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children'
|
|
|
31
29
|
styles?: ArgsStylesType;
|
|
32
30
|
}
|
|
33
31
|
/** @private Internal Component. Do not use in your production. */
|
|
34
|
-
declare const PurePanel:
|
|
32
|
+
declare const PurePanel: vue399.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue399.PublicProps>;
|
|
35
33
|
//#endregion
|
|
36
34
|
export { PurePanel };
|
package/dist/message/index.mjs
CHANGED
|
@@ -83,8 +83,8 @@ const GlobalHolderWrapper = /* @__PURE__ */ defineComponent((props) => {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}, { immediate: true });
|
|
86
|
+
const global = globalConfig();
|
|
86
87
|
return () => {
|
|
87
|
-
const global = globalConfig();
|
|
88
88
|
const holderNode = createVNode(GlobalHolder, {
|
|
89
89
|
"ref": holderRef,
|
|
90
90
|
"sync": sync,
|
|
@@ -94,7 +94,7 @@ const GlobalHolderWrapper = /* @__PURE__ */ defineComponent((props) => {
|
|
|
94
94
|
return createVNode(config_provider_default, {
|
|
95
95
|
"prefixCls": global.getRootPrefixCls(),
|
|
96
96
|
"iconPrefixCls": global.getIconPrefixCls(),
|
|
97
|
-
"theme": global.
|
|
97
|
+
"theme": global.theme.value
|
|
98
98
|
}, _isSlot(dom) ? dom : { default: () => [dom] });
|
|
99
99
|
};
|
|
100
100
|
}, { props: { onReady: {
|
|
@@ -6,9 +6,18 @@ import { Key } from "@v-c/util/dist/type";
|
|
|
6
6
|
|
|
7
7
|
//#region src/message/interface.d.ts
|
|
8
8
|
type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
interface MessageSemanticClassNames {
|
|
10
|
+
root?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
}
|
|
14
|
+
interface MessageSemanticStyles {
|
|
15
|
+
root?: CSSProperties;
|
|
16
|
+
icon?: CSSProperties;
|
|
17
|
+
content?: CSSProperties;
|
|
18
|
+
}
|
|
19
|
+
type ArgsClassNamesType = SemanticClassNamesType<ArgsProps, MessageSemanticClassNames>;
|
|
20
|
+
type ArgsStylesType = SemanticStylesType<ArgsProps, MessageSemanticStyles>;
|
|
12
21
|
interface ConfigOptions {
|
|
13
22
|
top?: string | number;
|
|
14
23
|
duration?: number;
|
|
@@ -62,6 +71,11 @@ interface ArgsProps {
|
|
|
62
71
|
* @descEN keep the timer running or not on hover
|
|
63
72
|
*/
|
|
64
73
|
pauseOnHover?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @descCN 消息通知的应用上下文
|
|
76
|
+
* @descEN The application context of the message notification
|
|
77
|
+
*/
|
|
78
|
+
appContext?: any;
|
|
65
79
|
}
|
|
66
80
|
type JointContent = VueNode | ArgsProps;
|
|
67
81
|
interface MessageType extends PromiseLike<boolean> {
|
|
@@ -72,11 +86,13 @@ type TypeOpen = (content: JointContent,
|
|
|
72
86
|
* @descCN 消息通知持续显示的时间,也可以直接使用 onClose。
|
|
73
87
|
* @descEN You can also use onClose directly to determine how long the message notification continues to be displayed.
|
|
74
88
|
*/
|
|
89
|
+
|
|
75
90
|
duration?: number | VoidFunction,
|
|
76
91
|
/**
|
|
77
92
|
* @descCN 消息通知关闭时进行调用的回调函数
|
|
78
93
|
* @descEN The callback function called when the message notification is closed
|
|
79
94
|
*/
|
|
95
|
+
|
|
80
96
|
onClose?: VoidFunction) => MessageType;
|
|
81
97
|
interface MessageInstance {
|
|
82
98
|
info: TypeOpen;
|
|
@@ -88,4 +104,4 @@ interface MessageInstance {
|
|
|
88
104
|
destroy: (key?: Key) => void;
|
|
89
105
|
}
|
|
90
106
|
//#endregion
|
|
91
|
-
export { ArgsClassNamesType, ArgsProps, ArgsStylesType, ConfigOptions, MessageInstance, MessageType, NoticeType,
|
|
107
|
+
export { ArgsClassNamesType, ArgsProps, ArgsStylesType, ConfigOptions, MessageInstance, MessageSemanticClassNames, MessageSemanticStyles, MessageType, NoticeType, TypeOpen };
|
|
@@ -3,7 +3,6 @@ import { MaybeRef } from "@v-c/util/dist/type";
|
|
|
3
3
|
import * as vue_jsx_runtime15 from "vue/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/message/useMessage.d.ts
|
|
6
|
-
|
|
7
6
|
declare function useMessage(messageConfig?: ConfigOptions): readonly [MessageInstance, () => vue_jsx_runtime15.JSX.Element];
|
|
8
7
|
//#endregion
|
|
9
8
|
export { useMessage };
|
package/dist/modal/Modal.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ModalEmits, ModalProps, ModalSlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue289 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/modal/Modal.d.ts
|
|
6
|
-
declare const Modal:
|
|
6
|
+
declare const Modal: vue289.DefineSetupFnComponent<ModalProps, ModalEmits, SlotsType<ModalSlots>, ModalProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue289.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Modal };
|
package/dist/modal/confirm.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { devUseWarning, isDev } from "../_util/warning.mjs";
|
|
|
2
2
|
import { globalConfig } from "../config-provider/index.mjs";
|
|
3
3
|
import ConfirmDialog_default from "./ConfirmDialog.mjs";
|
|
4
4
|
import destroyFns_default from "./destroyFns.mjs";
|
|
5
|
-
import { createVNode, defineComponent, render } from "vue";
|
|
5
|
+
import { createVNode, defineComponent, render, watch } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/modal/confirm.tsx
|
|
8
8
|
let defaultRootPrefixCls = "";
|
|
@@ -362,15 +362,19 @@ function confirm(config) {
|
|
|
362
362
|
function renderWithProps(props) {
|
|
363
363
|
const rootPrefixCls = global.getPrefixCls(void 0, getRootPrefixCls());
|
|
364
364
|
const iconPrefixCls = global.getIconPrefixCls?.();
|
|
365
|
-
const theme = global.
|
|
365
|
+
const theme = global.theme.value;
|
|
366
366
|
const prefixCls = props.prefixCls ?? `${rootPrefixCls}-modal`;
|
|
367
|
-
|
|
367
|
+
const vnode = createVNode(ConfirmDialogWrapper, {
|
|
368
368
|
...props,
|
|
369
369
|
prefixCls,
|
|
370
370
|
rootPrefixCls,
|
|
371
371
|
iconPrefixCls,
|
|
372
372
|
theme
|
|
373
|
-
})
|
|
373
|
+
});
|
|
374
|
+
watch(() => global.theme.value, () => {
|
|
375
|
+
vnode.component?.update?.();
|
|
376
|
+
});
|
|
377
|
+
render(vnode, container);
|
|
374
378
|
}
|
|
375
379
|
function close(...args) {
|
|
376
380
|
currentConfig = {
|
|
@@ -12,9 +12,28 @@ import { CSSProperties } from "vue";
|
|
|
12
12
|
import { DialogProps } from "@v-c/dialog";
|
|
13
13
|
|
|
14
14
|
//#region src/modal/interface.d.ts
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
interface ModalSemanticClassNames {
|
|
16
|
+
root?: string;
|
|
17
|
+
header?: string;
|
|
18
|
+
body?: string;
|
|
19
|
+
footer?: string;
|
|
20
|
+
container?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
wrapper?: string;
|
|
23
|
+
mask?: string;
|
|
24
|
+
}
|
|
25
|
+
interface ModalSemanticStyles {
|
|
26
|
+
root?: CSSProperties;
|
|
27
|
+
header?: CSSProperties;
|
|
28
|
+
body?: CSSProperties;
|
|
29
|
+
footer?: CSSProperties;
|
|
30
|
+
container?: CSSProperties;
|
|
31
|
+
title?: CSSProperties;
|
|
32
|
+
wrapper?: CSSProperties;
|
|
33
|
+
mask?: CSSProperties;
|
|
34
|
+
}
|
|
35
|
+
type ModalClassNamesType = SemanticClassNamesType<ModalProps, ModalSemanticClassNames>;
|
|
36
|
+
type ModalStylesType = SemanticStylesType<ModalProps, ModalSemanticStyles>;
|
|
18
37
|
interface ModalCommonProps extends Omit<DialogProps, 'footer' | 'width' | 'onClose' | 'animation' | 'maskAnimation' | 'transitionName' | 'maskTransitionName' | 'mask' | 'classNames' | 'styles' | 'modalRender' | 'rootStyle' | 'style' | OmitFocusType> {
|
|
19
38
|
footer?: VueNode | ((params: {
|
|
20
39
|
originNode: VueNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { genFocusStyle, resetComponent } from "../../style/index.mjs";
|
|
1
|
+
import { genFocusOutline, genFocusStyle, resetComponent } from "../../style/index.mjs";
|
|
2
2
|
import { genStyleHooks } from "../../theme/util/genStyleUtils.mjs";
|
|
3
3
|
import { mergeToken } from "../../theme/internal.mjs";
|
|
4
4
|
import { initFadeMotion } from "../../style/motion/fade.mjs";
|
|
@@ -74,13 +74,16 @@ const genModalStyle = (token) => {
|
|
|
74
74
|
} },
|
|
75
75
|
{ [componentCls]: {
|
|
76
76
|
...resetComponent(token),
|
|
77
|
-
pointerEvents: "none",
|
|
78
|
-
position: "relative",
|
|
79
|
-
top: 100,
|
|
80
|
-
width: "auto",
|
|
81
|
-
maxWidth: `calc(100vw - ${unit(token.calc(token.margin).mul(2).equal())})`,
|
|
82
|
-
margin: "0 auto",
|
|
83
|
-
|
|
77
|
+
"pointerEvents": "none",
|
|
78
|
+
"position": "relative",
|
|
79
|
+
"top": 100,
|
|
80
|
+
"width": "auto",
|
|
81
|
+
"maxWidth": `calc(100vw - ${unit(token.calc(token.margin).mul(2).equal())})`,
|
|
82
|
+
"margin": "0 auto",
|
|
83
|
+
"&:focus-visible": {
|
|
84
|
+
borderRadius: token.borderRadiusLG,
|
|
85
|
+
...genFocusOutline(token)
|
|
86
|
+
},
|
|
84
87
|
[`${componentCls}-title`]: {
|
|
85
88
|
margin: 0,
|
|
86
89
|
color: token.titleColor,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
|
-
import { IconType,
|
|
5
|
-
import * as
|
|
4
|
+
import { IconType, NotificationSemanticClassNames, NotificationSemanticStyles } from "./interface.mjs";
|
|
5
|
+
import * as vue346 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/notification/PurePanel.d.ts
|
|
8
|
-
type PurePanelClassNamesType = SemanticClassNamesType<PurePanelProps,
|
|
9
|
-
type PurePanelStylesType = SemanticStylesType<PurePanelProps,
|
|
8
|
+
type PurePanelClassNamesType = SemanticClassNamesType<PurePanelProps, NotificationSemanticClassNames>;
|
|
9
|
+
type PurePanelStylesType = SemanticStylesType<PurePanelProps, NotificationSemanticStyles>;
|
|
10
10
|
interface PureContentProps {
|
|
11
11
|
prefixCls: string;
|
|
12
12
|
icon?: VueNode;
|
|
@@ -15,8 +15,8 @@ interface PureContentProps {
|
|
|
15
15
|
actions?: VueNode;
|
|
16
16
|
type?: IconType;
|
|
17
17
|
role?: 'alert' | 'status';
|
|
18
|
-
classes:
|
|
19
|
-
styles:
|
|
18
|
+
classes: NotificationSemanticClassNames;
|
|
19
|
+
styles: NotificationSemanticStyles;
|
|
20
20
|
}
|
|
21
21
|
interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children' | 'classes' | 'styles'> {
|
|
22
22
|
content?: VueNode;
|
|
@@ -36,6 +36,6 @@ interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children'
|
|
|
36
36
|
onClick?: (event: Event) => void;
|
|
37
37
|
}
|
|
38
38
|
/** @private Internal Component. Do not use in your production. */
|
|
39
|
-
declare const PurePanel:
|
|
39
|
+
declare const PurePanel: vue346.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue346.PublicProps>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { PurePanel };
|
|
@@ -83,8 +83,8 @@ const GlobalHolderWrapper = /* @__PURE__ */ defineComponent((props) => {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}, { immediate: true });
|
|
86
|
+
const global = globalConfig();
|
|
86
87
|
return () => {
|
|
87
|
-
const global = globalConfig();
|
|
88
88
|
const holderNode = createVNode(GlobalHolder, {
|
|
89
89
|
"ref": holderRef,
|
|
90
90
|
"sync": sync,
|
|
@@ -94,7 +94,7 @@ const GlobalHolderWrapper = /* @__PURE__ */ defineComponent((props) => {
|
|
|
94
94
|
return createVNode(config_provider_default, {
|
|
95
95
|
"prefixCls": global.getRootPrefixCls(),
|
|
96
96
|
"iconPrefixCls": global.getIconPrefixCls(),
|
|
97
|
-
"theme": global.
|
|
97
|
+
"theme": global.theme.value
|
|
98
98
|
}, _isSlot(dom) ? dom : { default: () => [dom] });
|
|
99
99
|
};
|
|
100
100
|
}, { props: { onReady: {
|
|
@@ -12,11 +12,24 @@ interface DivProps extends HTMLAttributes {
|
|
|
12
12
|
declare const NotificationPlacements: readonly ["top", "topLeft", "topRight", "bottom", "bottomLeft", "bottomRight"];
|
|
13
13
|
type NotificationPlacement = (typeof NotificationPlacements)[number];
|
|
14
14
|
type IconType = 'success' | 'info' | 'error' | 'warning';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
interface NotificationSemanticClassNames {
|
|
16
|
+
root?: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
actions?: string;
|
|
20
|
+
icon?: string;
|
|
21
|
+
}
|
|
22
|
+
interface NotificationSemanticStyles {
|
|
23
|
+
root?: CSSProperties;
|
|
24
|
+
title?: CSSProperties;
|
|
25
|
+
description?: CSSProperties;
|
|
26
|
+
actions?: CSSProperties;
|
|
27
|
+
icon?: CSSProperties;
|
|
28
|
+
}
|
|
29
|
+
type NotificationClassNamesType = SemanticClassNamesType<ArgsProps, NotificationSemanticClassNames>;
|
|
30
|
+
type NotificationStylesType = SemanticStylesType<ArgsProps, NotificationSemanticStyles>;
|
|
18
31
|
interface ArgsProps {
|
|
19
|
-
title
|
|
32
|
+
title?: VueNode;
|
|
20
33
|
description?: VueNode;
|
|
21
34
|
actions?: VueNode;
|
|
22
35
|
key?: Key;
|
|
@@ -82,4 +95,4 @@ interface GlobalConfigProps {
|
|
|
82
95
|
props?: DivProps;
|
|
83
96
|
}
|
|
84
97
|
//#endregion
|
|
85
|
-
export { ArgsProps, GlobalConfigProps, IconType, NotificationConfig, NotificationInstance,
|
|
98
|
+
export { ArgsProps, GlobalConfigProps, IconType, NotificationConfig, NotificationInstance, NotificationSemanticClassNames, NotificationSemanticStyles };
|
|
@@ -26,10 +26,10 @@ function genNoticeStyle(token) {
|
|
|
26
26
|
"wordWrap": "break-word",
|
|
27
27
|
"borderRadius": borderRadiusLG,
|
|
28
28
|
"overflow": "hidden",
|
|
29
|
-
"&-success": { background: colorSuccessBg },
|
|
30
|
-
"&-error": { background: colorErrorBg },
|
|
31
|
-
"&-info": { background: colorInfoBg },
|
|
32
|
-
"&-warning": { background: colorWarningBg }
|
|
29
|
+
"&-success": colorSuccessBg ? { background: colorSuccessBg } : {},
|
|
30
|
+
"&-error": colorErrorBg ? { background: colorErrorBg } : {},
|
|
31
|
+
"&-info": colorInfoBg ? { background: colorInfoBg } : {},
|
|
32
|
+
"&-warning": colorWarningBg ? { background: colorWarningBg } : {}
|
|
33
33
|
},
|
|
34
34
|
[`${noticeCls}-title`]: {
|
|
35
35
|
marginBottom: token.marginXS,
|
|
@@ -170,10 +170,10 @@ function prepareComponentToken(token) {
|
|
|
170
170
|
zIndexPopup: token.zIndexPopupBase + CONTAINER_MAX_OFFSET + 50,
|
|
171
171
|
width: 384,
|
|
172
172
|
progressBg: `linear-gradient(90deg, ${token.colorPrimaryBorderHover}, ${token.colorPrimary})`,
|
|
173
|
-
colorSuccessBg:
|
|
174
|
-
colorErrorBg:
|
|
175
|
-
colorInfoBg:
|
|
176
|
-
colorWarningBg:
|
|
173
|
+
colorSuccessBg: void 0,
|
|
174
|
+
colorErrorBg: void 0,
|
|
175
|
+
colorInfoBg: void 0,
|
|
176
|
+
colorWarningBg: void 0
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
const prepareNotificationToken = (token) => {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { NotificationConfig, NotificationInstance } from "./interface.mjs";
|
|
2
2
|
import { MaybeRef } from "@v-c/util/dist/type";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue_jsx_runtime4 from "vue/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/notification/useNotification.d.ts
|
|
6
|
-
|
|
7
|
-
declare function useNotification(notificationConfig?: MaybeRef<NotificationConfig>): readonly [NotificationInstance, () => vue_jsx_runtime13.JSX.Element];
|
|
6
|
+
declare function useNotification(notificationConfig?: MaybeRef<NotificationConfig>): readonly [NotificationInstance, () => vue_jsx_runtime4.JSX.Element];
|
|
8
7
|
//#endregion
|
|
9
8
|
export { useNotification };
|
package/dist/package.d.mts
CHANGED
|
@@ -84,6 +84,9 @@ declare const _exports: {
|
|
|
84
84
|
"build:web-types": string;
|
|
85
85
|
"build:llm": string;
|
|
86
86
|
"build:llm-semantic": string;
|
|
87
|
+
"build:token-meta": string;
|
|
88
|
+
"build:token-statistic": string;
|
|
89
|
+
"build:token": string;
|
|
87
90
|
"build:style": string;
|
|
88
91
|
prepublish: string;
|
|
89
92
|
bump: string;
|
|
@@ -142,6 +145,7 @@ declare const _exports: {
|
|
|
142
145
|
browserslist: string[];
|
|
143
146
|
devDependencies: {
|
|
144
147
|
"@types/throttle-debounce": string;
|
|
148
|
+
csstype: string;
|
|
145
149
|
};
|
|
146
150
|
};
|
|
147
151
|
declare let _version2: typeof _exports["version"];
|
package/dist/package.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PaginationEmits, PaginationProps, PaginationSlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue366 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/pagination/Pagination.d.ts
|
|
6
|
-
declare const Pagination:
|
|
6
|
+
declare const Pagination: vue366.DefineSetupFnComponent<PaginationProps, PaginationEmits, SlotsType<PaginationSlots>, PaginationProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue366.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Pagination };
|