@manamerge/mana-atomic-ui 1.0.242 → 1.0.244
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 +31 -14
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Bold.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Heavy.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Light.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Medium.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Gilmer-Regular.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Springwood/SpringwoodBrush-Italic.woff2 +0 -0
- package/dist/themes/themes/davidWeb/fonts/Springwood/SpringwoodBrush-Regular.woff2 +0 -0
- package/dist/themes/themes/manamerge/atoms/link.ts +0 -28
- package/dist/types/components/Molecules/Header/Header.css.d.ts +1 -1
- package/dist/types/themes/ManamergeTheme.d.ts +0 -28
- package/dist/types/themes/manamerge/atoms/link.d.ts +0 -28
- package/package.json +1 -1
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;
|
|
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,10 +293,7 @@ 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
|
-
|
|
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
|
-
}
|
|
296
|
+
|
|
300
297
|
&:disabled {
|
|
301
298
|
pointer-events: none;
|
|
302
299
|
color: gray;
|
|
@@ -505,19 +502,35 @@ const CDNImage = ({ src, alt = "", fetchPriority = "auto", decoding = "async", b
|
|
|
505
502
|
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 })] })));
|
|
506
503
|
};
|
|
507
504
|
|
|
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
|
+
`;
|
|
508
523
|
const WrapperBackground = styled.div `
|
|
509
524
|
display: flex;
|
|
510
525
|
position: relative;
|
|
511
526
|
align-items: center;
|
|
512
527
|
width: 100%;
|
|
513
|
-
|
|
528
|
+
overflow: hidden;
|
|
529
|
+
background-color: #000;
|
|
530
|
+
${({ theme, moleculeVariant, withOverlay }) => {
|
|
514
531
|
var _a, _b, _c, _d, _e;
|
|
515
532
|
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
516
533
|
return css `
|
|
517
|
-
background-image: url(${imageURLBackground});
|
|
518
|
-
background-size: cover;
|
|
519
|
-
background-repeat: no-repeat;
|
|
520
|
-
background-position: center;
|
|
521
534
|
justify-content: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.justifyContent) || "center"};
|
|
522
535
|
height: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.height) || "unset"};
|
|
523
536
|
background-color: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.backgroundColor) || "unset"};
|
|
@@ -543,6 +556,7 @@ const WrapperBackground = styled.div `
|
|
|
543
556
|
opacity: 1;
|
|
544
557
|
transition: opacity 3s ease;
|
|
545
558
|
pointer-events: none;
|
|
559
|
+
z-index: 1;
|
|
546
560
|
}
|
|
547
561
|
&:hover::before {
|
|
548
562
|
opacity: 0;
|
|
@@ -552,6 +566,8 @@ const WrapperBackground = styled.div `
|
|
|
552
566
|
}};
|
|
553
567
|
`;
|
|
554
568
|
const WrapperHeader = styled.div `
|
|
569
|
+
position: relative;
|
|
570
|
+
z-index: 2;
|
|
555
571
|
display: flex;
|
|
556
572
|
flex-direction: column;
|
|
557
573
|
justify-content: center;
|
|
@@ -711,8 +727,10 @@ const WrapperTextTitle = styled.div `
|
|
|
711
727
|
const Header = (_a) => {
|
|
712
728
|
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"]);
|
|
713
729
|
const compVariant = `Header-${moleculeVariant}`;
|
|
714
|
-
return (
|
|
715
|
-
|
|
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: "sync" }), 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 }))] })))] })] }))] })));
|
|
716
734
|
};
|
|
717
735
|
|
|
718
736
|
const NavBar = styled.nav `
|
|
@@ -777,6 +795,7 @@ const NavLinks = styled.div `
|
|
|
777
795
|
text-align: right;
|
|
778
796
|
align-items: flex-end;
|
|
779
797
|
display: flex;
|
|
798
|
+
|
|
780
799
|
width: 100%;
|
|
781
800
|
|
|
782
801
|
overflow: hidden;
|
|
@@ -797,13 +816,11 @@ const NavLinks = styled.div `
|
|
|
797
816
|
const { largeMobileUp } = theme.media;
|
|
798
817
|
return css `
|
|
799
818
|
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: 10px 10px 10px 0;
|
|
801
819
|
${largeMobileUp} {
|
|
802
820
|
max-height: none;
|
|
803
821
|
opacity: 1;
|
|
804
822
|
transform: none;
|
|
805
823
|
margin: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.margin};
|
|
806
|
-
padding: 10px;
|
|
807
824
|
display: flex;
|
|
808
825
|
flex-direction: row;
|
|
809
826
|
gap: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gap};
|