@manamerge/mana-atomic-ui 1.0.253 → 1.0.255
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 +4 -4
- package/dist/index.js +5 -10
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/manamerge/molecules/accordion.ts +1 -1
- package/dist/themes/themes/manamerge/molecules/header.ts +1 -9
- package/dist/themes/themes/manamerge/molecules/navigation.ts +2 -2
- package/dist/types/components/Atoms/Gradient/Gradient.css.d.ts +1 -1
- package/dist/types/components/Atoms/Text/Text.d.ts +3 -3
- package/dist/types/components/Molecules/Header/Header.d.ts +2 -2
- package/dist/types/themes/ManamergeTheme.d.ts +0 -8
- package/dist/types/themes/manamerge/molecules/header.d.ts +0 -8
- 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.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ interface ButtonTypes {
|
|
|
12
12
|
}
|
|
13
13
|
declare const Button: React.FC<ButtonTypes>;
|
|
14
14
|
|
|
15
|
-
interface TextTypes
|
|
15
|
+
interface TextTypes {
|
|
16
16
|
variant?: "primary-light" | "primary-regular" | "primary-medium" | "primary-bold" | "primary-heavy" | "secondary-regular" | "secondary-italic";
|
|
17
|
-
children?:
|
|
17
|
+
children?: string;
|
|
18
18
|
htmlFor?: string;
|
|
19
19
|
margin?: string;
|
|
20
20
|
lineHeight?: string;
|
|
@@ -111,8 +111,8 @@ interface HeaderTypes {
|
|
|
111
111
|
buttonLeftIcon?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
112
112
|
buttonRightIcon?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
113
113
|
textBanner?: string;
|
|
114
|
-
headingTitle?:
|
|
115
|
-
textTitle?:
|
|
114
|
+
headingTitle?: string;
|
|
115
|
+
textTitle?: string[];
|
|
116
116
|
buttonLeftText?: string;
|
|
117
117
|
buttonLeftClick?: React.MouseEventHandler<HTMLElement>;
|
|
118
118
|
buttonRightText?: string;
|
package/dist/index.js
CHANGED
|
@@ -325,7 +325,7 @@ const Link = (_a) => {
|
|
|
325
325
|
return (jsx(StyledLink$2, Object.assign({ className: classNames("Link-" + variant), variant: "Link-" + variant, "aria-label": alt || "", as: Component }, componentProps, props, { children: children })));
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
-
const GradientContainer = styled.
|
|
328
|
+
const GradientContainer = styled.div `
|
|
329
329
|
${({ theme, variant }) => {
|
|
330
330
|
var _a;
|
|
331
331
|
const gradientStyles = ((_a = theme === null || theme === void 0 ? void 0 : theme.gradient) === null || _a === void 0 ? void 0 : _a[variant]) || {};
|
|
@@ -690,15 +690,9 @@ const AtomIconLeft = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
|
690
690
|
});
|
|
691
691
|
}) ``;
|
|
692
692
|
const AtomIconRight = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
693
|
-
var _a, _b, _c
|
|
693
|
+
var _a, _b, _c;
|
|
694
694
|
return ({
|
|
695
|
-
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.atomIconRight) === null || _c === void 0 ? void 0 : _c.variant
|
|
696
|
-
stroke: (_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.atomIconRight) === null || _f === void 0 ? void 0 : _f.stroke,
|
|
697
|
-
fill: (_j = (_h = (_g = theme === null || theme === void 0 ? void 0 : theme.header) === null || _g === void 0 ? void 0 : _g[moleculeVariant]) === null || _h === void 0 ? void 0 : _h.atomIconRight) === null || _j === void 0 ? void 0 : _j.fill,
|
|
698
|
-
color: (_m = (_l = (_k = theme === null || theme === void 0 ? void 0 : theme.header) === null || _k === void 0 ? void 0 : _k[moleculeVariant]) === null || _l === void 0 ? void 0 : _l.atomIconRight) === null || _m === void 0 ? void 0 : _m.color,
|
|
699
|
-
hoverFill: (_r = (_q = (_p = (_o = theme === null || theme === void 0 ? void 0 : theme.header) === null || _o === void 0 ? void 0 : _o[moleculeVariant]) === null || _p === void 0 ? void 0 : _p.atomIconRight) === null || _q === void 0 ? void 0 : _q.hover) === null || _r === void 0 ? void 0 : _r.fill,
|
|
700
|
-
hoverStroke: (_v = (_u = (_t = (_s = theme === null || theme === void 0 ? void 0 : theme.header) === null || _s === void 0 ? void 0 : _s[moleculeVariant]) === null || _t === void 0 ? void 0 : _t.atomIconRight) === null || _u === void 0 ? void 0 : _u.hover) === null || _v === void 0 ? void 0 : _v.stroke,
|
|
701
|
-
hoverColor: (_z = (_y = (_x = (_w = theme === null || theme === void 0 ? void 0 : theme.header) === null || _w === void 0 ? void 0 : _w[moleculeVariant]) === null || _x === void 0 ? void 0 : _x.atomIconRight) === null || _y === void 0 ? void 0 : _y.hover) === null || _z === void 0 ? void 0 : _z.color
|
|
695
|
+
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.atomIconRight) === null || _c === void 0 ? void 0 : _c.variant
|
|
702
696
|
});
|
|
703
697
|
}) ``;
|
|
704
698
|
const WrapperTextTitle = styled.div `
|
|
@@ -717,7 +711,8 @@ const WrapperTextTitle = styled.div `
|
|
|
717
711
|
const Header = (_a) => {
|
|
718
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"]);
|
|
719
713
|
const compVariant = `Header-${moleculeVariant}`;
|
|
720
|
-
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 &&
|
|
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 }))] })))] })] })) })));
|
|
721
716
|
};
|
|
722
717
|
|
|
723
718
|
const NavBar = styled.nav `
|