it-data-nexus-ui-library 2.8.5 → 2.9.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.
@@ -1 +1 @@
1
- import{jsx as o,jsxs as t}from"react/jsx-runtime";import{useId as r}from"react";import{useTheme as e,alpha as i}from"@mui/material/styles";import{getChartColours as s}from"../Theme/chartColours.mjs";import{ChartFrame as p}from"./chartFrame.mjs";import{BarChart as l}from"../../node_modules/@mui/x-charts/BarChart/BarChart.mjs";function a({slotProps:a,slots:n,title:d,titleComponent:m,titleHidden:c,description:f,actions:h,isLoading:x,isError:u,errorMessage:y,paperSx:C,gradientColors:g,...j}){const z=e(),O=g??s(z.palette.mode),$=r().replace(/:/g,""),b="horizontal"===j.layout,B=O.map((o,t)=>({id:`${$}bg${t}`,color:o}));return o(p,{title:d,titleComponent:m,titleHidden:c,description:f,actions:h,isLoading:x,isError:u,errorMessage:y,paperSx:C,children:o(l,{colors:B.map(({id:o})=>`url(#${o})`),...j,grid:{vertical:!0,horizontal:!0},slots:n,slotProps:{...a,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...a?.tooltip}},children:o("defs",{children:B.map(({id:r,color:e})=>t("linearGradient",b?{id:r,x1:"0",y1:"0",x2:"1",y2:"0",children:[o("stop",{offset:"0%",stopColor:i(e,.15)}),o("stop",{offset:"100%",stopColor:e,stopOpacity:1})]}:{id:r,x1:"0",y1:"0",x2:"0",y2:"1",children:[o("stop",{offset:"0%",stopColor:e,stopOpacity:1}),o("stop",{offset:"100%",stopColor:i(e,.15)})]},r))})})})}export{a as NexusBarChart};
1
+ import{jsx as o,jsxs as t}from"react/jsx-runtime";import{useId as r}from"react";import{useTheme as e,alpha as i}from"@mui/material/styles";import{getChartColours as s}from"../Theme/chartColours.mjs";import{ChartFrame as p}from"./chartFrame.mjs";import{BarChart as l}from"../../node_modules/@mui/x-charts/BarChart/BarChart.mjs";function a({slotProps:a,slots:n,title:d,titleComponent:m,titleSx:c,titleHidden:f,description:x,actions:h,isLoading:u,isError:y,errorMessage:C,paperSx:g,gradientColors:j,...S}){const z=e(),O=j??s(z.palette.mode),$=r().replace(/:/g,""),b="horizontal"===S.layout,B=O.map((o,t)=>({id:`${$}bg${t}`,color:o}));return o(p,{title:d,titleComponent:m,titleSx:c,titleHidden:f,description:x,actions:h,isLoading:u,isError:y,errorMessage:C,paperSx:g,children:o(l,{colors:B.map(({id:o})=>`url(#${o})`),...S,grid:{vertical:!0,horizontal:!0},slots:n,slotProps:{...a,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...a?.tooltip}},children:o("defs",{children:B.map(({id:r,color:e})=>t("linearGradient",b?{id:r,x1:"0",y1:"0",x2:"1",y2:"0",children:[o("stop",{offset:"0%",stopColor:i(e,.15)}),o("stop",{offset:"100%",stopColor:e,stopOpacity:1})]}:{id:r,x1:"0",y1:"0",x2:"0",y2:"1",children:[o("stop",{offset:"0%",stopColor:e,stopOpacity:1}),o("stop",{offset:"100%",stopColor:i(e,.15)})]},r))})})})}export{a as NexusBarChart};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Caption as i,Body2 as o}from"../Typography.mjs";import{Stack as l}from"../_Primitives/Stack.mjs";import{ChartFrame as t}from"./chartFrame.mjs";function a({rows:a,columns:n,cells:s,statusMap:d,sx:c,title:m,titleComponent:p,titleHidden:x,description:b,actions:h,isLoading:g,isError:u,errorMessage:f,paperSx:$}){const w=new Map(s.map(e=>[`${e.rowId}:${e.columnId}`,e]));return e(t,{title:m,titleComponent:p,titleHidden:x,description:b,actions:h,isLoading:g,isError:u,errorMessage:f,paperSx:$,children:r(l,{sx:[{gap:.5},...Array.isArray(c)?c:c?[c]:[]],role:"table","aria-label":m??"Heatmap",children:[r(l,{direction:"row",role:"row",sx:{gap:.5},children:[e(l,{sx:{flex:"0 0 120px"}}),n.map(r=>e(l,{role:"columnheader",sx:{flex:1,alignItems:"center",minWidth:0},children:e(i,{sx:{textAlign:"center"},children:r.label})},r.id))]}),a.map(i=>r(l,{direction:"row",role:"row",sx:{gap:.5},children:[e(l,{role:"rowheader",sx:{flex:"0 0 120px",justifyContent:"center",minWidth:0},children:e(o,{children:i.label})}),n.map(r=>{const o=w.get(`${i.id}:${r.id}`),t=o?d[o.status]:void 0,a=o?.label??t?.label??"No data";if(!t)return e(l,{role:"cell","aria-label":`${a}: ${i.label}, ${r.label}`,sx:{flex:1,minHeight:40,border:1,borderColor:"divider",borderRadius:.5,bgcolor:"action.hover"}},r.id);const{Icon:n,color:s}=t;return e(l,{role:"cell",sx:{flex:1,minHeight:40,alignItems:"center",justifyContent:"center",border:1,borderColor:"divider",borderRadius:.5,bgcolor:"action.hover"},children:e(n,{"aria-label":`${a}: ${i.label}, ${r.label}`,titleAccess:`${a}: ${i.label}, ${r.label}`,sx:{color:s,fontSize:22}})},r.id)})]},i.id))]})})}a.displayName="NexusHeatmap";export{a as NexusHeatmap};
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Caption as i,Body2 as l}from"../Typography.mjs";import{Stack as o}from"../_Primitives/Stack.mjs";import{ChartFrame as t}from"./chartFrame.mjs";function a({rows:a,columns:n,cells:s,statusMap:d,sx:c,title:m,titleComponent:p,titleSx:x,titleHidden:b,description:h,actions:g,isLoading:u,isError:f,errorMessage:$,paperSx:w}){const y=new Map(s.map(e=>[`${e.rowId}:${e.columnId}`,e]));return e(t,{title:m,titleComponent:p,titleSx:x,titleHidden:b,description:h,actions:g,isLoading:u,isError:f,errorMessage:$,paperSx:w,children:r(o,{sx:[{gap:.5},...Array.isArray(c)?c:c?[c]:[]],role:"table","aria-label":m??"Heatmap",children:[r(o,{direction:"row",role:"row",sx:{gap:.5},children:[e(o,{sx:{flex:"0 0 120px"}}),n.map(r=>e(o,{role:"columnheader",sx:{flex:1,alignItems:"center",minWidth:0},children:e(i,{sx:{textAlign:"center"},children:r.label})},r.id))]}),a.map(i=>r(o,{direction:"row",role:"row",sx:{gap:.5},children:[e(o,{role:"rowheader",sx:{flex:"0 0 120px",justifyContent:"center",minWidth:0},children:e(l,{children:i.label})}),n.map(r=>{const l=y.get(`${i.id}:${r.id}`),t=l?d[l.status]:void 0,a=l?.label??t?.label??"No data";if(!t)return e(o,{role:"cell","aria-label":`${a}: ${i.label}, ${r.label}`,sx:{flex:1,minHeight:40,border:1,borderColor:"divider",borderRadius:.5,bgcolor:"action.hover"}},r.id);const{Icon:n,color:s}=t;return e(o,{role:"cell",sx:{flex:1,minHeight:40,alignItems:"center",justifyContent:"center",border:1,borderColor:"divider",borderRadius:.5,bgcolor:"action.hover"},children:e(n,{"aria-label":`${a}: ${i.label}, ${r.label}`,titleAccess:`${a}: ${i.label}, ${r.label}`,sx:{color:s,fontSize:22}})},r.id)})]},i.id))]})})}a.displayName="NexusHeatmap";export{a as NexusHeatmap};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useId as r,useRef as o,useMemo as i}from"react";import{useTheme as s}from"@mui/material/styles";import{getChartColours as n}from"../Theme/chartColours.mjs";import{ChartFrame as a}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:l,grid:c,series:f=[],slots:x,slotProps:h,children:u,title:g,titleComponent:y,titleHidden:C,description:S,actions:j,isLoading:w,isError:A,errorMessage:L,paperSx:$,...z}){const I=s(),M=n(I.palette.mode),O=r().replace(/:/g,""),v=l?.map(e=>({scaleType:"point",...e})),E=f.map((e,t)=>e.area&&!e.id?{...e,id:`${O}s${t}`}:e),H=new Map(E.map((e,t)=>({s:e,i:t})).filter(({s:e})=>e.area).map(({s:e,i:t})=>[e.id,`${O}g${t}`])),P=o(H);P.current=H;const T=i(()=>function(t){const r=t.ownerState?.seriesId,o=r?P.current.get(r):void 0;return e(p,{...t,ownerState:o?{...t.ownerState,gradientId:o}:t.ownerState})},[O]);return e(a,{title:g,titleComponent:y,titleHidden:C,description:S,actions:j,isLoading:w,isError:A,errorMessage:L,paperSx:$,children:t(m,{colors:M,xAxis:v,grid:c??{horizontal:!0,vertical:!0},series:E,slots:{area:T,...x},slotProps:{...h,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...h?.tooltip}},sx:d,...z,children:[H.size>0&&e("defs",{children:Array.from(H.entries()).map(([,r],o)=>t("linearGradient",{id:r,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"0%",stopColor:M[o%M.length],stopOpacity:.4}),e("stop",{offset:"100%",stopColor:M[o%M.length],stopOpacity:0})]},r))}),u]})})}export{d as NexusLineChart};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";import{useId as r,useRef as o,useMemo as i}from"react";import{useTheme as s}from"@mui/material/styles";import{getChartColours as n}from"../Theme/chartColours.mjs";import{ChartFrame as a}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 l({sx:l,xAxis:d,grid:c,series:x=[],slots:f,slotProps:h,children:u,title:g,titleComponent:y,titleSx:C,titleHidden:S,description:j,actions:w,isLoading:A,isError:L,errorMessage:$,paperSx:z,...I}){const M=s(),O=n(M.palette.mode),v=r().replace(/:/g,""),E=d?.map(t=>({scaleType:"point",...t})),H=x.map((t,e)=>t.area&&!t.id?{...t,id:`${v}s${e}`}:t),P=new Map(H.map((t,e)=>({s:t,i:e})).filter(({s:t})=>t.area).map(({s:t,i:e})=>[t.id,`${v}g${e}`])),T=o(P);T.current=P;const _=i(()=>function(e){const r=e.ownerState?.seriesId,o=r?T.current.get(r):void 0;return t(p,{...e,ownerState:o?{...e.ownerState,gradientId:o}:e.ownerState})},[v]);return t(a,{title:g,titleComponent:y,titleSx:C,titleHidden:S,description:j,actions:w,isLoading:A,isError:L,errorMessage:$,paperSx:z,children:e(m,{colors:O,xAxis:E,grid:c??{horizontal:!0,vertical:!0},series:H,slots:{area:_,...f},slotProps:{...h,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...h?.tooltip}},sx:l,...I,children:[P.size>0&&t("defs",{children:Array.from(P.entries()).map(([,r],o)=>e("linearGradient",{id:r,x1:"0",y1:"0",x2:"0",y2:"1",children:[t("stop",{offset:"0%",stopColor:O[o%O.length],stopOpacity:.4}),t("stop",{offset:"100%",stopColor:O[o%O.length],stopOpacity:0})]},r))}),u]})})}export{l 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 n}from"../Theme/chartColours.mjs";import{ChartFrame as p}from"./chartFrame.mjs";import{PieArc as c}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:a,title:d,titleComponent:u,titleHidden:f,description:h,actions:x,isLoading:g,isError:C,errorMessage:y,paperSx:P,...j}){const M=i(),$=n(M.palette.mode),A=t().replace(/:/g,""),E=$.map((o,r)=>({id:`${A}pg${r}`,color:o})),H=new Map(E.map(({id:o,color:r})=>[r,o])),L=e(H);L.current=H;const O=e(function(r){const t=r.color?L.current.get(r.color):void 0;return o(c,{...r,color:t?`url(#${t})`:r.color})}).current;return o(p,{title:d,titleComponent:u,titleHidden:f,description:h,actions:x,isLoading:g,isError:C,errorMessage:y,paperSx:P,children:o(l,{colors:$,...j,slots:{pieArc:O,...a},slotProps:{...m,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...m?.tooltip}},children:o("defs",{children:E.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 n}from"../Theme/chartColours.mjs";import{ChartFrame as p}from"./chartFrame.mjs";import{PieArc as l}from"../../node_modules/@mui/x-charts/PieChart/PieArc.mjs";import{PieChart as c}from"../../node_modules/@mui/x-charts/PieChart/PieChart.mjs";function m({slotProps:m,slots:a,title:d,titleComponent:u,titleSx:f,titleHidden:x,description:h,actions:g,isLoading:C,isError:y,errorMessage:P,paperSx:j,...S}){const M=i(),$=n(M.palette.mode),A=t().replace(/:/g,""),E=$.map((o,r)=>({id:`${A}pg${r}`,color:o})),H=new Map(E.map(({id:o,color:r})=>[r,o])),L=e(H);L.current=H;const O=e(function(r){const t=r.color?L.current.get(r.color):void 0;return o(l,{...r,color:t?`url(#${t})`:r.color})}).current;return o(p,{title:d,titleComponent:u,titleSx:f,titleHidden:x,description:h,actions:g,isLoading:C,isError:y,errorMessage:P,paperSx:j,children:o(c,{colors:$,...S,slots:{pieArc:O,...a},slotProps:{...m,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...m?.tooltip}},children:o("defs",{children:E.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 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{useTheme as r}from"@mui/material/styles";import{getChartColours as o}from"../Theme/chartColours.mjs";import{ChartFrame as e}from"./chartFrame.mjs";import{ScatterChart as i}from"../../node_modules/@mui/x-charts/ScatterChart/ScatterChart.mjs";function s({slotProps:s,slots:n,title:a,titleComponent:m,titleHidden:p,description:l,actions:d,isLoading:c,isError:h,errorMessage:u,paperSx:x,...f}){const g=r(),C=o(g.palette.mode);return t(e,{title:a,titleComponent:m,titleHidden:p,description:l,actions:d,isLoading:c,isError:h,errorMessage:u,paperSx:x,children:t(i,{colors:C,...f,grid:f.grid??{vertical:!0,horizontal:!0},slots:n,slotProps:{...s,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...s?.tooltip}}})})}export{s as NexusScatterChart};
1
+ import{jsx as t}from"react/jsx-runtime";import{useTheme as r}from"@mui/material/styles";import{getChartColours as o}from"../Theme/chartColours.mjs";import{ChartFrame as e}from"./chartFrame.mjs";import{ScatterChart as i}from"../../node_modules/@mui/x-charts/ScatterChart/ScatterChart.mjs";function s({slotProps:s,slots:n,title:a,titleComponent:m,titleSx:l,titleHidden:p,description:d,actions:c,isLoading:x,isError:h,errorMessage:u,paperSx:f,...g}){const S=r(),C=o(S.palette.mode);return t(e,{title:a,titleComponent:m,titleSx:l,titleHidden:p,description:d,actions:c,isLoading:x,isError:h,errorMessage:u,paperSx:f,children:t(i,{colors:C,...g,grid:g.grid??{vertical:!0,horizontal:!0},slots:n,slotProps:{...s,tooltip:{popperOptions:{strategy:"fixed"},sx:{zIndex:1300},container:()=>document.body,...s?.tooltip}}})})}export{s as NexusScatterChart};
@@ -1 +1 @@
1
- import{jsxs as i,jsx as e,Fragment as r}from"react/jsx-runtime";import{Paper as o,Box as t}from"@mui/material";import{PaperAsync as n}from"../PaperAsync.mjs";const p={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},s=({title:s,titleComponent:a="h3",titleHidden:d,description:c,actions:l,isLoading:m,isError:h,errorMessage:x,paperSx:g,children:f})=>d?i(o,{sx:g??{p:3},children:[s&&e(t,{component:a,sx:p,children:s}),f]}):void 0===s?e(r,{children:f}):e(n,{title:s,titleComponent:a,description:c,actions:l,isLoading:Boolean(m),isError:Boolean(h),errorMessage:x,sx:g??{p:3},children:f});export{s as ChartFrame};
1
+ import{jsxs as i,jsx as e,Fragment as r}from"react/jsx-runtime";import{Paper as o,Box as t}from"@mui/material";import{PaperAsync as n}from"../PaperAsync.mjs";const p={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},s=({title:s,titleComponent:a="h3",titleSx:d,titleHidden:l,description:c,actions:m,isLoading:h,isError:x,errorMessage:g,paperSx:f,children:w})=>l?i(o,{sx:f??{p:3},children:[s&&e(t,{component:a,sx:p,children:s}),w]}):void 0===s?e(r,{children:w}):e(n,{title:s,titleComponent:a,titleSx:d,description:c,actions:m,isLoading:Boolean(h),isError:Boolean(x),errorMessage:g,sx:f??{p:3},children:w});export{s as ChartFrame};
@@ -0,0 +1 @@
1
+ import{jsxs as i,Fragment as o,jsx as t}from"react/jsx-runtime";import{Badge as r,Box as e}from"@mui/material";import n from"@mui/icons-material/NotificationsOutlined";import{IconButton as a}from"./Buttons/IconButton.mjs";const l={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},c=({count:c,onClick:d,max:m=99,label:p="Notifications",disabled:s=!1})=>{const u=c>0,h=u?`${p}, ${c} unread`:p;return i(o,{children:[t(a,{ariaLabel:h,title:p,onClick:d,disabled:s,children:t(r,{badgeContent:c,max:m,color:"error",invisible:!u,children:t(n,{})})}),t(e,{"aria-live":"polite",sx:l,children:h})]})};export{c as NotificationBell};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{Box as o}from"@mui/material";import{Body1 as n,Caption as r,Body2 as i}from"./Typography.mjs";const a=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]],l=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),d=e=>{const t=e instanceof Date?e:new Date(e),o=Math.round((t.getTime()-Date.now())/1e3);for(const[e,t]of a)if(Math.abs(o)>=t)return l.format(Math.round(o/t),e);return l.format(o,"second")},s=({title:a,timestamp:l,body:s,read:c=!1,onClick:m})=>e(o,{component:"li",onClick:m,sx:e=>({display:"flex",flexDirection:"column",gap:.25,listStyle:"none",width:"100%",minWidth:0,px:1.5,py:1,borderRadius:1,cursor:m?"pointer":"default",backgroundColor:c?"transparent":e.palette.action.hover,"&:hover":m?{backgroundColor:e.palette.action.selected}:void 0}),children:[e(o,{sx:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:1,minWidth:0},children:[t(n,{sx:{fontWeight:c?400:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:a}),t(r,{sx:{color:"text.secondary",flexShrink:0},children:d(l)})]}),s?t(i,{sx:{color:"text.secondary",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s}):null]});export{s as NotificationListItem};
@@ -1 +1 @@
1
- import{jsxs as r,jsx as e}from"react/jsx-runtime";import{Paper as i}from"./_Primitives/Paper.mjs";import{Box as n}from"./_Primitives/Box.mjs";import{H2 as t,H4 as l,H3 as o,Body2 as s}from"./Typography.mjs";import{LoadingSpinnerNexus as c}from"./LoadingSpinnerNexus.mjs";const m=({title:m,titleComponent:d="h3",description:h,actions:x,isLoading:p,isError:a,errorMessage:f,children:u,...g})=>{const j="h2"===d?t:"h4"===d?l:o;if(p)return r(i,{...g,children:[r(n,{sx:{mb:2},children:[e(j,{children:m}),h&&e(s,{sx:{mt:.5},children:h})]}),e(n,{sx:{display:"flex",flexDirection:"column",mt:1},children:e(c,{})})]});if(a)return r(i,{...g,children:[r(n,{sx:{mb:2},children:[e(j,{children:m}),h&&e(s,{sx:{mt:.5},children:h})]}),e(n,{sx:{display:"flex",flexDirection:"column",mt:1},children:e(s,{color:"error",sx:{p:2},children:f??`Failed to load ${m}.`})})]});const y=m||h||x;return r(i,{...g,children:[y&&r(n,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1,mb:1},children:[r(n,{children:[e(j,{children:m}),h&&e(s,{sx:{mt:.5},children:h})]}),x&&e(n,{sx:{flexShrink:0},children:x})]}),u]})};export{m as PaperAsync};
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";import{Paper as i}from"./_Primitives/Paper.mjs";import{Box as n}from"./_Primitives/Box.mjs";import{H2 as t,H4 as l,H3 as s,Body2 as o}from"./Typography.mjs";import{LoadingSpinnerNexus as c}from"./LoadingSpinnerNexus.mjs";const m=({title:m,titleComponent:d="h3",titleSx:x,description:h,actions:p,isLoading:a,isError:f,errorMessage:u,children:g,...j})=>{const y="h2"===d?t:"h4"===d?l:s;if(a)return r(i,{...j,children:[r(n,{sx:{mb:2},children:[e(y,{sx:x,children:m}),h&&e(o,{sx:{mt:.5},children:h})]}),e(n,{sx:{display:"flex",flexDirection:"column",mt:1},children:e(c,{})})]});if(f)return r(i,{...j,children:[r(n,{sx:{mb:2},children:[e(y,{sx:x,children:m}),h&&e(o,{sx:{mt:.5},children:h})]}),e(n,{sx:{display:"flex",flexDirection:"column",mt:1},children:e(o,{color:"error",sx:{p:2},children:u??`Failed to load ${m}.`})})]});const b=m||h||p;return r(i,{...j,children:[b&&r(n,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1,mb:1},children:[r(n,{children:[e(y,{sx:x,children:m}),h&&e(o,{sx:{mt:.5},children:h})]}),p&&e(n,{sx:{flexShrink:0},children:p})]}),g]})};export{m as PaperAsync};
@@ -0,0 +1 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useId as t}from"react";import{Slider as i}from"@mui/material";import{alpha as a}from"@mui/material/styles";import{Body2 as o,Caption as s}from"./Typography.mjs";import{Stack as m}from"./_Primitives/Stack.mjs";const l=r=>{if(Number.isInteger(r))return 0;const[,e]=r.toString().split(".");return e?.length??0},n=({value:n,onChange:d,min:x,max:u,step:c,disabled:p=!1,label:b,marks:h,...y})=>{const f=t(),g=l(c),M=n.toFixed(g);return r(m,{sx:{gap:.5,width:"100%"},children:[b?r(m,{direction:"row",sx:{alignItems:"baseline",justifyContent:"space-between"},children:[e(o,{id:f,sx:{color:p?"text.disabled":"text.primary"},children:b}),e(s,{"aria-live":"polite",sx:{fontVariantNumeric:"tabular-nums",color:p?"text.disabled":"text.secondary"},children:M})]}):null,e(i,{...y,value:n,min:x,max:u,step:c,disabled:p,marks:h,"aria-labelledby":b?f:void 0,"aria-valuetext":M,onChange:(r,e)=>{const t=Array.isArray(e)?e[0]:e;d(r,((r,e,t,i)=>{const a=l(i),o=Math.min(Math.max(r,e),t),s=e+Math.round((o-e)/i)*i;return Number(Math.min(Math.max(s,e),t).toFixed(a))})(t,x,u,c))},sx:[r=>({color:r.palette.primary.main,"& .MuiSlider-thumb":{"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 8px ${a(r.palette.primary.main,.16)}`}},"&.Mui-disabled":{color:r.palette.action.disabled}}),...Array.isArray(y.sx)?y.sx:y.sx?[y.sx]:[]]})]})};export{n as Slider};
@@ -1 +1 @@
1
- const o="2.8.5";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.9.1";export{o as SAGE_NEXUS_UI_VERSION};
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { ReactNode, Ref, ReactElement, FormEventHandler, RefObject, 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, ToggleButtonGroupProps, SwitchProps, SliderProps, AccordionSummaryProps, ButtonProps, ChipProps, CardProps as CardProps$1, PaperProps, CircularProgressProps, CollapseProps, ButtonBaseProps, CheckboxProps, FormControlLabelProps, FormGroupProps, DialogProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogTitleProps, DividerProps, TableProps, TableBodyProps, TableCellProps, TableHeadProps, TableRowProps, IconButtonProps as IconButtonProps$1, SkeletonProps as SkeletonProps$1, StackProps, TabProps, TabsProps, TextFieldProps, TooltipProps as TooltipProps$1 } from '@mui/material';
4
- export { AlertProps, AlertTitle, BoxProps, ButtonBaseProps, CheckboxProps, ChipProps, CircularProgressProps, CollapseProps, ContainerProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogProps, DialogTitleProps, DividerProps, FormControlLabelProps, FormGroupProps, GridProps, MenuItem, PaperProps, SliderProps, StackProps, SwitchProps, TabProps, TableBodyProps, TableCellProps, TableHeadProps, TableProps, TableRowProps, TabsProps, TextFieldProps, Theme, alpha, useMediaQuery, useTheme } 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, SliderProps as SliderProps$1, AccordionSummaryProps, ButtonProps, ChipProps, CardProps as CardProps$1, PaperProps, CircularProgressProps, CollapseProps, ButtonBaseProps, CheckboxProps, FormControlLabelProps, FormGroupProps, DialogProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogTitleProps, DividerProps, TableProps, TableBodyProps, TableCellProps, TableHeadProps, TableRowProps, IconButtonProps as IconButtonProps$1, SkeletonProps as SkeletonProps$1, StackProps, TabProps, TabsProps, TextFieldProps, TooltipProps as TooltipProps$1 } from '@mui/material';
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, TableBodyProps, TableCellProps, TableHeadProps, TableProps, TableRowProps, 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';
7
7
  import SvgIcon from '@mui/material/SvgIcon';
@@ -552,7 +552,43 @@ declare const Breadcrumbs: ({ items, ariaLabel, maxItems, }: BreadcrumbsProps) =
552
552
 
553
553
  declare const Switch: ({ sx, ...props }: SwitchProps) => react.JSX.Element;
554
554
 
555
- declare const Slider: (props: SliderProps) => react.JSX.Element;
555
+ interface SliderMarkOption {
556
+ value: number;
557
+ label?: string;
558
+ }
559
+ interface SliderProps extends Omit<SliderProps$1, "value" | "onChange" | "min" | "max" | "step" | "marks" | "aria-labelledby"> {
560
+ value: number;
561
+ onChange: (event: Event, value: number) => void;
562
+ min: number;
563
+ max: number;
564
+ step: number;
565
+ /** Visible label rendered above the track with the current value. Omit to
566
+ * render the bare track only (e.g. an existing caller supplying its own
567
+ * label/value display and an `aria-label` directly). */
568
+ label?: string;
569
+ marks?: SliderMarkOption[];
570
+ }
571
+ declare const Slider: ({ value, onChange, min, max, step, disabled, label, marks, ...rest }: SliderProps) => react.JSX.Element;
572
+
573
+ interface NotificationBellProps {
574
+ count: number;
575
+ onClick: () => void;
576
+ /** Cap above which the badge shows `${max}+` instead of the exact count. Default 99. */
577
+ max?: number;
578
+ /** Accessible/base label, e.g. "Notifications". Unread count is appended automatically. */
579
+ label?: string;
580
+ disabled?: boolean;
581
+ }
582
+ declare const NotificationBell: ({ count, onClick, max, label, disabled, }: NotificationBellProps) => react.JSX.Element;
583
+
584
+ interface NotificationListItemProps {
585
+ title: string;
586
+ timestamp: Date | string | number;
587
+ body?: string;
588
+ read?: boolean;
589
+ onClick?: () => void;
590
+ }
591
+ declare const NotificationListItem: ({ title, timestamp, body, read, onClick, }: NotificationListItemProps) => react.JSX.Element;
556
592
 
557
593
  /**
558
594
  * Typed wrappers around MUI Typography that fix the `variant` prop and
@@ -907,6 +943,7 @@ declare const GlassPaperAsync: ({ title, description, actions, isLoading, isErro
907
943
  type PaperAsyncProps = Omit<PaperProps, "children"> & {
908
944
  title: string;
909
945
  titleComponent?: "h2" | "h3" | "h4";
946
+ titleSx?: SxProps<Theme>;
910
947
  description?: ReactNode;
911
948
  actions?: ReactNode;
912
949
  isLoading: boolean;
@@ -914,7 +951,7 @@ type PaperAsyncProps = Omit<PaperProps, "children"> & {
914
951
  errorMessage?: string;
915
952
  children?: ReactNode;
916
953
  };
917
- declare const PaperAsync: ({ title, titleComponent, description, actions, isLoading, isError, errorMessage, children, ...rest }: PaperAsyncProps) => react.JSX.Element;
954
+ declare const PaperAsync: ({ title, titleComponent, titleSx, description, actions, isLoading, isError, errorMessage, children, ...rest }: PaperAsyncProps) => react.JSX.Element;
918
955
 
919
956
  type GreenWaveBackgroundProps = BoxProps;
920
957
  declare const GreenWaveBackground: ({ sx, children, ...rest }: GreenWaveBackgroundProps) => react.JSX.Element;
@@ -1282,6 +1319,8 @@ interface ChartAsyncProps {
1282
1319
  title?: string;
1283
1320
  /** Heading level for a visible chart title. Defaults to `h3`. */
1284
1321
  titleComponent?: "h2" | "h3" | "h4";
1322
+ /** `sx` applied to the visible chart title. */
1323
+ titleSx?: SxProps<Theme>;
1285
1324
  /**
1286
1325
  * When `true`, the chart still self-wraps in a solid `Paper` (so it sits on a
1287
1326
  * solid background rather than inheriting a glass surface), but the title is
@@ -1304,19 +1343,19 @@ interface ChartAsyncProps {
1304
1343
  type NexusLineChartProps = Omit<LineChartProps, "colors"> & ChartAsyncProps & {
1305
1344
  children?: React.ReactNode;
1306
1345
  };
1307
- declare function NexusLineChart({ sx, xAxis, grid, series, slots, slotProps, children, title, titleComponent, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusLineChartProps): react.JSX.Element;
1346
+ declare function NexusLineChart({ sx, xAxis, grid, series, slots, slotProps, children, title, titleComponent, titleSx, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusLineChartProps): react.JSX.Element;
1308
1347
 
1309
1348
  type NexusBarChartProps = Omit<BarChartProps, "colors"> & ChartAsyncProps & {
1310
1349
  /** Base colours used to generate the per-series gradients. */
1311
1350
  gradientColors?: string[];
1312
1351
  };
1313
- declare function NexusBarChart({ slotProps, slots, title, titleComponent, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, gradientColors, ...props }: NexusBarChartProps): react.JSX.Element;
1352
+ declare function NexusBarChart({ slotProps, slots, title, titleComponent, titleSx, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, gradientColors, ...props }: NexusBarChartProps): react.JSX.Element;
1314
1353
 
1315
1354
  type NexusPieChartProps = Omit<PieChartProps, "colors"> & ChartAsyncProps;
1316
- declare function NexusPieChart({ slotProps, slots, title, titleComponent, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusPieChartProps): react.JSX.Element;
1355
+ declare function NexusPieChart({ slotProps, slots, title, titleComponent, titleSx, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusPieChartProps): react.JSX.Element;
1317
1356
 
1318
1357
  type NexusScatterChartProps = Omit<ScatterChartProps, "colors"> & ChartAsyncProps;
1319
- declare function NexusScatterChart({ slotProps, slots, title, titleComponent, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusScatterChartProps): react.JSX.Element;
1358
+ declare function NexusScatterChart({ slotProps, slots, title, titleComponent, titleSx, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, ...props }: NexusScatterChartProps): react.JSX.Element;
1320
1359
 
1321
1360
  interface NexusHeatmapAxisItem {
1322
1361
  id: string;
@@ -1340,7 +1379,7 @@ interface NexusHeatmapProps extends ChartAsyncProps {
1340
1379
  statusMap: Record<string, NexusHeatmapStatus>;
1341
1380
  sx?: SxProps<Theme>;
1342
1381
  }
1343
- declare function NexusHeatmap({ rows, columns, cells, statusMap, sx, title, titleComponent, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, }: NexusHeatmapProps): react.JSX.Element;
1382
+ declare function NexusHeatmap({ rows, columns, cells, statusMap, sx, title, titleComponent, titleSx, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, }: NexusHeatmapProps): react.JSX.Element;
1344
1383
  declare namespace NexusHeatmap {
1345
1384
  var displayName: string;
1346
1385
  }
@@ -1491,5 +1530,5 @@ declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOp
1491
1530
  declare const leftPipe: SxProps<Theme>;
1492
1531
  declare const expandableText: (isExpanded: boolean) => SxProps<Theme>;
1493
1532
 
1494
- export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AgentChatDialog, AgentChatWidget, AgentChatWindow, AgentChatWindowHeader, AiButton, AiButtonTile, AiCard, AiChip, AiGlassCard, AiGlassPaper, AiPaper, Alert, Avatar, Body1, Body2, Box, Breadcrumbs, ButtonBase, ButtonTile, 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, FormDialog, FormGroup, GhostButton, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, Grid, H1, H2, H3, H4, IconButton, Link, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MarkdownContent, MessageBubble, MessageFeedbackBar, MessageList, MetricCard, MetricStat, MetricValue, MuiAppThemeProvider, NEXUS_THEME_STORAGE_KEY, NexusBarChart, NexusDataGrid, NexusHeatmap, 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, Slider, 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 };
1495
- export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivitySummary, AgentChatDialogProps, AgentChatWidgetProps, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiButtonTileProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, BreadcrumbItem, BreadcrumbsProps, ButtonTileProps, CardProps, CardTrend, ChartAsyncProps, ChatAvatarProps, ChatHistoryAgent, ChatHistoryAgentItemProps, ChatHistoryButtonBaseProps, ChatHistoryConversation, ChatHistoryHeaderProps, ChatHistoryProps, ChatInputProps, ChatMessage, CodeBlock, CopyableTableContainerProps, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, EmptyStateProps, FABButtonProps, FileArtifact, FormDialogProps, GhostButtonProps, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, LatencyMetrics, LinkProps, LoadingSpinnerNexusProps, MarkdownContentProps, MessageBubbleProps, MessageFeedbackBarProps, MessageListProps, MetricCardProps, MetricStatProps, MetricValueSize, ModeTokens, NexusBarChartProps, NexusHeatmapAxisItem, NexusHeatmapCell, NexusHeatmapProps, NexusHeatmapStatus, NexusLineChartProps, NexusNodeIconProps, NexusNodeIconSize, NexusNodeIconTone, 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, ThemeModeContextValue, ThemeModeProviderProps, TooltipProps, TraceEvent, TypingIndicatorProps };
1533
+ export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AgentChatDialog, AgentChatWidget, AgentChatWindow, AgentChatWindowHeader, AiButton, AiButtonTile, AiCard, AiChip, AiGlassCard, AiGlassPaper, AiPaper, Alert, Avatar, Body1, Body2, Box, Breadcrumbs, ButtonBase, ButtonTile, 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, FormDialog, FormGroup, GhostButton, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, Grid, H1, H2, H3, H4, IconButton, Link, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MarkdownContent, MessageBubble, MessageFeedbackBar, MessageList, MetricCard, MetricStat, MetricValue, MuiAppThemeProvider, NEXUS_THEME_STORAGE_KEY, NexusBarChart, NexusDataGrid, NexusHeatmap, NexusHome, NexusLineChart, NexusLogo, NexusNodeIcon, NexusPieChart, NexusScatterChart, NexusiFrame, NotificationBell, NotificationListItem, Paper, PaperAsync, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SageLogoSvg, SearchInput, SecondaryButton, SecondaryButtonLink, SegmentedControl, Select, SelectableList, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, Slider, 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 };
1534
+ export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivitySummary, AgentChatDialogProps, AgentChatWidgetProps, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiButtonTileProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, BreadcrumbItem, BreadcrumbsProps, ButtonTileProps, CardProps, CardTrend, ChartAsyncProps, ChatAvatarProps, ChatHistoryAgent, ChatHistoryAgentItemProps, ChatHistoryButtonBaseProps, ChatHistoryConversation, ChatHistoryHeaderProps, ChatHistoryProps, ChatInputProps, ChatMessage, CodeBlock, CopyableTableContainerProps, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, EmptyStateProps, FABButtonProps, FileArtifact, FormDialogProps, GhostButtonProps, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, LatencyMetrics, LinkProps, LoadingSpinnerNexusProps, MarkdownContentProps, MessageBubbleProps, MessageFeedbackBarProps, MessageListProps, MetricCardProps, MetricStatProps, MetricValueSize, ModeTokens, NexusBarChartProps, NexusHeatmapAxisItem, NexusHeatmapCell, NexusHeatmapProps, NexusHeatmapStatus, NexusLineChartProps, NexusNodeIconProps, NexusNodeIconSize, NexusNodeIconTone, NexusPieChartProps, NexusScatterChartProps, NexusiFrameProps, NotificationBellProps, NotificationListItemProps, PaperAsyncProps, ParsedActivity, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectProps, SelectableListItem, SelectableListProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, SliderMarkOption, SliderProps, SourceCitationsProps, StatusBadgeProps, StatusBadgeVariant, StreamingBubbleProps, SuggestedPromptsProps, ThemeMode, ThemeModeContextValue, ThemeModeProviderProps, 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{AgentChatWidget}from"./components/AgentChat/AgentChatWidget.mjs";export{AgentChatDialog}from"./components/AgentChat/AgentChatDialog.mjs";export{FABButton}from"./components/AgentChat/FABButton.mjs";export{AgentChatWindow}from"./components/AgentChat/AgentChatWindow.mjs";export{AgentChatWindowHeader}from"./components/AgentChat/AgentChatWindowHeader.mjs";export{ChatInput}from"./components/AgentChat/ChatInput.mjs";export{ChatHistory}from"./components/AgentChat/ChatHistory.mjs";export{ChatHistoryHeader}from"./components/AgentChat/ChatHistoryHeader.mjs";export{ChatHistoryButtonBase}from"./components/AgentChat/ChatHistoryButtonBase.mjs";export{ChatHistoryAgentItem}from"./components/AgentChat/ChatHistoryAgentItem.mjs";export{chatHistoryMatchesQuery,filterChatHistoryConversations}from"./components/AgentChat/ChatHistorySearch.mjs";export{CopyableTableContainer}from"./components/AgentChat/ChatComponents/CopyableTableContainer.mjs";export{default as ChatAvatar}from"./components/AgentChat/ChatComponents/ChatAvatar.mjs";export{default as MarkdownContent,chatWindowMarkdownComponents}from"./components/AgentChat/ChatComponents/MarkdownContent.mjs";export{default as MessageBubble}from"./components/AgentChat/ChatComponents/MessageBubble.mjs";export{default as MessageFeedbackBar}from"./components/AgentChat/ChatComponents/MessageFeedbackBar.mjs";export{default as StreamingBubble}from"./components/AgentChat/ChatComponents/StreamingBubble.mjs";export{default as TypingIndicator}from"./components/AgentChat/ChatComponents/TypingIndicator.mjs";export{default as SuggestedPrompts}from"./components/AgentChat/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/AgentChat/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/AgentChat/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/AgentChat/ChatComponents/SourceCitations.mjs";export{latestTraceLabel}from"./components/AgentChat/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{Slider}from"./components/_Primitives/Slider.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{AiButtonTile,ButtonTile}from"./components/ButtonTile.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/Forms/Checkbox.mjs";export{FormControlLabel}from"./components/Forms/FormControlLabel.mjs";export{FormGroup}from"./components/Forms/FormGroup.mjs";export{CheckboxGroup}from"./components/Forms/CheckboxGroup.mjs";export{FormDialog}from"./components/Forms/FormDialog.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/Theme/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{NexusHeatmap}from"./components/Charts/NexusHeatmap.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"./components/Theme/sageTheme.mjs";export{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./components/Theme/tokens.mjs";export{useTokens}from"./components/Theme/useTokens.mjs";export{default as MuiAppThemeProvider}from"./components/Theme/MuiAppThemeProvider.mjs";export{NEXUS_THEME_STORAGE_KEY,ThemeModeContext,ThemeModeProvider,useThemeMode}from"./components/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"./components/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{AgentChatWidget}from"./components/AgentChat/AgentChatWidget.mjs";export{AgentChatDialog}from"./components/AgentChat/AgentChatDialog.mjs";export{FABButton}from"./components/AgentChat/FABButton.mjs";export{AgentChatWindow}from"./components/AgentChat/AgentChatWindow.mjs";export{AgentChatWindowHeader}from"./components/AgentChat/AgentChatWindowHeader.mjs";export{ChatInput}from"./components/AgentChat/ChatInput.mjs";export{ChatHistory}from"./components/AgentChat/ChatHistory.mjs";export{ChatHistoryHeader}from"./components/AgentChat/ChatHistoryHeader.mjs";export{ChatHistoryButtonBase}from"./components/AgentChat/ChatHistoryButtonBase.mjs";export{ChatHistoryAgentItem}from"./components/AgentChat/ChatHistoryAgentItem.mjs";export{chatHistoryMatchesQuery,filterChatHistoryConversations}from"./components/AgentChat/ChatHistorySearch.mjs";export{CopyableTableContainer}from"./components/AgentChat/ChatComponents/CopyableTableContainer.mjs";export{default as ChatAvatar}from"./components/AgentChat/ChatComponents/ChatAvatar.mjs";export{default as MarkdownContent,chatWindowMarkdownComponents}from"./components/AgentChat/ChatComponents/MarkdownContent.mjs";export{default as MessageBubble}from"./components/AgentChat/ChatComponents/MessageBubble.mjs";export{default as MessageFeedbackBar}from"./components/AgentChat/ChatComponents/MessageFeedbackBar.mjs";export{default as StreamingBubble}from"./components/AgentChat/ChatComponents/StreamingBubble.mjs";export{default as TypingIndicator}from"./components/AgentChat/ChatComponents/TypingIndicator.mjs";export{default as SuggestedPrompts}from"./components/AgentChat/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/AgentChat/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/AgentChat/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/AgentChat/ChatComponents/SourceCitations.mjs";export{latestTraceLabel}from"./components/AgentChat/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{Slider}from"./components/Slider.mjs";export{NotificationBell}from"./components/NotificationBell.mjs";export{NotificationListItem}from"./components/NotificationListItem.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{AiButtonTile,ButtonTile}from"./components/ButtonTile.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/Forms/Checkbox.mjs";export{FormControlLabel}from"./components/Forms/FormControlLabel.mjs";export{FormGroup}from"./components/Forms/FormGroup.mjs";export{CheckboxGroup}from"./components/Forms/CheckboxGroup.mjs";export{FormDialog}from"./components/Forms/FormDialog.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/Theme/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{NexusHeatmap}from"./components/Charts/NexusHeatmap.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"./components/Theme/sageTheme.mjs";export{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./components/Theme/tokens.mjs";export{useTokens}from"./components/Theme/useTokens.mjs";export{default as MuiAppThemeProvider}from"./components/Theme/MuiAppThemeProvider.mjs";export{NEXUS_THEME_STORAGE_KEY,ThemeModeContext,ThemeModeProvider,useThemeMode}from"./components/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"./components/Theme/sxHelpers.mjs";export{ChartsReferenceLine}from"./node_modules/@mui/x-charts/ChartsReferenceLine/ChartsReferenceLine.mjs";
package/package.json CHANGED
@@ -1,123 +1,123 @@
1
- {
2
- "name": "it-data-nexus-ui-library",
3
- "version": "2.8.5",
4
- "description": "Nexus core components",
5
- "license": "ISC",
6
- "author": "emsmart-sage",
7
- "type": "module",
8
- "main": "dist/index.mjs",
9
- "module": "dist/index.mjs",
10
- "types": "dist/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "import": "./dist/index.mjs",
14
- "types": "./dist/index.d.ts"
15
- }
16
- },
17
- "engines": {
18
- "node": ">=18.18.0",
19
- "npm": ">=9"
20
- },
21
- "files": [
22
- "dist"
23
- ],
24
- "sideEffects": false,
25
- "scripts": {
26
- "prebuild": "node scripts/write-version.mjs",
27
- "build": "node -e \"require('fs').rmSync('dist', {recursive:true, force:true})\" && rollup -c",
28
- "build-storybook": "storybook build",
29
- "generate-favicon": "node scripts/generate-favicon.mjs",
30
- "lint": "eslint \"src/**/*.{ts,tsx,js,jsx}\"",
31
- "prepublishOnly": "npm run lint && npm run build",
32
- "storybook": "storybook dev -p 6006",
33
- "test": "echo \"Error: no test specified\" && exit 1"
34
- },
35
- "dependencies": {
36
- "@mui/x-charts": "^9.4.0",
37
- "@radix-ui/react-popover": "^1.1.15"
38
- },
39
- "peerDependencies": {
40
- "@emotion/react": "^11.14.0",
41
- "@emotion/styled": "^11.14.1",
42
- "@mui/icons-material": "^7 || ^8 || ^9",
43
- "@mui/material": "^7 || ^8 || ^9",
44
- "@mui/x-data-grid": "^7 || ^8 || ^9",
45
- "@mui/x-date-pickers": "^7 || ^8 || ^9",
46
- "date-fns": "^3 || ^4",
47
- "react": "^18 || ^19",
48
- "react-dom": "^18 || ^19",
49
- "react-day-picker": "^9",
50
- "react-markdown": "^10",
51
- "remark-gfm": "^4"
52
- },
53
- "peerDependenciesMeta": {
54
- "@radix-ui/react-popover": {
55
- "optional": false
56
- },
57
- "react-day-picker": {
58
- "optional": true
59
- },
60
- "react-markdown": {
61
- "optional": true
62
- },
63
- "remark-gfm": {
64
- "optional": true
65
- },
66
- "@mui/x-data-grid": {
67
- "optional": true
68
- },
69
- "@mui/x-date-pickers": {
70
- "optional": true
71
- }
72
- },
73
- "devDependencies": {
74
- "@chromatic-com/storybook": "^5.3.0",
75
- "@emotion/react": "^11.14.0",
76
- "@emotion/styled": "^11.14.1",
77
- "@eslint/js": "9.39.4",
78
- "@mui/icons-material": "^9.0.1",
79
- "@mui/material": "^9.0.1",
80
- "@mui/x-data-grid": "^9.0.0",
81
- "@mui/x-date-pickers": "^9.3.0",
82
- "@radix-ui/react-popover": "^1.1.15",
83
- "@rollup/plugin-alias": "^6.0.0",
84
- "@rollup/plugin-commonjs": "^29.0.2",
85
- "@rollup/plugin-json": "^6.0.0",
86
- "@rollup/plugin-node-resolve": "^16.0.3",
87
- "@rollup/plugin-terser": "^1.0.0",
88
- "@rollup/plugin-typescript": "^12.3.0",
89
- "@rollup/plugin-url": "^8.0.2",
90
- "@storybook/addon-a11y": "^10.5.10",
91
- "@storybook/addon-docs": "^10.5.10",
92
- "@storybook/addon-vitest": "^10.5.10",
93
- "@storybook/react-vite": "^10.5.10",
94
- "@types/node": "^25.6.0",
95
- "@types/react": "^19.2.14",
96
- "@types/rollup-plugin-peer-deps-external": "^2.2.6",
97
- "@vitejs/plugin-react": "^6.0.1",
98
- "@vitest/browser-playwright": "^4.1.4",
99
- "@vitest/coverage-v8": "^4.1.4",
100
- "date-fns": "^4.1.0",
101
- "eslint": "9.39.4",
102
- "eslint-plugin-import": "^2.32.0",
103
- "eslint-plugin-react": "^7.37.5",
104
- "globals": "^17.5.0",
105
- "playwright": "^1.59.1",
106
- "png-to-ico": "^2.1.8",
107
- "react": "^19.2.5",
108
- "react-day-picker": "^9.13.2",
109
- "react-dom": "^19.2.5",
110
- "rollup": "^4.60.1",
111
- "rollup-plugin-dts": "^6.4.1",
112
- "rollup-plugin-peer-deps-external": "^2.2.4",
113
- "rollup-plugin-postcss": "^4.0.2",
114
- "sharp": "^0.34.5",
115
- "storybook": "^10.5.10",
116
- "tslib": "^2.8.1",
117
- "typescript": "^6.0.2",
118
- "typescript-eslint": "8.58.2",
119
- "vitest": "^4.1.4",
120
- "react-markdown": "^10",
121
- "remark-gfm": "^4"
122
- }
123
- }
1
+ {
2
+ "name": "it-data-nexus-ui-library",
3
+ "version": "2.9.1",
4
+ "description": "Nexus core components",
5
+ "license": "ISC",
6
+ "author": "emsmart-sage",
7
+ "type": "module",
8
+ "main": "dist/index.mjs",
9
+ "module": "dist/index.mjs",
10
+ "types": "dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.mjs",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "engines": {
18
+ "node": ">=18.18.0",
19
+ "npm": ">=9"
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "sideEffects": false,
25
+ "scripts": {
26
+ "prebuild": "node scripts/write-version.mjs",
27
+ "build": "node -e \"require('fs').rmSync('dist', {recursive:true, force:true})\" && rollup -c",
28
+ "build-storybook": "storybook build",
29
+ "generate-favicon": "node scripts/generate-favicon.mjs",
30
+ "lint": "eslint \"src/**/*.{ts,tsx,js,jsx}\"",
31
+ "prepublishOnly": "npm run lint && npm run build",
32
+ "storybook": "storybook dev -p 6006",
33
+ "test": "echo \"Error: no test specified\" && exit 1"
34
+ },
35
+ "dependencies": {
36
+ "@mui/x-charts": "^9.4.0",
37
+ "@radix-ui/react-popover": "^1.1.15"
38
+ },
39
+ "peerDependencies": {
40
+ "@emotion/react": "^11.14.0",
41
+ "@emotion/styled": "^11.14.1",
42
+ "@mui/icons-material": "^7 || ^8 || ^9",
43
+ "@mui/material": "^7 || ^8 || ^9",
44
+ "@mui/x-data-grid": "^7 || ^8 || ^9",
45
+ "@mui/x-date-pickers": "^7 || ^8 || ^9",
46
+ "date-fns": "^3 || ^4",
47
+ "react": "^18 || ^19",
48
+ "react-dom": "^18 || ^19",
49
+ "react-day-picker": "^9",
50
+ "react-markdown": "^10",
51
+ "remark-gfm": "^4"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "@radix-ui/react-popover": {
55
+ "optional": false
56
+ },
57
+ "react-day-picker": {
58
+ "optional": true
59
+ },
60
+ "react-markdown": {
61
+ "optional": true
62
+ },
63
+ "remark-gfm": {
64
+ "optional": true
65
+ },
66
+ "@mui/x-data-grid": {
67
+ "optional": true
68
+ },
69
+ "@mui/x-date-pickers": {
70
+ "optional": true
71
+ }
72
+ },
73
+ "devDependencies": {
74
+ "@chromatic-com/storybook": "^5.3.0",
75
+ "@emotion/react": "^11.14.0",
76
+ "@emotion/styled": "^11.14.1",
77
+ "@eslint/js": "9.39.4",
78
+ "@mui/icons-material": "^9.0.1",
79
+ "@mui/material": "^9.0.1",
80
+ "@mui/x-data-grid": "^9.0.0",
81
+ "@mui/x-date-pickers": "^9.3.0",
82
+ "@radix-ui/react-popover": "^1.1.15",
83
+ "@rollup/plugin-alias": "^6.0.0",
84
+ "@rollup/plugin-commonjs": "^29.0.2",
85
+ "@rollup/plugin-json": "^6.0.0",
86
+ "@rollup/plugin-node-resolve": "^16.0.3",
87
+ "@rollup/plugin-terser": "^1.0.0",
88
+ "@rollup/plugin-typescript": "^12.3.0",
89
+ "@rollup/plugin-url": "^8.0.2",
90
+ "@storybook/addon-a11y": "^10.5.10",
91
+ "@storybook/addon-docs": "^10.5.10",
92
+ "@storybook/addon-vitest": "^10.5.10",
93
+ "@storybook/react-vite": "^10.5.10",
94
+ "@types/node": "^25.6.0",
95
+ "@types/react": "^19.2.14",
96
+ "@types/rollup-plugin-peer-deps-external": "^2.2.6",
97
+ "@vitejs/plugin-react": "^6.0.1",
98
+ "@vitest/browser-playwright": "^4.1.4",
99
+ "@vitest/coverage-v8": "^4.1.4",
100
+ "date-fns": "^4.1.0",
101
+ "eslint": "9.39.4",
102
+ "eslint-plugin-import": "^2.32.0",
103
+ "eslint-plugin-react": "^7.37.5",
104
+ "globals": "^17.5.0",
105
+ "playwright": "^1.59.1",
106
+ "png-to-ico": "^2.1.8",
107
+ "react": "^19.2.5",
108
+ "react-day-picker": "^9.13.2",
109
+ "react-dom": "^19.2.5",
110
+ "rollup": "^4.60.1",
111
+ "rollup-plugin-dts": "^6.4.1",
112
+ "rollup-plugin-peer-deps-external": "^2.2.4",
113
+ "rollup-plugin-postcss": "^4.0.2",
114
+ "sharp": "^0.34.5",
115
+ "storybook": "^10.5.10",
116
+ "tslib": "^2.8.1",
117
+ "typescript": "^6.0.2",
118
+ "typescript-eslint": "8.58.2",
119
+ "vitest": "^4.1.4",
120
+ "react-markdown": "^10",
121
+ "remark-gfm": "^4"
122
+ }
123
+ }
@@ -1 +0,0 @@
1
- import{jsx as r}from"react/jsx-runtime";import{Slider as m}from"@mui/material";const t=t=>r(m,{...t});export{t as Slider};