@manamerge/mana-atomic-ui 1.0.197 → 1.0.198
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.d.ts +1 -0
- package/dist/index.js +53 -22
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/davidWeb/molecules/cardTeaser.ts +3 -2
- package/dist/themes/themes/manamerge/atoms/button.ts +1 -1
- package/dist/themes/themes/manamerge/molecules/cardTeaser.ts +20 -22
- package/dist/themes/themes/manamerge/molecules/header.ts +1 -1
- package/dist/types/components/Molecules/CardTeaser/CardTeaser.css.d.ts +6 -0
- package/dist/types/components/Molecules/CardTeaser/CardTeaser.d.ts +1 -0
- package/dist/types/themes/DavidWebTheme.d.ts +1 -0
- package/dist/types/themes/ManamergeTheme.d.ts +11 -4
- package/dist/types/themes/davidWeb/molecules/cardTeaser.d.ts +1 -0
- package/dist/types/themes/manamerge/molecules/cardTeaser.d.ts +11 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -160,6 +160,7 @@ interface CardTeaserTypes {
|
|
|
160
160
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
161
161
|
checks?: string[];
|
|
162
162
|
svg?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
163
|
+
backgroundSvg?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
163
164
|
cardImageSrc?: string;
|
|
164
165
|
separator?: boolean;
|
|
165
166
|
}
|
package/dist/index.js
CHANGED
|
@@ -1006,21 +1006,20 @@ const CardContainer = styled.div `
|
|
|
1006
1006
|
var _a;
|
|
1007
1007
|
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
1008
1008
|
return css `
|
|
1009
|
-
background-image: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background};
|
|
1010
1009
|
border-radius: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius};
|
|
1011
1010
|
max-width: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.maxWidth};
|
|
1012
1011
|
`;
|
|
1013
1012
|
}}
|
|
1014
|
-
|
|
1015
1013
|
display: flex;
|
|
1016
1014
|
flex-direction: row;
|
|
1017
1015
|
flex-wrap: nowrap;
|
|
1018
1016
|
justify-content: space-between;
|
|
1019
1017
|
`;
|
|
1020
1018
|
const HeadingCompanyDate = styled(Heading).attrs(({ theme, moleculeVariant }) => {
|
|
1021
|
-
var _a, _b, _c;
|
|
1019
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1022
1020
|
return ({
|
|
1023
|
-
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.headingCompanyDate) === null || _c === void 0 ? void 0 : _c.variant
|
|
1021
|
+
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.headingCompanyDate) === null || _c === void 0 ? void 0 : _c.variant,
|
|
1022
|
+
asTag: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.headingCompanyDate) === null || _f === void 0 ? void 0 : _f.asTag
|
|
1024
1023
|
});
|
|
1025
1024
|
}) `
|
|
1026
1025
|
${({ theme, moleculeVariant }) => {
|
|
@@ -1037,19 +1036,12 @@ const HeadingCompanyDate = styled(Heading).attrs(({ theme, moleculeVariant }) =>
|
|
|
1037
1036
|
overflow: hidden;
|
|
1038
1037
|
`;
|
|
1039
1038
|
const HeadingTitle = styled(Heading).attrs(({ theme, moleculeVariant }) => {
|
|
1040
|
-
var _a, _b, _c;
|
|
1039
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1041
1040
|
return ({
|
|
1042
|
-
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.headingTitle) === null || _c === void 0 ? void 0 : _c.variant
|
|
1041
|
+
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.headingTitle) === null || _c === void 0 ? void 0 : _c.variant,
|
|
1042
|
+
asTag: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.headingTitle) === null || _f === void 0 ? void 0 : _f.asTag
|
|
1043
1043
|
});
|
|
1044
|
-
})
|
|
1045
|
-
${({ theme, moleculeVariant }) => {
|
|
1046
|
-
var _a, _b;
|
|
1047
|
-
const headingTheme = ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.headingTitle) || {};
|
|
1048
|
-
return css `
|
|
1049
|
-
color: ${headingTheme === null || headingTheme === void 0 ? void 0 : headingTheme.color};
|
|
1050
|
-
`;
|
|
1051
|
-
}}
|
|
1052
|
-
`;
|
|
1044
|
+
}) ``;
|
|
1053
1045
|
const TextListItem = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
1054
1046
|
var _a, _b, _c;
|
|
1055
1047
|
return ({
|
|
@@ -1060,7 +1052,6 @@ const TextListItem = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
|
1060
1052
|
var _a, _b;
|
|
1061
1053
|
const thisTheme = ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.text) || {};
|
|
1062
1054
|
return css `
|
|
1063
|
-
color: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.color};
|
|
1064
1055
|
margin: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.margin};
|
|
1065
1056
|
`;
|
|
1066
1057
|
}}
|
|
@@ -1079,6 +1070,7 @@ const List = styled.ul `
|
|
|
1079
1070
|
`;
|
|
1080
1071
|
const ButtonCardContainer = styled.div `
|
|
1081
1072
|
align-self: center;
|
|
1073
|
+
margin-top: 15px;
|
|
1082
1074
|
${({ theme }) => theme.media.mobileUp} {
|
|
1083
1075
|
align-self: flex-start;
|
|
1084
1076
|
}
|
|
@@ -1121,6 +1113,7 @@ const LeftCardContainer = styled.div `
|
|
|
1121
1113
|
display: flex;
|
|
1122
1114
|
flex-direction: column;
|
|
1123
1115
|
width: 100%;
|
|
1116
|
+
z-index: 1;
|
|
1124
1117
|
${({ theme, moleculeVariant }) => {
|
|
1125
1118
|
var _a, _b, _c, _d, _e;
|
|
1126
1119
|
const leftCardContainer = ((_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.leftCardContainer) === null || _c === void 0 ? void 0 : _c.responsive) || {};
|
|
@@ -1178,11 +1171,24 @@ const Separator = styled.section `
|
|
|
1178
1171
|
}
|
|
1179
1172
|
`;
|
|
1180
1173
|
const IconCard = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
1181
|
-
var _a, _b, _c;
|
|
1174
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1182
1175
|
return ({
|
|
1183
|
-
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.icon) === null || _c === void 0 ? void 0 : _c.variant
|
|
1176
|
+
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.icon) === null || _c === void 0 ? void 0 : _c.variant,
|
|
1177
|
+
fill: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.icon) === null || _f === void 0 ? void 0 : _f.fill,
|
|
1178
|
+
stroke: (_j = (_h = (_g = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _g === void 0 ? void 0 : _g[moleculeVariant]) === null || _h === void 0 ? void 0 : _h.icon) === null || _j === void 0 ? void 0 : _j.stroke
|
|
1184
1179
|
});
|
|
1185
|
-
})
|
|
1180
|
+
}) `
|
|
1181
|
+
${({ theme, moleculeVariant }) => {
|
|
1182
|
+
var _a;
|
|
1183
|
+
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
1184
|
+
return css `
|
|
1185
|
+
&:hover {
|
|
1186
|
+
fill: ${thisTheme.icon.hover.fill};
|
|
1187
|
+
stroke: ${thisTheme.icon.hover.stroke};
|
|
1188
|
+
}
|
|
1189
|
+
`;
|
|
1190
|
+
}};
|
|
1191
|
+
`;
|
|
1186
1192
|
const ButtonCard = styled(Button).attrs(({ theme, moleculeVariant }) => {
|
|
1187
1193
|
var _a, _b, _c;
|
|
1188
1194
|
return ({
|
|
@@ -1193,18 +1199,43 @@ const CardBackgroundColor = styled.div `
|
|
|
1193
1199
|
${({ theme, moleculeVariant }) => {
|
|
1194
1200
|
var _a;
|
|
1195
1201
|
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
1202
|
+
const { largeMobileUp } = theme.media;
|
|
1196
1203
|
return css `
|
|
1197
|
-
|
|
1204
|
+
position: relative;
|
|
1205
|
+
max-width: 500px;
|
|
1198
1206
|
border-radius: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius};
|
|
1199
1207
|
max-width: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.maxWidth};
|
|
1200
1208
|
background: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gradientBackground};
|
|
1209
|
+
${largeMobileUp} {
|
|
1210
|
+
width: 100%;
|
|
1211
|
+
}
|
|
1212
|
+
`;
|
|
1213
|
+
}}
|
|
1214
|
+
`;
|
|
1215
|
+
const GradientStyle = styled(Gradient).attrs(({ theme, moleculeVariant }) => {
|
|
1216
|
+
var _a, _b, _c;
|
|
1217
|
+
return ({
|
|
1218
|
+
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.gradient) === null || _c === void 0 ? void 0 : _c.variant
|
|
1219
|
+
});
|
|
1220
|
+
}) ``;
|
|
1221
|
+
const BackgroundSvg = styled(Icon) `
|
|
1222
|
+
${({ theme, moleculeVariant }) => {
|
|
1223
|
+
var _a;
|
|
1224
|
+
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
1225
|
+
return css `
|
|
1226
|
+
position: absolute;
|
|
1227
|
+
inset: 0;
|
|
1228
|
+
z-index: 0;
|
|
1229
|
+
width: 100%;
|
|
1230
|
+
height: 100%;
|
|
1231
|
+
border-radius: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius};
|
|
1201
1232
|
`;
|
|
1202
1233
|
}}
|
|
1203
1234
|
`;
|
|
1204
1235
|
|
|
1205
|
-
const CardTeaser = ({ moleculeVariant = "primary", company, year, title, checks, onClick, buttonName, svg, cardImageSrc, separator }) => {
|
|
1236
|
+
const CardTeaser = ({ moleculeVariant = "primary", company, year, title, checks, onClick, buttonName, svg, backgroundSvg, cardImageSrc, separator }) => {
|
|
1206
1237
|
const compVariant = "CardTeaser-" + moleculeVariant;
|
|
1207
|
-
return (
|
|
1238
|
+
return (jsxs(CardBackgroundColor, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant }, { children: [backgroundSvg && (jsx(BackgroundSvg, { moleculeVariant: compVariant, svg: backgroundSvg })), jsxs(CardContainer, Object.assign({ moleculeVariant: compVariant }, { children: [jsxs(LeftCardContainer, Object.assign({ moleculeVariant: compVariant }, { children: [(company || year) && (jsx(GradientStyle, Object.assign({ moleculeVariant: "primary" }, { children: jsxs(HeadingCompanyDate, Object.assign({ moleculeVariant: compVariant }, { children: [company, " ", company && year && "•", " ", year] })) }))), jsx(HeadingTitle, Object.assign({ moleculeVariant: compVariant }, { children: title })), separator && jsx(Separator, { moleculeVariant: compVariant }), jsx(List, Object.assign({ moleculeVariant: compVariant }, { children: checks === null || checks === void 0 ? void 0 : checks.map((check, index) => (jsxs(ListItem, Object.assign({ moleculeVariant: compVariant }, { children: [svg && (jsx(IconCard, { moleculeVariant: compVariant, svg: svg })), jsx(TextListItem, Object.assign({ moleculeVariant: compVariant }, { children: check }))] }), index))) })), buttonName && buttonName.length > 0 && (jsx(ButtonCardContainer, { children: jsx(ButtonCard, Object.assign({ moleculeVariant: compVariant, onClick: onClick }, { children: buttonName })) }))] })), jsx(ImageContainer, { children: jsx(Image, { moleculeVariant: compVariant, src: cardImageSrc, alt: "Experience" }) })] }))] })));
|
|
1208
1239
|
};
|
|
1209
1240
|
|
|
1210
1241
|
const scroll = keyframes `
|