groundfloor-react-ui 1.3.10 → 1.3.11

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.js CHANGED
@@ -384,13 +384,16 @@ ${({customStyles:e})=>e}
384
384
  &:focus {
385
385
  outline: none;
386
386
  }
387
+ &:hover {
388
+ background-color: ${({theme:e,disabled:t,hoverEffect:l,hoverBackgroundColor:a})=>!t&&l&&W(a||e.primary["primary-1"],.15)};
389
+ }
387
390
 
388
391
  //Set the styles from the default styles object
389
392
  ${({theme:e,defaultStyle:t})=>P(e,t)}
390
393
 
391
394
  // custom styles
392
395
  ${({btnStyle:e})=>e}
393
- `,fe=({btnStyle:e,block:t,size:a,style:o,disabled:r,isLoading:i,type:n,id:c,...d})=>{const s=l.useTheme()||H;return g.default.createElement(pe,E({id:c,block:t,defaultStyle:"button",type:n,style:o,size:a,theme:s,disabled:r,btnStyle:e},d),i&&g.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},g.default.createElement(ne,{customStyles:{"background-color":s.additional.white},size:16})),d.children)};fe.propTypes={disabled:b.default.bool,size:b.default.oneOf(["sm","md","lg"]),block:b.default.bool,isLoading:b.default.bool,onClick:b.default.func,type:b.default.string,btnStyle:b.default.object,id:b.default.string},fe.defaultProps={block:!1,isLoading:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:""};const me={sm:{fontSize:"14px",padding:"5px 15px"},md:{fontSize:"16px",padding:"5.5px 15px"},lg:{fontSize:"18px",padding:"8px 20px"}},be=h.default.button`
396
+ `,fe=({btnStyle:e,block:t,size:a,style:o,disabled:r,isLoading:i,type:n,hoverEffect:c,hoverBackgroundColor:d,id:s,...u})=>{const p=l.useTheme()||H;return g.default.createElement(pe,E({id:s,block:t,defaultStyle:"button",type:n,style:o,size:a,theme:p,disabled:r,btnStyle:e,hoverEffect:c,hoverBackgroundColor:d},u),i&&g.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},g.default.createElement(ne,{customStyles:{"background-color":p.additional.white},size:16})),u.children)};fe.propTypes={disabled:b.default.bool,size:b.default.oneOf(["sm","md","lg"]),block:b.default.bool,isLoading:b.default.bool,onClick:b.default.func,type:b.default.string,btnStyle:b.default.object,id:b.default.string,hoverEffect:b.default.bool,hoverBackgroundColor:b.default.string},fe.defaultProps={block:!1,isLoading:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},hoverEffect:!1,id:"",hoverBackgroundColor:""};const me={sm:{fontSize:"14px",padding:"5px 15px"},md:{fontSize:"16px",padding:"5.5px 15px"},lg:{fontSize:"18px",padding:"8px 20px"}},be=h.default.button`
394
397
  background-color: ${({theme:e})=>e.primary["primary-1"]};
395
398
  color: ${({theme:e})=>e.additional.white};
396
399
  padding: ${({size:e})=>me[e].padding};
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.3.10",
4
+ "version": "1.3.11",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
7
7
  "private": false,