wex-ui-lib 1.1.4 → 1.1.6
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 +5 -5
 - package/dist/index.cjs.js.map +1 -1
 - package/dist/index.d.ts +1 -0
 - package/dist/index.esm.js +5 -5
 - package/dist/index.esm.js.map +1 -1
 - package/dist/types/components/Hero/Hero.d.ts +3 -0
 - package/dist/types/components/Hero/Hero.stories.d.ts +14 -0
 - package/dist/types/components/Hero/Hero.types.d.ts +13 -0
 - package/dist/types/components/Hero/index.d.ts +2 -3
 - package/dist/types/index.d.ts +1 -1
 - package/package.json +1 -1
 
    
        package/dist/index.cjs.js
    CHANGED
    
    | 
         @@ -2025,7 +2025,7 @@ function Button(props) { 
     | 
|
| 
       2025 
2025 
     | 
    
         
             
                }
         
     | 
| 
       2026 
2026 
     | 
    
         
             
            }
         
     | 
| 
       2027 
2027 
     | 
    
         
             
            var DefaultButton = newStyled.button(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n  all: unset; \n  grid-area: button;\n  display: flex;\n  align-items: center;\n  padding: 10px 14px;\n  letter-spacing: 1px;\n  font-size: ", ";\n  font-weight: ", ";\n  cursor: pointer;\n  width: fit-content;\n  grid-area: button;\n  transition: filter 0.3s, background-color 0.3s;\n  gap: 11px;\n  background-color: ", ";\n  color: ", ";\n  position: relative;\n  border: ", ";\n  svg {\n    fill: ", ";\n    transition: all 0.3s;\n  }\n  &:hover{\n    ", ";\n    color: ", ";\n    border-color: ", ";\n    svg {\n      fill: ", ";\n      transform: translateX(5px);\n    }\n    &::after{\n      transform: translateX(4px);\n    }\n  }\n  &::after{\n    display: ", ";\n    content: \"\";\n    width: 100%;\n    height: 100%;\n    position: absolute;\n    transition: all 0.3s;\n    background-color: ", ";\n    left: 0;\n    top: 0;\n    z-index: -1;\n    border-radius: inherit;\n    transform-origin: left;\n  }\n"], ["\n  all: unset; \n  grid-area: button;\n  display: flex;\n  align-items: center;\n  padding: 10px 14px;\n  letter-spacing: 1px;\n  font-size: ", ";\n  font-weight: ", ";\n  cursor: pointer;\n  width: fit-content;\n  grid-area: button;\n  transition: filter 0.3s, background-color 0.3s;\n  gap: 11px;\n  background-color: ", ";\n  color: ", ";\n  position: relative;\n  border: ", ";\n  svg {\n    fill: ", ";\n    transition: all 0.3s;\n  }\n  &:hover{\n    ", ";\n    color: ", ";\n    border-color: ", ";\n    svg {\n      fill: ", ";\n      transform: translateX(5px);\n    }\n    &::after{\n      transform: translateX(4px);\n    }\n  }\n  &::after{\n    display: ", ";\n    content: \"\";\n    width: 100%;\n    height: 100%;\n    position: absolute;\n    transition: all 0.3s;\n    background-color: ", ";\n    left: 0;\n    top: 0;\n    z-index: -1;\n    border-radius: inherit;\n    transform-origin: left;\n  }\n"])), function (props) { var _a; return (_a = props.font) === null || _a === undefined ? undefined : _a.size; }, function (props) { var _a; return (_a = props.font) === null || _a === undefined ? undefined : _a.weight; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.background) || theme.primary; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.text) || theme.white; }, function (props) { var _a, _b; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.border) ? "2px solid ".concat((_b = props.colors) === null || _b === undefined ? undefined : _b.border) : 'none'; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.text) || theme.white; }, function (props) { var _a, _b; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.backgroundHover) ? "background-color: ".concat((_b = props.colors) === null || _b === undefined ? undefined : _b.backgroundHover) : "filter: brightness(1.4)"; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.textHover) || theme.white; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.borderHover) || ''; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.textHover) || theme.white; }, function (props) { return props.hasArrow ? "unset" : "none"; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.background) || theme.primary; });
         
     | 
