@manamerge/mana-atomic-ui 1.0.158 → 1.0.160

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
@@ -13,10 +13,11 @@ interface ButtonTypes {
13
13
  declare const Button: React.FC<ButtonTypes>;
14
14
 
15
15
  interface TextTypes {
16
- variant?: "primary-light" | "primary-regular" | "primary-medium" | "primary-bold" | "primary-heavy" | "secondary-regular" | "secondary-italic";
16
+ variant?: string;
17
17
  children?: string;
18
18
  htmlFor?: string;
19
19
  margin?: string;
20
+ color?: string;
20
21
  lineHeight?: string;
21
22
  fontWeight?: string | number;
22
23
  tag?: keyof JSX.IntrinsicElements;
package/dist/index.js CHANGED
@@ -164,14 +164,14 @@ const TextContainerLabel = styled.label `
164
164
  const textStyles = ((_b = theme === null || theme === void 0 ? void 0 : theme.text) === null || _b === void 0 ? void 0 : _b[variant]) || {};
165
165
  return css `
166
166
  margin: ${(props === null || props === void 0 ? void 0 : props.margin) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.margin)};
167
- font-size: ${(props === null || props === void 0 ? void 0 : props.vFontSize) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontSize)};
167
+ font-size: ${(props === null || props === void 0 ? void 0 : props.vFontSize) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.vFontSize)};
168
168
  line-height: ${(props === null || props === void 0 ? void 0 : props.lineHeight) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.lineHeight)};
169
169
  font-weight: ${(props === null || props === void 0 ? void 0 : props.fontWeight) ||
170
170
  (textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontWeight) ||
171
171
  "regular"};
172
172
  font-family: ${(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontFamily) || "inherit"};
173
173
  font-style: ${(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontStyle) || "normal"};
174
- color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.color) || "inherit"};
174
+ color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.vColor) || "inherit"};
175
175
  `;
176
176
  }};
177
177
  `;
@@ -499,6 +499,24 @@ const WrapperBackground = styled.div `
499
499
  justify-content: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.justifyContent) || "center"};
500
500
  height: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.height) || "unset"};
501
501
  background-color: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.backgroundColor) || "unset"};
502
+ /* background: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background}; */
503
+ /* background: radial-gradient(
504
+ circle at center,
505
+ #ff7e5f 0%,
506
+ #ff7e5f 30%,
507
+ #feb47b 60%,
508
+ transparent 100%
509
+ ); */
510
+ /* background: radial-gradient(
511
+ circle at center,
512
+ rgba(255, 126, 95, 0.8) 0%,
513
+ rgba(255, 126, 95, 0.3) 40%,
514
+ rgba(255, 126, 95, 0) 70%,
515
+ transparent 100%
516
+ );
517
+ backdrop-filter: blur(20px);
518
+ aspect-ratio: 1 / 1; */
519
+ /* border-radius: 50%; */
502
520
 
503
521
  /* Overlay */
504
522
  ${withOverlay &&
@@ -600,16 +618,25 @@ const AtomIconDot = styled(Icon).attrs(({ theme, moleculeVariant }) => {
600
618
  `;
601
619
  }}
602
620
  `;
621
+ const AtomTextBanner = styled(Text).attrs(({ theme, moleculeVariant }) => {
622
+ var _a, _b, _c, _d, _e, _f;
623
+ return ({
624
+ variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomTextBanner) === null || _c === void 0 ? void 0 : _c.variant,
625
+ vColor: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.header) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomTextBanner) === null || _f === void 0 ? void 0 : _f.color
626
+ });
627
+ }) ``;
603
628
  const AtomHeading$3 = styled(Heading).attrs(({ theme, moleculeVariant }) => {
604
- var _a, _b, _c;
629
+ var _a, _b, _c, _d, _e, _f;
605
630
  return ({
606
- variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomHeading) === null || _c === void 0 ? void 0 : _c.variant
631
+ variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomHeading) === null || _c === void 0 ? void 0 : _c.variant,
632
+ as: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.header) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomHeading) === null || _f === void 0 ? void 0 : _f.as
607
633
  });
608
634
  }) ``;
609
635
  const AtomTextTitle = styled(Text).attrs(({ theme, moleculeVariant }) => {
610
- var _a, _b, _c;
636
+ var _a, _b, _c, _d, _e, _f;
611
637
  return ({
612
- variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomTextTitle) === null || _c === void 0 ? void 0 : _c.variant
638
+ variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomTextTitle) === null || _c === void 0 ? void 0 : _c.variant,
639
+ vColor: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.header) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomTextTitle) === null || _f === void 0 ? void 0 : _f.color
613
640
  });
614
641
  }) ``;
615
642
  const WrapperLineBottom = styled.div `
