@corva/ui 0.51.0-7 → 0.51.0-8
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/components/Chart/components/AxisOverlay.d.ts +2 -1
- package/components/Chart/components/AxisOverlay.d.ts.map +1 -1
- package/components/Chart/components/AxisOverlay.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export default AxisOverlay;
|
|
2
|
-
declare function AxisOverlay({ left, width, top, bottom, right, isXAxis, height, coll, onCustomizeScaleClick, ...otherProps }: {
|
|
2
|
+
declare function AxisOverlay({ left, width, top, bottom, right, labelOffset, isXAxis, height, coll, onCustomizeScaleClick, ...otherProps }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
left: any;
|
|
5
5
|
width: any;
|
|
6
6
|
top: any;
|
|
7
7
|
bottom: any;
|
|
8
8
|
right: any;
|
|
9
|
+
labelOffset: any;
|
|
9
10
|
isXAxis: any;
|
|
10
11
|
height: any;
|
|
11
12
|
coll: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxisOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisOverlay.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AxisOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisOverlay.js"],"names":[],"mappings":";AAuCA;;;;;;;;;;;;gBAqHC"}
|
|
@@ -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
|
|
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 f,jsx as u}from"react/jsx-runtime";var m=["left","width","top","bottom","right","labelOffset","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.labelOffset,w=a.isXAxis,E=a.height,S=a.coll,z=a.onCustomizeScaleClick,W=o(a,m),k=i(s).chart,j=r({}),B=e(j,2),I=B[0],M=B[1],P=l(),A=14+v,N=14+v,O=h({top:x,right:C,width:w?b+N:N,height:w?N:E+N,left:w?g-5:g-N,bottom:w?y-N:y-5}),R=null===(d=P.current)||void 0===d?void 0:d.getBoundingClientRect(),X=f("div",{className:O.tooltip,children:[u(p,{className:O.tooltipIcon})," Customize Scale"]}),H=function(){k.update(t({},S,{lineColor:"#03BCD4",lineWidth:2,labels:{style:{color:"#ffffff"}},title:{style:{color:"#ffffff"}}}))},D=function(){k.update(t({},S,{lineColor:"rgb(87, 91, 91)",lineWidth:1,labels:{style:{color:"#9E9E9E"}},title:{style:{color:"#9E9E9E"}}}))};return n((function(){var t=k.axisGroup;t&&(t.element.style.cursor="pointer")}),[k]),u(c,{title:X,placement:w?"top":"right",onMouseMove:function(t){var e=t.pageX,o=t.pageY;M({x:e,y:o})},PopperProps:{anchorEl:{clientHeight:0,clientWidth:0,getBoundingClientRect:function(){return{top:w?R.y:I.y,left:w?I.x:R.x-A,right:w?I.x:R.x+A,bottom:w?R.y:I.y,width:0,height:0}}}},children:u("div",{className:O.axis,ref:P,onClick:function(){return z(W)},onMouseOver:H,onMouseLeave:D,onFocus:H,onBlur:D})})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from'./../../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={appActions:"AppActions_appActions__hPD0u",appActionsButton:"AppActions_appActionsButton__SYkEO"};i(".AppActions_appActions__hPD0u{bottom:5px;cursor:pointer;margin-left:12px;position:absolute;right:7px;transition:visibility .45s cubic-bezier(.23,1,.32,1) 0ms;visibility:hidden;z-index:
|
|
1
|
+
import i from'./../../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={appActions:"AppActions_appActions__hPD0u",appActionsButton:"AppActions_appActionsButton__SYkEO"};i(".AppActions_appActions__hPD0u{bottom:5px;cursor:pointer;margin-left:12px;position:absolute;right:7px;transition:visibility .45s cubic-bezier(.23,1,.32,1) 0ms;visibility:hidden;z-index:1000}.dc-app-container:hover .AppActions_appActions__hPD0u{visibility:visible}.AppActions_appActionsButton__SYkEO{background-color:transparent!important;padding:3px}");export{t as default};
|