@manamerge/mana-atomic-ui 1.0.182 → 1.0.184

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
@@ -177,6 +177,7 @@ interface CardSimpleRenderTypes {
177
177
  icon?: FunctionComponent<SVGProps<SVGSVGElement>>;
178
178
  title?: string;
179
179
  description?: string;
180
+ gradientPosition?: "center" | "top" | "bottom" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right";
180
181
  children?: ReactNode;
181
182
  onClick?: React.MouseEventHandler<HTMLElement>;
182
183
  }
package/dist/index.js CHANGED
@@ -540,7 +540,6 @@ const WrapperHeader = styled.div `
540
540
  display: flex;
541
541
  flex-direction: column;
542
542
  justify-content: center;
543
- text-align: center;
544
543
  gap: 15px;
545
544
  position: relative;
546
545
  ${({ theme, moleculeVariant }) => {
@@ -549,6 +548,7 @@ const WrapperHeader = styled.div `
549
548
  return css `
550
549
  align-items: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.alignItems) || "center"};
551
550
  padding: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.padding};
551
+ text-align: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.textAlign};
552
552
  `;
553
553
  }}
554
554
  `;
@@ -1270,8 +1270,8 @@ const BreakerTape = ({ moleculeVariant = "primary", words, svg }) => {
1270
1270
  };
1271
1271
 
1272
1272
  const Card$1 = styled.div `
1273
- ${({ theme, moleculeVariant, cardHover }) => {
1274
- var _a, _b, _c, _d, _e, _f, _g;
1273
+ ${({ theme, moleculeVariant, cardHover, gradientPosition }) => {
1274
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1275
1275
  const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
1276
1276
  return css `
1277
1277
  all: unset;
@@ -1280,8 +1280,22 @@ const Card$1 = styled.div `
1280
1280
  min-width: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.minWidth) || "auto"};
1281
1281
  max-width: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.maxWidth) || "auto"};
1282
1282
  background: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background};
1283
- background-image: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gradientBackground};
1283
+ ${gradientPosition &&
1284
+ css `
1285
+ background-image:
1286
+ radial-gradient(
1287
+ circle at ${gradientPosition},
1288
+ ${thisTheme.gradientColor}55,
1289
+ transparent 70%
1290
+ ),
1291
+ radial-gradient(
1292
+ circle at ${gradientPosition},
1293
+ ${thisTheme.gradientColor}22,
1294
+ transparent 75%
1295
+ );
1296
+ `}
1284
1297
  border: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.border};
1298
+ outline: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.outline};
1285
1299
  border-radius: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius};
1286
1300
  box-shadow: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.boxShadow};
1287
1301
  box-sizing: border-box;
@@ -1295,15 +1309,17 @@ const Card$1 = styled.div `
1295
1309
  css `
1296
1310
  &:focus {
1297
1311
  border: ${(_b = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.focus) === null || _b === void 0 ? void 0 : _b.border};
1298
- box-shadow: ${(_c = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.focus) === null || _c === void 0 ? void 0 : _c.boxShadow};
1299
- transition: ${(_d = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.focus) === null || _d === void 0 ? void 0 : _d.transition};
1312
+ outline: ${(_c = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.focus) === null || _c === void 0 ? void 0 : _c.outline};
1313
+ box-shadow: ${(_d = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.focus) === null || _d === void 0 ? void 0 : _d.boxShadow};
1314
+ transition: ${(_e = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.focus) === null || _e === void 0 ? void 0 : _e.transition};
1300
1315
  }
1301
1316
 
1302
1317
  &:hover {
1303
1318
  cursor: pointer;
1304
- border: ${(_e = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _e === void 0 ? void 0 : _e.border};
1305
- box-shadow: ${(_f = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _f === void 0 ? void 0 : _f.boxShadow};
1306
- transition: ${(_g = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _g === void 0 ? void 0 : _g.transition};
1319
+ border: ${(_f = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _f === void 0 ? void 0 : _f.border};
1320
+ outline: ${(_g = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _g === void 0 ? void 0 : _g.outline};
1321
+ box-shadow: ${(_h = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _h === void 0 ? void 0 : _h.boxShadow};
1322
+ transition: ${(_j = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _j === void 0 ? void 0 : _j.transition};
1307
1323
  }
1308
1324
  `}
1309
1325
  `;
@@ -1318,16 +1334,18 @@ const WrapperLine = styled.div `
1318
1334
  gap: 10px;
1319
1335
  `;
1320
1336
  const AtomIcon$2 = styled(Icon).attrs(({ theme, moleculeVariant }) => {
1321
- var _a, _b, _c;
1337
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1322
1338
  return ({
1323
- 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.atomIcon) === null || _c === void 0 ? void 0 : _c.variant
1339
+ 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.atomIcon) === null || _c === void 0 ? void 0 : _c.variant,
1340
+ fill: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomIcon) === null || _f === void 0 ? void 0 : _f.fill,
1341
+ stroke: (_j = (_h = (_g = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _g === void 0 ? void 0 : _g[moleculeVariant]) === null || _h === void 0 ? void 0 : _h.atomIcon) === null || _j === void 0 ? void 0 : _j.stroke
1324
1342
  });
1325
1343
  }) ``;
1326
1344
  const AtomHeading$2 = styled(Heading).attrs(({ theme, moleculeVariant }) => {
1327
1345
  var _a, _b, _c, _d, _e, _f;
1328
1346
  return ({
1329
1347
  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.atomHeading) === null || _c === void 0 ? void 0 : _c.variant,
1330
- as: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomHeading) === null || _f === void 0 ? void 0 : _f.as
1348
+ asTag: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomHeading) === null || _f === void 0 ? void 0 : _f.asTag
1331
1349
  });
1332
1350
  }) ``;
1333
1351
  const AtomText$2 = styled(Text).attrs(({ theme, moleculeVariant }) => {
@@ -1337,9 +1355,9 @@ const AtomText$2 = styled(Text).attrs(({ theme, moleculeVariant }) => {
1337
1355
  });
1338
1356
  }) ``;
1339
1357
 
1340
- const CardSimpleRender = ({ moleculeVariant = "primary", icon, title, description, children, onClick }) => {
1358
+ const CardSimpleRender = ({ moleculeVariant = "primary", icon, title, description, gradientPosition, children, onClick }) => {
1341
1359
  const compVariant = `CardSimpleRender-${moleculeVariant}`;
1342
- return (jsxs(Card$1, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant, as: onClick ? "button" : "div", onClick: onClick, cardHover: !!onClick }, { 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] })));
1360
+ 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] })));
1343
1361
  };
1344
1362
 
1345
1363
  const Card = styled.div `