wex-ui-lib 1.4.8 → 1.5.0

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.cjs.js CHANGED
@@ -2192,8 +2192,9 @@ var fadeInFromBottom = keyframes(templateObject_6$2 || (templateObject_6$2 = __m
2192
2192
  var templateObject_1$b, templateObject_2$7, templateObject_3$6, templateObject_4$5, templateObject_5$5, templateObject_6$2;
2193
2193
 
2194
2194
  function Navbar(props) {
2195
+ var _a;
2195
2196
  var logo = props.logo, items = props.items, button = props.button, config = props.config;
2196
- var _a = React.useState(false), sideNavOpen = _a[0], setSideNavOpen = _a[1];
2197
+ var _b = React.useState(false), sideNavOpen = _b[0], setSideNavOpen = _b[1];
2197
2198
  var isMobile = typeof window !== 'undefined' && window.innerWidth <= 800;
2198
2199
  var sideNavItems = props.mobileItems || [];
2199
2200
  return (React.createElement(React.Fragment, null,
@@ -2217,7 +2218,7 @@ function Navbar(props) {
2217
2218
  } }, subitem.label)));
2218
2219
  })))));
2219
2220
  })),
2220
- button && (React.createElement(Button, { colors: button.colors, type: button.type, font: button.font, onClick: button.onClick, arrow: button.arrow }, button.label)))) : (React.createElement(Icon, { icon: 'hamburgerMenu', color: 'white', callback: function () { return setSideNavOpen(true); } }))),
2221
+ button && (React.createElement(Button, { colors: button.colors, type: button.type, font: button.font, onClick: button.onClick, arrow: button.arrow }, button.label)))) : (React.createElement(Icon, { icon: 'hamburgerMenu', color: ((_a = config === null || config === undefined ? undefined : config.colors) === null || _a === undefined ? undefined : _a.text) || "white", callback: function () { return setSideNavOpen(true); } }))),
2221
2222
  isMobile && (React.createElement(SideNav, { open: sideNavOpen },
2222
2223
  React.createElement(SideNavOverlay, { open: sideNavOpen, onClick: function () { return setSideNavOpen(false); } }),
2223
2224
  React.createElement(SideNavContent, { open: sideNavOpen },
@@ -2260,7 +2261,7 @@ function Hero(props) {
2260
2261
  overlay && (React.createElement(Overlay, { color: overlay.color, opacity: overlay.opacity })),
2261
2262
  React.createElement(HeroContent, null, children)));
2262
2263
  }
2263
- var Container$5 = newStyled.div(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n width: 100vw;\n height: ", ";\n margin-top: ", ";\n background-image: url(", ");\n background-color: ", ";\n background-position-y: 69%;\n background-size: cover;\n transition: background-image 1s ease-in-out;\n"], ["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n width: 100vw;\n height: ", ";\n margin-top: ", ";\n background-image: url(", ");\n background-color: ", ";\n background-position-y: 69%;\n background-size: cover;\n transition: background-image 1s ease-in-out;\n"])), function (props) { return props.height ? "calc(".concat(props.height, " - ").concat(props.marginTop || '0px', ")") : '100vh'; }, function (props) { return props.marginTop; }, function (props) { return props.backgroundUrl; }, function (props) { return props.backgroundColor || 'none'; });
2264
+ var Container$5 = newStyled.div(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n width: 100vw;\n height: ", ";\n margin-top: ", ";\n background-image: url(", ");\n background-color: ", ";\n background-position-y: 69%;\n background-size: cover;\n transition: background-image 1s ease-in-out;\n @media only screen and (max-width: 1024px) {\n background-position-y: 50%;\n background-size: auto 100%;\n\n }\n"], ["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n width: 100vw;\n height: ", ";\n margin-top: ", ";\n background-image: url(", ");\n background-color: ", ";\n background-position-y: 69%;\n background-size: cover;\n transition: background-image 1s ease-in-out;\n @media only screen and (max-width: 1024px) {\n background-position-y: 50%;\n background-size: auto 100%;\n\n }\n"])), function (props) { return props.height ? "calc(".concat(props.height, " - ").concat(props.marginTop || '0px', ")") : '100vh'; }, function (props) { return props.marginTop; }, function (props) { return props.backgroundUrl; }, function (props) { return props.backgroundColor || 'none'; });
2264
2265
  var Overlay = newStyled.div(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n z-index: 1;\n background-color: ", ";\n opacity: ", ";\n"], ["\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n z-index: 1;\n background-color: ", ";\n opacity: ", ";\n"])), function (props) { return props.color; }, function (props) { return props.opacity; });
2265
2266
  var HeroContent = newStyled.div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n z-index: 2;\n @media only screen and (max-width: 1024px) {\n padding: 0 4vw;\n }\n"], ["\n width: 100%;\n height: 100%;\n z-index: 2;\n @media only screen and (max-width: 1024px) {\n padding: 0 4vw;\n }\n"])));
2266
2267
  var templateObject_1$9, templateObject_2$5, templateObject_3$4;