it-data-nexus-ui-library 2.4.1 → 2.4.2
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
|
|
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 +1 @@
|
|
|
1
|
-
const o="2.4.
|
|
1
|
+
const o="2.4.2";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -581,15 +581,15 @@ declare const MetricStat: {
|
|
|
581
581
|
|
|
582
582
|
type MetricCardProps = MetricStatProps;
|
|
583
583
|
/**
|
|
584
|
-
* A MetricStat inside a solid Card
|
|
585
|
-
* GlassPaper where metric values need a solid background to remain readable.
|
|
584
|
+
* A MetricStat inside a solid Card. Padding scales down for `size="xs"`.
|
|
585
|
+
* Use inside GlassCard or GlassPaper where metric values need a solid background to remain readable.
|
|
586
586
|
*
|
|
587
587
|
* ```tsx
|
|
588
588
|
* <MetricCard label="Monthly Active Users" value="1.35M" delta="+13%" deltaColor={ragColorForDelta('+13%')} />
|
|
589
589
|
* ```
|
|
590
590
|
*/
|
|
591
591
|
declare const MetricCard: {
|
|
592
|
-
({ label, value, delta, deltaColor, size }: MetricCardProps): react.JSX.Element;
|
|
592
|
+
({ label, value, delta, deltaColor, size, }: MetricCardProps): react.JSX.Element;
|
|
593
593
|
displayName: string;
|
|
594
594
|
};
|
|
595
595
|
|