groundfloor-react-ui 1.3.85 → 1.3.86
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 +34 -17
- package/dist/index.js +34 -17
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -742,54 +742,71 @@ ${({customTriggerStyle:e})=>e}
|
|
|
742
742
|
`,it=({customStyles:e,text:l,className:i,required:o,showLabelIcon:c,tooltipProps:a,...r})=>{const n=b()||Z;return t.createElement(lt,H({required:o,inBuiltCss:F,customStyles:e,type:"label"},r),l,o&&t.createElement("div",{style:{marginLeft:"4px",color:`${n.variant.error}`}},"*"),c&&t.createElement("div",{style:{marginLeft:"8px"}},t.createElement(Qe,H({contentTrigger:t.createElement(ee,H({icon:"correct",size:12,color:n.variant["neutral-3"]},a?.triggerIconProps)),contentTooltip:a?.contentTooltip,popperOptionsP:{placement:"top"},settings:{trigger:"hover"},footerTooltip:"",customContentStyle:{width:"210px",backgroundColor:"white",color:"#6B747F",boxShadow:"0px 6px 40px rgba(56, 66, 100, 0.482627)",padding:"16px",borderRadius:"3.6px"}},a))))};it.propTypes={customStyles:e.object,text:e.string,showLabelIcon:e.bool,tooltipProps:e.object},it.defaultProps={text:"",showLabelIcon:!1};const ot=m.div`
|
|
743
743
|
display: flex;
|
|
744
744
|
flex-direction: column;
|
|
745
|
+
.err-text {
|
|
746
|
+
color: ${({theme:e})=>e.variant.error};
|
|
747
|
+
margin-top: 5px;
|
|
748
|
+
font-size: 10px;
|
|
749
|
+
}
|
|
745
750
|
${({containerStyle:e})=>e};
|
|
751
|
+
|
|
746
752
|
`,ct=m.div`
|
|
747
753
|
display: flex;
|
|
748
754
|
flex-wrap: wrap;
|
|
749
|
-
align-items:
|
|
750
|
-
border-radius:
|
|
751
|
-
padding: 8px;
|
|
752
|
-
border:
|
|
753
|
-
|
|
755
|
+
align-items: center;
|
|
756
|
+
border-radius: 6px;
|
|
757
|
+
padding: 6px 8px;
|
|
758
|
+
border: 1px solid ${({theme:e})=>e.variant["neutral-3"]};
|
|
759
|
+
background-color: white;
|
|
760
|
+
min-height: 40px;
|
|
761
|
+
|
|
754
762
|
${({inputContainerStyle:e})=>e};
|
|
755
763
|
`,at=m.div`
|
|
756
764
|
background-color: ${({theme:e})=>e.variant["selection-bg"]};
|
|
757
765
|
color: ${({theme:e})=>e.variant["neutral-1"]};
|
|
758
766
|
border-radius: 4px;
|
|
759
767
|
padding: 4px 8px;
|
|
760
|
-
margin-right:
|
|
761
|
-
margin-bottom:
|
|
768
|
+
margin-right: 6px;
|
|
769
|
+
margin-bottom: 4px;
|
|
762
770
|
display: flex;
|
|
763
771
|
align-items: center;
|
|
772
|
+
font-size: 14px;
|
|
764
773
|
|
|
765
774
|
&:hover {
|
|
766
775
|
cursor: pointer;
|
|
767
776
|
}
|
|
768
777
|
`,rt=m.span`
|
|
778
|
+
font-weight: bold;
|
|
779
|
+
margin-left: 4px;
|
|
780
|
+
cursor: pointer;
|
|
781
|
+
user-select: none;
|
|
782
|
+
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
783
|
+
|
|
784
|
+
&:hover {
|
|
785
|
+
color: ${({theme:e})=>e.variant.error};
|
|
786
|
+
}
|
|
787
|
+
`,nt=m.span`
|
|
769
788
|
margin-right: 8px;
|
|
770
789
|
word-break: break-all;
|
|
771
|
-
`,
|
|
790
|
+
`,st=m.input`
|
|
772
791
|
flex-grow: 1;
|
|
773
|
-
|
|
792
|
+
min-width: 120px;
|
|
774
793
|
border: none;
|
|
775
794
|
outline: none;
|
|
776
|
-
|
|
777
|
-
|
|
795
|
+
font-size: 14px;
|
|
796
|
+
margin-bottom: 4px;
|
|
797
|
+
padding: 4px;
|
|
778
798
|
color: ${({theme:e})=>e.variant["neutral-1"]};
|
|
779
799
|
background-color: transparent;
|
|
780
800
|
|
|
781
|
-
&:focus {
|
|
782
|
-
outline: none;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
801
|
&::placeholder {
|
|
786
802
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
787
803
|
}
|
|
804
|
+
|
|
788
805
|
${({inputStyle:e})=>e};
|
|
789
|
-
|
|
806
|
+
`;m.span`
|
|
790
807
|
color: ${({theme:e})=>e.variant.error};
|
|
791
808
|
${({errorTextStyle:e})=>e};
|
|
792
|
-
|
|
809
|
+
`;const dt=({listChips:e,setListChips:l,currentChip:i,setCurrentChip:a,chipListString:r,placeholder:n,errorMsg:s,handleBlurProps:d,label:p,labelCusTomStyles:m,containerStyle:u,inputContainerStyle:f,errorTextStyle:g,disabled:h,isValid:C,handleInputKeyDownProps:y,handleInputChangeProps:x,inputStyle:v,...w})=>{const[A,S]=o(r?r.split(","):e||[]),[k,V]=o(i),[E,M]=o(""),L=b()||Z;c((()=>{S(r?r.split(","):e||[])}),[r,e]),c((()=>{V(i)}),[i]);return t.createElement(ot,{theme:L,containerStyle:u},t.createElement(it,{text:p,customStyles:m}),t.createElement(ct,{theme:L,inputContainerStyle:f},A.map(((e,l)=>t.createElement(at,{theme:L,key:e+`${l}`},t.createElement(nt,null,e),t.createElement(rt,{theme:L,onClick:()=>(e=>{const t=[...A];t.splice(e,1),S(t),M(""),d(t.join(","))})(l)},"×")))),t.createElement(st,{type:"text",placeholder:n,value:k,onKeyDown:e=>{"Enter"===e.key||","===e.key?(e.preventDefault(),C?k.trim()&&(y([...A,k.trim()].join(",")),S([...A,k.trim()]),V(""),M("")):M(s)):"Backspace"!==e.key||k||(y(A.slice(0,-1).join(",")),S(A.slice(0,-1)))},onChange:e=>{V(e.target.value),M(""),x(e.target.value)},theme:L,onBlur:()=>{if(C){let e;e=k.trim()?[...A,k.trim()]:[...A],d(e.join(",")),S(e),V("")}else C||M(s)},disabled:h,inputStyle:v})),E.length>0&&t.createElement("div",{className:"err-text"},E))};dt.propTypes={listChips:e.arrayOf(e.string),setListChips:e.func,chipListString:e.string,currentChip:e.string,setCurrentChip:e.func,placeholder:e.string,isValid:e.bool,errorMsg:e.string,label:e.string,labelCusTomStyles:e.object,containerStyle:e.object,inputContainerStyle:e.object,errorTextStyle:e.object,disabled:e.bool,handleInputKeyDownProps:e.func,handleInputChangeProps:e.func,inputStyle:e.object},dt.defaultProps={listChips:[],setListChips:()=>{},currentChip:"",setCurrentChip:()=>{},placeholder:"",errorMsg:"Please enter a valid email address",label:"From:",labelCusTomStyles:{},containerStyle:{},inputContainerStyle:{},errorTextStyle:{},disabled:!1,isValid:!0,inputStyle:{}};const pt=({CommonRenderedComponent:e,MultiValue:l,Option:i,type:o,id:c,styles:a,onCreateOption:r,...n})=>{let s={...e};return"asyncMultiCreatable"===o&&(s.MultiValue=l,s.Option=i),t.createElement(y,H({className:"select-manage-page contentClickFalse",classNamePrefix:"new-select",name:"select-dropdown",components:s,isMulti:!0,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiCreatable"!==o,isSearchable:!0,styles:a,menuShouldScrollIntoView:!1,"data-accordion":"contentClickFalse",id:c,onCreateOption:r},n))},mt=m.div`
|
|
793
810
|
box-sizing: initial;
|
|
794
811
|
|
|
795
812
|
//Set the styles from the default styles object
|
package/dist/index.js
CHANGED
|
@@ -742,54 +742,71 @@ ${({customTriggerStyle:e})=>e}
|
|
|
742
742
|
`,et=({customStyles:e,text:t,className:a,required:o,showLabelIcon:i,tooltipProps:r,...c})=>{const n=l.useTheme()||R;return h.default.createElement(_e,M({required:o,inBuiltCss:W,customStyles:e,type:"label"},c),t,o&&h.default.createElement("div",{style:{marginLeft:"4px",color:`${n.variant.error}`}},"*"),i&&h.default.createElement("div",{style:{marginLeft:"8px"}},h.default.createElement(Ue,M({contentTrigger:h.default.createElement($,M({icon:"correct",size:12,color:n.variant["neutral-3"]},r?.triggerIconProps)),contentTooltip:r?.contentTooltip,popperOptionsP:{placement:"top"},settings:{trigger:"hover"},footerTooltip:"",customContentStyle:{width:"210px",backgroundColor:"white",color:"#6B747F",boxShadow:"0px 6px 40px rgba(56, 66, 100, 0.482627)",padding:"16px",borderRadius:"3.6px"}},r))))};et.propTypes={customStyles:g.default.object,text:g.default.string,showLabelIcon:g.default.bool,tooltipProps:g.default.object},et.defaultProps={text:"",showLabelIcon:!1};const tt=C.default.div`
|
|
743
743
|
display: flex;
|
|
744
744
|
flex-direction: column;
|
|
745
|
+
.err-text {
|
|
746
|
+
color: ${({theme:e})=>e.variant.error};
|
|
747
|
+
margin-top: 5px;
|
|
748
|
+
font-size: 10px;
|
|
749
|
+
}
|
|
745
750
|
${({containerStyle:e})=>e};
|
|
751
|
+
|
|
746
752
|
`,lt=C.default.div`
|
|
747
753
|
display: flex;
|
|
748
754
|
flex-wrap: wrap;
|
|
749
|
-
align-items:
|
|
750
|
-
border-radius:
|
|
751
|
-
padding: 8px;
|
|
752
|
-
border:
|
|
753
|
-
|
|
755
|
+
align-items: center;
|
|
756
|
+
border-radius: 6px;
|
|
757
|
+
padding: 6px 8px;
|
|
758
|
+
border: 1px solid ${({theme:e})=>e.variant["neutral-3"]};
|
|
759
|
+
background-color: white;
|
|
760
|
+
min-height: 40px;
|
|
761
|
+
|
|
754
762
|
${({inputContainerStyle:e})=>e};
|
|
755
763
|
`,at=C.default.div`
|
|
756
764
|
background-color: ${({theme:e})=>e.variant["selection-bg"]};
|
|
757
765
|
color: ${({theme:e})=>e.variant["neutral-1"]};
|
|
758
766
|
border-radius: 4px;
|
|
759
767
|
padding: 4px 8px;
|
|
760
|
-
margin-right:
|
|
761
|
-
margin-bottom:
|
|
768
|
+
margin-right: 6px;
|
|
769
|
+
margin-bottom: 4px;
|
|
762
770
|
display: flex;
|
|
763
771
|
align-items: center;
|
|
772
|
+
font-size: 14px;
|
|
764
773
|
|
|
765
774
|
&:hover {
|
|
766
775
|
cursor: pointer;
|
|
767
776
|
}
|
|
768
777
|
`,ot=C.default.span`
|
|
778
|
+
font-weight: bold;
|
|
779
|
+
margin-left: 4px;
|
|
780
|
+
cursor: pointer;
|
|
781
|
+
user-select: none;
|
|
782
|
+
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
783
|
+
|
|
784
|
+
&:hover {
|
|
785
|
+
color: ${({theme:e})=>e.variant.error};
|
|
786
|
+
}
|
|
787
|
+
`,it=C.default.span`
|
|
769
788
|
margin-right: 8px;
|
|
770
789
|
word-break: break-all;
|
|
771
|
-
`,
|
|
790
|
+
`,rt=C.default.input`
|
|
772
791
|
flex-grow: 1;
|
|
773
|
-
|
|
792
|
+
min-width: 120px;
|
|
774
793
|
border: none;
|
|
775
794
|
outline: none;
|
|
776
|
-
|
|
777
|
-
|
|
795
|
+
font-size: 14px;
|
|
796
|
+
margin-bottom: 4px;
|
|
797
|
+
padding: 4px;
|
|
778
798
|
color: ${({theme:e})=>e.variant["neutral-1"]};
|
|
779
799
|
background-color: transparent;
|
|
780
800
|
|
|
781
|
-
&:focus {
|
|
782
|
-
outline: none;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
801
|
&::placeholder {
|
|
786
802
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
787
803
|
}
|
|
804
|
+
|
|
788
805
|
${({inputStyle:e})=>e};
|
|
789
|
-
|
|
806
|
+
`;C.default.span`
|
|
790
807
|
color: ${({theme:e})=>e.variant.error};
|
|
791
808
|
${({errorTextStyle:e})=>e};
|
|
792
|
-
|
|
809
|
+
`;const ct=({listChips:e,setListChips:a,currentChip:o,setCurrentChip:i,chipListString:r,placeholder:c,errorMsg:n,handleBlurProps:d,label:s,labelCusTomStyles:p,containerStyle:u,inputContainerStyle:f,errorTextStyle:m,disabled:b,isValid:g,handleInputKeyDownProps:C,handleInputChangeProps:x,inputStyle:y,...v})=>{const[w,A]=t.useState(r?r.split(","):e||[]),[S,k]=t.useState(o),[E,V]=t.useState(""),M=l.useTheme()||R;t.useEffect((()=>{A(r?r.split(","):e||[])}),[r,e]),t.useEffect((()=>{k(o)}),[o]);return h.default.createElement(tt,{theme:M,containerStyle:u},h.default.createElement(et,{text:s,customStyles:p}),h.default.createElement(lt,{theme:M,inputContainerStyle:f},w.map(((e,t)=>h.default.createElement(at,{theme:M,key:e+`${t}`},h.default.createElement(it,null,e),h.default.createElement(ot,{theme:M,onClick:()=>(e=>{const t=[...w];t.splice(e,1),A(t),V(""),d(t.join(","))})(t)},"×")))),h.default.createElement(rt,{type:"text",placeholder:c,value:S,onKeyDown:e=>{"Enter"===e.key||","===e.key?(e.preventDefault(),g?S.trim()&&(C([...w,S.trim()].join(",")),A([...w,S.trim()]),k(""),V("")):V(n)):"Backspace"!==e.key||S||(C(w.slice(0,-1).join(",")),A(w.slice(0,-1)))},onChange:e=>{k(e.target.value),V(""),x(e.target.value)},theme:M,onBlur:()=>{if(g){let e;e=S.trim()?[...w,S.trim()]:[...w],d(e.join(",")),A(e),k("")}else g||V(n)},disabled:b,inputStyle:y})),E.length>0&&h.default.createElement("div",{className:"err-text"},E))};ct.propTypes={listChips:g.default.arrayOf(g.default.string),setListChips:g.default.func,chipListString:g.default.string,currentChip:g.default.string,setCurrentChip:g.default.func,placeholder:g.default.string,isValid:g.default.bool,errorMsg:g.default.string,label:g.default.string,labelCusTomStyles:g.default.object,containerStyle:g.default.object,inputContainerStyle:g.default.object,errorTextStyle:g.default.object,disabled:g.default.bool,handleInputKeyDownProps:g.default.func,handleInputChangeProps:g.default.func,inputStyle:g.default.object},ct.defaultProps={listChips:[],setListChips:()=>{},currentChip:"",setCurrentChip:()=>{},placeholder:"",errorMsg:"Please enter a valid email address",label:"From:",labelCusTomStyles:{},containerStyle:{},inputContainerStyle:{},errorTextStyle:{},disabled:!1,isValid:!0,inputStyle:{}};const nt=({CommonRenderedComponent:e,MultiValue:t,Option:l,type:a,id:o,styles:i,onCreateOption:r,...c})=>{let n={...e};return"asyncMultiCreatable"===a&&(n.MultiValue=t,n.Option=l),h.default.createElement(x.default,M({className:"select-manage-page contentClickFalse",classNamePrefix:"new-select",name:"select-dropdown",components:n,isMulti:!0,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiCreatable"!==a,isSearchable:!0,styles:i,menuShouldScrollIntoView:!1,"data-accordion":"contentClickFalse",id:o,onCreateOption:r},c))},dt=C.default.div`
|
|
793
810
|
box-sizing: initial;
|
|
794
811
|
|
|
795
812
|
//Set the styles from the default styles object
|