@manamerge/mana-atomic-ui 1.0.196 → 1.0.198
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 +51 -20
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/manamerge/atoms/button.ts +2 -2
- package/dist/themes/themes/manamerge/miscellaneous/colorpalette.ts +2 -1
- package/dist/themes/themes/manamerge/molecules/accordion.ts +6 -1
- package/dist/themes/themes/manamerge/molecules/footer.ts +2 -7
- package/dist/themes/themes/manamerge/molecules/navigation.ts +1 -6
- package/dist/types/components/Molecules/CardTeaser/CardTeaser.css.d.ts +2 -2
- package/dist/types/components/Molecules/Navigation/Navigation.css.d.ts +3 -0
- package/dist/types/themes/DavidWebTheme.d.ts +5 -0
- package/dist/types/themes/ManamergeTheme.d.ts +6 -0
- package/dist/types/themes/manamerge/miscellaneous/colorpalette.d.ts +1 -0
- package/dist/types/themes/manamerge/molecules/accordion.d.ts +5 -0
- package/package.json +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/index.js
CHANGED
|
@@ -718,7 +718,7 @@ const NavBar = styled.nav `
|
|
|
718
718
|
width: auto;
|
|
719
719
|
right: 0;
|
|
720
720
|
left: 0;
|
|
721
|
-
z-index:
|
|
721
|
+
z-index: 20;
|
|
722
722
|
|
|
723
723
|
${({ theme, moleculeVariant }) => {
|
|
724
724
|
var _a;
|
|
@@ -772,15 +772,30 @@ const NavLinks = styled.div `
|
|
|
772
772
|
flex-direction: column;
|
|
773
773
|
text-align: right;
|
|
774
774
|
align-items: flex-end;
|
|
775
|
-
display:
|
|
775
|
+
display: flex;
|
|
776
|
+
|
|
776
777
|
width: 100%;
|
|
777
778
|
|
|
779
|
+
overflow: hidden;
|
|
780
|
+
transition:
|
|
781
|
+
max-height 0.55s ease,
|
|
782
|
+
opacity 0.55s ease,
|
|
783
|
+
transform 0.55s ease;
|
|
784
|
+
|
|
785
|
+
max-height: ${({ isOpen }) => (isOpen ? "400px" : "0px")};
|
|
786
|
+
opacity: ${({ isOpen }) => (isOpen ? 1 : 0)};
|
|
787
|
+
transform: ${({ isOpen }) => isOpen ? "translateY(0)" : "translateY(-10px)"};
|
|
788
|
+
|
|
778
789
|
${({ theme, moleculeVariant }) => {
|
|
779
790
|
var _a, _b, _c, _d;
|
|
780
791
|
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) || {};
|
|
781
792
|
const { largeMobileUp } = theme.media;
|
|
782
793
|
return css `
|
|
783
794
|
${largeMobileUp} {
|
|
795
|
+
max-height: none;
|
|
796
|
+
opacity: 1;
|
|
797
|
+
transform: none;
|
|
798
|
+
|
|
784
799
|
margin: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.margin};
|
|
785
800
|
display: flex;
|
|
786
801
|
flex-direction: row;
|
|
@@ -844,6 +859,17 @@ const StyledLink$1 = styled(Link).attrs(({ theme, moleculeVariant }) => {
|
|
|
844
859
|
`;
|
|
845
860
|
}};
|
|
846
861
|
`;
|
|
862
|
+
const Backdrop = styled.div `
|
|
863
|
+
position: fixed;
|
|
864
|
+
inset: 0;
|
|
865
|
+
background: rgba(0, 0, 0, 0.3);
|
|
866
|
+
|
|
867
|
+
opacity: ${({ isOpen }) => (isOpen ? 1 : 0)};
|
|
868
|
+
pointer-events: ${({ isOpen }) => (isOpen ? "auto" : "none")};
|
|
869
|
+
|
|
870
|
+
transition: opacity 0.25s ease;
|
|
871
|
+
z-index: 10;
|
|
872
|
+
`;
|
|
847
873
|
|
|
848
874
|
const Navigation = ({ moleculeVariant = "primary", logo, onLogoClick, iconBurger, tabs }) => {
|
|
849
875
|
const location = useLocation();
|
|
@@ -853,9 +879,9 @@ const Navigation = ({ moleculeVariant = "primary", logo, onLogoClick, iconBurger
|
|
|
853
879
|
setIsOpen(!isOpen);
|
|
854
880
|
};
|
|
855
881
|
const compVariant = `Navigation-${moleculeVariant}`;
|
|
856
|
-
return (jsxs(NavBar, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant }, { children: [logo && (jsx(AtomIcon$3, { moleculeVariant: compVariant, svg: logo, onClick: onLogoClick, onKeyDown: onLogoClick, "aria-label": "Logo", tabIndex: 0, role: "button" })), jsxs("div", Object.assign({ style: { width: "100%" } }, { children: [jsx(BurgerWrapper, { children: jsx(AtomIcon$3, { moleculeVariant: compVariant, svg: iconBurger, onClick: handleToggle, onKeyDown: handleToggle, "aria-pressed": isOpen, "aria-label": "Burger", tabIndex: 0, role: "button" }) }), jsx(NavLinks, Object.assign({ isOpen: isOpen, moleculeVariant: compVariant }, { children: tabs.length > 0
|
|
857
|
-
|
|
858
|
-
|
|
882
|
+
return (jsxs(Fragment, { children: [jsx(Backdrop, { isOpen: isOpen, onClick: () => setIsOpen(false) }), jsxs(NavBar, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant }, { children: [logo && (jsx(AtomIcon$3, { moleculeVariant: compVariant, svg: logo, onClick: onLogoClick, onKeyDown: onLogoClick, "aria-label": "Logo", tabIndex: 0, role: "button" })), jsxs("div", Object.assign({ style: { width: "100%" } }, { children: [jsx(BurgerWrapper, { children: jsx(AtomIcon$3, { moleculeVariant: compVariant, svg: iconBurger, onClick: handleToggle, onKeyDown: handleToggle, "aria-pressed": isOpen, "aria-label": "Burger", tabIndex: 0, role: "button" }) }), jsx(NavLinks, Object.assign({ isOpen: isOpen, moleculeVariant: compVariant }, { children: tabs.length > 0
|
|
883
|
+
? tabs.map((tab) => (jsx(StyledLink$1, Object.assign({ moleculeVariant: compVariant, to: tab.to, currentPath: tab.to === currentPath, onClick: () => setIsOpen(false) }, { children: tab.label }), tab.label)))
|
|
884
|
+
: "no tabs available" }))] }))] }))] }));
|
|
859
885
|
};
|
|
860
886
|
|
|
861
887
|
// Wrapper for the footer
|
|
@@ -1176,7 +1202,7 @@ const CardBackgroundColor = styled.div `
|
|
|
1176
1202
|
const { largeMobileUp } = theme.media;
|
|
1177
1203
|
return css `
|
|
1178
1204
|
position: relative;
|
|
1179
|
-
width: 500px;
|
|
1205
|
+
max-width: 500px;
|
|
1180
1206
|
border-radius: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius};
|
|
1181
1207
|
max-width: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.maxWidth};
|
|
1182
1208
|
background: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gradientBackground};
|
|
@@ -1192,18 +1218,19 @@ const GradientStyle = styled(Gradient).attrs(({ theme, moleculeVariant }) => {
|
|
|
1192
1218
|
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.gradient) === null || _c === void 0 ? void 0 : _c.variant
|
|
1193
1219
|
});
|
|
1194
1220
|
}) ``;
|
|
1195
|
-
const BackgroundSvg = styled(Icon)
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1221
|
+
const BackgroundSvg = styled(Icon) `
|
|
1222
|
+
${({ theme, moleculeVariant }) => {
|
|
1223
|
+
var _a;
|
|
1224
|
+
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.cardTeaser) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
1225
|
+
return css `
|
|
1226
|
+
position: absolute;
|
|
1227
|
+
inset: 0;
|
|
1228
|
+
z-index: 0;
|
|
1229
|
+
width: 100%;
|
|
1230
|
+
height: 100%;
|
|
1231
|
+
border-radius: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius};
|
|
1232
|
+
`;
|
|
1233
|
+
}}
|
|
1207
1234
|
`;
|
|
1208
1235
|
|
|
1209
1236
|
const CardTeaser = ({ moleculeVariant = "primary", company, year, title, checks, onClick, buttonName, svg, backgroundSvg, cardImageSrc, separator }) => {
|
|
@@ -1484,6 +1511,7 @@ const AccordionTitle = styled.button `
|
|
|
1484
1511
|
const thisTheme = ((_a = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) || {};
|
|
1485
1512
|
return css `
|
|
1486
1513
|
all: unset;
|
|
1514
|
+
user-select: text;
|
|
1487
1515
|
width: 100%;
|
|
1488
1516
|
display: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.display) || "flex"};
|
|
1489
1517
|
align-items: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.alignItems) || "center"};
|
|
@@ -1532,13 +1560,16 @@ const AtomHeading = styled(Heading).attrs(({ theme, moleculeVariant }) => {
|
|
|
1532
1560
|
});
|
|
1533
1561
|
}) ``;
|
|
1534
1562
|
const AtomIcon = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
1535
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1563
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
1536
1564
|
return ({
|
|
1537
1565
|
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomIcon) === null || _c === void 0 ? void 0 : _c.variant,
|
|
1538
1566
|
size: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomIcon) === null || _f === void 0 ? void 0 : _f.size,
|
|
1539
1567
|
color: (_j = (_h = (_g = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _g === void 0 ? void 0 : _g[moleculeVariant]) === null || _h === void 0 ? void 0 : _h.atomIcon) === null || _j === void 0 ? void 0 : _j.color,
|
|
1540
1568
|
fill: (_m = (_l = (_k = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _k === void 0 ? void 0 : _k[moleculeVariant]) === null || _l === void 0 ? void 0 : _l.atomIcon) === null || _m === void 0 ? void 0 : _m.fill,
|
|
1541
|
-
stroke: (_q = (_p = (_o = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _o === void 0 ? void 0 : _o[moleculeVariant]) === null || _p === void 0 ? void 0 : _p.atomIcon) === null || _q === void 0 ? void 0 : _q.stroke
|
|
1569
|
+
stroke: (_q = (_p = (_o = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _o === void 0 ? void 0 : _o[moleculeVariant]) === null || _p === void 0 ? void 0 : _p.atomIcon) === null || _q === void 0 ? void 0 : _q.stroke,
|
|
1570
|
+
hoverColor: (_u = (_t = (_s = (_r = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _r === void 0 ? void 0 : _r[moleculeVariant]) === null || _s === void 0 ? void 0 : _s.atomIcon) === null || _t === void 0 ? void 0 : _t.hover) === null || _u === void 0 ? void 0 : _u.color,
|
|
1571
|
+
hoverFill: (_y = (_x = (_w = (_v = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _v === void 0 ? void 0 : _v[moleculeVariant]) === null || _w === void 0 ? void 0 : _w.atomIcon) === null || _x === void 0 ? void 0 : _x.hover) === null || _y === void 0 ? void 0 : _y.fill,
|
|
1572
|
+
hoverStroke: (_2 = (_1 = (_0 = (_z = theme === null || theme === void 0 ? void 0 : theme.accordion) === null || _z === void 0 ? void 0 : _z[moleculeVariant]) === null || _0 === void 0 ? void 0 : _0.atomIcon) === null || _1 === void 0 ? void 0 : _1.hover) === null || _2 === void 0 ? void 0 : _2.stroke
|
|
1542
1573
|
});
|
|
1543
1574
|
}) `
|
|
1544
1575
|
min-width: fit-content;
|