it-data-nexus-ui-library 2.4.17 → 2.4.19
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{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:
|
|
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:s,deltaColor:m,valueColor:d,size:c,cardSx:x,sx:n})=>{const p=o[c??"md"];return r(e,{sx:[{boxShadow:"none"},...Array.isArray(x)?x:x?[x]:[]],children:r(l,{sx:{p:p,"&:last-child":{pb:p}},children:r(a,{label:t,value:i,delta:s,deltaColor:m,valueColor:d,size:c,sx:n})})})};t.displayName="MetricCard";export{t as MetricCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as l}from"react/jsx-runtime";import{FormControl as i,InputLabel as r,Select as a,MenuItem as o}from"@mui/material";export{MenuItem}from"@mui/material";const t=({label:t,options:
|
|
1
|
+
import{jsxs as e,jsx as l}from"react/jsx-runtime";import{FormControl as i,InputLabel as r,Select as a,MenuItem as o}from"@mui/material";export{MenuItem}from"@mui/material";const t=({label:t,options:d,formControlSx:m,id:n,children:s,size:c="small",...u})=>{const b=n?`${n}-label`:void 0;return e(i,{size:c,sx:m,children:[t&&l(r,{id:b,children:t}),l(a,{id:n,labelId:b,label:t,size:c,...u,children:d?d.map(e=>l(o,{value:e.value,disabled:e.disabled,children:e.label},e.value)):s})]})};export{t as Select};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.4.
|
|
1
|
+
const o="2.4.19";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -433,6 +433,7 @@ declare const Link: ({ openInNewTab, children, sx, ...rest }: LinkProps) => reac
|
|
|
433
433
|
interface SelectOption {
|
|
434
434
|
value: string;
|
|
435
435
|
label: string;
|
|
436
|
+
disabled?: boolean;
|
|
436
437
|
}
|
|
437
438
|
interface SelectProps extends Omit<SelectProps$1, "label"> {
|
|
438
439
|
/** Floating label rendered above the select. */
|
|
@@ -590,6 +591,8 @@ declare const MetricStat: {
|
|
|
590
591
|
interface MetricCardProps extends MetricStatProps {
|
|
591
592
|
/** Applied to the outer Card — use for layout (flex, width) or decoration (border, borderRadius). */
|
|
592
593
|
cardSx?: SxProps<Theme>;
|
|
594
|
+
/** Applied to the inner MetricStat Stack — use for alignment (e.g. `alignItems: 'center'`). */
|
|
595
|
+
sx?: SxProps<Theme>;
|
|
593
596
|
}
|
|
594
597
|
/**
|
|
595
598
|
* A MetricStat inside a solid Card. Padding scales down for `size="xs"`.
|
|
@@ -600,7 +603,7 @@ interface MetricCardProps extends MetricStatProps {
|
|
|
600
603
|
* ```
|
|
601
604
|
*/
|
|
602
605
|
declare const MetricCard: {
|
|
603
|
-
({ label, value, delta, deltaColor, valueColor, size, cardSx, }: MetricCardProps): react.JSX.Element;
|
|
606
|
+
({ label, value, delta, deltaColor, valueColor, size, cardSx, sx, }: MetricCardProps): react.JSX.Element;
|
|
604
607
|
displayName: string;
|
|
605
608
|
};
|
|
606
609
|
|