| 
       2028 
     | 
    
         
            -
            var UnderlinedButton = newStyled(DefaultButton)(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n  background-color: ", ";\n  padding: 10px 0px;\n  letter-spacing: 2px;\n  &::before{\n    content: \"\";\n    position: absolute;\n    left: 0;\n    bottom: 0;\n    width: 99%;\n    height: 2.5px;\n    background-color: ", ";\n    transition: 0.2s;\n  }\n  svg{\n    fill: ", ";\n    path {\n      fill: ", ";\n    }\n  }\n  &::after{\n    display: none;\n  }\n  &:hover{\n    color: ", ";\n    transform: translateY(-1px);\n    svg{\n      transform: translateX(6px);\n      fill: ", ";\n      path {\n        fill: ", ";\n      }\n    }\n    &::before{\n      transform: translateY(4px);\n    }\n  }\n"], ["\n  background-color: ", ";\n  padding: 10px 0px;\n  letter-spacing: 2px;\n  &::before{\n    content: \"\";\n    position: absolute;\n    left: 0;\n    bottom: 0;\n    width: 99%;\n    height: 2.5px;\n    background-color: ", ";\n    transition: 0.2s;\n  }\n  svg{\n    fill: ", ";\n    path {\n      fill: ", ";\n    }\n  }\n  &::after{\n    display: none;\n  }\n  &:hover{\n    color: ", ";\n    transform: translateY(-1px);\n    svg{\n      transform: translateX(6px);\n      fill: ", ";\n      path {\n        fill: ", ";\n      }\n    }\n    &::before{\n      transform: translateY(4px);\n    }\n  }\n"])), function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.background) || 'transparent'; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.border) || theme.primary; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.border) || theme.primary; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.border) || theme.primary; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.textHover) || theme.black; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.borderHover) || theme.primary; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.borderHover) || theme.primary; });
         
     | 
| 
      
 2028 
     | 
    
         
            +
            var UnderlinedButton = newStyled(DefaultButton)(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n  background-color: ", ";\n  padding: 10px 0px;\n  letter-spacing: 2px;\n  border: none!important;\n  &::before{\n    content: \"\";\n    position: absolute;\n    left: 0;\n    bottom: 0;\n    width: 99%;\n    height: 2.5px;\n    background-color: ", ";\n    transition: 0.2s;\n  }\n  svg{\n    fill: ", ";\n    path {\n      fill: ", ";\n    }\n  }\n  &::after{\n    display: none;\n  }\n  &:hover{\n    color: ", ";\n    transform: translateY(-1px);\n    svg{\n      transform: translateX(6px);\n      fill: ", ";\n      path {\n        fill: ", ";\n      }\n    }\n    &::before{\n      transform: translateY(4px);\n    }\n  }\n"], ["\n  background-color: ", ";\n  padding: 10px 0px;\n  letter-spacing: 2px;\n  border: none!important;\n  &::before{\n    content: \"\";\n    position: absolute;\n    left: 0;\n    bottom: 0;\n    width: 99%;\n    height: 2.5px;\n    background-color: ", ";\n    transition: 0.2s;\n  }\n  svg{\n    fill: ", ";\n    path {\n      fill: ", ";\n    }\n  }\n  &::after{\n    display: none;\n  }\n  &:hover{\n    color: ", ";\n    transform: translateY(-1px);\n    svg{\n      transform: translateX(6px);\n      fill: ", ";\n      path {\n        fill: ", ";\n      }\n    }\n    &::before{\n      transform: translateY(4px);\n    }\n  }\n"])), function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.background) || 'transparent'; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.border) || theme.primary; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.border) || theme.primary; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.border) || theme.primary; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.textHover) || theme.black; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.borderHover) || theme.primary; }, function (props) { var _a; return ((_a = props.colors) === null || _a === undefined ? undefined : _a.borderHover) || theme.primary; });
         
     | 
| 
       2029 
