groundfloor-react-ui 1.3.15 → 1.3.17
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 +5 -9
- package/dist/index.js +5 -9
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -443,9 +443,10 @@ ${({customStyles:e})=>e}
|
|
|
443
443
|
//Set the styles from the default styles object
|
|
444
444
|
${({theme:e,defaultStyle:t})=>T(e,t)}
|
|
445
445
|
&:disabled {
|
|
446
|
-
color:
|
|
447
|
-
border:
|
|
446
|
+
color: #929eac;
|
|
447
|
+
border: 1px solid ${({theme:e})=>e.neutral["neutral-3"]};
|
|
448
448
|
cursor: not-allowed;
|
|
449
|
+
${({disableStyle:e})=>e}
|
|
449
450
|
}
|
|
450
451
|
&:hover {
|
|
451
452
|
background-color: ${({theme:e,disabled:t,btnStyle:l})=>!t&&(l.color?l.color:e.primary["primary-1"])};
|
|
@@ -453,19 +454,14 @@ ${({customStyles:e})=>e}
|
|
|
453
454
|
|
|
454
455
|
svg {
|
|
455
456
|
path {
|
|
456
|
-
fill: ${({theme:e,disabled:t,btnStyle:l
|
|
457
|
+
fill: ${({theme:e,disabled:t,btnStyle:l})=>!t&&(l.color?l.backgroundColor:e.variant.white)};
|
|
457
458
|
}
|
|
458
459
|
}
|
|
459
460
|
}
|
|
460
|
-
svg {
|
|
461
|
-
path {
|
|
462
|
-
fill: ${({theme:e,disabled:t,disableColor:l})=>t&&l?l:e.variant["neutral-1"]};
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
461
|
|
|
466
462
|
// custom styles
|
|
467
463
|
${({btnStyle:e})=>e}
|
|
468
|
-
`,we=({btnStyle:e,isLoading:l,block:o,size:r,style:a,disabled:n,type:c,theme:s,id:d,
|
|
464
|
+
`,we=({btnStyle:e,isLoading:l,block:o,size:r,style:a,disabled:n,type:c,theme:s,id:d,disableStyle:p,...m})=>{const u=b()||R,[g,f]=i(e.color?e.color:u.variant["primary-1"]);return t.createElement(Ae,z({id:d,block:o,defaultStyle:"button",style:a,size:r,disabled:n,type:c,btnStyle:e,isLoading:l,theme:s,disableStyle:p,onMouseEnter:()=>!n&&f(e.backgroundColor?e.backgroundColor:u.variant.white),onMouseLeave:()=>!n&&f(e.color?e.color:u.variant["primary-1"])},m),l&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(pe,{theme:s,customStyles:{"background-color":g},size:16})," "),m.children," ")};we.propTypes={disabled:e.bool,size:e.oneOf(["sm","md","lg"]),block:e.bool,onClick:e.func,theme:e.object,type:e.string,btnStyle:e.object,id:e.string,disableStyle:e.object},Ae.defaultProps={theme:R},we.defaultProps={theme:R,block:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:"",disableStyle:{}};const Se=m.button`
|
|
469
465
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
470
466
|
color: ${({theme:e})=>e.additional.white};
|
|
471
467
|
padding: 3px 14px;
|
package/dist/index.js
CHANGED
|
@@ -443,9 +443,10 @@ ${({customStyles:e})=>e}
|
|
|
443
443
|
//Set the styles from the default styles object
|
|
444
444
|
${({theme:e,defaultStyle:t})=>P(e,t)}
|
|
445
445
|
&:disabled {
|
|
446
|
-
color:
|
|
447
|
-
border:
|
|
446
|
+
color: #929eac;
|
|
447
|
+
border: 1px solid ${({theme:e})=>e.neutral["neutral-3"]};
|
|
448
448
|
cursor: not-allowed;
|
|
449
|
+
${({disableStyle:e})=>e}
|
|
449
450
|
}
|
|
450
451
|
&:hover {
|
|
451
452
|
background-color: ${({theme:e,disabled:t,btnStyle:l})=>!t&&(l.color?l.color:e.primary["primary-1"])};
|
|
@@ -453,19 +454,14 @@ ${({customStyles:e})=>e}
|
|
|
453
454
|
|
|
454
455
|
svg {
|
|
455
456
|
path {
|
|
456
|
-
fill: ${({theme:e,disabled:t,btnStyle:l
|
|
457
|
+
fill: ${({theme:e,disabled:t,btnStyle:l})=>!t&&(l.color?l.backgroundColor:e.variant.white)};
|
|
457
458
|
}
|
|
458
459
|
}
|
|
459
460
|
}
|
|
460
|
-
svg {
|
|
461
|
-
path {
|
|
462
|
-
fill: ${({theme:e,disabled:t,disableColor:l})=>t&&l?l:e.variant["neutral-1"]};
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
461
|
|
|
466
462
|
// custom styles
|
|
467
463
|
${({btnStyle:e})=>e}
|
|
468
|
-
`,xe=({btnStyle:e,isLoading:a,block:o,size:r,style:i,disabled:n,type:c,theme:d,id:s,
|
|
464
|
+
`,xe=({btnStyle:e,isLoading:a,block:o,size:r,style:i,disabled:n,type:c,theme:d,id:s,disableStyle:u,...p})=>{const f=l.useTheme()||H,[m,b]=t.useState(e.color?e.color:f.variant["primary-1"]);return g.default.createElement(ye,E({id:s,block:o,defaultStyle:"button",style:i,size:r,disabled:n,type:c,btnStyle:e,isLoading:a,theme:d,disableStyle:u,onMouseEnter:()=>!n&&b(e.backgroundColor?e.backgroundColor:f.variant.white),onMouseLeave:()=>!n&&b(e.color?e.color:f.variant["primary-1"])},p),a&&g.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},g.default.createElement(ne,{theme:d,customStyles:{"background-color":m},size:16})," "),p.children," ")};xe.propTypes={disabled:b.default.bool,size:b.default.oneOf(["sm","md","lg"]),block:b.default.bool,onClick:b.default.func,theme:b.default.object,type:b.default.string,btnStyle:b.default.object,id:b.default.string,disableStyle:b.default.object},ye.defaultProps={theme:H},xe.defaultProps={theme:H,block:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:"",disableStyle:{}};const Ce=h.default.button`
|
|
469
465
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
470
466
|
color: ${({theme:e})=>e.additional.white};
|
|
471
467
|
padding: 3px 14px;
|