it-data-nexus-ui-library 2.5.1 → 2.5.3

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.
Files changed (34) hide show
  1. package/dist/components/ActionBar.mjs +1 -1
  2. package/dist/components/LoadingSpinnerNexus.mjs +1 -1
  3. package/dist/components/Logo/LogoOptions/LogoOption1.mjs +1 -0
  4. package/dist/components/Logo/LogoOptions/LogoOption11.mjs +1 -0
  5. package/dist/components/Logo/LogoOptions/LogoOptionBase.mjs +1 -0
  6. package/dist/components/Logo/LogoOptions/SageLogo.mjs +1 -0
  7. package/dist/components/Logo/NexusLogoNode.mjs +1 -0
  8. package/dist/components/Logo/NexusNodeIcon.mjs +1 -0
  9. package/dist/components/NexusChat/NexusChatDialog.mjs +1 -1
  10. package/dist/generated/version.mjs +1 -1
  11. package/dist/index.d.ts +11 -3
  12. package/dist/index.mjs +1 -1
  13. package/package.json +1 -1
  14. package/dist/components/LogoOptions/LogoOption1.mjs +0 -1
  15. package/dist/components/LogoOptions/LogoOption11.mjs +0 -1
  16. package/dist/components/LogoOptions/LogoOptionBase.mjs +0 -1
  17. package/dist/components/LogoOptions/SageLogo.mjs +0 -1
  18. package/dist/components/NexusLogoNode.mjs +0 -1
  19. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption10.mjs +0 -0
  20. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption12.mjs +0 -0
  21. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption13.mjs +0 -0
  22. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption14.mjs +0 -0
  23. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption15.mjs +0 -0
  24. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption2.mjs +0 -0
  25. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption3.mjs +0 -0
  26. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption4.mjs +0 -0
  27. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption5.mjs +0 -0
  28. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption6.mjs +0 -0
  29. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption7.mjs +0 -0
  30. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption8.mjs +0 -0
  31. /package/dist/components/{LogoOptions → Logo/LogoOptions}/LogoOption9.mjs +0 -0
  32. /package/dist/components/{LogoOptions → Logo/LogoOptions}/index.mjs +0 -0
  33. /package/dist/components/{NexusHome.mjs → Logo/NexusHome.mjs} +0 -0
  34. /package/dist/components/{NexusLogo.mjs → Logo/NexusLogo.mjs} +0 -0
