groundfloor-react-ui 1.2.59 → 1.2.61
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 +4 -5
- package/dist/index.js +4 -5
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1528,7 +1528,7 @@ float: right;
|
|
|
1528
1528
|
`;_t.defaultProps={theme:R};const el=({label:e,inputValue:l,inputStyle:o,iconBefore:r,iconAfter:i,onChange:c,theme:n,id:a,labelStyle:s,...d})=>t.createElement(_t,d,e.length>0&&t.createElement(Kt,{labelStyle:s},e),t.createElement("div",null,t.createElement(Yt,d,t.createElement("div",{className:"input-icon"},r),t.createElement(Qt,z({},d,{inputStyle:o,value:l,onChange:e=>{const{value:t}=e.currentTarget;(""===t||/^[0-9\b.-]+$/.test(t))&&c(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`
|
|
1529
1529
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1530
1530
|
|
|
1531
|
-
//Set the styles from the default styles object
|
|
1531
|
+
//Set the styles from the default styles object
|
|
1532
1532
|
${({inBuiltCss:e,defaultWrapperStyle:t})=>H(e,t)}
|
|
1533
1533
|
|
|
1534
1534
|
border: ${({isValid:e,theme:t})=>e?"1px solid "+t.border:"1px solid "+t.variant.error};
|
|
@@ -1553,7 +1553,6 @@ float: right;
|
|
|
1553
1553
|
${({textBoxStyle:e})=>e}
|
|
1554
1554
|
`;tl.defaultProps={theme:R};const ll=m.input`
|
|
1555
1555
|
width: 85%;
|
|
1556
|
-
|
|
1557
1556
|
|
|
1558
1557
|
//Set the styles from the default styles object
|
|
1559
1558
|
${({inBuiltCss:e,defaultInputStyle:t})=>H(e,t)}
|
|
@@ -1564,7 +1563,7 @@ float: right;
|
|
|
1564
1563
|
.sc-furwcr bxRAoq {
|
|
1565
1564
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
1566
1565
|
}
|
|
1567
|
-
|
|
1566
|
+
`,ol=u`
|
|
1568
1567
|
display: flex;
|
|
1569
1568
|
gap: 7px;
|
|
1570
1569
|
align-items: flex-start;
|
|
@@ -1575,7 +1574,7 @@ float: right;
|
|
|
1575
1574
|
margin-top: 5px;
|
|
1576
1575
|
font-size: 10px;
|
|
1577
1576
|
}
|
|
1578
|
-
|
|
1577
|
+
`,il=({passwordRules:e,textBoxStyle:l,labelStyle:o,inputStyle:i,errMsg:c,required:n,label:a,labelInline:s,isValid:d,rulesStyle:p,id:m,showHideIcon:u,errMsgColor:g,...f})=>{const[h,y]=r("password"),x=b()||R;return t.createElement(rl,z({labelInline:s,inBuiltCss:P,errMsgColor:g,theme:x},f),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,z({customStyles:o,type:"label-text",text:a,errMsg:c,style:{display:"flex",marginBottom:`${s?0:"8px"}`,paddingBottom:"0px"}},f)),n&&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,z({required:n,theme:x,textBoxStyle:l,isValid:d,defaultWrapperStyle:"textbox-wrapper",inBuiltCss:P},f),t.createElement(ll,z({},f,{inputStyle:i,type:h,autocomplete:"off",id:m,theme:x,defaultInputStyle:"input-wrapper",inBuiltCss:P})),!0===u?t.createElement("div",{className:"input-icon",onClick:()=>y("password"===h?"text":"password"),style:{position:"absolute",right:"7px"}},t.createElement(Q,{icon:"text"===h?"eye-show":"eye-hide"})):""),c.length>0&&t.createElement("div",{className:"err-text"},c)),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 cl=m.div`
|
|
1579
1578
|
box-sizing: initial;
|
|
1580
1579
|
|
|
1581
1580
|
//Set the styles from the default styles object
|
|
@@ -1876,7 +1875,7 @@ float: right;
|
|
|
1876
1875
|
|
|
1877
1876
|
// custom styles
|
|
1878
1877
|
${({optionStyle:e})=>e};
|
|
1879
|
-
`,Ol=({checked:e,customSwitchStyle:l,customToggleBoxStyle:o,onClick:r,optionStyle:i,id:c,isDisabled:n,...
|
|
1878
|
+
`,Ol=({checked:e,customSwitchStyle:l,customToggleBoxStyle:o,onClick:r,optionStyle:i,id:c,isDisabled:n,trueLabel:a,falseLabel:s,...d})=>{const p=b()||R;return t.createElement(jl,z({inBuiltCss:P,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},d),t.createElement(ql,z({},d,{id:c,inBuiltCss:P,onClick:()=>{r(!e)},isChecked:e,disabled:n,isDisabled:n})),t.createElement(Fl,z({},d,{htmlFor:c,customToggleBoxStyle:o,customSwitchStyle:l,inBuiltCss:P,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:p,isDisabled:n})),t.createElement(Zl,z({optionStyle:i,inBuiltCss:P,theme:p,checked:e},d),e?a:s))};Ol.propTypes={customToggleBoxStyle:e.object,customSwitchStyle:e.object,checked:e.bool,id:e.string,isDisabled:e.bool,trueLabel:e.string,falseLabel:e.string},Ol.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1,trueLabel:"Yes",falseLabel:"NO"};const Dl=m.div`
|
|
1880
1879
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1881
1880
|
padding: 24px 8px;
|
|
1882
1881
|
${({commentBodyStyle:e})=>e};
|
package/dist/index.js
CHANGED
|
@@ -1528,7 +1528,7 @@ float: right;
|
|
|
1528
1528
|
`;Nt.defaultProps={theme:B};const Yt=({label:e,inputValue:t,inputStyle:l,iconBefore:a,iconAfter:o,onChange:r,theme:i,id:c,labelStyle:n,...d})=>b.default.createElement(Nt,d,e.length>0&&b.default.createElement(Jt,{labelStyle:n},e),b.default.createElement("div",null,b.default.createElement(Gt,d,b.default.createElement("div",{className:"input-icon"},a),b.default.createElement(Xt,S({},d,{inputStyle:l,value:t,onChange:e=>{const{value:t}=e.currentTarget;(""===t||/^[0-9\b.-]+$/.test(t))&&r(t)},type:"number",id:c})),b.default.createElement("div",{className:"input-icon",style:{position:"absolute",right:"7px"}},o))));Yt.propTypes={theme:m.default.object,label:m.default.string,labelInline:m.default.bool,inputValue:m.default.any,inputStyle:m.default.object,id:m.default.string,labelStyle:m.default.object},Yt.defaultProps={theme:B,label:"",labelInline:!1,inputStyle:{},inputValue:null,id:"",labelStyle:{}};const Qt=g.default.div`
|
|
1529
1529
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1530
1530
|
|
|
1531
|
-
//Set the styles from the default styles object
|
|
1531
|
+
//Set the styles from the default styles object
|
|
1532
1532
|
${({inBuiltCss:e,defaultWrapperStyle:t})=>L(e,t)}
|
|
1533
1533
|
|
|
1534
1534
|
border: ${({isValid:e,theme:t})=>e?"1px solid "+t.border:"1px solid "+t.variant.error};
|
|
@@ -1553,7 +1553,6 @@ float: right;
|
|
|
1553
1553
|
${({textBoxStyle:e})=>e}
|
|
1554
1554
|
`;Qt.defaultProps={theme:B};const Kt=g.default.input`
|
|
1555
1555
|
width: 85%;
|
|
1556
|
-
|
|
1557
1556
|
|
|
1558
1557
|
//Set the styles from the default styles object
|
|
1559
1558
|
${({inBuiltCss:e,defaultInputStyle:t})=>L(e,t)}
|
|
@@ -1564,7 +1563,7 @@ float: right;
|
|
|
1564
1563
|
.sc-furwcr bxRAoq {
|
|
1565
1564
|
color: ${({theme:e})=>e.variant["neutral-3"]};
|
|
1566
1565
|
}
|
|
1567
|
-
|
|
1566
|
+
`,$t=l.css`
|
|
1568
1567
|
display: flex;
|
|
1569
1568
|
gap: 7px;
|
|
1570
1569
|
align-items: flex-start;
|
|
@@ -1575,7 +1574,7 @@ float: right;
|
|
|
1575
1574
|
margin-top: 5px;
|
|
1576
1575
|
font-size: 10px;
|
|
1577
1576
|
}
|
|
1578
|
-
|
|
1577
|
+
`,el=({passwordRules:e,textBoxStyle:a,labelStyle:o,inputStyle:r,errMsg:i,required:c,label:n,labelInline:d,isValid:s,rulesStyle:u,id:p,showHideIcon:f,errMsgColor:m,...g})=>{const[h,y]=t.useState("password"),x=l.useTheme()||B;return b.default.createElement(_t,S({labelInline:d,inBuiltCss:I,errMsgColor:m,theme:x},g),b.default.createElement("div",{style:{display:"flex"}},b.default.createElement(Ke,S({customStyles:o,type:"label-text",text:n,errMsg:i,style:{display:"flex",marginBottom:`${d?0:"8px"}`,paddingBottom:"0px"}},g)),c&&b.default.createElement("div",{style:{marginLeft:"4px",marginRight:"5px",color:`${x.variant.error}`}},"*")),b.default.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"flex-start"}},b.default.createElement("div",{style:{width:"100%"}},b.default.createElement(Qt,S({required:c,theme:x,textBoxStyle:a,isValid:s,defaultWrapperStyle:"textbox-wrapper",inBuiltCss:I},g),b.default.createElement(Kt,S({},g,{inputStyle:r,type:h,autocomplete:"off",id:p,theme:x,defaultInputStyle:"input-wrapper",inBuiltCss:I})),!0===f?b.default.createElement("div",{className:"input-icon",onClick:()=>y("password"===h?"text":"password"),style:{position:"absolute",right:"7px"}},b.default.createElement(J,{icon:"text"===h?"eye-show":"eye-hide"})):""),i.length>0&&b.default.createElement("div",{className:"err-text"},i)),e?b.default.createElement("div",{style:{...u,marginLeft:"5px"}},e):""))};el.propTypes={inBuiltCss:m.default.object,theme:m.default.object,label:m.default.string,required:m.default.bool,labelInline:m.default.bool,errMsg:m.default.string,textBoxStyle:m.default.object,labelStyle:m.default.object,inputStyle:m.default.object,rulesStyle:m.default.object,id:m.default.string,showHideIcon:m.default.bool},el.defaultProps={inBuiltCss:I,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",textBoxStyle:{},labelStyle:{},inputStyle:{},passwordRules:"",rulesStyle:{},id:"",showHideIcon:!0};const tl=g.default.div`
|
|
1579
1578
|
box-sizing: initial;
|
|
1580
1579
|
|
|
1581
1580
|
//Set the styles from the default styles object
|
|
@@ -1876,7 +1875,7 @@ float: right;
|
|
|
1876
1875
|
|
|
1877
1876
|
// custom styles
|
|
1878
1877
|
${({optionStyle:e})=>e};
|
|
1879
|
-
`,Hl=({checked:e,customSwitchStyle:t,customToggleBoxStyle:a,onClick:o,optionStyle:r,id:i,isDisabled:c,...
|
|
1878
|
+
`,Hl=({checked:e,customSwitchStyle:t,customToggleBoxStyle:a,onClick:o,optionStyle:r,id:i,isDisabled:c,trueLabel:n,falseLabel:d,...s})=>{const u=l.useTheme()||B;return b.default.createElement(Wl,S({inBuiltCss:I,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},s),b.default.createElement(Tl,S({},s,{id:i,inBuiltCss:I,onClick:()=>{o(!e)},isChecked:e,disabled:c,isDisabled:c})),b.default.createElement(Rl,S({},s,{htmlFor:i,customToggleBoxStyle:a,customSwitchStyle:t,inBuiltCss:I,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:u,isDisabled:c})),b.default.createElement(Pl,S({optionStyle:r,inBuiltCss:I,theme:u,checked:e},s),e?n:d))};Hl.propTypes={customToggleBoxStyle:m.default.object,customSwitchStyle:m.default.object,checked:m.default.bool,id:m.default.string,isDisabled:m.default.bool,trueLabel:m.default.string,falseLabel:m.default.string},Hl.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1,trueLabel:"Yes",falseLabel:"NO"};const jl=g.default.div`
|
|
1880
1879
|
background-color: ${({theme:e})=>e.bgColor};
|
|
1881
1880
|
padding: 24px 8px;
|
|
1882
1881
|
${({commentBodyStyle:e})=>e};
|