@corva/ui 0.76.0-3 → 0.76.0-4
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/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
- package/package.json +1 -1
|
@@ -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"),o=require("react"),i=require("classnames"),n=require("@material-ui/core"),r=require("../../../icons/index.js"),l=require("../../../utils/mobileDetect.js"),s=require("../../IconButton/index.js"),a=require("../../Modal/Modal.js"),c=require("../../Button/index.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=d(i),u=l.isNativeDetected||l.isMobileDetected,g=n.makeStyles((function(e){return{popoverPaper:{marginTop:function(e){return e.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var t=e.maxHeight;return t?t-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," 89%, 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%"},modalActions:{display:"flex",justifyContent:"flex-end"}}}));exports.AppSettingsPopover=function(i){var d=i.Trigger,h=i.children,v=i.classes,x=i.defaultScrollable,m=void 0!==x&&x,f=i.header,b=void 0===f?"Settings":f,_=i.iconSettingsProps,j=void 0===_?{}:_,C=i.maxHeight,S=void 0===C?null:C,P=i.modalActions,k=void 0===P?null:P,q=i.modalProps,H=void 0===q?{}:q,T=i.onClose,y=void 0===T?function(){}:T,N=e.__rest(i,["Trigger","children","classes","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","onClose"]),w=o.useState(null),z=w[0],A=w[1],D=o.useState(!0),I=D[0],M=D[1],O=g({maxHeight:S,isScrollable:I,isNativeDetected:l.isNativeDetected}),B=v||{},E=B.popoverContent,Y=e.__rest(B,["popoverContent"]),F=function(){A(null),y()},L=Boolean(z),W=function(e){return A(e.currentTarget)},X=k||t.jsx(c,e.__assign({variation:"secondary",onClick:F},{children:"CLOSE"}));return t.jsxs(t.Fragment,{children:[d?t.jsx(d,{onClick:W}):t.jsx(s,e.__assign({isActive:L,onClick:W,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},j,{children:t.jsx(r.SettingTwoIcon,{size:16})})),!u&&t.jsxs(n.Popover,e.__assign({open:L,anchorEl:z,onClose:F,anchorOrigin:{vertical:I?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},N,{classes:e.__assign(e.__assign({},Y),{paper:p.default(O.popoverPaper,I&&"scrollable",null==Y?void 0:Y.paper)})},{children:[t.jsxs("div",e.__assign({className:p.default(O.popoverHeader,I&&"scrollable")},{children:[t.jsx("div",e.__assign({className:O.headerTitle},{children:b})),t.jsx(s,e.__assign({tooltipProps:{title:"Close"},onClick:F},{children:t.jsx(r.CloseSmallIcon,{})}))]})),t.jsx("div",e.__assign({className:p.default(O.popoverContentContainer,I&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!m&&M(!1)}},{children:t.jsx("div",e.__assign({className:p.default(O.popoverContent,E)},{children:h}))}))]})),u&&t.jsx(a,e.__assign({actions:X,onClose:F,open:L,actionsClassName:O.modalActions,title:b},H,{children:h}))]})};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),o=require("react"),i=require("classnames"),n=require("@material-ui/core"),r=require("../../../icons/index.js"),l=require("../../../utils/mobileDetect.js"),s=require("../../IconButton/index.js"),a=require("../../Modal/Modal.js"),c=require("../../Button/index.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=d(i),u=l.isNativeDetected||l.isMobileDetected,g=n.makeStyles((function(e){return{popoverPaper:{marginTop:function(e){return e.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var t=e.maxHeight;return t?t-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," 89%, 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%"},modalActions:{display:"flex",justifyContent:"flex-end"}}}));exports.AppSettingsPopover=function(i){var d=i.Trigger,h=i.children,v=i.classes,x=i.defaultScrollable,m=void 0!==x&&x,f=i.header,b=void 0===f?"Settings":f,_=i.iconSettingsProps,j=void 0===_?{}:_,C=i.maxHeight,S=void 0===C?null:C,P=i.modalActions,k=void 0===P?null:P,q=i.modalProps,H=void 0===q?{}:q,T=i.onClose,y=void 0===T?function(){}:T,N=e.__rest(i,["Trigger","children","classes","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","onClose"]),w=o.useState(null),z=w[0],A=w[1],D=o.useState(!0),I=D[0],M=D[1],O=g({maxHeight:S,isScrollable:I,isNativeDetected:l.isNativeDetected}),B=v||{},E=B.popoverContent,Y=e.__rest(B,["popoverContent"]),F=function(){A(null),y()},L=Boolean(z),W=function(e){return A(e.currentTarget)},X=k||t.jsx(c,e.__assign({variation:"secondary",onClick:F},{children:"CLOSE"}));return t.jsxs(t.Fragment,{children:[d?t.jsx(d,{onClick:W}):t.jsx(s,e.__assign({isActive:L,onClick:W,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},j,{children:t.jsx(r.SettingTwoIcon,{size:(null==j?void 0:j.size)||16})})),!u&&t.jsxs(n.Popover,e.__assign({open:L,anchorEl:z,onClose:F,anchorOrigin:{vertical:I?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},N,{classes:e.__assign(e.__assign({},Y),{paper:p.default(O.popoverPaper,I&&"scrollable",null==Y?void 0:Y.paper)})},{children:[t.jsxs("div",e.__assign({className:p.default(O.popoverHeader,I&&"scrollable")},{children:[t.jsx("div",e.__assign({className:O.headerTitle},{children:b})),t.jsx(s,e.__assign({tooltipProps:{title:"Close"},onClick:F},{children:t.jsx(r.CloseSmallIcon,{})}))]})),t.jsx("div",e.__assign({className:p.default(O.popoverContentContainer,I&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!m&&M(!1)}},{children:t.jsx("div",e.__assign({className:p.default(O.popoverContent,E)},{children:h}))}))]})),u&&t.jsx(a,e.__assign({actions:X,onClose:F,open:L,actionsClassName:O.modalActions,title:b},H,{children:h}))]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("prop-types"),t=require("classnames"),r=require("@material-ui/core"),i=require("../../../../../utils/mobileDetect.js"),
|
|
1
|
+
"use strict";var e=require("prop-types"),t=require("classnames"),r=require("@material-ui/core"),i=require("@icon-park/react/es/all"),s=require("../../../../../utils/mobileDetect.js"),a=require("./RestoreAppSizeButton.css.js"),n=require("react/jsx-runtime");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=o(e),u=o(t),l=o(i);function d(e){var t=e.setIsMaximized;return n.jsx("div",{className:u.default(a.containerRestoreAction,s.isNativeDetected&&a.containerRestoreActionNative),children:n.jsx(r.IconButton,{"data-testid":"".concat("DevCenter_AppContainer","_restore"),className:a.iconButton,onClick:function(){t(!1)},children:n.jsx(l.default,{type:"close-small",className:s.isNativeDetected?a.containerRestoreIconNative:a.containerRestoreIcon})})})}d.propTypes={setIsMaximized:c.default.func.isRequired},module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAc,YAAY,EAAW,MAAM,mBAAmB,CAAC;AA8DtE,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG;QACjC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE;QAClB,
|
|
1
|
+
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAc,YAAY,EAAW,MAAM,mBAAmB,CAAC;AA8DtE,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG;QACjC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE;QAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;QAC1B,YAAY,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KAClC,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,EACR,OAAO,EACP,iBAAyB,EACzB,MAAmB,EACnB,iBAAsB,EACtB,SAAgB,EAChB,YAAmB,EACnB,UAAe,EACf,OAAkB,EAClB,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAmGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as
|
|
1
|
+
import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as r}from"react";import l from"classnames";import{makeStyles as a,Popover as c}from"@material-ui/core";import{SettingTwoIcon as s,CloseSmallIcon as d}from"../../../icons/index.js";import{isNativeDetected as p,isMobileDetected as m}from"../../../utils/mobileDetect.js";import h from"../../IconButton/index.js";import u from"../../Modal/Modal.js";import g from"../../Button/index.js";var v=p||m,f=a((function(o){return{popoverPaper:{marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var e=o.maxHeight;return e?e-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.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(o.palette.background.b9,", ").concat(o.palette.background.b9," 89%, 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%"},modalActions:{display:"flex",justifyContent:"flex-end"}}}));function b(a){var m=a.Trigger,b=a.children,C=a.classes,x=a.defaultScrollable,H=void 0!==x&&x,S=a.header,j=void 0===S?"Settings":S,k=a.iconSettingsProps,T=void 0===k?{}:k,P=a.maxHeight,z=void 0===P?null:P,w=a.modalActions,N=void 0===w?null:w,y=a.modalProps,A=void 0===y?{}:y,B=a.onClose,I=void 0===B?function(){}:B,O=o(a,["Trigger","children","classes","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","onClose"]),D=r(null),E=D[0],M=D[1],Y=r(!0),L=Y[0],W=Y[1],X=f({maxHeight:z,isScrollable:L,isNativeDetected:p}),_=C||{},q=_.popoverContent,F=o(_,["popoverContent"]),G=function(){M(null),I()},J=Boolean(E),K=function(o){return M(o.currentTarget)},Q=N||t(g,e({variation:"secondary",onClick:G},{children:"CLOSE"}));return i(n,{children:[m?t(m,{onClick:K}):t(h,e({isActive:J,onClick:K,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},T,{children:t(s,{size:(null==T?void 0:T.size)||16})})),!v&&i(c,e({open:J,anchorEl:E,onClose:G,anchorOrigin:{vertical:L?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},O,{classes:e(e({},F),{paper:l(X.popoverPaper,L&&"scrollable",null==F?void 0:F.paper)})},{children:[i("div",e({className:l(X.popoverHeader,L&&"scrollable")},{children:[t("div",e({className:X.headerTitle},{children:j})),t(h,e({tooltipProps:{title:"Close"},onClick:G},{children:t(d,{})}))]})),t("div",e({className:l(X.popoverContentContainer,L&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!H&&W(!1)}},{children:t("div",e({className:l(X.popoverContent,q)},{children:b}))}))]})),v&&t(u,e({actions:Q,onClose:G,open:J,actionsClassName:X.modalActions,title:j},A,{children:b}))]})}export{b as AppSettingsPopover};
|
package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js"],"names":[],"mappings":";AAYA;;gBAwBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"prop-types";import t from"classnames";import{IconButton as o
|
|
1
|
+
import e from"prop-types";import t from"classnames";import{IconButton as o}from"@material-ui/core";import r from"@icon-park/react/es/all";import{isNativeDetected as i}from"../../../../../utils/mobileDetect.js";import s from"./RestoreAppSizeButton.css.js";import{jsx as n}from"react/jsx-runtime";function a(e){var a=e.setIsMaximized;return n("div",{className:t(s.containerRestoreAction,i&&s.containerRestoreActionNative),children:n(o,{"data-testid":"".concat("DevCenter_AppContainer","_restore"),className:s.iconButton,onClick:function(){a(!1)},children:n(r,{type:"close-small",className:i?s.containerRestoreIconNative:s.containerRestoreIcon})})})}a.propTypes={setIsMaximized:e.func.isRequired};export{a as default};
|