@cerebruminc/cerebellum 16.5.2-beta.dangerous.c8468cd → 16.5.2-beta.dangerous.d4bfaa4
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/lib/cjs/Footer.cjs
CHANGED
|
@@ -113,7 +113,7 @@ var Footer = function (_a) {
|
|
|
113
113
|
var oneTerm = (privacyUrl && !termsUrl) || (!privacyUrl && termsUrl);
|
|
114
114
|
// Center everything except the logo. ie, the links are uneven, and we want the line in the center
|
|
115
115
|
var centerLinks = Boolean(oneTerm && !socialSkills);
|
|
116
|
-
return (jsxRuntime.jsxs(FooterBase, { "$themeOverride": themeOverride, "$stackSocialOnMobile": stackSocialOnMobile, "$centerLinks": centerLinks, children: [jsxRuntime.jsx(LogoBox, { "$stackSocialOnMobile": stackSocialOnMobile, "$centerLinks": centerLinks, children: jsxRuntime.jsx(LogoLink, { href: logoUrl, children: jsxRuntime.jsx(Logo, {}) }) }), jsxRuntime.jsxs(DetailsBox, { "$oneTerm": Boolean(oneTerm), "$centerLinks": centerLinks, children: [jsxRuntime.jsxs(TermsBox, { "$themeOverride": themeOverride, "$centerLinks": centerLinks, children: [privacyUrl && jsxRuntime.jsx(FooterLink, { href: privacyUrl, children: "Privacy Policy" }), privacyUrl && termsUrl && jsxRuntime.jsx(MobileLine, {}), termsUrl && jsxRuntime.jsx(FooterLink, { href: termsUrl, children: "Terms & Conditions" })] }), jsxRuntime.jsx(Line, { "$themeOverride": themeOverride }), jsxRuntime.jsx(Copyright, { "$themeOverride": themeOverride, children: "".concat(companyName, " \u00A9 ").concat(new Date().getFullYear(), " All rights reserved.") })] }), socialSkills && (jsxRuntime.jsx(SocialLinks, { "$stackSocialOnMobile": stackSocialOnMobile, children: jsxRuntime.jsxs(SocialGrid, { children: [twitterUrl && (jsxRuntime.jsx(Link, { href: twitterUrl, target: "_blank", tabIndex: -1, children: jsxRuntime.jsx(IconButton.IconButton, { Icon: Twitter.Twitter, size: 40, colorFamily: socialColorFamily, ariaLabel: "Twitter link" }) })), linkedInUrl && (jsxRuntime.jsx(Link, { href: linkedInUrl, target: "_blank", tabIndex: -1, children: jsxRuntime.jsx(IconButton.IconButton, { Icon: LinkedIn.LinkedIn, size: 40, colorFamily: socialColorFamily, ariaLabel: "LinkedIn link" }) })), gitHubUrl && (jsxRuntime.jsx(Link, { href: gitHubUrl, target: "_blank", tabIndex: -1, children: jsxRuntime.jsx(IconButton.IconButton, { Icon: GitHub.GitHub, size: 40, colorFamily: socialColorFamily, ariaLabel: "GitHub link" }) }))] }) }))] }));
|
|
116
|
+
return (jsxRuntime.jsxs(FooterBase, { "$themeOverride": themeOverride, "$stackSocialOnMobile": stackSocialOnMobile, "$centerLinks": centerLinks, children: [jsxRuntime.jsx(LogoBox, { "$stackSocialOnMobile": stackSocialOnMobile, "$centerLinks": centerLinks, children: Logo && (jsxRuntime.jsx(LogoLink, { href: logoUrl, children: jsxRuntime.jsx(Logo, {}) })) }), jsxRuntime.jsxs(DetailsBox, { "$oneTerm": Boolean(oneTerm), "$centerLinks": centerLinks, children: [jsxRuntime.jsxs(TermsBox, { "$themeOverride": themeOverride, "$centerLinks": centerLinks, children: [privacyUrl && jsxRuntime.jsx(FooterLink, { href: privacyUrl, children: "Privacy Policy" }), privacyUrl && termsUrl && jsxRuntime.jsx(MobileLine, {}), termsUrl && jsxRuntime.jsx(FooterLink, { href: termsUrl, children: "Terms & Conditions" })] }), jsxRuntime.jsx(Line, { "$themeOverride": themeOverride }), jsxRuntime.jsx(Copyright, { "$themeOverride": themeOverride, children: "".concat(companyName, " \u00A9 ").concat(new Date().getFullYear(), " All rights reserved.") })] }), socialSkills && (jsxRuntime.jsx(SocialLinks, { "$stackSocialOnMobile": stackSocialOnMobile, children: jsxRuntime.jsxs(SocialGrid, { children: [twitterUrl && (jsxRuntime.jsx(Link, { href: twitterUrl, target: "_blank", tabIndex: -1, children: jsxRuntime.jsx(IconButton.IconButton, { Icon: Twitter.Twitter, size: 40, colorFamily: socialColorFamily, ariaLabel: "Twitter link" }) })), linkedInUrl && (jsxRuntime.jsx(Link, { href: linkedInUrl, target: "_blank", tabIndex: -1, children: jsxRuntime.jsx(IconButton.IconButton, { Icon: LinkedIn.LinkedIn, size: 40, colorFamily: socialColorFamily, ariaLabel: "LinkedIn link" }) })), gitHubUrl && (jsxRuntime.jsx(Link, { href: gitHubUrl, target: "_blank", tabIndex: -1, children: jsxRuntime.jsx(IconButton.IconButton, { Icon: GitHub.GitHub, size: 40, colorFamily: socialColorFamily, ariaLabel: "GitHub link" }) }))] }) }))] }));
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
exports.Footer = Footer;
|
package/lib/esm/Footer.js
CHANGED
|
@@ -111,7 +111,7 @@ var Footer = function (_a) {
|
|
|
111
111
|
var oneTerm = (privacyUrl && !termsUrl) || (!privacyUrl && termsUrl);
|
|
112
112
|
// Center everything except the logo. ie, the links are uneven, and we want the line in the center
|
|
113
113
|
var centerLinks = Boolean(oneTerm && !socialSkills);
|
|
114
|
-
return (jsxs(FooterBase, { "$themeOverride": themeOverride, "$stackSocialOnMobile": stackSocialOnMobile, "$centerLinks": centerLinks, children: [jsx(LogoBox, { "$stackSocialOnMobile": stackSocialOnMobile, "$centerLinks": centerLinks, children: jsx(LogoLink, { href: logoUrl, children: jsx(Logo, {}) }) }), jsxs(DetailsBox, { "$oneTerm": Boolean(oneTerm), "$centerLinks": centerLinks, children: [jsxs(TermsBox, { "$themeOverride": themeOverride, "$centerLinks": centerLinks, children: [privacyUrl && jsx(FooterLink, { href: privacyUrl, children: "Privacy Policy" }), privacyUrl && termsUrl && jsx(MobileLine, {}), termsUrl && jsx(FooterLink, { href: termsUrl, children: "Terms & Conditions" })] }), jsx(Line, { "$themeOverride": themeOverride }), jsx(Copyright, { "$themeOverride": themeOverride, children: "".concat(companyName, " \u00A9 ").concat(new Date().getFullYear(), " All rights reserved.") })] }), socialSkills && (jsx(SocialLinks, { "$stackSocialOnMobile": stackSocialOnMobile, children: jsxs(SocialGrid, { children: [twitterUrl && (jsx(Link, { href: twitterUrl, target: "_blank", tabIndex: -1, children: jsx(IconButton, { Icon: Twitter, size: 40, colorFamily: socialColorFamily, ariaLabel: "Twitter link" }) })), linkedInUrl && (jsx(Link, { href: linkedInUrl, target: "_blank", tabIndex: -1, children: jsx(IconButton, { Icon: LinkedIn, size: 40, colorFamily: socialColorFamily, ariaLabel: "LinkedIn link" }) })), gitHubUrl && (jsx(Link, { href: gitHubUrl, target: "_blank", tabIndex: -1, children: jsx(IconButton, { Icon: GitHub, size: 40, colorFamily: socialColorFamily, ariaLabel: "GitHub link" }) }))] }) }))] }));
|
|
114
|
+
return (jsxs(FooterBase, { "$themeOverride": themeOverride, "$stackSocialOnMobile": stackSocialOnMobile, "$centerLinks": centerLinks, children: [jsx(LogoBox, { "$stackSocialOnMobile": stackSocialOnMobile, "$centerLinks": centerLinks, children: Logo && (jsx(LogoLink, { href: logoUrl, children: jsx(Logo, {}) })) }), jsxs(DetailsBox, { "$oneTerm": Boolean(oneTerm), "$centerLinks": centerLinks, children: [jsxs(TermsBox, { "$themeOverride": themeOverride, "$centerLinks": centerLinks, children: [privacyUrl && jsx(FooterLink, { href: privacyUrl, children: "Privacy Policy" }), privacyUrl && termsUrl && jsx(MobileLine, {}), termsUrl && jsx(FooterLink, { href: termsUrl, children: "Terms & Conditions" })] }), jsx(Line, { "$themeOverride": themeOverride }), jsx(Copyright, { "$themeOverride": themeOverride, children: "".concat(companyName, " \u00A9 ").concat(new Date().getFullYear(), " All rights reserved.") })] }), socialSkills && (jsx(SocialLinks, { "$stackSocialOnMobile": stackSocialOnMobile, children: jsxs(SocialGrid, { children: [twitterUrl && (jsx(Link, { href: twitterUrl, target: "_blank", tabIndex: -1, children: jsx(IconButton, { Icon: Twitter, size: 40, colorFamily: socialColorFamily, ariaLabel: "Twitter link" }) })), linkedInUrl && (jsx(Link, { href: linkedInUrl, target: "_blank", tabIndex: -1, children: jsx(IconButton, { Icon: LinkedIn, size: 40, colorFamily: socialColorFamily, ariaLabel: "LinkedIn link" }) })), gitHubUrl && (jsx(Link, { href: gitHubUrl, target: "_blank", tabIndex: -1, children: jsx(IconButton, { Icon: GitHub, size: 40, colorFamily: socialColorFamily, ariaLabel: "GitHub link" }) }))] }) }))] }));
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
export { Footer };
|
|
@@ -8,7 +8,7 @@ export interface FooterProps {
|
|
|
8
8
|
/** A URL to LinkedIn. */
|
|
9
9
|
linkedInUrl?: string;
|
|
10
10
|
/** A React component that contains an SVG logo. */
|
|
11
|
-
Logo
|
|
11
|
+
Logo?: FC;
|
|
12
12
|
/** A URL for the logo */
|
|
13
13
|
logoUrl?: string;
|
|
14
14
|
/** A URL to the Privacy Policy. A relative path works, if you have that installed locally. */
|