it-data-nexus-ui-library 2.4.14 → 2.4.15
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
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{Card as e,CardContent as l}from"@mui/material";import{MetricStat as a}from"./MetricStat.mjs";const o={xs:0,sm:.3,md:.5,lg:1},t=({label:t,value:i,delta:m,deltaColor:d,valueColor:s,size:c,cardSx:n})=>{const p=o[c??"md"];return r(e,{sx:[{boxShadow:"none"},...Array.isArray(n)?n:n?[n]:[]],children:r(l,{sx:{p:p,"&:last-child":{pb:p}},children:r(a,{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
|
|
1
|
+
import{jsxs as r,jsx as o}from"react/jsx-runtime";import{Stack as e}from"./_Primitives/Stack.mjs";import{H4 as i,MetricValue as a,Caption as l}from"./Typography.mjs";const s=({label:s,value:t,delta:c,deltaColor:n,valueColor:m,size:d,sx:p})=>r(e,{sx:[{gap:.25},...Array.isArray(p)?p:p?[p]:[]],children:[o(i,{sx:{color:"text.secondary"},children:s}),r(e,{direction:"row",sx:{alignItems:"baseline",gap:1},children:[o(a,{size:d,sx:m?{color:m}:void 0,children:t}),c&&o(l,{component:"span",sx:n?{color:n}:void 0,children:c})]})]});s.displayName="MetricStat";export{s as MetricStat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.4.
|
|
1
|
+
const o="2.4.15";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -587,7 +587,10 @@ declare const MetricStat: {
|
|
|
587
587
|
displayName: string;
|
|
588
588
|
};
|
|
589
589
|
|
|
590
|
-
|
|
590
|
+
interface MetricCardProps extends MetricStatProps {
|
|
591
|
+
/** Applied to the outer Card — use for layout (flex, width) or decoration (border, borderRadius). */
|
|
592
|
+
cardSx?: SxProps<Theme>;
|
|
593
|
+
}
|
|
591
594
|
/**
|
|
592
595
|
* A MetricStat inside a solid Card. Padding scales down for `size="xs"`.
|
|
593
596
|
* Use inside GlassCard or GlassPaper where metric values need a solid background to remain readable.
|
|
@@ -597,7 +600,7 @@ type MetricCardProps = MetricStatProps;
|
|
|
597
600
|
* ```
|
|
598
601
|
*/
|
|
599
602
|
declare const MetricCard: {
|
|
600
|
-
({ label, value, delta, deltaColor, valueColor, size, }: MetricCardProps): react.JSX.Element;
|
|
603
|
+
({ label, value, delta, deltaColor, valueColor, size, cardSx, }: MetricCardProps): react.JSX.Element;
|
|
601
604
|
displayName: string;
|
|
602
605
|
};
|
|
603
606
|
|