@corva/ui 0.52.0-1 → 0.52.0-2
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
|
-
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAuB,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAuB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwDtE,UAAU,uBACR,SAAQ,YAAY,EAClB,SAAS,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC;CAAG;AAE/D,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,MAAM,EACN,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAwEvC;kBAhFQ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;AAkF3B,QAAA,MAAM,2BAA2B;;;;;;;;;;;CAShC,CAAC;AAWF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as o}from"../../../_virtual/_tslib.js";import{jsxs as r,Fragment as t,jsx as i}from"react/jsx-runtime";import{useState as n}from"react";import l from"prop-types";import a from"classnames";import{makeStyles as c,Popover as s}from"@material-ui/core";import{Settings as p,Close as d}from"@material-ui/icons";import g from"../../IconButton/index.js";var h=c((function(e){return{popoverPaper:{minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var o=e.maxHeight;return o?o-24:"calc(100% - 24px)"},"&.scrollable":{height:function(e){return e.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)")}}}));function m(l){var c,m=l.Trigger,u=l.header,b=l.children,f=l.iconSettingsProps,v=l.defaultScrollable,x=l.maxHeight,C=e(l,["Trigger","header","children","iconSettingsProps","defaultScrollable","maxHeight"]),H=h({maxHeight:x}),S=n(null),T=S[0],k=S[1],w=n(!0),P=w[0],z=w[1],N=function(){k(null)},j=Boolean(T);return r(t,{children:[m?i(m,{onClick:function(e){console.log(e),k(e.currentTarget)}}):i(g,o({onClick:function(e){return k(e.currentTarget)}},f,{children:i(p,{})})),r(s,o({open:j,anchorEl:T,onClose:N,anchorOrigin:{vertical:P?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},C,{classes:o(o({},null==C?void 0:C.classes),{paper:a(H.popoverPaper,P&&"scrollable",null===(c=null==C?void 0:C.classes)||void 0===c?void 0:c.paper)})},{children:[r("div",o({className:a(H.popoverHeader,P&&"scrollable")},{children:[i("div",o({className:H.headerTitle},{children:u})),i(g,o({tooltipProps:{title:"Close"},onClick:N},{children:i(d,{})}))]})),i("div",o({className:a(H.popoverContentContainer,P&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!v&&z(!1)}},{children:i("div",o({className:H.popoverContent},{children:b}))})),i("div",{className:H.shadow})]}))]})}var u={Trigger:l.element,iconSettingsProps:l.shape({iconSize:l.string,tooltipProps:l.shape({title:l.string})}),defaultScrollable:l.bool,maxHeight:l.number,header:l.string};m.propTypes=u,m.defaultProps={iconSettingsProps:{iconSize:"small"},defaultScrollable:!1,maxHeight:null,header:"Settings"};export{m as default};
|
|
1
|
+
import{__rest as e,__assign as o}from"../../../_virtual/_tslib.js";import{jsxs as r,Fragment as t,jsx as i}from"react/jsx-runtime";import{useState as n}from"react";import l from"prop-types";import a from"classnames";import{makeStyles as c,Popover as s}from"@material-ui/core";import{Settings as p,Close as d}from"@material-ui/icons";import g from"../../IconButton/index.js";var h=c((function(e){return{popoverPaper:{marginTop:8,minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var o=e.maxHeight;return o?o-24:"calc(100% - 24px)"},"&.scrollable":{height:function(e){return e.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)")}}}));function m(l){var c,m=l.Trigger,u=l.header,b=l.children,f=l.iconSettingsProps,v=l.defaultScrollable,x=l.maxHeight,C=e(l,["Trigger","header","children","iconSettingsProps","defaultScrollable","maxHeight"]),H=h({maxHeight:x}),S=n(null),T=S[0],k=S[1],w=n(!0),P=w[0],z=w[1],N=function(){k(null)},j=Boolean(T);return r(t,{children:[m?i(m,{onClick:function(e){console.log(e),k(e.currentTarget)}}):i(g,o({onClick:function(e){return k(e.currentTarget)},isActive:j},f,{children:i(p,{})})),r(s,o({open:j,anchorEl:T,onClose:N,anchorOrigin:{vertical:P?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},C,{classes:o(o({},null==C?void 0:C.classes),{paper:a(H.popoverPaper,P&&"scrollable",null===(c=null==C?void 0:C.classes)||void 0===c?void 0:c.paper)})},{children:[r("div",o({className:a(H.popoverHeader,P&&"scrollable")},{children:[i("div",o({className:H.headerTitle},{children:u})),i(g,o({tooltipProps:{title:"Close"},onClick:N},{children:i(d,{})}))]})),i("div",o({className:a(H.popoverContentContainer,P&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!v&&z(!1)}},{children:i("div",o({className:H.popoverContent},{children:b}))})),i("div",{className:H.shadow})]}))]})}var u={Trigger:l.element,iconSettingsProps:l.shape({iconSize:l.string,tooltipProps:l.shape({title:l.string})}),defaultScrollable:l.bool,maxHeight:l.number,header:l.string};m.propTypes=u,m.defaultProps={iconSettingsProps:{iconSize:"small"},defaultScrollable:!1,maxHeight:null,header:"Settings"};export{m as default};
|