groundfloor-react-ui 1.2.53 → 1.2.54
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 +55 -60
- package/dist/index.js +76 -81
- 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 c,Component as n,Fragment as a,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 C,{components as A}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"},L={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},W={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},R={primary:{...M},ui:{...B},neutral:{...I},shade:{...L},graph:{...W},variant:{...M,...B,...I,...L,...W},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"},"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":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${R.textColor}`},footer:{display:"flex","margin-top":"auto",width:"100%"},drawer:{"min-height":"100%",overflow:"hidden",position:"fixed",width:"360px",transition:"transform ease 400ms",display:"flex","flex-direction":"column","background-color":"white","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"56px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${R.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 100ms",display:"flex","flex-direction":"column","z-index":"999999"},"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"}},H=(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 T(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+")"}T("#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 c,Component as n,Fragment as a,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"},L={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},W={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},R={primary:{...M},ui:{...B},neutral:{...I},shade:{...L},graph:{...W},variant:{...M,...B,...I,...L,...W},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"},"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:"inline-flex","align-items":"center",width:"fit-content"},"toggle-switch-checkbox-label":{position:"absolute",width:"51.52px",height:"20.11px","border-radius":"11.04px",cursor:"pointer"},"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":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${R.textColor}`},footer:{display:"flex","margin-top":"auto",width:"100%"},drawer:{"min-height":"100%",overflow:"hidden",position:"fixed",width:"360px",transition:"transform ease 400ms",display:"flex","flex-direction":"column","background-color":"white","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"56px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${R.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 100ms",display:"flex","flex-direction":"column","z-index":"999999"},"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"}},H=(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 T(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+")"}T("#FF0000",.5);const j=m.div`
|
|
2
2
|
color: ${({activeTheme:e})=>e.textColor};
|
|
3
3
|
padding-top: 25px;
|
|
4
4
|
padding-bottom: 25px;
|
|
@@ -138,7 +138,7 @@ import e from"prop-types";import t,{forwardRef as l,useRef as o,useState as r,us
|
|
|
138
138
|
|
|
139
139
|
// custom styles
|
|
140
140
|
${({customWrapperStyles:e})=>e}
|
|
141
|
-
`,$=({customStylesAccordionContainer:e,customStylesAccordionTogggle:l,customStylesAccordionIcon:c,customStylesAccordionContent:n,toggleIconAnimation:a,icon:s,content:d,contentToggle:p,toggleState:m,contentIsOpen:u,id:g,customWrapperStyles:f,showIconInfo:h,...y})=>{const x=o(null),v=b()||R,[C
|
|
141
|
+
`,$=({customStylesAccordionContainer:e,customStylesAccordionTogggle:l,customStylesAccordionIcon:c,customStylesAccordionContent:n,toggleIconAnimation:a,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(F,V({customStyles:e,type:"accordionContainer"},y,{header:t.createElement(F,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:a&&A?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",transition:"transform ease 95ms",background:"transparent"}},s||t.createElement(Q,{icon:"chevron-down",size:11,transform:"translate(0px,-1px)",color:"#A9B1B8"})))})),content:t.createElement(Z,V({customStyles:n,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:c,customStylesAccordionContent:n,toggleIconAnimation:a,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(F,V({customStyles:{...e,...w},type:"accordionContainer"},x,{header:t.createElement(F,V({customStyles:{...l,...k},type:"accordionToggle"},x,{onClick:()=>{v||g(u),A(!v)},header:p,content:t.createElement("div",{style:a&&v?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",background:"transparent"}},s)})),content:t.createElement(Z,V({customStyles:n,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:c,customStylesAccordionContent:n,toggleIconAnimation:a,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(F,V({customStyles:{...e,...C},type:"accordionContainer"},y,{header:t.createElement(F,V({customStyles:{...l,...S},type:"accordionToggle"},y,{onClick:()=>{f||(x||u(b),v(!x))},header:p,content:t.createElement("div",{style:a&&x?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",background:"transparent"}},s)})),content:t.createElement(Z,V({customStyles:n,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`
|
|
142
142
|
color: ${({theme:e,variant:t})=>t?e.variant[t]:"white"};
|
|
143
143
|
${({scroll:e})=>e?u`
|
|
144
144
|
display: flex;
|
|
@@ -233,7 +233,7 @@ import e from"prop-types";import t,{forwardRef as l,useRef as o,useState as r,us
|
|
|
233
233
|
`:void 0}
|
|
234
234
|
};
|
|
235
235
|
`}}
|
|
236
|
-
`,re=({variant:e,data:l,scroll:c,onClick:n,clickable:a,...s})=>{const d=b()||R,p=o(null),m=o(null),[u,g]=r(void 0),[f,h]=r(void 0);let y={fontSize:"",display:""},x={fontSize:"",display:""};const v=()=>{p&&h(p?.current?.offsetWidth)};i((()=>{v()}),[l,f]),i((()=>{if(!c)return window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)}),[]),i((()=>{c||g(m?.current.offsetWidth)}),[l,f,u]);const
|
|
236
|
+
`,re=({variant:e,data:l,scroll:c,onClick:n,clickable:a,...s})=>{const d=b()||R,p=o(null),m=o(null),[u,g]=r(void 0),[f,h]=r(void 0);let y={fontSize:"",display:""},x={fontSize:"",display:""};const v=()=>{p&&h(p?.current?.offsetWidth)};i((()=>{v()}),[l,f]),i((()=>{if(!c)return window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)}),[]),i((()=>{c||g(m?.current.offsetWidth)}),[l,f,u]);const A=l.reduce((function(e,t){return 9*e.label.length+13*e.value.toString().length>9*t.label.length+13*t.value.toString().length?e:t}));if(!c){const e=function(e){return{step1:15+13*e.value.toString().length+5+9*e.label.length+15,step2:15+13*e.value.toString().length+5+7*e.label.length+15,step3:15+13*e.value.toString().length+5+15}}(A);u<e.step3?(x.display="none",y.display="none"):u<e.step2?y.display="none":u<e.step1?y.fontSize="12px":y.fontSize="14px"}return t.createElement(te,{theme:d,variant:e,ref:c?null:p,arrowNumber:l.length,scroll:c},l.map(((e,o)=>{return t.createElement(le,{id:e.id,theme:d,onClick:a?t=>n(t,e):null,clickable:a,scroll:c,ref:c?null:e.label===A.label?m:null,key:"fa"+o+"-"+e.label,index:o,dataLength:l.length,color:e.color},(r=e.value,i=e.label,t.createElement(oe,{styleArrowContentP:y,styleArrowContentSpan:x,scroll:c},t.createElement("span",null,r),t.createElement("p",null,i))));var r,i})))};re.propTypes={variant:e.string,data:e.array,scroll:e.bool,onClick:e.func,clickable:e.bool},re.defaultProps={variant:null,data:[],scroll:!0,onClick:void 0,clickable:!1};const ie=m.img`
|
|
237
237
|
//Set the styles from the default styles object
|
|
238
238
|
${({inBuiltCss:e,type:t,size: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])r[l]=e[t][l],delete e.common[l];for(const o in e[`${t}${l}`])r[o]=e[`${t}${l}`][o],delete e.common[o]}return{...r,...o}}}}
|
|
239
239
|
`,ce=({customStyles:e,type:l,size:c,alt:n,src:a,handleImageStatus:s,...d})=>{const[p,m]=r("loading"),b=o(null),u=()=>{m("loaded"),s&&s("loaded")},g=()=>{m("failed"),s&&s("failed")};return i((()=>{const e=b.current;if(e)return e.addEventListener("load",u),e.addEventListener("error",g),()=>{e.removeEventListener("load",u),e.removeEventListener("error",g)}}),[p]),t.createElement(ie,V({},d,{inBuiltCss:P,customStyles:e,type:l,alt:n,src:a,ref:b,size:c}))};ce.propTypes={customStyles:e.object,type:e.string,size:e.oneOf(["SM","MD","LG"]),alt:e.string,src:e.string,handleImageStatus:e.func},ce.defaultProps={customStyles:{},type:"image",alt:"image alternative",src:null,handleImageStatus:null};const ne=m.span`
|
|
@@ -326,13 +326,13 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t i
|
|
|
326
326
|
padding-top: 22px;
|
|
327
327
|
padding-bottom: 22px;
|
|
328
328
|
width: inherit;
|
|
329
|
-
`,
|
|
329
|
+
`,Ae=m.div`
|
|
330
330
|
color: ${({theme:e})=>e.textColor};
|
|
331
331
|
display: flex;
|
|
332
332
|
font-size: 16px;
|
|
333
333
|
text-align: left;
|
|
334
334
|
word-wrap: break-word;
|
|
335
|
-
`,
|
|
335
|
+
`,Ce=({backgroundColor:e,borderColor:l,variant:o,children:r,...i})=>{const c=b()||R;return t.createElement(t.Fragment,null,t.createElement(ve,V({theme:c,backgroundColor:e,borderColor:l},i),t.createElement(Ae,V({theme:c},i),r)))};Ce.propTypes={backgroundColor:e.string,borderColor:e.string,children:e.any},Ce.defaultProps={children:""};const we=m.div`
|
|
336
336
|
.dot-pulse {
|
|
337
337
|
position: relative;
|
|
338
338
|
left: -9999px;
|
|
@@ -714,7 +714,7 @@ ${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>H(e,t)}
|
|
|
714
714
|
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>H(e,t)}
|
|
715
715
|
// custom styles
|
|
716
716
|
${({customTriggerStyle:e})=>e}
|
|
717
|
-
`,Ye=({inBuiltCss:e,contentTrigger:l,contentTooltip:o,popperOptionsP:r,settings:i,customStylesTPContainer:c,customStylesTPAbottom:n,customStylesTPAbottomBefore:a,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:g,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v,customStylesTPArrow:
|
|
717
|
+
`,Ye=({inBuiltCss:e,contentTrigger:l,contentTooltip:o,popperOptionsP:r,settings:i,customStylesTPContainer:c,customStylesTPAbottom:n,customStylesTPAbottomBefore:a,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,...L})=>{const W=b()||R,H={modifiers:[{name:"offset",options:{offset:[0,23]}}],strategy:"absolute",...r},{getArrowProps:T,getTooltipProps:j,setTooltipRef:F,setTriggerRef:q,visible:Z}=y({interactive:!0,...i},H);return t.createElement(t.Fragment,null,t.createElement(Ne,{ref:q,inBuiltCss:P,customTriggerStyle:M,style:{width:"fit-content",height:"fit-content",display:"inline-block"}},l),Z&&t.createElement(Oe,V({inBuiltCss:P,theme:W,ref:F},j({className:"tooltip-container"}),{customStylesTPContainer:c,customStylesTPAbottom:n,customStylesTPAbottomBefore:a,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:g,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v}),t.createElement(De,V({inBuiltCss:P},T({className:"tooltip-arrow"}),{customStylesTPArrow:A,customStylesTPAbefore:C,customStylesTPAafter:w})),t.createElement(Ge,V({defaultTooltipContentStyle:"popOver-Content",theme:W,inBuiltCss:P},L,{customContentStyle:k}),t.createElement(Xe,V({defaultTooltipHeaderStyle:"popOver-header",theme:W,inBuiltCss:P},L,{customHeaderStyle:E}),B),t.createElement(Je,V({defaultTooltipBodyStyle:"popOver-body",theme:W,inBuiltCss:P},L,{customBodyStyle:z}),o),t.createElement(Ue,null,I))))};Ye.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},Ye.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(Fe,{size:"sm"},"Next"),customStylesTPContainer:{border:"none"},customTriggerStyle:{}};const Qe=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:c,variant:n,variantSeparator:a,appLogo:s,separator:d,items:p,onClick:m,isPrimary:u,collapse:g,folderIcon:f,iconMargin:h,...y})=>{const x=b()||R,v=o(null),[C
|
|
791
|
+
`,et=({wrap:e,block:l,style:c,variant:n,variantSeparator:a,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:n,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(Q,{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:n,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:n,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(Ye,{contentTrigger:t.createElement(Q,{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:n,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:n,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:n,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:"flex-start"}},t.createElement("div",{style:{display:"flex",position:"absolute"}},t.createElement(Qe,V({theme:x,isWrap:e,ref:e?null:v,isBreadcrumbVisible:A,block:l,variant:n,variantSeparator:a,style:c,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})=>H(e,t)}
|
|
794
794
|
|
|
@@ -845,7 +845,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
845
845
|
`,nt=m.div`
|
|
846
846
|
flex-direction: ${({inline:e})=>e?"row":"column"};
|
|
847
847
|
width: ${({inline:e})=>e?"initial":"auto"};
|
|
848
|
-
`,at=({getCheckedArr:e,checkBoxOuterStyle:l,checkBoxInnerStyle:o,optionTextStyle:r,defaultBorderColor:c,defaultTextColor:n,checkedTextColor:a,checkedCheckBoxColor:s,labelStyle:d,label:p,options:m,setOptions:u,wrapperStyles:g,inline:f,wrapperStyle:h,isRequired:y,...x})=>{const v=b()||R;i((()=>{
|
|
848
|
+
`,at=({getCheckedArr:e,checkBoxOuterStyle:l,checkBoxInnerStyle:o,optionTextStyle:r,defaultBorderColor:c,defaultTextColor:n,checkedTextColor:a,checkedCheckBoxColor:s,labelStyle:d,label:p,options:m,setOptions:u,wrapperStyles:g,inline:f,wrapperStyle:h,isRequired:y,...x})=>{const v=b()||R;i((()=>{A(m)}),[]);const A=t=>{let l=t.filter((e=>!1!==e.checked));e(l)},C=Object.assign({display:"flex",flexDirection:"column",flexWrap:"wrap"},h);return t.createElement("div",V({style:C},x),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:d,type:"check-label",text:p},x)),y&&t.createElement("div",{style:{marginLeft:"4px",color:`${v.variant.error}`}},"*")),t.createElement(nt,V({style:{display:"flex",flexWrap:"wrap"},inline:f},x),m?.map(((e,i)=>t.createElement(ct,V({inline:f,id:e.id,key:`${e.name}-${i}`,onClick:()=>{!e.disabled&&((e,t)=>{let l=[...m];l[t].checked=!e.checked,u(l),A(l)})(e,i)},wrapperStyles:g},x),e.checked?t.createElement(rt,V({theme:v,inBuiltCss:P,defaultCheckBoxInnerStyle:"checkBox-inner",checkBoxInnerStyle:{...o,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabled&&e?.disabledColor},defaultBorderColor:c,checkedCheckBoxColor:s,checked:e.checked},x),t.createElement(Q,{icon:"check-icon",size:18,color:"white"})):t.createElement(ot,V({inBuiltCss:P,defaultCheckBoxOuterStyle:"checkBox-outer",checkBoxOuterStyle:{...l,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabledColor},defaultBorderColor:c,theme:v},x)),t.createElement(it,{theme:v,inline:f,optionTextStyle:{...r,cursor:e?.disabled?"not-allowed ":" pointer",color:e?.disabledColor},checked:e.checked,defaultTextColor:n,checkedTextColor:a},e.label))))))};at.propTypes={wrapperStyle:e.object,label:e.string,labelStyle:e.object,checkBoxOuterStyle:e.object,checkBoxInnerStyle:e.object,optionTextStyle:e.object,defaultTextColor:e.string,checkedTextColor:e.string,defaultBorderColor:e.string,checkedCheckBoxColor:e.string,inline:e.bool,options:e.array,setOptions:e.func,getCheckedArr:e.func,isRequired:e.bool,wrapperStyles:e.object},at.defaultProps={label:"",inline:!1,options:[],setOptions:()=>{},getCheckedArr:()=>{},labelStyle:{},checkBoxOuterStyle:{},checkBoxInnerStyle:{},isRequired:!0,wrapperStyles:{}};const st=m.div`
|
|
849
849
|
border: 1px solid ${({theme:e})=>e.variant["neutral-4"]};
|
|
850
850
|
background-color: ${({theme:e})=>e.bgColor};
|
|
851
851
|
|
|
@@ -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:c,theme:n,startYear:a,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=a||(new Date).getFullYear();y<=(new Date).getFullYear()+h;y++)f.push(y);const v=o(null),
|
|
1084
|
+
`,vt=({startDate:e,setStartDate:l,disabled:c,theme:n,startYear:a,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=a||(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,L]=r(e.getFullYear()),[W,P]=r(g[e.getMonth()]);i((()=>{P(g[e.getMonth()]),L(e.getFullYear())}),[e]),i((()=>(document.addEventListener("click",H,!0),()=>{document.removeEventListener("click",H,!0)})),[]);const H=e=>{v.current&&!v.current.contains(e.target)&&w(!1)},T=e=>{A.current&&!A.current.contains(e.target)&&k(!1)};return i((()=>(document.addEventListener("click",T,!0),()=>{document.removeEventListener("click",T,!0)})),[]),t.createElement(mt,V({disabled:c,theme:n},m),t.createElement(x,{selected:e,dateFormat:d||"dd/MM/yyyy",useWeekdaysShort:!0,onChange:e=>l(e),placeholderText:p,adjustDateOnChange:!0,disabled:c,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(Q,{icon:"triangle-down",color:E?u.variant["primary-1"]:u.textColor,size:7}))),C&&t.createElement(ht,null,t.createElement(yt,{theme:n,onMouseEnter:()=>z(!0)},g.map(((e,l)=>t.createElement(xt,{selectedMonth:W,onClick:()=>{z(!1),o(l),w(!1),P(g[l])},key:Math.random()},t.createElement("span",{style:{color:`${W===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(Q,{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),L(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
|
}
|
|
@@ -1139,7 +1139,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1139
1139
|
// custom styles
|
|
1140
1140
|
${({wrapperStyle:e})=>e};
|
|
1141
1141
|
|
|
1142
|
-
`,
|
|
1142
|
+
`,Ct=m.div`
|
|
1143
1143
|
|
|
1144
1144
|
`,wt=m.button`
|
|
1145
1145
|
background-color: ${({theme:e})=>e.bgColor};
|
|
@@ -1185,7 +1185,7 @@ float: right;
|
|
|
1185
1185
|
margin-top: 5px;
|
|
1186
1186
|
font-size: 10px;
|
|
1187
1187
|
}
|
|
1188
|
-
`,Vt=({defaultValue:e,onChange:l,inputType:o,onClick:i,placeHolder:c,value:n,disabled:a,startYear:s,endYearRange:d,icon:p,iconColor:m,iconSize:u,customHeaderStyle:g,timeBtnStyle:f,wrapperStyle:h,customIconContainerStyle:y,label:
|
|
1188
|
+
`,Vt=({defaultValue:e,onChange:l,inputType:o,onClick:i,placeHolder:c,value:n,disabled:a,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})=>{const[B,I]=r(e);let L=B?new Date(B):null;for(var W=[],P=d||10,H=s||(new Date).getFullYear();H<=(new Date).getFullYear()+P;H++)W.push(H);let T={};switch(o){case"date":default:T.dateFormat="dd MMM, yyyy";break;case"month":T.dateFormat="MMMM yyyy",T.showMonthYearPicker=!0;break;case"year":T.dateFormat="yyyy",T.showYearPicker=!0;break;case"datetime-local":T.dateFormat="dd MMM yyyy, hh:mm a",T.showTimeSelect=!0,T.timeFormat="hh:mm a",T.timeIntervals=15,T.timeCaption="Time";break;case"time":T.showTimeSelect=!0,T.showTimeSelectOnly=!0,T.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:L,disabled:a,customInput:t.createElement(Ct,{value:n,onClick:i,placeholder:c,theme:j},t.createElement(wt,V({theme:j,value:n,onClick:i,timeBtnStyle:f},M),n||(c||"-- : -- --"),t.createElement(kt,V({theme:j},M,{customIconContainerStyle:y}),p?t.createElement(Q,{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:c},T,{renderCustomHeader:({date:e,changeYear:l,decreaseMonth:r,increaseMonth:i})=>{let c=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(Q,{icon:"chevron-left",color:"white",size:16})):null,t.createElement("b",null,"year"!==o?t.createElement("span",{style:{paddingRight:"5px"}},c):null," ",t.createElement("span",{className:"calender-year"},t.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>l(e)},W.map((e=>t.createElement("option",{key:e,value:e},e)))))),"year"!==o?t.createElement("span",{style:{paddingRight:"10px"},onClick:i},t.createElement(Q,{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:!0};const Mt=m.div`
|
|
1189
1189
|
.master-dropdown,
|
|
1190
1190
|
.new-select {
|
|
1191
1191
|
.master-dropdown__menu,
|
|
@@ -1340,7 +1340,7 @@ float: right;
|
|
|
1340
1340
|
margin-left: 6px;
|
|
1341
1341
|
margin-top: -15.5px;
|
|
1342
1342
|
cursor: pointer;
|
|
1343
|
-
`,Lt=({getValue:e,children:l,...o})=>{const r=e().length;return t.createElement(
|
|
1343
|
+
`,Lt=({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"))},Wt=({label:e,labelStyle:l,optionArr:o,selectedValue:r,setSelectedValue:i,placeHolder:c,isClearable:n,isValid:a,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:L,placeHolderColor:W,indicatorBackgroundColor:H,inputColor:T,menuListFooter:j,customSelectStyles:F,...q})=>{const Z=b()||R,O=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??Z.primary["primary-1"]}},t.createElement(Q,{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:"flex-start",alignItems:"center",width:"100%"}},e.isSelected?o:r,t.createElement("div",{className:"text-main-alt",style:{marginLeft:"10px"}},e.label)))},D=({index:e,...l})=>{const o=l?.data?.label||"Select";return!e&&t.createElement("span",{className:"text-main-alt-value"},o)},G={control:(e,t)=>({...e,border:a?L&&a?"1px solid "+L:"1px solid "+Z.border:"1px solid "+Z.ui.error,minWidth:"singleSelect"===y||"asyncSingleSelect"===y?"120px":"185px",height:`${s}px`,minHeight:`${s}px`,boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:L||Z.bgColor}),placeholder:e=>({...e,fontSize:d+"px",marginLeft:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"auto",maxWidth:"89%",marginRight:"0px",color:W||"hsl(0, 0%, 50%)"}),dropdownIndicator:e=>({...e,height:`${s}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"2px",backgroundColor:H||"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:T||"hsl(0, 0%, 20%)"}),option:(e,t)=>({...e,backgroundColor:t.isSelected||t.isFocused?Z.neutral["neutral-5"]:Z.bgColor,padding:"10px",cursor:t.isDisabled?"not-allowed":"pointer",color:"#081348",opacity:t.isDisabled?.6:1,width:"inherit",boxSizing:"initial"}),menuPortal:e=>({...e,zIndex:99999999}),...F},X={DropdownIndicator:e=>{const l=t.createElement(C.DropdownIndicator,e,t.createElement(It,null,t.createElement(Q,{icon:w,color:k,size:E,customstyles:S})));return!0===z?l:null},ValueContainer:Lt,IndicatorSeparator:()=>null,ClearIndicator:e=>t.createElement(C.ClearIndicator,e,n?t.createElement(It,{onClick:()=>{u(),e.clearValue()}},t.createElement(Q,{icon:"cross-icon",color:"black",size:8})):null),MenuList:e=>{const{MenuListHeader:l=null,MenuListFooter:o=null}=e.selectProps.components;return t.createElement(C.MenuList,e,e.children.length&&l,e.children,e.children.length&&o)},MenuListFooter:j};let J=null;switch(y){case"multiSelect":J=t.createElement(Rt,V({type:"multiSelect",MultiValue:D,Option:O,value:r,CommonRenderedComponent:X,optionArr:o,placeHolder:c,isDisabled:x,stylesComp:G,setSelectedValue:i,isLoading:v,id:A,isClearable:n},q));break;case"asyncSingleSelect":J=t.createElement(Pt,V({CommonRenderedComponent:X,loadOptions:p,onInputChange:m,styles:G,placeholder:c,onChange:i,isLoading:v,isDisabled:x,id:A,value:r,isClearable:n},q));break;case"asyncMultiSelect":J=t.createElement(Pt,V({type:"asyncMultiSelect",CommonRenderedComponent:X,MultiValue:D,Option:O,onChange:i,placeholder:c,styles:G,isDisabled:x,isLoading:v,loadOptions:p,onInputChange:m,id:A,isClearable:n},q));break;default:J=t.createElement(Rt,V({type:"singleSelect",value:{value:r?r.value:"",label:r?r.label:""},CommonRenderedComponent:X,optionArr:o,placeHolder:c,isDisabled:x,stylesComp:G,setSelectedValue:i,isLoading:v,id:A,isClearable:n},q))}return t.createElement(Mt,{style:g,backgroundColor:L,isValid:a,fontSize:d,theme:Z},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:`${Z.ui.error}`}},"*")),J)},Rt=({type:e,Option:l,value:o,CommonRenderedComponent:r,MultiValue:i,optionArr:c,placeHolder:n,isDisabled:a,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:c,placeholder:n,isDisabled:a,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:c,...n})=>{let a={...e};return"asyncMultiSelect"===r&&(a.MultiValue=l,a.Option=o),t.createElement(w,V({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:a,isMulti:"asyncMultiSelect"===r,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiSelect"!==r,isSearchable:!0,styles:c,menuShouldScrollIntoView:!1},n))};Wt.propTypes={label:e.string,labelStyle:e.object,optionArr:e.array,selectedValue:e.object,setSelectedValue:e.func,placeHolder:e.string,fontSize:e.number,clearSelected:e.func,loadOptions:e.func,onInputChange:e.func,customWrapperStyles:e.object,customLabelStyles:e.object,isRequired:e.bool,dropdownType:e.string,isDisabled:e.bool,isLoading:e.bool,isValid:e.bool,height:e.number,isClearable:e.bool,id:e.string,iconName:e.string,iconColor:e.string,iconSize:e.number,leftIcon:e.string,leftIconColor:e.string,leftIconSize:e.number,showIndicator:e.bool,backgroundColor:e.string,placeHolderColor:e.string,inputColor:e.string,menuListFooter:e.any,customSelectStyles:e.object},Wt.defaultProps={label:"",labelStyle:{},optionArr:[],selectedValue:{},setSelectedValue:void 0,placeHolder:"Select an option",isValid:!0,isClearable:!1,height:31,fontSize:14,loadOptions:()=>{},onInputChange:()=>{},clearSelected:()=>{},customWrapperStyles:{},customLabelStyles:{},isRequired:!1,dropdownType:"singleSelect",isDisabled:!1,isLoading:!1,id:"",iconName:"triangle-down",iconColor:"black",iconSize:8,leftIcon:"",leftIconColor:"black",leftIconSize:10,showIndicator:!0,customSelectStyles:{}};const Ht=m.div`
|
|
1344
1344
|
//Set the styles from the default styles object
|
|
1345
1345
|
${({inBuiltCss:e,defaultStyles:t})=>H(e,t)}
|
|
1346
1346
|
|
|
@@ -1400,7 +1400,7 @@ float: right;
|
|
|
1400
1400
|
align-items: center;
|
|
1401
1401
|
margin: 20px 0px;
|
|
1402
1402
|
font-size: 14px;
|
|
1403
|
-
`;const Dt=({label:e,labelStyle:l,labelInline:o,required:i,message:n,fileArr:a,setFileArr:s,deleteFile:d,customDropzoneStyles:p,customFileStyles:m,customTextStyles:u,customFileNameStyles:g,backgroundColor:f,singleFile:h,messageSize:y,showSupportedFormats:x,file_extensions:v,maxFilesAmount:
|
|
1403
|
+
`;const Dt=({label:e,labelStyle:l,labelInline:o,required:i,message:n,fileArr:a,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:L,iconColor:W,id:H,customTooltipContentStyle:T,customStylesTPArightBefore:j,customStylesTPArightAfter:F,...q})=>{const Z=b()||R,[O,D]=r(!1),G=c(),[X,J]=r(M),[U,N]=r("");let Y;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=a.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 a)l+=e.size;if(""==ee)for(const[o,a]of Object.entries(e)){$=!0,a.name,l+=a.size;var i=a.name.split(".");i=i[i.length-1],$=K.includes(i.toLowerCase());var c=1024;("MB"==S||"GB"==S||"TB"==S)&&(c*=1024);var n=Math.round(l/c);if(0==$&&(ee=k?.format,ee=ee||_),n>w&&$){$=!1;r="The file must be under "+w+" "+S;ee=k?.size,ee=null!=ee?ee:r}!0===$&&(Y&&URL.revokeObjectURL(Y),Y=URL.createObjectURL(a),a.path=Y,t.push(a))}return ee.length>0?(B(!1),J(M),N(ee)):(B(!0),J(M),N("")),t};function oe(e){e.preventDefault(),e.stopPropagation()}function re(e,t){let l=[...a,...e];return t||(l=l.filter(((e,t,l)=>t===l.findIndex((t=>t.place===e.place&&t.name===e.name))))),s(l),D(!1),l}function ie(e,t){if(e instanceof File){const t=a.filter((t=>t.name!==e.name));s(t)}else!function(e,t){const l=a.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"}},q)),i&&t.createElement("div",{style:{marginLeft:"4px",color:`${Z.variant.error}`}},"*")),t.createElement(Ht,{theme:Z,inBuiltCss:P,defaultStyles:"dropzone-parent",backgroundColor:f,customDropzoneStyles:M?p:{},onDragLeave:function(e){oe(e),D(!1)},onDragOver:function(e){oe(e),D(!0)},onDrop:function(e){oe(e);const{files:t}=e.dataTransfer;var l=le(t);D(!0),q.onFilesAdded(re(l,h))},onClick:function(){G.current.click()},hover:O,dropValid:M,fileArr:a},t.createElement(jt,V({ref:G,valid:X,dropValid:M,type:"file",id:H,multiple:1!=h,onChange:function(e){e.target,D(!1);var t=le(e.target.files);t&&q.onFilesAdded(re(t,h))},onClick:e=>e.target.value=null},q)),M?t.createElement(t.Fragment,null,L?t.createElement(Q,{icon:L,color:O?Z.bgColor:W,size:24}):t.createElement(Q,{icon:"file-upload",color:O?Z.bgColor:Z.primary["primary-1"],size:24})):null,t.createElement(Ft,{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||n)))),U===_||k.format?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"}`}},q)),t.createElement(Ye,{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:T,customStylesTPArightBefore:j,customStylesTPArightAfter:F})):"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"}`}},q)):"",a?.map(((e,l)=>t.createElement(Tt,{inBuiltCss:P,defaultStyles:"dropzone-file-div",key:`${e}-${l}`,customFileStyles:m},t.createElement(Zt,null,t.createElement(Q,{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(qt,{key:101*Math.random()|0,onClick:()=>ie(e)},t.createElement("div",{style:{marginRight:"7px"}},t.createElement(Q,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:Z.primary["primary-1"]})),t.createElement(Q,{icon:"cross-icon",color:Z.neutral["neutral-2"],size:13}))))))};Dt.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},Dt.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 Gt=m.div`
|
|
1404
1404
|
display: contents;
|
|
1405
1405
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1406
1406
|
|
|
@@ -1465,7 +1465,7 @@ float: right;
|
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
1467
|
${({MainDivStyle:e})=>e};
|
|
1468
|
-
`,Nt=({image:e,setImage:l,WrapperDivStyle:c,MainDivStyle:n,IconWrapperStyle:a,iconSize:s,iconColor:d,isDisabled:p,id:m})=>{const[u,g]=r(),f=o(),h=b()||R,[y,x]=r(),[v,
|
|
1468
|
+
`,Nt=({image:e,setImage:l,WrapperDivStyle:c,MainDivStyle:n,IconWrapperStyle:a,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(Gt,{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:c,isDisabled:p},t.createElement(Ut,{isDisabled:p,theme:h,MainDivStyle:n,style:{backgroundImage:`url(${u})`},onClick:e=>{e.preventDefault(),f.current.click()}},!u&&t.createElement("div",{className:"icon-on-not-preview"},t.createElement(Jt,{IconWrapperStyle:a,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:a,isDisabled:p,theme:h},t.createElement(Q,{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}))};Nt.propTypes={image:e.any,setImage:e.func,WrapperDivStyle:e.object,MainDivStyle:e.object,IconWrapperStyle:e.object,iconSize:e.number},Nt.defaultProps={image:null,setImage:()=>{},WrapperDivStyle:{},MainDivStyle:{},IconWrapperStyle:{},iconSize:28,id:"",isDisabled:!1};const Yt=m.div`
|
|
1469
1469
|
border: 1px solid
|
|
1470
1470
|
${({theme:e})=>e.border};
|
|
1471
1471
|
border-radius: 4px;
|
|
@@ -1666,7 +1666,7 @@ float: right;
|
|
|
1666
1666
|
margin-top: 5px;
|
|
1667
1667
|
font-size: 10px;
|
|
1668
1668
|
}
|
|
1669
|
-
`,fl=({textBoxStyle:e,labelStyle:l,inputStyle:o,errMsg:r,required:i,label:c,labelInline:n,iconBefore:a,iconAfter:s,isValid:d,type:p,isDisabled:m,id:u,errMsgColor:g,iconAfterStyle:f,iconBeforeStyle:h,ref:y,pattern:x,iconColorOnFocus:v,...
|
|
1669
|
+
`,fl=({textBoxStyle:e,labelStyle:l,inputStyle:o,errMsg:r,required:i,label:c,labelInline:n,iconBefore:a,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:n,theme:C,errMsgColor:g},A),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:l,type:"label-text",labelInline:n,text:c,errMsg:r,style:{display:"flex",marginBottom:`${n?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}},a),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:c,textBoxStyle:n,id:a,...s})=>t.createElement(fl,V({iconAfter:t.createElement(Q,{icon:"magnifier-icon"}),label:e,textBoxStyle:n,placeholder:l,ref:r,onChange:o,id:a},s)),yl=m.div`
|
|
1670
1670
|
//Set the styles from the default styles object
|
|
1671
1671
|
${({inBuiltCss:e,defaultParentDivStyle:t})=>H(e,t)}
|
|
1672
1672
|
|
|
@@ -1697,7 +1697,7 @@ float: right;
|
|
|
1697
1697
|
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"]}`:""};
|
|
1698
1698
|
background-color: rgba(255, 255, 255, 0.05);
|
|
1699
1699
|
cursor: pointer;
|
|
1700
|
-
`,
|
|
1700
|
+
`,Al=m.input`
|
|
1701
1701
|
${({inBuiltCss:e,defaultInputStyle:t})=>H(e,t)}
|
|
1702
1702
|
|
|
1703
1703
|
border-bottom: ${({value:e,defaultColor:t,theme:l})=>e.length>0?"none":t};
|
|
@@ -1722,7 +1722,7 @@ float: right;
|
|
|
1722
1722
|
|
|
1723
1723
|
// custom styles
|
|
1724
1724
|
${({customInputStyle:e})=>e}
|
|
1725
|
-
`,
|
|
1725
|
+
`,Cl=m.div`
|
|
1726
1726
|
position: relative;
|
|
1727
1727
|
width: inherit;
|
|
1728
1728
|
display: flex;
|
|
@@ -1732,7 +1732,7 @@ float: right;
|
|
|
1732
1732
|
display: flex;
|
|
1733
1733
|
justify-content: center;
|
|
1734
1734
|
cursor: pointer;
|
|
1735
|
-
`,Sl=({onChange:e,activeColor:l,defaultColor:c,placeholderColor:n,placeholderText:a,customInputStyle:s,pointsArray:d,setPointsArray:p,value:m,setValue:u,valueForSignatureDrawing:g,setValueForSignatureDrawing:f,imageURL:h,setImageURL:y,id:x,...v})=>{const
|
|
1735
|
+
`,Sl=({onChange:e,activeColor:l,defaultColor:c,placeholderColor:n,placeholderText:a,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:c,theme:A},t.createElement(xl,{inBuiltCss:P,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:l,defaultColor:c,selected:C,isMyInputFocused:k,signIcon:!0,theme:A},t.createElement(vl,{activeColor:l,defaultColor:c,isMyInputFocused:k,theme:A,penIcon:!0,onClick:()=>{w("default"),B()}},t.createElement(Q,{icon:"pen-icon",color:"default"===C?l||A.primary["primary-1"]:A.black})),t.createElement(vl,{activeColor:l,defaultColor:c,theme:A,isMyInputFocused:k,penIcon:!1,onClick:()=>{w("sign"),B()}},t.createElement(Q,{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:c,theme:A,selected:C,isMyInputFocused:k,signIcon:!1,onTouchStart:()=>{}},"default"===C?t.createElement(Al,{inBuiltCss:P,defaultInputStyle:"signature-input-text",placeholder:a,placeholderColor:n,customInputStyle:s,onBlur:()=>E(!1),onFocus:()=>E(!0),id:x,value:m,defaultColor:c,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(Q,{icon:"cross-icon",color:c||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`
|
|
1736
1736
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1737
1737
|
//Set the styles from the default styles object
|
|
1738
1738
|
${({inBuiltCss:e,defaultWrapperStyle:t})=>H(e,t)}
|
|
@@ -1836,27 +1836,26 @@ float: right;
|
|
|
1836
1836
|
`,Tl=({label:e,errMsg:l,hour:o,minute:r,period:i,onChange:c,id:n,...a})=>{const s=b()||R;return t.createElement(Pl,V({theme:s},a),t.createElement(Wl,V({theme:s},a,{errMsg:l}),e),t.createElement("div",null,t.createElement(Bl,V({theme:s,id:n},a),t.createElement(Il,{theme:s,value:o,onChange:function(e){const t=e.currentTarget.value>12?12:parseFloat(e.currentTarget.value)||0;c({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;c({hour:o,minute:t,period:i})}}),t.createElement(Hl,{theme:s,onClick:function(e){c({hour:o,minute:r,period:"AM"===i?"PM":"AM"})}},i)),t.createElement("div",{className:"err-text"},l)))};Tl.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},Tl.defaultProps={label:"",hour:0,minute:0,period:"AM",required:!1,labelInline:!1,isValid:!0,errMsg:"",id:""};const jl=m.div`
|
|
1837
1837
|
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>H(e,t)}
|
|
1838
1838
|
`,Fl=m.label`
|
|
1839
|
+
position: absolute;
|
|
1840
|
+
width: 51.52px;
|
|
1841
|
+
height: 20.11px;
|
|
1842
|
+
border-radius: 11.04px;
|
|
1843
|
+
cursor: pointer;
|
|
1844
|
+
background-color: ${({checked:e,theme:t,isDisabled:l})=>l?t.neutral["neutral-3"]:e?t.primary["primary-1"]:e?void 0:t.neutral["neutral-2"]};
|
|
1839
1845
|
|
|
1840
|
-
left: ${({labelPosition:e})=>"right"===e?"initial":"50px"};
|
|
1841
|
-
margin-right: ${({labelPosition:e})=>"left"===e?"30px":"0px"};
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
//Set the styles from the default styles object
|
|
1845
|
-
${({inBuiltCss:e,defaultCheckBoxLabelStyle:t})=>H(e,t)}
|
|
1846
|
-
//changed
|
|
1847
|
-
background-color: ${({checked:e,backgroundColor:t,disabledColor:l,theme:o,isDisabled:r})=>r?l||o.neutral["neutral-3"]:e&&t?t:e&&!t?o.primary["primary-1"]:e?void 0:o.neutral["neutral-2"]};
|
|
1848
1846
|
// custom styles
|
|
1849
1847
|
${({customToggleBoxStyle:e})=>e}
|
|
1848
|
+
|
|
1850
1849
|
&:before {
|
|
1851
1850
|
content: '';
|
|
1852
1851
|
display: block;
|
|
1853
1852
|
border-radius: 50%;
|
|
1854
|
-
width:
|
|
1855
|
-
height:
|
|
1853
|
+
width: 14.55px;
|
|
1854
|
+
height: 14.37px;
|
|
1856
1855
|
margin-top: 3px;
|
|
1857
|
-
background: ${({
|
|
1856
|
+
background-color: ${({theme:e})=>e.bgColor};
|
|
1858
1857
|
transition: 0.2s;
|
|
1859
|
-
margin-left: ${({checked:e})=>e?"4px":"
|
|
1858
|
+
margin-left: ${({checked:e})=>e?"4px":"33px"};
|
|
1860
1859
|
|
|
1861
1860
|
// custom styles
|
|
1862
1861
|
${({customSwitchStyle:e})=>e}
|
|
@@ -1864,24 +1863,20 @@ float: right;
|
|
|
1864
1863
|
`,ql=m.input.attrs({type:"checkbox"})`
|
|
1865
1864
|
opacity: 0;
|
|
1866
1865
|
z-index: 1;
|
|
1867
|
-
border-radius:
|
|
1868
|
-
width:
|
|
1869
|
-
height:
|
|
1866
|
+
border-radius: 11.04px;
|
|
1867
|
+
width: 51.52px;
|
|
1868
|
+
height: 20.11px;
|
|
1870
1869
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1871
|
-
|
|
1872
|
-
left: ${({labelPosition:e})=>"right"===e?"initial":"50px"};
|
|
1873
|
-
|
|
1874
|
-
|
|
1870
|
+
margin: 0;
|
|
1875
1871
|
`,Zl=m.span`
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
${({inBuiltCss:e,defaultOptionTextStyle:t})=>H(e,t)}
|
|
1872
|
+
color: ${({theme:e})=>e.neutral["neutral-5"]};
|
|
1873
|
+
font-size: 10px;
|
|
1874
|
+
position: absolute;
|
|
1875
|
+
left: ${({checked:e})=>e?"36px":"22px"};
|
|
1881
1876
|
|
|
1882
1877
|
// custom styles
|
|
1883
|
-
|
|
1884
|
-
`,Ol=({checked:e,customSwitchStyle:l,customToggleBoxStyle:o,
|
|
1878
|
+
${({optionStyle:e})=>e};
|
|
1879
|
+
`,Ol=({checked:e,customSwitchStyle:l,customToggleBoxStyle:o,onClick:r,optionStyle:i,id:c,isDisabled:n,...a})=>{const s=b()||R;return t.createElement(jl,V({inBuiltCss:P,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},a),t.createElement(ql,V({},a,{id:c,inBuiltCss:P,onClick:()=>{r(!e)},isChecked:e,disabled:n,isDisabled:n})),t.createElement(Fl,V({},a,{htmlFor:c,customToggleBoxStyle:o,customSwitchStyle:l,inBuiltCss:P,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:s,isDisabled:n})),t.createElement(Zl,V({optionStyle:i,inBuiltCss:P,theme:s,checked:e},a),e?"Yes":"NO"))};Ol.propTypes={customToggleBoxStyle:e.object,customSwitchStyle:e.object,checked:e.bool,id:e.string,isDisabled:e.bool},Ol.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1};const Dl=m.div`
|
|
1885
1880
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1886
1881
|
padding: 24px 8px;
|
|
1887
1882
|
${({commentBodyStyle:e})=>e};
|
|
@@ -1922,7 +1917,7 @@ float: right;
|
|
|
1922
1917
|
`,Ql=m.div`
|
|
1923
1918
|
width: 100%;
|
|
1924
1919
|
margin-left: 16px;
|
|
1925
|
-
`,Kl=({inputValue:e,setInputValue:l,commentArray:o,commentBodyStyle:i,commentWrapperStyle:c,commentHeadStyle:n,dateTimeStyle:a,commentDivStyle:s,inputWrapperStyle:d,onSave:p,myInfo:m,placeholder:u,loading:g,btnText:f,isLoading:h,...y})=>{const x=b()||R,[v,
|
|
1920
|
+
`,Kl=({inputValue:e,setInputValue:l,commentArray:o,commentBodyStyle:i,commentWrapperStyle:c,commentHeadStyle:n,dateTimeStyle:a,commentDivStyle:s,inputWrapperStyle:d,onSave:p,myInfo:m,placeholder:u,loading:g,btnText:f,isLoading:h,...y})=>{const x=b()||R,[v,A]=r(!1);return t.createElement(Dl,{commentWrapperStyle:c,theme:x},g?t.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:"24px"}},t.createElement(Be,{size:26})):o.map(((e,l)=>{const{name:o,date:r,comment:c,image:d}=e;return t.createElement(Gl,{key:l,commentBodyStyle:i,theme:x},t.createElement(Xl,{commentHeadStyle:n},t.createElement(de,V({user:{fullName:o,userName:o,url:d},toggleName:!0,size:"LG"},y)),t.createElement(Jl,{dateTimeStyle:a,theme:x},r)),t.createElement(Ul,{commentDivStyle:s},c))})),t.createElement(Nl,{theme:x,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(Ql,null,t.createElement(fl,{value:e,onChange:e=>l(e.target.value),placeholder:u,isValid:!0,inputStyle:{height:"23px"},onFocus:e=>A(!0)}),v&&t.createElement(Yl,null,t.createElement(He,V({size:"sm",onClick:p,isLoading:h},y),f.save),t.createElement(We,{disabled:!!h,size:"sm",btnStyle:{color:x.variant["neutral-1"]},onClick:e=>A(!1)},f.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,loading:e.bool,btnText:e.object},Kl.defaultProps={commentBodyStyle:{},commentWrapperStyle:{},commentHeadStyle:{},dateTimeStyle:{},commentDivStyle:{},inputWrapperStyle:{},onSave:()=>{},commentArray:[],inputValue:"",setInputValue:()=>{},myInfo:{},placeholder:"",loading:!1,btnText:{save:"Save",cancel:"Cancel"}};const $l=m.div`
|
|
1926
1921
|
//Set the styles from the default styles object
|
|
1927
1922
|
${({theme:e,type:t})=>H(e,t)}
|
|
1928
1923
|
@media (max-width: 980px) {
|
|
@@ -2217,10 +2212,10 @@ float: right;
|
|
|
2217
2212
|
content: '';
|
|
2218
2213
|
height: ${({vertical:e,thickness:t,height:l})=>e?l:t};
|
|
2219
2214
|
width: ${({vertical:e,thickness:t})=>e?t:null};
|
|
2220
|
-
`,vo=({vertical:e,borderColor:l,thickness:o,height:r,...i})=>{const c=b()||R;return t.createElement(xo,V({theme:c,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
|
|
2215
|
+
`,vo=({vertical:e,borderColor:l,thickness:o,height:r,...i})=>{const c=b()||R;return t.createElement(xo,V({theme:c,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`
|
|
2221
2216
|
//Set the styles from the default styles object
|
|
2222
2217
|
${({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}}}}
|
|
2223
|
-
`,
|
|
2218
|
+
`,Co=({customStyles:e,drawerOpen:l,setDrawerOpen:o,children:r,...i})=>t.createElement(Ao,V({inBuiltCss:P,customStyles:e,type:"drawer",drawerOpen:l},i),r);Co.propTypes={customStyles:e.object,drawerOpen:e.bool,setDrawerOpen:e.func},Co.defaultProps={setDrawerOpen:()=>null};class wo extends n{constructor(e){super(e),this.state={hasError:!1},this.refreshPage=this.refreshPage.bind(this)}componentDidCatch(e,t){this.setState({hasError:!0})}refreshPage(){window.location.reload()}render(){const{hasError:e}=this.state;return e?t.createElement(a,null,t.createElement("h3",null,t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1.12em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1856 1664"},t.createElement("path",{d:"M1056 1375v-190q0-14-9.5-23.5t-22.5-9.5H832q-13 0-22.5 9.5T800 1185v190q0 14 9.5 23.5t22.5 9.5h192q13 0 22.5-9.5t9.5-23.5zm-2-374l18-459q0-12-10-19q-13-11-24-11H818q-11 0-24 11q-10 7-10 21l17 457q0 10 10 16.5t24 6.5h185q14 0 23.5-6.5t10.5-16.5zm-14-934l768 1408q35 63-2 126q-17 29-46.5 46t-63.5 17H160q-34 0-63.5-17T50 1601q-37-63-2-126L816 67q17-31 47-49t65-18t65 18t47 49z",fill:"currentColor"})),"We have experienced an issue. We generated a support ticket on our end to investigate this issue We are sorry about the inconvenience."),t.createElement(He,{onClick:()=>this.refreshPage()},"Click to refresh")):this.props.children}}wo.propTypes={children:e.any};const So=u`
|
|
2224
2219
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
2225
2220
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
2226
2221
|
background: ${({theme:e})=>T(e.primary["primary-1"],.04)};
|
|
@@ -2331,11 +2326,11 @@ svg {
|
|
|
2331
2326
|
`}
|
|
2332
2327
|
}
|
|
2333
2328
|
}
|
|
2334
|
-
`,Fo=({theme:e,toggleSet:l,slide:o,color:r,size:i,transform:c,ratingValue:n,starVal:a,hover:s,...d})=>t.createElement(jo,V({theme:e,ratingValue:n,starVal:a,hover:s,toggleSet:l,color:r,size:i,transform:c},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 qo(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:c,color:n,size:a,handleClick:s,transform:d,maxRange:p,value:m,toggleStar:u,toggleSet:g,identifier:f,...h})=>{b();const[y,x]=r(void 0),[v,
|
|
2329
|
+
`,Fo=({theme:e,toggleSet:l,slide:o,color:r,size:i,transform:c,ratingValue:n,starVal:a,hover:s,...d})=>t.createElement(jo,V({theme:e,ratingValue:n,starVal:a,hover:s,toggleSet:l,color:r,size:i,transform:c},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 qo(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:c,color:n,size:a,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(qo(m,p).array),A(qo(m,p).value),w(Zo(m,p))}),[m,p]),i((()=>{S?x(qo(S,p).array):(x(qo(m,p).array),A(qo(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(Fo,{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:n,className:"star",size:a,transform:d,key:f?.concat(l),customStyles:o})})));return t.createElement(Ho,V({customStyles:l,type:e,size:a},h,{className:"container"}),u?E:t.createElement(To,{type:e,customStyles:c},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 Do=m.div`
|
|
2335
2330
|
.form-check-input {
|
|
2336
2331
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2337
2332
|
}
|
|
2338
|
-
`,Go=({customStyles:e,inBuiltCss:l,type:o="table",sortIcon:r,data:i,tableColumns:c,progressPending:n,defaultSortFieldId:a,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,
|
|
2333
|
+
`,Go=({customStyles:e,inBuiltCss:l,type:o="table",sortIcon:r,data:i,tableColumns:c,progressPending:n,defaultSortFieldId:a,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(Do,{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:c,noHeader:!0,highlightOnHover:!0,sortIcon:r,progressPending:n,customStyles:x,defaultSortFieldId:a,progressComponent:p||void 0,sortServer:d,onSort:(e,t,l)=>{s(e,t,l)},conditionalRowStyles:u,fixedHeader:g,fixedHeaderScrollHeight:f,selectableRowsComponent:A},y))};Go.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},Go.defaultProps={inBuiltCss:P,sortIcon:t.createElement(Q,{icon:"arrow-down",size:11,color:"#333333",style:{transform:"scaleX(0.7) scaleY(0.7) translate(5px, -3px)"}}),data:[],tableColumns:[],progressPending:!1,defaultSortFieldId:null,handleOnSort:(e,t,l)=>{},sortServer:null,progressComponent:void 0,responsive:!0,fixedHeader:!0,fixedHeaderScrollHeight:"100%"};const Xo=({title:e,subtitle:l,wrapperStyle:o,imgLink:r,imgStyle:i,iconSize:c})=>{const n=b()||R,a={fontSize:"26px",fontWeight:"bold",color:`${n.textColor}`,lineHeight:"36px",display:"flex",gap:"14px",alignItems:"flex-start",paddingLeft:"25px"},s={fontSize:"13px",color:`${n.neutral["neutral-2"]}`,lineHeight:"24px",paddingLeft:"25px"};return t.createElement("div",{style:o},t.createElement("div",{style:a},r?t.createElement("img",{src:r,alt:"userIcon",srcset:"",style:i}):t.createElement(Q,{icon:"user-icon",size:c,color:n.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(a,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(at,V({},e,o)))(e);case"singleSelect":return(e=>t.createElement(Wt,V({dropdownType:"singleSelect"},e,o)))(e);case"multiSelect":return(e=>t.createElement(Wt,V({dropdownType:"multiSelect"},e,o)))(e);case"asyncSingleSelect":return(e=>t.createElement(Wt,V({dropdownType:"asyncSingleSelect"},e,o)))(e);case"asyncMultiSelect":return(e=>t.createElement(Wt,V({dropdownType:"asyncMultiSelect"},e,o)))(e);case"signature":return(e=>t.createElement(Sl,V({},e,o)))(e);case"fileUpload":return(e=>t.createElement(Dt,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(He,V({},e,o)))(e);case"buttonSecondary":return(e=>t.createElement(Fe,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(Go,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(a,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 c=e=>{switch(e.type){case"submit":return(e=>t.createElement(He,{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(Fe,{block:e.block,disabled:i.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return t.createElement(a,null,t.createElement(uo,{style:r},e&&e.map(((e,t)=>e.map(((e,t)=>c(e)))))))};const No=f`
|
|
2339
2334
|
@font-face {
|
|
2340
2335
|
font-family: "Averta";
|
|
2341
2336
|
font-weight: 100;
|
|
@@ -2503,7 +2498,7 @@ svg {
|
|
|
2503
2498
|
justify-content: space-evenly;
|
|
2504
2499
|
flex-grow: 1;
|
|
2505
2500
|
align-items: stretch;
|
|
2506
|
-
`,tr=({label:e,index:l,style:o,items:r,variant:i,borderVariant:c,bgVariant:n,variantDisable:a,variantBgDisable:s,disabled:d,divider:p,indexPrefix:m,onClick:u,icon:g,variantTPtext:f,variantTPbg:h,...x})=>{b();const{getArrowProps:v,getTooltipProps:
|
|
2501
|
+
`,tr=({label:e,index:l,style:o,items:r,variant:i,borderVariant:c,bgVariant:n,variantDisable:a,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:c,bgVariant:n,variantDisable:a,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`
|
|
2507
2502
|
display: flex;
|
|
2508
2503
|
justify-content: space-evenly;
|
|
2509
2504
|
align-items: stretch;
|
|
@@ -2615,12 +2610,12 @@ svg {
|
|
|
2615
2610
|
${({inBuiltCss:e,type:t})=>H(e,t)}
|
|
2616
2611
|
// custom styles
|
|
2617
2612
|
${({customModalBodyStyle:e})=>e}
|
|
2618
|
-
`,
|
|
2613
|
+
`,Ar=m.div`
|
|
2619
2614
|
max-height: 60vh;
|
|
2620
2615
|
padding: 0 24px 24px 24px;
|
|
2621
2616
|
overflow-y: auto;
|
|
2622
2617
|
${({contentWrapperStyle:e})=>e}
|
|
2623
|
-
`,
|
|
2618
|
+
`,Cr=m.div`
|
|
2624
2619
|
padding-top: 16px;
|
|
2625
2620
|
|
|
2626
2621
|
//Set the styles from the default styles object
|
|
@@ -2629,7 +2624,7 @@ svg {
|
|
|
2629
2624
|
${({customModalFooterStyle:e})=>e}
|
|
2630
2625
|
`,wr=m.div`
|
|
2631
2626
|
cursor: pointer;
|
|
2632
|
-
`;try{E.setAppElement("#root")}catch(e){E.setAppElement("#__next")}const Sr=({modalIsOpen:e,toggleModal:l,closeOnOutsideClick:o,headerContent:r,bodyContent:i,footerContent:c,customModalHeaderStyle:n,customModalBodyStyle:a,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:n},r,t.createElement(wr,{onClick:l},t.createElement(Q,{icon:"close-icon",size:18}))),t.createElement(
|
|
2627
|
+
`;try{E.setAppElement("#root")}catch(e){E.setAppElement("#__next")}const Sr=({modalIsOpen:e,toggleModal:l,closeOnOutsideClick:o,headerContent:r,bodyContent:i,footerContent:c,customModalHeaderStyle:n,customModalBodyStyle:a,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:n},r,t.createElement(wr,{onClick:l},t.createElement(Q,{icon:"close-icon",size:18}))),t.createElement(Ar,{contentWrapperStyle:g},t.createElement(vr,{inBuiltCss:P,style:a},i),t.createElement(Cr,{inBuiltCss:P,style:s},c)))};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:9999999};const kr=m.div`
|
|
2633
2628
|
${({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}}}}
|
|
2634
2629
|
}
|
|
2635
2630
|
`,Er=({theme:e,toggleSimple:l,contentTrigger:o,contentOverlay:r,popperOptionsP:i,settingsP:c,customStyles:n,...a})=>{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,...c};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:n}),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.ul`
|
|
@@ -2704,7 +2699,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2704
2699
|
}
|
|
2705
2700
|
|
|
2706
2701
|
${({customIconWrapperStyles:e})=>e}
|
|
2707
|
-
`,Mr=(e,t,l=1)=>{let o=e;const r=[];for(;o<=t;)r.push(o),o+=l;return r},Br=({totalRecords:e,pageLimit:l,pageNeighbours:o,onPageChanged:c})=>{const[
|
|
2702
|
+
`,Mr=(e,t,l=1)=>{let o=e;const r=[];for(;o<=t;)r.push(o),o+=l;return r},Br=({totalRecords:e,pageLimit:l,pageNeighbours:o,onPageChanged:c,currentPageNumber:n})=>{const[a,s]=r(1),[d,p]=r(Math.ceil(e/l)),m=b()||R;console.log(n),i((()=>{p(Math.ceil(e/l)),console.log(n),u(n)}),[]);const u=t=>{const o=Math.max(0,Math.min(t,d));console.log(o,t),s(o);c({currentPage:o,totalPages:d,pageLimit:l,totalRecords:e}),console.log(o,a)},g=e=>t=>{t.preventDefault(),u(e)},f=e=>{e.preventDefault(),u(a-2*o-1)},h=e=>{e.preventDefault(),u(a+2*o+1)};if(!e||1===d||0===l)return null;const y=(()=>{const e=2*o+3;if(d>e+3){const t=Math.max(2,a-o),l=Math.min(d-1,a+o);let r=Mr(t,l);const i=t>2,c=d-l>1,n=e-(r.length+1);switch(!0){case i&&!c:r=["LEFT",...Mr(t-n,t-1),...r];break;case!i&&c:{const e=Mr(l+1,l+n);r=[...r,...e,"RIGHT"];break}default:r=["LEFT",...r,"RIGHT"]}return[1,...r,d]}return Mr(1,d)})();return t.createElement(zr,{theme:m},t.createElement(Vr,{onClick:1!==a?g(a-1):null,disabled:1===a,theme:m},t.createElement(Q,{icon:"triangle-down",transform:"rotate(90deg)",color:m.variant["neutral-3"]}),t.createElement("span",{className:"prev-text"}," PREVIOUS")),y.map(((e,l)=>"LEFT"===e?t.createElement("li",{key:l,className:"page-item"},t.createElement("div",{className:"page-link",onClick:f},t.createElement("span",{className:"text"},t.createElement(Q,{icon:"load-more",color:m.primary["primary-2"],transform:"rotate(90deg)"})),t.createElement("span",{className:"icon"},t.createElement(Q,{icon:"ellipses-horizontal",color:m.primary["primary-2"]}))," ")):"RIGHT"===e?t.createElement("li",{key:l,className:"page-item"},t.createElement("div",{className:"page-link",onClick:h},t.createElement("span",{className:"text"},t.createElement(Q,{icon:"load-more",color:m.primary["primary-2"],transform:"rotate(-90deg)"})),t.createElement("span",{className:"icon"},t.createElement(Q,{icon:"ellipses-horizontal",color:m.primary["primary-2"]})))):t.createElement("li",{key:l,className:"page-item"+(a===e?" active":"")},t.createElement("div",{className:"page-link",onClick:g(e)},e)))),t.createElement(Vr,{onClick:a!==d?g(a+1):null,disabled:a===d,theme:m},t.createElement("span",{className:"next-text"}," NEXT"),t.createElement(Q,{icon:"triangle-down",transform:"rotate(-90deg)",color:m.variant["neutral-3"]})))};Br.propTypes={totalRecords:e.number.isRequired,pageLimit:e.number,pageNeighbours:e.number,onPageChanged:e.func},Br.defaultProps={totalRecords:0,pageLimit:10,pageNeighbours:1,onPageChanged:()=>null};const Ir=m.div`
|
|
2708
2703
|
display: flex;
|
|
2709
2704
|
align-items: center;
|
|
2710
2705
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
@@ -2786,7 +2781,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2786
2781
|
margin: 0 10px;
|
|
2787
2782
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2788
2783
|
}
|
|
2789
|
-
`,qr=({selectedPage:e,setSelectedPage:l,totalPage:o,customItemStyles:c,customLeftWrapperStyles:n,customIconWrapperStyles:a,previousText:s,nextText:d,pageToShow:p,totalResults:m,showResultPerPage:u,customParentStyles:g,customRightWrapperStyles:f,...h})=>{const y=b()||R,[x,v]=r([]);let
|
|
2784
|
+
`,qr=({selectedPage:e,setSelectedPage:l,totalPage:o,customItemStyles:c,customLeftWrapperStyles:n,customIconWrapperStyles:a,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)),v(r),l(e+1)):"decrease"===t&&x[0]<=e-1?l(e-1):"decrease"===t&&e>1&&(v(Array.from({length:A},((e,t)=>t+x[0]-1))),l(e-1))};return t.createElement(Rr,{customParentStyles:g}," ",t.createElement(jr,V({theme:y,customLeftWrapperStyles:n},h),t.createElement(Hr,V({onClick:()=>C("decrease"),disabled:1===e,theme:y,customIconWrapperStyles:a},h),t.createElement(Q,{icon:"triangle-down",transform:"rotate(90deg)",color:y.variant["neutral-3"]}),t.createElement("span",{className:"prev-text"}," ",s)),t.createElement(Tr,h,x.map(((o,r)=>t.createElement(Pr,{key:r,theme:y,selected:e===o,onClick:()=>l(o),customItemStyles:c},o)))),t.createElement(Hr,{onClick:()=>C("increase"),disabled:e===o,theme:y,customIconWrapperStyles:a},t.createElement("span",{className:"next-text"}," ",d),t.createElement(Q,{icon:"triangle-down",transform:"rotate(-90deg)",color:y.variant["neutral-3"]}))),u&&t.createElement(Fr,{theme:y,customRightWrapperStyles:f},t.createElement(Wt,{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"))))};qr.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},qr.defaultProps={selectedPage:1,customItemStyles:{},customLeftWrapperStyles:{},customIconWrapperStyles:{},previousText:"PREVIOUS",nextText:"NEXT",pageToShow:5,totalResults:0,showResultPerPage:!1,customParentStyles:{},customRightWrapperStyles:{}};const Zr=m.div`
|
|
2790
2785
|
position: relative;
|
|
2791
2786
|
height: 10px;
|
|
2792
2787
|
border-radius: 10px;
|
|
@@ -2969,7 +2964,7 @@ position: relative;
|
|
|
2969
2964
|
p {
|
|
2970
2965
|
margin: 0;
|
|
2971
2966
|
}
|
|
2972
|
-
`,oi=({headerContent:e,bodyContent:l,footerContent:o,toggleSideBarOpen:c,headerStyles:n,selectedStyle:a,notSelectedStyle:s,customStylesNameHover:d,listElementStyle:p,customSelectCardColor:m,user:u,firstBottomContent:g,secondBottomContent:f,selectedAppPath:h,setSelectedAppPath:y,selectedAppPageId:x,setSelectedAppPageId:v,setParentId:
|
|
2967
|
+
`,oi=({headerContent:e,bodyContent:l,footerContent:o,toggleSideBarOpen:c,headerStyles:n,selectedStyle:a,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})=>{const w=b()||R,[S,k]=r(null),[E,z]=r(!1),[V,M]=r([]);return i((()=>{M(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?.id||null),C(o||null),A(t?.id||null)}),[h]),t.createElement(_r,{onMouseEnter:()=>z(!0),onMouseLeave:()=>{k(null),z(!1)},toggleSideBarOpen:c},t.createElement(ei,{theme:w,headerStyles:n,toggleSideBarOpen:c},e),t.createElement(ti,null,l&&l?.filter((e=>!0===e.visibleAsMenu))?.map(((e,l,o)=>{let r=o.length;return t.createElement("div",{className:"service-layer"},t.createElement(_,{key:l,index:l,handleClick:e=>{!function(e){k(e)}(e)},isAccordionOpen:l===S||E&&e?.value?.toLowerCase()===V[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===V[1]?.toLowerCase(),customSelectCardColor:m,customStylesAccordionContainer:{"box-shadow":"none","border-radius":"0px","background-color":"transparent",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:a,notSelectedStyle:s,toggleName:c,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()===V[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(((e,l)=>t.createElement(li,{listElementStyle:p,key:l,onClick:()=>{y(e.path)}},t.createElement("span",{className:"selected-disk",style:{visibility:V[2]?.toLowerCase()===e?.path.split("/")[2]?.toLowerCase()?"visible":"hidden"}}),t.createElement("span",{className:"link"}," ",e?.link)))))}))}))))},ri=m.div`
|
|
2973
2968
|
background-color: ${({theme:e})=>e.variant["primary-1"]} !important;
|
|
2974
2969
|
color: ${({theme:e})=>e.bgColor};
|
|
2975
2970
|
overflow-y: hidden;
|
|
@@ -3053,14 +3048,14 @@ overflow: hidden;
|
|
|
3053
3048
|
`,yi=({block:e,style:l,variant:o,textColor:r,borderColor:i,...c})=>(b(),t.createElement(hi,V({block:e,variant:o,textColor:r,borderColor:i,style:l},c),c.children));yi.propTypes={variant:e.string,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,theme:e.object,textColor:e.string,borderColor:e.string},hi.defaultProps={theme:R},yi.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const xi=e=>t.createElement("div",null,e.childern);xi.propTypes={name:e.string};const vi=m.div`
|
|
3054
3049
|
padding: 24px;
|
|
3055
3050
|
${({tabWrapperStyle:e})=>e}
|
|
3056
|
-
`,
|
|
3051
|
+
`,Ai=m.div`
|
|
3057
3052
|
color: ${({theme:e})=>e.variant["graph-5"]};
|
|
3058
3053
|
display: flex;
|
|
3059
3054
|
align-items: flex-start;
|
|
3060
3055
|
column-gap: 12px;
|
|
3061
3056
|
padding-bottom: 24px;
|
|
3062
3057
|
${({headerWrapperStyle:e})=>e}
|
|
3063
|
-
`,
|
|
3058
|
+
`,Ci=m.span`
|
|
3064
3059
|
font-size: 16px;
|
|
3065
3060
|
padding: 7px 20px;
|
|
3066
3061
|
background-color: ${({theme:e,isActive:t})=>t?T(e.variant["primary-1"],.2):"transparent"};
|
|
@@ -3069,7 +3064,7 @@ overflow: hidden;
|
|
|
3069
3064
|
${({headerStyle:e})=>e}
|
|
3070
3065
|
`,wi=m.div`
|
|
3071
3066
|
${({tabContentStyle:e})=>e}
|
|
3072
|
-
`,Si=({children:e,tabWrapperStyle:l,headerStyle:o,tabContentStyle:c,headerWrapperStyle:n,dividerStyle:a,activeIndex:s,...d})=>{const[p,m]=r([]),[u,g]=r({}),[f,h]=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})),m(l),h(l[s]),g({...o})}),[e]);const y=b()||R;return t.createElement(vi,{tabWrapperStyle:l},t.createElement(
|
|
3067
|
+
`,Si=({children:e,tabWrapperStyle:l,headerStyle:o,tabContentStyle:c,headerWrapperStyle:n,dividerStyle:a,activeIndex:s,...d})=>{const[p,m]=r([]),[u,g]=r({}),[f,h]=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})),m(l),h(l[s]),g({...o})}),[e]);const y=b()||R;return t.createElement(vi,{tabWrapperStyle:l},t.createElement(Ai,{theme:y,headerWrapperStyle:n},p.map(((e,l)=>t.createElement(Ci,{onClick:()=>{h(e)},key:l,theme:y,isActive:e===f,headerStyle:o},e)))),t.createElement(vo,{theme:y,height:"8px",dividerStyle:a}),t.createElement(wi,{tabContentStyle:c},Object.keys(u).map((e=>e===f?t.createElement("div",{key:e},u[e]):null))))};Si.propTypes={children:function(e,l,o){const r=e[l];let i=null;return t.Children.forEach(r,(function(e){e.type!==xi&&(i=new Error("`"+o+"` children should be of type `TabPanel`."))})),i}},Si.propTypes={tabWrapperStyle:e.object,headerWrapperStyle:e.object,headerStyle:e.object,dividerStyle:e.object,tabContentStyle:e.object,activeIndex:e.number},Si.defaultProps={tabWrapperStyle:{},headerStyle:{},tabContentStyle:{},headerWrapperStyle:{},dividerStyle:{},activeIndex:0};const ki=m.div`
|
|
3073
3068
|
.notification {
|
|
3074
3069
|
background: ${({theme:e})=>e.bgColor};
|
|
3075
3070
|
transition: 0.3s ease;
|
|
@@ -3201,4 +3196,4 @@ overflow: hidden;
|
|
|
3201
3196
|
// background: ${({theme:e,bg:t})=>t?e.variant[t]:e.bgColor};
|
|
3202
3197
|
font-size: ${({size:e})=>Li[e].fontSize};
|
|
3203
3198
|
line-height: ${({size:e})=>Li[e].lineHeight};
|
|
3204
|
-
`,Ri=({size:e,children:l,bg:o,text:r,...i})=>{const c=b()||R;return t.createElement(Wi,V({theme:c,bg:o,text:r,size:e},i),t.createElement(No,{theme:c}),l)};Ri.propTypes={size:e.oneOf(["xs","sm","md","lg"]),text:e.string,bg:e.string,children:e.any,theme:e.object},Ri.defaultProps={size:"md"};export{$ as Accordion,_ as AccordionSB,ee as AccordionSBfooter,ao as ActionContainer,mo as ActionItem,re as ArrowBar,de as Avatar,ge as AvatarSB,xe as AvatarSBfooter,
|
|
3199
|
+
`,Ri=({size:e,children:l,bg:o,text:r,...i})=>{const c=b()||R;return t.createElement(Wi,V({theme:c,bg:o,text:r,size:e},i),t.createElement(No,{theme:c}),l)};Ri.propTypes={size:e.oneOf(["xs","sm","md","lg"]),text:e.string,bg:e.string,children:e.any,theme:e.object},Ri.defaultProps={size:"md"};export{$ as Accordion,_ as AccordionSB,ee as AccordionSBfooter,ao 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,F as Card,Z as CardRef,at as CheckBoxInput,pt as ColorInput,Kl as Comment,_l as Content,Qr as DarkSecondaryLink,vt as DateSelect,Vt as DateTime,vo as Divider,J as DocumentCard,Se as DotPulseLoader,Co as Drawer,Wt as DropdownSelect,Dt as DropzoneInput,wo as ErrorBoundary,Eo as FilterChip,Vo as Footer,Wo 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,Q as Icon,ce as Image,Nt as ImageUploader,lt as Label,$r as LightSecondaryLink,We as LinkButton,ze as Loader,Sr as ModalComp,fo as MultiColumnDiv,go as MultiColumnWrapper,oi as Navbar,el as NumericInput,Er as Overlay,so as OverlayOptionContainer,po as OverlayOptionItemLabel,eo as PageContent,Br as Pagination,Lr as PaginationDefault,qr as PaginationTypeTwo,il as PasswordInput,He as PrimaryButton,si as PrimaryStatusChip,Dr as ProgressBar,Nr as ProgressSteps,pl as RadioInput,Oo as Rating,Be as RoundedLoader,hl as SearchInput,Fe as SecondaryButton,mi as SecondaryStatusChip,ci as Sidebar,Sl as SignatureInput,gi as SlimPrimaryStatusChip,yi as SlimSecondaryStatusChip,pr as StatusCircle,oo as StyledCentralBar,lo as StyledClearSearch,io as StyledCreateRow,co as StyledRow,to as StyledRowSearch,no as StyledSearchRow,ro as StyledWarning,uo as SubmitButtonContainer,Uo as SubmitComponent,xi as TabPanel,Go as Table,Si as Tabs,Ml as TextArea,fl as TextInput,Tl as TimeInput,Ze as TinyButton,Bi as ToastProvider,Ol as ToggleSwitch,Ye as Tooltip,Ri as Typography,P as defaultStyles,R as defaultThemeColor,H as getDefaultStyles,W as graphColor,T as hexToRGB,I as neutralColor,M as primaryColor,L as shadeColor,B as uiColor,Ii as useToast};
|