@@ -1 +1 @@
1
- import{jsx as e,jsxs as n,Fragment as t}from"react/jsx-runtime";import{useTheme as i,useMediaQuery as r,AppBar as l,Toolbar as o}from"@mui/material";import{Box as s}from"./_Primitives/Box.mjs";import{Stack as c}from"./_Primitives/Stack.mjs";import{NexusHome as d}from"./NexusHome.mjs";import{ThemeToggle as x}from"./ThemeToggle.mjs";import f from"./NexusLogo.mjs";import{ActionBarTitle as a}from"./Typography.mjs";import{useRef as h,useState as u,useEffect as m}from"react";const p=({title:p,extraLeft:g,extraRight:w,homeHref:y,showHome:v=!0,logo:j})=>{const C=j??e(f,{}),I=i(),b=r(I.breakpoints.up("lg")),B=h(null),[R,k]=u(49),z=h(null),E=h(null),M=h(null),A=h(null),L=h(null),S=h(null),[H,T]=u(null),[$,D]=u(null);return m(()=>{const e=B.current;if(!e)return;const n=()=>k(e.getBoundingClientRect().height);n();const t=window.ResizeObserver;if(!t)return;const i=new t(n);return i.observe(e),()=>i.disconnect()},[]),m(()=>{if(!b)return T(null),void D(null);function e(){const e=E.current,n=M.current,t=z.current,i=A.current,r=L.current,l=S.current;if(!e||!n||!t)return;const o=e.getBoundingClientRect(),s=n.getBoundingClientRect(),c=t.getBoundingClientRect();if(i){const e=i.getBoundingClientRect().width||0,n=(o.right+s.left)/2,t=o.right+e/2+8,r=s.left-e/2-8,l=Math.min(Math.max(n,t),r);T(l-c.left)}else T(null);if(r&&l){const e=r.getBoundingClientRect().width||0,n=l.getBoundingClientRect(),t=(s.right+n.left)/2,i=s.right+e/2+8,o=n.left-e/2-8,d=Math.min(Math.max(t,i),o);D(d-c.left)}else D(null)}e(),window.addEventListener("resize",e);let n=null;const t=window.ResizeObserver;return t&&(n=new t(e),z.current&&n.observe(z.current)),()=>{window.removeEventListener("resize",e),n&&n.disconnect()}},[b,g,w]),n(t,{children:[e(l,{position:"sticky",component:"header",color:"inherit",elevation:0,ref:B,sx:{zIndex:{xs:I.zIndex.appBar,sm:I.zIndex.drawer+1},[I.breakpoints.up("sm")]:{position:"fixed"}},children:n(o,{variant:"dense",sx:{display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:{lg:"center"},py:{xs:.5,lg:0}},children:[n(c,{sx:{display:{xs:"flex",sm:"none"},width:"100%"},spacing:.25,children:[n(c,{direction:"row",sx:{justifyContent:"flex-end","& .MuiIconButton-root":{padding:"4px"},"& svg":{fontSize:"1.1rem"}},children:[v&&e(d,{href:y}),e(x,{})]}),e(a,{sx:{textAlign:"center",fontSize:"1.1rem"},children:p})]}),(g||w)&&n(c,{direction:"row",sx:{display:{xs:"flex",sm:"none"},justifyContent:"center",alignItems:"center",gap:1,width:"100%",mt:1},children:[g,w]}),n(c,{sx:{display:{xs:"none",sm:"flex",lg:"none"},width:"100%"},spacing:.5,children:[n(c,{direction:"row",sx:{alignItems:"center",width:"100%"},children:[e(s,{sx:{flex:1,display:"flex",alignItems:"center"},children:e(s,{sx:{height:"38px",pt:.5},children:C})}),e(a,{children:p}),n(c,{direction:"row",sx:{flex:1,justifyContent:"flex-end",alignItems:"center",gap:1},children:[v&&e(d,{href:y}),e(x,{})]})]}),(g||w)&&n(c,{direction:"row",sx:{justifyContent:"center",alignItems:"center",gap:2,pb:.5},children:[g&&e(s,{children:g}),w&&e(s,{children:w})]})]}),e(s,{sx:{display:{xs:"none",lg:"block"},width:"100%"},children:n(s,{sx:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",position:"relative"},ref:z,children:[e(s,{sx:{display:"flex",alignItems:"center",flex:1,justifyContent:"flex-start"},children:e(s,{sx:{height:"38px",pt:.5},ref:E,children:C})}),e(s,{sx:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:0,right:0,pointerEvents:"none"},children:e(s,{sx:{pointerEvents:"auto",textAlign:"center"},children:e(s,{ref:M,children:e(a,{children:p})})})}),e(s,{sx:{display:g?"block":"none",position:"absolute",left:null!=H?`${H}px`:void 0,transform:"translateX(-50%)",pointerEvents:"auto",textAlign:"center"},children:e(s,{ref:A,children:g})}),e(s,{sx:{display:w?"block":"none",position:"absolute",left:null!=$?`${$}px`:void 0,transform:"translateX(-50%)",pointerEvents:"auto",textAlign:"center"},children:e(s,{ref:L,children:w})}),e(s,{sx:{display:"flex",alignItems:"center",flex:1,justifyContent:"flex-end"},children:n(s,{sx:{flex:"0 0 auto",display:"flex",alignItems:"center",gap:1},ref:S,children:[v&&e(d,{href:y}),e(x,{})]})})]})})]})}),e(s,{sx:{display:{xs:"none",sm:"block"},height:`${R}px`,flexShrink:0}})]})};export{p as ActionBar};
1
+ import{jsx as e,jsxs as n,Fragment as t}from"react/jsx-runtime";import{useTheme as i,useMediaQuery as r,AppBar as l,Toolbar as o}from"@mui/material";import{Box as s}from"./_Primitives/Box.mjs";import{Stack as c}from"./_Primitives/Stack.mjs";import{NexusHome as d}from"./Logo/NexusHome.mjs";import{ThemeToggle as x}from"./ThemeToggle.mjs";import f from"./Logo/NexusLogo.mjs";import{ActionBarTitle as a}from"./Typography.mjs";import{useRef as h,useState as u,useEffect as m}from"react";const p=({title:p,extraLeft:g,extraRight:w,homeHref:y,showHome:v=!0,logo:j})=>{const C=j??e(f,{}),I=i(),b=r(I.breakpoints.up("lg")),B=h(null),[R,k]=u(49),z=h(null),E=h(null),L=h(null),M=h(null),A=h(null),S=h(null),[H,T]=u(null),[$,D]=u(null);return m(()=>{const e=B.current;if(!e)return;const n=()=>k(e.getBoundingClientRect().height);n();const t=window.ResizeObserver;if(!t)return;const i=new t(n);return i.observe(e),()=>i.disconnect()},[]),m(()=>{if(!b)return T(null),void D(null);function e(){const e=E.current,n=L.current,t=z.current,i=M.current,r=A.current,l=S.current;if(!e||!n||!t)return;const o=e.getBoundingClientRect(),s=n.getBoundingClientRect(),c=t.getBoundingClientRect();if(i){const e=i.getBoundingClientRect().width||0,n=(o.right+s.left)/2,t=o.right+e/2+8,r=s.left-e/2-8,l=Math.min(Math.max(n,t),r);T(l-c.left)}else T(null);if(r&&l){const e=r.getBoundingClientRect().width||0,n=l.getBoundingClientRect(),t=(s.right+n.left)/2,i=s.right+e/2+8,o=n.left-e/2-8,d=Math.min(Math.max(t,i),o);D(d-c.left)}else D(null)}e(),window.addEventListener("resize",e);let n=null;const t=window.ResizeObserver;return t&&(n=new t(e),z.current&&n.observe(z.current)),()=>{window.removeEventListener("resize",e),n&&n.disconnect()}},[b,g,w]),n(t,{children:[e(l,{position:"sticky",component:"header",color:"inherit",elevation:0,ref:B,sx:{zIndex:{xs:I.zIndex.appBar,sm:I.zIndex.drawer+1},[I.breakpoints.up("sm")]:{position:"fixed"}},children:n(o,{variant:"dense",sx:{display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:{lg:"center"},py:{xs:.5,lg:0}},children:[n(c,{sx:{display:{xs:"flex",sm:"none"},width:"100%"},spacing:.25,children:[n(c,{direction:"row",sx:{justifyContent:"flex-end","& .MuiIconButton-root":{padding:"4px"},"& svg":{fontSize:"1.1rem"}},children:[v&&e(d,{href:y}),e(x,{})]}),e(a,{sx:{textAlign:"center",fontSize:"1.1rem"},children:p})]}),(g||w)&&n(c,{direction:"row",sx:{display:{xs:"flex",sm:"none"},justifyContent:"center",alignItems:"center",gap:1,width:"100%",mt:1},children:[g,w]}),n(c,{sx:{display:{xs:"none",sm:"flex",lg:"none"},width:"100%"},spacing:.5,children:[n(c,{direction:"row",sx:{alignItems:"center",width:"100%"},children:[e(s,{sx:{flex:1,display:"flex",alignItems:"center"},children:e(s,{sx:{height:"38px",pt:.5},children:C})}),e(a,{children:p}),n(c,{direction:"row",sx:{flex:1,justifyContent:"flex-end",alignItems:"center",gap:1},children:[v&&e(d,{href:y}),e(x,{})]})]}),(g||w)&&n(c,{direction:"row",sx:{justifyContent:"center",alignItems:"center",gap:2,pb:.5},children:[g&&e(s,{children:g}),w&&e(s,{children:w})]})]}),e(s,{sx:{display:{xs:"none",lg:"block"},width:"100%"},children:n(s,{sx:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",position:"relative"},ref:z,children:[e(s,{sx:{display:"flex",alignItems:"center",flex:1,justifyContent:"flex-start"},children:e(s,{sx:{height:"38px",pt:.5},ref:E,children:C})}),e(s,{sx:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:0,right:0,pointerEvents:"none"},children:e(s,{sx:{pointerEvents:"auto",textAlign:"center"},children:e(s,{ref:L,children:e(a,{children:p})})})}),e(s,{sx:{display:g?"block":"none",position:"absolute",left:null!=H?`${H}px`:void 0,transform:"translateX(-50%)",pointerEvents:"auto",textAlign:"center"},children:e(s,{ref:M,children:g})}),e(s,{sx:{display:w?"block":"none",position:"absolute",left:null!=$?`${$}px`:void 0,transform:"translateX(-50%)",pointerEvents:"auto",textAlign:"center"},children:e(s,{ref:A,children:w})}),e(s,{sx:{display:"flex",alignItems:"center",flex:1,justifyContent:"flex-end"},children:n(s,{sx:{flex:"0 0 auto",display:"flex",alignItems:"center",gap:1},ref:S,children:[v&&e(d,{href:y}),e(x,{})]})})]})})]})}),e(s,{sx:{display:{xs:"none",sm:"block"},height:`${R}px`,flexShrink:0}})]})};export{p as ActionBar};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{Box as t}from"./_Primitives/Box.mjs";import{NexusLogoNode as r}from"./NexusLogoNode.mjs";const s={small:40,large:140},n=({size:t})=>e("svg",{width:t,height:t,viewBox:"42 42 116 116",xmlns:"http://www.w3.org/2000/svg",children:e("g",{transform:"translate(100, 100)",children:e(r,{})})}),i=({variant:r="small"})=>{const i=s[r];return e(t,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"auto"},children:e(t,{sx:{width:i,height:i,"@keyframes snl-spin":{"0%":{transform:"rotate(0deg) scale(1)"},"25%":{transform:"rotate(90deg) scale(1.12)"},"50%":{transform:"rotate(180deg) scale(1)"},"75%":{transform:"rotate(270deg) scale(0.88)"},"100%":{transform:"rotate(360deg) scale(1)"}},animation:"snl-spin 2.4s linear infinite","@media (prefers-reduced-motion: reduce)":{animation:"none"}},children:e(n,{size:i})})})};export{i as LoadingSpinnerNexus};
1
+ import{jsx as e}from"react/jsx-runtime";import{Box as t}from"./_Primitives/Box.mjs";import{NexusLogoNode as r}from"./Logo/NexusLogoNode.mjs";const s={small:40,large:140},n=({size:t})=>e("svg",{width:t,height:t,viewBox:"42 42 116 116",xmlns:"http://www.w3.org/2000/svg",children:e("g",{transform:"translate(100, 100)",children:e(r,{})})}),i=({variant:r="small"})=>{const i=s[r];return e(t,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"auto"},children:e(t,{sx:{width:i,height:i,"@keyframes snl-spin":{"0%":{transform:"rotate(0deg) scale(1)"},"25%":{transform:"rotate(90deg) scale(1.12)"},"50%":{transform:"rotate(180deg) scale(1)"},"75%":{transform:"rotate(270deg) scale(0.88)"},"100%":{transform:"rotate(360deg) scale(1)"}},animation:"snl-spin 2.4s linear infinite","@media (prefers-reduced-motion: reduce)":{animation:"none"}},children:e(n,{size:i})})})};export{i as LoadingSpinnerNexus};
@@ -0,0 +1 @@
1
+ import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useId as e}from"react";import{useTheme as r}from"@mui/material";import{colours as i,fontSageHeadline as s}from"../../../theme/tokens.mjs";import{SagePaths as l,SAGE_ASPECT as f}from"./SageLogo.mjs";const p={sm:24,md:32,lg:40},a=[0,60,120,180,240,300],c=({size:c="md"})=>{const n="dark"===r().palette.mode,d=e(),m=p[c],h=m/34,y=(m-m)/2,g=.32*m,u=m*f+g,x=m/100,$=u+1.2+g,C=$+m/2,O=m/2,w=.65*m,b=$+1.3*m,S=m/2+.35*w,G=b+3.4*w+2,v=`${d}-cg`,N=`${d}-ng`,k=`${d}-glow`,B=`${d}-sh`,j=n?i.white:i.black,z=n?i.white:i.black;return t("svg",{width:G,height:m,viewBox:`0 0 ${G} ${m}`,xmlns:"http://www.w3.org/2000/svg",overflow:"visible","aria-label":"Nexus logo option 1",role:"img",children:[t("defs",{children:[t("radialGradient",{id:v,cx:"35%",cy:"35%",r:"65%",children:[o("stop",{offset:"0%",stopColor:"#08e808",stopOpacity:"1"}),o("stop",{offset:"80%",stopColor:"#05D505",stopOpacity:"1"}),o("stop",{offset:"100%",stopColor:"#04c004",stopOpacity:"1"})]}),t("radialGradient",{id:N,cx:"35%",cy:"35%",r:"65%",children:[o("stop",{offset:"0%",stopColor:"#08e808",stopOpacity:"1"}),o("stop",{offset:"80%",stopColor:"#05D505",stopOpacity:"1"}),o("stop",{offset:"100%",stopColor:"#04c004",stopOpacity:"1"})]}),t("filter",{id:k,children:[o("feGaussianBlur",{stdDeviation:"1",result:"coloredBlur"}),t("feMerge",{children:[o("feMergeNode",{in:"coloredBlur"}),o("feMergeNode",{in:"SourceGraphic"})]})]}),t("linearGradient",{id:B,gradientUnits:"userSpaceOnUse",x1:"0",y1:m,x2:G,y2:"0",children:[o("stop",{offset:"0%",stopColor:i.brilliantGreen,stopOpacity:"0"}),o("stop",{offset:"40%",stopColor:i.brilliantGreen,stopOpacity:"0"}),o("stop",{offset:"45%",stopColor:i.cyan,stopOpacity:"0.7"}),o("stop",{offset:"48%",stopColor:"#ffffff",stopOpacity:"0.95"}),o("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:"1"}),o("stop",{offset:"52%",stopColor:"#ffffff",stopOpacity:"0.95"}),o("stop",{offset:"55%",stopColor:i.blue,stopOpacity:"0.7"}),o("stop",{offset:"60%",stopColor:i.blue,stopOpacity:"0"}),o("stop",{offset:"100%",stopColor:i.blue,stopOpacity:"0"}),o("animateTransform",{attributeName:"gradientTransform",type:"translate",from:-G+" 0",to:`${G} 0`,dur:"4s",repeatCount:"indefinite"})]})]}),o("g",{transform:`translate(0, ${y}) scale(${h})`,children:o(l,{})}),o("rect",{x:u,y:0,width:1.2,height:m,fill:z,rx:.6}),t("g",{transform:`translate(${C}, ${O}) scale(${x})`,filter:`url(#${k})`,children:[a.map(e=>t("g",{transform:`rotate(${e})`,children:[o("rect",{x:"0",y:"-3",width:"40",height:"6",fill:`url(#${N})`,rx:"3"}),o("circle",{cx:"44",cy:"0",r:"10",fill:`url(#${N})`})]},e)),o("circle",{cx:"0",cy:"0",r:"14",fill:`url(#${v})`})]}),o("text",{x:b,y:S,fontFamily:s,fontSize:w,fill:j,letterSpacing:"0.04em",children:"NEXUS"}),t("text",{x:b,y:S,fontFamily:s,fontSize:w,letterSpacing:"0.04em","aria-hidden":"true",children:[o("tspan",{fill:"none",children:"NE"}),o("tspan",{fill:`url(#${B})`,children:"X"})]})]})};export{c as LogoOption1};
@@ -0,0 +1 @@
1
+ import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useId as e}from"react";import{useTheme as r}from"@mui/material";import{colours as i}from"../../../theme/tokens.mjs";import{NexusLogoNode as s}from"../NexusLogoNode.mjs";import{SagePaths as f,SAGE_ASPECT as l}from"./SageLogo.mjs";const a={sm:24,md:32,lg:40},n=({size:n="md"})=>{const p="dark"===r().palette.mode,m=e(),c=a[n],d=c/34,h=(c-c)/2,g=.32*c,y=c*l+g,u=1*c,x=(c-u)/2,b=c/100,w=y+1.2+g,C=w+c/2,O=c/2,$=.65*c,v=w+1.3*c,S=c/2+.35*$,N=v+3.4*$+2,j=`${m}-sh`,k=p?i.white:i.black,z=p?i.white:i.black;return t("svg",{width:N,height:c,viewBox:`0 0 ${N} ${c}`,xmlns:"http://www.w3.org/2000/svg",overflow:"visible","aria-label":"Nexus logo option 11",role:"img",children:[o("defs",{children:t("linearGradient",{id:j,gradientUnits:"userSpaceOnUse",x1:"0",y1:c,x2:N,y2:"0",children:[o("stop",{offset:"0%",stopColor:i.brilliantGreen,stopOpacity:"0"}),o("stop",{offset:"40%",stopColor:i.brilliantGreen,stopOpacity:"0"}),o("stop",{offset:"45%",stopColor:i.cyan,stopOpacity:"0.7"}),o("stop",{offset:"48%",stopColor:"#ffffff",stopOpacity:"0.95"}),o("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:"1"}),o("stop",{offset:"52%",stopColor:"#ffffff",stopOpacity:"0.95"}),o("stop",{offset:"55%",stopColor:i.blue,stopOpacity:"0.7"}),o("stop",{offset:"60%",stopColor:i.blue,stopOpacity:"0"}),o("stop",{offset:"100%",stopColor:i.blue,stopOpacity:"0"}),o("animateTransform",{attributeName:"gradientTransform",type:"translate",from:-N+" 0",to:`${N} 0`,dur:"4s",repeatCount:"indefinite"})]})}),o("g",{transform:`translate(0, ${h}) scale(${d})`,children:o(f,{})}),o("rect",{x:y,y:x,width:1.2,height:u,fill:z,rx:.6}),o("g",{transform:`translate(${C}, ${O}) scale(${b})`,children:o(s,{})}),o("text",{x:v,y:S,fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"bold",fontSize:$,fill:k,letterSpacing:"0.04em",children:"NEXUS"}),t("text",{x:v,y:S,fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"bold",fontSize:$,letterSpacing:"0.04em","aria-hidden":"true",children:[o("tspan",{fill:"none",children:"NE"}),o("tspan",{fill:`url(#${j})`,children:"X"})]})]})};export{n as LogoOption11};
@@ -0,0 +1 @@
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useId as o}from"react";import{useTheme as i}from"@mui/material";import{colours as r}from"../../../theme/tokens.mjs";import{NexusLogoNode as s}from"../NexusLogoNode.mjs";import{SagePaths as l,SAGE_ASPECT as f}from"./SageLogo.mjs";const a={sm:24,md:32,lg:40},n=({size:n="md",fontFamily:p,fontWeight:m,text:c,letterSpacing:h="0.04em",nodeShimmerMode:d={shimmer:"text"},baselineOffset:g=.35,ariaLabel:y})=>{const x="dark"===i().palette.mode,u=o(),$=a[n],w=$/34,C=($-$)/2,b=.32*$,O=$*f+b,S=$,k=($-S)/2,v=$,W=v/100,j=O+1.2+b,z=j+v/2,F=$/2,G=.65*$,L=j+1.3*v,N=$/2+G*g,T=L+3.4*G+2,U=`${u}-sh`,B=`${u}-nm`,M=x?r.white:r.black,R=x?r.white:r.black,X="text"===d.shimmer,q="fullText"===d.shimmer,A=c.toUpperCase().indexOf("X"),D=A>=0?c.slice(0,A):c,E=A>=0?c[A]:"",H=A>=0?c.slice(A+1):"";return t("svg",{width:T,height:$,viewBox:`0 0 ${T} ${$}`,xmlns:"http://www.w3.org/2000/svg",overflow:"visible","aria-label":y,role:"img",children:[t("defs",{children:[t("linearGradient",{id:U,gradientUnits:"userSpaceOnUse",x1:"0",y1:$,x2:T,y2:"0",children:[e("stop",{offset:"0%",stopColor:r.brilliantGreen,stopOpacity:"0"}),e("stop",{offset:"40%",stopColor:r.brilliantGreen,stopOpacity:"0"}),e("stop",{offset:"45%",stopColor:r.cyan,stopOpacity:"0.7"}),e("stop",{offset:"48%",stopColor:"#ffffff",stopOpacity:"0.95"}),e("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:"1"}),e("stop",{offset:"52%",stopColor:"#ffffff",stopOpacity:"0.95"}),e("stop",{offset:"55%",stopColor:r.blue,stopOpacity:"0.7"}),e("stop",{offset:"60%",stopColor:r.blue,stopOpacity:"0"}),e("stop",{offset:"100%",stopColor:r.blue,stopOpacity:"0"}),e("animateTransform",{attributeName:"gradientTransform",type:"translate",from:-T+" 0",to:`${T} 0`,dur:"4s",repeatCount:"indefinite"})]}),!X&&e("mask",{id:B,children:e("g",{transform:`translate(${z}, ${F}) scale(${W})`,children:e(s,{strokeColor:"white",fillColor:"white",strokeWidth:4.5,centerRadius:12})})})]}),e("g",{transform:`translate(0, ${C}) scale(${w})`,children:e(l,{})}),e("rect",{x:O,y:k,width:1.2,height:S,fill:R,rx:.6}),e("g",{transform:`translate(${z}, ${F}) scale(${W})`,children:e(s,{})}),"node"===d.shimmer&&e("rect",{x:j,y:0,width:v,height:$,fill:`url(#${U})`,mask:`url(#${B})`}),e("text",{x:L,y:N,fontFamily:p,fontWeight:m,fontSize:G,fill:M,letterSpacing:h,children:c}),X&&E&&t("text",{x:L,y:N,fontFamily:p,fontWeight:m,fontSize:G,letterSpacing:h,"aria-hidden":"true",children:[e("tspan",{fill:"none",children:D}),e("tspan",{fill:`url(#${U})`,children:E}),H&&e("tspan",{fill:"none",children:H})]}),q&&e("text",{x:L,y:N,fontFamily:p,fontWeight:m,fontSize:G,letterSpacing:h,fill:`url(#${U})`,"aria-hidden":"true",children:c})]})};export{n as LogoOptionBase};
@@ -0,0 +1 @@
1
+ import{jsx as C,jsxs as l,Fragment as e}from"react/jsx-runtime";import{colours as i}from"../../../theme/tokens.mjs";const r=60/34,t=({height:l=24,className:e,"aria-label":i="Sage"})=>C("svg",{width:l*r,height:l,viewBox:"0 0 60 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-label":i,role:"img",children:C(a,{})}),a=()=>l(e,{children:[C("path",{d:"M6.63047 0C10.3844 0 13.4367 2.59879 13.507 6.21582C13.5422 7.23407 12.8055 7.79637 11.9984 7.79637C11.2266 7.79637 10.5602 7.23485 10.525 6.28621C10.4898 4.24894 8.77109 2.73878 6.59531 2.73878C4.56016 2.73878 3.01719 4.17855 3.01719 6.14544C3.01719 8.2875 4.45547 9.23614 7.4375 10.3248C10.6297 11.4838 13.5422 12.8532 13.5422 16.9269C13.5422 20.4744 10.7703 23.3187 6.91172 23.3187C3.12266 23.3195 0 20.6503 0 17.0333C0 14.7857 1.0875 13.2051 2.13984 13.2051C3.05234 13.2051 3.61328 13.8018 3.61328 14.6097C3.61328 15.312 3.01719 15.6279 3.01719 16.8925C3.01719 19.1402 4.84141 20.5799 6.91172 20.5799C9.08672 20.5799 10.525 19.0698 10.525 17.2437C10.525 14.996 9.08672 14.0482 6.10469 12.9939C2.77187 11.8005 0 10.36 0 6.39179C0 2.80995 2.87656 0 6.63047 0Z",fill:i.brilliantGreen}),C("path",{d:"M21.9414 23.3195C18.1523 23.3195 14.9953 20.264 14.9953 16.4006C14.9953 12.3972 18.1875 9.41211 22.0469 9.41211C26.1867 9.41211 29.0984 12.5028 29.0984 16.7173V21.8445C29.0984 22.7228 28.3969 23.3195 27.5898 23.3195C26.7477 23.3195 26.0461 22.7228 26.0461 21.8445V16.8221C26.0461 14.0474 24.4672 12.1509 21.9766 12.1509C19.7664 12.1509 18.0125 14.0122 18.0125 16.4006C18.0125 18.6131 19.7313 20.5096 21.907 20.5096C22.7141 20.5096 23.0648 20.2992 23.5562 20.2992C24.2227 20.2992 24.9242 20.8607 24.9242 21.6686C24.9234 22.7572 23.625 23.3195 21.9414 23.3195Z",fill:i.brilliantGreen}),C("path",{d:"M37.743 33.785C33.8133 33.785 30.5508 30.9751 30.5508 27.3229C30.5508 26.0935 31.2523 25.532 32.0594 25.532C32.8664 25.532 33.5328 26.0591 33.568 27.0773C33.6031 29.3601 35.4273 31.0455 37.7078 31.0455C40.1289 31.0455 41.707 29.5001 41.707 27.4981C41.707 25.2152 39.9531 24.2674 36.9711 23.3187C33.4977 22.1949 30.5508 20.6495 30.5508 16.3654C30.5508 12.4316 33.568 9.41211 37.4969 9.41211C41.4609 9.41211 44.7242 12.2917 44.7242 16.0847C44.7242 18.4027 43.7773 20.1936 42.4789 20.1936C41.6016 20.1936 41.0055 19.5617 41.0055 18.789C41.0055 17.9812 41.707 17.63 41.707 16.1902C41.707 13.7666 39.8125 12.1517 37.532 12.1517C35.3219 12.1517 33.568 13.8378 33.568 16.0502C33.568 18.5435 35.357 19.5977 38.3039 20.5807C41.707 21.7045 44.7242 23.1091 44.7242 27.2181C44.7242 30.9055 41.8125 33.785 37.743 33.785Z",fill:i.brilliantGreen}),C("path",{d:"M53.3344 23.3195C49.4047 23.3195 46.1773 20.2288 46.1773 16.3662C46.1773 12.5028 49.3 9.41289 53.1586 9.41289C57.0531 9.41289 60 12.1173 60 15.5591C60 16.8933 59.0531 17.7012 57.5094 17.7012H53.475C52.668 17.7012 52.0719 17.1397 52.0719 16.4014C52.0719 15.6991 52.668 15.1368 53.475 15.1368H56.4922C56.7727 15.1368 56.9836 14.996 56.9836 14.7153C56.9836 13.697 55.6852 12.1165 53.2648 12.1165C51.0195 12.1165 49.1953 14.0482 49.1953 16.3662C49.1953 18.7194 51.0547 20.5807 53.3703 20.5807C56.0367 20.5807 56.9141 19.0002 58.0016 19.0002C58.9141 19.0002 59.4047 19.5969 59.4047 20.2648C59.4047 20.8967 58.9836 21.459 57.9313 22.1261C56.8773 22.7924 55.2992 23.3195 53.3344 23.3195Z",fill:i.brilliantGreen})]});export{r as SAGE_ASPECT,t as SageLogoSvg,a as SagePaths};
@@ -0,0 +1 @@
1
+ import{jsxs as r,Fragment as e,jsx as t}from"react/jsx-runtime";import{colours as o}from"../../theme/tokens.mjs";const i=[0,60,120,180,240,300],l=({strokeColor:l=o.brilliantGreen,fillColor:n=o.brilliantGreen,strokeWidth:c=4.5,centerRadius:s=12})=>r(e,{children:[t("g",{stroke:l,strokeWidth:c,strokeLinecap:"round",children:i.map(e=>r("g",{transform:`rotate(${e})`,children:[t("line",{x1:"10",y1:"0",x2:"36",y2:"0"}),t("circle",{cx:"44",cy:"0",r:"10",fill:n,stroke:"none"})]},e))}),t("circle",{cx:"0",cy:"0",r:s,fill:n})]});export{l as NexusLogoNode};
@@ -0,0 +1 @@
1
+ import{jsxs as c,jsx as e}from"react/jsx-runtime";import r from"@mui/material/SvgIcon";const t=({className:t,fontSize:i,titleAccess:o})=>c(r,{className:t,fontSize:i,titleAccess:o,viewBox:"44 44 112 112",children:[[0,60,120,180,240,300].map(r=>c("g",{transform:`rotate(${r} 100 100)`,children:[e("rect",{x:"100",y:"97",width:"40",height:"6",rx:"3"}),e("circle",{cx:"144",cy:"100",r:"10"})]},r)),e("circle",{cx:"100",cy:"100",r:"14"})]});export{t as NexusNodeIcon};
@@ -1 +1 @@
1
- import{jsxs as o,jsx as e,Fragment as t}from"react/jsx-runtime";import{useState as i}from"react";import{useTheme as n,useMediaQuery as r,Popover as s}from"@mui/material";import l from"@mui/icons-material/CloseFullscreen";import a from"@mui/icons-material/GridView";import m from"@mui/icons-material/History";import{AgentChatWindow as p}from"./AgentChatWindow.mjs";import{ChatHistory as c}from"./ChatHistory.mjs";import{Dialog as d}from"../_Primitives/Dialog.mjs";import{Box as h}from"../_Primitives/Box.mjs";import{Stack as C}from"../_Primitives/Stack.mjs";import{IconButton as g}from"../Buttons/IconButton.mjs";import{AiChip as u}from"../AiChip.mjs";import{H1 as f,H2 as v}from"../Typography.mjs";import"@mui/icons-material/Check";import"@mui/icons-material/ContentCopy";import"@mui/icons-material/Download";import"@mui/material/styles";import"../../theme/tokens.mjs";import"./ChatComponents/ChatAvatar.mjs";import{chatWindowMarkdownComponents as x}from"./ChatComponents/MarkdownContent.mjs";import"@mui/icons-material/ExpandMore";import"@mui/icons-material/ExpandLess";import"@mui/icons-material/CheckCircle";import"@mui/icons-material/OpenInNew";import"../Code.mjs";import"@mui/icons-material/ThumbUp";import"@mui/icons-material/ThumbDown";import w from"./ChatComponents/SuggestedPrompts.mjs";import S from"./ChatComponents/MessageList.mjs";function y({open:y,onClose:b,title:j="Ask Nexus",subtitle:A="Ready to help",placeholder:k,suggestedPrompts:I=[],showAiChip:T=!0,isTyping:z,messages:P,streamingText:D,liveTraceEvents:E,showActivity:O=!1,onSend:U,onStop:L,followUpPrompts:N,followUpLabel:B="Suggested follow-ups:",topOffset:M,conversations:_,activeConversationId:F,onSelectConversation:H,onDeleteConversation:W,onNewConversation:X,agents:$,activeAgentId:G,onSelectAgent:R}){const V=n(),q=r(V.breakpoints.down("md")),[J,K]=i(!1),[Q,Y]=i(!1),[Z,oo]=i(null),eo=P.length>0||z,to=void 0!==_,io=M?`calc(100vh - ${M}px)`:"100vh",no=o(C,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[T&&e(u,{}),to&&q&&e(g,{title:"Chat history",size:"small",onClick:()=>K(o=>!o),children:e(m,{sx:{fontSize:18}})}),e(g,{title:"Close full view",size:"small",onClick:b,children:e(l,{sx:{fontSize:16}})})]}),ro=eo?e(S,{messages:P,isTyping:z,streamingText:D,liveTraceEvents:E,showActivity:O,markdownComponents:x}):o(C,{direction:"column",sx:{gap:4,alignItems:"center"},children:[e(f,{children:j}),e(v,{sx:{color:"text.secondary"},children:A})]}),so=!eo&&I.length>0?o(t,{children:[e(g,{title:"Open prompt gallery",ariaLabel:"Open prompt gallery",size:"small",sx:{color:"text.jades"},onClick:o=>oo(o.currentTarget),children:e(a,{sx:{fontSize:18}})}),e(s,{open:Boolean(Z),anchorEl:Z,onClose:()=>oo(null),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:e(h,{sx:{p:2,maxWidth:360},children:e(w,{prompts:I,onSelect:o=>{oo(null),U(o)}})})})]}):void 0;return o(d,{open:y,fullScreen:!0,onClose:b,sx:M?{top:`${M}px`}:void 0,children:[o(h,{sx:{display:"flex",height:io,overflow:"hidden"},children:[to&&e(h,{sx:{display:{xs:"none",md:"flex"},flexShrink:0},children:e(c,{conversations:_,activeConversationId:F??null,onSelectConversation:H??(()=>{}),onDeleteConversation:W,onNewConversation:X,agents:$,activeAgentId:G,onSelectAgent:R,isCollapsed:Q,onToggleCollapse:()=>Y(o=>!o)})}),e(p,{title:j,subtitle:A,showAiChip:!1,headerActions:no,isEmpty:!eo,body:ro,followUpPrompts:N,onSelectFollowUp:U,followUpLabel:B,onSend:U,isStreaming:z,onStop:L,inputPlaceholder:k,inputActions:so})]}),to&&q&&o(t,{children:[J&&e(h,{onClick:()=>K(!1),sx:{position:"absolute",inset:0,zIndex:9,bgcolor:"rgba(0,0,0,0.45)"}}),e(h,{sx:{position:"absolute",top:0,left:0,bottom:0,width:288,zIndex:10,bgcolor:"background.paper",boxShadow:4,display:"flex",flexDirection:"column",overflow:"hidden",transform:J?"translateX(0)":"translateX(-100%)",transition:"transform 0.25s ease"},children:e(c,{conversations:_,activeConversationId:F??null,onSelectConversation:o=>{H?.(o),K(!1)},onDeleteConversation:W,onNewConversation:X?()=>{X(),K(!1)}:void 0,agents:$,activeAgentId:G,onSelectAgent:R,onClose:()=>K(!1)})})]})]})}export{y as NexusChatDialog};
1
+ import{jsxs as o,jsx as e,Fragment as t}from"react/jsx-runtime";import{useState as i}from"react";import{useTheme as n,useMediaQuery as r,Popover as s}from"@mui/material";import l from"@mui/icons-material/CloseFullscreen";import a from"@mui/icons-material/GridView";import m from"@mui/icons-material/History";import{AgentChatWindow as p}from"./AgentChatWindow.mjs";import{ChatHistory as c}from"./ChatHistory.mjs";import{Dialog as d}from"../_Primitives/Dialog.mjs";import{Box as h}from"../_Primitives/Box.mjs";import{Stack as C}from"../_Primitives/Stack.mjs";import{IconButton as g}from"../Buttons/IconButton.mjs";import{AiChip as u}from"../AiChip.mjs";import{H1 as f,H2 as v}from"../Typography.mjs";import"@mui/icons-material/Check";import"@mui/icons-material/ContentCopy";import"@mui/icons-material/Download";import"@mui/material/styles";import"../../theme/tokens.mjs";import"./ChatComponents/ChatAvatar.mjs";import{chatWindowMarkdownComponents as x}from"./ChatComponents/MarkdownContent.mjs";import"@mui/icons-material/ExpandMore";import"@mui/icons-material/ExpandLess";import"@mui/icons-material/CheckCircle";import"@mui/icons-material/OpenInNew";import"../Code.mjs";import"@mui/icons-material/ThumbUp";import"@mui/icons-material/ThumbDown";import w from"./ChatComponents/SuggestedPrompts.mjs";import S from"./ChatComponents/MessageList.mjs";function b({open:b,onClose:y,title:j="Ask Nexus",subtitle:k="Ready to help",placeholder:A,suggestedPrompts:I=[],showAiChip:T=!0,isTyping:z,messages:P,streamingText:D,liveTraceEvents:E,showActivity:O=!1,onSend:U,onStop:L,onFeedback:N,followUpPrompts:B,followUpLabel:F="Suggested follow-ups:",topOffset:M,conversations:_,activeConversationId:H,onSelectConversation:W,onDeleteConversation:X,onNewConversation:$,agents:G,activeAgentId:R,onSelectAgent:V}){const q=n(),J=r(q.breakpoints.down("md")),[K,Q]=i(!1),[Y,Z]=i(!1),[oo,eo]=i(null),to=P.length>0||z,io=void 0!==_,no=M?`calc(100vh - ${M}px)`:"100vh",ro=o(C,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[T&&e(u,{}),io&&J&&e(g,{title:"Chat history",size:"small",onClick:()=>Q(o=>!o),children:e(m,{sx:{fontSize:18}})}),e(g,{title:"Close full view",size:"small",onClick:y,children:e(l,{sx:{fontSize:16}})})]}),so=to?e(S,{messages:P,isTyping:z,streamingText:D,liveTraceEvents:E,showActivity:O,markdownComponents:x,onFeedback:N}):o(C,{direction:"column",sx:{gap:4,alignItems:"center"},children:[e(f,{children:j}),e(v,{sx:{color:"text.secondary"},children:k})]}),lo=!to&&I.length>0?o(t,{children:[e(g,{title:"Open prompt gallery",ariaLabel:"Open prompt gallery",size:"small",sx:{color:"text.jades"},onClick:o=>eo(o.currentTarget),children:e(a,{sx:{fontSize:18}})}),e(s,{open:Boolean(oo),anchorEl:oo,onClose:()=>eo(null),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:e(h,{sx:{p:2,maxWidth:360},children:e(w,{prompts:I,onSelect:o=>{eo(null),U(o)}})})})]}):void 0;return o(d,{open:b,fullScreen:!0,onClose:y,sx:M?{top:`${M}px`}:void 0,children:[o(h,{sx:{display:"flex",height:no,overflow:"hidden"},children:[io&&e(h,{sx:{display:{xs:"none",md:"flex"},flexShrink:0},children:e(c,{conversations:_,activeConversationId:H??null,onSelectConversation:W??(()=>{}),onDeleteConversation:X,onNewConversation:$,agents:G,activeAgentId:R,onSelectAgent:V,isCollapsed:Y,onToggleCollapse:()=>Z(o=>!o)})}),e(p,{title:j,subtitle:k,showAiChip:!1,headerActions:ro,isEmpty:!to,body:so,followUpPrompts:B,onSelectFollowUp:U,followUpLabel:F,onSend:U,isStreaming:z,onStop:L,inputPlaceholder:A,inputActions:lo})]}),io&&J&&o(t,{children:[K&&e(h,{onClick:()=>Q(!1),sx:{position:"absolute",inset:0,zIndex:9,bgcolor:"rgba(0,0,0,0.45)"}}),e(h,{sx:{position:"absolute",top:0,left:0,bottom:0,width:288,zIndex:10,bgcolor:"background.paper",boxShadow:4,display:"flex",flexDirection:"column",overflow:"hidden",transform:K?"translateX(0)":"translateX(-100%)",transition:"transform 0.25s ease"},children:e(c,{conversations:_,activeConversationId:H??null,onSelectConversation:o=>{W?.(o),Q(!1)},onDeleteConversation:X,onNewConversation:$?()=>{$(),Q(!1)}:void 0,agents:G,activeAgentId:R,onSelectAgent:V,onClose:()=>Q(!1)})})]})]})}export{b as NexusChatDialog};
@@ -1 +1 @@
1
- const o="2.5.1";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.5.3";export{o as SAGE_NEXUS_UI_VERSION};
package/dist/index.d.ts CHANGED
@@ -216,6 +216,7 @@ interface NexusChatDialogProps {
216
216
  showActivity?: boolean;
217
217
  onSend: (message: string) => void;
218
218
  onStop?: () => void;
219
+ onFeedback?: (messageId: string, rating: "positive" | "negative", comment?: string) => void;
219
220
  /** Prompt chips shown directly above the input during an active conversation */
220
221
  followUpPrompts?: string[];
221
222
  /** Label shown above the follow-up chips. Defaults to "Suggested follow-ups:" */
@@ -233,7 +234,7 @@ interface NexusChatDialogProps {
233
234
  activeAgentId?: string | null;
234
235
  onSelectAgent?: (id: string) => void;
235
236
  }
236
- declare function NexusChatDialog({ open, onClose, title, subtitle, placeholder, suggestedPrompts, showAiChip, isTyping, messages, streamingText, liveTraceEvents, showActivity, onSend, onStop, followUpPrompts, followUpLabel, topOffset, conversations, activeConversationId, onSelectConversation, onDeleteConversation, onNewConversation, agents, activeAgentId, onSelectAgent, }: NexusChatDialogProps): react.JSX.Element;
237
+ declare function NexusChatDialog({ open, onClose, title, subtitle, placeholder, suggestedPrompts, showAiChip, isTyping, messages, streamingText, liveTraceEvents, showActivity, onSend, onStop, onFeedback, followUpPrompts, followUpLabel, topOffset, conversations, activeConversationId, onSelectConversation, onDeleteConversation, onNewConversation, agents, activeAgentId, onSelectAgent, }: NexusChatDialogProps): react.JSX.Element;
237
238
 
238
239
  interface FABButtonProps {
239
240
  onOpen: () => void;
@@ -991,6 +992,13 @@ type LogoProps = {
991
992
  /** Option 7 — Sage UI Medium weight, NEXUS all-caps, shimmer on whole word */
992
993
  declare const NexusLogo: ({ size }: LogoProps) => react.JSX.Element;
993
994
 
995
+ interface NexusNodeIconProps {
996
+ className?: string;
997
+ fontSize?: "inherit" | "small" | "medium" | "large";
998
+ titleAccess?: string;
999
+ }
1000
+ declare const NexusNodeIcon: ({ className, fontSize, titleAccess, }: NexusNodeIconProps) => react.JSX.Element;
1001
+
994
1002
  interface SageLogoSvgProps {
995
1003
  /** Height in px; width is calculated automatically from the 60×34 aspect ratio. */
996
1004
  height?: number;
@@ -1374,5 +1382,5 @@ declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOp
1374
1382
  declare const leftPipe: SxProps<Theme>;
1375
1383
  declare const expandableText: (isExpanded: boolean) => SxProps<Theme>;
1376
1384
 
1377
- 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, ChatHistoryAgentItem, 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, MetricCard, MetricStat, MetricValue, MuiAppThemeProvider, NexusBarChart, NexusChatDialog, NexusChatWidget, NexusDataGrid, NexusHome, NexusLineChart, NexusLogo, NexusPieChart, NexusScatterChart, NexusiFrame, Paper, PaperAsync, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SageLogoSvg, SearchInput, SecondaryButton, SecondaryButtonLink, SegmentedControl, Select, SelectableList, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, SourceCitations, Span, Stack, StatusBadge, StatusChip, StreamingBubble, SuggestedPrompts, Switch, Tab, Table, TableBody, TableCell, TableHead, TableRow, 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, ragColorForDelta, useThemeMode, useTokens };
1378
- export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivitySummary, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, BreadcrumbItem, BreadcrumbsProps, CardProps, CardTrend, ChartAsyncProps, ChatAvatarProps, ChatHistoryAgent, ChatHistoryAgentItemProps, 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, MetricCardProps, MetricStatProps, MetricValueSize, ModeTokens, NexusBarChartProps, NexusChatDialogProps, NexusChatWidgetProps, NexusLineChartProps, NexusPieChartProps, NexusScatterChartProps, NexusiFrameProps, PaperAsyncProps, ParsedActivity, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectProps, SelectableListItem, SelectableListProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, SourceCitationsProps, StatusBadgeProps, StatusBadgeVariant, StreamingBubbleProps, SuggestedPromptsProps, ThemeMode, TooltipProps, TraceEvent, TypingIndicatorProps };
1385
+ 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, ChatHistoryAgentItem, 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, MetricCard, MetricStat, MetricValue, MuiAppThemeProvider, NexusBarChart, NexusChatDialog, NexusChatWidget, NexusDataGrid, NexusHome, NexusLineChart, NexusLogo, NexusNodeIcon, NexusPieChart, NexusScatterChart, NexusiFrame, Paper, PaperAsync, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SageLogoSvg, SearchInput, SecondaryButton, SecondaryButtonLink, SegmentedControl, Select, SelectableList, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, SourceCitations, Span, Stack, StatusBadge, StatusChip, StreamingBubble, SuggestedPrompts, Switch, Tab, Table, TableBody, TableCell, TableHead, TableRow, 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, ragColorForDelta, useThemeMode, useTokens };
1386
+ export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivitySummary, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, BreadcrumbItem, BreadcrumbsProps, CardProps, CardTrend, ChartAsyncProps, ChatAvatarProps, ChatHistoryAgent, ChatHistoryAgentItemProps, 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, MetricCardProps, MetricStatProps, MetricValueSize, ModeTokens, NexusBarChartProps, NexusChatDialogProps, NexusChatWidgetProps, NexusLineChartProps, NexusNodeIconProps, NexusPieChartProps, NexusScatterChartProps, NexusiFrameProps, PaperAsyncProps, ParsedActivity, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectProps, SelectableListItem, SelectableListProps, 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{ChatHistoryAgentItem}from"./components/NexusChat/ChatHistoryAgentItem.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{MetricCard}from"./components/MetricCard.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{SelectableList}from"./components/Buttons/SelectableList.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/_Primitives/Dialog.mjs";export{Divider}from"./components/_Primitives/Divider.mjs";export{Table,TableBody,TableCell,TableHead,TableRow}from"./components/_Primitives/Table.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{SageLogoSvg}from"./components/LogoOptions/SageLogo.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{ragColorForDelta}from"./components/ragColorForDelta.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{NexusiFrame}from"./components/NexusiFrame.mjs";export{NexusLineChart}from"./components/Charts/NexusLineChart.mjs";export{NexusBarChart}from"./components/Charts/NexusBarChart.mjs";export{NexusPieChart}from"./components/Charts/NexusPieChart.mjs";export{NexusScatterChart}from"./components/Charts/NexusScatterChart.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";export{ChartsReferenceLine}from"./node_modules/@mui/x-charts/ChartsReferenceLine/ChartsReferenceLine.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{ChatHistoryAgentItem}from"./components/NexusChat/ChatHistoryAgentItem.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{MetricCard}from"./components/MetricCard.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{SelectableList}from"./components/Buttons/SelectableList.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/_Primitives/Dialog.mjs";export{Divider}from"./components/_Primitives/Divider.mjs";export{Table,TableBody,TableCell,TableHead,TableRow}from"./components/_Primitives/Table.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/Logo/LogoOptions/index.mjs";export{NexusHome}from"./components/Logo/NexusHome.mjs";export{default as NexusLogo}from"./components/Logo/NexusLogo.mjs";export{NexusNodeIcon}from"./components/Logo/NexusNodeIcon.mjs";export{SageLogoSvg}from"./components/Logo/LogoOptions/SageLogo.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{ragColorForDelta}from"./components/ragColorForDelta.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{NexusiFrame}from"./components/NexusiFrame.mjs";export{NexusLineChart}from"./components/Charts/NexusLineChart.mjs";export{NexusBarChart}from"./components/Charts/NexusBarChart.mjs";export{NexusPieChart}from"./components/Charts/NexusPieChart.mjs";export{NexusScatterChart}from"./components/Charts/NexusScatterChart.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";export{ChartsReferenceLine}from"./node_modules/@mui/x-charts/ChartsReferenceLine/ChartsReferenceLine.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "it-data-nexus-ui-library",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",
@@ -1 +0,0 @@
1
- import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useId as e}from"react";import{useTheme as r}from"@mui/material";import{colours as i,fontSageHeadline as s}from"../../theme/tokens.mjs";import{SagePaths as l,SAGE_ASPECT as f}from"./SageLogo.mjs";const p={sm:24,md:32,lg:40},a=[0,60,120,180,240,300],c=({size:c="md"})=>{const n="dark"===r().palette.mode,d=e(),m=p[c],h=m/34,y=(m-m)/2,g=.32*m,u=m*f+g,x=m/100,$=u+1.2+g,C=$+m/2,O=m/2,w=.65*m,b=$+1.3*m,S=m/2+.35*w,G=b+3.4*w+2,v=`${d}-cg`,N=`${d}-ng`,k=`${d}-glow`,B=`${d}-sh`,j=n?i.white:i.black,z=n?i.white:i.black;return t("svg",{width:G,height:m,viewBox:`0 0 ${G} ${m}`,xmlns:"http://www.w3.org/2000/svg",overflow:"visible","aria-label":"Nexus logo option 1",role:"img",children:[t("defs",{children:[t("radialGradient",{id:v,cx:"35%",cy:"35%",r:"65%",children:[o("stop",{offset:"0%",stopColor:"#08e808",stopOpacity:"1"}),o("stop",{offset:"80%",stopColor:"#05D505",stopOpacity:"1"}),o("stop",{offset:"100%",stopColor:"#04c004",stopOpacity:"1"})]}),t("radialGradient",{id:N,cx:"35%",cy:"35%",r:"65%",children:[o("stop",{offset:"0%",stopColor:"#08e808",stopOpacity:"1"}),o("stop",{offset:"80%",stopColor:"#05D505",stopOpacity:"1"}),o("stop",{offset:"100%",stopColor:"#04c004",stopOpacity:"1"})]}),t("filter",{id:k,children:[o("feGaussianBlur",{stdDeviation:"1",result:"coloredBlur"}),t("feMerge",{children:[o("feMergeNode",{in:"coloredBlur"}),o("feMergeNode",{in:"SourceGraphic"})]})]}),t("linearGradient",{id:B,gradientUnits:"userSpaceOnUse",x1:"0",y1:m,x2:G,y2:"0",children:[o("stop",{offset:"0%",stopColor:i.brilliantGreen,stopOpacity:"0"}),o("stop",{offset:"40%",stopColor:i.brilliantGreen,stopOpacity:"0"}),o("stop",{offset:"45%",stopColor:i.cyan,stopOpacity:"0.7"}),o("stop",{offset:"48%",stopColor:"#ffffff",stopOpacity:"0.95"}),o("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:"1"}),o("stop",{offset:"52%",stopColor:"#ffffff",stopOpacity:"0.95"}),o("stop",{offset:"55%",stopColor:i.blue,stopOpacity:"0.7"}),o("stop",{offset:"60%",stopColor:i.blue,stopOpacity:"0"}),o("stop",{offset:"100%",stopColor:i.blue,stopOpacity:"0"}),o("animateTransform",{attributeName:"gradientTransform",type:"translate",from:-G+" 0",to:`${G} 0`,dur:"4s",repeatCount:"indefinite"})]})]}),o("g",{transform:`translate(0, ${y}) scale(${h})`,children:o(l,{})}),o("rect",{x:u,y:0,width:1.2,height:m,fill:z,rx:.6}),t("g",{transform:`translate(${C}, ${O}) scale(${x})`,filter:`url(#${k})`,children:[a.map(e=>t("g",{transform:`rotate(${e})`,children:[o("rect",{x:"0",y:"-3",width:"40",height:"6",fill:`url(#${N})`,rx:"3"}),o("circle",{cx:"44",cy:"0",r:"10",fill:`url(#${N})`})]},e)),o("circle",{cx:"0",cy:"0",r:"14",fill:`url(#${v})`})]}),o("text",{x:b,y:S,fontFamily:s,fontSize:w,fill:j,letterSpacing:"0.04em",children:"NEXUS"}),t("text",{x:b,y:S,fontFamily:s,fontSize:w,letterSpacing:"0.04em","aria-hidden":"true",children:[o("tspan",{fill:"none",children:"NE"}),o("tspan",{fill:`url(#${B})`,children:"X"})]})]})};export{c as LogoOption1};
@@ -1 +0,0 @@
1
- import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useId as e}from"react";import{useTheme as r}from"@mui/material";import{colours as i}from"../../theme/tokens.mjs";import{NexusLogoNode as s}from"../NexusLogoNode.mjs";import{SagePaths as f,SAGE_ASPECT as l}from"./SageLogo.mjs";const a={sm:24,md:32,lg:40},n=({size:n="md"})=>{const p="dark"===r().palette.mode,m=e(),c=a[n],d=c/34,h=(c-c)/2,g=.32*c,y=c*l+g,u=1*c,x=(c-u)/2,b=c/100,w=y+1.2+g,C=w+c/2,O=c/2,$=.65*c,v=w+1.3*c,S=c/2+.35*$,N=v+3.4*$+2,j=`${m}-sh`,k=p?i.white:i.black,z=p?i.white:i.black;return t("svg",{width:N,height:c,viewBox:`0 0 ${N} ${c}`,xmlns:"http://www.w3.org/2000/svg",overflow:"visible","aria-label":"Nexus logo option 11",role:"img",children:[o("defs",{children:t("linearGradient",{id:j,gradientUnits:"userSpaceOnUse",x1:"0",y1:c,x2:N,y2:"0",children:[o("stop",{offset:"0%",stopColor:i.brilliantGreen,stopOpacity:"0"}),o("stop",{offset:"40%",stopColor:i.brilliantGreen,stopOpacity:"0"}),o("stop",{offset:"45%",stopColor:i.cyan,stopOpacity:"0.7"}),o("stop",{offset:"48%",stopColor:"#ffffff",stopOpacity:"0.95"}),o("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:"1"}),o("stop",{offset:"52%",stopColor:"#ffffff",stopOpacity:"0.95"}),o("stop",{offset:"55%",stopColor:i.blue,stopOpacity:"0.7"}),o("stop",{offset:"60%",stopColor:i.blue,stopOpacity:"0"}),o("stop",{offset:"100%",stopColor:i.blue,stopOpacity:"0"}),o("animateTransform",{attributeName:"gradientTransform",type:"translate",from:-N+" 0",to:`${N} 0`,dur:"4s",repeatCount:"indefinite"})]})}),o("g",{transform:`translate(0, ${h}) scale(${d})`,children:o(f,{})}),o("rect",{x:y,y:x,width:1.2,height:u,fill:z,rx:.6}),o("g",{transform:`translate(${C}, ${O}) scale(${b})`,children:o(s,{})}),o("text",{x:v,y:S,fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"bold",fontSize:$,fill:k,letterSpacing:"0.04em",children:"NEXUS"}),t("text",{x:v,y:S,fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"bold",fontSize:$,letterSpacing:"0.04em","aria-hidden":"true",children:[o("tspan",{fill:"none",children:"NE"}),o("tspan",{fill:`url(#${j})`,children:"X"})]})]})};export{n as LogoOption11};
@@ -1 +0,0 @@
1
- import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useId as o}from"react";import{useTheme as i}from"@mui/material";import{colours as r}from"../../theme/tokens.mjs";import{NexusLogoNode as s}from"../NexusLogoNode.mjs";import{SagePaths as l,SAGE_ASPECT as f}from"./SageLogo.mjs";const a={sm:24,md:32,lg:40},n=({size:n="md",fontFamily:p,fontWeight:m,text:c,letterSpacing:h="0.04em",nodeShimmerMode:d={shimmer:"text"},baselineOffset:g=.35,ariaLabel:y})=>{const x="dark"===i().palette.mode,u=o(),$=a[n],w=$/34,C=($-$)/2,b=.32*$,O=$*f+b,S=$,k=($-S)/2,v=$,W=v/100,j=O+1.2+b,z=j+v/2,F=$/2,G=.65*$,L=j+1.3*v,N=$/2+G*g,T=L+3.4*G+2,U=`${u}-sh`,B=`${u}-nm`,M=x?r.white:r.black,R=x?r.white:r.black,X="text"===d.shimmer,q="fullText"===d.shimmer,A=c.toUpperCase().indexOf("X"),D=A>=0?c.slice(0,A):c,E=A>=0?c[A]:"",H=A>=0?c.slice(A+1):"";return t("svg",{width:T,height:$,viewBox:`0 0 ${T} ${$}`,xmlns:"http://www.w3.org/2000/svg",overflow:"visible","aria-label":y,role:"img",children:[t("defs",{children:[t("linearGradient",{id:U,gradientUnits:"userSpaceOnUse",x1:"0",y1:$,x2:T,y2:"0",children:[e("stop",{offset:"0%",stopColor:r.brilliantGreen,stopOpacity:"0"}),e("stop",{offset:"40%",stopColor:r.brilliantGreen,stopOpacity:"0"}),e("stop",{offset:"45%",stopColor:r.cyan,stopOpacity:"0.7"}),e("stop",{offset:"48%",stopColor:"#ffffff",stopOpacity:"0.95"}),e("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:"1"}),e("stop",{offset:"52%",stopColor:"#ffffff",stopOpacity:"0.95"}),e("stop",{offset:"55%",stopColor:r.blue,stopOpacity:"0.7"}),e("stop",{offset:"60%",stopColor:r.blue,stopOpacity:"0"}),e("stop",{offset:"100%",stopColor:r.blue,stopOpacity:"0"}),e("animateTransform",{attributeName:"gradientTransform",type:"translate",from:-T+" 0",to:`${T} 0`,dur:"4s",repeatCount:"indefinite"})]}),!X&&e("mask",{id:B,children:e("g",{transform:`translate(${z}, ${F}) scale(${W})`,children:e(s,{strokeColor:"white",fillColor:"white",strokeWidth:4.5,centerRadius:12})})})]}),e("g",{transform:`translate(0, ${C}) scale(${w})`,children:e(l,{})}),e("rect",{x:O,y:k,width:1.2,height:S,fill:R,rx:.6}),e("g",{transform:`translate(${z}, ${F}) scale(${W})`,children:e(s,{})}),"node"===d.shimmer&&e("rect",{x:j,y:0,width:v,height:$,fill:`url(#${U})`,mask:`url(#${B})`}),e("text",{x:L,y:N,fontFamily:p,fontWeight:m,fontSize:G,fill:M,letterSpacing:h,children:c}),X&&E&&t("text",{x:L,y:N,fontFamily:p,fontWeight:m,fontSize:G,letterSpacing:h,"aria-hidden":"true",children:[e("tspan",{fill:"none",children:D}),e("tspan",{fill:`url(#${U})`,children:E}),H&&e("tspan",{fill:"none",children:H})]}),q&&e("text",{x:L,y:N,fontFamily:p,fontWeight:m,fontSize:G,letterSpacing:h,fill:`url(#${U})`,"aria-hidden":"true",children:c})]})};export{n as LogoOptionBase};
@@ -1 +0,0 @@
1
- import{jsx as C,jsxs as l,Fragment as e}from"react/jsx-runtime";import{colours as i}from"../../theme/tokens.mjs";const r=60/34,t=({height:l=24,className:e,"aria-label":i="Sage"})=>C("svg",{width:l*r,height:l,viewBox:"0 0 60 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-label":i,role:"img",children:C(a,{})}),a=()=>l(e,{children:[C("path",{d:"M6.63047 0C10.3844 0 13.4367 2.59879 13.507 6.21582C13.5422 7.23407 12.8055 7.79637 11.9984 7.79637C11.2266 7.79637 10.5602 7.23485 10.525 6.28621C10.4898 4.24894 8.77109 2.73878 6.59531 2.73878C4.56016 2.73878 3.01719 4.17855 3.01719 6.14544C3.01719 8.2875 4.45547 9.23614 7.4375 10.3248C10.6297 11.4838 13.5422 12.8532 13.5422 16.9269C13.5422 20.4744 10.7703 23.3187 6.91172 23.3187C3.12266 23.3195 0 20.6503 0 17.0333C0 14.7857 1.0875 13.2051 2.13984 13.2051C3.05234 13.2051 3.61328 13.8018 3.61328 14.6097C3.61328 15.312 3.01719 15.6279 3.01719 16.8925C3.01719 19.1402 4.84141 20.5799 6.91172 20.5799C9.08672 20.5799 10.525 19.0698 10.525 17.2437C10.525 14.996 9.08672 14.0482 6.10469 12.9939C2.77187 11.8005 0 10.36 0 6.39179C0 2.80995 2.87656 0 6.63047 0Z",fill:i.brilliantGreen}),C("path",{d:"M21.9414 23.3195C18.1523 23.3195 14.9953 20.264 14.9953 16.4006C14.9953 12.3972 18.1875 9.41211 22.0469 9.41211C26.1867 9.41211 29.0984 12.5028 29.0984 16.7173V21.8445C29.0984 22.7228 28.3969 23.3195 27.5898 23.3195C26.7477 23.3195 26.0461 22.7228 26.0461 21.8445V16.8221C26.0461 14.0474 24.4672 12.1509 21.9766 12.1509C19.7664 12.1509 18.0125 14.0122 18.0125 16.4006C18.0125 18.6131 19.7313 20.5096 21.907 20.5096C22.7141 20.5096 23.0648 20.2992 23.5562 20.2992C24.2227 20.2992 24.9242 20.8607 24.9242 21.6686C24.9234 22.7572 23.625 23.3195 21.9414 23.3195Z",fill:i.brilliantGreen}),C("path",{d:"M37.743 33.785C33.8133 33.785 30.5508 30.9751 30.5508 27.3229C30.5508 26.0935 31.2523 25.532 32.0594 25.532C32.8664 25.532 33.5328 26.0591 33.568 27.0773C33.6031 29.3601 35.4273 31.0455 37.7078 31.0455C40.1289 31.0455 41.707 29.5001 41.707 27.4981C41.707 25.2152 39.9531 24.2674 36.9711 23.3187C33.4977 22.1949 30.5508 20.6495 30.5508 16.3654C30.5508 12.4316 33.568 9.41211 37.4969 9.41211C41.4609 9.41211 44.7242 12.2917 44.7242 16.0847C44.7242 18.4027 43.7773 20.1936 42.4789 20.1936C41.6016 20.1936 41.0055 19.5617 41.0055 18.789C41.0055 17.9812 41.707 17.63 41.707 16.1902C41.707 13.7666 39.8125 12.1517 37.532 12.1517C35.3219 12.1517 33.568 13.8378 33.568 16.0502C33.568 18.5435 35.357 19.5977 38.3039 20.5807C41.707 21.7045 44.7242 23.1091 44.7242 27.2181C44.7242 30.9055 41.8125 33.785 37.743 33.785Z",fill:i.brilliantGreen}),C("path",{d:"M53.3344 23.3195C49.4047 23.3195 46.1773 20.2288 46.1773 16.3662C46.1773 12.5028 49.3 9.41289 53.1586 9.41289C57.0531 9.41289 60 12.1173 60 15.5591C60 16.8933 59.0531 17.7012 57.5094 17.7012H53.475C52.668 17.7012 52.0719 17.1397 52.0719 16.4014C52.0719 15.6991 52.668 15.1368 53.475 15.1368H56.4922C56.7727 15.1368 56.9836 14.996 56.9836 14.7153C56.9836 13.697 55.6852 12.1165 53.2648 12.1165C51.0195 12.1165 49.1953 14.0482 49.1953 16.3662C49.1953 18.7194 51.0547 20.5807 53.3703 20.5807C56.0367 20.5807 56.9141 19.0002 58.0016 19.0002C58.9141 19.0002 59.4047 19.5969 59.4047 20.2648C59.4047 20.8967 58.9836 21.459 57.9313 22.1261C56.8773 22.7924 55.2992 23.3195 53.3344 23.3195Z",fill:i.brilliantGreen})]});export{r as SAGE_ASPECT,t as SageLogoSvg,a as SagePaths};
@@ -1 +0,0 @@
1
- import{jsxs as r,Fragment as e,jsx as t}from"react/jsx-runtime";import{colours as o}from"../theme/tokens.mjs";const i=[0,60,120,180,240,300],l=({strokeColor:l=o.brilliantGreen,fillColor:n=o.brilliantGreen,strokeWidth:c=4.5,centerRadius:s=12})=>r(e,{children:[t("g",{stroke:l,strokeWidth:c,strokeLinecap:"round",children:i.map(e=>r("g",{transform:`rotate(${e})`,children:[t("line",{x1:"10",y1:"0",x2:"36",y2:"0"}),t("circle",{cx:"44",cy:"0",r:"10",fill:n,stroke:"none"})]},e))}),t("circle",{cx:"0",cy:"0",r:s,fill:n})]});export{l as NexusLogoNode};