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
|
|
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.
|
|
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;
|