@carforyou/header-footer
Advanced tools
Comparing version
@@ -14,2 +14,23 @@ 'use strict'; | ||
(function (HeaderTheme) { | ||
HeaderTheme["LIGHT"] = "light"; | ||
HeaderTheme["DARK"] = "dark"; | ||
HeaderTheme["TRANSPARENT"] = "transparent"; | ||
})(exports.HeaderTheme || (exports.HeaderTheme = {})); | ||
const getThemeCombinations = theme => ({ | ||
isLight: theme === exports.HeaderTheme.LIGHT, | ||
isDark: theme === exports.HeaderTheme.DARK, | ||
isTransparent: theme === exports.HeaderTheme.TRANSPARENT | ||
}); | ||
const HeaderThemeContext = React.createContext(getThemeCombinations(exports.HeaderTheme.LIGHT)); | ||
const HeaderThemeProvider = ({ | ||
children, | ||
theme | ||
}) => { | ||
return React__default.createElement(HeaderThemeContext.Provider, { | ||
value: getThemeCombinations(theme) | ||
}, children); | ||
}; | ||
var de = { | ||
@@ -467,25 +488,2 @@ "language": { | ||
var HeaderTheme; | ||
(function (HeaderTheme) { | ||
HeaderTheme["LIGHT"] = "light"; | ||
HeaderTheme["DARK"] = "dark"; | ||
HeaderTheme["TRANSPARENT"] = "transparent"; | ||
})(HeaderTheme || (HeaderTheme = {})); | ||
const getThemeCombinations = theme => ({ | ||
isLight: theme === HeaderTheme.LIGHT, | ||
isDark: theme === HeaderTheme.DARK, | ||
isTransparent: theme === HeaderTheme.TRANSPARENT | ||
}); | ||
const HeaderThemeContext = React.createContext(getThemeCombinations(HeaderTheme.LIGHT)); | ||
const HeaderThemeProvider = ({ | ||
children, | ||
theme | ||
}) => { | ||
return React__default.createElement(HeaderThemeContext.Provider, { | ||
value: getThemeCombinations(theme) | ||
}, children); | ||
}; | ||
const HeaderDropdown = ({ | ||
@@ -557,3 +555,3 @@ renderParent, | ||
const Header = ({ | ||
theme = HeaderTheme.LIGHT, | ||
theme = exports.HeaderTheme.LIGHT, | ||
logoUrl = "/", | ||
@@ -576,5 +574,5 @@ links = [], | ||
const themeLog = { | ||
[HeaderTheme.LIGHT]: React__default.createElement(LogoRedBlack, null), | ||
[HeaderTheme.DARK]: React__default.createElement(LogoRedWhite, null), | ||
[HeaderTheme.TRANSPARENT]: React__default.createElement(LogoWhite, null) | ||
[exports.HeaderTheme.LIGHT]: React__default.createElement(LogoRedBlack, null), | ||
[exports.HeaderTheme.DARK]: React__default.createElement(LogoRedWhite, null), | ||
[exports.HeaderTheme.TRANSPARENT]: React__default.createElement(LogoWhite, null) | ||
}; | ||
@@ -909,3 +907,3 @@ | ||
const Header$1 = ({ | ||
theme = HeaderTheme.LIGHT | ||
theme = exports.HeaderTheme.LIGHT | ||
}) => { | ||
@@ -1006,4 +1004,4 @@ const { | ||
className: classNames({ | ||
"text-white": theme === HeaderTheme.TRANSPARENT, | ||
"text-grey-3": theme === HeaderTheme.LIGHT | ||
"text-white": theme === exports.HeaderTheme.TRANSPARENT, | ||
"text-grey-3": theme === exports.HeaderTheme.LIGHT | ||
}), | ||
@@ -1010,0 +1008,0 @@ key: "favourites-icon" |
@@ -0,2 +1,3 @@ | ||
export { HeaderTheme } from "./components/header/base/themeContext"; | ||
export { UserHeader } from "./components/header/user/wrapped"; | ||
export { Footer } from "./components/footer/wrapped"; |
@@ -0,2 +1,4 @@ | ||
export { HeaderTheme } from "./components/header/base/themeContext"; | ||
export { Language } from "./components/appContext"; | ||
export { UserHeader } from "./components/header/user/wrapped"; | ||
export { Footer } from "./components/footer/wrapped"; |
{ | ||
"name": "@carforyou/header-footer", | ||
"description": "CAR FOR YOU Header / Footer", | ||
"version": "1.2.0-new-footer-f4c5dd904edef02f17a186bbd46ec7e69c08c22b.1", | ||
"version": "1.2.0-new-footer-ff276a20031647f84f4c46f92fa37b652783ea89.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
442981
0.08%4025
0.05%