groundfloor-react-ui 1.3.37 → 1.3.38
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.es.js +161 -162
- package/dist/index.js +87 -88
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("prop-types"),t=require("react"),l=require("styled-components"),a=require("react-svg"),o=require("react-popper-tooltip"),r=require("react-phone-input-2"),c=require("dayjs");require("dayjs/locale/es");var i=require("react-datepicker"),n=require("react-select"),d=require("react-select/async"),s=require("react-signature-pad-wrapper"),p=require("react-data-table-component"),u=require("react-modal"),f=require("react-dom");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(e),g=m(t),h=m(l),y=m(r),C=m(c),x=m(i),v=m(n),w=m(d),A=m(s),S=m(p),k=m(u);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},E.apply(this,arguments)}const V={"primary-1":"#2A50FD","primary-2":"#081348"},M={error:"#DD0000",success:"#00B904 "},B={"neutral-1":"#39424D","neutral-2":"#6B747F","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},L={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},z={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},H={white:"#FFFFFF",black:"#000000","text-color":V["primary-2"],border:B["neutral-3"]},I={primary:{...V},ui:{...M},neutral:{...B},shade:{...L},graph:{...z},additional:{...H},variant:{...V,...M,...B,...L,...z,...H}},P={common:{},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${I.variant["neutral-2"]}`,"margin-bottom":"0","padding-bottom":"0"},"progressBar-label":{display:"block","margin-bottom":"8px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${I.neutral["neutral-2"]}`},spinner:{"background-color":`${I.variant["neutral-1"]}`},avatarContainer:{background:"transparent",display:"flex","align-items":"center",width:"auto",position:"relative"},avatarCircle:{"border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","box-sizing":"border-box"},avatarCircleSM:{"font-weight":"600","font-size":"12px","min-width":"30px","min-height":"30px"},avatarCircleMD:{"font-weight":"400","font-size":"16px","min-width":"32px","min-height":"32px"},avatarCircleLG:{"font-weight":"400","font-size":"18px","min-width":"38px","min-height":"38px"},avatarName:{},avatarNameSM:{"margin-left":"8px","font-size":"14px"},avatarNameMD:{"margin-left":"16px","font-size":"16px"},avatarNameLG:{"margin-left":"16px","font-size":"16px"},"textbox-wrapper":{"border-radius":"4px",padding:"5.5px 7px",display:"flex","align-items":"center","line-height":".5rem",position:"relative"},"input-wrapper":{border:"0",outline:"0",margin:"0 5px",padding:"0px","font-size":"14px","flex-grow":"1","flex-shrink":"0","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},"textarea-wrapper":{border:"0",outline:"0",color:`${I.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-style":"normal","font-weight":"normal","font-size":"14px",color:`${I.variant["neutral-2"]}`,display:"flex","align-items":"center","justify-content":"center",width:"max-content","background-color":"transparent","margin-bottom":"0px","padding-bottom":"0px"},image:{"border-radius":"0%",width:"100%",height:"100%"},imageAvatar:{"border-radius":"50%","box-sizing":"border-box",position:"absolute"},imageAvatarSM:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"30px",height:"30px"},imageAvatarMD:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"32px",height:"32px"},imageAvatarLG:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"38px",height:"38px"},table:{table:{style:{borderRadius:"4px",paddingRight:"0px",backgroundColor:"transparent"}},checkbox:{style:{maxHeight:"28px",maxWidth:"28px"}},headRow:{style:{background:`${I.variant["neutral-5"]}`,borderLeft:`1px solid ${I.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${I.variant["neutral-5"]}`,borderTop:`1px solid ${I.variant["neutral-5"]}`,borderTopLeftRadius:"4px",borderTopRightRadius:"4px",paddingLeft:"56px",borderBottom:"none",minHeight:"44px",maxHeight:"44px"}},headCells:{style:{fontSize:"14px",fontWeight:"600","&:first-of-type":{paddingLeft:"0px !important"}}},rows:{style:{background:`${I.variant.white}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${I.variant["neutral-5"]}`,borderRight:`1px solid ${I.variant["neutral-5"]}`,borderBottom:`1px solid ${I.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${I.variant["neutral-5"]}`}}},header:{display:"flex","justify-content":"space-between","align-items":"center",position:"fixed","z-index":"1000",top:"0",right:"0",left:"0","min-height":"56px","margin-left":"48px","font-size":"16px","background-color":`${I.additional.white}`,"border-bottom":`0.5px solid ${I.variant["neutral-3"]}`},content:{"background-color":"#eef1f7",width:"100%","min-height":"100%","padding-top":"53px","box-sizing":"border-box",display:"flex","flex-direction":"column","margin-left":"70px"},"radio-outer-circle":{width:"20px",height:"20px","min-width":"20px","min-height":"20px","border-radius":"50%",display:"flex","justify-content":"center","align-items":"center"},"radio-inner-circle":{display:"flex","align-self":"center",margin:"0","border-radius":"50%"},"radio-label":{display:"block","margin-bottom":"8px","padding-bottom":0,color:`${I.variant["neutral-2"]}`},"option-text":{color:"#A9B1B8","font-size":"16px"},sidebarContainer:{"min-height":"100%",overflow:"hidden","background-color":"#2e56f4",position:"fixed",color:"white",width:"48px",transition:"width ease 400ms"},"checkBox-outer":{border:`2px solid ${I.additional.border}`,width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${I.additional.white}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",width:"20px",height:"20px",color:`${I.additional.white}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${I.variant["neutral-2"]}`},"toggle-switch-wrapper":{display:"inline-flex","align-items":"center",width:"fit-content"},"dropzone-parent":{height:"86px","padding-left":"8px","padding-right":"8px",display:"flex","justify-content":"center","align-items":"center","font-size":"16px","border-radius":"5.5px",color:` ${I.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${I.textColor}`,"background-color":`${I.additional.white}`,"box-shadow":"0px 5px 15px rgba(33, 55, 71, 0.096946)","border-radius":"5.5px","margin-top":"5px"},"dropzone-text-div":{display:"flex","justify-content":"center","margin-left":"14px",color:`${I.textColor}`,"background-color":"transparent"},"dropzone-file-name":{"margin-left":"5px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",padding:"2px","font-size":"14px",color:"#494949"},"signature-parent-div":{"border-radius":"5.5px","align-content":"flex-start","justify-content":"center",width:"inherit","max-width":"532px",height:"86px",display:"block","flex-flow":"column wrap","font-size":"17px",color:`${I.textColor}`,"background-color":`${I.additional.white}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${I.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${I.additional.white}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${I.textColor}`},footer:{display:"flex","margin-top":"auto",width:"100%"},drawer:{"min-height":"100%",overflow:"hidden",position:"fixed",width:"360px",transition:"transform ease 400ms",display:"flex","flex-direction":"column","background-color":"white","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"56px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${I.additional.white}`,"border-radius":"3.6px",border:`1px solid ${I.additional.white}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"tooltip-arrow":{height:"19px",position:"absolute",width:"29px","pointer-events":"none"},"tooltip-arrow-before":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",width:"0"},"tooltip-arrow-after":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",position:"absolute",width:"0"},"tp-cont-bottom-arrow-before":{"border-color":`transparent transparent ${I.additional.white} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${I.additional.white} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${I.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${I.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${I.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${I.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${I.additional.white} `,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${I.additional.white} `,"border-width":"15px 0 15px 19px",left:"3px",top:"0"},"tp-cont-bottom-arrow":{left:"0","margin-top":"-19px",top:"0"},"tp-cont-top-arrow":{bottom:"0",left:"0","margin-bottom":"-19px"},"tp-cont-right-arrow":{left:"0","margin-left":"-24px"},"tp-cont-left-arrow":{"margin-right":"-24px",right:"0"},overlay:{"background-color":`${I.additional.white} `,"border-radius":"3.6px",border:`1px solid ${I.additional.white} `,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"simple-overlay":{"background-color":`${I.variant["neutral-1"]} `,"border-radius":"6px",border:`1px solid ${I.variant["neutral-1"]} `,color:`${I.additional.white} `,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",display:"flex","flex-direction":"column","z-index":"999999"},"sidebar-container-open":{width:"256px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"256px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px !important",width:"24px !important",height:"24px !important",cursor:"pointer"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},W=(e,t)=>{if(e){let l={};if(e[t]){for(const a in e[t])l[a]=e[t][a],delete e.common[a];for(const t in e.common)l[t]=e.common[t]}return l}};function R(e,t){var l=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+a+", "+o+", "+t+")":"rgb("+l+", "+a+", "+o+")"}R("#FF0000",.5);const T=(e,t)=>{if(e.includes("#")){e=e.replace("#","");const[t,l,a]=[e[0]+e[1],e[2]+e[3],e[4]+e[5]];e=`${parseInt(t,16)}, ${parseInt(l,16)}, ${parseInt(a,16)}`}return`#${e.split(",").map((e=>parseInt(e.trim()))).map((e=>Math.round(e*(1-t)))).reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")}`},F=h.default.div`
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("prop-types"),t=require("react"),l=require("styled-components"),a=require("react-svg"),o=require("react-popper-tooltip"),r=require("react-phone-input-2"),c=require("dayjs");require("dayjs/locale/es");var i=require("react-datepicker"),n=require("react-select"),d=require("react-select/async"),s=require("react-signature-pad-wrapper"),p=require("react-data-table-component"),u=require("react-modal"),f=require("react-dom");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(e),g=m(t),h=m(l),y=m(r),C=m(c),x=m(i),v=m(n),w=m(d),A=m(s),S=m(p),k=m(u);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},E.apply(null,arguments)}const V={"primary-1":"#2A50FD","primary-2":"#081348"},M={error:"#DD0000",success:"#00B904 "},B={"neutral-1":"#39424D","neutral-2":"#6B747F","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},L={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},z={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},H={white:"#FFFFFF",black:"#000000","text-color":V["primary-2"],border:B["neutral-3"]},I={primary:{...V},ui:{...M},neutral:{...B},shade:{...L},graph:{...z},additional:{...H},variant:{...V,...M,...B,...L,...z,...H}},P={common:{},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${I.variant["neutral-2"]}`,"margin-bottom":"0","padding-bottom":"0"},"progressBar-label":{display:"block","margin-bottom":"8px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${I.neutral["neutral-2"]}`},spinner:{"background-color":`${I.variant["neutral-1"]}`},avatarContainer:{background:"transparent",display:"flex","align-items":"center",width:"auto",position:"relative"},avatarCircle:{"border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","box-sizing":"border-box"},avatarCircleSM:{"font-weight":"600","font-size":"12px","min-width":"30px","min-height":"30px"},avatarCircleMD:{"font-weight":"400","font-size":"16px","min-width":"32px","min-height":"32px"},avatarCircleLG:{"font-weight":"400","font-size":"18px","min-width":"38px","min-height":"38px"},avatarName:{},avatarNameSM:{"margin-left":"8px","font-size":"14px"},avatarNameMD:{"margin-left":"16px","font-size":"16px"},avatarNameLG:{"margin-left":"16px","font-size":"16px"},"textbox-wrapper":{"border-radius":"4px",padding:"5.5px 7px",display:"flex","align-items":"center","line-height":".5rem",position:"relative"},"input-wrapper":{border:"0",outline:"0",margin:"0 5px",padding:"0px","font-size":"14px","flex-grow":"1","flex-shrink":"0","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},"textarea-wrapper":{border:"0",outline:"0",color:`${I.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-style":"normal","font-weight":"normal","font-size":"14px",color:`${I.variant["neutral-2"]}`,display:"flex","align-items":"center","justify-content":"center",width:"max-content","background-color":"transparent","margin-bottom":"0px","padding-bottom":"0px"},image:{"border-radius":"0%",width:"100%",height:"100%"},imageAvatar:{"border-radius":"50%","box-sizing":"border-box",position:"absolute"},imageAvatarSM:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"30px",height:"30px"},imageAvatarMD:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"32px",height:"32px"},imageAvatarLG:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"38px",height:"38px"},table:{table:{style:{borderRadius:"4px",paddingRight:"0px",backgroundColor:"transparent"}},checkbox:{style:{maxHeight:"28px",maxWidth:"28px"}},headRow:{style:{background:`${I.variant["neutral-5"]}`,borderLeft:`1px solid ${I.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${I.variant["neutral-5"]}`,borderTop:`1px solid ${I.variant["neutral-5"]}`,borderTopLeftRadius:"4px",borderTopRightRadius:"4px",paddingLeft:"56px",borderBottom:"none",minHeight:"44px",maxHeight:"44px"}},headCells:{style:{fontSize:"14px",fontWeight:"600","&:first-of-type":{paddingLeft:"0px !important"}}},rows:{style:{background:`${I.variant.white}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${I.variant["neutral-5"]}`,borderRight:`1px solid ${I.variant["neutral-5"]}`,borderBottom:`1px solid ${I.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${I.variant["neutral-5"]}`}}},header:{display:"flex","justify-content":"space-between","align-items":"center",position:"fixed","z-index":"1000",top:"0",right:"0",left:"0","min-height":"56px","margin-left":"48px","font-size":"16px","background-color":`${I.additional.white}`,"border-bottom":`0.5px solid ${I.variant["neutral-3"]}`},content:{"background-color":"#eef1f7",width:"100%","min-height":"100%","padding-top":"53px","box-sizing":"border-box",display:"flex","flex-direction":"column","margin-left":"70px"},"radio-outer-circle":{width:"20px",height:"20px","min-width":"20px","min-height":"20px","border-radius":"50%",display:"flex","justify-content":"center","align-items":"center"},"radio-inner-circle":{display:"flex","align-self":"center",margin:"0","border-radius":"50%"},"radio-label":{display:"block","margin-bottom":"8px","padding-bottom":0,color:`${I.variant["neutral-2"]}`},"option-text":{color:"#A9B1B8","font-size":"16px"},sidebarContainer:{"min-height":"100%",overflow:"hidden","background-color":"#2e56f4",position:"fixed",color:"white",width:"48px",transition:"width ease 400ms"},"checkBox-outer":{border:`2px solid ${I.additional.border}`,width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${I.additional.white}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",width:"20px",height:"20px",color:`${I.additional.white}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${I.variant["neutral-2"]}`},"toggle-switch-wrapper":{display:"inline-flex","align-items":"center",width:"fit-content"},"dropzone-parent":{height:"86px","padding-left":"8px","padding-right":"8px",display:"flex","justify-content":"center","align-items":"center","font-size":"16px","border-radius":"5.5px",color:` ${I.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${I.textColor}`,"background-color":`${I.additional.white}`,"box-shadow":"0px 5px 15px rgba(33, 55, 71, 0.096946)","border-radius":"5.5px","margin-top":"5px"},"dropzone-text-div":{display:"flex","justify-content":"center","margin-left":"14px",color:`${I.textColor}`,"background-color":"transparent"},"dropzone-file-name":{"margin-left":"5px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",padding:"2px","font-size":"14px",color:"#494949"},"signature-parent-div":{"border-radius":"5.5px","align-content":"flex-start","justify-content":"center",width:"inherit","max-width":"532px",height:"86px",display:"block","flex-flow":"column wrap","font-size":"17px",color:`${I.textColor}`,"background-color":`${I.additional.white}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${I.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${I.additional.white}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${I.textColor}`},footer:{display:"flex","margin-top":"auto",width:"100%"},drawer:{"min-height":"100%",overflow:"hidden",position:"fixed",width:"360px",transition:"transform ease 400ms",display:"flex","flex-direction":"column","background-color":"white","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"56px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${I.additional.white}`,"border-radius":"3.6px",border:`1px solid ${I.additional.white}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"tooltip-arrow":{height:"19px",position:"absolute",width:"29px","pointer-events":"none"},"tooltip-arrow-before":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",width:"0"},"tooltip-arrow-after":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",position:"absolute",width:"0"},"tp-cont-bottom-arrow-before":{"border-color":`transparent transparent ${I.additional.white} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${I.additional.white} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${I.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${I.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${I.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${I.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${I.additional.white} `,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${I.additional.white} `,"border-width":"15px 0 15px 19px",left:"3px",top:"0"},"tp-cont-bottom-arrow":{left:"0","margin-top":"-19px",top:"0"},"tp-cont-top-arrow":{bottom:"0",left:"0","margin-bottom":"-19px"},"tp-cont-right-arrow":{left:"0","margin-left":"-24px"},"tp-cont-left-arrow":{"margin-right":"-24px",right:"0"},overlay:{"background-color":`${I.additional.white} `,"border-radius":"3.6px",border:`1px solid ${I.additional.white} `,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"simple-overlay":{"background-color":`${I.variant["neutral-1"]} `,"border-radius":"6px",border:`1px solid ${I.variant["neutral-1"]} `,color:`${I.additional.white} `,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",display:"flex","flex-direction":"column","z-index":"999999"},"sidebar-container-open":{width:"256px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"256px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px !important",width:"24px !important",height:"24px !important",cursor:"pointer"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},W=(e,t)=>{if(e){let l={};if(e[t]){for(const a in e[t])l[a]=e[t][a],delete e.common[a];for(const t in e.common)l[t]=e.common[t]}return l}};function R(e,t){var l=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+a+", "+o+", "+t+")":"rgb("+l+", "+a+", "+o+")"}R("#FF0000",.5);const T=(e,t)=>{if(e.includes("#")){e=e.replace("#","");const[t,l,a]=[e[0]+e[1],e[2]+e[3],e[4]+e[5]];e=`${parseInt(t,16)}, ${parseInt(l,16)}, ${parseInt(a,16)}`}return`#${e.split(",").map((e=>parseInt(e.trim()))).map((e=>Math.round(e*(1-t)))).reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")}`},F=h.default.div`
|
|
2
2
|
color: ${({activeTheme:e})=>e.additional["text-color"]};
|
|
3
3
|
padding-top: 24px;
|
|
4
4
|
padding-bottom: 24px;
|
|
@@ -1398,7 +1398,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1398
1398
|
align-items: center;
|
|
1399
1399
|
margin: 20px 0px;
|
|
1400
1400
|
font-size: 14px;
|
|
1401
|
-
`;const _t=({label:e,labelStyle:a,labelInline:o,required:r,message:c,fileArr:i,setFileArr:n,deleteFile:d,customDropzoneStyles:s,customFileStyles:p,customTextStyles:u,customFileNameStyles:f,backgroundColor:m,singleFile:b,messageSize:h,showSupportedFormats:y,file_extensions:C,maxFilesAmount:x,minFilesAmount:v,fileSizeLimit:w,fileSizeNamingConvention:A,errorMessages:S,suggesionMessage:k,MessagelabelStyle:V,dropValid:M,setDropValid:B,errorDetails:L,setErrorDetails:z,dropzoneContent:H,dropIcon:W,iconColor:R,id:T,customTooltipContentStyle:F={padding:"4px 12px",fontSize:"14px",width:"auto",maxWidth:"226px"},customStylesTPArightBefore:Z,customStylesTPArightAfter:j,tooltipArrowColor:q,...D})=>{const O=l.useTheme()||I;q=q||O.primary["primary-1"];const[G,X]=t.useState(!1),J=t.createRef(),[U,Y]=t.useState(M),[N,K]=t.useState("");let $;var _=C;let ee=new Map(_.map((e=>[e.toLowerCase(),e])));ee=Array.from(ee.values()).join(", ");var te=!1,le=y?"All file formats cannot be used with the files you provided.":"",ae="";1==b&&(v=1,x=1);var oe="Please upload (min."+v+" to max."+x+")files",re=e=>{ae="";let t=[],l=[];var a=i.length;if(a+e.length<v||a+e.length>x){var o=`Please upload (minimum ${v} to maximum ${x} files)`;ae=S?.amount,ae=void 0!==ae?ae:o}if(""==ae)for(const[a,i]of Object.entries(e)){te=!0,i.name;let e=i.size,a=i.name.split(".");a=a[a.length-1],te=_.includes(a.toLowerCase());var r=1024;("MB"===A||"GB"===A||"TB"===A)&&(r*=1024);var c=e/r;if(!1===te&&(ae=S?.format,ae=ae||le),c>w&&te){te=!1;o="Each file must be under "+w+" "+A;ae=S?.size,ae=void 0!==ae?ae:o}te?($=URL.createObjectURL(i),i.path=$,t.push(i)):l.push(i)}return ae.length>0?(B(!1),z({valid:!1,errorMessage:ae,errorFiles:l}),Y(M),K(ae)):(B(!0),Y(M),K(""),z({valid:!0,errorMessage:"",errorFiles:[]})),t};function ce(e){e.preventDefault(),e.stopPropagation()}function ie(e,t){let l=[...i,...e];return t||(l=l.filter(((e,t,l)=>t===l.findIndex((t=>t.place===e.place&&t.name===e.name))))),n(l),X(!1),l}function ne(e,t){if(e instanceof File){const t=i.findIndex((t=>t.name===e.name));let l=i[t].path;URL.revokeObjectURL(l);const a=i.filter((t=>t.name!==e.name));n(a)}else!function(e
|
|
1401
|
+
`;const _t=({label:e,labelStyle:a,labelInline:o,required:r,message:c,fileArr:i,setFileArr:n,deleteFile:d,customDropzoneStyles:s,customFileStyles:p,customTextStyles:u,customFileNameStyles:f,backgroundColor:m,singleFile:b,messageSize:h,showSupportedFormats:y,file_extensions:C,maxFilesAmount:x,minFilesAmount:v,fileSizeLimit:w,fileSizeNamingConvention:A,errorMessages:S,suggesionMessage:k,MessagelabelStyle:V,dropValid:M,setDropValid:B,errorDetails:L,setErrorDetails:z,dropzoneContent:H,dropIcon:W,iconColor:R,id:T,customTooltipContentStyle:F={padding:"4px 12px",fontSize:"14px",width:"auto",maxWidth:"226px"},customStylesTPArightBefore:Z,customStylesTPArightAfter:j,tooltipArrowColor:q,...D})=>{const O=l.useTheme()||I;q=q||O.primary["primary-1"];const[G,X]=t.useState(!1),J=t.createRef(),[U,Y]=t.useState(M),[N,K]=t.useState("");let $;var _=C;let ee=new Map(_.map((e=>[e.toLowerCase(),e])));ee=Array.from(ee.values()).join(", ");var te=!1,le=y?"All file formats cannot be used with the files you provided.":"",ae="";1==b&&(v=1,x=1);var oe="Please upload (min."+v+" to max."+x+")files",re=e=>{ae="";let t=[],l=[];var a=i.length;if(a+e.length<v||a+e.length>x){var o=`Please upload (minimum ${v} to maximum ${x} files)`;ae=S?.amount,ae=void 0!==ae?ae:o}if(""==ae)for(const[a,i]of Object.entries(e)){te=!0,i.name;let e=i.size,a=i.name.split(".");a=a[a.length-1],te=_.includes(a.toLowerCase());var r=1024;("MB"===A||"GB"===A||"TB"===A)&&(r*=1024);var c=e/r;if(!1===te&&(ae=S?.format,ae=ae||le),c>w&&te){te=!1;o="Each file must be under "+w+" "+A;ae=S?.size,ae=void 0!==ae?ae:o}te?($=URL.createObjectURL(i),i.path=$,t.push(i)):l.push(i)}return ae.length>0?(B(!1),z({valid:!1,errorMessage:ae,errorFiles:l}),Y(M),K(ae)):(B(!0),Y(M),K(""),z({valid:!0,errorMessage:"",errorFiles:[]})),t};function ce(e){e.preventDefault(),e.stopPropagation()}function ie(e,t){let l=[...i,...e];return t||(l=l.filter(((e,t,l)=>t===l.findIndex((t=>t.place===e.place&&t.name===e.name))))),n(l),X(!1),l}function ne(e,t){if(e instanceof File){const t=i.findIndex((t=>t.name===e.name));let l=i[t].path;URL.revokeObjectURL(l);const a=i.filter((t=>t.name!==e.name));n(a)}else!function(e){const t=i.filter((t=>t.name!==e.name));n(t),d(e)}(e)}const de=g.default.createElement("div",null,ee),se=C.map((e=>`.${e}`)).join(",");return g.default.createElement("div",null,g.default.createElement("div",{style:{display:"flex",width:"inherit"}},g.default.createElement($e,E({customStyles:a,type:"label-text",labelInline:o,text:e,style:{display:"flex",marginBottom:`${o?0:"8px"}`,paddingBottom:"0px"}},D)),r&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${O.variant.error}`}},"*")),g.default.createElement(Jt,{theme:O,inBuiltCss:P,defaultStyles:"dropzone-parent",backgroundColor:m,customDropzoneStyles:M?s:{},onDragLeave:function(e){ce(e),X(!1)},onDragOver:function(e){ce(e),X(!0)},onDrop:function(e){ce(e);const{files:t}=e.dataTransfer;var l=re(t);X(!0),D.onFilesAdded(ie(l,b))},onClick:function(){J.current.click()},hover:G,dropValid:M,fileArr:i},g.default.createElement(Yt,E({ref:J,valid:U,dropValid:M,type:"file",accept:se,id:T,multiple:!b,onChange:function(e){let{files:t}=e.target;X(!1);var l=re(t);l&&D.onFilesAdded(ie(l,b))},onClick:e=>e.target.value=null},D)),M?g.default.createElement(g.default.Fragment,null,W?g.default.createElement(Q,{icon:W,color:G?O.additional.white:R,size:24}):g.default.createElement(Q,{icon:"file-upload",color:G?O.additional.white:O.primary["primary-1"],size:24})):null,g.default.createElement(Nt,{dropValid:M,valid:U,hover:G,backgroundColor:m,customTextStyles:u,inBuiltCss:P,defaultStyles:"dropzone-text-div"},M?g.default.createElement(g.default.Fragment,null,H?g.default.createElement("div",{style:{color:G?O.additional.white:null}},H):g.default.createElement("div",null,g.default.createElement("span",{style:{color:G?O.additional.white:O.primary["primary-1"]}},"Choose a file"," "),g.default.createElement("span",{style:{color:G?O.additional.white:O.neutral["neutral-2"]}},"or"," "),g.default.createElement("span",{style:{color:G?O.additional.white:O.additional["text-color"]}},"drag ",b?"it":"them"," here"))):g.default.createElement("div",null,g.default.createElement("span",{style:{color:O.variant.error}},"Try again!!"," "),g.default.createElement("span",{style:{color:O.additional["text-color"]}},N||c)))),N===le||S.format?g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({themeColor:I,customStyles:V,type:"label-text",labelInline:o,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},D)),g.default.createElement(Xe,{contentTrigger:g.default.createElement("span",{style:{cursor:"pointer"}},"Click here to view the supported file types"),headerTooltip:"",contentTooltip:de,footerTooltip:"",popperOptionsP:{placement:"bottom"},settings:{closeOnOutsideClick:!0,trigger:"click"},customTriggerStyle:{marginTop:"8px",marginLeft:"4px",textDecoration:"underline",color:O.variant["primary-1"]},customBodyStyle:{wordWrap:"break-word"},customContentStyle:F,customStylesTPArightBefore:Z,customStylesTPArightAfter:j,customStylesTPAbottomBefore:{borderColor:`transparent transparent ${q} transparent`,marginTop:"1px"},customStylesTPAbottomAfter:{display:"none"}})):"The file size is not uploaded"===N?g.default.createElement($e,E({themeColor:I,customStyles:V,type:"label-text",labelInline:o,text:oe,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},D)):"",i?.map(((e,t)=>g.default.createElement(Ut,{inBuiltCss:P,defaultStyles:"dropzone-file-div",key:`${e}-${t}`,customFileStyles:p},g.default.createElement(Kt,null,g.default.createElement(Q,{icon:"file-icon",color:O.primary["primary-1"]})),(File,g.default.createElement("a",{style:{color:O.variant["primary-1"],marginLeft:"5px",overflow:"hidden"},href:e?.path,target:"_blank",rel:"noreferrer",download:e.name}," ",e.name)),g.default.createElement($t,null,e?.otherInfo),g.default.createElement(Qt,{key:101*Math.random()|0},g.default.createElement("div",{style:{marginRight:"7px"}},g.default.createElement(Q,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:O.primary["primary-1"]})),g.default.createElement(Q,{icon:"cross-icon",color:O.neutral["neutral-2"],size:13,onClick:()=>ne(e),customstyles:{cursor:"pointer"}}))))))};_t.propTypes={onFilesAdded:b.default.func,dropValid:b.default.bool,setDropValid:b.default.func,message:b.default.string,fileArr:b.default.array,setFileArr:b.default.func,customDropzoneStyles:b.default.object,customFileStyles:b.default.object,customTextStyles:b.default.object,customFileNameStyles:b.default.object,backgroundColor:b.default.string,messageSize:b.default.number,maxFilesAmount:b.default.number,minFilesAmount:b.default.number,fileSizeLimit:b.default.number,fileSizeNamingConvention:b.default.string,showSupportedFormats:b.default.bool,file_extensions:b.default.array,errorMessages:b.default.object,suggesionMessage:b.default.any,MessagelabelStyle:b.default.object,id:b.default.string,dropzoneContent:b.default.any,dropIcon:b.default.string,iconColor:b.default.string,singleFile:b.default.bool,customTooltipContentStyle:b.default.object,customStylesTPArightBefore:b.default.object,customStylesTPArightAfter:b.default.object},_t.defaultProps={onFilesAdded:()=>null,dropValid:!0,message:"",fileArr:[],setFileArr:()=>{},customDropzoneStyles:{},errorDetails:{},setErrorDetails:()=>{},customFileStyles:{},customTextStyles:{},customFileNameStyles:{},messageSize:100,additionalText:"",maxFilesAmount:5,minFilesAmount:1,fileSizeLimit:10,fileSizeNamingConvention:"MB",showSupportedFormats:!0,file_extensions:["doc","docx","jpg","JPG","pdf","png","xlsx","xlsr","xls"],errorMessages:{},MessagelabelStyle:{},suggesionMessage:"doc, docx, jpg, pdf, png, xlsx, xlsr, xls (Max 10MB)",id:"",iconColor:"black"};const el=l.css`
|
|
1402
1402
|
pointer-events: none;
|
|
1403
1403
|
`,tl=h.default.input`
|
|
1404
1404
|
background-color: transparent;
|
|
@@ -1861,6 +1861,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1861
1861
|
cursor: pointer;
|
|
1862
1862
|
`,$l=({label:e,errMsg:t,hour:a,minute:o,period:r,onChange:c,id:i,...n})=>{const d=l.useTheme()||I;return g.default.createElement(Ql,E({theme:d},n),g.default.createElement(Yl,E({theme:d},n,{errMsg:t}),e),g.default.createElement("div",null,g.default.createElement(Xl,E({theme:d,id:i},n),g.default.createElement(Jl,{theme:d,value:a,onChange:function(e){const t=e.currentTarget.value>12?12:parseFloat(e.currentTarget.value)||0;c({hour:t,minute:o,period:r})}}),":",g.default.createElement(Jl,{theme:d,value:o,onChange:function(e){const t=e.currentTarget.value>59?59:parseFloat(e.currentTarget.value)||0;c({hour:a,minute:t,period:r})}}),g.default.createElement(Kl,{theme:d,onClick:function(e){c({hour:a,minute:o,period:"AM"===r?"PM":"AM"})}},r)),g.default.createElement("div",{className:"err-text"},t)))};$l.propTypes={label:b.default.string,hour:b.default.number.isRequired,minute:b.default.number.isRequired,period:b.default.string.isRequired,required:b.default.bool,labelInline:b.default.bool,isValid:b.default.bool,errMsg:b.default.string,id:b.default.string},$l.defaultProps={label:"",hour:0,minute:0,period:"AM",required:!1,labelInline:!1,isValid:!0,errMsg:"",id:""};const _l=h.default.div`
|
|
1863
1863
|
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>W(e,t)}
|
|
1864
|
+
${({checkboxWrapperStyle:e})=>e};
|
|
1864
1865
|
`,ea=h.default.label`
|
|
1865
1866
|
position: absolute;
|
|
1866
1867
|
width: ${({labelPosition:e})=>"inside"===e?"51.52px":"45px"};
|
|
@@ -1877,9 +1878,9 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1877
1878
|
content: '';
|
|
1878
1879
|
display: block;
|
|
1879
1880
|
border-radius: 50%;
|
|
1880
|
-
width:
|
|
1881
|
-
height:
|
|
1882
|
-
margin-top:
|
|
1881
|
+
width: ${({labelPosition:e})=>"inside"===e?"14.55px":"16px"};
|
|
1882
|
+
height: ${({labelPosition:e})=>"inside"===e?"14.37px":"16px"};
|
|
1883
|
+
margin-top: 3px;
|
|
1883
1884
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1884
1885
|
transition: 0.2s;
|
|
1885
1886
|
margin-left: ${({checked:e,labelPosition:t})=>e?"inside"===t?"calc(100% - 18px)":"calc(100% - 20px)":"4px"};
|
|
@@ -1891,23 +1892,21 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1891
1892
|
opacity: 0;
|
|
1892
1893
|
z-index: 1;
|
|
1893
1894
|
border-radius: 11.04px;
|
|
1894
|
-
width:
|
|
1895
|
+
width: ${({customToggleBoxStyle:e,labelPosition:t})=>e.width?e.width:"51.52px"};
|
|
1895
1896
|
height: 20.11px;
|
|
1896
1897
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1897
1898
|
margin: ${({labelPosition:e})=>"inside"===e?0:"right"===e?"0 8px 0 0":"0 0 0 8px"};
|
|
1898
|
-
|
|
1899
|
-
// custom styles
|
|
1900
|
-
|
|
1901
1899
|
|
|
1900
|
+
// custom styles
|
|
1902
1901
|
`,la=h.default.span`
|
|
1903
1902
|
color: ${({theme:e,labelPosition:t})=>"inside"===t?e.neutral["neutral-5"]:e.additional["text-color"]};
|
|
1904
1903
|
font-size: ${({labelPosition:e})=>"inside"===e?"10px":"16px"};
|
|
1905
1904
|
position: ${({labelPosition:e})=>"inside"===e?"absolute":"initial"};
|
|
1906
1905
|
left: ${({checked:e})=>e?"22px":"36px"};
|
|
1907
|
-
margin-right
|
|
1906
|
+
margin-right: ${({labelPosition:e})=>"inside"===e?0:"8px"};
|
|
1908
1907
|
// custom styles
|
|
1909
1908
|
${({optionStyle:e})=>e};
|
|
1910
|
-
`,aa=({checked:e,customSwitchStyle:t,customToggleBoxStyle:a,onClick:o,optionStyle:r,id:c,isDisabled:i,trueLabel:n,falseLabel:d,labelPosition:s,...
|
|
1909
|
+
`,aa=({checked:e,customSwitchStyle:t,customToggleBoxStyle:a,onClick:o,optionStyle:r,id:c,isDisabled:i,trueLabel:n,falseLabel:d,labelPosition:s,checkboxWrapperStyle:p,...u})=>{const f=l.useTheme()||I;return g.default.createElement(_l,E({inBuiltCss:P,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper",checkboxWrapperStyle:p},u),"left"===s&&g.default.createElement(la,{optionStyle:r,inBuiltCss:P,theme:f,checked:e,labelPosition:s},e?n:d),g.default.createElement(ta,E({},u,{id:c,inBuiltCss:P,onClick:()=>{o(!e)},isChecked:e,disabled:i,isDisabled:i,customToggleBoxStyle:a,labelPosition:s})),g.default.createElement(ea,E({},u,{htmlFor:c,customToggleBoxStyle:a,customSwitchStyle:t,inBuiltCss:P,checked:e,theme:f,isDisabled:i,labelPosition:s})),("right"===s||"inside"===s)&&g.default.createElement(la,{optionStyle:r,inBuiltCss:P,theme:f,checked:e,labelPosition:s},e?n:d))};aa.propTypes={customToggleBoxStyle:b.default.object,customSwitchStyle:b.default.object,checked:b.default.bool,id:b.default.string,isDisabled:b.default.bool,trueLabel:b.default.string,falseLabel:b.default.string,labelPosition:b.default.oneOf(["left","right","inside"]),checkboxWrapperStyle:b.default.object},aa.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1,trueLabel:"Yes",falseLabel:"NO",labelPosition:"right",checkboxWrapperStyle:{}};const oa=h.default.div`
|
|
1911
1910
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1912
1911
|
padding: 24px 8px;
|
|
1913
1912
|
${({commentWrapperStyle:e})=>e};
|
|
@@ -2433,11 +2432,11 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2433
2432
|
display: flex;
|
|
2434
2433
|
justify-content: center;
|
|
2435
2434
|
align-items: center;
|
|
2436
|
-
`,_a=(e,t,l=1)=>{let a=e;const o=[];for(;a<=t;)o.push(a),a+=l;return o},
|
|
2435
|
+
`,_a="LEFT",eo="RIGHT",to=(e,t,l=1)=>{let a=e;const o=[];for(;a<=t;)o.push(a),a+=l;return o},lo=({totalRecords:e,pageNeighbours:a,onPageChanged:o,currentPageNumber:r,propsDropdownSelect:c,showRowsPerPage:i})=>{let n=c?.selectedValue?.value||10;0==n?n=1:n>e&&(n=e);const[d,s]=t.useState(r),[p,u]=t.useState(r),[f,m]=t.useState(Math.ceil(e/n)),[b,h]=t.useState({from:0,to:0}),y=l.useTheme()||I,{width:C}=ae();a=C<512?0:C<768?1:a,t.useEffect((()=>{m(Math.ceil(e/n)),d?(x(d>f?1:d),s(0)):x(1)}),[n]),t.useEffect((()=>{h({from:1+(p-1)*n,to:p*n>e?e:p*n})}),[p]);const x=t=>{const l=Math.max(0,Math.min(t,f));u(l);o({currentPage:l,totalPages:f,totalRecords:e})},v=e=>t=>{t.preventDefault(),x(e)},w=e=>{e.preventDefault();let t=p-2*(a||1)-1;x(0===t?1:t)},A=e=>{e.preventDefault(),x(p+2*(a||1)+1)};if(!e||0===n)return null;const S=(()=>{const e=2*a+3;if(f>e+3){const t=Math.max(2,p-a),l=Math.min(f-1,p+a);let o=to(t,l);const r=t>2,c=f-l>1,i=e-(o.length+1);switch(!0){case r&&!c:{const e=to(t-i,t-1);o=[_a,...e,...o];break}case!r&&c:{const e=to(l+1,l+i);o=[...o,...e,eo];break}default:o=[_a,...o,eo]}return[1,...o,f]}return to(1,f)})();return g.default.createElement(Na,{theme:y,showRowsPerPage:i},g.default.createElement(Ka,{theme:y},g.default.createElement(Qa,{onClick:1!==p?v(p-1):null,disabled:1===p,theme:y},g.default.createElement(Q,{icon:"triangle-down",transform:"rotate(90deg)",color:"#BBC4CF",customstyles:{cursor:1===p?"not-allowed":"pointer"}}),g.default.createElement("span",{id:"prev-text",className:"prev-text"}," ","PREVIOUS")),S.map(((e,t)=>e===_a?g.default.createElement("li",{key:t,className:"page-item"},g.default.createElement("div",{className:"page-link",onClick:w},g.default.createElement("span",{className:"text"},g.default.createElement(Q,{icon:"load-more",color:"#081348",transform:"rotate(90deg)"})),g.default.createElement("span",{className:"icon"},g.default.createElement(Q,{icon:"ellipses-horizontal",color:"#081348"}))," ")):e===eo?g.default.createElement("li",{key:t,className:"page-item"},g.default.createElement("div",{className:"page-link",onClick:A},g.default.createElement("span",{className:"text"},g.default.createElement(Q,{icon:"load-more",color:y.primary["primary-2"],transform:"rotate(-90deg)"})),g.default.createElement("span",{className:"icon"},g.default.createElement(Q,{icon:"ellipses-horizontal",color:y.primary["primary-2"]})))):g.default.createElement("li",{key:t,className:"page-item"+(p===e?" active":"")},g.default.createElement("div",{className:"page-link",onClick:v(e)},e)))),g.default.createElement(Qa,{onClick:p!==f?v(p+1):null,disabled:p===f,theme:y},g.default.createElement("span",{id:"next-text",className:"next-text"}," ","NEXT"),g.default.createElement(Q,{icon:"triangle-down",transform:"rotate(-90deg)",color:"#BBC4CF",customstyles:{cursor:p===f?"not-allowed":"pointer"}}))),i&&g.default.createElement($a,null,g.default.createElement("span",{style:{margin:"0 16px",color:y.variant["neutral-3"],fontSize:"12px"}},"Rows Per Page"),g.default.createElement(Ot,E({customSelectStyles:{menu:e=>({...e,border:"none",marginTop:"1px",borderTopRightRadius:"0px",borderTopLeftRadius:"0px",outline:"none",boxShadow:"0px 6px 20px rgba(56, 66, 100, 0.15)",borderRadius:"4.32px",fontSize:"14px",width:"100%",maxWidth:"100px"}),control:(e,t)=>({...e,border:"1px solid transparent",borderRadius:"6.25391px",height:"31px",minHeight:"31px",boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:"#F2F4FE",maxWidth:"100px",minWidth:"50px"}),singleValue:e=>({...e,fontSize:"12px",marginLeft:"0px",width:"100",marginRight:0})},customWrapperStyles:{marginRight:"16px"},isSearchable:!1,optionArr:[{value:10,label:10},{value:20,label:20},{value:30,label:30}]},c)),g.default.createElement("span",{style:{color:y.variant["neutral-3"],fontSize:"12px"}},b?.from,"-",b?.to," of"," ",g.default.createElement("span",{style:{color:y.variant["neutral-1"]}},e)," ","Results")))};lo.propTypes={totalRecords:b.default.number.isRequired,pageNeighbours:b.default.number,onPageChanged:b.default.func,showRowsPerPage:b.default.bool,currentPageNumber:b.default.number},lo.defaultProps={totalRecords:0,pageNeighbours:1,onPageChanged:()=>null,showRowsPerPage:!1};const ao=h.default.div`
|
|
2437
2436
|
display: flex;
|
|
2438
2437
|
align-items: center;
|
|
2439
2438
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2440
|
-
`,
|
|
2439
|
+
`,oo=({...e})=>{const t=l.useTheme()||I;return g.default.createElement(ao,{theme:t},e.children)},ro=h.default.div`
|
|
2441
2440
|
font-size: 14px;
|
|
2442
2441
|
color: ${({selected:e,theme:t})=>e?t.variant["primary-1"]:null};
|
|
2443
2442
|
|
|
@@ -2453,12 +2452,12 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2453
2452
|
&:not(:first-child):not(:last-child) {
|
|
2454
2453
|
margin: 0 22px;
|
|
2455
2454
|
}
|
|
2456
|
-
`;(
|
|
2455
|
+
`;(oo.PageItem=function({selected:e,...t}){const a=l.useTheme()||I;return g.default.createElement(ro,E({selected:e,theme:a},t),t.children)}).propTypes={selected:b.default.bool},oo.PageItem.defaultProps={selected:!1};const co=h.default.div`
|
|
2457
2456
|
display: flex;
|
|
2458
2457
|
justify-content: center;
|
|
2459
2458
|
align-items: center;
|
|
2460
2459
|
${({customParentStyles:e})=>e}
|
|
2461
|
-
`,
|
|
2460
|
+
`,io=h.default.span`
|
|
2462
2461
|
background-color: ${({selected:e,theme:t})=>e?t.variant["neutral-5"]:"transparent"};
|
|
2463
2462
|
color: ${({selected:e,theme:t})=>e?t.variant["primary-2"]:t.variant["neutral-3"]};
|
|
2464
2463
|
padding: 8px 14px;
|
|
@@ -2470,7 +2469,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2470
2469
|
font-size: 14px;
|
|
2471
2470
|
|
|
2472
2471
|
${({customItemStyles:e})=>e}
|
|
2473
|
-
`,
|
|
2472
|
+
`,no=h.default.div`
|
|
2474
2473
|
display: flex;
|
|
2475
2474
|
justify-content: center;
|
|
2476
2475
|
align-items: center;
|
|
@@ -2493,16 +2492,16 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2493
2492
|
}
|
|
2494
2493
|
|
|
2495
2494
|
${({customIconWrapperStyles:e})=>e}
|
|
2496
|
-
`,
|
|
2495
|
+
`,so=h.default.div`
|
|
2497
2496
|
padding: 0 15px;
|
|
2498
|
-
`,
|
|
2497
|
+
`,po=h.default.div`
|
|
2499
2498
|
display: flex;
|
|
2500
2499
|
align-items: center;
|
|
2501
2500
|
justify-content: center;
|
|
2502
2501
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2503
2502
|
|
|
2504
2503
|
${({customLeftWrapperStyles:e})=>e}
|
|
2505
|
-
`,
|
|
2504
|
+
`,uo=h.default.div`
|
|
2506
2505
|
display: flex;
|
|
2507
2506
|
margin: 0;
|
|
2508
2507
|
align-items: center;
|
|
@@ -2515,7 +2514,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2515
2514
|
margin: 0 10px;
|
|
2516
2515
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2517
2516
|
}
|
|
2518
|
-
`,
|
|
2517
|
+
`,fo=({selectedPage:e,setSelectedPage:a,totalPage:o,customItemStyles:r,customLeftWrapperStyles:c,customIconWrapperStyles:i,previousText:n,nextText:d,pageToShow:s,totalResults:p,showResultPerPage:u,customParentStyles:f,customRightWrapperStyles:m,...b})=>{const h=l.useTheme()||I,[y,C]=t.useState([]);let x=s>o?o:s;t.useEffect((()=>{C(Array.from({length:x},((e,t)=>t+1)))}),[o,s,x]);const v=t=>{let l=[];"increase"===t&&y[x-1]<=o&&e!==y[x-1]?a(e+1):"increase"===t&&y[x-1]<o?(l=Array.from({length:x},((e,t)=>t+y[0]+1)),C(l),a(e+1)):"decrease"===t&&y[0]<=e-1?a(e-1):"decrease"===t&&e>1&&(C(Array.from({length:x},((e,t)=>t+y[0]-1))),a(e-1))};return g.default.createElement(co,{customParentStyles:f}," ",g.default.createElement(po,E({theme:h,customLeftWrapperStyles:c},b),g.default.createElement(no,E({onClick:()=>v("decrease"),disabled:1===e,theme:h,customIconWrapperStyles:i},b),g.default.createElement(Q,{icon:"triangle-down",transform:"rotate(90deg)",color:h.variant["neutral-3"]}),g.default.createElement("span",{className:"prev-text"}," ",n)),g.default.createElement(so,b,y.map(((t,l)=>g.default.createElement(io,{key:l,theme:h,selected:e===t,onClick:()=>a(t),customItemStyles:r},t)))),g.default.createElement(no,{onClick:()=>v("increase"),disabled:e===o,theme:h,customIconWrapperStyles:i},g.default.createElement("span",{className:"next-text"}," ",d),g.default.createElement(Q,{icon:"triangle-down",transform:"rotate(-90deg)",color:h.variant["neutral-3"]}))),u&&g.default.createElement(uo,{theme:h,customRightWrapperStyles:m},g.default.createElement(Ot,{optionArr:[{value:"10",label:"10"},{value:"20",label:"20"},{value:"30",label:"30"}],value:{value:"10",label:"10"},customWrapperStyles:{width:"fit-content"},isDisabled:!0,iconColor:h.variant["neutral-3"]}),g.default.createElement("p",{style:{marginBottom:0}},g.default.createElement("span",null,"OF")," ",p," ",g.default.createElement("span",null,"RESULTS"))))};fo.propTypes={customItemStyles:b.default.object,selectedPage:b.default.number,customLeftWrapperStyles:b.default.object,customIconWrapperStyles:b.default.object,previousText:b.default.string,nextText:b.default.string,pageToShow:b.default.number,totalResults:b.default.number,showResultPerPage:b.default.bool,customParentStyles:b.default.object,customRightWrapperStyles:b.default.object},fo.defaultProps={selectedPage:1,customItemStyles:{},customLeftWrapperStyles:{},customIconWrapperStyles:{},previousText:"PREVIOUS",nextText:"NEXT",pageToShow:5,totalResults:0,showResultPerPage:!1,customParentStyles:{},customRightWrapperStyles:{}};const mo=h.default.div`
|
|
2519
2518
|
box-sizing: border-box;
|
|
2520
2519
|
display: flex;
|
|
2521
2520
|
justify-content: center;
|
|
@@ -2523,8 +2522,8 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2523
2522
|
width: auto;
|
|
2524
2523
|
|
|
2525
2524
|
${({size:e})=>l.css`height: ${e}px;`}
|
|
2526
|
-
`,
|
|
2527
|
-
`,
|
|
2525
|
+
`,bo=h.default.div`
|
|
2526
|
+
`,go=h.default.div`
|
|
2528
2527
|
box-sizing: border-box;
|
|
2529
2528
|
display: flex;
|
|
2530
2529
|
justify-content: center;
|
|
@@ -2553,11 +2552,11 @@ svg {
|
|
|
2553
2552
|
`}
|
|
2554
2553
|
}
|
|
2555
2554
|
}
|
|
2556
|
-
`,
|
|
2555
|
+
`,ho=({theme:e,toggleSet:t,slide:l,color:a,size:o,transform:r,ratingValue:c,starVal:i,hover:n,...d})=>g.default.createElement(go,E({theme:e,ratingValue:c,starVal:i,hover:n,toggleSet:t,color:a,size:o,transform:r},d),g.default.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",id:"star_filled","data-name":"star filled",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("defs",null,g.default.createElement("clipPath",{id:"starFilled"},g.default.createElement("path",{id:"Star",d:"M10,15,4.122,18.09l1.123-6.545L.489,6.91l6.572-.955L10,0l2.939,5.955,6.572.955-4.755,4.635,1.123,6.545Z",transform:"translate(2 3)",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"1.5"}))),g.default.createElement("rect",{x:"0",y:"0",fill:"rgb(217,217,217)",width:"100%",height:"100%",clipPath:"url(#starFilled)"}),g.default.createElement("rect",{x:l,y:"0",fill:a,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function yo(e,t){let l=5*e/t;const a=[],o=l;for(let e=0;e<5;e++){if(l-1>=0)a.push("0");else if(l-1<0&&l-1>-1){const e=(24*l-24).toString();a.push(e)}else a.push("-24");l-=1}return{array:a,value:o}}function Co(e,t){return 100*e/t}const xo=({type:e,customStylesContainer:a,customStylesStar:o,customStylesPercentage:r,color:c,size:i,handleClick:n,transform:d,maxRange:s,value:p,toggleStar:u,toggleSet:f,identifier:m,...b})=>{l.useTheme();const[h,y]=t.useState(void 0),[C,x]=t.useState(void 0),[v,w]=t.useState(void 0),[A,S]=t.useState(void 0);t.useEffect((()=>{y(yo(p,s).array),x(yo(p,s).value),w(Co(p,s))}),[p,s]),t.useEffect((()=>{A?y(yo(A,s).array):(y(yo(p,s).array),x(yo(p,s).value),w(Co(p,s)))}),[A]);const k=g.default.createElement(g.default.Fragment,null,h?.map(((e,t)=>{const l=20*(t+1);return g.default.createElement(ho,{ratingValue:l,starVal:C,hover:A,toggleSet:f,onClick:f?()=>n(l):null,onMouseEnter:f?()=>{S(l)}:null,onMouseLeave:f?()=>{S(null)}:null,slide:e,color:c,className:"star",size:i,transform:d,key:m?.concat(t),customStyles:o})})));return g.default.createElement(mo,E({customStyles:a,type:e,size:i},b,{className:"container"}),u?k:g.default.createElement(bo,{type:e,customStyles:r},v,"%"))};xo.propTypes={customStylesContainer:b.default.object,customStylesStar:b.default.object,customStylesPercentage:b.default.object,type:b.default.string,color:b.default.string,size:b.default.number,transform:b.default.object,handleClick:b.default.func,maxRange:b.default.number,value:b.default.number,toggleStar:b.default.bool,toggleSet:b.default.bool,identifier:b.default.string},xo.defaultProps={customStylesContainer:null,customStylesStar:null,customStylesPercentage:null,type:"star",maxRange:100,value:0,identifier:"ratingKey",toggleStar:!0,toggleSet:!1,color:"#F7B001"};const vo=h.default.div`
|
|
2557
2556
|
.form-check-input {
|
|
2558
2557
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2559
2558
|
}
|
|
2560
|
-
`,
|
|
2559
|
+
`,wo=({customStyles:e,inBuiltCss:t,type:a="table",sortIcon:o,data:r,tableColumns:c,progressPending:i,defaultSortFieldId:n,handleOnSort:d,sortServer:s,progressComponent:p,responsive:u,conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:b,checkboxColor:h,...y})=>{let C={};if(t&&t[a]&&(C=t[a]),e)for(const t in e)C[t]=e[t];const x=l.useTheme()||I,v=g.default.forwardRef((({onClick:e,...t},l)=>g.default.createElement(vo,{theme:x},g.default.createElement("input",E({type:"checkbox",className:"form-check-input",ref:l,onClick:e},t)))));return g.default.createElement(S.default,E({responsive:u,data:r,columns:c,noHeader:!0,highlightOnHover:!0,sortIcon:o,progressPending:i,customStyles:C,defaultSortFieldId:n,progressComponent:p||void 0,sortServer:s,onSort:(e,t,l)=>{d(e,t,l)},conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:b,selectableRowsComponent:v},y))};wo.propTypes={inBuiltCss:b.default.object,sortIcon:b.default.any,data:b.default.array,tableColumns:b.default.array,progressPending:b.default.bool,progressComponent:b.default.any,defaultSortFieldId:b.default.number,sortServer:b.default.bool,handleOnSort:b.default.any,responsive:b.default.bool,conditionalRowStyles:b.default.array,fixedHeader:b.default.bool,fixedHeaderScrollHeight:b.default.string,customStyle:b.default.object},wo.defaultProps={inBuiltCss:P,sortIcon:g.default.createElement(Q,{icon:"arrow-down",size:11,color:"#333333",style:{transform:"scaleX(0.7) scaleY(0.7) translate(5px, -3px)"}}),data:[],tableColumns:[],progressPending:!1,defaultSortFieldId:null,handleOnSort:(e,t,l)=>{},sortServer:null,progressComponent:void 0,responsive:!0,fixedHeader:!0,fixedHeaderScrollHeight:"100%"};const Ao=({title:e,subtitle:t,wrapperStyle:a,imgLink:o,imgStyle:r,iconSize:c})=>{const i=l.useTheme()||I,n={fontSize:"26px",fontWeight:"bold",color:`${i.additional["text-color"]}`,lineHeight:"36px",display:"flex",gap:"14px",alignItems:"flex-start",paddingLeft:"25px"},d={fontSize:"13px",color:`${i.neutral["neutral-2"]}`,lineHeight:"24px",paddingLeft:"25px"};return g.default.createElement("div",{style:a},g.default.createElement("div",{style:n},o?g.default.createElement("img",{src:o,alt:"userIcon",style:r}):g.default.createElement(Q,{icon:"user-icon",size:c,color:i.primary["primary-1"]})," ",g.default.createElement("h4",null,e)),g.default.createElement("div",{style:d},g.default.createElement("p",null,t)))};Ao.propTypes={size:b.default.number},Ao.defaultProps={iconSize:23};const So=l.createGlobalStyle`
|
|
2561
2560
|
@font-face {
|
|
2562
2561
|
font-family: "Averta";
|
|
2563
2562
|
font-weight: 100;
|
|
@@ -2665,7 +2664,7 @@ svg {
|
|
|
2665
2664
|
* {
|
|
2666
2665
|
font-family: "Averta";
|
|
2667
2666
|
}
|
|
2668
|
-
`,
|
|
2667
|
+
`,ko=h.default.span`
|
|
2669
2668
|
background: transparent;
|
|
2670
2669
|
position: relative;
|
|
2671
2670
|
display: flex;
|
|
@@ -2674,12 +2673,12 @@ svg {
|
|
|
2674
2673
|
&>span:not(:first-of-type){
|
|
2675
2674
|
margin-left: -13px;
|
|
2676
2675
|
}
|
|
2677
|
-
`,
|
|
2676
|
+
`,Eo=h.default.p`
|
|
2678
2677
|
color: ${({theme:e,variantQty:t})=>e.variant[t]};
|
|
2679
2678
|
margin: 0;
|
|
2680
2679
|
margin-left: 7px;
|
|
2681
2680
|
font-size: 16px;
|
|
2682
|
-
`,
|
|
2681
|
+
`,Vo=({items:e,size:t,variantCircle:a,variantName:o,variantQty:r,user:c,colorCircle:i,colorBorderCircle:n,...d})=>{const s=l.useTheme()||I;return g.default.createElement(ko,d,e?.map(((l,r)=>{let c={},d={};return c.backgroundColor=i?`${s.variant[i]}`:`${s.variant[a]}`,0!==r&&(c.border=n?`2px solid ${n}`:`2px solid ${s.variant[a]}`,d.border=n?`2px solid ${n}`:`2px solid ${s.variant[a]}`),1===e.length?g.default.createElement(Be,{key:l.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${s.variant[{variantName:o}]}`},size:t,toggleName:!0,user:l,customStylesCircle:c,customStylesImage:d}):r<=3?g.default.createElement(Be,{key:l.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${s.variant[{variantName:o}]}`},size:t,toggleName:!1,user:l,customStylesCircle:c,customStylesImage:d}):null})),e.length-4>0?g.default.createElement(Eo,{theme:s,variantQty:r},"+",e.length-4):null)};Vo.propTypes={variantCircle:b.default.string,variantName:b.default.string,size:b.default.oneOf(["SM","MD","LG"]),user:b.default.object,theme:b.default.object,colorCircle:b.default.string,colorBorderCircle:b.default.string,variantQty:b.default.string},Vo.defaultProps={variantCircle:"primary-1",variantName:"primary-2",size:"MD",user:{userName:"1"},colorCircle:null,colorBorderCircle:"#FFFFFF",variantQty:"primary-1"};const Mo=h.default.div`
|
|
2683
2682
|
max-width: inherit;
|
|
2684
2683
|
width: inherit;
|
|
2685
2684
|
font-size: 14px;
|
|
@@ -2705,7 +2704,7 @@ svg {
|
|
|
2705
2704
|
&[data-popper-placement*='top'] .tooltip-arrow::after {
|
|
2706
2705
|
border-color: ${({theme:e,variantTPbg:t})=>t?e.variant[t]:"#6b747f"} transparent transparent transparent;
|
|
2707
2706
|
}
|
|
2708
|
-
`,
|
|
2707
|
+
`,Bo=h.default.div`
|
|
2709
2708
|
display: flex;
|
|
2710
2709
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2711
2710
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
@@ -2720,24 +2719,24 @@ svg {
|
|
|
2720
2719
|
svg path {
|
|
2721
2720
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2722
2721
|
}
|
|
2723
|
-
`,
|
|
2722
|
+
`,Lo=h.default.div`
|
|
2724
2723
|
display: flex;
|
|
2725
2724
|
justify-content: space-evenly;
|
|
2726
2725
|
flex-grow: 1;
|
|
2727
2726
|
align-items: stretch;
|
|
2728
|
-
`,
|
|
2727
|
+
`,zo=({label:e,index:t,style:a,items:r,variant:c,borderVariant:i,bgVariant:n,variantDisable:d,variantBgDisable:s,disabled:p,divider:u,indexPrefix:f,onClick:m,icon:b,variantTPtext:h,variantTPbg:y,...C})=>{l.useTheme();const{getArrowProps:x,getTooltipProps:v,setTooltipRef:w,setTriggerRef:A,visible:S}=o.usePopperTooltip();return g.default.createElement(g.default.Fragment,null,g.default.createElement(Lo,{ref:A},g.default.createElement(Bo,{variant:c,borderVariant:i,bgVariant:n,variantDisable:d,variantBgDisable:s,disabled:p,onClick:p?null:()=>{m(m)}},b),u),S&&g.default.createElement(Mo,E({variantTPtext:h,variantTPbg:y,ref:w},v({className:"tooltip-container"})),e,g.default.createElement("div",x({className:"tooltip-arrow"}))))};zo.propTypes={variant:b.default.string,borderVariant:b.default.string,bgVariant:b.default.string,variantDisable:b.default.string,variantBgDisable:b.default.string,indexPrefix:b.default.string,theme:b.default.object,items:b.default.array,allDisabled:b.default.bool,divider:b.default.any,onClick:b.default.func,variantTPtext:b.default.string,variantTPbg:b.default.string},Lo.defaultProps={theme:I},Bo.defaultProps={theme:I},Mo.defaultProps={theme:I},zo.defaultProps={theme:I,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white",variantTPtext:null,variantTPbg:null};const Ho=h.default.div`
|
|
2729
2728
|
display: flex;
|
|
2730
2729
|
justify-content: space-evenly;
|
|
2731
2730
|
align-items: stretch;
|
|
2732
2731
|
height: 42px;
|
|
2733
2732
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
2734
2733
|
border-radius: 3px;
|
|
2735
|
-
`,
|
|
2734
|
+
`,Io=h.default.div`
|
|
2736
2735
|
display: flex;
|
|
2737
2736
|
justify-content: space-evenly;
|
|
2738
2737
|
flex-grow: 1;
|
|
2739
2738
|
align-items: stretch;
|
|
2740
|
-
`,
|
|
2739
|
+
`,Po=h.default.div`
|
|
2741
2740
|
display: flex;
|
|
2742
2741
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2743
2742
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
@@ -2752,19 +2751,19 @@ svg {
|
|
|
2752
2751
|
svg path {
|
|
2753
2752
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2754
2753
|
}
|
|
2755
|
-
`,
|
|
2754
|
+
`,Wo=({style:e,items:t,variant:a,borderVariant:o,bgVariant:r,variantDisable:c,variantBgDisable:i,allDisabled:n,divider:d,indexPrefix:s,onClick:p,...u})=>(l.useTheme(),g.default.createElement(Ho,E({variant:a,borderVariant:o},u),t?.map(((e,l)=>g.default.createElement(Io,{key:s.concat(l)},g.default.createElement(Po,{variant:a,borderVariant:o,bgVariant:r,variantDisable:c,variantBgDisable:i,title:e.label,disabled:n||e.disabled,onClick:n||e.disabled?null:()=>p(e.label)},e.icon),t?.length-1!==l&&d)))));Wo.propTypes={variant:b.default.string,borderVariant:b.default.string,bgVariant:b.default.string,variantDisable:b.default.string,variantBgDisable:b.default.string,indexPrefix:b.default.string,theme:b.default.object,items:b.default.array,allDisabled:b.default.bool,divider:b.default.any,onClick:b.default.func},Ho.defaultProps={theme:I},Io.defaultProps={theme:I},Po.defaultProps={theme:I},Wo.defaultProps={theme:I,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white"};const Ro=h.default.div`
|
|
2756
2755
|
display: flex;
|
|
2757
2756
|
justify-content: space-evenly;
|
|
2758
2757
|
align-items: stretch;
|
|
2759
2758
|
height: 42px;
|
|
2760
2759
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
2761
2760
|
border-radius: 3px;
|
|
2762
|
-
`,
|
|
2761
|
+
`,To=h.default.div`
|
|
2763
2762
|
display: flex;
|
|
2764
2763
|
justify-content: space-evenly;
|
|
2765
2764
|
flex-grow: 1;
|
|
2766
2765
|
align-items: stretch;
|
|
2767
|
-
`,
|
|
2766
|
+
`,Fo=h.default.div`
|
|
2768
2767
|
display: flex;
|
|
2769
2768
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2770
2769
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
@@ -2779,28 +2778,28 @@ svg {
|
|
|
2779
2778
|
svg path {
|
|
2780
2779
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2781
2780
|
}
|
|
2782
|
-
`,
|
|
2781
|
+
`,Zo=({style:e,items:t,variant:a,borderVariant:o,bgVariant:r,variantDisable:c,variantBgDisable:i,allDisabled:n,divider:d,indexPrefix:s,onClick:p,variantTPtext:u,variantTPbg:f,...m})=>(l.useTheme(),g.default.createElement(Ro,E({variant:a,borderVariant:o},m),t?.map(((e,l)=>g.default.createElement(zo,{key:s.concat(l),variant:a,borderVariant:o,bgVariant:r,variantDisable:c,variantBgDisable:i,disabled:n||e.disabled,onClick:n||e.disabled?null:()=>{p(e.label)},divider:t?.length-1!==l&&d,icon:e.icon,index:l,label:e.label,variantTPtext:u,variantTPbg:f})))));Zo.propTypes={variant:b.default.string,borderVariant:b.default.string,bgVariant:b.default.string,variantDisable:b.default.string,variantBgDisable:b.default.string,indexPrefix:b.default.string,theme:b.default.object,items:b.default.array,allDisabled:b.default.bool,divider:b.default.any,onClick:b.default.func,variantTPtext:b.default.string,variantTPbg:b.default.string},Ro.defaultProps={theme:I},To.defaultProps={theme:I},Fo.defaultProps={theme:I},Zo.defaultProps={theme:I,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white",variantTPtext:null,variantTPbg:null};const jo=h.default.div`
|
|
2783
2782
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
2784
2783
|
border: 1.3px solid ${({theme:e,variant:t,borderColor:l})=>l||e.variant[t]};
|
|
2785
2784
|
border-radius: 50%;
|
|
2786
2785
|
width: ${({size:e})=>e}px;
|
|
2787
2786
|
height: ${({size:e})=>e}px;
|
|
2788
2787
|
box-sizing: border-box;
|
|
2789
|
-
`,
|
|
2788
|
+
`,qo=({variant:e,bgColor:t,borderColor:a,...o})=>(l.useTheme(),g.default.createElement(jo,E({variant:e,borderColor:a,bgColor:t},o)));qo.propTypes={variant:b.default.string,size:b.default.number,theme:b.default.object,borderColor:b.default.string,bgColor:b.default.string},jo.defaultProps={theme:I},qo.defaultProps={theme:I,variant:"primary-1",size:11};const Do=h.default.div`
|
|
2790
2789
|
display: inline-flex;
|
|
2791
2790
|
align-items: center;
|
|
2792
2791
|
background-color: transparent;
|
|
2793
2792
|
min-height: 24px;
|
|
2794
|
-
`,
|
|
2793
|
+
`,Oo=h.default.div`
|
|
2795
2794
|
display: flex;
|
|
2796
2795
|
justify-content: space-evenly;
|
|
2797
2796
|
width: 69px;
|
|
2798
|
-
`,
|
|
2797
|
+
`,Go=h.default.p`
|
|
2799
2798
|
display: flex;
|
|
2800
2799
|
color: ${({theme:e,variantText:t,colorText:l})=>l||e.variant[t]};
|
|
2801
2800
|
font-size: 16px;
|
|
2802
2801
|
margin: 0 5px;
|
|
2803
|
-
`,
|
|
2802
|
+
`,Xo=({style:e,variantCircle:t,variantText:a,level:o,textArray:r,colorArray:c,indexPrefix:i,colorText:n,...d})=>(l.useTheme(),g.default.createElement(Do,d,g.default.createElement(Oo,null,[1,2,3,4].map(((e,l)=>{let a="#D4D7E3",r=null,n=null;return o<=0&&(o=0),o>=4&&(o=4),c?o>=e?(r=c[o],a=c[o]):r=c[0]:o>=e?(n=t,a=t):n="#FFFFFF",g.default.createElement(qo,{key:i.concat(l),variant:n,borderColor:a,bgColor:r,size:11})}))),r&&g.default.createElement(Go,{variantText:a,colorText:n},r[o])));Xo.propTypes={variantCircle:b.default.string,variantText:b.default.string,level:b.default.number,indexPrefix:b.default.string,theme:b.default.object,block:b.default.bool,textArray:b.default.array,colorArray:b.default.array,colorText:b.default.string},Go.defaultProps={theme:I},Xo.defaultProps={theme:I,variantCircle:"primary-1",variantText:"primary-2",block:!1,level:0,indexPrefix:"circle-group"};const Jo={xsm:{fontSize:"12px"},sm:{fontSize:"14px"},md:{fontSize:"16px"},lg:{fontSize:"18px"}},Uo=h.default.button`
|
|
2804
2803
|
${({underlined:e})=>e?null:l.css`&:hover {text-decoration: underline}`};
|
|
2805
2804
|
background: transparent;
|
|
2806
2805
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
@@ -2811,7 +2810,7 @@ svg {
|
|
|
2811
2810
|
justify-content: flex-start;
|
|
2812
2811
|
border: none;
|
|
2813
2812
|
cursor: pointer;
|
|
2814
|
-
font-size: ${({size:e})=>
|
|
2813
|
+
font-size: ${({size:e})=>Jo[e].fontSize};
|
|
2815
2814
|
|
|
2816
2815
|
&:disabled {
|
|
2817
2816
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
@@ -2821,7 +2820,7 @@ svg {
|
|
|
2821
2820
|
* {
|
|
2822
2821
|
outline: none;
|
|
2823
2822
|
}
|
|
2824
|
-
`,
|
|
2823
|
+
`,Yo=({block:e,size:t,style:a,variant:o,disabled:r,underlined:c,...i})=>(l.useTheme(),g.default.createElement(Uo,E({block:e,variant:o,type:"button",style:a,size:t,disabled:r,underlined:c},i),i.children));Yo.propTypes={variant:b.default.string,disabled:b.default.bool,size:b.default.oneOf(["xsm","sm","md","lg"]),block:b.default.bool,onClick:b.default.func,theme:b.default.object,underlined:b.default.bool},Uo.defaultProps={theme:I},Yo.defaultProps={theme:I,variant:"primary-1",block:!1,disabled:!1,size:"sm",onClick:void 0,label:"Remove",underlined:!1};const No=l.createGlobalStyle`
|
|
2825
2824
|
@keyframes blowUpModal {
|
|
2826
2825
|
0% {
|
|
2827
2826
|
transform: translate(-50%,-50%) scale(0) ;
|
|
@@ -2850,7 +2849,7 @@ svg {
|
|
|
2850
2849
|
animation: blowUpModalTwo 0.3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
|
|
2851
2850
|
}
|
|
2852
2851
|
|
|
2853
|
-
`,
|
|
2852
|
+
`,Qo=h.default.div`
|
|
2854
2853
|
display: flex;
|
|
2855
2854
|
justify-content: space-between;
|
|
2856
2855
|
align-items: flex-start;
|
|
@@ -2861,29 +2860,29 @@ svg {
|
|
|
2861
2860
|
z-index: 100;
|
|
2862
2861
|
// custom styles
|
|
2863
2862
|
${({customModalHeaderStyle:e})=>e}
|
|
2864
|
-
`,
|
|
2863
|
+
`,Ko=h.default.div`
|
|
2865
2864
|
//Set the styles from the default styles object
|
|
2866
2865
|
${({inBuiltCss:e,type:t})=>W(e,t)}
|
|
2867
2866
|
// custom styles
|
|
2868
2867
|
${({customModalBodyStyle:e})=>e}
|
|
2869
|
-
|
|
2868
|
+
`,$o=h.default.div`
|
|
2870
2869
|
max-height: 60vh;
|
|
2871
2870
|
padding: 0 24px 24px 24px;
|
|
2872
2871
|
overflow-y: auto;
|
|
2873
2872
|
${({contentWrapperStyle:e})=>e}
|
|
2874
|
-
`,
|
|
2873
|
+
`,_o=h.default.div`
|
|
2875
2874
|
padding-top: 16px;
|
|
2876
2875
|
|
|
2877
2876
|
//Set the styles from the default styles object
|
|
2878
2877
|
${({inBuiltCss:e,type:t})=>W(e,t)}
|
|
2879
2878
|
// custom styles
|
|
2880
2879
|
${({customModalFooterStyle:e})=>e}
|
|
2881
|
-
|
|
2880
|
+
`,er=h.default.div`
|
|
2882
2881
|
cursor: pointer;
|
|
2883
|
-
`;try{k.default.setAppElement("#root")}catch(e){k.default.setAppElement("#__next")}const
|
|
2882
|
+
`;try{k.default.setAppElement("#root")}catch(e){k.default.setAppElement("#__next")}const tr=({modalIsOpen:e,toggleModal:t,closeOnOutsideClick:a,headerContent:o,bodyContent:r,footerContent:c,customModalHeaderStyle:i,customModalBodyStyle:n,customModalFooterStyle:d,customWidth:s,customMinWidth:p,customMaxWidth:u,contentStyle:f,contentWrapperStyle:m,customZIndex:b,hideCrossIcon:h,...y})=>{const C={overlay:{zIndex:b,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",minWidth:p,overflow:"hidden",border:`1px solid ${(l.useTheme()||I).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:s&&s,maxWidth:u&&u,...f}};return g.default.createElement("div",null,g.default.createElement(k.default,E({closeTimeoutMS:500,isOpen:e,onRequestClose:a?t:void 0,style:C,contentLabel:"Modal"},y),o&&g.default.createElement(Qo,{style:i,"data-accordion":"contentClickFalse"},o,!h&&g.default.createElement(er,{onClick:t},g.default.createElement(Q,{icon:"close-icon",size:18}))),!o&&!h&&g.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginRight:"24px",paddingTop:"24px"}},g.default.createElement("div",null),g.default.createElement(er,{onClick:t},g.default.createElement(Q,{icon:"close-icon",size:18}))),g.default.createElement($o,{contentWrapperStyle:m,"data-accordion":"contentClickFalse"},g.default.createElement(Ko,{inBuiltCss:P,style:n,"data-accordion":"contentClickFalse"},r),c&&g.default.createElement(_o,{inBuiltCss:P,style:d,"data-accordion":"contentClickFalse"},c))),g.default.createElement(No,null))};tr.propTypes={modalIsOpen:b.default.bool,toggleModal:b.default.func,closeOnOutsideClick:b.default.bool,headerContent:b.default.any,hideCrossIcon:b.default.bool,bodyContent:b.default.any,footerContent:b.default.any,customModalHeaderStyle:b.default.object,customModalBodyStyle:b.default.object,customModalFooterStyle:b.default.object,customMinWidth:b.default.string,contentStyle:b.default.object,contentWrapperStyle:b.default.object,customZIndex:b.default.number},tr.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999,hideCrossIcon:!1};const lr=h.default.div`
|
|
2884
2883
|
${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.common)a[t]=e.common[t];for(const l in e[t])a[l]=e[t][l],delete e.common[l]}return{...a,...l}}}}
|
|
2885
2884
|
}
|
|
2886
|
-
`,
|
|
2885
|
+
`,ar=({theme:e,toggleSimple:t,contentTrigger:l,contentOverlay:a,popperOptionsP:r,settingsP:c,customStyles:i,...n})=>{let d={},s={};t?(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s}):(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),d={...d,...r},s={...s,...c};const{getArrowProps:p,getTooltipProps:u,setTooltipRef:f,setTriggerRef:m,visible:b}=o.usePopperTooltip({...s},d);return g.default.createElement(g.default.Fragment,null,g.default.createElement("div",{ref:m,style:{width:"fit-content",height:"fit-content"}},l),b&&g.default.createElement(lr,E({type:t?"simple-overlay":"overlay",theme:e,ref:f},u({className:"tooltip-container"}),{customStyles:i}),a))};ar.propTypes={theme:b.default.object,contentTrigger:b.default.any,contentOverlay:b.default.any,popperOptionsP:b.default.object,settingsP:b.default.object,customStyles:b.default.object,toggleSimple:b.default.bool},ar.defaultProps={theme:P,contentTrigger:g.default.createElement("div",null,"Trigger"),contentOverlay:g.default.createElement("div",null,"I am the Overlay")};const or=h.default.div`
|
|
2887
2886
|
position: relative;
|
|
2888
2887
|
height: 10px;
|
|
2889
2888
|
border-radius: 10px;
|
|
@@ -2894,7 +2893,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2894
2893
|
|
|
2895
2894
|
// custom styles
|
|
2896
2895
|
${({progressWrapStyle:e})=>e}
|
|
2897
|
-
`,
|
|
2896
|
+
`,rr=h.default.div`
|
|
2898
2897
|
height: inherit;
|
|
2899
2898
|
/* border-radius: inherit; */
|
|
2900
2899
|
text-align: right;
|
|
@@ -2905,12 +2904,12 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2905
2904
|
// custom styles
|
|
2906
2905
|
${({progressBarStyle:e})=>e}
|
|
2907
2906
|
|
|
2908
|
-
`,
|
|
2907
|
+
`,cr=({labelStyle:e,progressBarStyle:a,progressWrapStyle:o,label:r,total:c,sections:i,innerContent:n,baseColor:d,baseTitle:s,labelProps:p,props:u})=>{const f=l.useTheme()||I,[m,b]=t.useState([[]]),[h,y]=t.useState(null);t.useEffect((()=>{i&&i.length>0&&b(i)}),[i]);const C=m?.length>0?m?.reduce(((e,t)=>e+t.count),0):0;C>c&&(c=C);const x=m?.length>0?m?.map((e=>e.count/c*100)):[],v=null!==h?m[h].label:s;return g.default.createElement("div",null,g.default.createElement($e,E({inBuiltCss:P,customStyles:e,type:"progressBar-label",text:r},p)),g.default.createElement(or,E({theme:f,progressWrapStyle:o,color:d,title:v},u),m?.map(((e,t)=>g.default.createElement(rr,E({key:t,onMouseEnter:()=>y(t),onMouseLeave:()=>y(null),progressBarStyle:a,theme:f,color:e.color,style:{width:x[t]+"%",left:0===t?0:x.slice(0,t).reduce(((e,t)=>e+t),0)+"%"}},u)))),g.default.createElement("div",{style:{position:"absolute",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",top:"50%",left:"50%",transform:"translate(-50%, -50%)",cursor:"default"},onMouseEnter:e=>((e,t)=>{e.stopPropagation(),y(t)})(e,h),onMouseLeave:e=>{e.stopPropagation(),y(null)}},n)))};cr.propTypes={labelStyle:b.default.object,progressBarStyle:b.default.object,progressWrapStyle:b.default.object,sections:b.default.arrayOf(b.default.shape({color:b.default.string.isRequired,percentage:b.default.number,count:b.default.number.isRequired})).isRequired},cr.defaultProps={labelStyle:{},progressBarStyle:{},progressWrapStyle:{},label:"",total:100,innerContent:"",baseColor:"",baseTitle:"Total Task",labelProps:{},props:{}};const ir=h.default.div`
|
|
2909
2908
|
background: transparent;
|
|
2910
2909
|
display: flex;
|
|
2911
2910
|
align-items: center;
|
|
2912
2911
|
width: ${({block:e})=>e?"100%":"fit-content"};
|
|
2913
|
-
`,
|
|
2912
|
+
`,nr=h.default.div`
|
|
2914
2913
|
margin: 0;
|
|
2915
2914
|
color: ${({theme:e,variantOff:t})=>e.variant[t]};
|
|
2916
2915
|
white-space: nowrap;
|
|
@@ -2928,19 +2927,19 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2928
2927
|
&>div:first-of-type{
|
|
2929
2928
|
color: ${({theme:e,variantOn:t})=>e.variant[t]};
|
|
2930
2929
|
}
|
|
2931
|
-
`,
|
|
2930
|
+
`,dr=h.default.div`
|
|
2932
2931
|
display: flex;
|
|
2933
2932
|
margin-left: 20px;
|
|
2934
2933
|
${({stepsStyle:e})=>e}
|
|
2935
2934
|
|
|
2936
|
-
`,
|
|
2935
|
+
`,sr=h.default.div`
|
|
2937
2936
|
height: 6px;
|
|
2938
2937
|
width: ${({widthStep:e})=>e}px;
|
|
2939
2938
|
margin: 0 3px;
|
|
2940
2939
|
background-color: ${({theme:e,isActive:t,variantOn:l,variantOff:a})=>t?e.variant[l]:e.variant[a]};
|
|
2941
2940
|
border-radius: 19px;
|
|
2942
|
-
`,
|
|
2943
|
-
background: ${({disabled:e,theme:t,bgVariant:l})=>e?
|
|
2941
|
+
`,pr=({block:e,variantOn:t,variantOff:a,currentStep:o,totalSteps:r,widthStep:c,style:i,progressText:n,stepsStyle:d,...s})=>(l.useTheme(),g.default.createElement(ir,E({block:e},s,{style:i}),g.default.createElement(nr,E({},s,{variantOn:t,variantOff:a}),n||"Page"," ",g.default.createElement("div",null,o)," of ",g.default.createElement("div",null,r)),g.default.createElement(dr,E({stepsStyle:d},s),Array.from(Array(r).keys()).map((e=>g.default.createElement(sr,{key:"formSteps".concat(e),isActive:o===e+1,variantOn:t,variantOff:a,widthStep:c}))))));pr.propTypes={variantOn:b.default.string,variantOff:b.default.string,block:b.default.bool,theme:b.default.object,currentStep:b.default.number,totalSteps:b.default.number,widthStep:b.default.number,progressText:b.default.string},ir.defaultProps={theme:I},nr.defaultProps={theme:I},dr.defaultProps={theme:I},sr.defaultProps={theme:I},pr.defaultProps={theme:I,variantOn:"primary-1",variantOff:"neutral-2",block:!1,currentStep:1,totalSteps:4,widthStep:43};const ur="#BBC4CF",fr=h.default.button`
|
|
2942
|
+
background: ${({disabled:e,theme:t,bgVariant:l})=>e?ur:t.variant[l]};
|
|
2944
2943
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2945
2944
|
padding: 6px 17px;
|
|
2946
2945
|
border: 1px solid ${({theme:e,bgVariant:t})=>e.variant[t]};
|
|
@@ -2954,8 +2953,8 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2954
2953
|
|
|
2955
2954
|
&:disabled {
|
|
2956
2955
|
color: #929EAC;
|
|
2957
|
-
background: ${
|
|
2958
|
-
border: 1px solid ${
|
|
2956
|
+
background: ${ur};
|
|
2957
|
+
border: 1px solid ${ur};
|
|
2959
2958
|
cursor: not-allowed;
|
|
2960
2959
|
|
|
2961
2960
|
svg>path{
|
|
@@ -2966,8 +2965,8 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2966
2965
|
* {
|
|
2967
2966
|
outline: none;
|
|
2968
2967
|
}
|
|
2969
|
-
`,
|
|
2970
|
-
background: ${({disabled:e,theme:t})=>e?
|
|
2968
|
+
`,mr=({block:e,style:t,variant:a,bgVariant:o,disabled:r,...c})=>(l.useTheme(),g.default.createElement(fr,E({block:e,variant:a,bgVariant:o,type:"button",style:t,disabled:r},c),c.children));mr.propTypes={variant:b.default.string,bgVariant:b.default.string,disabled:b.default.bool,block:b.default.bool,onClick:b.default.func,theme:b.default.object},fr.defaultProps={theme:I},mr.defaultProps={theme:I,variant:"primary-2",bgVariant:"neutral-4",block:!1,disabled:!1,onClick:void 0};const br="#BBC4CF",gr=h.default.button`
|
|
2969
|
+
background: ${({disabled:e,theme:t})=>e?br:t.additional.white};
|
|
2971
2970
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2972
2971
|
padding: 6px 17px;
|
|
2973
2972
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
@@ -2981,15 +2980,15 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2981
2980
|
|
|
2982
2981
|
&:disabled {
|
|
2983
2982
|
color: #929EAC;
|
|
2984
|
-
background: ${
|
|
2985
|
-
border: 1px solid ${
|
|
2983
|
+
background: ${br};
|
|
2984
|
+
border: 1px solid ${br};
|
|
2986
2985
|
cursor: not-allowed;
|
|
2987
2986
|
|
|
2988
2987
|
svg>path{
|
|
2989
2988
|
fill: #929EAC;
|
|
2990
2989
|
}
|
|
2991
2990
|
}
|
|
2992
|
-
`,
|
|
2991
|
+
`,hr=({block:e,style:t,variant:a,borderVariant:o,disabled:r,...c})=>(l.useTheme(),g.default.createElement(gr,E({block:e,variant:a,borderVariant:o,type:"button",style:t,disabled:r},c),c.children));hr.propTypes={variant:b.default.string,borderVariant:b.default.string,disabled:b.default.bool,block:b.default.bool,onClick:b.default.func,theme:b.default.object},gr.defaultProps={theme:I},hr.defaultProps={theme:I,variant:"primary-2",borderVariant:"neutral-3",block:!1,disabled:!1,onClick:void 0};const yr={width:"auto",padding:0,boxShadow:"none",background:"transparent"},Cr={background:"transparent",border:"none",color:"white",fontSize:"16px",boxShadow:"none",borderRadius:0,padding:"8px 0 8px"},xr={borderTop:"none",transition:"height ease 0.3s, transform ease 95ms",overflow:"hidden",padding:0,background:"transparent",borderRadius:0,boxShadow:"none"},vr={float:"right",marginRight:"8px",marginTop:"3px"},wr={boxShadow:"none",borderRadius:0,backgroundColor:"transparent"},Ar={padding:0,boxShadow:"none",borderRadius:0,backgroundColor:"transparent"},Sr={transition:"height ease 0.2s",overflow:"hidden",padding:"0",backgroundColor:"transparent",color:"white",position:"relative",boxShadow:"none"},kr={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"16px",fontWeight:"600"},Er={wordBreak:"break-word",paddingRight:"16px",fontWeight:"600"},Vr={padding:"0px 16px 0 0",marginLeft:"30px",height:"auto"},Mr=h.default.div`
|
|
2993
2992
|
display: flex;
|
|
2994
2993
|
flex-direction: column;
|
|
2995
2994
|
height: ${({toggleSideBarOpen:e})=>"100vh"};
|
|
@@ -2997,7 +2996,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2997
2996
|
@media (max-width: 428px) {
|
|
2998
2997
|
height: ${({toggleSideBarOpen:e})=>e?"100vh":"56px"};
|
|
2999
2998
|
}
|
|
3000
|
-
`,
|
|
2999
|
+
`,Br={fontWeight:"600",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",margin:"0 16px ",textDecoration:"none"},Lr=h.default.div`
|
|
3001
3000
|
min-height: 56px;
|
|
3002
3001
|
display: flex;
|
|
3003
3002
|
align-items: center;
|
|
@@ -3020,7 +3019,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
3020
3019
|
}
|
|
3021
3020
|
|
|
3022
3021
|
${({headerStyles:e})=>e}
|
|
3023
|
-
`,
|
|
3022
|
+
`,zr=h.default.div`
|
|
3024
3023
|
display: flex;
|
|
3025
3024
|
flex-direction: column;
|
|
3026
3025
|
background-color: transparent;
|
|
@@ -3048,7 +3047,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
3048
3047
|
@media (max-width: 428px) {
|
|
3049
3048
|
margin-top: 56px;
|
|
3050
3049
|
}
|
|
3051
|
-
`,
|
|
3050
|
+
`,Hr=h.default.div`
|
|
3052
3051
|
display: flex;
|
|
3053
3052
|
justify-content: flex-start;
|
|
3054
3053
|
align-items: center;
|
|
@@ -3080,7 +3079,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
3080
3079
|
p {
|
|
3081
3080
|
margin: 0;
|
|
3082
3081
|
}
|
|
3083
|
-
`,
|
|
3082
|
+
`,Ir=h.default.div`
|
|
3084
3083
|
background-color: ${({theme:e,containerBackgroundColorDynamic:t,containerBackgroundColor:l})=>t?l:e.variant["primary-1"]} !important;
|
|
3085
3084
|
color: ${({theme:e})=>e.additional.white};
|
|
3086
3085
|
overflow-y: hidden;
|
|
@@ -3099,7 +3098,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
3099
3098
|
${({customStylesContainer:e})=>e}
|
|
3100
3099
|
|
|
3101
3100
|
${({isOpen:e,forceOpen:t,inBuiltCss:l,customStylesContainerOpen:a,customStylesContainerClose:o})=>e||t?{...W(l,"sidebar-container-open"),...a}:{...W(l,"sidebar-container-close"),...o}}
|
|
3102
|
-
`,
|
|
3101
|
+
`,Pr=h.default.div`
|
|
3103
3102
|
${({inBuiltCss:e})=>W(e,"sidebar-pusher")}
|
|
3104
3103
|
${({customStylesPusher:e})=>e}
|
|
3105
3104
|
|
|
@@ -3108,33 +3107,33 @@ ${({forceOpen:e,inBuiltCss:t,customStylesPusherOpen:l,customStylesPusherClose:a}
|
|
|
3108
3107
|
@media (max-width: 980px) {
|
|
3109
3108
|
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...W(e,"sidebar-pusher-mobile"),...l})}
|
|
3110
3109
|
}
|
|
3111
|
-
`,
|
|
3110
|
+
`,Wr=({customStylesContainer:e,customStylesContainerOpen:t,customStylesContainerClose:a,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r,customStylesPusher:c,customStylesPusherOpen:i,customStylesPusherClose:n,customStylesPusherMobile:d,forceOpen:s,forceClose:p,handleSidebar:u,toggleSideBarOpen:f,pinner:m,containerBackgroundColor:b,containerBackgroundColorDynamic:h,...y})=>{function C(e){u(e)}const x=l.useTheme()||I;return g.default.createElement(Ir,E({theme:x,containerBackgroundColor:b,containerBackgroundColorDynamic:h,inBuiltCss:P,customStyles:e,onMouseEnter:()=>{s||C(!0)},onClick:()=>!f&&C(!0),onMouseLeave:()=>{C(!1),p()},forceOpen:s,isOpen:f},y),g.default.createElement(Pr,null),y.children,m)};Wr.propTypes={customStylesContainer:b.default.object,customStylesContainerOpen:b.default.object,customStylesContainerClose:b.default.object,customStylesContainerMobileOpen:b.default.object,customStylesContainerMobileClose:b.default.object,customStylesPusher:b.default.object,customStylesPusherOpen:b.default.object,customStylesPusherClose:b.default.object,customStylesPusherMobile:b.default.object,forceOpen:b.default.bool,forceClose:b.default.func,handleSidebar:b.default.func,toggleSideBarOpen:b.default.bool,pinner:b.default.any},Wr.defaultProps={forceClose:()=>{},forceOpen:!1,containerBackgroundColor:"#2A50FD",containerBackgroundColorDynamic:!1};const Rr={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Tr=h.default.div`
|
|
3112
3111
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
3113
3112
|
color: ${({theme:e})=>e.additional.white};
|
|
3114
|
-
padding: ${({size:e})=>
|
|
3113
|
+
padding: ${({size:e})=>Rr[e].padding};
|
|
3115
3114
|
border: 1px solid ${({theme:e,variant:t})=>e.variant[t]};
|
|
3116
3115
|
border-radius: 42px;
|
|
3117
|
-
font-size: ${({size:e})=>
|
|
3116
|
+
font-size: ${({size:e})=>Rr[e].fontSize};
|
|
3118
3117
|
font-weight: 600;
|
|
3119
3118
|
display: flex;
|
|
3120
3119
|
align-items: center;
|
|
3121
3120
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
3122
3121
|
box-sizing: border-box;
|
|
3123
3122
|
|
|
3124
|
-
`,
|
|
3123
|
+
`,Fr=({block:e,style:t,variant:a,...o})=>(l.useTheme(),g.default.createElement(Tr,E({block:e,variant:a,style:t},o),o.children));Fr.propTypes={size:b.default.oneOf(["sm","md","lg"]),variant:b.default.string,block:b.default.bool,theme:b.default.object},Tr.defaultProps={theme:I},Fr.defaultProps={theme:I,variant:"primary-1",block:!1,size:"sm"};const Zr={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},jr=h.default.div`
|
|
3125
3124
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
3126
3125
|
background: ${({theme:e})=>e.additional.white};
|
|
3127
|
-
padding: ${({size:e})=>
|
|
3126
|
+
padding: ${({size:e})=>Zr[e].padding};
|
|
3128
3127
|
border: 1px solid ${({theme:e,variant:t})=>e.variant[t]};
|
|
3129
3128
|
border-radius: 42px;
|
|
3130
|
-
font-size: ${({size:e})=>
|
|
3129
|
+
font-size: ${({size:e})=>Zr[e].fontSize};
|
|
3131
3130
|
font-weight: 600;
|
|
3132
3131
|
display: flex;
|
|
3133
3132
|
align-items: center;
|
|
3134
3133
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
3135
3134
|
box-sizing: border-box;
|
|
3136
3135
|
|
|
3137
|
-
`,
|
|
3136
|
+
`,qr=({block:e,style:t,variant:a,...o})=>(l.useTheme(),g.default.createElement(jr,E({block:e,variant:a,style:t},o),o.children));qr.propTypes={size:b.default.oneOf(["sm","md","lg"]),variant:b.default.string,block:b.default.bool,theme:b.default.object},jr.defaultProps={theme:I},qr.defaultProps={theme:I,variant:"primary-1",block:!1,size:"sm"};const Dr={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},Or=h.default.div`
|
|
3138
3137
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
3139
3138
|
color: ${({theme:e,textColor:t})=>t||e.bgColor};
|
|
3140
3139
|
border-radius: 13.5px;
|
|
@@ -3142,11 +3141,11 @@ font-size: 14px;
|
|
|
3142
3141
|
display: inline-flex;
|
|
3143
3142
|
align-items: center;
|
|
3144
3143
|
justify-content: center;
|
|
3145
|
-
min-width: ${({block:e,size:t})=>e?"auto":
|
|
3144
|
+
min-width: ${({block:e,size:t})=>e?"auto":Dr[t].width};
|
|
3146
3145
|
height: 28px;
|
|
3147
3146
|
box-sizing: border-box;
|
|
3148
3147
|
overflow: hidden;
|
|
3149
|
-
`,
|
|
3148
|
+
`,Gr=({block:e,style:t,variant:a,textColor:o,bgColor:r,...c})=>(l.useTheme(),g.default.createElement(Or,E({block:e,variant:a,textColor:o,bgColor:r,style:t},c),c.children));Gr.propTypes={variant:b.default.string,size:b.default.oneOf(["xsm","sm","md","lg"]),block:b.default.bool,theme:b.default.object,textColor:b.default.string,bgColor:b.default.string},Or.defaultProps={theme:I},Gr.defaultProps={theme:I,variant:"primary-1",block:!1,size:"sm"};const Xr={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},Jr=h.default.div`
|
|
3150
3149
|
background: ${({theme:e})=>e.additional.white};
|
|
3151
3150
|
color: ${({theme:e,variant:t,textColor:l})=>l||e.variant[t]};
|
|
3152
3151
|
border: 1px solid ${({theme:e,variant:t,borderColor:l})=>l||e.variant[t]};
|
|
@@ -3155,14 +3154,14 @@ font-size: 14px;
|
|
|
3155
3154
|
display: inline-flex;
|
|
3156
3155
|
align-items: center;
|
|
3157
3156
|
justify-content: center;
|
|
3158
|
-
min-width: ${({block:e,size:t})=>e?"auto":
|
|
3157
|
+
min-width: ${({block:e,size:t})=>e?"auto":Xr[t].width};
|
|
3159
3158
|
height: 28px;
|
|
3160
3159
|
box-sizing: border-box;
|
|
3161
3160
|
overflow: hidden;
|
|
3162
|
-
`,
|
|
3161
|
+
`,Ur=({block:e,style:t,variant:a,textColor:o,borderColor:r,...c})=>(l.useTheme(),g.default.createElement(Jr,E({block:e,variant:a,textColor:o,borderColor:r,style:t},c),c.children));Ur.propTypes={variant:b.default.string,size:b.default.oneOf(["xsm","sm","md","lg"]),block:b.default.bool,theme:b.default.object,textColor:b.default.string,borderColor:b.default.string},Jr.defaultProps={theme:I},Ur.defaultProps={theme:I,variant:"primary-1",block:!1,size:"sm"};const Yr=h.default.div`
|
|
3163
3162
|
padding: 24px;
|
|
3164
3163
|
${({tabWrapperStyle:e})=>e}
|
|
3165
|
-
`,
|
|
3164
|
+
`,Nr=h.default.div`
|
|
3166
3165
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
3167
3166
|
display: flex;
|
|
3168
3167
|
align-items: flex-start;
|
|
@@ -3170,16 +3169,16 @@ overflow: hidden;
|
|
|
3170
3169
|
gap: 12px;
|
|
3171
3170
|
padding-bottom: 24px;
|
|
3172
3171
|
${({headerWrapperStyle:e})=>e}
|
|
3173
|
-
`,
|
|
3172
|
+
`,Qr=h.default.div`
|
|
3174
3173
|
font-size: 16px;
|
|
3175
3174
|
padding: 7px 20px;
|
|
3176
3175
|
cursor: pointer;
|
|
3177
3176
|
border-radius: 5px;
|
|
3178
3177
|
|
|
3179
3178
|
${({isActive:e,headerStyle:t,activeHeaderStyle:l})=>e?l:t}
|
|
3180
|
-
`,
|
|
3179
|
+
`,Kr=h.default.div`
|
|
3181
3180
|
${({tabContentStyle:e})=>e}
|
|
3182
|
-
|
|
3181
|
+
`,$r=({tabs:e,activeTab:t,setActiveTab:a,tabWrapperStyle:o,headerWrapperStyle:r,headerStyle:c,dividerProps:i,tabContentStyle:n,extraContent:d,activeHeaderStyle:s,titleIsIcon:p})=>{const u=l.useTheme()||I;return g.default.createElement(Yr,{tabWrapperStyle:o},g.default.createElement(Nr,{theme:u,headerWrapperStyle:r},e.map(((e,l)=>g.default.createElement(Qr,{id:"tab-"+l,theme:u,onClick:()=>a(l),active:l===t,key:e?.title+l,isActive:l===t,headerStyle:c,activeHeaderStyle:s},p?g.default.createElement(Q,{icon:e.title}):e.title))),d),g.default.createElement(Pa,i),e.map(((e,l)=>l===t&&g.default.createElement(Kr,{tabContentStyle:n,key:l},e.content))))};$r.propTypes={tabs:b.default.array,tabWrapperStyle:b.default.object,headerWrapperStyle:b.default.object,headerStyle:b.default.object,dividerProps:b.default.object,tabContentStyle:b.default.object,activeTab:b.default.number,setActiveTab:b.default.func,activeHeaderStyle:b.default.object},$r.defaultProps={tabs:[],activeTab:0,tabWrapperStyle:{},headerStyle:{backgroundColor:"transparent",color:I.variant["primary-2"],fontWeight:"normal"},tabContentStyle:{},headerWrapperStyle:{},dividerProps:{},activeHeaderStyle:{color:I.variant["primary-1"],backgroundColor:R("#2A50FD",.05),fontWeight:"bold"}};const _r=h.default.div`
|
|
3183
3182
|
.notification {
|
|
3184
3183
|
background: ${({theme:e})=>e.additional.white};
|
|
3185
3184
|
transition: 0.3s ease;
|
|
@@ -3274,7 +3273,7 @@ overflow: hidden;
|
|
|
3274
3273
|
.close-icon {
|
|
3275
3274
|
cursor: pointer;
|
|
3276
3275
|
}
|
|
3277
|
-
`,
|
|
3276
|
+
`,ec=({close:e,children:a,type:o,position:r,timeout:c,localTimeout:i})=>{((e,l)=>{const a=t.useRef(e);t.useEffect((()=>{a.current=e}),[e]),t.useEffect((()=>{if(null===l)return;const e=setTimeout((()=>a.current()),l);return()=>clearTimeout(e)}),[l])})(e,i||c||5e3);const n=l.useTheme()||I;let d=null;switch(o){case"success":d=g.default.createElement(Q,{icon:"check-icon",color:"white",size:12,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"warning":d=g.default.createElement(Q,{icon:"warning",color:"white",size:20,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"error":d=g.default.createElement(Q,{icon:"close-white",size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"info":d=g.default.createElement(Q,{icon:"info-icon",size:10,color:"white",customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"pending":d=g.default.createElement(se,{size:14})}return g.default.createElement(_r,{theme:n,type:o,timeout:i||c||5e3},g.default.createElement("div",{className:`notification toast ${r}`},g.default.createElement("div",{className:"leftSide"},g.default.createElement("div",{className:"notification-icon"},d),g.default.createElement("div",{className:"notification-message"},a)),g.default.createElement("div",{className:"close-icon",onClick:e},g.default.createElement(Q,{icon:"close-icon",color:n.variant["neutral-2"]}))),g.default.createElement("div",{className:`notification-progress ${r}-border`}))},tc=t.createContext(),lc=h.default.div`
|
|
3278
3277
|
.notification-container {
|
|
3279
3278
|
font-size: 14px;
|
|
3280
3279
|
box-sizing: border-box;
|
|
@@ -3328,9 +3327,9 @@ overflow: hidden;
|
|
|
3328
3327
|
transform: translateX(0);
|
|
3329
3328
|
}
|
|
3330
3329
|
}
|
|
3331
|
-
`;function
|
|
3330
|
+
`;function ac(){let e=46656*Math.random()|0,t=46656*Math.random()|0;return e=("000"+e.toString(36)).slice(-3),t=("000"+t.toString(36)).slice(-3),e+t}const oc={xs:{fontSize:"12px",lineHeight:"120%"},sm:{fontSize:"14px",lineHeight:"120%"},md:{fontSize:"16px",lineHeight:"140%"},lg:{fontSize:"18px",lineHeight:"120%"}},rc=h.default.div`
|
|
3332
3331
|
color: ${({theme:e,text:t})=>t?e.variant[t]:e.additional["text-color"]};
|
|
3333
3332
|
background: ${({theme:e,bg:t})=>t?e.variant[t]:e.additional.white};
|
|
3334
|
-
font-size: ${({size:e})=>
|
|
3335
|
-
line-height: ${({size:e})=>
|
|
3336
|
-
`,lc=({size:e,children:t,bg:a,text:o,...r})=>{const c=l.useTheme()||I;return g.default.createElement(tc,E({theme:c,bg:a,text:o,size:e},r),g.default.createElement(wo,{theme:c}),t)};lc.propTypes={size:b.default.oneOf(["xs","sm","md","lg"]),text:b.default.string,bg:b.default.string,children:b.default.any,theme:b.default.object},lc.defaultProps={size:"md"},exports.Accordion=$,exports.AccordionSB=_,exports.ActionContainer=Aa,exports.ActionItem=Ea,exports.Alert=le,exports.ArrowBar=Ae,exports.Avatar=Be,exports.AvatarSB=Pe,exports.Banner=Te,exports.Breadcrumb=Qe,exports.ButtonPopup=Bo,exports.Card=Z,exports.CardRef=q,exports.CheckBoxInput=pt,exports.ChipsInput=rt,exports.ColorInput=mt,exports.Comment=ua,exports.Content=ma,exports.CountryCodedPhoneInput=ht,exports.DarkSecondaryLink=pr,exports.DateSelect=Lt,exports.DateTime=Ft,exports.Divider=Pa,exports.DocumentCard=J,exports.DotPulseLoader=()=>{const e=l.useTheme()||I;return g.default.createElement(oe,{activeTheme:e},g.default.createElement("div",{className:"dot-pulse"}))},exports.Drawer=Ra,exports.DropdownSelect=Ot,exports.DropzoneInput=_t,exports.EditableInput=rl,exports.ErrorBoundary=Ta,exports.FilterChip=ja,exports.Footer=Da,exports.FooterContent=({variant:e,textColor:t,size:l,width:a,footerWidth:o,customStyles:r,...c})=>{const i=(new Date).getFullYear();return g.default.createElement(Oa,E({variant:e,textColor:t,footerWidth:o,customStyles:r},c),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Premise HQ"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"All Rights Restricted ",i," ©")),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Terms of use"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"Privacy Policy")))},exports.FormComponent=({formData:e,customStyles:l,...a})=>{const o=e=>{switch(e.type){case"header":return(e=>g.default.createElement(t.Fragment,null,g.default.createElement(Ya,E({},e,a),e.children),e))(e);case"label":return(e=>g.default.createElement($e,E({style:{marginBottom:"8px",paddingBottom:"0"}},e,a)))(e);case"text":return(e=>g.default.createElement(zl,E({},e,a)))(e);case"textArea":return(e=>g.default.createElement(Gl,E({},e,a)))(e);case"number":return(e=>g.default.createElement(bl,E({},e,a)))(e);case"radio":return(e=>g.default.createElement(El,E({key:101*Math.random()|0},e,a)))(e);case"checkBox":return(e=>g.default.createElement(pt,E({},e,a)))(e);case"singleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"singleSelect"},e,a)))(e);case"multiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"multiSelect"},e,a)))(e);case"asyncSingleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncSingleSelect"},e,a)))(e);case"asyncMultiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncMultiSelect"},e,a)))(e);case"signature":return(e=>g.default.createElement(Zl,E({},e,a)))(e);case"fileUpload":return(e=>g.default.createElement(_t,E({},e,a)))(e);case"date":return(e=>g.default.createElement(Lt,E({},e,a)))(e);case"paginationTypeTwo":return(e=>g.default.createElement(po,E({},e,a)))(e);case"toggle":return(e=>g.default.createElement(aa,E({},e,a)))(e);case"icon":return(e=>g.default.createElement(Q,E({},e,a)))(e);case"roundedLoader":return(e=>g.default.createElement(se,E({},e,a)))(e);case"alert":return(e=>g.default.createElement(le,E({},e,a)))(e);case"banner":return(e=>g.default.createElement(Te,E({},e,a)))(e);case"divider":return(e=>g.default.createElement(Pa,E({},e,a)))(e);case"headerComponent":case"headerComponent":return(e=>g.default.createElement(vo,E({},e,a)))(e);case"documentCard":return(e=>g.default.createElement(J,E({},e,a)))(e);case"imageUploader":return(e=>g.default.createElement(sl,E({},e,a)))(e);case"accordion":return(e=>g.default.createElement($,E({},e,a)))(e);case"content":return(e=>g.default.createElement(ma,E({},e,a)))(e);case"rating":return(e=>g.default.createElement(yo,E({},e,a)))(e);case"buttonPrimary":return(e=>g.default.createElement(ge,E({},e,a)))(e);case"buttonSecondary":return(e=>g.default.createElement(Ce,E({},e,a)))(e);case"buttonTiny":return(e=>g.default.createElement(ve,E({},e,a)))(e);case"buttonLink":return(e=>g.default.createElement(fe,E({},e,a)))(e);case"search":return(e=>g.default.createElement(Hl,E({},e,a)))(e);case"table":return(e=>g.default.createElement(xo,E({},e,a)))(e);case"passwordInput":return(e=>g.default.createElement(xl,E({},e,a)))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Va,{defaultThemeColor:I},g.default.createElement(Ha,{onSubmit:()=>{},customStyles:l},e.map(((e,t)=>e.length>1?g.default.createElement(Ba,null,e.map(((t,l)=>g.default.createElement(La,{cols:e.length},o(t))))):o(e[0]))))))},exports.FormContainer=Va,exports.FormWrapper=Ha,exports.GroupAvatars=ko,exports.GroupButtons=Io,exports.GroupButtonsPopup=To,exports.GroupStatusCircle=Oo,exports.Header=Ya,exports.HeaderComponent=vo,exports.HyperLink=Jo,exports.Icon=Q,exports.Image=ke,exports.ImageUploader=sl,exports.Label=$e,exports.LightSecondaryLink=fr,exports.LinkButton=fe,exports.Loader=ie,exports.ModalComp=_o,exports.MultiColumnDiv=La,exports.MultiColumnWrapper=Ba,exports.Navbar=({headerContent:e,bodyContent:a,toggleSideBarOpen:o,headerStyles:r,selectedStyle:c,notSelectedStyle:i,customStylesNameHover:n,listElementStyle:d,customSelectCardColor:s,selectedAppPath:p,setSelectedAppPath:u,setSelectedAppPageId:f,setParentId:m,setRouterObject:b,notificationCircleStyles:h,singleLine:y=!0,customFontColor:C})=>{const x=l.useTheme()||I,[v,w]=t.useState(null),[A,S]=t.useState(!1),[k,E]=t.useState([]);let V=a?.filter((e=>!0===e.visibleAsMenu&&"bottom"===e.type.split("-")[1])).length;t.useEffect((()=>{E(p?.split("/")||[]),b({});let e=p?.split("/")||[],t=a&&a.find((t=>e[1]===t.path?.split("/")[1]));M(t),m(t?.id||null)}),[p]),t.useEffect((()=>{!o&&S(!1),!o&&w(null)}),[o]);const M=e=>{if(e?.path===p){f(e?.id||null);let t={...e},l=e?.queryParams;l&&(t.path=e.path+l,t.link=e.link+l),b(t||null)}else e?.routes&&e?.routes.length>0&&e.routes.forEach((e=>M(e)))};let B=y?vr:wr;const L=(e,t,l)=>{let a=e?.path.split("/"),o=a.length;if(e.routes&&e.routes.length>0){let r=e.routes.filter((e=>!0===e.visibleAsMenu)).length>0;return g.default.createElement(_,{key:e?.id+t,showIcon:!!r,contentToggle:g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",marginLeft:`${l}px`},onClick:()=>{e?.queryParams?!r&&u(e.path,e.queryParams):!r&&u(e.path,"")}},g.default.createElement("span",{style:{visibility:3===o&&k[2]===a[2]?"visible":"hidden",marginRight:"16px",width:"7px",height:"7px",borderRadius:"50%",backgroundColor:C||x.additional.white,flexShrink:0}}),g.default.createElement("span",{id:e?.path.substring(1).replace(/\//g,"-"),style:{fontWeight:3===o&&k[2]===a[2]?"bold":"normal",color:C||x.variant.white}}," ",e?.link)),isAccordionOpen:p.includes(e.path),setContentIsOpen:()=>{},toggleIconAnimation:!0,content:g.default.createElement("div",null,e.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>L(e,t,l+8)))),customStylesAccordionContainer:mr,customStylesAccordionToggle:{cursor:"pointer",...br},customStylesAccordionContent:gr,showIconInfo:!1,customWrapperStyles:hr})}return g.default.createElement(Mr,{singleLine:y,listElementStyle:d,customFontColor:C,key:e?.id+t,onClick:()=>{u(e.path,e?.queryParams?e.queryParams:"")},theme:x},g.default.createElement("span",{className:"selected-disk",style:{visibility:o<=3&&p===e?.path&&k[k.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"visible":"hidden",marginRight:"16px"}}),g.default.createElement("span",{className:"link",style:{marginLeft:l-8+"px",padding:"4px 8px",borderRadius:"4px",backgroundColor:o>3&&p===e?.path?d?.selectedChildBG||x.additional.white:"transparent",fontWeight:o<=3&&p===e?.path&&k[k.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"bold":"normal",color:C||x.variant.white}}," ",e?.link))};return g.default.createElement(Sr,{onClick:()=>S(!0),onMouseEnter:()=>S(!0),onMouseLeave:()=>{w(null),S(!1)},toggleSideBarOpen:o},g.default.createElement(Er,{theme:x,headerStyles:r,toggleSideBarOpen:o},e),g.default.createElement(Vr,{toggleSideBarOpen:o,staticLayerNo:V},a&&a?.filter((e=>!0===e.visibleAsMenu))?.map(((e,t)=>g.default.createElement("div",{className:"service-layer",key:e?.value+t,onClick:()=>{w(t)},style:{backgroundColor:e?.value?.toLowerCase()===k[1]?.toLowerCase()?s:"transparent"}},"static"!==e.type.split("-")[0]?g.default.createElement(_,{index:t,underMaintenance:e.maintenance,isAccordionOpen:t===v||A&&e?.value?.toLowerCase()===k[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===k[1]?.toLowerCase(),customSelectCardColor:s,customStylesAccordionContainer:{...yr,padding:"0px 0px 0px 0px"},customStylesAccordionToggle:{cursor:e.maintenance?"not-allowed":"pointer",...Cr},customStylesAccordionContent:xr,contentToggle:g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...c},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...i},toggleName:o,customStylesName:{...B,color:e.maintenance?x.variant["neutral-3"]:C||x.variant.white},customStylesCircle:{background:C||"inherit"},customStylesNameHover:n,size:"MD",user:{userName:e?.label,url:e?.logo,appNameShortForm:e?.appNameShortForm},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:x.variant["neutral-3"]}):a.length-1===t?g.default.createElement(Q,{icon:"person",size:20,color:x.variant["primary-1"],customstyles:{backgroundColor:"white",borderRadius:"50%",padding:"8px",boxSizing:"content-box"}}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===k[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),content:g.default.createElement("div",{style:Ar},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>L(e,t,0))))}):g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center"}},g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...c},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...i},toggleName:!1,customStylesName:{...B,color:C||"inherit"},customStylesCircle:{background:C||"inherit"},customStylesNameHover:n,size:"MD",user:{userName:e?.label,url:e?.logo},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:x.variant["neutral-3"]}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===k[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),e.element?e.element:g.default.createElement("a",{href:e.path,target:e.target||"_blank",rel:"noreferrer",style:{color:e.maintenance?x.variant["neutral-3"]:C||x.variant.white,cursor:e.maintenance?"not-allowed":"pointer",...kr}},e.label)))))))},exports.NumericInput=bl,exports.Overlay=tr,exports.OverlayOptionContainer=Sa,exports.OverlayOptionItemLabel=ka,exports.PageContent=ba,exports.Pagination=eo,exports.PaginationDefault=lo,exports.PaginationTypeTwo=po,exports.PasswordInput=xl,exports.PrimaryButton=ge,exports.PrimaryStatusChip=Pr,exports.ProgressBar=or,exports.ProgressSteps=dr,exports.RadioInput=El,exports.Rating=yo,exports.RoundedLoader=se,exports.SearchInput=Hl,exports.SecondaryButton=Ce,exports.SecondaryStatusChip=Tr,exports.Sidebar=zr,exports.SignatureInput=Zl,exports.SlimPrimaryStatusChip=jr,exports.SlimSecondaryStatusChip=Or,exports.StatusCircle=Zo,exports.StyledCentralBar=ya,exports.StyledClearSearch=ha,exports.StyledCreateRow=xa,exports.StyledRow=va,exports.StyledRowSearch=ga,exports.StyledSearchRow=wa,exports.StyledWarning=Ca,exports.SubmitButtonContainer=Ma,exports.SubmitComponent=({formData:e,onSubmit:l,onReset:a,style:o,...r})=>{const c=e=>{switch(e.type){case"submit":return(e=>g.default.createElement(ge,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>g.default.createElement(Ce,{block:e.block,disabled:r.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Ma,{style:o},e&&e.map(((e,t)=>e.map(((e,t)=>c(e)))))))},exports.Table=xo,exports.Tabs=Yr,exports.TextArea=Gl,exports.TextInput=zl,exports.TimeInput=$l,exports.TinyButton=ve,exports.ToastProvider=e=>{const[l,a]=t.useState([]),o=(e,t,l,o)=>{a((a=>[...a,{id:o||_r(),content:t,type:e,localTimeout:l}]))},r=e=>a((t=>t.filter((t=>t.id!==e)))),c=t.useMemo((()=>({open:o,close:r})),[]),[i,n]=t.useState(!1);return t.useEffect((()=>(n(!0),()=>n(!1))),[]),g.default.createElement(Kr.Provider,{value:c},e.children,i?f.createPortal(g.default.createElement($r,null,g.default.createElement("div",{className:`notification-container ${e.position}`},l.map((t=>g.default.createElement(Qr,{key:t.id,type:t.type,position:e.position,timeout:e.timeout,localTimeout:t.localTimeout,close:()=>r(t.id)},t.content))))),document.body):null)},exports.ToggleSwitch=aa,exports.Tooltip=Xe,exports.Typography=lc,exports.additionalColors=H,exports.createDarker=T,exports.defaultStyles=P,exports.defaultThemeColor=I,exports.getDefaultStyles=W,exports.graphColor=z,exports.hexToRGB=R,exports.neutralColor=B,exports.primaryColor=V,exports.shadeColor=L,exports.uiColor=M,exports.useToast=()=>t.useContext(Kr);
|
|
3333
|
+
font-size: ${({size:e})=>oc[e].fontSize};
|
|
3334
|
+
line-height: ${({size:e})=>oc[e].lineHeight};
|
|
3335
|
+
`,cc=({size:e,children:t,bg:a,text:o,...r})=>{const c=l.useTheme()||I;return g.default.createElement(rc,E({theme:c,bg:a,text:o,size:e},r),g.default.createElement(So,{theme:c}),t)};cc.propTypes={size:b.default.oneOf(["xs","sm","md","lg"]),text:b.default.string,bg:b.default.string,children:b.default.any,theme:b.default.object},cc.defaultProps={size:"md"},exports.Accordion=$,exports.AccordionSB=_,exports.ActionContainer=Aa,exports.ActionItem=Ea,exports.Alert=le,exports.ArrowBar=Ae,exports.Avatar=Be,exports.AvatarSB=Pe,exports.Banner=Te,exports.Breadcrumb=Qe,exports.ButtonPopup=zo,exports.Card=Z,exports.CardRef=q,exports.CheckBoxInput=pt,exports.ChipsInput=rt,exports.ColorInput=mt,exports.Comment=ua,exports.Content=ma,exports.CountryCodedPhoneInput=ht,exports.DarkSecondaryLink=mr,exports.DateSelect=Lt,exports.DateTime=Ft,exports.Divider=Pa,exports.DocumentCard=J,exports.DotPulseLoader=()=>{const e=l.useTheme()||I;return g.default.createElement(oe,{activeTheme:e},g.default.createElement("div",{className:"dot-pulse"}))},exports.Drawer=Ra,exports.DropdownSelect=Ot,exports.DropzoneInput=_t,exports.EditableInput=rl,exports.ErrorBoundary=Ta,exports.FilterChip=ja,exports.Footer=Da,exports.FooterContent=({variant:e,textColor:t,size:l,width:a,footerWidth:o,customStyles:r,...c})=>{const i=(new Date).getFullYear();return g.default.createElement(Oa,E({variant:e,textColor:t,footerWidth:o,customStyles:r},c),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Premise HQ"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"All Rights Restricted ",i," ©")),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Terms of use"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"Privacy Policy")))},exports.FormComponent=({formData:e,customStyles:l,...a})=>{const o=e=>{switch(e.type){case"header":return(e=>g.default.createElement(t.Fragment,null,g.default.createElement(Ya,E({},e,a),e.children),e))(e);case"label":return(e=>g.default.createElement($e,E({style:{marginBottom:"8px",paddingBottom:"0"}},e,a)))(e);case"text":return(e=>g.default.createElement(zl,E({},e,a)))(e);case"textArea":return(e=>g.default.createElement(Gl,E({},e,a)))(e);case"number":return(e=>g.default.createElement(bl,E({},e,a)))(e);case"radio":return(e=>g.default.createElement(El,E({key:101*Math.random()|0},e,a)))(e);case"checkBox":return(e=>g.default.createElement(pt,E({},e,a)))(e);case"singleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"singleSelect"},e,a)))(e);case"multiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"multiSelect"},e,a)))(e);case"asyncSingleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncSingleSelect"},e,a)))(e);case"asyncMultiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncMultiSelect"},e,a)))(e);case"signature":return(e=>g.default.createElement(Zl,E({},e,a)))(e);case"fileUpload":return(e=>g.default.createElement(_t,E({},e,a)))(e);case"date":return(e=>g.default.createElement(Lt,E({},e,a)))(e);case"paginationTypeTwo":return(e=>g.default.createElement(fo,E({},e,a)))(e);case"toggle":return(e=>g.default.createElement(aa,E({},e,a)))(e);case"icon":return(e=>g.default.createElement(Q,E({},e,a)))(e);case"roundedLoader":return(e=>g.default.createElement(se,E({},e,a)))(e);case"alert":return(e=>g.default.createElement(le,E({},e,a)))(e);case"banner":return(e=>g.default.createElement(Te,E({},e,a)))(e);case"divider":return(e=>g.default.createElement(Pa,E({},e,a)))(e);case"headerComponent":case"headerComponent":return(e=>g.default.createElement(Ao,E({},e,a)))(e);case"documentCard":return(e=>g.default.createElement(J,E({},e,a)))(e);case"imageUploader":return(e=>g.default.createElement(sl,E({},e,a)))(e);case"accordion":return(e=>g.default.createElement($,E({},e,a)))(e);case"content":return(e=>g.default.createElement(ma,E({},e,a)))(e);case"rating":return(e=>g.default.createElement(xo,E({},e,a)))(e);case"buttonPrimary":return(e=>g.default.createElement(ge,E({},e,a)))(e);case"buttonSecondary":return(e=>g.default.createElement(Ce,E({},e,a)))(e);case"buttonTiny":return(e=>g.default.createElement(ve,E({},e,a)))(e);case"buttonLink":return(e=>g.default.createElement(fe,E({},e,a)))(e);case"search":return(e=>g.default.createElement(Hl,E({},e,a)))(e);case"table":return(e=>g.default.createElement(wo,E({},e,a)))(e);case"passwordInput":return(e=>g.default.createElement(xl,E({},e,a)))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Va,{defaultThemeColor:I},g.default.createElement(Ha,{onSubmit:()=>{},customStyles:l},e.map(((e,t)=>e.length>1?g.default.createElement(Ba,null,e.map(((t,l)=>g.default.createElement(La,{cols:e.length},o(t))))):o(e[0]))))))},exports.FormContainer=Va,exports.FormWrapper=Ha,exports.GroupAvatars=Vo,exports.GroupButtons=Wo,exports.GroupButtonsPopup=Zo,exports.GroupStatusCircle=Xo,exports.Header=Ya,exports.HeaderComponent=Ao,exports.HyperLink=Yo,exports.Icon=Q,exports.Image=ke,exports.ImageUploader=sl,exports.Label=$e,exports.LightSecondaryLink=hr,exports.LinkButton=fe,exports.Loader=ie,exports.ModalComp=tr,exports.MultiColumnDiv=La,exports.MultiColumnWrapper=Ba,exports.Navbar=({headerContent:e,bodyContent:a,toggleSideBarOpen:o,headerStyles:r,selectedStyle:c,notSelectedStyle:i,customStylesNameHover:n,listElementStyle:d,customSelectCardColor:s,selectedAppPath:p,setSelectedAppPath:u,setSelectedAppPageId:f,setParentId:m,setRouterObject:b,notificationCircleStyles:h,singleLine:y=!0,customFontColor:C,sortByCore:x=!1})=>{const v=l.useTheme()||I,[w,A]=t.useState(null),[S,k]=t.useState(!1),[E,V]=t.useState([]);if(x){a.sort(((e,t)=>(!0===e.core?1:!1===e.core?0:-1)-(!0===t.core?1:!1===t.core?0:-1)));for(let e of a)if(!0===e.core&&"dynamic-bottom"!==e.type){e.border=!0;break}}let M=a?.filter((e=>!0===e.visibleAsMenu&&"bottom"===e.type.split("-")[1])).length;t.useEffect((()=>{V(p?.split("/")||[]),b({});let e=p?.split("/")||[],t=a&&a.find((t=>e[1]===t.path?.split("/")[1]));B(t),m(t?.id||null)}),[p]),t.useEffect((()=>{!o&&k(!1),!o&&A(null)}),[o]);const B=e=>{if(e?.path===p){f(e?.id||null);let t={...e},l=e?.queryParams;l&&(t.path=e.path+l,t.link=e.link+l),b(t||null)}else e?.routes&&e?.routes.length>0&&e.routes.forEach((e=>B(e)))};let L=y?kr:Er;const z=(e,t,l)=>{let a=e?.path.split("/"),o=a.length;if(e.routes&&e.routes.length>0){let r=e.routes.filter((e=>!0===e.visibleAsMenu)).length>0;return g.default.createElement(_,{key:e?.id+t,showIcon:!!r,contentToggle:g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",marginLeft:`${l}px`},onClick:()=>{e?.queryParams?!r&&u(e.path,e.queryParams):!r&&u(e.path,"")}},g.default.createElement("span",{style:{visibility:3===o&&E[2]===a[2]?"visible":"hidden",marginRight:"16px",width:"7px",height:"7px",borderRadius:"50%",backgroundColor:C||v.additional.white,flexShrink:0}}),g.default.createElement("span",{id:e?.path.substring(1).replace(/\//g,"-"),style:{fontWeight:3===o&&E[2]===a[2]?"bold":"normal",color:C||v.variant.white}}," ",e?.link)),isAccordionOpen:p.includes(e.path),setContentIsOpen:()=>{},toggleIconAnimation:!0,content:g.default.createElement("div",null,e.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>z(e,t,l+8)))),customStylesAccordionContainer:yr,customStylesAccordionToggle:{cursor:"pointer",...Cr},customStylesAccordionContent:xr,showIconInfo:!1,customWrapperStyles:vr})}return g.default.createElement(Hr,{singleLine:y,listElementStyle:d,customFontColor:C,key:e?.id+t,onClick:()=>{u(e.path,e?.queryParams?e.queryParams:"")},theme:v},g.default.createElement("span",{className:"selected-disk",style:{visibility:o<=3&&p===e?.path&&E[E.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"visible":"hidden",marginRight:"16px"}}),g.default.createElement("span",{className:"link",style:{marginLeft:l-8+"px",padding:"4px 8px",borderRadius:"4px",backgroundColor:o>3&&p===e?.path?d?.selectedChildBG||v.additional.white:"transparent",fontWeight:o<=3&&p===e?.path&&E[E.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"bold":"normal",color:C||v.variant.white}}," ",e?.link))};return g.default.createElement(Mr,{onClick:()=>k(!0),onMouseEnter:()=>k(!0),onMouseLeave:()=>{A(null),k(!1)},toggleSideBarOpen:o},g.default.createElement(Lr,{theme:v,headerStyles:r,toggleSideBarOpen:o},e),g.default.createElement(zr,{toggleSideBarOpen:o,staticLayerNo:M},a&&a?.filter((e=>!0===e.visibleAsMenu))?.map(((e,t)=>g.default.createElement("div",{className:"service-layer",key:e?.value+t,onClick:()=>{A(t)},style:{backgroundColor:e?.value?.toLowerCase()===E[1]?.toLowerCase()?s:"transparent",borderTop:e?.border?"1px solid white ":"none"}},"static"!==e.type.split("-")[0]?g.default.createElement(_,{index:t,underMaintenance:e.maintenance,isAccordionOpen:t===w||S&&e?.value?.toLowerCase()===E[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===E[1]?.toLowerCase(),customSelectCardColor:s,customStylesAccordionContainer:{...wr,padding:"0px 0px 0px 0px"},customStylesAccordionToggle:{cursor:e.maintenance?"not-allowed":"pointer",...Ar},customStylesAccordionContent:Sr,contentToggle:g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...c},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...i},toggleName:o,customStylesName:{...L,color:e.maintenance?v.variant["neutral-3"]:C||v.variant.white},customStylesCircle:{background:C||"inherit"},customStylesNameHover:n,size:"MD",user:{userName:e?.label,url:e?.logo,appNameShortForm:e?.appNameShortForm},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:v.variant["neutral-3"]}):a.length-1===t?g.default.createElement(Q,{icon:"person",size:20,color:v.variant["primary-1"],customstyles:{backgroundColor:"white",borderRadius:"50%",padding:"8px",boxSizing:"content-box"}}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===E[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),content:g.default.createElement("div",{style:Vr},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>z(e,t,0))))}):g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center"}},g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...c},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...i},toggleName:!1,customStylesName:{...L,color:C||"inherit"},customStylesCircle:{background:C||"inherit"},customStylesNameHover:n,size:"MD",user:{userName:e?.label,url:e?.logo},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:v.variant["neutral-3"]}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===E[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),e.element?e.element:g.default.createElement("a",{href:e.path,target:e.target||"_blank",rel:"noreferrer",style:{color:e.maintenance?v.variant["neutral-3"]:C||v.variant.white,cursor:e.maintenance?"not-allowed":"pointer",...Br}},e.label)))))))},exports.NumericInput=bl,exports.Overlay=ar,exports.OverlayOptionContainer=Sa,exports.OverlayOptionItemLabel=ka,exports.PageContent=ba,exports.Pagination=lo,exports.PaginationDefault=oo,exports.PaginationTypeTwo=fo,exports.PasswordInput=xl,exports.PrimaryButton=ge,exports.PrimaryStatusChip=Fr,exports.ProgressBar=cr,exports.ProgressSteps=pr,exports.RadioInput=El,exports.Rating=xo,exports.RoundedLoader=se,exports.SearchInput=Hl,exports.SecondaryButton=Ce,exports.SecondaryStatusChip=qr,exports.Sidebar=Wr,exports.SignatureInput=Zl,exports.SlimPrimaryStatusChip=Gr,exports.SlimSecondaryStatusChip=Ur,exports.StatusCircle=qo,exports.StyledCentralBar=ya,exports.StyledClearSearch=ha,exports.StyledCreateRow=xa,exports.StyledRow=va,exports.StyledRowSearch=ga,exports.StyledSearchRow=wa,exports.StyledWarning=Ca,exports.SubmitButtonContainer=Ma,exports.SubmitComponent=({formData:e,onSubmit:l,onReset:a,style:o,...r})=>{const c=e=>{switch(e.type){case"submit":return(e=>g.default.createElement(ge,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>g.default.createElement(Ce,{block:e.block,disabled:r.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Ma,{style:o},e&&e.map(((e,t)=>e.map(((e,t)=>c(e)))))))},exports.Table=wo,exports.Tabs=$r,exports.TextArea=Gl,exports.TextInput=zl,exports.TimeInput=$l,exports.TinyButton=ve,exports.ToastProvider=e=>{const[l,a]=t.useState([]),o=(e,t,l,o)=>{a((a=>[...a,{id:o||ac(),content:t,type:e,localTimeout:l}]))},r=e=>a((t=>t.filter((t=>t.id!==e)))),c=t.useMemo((()=>({open:o,close:r})),[]),[i,n]=t.useState(!1);return t.useEffect((()=>(n(!0),()=>n(!1))),[]),g.default.createElement(tc.Provider,{value:c},e.children,i?f.createPortal(g.default.createElement(lc,null,g.default.createElement("div",{className:`notification-container ${e.position}`},l.map((t=>g.default.createElement(ec,{key:t.id,type:t.type,position:e.position,timeout:e.timeout,localTimeout:t.localTimeout,close:()=>r(t.id)},t.content))))),document.body):null)},exports.ToggleSwitch=aa,exports.Tooltip=Xe,exports.Typography=cc,exports.additionalColors=H,exports.createDarker=T,exports.defaultStyles=P,exports.defaultThemeColor=I,exports.getDefaultStyles=W,exports.graphColor=z,exports.hexToRGB=R,exports.neutralColor=B,exports.primaryColor=V,exports.shadeColor=L,exports.uiColor=M,exports.useToast=()=>t.useContext(tc);
|