@@ -678,7 +705,7 @@ const WrapperTextTitle = styled.div `
678
705
 
679
706
  const Header = ({ moleculeVariant = "primary", iconTop, iconDot, buttonLeftIcon, buttonRightIcon, textBanner, headingTitle, textTitle, buttonLeftText, buttonLeftClick, buttonRightText, buttonRightClick, imageURLBackground, withOverlay }) => {
680
707
  const compVariant = `Header-${moleculeVariant}`;
681
- return (jsx(WrapperBackground, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant, imageURLBackground: imageURLBackground, withOverlay: withOverlay }, { children: jsxs(WrapperHeader, Object.assign({ moleculeVariant: compVariant }, { children: [jsxs("div", { children: [iconTop && (jsx(AtomIconTop, { moleculeVariant: compVariant, svg: iconTop })), textBanner && (jsxs(WrapperLineTop, Object.assign({ moleculeVariant: compVariant }, { children: [iconDot && (jsx(AtomIconDot, { moleculeVariant: compVariant, svg: iconDot })), jsx(AtomTextTitle, Object.assign({ moleculeVariant: compVariant }, { children: textBanner }))] })))] }), headingTitle && (jsx(AtomHeading$3, Object.assign({ moleculeVariant: compVariant }, { children: headingTitle }))), jsx(WrapperTextTitle, Object.assign({ moleculeVariant: compVariant }, { children: textTitle &&
708
+ return (jsx(WrapperBackground, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant, imageURLBackground: imageURLBackground, withOverlay: withOverlay }, { children: jsxs(WrapperHeader, Object.assign({ moleculeVariant: compVariant }, { children: [jsxs("div", { children: [iconTop && (jsx(AtomIconTop, { moleculeVariant: compVariant, svg: iconTop })), textBanner && (jsxs(WrapperLineTop, Object.assign({ moleculeVariant: compVariant }, { children: [iconDot && (jsx(AtomIconDot, { moleculeVariant: compVariant, svg: iconDot })), jsx(AtomTextBanner, Object.assign({ moleculeVariant: compVariant }, { children: textBanner }))] })))] }), headingTitle && (jsx(AtomHeading$3, Object.assign({ moleculeVariant: compVariant }, { children: headingTitle }))), jsx(WrapperTextTitle, Object.assign({ moleculeVariant: compVariant }, { children: textTitle &&
682
709
  (textTitle === null || textTitle === void 0 ? void 0 : textTitle.map((text, i) => (jsx(AtomTextTitle, Object.assign({ moleculeVariant: compVariant }, { children: text }), i)))) })), jsxs(WrapperLineBottom, { children: [(buttonLeftIcon || buttonLeftText) && (jsxs(AtomButtonLeft, Object.assign({ moleculeVariant: compVariant, onClick: buttonLeftClick }, { children: [buttonLeftIcon && (jsx(AtomIconLeft, { moleculeVariant: compVariant, svg: buttonLeftIcon })), buttonLeftText] }))), (buttonRightIcon || buttonRightText) && (jsxs(AtomButtonRight, Object.assign({ moleculeVariant: compVariant, onClick: buttonRightClick }, { children: [buttonRightText, buttonRightIcon && (jsx(AtomIconRight, { moleculeVariant: compVariant, svg: buttonRightIcon }))] })))] })] })) })));
683
710
  };
684
711
 
@@ -1208,7 +1235,6 @@ const TextBreakerTape = styled(Text).attrs(({ theme, moleculeVariant }) => {
1208
1235
  const textTheme = ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.breakerTape) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.text) || {};
1209
1236
  return css `
1210
1237
  color: ${textTheme === null || textTheme === void 0 ? void 0 : textTheme.color};
1211
- font-size: ${textTheme === null || textTheme === void 0 ? void 0 : textTheme.fontSize};
1212
1238
  `;
1213
1239
  }}
1214
1240
  `;