antdv-next 1.0.0-beta.3 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/PurePanel.mjs +4 -4
- package/dist/_util/hooks/useClosable.d.mts +0 -1
- package/dist/_util/hooks/useClosable.mjs +1 -1
- package/dist/_util/hooks/useMergeSemantic.d.mts +2 -3
- package/dist/_util/hooks/useMergeSemantic.mjs +9 -9
- package/dist/_util/tools.mjs +1 -1
- package/dist/_util/warning.d.mts +0 -1
- package/dist/affix/index.d.mts +3 -3
- package/dist/alert/Alert.d.mts +24 -7
- package/dist/alert/Alert.mjs +91 -28
- package/dist/anchor/Anchor.d.mts +18 -7
- package/dist/antd.css +1 -1
- package/dist/antd.js +101 -112
- package/dist/app/App.d.mts +2 -2
- package/dist/app/App.mjs +2 -2
- package/dist/auto-complete/index.d.mts +23 -11
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/avatar/Avatar.d.mts +3 -3
- package/dist/avatar/AvatarGroup.d.mts +2 -2
- package/dist/avatar/style/index.mjs +2 -2
- package/dist/badge/Ribbon.d.mts +21 -5
- package/dist/badge/Ribbon.mjs +44 -23
- package/dist/badge/SingleNumber.mjs +2 -1
- package/dist/badge/index.d.mts +14 -7
- package/dist/badge/style/ribbon.mjs +1 -1
- package/dist/breadcrumb/Breadcrumb.d.mts +17 -6
- package/dist/breadcrumb/Breadcrumb.mjs +18 -3
- package/dist/breadcrumb/BreadcrumbItem.d.mts +1 -0
- package/dist/breadcrumb/BreadcrumbItem.mjs +29 -4
- package/dist/breadcrumb/style/index.mjs +5 -5
- package/dist/button/Button.d.mts +18 -10
- package/dist/button/buttonHelper.d.mts +0 -1
- package/dist/button/index.d.mts +1 -1
- package/dist/button/style/compact.mjs +28 -19
- package/dist/button/style/token.d.mts +0 -5
- package/dist/button/style/variant.mjs +27 -3
- package/dist/calendar/generateCalendar.d.mts +20 -7
- package/dist/calendar/generateCalendar.mjs +1 -1
- package/dist/calendar/index.d.mts +3 -3
- package/dist/card/Card.d.mts +23 -6
- package/dist/card/CardGrid.d.mts +2 -2
- package/dist/card/CardMeta.d.mts +20 -7
- package/dist/carousel/index.d.mts +3 -3
- package/dist/cascader/Panel.d.mts +3 -3
- package/dist/cascader/index.d.mts +31 -10
- package/dist/checkbox/Checkbox.d.mts +16 -7
- package/dist/checkbox/Checkbox.mjs +1 -1
- package/dist/checkbox/Group.d.mts +4 -3
- package/dist/checkbox/Group.mjs +11 -2
- package/dist/collapse/Collapse.d.mts +19 -6
- package/dist/collapse/Collapse.mjs +1 -1
- package/dist/color-picker/ColorPicker.d.mts +3 -3
- package/dist/color-picker/interface.d.mts +15 -7
- package/dist/color-picker/style/input.mjs +2 -0
- package/dist/components.d.mts +2 -3
- package/dist/config-provider/context.d.mts +58 -12
- package/dist/config-provider/context.mjs +3 -3
- package/dist/config-provider/define.d.mts +7 -1
- package/dist/config-provider/index.d.mts +3 -4
- package/dist/config-provider/index.mjs +82 -8
- package/dist/date-picker/generatePicker/index.d.mts +15 -15
- package/dist/date-picker/generatePicker/interface.d.mts +37 -10
- package/dist/date-picker/hooks/useMergedPickerSemantic.mjs +2 -2
- package/dist/date-picker/index.d.mts +25 -25
- package/dist/descriptions/Cell.mjs +5 -5
- package/dist/descriptions/DescriptionsContext.d.mts +13 -0
- package/dist/descriptions/Item.d.mts +3 -3
- package/dist/descriptions/hooks/useRow.mjs +7 -7
- package/dist/descriptions/index.d.mts +22 -7
- package/dist/divider/index.d.mts +15 -5
- package/dist/drawer/DrawerPanel.d.mts +28 -3
- package/dist/drawer/DrawerPanel.mjs +3 -3
- package/dist/drawer/index.d.mts +4 -4
- package/dist/drawer/index.mjs +4 -0
- package/dist/drawer/style/index.mjs +9 -2
- package/dist/dropdown/dropdown.d.mts +20 -7
- package/dist/empty/index.d.mts +18 -7
- package/dist/flex/index.d.mts +3 -3
- package/dist/float-button/BackTop.d.mts +3 -3
- package/dist/float-button/FloatButton.d.mts +6 -7
- package/dist/float-button/FloatButtonGroup.d.mts +25 -6
- package/dist/form/Form.d.mts +16 -7
- package/dist/form/FormItem/index.d.mts +3 -3
- package/dist/form/FormItem/index.mjs +1 -1
- package/dist/form/FormItemInput.d.mts +0 -1
- package/dist/grid/index.d.mts +2 -2
- package/dist/grid/row.d.mts +2 -2
- package/dist/image/PreviewGroup.d.mts +3 -5
- package/dist/image/index.d.mts +34 -14
- package/dist/index.d.mts +3 -4
- package/dist/input/Input.d.mts +17 -4
- package/dist/input/Input.mjs +2 -2
- package/dist/input/OTP/index.d.mts +13 -4
- package/dist/input/Password.mjs +3 -3
- package/dist/input/Search.d.mts +21 -9
- package/dist/input/TextArea.d.mts +16 -7
- package/dist/input/TextArea.mjs +2 -2
- package/dist/input/index.d.mts +11 -11
- package/dist/input/style/index.mjs +5 -2
- package/dist/input/style/variants.mjs +2 -1
- package/dist/input-number/index.d.mts +20 -7
- package/dist/layout/index.d.mts +6 -6
- package/dist/layout/layout.d.mts +2 -3
- package/dist/locale/index.d.mts +0 -1
- package/dist/masonry/Masonry.d.mts +14 -7
- package/dist/masonry/MasonryItem.mjs +2 -2
- package/dist/mentions/index.d.mts +18 -7
- package/dist/mentions/index.mjs +2 -2
- package/dist/mentions/style/index.mjs +2 -2
- package/dist/menu/MenuContext.d.mts +0 -1
- package/dist/menu/MenuDivider.d.mts +2 -2
- package/dist/menu/MenuItem.d.mts +3 -3
- package/dist/menu/MenuItem.mjs +4 -3
- package/dist/menu/SubMenu.d.mts +3 -3
- package/dist/menu/SubMenu.mjs +5 -0
- package/dist/menu/index.d.mts +5 -5
- package/dist/menu/menu.d.mts +42 -10
- package/dist/menu/menu.mjs +2 -2
- package/dist/menu/style/index.d.mts +1 -1
- package/dist/menu/style/vertical.mjs +1 -1
- package/dist/message/PurePanel.d.mts +5 -7
- package/dist/message/index.mjs +2 -2
- package/dist/message/interface.d.mts +20 -4
- package/dist/message/useMessage.d.mts +0 -1
- package/dist/modal/Modal.d.mts +3 -3
- package/dist/modal/confirm.mjs +8 -4
- package/dist/modal/interface.d.mts +22 -3
- package/dist/modal/style/index.mjs +11 -8
- package/dist/notification/PurePanel.d.mts +8 -8
- package/dist/notification/index.mjs +2 -2
- package/dist/notification/interface.d.mts +18 -5
- package/dist/notification/style/index.mjs +8 -8
- package/dist/notification/useNotification.d.mts +2 -3
- package/dist/package.d.mts +4 -0
- package/dist/package.mjs +1 -1
- package/dist/pagination/Pagination.d.mts +3 -3
- package/dist/pagination/Pagination.mjs +11 -10
- package/dist/pagination/interface.d.mts +14 -5
- package/dist/pagination/style/bordered.mjs +2 -2
- package/dist/pagination/style/index.d.mts +10 -5
- package/dist/pagination/style/index.mjs +52 -103
- package/dist/popconfirm/PurePanel.d.mts +5 -7
- package/dist/popconfirm/index.d.mts +8 -6
- package/dist/popconfirm/index.mjs +7 -3
- package/dist/popover/index.d.mts +16 -9
- package/dist/popover/index.mjs +8 -5
- package/dist/progress/Line.mjs +3 -3
- package/dist/progress/progress.d.mts +20 -7
- package/dist/qrcode/index.d.mts +3 -3
- package/dist/qrcode/index.mjs +2 -1
- package/dist/qrcode/interface.d.mts +11 -3
- package/dist/radio/group.mjs +3 -3
- package/dist/radio/index.d.mts +5 -5
- package/dist/radio/interface.d.mts +13 -3
- package/dist/radio/radio.d.mts +3 -3
- package/dist/radio/radio.mjs +1 -1
- package/dist/rate/index.d.mts +3 -3
- package/dist/result/index.d.mts +22 -7
- package/dist/result/index.mjs +11 -6
- package/dist/result/noFound.d.mts +2 -2
- package/dist/result/serverError.d.mts +2 -2
- package/dist/result/unauthorized.d.mts +2 -2
- package/dist/segmented/index.d.mts +18 -7
- package/dist/select/index.d.mts +48 -20
- package/dist/skeleton/Avatar.d.mts +2 -2
- package/dist/skeleton/Button.d.mts +2 -2
- package/dist/skeleton/Image.d.mts +2 -2
- package/dist/skeleton/Input.d.mts +2 -2
- package/dist/skeleton/Node.d.mts +3 -3
- package/dist/skeleton/Skeleton.d.mts +22 -7
- package/dist/slider/index.d.mts +19 -6
- package/dist/slider/index.mjs +4 -4
- package/dist/space/index.d.mts +18 -9
- package/dist/spin/Indicator/Progress.mjs +3 -3
- package/dist/spin/index.d.mts +19 -6
- package/dist/splitter/SplitBar.mjs +12 -12
- package/dist/splitter/Splitter.d.mts +3 -3
- package/dist/splitter/Splitter.mjs +1 -1
- package/dist/splitter/hooks/useItems.mjs +2 -2
- package/dist/splitter/hooks/useResizable.mjs +5 -5
- package/dist/splitter/hooks/useResize.mjs +2 -2
- package/dist/splitter/index.d.mts +2 -2
- package/dist/splitter/interface.d.mts +21 -7
- package/dist/splitter/style/index.mjs +2 -28
- package/dist/statistic/Statistic.d.mts +21 -6
- package/dist/statistic/Statistic.mjs +1 -1
- package/dist/statistic/Timer.d.mts +5 -5
- package/dist/statistic/index.d.mts +5 -5
- package/dist/steps/context.mjs +5 -2
- package/dist/steps/index.d.mts +31 -9
- package/dist/steps/index.mjs +3 -3
- package/dist/style/motion/fade.mjs +25 -0
- package/dist/switch/index.d.mts +14 -7
- package/dist/switch/index.mjs +2 -2
- package/dist/table/Column.d.mts +3 -3
- package/dist/table/ColumnGroup.d.mts +3 -3
- package/dist/table/InternalTable.d.mts +35 -13
- package/dist/table/InternalTable.mjs +12 -6
- package/dist/table/Table.d.mts +3 -3
- package/dist/table/TableMeasureRowContext.mjs +20 -0
- package/dist/table/hooks/useFilter/FilterDropdown.mjs +17 -12
- package/dist/table/hooks/useSelection.mjs +1 -1
- package/dist/table/interface.d.mts +1 -2
- package/dist/table/style/virtual.mjs +1 -1
- package/dist/tabs/TabPane.d.mts +3 -3
- package/dist/tabs/index.d.mts +27 -11
- package/dist/tabs/index.mjs +5 -5
- package/dist/tag/CheckableTag.d.mts +3 -3
- package/dist/tag/CheckableTagGroup.d.mts +3 -3
- package/dist/tag/index.d.mts +16 -7
- package/dist/tag/index.mjs +1 -1
- package/dist/tag/style/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -2
- package/dist/theme/interface/maps/index.d.mts +0 -1
- package/dist/theme/useToken.mjs +3 -3
- package/dist/theme/util/genStyleUtils.mjs +3 -2
- package/dist/time-picker/index.d.mts +38 -14
- package/dist/time-picker/index.mjs +1 -1
- package/dist/timeline/Timeline.d.mts +49 -14
- package/dist/timeline/Timeline.mjs +82 -11
- package/dist/timeline/index.d.mts +1 -2
- package/dist/timeline/style/horizontal.mjs +73 -0
- package/dist/timeline/style/index.d.mts +10 -5
- package/dist/timeline/style/index.mjs +93 -137
- package/dist/timeline/useItems.mjs +52 -0
- package/dist/tooltip/PurePanel.d.mts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.mts +2 -2
- package/dist/tooltip/index.d.mts +17 -8
- package/dist/tooltip/index.mjs +11 -3
- package/dist/tooltip/style/index.d.mts +7 -1
- package/dist/tooltip/style/index.mjs +3 -2
- package/dist/tour/index.d.mts +3 -3
- package/dist/tour/index.mjs +1 -1
- package/dist/tour/interface.d.mts +29 -3
- package/dist/transfer/Actions.d.mts +2 -2
- package/dist/transfer/ListItem.mjs +4 -4
- package/dist/transfer/Section.d.mts +2 -2
- package/dist/transfer/Transfer.d.mts +3 -3
- package/dist/transfer/Transfer.mjs +4 -4
- package/dist/transfer/index.d.mts +1 -1
- package/dist/transfer/interface.d.mts +32 -7
- package/dist/transfer/search.d.mts +3 -3
- package/dist/tree/DirectoryTree.d.mts +3 -3
- package/dist/tree/Tree.d.mts +18 -7
- package/dist/tree/index.d.mts +0 -1
- package/dist/tree-select/index.d.mts +41 -12
- package/dist/tree-select/style/index.d.mts +1 -1
- package/dist/typography/Editable.mjs +4 -4
- package/dist/typography/Link.d.mts +3 -3
- package/dist/typography/Paragraph.d.mts +3 -3
- package/dist/typography/Text.d.mts +3 -3
- package/dist/typography/Title.d.mts +3 -3
- package/dist/typography/Typography.d.mts +3 -3
- package/dist/typography/Typography.mjs +2 -12
- package/dist/typography/index.d.mts +9 -10
- package/dist/typography/interface.d.mts +0 -2
- package/dist/typography/style/mixins.mjs +3 -3
- package/dist/upload/Dragger.d.mts +3 -3
- package/dist/upload/Upload.d.mts +3 -4
- package/dist/upload/index.d.mts +3 -3
- package/dist/upload/interface.d.mts +13 -4
- package/dist/watermark/index.d.mts +2 -2
- package/dist/watermark/index.mjs +3 -3
- package/package.json +45 -41
- package/web-tags.json +1918 -1873
- package/web-types.json +6815 -7198
- package/dist/timeline/TimelineItem.d.mts +0 -20
- package/dist/timeline/TimelineItem.mjs +0 -115
- package/dist/timeline/TimelineItemList.mjs +0 -158
|
@@ -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 };
|
|
@@ -5,7 +5,6 @@ import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeS
|
|
|
5
5
|
import { devUseWarning, isDev } from "../_util/warning.mjs";
|
|
6
6
|
import "../_util/hooks/index.mjs";
|
|
7
7
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.mjs";
|
|
8
|
-
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.mjs";
|
|
9
8
|
import { useSize } from "../config-provider/hooks/useSize.mjs";
|
|
10
9
|
import useLocale_default from "../locale/useLocale.mjs";
|
|
11
10
|
import select_default from "../select/index.mjs";
|
|
@@ -35,8 +34,7 @@ const omitKeys = [
|
|
|
35
34
|
const Pagination$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) => {
|
|
36
35
|
const { getPrefixCls, prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, showSizeChanger: contextShowSizeChangerConfig } = useComponentBaseConfig("pagination", props, ["showSizeChanger"]);
|
|
37
36
|
const { size, responsive, classes, styles, showSizeChanger } = toPropsRefs(props, "size", "responsive", "classes", "styles", "showSizeChanger");
|
|
38
|
-
const
|
|
39
|
-
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
37
|
+
const [hashId, cssVarCls] = style_default(prefixCls, prefixCls);
|
|
40
38
|
const [, token] = useToken();
|
|
41
39
|
const mergedSize = useSize(size);
|
|
42
40
|
const screens = useBreakpoint_default(responsive);
|
|
@@ -79,7 +77,7 @@ const Pagination$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs, emi
|
|
|
79
77
|
onSizeChange?.(nextSize);
|
|
80
78
|
propSelectOnChange?.(nextSize, option);
|
|
81
79
|
},
|
|
82
|
-
"size":
|
|
80
|
+
"size": mergedSize.value,
|
|
83
81
|
"class": clsx(sizeChangerClassName, propSelectClass)
|
|
84
82
|
}), null);
|
|
85
83
|
};
|
|
@@ -126,16 +124,19 @@ const Pagination$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs, emi
|
|
|
126
124
|
if (props.current !== page) emit("update:current", page);
|
|
127
125
|
else if (props.pageSize !== pageSize) emit("update:pageSize", pageSize);
|
|
128
126
|
};
|
|
129
|
-
const handleShowSizeChange = (current, size
|
|
130
|
-
emit("showSizeChange", current, size
|
|
127
|
+
const handleShowSizeChange = (current, size) => {
|
|
128
|
+
emit("showSizeChange", current, size);
|
|
131
129
|
};
|
|
132
130
|
return () => {
|
|
131
|
+
const { rootClass, align } = props;
|
|
133
132
|
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
134
|
-
const
|
|
133
|
+
const extendedClassName = clsx({
|
|
134
|
+
[`${prefixCls.value}-${align}`]: !!align,
|
|
135
|
+
[`${prefixCls.value}-${mergedSize.value}`]: mergedSize.value,
|
|
135
136
|
[`${prefixCls.value}-mini`]: isSmall.value,
|
|
136
137
|
[`${prefixCls.value}-rtl`]: direction.value === "rtl",
|
|
137
138
|
[`${prefixCls.value}-bordered`]: token.value.wireframe
|
|
138
|
-
}, className);
|
|
139
|
+
}, contextClassName.value, className, rootClass, mergedClassNames.value.root, hashId.value, cssVarCls.value);
|
|
139
140
|
const mergedStyle = {
|
|
140
141
|
...mergedStyles.value?.root,
|
|
141
142
|
...contextStyle.value,
|
|
@@ -145,7 +146,7 @@ const Pagination$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs, emi
|
|
|
145
146
|
return createVNode(Fragment, null, [token.value.wireframe && createVNode(bordered_default, { "prefixCls": prefixCls.value }, null), createVNode(VcPagination, mergeProps(restProps, restAttrs, {
|
|
146
147
|
"prefixCls": prefixCls.value,
|
|
147
148
|
"selectPrefixCls": selectPrefixCls.value,
|
|
148
|
-
"class":
|
|
149
|
+
"class": extendedClassName,
|
|
149
150
|
"style": mergedStyle,
|
|
150
151
|
"classNames": mergedClassNames.value,
|
|
151
152
|
"styles": mergedStyles.value,
|
|
@@ -177,7 +178,7 @@ const Pagination$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs, emi
|
|
|
177
178
|
default: void 0
|
|
178
179
|
},
|
|
179
180
|
size: {
|
|
180
|
-
type: String,
|
|
181
|
+
type: [String, null],
|
|
181
182
|
required: false,
|
|
182
183
|
default: void 0
|
|
183
184
|
},
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { SizeType } from "../config-provider/SizeContext.mjs";
|
|
1
2
|
import { VueNode } from "../_util/type.mjs";
|
|
2
3
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
4
|
import "../_util/hooks/index.mjs";
|
|
4
5
|
import { SelectProps } from "../select/index.mjs";
|
|
6
|
+
import { CSSProperties } from "vue";
|
|
5
7
|
import { PaginationProps } from "@v-c/pagination";
|
|
6
8
|
|
|
7
9
|
//#region src/pagination/interface.d.ts
|
|
@@ -18,14 +20,21 @@ interface PaginationLocale {
|
|
|
18
20
|
next_3?: string;
|
|
19
21
|
page_size?: string;
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
interface PaginationSemanticClassNames {
|
|
24
|
+
root?: string;
|
|
25
|
+
item?: string;
|
|
26
|
+
}
|
|
27
|
+
interface PaginationSemanticStyles {
|
|
28
|
+
root?: CSSProperties;
|
|
29
|
+
item?: CSSProperties;
|
|
30
|
+
}
|
|
31
|
+
type PaginationClassNamesType = SemanticClassNamesType<PaginationProps$1, PaginationSemanticClassNames>;
|
|
32
|
+
type PaginationStylesType = SemanticStylesType<PaginationProps$1, PaginationSemanticStyles>;
|
|
24
33
|
interface PaginationProps$1 extends Omit<PaginationProps, 'className' | 'style' | 'classNames' | 'styles' | 'locale' | 'showSizeChanger' | 'pageSizeOptions' | 'prevIcon' | 'nextIcon' | 'jumpPrevIcon' | 'jumpNextIcon' | 'onChange' | 'onShowSizeChange'> {
|
|
25
34
|
showQuickJumper?: boolean | {
|
|
26
35
|
goButton?: VueNode;
|
|
27
36
|
};
|
|
28
|
-
size?:
|
|
37
|
+
size?: SizeType;
|
|
29
38
|
responsive?: boolean;
|
|
30
39
|
totalBoundaryShowSizeChanger?: number;
|
|
31
40
|
rootClass?: string;
|
|
@@ -68,4 +77,4 @@ interface PaginationSlots {
|
|
|
68
77
|
jumpNextIcon?: () => any;
|
|
69
78
|
}
|
|
70
79
|
//#endregion
|
|
71
|
-
export { PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps$1 as PaginationProps,
|
|
80
|
+
export { PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps$1 as PaginationProps, PaginationSemanticClassNames, PaginationSemanticStyles, PaginationSlots, PaginationStylesType };
|
|
@@ -7,7 +7,7 @@ import { unit } from "@antdv-next/cssinjs";
|
|
|
7
7
|
const genBorderedStyle = (token) => {
|
|
8
8
|
const { componentCls } = token;
|
|
9
9
|
return {
|
|
10
|
-
[`${componentCls}${componentCls}-bordered${componentCls}-disabled
|
|
10
|
+
[`${componentCls}${componentCls}-bordered${componentCls}-disabled`]: {
|
|
11
11
|
"&, &:hover": { [`${componentCls}-item-link`]: { borderColor: token.colorBorder } },
|
|
12
12
|
"&:focus-visible": { [`${componentCls}-item-link`]: { borderColor: token.colorBorder } },
|
|
13
13
|
[`${componentCls}-item, ${componentCls}-item-link`]: {
|
|
@@ -32,7 +32,7 @@ const genBorderedStyle = (token) => {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
[`${componentCls}${componentCls}-bordered
|
|
35
|
+
[`${componentCls}${componentCls}-bordered`]: {
|
|
36
36
|
[`${componentCls}-prev, ${componentCls}-next`]: {
|
|
37
37
|
"&:hover button": {
|
|
38
38
|
borderColor: token.colorPrimaryHover,
|
|
@@ -14,6 +14,16 @@ interface ComponentToken {
|
|
|
14
14
|
* @descEN Size of Pagination item
|
|
15
15
|
*/
|
|
16
16
|
itemSize: number;
|
|
17
|
+
/**
|
|
18
|
+
* @desc 小号页码尺寸
|
|
19
|
+
* @descEN Size of small Pagination item
|
|
20
|
+
*/
|
|
21
|
+
itemSizeSM: number;
|
|
22
|
+
/**
|
|
23
|
+
* @desc 大号页码尺寸
|
|
24
|
+
* @descEN Size of large Pagination item
|
|
25
|
+
*/
|
|
26
|
+
itemSizeLG: number;
|
|
17
27
|
/**
|
|
18
28
|
* @desc 页码激活态背景色
|
|
19
29
|
* @descEN Background color of active Pagination item
|
|
@@ -29,11 +39,6 @@ interface ComponentToken {
|
|
|
29
39
|
* @descEN Text color of active Pagination item hover
|
|
30
40
|
*/
|
|
31
41
|
itemActiveColorHover: string;
|
|
32
|
-
/**
|
|
33
|
-
* @desc 小号页码尺寸
|
|
34
|
-
* @descEN Size of small Pagination item
|
|
35
|
-
*/
|
|
36
|
-
itemSizeSM: number;
|
|
37
42
|
/**
|
|
38
43
|
* @desc 页码链接背景色
|
|
39
44
|
* @descEN Background color of Pagination item link
|
|
@@ -3,7 +3,7 @@ import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.mjs";
|
|
|
3
3
|
import { mergeToken } from "../../theme/internal.mjs";
|
|
4
4
|
import { initComponentToken, initInputToken } from "../../input/style/token.mjs";
|
|
5
5
|
import { genBaseOutlinedStyle, genDisabledStyle } from "../../input/style/variants.mjs";
|
|
6
|
-
import { genBasicInputStyle, genInputSmallStyle } from "../../input/style/index.mjs";
|
|
6
|
+
import { genBasicInputStyle, genInputLargeStyle, genInputSmallStyle } from "../../input/style/index.mjs";
|
|
7
7
|
import { unit } from "@antdv-next/cssinjs";
|
|
8
8
|
|
|
9
9
|
//#region src/pagination/style/index.ts
|
|
@@ -62,87 +62,45 @@ const genPaginationDisabledStyle = (token) => {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
const
|
|
66
|
-
const { componentCls
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
[`&${componentCls}-mini ${componentCls}-prev, &${componentCls}-mini ${componentCls}-next`]: {
|
|
80
|
-
minWidth: varRef("item-size-actual"),
|
|
81
|
-
height: varRef("item-size-actual"),
|
|
82
|
-
margin: 0,
|
|
83
|
-
lineHeight: varRef("item-size-actual")
|
|
84
|
-
},
|
|
85
|
-
[`&${componentCls}-mini:not(${componentCls}-disabled)`]: { [`${componentCls}-prev, ${componentCls}-next`]: {
|
|
86
|
-
[`&:hover ${componentCls}-item-link`]: { backgroundColor: token.colorBgTextHover },
|
|
87
|
-
[`&:active ${componentCls}-item-link`]: { backgroundColor: token.colorBgTextActive },
|
|
88
|
-
[`&${componentCls}-disabled:hover ${componentCls}-item-link`]: { backgroundColor: "transparent" }
|
|
89
|
-
} },
|
|
90
|
-
[`
|
|
91
|
-
&${componentCls}-mini ${componentCls}-prev ${componentCls}-item-link,
|
|
92
|
-
&${componentCls}-mini ${componentCls}-next ${componentCls}-item-link
|
|
93
|
-
`]: {
|
|
94
|
-
"backgroundColor": "transparent",
|
|
95
|
-
"borderColor": "transparent",
|
|
96
|
-
"&::after": {
|
|
97
|
-
height: varRef("item-size-actual"),
|
|
98
|
-
lineHeight: varRef("item-size-actual")
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
[`&${componentCls}-mini ${componentCls}-jump-prev, &${componentCls}-mini ${componentCls}-jump-next`]: {
|
|
102
|
-
height: varRef("item-size-actual"),
|
|
103
|
-
marginInlineEnd: 0,
|
|
104
|
-
lineHeight: varRef("item-size-actual")
|
|
105
|
-
},
|
|
106
|
-
[`&${componentCls}-mini ${componentCls}-options`]: {
|
|
107
|
-
"marginInlineStart": token.paginationMiniOptionsMarginInlineStart,
|
|
108
|
-
"&-size-changer": { top: token.miniOptionsSizeChangerTop },
|
|
109
|
-
"&-quick-jumper": {
|
|
110
|
-
height: varRef("item-size-actual"),
|
|
111
|
-
lineHeight: varRef("item-size-actual"),
|
|
112
|
-
input: {
|
|
113
|
-
...genInputSmallStyle(token),
|
|
114
|
-
width: token.paginationMiniQuickJumperInputWidth,
|
|
115
|
-
height: token.controlHeightSM
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
65
|
+
const genPaginationSmallStyle = (token) => {
|
|
66
|
+
const { componentCls } = token;
|
|
67
|
+
return { [`&${componentCls}-small ${componentCls}-options`]: {
|
|
68
|
+
"marginInlineStart": token.paginationMiniOptionsMarginInlineStart,
|
|
69
|
+
"&-quick-jumper": { input: {
|
|
70
|
+
...genInputSmallStyle(token),
|
|
71
|
+
width: token.paginationMiniQuickJumperInputWidth
|
|
72
|
+
} }
|
|
73
|
+
} };
|
|
74
|
+
};
|
|
75
|
+
const genPaginationLargeStyle = (token) => {
|
|
76
|
+
const { componentCls } = token;
|
|
77
|
+
return { [`&${componentCls}-large ${componentCls}-options`]: { "&-quick-jumper": { input: { ...genInputLargeStyle(token) } } } };
|
|
120
78
|
};
|
|
121
79
|
const genPaginationSimpleStyle = (token) => {
|
|
122
80
|
const { componentCls, antCls } = token;
|
|
123
81
|
const [, varRef] = genCssVar(antCls, "pagination");
|
|
124
82
|
return { [`&${componentCls}-simple`]: {
|
|
125
83
|
[`${componentCls}-prev, ${componentCls}-next`]: {
|
|
126
|
-
height: varRef(
|
|
127
|
-
lineHeight: varRef(
|
|
84
|
+
height: varRef(`item-size-actual`),
|
|
85
|
+
lineHeight: varRef(`item-size-actual`),
|
|
128
86
|
verticalAlign: "top",
|
|
129
87
|
[`${componentCls}-item-link`]: {
|
|
130
|
-
"height": varRef(
|
|
88
|
+
"height": varRef(`item-size-actual`),
|
|
131
89
|
"backgroundColor": "transparent",
|
|
132
90
|
"border": 0,
|
|
133
91
|
"&:hover": { backgroundColor: token.colorBgTextHover },
|
|
134
92
|
"&:active": { backgroundColor: token.colorBgTextActive },
|
|
135
93
|
"&::after": {
|
|
136
|
-
height: varRef(
|
|
137
|
-
lineHeight: varRef(
|
|
94
|
+
height: varRef(`item-size-actual`),
|
|
95
|
+
lineHeight: varRef(`item-size-actual`)
|
|
138
96
|
}
|
|
139
97
|
}
|
|
140
98
|
},
|
|
141
99
|
[`${componentCls}-simple-pager`]: {
|
|
142
100
|
display: "inline-flex",
|
|
143
101
|
alignItems: "center",
|
|
144
|
-
height: varRef(
|
|
145
|
-
marginInlineEnd: varRef(
|
|
102
|
+
height: varRef(`item-size-actual`),
|
|
103
|
+
marginInlineEnd: varRef(`item-spacing-actual`),
|
|
146
104
|
input: {
|
|
147
105
|
"boxSizing": "border-box",
|
|
148
106
|
"height": "100%",
|
|
@@ -169,23 +127,7 @@ const genPaginationSimpleStyle = (token) => {
|
|
|
169
127
|
}
|
|
170
128
|
},
|
|
171
129
|
[`&${componentCls}-disabled`]: { [`${componentCls}-prev, ${componentCls}-next`]: { [`${componentCls}-item-link`]: { "&:hover, &:active": { backgroundColor: "transparent" } } } },
|
|
172
|
-
[`&${componentCls}-
|
|
173
|
-
[`${componentCls}-prev, ${componentCls}-next`]: {
|
|
174
|
-
height: varRef("item-size-actual"),
|
|
175
|
-
lineHeight: varRef("item-size-actual"),
|
|
176
|
-
[`${componentCls}-item-link`]: {
|
|
177
|
-
"height": varRef("item-size-actual"),
|
|
178
|
-
"&::after": {
|
|
179
|
-
height: varRef("item-size-actual"),
|
|
180
|
-
lineHeight: varRef("item-size-actual")
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
[`${componentCls}-simple-pager`]: {
|
|
185
|
-
height: varRef("item-size-actual"),
|
|
186
|
-
input: { width: token.paginationMiniQuickJumperInputWidth }
|
|
187
|
-
}
|
|
188
|
-
}
|
|
130
|
+
[`&${componentCls}-small`]: { [`${componentCls}-simple-pager`]: { input: { width: token.paginationMiniQuickJumperInputWidth } } }
|
|
189
131
|
} };
|
|
190
132
|
};
|
|
191
133
|
const genPaginationJumpStyle = (token) => {
|
|
@@ -234,7 +176,7 @@ const genPaginationJumpStyle = (token) => {
|
|
|
234
176
|
${componentCls}-prev,
|
|
235
177
|
${componentCls}-jump-prev,
|
|
236
178
|
${componentCls}-jump-next
|
|
237
|
-
`]: { marginInlineEnd: varRef(
|
|
179
|
+
`]: { marginInlineEnd: varRef(`item-spacing-actual`) },
|
|
238
180
|
[`
|
|
239
181
|
${componentCls}-prev,
|
|
240
182
|
${componentCls}-next,
|
|
@@ -242,11 +184,11 @@ const genPaginationJumpStyle = (token) => {
|
|
|
242
184
|
${componentCls}-jump-next
|
|
243
185
|
`]: {
|
|
244
186
|
display: "inline-block",
|
|
245
|
-
minWidth: varRef(
|
|
246
|
-
height: varRef(
|
|
187
|
+
minWidth: varRef(`item-size-actual`),
|
|
188
|
+
height: varRef(`item-size-actual`),
|
|
247
189
|
color: token.colorText,
|
|
248
190
|
fontFamily: token.fontFamily,
|
|
249
|
-
lineHeight: varRef(
|
|
191
|
+
lineHeight: varRef(`item-size-actual`),
|
|
250
192
|
textAlign: "center",
|
|
251
193
|
verticalAlign: "middle",
|
|
252
194
|
listStyle: "none",
|
|
@@ -289,10 +231,10 @@ const genPaginationJumpStyle = (token) => {
|
|
|
289
231
|
"&-size-changer": { width: "auto" },
|
|
290
232
|
"&-quick-jumper": {
|
|
291
233
|
display: "inline-block",
|
|
292
|
-
height: varRef(
|
|
293
|
-
marginInlineStart:
|
|
294
|
-
lineHeight: varRef(
|
|
295
|
-
verticalAlign: "
|
|
234
|
+
height: varRef(`item-size-actual`),
|
|
235
|
+
marginInlineStart: token.marginXS,
|
|
236
|
+
lineHeight: varRef(`item-size-actual`),
|
|
237
|
+
verticalAlign: "baseline",
|
|
296
238
|
input: {
|
|
297
239
|
...genBasicInputStyle(token),
|
|
298
240
|
...genBaseOutlinedStyle(token, {
|
|
@@ -303,11 +245,11 @@ const genPaginationJumpStyle = (token) => {
|
|
|
303
245
|
}),
|
|
304
246
|
"&[disabled]": { ...genDisabledStyle(token) },
|
|
305
247
|
"width": token.quickJumperInputWidth,
|
|
306
|
-
"height": varRef(
|
|
248
|
+
"height": varRef(`item-size-actual`),
|
|
307
249
|
"boxSizing": "border-box",
|
|
308
250
|
"margin": 0,
|
|
309
|
-
"marginInlineStart": varRef(
|
|
310
|
-
"marginInlineEnd": varRef(
|
|
251
|
+
"marginInlineStart": varRef(`item-spacing-actual`),
|
|
252
|
+
"marginInlineEnd": varRef(`item-spacing-actual`)
|
|
311
253
|
}
|
|
312
254
|
}
|
|
313
255
|
}
|
|
@@ -318,9 +260,9 @@ const genPaginationItemStyle = (token) => {
|
|
|
318
260
|
const [, varRef] = genCssVar(antCls, "pagination");
|
|
319
261
|
return { [`${componentCls}-item`]: {
|
|
320
262
|
"display": "inline-block",
|
|
321
|
-
"minWidth": varRef(
|
|
322
|
-
"height": varRef(
|
|
323
|
-
"marginInlineEnd": varRef(
|
|
263
|
+
"minWidth": varRef(`item-size-actual`),
|
|
264
|
+
"height": varRef(`item-size-actual`),
|
|
265
|
+
"marginInlineEnd": varRef(`item-spacing-actual`),
|
|
324
266
|
"fontFamily": token.fontFamily,
|
|
325
267
|
"lineHeight": unit(token.calc(varRef("item-size-actual")).sub(2).equal()),
|
|
326
268
|
"textAlign": "center",
|
|
@@ -360,14 +302,19 @@ const genPaginationStyle = (token) => {
|
|
|
360
302
|
const [varName, varRef] = genCssVar(antCls, "pagination");
|
|
361
303
|
return {
|
|
362
304
|
[componentCls]: {
|
|
363
|
-
[varName(
|
|
364
|
-
[varName(
|
|
365
|
-
"&-
|
|
366
|
-
[varName(
|
|
367
|
-
[varName(
|
|
305
|
+
[varName(`item-size-actual`)]: unit(token.itemSize),
|
|
306
|
+
[varName(`item-spacing-actual`)]: unit(token.marginXS),
|
|
307
|
+
"&-small": {
|
|
308
|
+
[varName(`item-size-actual`)]: unit(token.itemSizeSM),
|
|
309
|
+
[varName(`item-spacing-actual`)]: unit(token.marginXXS)
|
|
310
|
+
},
|
|
311
|
+
"&-large": {
|
|
312
|
+
[varName(`item-size-actual`)]: unit(token.itemSizeLG),
|
|
313
|
+
[varName(`item-spacing-actual`)]: unit(token.marginSM)
|
|
368
314
|
},
|
|
369
315
|
...resetComponent(token),
|
|
370
316
|
"display": "flex",
|
|
317
|
+
"alignItems": "center",
|
|
371
318
|
"&-start": { justifyContent: "start" },
|
|
372
319
|
"&-center": { justifyContent: "center" },
|
|
373
320
|
"&-end": { justifyContent: "end" },
|
|
@@ -386,15 +333,16 @@ const genPaginationStyle = (token) => {
|
|
|
386
333
|
},
|
|
387
334
|
[`${componentCls}-total-text`]: {
|
|
388
335
|
display: "inline-block",
|
|
389
|
-
height: varRef(
|
|
390
|
-
marginInlineEnd: varRef(
|
|
391
|
-
lineHeight: unit(token.calc(varRef(
|
|
336
|
+
height: varRef(`item-size-actual`),
|
|
337
|
+
marginInlineEnd: varRef(`item-spacing-actual`),
|
|
338
|
+
lineHeight: unit(token.calc(varRef(`item-size-actual`)).sub(2).equal()),
|
|
392
339
|
verticalAlign: "middle"
|
|
393
340
|
},
|
|
394
341
|
...genPaginationItemStyle(token),
|
|
395
342
|
...genPaginationJumpStyle(token),
|
|
396
343
|
...genPaginationSimpleStyle(token),
|
|
397
|
-
...
|
|
344
|
+
...genPaginationSmallStyle(token),
|
|
345
|
+
...genPaginationLargeStyle(token),
|
|
398
346
|
...genPaginationDisabledStyle(token),
|
|
399
347
|
[`@media only screen and (max-width: ${token.screenLG}px)`]: { [`${componentCls}-item`]: { "&-after-jump-prev, &-before-jump-next": { display: "none" } } },
|
|
400
348
|
[`@media only screen and (max-width: ${token.screenSM}px)`]: { [`${componentCls}-options`]: { display: "none" } }
|
|
@@ -418,6 +366,7 @@ const prepareComponentToken = (token) => ({
|
|
|
418
366
|
itemBg: token.colorBgContainer,
|
|
419
367
|
itemSize: token.controlHeight,
|
|
420
368
|
itemSizeSM: token.controlHeightSM,
|
|
369
|
+
itemSizeLG: token.controlHeightLG,
|
|
421
370
|
itemActiveBg: token.colorBgContainer,
|
|
422
371
|
itemActiveColor: token.colorPrimary,
|
|
423
372
|
itemActiveColorHover: token.colorPrimaryHover,
|