@corva/ui 0.60.0-6 → 0.60.0-7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("@material-ui/core"),r=require("classnames"),s=require("@material-ui/icons/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("@material-ui/core"),r=require("classnames"),s=require("@material-ui/icons/FilterList"),n=require("../AppSideBar/AppSideBar.js"),a=require("../AppSettingsPopover/AppSettingsPopover.js"),o=require("../../Button/index.js"),l=require("../../../effects/useMatchAppContainerSize.js"),p=require("../../../utils/mobileDetect.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=d(r),u=d(s),h=i.makeStyles({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},popoverContent:{padding:"0 16px"}});exports.AppFilterPanelLayout=function(r){var s=r.appSettingsPopoverProps,d=r.children,f=r.classes,g=void 0===f?{}:f,x=r.header,m=r.sideBarContent,v=r.sideBarProps,j=h(),_=i.useTheme(),y=l.useMatchAppContainerSize({width:{max:_.breakpoints.width("md")}}),q=p.isNativeDetected||p.isMobileDetected||y;return t.jsxs("div",e.__assign({className:c.default(j.appLayout,g.appLayout)},{children:[q&&t.jsxs("div",e.__assign({className:c.default(j.header,g.header)},{children:[t.jsx(a.AppSettingsPopover,e.__assign({Trigger:function(i){return t.jsx(o,e.__assign({startIcon:t.jsx(u.default,{})},i,{children:"Filters"}))},classes:{popoverContent:j.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},s,{children:m})),x]})),t.jsxs("div",e.__assign({className:c.default(j.contentWrapper,g.contentWrapper)},{children:[!q&&t.jsx(n,e.__assign({},v,{anchor:"left"},{children:m})),t.jsx("div",e.__assign({className:c.default(j.content,g.content)},{children:d}))]}))]}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as i}from"react/jsx-runtime";import{makeStyles as r,useTheme as o}from"@material-ui/core";import n from"classnames";import a from"@material-ui/icons/FilterList";import p from"../AppSideBar/AppSideBar.js";import{AppSettingsPopover as s}from"../AppSettingsPopover/AppSettingsPopover.js";import l from"../../Button/index.js";import{useMatchAppContainerSize as c}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as d,isMobileDetected as m}from"../../../utils/mobileDetect.js";var h=r({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},popoverContent:{padding:"0 16px"}}),f=function(r){var f=r.appSettingsPopoverProps,g=r.children,u=r.classes,v=void 0===u?{}:u,x=r.header,j=r.sideBarContent,y=r.sideBarProps,w=h(),A=o(),C=c({width:{max:A.breakpoints.width("md")}}),S=d||m||C;return t("div",e({className:n(w.appLayout,v.appLayout)},{children:[S&&t("div",e({className:n(w.header,v.header)},{children:[i(s,e({Trigger:function(t){return i(l,e({startIcon:i(a,{})},t,{children:"Filters"}))},classes:{popoverContent:w.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},f,{children:j})),x]})),t("div",e({className:n(w.contentWrapper,v.contentWrapper)},{children:[!S&&i(p,e({},y,{anchor:"left"},{children:j})),i("div",e({className:n(w.content,v.content)},{children:g}))]}))]}))};export{f as AppFilterPanelLayout};
|