@manamerge/mana-atomic-ui 1.0.243 → 1.0.245

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.js CHANGED
@@ -273,7 +273,7 @@ const Icon = (_a) => {
273
273
 
274
274
  const StyledLink$2 = styled.a `
275
275
  ${({ variant, theme, underline, hoverUnderline }) => {
276
- var _a, _b;
276
+ var _a, _b, _c, _d;
277
277
  const linkStyles = ((_a = theme === null || theme === void 0 ? void 0 : theme.link) === null || _a === void 0 ? void 0 : _a[variant]) || {};
278
278
  return css `
279
279
  font-size: ${linkStyles === null || linkStyles === void 0 ? void 0 : linkStyles.fontSize};
@@ -293,7 +293,10 @@ const StyledLink$2 = styled.a `
293
293
  : "underline"};
294
294
  color: ${(_b = linkStyles === null || linkStyles === void 0 ? void 0 : linkStyles.hover) === null || _b === void 0 ? void 0 : _b.color};
295
295
  }
296
-
296
+ &:focus-visible {
297
+ outline: ${(_c = linkStyles === null || linkStyles === void 0 ? void 0 : linkStyles.focusVisible) === null || _c === void 0 ? void 0 : _c.outline};
298
+ outline-offset: ${(_d = linkStyles === null || linkStyles === void 0 ? void 0 : linkStyles.focusVisible) === null || _d === void 0 ? void 0 : _d.outlineOffset};
299
+ }
297
300
  &:disabled {
298
301
  pointer-events: none;
299
302
  color: gray;
@@ -502,35 +505,19 @@ const CDNImage = ({ src, alt = "", fetchPriority = "auto", decoding = "async", b
502
505
  return (jsxs(ImageWrapper, Object.assign({ "$aspectRatio": `${width} / ${height}` }, { children: [jsx(BlurCanvas, { ref: canvasRef, width: blurCanvasResolution, height: blurCanvasResolution, "$loaded": loaded, "aria-hidden": "true" }), jsx(StyledImage, { fetchPriority: fetchPriority, decoding: decoding, src: imageUrl, alt: alt, srcSet: srcSet || srcSetValue, sizes: sizes || "(max-width: 1200px) 100vw, 1200px", loading: loading, onLoad: () => setLoaded(true), "$loaded": loaded })] })));
503
506
  };
504
507
 
505
- const BackgroundImage = styled.img `
506
- position: absolute;
507
- inset: 0;
508
-
509
- width: 100%;
510
- height: 100%;
511
-
512
- object-fit: cover;
513
- object-position: center;
514
-
515
- z-index: 0;
516
-
517
- pointer-events: none;
518
-
519
- user-select: none;
520
-
521
- -webkit-user-drag: none;
522
- `;
523
508
  const WrapperBackground = styled.div `
524
509
  display: flex;
525
510
  position: relative;
526
511
  align-items: center;
527
512
  width: 100%;
528
- overflow: hidden;
529
- background-color: #000;
530
- ${({ theme, moleculeVariant, withOverlay }) => {
513
+ ${({ theme, moleculeVariant, imageURLBackground, withOverlay }) => {
531
514
  var _a, _b, _c, _d, _e;
532
515
  const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
533
516
  return css `
517
+ background-image: url(${imageURLBackground});
518
+ background-size: cover;
519
+ background-repeat: no-repeat;
520
+ background-position: center;
534
521
  justify-content: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.justifyContent) || "center"};
535
522
  height: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.height) || "unset"};
536
523
  background-color: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.backgroundColor) || "unset"};
@@ -556,7 +543,6 @@ const WrapperBackground = styled.div `
556
543
  opacity: 1;
557
544
  transition: opacity 3s ease;
558
545
  pointer-events: none;
559
- z-index: 1;
560
546
  }
561
547
  &:hover::before {
562
548
  opacity: 0;
@@ -566,8 +552,6 @@ const WrapperBackground = styled.div `
566
552
  }};
567
553
  `;
568
554
  const WrapperHeader = styled.div `
569
- position: relative;
570
- z-index: 2;
571
555
  display: flex;
572
556
  flex-direction: column;
573
557
  justify-content: center;
@@ -727,10 +711,8 @@ const WrapperTextTitle = styled.div `
727
711
  const Header = (_a) => {
728
712
  var { moleculeVariant = "primary", iconTop, iconDot, buttonLeftIcon, buttonRightIcon, textBanner, headingTitle, textTitle, buttonLeftText, buttonLeftClick, buttonRightText, buttonRightClick, imageURLBackground, withOverlay } = _a, props = __rest(_a, ["moleculeVariant", "iconTop", "iconDot", "buttonLeftIcon", "buttonRightIcon", "textBanner", "headingTitle", "textTitle", "buttonLeftText", "buttonLeftClick", "buttonRightText", "buttonRightClick", "imageURLBackground", "withOverlay"]);
729
713
  const compVariant = `Header-${moleculeVariant}`;
730
- return (jsxs(WrapperBackground, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant,
731
- // imageURLBackground={imageURLBackground}
732
- withOverlay: withOverlay }, props, { children: [jsx(BackgroundImage, { src: imageURLBackground, alt: "", loading: "eager", fetchPriority: "high", decoding: "async" }), 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 &&
733
- (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 }))] })))] })] }))] })));
714
+ return (jsx(WrapperBackground, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant, imageURLBackground: imageURLBackground, withOverlay: withOverlay }, props, { 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 &&
715
+ (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 }))] })))] })] })) })));
734
716
  };
735
717
 
736
718
  const NavBar = styled.nav `
@@ -795,7 +777,6 @@ const NavLinks = styled.div `
795
777
  text-align: right;
796
778
  align-items: flex-end;
797
779
  display: flex;
798
-
799
780
  width: 100%;
800
781
 
801
782
  overflow: hidden;
@@ -811,16 +792,18 @@ const NavLinks = styled.div `
811
792
  margin-top: ${({ isOpen }) => (isOpen ? "20px" : 0)};
812
793
 
813
794
  ${({ theme, moleculeVariant }) => {
814
- var _a, _b, _c, _d, _e, _f, _g;
795
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
815
796
  const thisTheme = ((_d = (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.navigation) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.navLinks) === null || _c === void 0 ? void 0 : _c.responsive) === null || _d === void 0 ? void 0 : _d.largeMobileUp) || {};
816
797
  const { largeMobileUp } = theme.media;
817
798
  return css `
818
799
  gap: ${(_g = (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.navigation) === null || _e === void 0 ? void 0 : _e[moleculeVariant]) === null || _f === void 0 ? void 0 : _f.navLinks) === null || _g === void 0 ? void 0 : _g.mobileGap};
800
+ padding: ${(_k = (_j = (_h = theme === null || theme === void 0 ? void 0 : theme.navigation) === null || _h === void 0 ? void 0 : _h[moleculeVariant]) === null || _j === void 0 ? void 0 : _j.navLinks) === null || _k === void 0 ? void 0 : _k.padding};
819
801
  ${largeMobileUp} {
820
802
  max-height: none;
821
803
  opacity: 1;
822
804
  transform: none;
823
805
  margin: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.margin};
806
+ padding: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.padding};
824
807
  display: flex;
825
808
  flex-direction: row;
826
809
  gap: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gap};