@manamerge/mana-atomic-ui 1.0.158 → 1.0.159

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
@@ -29,6 +29,7 @@ declare const Text: React.FC<TextTypes>;
29
29
  interface HeadingTypes {
30
30
  variant?: string;
31
31
  children: ReactNode;
32
+ vColor?: string;
32
33
  as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
33
34
  }
34
35
  declare const Heading: React.FC<HeadingTypes>;
package/dist/index.js CHANGED
@@ -188,7 +188,8 @@ const Text = (_a) => {
188
188
  };
189
189
 
190
190
  const HeadingContainer = styled.h1 `
191
- ${({ variant, theme }) => {
191
+ ${(_a) => {
192
+ var { variant, theme } = _a, props = __rest(_a, ["variant", "theme"]);
192
193
  const { media, heading } = theme;
193
194
  const { tinyMobileUp, largeMobileUp, superLargeDesktopUp } = media;
194
195
  const headingStyles = (heading === null || heading === void 0 ? void 0 : heading[variant]) || {};
@@ -198,31 +199,34 @@ const HeadingContainer = styled.h1 `
198
199
  font-size: ${mobile === null || mobile === void 0 ? void 0 : mobile.fontSize};
199
200
  font-weight: ${mobile === null || mobile === void 0 ? void 0 : mobile.fontWeight};
200
201
  line-height: ${mobile === null || mobile === void 0 ? void 0 : mobile.lineHeight};
201
- color: ${mobile === null || mobile === void 0 ? void 0 : mobile.color};
202
+ color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (mobile === null || mobile === void 0 ? void 0 : mobile.color)};
202
203
  margin: ${mobile === null || mobile === void 0 ? void 0 : mobile.margin};
204
+ font-family: ${mobile === null || mobile === void 0 ? void 0 : mobile.fontFamily};
203
205
  }
204
206
  ${largeMobileUp} {
205
207
  font-size: ${tablet === null || tablet === void 0 ? void 0 : tablet.fontSize};
206
208
  font-weight: ${tablet === null || tablet === void 0 ? void 0 : tablet.fontWeight};
207
209
  line-height: ${tablet === null || tablet === void 0 ? void 0 : tablet.lineHeight};
208
- color: ${tablet === null || tablet === void 0 ? void 0 : tablet.color};
210
+ color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (tablet === null || tablet === void 0 ? void 0 : tablet.color)};
209
211
  margin: ${tablet === null || tablet === void 0 ? void 0 : tablet.margin};
212
+ font-family: ${tablet === null || tablet === void 0 ? void 0 : tablet.fontFamily};
210
213
  }
211
214
  ${superLargeDesktopUp} {
212
215
  font-size: ${desktop === null || desktop === void 0 ? void 0 : desktop.fontSize};
213
216
  font-weight: ${desktop === null || desktop === void 0 ? void 0 : desktop.fontWeight};
214
217
  line-height: ${desktop === null || desktop === void 0 ? void 0 : desktop.lineHeight};
215
- color: ${desktop === null || desktop === void 0 ? void 0 : desktop.color};
218
+ color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (desktop === null || desktop === void 0 ? void 0 : desktop.color)};
216
219
  margin: ${desktop === null || desktop === void 0 ? void 0 : desktop.margin};
220
+ font-family: ${desktop === null || desktop === void 0 ? void 0 : desktop.fontFamily};
217
221
  }
218
222
  `;
219
223
  }}
220
224
  `;
221
225
 
222
226
  const Heading = (_a) => {
223
- var { variant = "primary", as = "h1", children } = _a, props = __rest(_a, ["variant", "as", "children"]);
227
+ var { variant = "primary", as = "h1", vColor, children } = _a, props = __rest(_a, ["variant", "as", "vColor", "children"]);
224
228
  const headingVariant = `Heading-${variant}-${as}`;
225
- return (jsx(HeadingContainer, Object.assign({ className: classNames("Heading-", variant), variant: headingVariant, as: as }, props, { children: children })));
229
+ return (jsx(HeadingContainer, Object.assign({ className: classNames("Heading-", variant), variant: headingVariant, vColor: vColor, as: as }, props, { children: children })));
226
230
  };
227
231
 
228
232
  const StyledSvg = styled.svg `