sage-nexus-ui 1.10.0 → 1.10.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 r}from"react/jsx-runtime";import{BarChart as t}from"@mui/x-charts/BarChart";import{colours as e}from"../theme/tokens.mjs";const o=[e.brilliantGreen,e.jade,e.teal,e.amber,e.terra,e.navy,e.cyan,e.blue];function a(e){return r(t,{colors:o,...e,grid:{vertical:!0,horizontal:!0}})}export{a as NexusBarChart};
1
+ import{jsx as r}from"react/jsx-runtime";import{BarChart as t}from"@mui/x-charts/BarChart";import{useTheme as a}from"@mui/material/styles";import{colours as e}from"../theme/tokens.mjs";const o=[e.jadeDark,e.jadeLight,e.teal,e.amber,e.terra,e.navy,e.cyan,e.blue],m=[e.jadeLight,e.jadeDark,e.teal,e.amber,e.terra,e.navy,e.cyan,e.blue];function i(e){const i="dark"===a().palette.mode?m:o;return r(t,{colors:i,...e,grid:{vertical:!0,horizontal:!0}})}export{i as NexusBarChart};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useId as t,useRef as o,useMemo as i}from"react";import{AnimatedArea as s,LineChart as a}from"@mui/x-charts/LineChart";import{colours as n}from"../theme/tokens.mjs";const c=[n.brilliantGreen,n.jade,n.teal,n.amber,n.terra,n.navy,n.cyan,n.blue];function p({sx:n,xAxis:p,grid:l,series:m=[],slots:d,children:f,...x}){const h=t().replace(/:/g,""),u=p?.map(e=>({scaleType:"point",...e})),g=m.map((e,r)=>e.area&&!e.id?{...e,id:`${h}s${r}`}:e),y=new Map(g.map((e,r)=>({s:e,i:r})).filter(({s:e})=>e.area).map(({s:e,i:r})=>[e.id,`${h}g${r}`])),w=o(y);w.current=y;const S=i(()=>function(r){const t=r.ownerState?.seriesId,o=t?w.current.get(t):void 0;return e(s,{...r,ownerState:o?{...r.ownerState,gradientId:o}:r.ownerState})},[h]);return r(a,{colors:c,xAxis:u,grid:l??{horizontal:!0,vertical:!0},series:g,slots:{area:S,...d},sx:n,...x,children:[y.size>0&&e("defs",{children:Array.from(y.entries()).map(([,t],o)=>r("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"0%",stopColor:c[o%c.length],stopOpacity:.4}),e("stop",{offset:"100%",stopColor:c[o%c.length],stopOpacity:0})]},t))}),f]})}export{p as NexusLineChart};
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useId as t,useRef as a,useMemo as o}from"react";import{AnimatedArea as i,LineChart as s}from"@mui/x-charts/LineChart";import{useTheme as n}from"@mui/material/styles";import{colours as m}from"../theme/tokens.mjs";const l=[m.jadeDark,m.jadeLight,m.teal,m.amber,m.terra,m.navy,m.cyan,m.blue],p=[m.jadeLight,m.jadeDark,m.teal,m.amber,m.terra,m.navy,m.cyan,m.blue];function c({sx:m,xAxis:c,grid:d,series:f=[],slots:h,children:u,...x}){const y="dark"===n().palette.mode?p:l,g=t().replace(/:/g,""),j=c?.map(e=>({scaleType:"point",...e})),w=f.map((e,r)=>e.area&&!e.id?{...e,id:`${g}s${r}`}:e),b=new Map(w.map((e,r)=>({s:e,i:r})).filter(({s:e})=>e.area).map(({s:e,i:r})=>[e.id,`${g}g${r}`])),k=a(b);k.current=b;const v=o(()=>function(r){const t=r.ownerState?.seriesId,a=t?k.current.get(t):void 0;return e(i,{...r,ownerState:a?{...r.ownerState,gradientId:a}:r.ownerState})},[g]);return r(s,{colors:y,xAxis:j,grid:d??{horizontal:!0,vertical:!0},series:w,slots:{area:v,...h},sx:m,...x,children:[b.size>0&&e("defs",{children:Array.from(b.entries()).map(([,t],a)=>r("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"0%",stopColor:y[a%y.length],stopOpacity:.4}),e("stop",{offset:"100%",stopColor:y[a%y.length],stopOpacity:0})]},t))}),u]})}export{c as NexusLineChart};
@@ -1 +1 @@
1
- const o="1.10.0";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="1.10.1";export{o as SAGE_NEXUS_UI_VERSION};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sage-nexus-ui",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",