it-data-nexus-ui-library 2.9.8 → 2.9.9
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 e}from"react/jsx-runtime";import{useTheme as t,alpha as r}from"@mui/material";import{Chip as i}from"./_Primitives/Chip.mjs";const o=({minWidth:o=64,tone:a,filled:n=!1,size:l,sx:m,...s})=>{const p=t();let c;"positive"===a?c=p.palette.success.main:"negative"===a?c=p.palette.error.main:"unavailable"===a&&(c=p.palette.text.secondary);const d="dark"===p.palette.mode?.22:.12;return e(i,{variant:"outlined",size:l,sx:{minWidth:`${o}px`,...c&&{color:c,borderColor:c,backgroundColor:n?r(c,d):"transparent","& .MuiChip-label":{color:c}},...m},...s})};export{o as DeltaChip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Chip as i}from"@mui/material";const r=r=>{const{size:e,sx:m,...s}=r,o="xs"===e;return t(i,{size:o?"small":e,sx:{...o&&{height:"16px",fontSize:"0.65rem !important",padding:"1px"},...m},...s})};export{r as Chip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.9.
|
|
1
|
+
const o="2.9.9";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -928,15 +928,18 @@ interface FormDialogProps extends Omit<DialogProps, "aria-labelledby" | "childre
|
|
|
928
928
|
*/
|
|
929
929
|
declare const FormDialog: ({ actions, children, closeDisabled, maxWidth, onClose, onSubmit, open, sx, title, ...dialogProps }: FormDialogProps) => react.JSX.Element;
|
|
930
930
|
|
|
931
|
-
declare const Chip: (props: ChipProps
|
|
931
|
+
declare const Chip: (props: ChipProps & {
|
|
932
|
+
size?: string;
|
|
933
|
+
}) => react.JSX.Element;
|
|
932
934
|
|
|
933
935
|
type DeltaChipTone = "positive" | "negative" | "unavailable";
|
|
934
|
-
interface DeltaChipProps extends ChipProps {
|
|
936
|
+
interface DeltaChipProps extends Omit<ChipProps, "size"> {
|
|
935
937
|
minWidth?: number;
|
|
936
938
|
tone?: DeltaChipTone;
|
|
937
939
|
filled?: boolean;
|
|
940
|
+
size?: "small" | "medium" | "xs";
|
|
938
941
|
}
|
|
939
|
-
declare const DeltaChip: ({ minWidth, tone, filled, sx, ...props }: DeltaChipProps) => react.JSX.Element;
|
|
942
|
+
declare const DeltaChip: ({ minWidth, tone, filled, size, sx, ...props }: DeltaChipProps) => react.JSX.Element;
|
|
940
943
|
|
|
941
944
|
declare const Divider: ({ children, ...rest }: DividerProps) => react.JSX.Element;
|
|
942
945
|
|