it-data-nexus-ui-library 2.9.8 → 2.9.10

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,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
+ 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 r}from"react/jsx-runtime";import{Chip as m}from"@mui/material";const t=t=>r(m,{...t});export{t as Chip};
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.8";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.9.10";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) => react.JSX.Element;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "it-data-nexus-ui-library",
3
- "version": "2.9.8",
3
+ "version": "2.9.10",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",