@uzum-tech/ui 1.4.1 → 1.5.0
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/index.js +65374 -64281
- package/dist/index.prod.js +3 -3
- package/es/_internal/icons/SiderUnionBorder.js +1 -1
- package/es/_internal/index.d.ts +2 -0
- package/es/_internal/index.js +1 -0
- package/es/_internal/typography/index.d.ts +2 -0
- package/es/_internal/typography/index.js +1 -0
- package/es/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/es/_internal/typography/src/styles/text.cssr.js +78 -0
- package/es/_internal/typography/src/text.d.ts +246 -0
- package/es/_internal/typography/src/text.js +79 -0
- package/es/_internal/typography/src/variants.d.ts +13 -0
- package/es/_internal/typography/src/variants.js +132 -0
- package/es/_internal/typography/styles/dark.d.ts +3 -0
- package/es/_internal/typography/styles/dark.js +8 -0
- package/es/_internal/typography/styles/index.d.ts +3 -0
- package/es/_internal/typography/styles/index.js +2 -0
- package/es/_internal/typography/styles/light.d.ts +24 -0
- package/es/_internal/typography/styles/light.js +28 -0
- package/es/_styles/common/_common.d.ts +2 -0
- package/es/_styles/common/_common.js +3 -1
- package/es/_styles/common/light.d.ts +2 -0
- package/es/action-card/index.d.ts +4 -0
- package/es/action-card/index.js +2 -0
- package/es/action-card/src/ActionCard.d.ts +313 -0
- package/es/action-card/src/ActionCard.js +101 -0
- package/es/action-card/src/styles/index.cssr.d.ts +2 -0
- package/es/action-card/src/styles/index.cssr.js +113 -0
- package/es/action-card/styles/dark.d.ts +3 -0
- package/es/action-card/styles/dark.js +11 -0
- package/es/action-card/styles/index.d.ts +3 -0
- package/es/action-card/styles/index.js +2 -0
- package/es/action-card/styles/light.d.ts +29 -0
- package/es/action-card/styles/light.js +33 -0
- package/es/avatar/src/Avatar.d.ts +13 -3
- package/es/avatar/src/Avatar.js +4 -3
- package/es/avatar/src/styles/index.cssr.js +3 -2
- package/es/avatar/styles/light.d.ts +1 -0
- package/es/avatar/styles/light.js +4 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/es/avatar-group/styles/light.d.ts +1 -0
- package/es/badge/src/Badge.d.ts +10 -0
- package/es/badge/src/Badge.js +3 -2
- package/es/badge/src/styles/index.cssr.js +19 -1
- package/es/badge/styles/light.d.ts +1 -0
- package/es/badge/styles/light.js +4 -3
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/DataTable.js +3 -3
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.js +10 -1
- package/es/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/es/data-table/src/TableParts/BodySkeleton.js +52 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +6 -0
- package/es/data-table/src/styles/index.cssr.js +1 -1
- package/es/data-table/styles/light.d.ts +2 -0
- package/es/data-table/styles/light.js +1 -1
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +40 -9
- package/es/icon-wrapper/src/IconWrapper.js +23 -5
- package/es/icon-wrapper/src/interface.d.ts +1 -0
- package/es/icon-wrapper/src/interface.js +1 -0
- package/es/icon-wrapper/src/styles/index.cssr.js +17 -5
- package/es/layout/src/styles/layout-sider.cssr.js +1 -1
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/modal/src/Modal.d.ts +9 -0
- package/es/modal/styles/light.d.ts +2 -0
- package/es/modal/styles/light.js +2 -1
- package/es/pagination/src/Pagination.d.ts +22 -0
- package/es/pagination/src/Pagination.js +4 -2
- package/es/pagination/src/styles/index.cssr.js +11 -0
- package/es/pagination/styles/light.d.ts +4 -0
- package/es/pagination/styles/light.js +7 -5
- package/es/spin/styles/light.js +3 -3
- package/es/steps/src/Step.d.ts +17 -0
- package/es/steps/src/Step.js +81 -25
- package/es/steps/src/Steps.d.ts +127 -1
- package/es/steps/src/Steps.js +4 -1
- package/es/steps/src/interface.d.ts +10 -2
- package/es/steps/src/interface.js +10 -1
- package/es/steps/src/styles/index.cssr.js +115 -3
- package/es/steps/styles/light.d.ts +14 -0
- package/es/steps/styles/light.js +16 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/toggle-button/src/ToggleButton.d.ts +13 -0
- package/es/toggle-button/src/ToggleButton.js +5 -2
- package/es/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/es/typography/src/a.d.ts +27 -0
- package/es/typography/src/a.js +4 -1
- package/es/typography/src/blockquote.d.ts +27 -0
- package/es/typography/src/blockquote.js +4 -1
- package/es/typography/src/create-header.d.ts +27 -0
- package/es/typography/src/create-header.js +4 -1
- package/es/typography/src/headers.d.ts +108 -0
- package/es/typography/src/hr.d.ts +18 -0
- package/es/typography/src/hr.js +4 -0
- package/es/typography/src/li.js +4 -1
- package/es/typography/src/ol.d.ts +27 -0
- package/es/typography/src/ol.js +4 -1
- package/es/typography/src/p.d.ts +27 -0
- package/es/typography/src/p.js +4 -1
- package/es/typography/src/text.d.ts +128 -524
- package/es/typography/src/text.js +68 -69
- package/es/typography/src/ul.d.ts +27 -0
- package/es/typography/src/ul.js +4 -1
- package/es/typography/styles/light.d.ts +3 -0
- package/es/typography/styles/light.js +3 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/SiderUnionBorder.js +1 -1
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/index.js +4 -1
- package/lib/_internal/typography/index.d.ts +2 -0
- package/lib/_internal/typography/index.js +9 -0
- package/lib/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/lib/_internal/typography/src/styles/text.cssr.js +83 -0
- package/lib/_internal/typography/src/text.d.ts +246 -0
- package/lib/_internal/typography/src/text.js +85 -0
- package/lib/_internal/typography/src/variants.d.ts +13 -0
- package/lib/_internal/typography/src/variants.js +137 -0
- package/lib/_internal/typography/styles/dark.d.ts +3 -0
- package/lib/_internal/typography/styles/dark.js +10 -0
- package/lib/_internal/typography/styles/index.d.ts +3 -0
- package/lib/_internal/typography/styles/index.js +10 -0
- package/lib/_internal/typography/styles/light.d.ts +24 -0
- package/lib/_internal/typography/styles/light.js +32 -0
- package/lib/_styles/common/_common.d.ts +2 -0
- package/lib/_styles/common/_common.js +3 -1
- package/lib/_styles/common/light.d.ts +2 -0
- package/lib/action-card/index.d.ts +4 -0
- package/lib/action-card/index.js +11 -0
- package/lib/action-card/src/ActionCard.d.ts +313 -0
- package/lib/action-card/src/ActionCard.js +107 -0
- package/lib/action-card/src/styles/index.cssr.d.ts +2 -0
- package/lib/action-card/src/styles/index.cssr.js +118 -0
- package/lib/action-card/styles/dark.d.ts +3 -0
- package/lib/action-card/styles/dark.js +13 -0
- package/lib/action-card/styles/index.d.ts +3 -0
- package/lib/action-card/styles/index.js +10 -0
- package/lib/action-card/styles/light.d.ts +29 -0
- package/lib/action-card/styles/light.js +37 -0
- package/lib/avatar/src/Avatar.d.ts +13 -3
- package/lib/avatar/src/Avatar.js +4 -3
- package/lib/avatar/src/styles/index.cssr.js +3 -2
- package/lib/avatar/styles/light.d.ts +1 -0
- package/lib/avatar/styles/light.js +4 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/lib/avatar-group/styles/light.d.ts +1 -0
- package/lib/badge/src/Badge.d.ts +10 -0
- package/lib/badge/src/Badge.js +3 -2
- package/lib/badge/src/styles/index.cssr.js +19 -1
- package/lib/badge/styles/light.d.ts +1 -0
- package/lib/badge/styles/light.js +4 -3
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/DataTable.js +3 -3
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.js +10 -1
- package/lib/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/lib/data-table/src/TableParts/BodySkeleton.js +54 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +6 -0
- package/lib/data-table/src/styles/index.cssr.js +1 -1
- package/lib/data-table/styles/light.d.ts +2 -0
- package/lib/data-table/styles/light.js +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +40 -9
- package/lib/icon-wrapper/src/IconWrapper.js +23 -5
- package/lib/icon-wrapper/src/interface.d.ts +1 -0
- package/lib/icon-wrapper/src/interface.js +2 -0
- package/lib/icon-wrapper/src/styles/index.cssr.js +16 -4
- package/lib/layout/src/styles/layout-sider.cssr.js +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/modal/src/Modal.d.ts +9 -0
- package/lib/modal/styles/light.d.ts +2 -0
- package/lib/modal/styles/light.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +22 -0
- package/lib/pagination/src/Pagination.js +4 -2
- package/lib/pagination/src/styles/index.cssr.js +11 -0
- package/lib/pagination/styles/light.d.ts +4 -0
- package/lib/pagination/styles/light.js +7 -5
- package/lib/spin/styles/light.js +3 -3
- package/lib/steps/src/Step.d.ts +17 -0
- package/lib/steps/src/Step.js +81 -25
- package/lib/steps/src/Steps.d.ts +127 -1
- package/lib/steps/src/Steps.js +4 -1
- package/lib/steps/src/interface.d.ts +10 -2
- package/lib/steps/src/interface.js +11 -0
- package/lib/steps/src/styles/index.cssr.js +115 -3
- package/lib/steps/styles/light.d.ts +14 -0
- package/lib/steps/styles/light.js +16 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/toggle-button/src/ToggleButton.d.ts +13 -0
- package/lib/toggle-button/src/ToggleButton.js +5 -2
- package/lib/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/lib/typography/src/a.d.ts +27 -0
- package/lib/typography/src/a.js +3 -0
- package/lib/typography/src/blockquote.d.ts +27 -0
- package/lib/typography/src/blockquote.js +3 -0
- package/lib/typography/src/create-header.d.ts +27 -0
- package/lib/typography/src/create-header.js +3 -0
- package/lib/typography/src/headers.d.ts +108 -0
- package/lib/typography/src/hr.d.ts +18 -0
- package/lib/typography/src/hr.js +4 -0
- package/lib/typography/src/li.js +3 -0
- package/lib/typography/src/ol.d.ts +27 -0
- package/lib/typography/src/ol.js +3 -0
- package/lib/typography/src/p.d.ts +27 -0
- package/lib/typography/src/p.js +3 -0
- package/lib/typography/src/text.d.ts +128 -524
- package/lib/typography/src/text.js +66 -70
- package/lib/typography/src/ul.d.ts +27 -0
- package/lib/typography/src/ul.js +3 -0
- package/lib/typography/styles/light.d.ts +3 -0
- package/lib/typography/styles/light.js +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +147 -96
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type ExtractPublicPropTypes, type MaybeArray } from '../../_utils';
|
|
3
|
+
export declare const actionCardProps: {
|
|
4
|
+
readonly title: StringConstructor;
|
|
5
|
+
readonly description: StringConstructor;
|
|
6
|
+
readonly icon: PropType<string | (() => any)>;
|
|
7
|
+
readonly disabled: {
|
|
8
|
+
readonly type: BooleanConstructor;
|
|
9
|
+
readonly default: false;
|
|
10
|
+
};
|
|
11
|
+
readonly loading: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly default: false;
|
|
14
|
+
};
|
|
15
|
+
readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
16
|
+
readonly tag: {
|
|
17
|
+
readonly type: PropType<"button" | "a" | "div">;
|
|
18
|
+
readonly default: "div";
|
|
19
|
+
};
|
|
20
|
+
readonly descriptionLineClamp: {
|
|
21
|
+
readonly type: NumberConstructor;
|
|
22
|
+
readonly default: 1;
|
|
23
|
+
};
|
|
24
|
+
readonly theme: PropType<import("../../_mixins").Theme<"ActionCard", {
|
|
25
|
+
minHeight: string;
|
|
26
|
+
maxHeight: string;
|
|
27
|
+
width: string;
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
padding: string;
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
hoverBackgroundColor: string;
|
|
32
|
+
pressedBackgroundColor: string;
|
|
33
|
+
iconSize: string;
|
|
34
|
+
iconColor: string;
|
|
35
|
+
iconMarginBottom: string;
|
|
36
|
+
titleFontSize: string;
|
|
37
|
+
titleFontWeight: string;
|
|
38
|
+
titleLineHeight: string;
|
|
39
|
+
titleColor: string;
|
|
40
|
+
textGap: string;
|
|
41
|
+
descriptionFontSize: string;
|
|
42
|
+
descriptionFontWeight: string;
|
|
43
|
+
descriptionLineHeight: string;
|
|
44
|
+
descriptionColor: string;
|
|
45
|
+
disabledColor: string;
|
|
46
|
+
}, any>>;
|
|
47
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"ActionCard", {
|
|
48
|
+
minHeight: string;
|
|
49
|
+
maxHeight: string;
|
|
50
|
+
width: string;
|
|
51
|
+
borderRadius: string;
|
|
52
|
+
padding: string;
|
|
53
|
+
backgroundColor: string;
|
|
54
|
+
hoverBackgroundColor: string;
|
|
55
|
+
pressedBackgroundColor: string;
|
|
56
|
+
iconSize: string;
|
|
57
|
+
iconColor: string;
|
|
58
|
+
iconMarginBottom: string;
|
|
59
|
+
titleFontSize: string;
|
|
60
|
+
titleFontWeight: string;
|
|
61
|
+
titleLineHeight: string;
|
|
62
|
+
titleColor: string;
|
|
63
|
+
textGap: string;
|
|
64
|
+
descriptionFontSize: string;
|
|
65
|
+
descriptionFontWeight: string;
|
|
66
|
+
descriptionLineHeight: string;
|
|
67
|
+
descriptionColor: string;
|
|
68
|
+
disabledColor: string;
|
|
69
|
+
}, any>>>;
|
|
70
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"ActionCard", {
|
|
71
|
+
minHeight: string;
|
|
72
|
+
maxHeight: string;
|
|
73
|
+
width: string;
|
|
74
|
+
borderRadius: string;
|
|
75
|
+
padding: string;
|
|
76
|
+
backgroundColor: string;
|
|
77
|
+
hoverBackgroundColor: string;
|
|
78
|
+
pressedBackgroundColor: string;
|
|
79
|
+
iconSize: string;
|
|
80
|
+
iconColor: string;
|
|
81
|
+
iconMarginBottom: string;
|
|
82
|
+
titleFontSize: string;
|
|
83
|
+
titleFontWeight: string;
|
|
84
|
+
titleLineHeight: string;
|
|
85
|
+
titleColor: string;
|
|
86
|
+
textGap: string;
|
|
87
|
+
descriptionFontSize: string;
|
|
88
|
+
descriptionFontWeight: string;
|
|
89
|
+
descriptionLineHeight: string;
|
|
90
|
+
descriptionColor: string;
|
|
91
|
+
disabledColor: string;
|
|
92
|
+
}, any>>>;
|
|
93
|
+
};
|
|
94
|
+
export type ActionCardProps = ExtractPublicPropTypes<typeof actionCardProps>;
|
|
95
|
+
declare const _default: import("vue").DefineComponent<{
|
|
96
|
+
readonly title: StringConstructor;
|
|
97
|
+
readonly description: StringConstructor;
|
|
98
|
+
readonly icon: PropType<string | (() => any)>;
|
|
99
|
+
readonly disabled: {
|
|
100
|
+
readonly type: BooleanConstructor;
|
|
101
|
+
readonly default: false;
|
|
102
|
+
};
|
|
103
|
+
readonly loading: {
|
|
104
|
+
readonly type: BooleanConstructor;
|
|
105
|
+
readonly default: false;
|
|
106
|
+
};
|
|
107
|
+
readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
108
|
+
readonly tag: {
|
|
109
|
+
readonly type: PropType<"button" | "a" | "div">;
|
|
110
|
+
readonly default: "div";
|
|
111
|
+
};
|
|
112
|
+
readonly descriptionLineClamp: {
|
|
113
|
+
readonly type: NumberConstructor;
|
|
114
|
+
readonly default: 1;
|
|
115
|
+
};
|
|
116
|
+
readonly theme: PropType<import("../../_mixins").Theme<"ActionCard", {
|
|
117
|
+
minHeight: string;
|
|
118
|
+
maxHeight: string;
|
|
119
|
+
width: string;
|
|
120
|
+
borderRadius: string;
|
|
121
|
+
padding: string;
|
|
122
|
+
backgroundColor: string;
|
|
123
|
+
hoverBackgroundColor: string;
|
|
124
|
+
pressedBackgroundColor: string;
|
|
125
|
+
iconSize: string;
|
|
126
|
+
iconColor: string;
|
|
127
|
+
iconMarginBottom: string;
|
|
128
|
+
titleFontSize: string;
|
|
129
|
+
titleFontWeight: string;
|
|
130
|
+
titleLineHeight: string;
|
|
131
|
+
titleColor: string;
|
|
132
|
+
textGap: string;
|
|
133
|
+
descriptionFontSize: string;
|
|
134
|
+
descriptionFontWeight: string;
|
|
135
|
+
descriptionLineHeight: string;
|
|
136
|
+
descriptionColor: string;
|
|
137
|
+
disabledColor: string;
|
|
138
|
+
}, any>>;
|
|
139
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"ActionCard", {
|
|
140
|
+
minHeight: string;
|
|
141
|
+
maxHeight: string;
|
|
142
|
+
width: string;
|
|
143
|
+
borderRadius: string;
|
|
144
|
+
padding: string;
|
|
145
|
+
backgroundColor: string;
|
|
146
|
+
hoverBackgroundColor: string;
|
|
147
|
+
pressedBackgroundColor: string;
|
|
148
|
+
iconSize: string;
|
|
149
|
+
iconColor: string;
|
|
150
|
+
iconMarginBottom: string;
|
|
151
|
+
titleFontSize: string;
|
|
152
|
+
titleFontWeight: string;
|
|
153
|
+
titleLineHeight: string;
|
|
154
|
+
titleColor: string;
|
|
155
|
+
textGap: string;
|
|
156
|
+
descriptionFontSize: string;
|
|
157
|
+
descriptionFontWeight: string;
|
|
158
|
+
descriptionLineHeight: string;
|
|
159
|
+
descriptionColor: string;
|
|
160
|
+
disabledColor: string;
|
|
161
|
+
}, any>>>;
|
|
162
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"ActionCard", {
|
|
163
|
+
minHeight: string;
|
|
164
|
+
maxHeight: string;
|
|
165
|
+
width: string;
|
|
166
|
+
borderRadius: string;
|
|
167
|
+
padding: string;
|
|
168
|
+
backgroundColor: string;
|
|
169
|
+
hoverBackgroundColor: string;
|
|
170
|
+
pressedBackgroundColor: string;
|
|
171
|
+
iconSize: string;
|
|
172
|
+
iconColor: string;
|
|
173
|
+
iconMarginBottom: string;
|
|
174
|
+
titleFontSize: string;
|
|
175
|
+
titleFontWeight: string;
|
|
176
|
+
titleLineHeight: string;
|
|
177
|
+
titleColor: string;
|
|
178
|
+
textGap: string;
|
|
179
|
+
descriptionFontSize: string;
|
|
180
|
+
descriptionFontWeight: string;
|
|
181
|
+
descriptionLineHeight: string;
|
|
182
|
+
descriptionColor: string;
|
|
183
|
+
disabledColor: string;
|
|
184
|
+
}, any>>>;
|
|
185
|
+
}, {
|
|
186
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
187
|
+
mergedClassNames: import("vue").ComputedRef<(string | {
|
|
188
|
+
[x: string]: boolean;
|
|
189
|
+
} | undefined)[]>;
|
|
190
|
+
handleClick: (e: MouseEvent) => void;
|
|
191
|
+
cssVars: import("vue").ComputedRef<{
|
|
192
|
+
'--u-bezier': string;
|
|
193
|
+
'--u-border-radius': string;
|
|
194
|
+
'--u-padding': string;
|
|
195
|
+
'--u-background-color': string;
|
|
196
|
+
'--u-hover-background-color': string;
|
|
197
|
+
'--u-pressed-background-color': string;
|
|
198
|
+
'--u-icon-size': string;
|
|
199
|
+
'--u-icon-color': string;
|
|
200
|
+
'--u-icon-margin-bottom': string;
|
|
201
|
+
'--u-title-font-size': string;
|
|
202
|
+
'--u-title-font-weight': string;
|
|
203
|
+
'--u-title-line-height': string;
|
|
204
|
+
'--u-title-color': string;
|
|
205
|
+
'--u-disabled-color': string;
|
|
206
|
+
'--u-text-gap': string;
|
|
207
|
+
'--u-description-font-size': string;
|
|
208
|
+
'--u-description-font-weight': string;
|
|
209
|
+
'--u-description-line-height': string;
|
|
210
|
+
'--u-description-color': string;
|
|
211
|
+
'--u-min-height': string;
|
|
212
|
+
'--u-max-height': string;
|
|
213
|
+
'--u-width': string;
|
|
214
|
+
}> | undefined;
|
|
215
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
216
|
+
onRender: (() => void) | undefined;
|
|
217
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
218
|
+
readonly title: StringConstructor;
|
|
219
|
+
readonly description: StringConstructor;
|
|
220
|
+
readonly icon: PropType<string | (() => any)>;
|
|
221
|
+
readonly disabled: {
|
|
222
|
+
readonly type: BooleanConstructor;
|
|
223
|
+
readonly default: false;
|
|
224
|
+
};
|
|
225
|
+
readonly loading: {
|
|
226
|
+
readonly type: BooleanConstructor;
|
|
227
|
+
readonly default: false;
|
|
228
|
+
};
|
|
229
|
+
readonly onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
230
|
+
readonly tag: {
|
|
231
|
+
readonly type: PropType<"button" | "a" | "div">;
|
|
232
|
+
readonly default: "div";
|
|
233
|
+
};
|
|
234
|
+
readonly descriptionLineClamp: {
|
|
235
|
+
readonly type: NumberConstructor;
|
|
236
|
+
readonly default: 1;
|
|
237
|
+
};
|
|
238
|
+
readonly theme: PropType<import("../../_mixins").Theme<"ActionCard", {
|
|
239
|
+
minHeight: string;
|
|
240
|
+
maxHeight: string;
|
|
241
|
+
width: string;
|
|
242
|
+
borderRadius: string;
|
|
243
|
+
padding: string;
|
|
244
|
+
backgroundColor: string;
|
|
245
|
+
hoverBackgroundColor: string;
|
|
246
|
+
pressedBackgroundColor: string;
|
|
247
|
+
iconSize: string;
|
|
248
|
+
iconColor: string;
|
|
249
|
+
iconMarginBottom: string;
|
|
250
|
+
titleFontSize: string;
|
|
251
|
+
titleFontWeight: string;
|
|
252
|
+
titleLineHeight: string;
|
|
253
|
+
titleColor: string;
|
|
254
|
+
textGap: string;
|
|
255
|
+
descriptionFontSize: string;
|
|
256
|
+
descriptionFontWeight: string;
|
|
257
|
+
descriptionLineHeight: string;
|
|
258
|
+
descriptionColor: string;
|
|
259
|
+
disabledColor: string;
|
|
260
|
+
}, any>>;
|
|
261
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"ActionCard", {
|
|
262
|
+
minHeight: string;
|
|
263
|
+
maxHeight: string;
|
|
264
|
+
width: string;
|
|
265
|
+
borderRadius: string;
|
|
266
|
+
padding: string;
|
|
267
|
+
backgroundColor: string;
|
|
268
|
+
hoverBackgroundColor: string;
|
|
269
|
+
pressedBackgroundColor: string;
|
|
270
|
+
iconSize: string;
|
|
271
|
+
iconColor: string;
|
|
272
|
+
iconMarginBottom: string;
|
|
273
|
+
titleFontSize: string;
|
|
274
|
+
titleFontWeight: string;
|
|
275
|
+
titleLineHeight: string;
|
|
276
|
+
titleColor: string;
|
|
277
|
+
textGap: string;
|
|
278
|
+
descriptionFontSize: string;
|
|
279
|
+
descriptionFontWeight: string;
|
|
280
|
+
descriptionLineHeight: string;
|
|
281
|
+
descriptionColor: string;
|
|
282
|
+
disabledColor: string;
|
|
283
|
+
}, any>>>;
|
|
284
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"ActionCard", {
|
|
285
|
+
minHeight: string;
|
|
286
|
+
maxHeight: string;
|
|
287
|
+
width: string;
|
|
288
|
+
borderRadius: string;
|
|
289
|
+
padding: string;
|
|
290
|
+
backgroundColor: string;
|
|
291
|
+
hoverBackgroundColor: string;
|
|
292
|
+
pressedBackgroundColor: string;
|
|
293
|
+
iconSize: string;
|
|
294
|
+
iconColor: string;
|
|
295
|
+
iconMarginBottom: string;
|
|
296
|
+
titleFontSize: string;
|
|
297
|
+
titleFontWeight: string;
|
|
298
|
+
titleLineHeight: string;
|
|
299
|
+
titleColor: string;
|
|
300
|
+
textGap: string;
|
|
301
|
+
descriptionFontSize: string;
|
|
302
|
+
descriptionFontWeight: string;
|
|
303
|
+
descriptionLineHeight: string;
|
|
304
|
+
descriptionColor: string;
|
|
305
|
+
disabledColor: string;
|
|
306
|
+
}, any>>>;
|
|
307
|
+
}>>, {
|
|
308
|
+
readonly disabled: boolean;
|
|
309
|
+
readonly loading: boolean;
|
|
310
|
+
readonly tag: "a" | "div" | "button";
|
|
311
|
+
readonly descriptionLineClamp: number;
|
|
312
|
+
}, {}>;
|
|
313
|
+
export default _default;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.actionCardProps = void 0;
|
|
7
|
+
const vue_1 = require("vue");
|
|
8
|
+
const _mixins_1 = require("../../_mixins");
|
|
9
|
+
const _utils_1 = require("../../_utils");
|
|
10
|
+
const _internal_1 = require("../../_internal");
|
|
11
|
+
const styles_1 = require("../styles");
|
|
12
|
+
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
13
|
+
const ellipsis_1 = require("../../ellipsis");
|
|
14
|
+
exports.actionCardProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { title: String, description: String, icon: [String, Object], disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
}, loading: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
}, onClick: [Function, Array], tag: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: 'div'
|
|
23
|
+
}, descriptionLineClamp: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 1
|
|
26
|
+
} });
|
|
27
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
28
|
+
name: 'ActionCard',
|
|
29
|
+
props: exports.actionCardProps,
|
|
30
|
+
setup(props) {
|
|
31
|
+
const { inlineThemeDisabled, mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
32
|
+
const themeRef = (0, _mixins_1.useTheme)('ActionCard', '-action-card', index_cssr_1.default, styles_1.actionCardLight, props, mergedClsPrefixRef);
|
|
33
|
+
const handleClick = (e) => {
|
|
34
|
+
if (props.disabled || props.loading)
|
|
35
|
+
return;
|
|
36
|
+
const { onClick } = props;
|
|
37
|
+
if (onClick)
|
|
38
|
+
(0, _utils_1.call)(onClick, e);
|
|
39
|
+
};
|
|
40
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
41
|
+
const { self: { borderRadius, padding, backgroundColor, hoverBackgroundColor, pressedBackgroundColor, iconSize, iconColor, iconMarginBottom, titleFontSize, titleFontWeight, titleLineHeight, titleColor, textGap, descriptionFontSize, descriptionFontWeight, descriptionLineHeight, descriptionColor, disabledColor, minHeight, maxHeight, width }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
42
|
+
return {
|
|
43
|
+
'--u-bezier': cubicBezierEaseInOut,
|
|
44
|
+
'--u-border-radius': borderRadius,
|
|
45
|
+
'--u-padding': padding,
|
|
46
|
+
'--u-background-color': backgroundColor,
|
|
47
|
+
'--u-hover-background-color': hoverBackgroundColor,
|
|
48
|
+
'--u-pressed-background-color': pressedBackgroundColor,
|
|
49
|
+
'--u-icon-size': iconSize,
|
|
50
|
+
'--u-icon-color': iconColor,
|
|
51
|
+
'--u-icon-margin-bottom': iconMarginBottom,
|
|
52
|
+
'--u-title-font-size': titleFontSize,
|
|
53
|
+
'--u-title-font-weight': titleFontWeight,
|
|
54
|
+
'--u-title-line-height': titleLineHeight,
|
|
55
|
+
'--u-title-color': titleColor,
|
|
56
|
+
'--u-disabled-color': disabledColor,
|
|
57
|
+
'--u-text-gap': textGap,
|
|
58
|
+
'--u-description-font-size': descriptionFontSize,
|
|
59
|
+
'--u-description-font-weight': descriptionFontWeight,
|
|
60
|
+
'--u-description-line-height': descriptionLineHeight,
|
|
61
|
+
'--u-description-color': descriptionColor,
|
|
62
|
+
'--u-min-height': minHeight,
|
|
63
|
+
'--u-max-height': maxHeight,
|
|
64
|
+
'--u-width': width
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
const themeClassHandle = inlineThemeDisabled
|
|
68
|
+
? (0, _mixins_1.useThemeClass)('action-card', undefined, cssVarsRef, props)
|
|
69
|
+
: undefined;
|
|
70
|
+
const mergedClassNames = (0, vue_1.computed)(() => {
|
|
71
|
+
return [
|
|
72
|
+
`${mergedClsPrefixRef.value}-action-card`,
|
|
73
|
+
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value,
|
|
74
|
+
{
|
|
75
|
+
[`${mergedClsPrefixRef.value}-action-card--disabled`]: props.disabled,
|
|
76
|
+
[`${mergedClsPrefixRef.value}-action-card--loading`]: props.loading,
|
|
77
|
+
[`${mergedClsPrefixRef.value}-action-card--height-auto`]: props.descriptionLineClamp > 1
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
83
|
+
mergedClassNames,
|
|
84
|
+
handleClick,
|
|
85
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
86
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
87
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
render() {
|
|
91
|
+
const { mergedClsPrefix, mergedClassNames, handleClick, title, description, icon, loading, disabled, tag: Component, onRender, descriptionLineClamp } = this;
|
|
92
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
93
|
+
return ((0, vue_1.h)(Component, { class: mergedClassNames, onClick: handleClick, role: "button", tabindex: disabled || loading ? -1 : 0, style: this.cssVars },
|
|
94
|
+
loading && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-action-card__skeleton` },
|
|
95
|
+
icon && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-action-card__skeleton-icon` },
|
|
96
|
+
(0, vue_1.h)(_internal_1.UBaseSkeleton, { circle: true, width: "var(--u-icon-size)", height: "var(--u-icon-size)" }))),
|
|
97
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-action-card__skeleton-text` },
|
|
98
|
+
(0, vue_1.h)(_internal_1.UBaseSkeleton, { height: "var(--u-title-line-height)", width: "60%" }),
|
|
99
|
+
description && ((0, vue_1.h)(vue_1.Fragment, null, Array.from({ length: descriptionLineClamp }).map((_, i) => ((0, vue_1.h)(_internal_1.UBaseSkeleton, { key: i, height: "var(--u-description-line-height)", width: "80%" })))))))),
|
|
100
|
+
!loading && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-action-card__content` },
|
|
101
|
+
icon && !loading && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-action-card__icon` }, typeof icon === 'function' ? icon() : icon)),
|
|
102
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-action-card__text` },
|
|
103
|
+
title && !loading && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-action-card__title` }, title)),
|
|
104
|
+
description && !loading && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-action-card__description` },
|
|
105
|
+
(0, vue_1.h)(ellipsis_1.UEllipsis, { lineClamp: descriptionLineClamp }, description))))))));
|
|
106
|
+
}
|
|
107
|
+
});
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
|
+
// --u-bezier
|
|
9
|
+
// --u-width
|
|
10
|
+
// --u-min-height
|
|
11
|
+
// --u-max-height
|
|
12
|
+
// --u-border-radius
|
|
13
|
+
// --u-padding
|
|
14
|
+
// --u-background-color
|
|
15
|
+
// --u-hover-background-color
|
|
16
|
+
// --u-pressed-background-color
|
|
17
|
+
// --u-icon-size
|
|
18
|
+
// --u-icon-color
|
|
19
|
+
// --u-icon-margin-bottom
|
|
20
|
+
// --u-title-font-size
|
|
21
|
+
// --u-title-font-weight
|
|
22
|
+
// --u-title-line-height
|
|
23
|
+
// --u-title-color
|
|
24
|
+
// --u-text-gap
|
|
25
|
+
// --u-description-font-size
|
|
26
|
+
// --u-description-font-weight
|
|
27
|
+
// --u-description-line-height
|
|
28
|
+
// --u-description-color
|
|
29
|
+
// --u-disabled-color
|
|
30
|
+
exports.default = (0, cssr_1.cB)('action-card', `
|
|
31
|
+
position: relative;
|
|
32
|
+
width: var(--u-width);
|
|
33
|
+
min-height: var(--u-min-height);
|
|
34
|
+
max-height: var(--u-max-height);
|
|
35
|
+
border-radius: var(--u-border-radius);
|
|
36
|
+
padding: var(--u-padding);
|
|
37
|
+
background-color: var(--u-background-color);
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
transition: background-color var(--u-bezier);
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
user-select: none;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
border: none;
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
text-align: left;
|
|
49
|
+
text-decoration: none;
|
|
50
|
+
|
|
51
|
+
font-style: inherit;
|
|
52
|
+
font-variant-ligatures: inherit;
|
|
53
|
+
font-weight: inherit;
|
|
54
|
+
font-size: inherit;
|
|
55
|
+
font-family: inherit;
|
|
56
|
+
text-rendering: inherit;
|
|
57
|
+
color: inherit;
|
|
58
|
+
text-align: inherit;
|
|
59
|
+
`, [(0, cssr_1.cM)('height-auto', `
|
|
60
|
+
max-height: none;
|
|
61
|
+
`), (0, cssr_1.cM)('disabled', `
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
color: var(--u-disabled-color);
|
|
64
|
+
`, [(0, cssr_1.cE)('icon', `
|
|
65
|
+
color: var(--u-disabled-color);
|
|
66
|
+
`), (0, cssr_1.cE)('title', `
|
|
67
|
+
color: var(--u-disabled-color);
|
|
68
|
+
`), (0, cssr_1.cE)('description', `
|
|
69
|
+
color: var(--u-disabled-color);
|
|
70
|
+
`)]), (0, cssr_1.cM)('loading', `
|
|
71
|
+
cursor: default;
|
|
72
|
+
`), (0, cssr_1.cE)('skeleton', `
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
height: 100%;
|
|
76
|
+
flex: 1;
|
|
77
|
+
`), (0, cssr_1.cE)('skeleton-icon', `
|
|
78
|
+
margin-bottom: var(--u-icon-margin-bottom);
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
`), (0, cssr_1.cE)('skeleton-text', `
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
flex: 1;
|
|
84
|
+
justify-content: end;
|
|
85
|
+
gap: var(--u-text-gap);
|
|
86
|
+
`), (0, cssr_1.cE)('content', `
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
height: 100%;
|
|
90
|
+
flex: 1;
|
|
91
|
+
`), (0, cssr_1.cE)('icon', `
|
|
92
|
+
height: var(--u-icon-size);
|
|
93
|
+
width: var(--u-icon-size);
|
|
94
|
+
font-size: var(--u-icon-size);
|
|
95
|
+
color: var(--u-icon-color);
|
|
96
|
+
margin-bottom: var(--u-icon-margin-bottom);
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
`), (0, cssr_1.cE)('text', `
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
flex: 1;
|
|
102
|
+
gap: var(--u-text-gap);
|
|
103
|
+
justify-content: end;
|
|
104
|
+
`), (0, cssr_1.cE)('title', `
|
|
105
|
+
font-size: var(--u-title-font-size);
|
|
106
|
+
font-weight: var(--u-title-font-weight);
|
|
107
|
+
line-height: var(--u-title-line-height);
|
|
108
|
+
color: var(--u-title-color);
|
|
109
|
+
`), (0, cssr_1.cE)('description', `
|
|
110
|
+
font-size: var(--u-description-font-size);
|
|
111
|
+
font-weight: var(--u-description-font-weight);
|
|
112
|
+
line-height: var(--u-description-line-height);
|
|
113
|
+
color: var(--u-description-color);
|
|
114
|
+
`), (0, cssr_1.c)('&:hover:not(.u-action-card--disabled):not(.u-action-card--loading)', `
|
|
115
|
+
background-color: var(--u-hover-background-color);
|
|
116
|
+
`), (0, cssr_1.c)('&:active:not(.u-action-card--disabled):not(.u-action-card--loading)', `
|
|
117
|
+
background-color: var(--u-pressed-background-color);
|
|
118
|
+
`)]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const common_1 = require("../../_styles/common");
|
|
4
|
+
const light_1 = require("./light");
|
|
5
|
+
const actionCardDark = {
|
|
6
|
+
name: 'ActionCard',
|
|
7
|
+
common: common_1.commonDark,
|
|
8
|
+
self: (vars) => {
|
|
9
|
+
const lightVars = (0, light_1.self)(vars);
|
|
10
|
+
return Object.assign({}, lightVars);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.default = actionCardDark;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.actionCardLight = exports.actionCardDark = void 0;
|
|
7
|
+
var dark_1 = require("./dark");
|
|
8
|
+
Object.defineProperty(exports, "actionCardDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
|
+
var light_1 = require("./light");
|
|
10
|
+
Object.defineProperty(exports, "actionCardLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
|
+
import type { Theme } from '../../_mixins';
|
|
3
|
+
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
+
minHeight: string;
|
|
5
|
+
maxHeight: string;
|
|
6
|
+
width: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
padding: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
hoverBackgroundColor: string;
|
|
11
|
+
pressedBackgroundColor: string;
|
|
12
|
+
iconSize: string;
|
|
13
|
+
iconColor: string;
|
|
14
|
+
iconMarginBottom: string;
|
|
15
|
+
titleFontSize: string;
|
|
16
|
+
titleFontWeight: string;
|
|
17
|
+
titleLineHeight: string;
|
|
18
|
+
titleColor: string;
|
|
19
|
+
textGap: string;
|
|
20
|
+
descriptionFontSize: string;
|
|
21
|
+
descriptionFontWeight: string;
|
|
22
|
+
descriptionLineHeight: string;
|
|
23
|
+
descriptionColor: string;
|
|
24
|
+
disabledColor: string;
|
|
25
|
+
};
|
|
26
|
+
export type ActionCardThemeVars = ReturnType<typeof self>;
|
|
27
|
+
declare const actionCardLight: Theme<'ActionCard', ActionCardThemeVars>;
|
|
28
|
+
export default actionCardLight;
|
|
29
|
+
export type ActionCardTheme = typeof actionCardLight;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.self = void 0;
|
|
4
|
+
const common_1 = require("../../_styles/common");
|
|
5
|
+
const self = (vars) => {
|
|
6
|
+
const { borderRadiusLarge, elementsQuaternary, elementsTertiary, elementsQuinary, textTertiary, textPrimary, textSecondary, fontWeightStrong, lineHeightBodyLarge, iconSmall, fontBodyLarge, fontWeight } = vars;
|
|
7
|
+
return {
|
|
8
|
+
minHeight: '148px',
|
|
9
|
+
maxHeight: '148px',
|
|
10
|
+
width: '288px',
|
|
11
|
+
borderRadius: borderRadiusLarge,
|
|
12
|
+
padding: '24px',
|
|
13
|
+
backgroundColor: elementsTertiary,
|
|
14
|
+
hoverBackgroundColor: elementsQuaternary,
|
|
15
|
+
pressedBackgroundColor: elementsQuinary,
|
|
16
|
+
iconSize: iconSmall,
|
|
17
|
+
iconColor: textPrimary,
|
|
18
|
+
iconMarginBottom: '24px',
|
|
19
|
+
titleFontSize: fontBodyLarge,
|
|
20
|
+
titleFontWeight: fontWeightStrong,
|
|
21
|
+
titleLineHeight: lineHeightBodyLarge,
|
|
22
|
+
titleColor: textPrimary,
|
|
23
|
+
textGap: '4px',
|
|
24
|
+
descriptionFontSize: fontBodyLarge,
|
|
25
|
+
descriptionFontWeight: fontWeight,
|
|
26
|
+
descriptionLineHeight: lineHeightBodyLarge,
|
|
27
|
+
descriptionColor: textSecondary,
|
|
28
|
+
disabledColor: textTertiary
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
exports.self = self;
|
|
32
|
+
const actionCardLight = {
|
|
33
|
+
name: 'ActionCard',
|
|
34
|
+
common: common_1.commonLight,
|
|
35
|
+
self: exports.self
|
|
36
|
+
};
|
|
37
|
+
exports.default = actionCardLight;
|