groundfloor-react-ui 1.3.43 → 1.3.44
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -461,7 +461,7 @@ ${({customStyles:e})=>e}
|
|
|
461
461
|
|
|
462
462
|
// custom styles
|
|
463
463
|
${({btnStyle:e})=>e}
|
|
464
|
-
`,Ae=({btnStyle:e,isLoading:l,block:c,size:o,style:a,disabled:r,type:n,theme:s,id:d,disableStyle:p,...m})=>{const u=b()||R,[f,g]=i(e.
|
|
464
|
+
`,Ae=({btnStyle:e,isLoading:l,block:c,size:o,style:a,disabled:r,type:n,theme:s,id:d,disableStyle:p,...m})=>{const u=b()||R,[f,g]=i(e.loaderColor?e.loaderColor:u.variant["primary-1"]);return t.createElement(we,z({id:d,block:c,defaultStyle:"button",style:a,size:o,disabled:r,type:n,btnStyle:e,isLoading:l,theme:s,disableStyle:p},m),l&&t.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(pe,{theme:s,customStyles:{"background-color":f},size:16})," "),m.children," ")};Ae.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},we.defaultProps={theme:R},Ae.defaultProps={theme:R,block:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:"",disableStyle:{}};const Se=m.button`
|
|
465
465
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
466
466
|
color: ${({theme:e})=>e.additional.white};
|
|
467
467
|
padding: 3px 14px;
|
package/dist/index.js
CHANGED
|
@@ -461,7 +461,7 @@ ${({customStyles:e})=>e}
|
|
|
461
461
|
|
|
462
462
|
// custom styles
|
|
463
463
|
${({btnStyle:e})=>e}
|
|
464
|
-
`,Ce=({btnStyle:e,isLoading:a,block:o,size:r,style:c,disabled:i,type:n,theme:d,id:s,disableStyle:p,...u})=>{const f=l.useTheme()||I,[m,b]=t.useState(e.
|
|
464
|
+
`,Ce=({btnStyle:e,isLoading:a,block:o,size:r,style:c,disabled:i,type:n,theme:d,id:s,disableStyle:p,...u})=>{const f=l.useTheme()||I,[m,b]=t.useState(e.loaderColor?e.loaderColor:f.variant["primary-1"]);return g.default.createElement(ye,E({id:s,block:o,defaultStyle:"button",style:c,size:r,disabled:i,type:n,btnStyle:e,isLoading:a,theme:d,disableStyle:p},u),a&&g.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},g.default.createElement(ie,{theme:d,customStyles:{"background-color":m},size:16})," "),u.children," ")};Ce.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:I},Ce.defaultProps={theme:I,block:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:"",disableStyle:{}};const xe=h.default.button`
|
|
465
465
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
466
466
|
color: ${({theme:e})=>e.additional.white};
|
|
467
467
|
padding: 3px 14px;
|