@manamerge/mana-atomic-ui 1.0.204 → 1.0.206
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 +34 -8
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/manamerge/molecules/cardSimpleRender.ts +5 -3
- 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 +2 -0
- package/dist/types/themes/manamerge/molecules/cardSimpleRender.d.ts +2 -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
|
@@ -946,9 +946,10 @@ const StyledLink = styled(Link).attrs(({ theme, moleculeVariant }) => {
|
|
|
946
946
|
color: ${linksTheme === null || linksTheme === void 0 ? void 0 : linksTheme.color};
|
|
947
947
|
display: flex;
|
|
948
948
|
align-items: center;
|
|
949
|
-
&:hover
|
|
949
|
+
&:hover {
|
|
950
950
|
text-decoration: none;
|
|
951
|
-
|
|
951
|
+
}
|
|
952
|
+
&:hover ${IconFooter} {
|
|
952
953
|
fill: ${iconsTheme === null || iconsTheme === void 0 ? void 0 : iconsTheme.fill};
|
|
953
954
|
stroke: ${iconsTheme === null || iconsTheme === void 0 ? void 0 : iconsTheme.stroke};
|
|
954
955
|
}
|
|
@@ -1211,7 +1212,7 @@ const GradientStyle = styled(Gradient).attrs(({ theme, moleculeVariant }) => {
|
|
|
1211
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
|
|
1212
1213
|
});
|
|
1213
1214
|
}) ``;
|
|
1214
|
-
const BackgroundSvg = styled(Icon) `
|
|
1215
|
+
const BackgroundSvg$1 = styled(Icon) `
|
|
1215
1216
|
${({ theme, moleculeVariant }) => {
|
|
1216
1217
|
var _a;
|
|
1217
1218
|
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
@@ -1228,7 +1229,7 @@ const BackgroundSvg = styled(Icon) `
|
|
|
1228
1229
|
|
|
1229
1230
|
const CardTeaser = ({ moleculeVariant = "primary", company, year, title, checks, onClick, buttonName, svg, backgroundSvg, cardImageSrc, separator }) => {
|
|
1230
1231
|
const compVariant = "CardTeaser-" + moleculeVariant;
|
|
1231
|
-
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" }) })] }))] })));
|
|
1232
1233
|
};
|
|
1233
1234
|
|
|
1234
1235
|
const scroll = keyframes `
|
|
@@ -1344,7 +1345,9 @@ const Card$1 = styled.div `
|
|
|
1344
1345
|
background: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background};
|
|
1345
1346
|
${gradientPosition &&
|
|
1346
1347
|
css `
|
|
1347
|
-
|
|
1348
|
+
position: relative;
|
|
1349
|
+
overflow: hidden;
|
|
1350
|
+
background:
|
|
1348
1351
|
radial-gradient(
|
|
1349
1352
|
circle at ${gradientPosition},
|
|
1350
1353
|
${thisTheme.gradientColor}25,
|
|
@@ -1394,6 +1397,14 @@ const WrapperLine = styled.div `
|
|
|
1394
1397
|
width: fit-content;
|
|
1395
1398
|
text-align: center;
|
|
1396
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
|
+
}}
|
|
1397
1408
|
`;
|
|
1398
1409
|
const AtomIcon$2 = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
1399
1410
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
@@ -1417,11 +1428,26 @@ const AtomText$2 = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
|
1417
1428
|
return ({
|
|
1418
1429
|
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
|
|
1419
1430
|
});
|
|
1420
|
-
})
|
|
1431
|
+
}) `
|
|
1432
|
+
${({ theme, moleculeVariant }) => {
|
|
1433
|
+
var _a, _b;
|
|
1434
|
+
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) || {};
|
|
1435
|
+
return css `
|
|
1436
|
+
margin: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.margin};
|
|
1437
|
+
`;
|
|
1438
|
+
}}
|
|
1439
|
+
`;
|
|
1440
|
+
const BackgroundSvg = styled(Icon) `
|
|
1441
|
+
position: absolute;
|
|
1442
|
+
inset: 0;
|
|
1443
|
+
z-index: -1;
|
|
1444
|
+
width: 100%;
|
|
1445
|
+
height: 100%;
|
|
1446
|
+
`;
|
|
1421
1447
|
|
|
1422
|
-
const CardSimpleRender = ({ moleculeVariant = "primary", icon, title, description, gradientPosition, children, onClick }) => {
|
|
1448
|
+
const CardSimpleRender = ({ moleculeVariant = "primary", icon, backgroundSvg, title, description, gradientPosition, children, onClick }) => {
|
|
1423
1449
|
const compVariant = `CardSimpleRender-${moleculeVariant}`;
|
|
1424
|
-
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] })));
|
|
1450
|
+
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] })));
|
|
1425
1451
|
};
|
|
1426
1452
|
|
|
1427
1453
|
const Card = styled.div `
|