it-data-nexus-ui-library 2.4.19 → 2.4.20

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 o,jsxs as r}from"react/jsx-runtime";import{useId as t}from"react";import{useTheme as s,alpha as e}from"@mui/material/styles";import{getChartColours as i}from"../../theme/chartColours.mjs";import{ChartFrame as p}from"./chartFrame.mjs";import{BarChart as a}from"../../node_modules/@mui/x-charts/BarChart/BarChart.mjs";function l({slotProps:l,slots:m,title:n,description:c,actions:d,isLoading:f,isError:h,errorMessage:x,paperSx:u,...y}){const g=s(),C=i(g.palette.mode),j=t().replace(/:/g,""),z="horizontal"===y.layout,O=C.map((o,r)=>({id:`${j}bg${r}`,color:o}));return o(p,{title:n,description:c,actions:d,isLoading:f,isError:h,errorMessage:x,paperSx:u,children:o(a,{colors:O.map(({id:o})=>`url(#${o})`),...y,grid:{vertical:!0,horizontal:!0},slots:m,slotProps:{...l,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...l?.tooltip}},children:o("defs",{children:O.map(({id:t,color:s})=>r("linearGradient",z?{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o("stop",{offset:"0%",stopColor:e(s,.15)}),o("stop",{offset:"100%",stopColor:s,stopOpacity:1})]}:{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[o("stop",{offset:"0%",stopColor:s,stopOpacity:1}),o("stop",{offset:"100%",stopColor:e(s,.15)})]},t))})})})}export{l as NexusBarChart};
1
+ import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useId as t}from"react";import{useTheme as e,alpha as i}from"@mui/material/styles";import{getChartColours as s}from"../../theme/chartColours.mjs";import{ChartFrame as p}from"./chartFrame.mjs";import{BarChart as a}from"../../node_modules/@mui/x-charts/BarChart/BarChart.mjs";function l({slotProps:l,slots:d,title:n,titleHidden:m,description:c,actions:f,isLoading:h,isError:x,errorMessage:u,paperSx:y,...g}){const C=e(),j=s(C.palette.mode),z=t().replace(/:/g,""),O="horizontal"===g.layout,$=j.map((o,r)=>({id:`${z}bg${r}`,color:o}));return o(p,{title:n,titleHidden:m,description:c,actions:f,isLoading:h,isError:x,errorMessage:u,paperSx:y,children:o(a,{colors:$.map(({id:o})=>`url(#${o})`),...g,grid:{vertical:!0,horizontal:!0},slots:d,slotProps:{...l,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...l?.tooltip}},children:o("defs",{children:$.map(({id:t,color:e})=>r("linearGradient",O?{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o("stop",{offset:"0%",stopColor:i(e,.15)}),o("stop",{offset:"100%",stopColor:e,stopOpacity:1})]}:{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[o("stop",{offset:"0%",stopColor:e,stopOpacity:1}),o("stop",{offset:"100%",stopColor:i(e,.15)})]},t))})})})}export{l as NexusBarChart};
@@ -1 +1 @@
1
- const o="2.4.19";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.4.20";export{o as SAGE_NEXUS_UI_VERSION};
package/dist/index.d.ts CHANGED
@@ -1205,7 +1205,7 @@ type NexusLineChartProps = Omit<LineChartProps, "colors"> & ChartAsyncProps & {
1205
1205
  declare function NexusLineChart({ sx, xAxis, grid, series, slots, slotProps, children, title, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusLineChartProps): react.JSX.Element;
1206
1206
 
1207
1207
  type NexusBarChartProps = Omit<BarChartProps, "colors"> & ChartAsyncProps;
1208
- declare function NexusBarChart({ slotProps, slots, title, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusBarChartProps): react.JSX.Element;
1208
+ declare function NexusBarChart({ slotProps, slots, title, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusBarChartProps): react.JSX.Element;
1209
1209
 
1210
1210
  type NexusPieChartProps = Omit<PieChartProps, "colors"> & ChartAsyncProps;
1211
1211
  declare function NexusPieChart({ slotProps, slots, title, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusPieChartProps): 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.19",
3
+ "version": "2.4.20",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",