@manamerge/mana-atomic-ui 1.0.205 → 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 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
@@ -1212,7 +1212,7 @@ const GradientStyle = styled(Gradient).attrs(({ theme, moleculeVariant }) => {
1212
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
1213
1213
  });
1214
1214
  }) ``;
1215
- const BackgroundSvg = styled(Icon) `
1215
+ const BackgroundSvg$1 = styled(Icon) `
1216
1216
  ${({ theme, moleculeVariant }) => {
1217
1217
  var _a;
1218
1218
  const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
@@ -1229,7 +1229,7 @@ const BackgroundSvg = styled(Icon) `
1229
1229
 
1230
1230
  const CardTeaser = ({ moleculeVariant = "primary", company, year, title, checks, onClick, buttonName, svg, backgroundSvg, cardImageSrc, separator }) => {
1231
1231
  const compVariant = "CardTeaser-" + moleculeVariant;
1232
- 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" }) })] }))] })));
1233
1233
  };
1234
1234
 
1235
1235
  const scroll = keyframes `
@@ -1345,7 +1345,9 @@ const Card$1 = styled.div `
1345
1345
  background: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background};
1346
1346
  ${gradientPosition &&
1347
1347
  css `
1348
- background-image:
1348
+ position: relative;
1349
+ overflow: hidden;
1350
+ background:
1349
1351
  radial-gradient(
1350
1352
  circle at ${gradientPosition},
1351
1353
  ${thisTheme.gradientColor}25,
@@ -1395,6 +1397,14 @@ const WrapperLine = styled.div `
1395
1397
  width: fit-content;
1396
1398
  text-align: center;
1397
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
+ }}
1398
1408
  `;
1399
1409
  const AtomIcon$2 = styled(Icon).attrs(({ theme, moleculeVariant }) => {
1400
1410
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -1418,11 +1428,26 @@ const AtomText$2 = styled(Text).attrs(({ theme, moleculeVariant }) => {
1418
1428
  return ({
1419
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
1420
1430
  });
1421
- }) ``;
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
+ `;
1422
1447
 
1423
- const CardSimpleRender = ({ moleculeVariant = "primary", icon, title, description, gradientPosition, children, onClick }) => {
1448
+ const CardSimpleRender = ({ moleculeVariant = "primary", icon, backgroundSvg, title, description, gradientPosition, children, onClick }) => {
1424
1449
  const compVariant = `CardSimpleRender-${moleculeVariant}`;
1425
- 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] })));
1426
1451
  };
1427
1452
 
1428
1453
  const Card = styled.div `