groundfloor-react-ui 1.2.31 → 1.2.33
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 +81 -61
- package/dist/index.js +197 -177
- 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 o,useRef as r,useState as l,useEffect as i,createRef as n,Component as a,Fragment as c,createContext as s,useMemo as d,useContext as p}from"react";import m,{useTheme as u,css as g,keyframes as b,createGlobalStyle as f}from"styled-components";import{ReactSVG as h}from"react-svg";import{usePopperTooltip as y}from"react-popper-tooltip";import x from"react-datepicker";import v,{components as A}from"react-select";import C from"react-select/async";import w from"react-signature-pad-wrapper";import S from"react-data-table-component";import E from"react-modal";import{createPortal as k}from"react-dom";function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},z.apply(this,arguments)}const V={"primary-1":"#2E56F4","primary-2":"#081348"},M={error:"#DD0000",success:"#00B904 "},B={"neutral-1":"#39424D","neutral-2":"#929EAC","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},W={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},I={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},R={primary:{...V},ui:{...M},neutral:{...B},shade:{...W},graph:{...I},variant:{...V,...M,...B,...W,...I},textColor:V["primary-2"],bgColor:"#FFFFFF",black:"#000000",border:"#D4D7E3"},L={common:{color:"blue","background-color":`${R.bgColor}`},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"},button:{color:"red","border-color":"black"},progressbarLabel:{display:"block","margin-left":"13px","margin-bottom":"7px","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":"13px","min-width":"30px","min-height":"30px"},avatarCircleMD:{"font-weight":"400","font-size":"12px","min-width":"32px","min-height":"32px"},avatarCircleLG:{"font-weight":"400","font-size":"16px","min-width":"38px","min-height":"38px"},avatarName:{},avatarNameSM:{"margin-left":"8px","font-size":"14px"},avatarNameMD:{"margin-left":"10px","font-size":"16px"},avatarNameLG:{"margin-left":"12px","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-family":"Averta","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.bgColor}`,"&: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":"51px","padding-left":"39px","font-size":"16px","background-color":`${R.bgColor}`,"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":"7px","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:"70px",transition:"width ease 400ms"},"checkBox-outer":{border:`2px solid ${R.border}`,minWidth:"20px",width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${R.bgColor}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",minWidth:"20px",width:"20px",height:"20px",color:`${R.bgColor}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"7px","padding-bottom":"0px",color:`${R.variant["neutral-2"]}`},"checkbox-option-text":{"font-size":"16px","margin-left":"10px","background-color":`${R.bgColor}`},"toggle-switch-wrapper":{display:"flex","align-items":"center",gap:"7px",width:"fit-content"},"toggle-switch-checkbox-label":{position:"absolute",width:"45px",height:"22px","border-radius":"31px",cursor:"pointer",marginBottom:"0px"},"toggle-switch-option-text":{color:`${R.neutral["neutral-1"]}`,"font-size":"16px"},"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.bgColor}`,"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.bgColor}`},"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.bgColor}`,"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":"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":"#FFFFFF","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"51px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${R.bgColor}`,"border-radius":"3.6px",border:`1px solid ${R.bgColor}`,"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.bgColor} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${R.bgColor} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${R.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${R.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${R.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${R.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${R.bgColor}`,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${R.bgColor}`,"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.bgColor}`,"border-radius":"3.6px",border:`1px solid ${R.bgColor}`,"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.bgColor}`,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",transition:"all ease 300ms",display:"flex","flex-direction":"column","z-index":"1001"},"sidebar-container-open":{width:"240px"},"sidebar-container-close":{width:"70px"},"sidebar-container-mobile-open":{width:"240px","z-index":"1001"},"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",width:"24px",height:"24px"},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"}},P=(e,t)=>{if(e){let o={};if(e[t]){for(const r in e[t])o[r]=e[t][r],delete e.common[r];for(const t in e.common)o[t]=e.common[t]}return o}};function H(e,t){var o=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),l=parseInt(e.slice(5,7),16);return t?"rgba("+o+", "+r+", "+l+", "+t+")":"rgb("+o+", "+r+", "+l+")"}H("#FF0000",.5);const T=m.div`
|
|
1
|
+
import e from"prop-types";import t,{forwardRef as o,useRef as r,useState as l,useEffect as i,createRef as n,Component as a,Fragment as c,createContext as s,useMemo as d,useContext as p}from"react";import m,{useTheme as u,css as g,keyframes as b,createGlobalStyle as f}from"styled-components";import{ReactSVG as h}from"react-svg";import{usePopperTooltip as y}from"react-popper-tooltip";import x from"react-datepicker";import v,{components as A}from"react-select";import C from"react-select/async";import S from"react-signature-pad-wrapper";import w from"react-data-table-component";import E from"react-modal";import{createPortal as k}from"react-dom";function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},z.apply(this,arguments)}const V={"primary-1":"#2E56F4","primary-2":"#081348"},M={error:"#DD0000",success:"#00B904 "},W={"neutral-1":"#39424D","neutral-2":"#929EAC","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},B={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},I={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},R={primary:{...V},ui:{...M},neutral:{...W},shade:{...B},graph:{...I},variant:{...V,...M,...W,...B,...I},textColor:V["primary-2"],bgColor:"#FFFFFF",black:"#000000",border:"#D4D7E3"},L={common:{color:"blue","background-color":`${R.bgColor}`},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"},button:{color:"red","border-color":"black"},progressbarLabel:{display:"block","margin-left":"13px","margin-bottom":"7px","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":"13px","min-width":"30px","min-height":"30px"},avatarCircleMD:{"font-weight":"400","font-size":"12px","min-width":"32px","min-height":"32px"},avatarCircleLG:{"font-weight":"400","font-size":"16px","min-width":"38px","min-height":"38px"},avatarName:{},avatarNameSM:{"margin-left":"8px","font-size":"14px"},avatarNameMD:{"margin-left":"10px","font-size":"16px"},avatarNameLG:{"margin-left":"12px","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-family":"Averta","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.bgColor}`,"&: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":"51px","padding-left":"39px","font-size":"16px","background-color":`${R.bgColor}`,"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":"7px","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:"70px",transition:"width ease 400ms"},"checkBox-outer":{border:`2px solid ${R.border}`,minWidth:"20px",width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${R.bgColor}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",minWidth:"20px",width:"20px",height:"20px",color:`${R.bgColor}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"7px","padding-bottom":"0px",color:`${R.variant["neutral-2"]}`},"checkbox-option-text":{"font-size":"16px","margin-left":"10px","background-color":`${R.bgColor}`},"toggle-switch-wrapper":{display:"flex","align-items":"center",gap:"7px",width:"fit-content"},"toggle-switch-checkbox-label":{position:"absolute",width:"45px",height:"22px","border-radius":"31px",cursor:"pointer",marginBottom:"0px"},"toggle-switch-option-text":{color:`${R.neutral["neutral-1"]}`,"font-size":"16px"},"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.bgColor}`,"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.bgColor}`},"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.bgColor}`,"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":"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":"#FFFFFF","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"51px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${R.bgColor}`,"border-radius":"3.6px",border:`1px solid ${R.bgColor}`,"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.bgColor} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${R.bgColor} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${R.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${R.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${R.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${R.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${R.bgColor}`,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${R.bgColor}`,"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.bgColor}`,"border-radius":"3.6px",border:`1px solid ${R.bgColor}`,"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.bgColor}`,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",transition:"all ease 300ms",display:"flex","flex-direction":"column","z-index":"1001"},"sidebar-container-open":{width:"240px"},"sidebar-container-close":{width:"70px"},"sidebar-container-mobile-open":{width:"240px","z-index":"1001"},"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",width:"24px",height:"24px"},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"}},P=(e,t)=>{if(e){let o={};if(e[t]){for(const r in e[t])o[r]=e[t][r],delete e.common[r];for(const t in e.common)o[t]=e.common[t]}return o}};function T(e,t){var o=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),l=parseInt(e.slice(5,7),16);return t?"rgba("+o+", "+r+", "+l+", "+t+")":"rgb("+o+", "+r+", "+l+")"}T("#FF0000",.5);const H=m.div`
|
|
2
2
|
color: ${({activeTheme:e})=>e.textColor};
|
|
3
3
|
padding-top: 25px;
|
|
4
4
|
padding-bottom: 25px;
|
|
@@ -13,7 +13,7 @@ import e from"prop-types";import t,{forwardRef as o,useRef as r,useState as l,us
|
|
|
13
13
|
|
|
14
14
|
// custom styles
|
|
15
15
|
${({customStyles:e})=>e}
|
|
16
|
-
`,j=({type:e,header:o,content:r,...l})=>{const i=u()||R;return t.createElement(
|
|
16
|
+
`,j=({type:e,header:o,content:r,...l})=>{const i=u()||R;return t.createElement(H,z({activeTheme:i},l),o,r)};j.propTypes={header:e.any,content:e.any};const q=m.div`
|
|
17
17
|
|
|
18
18
|
color: ${({activeTheme:e})=>e.textColor};
|
|
19
19
|
padding-top: 25px;
|
|
@@ -140,7 +140,7 @@ import e from"prop-types";import t,{forwardRef as o,useRef as r,useState as l,us
|
|
|
140
140
|
|
|
141
141
|
// custom styles
|
|
142
142
|
${({customWrapperStyles:e})=>e}
|
|
143
|
-
`,Y=({customStylesAccordionContainer:e,customStylesAccordionTogggle:o,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,toggleState:m,contentIsOpen:g,id:b,customWrapperStyles:f,showIconInfo:h,...y})=>{const x=r(null),v=u()||R,[A,C]=l(!1);return i((()=>{C(g)}),[g]),t.createElement(j,z({customStyles:e,type:"accordionContainer"},y,{header:t.createElement(j,z({customStyles:o,type:"accordionToggle"},y,{onClick:()=>{C(!A)},header:p,content:t.createElement(K,{theme:v,customWrapperStyles:f},h&&t.createElement("span",null,A?"Click to hide":"Click to open"),t.createElement("div",{style:c&&A?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",transition:"transform ease 95ms",background:"transparent"}},s||t.createElement(N,{icon:"chevron-down",size:11,transform:"translate(0px,-1px)",color:"#A9B1B8"})))})),content:t.createElement(F,z({customStyles:a,type:"accordionContent",ref:x},y,{style:A?{height:"auto"}:{height:"0px",border:"none"},id:b,content:d}))}))};Y.propTypes={customStylesAccordionContainer:e.object,customStylesAccordionTogggle:e.object,customStylesAccordionIcon:e.object,customStylesAccordionContent:e.object,toggleIconAnimation:e.bool,icon:e.any,content:e.any,contentToggle:e.any,toggleState:e.func,id:e.string,customWrapperStyles:e.object,showIconInfo:e.bool},Y.defaultProps={contentToggle:"Toggle",content:"Content",toggleIconAnimation:!0,showIconInfo:!0,toggleState:()=>{},id:"",customStylesAccordionContainer:{"margin-bottom":"10px",padding:"0","box-shadow":"none"},customStylesAccordionTogggle:{background:"#F0F3F8",cursor:"pointer","border-radius":"4px 4px 0 0",border:"0.5px solid #E2E6F5",color:`${R.variant["primary-2"]}`,"line-height":"17px","font-size":"14px",padding:"10px 17px",display:"flex","align-items":"center","justify-content":"space-between","box-shadow":"none",width:"auto"},customStylesAccordionContent:{"border-radius":"0 0 4px 4px",border:"0.5px solid #E2E6F5","border-top":"none",transition:"height ease 0.3s, transform ease 95ms",overflow:"hidden",padding:"0",width:"auto"}};const $=({customStylesAccordionContainer:e,customStylesAccordionTogggle:o,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,isSelected:m,index:g,handleClick:b,isAccordionOpen:f,id:h,customSelectCardColor:y,...x})=>{const[v,A]=l(!1),C=r(null),[w
|
|
143
|
+
`,Y=({customStylesAccordionContainer:e,customStylesAccordionTogggle:o,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,toggleState:m,contentIsOpen:g,id:b,customWrapperStyles:f,showIconInfo:h,...y})=>{const x=r(null),v=u()||R,[A,C]=l(!1);return i((()=>{C(g)}),[g]),t.createElement(j,z({customStyles:e,type:"accordionContainer"},y,{header:t.createElement(j,z({customStyles:o,type:"accordionToggle"},y,{onClick:()=>{C(!A)},header:p,content:t.createElement(K,{theme:v,customWrapperStyles:f},h&&t.createElement("span",null,A?"Click to hide":"Click to open"),t.createElement("div",{style:c&&A?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",transition:"transform ease 95ms",background:"transparent"}},s||t.createElement(N,{icon:"chevron-down",size:11,transform:"translate(0px,-1px)",color:"#A9B1B8"})))})),content:t.createElement(F,z({customStyles:a,type:"accordionContent",ref:x},y,{style:A?{height:"auto"}:{height:"0px",border:"none"},id:b,content:d}))}))};Y.propTypes={customStylesAccordionContainer:e.object,customStylesAccordionTogggle:e.object,customStylesAccordionIcon:e.object,customStylesAccordionContent:e.object,toggleIconAnimation:e.bool,icon:e.any,content:e.any,contentToggle:e.any,toggleState:e.func,id:e.string,customWrapperStyles:e.object,showIconInfo:e.bool},Y.defaultProps={contentToggle:"Toggle",content:"Content",toggleIconAnimation:!0,showIconInfo:!0,toggleState:()=>{},id:"",customStylesAccordionContainer:{"margin-bottom":"10px",padding:"0","box-shadow":"none"},customStylesAccordionTogggle:{background:"#F0F3F8",cursor:"pointer","border-radius":"4px 4px 0 0",border:"0.5px solid #E2E6F5",color:`${R.variant["primary-2"]}`,"line-height":"17px","font-size":"14px",padding:"10px 17px",display:"flex","align-items":"center","justify-content":"space-between","box-shadow":"none",width:"auto"},customStylesAccordionContent:{"border-radius":"0 0 4px 4px",border:"0.5px solid #E2E6F5","border-top":"none",transition:"height ease 0.3s, transform ease 95ms",overflow:"hidden",padding:"0",width:"auto"}};const $=({customStylesAccordionContainer:e,customStylesAccordionTogggle:o,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,isSelected:m,index:g,handleClick:b,isAccordionOpen:f,id:h,customSelectCardColor:y,...x})=>{const[v,A]=l(!1),C=r(null),[S,w]=l({}),[E,k]=l({}),V=u()||R;return i((()=>{m?(w((e=>({...e,backgroundColor:y||V.variant["primary-1"],marginBottom:"15.5px",marginTop:0!==g?"15.5px":"0px"}))),k((e=>({...e,backgroundColor:y||V.variant["primary-1"],paddingTop:"14px",paddingBottom:"14px",paddingLeft:"14px"})))):(w({}),k({}))}),[m]),i((()=>{A(!!f)}),[f]),t.createElement(j,z({customStyles:{...e,...S},type:"accordionContainer"},x,{header:t.createElement(j,z({customStyles:{...o,...E},type:"accordionToggle"},x,{onClick:()=>{v||b(g),A(!v)},header:p,content:t.createElement("div",{style:c&&v?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",background:"transparent"}},s)})),content:t.createElement(F,z({customStyles:a,type:"accordionContent",ref:C},x,{style:v?{height:C.current.scrollHeight+"px"}:{height:"0px",borderBottom:"none"},id:h,content:d}))}))};$.propTypes={customStylesAccordionContainer:e.object,customStylesAccordionTogggle:e.object,customStylesAccordionIcon:e.object,customStylesAccordionContent:e.object,toggleIconAnimation:e.bool,icon:e.any,content:e.any,contentToggle:e.any,id:e.string},$.defaultProps={contentToggle:"Toggle",content:"Content",id:""};const _=({customStylesAccordionContainer:e,customStylesAccordionTogggle:o,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,isSelected:m,index:u,handleClick:g,isAccordionOpen:b,disable:f,id:h,...y})=>{const[x,v]=l(!1),A=r(null),[C,S]=l({}),[w,E]=l({});return i((()=>{m?(S((e=>({...e,backgroundColor:"#2444d8",marginBottom:"15.5px",marginTop:0!==u?"15.5px":"0px"}))),E((e=>({...e,backgroundColor:"#2444d8",paddingTop:"14px",paddingBottom:"14px",paddingLeft:"14px"})))):(S({}),E({}))}),[m]),i((()=>{v(!!b)}),[b]),t.createElement(j,z({customStyles:{...e,...C},type:"accordionContainer"},y,{header:t.createElement(j,z({customStyles:{...o,...w},type:"accordionToggle"},y,{onClick:()=>{f||(x||g(u),v(!x))},header:p,content:t.createElement("div",{style:c&&x?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",background:"transparent"}},s)})),content:t.createElement(F,z({customStyles:a,type:"accordionContent",ref:A},y,{style:x?{height:A.current.scrollHeight+"px"}:{height:"0px",borderBottom:"none"},id:h,content:d}))}))};_.propTypes={customStylesAccordionContainer:e.object,customStylesAccordionTogggle:e.object,customStylesAccordionIcon:e.object,customStylesAccordionContent:e.object,toggleIconAnimation:e.bool,icon:e.any,content:e.any,contentToggle:e.any,id:e.string},_.defaultProps={contentToggle:"Toggle",content:"Content",id:""};const ee=m.div`
|
|
144
144
|
color: ${({theme:e,variant:t})=>t?e.variant[t]:"white"};
|
|
145
145
|
${({scroll:e})=>e?g`
|
|
146
146
|
display: flex;
|
|
@@ -289,7 +289,7 @@ ${({inBuiltCss:e,type:t,size:o,customStyles:r})=>{if(e){let l={};if(e[t]){for(co
|
|
|
289
289
|
|
|
290
290
|
// custom styles
|
|
291
291
|
${({notificationCircleStyles:e})=>e}
|
|
292
|
-
`,ge=({customStylesContainer:e,customStylesImage:o,customStylesCircle:r,customStylesName:i,customStylesNameHover:n,size:a,toggleName:c,user:s,border:d,isSelected:p,selectedStyle:m,notSelectedStyle:g,notificationCount:b,notificationCircleStyles:f,...h})=>{const y=u()||R,[x,v]=l("loading");return t.createElement(de,z({border:d,inBuiltCss:L,customStyles:e,type:"avatarContainer"},h),s?.url&&t.createElement(ie,z({},h,{inBuiltCss:L,customStyles:o,type:"imageAvatar",size:a,alt:"user-picture",src:s.url,handleImageStatus:e=>{v(e)},style:{visibility:"loaded"!==x?"hidden":"visible"}})),t.createElement(pe,z({},h,{theme:y,selectedStyle:m,notSelectedStyle:g,inBuiltCss:L,type:"avatarCircle",customStyles:r,size:a,style:{visibility:"loaded"!==x?"visible":"hidden"},isSelected:p}),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()),b>0&&t.createElement(ue,{notificationCircleStyles:f},"10")," ",c&&t.createElement(me,z({theme:y},h,{inBuiltCss:L,type:"avatarName",customStyles:i,customStylesHover:n,size:a}),s.userName," "))};ge.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:
|
|
292
|
+
`,ge=({customStylesContainer:e,customStylesImage:o,customStylesCircle:r,customStylesName:i,customStylesNameHover:n,size:a,toggleName:c,user:s,border:d,isSelected:p,selectedStyle:m,notSelectedStyle:g,notificationCount:b,notificationCircleStyles:f,...h})=>{const y=u()||R,[x,v]=l("loading");return t.createElement(de,z({border:d,inBuiltCss:L,customStyles:e,type:"avatarContainer"},h),s?.url&&t.createElement(ie,z({},h,{inBuiltCss:L,customStyles:o,type:"imageAvatar",size:a,alt:"user-picture",src:s.url,handleImageStatus:e=>{v(e)},style:{visibility:"loaded"!==x?"hidden":"visible"}})),t.createElement(pe,z({},h,{theme:y,selectedStyle:m,notSelectedStyle:g,inBuiltCss:L,type:"avatarCircle",customStyles:r,size:a,style:{visibility:"loaded"!==x?"visible":"hidden"},isSelected:p}),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()),b>0&&t.createElement(ue,{notificationCircleStyles:f},"10")," ",c&&t.createElement(me,z({theme:y},h,{inBuiltCss:L,type:"avatarName",customStyles:i,customStylesHover:n,size:a}),s.userName," "))};ge.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},ge.defaultProps={block:!1,size:"MD",toggleName:!1,user:null,customStylesContainer:null,customStylesImage:null,customStylesCircle:null,customStylesName:null,notificationCircleStyles:{},notificationCount:0};const be=m.span`
|
|
293
293
|
|
|
294
294
|
${({inBuiltCss:e,type:t,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t in e.common)r[t]=e.common[t];for(const o in e[t])r[o]=e[t][o],delete e.common[o]}return{...r,...o}}}}
|
|
295
295
|
width: auto;
|
|
@@ -341,7 +341,7 @@ ${({inBuiltCss:e,type:t,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t i
|
|
|
341
341
|
100% {
|
|
342
342
|
opacity: 0;
|
|
343
343
|
}
|
|
344
|
-
`,
|
|
344
|
+
`,Se=m.div`
|
|
345
345
|
${({size:e,thickness:t,propellerHeight:o})=>g`
|
|
346
346
|
display: inline-block;
|
|
347
347
|
position: relative;
|
|
@@ -437,7 +437,7 @@ ${({inBuiltCss:e,type:t,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t i
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
`}
|
|
440
|
-
`,
|
|
440
|
+
`,we=({size:e,thickness:o,propellerHeight:r,customStyles:l})=>{const i=L;return t.createElement(Se,{theme:i,size:e,thickness:o,propellerHeight:r,customStyles:l,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))};Se.defaultProps={theme:L},we.propTypes={size:e.number,thickness:e.number,propellerHeight:e.number,customStyles:e.object},we.defaultProps={size:20,thickness:2,propellerHeight:25,customStyles:null};const Ee={sm:{fontSize:"14px",padding:"5px 15px"},md:{fontSize:"16px",padding:"5.5px 15px"},lg:{fontSize:"18px",padding:"8px 20px"}},ke=m.button`
|
|
441
441
|
background: transparent;
|
|
442
442
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
443
443
|
padding: ${({size:e})=>Ee[e].padding};
|
|
@@ -459,7 +459,7 @@ ${({inBuiltCss:e,type:t,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t i
|
|
|
459
459
|
|
|
460
460
|
// custom styles
|
|
461
461
|
${({btnStyle:e})=>e}
|
|
462
|
-
`,ze=({btnStyle:e,block:o,size:r,style:l,variant:i,disabled:n,isLoading:a,type:c,id:s,...d})=>{const p=u()||R;return t.createElement(ke,z({id:s,block:o,variant:i,defaultStyle:"button",type:c,style:l,size:r,theme:p,disabled:n,btnStyle:e},d),a&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(
|
|
462
|
+
`,ze=({btnStyle:e,block:o,size:r,style:l,variant:i,disabled:n,isLoading:a,type:c,id:s,...d})=>{const p=u()||R;return t.createElement(ke,z({id:s,block:o,variant:i,defaultStyle:"button",type:c,style:l,size:r,theme:p,disabled:n,btnStyle:e},d),a&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(we,{customStyles:{"background-color":p.bgColor},size:16})),d.children)};ze.propTypes={variant:e.string,disabled:e.bool,size:e.oneOf(["sm","md","lg"]),block:e.bool,isLoading:e.bool,onClick:e.func,type:e.string,btnStyle:e.object,id:e.string},ze.defaultProps={variant:"primary-1",block:!1,isLoading:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const Ve={sm:{fontSize:"14px",padding:"5px 15px"},md:{fontSize:"16px",padding:"5.5px 15px"},lg:{fontSize:"18px",padding:"8px 20px"}},Me=({theme:e,variant:t})=>T(e.variant[t],.6),We=m.button`
|
|
463
463
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
464
464
|
color: ${({theme:e})=>e.bgColor};
|
|
465
465
|
padding: ${({size:e})=>Ve[e].padding};
|
|
@@ -484,7 +484,7 @@ ${({inBuiltCss:e,type:t,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t i
|
|
|
484
484
|
|
|
485
485
|
// custom styles
|
|
486
486
|
${({btnStyle:e})=>e}
|
|
487
|
-
`,
|
|
487
|
+
`,Be=({btnStyle:e,block:o,size:r,style:l,variant:i,disabled:n,isLoading:a,type:c,id:s,...d})=>{const p=u()||R;return t.createElement(We,z({id:s,block:o,variant:i,defaultStyle:"button",type:c,style:l,size:r,theme:p,disabled:n,btnStyle:e},d),a&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(we,{customStyles:{"background-color":p.bgColor},size:16})),d.children)};Be.propTypes={variant:e.string,disabled:e.bool,size:e.oneOf(["sm","md","lg"]),block:e.bool,isLoading:e.bool,onClick:e.func,type:e.string,btnStyle:e.object,id:e.string},Be.defaultProps={variant:"primary-1",block:!1,isLoading:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const Ie={sm:{fontSize:"14",padding:"5px 15px"},md:{fontSize:"16",padding:"5.5px 15px"},lg:{fontSize:"18",padding:"8px 20px"}},Re=m.button`
|
|
488
488
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
489
489
|
background: ${({theme:e})=>e.bgColor};
|
|
490
490
|
padding: ${({size:e})=>Ie[e].padding};
|
|
@@ -507,7 +507,7 @@ ${({inBuiltCss:e,type:t,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t i
|
|
|
507
507
|
${({theme:e,defaultStyle:t})=>P(e,t)}
|
|
508
508
|
// custom styles
|
|
509
509
|
${({btnStyle:e})=>e}
|
|
510
|
-
`,Le=({btnStyle:e,isLoading:o,block:r,size:l,style:i,variant:n,disabled:a,type:c,theme:s,id:d,...p})=>{const m=u()||R;return t.createElement(Re,z({id:d,block:r,variant:n,defaultStyle:"button",style:i,size:l,disabled:a,type:c,btnStyle:e,isLoading:o,theme:s},p),o&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(
|
|
510
|
+
`,Le=({btnStyle:e,isLoading:o,block:r,size:l,style:i,variant:n,disabled:a,type:c,theme:s,id:d,...p})=>{const m=u()||R;return t.createElement(Re,z({id:d,block:r,variant:n,defaultStyle:"button",style:i,size:l,disabled:a,type:c,btnStyle:e,isLoading:o,theme:s},p),o&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(we,{theme:s,customStyles:{"background-color":m.variant[n]},size:16})," "),p.children," ")};Le.propTypes={variant:e.string,disabled:e.bool,size:e.oneOf(["sm","md","lg"]),block:e.bool,onClick:e.func,theme:e.object,type:e.string,btnStyle:e.object,id:e.string},Re.defaultProps={theme:R},Le.defaultProps={theme:R,variant:"primary-1",block:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const Pe=m.button`
|
|
511
511
|
background: ${({disabled:e,theme:t,variant:o})=>e?"#BBC4CF":t.variant[o]};
|
|
512
512
|
color: ${({theme:e})=>e.bgColor};
|
|
513
513
|
padding: 3px 14px;
|
|
@@ -530,7 +530,7 @@ ${({inBuiltCss:e,type:t,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t i
|
|
|
530
530
|
|
|
531
531
|
//Set the styles from the default styles object
|
|
532
532
|
${({theme:e,defaultStyle:t})=>P(e,t)}
|
|
533
|
-
`,
|
|
533
|
+
`,Te=({block:e,style:o,variant:r,disabled:l,type:i,id:n,...a})=>(u(),t.createElement(Pe,z({id:n,block:e,variant:r,defaultStyle:"button",type:i,style:o,disabled:l},a),a.children));Te.propTypes={variant:e.string,disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object,type:e.string,id:e.string},Pe.defaultProps={theme:R},Te.defaultProps={theme:R,variant:"primary-1",block:!1,disabled:!1,onClick:void 0,id:""};const He=m.div`
|
|
534
534
|
background-color: ${({theme:e})=>e.bgColor};
|
|
535
535
|
border: 1px solid ${({theme:e})=>e.bgColor};
|
|
536
536
|
color: ${({theme:e})=>e.black},
|
|
@@ -605,7 +605,7 @@ ${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>P(e,t)}
|
|
|
605
605
|
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>P(e,t)}
|
|
606
606
|
// custom styles
|
|
607
607
|
${({customTriggerStyle:e})=>e}
|
|
608
|
-
`,Ge=({inBuiltCss:e,contentTrigger:o,contentTooltip:r,popperOptionsP:l,settings:i,customStylesTPContainer:n,customStylesTPAbottom:a,customStylesTPAbottomBefore:c,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:g,customStylesTPArightBefore:b,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v,customStylesTPArrow:A,customStylesTPAbefore:C,customStylesTPAafter:
|
|
608
|
+
`,Ge=({inBuiltCss:e,contentTrigger:o,contentTooltip:r,popperOptionsP:l,settings:i,customStylesTPContainer:n,customStylesTPAbottom:a,customStylesTPAbottomBefore:c,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:g,customStylesTPArightBefore:b,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v,customStylesTPArrow:A,customStylesTPAbefore:C,customStylesTPAafter:S,customTooltipContentStyle:w,customContentStyle:E,customHeaderStyle:k,customBodyStyle:V,customTriggerStyle:M,headerTooltip:W,footerTooltip:B,...I})=>{const P=u()||R,T={modifiers:[{name:"offset",options:{offset:[0,23]}}],strategy:"absolute",...l},{getArrowProps:H,getTooltipProps:j,setTooltipRef:q,setTriggerRef:F,visible:O}=y({interactive:!0,...i},T);return t.createElement(t.Fragment,null,t.createElement(Xe,{ref:F,inBuiltCss:L,customTriggerStyle:M,style:{width:"fit-content",height:"fit-content",display:"inline-block"}},o),O&&t.createElement(He,z({inBuiltCss:L,theme:P,ref:q},j({className:"tooltip-container"}),{customStylesTPContainer:n,customStylesTPAbottom:a,customStylesTPAbottomBefore:c,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:g,customStylesTPArightBefore:b,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v}),t.createElement(je,z({inBuiltCss:L},H({className:"tooltip-arrow"}),{customStylesTPArrow:A,customStylesTPAbefore:C,customStylesTPAafter:S})),t.createElement(qe,z({defaultTooltipContentStyle:"popOver-Content",theme:P,inBuiltCss:L},I,{customContentStyle:E}),t.createElement(Fe,z({defaultTooltipHeaderStyle:"popOver-header",theme:P,inBuiltCss:L},I,{customHeaderStyle:k}),W),t.createElement(Oe,z({defaultTooltipBodyStyle:"popOver-body",theme:P,inBuiltCss:L},I,{customBodyStyle:V}),r),t.createElement(Ze,null,B))))};Ge.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},Ge.defaultProps={contentTrigger:t.createElement("div",null,"Trigger"),headerTooltip:"Lovely tooltip title",contentTooltip:"There are a lot of things you can do in space, and space essentially is unlimited resources.",footerTooltip:t.createElement(Le,{size:"sm"},"Next"),customStylesTPContainer:{border:"none"},customTriggerStyle:{}};const Je=m.div`
|
|
609
609
|
background: transparent;
|
|
610
610
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
611
611
|
font-size: ${({isPrimary:e})=>e?"16px":"14px"};
|
|
@@ -679,7 +679,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
679
679
|
display: flex;
|
|
680
680
|
margin-bottom: 15px;
|
|
681
681
|
position: relative;
|
|
682
|
-
`,Ne=({wrap:e,block:o,style:n,variant:a,variantSeparator:c,appLogo:s,separator:d,items:p,onClick:m,isPrimary:g,collapse:b,folderIcon:f,...h})=>{const y=u()||R,x=r(null),[v,A]=l(void 0),C=()=>{A(x?.current?.scrollWidth<x?.current?.offsetWidth)};i((()=>{C()
|
|
682
|
+
`,Ne=({wrap:e,block:o,style:n,variant:a,variantSeparator:c,appLogo:s,separator:d,items:p,onClick:m,isPrimary:g,collapse:b,folderIcon:f,...h})=>{const y=u()||R,x=r(null),[v,A]=l(void 0),C=()=>{A(x?.current?.scrollWidth<x?.current?.offsetWidth)};i((()=>{C()}),[p]),i((()=>{if(!e)return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)}),[]),p.length;const S=p.map(((e,o)=>t.createElement(Ue,{key:o},0!==o||s?t.createElement("div",{className:"breadcrumb-icon-separator"},d):null,t.createElement(De,{id:e.id,theme:y,onClick:()=>{e.href&&m(e.href)},variant:a,href:e.href,"data-title":e.label},e.label)))),w=p.slice(1,p.length-3).map(((e,o)=>t.createElement(Qe,{key:o},f?t.createElement("div",{style:{marginRight:"10px",marginTop:"2.3px"}},t.createElement(N,{icon:"folder-icon",size:17,transform:"translate(0px,-0.5px)"})):null,t.createElement(De,{id:e.id,theme:y,onClick:()=>{e.href&&m(e.href)},variant:a,href:e.href,"data-title":e.label},e.label)))),E=p?1==b?p.length<=4?S:t.createElement(t.Fragment,null,t.createElement(Ue,{key:0},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement(De,{id:p[0].id,theme:y,onClick:()=>{p[0].href&&m(p[0].href)},variant:a,href:p[0].href,"data-title":p[0].label},p[0].label)),t.createElement(Ue,null,t.createElement("div",{className:"breadcrumb-icon-separator",style:{marginTop:"-3px"}},d),t.createElement(Ge,{contentTrigger:t.createElement(N,{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,w),footerTooltip:"",popperOptionsP:{placement:"bottom"},customContentStyle:{width:"182px",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"}})),t.createElement(Ue,{key:p.length-3},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement(De,{id:p[p.length-3].id,theme:y,onClick:()=>{p[p.length-3].href&&m(p[p.length-3].href)},variant:a,href:p[p.length-3].href,"data-title":p[p.length-3].label},p[p.length-3].label)),t.createElement(Ue,{key:p.length-2},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement(De,{id:p[p.length-2].id,theme:y,onClick:()=>{p[p.length-2].href&&m(p[p.length-2].href)},variant:a,href:p[p.length-2].href,"data-title":p[p.length-2].label},p[p.length-2].label)),t.createElement(Ue,{key:p.length-1},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement(De,{id:p[p.length-1].id,theme:y,onClick:()=>{p[p.length-1].href&&m(p[p.length-1].href)},variant:a,href:p[p.length-1].href,"data-title":p[p.length-1].label},p[p.length-1].label))):S:null;return t.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"start"}},t.createElement("div",{style:{display:"flex",position:"absolute"}},t.createElement(Je,z({theme:y,isWrap:e,ref:e?null:x,isBreadcrumbVisible:v,block:o,variant:a,variantSeparator:c,style:n,isPrimary:g},h),s&&t.createElement("div",{className:"breadcrumb-icon"},s),E)))};Ne.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},Ne.defaultProps={variant:"neutral-2",variantSeparator:"neutral-3",block:!1,onClick:void 0,wrap:!1,isPrimary:!0,collapse:!0,folderIcon:!0};const Ke=m.label`
|
|
683
683
|
//Set the styles from the default styles object
|
|
684
684
|
${({theme:e,type:t})=>P(e,t)}
|
|
685
685
|
|
|
@@ -972,7 +972,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
972
972
|
padding-left: 12px;
|
|
973
973
|
padding-bottom: 12px;
|
|
974
974
|
cursor: pointer;
|
|
975
|
-
`,bt=({startDate:e,setStartDate:o,disabled:n,theme:a,...
|
|
975
|
+
`,bt=({startDate:e,setStartDate:o,disabled:n,theme:a,startYear:c,endYearRange:s,format:d,placeholderText:p,...m})=>{const g=u()||R,b=["January","February","March","April","May","June","July","August","September","October","November","December"];for(var f=[],h=s||10,y=c||(new Date).getFullYear();y<=(new Date).getFullYear()+h;y++)f.push(y);const v=r(null),A=r(null),[C,S]=l(!1),[w,E]=l(!1),[k,V]=l(!1),[M,W]=l(!1),[B,I]=l(e.getFullYear()),[L,P]=l(b[e.getMonth()]);i((()=>{P(b[e.getMonth()]),I(e.getFullYear())}),[e]),i((()=>(document.addEventListener("click",T,!0),()=>{document.removeEventListener("click",T,!0)})),[]);const T=e=>{v.current&&!v.current.contains(e.target)&&S(!1)},H=e=>{A.current&&!A.current.contains(e.target)&&E(!1)};return i((()=>(document.addEventListener("click",H,!0),()=>{document.removeEventListener("click",H,!0)})),[]),t.createElement(at,z({disabled:n,theme:a},m),t.createElement(x,{selected:e,dateFormat:d||"dd/MM/yyyy",useWeekdaysShort:!0,onChange:e=>o(e),placeholderText:p,adjustDateOnChange:!0,disabled:n,dropdownMode:"select",renderCustomHeader:({date:e,changeYear:o,changeMonth:r})=>t.createElement(ct,null,t.createElement("div",{style:{display:"flex"}},t.createElement(dt,{ref:v},t.createElement(pt,{onClick:()=>{S(!C),E(!1)}},t.createElement("span",{onMouseEnter:()=>V(!0),onMouseLeave:()=>V(!1),style:{color:`${k?g.variant["primary-1"]:g.textColor}`}},b[e.getMonth()]),t.createElement(st,null,t.createElement(N,{icon:"triangle-down",color:k?g.variant["primary-1"]:g.textColor,size:7}))),C&&t.createElement(mt,null,t.createElement(ut,{theme:a,onMouseEnter:()=>V(!0)},b.map(((e,o)=>t.createElement(gt,{selectedMonth:L,onClick:()=>{V(!1),r(o),S(!1),P(b[o])},key:Math.random()},t.createElement("span",{style:{color:`${L===e?g.variant["primary-1"]:g.textColor}`}},e))))))),t.createElement(dt,{ref:A},t.createElement(pt,{style:{marginLeft:"28px"},onClick:()=>{E(!w),S(!1)}},t.createElement("span",{onMouseEnter:()=>W(!0),onMouseLeave:()=>W(!1),style:{color:`${M?g.variant["primary-1"]:g.textColor}`}},e.getFullYear()),t.createElement(st,null,t.createElement(N,{icon:"triangle-down",color:M?g.variant["primary-1"]:g.textColor,size:7}))),w&&t.createElement(mt,null,t.createElement(ut,{onMouseEnter:()=>W(!0)},f.map(((e,r)=>t.createElement(gt,{onClick:()=>{W(!1),o(e),I(e),E(!1)},key:Math.random()},t.createElement("span",{style:{color:`${B===e?g.variant["primary-1"]:g.textColor}`}},e)))))))))}))};bt.propTypes={startDate:e.any,setStartDate:e.func,disabled:e.bool,theme:e.object,startYear:e.number,endYearRange:e.number,format:e.string,placeholderText:e.string},bt.defaultProps={theme:R,startDate:"",setStartDate:()=>{},disabled:!1};const ft=m.div`
|
|
976
976
|
.master-dropdown,
|
|
977
977
|
.new-select {
|
|
978
978
|
.master-dropdown__menu,
|
|
@@ -1111,7 +1111,8 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1111
1111
|
}
|
|
1112
1112
|
.new-select__control:hover,
|
|
1113
1113
|
.new-select__control--is-focused {
|
|
1114
|
-
border: 1px solid ${({theme:e})=>e.primary["primary-1"]};
|
|
1114
|
+
// border: 1px solid ${({theme:e,backgroundColor:t})=>e.primary["primary-1"]};
|
|
1115
|
+
border: ${({theme:e,backgroundColor:t})=>t?"1px solid "+t:"1px solid "+e.primary["primary-1"]};
|
|
1115
1116
|
}
|
|
1116
1117
|
|
|
1117
1118
|
// .css-ry76bm-singleValue {
|
|
@@ -1130,11 +1131,11 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1130
1131
|
margin-left: 6px;
|
|
1131
1132
|
margin-top: -14px;
|
|
1132
1133
|
cursor: pointer;
|
|
1133
|
-
`,xt=({getValue:e,children:o,...r})=>{const l=e().length;return t.createElement(A.ValueContainer,r,o,l>1&&t.createElement("span",{className:"text-more-alt"},"& ",l-1," more"))},vt=({label:e,labelStyle:o,optionArr:r,selectedValue:l,setSelectedValue:i,placeHolder:n,isClearable:a,isValid:c,height:s,fontSize:d,loadOptions:p,onInputChange:m,clearSelected:g,customWrapperStyles:b,customLabelStyles:f,isRequired:h,dropdownType:y,isDisabled:x,isLoading:v,id:C,iconName:
|
|
1134
|
+
`,xt=({getValue:e,children:o,...r})=>{const l=e().length;return t.createElement(A.ValueContainer,r,o,l>1&&t.createElement("span",{className:"text-more-alt"},"& ",l-1," more"))},vt=({label:e,labelStyle:o,optionArr:r,selectedValue:l,setSelectedValue:i,placeHolder:n,isClearable:a,isValid:c,height:s,fontSize:d,loadOptions:p,onInputChange:m,clearSelected:g,customWrapperStyles:b,customLabelStyles:f,isRequired:h,dropdownType:y,isDisabled:x,isLoading:v,id:C,iconName:S,iconColor:w,iconSize:E,showIndicator:k,leftIcon:V,leftIconColor:M,leftIconSize:W,backgroundColor:B,placeHolderColor:I,inputColor:P,...T})=>{const H=u()||R,j=e=>{const o={width:"15px",height:"15px",borderRadius:"2px",padding:"4px",fontSize:"8px",lineHeight:"10px",minWidth:"15px",minHeight:"15px"},r=t.createElement("div",{style:{...o,backgroundColor:e?.data?.color??H.primary["primary-1"]}},t.createElement(N,{icon:"check-icon",color:"white"})),l=t.createElement("div",{style:{...o,backgroundColor:"#e0e7ff"}});return t.createElement(A.Option,e,t.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",width:"100%"}},e.isSelected?r:l,t.createElement("div",{className:"text-main-alt",style:{marginLeft:"10px"}},e.label)))},q=({index:e,...o})=>{const r=o?.data?.label||"Select";return!e&&t.createElement("span",{className:"text-main-alt-value"},r)},F={control:(e,t)=>({...e,border:c?B&&c?"1px solid "+B:"1px solid "+H.border:"1px solid "+H.ui.error,minWidth:"singleSelect"===y||"asyncSingleSelect"===y?"120px":"185px",height:`${s}px`,minHeight:`${s}px`,boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:B||H.bgColor}),placeholder:e=>({...e,fontSize:d+"px",marginLeft:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"auto",maxWidth:"89%",marginRight:"0px",color:I||"hsl(0, 0%, 50%)"}),dropdownIndicator:e=>({...e,height:`${s}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"0px"}),clearIndicator:e=>({...e,height:`${s}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"0px"}),valueContainer:e=>({...e,display:"flex",justifyContent:"space-between",fontSize:d+"px"}),indicatorsContainer:e=>({...e,padding:0,height:`${s}px`}),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:d+"px",width:"100%",minWidth:"singleSelect"===y||"asyncSingleSelect"===y?"120px":"185px"}),singleValue:e=>({...e,fontSize:d+"px",marginLeft:"0px",width:"auto",maxWidth:"89%",marginRight:0}),multiValue:e=>({...e,marginLeft:"0px",width:"auto"}),input:e=>({...e,fontSize:d+"px",color:P||"hsl(0, 0%, 20%)"}),option:(e,t)=>({...e,backgroundColor:t.isSelected||t.isFocused?H.neutral["neutral-5"]:H.bgColor,padding:"10px",cursor:"pointer",color:"#081348",width:"inherit"}),...T.styles},O={DropdownIndicator:e=>{const o=t.createElement(A.DropdownIndicator,e,t.createElement(yt,null,t.createElement(N,{icon:S,color:w,size:E})));return!0===k?o:null},ValueContainer:xt,IndicatorSeparator:()=>null,ClearIndicator:e=>t.createElement(A.ClearIndicator,e,a?t.createElement(yt,{onClick:()=>{g(),e.clearValue()}},t.createElement(N,{icon:"cross-icon",color:"black",size:8})):null)};let Z=null;switch(y){case"multiSelect":Z=t.createElement(At,z({type:"multiSelect",MultiValue:q,Option:j,value:l,CommonRenderedComponent:O,optionArr:r,placeHolder:n,isDisabled:x,stylesComp:F,setSelectedValue:i,isLoading:v,id:C,isClearable:a},T));break;case"asyncSingleSelect":Z=t.createElement(Ct,z({CommonRenderedComponent:O,loadOptions:p,onInputChange:m,styles:F,placeholder:n,onChange:i,isLoading:v,isDisabled:x,id:C,value:l,isClearable:a},T));break;case"asyncMultiSelect":Z=t.createElement(Ct,z({type:"asyncMultiSelect",CommonRenderedComponent:O,MultiValue:q,Option:j,onChange:i,placeholder:n,styles:F,isDisabled:x,isLoading:v,loadOptions:p,onInputChange:m,id:C,isClearable:a},T));break;default:Z=t.createElement(At,z({type:"singleSelect",value:{value:l?l.value:"",label:l?l.label:""},CommonRenderedComponent:O,optionArr:r,placeHolder:n,isDisabled:x,stylesComp:F,setSelectedValue:i,isLoading:v,id:C,isClearable:a},T))}return t.createElement(ft,{style:b,backgroundColor:B,isValid:c,fontSize:d,theme:H},e&&t.createElement(ht,{inBuiltCss:L,labelWrapperStyle:"selectComp-label-wrapper",style:f},t.createElement(Ye,{customStyles:o,type:"label-text",text:e,style:{marginBottom:"7px",paddingBottom:"0px"}}),h&&t.createElement("div",{style:{marginLeft:"4px",color:`${H.ui.error}`}},"*")),Z)},At=({type:e,Option:o,value:r,CommonRenderedComponent:l,MultiValue:i,optionArr:n,placeHolder:a,isDisabled:c,stylesComp:s,setSelectedValue:d,isLoading:p,id:m,isClearable:u,...g})=>{let b={...l};return"multiSelect"===e&&(b.MultiValue=i,b.Option=o),t.createElement(v,z({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:b,options:n,placeholder:a,isDisabled:c,value:r,styles:s,onChange:d,isLoading:p,id:m,isClearable:u,isMulti:"multiSelect"===e,hideSelectedOptions:!1,closeMenuOnSelect:"multiSelect"!==e,menuShouldScrollIntoView:!1},g))},Ct=({CommonRenderedComponent:e,MultiValue:o,Option:r,type:l,id:i,styles:n,...a})=>{let c={...e};return"asyncMultiSelect"===l&&(c.MultiValue=o,c.Option=r),t.createElement(C,z({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:c,isMulti:"asyncMultiSelect"===l,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiSelect"!==l,isSearchable:!0,styles:n,menuShouldScrollIntoView:!1},a))};vt.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},vt.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};const St=m.div`
|
|
1134
1135
|
//Set the styles from the default styles object
|
|
1135
1136
|
${({inBuiltCss:e,defaultStyles:t})=>P(e,t)}
|
|
1136
1137
|
|
|
1137
|
-
background-color:${({hover:e,dropValid:t,fileArr:o,backgroundColor:r,theme:l})=>t?t&&e&&r?r:t&&e&&!r?l.primary["primary-1"]:t&&!e&&o.length>0?l.bgColor:t&&!e&&0==o.length?
|
|
1138
|
+
background-color:${({hover:e,dropValid:t,fileArr:o,backgroundColor:r,theme:l})=>t?t&&e&&r?r:t&&e&&!r?l.primary["primary-1"]:t&&!e&&o.length>0?l.bgColor:t&&!e&&0==o.length?T(l.primary["primary-1"],.05):void 0:"rgba(215, 0, 0, 0.05)"}
|
|
1138
1139
|
|
|
1139
1140
|
};
|
|
1140
1141
|
border: 1px
|
|
@@ -1147,7 +1148,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1147
1148
|
|
|
1148
1149
|
// custom styles
|
|
1149
1150
|
${({customDropzoneStyles:e})=>e}
|
|
1150
|
-
`,
|
|
1151
|
+
`,wt=m.div`
|
|
1151
1152
|
//Set the styles from the default styles object
|
|
1152
1153
|
${({inBuiltCss:e,defaultStyles:t})=>P(e,t)}
|
|
1153
1154
|
|
|
@@ -1190,7 +1191,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1190
1191
|
align-items: center;
|
|
1191
1192
|
margin: 20px 0px;
|
|
1192
1193
|
font-size: 14px;
|
|
1193
|
-
`;const
|
|
1194
|
+
`;const Wt=({label:e,labelStyle:o,labelInline:r,required:i,message:a,fileArr:c,setFileArr:s,deleteFile:d,customDropzoneStyles:p,customFileStyles:m,customTextStyles:g,customFileNameStyles:b,backgroundColor:f,singleFile:h,messageSize:y,showSupportedFormats:x,file_extensions:v,maxFilesAmount:A,minFilesAmount:C,fileSizeLimit:S,fileSizeNamingConvention:w,errorMessages:E,suggesionMessage:k,MessagelabelStyle:V,dropValid:M,setDropValid:W,dropzoneContent:B,dropIcon:I,iconColor:P,id:T,...H})=>{const j=u()||R,[q,F]=l(!1),O=n(),[Z,X]=l(M),[G,J]=l("");let U;var D=v,Q=!1,K=x?"That file type is not supported.":"",Y=(k=x?"Only Supported: "+JSON.stringify(D):"","");1==h&&(C=1,A=1);var $="Please upload (min."+C+" to max."+A+")files",_=e=>{Y="";var t=0,o=c.length;if(o+1<C||o+1>A){var r="The file size is not uploaded";Y=G?.amount,Y=void 0!==Y?Y:r}for(const e of c)t+=e.size;if(""==Y)for(const[o,a]of Object.entries(e)){a.name,t+=a.size;var l=a.name.split(".");l=l[l.length-1],Q=D.includes(l.toLowerCase());var i=1024;("MB"==w||"GB"==w||"TB"==w)&&(i*=1024);var n=Math.round(t/i);if(0==Q){Y=E?.format,Y=Y?Y+K:K;break}if(n>S&&Q){Q=!1;r="The file must be under "+S+" "+w;Y=E?.size,Y=null!=Y?Y:r;break}}return 0==Q?(W(!1),X(M),J(Y)):(W(!0),X(M),J("")),Q};function ee(e){e.preventDefault(),e.stopPropagation()}function te(e,t){let o=[...c];for(let t=0;t<e.length;t++)o.push(e.item(t));return t||(o=o.filter(((e,t,o)=>t===o.findIndex((t=>t.place===e.place&&t.name===e.name))))),_(o)||o.pop(),s(o),F(!1),o}function oe(e,t){if(e instanceof File){const t=c.filter((t=>t.name!==e.name));s(t)}else!function(e,t){const o=c.filter((t=>t.name!==e.name));s(o),d(e)}(e)}return t.createElement("div",null,t.createElement("div",{style:{display:"flex",width:"inherit"}},t.createElement(Ye,z({customStyles:o,type:"label-text",labelInline:r,text:e,style:{display:"flex",marginBottom:""+(r?"":"7px"),paddingBottom:"0px"}},H)),i&&t.createElement("div",{style:{marginLeft:"4px",color:`${j.variant.error}`}},"*")),t.createElement(St,{theme:j,inBuiltCss:L,defaultStyles:"dropzone-parent",backgroundColor:f,customDropzoneStyles:p,onDragLeave:function(e){ee(e),F(!1)},onDragOver:function(e){ee(e),F(!0)},onDrop:function(e){ee(e);const{files:t}=e.dataTransfer;F(!0),H.onFilesAdded(te(t,h))},onClick:function(){O.current.click()},hover:q,dropValid:M,fileArr:c},t.createElement(Et,z({ref:O,valid:Z,dropValid:M,type:"file",id:T,multiple:1!=h,onChange:function(e){const{files:t}=e.target;F(!1),_(e.target.files)&&(U&&URL.revokeObjectURL(U),U=URL.createObjectURL(t[0]),t[0].path=U,H.onFilesAdded(te(t,h)))},onClick:e=>e.target.value=null},H)),M?t.createElement(t.Fragment,null,I?t.createElement(N,{icon:I,color:q?j.bgColor:P,size:24}):t.createElement(N,{icon:"file-upload",color:q?j.bgColor:j.primary["primary-1"],size:24})):null,t.createElement(kt,{dropValid:M,valid:Z,hover:q,backgroundColor:f,customTextStyles:g,inBuiltCss:L,defaultStyles:"dropzone-text-div"},M?t.createElement(t.Fragment,null,B?t.createElement("div",{style:{color:q?j.bgColor:null}},B):t.createElement("div",null,t.createElement("span",{style:{color:q?j.bgColor:j.primary["primary-1"]}},"Choose a file"," "),t.createElement("span",{style:{color:q?j.bgColor:j.neutral["neutral-2"]}},"or"," "),t.createElement("span",{style:{color:q?j.bgColor:j.textColor}},"drag ",h?"it":"them"," here"))):t.createElement("div",null,t.createElement("span",{style:{color:j.variant.error}},"Try again!!"," "),t.createElement("span",{style:{color:j.textColor}},G||a)))),G===K?t.createElement(Ye,z({themeColor:R,customStyles:V,type:"label-text",labelInline:r,text:k,style:{display:"flex",paddingTop:"10px",paddingBottom:""+(r?"":"16.64px")}},H)):"The file size is not uploaded"===G?t.createElement(Ye,z({themeColor:R,customStyles:V,type:"label-text",labelInline:r,text:$,style:{display:"flex",paddingTop:"10px",paddingBottom:""+(r?"":"16.64px")}},H)):"",c?.map(((e,o)=>t.createElement(wt,{inBuiltCss:L,defaultStyles:"dropzone-file-div",key:`${e}-${o}`,customFileStyles:m},t.createElement(Vt,null,t.createElement(N,{icon:"file-icon",color:j.primary["primary-1"]})),(File,t.createElement("a",{style:{color:j.variant["primary-1"],marginLeft:"5px"},href:e?.path,target:"_blank",rel:"noreferrer",download:e.name}," ",e.name)),t.createElement(Mt,null,e?.otherInfo),t.createElement(zt,{key:101*Math.random()|0,onClick:()=>oe(e)},t.createElement("div",{style:{marginRight:"7px"}},t.createElement(N,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:j.primary["primary-1"]})),t.createElement(N,{icon:"cross-icon",color:j.neutral["neutral-2"],size:13}))))))};Wt.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},Wt.defaultProps={onFilesAdded:()=>null,dropValid:!0,message:"",fileArr:[],setFileArr:()=>{},customDropzoneStyles:{},customFileStyles:{},customTextStyles:{},customFileNameStyles:{},messageSize:100,additionalText:"",maxFilesAmount:5,minFilesAmount:1,fileSizeLimit:10,fileSizeNamingConvention:"MB",showSupportedFormats:!0,file_extensions:["doc","docx","jpg","pdf","png","xlsx","xlsr","xls"],errorMessages:{},MessagelabelStyle:{},suggesionMessage:"doc, docx, jpg, pdf, png, xlsx, xlsr, xls (Max 10MB)",id:"",iconColor:"black"};const Bt=m.div`
|
|
1194
1195
|
display: contents;
|
|
1195
1196
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1196
1197
|
|
|
@@ -1255,7 +1256,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1255
1256
|
}
|
|
1256
1257
|
}
|
|
1257
1258
|
${({MainDivStyle:e})=>e};
|
|
1258
|
-
`,Pt=({image:e,setImage:o,WrapperDivStyle:n,MainDivStyle:a,IconWrapperStyle:c,iconSize:s,iconColor:d,isDisabled:p,id:m})=>{const[g,b]=l(),f=r(),h=u()||R,[y,x]=l(),[v,A]=l(!1);function C(e){e.preventDefault(),e.stopPropagation()}i((()=>{if(e&&v){const t=new FileReader;t.onloadend=()=>{b(t.result)},t.readAsDataURL(e)}else b(e)}),[e]);const
|
|
1259
|
+
`,Pt=({image:e,setImage:o,WrapperDivStyle:n,MainDivStyle:a,IconWrapperStyle:c,iconSize:s,iconColor:d,isDisabled:p,id:m})=>{const[g,b]=l(),f=r(),h=u()||R,[y,x]=l(),[v,A]=l(!1);function C(e){e.preventDefault(),e.stopPropagation()}i((()=>{if(e&&v){const t=new FileReader;t.onloadend=()=>{b(t.result)},t.readAsDataURL(e)}else b(e)}),[e]);const S=e=>{e&&"image"===e.type.substr(0,5)?(A(!0),o(e)):A(!1)};return t.createElement(Bt,{onDragLeave:function(e){C(e),x(!1)},onDragOver:function(e){C(e),x(!0)},onDrop:function(e){C(e);const{files:t}=e.dataTransfer;S(t[0])},WrapperDivStyle:n,isDisabled:p},t.createElement(Lt,{isDisabled:p,theme:h,MainDivStyle:a,style:{backgroundImage:`url(${g})`},onClick:e=>{e.preventDefault(),f.current.click()}},!g&&t.createElement("div",{className:"icon-on-not-preview"},t.createElement(Rt,{IconWrapperStyle:c,theme:h,isDisabled:p},t.createElement("img",{src:U,alt:"",height:"40px",width:"48px"}))),t.createElement("div",{className:"icon-on-preview"},t.createElement(Rt,{IconWrapperStyle:c,isDisabled:p,theme:h},t.createElement(N,{icon:"camera-icon",size:s,color:d||h.variant["primary-1"]})))),t.createElement(It,{id:m,type:"file",ref:f,accept:"image/jpg, image/jpeg, image/png",onChange:e=>{A(!0),o(e.target.files[0])},disabled:p,isDisabled:p}))};Pt.propTypes={image:e.any,setImage:e.func,WrapperDivStyle:e.object,MainDivStyle:e.object,IconWrapperStyle:e.object,iconSize:e.number},Pt.defaultProps={image:null,setImage:()=>{},WrapperDivStyle:{},MainDivStyle:{},IconWrapperStyle:{},iconSize:28,id:"",isDisabled:!1};const Tt=m.div`
|
|
1259
1260
|
border: 1px solid
|
|
1260
1261
|
${({theme:e})=>e.border};
|
|
1261
1262
|
border-radius: 4px;
|
|
@@ -1275,7 +1276,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1275
1276
|
fill: ${({theme:e})=>e.variant["primary-1"]};
|
|
1276
1277
|
}
|
|
1277
1278
|
}
|
|
1278
|
-
`;
|
|
1279
|
+
`;Tt.defaultProps={theme:R};const Ht=m.input`
|
|
1279
1280
|
width: 85%;
|
|
1280
1281
|
border: 0;
|
|
1281
1282
|
outline: 0;
|
|
@@ -1288,7 +1289,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1288
1289
|
|
|
1289
1290
|
// custom styles
|
|
1290
1291
|
${({inputStyle:e})=>e}
|
|
1291
|
-
`;
|
|
1292
|
+
`;Ht.defaultProps={theme:R},g`
|
|
1292
1293
|
&:after {
|
|
1293
1294
|
content: ' *';
|
|
1294
1295
|
color: ${({theme:e})=>e.variant.error};
|
|
@@ -1315,7 +1316,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1315
1316
|
> div {
|
|
1316
1317
|
flex: 1 0 auto;
|
|
1317
1318
|
}
|
|
1318
|
-
`;Ft.defaultProps={theme:R};const Ot=({label:e,inputValue:o,inputStyle:r,iconBefore:l,iconAfter:i,onChange:n,theme:a,id:c,labelStyle:s,...d})=>t.createElement(Ft,d,e.length>0&&t.createElement(jt,{labelStyle:s},e),t.createElement("div",null,t.createElement(
|
|
1319
|
+
`;Ft.defaultProps={theme:R};const Ot=({label:e,inputValue:o,inputStyle:r,iconBefore:l,iconAfter:i,onChange:n,theme:a,id:c,labelStyle:s,...d})=>t.createElement(Ft,d,e.length>0&&t.createElement(jt,{labelStyle:s},e),t.createElement("div",null,t.createElement(Tt,d,t.createElement("div",{className:"input-icon"},l),t.createElement(Ht,z({},d,{inputStyle:r,value:o,onChange:e=>{const{value:t}=e.currentTarget;(""===t||/^[0-9\b.-]+$/.test(t))&&n(t)},type:"number",id:c})),t.createElement("div",{className:"input-icon",style:{position:"absolute",right:"7px"}},i))));Ot.propTypes={theme:e.object,label:e.string,labelInline:e.bool,inputValue:e.any,inputStyle:e.object,id:e.string,labelStyle:e.object},Ot.defaultProps={theme:R,label:"",labelInline:!1,inputStyle:{},inputValue:null,id:"",labelStyle:{}};const Zt=m.div`
|
|
1319
1320
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1320
1321
|
|
|
1321
1322
|
//Set the styles from the default styles object
|
|
@@ -1343,7 +1344,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1343
1344
|
${({textBoxStyle:e})=>e}
|
|
1344
1345
|
`;Zt.defaultProps={theme:R};const Xt=m.input`
|
|
1345
1346
|
width: 85%;
|
|
1346
|
-
|
|
1347
|
+
|
|
1347
1348
|
|
|
1348
1349
|
//Set the styles from the default styles object
|
|
1349
1350
|
${({inBuiltCss:e,defaultInputStyle:t})=>P(e,t)}
|
|
@@ -1365,7 +1366,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1365
1366
|
margin-top: 5px;
|
|
1366
1367
|
font-size: 10px;
|
|
1367
1368
|
}
|
|
1368
|
-
`;Jt.defaultProps={theme:R};const Ut=({passwordRules:e,textBoxStyle:o,labelStyle:r,inputStyle:i,errMsg:n,required:a,label:c,labelInline:s,isValid:d,rulesStyle:p,id:m,showHideIcon:g,errMsgColor:b,...f})=>{const[h,y]=l(
|
|
1369
|
+
`;Jt.defaultProps={theme:R};const Ut=({passwordRules:e,textBoxStyle:o,labelStyle:r,inputStyle:i,errMsg:n,required:a,label:c,labelInline:s,isValid:d,rulesStyle:p,id:m,showHideIcon:g,errMsgColor:b,...f})=>{l(!1);const[h,y]=l("password"),x=u()||R;return t.createElement(Jt,z({labelInline:s,inBuiltCss:L,errMsgColor:b,theme:x},f),t.createElement("div",{style:{display:"flex"}},t.createElement(Ye,z({customStyles:r,type:"label-text",text:c,errMsg:n,style:{display:"flex",marginBottom:""+(s?"0px":"7px"),paddingBottom:"0px"}},f)),a&&t.createElement("div",{style:{marginLeft:"4px",marginRight:"5px",color:`${x.variant.error}`}},"*")),t.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"start"}},t.createElement("div",{style:{width:"100%"}},t.createElement(Zt,z({required:a,theme:x,textBoxStyle:o,isValid:d,defaultWrapperStyle:"textbox-wrapper",inBuiltCss:L},f),t.createElement(Xt,z({inputStyle:i,type:h,autocomplete:"off",id:m,theme:x,defaultInputStyle:"input-wrapper",inBuiltCss:L},f)),!0===g?t.createElement("div",{className:"input-icon",onClick:()=>{"password"===h?y("text"):"text"===h&&y("password")},style:{position:"absolute",right:"7px"}},"text"===h?t.createElement(N,{icon:"eye-show"}):t.createElement(N,{icon:"eye-hide"})):""),n.length>0&&t.createElement("div",{className:"err-text"},n)),e?t.createElement("div",{style:{...p,marginLeft:"5px"}},e):""))};Ut.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},Ut.defaultProps={inBuiltCss:L,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",textBoxStyle:{},labelStyle:{},inputStyle:{},passwordRules:"",rulesStyle:{},id:"",showHideIcon:!0};const Dt=m.div`
|
|
1369
1370
|
box-sizing: initial;
|
|
1370
1371
|
|
|
1371
1372
|
//Set the styles from the default styles object
|
|
@@ -1522,7 +1523,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1522
1523
|
display: flex;
|
|
1523
1524
|
justify-content: center;
|
|
1524
1525
|
cursor: pointer;
|
|
1525
|
-
`,mo=({onChange:e,activeColor:o,defaultColor:n,placeholderColor:a,placeholderText:c,customInputStyle:s,pointsArray:d,setPointsArray:p,value:m,setValue:g,valueForSignatureDrawing:b,setValueForSignatureDrawing:f,imageURL:h,setImageURL:y,id:x,...v})=>{const A=u()||R,[C,
|
|
1526
|
+
`,mo=({onChange:e,activeColor:o,defaultColor:n,placeholderColor:a,placeholderText:c,customInputStyle:s,pointsArray:d,setPointsArray:p,value:m,setValue:g,valueForSignatureDrawing:b,setValueForSignatureDrawing:f,imageURL:h,setImageURL:y,id:x,...v})=>{const A=u()||R,[C,w]=l("default"),[E,k]=l(!1),[z,V]=l(!1),M=r(null);i((()=>{z&&(B(),f(M.current))}),[!0===z]);const W=()=>{g(""),f(M.current),M.current&&M.current.clear(),k(!1),V(!1)},B=()=>(p(M.current.toData()),y(M.current.toDataURL("image/png")),[h,d]);return t.createElement(io,{inBuiltCss:L,defaultParentDivStyle:"signature-parent-div",isMyInputFocused:E,selected:C,activeColor:o,defaultColor:n,theme:A},t.createElement(no,{inBuiltCss:L,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:o,defaultColor:n,selected:C,isMyInputFocused:E,signIcon:!0,theme:A},t.createElement(ao,{activeColor:o,defaultColor:n,isMyInputFocused:E,theme:A,penIcon:!0,onClick:()=>{w("default"),W()}},t.createElement(N,{icon:"pen-icon",color:"default"===C?o||A.primary["primary-1"]:A.black})),t.createElement(ao,{activeColor:o,defaultColor:n,theme:A,isMyInputFocused:E,penIcon:!1,onClick:()=>{w("sign"),W()}},t.createElement(N,{icon:"sign-icon",color:"default"!==C?o||A.primary["primary-1"]:A.black}))),t.createElement(no,{inBuiltCss:L,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:o,defaultColor:n,theme:A,selected:C,isMyInputFocused:E,signIcon:!1,onTouchStart:()=>{}},"default"===C?t.createElement(co,{inBuiltCss:L,defaultInputStyle:"signature-input-text",placeholder:c,placeholderColor:a,customInputStyle:s,onBlur:()=>k(!1),onFocus:()=>k(!0),id:x,value:m,defaultColor:n,theme:A,onChange:e=>g(e.target.value)}):t.createElement(so,{onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),onClick:()=>{V(!0),B()}},t.createElement(S,{ref:M,id:x,redrawOnResize:!0,height:75,options:{minWidth:1,maxWidth:1,penColor:"#444444"}})),(m||z)&&t.createElement(po,{selected:C,onClick:()=>W()},t.createElement(N,{icon:"cross-icon",color:n||A.neutral["neutral-3"]}))))};mo.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},mo.defaultProps={customInputStyle:{},placeholderText:"Type your signature here",pointsArray:null,setPointsArray:()=>{},value:"",setValue:()=>{},imageURL:"",setImageURL:()=>{},setValueForSignatureDrawing:()=>{},id:""};const uo=m.div`
|
|
1526
1527
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1527
1528
|
//Set the styles from the default styles object
|
|
1528
1529
|
${({inBuiltCss:e,defaultWrapperStyle:t})=>P(e,t)}
|
|
@@ -1603,7 +1604,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1603
1604
|
`,Co=g`
|
|
1604
1605
|
display: flex;
|
|
1605
1606
|
align-items: center;
|
|
1606
|
-
`,
|
|
1607
|
+
`,So=m.div`
|
|
1607
1608
|
${({labelInline:e})=>e?Co:null}
|
|
1608
1609
|
.err-text {
|
|
1609
1610
|
color: ${({theme:e})=>e.variant.error};
|
|
@@ -1614,7 +1615,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1614
1615
|
> div {
|
|
1615
1616
|
flex: 1 0 auto;
|
|
1616
1617
|
}
|
|
1617
|
-
`,
|
|
1618
|
+
`,wo=m.button`
|
|
1618
1619
|
border: none;
|
|
1619
1620
|
outline: none;
|
|
1620
1621
|
border-radius: 4px;
|
|
@@ -1623,7 +1624,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1623
1624
|
padding: 5px 6px;
|
|
1624
1625
|
font-size: 18px;
|
|
1625
1626
|
cursor: pointer;
|
|
1626
|
-
`,Eo=({label:e,errMsg:o,hour:r,minute:l,period:i,onChange:n,id:a,...c})=>{const s=u()||R;return t.createElement(
|
|
1627
|
+
`,Eo=({label:e,errMsg:o,hour:r,minute:l,period:i,onChange:n,id:a,...c})=>{const s=u()||R;return t.createElement(So,z({theme:s},c),t.createElement(Ao,z({theme:s},c,{errMsg:o}),e),t.createElement("div",null,t.createElement(yo,z({theme:s,id:a},c),t.createElement(xo,{theme:s,value:r,onChange:function(e){const t=e.currentTarget.value>12?12:parseFloat(e.currentTarget.value)||0;n({hour:t,minute:l,period:i})}}),":",t.createElement(xo,{theme:s,value:l,onChange:function(e){const t=e.currentTarget.value>59?59:parseFloat(e.currentTarget.value)||0;n({hour:r,minute:t,period:i})}}),t.createElement(wo,{theme:s,onClick:function(e){n({hour:r,minute:l,period:"AM"===i?"PM":"AM"})}},i)),t.createElement("div",{className:"err-text"},o)))};Eo.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},Eo.defaultProps={label:"",hour:0,minute:0,period:"AM",required:!1,labelInline:!1,isValid:!0,errMsg:"",id:""};const ko=m.div`
|
|
1627
1628
|
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>P(e,t)}
|
|
1628
1629
|
`,zo=m.label`
|
|
1629
1630
|
|
|
@@ -1671,7 +1672,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1671
1672
|
|
|
1672
1673
|
// custom styles
|
|
1673
1674
|
${({optionStyle:e})=>e}
|
|
1674
|
-
`,
|
|
1675
|
+
`,Wo=({checked:e,customSwitchStyle:o,customToggleBoxStyle:r,backgroundColor:l,disabledColor:i,switchColor:n,onClick:a,trueLabel:c,falseLabel:s,optionStyle:d,labelPosition:p,id:m,isDisabled:g,...b})=>{const f=u()||R;return t.createElement(ko,z({inBuiltCss:L,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},b),"left"===p&&t.createElement(Mo,z({optionStyle:d,inBuiltCss:L,labelPosition:p,defaultOptionTextStyle:"toggle-switch-option-text"},b),e?c:s),t.createElement(Vo,z({},b,{labelPosition:p,id:m,inBuiltCss:L,defaultCheckBoxStyle:"toggle-switch-checkbox",onClick:()=>{a(!e)},isChecked:e,disabled:g,isDisabled:g})),t.createElement(zo,z({},b,{labelPosition:p,htmlFor:m,customToggleBoxStyle:r,customSwitchStyle:o,disabledColor:i,backgroundColor:l,switchColor:n,inBuiltCss:L,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:f,isDisabled:g})),"right"===p&&t.createElement(Mo,z({optionStyle:d,inBuiltCss:L,labelPosition:p,defaultOptionTextStyle:"toggle-switch-option-text"},b),e?c:s))};Wo.propTypes={customToggleBoxStyle:e.object,customSwitchStyle:e.object,backgroundColor:e.string,checked:e.bool,trueLabel:e.string,falseLabel:e.string,id:e.string,labelPosition:e.string,isDisabled:e.bool},Wo.defaultProps={checked:!1,trueLabel:"Yes",falseLabel:"No",customSwitchStyle:{},customToggleBoxStyle:{},id:"",labelPosition:"right",isDisabled:!1};const Bo=m.div`
|
|
1675
1676
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1676
1677
|
padding: 24px 8px;
|
|
1677
1678
|
${({commentBodyStyle:e})=>e};
|
|
@@ -1698,7 +1699,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1698
1699
|
font-size: 16px;
|
|
1699
1700
|
color: ${R.variant["graph-6"]};
|
|
1700
1701
|
${({commentDivStyle:e})=>e};
|
|
1701
|
-
`,
|
|
1702
|
+
`,To=m.div`
|
|
1702
1703
|
display: flex;
|
|
1703
1704
|
justify-content: flex-start;
|
|
1704
1705
|
align-items: start;
|
|
@@ -1707,13 +1708,13 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1707
1708
|
padding: 16px 24px;
|
|
1708
1709
|
border-radius: 0px 0px 4px 4px;
|
|
1709
1710
|
${({inputWrapperStyle:e})=>e};
|
|
1710
|
-
`,
|
|
1711
|
+
`,Ho=m.div`
|
|
1711
1712
|
display: inline-flex;
|
|
1712
1713
|
margin-top: 16px;
|
|
1713
1714
|
`,jo=m.div`
|
|
1714
1715
|
width: 100%;
|
|
1715
1716
|
margin-left: 16px;
|
|
1716
|
-
`,qo=({inputValue:e,setInputValue:o,commentArray:r,commentBodyStyle:i,commentWrapperStyle:n,commentHeadStyle:a,dateTimeStyle:c,commentDivStyle:s,inputWrapperStyle:d,onSave:p,myInfo:m,placeholder:g,...b})=>{const f=u()||R,[h,y]=l(!1);return t.createElement(
|
|
1717
|
+
`,qo=({inputValue:e,setInputValue:o,commentArray:r,commentBodyStyle:i,commentWrapperStyle:n,commentHeadStyle:a,dateTimeStyle:c,commentDivStyle:s,inputWrapperStyle:d,onSave:p,myInfo:m,placeholder:g,...b})=>{const f=u()||R,[h,y]=l(!1);return t.createElement(Bo,{commentBodyStyle:i,theme:f},r.map(((e,o)=>{const{name:r,date:l,comment:i,image:d}=e;return t.createElement(Io,{key:o,commentWrapperStyle:n},t.createElement(Ro,{commentHeadStyle:a},t.createElement(se,z({user:{fullName:r,userName:r,url:d},toggleName:!0,size:"LG"},b)),t.createElement(Lo,{dateTimeStyle:c,theme:f},l)),t.createElement(Po,{commentDivStyle:s},i))})),t.createElement(To,{theme:f,inputWrapperStyle:d},t.createElement(se,{user:{fullName:m?.fullName,userName:m?.userName,url:m?.url},toggleName:!1,customStylesImage:{height:"36px",width:"36px"},customStylesContainer:{marginTop:"7px"}}),t.createElement(jo,null,t.createElement(ro,{value:e,onChange:e=>o(e.target.value),placeholder:g,isValid:!0,inputStyle:{height:"23px"},onFocus:e=>y(!0)}),h&&t.createElement(Ho,null,t.createElement(Be,z({size:"sm",onClick:p},b),"Save"),t.createElement(ze,{size:"sm",btnStyle:{color:f.variant["neutral-1"]},onClick:e=>y(!1)},"Cancel")))))};qo.propTypes={commentBodyStyle:e.object,commentWrapperStyle:e.object,commentHeadStyle:e.object,dateTimeStyle:e.object,commentDivStyle:e.object,inputWrapperStyle:e.object,onSave:e.func,commentArray:e.array,inputValue:e.string,setInputValue:e.func,myInfo:e.object,placeholder:e.string},qo.defaultProps={commentBodyStyle:{},commentWrapperStyle:{},commentHeadStyle:{},dateTimeStyle:{},commentDivStyle:{},inputWrapperStyle:{},onSave:()=>{},commentArray:[],inputValue:"",setInputValue:()=>{},myInfo:{},placeholder:""};const Fo=m.div`
|
|
1717
1718
|
//Set the styles from the default styles object
|
|
1718
1719
|
${({theme:e,type:t})=>P(e,t)}
|
|
1719
1720
|
@media (max-width: 980px) {
|
|
@@ -2011,15 +2012,15 @@ ${({customInputColorStyle:e})=>e}
|
|
|
2011
2012
|
`,ar=({vertical:e,borderColor:o,thickness:r,height:l,...i})=>{const n=u()||R;return t.createElement(nr,z({theme:n,borderColor:o,thickness:r,vertical:e,height:l},i))};ar.propTypes={thickness:e.string,borderColor:e.string,vertical:e.bool,height:e.string},ar.defaultProps={thickness:"2px",vertical:!1,height:"10px"};const cr=m.div`
|
|
2012
2013
|
//Set the styles from the default styles object
|
|
2013
2014
|
${({inBuiltCss:e,type:t,drawerOpen:o,customStyles:r})=>{if(e){let l={};if(e[t]){for(const t in e.common)l[t]=e.common[t];for(const o in e[t])delete e.common[o],l[o]=e[t][o];l=o?{...l,...e["drawer-open"]}:{...l,...e["drawer-close"]}}return{...l,...r}}}}
|
|
2014
|
-
`,sr=({customStyles:e,drawerOpen:o,children:r,...l})=>t.createElement(cr,z({inBuiltCss:L,customStyles:e,type:"drawer",drawerOpen:o},l),r);sr.propTypes={customStyles:e.object,drawerOpen:e.bool};class dr extends a{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(c,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(
|
|
2015
|
+
`,sr=({customStyles:e,drawerOpen:o,children:r,...l})=>t.createElement(cr,z({inBuiltCss:L,customStyles:e,type:"drawer",drawerOpen:o},l),r);sr.propTypes={customStyles:e.object,drawerOpen:e.bool};class dr extends a{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(c,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(Be,{onClick:()=>this.refreshPage()},"Click to refresh")):this.props.children}}dr.propTypes={children:e.any};const pr=g`
|
|
2015
2016
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
2016
2017
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
2017
|
-
background: ${({theme:e})=>
|
|
2018
|
+
background: ${({theme:e})=>T(e.primary["primary-1"],.04)};
|
|
2018
2019
|
`,mr=m.button`
|
|
2019
2020
|
font-size: 14px;
|
|
2020
2021
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
2021
|
-
background: ${({theme:e})=>
|
|
2022
|
-
border: 1px solid ${({theme:e})=>
|
|
2022
|
+
background: ${({theme:e})=>T(e.variant["neutral-5"],.7)};
|
|
2023
|
+
border: 1px solid ${({theme:e})=>T(e.variant["neutral-5"],.7)};
|
|
2023
2024
|
padding: 4px 24px;
|
|
2024
2025
|
border-radius: 999px;
|
|
2025
2026
|
outline: none;
|
|
@@ -2082,7 +2083,7 @@ ${({inBuiltCss:e,type:t,drawerOpen:o,customStyles:r})=>{if(e){let l={};if(e[t]){
|
|
|
2082
2083
|
${({inBuiltCss:e,type:t})=>P(e,t)}
|
|
2083
2084
|
// custom styles
|
|
2084
2085
|
${({customStyles:e})=>e}
|
|
2085
|
-
`,Cr=({type:e,customStyles:o,...r})=>{const l=u()||R;return t.createElement(Ar,z({theme:l,type:"header",customStyles:o,inBuiltCss:L},r),r.children)};Cr.propTypes={customStyles:e.object,type:e.string},Cr.defaultProps={type:"header",customStyles:null};const
|
|
2086
|
+
`,Cr=({type:e,customStyles:o,...r})=>{const l=u()||R;return t.createElement(Ar,z({theme:l,type:"header",customStyles:o,inBuiltCss:L},r),r.children)};Cr.propTypes={customStyles:e.object,type:e.string},Cr.defaultProps={type:"header",customStyles:null};const Sr=m.div`
|
|
2086
2087
|
box-sizing: border-box;
|
|
2087
2088
|
display: flex;
|
|
2088
2089
|
justify-content: center;
|
|
@@ -2090,7 +2091,7 @@ ${({inBuiltCss:e,type:t,drawerOpen:o,customStyles:r})=>{if(e){let l={};if(e[t]){
|
|
|
2090
2091
|
width: auto;
|
|
2091
2092
|
|
|
2092
2093
|
${({size:e})=>g`height: ${e}px;`}
|
|
2093
|
-
`,
|
|
2094
|
+
`,wr=m.div`
|
|
2094
2095
|
`,Er=m.div`
|
|
2095
2096
|
box-sizing: border-box;
|
|
2096
2097
|
display: flex;
|
|
@@ -2120,11 +2121,11 @@ svg {
|
|
|
2120
2121
|
`}
|
|
2121
2122
|
}
|
|
2122
2123
|
}
|
|
2123
|
-
`,kr=({theme:e,toggleSet:o,slide:r,color:l,size:i,transform:n,ratingValue:a,starVal:c,hover:s,...d})=>t.createElement(Er,z({theme:e,ratingValue:a,starVal:c,hover:s,toggleSet:o,color:l,size:i,transform:n},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:r,y:"0",fill:l,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function zr(e,t){let o=5*e/t;const r=[],l=o;for(let e=0;e<5;e++){if(o-1>=0)r.push("0");else if(o-1<0&&o-1>-1){const e=(24*o-24).toString();r.push(e)}else r.push("-24");o-=1}return{array:r,value:l}}function Vr(e,t){return 100*e/t}const Mr=({type:e,customStylesContainer:o,customStylesStar:r,customStylesPercentage:n,color:a,size:c,handleClick:s,transform:d,maxRange:p,value:m,toggleStar:g,toggleSet:b,identifier:f,...h})=>{u();const[y,x]=l(void 0),[v,A]=l(void 0),[C,
|
|
2124
|
+
`,kr=({theme:e,toggleSet:o,slide:r,color:l,size:i,transform:n,ratingValue:a,starVal:c,hover:s,...d})=>t.createElement(Er,z({theme:e,ratingValue:a,starVal:c,hover:s,toggleSet:o,color:l,size:i,transform:n},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:r,y:"0",fill:l,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function zr(e,t){let o=5*e/t;const r=[],l=o;for(let e=0;e<5;e++){if(o-1>=0)r.push("0");else if(o-1<0&&o-1>-1){const e=(24*o-24).toString();r.push(e)}else r.push("-24");o-=1}return{array:r,value:l}}function Vr(e,t){return 100*e/t}const Mr=({type:e,customStylesContainer:o,customStylesStar:r,customStylesPercentage:n,color:a,size:c,handleClick:s,transform:d,maxRange:p,value:m,toggleStar:g,toggleSet:b,identifier:f,...h})=>{u();const[y,x]=l(void 0),[v,A]=l(void 0),[C,S]=l(void 0),[w,E]=l(void 0);i((()=>{x(zr(m,p).array),A(zr(m,p).value),S(Vr(m,p))}),[m,p]),i((()=>{w?x(zr(w,p).array):(x(zr(m,p).array),A(zr(m,p).value),S(Vr(m,p)))}),[w]);const k=t.createElement(t.Fragment,null,y?.map(((e,o)=>{const l=20*(o+1);return t.createElement(kr,{ratingValue:l,starVal:v,hover:w,toggleSet:b,onClick:b?()=>s(l):null,onMouseEnter:b?()=>{E(l)}:null,onMouseLeave:b?()=>{E(null)}:null,slide:e,color:a,className:"star",size:c,transform:d,key:f?.concat(o),customStyles:r})})));return t.createElement(Sr,z({customStyles:o,type:e,size:c},h,{className:"container"}),g?k:t.createElement(wr,{type:e,customStyles:n},C,"%"))};Mr.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},Mr.defaultProps={customStylesContainer:null,customStylesStar:null,customStylesPercentage:null,type:"star",maxRange:100,value:0,identifier:"ratingKey",toggleStar:!0,toggleSet:!1,color:"#F7B001"};const Wr=m.div`
|
|
2124
2125
|
.form-check-input {
|
|
2125
2126
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2126
2127
|
}
|
|
2127
|
-
`,
|
|
2128
|
+
`,Br=({customStyles:e,inBuiltCss:o,type:r="table",sortIcon:l,data:i,tableColumns:n,progressPending:a,defaultSortFieldId:c,handleOnSort:s,sortServer:d,progressComponent:p,responsive:m,conditionalRowStyles:g,fixedHeader:b,fixedHeaderScrollHeight:f,checkboxColor:h,...y})=>{let x={};if(o&&o[r]&&(x=o[r]),e)for(const t in e)x[t]=e[t];const v=u()||R,A=t.forwardRef((({onClick:e,...o},r)=>t.createElement(Wr,{theme:v},t.createElement("input",z({type:"checkbox",className:"form-check-input",ref:r,onClick:e},o)))));return t.createElement(w,z({responsive:m,data:i,columns:n,noHeader:!0,highlightOnHover:!0,sortIcon:l,progressPending:a,customStyles:x,defaultSortFieldId:c,progressComponent:p||void 0,sortServer:d,onSort:(e,t,o)=>{s(e,t,o)},conditionalRowStyles:g,fixedHeader:b,fixedHeaderScrollHeight:f,selectableRowsComponent:A},y))};Br.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},Br.defaultProps={inBuiltCss:L,sortIcon:t.createElement(N,{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,o)=>{},sortServer:null,progressComponent:void 0,responsive:!0,fixedHeader:!0,fixedHeaderScrollHeight:"100vh"};const Ir=({title:e,subtitle:o,wrapperStyle:r,imgLink:l,imgStyle:i,iconSize:n})=>{const a=u()||R,c={fontSize:"26px",fontWeight:"bold",color:`${a.textColor}`,lineHeight:"36px",display:"flex",gap:"14px",alignItems:"flex-start",paddingLeft:"25px"},s={fontSize:"13px",color:`${a.neutral["neutral-2"]}`,lineHeight:"24px",paddingLeft:"25px"};return t.createElement("div",{style:r},t.createElement("div",{style:c},l?t.createElement("img",{src:l,alt:"userIcon",srcset:"",style:i}):t.createElement(N,{icon:"user-icon",size:n,color:a.primary["primary-1"]})," ",t.createElement("h4",null,e)),t.createElement("div",{style:s},t.createElement("p",null,o)))};Ir.propTypes={size:e.number},Ir.defaultProps={iconSize:23};const Rr=({formData:e,customStyles:o,...r})=>{const l=e=>{switch(e.type){case"header":return(e=>t.createElement(c,null,t.createElement(Cr,z({},e,r),e.children),e))(e);case"label":return(e=>t.createElement(Ye,z({style:{marginBottom:"7px",paddingBottom:"0"}},e,r)))(e);case"text":return(e=>t.createElement(ro,z({},e,r)))(e);case"textArea":return(e=>t.createElement(ho,z({},e,r)))(e);case"number":return(e=>t.createElement(Ot,z({},e,r)))(e);case"radio":return(e=>t.createElement($t,z({key:101*Math.random()|0},e,r)))(e);case"checkBox":return(e=>t.createElement(rt,z({},e,r)))(e);case"singleSelect":return(e=>t.createElement(vt,z({dropdownType:"singleSelect"},e,r)))(e);case"multiSelect":return(e=>t.createElement(vt,z({dropdownType:"multiSelect"},e,r)))(e);case"asyncSingleSelect":return(e=>t.createElement(vt,z({dropdownType:"asyncSingleSelect"},e,r)))(e);case"asyncMultiSelect":return(e=>t.createElement(vt,z({dropdownType:"asyncMultiSelect"},e,r)))(e);case"signature":return(e=>t.createElement(mo,z({},e,r)))(e);case"fileUpload":return(e=>t.createElement(Wt,z({},e,r)))(e);case"date":return(e=>t.createElement(bt,z({},e,r)))(e);case"toggle":return(e=>t.createElement(Wo,z({},e,r)))(e);case"rating":return(e=>t.createElement(Mr,z({},e,r)))(e);case"buttonPrimary":return(e=>t.createElement(Be,z({},e,r)))(e);case"buttonSecondary":return(e=>t.createElement(Le,z({},e,r)))(e);case"buttonTiny":return(e=>t.createElement(Te,z({},e,r)))(e);case"search":return(e=>t.createElement(lo,z({},e,r)))(e);case"table":return(e=>t.createElement(Br,z({},e,r)))(e);case"passwordInput":return(e=>t.createElement(Ut,z({},e,r)))(e);case"headerComponent":return(e=>t.createElement(Ir,z({},e,r)))(e)}};return t.createElement(c,null,t.createElement(er,{defaultThemeColor:R},t.createElement(ir,{onSubmit:()=>{},customStyles:o},e.map(((e,o)=>e.length>1?t.createElement(or,null,e.map(((o,r)=>t.createElement(rr,{cols:e.length},l(o))))):l(e[0]))))))},Lr=({formData:e,onSubmit:o,onReset:r,style:l,...i})=>{const n=e=>{switch(e.type){case"submit":return(e=>t.createElement(Be,{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(Le,{block:e.block,disabled:i.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return t.createElement(c,null,t.createElement(tr,{style:l},e&&e.map(((e,t)=>e.map(((e,t)=>n(e)))))))};const Pr=f`
|
|
2128
2129
|
@font-face {
|
|
2129
2130
|
font-family: "Averta";
|
|
2130
2131
|
font-weight: 100;
|
|
@@ -2232,7 +2233,7 @@ svg {
|
|
|
2232
2233
|
* {
|
|
2233
2234
|
font-family: "Averta";
|
|
2234
2235
|
}
|
|
2235
|
-
`,
|
|
2236
|
+
`,Tr=m.span`
|
|
2236
2237
|
background: transparent;
|
|
2237
2238
|
position: relative;
|
|
2238
2239
|
display: flex;
|
|
@@ -2241,12 +2242,12 @@ svg {
|
|
|
2241
2242
|
&>span:not(:first-of-type){
|
|
2242
2243
|
margin-left: -13px;
|
|
2243
2244
|
}
|
|
2244
|
-
`,
|
|
2245
|
+
`,Hr=m.p`
|
|
2245
2246
|
color: ${({theme:e,variantQty:t})=>e.variant[t]};
|
|
2246
2247
|
margin: 0;
|
|
2247
2248
|
margin-left: 7px;
|
|
2248
2249
|
font-size: 16px;
|
|
2249
|
-
`,jr=({items:e,block:o,size:r,variantCircle:l,variantName:i,variantQty:n,flagName:a,user:c,colorCircle:s,colorBorderCircle:d,...p})=>{const m=u()||R;return t.createElement(
|
|
2250
|
+
`,jr=({items:e,block:o,size:r,variantCircle:l,variantName:i,variantQty:n,flagName:a,user:c,colorCircle:s,colorBorderCircle:d,...p})=>{const m=u()||R;return t.createElement(Tr,z({block:o},p),e?.map(((o,n)=>{let a={},c={};return a.backgroundColor=s?`${m.variant[s]}`:`${m.variant[l]}`,0!==n&&(a.border=d?`2px solid ${d}`:`2px solid ${m.variant[l]}`,c.border=d?`2px solid ${d}`:`2px solid ${m.variant[l]}`),1===e.length?t.createElement(se,{key:o.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${m.variant[{variantName:i}]}`},size:r,toggleName:!0,user:o,customStylesCircle:a,customStylesImage:c}):n<=3?t.createElement(se,{key:o.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${m.variant[{variantName:i}]}`},size:r,toggleName:!1,user:o,customStylesCircle:a,customStylesImage:c}):null})),e.length-4>0?t.createElement(Hr,{theme:m,variantQty:n},"+",e.length-4):null)};jr.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},jr.defaultProps={variantCircle:"primary-1",variantName:"primary-2",block:!1,size:"MD",flagName:!1,user:{userName:"1"},colorCircle:null,colorBorderCircle:"#FFFFFF",variantQty:"primary-1"};const qr=m.div`
|
|
2250
2251
|
max-width: inherit;
|
|
2251
2252
|
width: inherit;
|
|
2252
2253
|
font-size: 14px;
|
|
@@ -2292,7 +2293,7 @@ svg {
|
|
|
2292
2293
|
justify-content: space-evenly;
|
|
2293
2294
|
flex-grow: 1;
|
|
2294
2295
|
align-items: stretch;
|
|
2295
|
-
`,Zr=({label:e,index:o,style:r,items:l,variant:i,borderVariant:n,bgVariant:a,variantDisable:c,variantBgDisable:s,disabled:d,divider:p,indexPrefix:m,onClick:g,icon:b,variantTPtext:f,variantTPbg:h,...x})=>{u();const{getArrowProps:v,getTooltipProps:A,setTooltipRef:C,setTriggerRef:
|
|
2296
|
+
`,Zr=({label:e,index:o,style:r,items:l,variant:i,borderVariant:n,bgVariant:a,variantDisable:c,variantBgDisable:s,disabled:d,divider:p,indexPrefix:m,onClick:g,icon:b,variantTPtext:f,variantTPbg:h,...x})=>{u();const{getArrowProps:v,getTooltipProps:A,setTooltipRef:C,setTriggerRef:S,visible:w}=y();return t.createElement(t.Fragment,null,t.createElement(Or,{ref:S},t.createElement(Fr,{variant:i,borderVariant:n,bgVariant:a,variantDisable:c,variantBgDisable:s,disabled:d,onClick:d?null:()=>{g(g)}},b),p),w&&t.createElement(qr,z({variantTPtext:f,variantTPbg:h,ref:C},A({className:"tooltip-container"})),e,t.createElement("div",v({className:"tooltip-arrow"}))))};Zr.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},Or.defaultProps={theme:R},Fr.defaultProps={theme:R},qr.defaultProps={theme:R},Zr.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor",variantTPtext:null,variantTPbg:null};const Xr=m.div`
|
|
2296
2297
|
display: flex;
|
|
2297
2298
|
justify-content: space-evenly;
|
|
2298
2299
|
align-items: stretch;
|
|
@@ -2476,11 +2477,11 @@ ${({theme:e,type:t,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t in e.c
|
|
|
2476
2477
|
margin: 0 10px;
|
|
2477
2478
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2478
2479
|
}
|
|
2479
|
-
`,vl=({selectedPage:e,setSelectedPage:o,totalPage:r,customItemStyles:n,customLeftWrapperStyles:a,customIconWrapperStyles:c,previousText:s,nextText:d,pageToShow:p,totalResults:m,showResultPerPage:g,customParentStyles:b,customRightWrapperStyles:f,...h})=>{const y=u()||R,[x,v]=l([]);let A=p>r?r:p;i((()=>{v(Array.from({length:A},((e,t)=>t+1)))}),[r,p,A]);const C=t=>{let l=[];"increase"===t&&x[A-1]<=r&&e!==x[A-1]?o(e+1):"increase"===t&&x[A-1]<r?(l=Array.from({length:A},((e,t)=>t+x[0]+1)),o(e+1),v(l)):"decrease"===t&&x[0]<=e-1?o(e-1):"decrease"===t&&e>1&&(o(e-1),v(Array.from({length:A},((e,t)=>t+x[0]-1))))};return t.createElement(gl,{customParentStyles:b}," ",t.createElement(yl,z({theme:y,customLeftWrapperStyles:a},h),t.createElement(fl,z({onClick:()=>C("decrease"),disabled:1===e,theme:y,customIconWrapperStyles:c},h),t.createElement(N,{icon:"triangle-down",transform:"rotate(90deg)",color:y.variant["neutral-3"]}),t.createElement("span",{className:"prev-text"}," ",s)),t.createElement(hl,h,x.map(((r,l)=>t.createElement(bl,{key:l,theme:y,selected:e===r,onClick:()=>o(r),customItemStyles:n},r)))),t.createElement(fl,{onClick:()=>C("increase"),disabled:e===r,theme:y,customIconWrapperStyles:c},t.createElement("span",{className:"next-text"}," ",d),t.createElement(N,{icon:"triangle-down",transform:"rotate(-90deg)",color:y.variant["neutral-3"]}))),g&&t.createElement(xl,{theme:y,customRightWrapperStyles:f},t.createElement(vt,{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",
|
|
2480
|
+
`,vl=({selectedPage:e,setSelectedPage:o,totalPage:r,customItemStyles:n,customLeftWrapperStyles:a,customIconWrapperStyles:c,previousText:s,nextText:d,pageToShow:p,totalResults:m,showResultPerPage:g,customParentStyles:b,customRightWrapperStyles:f,...h})=>{const y=u()||R,[x,v]=l([]);let A=p>r?r:p;i((()=>{v(Array.from({length:A},((e,t)=>t+1)))}),[r,p,A]);const C=t=>{let l=[];"increase"===t&&x[A-1]<=r&&e!==x[A-1]?o(e+1):"increase"===t&&x[A-1]<r?(l=Array.from({length:A},((e,t)=>t+x[0]+1)),o(e+1),v(l)):"decrease"===t&&x[0]<=e-1?o(e-1):"decrease"===t&&e>1&&(o(e-1),v(Array.from({length:A},((e,t)=>t+x[0]-1))))};return t.createElement(gl,{customParentStyles:b}," ",t.createElement(yl,z({theme:y,customLeftWrapperStyles:a},h),t.createElement(fl,z({onClick:()=>C("decrease"),disabled:1===e,theme:y,customIconWrapperStyles:c},h),t.createElement(N,{icon:"triangle-down",transform:"rotate(90deg)",color:y.variant["neutral-3"]}),t.createElement("span",{className:"prev-text"}," ",s)),t.createElement(hl,h,x.map(((r,l)=>t.createElement(bl,{key:l,theme:y,selected:e===r,onClick:()=>o(r),customItemStyles:n},r)))),t.createElement(fl,{onClick:()=>C("increase"),disabled:e===r,theme:y,customIconWrapperStyles:c},t.createElement("span",{className:"next-text"}," ",d),t.createElement(N,{icon:"triangle-down",transform:"rotate(-90deg)",color:y.variant["neutral-3"]}))),g&&t.createElement(xl,{theme:y,customRightWrapperStyles:f},t.createElement(vt,{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"))))};vl.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},vl.defaultProps={selectedPage:1,customItemStyles:{},customLeftWrapperStyles:{},customIconWrapperStyles:{},previousText:"PREVIOUS",nextText:"NEXT",pageToShow:5,totalResults:0,showResultPerPage:!1,customParentStyles:{},customRightWrapperStyles:{}};const Al=m.div`
|
|
2480
2481
|
display: flex;
|
|
2481
2482
|
align-items: center;
|
|
2482
2483
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2483
|
-
`,Cl=({...e})=>{const o=u()||R;return t.createElement(Al,{theme:o},e.children)},
|
|
2484
|
+
`,Cl=({...e})=>{const o=u()||R;return t.createElement(Al,{theme:o},e.children)},Sl=m.div`
|
|
2484
2485
|
font-size: 14px;
|
|
2485
2486
|
color: ${({selected:e,theme:t})=>e?t.variant["primary-1"]:null};
|
|
2486
2487
|
|
|
@@ -2496,7 +2497,7 @@ ${({theme:e,type:t,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t in e.c
|
|
|
2496
2497
|
&:not(:first-child):not(:last-child) {
|
|
2497
2498
|
margin: 0 22px;
|
|
2498
2499
|
}
|
|
2499
|
-
`;(Cl.PageItem=function({selected:e,...o}){const r=u()||R;return t.createElement(
|
|
2500
|
+
`;(Cl.PageItem=function({selected:e,...o}){const r=u()||R;return t.createElement(Sl,z({selected:e,theme:r},o),o.children)}).propTypes={selected:e.bool},Cl.PageItem.defaultProps={selected:!1};const wl=m.div`
|
|
2500
2501
|
position: relative;
|
|
2501
2502
|
height: 10px;
|
|
2502
2503
|
border-radius: 10px;
|
|
@@ -2505,7 +2506,7 @@ position: relative;
|
|
|
2505
2506
|
margin-right: 13px;
|
|
2506
2507
|
width: inherit;
|
|
2507
2508
|
color: ${({theme:e})=>e.bgColor};
|
|
2508
|
-
background-color: ${({color:e,theme:t})=>
|
|
2509
|
+
background-color: ${({color:e,theme:t})=>T(e||t.primary["primary-1"],.5)};
|
|
2509
2510
|
|
|
2510
2511
|
// custom styles
|
|
2511
2512
|
${({progressWrapStyle:e})=>e}
|
|
@@ -2521,7 +2522,7 @@ position: relative;
|
|
|
2521
2522
|
${({progressBarStyle:e})=>e}
|
|
2522
2523
|
width: ${({now:e})=>e+"%"};
|
|
2523
2524
|
background-color: ${({color:e,theme:t})=>e||t.primary["primary-1"]};
|
|
2524
|
-
`,kl=({labelStyle:e,progressBarStyle:o,progressWrapStyle:r,label:l,now:i,color:n,innerContent:a,...c})=>{const s=u()||R;return t.createElement("div",null,t.createElement(Ye,z({inBuiltCss:L,customStyles:e,type:"progressbarLabel",text:l},c)),t.createElement(
|
|
2525
|
+
`,kl=({labelStyle:e,progressBarStyle:o,progressWrapStyle:r,label:l,now:i,color:n,innerContent:a,...c})=>{const s=u()||R;return t.createElement("div",null,t.createElement(Ye,z({inBuiltCss:L,customStyles:e,type:"progressbarLabel",text:l},c)),t.createElement(wl,z({progressBarStyle:o,theme:s,progressWrapStyle:r,color:n},c),t.createElement(El,z({progressBarStyle:o,now:i,theme:s,color:n},c)),t.createElement("div",{style:{position:"absolute",zIndex:"3",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},a)))};kl.propTypes={labelStyle:e.object,progressBarStyle:e.object,progressWrapStyle:e.object,color:e.string,label:e.string,now:e.number,innerContent:e.any},kl.defaultProps={labelStyle:{},progressBarStyle:{},innerContent:"",label:"",now:0};const zl=m.div`
|
|
2525
2526
|
background: transparent;
|
|
2526
2527
|
display: flex;
|
|
2527
2528
|
align-items: center;
|
|
@@ -2547,13 +2548,13 @@ position: relative;
|
|
|
2547
2548
|
`,Ml=m.div`
|
|
2548
2549
|
display: flex;
|
|
2549
2550
|
margin-left: 20px;
|
|
2550
|
-
`,
|
|
2551
|
+
`,Wl=m.div`
|
|
2551
2552
|
height: 6px;
|
|
2552
2553
|
width: ${({widthStep:e})=>e}px;
|
|
2553
2554
|
margin: 0 3px;
|
|
2554
2555
|
background-color: ${({theme:e,isActive:t,variantOn:o,variantOff:r})=>t?e.variant[o]:e.variant[r]};
|
|
2555
2556
|
border-radius: 19px;
|
|
2556
|
-
`,
|
|
2557
|
+
`,Bl=({block:e,variantOn:o,variantOff:r,currentStep:l,totalSteps:i,widthStep:n,style:a,progressText:c,...s})=>(u(),t.createElement(zl,z({block:e},s,{style:a}),t.createElement(Vl,z({},s,{variantOn:o,variantOff:r}),c||"Page"," ",t.createElement("div",null,l)," of ",t.createElement("div",null,i)),t.createElement(Ml,s,Array.from(Array(i).keys()).map((e=>t.createElement(Wl,{key:"formSteps".concat(e),isActive:l===e+1,variantOn:o,variantOff:r,widthStep:n}))))));Bl.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},zl.defaultProps={theme:R},Vl.defaultProps={theme:R},Ml.defaultProps={theme:R},Wl.defaultProps={theme:R},Bl.defaultProps={theme:R,variantOn:"primary-1",variantOff:"neutral-2",block:!1,currentStep:1,totalSteps:4,widthStep:43};const Il=m.button`
|
|
2557
2558
|
background: ${({disabled:e,theme:t,bgVariant:o})=>e?"#BBC4CF":t.variant[o]};
|
|
2558
2559
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2559
2560
|
padding: 6px 17px;
|
|
@@ -2603,7 +2604,7 @@ position: relative;
|
|
|
2603
2604
|
fill: #929EAC;
|
|
2604
2605
|
}
|
|
2605
2606
|
}
|
|
2606
|
-
`,Pl=({block:e,style:o,variant:r,borderVariant:l,disabled:i,...n})=>(u(),t.createElement(Ll,z({block:e,variant:r,borderVariant:l,type:"button",style:o,disabled:i},n),n.children));Pl.propTypes={variant:e.string,borderVariant:e.string,disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object},Ll.defaultProps={theme:R},Pl.defaultProps={theme:R,variant:"primary-2",borderVariant:"neutral-3",block:!1,disabled:!1,onClick:void 0};const
|
|
2607
|
+
`,Pl=({block:e,style:o,variant:r,borderVariant:l,disabled:i,...n})=>(u(),t.createElement(Ll,z({block:e,variant:r,borderVariant:l,type:"button",style:o,disabled:i},n),n.children));Pl.propTypes={variant:e.string,borderVariant:e.string,disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object},Ll.defaultProps={theme:R},Pl.defaultProps={theme:R,variant:"primary-2",borderVariant:"neutral-3",block:!1,disabled:!1,onClick:void 0};const Tl=m.div`
|
|
2607
2608
|
display: flex;
|
|
2608
2609
|
flex-Direction: column;
|
|
2609
2610
|
height: ${({toggleSideBarOpen:e})=>"100vh"};
|
|
@@ -2613,7 +2614,7 @@ position: relative;
|
|
|
2613
2614
|
}
|
|
2614
2615
|
|
|
2615
2616
|
|
|
2616
|
-
`,
|
|
2617
|
+
`,Hl=m.div`
|
|
2617
2618
|
min-height: 51px;
|
|
2618
2619
|
display: flex;
|
|
2619
2620
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
@@ -2702,7 +2703,7 @@ position: relative;
|
|
|
2702
2703
|
p {
|
|
2703
2704
|
margin: 0 31px;
|
|
2704
2705
|
}
|
|
2705
|
-
`,Zl=({headerContent:e,bodyContent:o,footerContent:r,
|
|
2706
|
+
`,Zl=({headerContent:e,bodyContent:o,footerContent:r,toggleSideBarOpen:n,headerStyles:a,selectedStyle:c,notSelectedStyle:s,customStylesNameHover:d,listElementStyle:p,customSelectCardColor:m,user:g,firstBottomContent:b,secondBottomContent:f,bottomContent:h,selectedAppPath:y,setSelectedAppPath:x,selectedAppPageId:v,setSelectedAppPageId:A,...C})=>{const S=u()||R,[w,E]=l(null),[k,z]=l(null),[V,M]=l(!1),[W,B]=l([]);return i((()=>{B(y.split("/"));let e=y.split("/");A(o.find((t=>e[1]===t.path.split("/")[1])).routes.find((e=>e.path===y)).pageId)}),[y]),t.createElement(Tl,{onMouseEnter:()=>M(!0),onMouseLeave:()=>{E(null),z(null),M(!1)},toggleSideBarOpen:n},t.createElement(Hl,{theme:S,headerStyles:a},e),t.createElement(jl,{toggleSideBarOpen:n},o?.map(((e,o)=>t.createElement($,{key:e.pageId,index:o,handleClick:e=>{!function(e){z(null),E(e)}(e)},isAccordionOpen:o===w||V&&e?.value?.toLowerCase()===W[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===W[1]?.toLowerCase(),customSelectCardColor:m,customStylesAccordionContainer:{padding:"0","box-shadow":"none","border-radius":"0px","background-color":"transparent"},customStylesAccordionTogggle:{padding:"0","box-shadow":"none","border-radius":"0px","background-color":"transparent","padding-left":"16px","padding-top":"7.5px","padding-bottom":"7.5px",cursor:"pointer"},customStylesAccordionContent:{transition:"height ease 0.2s",overflow:"hidden",padding:"0","background-color":"transparent",color:"white",position:"relative","box-shadow":"none"},contentToggle:t.createElement(ge,{selectedStyle:c,notSelectedStyle:s,toggleName:n,customStylesName:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",color:"white","font-weight":"600"},customStylesNameHover:d,size:"LG",user:{userName:e.label,url:e.logo,fullName:e.label},isSelected:e?.value?.toLowerCase()===W[1]?.toLowerCase(),notificationCount:e?.notificationCount}),content:t.createElement("div",{style:{margin:"0",padding:"0",marginBottom:"18.25px"}},e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((o,r)=>t.createElement(ql,{listElementStyle:p,key:e.pageId+r,onClick:()=>{x(o.path)}},t.createElement("span",{style:{visibility:W[2]?.toLowerCase()===o?.path.split("/")[2]?.toLowerCase()?"visible":"hidden"}}),t.createElement("p",{style:{marginTop:0===r&&"0px",display:"inline-block"}},o?.link)))))})))),t.createElement(Fl,{toggleSideBarOpen:n,onMouseEnter:()=>M(!1)},t.createElement(_,{index:0,handleClick:e=>{!function(e){E(null),z(e)}(e)},isAccordionOpen:0===k,customStylesAccordionContainer:{padding:"0","box-shadow":"none","border-radius":"0px","background-color":"transparent"},customStylesAccordionTogggle:{padding:"0","box-shadow":"none","border-radius":"0px","background-color":"transparent","padding-left":"16px","padding-top":"7.5px","padding-bottom":"7.5px",cursor:"pointer"},customStylesAccordionContent:{transition:"height ease 0.2s",overflow:"hidden",padding:"0","background-color":"transparent",color:"white",position:"relative","box-shadow":"none"},contentToggle:t.createElement(ge,{selectedStyle:c,notSelectedStyle:s,toggleName:n,customStylesName:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",color:"white","font-weight":"400"},customStylesNameHover:d,size:"LG",user:{fullName:g.fullName||"My Account",userName:g.userName||"My Account",url:g.imgUrl}}),content:t.createElement("div",{style:{margin:"0",padding:"0",marginBottom:"18.25px"}},h?.map(((e,o)=>t.createElement(Ol,{listElementStyle:p,key:o},e?.value))))})))},Xl=m.div`
|
|
2706
2707
|
background-color: ${({theme:e})=>e.variant["primary-1"]} !important;
|
|
2707
2708
|
color: ${({theme:e})=>e.bgColor};
|
|
2708
2709
|
overflow-y: auto;
|
|
@@ -2729,7 +2730,7 @@ ${({forceOpen:e,inBuiltCss:t,type:o,customStylesPusherOpen:r,customStylesPusherC
|
|
|
2729
2730
|
@media (max-width: 980px) {
|
|
2730
2731
|
${({inBuiltCss:e,type:t,customStylesPusherMobile:o})=>({...P(e,"sidebar-pusher-mobile"),...o})}
|
|
2731
2732
|
}
|
|
2732
|
-
`,Jl=({customStylesContainer:e,customStylesContainerOpen:o,customStylesContainerClose:r,customStylesContainerMobileOpen:l,customStylesContainerMobileClose:i,customStylesPusher:n,customStylesPusherOpen:a,customStylesPusherClose:c,customStylesPusherMobile:s,forceOpen:d,forceClose:p,handleSidebar:m,toggleSideBarOpen:g,pinner:b,...f})=>{function h(e){m(e)
|
|
2733
|
+
`,Jl=({customStylesContainer:e,customStylesContainerOpen:o,customStylesContainerClose:r,customStylesContainerMobileOpen:l,customStylesContainerMobileClose:i,customStylesPusher:n,customStylesPusherOpen:a,customStylesPusherClose:c,customStylesPusherMobile:s,forceOpen:d,forceClose:p,handleSidebar:m,toggleSideBarOpen:g,pinner:b,...f})=>{function h(e){m(e)}const y=u()||R;return t.createElement(Xl,z({theme:y,inBuiltCss:L,customStyles:e,type:"sidebarContainer",onMouseEnter:()=>{d||h(!0)},onMouseLeave:()=>{h(!1),p()},forceOpen:d,isOpen:g},f),t.createElement(Gl,null),f.children,b)};Jl.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},Jl.defaultProps={forceClose:()=>{},forceOpen:!1};const Ul={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Dl=m.div`
|
|
2733
2734
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2734
2735
|
color: ${({theme:e})=>e.bgColor};
|
|
2735
2736
|
padding: ${({size:e})=>Ul[e].padding};
|
|
@@ -2780,7 +2781,26 @@ width: ${({block:e,size:t})=>e?"auto":ti[t].width};
|
|
|
2780
2781
|
height: 27px;
|
|
2781
2782
|
box-sizing: border-box;
|
|
2782
2783
|
overflow: hidden;
|
|
2783
|
-
`,ri=({block:e,style:o,variant:r,textColor:l,borderColor:i,...n})=>(u(),t.createElement(oi,z({block:e,variant:r,textColor:l,borderColor:i,style:o},n),n.children));ri.propTypes={variant:e.string,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,theme:e.object,textColor:e.string,borderColor:e.string},oi.defaultProps={theme:R},ri.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const li=m.div`
|
|
2784
|
+
`,ri=({block:e,style:o,variant:r,textColor:l,borderColor:i,...n})=>(u(),t.createElement(oi,z({block:e,variant:r,textColor:l,borderColor:i,style:o},n),n.children));ri.propTypes={variant:e.string,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,theme:e.object,textColor:e.string,borderColor:e.string},oi.defaultProps={theme:R},ri.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const li=e=>t.createElement("div",null,e.childern);li.propTypes={name:e.string};const ii=m.div`
|
|
2785
|
+
padding: 24px;
|
|
2786
|
+
${({tabWrapperStyle:e})=>e}
|
|
2787
|
+
`,ni=m.div`
|
|
2788
|
+
color: ${({theme:e})=>e.variant["graph-5"]};
|
|
2789
|
+
display: flex;
|
|
2790
|
+
align-items: flex-start;
|
|
2791
|
+
column-gap: 12px;
|
|
2792
|
+
padding-bottom: 24px;
|
|
2793
|
+
${({headerWrapperStyle:e})=>e}
|
|
2794
|
+
`,ai=m.span`
|
|
2795
|
+
font-size: 16px;
|
|
2796
|
+
padding: 7px 20px;
|
|
2797
|
+
background-color: ${({theme:e,isActive:t})=>t?T(e.variant["primary-1"],.2):"transparent"};
|
|
2798
|
+
cursor: pointer;
|
|
2799
|
+
border-radius: 5px;
|
|
2800
|
+
${({headerStyle:e})=>e}
|
|
2801
|
+
`,ci=m.div`
|
|
2802
|
+
${({tabContentStyle:e})=>e}
|
|
2803
|
+
`,si=({children:e,tabWrapperStyle:o,headerStyle:r,tabContentStyle:n,headerWrapperStyle:a,dividerStyle:c,...s})=>{const[d,p]=l([]),[m,g]=l({}),[b,f]=l("");i((()=>{const o=[],r={};t.Children.forEach(e,(e=>{if(!t.isValidElement(e))return;const{name:l}=e.props;o.push(l),r[l]=e.props.children})),p(o),f(o[0]),g({...r})}),[e]);const h=u()||R;return t.createElement(ii,{tabWrapperStyle:o},t.createElement(ni,{theme:h,headerWrapperStyle:a},d.map(((e,o)=>t.createElement(ai,{onClick:()=>{f(e)},key:o,theme:h,isActive:e===b,headerStyle:r},e)))),t.createElement(ar,{theme:h,height:"8px",dividerStyle:c}),t.createElement(ci,{tabContentStyle:n},Object.keys(m).map((e=>e===b?t.createElement("div",null,m[e]):null))))};si.propTypes={children:function(e,o,r){const l=e[o];let i=null;return t.Children.forEach(l,(function(e){e.type!==li&&(i=new Error("`"+r+"` children should be of type `TabPanel`."))})),i}},si.propTypes={tabWrapperStyle:e.object,headerWrapperStyle:e.object,headerStyle:e.object,dividerStyle:e.object,tabContentStyle:e.object},si.defaultProps={tabWrapperStyle:{},headerStyle:{},tabContentStyle:{},headerWrapperStyle:{},dividerStyle:{}};const di=m.div`
|
|
2784
2804
|
.notification {
|
|
2785
2805
|
background: ${({theme:e})=>e.bgColor};
|
|
2786
2806
|
transition: 0.3s ease;
|
|
@@ -2843,7 +2863,7 @@ overflow: hidden;
|
|
|
2843
2863
|
|
|
2844
2864
|
cursor: pointer;
|
|
2845
2865
|
}
|
|
2846
|
-
`,
|
|
2866
|
+
`,pi=({close:e,children:o,type:l,position:n,timeout:a})=>{((e,t)=>{const o=r(e);i((()=>{o.current=e}),[e]),i((()=>{if(null===t)return;const e=setTimeout((()=>o.current()),t);return()=>clearTimeout(e)}),[t])})(e,a||5e3);const c=u()||R;let s=null;switch(l){case"success":s=t.createElement(N,{icon:"check-icon",color:"white",size:13,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"warning":s=t.createElement(N,{icon:"info-icon",color:"white",size:11,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"error":s=t.createElement(N,{icon:"close-white",size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})}return t.createElement(di,{theme:c,type:l},t.createElement("div",{className:`notification toast ${n}`},t.createElement("div",{className:"leftSide"},t.createElement("div",{className:"notification-icon"},s),t.createElement("div",null,t.createElement("p",{className:"notification-message"},o))),t.createElement("div",{className:"close-icon",onClick:e},t.createElement(N,{icon:"close-icon",color:c.variant["neutral-2"]}))))},mi=s(),ui=m.div`
|
|
2847
2867
|
.notification-container {
|
|
2848
2868
|
font-size: 14px;
|
|
2849
2869
|
box-sizing: border-box;
|
|
@@ -2896,9 +2916,9 @@ overflow: hidden;
|
|
|
2896
2916
|
transform: translateX(0);
|
|
2897
2917
|
}
|
|
2898
2918
|
}
|
|
2899
|
-
`;function
|
|
2919
|
+
`;function gi(){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 bi=e=>{const[o,r]=l([]),n=(e,t)=>{r((o=>[...o,{id:gi(),content:t,type:e}]))},a=d((()=>({open:n})),[]),[c,s]=l(!1);return i((()=>(s(!0),()=>s(!1))),[]),t.createElement(mi.Provider,{value:a},e.children,c?k(t.createElement(ui,null,t.createElement("div",{className:`notification-container ${e.position}`},o.map((o=>t.createElement(pi,{key:o.id,type:o.type,position:e.position,timeout:e.timeout,close:()=>{return e=o.id,r((t=>t.filter((t=>t.id!==e))));var e}},o.content))))),document.body):null)},fi=()=>p(mi),hi={xs:{fontSize:"12px",lineHeight:"120%"},sm:{fontSize:"14px",lineHeight:"120%"},md:{fontSize:"16px",lineHeight:"140%"},lg:{fontSize:"18px",lineHeight:"120%"}},yi=m.div`
|
|
2900
2920
|
color: ${({theme:e,text:t})=>t?e.variant[t]:e.textColor};
|
|
2901
2921
|
// background: ${({theme:e,bg:t})=>t?e.variant[t]:e.bgColor};
|
|
2902
|
-
font-size: ${({size:e})=>
|
|
2903
|
-
line-height: ${({size:e})=>
|
|
2904
|
-
`,
|
|
2922
|
+
font-size: ${({size:e})=>hi[e].fontSize};
|
|
2923
|
+
line-height: ${({size:e})=>hi[e].lineHeight};
|
|
2924
|
+
`,xi=({size:e,children:o,bg:r,text:l,...i})=>{const n=u()||R;return t.createElement(yi,z({theme:n,bg:r,text:l,size:e},i),t.createElement(Pr,{theme:n}),o)};xi.propTypes={size:e.oneOf(["xs","sm","md","lg"]),text:e.string,bg:e.string,children:e.any,theme:e.object},xi.defaultProps={size:"md"};export{Y as Accordion,$ as AccordionSB,_ as AccordionSBfooter,Ko as ActionContainer,_o as ActionItem,re as ArrowBar,se as Avatar,ge as AvatarSB,ye as AvatarSBfooter,Ae as Banner,Ne as Breadcrumb,Zr as ButtonPopup,j as Card,F as CardRef,rt as CheckBoxInput,nt as ColorInput,qo as Comment,Oo as Content,Rl as DarkSecondaryLink,bt as DateSelect,ar as Divider,J as DocumentCard,sr as Drawer,vt as DropdownSelect,Wt as DropzoneInput,dr as ErrorBoundary,ur as FilterChip,br as Footer,vr as FooterContent,Rr as FormComponent,er as FormContainer,ir as FormWrapper,jr as GroupAvatars,Ur as GroupButtons,Kr as GroupButtonsPopup,ol as GroupStatusCircle,Cr as Header,Ir as HeaderComponent,il as HyperLink,N as Icon,ie as Image,Pt as ImageUploader,Ye as Label,Pl as LightSecondaryLink,ze as LinkButton,we as Loader,pl as ModalComp,rr as MultiColumnDiv,or as MultiColumnWrapper,Zl as Navbar,Ot as NumericInput,ul as Overlay,Yo as OverlayOptionContainer,$o as OverlayOptionItemLabel,Zo as PageContent,vl as Pagination,Cl as PaginationDefault,Ut as PasswordInput,Be as PrimaryButton,Ql as PrimaryStatusChip,kl as ProgressBar,Bl as ProgressSteps,$t as RadioInput,Mr as Rating,lo as SearchInput,Le as SecondaryButton,Yl as SecondaryStatusChip,Jl as Sidebar,mo as SignatureInput,ei as SlimPrimaryStatusChip,ri as SlimSecondaryStatusChip,$r as StatusCircle,Jo as StyledCentralBar,Go as StyledClearSearch,Do as StyledCreateRow,Qo as StyledRow,Xo as StyledRowSearch,No as StyledSearchRow,Uo as StyledWarning,tr as SubmitButtonContainer,Lr as SubmitComponent,li as TabPanel,Br as Table,si as Tabs,ho as TextArea,ro as TextInput,Eo as TimeInput,Te as TinyButton,bi as ToastProvider,Wo as ToggleSwitch,Ge as Tooltip,xi as Typography,L as defaultStyles,R as defaultThemeColor,P as getDefaultStyles,I as graphColor,T as hexToRGB,W as neutralColor,V as primaryColor,B as shadeColor,M as uiColor,fi as useToast};
|