groundfloor-react-ui 1.2.65 → 1.2.66
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 +2 -2
- package/dist/index.js +27 -27
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -801,7 +801,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
801
801
|
display: flex;
|
|
802
802
|
margin-bottom: 15px;
|
|
803
803
|
position: relative;
|
|
804
|
-
`,ot=({wrap:e,block:l,style:a,variant:n,variantSeparator:c,appLogo:s,separator:d,items:p,onClick:m,isPrimary:u,collapse:g,folderIcon:f,iconMargin:
|
|
804
|
+
`,ot=({wrap:e,block:l,style:a,variant:n,variantSeparator:c,appLogo:s,separator:d,items:p,onClick:m,isPrimary:u,collapse:g,folderIcon:f,folderIconProps:h,iconMargin:y,...x})=>{const v=b()||R,C=o(null),[A,w]=r(void 0),S=()=>{w(C?.current?.scrollWidth<C?.current?.offsetWidth)};i((()=>{S()}),[p]),i((()=>{if(!e)return window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)}),[]);const k=p.map(((e,l)=>t.createElement(et,{key:l},0!==l||s?t.createElement("div",{className:"breadcrumb-icon-separator"},d):null,t.createElement(tt,{id:e.id,theme:v,onClick:()=>{e.href&&m(e.href)},variant:n,href:e.href,"data-title":e.label},e.label)))),E=p.slice(1,p.length-3).map(((e,l)=>t.createElement(lt,{key:l},f?t.createElement("div",{style:{marginRight:"10px",marginTop:"2.3px"}},t.createElement(Q,V({icon:"folder-icon",size:17,transform:"translate(0px,-0.5px)"},h))):null,t.createElement(tt,{id:e.id,theme:v,onClick:()=>{e.href&&m(e.href)},variant:n,href:e.href,"data-title":e.label},e.label)))),z=p?1==g?p.length<=4?k:t.createElement(t.Fragment,null,t.createElement(et,{key:0},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement(tt,{id:p[0].id,theme:v,onClick:()=>{p[0].href&&m(p[0].href)},variant:n,href:p[0].href,"data-title":p[0].label},p[0].label)),t.createElement(et,null,t.createElement("div",{className:"breadcrumb-icon-separator",style:{marginTop:"-3px"}},d),t.createElement($e,{contentTrigger:t.createElement(Q,{icon:"ellipses-horizontal",size:12,color:"#6B747F",style:{padding:"0 4px",paddingBottom:"6px",marginTop:"-5.5px"}}),customTriggerStyle:{cursor:"pointer",background:"#E2E6F5",borderRadius:"3px"},headerTooltip:"",customHeaderStyle:{marginBottom:"0px"},contentTooltip:t.createElement(t.Fragment,null,E),footerTooltip:"",popperOptionsP:{placement:"bottom"},customContentStyle:{width:"182px",backgroundColor:"white",color:"#6B747F",boxShadow:"0px 6px 40px rgba(56, 66, 100, 0.482627)",display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"16px",gap:"8px",position:"absolute",borderRadius:"3.6px",paddingBottom:"0px",marginTop:"-8.8px",marginLeft:"-6px"},customBodyStyle:{marginBottom:"0px"},customStylesTPArrow:{display:"none"},settings:{closeOnOutsideClick:!0,trigger:"click"}})),t.createElement(et,{key:p.length-3},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement(tt,{id:p[p.length-3].id,theme:v,onClick:()=>{p[p.length-3].href&&m(p[p.length-3].href)},variant:n,href:p[p.length-3].href,"data-title":p[p.length-3].label},p[p.length-3].label)),t.createElement(et,{key:p.length-2},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement(tt,{id:p[p.length-2].id,theme:v,onClick:()=>{p[p.length-2].href&&m(p[p.length-2].href)},variant:n,href:p[p.length-2].href,"data-title":p[p.length-2].label},p[p.length-2].label)),t.createElement(et,{key:p.length-1},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement(tt,{id:p[p.length-1].id,theme:v,onClick:()=>{p[p.length-1].href&&m(p[p.length-1].href)},variant:n,href:p[p.length-1].href,"data-title":p[p.length-1].label},p[p.length-1].label))):k:null;return t.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},t.createElement("div",{style:{display:"flex",position:"absolute"}},t.createElement(_e,V({theme:v,isWrap:e,ref:e?null:C,isBreadcrumbVisible:A,block:l,variant:n,variantSeparator:c,style:a,isPrimary:u,iconMargin:y},x),s&&t.createElement("div",{className:"breadcrumb-icon"},s),z)))};ot.propTypes={variant:e.string,variantSeparator:e.string,onClick:e.func,appLogo:e.any,separator:e.any,items:e.array,block:e.bool,wrap:e.bool,isPrimary:e.bool,collapse:e.bool,folderIcon:e.bool,iconMargin:e.string},ot.defaultProps={variant:"neutral-2",variantSeparator:"neutral-3",block:!1,onClick:void 0,wrap:!1,isPrimary:!0,collapse:!0,folderIcon:!0};const rt=m.label`
|
|
805
805
|
//Set the styles from the default styles object
|
|
806
806
|
${({theme:e,type:t})=>H(e,t)}
|
|
807
807
|
|
|
@@ -2723,7 +2723,7 @@ svg {
|
|
|
2723
2723
|
${({customModalFooterStyle:e})=>e}
|
|
2724
2724
|
`,Br=m.div`
|
|
2725
2725
|
cursor: pointer;
|
|
2726
|
-
`;try{E.setAppElement("#root")}catch(e){E.setAppElement("#__next")}const Ir=({modalIsOpen:e,toggleModal:l,closeOnOutsideClick:o,headerContent:r,bodyContent:
|
|
2726
|
+
`;try{E.setAppElement("#root")}catch(e){E.setAppElement("#__next")}const Ir=({modalIsOpen:e,toggleModal:l,closeOnOutsideClick:o,headerContent:r,bodyContent:i,footerContent:a,customModalHeaderStyle:n,customModalBodyStyle:c,customModalFooterStyle:s,customWidth:d,customMinWidth:p,customMaxWidth:m,contentStyle:u,contentWrapperStyle:g,customZIndex:f,...h})=>{const y={overlay:{zIndex:f,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",transform:"translate(-50%, -50%)",minWidth:p,overflow:"hidden",border:`1px solid ${(b()||R).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:d&&d,maxWidth:m&&m,...u}};return t.createElement("div",null,t.createElement(E,V({closeTimeoutMS:200,isOpen:e,onRequestClose:o?l:void 0,style:y,contentLabel:"Modal"},h),t.createElement(Er,{style:n},r,t.createElement(Br,{onClick:l},t.createElement(Q,{icon:"close-icon",size:18}))),t.createElement(Vr,{contentWrapperStyle:g},t.createElement(zr,{inBuiltCss:P,style:c},i),t.createElement(Mr,{inBuiltCss:P,style:s},a))),t.createElement(kr,null))};Ir.propTypes={modalIsOpen:e.bool,toggleModal:e.func,closeOnOutsideClick:e.bool,headerContent:e.any,bodyContent:e.any,footerContent:e.any,customModalHeaderStyle:e.object,customModalBodyStyle:e.object,customModalFooterStyle:e.object,customMinWidth:e.string,contentStyle:e.object,contentWrapperStyle:e.object,customZIndex:e.number},Ir.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999};const Lr=m.div`
|
|
2727
2727
|
${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.common)o[t]=e.common[t];for(const l in e[t])o[l]=e[t][l],delete e.common[l]}return{...o,...l}}}}
|
|
2728
2728
|
}
|
|
2729
2729
|
`,Wr=({theme:e,toggleSimple:l,contentTrigger:o,contentOverlay:r,popperOptionsP:i,settingsP:a,customStyles:n,...c})=>{let s={},d={};l?(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d}):(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),s={...s,...i},d={...d,...a};const{getArrowProps:p,getTooltipProps:m,setTooltipRef:b,setTriggerRef:u,visible:g}=y({...d},s);return t.createElement(t.Fragment,null,t.createElement("div",{ref:u,style:{width:"fit-content",height:"fit-content"}},o),g&&t.createElement(Lr,V({type:l?"simple-overlay":"overlay",theme:e,ref:b},m({className:"tooltip-container"}),{customStyles:n}),r))};Wr.propTypes={theme:e.object,contentTrigger:e.any,contentOverlay:e.any,popperOptionsP:e.object,settingsP:e.object,customStyles:e.object,toggleSimple:e.bool},Wr.defaultProps={theme:P,contentTrigger:t.createElement("div",null,"Trigger"),contentOverlay:t.createElement("div",null,"I am the Overlay")};const Rr=m.ul`
|
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("dayjs");require("dayjs/locale/es");var i=require("react-datepicker"),n=require("react-select"),c=require("react-select/async"),s=require("react-signature-pad-wrapper"),d=require("react-data-table-component"),u=require("react-modal"),p=require("react-dom");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=f(e),b=f(t),g=f(l),h=f(r),y=f(i),x=f(n),v=f(c),C=f(s),A=f(d),w=f(u);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},S.apply(this,arguments)}const E={"primary-1":"#2E56F4","primary-2":"#081348"},k={error:"#DD0000",success:"#00B904 "},z={"neutral-1":"#39424D","neutral-2":"#929EAC","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},V={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},M={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},B={primary:{...E},ui:{...k},neutral:{...z},shade:{...V},graph:{...M},variant:{...E,...k,...z,...V,...M},textColor:E["primary-2"],bgColor:"#FFFFFF",black:"#000000",border:"#D4D7E3"},I={common:{color:"blue","background-color":`${B.bgColor}`},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${B.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:`${B.neutral["neutral-2"]}`},spinner:{"background-color":`${B.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:`${B.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-family":"Averta","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${B.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:`${B.variant["neutral-5"]}`,borderLeft:`1px solid ${B.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${B.variant["neutral-5"]}`,borderTop:`1px solid ${B.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:`${B.variant.bgColor}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${B.variant["neutral-5"]}`,borderRight:`1px solid ${B.variant["neutral-5"]}`,borderBottom:`1px solid ${B.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${B.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":`${B.bgColor}`,"border-bottom":`0.5px solid ${B.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:`${B.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 ${B.border}`,minWidth:"20px",width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${B.bgColor}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",minWidth:"20px",width:"20px",height:"20px",color:`${B.bgColor}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${B.variant["neutral-2"]}`},"checkbox-option-text":{"font-size":"16px","margin-left":"10px","background-color":`${B.bgColor}`},"toggle-switch-wrapper":{display:"inline-flex","align-items":"center",width:"fit-content"},"toggle-switch-checkbox-label":{position:"absolute",width:"51.52px",height:"20.11px","border-radius":"11.04px",cursor:"pointer"},"dropzone-parent":{height:"86px","padding-left":"8px","padding-right":"8px",display:"flex","justify-content":"center","align-items":"center","font-size":"16px","border-radius":"5.5px",color:` ${B.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${B.textColor}`,"background-color":`${B.bgColor}`,"box-shadow":"0px 5px 15px rgba(33, 55, 71, 0.096946)","border-radius":"5.5px","margin-top":"5px"},"dropzone-text-div":{display:"flex","justify-content":"center","margin-left":"14px",color:`${B.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:`${B.textColor}`,"background-color":`${B.bgColor}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${B.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${B.bgColor}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${B.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":`${B.bgColor}`,"border-radius":"3.6px",border:`1px solid ${B.bgColor}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"tooltip-arrow":{height:"19px",position:"absolute",width:"29px","pointer-events":"none"},"tooltip-arrow-before":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",width:"0"},"tooltip-arrow-after":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",position:"absolute",width:"0"},"tp-cont-bottom-arrow-before":{"border-color":`transparent transparent ${B.bgColor} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${B.bgColor} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${B.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${B.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${B.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${B.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${B.bgColor}`,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${B.bgColor}`,"border-width":"15px 0 15px 19px",left:"3px",top:"0"},"tp-cont-bottom-arrow":{left:"0","margin-top":"-19px",top:"0"},"tp-cont-top-arrow":{bottom:"0",left:"0","margin-bottom":"-19px"},"tp-cont-right-arrow":{left:"0","margin-left":"-24px"},"tp-cont-left-arrow":{"margin-right":"-24px",right:"0"},overlay:{"background-color":`${B.bgColor}`,"border-radius":"3.6px",border:`1px solid ${B.bgColor}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"simple-overlay":{"background-color":`${B.variant["neutral-1"]}`,"border-radius":"6px",border:`1px solid ${B.variant["neutral-1"]}`,color:`${B.bgColor}`,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",transition:"all ease 100ms",display:"flex","flex-direction":"column","z-index":"999999"},"sidebar-container-open":{width:"240px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"240px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px",width:"24px",height:"24px"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},L=(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 R=g.default.div`
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("prop-types"),t=require("react"),l=require("styled-components"),a=require("react-svg"),o=require("react-popper-tooltip"),r=require("dayjs");require("dayjs/locale/es");var i=require("react-datepicker"),n=require("react-select"),c=require("react-select/async"),s=require("react-signature-pad-wrapper"),d=require("react-data-table-component"),u=require("react-modal"),p=require("react-dom");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=f(e),b=f(t),g=f(l),h=f(r),y=f(i),x=f(n),v=f(c),C=f(s),A=f(d),w=f(u);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},S.apply(this,arguments)}const k={"primary-1":"#2E56F4","primary-2":"#081348"},E={error:"#DD0000",success:"#00B904 "},z={"neutral-1":"#39424D","neutral-2":"#929EAC","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},V={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},M={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},B={primary:{...k},ui:{...E},neutral:{...z},shade:{...V},graph:{...M},variant:{...k,...E,...z,...V,...M},textColor:k["primary-2"],bgColor:"#FFFFFF",black:"#000000",border:"#D4D7E3"},I={common:{color:"blue","background-color":`${B.bgColor}`},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${B.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:`${B.neutral["neutral-2"]}`},spinner:{"background-color":`${B.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:`${B.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-family":"Averta","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${B.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:`${B.variant["neutral-5"]}`,borderLeft:`1px solid ${B.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${B.variant["neutral-5"]}`,borderTop:`1px solid ${B.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:`${B.variant.bgColor}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${B.variant["neutral-5"]}`,borderRight:`1px solid ${B.variant["neutral-5"]}`,borderBottom:`1px solid ${B.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${B.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":`${B.bgColor}`,"border-bottom":`0.5px solid ${B.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:`${B.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 ${B.border}`,minWidth:"20px",width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${B.bgColor}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",minWidth:"20px",width:"20px",height:"20px",color:`${B.bgColor}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${B.variant["neutral-2"]}`},"checkbox-option-text":{"font-size":"16px","margin-left":"10px","background-color":`${B.bgColor}`},"toggle-switch-wrapper":{display:"inline-flex","align-items":"center",width:"fit-content"},"toggle-switch-checkbox-label":{position:"absolute",width:"51.52px",height:"20.11px","border-radius":"11.04px",cursor:"pointer"},"dropzone-parent":{height:"86px","padding-left":"8px","padding-right":"8px",display:"flex","justify-content":"center","align-items":"center","font-size":"16px","border-radius":"5.5px",color:` ${B.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${B.textColor}`,"background-color":`${B.bgColor}`,"box-shadow":"0px 5px 15px rgba(33, 55, 71, 0.096946)","border-radius":"5.5px","margin-top":"5px"},"dropzone-text-div":{display:"flex","justify-content":"center","margin-left":"14px",color:`${B.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:`${B.textColor}`,"background-color":`${B.bgColor}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${B.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${B.bgColor}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${B.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":`${B.bgColor}`,"border-radius":"3.6px",border:`1px solid ${B.bgColor}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"tooltip-arrow":{height:"19px",position:"absolute",width:"29px","pointer-events":"none"},"tooltip-arrow-before":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",width:"0"},"tooltip-arrow-after":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",position:"absolute",width:"0"},"tp-cont-bottom-arrow-before":{"border-color":`transparent transparent ${B.bgColor} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${B.bgColor} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${B.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${B.bgColor} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${B.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${B.bgColor} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${B.bgColor}`,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${B.bgColor}`,"border-width":"15px 0 15px 19px",left:"3px",top:"0"},"tp-cont-bottom-arrow":{left:"0","margin-top":"-19px",top:"0"},"tp-cont-top-arrow":{bottom:"0",left:"0","margin-bottom":"-19px"},"tp-cont-right-arrow":{left:"0","margin-left":"-24px"},"tp-cont-left-arrow":{"margin-right":"-24px",right:"0"},overlay:{"background-color":`${B.bgColor}`,"border-radius":"3.6px",border:`1px solid ${B.bgColor}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"simple-overlay":{"background-color":`${B.variant["neutral-1"]}`,"border-radius":"6px",border:`1px solid ${B.variant["neutral-1"]}`,color:`${B.bgColor}`,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",transition:"all ease 100ms",display:"flex","flex-direction":"column","z-index":"999999"},"sidebar-container-open":{width:"240px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"240px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px",width:"24px",height:"24px"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},L=(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 R=g.default.div`
|
|
2
2
|
color: ${({activeTheme:e})=>e.textColor};
|
|
3
3
|
padding-top: 25px;
|
|
4
4
|
padding-bottom: 25px;
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
|
|
139
139
|
// custom styles
|
|
140
140
|
${({customWrapperStyles:e})=>e}
|
|
141
|
-
`,Y=({customStylesAccordionContainer:e,customStylesAccordionTogggle:a,customStylesAccordionIcon:o,customStylesAccordionContent:r,toggleIconAnimation:i,icon:n,content:c,contentToggle:s,toggleState:d,contentIsOpen:u,id:p,customWrapperStyles:f,setContentIsOpen:m,showIconInfo:g,...h})=>{const y=t.useRef(null),x=l.useTheme()||B,[v,C]=t.useState(!1);return t.useEffect((()=>{C(u)}),[u]),b.default.createElement(T,S({customStyles:e,type:"accordionContainer"},h,{header:b.default.createElement(T,S({customStyles:{borderRadius:v?"5px 5px 0 0":"5px",...a},type:"accordionToggle"},h,{onClick:()=>{m(!v),C(!v)},header:s,content:b.default.createElement(U,{theme:x,customWrapperStyles:f},g&&b.default.createElement("span",null,v?"Click to hide":"Click to open"),b.default.createElement("div",{style:i&&v?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",transition:"transform ease 95ms",background:"transparent"}},n||b.default.createElement(J,{icon:"chevron-down",size:11,transform:"translate(0px,-1px)",color:"#A9B1B8"})))})),content:b.default.createElement(H,S({customStyles:r,type:"accordionContent",ref:y},h,{style:v?{height:"auto"}:{height:"0px",border:"none"},id:p,content:c}))}))};Y.propTypes={customStylesAccordionContainer:m.default.object,customStylesAccordionTogggle:m.default.object,customStylesAccordionIcon:m.default.object,customStylesAccordionContent:m.default.object,toggleIconAnimation:m.default.bool,icon:m.default.any,content:m.default.any,contentToggle:m.default.any,toggleState:m.default.func,id:m.default.string,customWrapperStyles:m.default.object,showIconInfo:m.default.bool},Y.defaultProps={contentToggle:"Toggle",content:"Content",toggleIconAnimation:!0,showIconInfo:!0,toggleState:()=>{},id:"",customStylesAccordionContainer:{"margin-bottom":"10px",padding:"0","box-shadow":"none"},customStylesAccordionTogggle:{background:"#F0F3F8",cursor:"pointer",border:"0.5px solid #E2E6F5",color:`${B.variant["primary-2"]}`,"line-height":"17px","font-size":"14px",padding:"10px 17px",display:"flex","align-items":"center","justify-content":"space-between","box-shadow":"none",width:"auto"},customStylesAccordionContent:{"border-radius":"0 0 5px 5px",border:"0.5px solid #E2E6F5","border-top":"none",transition:"height ease 0.3s, transform ease 95ms",overflow:"hidden",padding:"0",width:"auto"}};const N=({customStylesAccordionContainer:e,customStylesAccordionTogggle:a,customStylesAccordionIcon:o,customStylesAccordionContent:r,toggleIconAnimation:i,icon:n,content:c,contentToggle:s,isSelected:d,index:u,handleClick:p,isAccordionOpen:f,id:m,customSelectCardColor:g,...h})=>{const[y,x]=t.useState(!1),v=t.useRef(null),[C,A]=t.useState({}),[w,S]=t.useState({}),[E
|
|
141
|
+
`,Y=({customStylesAccordionContainer:e,customStylesAccordionTogggle:a,customStylesAccordionIcon:o,customStylesAccordionContent:r,toggleIconAnimation:i,icon:n,content:c,contentToggle:s,toggleState:d,contentIsOpen:u,id:p,customWrapperStyles:f,setContentIsOpen:m,showIconInfo:g,...h})=>{const y=t.useRef(null),x=l.useTheme()||B,[v,C]=t.useState(!1);return t.useEffect((()=>{C(u)}),[u]),b.default.createElement(T,S({customStyles:e,type:"accordionContainer"},h,{header:b.default.createElement(T,S({customStyles:{borderRadius:v?"5px 5px 0 0":"5px",...a},type:"accordionToggle"},h,{onClick:()=>{m(!v),C(!v)},header:s,content:b.default.createElement(U,{theme:x,customWrapperStyles:f},g&&b.default.createElement("span",null,v?"Click to hide":"Click to open"),b.default.createElement("div",{style:i&&v?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",transition:"transform ease 95ms",background:"transparent"}},n||b.default.createElement(J,{icon:"chevron-down",size:11,transform:"translate(0px,-1px)",color:"#A9B1B8"})))})),content:b.default.createElement(H,S({customStyles:r,type:"accordionContent",ref:y},h,{style:v?{height:"auto"}:{height:"0px",border:"none"},id:p,content:c}))}))};Y.propTypes={customStylesAccordionContainer:m.default.object,customStylesAccordionTogggle:m.default.object,customStylesAccordionIcon:m.default.object,customStylesAccordionContent:m.default.object,toggleIconAnimation:m.default.bool,icon:m.default.any,content:m.default.any,contentToggle:m.default.any,toggleState:m.default.func,id:m.default.string,customWrapperStyles:m.default.object,showIconInfo:m.default.bool},Y.defaultProps={contentToggle:"Toggle",content:"Content",toggleIconAnimation:!0,showIconInfo:!0,toggleState:()=>{},id:"",customStylesAccordionContainer:{"margin-bottom":"10px",padding:"0","box-shadow":"none"},customStylesAccordionTogggle:{background:"#F0F3F8",cursor:"pointer",border:"0.5px solid #E2E6F5",color:`${B.variant["primary-2"]}`,"line-height":"17px","font-size":"14px",padding:"10px 17px",display:"flex","align-items":"center","justify-content":"space-between","box-shadow":"none",width:"auto"},customStylesAccordionContent:{"border-radius":"0 0 5px 5px",border:"0.5px solid #E2E6F5","border-top":"none",transition:"height ease 0.3s, transform ease 95ms",overflow:"hidden",padding:"0",width:"auto"}};const N=({customStylesAccordionContainer:e,customStylesAccordionTogggle:a,customStylesAccordionIcon:o,customStylesAccordionContent:r,toggleIconAnimation:i,icon:n,content:c,contentToggle:s,isSelected:d,index:u,handleClick:p,isAccordionOpen:f,id:m,customSelectCardColor:g,...h})=>{const[y,x]=t.useState(!1),v=t.useRef(null),[C,A]=t.useState({}),[w,S]=t.useState({}),[k,E]=t.useState(0),z=l.useTheme()||B;return t.useEffect((()=>{d?(A((e=>({...e,backgroundColor:g||z.variant["primary-1"]}))),S((e=>({...e,backgroundColor:g||z.variant["primary-1"],paddingTop:"14px",paddingBottom:"14px",paddingLeft:"6px"})))):(A({}),S({}))}),[d]),t.useEffect((()=>{x(!!f),E(k+1)}),[f]),b.default.createElement(T,{customStyles:{...e,...C},type:"accordionContainer",onClick:()=>{0!==k&&x(!y)},header:b.default.createElement(T,{customStyles:{...a,...w},type:"accordionToggle",header:s,content:b.default.createElement("div",{style:i&&y?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",background:"transparent"}},n)}),content:b.default.createElement(H,{customStyles:r,type:"accordionContent",ref:v,style:y?{height:v.current.scrollHeight+"px"}:{height:"0px",borderBottom:"none"},id:m,content:c})})};N.propTypes={customStylesAccordionContainer:m.default.object,customStylesAccordionTogggle:m.default.object,customStylesAccordionIcon:m.default.object,customStylesAccordionContent:m.default.object,toggleIconAnimation:m.default.bool,icon:m.default.any,content:m.default.any,contentToggle:m.default.any,id:m.default.string},N.defaultProps={contentToggle:"Toggle",content:"Content",id:""};const Q=({customStylesAccordionContainer:e,customStylesAccordionTogggle:l,customStylesAccordionIcon:a,customStylesAccordionContent:o,toggleIconAnimation:r,icon:i,content:n,contentToggle:c,isSelected:s,index:d,handleClick:u,isAccordionOpen:p,disable:f,id:m,...g})=>{const[h,y]=t.useState(!1),x=t.useRef(null),[v,C]=t.useState({}),[A,w]=t.useState({});return t.useEffect((()=>{s?(C((e=>({...e,backgroundColor:"#2444d8"}))),w((e=>({...e,backgroundColor:"#2444d8",paddingTop:"14px",paddingBottom:"14px",paddingLeft:"6px"})))):(C({}),w({}))}),[s]),t.useEffect((()=>{y(!!p)}),[p]),b.default.createElement(T,S({customStyles:{...e,...v},type:"accordionContainer"},g,{header:b.default.createElement(T,S({customStyles:{...l,...A},type:"accordionToggle"},g,{onClick:()=>{f||(h||u(d),y(!h))},header:c,content:b.default.createElement("div",{style:r&&h?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",background:"transparent"}},i)})),content:b.default.createElement(H,S({customStyles:o,type:"accordionContent",ref:x},g,{style:h?{height:x.current.scrollHeight+"px"}:{height:"0px",borderBottom:"none"},id:m,content:n}))}))};Q.propTypes={customStylesAccordionContainer:m.default.object,customStylesAccordionTogggle:m.default.object,customStylesAccordionIcon:m.default.object,customStylesAccordionContent:m.default.object,toggleIconAnimation:m.default.bool,icon:m.default.any,content:m.default.any,contentToggle:m.default.any,id:m.default.string},Q.defaultProps={contentToggle:"Toggle",content:"Content",id:""};const K=g.default.div`
|
|
142
142
|
display: ${({alertIsOpen:e})=>e?"block":"none"};
|
|
143
143
|
background-color: ${({theme:e})=>W(e.variant["graph-4"],.05)};
|
|
144
144
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
@@ -542,7 +542,7 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t i
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
`}
|
|
545
|
-
`,
|
|
545
|
+
`,ke=({size:e,thickness:t,propellerHeight:l,customStyles:a})=>b.default.createElement(Se,{inBuiltCss:I,size:e,thickness:t,propellerHeight:l,customStyles:a,type:"spinner"},b.default.createElement("div",null),b.default.createElement("div",null),b.default.createElement("div",null),b.default.createElement("div",null),b.default.createElement("div",null),b.default.createElement("div",null),b.default.createElement("div",null),b.default.createElement("div",null),b.default.createElement("div",null));ke.propTypes={size:m.default.number,thickness:m.default.number,propellerHeight:m.default.number,customStyles:m.default.object},ke.defaultProps={size:20,thickness:2,propellerHeight:25,customStyles:null};const Ee=l.keyframes`
|
|
546
546
|
0% { transform: rotate(0deg); }
|
|
547
547
|
100% { transform: rotate(360deg); }
|
|
548
548
|
`,ze=g.default.div`
|
|
@@ -555,7 +555,7 @@ border-top:
|
|
|
555
555
|
border-radius: 50%;
|
|
556
556
|
height: ${({size:e})=>e+"px"};
|
|
557
557
|
width: ${({size:e})=>e+"px"};
|
|
558
|
-
animation: ${
|
|
558
|
+
animation: ${Ee} 1s linear infinite;
|
|
559
559
|
|
|
560
560
|
${({customStyles:e})=>e}
|
|
561
561
|
`,Ve=({size:e,thickness:t,customStyles:a})=>{const o=l.useTheme()||B;return b.default.createElement(ze,{theme:o,size:e,thickness:t,customStyles:a})};Ve.propTypes={size:m.default.number,thickness:m.default.number,customStyles:m.default.object},Ve.defaultProps={size:20,thickness:3,customStyles:null};const Me={sm:{fontSize:"14px",padding:"5px 15px"},md:{fontSize:"16px",padding:"5.5px 15px"},lg:{fontSize:"18px",padding:"8px 20px"}},Be=g.default.button`
|
|
@@ -580,7 +580,7 @@ ${({customStyles:e})=>e}
|
|
|
580
580
|
|
|
581
581
|
// custom styles
|
|
582
582
|
${({btnStyle:e})=>e}
|
|
583
|
-
`,Ie=({btnStyle:e,block:t,size:a,style:o,disabled:r,isLoading:i,type:n,id:c,...s})=>{const d=l.useTheme()||B;return b.default.createElement(Be,S({id:c,block:t,defaultStyle:"button",type:n,style:o,size:a,theme:d,disabled:r,btnStyle:e},s),i&&b.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},b.default.createElement(
|
|
583
|
+
`,Ie=({btnStyle:e,block:t,size:a,style:o,disabled:r,isLoading:i,type:n,id:c,...s})=>{const d=l.useTheme()||B;return b.default.createElement(Be,S({id:c,block:t,defaultStyle:"button",type:n,style:o,size:a,theme:d,disabled:r,btnStyle:e},s),i&&b.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},b.default.createElement(ke,{customStyles:{"background-color":d.bgColor},size:16})),s.children)};Ie.propTypes={disabled:m.default.bool,size:m.default.oneOf(["sm","md","lg"]),block:m.default.bool,isLoading:m.default.bool,onClick:m.default.func,type:m.default.string,btnStyle:m.default.object,id:m.default.string},Ie.defaultProps={block:!1,isLoading:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const Le={sm:{fontSize:"14px",padding:"5px 15px"},md:{fontSize:"16px",padding:"5.5px 15px"},lg:{fontSize:"18px",padding:"8px 20px"}},We=g.default.button`
|
|
584
584
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
585
585
|
color: ${({theme:e})=>e.bgColor};
|
|
586
586
|
padding: ${({size:e})=>Le[e].padding};
|
|
@@ -603,7 +603,7 @@ ${({customStyles:e})=>e}
|
|
|
603
603
|
|
|
604
604
|
// custom styles
|
|
605
605
|
${({btnStyle:e})=>e}
|
|
606
|
-
`,Re=({btnStyle:e,block:t,size:a,style:o,disabled:r,isLoading:i,type:n,id:c,...s})=>{const d=l.useTheme()||B;return b.default.createElement(We,S({id:c,block:t,type:n,style:o,size:a,theme:d,disabled:r,btnStyle:e},s),i&&b.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},b.default.createElement(
|
|
606
|
+
`,Re=({btnStyle:e,block:t,size:a,style:o,disabled:r,isLoading:i,type:n,id:c,...s})=>{const d=l.useTheme()||B;return b.default.createElement(We,S({id:c,block:t,type:n,style:o,size:a,theme:d,disabled:r,btnStyle:e},s),i&&b.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},b.default.createElement(ke,{customStyles:{"background-color":d.bgColor},size:16})),s.children)};Re.propTypes={disabled:m.default.bool,size:m.default.oneOf(["sm","md","lg"]),block:m.default.bool,isLoading:m.default.bool,onClick:m.default.func,type:m.default.string,btnStyle:m.default.object,id:m.default.string},Re.defaultProps={block:!1,isLoading:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const Te={sm:{fontSize:"14",padding:"5px 15px"},md:{fontSize:"16",padding:"5.5px 15px"},lg:{fontSize:"18",padding:"8px 20px"}},Pe=g.default.button`
|
|
607
607
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
608
608
|
background: ${({theme:e})=>e.bgColor};
|
|
609
609
|
padding: ${({size:e})=>Te[e].padding};
|
|
@@ -626,7 +626,7 @@ ${({customStyles:e})=>e}
|
|
|
626
626
|
${({theme:e,defaultStyle:t})=>L(e,t)}
|
|
627
627
|
// custom styles
|
|
628
628
|
${({btnStyle:e})=>e}
|
|
629
|
-
`,He=({btnStyle:e,isLoading:t,block:a,size:o,style:r,disabled:i,type:n,theme:c,id:s,...d})=>{const u=l.useTheme()||B;return b.default.createElement(Pe,S({id:s,block:a,defaultStyle:"button",style:r,size:o,disabled:i,type:n,btnStyle:e,isLoading:t,theme:c},d),t&&b.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},b.default.createElement(
|
|
629
|
+
`,He=({btnStyle:e,isLoading:t,block:a,size:o,style:r,disabled:i,type:n,theme:c,id:s,...d})=>{const u=l.useTheme()||B;return b.default.createElement(Pe,S({id:s,block:a,defaultStyle:"button",style:r,size:o,disabled:i,type:n,btnStyle:e,isLoading:t,theme:c},d),t&&b.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},b.default.createElement(ke,{theme:c,customStyles:{"background-color":u.variant["primary-1"]},size:16})," "),d.children," ")};He.propTypes={disabled:m.default.bool,size:m.default.oneOf(["sm","md","lg"]),block:m.default.bool,onClick:m.default.func,theme:m.default.object,type:m.default.string,btnStyle:m.default.object,id:m.default.string},Pe.defaultProps={theme:B},He.defaultProps={theme:B,block:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const je=g.default.button`
|
|
630
630
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
631
631
|
color: ${({theme:e})=>e.bgColor};
|
|
632
632
|
padding: 3px 14px;
|
|
@@ -727,7 +727,7 @@ ${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>L(e,t)}
|
|
|
727
727
|
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>L(e,t)}
|
|
728
728
|
// custom styles
|
|
729
729
|
${({customTriggerStyle:e})=>e}
|
|
730
|
-
`,Ue=({inBuiltCss:e,contentTrigger:t,contentTooltip:a,popperOptionsP:r,settings:i,customStylesTPContainer:n,customStylesTPAbottom:c,customStylesTPAbottomBefore:s,customStylesTPAbottomAfter:d,customStylesTPAtop:u,customStylesTPAtopBefore:p,customStylesTPAtopAfter:f,customStylesTPAright:m,customStylesTPArightBefore:g,customStylesTPArightAfter:h,customStylesTPAleft:y,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v,customStylesTPArrow:C,customStylesTPAbefore:A,customStylesTPAafter:w,customTooltipContentStyle:
|
|
730
|
+
`,Ue=({inBuiltCss:e,contentTrigger:t,contentTooltip:a,popperOptionsP:r,settings:i,customStylesTPContainer:n,customStylesTPAbottom:c,customStylesTPAbottomBefore:s,customStylesTPAbottomAfter:d,customStylesTPAtop:u,customStylesTPAtopBefore:p,customStylesTPAtopAfter:f,customStylesTPAright:m,customStylesTPArightBefore:g,customStylesTPArightAfter:h,customStylesTPAleft:y,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v,customStylesTPArrow:C,customStylesTPAbefore:A,customStylesTPAafter:w,customTooltipContentStyle:k,customContentStyle:E,customHeaderStyle:z,customBodyStyle:V,customTriggerStyle:M,headerTooltip:L,footerTooltip:W,...R})=>{const T=l.useTheme()||B,P={modifiers:[{name:"offset",options:{offset:[0,23]}}],strategy:"absolute",...r},{getArrowProps:H,getTooltipProps:j,setTooltipRef:q,setTriggerRef:F,visible:Z}=o.usePopperTooltip({interactive:!0,...i},P);return b.default.createElement(b.default.Fragment,null,b.default.createElement(Je,{ref:F,inBuiltCss:I,customTriggerStyle:M,style:{width:"fit-content",height:"fit-content",display:"inline-block"}},t),Z&&b.default.createElement(Fe,S({inBuiltCss:I,theme:T,ref:q},j({className:"tooltip-container"}),{customStylesTPContainer:n,customStylesTPAbottom:c,customStylesTPAbottomBefore:s,customStylesTPAbottomAfter:d,customStylesTPAtop:u,customStylesTPAtopBefore:p,customStylesTPAtopAfter:f,customStylesTPAright:m,customStylesTPArightBefore:g,customStylesTPArightAfter:h,customStylesTPAleft:y,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v}),b.default.createElement(Ze,S({inBuiltCss:I},H({className:"tooltip-arrow"}),{customStylesTPArrow:C,customStylesTPAbefore:A,customStylesTPAafter:w})),b.default.createElement(De,S({defaultTooltipContentStyle:"popOver-Content",theme:T,inBuiltCss:I},R,{customContentStyle:E}),b.default.createElement(Oe,S({defaultTooltipHeaderStyle:"popOver-header",theme:T,inBuiltCss:I},R,{customHeaderStyle:z}),L),b.default.createElement(Ge,S({defaultTooltipBodyStyle:"popOver-body",theme:T,inBuiltCss:I},R,{customBodyStyle:V}),a),b.default.createElement(Xe,null,W))))};Ue.propTypes={contentTrigger:m.default.any,headerTooltip:m.default.any,contentTooltip:m.default.any,footerTooltip:m.default.any,popperOptionsP:m.default.object,settings:m.default.object,customContentStyle:m.default.object,customHeaderStyle:m.default.object,customBodyStyle:m.default.object,customStylesTPContainer:m.default.object,customStylesTPAbottom:m.default.object,customStylesTPAbottomBefore:m.default.object,customStylesTPAbottomAfter:m.default.object,customStylesTPAtop:m.default.object,customStylesTPAtopBefore:m.default.object,customStylesTPAtopAfter:m.default.object,customStylesTPAright:m.default.object,customStylesTPArightBefore:m.default.object,customStylesTPArightAfter:m.default.object,customStylesTPAleft:m.default.object,customStylesTPAleftBefore:m.default.object,customStylesTPAleftAfter:m.default.object,customStylesTPArrow:m.default.object,customStylesTPAbefore:m.default.object,customStylesTPAafter:m.default.object,customTriggerStyle:m.default.object},Ue.defaultProps={contentTrigger:b.default.createElement("div",null,"Trigger"),headerTooltip:"Lovely tooltip title",contentTooltip:"There are a lot of things you can do in space, and space essentially is unlimited resources.",footerTooltip:b.default.createElement(He,{size:"sm"},"Next"),customStylesTPContainer:{border:"none"},customTriggerStyle:{}};const Ye=g.default.div`
|
|
731
731
|
background: transparent;
|
|
732
732
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
733
733
|
font-size: ${({isPrimary:e})=>e?"16px":"14px"};
|
|
@@ -801,7 +801,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
801
801
|
display: flex;
|
|
802
802
|
margin-bottom: 15px;
|
|
803
803
|
position: relative;
|
|
804
|
-
`,$e=({wrap:e,block:a,style:o,variant:r,variantSeparator:i,appLogo:n,separator:c,items:s,onClick:d,isPrimary:u,collapse:p,folderIcon:f,iconMargin:
|
|
804
|
+
`,$e=({wrap:e,block:a,style:o,variant:r,variantSeparator:i,appLogo:n,separator:c,items:s,onClick:d,isPrimary:u,collapse:p,folderIcon:f,folderIconProps:m,iconMargin:g,...h})=>{const y=l.useTheme()||B,x=t.useRef(null),[v,C]=t.useState(void 0),A=()=>{C(x?.current?.scrollWidth<x?.current?.offsetWidth)};t.useEffect((()=>{A()}),[s]),t.useEffect((()=>{if(!e)return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)}),[]);const w=s.map(((e,t)=>b.default.createElement(Ne,{key:t},0!==t||n?b.default.createElement("div",{className:"breadcrumb-icon-separator"},c):null,b.default.createElement(Qe,{id:e.id,theme:y,onClick:()=>{e.href&&d(e.href)},variant:r,href:e.href,"data-title":e.label},e.label)))),k=s.slice(1,s.length-3).map(((e,t)=>b.default.createElement(Ke,{key:t},f?b.default.createElement("div",{style:{marginRight:"10px",marginTop:"2.3px"}},b.default.createElement(J,S({icon:"folder-icon",size:17,transform:"translate(0px,-0.5px)"},m))):null,b.default.createElement(Qe,{id:e.id,theme:y,onClick:()=>{e.href&&d(e.href)},variant:r,href:e.href,"data-title":e.label},e.label)))),E=s?1==p?s.length<=4?w:b.default.createElement(b.default.Fragment,null,b.default.createElement(Ne,{key:0},b.default.createElement("div",{className:"breadcrumb-icon-separator"},c),b.default.createElement(Qe,{id:s[0].id,theme:y,onClick:()=>{s[0].href&&d(s[0].href)},variant:r,href:s[0].href,"data-title":s[0].label},s[0].label)),b.default.createElement(Ne,null,b.default.createElement("div",{className:"breadcrumb-icon-separator",style:{marginTop:"-3px"}},c),b.default.createElement(Ue,{contentTrigger:b.default.createElement(J,{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:b.default.createElement(b.default.Fragment,null,k),footerTooltip:"",popperOptionsP:{placement:"bottom"},customContentStyle:{width:"182px",backgroundColor:"white",color:"#6B747F",boxShadow:"0px 6px 40px rgba(56, 66, 100, 0.482627)",display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"16px",gap:"8px",position:"absolute",borderRadius:"3.6px",paddingBottom:"0px",marginTop:"-8.8px",marginLeft:"-6px"},customBodyStyle:{marginBottom:"0px"},customStylesTPArrow:{display:"none"},settings:{closeOnOutsideClick:!0,trigger:"click"}})),b.default.createElement(Ne,{key:s.length-3},b.default.createElement("div",{className:"breadcrumb-icon-separator"},c),b.default.createElement(Qe,{id:s[s.length-3].id,theme:y,onClick:()=>{s[s.length-3].href&&d(s[s.length-3].href)},variant:r,href:s[s.length-3].href,"data-title":s[s.length-3].label},s[s.length-3].label)),b.default.createElement(Ne,{key:s.length-2},b.default.createElement("div",{className:"breadcrumb-icon-separator"},c),b.default.createElement(Qe,{id:s[s.length-2].id,theme:y,onClick:()=>{s[s.length-2].href&&d(s[s.length-2].href)},variant:r,href:s[s.length-2].href,"data-title":s[s.length-2].label},s[s.length-2].label)),b.default.createElement(Ne,{key:s.length-1},b.default.createElement("div",{className:"breadcrumb-icon-separator"},c),b.default.createElement(Qe,{id:s[s.length-1].id,theme:y,onClick:()=>{s[s.length-1].href&&d(s[s.length-1].href)},variant:r,href:s[s.length-1].href,"data-title":s[s.length-1].label},s[s.length-1].label))):w:null;return b.default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},b.default.createElement("div",{style:{display:"flex",position:"absolute"}},b.default.createElement(Ye,S({theme:y,isWrap:e,ref:e?null:x,isBreadcrumbVisible:v,block:a,variant:r,variantSeparator:i,style:o,isPrimary:u,iconMargin:g},h),n&&b.default.createElement("div",{className:"breadcrumb-icon"},n),E)))};$e.propTypes={variant:m.default.string,variantSeparator:m.default.string,onClick:m.default.func,appLogo:m.default.any,separator:m.default.any,items:m.default.array,block:m.default.bool,wrap:m.default.bool,isPrimary:m.default.bool,collapse:m.default.bool,folderIcon:m.default.bool,iconMargin:m.default.string},$e.defaultProps={variant:"neutral-2",variantSeparator:"neutral-3",block:!1,onClick:void 0,wrap:!1,isPrimary:!0,collapse:!0,folderIcon:!0};const _e=g.default.label`
|
|
805
805
|
//Set the styles from the default styles object
|
|
806
806
|
${({theme:e,type:t})=>L(e,t)}
|
|
807
807
|
|
|
@@ -1136,7 +1136,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1136
1136
|
|
|
1137
1137
|
// custom styles
|
|
1138
1138
|
${({customIconContainerStyle:e})=>e};
|
|
1139
|
-
`,Ct=({startDate:e,setStartDate:a,disabled:o,theme:r,startYear:i,endYearRange:n,format:c,placeholderText:s,customIconContainerStyle:d,placeHolder:u,icon:p,value:f,timeBtnStyle:m,onClick:g,onChange:x,wrapperStyle:v,...C})=>{const A=l.useTheme()||B,w=["January","February","March","April","May","June","July","August","September","October","November","December"];for(var
|
|
1139
|
+
`,Ct=({startDate:e,setStartDate:a,disabled:o,theme:r,startYear:i,endYearRange:n,format:c,placeholderText:s,customIconContainerStyle:d,placeHolder:u,icon:p,value:f,timeBtnStyle:m,onClick:g,onChange:x,wrapperStyle:v,...C})=>{const A=l.useTheme()||B,w=["January","February","March","April","May","June","July","August","September","October","November","December"];for(var k=[],E=n||10,z=i||(new Date).getFullYear();z<=(new Date).getFullYear()+E;z++)k.push(z);const V=t.useRef(null),M=t.useRef(null),[I,L]=t.useState(!1),[W,R]=t.useState(!1),[T,P]=t.useState(!1),[H,j]=t.useState(!1),[q,F]=t.useState(e.getFullYear()),[Z,D]=t.useState(w[e.getMonth()]);t.useEffect((()=>{D(w[e.getMonth()]),F(e.getFullYear())}),[e]),t.useEffect((()=>(document.addEventListener("click",O,!0),()=>{document.removeEventListener("click",O,!0)})),[]);const O=e=>{V.current&&!V.current.contains(e.target)&&L(!1)},G=e=>{M.current&&!M.current.contains(e.target)&&R(!1)};t.useEffect((()=>(document.addEventListener("click",G,!0),()=>{document.removeEventListener("click",G,!0)})),[]);const X=f?JSON.parse(f):null,U=h.default(X).format("DD/MM/YYYY");return b.default.createElement(dt,S({disabled:o,theme:r},C,{wrapperStyle:v}),b.default.createElement(y.default,{selected:e,dateFormat:c||"dd/MM/yyyy",useWeekdaysShort:!0,onChange:e=>{a(e);var t;t=h.default(e).format("DD/MM/YYYY"),x(t)},placeholderText:s,adjustDateOnChange:!0,disabled:o,dropdownMode:"select",customInput:b.default.createElement(yt,{value:f,onClick:g,placeholder:u,theme:A},b.default.createElement(xt,S({theme:A,value:f,onClick:g,timeBtnStyle:m},C),f?U:u||"-- : -- --",b.default.createElement(vt,S({theme:A},C,{customIconContainerStyle:d,className:"input-icon"}),p?b.default.createElement(J,{icon:p}):null))),renderCustomHeader:({date:e,changeYear:t,changeMonth:l})=>b.default.createElement(ut,null,b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(ft,{ref:V},b.default.createElement(mt,{onClick:()=>{L(!I),R(!1)}},b.default.createElement("span",{onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),style:{color:`${T?A.variant["primary-1"]:A.textColor}`}},w[e.getMonth()]),b.default.createElement(pt,null,b.default.createElement(J,{icon:"triangle-down",color:T?A.variant["primary-1"]:A.textColor,size:7}))),I&&b.default.createElement(bt,null,b.default.createElement(gt,{theme:r,onMouseEnter:()=>P(!0)},w.map(((e,t)=>b.default.createElement(ht,{selectedMonth:Z,onClick:()=>{P(!1),l(t),L(!1),D(w[t])},key:Math.random()},b.default.createElement("span",{style:{color:`${Z===e?A.variant["primary-1"]:A.textColor}`}},e))))))),b.default.createElement(ft,{ref:M},b.default.createElement(mt,{style:{marginLeft:"28px"},onClick:()=>{R(!W),L(!1)}},b.default.createElement("span",{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),style:{color:`${H?A.variant["primary-1"]:A.textColor}`}},e.getFullYear()),b.default.createElement(pt,null,b.default.createElement(J,{icon:"triangle-down",color:H?A.variant["primary-1"]:A.textColor,size:7}))),W&&b.default.createElement(bt,null,b.default.createElement(gt,{onMouseEnter:()=>j(!0)},k.map(((e,l)=>b.default.createElement(ht,{onClick:()=>{j(!1),t(e),F(e),R(!1)},key:Math.random()},b.default.createElement("span",{style:{color:`${q===e?A.variant["primary-1"]:A.textColor}`}},e)))))))))}))};Ct.propTypes={startDate:m.default.any,setStartDate:m.default.func,disabled:m.default.bool,theme:m.default.object,startYear:m.default.number,endYearRange:m.default.number,format:m.default.string,placeholderText:m.default.string,onChange:m.default.func,icon:m.default.string,timeBtnStyle:m.default.object,wrapperStyle:m.default.object,customIconContainerStyle:m.default.object},Ct.defaultProps={theme:B,startDate:"",setStartDate:()=>{},disabled:!1,onChange:()=>{},icon:"calender"};const At=g.default.div`
|
|
1140
1140
|
.react-datepicker-wrapper {
|
|
1141
1141
|
display: flex;
|
|
1142
1142
|
}
|
|
@@ -1221,7 +1221,7 @@ alignItems: center;
|
|
|
1221
1221
|
|
|
1222
1222
|
// custom styles
|
|
1223
1223
|
${({timeBtnStyle:e})=>e};
|
|
1224
|
-
`,
|
|
1224
|
+
`,kt=g.default.div`
|
|
1225
1225
|
display: flex;
|
|
1226
1226
|
align-items: center;
|
|
1227
1227
|
justify-content: ${({inputType:e})=>"year"!==e?"space-between":"center"};
|
|
@@ -1229,7 +1229,7 @@ padding: 8px;
|
|
|
1229
1229
|
color: ${({theme:e})=>e.bgColor};
|
|
1230
1230
|
// custom styles
|
|
1231
1231
|
${({customHeaderStyle:e})=>e};
|
|
1232
|
-
`,
|
|
1232
|
+
`,Et=g.default.span`
|
|
1233
1233
|
margin-top:-1px;
|
|
1234
1234
|
margin-left: 7px;
|
|
1235
1235
|
float: right;
|
|
@@ -1248,7 +1248,7 @@ float: right;
|
|
|
1248
1248
|
margin-top: 5px;
|
|
1249
1249
|
font-size: 10px;
|
|
1250
1250
|
}
|
|
1251
|
-
`,Mt=({defaultValue:e,onChange:a,inputType:o,onClick:r,placeHolder:i,value:n,disabled:c,startYear:s,endYearRange:d,icon:u,iconColor:p,iconSize:f,customHeaderStyle:m,timeBtnStyle:g,wrapperStyle:x,customIconContainerStyle:v,label:C,labelInline:A,labelStyle:w,required:
|
|
1251
|
+
`,Mt=({defaultValue:e,onChange:a,inputType:o,onClick:r,placeHolder:i,value:n,disabled:c,startYear:s,endYearRange:d,icon:u,iconColor:p,iconSize:f,customHeaderStyle:m,timeBtnStyle:g,wrapperStyle:x,customIconContainerStyle:v,label:C,labelInline:A,labelStyle:w,required:k,errMsg:E,errMsgColor:z,isValid:V,...M})=>{const[I,L]=t.useState(e);let W=I?new Date(I):null;for(var R=[],T=d||10,P=s||(new Date).getFullYear();P<=(new Date).getFullYear()+T;P++)R.push(P);let H={};switch(o){case"date":default:H.dateFormat="dd MMM, yyyy";break;case"month":H.dateFormat="MMMM yyyy",H.showMonthYearPicker=!0;break;case"year":H.dateFormat="yyyy",H.showYearPicker=!0;break;case"datetime-local":H.dateFormat="dd MMM yyyy, hh:mm a",H.showTimeSelect=!0,H.timeFormat="hh:mm a",H.timeIntervals=15,H.timeCaption="Time";break;case"time":H.showTimeSelect=!0,H.showTimeSelectOnly=!0,H.dateFormat="hh:mm a"}const j=l.useTheme()||B;return b.default.createElement(Vt,S({labelInline:A,errMsgColor:z,theme:j},M),b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(et,S({customStyles:w,type:"label-text",labelInline:A,errMsg:E,text:C,style:{display:"flex",marginBottom:""+(A?"":"7px"),paddingBottom:"0px"}},M)),k&&b.default.createElement("div",{style:{marginLeft:"4px",color:`${j.variant.error}`}},"*")),b.default.createElement(At,S({theme:j},M,{wrapperStyle:x,isValid:V}),b.default.createElement(y.default,S({selected:W,disabled:c,customInput:b.default.createElement(wt,{value:n,onClick:r,placeholder:i,theme:j},b.default.createElement(St,S({theme:j,value:n,onClick:r,timeBtnStyle:g},M),n||(i||"-- : -- --"),b.default.createElement(Et,S({theme:j},M,{customIconContainerStyle:v,className:"input-icon"}),u?b.default.createElement(J,{icon:u,color:p,size:f}):null))),onChange:e=>{L(e);var t=null;t="datetime-local"==o?h.default(e).format("DD MMM YYYY, hh:mm A"):"date"==o?h.default(e).format("DD MMM, YYYY"):"year"==o?h.default(e).format("YYYY"):"month"==o?h.default(e).format("MMMM YYYY"):"time"==o?h.default(e).format("hh:mm A"):h.default(e).format("DD MMM, YYYY"),a(t)},showYearDropdown:!0,yearDropdownItemNumber:5,dropdownMode:"select",placeholderText:i},H,{renderCustomHeader:({date:e,changeYear:t,decreaseMonth:l,increaseMonth:a})=>{let r=h.default(e).format("MMMM");return b.default.createElement(kt,S({theme:j},M,{inputType:o,customHeaderStyle:m}),"year"!==o?b.default.createElement("span",{style:{paddingLeft:"10px"},onClick:l},b.default.createElement(J,{icon:"chevron-left",color:"white",size:16})):null,b.default.createElement("b",null,"year"!==o?b.default.createElement("span",{style:{paddingRight:"5px"}},r):null," ",b.default.createElement("span",{className:"calender-year"},b.default.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>t(e)},R.map((e=>b.default.createElement("option",{key:e,value:e},e)))))),"year"!==o?b.default.createElement("span",{style:{paddingRight:"10px"},onClick:a},b.default.createElement(J,{icon:"chevron-right",color:"white",size:16})):null)}}))),E.length>0&&b.default.createElement("div",{className:"err-text"},E))};Mt.propTypes={defaultValue:m.default.string,onChange:m.default.func,inputType:m.default.string,onClick:m.default.func,placeHolder:m.default.string,value:m.default.string,disabled:m.default.bool,startYear:m.default.number,endYearRange:m.default.number,icon:m.default.string,iconColor:m.default.string,iconSize:m.default.number,customHeaderStyle:m.default.object,timeBtnStyle:m.default.object,wrapperStyle:m.default.object,customIconContainerStyle:m.default.object,label:m.default.string,labelStyle:m.default.object,labelInline:m.default.bool,errMsg:m.default.string,errMsgColor:m.default.string,isValid:m.default.bool},Mt.defaultProps={disabled:!1,startYear:new Date,endYearRange:10,iconColor:"black",iconSize:16,value:"",defaultValue:"",onChange:()=>{},label:"",required:!1,labelInline:!1,errMsg:"",isValid:!0};const Bt=g.default.div`
|
|
1252
1252
|
.master-dropdown,
|
|
1253
1253
|
.new-select {
|
|
1254
1254
|
.master-dropdown__menu,
|
|
@@ -1403,7 +1403,7 @@ float: right;
|
|
|
1403
1403
|
margin-left: 6px;
|
|
1404
1404
|
margin-top: -15.5px;
|
|
1405
1405
|
cursor: pointer;
|
|
1406
|
-
`,Wt=({getValue:e,children:t,...l})=>{const a=e().length;return b.default.createElement(n.components.ValueContainer,l,t,a>1&&b.default.createElement("span",{className:"text-more-alt"},"& ",a-1," more"))},Rt=({label:e,labelStyle:t,optionArr:a,selectedValue:o,setSelectedValue:r,placeHolder:i,isClearable:c,isValid:s,height:d,fontSize:u,loadOptions:p,onInputChange:f,clearSelected:m,customWrapperStyles:g,customLabelStyles:h,isRequired:y,dropdownType:x,isDisabled:v,isLoading:C,id:A,iconName:w,iconStyles:
|
|
1406
|
+
`,Wt=({getValue:e,children:t,...l})=>{const a=e().length;return b.default.createElement(n.components.ValueContainer,l,t,a>1&&b.default.createElement("span",{className:"text-more-alt"},"& ",a-1," more"))},Rt=({label:e,labelStyle:t,optionArr:a,selectedValue:o,setSelectedValue:r,placeHolder:i,isClearable:c,isValid:s,height:d,fontSize:u,loadOptions:p,onInputChange:f,clearSelected:m,customWrapperStyles:g,customLabelStyles:h,isRequired:y,dropdownType:x,isDisabled:v,isLoading:C,id:A,iconName:w,iconStyles:k,iconColor:E,iconSize:z,showIndicator:V,leftIcon:M,leftIconColor:L,leftIconSize:W,backgroundColor:R,placeHolderColor:T,indicatorBackgroundColor:P,inputColor:H,menuListFooter:j,customSelectStyles:q,errorMessage:F,...Z})=>{const D=l.useTheme()||B,O=e=>{const t={width:"15px",height:"15px",borderRadius:"2px",padding:"4px",fontSize:"8px",lineHeight:"10px",minWidth:"15px",minHeight:"15px"},l=b.default.createElement("div",{style:{...t,backgroundColor:e?.data?.color??D.primary["primary-1"]}},b.default.createElement(J,{icon:"check-icon",color:"white"})),a=b.default.createElement("div",{style:{...t,backgroundColor:"#e0e7ff"}});return b.default.createElement(n.components.Option,e,b.default.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%"}},e.isSelected?l:a,b.default.createElement("div",{className:"text-main-alt",style:{marginLeft:"10px"}},e.label)))},G=({index:e,...t})=>{const l=t?.data?.label||"Select";return!e&&b.default.createElement("span",{className:"text-main-alt-value"},l)},X={control:(e,t)=>({...e,border:s?R&&s?"1px solid "+R:"1px solid "+D.border:"1px solid "+D.ui.error,minWidth:"singleSelect"===x||"asyncSingleSelect"===x?"120px":"185px",height:`${d}px`,minHeight:`${d}px`,boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:R||D.bgColor}),placeholder:e=>({...e,fontSize:u+"px",marginLeft:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"auto",maxWidth:"89%",marginRight:"0px",color:T||"hsl(0, 0%, 50%)"}),dropdownIndicator:e=>({...e,height:`${d}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"2px",backgroundColor:P||"transparent",borderBottomLeftRadius:"0",borderBottomRightRadius:"4.32px",borderTopLeftRadius:0,borderTopRightRadius:"4.32px",position:"relative",top:"-1px",right:"-1px"}),clearIndicator:e=>({...e,height:`${d}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"0px"}),valueContainer:e=>({...e,display:"flex",justifyContent:"space-between",fontSize:u+"px",marginTop:"-4px"}),indicatorsContainer:e=>({...e,padding:0}),menu:e=>({...e,border:"none",marginTop:"1px",borderTopRightRadius:"0px",borderTopLeftRadius:"0px",outline:"none",boxShadow:"0px 6px 20px rgba(56, 66, 100, 0.15)",borderRadius:"4.32px",fontSize:u+"px",width:"100%",minWidth:"singleSelect"===x||"asyncSingleSelect"===x?"120px":"185px"}),singleValue:e=>({...e,fontSize:u+"px",marginLeft:"0px",width:"auto",maxWidth:"89%",marginRight:0}),multiValue:e=>({...e,marginLeft:"0px",width:"auto"}),input:e=>({...e,fontSize:u+"px",color:H||"hsl(0, 0%, 20%)"}),option:(e,t)=>({...e,backgroundColor:t.isSelected||t.isFocused?D.neutral["neutral-5"]:D.bgColor,padding:"10px",cursor:t.isDisabled?"not-allowed":"pointer",color:"#081348",opacity:t.isDisabled?.6:1,width:"inherit",boxSizing:"initial"}),menuPortal:e=>({...e,zIndex:99999999}),...q},U={DropdownIndicator:e=>{const t=b.default.createElement(n.components.DropdownIndicator,e,b.default.createElement(Lt,null,b.default.createElement(J,{icon:w,color:E,size:z,customstyles:k})));return!0===V?t:null},ValueContainer:Wt,IndicatorSeparator:()=>null,ClearIndicator:e=>b.default.createElement(n.components.ClearIndicator,e,c?b.default.createElement(Lt,{onClick:()=>{m(),e.clearValue()}},b.default.createElement(J,{icon:"cross-icon",color:"black",size:8})):null),MenuList:e=>{const{MenuListHeader:t=null,MenuListFooter:l=null}=e.selectProps.components;return b.default.createElement(n.components.MenuList,e,e.children.length&&t,e.children,e.children.length&&l)},MenuListFooter:j};let Y=null;switch(x){case"multiSelect":Y=b.default.createElement(Tt,S({type:"multiSelect",MultiValue:G,Option:O,value:o,CommonRenderedComponent:U,optionArr:a,placeHolder:i,isDisabled:v,stylesComp:X,setSelectedValue:r,isLoading:C,id:A,isClearable:c},Z));break;case"asyncSingleSelect":Y=b.default.createElement(Pt,S({CommonRenderedComponent:U,loadOptions:p,onInputChange:f,styles:X,placeholder:i,onChange:r,isLoading:C,isDisabled:v,id:A,value:o,isClearable:c},Z));break;case"asyncMultiSelect":Y=b.default.createElement(Pt,S({type:"asyncMultiSelect",CommonRenderedComponent:U,MultiValue:G,Option:O,onChange:r,placeholder:i,styles:X,isDisabled:v,isLoading:C,loadOptions:p,onInputChange:f,id:A,isClearable:c},Z));break;default:Y=b.default.createElement(Tt,S({type:"singleSelect",value:{value:o?o.value:"",label:o?o.label:""},CommonRenderedComponent:U,optionArr:a,placeHolder:i,isDisabled:v,stylesComp:X,setSelectedValue:r,isLoading:C,id:A,isClearable:c},Z))}return b.default.createElement(Bt,{style:g,backgroundColor:R,isValid:s,fontSize:u,theme:D},e&&b.default.createElement(It,{inBuiltCss:I,labelWrapperStyle:"selectComp-label-wrapper",style:h},b.default.createElement(et,{customStyles:t,type:"label-text",text:e,style:{marginBottom:"8px",paddingBottom:"0px"}}),y&&b.default.createElement("div",{style:{marginLeft:"4px",color:`${D.ui.error}`}},"*")),Y,!s&&F)},Tt=({type:e,Option:t,value:l,CommonRenderedComponent:a,MultiValue:o,optionArr:r,placeHolder:i,isDisabled:n,stylesComp:c,setSelectedValue:s,isLoading:d,id:u,isClearable:p,...f})=>{let m={...a};return"multiSelect"===e&&(m.MultiValue=o,m.Option=t),b.default.createElement(x.default,S({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:m,options:r,placeholder:i,isDisabled:n,value:l,styles:c,onChange:s,isLoading:d,id:u,isClearable:p,isMulti:"multiSelect"===e,hideSelectedOptions:!1,closeMenuOnSelect:"multiSelect"!==e,menuShouldScrollIntoView:!1},f))},Pt=({CommonRenderedComponent:e,MultiValue:t,Option:l,type:a,id:o,styles:r,...i})=>{let n={...e};return"asyncMultiSelect"===a&&(n.MultiValue=t,n.Option=l),b.default.createElement(v.default,S({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:n,isMulti:"asyncMultiSelect"===a,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiSelect"!==a,isSearchable:!0,styles:r,menuShouldScrollIntoView:!1},i))};Rt.propTypes={label:m.default.string,labelStyle:m.default.object,optionArr:m.default.array,selectedValue:m.default.object,setSelectedValue:m.default.func,placeHolder:m.default.string,fontSize:m.default.number,clearSelected:m.default.func,loadOptions:m.default.func,onInputChange:m.default.func,customWrapperStyles:m.default.object,customLabelStyles:m.default.object,isRequired:m.default.bool,dropdownType:m.default.string,isDisabled:m.default.bool,isLoading:m.default.bool,isValid:m.default.bool,height:m.default.number,isClearable:m.default.bool,id:m.default.string,iconName:m.default.string,iconColor:m.default.string,iconSize:m.default.number,leftIcon:m.default.string,leftIconColor:m.default.string,leftIconSize:m.default.number,showIndicator:m.default.bool,backgroundColor:m.default.string,placeHolderColor:m.default.string,inputColor:m.default.string,menuListFooter:m.default.any,customSelectStyles:m.default.object},Rt.defaultProps={label:"",labelStyle:{},optionArr:[],selectedValue:{},setSelectedValue:void 0,placeHolder:"Select an option",isValid:!0,isClearable:!1,height:31,fontSize:14,loadOptions:()=>{},onInputChange:()=>{},clearSelected:()=>{},customWrapperStyles:{},customLabelStyles:{},isRequired:!1,dropdownType:"singleSelect",isDisabled:!1,isLoading:!1,id:"",iconName:"triangle-down",iconColor:"black",iconSize:8,leftIcon:"",leftIconColor:"black",leftIconSize:10,showIndicator:!0,customSelectStyles:{}};const Ht=g.default.div`
|
|
1407
1407
|
//Set the styles from the default styles object
|
|
1408
1408
|
${({inBuiltCss:e,defaultStyles:t})=>L(e,t)}
|
|
1409
1409
|
|
|
@@ -1463,7 +1463,7 @@ float: right;
|
|
|
1463
1463
|
align-items: center;
|
|
1464
1464
|
margin: 20px 0px;
|
|
1465
1465
|
font-size: 14px;
|
|
1466
|
-
`;const Gt=({label:e,labelStyle:a,labelInline:o,required:r,message:i,fileArr:n,setFileArr:c,deleteFile:s,customDropzoneStyles:d,customFileStyles:u,customTextStyles:p,customFileNameStyles:f,backgroundColor:m,singleFile:g,messageSize:h,showSupportedFormats:y,file_extensions:x,maxFilesAmount:v,minFilesAmount:C,fileSizeLimit:A,fileSizeNamingConvention:w,errorMessages:
|
|
1466
|
+
`;const Gt=({label:e,labelStyle:a,labelInline:o,required:r,message:i,fileArr:n,setFileArr:c,deleteFile:s,customDropzoneStyles:d,customFileStyles:u,customTextStyles:p,customFileNameStyles:f,backgroundColor:m,singleFile:g,messageSize:h,showSupportedFormats:y,file_extensions:x,maxFilesAmount:v,minFilesAmount:C,fileSizeLimit:A,fileSizeNamingConvention:w,errorMessages:k,suggesionMessage:E,MessagelabelStyle:z,dropValid:V,setDropValid:M,dropzoneContent:L,dropIcon:W,iconColor:R,id:T,customTooltipContentStyle:P,customStylesTPArightBefore:H,customStylesTPArightAfter:j,...q})=>{const F=l.useTheme()||B,[Z,D]=t.useState(!1),O=t.createRef(),[G,X]=t.useState(V),[U,Y]=t.useState("");let N;var Q=x,K=!1,$=y?"All file formats cannot be used with the files you provided.":"",_=(E=y?"The Supported format's are: ":"","");1==g&&(C=1,v=1);var ee="Please upload (min."+C+" to max."+v+")files",te=e=>{_="";let t=[];var l=0,a=n.length;if(a+e.length<C||a+e.length>v){var o="The file size is not uploaded";_=U?.amount,_=void 0!==_?_:o}for(const e of n)console.log("value",e),e.size&&(l+=e.size);if(""==_)for(const[a,n]of Object.entries(e)){K=!0,n.name,l+=n.size;var r=n.name.split(".");r=r[r.length-1],K=Q.includes(r.toLowerCase());var i=1024;("MB"===w||"GB"===w||"TB"===w)&&(i*=1024);var c=Math.round(l/i);if(!1===K&&(_=k?.format,_=_||$),c>A&&K){K=!1;o="The file(s) must be under "+A+" "+w;_=k?.size,_=void 0!==_?_:o}K&&(N=URL.createObjectURL(n),n.path=N,t.push(n))}return _.length>0?(M(!1),X(V),Y(_)):(M(!0),X(V),Y("")),t};function le(e){e.preventDefault(),e.stopPropagation()}function ae(e,t){let l=[...n,...e];return t||(l=l.filter(((e,t,l)=>t===l.findIndex((t=>t.place===e.place&&t.name===e.name))))),c(l),D(!1),l}function oe(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),s(e)}(e)}return b.default.createElement("div",null,b.default.createElement("div",{style:{display:"flex",width:"inherit"}},b.default.createElement(et,S({customStyles:a,type:"label-text",labelInline:o,text:e,style:{display:"flex",marginBottom:`${o?0:"8px"}`,paddingBottom:"0px"}},q)),r&&b.default.createElement("div",{style:{marginLeft:"4px",color:`${F.variant.error}`}},"*")),b.default.createElement(Ht,{theme:F,inBuiltCss:I,defaultStyles:"dropzone-parent",backgroundColor:m,customDropzoneStyles:V?d:{},onDragLeave:function(e){le(e),D(!1)},onDragOver:function(e){le(e),D(!0)},onDrop:function(e){le(e);const{files:t}=e.dataTransfer;var l=te(t);D(!0),q.onFilesAdded(ae(l,g))},onClick:function(){O.current.click()},hover:Z,dropValid:V,fileArr:n},b.default.createElement(qt,S({ref:O,valid:G,dropValid:V,type:"file",id:T,multiple:!g,onChange:function(e){let{files:t}=e.target;D(!1);var l=te(t);l&&q.onFilesAdded(ae(l,g))},onClick:e=>e.target.value=null},q)),V?b.default.createElement(b.default.Fragment,null,W?b.default.createElement(J,{icon:W,color:Z?F.bgColor:R,size:24}):b.default.createElement(J,{icon:"file-upload",color:Z?F.bgColor:F.primary["primary-1"],size:24})):null,b.default.createElement(Ft,{dropValid:V,valid:G,hover:Z,backgroundColor:m,customTextStyles:p,inBuiltCss:I,defaultStyles:"dropzone-text-div"},V?b.default.createElement(b.default.Fragment,null,L?b.default.createElement("div",{style:{color:Z?F.bgColor:null}},L):b.default.createElement("div",null,b.default.createElement("span",{style:{color:Z?F.bgColor:F.primary["primary-1"]}},"Choose a file"," "),b.default.createElement("span",{style:{color:Z?F.bgColor:F.neutral["neutral-2"]}},"or"," "),b.default.createElement("span",{style:{color:Z?F.bgColor:F.textColor}},"drag ",g?"it":"them"," here"))):b.default.createElement("div",null,b.default.createElement("span",{style:{color:F.variant.error}},"Try again!!"," "),b.default.createElement("span",{style:{color:F.textColor}},U||i)))),U===$||k.format?b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(et,S({themeColor:B,customStyles:z,type:"label-text",labelInline:o,text:E,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},q)),b.default.createElement(Ue,{contentTrigger:b.default.createElement("span",null,"read more"),headerTooltip:"",contentTooltip:JSON.stringify(Q),footerTooltip:"",popperOptionsP:{placement:"right"},settings:{closeOnOutsideClick:!0,trigger:"click"},customTriggerStyle:{marginTop:"8px",marginLeft:"4px",textDecoration:"underline",color:F.variant["primary-1"]},customBodyStyle:{wordWrap:"break-word"},customContentStyle:P,customStylesTPArightBefore:H,customStylesTPArightAfter:j})):"The file size is not uploaded"===U?b.default.createElement(et,S({themeColor:B,customStyles:z,type:"label-text",labelInline:o,text:ee,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},q)):"",n?.map(((e,t)=>b.default.createElement(jt,{inBuiltCss:I,defaultStyles:"dropzone-file-div",key:`${e}-${t}`,customFileStyles:u},b.default.createElement(Dt,null,b.default.createElement(J,{icon:"file-icon",color:F.primary["primary-1"]})),(File,b.default.createElement("a",{style:{color:F.variant["primary-1"],marginLeft:"5px"},href:e?.path,target:"_blank",rel:"noreferrer",download:e.name}," ",e.name)),b.default.createElement(Ot,null,e?.otherInfo),b.default.createElement(Zt,{key:101*Math.random()|0,onClick:()=>oe(e)},b.default.createElement("div",{style:{marginRight:"7px"}},b.default.createElement(J,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:F.primary["primary-1"]})),b.default.createElement(J,{icon:"cross-icon",color:F.neutral["neutral-2"],size:13}))))))};Gt.propTypes={onFilesAdded:m.default.func,dropValid:m.default.bool,setDropValid:m.default.func,message:m.default.string,fileArr:m.default.array,setFileArr:m.default.func,customDropzoneStyles:m.default.object,customFileStyles:m.default.object,customTextStyles:m.default.object,customFileNameStyles:m.default.object,backgroundColor:m.default.string,messageSize:m.default.number,maxFilesAmount:m.default.number,minFilesAmount:m.default.number,fileSizeLimit:m.default.number,fileSizeNamingConvention:m.default.string,showSupportedFormats:m.default.bool,file_extensions:m.default.array,errorMessages:m.default.object,suggesionMessage:m.default.any,MessagelabelStyle:m.default.object,id:m.default.string,dropzoneContent:m.default.any,dropIcon:m.default.string,iconColor:m.default.string,singleFile:m.default.bool,customTooltipContentStyle:m.default.object,customStylesTPArightBefore:m.default.object,customStylesTPArightAfter:m.default.object},Gt.defaultProps={onFilesAdded:()=>null,dropValid:!0,message:"",fileArr:[],setFileArr:()=>{},customDropzoneStyles:{},customFileStyles:{},customTextStyles:{},customFileNameStyles:{},messageSize:100,additionalText:"",maxFilesAmount:5,minFilesAmount:1,fileSizeLimit:10,fileSizeNamingConvention:"MB",showSupportedFormats:!0,file_extensions:["doc","docx","jpg","pdf","png","xlsx","xlsr","xls"],errorMessages:{},MessagelabelStyle:{},suggesionMessage:"doc, docx, jpg, pdf, png, xlsx, xlsr, xls (Max 10MB)",id:"",iconColor:"black"};const Xt=g.default.div`
|
|
1467
1467
|
display: contents;
|
|
1468
1468
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1469
1469
|
|
|
@@ -1794,7 +1794,7 @@ float: right;
|
|
|
1794
1794
|
display: flex;
|
|
1795
1795
|
justify-content: center;
|
|
1796
1796
|
cursor: pointer;
|
|
1797
|
-
`,
|
|
1797
|
+
`,kl=({onChange:e,activeColor:a,defaultColor:o,placeholderColor:r,placeholderText:i,customInputStyle:n,pointsArray:c,setPointsArray:s,value:d,setValue:u,valueForSignatureDrawing:p,setValueForSignatureDrawing:f,imageURL:m,setImageURL:g,id:h,...y})=>{const x=l.useTheme()||B,[v,A]=t.useState("default"),[w,S]=t.useState(!1),[k,E]=t.useState(!1),z=t.useRef(null);t.useEffect((()=>{k&&(M(),f(z.current))}),[!0===k]);const V=()=>{u(""),f(z.current),z.current&&z.current.clear(),S(!1),E(!1)},M=()=>(s(z.current.toData()),g(z.current.toDataURL("image/png")),[m,c]);return b.default.createElement(xl,{inBuiltCss:I,defaultParentDivStyle:"signature-parent-div",isMyInputFocused:w,selected:v,activeColor:a,defaultColor:o,theme:x},b.default.createElement(vl,{inBuiltCss:I,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:a,defaultColor:o,selected:v,isMyInputFocused:w,signIcon:!0,theme:x},b.default.createElement(Cl,{activeColor:a,defaultColor:o,isMyInputFocused:w,theme:x,penIcon:!0,onClick:()=>{A("default"),V()}},b.default.createElement(J,{icon:"pen-icon",color:"default"===v?a||x.primary["primary-1"]:x.black})),b.default.createElement(Cl,{activeColor:a,defaultColor:o,theme:x,isMyInputFocused:w,penIcon:!1,onClick:()=>{A("sign"),V()}},b.default.createElement(J,{icon:"sign-icon",color:"default"!==v?a||x.primary["primary-1"]:x.black}))),b.default.createElement(vl,{inBuiltCss:I,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:a,defaultColor:o,theme:x,selected:v,isMyInputFocused:w,signIcon:!1,onTouchStart:()=>{}},"default"===v?b.default.createElement(Al,{inBuiltCss:I,defaultInputStyle:"signature-input-text",placeholder:i,placeholderColor:r,customInputStyle:n,onBlur:()=>S(!1),onFocus:()=>S(!0),id:h,value:d,defaultColor:o,theme:x,onChange:e=>u(e.target.value)}):b.default.createElement(wl,{onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),onClick:()=>{E(!0),M()}},b.default.createElement(C.default,{ref:z,id:h,redrawOnResize:!0,height:75,options:{minWidth:1,maxWidth:1,penColor:"#444444"}})),(d||k)&&b.default.createElement(Sl,{selected:v,onClick:()=>V()},b.default.createElement(J,{icon:"cross-icon",color:o||x.neutral["neutral-3"]}))))};kl.propTypes={activeColor:m.default.string,defaultColor:m.default.string,placeholderColor:m.default.string,placeholderText:m.default.string,customInputStyle:m.default.object,pointsArray:m.default.any,setPointsArray:m.default.func,value:m.default.string,setValue:m.default.func,imageURL:m.default.string,setImageURL:m.default.func,id:m.default.string},kl.defaultProps={customInputStyle:{},placeholderText:"Type your signature here",pointsArray:null,setPointsArray:()=>{},value:"",setValue:()=>{},imageURL:"",setImageURL:()=>{},setValueForSignatureDrawing:()=>{},id:""};const El=g.default.div`
|
|
1798
1798
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1799
1799
|
//Set the styles from the default styles object
|
|
1800
1800
|
${({inBuiltCss:e,defaultWrapperStyle:t})=>L(e,t)}
|
|
@@ -1836,7 +1836,7 @@ float: right;
|
|
|
1836
1836
|
margin-top: 5px;
|
|
1837
1837
|
font-size: 10px;
|
|
1838
1838
|
}
|
|
1839
|
-
`,Bl=b.default.forwardRef((({customStylesForm:e,textAreaStyle:t,labelStyle:a,inputStyle:o,errMsg:r,required:i,label:n,labelInline:c,iconBefore:s,iconAfter:d,isValid:u,rows:p,cols:f,id:m,...g},h)=>{const y=l.useTheme()||B;return b.default.createElement(Ml,S({labelInline:c,customStylesForm:e,theme:y},g),b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(et,S({customStyles:a,type:"label-text",labelInline:c,text:n,errMsg:r,style:{display:"flex",marginBottom:`${c?0:"8px"}`,paddingBottom:"0px"}},g)),i&&b.default.createElement("div",{style:{marginLeft:"4px",color:`${y.variant.error}`}},"*")),b.default.createElement(
|
|
1839
|
+
`,Bl=b.default.forwardRef((({customStylesForm:e,textAreaStyle:t,labelStyle:a,inputStyle:o,errMsg:r,required:i,label:n,labelInline:c,iconBefore:s,iconAfter:d,isValid:u,rows:p,cols:f,id:m,...g},h)=>{const y=l.useTheme()||B;return b.default.createElement(Ml,S({labelInline:c,customStylesForm:e,theme:y},g),b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(et,S({customStyles:a,type:"label-text",labelInline:c,text:n,errMsg:r,style:{display:"flex",marginBottom:`${c?0:"8px"}`,paddingBottom:"0px"}},g)),i&&b.default.createElement("div",{style:{marginLeft:"4px",color:`${y.variant.error}`}},"*")),b.default.createElement(El,S({theme:y,required:i,textAreaStyle:t,isValid:u,inBuiltCss:I,defaultWrapperStyle:"textbox-wrapper"},g),b.default.createElement("div",{className:"input-icon"},s),b.default.createElement(zl,S({ref:h,inputStyle:o,defaultInputStyle:"textarea-wrapper",cols:f,rows:p,inBuiltCss:I,id:m},g,{size:"1"})),b.default.createElement("div",{className:"input-icon"},d)),b.default.createElement("div",{className:"err-text"},r))}));Bl.propTypes={rows:m.default.number,label:m.default.string,required:m.default.bool,labelInline:m.default.bool,errMsg:m.default.string,iconBefore:m.default.any,iconAfter:m.default.any,textAreaStyle:m.default.object,labelStyle:m.default.object,inputStyle:m.default.object,id:m.default.string},Bl.defaultProps={label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textAreaStyle:{},labelStyle:{},inputStyle:{},rows:3,id:""};const Il=g.default.div`
|
|
1840
1840
|
color: #a9b1b8;
|
|
1841
1841
|
font-size: 21px;
|
|
1842
1842
|
border: 1px solid
|
|
@@ -2288,7 +2288,7 @@ float: right;
|
|
|
2288
2288
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
2289
2289
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
2290
2290
|
background: ${({theme:e})=>W(e.primary["primary-1"],.04)};
|
|
2291
|
-
`,
|
|
2291
|
+
`,ka=g.default.button`
|
|
2292
2292
|
font-size: 14px;
|
|
2293
2293
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
2294
2294
|
background: ${({theme:e})=>W(e.variant["neutral-5"],.7)};
|
|
@@ -2305,7 +2305,7 @@ float: right;
|
|
|
2305
2305
|
&:not(:first-child) {
|
|
2306
2306
|
margin-left: 8px;
|
|
2307
2307
|
}
|
|
2308
|
-
`,
|
|
2308
|
+
`,Ea=({options:e,selected:t,onClick:a,customStyles:o,disabled:r,...i})=>{const n=l.useTheme()||B,c=e.map(((e,l)=>b.default.createElement(ka,{theme:n,key:`${e.label}_${l}_${e.value}`,selected:t===e.value,onClick:()=>{a(e.value)},customStyles:o,disabled:r},e.label)));return b.default.createElement(b.default.Fragment,null,c)};Ea.propTypes={options:m.default.array,selected:m.default.string,onClick:m.default.func,customStyles:m.default.object,disabled:m.default.bool},Ea.defaultProps={options:[],selected:"",customStyles:{},disabled:!1};const za=g.default.footer`
|
|
2309
2309
|
//Set the styles from the default styles object
|
|
2310
2310
|
${({theme:e,type:t})=>L(e,t)}
|
|
2311
2311
|
// custom styles
|
|
@@ -2395,7 +2395,7 @@ svg {
|
|
|
2395
2395
|
`}
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
-
`,ja=({theme:e,toggleSet:t,slide:l,color:a,size:o,transform:r,ratingValue:i,starVal:n,hover:c,...s})=>b.default.createElement(Ha,S({theme:e,ratingValue:i,starVal:n,hover:c,toggleSet:t,color:a,size:o,transform:r},s),b.default.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",id:"star_filled","data-name":"star filled",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("defs",null,b.default.createElement("clipPath",{id:"starFilled"},b.default.createElement("path",{id:"Star",d:"M10,15,4.122,18.09l1.123-6.545L.489,6.91l6.572-.955L10,0l2.939,5.955,6.572.955-4.755,4.635,1.123,6.545Z",transform:"translate(2 3)",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"1.5"}))),b.default.createElement("rect",{x:"0",y:"0",fill:"rgb(217,217,217)",width:"100%",height:"100%",clipPath:"url(#starFilled)"}),b.default.createElement("rect",{x:l,y:"0",fill:a,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function qa(e,t){let l=5*e/t;const a=[],o=l;for(let e=0;e<5;e++){if(l-1>=0)a.push("0");else if(l-1<0&&l-1>-1){const e=(24*l-24).toString();a.push(e)}else a.push("-24");l-=1}return{array:a,value:o}}function Fa(e,t){return 100*e/t}const Za=({type:e,customStylesContainer:a,customStylesStar:o,customStylesPercentage:r,color:i,size:n,handleClick:c,transform:s,maxRange:d,value:u,toggleStar:p,toggleSet:f,identifier:m,...g})=>{l.useTheme();const[h,y]=t.useState(void 0),[x,v]=t.useState(void 0),[C,A]=t.useState(void 0),[w,
|
|
2398
|
+
`,ja=({theme:e,toggleSet:t,slide:l,color:a,size:o,transform:r,ratingValue:i,starVal:n,hover:c,...s})=>b.default.createElement(Ha,S({theme:e,ratingValue:i,starVal:n,hover:c,toggleSet:t,color:a,size:o,transform:r},s),b.default.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",id:"star_filled","data-name":"star filled",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement("defs",null,b.default.createElement("clipPath",{id:"starFilled"},b.default.createElement("path",{id:"Star",d:"M10,15,4.122,18.09l1.123-6.545L.489,6.91l6.572-.955L10,0l2.939,5.955,6.572.955-4.755,4.635,1.123,6.545Z",transform:"translate(2 3)",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"1.5"}))),b.default.createElement("rect",{x:"0",y:"0",fill:"rgb(217,217,217)",width:"100%",height:"100%",clipPath:"url(#starFilled)"}),b.default.createElement("rect",{x:l,y:"0",fill:a,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function qa(e,t){let l=5*e/t;const a=[],o=l;for(let e=0;e<5;e++){if(l-1>=0)a.push("0");else if(l-1<0&&l-1>-1){const e=(24*l-24).toString();a.push(e)}else a.push("-24");l-=1}return{array:a,value:o}}function Fa(e,t){return 100*e/t}const Za=({type:e,customStylesContainer:a,customStylesStar:o,customStylesPercentage:r,color:i,size:n,handleClick:c,transform:s,maxRange:d,value:u,toggleStar:p,toggleSet:f,identifier:m,...g})=>{l.useTheme();const[h,y]=t.useState(void 0),[x,v]=t.useState(void 0),[C,A]=t.useState(void 0),[w,k]=t.useState(void 0);t.useEffect((()=>{y(qa(u,d).array),v(qa(u,d).value),A(Fa(u,d))}),[u,d]),t.useEffect((()=>{w?y(qa(w,d).array):(y(qa(u,d).array),v(qa(u,d).value),A(Fa(u,d)))}),[w]);const E=b.default.createElement(b.default.Fragment,null,h?.map(((e,t)=>{const l=20*(t+1);return b.default.createElement(ja,{ratingValue:l,starVal:x,hover:w,toggleSet:f,onClick:f?()=>c(l):null,onMouseEnter:f?()=>{k(l)}:null,onMouseLeave:f?()=>{k(null)}:null,slide:e,color:i,className:"star",size:n,transform:s,key:m?.concat(t),customStyles:o})})));return b.default.createElement(Ta,S({customStyles:a,type:e,size:n},g,{className:"container"}),p?E:b.default.createElement(Pa,{type:e,customStyles:r},C,"%"))};Za.propTypes={customStylesContainer:m.default.object,customStylesStar:m.default.object,customStylesPercentage:m.default.object,type:m.default.string,color:m.default.string,size:m.default.number,transform:m.default.object,handleClick:m.default.func,maxRange:m.default.number,value:m.default.number,toggleStar:m.default.bool,toggleSet:m.default.bool,identifier:m.default.string},Za.defaultProps={customStylesContainer:null,customStylesStar:null,customStylesPercentage:null,type:"star",maxRange:100,value:0,identifier:"ratingKey",toggleStar:!0,toggleSet:!1,color:"#F7B001"};const Da=g.default.div`
|
|
2399
2399
|
.form-check-input {
|
|
2400
2400
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2401
2401
|
}
|
|
@@ -2567,7 +2567,7 @@ svg {
|
|
|
2567
2567
|
justify-content: space-evenly;
|
|
2568
2568
|
flex-grow: 1;
|
|
2569
2569
|
align-items: stretch;
|
|
2570
|
-
`,$a=({label:e,index:t,style:a,items:r,variant:i,borderVariant:n,bgVariant:c,variantDisable:s,variantBgDisable:d,disabled:u,divider:p,indexPrefix:f,onClick:m,icon:g,variantTPtext:h,variantTPbg:y,...x})=>{l.useTheme();const{getArrowProps:v,getTooltipProps:C,setTooltipRef:A,setTriggerRef:w,visible:
|
|
2570
|
+
`,$a=({label:e,index:t,style:a,items:r,variant:i,borderVariant:n,bgVariant:c,variantDisable:s,variantBgDisable:d,disabled:u,divider:p,indexPrefix:f,onClick:m,icon:g,variantTPtext:h,variantTPbg:y,...x})=>{l.useTheme();const{getArrowProps:v,getTooltipProps:C,setTooltipRef:A,setTriggerRef:w,visible:k}=o.usePopperTooltip();return b.default.createElement(b.default.Fragment,null,b.default.createElement(Ka,{ref:w},b.default.createElement(Qa,{variant:i,borderVariant:n,bgVariant:c,variantDisable:s,variantBgDisable:d,disabled:u,onClick:u?null:()=>{m(m)}},g),p),k&&b.default.createElement(Na,S({variantTPtext:h,variantTPbg:y,ref:A},C({className:"tooltip-container"})),e,b.default.createElement("div",v({className:"tooltip-arrow"}))))};$a.propTypes={variant:m.default.string,borderVariant:m.default.string,bgVariant:m.default.string,variantDisable:m.default.string,variantBgDisable:m.default.string,indexPrefix:m.default.string,theme:m.default.object,items:m.default.array,allDisabled:m.default.bool,divider:m.default.any,onClick:m.default.func,variantTPtext:m.default.string,variantTPbg:m.default.string},Ka.defaultProps={theme:B},Qa.defaultProps={theme:B},Na.defaultProps={theme:B},$a.defaultProps={theme:B,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor",variantTPtext:null,variantTPbg:null};const _a=g.default.div`
|
|
2571
2571
|
display: flex;
|
|
2572
2572
|
justify-content: space-evenly;
|
|
2573
2573
|
align-items: stretch;
|
|
@@ -2723,10 +2723,10 @@ svg {
|
|
|
2723
2723
|
${({customModalFooterStyle:e})=>e}
|
|
2724
2724
|
`,Ao=g.default.div`
|
|
2725
2725
|
cursor: pointer;
|
|
2726
|
-
`;try{w.default.setAppElement("#root")}catch(e){w.default.setAppElement("#__next")}const wo=({modalIsOpen:e,toggleModal:
|
|
2726
|
+
`;try{w.default.setAppElement("#root")}catch(e){w.default.setAppElement("#__next")}const wo=({modalIsOpen:e,toggleModal:t,closeOnOutsideClick:a,headerContent:o,bodyContent:r,footerContent:i,customModalHeaderStyle:n,customModalBodyStyle:c,customModalFooterStyle:s,customWidth:d,customMinWidth:u,customMaxWidth:p,contentStyle:f,contentWrapperStyle:m,customZIndex:g,...h})=>{const y={overlay:{zIndex:g,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",transform:"translate(-50%, -50%)",minWidth:u,overflow:"hidden",border:`1px solid ${(l.useTheme()||B).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:d&&d,maxWidth:p&&p,...f}};return b.default.createElement("div",null,b.default.createElement(w.default,S({closeTimeoutMS:200,isOpen:e,onRequestClose:a?t:void 0,style:y,contentLabel:"Modal"},h),b.default.createElement(yo,{style:n},o,b.default.createElement(Ao,{onClick:t},b.default.createElement(J,{icon:"close-icon",size:18}))),b.default.createElement(vo,{contentWrapperStyle:m},b.default.createElement(xo,{inBuiltCss:I,style:c},r),b.default.createElement(Co,{inBuiltCss:I,style:s},i))),b.default.createElement(ho,null))};wo.propTypes={modalIsOpen:m.default.bool,toggleModal:m.default.func,closeOnOutsideClick:m.default.bool,headerContent:m.default.any,bodyContent:m.default.any,footerContent:m.default.any,customModalHeaderStyle:m.default.object,customModalBodyStyle:m.default.object,customModalFooterStyle:m.default.object,customMinWidth:m.default.string,contentStyle:m.default.object,contentWrapperStyle:m.default.object,customZIndex:m.default.number},wo.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999};const So=g.default.div`
|
|
2727
2727
|
${({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}}}}
|
|
2728
2728
|
}
|
|
2729
|
-
`,
|
|
2729
|
+
`,ko=({theme:e,toggleSimple:t,contentTrigger:l,contentOverlay:a,popperOptionsP:r,settingsP:i,customStyles:n,...c})=>{let s={},d={};t?(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d}):(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),s={...s,...r},d={...d,...i};const{getArrowProps:u,getTooltipProps:p,setTooltipRef:f,setTriggerRef:m,visible:g}=o.usePopperTooltip({...d},s);return b.default.createElement(b.default.Fragment,null,b.default.createElement("div",{ref:m,style:{width:"fit-content",height:"fit-content"}},l),g&&b.default.createElement(So,S({type:t?"simple-overlay":"overlay",theme:e,ref:f},p({className:"tooltip-container"}),{customStyles:n}),a))};ko.propTypes={theme:m.default.object,contentTrigger:m.default.any,contentOverlay:m.default.any,popperOptionsP:m.default.object,settingsP:m.default.object,customStyles:m.default.object,toggleSimple:m.default.bool},ko.defaultProps={theme:I,contentTrigger:b.default.createElement("div",null,"Trigger"),contentOverlay:b.default.createElement("div",null,"I am the Overlay")};const Eo=g.default.ul`
|
|
2730
2730
|
display: flex;
|
|
2731
2731
|
justify-content: center;
|
|
2732
2732
|
align-items: center;
|
|
@@ -2804,7 +2804,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2804
2804
|
}
|
|
2805
2805
|
|
|
2806
2806
|
${({customIconWrapperStyles:e})=>e}
|
|
2807
|
-
`,Vo=(e,t,l=1)=>{let a=e;const o=[];for(;a<=t;)o.push(a),a+=l;return o},Mo=({totalRecords:e,pageLimit:a,pageNeighbours:o,onPageChanged:r,currentPageNumber:i})=>{const[n,c]=t.useState(1),[s,d]=t.useState(Math.ceil(e/a)),u=l.useTheme()||B,{width:p}=function(){const[e,l]=t.useState({width:void 0,height:void 0});return t.useEffect((()=>{function e(){l({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[1]),e}();o=p<512?0:p<768?1:o,t.useEffect((()=>{d(Math.ceil(e/a)),f(i)}),[]);const f=t=>{const l=Math.max(0,Math.min(t,s));c(l);r({currentPage:l,totalPages:s,pageLimit:a,totalRecords:e})},m=e=>t=>{t.preventDefault(),f(e)},g=e=>{e.preventDefault(),f(n-2*(o||1)-1)},h=e=>{e.preventDefault(),f(n+2*(o||1)+1)};if(!e||1===s||0===a)return null;const y=(()=>{const e=2*o+3;if(s>e+3){const t=Math.max(2,n-o),l=Math.min(s-1,n+o);let a=Vo(t,l);const r=t>2,i=s-l>1,c=e-(a.length+1);switch(!0){case r&&!i:a=["LEFT",...Vo(t-c,t-1),...a];break;case!r&&i:{const e=Vo(l+1,l+c);a=[...a,...e,"RIGHT"];break}default:a=["LEFT",...a,"RIGHT"]}return[1,...a,s]}return Vo(1,s)})();return b.default.createElement(
|
|
2807
|
+
`,Vo=(e,t,l=1)=>{let a=e;const o=[];for(;a<=t;)o.push(a),a+=l;return o},Mo=({totalRecords:e,pageLimit:a,pageNeighbours:o,onPageChanged:r,currentPageNumber:i})=>{const[n,c]=t.useState(1),[s,d]=t.useState(Math.ceil(e/a)),u=l.useTheme()||B,{width:p}=function(){const[e,l]=t.useState({width:void 0,height:void 0});return t.useEffect((()=>{function e(){l({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[1]),e}();o=p<512?0:p<768?1:o,t.useEffect((()=>{d(Math.ceil(e/a)),f(i)}),[]);const f=t=>{const l=Math.max(0,Math.min(t,s));c(l);r({currentPage:l,totalPages:s,pageLimit:a,totalRecords:e})},m=e=>t=>{t.preventDefault(),f(e)},g=e=>{e.preventDefault(),f(n-2*(o||1)-1)},h=e=>{e.preventDefault(),f(n+2*(o||1)+1)};if(!e||1===s||0===a)return null;const y=(()=>{const e=2*o+3;if(s>e+3){const t=Math.max(2,n-o),l=Math.min(s-1,n+o);let a=Vo(t,l);const r=t>2,i=s-l>1,c=e-(a.length+1);switch(!0){case r&&!i:a=["LEFT",...Vo(t-c,t-1),...a];break;case!r&&i:{const e=Vo(l+1,l+c);a=[...a,...e,"RIGHT"];break}default:a=["LEFT",...a,"RIGHT"]}return[1,...a,s]}return Vo(1,s)})();return b.default.createElement(Eo,{theme:u},b.default.createElement(zo,{onClick:1!==n?m(n-1):null,disabled:1===n,theme:u},b.default.createElement(J,{icon:"triangle-down",transform:"rotate(90deg)",color:u.variant["neutral-3"]}),b.default.createElement("span",{className:"prev-text"}," PREVIOUS")),y.map(((e,t)=>"LEFT"===e?b.default.createElement("li",{key:t,className:"page-item"},b.default.createElement("div",{className:"page-link",onClick:g},b.default.createElement("span",{className:"text"},b.default.createElement(J,{icon:"load-more",color:u.primary["primary-2"],transform:"rotate(90deg)"})),b.default.createElement("span",{className:"icon"},b.default.createElement(J,{icon:"ellipses-horizontal",color:u.primary["primary-2"]}))," ")):"RIGHT"===e?b.default.createElement("li",{key:t,className:"page-item"},b.default.createElement("div",{className:"page-link",onClick:h},b.default.createElement("span",{className:"text"},b.default.createElement(J,{icon:"load-more",color:u.primary["primary-2"],transform:"rotate(-90deg)"})),b.default.createElement("span",{className:"icon"},b.default.createElement(J,{icon:"ellipses-horizontal",color:u.primary["primary-2"]})))):b.default.createElement("li",{key:t,className:"page-item"+(n===e?" active":"")},b.default.createElement("div",{className:"page-link",onClick:m(e)},e)))),b.default.createElement(zo,{onClick:n!==s?m(n+1):null,disabled:n===s,theme:u},b.default.createElement("span",{className:"next-text"}," NEXT"),b.default.createElement(J,{icon:"triangle-down",transform:"rotate(-90deg)",color:u.variant["neutral-3"]})))};Mo.propTypes={totalRecords:m.default.number.isRequired,pageLimit:m.default.number,pageNeighbours:m.default.number,onPageChanged:m.default.func},Mo.defaultProps={totalRecords:0,pageLimit:10,pageNeighbours:1,onPageChanged:()=>null};const Bo=g.default.div`
|
|
2808
2808
|
display: flex;
|
|
2809
2809
|
align-items: center;
|
|
2810
2810
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
@@ -3264,7 +3264,7 @@ overflow: hidden;
|
|
|
3264
3264
|
.close-icon {
|
|
3265
3265
|
cursor: pointer;
|
|
3266
3266
|
}
|
|
3267
|
-
`,wr=({close:e,children:a,type:o,position:r,timeout:i,localTimeout:n})=>{((e,l)=>{const a=t.useRef(e);t.useEffect((()=>{a.current=e}),[e]),t.useEffect((()=>{if(null===l)return;const e=setTimeout((()=>a.current()),l);return()=>clearTimeout(e)}),[l])})(e,n||i||5e3);const c=l.useTheme()||B;let s=null;switch(o){case"success":s=b.default.createElement(J,{icon:"check-icon",color:"white",size:12,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"warning":s=b.default.createElement(J,{icon:"warning",color:"white",size:20,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"error":s=b.default.createElement(J,{icon:"close-white",size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"info":s=b.default.createElement(J,{icon:"info-icon",size:10,color:"white",customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"pending":s=b.default.createElement(Ve,{size:14})}return b.default.createElement(Ar,{theme:c,type:o,timeout:n||i||5e3},b.default.createElement("div",{className:`notification toast ${r}`},b.default.createElement("div",{className:"leftSide"},b.default.createElement("div",{className:"notification-icon"},s),b.default.createElement("div",{className:"notification-message"},a)),b.default.createElement("div",{className:"close-icon",onClick:e},b.default.createElement(J,{icon:"close-icon",color:c.variant["neutral-2"]}))),b.default.createElement("div",{className:`notification-progress ${r}-border`}))},Sr=t.createContext(),
|
|
3267
|
+
`,wr=({close:e,children:a,type:o,position:r,timeout:i,localTimeout:n})=>{((e,l)=>{const a=t.useRef(e);t.useEffect((()=>{a.current=e}),[e]),t.useEffect((()=>{if(null===l)return;const e=setTimeout((()=>a.current()),l);return()=>clearTimeout(e)}),[l])})(e,n||i||5e3);const c=l.useTheme()||B;let s=null;switch(o){case"success":s=b.default.createElement(J,{icon:"check-icon",color:"white",size:12,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"warning":s=b.default.createElement(J,{icon:"warning",color:"white",size:20,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"error":s=b.default.createElement(J,{icon:"close-white",size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"info":s=b.default.createElement(J,{icon:"info-icon",size:10,color:"white",customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"pending":s=b.default.createElement(Ve,{size:14})}return b.default.createElement(Ar,{theme:c,type:o,timeout:n||i||5e3},b.default.createElement("div",{className:`notification toast ${r}`},b.default.createElement("div",{className:"leftSide"},b.default.createElement("div",{className:"notification-icon"},s),b.default.createElement("div",{className:"notification-message"},a)),b.default.createElement("div",{className:"close-icon",onClick:e},b.default.createElement(J,{icon:"close-icon",color:c.variant["neutral-2"]}))),b.default.createElement("div",{className:`notification-progress ${r}-border`}))},Sr=t.createContext(),kr=g.default.div`
|
|
3268
3268
|
.notification-container {
|
|
3269
3269
|
font-size: 14px;
|
|
3270
3270
|
box-sizing: border-box;
|
|
@@ -3318,9 +3318,9 @@ overflow: hidden;
|
|
|
3318
3318
|
transform: translateX(0);
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
|
-
`;function
|
|
3321
|
+
`;function Er(){let e=46656*Math.random()|0,t=46656*Math.random()|0;return e=("000"+e.toString(36)).slice(-3),t=("000"+t.toString(36)).slice(-3),e+t}const zr={xs:{fontSize:"12px",lineHeight:"120%"},sm:{fontSize:"14px",lineHeight:"120%"},md:{fontSize:"16px",lineHeight:"140%"},lg:{fontSize:"18px",lineHeight:"120%"}},Vr=g.default.div`
|
|
3322
3322
|
color: ${({theme:e,text:t})=>t?e.variant[t]:e.textColor};
|
|
3323
3323
|
// background: ${({theme:e,bg:t})=>t?e.variant[t]:e.bgColor};
|
|
3324
3324
|
font-size: ${({size:e})=>zr[e].fontSize};
|
|
3325
3325
|
line-height: ${({size:e})=>zr[e].lineHeight};
|
|
3326
|
-
`,Mr=({size:e,children:t,bg:a,text:o,...r})=>{const i=l.useTheme()||B;return b.default.createElement(Vr,S({theme:i,bg:a,text:o,size:e},r),b.default.createElement(Xa,{theme:i}),t)};Mr.propTypes={size:m.default.oneOf(["xs","sm","md","lg"]),text:m.default.string,bg:m.default.string,children:m.default.any,theme:m.default.object},Mr.defaultProps={size:"md"},exports.Accordion=Y,exports.AccordionSB=N,exports.AccordionSBfooter=Q,exports.ActionContainer=sa,exports.ActionItem=pa,exports.Alert=_,exports.ArrowBar=ae,exports.Avatar=se,exports.AvatarSB=me,exports.AvatarSBfooter=ye,exports.Banner=Ce,exports.Breadcrumb=$e,exports.ButtonPopup=$a,exports.Card=T,exports.CardRef=H,exports.CheckBoxInput=it,exports.ColorInput=st,exports.Comment=$l,exports.Content=ea,exports.DarkSecondaryLink=No,exports.DateSelect=Ct,exports.DateTime=Mt,exports.Divider=va,exports.DocumentCard=D,exports.DotPulseLoader=()=>{const e=l.useTheme()||B;return b.default.createElement(Ae,{activeTheme:e},b.default.createElement("div",{className:"dot-pulse"}))},exports.Drawer=Aa,exports.DropdownSelect=Rt,exports.DropzoneInput=Gt,exports.ErrorBoundary=wa,exports.FilterChip=
|
|
3326
|
+
`,Mr=({size:e,children:t,bg:a,text:o,...r})=>{const i=l.useTheme()||B;return b.default.createElement(Vr,S({theme:i,bg:a,text:o,size:e},r),b.default.createElement(Xa,{theme:i}),t)};Mr.propTypes={size:m.default.oneOf(["xs","sm","md","lg"]),text:m.default.string,bg:m.default.string,children:m.default.any,theme:m.default.object},Mr.defaultProps={size:"md"},exports.Accordion=Y,exports.AccordionSB=N,exports.AccordionSBfooter=Q,exports.ActionContainer=sa,exports.ActionItem=pa,exports.Alert=_,exports.ArrowBar=ae,exports.Avatar=se,exports.AvatarSB=me,exports.AvatarSBfooter=ye,exports.Banner=Ce,exports.Breadcrumb=$e,exports.ButtonPopup=$a,exports.Card=T,exports.CardRef=H,exports.CheckBoxInput=it,exports.ColorInput=st,exports.Comment=$l,exports.Content=ea,exports.DarkSecondaryLink=No,exports.DateSelect=Ct,exports.DateTime=Mt,exports.Divider=va,exports.DocumentCard=D,exports.DotPulseLoader=()=>{const e=l.useTheme()||B;return b.default.createElement(Ae,{activeTheme:e},b.default.createElement("div",{className:"dot-pulse"}))},exports.Drawer=Aa,exports.DropdownSelect=Rt,exports.DropzoneInput=Gt,exports.ErrorBoundary=wa,exports.FilterChip=Ea,exports.Footer=Va,exports.FooterContent=({variant:e,textColor:t,size:l,width:a,footerWidth:o,customStyles:r,...i})=>{const n=(new Date).getFullYear();return b.default.createElement(Ma,S({variant:e,textColor:t,footerWidth:o,customStyles:r},i),b.default.createElement(Ba,{footerWidth:o},b.default.createElement(Ia,{footerWidth:o},"Premise HQ"),b.default.createElement(La,{footerWidth:o},"|"),b.default.createElement(Ia,{footerWidth:o},"All Rights Restricted ",n," ©")),b.default.createElement(Ba,{footerWidth:o},b.default.createElement(Ia,{footerWidth:o},"Terms of use"),b.default.createElement(La,{footerWidth:o},"|"),b.default.createElement(Ia,{footerWidth:o},"Privacy Policy")))},exports.FormComponent=({formData:e,customStyles:l,...a})=>{const o=e=>{switch(e.type){case"header":return(e=>b.default.createElement(t.Fragment,null,b.default.createElement(Ra,S({},e,a),e.children),e))(e);case"label":return(e=>b.default.createElement(et,S({style:{marginBottom:"8px",paddingBottom:"0"}},e,a)))(e);case"text":return(e=>b.default.createElement(hl,S({},e,a)))(e);case"textArea":return(e=>b.default.createElement(Bl,S({},e,a)))(e);case"number":return(e=>b.default.createElement(tl,S({},e,a)))(e);case"radio":return(e=>b.default.createElement(pl,S({key:101*Math.random()|0},e,a)))(e);case"checkBox":return(e=>b.default.createElement(it,S({},e,a)))(e);case"singleSelect":return(e=>b.default.createElement(Rt,S({dropdownType:"singleSelect"},e,a)))(e);case"multiSelect":return(e=>b.default.createElement(Rt,S({dropdownType:"multiSelect"},e,a)))(e);case"asyncSingleSelect":return(e=>b.default.createElement(Rt,S({dropdownType:"asyncSingleSelect"},e,a)))(e);case"asyncMultiSelect":return(e=>b.default.createElement(Rt,S({dropdownType:"asyncMultiSelect"},e,a)))(e);case"signature":return(e=>b.default.createElement(kl,S({},e,a)))(e);case"fileUpload":return(e=>b.default.createElement(Gt,S({},e,a)))(e);case"date":return(e=>b.default.createElement(Ct,S({},e,a)))(e);case"toggle":return(e=>b.default.createElement(Ol,S({},e,a)))(e);case"rating":return(e=>b.default.createElement(Za,S({},e,a)))(e);case"buttonPrimary":return(e=>b.default.createElement(Re,S({},e,a)))(e);case"buttonSecondary":return(e=>b.default.createElement(He,S({},e,a)))(e);case"buttonTiny":return(e=>b.default.createElement(qe,S({},e,a)))(e);case"search":return(e=>b.default.createElement(yl,S({},e,a)))(e);case"table":return(e=>b.default.createElement(Oa,S({},e,a)))(e);case"passwordInput":return(e=>b.default.createElement(il,S({},e,a)))(e);case"headerComponent":return(e=>b.default.createElement(Ga,S({},e,a)))(e)}};return b.default.createElement(t.Fragment,null,b.default.createElement(fa,{defaultThemeColor:B},b.default.createElement(ya,{onSubmit:()=>{},customStyles:l},e.map(((e,t)=>e.length>1?b.default.createElement(ba,null,e.map(((t,l)=>b.default.createElement(ga,{cols:e.length},o(t))))):o(e[0]))))))},exports.FormContainer=fa,exports.FormWrapper=ya,exports.GroupAvatars=Ya,exports.GroupButtons=lo,exports.GroupButtonsPopup=io,exports.GroupStatusCircle=fo,exports.Header=Ra,exports.HeaderComponent=Ga,exports.HyperLink=go,exports.Icon=J,exports.Image=re,exports.ImageUploader=Nt,exports.Label=et,exports.LightSecondaryLink=Ko,exports.LinkButton=Ie,exports.Loader=ke,exports.ModalComp=wo,exports.MultiColumnDiv=ga,exports.MultiColumnWrapper=ba,exports.Navbar=({headerContent:e,bodyContent:a,toggleSideBarOpen:o,headerStyles:r,selectedStyle:i,notSelectedStyle:n,customStylesNameHover:c,listElementStyle:s,customSelectCardColor:d,selectedAppPath:u,setSelectedAppPath:p,setSelectedAppPageId:f,setParentId:m,setRouterObject:g})=>{const h=l.useTheme()||B,[y,x]=t.useState(null),[v,C]=t.useState(!1),[A,w]=t.useState([]);return t.useEffect((()=>{w(u.split("/"));let e=u.split("/"),t=a&&a.find((t=>e[1]===t.path.split("/")[1])),l=t?.routes&&t?.routes.find((e=>e?.path===u));f(l?.id||null),g(l||null),m(t?.id||null)}),[u]),t.useEffect((()=>{!o&&C(!1),!o&&x(null)}),[o]),b.default.createElement($o,{onClick:()=>C(!0),onMouseEnter:()=>C(!0),onMouseLeave:()=>{x(null),C(!1)},toggleSideBarOpen:o},b.default.createElement(_o,{theme:h,headerStyles:r,toggleSideBarOpen:o},e),b.default.createElement(er,null,a&&a?.filter((e=>!0===e.visibleAsMenu))?.map(((e,t,l)=>{let a=l.length;return b.default.createElement("div",{className:"service-layer",key:e?.value+t,onClick:()=>{x(t)}},b.default.createElement(N,{index:t,isAccordionOpen:t===y||v&&e?.value?.toLowerCase()===A[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===A[1]?.toLowerCase(),customSelectCardColor:d,customStylesAccordionContainer:{"box-shadow":"none","border-radius":"0px","background-color":"transparent",padding:a-1===t?"2px 0px 10px 0px":"0px 0px 0px 0px"},customStylesAccordionTogggle:{padding:"0","box-shadow":"none","border-radius":"0px","background-color":"transparent","padding-left":"8px","padding-top":"16px","padding-bottom":"16px",cursor:"pointer"},customStylesAccordionContent:{transition:"height ease 0.2s",overflow:"hidden",padding:"0","background-color":"transparent",color:"white",position:"relative","box-shadow":"none"},contentToggle:b.default.createElement(me,{selectedStyle:i,notSelectedStyle:n,toggleName:o,customStylesName:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"16px",color:"white","font-weight":"600"},customStylesNameHover:c,size:"MD",user:{userName:e.label,url:e.logo,fullName:e.label},isSelected:e?.value?.toLowerCase()===A[1]?.toLowerCase(),notificationCount:e?.notificationCount}),content:b.default.createElement("div",{style:{margin:"0",padding:"0",marginBottom:"18.25px"}},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>b.default.createElement(tr,{listElementStyle:s,key:e?.id+t,onClick:()=>{p(e.path)}},b.default.createElement("span",{className:"selected-disk",style:{visibility:A[2]?.toLowerCase()===e?.path.split("/")[2]?.toLowerCase()?"visible":"hidden"}}),b.default.createElement("span",{className:"link"}," ",e?.link)))))}))}))))},exports.NumericInput=tl,exports.Overlay=ko,exports.OverlayOptionContainer=da,exports.OverlayOptionItemLabel=ua,exports.PageContent=ta,exports.Pagination=Mo,exports.PaginationDefault=Io,exports.PaginationTypeTwo=qo,exports.PasswordInput=il,exports.PrimaryButton=Re,exports.PrimaryStatusChip=nr,exports.ProgressBar=Do,exports.ProgressSteps=Uo,exports.RadioInput=pl,exports.Rating=Za,exports.RoundedLoader=Ve,exports.SearchInput=yl,exports.SecondaryButton=He,exports.SecondaryStatusChip=dr,exports.Sidebar=or,exports.SignatureInput=kl,exports.SlimPrimaryStatusChip=fr,exports.SlimSecondaryStatusChip=gr,exports.StatusCircle=co,exports.StyledCentralBar=oa,exports.StyledClearSearch=aa,exports.StyledCreateRow=ia,exports.StyledRow=na,exports.StyledRowSearch=la,exports.StyledSearchRow=ca,exports.StyledWarning=ra,exports.SubmitButtonContainer=ma,exports.SubmitComponent=({formData:e,onSubmit:l,onReset:a,style:o,...r})=>{const i=e=>{switch(e.type){case"submit":return(e=>b.default.createElement(Re,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>b.default.createElement(He,{block:e.block,disabled:r.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return b.default.createElement(t.Fragment,null,b.default.createElement(ma,{style:o},e&&e.map(((e,t)=>e.map(((e,t)=>i(e)))))))},exports.Table=Oa,exports.Tabs=Cr,exports.TextArea=Bl,exports.TextInput=hl,exports.TimeInput=jl,exports.TinyButton=qe,exports.ToastProvider=e=>{const[l,a]=t.useState([]),o=(e,t,l,o)=>{a((a=>[...a,{id:o||Er(),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))),[]),b.default.createElement(Sr.Provider,{value:i},e.children,n?p.createPortal(b.default.createElement(kr,null,b.default.createElement("div",{className:`notification-container ${e.position}`},l.map((t=>b.default.createElement(wr,{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=Ol,exports.Tooltip=Ue,exports.Typography=Mr,exports.defaultStyles=I,exports.defaultThemeColor=B,exports.getDefaultStyles=L,exports.graphColor=M,exports.hexToRGB=W,exports.neutralColor=z,exports.primaryColor=k,exports.shadeColor=V,exports.uiColor=E,exports.useToast=()=>t.useContext(Sr);
|