it-data-nexus-ui-library 2.8.4 → 2.8.5
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 t}from"react/jsx-runtime";import{useId as r}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 l}from"../../node_modules/@mui/x-charts/BarChart/BarChart.mjs";function a({slotProps:a,slots:n,title:
|
|
1
|
+
import{jsx as o,jsxs as t}from"react/jsx-runtime";import{useId as r}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 l}from"../../node_modules/@mui/x-charts/BarChart/BarChart.mjs";function a({slotProps:a,slots:n,title:d,titleComponent:m,titleHidden:c,description:f,actions:h,isLoading:x,isError:u,errorMessage:y,paperSx:C,gradientColors:g,...j}){const z=e(),O=g??s(z.palette.mode),$=r().replace(/:/g,""),b="horizontal"===j.layout,B=O.map((o,t)=>({id:`${$}bg${t}`,color:o}));return o(p,{title:d,titleComponent:m,titleHidden:c,description:f,actions:h,isLoading:x,isError:u,errorMessage:y,paperSx:C,children:o(l,{colors:B.map(({id:o})=>`url(#${o})`),...j,grid:{vertical:!0,horizontal:!0},slots:n,slotProps:{...a,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...a?.tooltip}},children:o("defs",{children:B.map(({id:r,color:e})=>t("linearGradient",b?{id:r,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:r,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)})]},r))})})})}export{a as NexusBarChart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.8.
|
|
1
|
+
const o="2.8.5";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -1306,8 +1306,11 @@ type NexusLineChartProps = Omit<LineChartProps, "colors"> & ChartAsyncProps & {
|
|
|
1306
1306
|
};
|
|
1307
1307
|
declare function NexusLineChart({ sx, xAxis, grid, series, slots, slotProps, children, title, titleComponent, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusLineChartProps): react.JSX.Element;
|
|
1308
1308
|
|
|
1309
|
-
type NexusBarChartProps = Omit<BarChartProps, "colors"> & ChartAsyncProps
|
|
1310
|
-
|
|
1309
|
+
type NexusBarChartProps = Omit<BarChartProps, "colors"> & ChartAsyncProps & {
|
|
1310
|
+
/** Base colours used to generate the per-series gradients. */
|
|
1311
|
+
gradientColors?: string[];
|
|
1312
|
+
};
|
|
1313
|
+
declare function NexusBarChart({ slotProps, slots, title, titleComponent, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, gradientColors, ...props }: NexusBarChartProps): react.JSX.Element;
|
|
1311
1314
|
|
|
1312
1315
|
type NexusPieChartProps = Omit<PieChartProps, "colors"> & ChartAsyncProps;
|
|
1313
1316
|
declare function NexusPieChart({ slotProps, slots, title, titleComponent, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusPieChartProps): react.JSX.Element;
|