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
|
|
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.
|
|
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;
|