antdv-next 1.8.0 → 1.8.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/vueNode.d.ts +2 -6
- package/dist/antd-with-locales.esm.js +14090 -11922
- package/dist/antd-with-locales.js +82 -79
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +12335 -10167
- package/dist/antd.js +82 -79
- package/dist/badge/style/ribbon.d.ts +0 -1
- package/dist/border-beam/style/index.d.ts +0 -1
- package/dist/button/style/index.d.ts +0 -1
- package/dist/cascader/style/panel.d.ts +0 -1
- package/dist/date-picker/generatePicker/useComponents.js +2 -2
- package/dist/date-picker/style/index.d.ts +0 -1
- package/dist/date-picker/style/panel.js +11 -8
- package/dist/descriptions/hooks/useItems.d.ts +6 -6
- package/dist/empty/style/index.d.ts +0 -1
- package/dist/image/hooks/usePreviewConfig.d.ts +2 -2
- package/dist/input/style/otp.d.ts +0 -1
- package/dist/input/style/search.d.ts +0 -1
- package/dist/input/style/textarea.d.ts +0 -1
- package/dist/input-number/style/index.d.ts +0 -1
- package/dist/layout/style/sider.d.ts +0 -1
- package/dist/message/style/index.d.ts +0 -1
- package/dist/package.js +1 -1
- package/dist/select/style/index.d.ts +0 -1
- package/dist/space/style/addon.d.ts +0 -1
- package/dist/space/style/compact.d.ts +0 -1
- package/dist/table/style/expand.js +4 -1
- package/dist/table/util.d.ts +1 -1
- package/dist/theme/index.d.ts +0 -1
- package/dist/version/token.json +1 -1
- package/package.json +6 -6
- package/web-tags.json +8 -4
- package/web-types.json +15 -7
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
//#region src/badge/style/ribbon.d.ts
|
|
7
6
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
//#region src/border-beam/style/index.d.ts
|
|
7
6
|
type ComponentToken = object;
|
|
8
7
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
@@ -3,7 +3,6 @@ import { AliasToken } from "../../theme/interface/alias.js";
|
|
|
3
3
|
import { ComponentToken } from "./token.js";
|
|
4
4
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
5
5
|
import "../../theme/interface/index.js";
|
|
6
|
-
import "../../theme/internal.js";
|
|
7
6
|
//#region src/button/style/index.d.ts
|
|
8
7
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
9
8
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
//#region src/cascader/style/panel.d.ts
|
|
7
6
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => import("vue").Ref<string, string>;
|
|
8
7
|
//#endregion
|
|
@@ -2,8 +2,8 @@ import PickerButton from "../PickerButton.js";
|
|
|
2
2
|
//#region src/date-picker/generatePicker/useComponents.ts
|
|
3
3
|
function useComponents(components) {
|
|
4
4
|
return {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
...components ?? {},
|
|
6
|
+
okButton: components?.okButton ?? components?.button ?? PickerButton
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
@@ -4,7 +4,6 @@ import { ComponentToken, PanelComponentToken, PickerPanelToken, initPanelCompone
|
|
|
4
4
|
import { genPanelStyle } from "./panel.js";
|
|
5
5
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
6
6
|
import "../../theme/interface/index.js";
|
|
7
|
-
import "../../theme/internal.js";
|
|
8
7
|
//#region src/date-picker/style/index.d.ts
|
|
9
8
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
10
9
|
//#endregion
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { genLinkStyle } from "../../style/index.js";
|
|
1
2
|
import { unit } from "@antdv-next/cssinjs";
|
|
2
3
|
import { FastColor } from "@ant-design/fast-color";
|
|
3
4
|
//#region src/date-picker/style/panel.ts
|
|
@@ -355,17 +356,19 @@ const genPickerPanelStyle = (token) => {
|
|
|
355
356
|
paddingInline: unit(paddingSM),
|
|
356
357
|
overflow: "hidden",
|
|
357
358
|
textAlign: "start",
|
|
358
|
-
listStyle: "none",
|
|
359
359
|
display: "flex",
|
|
360
360
|
justifyContent: "center",
|
|
361
361
|
alignItems: "center",
|
|
362
|
-
|
|
362
|
+
[`${componentCls}-now`]: {
|
|
363
|
+
...genLinkStyle(token).a,
|
|
364
|
+
padding: 0,
|
|
365
|
+
border: 0,
|
|
366
|
+
font: "inherit",
|
|
363
367
|
lineHeight: unit(token.calc(textHeight).sub(token.calc(lineWidth).mul(2)).equal()),
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
color: token.colorTextDisabled
|
|
368
|
+
"&:disabled": {
|
|
369
|
+
pointerEvents: "none",
|
|
370
|
+
color: token.colorTextDisabled
|
|
371
|
+
}
|
|
369
372
|
},
|
|
370
373
|
[`${componentCls}-preset > ${antCls}-tag-blue`]: {
|
|
371
374
|
color: colorPrimary,
|
|
@@ -374,7 +377,7 @@ const genPickerPanelStyle = (token) => {
|
|
|
374
377
|
cursor: "pointer"
|
|
375
378
|
},
|
|
376
379
|
[`${componentCls}-ok`]: {
|
|
377
|
-
|
|
380
|
+
marginBlock: token.calc(textHeight).sub(token.controlHeightSM).div(2).add(lineWidth).equal(),
|
|
378
381
|
marginInlineStart: "auto"
|
|
379
382
|
}
|
|
380
383
|
}
|
|
@@ -8,22 +8,22 @@ declare function useItems(screens: Ref<ScreenMap>, items: Ref<DescriptionsItemTy
|
|
|
8
8
|
filled: boolean;
|
|
9
9
|
_$index: number;
|
|
10
10
|
key?: import("@v-c/util/dist/type").Key;
|
|
11
|
+
label?: VueNode;
|
|
12
|
+
style?: import("vue").CSSProperties | undefined;
|
|
13
|
+
class?: string | undefined;
|
|
11
14
|
classes?: CellSemanticClassNames | undefined;
|
|
12
15
|
styles?: CellSemanticStyles | undefined;
|
|
13
|
-
style?: import("vue").CSSProperties | undefined;
|
|
14
16
|
rootClass?: string | undefined;
|
|
15
|
-
label?: VueNode;
|
|
16
|
-
class?: string | undefined;
|
|
17
17
|
content?: VueNode;
|
|
18
18
|
} | {
|
|
19
19
|
span: number | undefined;
|
|
20
20
|
key?: import("@v-c/util/dist/type").Key;
|
|
21
|
+
label?: VueNode;
|
|
22
|
+
style?: import("vue").CSSProperties | undefined;
|
|
23
|
+
class?: string | undefined;
|
|
21
24
|
classes?: CellSemanticClassNames | undefined;
|
|
22
25
|
styles?: CellSemanticStyles | undefined;
|
|
23
|
-
style?: import("vue").CSSProperties | undefined;
|
|
24
26
|
rootClass?: string | undefined;
|
|
25
|
-
label?: VueNode;
|
|
26
|
-
class?: string | undefined;
|
|
27
27
|
content?: VueNode;
|
|
28
28
|
_$index: number;
|
|
29
29
|
})[]>;
|
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
//#region src/empty/style/index.d.ts
|
|
7
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
8
7
|
interface ComponentToken {}
|
|
@@ -43,10 +43,10 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
|
|
|
43
43
|
readonly zIndex?: number;
|
|
44
44
|
readonly getContainer?: import("@v-c/portal/dist/Portal.js").PortalProps["getContainer"];
|
|
45
45
|
readonly closeIcon?: import("@v-c/util").VueNode | boolean | null;
|
|
46
|
-
readonly
|
|
46
|
+
readonly motionName?: string;
|
|
47
47
|
readonly src?: string;
|
|
48
48
|
readonly alt?: string;
|
|
49
|
-
readonly
|
|
49
|
+
readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
|
|
50
50
|
readonly countRender?: (current: number, total: number) => import("@v-c/util").VueNode;
|
|
51
51
|
readonly scaleStep?: number;
|
|
52
52
|
readonly minScale?: number;
|
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
//#region src/input/style/otp.d.ts
|
|
7
6
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
//#region src/input/style/search.d.ts
|
|
7
6
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
8
7
|
//#endregion
|
|
@@ -3,7 +3,6 @@ import { AliasToken } from "../../theme/interface/alias.js";
|
|
|
3
3
|
import { ComponentToken, initComponentToken, initInputToken } from "./token.js";
|
|
4
4
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
5
5
|
import "../../theme/interface/index.js";
|
|
6
|
-
import "../../theme/internal.js";
|
|
7
6
|
//#region src/input/style/textarea.d.ts
|
|
8
7
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
9
8
|
//#endregion
|
|
@@ -3,7 +3,6 @@ import { AliasToken } from "../../theme/interface/alias.js";
|
|
|
3
3
|
import { ComponentToken } from "./token.js";
|
|
4
4
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
5
5
|
import "../../theme/interface/index.js";
|
|
6
|
-
import "../../theme/internal.js";
|
|
7
6
|
//#region src/input-number/style/index.d.ts
|
|
8
7
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
9
8
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
//#region src/layout/style/sider.d.ts
|
|
7
6
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
8
7
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
import { CSSProperties } from "vue";
|
|
7
6
|
//#region src/message/style/index.d.ts
|
|
8
7
|
/** Component only token. Which will handle additional calculation of alias token */
|
package/dist/package.js
CHANGED
|
@@ -3,7 +3,6 @@ import { AliasToken } from "../../theme/interface/alias.js";
|
|
|
3
3
|
import { ComponentToken } from "./token.js";
|
|
4
4
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
5
5
|
import "../../theme/interface/index.js";
|
|
6
|
-
import "../../theme/internal.js";
|
|
7
6
|
//#region src/select/style/index.d.ts
|
|
8
7
|
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
9
8
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
//#region src/space/style/addon.d.ts
|
|
7
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
8
7
|
interface ComponentToken {}
|
|
@@ -2,7 +2,6 @@ import { SeedToken } from "../../theme/interface/seeds.js";
|
|
|
2
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
3
|
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
4
|
import "../../theme/interface/index.js";
|
|
5
|
-
import "../../theme/internal.js";
|
|
6
5
|
//#region src/space/style/compact.d.ts
|
|
7
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
8
7
|
interface ComponentToken {}
|
|
@@ -7,7 +7,10 @@ const genExpandStyle = (token) => {
|
|
|
7
7
|
const expandIconLineOffset = calc(paddingXXS).sub(lineWidth).equal();
|
|
8
8
|
return { [`${componentCls}-wrapper`]: {
|
|
9
9
|
[`${componentCls}-expand-icon-col`]: { width: tableExpandColumnWidth },
|
|
10
|
-
[
|
|
10
|
+
[`
|
|
11
|
+
${componentCls}-thead > tr > ${componentCls}-row-expand-icon-cell,
|
|
12
|
+
${componentCls}-row-expand-icon-cell
|
|
13
|
+
`]: {
|
|
11
14
|
textAlign: "center",
|
|
12
15
|
[`${componentCls}-row-expand-icon`]: {
|
|
13
16
|
display: "inline-flex",
|
package/dist/table/util.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare function renderColumnTitle<RecordType extends AnyObject = AnyObject>(tit
|
|
|
11
11
|
* Should filter [object Object]
|
|
12
12
|
*/
|
|
13
13
|
declare function safeColumnTitle<RecordType extends AnyObject = AnyObject>(title: ColumnTitle<RecordType>, props: ColumnTitleProps<RecordType>): any;
|
|
14
|
-
declare function normalizePlacement(pos: TablePaginationPlacement | TablePaginationPosition): "
|
|
14
|
+
declare function normalizePlacement(pos: TablePaginationPlacement | TablePaginationPosition): "center" | "end" | "start";
|
|
15
15
|
declare function getPaginationSize(paginationSize: SizeType, mergedSize: SizeType): SizeType;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { getColumnKey, getColumnPos, getPaginationSize, normalizePlacement, renderColumnTitle, safeColumnTitle };
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { MapToken } from "./interface/maps/index.js";
|
|
|
3
3
|
import { AliasToken } from "./interface/alias.js";
|
|
4
4
|
import { GlobalToken } from "./interface/cssinjs-utils.js";
|
|
5
5
|
import { MappingAlgorithm } from "./interface/index.js";
|
|
6
|
-
import "./internal.js";
|
|
7
6
|
import getDesignToken from "./getDesignToken.js";
|
|
8
7
|
import derivative from "./themes/default/index.js";
|
|
9
8
|
//#region src/theme/index.d.ts
|