@manamerge/mana-atomic-ui 1.0.42 → 1.0.44

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
@@ -23,7 +23,7 @@ interface TextTypes {
23
23
  fontWeight?: string | number;
24
24
  tag?: keyof JSX.IntrinsicElements;
25
25
  vColor?: string;
26
- vFontSize?: string;
26
+ vFontSize?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxxl";
27
27
  onClick?: React.MouseEventHandler<HTMLElement>;
28
28
  }
29
29
  declare const Text: React.FC<TextTypes>;
package/dist/index.js CHANGED
@@ -140,12 +140,12 @@ const Button = (_a) => {
140
140
 
141
141
  const TextContainer = styled.p `
142
142
  ${(_a) => {
143
- var _b;
143
+ var _b, _c;
144
144
  var { variant = "regular", theme } = _a, props = __rest(_a, ["variant", "theme"]);
145
145
  const textStyles = ((_b = theme === null || theme === void 0 ? void 0 : theme.text) === null || _b === void 0 ? void 0 : _b[variant]) || {};
146
146
  return css `
147
147
  margin: ${(props === null || props === void 0 ? void 0 : props.margin) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.margin)};
148
- font-size: ${(props === null || props === void 0 ? void 0 : props.vFontSize) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.vFontSize)};
148
+ font-size: ${((_c = theme.fontsizes) === null || _c === void 0 ? void 0 : _c[props === null || props === void 0 ? void 0 : props.vFontSize]) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.vFontSize)};
149
149
  line-height: ${(props === null || props === void 0 ? void 0 : props.lineHeight) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.lineHeight)};
150
150
  font-weight: ${(props === null || props === void 0 ? void 0 : props.fontWeight) ||
151
151
  (textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontWeight) ||