@manamerge/mana-atomic-ui 1.0.193 → 1.0.195
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 +38 -24
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Bold.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Heavy.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Light.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Medium.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Regular.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Springwood/SpringwoodBrush-Italic.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Springwood/SpringwoodBrush-Regular.woff2 +0 -0
- package/dist/themes/themes/davidWeb/molecules/cardTeaser.ts +3 -2
- package/dist/themes/themes/manamerge/atoms/button.ts +3 -3
- package/dist/themes/themes/manamerge/molecules/accordion.ts +1 -6
- package/dist/themes/themes/manamerge/molecules/cardTeaser.ts +11 -21
- 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 -5
- package/dist/types/themes/ManamergeTheme.d.ts +5 -9
- package/dist/types/themes/davidWeb/molecules/cardTeaser.d.ts +1 -0
- package/dist/types/themes/manamerge/molecules/accordion.d.ts +0 -5
- package/dist/types/themes/manamerge/molecules/cardTeaser.d.ts +5 -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
|
@@ -980,21 +980,20 @@ const CardContainer = styled.div `
|
|
|
980
980
|
var _a;
|
|
981
981
|
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
982
982
|
return css `
|
|
983
|
-
background-image: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background};
|
|
984
983
|
border-radius: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius};
|
|
985
984
|
max-width: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.maxWidth};
|
|
986
985
|
`;
|
|
987
986
|
}}
|
|
988
|
-
|
|
989
987
|
display: flex;
|
|
990
988
|
flex-direction: row;
|
|
991
989
|
flex-wrap: nowrap;
|
|
992
990
|
justify-content: space-between;
|
|
993
991
|
`;
|
|
994
992
|
const HeadingCompanyDate = styled(Heading).attrs(({ theme, moleculeVariant }) => {
|
|
995
|
-
var _a, _b, _c;
|
|
993
|
+
var _a, _b, _c, _d, _e, _f;
|
|
996
994
|
return ({
|
|
997
|
-
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
|
|
995
|
+
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,
|
|
996
|
+
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
|
|
998
997
|
});
|
|
999
998
|
}) `
|
|
1000
999
|
${({ theme, moleculeVariant }) => {
|
|
@@ -1011,19 +1010,12 @@ const HeadingCompanyDate = styled(Heading).attrs(({ theme, moleculeVariant }) =>
|
|
|
1011
1010
|
overflow: hidden;
|
|
1012
1011
|
`;
|
|
1013
1012
|
const HeadingTitle = styled(Heading).attrs(({ theme, moleculeVariant }) => {
|
|
1014
|
-
var _a, _b, _c;
|
|
1013
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1015
1014
|
return ({
|
|
1016
|
-
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
|
|
1015
|
+
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,
|
|
1016
|
+
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
|
|
1017
1017
|
});
|
|
1018
|
-
})
|
|
1019
|
-
${({ theme, moleculeVariant }) => {
|
|
1020
|
-
var _a, _b;
|
|
1021
|
-
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) || {};
|
|
1022
|
-
return css `
|
|
1023
|
-
color: ${headingTheme === null || headingTheme === void 0 ? void 0 : headingTheme.color};
|
|
1024
|
-
`;
|
|
1025
|
-
}}
|
|
1026
|
-
`;
|
|
1018
|
+
}) ``;
|
|
1027
1019
|
const TextListItem = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
1028
1020
|
var _a, _b, _c;
|
|
1029
1021
|
return ({
|
|
@@ -1034,7 +1026,6 @@ const TextListItem = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
|
1034
1026
|
var _a, _b;
|
|
1035
1027
|
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) || {};
|
|
1036
1028
|
return css `
|
|
1037
|
-
color: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.color};
|
|
1038
1029
|
margin: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.margin};
|
|
1039
1030
|
`;
|
|
1040
1031
|
}}
|
|
@@ -1053,6 +1044,7 @@ const List = styled.ul `
|
|
|
1053
1044
|
`;
|
|
1054
1045
|
const ButtonCardContainer = styled.div `
|
|
1055
1046
|
align-self: center;
|
|
1047
|
+
margin-top: 15px;
|
|
1056
1048
|
${({ theme }) => theme.media.mobileUp} {
|
|
1057
1049
|
align-self: flex-start;
|
|
1058
1050
|
}
|
|
@@ -1095,6 +1087,7 @@ const LeftCardContainer = styled.div `
|
|
|
1095
1087
|
display: flex;
|
|
1096
1088
|
flex-direction: column;
|
|
1097
1089
|
width: 100%;
|
|
1090
|
+
z-index: 1;
|
|
1098
1091
|
${({ theme, moleculeVariant }) => {
|
|
1099
1092
|
var _a, _b, _c, _d, _e;
|
|
1100
1093
|
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) || {};
|
|
@@ -1167,18 +1160,42 @@ const CardBackgroundColor = styled.div `
|
|
|
1167
1160
|
${({ theme, moleculeVariant }) => {
|
|
1168
1161
|
var _a;
|
|
1169
1162
|
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
1163
|
+
const { largeMobileUp } = theme.media;
|
|
1170
1164
|
return css `
|
|
1171
|
-
|
|
1165
|
+
position: relative;
|
|
1166
|
+
width: 500px;
|
|
1172
1167
|
border-radius: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius};
|
|
1173
1168
|
max-width: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.maxWidth};
|
|
1174
1169
|
background: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gradientBackground};
|
|
1170
|
+
${largeMobileUp} {
|
|
1171
|
+
width: 100%;
|
|
1172
|
+
}
|
|
1175
1173
|
`;
|
|
1176
1174
|
}}
|
|
1177
1175
|
`;
|
|
1176
|
+
const GradientStyle = styled(Gradient).attrs(({ theme, moleculeVariant }) => {
|
|
1177
|
+
var _a, _b, _c;
|
|
1178
|
+
return ({
|
|
1179
|
+
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
|
|
1180
|
+
});
|
|
1181
|
+
}) ``;
|
|
1182
|
+
const BackgroundSvg = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
1183
|
+
var _a, _b, _c;
|
|
1184
|
+
return ({
|
|
1185
|
+
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.svgBackground) === null || _c === void 0 ? void 0 : _c.variant
|
|
1186
|
+
});
|
|
1187
|
+
}) `
|
|
1188
|
+
position: absolute;
|
|
1189
|
+
inset: 0;
|
|
1190
|
+
z-index: 0;
|
|
1191
|
+
width: 100%;
|
|
1192
|
+
height: 100%;
|
|
1193
|
+
border-radius: 25px;
|
|
1194
|
+
`;
|
|
1178
1195
|
|
|
1179
|
-
const CardTeaser = ({ moleculeVariant = "primary", company, year, title, checks, onClick, buttonName, svg, cardImageSrc, separator }) => {
|
|
1196
|
+
const CardTeaser = ({ moleculeVariant = "primary", company, year, title, checks, onClick, buttonName, svg, backgroundSvg, cardImageSrc, separator }) => {
|
|
1180
1197
|
const compVariant = "CardTeaser-" + moleculeVariant;
|
|
1181
|
-
return (
|
|
1198
|
+
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" }) })] }))] })));
|
|
1182
1199
|
};
|
|
1183
1200
|
|
|
1184
1201
|
const scroll = keyframes `
|
|
@@ -1502,16 +1519,13 @@ const AtomHeading = styled(Heading).attrs(({ theme, moleculeVariant }) => {
|
|
|
1502
1519
|
});
|
|
1503
1520
|
}) ``;
|
|
1504
1521
|
const AtomIcon = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
1505
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
1522
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1506
1523
|
return ({
|
|
1507
1524
|
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomIcon) === null || _c === void 0 ? void 0 : _c.variant,
|
|
1508
1525
|
size: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomIcon) === null || _f === void 0 ? void 0 : _f.size,
|
|
1509
1526
|
color: (_j = (_h = (_g = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _g === void 0 ? void 0 : _g[moleculeVariant]) === null || _h === void 0 ? void 0 : _h.atomIcon) === null || _j === void 0 ? void 0 : _j.color,
|
|
1510
1527
|
fill: (_m = (_l = (_k = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _k === void 0 ? void 0 : _k[moleculeVariant]) === null || _l === void 0 ? void 0 : _l.atomIcon) === null || _m === void 0 ? void 0 : _m.fill,
|
|
1511
|
-
stroke: (_q = (_p = (_o = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _o === void 0 ? void 0 : _o[moleculeVariant]) === null || _p === void 0 ? void 0 : _p.atomIcon) === null || _q === void 0 ? void 0 : _q.stroke
|
|
1512
|
-
hoverColor: (_u = (_t = (_s = (_r = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _r === void 0 ? void 0 : _r[moleculeVariant]) === null || _s === void 0 ? void 0 : _s.atomIcon) === null || _t === void 0 ? void 0 : _t.hover) === null || _u === void 0 ? void 0 : _u.color,
|
|
1513
|
-
hoverFill: (_y = (_x = (_w = (_v = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _v === void 0 ? void 0 : _v[moleculeVariant]) === null || _w === void 0 ? void 0 : _w.atomIcon) === null || _x === void 0 ? void 0 : _x.hover) === null || _y === void 0 ? void 0 : _y.fill,
|
|
1514
|
-
hoverStroke: (_2 = (_1 = (_0 = (_z = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _z === void 0 ? void 0 : _z[moleculeVariant]) === null || _0 === void 0 ? void 0 : _0.atomIcon) === null || _1 === void 0 ? void 0 : _1.hover) === null || _2 === void 0 ? void 0 : _2.stroke
|
|
1528
|
+
stroke: (_q = (_p = (_o = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _o === void 0 ? void 0 : _o[moleculeVariant]) === null || _p === void 0 ? void 0 : _p.atomIcon) === null || _q === void 0 ? void 0 : _q.stroke
|
|
1515
1529
|
});
|
|
1516
1530
|
}) `
|
|
1517
1531
|
min-width: fit-content;
|