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.es.js +181 -178
- package/dist/index.js +4 -1
- package/package.json +1 -1
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:
|
|
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};
|