it-data-nexus-ui-library 2.11.7 → 2.11.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 r}from"react/jsx-runtime";import{useTheme as e}from"@mui/material/styles";import{colours as o}from"./Theme/tokens.mjs";import{Chip as a}from"./_Primitives/Chip.mjs";const t=({variant:t="neutral",label:l})=>{const i=e(),n="dark"===i.palette.mode,b={success:{bg:n?"rgba(0, 166, 92, 0.18)":"rgba(0, 166, 92, 0.12)",color:n?o.brilliantGreen:o.jadeDark},warning:{bg:n?"rgba(233, 135, 91, 0.18)":"rgba(233, 135, 91, 0.12)",color:n?o.amber:o.amberDark},error:{bg:n?"rgba(204, 15, 75, 0.18)":"rgba(204, 15, 75, 0.10)",color:n?o.cherryLight:o.cherry},info:{bg:n?"rgba(0, 214, 222, 0.14)":"rgba(45, 96, 255, 0.10)",color:n?o.cyan:o.navy},neutral:{bg:i.palette.action.hover,color:i.palette.text.secondary}},{bg:m,color:g}=b[t];return r(a,{label:l,size:"small",sx:{backgroundColor:m,color:g,border:"none",boxShadow:"none",fontWeight:600,fontSize:"0.7rem",height:22,"& .MuiChip-label":{px:1.25}}})};export{t as StatusBadge};
1
+ import{jsx as r}from"react/jsx-runtime";import{useTheme as o}from"@mui/material/styles";import{colours as e}from"./Theme/tokens.mjs";import{Chip as a}from"./_Primitives/Chip.mjs";const t=({variant:t="neutral",label:l,outlined:i=!1})=>{const n=o(),b="dark"===n.palette.mode,m={success:{bg:b?"rgba(0, 166, 92, 0.18)":"rgba(0, 166, 92, 0.12)",color:b?e.brilliantGreen:e.jadeDark},warning:{bg:b?"rgba(233, 135, 91, 0.18)":"rgba(233, 135, 91, 0.12)",color:b?e.amber:e.amberDark},error:{bg:b?"rgba(204, 15, 75, 0.18)":"rgba(204, 15, 75, 0.10)",color:b?e.cherryLight:e.cherry},info:{bg:b?"rgba(0, 214, 222, 0.14)":"rgba(45, 96, 255, 0.10)",color:b?e.cyan:e.navy},neutral:{bg:n.palette.action.hover,color:n.palette.text.secondary}},{bg:g,color:c}=m[t];return r(a,{label:l,size:"small",sx:{backgroundColor:g,color:c,border:i?`1px solid ${c}`:"none",boxShadow:"none",fontWeight:600,fontSize:"0.7rem",height:22,"& .MuiChip-label":{px:1.25}}})};export{t as StatusBadge};
@@ -1 +1 @@
1
- const o="2.11.7";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.11.8";export{o as SAGE_NEXUS_UI_VERSION};
package/dist/index.d.ts CHANGED
@@ -591,6 +591,7 @@ type StatusBadgeVariant = "success" | "warning" | "error" | "info" | "neutral";
591
591
  interface StatusBadgeProps {
592
592
  variant?: StatusBadgeVariant;
593
593
  label: string;
594
+ outlined?: boolean;
594
595
  }
595
596
  /**
596
597
  * Inline semantic status pill.
@@ -602,7 +603,7 @@ interface StatusBadgeProps {
602
603
  * For RAG-specific statuses (On Track / At Risk / Off Track) prefer `RagChip`.
603
604
  * For domain-specific workflow statuses prefer `StatusChip`.
604
605
  */
605
- declare const StatusBadge: ({ variant, label, }: StatusBadgeProps) => react.JSX.Element;
606
+ declare const StatusBadge: ({ variant, label, outlined, }: StatusBadgeProps) => react.JSX.Element;
606
607
 
607
608
  interface SegmentedControlOption<T extends string = string> {
608
609
  label: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "it-data-nexus-ui-library",
3
- "version": "2.11.7",
3
+ "version": "2.11.8",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",