groundfloor-react-ui 1.2.41 → 1.2.43
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 +187 -174
- package/dist/index.js +185 -172
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("prop-types"),t=require("react"),l=require("styled-components"),a=require("react-svg"),o=require("react-popper-tooltip"),r=require("react-datepicker"),i=require("dayjs");require("dayjs/locale/es");var n=require("react-select"),c=require("react-select/async"),s=require("react-signature-pad-wrapper"),d=require("react-data-table-component"),u=require("react-modal"),p=require("react-dom");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=f(e),b=f(t),g=f(l),h=f(r),y=f(i),x=f(n),v=f(c),A=f(s),C=f(d),w=f(u);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},S.apply(this,arguments)}const E={"primary-1":"#2E56F4","primary-2":"#081348"},k={error:"#DD0000",success:"#00B904 "},z={"neutral-1":"#39424D","neutral-2":"#929EAC","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},V={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},B={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},M={primary:{...E},ui:{...k},neutral:{...z},shade:{...V},graph:{...B},variant:{...E,...k,...z,...V,...B},textColor:E["primary-2"],bgColor:"#FFFFFF",black:"#000000",border:"#D4D7E3"},I={common:{color:"blue","background-color":`${M.bgColor}`},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${M.variant["neutral-2"]}`,"margin-bottom":"0","padding-bottom":"0"},button:{color:"red","border-color":"black"},progressbarLabel:{display:"block","margin-left":"13px","margin-bottom":"7px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${M.neutral["neutral-2"]}`},spinner:{"background-color":`${M.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:`${M.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:`${M.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:`${M.variant["neutral-5"]}`,borderLeft:`1px solid ${M.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${M.variant["neutral-5"]}`,borderTop:`1px solid ${M.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:`${M.variant.bgColor}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${M.variant["neutral-5"]}`,borderRight:`1px solid ${M.variant["neutral-5"]}`,borderBottom:`1px solid ${M.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${M.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":`${M.bgColor}`,"border-bottom":`0.5px solid ${M.variant["neutral-3"]}`},content:{"background-color":"#eef1f7",width:"100%","min-height":"100%","padding-top":"53px","box-sizing":"border-box",display:"flex","flex-direction":"column","margin-left":"70px"},"radio-outer-circle":{width:"20px",height:"20px","min-width":"20px","min-height":"20px","border-radius":"50%",display:"flex","justify-content":"center","align-items":"center"},"radio-inner-circle":{display:"flex","align-self":"center",margin:"0","border-radius":"50%"},"radio-label":{display:"block","margin-bottom":"7px","padding-bottom":"0",color:`${M.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 ${M.border}`,minWidth:"20px",width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${M.bgColor}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",minWidth:"20px",width:"20px",height:"20px",color:`${M.bgColor}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"7px","padding-bottom":"0px",color:`${M.variant["neutral-2"]}`},"checkbox-option-text":{"font-size":"16px","margin-left":"10px","background-color":`${M.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:`${M.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:` ${M.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${M.textColor}`,"background-color":`${M.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:`${M.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:`${M.textColor}`,"background-color":`${M.bgColor}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${M.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${M.bgColor}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${M.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":`${M.bgColor}`,"border-radius":"3.6px",border:`1px solid ${M.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 ${M.bgColor} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${M.bgColor} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${M.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${M.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${M.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${M.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${M.bgColor}`,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${M.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":`${M.bgColor}`,"border-radius":"3.6px",border:`1px solid ${M.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":`${M.variant["neutral-1"]}`,"border-radius":"6px",border:`1px solid ${M.variant["neutral-1"]}`,color:`${M.bgColor}`,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",transition:"all ease 300ms",display:"flex","flex-direction":"column","z-index":"1001"},"sidebar-container-open":{width:"240px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"240px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px",width:"24px",height:"24px"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},W=(e,t)=>{if(e){let l={};if(e[t]){for(const a in e[t])l[a]=e[t][a],delete e.common[a];for(const t in e.common)l[t]=e.common[t]}return l}};function R(e,t){var l=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+a+", "+o+", "+t+")":"rgb("+l+", "+a+", "+o+")"}R("#FF0000",.5);const L=g.default.div`
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("prop-types"),t=require("react"),l=require("styled-components"),a=require("react-svg"),o=require("react-popper-tooltip"),r=require("react-datepicker"),i=require("dayjs");require("dayjs/locale/es");var n=require("react-select"),c=require("react-select/async"),s=require("react-signature-pad-wrapper"),d=require("react-data-table-component"),u=require("react-modal"),p=require("react-dom");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=f(e),b=f(t),g=f(l),h=f(r),y=f(i),x=f(n),v=f(c),A=f(s),C=f(d),w=f(u);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},S.apply(this,arguments)}const E={"primary-1":"#2E56F4","primary-2":"#081348"},k={error:"#DD0000",success:"#00B904 "},z={"neutral-1":"#39424D","neutral-2":"#929EAC","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},V={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},B={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},M={primary:{...E},ui:{...k},neutral:{...z},shade:{...V},graph:{...B},variant:{...E,...k,...z,...V,...B},textColor:E["primary-2"],bgColor:"#FFFFFF",black:"#000000",border:"#D4D7E3"},I={common:{color:"blue","background-color":`${M.bgColor}`},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${M.variant["neutral-2"]}`,"margin-bottom":"0","padding-bottom":"0"},button:{color:"red","border-color":"black"},"progressBar-label":{display:"block","margin-left":"13px","margin-bottom":"8px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${M.neutral["neutral-2"]}`},spinner:{"background-color":`${M.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:`${M.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:`${M.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:`${M.variant["neutral-5"]}`,borderLeft:`1px solid ${M.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${M.variant["neutral-5"]}`,borderTop:`1px solid ${M.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:`${M.variant.bgColor}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${M.variant["neutral-5"]}`,borderRight:`1px solid ${M.variant["neutral-5"]}`,borderBottom:`1px solid ${M.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${M.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":`${M.bgColor}`,"border-bottom":`0.5px solid ${M.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:`${M.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 ${M.border}`,minWidth:"20px",width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${M.bgColor}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",minWidth:"20px",width:"20px",height:"20px",color:`${M.bgColor}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${M.variant["neutral-2"]}`},"checkbox-option-text":{"font-size":"16px","margin-left":"10px","background-color":`${M.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:`${M.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:` ${M.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${M.textColor}`,"background-color":`${M.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:`${M.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:`${M.textColor}`,"background-color":`${M.bgColor}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${M.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${M.bgColor}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${M.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":`${M.bgColor}`,"border-radius":"3.6px",border:`1px solid ${M.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 ${M.bgColor} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${M.bgColor} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${M.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${M.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${M.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${M.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${M.bgColor}`,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${M.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":`${M.bgColor}`,"border-radius":"3.6px",border:`1px solid ${M.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":`${M.variant["neutral-1"]}`,"border-radius":"6px",border:`1px solid ${M.variant["neutral-1"]}`,color:`${M.bgColor}`,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",transition:"all ease 300ms",display:"flex","flex-direction":"column","z-index":"1001"},"sidebar-container-open":{width:"240px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"240px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px",width:"24px",height:"24px"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},W=(e,t)=>{if(e){let l={};if(e[t]){for(const a in e[t])l[a]=e[t][a],delete e.common[a];for(const t in e.common)l[t]=e.common[t]}return l}};function R(e,t){var l=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+a+", "+o+", "+t+")":"rgb("+l+", "+a+", "+o+")"}R("#FF0000",.5);const L=g.default.div`
|
|
2
2
|
color: ${({activeTheme:e})=>e.textColor};
|
|
3
3
|
padding-top: 25px;
|
|
4
4
|
padding-bottom: 25px;
|
|
@@ -1105,6 +1105,12 @@ border: 1px solid ${({theme:e})=>e.border};
|
|
|
1105
1105
|
padding: 5.5px 12px;
|
|
1106
1106
|
padding-right: 7px;
|
|
1107
1107
|
border-radius: 4px;
|
|
1108
|
+
width: "100%";
|
|
1109
|
+
color: "#9c9c9c";
|
|
1110
|
+
display:'flex';
|
|
1111
|
+
justify-content:'space-between';
|
|
1112
|
+
alignItems: 'center'
|
|
1113
|
+
|
|
1108
1114
|
|
|
1109
1115
|
// custom styles
|
|
1110
1116
|
${({timeBtnStyle:e})=>e};
|
|
@@ -1116,7 +1122,14 @@ padding: 8px;
|
|
|
1116
1122
|
|
|
1117
1123
|
// custom styles
|
|
1118
1124
|
${({customHeaderStyle:e})=>e};
|
|
1119
|
-
`,vt=
|
|
1125
|
+
`,vt=g.default.span`
|
|
1126
|
+
margin-top:-1px;
|
|
1127
|
+
margin-left: 7px;
|
|
1128
|
+
float: right;
|
|
1129
|
+
|
|
1130
|
+
// custom styles
|
|
1131
|
+
${({customIconContainerStyle:e})=>e};
|
|
1132
|
+
`,At=({defaultValue:e,onChange:a,inputType:o,onClick:r,placeHolder:i,value:n,disabled:c,startYear:s,endYearRange:d,icon:u,iconColor:p,iconSize:f,customHeaderStyle:m,timeBtnStyle:g,wrapperStyle:x,customIconContainerStyle:v,...A})=>{const[C,w]=t.useState(e);let E=C?new Date(C):null;for(var k=[],z=d||10,V=s||(new Date).getFullYear();V<=(new Date).getFullYear()+z;V++)k.push(V);let B={};switch(o){case"date":default:B.dateFormat="dd MMM, yyyy";break;case"month":B.dateFormat="MMMM yyyy",B.showMonthYearPicker=!0;break;case"year":B.dateFormat="yyyy",B.showYearPicker=!0;break;case"datetime-local":B.dateFormat="dd MMM yyyy, hh:mm a",B.showTimeSelect=!0,B.timeFormat="hh:mm a",B.timeIntervals=15,B.timeCaption="Time";break;case"time":B.showTimeSelect=!0,B.showTimeSelectOnly=!0,B.dateFormat="hh:mm a"}const I=l.useTheme()||M;return b.default.createElement(gt,S({theme:I},A,{wrapperStyle:x}),b.default.createElement(h.default,S({selected:E,disabled:c,customInput:b.default.createElement(ht,{value:n,onClick:r,placeholder:i,theme:I},b.default.createElement(yt,S({theme:I,style:{width:"100%",color:"#9c9c9c",display:"flex",justifyContent:"space-between",alignItems:"center"},onClick:r,timeBtnStyle:g},A),n||(i||"-- : -- --"),b.default.createElement(vt,S({theme:I},A,{customIconContainerStyle:v}),u?b.default.createElement(J,{icon:u,color:p,size:f}):null))),onChange:e=>{console.log(e),w(e);var t=null;t="datetime-local"==o?y.default(e).format("DD MMM YYYY, hh:mm A"):"date"==o?y.default(e).format("DD MMM, YYYY"):"year"==o?y.default(e).format("YYYY"):"month"==o?y.default(e).format("MMMM YYYY"):"time"==o?y.default(e).format("hh:mm A"):y.default(e).format("DD MMM, YYYY"),a(t)},showYearDropdown:!0,yearDropdownItemNumber:5,dropdownMode:"select",placeholderText:i},B,{renderCustomHeader:({date:e,changeYear:t,decreaseMonth:l,increaseMonth:a})=>{let r=y.default(e).format("MMMM");return b.default.createElement(xt,S({theme:I},A,{inputType:o,customHeaderStyle:m}),"year"!==o?b.default.createElement("span",{style:{paddingLeft:"10px"},onClick:l},b.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"17",viewBox:"0 0 11 17"},b.default.createElement("path",{fill:"#9C9C9C",d:"M497.062 631.646L498.476 633.06 490.4 641.136 482.324 633.06 483.738 631.646 490.4 638.307z",transform:"rotate(90 561.9 79.891)"}))):null,b.default.createElement("b",null,"year"!==o?b.default.createElement("span",{style:{paddingRight:"5px"}},r):null," ",b.default.createElement("span",{className:"calender-year"},b.default.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>t(e)},k.map((e=>b.default.createElement("option",{key:e,value:e},e)))))),"year"!==o?b.default.createElement("span",{style:{paddingRight:"10px"},onClick:a},b.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"17",viewBox:"0 0 11 17"},b.default.createElement("path",{fill:"#9C9C9C",d:"M773.062 631.646L774.476 633.06 766.4 641.136 758.324 633.06 759.738 631.646 766.4 638.307z",transform:"matrix(0 1 1 0 -630.991 -758.009)"}))):null)}})))};At.propTypes={defaultValue:m.default.string,onChange:m.default.func,inputType:m.default.string,onClick:m.default.func,placeHolder:m.default.string,value:m.default.string,disabled:m.default.bool,startYear:m.default.number,endYearRange:m.default.number,icon:m.default.string,iconColor:m.default.string,iconSize:m.default.number,customHeaderStyle:m.default.object,timeBtnStyle:m.default.object,wrapperStyle:m.default.object,customIconContainerStyle:m.default.object},At.defaultProps={disabled:!1,startYear:new Date,endYearRange:10,iconColor:"black",iconSize:16,value:"",defaultValue:"",onChange:()=>{}};const Ct=g.default.div`
|
|
1120
1133
|
.master-dropdown,
|
|
1121
1134
|
.new-select {
|
|
1122
1135
|
.master-dropdown__menu,
|
|
@@ -1259,7 +1272,7 @@ padding: 8px;
|
|
|
1259
1272
|
border: ${({theme:e,backgroundColor:t})=>t?"1px solid "+t:"1px solid "+e.primary["primary-1"]};
|
|
1260
1273
|
}
|
|
1261
1274
|
|
|
1262
|
-
`;
|
|
1275
|
+
`;Ct.defaultProps={theme:M};const wt=g.default.div`
|
|
1263
1276
|
// Default style
|
|
1264
1277
|
display: flex;
|
|
1265
1278
|
|
|
@@ -1267,11 +1280,11 @@ padding: 8px;
|
|
|
1267
1280
|
${({inBuiltCss:e,labelWrapperStyle:t})=>W(e,t)}
|
|
1268
1281
|
// custom styles
|
|
1269
1282
|
${({customLabelStyles:e})=>e}
|
|
1270
|
-
`,
|
|
1283
|
+
`,St=g.default.div`
|
|
1271
1284
|
margin-left: 6px;
|
|
1272
1285
|
margin-top: -15.5px;
|
|
1273
1286
|
cursor: pointer;
|
|
1274
|
-
`,
|
|
1287
|
+
`,Et=({getValue:e,children:t,...l})=>{const a=e().length;return b.default.createElement(n.components.ValueContainer,l,t,a>1&&b.default.createElement("span",{className:"text-more-alt"},"& ",a-1," more"))},kt=({label:e,labelStyle:t,optionArr:a,selectedValue:o,setSelectedValue:r,placeHolder:i,isClearable:c,isValid:s,height:d,fontSize:u,loadOptions:p,onInputChange:f,clearSelected:m,customWrapperStyles:g,customLabelStyles:h,isRequired:y,dropdownType:x,isDisabled:v,isLoading:A,id:C,iconName:w,iconStyles:E,iconColor:k,iconSize:z,showIndicator:V,leftIcon:B,leftIconColor:W,leftIconSize:R,backgroundColor:L,placeHolderColor:T,indicatorBackgroundColor:P,inputColor:H,...j})=>{const q=l.useTheme()||M,F=e=>{const t={width:"15px",height:"15px",borderRadius:"2px",padding:"4px",fontSize:"8px",lineHeight:"10px",minWidth:"15px",minHeight:"15px"},l=b.default.createElement("div",{style:{...t,backgroundColor:e?.data?.color??q.primary["primary-1"]}},b.default.createElement(J,{icon:"check-icon",color:"white"})),a=b.default.createElement("div",{style:{...t,backgroundColor:"#e0e7ff"}});return b.default.createElement(n.components.Option,e,b.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",width:"100%"}},e.isSelected?l:a,b.default.createElement("div",{className:"text-main-alt",style:{marginLeft:"10px"}},e.label)))},O=({index:e,...t})=>{const l=t?.data?.label||"Select";return!e&&b.default.createElement("span",{className:"text-main-alt-value"},l)},Z={control:(e,t)=>({...e,border:s?L&&s?"1px solid "+L:"1px solid "+q.border:"1px solid "+q.ui.error,minWidth:"singleSelect"===x||"asyncSingleSelect"===x?"120px":"185px",height:`${d}px`,minHeight:`${d}px`,boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:L||q.bgColor}),placeholder:e=>({...e,fontSize:u+"px",marginLeft:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"auto",maxWidth:"89%",marginRight:"0px",color:T||"hsl(0, 0%, 50%)"}),dropdownIndicator:e=>({...e,height:`${d}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"2px",backgroundColor:P||"transparent",borderBottomLeftRadius:"0",borderBottomRightRadius:"4.32px",borderTopLeftRadius:0,borderTopRightRadius:"4.32px",position:"relative",top:"-1px",right:"-1px"}),clearIndicator:e=>({...e,height:`${d}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"0px"}),valueContainer:e=>({...e,display:"flex",justifyContent:"space-between",fontSize:u+"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:u+"px",width:"100%",minWidth:"singleSelect"===x||"asyncSingleSelect"===x?"120px":"185px"}),singleValue:e=>({...e,fontSize:u+"px",marginLeft:"0px",width:"auto",maxWidth:"89%",marginRight:0}),multiValue:e=>({...e,marginLeft:"0px",width:"auto"}),input:e=>({...e,fontSize:u+"px",color:H||"hsl(0, 0%, 20%)"}),option:(e,t)=>({...e,backgroundColor:t.isSelected||t.isFocused?q.neutral["neutral-5"]:q.bgColor,padding:"10px",cursor:"pointer",color:"#081348",width:"inherit"}),menuPortal:e=>({...e,zIndex:9999999})},G={DropdownIndicator:e=>{const t=b.default.createElement(n.components.DropdownIndicator,e,b.default.createElement(St,null,b.default.createElement(J,{icon:w,color:k,size:z,customstyles:E})));return!0===V?t:null},ValueContainer:Et,IndicatorSeparator:()=>null,ClearIndicator:e=>b.default.createElement(n.components.ClearIndicator,e,c?b.default.createElement(St,{onClick:()=>{m(),e.clearValue()}},b.default.createElement(J,{icon:"cross-icon",color:"black",size:8})):null)};let D=null;switch(x){case"multiSelect":D=b.default.createElement(zt,S({type:"multiSelect",MultiValue:O,Option:F,value:o,CommonRenderedComponent:G,optionArr:a,placeHolder:i,isDisabled:v,stylesComp:Z,setSelectedValue:r,isLoading:A,id:C,isClearable:c},j));break;case"asyncSingleSelect":D=b.default.createElement(Vt,S({CommonRenderedComponent:G,loadOptions:p,onInputChange:f,styles:Z,placeholder:i,onChange:r,isLoading:A,isDisabled:v,id:C,value:o,isClearable:c},j));break;case"asyncMultiSelect":D=b.default.createElement(Vt,S({type:"asyncMultiSelect",CommonRenderedComponent:G,MultiValue:O,Option:F,onChange:r,placeholder:i,styles:Z,isDisabled:v,isLoading:A,loadOptions:p,onInputChange:f,id:C,isClearable:c},j));break;default:D=b.default.createElement(zt,S({type:"singleSelect",value:{value:o?o.value:"",label:o?o.label:""},CommonRenderedComponent:G,optionArr:a,placeHolder:i,isDisabled:v,stylesComp:Z,setSelectedValue:r,isLoading:A,id:C,isClearable:c},j))}return b.default.createElement(Ct,{style:g,backgroundColor:L,isValid:s,fontSize:u,theme:q},e&&b.default.createElement(wt,{inBuiltCss:I,labelWrapperStyle:"selectComp-label-wrapper",style:h},b.default.createElement(Ke,{customStyles:t,type:"label-text",text:e,style:{marginBottom:"8px",paddingBottom:"0px"}}),y&&b.default.createElement("div",{style:{marginLeft:"4px",color:`${q.ui.error}`}},"*")),D)},zt=({type:e,Option:t,value:l,CommonRenderedComponent:a,MultiValue:o,optionArr:r,placeHolder:i,isDisabled:n,stylesComp:c,setSelectedValue:s,isLoading:d,id:u,isClearable:p,...f})=>{let m={...a};return"multiSelect"===e&&(m.MultiValue=o,m.Option=t),b.default.createElement(x.default,S({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:m,options:r,placeholder:i,isDisabled:n,value:l,styles:c,onChange:s,isLoading:d,id:u,isClearable:p,isMulti:"multiSelect"===e,hideSelectedOptions:!1,closeMenuOnSelect:"multiSelect"!==e,menuShouldScrollIntoView:!1},f))},Vt=({CommonRenderedComponent:e,MultiValue:t,Option:l,type:a,id:o,styles:r,...i})=>{let n={...e};return"asyncMultiSelect"===a&&(n.MultiValue=t,n.Option=l),b.default.createElement(v.default,S({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:n,isMulti:"asyncMultiSelect"===a,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiSelect"!==a,isSearchable:!0,styles:r,menuShouldScrollIntoView:!1},i))};kt.propTypes={label:m.default.string,labelStyle:m.default.object,optionArr:m.default.array,selectedValue:m.default.object,setSelectedValue:m.default.func,placeHolder:m.default.string,fontSize:m.default.number,clearSelected:m.default.func,loadOptions:m.default.func,onInputChange:m.default.func,customWrapperStyles:m.default.object,customLabelStyles:m.default.object,isRequired:m.default.bool,dropdownType:m.default.string,isDisabled:m.default.bool,isLoading:m.default.bool,isValid:m.default.bool,height:m.default.number,isClearable:m.default.bool,id:m.default.string,iconName:m.default.string,iconColor:m.default.string,iconSize:m.default.number,leftIcon:m.default.string,leftIconColor:m.default.string,leftIconSize:m.default.number,showIndicator:m.default.bool,backgroundColor:m.default.string,placeHolderColor:m.default.string,inputColor:m.default.string},kt.defaultProps={label:"",labelStyle:{},optionArr:[],selectedValue:{},setSelectedValue:void 0,placeHolder:"Select an option",isValid:!0,isClearable:!1,height:31,fontSize:14,loadOptions:()=>{},onInputChange:()=>{},clearSelected:()=>{},customWrapperStyles:{},customLabelStyles:{},isRequired:!1,dropdownType:"singleSelect",isDisabled:!1,isLoading:!1,id:"",iconName:"triangle-down",iconColor:"black",iconSize:8,leftIcon:"",leftIconColor:"black",leftIconSize:10,showIndicator:!0};const Bt=g.default.div`
|
|
1275
1288
|
//Set the styles from the default styles object
|
|
1276
1289
|
${({inBuiltCss:e,defaultStyles:t})=>W(e,t)}
|
|
1277
1290
|
|
|
@@ -1288,15 +1301,15 @@ padding: 8px;
|
|
|
1288
1301
|
|
|
1289
1302
|
// custom styles
|
|
1290
1303
|
${({customDropzoneStyles:e})=>e}
|
|
1291
|
-
`,
|
|
1304
|
+
`,Mt=g.default.div`
|
|
1292
1305
|
//Set the styles from the default styles object
|
|
1293
1306
|
${({inBuiltCss:e,defaultStyles:t})=>W(e,t)}
|
|
1294
1307
|
|
|
1295
1308
|
// custom styles
|
|
1296
1309
|
${({customFileStyles:e})=>e}
|
|
1297
|
-
`,
|
|
1310
|
+
`,It=g.default.input`
|
|
1298
1311
|
display: none;
|
|
1299
|
-
`,
|
|
1312
|
+
`,Wt=g.default.div`
|
|
1300
1313
|
//Set the styles from the default styles object
|
|
1301
1314
|
${({inBuiltCss:e,defaultStyles:t})=>W(e,t)}
|
|
1302
1315
|
|
|
@@ -1308,19 +1321,19 @@ padding: 8px;
|
|
|
1308
1321
|
|
|
1309
1322
|
// custom styles
|
|
1310
1323
|
${({customFileNameStyles:e})=>e}
|
|
1311
|
-
`;const
|
|
1324
|
+
`;const Rt=g.default.div`
|
|
1312
1325
|
cursor: pointer;
|
|
1313
1326
|
padding-left: 1px;
|
|
1314
1327
|
margin-left: auto;
|
|
1315
1328
|
margin-right: 10px;
|
|
1316
1329
|
display: flex;
|
|
1317
1330
|
justify-content: center;
|
|
1318
|
-
`,
|
|
1331
|
+
`,Lt=g.default.div`
|
|
1319
1332
|
margin-left: 11px;
|
|
1320
1333
|
padding-left: 2px;
|
|
1321
1334
|
display: flex;
|
|
1322
1335
|
justify-content: center;
|
|
1323
|
-
`,
|
|
1336
|
+
`,Tt=g.default.div`
|
|
1324
1337
|
color: #494949;
|
|
1325
1338
|
margin-left: 11px;
|
|
1326
1339
|
padding-left: 2px;
|
|
@@ -1331,18 +1344,18 @@ padding: 8px;
|
|
|
1331
1344
|
align-items: center;
|
|
1332
1345
|
margin: 20px 0px;
|
|
1333
1346
|
font-size: 14px;
|
|
1334
|
-
`;const
|
|
1347
|
+
`;const Pt=({label:e,labelStyle:a,labelInline:o,required:r,message:i,fileArr:n,setFileArr:c,deleteFile:s,customDropzoneStyles:d,customFileStyles:u,customTextStyles:p,customFileNameStyles:f,backgroundColor:m,singleFile:g,messageSize:h,showSupportedFormats:y,file_extensions:x,maxFilesAmount:v,minFilesAmount:A,fileSizeLimit:C,fileSizeNamingConvention:w,errorMessages:E,suggesionMessage:k,MessagelabelStyle:z,dropValid:V,setDropValid:B,dropzoneContent:W,dropIcon:R,iconColor:L,id:T,customTooltipContentStyle:P,customStylesTPArightBefore:H,customStylesTPArightAfter:j,...q})=>{const F=l.useTheme()||M,[O,Z]=t.useState(!1),G=t.createRef(),[D,X]=t.useState(V),[U,Y]=t.useState("");let Q;var N=x,K=!1,$=y?"That file type is not supported.":"",_=(k=y?"The Supported format's are: ":"","");1==g&&(A=1,v=1);var ee="Please upload (min."+A+" to max."+v+")files",te=e=>{_="";let t=[];var l=0,a=n.length;if(a+1<A||a+1>v){var o="The file size is not uploaded";_=U?.amount,_=void 0!==_?_:o}for(const e of n)l+=e.size;if(""==_)for(const[a,n]of Object.entries(e)){K=!0,n.name,l+=n.size;var r=n.name.split(".");r=r[r.length-1],K=N.includes(r.toLowerCase());var i=1024;("MB"==w||"GB"==w||"TB"==w)&&(i*=1024);var c=Math.round(l/i);if(0==K&&(_=E?.format,_=_?_+$:$),c>C&&K){K=!1;o="The file must be under "+C+" "+w;_=E?.size,_=null!=_?_:o}!0===K&&(Q&&URL.revokeObjectURL(Q),Q=URL.createObjectURL(n),n.path=Q,t.push(n))}return _.length>0?(B(!1),X(V),Y(_)):(B(!0),X(V),Y("")),t};function le(e){e.preventDefault(),e.stopPropagation()}function ae(e,t){let l=[...n,...e];return t||(l=l.filter(((e,t,l)=>t===l.findIndex((t=>t.place===e.place&&t.name===e.name))))),c(l),Z(!1),l}function oe(e,t){if(e instanceof File){const t=n.filter((t=>t.name!==e.name));c(t)}else!function(e,t){const l=n.filter((t=>t.name!==e.name));c(l),s(e)}(e)}return b.default.createElement("div",null,b.default.createElement("div",{style:{display:"flex",width:"inherit"}},b.default.createElement(Ke,S({customStyles:a,type:"label-text",labelInline:o,text:e,style:{display:"flex",marginBottom:`${o?0:"8px"}`,paddingBottom:"0px"}},q)),r&&b.default.createElement("div",{style:{marginLeft:"4px",color:`${F.variant.error}`}},"*")),b.default.createElement(Bt,{theme:F,inBuiltCss:I,defaultStyles:"dropzone-parent",backgroundColor:m,customDropzoneStyles:V?d:{},onDragLeave:function(e){le(e),Z(!1)},onDragOver:function(e){le(e),Z(!0)},onDrop:function(e){le(e);const{files:t}=e.dataTransfer;var l=te(t);Z(!0),q.onFilesAdded(ae(l,g))},onClick:function(){G.current.click()},hover:O,dropValid:V,fileArr:n},b.default.createElement(It,S({ref:G,valid:D,dropValid:V,type:"file",id:T,multiple:1!=g,onChange:function(e){e.target,Z(!1);var t=te(e.target.files);t&&q.onFilesAdded(ae(t,g))},onClick:e=>e.target.value=null},q)),V?b.default.createElement(b.default.Fragment,null,R?b.default.createElement(J,{icon:R,color:O?F.bgColor:L,size:24}):b.default.createElement(J,{icon:"file-upload",color:O?F.bgColor:F.primary["primary-1"],size:24})):null,b.default.createElement(Wt,{dropValid:V,valid:D,hover:O,backgroundColor:m,customTextStyles:p,inBuiltCss:I,defaultStyles:"dropzone-text-div"},V?b.default.createElement(b.default.Fragment,null,W?b.default.createElement("div",{style:{color:O?F.bgColor:null}},W):b.default.createElement("div",null,b.default.createElement("span",{style:{color:O?F.bgColor:F.primary["primary-1"]}},"Choose a file"," "),b.default.createElement("span",{style:{color:O?F.bgColor:F.neutral["neutral-2"]}},"or"," "),b.default.createElement("span",{style:{color:O?F.bgColor:F.textColor}},"drag ",g?"it":"them"," here"))):b.default.createElement("div",null,b.default.createElement("span",{style:{color:F.variant.error}},"Try again!!"," "),b.default.createElement("span",{style:{color:F.textColor}},U||i)))),U===$?b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(Ke,S({themeColor:M,customStyles:z,type:"label-text",labelInline:o,text:k,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},q)),b.default.createElement(De,{contentTrigger:b.default.createElement("span",null,"read more"),headerTooltip:"",contentTooltip:JSON.stringify(N),footerTooltip:"",popperOptionsP:{placement:"right"},settings:{closeOnOutsideClick:!0,trigger:"click"},customTriggerStyle:{marginTop:"8px",marginLeft:"4px",textDecoration:"underline",color:F.variant["primary-1"]},customBodyStyle:{wordWrap:"break-word"},customContentStyle:P,customStylesTPArightBefore:H,customStylesTPArightAfter:j})):"The file size is not uploaded"===U?b.default.createElement(Ke,S({themeColor:M,customStyles:z,type:"label-text",labelInline:o,text:ee,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},q)):"",n?.map(((e,t)=>b.default.createElement(Mt,{inBuiltCss:I,defaultStyles:"dropzone-file-div",key:`${e}-${t}`,customFileStyles:u},b.default.createElement(Lt,null,b.default.createElement(J,{icon:"file-icon",color:F.primary["primary-1"]})),(File,b.default.createElement("a",{style:{color:F.variant["primary-1"],marginLeft:"5px"},href:e?.path,target:"_blank",rel:"noreferrer",download:e.name}," ",e.name)),b.default.createElement(Tt,null,e?.otherInfo),b.default.createElement(Rt,{key:101*Math.random()|0,onClick:()=>oe(e)},b.default.createElement("div",{style:{marginRight:"7px"}},b.default.createElement(J,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:F.primary["primary-1"]})),b.default.createElement(J,{icon:"cross-icon",color:F.neutral["neutral-2"],size:13}))))))};Pt.propTypes={onFilesAdded:m.default.func,dropValid:m.default.bool,setDropValid:m.default.func,message:m.default.string,fileArr:m.default.array,setFileArr:m.default.func,customDropzoneStyles:m.default.object,customFileStyles:m.default.object,customTextStyles:m.default.object,customFileNameStyles:m.default.object,backgroundColor:m.default.string,messageSize:m.default.number,maxFilesAmount:m.default.number,minFilesAmount:m.default.number,fileSizeLimit:m.default.number,fileSizeNamingConvention:m.default.string,showSupportedFormats:m.default.bool,file_extensions:m.default.array,errorMessages:m.default.object,suggesionMessage:m.default.any,MessagelabelStyle:m.default.object,id:m.default.string,dropzoneContent:m.default.any,dropIcon:m.default.string,iconColor:m.default.string,singleFile:m.default.bool,customTooltipContentStyle:m.default.object,customStylesTPArightBefore:m.default.object,customStylesTPArightAfter:m.default.object},Pt.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 Ht=g.default.div`
|
|
1335
1348
|
display: contents;
|
|
1336
1349
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1337
1350
|
|
|
1338
1351
|
${({WrapperDivStyle:e})=>e}
|
|
1339
|
-
`,
|
|
1352
|
+
`,jt=g.default.input`
|
|
1340
1353
|
display: none;
|
|
1341
1354
|
min-height: 100vh;
|
|
1342
1355
|
padding: 0 0.5rem;
|
|
1343
1356
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1344
1357
|
|
|
1345
|
-
`,
|
|
1358
|
+
`,qt=g.default.div`
|
|
1346
1359
|
height: 49px;
|
|
1347
1360
|
width: 49px;
|
|
1348
1361
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor};
|
|
@@ -1354,7 +1367,7 @@ padding: 8px;
|
|
|
1354
1367
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1355
1368
|
|
|
1356
1369
|
${({IconWrapperStyle:e})=>e}
|
|
1357
|
-
`,
|
|
1370
|
+
`,Ft=g.default.div`
|
|
1358
1371
|
// background-color: ${({theme:e})=>e.bgColor};
|
|
1359
1372
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor};
|
|
1360
1373
|
width: 134px;
|
|
@@ -1396,7 +1409,7 @@ padding: 8px;
|
|
|
1396
1409
|
}
|
|
1397
1410
|
}
|
|
1398
1411
|
${({MainDivStyle:e})=>e};
|
|
1399
|
-
`,
|
|
1412
|
+
`,Ot=({image:e,setImage:a,WrapperDivStyle:o,MainDivStyle:r,IconWrapperStyle:i,iconSize:n,iconColor:c,isDisabled:s,id:d})=>{const[u,p]=t.useState(),f=t.useRef(),m=l.useTheme()||M,[g,h]=t.useState(),[y,x]=t.useState(!1);function v(e){e.preventDefault(),e.stopPropagation()}t.useEffect((()=>{if(e&&y){const t=new FileReader;t.onloadend=()=>{p(t.result)},t.readAsDataURL(e)}else p(e)}),[e]);const A=e=>{e&&"image"===e.type.substr(0,5)?(x(!0),a(e)):x(!1)};return b.default.createElement(Ht,{onDragLeave:function(e){v(e),h(!1)},onDragOver:function(e){v(e),h(!0)},onDrop:function(e){v(e);const{files:t}=e.dataTransfer;A(t[0])},WrapperDivStyle:o,isDisabled:s},b.default.createElement(Ft,{isDisabled:s,theme:m,MainDivStyle:r,style:{backgroundImage:`url(${u})`},onClick:e=>{e.preventDefault(),f.current.click()}},!u&&b.default.createElement("div",{className:"icon-on-not-preview"},b.default.createElement(qt,{IconWrapperStyle:i,theme:m,isDisabled:s},b.default.createElement("img",{src:G,alt:"",height:"40px",width:"48px"}))),b.default.createElement("div",{className:"icon-on-preview"},b.default.createElement(qt,{IconWrapperStyle:i,isDisabled:s,theme:m},b.default.createElement(J,{icon:"camera-icon",size:n,color:c||m.variant["primary-1"]})))),b.default.createElement(jt,{id:d,type:"file",ref:f,accept:"image/jpg, image/jpeg, image/png",onChange:e=>{x(!0),a(e.target.files[0])},disabled:s,isDisabled:s}))};Ot.propTypes={image:m.default.any,setImage:m.default.func,WrapperDivStyle:m.default.object,MainDivStyle:m.default.object,IconWrapperStyle:m.default.object,iconSize:m.default.number},Ot.defaultProps={image:null,setImage:()=>{},WrapperDivStyle:{},MainDivStyle:{},IconWrapperStyle:{},iconSize:28,id:"",isDisabled:!1};const Zt=g.default.div`
|
|
1400
1413
|
border: 1px solid
|
|
1401
1414
|
${({theme:e})=>e.border};
|
|
1402
1415
|
border-radius: 4px;
|
|
@@ -1416,7 +1429,7 @@ padding: 8px;
|
|
|
1416
1429
|
fill: ${({theme:e})=>e.variant["primary-1"]};
|
|
1417
1430
|
}
|
|
1418
1431
|
}
|
|
1419
|
-
`;
|
|
1432
|
+
`;Zt.defaultProps={theme:M};const Gt=g.default.input`
|
|
1420
1433
|
width: 85%;
|
|
1421
1434
|
border: 0;
|
|
1422
1435
|
outline: 0;
|
|
@@ -1429,34 +1442,34 @@ padding: 8px;
|
|
|
1429
1442
|
|
|
1430
1443
|
// custom styles
|
|
1431
1444
|
${({inputStyle:e})=>e}
|
|
1432
|
-
`;
|
|
1445
|
+
`;Gt.defaultProps={theme:M},l.css`
|
|
1433
1446
|
&:after {
|
|
1434
1447
|
content: ' *';
|
|
1435
1448
|
color: ${({theme:e})=>e.variant.error};
|
|
1436
1449
|
}
|
|
1437
|
-
`;const
|
|
1450
|
+
`;const Dt=g.default.label`
|
|
1438
1451
|
display: flex;
|
|
1439
1452
|
margin-right: 10px;
|
|
1440
1453
|
align-content: center;
|
|
1441
1454
|
align-items: center;
|
|
1442
1455
|
justify-content: center;
|
|
1443
1456
|
display: block;
|
|
1444
|
-
margin-bottom: ${({labelInline:e})=>e?
|
|
1445
|
-
margin-right: ${({labelInline:e})=>e?"
|
|
1457
|
+
margin-bottom: ${({labelInline:e})=>e?0:"8px"};
|
|
1458
|
+
margin-right: ${({labelInline:e})=>e?"8px":0};
|
|
1446
1459
|
padding-bottom: 0px;
|
|
1447
1460
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
1448
1461
|
|
|
1449
1462
|
${({labelStyle:e})=>e}
|
|
1450
|
-
`;
|
|
1463
|
+
`;Dt.defaultProps={theme:M};const Xt=l.css`
|
|
1451
1464
|
display: flex;
|
|
1452
1465
|
align-items: center;
|
|
1453
|
-
`,
|
|
1454
|
-
${({labelInline:e})=>e?
|
|
1466
|
+
`,Jt=g.default.div`
|
|
1467
|
+
${({labelInline:e})=>e?Xt:null}
|
|
1455
1468
|
|
|
1456
1469
|
> div {
|
|
1457
1470
|
flex: 1 0 auto;
|
|
1458
1471
|
}
|
|
1459
|
-
`;
|
|
1472
|
+
`;Jt.defaultProps={theme:M};const Ut=({label:e,inputValue:t,inputStyle:l,iconBefore:a,iconAfter:o,onChange:r,theme:i,id:n,labelStyle:c,...s})=>b.default.createElement(Jt,s,e.length>0&&b.default.createElement(Dt,{labelStyle:c},e),b.default.createElement("div",null,b.default.createElement(Zt,s,b.default.createElement("div",{className:"input-icon"},a),b.default.createElement(Gt,S({},s,{inputStyle:l,value:t,onChange:e=>{const{value:t}=e.currentTarget;(""===t||/^[0-9\b.-]+$/.test(t))&&r(t)},type:"number",id:n})),b.default.createElement("div",{className:"input-icon",style:{position:"absolute",right:"7px"}},o))));Ut.propTypes={theme:m.default.object,label:m.default.string,labelInline:m.default.bool,inputValue:m.default.any,inputStyle:m.default.object,id:m.default.string,labelStyle:m.default.object},Ut.defaultProps={theme:M,label:"",labelInline:!1,inputStyle:{},inputValue:null,id:"",labelStyle:{}};const Yt=g.default.div`
|
|
1460
1473
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1461
1474
|
|
|
1462
1475
|
//Set the styles from the default styles object
|
|
@@ -1482,7 +1495,7 @@ padding: 8px;
|
|
|
1482
1495
|
|
|
1483
1496
|
// custom styles
|
|
1484
1497
|
${({textBoxStyle:e})=>e}
|
|
1485
|
-
`;
|
|
1498
|
+
`;Yt.defaultProps={theme:M};const Qt=g.default.input`
|
|
1486
1499
|
width: 85%;
|
|
1487
1500
|
|
|
1488
1501
|
|
|
@@ -1495,18 +1508,18 @@ padding: 8px;
|
|
|
1495
1508
|
.sc-furwcr bxRAoq {
|
|
1496
1509
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
1497
1510
|
}
|
|
1498
|
-
`;
|
|
1511
|
+
`;Qt.defaultProps={theme:M};const Nt=l.css`
|
|
1499
1512
|
display: flex;
|
|
1500
1513
|
gap: 7px;
|
|
1501
1514
|
align-items: start;
|
|
1502
|
-
`,
|
|
1503
|
-
${({labelInline:e})=>e?
|
|
1515
|
+
`,Kt=g.default.div`
|
|
1516
|
+
${({labelInline:e})=>e?Nt:null}
|
|
1504
1517
|
.err-text {
|
|
1505
1518
|
color: ${({errMsgColor:e,theme:t})=>e||t.variant.error};
|
|
1506
1519
|
margin-top: 5px;
|
|
1507
1520
|
font-size: 10px;
|
|
1508
1521
|
}
|
|
1509
|
-
`;
|
|
1522
|
+
`;Kt.defaultProps={theme:M};const $t=({passwordRules:e,textBoxStyle:a,labelStyle:o,inputStyle:r,errMsg:i,required:n,label:c,labelInline:s,isValid:d,rulesStyle:u,id:p,showHideIcon:f,errMsgColor:m,...g})=>{t.useState(!1);const[h,y]=t.useState("password"),x=l.useTheme()||M;return b.default.createElement(Kt,S({labelInline:s,inBuiltCss:I,errMsgColor:m,theme:x},g),b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(Ke,S({customStyles:o,type:"label-text",text:c,errMsg:i,style:{display:"flex",marginBottom:`${s?0:"8px"}`,paddingBottom:"0px"}},g)),n&&b.default.createElement("div",{style:{marginLeft:"4px",marginRight:"5px",color:`${x.variant.error}`}},"*")),b.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"start"}},b.default.createElement("div",{style:{width:"100%"}},b.default.createElement(Yt,S({required:n,theme:x,textBoxStyle:a,isValid:d,defaultWrapperStyle:"textbox-wrapper",inBuiltCss:I},g),b.default.createElement(Qt,S({inputStyle:r,type:h,autocomplete:"off",id:p,theme:x,defaultInputStyle:"input-wrapper",inBuiltCss:I},g)),!0===f?b.default.createElement("div",{className:"input-icon",onClick:()=>{"password"===h?y("text"):"text"===h&&y("password")},style:{position:"absolute",right:"7px"}},"text"===h?b.default.createElement(J,{icon:"eye-show"}):b.default.createElement(J,{icon:"eye-hide"})):""),i.length>0&&b.default.createElement("div",{className:"err-text"},i)),e?b.default.createElement("div",{style:{...u,marginLeft:"5px"}},e):""))};$t.propTypes={inBuiltCss:m.default.object,theme:m.default.object,label:m.default.string,required:m.default.bool,labelInline:m.default.bool,errMsg:m.default.string,textBoxStyle:m.default.object,labelStyle:m.default.object,inputStyle:m.default.object,rulesStyle:m.default.object,id:m.default.string,showHideIcon:m.default.bool},$t.defaultProps={inBuiltCss:I,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",textBoxStyle:{},labelStyle:{},inputStyle:{},passwordRules:"",rulesStyle:{},id:"",showHideIcon:!0};const _t=g.default.div`
|
|
1510
1523
|
box-sizing: initial;
|
|
1511
1524
|
|
|
1512
1525
|
//Set the styles from the default styles object
|
|
@@ -1516,7 +1529,7 @@ padding: 8px;
|
|
|
1516
1529
|
|
|
1517
1530
|
// custom styles
|
|
1518
1531
|
${({radioOuterCircleStyle:e})=>e}
|
|
1519
|
-
|
|
1532
|
+
`;_t.defaultProps={theme:M};const el=g.default.div`
|
|
1520
1533
|
box-sizing: initial;
|
|
1521
1534
|
|
|
1522
1535
|
//Set the styles from the default styles object
|
|
@@ -1528,7 +1541,7 @@ padding: 8px;
|
|
|
1528
1541
|
|
|
1529
1542
|
// custom styles
|
|
1530
1543
|
${({radioInnerCircleStyle:e})=>e}
|
|
1531
|
-
`;
|
|
1544
|
+
`;el.defaultProps={theme:M};const tl=g.default.div`
|
|
1532
1545
|
//Set the styles from the default styles object
|
|
1533
1546
|
${({inBuiltCss:e,defaultOptionStyle:t})=>W(e,t)}
|
|
1534
1547
|
margin-right: ${({inline:e})=>e?"":"30px"};
|
|
@@ -1536,7 +1549,7 @@ padding: 8px;
|
|
|
1536
1549
|
|
|
1537
1550
|
// custom styles
|
|
1538
1551
|
${({optionStyle:e})=>e}
|
|
1539
|
-
`;
|
|
1552
|
+
`;tl.defaultProps={theme:M};const ll=g.default.div`
|
|
1540
1553
|
margin-bottom: ${({inline:e})=>e?"":"14px"};
|
|
1541
1554
|
cursor: pointer;
|
|
1542
1555
|
align-items: center;
|
|
@@ -1545,11 +1558,11 @@ padding: 8px;
|
|
|
1545
1558
|
|
|
1546
1559
|
// custom styles
|
|
1547
1560
|
${({WrapperDivStyle:e})=>e}
|
|
1548
|
-
`,
|
|
1561
|
+
`,al=g.default.div`
|
|
1549
1562
|
display: ${({inline:e})=>e?"flex":"inline-block"};
|
|
1550
1563
|
width: max-content;
|
|
1551
1564
|
margin: 0;
|
|
1552
|
-
`,
|
|
1565
|
+
`,ol=({radioOuterCircleStyle:e,radioInnerCircleStyle:t,labelStyle:a,label:o,optionStyle:r,options:i,selectedCircleColor:n,selectedOptionTextColor:c,onChange:s,selected:d,width:u,height:p,inline:f,defaultBorderColor:m,defaultOptionColor:g,WrapperDivStyle:h,...y})=>{const x=l.useTheme()||M;return b.default.createElement("div",null,b.default.createElement(Ke,{customStyles:a,type:"radio-label",text:o}),b.default.createElement(al,{inline:f},i.map(((l,a)=>b.default.createElement(ll,{WrapperDivStyle:h,key:a+101*Math.random(),id:l.id,inline:f,onClick:()=>{!l?.disabled&&s(l.value)}},b.default.createElement(_t,{theme:x,inBuiltCss:I,defaultBorderColor:m,selectedCircleColor:n,radioOuterCircleStyle:{...e,cursor:l?.disabled?"not-allowed ":" pointer",borderColor:l?.disabled&&l?.disabledColor},defaultRadioOuterCircleStyle:"radio-outer-circle",value:l.value,selected:!l?.disabled&&d},b.default.createElement(el,{inBuiltCss:I,theme:x,width:u,height:p,selectedCircleColor:n,radioInnerCircleStyle:{...t,cursor:l?.disabled?"not-allowed ":" pointer",backgroundColor:l?.disabled?"transparent":l?.value===d?t?.backgroundColor:"transparent"},defaultRadioInnerCircleStyle:"radio-inner-circle",value:l.value,selected:d})),b.default.createElement(tl,{defaultOptionColor:g,optionStyle:{...r,cursor:l?.disabled?"not-allowed ":" pointer",color:l?.disabled&&l?.disabledColor},inBuiltCss:I,defaultOptionStyle:"option-text",selectedOptionTextColor:c,theme:x,selected:!l?.disabled&&l.value===d},l.label))))))};ol.propTypes={label:m.default.string,labelStyle:m.default.object,inline:m.default.bool,options:m.default.array,optionStyle:m.default.object,WrapperDivStyle:m.default.object,selected:m.default.string,onChange:m.default.func,defaultOptionColor:m.default.string,defaultBorderColor:m.default.string,radioOuterCircleStyle:m.default.object,radioInnerCircleStyle:m.default.object,width:m.default.string,height:m.default.string,selectedCircleColor:m.default.string,selectedOptionTextColor:m.default.string},ol.defaultProps={label:"",labelStyle:{},inline:!1,options:[],optionStyle:{},selected:"one",onChange:()=>{},radioOuterCircleStyle:{},radioInnerCircleStyle:{},width:"14px",height:"14px",WrapperDivStyle:{}};const rl=g.default.div`
|
|
1553
1566
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1554
1567
|
|
|
1555
1568
|
//Set the styles from the default styles object
|
|
@@ -1570,7 +1583,7 @@ padding: 8px;
|
|
|
1570
1583
|
${({textBoxStyle:e})=>e}
|
|
1571
1584
|
|
|
1572
1585
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor}
|
|
1573
|
-
`,
|
|
1586
|
+
`,il=g.default.input`
|
|
1574
1587
|
color: ${({theme:e})=>e.black};
|
|
1575
1588
|
width: 85%;
|
|
1576
1589
|
white-space: nowrap;
|
|
@@ -1586,18 +1599,18 @@ padding: 8px;
|
|
|
1586
1599
|
color: ${M.variant["neutral-3"]};
|
|
1587
1600
|
}
|
|
1588
1601
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor}};
|
|
1589
|
-
`,
|
|
1602
|
+
`,nl=l.css`
|
|
1590
1603
|
display: flex;
|
|
1591
1604
|
gap: 7px;
|
|
1592
1605
|
align-items: center;
|
|
1593
|
-
`,
|
|
1594
|
-
${({labelInline:e})=>e?
|
|
1606
|
+
`,cl=g.default.div`
|
|
1607
|
+
${({labelInline:e})=>e?nl:null}
|
|
1595
1608
|
.err-text {
|
|
1596
1609
|
color: ${({errMsgColor:e,theme:t})=>e||t.variant.error};
|
|
1597
1610
|
margin-top: 5px;
|
|
1598
1611
|
font-size: 10px;
|
|
1599
1612
|
}
|
|
1600
|
-
`,
|
|
1613
|
+
`,sl=({textBoxStyle:e,labelStyle:t,inputStyle:a,errMsg:o,required:r,label:i,labelInline:n,iconBefore:c,iconAfter:s,isValid:d,type:u,isDisabled:p,id:f,errMsgColor:m,iconAfterStyle:g,iconBeforeStyle:h,ref:y,pattern:x,iconColorOnFocus:v,...A})=>{const C=l.useTheme()||M;return b.default.createElement(cl,S({labelInline:n,theme:C,errMsgColor:m},A),b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(Ke,S({customStyles:t,type:"label-text",labelInline:n,text:i,errMsg:o,style:{display:"flex",marginBottom:`${n?0:"8px"}`,paddingBottom:"0px"}},A)),r&&b.default.createElement("div",{style:{marginLeft:"4px",color:`${C.variant.error}`}},"*")),b.default.createElement("div",null,b.default.createElement(rl,S({required:r,isDisabled:p,theme:C,textBoxStyle:e,isValid:d,inBuiltCss:I,defaultWrapperStyle:"textbox-wrapper",iconColorOnFocus:v},A),b.default.createElement("div",{className:"input-icon",style:{...h}},c),b.default.createElement(il,S({inputStyle:a,type:u,theme:C,id:f,defaultInputStyle:"input-wrapper",isDisabled:p,disabled:p,ref:y,pattern:x},A)),b.default.createElement("div",{className:"input-icon",style:{...g}},s))),o.length>0&&b.default.createElement("div",{className:"err-text"},o))};sl.propTypes={inBuiltCss:m.default.object,label:m.default.string,required:m.default.bool,labelInline:m.default.bool,errMsg:m.default.string,iconBefore:m.default.any,iconAfter:m.default.any,textBoxStyle:m.default.object,labelStyle:m.default.object,inputStyle:m.default.object,type:m.default.string,isDisabled:m.default.bool,id:m.default.string,errMsgColor:m.default.string,iconAfterStyle:m.default.object,iconBeforeStyle:m.default.object,iconColorOnFocus:m.default.string},sl.defaultProps={inBuiltCss:I,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textBoxStyle:{},labelStyle:{},inputStyle:{},type:"text",isDisabled:!1,id:"",iconAfterStyle:{},iconBeforeStyle:{},iconColorOnFocus:""};const dl=({label:e,placeholder:t,handleSearch:l,searchInput:a,customStylesForm:o,customStyleObject:r,textBoxStyle:i,id:n,...c})=>b.default.createElement(sl,S({iconAfter:b.default.createElement(J,{icon:"magnifier-icon"}),label:e,textBoxStyle:i,placeholder:t,ref:a,onChange:l,id:n},c)),ul=g.default.div`
|
|
1601
1614
|
//Set the styles from the default styles object
|
|
1602
1615
|
${({inBuiltCss:e,defaultParentDivStyle:t})=>W(e,t)}
|
|
1603
1616
|
|
|
@@ -1606,7 +1619,7 @@ padding: 8px;
|
|
|
1606
1619
|
&:focus-within {
|
|
1607
1620
|
border-color: ${({activeColor:e,theme:t})=>e||t.primary["primary-1"]};
|
|
1608
1621
|
}
|
|
1609
|
-
`,
|
|
1622
|
+
`,pl=g.default.div`
|
|
1610
1623
|
//Set the styles from the default styles object
|
|
1611
1624
|
${({inBuiltCss:e,defaultWrapperDivStyle:t})=>W(e,t)}
|
|
1612
1625
|
|
|
@@ -1618,7 +1631,7 @@ padding: 8px;
|
|
|
1618
1631
|
border-left: ${({signIcon:e})=>e?"":"none"};
|
|
1619
1632
|
margin-left: ${({signIcon:e})=>e?"":"42px"};
|
|
1620
1633
|
position: ${({signIcon:e})=>e?"absolute":""};
|
|
1621
|
-
`,
|
|
1634
|
+
`,fl=g.default.div`
|
|
1622
1635
|
width: 39px;
|
|
1623
1636
|
height: 44px;
|
|
1624
1637
|
display: flex;
|
|
@@ -1628,7 +1641,7 @@ padding: 8px;
|
|
|
1628
1641
|
border-bottom: ${({penIcon:e,isMyInputFocused:t,activeColor:l,defaultColor:a,theme:o})=>e?t?`1px solid ${l||o.primary["primary-1"]}`:`1px solid ${a||o.neutral["neutral-3"]}`:""};
|
|
1629
1642
|
background-color: rgba(255, 255, 255, 0.05);
|
|
1630
1643
|
cursor: pointer;
|
|
1631
|
-
`,
|
|
1644
|
+
`,ml=g.default.input`
|
|
1632
1645
|
${({inBuiltCss:e,defaultInputStyle:t})=>W(e,t)}
|
|
1633
1646
|
|
|
1634
1647
|
border-bottom: ${({value:e,defaultColor:t,theme:l})=>e.length>0?"none":t};
|
|
@@ -1653,17 +1666,17 @@ padding: 8px;
|
|
|
1653
1666
|
|
|
1654
1667
|
// custom styles
|
|
1655
1668
|
${({customInputStyle:e})=>e}
|
|
1656
|
-
`,
|
|
1669
|
+
`,bl=g.default.div`
|
|
1657
1670
|
position: relative;
|
|
1658
1671
|
width: inherit;
|
|
1659
1672
|
display: flex;
|
|
1660
1673
|
margin: 4px;
|
|
1661
|
-
`,
|
|
1674
|
+
`,gl=g.default.div`
|
|
1662
1675
|
padding-left: 2px;
|
|
1663
1676
|
display: flex;
|
|
1664
1677
|
justify-content: center;
|
|
1665
1678
|
cursor: pointer;
|
|
1666
|
-
`,
|
|
1679
|
+
`,hl=({onChange:e,activeColor:a,defaultColor:o,placeholderColor:r,placeholderText:i,customInputStyle:n,pointsArray:c,setPointsArray:s,value:d,setValue:u,valueForSignatureDrawing:p,setValueForSignatureDrawing:f,imageURL:m,setImageURL:g,id:h,...y})=>{const x=l.useTheme()||M,[v,C]=t.useState("default"),[w,S]=t.useState(!1),[E,k]=t.useState(!1),z=t.useRef(null);t.useEffect((()=>{E&&(B(),f(z.current))}),[!0===E]);const V=()=>{u(""),f(z.current),z.current&&z.current.clear(),S(!1),k(!1)},B=()=>(s(z.current.toData()),g(z.current.toDataURL("image/png")),[m,c]);return b.default.createElement(ul,{inBuiltCss:I,defaultParentDivStyle:"signature-parent-div",isMyInputFocused:w,selected:v,activeColor:a,defaultColor:o,theme:x},b.default.createElement(pl,{inBuiltCss:I,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:a,defaultColor:o,selected:v,isMyInputFocused:w,signIcon:!0,theme:x},b.default.createElement(fl,{activeColor:a,defaultColor:o,isMyInputFocused:w,theme:x,penIcon:!0,onClick:()=>{C("default"),V()}},b.default.createElement(J,{icon:"pen-icon",color:"default"===v?a||x.primary["primary-1"]:x.black})),b.default.createElement(fl,{activeColor:a,defaultColor:o,theme:x,isMyInputFocused:w,penIcon:!1,onClick:()=>{C("sign"),V()}},b.default.createElement(J,{icon:"sign-icon",color:"default"!==v?a||x.primary["primary-1"]:x.black}))),b.default.createElement(pl,{inBuiltCss:I,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:a,defaultColor:o,theme:x,selected:v,isMyInputFocused:w,signIcon:!1,onTouchStart:()=>{}},"default"===v?b.default.createElement(ml,{inBuiltCss:I,defaultInputStyle:"signature-input-text",placeholder:i,placeholderColor:r,customInputStyle:n,onBlur:()=>S(!1),onFocus:()=>S(!0),id:h,value:d,defaultColor:o,theme:x,onChange:e=>u(e.target.value)}):b.default.createElement(bl,{onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),onClick:()=>{k(!0),B()}},b.default.createElement(A.default,{ref:z,id:h,redrawOnResize:!0,height:75,options:{minWidth:1,maxWidth:1,penColor:"#444444"}})),(d||E)&&b.default.createElement(gl,{selected:v,onClick:()=>V()},b.default.createElement(J,{icon:"cross-icon",color:o||x.neutral["neutral-3"]}))))};hl.propTypes={activeColor:m.default.string,defaultColor:m.default.string,placeholderColor:m.default.string,placeholderText:m.default.string,customInputStyle:m.default.object,pointsArray:m.default.any,setPointsArray:m.default.func,value:m.default.string,setValue:m.default.func,imageURL:m.default.string,setImageURL:m.default.func,id:m.default.string},hl.defaultProps={customInputStyle:{},placeholderText:"Type your signature here",pointsArray:null,setPointsArray:()=>{},value:"",setValue:()=>{},imageURL:"",setImageURL:()=>{},setValueForSignatureDrawing:()=>{},id:""};const yl=g.default.div`
|
|
1667
1680
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1668
1681
|
//Set the styles from the default styles object
|
|
1669
1682
|
${({inBuiltCss:e,defaultWrapperStyle:t})=>W(e,t)}
|
|
@@ -1685,19 +1698,19 @@ padding: 8px;
|
|
|
1685
1698
|
|
|
1686
1699
|
// custom styles
|
|
1687
1700
|
${({textAreaStyle:e})=>e}
|
|
1688
|
-
`,
|
|
1701
|
+
`,xl=g.default.textarea`
|
|
1689
1702
|
//Set the styles from the default styles object
|
|
1690
1703
|
${({inBuiltCss:e,defaultInputStyle:t})=>W(e,t)}
|
|
1691
1704
|
margin: 0;
|
|
1692
1705
|
overflow: auto;
|
|
1693
1706
|
resize: vertical // custom styles
|
|
1694
1707
|
${({inputStyle:e})=>e};
|
|
1695
|
-
`,
|
|
1708
|
+
`,vl=l.css`
|
|
1696
1709
|
display: flex;
|
|
1697
1710
|
gap: 7px;
|
|
1698
1711
|
align-items: center;
|
|
1699
|
-
`,
|
|
1700
|
-
${({labelInline:e})=>e?
|
|
1712
|
+
`,Al=g.default.div`
|
|
1713
|
+
${({labelInline:e})=>e?vl:null}
|
|
1701
1714
|
${({customStylesForm:e})=>{if(e)return{...e}}}
|
|
1702
1715
|
position: relative;
|
|
1703
1716
|
.err-text {
|
|
@@ -1705,7 +1718,7 @@ padding: 8px;
|
|
|
1705
1718
|
margin-top: 5px;
|
|
1706
1719
|
font-size: 10px;
|
|
1707
1720
|
}
|
|
1708
|
-
`,
|
|
1721
|
+
`,Cl=b.default.forwardRef((({customStylesForm:e,textAreaStyle:t,labelStyle:a,inputStyle:o,errMsg:r,required:i,label:n,labelInline:c,iconBefore:s,iconAfter:d,isValid:u,rows:p,cols:f,id:m,...g},h)=>{const y=l.useTheme()||M;return b.default.createElement(Al,S({labelInline:c,customStylesForm:e,theme:y},g),b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(Ke,S({customStyles:a,type:"label-text",labelInline:c,text:n,errMsg:r,style:{display:"flex",marginBottom:`${c?0:"8px"}`,paddingBottom:"0px"}},g)),i&&b.default.createElement("div",{style:{marginLeft:"4px",color:`${y.variant.error}`}},"*")),b.default.createElement(yl,S({theme:y,required:i,textAreaStyle:t,isValid:u,inBuiltCss:I,defaultWrapperStyle:"textbox-wrapper"},g),b.default.createElement("div",{className:"input-icon"},s),b.default.createElement(xl,S({ref:h,inputStyle:o,defaultInputStyle:"textarea-wrapper",cols:f,rows:p,inBuiltCss:I,id:m},g,{size:"1"})),b.default.createElement("div",{className:"input-icon"},d)),b.default.createElement("div",{className:"err-text"},r))}));Cl.propTypes={rows:m.default.number,label:m.default.string,required:m.default.bool,labelInline:m.default.bool,errMsg:m.default.string,iconBefore:m.default.any,iconAfter:m.default.any,textAreaStyle:m.default.object,labelStyle:m.default.object,inputStyle:m.default.object,id:m.default.string},Cl.defaultProps={label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textAreaStyle:{},labelStyle:{},inputStyle:{},rows:3,id:""};const wl=g.default.div`
|
|
1709
1722
|
color: #a9b1b8;
|
|
1710
1723
|
font-size: 21px;
|
|
1711
1724
|
border: 1px solid
|
|
@@ -1719,7 +1732,7 @@ padding: 8px;
|
|
|
1719
1732
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
1720
1733
|
outline: none;
|
|
1721
1734
|
}
|
|
1722
|
-
`,
|
|
1735
|
+
`,Sl=g.default.input`
|
|
1723
1736
|
border: 0;
|
|
1724
1737
|
outline: 0;
|
|
1725
1738
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
@@ -1729,23 +1742,23 @@ padding: 8px;
|
|
|
1729
1742
|
width: 24px;
|
|
1730
1743
|
text-align:center;
|
|
1731
1744
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1732
|
-
`,
|
|
1745
|
+
`,El=l.css`
|
|
1733
1746
|
&:after {
|
|
1734
1747
|
content: ' *';
|
|
1735
1748
|
color: ${({theme:e})=>e.variant.error};
|
|
1736
1749
|
}
|
|
1737
|
-
`,
|
|
1750
|
+
`,kl=g.default.label`
|
|
1738
1751
|
display: block;
|
|
1739
|
-
margin-bottom: ${({labelInline:e,errMsg:t})=>e&&t?"18px":"
|
|
1740
|
-
margin-right: ${({labelInline:e})=>e?"
|
|
1752
|
+
margin-bottom: ${({labelInline:e,errMsg:t})=>e&&t?"18px":"8px"};
|
|
1753
|
+
margin-right: ${({labelInline:e})=>e?"8px":""};
|
|
1741
1754
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
1742
|
-
${({required:e})=>e?
|
|
1755
|
+
${({required:e})=>e?El:null}
|
|
1743
1756
|
padding-bottom: 0px;
|
|
1744
|
-
`,
|
|
1757
|
+
`,zl=l.css`
|
|
1745
1758
|
display: flex;
|
|
1746
1759
|
align-items: center;
|
|
1747
|
-
`,
|
|
1748
|
-
${({labelInline:e})=>e?
|
|
1760
|
+
`,Vl=g.default.div`
|
|
1761
|
+
${({labelInline:e})=>e?zl:null}
|
|
1749
1762
|
.err-text {
|
|
1750
1763
|
color: ${({theme:e})=>e.variant.error};
|
|
1751
1764
|
margin-top: 5px;
|
|
@@ -1755,7 +1768,7 @@ padding: 8px;
|
|
|
1755
1768
|
> div {
|
|
1756
1769
|
flex: 1 0 auto;
|
|
1757
1770
|
}
|
|
1758
|
-
`,
|
|
1771
|
+
`,Bl=g.default.button`
|
|
1759
1772
|
border: none;
|
|
1760
1773
|
outline: none;
|
|
1761
1774
|
border-radius: 4px;
|
|
@@ -1764,9 +1777,9 @@ padding: 8px;
|
|
|
1764
1777
|
padding: 5px 6px;
|
|
1765
1778
|
font-size: 18px;
|
|
1766
1779
|
cursor: pointer;
|
|
1767
|
-
`,
|
|
1780
|
+
`,Ml=({label:e,errMsg:t,hour:a,minute:o,period:r,onChange:i,id:n,...c})=>{const s=l.useTheme()||M;return b.default.createElement(Vl,S({theme:s},c),b.default.createElement(kl,S({theme:s},c,{errMsg:t}),e),b.default.createElement("div",null,b.default.createElement(wl,S({theme:s,id:n},c),b.default.createElement(Sl,{theme:s,value:a,onChange:function(e){const t=e.currentTarget.value>12?12:parseFloat(e.currentTarget.value)||0;i({hour:t,minute:o,period:r})}}),":",b.default.createElement(Sl,{theme:s,value:o,onChange:function(e){const t=e.currentTarget.value>59?59:parseFloat(e.currentTarget.value)||0;i({hour:a,minute:t,period:r})}}),b.default.createElement(Bl,{theme:s,onClick:function(e){i({hour:a,minute:o,period:"AM"===r?"PM":"AM"})}},r)),b.default.createElement("div",{className:"err-text"},t)))};Ml.propTypes={label:m.default.string,hour:m.default.number.isRequired,minute:m.default.number.isRequired,period:m.default.string.isRequired,required:m.default.bool,labelInline:m.default.bool,isValid:m.default.bool,errMsg:m.default.string,id:m.default.string},Ml.defaultProps={label:"",hour:0,minute:0,period:"AM",required:!1,labelInline:!1,isValid:!0,errMsg:"",id:""};const Il=g.default.div`
|
|
1768
1781
|
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>W(e,t)}
|
|
1769
|
-
`,
|
|
1782
|
+
`,Wl=g.default.label`
|
|
1770
1783
|
|
|
1771
1784
|
left: ${({labelPosition:e})=>"right"===e?"initial":"50px"};
|
|
1772
1785
|
margin-right: ${({labelPosition:e})=>"left"===e?"30px":"0px"};
|
|
@@ -1792,7 +1805,7 @@ padding: 8px;
|
|
|
1792
1805
|
// custom styles
|
|
1793
1806
|
${({customSwitchStyle:e})=>e}
|
|
1794
1807
|
}
|
|
1795
|
-
`,
|
|
1808
|
+
`,Rl=g.default.input.attrs({type:"checkbox"})`
|
|
1796
1809
|
opacity: 0;
|
|
1797
1810
|
z-index: 1;
|
|
1798
1811
|
border-radius: 31px;
|
|
@@ -1803,7 +1816,7 @@ padding: 8px;
|
|
|
1803
1816
|
left: ${({labelPosition:e})=>"right"===e?"initial":"50px"};
|
|
1804
1817
|
|
|
1805
1818
|
|
|
1806
|
-
`,
|
|
1819
|
+
`,Ll=g.default.span`
|
|
1807
1820
|
|
|
1808
1821
|
margin-right: ${({labelPosition:e})=>"30px"};
|
|
1809
1822
|
|
|
@@ -1812,34 +1825,34 @@ padding: 8px;
|
|
|
1812
1825
|
|
|
1813
1826
|
// custom styles
|
|
1814
1827
|
${({optionStyle:e})=>e}
|
|
1815
|
-
`,
|
|
1828
|
+
`,Tl=({checked:e,customSwitchStyle:t,customToggleBoxStyle:a,backgroundColor:o,disabledColor:r,switchColor:i,onClick:n,trueLabel:c,falseLabel:s,optionStyle:d,labelPosition:u,id:p,isDisabled:f,...m})=>{const g=l.useTheme()||M;return b.default.createElement(Il,S({inBuiltCss:I,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},m),"left"===u&&b.default.createElement(Ll,S({optionStyle:d,inBuiltCss:I,labelPosition:u,defaultOptionTextStyle:"toggle-switch-option-text"},m),e?c:s),b.default.createElement(Rl,S({},m,{labelPosition:u,id:p,inBuiltCss:I,defaultCheckBoxStyle:"toggle-switch-checkbox",onClick:()=>{n(!e)},isChecked:e,disabled:f,isDisabled:f})),b.default.createElement(Wl,S({},m,{labelPosition:u,htmlFor:p,customToggleBoxStyle:a,customSwitchStyle:t,disabledColor:r,backgroundColor:o,switchColor:i,inBuiltCss:I,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:g,isDisabled:f})),"right"===u&&b.default.createElement(Ll,S({optionStyle:d,inBuiltCss:I,labelPosition:u,defaultOptionTextStyle:"toggle-switch-option-text"},m),e?c:s))};Tl.propTypes={customToggleBoxStyle:m.default.object,customSwitchStyle:m.default.object,backgroundColor:m.default.string,checked:m.default.bool,trueLabel:m.default.string,falseLabel:m.default.string,id:m.default.string,labelPosition:m.default.string,isDisabled:m.default.bool},Tl.defaultProps={checked:!1,trueLabel:"Yes",falseLabel:"No",customSwitchStyle:{},customToggleBoxStyle:{},id:"",labelPosition:"right",isDisabled:!1};const Pl=g.default.div`
|
|
1816
1829
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1817
1830
|
padding: 24px 8px;
|
|
1818
1831
|
${({commentBodyStyle:e})=>e};
|
|
1819
|
-
`,
|
|
1832
|
+
`,Hl=g.default.div`
|
|
1820
1833
|
display: flex;
|
|
1821
1834
|
flex-direction: column;
|
|
1822
1835
|
margin-bottom: 24px;
|
|
1823
1836
|
${({commentWrapperStyle:e})=>e};
|
|
1824
|
-
`,
|
|
1837
|
+
`,jl=g.default.div`
|
|
1825
1838
|
display: flex;
|
|
1826
1839
|
flex-direction: row;
|
|
1827
1840
|
width: 100%;
|
|
1828
1841
|
justify-content: flex-start;
|
|
1829
1842
|
align-items: center;
|
|
1830
1843
|
${({commentHeadStyle:e})=>e};
|
|
1831
|
-
`,
|
|
1844
|
+
`,ql=g.default.span`
|
|
1832
1845
|
margin-left: 24px;
|
|
1833
1846
|
font-size: 14px;
|
|
1834
1847
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
1835
1848
|
font-weight: 400;
|
|
1836
1849
|
${({dateTimeStyle:e})=>e};
|
|
1837
|
-
`,
|
|
1838
|
-
margin: 0.75rem 0
|
|
1850
|
+
`,Fl=g.default.span`
|
|
1851
|
+
margin: 0.75rem 0 3.5rem;
|
|
1839
1852
|
font-size: 16px;
|
|
1840
1853
|
color: ${M.variant["graph-6"]};
|
|
1841
1854
|
${({commentDivStyle:e})=>e};
|
|
1842
|
-
`,
|
|
1855
|
+
`,Ol=g.default.div`
|
|
1843
1856
|
display: flex;
|
|
1844
1857
|
justify-content: flex-start;
|
|
1845
1858
|
align-items: start;
|
|
@@ -1848,13 +1861,13 @@ padding: 8px;
|
|
|
1848
1861
|
padding: 16px 24px;
|
|
1849
1862
|
border-radius: 0px 0px 4px 4px;
|
|
1850
1863
|
${({inputWrapperStyle:e})=>e};
|
|
1851
|
-
`,
|
|
1864
|
+
`,Zl=g.default.div`
|
|
1852
1865
|
display: inline-flex;
|
|
1853
1866
|
margin-top: 16px;
|
|
1854
|
-
`,
|
|
1867
|
+
`,Gl=g.default.div`
|
|
1855
1868
|
width: 100%;
|
|
1856
1869
|
margin-left: 16px;
|
|
1857
|
-
`,
|
|
1870
|
+
`,Dl=({inputValue:e,setInputValue:a,commentArray:o,commentBodyStyle:r,commentWrapperStyle:i,commentHeadStyle:n,dateTimeStyle:c,commentDivStyle:s,inputWrapperStyle:d,onSave:u,myInfo:p,placeholder:f,...m})=>{const g=l.useTheme()||M,[h,y]=t.useState(!1);return b.default.createElement(Pl,{commentBodyStyle:r,theme:g},o.map(((e,t)=>{const{name:l,date:a,comment:o,image:r}=e;return b.default.createElement(Hl,{key:t,commentWrapperStyle:i},b.default.createElement(jl,{commentHeadStyle:n},b.default.createElement(ie,S({user:{fullName:l,userName:l,url:r},toggleName:!0,size:"LG"},m)),b.default.createElement(ql,{dateTimeStyle:c,theme:g},a)),b.default.createElement(Fl,{commentDivStyle:s},o))})),b.default.createElement(Ol,{theme:g,inputWrapperStyle:d},b.default.createElement(ie,{user:{fullName:p?.fullName,userName:p?.userName,url:p?.url},toggleName:!1,customStylesImage:{height:"36px",width:"36px"},customStylesContainer:{marginTop:"7px"}}),b.default.createElement(Gl,null,b.default.createElement(sl,{value:e,onChange:e=>a(e.target.value),placeholder:f,isValid:!0,inputStyle:{height:"23px"},onFocus:e=>y(!0)}),h&&b.default.createElement(Zl,null,b.default.createElement(Ie,S({size:"sm",onClick:u},m),"Save"),b.default.createElement(ze,{size:"sm",btnStyle:{color:g.variant["neutral-1"]},onClick:e=>y(!1)},"Cancel")))))};Dl.propTypes={commentBodyStyle:m.default.object,commentWrapperStyle:m.default.object,commentHeadStyle:m.default.object,dateTimeStyle:m.default.object,commentDivStyle:m.default.object,inputWrapperStyle:m.default.object,onSave:m.default.func,commentArray:m.default.array,inputValue:m.default.string,setInputValue:m.default.func,myInfo:m.default.object,placeholder:m.default.string},Dl.defaultProps={commentBodyStyle:{},commentWrapperStyle:{},commentHeadStyle:{},dateTimeStyle:{},commentDivStyle:{},inputWrapperStyle:{},onSave:()=>{},commentArray:[],inputValue:"",setInputValue:()=>{},myInfo:{},placeholder:""};const Xl=g.default.div`
|
|
1858
1871
|
//Set the styles from the default styles object
|
|
1859
1872
|
${({theme:e,type:t})=>W(e,t)}
|
|
1860
1873
|
@media (max-width: 980px) {
|
|
@@ -1862,7 +1875,7 @@ padding: 8px;
|
|
|
1862
1875
|
}
|
|
1863
1876
|
// custom styles
|
|
1864
1877
|
${({customStyles:e})=>e}
|
|
1865
|
-
`,
|
|
1878
|
+
`,Jl=({theme:e,type:t,customStyles:l,...a})=>b.default.createElement(Xl,S({theme:e,customStyles:l,type:t},a),a.children);Jl.propTypes={theme:m.default.object,customStyles:m.default.object,type:m.default.string},Jl.defaultProps={theme:I,customStyles:null,type:"content"};const Ul=g.default.div`
|
|
1866
1879
|
width: 100%;
|
|
1867
1880
|
display: flex;
|
|
1868
1881
|
flex-direction: column;
|
|
@@ -1874,7 +1887,7 @@ padding: 8px;
|
|
|
1874
1887
|
button:focus {
|
|
1875
1888
|
outline: none;
|
|
1876
1889
|
}
|
|
1877
|
-
`,
|
|
1890
|
+
`,Yl=g.default.div`
|
|
1878
1891
|
position: relative;
|
|
1879
1892
|
display: flex;
|
|
1880
1893
|
width: 100%;
|
|
@@ -1958,7 +1971,7 @@ padding: 8px;
|
|
|
1958
1971
|
margin-top: 0;
|
|
1959
1972
|
}
|
|
1960
1973
|
}
|
|
1961
|
-
`,
|
|
1974
|
+
`,Ql=g.default.span`
|
|
1962
1975
|
color: #2e56f4;
|
|
1963
1976
|
font-style: normal;
|
|
1964
1977
|
font-weight: normal;
|
|
@@ -1968,14 +1981,14 @@ padding: 8px;
|
|
|
1968
1981
|
margin-top: 37px;
|
|
1969
1982
|
margin-right: 65px;
|
|
1970
1983
|
white-space: nowrap;
|
|
1971
|
-
`,
|
|
1984
|
+
`,Nl=g.default.div`
|
|
1972
1985
|
display: flex;
|
|
1973
1986
|
flex-direction: column;
|
|
1974
1987
|
${""}
|
|
1975
1988
|
max-width: 1340px;
|
|
1976
1989
|
width: 100%;
|
|
1977
1990
|
align-items: center;
|
|
1978
|
-
`,
|
|
1991
|
+
`,Kl=g.default.div`
|
|
1979
1992
|
position: absolute;
|
|
1980
1993
|
font-size: 12px;
|
|
1981
1994
|
border-radius: 50%;
|
|
@@ -1992,23 +2005,23 @@ padding: 8px;
|
|
|
1992
2005
|
transform: translate(30%, -30%);
|
|
1993
2006
|
color: white;
|
|
1994
2007
|
font-weight: 600;
|
|
1995
|
-
`,Kl=g.default.div`
|
|
1996
|
-
width: 90%;
|
|
1997
2008
|
`,$l=g.default.div`
|
|
2009
|
+
width: 90%;
|
|
2010
|
+
`,_l=g.default.div`
|
|
1998
2011
|
background: linear-gradient(
|
|
1999
2012
|
0deg,
|
|
2000
2013
|
hsla(0, 0%, 100%, 1) 20%,
|
|
2001
2014
|
hsla(0, 0%, 100%, 0.5) 100%
|
|
2002
2015
|
);
|
|
2003
2016
|
width: 90%;
|
|
2004
|
-
`,_l=g.default.div`
|
|
2005
|
-
width: 90%;
|
|
2006
2017
|
`,ea=g.default.div`
|
|
2018
|
+
width: 90%;
|
|
2019
|
+
`,ta=g.default.div`
|
|
2007
2020
|
display: flex;
|
|
2008
2021
|
margin-left: auto !important;
|
|
2009
2022
|
margin-right: auto !important;
|
|
2010
2023
|
cursor: pointer;
|
|
2011
|
-
`,
|
|
2024
|
+
`,la=g.default.div`
|
|
2012
2025
|
display: flex;
|
|
2013
2026
|
flex-direction: column;
|
|
2014
2027
|
width: 180px;
|
|
@@ -2017,10 +2030,10 @@ padding: 8px;
|
|
|
2017
2030
|
border-radius: 6px;
|
|
2018
2031
|
margin-right: 0.5rem;
|
|
2019
2032
|
z-index: 999;
|
|
2020
|
-
`,
|
|
2033
|
+
`,aa=g.default.div`
|
|
2021
2034
|
margin: 10.5px 13px;
|
|
2022
2035
|
padding: 0;
|
|
2023
|
-
`,
|
|
2036
|
+
`,oa=g.default.div`
|
|
2024
2037
|
color: #081348;
|
|
2025
2038
|
padding: 7.7px 6.5px 7.7px 24px;
|
|
2026
2039
|
margin: 2.5px 13px;
|
|
@@ -2038,7 +2051,7 @@ padding: 8px;
|
|
|
2038
2051
|
background: #eaeefe;
|
|
2039
2052
|
border-radius: 5px;
|
|
2040
2053
|
}
|
|
2041
|
-
`,
|
|
2054
|
+
`,ra=g.default.div`
|
|
2042
2055
|
position: relative;
|
|
2043
2056
|
display: flex;
|
|
2044
2057
|
width: 100%;
|
|
@@ -2122,41 +2135,41 @@ padding: 8px;
|
|
|
2122
2135
|
margin-top: 0;
|
|
2123
2136
|
}
|
|
2124
2137
|
}
|
|
2125
|
-
`,
|
|
2138
|
+
`,ia=g.default.div`
|
|
2126
2139
|
display: flex;
|
|
2127
2140
|
justify-content: end;
|
|
2128
|
-
`,
|
|
2141
|
+
`,na=g.default.div`
|
|
2129
2142
|
display: flex;
|
|
2130
2143
|
justify-content: center;
|
|
2131
2144
|
flex-direction: row;
|
|
2132
2145
|
align-items: flex-start;
|
|
2133
2146
|
gap: 20px;
|
|
2134
|
-
`,
|
|
2147
|
+
`,ca=g.default.div`
|
|
2135
2148
|
width: 48;
|
|
2136
2149
|
max-width: 48%;
|
|
2137
2150
|
min-width: 48%;
|
|
2138
2151
|
|
|
2139
|
-
`,
|
|
2152
|
+
`,sa=g.default.form`
|
|
2140
2153
|
width: 40vw;
|
|
2141
2154
|
display: flex;
|
|
2142
2155
|
justify-content: center;
|
|
2143
2156
|
flex-direction: column;
|
|
2144
2157
|
gap: 20px;
|
|
2145
2158
|
${({customStyles:e})=>e}
|
|
2146
|
-
`,
|
|
2159
|
+
`,da=({customStyles:e,children:t})=>b.default.createElement(sa,{customStyles:e},t),ua=g.default.div`
|
|
2147
2160
|
display: ${({vertical:e})=>e?"inline-block":"block"};
|
|
2148
2161
|
background: ${({theme:e,borderColor:t})=>t||e.neutral["neutral-5"]};
|
|
2149
2162
|
content: '';
|
|
2150
2163
|
height: ${({vertical:e,thickness:t,height:l})=>e?l:t};
|
|
2151
2164
|
width: ${({vertical:e,thickness:t})=>e?t:null};
|
|
2152
|
-
`,
|
|
2165
|
+
`,pa=({vertical:e,borderColor:t,thickness:a,height:o,...r})=>{const i=l.useTheme()||M;return b.default.createElement(ua,S({theme:i,borderColor:t,thickness:a,vertical:e,height:o},r))};pa.propTypes={thickness:m.default.string,borderColor:m.default.string,vertical:m.default.bool,height:m.default.string},pa.defaultProps={thickness:"2px",vertical:!1,height:"10px"};const fa=g.default.div`
|
|
2153
2166
|
//Set the styles from the default styles object
|
|
2154
2167
|
${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:a})=>{if(e){let o={};if(e[t]){for(const t in e.common)o[t]=e.common[t];for(const l in e[t])delete e.common[l],o[l]=e[t][l];o=l?{...o,...e["drawer-open"]}:{...o,...e["drawer-close"]}}return{...o,...a}}}}
|
|
2155
|
-
`,
|
|
2168
|
+
`,ma=({customStyles:e,drawerOpen:l,setDrawerOpen:a,children:o,...r})=>{const i=t.useRef(null);var n;return n=i,t.useEffect((()=>{function e(e){n.current&&!n.current.contains(e.target)&&a(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[n]),b.default.createElement("div",{ref:i},b.default.createElement(fa,S({inBuiltCss:I,customStyles:e,type:"drawer",drawerOpen:l},r),o))};ma.propTypes={customStyles:m.default.object,drawerOpen:m.default.bool,setDrawerOpen:m.default.func},ma.defaultProps={setDrawerOpen:()=>null};class ba extends t.Component{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;var l=b.default.createElement(t.Fragment,null,b.default.createElement("h3",null,b.default.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"},b.default.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."),b.default.createElement(Ie,{onClick:()=>this.refreshPage()},"Click to refresh"));return e?l:this.props.children}}ba.propTypes={children:m.default.any};const ga=l.css`
|
|
2156
2169
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
2157
2170
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
2158
2171
|
background: ${({theme:e})=>R(e.primary["primary-1"],.04)};
|
|
2159
|
-
`,
|
|
2172
|
+
`,ha=g.default.button`
|
|
2160
2173
|
font-size: 14px;
|
|
2161
2174
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
2162
2175
|
background: ${({theme:e})=>R(e.variant["neutral-5"],.7)};
|
|
@@ -2166,19 +2179,19 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:a})=>{if(e){let o={};if(e[t]){
|
|
|
2166
2179
|
outline: none;
|
|
2167
2180
|
cursor: ${({disabled:e})=>e?"default":"pointer"};
|
|
2168
2181
|
|
|
2169
|
-
${({selected:e})=>e?
|
|
2182
|
+
${({selected:e})=>e?ga:null}
|
|
2170
2183
|
${({customStyles:e})=>e}
|
|
2171
2184
|
|
|
2172
2185
|
|
|
2173
2186
|
&:not(:first-child) {
|
|
2174
2187
|
margin-left: 8px;
|
|
2175
2188
|
}
|
|
2176
|
-
`,
|
|
2189
|
+
`,ya=({options:e,selected:t,onClick:a,customStyles:o,disabled:r,...i})=>{const n=l.useTheme()||M,c=e.map(((e,l)=>b.default.createElement(ha,{theme:n,key:`${e.label}_${l}_${e.value}`,selected:t===e.value,onClick:()=>{a(e.value)},customStyles:o,disabled:r},e.label)));return b.default.createElement(b.default.Fragment,null,c)};ya.propTypes={options:m.default.array,selected:m.default.string,onClick:m.default.func,customStyles:m.default.object,disabled:m.default.bool},ya.defaultProps={options:[],selected:"",customStyles:{},disabled:!1};const xa=g.default.footer`
|
|
2177
2190
|
//Set the styles from the default styles object
|
|
2178
2191
|
${({theme:e,type:t})=>W(e,t)}
|
|
2179
2192
|
// custom styles
|
|
2180
2193
|
${({customStyles:e})=>e}
|
|
2181
|
-
`,
|
|
2194
|
+
`,va=t.forwardRef((({theme:e,customStyles:t,...l},a)=>b.default.createElement(xa,S({ref:a,theme:e,type:"footer",customStyles:t},l),l.children)));va.propTypes={theme:m.default.object,customStyles:m.default.object,type:m.default.string},xa.defaultProps={theme:m.default.object},va.defaultProps={theme:I,customStyles:null};const Aa=g.default.div`
|
|
2182
2195
|
font-size: 14px;
|
|
2183
2196
|
background-color: transparent;
|
|
2184
2197
|
display: flex;
|
|
@@ -2196,7 +2209,7 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:a})=>{if(e){let o={};if(e[t]){
|
|
|
2196
2209
|
${({footerWidth:e})=>{if(e<650)return l.css`
|
|
2197
2210
|
flex-direction: column;
|
|
2198
2211
|
`}}
|
|
2199
|
-
`,
|
|
2212
|
+
`,Ca=g.default.div`
|
|
2200
2213
|
display: flex;
|
|
2201
2214
|
${({footerWidth:e})=>{if(e<650)return l.css`
|
|
2202
2215
|
margin-bottom: 5px;
|
|
@@ -2206,18 +2219,18 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:a})=>{if(e){let o={};if(e[t]){
|
|
|
2206
2219
|
align-items: center;
|
|
2207
2220
|
margin-bottom: 0;
|
|
2208
2221
|
`}}
|
|
2209
|
-
`,
|
|
2222
|
+
`,wa=g.default.div`
|
|
2210
2223
|
margin-top: inherit;
|
|
2211
2224
|
margin-bottom: inherit;
|
|
2212
2225
|
${({footerWidth:e})=>{if(e<350)return l.css`
|
|
2213
2226
|
margin-bottom: 5px;
|
|
2214
2227
|
`}}
|
|
2215
|
-
`,
|
|
2228
|
+
`,Sa=g.default.div`
|
|
2216
2229
|
margin: 0 10px;
|
|
2217
2230
|
${({footerWidth:e})=>{if(e<350)return l.css`
|
|
2218
2231
|
display: none;
|
|
2219
2232
|
`}}
|
|
2220
|
-
`,
|
|
2233
|
+
`,Ea=g.default.header`
|
|
2221
2234
|
|
|
2222
2235
|
background-color: ${({theme:e})=>e.bgColor};
|
|
2223
2236
|
border-bottom: 0.5px solid ${({theme:e})=>e.variant["neutral-3"]};
|
|
@@ -2225,7 +2238,7 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:a})=>{if(e){let o={};if(e[t]){
|
|
|
2225
2238
|
${({inBuiltCss:e,type:t})=>W(e,t)}
|
|
2226
2239
|
// custom styles
|
|
2227
2240
|
${({customStyles:e})=>e}
|
|
2228
|
-
`,
|
|
2241
|
+
`,ka=({type:e,customStyles:t,...a})=>{const o=l.useTheme()||M;return b.default.createElement(Ea,S({theme:o,type:"header",customStyles:t,inBuiltCss:I},a),a.children)};ka.propTypes={customStyles:m.default.object,type:m.default.string},ka.defaultProps={type:"header",customStyles:null};const za=g.default.div`
|
|
2229
2242
|
box-sizing: border-box;
|
|
2230
2243
|
display: flex;
|
|
2231
2244
|
justify-content: center;
|
|
@@ -2233,8 +2246,8 @@ ${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:a})=>{if(e){let o={};if(e[t]){
|
|
|
2233
2246
|
width: auto;
|
|
2234
2247
|
|
|
2235
2248
|
${({size:e})=>l.css`height: ${e}px;`}
|
|
2236
|
-
`,za=g.default.div`
|
|
2237
2249
|
`,Va=g.default.div`
|
|
2250
|
+
`,Ba=g.default.div`
|
|
2238
2251
|
box-sizing: border-box;
|
|
2239
2252
|
display: flex;
|
|
2240
2253
|
justify-content: center;
|
|
@@ -2263,11 +2276,11 @@ svg {
|
|
|
2263
2276
|
`}
|
|
2264
2277
|
}
|
|
2265
2278
|
}
|
|
2266
|
-
`,
|
|
2279
|
+
`,Ma=({theme:e,toggleSet:t,slide:l,color:a,size:o,transform:r,ratingValue:i,starVal:n,hover:c,...s})=>b.default.createElement(Ba,S({theme:e,ratingValue:i,starVal:n,hover:c,toggleSet:t,color:a,size:o,transform:r},s),b.default.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",id:"star_filled","data-name":"star filled",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("defs",null,b.default.createElement("clipPath",{id:"starFilled"},b.default.createElement("path",{id:"Star",d:"M10,15,4.122,18.09l1.123-6.545L.489,6.91l6.572-.955L10,0l2.939,5.955,6.572.955-4.755,4.635,1.123,6.545Z",transform:"translate(2 3)",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"1.5"}))),b.default.createElement("rect",{x:"0",y:"0",fill:"rgb(217,217,217)",width:"100%",height:"100%",clipPath:"url(#starFilled)"}),b.default.createElement("rect",{x:l,y:"0",fill:a,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function Ia(e,t){let l=5*e/t;const a=[],o=l;for(let e=0;e<5;e++){if(l-1>=0)a.push("0");else if(l-1<0&&l-1>-1){const e=(24*l-24).toString();a.push(e)}else a.push("-24");l-=1}return{array:a,value:o}}function Wa(e,t){return 100*e/t}const Ra=({type:e,customStylesContainer:a,customStylesStar:o,customStylesPercentage:r,color:i,size:n,handleClick:c,transform:s,maxRange:d,value:u,toggleStar:p,toggleSet:f,identifier:m,...g})=>{l.useTheme();const[h,y]=t.useState(void 0),[x,v]=t.useState(void 0),[A,C]=t.useState(void 0),[w,E]=t.useState(void 0);t.useEffect((()=>{y(Ia(u,d).array),v(Ia(u,d).value),C(Wa(u,d))}),[u,d]),t.useEffect((()=>{w?y(Ia(w,d).array):(y(Ia(u,d).array),v(Ia(u,d).value),C(Wa(u,d)))}),[w]);const k=b.default.createElement(b.default.Fragment,null,h?.map(((e,t)=>{const l=20*(t+1);return b.default.createElement(Ma,{ratingValue:l,starVal:x,hover:w,toggleSet:f,onClick:f?()=>c(l):null,onMouseEnter:f?()=>{E(l)}:null,onMouseLeave:f?()=>{E(null)}:null,slide:e,color:i,className:"star",size:n,transform:s,key:m?.concat(t),customStyles:o})})));return b.default.createElement(za,S({customStyles:a,type:e,size:n},g,{className:"container"}),p?k:b.default.createElement(Va,{type:e,customStyles:r},A,"%"))};Ra.propTypes={customStylesContainer:m.default.object,customStylesStar:m.default.object,customStylesPercentage:m.default.object,type:m.default.string,color:m.default.string,size:m.default.number,transform:m.default.object,handleClick:m.default.func,maxRange:m.default.number,value:m.default.number,toggleStar:m.default.bool,toggleSet:m.default.bool,identifier:m.default.string},Ra.defaultProps={customStylesContainer:null,customStylesStar:null,customStylesPercentage:null,type:"star",maxRange:100,value:0,identifier:"ratingKey",toggleStar:!0,toggleSet:!1,color:"#F7B001"};const La=g.default.div`
|
|
2267
2280
|
.form-check-input {
|
|
2268
2281
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2269
2282
|
}
|
|
2270
|
-
`,
|
|
2283
|
+
`,Ta=({customStyles:e,inBuiltCss:t,type:a="table",sortIcon:o,data:r,tableColumns:i,progressPending:n,defaultSortFieldId:c,handleOnSort:s,sortServer:d,progressComponent:u,responsive:p,conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:g,checkboxColor:h,...y})=>{let x={};if(t&&t[a]&&(x=t[a]),e)for(const t in e)x[t]=e[t];const v=l.useTheme()||M,A=b.default.forwardRef((({onClick:e,...t},l)=>b.default.createElement(La,{theme:v},b.default.createElement("input",S({type:"checkbox",className:"form-check-input",ref:l,onClick:e},t)))));return b.default.createElement(C.default,S({responsive:p,data:r,columns:i,noHeader:!0,highlightOnHover:!0,sortIcon:o,progressPending:n,customStyles:x,defaultSortFieldId:c,progressComponent:u||void 0,sortServer:d,onSort:(e,t,l)=>{s(e,t,l)},conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:g,selectableRowsComponent:A},y))};Ta.propTypes={inBuiltCss:m.default.object,sortIcon:m.default.any,data:m.default.array,tableColumns:m.default.array,progressPending:m.default.bool,progressComponent:m.default.any,defaultSortFieldId:m.default.number,sortServer:m.default.bool,handleOnSort:m.default.any,responsive:m.default.bool,conditionalRowStyles:m.default.array,fixedHeader:m.default.bool,fixedHeaderScrollHeight:m.default.string,customStyle:m.default.object},Ta.defaultProps={inBuiltCss:I,sortIcon:b.default.createElement(J,{icon:"arrow-down",size:11,color:"#333333",style:{transform:"scaleX(0.7) scaleY(0.7) translate(5px, -3px)"}}),data:[],tableColumns:[],progressPending:!1,defaultSortFieldId:null,handleOnSort:(e,t,l)=>{},sortServer:null,progressComponent:void 0,responsive:!0,fixedHeader:!0,fixedHeaderScrollHeight:"100vh"};const Pa=({title:e,subtitle:t,wrapperStyle:a,imgLink:o,imgStyle:r,iconSize:i})=>{const n=l.useTheme()||M,c={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 b.default.createElement("div",{style:a},b.default.createElement("div",{style:c},o?b.default.createElement("img",{src:o,alt:"userIcon",srcset:"",style:r}):b.default.createElement(J,{icon:"user-icon",size:i,color:n.primary["primary-1"]})," ",b.default.createElement("h4",null,e)),b.default.createElement("div",{style:s},b.default.createElement("p",null,t)))};Pa.propTypes={size:m.default.number},Pa.defaultProps={iconSize:23};const Ha=l.createGlobalStyle`
|
|
2271
2284
|
@font-face {
|
|
2272
2285
|
font-family: "Averta";
|
|
2273
2286
|
font-weight: 100;
|
|
@@ -2375,7 +2388,7 @@ svg {
|
|
|
2375
2388
|
* {
|
|
2376
2389
|
font-family: "Averta";
|
|
2377
2390
|
}
|
|
2378
|
-
`,
|
|
2391
|
+
`,ja=g.default.span`
|
|
2379
2392
|
background: transparent;
|
|
2380
2393
|
position: relative;
|
|
2381
2394
|
display: flex;
|
|
@@ -2384,12 +2397,12 @@ svg {
|
|
|
2384
2397
|
&>span:not(:first-of-type){
|
|
2385
2398
|
margin-left: -13px;
|
|
2386
2399
|
}
|
|
2387
|
-
`,
|
|
2400
|
+
`,qa=g.default.p`
|
|
2388
2401
|
color: ${({theme:e,variantQty:t})=>e.variant[t]};
|
|
2389
2402
|
margin: 0;
|
|
2390
2403
|
margin-left: 7px;
|
|
2391
2404
|
font-size: 16px;
|
|
2392
|
-
`,
|
|
2405
|
+
`,Fa=({items:e,block:t,size:a,variantCircle:o,variantName:r,variantQty:i,flagName:n,user:c,colorCircle:s,colorBorderCircle:d,...u})=>{const p=l.useTheme()||M;return b.default.createElement(ja,S({block:t},u),e?.map(((t,l)=>{let i={},n={};return i.backgroundColor=s?`${p.variant[s]}`:`${p.variant[o]}`,0!==l&&(i.border=d?`2px solid ${d}`:`2px solid ${p.variant[o]}`,n.border=d?`2px solid ${d}`:`2px solid ${p.variant[o]}`),1===e.length?b.default.createElement(ie,{key:t.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${p.variant[{variantName:r}]}`},size:a,toggleName:!0,user:t,customStylesCircle:i,customStylesImage:n}):l<=3?b.default.createElement(ie,{key:t.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${p.variant[{variantName:r}]}`},size:a,toggleName:!1,user:t,customStylesCircle:i,customStylesImage:n}):null})),e.length-4>0?b.default.createElement(qa,{theme:p,variantQty:i},"+",e.length-4):null)};Fa.propTypes={variantCircle:m.default.string,variantName:m.default.string,size:m.default.oneOf(["SM","MD","LG"]),user:m.default.object,theme:m.default.object,colorCircle:m.default.string,colorBorderCircle:m.default.string,variantQty:m.default.string},Fa.defaultProps={variantCircle:"primary-1",variantName:"primary-2",block:!1,size:"MD",flagName:!1,user:{userName:"1"},colorCircle:null,colorBorderCircle:"#FFFFFF",variantQty:"primary-1"};const Oa=g.default.div`
|
|
2393
2406
|
max-width: inherit;
|
|
2394
2407
|
width: inherit;
|
|
2395
2408
|
font-size: 14px;
|
|
@@ -2415,7 +2428,7 @@ svg {
|
|
|
2415
2428
|
&[data-popper-placement*='top'] .tooltip-arrow::after {
|
|
2416
2429
|
border-color: ${({theme:e,variantTPbg:t})=>t?e.variant[t]:"#6b747f"} transparent transparent transparent;
|
|
2417
2430
|
}
|
|
2418
|
-
`,
|
|
2431
|
+
`,Za=g.default.div`
|
|
2419
2432
|
display: flex;
|
|
2420
2433
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2421
2434
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
@@ -2430,24 +2443,24 @@ svg {
|
|
|
2430
2443
|
svg path {
|
|
2431
2444
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2432
2445
|
}
|
|
2433
|
-
`,
|
|
2446
|
+
`,Ga=g.default.div`
|
|
2434
2447
|
display: flex;
|
|
2435
2448
|
justify-content: space-evenly;
|
|
2436
2449
|
flex-grow: 1;
|
|
2437
2450
|
align-items: stretch;
|
|
2438
|
-
`,
|
|
2451
|
+
`,Da=({label:e,index:t,style:a,items:r,variant:i,borderVariant:n,bgVariant:c,variantDisable:s,variantBgDisable:d,disabled:u,divider:p,indexPrefix:f,onClick:m,icon:g,variantTPtext:h,variantTPbg:y,...x})=>{l.useTheme();const{getArrowProps:v,getTooltipProps:A,setTooltipRef:C,setTriggerRef:w,visible:E}=o.usePopperTooltip();return b.default.createElement(b.default.Fragment,null,b.default.createElement(Ga,{ref:w},b.default.createElement(Za,{variant:i,borderVariant:n,bgVariant:c,variantDisable:s,variantBgDisable:d,disabled:u,onClick:u?null:()=>{m(m)}},g),p),E&&b.default.createElement(Oa,S({variantTPtext:h,variantTPbg:y,ref:C},A({className:"tooltip-container"})),e,b.default.createElement("div",v({className:"tooltip-arrow"}))))};Da.propTypes={variant:m.default.string,borderVariant:m.default.string,bgVariant:m.default.string,variantDisable:m.default.string,variantBgDisable:m.default.string,indexPrefix:m.default.string,theme:m.default.object,items:m.default.array,allDisabled:m.default.bool,divider:m.default.any,onClick:m.default.func,variantTPtext:m.default.string,variantTPbg:m.default.string},Ga.defaultProps={theme:M},Za.defaultProps={theme:M},Oa.defaultProps={theme:M},Da.defaultProps={theme:M,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor",variantTPtext:null,variantTPbg:null};const Xa=g.default.div`
|
|
2439
2452
|
display: flex;
|
|
2440
2453
|
justify-content: space-evenly;
|
|
2441
2454
|
align-items: stretch;
|
|
2442
2455
|
height: 42px;
|
|
2443
2456
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
2444
2457
|
border-radius: 3px;
|
|
2445
|
-
`,
|
|
2458
|
+
`,Ja=g.default.div`
|
|
2446
2459
|
display: flex;
|
|
2447
2460
|
justify-content: space-evenly;
|
|
2448
2461
|
flex-grow: 1;
|
|
2449
2462
|
align-items: stretch;
|
|
2450
|
-
`,
|
|
2463
|
+
`,Ua=g.default.div`
|
|
2451
2464
|
display: flex;
|
|
2452
2465
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2453
2466
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
@@ -2462,19 +2475,19 @@ svg {
|
|
|
2462
2475
|
svg path {
|
|
2463
2476
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2464
2477
|
}
|
|
2465
|
-
`,
|
|
2478
|
+
`,Ya=({style:e,items:t,variant:a,borderVariant:o,bgVariant:r,variantDisable:i,variantBgDisable:n,allDisabled:c,divider:s,indexPrefix:d,onClick:u,...p})=>(l.useTheme(),b.default.createElement(Xa,S({variant:a,borderVariant:o},p),t?.map(((e,l)=>b.default.createElement(Ja,{key:d.concat(l)},b.default.createElement(Ua,{variant:a,borderVariant:o,bgVariant:r,variantDisable:i,variantBgDisable:n,title:e.label,disabled:c||e.disabled,onClick:c||e.disabled?null:()=>u(e.label)},e.icon),t?.length-1!==l&&s)))));Ya.propTypes={variant:m.default.string,borderVariant:m.default.string,bgVariant:m.default.string,variantDisable:m.default.string,variantBgDisable:m.default.string,indexPrefix:m.default.string,theme:m.default.object,items:m.default.array,allDisabled:m.default.bool,divider:m.default.any,onClick:m.default.func},Xa.defaultProps={theme:M},Ja.defaultProps={theme:M},Ua.defaultProps={theme:M},Ya.defaultProps={theme:M,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor"};const Qa=g.default.div`
|
|
2466
2479
|
display: flex;
|
|
2467
2480
|
justify-content: space-evenly;
|
|
2468
2481
|
align-items: stretch;
|
|
2469
2482
|
height: 42px;
|
|
2470
2483
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
2471
2484
|
border-radius: 3px;
|
|
2472
|
-
`,
|
|
2485
|
+
`,Na=g.default.div`
|
|
2473
2486
|
display: flex;
|
|
2474
2487
|
justify-content: space-evenly;
|
|
2475
2488
|
flex-grow: 1;
|
|
2476
2489
|
align-items: stretch;
|
|
2477
|
-
`,
|
|
2490
|
+
`,Ka=g.default.div`
|
|
2478
2491
|
display: flex;
|
|
2479
2492
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2480
2493
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
@@ -2489,28 +2502,28 @@ svg {
|
|
|
2489
2502
|
svg path {
|
|
2490
2503
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2491
2504
|
}
|
|
2492
|
-
|
|
2505
|
+
`,$a=({style:e,items:t,variant:a,borderVariant:o,bgVariant:r,variantDisable:i,variantBgDisable:n,allDisabled:c,divider:s,indexPrefix:d,onClick:u,variantTPtext:p,variantTPbg:f,...m})=>(l.useTheme(),b.default.createElement(Qa,S({variant:a,borderVariant:o},m),t?.map(((e,l)=>b.default.createElement(Da,{key:d.concat(l),variant:a,borderVariant:o,bgVariant:r,variantDisable:i,variantBgDisable:n,disabled:c||e.disabled,onClick:c||e.disabled?null:()=>{u(e.label)},divider:t?.length-1!==l&&s,icon:e.icon,index:l,label:e.label,variantTPtext:p,variantTPbg:f})))));$a.propTypes={variant:m.default.string,borderVariant:m.default.string,bgVariant:m.default.string,variantDisable:m.default.string,variantBgDisable:m.default.string,indexPrefix:m.default.string,theme:m.default.object,items:m.default.array,allDisabled:m.default.bool,divider:m.default.any,onClick:m.default.func,variantTPtext:m.default.string,variantTPbg:m.default.string},Qa.defaultProps={theme:M},Na.defaultProps={theme:M},Ka.defaultProps={theme:M},$a.defaultProps={theme:M,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor",variantTPtext:null,variantTPbg:null};const _a=g.default.div`
|
|
2493
2506
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
2494
2507
|
border: 1.3px solid ${({theme:e,variant:t,borderColor:l})=>l||e.variant[t]};
|
|
2495
2508
|
border-radius: 50%;
|
|
2496
2509
|
width: ${({size:e})=>e}px;
|
|
2497
2510
|
height: ${({size:e})=>e}px;
|
|
2498
2511
|
box-sizing: border-box;
|
|
2499
|
-
`,
|
|
2512
|
+
`,eo=({variant:e,bgColor:t,borderColor:a,...o})=>(l.useTheme(),b.default.createElement(_a,S({variant:e,borderColor:a,bgColor:t},o)));eo.propTypes={variant:m.default.string,size:m.default.number,theme:m.default.object,borderColor:m.default.string,bgColor:m.default.string},_a.defaultProps={theme:M},eo.defaultProps={theme:M,variant:"primary-1",size:11};const to=g.default.div`
|
|
2500
2513
|
display: inline-flex;
|
|
2501
2514
|
align-items: center;
|
|
2502
2515
|
background-color: transparent;
|
|
2503
2516
|
min-height: 24px;
|
|
2504
|
-
`,
|
|
2517
|
+
`,lo=g.default.div`
|
|
2505
2518
|
display: flex;
|
|
2506
2519
|
justify-content: space-evenly;
|
|
2507
2520
|
width: 69px;
|
|
2508
|
-
`,
|
|
2521
|
+
`,ao=g.default.p`
|
|
2509
2522
|
display: flex;
|
|
2510
2523
|
color: ${({theme:e,variantText:t,colorText:l})=>l||e.variant[t]};
|
|
2511
2524
|
font-size: 16px;
|
|
2512
2525
|
margin: 0 5px;
|
|
2513
|
-
`,
|
|
2526
|
+
`,oo=({style:e,variantCircle:t,variantText:a,level:o,textArray:r,colorArray:i,indexPrefix:n,colorText:c,...s})=>(l.useTheme(),b.default.createElement(to,s,b.default.createElement(lo,null,[1,2,3,4].map(((e,l)=>{let a="#D4D7E3",r=null,c=null;return o<=0&&(o=0),o>=4&&(o=4),i?o>=e?(r=i[o],a=i[o]):r=i[0]:o>=e?(c=t,a=t):c="#FFFFFF",b.default.createElement(eo,{key:n.concat(l),variant:c,borderColor:a,bgColor:r,size:11})}))),r&&b.default.createElement(ao,{variantText:a,colorText:c},r[o])));oo.propTypes={variantCircle:m.default.string,variantText:m.default.string,level:m.default.number,indexPrefix:m.default.string,theme:m.default.object,block:m.default.bool,textArray:m.default.array,colorArray:m.default.array,colorText:m.default.string},ao.defaultProps={theme:M},oo.defaultProps={theme:M,variantCircle:"primary-1",variantText:"primary-2",block:!1,level:0,indexPrefix:"circle-group"};const ro={xsm:{fontSize:"12px"},sm:{fontSize:"14px"},md:{fontSize:"16px"},lg:{fontSize:"18px"}},io=g.default.button`
|
|
2514
2527
|
${({underlined:e})=>e?null:l.css`&:hover {text-decoration: underline}`};
|
|
2515
2528
|
background: transparent;
|
|
2516
2529
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
@@ -2521,7 +2534,7 @@ svg {
|
|
|
2521
2534
|
justify-content: start;
|
|
2522
2535
|
border: none;
|
|
2523
2536
|
cursor: pointer;
|
|
2524
|
-
font-size: ${({size:e})=>
|
|
2537
|
+
font-size: ${({size:e})=>ro[e].fontSize};
|
|
2525
2538
|
|
|
2526
2539
|
&:disabled {
|
|
2527
2540
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
@@ -2531,7 +2544,7 @@ svg {
|
|
|
2531
2544
|
* {
|
|
2532
2545
|
outline: none;
|
|
2533
2546
|
}
|
|
2534
|
-
`,
|
|
2547
|
+
`,no=({block:e,size:t,style:a,variant:o,disabled:r,underlined:i,...n})=>(l.useTheme(),b.default.createElement(io,S({block:e,variant:o,type:"button",style:a,size:t,disabled:r,underlined:i},n),n.children));no.propTypes={variant:m.default.string,disabled:m.default.bool,size:m.default.oneOf(["xsm","sm","md","lg"]),block:m.default.bool,onClick:m.default.func,theme:m.default.object,underlined:m.default.bool},io.defaultProps={theme:M},no.defaultProps={theme:M,variant:"primary-1",block:!1,disabled:!1,size:"sm",onClick:void 0,label:"Remove",underlined:!1};const co=g.default.div`
|
|
2535
2548
|
display: flex;
|
|
2536
2549
|
justify-content: space-between;
|
|
2537
2550
|
align-items: start;
|
|
@@ -2542,33 +2555,33 @@ svg {
|
|
|
2542
2555
|
z-index: 100;
|
|
2543
2556
|
// custom styles
|
|
2544
2557
|
${({customModalHeaderStyle:e})=>e}
|
|
2545
|
-
`,
|
|
2558
|
+
`,so=g.default.div`
|
|
2546
2559
|
//Set the styles from the default styles object
|
|
2547
2560
|
${({inBuiltCss:e,type:t})=>W(e,t)}
|
|
2548
2561
|
// custom styles
|
|
2549
2562
|
${({customModalBodyStyle:e})=>e}
|
|
2550
|
-
`,
|
|
2563
|
+
`,uo=g.default.div`
|
|
2551
2564
|
max-height: 60vh;
|
|
2552
2565
|
padding: 0 24px 24px 24px;
|
|
2553
2566
|
overflow-y: auto;
|
|
2554
2567
|
${({contentWrapperStyle:e})=>e}
|
|
2555
|
-
`,
|
|
2568
|
+
`,po=g.default.div`
|
|
2556
2569
|
padding-top: 16px;
|
|
2557
2570
|
|
|
2558
2571
|
//Set the styles from the default styles object
|
|
2559
2572
|
${({inBuiltCss:e,type:t})=>W(e,t)}
|
|
2560
2573
|
// custom styles
|
|
2561
2574
|
${({customModalFooterStyle:e})=>e}
|
|
2562
|
-
`,
|
|
2575
|
+
`,fo=g.default.div`
|
|
2563
2576
|
cursor: pointer;
|
|
2564
|
-
`;try{w.default.setAppElement("#root")}catch(e){w.default.setAppElement("#__next")}const
|
|
2577
|
+
`;try{w.default.setAppElement("#root")}catch(e){w.default.setAppElement("#__next")}const mo=({modalIsOpen:e,toggleModal:t,closeOnOutsideClick:a,headerContent:o,bodyContent:r,footerContent:i,customModalHeaderStyle:n,customModalBodyStyle:c,customModalFooterStyle:s,customWidth:d,customMinWidth:u,customMaxWidth:p,contentStyle:f,contentWrapperStyle:m,customZIndex:g,...h})=>{const y={overlay:{zIndex:g,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:u,overflow:"hidden",border:`1px solid ${(l.useTheme()||M).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:d&&d,maxWidth:p&&p,...f}};return b.default.createElement(w.default,S({isOpen:e,onRequestClose:a?t:void 0,style:y,contentLabel:"Modal"},h),b.default.createElement(co,{style:n},o,b.default.createElement(fo,{onClick:t},b.default.createElement(J,{icon:"close-icon",size:18}))),b.default.createElement(uo,{contentWrapperStyle:m},b.default.createElement(so,{inBuiltCss:I,style:c},r),b.default.createElement(po,{inBuiltCss:I,style:s},i)))};mo.propTypes={modalIsOpen:m.default.bool,toggleModal:m.default.func,closeOnOutsideClick:m.default.bool,headerContent:m.default.any,bodyContent:m.default.any,footerContent:m.default.any,customModalHeaderStyle:m.default.object,customModalBodyStyle:m.default.object,customModalFooterStyle:m.default.object,customMinWidth:m.default.string,contentStyle:m.default.object,contentWrapperStyle:m.default.object,customZIndex:m.default.number},mo.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:999999};const bo=g.default.div`
|
|
2565
2578
|
${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.common)a[t]=e.common[t];for(const l in e[t])a[l]=e[t][l],delete e.common[l]}return{...a,...l}}}}
|
|
2566
2579
|
}
|
|
2567
|
-
`,
|
|
2580
|
+
`,go=({theme:e,toggleSimple:t,contentTrigger:l,contentOverlay:a,popperOptionsP:r,settingsP:i,customStyles:n,...c})=>{let s={},d={};t?(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,...r},d={...d,...i};const{getArrowProps:u,getTooltipProps:p,setTooltipRef:f,setTriggerRef:m,visible:g}=o.usePopperTooltip({...d},s);return b.default.createElement(b.default.Fragment,null,b.default.createElement("div",{ref:m,style:{width:"fit-content",height:"fit-content"}},l),g&&b.default.createElement(bo,S({type:t?"simple-overlay":"overlay",theme:e,ref:f},p({className:"tooltip-container"}),{customStyles:n}),a))};go.propTypes={theme:m.default.object,contentTrigger:m.default.any,contentOverlay:m.default.any,popperOptionsP:m.default.object,settingsP:m.default.object,customStyles:m.default.object,toggleSimple:m.default.bool},go.defaultProps={theme:I,contentTrigger:b.default.createElement("div",null,"Trigger"),contentOverlay:b.default.createElement("div",null,"I am the Overlay")};const ho=g.default.div`
|
|
2568
2581
|
display: flex;
|
|
2569
2582
|
justify-content: center;
|
|
2570
2583
|
${({customParentStyles:e})=>e}
|
|
2571
|
-
`,
|
|
2584
|
+
`,yo=g.default.span`
|
|
2572
2585
|
background-color: ${({selected:e,theme:t})=>e?t.variant["neutral-5"]:"transparent"};
|
|
2573
2586
|
color: ${({selected:e,theme:t})=>e?t.variant["primary-2"]:t.variant["neutral-3"]};
|
|
2574
2587
|
padding: 8px 14px;
|
|
@@ -2580,7 +2593,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2580
2593
|
font-size: 14px;
|
|
2581
2594
|
|
|
2582
2595
|
${({customItemStyles:e})=>e}
|
|
2583
|
-
`,
|
|
2596
|
+
`,xo=g.default.div`
|
|
2584
2597
|
display: flex;
|
|
2585
2598
|
justify-content: center;
|
|
2586
2599
|
align-items: center;
|
|
@@ -2603,16 +2616,16 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2603
2616
|
}
|
|
2604
2617
|
|
|
2605
2618
|
${({customIconWrapperStyles:e})=>e}
|
|
2606
|
-
`,xo=g.default.div`
|
|
2607
|
-
padding: 0 15px;
|
|
2608
2619
|
`,vo=g.default.div`
|
|
2620
|
+
padding: 0 15px;
|
|
2621
|
+
`,Ao=g.default.div`
|
|
2609
2622
|
display: flex;
|
|
2610
2623
|
align-items: center;
|
|
2611
2624
|
justify-content: center;
|
|
2612
2625
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2613
2626
|
|
|
2614
2627
|
${({customLeftWrapperStyles:e})=>e}
|
|
2615
|
-
`,
|
|
2628
|
+
`,Co=g.default.div`
|
|
2616
2629
|
display: flex;
|
|
2617
2630
|
margin: 0;
|
|
2618
2631
|
align-items: center;
|
|
@@ -2625,11 +2638,11 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2625
2638
|
margin: 0 10px;
|
|
2626
2639
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2627
2640
|
}
|
|
2628
|
-
`,
|
|
2641
|
+
`,wo=({selectedPage:e,setSelectedPage:a,totalPage:o,customItemStyles:r,customLeftWrapperStyles:i,customIconWrapperStyles:n,previousText:c,nextText:s,pageToShow:d,totalResults:u,showResultPerPage:p,customParentStyles:f,customRightWrapperStyles:m,...g})=>{const h=l.useTheme()||M,[y,x]=t.useState([]);let v=d>o?o:d;t.useEffect((()=>{x(Array.from({length:v},((e,t)=>t+1)))}),[o,d,v]);const A=t=>{let l=[];"increase"===t&&y[v-1]<=o&&e!==y[v-1]?a(e+1):"increase"===t&&y[v-1]<o?(l=Array.from({length:v},((e,t)=>t+y[0]+1)),a(e+1),x(l)):"decrease"===t&&y[0]<=e-1?a(e-1):"decrease"===t&&e>1&&(a(e-1),x(Array.from({length:v},((e,t)=>t+y[0]-1))))};return b.default.createElement(ho,{customParentStyles:f}," ",b.default.createElement(Ao,S({theme:h,customLeftWrapperStyles:i},g),b.default.createElement(xo,S({onClick:()=>A("decrease"),disabled:1===e,theme:h,customIconWrapperStyles:n},g),b.default.createElement(J,{icon:"triangle-down",transform:"rotate(90deg)",color:h.variant["neutral-3"]}),b.default.createElement("span",{className:"prev-text"}," ",c)),b.default.createElement(vo,g,y.map(((t,l)=>b.default.createElement(yo,{key:l,theme:h,selected:e===t,onClick:()=>a(t),customItemStyles:r},t)))),b.default.createElement(xo,{onClick:()=>A("increase"),disabled:e===o,theme:h,customIconWrapperStyles:n},b.default.createElement("span",{className:"next-text"}," ",s),b.default.createElement(J,{icon:"triangle-down",transform:"rotate(-90deg)",color:h.variant["neutral-3"]}))),p&&b.default.createElement(Co,{theme:h,customRightWrapperStyles:m},b.default.createElement(kt,{optionArr:[{value:"10",label:"10"},{value:"20",label:"20"},{value:"30",label:"30"}],value:{value:"10",label:"10"},customWrapperStyles:{width:"fit-content"},isDisabled:!0,iconColor:h.variant["neutral-3"]}),b.default.createElement("p",{style:{marginBottom:0}},b.default.createElement("span",null,"OF")," ",u," ",b.default.createElement("span",null,"RESULTS"))))};wo.propTypes={customItemStyles:m.default.object,selectedPage:m.default.number,customLeftWrapperStyles:m.default.object,customIconWrapperStyles:m.default.object,previousText:m.default.string,nextText:m.default.string,pageToShow:m.default.number,totalResults:m.default.number,showResultPerPage:m.default.bool,customParentStyles:m.default.object,customRightWrapperStyles:m.default.object},wo.defaultProps={selectedPage:1,customItemStyles:{},customLeftWrapperStyles:{},customIconWrapperStyles:{},previousText:"PREVIOUS",nextText:"NEXT",pageToShow:5,totalResults:0,showResultPerPage:!1,customParentStyles:{},customRightWrapperStyles:{}};const So=g.default.div`
|
|
2629
2642
|
display: flex;
|
|
2630
2643
|
align-items: center;
|
|
2631
2644
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2632
|
-
`,
|
|
2645
|
+
`,Eo=({...e})=>{const t=l.useTheme()||M;return b.default.createElement(So,{theme:t},e.children)},ko=g.default.div`
|
|
2633
2646
|
font-size: 14px;
|
|
2634
2647
|
color: ${({selected:e,theme:t})=>e?t.variant["primary-1"]:null};
|
|
2635
2648
|
|
|
@@ -2645,7 +2658,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2645
2658
|
&:not(:first-child):not(:last-child) {
|
|
2646
2659
|
margin: 0 22px;
|
|
2647
2660
|
}
|
|
2648
|
-
`;(
|
|
2661
|
+
`;(Eo.PageItem=function({selected:e,...t}){const a=l.useTheme()||M;return b.default.createElement(ko,S({selected:e,theme:a},t),t.children)}).propTypes={selected:m.default.bool},Eo.PageItem.defaultProps={selected:!1};const zo=g.default.div`
|
|
2649
2662
|
position: relative;
|
|
2650
2663
|
height: 10px;
|
|
2651
2664
|
border-radius: 10px;
|
|
@@ -2658,7 +2671,7 @@ position: relative;
|
|
|
2658
2671
|
|
|
2659
2672
|
// custom styles
|
|
2660
2673
|
${({progressWrapStyle:e})=>e}
|
|
2661
|
-
`,
|
|
2674
|
+
`,Vo=g.default.div`
|
|
2662
2675
|
height: inherit;
|
|
2663
2676
|
width: inherit;
|
|
2664
2677
|
transition: width 1s ease-in-out;
|
|
@@ -2670,12 +2683,12 @@ position: relative;
|
|
|
2670
2683
|
${({progressBarStyle:e})=>e}
|
|
2671
2684
|
width: ${({now:e})=>e+"%"};
|
|
2672
2685
|
background-color: ${({color:e,theme:t})=>e||t.primary["primary-1"]};
|
|
2673
|
-
`,
|
|
2686
|
+
`,Bo=({labelStyle:e,progressBarStyle:t,progressWrapStyle:a,label:o,now:r,color:i,innerContent:n,...c})=>{const s=l.useTheme()||M;return b.default.createElement("div",null,b.default.createElement(Ke,S({inBuiltCss:I,customStyles:e,type:"progressBar-label",text:o},c)),b.default.createElement(zo,S({progressBarStyle:t,theme:s,progressWrapStyle:a,color:i},c),b.default.createElement(Vo,S({progressBarStyle:t,now:r,theme:s,color:i},c)),b.default.createElement("div",{style:{position:"absolute",zIndex:"3",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},n)))};Bo.propTypes={labelStyle:m.default.object,progressBarStyle:m.default.object,progressWrapStyle:m.default.object,color:m.default.string,label:m.default.string,now:m.default.number,innerContent:m.default.any},Bo.defaultProps={labelStyle:{},progressBarStyle:{},innerContent:"",label:"",now:0};const Mo=g.default.div`
|
|
2674
2687
|
background: transparent;
|
|
2675
2688
|
display: flex;
|
|
2676
2689
|
align-items: center;
|
|
2677
2690
|
width: ${({block:e})=>e?"100%":"fit-content"};
|
|
2678
|
-
`,
|
|
2691
|
+
`,Io=g.default.div`
|
|
2679
2692
|
margin: 0;
|
|
2680
2693
|
color: ${({theme:e,variantOff:t})=>e.variant[t]};
|
|
2681
2694
|
white-space: nowrap;
|
|
@@ -2693,16 +2706,16 @@ position: relative;
|
|
|
2693
2706
|
&>div:first-of-type{
|
|
2694
2707
|
color: ${({theme:e,variantOn:t})=>e.variant[t]};
|
|
2695
2708
|
}
|
|
2696
|
-
`,
|
|
2709
|
+
`,Wo=g.default.div`
|
|
2697
2710
|
display: flex;
|
|
2698
2711
|
margin-left: 20px;
|
|
2699
|
-
`,
|
|
2712
|
+
`,Ro=g.default.div`
|
|
2700
2713
|
height: 6px;
|
|
2701
2714
|
width: ${({widthStep:e})=>e}px;
|
|
2702
2715
|
margin: 0 3px;
|
|
2703
2716
|
background-color: ${({theme:e,isActive:t,variantOn:l,variantOff:a})=>t?e.variant[l]:e.variant[a]};
|
|
2704
2717
|
border-radius: 19px;
|
|
2705
|
-
`,
|
|
2718
|
+
`,Lo=({block:e,variantOn:t,variantOff:a,currentStep:o,totalSteps:r,widthStep:i,style:n,progressText:c,...s})=>(l.useTheme(),b.default.createElement(Mo,S({block:e},s,{style:n}),b.default.createElement(Io,S({},s,{variantOn:t,variantOff:a}),c||"Page"," ",b.default.createElement("div",null,o)," of ",b.default.createElement("div",null,r)),b.default.createElement(Wo,s,Array.from(Array(r).keys()).map((e=>b.default.createElement(Ro,{key:"formSteps".concat(e),isActive:o===e+1,variantOn:t,variantOff:a,widthStep:i}))))));Lo.propTypes={variantOn:m.default.string,variantOff:m.default.string,block:m.default.bool,theme:m.default.object,currentStep:m.default.number,totalSteps:m.default.number,widthStep:m.default.number,progressText:m.default.string},Mo.defaultProps={theme:M},Io.defaultProps={theme:M},Wo.defaultProps={theme:M},Ro.defaultProps={theme:M},Lo.defaultProps={theme:M,variantOn:"primary-1",variantOff:"neutral-2",block:!1,currentStep:1,totalSteps:4,widthStep:43};const To=g.default.button`
|
|
2706
2719
|
background: ${({disabled:e,theme:t,bgVariant:l})=>e?"#BBC4CF":t.variant[l]};
|
|
2707
2720
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2708
2721
|
padding: 6px 17px;
|
|
@@ -2729,7 +2742,7 @@ position: relative;
|
|
|
2729
2742
|
* {
|
|
2730
2743
|
outline: none;
|
|
2731
2744
|
}
|
|
2732
|
-
`,
|
|
2745
|
+
`,Po=({block:e,style:t,variant:a,bgVariant:o,disabled:r,...i})=>(l.useTheme(),b.default.createElement(To,S({block:e,variant:a,bgVariant:o,type:"button",style:t,disabled:r},i),i.children));Po.propTypes={variant:m.default.string,bgVariant:m.default.string,disabled:m.default.bool,block:m.default.bool,onClick:m.default.func,theme:m.default.object},To.defaultProps={theme:M},Po.defaultProps={theme:M,variant:"primary-2",bgVariant:"neutral-4",block:!1,disabled:!1,onClick:void 0};const Ho=g.default.button`
|
|
2733
2746
|
background: ${({disabled:e,theme:t})=>e?"#BBC4CF":t.bgColor};
|
|
2734
2747
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2735
2748
|
padding: 6px 17px;
|
|
@@ -2752,7 +2765,7 @@ position: relative;
|
|
|
2752
2765
|
fill: #929EAC;
|
|
2753
2766
|
}
|
|
2754
2767
|
}
|
|
2755
|
-
`,
|
|
2768
|
+
`,jo=({block:e,style:t,variant:a,borderVariant:o,disabled:r,...i})=>(l.useTheme(),b.default.createElement(Ho,S({block:e,variant:a,borderVariant:o,type:"button",style:t,disabled:r},i),i.children));jo.propTypes={variant:m.default.string,borderVariant:m.default.string,disabled:m.default.bool,block:m.default.bool,onClick:m.default.func,theme:m.default.object},Ho.defaultProps={theme:M},jo.defaultProps={theme:M,variant:"primary-2",borderVariant:"neutral-3",block:!1,disabled:!1,onClick:void 0};const qo=g.default.div`
|
|
2756
2769
|
display: flex;
|
|
2757
2770
|
flex-direction: column;
|
|
2758
2771
|
height: ${({toggleSideBarOpen:e})=>"100vh"};
|
|
@@ -2760,7 +2773,7 @@ position: relative;
|
|
|
2760
2773
|
@media (max-width: 428px) {
|
|
2761
2774
|
height: ${({toggleSideBarOpen:e})=>e?"100vh":"56px"};
|
|
2762
2775
|
}
|
|
2763
|
-
`,
|
|
2776
|
+
`,Fo=g.default.div`
|
|
2764
2777
|
min-height: 56px;
|
|
2765
2778
|
display: flex;
|
|
2766
2779
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
@@ -2777,7 +2790,7 @@ position: relative;
|
|
|
2777
2790
|
}
|
|
2778
2791
|
|
|
2779
2792
|
${({headerStyles:e})=>e}
|
|
2780
|
-
`,
|
|
2793
|
+
`,Oo=g.default.div`
|
|
2781
2794
|
display: flex;
|
|
2782
2795
|
background-color: transparent;
|
|
2783
2796
|
flex-direction: column;
|
|
@@ -2787,7 +2800,7 @@ position: relative;
|
|
|
2787
2800
|
// @media (max-width: 428px) {
|
|
2788
2801
|
// display: ${({toggleSideBarOpen:e})=>e?"block":"none"} ;
|
|
2789
2802
|
// }
|
|
2790
|
-
`,
|
|
2803
|
+
`,Zo=g.default.div`
|
|
2791
2804
|
display: flex;
|
|
2792
2805
|
justify-content: flex-start;
|
|
2793
2806
|
align-items: center;
|
|
@@ -2816,7 +2829,7 @@ position: relative;
|
|
|
2816
2829
|
p {
|
|
2817
2830
|
margin: 0;
|
|
2818
2831
|
}
|
|
2819
|
-
`,
|
|
2832
|
+
`,Go=g.default.div`
|
|
2820
2833
|
background-color: ${({theme:e})=>e.variant["primary-1"]} !important;
|
|
2821
2834
|
color: ${({theme:e})=>e.bgColor};
|
|
2822
2835
|
overflow-y: auto;
|
|
@@ -2834,7 +2847,7 @@ ${({isOpen:e,forceOpen:t,inBuiltCss:l,type:a,customStylesContainerOpen:o,customS
|
|
|
2834
2847
|
@media (max-width: 980px) {
|
|
2835
2848
|
${({isOpen:e,inBuiltCss:t,type:l,customStylesContainerMobileOpen:a,customStylesContainerMobileClose:o})=>{}}
|
|
2836
2849
|
}
|
|
2837
|
-
`,
|
|
2850
|
+
`,Do=g.default.div`
|
|
2838
2851
|
${({inBuiltCss:e,type:t})=>W(e,"sidebar-pusher")}
|
|
2839
2852
|
${({customStylesPusher:e})=>e}
|
|
2840
2853
|
|
|
@@ -2843,33 +2856,33 @@ ${({forceOpen:e,inBuiltCss:t,type:l,customStylesPusherOpen:a,customStylesPusherC
|
|
|
2843
2856
|
@media (max-width: 980px) {
|
|
2844
2857
|
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...W(e,"sidebar-pusher-mobile"),...l})}
|
|
2845
2858
|
}
|
|
2846
|
-
`,
|
|
2859
|
+
`,Xo=({customStylesContainer:e,customStylesContainerOpen:t,customStylesContainerClose:a,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r,customStylesPusher:i,customStylesPusherOpen:n,customStylesPusherClose:c,customStylesPusherMobile:s,forceOpen:d,forceClose:u,handleSidebar:p,toggleSideBarOpen:f,pinner:m,...g})=>{function h(e){p(e)}const y=l.useTheme()||M;return b.default.createElement(Go,S({theme:y,inBuiltCss:I,customStyles:e,type:"sidebarContainer",onMouseEnter:()=>{d||h(!0)},onMouseLeave:()=>{h(!1),u()},forceOpen:d,isOpen:f},g),b.default.createElement(Do,null),g.children,m)};Xo.propTypes={customStylesContainer:m.default.object,customStylesContainerOpen:m.default.object,customStylesContainerClose:m.default.object,customStylesContainerMobileOpen:m.default.object,customStylesContainerMobileClose:m.default.object,customStylesPusher:m.default.object,customStylesPusherOpen:m.default.object,customStylesPusherClose:m.default.object,customStylesPusherMobile:m.default.object,forceOpen:m.default.bool,forceClose:m.default.func,handleSidebar:m.default.func,toggleSideBarOpen:m.default.bool,pinner:m.default.any},Xo.defaultProps={forceClose:()=>{},forceOpen:!1};const Jo={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Uo=g.default.div`
|
|
2847
2860
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2848
2861
|
color: ${({theme:e})=>e.bgColor};
|
|
2849
|
-
padding: ${({size:e})=>
|
|
2862
|
+
padding: ${({size:e})=>Jo[e].padding};
|
|
2850
2863
|
border: 1px solid ${({theme:e,variant:t})=>e.variant[t]};
|
|
2851
2864
|
border-radius: 42px;
|
|
2852
|
-
font-size: ${({size:e})=>
|
|
2865
|
+
font-size: ${({size:e})=>Jo[e].fontSize};
|
|
2853
2866
|
font-weight: 600;
|
|
2854
2867
|
display: flex;
|
|
2855
2868
|
align-items: center;
|
|
2856
2869
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
2857
2870
|
box-sizing: border-box;
|
|
2858
2871
|
|
|
2859
|
-
`,
|
|
2872
|
+
`,Yo=({block:e,style:t,variant:a,...o})=>(l.useTheme(),b.default.createElement(Uo,S({block:e,variant:a,style:t},o),o.children));Yo.propTypes={variant:m.default.string,block:m.default.bool,theme:m.default.object},Uo.defaultProps={theme:M},Yo.defaultProps={theme:M,variant:"primary-1",block:!1};const Qo={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},No=g.default.div`
|
|
2860
2873
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2861
2874
|
background: ${({theme:e})=>e.bgColor};
|
|
2862
|
-
padding: ${({size:e})=>
|
|
2875
|
+
padding: ${({size:e})=>Qo[e].padding};
|
|
2863
2876
|
border: 1px solid ${({theme:e,variant:t})=>e.variant[t]};
|
|
2864
2877
|
border-radius: 42px;
|
|
2865
|
-
font-size: ${({size:e})=>
|
|
2878
|
+
font-size: ${({size:e})=>Qo[e].fontSize};
|
|
2866
2879
|
font-weight: 600;
|
|
2867
2880
|
display: flex;
|
|
2868
2881
|
align-items: center;
|
|
2869
2882
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
2870
2883
|
box-sizing: border-box;
|
|
2871
2884
|
|
|
2872
|
-
`,
|
|
2885
|
+
`,Ko=({block:e,style:t,variant:a,...o})=>(l.useTheme(),b.default.createElement(No,S({block:e,variant:a,style:t},o),o.children));Ko.propTypes={variant:m.default.string,block:m.default.bool,theme:m.default.object},No.defaultProps={theme:M},Ko.defaultProps={theme:M,variant:"primary-1",block:!1};const $o={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},_o=g.default.div`
|
|
2873
2886
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
2874
2887
|
color: ${({theme:e,textColor:t})=>t||e.bgColor};
|
|
2875
2888
|
border-radius: 13.5px;
|
|
@@ -2877,11 +2890,11 @@ font-size: 14px;
|
|
|
2877
2890
|
display: inline-flex;
|
|
2878
2891
|
align-items: center;
|
|
2879
2892
|
justify-content: center;
|
|
2880
|
-
min-width: ${({block:e,size:t})=>e?"auto"
|
|
2893
|
+
min-width: ${({block:e,size:t})=>e?"auto":$o[t].width};
|
|
2881
2894
|
height: 28px;
|
|
2882
2895
|
box-sizing: border-box;
|
|
2883
2896
|
overflow: hidden;
|
|
2884
|
-
`,
|
|
2897
|
+
`,er=({block:e,style:t,variant:a,textColor:o,bgColor:r,...i})=>(l.useTheme(),b.default.createElement(_o,S({block:e,variant:a,textColor:o,bgColor:r,style:t},i),i.children));er.propTypes={variant:m.default.string,size:m.default.oneOf(["xsm","sm","md","lg"]),block:m.default.bool,theme:m.default.object,textColor:m.default.string,bgColor:m.default.string},_o.defaultProps={theme:M},er.defaultProps={theme:M,variant:"primary-1",block:!1,size:"sm"};const tr={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},lr=g.default.div`
|
|
2885
2898
|
background: ${({theme:e})=>e.bgColor};
|
|
2886
2899
|
color: ${({theme:e,variant:t,textColor:l})=>l||e.variant[t]};
|
|
2887
2900
|
border: 1px solid ${({theme:e,variant:t,borderColor:l})=>l||e.variant[t]};
|
|
@@ -2890,30 +2903,30 @@ font-size: 14px;
|
|
|
2890
2903
|
display: flex;
|
|
2891
2904
|
align-items: center;
|
|
2892
2905
|
justify-content: center;
|
|
2893
|
-
width: ${({block:e,size:t})=>e?"auto":
|
|
2906
|
+
width: ${({block:e,size:t})=>e?"auto":tr[t].width};
|
|
2894
2907
|
height: 27px;
|
|
2895
2908
|
box-sizing: border-box;
|
|
2896
2909
|
overflow: hidden;
|
|
2897
|
-
`,
|
|
2910
|
+
`,ar=({block:e,style:t,variant:a,textColor:o,borderColor:r,...i})=>(l.useTheme(),b.default.createElement(lr,S({block:e,variant:a,textColor:o,borderColor:r,style:t},i),i.children));ar.propTypes={variant:m.default.string,size:m.default.oneOf(["xsm","sm","md","lg"]),block:m.default.bool,theme:m.default.object,textColor:m.default.string,borderColor:m.default.string},lr.defaultProps={theme:M},ar.defaultProps={theme:M,variant:"primary-1",block:!1,size:"sm"};const or=e=>b.default.createElement("div",null,e.childern);or.propTypes={name:m.default.string};const rr=g.default.div`
|
|
2898
2911
|
padding: 24px;
|
|
2899
2912
|
${({tabWrapperStyle:e})=>e}
|
|
2900
|
-
`,
|
|
2913
|
+
`,ir=g.default.div`
|
|
2901
2914
|
color: ${({theme:e})=>e.variant["graph-5"]};
|
|
2902
2915
|
display: flex;
|
|
2903
2916
|
align-items: flex-start;
|
|
2904
2917
|
column-gap: 12px;
|
|
2905
2918
|
padding-bottom: 24px;
|
|
2906
2919
|
${({headerWrapperStyle:e})=>e}
|
|
2907
|
-
`,
|
|
2920
|
+
`,nr=g.default.span`
|
|
2908
2921
|
font-size: 16px;
|
|
2909
2922
|
padding: 7px 20px;
|
|
2910
2923
|
background-color: ${({theme:e,isActive:t})=>t?R(e.variant["primary-1"],.2):"transparent"};
|
|
2911
2924
|
cursor: pointer;
|
|
2912
2925
|
border-radius: 5px;
|
|
2913
2926
|
${({headerStyle:e})=>e}
|
|
2914
|
-
`,
|
|
2927
|
+
`,cr=g.default.div`
|
|
2915
2928
|
${({tabContentStyle:e})=>e}
|
|
2916
|
-
`,
|
|
2929
|
+
`,sr=({children:e,tabWrapperStyle:a,headerStyle:o,tabContentStyle:r,headerWrapperStyle:i,dividerStyle:n,...c})=>{const[s,d]=t.useState([]),[u,p]=t.useState({}),[f,m]=t.useState("");t.useEffect((()=>{const t=[],l={};b.default.Children.forEach(e,(e=>{if(!b.default.isValidElement(e))return;const{name:a}=e.props;t.push(a),l[a]=e.props.children})),d(t),m(t[0]),p({...l})}),[e]);const g=l.useTheme()||M;return b.default.createElement(rr,{tabWrapperStyle:a},b.default.createElement(ir,{theme:g,headerWrapperStyle:i},s.map(((e,t)=>b.default.createElement(nr,{onClick:()=>{m(e)},key:t,theme:g,isActive:e===f,headerStyle:o},e)))),b.default.createElement(pa,{theme:g,height:"8px",dividerStyle:n}),b.default.createElement(cr,{tabContentStyle:r},Object.keys(u).map((e=>e===f?b.default.createElement("div",null,u[e]):null))))};sr.propTypes={children:function(e,t,l){const a=e[t];let o=null;return b.default.Children.forEach(a,(function(e){e.type!==or&&(o=new Error("`"+l+"` children should be of type `TabPanel`."))})),o}},sr.propTypes={tabWrapperStyle:m.default.object,headerWrapperStyle:m.default.object,headerStyle:m.default.object,dividerStyle:m.default.object,tabContentStyle:m.default.object},sr.defaultProps={tabWrapperStyle:{},headerStyle:{},tabContentStyle:{},headerWrapperStyle:{},dividerStyle:{}};const dr=g.default.div`
|
|
2917
2930
|
.notification {
|
|
2918
2931
|
background: ${({theme:e})=>e.bgColor};
|
|
2919
2932
|
transition: 0.3s ease;
|
|
@@ -2987,7 +3000,7 @@ overflow: hidden;
|
|
|
2987
3000
|
.close-icon {
|
|
2988
3001
|
cursor: pointer;
|
|
2989
3002
|
}
|
|
2990
|
-
`,
|
|
3003
|
+
`,ur=({close:e,children:a,type:o,position:r,timeout:i})=>{((e,l)=>{const a=t.useRef(e);t.useEffect((()=>{a.current=e}),[e]),t.useEffect((()=>{if(null===l)return;const e=setTimeout((()=>a.current()),l);return()=>clearTimeout(e)}),[l])})(e,i||5e4);const n=l.useTheme()||M;let c=null;switch(o){case"success":c=b.default.createElement(J,{icon:"check-icon",color:"white",size:12,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"warning":c=b.default.createElement(J,{icon:"info-icon",color:"white",size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"error":c=b.default.createElement(J,{icon:"close-white",size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})}return b.default.createElement(dr,{theme:n,type:o},b.default.createElement("div",{className:`notification toast ${r}`},b.default.createElement("div",{className:"leftSide"},b.default.createElement("div",{className:"notification-icon"},c),b.default.createElement("div",null,b.default.createElement("p",{className:"notification-message"},a))),b.default.createElement("div",{className:"close-icon",onClick:e},b.default.createElement(J,{icon:"close-icon",color:n.variant["neutral-2"]}))))},pr=t.createContext(),fr=g.default.div`
|
|
2991
3004
|
.notification-container {
|
|
2992
3005
|
font-size: 14px;
|
|
2993
3006
|
box-sizing: border-box;
|
|
@@ -3040,9 +3053,9 @@ overflow: hidden;
|
|
|
3040
3053
|
transform: translateX(0);
|
|
3041
3054
|
}
|
|
3042
3055
|
}
|
|
3043
|
-
`;function
|
|
3056
|
+
`;function mr(){let e=46656*Math.random()|0,t=46656*Math.random()|0;return e=("000"+e.toString(36)).slice(-3),t=("000"+t.toString(36)).slice(-3),e+t}const br={xs:{fontSize:"12px",lineHeight:"120%"},sm:{fontSize:"14px",lineHeight:"120%"},md:{fontSize:"16px",lineHeight:"140%"},lg:{fontSize:"18px",lineHeight:"120%"}},gr=g.default.div`
|
|
3044
3057
|
color: ${({theme:e,text:t})=>t?e.variant[t]:e.textColor};
|
|
3045
3058
|
// background: ${({theme:e,bg:t})=>t?e.variant[t]:e.bgColor};
|
|
3046
|
-
font-size: ${({size:e})=>
|
|
3047
|
-
line-height: ${({size:e})=>
|
|
3048
|
-
`,
|
|
3059
|
+
font-size: ${({size:e})=>br[e].fontSize};
|
|
3060
|
+
line-height: ${({size:e})=>br[e].lineHeight};
|
|
3061
|
+
`,hr=({size:e,children:t,bg:a,text:o,...r})=>{const i=l.useTheme()||M;return b.default.createElement(gr,S({theme:i,bg:a,text:o,size:e},r),b.default.createElement(Ha,{theme:i}),t)};hr.propTypes={size:m.default.oneOf(["xs","sm","md","lg"]),text:m.default.string,bg:m.default.string,children:m.default.any,theme:m.default.object},hr.defaultProps={size:"md"},exports.Accordion=Y,exports.AccordionSB=Q,exports.AccordionSBfooter=N,exports.ActionContainer=ta,exports.ActionItem=oa,exports.ArrowBar=ee,exports.Avatar=ie,exports.AvatarSB=ue,exports.AvatarSBfooter=be,exports.Banner=ye,exports.Breadcrumb=Qe,exports.ButtonPopup=Da,exports.Card=T,exports.CardRef=H,exports.CheckBoxInput=at,exports.ColorInput=it,exports.Comment=Dl,exports.Content=Jl,exports.DarkSecondaryLink=Po,exports.DateSelect=bt,exports.DateTime=At,exports.Divider=pa,exports.DocumentCard=Z,exports.DotPulseLoader=()=>{const e=l.useTheme()||M;return b.default.createElement(xe,{activeTheme:e},b.default.createElement("div",{className:"dot-pulse"}))},exports.Drawer=ma,exports.DropdownSelect=kt,exports.DropzoneInput=Pt,exports.ErrorBoundary=ba,exports.FilterChip=ya,exports.Footer=va,exports.FooterContent=({variant:e,textColor:t,size:l,width:a,footerWidth:o,customStyles:r,...i})=>{const n=(new Date).getFullYear();return b.default.createElement(Aa,S({variant:e,textColor:t,footerWidth:o,customStyles:r},i),b.default.createElement(Ca,{footerWidth:o},b.default.createElement(wa,{footerWidth:o},"Premise HQ"),b.default.createElement(Sa,{footerWidth:o},"|"),b.default.createElement(wa,{footerWidth:o},"All Rights Restricted ",n," ©")),b.default.createElement(Ca,{footerWidth:o},b.default.createElement(wa,{footerWidth:o},"Terms of use"),b.default.createElement(Sa,{footerWidth:o},"|"),b.default.createElement(wa,{footerWidth:o},"Privacy Policy")))},exports.FormComponent=({formData:e,customStyles:l,...a})=>{const o=e=>{switch(e.type){case"header":return(e=>b.default.createElement(t.Fragment,null,b.default.createElement(ka,S({},e,a),e.children),e))(e);case"label":return(e=>b.default.createElement(Ke,S({style:{marginBottom:"8px",paddingBottom:"0"}},e,a)))(e);case"text":return(e=>b.default.createElement(sl,S({},e,a)))(e);case"textArea":return(e=>b.default.createElement(Cl,S({},e,a)))(e);case"number":return(e=>b.default.createElement(Ut,S({},e,a)))(e);case"radio":return(e=>b.default.createElement(ol,S({key:101*Math.random()|0},e,a)))(e);case"checkBox":return(e=>b.default.createElement(at,S({},e,a)))(e);case"singleSelect":return(e=>b.default.createElement(kt,S({dropdownType:"singleSelect"},e,a)))(e);case"multiSelect":return(e=>b.default.createElement(kt,S({dropdownType:"multiSelect"},e,a)))(e);case"asyncSingleSelect":return(e=>b.default.createElement(kt,S({dropdownType:"asyncSingleSelect"},e,a)))(e);case"asyncMultiSelect":return(e=>b.default.createElement(kt,S({dropdownType:"asyncMultiSelect"},e,a)))(e);case"signature":return(e=>b.default.createElement(hl,S({},e,a)))(e);case"fileUpload":return(e=>b.default.createElement(Pt,S({},e,a)))(e);case"date":return(e=>b.default.createElement(bt,S({},e,a)))(e);case"toggle":return(e=>b.default.createElement(Tl,S({},e,a)))(e);case"rating":return(e=>b.default.createElement(Ra,S({},e,a)))(e);case"buttonPrimary":return(e=>b.default.createElement(Ie,S({},e,a)))(e);case"buttonSecondary":return(e=>b.default.createElement(Le,S({},e,a)))(e);case"buttonTiny":return(e=>b.default.createElement(Pe,S({},e,a)))(e);case"search":return(e=>b.default.createElement(dl,S({},e,a)))(e);case"table":return(e=>b.default.createElement(Ta,S({},e,a)))(e);case"passwordInput":return(e=>b.default.createElement($t,S({},e,a)))(e);case"headerComponent":return(e=>b.default.createElement(Pa,S({},e,a)))(e)}};return b.default.createElement(t.Fragment,null,b.default.createElement(ra,{defaultThemeColor:M},b.default.createElement(da,{onSubmit:()=>{},customStyles:l},e.map(((e,t)=>e.length>1?b.default.createElement(na,null,e.map(((t,l)=>b.default.createElement(ca,{cols:e.length},o(t))))):o(e[0]))))))},exports.FormContainer=ra,exports.FormWrapper=da,exports.GroupAvatars=Fa,exports.GroupButtons=Ya,exports.GroupButtonsPopup=$a,exports.GroupStatusCircle=oo,exports.Header=ka,exports.HeaderComponent=Pa,exports.HyperLink=no,exports.Icon=J,exports.Image=le,exports.ImageUploader=Ot,exports.Label=Ke,exports.LightSecondaryLink=jo,exports.LinkButton=ze,exports.Loader=Ce,exports.ModalComp=mo,exports.MultiColumnDiv=ca,exports.MultiColumnWrapper=na,exports.Navbar=({headerContent:e,bodyContent:a,footerContent:o,toggleSideBarOpen:r,headerStyles:i,selectedStyle:n,notSelectedStyle:c,customStylesNameHover:s,listElementStyle:d,customSelectCardColor:u,user:p,firstBottomContent:f,secondBottomContent:m,selectedAppPath:g,setSelectedAppPath:h,selectedAppPageId:y,setSelectedAppPageId:x,setParentId:v,setRouterObject:A,...C})=>{const w=l.useTheme()||M,[S,E]=t.useState(null),[k,z]=t.useState(!1),[V,B]=t.useState([]);return t.useEffect((()=>{B(g.split("/"));let e=g.split("/"),t=a&&a.find((t=>e[1]===t.path.split("/")[1])),l=t?.routes&&t?.routes.find((e=>e?.path===g));x(l?.pageId||null),A(l||null),v(t?.pageId||null)}),[g]),b.default.createElement(qo,{onMouseEnter:()=>z(!0),onMouseLeave:()=>{E(null),z(!1)},toggleSideBarOpen:r},b.default.createElement(Fo,{theme:w,headerStyles:i},e),b.default.createElement(Oo,{toggleSideBarOpen:r},a&&a.filter((e=>!0===e.visibleAsMenu))?.map(((e,t,l)=>{let a=l.length;return b.default.createElement(Q,{key:e.pageId,index:t,handleClick:e=>{!function(e){E(e)}(e)},isAccordionOpen:t===S||k&&e?.value?.toLowerCase()===V[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===V[1]?.toLowerCase(),customSelectCardColor:u,customStylesAccordionContainer:{"box-shadow":"none","border-radius":"0px","background-color":"transparent",position:a-1===t?"absolute":"initial",bottom:a-1===t&&"0px",padding:a-1===t?"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:b.default.createElement(ue,{selectedStyle:n,notSelectedStyle:c,toggleName:r,customStylesName:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"16px",color:"white","font-weight":"600"},customStylesNameHover:s,size:"MD",user:{userName:e.label,url:e.logo,fullName:e.label},isSelected:e?.value?.toLowerCase()===V[1]?.toLowerCase(),notificationCount:e?.notificationCount}),content:b.default.createElement("div",{style:{margin:"0",padding:"0",marginBottom:"18.25px"}},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((t,l)=>b.default.createElement(Zo,{listElementStyle:d,key:e.pageId+l,onClick:()=>{h(t.path)}},b.default.createElement("span",{className:"selected-disk",style:{visibility:V[2]?.toLowerCase()===t?.path.split("/")[2]?.toLowerCase()?"visible":"hidden"}}),b.default.createElement("span",{className:"link"}," ",t?.link)))))})}))))},exports.NumericInput=Ut,exports.Overlay=go,exports.OverlayOptionContainer=la,exports.OverlayOptionItemLabel=aa,exports.PageContent=Ul,exports.Pagination=wo,exports.PaginationDefault=Eo,exports.PasswordInput=$t,exports.PrimaryButton=Ie,exports.PrimaryStatusChip=Yo,exports.ProgressBar=Bo,exports.ProgressSteps=Lo,exports.RadioInput=ol,exports.Rating=Ra,exports.RoundedLoader=Se,exports.SearchInput=dl,exports.SecondaryButton=Le,exports.SecondaryStatusChip=Ko,exports.Sidebar=Xo,exports.SignatureInput=hl,exports.SlimPrimaryStatusChip=er,exports.SlimSecondaryStatusChip=ar,exports.StatusCircle=eo,exports.StyledCentralBar=Nl,exports.StyledClearSearch=Ql,exports.StyledCreateRow=$l,exports.StyledRow=_l,exports.StyledRowSearch=Yl,exports.StyledSearchRow=ea,exports.StyledWarning=Kl,exports.SubmitButtonContainer=ia,exports.SubmitComponent=({formData:e,onSubmit:l,onReset:a,style:o,...r})=>{const i=e=>{switch(e.type){case"submit":return(e=>b.default.createElement(Ie,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>b.default.createElement(Le,{block:e.block,disabled:r.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return b.default.createElement(t.Fragment,null,b.default.createElement(ia,{style:o},e&&e.map(((e,t)=>e.map(((e,t)=>i(e)))))))},exports.TabPanel=or,exports.Table=Ta,exports.Tabs=sr,exports.TextArea=Cl,exports.TextInput=sl,exports.TimeInput=Ml,exports.TinyButton=Pe,exports.ToastProvider=e=>{const[l,a]=t.useState([]),o=(e,t)=>{a((l=>[...l,{id:mr(),content:t,type:e}]))},r=t.useMemo((()=>({open:o})),[]),[i,n]=t.useState(!1);return t.useEffect((()=>(n(!0),()=>n(!1))),[]),b.default.createElement(pr.Provider,{value:r},e.children,i?p.createPortal(b.default.createElement(fr,null,b.default.createElement("div",{className:`notification-container ${e.position}`},l.map((t=>b.default.createElement(ur,{key:t.id,type:t.type,position:e.position,timeout:e.timeout,close:()=>{return e=t.id,a((t=>t.filter((t=>t.id!==e))));var e}},t.content))))),document.body):null)},exports.ToggleSwitch=Tl,exports.Tooltip=De,exports.Typography=hr,exports.defaultStyles=I,exports.defaultThemeColor=M,exports.getDefaultStyles=W,exports.graphColor=B,exports.hexToRGB=R,exports.neutralColor=z,exports.primaryColor=E,exports.shadeColor=V,exports.uiColor=k,exports.useToast=()=>t.useContext(pr);
|