groundfloor-react-ui 1.3.37 → 1.3.39
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.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"prop-types";import t,{forwardRef as l,useRef as c,useState as i,useEffect as o,Fragment as a,createRef as r,Component as n,createContext as s,useMemo as d,useContext as p}from"react";import m,{useTheme as b,css as u,keyframes as f,createGlobalStyle as g}from"styled-components";import{ReactSVG as h}from"react-svg";import{usePopperTooltip as y}from"react-popper-tooltip";import C from"react-phone-input-2";import x from"dayjs";import"dayjs/locale/es";import v from"react-datepicker";import w,{components as A}from"react-select";import S from"react-select/async";import k from"react-signature-pad-wrapper";import E from"react-data-table-component";import V from"react-modal";import{createPortal as M}from"react-dom";function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(e[c]=l[c])}return e},L.apply(this,arguments)}const B={"primary-1":"#2A50FD","primary-2":"#081348"},z={error:"#DD0000",success:"#00B904 "},H={"neutral-1":"#39424D","neutral-2":"#6B747F","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},I={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},W={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},P={white:"#FFFFFF",black:"#000000","text-color":B["primary-2"],border:H["neutral-3"]},R={primary:{...B},ui:{...z},neutral:{...H},shade:{...I},graph:{...W},additional:{...P},variant:{...B,...z,...H,...I,...W,...P}},F={common:{},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${R.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:`${R.neutral["neutral-2"]}`},spinner:{"background-color":`${R.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:`${R.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:`${R.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:`${R.variant["neutral-5"]}`,borderLeft:`1px solid ${R.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${R.variant["neutral-5"]}`,borderTop:`1px solid ${R.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:`${R.variant.white}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${R.variant["neutral-5"]}`,borderRight:`1px solid ${R.variant["neutral-5"]}`,borderBottom:`1px solid ${R.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${R.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":`${R.additional.white}`,"border-bottom":`0.5px solid ${R.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:`${R.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 ${R.additional.border}`,width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${R.additional.white}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",width:"20px",height:"20px",color:`${R.additional.white}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${R.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:` ${R.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${R.textColor}`,"background-color":`${R.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:`${R.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:`${R.textColor}`,"background-color":`${R.additional.white}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${R.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${R.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:`${R.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":`${R.additional.white}`,"border-radius":"3.6px",border:`1px solid ${R.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 ${R.additional.white} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${R.additional.white} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${R.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${R.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${R.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${R.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${R.additional.white} `,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${R.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":`${R.additional.white} `,"border-radius":"3.6px",border:`1px solid ${R.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":`${R.variant["neutral-1"]} `,"border-radius":"6px",border:`1px solid ${R.variant["neutral-1"]} `,color:`${R.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"}},Z=(e,t)=>{if(e){let l={};if(e[t]){for(const c in e[t])l[c]=e[t][c],delete e.common[c];for(const t in e.common)l[t]=e.common[t]}return l}};function T(e,t){var l=parseInt(e.slice(1,3),16),c=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+c+", "+i+", "+t+")":"rgb("+l+", "+c+", "+i+")"}T("#FF0000",.5);const j=(e,t)=>{if(e.includes("#")){e=e.replace("#","");const[t,l,c]=[e[0]+e[1],e[2]+e[3],e[4]+e[5]];e=`${parseInt(t,16)}, ${parseInt(l,16)}, ${parseInt(c,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")),"")}`},q=m.div`
|
|
1
|
+
import e from"prop-types";import t,{forwardRef as l,useRef as c,useState as i,useEffect as o,Fragment as a,createRef as r,Component as n,createContext as s,useMemo as d,useContext as p}from"react";import m,{useTheme as b,css as u,keyframes as f,createGlobalStyle as g}from"styled-components";import{ReactSVG as h}from"react-svg";import{usePopperTooltip as y}from"react-popper-tooltip";import C from"react-phone-input-2";import x from"dayjs";import"dayjs/locale/es";import v from"react-datepicker";import w,{components as A}from"react-select";import S from"react-select/async";import k from"react-signature-pad-wrapper";import E from"react-data-table-component";import V from"react-modal";import{createPortal as M}from"react-dom";function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var c in l)({}).hasOwnProperty.call(l,c)&&(e[c]=l[c])}return e},L.apply(null,arguments)}const z={"primary-1":"#2A50FD","primary-2":"#081348"},B={error:"#DD0000",success:"#00B904 "},H={"neutral-1":"#39424D","neutral-2":"#6B747F","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},I={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},W={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},P={white:"#FFFFFF",black:"#000000","text-color":z["primary-2"],border:H["neutral-3"]},R={primary:{...z},ui:{...B},neutral:{...H},shade:{...I},graph:{...W},additional:{...P},variant:{...z,...B,...H,...I,...W,...P}},Z={common:{},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${R.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:`${R.neutral["neutral-2"]}`},spinner:{"background-color":`${R.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:`${R.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:`${R.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:`${R.variant["neutral-5"]}`,borderLeft:`1px solid ${R.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${R.variant["neutral-5"]}`,borderTop:`1px solid ${R.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:`${R.variant.white}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${R.variant["neutral-5"]}`,borderRight:`1px solid ${R.variant["neutral-5"]}`,borderBottom:`1px solid ${R.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${R.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":`${R.additional.white}`,"border-bottom":`0.5px solid ${R.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:`${R.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 ${R.additional.border}`,width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${R.additional.white}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",width:"20px",height:"20px",color:`${R.additional.white}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${R.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:` ${R.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${R.textColor}`,"background-color":`${R.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:`${R.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:`${R.textColor}`,"background-color":`${R.additional.white}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${R.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${R.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:`${R.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":`${R.additional.white}`,"border-radius":"3.6px",border:`1px solid ${R.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 ${R.additional.white} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${R.additional.white} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${R.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${R.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${R.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${R.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${R.additional.white} `,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${R.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":`${R.additional.white} `,"border-radius":"3.6px",border:`1px solid ${R.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":`${R.variant["neutral-1"]} `,"border-radius":"6px",border:`1px solid ${R.variant["neutral-1"]} `,color:`${R.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"}},F=(e,t)=>{if(e){let l={};if(e[t]){for(const c in e[t])l[c]=e[t][c],delete e.common[c];for(const t in e.common)l[t]=e.common[t]}return l}};function T(e,t){var l=parseInt(e.slice(1,3),16),c=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+c+", "+i+", "+t+")":"rgb("+l+", "+c+", "+i+")"}T("#FF0000",.5);const j=(e,t)=>{if(e.includes("#")){e=e.replace("#","");const[t,l,c]=[e[0]+e[1],e[2]+e[3],e[4]+e[5]];e=`${parseInt(t,16)}, ${parseInt(l,16)}, ${parseInt(c,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")),"")}`},q=m.div`
|
|
2
2
|
color: ${({activeTheme:e})=>e.additional["text-color"]};
|
|
3
3
|
padding-top: 24px;
|
|
4
4
|
padding-bottom: 24px;
|
|
@@ -32,7 +32,7 @@ import e from"prop-types";import t,{forwardRef as l,useRef as c,useState as i,us
|
|
|
32
32
|
|
|
33
33
|
// custom styles
|
|
34
34
|
${({customStyles:e})=>e}
|
|
35
|
-
`,G=l((({type:e,header:l,content:c,...i},o)=>{const a=b()||R;return t.createElement(O,L({inBuiltCss:
|
|
35
|
+
`,G=l((({type:e,header:l,content:c,...i},o)=>{const a=b()||R;return t.createElement(O,L({inBuiltCss:Z,activeTheme:a},i,{ref:o}),l,c)}));G.propTypes={type:e.string,header:e.any,content:e.any};const X={sm:{cardWidth:"178px",cardMinHeight:"88px",borderRadius:"4px",border:"0.7px",bodyHeight:"55px",footerFontSize:"10px",footerMinHeight:"31px",footerPadding:"10.5px 16px",footerLineHeight:"16px",lineHeight:"12px"},md:{cardWidth:"215px",cardMinHeight:"123px",borderRadius:"6px",border:"1px",bodyHeight:"67px",footerFontSize:"14px",footerMinHeight:"54px",footerPadding:"18px 19px",footerLineHeight:"12px",lineHeight:"16px"}},J=m.div`
|
|
36
36
|
${({trimFileName:e})=>e?u`
|
|
37
37
|
height: ${({size:e})=>X[e].cardMinHeight};
|
|
38
38
|
`:u`
|
|
@@ -348,7 +348,7 @@ import e from"prop-types";import t,{forwardRef as l,useRef as c,useState as i,us
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
`}
|
|
351
|
-
`,pe=({size:e,thickness:l,propellerHeight:c,customStyles:i})=>t.createElement(de,{inBuiltCss:
|
|
351
|
+
`,pe=({size:e,thickness:l,propellerHeight:c,customStyles:i})=>t.createElement(de,{inBuiltCss:Z,size:e,thickness:l,propellerHeight:c,customStyles:i,type:"spinner"},t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null));pe.propTypes={size:e.number,thickness:e.number,propellerHeight:e.number,customStyles:e.object},pe.defaultProps={size:20,thickness:2,propellerHeight:25,customStyles:null};const me=f`
|
|
352
352
|
0% { transform: rotate(0deg); }
|
|
353
353
|
100% { transform: rotate(360deg); }
|
|
354
354
|
`,be=m.div`
|
|
@@ -389,7 +389,7 @@ ${({customStyles:e})=>e}
|
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
//Set the styles from the default styles object
|
|
392
|
-
${({theme:e,defaultStyle:t})=>
|
|
392
|
+
${({theme:e,defaultStyle:t})=>F(e,t)}
|
|
393
393
|
|
|
394
394
|
// custom styles
|
|
395
395
|
${({btnStyle:e})=>e}
|
|
@@ -441,7 +441,7 @@ ${({customStyles:e})=>e}
|
|
|
441
441
|
transition: all 0.3s;
|
|
442
442
|
|
|
443
443
|
//Set the styles from the default styles object
|
|
444
|
-
${({theme:e,defaultStyle:t})=>
|
|
444
|
+
${({theme:e,defaultStyle:t})=>F(e,t)}
|
|
445
445
|
&:disabled {
|
|
446
446
|
color: #929eac;
|
|
447
447
|
border: 1px solid ${({theme:e})=>e.neutral["neutral-3"]};
|
|
@@ -483,7 +483,7 @@ ${({customStyles:e})=>e}
|
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
//Set the styles from the default styles object
|
|
486
|
-
${({theme:e,defaultStyle:t})=>
|
|
486
|
+
${({theme:e,defaultStyle:t})=>F(e,t)}
|
|
487
487
|
|
|
488
488
|
&:hover {
|
|
489
489
|
background-color: ${({theme:e,disabled:t,btnStyle:l})=>!t&&j(l.backgroundColor?l.backgroundColor:e.primary["primary-1"],.15)};
|
|
@@ -513,9 +513,9 @@ ${({customStyles:e})=>e}
|
|
|
513
513
|
`,Ve=({data:e,onClick:l,clickable:c,breakingPoint:r,breakingNumber:n,customShapeStyle:s,customShapeLabelStyle:d,customShapeValueStyle:p})=>{const m=b()||R,[u,f]=i(0),[g,h]=i({next:!0,prev:!1}),[y,C]=i(100),x=e.length,v=()=>{h(u-1==0?{next:!0,prev:!1}:{next:!0,prev:!0}),f((e=>e-1))},w=()=>{f((e=>e+1));let e=Math.ceil(100/y);h(x-e===u?{next:!1,prev:!0}:{next:!0,prev:!0})},{width:A}=ae();o((()=>{S()}),[A]);const S=()=>{let e=0;switch(!0){case 1===x:e=100;break;case A<=576:e=85;break;case A<=r:e=50;break;case x<=n:e=100/x;break;case x>n&&A>r&&A<=900:e=Math.ceil(A/22);break;case x>n&&A>900&&A<=1020:e=Math.ceil(A/24);break;case x>n&&A>1020&&A<=1200:e=Math.ceil(A/27);break;case x>n&&A>1200&&A<=1440:e=Math.ceil(A/40);break;case x>n&&A>1440:let t=Math.ceil(A/85);e=t<=20?t:20;break;default:e=100}C(e)};return t.createElement(a,null," ",x>0&&t.createElement(a,null," ",t.createElement("div",{style:{display:x<=n||A<=r?"block":"flex",width:"100%",alignItems:"center",gap:"4px"}}," ",x>n&&A>r&&t.createElement(xe,{btnStyle:{backgroundColor:"transparent",padding:0,border:"none"},disabled:!g.prev,onClick:v},t.createElement(_,{icon:"chevron-left",color:m.variant[g.prev?"primary-2":"neutral-3"],size:22,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})),t.createElement("div",{style:{display:"flex",alignItems:"center",overflow:"hidden",width:"100%",justifyContent:"space-between"}},e.map(((i,o)=>t.createElement("div",{key:o,style:{scrollSnapAlign:"center",minWidth:`${y}%`,transform:`translateX(-${100*u}%)`,transition:"transform 0.5s ease-in-out"}},t.createElement("div",{style:{width:"100%",height:"100%"}},t.createElement(Ee,{customShapeStyle:s,identity:0===o?"first-arrow":e.length-1-o==0?"last-arrow":"others",backgroundColor:i?.backgroundColor,theme:m,clickable:c,onClick:()=>c?l(i):null},t.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"16px",minWidth:"100%",height:"100%"},title:`value: ${i.value}, status: ${i.label}`},t.createElement("span",{style:{fontSize:"22px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:i?.color?i.color:m.variant.white,...p}},i.value),t.createElement("span",{style:{fontSize:"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:i?.color?i.color:m.variant.white,...d}},i.label))))," ")))," ")," ",x>n&&A>r&&t.createElement(xe,{btnStyle:{backgroundColor:"transparent",padding:0,border:"none"},disabled:!g.next,onClick:w},t.createElement(_,{icon:"chevron-right",color:m.variant[g.next?"primary-2":"neutral-3"],size:22,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}}))),A<=r&&e.length>1&&t.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",margin:"8px 0",gap:"16px"}}," ",t.createElement(xe,{btnStyle:{backgroundColor:"transparent",padding:"6px",border:".5px solid "+m.variant["neutral-4"],boxShadow:"-20px 5px 37px rgba(56, 66, 100, 0.0880136)"},disabled:!g.prev,onClick:v},t.createElement(_,{icon:"chevron-left",color:m.variant[g.prev?"primary-2":"neutral-3"],size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})),t.createElement(xe,{btnStyle:{backgroundColor:"transparent",padding:"6px",border:".5px solid "+m.variant["neutral-4"],boxShadow:"-20px 5px 37px rgba(56, 66, 100, 0.0880136)"},disabled:!g.next,onClick:w},t.createElement(_,{icon:"chevron-right",color:m.variant[g.next?"primary-2":"neutral-3"],size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})))))};Ve.propTypes={data:e.array,onClick:e.func,clickable:e.bool,breakingPoint:e.number,breakingNumber:e.number,customShapeStyle:e.object,customShapeLabelStyle:e.object,customShapeValueStyle:e.object},Ve.defaultProps={data:[],onClick:()=>null,clickable:!1,breakingPoint:768,breakingNumber:5,customShapeStyle:{},customShapeLabelStyle:{},customShapeValueStyle:{}};const Me=m.img`
|
|
514
514
|
//Set the styles from the default styles object
|
|
515
515
|
${({inBuiltCss:e,type:t,size:l,customStyles:c})=>{if(e){let i={};if(e[t]){for(const t in e.common)i[t]=e.common[t];for(const l in e[t])i[l]=e[t][l],delete e.common[l];for(const c in e[`${t}${l}`])i[c]=e[`${t}${l}`][c],delete e.common[c]}return{...i,...c}}}}
|
|
516
|
-
`,Le=({customStyles:e,type:l,size:a,alt:r,src:n,handleImageStatus:s,...d})=>{const[p,m]=i("loading"),b=c(null),u=()=>{m("loaded"),s&&s("loaded")},f=()=>{m("failed"),s&&s("failed")};return o((()=>{const e=b.current;if(e)return e.addEventListener("load",u),e.addEventListener("error",f),()=>{e.removeEventListener("load",u),e.removeEventListener("error",f)}}),[p]),t.createElement(Me,L({},d,{inBuiltCss:
|
|
516
|
+
`,Le=({customStyles:e,type:l,size:a,alt:r,src:n,handleImageStatus:s,...d})=>{const[p,m]=i("loading"),b=c(null),u=()=>{m("loaded"),s&&s("loaded")},f=()=>{m("failed"),s&&s("failed")};return o((()=>{const e=b.current;if(e)return e.addEventListener("load",u),e.addEventListener("error",f),()=>{e.removeEventListener("load",u),e.removeEventListener("error",f)}}),[p]),t.createElement(Me,L({},d,{inBuiltCss:Z,customStyles:e,type:l,alt:r,src:n,ref:b,size:a}))};Le.propTypes={customStyles:e.object,type:e.string,size:e.oneOf(["SM","MD","LG"]),alt:e.string,src:e.string,handleImageStatus:e.func},Le.defaultProps={customStyles:{},type:"image",alt:"image alternative",src:null,handleImageStatus:null};const ze=m.span`
|
|
517
517
|
${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let c={};if(e[t]){for(const t in e.common)c[t]=e.common[t];for(const l in e[t])c[l]=e[t][l],delete e.common[l]}return{...c,...l}}}}
|
|
518
|
-
`,
|
|
518
|
+
`,Be=m.div`
|
|
519
519
|
|
|
520
520
|
background-color:${({theme:e})=>e.primary["primary-1"]};
|
|
521
521
|
color: ${({theme:e})=>e.additional.white};
|
|
@@ -525,7 +525,7 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let c={};if(e[t]){for(const t i
|
|
|
525
525
|
color:${({theme:e})=>e.additional["text-color"]};
|
|
526
526
|
|
|
527
527
|
${({inBuiltCss:e,type:t,size:l,customStyles:c})=>{if(e){let i={};if(e[t]){for(const t in e.common)i[t]=e.common[t];for(const l in e[t])delete e.common[l],i[l]=e[t][l];for(const c in e[`${t}${l}`])i[c]=e[`${t}${l}`][c],delete e.common[c]}return{...i,...c}}}}
|
|
528
|
-
`,Ie=({customStylesContainer:e,customStylesImage:l,customStylesCircle:c,customStylesName:i,size:o,toggleName:a,user:r,...n})=>{const s=b()||R;return t.createElement(
|
|
528
|
+
`,Ie=({customStylesContainer:e,customStylesImage:l,customStylesCircle:c,customStylesName:i,size:o,toggleName:a,user:r,...n})=>{const s=b()||R;return t.createElement(ze,L({inBuiltCss:Z,theme:s,customStyles:e,type:"avatarContainer"},n),r?.url&&t.createElement(Le,L({},n,{customStyles:l,type:"imageAvatar",size:o,alt:"user-picture",src:r.url})),t.createElement(Be,L({},n,{theme:s,inBuiltCss:Z,type:"avatarCircle",customStyles:c,size:o,style:{visibility:r?.url?"hidden":"visible"}}),r?.userName&&r?.userName.split(" ").length>=2?r?.userName.split(" ")[0].charAt(0).toUpperCase()+r?.userName.split(" ")[1].charAt(0).toUpperCase():r?.userName&&1===r?.userName.split(" ").length&&r?.userName.split(" ")[0].charAt(0).toUpperCase()),a&&t.createElement(He,L({inBuiltCss:Z},n,{theme:s,type:"avatarName",customStyles:i,size:o}),r.userName," "))};Ie.propTypes={customStylesCircle:e.object,customStylesName:e.object,customStylesContainer:e.object,customStylesImage:e.object,toggleName:e.bool,size:e.oneOf(["SM","MD","LG"]),user:e.object},Ie.defaultProps={block:!1,size:"MD",toggleName:!1,user:null,customStylesContainer:null,customStylesImage:null,customStylesCircle:null,customStylesName:null};const We=m.span`
|
|
529
529
|
${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let c={};if(e[t]){for(const t in e.common)c[t]=e.common[t];for(const l in e[t])c[l]=e[t][l],delete e.common[l]}return{...c,...l}}}}
|
|
530
530
|
width: auto;
|
|
531
531
|
`,Pe=m.div`
|
|
@@ -547,7 +547,7 @@ ${({inBuiltCss:e,type:t,size:l,customStyles:c})=>{if(e){let i={};if(e[t]){for(co
|
|
|
547
547
|
${({customStylesHover:e})=>e}
|
|
548
548
|
|
|
549
549
|
}
|
|
550
|
-
`,
|
|
550
|
+
`,Ze=m.span`
|
|
551
551
|
background-color: red;
|
|
552
552
|
color: white;
|
|
553
553
|
height: 19px;
|
|
@@ -563,7 +563,7 @@ ${({inBuiltCss:e,type:t,size:l,customStyles:c})=>{if(e){let i={};if(e[t]){for(co
|
|
|
563
563
|
|
|
564
564
|
// custom styles
|
|
565
565
|
${({notificationCircleStyles:e})=>e}
|
|
566
|
-
`,
|
|
566
|
+
`,Fe=({customStylesContainer:e,customStylesImage:l,customStylesCircle:c,customStylesName:o,customStylesNameHover:a,size:r,toggleName:n,user:s,border:d,isSelected:p,selectedStyle:m,notSelectedStyle:u,notificationCount:f,notificationCircleStyles:g,icon:h,underMaintenance:y})=>{const C=b()||R,[x,v]=i("loading");return t.createElement(We,{border:d,inBuiltCss:Z,customStyles:e,type:"avatarContainer"},t.createElement(Pe,{theme:C,selectedStyle:m,notSelectedStyle:u,inBuiltCss:Z,type:"avatarCircle",customStyles:c,size:r,style:{visibility:"loaded"!==x?"visible":"hidden"},isSelected:p},h||(s.appNameShortForm?s.appNameShortForm:s?.url?t.createElement(Le,{inBuiltCss:Z,customStyles:{minWidth:"36px",minHeight:"36px",...l},type:"imageAvatar",size:r,alt:"service-layer",src:s.url,handleImageStatus:e=>{v(e)},style:{visibility:"loaded"!==x?"hidden":"visible"}}):s?.userName&&s?.userName.split(" ").length>=2?s?.userName.split(" ")[0].charAt(0).toUpperCase()+s?.userName.split(" ")[1].charAt(0).toUpperCase():s?.userName&&1===s?.userName.split(" ").length&&s?.userName.split(" ")[0].charAt(0).toUpperCase())),f>0&&t.createElement(Ze,{notificationCircleStyles:g},f>9?"9+":f)," ",n&&t.createElement(Re,{theme:C,inBuiltCss:Z,type:"avatarName",customStyles:o,customStylesHover:a,size:r,underMaintenance:y},s.userName," "))};Fe.propTypes={customStylesCircle:e.object,customStylesName:e.object,customStylesContainer:e.object,customStylesImage:e.object,toggleName:e.bool,size:e.oneOf(["SM","MD","LG"]),user:e.object,customStylesNameHover:e.object,notificationCircleStyles:e.object,notificationCount:e.number,underMaintenance:e.bool},Fe.defaultProps={block:!1,size:"MD",toggleName:!1,user:null,customStylesContainer:null,customStylesImage:null,customStylesCircle:null,customStylesName:null,notificationCircleStyles:{},notificationCount:0,underMaintenance:!1};const Te=m.div`
|
|
567
567
|
color: ${({theme:e})=>e.additional["text-color"]};
|
|
568
568
|
display: flex;
|
|
569
569
|
background-color: ${({backgroundColor:e,theme:t})=>e||t.variant["insight-purple"]};
|
|
@@ -638,23 +638,23 @@ ${({inBuiltCss:e,type:t,customStylesTPArrow:l})=>{if(e){let t={};if(e["tooltip-a
|
|
|
638
638
|
`,Ge=m.div`
|
|
639
639
|
|
|
640
640
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
641
|
-
${({inBuiltCss:e,defaultTooltipContentStyle:t})=>
|
|
641
|
+
${({inBuiltCss:e,defaultTooltipContentStyle:t})=>F(e,t)}
|
|
642
642
|
// custom styles
|
|
643
643
|
${({customContentStyle:e})=>e}
|
|
644
644
|
`,Xe=m.div`
|
|
645
|
-
${({inBuiltCss:e,defaultTooltipHeaderStyle:t})=>
|
|
645
|
+
${({inBuiltCss:e,defaultTooltipHeaderStyle:t})=>F(e,t)}
|
|
646
646
|
// custom styles
|
|
647
647
|
${({customHeaderStyle:e})=>e}
|
|
648
648
|
`,Je=m.div`
|
|
649
|
-
${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>
|
|
649
|
+
${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>F(e,t)}
|
|
650
650
|
// custom styles
|
|
651
651
|
${({customBodyStyle:e})=>e}
|
|
652
652
|
`,Ue=m.div`
|
|
653
653
|
`,Ye=m.div`
|
|
654
|
-
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>
|
|
654
|
+
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>F(e,t)}
|
|
655
655
|
// custom styles
|
|
656
656
|
${({customTriggerStyle:e})=>e}
|
|
657
|
-
`,Ne=({inBuiltCss:e,contentTrigger:l,contentTooltip:c,popperOptionsP:i,settings:o,customStylesTPContainer:a,customStylesTPAbottom:r,customStylesTPAbottomBefore:n,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:f,customStylesTPArightAfter:g,customStylesTPAleft:h,customStylesTPAleftBefore:C,customStylesTPAleftAfter:x,customStylesTPArrow:v,customStylesTPAbefore:w,customStylesTPAafter:A,customTooltipContentStyle:S,customContentStyle:k,customHeaderStyle:E,customBodyStyle:V,customTriggerStyle:M,headerTooltip:
|
|
657
|
+
`,Ne=({inBuiltCss:e,contentTrigger:l,contentTooltip:c,popperOptionsP:i,settings:o,customStylesTPContainer:a,customStylesTPAbottom:r,customStylesTPAbottomBefore:n,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:f,customStylesTPArightAfter:g,customStylesTPAleft:h,customStylesTPAleftBefore:C,customStylesTPAleftAfter:x,customStylesTPArrow:v,customStylesTPAbefore:w,customStylesTPAafter:A,customTooltipContentStyle:S,customContentStyle:k,customHeaderStyle:E,customBodyStyle:V,customTriggerStyle:M,headerTooltip:z,footerTooltip:B,...H})=>{const I=b()||R,W={modifiers:[{name:"offset",options:{offset:[0,23]}}],strategy:"absolute",...i},{getArrowProps:P,getTooltipProps:F,setTooltipRef:T,setTriggerRef:j,visible:q}=y({interactive:!0,...o},W);return t.createElement(t.Fragment,null,t.createElement(Ye,{ref:j,inBuiltCss:Z,customTriggerStyle:M,style:{width:"fit-content",height:"fit-content",display:"inline-block"}},l),q&&t.createElement(De,L({inBuiltCss:Z,theme:I,ref:T},F({className:"tooltip-container"}),{customStylesTPContainer:a,customStylesTPAbottom:r,customStylesTPAbottomBefore:n,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:f,customStylesTPArightAfter:g,customStylesTPAleft:h,customStylesTPAleftBefore:C,customStylesTPAleftAfter:x}),t.createElement(Oe,L({inBuiltCss:Z},P({className:"tooltip-arrow"}),{customStylesTPArrow:v,customStylesTPAbefore:w,customStylesTPAafter:A})),t.createElement(Ge,L({defaultTooltipContentStyle:"popOver-Content",theme:I,inBuiltCss:Z},H,{customContentStyle:k}),t.createElement(Xe,L({defaultTooltipHeaderStyle:"popOver-header",theme:I,inBuiltCss:Z},H,{customHeaderStyle:E}),z),t.createElement(Je,L({defaultTooltipBodyStyle:"popOver-body",theme:I,inBuiltCss:Z},H,{customBodyStyle:V}),c),t.createElement(Ue,null,B))))};Ne.propTypes={contentTrigger:e.any,headerTooltip:e.any,contentTooltip:e.any,footerTooltip:e.any,popperOptionsP:e.object,settings:e.object,customContentStyle:e.object,customHeaderStyle:e.object,customBodyStyle:e.object,customStylesTPContainer:e.object,customStylesTPAbottom:e.object,customStylesTPAbottomBefore:e.object,customStylesTPAbottomAfter:e.object,customStylesTPAtop:e.object,customStylesTPAtopBefore:e.object,customStylesTPAtopAfter:e.object,customStylesTPAright:e.object,customStylesTPArightBefore:e.object,customStylesTPArightAfter:e.object,customStylesTPAleft:e.object,customStylesTPAleftBefore:e.object,customStylesTPAleftAfter:e.object,customStylesTPArrow:e.object,customStylesTPAbefore:e.object,customStylesTPAafter:e.object,customTriggerStyle:e.object},Ne.defaultProps={contentTrigger:t.createElement("div",null,"Trigger"),headerTooltip:"",contentTooltip:"",footerTooltip:t.createElement(Ae,{size:"sm"},"Next"),customStylesTPContainer:{border:"none"},customTriggerStyle:{}};const Qe=m.div`
|
|
658
658
|
background: transparent;
|
|
659
659
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
660
660
|
font-size: ${({isPrimary:e})=>e?"16px":"14px"};
|
|
@@ -728,13 +728,13 @@ ${({customTriggerStyle:e})=>e}
|
|
|
728
728
|
display: flex;
|
|
729
729
|
margin-bottom: 15px;
|
|
730
730
|
position: relative;
|
|
731
|
-
`,et=({wrap:e,block:l,style:a,variant:r,variantSeparator:n,appLogo:s,separator:d,items:p,onClick:m,isPrimary:u,collapse:f,folderIcon:g,folderIconProps:h,iconMargin:y,...C})=>{const x=b()||R,v=c(null),[w,A]=i(void 0),S=()=>{A(v?.current?.scrollWidth<v?.current?.offsetWidth)};o((()=>{S()}),[p]),o((()=>{if(!e)return window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)}),[]);const k=p.map(((e,l)=>t.createElement(Ke,{key:l},0!==l||s?t.createElement("div",{className:"breadcrumb-icon-separator"},d):null,t.createElement($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:r,href:e.href,"data-title":e.label},e.label))));let E,V;ae().width<500?(E=2,V=p.slice(-1)):(E=4,V=p.slice(-3));const M=V.map(((e,l)=>t.createElement(Ke,{key:p.length-3},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:r,href:e.href,"data-title":e.label},e.label)))),
|
|
731
|
+
`,et=({wrap:e,block:l,style:a,variant:r,variantSeparator:n,appLogo:s,separator:d,items:p,onClick:m,isPrimary:u,collapse:f,folderIcon:g,folderIconProps:h,iconMargin:y,...C})=>{const x=b()||R,v=c(null),[w,A]=i(void 0),S=()=>{A(v?.current?.scrollWidth<v?.current?.offsetWidth)};o((()=>{S()}),[p]),o((()=>{if(!e)return window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)}),[]);const k=p.map(((e,l)=>t.createElement(Ke,{key:l},0!==l||s?t.createElement("div",{className:"breadcrumb-icon-separator"},d):null,t.createElement($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:r,href:e.href,"data-title":e.label},e.label))));let E,V;ae().width<500?(E=2,V=p.slice(-1)):(E=4,V=p.slice(-3));const M=V.map(((e,l)=>t.createElement(Ke,{key:p.length-3},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:r,href:e.href,"data-title":e.label},e.label)))),z=p.slice(1,p.length-(E-1)).map(((e,l)=>t.createElement(_e,{key:l},g?t.createElement("div",{style:{marginRight:"10px",marginTop:"2.3px"}},t.createElement(_,L({icon:"folder-icon",size:17,transform:"translate(0px,-0.5px)"},h))):null,t.createElement($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:r,href:e.href,"data-title":e.label},e.label)))),B=p?1==f?p.length<=E?k:t.createElement(t.Fragment,null,t.createElement(Ke,{key:0},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:p[0].id,theme:x,onClick:()=>{p[0].href&&m(p[0].href)},variant:r,href:p[0].href,"data-title":p[0].label},p[0].label)),t.createElement(Ke,null,t.createElement("div",{className:"breadcrumb-icon-separator",style:{marginTop:"-3px"}},d),t.createElement(Ne,{contentTrigger:t.createElement(_,{icon:"ellipses-horizontal",size:12,color:"#6B747F",style:{padding:"0 4px",paddingBottom:"6px",marginTop:"-5.5px"}}),customTriggerStyle:{cursor:"pointer",background:"#E2E6F5",borderRadius:"3px"},headerTooltip:"",customHeaderStyle:{marginBottom:"0px"},contentTooltip:t.createElement(t.Fragment,null,z),footerTooltip:"",popperOptionsP:{placement:"bottom"},customContentStyle:{width:"210px",backgroundColor:"white",color:"#6B747F",boxShadow:"0px 6px 40px rgba(56, 66, 100, 0.482627)",display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"16px",gap:"8px",position:"absolute",borderRadius:"3.6px",paddingBottom:"0px",marginTop:"-8.8px",marginLeft:"-6px"},customBodyStyle:{marginBottom:"0px"},customStylesTPArrow:{display:"none"},settings:{closeOnOutsideClick:!0,trigger:"click"}})),M):k:null;return t.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},t.createElement("div",{style:{display:"flex",position:"absolute"}},t.createElement(Qe,L({theme:x,isWrap:e,ref:e?null:v,isBreadcrumbVisible:w,block:l,variant:r,variantSeparator:n,style:a,isPrimary:u,iconMargin:y},C),s&&t.createElement("div",{className:"breadcrumb-icon"},s),B)))};et.propTypes={variant:e.string,variantSeparator:e.string,onClick:e.func,appLogo:e.any,separator:e.any,items:e.array,block:e.bool,wrap:e.bool,isPrimary:e.bool,collapse:e.bool,folderIcon:e.bool,iconMargin:e.string},et.defaultProps={variant:"neutral-2",variantSeparator:"neutral-3",block:!1,onClick:void 0,wrap:!1,isPrimary:!0,collapse:!0,folderIcon:!0};const tt=m.label`
|
|
732
732
|
//Set the styles from the default styles object
|
|
733
|
-
${({inBuiltCss:e,type:t})=>
|
|
733
|
+
${({inBuiltCss:e,type:t})=>F(e,t)}
|
|
734
734
|
|
|
735
735
|
// custom styles
|
|
736
736
|
${({customStyles:e})=>e}
|
|
737
|
-
`,lt=({customStyles:e,text:l,className:c,required:i,...o})=>{const a=b()||R;return t.createElement(tt,L({required:i,inBuiltCss:
|
|
737
|
+
`,lt=({customStyles:e,text:l,className:c,required:i,...o})=>{const a=b()||R;return t.createElement(tt,L({required:i,inBuiltCss:Z,customStyles:e,type:"label"},o),l,i&&t.createElement("div",{style:{marginLeft:"4px",color:`${a.variant.error}`}},"*"))};lt.propTypes={customStyles:e.object,text:e.string},lt.defaultProps={text:""};const ct=m.div`
|
|
738
738
|
display: flex;
|
|
739
739
|
flex-direction: column;
|
|
740
740
|
${({containerStyle:e})=>e};
|
|
@@ -787,7 +787,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
787
787
|
box-sizing: initial;
|
|
788
788
|
|
|
789
789
|
//Set the styles from the default styles object
|
|
790
|
-
${({inBuiltCss:e,defaultCheckBoxOuterStyle:t})=>
|
|
790
|
+
${({inBuiltCss:e,defaultCheckBoxOuterStyle:t})=>F(e,t)}
|
|
791
791
|
|
|
792
792
|
border: 2px solid ${({checkedCheckBoxColor:e,defaultBorderColor:t,checked:l,theme:c})=>l&&e?e:l&&!e?c.primary["primary-1"]:!l&&t?t:l||t?void 0:c.additional.border}
|
|
793
793
|
};
|
|
@@ -799,7 +799,7 @@ opacity: ${({disabled:e,disabledOpacity:t})=>e?t:"1"};
|
|
|
799
799
|
box-sizing: initial;
|
|
800
800
|
|
|
801
801
|
//Set the styles from the default styles object
|
|
802
|
-
${({inBuiltCss:e,defaultCheckBoxInnerStyle:t})=>
|
|
802
|
+
${({inBuiltCss:e,defaultCheckBoxInnerStyle:t})=>F(e,t)}
|
|
803
803
|
|
|
804
804
|
// background-image: url(${({signCheck:e})=>e});
|
|
805
805
|
background-color: ${({checked:e,checkedCheckBoxColor:t,theme:l})=>e&&t?t:e&&!t?l.primary["primary-1"]:e?void 0:l.additional.white};
|
|
@@ -816,7 +816,7 @@ opacity: ${({disabled:e,disabledOpacity:t})=>e?t:"1"};
|
|
|
816
816
|
word-break: break-word;
|
|
817
817
|
|
|
818
818
|
//Set the styles from the default styles object
|
|
819
|
-
${({inBuiltCss:e,type:t})=>
|
|
819
|
+
${({inBuiltCss:e,type:t})=>F(e,t)}
|
|
820
820
|
|
|
821
821
|
color: ${({theme:e,checked:t,defaultTextColor:l,checkedTextColor:c})=>t&&c?c:t&&!c?e.neutral["neutral-1"]:!t&&l?l:t||l?void 0:e.neutral["neutral-2"]};
|
|
822
822
|
|
|
@@ -838,7 +838,7 @@ opacity: ${({disabled:e,disabledOpacity:t})=>e?t:"1"};
|
|
|
838
838
|
`,ut=m.div`
|
|
839
839
|
flex-direction: ${({inline:e})=>e?"row":"column"};
|
|
840
840
|
width: ${({inline:e})=>e?"initial":"auto"};
|
|
841
|
-
`,ft=({getCheckedArr:e,checkBoxOuterStyle:l,checkBoxInnerStyle:c,optionTextStyle:i,defaultBorderColor:a,defaultTextColor:r,checkedTextColor:n,checkedCheckBoxColor:s,labelStyle:d,label:p,options:m,setOptions:u,wrapperStyles:f,inline:g,wrapperStyle:h,isRequired:y,iconProps:C,disabledOpacity:x,disableAllCheckbox:v,maximumCheckLimit:w,...A})=>{const S=b()||R;o((()=>{if(v){let e=[...m];e.map((e=>{e.disabled=!0})),u(e)}k(m,w),V(m)}),[]);const k=(e,t)=>{let l=[...e],c=0;for(let e of l)e.checked&&c++;if(c>t&&t>0){let e=c-t,i=l.length-1;for(;e&&i>=0;)l[i].checked&&(l[i].checked=!1,l[i].disabled=!0,e--),i--;for(let e=0;e<l.length;e++)l[e].checked||(l[e].disabled=!0);u(l)}},E=e=>{let t=0;for(let e of m)e.checked&&t++;if(e===t){let e=[...m];for(let t of e)t.checked||(t.disabled=!0);u(e)}else{let e=[...m];for(let t of e)t.checked||(t.disabled=!1);u(e)}},V=t=>{let l=t.filter((e=>!1!==e.checked));e(l)},M=Object.assign({display:"flex",flexDirection:"column",flexWrap:"wrap"},h);return t.createElement("div",L({style:M},A),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,L({customStyles:d,type:"check-label",text:p},A)),y&&t.createElement("div",{style:{marginLeft:"4px",color:`${S.variant.error}`}},"*")),t.createElement(ut,L({style:{display:"flex",flexWrap:"wrap"},inline:g},A),m?.map(((e,o)=>t.createElement(bt,L({inline:g,id:e.id,key:`${e.name}-${o}`,onClick:()=>{!e.disabled&&((e,t,l)=>{let c=[...m];c[t].checked=!e.checked,u(c),V(c),l&&E(l)})(e,o,w)},wrapperStyles:f},A),e.checked?t.createElement(pt,L({theme:S,inBuiltCss:
|
|
841
|
+
`,ft=({getCheckedArr:e,checkBoxOuterStyle:l,checkBoxInnerStyle:c,optionTextStyle:i,defaultBorderColor:a,defaultTextColor:r,checkedTextColor:n,checkedCheckBoxColor:s,labelStyle:d,label:p,options:m,setOptions:u,wrapperStyles:f,inline:g,wrapperStyle:h,isRequired:y,iconProps:C,disabledOpacity:x,disableAllCheckbox:v,maximumCheckLimit:w,...A})=>{const S=b()||R;o((()=>{if(v){let e=[...m];e.map((e=>{e.disabled=!0})),u(e)}k(m,w),V(m)}),[]);const k=(e,t)=>{let l=[...e],c=0;for(let e of l)e.checked&&c++;if(c>t&&t>0){let e=c-t,i=l.length-1;for(;e&&i>=0;)l[i].checked&&(l[i].checked=!1,l[i].disabled=!0,e--),i--;for(let e=0;e<l.length;e++)l[e].checked||(l[e].disabled=!0);u(l)}},E=e=>{let t=0;for(let e of m)e.checked&&t++;if(e===t){let e=[...m];for(let t of e)t.checked||(t.disabled=!0);u(e)}else{let e=[...m];for(let t of e)t.checked||(t.disabled=!1);u(e)}},V=t=>{let l=t.filter((e=>!1!==e.checked));e(l)},M=Object.assign({display:"flex",flexDirection:"column",flexWrap:"wrap"},h);return t.createElement("div",L({style:M},A),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,L({customStyles:d,type:"check-label",text:p},A)),y&&t.createElement("div",{style:{marginLeft:"4px",color:`${S.variant.error}`}},"*")),t.createElement(ut,L({style:{display:"flex",flexWrap:"wrap"},inline:g},A),m?.map(((e,o)=>t.createElement(bt,L({inline:g,id:e.id,key:`${e.name}-${o}`,onClick:()=>{!e.disabled&&((e,t,l)=>{let c=[...m];c[t].checked=!e.checked,u(c),V(c),l&&E(l)})(e,o,w)},wrapperStyles:f},A),e.checked?t.createElement(pt,L({theme:S,inBuiltCss:Z,defaultCheckBoxInnerStyle:"checkBox-inner",checkBoxInnerStyle:{...c,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabled&&e?.disabledColor},defaultBorderColor:a,checkedCheckBoxColor:s,checked:e.checked,disabled:e.disabled,disabledOpacity:x},A),t.createElement(_,L({icon:"check-icon",size:18,color:"white"},C))):t.createElement(dt,L({inBuiltCss:Z,defaultCheckBoxOuterStyle:"checkBox-outer",checkBoxOuterStyle:{...l,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabledColor},defaultBorderColor:a,theme:S,disabled:e.disabled,disabledOpacity:x},A)),t.createElement(mt,{theme:S,inline:g,optionTextStyle:{...i,cursor:e?.disabled?"not-allowed ":" pointer",color:e?.disabledColor},checked:e.checked,defaultTextColor:r,checkedTextColor:n,disabled:e.disabled,disabledOpacity:x},e.label))))))};ft.propTypes={wrapperStyle:e.object,label:e.string,labelStyle:e.object,checkBoxOuterStyle:e.object,checkBoxInnerStyle:e.object,optionTextStyle:e.object,defaultTextColor:e.string,checkedTextColor:e.string,defaultBorderColor:e.string,checkedCheckBoxColor:e.string,inline:e.bool,options:e.array,setOptions:e.func,getCheckedArr:e.func,isRequired:e.bool,wrapperStyles:e.object,iconProps:e.object,disabledOpacity:e.number,disableAllCheckbox:e.bool,maximumCheckLimit:e.number},ft.defaultProps={label:"",inline:!1,options:[],setOptions:()=>{},getCheckedArr:()=>{},labelStyle:{},checkBoxOuterStyle:{},checkBoxInnerStyle:{},isRequired:!0,wrapperStyles:{},iconProps:{},disabledOpacity:.5,disableAllCheckbox:!1,maximumCheckLimit:0};const gt=m.div`
|
|
842
842
|
border: 1px solid ${({theme:e})=>e.additional.border};
|
|
843
843
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.additional.white};
|
|
844
844
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
@@ -847,7 +847,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
847
847
|
border: 1px solid ${({theme:e})=>e.primary["primary-1"]};
|
|
848
848
|
}
|
|
849
849
|
|
|
850
|
-
${({inBuiltCss:e,defaultColorWrapperStyle:t})=>
|
|
850
|
+
${({inBuiltCss:e,defaultColorWrapperStyle:t})=>F(e,t)}
|
|
851
851
|
// custom styles
|
|
852
852
|
${({customColorWrapperStyle:e})=>e}
|
|
853
853
|
|
|
@@ -869,13 +869,13 @@ background-color: ${({value:e})=>e};
|
|
|
869
869
|
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
${({inBuiltCss:e,defaultInputColorStyle:t})=>
|
|
872
|
+
${({inBuiltCss:e,defaultInputColorStyle:t})=>F(e,t)}
|
|
873
873
|
// custom styles
|
|
874
874
|
${({customInputColorStyle:e})=>e}
|
|
875
875
|
|
|
876
876
|
background-color: ${({isDisabled:e,value:t,theme:l})=>e?l.variant["neutral-5"]:t}};
|
|
877
877
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
878
|
-
`,yt=({label:e,labelStyle:l,value:c,setValue:i,customInputColorStyle:o,customColorWrapperStyle:a,id:r,isDisabled:n,required:s,...d})=>{const p=b()||R;return t.createElement(gt,L({customColorWrapperStyle:a,defaultColorWrapperStyle:"ColorWrapper",isDisabled:n,theme:p,inBuiltCss:
|
|
878
|
+
`,yt=({label:e,labelStyle:l,value:c,setValue:i,customInputColorStyle:o,customColorWrapperStyle:a,id:r,isDisabled:n,required:s,...d})=>{const p=b()||R;return t.createElement(gt,L({customColorWrapperStyle:a,defaultColorWrapperStyle:"ColorWrapper",isDisabled:n,theme:p,inBuiltCss:Z,required:s},d),t.createElement(ht,L({id:r,isDisabled:n,disabled:n,customInputColorStyle:o,defaultInputColorStyle:"input-color",inBuiltCss:Z,theme:p},d,{type:"color",value:c,onChange:e=>{i(e.target.value)}})),t.createElement(lt,L({themeColor:R,customStyles:l,type:"label-text",text:e,style:{display:"flex",paddingBottom:"0px",paddingLeft:"10px",cursor:n?"not-allowed":"pointer"}},d)))};yt.propTypes={label:e.string,labelStyle:e.object,value:e.string,setValue:e.func,customInputColorStyle:e.object,customColorWrapperStyle:e.object,id:e.string,isDisabled:e.bool,required:e.bool},yt.defaultProps={label:"choose color",labelStyle:{},customInputColorStyle:{},customColorWrapperStyle:{},value:"#FFFFFF",setValue:()=>{},id:"",isDisabled:!1,required:!1};const Ct=u`
|
|
879
879
|
display: flex;
|
|
880
880
|
gap: 7px;
|
|
881
881
|
align-items: center;
|
|
@@ -1148,9 +1148,9 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1148
1148
|
padding-left: 12px;
|
|
1149
1149
|
padding-bottom: 12px;
|
|
1150
1150
|
cursor: pointer;
|
|
1151
|
-
`,
|
|
1151
|
+
`,zt=m.div`
|
|
1152
1152
|
width: 100%;
|
|
1153
|
-
`,
|
|
1153
|
+
`,Bt=m.button`
|
|
1154
1154
|
background-color: ${({theme:e,disabled:t})=>t?e.variant["secondary-5"]:e.additional.white};
|
|
1155
1155
|
padding: 5.5px 12px;
|
|
1156
1156
|
padding-right: 7px;
|
|
@@ -1177,7 +1177,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1177
1177
|
|
|
1178
1178
|
// custom styles
|
|
1179
1179
|
${({customIconContainerStyle:e})=>e};
|
|
1180
|
-
`,It=["January","February","March","April","May","June","July","August","September","October","November","December"],Wt=({selectedDate:e,setSelectedDate:l,disabled:a,startYear:r,endYearRange:n,format:s,customIconContainerStyle:d,placeHolder:p,value:m,timeBtnStyle:u,onClick:f,onChange:g,wrapperStyle:h,iconProps:y,labelProps:C,...w})=>{const A=b()||R;let S=[],k=n||10;for(let e=r||(new Date).getFullYear();e<=(new Date).getFullYear()+k;e++)S.push(e);const E=c(null),V=c(null),[M,
|
|
1180
|
+
`,It=["January","February","March","April","May","June","July","August","September","October","November","December"],Wt=({selectedDate:e,setSelectedDate:l,disabled:a,startYear:r,endYearRange:n,format:s,customIconContainerStyle:d,placeHolder:p,value:m,timeBtnStyle:u,onClick:f,onChange:g,wrapperStyle:h,iconProps:y,labelProps:C,...w})=>{const A=b()||R;let S=[],k=n||10;for(let e=r||(new Date).getFullYear();e<=(new Date).getFullYear()+k;e++)S.push(e);const E=c(null),V=c(null),[M,z]=i(!1),[B,H]=i(!1),[I,W]=i(!1),[P,Z]=i(!1),[F,T]=i(e.getFullYear()),[j,q]=i(It[e.getMonth()]);o((()=>{q(It[e.getMonth()]),T(e.getFullYear())}),[e]),o((()=>(D(document,"click","add",O(E,(()=>z(!1)))),D(document,"click","add",O(V,(()=>H(!1)))),()=>{D(document,"click","remove",O(E,(()=>z(!1)))),D(document,"click","remove",O(V,(()=>H(!1))))})),[]);const D=(e,t,l,c,i)=>{"add"===l?e.addEventListener(t,c,i||!1):e.removeEventListener(t,c,i||!1)},O=(e,t)=>l=>{e.current&&!e.current.contains(l.target)&&t()},G={icon:"calender",color:"black",size:"16",...y};return t.createElement(wt,L({disabled:a,theme:A},w,{wrapperStyle:h}),t.createElement(lt,L({customStyles:{marginBottom:"7px",padding:0}},C)),t.createElement(v,L({selected:m===e?e:m,useWeekdaysShort:!0,onChange:e=>{l(e),g(e)},adjustDateOnChange:!0,disabled:a,dropdownMode:"select",customInput:t.createElement(zt,{value:m,onClick:f,placeholder:p,theme:A},t.createElement(Bt,L({theme:A,value:m,onClick:f,timeBtnStyle:u},w),t.createElement("div",null,m?x(m).format(s||"DD/MM/YYYY"):p||"select a date"),t.createElement(Ht,L({theme:A},w,{customIconContainerStyle:d,className:"input-icon"}),G.icon?t.createElement(_,G):null))),renderCustomHeader:({date:e,changeYear:l,changeMonth:c})=>t.createElement(At,null,t.createElement("div",{style:{display:"flex"}},t.createElement(kt,{ref:E},t.createElement(Et,{onClick:()=>{z(!M),H(!1)}},t.createElement("span",{onMouseEnter:()=>W(!0),onMouseLeave:()=>W(!1),style:{color:`${I?A.variant["primary-1"]:A.additional["text-color"]}`}},It[e.getMonth()]),t.createElement(St,null,t.createElement(_,{icon:"triangle-down",color:I?A.variant["primary-1"]:A.additional["text-color"],size:7}))),M&&t.createElement(Vt,null,t.createElement(Mt,{theme:A,onMouseEnter:()=>W(!0)},It.map(((e,l)=>t.createElement(Lt,{selectedMonth:j,onClick:()=>{W(!1),c(l),z(!1),q(It[l])},key:Math.random()},t.createElement("span",{style:{color:`${j===e?A.variant["primary-1"]:A.additional["text-color"]}`}},e))))))),t.createElement(kt,{ref:V},t.createElement(Et,{style:{marginLeft:"28px"},onClick:()=>{H(!B),z(!1)}},t.createElement("span",{onMouseEnter:()=>Z(!0),onMouseLeave:()=>Z(!1),style:{color:`${P?A.variant["primary-1"]:A.additional["text-color"]}`}},e.getFullYear()),t.createElement(St,null,t.createElement(_,{icon:"triangle-down",color:P?A.variant["primary-1"]:A.additional["text-color"],size:7}))),B&&t.createElement(Vt,null,t.createElement(Mt,{onMouseEnter:()=>Z(!0),theme:A},S.map(((e,c)=>t.createElement(Lt,{onClick:()=>{Z(!1),l(e),T(e),H(!1)},key:Math.random()+c},t.createElement("span",{style:{color:`${F===e?A.variant["primary-1"]:A.additional["text-color"]}`}},e)))))))))},w)))};Wt.propTypes={selectedDate:e.any,setSelectedDate:e.func,disabled:e.bool,startYear:e.number,endYearRange:e.number,format:e.string,placeHolder:e.string,onChange:e.func,timeBtnStyle:e.object,wrapperStyle:e.object,customIconContainerStyle:e.object,iconProps:e.object,value:e.any,onClick:e.func,labelProps:e.object},Wt.defaultProps={selectedDate:new Date,setSelectedDate:()=>{},disabled:!1,onChange:()=>{},value:"",onClick:()=>{}};const Pt=m.div`
|
|
1181
1181
|
cursor: ${({disabled:e})=>e?"not-allowed":"text"};
|
|
1182
1182
|
.react-datepicker__tab-loop {
|
|
1183
1183
|
position: absolute;
|
|
@@ -1252,7 +1252,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1252
1252
|
|
|
1253
1253
|
// custom styles
|
|
1254
1254
|
${({wrapperStyle:e})=>e};
|
|
1255
|
-
`,Rt=m.div``,
|
|
1255
|
+
`,Rt=m.div``,Zt=m.button`
|
|
1256
1256
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1257
1257
|
background-color: ${({theme:e,disabled:t})=>t?e.variant["neutral-5"]:e.additional.white};
|
|
1258
1258
|
padding: 5.5px 12px;
|
|
@@ -1272,7 +1272,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1272
1272
|
|
|
1273
1273
|
// custom styles
|
|
1274
1274
|
${({timeBtnStyle:e})=>e};
|
|
1275
|
-
`,
|
|
1275
|
+
`,Ft=m.div`
|
|
1276
1276
|
display: flex;
|
|
1277
1277
|
align-items: center;
|
|
1278
1278
|
justify-content: ${({inputType:e})=>"year"!==e?"space-between":"center"};
|
|
@@ -1299,7 +1299,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1299
1299
|
margin-top: 5px;
|
|
1300
1300
|
font-size: 10px;
|
|
1301
1301
|
}
|
|
1302
|
-
`,Dt=({defaultValue:e,onChange:l,inputType:c,onClick:o,placeHolder:a,value:r,disabled:n,startYear:s,endYearRange:d,iconProps:p,customHeaderStyle:m,timeBtnStyle:u,wrapperStyle:f,customIconContainerStyle:g,label:h,labelInline:y,labelStyle:C,required:w,errMsg:A,errMsgColor:S,isValid:k,...E})=>{const[V,M]=i(e);let
|
|
1302
|
+
`,Dt=({defaultValue:e,onChange:l,inputType:c,onClick:o,placeHolder:a,value:r,disabled:n,startYear:s,endYearRange:d,iconProps:p,customHeaderStyle:m,timeBtnStyle:u,wrapperStyle:f,customIconContainerStyle:g,label:h,labelInline:y,labelStyle:C,required:w,errMsg:A,errMsgColor:S,isValid:k,...E})=>{const[V,M]=i(e);let z=V?new Date(V):null;for(var B=[],H=d||10,I=s||(new Date).getFullYear();I<=(new Date).getFullYear()+H;I++)B.push(I);let W={};switch(c){case"date":default:W.dateFormat="dd MMM, yyyy";break;case"month":W.dateFormat="MMMM yyyy",W.showMonthYearPicker=!0;break;case"year":W.dateFormat="yyyy",W.showYearPicker=!0;break;case"datetime-local":W.dateFormat="dd MMM yyyy, hh:mm a",W.showTimeSelect=!0,W.timeFormat="hh:mm a",W.timeIntervals=15,W.timeCaption="Time";break;case"time":W.showTimeSelect=!0,W.showTimeSelectOnly=!0,W.dateFormat="hh:mm a"}const P=b()||R,Z={icon:"calender",color:P.variant["primary-1"],size:"16",...p};return t.createElement(qt,L({labelInline:y,errMsgColor:S,theme:P},E),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,L({customStyles:C,type:"label-text",labelInline:y,errMsg:A,text:h,style:{display:"flex",marginBottom:""+(y?"":"7px"),paddingBottom:"0px"}},E)),w&&t.createElement("div",{style:{marginLeft:"4px",color:`${P.variant.error}`}},"*")),t.createElement(Pt,L({theme:P},E,{wrapperStyle:f,isValid:k,disabled:n}),t.createElement(v,L({selected:z,disabled:n,customInput:t.createElement(Rt,{value:r,onClick:o,placeholder:a,theme:P},t.createElement(Zt,L({theme:P,value:r,onClick:o,timeBtnStyle:u,disabled:n},E),t.createElement("div",null,r||(a||"-- : -- --")),t.createElement(Tt,L({theme:P},E,{customIconContainerStyle:g,className:"input-icon"}),Z.icon?t.createElement(_,Z):null))),onChange:e=>{M(e);var t=null;t="datetime-local"==c?x(e).format("DD MMM YYYY, hh:mm A"):"date"==c?x(e).format("DD MMM, YYYY"):"year"==c?x(e).format("YYYY"):"month"==c?x(e).format("MMMM YYYY"):"time"==c?x(e).format("hh:mm A"):x(e).format("DD MMM, YYYY"),l(t)},showYearDropdown:!0,yearDropdownItemNumber:5,dropdownMode:"select",placeholderText:a},W,{renderCustomHeader:({date:e,changeYear:l,decreaseMonth:i,increaseMonth:o})=>{let a=x(e).format("MMMM");return t.createElement(Ft,L({theme:P},E,{inputType:c,customHeaderStyle:m}),"year"!==c?t.createElement("span",{style:{paddingLeft:"10px"},onClick:i},t.createElement(_,{icon:"chevron-left",color:"white",size:16})):null,t.createElement("b",null,"year"!==c?t.createElement("span",{style:{paddingRight:"5px"}},a):null," ",t.createElement("span",{className:"calender-year"},t.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>l(e)},B.map((e=>t.createElement("option",{key:e,value:e},e)))))),"year"!==c?t.createElement("span",{style:{paddingRight:"10px"},onClick:o},t.createElement(_,{icon:"chevron-right",color:"white",size:16})):null)}},E))),A.length>0&&t.createElement("div",{className:"err-text"},A))};Dt.propTypes={defaultValue:e.string,onChange:e.func,inputType:e.string,onClick:e.func,placeHolder:e.string,value:e.string,disabled:e.bool,startYear:e.number,endYearRange:e.number,iconProps:e.object,customHeaderStyle:e.object,timeBtnStyle:e.object,wrapperStyle:e.object,customIconContainerStyle:e.object,label:e.string,labelStyle:e.object,labelInline:e.bool,errMsg:e.string,errMsgColor:e.string,isValid:e.bool},Dt.defaultProps={disabled:!1,startYear:new Date,endYearRange:10,value:"",defaultValue:"",onChange:()=>{},label:"",required:!1,labelInline:!1,errMsg:"",isValid:!0};const Ot=m.div`
|
|
1303
1303
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"initial"} !important;
|
|
1304
1304
|
|
|
1305
1305
|
.text-main-alt {
|
|
@@ -1331,7 +1331,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1331
1331
|
display: flex;
|
|
1332
1332
|
|
|
1333
1333
|
//Set the styles from the default styles object
|
|
1334
|
-
${({inBuiltCss:e,labelWrapperStyle:t})=>
|
|
1334
|
+
${({inBuiltCss:e,labelWrapperStyle:t})=>F(e,t)}
|
|
1335
1335
|
// custom styles
|
|
1336
1336
|
${({customLabelStyles:e})=>e}
|
|
1337
1337
|
`,Xt=m.div`
|
|
@@ -1339,9 +1339,9 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1339
1339
|
margin-top: -15.5px;
|
|
1340
1340
|
cursor: pointer;
|
|
1341
1341
|
line-height: normal !important;
|
|
1342
|
-
`,Jt=({getValue:e,children:l,...c})=>{const i=e().length;return t.createElement(A.ValueContainer,L({"data-accordion":"contentClickFalse"},c),t.createElement("span",{"data-accordion":"contentClickFalse"}),l,i>1&&t.createElement("span",{className:"text-more-alt"},"& ",i-1," more"))},Ut=({label:e,labelStyle:l,optionArr:c,selectedValue:i,setSelectedValue:o,placeHolder:r,isClearable:n,isValid:s,height:d,fontSize:p,loadOptions:m,onInputChange:u,clearSelected:f,customWrapperStyles:g,customLabelStyles:h,isRequired:y,dropdownType:C,isDisabled:x,isLoading:v,id:w,iconName:S,iconStyles:k,iconColor:E,iconSize:V,showIndicator:M,leftIcon:
|
|
1342
|
+
`,Jt=({getValue:e,children:l,...c})=>{const i=e().length;return t.createElement(A.ValueContainer,L({"data-accordion":"contentClickFalse"},c),t.createElement("span",{"data-accordion":"contentClickFalse"}),l,i>1&&t.createElement("span",{className:"text-more-alt"},"& ",i-1," more"))},Ut=({label:e,labelStyle:l,optionArr:c,selectedValue:i,setSelectedValue:o,placeHolder:r,isClearable:n,isValid:s,height:d,fontSize:p,loadOptions:m,onInputChange:u,clearSelected:f,customWrapperStyles:g,customLabelStyles:h,isRequired:y,dropdownType:C,isDisabled:x,isLoading:v,id:w,iconName:S,iconStyles:k,iconColor:E,iconSize:V,showIndicator:M,leftIcon:z,leftIconColor:B,leftIconSize:H,backgroundColor:I,placeHolderColor:W,indicatorBackgroundColor:P,inputColor:F,menuListFooter:T,customSelectStyles:j,errorMessage:q,maximumSelectOptionLimit:D,maximumSelectOptionLimitMessage:O,...G})=>{const X=b()||R,J=e=>{const l={width:"15px",height:"15px",borderRadius:"2px",padding:"4px",fontSize:"8px",lineHeight:"10px",minWidth:"15px",minHeight:"15px",boxSizing:"content-box"},c=t.createElement("div",{style:{...l,backgroundColor:e?.data?.color??X.primary["primary-1"]}},t.createElement(_,{icon:"check-icon",color:"white"})),i=t.createElement("div",{style:{...l,backgroundColor:"#e0e7ff"}});return console.log(e),t.createElement(A.Option,e,t.createElement("div",{"data-accordion":"contentClickFalse",style:{display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%"}},"further-details"!==e.value&&(e.isSelected?c:i),t.createElement("div",{className:"text-main-alt","data-accordion":"contentClickFalse",style:{marginLeft:"10px"}},e.label)))},U=({index:e,...l})=>{const c=l?.data?.label||"Select";return!e&&t.createElement("span",{className:"text-main-alt-value"},c)},Y={control:(e,t)=>({...e,border:s?I&&s?"1px solid "+I:"1px solid "+X.border:"1px solid "+X.ui.error,minWidth:"singleSelect"===C||"asyncSingleSelect"===C?"120px":"185px",height:`${d}px`,minHeight:`${d}px`,boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:t.isDisabled?X.variant["neutral-5"]:I||X.additional.white}),placeholder:e=>({...e,fontSize:p+"px",marginLeft:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"auto",maxWidth:"89%",marginRight:"0px",color:W||"hsl(0, 0%, 50%)"}),dropdownIndicator:e=>({...e,height:`${d}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"2px",backgroundColor:P||"transparent",borderBottomLeftRadius:"0",borderBottomRightRadius:"4.32px",borderTopLeftRadius:0,borderTopRightRadius:"4.32px",position:"relative",top:"-1px",right:"-1px"}),clearIndicator:e=>({...e,height:`${d}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"0px"}),valueContainer:e=>({...e,fontSize:p+"px",marginTop:"-4px"}),indicatorsContainer:e=>({...e,padding:0}),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:p+"px",width:"100%",minWidth:"singleSelect"===C||"asyncSingleSelect"===C?"120px":"185px"}),singleValue:e=>({...e,fontSize:p+"px",marginLeft:"0px",width:"auto",marginRight:0,display:"grid"}),multiValue:e=>({...e,marginLeft:"0px",width:"auto",display:"grid"}),input:e=>({...e,fontSize:p+"px",color:F||"hsl(0, 0%, 20%)",padding:0,margin:0}),option:(e,t)=>({...e,backgroundColor:t.isSelected||t.isFocused?X.neutral["neutral-5"]:X.additional.white,padding:"10px",cursor:t.isDisabled?"not-allowed":"pointer",color:"#081348",opacity:t.isDisabled?.6:1,width:"inherit",boxSizing:"initial"}),menuPortal:e=>({...e,zIndex:99999999}),...j},N={DropdownIndicator:e=>{const l=t.createElement(A.DropdownIndicator,e,t.createElement(Xt,{"data-accordion":"contentClickFalse"},t.createElement(_,{icon:S,color:E,size:V,customstyles:k,"data-accordion":"contentClickFalse"})));return!0===M?l:null},ValueContainer:Jt,IndicatorSeparator:()=>null,ClearIndicator:e=>t.createElement(A.ClearIndicator,e,n?t.createElement(Xt,{onClick:()=>{f(),e.clearValue()},"data-accordion":"contentClickFalse"},t.createElement(_,{icon:"cross-icon",color:"black",size:8,"data-accordion":"contentClickFalse"})):null),MenuList:e=>{const{MenuListHeader:l=null,MenuListFooter:c=null}=e.selectProps.components,i=e.getValue().length||0;return t.createElement(A.MenuList,L({},e,{"data-accordion":"contentClickFalse"}),i<D?t.createElement(a,null,e.children.length&&l,e.children,e.children.length&&c):t.createElement("div",{style:{margin:15}},O))},MenuListFooter:T};let Q=null;switch(C){case"multiSelect":Q=t.createElement(Yt,L({type:"multiSelect",MultiValue:U,Option:J,value:i,CommonRenderedComponent:N,optionArr:c,placeHolder:r,isDisabled:x,stylesComp:Y,setSelectedValue:o,isLoading:v,id:w,isClearable:n},G));break;case"asyncSingleSelect":Q=t.createElement(Nt,L({CommonRenderedComponent:N,loadOptions:m,onInputChange:u,styles:Y,placeholder:r,onChange:o,isLoading:v,isDisabled:x,id:w,value:i,isClearable:n},G));break;case"asyncMultiSelect":Q=t.createElement(Nt,L({type:"asyncMultiSelect",CommonRenderedComponent:N,MultiValue:U,Option:J,onChange:o,placeholder:r,styles:Y,isDisabled:x,isLoading:v,loadOptions:m,onInputChange:u,id:w,isClearable:n,value:i},G));break;default:Q=t.createElement(Yt,L({type:"singleSelect",value:{value:i?i.value:"",label:i?i.label:""},CommonRenderedComponent:N,optionArr:c,placeHolder:r,isDisabled:x,stylesComp:Y,setSelectedValue:o,isLoading:v,id:w,isClearable:n},G))}return t.createElement(Ot,{style:g,backgroundColor:I,isValid:s,fontSize:p,theme:X,isDisabled:x},e&&t.createElement(Gt,{inBuiltCss:Z,labelWrapperStyle:"selectComp-label-wrapper",style:h},t.createElement(lt,{customStyles:l,type:"label-text",text:e,style:{marginBottom:"8px",paddingBottom:"0px"}}),y&&t.createElement("div",{style:{marginLeft:"4px",color:`${X.ui.error}`}},"*")),Q,!s&&q)},Yt=({type:e,Option:l,value:c,CommonRenderedComponent:i,MultiValue:o,optionArr:a,placeHolder:r,isDisabled:n,stylesComp:s,setSelectedValue:d,isLoading:p,id:m,isClearable:b,...u})=>{let f={...i};return"multiSelect"===e&&(f.MultiValue=o,f.Option=l),t.createElement(w,L({className:"select-manage-page contentClickFalse",classNamePrefix:"new-select",name:"select-dropdown",components:f,options:a,placeholder:r,isDisabled:n,value:c,styles:s,onChange:d,isLoading:p,id:m,isClearable:b,isMulti:"multiSelect"===e,hideSelectedOptions:!1,closeMenuOnSelect:"multiSelect"!==e,menuShouldScrollIntoView:!1,"data-accordion":"contentClickFalse"},u))},Nt=({CommonRenderedComponent:e,MultiValue:l,Option:c,type:i,id:o,styles:a,...r})=>{let n={...e};return"asyncMultiSelect"===i&&(n.MultiValue=l,n.Option=c),t.createElement(S,L({className:"select-manage-page contentClickFalse ",classNamePrefix:"new-select",name:"select-dropdown",components:n,isMulti:"asyncMultiSelect"===i,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiSelect"!==i,isSearchable:!0,styles:a,menuShouldScrollIntoView:!1,"data-accordion":"contentClickFalse",id:o},r))};Ut.propTypes={label:e.string,labelStyle:e.object,optionArr:e.array,selectedValue:e.object,setSelectedValue:e.func,placeHolder:e.string,fontSize:e.number,clearSelected:e.func,loadOptions:e.func,onInputChange:e.func,customWrapperStyles:e.object,customLabelStyles:e.object,isRequired:e.bool,dropdownType:e.string,isDisabled:e.bool,isLoading:e.bool,isValid:e.bool,height:e.number,isClearable:e.bool,id:e.string,iconName:e.string,iconColor:e.string,iconSize:e.number,leftIcon:e.string,leftIconColor:e.string,leftIconSize:e.number,showIndicator:e.bool,backgroundColor:e.string,placeHolderColor:e.string,inputColor:e.string,menuListFooter:e.any,customSelectStyles:e.object,maximumSelectOptionLimit:e.number,maximumSelectOptionLimitMessage:e.string},Ut.defaultProps={label:"",labelStyle:{},optionArr:[],selectedValue:{},setSelectedValue:void 0,placeHolder:"Select an option",isValid:!0,isClearable:!1,height:31,fontSize:14,loadOptions:()=>{},onInputChange:()=>{},clearSelected:()=>{},customWrapperStyles:{},customLabelStyles:{},isRequired:!1,dropdownType:"singleSelect",isDisabled:!1,isLoading:!1,id:"",iconName:"triangle-down",iconColor:"black",iconSize:8,leftIcon:"",leftIconColor:"black",leftIconSize:10,showIndicator:!0,customSelectStyles:{},maximumSelectOptionLimit:1e4,maximumSelectOptionLimitMessage:"Max limit achieved"};const Qt=m.div`
|
|
1343
1343
|
//Set the styles from the default styles object
|
|
1344
|
-
${({inBuiltCss:e,defaultStyles:t})=>
|
|
1344
|
+
${({inBuiltCss:e,defaultStyles:t})=>F(e,t)}
|
|
1345
1345
|
|
|
1346
1346
|
background-color:${({hover:e,dropValid:t,fileArr:l,backgroundColor:c,theme:i})=>t?t&&e&&c?c:t&&e&&!c?i.primary["primary-1"]:t&&!e&&l.length>0?i.additional.white:t&&!e&&0==l.length?T(i.primary["primary-1"],.05):void 0:"rgba(215, 0, 0, 0.05)"}
|
|
1347
1347
|
|
|
@@ -1358,7 +1358,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1358
1358
|
${({customDropzoneStyles:e})=>e}
|
|
1359
1359
|
`,Kt=m.div`
|
|
1360
1360
|
//Set the styles from the default styles object
|
|
1361
|
-
${({inBuiltCss:e,defaultStyles:t})=>
|
|
1361
|
+
${({inBuiltCss:e,defaultStyles:t})=>F(e,t)}
|
|
1362
1362
|
|
|
1363
1363
|
// custom styles
|
|
1364
1364
|
${({customFileStyles:e})=>e}
|
|
@@ -1366,13 +1366,13 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1366
1366
|
display: none;
|
|
1367
1367
|
`,_t=m.div`
|
|
1368
1368
|
//Set the styles from the default styles object
|
|
1369
|
-
${({inBuiltCss:e,defaultStyles:t})=>
|
|
1369
|
+
${({inBuiltCss:e,defaultStyles:t})=>F(e,t)}
|
|
1370
1370
|
|
|
1371
1371
|
// custom styles
|
|
1372
1372
|
${({customTextStyles:e})=>e}
|
|
1373
1373
|
`;m.span`
|
|
1374
1374
|
//Set the styles from the default styles object
|
|
1375
|
-
${({inBuiltCss:e,type:t})=>
|
|
1375
|
+
${({inBuiltCss:e,type:t})=>F(e,t)}
|
|
1376
1376
|
|
|
1377
1377
|
// custom styles
|
|
1378
1378
|
${({customFileNameStyles:e})=>e}
|
|
@@ -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 cl=({label:e,labelStyle:l,labelInline:c,required:o,message:a,fileArr:n,setFileArr:s,deleteFile:d,customDropzoneStyles:p,customFileStyles:m,customTextStyles:u,customFileNameStyles:f,backgroundColor:g,singleFile:h,messageSize:y,showSupportedFormats:C,file_extensions:x,maxFilesAmount:v,minFilesAmount:w,fileSizeLimit:A,fileSizeNamingConvention:S,errorMessages:k,suggesionMessage:E,MessagelabelStyle:V,dropValid:M,setDropValid:
|
|
1401
|
+
`;const cl=({label:e,labelStyle:l,labelInline:c,required:o,message:a,fileArr:n,setFileArr:s,deleteFile:d,customDropzoneStyles:p,customFileStyles:m,customTextStyles:u,customFileNameStyles:f,backgroundColor:g,singleFile:h,messageSize:y,showSupportedFormats:C,file_extensions:x,maxFilesAmount:v,minFilesAmount:w,fileSizeLimit:A,fileSizeNamingConvention:S,errorMessages:k,suggesionMessage:E,MessagelabelStyle:V,dropValid:M,setDropValid:z,errorDetails:B,setErrorDetails:H,dropzoneContent:I,dropIcon:W,iconColor:P,id:F,customTooltipContentStyle:T={padding:"4px 12px",fontSize:"14px",width:"auto",maxWidth:"226px"},customStylesTPArightBefore:j,customStylesTPArightAfter:q,tooltipArrowColor:D,...O})=>{const G=b()||R;D=D||G.primary["primary-1"];const[X,J]=i(!1),U=r(),[Y,N]=i(M),[Q,K]=i("");let $;var ee=x;let te=new Map(ee.map((e=>[e.toLowerCase(),e])));te=Array.from(te.values()).join(", ");var le=!1,ce=C?"All file formats cannot be used with the files you provided.":"",ie="";1==h&&(w=1,v=1);var oe="Please upload (min."+w+" to max."+v+")files",ae=e=>{ie="";let t=[],l=[];var c=n.length;if(c+e.length<w||c+e.length>v){var i=`Please upload (minimum ${w} to maximum ${v} files)`;ie=k?.amount,ie=void 0!==ie?ie:i}if(""==ie)for(const[c,r]of Object.entries(e)){le=!0,r.name;let e=r.size,c=r.name.split(".");c=c[c.length-1],le=ee.includes(c.toLowerCase());var o=1024;("MB"===S||"GB"===S||"TB"===S)&&(o*=1024);var a=e/o;if(!1===le&&(ie=k?.format,ie=ie||ce),a>A&&le){le=!1;i="Each file must be under "+A+" "+S;ie=k?.size,ie=void 0!==ie?ie:i}le?($=URL.createObjectURL(r),r.path=$,t.push(r)):l.push(r)}return ie.length>0?(z(!1),H({valid:!1,errorMessage:ie,errorFiles:l}),N(M),K(ie)):(z(!0),N(M),K(""),H({valid:!0,errorMessage:"",errorFiles:[]})),t};function re(e){e.preventDefault(),e.stopPropagation()}function ne(e,t){let l=[...n,...e];return t||(l=l.filter(((e,t,l)=>t===l.findIndex((t=>t.place===e.place&&t.name===e.name))))),s(l),J(!1),l}function se(e,t){if(e instanceof File){const t=n.findIndex((t=>t.name===e.name));let l=n[t].path;URL.revokeObjectURL(l);const c=n.filter((t=>t.name!==e.name));s(c)}else!function(e){const t=n.filter((t=>t.name!==e.name));s(t),d(e)}(e)}const de=t.createElement("div",null,te),pe=x.map((e=>`.${e}`)).join(",");return t.createElement("div",null,t.createElement("div",{style:{display:"flex",width:"inherit"}},t.createElement(lt,L({customStyles:l,type:"label-text",labelInline:c,text:e,style:{display:"flex",marginBottom:`${c?0:"8px"}`,paddingBottom:"0px"}},O)),o&&t.createElement("div",{style:{marginLeft:"4px",color:`${G.variant.error}`}},"*")),t.createElement(Qt,{theme:G,inBuiltCss:Z,defaultStyles:"dropzone-parent",backgroundColor:g,customDropzoneStyles:M?p:{},onDragLeave:function(e){re(e),J(!1)},onDragOver:function(e){re(e),J(!0)},onDrop:function(e){re(e);const{files:t}=e.dataTransfer;var l=ae(t);J(!0),O.onFilesAdded(ne(l,h))},onClick:function(){U.current.click()},hover:X,dropValid:M,fileArr:n},t.createElement($t,L({ref:U,valid:Y,dropValid:M,type:"file",accept:pe,id:F,multiple:!h,onChange:function(e){let{files:t}=e.target;J(!1);var l=ae(t);l&&O.onFilesAdded(ne(l,h))},onClick:e=>e.target.value=null},O)),M?t.createElement(t.Fragment,null,W?t.createElement(_,{icon:W,color:X?G.additional.white:P,size:24}):t.createElement(_,{icon:"file-upload",color:X?G.additional.white:G.primary["primary-1"],size:24})):null,t.createElement(_t,{dropValid:M,valid:Y,hover:X,backgroundColor:g,customTextStyles:u,inBuiltCss:Z,defaultStyles:"dropzone-text-div"},M?t.createElement(t.Fragment,null,I?t.createElement("div",{style:{color:X?G.additional.white:null}},I):t.createElement("div",null,t.createElement("span",{style:{color:X?G.additional.white:G.primary["primary-1"]}},"Choose a file"," "),t.createElement("span",{style:{color:X?G.additional.white:G.neutral["neutral-2"]}},"or"," "),t.createElement("span",{style:{color:X?G.additional.white:G.additional["text-color"]}},"drag ",h?"it":"them"," here"))):t.createElement("div",null,t.createElement("span",{style:{color:G.variant.error}},"Try again!!"," "),t.createElement("span",{style:{color:G.additional["text-color"]}},Q||a)))),Q===ce||k.format?t.createElement("div",{style:{display:"flex"}},t.createElement(lt,L({themeColor:R,customStyles:V,type:"label-text",labelInline:c,style:{display:"flex",paddingTop:"10px",paddingBottom:`${c?0:"16.64px"}`}},O)),t.createElement(Ne,{contentTrigger:t.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:G.variant["primary-1"]},customBodyStyle:{wordWrap:"break-word"},customContentStyle:T,customStylesTPArightBefore:j,customStylesTPArightAfter:q,customStylesTPAbottomBefore:{borderColor:`transparent transparent ${D} transparent`,marginTop:"1px"},customStylesTPAbottomAfter:{display:"none"}})):"The file size is not uploaded"===Q?t.createElement(lt,L({themeColor:R,customStyles:V,type:"label-text",labelInline:c,text:oe,style:{display:"flex",paddingTop:"10px",paddingBottom:`${c?0:"16.64px"}`}},O)):"",n?.map(((e,l)=>t.createElement(Kt,{inBuiltCss:Z,defaultStyles:"dropzone-file-div",key:`${e}-${l}`,customFileStyles:m},t.createElement(tl,null,t.createElement(_,{icon:"file-icon",color:G.primary["primary-1"]})),(File,t.createElement("a",{style:{color:G.variant["primary-1"],marginLeft:"5px",overflow:"hidden"},href:e?.path,target:"_blank",rel:"noreferrer",download:e.name}," ",e.name)),t.createElement(ll,null,e?.otherInfo),t.createElement(el,{key:101*Math.random()|0},t.createElement("div",{style:{marginRight:"7px"}},t.createElement(_,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:G.primary["primary-1"]})),t.createElement(_,{icon:"cross-icon",color:G.neutral["neutral-2"],size:13,onClick:()=>se(e),customstyles:{cursor:"pointer"}}))))))};cl.propTypes={onFilesAdded:e.func,dropValid:e.bool,setDropValid:e.func,message:e.string,fileArr:e.array,setFileArr:e.func,customDropzoneStyles:e.object,customFileStyles:e.object,customTextStyles:e.object,customFileNameStyles:e.object,backgroundColor:e.string,messageSize:e.number,maxFilesAmount:e.number,minFilesAmount:e.number,fileSizeLimit:e.number,fileSizeNamingConvention:e.string,showSupportedFormats:e.bool,file_extensions:e.array,errorMessages:e.object,suggesionMessage:e.any,MessagelabelStyle:e.object,id:e.string,dropzoneContent:e.any,dropIcon:e.string,iconColor:e.string,singleFile:e.bool,customTooltipContentStyle:e.object,customStylesTPArightBefore:e.object,customStylesTPArightAfter:e.object},cl.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 il=u`
|
|
1402
1402
|
pointer-events: none;
|
|
1403
1403
|
`,ol=m.input`
|
|
1404
1404
|
background-color: transparent;
|
|
@@ -1554,7 +1554,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1554
1554
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1555
1555
|
|
|
1556
1556
|
//Set the styles from the default styles object
|
|
1557
|
-
${({inBuiltCss:e,defaultWrapperStyle:t})=>
|
|
1557
|
+
${({inBuiltCss:e,defaultWrapperStyle:t})=>F(e,t)}
|
|
1558
1558
|
|
|
1559
1559
|
border: ${({isValid:e,theme:t})=>e?"1px solid "+t.additional.border:"1px solid "+t.variant.error};
|
|
1560
1560
|
|
|
@@ -1580,7 +1580,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1580
1580
|
width: 85%;
|
|
1581
1581
|
|
|
1582
1582
|
//Set the styles from the default styles object
|
|
1583
|
-
${({inBuiltCss:e,defaultInputStyle:t})=>
|
|
1583
|
+
${({inBuiltCss:e,defaultInputStyle:t})=>F(e,t)}
|
|
1584
1584
|
|
|
1585
1585
|
// custom styles
|
|
1586
1586
|
${({inputStyle:e})=>e}
|
|
@@ -1599,11 +1599,11 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1599
1599
|
margin-top: 5px;
|
|
1600
1600
|
font-size: 10px;
|
|
1601
1601
|
}
|
|
1602
|
-
`,Sl=({passwordRules:e,textBoxStyle:l,labelStyle:c,inputStyle:o,errMsg:a,required:r,label:n,labelInline:s,isValid:d,rulesStyle:p,id:m,showHideIcon:u,errMsgColor:f,...g})=>{const[h,y]=i("password"),C=b()||R;return t.createElement(Al,L({labelInline:s,inBuiltCss:
|
|
1602
|
+
`,Sl=({passwordRules:e,textBoxStyle:l,labelStyle:c,inputStyle:o,errMsg:a,required:r,label:n,labelInline:s,isValid:d,rulesStyle:p,id:m,showHideIcon:u,errMsgColor:f,...g})=>{const[h,y]=i("password"),C=b()||R;return t.createElement(Al,L({labelInline:s,inBuiltCss:Z,errMsgColor:f,theme:C},g),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,L({customStyles:c,type:"label-text",text:n,errMsg:a,style:{display:"flex",marginBottom:`${s?0:"8px"}`,paddingBottom:"0px"}},g)),r&&t.createElement("div",{style:{marginLeft:"4px",marginRight:"5px",color:`${C.variant.error}`}},"*")),t.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"flex-start"}},t.createElement("div",{style:{width:"100%"}},t.createElement(xl,L({required:r,theme:C,textBoxStyle:l,isValid:d,defaultWrapperStyle:"textbox-wrapper",inBuiltCss:Z},g),t.createElement(vl,L({},g,{inputStyle:o,type:h,id:m,theme:C,defaultInputStyle:"input-wrapper",inBuiltCss:Z})),!0===u?t.createElement("div",{className:"input-icon",onClick:()=>y("password"===h?"text":"password"),style:{position:"absolute",right:"7px"}},t.createElement(_,{icon:"text"===h?"eye-show":"eye-hide"})):""),a.length>0&&t.createElement("div",{className:"err-text"},a)),e?t.createElement("div",{style:{...p,marginLeft:"5px"}},e):""))};Sl.propTypes={inBuiltCss:e.object,theme:e.object,label:e.string,required:e.bool,labelInline:e.bool,errMsg:e.string,textBoxStyle:e.object,labelStyle:e.object,inputStyle:e.object,rulesStyle:e.object,id:e.string,showHideIcon:e.bool},Sl.defaultProps={inBuiltCss:Z,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",textBoxStyle:{},labelStyle:{},inputStyle:{},passwordRules:"",rulesStyle:{},id:"",showHideIcon:!0};const kl=m.div`
|
|
1603
1603
|
box-sizing: initial;
|
|
1604
1604
|
|
|
1605
1605
|
//Set the styles from the default styles object
|
|
1606
|
-
${({inBuiltCss:e,defaultRadioOuterCircleStyle:t})=>
|
|
1606
|
+
${({inBuiltCss:e,defaultRadioOuterCircleStyle:t})=>F(e,t)}
|
|
1607
1607
|
|
|
1608
1608
|
border: 2px solid ${({value:e,selected:t,selectedCircleColor:l,defaultBorderColor:c,theme:i})=>e!==t&&c?c:e===t||c?e===t&&l?l:e!==t||l?void 0:i.primary["primary-1"]:i.additional.border};
|
|
1609
1609
|
|
|
@@ -1613,7 +1613,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1613
1613
|
box-sizing: initial;
|
|
1614
1614
|
|
|
1615
1615
|
//Set the styles from the default styles object
|
|
1616
|
-
${({inBuiltCss:e,defaultRadioInnerCircleStyle:t})=>
|
|
1616
|
+
${({inBuiltCss:e,defaultRadioInnerCircleStyle:t})=>F(e,t)}
|
|
1617
1617
|
|
|
1618
1618
|
width: ${({value:e,selected:t,width:l})=>e===t?l:0};
|
|
1619
1619
|
height: ${({value:e,selected:t,height:l})=>e===t?l:0};
|
|
@@ -1623,7 +1623,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1623
1623
|
${({radioInnerCircleStyle:e})=>e}
|
|
1624
1624
|
`;El.defaultProps={theme:R};const Vl=m.div`
|
|
1625
1625
|
//Set the styles from the default styles object
|
|
1626
|
-
${({inBuiltCss:e,defaultOptionStyle:t})=>
|
|
1626
|
+
${({inBuiltCss:e,defaultOptionStyle:t})=>F(e,t)}
|
|
1627
1627
|
margin-right: ${({inline:e})=>e?"":"30px"};
|
|
1628
1628
|
color: ${({selected:e,selectedOptionTextColor:t,defaultOptionColor:l,theme:c})=>e&&t?t:e&&!t?c.neutral["neutral-1"]:!e&&l?l:e||l?void 0:c.neutral["neutral-2"]};
|
|
1629
1629
|
|
|
@@ -1642,11 +1642,11 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1642
1642
|
display: ${({inline:e})=>e?"flex":"inline-block"};
|
|
1643
1643
|
width: max-content;
|
|
1644
1644
|
margin: 0;
|
|
1645
|
-
`,
|
|
1645
|
+
`,zl=({radioOuterCircleStyle:e,radioInnerCircleStyle:l,labelStyle:c,label:i,optionStyle:o,options:a,selectedCircleColor:r,selectedOptionTextColor:n,onChange:s,selected:d,width:p,height:m,inline:u,defaultBorderColor:f,defaultOptionColor:g,WrapperDivStyle:h,required:y,onFocus:C,...x})=>{const v=b()||R;return t.createElement("div",null,t.createElement(lt,{customStyles:c,type:"label-text",text:i,required:y,style:{display:"flex",marginBottom:"'8px",paddingBottom:"0px"}}),t.createElement(Ll,{inline:u},a.map(((c,i)=>t.createElement(Ml,{WrapperDivStyle:h,key:i+101*Math.random(),id:c.id,inline:u,onClick:()=>{!c?.disabled&&s(c.value)},onFocus:()=>{!c?.disabled&&C(c.value)}},t.createElement(kl,{theme:v,inBuiltCss:Z,defaultBorderColor:f,selectedCircleColor:r,radioOuterCircleStyle:{...e,cursor:c?.disabled?"not-allowed ":" pointer",borderColor:c?.disabled&&c?.disabledColor},defaultRadioOuterCircleStyle:"radio-outer-circle",value:c.value,selected:d},t.createElement(El,{inBuiltCss:Z,theme:v,width:p,height:m,selectedCircleColor:r,radioInnerCircleStyle:{...l,cursor:c?.disabled?"not-allowed ":" pointer",backgroundColor:c?.disabled&&c?.disabledColor?c?.disabledColor:c?.value===d?l?.backgroundColor:"transparent"},defaultRadioInnerCircleStyle:"radio-inner-circle",value:c.value,selected:d})),t.createElement(Vl,{defaultOptionColor:g,optionStyle:{...o,cursor:c?.disabled?"not-allowed ":" pointer",color:c?.disabled&&c?.disabledColor},inBuiltCss:Z,defaultOptionStyle:"option-text",selectedOptionTextColor:n,theme:v,selected:!c?.disabled&&c.value===d},c.label))))))};zl.propTypes={label:e.string,labelStyle:e.object,inline:e.bool,options:e.array,optionStyle:e.object,WrapperDivStyle:e.object,selected:e.string,onChange:e.func,defaultOptionColor:e.string,defaultBorderColor:e.string,radioOuterCircleStyle:e.object,radioInnerCircleStyle:e.object,width:e.string,height:e.string,selectedCircleColor:e.string,selectedOptionTextColor:e.string},zl.defaultProps={label:"",labelStyle:{},inline:!1,options:[],optionStyle:{},selected:"one",onChange:()=>{},radioOuterCircleStyle:{},radioInnerCircleStyle:{},width:"14px",height:"14px",WrapperDivStyle:{}};const Bl=m.div`
|
|
1646
1646
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1647
1647
|
|
|
1648
1648
|
//Set the styles from the default styles object
|
|
1649
|
-
${({inBuiltCss:e,defaultWrapperStyle:t})=>
|
|
1649
|
+
${({inBuiltCss:e,defaultWrapperStyle:t})=>F(e,t)}
|
|
1650
1650
|
|
|
1651
1651
|
border: ${({isValid:e,theme:t})=>e?"1px solid "+t.additional.border:"1px solid "+t.variant.error};
|
|
1652
1652
|
|
|
@@ -1670,7 +1670,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1670
1670
|
overflow: hidden;
|
|
1671
1671
|
text-overflow: ellipsis;
|
|
1672
1672
|
//Set the styles from the default styles object
|
|
1673
|
-
${({inBuiltCss:e,defaultInputStyle:t})=>
|
|
1673
|
+
${({inBuiltCss:e,defaultInputStyle:t})=>F(e,t)}
|
|
1674
1674
|
|
|
1675
1675
|
// custom styles
|
|
1676
1676
|
${({inputStyle:e})=>e}
|
|
@@ -1692,18 +1692,18 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1692
1692
|
margin-top: 5px;
|
|
1693
1693
|
font-size: 10px;
|
|
1694
1694
|
}
|
|
1695
|
-
`,Pl=({textBoxStyle:e,labelStyle:l,inputStyle:c,errMsg:i,required:o,label:a,labelInline:r,iconBefore:n,iconAfter:s,isValid:d,type:p,isDisabled:m,id:u,errMsgColor:f,iconAfterStyle:g,iconBeforeStyle:h,ref:y,pattern:C,iconColorOnFocus:x,...v})=>{const w=b()||R;return t.createElement(Wl,L({labelInline:r,theme:w,errMsgColor:f},v),t.createElement(lt,L({customStyles:l,type:"label-text",labelInline:r,text:a,errMsg:i,style:{display:"flex",marginBottom:`${r?0:"8px"}`,paddingBottom:"0px"},required:o},v)),t.createElement(
|
|
1695
|
+
`,Pl=({textBoxStyle:e,labelStyle:l,inputStyle:c,errMsg:i,required:o,label:a,labelInline:r,iconBefore:n,iconAfter:s,isValid:d,type:p,isDisabled:m,id:u,errMsgColor:f,iconAfterStyle:g,iconBeforeStyle:h,ref:y,pattern:C,iconColorOnFocus:x,...v})=>{const w=b()||R;return t.createElement(Wl,L({labelInline:r,theme:w,errMsgColor:f},v),t.createElement(lt,L({customStyles:l,type:"label-text",labelInline:r,text:a,errMsg:i,style:{display:"flex",marginBottom:`${r?0:"8px"}`,paddingBottom:"0px"},required:o},v)),t.createElement(Bl,L({required:o,isDisabled:m,theme:w,textBoxStyle:e,isValid:d,inBuiltCss:Z,defaultWrapperStyle:"textbox-wrapper",iconColorOnFocus:x},v),t.createElement("div",{className:"input-icon",style:{...h}},n),t.createElement(Hl,L({inputStyle:c,type:p,theme:w,id:u,defaultInputStyle:"input-wrapper",isDisabled:m,disabled:m,ref:y,pattern:C},v)),t.createElement("div",{className:"input-icon",style:{...g}},s)),i.length>0&&t.createElement("div",{className:"err-text"},i))};Pl.propTypes={inBuiltCss:e.object,label:e.string,required:e.bool,labelInline:e.bool,errMsg:e.string,iconBefore:e.any,iconAfter:e.any,textBoxStyle:e.object,labelStyle:e.object,inputStyle:e.object,type:e.string,isDisabled:e.bool,id:e.string,errMsgColor:e.string,iconAfterStyle:e.object,iconBeforeStyle:e.object,iconColorOnFocus:e.string},Pl.defaultProps={inBuiltCss:Z,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textBoxStyle:{},labelStyle:{},inputStyle:{},type:"text",isDisabled:!1,id:"",iconAfterStyle:{},iconBeforeStyle:{},iconColorOnFocus:""};const Rl=({label:e,placeholder:l,handleSearch:c,searchInput:i,customStylesForm:o,customStyleObject:a,textBoxStyle:r,id:n,...s})=>t.createElement(Pl,L({iconAfter:t.createElement(_,{icon:"magnifier-icon"}),label:e,textBoxStyle:r,placeholder:l,ref:i,onChange:c,id:n},s)),Zl=m.div`
|
|
1696
1696
|
//Set the styles from the default styles object
|
|
1697
|
-
${({inBuiltCss:e,defaultParentDivStyle:t})=>
|
|
1697
|
+
${({inBuiltCss:e,defaultParentDivStyle:t})=>F(e,t)}
|
|
1698
1698
|
|
|
1699
1699
|
border: 1px solid ${({isMyInputFocused:e,activeColor:t,defaultColor:l,theme:c})=>e&&t?t:e&&!t?c.primary["primary-1"]:!e&&l?l:e||l?void 0:c.neutral["neutral-3"]};
|
|
1700
1700
|
|
|
1701
1701
|
&:focus-within {
|
|
1702
1702
|
border-color: ${({activeColor:e,theme:t})=>e||t.primary["primary-1"]};
|
|
1703
1703
|
}
|
|
1704
|
-
`,
|
|
1704
|
+
`,Fl=m.div`
|
|
1705
1705
|
//Set the styles from the default styles object
|
|
1706
|
-
${({inBuiltCss:e,defaultWrapperDivStyle:t})=>
|
|
1706
|
+
${({inBuiltCss:e,defaultWrapperDivStyle:t})=>F(e,t)}
|
|
1707
1707
|
|
|
1708
1708
|
flex-direction: ${({signIcon:e})=>e?"column":"initial"};
|
|
1709
1709
|
width: ${({signIcon:e})=>e?"min-content":"calc(100% - 50px) !important"};
|
|
@@ -1724,7 +1724,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1724
1724
|
background-color: rgba(255, 255, 255, 0.05);
|
|
1725
1725
|
cursor: pointer;
|
|
1726
1726
|
`,jl=m.input`
|
|
1727
|
-
${({inBuiltCss:e,defaultInputStyle:t})=>
|
|
1727
|
+
${({inBuiltCss:e,defaultInputStyle:t})=>F(e,t)}
|
|
1728
1728
|
|
|
1729
1729
|
border-bottom: ${({value:e,defaultColor:t,theme:l})=>e.length>0?"none":t};
|
|
1730
1730
|
|
|
@@ -1757,10 +1757,10 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1757
1757
|
display: flex;
|
|
1758
1758
|
justify-content: center;
|
|
1759
1759
|
cursor: pointer;
|
|
1760
|
-
`,Ol=({onChange:e,activeColor:l,defaultColor:a,placeholderColor:r,placeholderText:n,customInputStyle:s,pointsArray:d,setPointsArray:p,value:m,setValue:u,valueForSignatureDrawing:f,setValueForSignatureDrawing:g,imageURL:h,setImageURL:y,id:C,...x})=>{const v=b()||R,[w,A]=i("default"),[S,E]=i(!1),[V,M]=i(!1),L=c(null);o((()=>{V&&(
|
|
1760
|
+
`,Ol=({onChange:e,activeColor:l,defaultColor:a,placeholderColor:r,placeholderText:n,customInputStyle:s,pointsArray:d,setPointsArray:p,value:m,setValue:u,valueForSignatureDrawing:f,setValueForSignatureDrawing:g,imageURL:h,setImageURL:y,id:C,...x})=>{const v=b()||R,[w,A]=i("default"),[S,E]=i(!1),[V,M]=i(!1),L=c(null);o((()=>{V&&(B(),g(L.current))}),[!0===V]);const z=()=>{u(""),g(L.current),L.current&&L.current.clear(),E(!1),M(!1)},B=()=>(p(L.current.toData()),y(L.current.toDataURL("image/png")),[h,d]);return t.createElement(Zl,{inBuiltCss:Z,defaultParentDivStyle:"signature-parent-div",isMyInputFocused:S,selected:w,activeColor:l,defaultColor:a,theme:v},t.createElement(Fl,{inBuiltCss:Z,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:l,defaultColor:a,selected:w,isMyInputFocused:S,signIcon:!0,theme:v},t.createElement(Tl,{activeColor:l,defaultColor:a,isMyInputFocused:S,theme:v,penIcon:!0,onClick:()=>{A("default"),z()}},t.createElement(_,{icon:"pen-icon",color:"default"===w?l||v.primary["primary-1"]:v.additional.black})),t.createElement(Tl,{activeColor:l,defaultColor:a,theme:v,isMyInputFocused:S,penIcon:!1,onClick:()=>{A("sign"),z()}},t.createElement(_,{icon:"sign-icon",color:"default"!==w?l||v.primary["primary-1"]:v.additional.black}))),t.createElement(Fl,{inBuiltCss:Z,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:l,defaultColor:a,theme:v,selected:w,isMyInputFocused:S,signIcon:!1,onTouchStart:()=>{}},"default"===w?t.createElement(jl,{inBuiltCss:Z,defaultInputStyle:"signature-input-text",placeholder:n,placeholderColor:r,customInputStyle:s,onBlur:()=>E(!1),onFocus:()=>E(!0),id:C,value:m,defaultColor:a,theme:v,onChange:e=>u(e.target.value)}):t.createElement(ql,{onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onClick:()=>{M(!0),B()}},t.createElement(k,{ref:L,id:C,redrawOnResize:!0,height:75,options:{minWidth:1,maxWidth:1,penColor:"#444444"}})),(m||V)&&t.createElement(Dl,{selected:w,onClick:()=>z()},t.createElement(_,{icon:"cross-icon",color:a||v.neutral["neutral-3"]}))))};Ol.propTypes={activeColor:e.string,defaultColor:e.string,placeholderColor:e.string,placeholderText:e.string,customInputStyle:e.object,pointsArray:e.any,setPointsArray:e.func,value:e.string,setValue:e.func,imageURL:e.string,setImageURL:e.func,id:e.string},Ol.defaultProps={customInputStyle:{},placeholderText:"Type your signature here",pointsArray:null,setPointsArray:()=>{},value:"",setValue:()=>{},imageURL:"",setImageURL:()=>{},setValueForSignatureDrawing:()=>{},id:""};const Gl=m.div`
|
|
1761
1761
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1762
1762
|
//Set the styles from the default styles object
|
|
1763
|
-
${({inBuiltCss:e,defaultWrapperStyle:t})=>
|
|
1763
|
+
${({inBuiltCss:e,defaultWrapperStyle:t})=>F(e,t)}
|
|
1764
1764
|
|
|
1765
1765
|
border: ${({isValid:e,theme:t})=>e?"1px solid "+t.additional.border:"1px solid "+t.variant.error};
|
|
1766
1766
|
|
|
@@ -1781,7 +1781,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1781
1781
|
${({textAreaStyle:e})=>e}
|
|
1782
1782
|
`,Xl=m.textarea`
|
|
1783
1783
|
//Set the styles from the default styles object
|
|
1784
|
-
${({inBuiltCss:e,defaultInputStyle:t})=>
|
|
1784
|
+
${({inBuiltCss:e,defaultInputStyle:t})=>F(e,t)}
|
|
1785
1785
|
margin: 0;
|
|
1786
1786
|
overflow: auto;
|
|
1787
1787
|
cursor: auto;
|
|
@@ -1800,7 +1800,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1800
1800
|
margin-top: 5px;
|
|
1801
1801
|
font-size: 10px;
|
|
1802
1802
|
}
|
|
1803
|
-
`,Yl=t.forwardRef((({customStylesForm:e,textAreaStyle:l,inputStyle:c,errMsg:i,iconBefore:o,iconAfter:a,isValid:r,rows:n,cols:s,id:d,labelProps:p,...m},u)=>{const f=b()||R,{labelInline:g}=p;return t.createElement(Ul,L({labelInline:g,customStylesForm:e,theme:f},m),t.createElement(lt,L({type:"label-text",style:{display:"flex",marginBottom:`${g?0:"8px"}`,paddingBottom:"0px"}},p)),t.createElement(Gl,L({theme:f,textAreaStyle:l,isValid:r,inBuiltCss:
|
|
1803
|
+
`,Yl=t.forwardRef((({customStylesForm:e,textAreaStyle:l,inputStyle:c,errMsg:i,iconBefore:o,iconAfter:a,isValid:r,rows:n,cols:s,id:d,labelProps:p,...m},u)=>{const f=b()||R,{labelInline:g}=p;return t.createElement(Ul,L({labelInline:g,customStylesForm:e,theme:f},m),t.createElement(lt,L({type:"label-text",style:{display:"flex",marginBottom:`${g?0:"8px"}`,paddingBottom:"0px"}},p)),t.createElement(Gl,L({theme:f,textAreaStyle:l,isValid:r,inBuiltCss:Z,defaultWrapperStyle:"textbox-wrapper"},m),t.createElement("div",{className:"input-icon"},o),t.createElement(Xl,L({ref:u,inputStyle:c,defaultInputStyle:"textarea-wrapper",cols:s,rows:n,inBuiltCss:Z,id:d},m,{size:"1"})),t.createElement("div",{className:"input-icon"},a)),t.createElement("div",{className:"err-text"},i))}));Yl.propTypes={rows:e.number,errMsg:e.string,iconBefore:e.any,iconAfter:e.any,textAreaStyle:e.object,inputStyle:e.object,id:e.string,labelProps:e.object},Yl.defaultProps={isValid:!0,errMsg:"",iconBefore:null,iconAfter:null,textAreaStyle:{},inputStyle:{},rows:3,id:"",labelProps:{labelInline:!1}};const Nl=m.div`
|
|
1804
1804
|
color: #a9b1b8;
|
|
1805
1805
|
font-size: 21px;
|
|
1806
1806
|
border: 1px solid
|
|
@@ -1860,7 +1860,8 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1860
1860
|
font-size: 18px;
|
|
1861
1861
|
cursor: pointer;
|
|
1862
1862
|
`,lc=({label:e,errMsg:l,hour:c,minute:i,period:o,onChange:a,id:r,...n})=>{const s=b()||R;return t.createElement(ec,L({theme:s},n),t.createElement($l,L({theme:s},n,{errMsg:l}),e),t.createElement("div",null,t.createElement(Nl,L({theme:s,id:r},n),t.createElement(Ql,{theme:s,value:c,onChange:function(e){const t=e.currentTarget.value>12?12:parseFloat(e.currentTarget.value)||0;a({hour:t,minute:i,period:o})}}),":",t.createElement(Ql,{theme:s,value:i,onChange:function(e){const t=e.currentTarget.value>59?59:parseFloat(e.currentTarget.value)||0;a({hour:c,minute:t,period:o})}}),t.createElement(tc,{theme:s,onClick:function(e){a({hour:c,minute:i,period:"AM"===o?"PM":"AM"})}},o)),t.createElement("div",{className:"err-text"},l)))};lc.propTypes={label:e.string,hour:e.number.isRequired,minute:e.number.isRequired,period:e.string.isRequired,required:e.bool,labelInline:e.bool,isValid:e.bool,errMsg:e.string,id:e.string},lc.defaultProps={label:"",hour:0,minute:0,period:"AM",required:!1,labelInline:!1,isValid:!0,errMsg:"",id:""};const cc=m.div`
|
|
1863
|
-
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>
|
|
1863
|
+
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>F(e,t)}
|
|
1864
|
+
${({checkboxWrapperStyle:e})=>e};
|
|
1864
1865
|
`,ic=m.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
|
`,ac=m.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
|
-
`,rc=({checked:e,customSwitchStyle:l,customToggleBoxStyle:c,onClick:i,optionStyle:o,id:a,isDisabled:r,trueLabel:n,falseLabel:s,labelPosition:d,...
|
|
1909
|
+
`,rc=({checked:e,customSwitchStyle:l,customToggleBoxStyle:c,onClick:i,optionStyle:o,id:a,isDisabled:r,trueLabel:n,falseLabel:s,labelPosition:d,checkboxWrapperStyle:p,...m})=>{const u=b()||R;return t.createElement(cc,L({inBuiltCss:Z,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper",checkboxWrapperStyle:p},m),"left"===d&&t.createElement(ac,{optionStyle:o,inBuiltCss:Z,theme:u,checked:e,labelPosition:d},e?n:s),t.createElement(oc,L({},m,{id:a,inBuiltCss:Z,onClick:()=>{i(!e)},isChecked:e,disabled:r,isDisabled:r,customToggleBoxStyle:c,labelPosition:d})),t.createElement(ic,L({},m,{htmlFor:a,customToggleBoxStyle:c,customSwitchStyle:l,inBuiltCss:Z,checked:e,theme:u,isDisabled:r,labelPosition:d})),("right"===d||"inside"===d)&&t.createElement(ac,{optionStyle:o,inBuiltCss:Z,theme:u,checked:e,labelPosition:d},e?n:s))};rc.propTypes={customToggleBoxStyle:e.object,customSwitchStyle:e.object,checked:e.bool,id:e.string,isDisabled:e.bool,trueLabel:e.string,falseLabel:e.string,labelPosition:e.oneOf(["left","right","inside"]),checkboxWrapperStyle:e.object},rc.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1,trueLabel:"Yes",falseLabel:"NO",labelPosition:"right",checkboxWrapperStyle:{}};const nc=m.div`
|
|
1911
1910
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1912
1911
|
padding: 24px 8px;
|
|
1913
1912
|
${({commentWrapperStyle:e})=>e};
|
|
@@ -1969,13 +1968,13 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1969
1968
|
margin-left: 16px;
|
|
1970
1969
|
`,gc=({commentsArray:e,customStyles:l,myInfoAvatarProps:c,loading:o,viewOnly:a,textInputProps:r,saveBtnProps:n,cancelBtnProps:s,loadMore:d,avatarProps:p,message:m})=>{const u=b()||R,[f,g]=i(!1),[h,y]=i(e||[]),C=async e=>{let t;t="post"===e?await n.callback():await d.callback(),y((e=>[...e,...t]))};return t.createElement(nc,{commentWrapperStyle:l?.commentWrapperStyle,theme:u},h.map(((e,c)=>{const{name:i,date:o,comment:a,image:r}=e;return t.createElement(sc,{key:c,commentBodyStyle:l?.commentBodyStyle,theme:u},t.createElement(dc,{commentHeadStyle:l?.commentHeadStyle},t.createElement(Ie,L({user:{fullName:i,userName:i,url:r},toggleName:!0,size:"LG",customStylesName:{color:u.additional["text-color"]}},p)),t.createElement(pc,{dateTimeStyle:l?.dateTimeStyle,theme:u},o)),t.createElement(mc,{commentDivStyle:l?.commentDivStyle},a))})),!o&&0===h.length&&m,o&&t.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:"24px"}},t.createElement(ue,{size:25})),!o&&d.showLoadMore&&t.createElement("div",{className:"load-more"},t.createElement(he,{onClick:()=>C("load")},"Load more")),!a&&t.createElement(bc,{theme:u,inputWrapperStyle:l?.inputWrapperStyle},t.createElement(Ie,L({toggleName:!1,customStylesImage:{height:"36px",width:"36px"},customStylesContainer:{marginTop:"7px"}},c)),t.createElement(fc,null,t.createElement(Yl,L({onChange:e=>{r.setInputValue(e.target.value)},isValid:!0,onFocus:e=>g(!0)},r)),f&&t.createElement(uc,null,t.createElement(xe,L({onClick:e=>{C("post"),r.setInputValue(e.target.value)}},n),n.text),t.createElement(he,L({disabled:!(!s?.isLoading&&!n?.isLoading),onClick:()=>{g(!1),r.setInputValue(""),r.setValidValue({isValid:!0,errMsg:""})},btnStyle:{color:u.variant["neutral-1"]}},s),s.text)))))};gc.propTypes={commentsArray:e.array,customStyles:e.object,myInfoAvatarProps:e.object,viewOnly:e.bool,textInputProps:e.object,saveBtnProps:e.object,cancelBtnProps:e.object,loadMore:e.object,avatarProps:e.object,message:e.element},gc.defaultProps={commentsArray:[],customStyles:{commentBodyStyle:{},commentWrapperStyle:{},commentHeadStyle:{},dateTimeStyle:{},commentDivStyle:{},inputWrapperStyle:{}},myInfoAvatarProps:{},loading:!1,viewOnly:!1,textInputProps:{},saveBtnProps:{size:"sm",text:"Save"},cancelBtnProps:{size:"sm",text:"Cancel"},loadMore:{showLoadMore:!1,callback:()=>{}},avatarProps:{},message:t.createElement("span",{style:{textAlign:"center",display:"block",marginBottom:"16px"}},"No comments yet")};const hc=m.div`
|
|
1971
1970
|
//Set the styles from the default styles object
|
|
1972
|
-
${({theme:e,type:t})=>
|
|
1971
|
+
${({theme:e,type:t})=>F(e,t)}
|
|
1973
1972
|
@media (max-width: 980px) {
|
|
1974
1973
|
margin-left: 0px;
|
|
1975
1974
|
}
|
|
1976
1975
|
// custom styles
|
|
1977
1976
|
${({customStyles:e})=>e}
|
|
1978
|
-
`,yc=({theme:e,type:l,customStyles:c,...i})=>t.createElement(hc,L({theme:e,customStyles:c,type:l},i),i.children);yc.propTypes={theme:e.object,customStyles:e.object,type:e.string},yc.defaultProps={theme:
|
|
1977
|
+
`,yc=({theme:e,type:l,customStyles:c,...i})=>t.createElement(hc,L({theme:e,customStyles:c,type:l},i),i.children);yc.propTypes={theme:e.object,customStyles:e.object,type:e.string},yc.defaultProps={theme:Z,customStyles:null,type:"content"};const Cc=m.div`
|
|
1979
1978
|
width: 100%;
|
|
1980
1979
|
display: flex;
|
|
1981
1980
|
flex-direction: column;
|
|
@@ -2133,7 +2132,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2133
2132
|
`,Lc=m.div`
|
|
2134
2133
|
margin: 10.5px 13px;
|
|
2135
2134
|
padding: 0;
|
|
2136
|
-
`,
|
|
2135
|
+
`,zc=m.div`
|
|
2137
2136
|
color: #081348;
|
|
2138
2137
|
padding: 7.7px 6.5px 7.7px 24px;
|
|
2139
2138
|
margin: 2.5px 13px;
|
|
@@ -2151,7 +2150,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2151
2150
|
background: #eaeefe;
|
|
2152
2151
|
border-radius: 5px;
|
|
2153
2152
|
}
|
|
2154
|
-
`,
|
|
2153
|
+
`,Bc=m.div`
|
|
2155
2154
|
position: relative;
|
|
2156
2155
|
display: flex;
|
|
2157
2156
|
width: 100%;
|
|
@@ -2256,16 +2255,16 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2256
2255
|
flex-direction: column;
|
|
2257
2256
|
gap: 20px;
|
|
2258
2257
|
${({customStyles:e})=>e}
|
|
2259
|
-
`,Rc=({customStyles:e,children:l})=>t.createElement(Pc,{customStyles:e},l),
|
|
2258
|
+
`,Rc=({customStyles:e,children:l})=>t.createElement(Pc,{customStyles:e},l),Zc=m.div`
|
|
2260
2259
|
display: ${({vertical:e})=>e?"inline-block":"block"};
|
|
2261
2260
|
background: ${({theme:e,borderColor:t})=>t||e.neutral["neutral-5"]};
|
|
2262
2261
|
content: '';
|
|
2263
2262
|
height: ${({vertical:e,thickness:t,height:l})=>e?l:t};
|
|
2264
2263
|
width: ${({vertical:e,thickness:t})=>e?t:null};
|
|
2265
|
-
`,
|
|
2264
|
+
`,Fc=({vertical:e,borderColor:l,thickness:c,height:i,...o})=>{const a=b()||R;return t.createElement(Zc,L({theme:a,borderColor:l,thickness:c,vertical:e,height:i},o))};Fc.propTypes={thickness:e.string,borderColor:e.string,vertical:e.bool,height:e.string},Fc.defaultProps={thickness:"2px",vertical:!1,height:"10px"};const Tc=m.div`
|
|
2266
2265
|
//Set the styles from the default styles object
|
|
2267
2266
|
${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:c})=>{if(e){let i={};if(e[t]){for(const t in e.common)i[t]=e.common[t];for(const l in e[t])delete e.common[l],i[l]=e[t][l];i=l?{...i,...e["drawer-open"]}:{...i,...e["drawer-close"]}}return{...i,...c}}}}
|
|
2268
|
-
`,jc=({customStyles:e,drawerOpen:l,setDrawerOpen:c,children:i,...o})=>t.createElement(Tc,L({inBuiltCss:
|
|
2267
|
+
`,jc=({customStyles:e,drawerOpen:l,setDrawerOpen:c,children:i,...o})=>t.createElement(Tc,L({inBuiltCss:Z,customStyles:e,type:"drawer",drawerOpen:l},o),i);jc.propTypes={customStyles:e.object,drawerOpen:e.bool,setDrawerOpen:e.func},jc.defaultProps={setDrawerOpen:()=>null};class qc extends n{constructor(e){super(e),this.state={hasError:!1},this.refreshPage=this.refreshPage.bind(this)}componentDidCatch(e,t){this.setState({hasError:!0})}refreshPage(){window.location.reload()}render(){const{hasError:e}=this.state;return e?t.createElement(a,null,t.createElement("h3",null,t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1.12em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1856 1664"},t.createElement("path",{d:"M1056 1375v-190q0-14-9.5-23.5t-22.5-9.5H832q-13 0-22.5 9.5T800 1185v190q0 14 9.5 23.5t22.5 9.5h192q13 0 22.5-9.5t9.5-23.5zm-2-374l18-459q0-12-10-19q-13-11-24-11H818q-11 0-24 11q-10 7-10 21l17 457q0 10 10 16.5t24 6.5h185q14 0 23.5-6.5t10.5-16.5zm-14-934l768 1408q35 63-2 126q-17 29-46.5 46t-63.5 17H160q-34 0-63.5-17T50 1601q-37-63-2-126L816 67q17-31 47-49t65-18t65 18t47 49z",fill:"currentColor"})),"We have experienced an issue. We generated a support ticket on our end to investigate this issue We are sorry about the inconvenience."),t.createElement(xe,{onClick:()=>this.refreshPage()},"Click to refresh")):this.props.children}}qc.propTypes={children:e.any};const Dc=u`
|
|
2269
2268
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
2270
2269
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
2271
2270
|
background: ${({theme:e})=>T(e.primary["primary-1"],.04)};
|
|
@@ -2288,10 +2287,10 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2288
2287
|
}
|
|
2289
2288
|
`,Gc=({options:e,selected:l,onClick:c,customStyles:i,disabled:o,...a})=>{const r=b()||R,n=e.map(((e,a)=>t.createElement(Oc,{theme:r,key:`${e.label}_${a}_${e.value}`,selected:l===e.value,onClick:()=>{c(e.value)},customStyles:i,disabled:o},e.label)));return t.createElement(t.Fragment,null,n)};Gc.propTypes={options:e.array,selected:e.string,onClick:e.func,customStyles:e.object,disabled:e.bool},Gc.defaultProps={options:[],selected:"",customStyles:{},disabled:!1};const Xc=m.footer`
|
|
2290
2289
|
//Set the styles from the default styles object
|
|
2291
|
-
${({theme:e,type:t})=>
|
|
2290
|
+
${({theme:e,type:t})=>F(e,t)}
|
|
2292
2291
|
// custom styles
|
|
2293
2292
|
${({customStyles:e})=>e}
|
|
2294
|
-
`,Jc=l((({theme:e,customStyles:l,...c},i)=>t.createElement(Xc,L({ref:i,theme:e,type:"footer",customStyles:l},c),c.children)));Jc.propTypes={theme:e.object,customStyles:e.object,type:e.string},Xc.defaultProps={theme:e.object},Jc.defaultProps={theme:
|
|
2293
|
+
`,Jc=l((({theme:e,customStyles:l,...c},i)=>t.createElement(Xc,L({ref:i,theme:e,type:"footer",customStyles:l},c),c.children)));Jc.propTypes={theme:e.object,customStyles:e.object,type:e.string},Xc.defaultProps={theme:e.object},Jc.defaultProps={theme:Z,customStyles:null};const Uc=m.div`
|
|
2295
2294
|
font-size: 14px;
|
|
2296
2295
|
background-color: transparent;
|
|
2297
2296
|
display: flex;
|
|
@@ -2334,10 +2333,10 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2334
2333
|
background-color: ${({theme:e})=>e.additional.white};
|
|
2335
2334
|
border-bottom: 0.5px solid ${({theme:e})=>e.variant["neutral-3"]};
|
|
2336
2335
|
//Set the styles from the default styles object
|
|
2337
|
-
${({inBuiltCss:e,type:t})=>
|
|
2336
|
+
${({inBuiltCss:e,type:t})=>F(e,t)}
|
|
2338
2337
|
// custom styles
|
|
2339
2338
|
${({customStyles:e})=>e}
|
|
2340
|
-
`,_c=({type:e,customStyles:l,...c})=>{const i=b()||R;return t.createElement($c,L({theme:i,type:"header",customStyles:l,inBuiltCss:
|
|
2339
|
+
`,_c=({type:e,customStyles:l,...c})=>{const i=b()||R;return t.createElement($c,L({theme:i,type:"header",customStyles:l,inBuiltCss:Z},c),c.children)};_c.propTypes={customStyles:e.object,type:e.string},_c.defaultProps={type:"header",customStyles:null};const ei=m.div`
|
|
2341
2340
|
display: flex;
|
|
2342
2341
|
justify-content: ${({showRowsPerPage:e})=>e?"space-between":"center"};
|
|
2343
2342
|
align-items: center;
|
|
@@ -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
|
-
`,ii=(e,t,l=1)=>{let c=e;const i=[];for(;c<=t;)i.push(c),c+=l;return i},
|
|
2435
|
+
`,ii="LEFT",oi="RIGHT",ai=(e,t,l=1)=>{let c=e;const i=[];for(;c<=t;)i.push(c),c+=l;return i},ri=({totalRecords:e,pageNeighbours:l,onPageChanged:c,currentPageNumber:a,propsDropdownSelect:r,showRowsPerPage:n})=>{let s=r?.selectedValue?.value||10;0==s?s=1:s>e&&(s=e);const[d,p]=i(a),[m,u]=i(a),[f,g]=i(Math.ceil(e/s)),[h,y]=i({from:0,to:0}),C=b()||R,{width:x}=ae();l=x<512?0:x<768?1:l,o((()=>{g(Math.ceil(e/s)),d?(v(d>f?1:d),p(0)):v(1)}),[s]),o((()=>{y({from:1+(m-1)*s,to:m*s>e?e:m*s})}),[m]);const v=t=>{const l=Math.max(0,Math.min(t,f));u(l);c({currentPage:l,totalPages:f,totalRecords:e})},w=e=>t=>{t.preventDefault(),v(e)},A=e=>{e.preventDefault();let t=m-2*(l||1)-1;v(0===t?1:t)},S=e=>{e.preventDefault(),v(m+2*(l||1)+1)};if(!e||0===s)return null;const k=(()=>{const e=2*l+3;if(f>e+3){const t=Math.max(2,m-l),c=Math.min(f-1,m+l);let i=ai(t,c);const o=t>2,a=f-c>1,r=e-(i.length+1);switch(!0){case o&&!a:{const e=ai(t-r,t-1);i=[ii,...e,...i];break}case!o&&a:{const e=ai(c+1,c+r);i=[...i,...e,oi];break}default:i=[ii,...i,oi]}return[1,...i,f]}return ai(1,f)})();return t.createElement(ei,{theme:C,showRowsPerPage:n},t.createElement(li,{theme:C},t.createElement(ti,{onClick:1!==m?w(m-1):null,disabled:1===m,theme:C},t.createElement(_,{icon:"triangle-down",transform:"rotate(90deg)",color:"#BBC4CF",customstyles:{cursor:1===m?"not-allowed":"pointer"}}),t.createElement("span",{id:"prev-text",className:"prev-text"}," ","PREVIOUS")),k.map(((e,l)=>e===ii?t.createElement("li",{key:l,className:"page-item"},t.createElement("div",{className:"page-link",onClick:A},t.createElement("span",{className:"text"},t.createElement(_,{icon:"load-more",color:"#081348",transform:"rotate(90deg)"})),t.createElement("span",{className:"icon"},t.createElement(_,{icon:"ellipses-horizontal",color:"#081348"}))," ")):e===oi?t.createElement("li",{key:l,className:"page-item"},t.createElement("div",{className:"page-link",onClick:S},t.createElement("span",{className:"text"},t.createElement(_,{icon:"load-more",color:C.primary["primary-2"],transform:"rotate(-90deg)"})),t.createElement("span",{className:"icon"},t.createElement(_,{icon:"ellipses-horizontal",color:C.primary["primary-2"]})))):t.createElement("li",{key:l,className:"page-item"+(m===e?" active":"")},t.createElement("div",{className:"page-link",onClick:w(e)},e)))),t.createElement(ti,{onClick:m!==f?w(m+1):null,disabled:m===f,theme:C},t.createElement("span",{id:"next-text",className:"next-text"}," ","NEXT"),t.createElement(_,{icon:"triangle-down",transform:"rotate(-90deg)",color:"#BBC4CF",customstyles:{cursor:m===f?"not-allowed":"pointer"}}))),n&&t.createElement(ci,null,t.createElement("span",{style:{margin:"0 16px",color:C.variant["neutral-3"],fontSize:"12px"}},"Rows Per Page"),t.createElement(Ut,L({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}]},r)),t.createElement("span",{style:{color:C.variant["neutral-3"],fontSize:"12px"}},h?.from,"-",h?.to," of"," ",t.createElement("span",{style:{color:C.variant["neutral-1"]}},e)," ","Results")))};ri.propTypes={totalRecords:e.number.isRequired,pageNeighbours:e.number,onPageChanged:e.func,showRowsPerPage:e.bool,currentPageNumber:e.number},ri.defaultProps={totalRecords:0,pageNeighbours:1,onPageChanged:()=>null,showRowsPerPage:!1};const ni=m.div`
|
|
2437
2436
|
display: flex;
|
|
2438
2437
|
align-items: center;
|
|
2439
2438
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2440
|
-
`,
|
|
2439
|
+
`,si=({...e})=>{const l=b()||R;return t.createElement(ni,{theme:l},e.children)},di=m.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
|
+
`;(si.PageItem=function({selected:e,...l}){const c=b()||R;return t.createElement(di,L({selected:e,theme:c},l),l.children)}).propTypes={selected:e.bool},si.PageItem.defaultProps={selected:!1};const pi=m.div`
|
|
2457
2456
|
display: flex;
|
|
2458
2457
|
justify-content: center;
|
|
2459
2458
|
align-items: center;
|
|
2460
2459
|
${({customParentStyles:e})=>e}
|
|
2461
|
-
`,
|
|
2460
|
+
`,mi=m.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
|
+
`,bi=m.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
|
+
`,ui=m.div`
|
|
2497
2496
|
padding: 0 15px;
|
|
2498
|
-
`,
|
|
2497
|
+
`,fi=m.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
|
+
`,gi=m.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
|
+
`,hi=({selectedPage:e,setSelectedPage:l,totalPage:c,customItemStyles:a,customLeftWrapperStyles:r,customIconWrapperStyles:n,previousText:s,nextText:d,pageToShow:p,totalResults:m,showResultPerPage:u,customParentStyles:f,customRightWrapperStyles:g,...h})=>{const y=b()||R,[C,x]=i([]);let v=p>c?c:p;o((()=>{x(Array.from({length:v},((e,t)=>t+1)))}),[c,p,v]);const w=t=>{let i=[];"increase"===t&&C[v-1]<=c&&e!==C[v-1]?l(e+1):"increase"===t&&C[v-1]<c?(i=Array.from({length:v},((e,t)=>t+C[0]+1)),x(i),l(e+1)):"decrease"===t&&C[0]<=e-1?l(e-1):"decrease"===t&&e>1&&(x(Array.from({length:v},((e,t)=>t+C[0]-1))),l(e-1))};return t.createElement(pi,{customParentStyles:f}," ",t.createElement(fi,L({theme:y,customLeftWrapperStyles:r},h),t.createElement(bi,L({onClick:()=>w("decrease"),disabled:1===e,theme:y,customIconWrapperStyles:n},h),t.createElement(_,{icon:"triangle-down",transform:"rotate(90deg)",color:y.variant["neutral-3"]}),t.createElement("span",{className:"prev-text"}," ",s)),t.createElement(ui,h,C.map(((c,i)=>t.createElement(mi,{key:i,theme:y,selected:e===c,onClick:()=>l(c),customItemStyles:a},c)))),t.createElement(bi,{onClick:()=>w("increase"),disabled:e===c,theme:y,customIconWrapperStyles:n},t.createElement("span",{className:"next-text"}," ",d),t.createElement(_,{icon:"triangle-down",transform:"rotate(-90deg)",color:y.variant["neutral-3"]}))),u&&t.createElement(gi,{theme:y,customRightWrapperStyles:g},t.createElement(Ut,{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:y.variant["neutral-3"]}),t.createElement("p",{style:{marginBottom:0}},t.createElement("span",null,"OF")," ",m," ",t.createElement("span",null,"RESULTS"))))};hi.propTypes={customItemStyles:e.object,selectedPage:e.number,customLeftWrapperStyles:e.object,customIconWrapperStyles:e.object,previousText:e.string,nextText:e.string,pageToShow:e.number,totalResults:e.number,showResultPerPage:e.bool,customParentStyles:e.object,customRightWrapperStyles:e.object},hi.defaultProps={selectedPage:1,customItemStyles:{},customLeftWrapperStyles:{},customIconWrapperStyles:{},previousText:"PREVIOUS",nextText:"NEXT",pageToShow:5,totalResults:0,showResultPerPage:!1,customParentStyles:{},customRightWrapperStyles:{}};const yi=m.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})=>u`height: ${e}px;`}
|
|
2526
|
-
`,
|
|
2527
|
-
`,
|
|
2525
|
+
`,Ci=m.div`
|
|
2526
|
+
`,xi=m.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
|
+
`,vi=({theme:e,toggleSet:l,slide:c,color:i,size:o,transform:a,ratingValue:r,starVal:n,hover:s,...d})=>t.createElement(xi,L({theme:e,ratingValue:r,starVal:n,hover:s,toggleSet:l,color:i,size:o,transform:a},d),t.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"},t.createElement("defs",null,t.createElement("clipPath",{id:"starFilled"},t.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"}))),t.createElement("rect",{x:"0",y:"0",fill:"rgb(217,217,217)",width:"100%",height:"100%",clipPath:"url(#starFilled)"}),t.createElement("rect",{x:c,y:"0",fill:i,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function wi(e,t){let l=5*e/t;const c=[],i=l;for(let e=0;e<5;e++){if(l-1>=0)c.push("0");else if(l-1<0&&l-1>-1){const e=(24*l-24).toString();c.push(e)}else c.push("-24");l-=1}return{array:c,value:i}}function Ai(e,t){return 100*e/t}const Si=({type:e,customStylesContainer:l,customStylesStar:c,customStylesPercentage:a,color:r,size:n,handleClick:s,transform:d,maxRange:p,value:m,toggleStar:u,toggleSet:f,identifier:g,...h})=>{b();const[y,C]=i(void 0),[x,v]=i(void 0),[w,A]=i(void 0),[S,k]=i(void 0);o((()=>{C(wi(m,p).array),v(wi(m,p).value),A(Ai(m,p))}),[m,p]),o((()=>{S?C(wi(S,p).array):(C(wi(m,p).array),v(wi(m,p).value),A(Ai(m,p)))}),[S]);const E=t.createElement(t.Fragment,null,y?.map(((e,l)=>{const i=20*(l+1);return t.createElement(vi,{ratingValue:i,starVal:x,hover:S,toggleSet:f,onClick:f?()=>s(i):null,onMouseEnter:f?()=>{k(i)}:null,onMouseLeave:f?()=>{k(null)}:null,slide:e,color:r,className:"star",size:n,transform:d,key:g?.concat(l),customStyles:c})})));return t.createElement(yi,L({customStyles:l,type:e,size:n},h,{className:"container"}),u?E:t.createElement(Ci,{type:e,customStyles:a},w,"%"))};Si.propTypes={customStylesContainer:e.object,customStylesStar:e.object,customStylesPercentage:e.object,type:e.string,color:e.string,size:e.number,transform:e.object,handleClick:e.func,maxRange:e.number,value:e.number,toggleStar:e.bool,toggleSet:e.bool,identifier:e.string},Si.defaultProps={customStylesContainer:null,customStylesStar:null,customStylesPercentage:null,type:"star",maxRange:100,value:0,identifier:"ratingKey",toggleStar:!0,toggleSet:!1,color:"#F7B001"};const ki=m.div`
|
|
2557
2556
|
.form-check-input {
|
|
2558
2557
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2559
2558
|
}
|
|
2560
|
-
`,
|
|
2559
|
+
`,Ei=({customStyles:e,inBuiltCss:l,type:c="table",sortIcon:i,data:o,tableColumns:a,progressPending:r,defaultSortFieldId:n,handleOnSort:s,sortServer:d,progressComponent:p,responsive:m,conditionalRowStyles:u,fixedHeader:f,fixedHeaderScrollHeight:g,checkboxColor:h,...y})=>{let C={};if(l&&l[c]&&(C=l[c]),e)for(const t in e)C[t]=e[t];const x=b()||R,v=t.forwardRef((({onClick:e,...l},c)=>t.createElement(ki,{theme:x},t.createElement("input",L({type:"checkbox",className:"form-check-input",ref:c,onClick:e},l)))));return t.createElement(E,L({responsive:m,data:o,columns:a,noHeader:!0,highlightOnHover:!0,sortIcon:i,progressPending:r,customStyles:C,defaultSortFieldId:n,progressComponent:p||void 0,sortServer:d,onSort:(e,t,l)=>{s(e,t,l)},conditionalRowStyles:u,fixedHeader:f,fixedHeaderScrollHeight:g,selectableRowsComponent:v},y))};Ei.propTypes={inBuiltCss:e.object,sortIcon:e.any,data:e.array,tableColumns:e.array,progressPending:e.bool,progressComponent:e.any,defaultSortFieldId:e.number,sortServer:e.bool,handleOnSort:e.any,responsive:e.bool,conditionalRowStyles:e.array,fixedHeader:e.bool,fixedHeaderScrollHeight:e.string,customStyle:e.object},Ei.defaultProps={inBuiltCss:Z,sortIcon:t.createElement(_,{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 Vi=({title:e,subtitle:l,wrapperStyle:c,imgLink:i,imgStyle:o,iconSize:a})=>{const r=b()||R,n={fontSize:"26px",fontWeight:"bold",color:`${r.additional["text-color"]}`,lineHeight:"36px",display:"flex",gap:"14px",alignItems:"flex-start",paddingLeft:"25px"},s={fontSize:"13px",color:`${r.neutral["neutral-2"]}`,lineHeight:"24px",paddingLeft:"25px"};return t.createElement("div",{style:c},t.createElement("div",{style:n},i?t.createElement("img",{src:i,alt:"userIcon",style:o}):t.createElement(_,{icon:"user-icon",size:a,color:r.primary["primary-1"]})," ",t.createElement("h4",null,e)),t.createElement("div",{style:s},t.createElement("p",null,l)))};Vi.propTypes={size:e.number},Vi.defaultProps={iconSize:23};const Mi=({formData:e,customStyles:l,...c})=>{const i=e=>{switch(e.type){case"header":return(e=>t.createElement(a,null,t.createElement(_c,L({},e,c),e.children),e))(e);case"label":return(e=>t.createElement(lt,L({style:{marginBottom:"8px",paddingBottom:"0"}},e,c)))(e);case"text":return(e=>t.createElement(Pl,L({},e,c)))(e);case"textArea":return(e=>t.createElement(Yl,L({},e,c)))(e);case"number":return(e=>t.createElement(Cl,L({},e,c)))(e);case"radio":return(e=>t.createElement(zl,L({key:101*Math.random()|0},e,c)))(e);case"checkBox":return(e=>t.createElement(ft,L({},e,c)))(e);case"singleSelect":return(e=>t.createElement(Ut,L({dropdownType:"singleSelect"},e,c)))(e);case"multiSelect":return(e=>t.createElement(Ut,L({dropdownType:"multiSelect"},e,c)))(e);case"asyncSingleSelect":return(e=>t.createElement(Ut,L({dropdownType:"asyncSingleSelect"},e,c)))(e);case"asyncMultiSelect":return(e=>t.createElement(Ut,L({dropdownType:"asyncMultiSelect"},e,c)))(e);case"signature":return(e=>t.createElement(Ol,L({},e,c)))(e);case"fileUpload":return(e=>t.createElement(cl,L({},e,c)))(e);case"date":return(e=>t.createElement(Wt,L({},e,c)))(e);case"paginationTypeTwo":return(e=>t.createElement(hi,L({},e,c)))(e);case"toggle":return(e=>t.createElement(rc,L({},e,c)))(e);case"icon":return(e=>t.createElement(_,L({},e,c)))(e);case"roundedLoader":return(e=>t.createElement(ue,L({},e,c)))(e);case"alert":return(e=>t.createElement(oe,L({},e,c)))(e);case"banner":return(e=>t.createElement(qe,L({},e,c)))(e);case"divider":return(e=>t.createElement(Fc,L({},e,c)))(e);case"headerComponent":case"headerComponent":return(e=>t.createElement(Vi,L({},e,c)))(e);case"documentCard":return(e=>t.createElement(N,L({},e,c)))(e);case"imageUploader":return(e=>t.createElement(ul,L({},e,c)))(e);case"accordion":return(e=>t.createElement(te,L({},e,c)))(e);case"content":return(e=>t.createElement(yc,L({},e,c)))(e);case"rating":return(e=>t.createElement(Si,L({},e,c)))(e);case"buttonPrimary":return(e=>t.createElement(xe,L({},e,c)))(e);case"buttonSecondary":return(e=>t.createElement(Ae,L({},e,c)))(e);case"buttonTiny":return(e=>t.createElement(ke,L({},e,c)))(e);case"buttonLink":return(e=>t.createElement(he,L({},e,c)))(e);case"search":return(e=>t.createElement(Rl,L({},e,c)))(e);case"table":return(e=>t.createElement(Ei,L({},e,c)))(e);case"passwordInput":return(e=>t.createElement(Sl,L({},e,c)))(e)}};return t.createElement(a,null,t.createElement(Bc,{defaultThemeColor:R},t.createElement(Rc,{onSubmit:()=>{},customStyles:l},e.map(((e,l)=>e.length>1?t.createElement(Ic,null,e.map(((l,c)=>t.createElement(Wc,{cols:e.length},i(l))))):i(e[0]))))))},Li=({formData:e,onSubmit:l,onReset:c,style:i,...o})=>{const r=e=>{switch(e.type){case"submit":return(e=>t.createElement(xe,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>t.createElement(Ae,{block:e.block,disabled:o.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return t.createElement(a,null,t.createElement(Hc,{style:i},e&&e.map(((e,t)=>e.map(((e,t)=>r(e)))))))};const zi=g`
|
|
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
|
+
`,Bi=m.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
|
+
`,Hi=m.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
|
+
`,Ii=({items:e,size:l,variantCircle:c,variantName:i,variantQty:o,user:a,colorCircle:r,colorBorderCircle:n,...s})=>{const d=b()||R;return t.createElement(Bi,s,e?.map(((o,a)=>{let s={},p={};return s.backgroundColor=r?`${d.variant[r]}`:`${d.variant[c]}`,0!==a&&(s.border=n?`2px solid ${n}`:`2px solid ${d.variant[c]}`,p.border=n?`2px solid ${n}`:`2px solid ${d.variant[c]}`),1===e.length?t.createElement(Ie,{key:o.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${d.variant[{variantName:i}]}`},size:l,toggleName:!0,user:o,customStylesCircle:s,customStylesImage:p}):a<=3?t.createElement(Ie,{key:o.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${d.variant[{variantName:i}]}`},size:l,toggleName:!1,user:o,customStylesCircle:s,customStylesImage:p}):null})),e.length-4>0?t.createElement(Hi,{theme:d,variantQty:o},"+",e.length-4):null)};Ii.propTypes={variantCircle:e.string,variantName:e.string,size:e.oneOf(["SM","MD","LG"]),user:e.object,theme:e.object,colorCircle:e.string,colorBorderCircle:e.string,variantQty:e.string},Ii.defaultProps={variantCircle:"primary-1",variantName:"primary-2",size:"MD",user:{userName:"1"},colorCircle:null,colorBorderCircle:"#FFFFFF",variantQty:"primary-1"};const Wi=m.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
|
+
`,Pi=m.div`
|
|
2709
2708
|
display: flex;
|
|
2710
2709
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:c})=>t?e.variant[c]:e.variant[l]};
|
|
2711
2710
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:c})=>t?e.variant[c]:e.variant[l]};
|
|
@@ -2720,24 +2719,24 @@ svg {
|
|
|
2720
2719
|
svg path {
|
|
2721
2720
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:c})=>t?e.variant[c]:e.variant[l]};
|
|
2722
2721
|
}
|
|
2723
|
-
`,
|
|
2722
|
+
`,Ri=m.div`
|
|
2724
2723
|
display: flex;
|
|
2725
2724
|
justify-content: space-evenly;
|
|
2726
2725
|
flex-grow: 1;
|
|
2727
2726
|
align-items: stretch;
|
|
2728
|
-
`,
|
|
2727
|
+
`,Zi=({label:e,index:l,style:c,items:i,variant:o,borderVariant:a,bgVariant:r,variantDisable:n,variantBgDisable:s,disabled:d,divider:p,indexPrefix:m,onClick:u,icon:f,variantTPtext:g,variantTPbg:h,...C})=>{b();const{getArrowProps:x,getTooltipProps:v,setTooltipRef:w,setTriggerRef:A,visible:S}=y();return t.createElement(t.Fragment,null,t.createElement(Ri,{ref:A},t.createElement(Pi,{variant:o,borderVariant:a,bgVariant:r,variantDisable:n,variantBgDisable:s,disabled:d,onClick:d?null:()=>{u(u)}},f),p),S&&t.createElement(Wi,L({variantTPtext:g,variantTPbg:h,ref:w},v({className:"tooltip-container"})),e,t.createElement("div",x({className:"tooltip-arrow"}))))};Zi.propTypes={variant:e.string,borderVariant:e.string,bgVariant:e.string,variantDisable:e.string,variantBgDisable:e.string,indexPrefix:e.string,theme:e.object,items:e.array,allDisabled:e.bool,divider:e.any,onClick:e.func,variantTPtext:e.string,variantTPbg:e.string},Ri.defaultProps={theme:R},Pi.defaultProps={theme:R},Wi.defaultProps={theme:R},Zi.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white",variantTPtext:null,variantTPbg:null};const Fi=m.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
|
+
`,Ti=m.div`
|
|
2736
2735
|
display: flex;
|
|
2737
2736
|
justify-content: space-evenly;
|
|
2738
2737
|
flex-grow: 1;
|
|
2739
2738
|
align-items: stretch;
|
|
2740
|
-
`,
|
|
2739
|
+
`,ji=m.div`
|
|
2741
2740
|
display: flex;
|
|
2742
2741
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:c})=>t?e.variant[c]:e.variant[l]};
|
|
2743
2742
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:c})=>t?e.variant[c]:e.variant[l]};
|
|
@@ -2752,19 +2751,19 @@ svg {
|
|
|
2752
2751
|
svg path {
|
|
2753
2752
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:c})=>t?e.variant[c]:e.variant[l]};
|
|
2754
2753
|
}
|
|
2755
|
-
`,
|
|
2754
|
+
`,qi=({style:e,items:l,variant:c,borderVariant:i,bgVariant:o,variantDisable:a,variantBgDisable:r,allDisabled:n,divider:s,indexPrefix:d,onClick:p,...m})=>(b(),t.createElement(Fi,L({variant:c,borderVariant:i},m),l?.map(((e,m)=>t.createElement(Ti,{key:d.concat(m)},t.createElement(ji,{variant:c,borderVariant:i,bgVariant:o,variantDisable:a,variantBgDisable:r,title:e.label,disabled:n||e.disabled,onClick:n||e.disabled?null:()=>p(e.label)},e.icon),l?.length-1!==m&&s)))));qi.propTypes={variant:e.string,borderVariant:e.string,bgVariant:e.string,variantDisable:e.string,variantBgDisable:e.string,indexPrefix:e.string,theme:e.object,items:e.array,allDisabled:e.bool,divider:e.any,onClick:e.func},Fi.defaultProps={theme:R},Ti.defaultProps={theme:R},ji.defaultProps={theme:R},qi.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white"};const Di=m.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
|
+
`,Oi=m.div`
|
|
2763
2762
|
display: flex;
|
|
2764
2763
|
justify-content: space-evenly;
|
|
2765
2764
|
flex-grow: 1;
|
|
2766
2765
|
align-items: stretch;
|
|
2767
|
-
`,
|
|
2766
|
+
`,Gi=m.div`
|
|
2768
2767
|
display: flex;
|
|
2769
2768
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:c})=>t?e.variant[c]:e.variant[l]};
|
|
2770
2769
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:c})=>t?e.variant[c]:e.variant[l]};
|
|
@@ -2779,28 +2778,28 @@ svg {
|
|
|
2779
2778
|
svg path {
|
|
2780
2779
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:c})=>t?e.variant[c]:e.variant[l]};
|
|
2781
2780
|
}
|
|
2782
|
-
`,
|
|
2781
|
+
`,Xi=({style:e,items:l,variant:c,borderVariant:i,bgVariant:o,variantDisable:a,variantBgDisable:r,allDisabled:n,divider:s,indexPrefix:d,onClick:p,variantTPtext:m,variantTPbg:u,...f})=>(b(),t.createElement(Di,L({variant:c,borderVariant:i},f),l?.map(((e,b)=>t.createElement(Zi,{key:d.concat(b),variant:c,borderVariant:i,bgVariant:o,variantDisable:a,variantBgDisable:r,disabled:n||e.disabled,onClick:n||e.disabled?null:()=>{p(e.label)},divider:l?.length-1!==b&&s,icon:e.icon,index:b,label:e.label,variantTPtext:m,variantTPbg:u})))));Xi.propTypes={variant:e.string,borderVariant:e.string,bgVariant:e.string,variantDisable:e.string,variantBgDisable:e.string,indexPrefix:e.string,theme:e.object,items:e.array,allDisabled:e.bool,divider:e.any,onClick:e.func,variantTPtext:e.string,variantTPbg:e.string},Di.defaultProps={theme:R},Oi.defaultProps={theme:R},Gi.defaultProps={theme:R},Xi.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white",variantTPtext:null,variantTPbg:null};const Ji=m.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
|
+
`,Ui=({variant:e,bgColor:l,borderColor:c,...i})=>(b(),t.createElement(Ji,L({variant:e,borderColor:c,bgColor:l},i)));Ui.propTypes={variant:e.string,size:e.number,theme:e.object,borderColor:e.string,bgColor:e.string},Ji.defaultProps={theme:R},Ui.defaultProps={theme:R,variant:"primary-1",size:11};const Yi=m.div`
|
|
2790
2789
|
display: inline-flex;
|
|
2791
2790
|
align-items: center;
|
|
2792
2791
|
background-color: transparent;
|
|
2793
2792
|
min-height: 24px;
|
|
2794
|
-
`,
|
|
2793
|
+
`,Ni=m.div`
|
|
2795
2794
|
display: flex;
|
|
2796
2795
|
justify-content: space-evenly;
|
|
2797
2796
|
width: 69px;
|
|
2798
|
-
`,
|
|
2797
|
+
`,Qi=m.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
|
+
`,Ki=({style:e,variantCircle:l,variantText:c,level:i,textArray:o,colorArray:a,indexPrefix:r,colorText:n,...s})=>(b(),t.createElement(Yi,s,t.createElement(Ni,null,[1,2,3,4].map(((e,c)=>{let o="#D4D7E3",n=null,s=null;return i<=0&&(i=0),i>=4&&(i=4),a?i>=e?(n=a[i],o=a[i]):n=a[0]:i>=e?(s=l,o=l):s="#FFFFFF",t.createElement(Ui,{key:r.concat(c),variant:s,borderColor:o,bgColor:n,size:11})}))),o&&t.createElement(Qi,{variantText:c,colorText:n},o[i])));Ki.propTypes={variantCircle:e.string,variantText:e.string,level:e.number,indexPrefix:e.string,theme:e.object,block:e.bool,textArray:e.array,colorArray:e.array,colorText:e.string},Qi.defaultProps={theme:R},Ki.defaultProps={theme:R,variantCircle:"primary-1",variantText:"primary-2",block:!1,level:0,indexPrefix:"circle-group"};const $i={xsm:{fontSize:"12px"},sm:{fontSize:"14px"},md:{fontSize:"16px"},lg:{fontSize:"18px"}},_i=m.button`
|
|
2804
2803
|
${({underlined:e})=>e?null:u`&: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})=>$i[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
|
+
`,eo=({block:e,size:l,style:c,variant:i,disabled:o,underlined:a,...r})=>(b(),t.createElement(_i,L({block:e,variant:i,type:"button",style:c,size:l,disabled:o,underlined:a},r),r.children));eo.propTypes={variant:e.string,disabled:e.bool,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,onClick:e.func,theme:e.object,underlined:e.bool},_i.defaultProps={theme:R},eo.defaultProps={theme:R,variant:"primary-1",block:!1,disabled:!1,size:"sm",onClick:void 0,label:"Remove",underlined:!1};const to=g`
|
|
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
|
+
`,lo=m.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
|
+
`,co=m.div`
|
|
2865
2864
|
//Set the styles from the default styles object
|
|
2866
|
-
${({inBuiltCss:e,type:t})=>
|
|
2865
|
+
${({inBuiltCss:e,type:t})=>F(e,t)}
|
|
2867
2866
|
// custom styles
|
|
2868
2867
|
${({customModalBodyStyle:e})=>e}
|
|
2869
|
-
`,
|
|
2868
|
+
`,io=m.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
|
+
`,oo=m.div`
|
|
2875
2874
|
padding-top: 16px;
|
|
2876
2875
|
|
|
2877
2876
|
//Set the styles from the default styles object
|
|
2878
|
-
${({inBuiltCss:e,type:t})=>
|
|
2877
|
+
${({inBuiltCss:e,type:t})=>F(e,t)}
|
|
2879
2878
|
// custom styles
|
|
2880
2879
|
${({customModalFooterStyle:e})=>e}
|
|
2881
|
-
`,
|
|
2880
|
+
`,ao=m.div`
|
|
2882
2881
|
cursor: pointer;
|
|
2883
|
-
`;try{V.setAppElement("#root")}catch(e){V.setAppElement("#__next")}const
|
|
2882
|
+
`;try{V.setAppElement("#root")}catch(e){V.setAppElement("#__next")}const ro=({modalIsOpen:e,toggleModal:l,closeOnOutsideClick:c,headerContent:i,bodyContent:o,footerContent:a,customModalHeaderStyle:r,customModalBodyStyle:n,customModalFooterStyle:s,customWidth:d,customMinWidth:p,customMaxWidth:m,contentStyle:u,contentWrapperStyle:f,customZIndex:g,hideCrossIcon:h,...y})=>{const C={overlay:{zIndex:g,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 ${(b()||R).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:d&&d,maxWidth:m&&m,...u}};return t.createElement("div",null,t.createElement(V,L({closeTimeoutMS:500,isOpen:e,onRequestClose:c?l:void 0,style:C,contentLabel:"Modal"},y),i&&t.createElement(lo,{style:r,"data-accordion":"contentClickFalse"},i,!h&&t.createElement(ao,{onClick:l},t.createElement(_,{icon:"close-icon",size:18}))),!i&&!h&&t.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginRight:"24px",paddingTop:"24px"}},t.createElement("div",null),t.createElement(ao,{onClick:l},t.createElement(_,{icon:"close-icon",size:18}))),t.createElement(io,{contentWrapperStyle:f,"data-accordion":"contentClickFalse"},t.createElement(co,{inBuiltCss:Z,style:n,"data-accordion":"contentClickFalse"},o),a&&t.createElement(oo,{inBuiltCss:Z,style:s,"data-accordion":"contentClickFalse"},a))),t.createElement(to,null))};ro.propTypes={modalIsOpen:e.bool,toggleModal:e.func,closeOnOutsideClick:e.bool,headerContent:e.any,hideCrossIcon:e.bool,bodyContent:e.any,footerContent:e.any,customModalHeaderStyle:e.object,customModalBodyStyle:e.object,customModalFooterStyle:e.object,customMinWidth:e.string,contentStyle:e.object,contentWrapperStyle:e.object,customZIndex:e.number},ro.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999,hideCrossIcon:!1};const no=m.div`
|
|
2884
2883
|
${({theme:e,type:t,customStyles:l})=>{if(e){let c={};if(e[t]){for(const t in e.common)c[t]=e.common[t];for(const l in e[t])c[l]=e[t][l],delete e.common[l]}return{...c,...l}}}}
|
|
2885
2884
|
}
|
|
2886
|
-
`,
|
|
2885
|
+
`,so=({theme:e,toggleSimple:l,contentTrigger:c,contentOverlay:i,popperOptionsP:o,settingsP:a,customStyles:r,...n})=>{let s={},d={};l?(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d}):(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),s={...s,...o},d={...d,...a};const{getArrowProps:p,getTooltipProps:m,setTooltipRef:b,setTriggerRef:u,visible:f}=y({...d},s);return t.createElement(t.Fragment,null,t.createElement("div",{ref:u,style:{width:"fit-content",height:"fit-content"}},c),f&&t.createElement(no,L({type:l?"simple-overlay":"overlay",theme:e,ref:b},m({className:"tooltip-container"}),{customStyles:r}),i))};so.propTypes={theme:e.object,contentTrigger:e.any,contentOverlay:e.any,popperOptionsP:e.object,settingsP:e.object,customStyles:e.object,toggleSimple:e.bool},so.defaultProps={theme:Z,contentTrigger:t.createElement("div",null,"Trigger"),contentOverlay:t.createElement("div",null,"I am the Overlay")};const po=m.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 c={};if(e[t]){for(const t in e.c
|
|
|
2894
2893
|
|
|
2895
2894
|
// custom styles
|
|
2896
2895
|
${({progressWrapStyle:e})=>e}
|
|
2897
|
-
`,
|
|
2896
|
+
`,mo=m.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 c={};if(e[t]){for(const t in e.c
|
|
|
2905
2904
|
// custom styles
|
|
2906
2905
|
${({progressBarStyle:e})=>e}
|
|
2907
2906
|
|
|
2908
|
-
`,
|
|
2907
|
+
`,bo=({labelStyle:e,progressBarStyle:l,progressWrapStyle:c,label:a,total:r,sections:n,innerContent:s,baseColor:d,baseTitle:p,labelProps:m,props:u})=>{const f=b()||R,[g,h]=i([[]]),[y,C]=i(null);o((()=>{n&&n.length>0&&h(n)}),[n]);const x=g?.length>0?g?.reduce(((e,t)=>e+t.count),0):0;x>r&&(r=x);const v=g?.length>0?g?.map((e=>e.count/r*100)):[],w=null!==y?g[y].label:p;return t.createElement("div",null,t.createElement(lt,L({inBuiltCss:Z,customStyles:e,type:"progressBar-label",text:a},m)),t.createElement(po,L({theme:f,progressWrapStyle:c,color:d,title:w},u),g?.map(((e,c)=>t.createElement(mo,L({key:c,onMouseEnter:()=>C(c),onMouseLeave:()=>C(null),progressBarStyle:l,theme:f,color:e.color,style:{width:v[c]+"%",left:0===c?0:v.slice(0,c).reduce(((e,t)=>e+t),0)+"%"}},u)))),t.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(),C(t)})(e,y),onMouseLeave:e=>{e.stopPropagation(),C(null)}},s)))};bo.propTypes={labelStyle:e.object,progressBarStyle:e.object,progressWrapStyle:e.object,sections:e.arrayOf(e.shape({color:e.string.isRequired,percentage:e.number,count:e.number.isRequired})).isRequired},bo.defaultProps={labelStyle:{},progressBarStyle:{},progressWrapStyle:{},label:"",total:100,innerContent:"",baseColor:"",baseTitle:"Total Task",labelProps:{},props:{}};const uo=m.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
|
+
`,fo=m.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 c={};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
|
+
`,go=m.div`
|
|
2932
2931
|
display: flex;
|
|
2933
2932
|
margin-left: 20px;
|
|
2934
2933
|
${({stepsStyle:e})=>e}
|
|
2935
2934
|
|
|
2936
|
-
`,
|
|
2935
|
+
`,ho=m.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:c})=>t?e.variant[l]:e.variant[c]};
|
|
2941
2940
|
border-radius: 19px;
|
|
2942
|
-
`,
|
|
2943
|
-
background: ${({disabled:e,theme:t,bgVariant:l})=>e?
|
|
2941
|
+
`,yo=({block:e,variantOn:l,variantOff:c,currentStep:i,totalSteps:o,widthStep:a,style:r,progressText:n,stepsStyle:s,...d})=>(b(),t.createElement(uo,L({block:e},d,{style:r}),t.createElement(fo,L({},d,{variantOn:l,variantOff:c}),n||"Page"," ",t.createElement("div",null,i)," of ",t.createElement("div",null,o)),t.createElement(go,L({stepsStyle:s},d),Array.from(Array(o).keys()).map((e=>t.createElement(ho,{key:"formSteps".concat(e),isActive:i===e+1,variantOn:l,variantOff:c,widthStep:a}))))));yo.propTypes={variantOn:e.string,variantOff:e.string,block:e.bool,theme:e.object,currentStep:e.number,totalSteps:e.number,widthStep:e.number,progressText:e.string},uo.defaultProps={theme:R},fo.defaultProps={theme:R},go.defaultProps={theme:R},ho.defaultProps={theme:R},yo.defaultProps={theme:R,variantOn:"primary-1",variantOff:"neutral-2",block:!1,currentStep:1,totalSteps:4,widthStep:43};const Co="#BBC4CF",xo=m.button`
|
|
2942
|
+
background: ${({disabled:e,theme:t,bgVariant:l})=>e?Co: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 c={};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: ${Co};
|
|
2957
|
+
border: 1px solid ${Co};
|
|
2959
2958
|
cursor: not-allowed;
|
|
2960
2959
|
|
|
2961
2960
|
svg>path{
|
|
@@ -2966,8 +2965,8 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let c={};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
|
+
`,vo=({block:e,style:l,variant:c,bgVariant:i,disabled:o,...a})=>(b(),t.createElement(xo,L({block:e,variant:c,bgVariant:i,type:"button",style:l,disabled:o},a),a.children));vo.propTypes={variant:e.string,bgVariant:e.string,disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object},xo.defaultProps={theme:R},vo.defaultProps={theme:R,variant:"primary-2",bgVariant:"neutral-4",block:!1,disabled:!1,onClick:void 0};const wo="#BBC4CF",Ao=m.button`
|
|
2969
|
+
background: ${({disabled:e,theme:t})=>e?wo: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 c={};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: ${wo};
|
|
2984
|
+
border: 1px solid ${wo};
|
|
2986
2985
|
cursor: not-allowed;
|
|
2987
2986
|
|
|
2988
2987
|
svg>path{
|
|
2989
2988
|
fill: #929EAC;
|
|
2990
2989
|
}
|
|
2991
2990
|
}
|
|
2992
|
-
`,
|
|
2991
|
+
`,So=({block:e,style:l,variant:c,borderVariant:i,disabled:o,...a})=>(b(),t.createElement(Ao,L({block:e,variant:c,borderVariant:i,type:"button",style:l,disabled:o},a),a.children));So.propTypes={variant:e.string,borderVariant:e.string,disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object},Ao.defaultProps={theme:R},So.defaultProps={theme:R,variant:"primary-2",borderVariant:"neutral-3",block:!1,disabled:!1,onClick:void 0};const ko={width:"auto",padding:0,boxShadow:"none",background:"transparent"},Eo={background:"transparent",border:"none",color:"white",fontSize:"16px",boxShadow:"none",borderRadius:0,padding:"8px 0 8px"},Vo={borderTop:"none",transition:"height ease 0.3s, transform ease 95ms",overflow:"hidden",padding:0,background:"transparent",borderRadius:0,boxShadow:"none"},Mo={float:"right",marginRight:"8px",marginTop:"3px"},Lo={boxShadow:"none",borderRadius:0,backgroundColor:"transparent"},zo={padding:0,boxShadow:"none",borderRadius:0,backgroundColor:"transparent"},Bo={transition:"height ease 0.2s",overflow:"hidden",padding:"0",backgroundColor:"transparent",color:"white",position:"relative",boxShadow:"none"},Ho={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"16px",fontWeight:"600"},Io={wordBreak:"break-word",paddingRight:"16px",fontWeight:"600"},Wo={padding:"0px 16px 0 0",marginLeft:"30px",height:"auto"},Po=m.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 c={};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
|
+
`,Ro={fontWeight:"600",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",margin:"0 16px ",textDecoration:"none"},Zo=m.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 c={};if(e[t]){for(const t in e.c
|
|
|
3020
3019
|
}
|
|
3021
3020
|
|
|
3022
3021
|
${({headerStyles:e})=>e}
|
|
3023
|
-
`,
|
|
3022
|
+
`,Fo=m.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 c={};if(e[t]){for(const t in e.c
|
|
|
3048
3047
|
@media (max-width: 428px) {
|
|
3049
3048
|
margin-top: 56px;
|
|
3050
3049
|
}
|
|
3051
|
-
`,
|
|
3050
|
+
`,To=m.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 c={};if(e[t]){for(const t in e.c
|
|
|
3080
3079
|
p {
|
|
3081
3080
|
margin: 0;
|
|
3082
3081
|
}
|
|
3083
|
-
`,
|
|
3082
|
+
`,jo=({headerContent:e,bodyContent:l,toggleSideBarOpen:c,headerStyles:a,selectedStyle:r,notSelectedStyle:n,customStylesNameHover:s,listElementStyle:d,customSelectCardColor:p,selectedAppPath:m,setSelectedAppPath:u,setSelectedAppPageId:f,setParentId:g,setRouterObject:h,notificationCircleStyles:y,singleLine:C=!0,customFontColor:x,sortByCore:v=!1})=>{const w=b()||R,[A,S]=i(null),[k,E]=i(!1),[V,M]=i([]);if(v){l.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 l)if(!0===e.core&&"dynamic-bottom"!==e.type){e.border=!0;break}}let L=l?.filter((e=>!0===e.visibleAsMenu&&"bottom"===e.type.split("-")[1])).length;o((()=>{M(m?.split("/")||[]),h({});let e=m?.split("/")||[],t=l&&l.find((t=>e[1]===t.path?.split("/")[1]));z(t),g(t?.id||null)}),[m]),o((()=>{!c&&E(!1),!c&&S(null)}),[c]);const z=e=>{if(e?.path===m){f(e?.id||null);let t={...e},l=e?.queryParams;l&&(t.path=e.path+l,t.link=e.link+l),h(t||null)}else e?.routes&&e?.routes.length>0&&e.routes.forEach((e=>z(e)))};let B=C?Ho:Io;const H=(e,l,c)=>{let i=e?.path.split("/"),o=i.length;if(e.routes&&e.routes.length>0){let a=e.routes.filter((e=>!0===e.visibleAsMenu)).length>0;return t.createElement(le,{key:e?.id+l,showIcon:!!a,contentToggle:t.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",marginLeft:`${c}px`},onClick:()=>{e?.queryParams?!a&&u(e.path,e.queryParams):!a&&u(e.path,"")}},t.createElement("span",{style:{visibility:3===o&&V[2]===i[2]?"visible":"hidden",marginRight:"16px",width:"7px",height:"7px",borderRadius:"50%",backgroundColor:x||w.additional.white,flexShrink:0}}),t.createElement("span",{id:e?.path.substring(1).replace(/\//g,"-"),style:{fontWeight:3===o&&V[2]===i[2]?"bold":"normal",color:x||w.variant.white}}," ",e?.link)),isAccordionOpen:m.includes(e.path),setContentIsOpen:()=>{},toggleIconAnimation:!0,content:t.createElement("div",null,e.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>H(e,t,c+8)))),customStylesAccordionContainer:ko,customStylesAccordionToggle:{cursor:"pointer",...Eo},customStylesAccordionContent:Vo,showIconInfo:!1,customWrapperStyles:Mo})}return t.createElement(To,{singleLine:C,listElementStyle:d,customFontColor:x,key:e?.id+l,onClick:()=>{u(e.path,e?.queryParams?e.queryParams:"")},theme:w},t.createElement("span",{className:"selected-disk",style:{visibility:o<=3&&m===e?.path&&V[V.length-1]?.toLowerCase()===i[o-1]?.toLowerCase()?"visible":"hidden",marginRight:"16px"}}),t.createElement("span",{className:"link",style:{marginLeft:c-8+"px",padding:"4px 8px",borderRadius:"4px",backgroundColor:o>3&&m===e?.path?d?.selectedChildBG||w.additional.white:"transparent",fontWeight:o<=3&&m===e?.path&&V[V.length-1]?.toLowerCase()===i[o-1]?.toLowerCase()?"bold":"normal",color:x||w.variant.white}}," ",e?.link))};return t.createElement(Po,{onClick:()=>E(!0),onMouseEnter:()=>E(!0),onMouseLeave:()=>{S(null),E(!1)},toggleSideBarOpen:c},t.createElement(Zo,{theme:w,headerStyles:a,toggleSideBarOpen:c},e),t.createElement(Fo,{toggleSideBarOpen:c,staticLayerNo:L},l&&l?.filter((e=>!0===e.visibleAsMenu))?.map(((e,i)=>t.createElement("div",{className:"service-layer",key:e?.value+i,onClick:()=>{S(i)},style:{backgroundColor:e?.value?.toLowerCase()===V[1]?.toLowerCase()?p:"transparent",borderTop:e?.border?"1px solid white ":"none"}},"static"!==e.type.split("-")[0]?t.createElement(le,{index:i,underMaintenance:e.maintenance,isAccordionOpen:i===A||k&&e?.value?.toLowerCase()===V[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===V[1]?.toLowerCase(),customSelectCardColor:p,customStylesAccordionContainer:{...Lo,padding:"0px 0px 0px 0px"},customStylesAccordionToggle:{cursor:e.maintenance?"not-allowed":"pointer",...zo},customStylesAccordionContent:Bo,contentToggle:t.createElement(Fe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...r},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...n},toggleName:c,customStylesName:{...B,color:e.maintenance?w.variant["neutral-3"]:x||w.variant.white},customStylesCircle:{background:x||"inherit"},customStylesNameHover:s,size:"MD",user:{userName:e?.label,url:e?.logo,appNameShortForm:e?.appNameShortForm},notificationCircleStyles:y,icon:e?.maintenance?t.createElement(_,{icon:"maintenance",size:22,color:w.variant["neutral-3"]}):l.length-1===i?t.createElement(_,{icon:"person",size:20,color:w.variant["primary-1"],customstyles:{backgroundColor:"white",borderRadius:"50%",padding:"8px",boxSizing:"content-box"}}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===V[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),content:t.createElement("div",{style:Wo},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>H(e,t,0))))}):t.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center"}},t.createElement(Fe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...r},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...n},toggleName:!1,customStylesName:{...B,color:x||"inherit"},customStylesCircle:{background:x||"inherit"},customStylesNameHover:s,size:"MD",user:{userName:e?.label,url:e?.logo},notificationCircleStyles:y,icon:e?.maintenance?t.createElement(_,{icon:"maintenance",size:22,color:w.variant["neutral-3"]}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===V[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),e.element?e.element:t.createElement("a",{href:e.path,target:e.target||"_blank",rel:"noreferrer",style:{color:e.maintenance?w.variant["neutral-3"]:x||w.variant.white,cursor:e.maintenance?"not-allowed":"pointer",...Ro}},e.label)))))))},qo=m.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;
|
|
@@ -3095,46 +3094,46 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let c={};if(e[t]){for(const t in e.c
|
|
|
3095
3094
|
// overflow-y: scroll !important;
|
|
3096
3095
|
}
|
|
3097
3096
|
|
|
3098
|
-
${({inBuiltCss:e,type:t})=>
|
|
3097
|
+
${({inBuiltCss:e,type:t})=>F(e,"sidebar-container")}
|
|
3099
3098
|
${({customStylesContainer:e})=>e}
|
|
3100
3099
|
|
|
3101
|
-
${({isOpen:e,forceOpen:t,inBuiltCss:l,customStylesContainerOpen:c,customStylesContainerClose:i})=>e||t?{...
|
|
3102
|
-
`,
|
|
3103
|
-
${({inBuiltCss:e})=>
|
|
3100
|
+
${({isOpen:e,forceOpen:t,inBuiltCss:l,customStylesContainerOpen:c,customStylesContainerClose:i})=>e||t?{...F(l,"sidebar-container-open"),...c}:{...F(l,"sidebar-container-close"),...i}}
|
|
3101
|
+
`,Do=m.div`
|
|
3102
|
+
${({inBuiltCss:e})=>F(e,"sidebar-pusher")}
|
|
3104
3103
|
${({customStylesPusher:e})=>e}
|
|
3105
3104
|
|
|
3106
|
-
${({forceOpen:e,inBuiltCss:t,customStylesPusherOpen:l,customStylesPusherClose:c})=>e?{...
|
|
3105
|
+
${({forceOpen:e,inBuiltCss:t,customStylesPusherOpen:l,customStylesPusherClose:c})=>e?{...F(t,"sidebar-pusher-open"),...l}:{...F(t,"sidebar-pusher-close"),...c}}
|
|
3107
3106
|
|
|
3108
3107
|
@media (max-width: 980px) {
|
|
3109
|
-
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...
|
|
3108
|
+
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...F(e,"sidebar-pusher-mobile"),...l})}
|
|
3110
3109
|
}
|
|
3111
|
-
`,
|
|
3110
|
+
`,Oo=({customStylesContainer:e,customStylesContainerOpen:l,customStylesContainerClose:c,customStylesContainerMobileOpen:i,customStylesContainerMobileClose:o,customStylesPusher:a,customStylesPusherOpen:r,customStylesPusherClose:n,customStylesPusherMobile:s,forceOpen:d,forceClose:p,handleSidebar:m,toggleSideBarOpen:u,pinner:f,containerBackgroundColor:g,containerBackgroundColorDynamic:h,...y})=>{function C(e){m(e)}const x=b()||R;return t.createElement(qo,L({theme:x,containerBackgroundColor:g,containerBackgroundColorDynamic:h,inBuiltCss:Z,customStyles:e,onMouseEnter:()=>{d||C(!0)},onClick:()=>!u&&C(!0),onMouseLeave:()=>{C(!1),p()},forceOpen:d,isOpen:u},y),t.createElement(Do,null),y.children,f)};Oo.propTypes={customStylesContainer:e.object,customStylesContainerOpen:e.object,customStylesContainerClose:e.object,customStylesContainerMobileOpen:e.object,customStylesContainerMobileClose:e.object,customStylesPusher:e.object,customStylesPusherOpen:e.object,customStylesPusherClose:e.object,customStylesPusherMobile:e.object,forceOpen:e.bool,forceClose:e.func,handleSidebar:e.func,toggleSideBarOpen:e.bool,pinner:e.any},Oo.defaultProps={forceClose:()=>{},forceOpen:!1,containerBackgroundColor:"#2A50FD",containerBackgroundColorDynamic:!1};const Go={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Xo=m.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})=>Go[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})=>Go[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
|
+
`,Jo=({block:e,style:l,variant:c,...i})=>(b(),t.createElement(Xo,L({block:e,variant:c,style:l},i),i.children));Jo.propTypes={size:e.oneOf(["sm","md","lg"]),variant:e.string,block:e.bool,theme:e.object},Xo.defaultProps={theme:R},Jo.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const Uo={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Yo=m.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})=>Uo[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})=>Uo[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
|
+
`,No=({block:e,style:l,variant:c,...i})=>(b(),t.createElement(Yo,L({block:e,variant:c,style:l},i),i.children));No.propTypes={size:e.oneOf(["sm","md","lg"]),variant:e.string,block:e.bool,theme:e.object},Yo.defaultProps={theme:R},No.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const Qo={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},Ko=m.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":Qo[t].width};
|
|
3146
3145
|
height: 28px;
|
|
3147
3146
|
box-sizing: border-box;
|
|
3148
3147
|
overflow: hidden;
|
|
3149
|
-
|
|
3148
|
+
`,$o=({block:e,style:l,variant:c,textColor:i,bgColor:o,...a})=>(b(),t.createElement(Ko,L({block:e,variant:c,textColor:i,bgColor:o,style:l},a),a.children));$o.propTypes={variant:e.string,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,theme:e.object,textColor:e.string,bgColor:e.string},Ko.defaultProps={theme:R},$o.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const _o={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},ea=m.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":_o[t].width};
|
|
3159
3158
|
height: 28px;
|
|
3160
3159
|
box-sizing: border-box;
|
|
3161
3160
|
overflow: hidden;
|
|
3162
|
-
`,
|
|
3161
|
+
`,ta=({block:e,style:l,variant:c,textColor:i,borderColor:o,...a})=>(b(),t.createElement(ea,L({block:e,variant:c,textColor:i,borderColor:o,style:l},a),a.children));ta.propTypes={variant:e.string,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,theme:e.object,textColor:e.string,borderColor:e.string},ea.defaultProps={theme:R},ta.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const la=m.div`
|
|
3163
3162
|
padding: 24px;
|
|
3164
3163
|
${({tabWrapperStyle:e})=>e}
|
|
3165
|
-
`,
|
|
3164
|
+
`,ca=m.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
|
+
`,ia=m.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
|
+
`,oa=m.div`
|
|
3181
3180
|
${({tabContentStyle:e})=>e}
|
|
3182
|
-
`,
|
|
3181
|
+
`,aa=({tabs:e,activeTab:l,setActiveTab:c,tabWrapperStyle:i,headerWrapperStyle:o,headerStyle:a,dividerProps:r,tabContentStyle:n,extraContent:s,activeHeaderStyle:d,iconProps:p})=>{const m=b()||R;return t.createElement(la,{tabWrapperStyle:i},t.createElement(ca,{theme:m,headerWrapperStyle:o},e.map(((e,i)=>t.createElement(ia,{id:"tab-"+i,theme:m,onClick:()=>c(i),active:i===l,key:e?.title+i,isActive:i===l,headerStyle:a,activeHeaderStyle:d},t.createElement("span",{style:{display:"flex",alignItems:"center",gap:e.icon&&e.title?"8px":"0px"}}," ",e.icon&&t.createElement(_,L({icon:e.icon},p)),e.title&&e.title)))),s),t.createElement(Fc,r),e.map(((e,c)=>c===l&&t.createElement(oa,{tabContentStyle:n,key:c},e.content))))};aa.propTypes={tabs:e.array,tabWrapperStyle:e.object,headerWrapperStyle:e.object,headerStyle:e.object,dividerProps:e.object,tabContentStyle:e.object,activeTab:e.number,setActiveTab:e.func,activeHeaderStyle:e.object,iconProps:e.object},aa.defaultProps={tabs:[],activeTab:0,tabWrapperStyle:{},headerStyle:{backgroundColor:"transparent",color:R.variant["primary-2"],fontWeight:"normal"},tabContentStyle:{},headerWrapperStyle:{},dividerProps:{},activeHeaderStyle:{color:R.variant["primary-1"],backgroundColor:T("#2A50FD",.05),fontWeight:"bold"},iconProps:{}};const ra=m.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
|
+
`,na=({close:e,children:l,type:i,position:a,timeout:r,localTimeout:n})=>{((e,t)=>{const l=c(e);o((()=>{l.current=e}),[e]),o((()=>{if(null===t)return;const e=setTimeout((()=>l.current()),t);return()=>clearTimeout(e)}),[t])})(e,n||r||5e3);const s=b()||R;let d=null;switch(i){case"success":d=t.createElement(_,{icon:"check-icon",color:"white",size:12,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"warning":d=t.createElement(_,{icon:"warning",color:"white",size:20,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"error":d=t.createElement(_,{icon:"close-white",size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"info":d=t.createElement(_,{icon:"info-icon",size:10,color:"white",customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"pending":d=t.createElement(ue,{size:14})}return t.createElement(ra,{theme:s,type:i,timeout:n||r||5e3},t.createElement("div",{className:`notification toast ${a}`},t.createElement("div",{className:"leftSide"},t.createElement("div",{className:"notification-icon"},d),t.createElement("div",{className:"notification-message"},l)),t.createElement("div",{className:"close-icon",onClick:e},t.createElement(_,{icon:"close-icon",color:s.variant["neutral-2"]}))),t.createElement("div",{className:`notification-progress ${a}-border`}))},sa=s(),da=m.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 pa(){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 ma=e=>{const[l,c]=i([]),a=(e,t,l,i)=>{c((c=>[...c,{id:i||pa(),content:t,type:e,localTimeout:l}]))},r=e=>c((t=>t.filter((t=>t.id!==e)))),n=d((()=>({open:a,close:r})),[]),[s,p]=i(!1);return o((()=>(p(!0),()=>p(!1))),[]),t.createElement(sa.Provider,{value:n},e.children,s?M(t.createElement(da,null,t.createElement("div",{className:`notification-container ${e.position}`},l.map((l=>t.createElement(na,{key:l.id,type:l.type,position:e.position,timeout:e.timeout,localTimeout:l.localTimeout,close:()=>r(l.id)},l.content))))),document.body):null)},ba=()=>p(sa),ua={xs:{fontSize:"12px",lineHeight:"120%"},sm:{fontSize:"14px",lineHeight:"120%"},md:{fontSize:"16px",lineHeight:"140%"},lg:{fontSize:"18px",lineHeight:"120%"}},fa=m.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
|
-
`,
|
|
3333
|
+
font-size: ${({size:e})=>ua[e].fontSize};
|
|
3334
|
+
line-height: ${({size:e})=>ua[e].lineHeight};
|
|
3335
|
+
`,ga=({size:e,children:l,bg:c,text:i,...o})=>{const a=b()||R;return t.createElement(fa,L({theme:a,bg:c,text:i,size:e},o),t.createElement(zi,{theme:a}),l)};ga.propTypes={size:e.oneOf(["xs","sm","md","lg"]),text:e.string,bg:e.string,children:e.any,theme:e.object},ga.defaultProps={size:"md"};export{te as Accordion,le as AccordionSB,Vc as ActionContainer,zc as ActionItem,oe as Alert,Ve as ArrowBar,Ie as Avatar,Fe as AvatarSB,qe as Banner,et as Breadcrumb,Zi as ButtonPopup,D as Card,G as CardRef,ft as CheckBoxInput,st as ChipsInput,yt as ColorInput,gc as Comment,yc as Content,vt as CountryCodedPhoneInput,vo as DarkSecondaryLink,Wt as DateSelect,Dt as DateTime,Fc as Divider,N as DocumentCard,ne as DotPulseLoader,jc as Drawer,Ut as DropdownSelect,cl as DropzoneInput,sl as EditableInput,qc as ErrorBoundary,Gc as FilterChip,Jc as Footer,Kc as FooterContent,Mi as FormComponent,Bc as FormContainer,Rc as FormWrapper,Ii as GroupAvatars,qi as GroupButtons,Xi as GroupButtonsPopup,Ki as GroupStatusCircle,_c as Header,Vi as HeaderComponent,eo as HyperLink,_ as Icon,Le as Image,ul as ImageUploader,lt as Label,So as LightSecondaryLink,he as LinkButton,pe as Loader,ro as ModalComp,Wc as MultiColumnDiv,Ic as MultiColumnWrapper,jo as Navbar,Cl as NumericInput,so as Overlay,Mc as OverlayOptionContainer,Lc as OverlayOptionItemLabel,Cc as PageContent,ri as Pagination,si as PaginationDefault,hi as PaginationTypeTwo,Sl as PasswordInput,xe as PrimaryButton,Jo as PrimaryStatusChip,bo as ProgressBar,yo as ProgressSteps,zl as RadioInput,Si as Rating,ue as RoundedLoader,Rl as SearchInput,Ae as SecondaryButton,No as SecondaryStatusChip,Oo as Sidebar,Ol as SignatureInput,$o as SlimPrimaryStatusChip,ta as SlimSecondaryStatusChip,Ui as StatusCircle,wc as StyledCentralBar,vc as StyledClearSearch,Sc as StyledCreateRow,kc as StyledRow,xc as StyledRowSearch,Ec as StyledSearchRow,Ac as StyledWarning,Hc as SubmitButtonContainer,Li as SubmitComponent,Ei as Table,aa as Tabs,Yl as TextArea,Pl as TextInput,lc as TimeInput,ke as TinyButton,ma as ToastProvider,rc as ToggleSwitch,Ne as Tooltip,ga as Typography,P as additionalColors,j as createDarker,Z as defaultStyles,R as defaultThemeColor,F as getDefaultStyles,W as graphColor,T as hexToRGB,H as neutralColor,z as primaryColor,I as shadeColor,B as uiColor,ba as useToast};
|