@webjet/react 1.0.25 → 1.0.26

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.
@@ -1 +1 @@
1
- !function(){"use strict";var e={7288:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(8213)),a=n(r(353)),d=n(r(3838)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(n,a,d):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(6689)),u=(n(r(580)),r(1638)),c=r(5149),p=["children","fadeColour","fadeHeight","contentHeight","shouldComponentUpdate"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var f=function(e){var t,r=e.children,n=e.fadeColour,o=e.fadeHeight,s=e.contentHeight,f=e.shouldComponentUpdate,b=(0,d.default)(e,p),h=(0,l.useRef)(),v=(0,c.useVisibility)(),y=v.ref,m=v.visible,x=function(e){if(null==e||!e.current)return!1;var t=e.current,r=t.scrollHeight,n=t.scrollTop,o=t.clientHeight,i=r-n;return i>=o-1&&i<=o+1},F=function(e){if(null==e||!e.current)return!1;var t=e.current,r=t.scrollHeight,n=t.clientHeight;return r>=n-1&&r<=n+1},g=(0,l.useState)(!1),B=(0,a.default)(g,2),C=B[0],w=B[1],D=(0,l.useState)(F(h)),E=(0,a.default)(D,2),k=E[0],S=E[1];return(0,l.useEffect)((function(){S(F(h)),w(x(h))}),[f,null==h||null===(t=h.current)||void 0===t?void 0:t.scrollHeight,m]),l.default.createElement(u.StyledOuterWrapper,(0,i.default)({contentHeight:s},b,{ref:y}),l.default.createElement(u.StyledInnerWrapper,{onScroll:function(){w(x(h))},ref:h},r),!k&&!C&&l.default.createElement(u.StyledPanelWithScrollFade,{fadeColour:n,fadeHeight:o}))};f.defaultProps={fadeColour:"#F5F5F5",fadeHeight:"115px",contentHeight:"200px"};var b=f;t.default=b},1638:function(e,t,r){var n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledPanelWithScrollFade=t.StyledOuterWrapper=t.StyledInnerWrapper=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in e)if("default"!==d&&Object.prototype.hasOwnProperty.call(e,d)){var l=i?Object.getOwnPropertyDescriptor(e,d):null;l&&(l.get||l.set)?Object.defineProperty(o,d,l):o[d]=e[d]}return o.default=e,r&&r.set(e,o),o}(r(7518)),i=r(9193);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var d=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledOuterWrapper",componentId:"sc-9upa4e-0"})(["position:relative;",""],(function(e){var t=e.contentHeight;return t&&(0,o.css)(["height:",";"],t)}));t.StyledOuterWrapper=d;var l=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledInnerWrapper",componentId:"sc-9upa4e-1"})(["position:relative;overflow:auto;height:100%;"]);t.StyledInnerWrapper=l;var u=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledPanelWithScrollFade",componentId:"sc-9upa4e-2"})(["position:absolute;bottom:0;width:calc(100% - 17px);"," pointer-events:none;@media ","{width:100%;}"],(function(e){var t=e.fadeColour,r=e.fadeHeight;return t&&r&&(0,o.css)(["background:linear-gradient(360deg,"," 0%,rgba(235,235,235,0) 100%);height:",";"],t,r)}),i.theme.media.mobileAndTablet);t.StyledPanelWithScrollFade=u},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",firstDayOfWeek:1,weekFormat:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},9193:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(2594)),i=n(r(6932)),a=n(r(2098)),d=n(r(3206))},2098:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7518),i=n(r(2594)),a={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"3px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},5149:function(e){e.exports=require("reactjs-visibility")},7518:function(e){e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};!function(){var e=n,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(7288)).default;e.default=o}(),module.exports=n}();
1
+ !function(){"use strict";var e={7288:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(8213)),a=n(r(353)),d=n(r(3838)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(n,a,d):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(6689)),u=(n(r(580)),r(1638)),c=r(5149),p=["children","fadeBgColour","fadeHeight","contentHeight","shouldComponentUpdate"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var f=function(e){var t,r=e.children,n=e.fadeBgColour,o=e.fadeHeight,s=e.contentHeight,f=e.shouldComponentUpdate,b=(0,d.default)(e,p),h=(0,l.useRef)(),v=(0,c.useVisibility)(),y=v.ref,m=v.visible,x=function(e){if(null==e||!e.current)return!1;var t=e.current,r=t.scrollHeight,n=t.scrollTop,o=t.clientHeight,i=r-n;return i>=o-1&&i<=o+1},F=function(e){if(null==e||!e.current)return!1;var t=e.current,r=t.scrollHeight,n=t.clientHeight;return r>=n-1&&r<=n+1},g=(0,l.useState)(!1),B=(0,a.default)(g,2),C=B[0],w=B[1],D=(0,l.useState)(F(h)),E=(0,a.default)(D,2),k=E[0],S=E[1];return(0,l.useEffect)((function(){S(F(h)),w(x(h))}),[f,null==h||null===(t=h.current)||void 0===t?void 0:t.scrollHeight,m]),l.default.createElement(u.StyledOuterWrapper,(0,i.default)({contentHeight:s},b,{ref:y}),l.default.createElement(u.StyledInnerWrapper,{onScroll:function(){w(x(h))},ref:h,fadeBgColour:n},r),!k&&!C&&l.default.createElement(u.StyledPanelWithScrollFade,{fadeBgColour:n,fadeHeight:o}))};f.defaultProps={fadeBgColour:"#F5F5F5",fadeHeight:"115px",contentHeight:"200px"};var b=f;t.default=b},1638:function(e,t,r){var n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledPanelWithScrollFade=t.StyledOuterWrapper=t.StyledInnerWrapper=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in e)if("default"!==d&&Object.prototype.hasOwnProperty.call(e,d)){var l=i?Object.getOwnPropertyDescriptor(e,d):null;l&&(l.get||l.set)?Object.defineProperty(o,d,l):o[d]=e[d]}return o.default=e,r&&r.set(e,o),o}(r(7518)),i=r(9193);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var d=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledOuterWrapper",componentId:"sc-9upa4e-0"})(["position:relative;",""],(function(e){var t=e.contentHeight;return t&&(0,o.css)(["height:",";"],t)}));t.StyledOuterWrapper=d;var l=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledInnerWrapper",componentId:"sc-9upa4e-1"})(["position:relative;overflow:auto;height:100%;",""],(function(e){var t=e.fadeBgColour;return t&&(0,o.css)(["background:",""],t)}));t.StyledInnerWrapper=l;var u=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledPanelWithScrollFade",componentId:"sc-9upa4e-2"})(["position:absolute;bottom:0;width:calc(100% - 17px);"," pointer-events:none;@media ","{width:100%;}"],(function(e){var t=e.fadeBgColour,r=e.fadeHeight;return t&&r&&(0,o.css)(["background:linear-gradient(360deg,"," 0%,rgba(235,235,235,0) 100%);height:",";"],t,r)}),i.theme.media.mobileAndTablet);t.StyledPanelWithScrollFade=u},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",firstDayOfWeek:1,weekFormat:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},9193:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var o=n(r(2594)),i=n(r(6932)),a=n(r(2098)),d=n(r(3206))},2098:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7518),i=n(r(2594)),a={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor)};t.default=a},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"3px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},5149:function(e){e.exports=require("reactjs-visibility")},7518:function(e){e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};!function(){var e=n,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(7288)).default;e.default=o}(),module.exports=n}();
package/components/tab.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";var e={7288:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(8213)),i=n(r(353)),l=n(r(3838)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(6689)),u=(n(r(580)),r(1638)),c=r(5149),p=["children","fadeColour","fadeHeight","contentHeight","shouldComponentUpdate"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var s=function(e){var t,r=e.children,n=e.fadeColour,o=e.fadeHeight,f=e.contentHeight,s=e.shouldComponentUpdate,v=(0,l.default)(e,p),b=(0,d.useRef)(),h=(0,c.useVisibility)(),m=h.ref,y=h.visible,x=function(e){if(null==e||!e.current)return!1;var t=e.current,r=t.scrollHeight,n=t.scrollTop,o=t.clientHeight,a=r-n;return a>=o-1&&a<=o+1},g=function(e){if(null==e||!e.current)return!1;var t=e.current,r=t.scrollHeight,n=t.clientHeight;return r>=n-1&&r<=n+1},C=(0,d.useState)(!1),F=(0,i.default)(C,2),w=F[0],S=F[1],B=(0,d.useState)(g(b)),O=(0,i.default)(B,2),k=O[0],E=O[1];return(0,d.useEffect)((function(){E(g(b)),S(x(b))}),[s,null==b||null===(t=b.current)||void 0===t?void 0:t.scrollHeight,y]),d.default.createElement(u.StyledOuterWrapper,(0,a.default)({contentHeight:f},v,{ref:m}),d.default.createElement(u.StyledInnerWrapper,{onScroll:function(){S(x(b))},ref:b},r),!k&&!w&&d.default.createElement(u.StyledPanelWithScrollFade,{fadeColour:n,fadeHeight:o}))};s.defaultProps={fadeColour:"#F5F5F5",fadeHeight:"115px",contentHeight:"200px"};var v=s;t.default=v},1638:function(e,t,r){var n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledPanelWithScrollFade=t.StyledOuterWrapper=t.StyledInnerWrapper=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var d=a?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(o,l,d):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}(r(7518)),a=r(9193);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}var l=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledOuterWrapper",componentId:"sc-9upa4e-0"})(["position:relative;",""],(function(e){var t=e.contentHeight;return t&&(0,o.css)(["height:",";"],t)}));t.StyledOuterWrapper=l;var d=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledInnerWrapper",componentId:"sc-9upa4e-1"})(["position:relative;overflow:auto;height:100%;"]);t.StyledInnerWrapper=d;var u=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledPanelWithScrollFade",componentId:"sc-9upa4e-2"})(["position:absolute;bottom:0;width:calc(100% - 17px);"," pointer-events:none;@media ","{width:100%;}"],(function(e){var t=e.fadeColour,r=e.fadeHeight;return t&&r&&(0,o.css)(["background:linear-gradient(360deg,"," 0%,rgba(235,235,235,0) 100%);height:",";"],t,r)}),a.theme.media.mobileAndTablet);t.StyledPanelWithScrollFade=u},3689:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(7288)).default;t.default=o},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",firstDayOfWeek:1,weekFormat:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},9193:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return a.default}});var o=n(r(2594)),a=n(r(6932)),i=n(r(2098)),l=n(r(3206))},2098:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7518),a=n(r(2594)),i={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],a.default.fontFamily.primary,a.default.fontSize,a.default.fontColor)};t.default=i},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"3px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},5059:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(8213)),i=n(r(353)),l=n(r(3838)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(6689)),u=(n(r(580)),r(8727)),c=n(r(1755)),p=n(r(3689)),f=r(8903),s=["children","defaultTab","onChange","variant","size","maxHeight","enablePanelWithScrollFade"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}var b=(0,d.forwardRef)((function(e,t){var r=e.children,n=e.defaultTab,o=e.onChange,v=e.variant,b=e.size,h=e.maxHeight,m=e.enablePanelWithScrollFade,y=(0,l.default)(e,s);if(!r)return null;var x=void 0===r.length?[r]:r,g=n<x.length,C=(0,d.useState)(g?n:0),F=(0,i.default)(C,2),w=F[0],S=F[1],B=function(e){e!==w&&(o&&o(w,e),S(e))},O=b&&(0,f.isSizeSm)(b)?"40px":"48px",k=h?"calc(".concat(h," - ").concat(O,")"):void 0,E=m?d.default.createElement(p.default,{contentHeight:k,shouldComponentUpdate:w},d.default.createElement(u.StyledContent,{"data-testid":"tab-content",variant:v},x[w].props.children)):d.default.createElement(u.StyledContent,{"data-testid":"tab-content",contentHeight:k,variant:v},x[w].props.children);return d.default.createElement(u.StyledComponentWrapper,(0,a.default)({ref:t},y,{"data-testid":"tab-wrapper"}),d.default.createElement(u.StyledTabWrapper,null,x.map((function(e,t){return e?d.default.createElement(c.default,(0,a.default)({index:t,activeTab:w,onSelect:B,key:t,variant:v,size:b},e.props)):null}))),E)}));b.defaultProps={defaultTab:0,variant:"standard",size:"lg",enablePanelWithScrollFade:!1};var h=b;t.default=h},8727:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledTabWrapper=t.StyledTab=t.StyledContent=t.StyledComponentWrapper=t.CONFIG=void 0;var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(7518)),i=r(9193),l=n(r(2511)),d=r(8903);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var c={standard:{textColor:i.theme.color[10],activeTabTextColor:i.theme.color[10],boldTextColor:i.theme.color[10],inactiveBgColor:i.theme.color[3],hoverColor:(0,l.default)(.12,i.theme.color[3]),activeBgColor:i.theme.color[1],inactiveTabTextColor:i.theme.color[8]},dark:{textColor:i.theme.color[11],activeTabTextColor:i.theme.color[11],boldTextColor:i.theme.color[11],inactiveBgColor:i.theme.color[8],hoverColor:(0,l.default)(.12,i.theme.color[8]),activeBgColor:i.theme.color[10],inactiveTabTextColor:i.theme.color[3]}};t.CONFIG=c;var p=a.default.div.withConfig({displayName:"Tabstyle__StyledComponentWrapper",componentId:"sc-1mp3u4j-0"})(["display:flex;flex-direction:column;"]);t.StyledComponentWrapper=p;var f=a.default.div.withConfig({displayName:"Tabstyle__StyledTabWrapper",componentId:"sc-1mp3u4j-1"})(["display:flex;align-items:flex-start;max-width:100%;overflow-y:initial"]);t.StyledTabWrapper=f;var s=a.default.span.withConfig({displayName:"Tabstyle__StyledTab",componentId:"sc-1mp3u4j-2"})(["padding:14px 20px;text-align:center;white-space:nowrap;height:48px;cursor:pointer;border-radius:2px 2px 0 0;margin-right:2px;font-family:'Roboto';font-weight:500;font-size:14px;line-height:20px;"," "," ",""],(function(e){var t=e.size;return t&&(0,d.isSizeSm)(t)&&(0,a.css)(["height:40px;padding:12px 20px;"])}),(function(e){var t=e.variant;return t&&(0,a.css)(["color:",";background:",";@media (hover:hover){&:hover{background:",";}}"],c[t].inactiveTabTextColor,c[t].inactiveBgColor,c[t].hoverColor)}),(function(e){var t=e.isTabActive,r=e.variant;return t&&r&&(0,a.css)(["background:",";color:",";pointer-events:none;"],c[r].activeBgColor,c[r].activeTabTextColor)}));t.StyledTab=s;var v=a.default.div.withConfig({displayName:"Tabstyle__StyledContent",componentId:"sc-1mp3u4j-3"})(["display:flex;flex-direction:column;align-items:flex-start;padding:16px 24px 20px 16px;overflow-y:auto;max-width:100%;flex-grow:1;"," "," em{font-style:normal;font-weight:500;}strong em{font-size:14px;font-weight:700;}"],(function(e){var t=e.contentHeight;return t&&(0,a.css)(["max-height:",";"],t)}),(function(e){var t=e.variant;return t&&(0,a.css)(["background-color:",";color:",";em,h1,h2,h3,h4,h5{color:",";}"],c[t].activeBgColor,c[t].textColor,c[t].boldTextColor)}));t.StyledContent=v},1755:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(8213)),a=n(r(3838)),i=n(r(6689)),l=r(8727),d=(n(r(580)),["label","index","onSelect","activeTab"]);t.default=function(e){var t=e.label,r=e.index,n=e.onSelect,u=e.activeTab,c=(0,a.default)(e,d);return i.default.createElement(l.StyledTab,(0,o.default)({},c,{isTabActive:u===r,onClick:function(){return n(r)},"data-testid":"tab"}),t)}},8903:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},2511:function(e){e.exports=require("polished/lib/color/darken")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},5149:function(e){e.exports=require("reactjs-visibility")},7518:function(e){e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}var n={};!function(){var e=n,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Tab",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"TabPanel",{enumerable:!0,get:function(){return a.default}});var o=t(r(5059)),a=t(r(1755))}(),module.exports=n}();
1
+ !function(){"use strict";var e={7288:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(8213)),i=n(r(353)),l=n(r(3838)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(6689)),u=(n(r(580)),r(1638)),c=r(5149),p=["children","fadeBgColour","fadeHeight","contentHeight","shouldComponentUpdate"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var s=function(e){var t,r=e.children,n=e.fadeBgColour,o=e.fadeHeight,f=e.contentHeight,s=e.shouldComponentUpdate,v=(0,l.default)(e,p),b=(0,d.useRef)(),h=(0,c.useVisibility)(),m=h.ref,y=h.visible,g=function(e){if(null==e||!e.current)return!1;var t=e.current,r=t.scrollHeight,n=t.scrollTop,o=t.clientHeight,a=r-n;return a>=o-1&&a<=o+1},x=function(e){if(null==e||!e.current)return!1;var t=e.current,r=t.scrollHeight,n=t.clientHeight;return r>=n-1&&r<=n+1},C=(0,d.useState)(!1),F=(0,i.default)(C,2),w=F[0],B=F[1],S=(0,d.useState)(x(b)),k=(0,i.default)(S,2),O=k[0],E=k[1];return(0,d.useEffect)((function(){E(x(b)),B(g(b))}),[s,null==b||null===(t=b.current)||void 0===t?void 0:t.scrollHeight,y]),d.default.createElement(u.StyledOuterWrapper,(0,a.default)({contentHeight:f},v,{ref:m}),d.default.createElement(u.StyledInnerWrapper,{onScroll:function(){B(g(b))},ref:b,fadeBgColour:n},r),!O&&!w&&d.default.createElement(u.StyledPanelWithScrollFade,{fadeBgColour:n,fadeHeight:o}))};s.defaultProps={fadeBgColour:"#F5F5F5",fadeHeight:"115px",contentHeight:"200px"};var v=s;t.default=v},1638:function(e,t,r){var n=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledPanelWithScrollFade=t.StyledOuterWrapper=t.StyledInnerWrapper=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var d=a?Object.getOwnPropertyDescriptor(e,l):null;d&&(d.get||d.set)?Object.defineProperty(o,l,d):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}(r(7518)),a=r(9193);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}var l=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledOuterWrapper",componentId:"sc-9upa4e-0"})(["position:relative;",""],(function(e){var t=e.contentHeight;return t&&(0,o.css)(["height:",";"],t)}));t.StyledOuterWrapper=l;var d=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledInnerWrapper",componentId:"sc-9upa4e-1"})(["position:relative;overflow:auto;height:100%;",""],(function(e){var t=e.fadeBgColour;return t&&(0,o.css)(["background:",""],t)}));t.StyledInnerWrapper=d;var u=o.default.div.withConfig({displayName:"PanelWithScrollFadestyle__StyledPanelWithScrollFade",componentId:"sc-9upa4e-2"})(["position:absolute;bottom:0;width:calc(100% - 17px);"," pointer-events:none;@media ","{width:100%;}"],(function(e){var t=e.fadeBgColour,r=e.fadeHeight;return t&&r&&(0,o.css)(["background:linear-gradient(360deg,"," 0%,rgba(235,235,235,0) 100%);height:",";"],t,r)}),a.theme.media.mobileAndTablet);t.StyledPanelWithScrollFade=u},3689:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(7288)).default;t.default=o},3206:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",firstDayOfWeek:1,weekFormat:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},9193:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return a.default}});var o=n(r(2594)),a=n(r(6932)),i=n(r(2098)),l=n(r(3206))},2098:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7518),a=n(r(2594)),i={globalStyles:(0,o.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],a.default.fontFamily.primary,a.default.fontSize,a.default.fontColor)};t.default=i},6932:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},2594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:r[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"3px",borderColor:r[5],hoverColor:r[6],hoverDarkColor:r[7],textHighlight:r[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:r[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:r[5],inputIcon:r[9],inputIconBackground:r[2],inputIconHoverBackground:r[5],inputCrossBtn:"#a8a8a8",btnStandard:r[2],btnStandardHover:r[5],btnAction:r[17],btnActionHover:"#259400",btnActive:r[13],btnActiveHover:r[19],btnSelection:r[16],btnSelectionHover:r[20],warningBackground:r[23],warningText:r[8],successBackground:r[22],successText:r[21],errorBackground:r[26],errorText:r[27],noticeBackground:r[28],noticeText:r[10],sliderPrimary:r[13],color:r,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:r[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},5059:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(8213)),i=n(r(353)),l=n(r(3838)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(6689)),u=(n(r(580)),r(8727)),c=n(r(1755)),p=n(r(3689)),f=r(8903),s=["children","defaultTab","onChange","variant","size","maxHeight","enablePanelWithScrollFade"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}var b=(0,d.forwardRef)((function(e,t){var r=e.children,n=e.defaultTab,o=e.onChange,v=e.variant,b=e.size,h=e.maxHeight,m=e.enablePanelWithScrollFade,y=(0,l.default)(e,s);if(!r)return null;var g=void 0===r.length?[r]:r,x=n<g.length,C=(0,d.useState)(x?n:0),F=(0,i.default)(C,2),w=F[0],B=F[1],S=function(e){e!==w&&(o&&o(w,e),B(e))},k=b&&(0,f.isSizeSm)(b)?"40px":"48px",O=h?"calc(".concat(h," - ").concat(k,")"):void 0,E=m?d.default.createElement(p.default,{contentHeight:O,shouldComponentUpdate:w},d.default.createElement(u.StyledContent,{"data-testid":"tab-content",variant:v},g[w].props.children)):d.default.createElement(u.StyledContent,{"data-testid":"tab-content",contentHeight:O,variant:v},g[w].props.children);return d.default.createElement(u.StyledComponentWrapper,(0,a.default)({ref:t},y,{"data-testid":"tab-wrapper"}),d.default.createElement(u.StyledTabWrapper,null,g.map((function(e,t){return e?d.default.createElement(c.default,(0,a.default)({index:t,activeTab:w,onSelect:S,key:t,variant:v,size:b},e.props)):null}))),E)}));b.defaultProps={defaultTab:0,variant:"standard",size:"lg",enablePanelWithScrollFade:!1};var h=b;t.default=h},8727:function(e,t,r){var n=r(7880),o=r(9293);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledTabWrapper=t.StyledTab=t.StyledContent=t.StyledComponentWrapper=t.CONFIG=void 0;var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(7518)),i=r(9193),l=n(r(2511)),d=r(8903);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var c={standard:{textColor:i.theme.color[10],activeTabTextColor:i.theme.color[10],boldTextColor:i.theme.color[10],inactiveBgColor:i.theme.color[3],hoverColor:(0,l.default)(.12,i.theme.color[3]),activeBgColor:i.theme.color[1],inactiveTabTextColor:i.theme.color[8]},dark:{textColor:i.theme.color[11],activeTabTextColor:i.theme.color[11],boldTextColor:i.theme.color[11],inactiveBgColor:i.theme.color[8],hoverColor:(0,l.default)(.12,i.theme.color[8]),activeBgColor:i.theme.color[10],inactiveTabTextColor:i.theme.color[3]}};t.CONFIG=c;var p=a.default.div.withConfig({displayName:"Tabstyle__StyledComponentWrapper",componentId:"sc-1mp3u4j-0"})(["display:flex;flex-direction:column;"]);t.StyledComponentWrapper=p;var f=a.default.div.withConfig({displayName:"Tabstyle__StyledTabWrapper",componentId:"sc-1mp3u4j-1"})(["display:flex;align-items:flex-start;max-width:100%;overflow-y:initial"]);t.StyledTabWrapper=f;var s=a.default.span.withConfig({displayName:"Tabstyle__StyledTab",componentId:"sc-1mp3u4j-2"})(["padding:14px 20px;text-align:center;white-space:nowrap;height:48px;cursor:pointer;border-radius:2px 2px 0 0;margin-right:2px;font-family:'Roboto';font-weight:500;font-size:14px;line-height:20px;"," "," ",""],(function(e){var t=e.size;return t&&(0,d.isSizeSm)(t)&&(0,a.css)(["height:40px;padding:12px 20px;"])}),(function(e){var t=e.variant;return t&&(0,a.css)(["color:",";background:",";@media (hover:hover){&:hover{background:",";}}"],c[t].inactiveTabTextColor,c[t].inactiveBgColor,c[t].hoverColor)}),(function(e){var t=e.isTabActive,r=e.variant;return t&&r&&(0,a.css)(["background:",";color:",";pointer-events:none;"],c[r].activeBgColor,c[r].activeTabTextColor)}));t.StyledTab=s;var v=a.default.div.withConfig({displayName:"Tabstyle__StyledContent",componentId:"sc-1mp3u4j-3"})(["display:flex;flex-direction:column;align-items:flex-start;padding:16px 24px 20px 16px;overflow-y:auto;max-width:100%;flex-grow:1;"," "," em{font-style:normal;font-weight:500;}strong em{font-size:14px;font-weight:700;}"],(function(e){var t=e.contentHeight;return t&&(0,a.css)(["max-height:",";"],t)}),(function(e){var t=e.variant;return t&&(0,a.css)(["background-color:",";color:",";em,h1,h2,h3,h4,h5{color:",";}"],c[t].activeBgColor,c[t].textColor,c[t].boldTextColor)}));t.StyledContent=v},1755:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(8213)),a=n(r(3838)),i=n(r(6689)),l=r(8727),d=(n(r(580)),["label","index","onSelect","activeTab"]);t.default=function(e){var t=e.label,r=e.index,n=e.onSelect,u=e.activeTab,c=(0,a.default)(e,d);return i.default.createElement(l.StyledTab,(0,o.default)({},c,{isTabActive:u===r,onClick:function(){return n(r)},"data-testid":"tab"}),t)}},8903:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},8213:function(e){e.exports=require("@babel/runtime/helpers/extends")},7880:function(e){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},3838:function(e){e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},353:function(e){e.exports=require("@babel/runtime/helpers/slicedToArray")},9293:function(e){e.exports=require("@babel/runtime/helpers/typeof")},2511:function(e){e.exports=require("polished/lib/color/darken")},580:function(e){e.exports=require("prop-types")},6689:function(e){e.exports=require("react")},5149:function(e){e.exports=require("reactjs-visibility")},7518:function(e){e.exports=require("styled-components")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}var n={};!function(){var e=n,t=r(7880);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Tab",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"TabPanel",{enumerable:!0,get:function(){return a.default}});var o=t(r(5059)),a=t(r(1755))}(),module.exports=n}();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webjet/react",
3
3
  "side-effects": false,
4
- "version": "1.0.25",
4
+ "version": "1.0.26",
5
5
  "description": "Common react components",
6
6
  "main": "components/index.js",
7
7
  "scripts": {