@corva/ui 0.50.0-2 → 0.50.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as i,useState as r,useRef as l,useEffect as n}from"react";import{makeStyles as a,Tooltip as c}from"@material-ui/core";import p from"@material-ui/icons/Straighten";import s from"../ChartWrapperContext.js";import{jsxs as u,jsx as f}from"react/jsx-runtime";var m=["left","width","top","bottom","right","isXAxis","height","coll","onCustomizeScaleClick"],h=a((function(t){return{axis:function(t){return{position:"absolute",cursor:"pointer",width:t.width,left:t.left,bottom:t.bottom,height:t.height}},tooltip:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:125,backgroundColor:t.palette.background.b9,color:t.palette.text.primary,fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px",borderRadius:"4px",padding:"4px",zIndex:1e4},tooltipIcon:{fontSize:16,color:t.palette.primary.text6}}})),d=function(a){var d,g=a.left,b=a.width,x=a.top,y=a.bottom,C=a.right,v=a.isXAxis,w=a.height,E=a.coll,S=a.onCustomizeScaleClick,z=o(a,m),W=i(s).chart,k=r({}),j=e(k,2),B=j[0],I=j[1],M=l(),P=h({top:x,right:C,width:v?b:
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as i,useState as r,useRef as l,useEffect as n}from"react";import{makeStyles as a,Tooltip as c}from"@material-ui/core";import p from"@material-ui/icons/Straighten";import s from"../ChartWrapperContext.js";import{jsxs as u,jsx as f}from"react/jsx-runtime";var m=["left","width","top","bottom","right","isXAxis","height","coll","onCustomizeScaleClick"],h=a((function(t){return{axis:function(t){return{position:"absolute",cursor:"pointer",width:t.width,left:t.left,bottom:t.bottom,height:t.height}},tooltip:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:125,backgroundColor:t.palette.background.b9,color:t.palette.text.primary,fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px",borderRadius:"4px",padding:"4px",zIndex:1e4},tooltipIcon:{fontSize:16,color:t.palette.primary.text6}}})),d=function(a){var d,g=a.left,b=a.width,x=a.top,y=a.bottom,C=a.right,v=a.isXAxis,w=a.height,E=a.coll,S=a.onCustomizeScaleClick,z=o(a,m),W=i(s).chart,k=r({}),j=e(k,2),B=j[0],I=j[1],M=l(),P=h({top:x,right:C,width:v?b:14,height:v?14:w,left:g-14,bottom:y-14}),A=null===(d=M.current)||void 0===d?void 0:d.getBoundingClientRect(),N=u("div",{className:P.tooltip,children:[f(p,{className:P.tooltipIcon})," Customize Scale"]}),R=function(){W.update(t({},E,{lineColor:"#03BCD4",lineWidth:2,labels:{style:{color:"#ffffff"}},title:{style:{color:"#ffffff"}}}))},X=function(){W.update(t({},E,{lineColor:"rgb(87, 91, 91)",lineWidth:1,labels:{style:{color:"#9E9E9E"}},title:{style:{color:"#9E9E9E"}}}))};return n((function(){var t=W.axisGroup;t&&(t.element.style.cursor="pointer")}),[W]),f(c,{title:N,placement:v?"top":"right",onMouseMove:function(t){var e=t.pageX,o=t.pageY;I({x:e,y:o})},PopperProps:{anchorEl:{clientHeight:0,clientWidth:0,getBoundingClientRect:function(){return{top:v?A.y:B.y,left:v?B.x:A.x-14,right:v?B.x:A.x+14,bottom:v?A.y:B.y,width:0,height:0}}}},children:f("div",{className:P.axis,ref:M,onClick:function(){return S(z)},onMouseOver:R,onMouseLeave:X,onFocus:R,onBlur:X})})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCell/TableCell.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCell/TableCell.js"],"names":[],"mappings":"AAoCO;;;;;;;;;;;;gBAoEN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/objectWithoutProperties";import"react";import{makeStyles as e}from"@material-ui/core";import"@material-ui/icons";import"classnames";import"../../IconButton/index.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../Tooltip/MuiTooltipDcWrapper.js";import"react/jsx-runtime";e((function(e){return{stickyCell:{position:"sticky",left:0,zIndex:2,background:e.palette.background.b6},stickyEmptyCell:{position:"sticky",right:0,zIndex:2},collapseHeader:{width:function(e){var r=e.isExpanded,t=e.maxCellWidth,
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/objectWithoutProperties";import"react";import{makeStyles as e}from"@material-ui/core";import"@material-ui/icons";import"classnames";import"../../IconButton/index.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../Tooltip/MuiTooltipDcWrapper.js";import"react/jsx-runtime";e((function(e){return{stickyCell:{position:"sticky",left:0,zIndex:2,background:e.palette.background.b6},stickyEmptyCell:{position:"sticky",right:0,zIndex:2},collapseHeader:{width:function(e){var r=e.isExpanded,t=e.maxCellWidth,o=e.cellWidth;return r?t:o}},tableCellWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between"},iconButton:{padding:0,fontSize:16,"&:hover":{backgroundColor:"transparent"}}}}));
|