@corva/ui 0.56.0-10 → 0.56.0-11
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"),
|
|
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("classnames"),a=require("@material-ui/core"),r=require("./Tooltip.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(i),o=a.makeStyles((function(e){return{popper:{"& .MuiTooltip-tooltip":{backgroundColor:e.palette.background.b8,margin:12,marginTop:"7px !important",maxHeight:"calc(100vh - 24px)",maxWidth:500,padding:0}},staticTitle:{fontSize:12,fontWeight:400,letterSpacing:"0.4px",lineHeight:"16px",whiteSpace:"nowrap",padding:"8px 8px 0 8px"},titleWrapper:{position:"relative","&::before, &::after":{content:'""',height:16,position:"absolute",width:"100%"},"&::before":{background:"linear-gradient(180deg, ".concat(e.palette.background.b8," 18.23%, rgba(59, 59, 59, 0) 100%)"),opacity:.8,top:0},"&::after":{background:"linear-gradient(0deg, ".concat(e.palette.background.b8," 18.23%, rgba(59, 59, 59, 0) 100%)"),bottom:0,opacity:.8}},title:{maxHeight:function(e){var t=e.staticTitleHeight;return"calc(100vh - ".concat((void 0===t?0:t)+24,"px)")},overflowY:"auto",padding:"8px 16px 8px 8px"}}}));exports.ScrollableTooltip=function(i){var a=i.classes,s=void 0===a?{}:a,p=i.popperClassName,n=void 0===p?"":p,c=i.staticTitle,d=void 0===c?"":c,g=i.staticTitleHeight,u=void 0===g?0:g,x=i.title,m=i.titleClassName,b=void 0===m?"":m,v=i.titleWrapperClassName,h=void 0===v?"":v,f=e.__rest(i,["classes","popperClassName","staticTitle","staticTitleHeight","title","titleClassName","titleWrapperClassName"]),_=o({staticTitleHeight:d?u||24:0});return t.jsx(r.Tooltip,e.__assign({interactive:!0,isFullScreen:!1,title:d||x?t.jsxs(t.Fragment,{children:[d&&t.jsx("div",e.__assign({className:_.staticTitle},{children:d})),t.jsx("div",e.__assign({className:l.default(_.titleWrapper,h)},{children:t.jsx("div",e.__assign({className:l.default(_.title,b)},{children:x}))}))]}):"",classes:e.__assign(e.__assign({},s),{popper:l.default(_.popper,s.popper,n)})},f))};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { TooltipProps } from '@material-ui/core';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
interface ScrollableTooltip extends Omit<TooltipProps, 'classes' | 'title'> {
|
|
4
|
-
body: ReactNode;
|
|
5
|
-
bodyWrapperClassName?: string;
|
|
6
|
-
bodyClassName?: string;
|
|
7
|
-
popperClassName?: string;
|
|
8
|
-
title?: ReactNode;
|
|
9
|
-
titleHeight?: number;
|
|
10
4
|
classes?: TooltipProps['classes'];
|
|
5
|
+
popperClassName?: string;
|
|
6
|
+
staticTitle?: ReactNode;
|
|
7
|
+
staticTitleHeight?: number;
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
titleClassName?: string;
|
|
10
|
+
titleWrapperClassName?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare const ScrollableTooltip: ({
|
|
12
|
+
export declare const ScrollableTooltip: ({ classes: classesProp, popperClassName, staticTitle, staticTitleHeight, title, titleClassName, titleWrapperClassName, ...props }: ScrollableTooltip) => JSX.Element;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=ScrollableTooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollableTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/ScrollableTooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,YAAY,EAAS,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAgDlC,UAAU,iBAAkB,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,OAAO,CAAC;IACzE,
|
|
1
|
+
{"version":3,"file":"ScrollableTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/ScrollableTooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,YAAY,EAAS,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAgDlC,UAAU,iBAAkB,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,OAAO,CAAC;IACzE,OAAO,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,eAAO,MAAM,iBAAiB,sIAS3B,iBAAiB,KAAG,WA0BtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as t,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i,jsxs as a,Fragment as o}from"react/jsx-runtime";import r from"classnames";import{makeStyles as p}from"@material-ui/core";import{Tooltip as l}from"./Tooltip.js";var s=p((function(t){return{popper:{"& .MuiTooltip-tooltip":{backgroundColor:t.palette.background.b8,margin:12,marginTop:"7px !important",maxHeight:"calc(100vh - 24px)",maxWidth:500,padding:0}},staticTitle:{fontSize:12,fontWeight:400,letterSpacing:"0.4px",lineHeight:"16px",whiteSpace:"nowrap",padding:"8px 8px 0 8px"},titleWrapper:{position:"relative","&::before, &::after":{content:'""',height:16,position:"absolute",width:"100%"},"&::before":{background:"linear-gradient(180deg, ".concat(t.palette.background.b8," 18.23%, rgba(59, 59, 59, 0) 100%)"),opacity:.8,top:0},"&::after":{background:"linear-gradient(0deg, ".concat(t.palette.background.b8," 18.23%, rgba(59, 59, 59, 0) 100%)"),bottom:0,opacity:.8}},title:{maxHeight:function(t){var e=t.staticTitleHeight;return"calc(100vh - ".concat((void 0===e?0:e)+24,"px)")},overflowY:"auto",padding:"8px 16px 8px 8px"}}})),c=function(p){var c=p.classes,n=void 0===c?{}:c,d=p.popperClassName,m=void 0===d?"":d,g=p.staticTitle,h=void 0===g?"":g,u=p.staticTitleHeight,v=void 0===u?0:u,b=p.title,x=p.titleClassName,f=void 0===x?"":x,T=p.titleWrapperClassName,N=void 0===T?"":T,C=t(p,["classes","popperClassName","staticTitle","staticTitleHeight","title","titleClassName","titleWrapperClassName"]),H=s({staticTitleHeight:h?v||24:0});return i(l,e({interactive:!0,isFullScreen:!1,title:h||b?a(o,{children:[h&&i("div",e({className:H.staticTitle},{children:h})),i("div",e({className:r(H.titleWrapper,N)},{children:i("div",e({className:r(H.title,f)},{children:b}))}))]}):"",classes:e(e({},n),{popper:r(H.popper,n.popper,m)})},C))};export{c as ScrollableTooltip};
|