it-data-nexus-ui-library 2.1.4 → 2.3.1

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.
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{Breadcrumbs as e,Link as t}from"@mui/material";import i from"@mui/icons-material/NavigateNext";import{Body2 as o}from"./Typography.mjs";const a=({items:a,ariaLabel:m="Breadcrumb",maxItems:n=8})=>r(e,{"aria-label":m,maxItems:n,separator:r(i,{fontSize:"small"}),children:a.map((e,i)=>{const m=i===a.length-1;return m||!e.onClick?r(o,{"aria-current":m?"page":void 0,children:e.label},i):r(t,{component:"button",type:"button",underline:"hover",color:"inherit",onClick:e.onClick,sx:{font:"inherit",cursor:"pointer"},children:e.label},i)})});export{a as Breadcrumbs};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r,Fragment as i}from"react/jsx-runtime";import{Card as t,CardContent as o,Box as l}from"@mui/material";import{useTheme as n}from"@mui/material/styles";import{Body2 as a,H4 as s}from"./Typography.mjs";import{colours as m}from"../theme/tokens.mjs";const c=({icon:c,label:d,value:x,subtext:p,trend:h="flat",sx:f,children:y,...g})=>{const u=n(),v={up:m.jade,flat:u.palette.text.secondary,down:m.cherry},b=void 0!==c||void 0!==d||void 0!==x||void 0!==p;return e(t,{...g,sx:[{boxShadow:"none"},...Array.isArray(f)?f:f?[f]:[]],children:e(o,{sx:{display:"flex",flexDirection:"column",gap:.5,"&:last-child":{pb:2}},children:b?r(i,{children:[(c||d)&&r(l,{sx:{display:"flex",alignItems:"center",gap:.75,color:"text.secondary"},children:[c&&e(l,{sx:{display:"flex",alignItems:"center",fontSize:"1rem"},children:c}),d&&e(a,{sx:{margin:0},children:d})]}),x&&e(s,{sx:{fontSize:"clamp(1.4rem, 2.5vw, 2rem)",fontWeight:700,lineHeight:1.1},children:x}),p&&e(a,{sx:{color:v[h]},children:p})]}):y})})};export{c as Card};
1
+ import{jsx as e,jsxs as r,Fragment as i}from"react/jsx-runtime";import{Card as t,CardContent as o,Box as l}from"@mui/material";import{useTheme as n}from"@mui/material/styles";import{H4 as a,MetricValue as s,Body2 as d}from"./Typography.mjs";import{colours as c}from"../theme/tokens.mjs";const m=({icon:m,label:p,value:x,subtext:h,trend:f="flat",sx:y,children:u,...g})=>{const v=n(),b={up:c.jade,flat:v.palette.text.secondary,down:c.cherry},j=void 0!==m||void 0!==p||void 0!==x||void 0!==h;return e(t,{...g,sx:[{boxShadow:"none"},...Array.isArray(y)?y:y?[y]:[]],children:e(o,{sx:{display:"flex",flexDirection:"column",gap:.5,"&:last-child":{pb:2}},children:j?r(i,{children:[(m||p)&&r(l,{sx:{display:"flex",alignItems:"center",gap:.75},children:[m&&e(l,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",color:"text.secondary"},children:m}),p&&e(a,{children:p})]}),x&&e(s,{children:x}),h&&e(d,{sx:{color:b[f]},children:h})]}):u})})};export{m as Card};
@@ -1 +1 @@
1
- import{jsx as o,jsxs as t}from"react/jsx-runtime";import{useId as r}from"react";import{useTheme as s,alpha as e}from"@mui/material/styles";import{getChartColours as i}from"../../theme/chartColours.mjs";import{BarChart as p}from"../../node_modules/@mui/x-charts/BarChart/BarChart.mjs";function l({slotProps:l,slots:a,...m}){const c=s(),d=i(c.palette.mode),n=r().replace(/:/g,""),f="horizontal"===m.layout,h=d.map((o,t)=>({id:`${n}bg${t}`,color:o}));return o(p,{colors:h.map(({id:o})=>`url(#${o})`),...m,grid:{vertical:!0,horizontal:!0},slots:a,slotProps:{...l,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...l?.tooltip}},children:o("defs",{children:h.map(({id:r,color:s})=>t("linearGradient",f?{id:r,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:r,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)})]},r))})})}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 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 +1 @@
1
- import{jsx as t,jsxs as e}from"react/jsx-runtime";import{useId as r,useRef as o,useMemo as s}from"react";import{useTheme as i}from"@mui/material/styles";import{getChartColours as a}from"../../theme/chartColours.mjs";import{AnimatedArea as n}from"../../node_modules/@mui/x-charts/LineChart/AnimatedArea.mjs";import{LineChart as p}from"../../node_modules/@mui/x-charts/LineChart/LineChart.mjs";function m({sx:m,xAxis:l,grid:d,series:c=[],slots:f,slotProps:x,children:h,...u}){const g=i(),y=a(g.palette.mode),C=r().replace(/:/g,""),w=l?.map(t=>({scaleType:"point",...t})),A=c.map((t,e)=>t.area&&!t.id?{...t,id:`${C}s${e}`}:t),j=new Map(A.map((t,e)=>({s:t,i:e})).filter(({s:t})=>t.area).map(({s:t,i:e})=>[t.id,`${C}g${e}`])),S=o(j);S.current=j;const $=s(()=>function(e){const r=e.ownerState?.seriesId,o=r?S.current.get(r):void 0;return t(n,{...e,ownerState:o?{...e.ownerState,gradientId:o}:e.ownerState})},[C]);return e(p,{colors:y,xAxis:w,grid:d??{horizontal:!0,vertical:!0},series:A,slots:{area:$,...f},slotProps:{...x,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...x?.tooltip}},sx:m,...u,children:[j.size>0&&t("defs",{children:Array.from(j.entries()).map(([,r],o)=>e("linearGradient",{id:r,x1:"0",y1:"0",x2:"0",y2:"1",children:[t("stop",{offset:"0%",stopColor:y[o%y.length],stopOpacity:.4}),t("stop",{offset:"100%",stopColor:y[o%y.length],stopOpacity:0})]},r))}),h]})}export{m 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: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 +1 @@
1
- import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useId as t,useRef as e}from"react";import{useTheme as i,alpha as s}from"@mui/material/styles";import{getChartColours as c}from"../../theme/chartColours.mjs";import{PieArc as p}from"../../node_modules/@mui/x-charts/PieChart/PieArc.mjs";import{PieChart as l}from"../../node_modules/@mui/x-charts/PieChart/PieChart.mjs";function m({slotProps:m,slots:n,...a}){const d=i(),u=c(d.palette.mode),f=t().replace(/:/g,""),h=u.map((o,r)=>({id:`${f}pg${r}`,color:o})),x=new Map(h.map(({id:o,color:r})=>[r,o])),y=e(x);y.current=x;const C=e(function(r){const t=r.color?y.current.get(r.color):void 0;return o(p,{...r,color:t?`url(#${t})`:r.color})}).current;return o(l,{colors:u,...a,slots:{pieArc:C,...n},slotProps:{...m,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...m?.tooltip}},children:o("defs",{children:h.map(({id:t,color:e})=>r("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[o("stop",{offset:"0%",stopColor:s(e,.15)}),o("stop",{offset:"100%",stopColor:e,stopOpacity:1})]},t))})})}export{m as NexusPieChart};
1
+ import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useId as t,useRef as e}from"react";import{useTheme as i,alpha as s}from"@mui/material/styles";import{getChartColours as c}from"../../theme/chartColours.mjs";import{ChartFrame as p}from"./chartFrame.mjs";import{PieArc as n}from"../../node_modules/@mui/x-charts/PieChart/PieArc.mjs";import{PieChart as m}from"../../node_modules/@mui/x-charts/PieChart/PieChart.mjs";function a({slotProps:a,slots:l,title:d,description:u,actions:f,isLoading:h,isError:x,errorMessage:g,paperSx:y,...C}){const P=i(),j=c(P.palette.mode),M=t().replace(/:/g,""),$=j.map((o,r)=>({id:`${M}pg${r}`,color:o})),A=new Map($.map(({id:o,color:r})=>[r,o])),E=e(A);E.current=A;const L=e(function(r){const t=r.color?E.current.get(r.color):void 0;return o(n,{...r,color:t?`url(#${t})`:r.color})}).current;return o(p,{title:d,description:u,actions:f,isLoading:h,isError:x,errorMessage:g,paperSx:y,children:o(m,{colors:j,...C,slots:{pieArc:L,...l},slotProps:{...a,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...a?.tooltip}},children:o("defs",{children:$.map(({id:t,color:e})=>r("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[o("stop",{offset:"0%",stopColor:s(e,.15)}),o("stop",{offset:"100%",stopColor:e,stopOpacity:1})]},t))})})})}export{a as NexusPieChart};
@@ -0,0 +1 @@
1
+ import{jsx as i,Fragment as r,jsxs as e}from"react/jsx-runtime";import{Paper as o,Box as t}from"@mui/material";import{PaperAsync as n}from"../PaperAsync.mjs";const s={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},p=({title:p,titleHidden:a,description:d,actions:c,isLoading:l,isError:m,errorMessage:h,paperSx:x,children:g})=>void 0===p?i(r,{children:g}):a?e(o,{sx:x??{p:3},children:[i(t,{component:"h2",sx:s,children:p}),g]}):i(n,{title:p,description:d,actions:c,isLoading:Boolean(l),isError:Boolean(m),errorMessage:h,sx:x??{p:3},children:g});export{p as ChartFrame};
@@ -0,0 +1 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";import{Stack as i}from"./_Primitives/Stack.mjs";import{H4 as a,MetricValue as t,Caption as s}from"./Typography.mjs";const m=({label:m,value:n,delta:o,size:l,sx:c})=>r(i,{sx:[{gap:.25},...Array.isArray(c)?c:c?[c]:[]],children:[e(a,{children:m}),r(i,{direction:"row",sx:{alignItems:"baseline",gap:1},children:[e(t,{size:l,children:n}),o&&e(s,{component:"span",children:o})]})]});m.displayName="MetricStat";export{m as MetricStat};
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{ToggleButtonGroup as o,ToggleButton as e}from"@mui/material";function a({options:a,value:i,onChange:l,ariaLabel:t,size:n="small",sx:s,...b}){return r(o,{exclusive:!0,value:i,onChange:(r,o)=>{null!==o&&l(o)},size:n,"aria-label":t,sx:[{bgcolor:"rgba(255, 255, 255, 0.85)",borderRadius:"999px",border:"1px solid",borderColor:"divider",boxShadow:"inset 0 1px 2px rgba(10, 22, 34, 0.05)",p:"3px",gap:"2px","& .MuiToggleButton-root":{border:"none",borderRadius:"999px !important",textTransform:"none",fontWeight:600,px:2,color:"text.secondary",transition:"background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease","&:not(.Mui-selected):hover":{bgcolor:"action.hover",color:"text.primary"}},"&& .MuiToggleButton-root.Mui-selected":{bgcolor:"primary.main",color:"primary.contrastText",boxShadow:"0 1px 4px rgba(20, 39, 59, 0.3), inset 0 1px 0 rgba(255,255,255,0.12)","&:hover":{bgcolor:"primary.dark"}}},...Array.isArray(s)?s:s?[s]:[]],...b,children:a.map(o=>r(e,{value:o.value,disabled:o.disabled,"aria-label":o.ariaLabel,children:o.label},o.value))})}export{a as SegmentedControl};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{Typography as t}from"@mui/material";import{forwardRef as i}from"react";const n=i((i,n)=>a(t,{ref:n,variant:"h1",...i}));n.displayName="H1";const r=i((i,n)=>a(t,{ref:n,variant:"h2",...i}));r.displayName="H2";const o=i((i,n)=>a(t,{ref:n,variant:"h3",...i}));o.displayName="H3";const e=i((i,n)=>a(t,{ref:n,variant:"h4",...i}));e.displayName="H4";const s=i((i,n)=>a(t,{ref:n,variant:"actionBarTitle",component:"h1",...i}));s.displayName="ActionBarTitle";const m=i((i,n)=>a(t,{ref:n,variant:"body1",...i}));m.displayName="Body1";const p=i((i,n)=>a(t,{ref:n,variant:"chatWindowBody",...i}));p.displayName="ChatWindowBody";const c=i((i,n)=>a(t,{ref:n,variant:"body2",...i}));c.displayName="Body2";const d=i((i,n)=>a(t,{ref:n,variant:"caption",...i}));d.displayName="Caption";const y=i((i,n)=>a(t,{ref:n,variant:"inherit",component:"span",...i}));y.displayName="Span";export{s as ActionBarTitle,m as Body1,c as Body2,d as Caption,p as ChatWindowBody,n as H1,r as H2,o as H3,e as H4,y as Span};
1
+ import{jsx as a}from"react/jsx-runtime";import{Typography as t}from"@mui/material";import{forwardRef as r}from"react";const e=r((r,e)=>a(t,{ref:e,variant:"h1",...r}));e.displayName="H1";const i=r((r,e)=>a(t,{ref:e,variant:"h2",...r}));i.displayName="H2";const n=r((r,e)=>a(t,{ref:e,variant:"h3",...r}));n.displayName="H3";const o=r((r,e)=>a(t,{ref:e,variant:"h4",...r}));o.displayName="H4";const m=r((r,e)=>a(t,{ref:e,variant:"actionBarTitle",component:"h1",...r}));m.displayName="ActionBarTitle";const s=r((r,e)=>a(t,{ref:e,variant:"body1",...r}));s.displayName="Body1";const p=r((r,e)=>a(t,{ref:e,variant:"chatWindowBody",...r}));p.displayName="ChatWindowBody";const c=r((r,e)=>a(t,{ref:e,variant:"body2",...r}));c.displayName="Body2";const d=r((r,e)=>a(t,{ref:e,variant:"caption",...r}));d.displayName="Caption";const y=r((r,e)=>a(t,{ref:e,variant:"inherit",component:"span",...r}));y.displayName="Span";const l={sm:"1.5rem",md:"2rem",lg:"2.5rem"},f=r(({size:r="md",sx:e,...i},n)=>a(t,{ref:n,component:"p",sx:[{fontSize:l[r],fontWeight:700,lineHeight:1.1,letterSpacing:"-0.02em",color:"text.primary",margin:0},...Array.isArray(e)?e:e?[e]:[]],...i}));f.displayName="MetricValue";export{m as ActionBarTitle,s as Body1,c as Body2,d as Caption,p as ChatWindowBody,e as H1,i as H2,n as H3,o as H4,f as MetricValue,y as Span};
@@ -1 +1 @@
1
- const o="2.1.4";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.3.1";export{o as SAGE_NEXUS_UI_VERSION};
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { ReactNode, ReactElement, ComponentType, CSSProperties, PropsWithChildren } from 'react';
3
- import { AlertProps, BoxProps, SxProps as SxProps$1, Theme as Theme$1, TypographyProps, ContainerProps, GridProps, LinkProps as LinkProps$1, SelectProps as SelectProps$1, SwitchProps, AccordionSummaryProps, ButtonProps, ChipProps, CardProps as CardProps$1, PaperProps, CircularProgressProps, CollapseProps, ButtonBaseProps, CheckboxProps, FormControlLabelProps, FormGroupProps, DialogProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogTitleProps, DividerProps, IconButtonProps as IconButtonProps$1, SkeletonProps as SkeletonProps$1, StackProps, TabProps, TabsProps, TextFieldProps, TooltipProps as TooltipProps$1 } from '@mui/material';
3
+ import { AlertProps, BoxProps, SxProps as SxProps$1, Theme as Theme$1, TypographyProps, ContainerProps, GridProps, LinkProps as LinkProps$1, SelectProps as SelectProps$1, ToggleButtonGroupProps, SwitchProps, AccordionSummaryProps, ButtonProps, ChipProps, CardProps as CardProps$1, PaperProps, CircularProgressProps, CollapseProps, ButtonBaseProps, CheckboxProps, FormControlLabelProps, FormGroupProps, DialogProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogTitleProps, DividerProps, IconButtonProps as IconButtonProps$1, SkeletonProps as SkeletonProps$1, StackProps, TabProps, TabsProps, TextFieldProps, TooltipProps as TooltipProps$1 } from '@mui/material';
4
4
  export { AlertProps, AlertTitle, BoxProps, ButtonBaseProps, CheckboxProps, ChipProps, CircularProgressProps, CollapseProps, ContainerProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogProps, DialogTitleProps, DividerProps, FormControlLabelProps, FormGroupProps, GridProps, MenuItem, PaperProps, StackProps, SwitchProps, TabProps, TabsProps, TextFieldProps, Theme, alpha, useMediaQuery, useTheme } from '@mui/material';
5
5
  import { SxProps, Theme } from '@mui/material/styles';
6
6
  import { Components } from 'react-markdown';
@@ -478,6 +478,51 @@ interface StatusBadgeProps {
478
478
  */
479
479
  declare const StatusBadge: ({ variant, label, }: StatusBadgeProps) => react.JSX.Element;
480
480
 
481
+ interface SegmentedControlOption<T extends string = string> {
482
+ label: ReactNode;
483
+ value: T;
484
+ /** Optional accessible label when `label` is an icon or is not descriptive. */
485
+ ariaLabel?: string;
486
+ disabled?: boolean;
487
+ }
488
+ interface SegmentedControlProps<T extends string = string> extends Omit<ToggleButtonGroupProps, "value" | "onChange" | "exclusive" | "color"> {
489
+ options: SegmentedControlOption<T>[];
490
+ value: T;
491
+ onChange: (value: T) => void;
492
+ /** Accessible group label, e.g. "Level of detail". */
493
+ ariaLabel?: string;
494
+ }
495
+ /**
496
+ * Segmented pill-track toggle for switching between a small set of mutually exclusive
497
+ * options — view switchers, detail/summary modes, region filters, and similar.
498
+ *
499
+ * Renders as a recessed pill track with a filled, elevated active segment.
500
+ *
501
+ * For multi-page navigation prefer `SideBladeNavList`; for tabbed page content
502
+ * prefer `Tabs`. This is for compact in-page toggles.
503
+ */
504
+ declare function SegmentedControl<T extends string = string>({ options, value, onChange, ariaLabel, size, sx, ...rest }: SegmentedControlProps<T>): react.JSX.Element;
505
+
506
+ interface BreadcrumbItem {
507
+ label: ReactNode;
508
+ /** When provided, the crumb is a clickable step. Omit for the current (last) step. */
509
+ onClick?: () => void;
510
+ }
511
+ interface BreadcrumbsProps {
512
+ items: BreadcrumbItem[];
513
+ /** Accessible label for the nav landmark. Defaults to "Breadcrumb". */
514
+ ariaLabel?: string;
515
+ /** Max items before collapsing with an ellipsis. Defaults to 8. */
516
+ maxItems?: number;
517
+ }
518
+ /**
519
+ * Breadcrumb trail for stepwise, hierarchical navigation — for example the levels
520
+ * of a single drill-down dialog (overview → product → programme). The last item is
521
+ * rendered as the current step (not clickable); earlier items with an `onClick` are
522
+ * links back to that step.
523
+ */
524
+ declare const Breadcrumbs: ({ items, ariaLabel, maxItems, }: BreadcrumbsProps) => react.JSX.Element;
525
+
481
526
  declare const Switch: (props: SwitchProps) => react.JSX.Element;
482
527
 
483
528
  /**
@@ -496,6 +541,38 @@ declare const ChatWindowBody: react.ForwardRefExoticComponent<Omit<Props, "ref">
496
541
  declare const Body2: react.ForwardRefExoticComponent<Omit<Props, "ref"> & react.RefAttributes<HTMLElement>>;
497
542
  declare const Caption: react.ForwardRefExoticComponent<Omit<Props, "ref"> & react.RefAttributes<HTMLElement>>;
498
543
  declare const Span: react.ForwardRefExoticComponent<Omit<Props, "ref"> & react.RefAttributes<HTMLElement>>;
544
+ type MetricValueSize = "sm" | "md" | "lg";
545
+ type MetricValueProps = Omit<TypographyProps, "variant"> & {
546
+ size?: MetricValueSize;
547
+ };
548
+ declare const MetricValue: react.ForwardRefExoticComponent<Omit<MetricValueProps, "ref"> & react.RefAttributes<HTMLElement>>;
549
+
550
+ interface MetricStatProps {
551
+ /** Label naming the metric — rendered as H4 (a sub-heading, not a caption). */
552
+ label: string;
553
+ /** The data value — rendered as MetricValue (large bold, not a semantic heading). */
554
+ value: string;
555
+ /** Optional variance / delta — rendered as Caption (small secondary text). */
556
+ delta?: string;
557
+ /** Size passed to MetricValue. Defaults to 'md' (2rem / 32px). */
558
+ size?: MetricValueSize;
559
+ sx?: SxProps<Theme>;
560
+ }
561
+ /**
562
+ * A label + large value + optional delta block for KPI and metric display.
563
+ *
564
+ * ```tsx
565
+ * <MetricStat label="FY27 Revenue" value="£1.1bn" delta="-15.4%" />
566
+ * <MetricStat label="ROCE" value="72%" delta="+4pts" size="lg" />
567
+ * ```
568
+ *
569
+ * The label is an H4 (semantic sub-heading), the value is a MetricValue (bold
570
+ * large p — not a heading), and the delta is a Caption.
571
+ */
572
+ declare const MetricStat: {
573
+ ({ label, value, delta, size, sx }: MetricStatProps): react.JSX.Element;
574
+ displayName: string;
575
+ };
499
576
 
500
577
  interface ActionBarProps {
501
578
  title?: ReactNode;
@@ -959,16 +1036,42 @@ interface TooltipProps extends Omit<TooltipProps$1, "title"> {
959
1036
  }
960
1037
  declare const Tooltip: ({ title, children, ...rest }: TooltipProps) => react.JSX.Element;
961
1038
 
962
- type NexusLineChartProps = Omit<LineChartProps, "colors"> & {
1039
+ /**
1040
+ * Optional async/paper props shared by the Nexus chart components. When `title` is
1041
+ * provided, the chart self-wraps in `PaperAsync` and gains loading/error handling
1042
+ * for free. With no `title`, the chart renders bare (backward-compatible).
1043
+ */
1044
+ interface ChartAsyncProps {
1045
+ title?: string;
1046
+ /**
1047
+ * When `true`, the chart still self-wraps in a solid `Paper` (so it sits on a
1048
+ * solid background rather than inheriting a glass surface), but the title is
1049
+ * rendered as a visually-hidden `<h2>` for screen readers only — no visible header
1050
+ * is shown. Useful when the chart lives inside a card that already provides a
1051
+ * visible heading.
1052
+ *
1053
+ * Ignored when `title` is not provided.
1054
+ */
1055
+ titleHidden?: boolean;
1056
+ description?: ReactNode;
1057
+ actions?: ReactNode;
1058
+ isLoading?: boolean;
1059
+ isError?: boolean;
1060
+ errorMessage?: string;
1061
+ /** `sx` applied to the wrapping `PaperAsync` or `Paper` (defaults to `{ p: 3 }`). */
1062
+ paperSx?: SxProps<Theme>;
1063
+ }
1064
+
1065
+ type NexusLineChartProps = Omit<LineChartProps, "colors"> & ChartAsyncProps & {
963
1066
  children?: React.ReactNode;
964
1067
  };
965
- declare function NexusLineChart({ sx, xAxis, grid, series, slots, slotProps, children, ...props }: NexusLineChartProps): react.JSX.Element;
1068
+ declare function NexusLineChart({ sx, xAxis, grid, series, slots, slotProps, children, title, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusLineChartProps): react.JSX.Element;
966
1069
 
967
- type NexusBarChartProps = Omit<BarChartProps, "colors">;
968
- declare function NexusBarChart({ slotProps, slots, ...props }: NexusBarChartProps): react.JSX.Element;
1070
+ type NexusBarChartProps = Omit<BarChartProps, "colors"> & ChartAsyncProps;
1071
+ declare function NexusBarChart({ slotProps, slots, title, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusBarChartProps): react.JSX.Element;
969
1072
 
970
- type NexusPieChartProps = Omit<PieChartProps, "colors">;
971
- declare function NexusPieChart({ slotProps, slots, ...props }: NexusPieChartProps): react.JSX.Element;
1073
+ type NexusPieChartProps = Omit<PieChartProps, "colors"> & ChartAsyncProps;
1074
+ declare function NexusPieChart({ slotProps, slots, title, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusPieChartProps): react.JSX.Element;
972
1075
 
973
1076
  declare const getFaviconUrls: (versioned?: boolean) => {
974
1077
  svg: string;
@@ -1110,5 +1213,5 @@ declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOp
1110
1213
  declare const leftPipe: SxProps<Theme>;
1111
1214
  declare const expandableText: (isExpanded: boolean) => SxProps<Theme>;
1112
1215
 
1113
- export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AgentChatWindow, AgentChatWindowHeader, AiButton, AiCard, AiChip, AiGlassCard, AiGlassPaper, AiPaper, Alert, Avatar, Body1, Body2, Box, ButtonBase, Caption, Card, ChatAvatar, ChatHistory, ChatHistoryButtonBase, ChatHistoryHeader, ChatInput, ChatWindowBody, Checkbox, CheckboxGroup, Chip, CircularProgress, Code, Collapse, Container, CopyableTableContainer, DateRangeFilter, DateRangePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, EmptyState, FABButton, FaviconLinks, FormControlLabel, FormGroup, GhostButton, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, Grid, H1, H2, H3, H4, IconButton, Link, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MarkdownContent, MessageBubble, MessageFeedbackBar, MessageList, MuiAppThemeProvider, NexusBarChart, NexusChatDialog, NexusChatWidget, NexusDataGrid, NexusHome, NexusLineChart, NexusLogo, NexusPieChart, Paper, PaperAsync, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, Select, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, SourceCitations, Span, Stack, StatusBadge, StatusChip, StreamingBubble, SuggestedPrompts, Switch, Tab, Tabs, TextField, ThemeModeContext, ThemeModeProvider, ThemeToggle, Tooltip, TypingIndicator, chatHistoryMatchesQuery, chatWindowMarkdownComponents, colours, createSageTheme, expandableText, filterChatHistoryConversations, fontSageHeadline, fontSageText, fontSageUI, formatDate, formatSurnameFirstname, getFaviconUrls, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, latestTraceLabel, leftPipe, useThemeMode, useTokens };
1114
- export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivitySummary, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, CardProps, CardTrend, ChatAvatarProps, ChatHistoryButtonBaseProps, ChatHistoryConversation, ChatHistoryHeaderProps, ChatHistoryProps, ChatInputProps, ChatMessage, CodeBlock, CopyableTableContainerProps, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, EmptyStateProps, FABButtonProps, FileArtifact, GhostButtonProps, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, LatencyMetrics, LinkProps, LoadingSpinnerNexusProps, MarkdownContentProps, MessageBubbleProps, MessageFeedbackBarProps, MessageListProps, ModeTokens, NexusBarChartProps, NexusChatDialogProps, NexusChatWidgetProps, NexusLineChartProps, NexusPieChartProps, PaperAsyncProps, ParsedActivity, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SelectOption, SelectProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, SourceCitationsProps, StatusBadgeProps, StatusBadgeVariant, StreamingBubbleProps, SuggestedPromptsProps, ThemeMode, TooltipProps, TraceEvent, TypingIndicatorProps };
1216
+ export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AgentChatWindow, AgentChatWindowHeader, AiButton, AiCard, AiChip, AiGlassCard, AiGlassPaper, AiPaper, Alert, Avatar, Body1, Body2, Box, Breadcrumbs, ButtonBase, Caption, Card, ChatAvatar, ChatHistory, ChatHistoryButtonBase, ChatHistoryHeader, ChatInput, ChatWindowBody, Checkbox, CheckboxGroup, Chip, CircularProgress, Code, Collapse, Container, CopyableTableContainer, DateRangeFilter, DateRangePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, EmptyState, FABButton, FaviconLinks, FormControlLabel, FormGroup, GhostButton, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, Grid, H1, H2, H3, H4, IconButton, Link, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MarkdownContent, MessageBubble, MessageFeedbackBar, MessageList, MetricStat, MetricValue, MuiAppThemeProvider, NexusBarChart, NexusChatDialog, NexusChatWidget, NexusDataGrid, NexusHome, NexusLineChart, NexusLogo, NexusPieChart, Paper, PaperAsync, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, SegmentedControl, Select, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, SourceCitations, Span, Stack, StatusBadge, StatusChip, StreamingBubble, SuggestedPrompts, Switch, Tab, Tabs, TextField, ThemeModeContext, ThemeModeProvider, ThemeToggle, Tooltip, TypingIndicator, chatHistoryMatchesQuery, chatWindowMarkdownComponents, colours, createSageTheme, expandableText, filterChatHistoryConversations, fontSageHeadline, fontSageText, fontSageUI, formatDate, formatSurnameFirstname, getFaviconUrls, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, latestTraceLabel, leftPipe, useThemeMode, useTokens };
1217
+ export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivitySummary, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, BreadcrumbItem, BreadcrumbsProps, CardProps, CardTrend, ChartAsyncProps, ChatAvatarProps, ChatHistoryButtonBaseProps, ChatHistoryConversation, ChatHistoryHeaderProps, ChatHistoryProps, ChatInputProps, ChatMessage, CodeBlock, CopyableTableContainerProps, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, EmptyStateProps, FABButtonProps, FileArtifact, GhostButtonProps, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, LatencyMetrics, LinkProps, LoadingSpinnerNexusProps, MarkdownContentProps, MessageBubbleProps, MessageFeedbackBarProps, MessageListProps, MetricStatProps, MetricValueSize, ModeTokens, NexusBarChartProps, NexusChatDialogProps, NexusChatWidgetProps, NexusLineChartProps, NexusPieChartProps, PaperAsyncProps, ParsedActivity, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, SourceCitationsProps, StatusBadgeProps, StatusBadgeVariant, StreamingBubbleProps, SuggestedPromptsProps, ThemeMode, TooltipProps, TraceEvent, TypingIndicatorProps };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export{DateRangeFilter}from"./components/DateRangeFilter.mjs";export{DateRangePicker}from"./components/DateRangePicker.mjs";export{Alert}from"./components/_Primitives/Alert.mjs";export{NexusChatWidget}from"./components/NexusChat/NexusChatWidget.mjs";export{NexusChatDialog}from"./components/NexusChat/NexusChatDialog.mjs";export{FABButton}from"./components/NexusChat/FABButton.mjs";export{AgentChatWindow}from"./components/NexusChat/AgentChatWindow.mjs";export{AgentChatWindowHeader}from"./components/NexusChat/AgentChatWindowHeader.mjs";export{ChatInput}from"./components/NexusChat/ChatInput.mjs";export{ChatHistory}from"./components/NexusChat/ChatHistory.mjs";export{ChatHistoryHeader}from"./components/NexusChat/ChatHistoryHeader.mjs";export{ChatHistoryButtonBase}from"./components/NexusChat/ChatHistoryButtonBase.mjs";export{chatHistoryMatchesQuery,filterChatHistoryConversations}from"./components/NexusChat/ChatHistorySearch.mjs";export{CopyableTableContainer}from"./components/NexusChat/ChatComponents/CopyableTableContainer.mjs";export{default as ChatAvatar}from"./components/NexusChat/ChatComponents/ChatAvatar.mjs";export{default as MarkdownContent,chatWindowMarkdownComponents}from"./components/NexusChat/ChatComponents/MarkdownContent.mjs";export{default as MessageBubble}from"./components/NexusChat/ChatComponents/MessageBubble.mjs";export{default as MessageFeedbackBar}from"./components/NexusChat/ChatComponents/MessageFeedbackBar.mjs";export{default as StreamingBubble}from"./components/NexusChat/ChatComponents/StreamingBubble.mjs";export{default as TypingIndicator}from"./components/NexusChat/ChatComponents/TypingIndicator.mjs";export{default as SuggestedPrompts}from"./components/NexusChat/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/NexusChat/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/NexusChat/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/NexusChat/ChatComponents/SourceCitations.mjs";export{latestTraceLabel}from"./components/NexusChat/ChatComponents/latestTraceLabel.mjs";export{Code}from"./components/Code.mjs";export{Container}from"./components/_Primitives/Container.mjs";export{Grid}from"./components/_Primitives/Grid.mjs";export{Link}from"./components/_Primitives/Link.mjs";export{Select}from"./components/Select.mjs";export{SkipLink}from"./components/SkipLink.mjs";export{StatusBadge}from"./components/StatusBadge.mjs";export{Switch}from"./components/_Primitives/Switch.mjs";export{ActionBarTitle,Body1,Body2,Caption,ChatWindowBody,H1,H2,H3,H4,Span}from"./components/Typography.mjs";export{ActionBar}from"./components/ActionBar.mjs";export{AccordionGroup,AccordionGroupItem}from"./components/AccordionGroup.mjs";export{AccordionSingle}from"./components/AccordionSingle.mjs";export{AiButton}from"./components/Buttons/AiButton.mjs";export{AiChip}from"./components/AiChip.mjs";export{AiCard}from"./components/AiCard.mjs";export{AiGlassCard}from"./components/AiGlassCard.mjs";export{AiPaper}from"./components/AiPaper.mjs";export{AiGlassPaper}from"./components/AiGlassPaper.mjs";export{Box}from"./components/_Primitives/Box.mjs";export{CircularProgress}from"./components/_Primitives/CircularProgress.mjs";export{Collapse}from"./components/_Primitives/Collapse.mjs";export{NexusDataGrid}from"./components/NexusDataGrid.mjs";export{ButtonBase}from"./components/Buttons/ButtonBase.mjs";export{GhostButton}from"./components/Buttons/GhostButton.mjs";export{Card}from"./components/Card.mjs";export{Checkbox}from"./components/FormControls/Checkbox.mjs";export{FormControlLabel}from"./components/FormControls/FormControlLabel.mjs";export{FormGroup}from"./components/FormControls/FormGroup.mjs";export{CheckboxGroup}from"./components/FormControls/CheckboxGroup.mjs";export{Chip}from"./components/_Primitives/Chip.mjs";export{Dialog,DialogActions,DialogContent,DialogContentText,DialogTitle}from"./components/Dialog.mjs";export{Divider}from"./components/_Primitives/Divider.mjs";export{GlassCard}from"./components/GlassCard.mjs";export{GlassPaper}from"./components/GlassPaper.mjs";export{GlassPaperAsync}from"./components/GlassPaperAsync.mjs";export{PaperAsync}from"./components/PaperAsync.mjs";export{GreenWaveBackground}from"./components/GreenWaveBackground.mjs";export{IconButton}from"./components/Buttons/IconButton.mjs";export{Avatar}from"./components/Avatar.mjs";export{LoadingSpinnerNexus}from"./components/LoadingSpinnerNexus.mjs";export{LocationMultiSelect}from"./components/LocationMultiSelect.mjs";export{LogoOptions}from"./components/LogoOptions/index.mjs";export{NexusHome}from"./components/NexusHome.mjs";export{default as NexusLogo}from"./components/NexusLogo.mjs";export{Paper}from"./components/_Primitives/Paper.mjs";export{PrimaryButton}from"./components/Buttons/PrimaryButton.mjs";export{PrimaryButtonLink}from"./components/Buttons/PrimaryButtonLink.mjs";export{SecondaryButton}from"./components/Buttons/SecondaryButton.mjs";export{RagDot}from"./components/RagDot.mjs";export{RagChip}from"./components/RagChip.mjs";export{SecondaryButtonLink}from"./components/Buttons/SecondaryButtonLink.mjs";export{SearchInput}from"./components/SearchInput.mjs";export{SideBlade}from"./components/SideBlade/SideBlade.mjs";export{SideBladeNavList}from"./components/SideBlade/SideBladeNavList.mjs";export{SideBladeNavListItem}from"./components/SideBlade/SideBladeNavListItem.mjs";export{Skeleton}from"./components/_Primitives/Skeleton.mjs";export{SkillChip}from"./components/SkillChip.mjs";export{Stack}from"./components/_Primitives/Stack.mjs";export{StatusChip}from"./components/StatusChip.mjs";export{Tab}from"./components/_Primitives/Tab.mjs";export{Tabs}from"./components/_Primitives/Tabs.mjs";export{TextField}from"./components/_Primitives/TextField.mjs";export{ThemeToggle}from"./components/ThemeToggle.mjs";export{Tooltip}from"./components/Tooltip.mjs";export{NexusLineChart}from"./components/Charts/NexusLineChart.mjs";export{NexusBarChart}from"./components/Charts/NexusBarChart.mjs";export{NexusPieChart}from"./components/Charts/NexusPieChart.mjs";export{default as nexusLogoNode}from"./assets/images/nexus-logo-node.svg.mjs";export{default as nexusLogoFavicon}from"./assets/images/nexus-logo-favicon.svg.mjs";export{default as nexusLogoIco}from"./assets/images/favicon.ico.mjs";export{getFaviconUrls}from"./assets/images/urls.mjs";export{FaviconLinks}from"./components/FaviconLinks.mjs";export{createSageTheme}from"./theme/sageTheme.mjs";export{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./theme/tokens.mjs";export{useTokens}from"./theme/useTokens.mjs";export{default as MuiAppThemeProvider}from"./theme/MuiAppThemeProvider.mjs";export{ThemeModeContext,ThemeModeProvider,useThemeMode}from"./theme/ThemeContext.mjs";export{AlertTitle,MenuItem,alpha,useMediaQuery,useTheme}from"@mui/material";export{formatSurnameFirstname}from"./utils/nameFormats.mjs";export{formatDate,getFiscalPeriod}from"./utils/dateFormats.mjs";export{expandableText,getGradientBorderStyles,leftPipe}from"./theme/sxHelpers.mjs";
1
+ export{DateRangeFilter}from"./components/DateRangeFilter.mjs";export{DateRangePicker}from"./components/DateRangePicker.mjs";export{Alert}from"./components/_Primitives/Alert.mjs";export{NexusChatWidget}from"./components/NexusChat/NexusChatWidget.mjs";export{NexusChatDialog}from"./components/NexusChat/NexusChatDialog.mjs";export{FABButton}from"./components/NexusChat/FABButton.mjs";export{AgentChatWindow}from"./components/NexusChat/AgentChatWindow.mjs";export{AgentChatWindowHeader}from"./components/NexusChat/AgentChatWindowHeader.mjs";export{ChatInput}from"./components/NexusChat/ChatInput.mjs";export{ChatHistory}from"./components/NexusChat/ChatHistory.mjs";export{ChatHistoryHeader}from"./components/NexusChat/ChatHistoryHeader.mjs";export{ChatHistoryButtonBase}from"./components/NexusChat/ChatHistoryButtonBase.mjs";export{chatHistoryMatchesQuery,filterChatHistoryConversations}from"./components/NexusChat/ChatHistorySearch.mjs";export{CopyableTableContainer}from"./components/NexusChat/ChatComponents/CopyableTableContainer.mjs";export{default as ChatAvatar}from"./components/NexusChat/ChatComponents/ChatAvatar.mjs";export{default as MarkdownContent,chatWindowMarkdownComponents}from"./components/NexusChat/ChatComponents/MarkdownContent.mjs";export{default as MessageBubble}from"./components/NexusChat/ChatComponents/MessageBubble.mjs";export{default as MessageFeedbackBar}from"./components/NexusChat/ChatComponents/MessageFeedbackBar.mjs";export{default as StreamingBubble}from"./components/NexusChat/ChatComponents/StreamingBubble.mjs";export{default as TypingIndicator}from"./components/NexusChat/ChatComponents/TypingIndicator.mjs";export{default as SuggestedPrompts}from"./components/NexusChat/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/NexusChat/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/NexusChat/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/NexusChat/ChatComponents/SourceCitations.mjs";export{latestTraceLabel}from"./components/NexusChat/ChatComponents/latestTraceLabel.mjs";export{Code}from"./components/Code.mjs";export{Container}from"./components/_Primitives/Container.mjs";export{Grid}from"./components/_Primitives/Grid.mjs";export{Link}from"./components/_Primitives/Link.mjs";export{Select}from"./components/Select.mjs";export{SkipLink}from"./components/SkipLink.mjs";export{StatusBadge}from"./components/StatusBadge.mjs";export{SegmentedControl}from"./components/SegmentedControl.mjs";export{Breadcrumbs}from"./components/Breadcrumbs.mjs";export{Switch}from"./components/_Primitives/Switch.mjs";export{ActionBarTitle,Body1,Body2,Caption,ChatWindowBody,H1,H2,H3,H4,MetricValue,Span}from"./components/Typography.mjs";export{MetricStat}from"./components/MetricStat.mjs";export{ActionBar}from"./components/ActionBar.mjs";export{AccordionGroup,AccordionGroupItem}from"./components/AccordionGroup.mjs";export{AccordionSingle}from"./components/AccordionSingle.mjs";export{AiButton}from"./components/Buttons/AiButton.mjs";export{AiChip}from"./components/AiChip.mjs";export{AiCard}from"./components/AiCard.mjs";export{AiGlassCard}from"./components/AiGlassCard.mjs";export{AiPaper}from"./components/AiPaper.mjs";export{AiGlassPaper}from"./components/AiGlassPaper.mjs";export{Box}from"./components/_Primitives/Box.mjs";export{CircularProgress}from"./components/_Primitives/CircularProgress.mjs";export{Collapse}from"./components/_Primitives/Collapse.mjs";export{NexusDataGrid}from"./components/NexusDataGrid.mjs";export{ButtonBase}from"./components/Buttons/ButtonBase.mjs";export{GhostButton}from"./components/Buttons/GhostButton.mjs";export{Card}from"./components/Card.mjs";export{Checkbox}from"./components/FormControls/Checkbox.mjs";export{FormControlLabel}from"./components/FormControls/FormControlLabel.mjs";export{FormGroup}from"./components/FormControls/FormGroup.mjs";export{CheckboxGroup}from"./components/FormControls/CheckboxGroup.mjs";export{Chip}from"./components/_Primitives/Chip.mjs";export{Dialog,DialogActions,DialogContent,DialogContentText,DialogTitle}from"./components/Dialog.mjs";export{Divider}from"./components/_Primitives/Divider.mjs";export{GlassCard}from"./components/GlassCard.mjs";export{GlassPaper}from"./components/GlassPaper.mjs";export{GlassPaperAsync}from"./components/GlassPaperAsync.mjs";export{PaperAsync}from"./components/PaperAsync.mjs";export{GreenWaveBackground}from"./components/GreenWaveBackground.mjs";export{IconButton}from"./components/Buttons/IconButton.mjs";export{Avatar}from"./components/Avatar.mjs";export{LoadingSpinnerNexus}from"./components/LoadingSpinnerNexus.mjs";export{LocationMultiSelect}from"./components/LocationMultiSelect.mjs";export{LogoOptions}from"./components/LogoOptions/index.mjs";export{NexusHome}from"./components/NexusHome.mjs";export{default as NexusLogo}from"./components/NexusLogo.mjs";export{Paper}from"./components/_Primitives/Paper.mjs";export{PrimaryButton}from"./components/Buttons/PrimaryButton.mjs";export{PrimaryButtonLink}from"./components/Buttons/PrimaryButtonLink.mjs";export{SecondaryButton}from"./components/Buttons/SecondaryButton.mjs";export{RagDot}from"./components/RagDot.mjs";export{RagChip}from"./components/RagChip.mjs";export{SecondaryButtonLink}from"./components/Buttons/SecondaryButtonLink.mjs";export{SearchInput}from"./components/SearchInput.mjs";export{SideBlade}from"./components/SideBlade/SideBlade.mjs";export{SideBladeNavList}from"./components/SideBlade/SideBladeNavList.mjs";export{SideBladeNavListItem}from"./components/SideBlade/SideBladeNavListItem.mjs";export{Skeleton}from"./components/_Primitives/Skeleton.mjs";export{SkillChip}from"./components/SkillChip.mjs";export{Stack}from"./components/_Primitives/Stack.mjs";export{StatusChip}from"./components/StatusChip.mjs";export{Tab}from"./components/_Primitives/Tab.mjs";export{Tabs}from"./components/_Primitives/Tabs.mjs";export{TextField}from"./components/_Primitives/TextField.mjs";export{ThemeToggle}from"./components/ThemeToggle.mjs";export{Tooltip}from"./components/Tooltip.mjs";export{NexusLineChart}from"./components/Charts/NexusLineChart.mjs";export{NexusBarChart}from"./components/Charts/NexusBarChart.mjs";export{NexusPieChart}from"./components/Charts/NexusPieChart.mjs";export{default as nexusLogoNode}from"./assets/images/nexus-logo-node.svg.mjs";export{default as nexusLogoFavicon}from"./assets/images/nexus-logo-favicon.svg.mjs";export{default as nexusLogoIco}from"./assets/images/favicon.ico.mjs";export{getFaviconUrls}from"./assets/images/urls.mjs";export{FaviconLinks}from"./components/FaviconLinks.mjs";export{createSageTheme}from"./theme/sageTheme.mjs";export{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./theme/tokens.mjs";export{useTokens}from"./theme/useTokens.mjs";export{default as MuiAppThemeProvider}from"./theme/MuiAppThemeProvider.mjs";export{ThemeModeContext,ThemeModeProvider,useThemeMode}from"./theme/ThemeContext.mjs";export{AlertTitle,MenuItem,alpha,useMediaQuery,useTheme}from"@mui/material";export{formatSurnameFirstname}from"./utils/nameFormats.mjs";export{formatDate,getFiscalPeriod}from"./utils/dateFormats.mjs";export{expandableText,getGradientBorderStyles,leftPipe}from"./theme/sxHelpers.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "it-data-nexus-ui-library",
3
- "version": "2.1.4",
3
+ "version": "2.3.1",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",