it-data-nexus-ui-library 2.9.7 → 2.9.8
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 t}from"react/jsx-runtime";import{useTheme as e,alpha as r}from"@mui/material";import{Chip as o}from"./_Primitives/Chip.mjs";const i=({minWidth:i=64,tone:a,sx:m
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useTheme as e,alpha as r}from"@mui/material";import{Chip as o}from"./_Primitives/Chip.mjs";const i=({minWidth:i=64,tone:a,filled:n=!1,sx:l,...m})=>{const s=e();let p;"positive"===a?p=s.palette.success.main:"negative"===a?p=s.palette.error.main:"unavailable"===a&&(p=s.palette.text.secondary);const c="dark"===s.palette.mode?.22:.12;return t(o,{variant:"outlined",sx:{minWidth:`${i}px`,...p&&{color:p,borderColor:p,backgroundColor:n?r(p,c):"transparent","& .MuiChip-label":{color:p}},...l},...m})};export{i as DeltaChip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.9.
|
|
1
|
+
const o="2.9.8";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -934,8 +934,9 @@ type DeltaChipTone = "positive" | "negative" | "unavailable";
|
|
|
934
934
|
interface DeltaChipProps extends ChipProps {
|
|
935
935
|
minWidth?: number;
|
|
936
936
|
tone?: DeltaChipTone;
|
|
937
|
+
filled?: boolean;
|
|
937
938
|
}
|
|
938
|
-
declare const DeltaChip: ({ minWidth, tone, sx, ...props }: DeltaChipProps) => react.JSX.Element;
|
|
939
|
+
declare const DeltaChip: ({ minWidth, tone, filled, sx, ...props }: DeltaChipProps) => react.JSX.Element;
|
|
939
940
|
|
|
940
941
|
declare const Divider: ({ children, ...rest }: DividerProps) => react.JSX.Element;
|
|
941
942
|
|