it-data-nexus-ui-library 2.4.9 → 2.4.10

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{jsx as r,jsxs as e}from"react/jsx-runtime";import{useId as t,useRef as o,useMemo as i}from"react";import{useTheme as s}from"@mui/material/styles";import{getChartColours as a}from"../../theme/chartColours.mjs";import{ChartFrame as n}from"./chartFrame.mjs";import{AnimatedArea as p}from"../../node_modules/@mui/x-charts/LineChart/AnimatedArea.mjs";import{LineChart as m}from"../../node_modules/@mui/x-charts/LineChart/LineChart.mjs";function d({sx:d,xAxis:c,grid:l,series:f=[],slots:x,slotProps:h,children:u,title:g,description:y,actions:C,isLoading:S,isError:j,errorMessage:w,paperSx:A,...L}){const $=s(),z=a($.palette.mode),I=t().replace(/:/g,""),M=c?.map(r=>({scaleType:"point",...r})),O=f.map((r,e)=>r.area&&!r.id?{...r,id:`${I}s${e}`}:r),v=new Map(O.map((r,e)=>({s:r,i:e})).filter(({s:r})=>r.area).map(({s:r,i:e})=>[r.id,`${I}g${e}`])),E=o(v);E.current=v;const P=i(()=>function(e){const t=e.ownerState?.seriesId,o=t?E.current.get(t):void 0;return r(p,{...e,ownerState:o?{...e.ownerState,gradientId:o}:e.ownerState})},[I]);return r(n,{title:g,description:y,actions:C,isLoading:S,isError:j,errorMessage:w,paperSx:A,children:e(m,{colors:z,xAxis:M,grid:l??{horizontal:!0,vertical:!0},series:O,slots:{area:P,...x},slotProps:{...h,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...h?.tooltip}},sx:d,...L,children:[v.size>0&&r("defs",{children:Array.from(v.entries()).map(([,t],o)=>e("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[r("stop",{offset:"0%",stopColor:z[o%z.length],stopOpacity:.4}),r("stop",{offset:"100%",stopColor:z[o%z.length],stopOpacity:0})]},t))}),u]})})}export{d as NexusLineChart};
1
+ import{jsx as r,jsxs as e}from"react/jsx-runtime";import{useId as t,useRef as o,useMemo as i}from"react";import{useTheme as s}from"@mui/material/styles";import{getChartColours as a}from"../../theme/chartColours.mjs";import{ChartFrame as n}from"./chartFrame.mjs";import{AnimatedArea as p}from"../../node_modules/@mui/x-charts/LineChart/AnimatedArea.mjs";import{LineChart as m}from"../../node_modules/@mui/x-charts/LineChart/LineChart.mjs";function d({sx:d,xAxis:l,grid:c,series:f=[],slots:x,slotProps:h,children:u,title:g,titleHidden:y,description:C,actions:S,isLoading:j,isError:w,errorMessage:A,paperSx:L,...$}){const z=s(),I=a(z.palette.mode),M=t().replace(/:/g,""),O=l?.map(r=>({scaleType:"point",...r})),v=f.map((r,e)=>r.area&&!r.id?{...r,id:`${M}s${e}`}:r),E=new Map(v.map((r,e)=>({s:r,i:e})).filter(({s:r})=>r.area).map(({s:r,i:e})=>[r.id,`${M}g${e}`])),H=o(E);H.current=E;const P=i(()=>function(e){const t=e.ownerState?.seriesId,o=t?H.current.get(t):void 0;return r(p,{...e,ownerState:o?{...e.ownerState,gradientId:o}:e.ownerState})},[M]);return r(n,{title:g,titleHidden:y,description:C,actions:S,isLoading:j,isError:w,errorMessage:A,paperSx:L,children:e(m,{colors:I,xAxis:O,grid:c??{horizontal:!0,vertical:!0},series:v,slots:{area:P,...x},slotProps:{...h,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...h?.tooltip}},sx:d,...$,children:[E.size>0&&r("defs",{children:Array.from(E.entries()).map(([,t],o)=>e("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[r("stop",{offset:"0%",stopColor:I[o%I.length],stopOpacity:.4}),r("stop",{offset:"100%",stopColor:I[o%I.length],stopOpacity:0})]},t))}),u]})})}export{d as NexusLineChart};
@@ -1 +1 @@
1
- const o="2.4.9";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.4.10";export{o as SAGE_NEXUS_UI_VERSION};
package/dist/index.d.ts CHANGED
@@ -1114,7 +1114,7 @@ interface ChartAsyncProps {
1114
1114
  type NexusLineChartProps = Omit<LineChartProps, "colors"> & ChartAsyncProps & {
1115
1115
  children?: React.ReactNode;
1116
1116
  };
1117
- declare function NexusLineChart({ sx, xAxis, grid, series, slots, slotProps, children, title, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusLineChartProps): react.JSX.Element;
1117
+ declare function NexusLineChart({ sx, xAxis, grid, series, slots, slotProps, children, title, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusLineChartProps): react.JSX.Element;
1118
1118
 
1119
1119
  type NexusBarChartProps = Omit<BarChartProps, "colors"> & ChartAsyncProps;
1120
1120
  declare function NexusBarChart({ slotProps, slots, title, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusBarChartProps): react.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "it-data-nexus-ui-library",
3
- "version": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",