groundfloor-react-ui 1.3.20 → 1.3.22
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 +1 -1
- package/dist/index.js +86 -86
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -783,7 +783,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
783
783
|
`,ct=m.span`
|
|
784
784
|
color: ${({theme:e})=>e.variant.error};
|
|
785
785
|
${({errorTextStyle:e})=>e};
|
|
786
|
-
`,st=({listChips:e,setListChips:l,currentChip:o,setCurrentChip:a,chipListString:n,placeholder:c,errorMsg:s,handleBlurProps:d,label:p,labelCusTomStyles:m,containerStyle:u,inputContainerStyle:g,errorTextStyle:f,disabled:h,isValid:y,...
|
|
786
|
+
`,st=({listChips:e,setListChips:l,currentChip:o,setCurrentChip:a,chipListString:n,placeholder:c,errorMsg:s,handleBlurProps:d,label:p,labelCusTomStyles:m,containerStyle:u,inputContainerStyle:g,errorTextStyle:f,disabled:h,isValid:y,handleInputKeyDownProps:x,handleInputChangeProps:C,...v})=>{let A=n?n.split(","):e||[];const[w,S]=i(A),[k,E]=i(o),[V,M]=i(""),z=b()||R;r((()=>{S(A)}),[]);return t.createElement(ot,{theme:z,containerStyle:u},t.createElement(it,{inputContainerStyle:g},t.createElement(lt,{text:p,customStyles:m}),w.map(((e,l)=>t.createElement(rt,{theme:z,key:e+`${l}`,onClick:()=>(e=>{const t=[...w];t.splice(e,1),S(t),M(""),d(t.join(","))})(l)},t.createElement(at,null,e)))),t.createElement(nt,{type:"text",placeholder:c,value:k,onKeyDown:e=>{"Enter"===e.key||","===e.key?(e.preventDefault(),y?k.trim()&&(x([...w,k.trim()].join(",")),S([...w,k.trim()]),E(""),M("")):M(s)):"Backspace"!==e.key||k||(x(w.slice(0,-1).join(",")),S(w.slice(0,-1)))},onChange:e=>{E(e.target.value),M(""),C(e.target.value)},theme:z,onBlur:()=>{if(y){let e;e=k.trim()?[...w,k.trim()]:[...w],d(e.join(",")),S(e),E("")}else y||M(s)},disabled:h})),V&&t.createElement(ct,{errorTextStyle:f,theme:z},V))};st.propTypes={listChips:e.arrayOf(e.string),setListChips:e.func,chipListString:e.string,currentChip:e.string,setCurrentChip:e.func,placeholder:e.string,isValid:e.bool,errorMsg:e.string,label:e.string,labelCusTomStyles:e.object,containerStyle:e.object,inputContainerStyle:e.object,errorTextStyle:e.object,disabled:e.bool,handleInputKeyDownProps:e.func,handleInputChangeProps:e.func},st.defaultProps={listChips:[],setListChips:()=>{},currentChip:"",setCurrentChip:()=>{},placeholder:"",errorMsg:"Please enter a valid email address",label:"From:",labelCusTomStyles:{},containerStyle:{},inputContainerStyle:{},errorTextStyle:{},disabled:!1,isValid:!0};const dt=m.div`
|
|
787
787
|
box-sizing: initial;
|
|
788
788
|
|
|
789
789
|
//Set the styles from the default styles object
|
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-phone-input-2"),i=require("dayjs");require("dayjs/locale/es");var n=require("react-datepicker"),c=require("react-select"),d=require("react-select/async"),s=require("react-signature-pad-wrapper"),u=require("react-data-table-component"),p=require("react-modal"),f=require("react-dom");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(e),g=m(t),h=m(l),y=m(r),x=m(i),C=m(n),v=m(c),A=m(d),w=m(s),S=m(u),k=m(p);function E(){return E=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},E.apply(this,arguments)}const V={"primary-1":"#2A50FD","primary-2":"#081348"},M={error:"#DD0000",success:"#00B904 "},z={"neutral-1":"#39424D","neutral-2":"#6B747F","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},B={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},L={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},I={white:"#FFFFFF",black:"#000000","text-color":V["primary-2"],border:z["neutral-3"]},H={primary:{...V},ui:{...M},neutral:{...z},shade:{...B},graph:{...L},additional:{...I},variant:{...V,...M,...z,...B,...L,...I}},R={common:{},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${H.variant["neutral-2"]}`,"margin-bottom":"0","padding-bottom":"0"},"progressBar-label":{display:"block","margin-bottom":"8px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${H.neutral["neutral-2"]}`},spinner:{"background-color":`${H.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:`${H.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-style":"normal","font-weight":"normal","font-size":"14px",color:`${H.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:`${H.variant["neutral-5"]}`,borderLeft:`1px solid ${H.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${H.variant["neutral-5"]}`,borderTop:`1px solid ${H.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:`${H.variant.white}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${H.variant["neutral-5"]}`,borderRight:`1px solid ${H.variant["neutral-5"]}`,borderBottom:`1px solid ${H.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${H.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":`${H.additional.white}`,"border-bottom":`0.5px solid ${H.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:`${H.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 ${H.additional.border}`,width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${H.additional.white}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",width:"20px",height:"20px",color:`${H.additional.white}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${H.variant["neutral-2"]}`},"toggle-switch-wrapper":{display:"inline-flex","align-items":"center",width:"fit-content"},"dropzone-parent":{height:"86px","padding-left":"8px","padding-right":"8px",display:"flex","justify-content":"center","align-items":"center","font-size":"16px","border-radius":"5.5px",color:` ${H.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${H.textColor}`,"background-color":`${H.additional.white}`,"box-shadow":"0px 5px 15px rgba(33, 55, 71, 0.096946)","border-radius":"5.5px","margin-top":"5px"},"dropzone-text-div":{display:"flex","justify-content":"center","margin-left":"14px",color:`${H.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:`${H.textColor}`,"background-color":`${H.additional.white}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${H.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${H.additional.white}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${H.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":`${H.additional.white}`,"border-radius":"3.6px",border:`1px solid ${H.additional.white}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"tooltip-arrow":{height:"19px",position:"absolute",width:"29px","pointer-events":"none"},"tooltip-arrow-before":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",width:"0"},"tooltip-arrow-after":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",position:"absolute",width:"0"},"tp-cont-bottom-arrow-before":{"border-color":`transparent transparent ${H.additional.white} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${H.additional.white} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${H.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${H.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${H.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${H.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${H.additional.white} `,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${H.additional.white} `,"border-width":"15px 0 15px 19px",left:"3px",top:"0"},"tp-cont-bottom-arrow":{left:"0","margin-top":"-19px",top:"0"},"tp-cont-top-arrow":{bottom:"0",left:"0","margin-bottom":"-19px"},"tp-cont-right-arrow":{left:"0","margin-left":"-24px"},"tp-cont-left-arrow":{"margin-right":"-24px",right:"0"},overlay:{"background-color":`${H.additional.white} `,"border-radius":"3.6px",border:`1px solid ${H.additional.white} `,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"simple-overlay":{"background-color":`${H.variant["neutral-1"]} `,"border-radius":"6px",border:`1px solid ${H.variant["neutral-1"]} `,color:`${H.additional.white} `,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",display:"flex","flex-direction":"column","z-index":"999999"},"sidebar-container-open":{width:"256px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"256px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px !important",width:"24px !important",height:"24px !important",cursor:"pointer"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},P=(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 W(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+")"}W("#FF0000",.5);const T=(e,t)=>{if(e.includes("#")){e=e.replace("#","");const[t,l,a]=[e[0]+e[1],e[2]+e[3],e[4]+e[5]];e=`${parseInt(t,16)}, ${parseInt(l,16)}, ${parseInt(a,16)}`}return`#${e.split(",").map((e=>parseInt(e.trim()))).map((e=>Math.round(e*(1-t)))).reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")}`},F=h.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-phone-input-2"),i=require("dayjs");require("dayjs/locale/es");var n=require("react-datepicker"),c=require("react-select"),d=require("react-select/async"),s=require("react-signature-pad-wrapper"),u=require("react-data-table-component"),p=require("react-modal"),f=require("react-dom");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(e),g=m(t),h=m(l),y=m(r),x=m(i),C=m(n),v=m(c),A=m(d),w=m(s),S=m(u),k=m(p);function E(){return E=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},E.apply(this,arguments)}const V={"primary-1":"#2A50FD","primary-2":"#081348"},M={error:"#DD0000",success:"#00B904 "},z={"neutral-1":"#39424D","neutral-2":"#6B747F","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},B={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},L={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},I={white:"#FFFFFF",black:"#000000","text-color":V["primary-2"],border:z["neutral-3"]},H={primary:{...V},ui:{...M},neutral:{...z},shade:{...B},graph:{...L},additional:{...I},variant:{...V,...M,...z,...B,...L,...I}},P={common:{},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${H.variant["neutral-2"]}`,"margin-bottom":"0","padding-bottom":"0"},"progressBar-label":{display:"block","margin-bottom":"8px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${H.neutral["neutral-2"]}`},spinner:{"background-color":`${H.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:`${H.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-style":"normal","font-weight":"normal","font-size":"14px",color:`${H.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:`${H.variant["neutral-5"]}`,borderLeft:`1px solid ${H.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${H.variant["neutral-5"]}`,borderTop:`1px solid ${H.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:`${H.variant.white}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${H.variant["neutral-5"]}`,borderRight:`1px solid ${H.variant["neutral-5"]}`,borderBottom:`1px solid ${H.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${H.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":`${H.additional.white}`,"border-bottom":`0.5px solid ${H.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:`${H.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 ${H.additional.border}`,width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${H.additional.white}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",width:"20px",height:"20px",color:`${H.additional.white}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${H.variant["neutral-2"]}`},"toggle-switch-wrapper":{display:"inline-flex","align-items":"center",width:"fit-content"},"dropzone-parent":{height:"86px","padding-left":"8px","padding-right":"8px",display:"flex","justify-content":"center","align-items":"center","font-size":"16px","border-radius":"5.5px",color:` ${H.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${H.textColor}`,"background-color":`${H.additional.white}`,"box-shadow":"0px 5px 15px rgba(33, 55, 71, 0.096946)","border-radius":"5.5px","margin-top":"5px"},"dropzone-text-div":{display:"flex","justify-content":"center","margin-left":"14px",color:`${H.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:`${H.textColor}`,"background-color":`${H.additional.white}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${H.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${H.additional.white}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${H.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":`${H.additional.white}`,"border-radius":"3.6px",border:`1px solid ${H.additional.white}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"tooltip-arrow":{height:"19px",position:"absolute",width:"29px","pointer-events":"none"},"tooltip-arrow-before":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",width:"0"},"tooltip-arrow-after":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",position:"absolute",width:"0"},"tp-cont-bottom-arrow-before":{"border-color":`transparent transparent ${H.additional.white} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${H.additional.white} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${H.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${H.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${H.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${H.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${H.additional.white} `,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${H.additional.white} `,"border-width":"15px 0 15px 19px",left:"3px",top:"0"},"tp-cont-bottom-arrow":{left:"0","margin-top":"-19px",top:"0"},"tp-cont-top-arrow":{bottom:"0",left:"0","margin-bottom":"-19px"},"tp-cont-right-arrow":{left:"0","margin-left":"-24px"},"tp-cont-left-arrow":{"margin-right":"-24px",right:"0"},overlay:{"background-color":`${H.additional.white} `,"border-radius":"3.6px",border:`1px solid ${H.additional.white} `,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"simple-overlay":{"background-color":`${H.variant["neutral-1"]} `,"border-radius":"6px",border:`1px solid ${H.variant["neutral-1"]} `,color:`${H.additional.white} `,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",display:"flex","flex-direction":"column","z-index":"999999"},"sidebar-container-open":{width:"256px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"256px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px !important",width:"24px !important",height:"24px !important",cursor:"pointer"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},R=(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 W(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+")"}W("#FF0000",.5);const T=(e,t)=>{if(e.includes("#")){e=e.replace("#","");const[t,l,a]=[e[0]+e[1],e[2]+e[3],e[4]+e[5]];e=`${parseInt(t,16)}, ${parseInt(l,16)}, ${parseInt(a,16)}`}return`#${e.split(",").map((e=>parseInt(e.trim()))).map((e=>Math.round(e*(1-t)))).reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")}`},F=h.default.div`
|
|
2
2
|
color: ${({activeTheme:e})=>e.additional["text-color"]};
|
|
3
3
|
padding-top: 24px;
|
|
4
4
|
padding-bottom: 24px;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
// custom styles
|
|
34
34
|
${({customStyles:e})=>e}
|
|
35
|
-
`,Z=t.forwardRef((({type:e,header:t,content:a,...o},r)=>{const i=l.useTheme()||H;return g.default.createElement(q,E({inBuiltCss:
|
|
35
|
+
`,Z=t.forwardRef((({type:e,header:t,content:a,...o},r)=>{const i=l.useTheme()||H;return g.default.createElement(q,E({inBuiltCss:P,activeTheme:i},o,{ref:r}),t,a)}));Z.propTypes={type:b.default.string,header:b.default.any,content:b.default.any};const D={sm:{cardWidth:"178px",cardMinHeight:"88px",borderRadius:"4px",border:"0.7px",bodyHeight:"55px",footerFontSize:"10px",footerMinHeight:"31px",footerPadding:"10.5px 16px",footerLineHeight:"16px",lineHeight:"12px"},md:{cardWidth:"215px",cardMinHeight:"123px",borderRadius:"6px",border:"1px",bodyHeight:"67px",footerFontSize:"14px",footerMinHeight:"54px",footerPadding:"18px 19px",footerLineHeight:"12px",lineHeight:"16px"}},O=h.default.div`
|
|
36
36
|
${({trimFileName:e})=>e?l.css`
|
|
37
37
|
height: ${({size:e})=>D[e].cardMinHeight};
|
|
38
38
|
`:l.css`
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
`}
|
|
351
|
-
`,ne=({size:e,thickness:t,propellerHeight:l,customStyles:a})=>g.default.createElement(ie,{inBuiltCss:
|
|
351
|
+
`,ne=({size:e,thickness:t,propellerHeight:l,customStyles:a})=>g.default.createElement(ie,{inBuiltCss:P,size:e,thickness:t,propellerHeight:l,customStyles:a,type:"spinner"},g.default.createElement("div",null),g.default.createElement("div",null),g.default.createElement("div",null),g.default.createElement("div",null),g.default.createElement("div",null),g.default.createElement("div",null),g.default.createElement("div",null),g.default.createElement("div",null),g.default.createElement("div",null));ne.propTypes={size:b.default.number,thickness:b.default.number,propellerHeight:b.default.number,customStyles:b.default.object},ne.defaultProps={size:20,thickness:2,propellerHeight:25,customStyles:null};const ce=l.keyframes`
|
|
352
352
|
0% { transform: rotate(0deg); }
|
|
353
353
|
100% { transform: rotate(360deg); }
|
|
354
354
|
`,de=h.default.div`
|
|
@@ -389,7 +389,7 @@ ${({customStyles:e})=>e}
|
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
//Set the styles from the default styles object
|
|
392
|
-
${({theme:e,defaultStyle:t})=>
|
|
392
|
+
${({theme:e,defaultStyle:t})=>R(e,t)}
|
|
393
393
|
|
|
394
394
|
// custom styles
|
|
395
395
|
${({btnStyle:e})=>e}
|
|
@@ -441,7 +441,7 @@ ${({customStyles:e})=>e}
|
|
|
441
441
|
transition: all 0.3s;
|
|
442
442
|
|
|
443
443
|
//Set the styles from the default styles object
|
|
444
|
-
${({theme:e,defaultStyle:t})=>
|
|
444
|
+
${({theme:e,defaultStyle:t})=>R(e,t)}
|
|
445
445
|
&:disabled {
|
|
446
446
|
color: #929eac;
|
|
447
447
|
border: 1px solid ${({theme:e})=>e.neutral["neutral-3"]};
|
|
@@ -483,7 +483,7 @@ ${({customStyles:e})=>e}
|
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
//Set the styles from the default styles object
|
|
486
|
-
${({theme:e,defaultStyle:t})=>
|
|
486
|
+
${({theme:e,defaultStyle:t})=>R(e,t)}
|
|
487
487
|
|
|
488
488
|
&:hover {
|
|
489
489
|
background-color: ${({theme:e,disabled:t,btnStyle:l})=>!t&&T(l.backgroundColor?l.backgroundColor:e.primary["primary-1"],.15)};
|
|
@@ -513,7 +513,7 @@ ${({customStyles:e})=>e}
|
|
|
513
513
|
`,we=({data:e,onClick:a,clickable:o,breakingPoint:r,breakingNumber:i,customShapeStyle:n,customShapeLabelStyle:c,customShapeValueStyle:d})=>{const s=l.useTheme()||H,[u,p]=t.useState(0),[f,m]=t.useState({next:!0,prev:!1}),[b,h]=t.useState(100),y=e.length,x=()=>{m(u-1==0?{next:!0,prev:!1}:{next:!0,prev:!0}),p((e=>e-1))},C=()=>{p((e=>e+1));let e=Math.ceil(100/b);m(y-e===u?{next:!1,prev:!0}:{next:!0,prev:!0})},{width:v}=ae();t.useEffect((()=>{A()}),[v]);const A=()=>{let e=0;switch(!0){case 1===y:e=100;break;case v<=576:e=85;break;case v<=r:e=50;break;case y<=i:e=100/y;break;case y>i&&v>r&&v<=900:e=Math.ceil(v/22);break;case y>i&&v>900&&v<=1020:e=Math.ceil(v/24);break;case y>i&&v>1020&&v<=1200:e=Math.ceil(v/27);break;case y>i&&v>1200&&v<=1440:e=Math.ceil(v/40);break;case y>i&&v>1440:let t=Math.ceil(v/85);e=t<=20?t:20;break;default:e=100}h(e)};return g.default.createElement(t.Fragment,null," ",y>0&&g.default.createElement(t.Fragment,null," ",g.default.createElement("div",{style:{display:y<=i||v<=r?"block":"flex",width:"100%",alignItems:"center",gap:"4px"}}," ",y>i&&v>r&&g.default.createElement(ge,{btnStyle:{backgroundColor:"transparent",padding:0,border:"none"},disabled:!f.prev,onClick:x},g.default.createElement(Q,{icon:"chevron-left",color:s.variant[f.prev?"primary-2":"neutral-3"],size:22,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})),g.default.createElement("div",{style:{display:"flex",alignItems:"center",overflow:"hidden",width:"100%",justifyContent:"space-between"}},e.map(((t,l)=>g.default.createElement("div",{key:l,style:{scrollSnapAlign:"center",minWidth:`${b}%`,transform:`translateX(-${100*u}%)`,transition:"transform 0.5s ease-in-out"}},g.default.createElement("div",{style:{width:"100%",height:"100%"}},g.default.createElement(Ae,{customShapeStyle:n,identity:0===l?"first-arrow":e.length-1-l==0?"last-arrow":"others",backgroundColor:t?.backgroundColor,theme:s,clickable:o,onClick:()=>o?a(t):null},g.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"16px",minWidth:"100%",height:"100%"},title:`value: ${t.value}, status: ${t.label}`},g.default.createElement("span",{style:{fontSize:"22px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?.color?t.color:s.variant.white,...d}},t.value),g.default.createElement("span",{style:{fontSize:"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?.color?t.color:s.variant.white,...c}},t.label))))," ")))," ")," ",y>i&&v>r&&g.default.createElement(ge,{btnStyle:{backgroundColor:"transparent",padding:0,border:"none"},disabled:!f.next,onClick:C},g.default.createElement(Q,{icon:"chevron-right",color:s.variant[f.next?"primary-2":"neutral-3"],size:22,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}}))),v<=r&&e.length>1&&g.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",margin:"8px 0",gap:"16px"}}," ",g.default.createElement(ge,{btnStyle:{backgroundColor:"transparent",padding:"6px",border:".5px solid "+s.variant["neutral-4"],boxShadow:"-20px 5px 37px rgba(56, 66, 100, 0.0880136)"},disabled:!f.prev,onClick:x},g.default.createElement(Q,{icon:"chevron-left",color:s.variant[f.prev?"primary-2":"neutral-3"],size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})),g.default.createElement(ge,{btnStyle:{backgroundColor:"transparent",padding:"6px",border:".5px solid "+s.variant["neutral-4"],boxShadow:"-20px 5px 37px rgba(56, 66, 100, 0.0880136)"},disabled:!f.next,onClick:C},g.default.createElement(Q,{icon:"chevron-right",color:s.variant[f.next?"primary-2":"neutral-3"],size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})))))};we.propTypes={data:b.default.array,onClick:b.default.func,clickable:b.default.bool,breakingPoint:b.default.number,breakingNumber:b.default.number,customShapeStyle:b.default.object,customShapeLabelStyle:b.default.object,customShapeValueStyle:b.default.object},we.defaultProps={data:[],onClick:()=>null,clickable:!1,breakingPoint:768,breakingNumber:5,customShapeStyle:{},customShapeLabelStyle:{},customShapeValueStyle:{}};const Se=h.default.img`
|
|
514
514
|
//Set the styles from the default styles object
|
|
515
515
|
${({inBuiltCss:e,type:t,size: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])o[l]=e[t][l],delete e.common[l];for(const a in e[`${t}${l}`])o[a]=e[`${t}${l}`][a],delete e.common[a]}return{...o,...a}}}}
|
|
516
|
-
`,ke=({customStyles:e,type:l,size:a,alt:o,src:r,handleImageStatus:i,...n})=>{const[c,d]=t.useState("loading"),s=t.useRef(null),u=()=>{d("loaded"),i&&i("loaded")},p=()=>{d("failed"),i&&i("failed")};return t.useEffect((()=>{const e=s.current;if(e)return e.addEventListener("load",u),e.addEventListener("error",p),()=>{e.removeEventListener("load",u),e.removeEventListener("error",p)}}),[c]),g.default.createElement(Se,E({},n,{inBuiltCss:
|
|
516
|
+
`,ke=({customStyles:e,type:l,size:a,alt:o,src:r,handleImageStatus:i,...n})=>{const[c,d]=t.useState("loading"),s=t.useRef(null),u=()=>{d("loaded"),i&&i("loaded")},p=()=>{d("failed"),i&&i("failed")};return t.useEffect((()=>{const e=s.current;if(e)return e.addEventListener("load",u),e.addEventListener("error",p),()=>{e.removeEventListener("load",u),e.removeEventListener("error",p)}}),[c]),g.default.createElement(Se,E({},n,{inBuiltCss:P,customStyles:e,type:l,alt:o,src:r,ref:s,size:a}))};ke.propTypes={customStyles:b.default.object,type:b.default.string,size:b.default.oneOf(["SM","MD","LG"]),alt:b.default.string,src:b.default.string,handleImageStatus:b.default.func},ke.defaultProps={customStyles:{},type:"image",alt:"image alternative",src:null,handleImageStatus:null};const Ee=h.default.span`
|
|
517
517
|
${({inBuiltCss: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}}}}
|
|
518
518
|
`,Ve=h.default.div`
|
|
519
519
|
|
|
@@ -525,7 +525,7 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t i
|
|
|
525
525
|
color:${({theme:e})=>e.additional["text-color"]};
|
|
526
526
|
|
|
527
527
|
${({inBuiltCss:e,type:t,size:l,customStyles: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];for(const a in e[`${t}${l}`])o[a]=e[`${t}${l}`][a],delete e.common[a]}return{...o,...a}}}}
|
|
528
|
-
`,ze=({customStylesContainer:e,customStylesImage:t,customStylesCircle:a,customStylesName:o,size:r,toggleName:i,user:n,...c})=>{const d=l.useTheme()||H;return g.default.createElement(Ee,E({inBuiltCss:
|
|
528
|
+
`,ze=({customStylesContainer:e,customStylesImage:t,customStylesCircle:a,customStylesName:o,size:r,toggleName:i,user:n,...c})=>{const d=l.useTheme()||H;return g.default.createElement(Ee,E({inBuiltCss:P,theme:d,customStyles:e,type:"avatarContainer"},c),n?.url&&g.default.createElement(ke,E({},c,{customStyles:t,type:"imageAvatar",size:r,alt:"user-picture",src:n.url})),g.default.createElement(Ve,E({},c,{theme:d,inBuiltCss:P,type:"avatarCircle",customStyles:a,size:r,style:{visibility:n?.url?"hidden":"visible"}}),n?.userName&&n?.userName.split(" ").length>=2?n?.userName.split(" ")[0].charAt(0).toUpperCase()+n?.userName.split(" ")[1].charAt(0).toUpperCase():n?.userName&&1===n?.userName.split(" ").length&&n?.userName.split(" ")[0].charAt(0).toUpperCase()),i&&g.default.createElement(Me,E({inBuiltCss:P},c,{theme:d,type:"avatarName",customStyles:o,size:r}),n.userName," "))};ze.propTypes={customStylesCircle:b.default.object,customStylesName:b.default.object,customStylesContainer:b.default.object,customStylesImage:b.default.object,toggleName:b.default.bool,size:b.default.oneOf(["SM","MD","LG"]),user:b.default.object},ze.defaultProps={block:!1,size:"MD",toggleName:!1,user:null,customStylesContainer:null,customStylesImage:null,customStylesCircle:null,customStylesName:null};const Be=h.default.span`
|
|
529
529
|
${({inBuiltCss: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}}}}
|
|
530
530
|
width: auto;
|
|
531
531
|
`,Le=h.default.div`
|
|
@@ -563,7 +563,7 @@ ${({inBuiltCss:e,type:t,size:l,customStyles:a})=>{if(e){let o={};if(e[t]){for(co
|
|
|
563
563
|
|
|
564
564
|
// custom styles
|
|
565
565
|
${({notificationCircleStyles:e})=>e}
|
|
566
|
-
`,
|
|
566
|
+
`,Pe=({customStylesContainer:e,customStylesImage:a,customStylesCircle:o,customStylesName:r,customStylesNameHover:i,size:n,toggleName:c,user:d,border:s,isSelected:u,selectedStyle:p,notSelectedStyle:f,notificationCount:m,notificationCircleStyles:b,icon:h,underMaintenance:y})=>{const x=l.useTheme()||H,[C,v]=t.useState("loading");return g.default.createElement(Be,{border:s,inBuiltCss:P,customStyles:e,type:"avatarContainer"},g.default.createElement(Le,{theme:x,selectedStyle:p,notSelectedStyle:f,inBuiltCss:P,type:"avatarCircle",customStyles:o,size:n,style:{visibility:"loaded"!==C?"visible":"hidden"},isSelected:u},h||(d.appNameShortForm?d.appNameShortForm:d?.url?g.default.createElement(ke,{inBuiltCss:P,customStyles:{minWidth:"36px",minHeight:"36px",...a},type:"imageAvatar",size:n,alt:"service-layer",src:d.url,handleImageStatus:e=>{v(e)},style:{visibility:"loaded"!==C?"hidden":"visible"}}):d?.userName&&d?.userName.split(" ").length>=2?d?.userName.split(" ")[0].charAt(0).toUpperCase()+d?.userName.split(" ")[1].charAt(0).toUpperCase():d?.userName&&1===d?.userName.split(" ").length&&d?.userName.split(" ")[0].charAt(0).toUpperCase())),m>0&&g.default.createElement(He,{notificationCircleStyles:b},m>9?"9+":m)," ",c&&g.default.createElement(Ie,{theme:x,inBuiltCss:P,type:"avatarName",customStyles:r,customStylesHover:i,size:n,underMaintenance:y},d.userName," "))};Pe.propTypes={customStylesCircle:b.default.object,customStylesName:b.default.object,customStylesContainer:b.default.object,customStylesImage:b.default.object,toggleName:b.default.bool,size:b.default.oneOf(["SM","MD","LG"]),user:b.default.object,customStylesNameHover:b.default.object,notificationCircleStyles:b.default.object,notificationCount:b.default.number,underMaintenance:b.default.bool},Pe.defaultProps={block:!1,size:"MD",toggleName:!1,user:null,customStylesContainer:null,customStylesImage:null,customStylesCircle:null,customStylesName:null,notificationCircleStyles:{},notificationCount:0,underMaintenance:!1};const Re=h.default.div`
|
|
567
567
|
color: ${({theme:e})=>e.additional["text-color"]};
|
|
568
568
|
display: flex;
|
|
569
569
|
background-color: ${({backgroundColor:e,theme:t})=>e||t.variant["insight-purple"]};
|
|
@@ -579,7 +579,7 @@ ${({inBuiltCss:e,type:t,size:l,customStyles:a})=>{if(e){let o={};if(e[t]){for(co
|
|
|
579
579
|
font-size: 16px;
|
|
580
580
|
text-align: left;
|
|
581
581
|
word-wrap: break-word;
|
|
582
|
-
`,Te=({backgroundColor:e,borderColor:t,variant:a,children:o,...r})=>{const i=l.useTheme()||H;return g.default.createElement(g.default.Fragment,null,g.default.createElement(
|
|
582
|
+
`,Te=({backgroundColor:e,borderColor:t,variant:a,children:o,...r})=>{const i=l.useTheme()||H;return g.default.createElement(g.default.Fragment,null,g.default.createElement(Re,E({theme:i,backgroundColor:e,borderColor:t},r),g.default.createElement(We,E({theme:i},r),o)))};Te.propTypes={backgroundColor:b.default.string,borderColor:b.default.string,children:b.default.any},Te.defaultProps={children:""};const Fe=h.default.div`
|
|
583
583
|
background-color: ${({theme:e})=>e.additional.white};
|
|
584
584
|
border: 1px solid ${({theme:e})=>e.additional.white};
|
|
585
585
|
color: ${({theme:e})=>e.additional.black},
|
|
@@ -638,23 +638,23 @@ ${({inBuiltCss:e,type:t,customStylesTPArrow:l})=>{if(e){let t={};if(e["tooltip-a
|
|
|
638
638
|
`,qe=h.default.div`
|
|
639
639
|
|
|
640
640
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
641
|
-
${({inBuiltCss:e,defaultTooltipContentStyle:t})=>
|
|
641
|
+
${({inBuiltCss:e,defaultTooltipContentStyle:t})=>R(e,t)}
|
|
642
642
|
// custom styles
|
|
643
643
|
${({customContentStyle:e})=>e}
|
|
644
644
|
`,Ze=h.default.div`
|
|
645
|
-
${({inBuiltCss:e,defaultTooltipHeaderStyle:t})=>
|
|
645
|
+
${({inBuiltCss:e,defaultTooltipHeaderStyle:t})=>R(e,t)}
|
|
646
646
|
// custom styles
|
|
647
647
|
${({customHeaderStyle:e})=>e}
|
|
648
648
|
`,De=h.default.div`
|
|
649
|
-
${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>
|
|
649
|
+
${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>R(e,t)}
|
|
650
650
|
// custom styles
|
|
651
651
|
${({customBodyStyle:e})=>e}
|
|
652
652
|
`,Oe=h.default.div`
|
|
653
653
|
`,Ge=h.default.div`
|
|
654
|
-
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>
|
|
654
|
+
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>R(e,t)}
|
|
655
655
|
// custom styles
|
|
656
656
|
${({customTriggerStyle:e})=>e}
|
|
657
|
-
`,Xe=({inBuiltCss:e,contentTrigger:t,contentTooltip:a,popperOptionsP:r,settings:i,customStylesTPContainer:n,customStylesTPAbottom:c,customStylesTPAbottomBefore:d,customStylesTPAbottomAfter:s,customStylesTPAtop:u,customStylesTPAtopBefore:p,customStylesTPAtopAfter:f,customStylesTPAright:m,customStylesTPArightBefore:b,customStylesTPArightAfter:h,customStylesTPAleft:y,customStylesTPAleftBefore:x,customStylesTPAleftAfter:C,customStylesTPArrow:v,customStylesTPAbefore:A,customStylesTPAafter:w,customTooltipContentStyle:S,customContentStyle:k,customHeaderStyle:V,customBodyStyle:M,customTriggerStyle:z,headerTooltip:B,footerTooltip:L,...I})=>{const
|
|
657
|
+
`,Xe=({inBuiltCss:e,contentTrigger:t,contentTooltip:a,popperOptionsP:r,settings:i,customStylesTPContainer:n,customStylesTPAbottom:c,customStylesTPAbottomBefore:d,customStylesTPAbottomAfter:s,customStylesTPAtop:u,customStylesTPAtopBefore:p,customStylesTPAtopAfter:f,customStylesTPAright:m,customStylesTPArightBefore:b,customStylesTPArightAfter:h,customStylesTPAleft:y,customStylesTPAleftBefore:x,customStylesTPAleftAfter:C,customStylesTPArrow:v,customStylesTPAbefore:A,customStylesTPAafter:w,customTooltipContentStyle:S,customContentStyle:k,customHeaderStyle:V,customBodyStyle:M,customTriggerStyle:z,headerTooltip:B,footerTooltip:L,...I})=>{const R=l.useTheme()||H,W={modifiers:[{name:"offset",options:{offset:[0,23]}}],strategy:"absolute",...r},{getArrowProps:T,getTooltipProps:F,setTooltipRef:j,setTriggerRef:q,visible:Z}=o.usePopperTooltip({interactive:!0,...i},W);return g.default.createElement(g.default.Fragment,null,g.default.createElement(Ge,{ref:q,inBuiltCss:P,customTriggerStyle:z,style:{width:"fit-content",height:"fit-content",display:"inline-block"}},t),Z&&g.default.createElement(Fe,E({inBuiltCss:P,theme:R,ref:j},F({className:"tooltip-container"}),{customStylesTPContainer:n,customStylesTPAbottom:c,customStylesTPAbottomBefore:d,customStylesTPAbottomAfter:s,customStylesTPAtop:u,customStylesTPAtopBefore:p,customStylesTPAtopAfter:f,customStylesTPAright:m,customStylesTPArightBefore:b,customStylesTPArightAfter:h,customStylesTPAleft:y,customStylesTPAleftBefore:x,customStylesTPAleftAfter:C}),g.default.createElement(je,E({inBuiltCss:P},T({className:"tooltip-arrow"}),{customStylesTPArrow:v,customStylesTPAbefore:A,customStylesTPAafter:w})),g.default.createElement(qe,E({defaultTooltipContentStyle:"popOver-Content",theme:R,inBuiltCss:P},I,{customContentStyle:k}),g.default.createElement(Ze,E({defaultTooltipHeaderStyle:"popOver-header",theme:R,inBuiltCss:P},I,{customHeaderStyle:V}),B),g.default.createElement(De,E({defaultTooltipBodyStyle:"popOver-body",theme:R,inBuiltCss:P},I,{customBodyStyle:M}),a),g.default.createElement(Oe,null,L))))};Xe.propTypes={contentTrigger:b.default.any,headerTooltip:b.default.any,contentTooltip:b.default.any,footerTooltip:b.default.any,popperOptionsP:b.default.object,settings:b.default.object,customContentStyle:b.default.object,customHeaderStyle:b.default.object,customBodyStyle:b.default.object,customStylesTPContainer:b.default.object,customStylesTPAbottom:b.default.object,customStylesTPAbottomBefore:b.default.object,customStylesTPAbottomAfter:b.default.object,customStylesTPAtop:b.default.object,customStylesTPAtopBefore:b.default.object,customStylesTPAtopAfter:b.default.object,customStylesTPAright:b.default.object,customStylesTPArightBefore:b.default.object,customStylesTPArightAfter:b.default.object,customStylesTPAleft:b.default.object,customStylesTPAleftBefore:b.default.object,customStylesTPAleftAfter:b.default.object,customStylesTPArrow:b.default.object,customStylesTPAbefore:b.default.object,customStylesTPAafter:b.default.object,customTriggerStyle:b.default.object},Xe.defaultProps={contentTrigger:g.default.createElement("div",null,"Trigger"),headerTooltip:"",contentTooltip:"",footerTooltip:g.default.createElement(xe,{size:"sm"},"Next"),customStylesTPContainer:{border:"none"},customTriggerStyle:{}};const Je=h.default.div`
|
|
658
658
|
background: transparent;
|
|
659
659
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
660
660
|
font-size: ${({isPrimary:e})=>e?"16px":"14px"};
|
|
@@ -730,11 +730,11 @@ ${({customTriggerStyle:e})=>e}
|
|
|
730
730
|
position: relative;
|
|
731
731
|
`,Qe=({wrap:e,block:a,style:o,variant:r,variantSeparator:i,appLogo:n,separator:c,items:d,onClick:s,isPrimary:u,collapse:p,folderIcon:f,folderIconProps:m,iconMargin:b,...h})=>{const y=l.useTheme()||H,x=t.useRef(null),[C,v]=t.useState(void 0),A=()=>{v(x?.current?.scrollWidth<x?.current?.offsetWidth)};t.useEffect((()=>{A()}),[d]),t.useEffect((()=>{if(!e)return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)}),[]);const w=d.map(((e,t)=>g.default.createElement(Ue,{key:t},0!==t||n?g.default.createElement("div",{className:"breadcrumb-icon-separator"},c):null,g.default.createElement(Ye,{id:e.id,theme:y,onClick:()=>{e.href&&s(e.href)},variant:r,href:e.href,"data-title":e.label},e.label))));let S,k;ae().width<500?(S=2,k=d.slice(-1)):(S=4,k=d.slice(-3));const V=k.map(((e,t)=>g.default.createElement(Ue,{key:d.length-3},g.default.createElement("div",{className:"breadcrumb-icon-separator"},c),g.default.createElement(Ye,{id:e.id,theme:y,onClick:()=>{e.href&&s(e.href)},variant:r,href:e.href,"data-title":e.label},e.label)))),M=d.slice(1,d.length-(S-1)).map(((e,t)=>g.default.createElement(Ne,{key:t},f?g.default.createElement("div",{style:{marginRight:"10px",marginTop:"2.3px"}},g.default.createElement(Q,E({icon:"folder-icon",size:17,transform:"translate(0px,-0.5px)"},m))):null,g.default.createElement(Ye,{id:e.id,theme:y,onClick:()=>{e.href&&s(e.href)},variant:r,href:e.href,"data-title":e.label},e.label)))),z=d?1==p?d.length<=S?w:g.default.createElement(g.default.Fragment,null,g.default.createElement(Ue,{key:0},g.default.createElement("div",{className:"breadcrumb-icon-separator"},c),g.default.createElement(Ye,{id:d[0].id,theme:y,onClick:()=>{d[0].href&&s(d[0].href)},variant:r,href:d[0].href,"data-title":d[0].label},d[0].label)),g.default.createElement(Ue,null,g.default.createElement("div",{className:"breadcrumb-icon-separator",style:{marginTop:"-3px"}},c),g.default.createElement(Xe,{contentTrigger:g.default.createElement(Q,{icon:"ellipses-horizontal",size:12,color:"#6B747F",style:{padding:"0 4px",paddingBottom:"6px",marginTop:"-5.5px"}}),customTriggerStyle:{cursor:"pointer",background:"#E2E6F5",borderRadius:"3px"},headerTooltip:"",customHeaderStyle:{marginBottom:"0px"},contentTooltip:g.default.createElement(g.default.Fragment,null,M),footerTooltip:"",popperOptionsP:{placement:"bottom"},customContentStyle:{width:"210px",backgroundColor:"white",color:"#6B747F",boxShadow:"0px 6px 40px rgba(56, 66, 100, 0.482627)",display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"16px",gap:"8px",position:"absolute",borderRadius:"3.6px",paddingBottom:"0px",marginTop:"-8.8px",marginLeft:"-6px"},customBodyStyle:{marginBottom:"0px"},customStylesTPArrow:{display:"none"},settings:{closeOnOutsideClick:!0,trigger:"click"}})),V):w:null;return g.default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},g.default.createElement("div",{style:{display:"flex",position:"absolute"}},g.default.createElement(Je,E({theme:y,isWrap:e,ref:e?null:x,isBreadcrumbVisible:C,block:a,variant:r,variantSeparator:i,style:o,isPrimary:u,iconMargin:b},h),n&&g.default.createElement("div",{className:"breadcrumb-icon"},n),z)))};Qe.propTypes={variant:b.default.string,variantSeparator:b.default.string,onClick:b.default.func,appLogo:b.default.any,separator:b.default.any,items:b.default.array,block:b.default.bool,wrap:b.default.bool,isPrimary:b.default.bool,collapse:b.default.bool,folderIcon:b.default.bool,iconMargin:b.default.string},Qe.defaultProps={variant:"neutral-2",variantSeparator:"neutral-3",block:!1,onClick:void 0,wrap:!1,isPrimary:!0,collapse:!0,folderIcon:!0};const Ke=h.default.label`
|
|
732
732
|
//Set the styles from the default styles object
|
|
733
|
-
${({inBuiltCss:e,type:t})=>
|
|
733
|
+
${({inBuiltCss:e,type:t})=>R(e,t)}
|
|
734
734
|
|
|
735
735
|
// custom styles
|
|
736
736
|
${({customStyles:e})=>e}
|
|
737
|
-
`,$e=({customStyles:e,text:t,className:a,required:o,...r})=>{const i=l.useTheme()||H;return g.default.createElement(Ke,E({required:o,inBuiltCss:
|
|
737
|
+
`,$e=({customStyles:e,text:t,className:a,required:o,...r})=>{const i=l.useTheme()||H;return g.default.createElement(Ke,E({required:o,inBuiltCss:P,customStyles:e,type:"label"},r),t,o&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${i.variant.error}`}},"*"))};$e.propTypes={customStyles:b.default.object,text:b.default.string},$e.defaultProps={text:""};const _e=h.default.div`
|
|
738
738
|
display: flex;
|
|
739
739
|
flex-direction: column;
|
|
740
740
|
${({containerStyle:e})=>e};
|
|
@@ -783,11 +783,11 @@ ${({customTriggerStyle:e})=>e}
|
|
|
783
783
|
`,ot=h.default.span`
|
|
784
784
|
color: ${({theme:e})=>e.variant.error};
|
|
785
785
|
${({errorTextStyle:e})=>e};
|
|
786
|
-
`,rt=({listChips:e,setListChips:a,currentChip:o,setCurrentChip:r,chipListString:i,placeholder:n,errorMsg:c,handleBlurProps:d,label:s,labelCusTomStyles:u,containerStyle:p,inputContainerStyle:f,errorTextStyle:m,disabled:b,isValid:h,...
|
|
786
|
+
`,rt=({listChips:e,setListChips:a,currentChip:o,setCurrentChip:r,chipListString:i,placeholder:n,errorMsg:c,handleBlurProps:d,label:s,labelCusTomStyles:u,containerStyle:p,inputContainerStyle:f,errorTextStyle:m,disabled:b,isValid:h,handleInputKeyDownProps:y,handleInputChangeProps:x,...C})=>{let v=i?i.split(","):e||[];const[A,w]=t.useState(v),[S,k]=t.useState(o),[E,V]=t.useState(""),M=l.useTheme()||H;t.useEffect((()=>{w(v)}),[]);return g.default.createElement(_e,{theme:M,containerStyle:p},g.default.createElement(et,{inputContainerStyle:f},g.default.createElement($e,{text:s,customStyles:u}),A.map(((e,t)=>g.default.createElement(tt,{theme:M,key:e+`${t}`,onClick:()=>(e=>{const t=[...A];t.splice(e,1),w(t),V(""),d(t.join(","))})(t)},g.default.createElement(lt,null,e)))),g.default.createElement(at,{type:"text",placeholder:n,value:S,onKeyDown:e=>{"Enter"===e.key||","===e.key?(e.preventDefault(),h?S.trim()&&(y([...A,S.trim()].join(",")),w([...A,S.trim()]),k(""),V("")):V(c)):"Backspace"!==e.key||S||(y(A.slice(0,-1).join(",")),w(A.slice(0,-1)))},onChange:e=>{k(e.target.value),V(""),x(e.target.value)},theme:M,onBlur:()=>{if(h){let e;e=S.trim()?[...A,S.trim()]:[...A],d(e.join(",")),w(e),k("")}else h||V(c)},disabled:b})),E&&g.default.createElement(ot,{errorTextStyle:m,theme:M},E))};rt.propTypes={listChips:b.default.arrayOf(b.default.string),setListChips:b.default.func,chipListString:b.default.string,currentChip:b.default.string,setCurrentChip:b.default.func,placeholder:b.default.string,isValid:b.default.bool,errorMsg:b.default.string,label:b.default.string,labelCusTomStyles:b.default.object,containerStyle:b.default.object,inputContainerStyle:b.default.object,errorTextStyle:b.default.object,disabled:b.default.bool,handleInputKeyDownProps:b.default.func,handleInputChangeProps:b.default.func},rt.defaultProps={listChips:[],setListChips:()=>{},currentChip:"",setCurrentChip:()=>{},placeholder:"",errorMsg:"Please enter a valid email address",label:"From:",labelCusTomStyles:{},containerStyle:{},inputContainerStyle:{},errorTextStyle:{},disabled:!1,isValid:!0};const it=h.default.div`
|
|
787
787
|
box-sizing: initial;
|
|
788
788
|
|
|
789
789
|
//Set the styles from the default styles object
|
|
790
|
-
${({inBuiltCss:e,defaultCheckBoxOuterStyle:t})=>
|
|
790
|
+
${({inBuiltCss:e,defaultCheckBoxOuterStyle:t})=>R(e,t)}
|
|
791
791
|
|
|
792
792
|
border: 2px solid ${({checkedCheckBoxColor:e,defaultBorderColor:t,checked:l,theme:a})=>l&&e?e:l&&!e?a.primary["primary-1"]:!l&&t?t:l||t?void 0:a.additional.border}
|
|
793
793
|
};
|
|
@@ -799,7 +799,7 @@ opacity: ${({disabled:e,disabledOpacity:t})=>e?t:"1"};
|
|
|
799
799
|
box-sizing: initial;
|
|
800
800
|
|
|
801
801
|
//Set the styles from the default styles object
|
|
802
|
-
${({inBuiltCss:e,defaultCheckBoxInnerStyle:t})=>
|
|
802
|
+
${({inBuiltCss:e,defaultCheckBoxInnerStyle:t})=>R(e,t)}
|
|
803
803
|
|
|
804
804
|
// background-image: url(${({signCheck:e})=>e});
|
|
805
805
|
background-color: ${({checked:e,checkedCheckBoxColor:t,theme:l})=>e&&t?t:e&&!t?l.primary["primary-1"]:e?void 0:l.additional.white};
|
|
@@ -816,7 +816,7 @@ opacity: ${({disabled:e,disabledOpacity:t})=>e?t:"1"};
|
|
|
816
816
|
word-break: break-word;
|
|
817
817
|
|
|
818
818
|
//Set the styles from the default styles object
|
|
819
|
-
${({inBuiltCss:e,type:t})=>
|
|
819
|
+
${({inBuiltCss:e,type:t})=>R(e,t)}
|
|
820
820
|
|
|
821
821
|
color: ${({theme:e,checked:t,defaultTextColor:l,checkedTextColor:a})=>t&&a?a:t&&!a?e.neutral["neutral-1"]:!t&&l?l:t||l?void 0:e.neutral["neutral-2"]};
|
|
822
822
|
|
|
@@ -838,7 +838,7 @@ opacity: ${({disabled:e,disabledOpacity:t})=>e?t:"1"};
|
|
|
838
838
|
`,st=h.default.div`
|
|
839
839
|
flex-direction: ${({inline:e})=>e?"row":"column"};
|
|
840
840
|
width: ${({inline:e})=>e?"initial":"auto"};
|
|
841
|
-
`,ut=({getCheckedArr:e,checkBoxOuterStyle:a,checkBoxInnerStyle:o,optionTextStyle:r,defaultBorderColor:i,defaultTextColor:n,checkedTextColor:c,checkedCheckBoxColor:d,labelStyle:s,label:u,options:p,setOptions:f,wrapperStyles:m,inline:b,wrapperStyle:h,isRequired:y,iconProps:x,disabledOpacity:C,disableAllCheckbox:v,...A})=>{const w=l.useTheme()||H;t.useEffect((()=>{if(v){let e=[...p];e.map((e=>{e.disabled=!0})),f(e)}S(p)}),[]);const S=t=>{let l=t.filter((e=>!1!==e.checked));e(l)},k=Object.assign({display:"flex",flexDirection:"column",flexWrap:"wrap"},h);return g.default.createElement("div",E({style:k},A),g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({customStyles:s,type:"check-label",text:u},A)),y&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${w.variant.error}`}},"*")),g.default.createElement(st,E({style:{display:"flex",flexWrap:"wrap"},inline:b},A),p?.map(((e,t)=>g.default.createElement(dt,E({inline:b,id:e.id,key:`${e.name}-${t}`,onClick:()=>{!e.disabled&&((e,t)=>{let l=[...p];l[t].checked=!e.checked,f(l),S(l)})(e,t)},wrapperStyles:m},A),e.checked?g.default.createElement(nt,E({theme:w,inBuiltCss:
|
|
841
|
+
`,ut=({getCheckedArr:e,checkBoxOuterStyle:a,checkBoxInnerStyle:o,optionTextStyle:r,defaultBorderColor:i,defaultTextColor:n,checkedTextColor:c,checkedCheckBoxColor:d,labelStyle:s,label:u,options:p,setOptions:f,wrapperStyles:m,inline:b,wrapperStyle:h,isRequired:y,iconProps:x,disabledOpacity:C,disableAllCheckbox:v,...A})=>{const w=l.useTheme()||H;t.useEffect((()=>{if(v){let e=[...p];e.map((e=>{e.disabled=!0})),f(e)}S(p)}),[]);const S=t=>{let l=t.filter((e=>!1!==e.checked));e(l)},k=Object.assign({display:"flex",flexDirection:"column",flexWrap:"wrap"},h);return g.default.createElement("div",E({style:k},A),g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({customStyles:s,type:"check-label",text:u},A)),y&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${w.variant.error}`}},"*")),g.default.createElement(st,E({style:{display:"flex",flexWrap:"wrap"},inline:b},A),p?.map(((e,t)=>g.default.createElement(dt,E({inline:b,id:e.id,key:`${e.name}-${t}`,onClick:()=>{!e.disabled&&((e,t)=>{let l=[...p];l[t].checked=!e.checked,f(l),S(l)})(e,t)},wrapperStyles:m},A),e.checked?g.default.createElement(nt,E({theme:w,inBuiltCss:P,defaultCheckBoxInnerStyle:"checkBox-inner",checkBoxInnerStyle:{...o,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabled&&e?.disabledColor},defaultBorderColor:i,checkedCheckBoxColor:d,checked:e.checked,disabled:e.disabled,disabledOpacity:C},A),g.default.createElement(Q,E({icon:"check-icon",size:18,color:"white"},x))):g.default.createElement(it,E({inBuiltCss:P,defaultCheckBoxOuterStyle:"checkBox-outer",checkBoxOuterStyle:{...a,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabledColor},defaultBorderColor:i,theme:w,disabled:e.disabled,disabledOpacity:C},A)),g.default.createElement(ct,{theme:w,inline:b,optionTextStyle:{...r,cursor:e?.disabled?"not-allowed ":" pointer",color:e?.disabledColor},checked:e.checked,defaultTextColor:n,checkedTextColor:c,disabled:e.disabled,disabledOpacity:C},e.label))))))};ut.propTypes={wrapperStyle:b.default.object,label:b.default.string,labelStyle:b.default.object,checkBoxOuterStyle:b.default.object,checkBoxInnerStyle:b.default.object,optionTextStyle:b.default.object,defaultTextColor:b.default.string,checkedTextColor:b.default.string,defaultBorderColor:b.default.string,checkedCheckBoxColor:b.default.string,inline:b.default.bool,options:b.default.array,setOptions:b.default.func,getCheckedArr:b.default.func,isRequired:b.default.bool,wrapperStyles:b.default.object,iconProps:b.default.object,disabledOpacity:b.default.number,disableAllCheckbox:b.default.bool},ut.defaultProps={label:"",inline:!1,options:[],setOptions:()=>{},getCheckedArr:()=>{},labelStyle:{},checkBoxOuterStyle:{},checkBoxInnerStyle:{},isRequired:!0,wrapperStyles:{},iconProps:{},disabledOpacity:.5,disableAllCheckbox:!1};const pt=h.default.div`
|
|
842
842
|
border: 1px solid ${({theme:e})=>e.additional.border};
|
|
843
843
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.additional.white};
|
|
844
844
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
@@ -847,7 +847,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
847
847
|
border: 1px solid ${({theme:e})=>e.primary["primary-1"]};
|
|
848
848
|
}
|
|
849
849
|
|
|
850
|
-
${({inBuiltCss:e,defaultColorWrapperStyle:t})=>
|
|
850
|
+
${({inBuiltCss:e,defaultColorWrapperStyle:t})=>R(e,t)}
|
|
851
851
|
// custom styles
|
|
852
852
|
${({customColorWrapperStyle:e})=>e}
|
|
853
853
|
|
|
@@ -869,13 +869,13 @@ background-color: ${({value:e})=>e};
|
|
|
869
869
|
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
${({inBuiltCss:e,defaultInputColorStyle:t})=>
|
|
872
|
+
${({inBuiltCss:e,defaultInputColorStyle:t})=>R(e,t)}
|
|
873
873
|
// custom styles
|
|
874
874
|
${({customInputColorStyle:e})=>e}
|
|
875
875
|
|
|
876
876
|
background-color: ${({isDisabled:e,value:t,theme:l})=>e?l.variant["neutral-5"]:t}};
|
|
877
877
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
878
|
-
`,mt=({label:e,labelStyle:t,value:a,setValue:o,customInputColorStyle:r,customColorWrapperStyle:i,id:n,isDisabled:c,required:d,...s})=>{const u=l.useTheme()||H;return g.default.createElement(pt,E({customColorWrapperStyle:i,defaultColorWrapperStyle:"ColorWrapper",isDisabled:c,theme:u,inBuiltCss:
|
|
878
|
+
`,mt=({label:e,labelStyle:t,value:a,setValue:o,customInputColorStyle:r,customColorWrapperStyle:i,id:n,isDisabled:c,required:d,...s})=>{const u=l.useTheme()||H;return g.default.createElement(pt,E({customColorWrapperStyle:i,defaultColorWrapperStyle:"ColorWrapper",isDisabled:c,theme:u,inBuiltCss:P,required:d},s),g.default.createElement(ft,E({id:n,isDisabled:c,disabled:c,customInputColorStyle:r,defaultInputColorStyle:"input-color",inBuiltCss:P,theme:u},s,{type:"color",value:a,onChange:e=>{o(e.target.value)}})),g.default.createElement($e,E({themeColor:H,customStyles:t,type:"label-text",text:e,style:{display:"flex",paddingBottom:"0px",paddingLeft:"10px",cursor:c?"not-allowed":"pointer"}},s)))};mt.propTypes={label:b.default.string,labelStyle:b.default.object,value:b.default.string,setValue:b.default.func,customInputColorStyle:b.default.object,customColorWrapperStyle:b.default.object,id:b.default.string,isDisabled:b.default.bool,required:b.default.bool},mt.defaultProps={label:"choose color",labelStyle:{},customInputColorStyle:{},customColorWrapperStyle:{},value:"#FFFFFF",setValue:()=>{},id:"",isDisabled:!1,required:!1};const bt=l.css`
|
|
879
879
|
display: flex;
|
|
880
880
|
gap: 7px;
|
|
881
881
|
align-items: center;
|
|
@@ -1177,7 +1177,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1177
1177
|
|
|
1178
1178
|
// custom styles
|
|
1179
1179
|
${({customIconContainerStyle:e})=>e};
|
|
1180
|
-
`,zt=["January","February","March","April","May","June","July","August","September","October","November","December"],Bt=({selectedDate:e,setSelectedDate:a,disabled:o,startYear:r,endYearRange:i,format:n,customIconContainerStyle:c,placeHolder:d,value:s,timeBtnStyle:u,onClick:p,onChange:f,wrapperStyle:m,iconProps:b,labelProps:h,...y})=>{const v=l.useTheme()||H;let A=[],w=i||10;for(let e=r||(new Date).getFullYear();e<=(new Date).getFullYear()+w;e++)A.push(e);const S=t.useRef(null),k=t.useRef(null),[V,M]=t.useState(!1),[z,B]=t.useState(!1),[L,I]=t.useState(!1),[R
|
|
1180
|
+
`,zt=["January","February","March","April","May","June","July","August","September","October","November","December"],Bt=({selectedDate:e,setSelectedDate:a,disabled:o,startYear:r,endYearRange:i,format:n,customIconContainerStyle:c,placeHolder:d,value:s,timeBtnStyle:u,onClick:p,onChange:f,wrapperStyle:m,iconProps:b,labelProps:h,...y})=>{const v=l.useTheme()||H;let A=[],w=i||10;for(let e=r||(new Date).getFullYear();e<=(new Date).getFullYear()+w;e++)A.push(e);const S=t.useRef(null),k=t.useRef(null),[V,M]=t.useState(!1),[z,B]=t.useState(!1),[L,I]=t.useState(!1),[P,R]=t.useState(!1),[W,T]=t.useState(e.getFullYear()),[F,j]=t.useState(zt[e.getMonth()]);t.useEffect((()=>{j(zt[e.getMonth()]),T(e.getFullYear())}),[e]),t.useEffect((()=>(q(document,"click","add",Z(S,(()=>M(!1)))),q(document,"click","add",Z(k,(()=>B(!1)))),()=>{q(document,"click","remove",Z(S,(()=>M(!1)))),q(document,"click","remove",Z(k,(()=>B(!1))))})),[]);const q=(e,t,l,a,o)=>{"add"===l?e.addEventListener(t,a,o||!1):e.removeEventListener(t,a,o||!1)},Z=(e,t)=>l=>{e.current&&!e.current.contains(l.target)&&t()},D={icon:"calender",color:"black",size:"16",...b};return g.default.createElement(yt,E({disabled:o,theme:v},y,{wrapperStyle:m}),g.default.createElement($e,E({customStyles:{marginBottom:"7px",padding:0}},h)),g.default.createElement(C.default,E({selected:s===e?e:s,useWeekdaysShort:!0,onChange:e=>{a(e),f(e)},adjustDateOnChange:!0,disabled:o,dropdownMode:"select",customInput:g.default.createElement(Et,{value:s,onClick:p,placeholder:d,theme:v},g.default.createElement(Vt,E({theme:v,value:s,onClick:p,timeBtnStyle:u},y),g.default.createElement("div",null,s?x.default(s).format(n||"DD/MM/YYYY"):d||"select a date"),g.default.createElement(Mt,E({theme:v},y,{customIconContainerStyle:c,className:"input-icon"}),D.icon?g.default.createElement(Q,D):null))),renderCustomHeader:({date:e,changeYear:t,changeMonth:l})=>g.default.createElement(xt,null,g.default.createElement("div",{style:{display:"flex"}},g.default.createElement(vt,{ref:S},g.default.createElement(At,{onClick:()=>{M(!V),B(!1)}},g.default.createElement("span",{onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),style:{color:`${L?v.variant["primary-1"]:v.additional["text-color"]}`}},zt[e.getMonth()]),g.default.createElement(Ct,null,g.default.createElement(Q,{icon:"triangle-down",color:L?v.variant["primary-1"]:v.additional["text-color"],size:7}))),V&&g.default.createElement(wt,null,g.default.createElement(St,{theme:v,onMouseEnter:()=>I(!0)},zt.map(((e,t)=>g.default.createElement(kt,{selectedMonth:F,onClick:()=>{I(!1),l(t),M(!1),j(zt[t])},key:Math.random()},g.default.createElement("span",{style:{color:`${F===e?v.variant["primary-1"]:v.additional["text-color"]}`}},e))))))),g.default.createElement(vt,{ref:k},g.default.createElement(At,{style:{marginLeft:"28px"},onClick:()=>{B(!z),M(!1)}},g.default.createElement("span",{onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),style:{color:`${P?v.variant["primary-1"]:v.additional["text-color"]}`}},e.getFullYear()),g.default.createElement(Ct,null,g.default.createElement(Q,{icon:"triangle-down",color:P?v.variant["primary-1"]:v.additional["text-color"],size:7}))),z&&g.default.createElement(wt,null,g.default.createElement(St,{onMouseEnter:()=>R(!0),theme:v},A.map(((e,l)=>g.default.createElement(kt,{onClick:()=>{R(!1),t(e),T(e),B(!1)},key:Math.random()+l},g.default.createElement("span",{style:{color:`${W===e?v.variant["primary-1"]:v.additional["text-color"]}`}},e)))))))))},y)))};Bt.propTypes={selectedDate:b.default.any,setSelectedDate:b.default.func,disabled:b.default.bool,startYear:b.default.number,endYearRange:b.default.number,format:b.default.string,placeHolder:b.default.string,onChange:b.default.func,timeBtnStyle:b.default.object,wrapperStyle:b.default.object,customIconContainerStyle:b.default.object,iconProps:b.default.object,value:b.default.any,onClick:b.default.func,labelProps:b.default.object},Bt.defaultProps={selectedDate:new Date,setSelectedDate:()=>{},disabled:!1,onChange:()=>{},value:"",onClick:()=>{}};const Lt=h.default.div`
|
|
1181
1181
|
cursor: ${({disabled:e})=>e?"not-allowed":"text"};
|
|
1182
1182
|
.react-datepicker__tab-loop {
|
|
1183
1183
|
position: absolute;
|
|
@@ -1272,7 +1272,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1272
1272
|
|
|
1273
1273
|
// custom styles
|
|
1274
1274
|
${({timeBtnStyle:e})=>e};
|
|
1275
|
-
`,
|
|
1275
|
+
`,Pt=h.default.div`
|
|
1276
1276
|
display: flex;
|
|
1277
1277
|
align-items: center;
|
|
1278
1278
|
justify-content: ${({inputType:e})=>"year"!==e?"space-between":"center"};
|
|
@@ -1280,7 +1280,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1280
1280
|
color: ${({theme:e})=>e.additional.white};
|
|
1281
1281
|
// custom styles
|
|
1282
1282
|
${({customHeaderStyle:e})=>e};
|
|
1283
|
-
`,
|
|
1283
|
+
`,Rt=h.default.span`
|
|
1284
1284
|
margin-top: -1px;
|
|
1285
1285
|
margin-left: 7px;
|
|
1286
1286
|
float: right;
|
|
@@ -1299,7 +1299,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1299
1299
|
margin-top: 5px;
|
|
1300
1300
|
font-size: 10px;
|
|
1301
1301
|
}
|
|
1302
|
-
`,Ft=({defaultValue:e,onChange:a,inputType:o,onClick:r,placeHolder:i,value:n,disabled:c,startYear:d,endYearRange:s,iconProps:u,customHeaderStyle:p,timeBtnStyle:f,wrapperStyle:m,customIconContainerStyle:b,label:h,labelInline:y,labelStyle:v,required:A,errMsg:w,errMsgColor:S,isValid:k,...V})=>{const[M,z]=t.useState(e);let B=M?new Date(M):null;for(var L=[],I=s||10,
|
|
1302
|
+
`,Ft=({defaultValue:e,onChange:a,inputType:o,onClick:r,placeHolder:i,value:n,disabled:c,startYear:d,endYearRange:s,iconProps:u,customHeaderStyle:p,timeBtnStyle:f,wrapperStyle:m,customIconContainerStyle:b,label:h,labelInline:y,labelStyle:v,required:A,errMsg:w,errMsgColor:S,isValid:k,...V})=>{const[M,z]=t.useState(e);let B=M?new Date(M):null;for(var L=[],I=s||10,P=d||(new Date).getFullYear();P<=(new Date).getFullYear()+I;P++)L.push(P);let R={};switch(o){case"date":default:R.dateFormat="dd MMM, yyyy";break;case"month":R.dateFormat="MMMM yyyy",R.showMonthYearPicker=!0;break;case"year":R.dateFormat="yyyy",R.showYearPicker=!0;break;case"datetime-local":R.dateFormat="dd MMM yyyy, hh:mm a",R.showTimeSelect=!0,R.timeFormat="hh:mm a",R.timeIntervals=15,R.timeCaption="Time";break;case"time":R.showTimeSelect=!0,R.showTimeSelectOnly=!0,R.dateFormat="hh:mm a"}const W=l.useTheme()||H,T={icon:"calender",color:W.variant["primary-1"],size:"16",...u};return g.default.createElement(Tt,E({labelInline:y,errMsgColor:S,theme:W},V),g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({customStyles:v,type:"label-text",labelInline:y,errMsg:w,text:h,style:{display:"flex",marginBottom:""+(y?"":"7px"),paddingBottom:"0px"}},V)),A&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${W.variant.error}`}},"*")),g.default.createElement(Lt,E({theme:W},V,{wrapperStyle:m,isValid:k,disabled:c}),g.default.createElement(C.default,E({selected:B,disabled:c,customInput:g.default.createElement(It,{value:n,onClick:r,placeholder:i,theme:W},g.default.createElement(Ht,E({theme:W,value:n,onClick:r,timeBtnStyle:f,disabled:c},V),g.default.createElement("div",null,n||(i||"-- : -- --")),g.default.createElement(Rt,E({theme:W},V,{customIconContainerStyle:b,className:"input-icon"}),T.icon?g.default.createElement(Q,T):null))),onChange:e=>{z(e);var t=null;t="datetime-local"==o?x.default(e).format("DD MMM YYYY, hh:mm A"):"date"==o?x.default(e).format("DD MMM, YYYY"):"year"==o?x.default(e).format("YYYY"):"month"==o?x.default(e).format("MMMM YYYY"):"time"==o?x.default(e).format("hh:mm A"):x.default(e).format("DD MMM, YYYY"),a(t)},showYearDropdown:!0,yearDropdownItemNumber:5,dropdownMode:"select",placeholderText:i},R,{renderCustomHeader:({date:e,changeYear:t,decreaseMonth:l,increaseMonth:a})=>{let r=x.default(e).format("MMMM");return g.default.createElement(Pt,E({theme:W},V,{inputType:o,customHeaderStyle:p}),"year"!==o?g.default.createElement("span",{style:{paddingLeft:"10px"},onClick:l},g.default.createElement(Q,{icon:"chevron-left",color:"white",size:16})):null,g.default.createElement("b",null,"year"!==o?g.default.createElement("span",{style:{paddingRight:"5px"}},r):null," ",g.default.createElement("span",{className:"calender-year"},g.default.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>t(e)},L.map((e=>g.default.createElement("option",{key:e,value:e},e)))))),"year"!==o?g.default.createElement("span",{style:{paddingRight:"10px"},onClick:a},g.default.createElement(Q,{icon:"chevron-right",color:"white",size:16})):null)}},V))),w.length>0&&g.default.createElement("div",{className:"err-text"},w))};Ft.propTypes={defaultValue:b.default.string,onChange:b.default.func,inputType:b.default.string,onClick:b.default.func,placeHolder:b.default.string,value:b.default.string,disabled:b.default.bool,startYear:b.default.number,endYearRange:b.default.number,iconProps:b.default.object,customHeaderStyle:b.default.object,timeBtnStyle:b.default.object,wrapperStyle:b.default.object,customIconContainerStyle:b.default.object,label:b.default.string,labelStyle:b.default.object,labelInline:b.default.bool,errMsg:b.default.string,errMsgColor:b.default.string,isValid:b.default.bool},Ft.defaultProps={disabled:!1,startYear:new Date,endYearRange:10,value:"",defaultValue:"",onChange:()=>{},label:"",required:!1,labelInline:!1,errMsg:"",isValid:!0};const jt=h.default.div`
|
|
1303
1303
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"initial"} !important;
|
|
1304
1304
|
|
|
1305
1305
|
.text-main-alt {
|
|
@@ -1331,7 +1331,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1331
1331
|
display: flex;
|
|
1332
1332
|
|
|
1333
1333
|
//Set the styles from the default styles object
|
|
1334
|
-
${({inBuiltCss:e,labelWrapperStyle:t})=>
|
|
1334
|
+
${({inBuiltCss:e,labelWrapperStyle:t})=>R(e,t)}
|
|
1335
1335
|
// custom styles
|
|
1336
1336
|
${({customLabelStyles:e})=>e}
|
|
1337
1337
|
`,Zt=h.default.div`
|
|
@@ -1339,9 +1339,9 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1339
1339
|
margin-top: -15.5px;
|
|
1340
1340
|
cursor: pointer;
|
|
1341
1341
|
line-height: normal !important;
|
|
1342
|
-
`,Dt=({getValue:e,children:t,...l})=>{const a=e().length;return g.default.createElement(c.components.ValueContainer,E({"data-accordion":"contentClickFalse"},l),g.default.createElement("span",{"data-accordion":"contentClickFalse"}),t,a>1&&g.default.createElement("span",{className:"text-more-alt"},"& ",a-1," more"))},Ot=({label:e,labelStyle:a,optionArr:o,selectedValue:r,setSelectedValue:i,placeHolder:n,isClearable:d,isValid:s,height:u,fontSize:p,loadOptions:f,onInputChange:m,clearSelected:b,customWrapperStyles:h,customLabelStyles:y,isRequired:x,dropdownType:C,isDisabled:v,isLoading:A,id:w,iconName:S,iconStyles:k,iconColor:V,iconSize:M,showIndicator:z,leftIcon:B,leftIconColor:L,leftIconSize:I,backgroundColor:
|
|
1342
|
+
`,Dt=({getValue:e,children:t,...l})=>{const a=e().length;return g.default.createElement(c.components.ValueContainer,E({"data-accordion":"contentClickFalse"},l),g.default.createElement("span",{"data-accordion":"contentClickFalse"}),t,a>1&&g.default.createElement("span",{className:"text-more-alt"},"& ",a-1," more"))},Ot=({label:e,labelStyle:a,optionArr:o,selectedValue:r,setSelectedValue:i,placeHolder:n,isClearable:d,isValid:s,height:u,fontSize:p,loadOptions:f,onInputChange:m,clearSelected:b,customWrapperStyles:h,customLabelStyles:y,isRequired:x,dropdownType:C,isDisabled:v,isLoading:A,id:w,iconName:S,iconStyles:k,iconColor:V,iconSize:M,showIndicator:z,leftIcon:B,leftIconColor:L,leftIconSize:I,backgroundColor:R,placeHolderColor:W,indicatorBackgroundColor:T,inputColor:F,menuListFooter:j,customSelectStyles:q,errorMessage:Z,maximumSelectOptionLimit:D,maximumSelectOptionLimitMessage:O,...G})=>{const X=l.useTheme()||H,J=e=>{const t={width:"15px",height:"15px",borderRadius:"2px",padding:"4px",fontSize:"8px",lineHeight:"10px",minWidth:"15px",minHeight:"15px",boxSizing:"content-box"},l=g.default.createElement("div",{style:{...t,backgroundColor:e?.data?.color??X.primary["primary-1"]}},g.default.createElement(Q,{icon:"check-icon",color:"white"})),a=g.default.createElement("div",{style:{...t,backgroundColor:"#e0e7ff"}});return console.log(e),g.default.createElement(c.components.Option,e,g.default.createElement("div",{"data-accordion":"contentClickFalse",style:{display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%"}},"further-details"!==e.value&&(e.isSelected?l:a),g.default.createElement("div",{className:"text-main-alt","data-accordion":"contentClickFalse",style:{marginLeft:"10px"}},e.label)))},U=({index:e,...t})=>{const l=t?.data?.label||"Select";return!e&&g.default.createElement("span",{className:"text-main-alt-value"},l)},Y={control:(e,t)=>({...e,border:s?R&&s?"1px solid "+R:"1px solid "+X.border:"1px solid "+X.ui.error,minWidth:"singleSelect"===C||"asyncSingleSelect"===C?"120px":"185px",height:`${u}px`,minHeight:`${u}px`,boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:t.isDisabled?X.variant["neutral-5"]:R||X.additional.white}),placeholder:e=>({...e,fontSize:p+"px",marginLeft:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"auto",maxWidth:"89%",marginRight:"0px",color:W||"hsl(0, 0%, 50%)"}),dropdownIndicator:e=>({...e,height:`${u}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"2px",backgroundColor:T||"transparent",borderBottomLeftRadius:"0",borderBottomRightRadius:"4.32px",borderTopLeftRadius:0,borderTopRightRadius:"4.32px",position:"relative",top:"-1px",right:"-1px"}),clearIndicator:e=>({...e,height:`${u}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"0px"}),valueContainer:e=>({...e,fontSize:p+"px",marginTop:"-4px"}),indicatorsContainer:e=>({...e,padding:0}),menu:e=>({...e,border:"none",marginTop:"1px",borderTopRightRadius:"0px",borderTopLeftRadius:"0px",outline:"none",boxShadow:"0px 6px 20px rgba(56, 66, 100, 0.15)",borderRadius:"4.32px",fontSize:p+"px",width:"100%",minWidth:"singleSelect"===C||"asyncSingleSelect"===C?"120px":"185px"}),singleValue:e=>({...e,fontSize:p+"px",marginLeft:"0px",width:"auto",marginRight:0,display:"grid"}),multiValue:e=>({...e,marginLeft:"0px",width:"auto",display:"grid"}),input:e=>({...e,fontSize:p+"px",color:F||"hsl(0, 0%, 20%)",padding:0,margin:0}),option:(e,t)=>({...e,backgroundColor:t.isSelected||t.isFocused?X.neutral["neutral-5"]:X.additional.white,padding:"10px",cursor:t.isDisabled?"not-allowed":"pointer",color:"#081348",opacity:t.isDisabled?.6:1,width:"inherit",boxSizing:"initial"}),menuPortal:e=>({...e,zIndex:99999999}),...q},N={DropdownIndicator:e=>{const t=g.default.createElement(c.components.DropdownIndicator,e,g.default.createElement(Zt,{"data-accordion":"contentClickFalse"},g.default.createElement(Q,{icon:S,color:V,size:M,customstyles:k,"data-accordion":"contentClickFalse"})));return!0===z?t:null},ValueContainer:Dt,IndicatorSeparator:()=>null,ClearIndicator:e=>g.default.createElement(c.components.ClearIndicator,e,d?g.default.createElement(Zt,{onClick:()=>{b(),e.clearValue()},"data-accordion":"contentClickFalse"},g.default.createElement(Q,{icon:"cross-icon",color:"black",size:8,"data-accordion":"contentClickFalse"})):null),MenuList:e=>{const{MenuListHeader:l=null,MenuListFooter:a=null}=e.selectProps.components,o=e.getValue().length||0;return g.default.createElement(c.components.MenuList,E({},e,{"data-accordion":"contentClickFalse"}),o<D?g.default.createElement(t.Fragment,null,e.children.length&&l,e.children,e.children.length&&a):g.default.createElement("div",{style:{margin:15}},O))},MenuListFooter:j};let K=null;switch(C){case"multiSelect":K=g.default.createElement(Gt,E({type:"multiSelect",MultiValue:U,Option:J,value:r,CommonRenderedComponent:N,optionArr:o,placeHolder:n,isDisabled:v,stylesComp:Y,setSelectedValue:i,isLoading:A,id:w,isClearable:d},G));break;case"asyncSingleSelect":K=g.default.createElement(Xt,E({CommonRenderedComponent:N,loadOptions:f,onInputChange:m,styles:Y,placeholder:n,onChange:i,isLoading:A,isDisabled:v,id:w,value:r,isClearable:d},G));break;case"asyncMultiSelect":K=g.default.createElement(Xt,E({type:"asyncMultiSelect",CommonRenderedComponent:N,MultiValue:U,Option:J,onChange:i,placeholder:n,styles:Y,isDisabled:v,isLoading:A,loadOptions:f,onInputChange:m,id:w,isClearable:d,value:r},G));break;default:K=g.default.createElement(Gt,E({type:"singleSelect",value:{value:r?r.value:"",label:r?r.label:""},CommonRenderedComponent:N,optionArr:o,placeHolder:n,isDisabled:v,stylesComp:Y,setSelectedValue:i,isLoading:A,id:w,isClearable:d},G))}return g.default.createElement(jt,{style:h,backgroundColor:R,isValid:s,fontSize:p,theme:X,isDisabled:v},e&&g.default.createElement(qt,{inBuiltCss:P,labelWrapperStyle:"selectComp-label-wrapper",style:y},g.default.createElement($e,{customStyles:a,type:"label-text",text:e,style:{marginBottom:"8px",paddingBottom:"0px"}}),x&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${X.ui.error}`}},"*")),K,!s&&Z)},Gt=({type:e,Option:t,value:l,CommonRenderedComponent:a,MultiValue:o,optionArr:r,placeHolder:i,isDisabled:n,stylesComp:c,setSelectedValue:d,isLoading:s,id:u,isClearable:p,...f})=>{let m={...a};return"multiSelect"===e&&(m.MultiValue=o,m.Option=t),g.default.createElement(v.default,E({className:"select-manage-page contentClickFalse",classNamePrefix:"new-select",name:"select-dropdown",components:m,options:r,placeholder:i,isDisabled:n,value:l,styles:c,onChange:d,isLoading:s,id:u,isClearable:p,isMulti:"multiSelect"===e,hideSelectedOptions:!1,closeMenuOnSelect:"multiSelect"!==e,menuShouldScrollIntoView:!1,"data-accordion":"contentClickFalse"},f))},Xt=({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),g.default.createElement(A.default,E({className:"select-manage-page contentClickFalse ",classNamePrefix:"new-select",name:"select-dropdown",components:n,isMulti:"asyncMultiSelect"===a,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiSelect"!==a,isSearchable:!0,styles:r,menuShouldScrollIntoView:!1,"data-accordion":"contentClickFalse",id:o},i))};Ot.propTypes={label:b.default.string,labelStyle:b.default.object,optionArr:b.default.array,selectedValue:b.default.object,setSelectedValue:b.default.func,placeHolder:b.default.string,fontSize:b.default.number,clearSelected:b.default.func,loadOptions:b.default.func,onInputChange:b.default.func,customWrapperStyles:b.default.object,customLabelStyles:b.default.object,isRequired:b.default.bool,dropdownType:b.default.string,isDisabled:b.default.bool,isLoading:b.default.bool,isValid:b.default.bool,height:b.default.number,isClearable:b.default.bool,id:b.default.string,iconName:b.default.string,iconColor:b.default.string,iconSize:b.default.number,leftIcon:b.default.string,leftIconColor:b.default.string,leftIconSize:b.default.number,showIndicator:b.default.bool,backgroundColor:b.default.string,placeHolderColor:b.default.string,inputColor:b.default.string,menuListFooter:b.default.any,customSelectStyles:b.default.object,maximumSelectOptionLimit:b.default.number,maximumSelectOptionLimitMessage:b.default.string},Ot.defaultProps={label:"",labelStyle:{},optionArr:[],selectedValue:{},setSelectedValue:void 0,placeHolder:"Select an option",isValid:!0,isClearable:!1,height:31,fontSize:14,loadOptions:()=>{},onInputChange:()=>{},clearSelected:()=>{},customWrapperStyles:{},customLabelStyles:{},isRequired:!1,dropdownType:"singleSelect",isDisabled:!1,isLoading:!1,id:"",iconName:"triangle-down",iconColor:"black",iconSize:8,leftIcon:"",leftIconColor:"black",leftIconSize:10,showIndicator:!0,customSelectStyles:{},maximumSelectOptionLimit:1e4,maximumSelectOptionLimitMessage:"Max limit achieved"};const Jt=h.default.div`
|
|
1343
1343
|
//Set the styles from the default styles object
|
|
1344
|
-
${({inBuiltCss:e,defaultStyles:t})=>
|
|
1344
|
+
${({inBuiltCss:e,defaultStyles:t})=>R(e,t)}
|
|
1345
1345
|
|
|
1346
1346
|
background-color:${({hover:e,dropValid:t,fileArr:l,backgroundColor:a,theme:o})=>t?t&&e&&a?a:t&&e&&!a?o.primary["primary-1"]:t&&!e&&l.length>0?o.additional.white:t&&!e&&0==l.length?W(o.primary["primary-1"],.05):void 0:"rgba(215, 0, 0, 0.05)"}
|
|
1347
1347
|
|
|
@@ -1358,7 +1358,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1358
1358
|
${({customDropzoneStyles:e})=>e}
|
|
1359
1359
|
`,Ut=h.default.div`
|
|
1360
1360
|
//Set the styles from the default styles object
|
|
1361
|
-
${({inBuiltCss:e,defaultStyles:t})=>
|
|
1361
|
+
${({inBuiltCss:e,defaultStyles:t})=>R(e,t)}
|
|
1362
1362
|
|
|
1363
1363
|
// custom styles
|
|
1364
1364
|
${({customFileStyles:e})=>e}
|
|
@@ -1366,13 +1366,13 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1366
1366
|
display: none;
|
|
1367
1367
|
`,Nt=h.default.div`
|
|
1368
1368
|
//Set the styles from the default styles object
|
|
1369
|
-
${({inBuiltCss:e,defaultStyles:t})=>
|
|
1369
|
+
${({inBuiltCss:e,defaultStyles:t})=>R(e,t)}
|
|
1370
1370
|
|
|
1371
1371
|
// custom styles
|
|
1372
1372
|
${({customTextStyles:e})=>e}
|
|
1373
1373
|
`;h.default.span`
|
|
1374
1374
|
//Set the styles from the default styles object
|
|
1375
|
-
${({inBuiltCss:e,type:t})=>
|
|
1375
|
+
${({inBuiltCss:e,type:t})=>R(e,t)}
|
|
1376
1376
|
|
|
1377
1377
|
// custom styles
|
|
1378
1378
|
${({customFileNameStyles:e})=>e}
|
|
@@ -1398,7 +1398,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1398
1398
|
align-items: center;
|
|
1399
1399
|
margin: 20px 0px;
|
|
1400
1400
|
font-size: 14px;
|
|
1401
|
-
`;const _t=({label:e,labelStyle:a,labelInline:o,required:r,message:i,fileArr:n,setFileArr:c,deleteFile:d,customDropzoneStyles:s,customFileStyles:u,customTextStyles:p,customFileNameStyles:f,backgroundColor:m,singleFile:b,messageSize:h,showSupportedFormats:y,file_extensions:x,maxFilesAmount:C,minFilesAmount:v,fileSizeLimit:A,fileSizeNamingConvention:w,errorMessages:S,suggesionMessage:k,MessagelabelStyle:V,dropValid:M,setDropValid:z,errorDetails:B,setErrorDetails:L,dropzoneContent:I,dropIcon:
|
|
1401
|
+
`;const _t=({label:e,labelStyle:a,labelInline:o,required:r,message:i,fileArr:n,setFileArr:c,deleteFile:d,customDropzoneStyles:s,customFileStyles:u,customTextStyles:p,customFileNameStyles:f,backgroundColor:m,singleFile:b,messageSize:h,showSupportedFormats:y,file_extensions:x,maxFilesAmount:C,minFilesAmount:v,fileSizeLimit:A,fileSizeNamingConvention:w,errorMessages:S,suggesionMessage:k,MessagelabelStyle:V,dropValid:M,setDropValid:z,errorDetails:B,setErrorDetails:L,dropzoneContent:I,dropIcon:R,iconColor:W,id:T,customTooltipContentStyle:F,customStylesTPArightBefore:j,customStylesTPArightAfter:q,...Z})=>{const D=l.useTheme()||H,[O,G]=t.useState(!1),X=t.createRef(),[J,U]=t.useState(M),[Y,N]=t.useState("");let K;var $=x;let _=new Map($.map((e=>[e.toLowerCase(),e])));_=Array.from(_.values()).join(", ");var ee=!1,te=y?"All file formats cannot be used with the files you provided.":"",le="";1==b&&(v=1,C=1);var ae="Please upload (min."+v+" to max."+C+")files",oe=e=>{le="";let t=[],l=[];var a=n.length;if(a+e.length<v||a+e.length>C){var o=`Please upload (minimum ${v} to maximum ${C} files)`;le=S?.amount,le=void 0!==le?le:o}if(""==le)for(const[a,n]of Object.entries(e)){ee=!0,n.name;let e=n.size,a=n.name.split(".");a=a[a.length-1],ee=$.includes(a.toLowerCase());var r=1024;("MB"===w||"GB"===w||"TB"===w)&&(r*=1024);var i=e/r;if(!1===ee&&(le=S?.format,le=le||te),i>A&&ee){ee=!1;o="Each file must be under "+A+" "+w;le=S?.size,le=void 0!==le?le:o}ee?(K=URL.createObjectURL(n),n.path=K,t.push(n)):l.push(n)}return le.length>0?(z(!1),L({valid:!1,errorMessage:le,errorFiles:l}),U(M),N(le)):(z(!0),U(M),N(""),L({valid:!0,errorMessage:"",errorFiles:[]})),t};function re(e){e.preventDefault(),e.stopPropagation()}function ie(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),G(!1),l}function ne(e,t){if(e instanceof File){const t=n.findIndex((t=>t.name===e.name));let l=n[t].path;URL.revokeObjectURL(l);const a=n.filter((t=>t.name!==e.name));c(a)}else!function(e,t){const l=n.filter((t=>t.name!==e.name));c(l),d(e)}(e)}const ce=g.default.createElement("div",null,_);return g.default.createElement("div",null,g.default.createElement("div",{style:{display:"flex",width:"inherit"}},g.default.createElement($e,E({customStyles:a,type:"label-text",labelInline:o,text:e,style:{display:"flex",marginBottom:`${o?0:"8px"}`,paddingBottom:"0px"}},Z)),r&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${D.variant.error}`}},"*")),g.default.createElement(Jt,{theme:D,inBuiltCss:P,defaultStyles:"dropzone-parent",backgroundColor:m,customDropzoneStyles:M?s:{},onDragLeave:function(e){re(e),G(!1)},onDragOver:function(e){re(e),G(!0)},onDrop:function(e){re(e);const{files:t}=e.dataTransfer;var l=oe(t);G(!0),Z.onFilesAdded(ie(l,b))},onClick:function(){X.current.click()},hover:O,dropValid:M,fileArr:n},g.default.createElement(Yt,E({ref:X,valid:J,dropValid:M,type:"file",id:T,multiple:!b,onChange:function(e){let{files:t}=e.target;G(!1);var l=oe(t);l&&Z.onFilesAdded(ie(l,b))},onClick:e=>e.target.value=null},Z)),M?g.default.createElement(g.default.Fragment,null,R?g.default.createElement(Q,{icon:R,color:O?D.additional.white:W,size:24}):g.default.createElement(Q,{icon:"file-upload",color:O?D.additional.white:D.primary["primary-1"],size:24})):null,g.default.createElement(Nt,{dropValid:M,valid:J,hover:O,backgroundColor:m,customTextStyles:p,inBuiltCss:P,defaultStyles:"dropzone-text-div"},M?g.default.createElement(g.default.Fragment,null,I?g.default.createElement("div",{style:{color:O?D.additional.white:null}},I):g.default.createElement("div",null,g.default.createElement("span",{style:{color:O?D.additional.white:D.primary["primary-1"]}},"Choose a file"," "),g.default.createElement("span",{style:{color:O?D.additional.white:D.neutral["neutral-2"]}},"or"," "),g.default.createElement("span",{style:{color:O?D.additional.white:D.additional["text-color"]}},"drag ",b?"it":"them"," here"))):g.default.createElement("div",null,g.default.createElement("span",{style:{color:D.variant.error}},"Try again!!"," "),g.default.createElement("span",{style:{color:D.additional["text-color"]}},Y||i)))),Y===te||S.format?g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({themeColor:H,customStyles:V,type:"label-text",labelInline:o,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},Z)),g.default.createElement(Xe,{contentTrigger:g.default.createElement("span",{style:{cursor:"pointer"}},"Click here to view the supported file types"),headerTooltip:"",contentTooltip:ce,footerTooltip:"",popperOptionsP:{placement:"bottom"},settings:{closeOnOutsideClick:!0,trigger:"click"},customTriggerStyle:{marginTop:"8px",marginLeft:"4px",textDecoration:"underline",color:D.variant["primary-1"]},customBodyStyle:{wordWrap:"break-word"},customContentStyle:F,customStylesTPArightBefore:j,customStylesTPArightAfter:q})):"The file size is not uploaded"===Y?g.default.createElement($e,E({themeColor:H,customStyles:V,type:"label-text",labelInline:o,text:ae,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},Z)):"",n?.map(((e,t)=>g.default.createElement(Ut,{inBuiltCss:P,defaultStyles:"dropzone-file-div",key:`${e}-${t}`,customFileStyles:u},g.default.createElement(Kt,null,g.default.createElement(Q,{icon:"file-icon",color:D.primary["primary-1"]})),(File,g.default.createElement("a",{style:{color:D.variant["primary-1"],marginLeft:"5px"},href:e?.path,target:"_blank",rel:"noreferrer",download:e.name}," ",e.name)),g.default.createElement($t,null,e?.otherInfo),g.default.createElement(Qt,{key:101*Math.random()|0},g.default.createElement("div",{style:{marginRight:"7px"}},g.default.createElement(Q,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:D.primary["primary-1"]})),g.default.createElement(Q,{icon:"cross-icon",color:D.neutral["neutral-2"],size:13,onClick:()=>ne(e),customstyles:{cursor:"pointer"}}))))))};_t.propTypes={onFilesAdded:b.default.func,dropValid:b.default.bool,setDropValid:b.default.func,message:b.default.string,fileArr:b.default.array,setFileArr:b.default.func,customDropzoneStyles:b.default.object,customFileStyles:b.default.object,customTextStyles:b.default.object,customFileNameStyles:b.default.object,backgroundColor:b.default.string,messageSize:b.default.number,maxFilesAmount:b.default.number,minFilesAmount:b.default.number,fileSizeLimit:b.default.number,fileSizeNamingConvention:b.default.string,showSupportedFormats:b.default.bool,file_extensions:b.default.array,errorMessages:b.default.object,suggesionMessage:b.default.any,MessagelabelStyle:b.default.object,id:b.default.string,dropzoneContent:b.default.any,dropIcon:b.default.string,iconColor:b.default.string,singleFile:b.default.bool,customTooltipContentStyle:b.default.object,customStylesTPArightBefore:b.default.object,customStylesTPArightAfter:b.default.object},_t.defaultProps={onFilesAdded:()=>null,dropValid:!0,message:"",fileArr:[],setFileArr:()=>{},customDropzoneStyles:{},errorDetails:{},setErrorDetails:()=>{},customFileStyles:{},customTextStyles:{},customFileNameStyles:{},messageSize:100,additionalText:"",maxFilesAmount:5,minFilesAmount:1,fileSizeLimit:10,fileSizeNamingConvention:"MB",showSupportedFormats:!0,file_extensions:["doc","docx","jpg","JPG","pdf","png","xlsx","xlsr","xls"],errorMessages:{},MessagelabelStyle:{},suggesionMessage:"doc, docx, jpg, pdf, png, xlsx, xlsr, xls (Max 10MB)",id:"",iconColor:"black"};const el=l.css`
|
|
1402
1402
|
pointer-events: none;
|
|
1403
1403
|
`,tl=h.default.input`
|
|
1404
1404
|
background-color: transparent;
|
|
@@ -1554,7 +1554,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1554
1554
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1555
1555
|
|
|
1556
1556
|
//Set the styles from the default styles object
|
|
1557
|
-
${({inBuiltCss:e,defaultWrapperStyle:t})=>
|
|
1557
|
+
${({inBuiltCss:e,defaultWrapperStyle:t})=>R(e,t)}
|
|
1558
1558
|
|
|
1559
1559
|
border: ${({isValid:e,theme:t})=>e?"1px solid "+t.additional.border:"1px solid "+t.variant.error};
|
|
1560
1560
|
|
|
@@ -1580,7 +1580,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1580
1580
|
width: 85%;
|
|
1581
1581
|
|
|
1582
1582
|
//Set the styles from the default styles object
|
|
1583
|
-
${({inBuiltCss:e,defaultInputStyle:t})=>
|
|
1583
|
+
${({inBuiltCss:e,defaultInputStyle:t})=>R(e,t)}
|
|
1584
1584
|
|
|
1585
1585
|
// custom styles
|
|
1586
1586
|
${({inputStyle:e})=>e}
|
|
@@ -1599,11 +1599,11 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1599
1599
|
margin-top: 5px;
|
|
1600
1600
|
font-size: 10px;
|
|
1601
1601
|
}
|
|
1602
|
-
`,Cl=({passwordRules:e,textBoxStyle:a,labelStyle:o,inputStyle:r,errMsg:i,required:n,label:c,labelInline:d,isValid:s,rulesStyle:u,id:p,showHideIcon:f,errMsgColor:m,...b})=>{const[h,y]=t.useState("password"),x=l.useTheme()||H;return g.default.createElement(xl,E({labelInline:d,inBuiltCss:
|
|
1602
|
+
`,Cl=({passwordRules:e,textBoxStyle:a,labelStyle:o,inputStyle:r,errMsg:i,required:n,label:c,labelInline:d,isValid:s,rulesStyle:u,id:p,showHideIcon:f,errMsgColor:m,...b})=>{const[h,y]=t.useState("password"),x=l.useTheme()||H;return g.default.createElement(xl,E({labelInline:d,inBuiltCss:P,errMsgColor:m,theme:x},b),g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({customStyles:o,type:"label-text",text:c,errMsg:i,style:{display:"flex",marginBottom:`${d?0:"8px"}`,paddingBottom:"0px"}},b)),n&&g.default.createElement("div",{style:{marginLeft:"4px",marginRight:"5px",color:`${x.variant.error}`}},"*")),g.default.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"flex-start"}},g.default.createElement("div",{style:{width:"100%"}},g.default.createElement(gl,E({required:n,theme:x,textBoxStyle:a,isValid:s,defaultWrapperStyle:"textbox-wrapper",inBuiltCss:P},b),g.default.createElement(hl,E({},b,{inputStyle:r,type:h,id:p,theme:x,defaultInputStyle:"input-wrapper",inBuiltCss:P})),!0===f?g.default.createElement("div",{className:"input-icon",onClick:()=>y("password"===h?"text":"password"),style:{position:"absolute",right:"7px"}},g.default.createElement(Q,{icon:"text"===h?"eye-show":"eye-hide"})):""),i.length>0&&g.default.createElement("div",{className:"err-text"},i)),e?g.default.createElement("div",{style:{...u,marginLeft:"5px"}},e):""))};Cl.propTypes={inBuiltCss:b.default.object,theme:b.default.object,label:b.default.string,required:b.default.bool,labelInline:b.default.bool,errMsg:b.default.string,textBoxStyle:b.default.object,labelStyle:b.default.object,inputStyle:b.default.object,rulesStyle:b.default.object,id:b.default.string,showHideIcon:b.default.bool},Cl.defaultProps={inBuiltCss:P,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",textBoxStyle:{},labelStyle:{},inputStyle:{},passwordRules:"",rulesStyle:{},id:"",showHideIcon:!0};const vl=h.default.div`
|
|
1603
1603
|
box-sizing: initial;
|
|
1604
1604
|
|
|
1605
1605
|
//Set the styles from the default styles object
|
|
1606
|
-
${({inBuiltCss:e,defaultRadioOuterCircleStyle:t})=>
|
|
1606
|
+
${({inBuiltCss:e,defaultRadioOuterCircleStyle:t})=>R(e,t)}
|
|
1607
1607
|
|
|
1608
1608
|
border: 2px solid ${({value:e,selected:t,selectedCircleColor:l,defaultBorderColor:a,theme:o})=>e!==t&&a?a:e===t||a?e===t&&l?l:e!==t||l?void 0:o.primary["primary-1"]:o.additional.border};
|
|
1609
1609
|
|
|
@@ -1613,7 +1613,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1613
1613
|
box-sizing: initial;
|
|
1614
1614
|
|
|
1615
1615
|
//Set the styles from the default styles object
|
|
1616
|
-
${({inBuiltCss:e,defaultRadioInnerCircleStyle:t})=>
|
|
1616
|
+
${({inBuiltCss:e,defaultRadioInnerCircleStyle:t})=>R(e,t)}
|
|
1617
1617
|
|
|
1618
1618
|
width: ${({value:e,selected:t,width:l})=>e===t?l:0};
|
|
1619
1619
|
height: ${({value:e,selected:t,height:l})=>e===t?l:0};
|
|
@@ -1623,7 +1623,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1623
1623
|
${({radioInnerCircleStyle:e})=>e}
|
|
1624
1624
|
`;Al.defaultProps={theme:H};const wl=h.default.div`
|
|
1625
1625
|
//Set the styles from the default styles object
|
|
1626
|
-
${({inBuiltCss:e,defaultOptionStyle:t})=>
|
|
1626
|
+
${({inBuiltCss:e,defaultOptionStyle:t})=>R(e,t)}
|
|
1627
1627
|
margin-right: ${({inline:e})=>e?"":"30px"};
|
|
1628
1628
|
color: ${({selected:e,selectedOptionTextColor:t,defaultOptionColor:l,theme:a})=>e&&t?t:e&&!t?a.neutral["neutral-1"]:!e&&l?l:e||l?void 0:a.neutral["neutral-2"]};
|
|
1629
1629
|
|
|
@@ -1642,11 +1642,11 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1642
1642
|
display: ${({inline:e})=>e?"flex":"inline-block"};
|
|
1643
1643
|
width: max-content;
|
|
1644
1644
|
margin: 0;
|
|
1645
|
-
`,El=({radioOuterCircleStyle:e,radioInnerCircleStyle:t,labelStyle:a,label:o,optionStyle:r,options:i,selectedCircleColor:n,selectedOptionTextColor:c,onChange:d,selected:s,width:u,height:p,inline:f,defaultBorderColor:m,defaultOptionColor:b,WrapperDivStyle:h,required:y,onFocus:x,...C})=>{const v=l.useTheme()||H;return g.default.createElement("div",null,g.default.createElement($e,{customStyles:a,type:"label-text",text:o,required:y,style:{display:"flex",marginBottom:"'8px",paddingBottom:"0px"}}),g.default.createElement(kl,{inline:f},i.map(((l,a)=>g.default.createElement(Sl,{WrapperDivStyle:h,key:a+101*Math.random(),id:l.id,inline:f,onClick:()=>{!l?.disabled&&d(l.value)},onFocus:()=>{!l?.disabled&&x(l.value)}},g.default.createElement(vl,{theme:v,inBuiltCss:
|
|
1645
|
+
`,El=({radioOuterCircleStyle:e,radioInnerCircleStyle:t,labelStyle:a,label:o,optionStyle:r,options:i,selectedCircleColor:n,selectedOptionTextColor:c,onChange:d,selected:s,width:u,height:p,inline:f,defaultBorderColor:m,defaultOptionColor:b,WrapperDivStyle:h,required:y,onFocus:x,...C})=>{const v=l.useTheme()||H;return g.default.createElement("div",null,g.default.createElement($e,{customStyles:a,type:"label-text",text:o,required:y,style:{display:"flex",marginBottom:"'8px",paddingBottom:"0px"}}),g.default.createElement(kl,{inline:f},i.map(((l,a)=>g.default.createElement(Sl,{WrapperDivStyle:h,key:a+101*Math.random(),id:l.id,inline:f,onClick:()=>{!l?.disabled&&d(l.value)},onFocus:()=>{!l?.disabled&&x(l.value)}},g.default.createElement(vl,{theme:v,inBuiltCss:P,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:s},g.default.createElement(Al,{inBuiltCss:P,theme:v,width:u,height:p,selectedCircleColor:n,radioInnerCircleStyle:{...t,cursor:l?.disabled?"not-allowed ":" pointer",backgroundColor:l?.disabled&&l?.disabledColor?l?.disabledColor:l?.value===s?t?.backgroundColor:"transparent"},defaultRadioInnerCircleStyle:"radio-inner-circle",value:l.value,selected:s})),g.default.createElement(wl,{defaultOptionColor:b,optionStyle:{...r,cursor:l?.disabled?"not-allowed ":" pointer",color:l?.disabled&&l?.disabledColor},inBuiltCss:P,defaultOptionStyle:"option-text",selectedOptionTextColor:c,theme:v,selected:!l?.disabled&&l.value===s},l.label))))))};El.propTypes={label:b.default.string,labelStyle:b.default.object,inline:b.default.bool,options:b.default.array,optionStyle:b.default.object,WrapperDivStyle:b.default.object,selected:b.default.string,onChange:b.default.func,defaultOptionColor:b.default.string,defaultBorderColor:b.default.string,radioOuterCircleStyle:b.default.object,radioInnerCircleStyle:b.default.object,width:b.default.string,height:b.default.string,selectedCircleColor:b.default.string,selectedOptionTextColor:b.default.string},El.defaultProps={label:"",labelStyle:{},inline:!1,options:[],optionStyle:{},selected:"one",onChange:()=>{},radioOuterCircleStyle:{},radioInnerCircleStyle:{},width:"14px",height:"14px",WrapperDivStyle:{}};const Vl=h.default.div`
|
|
1646
1646
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1647
1647
|
|
|
1648
1648
|
//Set the styles from the default styles object
|
|
1649
|
-
${({inBuiltCss:e,defaultWrapperStyle:t})=>
|
|
1649
|
+
${({inBuiltCss:e,defaultWrapperStyle:t})=>R(e,t)}
|
|
1650
1650
|
|
|
1651
1651
|
border: ${({isValid:e,theme:t})=>e?"1px solid "+t.additional.border:"1px solid "+t.variant.error};
|
|
1652
1652
|
|
|
@@ -1670,7 +1670,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1670
1670
|
overflow: hidden;
|
|
1671
1671
|
text-overflow: ellipsis;
|
|
1672
1672
|
//Set the styles from the default styles object
|
|
1673
|
-
${({inBuiltCss:e,defaultInputStyle:t})=>
|
|
1673
|
+
${({inBuiltCss:e,defaultInputStyle:t})=>R(e,t)}
|
|
1674
1674
|
|
|
1675
1675
|
// custom styles
|
|
1676
1676
|
${({inputStyle:e})=>e}
|
|
@@ -1692,18 +1692,18 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1692
1692
|
margin-top: 5px;
|
|
1693
1693
|
font-size: 10px;
|
|
1694
1694
|
}
|
|
1695
|
-
`,Ll=({textBoxStyle:e,labelStyle:t,inputStyle:a,errMsg:o,required:r,label:i,labelInline:n,iconBefore:c,iconAfter:d,isValid:s,type:u,isDisabled:p,id:f,errMsgColor:m,iconAfterStyle:b,iconBeforeStyle:h,ref:y,pattern:x,iconColorOnFocus:C,...v})=>{const A=l.useTheme()||H;return g.default.createElement(Bl,E({labelInline:n,theme:A,errMsgColor:m},v),g.default.createElement($e,E({customStyles:t,type:"label-text",labelInline:n,text:i,errMsg:o,style:{display:"flex",marginBottom:`${n?0:"8px"}`,paddingBottom:"0px"},required:r},v)),g.default.createElement(Vl,E({required:r,isDisabled:p,theme:A,textBoxStyle:e,isValid:s,inBuiltCss:
|
|
1695
|
+
`,Ll=({textBoxStyle:e,labelStyle:t,inputStyle:a,errMsg:o,required:r,label:i,labelInline:n,iconBefore:c,iconAfter:d,isValid:s,type:u,isDisabled:p,id:f,errMsgColor:m,iconAfterStyle:b,iconBeforeStyle:h,ref:y,pattern:x,iconColorOnFocus:C,...v})=>{const A=l.useTheme()||H;return g.default.createElement(Bl,E({labelInline:n,theme:A,errMsgColor:m},v),g.default.createElement($e,E({customStyles:t,type:"label-text",labelInline:n,text:i,errMsg:o,style:{display:"flex",marginBottom:`${n?0:"8px"}`,paddingBottom:"0px"},required:r},v)),g.default.createElement(Vl,E({required:r,isDisabled:p,theme:A,textBoxStyle:e,isValid:s,inBuiltCss:P,defaultWrapperStyle:"textbox-wrapper",iconColorOnFocus:C},v),g.default.createElement("div",{className:"input-icon",style:{...h}},c),g.default.createElement(Ml,E({inputStyle:a,type:u,theme:A,id:f,defaultInputStyle:"input-wrapper",isDisabled:p,disabled:p,ref:y,pattern:x},v)),g.default.createElement("div",{className:"input-icon",style:{...b}},d)),o.length>0&&g.default.createElement("div",{className:"err-text"},o))};Ll.propTypes={inBuiltCss:b.default.object,label:b.default.string,required:b.default.bool,labelInline:b.default.bool,errMsg:b.default.string,iconBefore:b.default.any,iconAfter:b.default.any,textBoxStyle:b.default.object,labelStyle:b.default.object,inputStyle:b.default.object,type:b.default.string,isDisabled:b.default.bool,id:b.default.string,errMsgColor:b.default.string,iconAfterStyle:b.default.object,iconBeforeStyle:b.default.object,iconColorOnFocus:b.default.string},Ll.defaultProps={inBuiltCss:P,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textBoxStyle:{},labelStyle:{},inputStyle:{},type:"text",isDisabled:!1,id:"",iconAfterStyle:{},iconBeforeStyle:{},iconColorOnFocus:""};const Il=({label:e,placeholder:t,handleSearch:l,searchInput:a,customStylesForm:o,customStyleObject:r,textBoxStyle:i,id:n,...c})=>g.default.createElement(Ll,E({iconAfter:g.default.createElement(Q,{icon:"magnifier-icon"}),label:e,textBoxStyle:i,placeholder:t,ref:a,onChange:l,id:n},c)),Hl=h.default.div`
|
|
1696
1696
|
//Set the styles from the default styles object
|
|
1697
|
-
${({inBuiltCss:e,defaultParentDivStyle:t})=>
|
|
1697
|
+
${({inBuiltCss:e,defaultParentDivStyle:t})=>R(e,t)}
|
|
1698
1698
|
|
|
1699
1699
|
border: 1px solid ${({isMyInputFocused:e,activeColor:t,defaultColor:l,theme:a})=>e&&t?t:e&&!t?a.primary["primary-1"]:!e&&l?l:e||l?void 0:a.neutral["neutral-3"]};
|
|
1700
1700
|
|
|
1701
1701
|
&:focus-within {
|
|
1702
1702
|
border-color: ${({activeColor:e,theme:t})=>e||t.primary["primary-1"]};
|
|
1703
1703
|
}
|
|
1704
|
-
`,
|
|
1704
|
+
`,Pl=h.default.div`
|
|
1705
1705
|
//Set the styles from the default styles object
|
|
1706
|
-
${({inBuiltCss:e,defaultWrapperDivStyle:t})=>
|
|
1706
|
+
${({inBuiltCss:e,defaultWrapperDivStyle:t})=>R(e,t)}
|
|
1707
1707
|
|
|
1708
1708
|
flex-direction: ${({signIcon:e})=>e?"column":"initial"};
|
|
1709
1709
|
width: ${({signIcon:e})=>e?"min-content":"calc(100% - 50px) !important"};
|
|
@@ -1713,7 +1713,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1713
1713
|
border-left: ${({signIcon:e})=>e?"":"none"};
|
|
1714
1714
|
margin-left: ${({signIcon:e})=>e?"":"42px"};
|
|
1715
1715
|
position: ${({signIcon:e})=>e?"absolute":""};
|
|
1716
|
-
`,
|
|
1716
|
+
`,Rl=h.default.div`
|
|
1717
1717
|
width: 39px;
|
|
1718
1718
|
height: 44px;
|
|
1719
1719
|
display: flex;
|
|
@@ -1724,7 +1724,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1724
1724
|
background-color: rgba(255, 255, 255, 0.05);
|
|
1725
1725
|
cursor: pointer;
|
|
1726
1726
|
`,Wl=h.default.input`
|
|
1727
|
-
${({inBuiltCss:e,defaultInputStyle:t})=>
|
|
1727
|
+
${({inBuiltCss:e,defaultInputStyle:t})=>R(e,t)}
|
|
1728
1728
|
|
|
1729
1729
|
border-bottom: ${({value:e,defaultColor:t,theme:l})=>e.length>0?"none":t};
|
|
1730
1730
|
|
|
@@ -1757,10 +1757,10 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1757
1757
|
display: flex;
|
|
1758
1758
|
justify-content: center;
|
|
1759
1759
|
cursor: pointer;
|
|
1760
|
-
`,jl=({onChange:e,activeColor:a,defaultColor:o,placeholderColor:r,placeholderText:i,customInputStyle:n,pointsArray:c,setPointsArray:d,value:s,setValue:u,valueForSignatureDrawing:p,setValueForSignatureDrawing:f,imageURL:m,setImageURL:b,id:h,...y})=>{const x=l.useTheme()||H,[C,v]=t.useState("default"),[A,S]=t.useState(!1),[k,E]=t.useState(!1),V=t.useRef(null);t.useEffect((()=>{k&&(z(),f(V.current))}),[!0===k]);const M=()=>{u(""),f(V.current),V.current&&V.current.clear(),S(!1),E(!1)},z=()=>(d(V.current.toData()),b(V.current.toDataURL("image/png")),[m,c]);return g.default.createElement(Hl,{inBuiltCss:
|
|
1760
|
+
`,jl=({onChange:e,activeColor:a,defaultColor:o,placeholderColor:r,placeholderText:i,customInputStyle:n,pointsArray:c,setPointsArray:d,value:s,setValue:u,valueForSignatureDrawing:p,setValueForSignatureDrawing:f,imageURL:m,setImageURL:b,id:h,...y})=>{const x=l.useTheme()||H,[C,v]=t.useState("default"),[A,S]=t.useState(!1),[k,E]=t.useState(!1),V=t.useRef(null);t.useEffect((()=>{k&&(z(),f(V.current))}),[!0===k]);const M=()=>{u(""),f(V.current),V.current&&V.current.clear(),S(!1),E(!1)},z=()=>(d(V.current.toData()),b(V.current.toDataURL("image/png")),[m,c]);return g.default.createElement(Hl,{inBuiltCss:P,defaultParentDivStyle:"signature-parent-div",isMyInputFocused:A,selected:C,activeColor:a,defaultColor:o,theme:x},g.default.createElement(Pl,{inBuiltCss:P,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:a,defaultColor:o,selected:C,isMyInputFocused:A,signIcon:!0,theme:x},g.default.createElement(Rl,{activeColor:a,defaultColor:o,isMyInputFocused:A,theme:x,penIcon:!0,onClick:()=>{v("default"),M()}},g.default.createElement(Q,{icon:"pen-icon",color:"default"===C?a||x.primary["primary-1"]:x.additional.black})),g.default.createElement(Rl,{activeColor:a,defaultColor:o,theme:x,isMyInputFocused:A,penIcon:!1,onClick:()=>{v("sign"),M()}},g.default.createElement(Q,{icon:"sign-icon",color:"default"!==C?a||x.primary["primary-1"]:x.additional.black}))),g.default.createElement(Pl,{inBuiltCss:P,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:a,defaultColor:o,theme:x,selected:C,isMyInputFocused:A,signIcon:!1,onTouchStart:()=>{}},"default"===C?g.default.createElement(Wl,{inBuiltCss:P,defaultInputStyle:"signature-input-text",placeholder:i,placeholderColor:r,customInputStyle:n,onBlur:()=>S(!1),onFocus:()=>S(!0),id:h,value:s,defaultColor:o,theme:x,onChange:e=>u(e.target.value)}):g.default.createElement(Tl,{onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),onClick:()=>{E(!0),z()}},g.default.createElement(w.default,{ref:V,id:h,redrawOnResize:!0,height:75,options:{minWidth:1,maxWidth:1,penColor:"#444444"}})),(s||k)&&g.default.createElement(Fl,{selected:C,onClick:()=>M()},g.default.createElement(Q,{icon:"cross-icon",color:o||x.neutral["neutral-3"]}))))};jl.propTypes={activeColor:b.default.string,defaultColor:b.default.string,placeholderColor:b.default.string,placeholderText:b.default.string,customInputStyle:b.default.object,pointsArray:b.default.any,setPointsArray:b.default.func,value:b.default.string,setValue:b.default.func,imageURL:b.default.string,setImageURL:b.default.func,id:b.default.string},jl.defaultProps={customInputStyle:{},placeholderText:"Type your signature here",pointsArray:null,setPointsArray:()=>{},value:"",setValue:()=>{},imageURL:"",setImageURL:()=>{},setValueForSignatureDrawing:()=>{},id:""};const ql=h.default.div`
|
|
1761
1761
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1762
1762
|
//Set the styles from the default styles object
|
|
1763
|
-
${({inBuiltCss:e,defaultWrapperStyle:t})=>
|
|
1763
|
+
${({inBuiltCss:e,defaultWrapperStyle:t})=>R(e,t)}
|
|
1764
1764
|
|
|
1765
1765
|
border: ${({isValid:e,theme:t})=>e?"1px solid "+t.additional.border:"1px solid "+t.variant.error};
|
|
1766
1766
|
|
|
@@ -1781,7 +1781,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1781
1781
|
${({textAreaStyle:e})=>e}
|
|
1782
1782
|
`,Zl=h.default.textarea`
|
|
1783
1783
|
//Set the styles from the default styles object
|
|
1784
|
-
${({inBuiltCss:e,defaultInputStyle:t})=>
|
|
1784
|
+
${({inBuiltCss:e,defaultInputStyle:t})=>R(e,t)}
|
|
1785
1785
|
margin: 0;
|
|
1786
1786
|
overflow: auto;
|
|
1787
1787
|
cursor: auto;
|
|
@@ -1800,7 +1800,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1800
1800
|
margin-top: 5px;
|
|
1801
1801
|
font-size: 10px;
|
|
1802
1802
|
}
|
|
1803
|
-
`,Gl=g.default.forwardRef((({customStylesForm:e,textAreaStyle:t,inputStyle:a,errMsg:o,iconBefore:r,iconAfter:i,isValid:n,rows:c,cols:d,id:s,labelProps:u,...p},f)=>{const m=l.useTheme()||H,{labelInline:b}=u;return g.default.createElement(Ol,E({labelInline:b,customStylesForm:e,theme:m},p),g.default.createElement($e,E({type:"label-text",style:{display:"flex",marginBottom:`${b?0:"8px"}`,paddingBottom:"0px"}},u)),g.default.createElement(ql,E({theme:m,textAreaStyle:t,isValid:n,inBuiltCss:
|
|
1803
|
+
`,Gl=g.default.forwardRef((({customStylesForm:e,textAreaStyle:t,inputStyle:a,errMsg:o,iconBefore:r,iconAfter:i,isValid:n,rows:c,cols:d,id:s,labelProps:u,...p},f)=>{const m=l.useTheme()||H,{labelInline:b}=u;return g.default.createElement(Ol,E({labelInline:b,customStylesForm:e,theme:m},p),g.default.createElement($e,E({type:"label-text",style:{display:"flex",marginBottom:`${b?0:"8px"}`,paddingBottom:"0px"}},u)),g.default.createElement(ql,E({theme:m,textAreaStyle:t,isValid:n,inBuiltCss:P,defaultWrapperStyle:"textbox-wrapper"},p),g.default.createElement("div",{className:"input-icon"},r),g.default.createElement(Zl,E({ref:f,inputStyle:a,defaultInputStyle:"textarea-wrapper",cols:d,rows:c,inBuiltCss:P,id:s},p,{size:"1"})),g.default.createElement("div",{className:"input-icon"},i)),g.default.createElement("div",{className:"err-text"},o))}));Gl.propTypes={rows:b.default.number,errMsg:b.default.string,iconBefore:b.default.any,iconAfter:b.default.any,textAreaStyle:b.default.object,inputStyle:b.default.object,id:b.default.string,labelProps:b.default.object},Gl.defaultProps={isValid:!0,errMsg:"",iconBefore:null,iconAfter:null,textAreaStyle:{},inputStyle:{},rows:3,id:"",labelProps:{labelInline:!1}};const Xl=h.default.div`
|
|
1804
1804
|
color: #a9b1b8;
|
|
1805
1805
|
font-size: 21px;
|
|
1806
1806
|
border: 1px solid
|
|
@@ -1860,7 +1860,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1860
1860
|
font-size: 18px;
|
|
1861
1861
|
cursor: pointer;
|
|
1862
1862
|
`,$l=({label:e,errMsg:t,hour:a,minute:o,period:r,onChange:i,id:n,...c})=>{const d=l.useTheme()||H;return g.default.createElement(Ql,E({theme:d},c),g.default.createElement(Yl,E({theme:d},c,{errMsg:t}),e),g.default.createElement("div",null,g.default.createElement(Xl,E({theme:d,id:n},c),g.default.createElement(Jl,{theme:d,value:a,onChange:function(e){const t=e.currentTarget.value>12?12:parseFloat(e.currentTarget.value)||0;i({hour:t,minute:o,period:r})}}),":",g.default.createElement(Jl,{theme:d,value:o,onChange:function(e){const t=e.currentTarget.value>59?59:parseFloat(e.currentTarget.value)||0;i({hour:a,minute:t,period:r})}}),g.default.createElement(Kl,{theme:d,onClick:function(e){i({hour:a,minute:o,period:"AM"===r?"PM":"AM"})}},r)),g.default.createElement("div",{className:"err-text"},t)))};$l.propTypes={label:b.default.string,hour:b.default.number.isRequired,minute:b.default.number.isRequired,period:b.default.string.isRequired,required:b.default.bool,labelInline:b.default.bool,isValid:b.default.bool,errMsg:b.default.string,id:b.default.string},$l.defaultProps={label:"",hour:0,minute:0,period:"AM",required:!1,labelInline:!1,isValid:!0,errMsg:"",id:""};const _l=h.default.div`
|
|
1863
|
-
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>
|
|
1863
|
+
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>R(e,t)}
|
|
1864
1864
|
`,ea=h.default.label`
|
|
1865
1865
|
position: absolute;
|
|
1866
1866
|
width: ${({labelPosition:e})=>"inside"===e?"51.52px":"45px"};
|
|
@@ -1907,7 +1907,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1907
1907
|
margin-right:${({labelPosition:e})=>"inside"===e?0:"8px"};
|
|
1908
1908
|
// custom styles
|
|
1909
1909
|
${({optionStyle:e})=>e};
|
|
1910
|
-
`,aa=({checked:e,customSwitchStyle:t,customToggleBoxStyle:a,onClick:o,optionStyle:r,id:i,isDisabled:n,trueLabel:c,falseLabel:d,labelPosition:s,...u})=>{const p=l.useTheme()||H;return g.default.createElement(_l,E({inBuiltCss:
|
|
1910
|
+
`,aa=({checked:e,customSwitchStyle:t,customToggleBoxStyle:a,onClick:o,optionStyle:r,id:i,isDisabled:n,trueLabel:c,falseLabel:d,labelPosition:s,...u})=>{const p=l.useTheme()||H;return g.default.createElement(_l,E({inBuiltCss:P,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},u),"left"===s&&g.default.createElement(la,{optionStyle:r,inBuiltCss:P,theme:p,checked:e,labelPosition:s},e?c:d),g.default.createElement(ta,E({},u,{id:i,inBuiltCss:P,onClick:()=>{o(!e)},isChecked:e,disabled:n,isDisabled:n,customToggleBoxStyle:a,labelPosition:s})),g.default.createElement(ea,E({},u,{htmlFor:i,customToggleBoxStyle:a,customSwitchStyle:t,inBuiltCss:P,checked:e,theme:p,isDisabled:n,labelPosition:s})),("right"===s||"inside"===s)&&g.default.createElement(la,{optionStyle:r,inBuiltCss:P,theme:p,checked:e,labelPosition:s},e?c:d))};aa.propTypes={customToggleBoxStyle:b.default.object,customSwitchStyle:b.default.object,checked:b.default.bool,id:b.default.string,isDisabled:b.default.bool,trueLabel:b.default.string,falseLabel:b.default.string,labelPosition:b.default.oneOf(["left","right","inside"])},aa.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1,trueLabel:"Yes",falseLabel:"NO",labelPosition:"right"};const oa=h.default.div`
|
|
1911
1911
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1912
1912
|
padding: 24px 8px;
|
|
1913
1913
|
${({commentWrapperStyle:e})=>e};
|
|
@@ -1969,13 +1969,13 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1969
1969
|
margin-left: 16px;
|
|
1970
1970
|
`,pa=({commentsArray:e,customStyles:a,myInfoAvatarProps:o,loading:r,viewOnly:i,textInputProps:n,saveBtnProps:c,cancelBtnProps:d,loadMore:s,avatarProps:u,message:p})=>{const f=l.useTheme()||H,[m,b]=t.useState(!1),[h,y]=t.useState(e||[]),x=async e=>{let t;t="post"===e?await c.callback():await s.callback(),y((e=>[...e,...t]))};return g.default.createElement(oa,{commentWrapperStyle:a?.commentWrapperStyle,theme:f},h.map(((e,t)=>{const{name:l,date:o,comment:r,image:i}=e;return g.default.createElement(ra,{key:t,commentBodyStyle:a?.commentBodyStyle,theme:f},g.default.createElement(ia,{commentHeadStyle:a?.commentHeadStyle},g.default.createElement(ze,E({user:{fullName:l,userName:l,url:i},toggleName:!0,size:"LG",customStylesName:{color:f.additional["text-color"]}},u)),g.default.createElement(na,{dateTimeStyle:a?.dateTimeStyle,theme:f},o)),g.default.createElement(ca,{commentDivStyle:a?.commentDivStyle},r))})),!r&&0===h.length&&p,r&&g.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:"24px"}},g.default.createElement(se,{size:25})),!r&&s.showLoadMore&&g.default.createElement("div",{className:"load-more"},g.default.createElement(fe,{onClick:()=>x("load")},"Load more")),!i&&g.default.createElement(da,{theme:f,inputWrapperStyle:a?.inputWrapperStyle},g.default.createElement(ze,E({toggleName:!1,customStylesImage:{height:"36px",width:"36px"},customStylesContainer:{marginTop:"7px"}},o)),g.default.createElement(ua,null,g.default.createElement(Ll,E({inputStyle:{height:"23px"},isValid:!0,onFocus:e=>b(!0)},n,{onChange:e=>{n.setInputValue(e.target.value)}})),m&&g.default.createElement(sa,null,g.default.createElement(ge,E({onClick:e=>{x("post"),n.setInputValue(e.target.value)}},c),c.text),g.default.createElement(fe,E({disabled:!(!d?.isLoading&&!c?.isLoading),onClick:()=>{b(!1),n.setInputValue(""),n.setValidValue({isValid:!0,errMsg:""})},btnStyle:{color:f.variant["neutral-1"]}},d),d.text)))))};pa.propTypes={commentsArray:b.default.array,customStyles:b.default.object,myInfoAvatarProps:b.default.object,viewOnly:b.default.bool,textInputProps:b.default.object,saveBtnProps:b.default.object,cancelBtnProps:b.default.object,loadMore:b.default.object,avatarProps:b.default.object,message:b.default.element},pa.defaultProps={commentsArray:[],customStyles:{commentBodyStyle:{},commentWrapperStyle:{},commentHeadStyle:{},dateTimeStyle:{},commentDivStyle:{},inputWrapperStyle:{}},myInfoAvatarProps:{},loading:!1,viewOnly:!1,textInputProps:{},saveBtnProps:{size:"sm",text:"Save"},cancelBtnProps:{size:"sm",text:"Cancel"},loadMore:{showLoadMore:!1,callback:()=>{}},avatarProps:{},message:g.default.createElement("span",{style:{textAlign:"center",display:"block",marginBottom:"16px"}},"No comments yet")};const fa=h.default.div`
|
|
1971
1971
|
//Set the styles from the default styles object
|
|
1972
|
-
${({theme:e,type:t})=>
|
|
1972
|
+
${({theme:e,type:t})=>R(e,t)}
|
|
1973
1973
|
@media (max-width: 980px) {
|
|
1974
1974
|
margin-left: 0px;
|
|
1975
1975
|
}
|
|
1976
1976
|
// custom styles
|
|
1977
1977
|
${({customStyles:e})=>e}
|
|
1978
|
-
`,ma=({theme:e,type:t,customStyles:l,...a})=>g.default.createElement(fa,E({theme:e,customStyles:l,type:t},a),a.children);ma.propTypes={theme:b.default.object,customStyles:b.default.object,type:b.default.string},ma.defaultProps={theme:
|
|
1978
|
+
`,ma=({theme:e,type:t,customStyles:l,...a})=>g.default.createElement(fa,E({theme:e,customStyles:l,type:t},a),a.children);ma.propTypes={theme:b.default.object,customStyles:b.default.object,type:b.default.string},ma.defaultProps={theme:P,customStyles:null,type:"content"};const ba=h.default.div`
|
|
1979
1979
|
width: 100%;
|
|
1980
1980
|
display: flex;
|
|
1981
1981
|
flex-direction: column;
|
|
@@ -2262,10 +2262,10 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2262
2262
|
content: '';
|
|
2263
2263
|
height: ${({vertical:e,thickness:t,height:l})=>e?l:t};
|
|
2264
2264
|
width: ${({vertical:e,thickness:t})=>e?t:null};
|
|
2265
|
-
`,
|
|
2265
|
+
`,Pa=({vertical:e,borderColor:t,thickness:a,height:o,...r})=>{const i=l.useTheme()||H;return g.default.createElement(Ha,E({theme:i,borderColor:t,thickness:a,vertical:e,height:o},r))};Pa.propTypes={thickness:b.default.string,borderColor:b.default.string,vertical:b.default.bool,height:b.default.string},Pa.defaultProps={thickness:"2px",vertical:!1,height:"10px"};const Ra=h.default.div`
|
|
2266
2266
|
//Set the styles from the default styles object
|
|
2267
2267
|
${({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}}}}
|
|
2268
|
-
`,Wa=({customStyles:e,drawerOpen:t,setDrawerOpen:l,children:a,...o})=>g.default.createElement(
|
|
2268
|
+
`,Wa=({customStyles:e,drawerOpen:t,setDrawerOpen:l,children:a,...o})=>g.default.createElement(Ra,E({inBuiltCss:P,customStyles:e,type:"drawer",drawerOpen:t},o),a);Wa.propTypes={customStyles:b.default.object,drawerOpen:b.default.bool,setDrawerOpen:b.default.func},Wa.defaultProps={setDrawerOpen:()=>null};class Ta 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=g.default.createElement(t.Fragment,null,g.default.createElement("h3",null,g.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"},g.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."),g.default.createElement(ge,{onClick:()=>this.refreshPage()},"Click to refresh"));return e?l:this.props.children}}Ta.propTypes={children:b.default.any};const Fa=l.css`
|
|
2269
2269
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
2270
2270
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
2271
2271
|
background: ${({theme:e})=>W(e.primary["primary-1"],.04)};
|
|
@@ -2288,10 +2288,10 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2288
2288
|
}
|
|
2289
2289
|
`,qa=({options:e,selected:t,onClick:a,customStyles:o,disabled:r,...i})=>{const n=l.useTheme()||H,c=e.map(((e,l)=>g.default.createElement(ja,{theme:n,key:`${e.label}_${l}_${e.value}`,selected:t===e.value,onClick:()=>{a(e.value)},customStyles:o,disabled:r},e.label)));return g.default.createElement(g.default.Fragment,null,c)};qa.propTypes={options:b.default.array,selected:b.default.string,onClick:b.default.func,customStyles:b.default.object,disabled:b.default.bool},qa.defaultProps={options:[],selected:"",customStyles:{},disabled:!1};const Za=h.default.footer`
|
|
2290
2290
|
//Set the styles from the default styles object
|
|
2291
|
-
${({theme:e,type:t})=>
|
|
2291
|
+
${({theme:e,type:t})=>R(e,t)}
|
|
2292
2292
|
// custom styles
|
|
2293
2293
|
${({customStyles:e})=>e}
|
|
2294
|
-
`,Da=t.forwardRef((({theme:e,customStyles:t,...l},a)=>g.default.createElement(Za,E({ref:a,theme:e,type:"footer",customStyles:t},l),l.children)));Da.propTypes={theme:b.default.object,customStyles:b.default.object,type:b.default.string},Za.defaultProps={theme:b.default.object},Da.defaultProps={theme:
|
|
2294
|
+
`,Da=t.forwardRef((({theme:e,customStyles:t,...l},a)=>g.default.createElement(Za,E({ref:a,theme:e,type:"footer",customStyles:t},l),l.children)));Da.propTypes={theme:b.default.object,customStyles:b.default.object,type:b.default.string},Za.defaultProps={theme:b.default.object},Da.defaultProps={theme:P,customStyles:null};const Oa=h.default.div`
|
|
2295
2295
|
font-size: 14px;
|
|
2296
2296
|
background-color: transparent;
|
|
2297
2297
|
display: flex;
|
|
@@ -2334,10 +2334,10 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2334
2334
|
background-color: ${({theme:e})=>e.additional.white};
|
|
2335
2335
|
border-bottom: 0.5px solid ${({theme:e})=>e.variant["neutral-3"]};
|
|
2336
2336
|
//Set the styles from the default styles object
|
|
2337
|
-
${({inBuiltCss:e,type:t})=>
|
|
2337
|
+
${({inBuiltCss:e,type:t})=>R(e,t)}
|
|
2338
2338
|
// custom styles
|
|
2339
2339
|
${({customStyles:e})=>e}
|
|
2340
|
-
`,Ya=({type:e,customStyles:t,...a})=>{const o=l.useTheme()||H;return g.default.createElement(Ua,E({theme:o,type:"header",customStyles:t,inBuiltCss:
|
|
2340
|
+
`,Ya=({type:e,customStyles:t,...a})=>{const o=l.useTheme()||H;return g.default.createElement(Ua,E({theme:o,type:"header",customStyles:t,inBuiltCss:P},a),a.children)};Ya.propTypes={customStyles:b.default.object,type:b.default.string},Ya.defaultProps={type:"header",customStyles:null};const Na=h.default.div`
|
|
2341
2341
|
display: flex;
|
|
2342
2342
|
justify-content: ${({showRowsPerPage:e})=>e?"space-between":"center"};
|
|
2343
2343
|
align-items: center;
|
|
@@ -2557,7 +2557,7 @@ svg {
|
|
|
2557
2557
|
.form-check-input {
|
|
2558
2558
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2559
2559
|
}
|
|
2560
|
-
`,Co=({customStyles:e,inBuiltCss:t,type:a="table",sortIcon:o,data:r,tableColumns:i,progressPending:n,defaultSortFieldId:c,handleOnSort:d,sortServer:s,progressComponent:u,responsive:p,conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:b,checkboxColor:h,...y})=>{let x={};if(t&&t[a]&&(x=t[a]),e)for(const t in e)x[t]=e[t];const C=l.useTheme()||H,v=g.default.forwardRef((({onClick:e,...t},l)=>g.default.createElement(xo,{theme:C},g.default.createElement("input",E({type:"checkbox",className:"form-check-input",ref:l,onClick:e},t)))));return g.default.createElement(S.default,E({responsive:p,data:r,columns:i,noHeader:!0,highlightOnHover:!0,sortIcon:o,progressPending:n,customStyles:x,defaultSortFieldId:c,progressComponent:u||void 0,sortServer:s,onSort:(e,t,l)=>{d(e,t,l)},conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:b,selectableRowsComponent:v},y))};Co.propTypes={inBuiltCss:b.default.object,sortIcon:b.default.any,data:b.default.array,tableColumns:b.default.array,progressPending:b.default.bool,progressComponent:b.default.any,defaultSortFieldId:b.default.number,sortServer:b.default.bool,handleOnSort:b.default.any,responsive:b.default.bool,conditionalRowStyles:b.default.array,fixedHeader:b.default.bool,fixedHeaderScrollHeight:b.default.string,customStyle:b.default.object},Co.defaultProps={inBuiltCss:
|
|
2560
|
+
`,Co=({customStyles:e,inBuiltCss:t,type:a="table",sortIcon:o,data:r,tableColumns:i,progressPending:n,defaultSortFieldId:c,handleOnSort:d,sortServer:s,progressComponent:u,responsive:p,conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:b,checkboxColor:h,...y})=>{let x={};if(t&&t[a]&&(x=t[a]),e)for(const t in e)x[t]=e[t];const C=l.useTheme()||H,v=g.default.forwardRef((({onClick:e,...t},l)=>g.default.createElement(xo,{theme:C},g.default.createElement("input",E({type:"checkbox",className:"form-check-input",ref:l,onClick:e},t)))));return g.default.createElement(S.default,E({responsive:p,data:r,columns:i,noHeader:!0,highlightOnHover:!0,sortIcon:o,progressPending:n,customStyles:x,defaultSortFieldId:c,progressComponent:u||void 0,sortServer:s,onSort:(e,t,l)=>{d(e,t,l)},conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:b,selectableRowsComponent:v},y))};Co.propTypes={inBuiltCss:b.default.object,sortIcon:b.default.any,data:b.default.array,tableColumns:b.default.array,progressPending:b.default.bool,progressComponent:b.default.any,defaultSortFieldId:b.default.number,sortServer:b.default.bool,handleOnSort:b.default.any,responsive:b.default.bool,conditionalRowStyles:b.default.array,fixedHeader:b.default.bool,fixedHeaderScrollHeight:b.default.string,customStyle:b.default.object},Co.defaultProps={inBuiltCss:P,sortIcon:g.default.createElement(Q,{icon:"arrow-down",size:11,color:"#333333",style:{transform:"scaleX(0.7) scaleY(0.7) translate(5px, -3px)"}}),data:[],tableColumns:[],progressPending:!1,defaultSortFieldId:null,handleOnSort:(e,t,l)=>{},sortServer:null,progressComponent:void 0,responsive:!0,fixedHeader:!0,fixedHeaderScrollHeight:"100%"};const vo=({title:e,subtitle:t,wrapperStyle:a,imgLink:o,imgStyle:r,iconSize:i})=>{const n=l.useTheme()||H,c={fontSize:"26px",fontWeight:"bold",color:`${n.additional["text-color"]}`,lineHeight:"36px",display:"flex",gap:"14px",alignItems:"flex-start",paddingLeft:"25px"},d={fontSize:"13px",color:`${n.neutral["neutral-2"]}`,lineHeight:"24px",paddingLeft:"25px"};return g.default.createElement("div",{style:a},g.default.createElement("div",{style:c},o?g.default.createElement("img",{src:o,alt:"userIcon",style:r}):g.default.createElement(Q,{icon:"user-icon",size:i,color:n.primary["primary-1"]})," ",g.default.createElement("h4",null,e)),g.default.createElement("div",{style:d},g.default.createElement("p",null,t)))};vo.propTypes={size:b.default.number},vo.defaultProps={iconSize:23};const Ao=l.createGlobalStyle`
|
|
2561
2561
|
@font-face {
|
|
2562
2562
|
font-family: "Averta";
|
|
2563
2563
|
font-weight: 100;
|
|
@@ -2752,14 +2752,14 @@ svg {
|
|
|
2752
2752
|
svg path {
|
|
2753
2753
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2754
2754
|
}
|
|
2755
|
-
`,Ho=({style:e,items:t,variant:a,borderVariant:o,bgVariant:r,variantDisable:i,variantBgDisable:n,allDisabled:c,divider:d,indexPrefix:s,onClick:u,...p})=>(l.useTheme(),g.default.createElement(Bo,E({variant:a,borderVariant:o},p),t?.map(((e,l)=>g.default.createElement(Lo,{key:s.concat(l)},g.default.createElement(Io,{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&&d)))));Ho.propTypes={variant:b.default.string,borderVariant:b.default.string,bgVariant:b.default.string,variantDisable:b.default.string,variantBgDisable:b.default.string,indexPrefix:b.default.string,theme:b.default.object,items:b.default.array,allDisabled:b.default.bool,divider:b.default.any,onClick:b.default.func},Bo.defaultProps={theme:H},Lo.defaultProps={theme:H},Io.defaultProps={theme:H},Ho.defaultProps={theme:H,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white"};const
|
|
2755
|
+
`,Ho=({style:e,items:t,variant:a,borderVariant:o,bgVariant:r,variantDisable:i,variantBgDisable:n,allDisabled:c,divider:d,indexPrefix:s,onClick:u,...p})=>(l.useTheme(),g.default.createElement(Bo,E({variant:a,borderVariant:o},p),t?.map(((e,l)=>g.default.createElement(Lo,{key:s.concat(l)},g.default.createElement(Io,{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&&d)))));Ho.propTypes={variant:b.default.string,borderVariant:b.default.string,bgVariant:b.default.string,variantDisable:b.default.string,variantBgDisable:b.default.string,indexPrefix:b.default.string,theme:b.default.object,items:b.default.array,allDisabled:b.default.bool,divider:b.default.any,onClick:b.default.func},Bo.defaultProps={theme:H},Lo.defaultProps={theme:H},Io.defaultProps={theme:H},Ho.defaultProps={theme:H,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white"};const Po=h.default.div`
|
|
2756
2756
|
display: flex;
|
|
2757
2757
|
justify-content: space-evenly;
|
|
2758
2758
|
align-items: stretch;
|
|
2759
2759
|
height: 42px;
|
|
2760
2760
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
2761
2761
|
border-radius: 3px;
|
|
2762
|
-
`,
|
|
2762
|
+
`,Ro=h.default.div`
|
|
2763
2763
|
display: flex;
|
|
2764
2764
|
justify-content: space-evenly;
|
|
2765
2765
|
flex-grow: 1;
|
|
@@ -2779,7 +2779,7 @@ svg {
|
|
|
2779
2779
|
svg path {
|
|
2780
2780
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:a})=>t?e.variant[a]:e.variant[l]};
|
|
2781
2781
|
}
|
|
2782
|
-
`,To=({style:e,items:t,variant:a,borderVariant:o,bgVariant:r,variantDisable:i,variantBgDisable:n,allDisabled:c,divider:d,indexPrefix:s,onClick:u,variantTPtext:p,variantTPbg:f,...m})=>(l.useTheme(),g.default.createElement(
|
|
2782
|
+
`,To=({style:e,items:t,variant:a,borderVariant:o,bgVariant:r,variantDisable:i,variantBgDisable:n,allDisabled:c,divider:d,indexPrefix:s,onClick:u,variantTPtext:p,variantTPbg:f,...m})=>(l.useTheme(),g.default.createElement(Po,E({variant:a,borderVariant:o},m),t?.map(((e,l)=>g.default.createElement(zo,{key:s.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&&d,icon:e.icon,index:l,label:e.label,variantTPtext:p,variantTPbg:f})))));To.propTypes={variant:b.default.string,borderVariant:b.default.string,bgVariant:b.default.string,variantDisable:b.default.string,variantBgDisable:b.default.string,indexPrefix:b.default.string,theme:b.default.object,items:b.default.array,allDisabled:b.default.bool,divider:b.default.any,onClick:b.default.func,variantTPtext:b.default.string,variantTPbg:b.default.string},Po.defaultProps={theme:H},Ro.defaultProps={theme:H},Wo.defaultProps={theme:H},To.defaultProps={theme:H,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white",variantTPtext:null,variantTPbg:null};const Fo=h.default.div`
|
|
2783
2783
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
2784
2784
|
border: 1.3px solid ${({theme:e,variant:t,borderColor:l})=>l||e.variant[t]};
|
|
2785
2785
|
border-radius: 50%;
|
|
@@ -2863,7 +2863,7 @@ svg {
|
|
|
2863
2863
|
${({customModalHeaderStyle:e})=>e}
|
|
2864
2864
|
`,No=h.default.div`
|
|
2865
2865
|
//Set the styles from the default styles object
|
|
2866
|
-
${({inBuiltCss:e,type:t})=>
|
|
2866
|
+
${({inBuiltCss:e,type:t})=>R(e,t)}
|
|
2867
2867
|
// custom styles
|
|
2868
2868
|
${({customModalBodyStyle:e})=>e}
|
|
2869
2869
|
`,Qo=h.default.div`
|
|
@@ -2875,15 +2875,15 @@ svg {
|
|
|
2875
2875
|
padding-top: 16px;
|
|
2876
2876
|
|
|
2877
2877
|
//Set the styles from the default styles object
|
|
2878
|
-
${({inBuiltCss:e,type:t})=>
|
|
2878
|
+
${({inBuiltCss:e,type:t})=>R(e,t)}
|
|
2879
2879
|
// custom styles
|
|
2880
2880
|
${({customModalFooterStyle:e})=>e}
|
|
2881
2881
|
`,$o=h.default.div`
|
|
2882
2882
|
cursor: pointer;
|
|
2883
|
-
`;try{k.default.setAppElement("#root")}catch(e){k.default.setAppElement("#__next")}const _o=({modalIsOpen:e,toggleModal:t,closeOnOutsideClick:a,headerContent:o,bodyContent:r,footerContent:i,customModalHeaderStyle:n,customModalBodyStyle:c,customModalFooterStyle:d,customWidth:s,customMinWidth:u,customMaxWidth:p,contentStyle:f,contentWrapperStyle:m,customZIndex:b,hideCrossIcon:h,...y})=>{const x={overlay:{zIndex:b,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",minWidth:u,overflow:"hidden",border:`1px solid ${(l.useTheme()||H).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:s&&s,maxWidth:p&&p,...f}};return g.default.createElement("div",null,g.default.createElement(k.default,E({closeTimeoutMS:500,isOpen:e,onRequestClose:a?t:void 0,style:x,contentLabel:"Modal"},y),o&&g.default.createElement(Yo,{style:n,"data-accordion":"contentClickFalse"},o,!h&&g.default.createElement($o,{onClick:t},g.default.createElement(Q,{icon:"close-icon",size:18}))),!o&&!h&&g.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginRight:"24px",paddingTop:"24px"}},g.default.createElement("div",null),g.default.createElement($o,{onClick:t},g.default.createElement(Q,{icon:"close-icon",size:18}))),g.default.createElement(Qo,{contentWrapperStyle:m,"data-accordion":"contentClickFalse"},g.default.createElement(No,{inBuiltCss:
|
|
2883
|
+
`;try{k.default.setAppElement("#root")}catch(e){k.default.setAppElement("#__next")}const _o=({modalIsOpen:e,toggleModal:t,closeOnOutsideClick:a,headerContent:o,bodyContent:r,footerContent:i,customModalHeaderStyle:n,customModalBodyStyle:c,customModalFooterStyle:d,customWidth:s,customMinWidth:u,customMaxWidth:p,contentStyle:f,contentWrapperStyle:m,customZIndex:b,hideCrossIcon:h,...y})=>{const x={overlay:{zIndex:b,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",minWidth:u,overflow:"hidden",border:`1px solid ${(l.useTheme()||H).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:s&&s,maxWidth:p&&p,...f}};return g.default.createElement("div",null,g.default.createElement(k.default,E({closeTimeoutMS:500,isOpen:e,onRequestClose:a?t:void 0,style:x,contentLabel:"Modal"},y),o&&g.default.createElement(Yo,{style:n,"data-accordion":"contentClickFalse"},o,!h&&g.default.createElement($o,{onClick:t},g.default.createElement(Q,{icon:"close-icon",size:18}))),!o&&!h&&g.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginRight:"24px",paddingTop:"24px"}},g.default.createElement("div",null),g.default.createElement($o,{onClick:t},g.default.createElement(Q,{icon:"close-icon",size:18}))),g.default.createElement(Qo,{contentWrapperStyle:m,"data-accordion":"contentClickFalse"},g.default.createElement(No,{inBuiltCss:P,style:c,"data-accordion":"contentClickFalse"},r),i&&g.default.createElement(Ko,{inBuiltCss:P,style:d,"data-accordion":"contentClickFalse"},i))),g.default.createElement(Uo,null))};_o.propTypes={modalIsOpen:b.default.bool,toggleModal:b.default.func,closeOnOutsideClick:b.default.bool,headerContent:b.default.any,hideCrossIcon:b.default.bool,bodyContent:b.default.any,footerContent:b.default.any,customModalHeaderStyle:b.default.object,customModalBodyStyle:b.default.object,customModalFooterStyle:b.default.object,customMinWidth:b.default.string,contentStyle:b.default.object,contentWrapperStyle:b.default.object,customZIndex:b.default.number},_o.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999,hideCrossIcon:!1};const er=h.default.div`
|
|
2884
2884
|
${({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}}}}
|
|
2885
2885
|
}
|
|
2886
|
-
`,tr=({theme:e,toggleSimple:t,contentTrigger:l,contentOverlay:a,popperOptionsP:r,settingsP:i,customStyles:n,...c})=>{let d={},s={};t?(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s}):(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),d={...d,...r},s={...s,...i};const{getArrowProps:u,getTooltipProps:p,setTooltipRef:f,setTriggerRef:m,visible:b}=o.usePopperTooltip({...s},d);return g.default.createElement(g.default.Fragment,null,g.default.createElement("div",{ref:m,style:{width:"fit-content",height:"fit-content"}},l),b&&g.default.createElement(er,E({type:t?"simple-overlay":"overlay",theme:e,ref:f},p({className:"tooltip-container"}),{customStyles:n}),a))};tr.propTypes={theme:b.default.object,contentTrigger:b.default.any,contentOverlay:b.default.any,popperOptionsP:b.default.object,settingsP:b.default.object,customStyles:b.default.object,toggleSimple:b.default.bool},tr.defaultProps={theme:
|
|
2886
|
+
`,tr=({theme:e,toggleSimple:t,contentTrigger:l,contentOverlay:a,popperOptionsP:r,settingsP:i,customStyles:n,...c})=>{let d={},s={};t?(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s}):(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),d={...d,...r},s={...s,...i};const{getArrowProps:u,getTooltipProps:p,setTooltipRef:f,setTriggerRef:m,visible:b}=o.usePopperTooltip({...s},d);return g.default.createElement(g.default.Fragment,null,g.default.createElement("div",{ref:m,style:{width:"fit-content",height:"fit-content"}},l),b&&g.default.createElement(er,E({type:t?"simple-overlay":"overlay",theme:e,ref:f},p({className:"tooltip-container"}),{customStyles:n}),a))};tr.propTypes={theme:b.default.object,contentTrigger:b.default.any,contentOverlay:b.default.any,popperOptionsP:b.default.object,settingsP:b.default.object,customStyles:b.default.object,toggleSimple:b.default.bool},tr.defaultProps={theme:P,contentTrigger:g.default.createElement("div",null,"Trigger"),contentOverlay:g.default.createElement("div",null,"I am the Overlay")};const lr=h.default.div`
|
|
2887
2887
|
position: relative;
|
|
2888
2888
|
height: 10px;
|
|
2889
2889
|
border-radius: 10px;
|
|
@@ -2905,7 +2905,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2905
2905
|
// custom styles
|
|
2906
2906
|
${({progressBarStyle:e})=>e}
|
|
2907
2907
|
|
|
2908
|
-
`,or=({labelStyle:e,progressBarStyle:a,progressWrapStyle:o,label:r,total:i,sections:n,innerContent:c,baseColor:d,baseTitle:s,labelProps:u,props:p})=>{const f=l.useTheme()||H,[m,b]=t.useState([[]]),[h,y]=t.useState(null);t.useEffect((()=>{n&&n.length>0&&b(n)}),[n]);const x=m?.length>0?m?.reduce(((e,t)=>e+t.count),0):0;x>i&&(i=x);const C=m?.length>0?m?.map((e=>e.count/i*100)):[],v=null!==h?m[h].label:s;return g.default.createElement("div",null,g.default.createElement($e,E({inBuiltCss:
|
|
2908
|
+
`,or=({labelStyle:e,progressBarStyle:a,progressWrapStyle:o,label:r,total:i,sections:n,innerContent:c,baseColor:d,baseTitle:s,labelProps:u,props:p})=>{const f=l.useTheme()||H,[m,b]=t.useState([[]]),[h,y]=t.useState(null);t.useEffect((()=>{n&&n.length>0&&b(n)}),[n]);const x=m?.length>0?m?.reduce(((e,t)=>e+t.count),0):0;x>i&&(i=x);const C=m?.length>0?m?.map((e=>e.count/i*100)):[],v=null!==h?m[h].label:s;return g.default.createElement("div",null,g.default.createElement($e,E({inBuiltCss:P,customStyles:e,type:"progressBar-label",text:r},u)),g.default.createElement(lr,E({theme:f,progressWrapStyle:o,color:d,title:v},p),m?.map(((e,t)=>g.default.createElement(ar,E({key:t,onMouseEnter:()=>y(t),onMouseLeave:()=>y(null),progressBarStyle:a,theme:f,color:e.color,style:{width:C[t]+"%",left:0===t?0:C.slice(0,t).reduce(((e,t)=>e+t),0)+"%"}},p)))),g.default.createElement("div",{style:{position:"absolute",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",top:"50%",left:"50%",transform:"translate(-50%, -50%)",cursor:"default"},onMouseEnter:e=>((e,t)=>{e.stopPropagation(),y(t)})(e,h),onMouseLeave:e=>{e.stopPropagation(),y(null)}},c)))};or.propTypes={labelStyle:b.default.object,progressBarStyle:b.default.object,progressWrapStyle:b.default.object,sections:b.default.arrayOf(b.default.shape({color:b.default.string.isRequired,percentage:b.default.number,count:b.default.number.isRequired})).isRequired},or.defaultProps={labelStyle:{},progressBarStyle:{},progressWrapStyle:{},label:"",total:100,innerContent:"",baseColor:"",baseTitle:"Total Task",labelProps:{},props:{}};const rr=h.default.div`
|
|
2909
2909
|
background: transparent;
|
|
2910
2910
|
display: flex;
|
|
2911
2911
|
align-items: center;
|
|
@@ -3092,20 +3092,20 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
3092
3092
|
// overflow-y: scroll !important;
|
|
3093
3093
|
}
|
|
3094
3094
|
|
|
3095
|
-
${({inBuiltCss:e,type:t})=>
|
|
3095
|
+
${({inBuiltCss:e,type:t})=>R(e,"sidebar-container")}
|
|
3096
3096
|
${({customStylesContainer:e})=>e}
|
|
3097
3097
|
|
|
3098
|
-
${({isOpen:e,forceOpen:t,inBuiltCss:l,customStylesContainerOpen:a,customStylesContainerClose:o})=>e||t?{...
|
|
3098
|
+
${({isOpen:e,forceOpen:t,inBuiltCss:l,customStylesContainerOpen:a,customStylesContainerClose:o})=>e||t?{...R(l,"sidebar-container-open"),...a}:{...R(l,"sidebar-container-close"),...o}}
|
|
3099
3099
|
`,zr=h.default.div`
|
|
3100
|
-
${({inBuiltCss:e})=>
|
|
3100
|
+
${({inBuiltCss:e})=>R(e,"sidebar-pusher")}
|
|
3101
3101
|
${({customStylesPusher:e})=>e}
|
|
3102
3102
|
|
|
3103
|
-
${({forceOpen:e,inBuiltCss:t,customStylesPusherOpen:l,customStylesPusherClose:a})=>e?{...
|
|
3103
|
+
${({forceOpen:e,inBuiltCss:t,customStylesPusherOpen:l,customStylesPusherClose:a})=>e?{...R(t,"sidebar-pusher-open"),...l}:{...R(t,"sidebar-pusher-close"),...a}}
|
|
3104
3104
|
|
|
3105
3105
|
@media (max-width: 980px) {
|
|
3106
|
-
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...
|
|
3106
|
+
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...R(e,"sidebar-pusher-mobile"),...l})}
|
|
3107
3107
|
}
|
|
3108
|
-
`,Br=({customStylesContainer:e,customStylesContainerOpen:t,customStylesContainerClose:a,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r,customStylesPusher:i,customStylesPusherOpen:n,customStylesPusherClose:c,customStylesPusherMobile:d,forceOpen:s,forceClose:u,handleSidebar:p,toggleSideBarOpen:f,pinner:m,...b})=>{function h(e){p(e)}const y=l.useTheme()||H;return g.default.createElement(Mr,E({theme:y,inBuiltCss:
|
|
3108
|
+
`,Br=({customStylesContainer:e,customStylesContainerOpen:t,customStylesContainerClose:a,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r,customStylesPusher:i,customStylesPusherOpen:n,customStylesPusherClose:c,customStylesPusherMobile:d,forceOpen:s,forceClose:u,handleSidebar:p,toggleSideBarOpen:f,pinner:m,...b})=>{function h(e){p(e)}const y=l.useTheme()||H;return g.default.createElement(Mr,E({theme:y,inBuiltCss:P,customStyles:e,onMouseEnter:()=>{s||h(!0)},onClick:()=>!f&&h(!0),onMouseLeave:()=>{h(!1),u()},forceOpen:s,isOpen:f},b),g.default.createElement(zr,null),b.children,m)};Br.propTypes={customStylesContainer:b.default.object,customStylesContainerOpen:b.default.object,customStylesContainerClose:b.default.object,customStylesContainerMobileOpen:b.default.object,customStylesContainerMobileClose:b.default.object,customStylesPusher:b.default.object,customStylesPusherOpen:b.default.object,customStylesPusherClose:b.default.object,customStylesPusherMobile:b.default.object,forceOpen:b.default.bool,forceClose:b.default.func,handleSidebar:b.default.func,toggleSideBarOpen:b.default.bool,pinner:b.default.any},Br.defaultProps={forceClose:()=>{},forceOpen:!1};const Lr={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Ir=h.default.div`
|
|
3109
3109
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
3110
3110
|
color: ${({theme:e})=>e.additional.white};
|
|
3111
3111
|
padding: ${({size:e})=>Lr[e].padding};
|
|
@@ -3118,20 +3118,20 @@ ${({forceOpen:e,inBuiltCss:t,customStylesPusherOpen:l,customStylesPusherClose:a}
|
|
|
3118
3118
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
3119
3119
|
box-sizing: border-box;
|
|
3120
3120
|
|
|
3121
|
-
`,Hr=({block:e,style:t,variant:a,...o})=>(l.useTheme(),g.default.createElement(Ir,E({block:e,variant:a,style:t},o),o.children));Hr.propTypes={size:b.default.oneOf(["sm","md","lg"]),variant:b.default.string,block:b.default.bool,theme:b.default.object},Ir.defaultProps={theme:H},Hr.defaultProps={theme:H,variant:"primary-1",block:!1,size:"sm"};const
|
|
3121
|
+
`,Hr=({block:e,style:t,variant:a,...o})=>(l.useTheme(),g.default.createElement(Ir,E({block:e,variant:a,style:t},o),o.children));Hr.propTypes={size:b.default.oneOf(["sm","md","lg"]),variant:b.default.string,block:b.default.bool,theme:b.default.object},Ir.defaultProps={theme:H},Hr.defaultProps={theme:H,variant:"primary-1",block:!1,size:"sm"};const Pr={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Rr=h.default.div`
|
|
3122
3122
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
3123
3123
|
background: ${({theme:e})=>e.additional.white};
|
|
3124
|
-
padding: ${({size:e})=>
|
|
3124
|
+
padding: ${({size:e})=>Pr[e].padding};
|
|
3125
3125
|
border: 1px solid ${({theme:e,variant:t})=>e.variant[t]};
|
|
3126
3126
|
border-radius: 42px;
|
|
3127
|
-
font-size: ${({size:e})=>
|
|
3127
|
+
font-size: ${({size:e})=>Pr[e].fontSize};
|
|
3128
3128
|
font-weight: 600;
|
|
3129
3129
|
display: flex;
|
|
3130
3130
|
align-items: center;
|
|
3131
3131
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
3132
3132
|
box-sizing: border-box;
|
|
3133
3133
|
|
|
3134
|
-
`,Wr=({block:e,style:t,variant:a,...o})=>(l.useTheme(),g.default.createElement(
|
|
3134
|
+
`,Wr=({block:e,style:t,variant:a,...o})=>(l.useTheme(),g.default.createElement(Rr,E({block:e,variant:a,style:t},o),o.children));Wr.propTypes={size:b.default.oneOf(["sm","md","lg"]),variant:b.default.string,block:b.default.bool,theme:b.default.object},Rr.defaultProps={theme:H},Wr.defaultProps={theme:H,variant:"primary-1",block:!1,size:"sm"};const Tr={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},Fr=h.default.div`
|
|
3135
3135
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
3136
3136
|
color: ${({theme:e,textColor:t})=>t||e.bgColor};
|
|
3137
3137
|
border-radius: 13.5px;
|
|
@@ -3176,7 +3176,7 @@ overflow: hidden;
|
|
|
3176
3176
|
${({isActive:e,headerStyle:t,activeHeaderStyle:l})=>e?l:t}
|
|
3177
3177
|
`,Jr=h.default.div`
|
|
3178
3178
|
${({tabContentStyle:e})=>e}
|
|
3179
|
-
`,Ur=({tabs:e,activeTab:t,setActiveTab:a,tabWrapperStyle:o,headerWrapperStyle:r,headerStyle:i,dividerProps:n,tabContentStyle:c,extraContent:d,activeHeaderStyle:s})=>{const u=l.useTheme()||H;return g.default.createElement(Or,{tabWrapperStyle:o},g.default.createElement(Gr,{theme:u,headerWrapperStyle:r},e.map(((e,l)=>g.default.createElement(Xr,{theme:u,onClick:()=>a(l),active:l===t,key:e?.title+l,isActive:l===t,headerStyle:i,activeHeaderStyle:s},e.title))),d),g.default.createElement(
|
|
3179
|
+
`,Ur=({tabs:e,activeTab:t,setActiveTab:a,tabWrapperStyle:o,headerWrapperStyle:r,headerStyle:i,dividerProps:n,tabContentStyle:c,extraContent:d,activeHeaderStyle:s})=>{const u=l.useTheme()||H;return g.default.createElement(Or,{tabWrapperStyle:o},g.default.createElement(Gr,{theme:u,headerWrapperStyle:r},e.map(((e,l)=>g.default.createElement(Xr,{theme:u,onClick:()=>a(l),active:l===t,key:e?.title+l,isActive:l===t,headerStyle:i,activeHeaderStyle:s},e.title))),d),g.default.createElement(Pa,n),e.map(((e,l)=>l===t&&g.default.createElement(Jr,{tabContentStyle:c,key:l},e.content))))};Ur.propTypes={tabs:b.default.array,tabWrapperStyle:b.default.object,headerWrapperStyle:b.default.object,headerStyle:b.default.object,dividerProps:b.default.object,tabContentStyle:b.default.object,activeTab:b.default.number,setActiveTab:b.default.func,activeHeaderStyle:b.default.object},Ur.defaultProps={tabs:[],activeTab:0,tabWrapperStyle:{},headerStyle:{backgroundColor:"transparent",color:H.variant["primary-2"],fontWeight:"normal"},tabContentStyle:{},headerWrapperStyle:{},dividerProps:{},activeHeaderStyle:{color:H.variant["primary-1"],backgroundColor:W("#2A50FD",.05),fontWeight:"bold"}};const Yr=h.default.div`
|
|
3180
3180
|
.notification {
|
|
3181
3181
|
background: ${({theme:e})=>e.additional.white};
|
|
3182
3182
|
transition: 0.3s ease;
|
|
@@ -3330,4 +3330,4 @@ overflow: hidden;
|
|
|
3330
3330
|
background: ${({theme:e,bg:t})=>t?e.variant[t]:e.additional.white};
|
|
3331
3331
|
font-size: ${({size:e})=>_r[e].fontSize};
|
|
3332
3332
|
line-height: ${({size:e})=>_r[e].lineHeight};
|
|
3333
|
-
`,ti=({size:e,children:t,bg:a,text:o,...r})=>{const i=l.useTheme()||H;return g.default.createElement(ei,E({theme:i,bg:a,text:o,size:e},r),g.default.createElement(Ao,{theme:i}),t)};ti.propTypes={size:b.default.oneOf(["xs","sm","md","lg"]),text:b.default.string,bg:b.default.string,children:b.default.any,theme:b.default.object},ti.defaultProps={size:"md"},exports.Accordion=$,exports.AccordionSB=_,exports.ActionContainer=wa,exports.ActionItem=Ea,exports.Alert=le,exports.ArrowBar=we,exports.Avatar=ze,exports.AvatarSB=Re,exports.Banner=Te,exports.Breadcrumb=Qe,exports.ButtonPopup=zo,exports.Card=j,exports.CardRef=Z,exports.CheckBoxInput=ut,exports.ChipsInput=rt,exports.ColorInput=mt,exports.Comment=pa,exports.Content=ma,exports.CountryCodedPhoneInput=ht,exports.DarkSecondaryLink=ur,exports.DateSelect=Bt,exports.DateTime=Ft,exports.Divider=Ra,exports.DocumentCard=J,exports.DotPulseLoader=()=>{const e=l.useTheme()||H;return g.default.createElement(oe,{activeTheme:e},g.default.createElement("div",{className:"dot-pulse"}))},exports.Drawer=Wa,exports.DropdownSelect=Ot,exports.DropzoneInput=_t,exports.EditableInput=rl,exports.ErrorBoundary=Ta,exports.FilterChip=qa,exports.Footer=Da,exports.FooterContent=({variant:e,textColor:t,size:l,width:a,footerWidth:o,customStyles:r,...i})=>{const n=(new Date).getFullYear();return g.default.createElement(Oa,E({variant:e,textColor:t,footerWidth:o,customStyles:r},i),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Premise HQ"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"All Rights Restricted ",n," ©")),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Terms of use"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"Privacy Policy")))},exports.FormComponent=({formData:e,customStyles:l,...a})=>{const o=e=>{switch(e.type){case"header":return(e=>g.default.createElement(t.Fragment,null,g.default.createElement(Ya,E({},e,a),e.children),e))(e);case"label":return(e=>g.default.createElement($e,E({style:{marginBottom:"8px",paddingBottom:"0"}},e,a)))(e);case"text":return(e=>g.default.createElement(Ll,E({},e,a)))(e);case"textArea":return(e=>g.default.createElement(Gl,E({},e,a)))(e);case"number":return(e=>g.default.createElement(bl,E({},e,a)))(e);case"radio":return(e=>g.default.createElement(El,E({key:101*Math.random()|0},e,a)))(e);case"checkBox":return(e=>g.default.createElement(ut,E({},e,a)))(e);case"singleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"singleSelect"},e,a)))(e);case"multiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"multiSelect"},e,a)))(e);case"asyncSingleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncSingleSelect"},e,a)))(e);case"asyncMultiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncMultiSelect"},e,a)))(e);case"signature":return(e=>g.default.createElement(jl,E({},e,a)))(e);case"fileUpload":return(e=>g.default.createElement(_t,E({},e,a)))(e);case"date":return(e=>g.default.createElement(Bt,E({},e,a)))(e);case"paginationTypeTwo":return(e=>g.default.createElement(uo,E({},e,a)))(e);case"toggle":return(e=>g.default.createElement(aa,E({},e,a)))(e);case"icon":return(e=>g.default.createElement(Q,E({},e,a)))(e);case"roundedLoader":return(e=>g.default.createElement(se,E({},e,a)))(e);case"alert":return(e=>g.default.createElement(le,E({},e,a)))(e);case"banner":return(e=>g.default.createElement(Te,E({},e,a)))(e);case"divider":return(e=>g.default.createElement(Ra,E({},e,a)))(e);case"headerComponent":case"headerComponent":return(e=>g.default.createElement(vo,E({},e,a)))(e);case"documentCard":return(e=>g.default.createElement(J,E({},e,a)))(e);case"imageUploader":return(e=>g.default.createElement(sl,E({},e,a)))(e);case"accordion":return(e=>g.default.createElement($,E({},e,a)))(e);case"content":return(e=>g.default.createElement(ma,E({},e,a)))(e);case"rating":return(e=>g.default.createElement(yo,E({},e,a)))(e);case"buttonPrimary":return(e=>g.default.createElement(ge,E({},e,a)))(e);case"buttonSecondary":return(e=>g.default.createElement(xe,E({},e,a)))(e);case"buttonTiny":return(e=>g.default.createElement(ve,E({},e,a)))(e);case"buttonLink":return(e=>g.default.createElement(fe,E({},e,a)))(e);case"search":return(e=>g.default.createElement(Il,E({},e,a)))(e);case"table":return(e=>g.default.createElement(Co,E({},e,a)))(e);case"passwordInput":return(e=>g.default.createElement(Cl,E({},e,a)))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Va,{defaultThemeColor:H},g.default.createElement(Ia,{onSubmit:()=>{},customStyles:l},e.map(((e,t)=>e.length>1?g.default.createElement(za,null,e.map(((t,l)=>g.default.createElement(Ba,{cols:e.length},o(t))))):o(e[0]))))))},exports.FormContainer=Va,exports.FormWrapper=Ia,exports.GroupAvatars=ko,exports.GroupButtons=Ho,exports.GroupButtonsPopup=To,exports.GroupStatusCircle=Oo,exports.Header=Ya,exports.HeaderComponent=vo,exports.HyperLink=Jo,exports.Icon=Q,exports.Image=ke,exports.ImageUploader=sl,exports.Label=$e,exports.LightSecondaryLink=fr,exports.LinkButton=fe,exports.Loader=ne,exports.ModalComp=_o,exports.MultiColumnDiv=Ba,exports.MultiColumnWrapper=za,exports.Navbar=({headerContent:e,bodyContent:a,toggleSideBarOpen:o,headerStyles:r,selectedStyle:i,notSelectedStyle:n,customStylesNameHover:c,listElementStyle:d,customSelectCardColor:s,selectedAppPath:u,setSelectedAppPath:p,setSelectedAppPageId:f,setParentId:m,setRouterObject:b,notificationCircleStyles:h})=>{const y=l.useTheme()||H,[x,C]=t.useState(null),[v,A]=t.useState(!1),[w,S]=t.useState([]);let k=a?.filter((e=>!0===e.visibleAsMenu&&"bottom"===e.type.split("-")[1])).length;t.useEffect((()=>{S(u?.split("/")||[]),b({});let e=u?.split("/")||[],t=a&&a.find((t=>e[1]===t.path?.split("/")[1]));E(t),m(t?.id||null)}),[u]),t.useEffect((()=>{!o&&A(!1),!o&&C(null)}),[o]);const E=e=>{if(e?.path===u){f(e?.id||null);let t={...e},l=e?.queryParams;l&&(t.path=e.path+l,t.link=e.link+l),b(t||null)}else e?.routes&&e?.routes.length>0&&e.routes.forEach((e=>E(e)))},V=(e,t,l)=>{let a=e?.path.split("/"),o=a.length;if(e.routes&&e.routes.length>0){let r=e.routes.filter((e=>!0===e.visibleAsMenu)).length>0;return g.default.createElement(_,{key:e?.id+t,showIcon:!!r,contentToggle:g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",marginLeft:`${l}px`},onClick:()=>{e?.queryParams?!r&&p(e.path,e.queryParams):!r&&p(e.path,"")}},g.default.createElement("span",{style:{visibility:3===o&&w[2]===a[2]?"visible":"hidden",marginRight:"16px",width:"7px",height:"7px",borderRadius:"50%",backgroundColor:y.additional.white,flexShrink:0}}),g.default.createElement("span",{style:{fontWeight:3===o&&w[2]===a[2]?"bold":"normal"}}," ",e?.link)),isAccordionOpen:u.includes(e.path),setContentIsOpen:()=>{},toggleIconAnimation:!0,content:g.default.createElement("div",null,e.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>V(e,t,l+8)))),customStylesAccordionContainer:mr,customStylesAccordionToggle:{cursor:"pointer",...br},customStylesAccordionContent:gr,showIconInfo:!1,customWrapperStyles:hr})}return g.default.createElement(Vr,{listElementStyle:d,key:e?.id+t,onClick:()=>{p(e.path,e?.queryParams?e.queryParams:"")},theme:y},g.default.createElement("span",{className:"selected-disk",style:{visibility:o<=3&&u===e?.path&&w[w.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"visible":"hidden",marginRight:"16px"}}),g.default.createElement("span",{className:"link",style:{marginLeft:l-8+"px",padding:"4px 8px",borderRadius:"4px",backgroundColor:o>3&&u===e?.path?d?.selectedChildBG||y.additional.white:"transparent",fontWeight:o<=3&&u===e?.path&&w[w.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"bold":"normal",color:y.variant.white}}," ",e?.link))};return g.default.createElement(wr,{onClick:()=>A(!0),onMouseEnter:()=>A(!0),onMouseLeave:()=>{C(null),A(!1)},toggleSideBarOpen:o},g.default.createElement(kr,{theme:y,headerStyles:r,toggleSideBarOpen:o},e),g.default.createElement(Er,{toggleSideBarOpen:o,staticLayerNo:k},a&&a?.filter((e=>!0===e.visibleAsMenu))?.map(((e,t)=>g.default.createElement("div",{className:"service-layer",key:e?.value+t,onClick:()=>{C(t)},style:{backgroundColor:e?.value?.toLowerCase()===w[1]?.toLowerCase()?s:"transparent"}},"static"!==e.type.split("-")[0]?g.default.createElement(_,{index:t,underMaintenance:e.maintenance,isAccordionOpen:t===x||v&&e?.value?.toLowerCase()===w[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===w[1]?.toLowerCase(),customSelectCardColor:s,customStylesAccordionContainer:{...yr,padding:"0px 0px 0px 0px"},customStylesAccordionToggle:{cursor:e.maintenance?"not-allowed":"pointer",...xr},customStylesAccordionContent:Cr,contentToggle:g.default.createElement(Re,{selectedStyle:{minWidth:"36px",minHeight:"36px",...i},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...n},toggleName:o,customStylesName:{...vr,color:e.maintenance?y.variant["neutral-3"]:y.variant.white},customStylesNameHover:c,size:"MD",user:{userName:e?.label,url:e?.logo,appNameShortForm:e?.appNameShortForm},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:y.variant["neutral-3"]}):a.length-1===t?g.default.createElement(Q,{icon:"person",size:20,color:y.variant["primary-1"],customstyles:{backgroundColor:"white",borderRadius:"50%",padding:"8px",boxSizing:"content-box"}}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===w[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),content:g.default.createElement("div",{style:Ar},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>V(e,t,0))))}):g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center"}},g.default.createElement(Re,{selectedStyle:{minWidth:"36px",minHeight:"36px",...i},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...n},toggleName:!1,customStylesName:vr,customStylesNameHover:c,size:"MD",user:{userName:e?.label,url:e?.logo},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:y.variant["neutral-3"]}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===w[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),e.element?e.element:g.default.createElement("a",{href:e.path,target:e.target||"_blank",rel:"noreferrer",style:{color:e.maintenance?y.variant["neutral-3"]:y.variant.white,cursor:e.maintenance?"not-allowed":"pointer",...Sr}},e.label)))))))},exports.NumericInput=bl,exports.Overlay=tr,exports.OverlayOptionContainer=Sa,exports.OverlayOptionItemLabel=ka,exports.PageContent=ba,exports.Pagination=eo,exports.PaginationDefault=lo,exports.PaginationTypeTwo=uo,exports.PasswordInput=Cl,exports.PrimaryButton=ge,exports.PrimaryStatusChip=Hr,exports.ProgressBar=or,exports.ProgressSteps=dr,exports.RadioInput=El,exports.Rating=yo,exports.RoundedLoader=se,exports.SearchInput=Il,exports.SecondaryButton=xe,exports.SecondaryStatusChip=Wr,exports.Sidebar=Br,exports.SignatureInput=jl,exports.SlimPrimaryStatusChip=jr,exports.SlimSecondaryStatusChip=Dr,exports.StatusCircle=jo,exports.StyledCentralBar=ya,exports.StyledClearSearch=ha,exports.StyledCreateRow=Ca,exports.StyledRow=va,exports.StyledRowSearch=ga,exports.StyledSearchRow=Aa,exports.StyledWarning=xa,exports.SubmitButtonContainer=Ma,exports.SubmitComponent=({formData:e,onSubmit:l,onReset:a,style:o,...r})=>{const i=e=>{switch(e.type){case"submit":return(e=>g.default.createElement(ge,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>g.default.createElement(xe,{block:e.block,disabled:r.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Ma,{style:o},e&&e.map(((e,t)=>e.map(((e,t)=>i(e)))))))},exports.Table=Co,exports.Tabs=Ur,exports.TextArea=Gl,exports.TextInput=Ll,exports.TimeInput=$l,exports.TinyButton=ve,exports.ToastProvider=e=>{const[l,a]=t.useState([]),o=(e,t,l,o)=>{a((a=>[...a,{id:o||$r(),content:t,type:e,localTimeout:l}]))},r=e=>a((t=>t.filter((t=>t.id!==e)))),i=t.useMemo((()=>({open:o,close:r})),[]),[n,c]=t.useState(!1);return t.useEffect((()=>(c(!0),()=>c(!1))),[]),g.default.createElement(Qr.Provider,{value:i},e.children,n?f.createPortal(g.default.createElement(Kr,null,g.default.createElement("div",{className:`notification-container ${e.position}`},l.map((t=>g.default.createElement(Nr,{key:t.id,type:t.type,position:e.position,timeout:e.timeout,localTimeout:t.localTimeout,close:()=>r(t.id)},t.content))))),document.body):null)},exports.ToggleSwitch=aa,exports.Tooltip=Xe,exports.Typography=ti,exports.additionalColors=I,exports.createDarker=T,exports.defaultStyles=R,exports.defaultThemeColor=H,exports.getDefaultStyles=P,exports.graphColor=L,exports.hexToRGB=W,exports.neutralColor=z,exports.primaryColor=V,exports.shadeColor=B,exports.uiColor=M,exports.useToast=()=>t.useContext(Qr);
|
|
3333
|
+
`,ti=({size:e,children:t,bg:a,text:o,...r})=>{const i=l.useTheme()||H;return g.default.createElement(ei,E({theme:i,bg:a,text:o,size:e},r),g.default.createElement(Ao,{theme:i}),t)};ti.propTypes={size:b.default.oneOf(["xs","sm","md","lg"]),text:b.default.string,bg:b.default.string,children:b.default.any,theme:b.default.object},ti.defaultProps={size:"md"},exports.Accordion=$,exports.AccordionSB=_,exports.ActionContainer=wa,exports.ActionItem=Ea,exports.Alert=le,exports.ArrowBar=we,exports.Avatar=ze,exports.AvatarSB=Pe,exports.Banner=Te,exports.Breadcrumb=Qe,exports.ButtonPopup=zo,exports.Card=j,exports.CardRef=Z,exports.CheckBoxInput=ut,exports.ChipsInput=rt,exports.ColorInput=mt,exports.Comment=pa,exports.Content=ma,exports.CountryCodedPhoneInput=ht,exports.DarkSecondaryLink=ur,exports.DateSelect=Bt,exports.DateTime=Ft,exports.Divider=Pa,exports.DocumentCard=J,exports.DotPulseLoader=()=>{const e=l.useTheme()||H;return g.default.createElement(oe,{activeTheme:e},g.default.createElement("div",{className:"dot-pulse"}))},exports.Drawer=Wa,exports.DropdownSelect=Ot,exports.DropzoneInput=_t,exports.EditableInput=rl,exports.ErrorBoundary=Ta,exports.FilterChip=qa,exports.Footer=Da,exports.FooterContent=({variant:e,textColor:t,size:l,width:a,footerWidth:o,customStyles:r,...i})=>{const n=(new Date).getFullYear();return g.default.createElement(Oa,E({variant:e,textColor:t,footerWidth:o,customStyles:r},i),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Premise HQ"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"All Rights Restricted ",n," ©")),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Terms of use"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"Privacy Policy")))},exports.FormComponent=({formData:e,customStyles:l,...a})=>{const o=e=>{switch(e.type){case"header":return(e=>g.default.createElement(t.Fragment,null,g.default.createElement(Ya,E({},e,a),e.children),e))(e);case"label":return(e=>g.default.createElement($e,E({style:{marginBottom:"8px",paddingBottom:"0"}},e,a)))(e);case"text":return(e=>g.default.createElement(Ll,E({},e,a)))(e);case"textArea":return(e=>g.default.createElement(Gl,E({},e,a)))(e);case"number":return(e=>g.default.createElement(bl,E({},e,a)))(e);case"radio":return(e=>g.default.createElement(El,E({key:101*Math.random()|0},e,a)))(e);case"checkBox":return(e=>g.default.createElement(ut,E({},e,a)))(e);case"singleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"singleSelect"},e,a)))(e);case"multiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"multiSelect"},e,a)))(e);case"asyncSingleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncSingleSelect"},e,a)))(e);case"asyncMultiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncMultiSelect"},e,a)))(e);case"signature":return(e=>g.default.createElement(jl,E({},e,a)))(e);case"fileUpload":return(e=>g.default.createElement(_t,E({},e,a)))(e);case"date":return(e=>g.default.createElement(Bt,E({},e,a)))(e);case"paginationTypeTwo":return(e=>g.default.createElement(uo,E({},e,a)))(e);case"toggle":return(e=>g.default.createElement(aa,E({},e,a)))(e);case"icon":return(e=>g.default.createElement(Q,E({},e,a)))(e);case"roundedLoader":return(e=>g.default.createElement(se,E({},e,a)))(e);case"alert":return(e=>g.default.createElement(le,E({},e,a)))(e);case"banner":return(e=>g.default.createElement(Te,E({},e,a)))(e);case"divider":return(e=>g.default.createElement(Pa,E({},e,a)))(e);case"headerComponent":case"headerComponent":return(e=>g.default.createElement(vo,E({},e,a)))(e);case"documentCard":return(e=>g.default.createElement(J,E({},e,a)))(e);case"imageUploader":return(e=>g.default.createElement(sl,E({},e,a)))(e);case"accordion":return(e=>g.default.createElement($,E({},e,a)))(e);case"content":return(e=>g.default.createElement(ma,E({},e,a)))(e);case"rating":return(e=>g.default.createElement(yo,E({},e,a)))(e);case"buttonPrimary":return(e=>g.default.createElement(ge,E({},e,a)))(e);case"buttonSecondary":return(e=>g.default.createElement(xe,E({},e,a)))(e);case"buttonTiny":return(e=>g.default.createElement(ve,E({},e,a)))(e);case"buttonLink":return(e=>g.default.createElement(fe,E({},e,a)))(e);case"search":return(e=>g.default.createElement(Il,E({},e,a)))(e);case"table":return(e=>g.default.createElement(Co,E({},e,a)))(e);case"passwordInput":return(e=>g.default.createElement(Cl,E({},e,a)))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Va,{defaultThemeColor:H},g.default.createElement(Ia,{onSubmit:()=>{},customStyles:l},e.map(((e,t)=>e.length>1?g.default.createElement(za,null,e.map(((t,l)=>g.default.createElement(Ba,{cols:e.length},o(t))))):o(e[0]))))))},exports.FormContainer=Va,exports.FormWrapper=Ia,exports.GroupAvatars=ko,exports.GroupButtons=Ho,exports.GroupButtonsPopup=To,exports.GroupStatusCircle=Oo,exports.Header=Ya,exports.HeaderComponent=vo,exports.HyperLink=Jo,exports.Icon=Q,exports.Image=ke,exports.ImageUploader=sl,exports.Label=$e,exports.LightSecondaryLink=fr,exports.LinkButton=fe,exports.Loader=ne,exports.ModalComp=_o,exports.MultiColumnDiv=Ba,exports.MultiColumnWrapper=za,exports.Navbar=({headerContent:e,bodyContent:a,toggleSideBarOpen:o,headerStyles:r,selectedStyle:i,notSelectedStyle:n,customStylesNameHover:c,listElementStyle:d,customSelectCardColor:s,selectedAppPath:u,setSelectedAppPath:p,setSelectedAppPageId:f,setParentId:m,setRouterObject:b,notificationCircleStyles:h})=>{const y=l.useTheme()||H,[x,C]=t.useState(null),[v,A]=t.useState(!1),[w,S]=t.useState([]);let k=a?.filter((e=>!0===e.visibleAsMenu&&"bottom"===e.type.split("-")[1])).length;t.useEffect((()=>{S(u?.split("/")||[]),b({});let e=u?.split("/")||[],t=a&&a.find((t=>e[1]===t.path?.split("/")[1]));E(t),m(t?.id||null)}),[u]),t.useEffect((()=>{!o&&A(!1),!o&&C(null)}),[o]);const E=e=>{if(e?.path===u){f(e?.id||null);let t={...e},l=e?.queryParams;l&&(t.path=e.path+l,t.link=e.link+l),b(t||null)}else e?.routes&&e?.routes.length>0&&e.routes.forEach((e=>E(e)))},V=(e,t,l)=>{let a=e?.path.split("/"),o=a.length;if(e.routes&&e.routes.length>0){let r=e.routes.filter((e=>!0===e.visibleAsMenu)).length>0;return g.default.createElement(_,{key:e?.id+t,showIcon:!!r,contentToggle:g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",marginLeft:`${l}px`},onClick:()=>{e?.queryParams?!r&&p(e.path,e.queryParams):!r&&p(e.path,"")}},g.default.createElement("span",{style:{visibility:3===o&&w[2]===a[2]?"visible":"hidden",marginRight:"16px",width:"7px",height:"7px",borderRadius:"50%",backgroundColor:y.additional.white,flexShrink:0}}),g.default.createElement("span",{style:{fontWeight:3===o&&w[2]===a[2]?"bold":"normal"}}," ",e?.link)),isAccordionOpen:u.includes(e.path),setContentIsOpen:()=>{},toggleIconAnimation:!0,content:g.default.createElement("div",null,e.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>V(e,t,l+8)))),customStylesAccordionContainer:mr,customStylesAccordionToggle:{cursor:"pointer",...br},customStylesAccordionContent:gr,showIconInfo:!1,customWrapperStyles:hr})}return g.default.createElement(Vr,{listElementStyle:d,key:e?.id+t,onClick:()=>{p(e.path,e?.queryParams?e.queryParams:"")},theme:y},g.default.createElement("span",{className:"selected-disk",style:{visibility:o<=3&&u===e?.path&&w[w.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"visible":"hidden",marginRight:"16px"}}),g.default.createElement("span",{className:"link",style:{marginLeft:l-8+"px",padding:"4px 8px",borderRadius:"4px",backgroundColor:o>3&&u===e?.path?d?.selectedChildBG||y.additional.white:"transparent",fontWeight:o<=3&&u===e?.path&&w[w.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"bold":"normal",color:y.variant.white}}," ",e?.link))};return g.default.createElement(wr,{onClick:()=>A(!0),onMouseEnter:()=>A(!0),onMouseLeave:()=>{C(null),A(!1)},toggleSideBarOpen:o},g.default.createElement(kr,{theme:y,headerStyles:r,toggleSideBarOpen:o},e),g.default.createElement(Er,{toggleSideBarOpen:o,staticLayerNo:k},a&&a?.filter((e=>!0===e.visibleAsMenu))?.map(((e,t)=>g.default.createElement("div",{className:"service-layer",key:e?.value+t,onClick:()=>{C(t)},style:{backgroundColor:e?.value?.toLowerCase()===w[1]?.toLowerCase()?s:"transparent"}},"static"!==e.type.split("-")[0]?g.default.createElement(_,{index:t,underMaintenance:e.maintenance,isAccordionOpen:t===x||v&&e?.value?.toLowerCase()===w[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===w[1]?.toLowerCase(),customSelectCardColor:s,customStylesAccordionContainer:{...yr,padding:"0px 0px 0px 0px"},customStylesAccordionToggle:{cursor:e.maintenance?"not-allowed":"pointer",...xr},customStylesAccordionContent:Cr,contentToggle:g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...i},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...n},toggleName:o,customStylesName:{...vr,color:e.maintenance?y.variant["neutral-3"]:y.variant.white},customStylesNameHover:c,size:"MD",user:{userName:e?.label,url:e?.logo,appNameShortForm:e?.appNameShortForm},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:y.variant["neutral-3"]}):a.length-1===t?g.default.createElement(Q,{icon:"person",size:20,color:y.variant["primary-1"],customstyles:{backgroundColor:"white",borderRadius:"50%",padding:"8px",boxSizing:"content-box"}}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===w[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),content:g.default.createElement("div",{style:Ar},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>V(e,t,0))))}):g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center"}},g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...i},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...n},toggleName:!1,customStylesName:vr,customStylesNameHover:c,size:"MD",user:{userName:e?.label,url:e?.logo},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:y.variant["neutral-3"]}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===w[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),e.element?e.element:g.default.createElement("a",{href:e.path,target:e.target||"_blank",rel:"noreferrer",style:{color:e.maintenance?y.variant["neutral-3"]:y.variant.white,cursor:e.maintenance?"not-allowed":"pointer",...Sr}},e.label)))))))},exports.NumericInput=bl,exports.Overlay=tr,exports.OverlayOptionContainer=Sa,exports.OverlayOptionItemLabel=ka,exports.PageContent=ba,exports.Pagination=eo,exports.PaginationDefault=lo,exports.PaginationTypeTwo=uo,exports.PasswordInput=Cl,exports.PrimaryButton=ge,exports.PrimaryStatusChip=Hr,exports.ProgressBar=or,exports.ProgressSteps=dr,exports.RadioInput=El,exports.Rating=yo,exports.RoundedLoader=se,exports.SearchInput=Il,exports.SecondaryButton=xe,exports.SecondaryStatusChip=Wr,exports.Sidebar=Br,exports.SignatureInput=jl,exports.SlimPrimaryStatusChip=jr,exports.SlimSecondaryStatusChip=Dr,exports.StatusCircle=jo,exports.StyledCentralBar=ya,exports.StyledClearSearch=ha,exports.StyledCreateRow=Ca,exports.StyledRow=va,exports.StyledRowSearch=ga,exports.StyledSearchRow=Aa,exports.StyledWarning=xa,exports.SubmitButtonContainer=Ma,exports.SubmitComponent=({formData:e,onSubmit:l,onReset:a,style:o,...r})=>{const i=e=>{switch(e.type){case"submit":return(e=>g.default.createElement(ge,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>g.default.createElement(xe,{block:e.block,disabled:r.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Ma,{style:o},e&&e.map(((e,t)=>e.map(((e,t)=>i(e)))))))},exports.Table=Co,exports.Tabs=Ur,exports.TextArea=Gl,exports.TextInput=Ll,exports.TimeInput=$l,exports.TinyButton=ve,exports.ToastProvider=e=>{const[l,a]=t.useState([]),o=(e,t,l,o)=>{a((a=>[...a,{id:o||$r(),content:t,type:e,localTimeout:l}]))},r=e=>a((t=>t.filter((t=>t.id!==e)))),i=t.useMemo((()=>({open:o,close:r})),[]),[n,c]=t.useState(!1);return t.useEffect((()=>(c(!0),()=>c(!1))),[]),g.default.createElement(Qr.Provider,{value:i},e.children,n?f.createPortal(g.default.createElement(Kr,null,g.default.createElement("div",{className:`notification-container ${e.position}`},l.map((t=>g.default.createElement(Nr,{key:t.id,type:t.type,position:e.position,timeout:e.timeout,localTimeout:t.localTimeout,close:()=>r(t.id)},t.content))))),document.body):null)},exports.ToggleSwitch=aa,exports.Tooltip=Xe,exports.Typography=ti,exports.additionalColors=I,exports.createDarker=T,exports.defaultStyles=P,exports.defaultThemeColor=H,exports.getDefaultStyles=R,exports.graphColor=L,exports.hexToRGB=W,exports.neutralColor=z,exports.primaryColor=V,exports.shadeColor=B,exports.uiColor=M,exports.useToast=()=>t.useContext(Qr);
|