groundfloor-react-ui 1.2.46 → 1.2.47
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 +230 -229
- package/dist/index.js +227 -226
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -532,26 +532,26 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t i
|
|
|
532
532
|
`,ze=({size:e,thickness:l,propellerHeight:o,customStyles:r})=>t.createElement(Ee,{inBuiltCss:P,size:e,thickness:l,propellerHeight:o,customStyles:r,type:"spinner"},t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null),t.createElement("div",null));ze.propTypes={size:e.number,thickness:e.number,propellerHeight:e.number,customStyles:e.object},ze.defaultProps={size:20,thickness:2,propellerHeight:25,customStyles:null};const Ve=g`
|
|
533
533
|
0% { transform: rotate(0deg); }
|
|
534
534
|
100% { transform: rotate(360deg); }
|
|
535
|
-
`,Me=
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
535
|
+
`,Me=m.div`
|
|
536
|
+
display: inline-block;
|
|
537
|
+
border:
|
|
538
|
+
${({theme:e,thickness:t})=>t+"px solid "+H(e.variant["primary-1"],.5)};
|
|
539
|
+
|
|
540
|
+
border-top:
|
|
541
|
+
${({theme:e,thickness:t})=>t+"px solid "+e.variant["primary-1"]};
|
|
542
|
+
border-radius: 50%;
|
|
543
|
+
height: ${({size:e})=>e+"px"};
|
|
544
|
+
width: ${({size:e})=>e+"px"};
|
|
545
|
+
animation: ${Ve} 1s linear infinite;
|
|
546
|
+
|
|
547
|
+
${({customStyles:e})=>e}
|
|
548
|
+
`,Be=({size:e,thickness:l,customStyles:o})=>{const r=b()||R;return t.createElement(Me,{theme:r,size:e,thickness:l,customStyles:o})};Be.propTypes={size:e.number,thickness:e.number,customStyles:e.object},Be.defaultProps={size:20,thickness:3,customStyles:null};const Ie={sm:{fontSize:"14px",padding:"5px 15px"},md:{fontSize:"16px",padding:"5.5px 15px"},lg:{fontSize:"18px",padding:"8px 20px"}},We=m.button`
|
|
549
549
|
background: transparent;
|
|
550
550
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
551
|
-
padding: ${({size:e})=>
|
|
551
|
+
padding: ${({size:e})=>Ie[e].padding};
|
|
552
552
|
border: none;
|
|
553
553
|
border-radius: 5px;
|
|
554
|
-
font-size: ${({size:e})=>
|
|
554
|
+
font-size: ${({size:e})=>Ie[e].fontSize};
|
|
555
555
|
display: flex;
|
|
556
556
|
align-items: center;
|
|
557
557
|
width: ${({block:e})=>e?"100%":"auto"};
|
|
@@ -567,13 +567,13 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t i
|
|
|
567
567
|
|
|
568
568
|
// custom styles
|
|
569
569
|
${({btnStyle:e})=>e}
|
|
570
|
-
`,
|
|
570
|
+
`,Le=({btnStyle:e,block:l,size:o,style:r,disabled:i,isLoading:n,type:c,id:a,...s})=>{const d=b()||R;return t.createElement(We,V({id:a,block:l,defaultStyle:"button",type:c,style:r,size:o,theme:d,disabled:i,btnStyle:e},s),n&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(ze,{customStyles:{"background-color":d.bgColor},size:16})),s.children)};Le.propTypes={disabled:e.bool,size:e.oneOf(["sm","md","lg"]),block:e.bool,isLoading:e.bool,onClick:e.func,type:e.string,btnStyle:e.object,id:e.string},Le.defaultProps={block:!1,isLoading:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const Re={sm:{fontSize:"14px",padding:"5px 15px"},md:{fontSize:"16px",padding:"5.5px 15px"},lg:{fontSize:"18px",padding:"8px 20px"}},Pe=m.button`
|
|
571
571
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
572
572
|
color: ${({theme:e})=>e.bgColor};
|
|
573
|
-
padding: ${({size:e})=>
|
|
573
|
+
padding: ${({size:e})=>Re[e].padding};
|
|
574
574
|
border: 1px solid ${({theme:e})=>e.primary["primary-1"]};
|
|
575
575
|
border-radius: 5px;
|
|
576
|
-
font-size: ${({size:e})=>
|
|
576
|
+
font-size: ${({size:e})=>Re[e].fontSize};
|
|
577
577
|
display: flex;
|
|
578
578
|
align-items: center;
|
|
579
579
|
width: ${({block:e})=>e?"100%":"auto"};
|
|
@@ -590,12 +590,12 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t i
|
|
|
590
590
|
|
|
591
591
|
// custom styles
|
|
592
592
|
${({btnStyle:e})=>e}
|
|
593
|
-
`,
|
|
593
|
+
`,Te=({btnStyle:e,block:l,size:o,style:r,disabled:i,isLoading:n,type:c,id:a,...s})=>{const d=b()||R;return t.createElement(Pe,V({id:a,block:l,type:c,style:r,size:o,theme:d,disabled:i,btnStyle:e},s),n&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(ze,{customStyles:{"background-color":d.bgColor},size:16})),s.children)};Te.propTypes={disabled:e.bool,size:e.oneOf(["sm","md","lg"]),block:e.bool,isLoading:e.bool,onClick:e.func,type:e.string,btnStyle:e.object,id:e.string},Te.defaultProps={block:!1,isLoading:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const He={sm:{fontSize:"14",padding:"5px 15px"},md:{fontSize:"16",padding:"5.5px 15px"},lg:{fontSize:"18",padding:"8px 20px"}},je=m.button`
|
|
594
594
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
595
595
|
background: ${({theme:e})=>e.bgColor};
|
|
596
|
-
padding: ${({size:e})=>
|
|
596
|
+
padding: ${({size:e})=>He[e].padding};
|
|
597
597
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
598
|
-
font-size: ${({size:e})=>
|
|
598
|
+
font-size: ${({size:e})=>He[e].fontSize};
|
|
599
599
|
border-radius: 5px;
|
|
600
600
|
display: flex;
|
|
601
601
|
align-items: center;
|
|
@@ -613,7 +613,7 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t i
|
|
|
613
613
|
${({theme:e,defaultStyle:t})=>T(e,t)}
|
|
614
614
|
// custom styles
|
|
615
615
|
${({btnStyle:e})=>e}
|
|
616
|
-
`,
|
|
616
|
+
`,qe=({btnStyle:e,isLoading:l,block:o,size:r,style:i,disabled:n,type:c,theme:a,id:s,...d})=>{const p=b()||R;return t.createElement(je,V({id:s,block:o,defaultStyle:"button",style:i,size:r,disabled:n,type:c,btnStyle:e,isLoading:l,theme:a},d),l&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(ze,{theme:a,customStyles:{"background-color":p.variant["primary-1"]},size:16})," "),d.children," ")};qe.propTypes={disabled:e.bool,size:e.oneOf(["sm","md","lg"]),block:e.bool,onClick:e.func,theme:e.object,type:e.string,btnStyle:e.object,id:e.string},je.defaultProps={theme:R},qe.defaultProps={theme:R,block:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const Fe=m.button`
|
|
617
617
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
618
618
|
color: ${({theme:e})=>e.bgColor};
|
|
619
619
|
padding: 3px 14px;
|
|
@@ -639,7 +639,7 @@ ${({inBuiltCss:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t i
|
|
|
639
639
|
|
|
640
640
|
// custom styles
|
|
641
641
|
${({btnStyle:e})=>e}
|
|
642
|
-
`,
|
|
642
|
+
`,Ze=({block:e,style:l,disabled:o,type:r,btnStyle:i,id:n,...c})=>(b(),t.createElement(Fe,V({id:n,block:e,defaultStyle:"button",type:r,style:l,disabled:o,btnStyle:i},c),c.children));Ze.propTypes={disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object,type:e.string,btnStyle:e.object,id:e.string},Fe.defaultProps={theme:R},Ze.defaultProps={theme:R,block:!1,disabled:!1,onClick:void 0,btnStyle:{},id:""};const Oe=m.div`
|
|
643
643
|
background-color: ${({theme:e})=>e.bgColor};
|
|
644
644
|
border: 1px solid ${({theme:e})=>e.bgColor};
|
|
645
645
|
color: ${({theme:e})=>e.black},
|
|
@@ -683,7 +683,7 @@ ${({inBuiltCss:e,type:t,customStylesTPContainer:l})=>{if(e){let t={};if(e["toolt
|
|
|
683
683
|
&[data-popper-placement*='left'] .tooltip-arrow::after {
|
|
684
684
|
${({inBuiltCss:e,type:t,customStylesTPAleftAfter:l,theme:o})=>{if(e){let t={};if(e["tp-cont-left-arrow-before"]){for(const l in e.common)t[l]=e.common[l];for(const l in e["tp-cont-left-arrow-after"])t[l]=e["tp-cont-left-arrow-after"][l],delete e.common[l]}let r=l||{borderColor:`transparent transparent transparent ${o.primary["primary-1"]} `};return{...t,...r}}}}
|
|
685
685
|
}
|
|
686
|
-
`,
|
|
686
|
+
`,De=m.div`
|
|
687
687
|
|
|
688
688
|
${({inBuiltCss:e,type:t,customStylesTPArrow:l})=>{if(e){let t={};if(e["tooltip-arrow"]){for(const l in e.common)t[l]=e.common[l];for(const l in e["tooltip-arrow"])t[l]=e["tooltip-arrow"][l],delete e.common[l]}return{...t,...l}}}}
|
|
689
689
|
|
|
@@ -695,26 +695,26 @@ ${({inBuiltCss:e,type:t,customStylesTPArrow:l})=>{if(e){let t={};if(e["tooltip-a
|
|
|
695
695
|
&::after{
|
|
696
696
|
${({inBuiltCss:e,type:t,customStylesTPAafter:l})=>{if(e){let t={};if(e["tooltip-arrow-after"]){for(const l in e.common)t[l]=e.common[l];for(const l in e["tooltip-arrow-after"])t[l]=e["tooltip-arrow-after"][l],delete e.common[l]}return{...t,...l}}}}
|
|
697
697
|
}
|
|
698
|
-
`,
|
|
698
|
+
`,Ge=m.div`
|
|
699
699
|
|
|
700
700
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
701
701
|
${({inBuiltCss:e,defaultTooltipContentStyle:t})=>T(e,t)}
|
|
702
702
|
// custom styles
|
|
703
703
|
${({customContentStyle:e})=>e}
|
|
704
|
-
`,
|
|
704
|
+
`,Xe=m.div`
|
|
705
705
|
${({inBuiltCss:e,defaultTooltipHeaderStyle:t})=>T(e,t)}
|
|
706
706
|
// custom styles
|
|
707
707
|
${({customHeaderStyle:e})=>e}
|
|
708
|
-
`,
|
|
708
|
+
`,Je=m.div`
|
|
709
709
|
${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>T(e,t)}
|
|
710
710
|
// custom styles
|
|
711
711
|
${({customBodyStyle:e})=>e}
|
|
712
|
-
`,Je=m.div`
|
|
713
712
|
`,Ue=m.div`
|
|
713
|
+
`,Ye=m.div`
|
|
714
714
|
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>T(e,t)}
|
|
715
715
|
// custom styles
|
|
716
716
|
${({customTriggerStyle:e})=>e}
|
|
717
|
-
`,
|
|
717
|
+
`,Qe=({inBuiltCss:e,contentTrigger:l,contentTooltip:o,popperOptionsP:r,settings:i,customStylesTPContainer:n,customStylesTPAbottom:c,customStylesTPAbottomBefore:a,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:g,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v,customStylesTPArrow:A,customStylesTPAbefore:C,customStylesTPAafter:w,customTooltipContentStyle:S,customContentStyle:k,customHeaderStyle:E,customBodyStyle:z,customTriggerStyle:M,headerTooltip:B,footerTooltip:I,...W})=>{const L=b()||R,T={modifiers:[{name:"offset",options:{offset:[0,23]}}],strategy:"absolute",...r},{getArrowProps:H,getTooltipProps:j,setTooltipRef:q,setTriggerRef:F,visible:Z}=y({interactive:!0,...i},T);return t.createElement(t.Fragment,null,t.createElement(Ye,{ref:F,inBuiltCss:P,customTriggerStyle:M,style:{width:"fit-content",height:"fit-content",display:"inline-block"}},l),Z&&t.createElement(Oe,V({inBuiltCss:P,theme:L,ref:q},j({className:"tooltip-container"}),{customStylesTPContainer:n,customStylesTPAbottom:c,customStylesTPAbottomBefore:a,customStylesTPAbottomAfter:s,customStylesTPAtop:d,customStylesTPAtopBefore:p,customStylesTPAtopAfter:m,customStylesTPAright:u,customStylesTPArightBefore:g,customStylesTPArightAfter:f,customStylesTPAleft:h,customStylesTPAleftBefore:x,customStylesTPAleftAfter:v}),t.createElement(De,V({inBuiltCss:P},H({className:"tooltip-arrow"}),{customStylesTPArrow:A,customStylesTPAbefore:C,customStylesTPAafter:w})),t.createElement(Ge,V({defaultTooltipContentStyle:"popOver-Content",theme:L,inBuiltCss:P},W,{customContentStyle:k}),t.createElement(Xe,V({defaultTooltipHeaderStyle:"popOver-header",theme:L,inBuiltCss:P},W,{customHeaderStyle:E}),B),t.createElement(Je,V({defaultTooltipBodyStyle:"popOver-body",theme:L,inBuiltCss:P},W,{customBodyStyle:z}),o),t.createElement(Ue,null,I))))};Qe.propTypes={contentTrigger:e.any,headerTooltip:e.any,contentTooltip:e.any,footerTooltip:e.any,popperOptionsP:e.object,settings:e.object,customContentStyle:e.object,customHeaderStyle:e.object,customBodyStyle:e.object,customStylesTPContainer:e.object,customStylesTPAbottom:e.object,customStylesTPAbottomBefore:e.object,customStylesTPAbottomAfter:e.object,customStylesTPAtop:e.object,customStylesTPAtopBefore:e.object,customStylesTPAtopAfter:e.object,customStylesTPAright:e.object,customStylesTPArightBefore:e.object,customStylesTPArightAfter:e.object,customStylesTPAleft:e.object,customStylesTPAleftBefore:e.object,customStylesTPAleftAfter:e.object,customStylesTPArrow:e.object,customStylesTPAbefore:e.object,customStylesTPAafter:e.object,customTriggerStyle:e.object},Qe.defaultProps={contentTrigger:t.createElement("div",null,"Trigger"),headerTooltip:"Lovely tooltip title",contentTooltip:"There are a lot of things you can do in space, and space essentially is unlimited resources.",footerTooltip:t.createElement(qe,{size:"sm"},"Next"),customStylesTPContainer:{border:"none"},customTriggerStyle:{}};const Ne=m.div`
|
|
718
718
|
background: transparent;
|
|
719
719
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
720
720
|
font-size: ${({isPrimary:e})=>e?"16px":"14px"};
|
|
@@ -750,10 +750,10 @@ ${({customTriggerStyle:e})=>e}
|
|
|
750
750
|
.breadcrumb-icon-separator {
|
|
751
751
|
margin: ${({isPrimary:e,iconMargin:t})=>t||(e?"0 12px":"0 7px")};
|
|
752
752
|
}
|
|
753
|
-
`,
|
|
753
|
+
`,Ke=m.div`
|
|
754
754
|
display: flex;
|
|
755
755
|
flex-wrap: nowrap;
|
|
756
|
-
|
|
756
|
+
`,$e=m.div`
|
|
757
757
|
cursor: ${({href:e})=>e?"pointer":"default"};
|
|
758
758
|
list-style: none;
|
|
759
759
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
@@ -784,17 +784,17 @@ ${({customTriggerStyle:e})=>e}
|
|
|
784
784
|
z-index: 1;
|
|
785
785
|
overflow: hidden;
|
|
786
786
|
}
|
|
787
|
-
|
|
787
|
+
`,_e=m.div`
|
|
788
788
|
display: flex;
|
|
789
789
|
margin-bottom: 15px;
|
|
790
790
|
position: relative;
|
|
791
|
-
`,
|
|
791
|
+
`,et=({wrap:e,block:l,style:n,variant:c,variantSeparator:a,appLogo:s,separator:d,items:p,onClick:m,isPrimary:u,collapse:g,folderIcon:f,iconMargin:h,...y})=>{const x=b()||R,v=o(null),[A,C]=r(void 0),w=()=>{C(v?.current?.scrollWidth<v?.current?.offsetWidth)};i((()=>{w()}),[p]),i((()=>{if(!e)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[]);const S=p.map(((e,l)=>t.createElement(Ke,{key:l},0!==l||s?t.createElement("div",{className:"breadcrumb-icon-separator"},d):null,t.createElement($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:c,href:e.href,"data-title":e.label},e.label)))),k=p.slice(1,p.length-3).map(((e,l)=>t.createElement(_e,{key:l},f?t.createElement("div",{style:{marginRight:"10px",marginTop:"2.3px"}},t.createElement(N,{icon:"folder-icon",size:17,transform:"translate(0px,-0.5px)"})):null,t.createElement($e,{id:e.id,theme:x,onClick:()=>{e.href&&m(e.href)},variant:c,href:e.href,"data-title":e.label},e.label)))),E=p?1==g?p.length<=4?S:t.createElement(t.Fragment,null,t.createElement(Ke,{key:0},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:p[0].id,theme:x,onClick:()=>{p[0].href&&m(p[0].href)},variant:c,href:p[0].href,"data-title":p[0].label},p[0].label)),t.createElement(Ke,null,t.createElement("div",{className:"breadcrumb-icon-separator",style:{marginTop:"-3px"}},d),t.createElement(Qe,{contentTrigger:t.createElement(N,{icon:"ellipses-horizontal",size:12,color:"#6B747F",style:{padding:"0 4px",paddingBottom:"6px",marginTop:"-5.5px"}}),customTriggerStyle:{cursor:"pointer",background:"#E2E6F5",borderRadius:"3px"},headerTooltip:"",customHeaderStyle:{marginBottom:"0px"},contentTooltip:t.createElement(t.Fragment,null,k),footerTooltip:"",popperOptionsP:{placement:"bottom"},customContentStyle:{width:"182px",backgroundColor:"white",color:"#6B747F",boxShadow:"0px 6px 40px rgba(56, 66, 100, 0.482627)",display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"16px",gap:"8px",position:"absolute",borderRadius:"3.6px",paddingBottom:"0px",marginTop:"-8.8px",marginLeft:"-6px"},customBodyStyle:{marginBottom:"0px"},customStylesTPArrow:{display:"none"},settings:{closeOnOutsideClick:!0,trigger:"click"}})),t.createElement(Ke,{key:p.length-3},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:p[p.length-3].id,theme:x,onClick:()=>{p[p.length-3].href&&m(p[p.length-3].href)},variant:c,href:p[p.length-3].href,"data-title":p[p.length-3].label},p[p.length-3].label)),t.createElement(Ke,{key:p.length-2},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:p[p.length-2].id,theme:x,onClick:()=>{p[p.length-2].href&&m(p[p.length-2].href)},variant:c,href:p[p.length-2].href,"data-title":p[p.length-2].label},p[p.length-2].label)),t.createElement(Ke,{key:p.length-1},t.createElement("div",{className:"breadcrumb-icon-separator"},d),t.createElement($e,{id:p[p.length-1].id,theme:x,onClick:()=>{p[p.length-1].href&&m(p[p.length-1].href)},variant:c,href:p[p.length-1].href,"data-title":p[p.length-1].label},p[p.length-1].label))):S:null;return t.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},t.createElement("div",{style:{display:"flex",position:"absolute"}},t.createElement(Ne,V({theme:x,isWrap:e,ref:e?null:v,isBreadcrumbVisible:A,block:l,variant:c,variantSeparator:a,style:n,isPrimary:u,iconMargin:h},y),s&&t.createElement("div",{className:"breadcrumb-icon"},s),E)))};et.propTypes={variant:e.string,variantSeparator:e.string,onClick:e.func,appLogo:e.any,separator:e.any,items:e.array,block:e.bool,wrap:e.bool,isPrimary:e.bool,collapse:e.bool,folderIcon:e.bool,iconMargin:e.string},et.defaultProps={variant:"neutral-2",variantSeparator:"neutral-3",block:!1,onClick:void 0,wrap:!1,isPrimary:!0,collapse:!0,folderIcon:!0};const tt=m.label`
|
|
792
792
|
//Set the styles from the default styles object
|
|
793
793
|
${({theme:e,type:t})=>T(e,t)}
|
|
794
794
|
|
|
795
795
|
// custom styles
|
|
796
796
|
${({customStyles:e})=>e}
|
|
797
|
-
`,
|
|
797
|
+
`,lt=({customStyles:e,text:l,className:o,required:r,...i})=>{const n=P;return t.createElement(tt,V({required:r,theme:n,customStyles:e,type:"label"},i),l,r&&t.createElement("div",{style:{marginLeft:"4px",color:`${R.variant.error}`}},"*"))};lt.propTypes={customStyles:e.object,text:e.string},lt.defaultProps={text:""};const ot=m.div`
|
|
798
798
|
box-sizing: initial;
|
|
799
799
|
|
|
800
800
|
//Set the styles from the default styles object
|
|
@@ -805,7 +805,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
805
805
|
|
|
806
806
|
// custom styles
|
|
807
807
|
${({checkBoxOuterStyle:e})=>e}
|
|
808
|
-
`;
|
|
808
|
+
`;ot.defaultProps={theme:R};const rt=m.div`
|
|
809
809
|
box-sizing: initial;
|
|
810
810
|
|
|
811
811
|
//Set the styles from the default styles object
|
|
@@ -820,7 +820,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
820
820
|
align-items: center;
|
|
821
821
|
// custom styles
|
|
822
822
|
${({checkBoxInnerStyle:e})=>e}
|
|
823
|
-
`;
|
|
823
|
+
`;rt.defaultProps={theme:R};const it=m.span`
|
|
824
824
|
word-break: break-all;
|
|
825
825
|
|
|
826
826
|
//Set the styles from the default styles object
|
|
@@ -832,7 +832,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
832
832
|
|
|
833
833
|
// custom styles
|
|
834
834
|
${({optionTextStyle:e})=>e}
|
|
835
|
-
`;
|
|
835
|
+
`;it.defaultProps={theme:R};const nt=m.label`
|
|
836
836
|
width: fit-content;
|
|
837
837
|
margin-bottom: ${({inline:e})=>e?"":"18px !important"};
|
|
838
838
|
cursor: pointer;
|
|
@@ -842,10 +842,10 @@ ${({customTriggerStyle:e})=>e}
|
|
|
842
842
|
|
|
843
843
|
// custom styles
|
|
844
844
|
${({wrapperStyles:e})=>e}
|
|
845
|
-
`,
|
|
845
|
+
`,ct=m.div`
|
|
846
846
|
flex-direction: ${({inline:e})=>e?"row":"column"};
|
|
847
847
|
width: ${({inline:e})=>e?"initial":"auto"};
|
|
848
|
-
`,
|
|
848
|
+
`,at=({getCheckedArr:e,checkBoxOuterStyle:l,checkBoxInnerStyle:o,optionTextStyle:r,defaultBorderColor:n,defaultTextColor:c,checkedTextColor:a,checkedCheckBoxColor:s,labelStyle:d,label:p,options:m,setOptions:u,wrapperStyles:g,inline:f,wrapperStyle:h,isRequired:y,...x})=>{const v=b()||R;i((()=>{A(m)}),[]);const A=t=>{let l=t.filter((e=>!1!==e.checked));e(l)},C=Object.assign({display:"flex",flexDirection:"column",flexWrap:"wrap"},h);return t.createElement("div",V({style:C},x),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:d,type:"check-label",text:p},x)),y&&t.createElement("div",{style:{marginLeft:"4px",color:`${v.variant.error}`}},"*")),t.createElement(ct,V({style:{display:"flex",flexWrap:"wrap"},inline:f},x),m?.map(((e,i)=>t.createElement(nt,V({inline:f,id:e.id,key:`${e.name}-${i}`,onClick:()=>{((e,t)=>{let l=[...m];l[t].checked=!e.checked,u(l),A(l)})(e,i)},wrapperStyles:g},x),e.checked?t.createElement(rt,V({theme:v,inBuiltCss:P,defaultCheckBoxInnerStyle:"checkBox-inner",checkBoxInnerStyle:{...o,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabled&&e?.disabledColor},defaultBorderColor:n,checkedCheckBoxColor:s,checked:!e?.disabled&&e.checked},x),t.createElement(N,{icon:"check-icon",size:18,color:"white"})):t.createElement(ot,V({inBuiltCss:P,defaultCheckBoxOuterStyle:"checkBox-outer",checkBoxOuterStyle:{...l,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabledColor},defaultBorderColor:n,theme:v},x)),t.createElement(it,{theme:v,inline:f,optionTextStyle:{...r,cursor:e?.disabled?"not-allowed ":" pointer",color:e?.disabledColor},checked:e.checked,defaultTextColor:c,checkedTextColor:a},e.label))))))};at.propTypes={wrapperStyle:e.object,label:e.string,labelStyle:e.object,checkBoxOuterStyle:e.object,checkBoxInnerStyle:e.object,optionTextStyle:e.object,defaultTextColor:e.string,checkedTextColor:e.string,defaultBorderColor:e.string,checkedCheckBoxColor:e.string,inline:e.bool,options:e.array,setOptions:e.func,getCheckedArr:e.func,isRequired:e.bool,wrapperStyles:e.object},at.defaultProps={label:"",inline:!1,options:[],setOptions:()=>{},getCheckedArr:()=>{},labelStyle:{},checkBoxOuterStyle:{},checkBoxInnerStyle:{},isRequired:!0,wrapperStyles:{}};const st=m.div`
|
|
849
849
|
border: 1px solid ${({theme:e})=>e.variant["neutral-4"]};
|
|
850
850
|
background-color: ${({theme:e})=>e.bgColor};
|
|
851
851
|
|
|
@@ -857,7 +857,7 @@ ${({inBuiltCss:e,defaultColorWrapperStyle:t})=>T(e,t)}
|
|
|
857
857
|
// custom styles
|
|
858
858
|
${({customColorWrapperStyle:e})=>e}
|
|
859
859
|
|
|
860
|
-
`,
|
|
860
|
+
`,dt=m.input`
|
|
861
861
|
|
|
862
862
|
border: 0.5px solid ${({theme:e})=>e.variant["neutral-4"]};
|
|
863
863
|
box-shadow: 0px 5px 37px rgba(56, 66, 100, 0.0880136);
|
|
@@ -878,7 +878,7 @@ padding: 0;
|
|
|
878
878
|
${({inBuiltCss:e,defaultInputColorStyle:t})=>T(e,t)}
|
|
879
879
|
// custom styles
|
|
880
880
|
${({customInputColorStyle:e})=>e}
|
|
881
|
-
`,
|
|
881
|
+
`,pt=({label:e,labelStyle:l,value:o,setValue:r,customInputColorStyle:i,customColorWrapperStyle:n,id:c,...a})=>{const s=b()||R;return t.createElement(st,V({customColorWrapperStyle:n,defaultColorWrapperStyle:"ColorWrapper",theme:s,inBuiltCss:P},a),t.createElement(dt,V({id:c,customInputColorStyle:i,defaultInputColorStyle:"input-color",inBuiltCss:P,theme:s},a,{type:"color",value:o,onChange:e=>{r(e.target.value)}})),t.createElement(lt,V({themeColor:R,customStyles:l,type:"label-text",text:e,style:{display:"flex",paddingBottom:"0px",paddingLeft:"10px"}},a)))};pt.propTypes={label:e.string,labelStyle:e.object,value:e.string,setValue:e.func,customInputColorStyle:e.object,customColorWrapperStyle:e.object,id:e.string},pt.defaultProps={label:"",labelStyle:{},customInputColorStyle:{},customColorWrapperStyle:{},value:"#FFFFFF",setValue:()=>{},id:""};const mt=m.div`
|
|
882
882
|
display: flex;
|
|
883
883
|
cursor: ${({disabled:e})=>e?"not-allowed":"text"};
|
|
884
884
|
|
|
@@ -1017,24 +1017,24 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1017
1017
|
.react-datepicker::after {
|
|
1018
1018
|
box-sizing: initial !important;
|
|
1019
1019
|
}
|
|
1020
|
-
`;
|
|
1020
|
+
`;mt.defaultProps={theme:R};const bt=m.div`
|
|
1021
1021
|
display: flex;
|
|
1022
1022
|
align-items: flex-start;
|
|
1023
1023
|
justify-content: center;
|
|
1024
1024
|
font-size: 16px;
|
|
1025
1025
|
padding-top: 12px;
|
|
1026
1026
|
padding-bottom: 15px;
|
|
1027
|
-
`,
|
|
1027
|
+
`,ut=m.div`
|
|
1028
1028
|
display: flex;
|
|
1029
1029
|
justify-content: center;
|
|
1030
1030
|
margin-left: 6px;
|
|
1031
|
-
`,ut=m("div")`
|
|
1032
|
-
width: inherit;
|
|
1033
1031
|
`,gt=m("div")`
|
|
1032
|
+
width: inherit;
|
|
1033
|
+
`,ft=m("div")`
|
|
1034
1034
|
display: flex;
|
|
1035
1035
|
flex-direction: row;
|
|
1036
1036
|
cursor: pointer;
|
|
1037
|
-
`,
|
|
1037
|
+
`,ht=m("div")`
|
|
1038
1038
|
margin-top: 8px;
|
|
1039
1039
|
position: absolute;
|
|
1040
1040
|
z-index: 100;
|
|
@@ -1045,7 +1045,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1045
1045
|
background: white;
|
|
1046
1046
|
box-shadow: 0px 6px 20px rgb(56 66 100 / 15%);
|
|
1047
1047
|
border-radius: 4px;
|
|
1048
|
-
`,
|
|
1048
|
+
`,yt=m("ul")`
|
|
1049
1049
|
list-style: none;
|
|
1050
1050
|
padding: 0;
|
|
1051
1051
|
margin: 12px;
|
|
@@ -1072,7 +1072,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1072
1072
|
background-color: ${({theme:e})=>e.neutral["neutral-4"]};
|
|
1073
1073
|
border-radius: 10px;
|
|
1074
1074
|
}
|
|
1075
|
-
`;
|
|
1075
|
+
`;yt.defaultProps={theme:R};const xt=m("li")`
|
|
1076
1076
|
text-align: left;
|
|
1077
1077
|
font-style: normal;
|
|
1078
1078
|
font-weight: normal;
|
|
@@ -1081,7 +1081,7 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1081
1081
|
padding-left: 12px;
|
|
1082
1082
|
padding-bottom: 12px;
|
|
1083
1083
|
cursor: pointer;
|
|
1084
|
-
`,
|
|
1084
|
+
`,vt=({startDate:e,setStartDate:l,disabled:n,theme:c,startYear:a,endYearRange:s,format:d,placeholderText:p,...m})=>{const u=b()||R,g=["January","February","March","April","May","June","July","August","September","October","November","December"];for(var f=[],h=s||10,y=a||(new Date).getFullYear();y<=(new Date).getFullYear()+h;y++)f.push(y);const v=o(null),A=o(null),[C,w]=r(!1),[S,k]=r(!1),[E,z]=r(!1),[M,B]=r(!1),[I,W]=r(e.getFullYear()),[L,P]=r(g[e.getMonth()]);i((()=>{P(g[e.getMonth()]),W(e.getFullYear())}),[e]),i((()=>(document.addEventListener("click",T,!0),()=>{document.removeEventListener("click",T,!0)})),[]);const T=e=>{v.current&&!v.current.contains(e.target)&&w(!1)},H=e=>{A.current&&!A.current.contains(e.target)&&k(!1)};return i((()=>(document.addEventListener("click",H,!0),()=>{document.removeEventListener("click",H,!0)})),[]),t.createElement(mt,V({disabled:n,theme:c},m),t.createElement(x,{selected:e,dateFormat:d||"dd/MM/yyyy",useWeekdaysShort:!0,onChange:e=>l(e),placeholderText:p,adjustDateOnChange:!0,disabled:n,dropdownMode:"select",renderCustomHeader:({date:e,changeYear:l,changeMonth:o})=>t.createElement(bt,null,t.createElement("div",{style:{display:"flex"}},t.createElement(gt,{ref:v},t.createElement(ft,{onClick:()=>{w(!C),k(!1)}},t.createElement("span",{onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),style:{color:`${E?u.variant["primary-1"]:u.textColor}`}},g[e.getMonth()]),t.createElement(ut,null,t.createElement(N,{icon:"triangle-down",color:E?u.variant["primary-1"]:u.textColor,size:7}))),C&&t.createElement(ht,null,t.createElement(yt,{theme:c,onMouseEnter:()=>z(!0)},g.map(((e,l)=>t.createElement(xt,{selectedMonth:L,onClick:()=>{z(!1),o(l),w(!1),P(g[l])},key:Math.random()},t.createElement("span",{style:{color:`${L===e?u.variant["primary-1"]:u.textColor}`}},e))))))),t.createElement(gt,{ref:A},t.createElement(ft,{style:{marginLeft:"28px"},onClick:()=>{k(!S),w(!1)}},t.createElement("span",{onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),style:{color:`${M?u.variant["primary-1"]:u.textColor}`}},e.getFullYear()),t.createElement(ut,null,t.createElement(N,{icon:"triangle-down",color:M?u.variant["primary-1"]:u.textColor,size:7}))),S&&t.createElement(ht,null,t.createElement(yt,{onMouseEnter:()=>B(!0)},f.map(((e,o)=>t.createElement(xt,{onClick:()=>{B(!1),l(e),W(e),k(!1)},key:Math.random()},t.createElement("span",{style:{color:`${I===e?u.variant["primary-1"]:u.textColor}`}},e)))))))))}))};vt.propTypes={startDate:e.any,setStartDate:e.func,disabled:e.bool,theme:e.object,startYear:e.number,endYearRange:e.number,format:e.string,placeholderText:e.string},vt.defaultProps={theme:R,startDate:"",setStartDate:()=>{},disabled:!1};const At=m.div`
|
|
1085
1085
|
.react-datepicker-wrapper {
|
|
1086
1086
|
display: flex;
|
|
1087
1087
|
}
|
|
@@ -1139,25 +1139,26 @@ ${({customInputColorStyle:e})=>e}
|
|
|
1139
1139
|
// custom styles
|
|
1140
1140
|
${({wrapperStyle:e})=>e};
|
|
1141
1141
|
|
|
1142
|
-
`,
|
|
1142
|
+
`,Ct=m.div`
|
|
1143
1143
|
|
|
1144
|
-
`,
|
|
1144
|
+
`,wt=m.button`
|
|
1145
1145
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1146
1146
|
padding: 5.5px 12px;
|
|
1147
1147
|
padding-right: 7px;
|
|
1148
1148
|
border: none;
|
|
1149
1149
|
border-radius: 4px;
|
|
1150
|
-
width:
|
|
1151
|
-
color: "#9c9c9c";
|
|
1152
|
-
display:
|
|
1153
|
-
justify-content:
|
|
1154
|
-
alignItems:
|
|
1150
|
+
width: 100%;
|
|
1151
|
+
color: ${({theme:e,value:t})=>""==t?(console.log(t),"#9c9c9c"):(console.log(t),e.black)};
|
|
1152
|
+
display:flex;
|
|
1153
|
+
justify-content:space-between;
|
|
1154
|
+
alignItems: center;
|
|
1155
|
+
|
|
1155
1156
|
|
|
1156
1157
|
|
|
1157
1158
|
|
|
1158
1159
|
// custom styles
|
|
1159
1160
|
${({timeBtnStyle:e})=>e};
|
|
1160
|
-
`,
|
|
1161
|
+
`,St=m.div`
|
|
1161
1162
|
display: flex;
|
|
1162
1163
|
align-items: center;
|
|
1163
1164
|
justify-content: ${({inputType:e})=>"year"!==e?"space-between":"center"};
|
|
@@ -1165,26 +1166,26 @@ padding: 8px;
|
|
|
1165
1166
|
color: ${({theme:e})=>e.bgColor};
|
|
1166
1167
|
// custom styles
|
|
1167
1168
|
${({customHeaderStyle:e})=>e};
|
|
1168
|
-
`,
|
|
1169
|
+
`,kt=m.span`
|
|
1169
1170
|
margin-top:-1px;
|
|
1170
1171
|
margin-left: 7px;
|
|
1171
1172
|
float: right;
|
|
1172
1173
|
|
|
1173
1174
|
// custom styles
|
|
1174
1175
|
${({customIconContainerStyle:e})=>e};
|
|
1175
|
-
`,
|
|
1176
|
+
`,Et=u`
|
|
1176
1177
|
display: flex;
|
|
1177
1178
|
gap: 7px;
|
|
1178
1179
|
align-items: center;
|
|
1179
|
-
`,
|
|
1180
|
-
${({labelInline:e})=>e?
|
|
1181
|
-
${({labelInline:e})=>e?
|
|
1180
|
+
`,zt=m.div`
|
|
1181
|
+
${({labelInline:e})=>e?Et:null}
|
|
1182
|
+
${({labelInline:e})=>e?Et:null}
|
|
1182
1183
|
.err-text {
|
|
1183
1184
|
color: ${({errMsgColor:e,theme:t})=>e||t.variant.error};
|
|
1184
1185
|
margin-top: 5px;
|
|
1185
1186
|
font-size: 10px;
|
|
1186
1187
|
}
|
|
1187
|
-
`,
|
|
1188
|
+
`,Vt=({defaultValue:e,onChange:l,inputType:o,onClick:i,placeHolder:n,value:c,disabled:a,startYear:s,endYearRange:d,icon:p,iconColor:m,iconSize:u,customHeaderStyle:g,timeBtnStyle:f,wrapperStyle:h,customIconContainerStyle:y,label:A,labelInline:C,labelStyle:w,required:S,errMsg:k,errMsgColor:E,isValid:z,...M})=>{console.log(z);const[B,I]=r(e);let W=B?new Date(B):null;for(var L=[],P=d||10,T=s||(new Date).getFullYear();T<=(new Date).getFullYear()+P;T++)L.push(T);let H={};switch(o){case"date":default:H.dateFormat="dd MMM, yyyy";break;case"month":H.dateFormat="MMMM yyyy",H.showMonthYearPicker=!0;break;case"year":H.dateFormat="yyyy",H.showYearPicker=!0;break;case"datetime-local":H.dateFormat="dd MMM yyyy, hh:mm a",H.showTimeSelect=!0,H.timeFormat="hh:mm a",H.timeIntervals=15,H.timeCaption="Time";break;case"time":H.showTimeSelect=!0,H.showTimeSelectOnly=!0,H.dateFormat="hh:mm a"}const j=b()||R;return t.createElement(zt,V({labelInline:C,errMsgColor:E,theme:j},M),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:w,type:"label-text",labelInline:C,errMsg:k,text:A,style:{display:"flex",marginBottom:""+(C?"":"7px"),paddingBottom:"0px"}},M)),S&&t.createElement("div",{style:{marginLeft:"4px",color:`${j.variant.error}`}},"*")),t.createElement(At,V({theme:j},M,{wrapperStyle:h,isValid:z}),t.createElement(x,V({selected:W,disabled:a,customInput:t.createElement(Ct,{value:c,onClick:i,placeholder:n,theme:j},t.createElement(wt,V({theme:j,value:c,onClick:i,timeBtnStyle:f},M),c||(n||"-- : -- --"),t.createElement(kt,V({theme:j},M,{customIconContainerStyle:y}),p?t.createElement(N,{icon:p,color:m,size:u}):null))),onChange:e=>{console.log(e),I(e);var t=null;t="datetime-local"==o?v(e).format("DD MMM YYYY, hh:mm A"):"date"==o?v(e).format("DD MMM, YYYY"):"year"==o?v(e).format("YYYY"):"month"==o?v(e).format("MMMM YYYY"):"time"==o?v(e).format("hh:mm A"):v(e).format("DD MMM, YYYY"),l(t)},showYearDropdown:!0,yearDropdownItemNumber:5,dropdownMode:"select",placeholderText:n},H,{renderCustomHeader:({date:e,changeYear:l,decreaseMonth:r,increaseMonth:i})=>{let n=v(e).format("MMMM");return t.createElement(St,V({theme:j},M,{inputType:o,customHeaderStyle:g}),"year"!==o?t.createElement("span",{style:{paddingLeft:"10px"},onClick:r},t.createElement(N,{icon:"chevron-left",color:"white",size:16})):null,t.createElement("b",null,"year"!==o?t.createElement("span",{style:{paddingRight:"5px"}},n):null," ",t.createElement("span",{className:"calender-year"},t.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>l(e)},L.map((e=>t.createElement("option",{key:e,value:e},e)))))),"year"!==o?t.createElement("span",{style:{paddingRight:"10px"},onClick:i},t.createElement(N,{icon:"chevron-right",color:"white",size:16})):null)}}))),k.length>0&&t.createElement("div",{className:"err-text"},k))};Vt.propTypes={defaultValue:e.string,onChange:e.func,inputType:e.string,onClick:e.func,placeHolder:e.string,value:e.string,disabled:e.bool,startYear:e.number,endYearRange:e.number,icon:e.string,iconColor:e.string,iconSize:e.number,customHeaderStyle:e.object,timeBtnStyle:e.object,wrapperStyle:e.object,customIconContainerStyle:e.object,label:e.string,labelStyle:e.object,labelInline:e.bool,errMsg:e.string,errMsgColor:e.string,isValid:e.bool},Vt.defaultProps={disabled:!1,startYear:new Date,endYearRange:10,iconColor:"black",iconSize:16,value:"",defaultValue:"",onChange:()=>{},label:"",required:!1,labelInline:!1,errMsg:"",isValid:!0};const Mt=m.div`
|
|
1188
1189
|
.master-dropdown,
|
|
1189
1190
|
.new-select {
|
|
1190
1191
|
.master-dropdown__menu,
|
|
@@ -1327,7 +1328,7 @@ float: right;
|
|
|
1327
1328
|
border: ${({theme:e,backgroundColor:t})=>t?"1px solid "+t:"1px solid "+e.primary["primary-1"]};
|
|
1328
1329
|
}
|
|
1329
1330
|
|
|
1330
|
-
`;
|
|
1331
|
+
`;Mt.defaultProps={theme:R};const Bt=m.div`
|
|
1331
1332
|
// Default style
|
|
1332
1333
|
display: flex;
|
|
1333
1334
|
|
|
@@ -1335,11 +1336,11 @@ float: right;
|
|
|
1335
1336
|
${({inBuiltCss:e,labelWrapperStyle:t})=>T(e,t)}
|
|
1336
1337
|
// custom styles
|
|
1337
1338
|
${({customLabelStyles:e})=>e}
|
|
1338
|
-
`,
|
|
1339
|
+
`,It=m.div`
|
|
1339
1340
|
margin-left: 6px;
|
|
1340
1341
|
margin-top: -15.5px;
|
|
1341
1342
|
cursor: pointer;
|
|
1342
|
-
`,
|
|
1343
|
+
`,Wt=({getValue:e,children:l,...o})=>{const r=e().length;return t.createElement(C.ValueContainer,o,l,r>1&&t.createElement("span",{className:"text-more-alt"},"& ",r-1," more"))},Lt=({label:e,labelStyle:l,optionArr:o,selectedValue:r,setSelectedValue:i,placeHolder:n,isClearable:c,isValid:a,height:s,fontSize:d,loadOptions:p,onInputChange:m,clearSelected:u,customWrapperStyles:g,customLabelStyles:f,isRequired:h,dropdownType:y,isDisabled:x,isLoading:v,id:A,iconName:w,iconStyles:S,iconColor:k,iconSize:E,showIndicator:z,leftIcon:M,leftIconColor:B,leftIconSize:I,backgroundColor:W,placeHolderColor:L,indicatorBackgroundColor:T,inputColor:H,...j})=>{const q=b()||R,F=e=>{const l={width:"15px",height:"15px",borderRadius:"2px",padding:"4px",fontSize:"8px",lineHeight:"10px",minWidth:"15px",minHeight:"15px"},o=t.createElement("div",{style:{...l,backgroundColor:e?.data?.color??q.primary["primary-1"]}},t.createElement(N,{icon:"check-icon",color:"white"})),r=t.createElement("div",{style:{...l,backgroundColor:"#e0e7ff"}});return t.createElement(C.Option,e,t.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%"}},e.isSelected?o:r,t.createElement("div",{className:"text-main-alt",style:{marginLeft:"10px"}},e.label)))},Z=({index:e,...l})=>{const o=l?.data?.label||"Select";return!e&&t.createElement("span",{className:"text-main-alt-value"},o)},O={control:(e,t)=>({...e,border:a?W&&a?"1px solid "+W:"1px solid "+q.border:"1px solid "+q.ui.error,minWidth:"singleSelect"===y||"asyncSingleSelect"===y?"120px":"185px",height:`${s}px`,minHeight:`${s}px`,boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:W||q.bgColor}),placeholder:e=>({...e,fontSize:d+"px",marginLeft:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"auto",maxWidth:"89%",marginRight:"0px",color:L||"hsl(0, 0%, 50%)"}),dropdownIndicator:e=>({...e,height:`${s}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"2px",backgroundColor:T||"transparent",borderBottomLeftRadius:"0",borderBottomRightRadius:"4.32px",borderTopLeftRadius:0,borderTopRightRadius:"4.32px",position:"relative",top:"-1px",right:"-1px"}),clearIndicator:e=>({...e,height:`${s}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"0px"}),valueContainer:e=>({...e,display:"flex",justifyContent:"space-between",fontSize:d+"px",marginTop:"-4px"}),indicatorsContainer:e=>({...e,padding:0}),menu:e=>({...e,border:"none",marginTop:"1px",borderTopRightRadius:"0px",borderTopLeftRadius:"0px",outline:"none",boxShadow:"0px 6px 20px rgba(56, 66, 100, 0.15)",borderRadius:"4.32px",fontSize:d+"px",width:"100%",minWidth:"singleSelect"===y||"asyncSingleSelect"===y?"120px":"185px"}),singleValue:e=>({...e,fontSize:d+"px",marginLeft:"0px",width:"auto",maxWidth:"89%",marginRight:0}),multiValue:e=>({...e,marginLeft:"0px",width:"auto"}),input:e=>({...e,fontSize:d+"px",color:H||"hsl(0, 0%, 20%)"}),option:(e,t)=>({...e,backgroundColor:t.isSelected||t.isFocused?q.neutral["neutral-5"]:q.bgColor,padding:"10px",cursor:"pointer",color:"#081348",width:"inherit"}),menuPortal:e=>({...e,zIndex:9999999})},D={DropdownIndicator:e=>{const l=t.createElement(C.DropdownIndicator,e,t.createElement(It,null,t.createElement(N,{icon:w,color:k,size:E,customstyles:S})));return!0===z?l:null},ValueContainer:Wt,IndicatorSeparator:()=>null,ClearIndicator:e=>t.createElement(C.ClearIndicator,e,c?t.createElement(It,{onClick:()=>{u(),e.clearValue()}},t.createElement(N,{icon:"cross-icon",color:"black",size:8})):null)};let G=null;switch(y){case"multiSelect":G=t.createElement(Rt,V({type:"multiSelect",MultiValue:Z,Option:F,value:r,CommonRenderedComponent:D,optionArr:o,placeHolder:n,isDisabled:x,stylesComp:O,setSelectedValue:i,isLoading:v,id:A,isClearable:c},j));break;case"asyncSingleSelect":G=t.createElement(Pt,V({CommonRenderedComponent:D,loadOptions:p,onInputChange:m,styles:O,placeholder:n,onChange:i,isLoading:v,isDisabled:x,id:A,value:r,isClearable:c},j));break;case"asyncMultiSelect":G=t.createElement(Pt,V({type:"asyncMultiSelect",CommonRenderedComponent:D,MultiValue:Z,Option:F,onChange:i,placeholder:n,styles:O,isDisabled:x,isLoading:v,loadOptions:p,onInputChange:m,id:A,isClearable:c},j));break;default:G=t.createElement(Rt,V({type:"singleSelect",value:{value:r?r.value:"",label:r?r.label:""},CommonRenderedComponent:D,optionArr:o,placeHolder:n,isDisabled:x,stylesComp:O,setSelectedValue:i,isLoading:v,id:A,isClearable:c},j))}return t.createElement(Mt,{style:g,backgroundColor:W,isValid:a,fontSize:d,theme:q},e&&t.createElement(Bt,{inBuiltCss:P,labelWrapperStyle:"selectComp-label-wrapper",style:f},t.createElement(lt,{customStyles:l,type:"label-text",text:e,style:{marginBottom:"8px",paddingBottom:"0px"}}),h&&t.createElement("div",{style:{marginLeft:"4px",color:`${q.ui.error}`}},"*")),G)},Rt=({type:e,Option:l,value:o,CommonRenderedComponent:r,MultiValue:i,optionArr:n,placeHolder:c,isDisabled:a,stylesComp:s,setSelectedValue:d,isLoading:p,id:m,isClearable:b,...u})=>{let g={...r};return"multiSelect"===e&&(g.MultiValue=i,g.Option=l),t.createElement(A,V({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:g,options:n,placeholder:c,isDisabled:a,value:o,styles:s,onChange:d,isLoading:p,id:m,isClearable:b,isMulti:"multiSelect"===e,hideSelectedOptions:!1,closeMenuOnSelect:"multiSelect"!==e,menuShouldScrollIntoView:!1},u))},Pt=({CommonRenderedComponent:e,MultiValue:l,Option:o,type:r,id:i,styles:n,...c})=>{let a={...e};return"asyncMultiSelect"===r&&(a.MultiValue=l,a.Option=o),t.createElement(w,V({className:"select-manage-page",classNamePrefix:"new-select",name:"select-dropdown",components:a,isMulti:"asyncMultiSelect"===r,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiSelect"!==r,isSearchable:!0,styles:n,menuShouldScrollIntoView:!1},c))};Lt.propTypes={label:e.string,labelStyle:e.object,optionArr:e.array,selectedValue:e.object,setSelectedValue:e.func,placeHolder:e.string,fontSize:e.number,clearSelected:e.func,loadOptions:e.func,onInputChange:e.func,customWrapperStyles:e.object,customLabelStyles:e.object,isRequired:e.bool,dropdownType:e.string,isDisabled:e.bool,isLoading:e.bool,isValid:e.bool,height:e.number,isClearable:e.bool,id:e.string,iconName:e.string,iconColor:e.string,iconSize:e.number,leftIcon:e.string,leftIconColor:e.string,leftIconSize:e.number,showIndicator:e.bool,backgroundColor:e.string,placeHolderColor:e.string,inputColor:e.string},Lt.defaultProps={label:"",labelStyle:{},optionArr:[],selectedValue:{},setSelectedValue:void 0,placeHolder:"Select an option",isValid:!0,isClearable:!1,height:31,fontSize:14,loadOptions:()=>{},onInputChange:()=>{},clearSelected:()=>{},customWrapperStyles:{},customLabelStyles:{},isRequired:!1,dropdownType:"singleSelect",isDisabled:!1,isLoading:!1,id:"",iconName:"triangle-down",iconColor:"black",iconSize:8,leftIcon:"",leftIconColor:"black",leftIconSize:10,showIndicator:!0};const Tt=m.div`
|
|
1343
1344
|
//Set the styles from the default styles object
|
|
1344
1345
|
${({inBuiltCss:e,defaultStyles:t})=>T(e,t)}
|
|
1345
1346
|
|
|
@@ -1356,15 +1357,15 @@ float: right;
|
|
|
1356
1357
|
|
|
1357
1358
|
// custom styles
|
|
1358
1359
|
${({customDropzoneStyles:e})=>e}
|
|
1359
|
-
`,
|
|
1360
|
+
`,Ht=m.div`
|
|
1360
1361
|
//Set the styles from the default styles object
|
|
1361
1362
|
${({inBuiltCss:e,defaultStyles:t})=>T(e,t)}
|
|
1362
1363
|
|
|
1363
1364
|
// custom styles
|
|
1364
1365
|
${({customFileStyles:e})=>e}
|
|
1365
|
-
`,
|
|
1366
|
+
`,jt=m.input`
|
|
1366
1367
|
display: none;
|
|
1367
|
-
`,
|
|
1368
|
+
`,qt=m.div`
|
|
1368
1369
|
//Set the styles from the default styles object
|
|
1369
1370
|
${({inBuiltCss:e,defaultStyles:t})=>T(e,t)}
|
|
1370
1371
|
|
|
@@ -1376,19 +1377,19 @@ float: right;
|
|
|
1376
1377
|
|
|
1377
1378
|
// custom styles
|
|
1378
1379
|
${({customFileNameStyles:e})=>e}
|
|
1379
|
-
`;const
|
|
1380
|
+
`;const Ft=m.div`
|
|
1380
1381
|
cursor: pointer;
|
|
1381
1382
|
padding-left: 1px;
|
|
1382
1383
|
margin-left: auto;
|
|
1383
1384
|
margin-right: 10px;
|
|
1384
1385
|
display: flex;
|
|
1385
1386
|
justify-content: center;
|
|
1386
|
-
`,
|
|
1387
|
+
`,Zt=m.div`
|
|
1387
1388
|
margin-left: 11px;
|
|
1388
1389
|
padding-left: 2px;
|
|
1389
1390
|
display: flex;
|
|
1390
1391
|
justify-content: center;
|
|
1391
|
-
`,
|
|
1392
|
+
`,Ot=m.div`
|
|
1392
1393
|
color: #494949;
|
|
1393
1394
|
margin-left: 11px;
|
|
1394
1395
|
padding-left: 2px;
|
|
@@ -1399,18 +1400,18 @@ float: right;
|
|
|
1399
1400
|
align-items: center;
|
|
1400
1401
|
margin: 20px 0px;
|
|
1401
1402
|
font-size: 14px;
|
|
1402
|
-
`;const
|
|
1403
|
+
`;const Dt=({label:e,labelStyle:l,labelInline:o,required:i,message:c,fileArr:a,setFileArr:s,deleteFile:d,customDropzoneStyles:p,customFileStyles:m,customTextStyles:u,customFileNameStyles:g,backgroundColor:f,singleFile:h,messageSize:y,showSupportedFormats:x,file_extensions:v,maxFilesAmount:A,minFilesAmount:C,fileSizeLimit:w,fileSizeNamingConvention:S,errorMessages:k,suggesionMessage:E,MessagelabelStyle:z,dropValid:M,setDropValid:B,dropzoneContent:I,dropIcon:W,iconColor:L,id:T,customTooltipContentStyle:H,customStylesTPArightBefore:j,customStylesTPArightAfter:q,...F})=>{const Z=b()||R,[O,D]=r(!1),G=n(),[X,J]=r(M),[U,Y]=r("");let Q;var K=v,$=!1,_=x?"That file type is not supported.":"",ee=(E=x?"The Supported format's are: ":"","");1==h&&(C=1,A=1);var te="Please upload (min."+C+" to max."+A+")files",le=e=>{ee="";let t=[];var l=0,o=a.length;if(o+1<C||o+1>A){var r="The file size is not uploaded";ee=U?.amount,ee=void 0!==ee?ee:r}for(const e of a)l+=e.size;if(""==ee)for(const[o,a]of Object.entries(e)){$=!0,a.name,l+=a.size;var i=a.name.split(".");i=i[i.length-1],$=K.includes(i.toLowerCase());var n=1024;("MB"==S||"GB"==S||"TB"==S)&&(n*=1024);var c=Math.round(l/n);if(0==$&&(ee=k?.format,ee=ee?ee+_:_),c>w&&$){$=!1;r="The file must be under "+w+" "+S;ee=k?.size,ee=null!=ee?ee:r}!0===$&&(Q&&URL.revokeObjectURL(Q),Q=URL.createObjectURL(a),a.path=Q,t.push(a))}return ee.length>0?(B(!1),J(M),Y(ee)):(B(!0),J(M),Y("")),t};function oe(e){e.preventDefault(),e.stopPropagation()}function re(e,t){let l=[...a,...e];return t||(l=l.filter(((e,t,l)=>t===l.findIndex((t=>t.place===e.place&&t.name===e.name))))),s(l),D(!1),l}function ie(e,t){if(e instanceof File){const t=a.filter((t=>t.name!==e.name));s(t)}else!function(e,t){const l=a.filter((t=>t.name!==e.name));s(l),d(e)}(e)}return t.createElement("div",null,t.createElement("div",{style:{display:"flex",width:"inherit"}},t.createElement(lt,V({customStyles:l,type:"label-text",labelInline:o,text:e,style:{display:"flex",marginBottom:`${o?0:"8px"}`,paddingBottom:"0px"}},F)),i&&t.createElement("div",{style:{marginLeft:"4px",color:`${Z.variant.error}`}},"*")),t.createElement(Tt,{theme:Z,inBuiltCss:P,defaultStyles:"dropzone-parent",backgroundColor:f,customDropzoneStyles:M?p:{},onDragLeave:function(e){oe(e),D(!1)},onDragOver:function(e){oe(e),D(!0)},onDrop:function(e){oe(e);const{files:t}=e.dataTransfer;var l=le(t);D(!0),F.onFilesAdded(re(l,h))},onClick:function(){G.current.click()},hover:O,dropValid:M,fileArr:a},t.createElement(jt,V({ref:G,valid:X,dropValid:M,type:"file",id:T,multiple:1!=h,onChange:function(e){e.target,D(!1);var t=le(e.target.files);t&&F.onFilesAdded(re(t,h))},onClick:e=>e.target.value=null},F)),M?t.createElement(t.Fragment,null,W?t.createElement(N,{icon:W,color:O?Z.bgColor:L,size:24}):t.createElement(N,{icon:"file-upload",color:O?Z.bgColor:Z.primary["primary-1"],size:24})):null,t.createElement(qt,{dropValid:M,valid:X,hover:O,backgroundColor:f,customTextStyles:u,inBuiltCss:P,defaultStyles:"dropzone-text-div"},M?t.createElement(t.Fragment,null,I?t.createElement("div",{style:{color:O?Z.bgColor:null}},I):t.createElement("div",null,t.createElement("span",{style:{color:O?Z.bgColor:Z.primary["primary-1"]}},"Choose a file"," "),t.createElement("span",{style:{color:O?Z.bgColor:Z.neutral["neutral-2"]}},"or"," "),t.createElement("span",{style:{color:O?Z.bgColor:Z.textColor}},"drag ",h?"it":"them"," here"))):t.createElement("div",null,t.createElement("span",{style:{color:Z.variant.error}},"Try again!!"," "),t.createElement("span",{style:{color:Z.textColor}},U||c)))),U===_?t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({themeColor:R,customStyles:z,type:"label-text",labelInline:o,text:E,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},F)),t.createElement(Qe,{contentTrigger:t.createElement("span",null,"read more"),headerTooltip:"",contentTooltip:JSON.stringify(K),footerTooltip:"",popperOptionsP:{placement:"right"},settings:{closeOnOutsideClick:!0,trigger:"click"},customTriggerStyle:{marginTop:"8px",marginLeft:"4px",textDecoration:"underline",color:Z.variant["primary-1"]},customBodyStyle:{wordWrap:"break-word"},customContentStyle:H,customStylesTPArightBefore:j,customStylesTPArightAfter:q})):"The file size is not uploaded"===U?t.createElement(lt,V({themeColor:R,customStyles:z,type:"label-text",labelInline:o,text:te,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},F)):"",a?.map(((e,l)=>t.createElement(Ht,{inBuiltCss:P,defaultStyles:"dropzone-file-div",key:`${e}-${l}`,customFileStyles:m},t.createElement(Zt,null,t.createElement(N,{icon:"file-icon",color:Z.primary["primary-1"]})),(File,t.createElement("a",{style:{color:Z.variant["primary-1"],marginLeft:"5px"},href:e?.path,target:"_blank",rel:"noreferrer",download:e.name}," ",e.name)),t.createElement(Ot,null,e?.otherInfo),t.createElement(Ft,{key:101*Math.random()|0,onClick:()=>ie(e)},t.createElement("div",{style:{marginRight:"7px"}},t.createElement(N,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:Z.primary["primary-1"]})),t.createElement(N,{icon:"cross-icon",color:Z.neutral["neutral-2"],size:13}))))))};Dt.propTypes={onFilesAdded:e.func,dropValid:e.bool,setDropValid:e.func,message:e.string,fileArr:e.array,setFileArr:e.func,customDropzoneStyles:e.object,customFileStyles:e.object,customTextStyles:e.object,customFileNameStyles:e.object,backgroundColor:e.string,messageSize:e.number,maxFilesAmount:e.number,minFilesAmount:e.number,fileSizeLimit:e.number,fileSizeNamingConvention:e.string,showSupportedFormats:e.bool,file_extensions:e.array,errorMessages:e.object,suggesionMessage:e.any,MessagelabelStyle:e.object,id:e.string,dropzoneContent:e.any,dropIcon:e.string,iconColor:e.string,singleFile:e.bool,customTooltipContentStyle:e.object,customStylesTPArightBefore:e.object,customStylesTPArightAfter:e.object},Dt.defaultProps={onFilesAdded:()=>null,dropValid:!0,message:"",fileArr:[],setFileArr:()=>{},customDropzoneStyles:{},customFileStyles:{},customTextStyles:{},customFileNameStyles:{},messageSize:100,additionalText:"",maxFilesAmount:5,minFilesAmount:1,fileSizeLimit:10,fileSizeNamingConvention:"MB",showSupportedFormats:!0,file_extensions:["doc","docx","jpg","pdf","png","xlsx","xlsr","xls"],errorMessages:{},MessagelabelStyle:{},suggesionMessage:"doc, docx, jpg, pdf, png, xlsx, xlsr, xls (Max 10MB)",id:"",iconColor:"black"};const Gt=m.div`
|
|
1403
1404
|
display: contents;
|
|
1404
1405
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1405
1406
|
|
|
1406
1407
|
${({WrapperDivStyle:e})=>e}
|
|
1407
|
-
`,
|
|
1408
|
+
`,Xt=m.input`
|
|
1408
1409
|
display: none;
|
|
1409
1410
|
min-height: 100vh;
|
|
1410
1411
|
padding: 0 0.5rem;
|
|
1411
1412
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1412
1413
|
|
|
1413
|
-
`,
|
|
1414
|
+
`,Jt=m.div`
|
|
1414
1415
|
height: 49px;
|
|
1415
1416
|
width: 49px;
|
|
1416
1417
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor};
|
|
@@ -1422,7 +1423,7 @@ float: right;
|
|
|
1422
1423
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
1423
1424
|
|
|
1424
1425
|
${({IconWrapperStyle:e})=>e}
|
|
1425
|
-
`,
|
|
1426
|
+
`,Ut=m.div`
|
|
1426
1427
|
// background-color: ${({theme:e})=>e.bgColor};
|
|
1427
1428
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor};
|
|
1428
1429
|
width: 134px;
|
|
@@ -1464,7 +1465,7 @@ float: right;
|
|
|
1464
1465
|
}
|
|
1465
1466
|
}
|
|
1466
1467
|
${({MainDivStyle:e})=>e};
|
|
1467
|
-
`,
|
|
1468
|
+
`,Yt=({image:e,setImage:l,WrapperDivStyle:n,MainDivStyle:c,IconWrapperStyle:a,iconSize:s,iconColor:d,isDisabled:p,id:m})=>{const[u,g]=r(),f=o(),h=b()||R,[y,x]=r(),[v,A]=r(!1);function C(e){e.preventDefault(),e.stopPropagation()}i((()=>{if(e&&v){const t=new FileReader;t.onloadend=()=>{g(t.result)},t.readAsDataURL(e)}else g(e)}),[e]);const w=e=>{e&&"image"===e.type.substr(0,5)?(A(!0),l(e)):A(!1)};return t.createElement(Gt,{onDragLeave:function(e){C(e),x(!1)},onDragOver:function(e){C(e),x(!0)},onDrop:function(e){C(e);const{files:t}=e.dataTransfer;w(t[0])},WrapperDivStyle:n,isDisabled:p},t.createElement(Ut,{isDisabled:p,theme:h,MainDivStyle:c,style:{backgroundImage:`url(${u})`},onClick:e=>{e.preventDefault(),f.current.click()}},!u&&t.createElement("div",{className:"icon-on-not-preview"},t.createElement(Jt,{IconWrapperStyle:a,theme:h,isDisabled:p},t.createElement("img",{src:U,alt:"",height:"40px",width:"48px"}))),t.createElement("div",{className:"icon-on-preview"},t.createElement(Jt,{IconWrapperStyle:a,isDisabled:p,theme:h},t.createElement(N,{icon:"camera-icon",size:s,color:d||h.variant["primary-1"]})))),t.createElement(Xt,{id:m,type:"file",ref:f,accept:"image/jpg, image/jpeg, image/png",onChange:e=>{A(!0),l(e.target.files[0])},disabled:p,isDisabled:p}))};Yt.propTypes={image:e.any,setImage:e.func,WrapperDivStyle:e.object,MainDivStyle:e.object,IconWrapperStyle:e.object,iconSize:e.number},Yt.defaultProps={image:null,setImage:()=>{},WrapperDivStyle:{},MainDivStyle:{},IconWrapperStyle:{},iconSize:28,id:"",isDisabled:!1};const Qt=m.div`
|
|
1468
1469
|
border: 1px solid
|
|
1469
1470
|
${({theme:e})=>e.border};
|
|
1470
1471
|
border-radius: 4px;
|
|
@@ -1484,7 +1485,7 @@ float: right;
|
|
|
1484
1485
|
fill: ${({theme:e})=>e.variant["primary-1"]};
|
|
1485
1486
|
}
|
|
1486
1487
|
}
|
|
1487
|
-
`;
|
|
1488
|
+
`;Qt.defaultProps={theme:R};const Nt=m.input`
|
|
1488
1489
|
width: 85%;
|
|
1489
1490
|
border: 0;
|
|
1490
1491
|
outline: 0;
|
|
@@ -1497,12 +1498,12 @@ float: right;
|
|
|
1497
1498
|
|
|
1498
1499
|
// custom styles
|
|
1499
1500
|
${({inputStyle:e})=>e}
|
|
1500
|
-
`;
|
|
1501
|
+
`;Nt.defaultProps={theme:R},u`
|
|
1501
1502
|
&:after {
|
|
1502
1503
|
content: ' *';
|
|
1503
1504
|
color: ${({theme:e})=>e.variant.error};
|
|
1504
1505
|
}
|
|
1505
|
-
`;const
|
|
1506
|
+
`;const Kt=m.label`
|
|
1506
1507
|
display: flex;
|
|
1507
1508
|
margin-right: 10px;
|
|
1508
1509
|
align-content: center;
|
|
@@ -1515,16 +1516,16 @@ float: right;
|
|
|
1515
1516
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
1516
1517
|
|
|
1517
1518
|
${({labelStyle:e})=>e}
|
|
1518
|
-
`;
|
|
1519
|
+
`;Kt.defaultProps={theme:R};const $t=u`
|
|
1519
1520
|
display: flex;
|
|
1520
1521
|
align-items: center;
|
|
1521
|
-
|
|
1522
|
-
${({labelInline:e})=>e
|
|
1522
|
+
`,_t=m.div`
|
|
1523
|
+
${({labelInline:e})=>e?$t:null}
|
|
1523
1524
|
|
|
1524
1525
|
> div {
|
|
1525
1526
|
flex: 1 0 auto;
|
|
1526
1527
|
}
|
|
1527
|
-
|
|
1528
|
+
`;_t.defaultProps={theme:R};const el=({label:e,inputValue:l,inputStyle:o,iconBefore:r,iconAfter:i,onChange:n,theme:c,id:a,labelStyle:s,...d})=>t.createElement(_t,d,e.length>0&&t.createElement(Kt,{labelStyle:s},e),t.createElement("div",null,t.createElement(Qt,d,t.createElement("div",{className:"input-icon"},r),t.createElement(Nt,V({},d,{inputStyle:o,value:l,onChange:e=>{const{value:t}=e.currentTarget;(""===t||/^[0-9\b.-]+$/.test(t))&&n(t)},type:"number",id:a})),t.createElement("div",{className:"input-icon",style:{position:"absolute",right:"7px"}},i))));el.propTypes={theme:e.object,label:e.string,labelInline:e.bool,inputValue:e.any,inputStyle:e.object,id:e.string,labelStyle:e.object},el.defaultProps={theme:R,label:"",labelInline:!1,inputStyle:{},inputValue:null,id:"",labelStyle:{}};const tl=m.div`
|
|
1528
1529
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1529
1530
|
|
|
1530
1531
|
//Set the styles from the default styles object
|
|
@@ -1550,7 +1551,7 @@ float: right;
|
|
|
1550
1551
|
|
|
1551
1552
|
// custom styles
|
|
1552
1553
|
${({textBoxStyle:e})=>e}
|
|
1553
|
-
`;
|
|
1554
|
+
`;tl.defaultProps={theme:R};const ll=m.input`
|
|
1554
1555
|
width: 85%;
|
|
1555
1556
|
|
|
1556
1557
|
|
|
@@ -1563,18 +1564,18 @@ float: right;
|
|
|
1563
1564
|
.sc-furwcr bxRAoq {
|
|
1564
1565
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
1565
1566
|
}
|
|
1566
|
-
`;
|
|
1567
|
+
`;ll.defaultProps={theme:R};const ol=u`
|
|
1567
1568
|
display: flex;
|
|
1568
1569
|
gap: 7px;
|
|
1569
1570
|
align-items: flex-start;
|
|
1570
|
-
`,
|
|
1571
|
-
${({labelInline:e})=>e?
|
|
1571
|
+
`,rl=m.div`
|
|
1572
|
+
${({labelInline:e})=>e?ol:null}
|
|
1572
1573
|
.err-text {
|
|
1573
1574
|
color: ${({errMsgColor:e,theme:t})=>e||t.variant.error};
|
|
1574
1575
|
margin-top: 5px;
|
|
1575
1576
|
font-size: 10px;
|
|
1576
1577
|
}
|
|
1577
|
-
`;
|
|
1578
|
+
`;rl.defaultProps={theme:R};const il=({passwordRules:e,textBoxStyle:l,labelStyle:o,inputStyle:i,errMsg:n,required:c,label:a,labelInline:s,isValid:d,rulesStyle:p,id:m,showHideIcon:u,errMsgColor:g,...f})=>{r(!1);const[h,y]=r("password"),x=b()||R;return t.createElement(rl,V({labelInline:s,inBuiltCss:P,errMsgColor:g,theme:x},f),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:o,type:"label-text",text:a,errMsg:n,style:{display:"flex",marginBottom:`${s?0:"8px"}`,paddingBottom:"0px"}},f)),c&&t.createElement("div",{style:{marginLeft:"4px",marginRight:"5px",color:`${x.variant.error}`}},"*")),t.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"flex-start"}},t.createElement("div",{style:{width:"100%"}},t.createElement(tl,V({required:c,theme:x,textBoxStyle:l,isValid:d,defaultWrapperStyle:"textbox-wrapper",inBuiltCss:P},f),t.createElement(ll,V({inputStyle:i,type:h,autocomplete:"off",id:m,theme:x,defaultInputStyle:"input-wrapper",inBuiltCss:P},f)),!0===u?t.createElement("div",{className:"input-icon",onClick:()=>{"password"===h?y("text"):"text"===h&&y("password")},style:{position:"absolute",right:"7px"}},"text"===h?t.createElement(N,{icon:"eye-show"}):t.createElement(N,{icon:"eye-hide"})):""),n.length>0&&t.createElement("div",{className:"err-text"},n)),e?t.createElement("div",{style:{...p,marginLeft:"5px"}},e):""))};il.propTypes={inBuiltCss:e.object,theme:e.object,label:e.string,required:e.bool,labelInline:e.bool,errMsg:e.string,textBoxStyle:e.object,labelStyle:e.object,inputStyle:e.object,rulesStyle:e.object,id:e.string,showHideIcon:e.bool},il.defaultProps={inBuiltCss:P,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",textBoxStyle:{},labelStyle:{},inputStyle:{},passwordRules:"",rulesStyle:{},id:"",showHideIcon:!0};const nl=m.div`
|
|
1578
1579
|
box-sizing: initial;
|
|
1579
1580
|
|
|
1580
1581
|
//Set the styles from the default styles object
|
|
@@ -1584,7 +1585,7 @@ float: right;
|
|
|
1584
1585
|
|
|
1585
1586
|
// custom styles
|
|
1586
1587
|
${({radioOuterCircleStyle:e})=>e}
|
|
1587
|
-
`;
|
|
1588
|
+
`;nl.defaultProps={theme:R};const cl=m.div`
|
|
1588
1589
|
box-sizing: initial;
|
|
1589
1590
|
|
|
1590
1591
|
//Set the styles from the default styles object
|
|
@@ -1596,7 +1597,7 @@ float: right;
|
|
|
1596
1597
|
|
|
1597
1598
|
// custom styles
|
|
1598
1599
|
${({radioInnerCircleStyle:e})=>e}
|
|
1599
|
-
`;
|
|
1600
|
+
`;cl.defaultProps={theme:R};const al=m.div`
|
|
1600
1601
|
//Set the styles from the default styles object
|
|
1601
1602
|
${({inBuiltCss:e,defaultOptionStyle:t})=>T(e,t)}
|
|
1602
1603
|
margin-right: ${({inline:e})=>e?"":"30px"};
|
|
@@ -1604,7 +1605,7 @@ float: right;
|
|
|
1604
1605
|
|
|
1605
1606
|
// custom styles
|
|
1606
1607
|
${({optionStyle:e})=>e}
|
|
1607
|
-
`;
|
|
1608
|
+
`;al.defaultProps={theme:R};const sl=m.div`
|
|
1608
1609
|
margin-bottom: ${({inline:e})=>e?"":"14px"};
|
|
1609
1610
|
cursor: pointer;
|
|
1610
1611
|
align-items: center;
|
|
@@ -1613,11 +1614,11 @@ float: right;
|
|
|
1613
1614
|
|
|
1614
1615
|
// custom styles
|
|
1615
1616
|
${({WrapperDivStyle:e})=>e}
|
|
1616
|
-
`,
|
|
1617
|
+
`,dl=m.div`
|
|
1617
1618
|
display: ${({inline:e})=>e?"flex":"inline-block"};
|
|
1618
1619
|
width: max-content;
|
|
1619
1620
|
margin: 0;
|
|
1620
|
-
`,
|
|
1621
|
+
`,pl=({radioOuterCircleStyle:e,radioInnerCircleStyle:l,labelStyle:o,label:r,optionStyle:i,options:n,selectedCircleColor:c,selectedOptionTextColor:a,onChange:s,selected:d,width:p,height:m,inline:u,defaultBorderColor:g,defaultOptionColor:f,WrapperDivStyle:h,...y})=>{const x=b()||R;return t.createElement("div",null,t.createElement(lt,{customStyles:o,type:"radio-label",text:r}),t.createElement(dl,{inline:u},n.map(((o,r)=>t.createElement(sl,{WrapperDivStyle:h,key:r+101*Math.random(),id:o.id,inline:u,onClick:()=>{!o?.disabled&&s(o.value)}},t.createElement(nl,{theme:x,inBuiltCss:P,defaultBorderColor:g,selectedCircleColor:c,radioOuterCircleStyle:{...e,cursor:o?.disabled?"not-allowed ":" pointer",borderColor:o?.disabled&&o?.disabledColor},defaultRadioOuterCircleStyle:"radio-outer-circle",value:o.value,selected:!o?.disabled&&d},t.createElement(cl,{inBuiltCss:P,theme:x,width:p,height:m,selectedCircleColor:c,radioInnerCircleStyle:{...l,cursor:o?.disabled?"not-allowed ":" pointer",backgroundColor:o?.disabled?"transparent":o?.value===d?l?.backgroundColor:"transparent"},defaultRadioInnerCircleStyle:"radio-inner-circle",value:o.value,selected:d})),t.createElement(al,{defaultOptionColor:f,optionStyle:{...i,cursor:o?.disabled?"not-allowed ":" pointer",color:o?.disabled&&o?.disabledColor},inBuiltCss:P,defaultOptionStyle:"option-text",selectedOptionTextColor:a,theme:x,selected:!o?.disabled&&o.value===d},o.label))))))};pl.propTypes={label:e.string,labelStyle:e.object,inline:e.bool,options:e.array,optionStyle:e.object,WrapperDivStyle:e.object,selected:e.string,onChange:e.func,defaultOptionColor:e.string,defaultBorderColor:e.string,radioOuterCircleStyle:e.object,radioInnerCircleStyle:e.object,width:e.string,height:e.string,selectedCircleColor:e.string,selectedOptionTextColor:e.string},pl.defaultProps={label:"",labelStyle:{},inline:!1,options:[],optionStyle:{},selected:"one",onChange:()=>{},radioOuterCircleStyle:{},radioInnerCircleStyle:{},width:"14px",height:"14px",WrapperDivStyle:{}};const ml=m.div`
|
|
1621
1622
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1622
1623
|
|
|
1623
1624
|
//Set the styles from the default styles object
|
|
@@ -1638,7 +1639,7 @@ float: right;
|
|
|
1638
1639
|
${({textBoxStyle:e})=>e}
|
|
1639
1640
|
|
|
1640
1641
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor}
|
|
1641
|
-
`,
|
|
1642
|
+
`,bl=m.input`
|
|
1642
1643
|
color: ${({theme:e})=>e.black};
|
|
1643
1644
|
width: 85%;
|
|
1644
1645
|
white-space: nowrap;
|
|
@@ -1654,18 +1655,18 @@ float: right;
|
|
|
1654
1655
|
color: ${R.variant["neutral-3"]};
|
|
1655
1656
|
}
|
|
1656
1657
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.bgColor}};
|
|
1657
|
-
`,
|
|
1658
|
+
`,ul=u`
|
|
1658
1659
|
display: flex;
|
|
1659
1660
|
gap: 7px;
|
|
1660
1661
|
align-items: center;
|
|
1661
|
-
`,
|
|
1662
|
-
${({labelInline:e})=>e?
|
|
1662
|
+
`,gl=m.div`
|
|
1663
|
+
${({labelInline:e})=>e?ul:null}
|
|
1663
1664
|
.err-text {
|
|
1664
1665
|
color: ${({errMsgColor:e,theme:t})=>e||t.variant.error};
|
|
1665
1666
|
margin-top: 5px;
|
|
1666
1667
|
font-size: 10px;
|
|
1667
1668
|
}
|
|
1668
|
-
`,
|
|
1669
|
+
`,fl=({textBoxStyle:e,labelStyle:l,inputStyle:o,errMsg:r,required:i,label:n,labelInline:c,iconBefore:a,iconAfter:s,isValid:d,type:p,isDisabled:m,id:u,errMsgColor:g,iconAfterStyle:f,iconBeforeStyle:h,ref:y,pattern:x,iconColorOnFocus:v,...A})=>{const C=b()||R;return t.createElement(gl,V({labelInline:c,theme:C,errMsgColor:g},A),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:l,type:"label-text",labelInline:c,text:n,errMsg:r,style:{display:"flex",marginBottom:`${c?0:"8px"}`,paddingBottom:"0px"}},A)),i&&t.createElement("div",{style:{marginLeft:"4px",color:`${C.variant.error}`}},"*")),t.createElement("div",null,t.createElement(ml,V({required:i,isDisabled:m,theme:C,textBoxStyle:e,isValid:d,inBuiltCss:P,defaultWrapperStyle:"textbox-wrapper",iconColorOnFocus:v},A),t.createElement("div",{className:"input-icon",style:{...h}},a),t.createElement(bl,V({inputStyle:o,type:p,theme:C,id:u,defaultInputStyle:"input-wrapper",isDisabled:m,disabled:m,ref:y,pattern:x},A)),t.createElement("div",{className:"input-icon",style:{...f}},s))),r.length>0&&t.createElement("div",{className:"err-text"},r))};fl.propTypes={inBuiltCss:e.object,label:e.string,required:e.bool,labelInline:e.bool,errMsg:e.string,iconBefore:e.any,iconAfter:e.any,textBoxStyle:e.object,labelStyle:e.object,inputStyle:e.object,type:e.string,isDisabled:e.bool,id:e.string,errMsgColor:e.string,iconAfterStyle:e.object,iconBeforeStyle:e.object,iconColorOnFocus:e.string},fl.defaultProps={inBuiltCss:P,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textBoxStyle:{},labelStyle:{},inputStyle:{},type:"text",isDisabled:!1,id:"",iconAfterStyle:{},iconBeforeStyle:{},iconColorOnFocus:""};const hl=({label:e,placeholder:l,handleSearch:o,searchInput:r,customStylesForm:i,customStyleObject:n,textBoxStyle:c,id:a,...s})=>t.createElement(fl,V({iconAfter:t.createElement(N,{icon:"magnifier-icon"}),label:e,textBoxStyle:c,placeholder:l,ref:r,onChange:o,id:a},s)),yl=m.div`
|
|
1669
1670
|
//Set the styles from the default styles object
|
|
1670
1671
|
${({inBuiltCss:e,defaultParentDivStyle:t})=>T(e,t)}
|
|
1671
1672
|
|
|
@@ -1674,7 +1675,7 @@ float: right;
|
|
|
1674
1675
|
&:focus-within {
|
|
1675
1676
|
border-color: ${({activeColor:e,theme:t})=>e||t.primary["primary-1"]};
|
|
1676
1677
|
}
|
|
1677
|
-
`,
|
|
1678
|
+
`,xl=m.div`
|
|
1678
1679
|
//Set the styles from the default styles object
|
|
1679
1680
|
${({inBuiltCss:e,defaultWrapperDivStyle:t})=>T(e,t)}
|
|
1680
1681
|
|
|
@@ -1686,7 +1687,7 @@ float: right;
|
|
|
1686
1687
|
border-left: ${({signIcon:e})=>e?"":"none"};
|
|
1687
1688
|
margin-left: ${({signIcon:e})=>e?"":"42px"};
|
|
1688
1689
|
position: ${({signIcon:e})=>e?"absolute":""};
|
|
1689
|
-
`,
|
|
1690
|
+
`,vl=m.div`
|
|
1690
1691
|
width: 39px;
|
|
1691
1692
|
height: 44px;
|
|
1692
1693
|
display: flex;
|
|
@@ -1696,7 +1697,7 @@ float: right;
|
|
|
1696
1697
|
border-bottom: ${({penIcon:e,isMyInputFocused:t,activeColor:l,defaultColor:o,theme:r})=>e?t?`1px solid ${l||r.primary["primary-1"]}`:`1px solid ${o||r.neutral["neutral-3"]}`:""};
|
|
1697
1698
|
background-color: rgba(255, 255, 255, 0.05);
|
|
1698
1699
|
cursor: pointer;
|
|
1699
|
-
`,
|
|
1700
|
+
`,Al=m.input`
|
|
1700
1701
|
${({inBuiltCss:e,defaultInputStyle:t})=>T(e,t)}
|
|
1701
1702
|
|
|
1702
1703
|
border-bottom: ${({value:e,defaultColor:t,theme:l})=>e.length>0?"none":t};
|
|
@@ -1721,17 +1722,17 @@ float: right;
|
|
|
1721
1722
|
|
|
1722
1723
|
// custom styles
|
|
1723
1724
|
${({customInputStyle:e})=>e}
|
|
1724
|
-
`,
|
|
1725
|
+
`,Cl=m.div`
|
|
1725
1726
|
position: relative;
|
|
1726
1727
|
width: inherit;
|
|
1727
1728
|
display: flex;
|
|
1728
1729
|
margin: 4px;
|
|
1729
|
-
`,
|
|
1730
|
+
`,wl=m.div`
|
|
1730
1731
|
padding-left: 2px;
|
|
1731
1732
|
display: flex;
|
|
1732
1733
|
justify-content: center;
|
|
1733
1734
|
cursor: pointer;
|
|
1734
|
-
`,
|
|
1735
|
+
`,Sl=({onChange:e,activeColor:l,defaultColor:n,placeholderColor:c,placeholderText:a,customInputStyle:s,pointsArray:d,setPointsArray:p,value:m,setValue:u,valueForSignatureDrawing:g,setValueForSignatureDrawing:f,imageURL:h,setImageURL:y,id:x,...v})=>{const A=b()||R,[C,w]=r("default"),[k,E]=r(!1),[z,V]=r(!1),M=o(null);i((()=>{z&&(I(),f(M.current))}),[!0===z]);const B=()=>{u(""),f(M.current),M.current&&M.current.clear(),E(!1),V(!1)},I=()=>(p(M.current.toData()),y(M.current.toDataURL("image/png")),[h,d]);return t.createElement(yl,{inBuiltCss:P,defaultParentDivStyle:"signature-parent-div",isMyInputFocused:k,selected:C,activeColor:l,defaultColor:n,theme:A},t.createElement(xl,{inBuiltCss:P,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:l,defaultColor:n,selected:C,isMyInputFocused:k,signIcon:!0,theme:A},t.createElement(vl,{activeColor:l,defaultColor:n,isMyInputFocused:k,theme:A,penIcon:!0,onClick:()=>{w("default"),B()}},t.createElement(N,{icon:"pen-icon",color:"default"===C?l||A.primary["primary-1"]:A.black})),t.createElement(vl,{activeColor:l,defaultColor:n,theme:A,isMyInputFocused:k,penIcon:!1,onClick:()=>{w("sign"),B()}},t.createElement(N,{icon:"sign-icon",color:"default"!==C?l||A.primary["primary-1"]:A.black}))),t.createElement(xl,{inBuiltCss:P,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:l,defaultColor:n,theme:A,selected:C,isMyInputFocused:k,signIcon:!1,onTouchStart:()=>{}},"default"===C?t.createElement(Al,{inBuiltCss:P,defaultInputStyle:"signature-input-text",placeholder:a,placeholderColor:c,customInputStyle:s,onBlur:()=>E(!1),onFocus:()=>E(!0),id:x,value:m,defaultColor:n,theme:A,onChange:e=>u(e.target.value)}):t.createElement(Cl,{onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onClick:()=>{V(!0),I()}},t.createElement(S,{ref:M,id:x,redrawOnResize:!0,height:75,options:{minWidth:1,maxWidth:1,penColor:"#444444"}})),(m||z)&&t.createElement(wl,{selected:C,onClick:()=>B()},t.createElement(N,{icon:"cross-icon",color:n||A.neutral["neutral-3"]}))))};Sl.propTypes={activeColor:e.string,defaultColor:e.string,placeholderColor:e.string,placeholderText:e.string,customInputStyle:e.object,pointsArray:e.any,setPointsArray:e.func,value:e.string,setValue:e.func,imageURL:e.string,setImageURL:e.func,id:e.string},Sl.defaultProps={customInputStyle:{},placeholderText:"Type your signature here",pointsArray:null,setPointsArray:()=>{},value:"",setValue:()=>{},imageURL:"",setImageURL:()=>{},setValueForSignatureDrawing:()=>{},id:""};const kl=m.div`
|
|
1735
1736
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1736
1737
|
//Set the styles from the default styles object
|
|
1737
1738
|
${({inBuiltCss:e,defaultWrapperStyle:t})=>T(e,t)}
|
|
@@ -1753,19 +1754,19 @@ float: right;
|
|
|
1753
1754
|
|
|
1754
1755
|
// custom styles
|
|
1755
1756
|
${({textAreaStyle:e})=>e}
|
|
1756
|
-
`,
|
|
1757
|
+
`,El=m.textarea`
|
|
1757
1758
|
//Set the styles from the default styles object
|
|
1758
1759
|
${({inBuiltCss:e,defaultInputStyle:t})=>T(e,t)}
|
|
1759
1760
|
margin: 0;
|
|
1760
1761
|
overflow: auto;
|
|
1761
1762
|
resize: vertical // custom styles
|
|
1762
1763
|
${({inputStyle:e})=>e};
|
|
1763
|
-
`,
|
|
1764
|
+
`,zl=u`
|
|
1764
1765
|
display: flex;
|
|
1765
1766
|
gap: 7px;
|
|
1766
1767
|
align-items: center;
|
|
1767
|
-
`,
|
|
1768
|
-
${({labelInline:e})=>e?
|
|
1768
|
+
`,Vl=m.div`
|
|
1769
|
+
${({labelInline:e})=>e?zl:null}
|
|
1769
1770
|
${({customStylesForm:e})=>{if(e)return{...e}}}
|
|
1770
1771
|
position: relative;
|
|
1771
1772
|
.err-text {
|
|
@@ -1773,7 +1774,7 @@ float: right;
|
|
|
1773
1774
|
margin-top: 5px;
|
|
1774
1775
|
font-size: 10px;
|
|
1775
1776
|
}
|
|
1776
|
-
`,
|
|
1777
|
+
`,Ml=t.forwardRef((({customStylesForm:e,textAreaStyle:l,labelStyle:o,inputStyle:r,errMsg:i,required:n,label:c,labelInline:a,iconBefore:s,iconAfter:d,isValid:p,rows:m,cols:u,id:g,...f},h)=>{const y=b()||R;return t.createElement(Vl,V({labelInline:a,customStylesForm:e,theme:y},f),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,V({customStyles:o,type:"label-text",labelInline:a,text:c,errMsg:i,style:{display:"flex",marginBottom:`${a?0:"8px"}`,paddingBottom:"0px"}},f)),n&&t.createElement("div",{style:{marginLeft:"4px",color:`${y.variant.error}`}},"*")),t.createElement(kl,V({theme:y,required:n,textAreaStyle:l,isValid:p,inBuiltCss:P,defaultWrapperStyle:"textbox-wrapper"},f),t.createElement("div",{className:"input-icon"},s),t.createElement(El,V({ref:h,inputStyle:r,defaultInputStyle:"textarea-wrapper",cols:u,rows:m,inBuiltCss:P,id:g},f,{size:"1"})),t.createElement("div",{className:"input-icon"},d)),t.createElement("div",{className:"err-text"},i))}));Ml.propTypes={rows:e.number,label:e.string,required:e.bool,labelInline:e.bool,errMsg:e.string,iconBefore:e.any,iconAfter:e.any,textAreaStyle:e.object,labelStyle:e.object,inputStyle:e.object,id:e.string},Ml.defaultProps={label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textAreaStyle:{},labelStyle:{},inputStyle:{},rows:3,id:""};const Bl=m.div`
|
|
1777
1778
|
color: #a9b1b8;
|
|
1778
1779
|
font-size: 21px;
|
|
1779
1780
|
border: 1px solid
|
|
@@ -1787,7 +1788,7 @@ float: right;
|
|
|
1787
1788
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
1788
1789
|
outline: none;
|
|
1789
1790
|
}
|
|
1790
|
-
`,
|
|
1791
|
+
`,Il=m.input`
|
|
1791
1792
|
border: 0;
|
|
1792
1793
|
outline: 0;
|
|
1793
1794
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
@@ -1797,23 +1798,23 @@ float: right;
|
|
|
1797
1798
|
width: 24px;
|
|
1798
1799
|
text-align:center;
|
|
1799
1800
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1800
|
-
`,
|
|
1801
|
+
`,Wl=u`
|
|
1801
1802
|
&:after {
|
|
1802
1803
|
content: ' *';
|
|
1803
1804
|
color: ${({theme:e})=>e.variant.error};
|
|
1804
1805
|
}
|
|
1805
|
-
`,
|
|
1806
|
+
`,Ll=m.label`
|
|
1806
1807
|
display: block;
|
|
1807
1808
|
margin-bottom: ${({labelInline:e,errMsg:t})=>e&&t?"18px":"8px"};
|
|
1808
1809
|
margin-right: ${({labelInline:e})=>e?"8px":""};
|
|
1809
1810
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
1810
|
-
${({required:e})=>e?
|
|
1811
|
+
${({required:e})=>e?Wl:null}
|
|
1811
1812
|
padding-bottom: 0px;
|
|
1812
|
-
`,
|
|
1813
|
+
`,Rl=u`
|
|
1813
1814
|
display: flex;
|
|
1814
1815
|
align-items: center;
|
|
1815
|
-
`,
|
|
1816
|
-
${({labelInline:e})=>e?
|
|
1816
|
+
`,Pl=m.div`
|
|
1817
|
+
${({labelInline:e})=>e?Rl:null}
|
|
1817
1818
|
.err-text {
|
|
1818
1819
|
color: ${({theme:e})=>e.variant.error};
|
|
1819
1820
|
margin-top: 5px;
|
|
@@ -1823,7 +1824,7 @@ float: right;
|
|
|
1823
1824
|
> div {
|
|
1824
1825
|
flex: 1 0 auto;
|
|
1825
1826
|
}
|
|
1826
|
-
`,
|
|
1827
|
+
`,Tl=m.button`
|
|
1827
1828
|
border: none;
|
|
1828
1829
|
outline: none;
|
|
1829
1830
|
border-radius: 4px;
|
|
@@ -1832,9 +1833,9 @@ float: right;
|
|
|
1832
1833
|
padding: 5px 6px;
|
|
1833
1834
|
font-size: 18px;
|
|
1834
1835
|
cursor: pointer;
|
|
1835
|
-
`,
|
|
1836
|
+
`,Hl=({label:e,errMsg:l,hour:o,minute:r,period:i,onChange:n,id:c,...a})=>{const s=b()||R;return t.createElement(Pl,V({theme:s},a),t.createElement(Ll,V({theme:s},a,{errMsg:l}),e),t.createElement("div",null,t.createElement(Bl,V({theme:s,id:c},a),t.createElement(Il,{theme:s,value:o,onChange:function(e){const t=e.currentTarget.value>12?12:parseFloat(e.currentTarget.value)||0;n({hour:t,minute:r,period:i})}}),":",t.createElement(Il,{theme:s,value:r,onChange:function(e){const t=e.currentTarget.value>59?59:parseFloat(e.currentTarget.value)||0;n({hour:o,minute:t,period:i})}}),t.createElement(Tl,{theme:s,onClick:function(e){n({hour:o,minute:r,period:"AM"===i?"PM":"AM"})}},i)),t.createElement("div",{className:"err-text"},l)))};Hl.propTypes={label:e.string,hour:e.number.isRequired,minute:e.number.isRequired,period:e.string.isRequired,required:e.bool,labelInline:e.bool,isValid:e.bool,errMsg:e.string,id:e.string},Hl.defaultProps={label:"",hour:0,minute:0,period:"AM",required:!1,labelInline:!1,isValid:!0,errMsg:"",id:""};const jl=m.div`
|
|
1836
1837
|
${({inBuiltCss:e,defaultCheckBoxWrapperStyle:t})=>T(e,t)}
|
|
1837
|
-
`,
|
|
1838
|
+
`,ql=m.label`
|
|
1838
1839
|
|
|
1839
1840
|
left: ${({labelPosition:e})=>"right"===e?"initial":"50px"};
|
|
1840
1841
|
margin-right: ${({labelPosition:e})=>"left"===e?"30px":"0px"};
|
|
@@ -1860,7 +1861,7 @@ float: right;
|
|
|
1860
1861
|
// custom styles
|
|
1861
1862
|
${({customSwitchStyle:e})=>e}
|
|
1862
1863
|
}
|
|
1863
|
-
`,
|
|
1864
|
+
`,Fl=m.input.attrs({type:"checkbox"})`
|
|
1864
1865
|
opacity: 0;
|
|
1865
1866
|
z-index: 1;
|
|
1866
1867
|
border-radius: 31px;
|
|
@@ -1871,7 +1872,7 @@ float: right;
|
|
|
1871
1872
|
left: ${({labelPosition:e})=>"right"===e?"initial":"50px"};
|
|
1872
1873
|
|
|
1873
1874
|
|
|
1874
|
-
`,
|
|
1875
|
+
`,Zl=m.span`
|
|
1875
1876
|
|
|
1876
1877
|
margin-right: ${({labelPosition:e})=>"30px"};
|
|
1877
1878
|
|
|
@@ -1880,33 +1881,33 @@ float: right;
|
|
|
1880
1881
|
|
|
1881
1882
|
// custom styles
|
|
1882
1883
|
${({optionStyle:e})=>e}
|
|
1883
|
-
`,
|
|
1884
|
+
`,Ol=({checked:e,customSwitchStyle:l,customToggleBoxStyle:o,backgroundColor:r,disabledColor:i,switchColor:n,onClick:c,trueLabel:a,falseLabel:s,optionStyle:d,labelPosition:p,id:m,isDisabled:u,...g})=>{const f=b()||R;return t.createElement(jl,V({inBuiltCss:P,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},g),"left"===p&&t.createElement(Zl,V({optionStyle:d,inBuiltCss:P,labelPosition:p,defaultOptionTextStyle:"toggle-switch-option-text"},g),e?a:s),t.createElement(Fl,V({},g,{labelPosition:p,id:m,inBuiltCss:P,defaultCheckBoxStyle:"toggle-switch-checkbox",onClick:()=>{c(!e)},isChecked:e,disabled:u,isDisabled:u})),t.createElement(ql,V({},g,{labelPosition:p,htmlFor:m,customToggleBoxStyle:o,customSwitchStyle:l,disabledColor:i,backgroundColor:r,switchColor:n,inBuiltCss:P,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:f,isDisabled:u})),"right"===p&&t.createElement(Zl,V({optionStyle:d,inBuiltCss:P,labelPosition:p,defaultOptionTextStyle:"toggle-switch-option-text"},g),e?a:s))};Ol.propTypes={customToggleBoxStyle:e.object,customSwitchStyle:e.object,backgroundColor:e.string,checked:e.bool,trueLabel:e.string,falseLabel:e.string,id:e.string,labelPosition:e.string,isDisabled:e.bool},Ol.defaultProps={checked:!1,trueLabel:"Yes",falseLabel:"No",customSwitchStyle:{},customToggleBoxStyle:{},id:"",labelPosition:"right",isDisabled:!1};const Dl=m.div`
|
|
1884
1885
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1885
1886
|
padding: 24px 8px;
|
|
1886
1887
|
${({commentBodyStyle:e})=>e};
|
|
1887
|
-
`,
|
|
1888
|
+
`,Gl=m.div`
|
|
1888
1889
|
margin-bottom: 24px;
|
|
1889
1890
|
|
|
1890
1891
|
${({commentWrapperStyle:e})=>e};
|
|
1891
|
-
`,
|
|
1892
|
+
`,Xl=m.div`
|
|
1892
1893
|
display: flex;
|
|
1893
1894
|
flex-direction: row;
|
|
1894
1895
|
width: 100%;
|
|
1895
1896
|
justify-content: flex-start;
|
|
1896
1897
|
align-items: center;
|
|
1897
1898
|
${({commentHeadStyle:e})=>e};
|
|
1898
|
-
`,
|
|
1899
|
+
`,Jl=m.span`
|
|
1899
1900
|
margin-left: 24px;
|
|
1900
1901
|
font-size: 14px;
|
|
1901
1902
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
1902
1903
|
font-weight: 400;
|
|
1903
1904
|
${({dateTimeStyle:e})=>e};
|
|
1904
|
-
`,
|
|
1905
|
+
`,Ul=m.div`
|
|
1905
1906
|
margin: 0.75rem 0 0 3.5rem;
|
|
1906
1907
|
font-size: 16px;
|
|
1907
1908
|
color: ${R.variant["graph-6"]};
|
|
1908
1909
|
${({commentDivStyle:e})=>e};
|
|
1909
|
-
`,
|
|
1910
|
+
`,Yl=m.div`
|
|
1910
1911
|
display: flex;
|
|
1911
1912
|
justify-content: flex-start;
|
|
1912
1913
|
align-items: flex-start;
|
|
@@ -1915,13 +1916,13 @@ float: right;
|
|
|
1915
1916
|
padding: 16px 24px;
|
|
1916
1917
|
border-radius: 0px 0px 4px 4px;
|
|
1917
1918
|
${({inputWrapperStyle:e})=>e};
|
|
1918
|
-
`,
|
|
1919
|
+
`,Ql=m.div`
|
|
1919
1920
|
display: inline-flex;
|
|
1920
1921
|
margin-top: 16px;
|
|
1921
|
-
`,
|
|
1922
|
+
`,Nl=m.div`
|
|
1922
1923
|
width: 100%;
|
|
1923
1924
|
margin-left: 16px;
|
|
1924
|
-
`,
|
|
1925
|
+
`,Kl=({inputValue:e,setInputValue:l,commentArray:o,commentBodyStyle:i,commentWrapperStyle:n,commentHeadStyle:c,dateTimeStyle:a,commentDivStyle:s,inputWrapperStyle:d,onSave:p,myInfo:m,placeholder:u,loading:g,btnText:f,...h})=>{const y=b()||R,[x,v]=r(!1);return t.createElement(Dl,{commentWrapperStyle:n,theme:y},g?t.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:"24px"}},t.createElement(Be,{size:26})):o.map(((e,l)=>{const{name:o,date:r,comment:n,image:d}=e;return t.createElement(Gl,{key:l,commentBodyStyle:i,theme:y},t.createElement(Xl,{commentHeadStyle:c},t.createElement(de,V({user:{fullName:o,userName:o,url:d},toggleName:!0,size:"LG"},h)),t.createElement(Jl,{dateTimeStyle:a,theme:y},r)),t.createElement(Ul,{commentDivStyle:s},n))})),t.createElement(Yl,{theme:y,inputWrapperStyle:d},t.createElement(de,{user:{fullName:m?.fullName,userName:m?.userName,url:m?.url},toggleName:!1,customStylesImage:{height:"36px",width:"36px"},customStylesContainer:{marginTop:"7px"}}),t.createElement(Nl,null,t.createElement(fl,{value:e,onChange:e=>l(e.target.value),placeholder:u,isValid:!0,inputStyle:{height:"23px"},onFocus:e=>v(!0)}),x&&t.createElement(Ql,null,t.createElement(Te,V({size:"sm",onClick:p},h),f.save),t.createElement(Le,{size:"sm",btnStyle:{color:y.variant["neutral-1"]},onClick:e=>v(!1)},f.cancel)))))};Kl.propTypes={commentBodyStyle:e.object,commentWrapperStyle:e.object,commentHeadStyle:e.object,dateTimeStyle:e.object,commentDivStyle:e.object,inputWrapperStyle:e.object,onSave:e.func,commentArray:e.array,inputValue:e.string,setInputValue:e.func,myInfo:e.object,placeholder:e.string,loading:e.bool,btnText:e.object},Kl.defaultProps={commentBodyStyle:{},commentWrapperStyle:{},commentHeadStyle:{},dateTimeStyle:{},commentDivStyle:{},inputWrapperStyle:{},onSave:()=>{},commentArray:[],inputValue:"",setInputValue:()=>{},myInfo:{},placeholder:"",loading:!1,btnText:{save:"Save",cancel:"Cancel"}};const $l=m.div`
|
|
1925
1926
|
//Set the styles from the default styles object
|
|
1926
1927
|
${({theme:e,type:t})=>T(e,t)}
|
|
1927
1928
|
@media (max-width: 980px) {
|
|
@@ -1929,7 +1930,7 @@ float: right;
|
|
|
1929
1930
|
}
|
|
1930
1931
|
// custom styles
|
|
1931
1932
|
${({customStyles:e})=>e}
|
|
1932
|
-
|
|
1933
|
+
`,_l=({theme:e,type:l,customStyles:o,...r})=>t.createElement($l,V({theme:e,customStyles:o,type:l},r),r.children);_l.propTypes={theme:e.object,customStyles:e.object,type:e.string},_l.defaultProps={theme:P,customStyles:null,type:"content"};const eo=m.div`
|
|
1933
1934
|
width: 100%;
|
|
1934
1935
|
display: flex;
|
|
1935
1936
|
flex-direction: column;
|
|
@@ -1941,7 +1942,7 @@ float: right;
|
|
|
1941
1942
|
button:focus {
|
|
1942
1943
|
outline: none;
|
|
1943
1944
|
}
|
|
1944
|
-
`,
|
|
1945
|
+
`,to=m.div`
|
|
1945
1946
|
position: relative;
|
|
1946
1947
|
display: flex;
|
|
1947
1948
|
width: 100%;
|
|
@@ -2025,7 +2026,7 @@ float: right;
|
|
|
2025
2026
|
margin-top: 0;
|
|
2026
2027
|
}
|
|
2027
2028
|
}
|
|
2028
|
-
`,
|
|
2029
|
+
`,lo=m.span`
|
|
2029
2030
|
color: #2e56f4;
|
|
2030
2031
|
font-style: normal;
|
|
2031
2032
|
font-weight: normal;
|
|
@@ -2035,14 +2036,14 @@ float: right;
|
|
|
2035
2036
|
margin-top: 37px;
|
|
2036
2037
|
margin-right: 65px;
|
|
2037
2038
|
white-space: nowrap;
|
|
2038
|
-
`,
|
|
2039
|
+
`,oo=m.div`
|
|
2039
2040
|
display: flex;
|
|
2040
2041
|
flex-direction: column;
|
|
2041
2042
|
${""}
|
|
2042
2043
|
max-width: 1340px;
|
|
2043
2044
|
width: 100%;
|
|
2044
2045
|
align-items: center;
|
|
2045
|
-
`,
|
|
2046
|
+
`,ro=m.div`
|
|
2046
2047
|
position: absolute;
|
|
2047
2048
|
font-size: 12px;
|
|
2048
2049
|
border-radius: 50%;
|
|
@@ -2059,23 +2060,23 @@ float: right;
|
|
|
2059
2060
|
transform: translate(30%, -30%);
|
|
2060
2061
|
color: white;
|
|
2061
2062
|
font-weight: 600;
|
|
2062
|
-
`,ro=m.div`
|
|
2063
|
-
width: 90%;
|
|
2064
2063
|
`,io=m.div`
|
|
2064
|
+
width: 90%;
|
|
2065
|
+
`,no=m.div`
|
|
2065
2066
|
background: linear-gradient(
|
|
2066
2067
|
0deg,
|
|
2067
2068
|
hsla(0, 0%, 100%, 1) 20%,
|
|
2068
2069
|
hsla(0, 0%, 100%, 0.5) 100%
|
|
2069
2070
|
);
|
|
2070
2071
|
width: 90%;
|
|
2071
|
-
`,no=m.div`
|
|
2072
|
-
width: 90%;
|
|
2073
2072
|
`,co=m.div`
|
|
2073
|
+
width: 90%;
|
|
2074
|
+
`,ao=m.div`
|
|
2074
2075
|
display: flex;
|
|
2075
2076
|
margin-left: auto !important;
|
|
2076
2077
|
margin-right: auto !important;
|
|
2077
2078
|
cursor: pointer;
|
|
2078
|
-
`,
|
|
2079
|
+
`,so=m.div`
|
|
2079
2080
|
display: flex;
|
|
2080
2081
|
flex-direction: column;
|
|
2081
2082
|
width: 180px;
|
|
@@ -2084,10 +2085,10 @@ float: right;
|
|
|
2084
2085
|
border-radius: 6px;
|
|
2085
2086
|
margin-right: 0.5rem;
|
|
2086
2087
|
z-index: 999;
|
|
2087
|
-
`,
|
|
2088
|
+
`,po=m.div`
|
|
2088
2089
|
margin: 10.5px 13px;
|
|
2089
2090
|
padding: 0;
|
|
2090
|
-
`,
|
|
2091
|
+
`,mo=m.div`
|
|
2091
2092
|
color: #081348;
|
|
2092
2093
|
padding: 7.7px 6.5px 7.7px 24px;
|
|
2093
2094
|
margin: 2.5px 13px;
|
|
@@ -2105,7 +2106,7 @@ float: right;
|
|
|
2105
2106
|
background: #eaeefe;
|
|
2106
2107
|
border-radius: 5px;
|
|
2107
2108
|
}
|
|
2108
|
-
`,
|
|
2109
|
+
`,bo=m.div`
|
|
2109
2110
|
position: relative;
|
|
2110
2111
|
display: flex;
|
|
2111
2112
|
width: 100%;
|
|
@@ -2189,41 +2190,41 @@ float: right;
|
|
|
2189
2190
|
margin-top: 0;
|
|
2190
2191
|
}
|
|
2191
2192
|
}
|
|
2192
|
-
`,
|
|
2193
|
+
`,uo=m.div`
|
|
2193
2194
|
display: flex;
|
|
2194
2195
|
justify-content: flex-end;
|
|
2195
|
-
`,
|
|
2196
|
+
`,go=m.div`
|
|
2196
2197
|
display: flex;
|
|
2197
2198
|
justify-content: center;
|
|
2198
2199
|
flex-direction: row;
|
|
2199
2200
|
align-items: flex-start;
|
|
2200
2201
|
gap: 20px;
|
|
2201
|
-
`,
|
|
2202
|
+
`,fo=m.div`
|
|
2202
2203
|
width: 48;
|
|
2203
2204
|
max-width: 48%;
|
|
2204
2205
|
min-width: 48%;
|
|
2205
2206
|
|
|
2206
|
-
`,
|
|
2207
|
+
`,ho=m.form`
|
|
2207
2208
|
width: 40vw;
|
|
2208
2209
|
display: flex;
|
|
2209
2210
|
justify-content: center;
|
|
2210
2211
|
flex-direction: column;
|
|
2211
2212
|
gap: 20px;
|
|
2212
2213
|
${({customStyles:e})=>e}
|
|
2213
|
-
`,
|
|
2214
|
+
`,yo=({customStyles:e,children:l})=>t.createElement(ho,{customStyles:e},l),xo=m.div`
|
|
2214
2215
|
display: ${({vertical:e})=>e?"inline-block":"block"};
|
|
2215
2216
|
background: ${({theme:e,borderColor:t})=>t||e.neutral["neutral-5"]};
|
|
2216
2217
|
content: '';
|
|
2217
2218
|
height: ${({vertical:e,thickness:t,height:l})=>e?l:t};
|
|
2218
2219
|
width: ${({vertical:e,thickness:t})=>e?t:null};
|
|
2219
|
-
`,
|
|
2220
|
+
`,vo=({vertical:e,borderColor:l,thickness:o,height:r,...i})=>{const n=b()||R;return t.createElement(xo,V({theme:n,borderColor:l,thickness:o,vertical:e,height:r},i))};vo.propTypes={thickness:e.string,borderColor:e.string,vertical:e.bool,height:e.string},vo.defaultProps={thickness:"2px",vertical:!1,height:"10px"};const Ao=m.div`
|
|
2220
2221
|
//Set the styles from the default styles object
|
|
2221
2222
|
${({inBuiltCss:e,type:t,drawerOpen:l,customStyles:o})=>{if(e){let r={};if(e[t]){for(const t in e.common)r[t]=e.common[t];for(const l in e[t])delete e.common[l],r[l]=e[t][l];r=l?{...r,...e["drawer-open"]}:{...r,...e["drawer-close"]}}return{...r,...o}}}}
|
|
2222
|
-
`,
|
|
2223
|
+
`,Co=({customStyles:e,drawerOpen:l,setDrawerOpen:o,children:r,...i})=>t.createElement(Ao,V({inBuiltCss:P,customStyles:e,type:"drawer",drawerOpen:l},i),r);Co.propTypes={customStyles:e.object,drawerOpen:e.bool,setDrawerOpen:e.func},Co.defaultProps={setDrawerOpen:()=>null};class wo extends c{constructor(e){super(e),this.state={hasError:!1},this.refreshPage=this.refreshPage.bind(this)}componentDidCatch(e,t){this.setState({hasError:!0})}refreshPage(){window.location.reload()}render(){const{hasError:e}=this.state;return e?t.createElement(a,null,t.createElement("h3",null,t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1.12em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1856 1664"},t.createElement("path",{d:"M1056 1375v-190q0-14-9.5-23.5t-22.5-9.5H832q-13 0-22.5 9.5T800 1185v190q0 14 9.5 23.5t22.5 9.5h192q13 0 22.5-9.5t9.5-23.5zm-2-374l18-459q0-12-10-19q-13-11-24-11H818q-11 0-24 11q-10 7-10 21l17 457q0 10 10 16.5t24 6.5h185q14 0 23.5-6.5t10.5-16.5zm-14-934l768 1408q35 63-2 126q-17 29-46.5 46t-63.5 17H160q-34 0-63.5-17T50 1601q-37-63-2-126L816 67q17-31 47-49t65-18t65 18t47 49z",fill:"currentColor"})),"We have experienced an issue. We generated a support ticket on our end to investigate this issue We are sorry about the inconvenience."),t.createElement(Te,{onClick:()=>this.refreshPage()},"Click to refresh")):this.props.children}}wo.propTypes={children:e.any};const So=u`
|
|
2223
2224
|
color: ${({theme:e})=>e.variant["primary-1"]};
|
|
2224
2225
|
border: 1px solid ${({theme:e})=>e.variant["primary-1"]};
|
|
2225
2226
|
background: ${({theme:e})=>H(e.primary["primary-1"],.04)};
|
|
2226
|
-
`,
|
|
2227
|
+
`,ko=m.button`
|
|
2227
2228
|
font-size: 14px;
|
|
2228
2229
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
2229
2230
|
background: ${({theme:e})=>H(e.variant["neutral-5"],.7)};
|
|
@@ -2233,19 +2234,19 @@ float: right;
|
|
|
2233
2234
|
outline: none;
|
|
2234
2235
|
cursor: ${({disabled:e})=>e?"default":"pointer"};
|
|
2235
2236
|
|
|
2236
|
-
${({selected:e})=>e?
|
|
2237
|
+
${({selected:e})=>e?So:null}
|
|
2237
2238
|
${({customStyles:e})=>e}
|
|
2238
2239
|
|
|
2239
2240
|
|
|
2240
2241
|
&:not(:first-child) {
|
|
2241
2242
|
margin-left: 8px;
|
|
2242
2243
|
}
|
|
2243
|
-
`,
|
|
2244
|
+
`,Eo=({options:e,selected:l,onClick:o,customStyles:r,disabled:i,...n})=>{const c=b()||R,a=e.map(((e,n)=>t.createElement(ko,{theme:c,key:`${e.label}_${n}_${e.value}`,selected:l===e.value,onClick:()=>{o(e.value)},customStyles:r,disabled:i},e.label)));return t.createElement(t.Fragment,null,a)};Eo.propTypes={options:e.array,selected:e.string,onClick:e.func,customStyles:e.object,disabled:e.bool},Eo.defaultProps={options:[],selected:"",customStyles:{},disabled:!1};const zo=m.footer`
|
|
2244
2245
|
//Set the styles from the default styles object
|
|
2245
2246
|
${({theme:e,type:t})=>T(e,t)}
|
|
2246
2247
|
// custom styles
|
|
2247
2248
|
${({customStyles:e})=>e}
|
|
2248
|
-
`,
|
|
2249
|
+
`,Vo=l((({theme:e,customStyles:l,...o},r)=>t.createElement(zo,V({ref:r,theme:e,type:"footer",customStyles:l},o),o.children)));Vo.propTypes={theme:e.object,customStyles:e.object,type:e.string},zo.defaultProps={theme:e.object},Vo.defaultProps={theme:P,customStyles:null};const Mo=m.div`
|
|
2249
2250
|
font-size: 14px;
|
|
2250
2251
|
background-color: transparent;
|
|
2251
2252
|
display: flex;
|
|
@@ -2263,7 +2264,7 @@ float: right;
|
|
|
2263
2264
|
${({footerWidth:e})=>{if(e<650)return u`
|
|
2264
2265
|
flex-direction: column;
|
|
2265
2266
|
`}}
|
|
2266
|
-
`,
|
|
2267
|
+
`,Bo=m.div`
|
|
2267
2268
|
display: flex;
|
|
2268
2269
|
${({footerWidth:e})=>{if(e<650)return u`
|
|
2269
2270
|
margin-bottom: 5px;
|
|
@@ -2273,18 +2274,18 @@ float: right;
|
|
|
2273
2274
|
align-items: center;
|
|
2274
2275
|
margin-bottom: 0;
|
|
2275
2276
|
`}}
|
|
2276
|
-
`,
|
|
2277
|
+
`,Io=m.div`
|
|
2277
2278
|
margin-top: inherit;
|
|
2278
2279
|
margin-bottom: inherit;
|
|
2279
2280
|
${({footerWidth:e})=>{if(e<350)return u`
|
|
2280
2281
|
margin-bottom: 5px;
|
|
2281
2282
|
`}}
|
|
2282
|
-
`,
|
|
2283
|
+
`,Wo=m.div`
|
|
2283
2284
|
margin: 0 10px;
|
|
2284
2285
|
${({footerWidth:e})=>{if(e<350)return u`
|
|
2285
2286
|
display: none;
|
|
2286
2287
|
`}}
|
|
2287
|
-
`,
|
|
2288
|
+
`,Lo=({variant:e,textColor:l,size:o,width:r,footerWidth:i,customStyles:n,...c})=>{const a=(new Date).getFullYear();return t.createElement(Mo,V({variant:e,textColor:l,footerWidth:i,customStyles:n},c),t.createElement(Bo,{footerWidth:i},t.createElement(Io,{footerWidth:i},"Premise HQ"),t.createElement(Wo,{footerWidth:i},"|"),t.createElement(Io,{footerWidth:i},"All Rights Restricted ",a," ©")),t.createElement(Bo,{footerWidth:i},t.createElement(Io,{footerWidth:i},"Terms of use"),t.createElement(Wo,{footerWidth:i},"|"),t.createElement(Io,{footerWidth:i},"Privacy Policy")))},Ro=m.header`
|
|
2288
2289
|
|
|
2289
2290
|
background-color: ${({theme:e})=>e.bgColor};
|
|
2290
2291
|
border-bottom: 0.5px solid ${({theme:e})=>e.variant["neutral-3"]};
|
|
@@ -2292,7 +2293,7 @@ float: right;
|
|
|
2292
2293
|
${({inBuiltCss:e,type:t})=>T(e,t)}
|
|
2293
2294
|
// custom styles
|
|
2294
2295
|
${({customStyles:e})=>e}
|
|
2295
|
-
`,
|
|
2296
|
+
`,Po=({type:e,customStyles:l,...o})=>{const r=b()||R;return t.createElement(Ro,V({theme:r,type:"header",customStyles:l,inBuiltCss:P},o),o.children)};Po.propTypes={customStyles:e.object,type:e.string},Po.defaultProps={type:"header",customStyles:null};const To=m.div`
|
|
2296
2297
|
box-sizing: border-box;
|
|
2297
2298
|
display: flex;
|
|
2298
2299
|
justify-content: center;
|
|
@@ -2300,8 +2301,8 @@ float: right;
|
|
|
2300
2301
|
width: auto;
|
|
2301
2302
|
|
|
2302
2303
|
${({size:e})=>u`height: ${e}px;`}
|
|
2303
|
-
`,To=m.div`
|
|
2304
2304
|
`,Ho=m.div`
|
|
2305
|
+
`,jo=m.div`
|
|
2305
2306
|
box-sizing: border-box;
|
|
2306
2307
|
display: flex;
|
|
2307
2308
|
justify-content: center;
|
|
@@ -2330,11 +2331,11 @@ svg {
|
|
|
2330
2331
|
`}
|
|
2331
2332
|
}
|
|
2332
2333
|
}
|
|
2333
|
-
`,
|
|
2334
|
+
`,qo=({theme:e,toggleSet:l,slide:o,color:r,size:i,transform:n,ratingValue:c,starVal:a,hover:s,...d})=>t.createElement(jo,V({theme:e,ratingValue:c,starVal:a,hover:s,toggleSet:l,color:r,size:i,transform:n},d),t.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",id:"star_filled","data-name":"star filled",xmlns:"http://www.w3.org/2000/svg"},t.createElement("defs",null,t.createElement("clipPath",{id:"starFilled"},t.createElement("path",{id:"Star",d:"M10,15,4.122,18.09l1.123-6.545L.489,6.91l6.572-.955L10,0l2.939,5.955,6.572.955-4.755,4.635,1.123,6.545Z",transform:"translate(2 3)",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"1.5"}))),t.createElement("rect",{x:"0",y:"0",fill:"rgb(217,217,217)",width:"100%",height:"100%",clipPath:"url(#starFilled)"}),t.createElement("rect",{x:o,y:"0",fill:r,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function Fo(e,t){let l=5*e/t;const o=[],r=l;for(let e=0;e<5;e++){if(l-1>=0)o.push("0");else if(l-1<0&&l-1>-1){const e=(24*l-24).toString();o.push(e)}else o.push("-24");l-=1}return{array:o,value:r}}function Zo(e,t){return 100*e/t}const Oo=({type:e,customStylesContainer:l,customStylesStar:o,customStylesPercentage:n,color:c,size:a,handleClick:s,transform:d,maxRange:p,value:m,toggleStar:u,toggleSet:g,identifier:f,...h})=>{b();const[y,x]=r(void 0),[v,A]=r(void 0),[C,w]=r(void 0),[S,k]=r(void 0);i((()=>{x(Fo(m,p).array),A(Fo(m,p).value),w(Zo(m,p))}),[m,p]),i((()=>{S?x(Fo(S,p).array):(x(Fo(m,p).array),A(Fo(m,p).value),w(Zo(m,p)))}),[S]);const E=t.createElement(t.Fragment,null,y?.map(((e,l)=>{const r=20*(l+1);return t.createElement(qo,{ratingValue:r,starVal:v,hover:S,toggleSet:g,onClick:g?()=>s(r):null,onMouseEnter:g?()=>{k(r)}:null,onMouseLeave:g?()=>{k(null)}:null,slide:e,color:c,className:"star",size:a,transform:d,key:f?.concat(l),customStyles:o})})));return t.createElement(To,V({customStyles:l,type:e,size:a},h,{className:"container"}),u?E:t.createElement(Ho,{type:e,customStyles:n},C,"%"))};Oo.propTypes={customStylesContainer:e.object,customStylesStar:e.object,customStylesPercentage:e.object,type:e.string,color:e.string,size:e.number,transform:e.object,handleClick:e.func,maxRange:e.number,value:e.number,toggleStar:e.bool,toggleSet:e.bool,identifier:e.string},Oo.defaultProps={customStylesContainer:null,customStylesStar:null,customStylesPercentage:null,type:"star",maxRange:100,value:0,identifier:"ratingKey",toggleStar:!0,toggleSet:!1,color:"#F7B001"};const Do=m.div`
|
|
2334
2335
|
.form-check-input {
|
|
2335
2336
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2336
2337
|
}
|
|
2337
|
-
`,
|
|
2338
|
+
`,Go=({customStyles:e,inBuiltCss:l,type:o="table",sortIcon:r,data:i,tableColumns:n,progressPending:c,defaultSortFieldId:a,handleOnSort:s,sortServer:d,progressComponent:p,responsive:m,conditionalRowStyles:u,fixedHeader:g,fixedHeaderScrollHeight:f,checkboxColor:h,...y})=>{let x={};if(l&&l[o]&&(x=l[o]),e)for(const t in e)x[t]=e[t];const v=b()||R,A=t.forwardRef((({onClick:e,...l},o)=>t.createElement(Do,{theme:v},t.createElement("input",V({type:"checkbox",className:"form-check-input",ref:o,onClick:e},l)))));return t.createElement(k,V({responsive:m,data:i,columns:n,noHeader:!0,highlightOnHover:!0,sortIcon:r,progressPending:c,customStyles:x,defaultSortFieldId:a,progressComponent:p||void 0,sortServer:d,onSort:(e,t,l)=>{s(e,t,l)},conditionalRowStyles:u,fixedHeader:g,fixedHeaderScrollHeight:f,selectableRowsComponent:A},y))};Go.propTypes={inBuiltCss:e.object,sortIcon:e.any,data:e.array,tableColumns:e.array,progressPending:e.bool,progressComponent:e.any,defaultSortFieldId:e.number,sortServer:e.bool,handleOnSort:e.any,responsive:e.bool,conditionalRowStyles:e.array,fixedHeader:e.bool,fixedHeaderScrollHeight:e.string,customStyle:e.object},Go.defaultProps={inBuiltCss:P,sortIcon:t.createElement(N,{icon:"arrow-down",size:11,color:"#333333",style:{transform:"scaleX(0.7) scaleY(0.7) translate(5px, -3px)"}}),data:[],tableColumns:[],progressPending:!1,defaultSortFieldId:null,handleOnSort:(e,t,l)=>{},sortServer:null,progressComponent:void 0,responsive:!0,fixedHeader:!0,fixedHeaderScrollHeight:"100%"};const Xo=({title:e,subtitle:l,wrapperStyle:o,imgLink:r,imgStyle:i,iconSize:n})=>{const c=b()||R,a={fontSize:"26px",fontWeight:"bold",color:`${c.textColor}`,lineHeight:"36px",display:"flex",gap:"14px",alignItems:"flex-start",paddingLeft:"25px"},s={fontSize:"13px",color:`${c.neutral["neutral-2"]}`,lineHeight:"24px",paddingLeft:"25px"};return t.createElement("div",{style:o},t.createElement("div",{style:a},r?t.createElement("img",{src:r,alt:"userIcon",srcset:"",style:i}):t.createElement(N,{icon:"user-icon",size:n,color:c.primary["primary-1"]})," ",t.createElement("h4",null,e)),t.createElement("div",{style:s},t.createElement("p",null,l)))};Xo.propTypes={size:e.number},Xo.defaultProps={iconSize:23};const Jo=({formData:e,customStyles:l,...o})=>{const r=e=>{switch(e.type){case"header":return(e=>t.createElement(a,null,t.createElement(Po,V({},e,o),e.children),e))(e);case"label":return(e=>t.createElement(lt,V({style:{marginBottom:"8px",paddingBottom:"0"}},e,o)))(e);case"text":return(e=>t.createElement(fl,V({},e,o)))(e);case"textArea":return(e=>t.createElement(Ml,V({},e,o)))(e);case"number":return(e=>t.createElement(el,V({},e,o)))(e);case"radio":return(e=>t.createElement(pl,V({key:101*Math.random()|0},e,o)))(e);case"checkBox":return(e=>t.createElement(at,V({},e,o)))(e);case"singleSelect":return(e=>t.createElement(Lt,V({dropdownType:"singleSelect"},e,o)))(e);case"multiSelect":return(e=>t.createElement(Lt,V({dropdownType:"multiSelect"},e,o)))(e);case"asyncSingleSelect":return(e=>t.createElement(Lt,V({dropdownType:"asyncSingleSelect"},e,o)))(e);case"asyncMultiSelect":return(e=>t.createElement(Lt,V({dropdownType:"asyncMultiSelect"},e,o)))(e);case"signature":return(e=>t.createElement(Sl,V({},e,o)))(e);case"fileUpload":return(e=>t.createElement(Dt,V({},e,o)))(e);case"date":return(e=>t.createElement(vt,V({},e,o)))(e);case"toggle":return(e=>t.createElement(Ol,V({},e,o)))(e);case"rating":return(e=>t.createElement(Oo,V({},e,o)))(e);case"buttonPrimary":return(e=>t.createElement(Te,V({},e,o)))(e);case"buttonSecondary":return(e=>t.createElement(qe,V({},e,o)))(e);case"buttonTiny":return(e=>t.createElement(Ze,V({},e,o)))(e);case"search":return(e=>t.createElement(hl,V({},e,o)))(e);case"table":return(e=>t.createElement(Go,V({},e,o)))(e);case"passwordInput":return(e=>t.createElement(il,V({},e,o)))(e);case"headerComponent":return(e=>t.createElement(Xo,V({},e,o)))(e)}};return t.createElement(a,null,t.createElement(bo,{defaultThemeColor:R},t.createElement(yo,{onSubmit:()=>{},customStyles:l},e.map(((e,l)=>e.length>1?t.createElement(go,null,e.map(((l,o)=>t.createElement(fo,{cols:e.length},r(l))))):r(e[0]))))))},Uo=({formData:e,onSubmit:l,onReset:o,style:r,...i})=>{const n=e=>{switch(e.type){case"submit":return(e=>t.createElement(Te,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>t.createElement(qe,{block:e.block,disabled:i.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return t.createElement(a,null,t.createElement(uo,{style:r},e&&e.map(((e,t)=>e.map(((e,t)=>n(e)))))))};const Yo=f`
|
|
2338
2339
|
@font-face {
|
|
2339
2340
|
font-family: "Averta";
|
|
2340
2341
|
font-weight: 100;
|
|
@@ -2442,7 +2443,7 @@ svg {
|
|
|
2442
2443
|
* {
|
|
2443
2444
|
font-family: "Averta";
|
|
2444
2445
|
}
|
|
2445
|
-
`,
|
|
2446
|
+
`,Qo=m.span`
|
|
2446
2447
|
background: transparent;
|
|
2447
2448
|
position: relative;
|
|
2448
2449
|
display: flex;
|
|
@@ -2451,12 +2452,12 @@ svg {
|
|
|
2451
2452
|
&>span:not(:first-of-type){
|
|
2452
2453
|
margin-left: -13px;
|
|
2453
2454
|
}
|
|
2454
|
-
`,
|
|
2455
|
+
`,No=m.p`
|
|
2455
2456
|
color: ${({theme:e,variantQty:t})=>e.variant[t]};
|
|
2456
2457
|
margin: 0;
|
|
2457
2458
|
margin-left: 7px;
|
|
2458
2459
|
font-size: 16px;
|
|
2459
|
-
`,
|
|
2460
|
+
`,Ko=({items:e,block:l,size:o,variantCircle:r,variantName:i,variantQty:n,flagName:c,user:a,colorCircle:s,colorBorderCircle:d,...p})=>{const m=b()||R;return t.createElement(Qo,V({block:l},p),e?.map(((l,n)=>{let c={},a={};return c.backgroundColor=s?`${m.variant[s]}`:`${m.variant[r]}`,0!==n&&(c.border=d?`2px solid ${d}`:`2px solid ${m.variant[r]}`,a.border=d?`2px solid ${d}`:`2px solid ${m.variant[r]}`),1===e.length?t.createElement(de,{key:l.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${m.variant[{variantName:i}]}`},size:o,toggleName:!0,user:l,customStylesCircle:c,customStylesImage:a}):n<=3?t.createElement(de,{key:l.id,customStylesContainer:{width:"auto"},customStylesName:{color:`${m.variant[{variantName:i}]}`},size:o,toggleName:!1,user:l,customStylesCircle:c,customStylesImage:a}):null})),e.length-4>0?t.createElement(No,{theme:m,variantQty:n},"+",e.length-4):null)};Ko.propTypes={variantCircle:e.string,variantName:e.string,size:e.oneOf(["SM","MD","LG"]),user:e.object,theme:e.object,colorCircle:e.string,colorBorderCircle:e.string,variantQty:e.string},Ko.defaultProps={variantCircle:"primary-1",variantName:"primary-2",block:!1,size:"MD",flagName:!1,user:{userName:"1"},colorCircle:null,colorBorderCircle:"#FFFFFF",variantQty:"primary-1"};const $o=m.div`
|
|
2460
2461
|
max-width: inherit;
|
|
2461
2462
|
width: inherit;
|
|
2462
2463
|
font-size: 14px;
|
|
@@ -2482,7 +2483,7 @@ svg {
|
|
|
2482
2483
|
&[data-popper-placement*='top'] .tooltip-arrow::after {
|
|
2483
2484
|
border-color: ${({theme:e,variantTPbg:t})=>t?e.variant[t]:"#6b747f"} transparent transparent transparent;
|
|
2484
2485
|
}
|
|
2485
|
-
|
|
2486
|
+
`,_o=m.div`
|
|
2486
2487
|
display: flex;
|
|
2487
2488
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2488
2489
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
@@ -2497,24 +2498,24 @@ svg {
|
|
|
2497
2498
|
svg path {
|
|
2498
2499
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2499
2500
|
}
|
|
2500
|
-
`,
|
|
2501
|
+
`,er=m.div`
|
|
2501
2502
|
display: flex;
|
|
2502
2503
|
justify-content: space-evenly;
|
|
2503
2504
|
flex-grow: 1;
|
|
2504
2505
|
align-items: stretch;
|
|
2505
|
-
`,
|
|
2506
|
+
`,tr=({label:e,index:l,style:o,items:r,variant:i,borderVariant:n,bgVariant:c,variantDisable:a,variantBgDisable:s,disabled:d,divider:p,indexPrefix:m,onClick:u,icon:g,variantTPtext:f,variantTPbg:h,...x})=>{b();const{getArrowProps:v,getTooltipProps:A,setTooltipRef:C,setTriggerRef:w,visible:S}=y();return t.createElement(t.Fragment,null,t.createElement(er,{ref:w},t.createElement(_o,{variant:i,borderVariant:n,bgVariant:c,variantDisable:a,variantBgDisable:s,disabled:d,onClick:d?null:()=>{u(u)}},g),p),S&&t.createElement($o,V({variantTPtext:f,variantTPbg:h,ref:C},A({className:"tooltip-container"})),e,t.createElement("div",v({className:"tooltip-arrow"}))))};tr.propTypes={variant:e.string,borderVariant:e.string,bgVariant:e.string,variantDisable:e.string,variantBgDisable:e.string,indexPrefix:e.string,theme:e.object,items:e.array,allDisabled:e.bool,divider:e.any,onClick:e.func,variantTPtext:e.string,variantTPbg:e.string},er.defaultProps={theme:R},_o.defaultProps={theme:R},$o.defaultProps={theme:R},tr.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor",variantTPtext:null,variantTPbg:null};const lr=m.div`
|
|
2506
2507
|
display: flex;
|
|
2507
2508
|
justify-content: space-evenly;
|
|
2508
2509
|
align-items: stretch;
|
|
2509
2510
|
height: 42px;
|
|
2510
2511
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
2511
2512
|
border-radius: 3px;
|
|
2512
|
-
`,
|
|
2513
|
+
`,or=m.div`
|
|
2513
2514
|
display: flex;
|
|
2514
2515
|
justify-content: space-evenly;
|
|
2515
2516
|
flex-grow: 1;
|
|
2516
2517
|
align-items: stretch;
|
|
2517
|
-
`,
|
|
2518
|
+
`,rr=m.div`
|
|
2518
2519
|
display: flex;
|
|
2519
2520
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2520
2521
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
@@ -2529,19 +2530,19 @@ svg {
|
|
|
2529
2530
|
svg path {
|
|
2530
2531
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2531
2532
|
}
|
|
2532
|
-
`,
|
|
2533
|
+
`,ir=({style:e,items:l,variant:o,borderVariant:r,bgVariant:i,variantDisable:n,variantBgDisable:c,allDisabled:a,divider:s,indexPrefix:d,onClick:p,...m})=>(b(),t.createElement(lr,V({variant:o,borderVariant:r},m),l?.map(((e,m)=>t.createElement(or,{key:d.concat(m)},t.createElement(rr,{variant:o,borderVariant:r,bgVariant:i,variantDisable:n,variantBgDisable:c,title:e.label,disabled:a||e.disabled,onClick:a||e.disabled?null:()=>p(e.label)},e.icon),l?.length-1!==m&&s)))));ir.propTypes={variant:e.string,borderVariant:e.string,bgVariant:e.string,variantDisable:e.string,variantBgDisable:e.string,indexPrefix:e.string,theme:e.object,items:e.array,allDisabled:e.bool,divider:e.any,onClick:e.func},lr.defaultProps={theme:R},or.defaultProps={theme:R},rr.defaultProps={theme:R},ir.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor"};const nr=m.div`
|
|
2533
2534
|
display: flex;
|
|
2534
2535
|
justify-content: space-evenly;
|
|
2535
2536
|
align-items: stretch;
|
|
2536
2537
|
height: 42px;
|
|
2537
2538
|
border: 1px solid ${({theme:e,borderVariant:t})=>e.variant[t]};
|
|
2538
2539
|
border-radius: 3px;
|
|
2539
|
-
`,
|
|
2540
|
+
`,cr=m.div`
|
|
2540
2541
|
display: flex;
|
|
2541
2542
|
justify-content: space-evenly;
|
|
2542
2543
|
flex-grow: 1;
|
|
2543
2544
|
align-items: stretch;
|
|
2544
|
-
`,
|
|
2545
|
+
`,ar=m.div`
|
|
2545
2546
|
display: flex;
|
|
2546
2547
|
color: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2547
2548
|
background: ${({theme:e,disabled:t,bgVariant:l,variantBgDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
@@ -2556,28 +2557,28 @@ svg {
|
|
|
2556
2557
|
svg path {
|
|
2557
2558
|
fill: ${({theme:e,disabled:t,variant:l,variantDisable:o})=>t?e.variant[o]:e.variant[l]};
|
|
2558
2559
|
}
|
|
2559
|
-
`,
|
|
2560
|
+
`,sr=({style:e,items:l,variant:o,borderVariant:r,bgVariant:i,variantDisable:n,variantBgDisable:c,allDisabled:a,divider:s,indexPrefix:d,onClick:p,variantTPtext:m,variantTPbg:u,...g})=>(b(),t.createElement(nr,V({variant:o,borderVariant:r},g),l?.map(((e,b)=>t.createElement(tr,{key:d.concat(b),variant:o,borderVariant:r,bgVariant:i,variantDisable:n,variantBgDisable:c,disabled:a||e.disabled,onClick:a||e.disabled?null:()=>{p(e.label)},divider:l?.length-1!==b&&s,icon:e.icon,index:b,label:e.label,variantTPtext:m,variantTPbg:u})))));sr.propTypes={variant:e.string,borderVariant:e.string,bgVariant:e.string,variantDisable:e.string,variantBgDisable:e.string,indexPrefix:e.string,theme:e.object,items:e.array,allDisabled:e.bool,divider:e.any,onClick:e.func,variantTPtext:e.string,variantTPbg:e.string},nr.defaultProps={theme:R},cr.defaultProps={theme:R},ar.defaultProps={theme:R},sr.defaultProps={theme:R,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"bgColor",variantDisable:"neutral-2",variantBgDisable:"bgColor",variantTPtext:null,variantTPbg:null};const dr=m.div`
|
|
2560
2561
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
2561
2562
|
border: 1.3px solid ${({theme:e,variant:t,borderColor:l})=>l||e.variant[t]};
|
|
2562
2563
|
border-radius: 50%;
|
|
2563
2564
|
width: ${({size:e})=>e}px;
|
|
2564
2565
|
height: ${({size:e})=>e}px;
|
|
2565
2566
|
box-sizing: border-box;
|
|
2566
|
-
`,
|
|
2567
|
+
`,pr=({variant:e,bgColor:l,borderColor:o,...r})=>(b(),t.createElement(dr,V({variant:e,borderColor:o,bgColor:l},r)));pr.propTypes={variant:e.string,size:e.number,theme:e.object,borderColor:e.string,bgColor:e.string},dr.defaultProps={theme:R},pr.defaultProps={theme:R,variant:"primary-1",size:11};const mr=m.div`
|
|
2567
2568
|
display: inline-flex;
|
|
2568
2569
|
align-items: center;
|
|
2569
2570
|
background-color: transparent;
|
|
2570
2571
|
min-height: 24px;
|
|
2571
|
-
`,
|
|
2572
|
+
`,br=m.div`
|
|
2572
2573
|
display: flex;
|
|
2573
2574
|
justify-content: space-evenly;
|
|
2574
2575
|
width: 69px;
|
|
2575
|
-
`,
|
|
2576
|
+
`,ur=m.p`
|
|
2576
2577
|
display: flex;
|
|
2577
2578
|
color: ${({theme:e,variantText:t,colorText:l})=>l||e.variant[t]};
|
|
2578
2579
|
font-size: 16px;
|
|
2579
2580
|
margin: 0 5px;
|
|
2580
|
-
`,
|
|
2581
|
+
`,gr=({style:e,variantCircle:l,variantText:o,level:r,textArray:i,colorArray:n,indexPrefix:c,colorText:a,...s})=>(b(),t.createElement(mr,s,t.createElement(br,null,[1,2,3,4].map(((e,o)=>{let i="#D4D7E3",a=null,s=null;return r<=0&&(r=0),r>=4&&(r=4),n?r>=e?(a=n[r],i=n[r]):a=n[0]:r>=e?(s=l,i=l):s="#FFFFFF",t.createElement(pr,{key:c.concat(o),variant:s,borderColor:i,bgColor:a,size:11})}))),i&&t.createElement(ur,{variantText:o,colorText:a},i[r])));gr.propTypes={variantCircle:e.string,variantText:e.string,level:e.number,indexPrefix:e.string,theme:e.object,block:e.bool,textArray:e.array,colorArray:e.array,colorText:e.string},ur.defaultProps={theme:R},gr.defaultProps={theme:R,variantCircle:"primary-1",variantText:"primary-2",block:!1,level:0,indexPrefix:"circle-group"};const fr={xsm:{fontSize:"12px"},sm:{fontSize:"14px"},md:{fontSize:"16px"},lg:{fontSize:"18px"}},hr=m.button`
|
|
2581
2582
|
${({underlined:e})=>e?null:u`&:hover {text-decoration: underline}`};
|
|
2582
2583
|
background: transparent;
|
|
2583
2584
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
@@ -2588,7 +2589,7 @@ svg {
|
|
|
2588
2589
|
justify-content: flex-start;
|
|
2589
2590
|
border: none;
|
|
2590
2591
|
cursor: pointer;
|
|
2591
|
-
font-size: ${({size:e})=>
|
|
2592
|
+
font-size: ${({size:e})=>fr[e].fontSize};
|
|
2592
2593
|
|
|
2593
2594
|
&:disabled {
|
|
2594
2595
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
@@ -2598,7 +2599,7 @@ svg {
|
|
|
2598
2599
|
* {
|
|
2599
2600
|
outline: none;
|
|
2600
2601
|
}
|
|
2601
|
-
`,
|
|
2602
|
+
`,yr=({block:e,size:l,style:o,variant:r,disabled:i,underlined:n,...c})=>(b(),t.createElement(hr,V({block:e,variant:r,type:"button",style:o,size:l,disabled:i,underlined:n},c),c.children));yr.propTypes={variant:e.string,disabled:e.bool,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,onClick:e.func,theme:e.object,underlined:e.bool},hr.defaultProps={theme:R},yr.defaultProps={theme:R,variant:"primary-1",block:!1,disabled:!1,size:"sm",onClick:void 0,label:"Remove",underlined:!1};const xr=m.div`
|
|
2602
2603
|
display: flex;
|
|
2603
2604
|
justify-content: space-between;
|
|
2604
2605
|
align-items: flex-start;
|
|
@@ -2609,34 +2610,34 @@ svg {
|
|
|
2609
2610
|
z-index: 100;
|
|
2610
2611
|
// custom styles
|
|
2611
2612
|
${({customModalHeaderStyle:e})=>e}
|
|
2612
|
-
`,
|
|
2613
|
+
`,vr=m.div`
|
|
2613
2614
|
//Set the styles from the default styles object
|
|
2614
2615
|
${({inBuiltCss:e,type:t})=>T(e,t)}
|
|
2615
2616
|
// custom styles
|
|
2616
2617
|
${({customModalBodyStyle:e})=>e}
|
|
2617
|
-
`,
|
|
2618
|
+
`,Ar=m.div`
|
|
2618
2619
|
max-height: 60vh;
|
|
2619
2620
|
padding: 0 24px 24px 24px;
|
|
2620
2621
|
overflow-y: auto;
|
|
2621
2622
|
${({contentWrapperStyle:e})=>e}
|
|
2622
|
-
`,
|
|
2623
|
+
`,Cr=m.div`
|
|
2623
2624
|
padding-top: 16px;
|
|
2624
2625
|
|
|
2625
2626
|
//Set the styles from the default styles object
|
|
2626
2627
|
${({inBuiltCss:e,type:t})=>T(e,t)}
|
|
2627
2628
|
// custom styles
|
|
2628
2629
|
${({customModalFooterStyle:e})=>e}
|
|
2629
|
-
`,
|
|
2630
|
+
`,wr=m.div`
|
|
2630
2631
|
cursor: pointer;
|
|
2631
|
-
`;try{E.setAppElement("#root")}catch(e){E.setAppElement("#__next")}const
|
|
2632
|
+
`;try{E.setAppElement("#root")}catch(e){E.setAppElement("#__next")}const Sr=({modalIsOpen:e,toggleModal:l,closeOnOutsideClick:o,headerContent:r,bodyContent:i,footerContent:n,customModalHeaderStyle:c,customModalBodyStyle:a,customModalFooterStyle:s,customWidth:d,customMinWidth:p,customMaxWidth:m,contentStyle:u,contentWrapperStyle:g,customZIndex:f,...h})=>{const y={overlay:{zIndex:f,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",transform:"translate(-50%, -50%)",minWidth:p,overflow:"hidden",border:`1px solid ${(b()||R).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:d&&d,maxWidth:m&&m,...u}};return t.createElement(E,V({isOpen:e,onRequestClose:o?l:void 0,style:y,contentLabel:"Modal"},h),t.createElement(xr,{style:c},r,t.createElement(wr,{onClick:l},t.createElement(N,{icon:"close-icon",size:18}))),t.createElement(Ar,{contentWrapperStyle:g},t.createElement(vr,{inBuiltCss:P,style:a},i),t.createElement(Cr,{inBuiltCss:P,style:s},n)))};Sr.propTypes={modalIsOpen:e.bool,toggleModal:e.func,closeOnOutsideClick:e.bool,headerContent:e.any,bodyContent:e.any,footerContent:e.any,customModalHeaderStyle:e.object,customModalBodyStyle:e.object,customModalFooterStyle:e.object,customMinWidth:e.string,contentStyle:e.object,contentWrapperStyle:e.object,customZIndex:e.number},Sr.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:999999};const kr=m.div`
|
|
2632
2633
|
${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.common)o[t]=e.common[t];for(const l in e[t])o[l]=e[t][l],delete e.common[l]}return{...o,...l}}}}
|
|
2633
2634
|
}
|
|
2634
|
-
`,
|
|
2635
|
+
`,Er=({theme:e,toggleSimple:l,contentTrigger:o,contentOverlay:r,popperOptionsP:i,settingsP:n,customStyles:c,...a})=>{let s={},d={};l?(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d}):(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),s={...s,...i},d={...d,...n};const{getArrowProps:p,getTooltipProps:m,setTooltipRef:b,setTriggerRef:u,visible:g}=y({...d},s);return t.createElement(t.Fragment,null,t.createElement("div",{ref:u,style:{width:"fit-content",height:"fit-content"}},o),g&&t.createElement(kr,V({type:l?"simple-overlay":"overlay",theme:e,ref:b},m({className:"tooltip-container"}),{customStyles:c}),r))};Er.propTypes={theme:e.object,contentTrigger:e.any,contentOverlay:e.any,popperOptionsP:e.object,settingsP:e.object,customStyles:e.object,toggleSimple:e.bool},Er.defaultProps={theme:P,contentTrigger:t.createElement("div",null,"Trigger"),contentOverlay:t.createElement("div",null,"I am the Overlay")};const zr=m.div`
|
|
2635
2636
|
display: flex;
|
|
2636
2637
|
justify-content: center;
|
|
2637
2638
|
align-items: center;
|
|
2638
2639
|
${({customParentStyles:e})=>e}
|
|
2639
|
-
`,
|
|
2640
|
+
`,Vr=m.span`
|
|
2640
2641
|
background-color: ${({selected:e,theme:t})=>e?t.variant["neutral-5"]:"transparent"};
|
|
2641
2642
|
color: ${({selected:e,theme:t})=>e?t.variant["primary-2"]:t.variant["neutral-3"]};
|
|
2642
2643
|
padding: 8px 14px;
|
|
@@ -2648,7 +2649,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2648
2649
|
font-size: 14px;
|
|
2649
2650
|
|
|
2650
2651
|
${({customItemStyles:e})=>e}
|
|
2651
|
-
`,
|
|
2652
|
+
`,Mr=m.div`
|
|
2652
2653
|
display: flex;
|
|
2653
2654
|
justify-content: center;
|
|
2654
2655
|
align-items: center;
|
|
@@ -2671,16 +2672,16 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2671
2672
|
}
|
|
2672
2673
|
|
|
2673
2674
|
${({customIconWrapperStyles:e})=>e}
|
|
2674
|
-
`,Mr=m.div`
|
|
2675
|
-
padding: 0 15px;
|
|
2676
2675
|
`,Br=m.div`
|
|
2676
|
+
padding: 0 15px;
|
|
2677
|
+
`,Ir=m.div`
|
|
2677
2678
|
display: flex;
|
|
2678
2679
|
align-items: center;
|
|
2679
2680
|
justify-content: center;
|
|
2680
2681
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2681
2682
|
|
|
2682
2683
|
${({customLeftWrapperStyles:e})=>e}
|
|
2683
|
-
`,
|
|
2684
|
+
`,Wr=m.div`
|
|
2684
2685
|
display: flex;
|
|
2685
2686
|
margin: 0;
|
|
2686
2687
|
align-items: center;
|
|
@@ -2693,11 +2694,11 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2693
2694
|
margin: 0 10px;
|
|
2694
2695
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2695
2696
|
}
|
|
2696
|
-
`,
|
|
2697
|
+
`,Lr=({selectedPage:e,setSelectedPage:l,totalPage:o,customItemStyles:n,customLeftWrapperStyles:c,customIconWrapperStyles:a,previousText:s,nextText:d,pageToShow:p,totalResults:m,showResultPerPage:u,customParentStyles:g,customRightWrapperStyles:f,...h})=>{const y=b()||R,[x,v]=r([]);let A=p>o?o:p;i((()=>{v(Array.from({length:A},((e,t)=>t+1)))}),[o,p,A]);const C=t=>{let r=[];"increase"===t&&x[A-1]<=o&&e!==x[A-1]?l(e+1):"increase"===t&&x[A-1]<o?(r=Array.from({length:A},((e,t)=>t+x[0]+1)),l(e+1),v(r)):"decrease"===t&&x[0]<=e-1?l(e-1):"decrease"===t&&e>1&&(l(e-1),v(Array.from({length:A},((e,t)=>t+x[0]-1))))};return t.createElement(zr,{customParentStyles:g}," ",t.createElement(Ir,V({theme:y,customLeftWrapperStyles:c},h),t.createElement(Mr,V({onClick:()=>C("decrease"),disabled:1===e,theme:y,customIconWrapperStyles:a},h),t.createElement(N,{icon:"triangle-down",transform:"rotate(90deg)",color:y.variant["neutral-3"]}),t.createElement("span",{className:"prev-text"}," ",s)),t.createElement(Br,h,x.map(((o,r)=>t.createElement(Vr,{key:r,theme:y,selected:e===o,onClick:()=>l(o),customItemStyles:n},o)))),t.createElement(Mr,{onClick:()=>C("increase"),disabled:e===o,theme:y,customIconWrapperStyles:a},t.createElement("span",{className:"next-text"}," ",d),t.createElement(N,{icon:"triangle-down",transform:"rotate(-90deg)",color:y.variant["neutral-3"]}))),u&&t.createElement(Wr,{theme:y,customRightWrapperStyles:f},t.createElement(Lt,{optionArr:[{value:"10",label:"10"},{value:"20",label:"20"},{value:"30",label:"30"}],value:{value:"10",label:"10"},customWrapperStyles:{width:"fit-content"},isDisabled:!0,iconColor:y.variant["neutral-3"]}),t.createElement("p",{style:{marginBottom:0}},t.createElement("span",null,"OF")," ",m," ",t.createElement("span",null,"RESULTS"))))};Lr.propTypes={customItemStyles:e.object,selectedPage:e.number,customLeftWrapperStyles:e.object,customIconWrapperStyles:e.object,previousText:e.string,nextText:e.string,pageToShow:e.number,totalResults:e.number,showResultPerPage:e.bool,customParentStyles:e.object,customRightWrapperStyles:e.object},Lr.defaultProps={selectedPage:1,customItemStyles:{},customLeftWrapperStyles:{},customIconWrapperStyles:{},previousText:"PREVIOUS",nextText:"NEXT",pageToShow:5,totalResults:0,showResultPerPage:!1,customParentStyles:{},customRightWrapperStyles:{}};const Rr=m.div`
|
|
2697
2698
|
display: flex;
|
|
2698
2699
|
align-items: center;
|
|
2699
2700
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2700
|
-
`,
|
|
2701
|
+
`,Pr=({...e})=>{const l=b()||R;return t.createElement(Rr,{theme:l},e.children)},Tr=m.div`
|
|
2701
2702
|
font-size: 14px;
|
|
2702
2703
|
color: ${({selected:e,theme:t})=>e?t.variant["primary-1"]:null};
|
|
2703
2704
|
|
|
@@ -2713,7 +2714,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let o={};if(e[t]){for(const t in e.c
|
|
|
2713
2714
|
&:not(:first-child):not(:last-child) {
|
|
2714
2715
|
margin: 0 22px;
|
|
2715
2716
|
}
|
|
2716
|
-
`;(
|
|
2717
|
+
`;(Pr.PageItem=function({selected:e,...l}){const o=b()||R;return t.createElement(Tr,V({selected:e,theme:o},l),l.children)}).propTypes={selected:e.bool},Pr.PageItem.defaultProps={selected:!1};const Hr=m.div`
|
|
2717
2718
|
position: relative;
|
|
2718
2719
|
height: 10px;
|
|
2719
2720
|
border-radius: 10px;
|
|
@@ -2726,7 +2727,7 @@ position: relative;
|
|
|
2726
2727
|
|
|
2727
2728
|
// custom styles
|
|
2728
2729
|
${({progressWrapStyle:e})=>e}
|
|
2729
|
-
`,
|
|
2730
|
+
`,jr=m.div`
|
|
2730
2731
|
height: inherit;
|
|
2731
2732
|
width: inherit;
|
|
2732
2733
|
transition: width 1s ease-in-out;
|
|
@@ -2738,12 +2739,12 @@ position: relative;
|
|
|
2738
2739
|
${({progressBarStyle:e})=>e}
|
|
2739
2740
|
width: ${({now:e})=>e+"%"};
|
|
2740
2741
|
background-color: ${({color:e,theme:t})=>e||t.primary["primary-1"]};
|
|
2741
|
-
`,
|
|
2742
|
+
`,qr=({labelStyle:e,progressBarStyle:l,progressWrapStyle:o,label:r,now:i,color:n,innerContent:c,...a})=>{const s=b()||R;return t.createElement("div",null,t.createElement(lt,V({inBuiltCss:P,customStyles:e,type:"progressBar-label",text:r},a)),t.createElement(Hr,V({progressBarStyle:l,theme:s,progressWrapStyle:o,color:n},a),t.createElement(jr,V({progressBarStyle:l,now:i,theme:s,color:n},a)),t.createElement("div",{style:{position:"absolute",zIndex:"3",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},c)))};qr.propTypes={labelStyle:e.object,progressBarStyle:e.object,progressWrapStyle:e.object,color:e.string,label:e.string,now:e.number,innerContent:e.any},qr.defaultProps={labelStyle:{},progressBarStyle:{},innerContent:"",label:"",now:0};const Fr=m.div`
|
|
2742
2743
|
background: transparent;
|
|
2743
2744
|
display: flex;
|
|
2744
2745
|
align-items: center;
|
|
2745
2746
|
width: ${({block:e})=>e?"100%":"fit-content"};
|
|
2746
|
-
`,
|
|
2747
|
+
`,Zr=m.div`
|
|
2747
2748
|
margin: 0;
|
|
2748
2749
|
color: ${({theme:e,variantOff:t})=>e.variant[t]};
|
|
2749
2750
|
white-space: nowrap;
|
|
@@ -2761,16 +2762,16 @@ position: relative;
|
|
|
2761
2762
|
&>div:first-of-type{
|
|
2762
2763
|
color: ${({theme:e,variantOn:t})=>e.variant[t]};
|
|
2763
2764
|
}
|
|
2764
|
-
`,
|
|
2765
|
+
`,Or=m.div`
|
|
2765
2766
|
display: flex;
|
|
2766
2767
|
margin-left: 20px;
|
|
2767
|
-
`,
|
|
2768
|
+
`,Dr=m.div`
|
|
2768
2769
|
height: 6px;
|
|
2769
2770
|
width: ${({widthStep:e})=>e}px;
|
|
2770
2771
|
margin: 0 3px;
|
|
2771
2772
|
background-color: ${({theme:e,isActive:t,variantOn:l,variantOff:o})=>t?e.variant[l]:e.variant[o]};
|
|
2772
2773
|
border-radius: 19px;
|
|
2773
|
-
`,
|
|
2774
|
+
`,Gr=({block:e,variantOn:l,variantOff:o,currentStep:r,totalSteps:i,widthStep:n,style:c,progressText:a,...s})=>(b(),t.createElement(Fr,V({block:e},s,{style:c}),t.createElement(Zr,V({},s,{variantOn:l,variantOff:o}),a||"Page"," ",t.createElement("div",null,r)," of ",t.createElement("div",null,i)),t.createElement(Or,s,Array.from(Array(i).keys()).map((e=>t.createElement(Dr,{key:"formSteps".concat(e),isActive:r===e+1,variantOn:l,variantOff:o,widthStep:n}))))));Gr.propTypes={variantOn:e.string,variantOff:e.string,block:e.bool,theme:e.object,currentStep:e.number,totalSteps:e.number,widthStep:e.number,progressText:e.string},Fr.defaultProps={theme:R},Zr.defaultProps={theme:R},Or.defaultProps={theme:R},Dr.defaultProps={theme:R},Gr.defaultProps={theme:R,variantOn:"primary-1",variantOff:"neutral-2",block:!1,currentStep:1,totalSteps:4,widthStep:43};const Xr=m.button`
|
|
2774
2775
|
background: ${({disabled:e,theme:t,bgVariant:l})=>e?"#BBC4CF":t.variant[l]};
|
|
2775
2776
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2776
2777
|
padding: 6px 17px;
|
|
@@ -2797,7 +2798,7 @@ position: relative;
|
|
|
2797
2798
|
* {
|
|
2798
2799
|
outline: none;
|
|
2799
2800
|
}
|
|
2800
|
-
`,
|
|
2801
|
+
`,Jr=({block:e,style:l,variant:o,bgVariant:r,disabled:i,...n})=>(b(),t.createElement(Xr,V({block:e,variant:o,bgVariant:r,type:"button",style:l,disabled:i},n),n.children));Jr.propTypes={variant:e.string,bgVariant:e.string,disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object},Xr.defaultProps={theme:R},Jr.defaultProps={theme:R,variant:"primary-2",bgVariant:"neutral-4",block:!1,disabled:!1,onClick:void 0};const Ur=m.button`
|
|
2801
2802
|
background: ${({disabled:e,theme:t})=>e?"#BBC4CF":t.bgColor};
|
|
2802
2803
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2803
2804
|
padding: 6px 17px;
|
|
@@ -2820,7 +2821,7 @@ position: relative;
|
|
|
2820
2821
|
fill: #929EAC;
|
|
2821
2822
|
}
|
|
2822
2823
|
}
|
|
2823
|
-
`,
|
|
2824
|
+
`,Yr=({block:e,style:l,variant:o,borderVariant:r,disabled:i,...n})=>(b(),t.createElement(Ur,V({block:e,variant:o,borderVariant:r,type:"button",style:l,disabled:i},n),n.children));Yr.propTypes={variant:e.string,borderVariant:e.string,disabled:e.bool,block:e.bool,onClick:e.func,theme:e.object},Ur.defaultProps={theme:R},Yr.defaultProps={theme:R,variant:"primary-2",borderVariant:"neutral-3",block:!1,disabled:!1,onClick:void 0};const Qr=m.div`
|
|
2824
2825
|
display: flex;
|
|
2825
2826
|
flex-direction: column;
|
|
2826
2827
|
height: ${({toggleSideBarOpen:e})=>"100vh"};
|
|
@@ -2828,7 +2829,7 @@ position: relative;
|
|
|
2828
2829
|
@media (max-width: 428px) {
|
|
2829
2830
|
height: ${({toggleSideBarOpen:e})=>e?"100vh":"56px"};
|
|
2830
2831
|
}
|
|
2831
|
-
`,
|
|
2832
|
+
`,Nr=m.div`
|
|
2832
2833
|
min-height: 56px;
|
|
2833
2834
|
display: flex;
|
|
2834
2835
|
// background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
@@ -2852,7 +2853,7 @@ position: relative;
|
|
|
2852
2853
|
}
|
|
2853
2854
|
|
|
2854
2855
|
${({headerStyles:e})=>e}
|
|
2855
|
-
`,
|
|
2856
|
+
`,Kr=m.div`
|
|
2856
2857
|
display: flex;
|
|
2857
2858
|
flex-direction: column;
|
|
2858
2859
|
background-color: transparent;
|
|
@@ -2867,7 +2868,7 @@ position: relative;
|
|
|
2867
2868
|
margin-top: 56px;
|
|
2868
2869
|
}
|
|
2869
2870
|
|
|
2870
|
-
|
|
2871
|
+
`,$r=m.div`
|
|
2871
2872
|
display: flex;
|
|
2872
2873
|
justify-content: flex-start;
|
|
2873
2874
|
align-items: center;
|
|
@@ -2897,7 +2898,7 @@ margin-top: 56px;
|
|
|
2897
2898
|
p {
|
|
2898
2899
|
margin: 0;
|
|
2899
2900
|
}
|
|
2900
|
-
|
|
2901
|
+
`,_r=({headerContent:e,bodyContent:l,footerContent:o,toggleSideBarOpen:n,headerStyles:c,selectedStyle:a,notSelectedStyle:s,customStylesNameHover:d,listElementStyle:p,customSelectCardColor:m,user:u,firstBottomContent:g,secondBottomContent:f,selectedAppPath:h,setSelectedAppPath:y,selectedAppPageId:x,setSelectedAppPageId:v,setParentId:A,setRouterObject:C,...w})=>{const S=b()||R,[k,E]=r(null),[z,V]=r(!1),[M,B]=r([]);return i((()=>{B(h.split("/"));let e=h.split("/"),t=l&&l.find((t=>e[1]===t.path.split("/")[1])),o=t?.routes&&t?.routes.find((e=>e?.path===h));v(o?.pageId||null),C(o||null),A(t?.pageId||null)}),[h]),t.createElement(Qr,{onMouseEnter:()=>V(!0),onMouseLeave:()=>{E(null),V(!1)},toggleSideBarOpen:n},t.createElement(Nr,{theme:S,headerStyles:c,toggleSideBarOpen:n},e),t.createElement(Kr,null,l&&l?.filter((e=>!0===e.visibleAsMenu))?.map(((e,l,o)=>{let r=o.length;return t.createElement("div",{className:"service-layer"},t.createElement(_,{key:l,index:l,handleClick:e=>{!function(e){E(e)}(e)},isAccordionOpen:l===k||z&&e?.value?.toLowerCase()===M[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===M[1]?.toLowerCase(),customSelectCardColor:m,customStylesAccordionContainer:{"box-shadow":"none","border-radius":"0px","background-color":"transparent",padding:r-1===l?"2px 0px 10px 0px":"0px 0px 0px 0px"},customStylesAccordionTogggle:{padding:"0","box-shadow":"none","border-radius":"0px","background-color":"transparent","padding-left":"8px","padding-top":"16px","padding-bottom":"16px",cursor:"pointer"},customStylesAccordionContent:{transition:"height ease 0.2s",overflow:"hidden",padding:"0","background-color":"transparent",color:"white",position:"relative","box-shadow":"none"},contentToggle:t.createElement(ge,{selectedStyle:a,notSelectedStyle:s,toggleName:n,customStylesName:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"16px",color:"white","font-weight":"600"},customStylesNameHover:d,size:"MD",user:{userName:e.label,url:e.logo,fullName:e.label},isSelected:e?.value?.toLowerCase()===M[1]?.toLowerCase(),notificationCount:e?.notificationCount}),content:t.createElement("div",{style:{margin:"0",padding:"0",marginBottom:"18.25px"}},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((l,o)=>t.createElement($r,{listElementStyle:p,key:e.pageId+o,onClick:()=>{y(l.path)}},t.createElement("span",{className:"selected-disk",style:{visibility:M[2]?.toLowerCase()===l?.path.split("/")[2]?.toLowerCase()?"visible":"hidden"}}),t.createElement("span",{className:"link"}," ",l?.link)))))}))}))))},ei=m.div`
|
|
2901
2902
|
background-color: ${({theme:e})=>e.variant["primary-1"]} !important;
|
|
2902
2903
|
color: ${({theme:e})=>e.bgColor};
|
|
2903
2904
|
overflow-y: hidden;
|
|
@@ -2918,7 +2919,7 @@ ${({isOpen:e,forceOpen:t,inBuiltCss:l,type:o,customStylesContainerOpen:r,customS
|
|
|
2918
2919
|
@media (max-width: 980px) {
|
|
2919
2920
|
${({isOpen:e,inBuiltCss:t,type:l,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r})=>{}}
|
|
2920
2921
|
}
|
|
2921
|
-
`,
|
|
2922
|
+
`,ti=m.div`
|
|
2922
2923
|
${({inBuiltCss:e,type:t})=>T(e,"sidebar-pusher")}
|
|
2923
2924
|
${({customStylesPusher:e})=>e}
|
|
2924
2925
|
|
|
@@ -2927,33 +2928,33 @@ ${({forceOpen:e,inBuiltCss:t,type:l,customStylesPusherOpen:o,customStylesPusherC
|
|
|
2927
2928
|
@media (max-width: 980px) {
|
|
2928
2929
|
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...T(e,"sidebar-pusher-mobile"),...l})}
|
|
2929
2930
|
}
|
|
2930
|
-
`,
|
|
2931
|
+
`,li=({customStylesContainer:e,customStylesContainerOpen:l,customStylesContainerClose:o,customStylesContainerMobileOpen:r,customStylesContainerMobileClose:i,customStylesPusher:n,customStylesPusherOpen:c,customStylesPusherClose:a,customStylesPusherMobile:s,forceOpen:d,forceClose:p,handleSidebar:m,toggleSideBarOpen:u,pinner:g,...f})=>{function h(e){m(e)}const y=b()||R;return t.createElement(ei,V({theme:y,inBuiltCss:P,customStyles:e,type:"sidebarContainer",onMouseEnter:()=>{d||h(!0)},onMouseLeave:()=>{h(!1),p()},forceOpen:d,isOpen:u},f),t.createElement(ti,null),f.children,g)};li.propTypes={customStylesContainer:e.object,customStylesContainerOpen:e.object,customStylesContainerClose:e.object,customStylesContainerMobileOpen:e.object,customStylesContainerMobileClose:e.object,customStylesPusher:e.object,customStylesPusherOpen:e.object,customStylesPusherClose:e.object,customStylesPusherMobile:e.object,forceOpen:e.bool,forceClose:e.func,handleSidebar:e.func,toggleSideBarOpen:e.bool,pinner:e.any},li.defaultProps={forceClose:()=>{},forceOpen:!1};const oi={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},ri=m.div`
|
|
2931
2932
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2932
2933
|
color: ${({theme:e})=>e.bgColor};
|
|
2933
|
-
padding: ${({size:e})=>
|
|
2934
|
+
padding: ${({size:e})=>oi[e].padding};
|
|
2934
2935
|
border: 1px solid ${({theme:e,variant:t})=>e.variant[t]};
|
|
2935
2936
|
border-radius: 42px;
|
|
2936
|
-
font-size: ${({size:e})=>
|
|
2937
|
+
font-size: ${({size:e})=>oi[e].fontSize};
|
|
2937
2938
|
font-weight: 600;
|
|
2938
2939
|
display: flex;
|
|
2939
2940
|
align-items: center;
|
|
2940
2941
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
2941
2942
|
box-sizing: border-box;
|
|
2942
2943
|
|
|
2943
|
-
`,
|
|
2944
|
+
`,ii=({block:e,style:l,variant:o,...r})=>(b(),t.createElement(ri,V({block:e,variant:o,style:l},r),r.children));ii.propTypes={variant:e.string,block:e.bool,theme:e.object},ri.defaultProps={theme:R},ii.defaultProps={theme:R,variant:"primary-1",block:!1};const ni={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},ci=m.div`
|
|
2944
2945
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
2945
2946
|
background: ${({theme:e})=>e.bgColor};
|
|
2946
|
-
padding: ${({size:e})=>
|
|
2947
|
+
padding: ${({size:e})=>ni[e].padding};
|
|
2947
2948
|
border: 1px solid ${({theme:e,variant:t})=>e.variant[t]};
|
|
2948
2949
|
border-radius: 42px;
|
|
2949
|
-
font-size: ${({size:e})=>
|
|
2950
|
+
font-size: ${({size:e})=>ni[e].fontSize};
|
|
2950
2951
|
font-weight: 600;
|
|
2951
2952
|
display: flex;
|
|
2952
2953
|
align-items: center;
|
|
2953
2954
|
width: ${({block:e})=>e?"auto":"fit-content"};
|
|
2954
2955
|
box-sizing: border-box;
|
|
2955
2956
|
|
|
2956
|
-
`,
|
|
2957
|
+
`,ai=({block:e,style:l,variant:o,...r})=>(b(),t.createElement(ci,V({block:e,variant:o,style:l},r),r.children));ai.propTypes={variant:e.string,block:e.bool,theme:e.object},ci.defaultProps={theme:R},ai.defaultProps={theme:R,variant:"primary-1",block:!1};const si={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},di=m.div`
|
|
2957
2958
|
background: ${({theme:e,variant:t,bgColor:l})=>l||e.variant[t]};
|
|
2958
2959
|
color: ${({theme:e,textColor:t})=>t||e.bgColor};
|
|
2959
2960
|
border-radius: 13.5px;
|
|
@@ -2961,11 +2962,11 @@ font-size: 14px;
|
|
|
2961
2962
|
display: inline-flex;
|
|
2962
2963
|
align-items: center;
|
|
2963
2964
|
justify-content: center;
|
|
2964
|
-
min-width: ${({block:e,size:t})=>e?"auto":
|
|
2965
|
+
min-width: ${({block:e,size:t})=>e?"auto":si[t].width};
|
|
2965
2966
|
height: 28px;
|
|
2966
2967
|
box-sizing: border-box;
|
|
2967
2968
|
overflow: hidden;
|
|
2968
|
-
`,
|
|
2969
|
+
`,pi=({block:e,style:l,variant:o,textColor:r,bgColor:i,...n})=>(b(),t.createElement(di,V({block:e,variant:o,textColor:r,bgColor:i,style:l},n),n.children));pi.propTypes={variant:e.string,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,theme:e.object,textColor:e.string,bgColor:e.string},di.defaultProps={theme:R},pi.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const mi={xsm:{width:"88px"},sm:{width:"93px"},md:{width:"111px"},lg:{width:"129px"}},bi=m.div`
|
|
2969
2970
|
background: ${({theme:e})=>e.bgColor};
|
|
2970
2971
|
color: ${({theme:e,variant:t,textColor:l})=>l||e.variant[t]};
|
|
2971
2972
|
border: 1px solid ${({theme:e,variant:t,borderColor:l})=>l||e.variant[t]};
|
|
@@ -2974,30 +2975,30 @@ font-size: 14px;
|
|
|
2974
2975
|
display: flex;
|
|
2975
2976
|
align-items: center;
|
|
2976
2977
|
justify-content: center;
|
|
2977
|
-
width: ${({block:e,size:t})=>e?"auto":
|
|
2978
|
+
width: ${({block:e,size:t})=>e?"auto":mi[t].width};
|
|
2978
2979
|
height: 27px;
|
|
2979
2980
|
box-sizing: border-box;
|
|
2980
2981
|
overflow: hidden;
|
|
2981
|
-
`,
|
|
2982
|
+
`,ui=({block:e,style:l,variant:o,textColor:r,borderColor:i,...n})=>(b(),t.createElement(bi,V({block:e,variant:o,textColor:r,borderColor:i,style:l},n),n.children));ui.propTypes={variant:e.string,size:e.oneOf(["xsm","sm","md","lg"]),block:e.bool,theme:e.object,textColor:e.string,borderColor:e.string},bi.defaultProps={theme:R},ui.defaultProps={theme:R,variant:"primary-1",block:!1,size:"sm"};const gi=e=>t.createElement("div",null,e.childern);gi.propTypes={name:e.string};const fi=m.div`
|
|
2982
2983
|
padding: 24px;
|
|
2983
2984
|
${({tabWrapperStyle:e})=>e}
|
|
2984
|
-
`,
|
|
2985
|
+
`,hi=m.div`
|
|
2985
2986
|
color: ${({theme:e})=>e.variant["graph-5"]};
|
|
2986
2987
|
display: flex;
|
|
2987
2988
|
align-items: flex-start;
|
|
2988
2989
|
column-gap: 12px;
|
|
2989
2990
|
padding-bottom: 24px;
|
|
2990
2991
|
${({headerWrapperStyle:e})=>e}
|
|
2991
|
-
`,
|
|
2992
|
+
`,yi=m.span`
|
|
2992
2993
|
font-size: 16px;
|
|
2993
2994
|
padding: 7px 20px;
|
|
2994
2995
|
background-color: ${({theme:e,isActive:t})=>t?H(e.variant["primary-1"],.2):"transparent"};
|
|
2995
2996
|
cursor: pointer;
|
|
2996
2997
|
border-radius: 5px;
|
|
2997
2998
|
${({headerStyle:e})=>e}
|
|
2998
|
-
`,
|
|
2999
|
+
`,xi=m.div`
|
|
2999
3000
|
${({tabContentStyle:e})=>e}
|
|
3000
|
-
`,
|
|
3001
|
+
`,vi=({children:e,tabWrapperStyle:l,headerStyle:o,tabContentStyle:n,headerWrapperStyle:c,dividerStyle:a,activeIndex:s,...d})=>{const[p,m]=r([]),[u,g]=r({}),[f,h]=r("");i((()=>{const l=[],o={};t.Children.forEach(e,(e=>{if(!t.isValidElement(e))return;const{name:r}=e.props;l.push(r),o[r]=e.props.children})),m(l),h(l[s]),g({...o})}),[e]);const y=b()||R;return t.createElement(fi,{tabWrapperStyle:l},t.createElement(hi,{theme:y,headerWrapperStyle:c},p.map(((e,l)=>t.createElement(yi,{onClick:()=>{h(e)},key:l,theme:y,isActive:e===f,headerStyle:o},e)))),t.createElement(vo,{theme:y,height:"8px",dividerStyle:a}),t.createElement(xi,{tabContentStyle:n},Object.keys(u).map((e=>e===f?t.createElement("div",{key:e},u[e]):null))))};vi.propTypes={children:function(e,l,o){const r=e[l];let i=null;return t.Children.forEach(r,(function(e){e.type!==gi&&(i=new Error("`"+o+"` children should be of type `TabPanel`."))})),i}},vi.propTypes={tabWrapperStyle:e.object,headerWrapperStyle:e.object,headerStyle:e.object,dividerStyle:e.object,tabContentStyle:e.object,activeIndex:e.number},vi.defaultProps={tabWrapperStyle:{},headerStyle:{},tabContentStyle:{},headerWrapperStyle:{},dividerStyle:{},activeIndex:0};const Ai=m.div`
|
|
3001
3002
|
.notification {
|
|
3002
3003
|
background: ${({theme:e})=>e.bgColor};
|
|
3003
3004
|
transition: 0.3s ease;
|
|
@@ -3071,7 +3072,7 @@ overflow: hidden;
|
|
|
3071
3072
|
.close-icon {
|
|
3072
3073
|
cursor: pointer;
|
|
3073
3074
|
}
|
|
3074
|
-
`,
|
|
3075
|
+
`,Ci=({close:e,children:l,type:r,position:n,timeout:c,localTimeout:a})=>{((e,t)=>{const l=o(e);i((()=>{l.current=e}),[e]),i((()=>{if(null===t)return;const e=setTimeout((()=>l.current()),t);return()=>clearTimeout(e)}),[t])})(e,a||c||5e3);const s=b()||R;let d=null;switch(r){case"success":d=t.createElement(N,{icon:"check-icon",color:"white",size:12,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"warning":d=t.createElement(N,{icon:"warning",color:"white",size:20,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"error":d=t.createElement(N,{icon:"close-white",size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"info":d=t.createElement(N,{icon:"info-icon",size:10,color:"white",customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}});break;case"pending":d=t.createElement(Be,{size:14})}return t.createElement(Ai,{theme:s,type:r},t.createElement("div",{className:`notification toast ${n}`},t.createElement("div",{className:"leftSide"},t.createElement("div",{className:"notification-icon"},d),t.createElement("div",{className:"notification-message"},l)),t.createElement("div",{className:"close-icon",onClick:e},t.createElement(N,{icon:"close-icon",color:s.variant["neutral-2"]}))))},wi=s(),Si=m.div`
|
|
3075
3076
|
.notification-container {
|
|
3076
3077
|
font-size: 14px;
|
|
3077
3078
|
box-sizing: border-box;
|
|
@@ -3124,9 +3125,9 @@ overflow: hidden;
|
|
|
3124
3125
|
transform: translateX(0);
|
|
3125
3126
|
}
|
|
3126
3127
|
}
|
|
3127
|
-
`;function
|
|
3128
|
+
`;function ki(){let e=46656*Math.random()|0,t=46656*Math.random()|0;return e=("000"+e.toString(36)).slice(-3),t=("000"+t.toString(36)).slice(-3),e+t}const Ei=e=>{const[l,o]=r([]),n=(e,t,l,r)=>{o((o=>[...o,{id:r||ki(),content:t,type:e,localTimeout:l}]))},c=e=>o((t=>t.filter((t=>t.id!==e)))),a=d((()=>({open:n,close:c})),[]),[s,p]=r(!1);return i((()=>(p(!0),()=>p(!1))),[]),t.createElement(wi.Provider,{value:a},e.children,s?z(t.createElement(Si,null,t.createElement("div",{className:`notification-container ${e.position}`},l.map((l=>t.createElement(Ci,{key:l.id,type:l.type,position:e.position,timeout:e.timeout,localTimeout:l.localTimeout,close:()=>c(l.id)},l.content))))),document.body):null)},zi=()=>p(wi),Vi={xs:{fontSize:"12px",lineHeight:"120%"},sm:{fontSize:"14px",lineHeight:"120%"},md:{fontSize:"16px",lineHeight:"140%"},lg:{fontSize:"18px",lineHeight:"120%"}},Mi=m.div`
|
|
3128
3129
|
color: ${({theme:e,text:t})=>t?e.variant[t]:e.textColor};
|
|
3129
3130
|
// background: ${({theme:e,bg:t})=>t?e.variant[t]:e.bgColor};
|
|
3130
|
-
font-size: ${({size:e})=>
|
|
3131
|
-
line-height: ${({size:e})=>
|
|
3132
|
-
`,
|
|
3131
|
+
font-size: ${({size:e})=>Vi[e].fontSize};
|
|
3132
|
+
line-height: ${({size:e})=>Vi[e].lineHeight};
|
|
3133
|
+
`,Bi=({size:e,children:l,bg:o,text:r,...i})=>{const n=b()||R;return t.createElement(Mi,V({theme:n,bg:o,text:r,size:e},i),t.createElement(Yo,{theme:n}),l)};Bi.propTypes={size:e.oneOf(["xs","sm","md","lg"]),text:e.string,bg:e.string,children:e.any,theme:e.object},Bi.defaultProps={size:"md"};export{$ as Accordion,_ as AccordionSB,ee as AccordionSBfooter,ao as ActionContainer,mo as ActionItem,re as ArrowBar,de as Avatar,ge as AvatarSB,xe as AvatarSBfooter,Ce as Banner,et as Breadcrumb,tr as ButtonPopup,q as Card,Z as CardRef,at as CheckBoxInput,pt as ColorInput,Kl as Comment,_l as Content,Jr as DarkSecondaryLink,vt as DateSelect,Vt as DateTime,vo as Divider,J as DocumentCard,Se as DotPulseLoader,Co as Drawer,Lt as DropdownSelect,Dt as DropzoneInput,wo as ErrorBoundary,Eo as FilterChip,Vo as Footer,Lo as FooterContent,Jo as FormComponent,bo as FormContainer,yo as FormWrapper,Ko as GroupAvatars,ir as GroupButtons,sr as GroupButtonsPopup,gr as GroupStatusCircle,Po as Header,Xo as HeaderComponent,yr as HyperLink,N as Icon,ne as Image,Yt as ImageUploader,lt as Label,Yr as LightSecondaryLink,Le as LinkButton,ze as Loader,Sr as ModalComp,fo as MultiColumnDiv,go as MultiColumnWrapper,_r as Navbar,el as NumericInput,Er as Overlay,so as OverlayOptionContainer,po as OverlayOptionItemLabel,eo as PageContent,Lr as Pagination,Pr as PaginationDefault,il as PasswordInput,Te as PrimaryButton,ii as PrimaryStatusChip,qr as ProgressBar,Gr as ProgressSteps,pl as RadioInput,Oo as Rating,Be as RoundedLoader,hl as SearchInput,qe as SecondaryButton,ai as SecondaryStatusChip,li as Sidebar,Sl as SignatureInput,pi as SlimPrimaryStatusChip,ui as SlimSecondaryStatusChip,pr as StatusCircle,oo as StyledCentralBar,lo as StyledClearSearch,io as StyledCreateRow,no as StyledRow,to as StyledRowSearch,co as StyledSearchRow,ro as StyledWarning,uo as SubmitButtonContainer,Uo as SubmitComponent,gi as TabPanel,Go as Table,vi as Tabs,Ml as TextArea,fl as TextInput,Hl as TimeInput,Ze as TinyButton,Ei as ToastProvider,Ol as ToggleSwitch,Qe as Tooltip,Bi as Typography,P as defaultStyles,R as defaultThemeColor,T as getDefaultStyles,L as graphColor,H as hexToRGB,I as neutralColor,M as primaryColor,W as shadeColor,B as uiColor,zi as useToast};
|