groundfloor-react-ui 1.2.59 → 1.2.60

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 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
- `;ll.defaultProps={theme:R};const ol=u`
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
- `;rl.defaultProps={theme:R};const 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})=>{r(!1);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({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(Q,{icon:"eye-show"}):t.createElement(Q,{icon:"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`
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
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
- `;Kt.defaultProps={theme:B};const $t=l.css`
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
- `;_t.defaultProps={theme:B};const 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})=>{t.useState(!1);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({inputStyle:r,type:h,autocomplete:"off",id:p,theme:x,defaultInputStyle:"input-wrapper",inBuiltCss:I},g)),!0===f?b.default.createElement("div",{className:"input-icon",onClick:()=>{"password"===h?y("text"):"text"===h&&y("password")},style:{position:"absolute",right:"7px"}},"text"===h?b.default.createElement(J,{icon:"eye-show"}):b.default.createElement(J,{icon:"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`
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "groundfloor-react-ui",
3
3
  "description": "Official component library for Ground Floor",
4
- "version": "1.2.59",
4
+ "version": "1.2.60",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
7
7
  "private": false,