it-data-nexus-ui-library 2.4.12 → 2.4.14

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 e}from"react/jsx-runtime";import{Card as l,CardContent as r}from"@mui/material";import{MetricStat as t}from"./MetricStat.mjs";const a={xs:0,sm:.3,md:.5,lg:1},o=({label:o,value:i,delta:m,deltaColor:d,size:s})=>{const c=a[s??"md"];return e(l,{sx:{boxShadow:"none"},children:e(r,{sx:{p:c,"&:last-child":{pb:c}},children:e(t,{label:o,value:i,delta:m,deltaColor:d,size:s})})})};o.displayName="MetricCard";export{o as MetricCard};
1
+ import{jsx as e}from"react/jsx-runtime";import{Card as l,CardContent as r}from"@mui/material";import{MetricStat as o}from"./MetricStat.mjs";const a={xs:0,sm:.3,md:.5,lg:1},t=({label:t,value:i,delta:m,deltaColor:d,valueColor:s,size:c})=>{const n=a[c??"md"];return e(l,{sx:{boxShadow:"none"},children:e(r,{sx:{p:n,"&:last-child":{pb:n}},children:e(o,{label:t,value:i,delta:m,deltaColor:d,valueColor:s,size:c})})})};t.displayName="MetricCard";export{t as MetricCard};
@@ -1 +1 @@
1
- import{jsxs as r,jsx as e}from"react/jsx-runtime";import{Stack as i}from"./_Primitives/Stack.mjs";import{H4 as o,MetricValue as a,Caption as l}from"./Typography.mjs";const t=({label:t,value:s,delta:c,deltaColor:m,valueColor:n,size:p,sx:d})=>r(i,{sx:[{gap:.25},...Array.isArray(d)?d:d?[d]:[]],children:[e(o,{children:t}),r(i,{direction:"row",sx:{alignItems:"baseline",gap:1},children:[e(a,{size:p,color:n,children:s}),c&&e(l,{component:"span",sx:m?{color:m}:void 0,children:c})]})]});t.displayName="MetricStat";export{t as MetricStat};
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";import{Stack as i}from"./_Primitives/Stack.mjs";import{H4 as o,MetricValue as a,Caption as l}from"./Typography.mjs";const s=({label:s,value:t,delta:c,deltaColor:m,valueColor:n,size:d,sx:p})=>r(i,{sx:[{gap:.25},...Array.isArray(p)?p:p?[p]:[]],children:[e(o,{children:s}),r(i,{direction:"row",sx:{alignItems:"baseline",gap:1},children:[e(a,{size:d,sx:n?{color:n}:void 0,children:t}),c&&e(l,{component:"span",sx:m?{color:m}:void 0,children:c})]})]});s.displayName="MetricStat";export{s as MetricStat};
@@ -1 +1 @@
1
- const o="2.4.12";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.4.14";export{o as SAGE_NEXUS_UI_VERSION};
package/dist/index.d.ts CHANGED
@@ -597,7 +597,7 @@ type MetricCardProps = MetricStatProps;
597
597
  * ```
598
598
  */
599
599
  declare const MetricCard: {
600
- ({ label, value, delta, deltaColor, size, }: MetricCardProps): react.JSX.Element;
600
+ ({ label, value, delta, deltaColor, valueColor, size, }: MetricCardProps): react.JSX.Element;
601
601
  displayName: string;
602
602
  };
603
603
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "it-data-nexus-ui-library",
3
- "version": "2.4.12",
3
+ "version": "2.4.14",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",