@manamerge/mana-atomic-ui 1.0.49 → 1.0.151

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.
Files changed (25) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +5 -7
  3. package/dist/index.js.map +1 -1
  4. package/dist/themes/themes/DavidWebTheme.ts +30 -43
  5. package/dist/themes/themes/davidWeb/fonts/Springwood/SpringwoodBrush-Italic.woff2 +0 -0
  6. package/dist/themes/themes/davidWeb/fonts/Springwood/SpringwoodBrush-Regular.woff2 +0 -0
  7. package/dist/themes/themes/davidWeb/fonts/index.js +10 -7
  8. package/dist/themes/themes/davidWeb/miscellaneous/colorpalette.ts +39 -0
  9. package/dist/themes/themes/davidWeb/miscellaneous/fontsizes.ts +15 -0
  10. package/dist/themes/themes/manamerge/molecules/cardSimpleRender.ts +2 -3
  11. package/dist/themes/themes/manamerge/molecules/navigation.ts +2 -1
  12. package/dist/types/components/Atoms/Heading/Heading.d.ts +1 -1
  13. package/dist/types/themes/DavidWebTheme.d.ts +33 -49
  14. package/dist/types/themes/ManamergeTheme.d.ts +1 -1
  15. package/dist/types/themes/davidWeb/miscellaneous/colorpalette.d.ts +31 -0
  16. package/dist/types/themes/davidWeb/miscellaneous/fontsizes.d.ts +11 -0
  17. package/dist/types/themes/manamerge/molecules/cardSimpleRender.d.ts +0 -1
  18. package/dist/types/themes/manamerge/molecules/navigation.d.ts +1 -0
  19. package/package.json +1 -1
  20. package/dist/types/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy.d.ts +0 -11
  21. /package/dist/themes/themes/{manamerge/fonts → davidWeb/fonts/Gilmer}/Gilmer-Bold.woff2 +0 -0
  22. /package/dist/themes/themes/{manamerge/fonts → davidWeb/fonts/Gilmer}/Gilmer-Heavy.woff2 +0 -0
  23. /package/dist/themes/themes/{manamerge/fonts → davidWeb/fonts/Gilmer}/Gilmer-Light.woff2 +0 -0
  24. /package/dist/themes/themes/{manamerge/fonts → davidWeb/fonts/Gilmer}/Gilmer-Medium.woff2 +0 -0
  25. /package/dist/themes/themes/{manamerge/fonts → davidWeb/fonts/Gilmer}/Gilmer-Regular.woff2 +0 -0
package/dist/index.d.ts CHANGED
@@ -30,7 +30,7 @@ declare const Text: React.FC<TextTypes>;
30
30
  interface HeadingTypes {
31
31
  variant?: string;
32
32
  children: ReactNode;
33
- as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
33
+ as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
34
34
  }
35
35
  declare const Heading: React.FC<HeadingTypes>;
36
36
 
package/dist/index.js CHANGED
@@ -151,7 +151,7 @@ const TextContainer = styled.p `
151
151
  font-weight: ${(props === null || props === void 0 ? void 0 : props.fontWeight) ||
152
152
  (textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontWeight) ||
153
153
  "regular"};
154
- font-family: ${(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontFamily) || "inherit"};
154
+ font-family: ${textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontFamily};
155
155
  font-style: ${(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontStyle) || "normal"};
156
156
  color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.vColor) || "inherit"};
157
157
  `;
@@ -188,7 +188,7 @@ const Text = (_a) => {
188
188
  };
189
189
 
190
190
  const HeadingContainer = styled.h1 `
191
- ${({ variant, theme }) => {
191
+ ${({ variant = "h1", theme }) => {
192
192
  const { media, heading } = theme;
193
193
  const { tinyMobileUp, largeMobileUp, superLargeDesktopUp } = media;
194
194
  const headingStyles = (heading === null || heading === void 0 ? void 0 : heading[variant]) || {};
@@ -1274,10 +1274,9 @@ const AtomIcon$2 = styled(Icon).attrs(({ theme, moleculeVariant }) => {
1274
1274
  });
1275
1275
  }) ``;
1276
1276
  const AtomHeading$2 = styled(Heading).attrs(({ theme, moleculeVariant }) => {
1277
- var _a, _b, _c, _d, _e, _f;
1277
+ var _a, _b, _c;
1278
1278
  return ({
1279
- 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,
1280
- 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
1279
+ 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
1281
1280
  });
1282
1281
  }) ``;
1283
1282
  const AtomText$2 = styled(Text).attrs(({ theme, moleculeVariant }) => {
@@ -1288,8 +1287,7 @@ const AtomText$2 = styled(Text).attrs(({ theme, moleculeVariant }) => {
1288
1287
  }) ``;
1289
1288
 
1290
1289
  const CardSimpleRender = ({ moleculeVariant = "primary", icon, title, description, children, onClick }) => {
1291
- const compVariant = `CardSimpleRender-${moleculeVariant}`;
1292
- 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] })));
1290
+ return (jsxs(Card$1, Object.assign({ className: classNames("CardSimpleRender-", moleculeVariant), moleculeVariant: "CardSimpleRender-" + moleculeVariant, as: onClick ? "button" : "div", onClick: onClick, cardHover: !!onClick }, { children: [jsxs("div", { children: [jsxs(WrapperLine, { children: [icon && (jsx(AtomIcon$2, { moleculeVariant: "CardSimpleRender-" + moleculeVariant, svg: icon })), jsx(AtomHeading$2, Object.assign({ moleculeVariant: "CardSimpleRender-" + moleculeVariant }, { children: title }))] }), jsx(AtomText$2, Object.assign({ moleculeVariant: "CardSimpleRender-" + moleculeVariant }, { children: description }))] }), children] })));
1293
1291
  };
1294
1292
 
1295
1293
  const Card = styled.div `