UNPKG

p3x-redis-ui-material

Version:

💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity

1 lines • 2.32 kB
import{i as e}from"./chunk-DseTPa7n.js";import{B as t,C as n,Q as r,V as i,b as a,j as o,w as s,x as c,z as l}from"./Box-CXFf6N2h.js";import{o as u}from"./i18n.store-fGbhAfs-.js";import{t as d}from"./createSimplePaletteValueFilter-CS4iIFa3.js";var f=e(u(),1);function p(e){return t(`MuiTypography`,e)}l(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]);var m=r(),h=e=>{let{align:t,gutterBottom:r,noWrap:i,variant:a,classes:s}=e;return o({root:[`root`,a,e.align!==`inherit`&&`align${n(t)}`,r&&`gutterBottom`,i&&`noWrap`]},p,s)},g=s(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!==`inherit`&&t[`align${n(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom]}})(c(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(d()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${n(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),_={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},v=f.forwardRef(function(e,t){let n=a({props:e,name:`MuiTypography`}),{color:r,align:o=`inherit`,className:s,component:c,gutterBottom:l=!1,noWrap:u=!1,variant:d=`body1`,variantMapping:f=_,...p}=n,v={...n,align:o,color:r,className:s,component:c,gutterBottom:l,noWrap:u,variant:d,variantMapping:f};return(0,m.jsx)(g,{as:c||f[d]||_[d]||`span`,ref:t,className:i(h(v).root,s),...p,ownerState:v,style:{...o!==`inherit`&&{"--Typography-textAlign":o},...p.style}})});export{v as t};