@antdv-next1/pro-card 2.0.15 → 2.0.17
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/LICENSE +1 -1
- package/dist/Card.js +11 -11
- package/dist/components/CheckCard/CheckCard.js +8 -8
- package/dist/components/CheckCard/Group.js +5 -5
- package/dist/components/CheckCard/style/group.d.ts +5 -8
- package/dist/components/CheckCard/style/group.js +6 -11
- package/dist/components/CheckCard/style/index.d.ts +5 -8
- package/dist/components/CheckCard/style/index.js +24 -29
- package/dist/components/Statistic/index.js +10 -10
- package/dist/components/Statistic/style/index.d.ts +5 -8
- package/dist/components/Statistic/style/index.js +7 -11
- package/dist/components/StatisticCard/index.js +8 -8
- package/dist/components/StatisticCard/style/index.d.ts +5 -8
- package/dist/components/StatisticCard/style/index.js +7 -11
- package/dist/pro-card.esm.js +906 -927
- package/dist/pro-card.js +14 -14
- package/dist/style/index.d.ts +3 -4
- package/dist/style/index.js +33 -38
- package/package.json +4 -4
package/dist/style/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as _$_antdv_next1_pro_provider0 from "@antdv-next1/pro-provider";
|
|
1
|
+
import * as _$vue from "vue";
|
|
3
2
|
|
|
4
3
|
//#region src/style/index.d.ts
|
|
5
|
-
declare
|
|
4
|
+
declare const _default: (prefixCls: _$vue.Ref<string>, rootCls?: _$vue.Ref<string | undefined>) => readonly [_$vue.Ref<string, string>, _$vue.ComputedRef<string | undefined>];
|
|
6
5
|
//#endregion
|
|
7
|
-
export {
|
|
6
|
+
export { _default as default };
|
package/dist/style/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { useStyle
|
|
1
|
+
import { useStyle } from "@antdv-next1/pro-provider";
|
|
2
|
+
import { mergeToken, unit } from "@antdv-next/cssinjs";
|
|
2
3
|
//#region src/style/index.ts
|
|
3
4
|
const genProCardStyle = (token) => {
|
|
4
5
|
const { componentCls } = token;
|
|
@@ -10,18 +11,18 @@ const genProCardStyle = (token) => {
|
|
|
10
11
|
borderColor: token.colorBorderSecondary,
|
|
11
12
|
backgroundColor: "transparent",
|
|
12
13
|
[`&:not(${componentCls}-split)`]: {
|
|
13
|
-
[`${token.antCls}-collapse-item`]: { [`${token.antCls}-collapse-header`]: { paddingBlockEnd: `${token.padding}
|
|
14
|
-
[`${token.antCls}-collapse-item`]: { "&-active": { [`${token.antCls}-collapse-panel`]: { [`${token.antCls}-collapse-body`]: { paddingBlockStart: `${token.paddingLG}
|
|
14
|
+
[`${token.antCls}-collapse-item`]: { [`${token.antCls}-collapse-header`]: { paddingBlockEnd: `${unit(token.padding)} !important` } },
|
|
15
|
+
[`${token.antCls}-collapse-item`]: { "&-active": { [`${token.antCls}-collapse-panel`]: { [`${token.antCls}-collapse-body`]: { paddingBlockStart: `${unit(token.paddingLG)} !important` } } } }
|
|
15
16
|
},
|
|
16
|
-
[`&${componentCls}-split`]: { [`${token.antCls}-collapse-item:not(${token.antCls}-collapse-item-active)`]: { [`${token.antCls}-collapse-header`]: { paddingBlockEnd: `${token.padding}
|
|
17
|
+
[`&${componentCls}-split:not(${token.antCls}-collapse-small)`]: { [`${token.antCls}-collapse-item:not(${token.antCls}-collapse-item-active)`]: { [`${token.antCls}-collapse-header`]: { paddingBlockEnd: `${unit(token.padding)} !important` } } },
|
|
17
18
|
[`&${token.antCls}-collapse-borderless`]: { [`${token.antCls}-collapse-item`]: { [`${token.antCls}-collapse-panel`]: { [`${token.antCls}-collapse-body`]: { paddingBlockStart: token.paddingSM } } } },
|
|
18
19
|
[`&${token.componentCls}-type-inner`]: {
|
|
19
|
-
[`&:not(${token.antCls}-collapse-small)`]: { [`${token.antCls}-collapse-header`]: { paddingBlockEnd: `${token.padding}
|
|
20
|
-
[`${token.antCls}-collapse-panel`]: { borderBlockStart: `${token.lineWidth}
|
|
20
|
+
[`&:not(${token.antCls}-collapse-small)`]: { [`${token.antCls}-collapse-header`]: { paddingBlockEnd: `${unit(token.padding)} !important` } },
|
|
21
|
+
[`${token.antCls}-collapse-panel`]: { borderBlockStart: `${unit(token.lineWidth)} ${token.lineType} ${token.colorBorderSecondary}` }
|
|
21
22
|
},
|
|
22
|
-
[`&${componentCls}-headerBordered`]: { borderBlockStart: `${token.lineWidth}
|
|
23
|
+
[`&${componentCls}-headerBordered`]: { borderBlockStart: `${unit(token.lineWidth)} ${token.lineType} ${token.colorBorderSecondary}` },
|
|
23
24
|
[`${token.antCls}-collapse-panel`]: {
|
|
24
|
-
borderBlockStart:
|
|
25
|
+
borderBlockStart: `${unit(0)} ${token.lineType} ${token.colorBorderSecondary}`,
|
|
25
26
|
boxSizing: "border-box",
|
|
26
27
|
borderBottomLeftRadius: token.borderRadius,
|
|
27
28
|
borderBottomRightRadius: token.borderRadius,
|
|
@@ -31,7 +32,7 @@ const genProCardStyle = (token) => {
|
|
|
31
32
|
[`${componentCls}-header`]: { borderRadius: 0 },
|
|
32
33
|
[`${token.antCls}-collapse-content`]: { "&-box": { padding: token.paddingLG } }
|
|
33
34
|
} },
|
|
34
|
-
[
|
|
35
|
+
[`&:not(${token.antCls}-collapse-small) ${token.antCls}-collapse-item`]: {
|
|
35
36
|
borderBlockEnd: 0,
|
|
36
37
|
boxSizing: "border-box",
|
|
37
38
|
"&-active": { [`${token.antCls}-collapse-header`]: {
|
|
@@ -71,8 +72,8 @@ const genProCardStyle = (token) => {
|
|
|
71
72
|
display: "flex",
|
|
72
73
|
flexDirection: "column"
|
|
73
74
|
},
|
|
74
|
-
[`${componentCls}-split-vertical`]: { borderInlineEnd: `${token.lineWidth}
|
|
75
|
-
[`${componentCls}-split-horizontal`]: { borderBlockEnd: `${token.lineWidth}
|
|
75
|
+
[`${componentCls}-split-vertical`]: { borderInlineEnd: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}` },
|
|
76
|
+
[`${componentCls}-split-horizontal`]: { borderBlockEnd: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}` },
|
|
76
77
|
[`&${token.antCls}-card&-ghost`]: {
|
|
77
78
|
boxShadow: "none",
|
|
78
79
|
backgroundColor: "transparent",
|
|
@@ -126,31 +127,25 @@ const genGridStyle = (token, sizeCls) => genLoopGridColumnsStyle(token, sizeCls)
|
|
|
126
127
|
const genGridMediaStyle = (token, screenSize, sizeCls) => {
|
|
127
128
|
return { [`@media (min-width: ${screenSize}px)`]: { ...genGridStyle(token, sizeCls) } };
|
|
128
129
|
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
...pre,
|
|
150
|
-
...cur
|
|
151
|
-
}), {})
|
|
152
|
-
];
|
|
153
|
-
});
|
|
154
|
-
}
|
|
130
|
+
var style_default = useStyle("ProCard", (token) => {
|
|
131
|
+
const proCardToken = mergeToken(token, { gridColumns: 24 });
|
|
132
|
+
const gridMediaSizesMap = {
|
|
133
|
+
"-xs": proCardToken.screenXSMin,
|
|
134
|
+
"-sm": proCardToken.screenSMMin,
|
|
135
|
+
"-md": proCardToken.screenMDMin,
|
|
136
|
+
"-lg": proCardToken.screenLGMin,
|
|
137
|
+
"-xl": proCardToken.screenXLMin,
|
|
138
|
+
"-xxl": proCardToken.screenXXLMin
|
|
139
|
+
};
|
|
140
|
+
return [
|
|
141
|
+
genProCardStyle(proCardToken),
|
|
142
|
+
genGridStyle(proCardToken, ""),
|
|
143
|
+
genGridStyle(proCardToken, "-xs"),
|
|
144
|
+
Object.keys(gridMediaSizesMap).map((key) => genGridMediaStyle(proCardToken, gridMediaSizesMap[key], key)).reduce((pre, cur) => ({
|
|
145
|
+
...pre,
|
|
146
|
+
...cur
|
|
147
|
+
}), {})
|
|
148
|
+
];
|
|
149
|
+
});
|
|
155
150
|
//#endregion
|
|
156
|
-
export {
|
|
151
|
+
export { style_default as default };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antdv-next1/pro-card",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.17",
|
|
5
5
|
"description": "@antdv-next1/pro-card",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/lucasjeke/pro-components.git",
|
|
9
9
|
"directory": "packages/card"
|
|
10
10
|
},
|
|
11
11
|
"sideEffects": [
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"vue": ">=3.5.30"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@antdv-next1/pro-
|
|
52
|
-
"@antdv-next1/pro-
|
|
51
|
+
"@antdv-next1/pro-utils": "1.0.19",
|
|
52
|
+
"@antdv-next1/pro-provider": "1.0.11"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|