groundfloor-react-ui 1.3.45 → 1.3.46
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 +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3085,6 +3085,8 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let c={};if(e[t]){for(const t in e.c
|
|
|
3085
3085
|
overflow-y: hidden;
|
|
3086
3086
|
overflow-x: hidden;
|
|
3087
3087
|
transition: all ease 100ms;
|
|
3088
|
+
opacity: ${({hideMenu:e})=>e?0:1};
|
|
3089
|
+
|
|
3088
3090
|
@media (max-width: 428px) {
|
|
3089
3091
|
height: ${({isOpen:e})=>e?"100%":"56px"};
|
|
3090
3092
|
transition: all ease 20ms;
|
|
@@ -3107,7 +3109,7 @@ ${({forceOpen:e,inBuiltCss:t,customStylesPusherOpen:l,customStylesPusherClose:c}
|
|
|
3107
3109
|
@media (max-width: 980px) {
|
|
3108
3110
|
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...F(e,"sidebar-pusher-mobile"),...l})}
|
|
3109
3111
|
}
|
|
3110
|
-
`,Oo=({customStylesContainer:e,customStylesContainerOpen:l,customStylesContainerClose:c,customStylesContainerMobileOpen:i,customStylesContainerMobileClose:o,customStylesPusher:a,customStylesPusherOpen:r,customStylesPusherClose:n,customStylesPusherMobile:s,forceOpen:d,forceClose:p,handleSidebar:m,toggleSideBarOpen:u,pinner:f,containerBackgroundColor:g,containerBackgroundColorDynamic:h,...
|
|
3112
|
+
`,Oo=({customStylesContainer:e,customStylesContainerOpen:l,customStylesContainerClose:c,customStylesContainerMobileOpen:i,customStylesContainerMobileClose:o,customStylesPusher:a,customStylesPusherOpen:r,customStylesPusherClose:n,customStylesPusherMobile:s,forceOpen:d,forceClose:p,handleSidebar:m,toggleSideBarOpen:u,pinner:f,containerBackgroundColor:g,containerBackgroundColorDynamic:h,hideMenu:y,...C})=>{function x(e){m(e)}const v=b()||R;return t.createElement(qo,z({theme:v,containerBackgroundColor:g,containerBackgroundColorDynamic:h,inBuiltCss:Z,customStyles:e,hideMenu:y,onMouseEnter:()=>{d||x(!0)},onClick:()=>!u&&x(!0),onMouseLeave:()=>{x(!1),p()},forceOpen:d,isOpen:u},C),t.createElement(Do,null),C.children,f)};Oo.propTypes={customStylesContainer:e.object,customStylesContainerOpen:e.object,customStylesContainerClose:e.object,customStylesContainerMobileOpen:e.object,customStylesContainerMobileClose:e.object,customStylesPusher:e.object,customStylesPusherOpen:e.object,customStylesPusherClose:e.object,customStylesPusherMobile:e.object,forceOpen:e.bool,forceClose:e.func,handleSidebar:e.func,toggleSideBarOpen:e.bool,pinner:e.any,hideMenu:e.bool},Oo.defaultProps={forceClose:()=>{},forceOpen:!1,containerBackgroundColor:"#2A50FD",containerBackgroundColorDynamic:!1,hideMenu:!1};const Go={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Xo=m.div`
|
|
3111
3113
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
3112
3114
|
color: ${({theme:e})=>e.additional.white};
|
|
3113
3115
|
padding: ${({size:e})=>Go[e].padding};
|
package/dist/index.js
CHANGED
|
@@ -3085,6 +3085,8 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
3085
3085
|
overflow-y: hidden;
|
|
3086
3086
|
overflow-x: hidden;
|
|
3087
3087
|
transition: all ease 100ms;
|
|
3088
|
+
opacity: ${({hideMenu:e})=>e?0:1};
|
|
3089
|
+
|
|
3088
3090
|
@media (max-width: 428px) {
|
|
3089
3091
|
height: ${({isOpen:e})=>e?"100%":"56px"};
|
|
3090
3092
|
transition: all ease 20ms;
|
|
@@ -3107,7 +3109,7 @@ ${({forceOpen:e,inBuiltCss:t,customStylesPusherOpen:l,customStylesPusherClose:a}
|
|
|
3107
3109
|
@media (max-width: 980px) {
|
|
3108
3110
|
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...W(e,"sidebar-pusher-mobile"),...l})}
|
|
3109
3111
|
}
|
|
3110
|
-
`,Wr=({customStylesContainer:e,customStylesContainerOpen:t,customStylesContainerClose:a,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r,customStylesPusher:c,customStylesPusherOpen:i,customStylesPusherClose:n,customStylesPusherMobile:d,forceOpen:s,forceClose:p,handleSidebar:u,toggleSideBarOpen:f,pinner:m,containerBackgroundColor:b,containerBackgroundColorDynamic:h,...
|
|
3112
|
+
`,Wr=({customStylesContainer:e,customStylesContainerOpen:t,customStylesContainerClose:a,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r,customStylesPusher:c,customStylesPusherOpen:i,customStylesPusherClose:n,customStylesPusherMobile:d,forceOpen:s,forceClose:p,handleSidebar:u,toggleSideBarOpen:f,pinner:m,containerBackgroundColor:b,containerBackgroundColorDynamic:h,hideMenu:y,...C})=>{function x(e){u(e)}const v=l.useTheme()||I;return g.default.createElement(Ir,E({theme:v,containerBackgroundColor:b,containerBackgroundColorDynamic:h,inBuiltCss:P,customStyles:e,hideMenu:y,onMouseEnter:()=>{s||x(!0)},onClick:()=>!f&&x(!0),onMouseLeave:()=>{x(!1),p()},forceOpen:s,isOpen:f},C),g.default.createElement(Pr,null),C.children,m)};Wr.propTypes={customStylesContainer:b.default.object,customStylesContainerOpen:b.default.object,customStylesContainerClose:b.default.object,customStylesContainerMobileOpen:b.default.object,customStylesContainerMobileClose:b.default.object,customStylesPusher:b.default.object,customStylesPusherOpen:b.default.object,customStylesPusherClose:b.default.object,customStylesPusherMobile:b.default.object,forceOpen:b.default.bool,forceClose:b.default.func,handleSidebar:b.default.func,toggleSideBarOpen:b.default.bool,pinner:b.default.any,hideMenu:b.default.bool},Wr.defaultProps={forceClose:()=>{},forceOpen:!1,containerBackgroundColor:"#2A50FD",containerBackgroundColorDynamic:!1,hideMenu:!1};const Rr={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Tr=h.default.div`
|
|
3111
3113
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
3112
3114
|
color: ${({theme:e})=>e.additional.white};
|
|
3113
3115
|
padding: ${({size:e})=>Rr[e].padding};
|