2029 
     | 
    
         
             
            var PillButton = newStyled(DefaultButton)(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n  border-radius: 30px;\n  letter-spacing: 1px;\n  text-transform: uppercase;\n  "], ["\n  border-radius: 30px;\n  letter-spacing: 1px;\n  text-transform: uppercase;\n  "])));
         
     | 
| 
       2030 
2030 
     | 
    
         
             
            var RoundedButton = newStyled(DefaultButton)(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n  border-radius: 4px;\n"], ["\n  border-radius: 4px;\n"])));
         
     | 
| 
       2031 
2031 
     | 
    
         
             
            var templateObject_1$7, templateObject_2$5, templateObject_3$4, templateObject_4$2;
         
     | 
| 
         @@ -2208,14 +2208,14 @@ var ControlledNavItem = newStyled.div(templateObject_3$2 || (templateObject_3$2 
     | 
|
| 
       2208 
2208 
     | 
    
         
             
            var templateObject_1$5, templateObject_2$3, templateObject_3$2;
         
     | 
| 
       2209 
2209 
     | 
    
         | 
| 
       2210 
2210 
     | 
    
         
             
            function Hero(props) {
         
     | 
| 
       2211 
     | 
    
         
            -
                var children = props.children, _a = props.imageUrls, imageUrls = _a === undefined ? [""] : _a, overlay = props.overlay, marginTop = props.marginTop, height = props.height;
         
     | 
| 
       2212 
     | 
    
         
            -
                var _b = React.useState(imageUrls 
     | 
| 
      
 2211 
     | 
    
         
            +
                var children = props.children, _a = props.imageUrls, imageUrls = _a === undefined ? [""] : _a, backgroundColor = props.backgroundColor, overlay = props.overlay, marginTop = props.marginTop, height = props.height;
         
     | 
| 
      
 2212 
     | 
    
         
            +
                var _b = React.useState(imageUrls[0] ? imageUrls[0] : ""), activeBackgroundUrl = _b[0]; _b[1];
         
     | 
| 
       2213 
2213 
     | 
    
         
             
                return (React.createElement(React.Fragment, null,
         
     | 
| 
       2214 
     | 
    
         
            -
                    React.createElement(Container$3, { backgroundUrl: activeBackgroundUrl, marginTop: marginTop, height: height },
         
     | 
| 
      
 2214 
     | 
    
         
            +
                    React.createElement(Container$3, { backgroundUrl: activeBackgroundUrl, marginTop: marginTop, height: height, backgroundColor: backgroundColor },
         
     | 
| 
       2215 
2215 
     | 
    
         
             
                        overlay && (React.createElement(Overlay, { color: overlay.color, opacity: overlay.opacity })),
         
     | 
| 
       2216 
2216 
     | 
    
         
             
                        React.createElement(HeroContent, null, children))));
         
     | 
| 
       2217 
2217 
     | 
    
         
             
            }
         
     | 
| 
       2218 
     | 
    
         
            -
            var Container$3 = newStyled.div(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  justify-content: center;\n  position: relative;\n  width: 100vw;\n  height:  
     | 
| 
      
 2218 
     | 
    
         
            +
            var Container$3 = newStyled.div(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  justify-content: center;\n  position: relative;\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  @media only screen and (max-width: 800px) {\n    padding: 80px 10px;\n    svg {\n      max-height: 300px;\n      transform: translateX(20px);\n    }\n  }\n"], ["\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  justify-content: center;\n  position: relative;\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  @media only screen and (max-width: 800px) {\n    padding: 80px 10px;\n    svg {\n      max-height: 300px;\n      transform: translateX(20px);\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'; });
         
     | 
| 
       2219 
2219 
     | 
    
         
             
            var Overlay = newStyled.div(templateObject_2$2 || (templateObject_2$2 = __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; });
         
     | 
| 
       2220 
2220 
     | 
    
         
             
            var HeroContent = newStyled.div(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n  width: 100%;\n  z-index: 2;\n"], ["\n  width: 100%;\n  z-index: 2;\n"])));
         
     | 
| 
       2221 
2221 
     | 
    
         
             
            var templateObject_1$4, templateObject_2$2, templateObject_3$1;
         
     |