groundfloor-react-ui 1.2.43 → 1.2.44
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 +234 -179
- package/dist/index.js +244 -189
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"prop-types";import t,{forwardRef as l,useRef as o,useState as r,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 b,css as u,keyframes as g,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 from"dayjs";import"dayjs/locale/es";import A,{components as C}from"react-select";import w from"react-select/async";import S from"react-signature-pad-wrapper";import E from"react-data-table-component";import k from"react-modal";import{createPortal as z}from"react-dom";function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o])}return e},V.apply(this,arguments)}const M={"primary-1":"#2E56F4","primary-2":"#081348"},B={error:"#DD0000",success:"#00B904 "},I={"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"},L={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},R={primary:{...M},ui:{...B},neutral:{...I},shade:{...W},graph:{...L},variant:{...M,...B,...I,...W,...L},textColor:M["primary-2"],bgColor:"#FFFFFF",black:"#000000",border:"#D4D7E3"},P={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"},"progressBar-label":{display:"block","margin-left":"13px","margin-bottom":"8px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${R.neutral["neutral-2"]}`},spinner:{"background-color":`${R.variant["neutral-1"]}`},avatarContainer:{background:"transparent",display:"flex","align-items":"center",width:"auto",position:"relative"},avatarCircle:{"border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","box-sizing":"border-box"},avatarCircleSM:{"font-weight":"600","font-size":"12px","min-width":"30px","min-height":"30px"},avatarCircleMD:{"font-weight":"400","font-size":"16px","min-width":"32px","min-height":"32px"},avatarCircleLG:{"font-weight":"400","font-size":"18px","min-width":"38px","min-height":"38px"},avatarName:{},avatarNameSM:{"margin-left":"8px","font-size":"14px"},avatarNameMD:{"margin-left":"16px","font-size":"16px"},avatarNameLG:{"margin-left":"16px","font-size":"16px"},"textbox-wrapper":{"border-radius":"4px",padding:"5.5px 7px",display:"flex","align-items":"center","line-height":".5rem",position:"relative"},"input-wrapper":{border:"0",outline:"0",margin:"0 5px",padding:"0px","font-size":"14px","flex-grow":"1","flex-shrink":"0","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},"textarea-wrapper":{border:"0",outline:"0",color:`${R.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-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":"56px","margin-left":"48px","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":"8px","padding-bottom":0,color:`${R.variant["neutral-2"]}`},"option-text":{color:"#A9B1B8","font-size":"16px"},sidebarContainer:{"min-height":"100%",overflow:"hidden","background-color":"#2e56f4",position:"fixed",color:"white",width:"48px",transition:"width ease 400ms"},"checkBox-outer":{border:`2px solid ${R.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":"8px","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":"white","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"56px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${R.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:"48px"},"sidebar-container-mobile-open":{width:"240px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px",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"}},T=(e,t)=>{if(e){let l={};if(e[t]){for(const o in e[t])l[o]=e[t][o],delete e.common[o];for(const t in e.common)l[t]=e.common[t]}return l}};function H(e,t){var l=parseInt(e.slice(1,3),16),o=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+o+", "+r+", "+t+")":"rgb("+l+", "+o+", "+r+")"}H("#FF0000",.5);const j=m.div`
|
|
1
|
+
import e from"prop-types";import t,{forwardRef as l,useRef as o,useState as r,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 b,css as u,keyframes as g,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 from"dayjs";import"dayjs/locale/es";import A,{components as C}from"react-select";import w from"react-select/async";import S from"react-signature-pad-wrapper";import k from"react-data-table-component";import E from"react-modal";import{createPortal as z}from"react-dom";function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o])}return e},V.apply(this,arguments)}const M={"primary-1":"#2E56F4","primary-2":"#081348"},B={error:"#DD0000",success:"#00B904 "},I={"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"},L={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},R={primary:{...M},ui:{...B},neutral:{...I},shade:{...W},graph:{...L},variant:{...M,...B,...I,...W,...L},textColor:M["primary-2"],bgColor:"#FFFFFF",black:"#000000",border:"#D4D7E3"},P={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"},"progressBar-label":{display:"block","margin-left":"13px","margin-bottom":"8px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${R.neutral["neutral-2"]}`},spinner:{"background-color":`${R.variant["neutral-1"]}`},avatarContainer:{background:"transparent",display:"flex","align-items":"center",width:"auto",position:"relative"},avatarCircle:{"border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","box-sizing":"border-box"},avatarCircleSM:{"font-weight":"600","font-size":"12px","min-width":"30px","min-height":"30px"},avatarCircleMD:{"font-weight":"400","font-size":"16px","min-width":"32px","min-height":"32px"},avatarCircleLG:{"font-weight":"400","font-size":"18px","min-width":"38px","min-height":"38px"},avatarName:{},avatarNameSM:{"margin-left":"8px","font-size":"14px"},avatarNameMD:{"margin-left":"16px","font-size":"16px"},avatarNameLG:{"margin-left":"16px","font-size":"16px"},"textbox-wrapper":{"border-radius":"4px",padding:"5.5px 7px",display:"flex","align-items":"center","line-height":".5rem",position:"relative"},"input-wrapper":{border:"0",outline:"0",margin:"0 5px",padding:"0px","font-size":"14px","flex-grow":"1","flex-shrink":"0","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},"textarea-wrapper":{border:"0",outline:"0",color:`${R.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-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":"56px","margin-left":"48px","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":"8px","padding-bottom":0,color:`${R.variant["neutral-2"]}`},"option-text":{color:"#A9B1B8","font-size":"16px"},sidebarContainer:{"min-height":"100%",overflow:"hidden","background-color":"#2e56f4",position:"fixed",color:"white",width:"48px",transition:"width ease 400ms"},"checkBox-outer":{border:`2px solid ${R.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":"8px","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":"white","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"56px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${R.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:"48px"},"sidebar-container-mobile-open":{width:"240px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px",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"}},T=(e,t)=>{if(e){let l={};if(e[t]){for(const o in e[t])l[o]=e[t][o],delete e.common[o];for(const t in e.common)l[t]=e.common[t]}return l}};function H(e,t){var l=parseInt(e.slice(1,3),16),o=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+o+", "+r+", "+t+")":"rgb("+l+", "+o+", "+r+")"}H("#FF0000",.5);const j=m.div`
|
|
2
2
|
color: ${({activeTheme:e})=>e.textColor};
|
|
3
3
|
padding-top: 25px;
|
|
4
4
|
padding-bottom: 25px;
|
|
@@ -140,7 +140,7 @@ import e from"prop-types";import t,{forwardRef as l,useRef as o,useState as r,us
|
|
|
140
140
|
|
|
141
141
|
// custom styles
|
|
142
142
|
${({customWrapperStyles:e})=>e}
|
|
143
|
-
`,$=({customStylesAccordionContainer:e,customStylesAccordionTogggle:l,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,toggleState:m,contentIsOpen:u,id:g,customWrapperStyles:f,showIconInfo:h,...y})=>{const x=o(null),v=b()||R,[A,C]=r(!1);return i((()=>{C(u)}),[u]),t.createElement(q,V({customStyles:e,type:"accordionContainer"},y,{header:t.createElement(q,V({customStyles:{borderRadius:A?"5px 5px 0 0":"5px",...l},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(Z,V({customStyles:a,type:"accordionContent",ref:x},y,{style:A?{height:"auto"}:{height:"0px",border:"none"},id:g,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,toggleState:e.func,id:e.string,customWrapperStyles:e.object,showIconInfo:e.bool},$.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:"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 5px 5px",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:l,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,isSelected:m,index:u,handleClick:g,isAccordionOpen:f,id:h,customSelectCardColor:y,...x})=>{const[v,A]=r(!1),C=o(null),[w,S]=r({}),[E
|
|
143
|
+
`,$=({customStylesAccordionContainer:e,customStylesAccordionTogggle:l,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,toggleState:m,contentIsOpen:u,id:g,customWrapperStyles:f,showIconInfo:h,...y})=>{const x=o(null),v=b()||R,[A,C]=r(!1);return i((()=>{C(u)}),[u]),t.createElement(q,V({customStyles:e,type:"accordionContainer"},y,{header:t.createElement(q,V({customStyles:{borderRadius:A?"5px 5px 0 0":"5px",...l},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(Z,V({customStyles:a,type:"accordionContent",ref:x},y,{style:A?{height:"auto"}:{height:"0px",border:"none"},id:g,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,toggleState:e.func,id:e.string,customWrapperStyles:e.object,showIconInfo:e.bool},$.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:"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 5px 5px",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:l,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,isSelected:m,index:u,handleClick:g,isAccordionOpen:f,id:h,customSelectCardColor:y,...x})=>{const[v,A]=r(!1),C=o(null),[w,S]=r({}),[k,E]=r({}),z=b()||R;return i((()=>{m?(S((e=>({...e,backgroundColor:y||z.variant["primary-1"]}))),E((e=>({...e,backgroundColor:y||z.variant["primary-1"],paddingTop:"14px",paddingBottom:"14px",paddingLeft:"6px"})))):(S({}),E({}))}),[m]),i((()=>{A(!!f)}),[f]),t.createElement(q,V({customStyles:{...e,...w},type:"accordionContainer"},x,{header:t.createElement(q,V({customStyles:{...l,...k},type:"accordionToggle"},x,{onClick:()=>{v||g(u),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(Z,V({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 ee=({customStylesAccordionContainer:e,customStylesAccordionTogggle:l,customStylesAccordionIcon:n,customStylesAccordionContent:a,toggleIconAnimation:c,icon:s,content:d,contentToggle:p,isSelected:m,index:b,handleClick:u,isAccordionOpen:g,disable:f,id:h,...y})=>{const[x,v]=r(!1),A=o(null),[C,w]=r({}),[S,k]=r({});return i((()=>{m?(w((e=>({...e,backgroundColor:"#2444d8"}))),k((e=>({...e,backgroundColor:"#2444d8",paddingTop:"14px",paddingBottom:"14px",paddingLeft:"6px"})))):(w({}),k({}))}),[m]),i((()=>{v(!!g)}),[g]),t.createElement(q,V({customStyles:{...e,...C},type:"accordionContainer"},y,{header:t.createElement(q,V({customStyles:{...l,...S},type:"accordionToggle"},y,{onClick:()=>{f||(x||u(b),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(Z,V({customStyles:a,type:"accordionContent",ref:A},y,{style:x?{height:A.current.scrollHeight+"px"}:{height:"0px",borderBottom:"none"},id:h,content:d}))}))};ee.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},ee.defaultProps={contentToggle:"Toggle",content:"Content",id:""};const te=m.div`
|
|
144
144
|
color: ${({theme:e,variant:t})=>t?e.variant[t]:"white"};
|
|
145
145
|
${({scroll:e})=>e?u`
|
|
146
146
|
display: flex;
|
|
@@ -428,14 +428,14 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t i
|
|
|
428
428
|
box-shadow: 10014px 0 0 -5px ${({activeTheme:e})=>e.variant["primary-1"]};
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
`,Se=()=>{const e=b()||R;return t.createElement(we,{activeTheme:e},t.createElement("div",{className:"dot-pulse"}))},
|
|
431
|
+
`,Se=()=>{const e=b()||R;return t.createElement(we,{activeTheme:e},t.createElement("div",{className:"dot-pulse"}))},ke=g`
|
|
432
432
|
0% {
|
|
433
433
|
opacity: 1;
|
|
434
434
|
}
|
|
435
435
|
100% {
|
|
436
436
|
opacity: 0;
|
|
437
437
|
}
|
|
438
|
-
`,
|
|
438
|
+
`,Ee=m.div`
|
|
439
439
|
${({size:e,thickness:t,propellerHeight:l})=>u`
|
|
440
440
|
display: inline-block;
|
|
441
441
|
position: relative;
|
|
@@ -444,7 +444,7 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t i
|
|
|
444
444
|
|
|
445
445
|
div {
|
|
446
446
|
transform-origin: 0px ${e/2}px;
|
|
447
|
-
animation: ${
|
|
447
|
+
animation: ${ke} 1s linear infinite;
|
|
448
448
|
width: fit-content;
|
|
449
449
|
|
|
450
450
|
::after {
|
|
@@ -531,7 +531,7 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t i
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
`}
|
|
534
|
-
`,ze=({size:e,thickness:l,propellerHeight:o,customStyles:r})=>t.createElement(
|
|
534
|
+
`,ze=({size:e,thickness:l,propellerHeight:o,customStyles:r})=>t.createElement(Ee,{inBuiltCss:P,size:e,thickness:l,propellerHeight:o,customStyles:r,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));ze.propTypes={size:e.number,thickness:e.number,propellerHeight:e.number,customStyles:e.object},ze.defaultProps={size:20,thickness:2,propellerHeight:25,customStyles:null};const Ve=g`
|
|
535
535
|
0% { transform: rotate(0deg); }
|
|
536
536
|
100% { transform: rotate(360deg); }
|
|
537
537
|
`,Me=({size:e,thickness:l,customStyles:o})=>{const r=m.div`
|
|
@@ -714,7 +714,7 @@ ${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>T(e,t)}
|
|
|
714
714
|
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>T(e,t)}
|
|
715
715
|
// custom styles
|
|
716
716
|
${({customTriggerStyle:e})=>e}
|
|
717
|
-
`,Qe=({inBuiltCss:e,contentTrigger:l,contentTooltip:o,popperOptionsP:r,settings:i,customStylesTPContainer:n,customStylesTPAbottom:a,customStylesTPAbottomBefore:c,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:g,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v,customStylesTPArrow:A,customStylesTPAbefore:C,customStylesTPAafter:w,customTooltipContentStyle:S,customContentStyle:
|
|
717
|
+
`,Qe=({inBuiltCss:e,contentTrigger:l,contentTooltip:o,popperOptionsP:r,settings:i,customStylesTPContainer:n,customStylesTPAbottom:a,customStylesTPAbottomBefore:c,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:g,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v,customStylesTPArrow:A,customStylesTPAbefore:C,customStylesTPAafter:w,customTooltipContentStyle:S,customContentStyle:k,customHeaderStyle:E,customBodyStyle:z,customTriggerStyle:M,headerTooltip:B,footerTooltip:I,...W})=>{const L=b()||R,T={modifiers:[{name:"offset",options:{offset:[0,23]}}],strategy:"absolute",...r},{getArrowProps:H,getTooltipProps:j,setTooltipRef:q,setTriggerRef:F,visible:Z}=y({interactive:!0,...i},T);return t.createElement(t.Fragment,null,t.createElement(Ye,{ref:F,inBuiltCss:P,customTriggerStyle:M,style:{width:"fit-content",height:"fit-content",display:"inline-block"}},l),Z&&t.createElement(Oe,V({inBuiltCss:P,theme:L,ref:q},j({className:"tooltip-container"}),{customStylesTPContainer:n,customStylesTPAbottom:a,customStylesTPAbottomBefore:c,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:g,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v}),t.createElement(Ge,V({inBuiltCss:P},H({className:"tooltip-arrow"}),{customStylesTPArrow:A,customStylesTPAbefore:C,customStylesTPAafter:w})),t.createElement(De,V({defaultTooltipContentStyle:"popOver-Content",theme:L,inBuiltCss:P},W,{customContentStyle:k}),t.createElement(Xe,V({defaultTooltipHeaderStyle:"popOver-header",theme:L,inBuiltCss:P},W,{customHeaderStyle:E}),B),t.createElement(Je,V({defaultTooltipBodyStyle:"popOver-body",theme:L,inBuiltCss:P},W,{customBodyStyle:z}),o),t.createElement(Ue,null,I))))};Qe.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},Qe.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(qe,{size:"sm"},"Next"),customStylesTPContainer:{border:"none"},customTriggerStyle:{}};const Ne=m.div`
|
|
718
718
|
background: transparent;
|
|
719
719
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
720
720
|
font-size: ${({isPrimary:e})=>e?"16px":"14px"};
|
|
@@ -788,7 +788,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
788
788
|
display: flex;
|
|
789
789
|
margin-bottom: 15px;
|
|
790
790
|
position: relative;
|
|
791
|
-
`,et=({wrap:e,block:l,style:n,variant:a,variantSeparator:c,appLogo:s,separator:d,items:p,onClick:m,isPrimary:u,collapse:g,folderIcon:f,iconMargin:h,...y})=>{const x=b()||R,v=o(null),[A,C]=r(void 0),w=()=>{C(v?.current?.scrollWidth<v?.current?.offsetWidth)};i((()=>{w()}),[p]),i((()=>{if(!e)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[]);const S=p.map(((e,l)=>t.createElement(Ke,{key:l},0!==l||s?t.createElement("div",{className:"breadcrumb-icon-separator"},d):null,t.createElement($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:a,href:e.href,"data-title":e.label},e.label)))),
|
|
791
|
+
`,et=({wrap:e,block:l,style:n,variant:a,variantSeparator:c,appLogo:s,separator:d,items:p,onClick:m,isPrimary:u,collapse:g,folderIcon:f,iconMargin:h,...y})=>{const x=b()||R,v=o(null),[A,C]=r(void 0),w=()=>{C(v?.current?.scrollWidth<v?.current?.offsetWidth)};i((()=>{w()}),[p]),i((()=>{if(!e)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[]);const S=p.map(((e,l)=>t.createElement(Ke,{key:l},0!==l||s?t.createElement("div",{className:"breadcrumb-icon-separator"},d):null,t.createElement($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:a,href:e.href,"data-title":e.label},e.label)))),k=p.slice(1,p.length-3).map(((e,l)=>t.createElement(_e,{key:l},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($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:a,href:e.href,"data-title":e.label},e.label)))),E=p?1==g?p.length<=4?S:t.createElement(t.Fragment,null,t.createElement(Ke,{key:0},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:p[0].id,theme:x,onClick:()=>{p[0].href&&m(p[0].href)},variant:a,href:p[0].href,"data-title":p[0].label},p[0].label)),t.createElement(Ke,null,t.createElement("div",{className:"breadcrumb-icon-separator",style:{marginTop:"-3px"}},d),t.createElement(Qe,{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,k),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(Ke,{key:p.length-3},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:p[p.length-3].id,theme:x,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(Ke,{key:p.length-2},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:p[p.length-2].id,theme:x,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(Ke,{key:p.length-1},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:p[p.length-1].id,theme:x,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(Ne,V({theme:x,isWrap:e,ref:e?null:v,isBreadcrumbVisible:A,block:l,variant:a,variantSeparator:c,style:n,isPrimary:u,iconMargin:h},y),s&&t.createElement("div",{className:"breadcrumb-icon"},s),E)))};et.propTypes={variant:e.string,variantSeparator:e.string,onClick:e.func,appLogo:e.any,separator:e.any,items:e.array,block:e.bool,wrap:e.bool,isPrimary:e.bool,collapse:e.bool,folderIcon:e.bool,iconMargin:e.string},et.defaultProps={variant:"neutral-2",variantSeparator:"neutral-3",block:!1,onClick:void 0,wrap:!1,isPrimary:!0,collapse:!0,folderIcon:!0};const tt=m.label`
|
|
792
792
|
//Set the styles from the default styles object
|
|
793
793
|
${({theme:e,type:t})=>T(e,t)}
|
|
794
794
|
|
|
@@ -1081,7 +1081,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1081
1081
|
padding-left: 12px;
|
|
1082
1082
|
padding-bottom: 12px;
|
|
1083
1083
|
cursor: pointer;
|
|
1084
|
-
`,vt=({startDate:e,setStartDate:l,disabled:n,theme:a,startYear:c,endYearRange:s,format:d,placeholderText:p,...m})=>{const u=b()||R,g=["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=o(null),A=o(null),[C,w]=r(!1),[S,
|
|
1084
|
+
`,vt=({startDate:e,setStartDate:l,disabled:n,theme:a,startYear:c,endYearRange:s,format:d,placeholderText:p,...m})=>{const u=b()||R,g=["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=o(null),A=o(null),[C,w]=r(!1),[S,k]=r(!1),[E,z]=r(!1),[M,B]=r(!1),[I,W]=r(e.getFullYear()),[L,P]=r(g[e.getMonth()]);i((()=>{P(g[e.getMonth()]),W(e.getFullYear())}),[e]),i((()=>(document.addEventListener("click",T,!0),()=>{document.removeEventListener("click",T,!0)})),[]);const T=e=>{v.current&&!v.current.contains(e.target)&&w(!1)},H=e=>{A.current&&!A.current.contains(e.target)&&k(!1)};return i((()=>(document.addEventListener("click",H,!0),()=>{document.removeEventListener("click",H,!0)})),[]),t.createElement(mt,V({disabled:n,theme:a},m),t.createElement(x,{selected:e,dateFormat:d||"dd/MM/yyyy",useWeekdaysShort:!0,onChange:e=>l(e),placeholderText:p,adjustDateOnChange:!0,disabled:n,dropdownMode:"select",renderCustomHeader:({date:e,changeYear:l,changeMonth:o})=>t.createElement(bt,null,t.createElement("div",{style:{display:"flex"}},t.createElement(gt,{ref:v},t.createElement(ft,{onClick:()=>{w(!C),k(!1)}},t.createElement("span",{onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),style:{color:`${E?u.variant["primary-1"]:u.textColor}`}},g[e.getMonth()]),t.createElement(ut,null,t.createElement(N,{icon:"triangle-down",color:E?u.variant["primary-1"]:u.textColor,size:7}))),C&&t.createElement(ht,null,t.createElement(yt,{theme:a,onMouseEnter:()=>z(!0)},g.map(((e,l)=>t.createElement(xt,{selectedMonth:L,onClick:()=>{z(!1),o(l),w(!1),P(g[l])},key:Math.random()},t.createElement("span",{style:{color:`${L===e?u.variant["primary-1"]:u.textColor}`}},e))))))),t.createElement(gt,{ref:A},t.createElement(ft,{style:{marginLeft:"28px"},onClick:()=>{k(!S),w(!1)}},t.createElement("span",{onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),style:{color:`${M?u.variant["primary-1"]:u.textColor}`}},e.getFullYear()),t.createElement(ut,null,t.createElement(N,{icon:"triangle-down",color:M?u.variant["primary-1"]:u.textColor,size:7}))),S&&t.createElement(ht,null,t.createElement(yt,{onMouseEnter:()=>B(!0)},f.map(((e,o)=>t.createElement(xt,{onClick:()=>{B(!1),l(e),W(e),k(!1)},key:Math.random()},t.createElement("span",{style:{color:`${I===e?u.variant["primary-1"]:u.textColor}`}},e)))))))))}))};vt.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},vt.defaultProps={theme:R,startDate:"",setStartDate:()=>{},disabled:!1};const At=m.div`
|
|
1085
1085
|
.react-datepicker-wrapper {
|
|
1086
1086
|
display: flex;
|
|
1087
1087
|
}
|
|
@@ -1094,6 +1094,48 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1094
1094
|
padding: 8px;
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
+
|
|
1098
|
+
.react-datepicker__input-container {
|
|
1099
|
+
border: ${({isValid:e,theme:t})=>e?"1px solid "+t.border:"1px solid "+t.variant.error};
|
|
1100
|
+
border-radius: 4px;
|
|
1101
|
+
&:focus-within {
|
|
1102
|
+
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
1103
|
+
border-radius: 4px;
|
|
1104
|
+
outline: none;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.react-datepicker__header {
|
|
1109
|
+
|
|
1110
|
+
background-color: ${({theme:e})=>e.variant["primary-1"]};
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
.react-datepicker__day--selected,
|
|
1114
|
+
.react-datepicker__day--keyboard-selected {
|
|
1115
|
+
background: ${({theme:e})=>e.variant["primary-1"]};
|
|
1116
|
+
border-radius: 2.4px;
|
|
1117
|
+
color: ${({theme:e})=>e.bgColor};
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
.react-datepicker__day-names,
|
|
1121
|
+
.react-datepicker__day-name {
|
|
1122
|
+
color: ${({theme:e})=>e.bgColor};
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
.react-datepicker__current-month,
|
|
1126
|
+
.react-datepicker-time__header,
|
|
1127
|
+
.react-datepicker-year-header{
|
|
1128
|
+
color: ${({theme:e})=>e.bgColor};
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{
|
|
1132
|
+
background: ${({theme:e})=>e.variant["primary-1"]};
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.react-datepicker__year-text--selected{
|
|
1136
|
+
background: ${({theme:e})=>e.variant["primary-1"]};
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1097
1139
|
// custom styles
|
|
1098
1140
|
${({wrapperStyle:e})=>e};
|
|
1099
1141
|
|
|
@@ -1101,9 +1143,9 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1101
1143
|
|
|
1102
1144
|
`,wt=m.button`
|
|
1103
1145
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1104
|
-
border: 1px solid ${({theme:e})=>e.border};
|
|
1105
1146
|
padding: 5.5px 12px;
|
|
1106
1147
|
padding-right: 7px;
|
|
1148
|
+
border: none;
|
|
1107
1149
|
border-radius: 4px;
|
|
1108
1150
|
width: "100%";
|
|
1109
1151
|
color: "#9c9c9c";
|
|
@@ -1112,6 +1154,7 @@ justify-content:'space-between';
|
|
|
1112
1154
|
alignItems: 'center'
|
|
1113
1155
|
|
|
1114
1156
|
|
|
1157
|
+
|
|
1115
1158
|
// custom styles
|
|
1116
1159
|
${({timeBtnStyle:e})=>e};
|
|
1117
1160
|
`,St=m.div`
|
|
@@ -1119,17 +1162,29 @@ display: flex;
|
|
|
1119
1162
|
align-items: center;
|
|
1120
1163
|
justify-content: ${({inputType:e})=>"year"!==e?"space-between":"center"};
|
|
1121
1164
|
padding: 8px;
|
|
1122
|
-
|
|
1165
|
+
color: ${({theme:e})=>e.bgColor};
|
|
1123
1166
|
// custom styles
|
|
1124
1167
|
${({customHeaderStyle:e})=>e};
|
|
1125
|
-
`,
|
|
1168
|
+
`,kt=m.span`
|
|
1126
1169
|
margin-top:-1px;
|
|
1127
1170
|
margin-left: 7px;
|
|
1128
1171
|
float: right;
|
|
1129
1172
|
|
|
1130
1173
|
// custom styles
|
|
1131
1174
|
${({customIconContainerStyle:e})=>e};
|
|
1132
|
-
`,
|
|
1175
|
+
`,Et=u`
|
|
1176
|
+
display: flex;
|
|
1177
|
+
gap: 7px;
|
|
1178
|
+
align-items: center;
|
|
1179
|
+
`,zt=m.div`
|
|
1180
|
+
${({labelInline:e})=>e?Et:null}
|
|
1181
|
+
${({labelInline:e})=>e?Et:null}
|
|
1182
|
+
.err-text {
|
|
1183
|
+
color: ${({errMsgColor:e,theme:t})=>e||t.variant.error};
|
|
1184
|
+
margin-top: 5px;
|
|
1185
|
+
font-size: 10px;
|
|
1186
|
+
}
|
|
1187
|
+
`,Vt=({defaultValue:e,onChange:l,inputType:o,onClick:i,placeHolder:n,value:a,disabled:c,startYear:s,endYearRange:d,icon:p,iconColor:m,iconSize:u,customHeaderStyle:g,timeBtnStyle:f,wrapperStyle:h,customIconContainerStyle:y,label:A,labelInline:C,labelStyle:w,required:S,errMsg:k,errMsgColor:E,isValid:z,...M})=>{console.log(z);const[B,I]=r(e);let W=B?new Date(B):null;for(var L=[],P=d||10,T=s||(new Date).getFullYear();T<=(new Date).getFullYear()+P;T++)L.push(T);let H={};switch(o){case"date":default:H.dateFormat="dd MMM, yyyy";break;case"month":H.dateFormat="MMMM yyyy",H.showMonthYearPicker=!0;break;case"year":H.dateFormat="yyyy",H.showYearPicker=!0;break;case"datetime-local":H.dateFormat="dd MMM yyyy, hh:mm a",H.showTimeSelect=!0,H.timeFormat="hh:mm a",H.timeIntervals=15,H.timeCaption="Time";break;case"time":H.showTimeSelect=!0,H.showTimeSelectOnly=!0,H.dateFormat="hh:mm a"}const j=b()||R;return t.createElement(zt,V({labelInline:C,errMsgColor:E,theme:j},M),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:w,type:"label-text",labelInline:C,errMsg:k,text:A,style:{display:"flex",marginBottom:""+(C?"":"7px"),paddingBottom:"0px"}},M)),S&&t.createElement("div",{style:{marginLeft:"4px",color:`${j.variant.error}`}},"*")),t.createElement(At,V({theme:j},M,{wrapperStyle:h,isValid:z}),t.createElement(x,V({selected:W,disabled:c,customInput:t.createElement(Ct,{value:a,onClick:i,placeholder:n,theme:j},t.createElement(wt,V({theme:j,style:{width:"100%",color:"#9c9c9c",display:"flex",justifyContent:"space-between",alignItems:"center"},onClick:i,timeBtnStyle:f},M),a||(n||"-- : -- --"),t.createElement(kt,V({theme:j},M,{customIconContainerStyle:y}),p?t.createElement(N,{icon:p,color:m,size:u}):null))),onChange:e=>{console.log(e),I(e);var t=null;t="datetime-local"==o?v(e).format("DD MMM YYYY, hh:mm A"):"date"==o?v(e).format("DD MMM, YYYY"):"year"==o?v(e).format("YYYY"):"month"==o?v(e).format("MMMM YYYY"):"time"==o?v(e).format("hh:mm A"):v(e).format("DD MMM, YYYY"),l(t)},showYearDropdown:!0,yearDropdownItemNumber:5,dropdownMode:"select",placeholderText:n},H,{renderCustomHeader:({date:e,changeYear:l,decreaseMonth:r,increaseMonth:i})=>{let n=v(e).format("MMMM");return t.createElement(St,V({theme:j},M,{inputType:o,customHeaderStyle:g}),"year"!==o?t.createElement("span",{style:{paddingLeft:"10px"},onClick:r},t.createElement(N,{icon:"chevron-left",color:"white",size:16})):null,t.createElement("b",null,"year"!==o?t.createElement("span",{style:{paddingRight:"5px"}},n):null," ",t.createElement("span",{className:"calender-year"},t.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>l(e)},L.map((e=>t.createElement("option",{key:e,value:e},e)))))),"year"!==o?t.createElement("span",{style:{paddingRight:"10px"},onClick:i},t.createElement(N,{icon:"chevron-right",color:"white",size:16})):null)}}))),k.length>0&&t.createElement("div",{className:"err-text"},k))};Vt.propTypes={defaultValue:e.string,onChange:e.func,inputType:e.string,onClick:e.func,placeHolder:e.string,value:e.string,disabled:e.bool,startYear:e.number,endYearRange:e.number,icon:e.string,iconColor:e.string,iconSize:e.number,customHeaderStyle:e.object,timeBtnStyle:e.object,wrapperStyle:e.object,customIconContainerStyle:e.object,label:e.string,labelStyle:e.object,labelInline:e.bool,errMsg:e.string,errMsgColor:e.string,isValid:e.bool},Vt.defaultProps={disabled:!1,startYear:new Date,endYearRange:10,iconColor:"black",iconSize:16,value:"",defaultValue:"",onChange:()=>{},label:"",required:!1,labelInline:!1,errMsg:"",isValid:!1};const Mt=m.div`
|
|
1133
1188
|
.master-dropdown,
|
|
1134
1189
|
.new-select {
|
|
1135
1190
|
.master-dropdown__menu,
|
|
@@ -1272,7 +1327,7 @@ float: right;
|
|
|
1272
1327
|
border: ${({theme:e,backgroundColor:t})=>t?"1px solid "+t:"1px solid "+e.primary["primary-1"]};
|
|
1273
1328
|
}
|
|
1274
1329
|
|
|
1275
|
-
`;
|
|
1330
|
+
`;Mt.defaultProps={theme:R};const Bt=m.div`
|
|
1276
1331
|
// Default style
|
|
1277
1332
|
display: flex;
|
|
1278
1333
|
|
|
@@ -1280,11 +1335,11 @@ float: right;
|
|
|
1280
1335
|
${({inBuiltCss:e,labelWrapperStyle:t})=>T(e,t)}
|
|
1281
1336
|
// custom styles
|
|
1282
1337
|
${({customLabelStyles:e})=>e}
|
|
1283
|
-
`,
|
|
1338
|
+
`,It=m.div`
|
|
1284
1339
|
margin-left: 6px;
|
|
1285
1340
|
margin-top: -15.5px;
|
|
1286
1341
|
cursor: pointer;
|
|
1287
|
-
`,
|
|
1342
|
+
`,Wt=({getValue:e,children:l,...o})=>{const r=e().length;return t.createElement(C.ValueContainer,o,l,r>1&&t.createElement("span",{className:"text-more-alt"},"& ",r-1," more"))},Lt=({label:e,labelStyle:l,optionArr:o,selectedValue:r,setSelectedValue:i,placeHolder:n,isClearable:a,isValid:c,height:s,fontSize:d,loadOptions:p,onInputChange:m,clearSelected:u,customWrapperStyles:g,customLabelStyles:f,isRequired:h,dropdownType:y,isDisabled:x,isLoading:v,id:A,iconName:w,iconStyles:S,iconColor:k,iconSize:E,showIndicator:z,leftIcon:M,leftIconColor:B,leftIconSize:I,backgroundColor:W,placeHolderColor:L,indicatorBackgroundColor:T,inputColor:H,...j})=>{const q=b()||R,F=e=>{const l={width:"15px",height:"15px",borderRadius:"2px",padding:"4px",fontSize:"8px",lineHeight:"10px",minWidth:"15px",minHeight:"15px"},o=t.createElement("div",{style:{...l,backgroundColor:e?.data?.color??q.primary["primary-1"]}},t.createElement(N,{icon:"check-icon",color:"white"})),r=t.createElement("div",{style:{...l,backgroundColor:"#e0e7ff"}});return t.createElement(C.Option,e,t.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",width:"100%"}},e.isSelected?o:r,t.createElement("div",{className:"text-main-alt",style:{marginLeft:"10px"}},e.label)))},Z=({index:e,...l})=>{const o=l?.data?.label||"Select";return!e&&t.createElement("span",{className:"text-main-alt-value"},o)},O={control:(e,t)=>({...e,border:c?W&&c?"1px solid "+W:"1px solid "+q.border:"1px solid "+q.ui.error,minWidth:"singleSelect"===y||"asyncSingleSelect"===y?"120px":"185px",height:`${s}px`,minHeight:`${s}px`,boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:W||q.bgColor}),placeholder:e=>({...e,fontSize:d+"px",marginLeft:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"auto",maxWidth:"89%",marginRight:"0px",color:L||"hsl(0, 0%, 50%)"}),dropdownIndicator:e=>({...e,height:`${s}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"2px",backgroundColor:T||"transparent",borderBottomLeftRadius:"0",borderBottomRightRadius:"4.32px",borderTopLeftRadius:0,borderTopRightRadius:"4.32px",position:"relative",top:"-1px",right:"-1px"}),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",marginTop:"-4px"}),indicatorsContainer:e=>({...e,padding:0}),menu:e=>({...e,border:"none",marginTop:"1px",borderTopRightRadius:"0px",borderTopLeftRadius:"0px",outline:"none",boxShadow:"0px 6px 20px rgba(56, 66, 100, 0.15)",borderRadius:"4.32px",fontSize: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:H||"hsl(0, 0%, 20%)"}),option:(e,t)=>({...e,backgroundColor:t.isSelected||t.isFocused?q.neutral["neutral-5"]:q.bgColor,padding:"10px",cursor:"pointer",color:"#081348",width:"inherit"}),menuPortal:e=>({...e,zIndex:9999999})},G={DropdownIndicator:e=>{const l=t.createElement(C.DropdownIndicator,e,t.createElement(It,null,t.createElement(N,{icon:w,color:k,size:E,customstyles:S})));return!0===z?l:null},ValueContainer:Wt,IndicatorSeparator:()=>null,ClearIndicator:e=>t.createElement(C.ClearIndicator,e,a?t.createElement(It,{onClick:()=>{u(),e.clearValue()}},t.createElement(N,{icon:"cross-icon",color:"black",size:8})):null)};let D=null;switch(y){case"multiSelect":D=t.createElement(Rt,V({type:"multiSelect",MultiValue:Z,Option:F,value:r,CommonRenderedComponent:G,optionArr:o,placeHolder:n,isDisabled:x,stylesComp:O,setSelectedValue:i,isLoading:v,id:A,isClearable:a},j));break;case"asyncSingleSelect":D=t.createElement(Pt,V({CommonRenderedComponent:G,loadOptions:p,onInputChange:m,styles:O,placeholder:n,onChange:i,isLoading:v,isDisabled:x,id:A,value:r,isClearable:a},j));break;case"asyncMultiSelect":D=t.createElement(Pt,V({type:"asyncMultiSelect",CommonRenderedComponent:G,MultiValue:Z,Option:F,onChange:i,placeholder:n,styles:O,isDisabled:x,isLoading:v,loadOptions:p,onInputChange:m,id:A,isClearable:a},j));break;default:D=t.createElement(Rt,V({type:"singleSelect",value:{value:r?r.value:"",label:r?r.label:""},CommonRenderedComponent:G,optionArr:o,placeHolder:n,isDisabled:x,stylesComp:O,setSelectedValue:i,isLoading:v,id:A,isClearable:a},j))}return t.createElement(Mt,{style:g,backgroundColor:W,isValid:c,fontSize:d,theme:q},e&&t.createElement(Bt,{inBuiltCss:P,labelWrapperStyle:"selectComp-label-wrapper",style:f},t.createElement(lt,{customStyles:l,type:"label-text",text:e,style:{marginBottom:"8px",paddingBottom:"0px"}}),h&&t.createElement("div",{style:{marginLeft:"4px",color:`${q.ui.error}`}},"*")),D)},Rt=({type:e,Option:l,value:o,CommonRenderedComponent:r,MultiValue:i,optionArr:n,placeHolder:a,isDisabled:c,stylesComp:s,setSelectedValue:d,isLoading:p,id:m,isClearable:b,...u})=>{let g={...r};return"multiSelect"===e&&(g.MultiValue=i,g.Option=l),t.createElement(A,V({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:g,options:n,placeholder:a,isDisabled:c,value:o,styles:s,onChange:d,isLoading:p,id:m,isClearable:b,isMulti:"multiSelect"===e,hideSelectedOptions:!1,closeMenuOnSelect:"multiSelect"!==e,menuShouldScrollIntoView:!1},u))},Pt=({CommonRenderedComponent:e,MultiValue:l,Option:o,type:r,id:i,styles:n,...a})=>{let c={...e};return"asyncMultiSelect"===r&&(c.MultiValue=l,c.Option=o),t.createElement(w,V({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:c,isMulti:"asyncMultiSelect"===r,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiSelect"!==r,isSearchable:!0,styles:n,menuShouldScrollIntoView:!1},a))};Lt.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},Lt.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 Tt=m.div`
|
|
1288
1343
|
//Set the styles from the default styles object
|
|
1289
1344
|
${({inBuiltCss:e,defaultStyles:t})=>T(e,t)}
|
|
1290
1345
|
|
|
@@ -1301,15 +1356,15 @@ float: right;
|
|
|
1301
1356
|
|
|
1302
1357
|
// custom styles
|
|
1303
1358
|
${({customDropzoneStyles:e})=>e}
|
|
1304
|
-
`,
|
|
1359
|
+
`,Ht=m.div`
|
|
1305
1360
|
//Set the styles from the default styles object
|
|
1306
1361
|
${({inBuiltCss:e,defaultStyles:t})=>T(e,t)}
|
|
1307
1362
|
|
|
1308
1363
|
// custom styles
|
|
1309
1364
|
${({customFileStyles:e})=>e}
|
|
1310
|
-
`,
|
|
1365
|
+
`,jt=m.input`
|
|
1311
1366
|
display: none;
|
|
1312
|
-
`,
|
|
1367
|
+
`,qt=m.div`
|
|
1313
1368
|
//Set the styles from the default styles object
|
|
1314
1369
|
${({inBuiltCss:e,defaultStyles:t})=>T(e,t)}
|
|
1315
1370
|
|
|
@@ -1321,19 +1376,19 @@ float: right;
|
|
|
1321
1376
|
|
|
1322
1377
|
// custom styles
|
|
1323
1378
|
${({customFileNameStyles:e})=>e}
|
|
1324
|
-
`;const
|
|
1379
|
+
`;const Ft=m.div`
|
|
1325
1380
|
cursor: pointer;
|
|
1326
1381
|
padding-left: 1px;
|
|
1327
1382
|
margin-left: auto;
|
|
1328
1383
|
margin-right: 10px;
|
|
1329
1384
|
display: flex;
|
|
1330
1385
|
justify-content: center;
|
|
1331
|
-
`,
|
|
1386
|
+
`,Zt=m.div`
|
|
1332
1387
|
margin-left: 11px;
|
|
1333
1388
|
padding-left: 2px;
|
|
1334
1389
|
display: flex;
|
|
1335
1390
|
justify-content: center;
|
|
1336
|
-
`,
|
|
1391
|
+
`,Ot=m.div`
|
|
1337
1392
|
color: #494949;
|
|
1338
1393
|
margin-left: 11px;
|
|
1339
1394
|
padding-left: 2px;
|
|
@@ -1344,18 +1399,18 @@ float: right;
|
|
|
1344
1399
|
align-items: center;
|
|
1345
1400
|
margin: 20px 0px;
|
|
1346
1401
|
font-size: 14px;
|
|
1347
|
-
`;const
|
|
1402
|
+
`;const Gt=({label:e,labelStyle:l,labelInline:o,required:i,message:a,fileArr:c,setFileArr:s,deleteFile:d,customDropzoneStyles:p,customFileStyles:m,customTextStyles:u,customFileNameStyles:g,backgroundColor:f,singleFile:h,messageSize:y,showSupportedFormats:x,file_extensions:v,maxFilesAmount:A,minFilesAmount:C,fileSizeLimit:w,fileSizeNamingConvention:S,errorMessages:k,suggesionMessage:E,MessagelabelStyle:z,dropValid:M,setDropValid:B,dropzoneContent:I,dropIcon:W,iconColor:L,id:T,customTooltipContentStyle:H,customStylesTPArightBefore:j,customStylesTPArightAfter:q,...F})=>{const Z=b()||R,[O,G]=r(!1),D=n(),[X,J]=r(M),[U,Y]=r("");let Q;var K=v,$=!1,_=x?"That file type is not supported.":"",ee=(E=x?"The Supported format's are: ":"","");1==h&&(C=1,A=1);var te="Please upload (min."+C+" to max."+A+")files",le=e=>{ee="";let t=[];var l=0,o=c.length;if(o+1<C||o+1>A){var r="The file size is not uploaded";ee=U?.amount,ee=void 0!==ee?ee:r}for(const e of c)l+=e.size;if(""==ee)for(const[o,c]of Object.entries(e)){$=!0,c.name,l+=c.size;var i=c.name.split(".");i=i[i.length-1],$=K.includes(i.toLowerCase());var n=1024;("MB"==S||"GB"==S||"TB"==S)&&(n*=1024);var a=Math.round(l/n);if(0==$&&(ee=k?.format,ee=ee?ee+_:_),a>w&&$){$=!1;r="The file must be under "+w+" "+S;ee=k?.size,ee=null!=ee?ee:r}!0===$&&(Q&&URL.revokeObjectURL(Q),Q=URL.createObjectURL(c),c.path=Q,t.push(c))}return ee.length>0?(B(!1),J(M),Y(ee)):(B(!0),J(M),Y("")),t};function oe(e){e.preventDefault(),e.stopPropagation()}function re(e,t){let l=[...c,...e];return t||(l=l.filter(((e,t,l)=>t===l.findIndex((t=>t.place===e.place&&t.name===e.name))))),s(l),G(!1),l}function ie(e,t){if(e instanceof File){const t=c.filter((t=>t.name!==e.name));s(t)}else!function(e,t){const l=c.filter((t=>t.name!==e.name));s(l),d(e)}(e)}return t.createElement("div",null,t.createElement("div",{style:{display:"flex",width:"inherit"}},t.createElement(lt,V({customStyles:l,type:"label-text",labelInline:o,text:e,style:{display:"flex",marginBottom:`${o?0:"8px"}`,paddingBottom:"0px"}},F)),i&&t.createElement("div",{style:{marginLeft:"4px",color:`${Z.variant.error}`}},"*")),t.createElement(Tt,{theme:Z,inBuiltCss:P,defaultStyles:"dropzone-parent",backgroundColor:f,customDropzoneStyles:M?p:{},onDragLeave:function(e){oe(e),G(!1)},onDragOver:function(e){oe(e),G(!0)},onDrop:function(e){oe(e);const{files:t}=e.dataTransfer;var l=le(t);G(!0),F.onFilesAdded(re(l,h))},onClick:function(){D.current.click()},hover:O,dropValid:M,fileArr:c},t.createElement(jt,V({ref:D,valid:X,dropValid:M,type:"file",id:T,multiple:1!=h,onChange:function(e){e.target,G(!1);var t=le(e.target.files);t&&F.onFilesAdded(re(t,h))},onClick:e=>e.target.value=null},F)),M?t.createElement(t.Fragment,null,W?t.createElement(N,{icon:W,color:O?Z.bgColor:L,size:24}):t.createElement(N,{icon:"file-upload",color:O?Z.bgColor:Z.primary["primary-1"],size:24})):null,t.createElement(qt,{dropValid:M,valid:X,hover:O,backgroundColor:f,customTextStyles:u,inBuiltCss:P,defaultStyles:"dropzone-text-div"},M?t.createElement(t.Fragment,null,I?t.createElement("div",{style:{color:O?Z.bgColor:null}},I):t.createElement("div",null,t.createElement("span",{style:{color:O?Z.bgColor:Z.primary["primary-1"]}},"Choose a file"," "),t.createElement("span",{style:{color:O?Z.bgColor:Z.neutral["neutral-2"]}},"or"," "),t.createElement("span",{style:{color:O?Z.bgColor:Z.textColor}},"drag ",h?"it":"them"," here"))):t.createElement("div",null,t.createElement("span",{style:{color:Z.variant.error}},"Try again!!"," "),t.createElement("span",{style:{color:Z.textColor}},U||a)))),U===_?t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({themeColor:R,customStyles:z,type:"label-text",labelInline:o,text:E,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},F)),t.createElement(Qe,{contentTrigger:t.createElement("span",null,"read more"),headerTooltip:"",contentTooltip:JSON.stringify(K),footerTooltip:"",popperOptionsP:{placement:"right"},settings:{closeOnOutsideClick:!0,trigger:"click"},customTriggerStyle:{marginTop:"8px",marginLeft:"4px",textDecoration:"underline",color:Z.variant["primary-1"]},customBodyStyle:{wordWrap:"break-word"},customContentStyle:H,customStylesTPArightBefore:j,customStylesTPArightAfter:q})):"The file size is not uploaded"===U?t.createElement(lt,V({themeColor:R,customStyles:z,type:"label-text",labelInline:o,text:te,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},F)):"",c?.map(((e,l)=>t.createElement(Ht,{inBuiltCss:P,defaultStyles:"dropzone-file-div",key:`${e}-${l}`,customFileStyles:m},t.createElement(Zt,null,t.createElement(N,{icon:"file-icon",color:Z.primary["primary-1"]})),(File,t.createElement("a",{style:{color:Z.variant["primary-1"],marginLeft:"5px"},href:e?.path,target:"_blank",rel:"noreferrer",download:e.name}," ",e.name)),t.createElement(Ot,null,e?.otherInfo),t.createElement(Ft,{key:101*Math.random()|0,onClick:()=>ie(e)},t.createElement("div",{style:{marginRight:"7px"}},t.createElement(N,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:Z.primary["primary-1"]})),t.createElement(N,{icon:"cross-icon",color:Z.neutral["neutral-2"],size:13}))))))};Gt.propTypes={onFilesAdded:e.func,dropValid:e.bool,setDropValid:e.func,message:e.string,fileArr:e.array,setFileArr:e.func,customDropzoneStyles:e.object,customFileStyles:e.object,customTextStyles:e.object,customFileNameStyles:e.object,backgroundColor:e.string,messageSize:e.number,maxFilesAmount:e.number,minFilesAmount:e.number,fileSizeLimit:e.number,fileSizeNamingConvention:e.string,showSupportedFormats:e.bool,file_extensions:e.array,errorMessages:e.object,suggesionMessage:e.any,MessagelabelStyle:e.object,id:e.string,dropzoneContent:e.any,dropIcon:e.string,iconColor:e.string,singleFile:e.bool,customTooltipContentStyle:e.object,customStylesTPArightBefore:e.object,customStylesTPArightAfter:e.object},Gt.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 Dt=m.div`
|
|
1348
1403
|
display: contents;
|
|
1349
1404
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1350
1405
|
|
|
1351
1406
|
${({WrapperDivStyle:e})=>e}
|
|
1352
|
-
`,
|
|
1407
|
+
`,Xt=m.input`
|
|
1353
1408
|
display: none;
|
|
1354
1409
|
min-height: 100vh;
|
|
1355
1410
|
padding: 0 0.5rem;
|
|
1356
1411
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1357
1412
|
|
|
1358
|
-
`,
|
|
1413
|
+
`,Jt=m.div`
|
|
1359
1414
|
height: 49px;
|
|
1360
1415
|
width: 49px;
|
|
1361
1416
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor};
|
|
@@ -1367,7 +1422,7 @@ float: right;
|
|
|
1367
1422
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1368
1423
|
|
|
1369
1424
|
${({IconWrapperStyle:e})=>e}
|
|
1370
|
-
`,
|
|
1425
|
+
`,Ut=m.div`
|
|
1371
1426
|
// background-color: ${({theme:e})=>e.bgColor};
|
|
1372
1427
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor};
|
|
1373
1428
|
width: 134px;
|
|
@@ -1409,7 +1464,7 @@ float: right;
|
|
|
1409
1464
|
}
|
|
1410
1465
|
}
|
|
1411
1466
|
${({MainDivStyle:e})=>e};
|
|
1412
|
-
`,
|
|
1467
|
+
`,Yt=({image:e,setImage:l,WrapperDivStyle:n,MainDivStyle:a,IconWrapperStyle:c,iconSize:s,iconColor:d,isDisabled:p,id:m})=>{const[u,g]=r(),f=o(),h=b()||R,[y,x]=r(),[v,A]=r(!1);function C(e){e.preventDefault(),e.stopPropagation()}i((()=>{if(e&&v){const t=new FileReader;t.onloadend=()=>{g(t.result)},t.readAsDataURL(e)}else g(e)}),[e]);const w=e=>{e&&"image"===e.type.substr(0,5)?(A(!0),l(e)):A(!1)};return t.createElement(Dt,{onDragLeave:function(e){C(e),x(!1)},onDragOver:function(e){C(e),x(!0)},onDrop:function(e){C(e);const{files:t}=e.dataTransfer;w(t[0])},WrapperDivStyle:n,isDisabled:p},t.createElement(Ut,{isDisabled:p,theme:h,MainDivStyle:a,style:{backgroundImage:`url(${u})`},onClick:e=>{e.preventDefault(),f.current.click()}},!u&&t.createElement("div",{className:"icon-on-not-preview"},t.createElement(Jt,{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(Jt,{IconWrapperStyle:c,isDisabled:p,theme:h},t.createElement(N,{icon:"camera-icon",size:s,color:d||h.variant["primary-1"]})))),t.createElement(Xt,{id:m,type:"file",ref:f,accept:"image/jpg, image/jpeg, image/png",onChange:e=>{A(!0),l(e.target.files[0])},disabled:p,isDisabled:p}))};Yt.propTypes={image:e.any,setImage:e.func,WrapperDivStyle:e.object,MainDivStyle:e.object,IconWrapperStyle:e.object,iconSize:e.number},Yt.defaultProps={image:null,setImage:()=>{},WrapperDivStyle:{},MainDivStyle:{},IconWrapperStyle:{},iconSize:28,id:"",isDisabled:!1};const Qt=m.div`
|
|
1413
1468
|
border: 1px solid
|
|
1414
1469
|
${({theme:e})=>e.border};
|
|
1415
1470
|
border-radius: 4px;
|
|
@@ -1429,7 +1484,7 @@ float: right;
|
|
|
1429
1484
|
fill: ${({theme:e})=>e.variant["primary-1"]};
|
|
1430
1485
|
}
|
|
1431
1486
|
}
|
|
1432
|
-
`;
|
|
1487
|
+
`;Qt.defaultProps={theme:R};const Nt=m.input`
|
|
1433
1488
|
width: 85%;
|
|
1434
1489
|
border: 0;
|
|
1435
1490
|
outline: 0;
|
|
@@ -1442,12 +1497,12 @@ float: right;
|
|
|
1442
1497
|
|
|
1443
1498
|
// custom styles
|
|
1444
1499
|
${({inputStyle:e})=>e}
|
|
1445
|
-
`;
|
|
1500
|
+
`;Nt.defaultProps={theme:R},u`
|
|
1446
1501
|
&:after {
|
|
1447
1502
|
content: ' *';
|
|
1448
1503
|
color: ${({theme:e})=>e.variant.error};
|
|
1449
1504
|
}
|
|
1450
|
-
`;const
|
|
1505
|
+
`;const Kt=m.label`
|
|
1451
1506
|
display: flex;
|
|
1452
1507
|
margin-right: 10px;
|
|
1453
1508
|
align-content: center;
|
|
@@ -1460,16 +1515,16 @@ float: right;
|
|
|
1460
1515
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
1461
1516
|
|
|
1462
1517
|
${({labelStyle:e})=>e}
|
|
1463
|
-
`;
|
|
1518
|
+
`;Kt.defaultProps={theme:R};const $t=u`
|
|
1464
1519
|
display: flex;
|
|
1465
1520
|
align-items: center;
|
|
1466
|
-
`,
|
|
1467
|
-
${({labelInline:e})=>e
|
|
1521
|
+
`,_t=m.div`
|
|
1522
|
+
${({labelInline:e})=>e?$t:null}
|
|
1468
1523
|
|
|
1469
1524
|
> div {
|
|
1470
1525
|
flex: 1 0 auto;
|
|
1471
1526
|
}
|
|
1472
|
-
`;
|
|
1527
|
+
`;_t.defaultProps={theme:R};const el=({label:e,inputValue:l,inputStyle:o,iconBefore:r,iconAfter:i,onChange:n,theme:a,id:c,labelStyle:s,...d})=>t.createElement(_t,d,e.length>0&&t.createElement(Kt,{labelStyle:s},e),t.createElement("div",null,t.createElement(Qt,d,t.createElement("div",{className:"input-icon"},r),t.createElement(Nt,V({},d,{inputStyle:o,value:l,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))));el.propTypes={theme:e.object,label:e.string,labelInline:e.bool,inputValue:e.any,inputStyle:e.object,id:e.string,labelStyle:e.object},el.defaultProps={theme:R,label:"",labelInline:!1,inputStyle:{},inputValue:null,id:"",labelStyle:{}};const tl=m.div`
|
|
1473
1528
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1474
1529
|
|
|
1475
1530
|
//Set the styles from the default styles object
|
|
@@ -1495,7 +1550,7 @@ float: right;
|
|
|
1495
1550
|
|
|
1496
1551
|
// custom styles
|
|
1497
1552
|
${({textBoxStyle:e})=>e}
|
|
1498
|
-
`;
|
|
1553
|
+
`;tl.defaultProps={theme:R};const ll=m.input`
|
|
1499
1554
|
width: 85%;
|
|
1500
1555
|
|
|
1501
1556
|
|
|
@@ -1508,18 +1563,18 @@ float: right;
|
|
|
1508
1563
|
.sc-furwcr bxRAoq {
|
|
1509
1564
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
1510
1565
|
}
|
|
1511
|
-
`;
|
|
1566
|
+
`;ll.defaultProps={theme:R};const ol=u`
|
|
1512
1567
|
display: flex;
|
|
1513
1568
|
gap: 7px;
|
|
1514
1569
|
align-items: start;
|
|
1515
|
-
`,
|
|
1516
|
-
${({labelInline:e})=>e?
|
|
1570
|
+
`,rl=m.div`
|
|
1571
|
+
${({labelInline:e})=>e?ol:null}
|
|
1517
1572
|
.err-text {
|
|
1518
1573
|
color: ${({errMsgColor:e,theme:t})=>e||t.variant.error};
|
|
1519
1574
|
margin-top: 5px;
|
|
1520
1575
|
font-size: 10px;
|
|
1521
1576
|
}
|
|
1522
|
-
`;
|
|
1577
|
+
`;rl.defaultProps={theme:R};const il=({passwordRules:e,textBoxStyle:l,labelStyle:o,inputStyle:i,errMsg:n,required:a,label:c,labelInline:s,isValid:d,rulesStyle:p,id:m,showHideIcon:u,errMsgColor:g,...f})=>{r(!1);const[h,y]=r("password"),x=b()||R;return t.createElement(rl,V({labelInline:s,inBuiltCss:P,errMsgColor:g,theme:x},f),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:o,type:"label-text",text:c,errMsg:n,style:{display:"flex",marginBottom:`${s?0:"8px"}`,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(tl,V({required:a,theme:x,textBoxStyle:l,isValid:d,defaultWrapperStyle:"textbox-wrapper",inBuiltCss:P},f),t.createElement(ll,V({inputStyle:i,type:h,autocomplete:"off",id:m,theme:x,defaultInputStyle:"input-wrapper",inBuiltCss:P},f)),!0===u?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):""))};il.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},il.defaultProps={inBuiltCss:P,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",textBoxStyle:{},labelStyle:{},inputStyle:{},passwordRules:"",rulesStyle:{},id:"",showHideIcon:!0};const nl=m.div`
|
|
1523
1578
|
box-sizing: initial;
|
|
1524
1579
|
|
|
1525
1580
|
//Set the styles from the default styles object
|
|
@@ -1529,7 +1584,7 @@ float: right;
|
|
|
1529
1584
|
|
|
1530
1585
|
// custom styles
|
|
1531
1586
|
${({radioOuterCircleStyle:e})=>e}
|
|
1532
|
-
`;
|
|
1587
|
+
`;nl.defaultProps={theme:R};const al=m.div`
|
|
1533
1588
|
box-sizing: initial;
|
|
1534
1589
|
|
|
1535
1590
|
//Set the styles from the default styles object
|
|
@@ -1541,7 +1596,7 @@ float: right;
|
|
|
1541
1596
|
|
|
1542
1597
|
// custom styles
|
|
1543
1598
|
${({radioInnerCircleStyle:e})=>e}
|
|
1544
|
-
`;
|
|
1599
|
+
`;al.defaultProps={theme:R};const cl=m.div`
|
|
1545
1600
|
//Set the styles from the default styles object
|
|
1546
1601
|
${({inBuiltCss:e,defaultOptionStyle:t})=>T(e,t)}
|
|
1547
1602
|
margin-right: ${({inline:e})=>e?"":"30px"};
|
|
@@ -1549,7 +1604,7 @@ float: right;
|
|
|
1549
1604
|
|
|
1550
1605
|
// custom styles
|
|
1551
1606
|
${({optionStyle:e})=>e}
|
|
1552
|
-
`;
|
|
1607
|
+
`;cl.defaultProps={theme:R};const sl=m.div`
|
|
1553
1608
|
margin-bottom: ${({inline:e})=>e?"":"14px"};
|
|
1554
1609
|
cursor: pointer;
|
|
1555
1610
|
align-items: center;
|
|
@@ -1558,11 +1613,11 @@ float: right;
|
|
|
1558
1613
|
|
|
1559
1614
|
// custom styles
|
|
1560
1615
|
${({WrapperDivStyle:e})=>e}
|
|
1561
|
-
`,
|
|
1616
|
+
`,dl=m.div`
|
|
1562
1617
|
display: ${({inline:e})=>e?"flex":"inline-block"};
|
|
1563
1618
|
width: max-content;
|
|
1564
1619
|
margin: 0;
|
|
1565
|
-
`,
|
|
1620
|
+
`,pl=({radioOuterCircleStyle:e,radioInnerCircleStyle:l,labelStyle:o,label:r,optionStyle:i,options:n,selectedCircleColor:a,selectedOptionTextColor:c,onChange:s,selected:d,width:p,height:m,inline:u,defaultBorderColor:g,defaultOptionColor:f,WrapperDivStyle:h,...y})=>{const x=b()||R;return t.createElement("div",null,t.createElement(lt,{customStyles:o,type:"radio-label",text:r}),t.createElement(dl,{inline:u},n.map(((o,r)=>t.createElement(sl,{WrapperDivStyle:h,key:r+101*Math.random(),id:o.id,inline:u,onClick:()=>{!o?.disabled&&s(o.value)}},t.createElement(nl,{theme:x,inBuiltCss:P,defaultBorderColor:g,selectedCircleColor:a,radioOuterCircleStyle:{...e,cursor:o?.disabled?"not-allowed ":" pointer",borderColor:o?.disabled&&o?.disabledColor},defaultRadioOuterCircleStyle:"radio-outer-circle",value:o.value,selected:!o?.disabled&&d},t.createElement(al,{inBuiltCss:P,theme:x,width:p,height:m,selectedCircleColor:a,radioInnerCircleStyle:{...l,cursor:o?.disabled?"not-allowed ":" pointer",backgroundColor:o?.disabled?"transparent":o?.value===d?l?.backgroundColor:"transparent"},defaultRadioInnerCircleStyle:"radio-inner-circle",value:o.value,selected:d})),t.createElement(cl,{defaultOptionColor:f,optionStyle:{...i,cursor:o?.disabled?"not-allowed ":" pointer",color:o?.disabled&&o?.disabledColor},inBuiltCss:P,defaultOptionStyle:"option-text",selectedOptionTextColor:c,theme:x,selected:!o?.disabled&&o.value===d},o.label))))))};pl.propTypes={label:e.string,labelStyle:e.object,inline:e.bool,options:e.array,optionStyle:e.object,WrapperDivStyle:e.object,selected:e.string,onChange:e.func,defaultOptionColor:e.string,defaultBorderColor:e.string,radioOuterCircleStyle:e.object,radioInnerCircleStyle:e.object,width:e.string,height:e.string,selectedCircleColor:e.string,selectedOptionTextColor:e.string},pl.defaultProps={label:"",labelStyle:{},inline:!1,options:[],optionStyle:{},selected:"one",onChange:()=>{},radioOuterCircleStyle:{},radioInnerCircleStyle:{},width:"14px",height:"14px",WrapperDivStyle:{}};const ml=m.div`
|
|
1566
1621
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1567
1622
|
|
|
1568
1623
|
//Set the styles from the default styles object
|
|
@@ -1583,7 +1638,7 @@ float: right;
|
|
|
1583
1638
|
${({textBoxStyle:e})=>e}
|
|
1584
1639
|
|
|
1585
1640
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor}
|
|
1586
|
-
`,
|
|
1641
|
+
`,bl=m.input`
|
|
1587
1642
|
color: ${({theme:e})=>e.black};
|
|
1588
1643
|
width: 85%;
|
|
1589
1644
|
white-space: nowrap;
|
|
@@ -1599,18 +1654,18 @@ float: right;
|
|
|
1599
1654
|
color: ${R.variant["neutral-3"]};
|
|
1600
1655
|
}
|
|
1601
1656
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor}};
|
|
1602
|
-
`,
|
|
1657
|
+
`,ul=u`
|
|
1603
1658
|
display: flex;
|
|
1604
1659
|
gap: 7px;
|
|
1605
1660
|
align-items: center;
|
|
1606
|
-
`,
|
|
1607
|
-
${({labelInline:e})=>e?
|
|
1661
|
+
`,gl=m.div`
|
|
1662
|
+
${({labelInline:e})=>e?ul:null}
|
|
1608
1663
|
.err-text {
|
|
1609
1664
|
color: ${({errMsgColor:e,theme:t})=>e||t.variant.error};
|
|
1610
1665
|
margin-top: 5px;
|
|
1611
1666
|
font-size: 10px;
|
|
1612
1667
|
}
|
|
1613
|
-
`,
|
|
1668
|
+
`,fl=({textBoxStyle:e,labelStyle:l,inputStyle:o,errMsg:r,required:i,label:n,labelInline:a,iconBefore:c,iconAfter:s,isValid:d,type:p,isDisabled:m,id:u,errMsgColor:g,iconAfterStyle:f,iconBeforeStyle:h,ref:y,pattern:x,iconColorOnFocus:v,...A})=>{const C=b()||R;return t.createElement(gl,V({labelInline:a,theme:C,errMsgColor:g},A),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:l,type:"label-text",labelInline:a,text:n,errMsg:r,style:{display:"flex",marginBottom:`${a?0:"8px"}`,paddingBottom:"0px"}},A)),i&&t.createElement("div",{style:{marginLeft:"4px",color:`${C.variant.error}`}},"*")),t.createElement("div",null,t.createElement(ml,V({required:i,isDisabled:m,theme:C,textBoxStyle:e,isValid:d,inBuiltCss:P,defaultWrapperStyle:"textbox-wrapper",iconColorOnFocus:v},A),t.createElement("div",{className:"input-icon",style:{...h}},c),t.createElement(bl,V({inputStyle:o,type:p,theme:C,id:u,defaultInputStyle:"input-wrapper",isDisabled:m,disabled:m,ref:y,pattern:x},A)),t.createElement("div",{className:"input-icon",style:{...f}},s))),r.length>0&&t.createElement("div",{className:"err-text"},r))};fl.propTypes={inBuiltCss:e.object,label:e.string,required:e.bool,labelInline:e.bool,errMsg:e.string,iconBefore:e.any,iconAfter:e.any,textBoxStyle:e.object,labelStyle:e.object,inputStyle:e.object,type:e.string,isDisabled:e.bool,id:e.string,errMsgColor:e.string,iconAfterStyle:e.object,iconBeforeStyle:e.object,iconColorOnFocus:e.string},fl.defaultProps={inBuiltCss:P,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textBoxStyle:{},labelStyle:{},inputStyle:{},type:"text",isDisabled:!1,id:"",iconAfterStyle:{},iconBeforeStyle:{},iconColorOnFocus:""};const hl=({label:e,placeholder:l,handleSearch:o,searchInput:r,customStylesForm:i,customStyleObject:n,textBoxStyle:a,id:c,...s})=>t.createElement(fl,V({iconAfter:t.createElement(N,{icon:"magnifier-icon"}),label:e,textBoxStyle:a,placeholder:l,ref:r,onChange:o,id:c},s)),yl=m.div`
|
|
1614
1669
|
//Set the styles from the default styles object
|
|
1615
1670
|
${({inBuiltCss:e,defaultParentDivStyle:t})=>T(e,t)}
|
|
1616
1671
|
|
|
@@ -1619,7 +1674,7 @@ float: right;
|
|
|
1619
1674
|
&:focus-within {
|
|
1620
1675
|
border-color: ${({activeColor:e,theme:t})=>e||t.primary["primary-1"]};
|
|
1621
1676
|
}
|
|
1622
|
-
`,
|
|
1677
|
+
`,xl=m.div`
|
|
1623
1678
|
//Set the styles from the default styles object
|
|
1624
1679
|
${({inBuiltCss:e,defaultWrapperDivStyle:t})=>T(e,t)}
|
|
1625
1680
|
|
|
@@ -1631,7 +1686,7 @@ float: right;
|
|
|
1631
1686
|
border-left: ${({signIcon:e})=>e?"":"none"};
|
|
1632
1687
|
margin-left: ${({signIcon:e})=>e?"":"42px"};
|
|
1633
1688
|
position: ${({signIcon:e})=>e?"absolute":""};
|
|
1634
|
-
`,
|
|
1689
|
+
`,vl=m.div`
|
|
1635
1690
|
width: 39px;
|
|
1636
1691
|
height: 44px;
|
|
1637
1692
|
display: flex;
|
|
@@ -1641,7 +1696,7 @@ float: right;
|
|
|
1641
1696
|
border-bottom: ${({penIcon:e,isMyInputFocused:t,activeColor:l,defaultColor:o,theme:r})=>e?t?`1px solid ${l||r.primary["primary-1"]}`:`1px solid ${o||r.neutral["neutral-3"]}`:""};
|
|
1642
1697
|
background-color: rgba(255, 255, 255, 0.05);
|
|
1643
1698
|
cursor: pointer;
|
|
1644
|
-
`,
|
|
1699
|
+
`,Al=m.input`
|
|
1645
1700
|
${({inBuiltCss:e,defaultInputStyle:t})=>T(e,t)}
|
|
1646
1701
|
|
|
1647
1702
|
border-bottom: ${({value:e,defaultColor:t,theme:l})=>e.length>0?"none":t};
|
|
@@ -1666,17 +1721,17 @@ float: right;
|
|
|
1666
1721
|
|
|
1667
1722
|
// custom styles
|
|
1668
1723
|
${({customInputStyle:e})=>e}
|
|
1669
|
-
`,
|
|
1724
|
+
`,Cl=m.div`
|
|
1670
1725
|
position: relative;
|
|
1671
1726
|
width: inherit;
|
|
1672
1727
|
display: flex;
|
|
1673
1728
|
margin: 4px;
|
|
1674
|
-
`,
|
|
1729
|
+
`,wl=m.div`
|
|
1675
1730
|
padding-left: 2px;
|
|
1676
1731
|
display: flex;
|
|
1677
1732
|
justify-content: center;
|
|
1678
1733
|
cursor: pointer;
|
|
1679
|
-
`,
|
|
1734
|
+
`,Sl=({onChange:e,activeColor:l,defaultColor:n,placeholderColor:a,placeholderText:c,customInputStyle:s,pointsArray:d,setPointsArray:p,value:m,setValue:u,valueForSignatureDrawing:g,setValueForSignatureDrawing:f,imageURL:h,setImageURL:y,id:x,...v})=>{const A=b()||R,[C,w]=r("default"),[k,E]=r(!1),[z,V]=r(!1),M=o(null);i((()=>{z&&(I(),f(M.current))}),[!0===z]);const B=()=>{u(""),f(M.current),M.current&&M.current.clear(),E(!1),V(!1)},I=()=>(p(M.current.toData()),y(M.current.toDataURL("image/png")),[h,d]);return t.createElement(yl,{inBuiltCss:P,defaultParentDivStyle:"signature-parent-div",isMyInputFocused:k,selected:C,activeColor:l,defaultColor:n,theme:A},t.createElement(xl,{inBuiltCss:P,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:l,defaultColor:n,selected:C,isMyInputFocused:k,signIcon:!0,theme:A},t.createElement(vl,{activeColor:l,defaultColor:n,isMyInputFocused:k,theme:A,penIcon:!0,onClick:()=>{w("default"),B()}},t.createElement(N,{icon:"pen-icon",color:"default"===C?l||A.primary["primary-1"]:A.black})),t.createElement(vl,{activeColor:l,defaultColor:n,theme:A,isMyInputFocused:k,penIcon:!1,onClick:()=>{w("sign"),B()}},t.createElement(N,{icon:"sign-icon",color:"default"!==C?l||A.primary["primary-1"]:A.black}))),t.createElement(xl,{inBuiltCss:P,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:l,defaultColor:n,theme:A,selected:C,isMyInputFocused:k,signIcon:!1,onTouchStart:()=>{}},"default"===C?t.createElement(Al,{inBuiltCss:P,defaultInputStyle:"signature-input-text",placeholder:c,placeholderColor:a,customInputStyle:s,onBlur:()=>E(!1),onFocus:()=>E(!0),id:x,value:m,defaultColor:n,theme:A,onChange:e=>u(e.target.value)}):t.createElement(Cl,{onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onClick:()=>{V(!0),I()}},t.createElement(S,{ref:M,id:x,redrawOnResize:!0,height:75,options:{minWidth:1,maxWidth:1,penColor:"#444444"}})),(m||z)&&t.createElement(wl,{selected:C,onClick:()=>B()},t.createElement(N,{icon:"cross-icon",color:n||A.neutral["neutral-3"]}))))};Sl.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},Sl.defaultProps={customInputStyle:{},placeholderText:"Type your signature here",pointsArray:null,setPointsArray:()=>{},value:"",setValue:()=>{},imageURL:"",setImageURL:()=>{},setValueForSignatureDrawing:()=>{},id:""};const kl=m.div`
|
|
1680
1735
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1681
1736
|
//Set the styles from the default styles object
|
|
1682
1737
|
${({inBuiltCss:e,defaultWrapperStyle:t})=>T(e,t)}
|
|
@@ -1698,19 +1753,19 @@ float: right;
|
|
|
1698
1753
|
|
|
1699
1754
|
// custom styles
|
|
1700
1755
|
${({textAreaStyle:e})=>e}
|
|
1701
|
-
`,
|
|
1756
|
+
`,El=m.textarea`
|
|
1702
1757
|
//Set the styles from the default styles object
|
|
1703
1758
|
${({inBuiltCss:e,defaultInputStyle:t})=>T(e,t)}
|
|
1704
1759
|
margin: 0;
|
|
1705
1760
|
overflow: auto;
|
|
1706
1761
|
resize: vertical // custom styles
|
|
1707
1762
|
${({inputStyle:e})=>e};
|
|
1708
|
-
`,
|
|
1763
|
+
`,zl=u`
|
|
1709
1764
|
display: flex;
|
|
1710
1765
|
gap: 7px;
|
|
1711
1766
|
align-items: center;
|
|
1712
|
-
`,
|
|
1713
|
-
${({labelInline:e})=>e?
|
|
1767
|
+
`,Vl=m.div`
|
|
1768
|
+
${({labelInline:e})=>e?zl:null}
|
|
1714
1769
|
${({customStylesForm:e})=>{if(e)return{...e}}}
|
|
1715
1770
|
position: relative;
|
|
1716
1771
|
.err-text {
|
|
@@ -1718,7 +1773,7 @@ float: right;
|
|
|
1718
1773
|
margin-top: 5px;
|
|
1719
1774
|
font-size: 10px;
|
|
1720
1775
|
}
|
|
1721
|
-
`,
|
|
1776
|
+
`,Ml=t.forwardRef((({customStylesForm:e,textAreaStyle:l,labelStyle:o,inputStyle:r,errMsg:i,required:n,label:a,labelInline:c,iconBefore:s,iconAfter:d,isValid:p,rows:m,cols:u,id:g,...f},h)=>{const y=b()||R;return t.createElement(Vl,V({labelInline:c,customStylesForm:e,theme:y},f),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:o,type:"label-text",labelInline:c,text:a,errMsg:i,style:{display:"flex",marginBottom:`${c?0:"8px"}`,paddingBottom:"0px"}},f)),n&&t.createElement("div",{style:{marginLeft:"4px",color:`${y.variant.error}`}},"*")),t.createElement(kl,V({theme:y,required:n,textAreaStyle:l,isValid:p,inBuiltCss:P,defaultWrapperStyle:"textbox-wrapper"},f),t.createElement("div",{className:"input-icon"},s),t.createElement(El,V({ref:h,inputStyle:r,defaultInputStyle:"textarea-wrapper",cols:u,rows:m,inBuiltCss:P,id:g},f,{size:"1"})),t.createElement("div",{className:"input-icon"},d)),t.createElement("div",{className:"err-text"},i))}));Ml.propTypes={rows:e.number,label:e.string,required:e.bool,labelInline:e.bool,errMsg:e.string,iconBefore:e.any,iconAfter:e.any,textAreaStyle:e.object,labelStyle:e.object,inputStyle:e.object,id:e.string},Ml.defaultProps={label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textAreaStyle:{},labelStyle:{},inputStyle:{},rows:3,id:""};const Bl=m.div`
|
|
1722
1777
|
color: #a9b1b8;
|
|
1723
1778
|
font-size: 21px;
|
|
1724
1779
|
border: 1px solid
|
|
@@ -1732,7 +1787,7 @@ float: right;
|
|
|
1732
1787
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
1733
1788
|
outline: none;
|
|
1734
1789
|
}
|
|
1735
|
-
`,
|
|
1790
|
+
`,Il=m.input`
|
|
1736
1791
|
border: 0;
|
|
1737
1792
|
outline: 0;
|
|
1738
1793
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
@@ -1742,23 +1797,23 @@ float: right;
|
|
|
1742
1797
|
width: 24px;
|
|
1743
1798
|
text-align:center;
|
|
1744
1799
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1745
|
-
`,
|
|
1800
|
+
`,Wl=u`
|
|
1746
1801
|
&:after {
|
|
1747
1802
|
content: ' *';
|
|
1748
1803
|
color: ${({theme:e})=>e.variant.error};
|
|
1749
1804
|
}
|
|
1750
|
-
`,
|
|
1805
|
+
`,Ll=m.label`
|
|
1751
1806
|
display: block;
|
|
1752
1807
|
margin-bottom: ${({labelInline:e,errMsg:t})=>e&&t?"18px":"8px"};
|
|
1753
1808
|
margin-right: ${({labelInline:e})=>e?"8px":""};
|
|
1754
1809
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
1755
|
-
${({required:e})=>e?
|
|
1810
|
+
${({required:e})=>e?Wl:null}
|
|
1756
1811
|
padding-bottom: 0px;
|
|
1757
|
-
`,
|
|
1812
|
+
`,Rl=u`
|
|
1758
1813
|
display: flex;
|
|
1759
1814
|
align-items: center;
|
|
1760
|
-
`,
|
|
1761
|
-
${({labelInline:e})=>e?
|
|
1815
|
+
`,Pl=m.div`
|
|
1816
|
+
${({labelInline:e})=>e?Rl:null}
|
|
1762
1817
|
.err-text {
|
|
1763
1818
|
color: ${({theme:e})=>e.variant.error};
|
|
1764
1819
|
margin-top: 5px;
|
|
@@ -1768,7 +1823,7 @@ float: right;
|
|
|
1768
1823
|
> div {
|
|
1769
1824
|
flex: 1 0 auto;
|
|
1770
1825
|
}
|
|
1771
|
-
`,
|
|
1826
|
+
`,Tl=m.button`
|
|
1772
1827
|
border: none;
|
|
1773
1828
|
outline: none;
|
|
1774
1829
|
border-radius: 4px;
|
|
@@ -1777,9 +1832,9 @@ float: right;
|
|
|
1777
1832
|
padding: 5px 6px;
|
|
1778
1833
|
font-size: 18px;
|
|
1779
1834
|
cursor: pointer;
|
|
1780
|
-
`,
|
|
1835
|
+
`,Hl=({label:e,errMsg:l,hour:o,minute:r,period:i,onChange:n,id:a,...c})=>{const s=b()||R;return t.createElement(Pl,V({theme:s},c),t.createElement(Ll,V({theme:s},c,{errMsg:l}),e),t.createElement("div",null,t.createElement(Bl,V({theme:s,id:a},c),t.createElement(Il,{theme:s,value:o,onChange:function(e){const t=e.currentTarget.value>12?12:parseFloat(e.currentTarget.value)||0;n({hour:t,minute:r,period:i})}}),":",t.createElement(Il,{theme:s,value:r,onChange:function(e){const t=e.currentTarget.value>59?59:parseFloat(e.currentTarget.value)||0;n({hour:o,minute:t,period:i})}}),t.createElement(Tl,{theme:s,onClick:function(e){n({hour:o,minute:r,period:"AM"===i?"PM":"AM"})}},i)),t.createElement("div",{className:"err-text"},l)))};Hl.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},Hl.defaultProps={label:"",hour:0,minute:0,period:"AM",required:!1,labelInline:!1,isValid:!0,errMsg:"",id:""};const jl=m.div`
|
|
1781
1836
|
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>T(e,t)}
|
|
1782
|
-
`,
|
|
1837
|
+
`,ql=m.label`
|
|
1783
1838
|
|
|
1784
1839
|
left: ${({labelPosition:e})=>"right"===e?"initial":"50px"};
|
|
1785
1840
|
margin-right: ${({labelPosition:e})=>"left"===e?"30px":"0px"};
|
|
@@ -1805,7 +1860,7 @@ float: right;
|
|
|
1805
1860
|
// custom styles
|
|
1806
1861
|
${({customSwitchStyle:e})=>e}
|
|
1807
1862
|
}
|
|
1808
|
-
`,
|
|
1863
|
+
`,Fl=m.input.attrs({type:"checkbox"})`
|
|
1809
1864
|
opacity: 0;
|
|
1810
1865
|
z-index: 1;
|
|
1811
1866
|
border-radius: 31px;
|
|
@@ -1816,7 +1871,7 @@ float: right;
|
|
|
1816
1871
|
left: ${({labelPosition:e})=>"right"===e?"initial":"50px"};
|
|
1817
1872
|
|
|
1818
1873
|
|
|
1819
|
-
`,
|
|
1874
|
+
`,Zl=m.span`
|
|
1820
1875
|
|
|
1821
1876
|
margin-right: ${({labelPosition:e})=>"30px"};
|
|
1822
1877
|
|
|
@@ -1825,34 +1880,34 @@ float: right;
|
|
|
1825
1880
|
|
|
1826
1881
|
// custom styles
|
|
1827
1882
|
${({optionStyle:e})=>e}
|
|
1828
|
-
`,
|
|
1883
|
+
`,Ol=({checked:e,customSwitchStyle:l,customToggleBoxStyle:o,backgroundColor:r,disabledColor:i,switchColor:n,onClick:a,trueLabel:c,falseLabel:s,optionStyle:d,labelPosition:p,id:m,isDisabled:u,...g})=>{const f=b()||R;return t.createElement(jl,V({inBuiltCss:P,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},g),"left"===p&&t.createElement(Zl,V({optionStyle:d,inBuiltCss:P,labelPosition:p,defaultOptionTextStyle:"toggle-switch-option-text"},g),e?c:s),t.createElement(Fl,V({},g,{labelPosition:p,id:m,inBuiltCss:P,defaultCheckBoxStyle:"toggle-switch-checkbox",onClick:()=>{a(!e)},isChecked:e,disabled:u,isDisabled:u})),t.createElement(ql,V({},g,{labelPosition:p,htmlFor:m,customToggleBoxStyle:o,customSwitchStyle:l,disabledColor:i,backgroundColor:r,switchColor:n,inBuiltCss:P,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:f,isDisabled:u})),"right"===p&&t.createElement(Zl,V({optionStyle:d,inBuiltCss:P,labelPosition:p,defaultOptionTextStyle:"toggle-switch-option-text"},g),e?c:s))};Ol.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},Ol.defaultProps={checked:!1,trueLabel:"Yes",falseLabel:"No",customSwitchStyle:{},customToggleBoxStyle:{},id:"",labelPosition:"right",isDisabled:!1};const Gl=m.div`
|
|
1829
1884
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1830
1885
|
padding: 24px 8px;
|
|
1831
1886
|
${({commentBodyStyle:e})=>e};
|
|
1832
|
-
`,
|
|
1887
|
+
`,Dl=m.div`
|
|
1833
1888
|
display: flex;
|
|
1834
1889
|
flex-direction: column;
|
|
1835
1890
|
margin-bottom: 24px;
|
|
1836
1891
|
${({commentWrapperStyle:e})=>e};
|
|
1837
|
-
`,
|
|
1892
|
+
`,Xl=m.div`
|
|
1838
1893
|
display: flex;
|
|
1839
1894
|
flex-direction: row;
|
|
1840
1895
|
width: 100%;
|
|
1841
1896
|
justify-content: flex-start;
|
|
1842
1897
|
align-items: center;
|
|
1843
1898
|
${({commentHeadStyle:e})=>e};
|
|
1844
|
-
`,
|
|
1899
|
+
`,Jl=m.span`
|
|
1845
1900
|
margin-left: 24px;
|
|
1846
1901
|
font-size: 14px;
|
|
1847
1902
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
1848
1903
|
font-weight: 400;
|
|
1849
1904
|
${({dateTimeStyle:e})=>e};
|
|
1850
|
-
`,
|
|
1905
|
+
`,Ul=m.span`
|
|
1851
1906
|
margin: 0.75rem 0 3.5rem;
|
|
1852
1907
|
font-size: 16px;
|
|
1853
1908
|
color: ${R.variant["graph-6"]};
|
|
1854
1909
|
${({commentDivStyle:e})=>e};
|
|
1855
|
-
`,
|
|
1910
|
+
`,Yl=m.div`
|
|
1856
1911
|
display: flex;
|
|
1857
1912
|
justify-content: flex-start;
|
|
1858
1913
|
align-items: start;
|
|
@@ -1861,13 +1916,13 @@ float: right;
|
|
|
1861
1916
|
padding: 16px 24px;
|
|
1862
1917
|
border-radius: 0px 0px 4px 4px;
|
|
1863
1918
|
${({inputWrapperStyle:e})=>e};
|
|
1864
|
-
`,
|
|
1919
|
+
`,Ql=m.div`
|
|
1865
1920
|
display: inline-flex;
|
|
1866
1921
|
margin-top: 16px;
|
|
1867
|
-
`,
|
|
1922
|
+
`,Nl=m.div`
|
|
1868
1923
|
width: 100%;
|
|
1869
1924
|
margin-left: 16px;
|
|
1870
|
-
`,
|
|
1925
|
+
`,Kl=({inputValue:e,setInputValue:l,commentArray:o,commentBodyStyle:i,commentWrapperStyle:n,commentHeadStyle:a,dateTimeStyle:c,commentDivStyle:s,inputWrapperStyle:d,onSave:p,myInfo:m,placeholder:u,...g})=>{const f=b()||R,[h,y]=r(!1);return t.createElement(Gl,{commentBodyStyle:i,theme:f},o.map(((e,l)=>{const{name:o,date:r,comment:i,image:d}=e;return t.createElement(Dl,{key:l,commentWrapperStyle:n},t.createElement(Xl,{commentHeadStyle:a},t.createElement(de,V({user:{fullName:o,userName:o,url:d},toggleName:!0,size:"LG"},g)),t.createElement(Jl,{dateTimeStyle:c,theme:f},r)),t.createElement(Ul,{commentDivStyle:s},i))})),t.createElement(Yl,{theme:f,inputWrapperStyle:d},t.createElement(de,{user:{fullName:m?.fullName,userName:m?.userName,url:m?.url},toggleName:!1,customStylesImage:{height:"36px",width:"36px"},customStylesContainer:{marginTop:"7px"}}),t.createElement(Nl,null,t.createElement(fl,{value:e,onChange:e=>l(e.target.value),placeholder:u,isValid:!0,inputStyle:{height:"23px"},onFocus:e=>y(!0)}),h&&t.createElement(Ql,null,t.createElement(Te,V({size:"sm",onClick:p},g),"Save"),t.createElement(We,{size:"sm",btnStyle:{color:f.variant["neutral-1"]},onClick:e=>y(!1)},"Cancel")))))};Kl.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},Kl.defaultProps={commentBodyStyle:{},commentWrapperStyle:{},commentHeadStyle:{},dateTimeStyle:{},commentDivStyle:{},inputWrapperStyle:{},onSave:()=>{},commentArray:[],inputValue:"",setInputValue:()=>{},myInfo:{},placeholder:""};const $l=m.div`
|
|
1871
1926
|
//Set the styles from the default styles object
|
|
1872
1927
|
${({theme:e,type:t})=>T(e,t)}
|
|
1873
1928
|
@media (max-width: 980px) {
|
|
@@ -1875,7 +1930,7 @@ float: right;
|
|
|
1875
1930
|
}
|
|
1876
1931
|
// custom styles
|
|
1877
1932
|
${({customStyles:e})=>e}
|
|
1878
|
-
`,
|
|
1933
|
+
`,_l=({theme:e,type:l,customStyles:o,...r})=>t.createElement($l,V({theme:e,customStyles:o,type:l},r),r.children);_l.propTypes={theme:e.object,customStyles:e.object,type:e.string},_l.defaultProps={theme:P,customStyles:null,type:"content"};const eo=m.div`
|
|
1879
1934
|
width: 100%;
|
|
1880
1935
|
display: flex;
|
|
1881
1936
|
flex-direction: column;
|
|
@@ -1887,7 +1942,7 @@ float: right;
|
|
|
1887
1942
|
button:focus {
|
|
1888
1943
|
outline: none;
|
|
1889
1944
|
}
|
|
1890
|
-
`,
|
|
1945
|
+
`,to=m.div`
|
|
1891
1946
|
position: relative;
|
|
1892
1947
|
display: flex;
|
|
1893
1948
|
width: 100%;
|
|
@@ -1971,7 +2026,7 @@ float: right;
|
|
|
1971
2026
|
margin-top: 0;
|
|
1972
2027
|
}
|
|
1973
2028
|
}
|
|
1974
|
-
`,
|
|
2029
|
+
`,lo=m.span`
|
|
1975
2030
|
color: #2e56f4;
|
|
1976
2031
|
font-style: normal;
|
|
1977
2032
|
font-weight: normal;
|
|
@@ -1981,14 +2036,14 @@ float: right;
|
|
|
1981
2036
|
margin-top: 37px;
|
|
1982
2037
|
margin-right: 65px;
|
|
1983
2038
|
white-space: nowrap;
|
|
1984
|
-
`,
|
|
2039
|
+
`,oo=m.div`
|
|
1985
2040
|
display: flex;
|
|
1986
2041
|
flex-direction: column;
|
|
1987
2042
|
${""}
|
|
1988
2043
|
max-width: 1340px;
|
|
1989
2044
|
width: 100%;
|
|
1990
2045
|
align-items: center;
|
|
1991
|
-
`,
|
|
2046
|
+
`,ro=m.div`
|
|
1992
2047
|
position: absolute;
|
|
1993
2048
|
font-size: 12px;
|
|
1994
2049
|
border-radius: 50%;
|
|
@@ -2005,23 +2060,23 @@ float: right;
|
|
|
2005
2060
|
transform: translate(30%, -30%);
|
|
2006
2061
|
color: white;
|
|
2007
2062
|
font-weight: 600;
|
|
2008
|
-
`,
|
|
2063
|
+
`,io=m.div`
|
|
2009
2064
|
width: 90%;
|
|
2010
|
-
`,
|
|
2065
|
+
`,no=m.div`
|
|
2011
2066
|
background: linear-gradient(
|
|
2012
2067
|
0deg,
|
|
2013
2068
|
hsla(0, 0%, 100%, 1) 20%,
|
|
2014
2069
|
hsla(0, 0%, 100%, 0.5) 100%
|
|
2015
2070
|
);
|
|
2016
2071
|
width: 90%;
|
|
2017
|
-
`,
|
|
2072
|
+
`,ao=m.div`
|
|
2018
2073
|
width: 90%;
|
|
2019
|
-
`,
|
|
2074
|
+
`,co=m.div`
|
|
2020
2075
|
display: flex;
|
|
2021
2076
|
margin-left: auto !important;
|
|
2022
2077
|
margin-right: auto !important;
|
|
2023
2078
|
cursor: pointer;
|
|
2024
|
-
`,
|
|
2079
|
+
`,so=m.div`
|
|
2025
2080
|
display: flex;
|
|
2026
2081
|
flex-direction: column;
|
|
2027
2082
|
width: 180px;
|
|
@@ -2030,10 +2085,10 @@ float: right;
|
|
|
2030
2085
|
border-radius: 6px;
|
|
2031
2086
|
margin-right: 0.5rem;
|
|
2032
2087
|
z-index: 999;
|
|
2033
|
-
`,
|
|
2088
|
+
`,po=m.div`
|
|
2034
2089
|
margin: 10.5px 13px;
|
|
2035
2090
|
padding: 0;
|
|
2036
|
-
`,
|
|
2091
|
+
`,mo=m.div`
|
|
2037
2092
|
color: #081348;
|
|
2038
2093
|
padding: 7.7px 6.5px 7.7px 24px;
|
|
2039
2094
|
margin: 2.5px 13px;
|
|
@@ -2051,7 +2106,7 @@ float: right;
|
|
|
2051
2106
|
background: #eaeefe;
|
|
2052
2107
|
border-radius: 5px;
|
|
2053
2108
|
}
|
|
2054
|
-
`,
|
|
2109
|
+
`,bo=m.div`
|
|
2055
2110
|
position: relative;
|
|
2056
2111
|
display: flex;
|
|
2057
2112
|
width: 100%;
|
|
@@ -2135,41 +2190,41 @@ float: right;
|
|
|
2135
2190
|
margin-top: 0;
|
|
2136
2191
|
}
|
|
2137
2192
|
}
|
|
2138
|
-
`,
|
|
2193
|
+
`,uo=m.div`
|
|
2139
2194
|
display: flex;
|
|
2140
2195
|
justify-content: end;
|
|
2141
|
-
`,
|
|
2196
|
+
`,go=m.div`
|
|
2142
2197
|
display: flex;
|
|
2143
2198
|
justify-content: center;
|
|
2144
2199
|
flex-direction: row;
|
|
2145
2200
|
align-items: flex-start;
|
|
2146
2201
|
gap: 20px;
|
|
2147
|
-
`,
|
|
2202
|
+
`,fo=m.div`
|
|
2148
2203
|
width: 48;
|
|
2149
2204
|
max-width: 48%;
|
|
2150
2205
|
min-width: 48%;
|
|
2151
2206
|
|
|
2152
|
-
`,
|
|
2207
|
+
`,ho=m.form`
|
|
2153
2208
|
width: 40vw;
|
|
2154
2209
|
display: flex;
|
|
2155
2210
|
justify-content: center;
|
|
2156
2211
|
flex-direction: column;
|
|
2157
2212
|
gap: 20px;
|
|
2158
2213
|
${({customStyles:e})=>e}
|
|
2159
|
-
`,
|
|
2214
|
+
`,yo=({customStyles:e,children:l})=>t.createElement(ho,{customStyles:e},l),xo=m.div`
|
|
2160
2215
|
display: ${({vertical:e})=>e?"inline-block":"block"};
|
|
2161
2216
|
background: ${({theme:e,borderColor:t})=>t||e.neutral["neutral-5"]};
|
|
2162
2217
|
content: '';
|
|
2163
2218
|
height: ${({vertical:e,thickness:t,height:l})=>e?l:t};
|
|
2164
2219
|
width: ${({vertical:e,thickness:t})=>e?t:null};
|
|
2165
|
-
`,
|
|
2220
|
+
`,vo=({vertical:e,borderColor:l,thickness:o,height:r,...i})=>{const n=b()||R;return t.createElement(xo,V({theme:n,borderColor:l,thickness:o,vertical:e,height:r},i))};vo.propTypes={thickness:e.string,borderColor:e.string,vertical:e.bool,height:e.string},vo.defaultProps={thickness:"2px",vertical:!1,height:"10px"};const Ao=m.div`
|
|
2166
2221
|
//Set the styles from the default styles object
|
|
2167
2222
|
${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t in e.common)r[t]=e.common[t];for(const l in e[t])delete e.common[l],r[l]=e[t][l];r=l?{...r,...e["drawer-open"]}:{...r,...e["drawer-close"]}}return{...r,...o}}}}
|
|
2168
|
-
`,
|
|
2223
|
+
`,Co=({customStyles:e,drawerOpen:l,setDrawerOpen:r,children:n,...a})=>{const c=o(null);var s;return i((()=>{function e(e){s.current&&!s.current.contains(e.target)&&r(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[s=c]),t.createElement("div",{ref:c},t.createElement(Ao,V({inBuiltCss:P,customStyles:e,type:"drawer",drawerOpen:l},a),n))};Co.propTypes={customStyles:e.object,drawerOpen:e.bool,setDrawerOpen:e.func},Co.defaultProps={setDrawerOpen:()=>null};class wo 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(Te,{onClick:()=>this.refreshPage()},"Click to refresh")):this.props.children}}wo.propTypes={children:e.any};const So=u`
|
|
2169
2224
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
2170
2225
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
2171
2226
|
background: ${({theme:e})=>H(e.primary["primary-1"],.04)};
|
|
2172
|
-
`,
|
|
2227
|
+
`,ko=m.button`
|
|
2173
2228
|
font-size: 14px;
|
|
2174
2229
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
2175
2230
|
background: ${({theme:e})=>H(e.variant["neutral-5"],.7)};
|
|
@@ -2179,19 +2234,19 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:o})=>{if(e){let r={};if(e[t]){
|
|
|
2179
2234
|
outline: none;
|
|
2180
2235
|
cursor: ${({disabled:e})=>e?"default":"pointer"};
|
|
2181
2236
|
|
|
2182
|
-
${({selected:e})=>e?
|
|
2237
|
+
${({selected:e})=>e?So:null}
|
|
2183
2238
|
${({customStyles:e})=>e}
|
|
2184
2239
|
|
|
2185
2240
|
|
|
2186
2241
|
&:not(:first-child) {
|
|
2187
2242
|
margin-left: 8px;
|
|
2188
2243
|
}
|
|
2189
|
-
`,
|
|
2244
|
+
`,Eo=({options:e,selected:l,onClick:o,customStyles:r,disabled:i,...n})=>{const a=b()||R,c=e.map(((e,n)=>t.createElement(ko,{theme:a,key:`${e.label}_${n}_${e.value}`,selected:l===e.value,onClick:()=>{o(e.value)},customStyles:r,disabled:i},e.label)));return t.createElement(t.Fragment,null,c)};Eo.propTypes={options:e.array,selected:e.string,onClick:e.func,customStyles:e.object,disabled:e.bool},Eo.defaultProps={options:[],selected:"",customStyles:{},disabled:!1};const zo=m.footer`
|
|
2190
2245
|
//Set the styles from the default styles object
|
|
2191
2246
|
${({theme:e,type:t})=>T(e,t)}
|
|
2192
2247
|
// custom styles
|
|
2193
2248
|
${({customStyles:e})=>e}
|
|
2194
|
-
`,
|
|
2249
|
+
`,Vo=l((({theme:e,customStyles:l,...o},r)=>t.createElement(zo,V({ref:r,theme:e,type:"footer",customStyles:l},o),o.children)));Vo.propTypes={theme:e.object,customStyles:e.object,type:e.string},zo.defaultProps={theme:e.object},Vo.defaultProps={theme:P,customStyles:null};const Mo=m.div`
|
|
2195
2250
|
font-size: 14px;
|
|
2196
2251
|
background-color: transparent;
|
|
2197
2252
|
display: flex;
|
|
@@ -2209,7 +2264,7 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:o})=>{if(e){let r={};if(e[t]){
|
|
|
2209
2264
|
${({footerWidth:e})=>{if(e<650)return u`
|
|
2210
2265
|
flex-direction: column;
|
|
2211
2266
|
`}}
|
|
2212
|
-
`,
|
|
2267
|
+
`,Bo=m.div`
|
|
2213
2268
|
display: flex;
|
|
2214
2269
|
${({footerWidth:e})=>{if(e<650)return u`
|
|
2215
2270
|
margin-bottom: 5px;
|
|
@@ -2219,18 +2274,18 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:o})=>{if(e){let r={};if(e[t]){
|
|
|
2219
2274
|
align-items: center;
|
|
2220
2275
|
margin-bottom: 0;
|
|
2221
2276
|
`}}
|
|
2222
|
-
`,
|
|
2277
|
+
`,Io=m.div`
|
|
2223
2278
|
margin-top: inherit;
|
|
2224
2279
|
margin-bottom: inherit;
|
|
2225
2280
|
${({footerWidth:e})=>{if(e<350)return u`
|
|
2226
2281
|
margin-bottom: 5px;
|
|
2227
2282
|
`}}
|
|
2228
|
-
`,
|
|
2283
|
+
`,Wo=m.div`
|
|
2229
2284
|
margin: 0 10px;
|
|
2230
2285
|
${({footerWidth:e})=>{if(e<350)return u`
|
|
2231
2286
|
display: none;
|
|
2232
2287
|
`}}
|
|
2233
|
-
`,
|
|
2288
|
+
`,Lo=({variant:e,textColor:l,size:o,width:r,footerWidth:i,customStyles:n,...a})=>{const c=(new Date).getFullYear();return t.createElement(Mo,V({variant:e,textColor:l,footerWidth:i,customStyles:n},a),t.createElement(Bo,{footerWidth:i},t.createElement(Io,{footerWidth:i},"Premise HQ"),t.createElement(Wo,{footerWidth:i},"|"),t.createElement(Io,{footerWidth:i},"All Rights Restricted ",c," ©")),t.createElement(Bo,{footerWidth:i},t.createElement(Io,{footerWidth:i},"Terms of use"),t.createElement(Wo,{footerWidth:i},"|"),t.createElement(Io,{footerWidth:i},"Privacy Policy")))},Ro=m.header`
|
|
2234
2289
|
|
|
2235
2290
|
background-color: ${({theme:e})=>e.bgColor};
|
|
2236
2291
|
border-bottom: 0.5px solid ${({theme:e})=>e.variant["neutral-3"]};
|
|
@@ -2238,7 +2293,7 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:o})=>{if(e){let r={};if(e[t]){
|
|
|
2238
2293
|
${({inBuiltCss:e,type:t})=>T(e,t)}
|
|
2239
2294
|
// custom styles
|
|
2240
2295
|
${({customStyles:e})=>e}
|
|
2241
|
-
`,
|
|
2296
|
+
`,Po=({type:e,customStyles:l,...o})=>{const r=b()||R;return t.createElement(Ro,V({theme:r,type:"header",customStyles:l,inBuiltCss:P},o),o.children)};Po.propTypes={customStyles:e.object,type:e.string},Po.defaultProps={type:"header",customStyles:null};const To=m.div`
|
|
2242
2297
|
box-sizing: border-box;
|
|
2243
2298
|
display: flex;
|
|
2244
2299
|
justify-content: center;
|
|
@@ -2246,8 +2301,8 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:o})=>{if(e){let r={};if(e[t]){
|
|
|
2246
2301
|
width: auto;
|
|
2247
2302
|
|
|
2248
2303
|
${({size:e})=>u`height: ${e}px;`}
|
|
2249
|
-
`,
|
|
2250
|
-
`,
|
|
2304
|
+
`,Ho=m.div`
|
|
2305
|
+
`,jo=m.div`
|
|
2251
2306
|
box-sizing: border-box;
|
|
2252
2307
|
display: flex;
|
|
2253
2308
|
justify-content: center;
|
|
@@ -2276,11 +2331,11 @@ svg {
|
|
|
2276
2331
|
`}
|
|
2277
2332
|
}
|
|
2278
2333
|
}
|
|
2279
|
-
`,
|
|
2334
|
+
`,qo=({theme:e,toggleSet:l,slide:o,color:r,size:i,transform:n,ratingValue:a,starVal:c,hover:s,...d})=>t.createElement(jo,V({theme:e,ratingValue:a,starVal:c,hover:s,toggleSet:l,color:r,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:o,y:"0",fill:r,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function Fo(e,t){let l=5*e/t;const o=[],r=l;for(let e=0;e<5;e++){if(l-1>=0)o.push("0");else if(l-1<0&&l-1>-1){const e=(24*l-24).toString();o.push(e)}else o.push("-24");l-=1}return{array:o,value:r}}function Zo(e,t){return 100*e/t}const Oo=({type:e,customStylesContainer:l,customStylesStar:o,customStylesPercentage:n,color:a,size:c,handleClick:s,transform:d,maxRange:p,value:m,toggleStar:u,toggleSet:g,identifier:f,...h})=>{b();const[y,x]=r(void 0),[v,A]=r(void 0),[C,w]=r(void 0),[S,k]=r(void 0);i((()=>{x(Fo(m,p).array),A(Fo(m,p).value),w(Zo(m,p))}),[m,p]),i((()=>{S?x(Fo(S,p).array):(x(Fo(m,p).array),A(Fo(m,p).value),w(Zo(m,p)))}),[S]);const E=t.createElement(t.Fragment,null,y?.map(((e,l)=>{const r=20*(l+1);return t.createElement(qo,{ratingValue:r,starVal:v,hover:S,toggleSet:g,onClick:g?()=>s(r):null,onMouseEnter:g?()=>{k(r)}:null,onMouseLeave:g?()=>{k(null)}:null,slide:e,color:a,className:"star",size:c,transform:d,key:f?.concat(l),customStyles:o})})));return t.createElement(To,V({customStyles:l,type:e,size:c},h,{className:"container"}),u?E:t.createElement(Ho,{type:e,customStyles:n},C,"%"))};Oo.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},Oo.defaultProps={customStylesContainer:null,customStylesStar:null,customStylesPercentage:null,type:"star",maxRange:100,value:0,identifier:"ratingKey",toggleStar:!0,toggleSet:!1,color:"#F7B001"};const Go=m.div`
|
|
2280
2335
|
.form-check-input {
|
|
2281
2336
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2282
2337
|
}
|
|
2283
|
-
`,
|
|
2338
|
+
`,Do=({customStyles:e,inBuiltCss:l,type:o="table",sortIcon:r,data:i,tableColumns:n,progressPending:a,defaultSortFieldId:c,handleOnSort:s,sortServer:d,progressComponent:p,responsive:m,conditionalRowStyles:u,fixedHeader:g,fixedHeaderScrollHeight:f,checkboxColor:h,...y})=>{let x={};if(l&&l[o]&&(x=l[o]),e)for(const t in e)x[t]=e[t];const v=b()||R,A=t.forwardRef((({onClick:e,...l},o)=>t.createElement(Go,{theme:v},t.createElement("input",V({type:"checkbox",className:"form-check-input",ref:o,onClick:e},l)))));return t.createElement(k,V({responsive:m,data:i,columns:n,noHeader:!0,highlightOnHover:!0,sortIcon:r,progressPending:a,customStyles:x,defaultSortFieldId:c,progressComponent:p||void 0,sortServer:d,onSort:(e,t,l)=>{s(e,t,l)},conditionalRowStyles:u,fixedHeader:g,fixedHeaderScrollHeight:f,selectableRowsComponent:A},y))};Do.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},Do.defaultProps={inBuiltCss:P,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,l)=>{},sortServer:null,progressComponent:void 0,responsive:!0,fixedHeader:!0,fixedHeaderScrollHeight:"100vh"};const Xo=({title:e,subtitle:l,wrapperStyle:o,imgLink:r,imgStyle:i,iconSize:n})=>{const a=b()||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:o},t.createElement("div",{style:c},r?t.createElement("img",{src:r,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,l)))};Xo.propTypes={size:e.number},Xo.defaultProps={iconSize:23};const Jo=({formData:e,customStyles:l,...o})=>{const r=e=>{switch(e.type){case"header":return(e=>t.createElement(c,null,t.createElement(Po,V({},e,o),e.children),e))(e);case"label":return(e=>t.createElement(lt,V({style:{marginBottom:"8px",paddingBottom:"0"}},e,o)))(e);case"text":return(e=>t.createElement(fl,V({},e,o)))(e);case"textArea":return(e=>t.createElement(Ml,V({},e,o)))(e);case"number":return(e=>t.createElement(el,V({},e,o)))(e);case"radio":return(e=>t.createElement(pl,V({key:101*Math.random()|0},e,o)))(e);case"checkBox":return(e=>t.createElement(ct,V({},e,o)))(e);case"singleSelect":return(e=>t.createElement(Lt,V({dropdownType:"singleSelect"},e,o)))(e);case"multiSelect":return(e=>t.createElement(Lt,V({dropdownType:"multiSelect"},e,o)))(e);case"asyncSingleSelect":return(e=>t.createElement(Lt,V({dropdownType:"asyncSingleSelect"},e,o)))(e);case"asyncMultiSelect":return(e=>t.createElement(Lt,V({dropdownType:"asyncMultiSelect"},e,o)))(e);case"signature":return(e=>t.createElement(Sl,V({},e,o)))(e);case"fileUpload":return(e=>t.createElement(Gt,V({},e,o)))(e);case"date":return(e=>t.createElement(vt,V({},e,o)))(e);case"toggle":return(e=>t.createElement(Ol,V({},e,o)))(e);case"rating":return(e=>t.createElement(Oo,V({},e,o)))(e);case"buttonPrimary":return(e=>t.createElement(Te,V({},e,o)))(e);case"buttonSecondary":return(e=>t.createElement(qe,V({},e,o)))(e);case"buttonTiny":return(e=>t.createElement(Ze,V({},e,o)))(e);case"search":return(e=>t.createElement(hl,V({},e,o)))(e);case"table":return(e=>t.createElement(Do,V({},e,o)))(e);case"passwordInput":return(e=>t.createElement(il,V({},e,o)))(e);case"headerComponent":return(e=>t.createElement(Xo,V({},e,o)))(e)}};return t.createElement(c,null,t.createElement(bo,{defaultThemeColor:R},t.createElement(yo,{onSubmit:()=>{},customStyles:l},e.map(((e,l)=>e.length>1?t.createElement(go,null,e.map(((l,o)=>t.createElement(fo,{cols:e.length},r(l))))):r(e[0]))))))},Uo=({formData:e,onSubmit:l,onReset:o,style:r,...i})=>{const n=e=>{switch(e.type){case"submit":return(e=>t.createElement(Te,{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(qe,{block:e.block,disabled:i.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return t.createElement(c,null,t.createElement(uo,{style:r},e&&e.map(((e,t)=>e.map(((e,t)=>n(e)))))))};const Yo=f`
|
|
2284
2339
|
@font-face {
|
|
2285
2340
|
font-family: "Averta";
|
|
2286
2341
|
font-weight: 100;
|
|
@@ -2388,7 +2443,7 @@ svg {
|
|
|
2388
2443
|
* {
|
|
2389
2444
|
font-family: "Averta";
|
|
2390
2445
|
}
|
|
2391
|
-
`,
|
|
2446
|
+
`,Qo=m.span`
|
|
2392
2447
|
background: transparent;
|
|
2393
2448
|
position: relative;
|
|
2394
2449
|
display: flex;
|
|
@@ -2397,12 +2452,12 @@ svg {
|
|
|
2397
2452
|
&>span:not(:first-of-type){
|
|
2398
2453
|
margin-left: -13px;
|
|
2399
2454
|
}
|
|
2400
|
-
`,
|
|
2455
|
+
`,No=m.p`
|
|
2401
2456
|
color: ${({theme:e,variantQty:t})=>e.variant[t]};
|
|
2402
2457
|
margin: 0;
|
|
2403
2458
|
margin-left: 7px;
|
|
2404
2459
|
font-size: 16px;
|
|
2405
|
-
`,
|
|
2460
|
+
`,Ko=({items:e,block:l,size:o,variantCircle:r,variantName:i,variantQty:n,flagName:a,user:c,colorCircle:s,colorBorderCircle:d,...p})=>{const m=b()||R;return t.createElement(Qo,V({block:l},p),e?.map(((l,n)=>{let a={},c={};return a.backgroundColor=s?`${m.variant[s]}`:`${m.variant[r]}`,0!==n&&(a.border=d?`2px solid ${d}`:`2px solid ${m.variant[r]}`,c.border=d?`2px solid ${d}`:`2px solid ${m.variant[r]}`),1===e.length?t.createElement(de,{key:l.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${m.variant[{variantName:i}]}`},size:o,toggleName:!0,user:l,customStylesCircle:a,customStylesImage:c}):n<=3?t.createElement(de,{key:l.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${m.variant[{variantName:i}]}`},size:o,toggleName:!1,user:l,customStylesCircle:a,customStylesImage:c}):null})),e.length-4>0?t.createElement(No,{theme:m,variantQty:n},"+",e.length-4):null)};Ko.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},Ko.defaultProps={variantCircle:"primary-1",variantName:"primary-2",block:!1,size:"MD",flagName:!1,user:{userName:"1"},colorCircle:null,colorBorderCircle:"#FFFFFF",variantQty:"primary-1"};const $o=m.div`
|
|
2406
2461
|
max-width: inherit;
|
|
2407
2462
|
width: inherit;
|
|
2408
2463
|
font-size: 14px;
|
|
@@ -2428,7 +2483,7 @@ svg {
|
|
|
2428
2483
|
&[data-popper-placement*='top'] .tooltip-arrow::after {
|
|
2429
2484
|
border-color: ${({theme:e,variantTPbg:t})=>t?e.variant[t]:"#6b747f"} transparent transparent transparent;
|
|
2430
2485
|
}
|
|
2431
|
-
`,
|
|
2486
|
+
`,_o=m.div`
|
|
2432
2487
|
display: flex;
|
|
2433
2488
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2434
2489
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
@@ -2443,24 +2498,24 @@ svg {
|
|
|
2443
2498
|
svg path {
|
|
2444
2499
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2445
2500
|
}
|
|
2446
|
-
|
|
2501
|
+
`,er=m.div`
|
|
2447
2502
|
display: flex;
|
|
2448
2503
|
justify-content: space-evenly;
|
|
2449
2504
|
flex-grow: 1;
|
|
2450
2505
|
align-items: stretch;
|
|
2451
|
-
`,
|
|
2506
|
+
`,tr=({label:e,index:l,style:o,items:r,variant:i,borderVariant:n,bgVariant:a,variantDisable:c,variantBgDisable:s,disabled:d,divider:p,indexPrefix:m,onClick:u,icon:g,variantTPtext:f,variantTPbg:h,...x})=>{b();const{getArrowProps:v,getTooltipProps:A,setTooltipRef:C,setTriggerRef:w,visible:S}=y();return t.createElement(t.Fragment,null,t.createElement(er,{ref:w},t.createElement(_o,{variant:i,borderVariant:n,bgVariant:a,variantDisable:c,variantBgDisable:s,disabled:d,onClick:d?null:()=>{u(u)}},g),p),S&&t.createElement($o,V({variantTPtext:f,variantTPbg:h,ref:C},A({className:"tooltip-container"})),e,t.createElement("div",v({className:"tooltip-arrow"}))))};tr.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},er.defaultProps={theme:R},_o.defaultProps={theme:R},$o.defaultProps={theme:R},tr.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor",variantTPtext:null,variantTPbg:null};const lr=m.div`
|
|
2452
2507
|
display: flex;
|
|
2453
2508
|
justify-content: space-evenly;
|
|
2454
2509
|
align-items: stretch;
|
|
2455
2510
|
height: 42px;
|
|
2456
2511
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
2457
2512
|
border-radius: 3px;
|
|
2458
|
-
`,
|
|
2513
|
+
`,or=m.div`
|
|
2459
2514
|
display: flex;
|
|
2460
2515
|
justify-content: space-evenly;
|
|
2461
2516
|
flex-grow: 1;
|
|
2462
2517
|
align-items: stretch;
|
|
2463
|
-
`,
|
|
2518
|
+
`,rr=m.div`
|
|
2464
2519
|
display: flex;
|
|
2465
2520
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2466
2521
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
@@ -2475,19 +2530,19 @@ svg {
|
|
|
2475
2530
|
svg path {
|
|
2476
2531
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2477
2532
|
}
|
|
2478
|
-
`,
|
|
2533
|
+
`,ir=({style:e,items:l,variant:o,borderVariant:r,bgVariant:i,variantDisable:n,variantBgDisable:a,allDisabled:c,divider:s,indexPrefix:d,onClick:p,...m})=>(b(),t.createElement(lr,V({variant:o,borderVariant:r},m),l?.map(((e,m)=>t.createElement(or,{key:d.concat(m)},t.createElement(rr,{variant:o,borderVariant:r,bgVariant:i,variantDisable:n,variantBgDisable:a,title:e.label,disabled:c||e.disabled,onClick:c||e.disabled?null:()=>p(e.label)},e.icon),l?.length-1!==m&&s)))));ir.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},lr.defaultProps={theme:R},or.defaultProps={theme:R},rr.defaultProps={theme:R},ir.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor"};const nr=m.div`
|
|
2479
2534
|
display: flex;
|
|
2480
2535
|
justify-content: space-evenly;
|
|
2481
2536
|
align-items: stretch;
|
|
2482
2537
|
height: 42px;
|
|
2483
2538
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
2484
2539
|
border-radius: 3px;
|
|
2485
|
-
`,
|
|
2540
|
+
`,ar=m.div`
|
|
2486
2541
|
display: flex;
|
|
2487
2542
|
justify-content: space-evenly;
|
|
2488
2543
|
flex-grow: 1;
|
|
2489
2544
|
align-items: stretch;
|
|
2490
|
-
`,
|
|
2545
|
+
`,cr=m.div`
|
|
2491
2546
|
display: flex;
|
|
2492
2547
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2493
2548
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
@@ -2502,28 +2557,28 @@ svg {
|
|
|
2502
2557
|
svg path {
|
|
2503
2558
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2504
2559
|
}
|
|
2505
|
-
`,
|
|
2560
|
+
`,sr=({style:e,items:l,variant:o,borderVariant:r,bgVariant:i,variantDisable:n,variantBgDisable:a,allDisabled:c,divider:s,indexPrefix:d,onClick:p,variantTPtext:m,variantTPbg:u,...g})=>(b(),t.createElement(nr,V({variant:o,borderVariant:r},g),l?.map(((e,b)=>t.createElement(tr,{key:d.concat(b),variant:o,borderVariant:r,bgVariant:i,variantDisable:n,variantBgDisable:a,disabled:c||e.disabled,onClick:c||e.disabled?null:()=>{p(e.label)},divider:l?.length-1!==b&&s,icon:e.icon,index:b,label:e.label,variantTPtext:m,variantTPbg:u})))));sr.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},nr.defaultProps={theme:R},ar.defaultProps={theme:R},cr.defaultProps={theme:R},sr.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor",variantTPtext:null,variantTPbg:null};const dr=m.div`
|
|
2506
2561
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
2507
2562
|
border: 1.3px solid ${({theme:e,variant:t,borderColor:l})=>l||e.variant[t]};
|
|
2508
2563
|
border-radius: 50%;
|
|
2509
2564
|
width: ${({size:e})=>e}px;
|
|
2510
2565
|
height: ${({size:e})=>e}px;
|
|
2511
2566
|
box-sizing: border-box;
|
|
2512
|
-
`,
|
|
2567
|
+
`,pr=({variant:e,bgColor:l,borderColor:o,...r})=>(b(),t.createElement(dr,V({variant:e,borderColor:o,bgColor:l},r)));pr.propTypes={variant:e.string,size:e.number,theme:e.object,borderColor:e.string,bgColor:e.string},dr.defaultProps={theme:R},pr.defaultProps={theme:R,variant:"primary-1",size:11};const mr=m.div`
|
|
2513
2568
|
display: inline-flex;
|
|
2514
2569
|
align-items: center;
|
|
2515
2570
|
background-color: transparent;
|
|
2516
2571
|
min-height: 24px;
|
|
2517
|
-
`,
|
|
2572
|
+
`,br=m.div`
|
|
2518
2573
|
display: flex;
|
|
2519
2574
|
justify-content: space-evenly;
|
|
2520
2575
|
width: 69px;
|
|
2521
|
-
`,
|
|
2576
|
+
`,ur=m.p`
|
|
2522
2577
|
display: flex;
|
|
2523
2578
|
color: ${({theme:e,variantText:t,colorText:l})=>l||e.variant[t]};
|
|
2524
2579
|
font-size: 16px;
|
|
2525
2580
|
margin: 0 5px;
|
|
2526
|
-
`,
|
|
2581
|
+
`,gr=({style:e,variantCircle:l,variantText:o,level:r,textArray:i,colorArray:n,indexPrefix:a,colorText:c,...s})=>(b(),t.createElement(mr,s,t.createElement(br,null,[1,2,3,4].map(((e,o)=>{let i="#D4D7E3",c=null,s=null;return r<=0&&(r=0),r>=4&&(r=4),n?r>=e?(c=n[r],i=n[r]):c=n[0]:r>=e?(s=l,i=l):s="#FFFFFF",t.createElement(pr,{key:a.concat(o),variant:s,borderColor:i,bgColor:c,size:11})}))),i&&t.createElement(ur,{variantText:o,colorText:c},i[r])));gr.propTypes={variantCircle:e.string,variantText:e.string,level:e.number,indexPrefix:e.string,theme:e.object,block:e.bool,textArray:e.array,colorArray:e.array,colorText:e.string},ur.defaultProps={theme:R},gr.defaultProps={theme:R,variantCircle:"primary-1",variantText:"primary-2",block:!1,level:0,indexPrefix:"circle-group"};const fr={xsm:{fontSize:"12px"},sm:{fontSize:"14px"},md:{fontSize:"16px"},lg:{fontSize:"18px"}},hr=m.button`
|
|
2527
2582
|
${({underlined:e})=>e?null:u`&:hover {text-decoration: underline}`};
|
|
2528
2583
|
background: transparent;
|
|
2529
2584
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
@@ -2534,7 +2589,7 @@ svg {
|
|
|
2534
2589
|
justify-content: start;
|
|
2535
2590
|
border: none;
|
|
2536
2591
|
cursor: pointer;
|
|
2537
|
-
font-size: ${({size:e})=>
|
|
2592
|
+
font-size: ${({size:e})=>fr[e].fontSize};
|
|
2538
2593
|
|
|
2539
2594
|
&:disabled {
|
|
2540
2595
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
@@ -2544,7 +2599,7 @@ svg {
|
|
|
2544
2599
|
* {
|
|
2545
2600
|
outline: none;
|
|
2546
2601
|
}
|
|
2547
|
-
`,
|
|
2602
|
+
`,yr=({block:e,size:l,style:o,variant:r,disabled:i,underlined:n,...a})=>(b(),t.createElement(hr,V({block:e,variant:r,type:"button",style:o,size:l,disabled:i,underlined:n},a),a.children));yr.propTypes={variant:e.string,disabled:e.bool,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,onClick:e.func,theme:e.object,underlined:e.bool},hr.defaultProps={theme:R},yr.defaultProps={theme:R,variant:"primary-1",block:!1,disabled:!1,size:"sm",onClick:void 0,label:"Remove",underlined:!1};const xr=m.div`
|
|
2548
2603
|
display: flex;
|
|
2549
2604
|
justify-content: space-between;
|
|
2550
2605
|
align-items: start;
|
|
@@ -2555,33 +2610,33 @@ svg {
|
|
|
2555
2610
|
z-index: 100;
|
|
2556
2611
|
// custom styles
|
|
2557
2612
|
${({customModalHeaderStyle:e})=>e}
|
|
2558
|
-
`,
|
|
2613
|
+
`,vr=m.div`
|
|
2559
2614
|
//Set the styles from the default styles object
|
|
2560
2615
|
${({inBuiltCss:e,type:t})=>T(e,t)}
|
|
2561
2616
|
// custom styles
|
|
2562
2617
|
${({customModalBodyStyle:e})=>e}
|
|
2563
|
-
`,
|
|
2618
|
+
`,Ar=m.div`
|
|
2564
2619
|
max-height: 60vh;
|
|
2565
2620
|
padding: 0 24px 24px 24px;
|
|
2566
2621
|
overflow-y: auto;
|
|
2567
2622
|
${({contentWrapperStyle:e})=>e}
|
|
2568
|
-
`,
|
|
2623
|
+
`,Cr=m.div`
|
|
2569
2624
|
padding-top: 16px;
|
|
2570
2625
|
|
|
2571
2626
|
//Set the styles from the default styles object
|
|
2572
2627
|
${({inBuiltCss:e,type:t})=>T(e,t)}
|
|
2573
2628
|
// custom styles
|
|
2574
2629
|
${({customModalFooterStyle:e})=>e}
|
|
2575
|
-
`,
|
|
2630
|
+
`,wr=m.div`
|
|
2576
2631
|
cursor: pointer;
|
|
2577
|
-
`;try{
|
|
2632
|
+
`;try{E.setAppElement("#root")}catch(e){E.setAppElement("#__next")}const Sr=({modalIsOpen:e,toggleModal:l,closeOnOutsideClick:o,headerContent:r,bodyContent:i,footerContent:n,customModalHeaderStyle:a,customModalBodyStyle:c,customModalFooterStyle:s,customWidth:d,customMinWidth:p,customMaxWidth:m,contentStyle:u,contentWrapperStyle:g,customZIndex:f,...h})=>{const y={overlay:{zIndex:f,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",transform:"translate(-50%, -50%)",minWidth:p,overflow:"hidden",border:`1px solid ${(b()||R).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:d&&d,maxWidth:m&&m,...u}};return t.createElement(E,V({isOpen:e,onRequestClose:o?l:void 0,style:y,contentLabel:"Modal"},h),t.createElement(xr,{style:a},r,t.createElement(wr,{onClick:l},t.createElement(N,{icon:"close-icon",size:18}))),t.createElement(Ar,{contentWrapperStyle:g},t.createElement(vr,{inBuiltCss:P,style:c},i),t.createElement(Cr,{inBuiltCss:P,style:s},n)))};Sr.propTypes={modalIsOpen:e.bool,toggleModal:e.func,closeOnOutsideClick:e.bool,headerContent:e.any,bodyContent:e.any,footerContent:e.any,customModalHeaderStyle:e.object,customModalBodyStyle:e.object,customModalFooterStyle:e.object,customMinWidth:e.string,contentStyle:e.object,contentWrapperStyle:e.object,customZIndex:e.number},Sr.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:999999};const kr=m.div`
|
|
2578
2633
|
${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.common)o[t]=e.common[t];for(const l in e[t])o[l]=e[t][l],delete e.common[l]}return{...o,...l}}}}
|
|
2579
2634
|
}
|
|
2580
|
-
`,
|
|
2635
|
+
`,Er=({theme:e,toggleSimple:l,contentTrigger:o,contentOverlay:r,popperOptionsP:i,settingsP:n,customStyles:a,...c})=>{let s={},d={};l?(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d}):(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),s={...s,...i},d={...d,...n};const{getArrowProps:p,getTooltipProps:m,setTooltipRef:b,setTriggerRef:u,visible:g}=y({...d},s);return t.createElement(t.Fragment,null,t.createElement("div",{ref:u,style:{width:"fit-content",height:"fit-content"}},o),g&&t.createElement(kr,V({type:l?"simple-overlay":"overlay",theme:e,ref:b},m({className:"tooltip-container"}),{customStyles:a}),r))};Er.propTypes={theme:e.object,contentTrigger:e.any,contentOverlay:e.any,popperOptionsP:e.object,settingsP:e.object,customStyles:e.object,toggleSimple:e.bool},Er.defaultProps={theme:P,contentTrigger:t.createElement("div",null,"Trigger"),contentOverlay:t.createElement("div",null,"I am the Overlay")};const zr=m.div`
|
|
2581
2636
|
display: flex;
|
|
2582
2637
|
justify-content: center;
|
|
2583
2638
|
${({customParentStyles:e})=>e}
|
|
2584
|
-
`,
|
|
2639
|
+
`,Vr=m.span`
|
|
2585
2640
|
background-color: ${({selected:e,theme:t})=>e?t.variant["neutral-5"]:"transparent"};
|
|
2586
2641
|
color: ${({selected:e,theme:t})=>e?t.variant["primary-2"]:t.variant["neutral-3"]};
|
|
2587
2642
|
padding: 8px 14px;
|
|
@@ -2593,7 +2648,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2593
2648
|
font-size: 14px;
|
|
2594
2649
|
|
|
2595
2650
|
${({customItemStyles:e})=>e}
|
|
2596
|
-
`,
|
|
2651
|
+
`,Mr=m.div`
|
|
2597
2652
|
display: flex;
|
|
2598
2653
|
justify-content: center;
|
|
2599
2654
|
align-items: center;
|
|
@@ -2616,16 +2671,16 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2616
2671
|
}
|
|
2617
2672
|
|
|
2618
2673
|
${({customIconWrapperStyles:e})=>e}
|
|
2619
|
-
`,
|
|
2674
|
+
`,Br=m.div`
|
|
2620
2675
|
padding: 0 15px;
|
|
2621
|
-
`,
|
|
2676
|
+
`,Ir=m.div`
|
|
2622
2677
|
display: flex;
|
|
2623
2678
|
align-items: center;
|
|
2624
2679
|
justify-content: center;
|
|
2625
2680
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2626
2681
|
|
|
2627
2682
|
${({customLeftWrapperStyles:e})=>e}
|
|
2628
|
-
`,
|
|
2683
|
+
`,Wr=m.div`
|
|
2629
2684
|
display: flex;
|
|
2630
2685
|
margin: 0;
|
|
2631
2686
|
align-items: center;
|
|
@@ -2638,11 +2693,11 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2638
2693
|
margin: 0 10px;
|
|
2639
2694
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2640
2695
|
}
|
|
2641
|
-
`,
|
|
2696
|
+
`,Lr=({selectedPage:e,setSelectedPage:l,totalPage:o,customItemStyles:n,customLeftWrapperStyles:a,customIconWrapperStyles:c,previousText:s,nextText:d,pageToShow:p,totalResults:m,showResultPerPage:u,customParentStyles:g,customRightWrapperStyles:f,...h})=>{const y=b()||R,[x,v]=r([]);let A=p>o?o:p;i((()=>{v(Array.from({length:A},((e,t)=>t+1)))}),[o,p,A]);const C=t=>{let r=[];"increase"===t&&x[A-1]<=o&&e!==x[A-1]?l(e+1):"increase"===t&&x[A-1]<o?(r=Array.from({length:A},((e,t)=>t+x[0]+1)),l(e+1),v(r)):"decrease"===t&&x[0]<=e-1?l(e-1):"decrease"===t&&e>1&&(l(e-1),v(Array.from({length:A},((e,t)=>t+x[0]-1))))};return t.createElement(zr,{customParentStyles:g}," ",t.createElement(Ir,V({theme:y,customLeftWrapperStyles:a},h),t.createElement(Mr,V({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(Br,h,x.map(((o,r)=>t.createElement(Vr,{key:r,theme:y,selected:e===o,onClick:()=>l(o),customItemStyles:n},o)))),t.createElement(Mr,{onClick:()=>C("increase"),disabled:e===o,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"]}))),u&&t.createElement(Wr,{theme:y,customRightWrapperStyles:f},t.createElement(Lt,{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"))))};Lr.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},Lr.defaultProps={selectedPage:1,customItemStyles:{},customLeftWrapperStyles:{},customIconWrapperStyles:{},previousText:"PREVIOUS",nextText:"NEXT",pageToShow:5,totalResults:0,showResultPerPage:!1,customParentStyles:{},customRightWrapperStyles:{}};const Rr=m.div`
|
|
2642
2697
|
display: flex;
|
|
2643
2698
|
align-items: center;
|
|
2644
2699
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2645
|
-
`,
|
|
2700
|
+
`,Pr=({...e})=>{const l=b()||R;return t.createElement(Rr,{theme:l},e.children)},Tr=m.div`
|
|
2646
2701
|
font-size: 14px;
|
|
2647
2702
|
color: ${({selected:e,theme:t})=>e?t.variant["primary-1"]:null};
|
|
2648
2703
|
|
|
@@ -2658,7 +2713,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2658
2713
|
&:not(:first-child):not(:last-child) {
|
|
2659
2714
|
margin: 0 22px;
|
|
2660
2715
|
}
|
|
2661
|
-
`;(
|
|
2716
|
+
`;(Pr.PageItem=function({selected:e,...l}){const o=b()||R;return t.createElement(Tr,V({selected:e,theme:o},l),l.children)}).propTypes={selected:e.bool},Pr.PageItem.defaultProps={selected:!1};const Hr=m.div`
|
|
2662
2717
|
position: relative;
|
|
2663
2718
|
height: 10px;
|
|
2664
2719
|
border-radius: 10px;
|
|
@@ -2671,7 +2726,7 @@ position: relative;
|
|
|
2671
2726
|
|
|
2672
2727
|
// custom styles
|
|
2673
2728
|
${({progressWrapStyle:e})=>e}
|
|
2674
|
-
`,
|
|
2729
|
+
`,jr=m.div`
|
|
2675
2730
|
height: inherit;
|
|
2676
2731
|
width: inherit;
|
|
2677
2732
|
transition: width 1s ease-in-out;
|
|
@@ -2683,12 +2738,12 @@ position: relative;
|
|
|
2683
2738
|
${({progressBarStyle:e})=>e}
|
|
2684
2739
|
width: ${({now:e})=>e+"%"};
|
|
2685
2740
|
background-color: ${({color:e,theme:t})=>e||t.primary["primary-1"]};
|
|
2686
|
-
`,
|
|
2741
|
+
`,qr=({labelStyle:e,progressBarStyle:l,progressWrapStyle:o,label:r,now:i,color:n,innerContent:a,...c})=>{const s=b()||R;return t.createElement("div",null,t.createElement(lt,V({inBuiltCss:P,customStyles:e,type:"progressBar-label",text:r},c)),t.createElement(Hr,V({progressBarStyle:l,theme:s,progressWrapStyle:o,color:n},c),t.createElement(jr,V({progressBarStyle:l,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)))};qr.propTypes={labelStyle:e.object,progressBarStyle:e.object,progressWrapStyle:e.object,color:e.string,label:e.string,now:e.number,innerContent:e.any},qr.defaultProps={labelStyle:{},progressBarStyle:{},innerContent:"",label:"",now:0};const Fr=m.div`
|
|
2687
2742
|
background: transparent;
|
|
2688
2743
|
display: flex;
|
|
2689
2744
|
align-items: center;
|
|
2690
2745
|
width: ${({block:e})=>e?"100%":"fit-content"};
|
|
2691
|
-
`,
|
|
2746
|
+
`,Zr=m.div`
|
|
2692
2747
|
margin: 0;
|
|
2693
2748
|
color: ${({theme:e,variantOff:t})=>e.variant[t]};
|
|
2694
2749
|
white-space: nowrap;
|
|
@@ -2706,16 +2761,16 @@ position: relative;
|
|
|
2706
2761
|
&>div:first-of-type{
|
|
2707
2762
|
color: ${({theme:e,variantOn:t})=>e.variant[t]};
|
|
2708
2763
|
}
|
|
2709
|
-
`,
|
|
2764
|
+
`,Or=m.div`
|
|
2710
2765
|
display: flex;
|
|
2711
2766
|
margin-left: 20px;
|
|
2712
|
-
`,
|
|
2767
|
+
`,Gr=m.div`
|
|
2713
2768
|
height: 6px;
|
|
2714
2769
|
width: ${({widthStep:e})=>e}px;
|
|
2715
2770
|
margin: 0 3px;
|
|
2716
2771
|
background-color: ${({theme:e,isActive:t,variantOn:l,variantOff:o})=>t?e.variant[l]:e.variant[o]};
|
|
2717
2772
|
border-radius: 19px;
|
|
2718
|
-
`,
|
|
2773
|
+
`,Dr=({block:e,variantOn:l,variantOff:o,currentStep:r,totalSteps:i,widthStep:n,style:a,progressText:c,...s})=>(b(),t.createElement(Fr,V({block:e},s,{style:a}),t.createElement(Zr,V({},s,{variantOn:l,variantOff:o}),c||"Page"," ",t.createElement("div",null,r)," of ",t.createElement("div",null,i)),t.createElement(Or,s,Array.from(Array(i).keys()).map((e=>t.createElement(Gr,{key:"formSteps".concat(e),isActive:r===e+1,variantOn:l,variantOff:o,widthStep:n}))))));Dr.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},Fr.defaultProps={theme:R},Zr.defaultProps={theme:R},Or.defaultProps={theme:R},Gr.defaultProps={theme:R},Dr.defaultProps={theme:R,variantOn:"primary-1",variantOff:"neutral-2",block:!1,currentStep:1,totalSteps:4,widthStep:43};const Xr=m.button`
|
|
2719
2774
|
background: ${({disabled:e,theme:t,bgVariant:l})=>e?"#BBC4CF":t.variant[l]};
|
|
2720
2775
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2721
2776
|
padding: 6px 17px;
|
|
@@ -2742,7 +2797,7 @@ position: relative;
|
|
|
2742
2797
|
* {
|
|
2743
2798
|
outline: none;
|
|
2744
2799
|
}
|
|
2745
|
-
`,
|
|
2800
|
+
`,Jr=({block:e,style:l,variant:o,bgVariant:r,disabled:i,...n})=>(b(),t.createElement(Xr,V({block:e,variant:o,bgVariant:r,type:"button",style:l,disabled:i},n),n.children));Jr.propTypes={variant:e.string,bgVariant:e.string,disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object},Xr.defaultProps={theme:R},Jr.defaultProps={theme:R,variant:"primary-2",bgVariant:"neutral-4",block:!1,disabled:!1,onClick:void 0};const Ur=m.button`
|
|
2746
2801
|
background: ${({disabled:e,theme:t})=>e?"#BBC4CF":t.bgColor};
|
|
2747
2802
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2748
2803
|
padding: 6px 17px;
|
|
@@ -2765,7 +2820,7 @@ position: relative;
|
|
|
2765
2820
|
fill: #929EAC;
|
|
2766
2821
|
}
|
|
2767
2822
|
}
|
|
2768
|
-
`,
|
|
2823
|
+
`,Yr=({block:e,style:l,variant:o,borderVariant:r,disabled:i,...n})=>(b(),t.createElement(Ur,V({block:e,variant:o,borderVariant:r,type:"button",style:l,disabled:i},n),n.children));Yr.propTypes={variant:e.string,borderVariant:e.string,disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object},Ur.defaultProps={theme:R},Yr.defaultProps={theme:R,variant:"primary-2",borderVariant:"neutral-3",block:!1,disabled:!1,onClick:void 0};const Qr=m.div`
|
|
2769
2824
|
display: flex;
|
|
2770
2825
|
flex-direction: column;
|
|
2771
2826
|
height: ${({toggleSideBarOpen:e})=>"100vh"};
|
|
@@ -2773,7 +2828,7 @@ position: relative;
|
|
|
2773
2828
|
@media (max-width: 428px) {
|
|
2774
2829
|
height: ${({toggleSideBarOpen:e})=>e?"100vh":"56px"};
|
|
2775
2830
|
}
|
|
2776
|
-
`,
|
|
2831
|
+
`,Nr=m.div`
|
|
2777
2832
|
min-height: 56px;
|
|
2778
2833
|
display: flex;
|
|
2779
2834
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
@@ -2790,7 +2845,7 @@ position: relative;
|
|
|
2790
2845
|
}
|
|
2791
2846
|
|
|
2792
2847
|
${({headerStyles:e})=>e}
|
|
2793
|
-
`,
|
|
2848
|
+
`,Kr=m.div`
|
|
2794
2849
|
display: flex;
|
|
2795
2850
|
background-color: transparent;
|
|
2796
2851
|
flex-direction: column;
|
|
@@ -2800,7 +2855,7 @@ position: relative;
|
|
|
2800
2855
|
// @media (max-width: 428px) {
|
|
2801
2856
|
// display: ${({toggleSideBarOpen:e})=>e?"block":"none"} ;
|
|
2802
2857
|
// }
|
|
2803
|
-
|
|
2858
|
+
`,$r=m.div`
|
|
2804
2859
|
display: flex;
|
|
2805
2860
|
justify-content: flex-start;
|
|
2806
2861
|
align-items: center;
|
|
@@ -2829,7 +2884,7 @@ position: relative;
|
|
|
2829
2884
|
p {
|
|
2830
2885
|
margin: 0;
|
|
2831
2886
|
}
|
|
2832
|
-
`,
|
|
2887
|
+
`,_r=({headerContent:e,bodyContent:l,footerContent:o,toggleSideBarOpen:n,headerStyles:a,selectedStyle:c,notSelectedStyle:s,customStylesNameHover:d,listElementStyle:p,customSelectCardColor:m,user:u,firstBottomContent:g,secondBottomContent:f,selectedAppPath:h,setSelectedAppPath:y,selectedAppPageId:x,setSelectedAppPageId:v,setParentId:A,setRouterObject:C,...w})=>{const S=b()||R,[k,E]=r(null),[z,V]=r(!1),[M,B]=r([]);return i((()=>{B(h.split("/"));let e=h.split("/"),t=l&&l.find((t=>e[1]===t.path.split("/")[1])),o=t?.routes&&t?.routes.find((e=>e?.path===h));v(o?.pageId||null),C(o||null),A(t?.pageId||null)}),[h]),t.createElement(Qr,{onMouseEnter:()=>V(!0),onMouseLeave:()=>{E(null),V(!1)},toggleSideBarOpen:n},t.createElement(Nr,{theme:S,headerStyles:a},e),t.createElement(Kr,{toggleSideBarOpen:n},l&&l.filter((e=>!0===e.visibleAsMenu))?.map(((e,l,o)=>{let r=o.length;return t.createElement(_,{key:e.pageId,index:l,handleClick:e=>{!function(e){E(e)}(e)},isAccordionOpen:l===k||z&&e?.value?.toLowerCase()===M[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===M[1]?.toLowerCase(),customSelectCardColor:m,customStylesAccordionContainer:{"box-shadow":"none","border-radius":"0px","background-color":"transparent",position:r-1===l?"absolute":"initial",bottom:r-1===l&&"0px",padding:r-1===l?"2px 0px 10px 0px":"0px 0px 0px 0px"},customStylesAccordionTogggle:{padding:"0","box-shadow":"none","border-radius":"0px","background-color":"transparent","padding-left":"8px","padding-top":"16px","padding-bottom":"16px",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:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"16px",color:"white","font-weight":"600"},customStylesNameHover:d,size:"MD",user:{userName:e.label,url:e.logo,fullName:e.label},isSelected:e?.value?.toLowerCase()===M[1]?.toLowerCase(),notificationCount:e?.notificationCount}),content:t.createElement("div",{style:{margin:"0",padding:"0",marginBottom:"18.25px"}},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((l,o)=>t.createElement($r,{listElementStyle:p,key:e.pageId+o,onClick:()=>{y(l.path)}},t.createElement("span",{className:"selected-disk",style:{visibility:M[2]?.toLowerCase()===l?.path.split("/")[2]?.toLowerCase()?"visible":"hidden"}}),t.createElement("span",{className:"link"}," ",l?.link)))))})}))))},ei=m.div`
|
|
2833
2888
|
background-color: ${({theme:e})=>e.variant["primary-1"]} !important;
|
|
2834
2889
|
color: ${({theme:e})=>e.bgColor};
|
|
2835
2890
|
overflow-y: auto;
|
|
@@ -2847,7 +2902,7 @@ ${({isOpen:e,forceOpen:t,inBuiltCss:l,type:o,customStylesContainerOpen:r,customS
|
|
|
2847
2902
|
@media (max-width: 980px) {
|
|
2848
2903
|
${({isOpen:e,inBuiltCss:t,type:l,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r})=>{}}
|
|
2849
2904
|
}
|
|
2850
|
-
`,
|
|
2905
|
+
`,ti=m.div`
|
|
2851
2906
|
${({inBuiltCss:e,type:t})=>T(e,"sidebar-pusher")}
|
|
2852
2907
|
${({customStylesPusher:e})=>e}
|
|
2853
2908
|
|
|
@@ -2856,33 +2911,33 @@ ${({forceOpen:e,inBuiltCss:t,type:l,customStylesPusherOpen:o,customStylesPusherC
|
|
|
2856
2911
|
@media (max-width: 980px) {
|
|
2857
2912
|
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...T(e,"sidebar-pusher-mobile"),...l})}
|
|
2858
2913
|
}
|
|
2859
|
-
`,
|
|
2914
|
+
`,li=({customStylesContainer:e,customStylesContainerOpen:l,customStylesContainerClose:o,customStylesContainerMobileOpen:r,customStylesContainerMobileClose:i,customStylesPusher:n,customStylesPusherOpen:a,customStylesPusherClose:c,customStylesPusherMobile:s,forceOpen:d,forceClose:p,handleSidebar:m,toggleSideBarOpen:u,pinner:g,...f})=>{function h(e){m(e)}const y=b()||R;return t.createElement(ei,V({theme:y,inBuiltCss:P,customStyles:e,type:"sidebarContainer",onMouseEnter:()=>{d||h(!0)},onMouseLeave:()=>{h(!1),p()},forceOpen:d,isOpen:u},f),t.createElement(ti,null),f.children,g)};li.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},li.defaultProps={forceClose:()=>{},forceOpen:!1};const oi={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},ri=m.div`
|
|
2860
2915
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2861
2916
|
color: ${({theme:e})=>e.bgColor};
|
|
2862
|
-
padding: ${({size:e})=>
|
|
2917
|
+
padding: ${({size:e})=>oi[e].padding};
|
|
2863
2918
|
border: 1px solid ${({theme:e,variant:t})=>e.variant[t]};
|
|
2864
2919
|
border-radius: 42px;
|
|
2865
|
-
font-size: ${({size:e})=>
|
|
2920
|
+
font-size: ${({size:e})=>oi[e].fontSize};
|
|
2866
2921
|
font-weight: 600;
|
|
2867
2922
|
display: flex;
|
|
2868
2923
|
align-items: center;
|
|
2869
2924
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
2870
2925
|
box-sizing: border-box;
|
|
2871
2926
|
|
|
2872
|
-
`,
|
|
2927
|
+
`,ii=({block:e,style:l,variant:o,...r})=>(b(),t.createElement(ri,V({block:e,variant:o,style:l},r),r.children));ii.propTypes={variant:e.string,block:e.bool,theme:e.object},ri.defaultProps={theme:R},ii.defaultProps={theme:R,variant:"primary-1",block:!1};const ni={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},ai=m.div`
|
|
2873
2928
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2874
2929
|
background: ${({theme:e})=>e.bgColor};
|
|
2875
|
-
padding: ${({size:e})=>
|
|
2930
|
+
padding: ${({size:e})=>ni[e].padding};
|
|
2876
2931
|
border: 1px solid ${({theme:e,variant:t})=>e.variant[t]};
|
|
2877
2932
|
border-radius: 42px;
|
|
2878
|
-
font-size: ${({size:e})=>
|
|
2933
|
+
font-size: ${({size:e})=>ni[e].fontSize};
|
|
2879
2934
|
font-weight: 600;
|
|
2880
2935
|
display: flex;
|
|
2881
2936
|
align-items: center;
|
|
2882
2937
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
2883
2938
|
box-sizing: border-box;
|
|
2884
2939
|
|
|
2885
|
-
`,
|
|
2940
|
+
`,ci=({block:e,style:l,variant:o,...r})=>(b(),t.createElement(ai,V({block:e,variant:o,style:l},r),r.children));ci.propTypes={variant:e.string,block:e.bool,theme:e.object},ai.defaultProps={theme:R},ci.defaultProps={theme:R,variant:"primary-1",block:!1};const si={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},di=m.div`
|
|
2886
2941
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
2887
2942
|
color: ${({theme:e,textColor:t})=>t||e.bgColor};
|
|
2888
2943
|
border-radius: 13.5px;
|
|
@@ -2890,11 +2945,11 @@ font-size: 14px;
|
|
|
2890
2945
|
display: inline-flex;
|
|
2891
2946
|
align-items: center;
|
|
2892
2947
|
justify-content: center;
|
|
2893
|
-
min-width: ${({block:e,size:t})=>e?"auto":
|
|
2948
|
+
min-width: ${({block:e,size:t})=>e?"auto":si[t].width};
|
|
2894
2949
|
height: 28px;
|
|
2895
2950
|
box-sizing: border-box;
|
|
2896
2951
|
overflow: hidden;
|
|
2897
|
-
`,
|
|
2952
|
+
`,pi=({block:e,style:l,variant:o,textColor:r,bgColor:i,...n})=>(b(),t.createElement(di,V({block:e,variant:o,textColor:r,bgColor:i,style:l},n),n.children));pi.propTypes={variant:e.string,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,theme:e.object,textColor:e.string,bgColor:e.string},di.defaultProps={theme:R},pi.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const mi={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},bi=m.div`
|
|
2898
2953
|
background: ${({theme:e})=>e.bgColor};
|
|
2899
2954
|
color: ${({theme:e,variant:t,textColor:l})=>l||e.variant[t]};
|
|
2900
2955
|
border: 1px solid ${({theme:e,variant:t,borderColor:l})=>l||e.variant[t]};
|
|
@@ -2903,30 +2958,30 @@ font-size: 14px;
|
|
|
2903
2958
|
display: flex;
|
|
2904
2959
|
align-items: center;
|
|
2905
2960
|
justify-content: center;
|
|
2906
|
-
width: ${({block:e,size:t})=>e?"auto":
|
|
2961
|
+
width: ${({block:e,size:t})=>e?"auto":mi[t].width};
|
|
2907
2962
|
height: 27px;
|
|
2908
2963
|
box-sizing: border-box;
|
|
2909
2964
|
overflow: hidden;
|
|
2910
|
-
`,
|
|
2965
|
+
`,ui=({block:e,style:l,variant:o,textColor:r,borderColor:i,...n})=>(b(),t.createElement(bi,V({block:e,variant:o,textColor:r,borderColor:i,style:l},n),n.children));ui.propTypes={variant:e.string,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,theme:e.object,textColor:e.string,borderColor:e.string},bi.defaultProps={theme:R},ui.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const gi=e=>t.createElement("div",null,e.childern);gi.propTypes={name:e.string};const fi=m.div`
|
|
2911
2966
|
padding: 24px;
|
|
2912
2967
|
${({tabWrapperStyle:e})=>e}
|
|
2913
|
-
`,
|
|
2968
|
+
`,hi=m.div`
|
|
2914
2969
|
color: ${({theme:e})=>e.variant["graph-5"]};
|
|
2915
2970
|
display: flex;
|
|
2916
2971
|
align-items: flex-start;
|
|
2917
2972
|
column-gap: 12px;
|
|
2918
2973
|
padding-bottom: 24px;
|
|
2919
2974
|
${({headerWrapperStyle:e})=>e}
|
|
2920
|
-
`,
|
|
2975
|
+
`,yi=m.span`
|
|
2921
2976
|
font-size: 16px;
|
|
2922
2977
|
padding: 7px 20px;
|
|
2923
2978
|
background-color: ${({theme:e,isActive:t})=>t?H(e.variant["primary-1"],.2):"transparent"};
|
|
2924
2979
|
cursor: pointer;
|
|
2925
2980
|
border-radius: 5px;
|
|
2926
2981
|
${({headerStyle:e})=>e}
|
|
2927
|
-
`,
|
|
2982
|
+
`,xi=m.div`
|
|
2928
2983
|
${({tabContentStyle:e})=>e}
|
|
2929
|
-
`,
|
|
2984
|
+
`,vi=({children:e,tabWrapperStyle:l,headerStyle:o,tabContentStyle:n,headerWrapperStyle:a,dividerStyle:c,...s})=>{const[d,p]=r([]),[m,u]=r({}),[g,f]=r("");i((()=>{const l=[],o={};t.Children.forEach(e,(e=>{if(!t.isValidElement(e))return;const{name:r}=e.props;l.push(r),o[r]=e.props.children})),p(l),f(l[0]),u({...o})}),[e]);const h=b()||R;return t.createElement(fi,{tabWrapperStyle:l},t.createElement(hi,{theme:h,headerWrapperStyle:a},d.map(((e,l)=>t.createElement(yi,{onClick:()=>{f(e)},key:l,theme:h,isActive:e===g,headerStyle:o},e)))),t.createElement(vo,{theme:h,height:"8px",dividerStyle:c}),t.createElement(xi,{tabContentStyle:n},Object.keys(m).map((e=>e===g?t.createElement("div",null,m[e]):null))))};vi.propTypes={children:function(e,l,o){const r=e[l];let i=null;return t.Children.forEach(r,(function(e){e.type!==gi&&(i=new Error("`"+o+"` children should be of type `TabPanel`."))})),i}},vi.propTypes={tabWrapperStyle:e.object,headerWrapperStyle:e.object,headerStyle:e.object,dividerStyle:e.object,tabContentStyle:e.object},vi.defaultProps={tabWrapperStyle:{},headerStyle:{},tabContentStyle:{},headerWrapperStyle:{},dividerStyle:{}};const Ai=m.div`
|
|
2930
2985
|
.notification {
|
|
2931
2986
|
background: ${({theme:e})=>e.bgColor};
|
|
2932
2987
|
transition: 0.3s ease;
|
|
@@ -3000,7 +3055,7 @@ overflow: hidden;
|
|
|
3000
3055
|
.close-icon {
|
|
3001
3056
|
cursor: pointer;
|
|
3002
3057
|
}
|
|
3003
|
-
`,
|
|
3058
|
+
`,Ci=({close:e,children:l,type:r,position:n,timeout:a})=>{((e,t)=>{const l=o(e);i((()=>{l.current=e}),[e]),i((()=>{if(null===t)return;const e=setTimeout((()=>l.current()),t);return()=>clearTimeout(e)}),[t])})(e,a||5e4);const c=b()||R;let s=null;switch(r){case"success":s=t.createElement(N,{icon:"check-icon",color:"white",size:12,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"warning":s=t.createElement(N,{icon:"info-icon",color:"white",size:10,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(Ai,{theme:c,type:r},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"},l))),t.createElement("div",{className:"close-icon",onClick:e},t.createElement(N,{icon:"close-icon",color:c.variant["neutral-2"]}))))},wi=s(),Si=m.div`
|
|
3004
3059
|
.notification-container {
|
|
3005
3060
|
font-size: 14px;
|
|
3006
3061
|
box-sizing: border-box;
|
|
@@ -3053,9 +3108,9 @@ overflow: hidden;
|
|
|
3053
3108
|
transform: translateX(0);
|
|
3054
3109
|
}
|
|
3055
3110
|
}
|
|
3056
|
-
`;function
|
|
3111
|
+
`;function ki(){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 Ei=e=>{const[l,o]=r([]),n=(e,t)=>{o((l=>[...l,{id:ki(),content:t,type:e}]))},a=d((()=>({open:n})),[]),[c,s]=r(!1);return i((()=>(s(!0),()=>s(!1))),[]),t.createElement(wi.Provider,{value:a},e.children,c?z(t.createElement(Si,null,t.createElement("div",{className:`notification-container ${e.position}`},l.map((l=>t.createElement(Ci,{key:l.id,type:l.type,position:e.position,timeout:e.timeout,close:()=>{return e=l.id,o((t=>t.filter((t=>t.id!==e))));var e}},l.content))))),document.body):null)},zi=()=>p(wi),Vi={xs:{fontSize:"12px",lineHeight:"120%"},sm:{fontSize:"14px",lineHeight:"120%"},md:{fontSize:"16px",lineHeight:"140%"},lg:{fontSize:"18px",lineHeight:"120%"}},Mi=m.div`
|
|
3057
3112
|
color: ${({theme:e,text:t})=>t?e.variant[t]:e.textColor};
|
|
3058
3113
|
// background: ${({theme:e,bg:t})=>t?e.variant[t]:e.bgColor};
|
|
3059
|
-
font-size: ${({size:e})=>
|
|
3060
|
-
line-height: ${({size:e})=>
|
|
3061
|
-
`,
|
|
3114
|
+
font-size: ${({size:e})=>Vi[e].fontSize};
|
|
3115
|
+
line-height: ${({size:e})=>Vi[e].lineHeight};
|
|
3116
|
+
`,Bi=({size:e,children:l,bg:o,text:r,...i})=>{const n=b()||R;return t.createElement(Mi,V({theme:n,bg:o,text:r,size:e},i),t.createElement(Yo,{theme:n}),l)};Bi.propTypes={size:e.oneOf(["xs","sm","md","lg"]),text:e.string,bg:e.string,children:e.any,theme:e.object},Bi.defaultProps={size:"md"};export{$ as Accordion,_ as AccordionSB,ee as AccordionSBfooter,co as ActionContainer,mo as ActionItem,re as ArrowBar,de as Avatar,ge as AvatarSB,xe as AvatarSBfooter,Ce as Banner,et as Breadcrumb,tr as ButtonPopup,q as Card,Z as CardRef,ct as CheckBoxInput,pt as ColorInput,Kl as Comment,_l as Content,Jr as DarkSecondaryLink,vt as DateSelect,Vt as DateTime,vo as Divider,J as DocumentCard,Se as DotPulseLoader,Co as Drawer,Lt as DropdownSelect,Gt as DropzoneInput,wo as ErrorBoundary,Eo as FilterChip,Vo as Footer,Lo as FooterContent,Jo as FormComponent,bo as FormContainer,yo as FormWrapper,Ko as GroupAvatars,ir as GroupButtons,sr as GroupButtonsPopup,gr as GroupStatusCircle,Po as Header,Xo as HeaderComponent,yr as HyperLink,N as Icon,ne as Image,Yt as ImageUploader,lt as Label,Yr as LightSecondaryLink,We as LinkButton,ze as Loader,Sr as ModalComp,fo as MultiColumnDiv,go as MultiColumnWrapper,_r as Navbar,el as NumericInput,Er as Overlay,so as OverlayOptionContainer,po as OverlayOptionItemLabel,eo as PageContent,Lr as Pagination,Pr as PaginationDefault,il as PasswordInput,Te as PrimaryButton,ii as PrimaryStatusChip,qr as ProgressBar,Dr as ProgressSteps,pl as RadioInput,Oo as Rating,Me as RoundedLoader,hl as SearchInput,qe as SecondaryButton,ci as SecondaryStatusChip,li as Sidebar,Sl as SignatureInput,pi as SlimPrimaryStatusChip,ui as SlimSecondaryStatusChip,pr as StatusCircle,oo as StyledCentralBar,lo as StyledClearSearch,io as StyledCreateRow,no as StyledRow,to as StyledRowSearch,ao as StyledSearchRow,ro as StyledWarning,uo as SubmitButtonContainer,Uo as SubmitComponent,gi as TabPanel,Do as Table,vi as Tabs,Ml as TextArea,fl as TextInput,Hl as TimeInput,Ze as TinyButton,Ei as ToastProvider,Ol as ToggleSwitch,Qe as Tooltip,Bi as Typography,P as defaultStyles,R as defaultThemeColor,T as getDefaultStyles,L as graphColor,H as hexToRGB,I as neutralColor,M as primaryColor,W as shadeColor,B as uiColor,zi as useToast};
|