it-data-nexus-ui-library 2.10.15 → 2.10.16
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 i,jsxs as e}from"react/jsx-runtime";import{AiCard as t}from"./AiCard.mjs";import{ButtonBase as
|
|
1
|
+
import{jsx as i,jsxs as e}from"react/jsx-runtime";import{alpha as r}from"@mui/material/styles";import{AiCard as t}from"./AiCard.mjs";import{ButtonBase as o}from"./Buttons/ButtonBase.mjs";import{Card as s}from"./Card.mjs";import{H2 as a,H3 as d}from"./Typography.mjs";import{Stack as n}from"./_Primitives/Stack.mjs";import l from"@mui/material/Box";const x=i=>Array.isArray(i)?i:i?[i]:[],m=({ai:m=!1,title:p,subtitle:h,maxWidth:c=350,display:f=!1,icon:u,headerAdornment:b,children:y,footer:g,sx:v,cardSx:S,contentSx:w,headerSx:C,headerAdornmentSx:j,iconSx:A,titleSx:R,subtitleSx:B,bodySx:I,footerSx:W,...D})=>{const $=m?t:s;return i(o,{...D,sx:[{alignItems:"stretch",borderRadius:f?{xs:2,sm:4}:1,maxWidth:c,textAlign:"left",transition:"filter .18s ease","&:hover > div":{boxShadow:i=>`0 8px 20px ${r(i.palette.text.primary,.12)}, 0 1px 3px ${r(i.palette.text.primary,.07)}`,borderColor:i=>r(i.palette.primary.main,.7)},"&:active":{filter:"brightness(.98)",transitionDuration:".08s"},"&:active > div":{boxShadow:i=>`0 2px 6px ${r(i.palette.text.primary,.1)}`,transitionDuration:".08s"},"&:focus-visible":{outline:"2px solid",outlineColor:"primary.main",outlineOffset:3},"&.Mui-disabled":{opacity:.5},"& > div":{display:"flex",width:"100%",height:"100%",transition:"box-shadow .18s ease, border-color .18s ease",borderRadius:f?{xs:2,sm:4}:void 0},"& > div::before":{borderRadius:f?{xs:2,sm:4}:void 0},"& > div::after":{borderRadius:f?{xs:2,sm:4}:void 0}},...x(v)],children:i($,{sx:[{width:"100%",height:"100%",borderRadius:f?{xs:2,sm:4}:void 0,border:m?"none":"1px solid",borderColor:m?void 0:i=>r(i.palette.primary.main,.5),"& .MuiCardContent-root":{display:"flex",width:"100%",height:"100%",flexDirection:"column"}},...x(S)],children:e(n,{sx:[{width:"100%",height:"100%",gap:1.5},...x(w)],children:[e(n,{direction:"row",sx:[{alignItems:"flex-start",justifyContent:"space-between",gap:1,flexWrap:"wrap"},...x(C)],children:[e(n,{direction:"row",sx:{alignItems:"center",gap:1,minWidth:0},children:[u&&i(l,{sx:[{display:"flex",alignItems:"center",flexShrink:0},...x(A)],children:u}),i(a,{sx:R,children:p})]}),b&&i(l,{sx:j,children:b})]}),h&&i(d,{sx:[{color:"text.secondary"},...x(B)],children:h}),y&&i(n,{sx:[{gap:1},...x(I)],children:y}),g&&i(n,{sx:[{mt:"auto"},...x(W)],children:g})]})})})},p=e=>i(m,{...e}),h=e=>i(m,{...e,ai:!0});export{h as AiButtonTile,p as ButtonTile};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.10.
|
|
1
|
+
const o="2.10.16";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -898,6 +898,8 @@ interface ButtonTileProps extends Omit<ButtonBaseProps, "children" | "title"> {
|
|
|
898
898
|
icon?: ReactNode;
|
|
899
899
|
/** Non-interactive content displayed at the end of the title row, such as a status badge. */
|
|
900
900
|
headerAdornment?: ReactNode;
|
|
901
|
+
/** Applies the display-scale border radius (16px mobile / 32px desktop) for marketing and website contexts. */
|
|
902
|
+
display?: boolean;
|
|
901
903
|
children?: ReactNode;
|
|
902
904
|
footer?: ReactNode;
|
|
903
905
|
cardSx?: SxProps<Theme>;
|