it-data-nexus-ui-library 2.6.3 → 2.6.4
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{Chip as o}from"@mui/material";import{alpha as r}from"@mui/material/styles";import{colours as a}from"../theme/tokens.mjs";const t={active:e=>({color:e.palette.success.contrastText,backgroundColor:e.palette.success.main,border:"none",boxShadow:"none"}),interview:e=>({color:"dark"===e.palette.mode?a.black:a.white,backgroundColor:"dark"===e.palette.mode?a.brilliantGreen:a.jade,border:"none",boxShadow:"none"}),stage:e=>({color:"dark"===e.palette.mode?a.brilliantGreen:a.jade,backgroundColor:"transparent",border:`1px solid ${"dark"===e.palette.mode?a.brilliantGreen:a.jade}`,boxShadow:"none"}),"application stage":e=>({color:"dark"===e.palette.mode?a.brilliantGreen:a.jade,backgroundColor:"transparent",border:`1px solid ${"dark"===e.palette.mode?a.brilliantGreen:a.jade}`,boxShadow:"none"}),closed:e=>({color:"dark"===e.palette.mode?a.white:"#1E2328",backgroundColor:"dark"===e.palette.mode?"rgba(255, 255, 255, 0.16)":"#A7B0B8",border:"none",boxShadow:"none"}),rejected:e=>({color:a.white,backgroundColor:a.cherry,border:"none",boxShadow:"none"}),"on hold":e=>({color:"dark"===e.palette.mode?a.black:"#4A2A00",backgroundColor:"dark"===e.palette.mode?r(a.amber,.92):r(a.amber,.72),border:"none",boxShadow:"none"}),"on-hold":e=>({color:"dark"===e.palette.mode?a.black:"#4A2A00",backgroundColor:"dark"===e.palette.mode?r(a.amber,.92):r(a.amber,.72),border:"none",boxShadow:"none"}),withdrew:e=>({color:"dark"===e.palette.mode?a.black:"#4A2A00",backgroundColor:"dark"===e.palette.mode?r(a.amber,.92):r(a.amber,.72),border:"none",boxShadow:"none"}),"not this vacancy":e=>({color:a.white,backgroundColor:a.navy,border:"none",boxShadow:"none"}),"not-this-vacancy":e=>({color:a.white,backgroundColor:a.navy,border:"none",boxShadow:"none"}),default:e=>({color:e.palette.text.primary,backgroundColor:r(e.palette.text.secondary??"#000","dark"===e.palette.mode?.22:.12),border:"none",boxShadow:"none"})},n={default:{height:28,"& .MuiChip-label":{px:1.25}},small:{height:22,fontSize:"0.75rem","& .MuiChip-label":{px:.875}}},d=({status:r,label:a,chipSize:d="default",sx:l,...b})=>{const i=(e=>String(e??"default").trim().toLowerCase())(r),c=t[i]??t.default,m=n[d]??n.default;return e(o,{...b,label:a??r??"Unknown",size:"small",sx:e=>({borderRadius:999,fontWeight:500,letterSpacing:"0.01em",...m,...c(e),..."function"==typeof l?l(e):l})})};export{d as StatusChip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Switch as i}from"@mui/material";const r=({sx:r,...e})=>t(i,{...e,sx:[t=>({"& .MuiSwitch-switchBase:not(.Mui-checked) .MuiSwitch-thumb":{backgroundColor:"light"===t.palette.mode?t.palette.text.secondary:void 0}}),...Array.isArray(r)?r:r?[r]:[]]});export{r as Switch};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.6.
|
|
1
|
+
const o="2.6.4";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -549,7 +549,7 @@ interface BreadcrumbsProps {
|
|
|
549
549
|
*/
|
|
550
550
|
declare const Breadcrumbs: ({ items, ariaLabel, maxItems, }: BreadcrumbsProps) => react.JSX.Element;
|
|
551
551
|
|
|
552
|
-
declare const Switch: (props: SwitchProps) => react.JSX.Element;
|
|
552
|
+
declare const Switch: ({ sx, ...props }: SwitchProps) => react.JSX.Element;
|
|
553
553
|
|
|
554
554
|
declare const Slider: (props: SliderProps) => react.JSX.Element;
|
|
555
555
|
|