@manamerge/mana-atomic-ui 1.0.207 → 1.0.208
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 +39 -21
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/manamerge/molecules/cardSimpleRender.ts +5 -3
- package/dist/themes/themes/manamerge/molecules/footer.ts +5 -1
- package/dist/types/components/Molecules/CardSimpleRender/CardSimpleRender.css.d.ts +4 -1
- package/dist/types/components/Molecules/CardSimpleRender/CardSimpleRender.d.ts +1 -0
- package/dist/types/themes/ManamergeTheme.d.ts +6 -0
- package/dist/types/themes/manamerge/molecules/cardSimpleRender.d.ts +2 -0
- package/dist/types/themes/manamerge/molecules/footer.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -175,6 +175,7 @@ declare const BreakerTape: React.FC<BreakerTapeTypes>;
|
|
|
175
175
|
interface CardSimpleRenderTypes {
|
|
176
176
|
moleculeVariant?: string;
|
|
177
177
|
icon?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
178
|
+
backgroundSvg?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
178
179
|
title?: string;
|
|
179
180
|
description?: string;
|
|
180
181
|
gradientPosition?: "center" | "top" | "bottom" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right";
|
package/dist/index.js
CHANGED
|
@@ -921,8 +921,8 @@ const IconFooter = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
|
921
921
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
922
922
|
return ({
|
|
923
923
|
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.footer) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.icons) === null || _c === void 0 ? void 0 : _c.variant,
|
|
924
|
-
|
|
925
|
-
|
|
924
|
+
fill: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.footer) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.icons) === null || _f === void 0 ? void 0 : _f.fill,
|
|
925
|
+
stroke: (_j = (_h = (_g = theme === null || theme === void 0 ? void 0 : theme.footer) === null || _g === void 0 ? void 0 : _g[moleculeVariant]) === null || _h === void 0 ? void 0 : _h.icons) === null || _j === void 0 ? void 0 : _j.stroke
|
|
926
926
|
});
|
|
927
927
|
}) ``;
|
|
928
928
|
const StyledGradient = styled(Gradient).attrs(({ theme, moleculeVariant }) => {
|
|
@@ -938,27 +938,20 @@ const StyledLink = styled(Link).attrs(({ theme, moleculeVariant }) => {
|
|
|
938
938
|
});
|
|
939
939
|
}) `
|
|
940
940
|
${({ theme, moleculeVariant }) => {
|
|
941
|
-
var _a, _b
|
|
941
|
+
var _a, _b;
|
|
942
942
|
const themeFooter = (_a = theme === null || theme === void 0 ? void 0 : theme.footer) === null || _a === void 0 ? void 0 : _a[moleculeVariant];
|
|
943
943
|
const linksTheme = (themeFooter === null || themeFooter === void 0 ? void 0 : themeFooter.links) || {};
|
|
944
|
-
const iconsTheme = (themeFooter === null || themeFooter === void 0 ? void 0 : themeFooter.icons) || {};
|
|
945
|
-
const iconCustomVariant = (iconsTheme === null || iconsTheme === void 0 ? void 0 : iconsTheme.variant) || {};
|
|
946
|
-
const iconsClientThemeVariant = (theme === null || theme === void 0 ? void 0 : theme.icon["Icon-" + iconCustomVariant]) || {};
|
|
944
|
+
const iconsTheme = ((_b = themeFooter === null || themeFooter === void 0 ? void 0 : themeFooter.icons) === null || _b === void 0 ? void 0 : _b.hover) || {};
|
|
947
945
|
return css `
|
|
948
946
|
color: ${linksTheme === null || linksTheme === void 0 ? void 0 : linksTheme.color};
|
|
949
947
|
display: flex;
|
|
950
948
|
align-items: center;
|
|
951
949
|
&:hover {
|
|
952
|
-
color: ${(_b = linksTheme === null || linksTheme === void 0 ? void 0 : linksTheme.hover) === null || _b === void 0 ? void 0 : _b.color};
|
|
953
|
-
transition: 0.2s;
|
|
954
950
|
text-decoration: none;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
stroke: ${((_e = iconsTheme.hover) === null || _e === void 0 ? void 0 : _e.stroke) ||
|
|
960
|
-
((_f = iconsClientThemeVariant === null || iconsClientThemeVariant === void 0 ? void 0 : iconsClientThemeVariant.hover) === null || _f === void 0 ? void 0 : _f.stroke)};
|
|
961
|
-
}
|
|
951
|
+
}
|
|
952
|
+
&:hover ${IconFooter} {
|
|
953
|
+
fill: ${iconsTheme === null || iconsTheme === void 0 ? void 0 : iconsTheme.fill};
|
|
954
|
+
stroke: ${iconsTheme === null || iconsTheme === void 0 ? void 0 : iconsTheme.stroke};
|
|
962
955
|
}
|
|
963
956
|
`;
|
|
964
957
|
}}
|
|
@@ -1219,7 +1212,7 @@ const GradientStyle = styled(Gradient).attrs(({ theme, moleculeVariant }) => {
|
|
|
1219
1212
|
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
|
|
1220
1213
|
});
|
|
1221
1214
|
}) ``;
|
|
1222
|
-
const BackgroundSvg = styled(Icon) `
|
|
1215
|
+
const BackgroundSvg$1 = styled(Icon) `
|
|
1223
1216
|
${({ theme, moleculeVariant }) => {
|
|
1224
1217
|
var _a;
|
|
1225
1218
|
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
@@ -1236,7 +1229,7 @@ const BackgroundSvg = styled(Icon) `
|
|
|
1236
1229
|
|
|
1237
1230
|
const CardTeaser = ({ moleculeVariant = "primary", company, year, title, checks, onClick, buttonName, svg, backgroundSvg, cardImageSrc, separator }) => {
|
|
1238
1231
|
const compVariant = "CardTeaser-" + moleculeVariant;
|
|
1239
|
-
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" }) })] }))] })));
|
|
1232
|
+
return (jsxs(CardBackgroundColor, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant }, { children: [backgroundSvg && (jsx(BackgroundSvg$1, { 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" }) })] }))] })));
|
|
1240
1233
|
};
|
|
1241
1234
|
|
|
1242
1235
|
const scroll = keyframes `
|
|
@@ -1352,7 +1345,9 @@ const Card$1 = styled.div `
|
|
|
1352
1345
|
background: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background};
|
|
1353
1346
|
${gradientPosition &&
|
|
1354
1347
|
css `
|
|
1355
|
-
|
|
1348
|
+
position: relative;
|
|
1349
|
+
overflow: hidden;
|
|
1350
|
+
background:
|
|
1356
1351
|
radial-gradient(
|
|
1357
1352
|
circle at ${gradientPosition},
|
|
1358
1353
|
${thisTheme.gradientColor}25,
|
|
@@ -1402,6 +1397,14 @@ const WrapperLine = styled.div `
|
|
|
1402
1397
|
width: fit-content;
|
|
1403
1398
|
text-align: center;
|
|
1404
1399
|
gap: 10px;
|
|
1400
|
+
|
|
1401
|
+
${({ theme, moleculeVariant }) => {
|
|
1402
|
+
var _a, _b;
|
|
1403
|
+
const thisTheme = ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomHeading) || {};
|
|
1404
|
+
return css `
|
|
1405
|
+
margin: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.margin};
|
|
1406
|
+
`;
|
|
1407
|
+
}}
|
|
1405
1408
|
`;
|
|
1406
1409
|
const AtomIcon$2 = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
1407
1410
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
@@ -1427,11 +1430,26 @@ const AtomText$2 = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
|
1427
1430
|
return ({
|
|
1428
1431
|
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomText) === null || _c === void 0 ? void 0 : _c.variant
|
|
1429
1432
|
});
|
|
1430
|
-
})
|
|
1433
|
+
}) `
|
|
1434
|
+
${({ theme, moleculeVariant }) => {
|
|
1435
|
+
var _a, _b;
|
|
1436
|
+
const thisTheme = ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomText) || {};
|
|
1437
|
+
return css `
|
|
1438
|
+
margin: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.margin};
|
|
1439
|
+
`;
|
|
1440
|
+
}}
|
|
1441
|
+
`;
|
|
1442
|
+
const BackgroundSvg = styled(Icon) `
|
|
1443
|
+
position: absolute;
|
|
1444
|
+
inset: 0;
|
|
1445
|
+
z-index: -1;
|
|
1446
|
+
width: 100%;
|
|
1447
|
+
height: 100%;
|
|
1448
|
+
`;
|
|
1431
1449
|
|
|
1432
|
-
const CardSimpleRender = ({ moleculeVariant = "primary", icon, title, description, gradientPosition, children, onClick }) => {
|
|
1450
|
+
const CardSimpleRender = ({ moleculeVariant = "primary", icon, backgroundSvg, title, description, gradientPosition, children, onClick }) => {
|
|
1433
1451
|
const compVariant = `CardSimpleRender-${moleculeVariant}`;
|
|
1434
|
-
return (jsxs(Card$1, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant, as: onClick ? "button" : "div", onClick: onClick, cardHover: !!onClick, gradientPosition: gradientPosition }, { children: [(icon || title || description) && (jsxs("div", { children: [(icon || title) && (jsxs(WrapperLine, { children: [icon && (jsx(AtomIcon$2, { moleculeVariant: compVariant, svg: icon })), title && (jsx(AtomHeading$2, Object.assign({ moleculeVariant: compVariant }, { children: title })))] })), description && (jsx(AtomText$2, Object.assign({ moleculeVariant: compVariant }, { children: description })))] })), children] })));
|
|
1452
|
+
return (jsxs(Card$1, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant, as: onClick ? "button" : "div", onClick: onClick, cardHover: !!onClick, gradientPosition: gradientPosition }, { children: [backgroundSvg && (jsx(BackgroundSvg, { moleculeVariant: compVariant, svg: backgroundSvg })), (icon || title || description) && (jsxs("div", { children: [(icon || title) && (jsxs(WrapperLine, Object.assign({ moleculeVariant: compVariant }, { children: [icon && (jsx(AtomIcon$2, { moleculeVariant: compVariant, svg: icon })), title && (jsx(AtomHeading$2, Object.assign({ moleculeVariant: compVariant }, { children: title })))] }))), description && (jsx(AtomText$2, Object.assign({ moleculeVariant: compVariant }, { children: description })))] })), children] })));
|
|
1435
1453
|
};
|
|
1436
1454
|
|
|
1437
1455
|
const Card = styled.div `
|