@atomazing-org/design-system 1.1.3 → 1.2.0
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.
- package/README.MD +4 -3
- package/dist/{chunk-GDOB3KHW.mjs → chunk-JBLCVRJT.mjs} +2 -2
- package/dist/chunk-JBLCVRJT.mjs.map +1 -0
- package/dist/index.d.mts +12 -23
- package/dist/index.d.ts +12 -23
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -21
- package/dist/index.mjs.map +1 -1
- package/dist/presets/index.d.mts +1 -1
- package/dist/presets/index.d.ts +1 -1
- package/dist/presets/index.js +1 -1
- package/dist/presets/index.js.map +1 -1
- package/dist/presets/index.mjs +1 -1
- package/dist/{typography-CzDswRl0.d.mts → typography-Dq0wCojD.d.mts} +3 -6
- package/dist/{typography-CzDswRl0.d.ts → typography-Dq0wCojD.d.ts} +3 -6
- package/package.json +1 -1
- package/dist/chunk-GDOB3KHW.mjs.map +0 -1
package/README.MD
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Modern MUI v7 + Emotion design system with strongly differentiated visual presets, scheme-based light/dark tokens, SSR-safe theming, and persistence.
|
|
4
4
|
|
|
5
5
|
## Preview
|
|
6
|
-

|
|
7
7
|
|
|
8
8
|
## Contents
|
|
9
9
|
- Preview
|
|
@@ -65,6 +65,7 @@ Built-in presets:
|
|
|
65
65
|
- Modern Minimal
|
|
66
66
|
- Neo Glass
|
|
67
67
|
- Retro Terminal
|
|
68
|
+
- Kids Cartoon
|
|
68
69
|
|
|
69
70
|
## Dark mode
|
|
70
71
|
`darkMode` controls which scheme is active. Supported values:
|
|
@@ -141,11 +142,11 @@ Duplicate preset ids are resolved by last-wins while preserving the first-occurr
|
|
|
141
142
|
### ThemeProviderWrapper
|
|
142
143
|
| Prop | Type | Default | Description |
|
|
143
144
|
| --- | --- | --- | --- |
|
|
144
|
-
| `themes` | `ThemesInput` | `Default` preset | `ThemePreset[]`
|
|
145
|
+
| `themes` | `ThemesInput` | `Default` preset | `ThemePreset[]` list used for runtime preset selection. |
|
|
145
146
|
| `fontFamily` | `string` | `undefined` | Optional global font stack. |
|
|
146
147
|
| `children` | `ReactNode` | required | Application content. |
|
|
147
148
|
|
|
148
|
-
|
|
149
|
+
`ThemeProviderWrapper` no longer supports legacy theme tuple/object contracts (`Theme1`, `ThemeN`, `ThemesProp`) and expects `ThemePreset[]` only.
|
|
149
150
|
|
|
150
151
|
### ThemePreset
|
|
151
152
|
| Field | Type | Description |
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{alpha as p}from"@mui/material/styles";var f='"Source Serif 4","Noto Naskh Arabic","Tajawal","Cairo","Georgia","Times New Roman",serif',P={name:"Editorial Classic",direction:"rtl",palette:{mode:"light",primary:{main:"#111827",dark:"#0B1220",light:"#374151",contrastText:"#FFFFFF"},secondary:{main:"#7F1D1D",dark:"#5B1414",light:"#B91C1C",contrastText:"#FFFFFF"},info:{main:"#1D4ED8",dark:"#1E40AF",light:"#60A5FA",contrastText:"#FFFFFF"},success:{main:"#166534",dark:"#14532D",light:"#4ADE80",contrastText:"#FFFFFF"},warning:{main:"#B45309",dark:"#92400E",light:"#F59E0B",contrastText:"#0B1220"},error:{main:"#B91C1C",dark:"#991B1B",light:"#EF4444",contrastText:"#FFFFFF"},background:{default:"#FBF7F0",paper:"#FFFFFF"},text:{primary:"#111827",secondary:"#4B5563",disabled:p("#111827",.45)},divider:p("#111827",.12),grey:{50:"#FFFEFC",100:"#FBF7F0",200:"#F1E8DD",300:"#E4D7C7",400:"#CBB9A4",500:"#9B8A78",600:"#6B5E52",700:"#4B3F37",800:"#2A2624",900:"#111827"},action:{hover:p("#111827",.06),selected:p("#111827",.12),focus:p("#1D4ED8",.18),active:p("#111827",.54),disabled:p("#111827",.32),disabledBackground:p("#111827",.08)}},typography:{fontFamily:f,h1:{fontWeight:800,fontSize:"2.1rem",lineHeight:1.2,letterSpacing:"-0.02em"},h2:{fontWeight:800,fontSize:"1.6rem",lineHeight:1.25,letterSpacing:"-0.01em"},h3:{fontWeight:800,fontSize:"1.3rem",lineHeight:1.3},h4:{fontWeight:700,fontSize:"1.125rem",lineHeight:1.4},subtitle1:{fontWeight:700,fontSize:"0.95rem"},subtitle2:{fontWeight:700,fontSize:"0.875rem"},body1:{fontSize:"1rem",lineHeight:1.85},body2:{fontSize:"0.9rem",lineHeight:1.75},button:{textTransform:"none",fontWeight:700},caption:{fontSize:"0.78rem"},overline:{fontSize:"0.75rem",letterSpacing:"0.12em"}},shape:{borderRadius:10},spacing:8,components:{MuiCssBaseline:{styleOverrides:d=>({body:{backgroundColor:d.palette.background.default,color:d.palette.text.primary}})},MuiPaper:{styleOverrides:{root:({theme:d})=>({borderRadius:12,backgroundImage:"none",border:`1px solid ${p(d.palette.text.primary,.08)}`})}},MuiCard:{styleOverrides:{root:({theme:d})=>({borderRadius:14,border:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:d})=>({backgroundColor:d.palette.background.paper,borderBottom:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:10,paddingInline:16,paddingBlock:9},outlined:{borderWidth:1}}},MuiLink:{styleOverrides:{root:{textDecorationThickness:"2px",textUnderlineOffset:"3px"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:10},notchedOutline:({theme:d})=>({borderColor:p(d.palette.text.primary,.18)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:700}}},MuiTabs:{styleOverrides:{root:{minHeight:44},indicator:{height:2,borderRadius:2}}},MuiTab:{styleOverrides:{root:{minHeight:44,fontWeight:700,paddingInline:14}}},MuiTableHead:{styleOverrides:{root:({theme:d})=>({backgroundColor:p(d.palette.text.primary,.04)})}},MuiTableCell:{styleOverrides:{head:({theme:d})=>({fontWeight:800,borderBottom:`1px solid ${p(d.palette.text.primary,.12)}`}),body:({theme:d})=>({borderBottom:`1px solid ${p(d.palette.text.primary,.08)}`})}},MuiDivider:{styleOverrides:{root:({theme:d})=>({borderColor:d.palette.divider})}},MuiAlert:{styleOverrides:{root:({theme:d})=>({borderRadius:12,border:`1px solid ${p(d.palette.text.primary,.08)}`})}},MuiTooltip:{styleOverrides:{tooltip:{borderRadius:10,fontSize:"0.8rem"}}},MuiSnackbarContent:{styleOverrides:{root:{borderRadius:12}}}}},G={name:"Editorial Classic Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#E5E7EB",dark:"#CBD5E1",light:"#F3F4F6",contrastText:"#0B1220"},secondary:{main:"#FB7185",dark:"#EF4444",light:"#FDA4AF",contrastText:"#0B1220"},info:{main:"#60A5FA",dark:"#3B82F6",light:"#93C5FD",contrastText:"#0B1220"},success:{main:"#34D399",dark:"#10B981",light:"#A7F3D0",contrastText:"#0B1220"},warning:{main:"#FBBF24",dark:"#F59E0B",light:"#FDE68A",contrastText:"#0B1220"},error:{main:"#FB7185",dark:"#EF4444",light:"#FDA4AF",contrastText:"#0B1220"},background:{default:"#0E1116",paper:"#141A22"},text:{primary:"#F3F4F6",secondary:"#A8B0BC",disabled:p("#F3F4F6",.45)},divider:p("#F3F4F6",.14),grey:{50:"#0E1116",100:"#141A22",200:"#1B2431",300:"#243245",400:"#31435C",500:"#4A5A78",600:"#6B7A95",700:"#A8B0BC",800:"#E5E7EB",900:"#F3F4F6"},action:{hover:p("#F3F4F6",.08),selected:p("#F3F4F6",.12),focus:p("#60A5FA",.22),active:p("#F3F4F6",.54),disabled:p("#F3F4F6",.32),disabledBackground:p("#F3F4F6",.08)}},typography:{fontFamily:f,h1:{fontWeight:800,fontSize:"2.1rem",lineHeight:1.2,letterSpacing:"-0.02em"},h2:{fontWeight:800,fontSize:"1.6rem",lineHeight:1.25,letterSpacing:"-0.01em"},h3:{fontWeight:800,fontSize:"1.3rem",lineHeight:1.3},h4:{fontWeight:700,fontSize:"1.125rem",lineHeight:1.4},subtitle1:{fontWeight:700,fontSize:"0.95rem"},subtitle2:{fontWeight:700,fontSize:"0.875rem"},body1:{fontSize:"1rem",lineHeight:1.85},body2:{fontSize:"0.9rem",lineHeight:1.75},button:{textTransform:"none",fontWeight:700},caption:{fontSize:"0.78rem"},overline:{fontSize:"0.75rem",letterSpacing:"0.12em"}},shape:{borderRadius:10},spacing:8,components:{MuiCssBaseline:{styleOverrides:d=>({body:{backgroundColor:d.palette.background.default,color:d.palette.text.primary}})},MuiPaper:{styleOverrides:{root:({theme:d})=>({borderRadius:12,backgroundImage:"none",border:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiCard:{styleOverrides:{root:({theme:d})=>({borderRadius:14,border:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:d})=>({backgroundColor:d.palette.background.paper,borderBottom:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:10,paddingInline:16,paddingBlock:9},outlined:{borderWidth:1}}},MuiLink:{styleOverrides:{root:{textDecorationThickness:"2px",textUnderlineOffset:"3px"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:10},notchedOutline:({theme:d})=>({borderColor:p(d.palette.text.primary,.18)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:700}}},MuiTabs:{styleOverrides:{root:{minHeight:44},indicator:{height:2,borderRadius:2}}},MuiTab:{styleOverrides:{root:{minHeight:44,fontWeight:700,paddingInline:14}}},MuiTableHead:{styleOverrides:{root:({theme:d})=>({backgroundColor:p(d.palette.text.primary,.06)})}},MuiTableCell:{styleOverrides:{head:({theme:d})=>({fontWeight:800,borderBottom:`1px solid ${p(d.palette.text.primary,.14)}`}),body:({theme:d})=>({borderBottom:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiDivider:{styleOverrides:{root:({theme:d})=>({borderColor:d.palette.divider})}},MuiAlert:{styleOverrides:{root:({theme:d})=>({borderRadius:12,border:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiTooltip:{styleOverrides:{tooltip:{borderRadius:10,fontSize:"0.8rem"}}},MuiSnackbarContent:{styleOverrides:{root:{borderRadius:12}}}}};import{alpha as l}from"@mui/material/styles";var D='"IBM Plex Sans","Tajawal","Cairo","Noto Sans Arabic","Inter","Arial",sans-serif',u=6,B={fontFamily:D,h1:{fontWeight:900,fontSize:"2.1rem",lineHeight:1.16,letterSpacing:"-0.03em"},h2:{fontWeight:800,fontSize:"1.68rem",lineHeight:1.22,letterSpacing:"-0.02em"},h3:{fontWeight:700,fontSize:"1.32rem",lineHeight:1.3,letterSpacing:"-0.01em"},h4:{fontWeight:700,fontSize:"1.08rem",lineHeight:1.4},subtitle1:{fontWeight:600,fontSize:"0.94rem"},subtitle2:{fontWeight:600,fontSize:"0.86rem"},body1:{fontSize:"0.94rem",lineHeight:1.62},body2:{fontSize:"0.86rem",lineHeight:1.56},button:{textTransform:"uppercase",fontWeight:700,letterSpacing:"0.05em"},caption:{fontSize:"0.74rem"},overline:{fontSize:"0.72rem",letterSpacing:"0.12em",textTransform:"uppercase"}},C=({appBarAlpha:d,borderAlpha:s,surfaceShadowAlpha:F,tableHeadAlpha:e})=>({MuiCssBaseline:{styleOverrides:i=>({body:{backgroundColor:i.palette.background.default,color:i.palette.text.primary,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}})},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:i})=>({backgroundColor:l(i.palette.background.paper,d),borderBottom:`1px solid ${l(i.palette.text.primary,s)}`,boxShadow:`0 1px 0 ${l(i.palette.text.primary,s*.7)}`})}},MuiPaper:{styleOverrides:{root:({theme:i})=>({borderRadius:u+2,backgroundImage:"none",border:`1px solid ${l(i.palette.text.primary,s)}`,boxShadow:`0 1px 2px ${l(i.palette.text.primary,F)}`})}},MuiCard:{styleOverrides:{root:({theme:i})=>({borderRadius:u+4,border:`1px solid ${l(i.palette.text.primary,s)}`,boxShadow:`0 1px 2px ${l(i.palette.text.primary,F)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:u,paddingInline:16,paddingBlock:9,minHeight:36,fontWeight:700},contained:{boxShadow:"none"},containedPrimary:({theme:i})=>({backgroundColor:i.palette.primary.main,"&:hover":{backgroundColor:i.palette.primary.dark,boxShadow:"none"}}),outlined:({theme:i})=>({borderWidth:1,borderColor:l(i.palette.text.primary,s+.05)})}},MuiChip:{styleOverrides:{root:({theme:i})=>({borderRadius:u,fontWeight:600,border:`1px solid ${l(i.palette.text.primary,s+.04)}`,backgroundColor:l(i.palette.background.paper,.9)})}},MuiTabs:{styleOverrides:{root:({theme:i})=>({minHeight:42,borderBottom:`1px solid ${l(i.palette.text.primary,s+.06)}`}),indicator:({theme:i})=>({height:2,borderRadius:1,backgroundColor:i.palette.primary.main})}},MuiTab:{styleOverrides:{root:{minHeight:42,fontWeight:700,paddingInline:14}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:u},notchedOutline:({theme:i})=>({borderColor:l(i.palette.text.primary,s+.08)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:600}}},MuiTableHead:{styleOverrides:{root:({theme:i})=>({backgroundColor:l(i.palette.text.primary,e)})}},MuiTableCell:{styleOverrides:{head:({theme:i})=>({fontWeight:700,color:i.palette.text.primary,borderBottom:`1px solid ${l(i.palette.text.primary,s+.08)}`}),body:({theme:i})=>({borderBottom:`1px solid ${l(i.palette.text.primary,s)}`})}},MuiDivider:{styleOverrides:{root:({theme:i})=>({borderColor:i.palette.divider})}},MuiAlert:{styleOverrides:{root:({theme:i})=>({borderRadius:u+2,border:`1px solid ${l(i.palette.text.primary,s+.08)}`})}},MuiTooltip:{styleOverrides:{tooltip:({theme:i})=>({borderRadius:u,fontSize:"0.78rem",border:`1px solid ${l(i.palette.text.primary,s+.08)}`,backgroundColor:i.palette.background.paper,color:i.palette.text.primary})}},MuiSnackbarContent:{styleOverrides:{root:({theme:i})=>({borderRadius:u+2,border:`1px solid ${l(i.palette.text.primary,s+.08)}`})}}}),_={name:"Modern Minimal",direction:"rtl",palette:{mode:"light",primary:{main:"#1E40AF",dark:"#1E3A8A",light:"#3B82F6",contrastText:"#FFFFFF"},secondary:{main:"#111827",dark:"#030712",light:"#374151",contrastText:"#FFFFFF"},info:{main:"#2563EB",dark:"#1D4ED8",light:"#60A5FA",contrastText:"#FFFFFF"},success:{main:"#15803D",dark:"#166534",light:"#4ADE80",contrastText:"#FFFFFF"},warning:{main:"#B45309",dark:"#92400E",light:"#F59E0B",contrastText:"#FFFFFF"},error:{main:"#B91C1C",dark:"#991B1B",light:"#EF4444",contrastText:"#FFFFFF"},background:{default:"#F3F4F6",paper:"#FFFFFF"},text:{primary:"#111827",secondary:"#4B5563",disabled:l("#111827",.45)},divider:l("#111827",.14),grey:{50:"#F9FAFB",100:"#F3F4F6",200:"#E5E7EB",300:"#D1D5DB",400:"#9CA3AF",500:"#6B7280",600:"#4B5563",700:"#374151",800:"#1F2937",900:"#111827"},action:{hover:l("#1E40AF",.04),selected:l("#1E40AF",.1),focus:l("#1E40AF",.2),active:l("#111827",.54),disabled:l("#111827",.32),disabledBackground:l("#111827",.08)}},typography:B,shape:{borderRadius:u},spacing:8,components:C({appBarAlpha:.98,borderAlpha:.12,surfaceShadowAlpha:.08,tableHeadAlpha:.04})},U={name:"Modern Minimal Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#93C5FD",dark:"#60A5FA",light:"#BFDBFE",contrastText:"#0B1220"},secondary:{main:"#E5E7EB",dark:"#D1D5DB",light:"#F3F4F6",contrastText:"#0B1220"},info:{main:"#7DD3FC",dark:"#38BDF8",light:"#BAE6FD",contrastText:"#0B1220"},success:{main:"#6EE7B7",dark:"#34D399",light:"#A7F3D0",contrastText:"#0B1220"},warning:{main:"#FCD34D",dark:"#FBBF24",light:"#FDE68A",contrastText:"#0B1220"},error:{main:"#FDA4AF",dark:"#FB7185",light:"#FECACA",contrastText:"#0B1220"},background:{default:"#0B0F14",paper:"#111827"},text:{primary:"#F3F4F6",secondary:"#9CA3AF",disabled:l("#F3F4F6",.45)},divider:l("#F3F4F6",.16),grey:{50:"#0B0F14",100:"#111827",200:"#1F2937",300:"#374151",400:"#4B5563",500:"#6B7280",600:"#9CA3AF",700:"#D1D5DB",800:"#E5E7EB",900:"#F3F4F6"},action:{hover:l("#93C5FD",.08),selected:l("#93C5FD",.16),focus:l("#93C5FD",.24),active:l("#F3F4F6",.54),disabled:l("#F3F4F6",.32),disabledBackground:l("#F3F4F6",.08)}},typography:B,shape:{borderRadius:u},spacing:8,components:C({appBarAlpha:.94,borderAlpha:.2,surfaceShadowAlpha:.2,tableHeadAlpha:.08})};import{alpha as o}from"@mui/material/styles";var M='"Space Grotesk","Tajawal","Cairo","Noto Sans Arabic","Inter","Roboto","Arial",sans-serif',g=26,c="blur(18px) saturate(165%)",b="blur(24px) saturate(180%)",v={fontFamily:M,h1:{fontWeight:800,fontSize:"2.08rem",lineHeight:1.2,letterSpacing:"-0.025em"},h2:{fontWeight:800,fontSize:"1.56rem",lineHeight:1.25,letterSpacing:"-0.02em"},h3:{fontWeight:700,fontSize:"1.28rem",lineHeight:1.32},h4:{fontWeight:700,fontSize:"1.13rem",lineHeight:1.4},subtitle1:{fontWeight:700,fontSize:"0.95rem"},subtitle2:{fontWeight:700,fontSize:"0.875rem"},body1:{fontSize:"0.95rem",lineHeight:1.64},body2:{fontSize:"0.875rem",lineHeight:1.58},button:{textTransform:"none",fontWeight:700,letterSpacing:"0.01em"},caption:{fontSize:"0.75rem"},overline:{fontSize:"0.75rem",letterSpacing:"0.08em"}},E=({bodyPrimaryGlowAlpha:d,bodySecondaryGlowAlpha:s,bodyTertiaryGlowAlpha:F,paperAlpha:e,borderAlpha:i,shadowAlpha:t,isDark:m})=>({MuiCssBaseline:{styleOverrides:r=>({body:{backgroundColor:r.palette.background.default,color:r.palette.text.primary,backgroundImage:`radial-gradient(1200px 620px at 8% -10%, ${o(r.palette.primary.main,d)}, transparent 52%), radial-gradient(1000px 540px at 96% 4%, ${o(r.palette.secondary.main,s)}, transparent 50%), radial-gradient(900px 460px at 50% 100%, ${o(r.palette.info.main,F)}, transparent 58%)`,backgroundAttachment:"fixed"},"body::before":{content:'""',position:"fixed",inset:"-24% auto auto -16%",width:"52vw",height:"52vw",borderRadius:"50%",pointerEvents:"none",zIndex:-1,background:`radial-gradient(circle, ${o(r.palette.primary.light,m?.2:.26)} 0%, transparent 72%)`,filter:"blur(16px)"},"body::after":{content:'""',position:"fixed",inset:"auto -18% -28% auto",width:"56vw",height:"56vw",borderRadius:"50%",pointerEvents:"none",zIndex:-1,background:`radial-gradient(circle, ${o(r.palette.secondary.light,m?.18:.24)} 0%, transparent 74%)`,filter:"blur(18px)"},"*::selection":{backgroundColor:o(r.palette.primary.main,m?.4:.28),color:r.palette.background.default}})},MuiBackdrop:{styleOverrides:{root:({theme:r})=>({backgroundColor:o(r.palette.background.default,m?.54:.32),backdropFilter:"blur(6px)"})}},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:r})=>({borderRadius:999,marginInline:r.spacing(1),marginTop:r.spacing(1),paddingInline:r.spacing(1),backgroundColor:o(r.palette.background.paper,e+.12),border:`1px solid ${o(r.palette.text.primary,i+.08)}`,boxShadow:`0 12px 36px ${o(r.palette.primary.dark,t)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiPaper:{styleOverrides:{root:({theme:r})=>({borderRadius:g+6,backgroundImage:`linear-gradient(150deg, ${o("#FFFFFF",m?.1:.62)} 0%, ${o("#FFFFFF",m?.04:.18)} 42%, ${o(r.palette.primary.light,m?.12:.18)} 100%)`,backgroundColor:o(r.palette.background.paper,e),border:`1px solid ${o(r.palette.text.primary,i)}`,boxShadow:`0 18px 44px ${o(r.palette.primary.dark,t)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiCard:{styleOverrides:{root:({theme:r})=>({borderRadius:g+8,backgroundImage:`linear-gradient(165deg, ${o("#FFFFFF",m?.08:.6)}, ${o(r.palette.secondary.light,m?.08:.18)} 120%)`,backgroundColor:o(r.palette.background.paper,e),border:`1px solid ${o(r.palette.text.primary,i)}`,boxShadow:`0 22px 48px ${o(r.palette.primary.dark,t+.04)}`,backdropFilter:b,WebkitBackdropFilter:b})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:999,paddingInline:20,paddingBlock:10,fontWeight:700},containedPrimary:({theme:r})=>({backgroundImage:`linear-gradient(130deg, ${o(r.palette.primary.light,.98)}, ${o(r.palette.primary.main,.94)} 45%, ${o(r.palette.secondary.main,.9)} 100%)`,boxShadow:`0 10px 26px ${o(r.palette.primary.main,.36)}`,"&:hover":{boxShadow:`0 14px 30px ${o(r.palette.primary.main,.44)}`,transform:"translateY(-1px)"}}),outlined:({theme:r})=>({borderWidth:1,borderColor:o(r.palette.text.primary,.22),backgroundColor:o(r.palette.background.paper,e-.04),backdropFilter:c,WebkitBackdropFilter:c})}},MuiChip:{styleOverrides:{root:({theme:r})=>({borderRadius:999,fontWeight:700,border:`1px solid ${o(r.palette.text.primary,i)}`,backgroundColor:o(r.palette.background.paper,e-.02),backdropFilter:c,WebkitBackdropFilter:c})}},MuiOutlinedInput:{styleOverrides:{root:({theme:r})=>({borderRadius:20,backgroundColor:o(r.palette.background.paper,e-.02),backdropFilter:c,WebkitBackdropFilter:c,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:o(r.palette.primary.main,.62),borderWidth:1}}),notchedOutline:({theme:r})=>({borderColor:o(r.palette.text.primary,i)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:700}}},MuiTabs:{styleOverrides:{root:({theme:r})=>({minHeight:46,padding:r.spacing(.5),borderRadius:999,backgroundColor:o(r.palette.background.paper,e-.06),border:`1px solid ${o(r.palette.text.primary,i)}`}),indicator:({theme:r})=>({height:"calc(100% - 8px)",top:4,borderRadius:999,backgroundImage:`linear-gradient(150deg, ${o("#FFFFFF",m?.14:.8)}, ${o(r.palette.primary.light,m?.18:.42)})`,border:`1px solid ${o(r.palette.primary.main,.36)}`,boxShadow:`0 8px 18px ${o(r.palette.primary.main,.24)}`})}},MuiTab:{styleOverrides:{root:{minHeight:38,borderRadius:999,fontWeight:700,paddingInline:14}}},MuiTableHead:{styleOverrides:{root:({theme:r})=>({backgroundImage:`linear-gradient(90deg, ${o(r.palette.primary.main,.16)}, ${o(r.palette.secondary.main,.14)})`})}},MuiTableCell:{styleOverrides:{head:({theme:r})=>({fontWeight:800,borderBottom:`1px solid ${o(r.palette.text.primary,i+.08)}`}),body:({theme:r})=>({borderBottom:`1px solid ${o(r.palette.text.primary,i-.02)}`})}},MuiDivider:{styleOverrides:{root:({theme:r})=>({borderColor:o(r.palette.text.primary,i)})}},MuiAlert:{styleOverrides:{root:({theme:r})=>({borderRadius:g,backgroundColor:o(r.palette.background.paper,e+.06),border:`1px solid ${o(r.palette.text.primary,i+.08)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiTooltip:{styleOverrides:{tooltip:({theme:r})=>({borderRadius:14,fontSize:"0.8rem",border:`1px solid ${o(r.palette.text.primary,i+.08)}`,backgroundColor:o(r.palette.background.paper,e+.12),color:r.palette.text.primary,backdropFilter:c,WebkitBackdropFilter:c})}},MuiSnackbarContent:{styleOverrides:{root:({theme:r})=>({borderRadius:22,backgroundColor:o(r.palette.background.paper,e+.1),border:`1px solid ${o(r.palette.text.primary,i+.08)}`,boxShadow:`0 14px 34px ${o(r.palette.primary.dark,t)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiDialog:{styleOverrides:{paper:({theme:r})=>({borderRadius:g+10,backgroundColor:o(r.palette.background.paper,e+.08),border:`1px solid ${o(r.palette.text.primary,i+.1)}`,boxShadow:`0 26px 56px ${o(r.palette.primary.dark,t+.08)}`,backdropFilter:b,WebkitBackdropFilter:b})}},MuiMenu:{styleOverrides:{paper:({theme:r})=>({borderRadius:20,backgroundColor:o(r.palette.background.paper,e+.1),border:`1px solid ${o(r.palette.text.primary,i+.08)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiPopover:{styleOverrides:{paper:({theme:r})=>({borderRadius:20,backgroundColor:o(r.palette.background.paper,e+.08),border:`1px solid ${o(r.palette.text.primary,i+.08)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiDrawer:{styleOverrides:{paper:({theme:r})=>({borderRadius:"24px 0 0 24px",backgroundColor:o(r.palette.background.paper,e+.06),borderInlineStart:`1px solid ${o(r.palette.text.primary,i+.08)}`,backdropFilter:b,WebkitBackdropFilter:b})}}}),Q={name:"Neo Glass",direction:"rtl",palette:{mode:"light",primary:{main:"#43B5FF",dark:"#1F96EF",light:"#8DD6FF",contrastText:"#04203A"},secondary:{main:"#A86CFF",dark:"#8D4CFA",light:"#C7A4FF",contrastText:"#1D1133"},info:{main:"#39D7FF",dark:"#0EB4E0",light:"#9DEBFF",contrastText:"#032533"},success:{main:"#49CFA0",dark:"#2FAE82",light:"#94E5C8",contrastText:"#053226"},warning:{main:"#F2B366",dark:"#D38F42",light:"#F8D2A3",contrastText:"#392008"},error:{main:"#FF6F96",dark:"#F34978",light:"#FFAAC1",contrastText:"#3A0B1A"},background:{default:"#EAF4FF",paper:"#F7FBFF"},text:{primary:"#0D1C33",secondary:"#3B4E6D",disabled:o("#0D1C33",.45)},divider:o("#0D1C33",.15),grey:{50:"#F8FBFF",100:"#EEF5FF",200:"#DEEBFF",300:"#C7DBFA",400:"#A3C0E8",500:"#7D98BE",600:"#5B7497",700:"#435877",800:"#2A3D58",900:"#0D1C33"},action:{hover:o("#43B5FF",.14),selected:o("#43B5FF",.22),focus:o("#A86CFF",.24),active:o("#0D1C33",.54),disabled:o("#0D1C33",.32),disabledBackground:o("#0D1C33",.08)}},typography:v,shape:{borderRadius:g},spacing:8,components:E({bodyPrimaryGlowAlpha:.32,bodySecondaryGlowAlpha:.24,bodyTertiaryGlowAlpha:.2,paperAlpha:.64,borderAlpha:.2,shadowAlpha:.18,isDark:!1})},K={name:"Neo Glass Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#7DCCFF",dark:"#4FB6FF",light:"#B9E6FF",contrastText:"#021524"},secondary:{main:"#C59BFF",dark:"#A86CFF",light:"#E0C7FF",contrastText:"#140C24"},info:{main:"#7EE6FF",dark:"#39D7FF",light:"#C0F5FF",contrastText:"#022130"},success:{main:"#89E8C4",dark:"#49CFA0",light:"#BDF2DC",contrastText:"#06261B"},warning:{main:"#F8D2A3",dark:"#F2B366",light:"#FDE8CA",contrastText:"#2F1A08"},error:{main:"#FFAAC1",dark:"#FF6F96",light:"#FFD0DD",contrastText:"#2F101A"},background:{default:"#040918",paper:"#0E1630"},text:{primary:"#E8F2FF",secondary:"#A5BCD9",disabled:o("#E8F2FF",.45)},divider:o("#E8F2FF",.16),grey:{50:"#040918",100:"#0B1126",200:"#131D3A",300:"#1E2B4E",400:"#2E4370",500:"#48639A",600:"#6E8BBA",700:"#A5BCD9",800:"#D3E2F3",900:"#E8F2FF"},action:{hover:o("#7DCCFF",.18),selected:o("#7DCCFF",.28),focus:o("#C59BFF",.28),active:o("#E8F2FF",.58),disabled:o("#E8F2FF",.34),disabledBackground:o("#E8F2FF",.08)}},typography:v,shape:{borderRadius:g},spacing:8,components:E({bodyPrimaryGlowAlpha:.28,bodySecondaryGlowAlpha:.22,bodyTertiaryGlowAlpha:.18,paperAlpha:.46,borderAlpha:.32,shadowAlpha:.42,isDark:!0})};import{alpha as a}from"@mui/material/styles";var x='"IBM Plex Mono","JetBrains Mono","Tajawal","Cairo","Noto Sans Arabic","Roboto Mono","Consolas","Arial",monospace',T={fontFamily:x,h1:{fontWeight:800,fontSize:"1.85rem",lineHeight:1.2,letterSpacing:"0.03em"},h2:{fontWeight:800,fontSize:"1.42rem",lineHeight:1.24,letterSpacing:"0.025em"},h3:{fontWeight:800,fontSize:"1.14rem",lineHeight:1.3,letterSpacing:"0.02em"},h4:{fontWeight:700,fontSize:"1.02rem",lineHeight:1.35,letterSpacing:"0.015em"},subtitle1:{fontWeight:700,fontSize:"0.92rem",letterSpacing:"0.02em"},subtitle2:{fontWeight:700,fontSize:"0.84rem",letterSpacing:"0.02em"},body1:{fontSize:"0.92rem",lineHeight:1.72},body2:{fontSize:"0.84rem",lineHeight:1.62},button:{textTransform:"uppercase",fontWeight:800,letterSpacing:"0.08em"},caption:{fontSize:"0.73rem",letterSpacing:"0.03em"},overline:{fontSize:"0.7rem",letterSpacing:"0.14em",textTransform:"uppercase"}},O=({scanlineAlpha:d,surfaceBorderAlpha:s,panelGlowAlpha:F})=>({MuiCssBaseline:{styleOverrides:e=>({"*, *::before, *::after":{boxSizing:"border-box"},body:{backgroundColor:e.palette.background.default,color:e.palette.text.primary,textShadow:`0 0 1px ${a(e.palette.primary.main,.2)}`,backgroundImage:`repeating-linear-gradient(0deg, ${a(e.palette.text.primary,d)} 0px, ${a(e.palette.text.primary,d)} 1px, transparent 1px, transparent 4px)`,backgroundSize:"100% 4px"},"*::selection":{backgroundColor:a(e.palette.primary.main,.34),color:e.palette.background.default}})},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:e})=>({borderRadius:0,backgroundColor:a(e.palette.background.paper,.96),borderBottom:`2px solid ${a(e.palette.primary.main,.62)}`,boxShadow:`inset 0 -1px 0 ${a(e.palette.primary.light,.24)}`})}},MuiPaper:{styleOverrides:{root:({theme:e})=>({borderRadius:0,backgroundImage:"none",backgroundColor:a(e.palette.background.paper,.98),border:`2px solid ${a(e.palette.primary.main,s)}`,boxShadow:`inset 0 0 0 1px ${a(e.palette.primary.light,F)}`})}},MuiCard:{styleOverrides:{root:({theme:e})=>({borderRadius:0,backgroundImage:"none",border:`2px solid ${a(e.palette.primary.main,s)}`,boxShadow:`inset 0 0 0 1px ${a(e.palette.primary.light,F)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:0,paddingInline:16,paddingBlock:9,minHeight:38,fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase"},containedPrimary:({theme:e})=>({color:e.palette.primary.light,backgroundColor:a(e.palette.primary.main,.16),border:`2px solid ${a(e.palette.primary.main,.72)}`,boxShadow:`inset 0 0 0 1px ${a(e.palette.primary.light,.34)}`,"&:hover":{backgroundColor:a(e.palette.primary.main,.24),borderColor:e.palette.primary.main}}),outlined:{borderStyle:"dashed",borderWidth:2},outlinedPrimary:({theme:e})=>({borderColor:a(e.palette.primary.main,.7)}),textPrimary:({theme:e})=>({color:e.palette.primary.main,textDecoration:"underline",textUnderlineOffset:"2px"})}},MuiChip:{styleOverrides:{root:({theme:e})=>({borderRadius:0,fontWeight:700,textTransform:"uppercase",border:`2px dashed ${a(e.palette.primary.main,.68)}`,backgroundColor:a(e.palette.primary.main,.1)}),label:{paddingInline:8}}},MuiTabs:{styleOverrides:{root:({theme:e})=>({minHeight:40,borderBottom:`2px solid ${a(e.palette.primary.main,.5)}`}),indicator:({theme:e})=>({height:"100%",borderRadius:0,border:`1px solid ${a(e.palette.primary.main,.6)}`,backgroundColor:a(e.palette.primary.main,.14),zIndex:0})}},MuiTab:{styleOverrides:{root:({theme:e})=>({position:"relative",zIndex:1,minHeight:40,fontWeight:700,paddingInline:14,textTransform:"uppercase",letterSpacing:"0.06em","&.Mui-selected":{color:e.palette.primary.main}})}},MuiOutlinedInput:{styleOverrides:{root:({theme:e})=>({borderRadius:0,fontFamily:x,backgroundColor:a(e.palette.background.paper,.96),"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:a(e.palette.primary.main,.9)},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2}}),notchedOutline:({theme:e})=>({borderColor:a(e.palette.primary.main,.6),borderWidth:2}),input:{paddingBlock:10}}},MuiInputLabel:{styleOverrides:{root:{fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase"}}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({backgroundColor:a(e.palette.primary.main,.14),backgroundImage:`repeating-linear-gradient(90deg, ${a(e.palette.primary.main,.2)} 0px, ${a(e.palette.primary.main,.2)} 2px, transparent 2px, transparent 8px)`})}},MuiTableCell:{styleOverrides:{head:({theme:e})=>({fontWeight:800,textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:`2px dashed ${a(e.palette.primary.main,.66)}`}),body:({theme:e})=>({fontFamily:x,borderBottom:`1px dashed ${a(e.palette.text.primary,.25)}`})}},MuiDivider:{styleOverrides:{root:({theme:e})=>({borderColor:a(e.palette.primary.main,.56),borderStyle:"dashed"})}},MuiAlert:{styleOverrides:{root:({theme:e})=>({borderRadius:0,border:`2px solid ${a(e.palette.primary.main,.68)}`,backgroundColor:a(e.palette.background.paper,.98)})}},MuiTooltip:{styleOverrides:{tooltip:({theme:e})=>({borderRadius:0,fontSize:"0.75rem",fontFamily:x,border:`1px solid ${a(e.palette.primary.main,.72)}`,backgroundColor:a(e.palette.background.paper,.98),color:e.palette.text.primary}),arrow:({theme:e})=>({color:a(e.palette.background.paper,.98)})}},MuiSnackbarContent:{styleOverrides:{root:({theme:e})=>({borderRadius:0,border:`2px solid ${a(e.palette.primary.main,.6)}`,boxShadow:`inset 0 0 0 1px ${a(e.palette.primary.light,.24)}`})}},MuiDialog:{styleOverrides:{paper:({theme:e})=>({borderRadius:0,backgroundImage:"none",border:`2px solid ${a(e.palette.primary.main,s)}`,boxShadow:`inset 0 0 0 1px ${a(e.palette.primary.light,F)}`})}},MuiDialogTitle:{styleOverrides:{root:{textTransform:"uppercase",letterSpacing:"0.06em"}}},MuiMenu:{styleOverrides:{paper:({theme:e})=>({borderRadius:0,border:`2px solid ${a(e.palette.primary.main,s)}`,boxShadow:`inset 0 0 0 1px ${a(e.palette.primary.light,F)}`})}},MuiPopover:{styleOverrides:{paper:({theme:e})=>({borderRadius:0,border:`2px solid ${a(e.palette.primary.main,s)}`})}},MuiDrawer:{styleOverrides:{paper:({theme:e})=>({borderRadius:0,borderInlineStart:`2px solid ${a(e.palette.primary.main,s)}`,backgroundImage:"none",backgroundColor:a(e.palette.background.paper,.98)})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({fontFamily:x,fontSize:"0.8rem",letterSpacing:"0.05em",textTransform:"uppercase","& + &":{borderTop:`1px dashed ${a(e.palette.primary.main,.5)}`},"&.Mui-selected":{backgroundColor:a(e.palette.primary.main,.16)}})}},MuiListItemButton:{styleOverrides:{root:({theme:e})=>({borderRadius:0,"& + &":{borderTop:`1px dashed ${a(e.palette.primary.main,.42)}`},"&.Mui-selected":{backgroundColor:a(e.palette.primary.main,.16)}})}}}),J={name:"Retro Terminal",direction:"rtl",palette:{mode:"light",primary:{main:"#00B84F",dark:"#008F3B",light:"#5BFFA0",contrastText:"#02180B"},secondary:{main:"#FF8A3D",dark:"#D56A24",light:"#FFB981",contrastText:"#1A1104"},info:{main:"#22D3EE",dark:"#0891B2",light:"#67E8F9",contrastText:"#03161A"},success:{main:"#00B84F",dark:"#008F3B",light:"#5BFFA0",contrastText:"#02180B"},warning:{main:"#FACC15",dark:"#D4A711",light:"#FDE047",contrastText:"#1C1503"},error:{main:"#F43F5E",dark:"#E11D48",light:"#FDA4AF",contrastText:"#20050B"},background:{default:"#E9FDEE",paper:"#F7FFF9"},text:{primary:"#03210E",secondary:"#14542C",disabled:a("#03210E",.46)},divider:a("#03210E",.26),grey:{50:"#F7FFF9",100:"#ECFFF1",200:"#D4F8DE",300:"#B5EEC6",400:"#87DFA1",500:"#56C97B",600:"#27A95A",700:"#15773D",800:"#0B4A24",900:"#03210E"},action:{hover:a("#00B84F",.14),selected:a("#00B84F",.22),focus:a("#FF8A3D",.26),active:a("#03210E",.56),disabled:a("#03210E",.34),disabledBackground:a("#03210E",.1)}},typography:T,shape:{borderRadius:0},spacing:8,components:O({scanlineAlpha:.08,surfaceBorderAlpha:.44,panelGlowAlpha:.2})},X={name:"Retro Terminal Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#33FF85",dark:"#1FCB63",light:"#8CFFB4",contrastText:"#02150A"},secondary:{main:"#FF9D57",dark:"#FF7A1E",light:"#FFC896",contrastText:"#1A0F04"},info:{main:"#22D3EE",dark:"#0EA5E9",light:"#67E8F9",contrastText:"#03161A"},success:{main:"#33FF85",dark:"#1FCB63",light:"#8CFFB4",contrastText:"#02150A"},warning:{main:"#FDE047",dark:"#FACC15",light:"#FEF08A",contrastText:"#211901"},error:{main:"#FB7185",dark:"#F43F5E",light:"#FDA4AF",contrastText:"#1E0408"},background:{default:"#040805",paper:"#09110B"},text:{primary:"#9CFFB6",secondary:"#5FDB85",disabled:a("#9CFFB6",.46)},divider:a("#9CFFB6",.24),grey:{50:"#040805",100:"#09110B",200:"#0D1C12",300:"#13301E",400:"#1A4A2F",500:"#257347",600:"#2CA65F",700:"#5FDB85",800:"#8CFFB4",900:"#C6FFD9"},action:{hover:a("#33FF85",.18),selected:a("#33FF85",.28),focus:a("#FF9D57",.3),active:a("#9CFFB6",.58),disabled:a("#9CFFB6",.34),disabledBackground:a("#9CFFB6",.1)}},typography:T,shape:{borderRadius:0},spacing:8,components:O({scanlineAlpha:.12,surfaceBorderAlpha:.62,panelGlowAlpha:.32})};import{alpha as n}from"@mui/material/styles";var $='"Tajawal","Cairo","Noto Naskh Arabic","Noto Sans Arabic","Inter","Roboto","Arial",sans-serif',h="#D08A6B",R="#B96F4F",I="#E8B8A1",W="#8EA36A",z="#738651",w="#B9C89A",y="#3B2A1F",k=28,A={fontFamily:$,h1:{fontWeight:800,fontSize:"2rem",lineHeight:1.24,letterSpacing:"-0.01em"},h2:{fontWeight:800,fontSize:"1.5rem",lineHeight:1.3},h3:{fontWeight:700,fontSize:"1.24rem",lineHeight:1.36},h4:{fontWeight:700,fontSize:"1.1rem",lineHeight:1.42},subtitle1:{fontWeight:600,fontSize:"0.95rem"},subtitle2:{fontWeight:600,fontSize:"0.875rem"},body1:{fontSize:"0.95rem",lineHeight:1.78},body2:{fontSize:"0.875rem",lineHeight:1.68},button:{textTransform:"none",fontWeight:700,letterSpacing:"0.01em"},caption:{fontSize:"0.75rem"},overline:{fontSize:"0.75rem",letterSpacing:"0.06em"}},S=({bodyGlowPrimary:d,bodyGlowSecondary:s,surfaceBorderAlpha:F,panelShadowAlpha:e,appBarAlpha:i})=>({MuiCssBaseline:{styleOverrides:t=>({body:{backgroundColor:t.palette.background.default,color:t.palette.text.primary,backgroundImage:`radial-gradient(900px circle at 12% 6%, ${n(t.palette.primary.main,d)}, transparent 50%), radial-gradient(800px circle at 90% 10%, ${n(t.palette.secondary.main,s)}, transparent 48%)`}})},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:t})=>({borderRadius:999,marginInline:t.spacing(1),marginTop:t.spacing(1),paddingInline:t.spacing(1),backgroundColor:n(t.palette.background.paper,i),border:`1px solid ${n(t.palette.text.primary,F)}`,boxShadow:`0 10px 30px ${n(t.palette.text.primary,e)}`,backdropFilter:"blur(8px)"})}},MuiPaper:{styleOverrides:{root:({theme:t})=>({borderRadius:k+2,backgroundImage:"none",backgroundColor:n(t.palette.background.paper,.97),border:`1px solid ${n(t.palette.text.primary,F)}`,boxShadow:`0 14px 36px ${n(t.palette.text.primary,e)}`})}},MuiCard:{styleOverrides:{root:({theme:t})=>({borderRadius:k+4,border:`1px solid ${n(t.palette.text.primary,F)}`,boxShadow:`0 18px 40px ${n(t.palette.text.primary,e)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:999,paddingInline:22,paddingBlock:10,fontWeight:700},containedPrimary:({theme:t})=>({backgroundImage:`linear-gradient(180deg, ${n(t.palette.primary.light,.88)}, ${n(t.palette.primary.main,.92)})`,boxShadow:`0 8px 18px ${n(t.palette.primary.main,.28)}`,"&:hover":{boxShadow:`0 12px 24px ${n(t.palette.primary.main,.34)}`}}),outlined:({theme:t})=>({borderColor:n(t.palette.text.primary,.18),backgroundColor:n(t.palette.background.paper,.55)})}},MuiChip:{styleOverrides:{root:({theme:t})=>({borderRadius:999,fontWeight:700,border:`1px solid ${n(t.palette.text.primary,.14)}`,backgroundColor:n(t.palette.background.paper,.86)})}},MuiTabs:{styleOverrides:{root:({theme:t})=>({minHeight:46,padding:t.spacing(.5),borderRadius:999,backgroundColor:n(t.palette.primary.main,.1)}),indicator:({theme:t})=>({height:"calc(100% - 8px)",top:4,borderRadius:999,backgroundColor:n(t.palette.background.paper,.96),border:`1px solid ${n(t.palette.primary.main,.26)}`,boxShadow:`0 6px 14px ${n(t.palette.primary.main,.2)}`})}},MuiTab:{styleOverrides:{root:{minHeight:38,fontWeight:700,borderRadius:999,paddingInline:14}}},MuiOutlinedInput:{styleOverrides:{root:({theme:t})=>({borderRadius:22,backgroundColor:n(t.palette.background.paper,.9),"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:n(t.palette.primary.main,.52),borderWidth:1}}),notchedOutline:({theme:t})=>({borderColor:n(t.palette.text.primary,.16)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:600}}},MuiTableHead:{styleOverrides:{root:({theme:t})=>({backgroundColor:n(t.palette.primary.main,.1)})}},MuiTableCell:{styleOverrides:{head:({theme:t})=>({fontWeight:700,color:t.palette.text.primary,borderBottom:`1px solid ${n(t.palette.text.primary,.14)}`}),body:({theme:t})=>({borderBottom:`1px solid ${n(t.palette.text.primary,.09)}`})}},MuiDivider:{styleOverrides:{root:({theme:t})=>({borderColor:n(t.palette.text.primary,.12)})}},MuiAlert:{styleOverrides:{root:({theme:t})=>({borderRadius:24,border:`1px solid ${n(t.palette.text.primary,.14)}`,backgroundColor:n(t.palette.background.paper,.92)})}},MuiTooltip:{styleOverrides:{tooltip:({theme:t})=>({borderRadius:14,fontSize:"0.8rem",border:`1px solid ${n(t.palette.text.primary,.14)}`,backgroundColor:n(t.palette.background.paper,.98),color:t.palette.text.primary})}},MuiSnackbarContent:{styleOverrides:{root:({theme:t})=>({borderRadius:24,border:`1px solid ${n(t.palette.text.primary,.14)}`})}},MuiDialog:{styleOverrides:{paper:({theme:t})=>({borderRadius:k+6,border:`1px solid ${n(t.palette.text.primary,F)}`,boxShadow:`0 20px 44px ${n(t.palette.text.primary,e)}`})}},MuiMenu:{styleOverrides:{paper:({theme:t})=>({borderRadius:22,border:`1px solid ${n(t.palette.text.primary,F)}`})}},MuiPopover:{styleOverrides:{paper:({theme:t})=>({borderRadius:22,border:`1px solid ${n(t.palette.text.primary,F)}`})}},MuiDrawer:{styleOverrides:{paper:({theme:t})=>({borderRadius:"24px 0 0 24px",borderInlineStart:`1px solid ${n(t.palette.text.primary,F)}`})}},MuiMenuItem:{styleOverrides:{root:({theme:t})=>({marginInline:t.spacing(.5),borderRadius:12})}},MuiListItemButton:{styleOverrides:{root:({theme:t})=>({marginInline:t.spacing(.5),borderRadius:12})}}}),re={name:"Warm Earth",direction:"rtl",palette:{mode:"light",primary:{main:h,dark:R,light:I,contrastText:"#FFFFFF"},secondary:{main:W,dark:z,light:w,contrastText:"#1B2312"},info:{main:"#3B82F6",dark:"#2563EB",light:"#93C5FD",contrastText:"#FFFFFF"},success:{main:"#22A36A",dark:"#198D59",light:"#79D7AE",contrastText:"#FFFFFF"},warning:{main:"#D68A30",dark:"#B9711F",light:"#EDB370",contrastText:"#2B1E10"},error:{main:"#D86060",dark:"#B94A4A",light:"#EEA0A0",contrastText:"#FFFFFF"},background:{default:"#FBF4EC",paper:"#FFFDF9"},text:{primary:y,secondary:"#6B5341",disabled:n(y,.44)},divider:n(y,.12),grey:{50:"#FFFEFC",100:"#FFF9F1",200:"#F4E7D8",300:"#EAD6C1",400:"#D8BFA3",500:"#C0A180",600:"#8F735C",700:"#634E3F",800:"#3E3127",900:"#1F1712"},action:{hover:n(h,.06),selected:n(h,.12),focus:n("#3B82F6",.2),active:n(y,.5),disabled:n(y,.3),disabledBackground:n(y,.08)}},typography:A,shape:{borderRadius:k},spacing:8,components:S({bodyGlowPrimary:.2,bodyGlowSecondary:.16,surfaceBorderAlpha:.1,panelShadowAlpha:.14,appBarAlpha:.88})},te={name:"Warm Earth Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#E4B392",dark:"#CB9675",light:"#F0CBB4",contrastText:"#1D120B"},secondary:{main:"#B7CB97",dark:"#A1B67F",light:"#D4E2C0",contrastText:"#1B2312"},info:{main:"#93C5FD",dark:"#60A5FA",light:"#BFDBFE",contrastText:"#102033"},success:{main:"#79D7AE",dark:"#4BC48F",light:"#B1E9CD",contrastText:"#0D2A1D"},warning:{main:"#EDB370",dark:"#D68A30",light:"#F6CC99",contrastText:"#31200D"},error:{main:"#EEA0A0",dark:"#D86060",light:"#F5C4C4",contrastText:"#301414"},background:{default:"#18120E",paper:"#241C17"},text:{primary:"#F7EEE3",secondary:"#D1C1B2",disabled:n("#F7EEE3",.45)},divider:n("#F7EEE3",.14),grey:{50:"#18120E",100:"#241C17",200:"#302720",300:"#3E342A",400:"#56483A",500:"#776655",600:"#A18A73",700:"#D1C1B2",800:"#E9DFD3",900:"#F7EEE3"},action:{hover:n("#E4B392",.1),selected:n("#E4B392",.16),focus:n("#93C5FD",.24),active:n("#F7EEE3",.52),disabled:n("#F7EEE3",.32),disabledBackground:n("#F7EEE3",.08)}},typography:A,shape:{borderRadius:k},spacing:8,components:S({bodyGlowPrimary:.22,bodyGlowSecondary:.14,surfaceBorderAlpha:.18,panelShadowAlpha:.32,appBarAlpha:.78})};export{P as a,G as b,_ as c,U as d,Q as e,K as f,J as g,X as h,re as i,te as j};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{alpha as p}from"@mui/material/styles";var f='"Source Serif 4","Noto Naskh Arabic","Tajawal","Cairo","Georgia","Times New Roman",serif',P={name:"Editorial Classic",direction:"rtl",palette:{mode:"light",primary:{main:"#111827",dark:"#0B1220",light:"#374151",contrastText:"#FFFFFF"},secondary:{main:"#7F1D1D",dark:"#5B1414",light:"#B91C1C",contrastText:"#FFFFFF"},info:{main:"#1D4ED8",dark:"#1E40AF",light:"#60A5FA",contrastText:"#FFFFFF"},success:{main:"#166534",dark:"#14532D",light:"#4ADE80",contrastText:"#FFFFFF"},warning:{main:"#B45309",dark:"#92400E",light:"#F59E0B",contrastText:"#0B1220"},error:{main:"#B91C1C",dark:"#991B1B",light:"#EF4444",contrastText:"#FFFFFF"},background:{default:"#FBF7F0",paper:"#FFFFFF"},text:{primary:"#111827",secondary:"#4B5563",disabled:p("#111827",.45)},divider:p("#111827",.12),grey:{50:"#FFFEFC",100:"#FBF7F0",200:"#F1E8DD",300:"#E4D7C7",400:"#CBB9A4",500:"#9B8A78",600:"#6B5E52",700:"#4B3F37",800:"#2A2624",900:"#111827"},action:{hover:p("#111827",.06),selected:p("#111827",.12),focus:p("#1D4ED8",.18),active:p("#111827",.54),disabled:p("#111827",.32),disabledBackground:p("#111827",.08)}},typography:{fontFamily:f,h1:{fontWeight:800,fontSize:"2.1rem",lineHeight:1.2,letterSpacing:"-0.02em"},h2:{fontWeight:800,fontSize:"1.6rem",lineHeight:1.25,letterSpacing:"-0.01em"},h3:{fontWeight:800,fontSize:"1.3rem",lineHeight:1.3},h4:{fontWeight:700,fontSize:"1.125rem",lineHeight:1.4},subtitle1:{fontWeight:700,fontSize:"0.95rem"},subtitle2:{fontWeight:700,fontSize:"0.875rem"},body1:{fontSize:"1rem",lineHeight:1.85},body2:{fontSize:"0.9rem",lineHeight:1.75},button:{textTransform:"none",fontWeight:700},caption:{fontSize:"0.78rem"},overline:{fontSize:"0.75rem",letterSpacing:"0.12em"}},shape:{borderRadius:10},spacing:8,components:{MuiCssBaseline:{styleOverrides:d=>({body:{backgroundColor:d.palette.background.default,color:d.palette.text.primary}})},MuiPaper:{styleOverrides:{root:({theme:d})=>({borderRadius:12,backgroundImage:"none",border:`1px solid ${p(d.palette.text.primary,.08)}`})}},MuiCard:{styleOverrides:{root:({theme:d})=>({borderRadius:14,border:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:d})=>({backgroundColor:d.palette.background.paper,borderBottom:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:10,paddingInline:16,paddingBlock:9},outlined:{borderWidth:1}}},MuiLink:{styleOverrides:{root:{textDecorationThickness:"2px",textUnderlineOffset:"3px"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:10},notchedOutline:({theme:d})=>({borderColor:p(d.palette.text.primary,.18)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:700}}},MuiTabs:{styleOverrides:{root:{minHeight:44},indicator:{height:2,borderRadius:2}}},MuiTab:{styleOverrides:{root:{minHeight:44,fontWeight:700,paddingInline:14}}},MuiTableHead:{styleOverrides:{root:({theme:d})=>({backgroundColor:p(d.palette.text.primary,.04)})}},MuiTableCell:{styleOverrides:{head:({theme:d})=>({fontWeight:800,borderBottom:`1px solid ${p(d.palette.text.primary,.12)}`}),body:({theme:d})=>({borderBottom:`1px solid ${p(d.palette.text.primary,.08)}`})}},MuiDivider:{styleOverrides:{root:({theme:d})=>({borderColor:d.palette.divider})}},MuiAlert:{styleOverrides:{root:({theme:d})=>({borderRadius:12,border:`1px solid ${p(d.palette.text.primary,.08)}`})}},MuiTooltip:{styleOverrides:{tooltip:{borderRadius:10,fontSize:"0.8rem"}}},MuiSnackbarContent:{styleOverrides:{root:{borderRadius:12}}}}},N={name:"Editorial Classic Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#E5E7EB",dark:"#CBD5E1",light:"#F3F4F6",contrastText:"#0B1220"},secondary:{main:"#FB7185",dark:"#EF4444",light:"#FDA4AF",contrastText:"#0B1220"},info:{main:"#60A5FA",dark:"#3B82F6",light:"#93C5FD",contrastText:"#0B1220"},success:{main:"#34D399",dark:"#10B981",light:"#A7F3D0",contrastText:"#0B1220"},warning:{main:"#FBBF24",dark:"#F59E0B",light:"#FDE68A",contrastText:"#0B1220"},error:{main:"#FB7185",dark:"#EF4444",light:"#FDA4AF",contrastText:"#0B1220"},background:{default:"#0E1116",paper:"#141A22"},text:{primary:"#F3F4F6",secondary:"#A8B0BC",disabled:p("#F3F4F6",.45)},divider:p("#F3F4F6",.14),grey:{50:"#0E1116",100:"#141A22",200:"#1B2431",300:"#243245",400:"#31435C",500:"#4A5A78",600:"#6B7A95",700:"#A8B0BC",800:"#E5E7EB",900:"#F3F4F6"},action:{hover:p("#F3F4F6",.08),selected:p("#F3F4F6",.12),focus:p("#60A5FA",.22),active:p("#F3F4F6",.54),disabled:p("#F3F4F6",.32),disabledBackground:p("#F3F4F6",.08)}},typography:{fontFamily:f,h1:{fontWeight:800,fontSize:"2.1rem",lineHeight:1.2,letterSpacing:"-0.02em"},h2:{fontWeight:800,fontSize:"1.6rem",lineHeight:1.25,letterSpacing:"-0.01em"},h3:{fontWeight:800,fontSize:"1.3rem",lineHeight:1.3},h4:{fontWeight:700,fontSize:"1.125rem",lineHeight:1.4},subtitle1:{fontWeight:700,fontSize:"0.95rem"},subtitle2:{fontWeight:700,fontSize:"0.875rem"},body1:{fontSize:"1rem",lineHeight:1.85},body2:{fontSize:"0.9rem",lineHeight:1.75},button:{textTransform:"none",fontWeight:700},caption:{fontSize:"0.78rem"},overline:{fontSize:"0.75rem",letterSpacing:"0.12em"}},shape:{borderRadius:10},spacing:8,components:{MuiCssBaseline:{styleOverrides:d=>({body:{backgroundColor:d.palette.background.default,color:d.palette.text.primary}})},MuiPaper:{styleOverrides:{root:({theme:d})=>({borderRadius:12,backgroundImage:"none",border:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiCard:{styleOverrides:{root:({theme:d})=>({borderRadius:14,border:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:d})=>({backgroundColor:d.palette.background.paper,borderBottom:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:10,paddingInline:16,paddingBlock:9},outlined:{borderWidth:1}}},MuiLink:{styleOverrides:{root:{textDecorationThickness:"2px",textUnderlineOffset:"3px"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:10},notchedOutline:({theme:d})=>({borderColor:p(d.palette.text.primary,.18)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:700}}},MuiTabs:{styleOverrides:{root:{minHeight:44},indicator:{height:2,borderRadius:2}}},MuiTab:{styleOverrides:{root:{minHeight:44,fontWeight:700,paddingInline:14}}},MuiTableHead:{styleOverrides:{root:({theme:d})=>({backgroundColor:p(d.palette.text.primary,.06)})}},MuiTableCell:{styleOverrides:{head:({theme:d})=>({fontWeight:800,borderBottom:`1px solid ${p(d.palette.text.primary,.14)}`}),body:({theme:d})=>({borderBottom:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiDivider:{styleOverrides:{root:({theme:d})=>({borderColor:d.palette.divider})}},MuiAlert:{styleOverrides:{root:({theme:d})=>({borderRadius:12,border:`1px solid ${p(d.palette.text.primary,.1)}`})}},MuiTooltip:{styleOverrides:{tooltip:{borderRadius:10,fontSize:"0.8rem"}}},MuiSnackbarContent:{styleOverrides:{root:{borderRadius:12}}}}};import{alpha as l}from"@mui/material/styles";var D='"IBM Plex Sans","Tajawal","Cairo","Noto Sans Arabic","Inter","Arial",sans-serif',u=6,B={fontFamily:D,h1:{fontWeight:900,fontSize:"2.1rem",lineHeight:1.16,letterSpacing:"-0.03em"},h2:{fontWeight:800,fontSize:"1.68rem",lineHeight:1.22,letterSpacing:"-0.02em"},h3:{fontWeight:700,fontSize:"1.32rem",lineHeight:1.3,letterSpacing:"-0.01em"},h4:{fontWeight:700,fontSize:"1.08rem",lineHeight:1.4},subtitle1:{fontWeight:600,fontSize:"0.94rem"},subtitle2:{fontWeight:600,fontSize:"0.86rem"},body1:{fontSize:"0.94rem",lineHeight:1.62},body2:{fontSize:"0.86rem",lineHeight:1.56},button:{textTransform:"uppercase",fontWeight:700,letterSpacing:"0.05em"},caption:{fontSize:"0.74rem"},overline:{fontSize:"0.72rem",letterSpacing:"0.12em",textTransform:"uppercase"}},C=({appBarAlpha:d,borderAlpha:s,surfaceShadowAlpha:m,tableHeadAlpha:e})=>({MuiCssBaseline:{styleOverrides:i=>({body:{backgroundColor:i.palette.background.default,color:i.palette.text.primary,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}})},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:i})=>({backgroundColor:l(i.palette.background.paper,d),borderBottom:`1px solid ${l(i.palette.text.primary,s)}`,boxShadow:`0 1px 0 ${l(i.palette.text.primary,s*.7)}`})}},MuiPaper:{styleOverrides:{root:({theme:i})=>({borderRadius:u+2,backgroundImage:"none",border:`1px solid ${l(i.palette.text.primary,s)}`,boxShadow:`0 1px 2px ${l(i.palette.text.primary,m)}`})}},MuiCard:{styleOverrides:{root:({theme:i})=>({borderRadius:u+4,border:`1px solid ${l(i.palette.text.primary,s)}`,boxShadow:`0 1px 2px ${l(i.palette.text.primary,m)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:u,paddingInline:16,paddingBlock:9,minHeight:36,fontWeight:700},contained:{boxShadow:"none"},containedPrimary:({theme:i})=>({backgroundColor:i.palette.primary.main,"&:hover":{backgroundColor:i.palette.primary.dark,boxShadow:"none"}}),outlined:({theme:i})=>({borderWidth:1,borderColor:l(i.palette.text.primary,s+.05)})}},MuiChip:{styleOverrides:{root:({theme:i})=>({borderRadius:u,fontWeight:600,border:`1px solid ${l(i.palette.text.primary,s+.04)}`,backgroundColor:l(i.palette.background.paper,.9)})}},MuiTabs:{styleOverrides:{root:({theme:i})=>({minHeight:42,borderBottom:`1px solid ${l(i.palette.text.primary,s+.06)}`}),indicator:({theme:i})=>({height:2,borderRadius:1,backgroundColor:i.palette.primary.main})}},MuiTab:{styleOverrides:{root:{minHeight:42,fontWeight:700,paddingInline:14}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:u},notchedOutline:({theme:i})=>({borderColor:l(i.palette.text.primary,s+.08)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:600}}},MuiTableHead:{styleOverrides:{root:({theme:i})=>({backgroundColor:l(i.palette.text.primary,e)})}},MuiTableCell:{styleOverrides:{head:({theme:i})=>({fontWeight:700,color:i.palette.text.primary,borderBottom:`1px solid ${l(i.palette.text.primary,s+.08)}`}),body:({theme:i})=>({borderBottom:`1px solid ${l(i.palette.text.primary,s)}`})}},MuiDivider:{styleOverrides:{root:({theme:i})=>({borderColor:i.palette.divider})}},MuiAlert:{styleOverrides:{root:({theme:i})=>({borderRadius:u+2,border:`1px solid ${l(i.palette.text.primary,s+.08)}`})}},MuiTooltip:{styleOverrides:{tooltip:({theme:i})=>({borderRadius:u,fontSize:"0.78rem",border:`1px solid ${l(i.palette.text.primary,s+.08)}`,backgroundColor:i.palette.background.paper,color:i.palette.text.primary})}},MuiSnackbarContent:{styleOverrides:{root:({theme:i})=>({borderRadius:u+2,border:`1px solid ${l(i.palette.text.primary,s+.08)}`})}}}),_={name:"Modern Minimal",direction:"rtl",palette:{mode:"light",primary:{main:"#1E40AF",dark:"#1E3A8A",light:"#3B82F6",contrastText:"#FFFFFF"},secondary:{main:"#111827",dark:"#030712",light:"#374151",contrastText:"#FFFFFF"},info:{main:"#2563EB",dark:"#1D4ED8",light:"#60A5FA",contrastText:"#FFFFFF"},success:{main:"#15803D",dark:"#166534",light:"#4ADE80",contrastText:"#FFFFFF"},warning:{main:"#B45309",dark:"#92400E",light:"#F59E0B",contrastText:"#FFFFFF"},error:{main:"#B91C1C",dark:"#991B1B",light:"#EF4444",contrastText:"#FFFFFF"},background:{default:"#F3F4F6",paper:"#FFFFFF"},text:{primary:"#111827",secondary:"#4B5563",disabled:l("#111827",.45)},divider:l("#111827",.14),grey:{50:"#F9FAFB",100:"#F3F4F6",200:"#E5E7EB",300:"#D1D5DB",400:"#9CA3AF",500:"#6B7280",600:"#4B5563",700:"#374151",800:"#1F2937",900:"#111827"},action:{hover:l("#1E40AF",.04),selected:l("#1E40AF",.1),focus:l("#1E40AF",.2),active:l("#111827",.54),disabled:l("#111827",.32),disabledBackground:l("#111827",.08)}},typography:B,shape:{borderRadius:u},spacing:8,components:C({appBarAlpha:.98,borderAlpha:.12,surfaceShadowAlpha:.08,tableHeadAlpha:.04})},U={name:"Modern Minimal Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#93C5FD",dark:"#60A5FA",light:"#BFDBFE",contrastText:"#0B1220"},secondary:{main:"#E5E7EB",dark:"#D1D5DB",light:"#F3F4F6",contrastText:"#0B1220"},info:{main:"#7DD3FC",dark:"#38BDF8",light:"#BAE6FD",contrastText:"#0B1220"},success:{main:"#6EE7B7",dark:"#34D399",light:"#A7F3D0",contrastText:"#0B1220"},warning:{main:"#FCD34D",dark:"#FBBF24",light:"#FDE68A",contrastText:"#0B1220"},error:{main:"#FDA4AF",dark:"#FB7185",light:"#FECACA",contrastText:"#0B1220"},background:{default:"#0B0F14",paper:"#111827"},text:{primary:"#F3F4F6",secondary:"#9CA3AF",disabled:l("#F3F4F6",.45)},divider:l("#F3F4F6",.16),grey:{50:"#0B0F14",100:"#111827",200:"#1F2937",300:"#374151",400:"#4B5563",500:"#6B7280",600:"#9CA3AF",700:"#D1D5DB",800:"#E5E7EB",900:"#F3F4F6"},action:{hover:l("#93C5FD",.08),selected:l("#93C5FD",.16),focus:l("#93C5FD",.24),active:l("#F3F4F6",.54),disabled:l("#F3F4F6",.32),disabledBackground:l("#F3F4F6",.08)}},typography:B,shape:{borderRadius:u},spacing:8,components:C({appBarAlpha:.94,borderAlpha:.2,surfaceShadowAlpha:.2,tableHeadAlpha:.08})};import{alpha as a}from"@mui/material/styles";var M='"Space Grotesk","Tajawal","Cairo","Noto Sans Arabic","Inter","Roboto","Arial",sans-serif',g=26,c="blur(18px) saturate(165%)",b="blur(24px) saturate(180%)",v={fontFamily:M,h1:{fontWeight:800,fontSize:"2.08rem",lineHeight:1.2,letterSpacing:"-0.025em"},h2:{fontWeight:800,fontSize:"1.56rem",lineHeight:1.25,letterSpacing:"-0.02em"},h3:{fontWeight:700,fontSize:"1.28rem",lineHeight:1.32},h4:{fontWeight:700,fontSize:"1.13rem",lineHeight:1.4},subtitle1:{fontWeight:700,fontSize:"0.95rem"},subtitle2:{fontWeight:700,fontSize:"0.875rem"},body1:{fontSize:"0.95rem",lineHeight:1.64},body2:{fontSize:"0.875rem",lineHeight:1.58},button:{textTransform:"none",fontWeight:700,letterSpacing:"0.01em"},caption:{fontSize:"0.75rem"},overline:{fontSize:"0.75rem",letterSpacing:"0.08em"}},E=({bodyPrimaryGlowAlpha:d,bodySecondaryGlowAlpha:s,bodyTertiaryGlowAlpha:m,paperAlpha:e,borderAlpha:i,shadowAlpha:t,isDark:F})=>({MuiCssBaseline:{styleOverrides:r=>({body:{backgroundColor:r.palette.background.default,color:r.palette.text.primary,backgroundImage:`radial-gradient(1200px 620px at 8% -10%, ${a(r.palette.primary.main,d)}, transparent 52%), radial-gradient(1000px 540px at 96% 4%, ${a(r.palette.secondary.main,s)}, transparent 50%), radial-gradient(900px 460px at 50% 100%, ${a(r.palette.info.main,m)}, transparent 58%)`,backgroundAttachment:"fixed"},"body::before":{content:'""',position:"fixed",inset:"-24% auto auto -16%",width:"52vw",height:"52vw",borderRadius:"50%",pointerEvents:"none",zIndex:-1,background:`radial-gradient(circle, ${a(r.palette.primary.light,F?.2:.26)} 0%, transparent 72%)`,filter:"blur(16px)"},"body::after":{content:'""',position:"fixed",inset:"auto -18% -28% auto",width:"56vw",height:"56vw",borderRadius:"50%",pointerEvents:"none",zIndex:-1,background:`radial-gradient(circle, ${a(r.palette.secondary.light,F?.18:.24)} 0%, transparent 74%)`,filter:"blur(18px)"},"*::selection":{backgroundColor:a(r.palette.primary.main,F?.4:.28),color:r.palette.background.default}})},MuiBackdrop:{styleOverrides:{root:({theme:r})=>({backgroundColor:a(r.palette.background.default,F?.54:.32),backdropFilter:"blur(6px)"})}},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:r})=>({borderRadius:999,marginInline:r.spacing(1),marginTop:r.spacing(1),paddingInline:r.spacing(1),backgroundColor:a(r.palette.background.paper,e+.12),border:`1px solid ${a(r.palette.text.primary,i+.08)}`,boxShadow:`0 12px 36px ${a(r.palette.primary.dark,t)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiPaper:{styleOverrides:{root:({theme:r})=>({borderRadius:g+6,backgroundImage:`linear-gradient(150deg, ${a("#FFFFFF",F?.1:.62)} 0%, ${a("#FFFFFF",F?.04:.18)} 42%, ${a(r.palette.primary.light,F?.12:.18)} 100%)`,backgroundColor:a(r.palette.background.paper,e),border:`1px solid ${a(r.palette.text.primary,i)}`,boxShadow:`0 18px 44px ${a(r.palette.primary.dark,t)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiCard:{styleOverrides:{root:({theme:r})=>({borderRadius:g+8,backgroundImage:`linear-gradient(165deg, ${a("#FFFFFF",F?.08:.6)}, ${a(r.palette.secondary.light,F?.08:.18)} 120%)`,backgroundColor:a(r.palette.background.paper,e),border:`1px solid ${a(r.palette.text.primary,i)}`,boxShadow:`0 22px 48px ${a(r.palette.primary.dark,t+.04)}`,backdropFilter:b,WebkitBackdropFilter:b})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:999,paddingInline:20,paddingBlock:10,fontWeight:700},containedPrimary:({theme:r})=>({backgroundImage:`linear-gradient(130deg, ${a(r.palette.primary.light,.98)}, ${a(r.palette.primary.main,.94)} 45%, ${a(r.palette.secondary.main,.9)} 100%)`,boxShadow:`0 10px 26px ${a(r.palette.primary.main,.36)}`,"&:hover":{boxShadow:`0 14px 30px ${a(r.palette.primary.main,.44)}`,transform:"translateY(-1px)"}}),outlined:({theme:r})=>({borderWidth:1,borderColor:a(r.palette.text.primary,.22),backgroundColor:a(r.palette.background.paper,e-.04),backdropFilter:c,WebkitBackdropFilter:c})}},MuiChip:{styleOverrides:{root:({theme:r})=>({borderRadius:999,fontWeight:700,border:`1px solid ${a(r.palette.text.primary,i)}`,backgroundColor:a(r.palette.background.paper,e-.02),backdropFilter:c,WebkitBackdropFilter:c})}},MuiOutlinedInput:{styleOverrides:{root:({theme:r})=>({borderRadius:20,backgroundColor:a(r.palette.background.paper,e-.02),backdropFilter:c,WebkitBackdropFilter:c,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:a(r.palette.primary.main,.62),borderWidth:1}}),notchedOutline:({theme:r})=>({borderColor:a(r.palette.text.primary,i)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:700}}},MuiTabs:{styleOverrides:{root:({theme:r})=>({minHeight:46,padding:r.spacing(.5),borderRadius:999,backgroundColor:a(r.palette.background.paper,e-.06),border:`1px solid ${a(r.palette.text.primary,i)}`}),indicator:({theme:r})=>({height:"calc(100% - 8px)",top:4,borderRadius:999,backgroundImage:`linear-gradient(150deg, ${a("#FFFFFF",F?.14:.8)}, ${a(r.palette.primary.light,F?.18:.42)})`,border:`1px solid ${a(r.palette.primary.main,.36)}`,boxShadow:`0 8px 18px ${a(r.palette.primary.main,.24)}`})}},MuiTab:{styleOverrides:{root:{minHeight:38,borderRadius:999,fontWeight:700,paddingInline:14}}},MuiTableHead:{styleOverrides:{root:({theme:r})=>({backgroundImage:`linear-gradient(90deg, ${a(r.palette.primary.main,.16)}, ${a(r.palette.secondary.main,.14)})`})}},MuiTableCell:{styleOverrides:{head:({theme:r})=>({fontWeight:800,borderBottom:`1px solid ${a(r.palette.text.primary,i+.08)}`}),body:({theme:r})=>({borderBottom:`1px solid ${a(r.palette.text.primary,i-.02)}`})}},MuiDivider:{styleOverrides:{root:({theme:r})=>({borderColor:a(r.palette.text.primary,i)})}},MuiAlert:{styleOverrides:{root:({theme:r})=>({borderRadius:g,backgroundColor:a(r.palette.background.paper,e+.06),border:`1px solid ${a(r.palette.text.primary,i+.08)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiTooltip:{styleOverrides:{tooltip:({theme:r})=>({borderRadius:14,fontSize:"0.8rem",border:`1px solid ${a(r.palette.text.primary,i+.08)}`,backgroundColor:a(r.palette.background.paper,e+.12),color:r.palette.text.primary,backdropFilter:c,WebkitBackdropFilter:c})}},MuiSnackbarContent:{styleOverrides:{root:({theme:r})=>({borderRadius:22,backgroundColor:a(r.palette.background.paper,e+.1),border:`1px solid ${a(r.palette.text.primary,i+.08)}`,boxShadow:`0 14px 34px ${a(r.palette.primary.dark,t)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiDialog:{styleOverrides:{paper:({theme:r})=>({borderRadius:g+10,backgroundColor:a(r.palette.background.paper,e+.08),border:`1px solid ${a(r.palette.text.primary,i+.1)}`,boxShadow:`0 26px 56px ${a(r.palette.primary.dark,t+.08)}`,backdropFilter:b,WebkitBackdropFilter:b})}},MuiMenu:{styleOverrides:{paper:({theme:r})=>({borderRadius:20,backgroundColor:a(r.palette.background.paper,e+.1),border:`1px solid ${a(r.palette.text.primary,i+.08)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiPopover:{styleOverrides:{paper:({theme:r})=>({borderRadius:20,backgroundColor:a(r.palette.background.paper,e+.08),border:`1px solid ${a(r.palette.text.primary,i+.08)}`,backdropFilter:c,WebkitBackdropFilter:c})}},MuiDrawer:{styleOverrides:{paper:({theme:r})=>({borderRadius:"24px 0 0 24px",backgroundColor:a(r.palette.background.paper,e+.06),borderInlineStart:`1px solid ${a(r.palette.text.primary,i+.08)}`,backdropFilter:b,WebkitBackdropFilter:b})}}}),Q={name:"Neo Glass",direction:"rtl",palette:{mode:"light",primary:{main:"#43B5FF",dark:"#1F96EF",light:"#8DD6FF",contrastText:"#04203A"},secondary:{main:"#A86CFF",dark:"#8D4CFA",light:"#C7A4FF",contrastText:"#1D1133"},info:{main:"#39D7FF",dark:"#0EB4E0",light:"#9DEBFF",contrastText:"#032533"},success:{main:"#49CFA0",dark:"#2FAE82",light:"#94E5C8",contrastText:"#053226"},warning:{main:"#F2B366",dark:"#D38F42",light:"#F8D2A3",contrastText:"#392008"},error:{main:"#FF6F96",dark:"#F34978",light:"#FFAAC1",contrastText:"#3A0B1A"},background:{default:"#EAF4FF",paper:"#F7FBFF"},text:{primary:"#0D1C33",secondary:"#3B4E6D",disabled:a("#0D1C33",.45)},divider:a("#0D1C33",.15),grey:{50:"#F8FBFF",100:"#EEF5FF",200:"#DEEBFF",300:"#C7DBFA",400:"#A3C0E8",500:"#7D98BE",600:"#5B7497",700:"#435877",800:"#2A3D58",900:"#0D1C33"},action:{hover:a("#43B5FF",.14),selected:a("#43B5FF",.22),focus:a("#A86CFF",.24),active:a("#0D1C33",.54),disabled:a("#0D1C33",.32),disabledBackground:a("#0D1C33",.08)}},typography:v,shape:{borderRadius:g},spacing:8,components:E({bodyPrimaryGlowAlpha:.32,bodySecondaryGlowAlpha:.24,bodyTertiaryGlowAlpha:.2,paperAlpha:.64,borderAlpha:.2,shadowAlpha:.18,isDark:!1})},K={name:"Neo Glass Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#7DCCFF",dark:"#4FB6FF",light:"#B9E6FF",contrastText:"#021524"},secondary:{main:"#C59BFF",dark:"#A86CFF",light:"#E0C7FF",contrastText:"#140C24"},info:{main:"#7EE6FF",dark:"#39D7FF",light:"#C0F5FF",contrastText:"#022130"},success:{main:"#89E8C4",dark:"#49CFA0",light:"#BDF2DC",contrastText:"#06261B"},warning:{main:"#F8D2A3",dark:"#F2B366",light:"#FDE8CA",contrastText:"#2F1A08"},error:{main:"#FFAAC1",dark:"#FF6F96",light:"#FFD0DD",contrastText:"#2F101A"},background:{default:"#040918",paper:"#0E1630"},text:{primary:"#E8F2FF",secondary:"#A5BCD9",disabled:a("#E8F2FF",.45)},divider:a("#E8F2FF",.16),grey:{50:"#040918",100:"#0B1126",200:"#131D3A",300:"#1E2B4E",400:"#2E4370",500:"#48639A",600:"#6E8BBA",700:"#A5BCD9",800:"#D3E2F3",900:"#E8F2FF"},action:{hover:a("#7DCCFF",.18),selected:a("#7DCCFF",.28),focus:a("#C59BFF",.28),active:a("#E8F2FF",.58),disabled:a("#E8F2FF",.34),disabledBackground:a("#E8F2FF",.08)}},typography:v,shape:{borderRadius:g},spacing:8,components:E({bodyPrimaryGlowAlpha:.28,bodySecondaryGlowAlpha:.22,bodyTertiaryGlowAlpha:.18,paperAlpha:.46,borderAlpha:.32,shadowAlpha:.42,isDark:!0})};import{alpha as o}from"@mui/material/styles";var x='"IBM Plex Mono","JetBrains Mono","Tajawal","Cairo","Noto Sans Arabic","Roboto Mono","Consolas","Arial",monospace',O={fontFamily:x,h1:{fontWeight:800,fontSize:"1.85rem",lineHeight:1.2,letterSpacing:"0.03em"},h2:{fontWeight:800,fontSize:"1.42rem",lineHeight:1.24,letterSpacing:"0.025em"},h3:{fontWeight:800,fontSize:"1.14rem",lineHeight:1.3,letterSpacing:"0.02em"},h4:{fontWeight:700,fontSize:"1.02rem",lineHeight:1.35,letterSpacing:"0.015em"},subtitle1:{fontWeight:700,fontSize:"0.92rem",letterSpacing:"0.02em"},subtitle2:{fontWeight:700,fontSize:"0.84rem",letterSpacing:"0.02em"},body1:{fontSize:"0.92rem",lineHeight:1.72},body2:{fontSize:"0.84rem",lineHeight:1.62},button:{textTransform:"uppercase",fontWeight:800,letterSpacing:"0.08em"},caption:{fontSize:"0.73rem",letterSpacing:"0.03em"},overline:{fontSize:"0.7rem",letterSpacing:"0.14em",textTransform:"uppercase"}},T=({scanlineAlpha:d,surfaceBorderAlpha:s,panelGlowAlpha:m})=>({MuiCssBaseline:{styleOverrides:e=>({"*, *::before, *::after":{boxSizing:"border-box"},body:{backgroundColor:e.palette.background.default,color:e.palette.text.primary,textShadow:`0 0 1px ${o(e.palette.primary.main,.2)}`,backgroundImage:`repeating-linear-gradient(0deg, ${o(e.palette.text.primary,d)} 0px, ${o(e.palette.text.primary,d)} 1px, transparent 1px, transparent 4px)`,backgroundSize:"100% 4px"},"*::selection":{backgroundColor:o(e.palette.primary.main,.34),color:e.palette.background.default}})},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:e})=>({borderRadius:0,backgroundColor:o(e.palette.background.paper,.96),borderBottom:`2px solid ${o(e.palette.primary.main,.62)}`,boxShadow:`inset 0 -1px 0 ${o(e.palette.primary.light,.24)}`})}},MuiPaper:{styleOverrides:{root:({theme:e})=>({borderRadius:0,backgroundImage:"none",backgroundColor:o(e.palette.background.paper,.98),border:`2px solid ${o(e.palette.primary.main,s)}`,boxShadow:`inset 0 0 0 1px ${o(e.palette.primary.light,m)}`})}},MuiCard:{styleOverrides:{root:({theme:e})=>({borderRadius:0,backgroundImage:"none",border:`2px solid ${o(e.palette.primary.main,s)}`,boxShadow:`inset 0 0 0 1px ${o(e.palette.primary.light,m)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:0,paddingInline:16,paddingBlock:9,minHeight:38,fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase"},containedPrimary:({theme:e})=>({color:e.palette.primary.light,backgroundColor:o(e.palette.primary.main,.16),border:`2px solid ${o(e.palette.primary.main,.72)}`,boxShadow:`inset 0 0 0 1px ${o(e.palette.primary.light,.34)}`,"&:hover":{backgroundColor:o(e.palette.primary.main,.24),borderColor:e.palette.primary.main}}),outlined:{borderStyle:"dashed",borderWidth:2},outlinedPrimary:({theme:e})=>({borderColor:o(e.palette.primary.main,.7)}),textPrimary:({theme:e})=>({color:e.palette.primary.main,textDecoration:"underline",textUnderlineOffset:"2px"})}},MuiChip:{styleOverrides:{root:({theme:e})=>({borderRadius:0,fontWeight:700,textTransform:"uppercase",border:`2px dashed ${o(e.palette.primary.main,.68)}`,backgroundColor:o(e.palette.primary.main,.1)}),label:{paddingInline:8}}},MuiTabs:{styleOverrides:{root:({theme:e})=>({minHeight:40,borderBottom:`2px solid ${o(e.palette.primary.main,.5)}`}),indicator:({theme:e})=>({height:"100%",borderRadius:0,border:`1px solid ${o(e.palette.primary.main,.6)}`,backgroundColor:o(e.palette.primary.main,.14),zIndex:0})}},MuiTab:{styleOverrides:{root:({theme:e})=>({position:"relative",zIndex:1,minHeight:40,fontWeight:700,paddingInline:14,textTransform:"uppercase",letterSpacing:"0.06em","&.Mui-selected":{color:e.palette.primary.main}})}},MuiOutlinedInput:{styleOverrides:{root:({theme:e})=>({borderRadius:0,fontFamily:x,backgroundColor:o(e.palette.background.paper,.96),"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:o(e.palette.primary.main,.9)},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2}}),notchedOutline:({theme:e})=>({borderColor:o(e.palette.primary.main,.6),borderWidth:2}),input:{paddingBlock:10}}},MuiInputLabel:{styleOverrides:{root:{fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase"}}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({backgroundColor:o(e.palette.primary.main,.14),backgroundImage:`repeating-linear-gradient(90deg, ${o(e.palette.primary.main,.2)} 0px, ${o(e.palette.primary.main,.2)} 2px, transparent 2px, transparent 8px)`})}},MuiTableCell:{styleOverrides:{head:({theme:e})=>({fontWeight:800,textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:`2px dashed ${o(e.palette.primary.main,.66)}`}),body:({theme:e})=>({fontFamily:x,borderBottom:`1px dashed ${o(e.palette.text.primary,.25)}`})}},MuiDivider:{styleOverrides:{root:({theme:e})=>({borderColor:o(e.palette.primary.main,.56),borderStyle:"dashed"})}},MuiAlert:{styleOverrides:{root:({theme:e})=>({borderRadius:0,border:`2px solid ${o(e.palette.primary.main,.68)}`,backgroundColor:o(e.palette.background.paper,.98)})}},MuiTooltip:{styleOverrides:{tooltip:({theme:e})=>({borderRadius:0,fontSize:"0.75rem",fontFamily:x,border:`1px solid ${o(e.palette.primary.main,.72)}`,backgroundColor:o(e.palette.background.paper,.98),color:e.palette.text.primary}),arrow:({theme:e})=>({color:o(e.palette.background.paper,.98)})}},MuiSnackbarContent:{styleOverrides:{root:({theme:e})=>({borderRadius:0,border:`2px solid ${o(e.palette.primary.main,.6)}`,boxShadow:`inset 0 0 0 1px ${o(e.palette.primary.light,.24)}`})}},MuiDialog:{styleOverrides:{paper:({theme:e})=>({borderRadius:0,backgroundImage:"none",border:`2px solid ${o(e.palette.primary.main,s)}`,boxShadow:`inset 0 0 0 1px ${o(e.palette.primary.light,m)}`})}},MuiDialogTitle:{styleOverrides:{root:{textTransform:"uppercase",letterSpacing:"0.06em"}}},MuiMenu:{styleOverrides:{paper:({theme:e})=>({borderRadius:0,border:`2px solid ${o(e.palette.primary.main,s)}`,boxShadow:`inset 0 0 0 1px ${o(e.palette.primary.light,m)}`})}},MuiPopover:{styleOverrides:{paper:({theme:e})=>({borderRadius:0,border:`2px solid ${o(e.palette.primary.main,s)}`})}},MuiDrawer:{styleOverrides:{paper:({theme:e})=>({borderRadius:0,borderInlineStart:`2px solid ${o(e.palette.primary.main,s)}`,backgroundImage:"none",backgroundColor:o(e.palette.background.paper,.98)})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({fontFamily:x,fontSize:"0.8rem",letterSpacing:"0.05em",textTransform:"uppercase","& + &":{borderTop:`1px dashed ${o(e.palette.primary.main,.5)}`},"&.Mui-selected":{backgroundColor:o(e.palette.primary.main,.16)}})}},MuiListItemButton:{styleOverrides:{root:({theme:e})=>({borderRadius:0,"& + &":{borderTop:`1px dashed ${o(e.palette.primary.main,.42)}`},"&.Mui-selected":{backgroundColor:o(e.palette.primary.main,.16)}})}}}),J={name:"Retro Terminal",direction:"rtl",palette:{mode:"light",primary:{main:"#00B84F",dark:"#008F3B",light:"#5BFFA0",contrastText:"#02180B"},secondary:{main:"#FF8A3D",dark:"#D56A24",light:"#FFB981",contrastText:"#1A1104"},info:{main:"#22D3EE",dark:"#0891B2",light:"#67E8F9",contrastText:"#03161A"},success:{main:"#00B84F",dark:"#008F3B",light:"#5BFFA0",contrastText:"#02180B"},warning:{main:"#FACC15",dark:"#D4A711",light:"#FDE047",contrastText:"#1C1503"},error:{main:"#F43F5E",dark:"#E11D48",light:"#FDA4AF",contrastText:"#20050B"},background:{default:"#E9FDEE",paper:"#F7FFF9"},text:{primary:"#03210E",secondary:"#14542C",disabled:o("#03210E",.46)},divider:o("#03210E",.26),grey:{50:"#F7FFF9",100:"#ECFFF1",200:"#D4F8DE",300:"#B5EEC6",400:"#87DFA1",500:"#56C97B",600:"#27A95A",700:"#15773D",800:"#0B4A24",900:"#03210E"},action:{hover:o("#00B84F",.14),selected:o("#00B84F",.22),focus:o("#FF8A3D",.26),active:o("#03210E",.56),disabled:o("#03210E",.34),disabledBackground:o("#03210E",.1)}},typography:O,shape:{borderRadius:0},spacing:8,components:T({scanlineAlpha:.08,surfaceBorderAlpha:.44,panelGlowAlpha:.2})},X={name:"Retro Terminal Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#33FF85",dark:"#1FCB63",light:"#8CFFB4",contrastText:"#02150A"},secondary:{main:"#FF9D57",dark:"#FF7A1E",light:"#FFC896",contrastText:"#1A0F04"},info:{main:"#22D3EE",dark:"#0EA5E9",light:"#67E8F9",contrastText:"#03161A"},success:{main:"#33FF85",dark:"#1FCB63",light:"#8CFFB4",contrastText:"#02150A"},warning:{main:"#FDE047",dark:"#FACC15",light:"#FEF08A",contrastText:"#211901"},error:{main:"#FB7185",dark:"#F43F5E",light:"#FDA4AF",contrastText:"#1E0408"},background:{default:"#040805",paper:"#09110B"},text:{primary:"#9CFFB6",secondary:"#5FDB85",disabled:o("#9CFFB6",.46)},divider:o("#9CFFB6",.24),grey:{50:"#040805",100:"#09110B",200:"#0D1C12",300:"#13301E",400:"#1A4A2F",500:"#257347",600:"#2CA65F",700:"#5FDB85",800:"#8CFFB4",900:"#C6FFD9"},action:{hover:o("#33FF85",.18),selected:o("#33FF85",.28),focus:o("#FF9D57",.3),active:o("#9CFFB6",.58),disabled:o("#9CFFB6",.34),disabledBackground:o("#9CFFB6",.1)}},typography:O,shape:{borderRadius:0},spacing:8,components:T({scanlineAlpha:.12,surfaceBorderAlpha:.62,panelGlowAlpha:.32})};import{alpha as n}from"@mui/material/styles";var $='"Tajawal","Cairo","Noto Naskh Arabic","Noto Sans Arabic","Inter","Roboto","Arial",sans-serif',h="#D08A6B",R="#B96F4F",I="#E8B8A1",W="#8EA36A",z="#738651",w="#B9C89A",y="#3B2A1F",k=28,A={fontFamily:$,h1:{fontWeight:800,fontSize:"2rem",lineHeight:1.24,letterSpacing:"-0.01em"},h2:{fontWeight:800,fontSize:"1.5rem",lineHeight:1.3},h3:{fontWeight:700,fontSize:"1.24rem",lineHeight:1.36},h4:{fontWeight:700,fontSize:"1.1rem",lineHeight:1.42},subtitle1:{fontWeight:600,fontSize:"0.95rem"},subtitle2:{fontWeight:600,fontSize:"0.875rem"},body1:{fontSize:"0.95rem",lineHeight:1.78},body2:{fontSize:"0.875rem",lineHeight:1.68},button:{textTransform:"none",fontWeight:700,letterSpacing:"0.01em"},caption:{fontSize:"0.75rem"},overline:{fontSize:"0.75rem",letterSpacing:"0.06em"}},S=({bodyGlowPrimary:d,bodyGlowSecondary:s,surfaceBorderAlpha:m,panelShadowAlpha:e,appBarAlpha:i})=>({MuiCssBaseline:{styleOverrides:t=>({body:{backgroundColor:t.palette.background.default,color:t.palette.text.primary,backgroundImage:`radial-gradient(900px circle at 12% 6%, ${n(t.palette.primary.main,d)}, transparent 50%), radial-gradient(800px circle at 90% 10%, ${n(t.palette.secondary.main,s)}, transparent 48%)`}})},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:({theme:t})=>({borderRadius:999,marginInline:t.spacing(1),marginTop:t.spacing(1),paddingInline:t.spacing(1),backgroundColor:n(t.palette.background.paper,i),border:`1px solid ${n(t.palette.text.primary,m)}`,boxShadow:`0 10px 30px ${n(t.palette.text.primary,e)}`,backdropFilter:"blur(8px)"})}},MuiPaper:{styleOverrides:{root:({theme:t})=>({borderRadius:k+2,backgroundImage:"none",backgroundColor:n(t.palette.background.paper,.97),border:`1px solid ${n(t.palette.text.primary,m)}`,boxShadow:`0 14px 36px ${n(t.palette.text.primary,e)}`})}},MuiCard:{styleOverrides:{root:({theme:t})=>({borderRadius:k+4,border:`1px solid ${n(t.palette.text.primary,m)}`,boxShadow:`0 18px 40px ${n(t.palette.text.primary,e)}`})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:999,paddingInline:22,paddingBlock:10,fontWeight:700},containedPrimary:({theme:t})=>({backgroundImage:`linear-gradient(180deg, ${n(t.palette.primary.light,.88)}, ${n(t.palette.primary.main,.92)})`,boxShadow:`0 8px 18px ${n(t.palette.primary.main,.28)}`,"&:hover":{boxShadow:`0 12px 24px ${n(t.palette.primary.main,.34)}`}}),outlined:({theme:t})=>({borderColor:n(t.palette.text.primary,.18),backgroundColor:n(t.palette.background.paper,.55)})}},MuiChip:{styleOverrides:{root:({theme:t})=>({borderRadius:999,fontWeight:700,border:`1px solid ${n(t.palette.text.primary,.14)}`,backgroundColor:n(t.palette.background.paper,.86)})}},MuiTabs:{styleOverrides:{root:({theme:t})=>({minHeight:46,padding:t.spacing(.5),borderRadius:999,backgroundColor:n(t.palette.primary.main,.1)}),indicator:({theme:t})=>({height:"calc(100% - 8px)",top:4,borderRadius:999,backgroundColor:n(t.palette.background.paper,.96),border:`1px solid ${n(t.palette.primary.main,.26)}`,boxShadow:`0 6px 14px ${n(t.palette.primary.main,.2)}`})}},MuiTab:{styleOverrides:{root:{minHeight:38,fontWeight:700,borderRadius:999,paddingInline:14}}},MuiOutlinedInput:{styleOverrides:{root:({theme:t})=>({borderRadius:22,backgroundColor:n(t.palette.background.paper,.9),"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:n(t.palette.primary.main,.52),borderWidth:1}}),notchedOutline:({theme:t})=>({borderColor:n(t.palette.text.primary,.16)})}},MuiInputLabel:{styleOverrides:{root:{fontWeight:600}}},MuiTableHead:{styleOverrides:{root:({theme:t})=>({backgroundColor:n(t.palette.primary.main,.1)})}},MuiTableCell:{styleOverrides:{head:({theme:t})=>({fontWeight:700,color:t.palette.text.primary,borderBottom:`1px solid ${n(t.palette.text.primary,.14)}`}),body:({theme:t})=>({borderBottom:`1px solid ${n(t.palette.text.primary,.09)}`})}},MuiDivider:{styleOverrides:{root:({theme:t})=>({borderColor:n(t.palette.text.primary,.12)})}},MuiAlert:{styleOverrides:{root:({theme:t})=>({borderRadius:24,border:`1px solid ${n(t.palette.text.primary,.14)}`,backgroundColor:n(t.palette.background.paper,.92)})}},MuiTooltip:{styleOverrides:{tooltip:({theme:t})=>({borderRadius:14,fontSize:"0.8rem",border:`1px solid ${n(t.palette.text.primary,.14)}`,backgroundColor:n(t.palette.background.paper,.98),color:t.palette.text.primary})}},MuiSnackbarContent:{styleOverrides:{root:({theme:t})=>({borderRadius:24,border:`1px solid ${n(t.palette.text.primary,.14)}`})}},MuiDialog:{styleOverrides:{paper:({theme:t})=>({borderRadius:k+6,border:`1px solid ${n(t.palette.text.primary,m)}`,boxShadow:`0 20px 44px ${n(t.palette.text.primary,e)}`})}},MuiMenu:{styleOverrides:{paper:({theme:t})=>({borderRadius:22,border:`1px solid ${n(t.palette.text.primary,m)}`})}},MuiPopover:{styleOverrides:{paper:({theme:t})=>({borderRadius:22,border:`1px solid ${n(t.palette.text.primary,m)}`})}},MuiDrawer:{styleOverrides:{paper:({theme:t})=>({borderRadius:"24px 0 0 24px",borderInlineStart:`1px solid ${n(t.palette.text.primary,m)}`})}},MuiMenuItem:{styleOverrides:{root:({theme:t})=>({marginInline:t.spacing(.5),borderRadius:12})}},MuiListItemButton:{styleOverrides:{root:({theme:t})=>({marginInline:t.spacing(.5),borderRadius:12})}}}),re={name:"Warm Earth",direction:"rtl",palette:{mode:"light",primary:{main:h,dark:R,light:I,contrastText:"#FFFFFF"},secondary:{main:W,dark:z,light:w,contrastText:"#1B2312"},info:{main:"#3B82F6",dark:"#2563EB",light:"#93C5FD",contrastText:"#FFFFFF"},success:{main:"#22A36A",dark:"#198D59",light:"#79D7AE",contrastText:"#FFFFFF"},warning:{main:"#D68A30",dark:"#B9711F",light:"#EDB370",contrastText:"#2B1E10"},error:{main:"#D86060",dark:"#B94A4A",light:"#EEA0A0",contrastText:"#FFFFFF"},background:{default:"#FBF4EC",paper:"#FFFDF9"},text:{primary:y,secondary:"#6B5341",disabled:n(y,.44)},divider:n(y,.12),grey:{50:"#FFFEFC",100:"#FFF9F1",200:"#F4E7D8",300:"#EAD6C1",400:"#D8BFA3",500:"#C0A180",600:"#8F735C",700:"#634E3F",800:"#3E3127",900:"#1F1712"},action:{hover:n(h,.06),selected:n(h,.12),focus:n("#3B82F6",.2),active:n(y,.5),disabled:n(y,.3),disabledBackground:n(y,.08)}},typography:A,shape:{borderRadius:k},spacing:8,components:S({bodyGlowPrimary:.2,bodyGlowSecondary:.16,surfaceBorderAlpha:.1,panelShadowAlpha:.14,appBarAlpha:.88})},te={name:"Warm Earth Dark",direction:"rtl",palette:{mode:"dark",primary:{main:"#E4B392",dark:"#CB9675",light:"#F0CBB4",contrastText:"#1D120B"},secondary:{main:"#B7CB97",dark:"#A1B67F",light:"#D4E2C0",contrastText:"#1B2312"},info:{main:"#93C5FD",dark:"#60A5FA",light:"#BFDBFE",contrastText:"#102033"},success:{main:"#79D7AE",dark:"#4BC48F",light:"#B1E9CD",contrastText:"#0D2A1D"},warning:{main:"#EDB370",dark:"#D68A30",light:"#F6CC99",contrastText:"#31200D"},error:{main:"#EEA0A0",dark:"#D86060",light:"#F5C4C4",contrastText:"#301414"},background:{default:"#18120E",paper:"#241C17"},text:{primary:"#F7EEE3",secondary:"#D1C1B2",disabled:n("#F7EEE3",.45)},divider:n("#F7EEE3",.14),grey:{50:"#18120E",100:"#241C17",200:"#302720",300:"#3E342A",400:"#56483A",500:"#776655",600:"#A18A73",700:"#D1C1B2",800:"#E9DFD3",900:"#F7EEE3"},action:{hover:n("#E4B392",.1),selected:n("#E4B392",.16),focus:n("#93C5FD",.24),active:n("#F7EEE3",.52),disabled:n("#F7EEE3",.32),disabledBackground:n("#F7EEE3",.08)}},typography:A,shape:{borderRadius:k},spacing:8,components:S({bodyGlowPrimary:.22,bodyGlowSecondary:.14,surfaceBorderAlpha:.18,panelShadowAlpha:.32,appBarAlpha:.78})};export{P as a,N as b,_ as c,U as d,Q as e,K as f,J as g,X as h,re as i,te as j};
|
|
2
|
+
//# sourceMappingURL=chunk-JBLCVRJT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/constants/themes/editorialClassic.ts","../src/constants/themes/modernMinimal.ts","../src/constants/themes/neoGlass.ts","../src/constants/themes/retroTerminal.ts","../src/constants/themes/warmEarth.ts"],"sourcesContent":["import { alpha } from \"@mui/material/styles\";\n\nimport type { NamedThemeOptions } from \"@/models\";\n\n/**\n * Editorial Classic — magazine / editorial style.\n * - Light: warm paper background, strict typography, crisp hairline borders.\n * - Dark: ink-on-charcoal with softened borders and the same editorial rhythm.\n *\n * Dark mode note (for your current createCustomTheme implementation):\n * - In dark mode, surface overrides (palette.background, CssBaseline backgrounds)\n * are applied only if the override explicitly sets `palette.mode: \"dark\"`.\n * - Therefore the Dark variant below sets `palette.mode: \"dark\"`.\n */\n\nconst FONT_EDITORIAL =\n '\"Source Serif 4\",\"Noto Naskh Arabic\",\"Tajawal\",\"Cairo\",\"Georgia\",\"Times New Roman\",serif';\n\nexport const editorialClassic = {\n name: \"Editorial Classic\",\n direction: \"rtl\",\n\n palette: {\n mode: \"light\",\n\n primary: {\n // Deep editorial ink (links, focus)\n main: \"#111827\",\n dark: \"#0B1220\",\n light: \"#374151\",\n contrastText: \"#FFFFFF\",\n },\n\n secondary: {\n // Muted burgundy (accents, highlights)\n main: \"#7F1D1D\",\n dark: \"#5B1414\",\n light: \"#B91C1C\",\n contrastText: \"#FFFFFF\",\n },\n\n info: {\n main: \"#1D4ED8\",\n dark: \"#1E40AF\",\n light: \"#60A5FA\",\n contrastText: \"#FFFFFF\",\n },\n success: {\n main: \"#166534\",\n dark: \"#14532D\",\n light: \"#4ADE80\",\n contrastText: \"#FFFFFF\",\n },\n warning: {\n main: \"#B45309\",\n dark: \"#92400E\",\n light: \"#F59E0B\",\n contrastText: \"#0B1220\",\n },\n error: {\n main: \"#B91C1C\",\n dark: \"#991B1B\",\n light: \"#EF4444\",\n contrastText: \"#FFFFFF\",\n },\n\n background: {\n default: \"#FBF7F0\", // warm paper\n paper: \"#FFFFFF\",\n },\n\n text: {\n primary: \"#111827\",\n secondary: \"#4B5563\",\n disabled: alpha(\"#111827\", 0.45),\n },\n\n divider: alpha(\"#111827\", 0.12),\n\n grey: {\n 50: \"#FFFEFC\",\n 100: \"#FBF7F0\",\n 200: \"#F1E8DD\",\n 300: \"#E4D7C7\",\n 400: \"#CBB9A4\",\n 500: \"#9B8A78\",\n 600: \"#6B5E52\",\n 700: \"#4B3F37\",\n 800: \"#2A2624\",\n 900: \"#111827\",\n },\n\n action: {\n hover: alpha(\"#111827\", 0.06),\n selected: alpha(\"#111827\", 0.12),\n focus: alpha(\"#1D4ED8\", 0.18),\n active: alpha(\"#111827\", 0.54),\n disabled: alpha(\"#111827\", 0.32),\n disabledBackground: alpha(\"#111827\", 0.08),\n },\n },\n\n typography: {\n fontFamily: FONT_EDITORIAL,\n\n // Editorial hierarchy (a little more \"print\" feel)\n h1: {\n fontWeight: 800,\n fontSize: \"2.1rem\",\n lineHeight: 1.2,\n letterSpacing: \"-0.02em\",\n },\n h2: {\n fontWeight: 800,\n fontSize: \"1.6rem\",\n lineHeight: 1.25,\n letterSpacing: \"-0.01em\",\n },\n h3: { fontWeight: 800, fontSize: \"1.3rem\", lineHeight: 1.3 },\n h4: { fontWeight: 700, fontSize: \"1.125rem\", lineHeight: 1.4 },\n\n subtitle1: { fontWeight: 700, fontSize: \"0.95rem\" },\n subtitle2: { fontWeight: 700, fontSize: \"0.875rem\" },\n\n body1: { fontSize: \"1rem\", lineHeight: 1.85 },\n body2: { fontSize: \"0.9rem\", lineHeight: 1.75 },\n\n button: { textTransform: \"none\", fontWeight: 700 },\n caption: { fontSize: \"0.78rem\" },\n overline: { fontSize: \"0.75rem\", letterSpacing: \"0.12em\" },\n },\n\n shape: { borderRadius: 10 },\n spacing: 8,\n\n components: {\n MuiCssBaseline: {\n styleOverrides: (theme) => ({\n body: {\n backgroundColor: theme.palette.background.default,\n color: theme.palette.text.primary,\n },\n }),\n },\n\n MuiPaper: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 12,\n backgroundImage: \"none\",\n border: `1px solid ${alpha(theme.palette.text.primary, 0.08)}`, // hairline\n }),\n },\n },\n\n MuiCard: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 14,\n border: `1px solid ${alpha(theme.palette.text.primary, 0.1)}`,\n }),\n },\n },\n\n MuiAppBar: {\n defaultProps: { color: \"inherit\", elevation: 0 },\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: theme.palette.background.paper,\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, 0.1)}`,\n }),\n },\n },\n\n MuiButton: {\n defaultProps: { disableElevation: true },\n styleOverrides: {\n root: {\n borderRadius: 10,\n paddingInline: 16,\n paddingBlock: 9,\n },\n outlined: {\n borderWidth: 1,\n },\n },\n },\n\n MuiLink: {\n styleOverrides: {\n root: {\n textDecorationThickness: \"2px\",\n textUnderlineOffset: \"3px\",\n },\n },\n },\n\n MuiOutlinedInput: {\n styleOverrides: {\n root: { borderRadius: 10 },\n notchedOutline: ({ theme }) => ({\n borderColor: alpha(theme.palette.text.primary, 0.18),\n }),\n },\n },\n\n MuiInputLabel: {\n styleOverrides: {\n root: { fontWeight: 700 },\n },\n },\n\n MuiTabs: {\n styleOverrides: {\n root: { minHeight: 44 },\n indicator: { height: 2, borderRadius: 2 },\n },\n },\n\n MuiTab: {\n styleOverrides: {\n root: { minHeight: 44, fontWeight: 700, paddingInline: 14 },\n },\n },\n\n MuiTableHead: {\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: alpha(theme.palette.text.primary, 0.04),\n }),\n },\n },\n\n MuiTableCell: {\n styleOverrides: {\n head: ({ theme }) => ({\n fontWeight: 800,\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, 0.12)}`,\n }),\n body: ({ theme }) => ({\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, 0.08)}`,\n }),\n },\n },\n\n MuiDivider: {\n styleOverrides: {\n root: ({ theme }) => ({ borderColor: theme.palette.divider }),\n },\n },\n\n MuiAlert: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 12,\n border: `1px solid ${alpha(theme.palette.text.primary, 0.08)}`,\n }),\n },\n },\n\n MuiTooltip: {\n styleOverrides: {\n tooltip: { borderRadius: 10, fontSize: \"0.8rem\" },\n },\n },\n\n MuiSnackbarContent: {\n styleOverrides: { root: { borderRadius: 12 } },\n },\n },\n} satisfies NamedThemeOptions;\n\nexport const editorialClassicDark = {\n name: \"Editorial Classic Dark\",\n direction: \"rtl\",\n\n palette: {\n mode: \"dark\",\n\n primary: {\n main: \"#E5E7EB\", // ink becomes light in dark mode\n dark: \"#CBD5E1\",\n light: \"#F3F4F6\",\n contrastText: \"#0B1220\",\n },\n\n secondary: {\n // Burgundy becomes a warm highlight\n main: \"#FB7185\",\n dark: \"#EF4444\",\n light: \"#FDA4AF\",\n contrastText: \"#0B1220\",\n },\n\n info: {\n main: \"#60A5FA\",\n dark: \"#3B82F6\",\n light: \"#93C5FD\",\n contrastText: \"#0B1220\",\n },\n success: {\n main: \"#34D399\",\n dark: \"#10B981\",\n light: \"#A7F3D0\",\n contrastText: \"#0B1220\",\n },\n warning: {\n main: \"#FBBF24\",\n dark: \"#F59E0B\",\n light: \"#FDE68A\",\n contrastText: \"#0B1220\",\n },\n error: {\n main: \"#FB7185\",\n dark: \"#EF4444\",\n light: \"#FDA4AF\",\n contrastText: \"#0B1220\",\n },\n\n background: {\n default: \"#0E1116\", // editorial charcoal\n paper: \"#141A22\",\n },\n\n text: {\n primary: \"#F3F4F6\",\n secondary: \"#A8B0BC\",\n disabled: alpha(\"#F3F4F6\", 0.45),\n },\n\n divider: alpha(\"#F3F4F6\", 0.14),\n\n grey: {\n 50: \"#0E1116\",\n 100: \"#141A22\",\n 200: \"#1B2431\",\n 300: \"#243245\",\n 400: \"#31435C\",\n 500: \"#4A5A78\",\n 600: \"#6B7A95\",\n 700: \"#A8B0BC\",\n 800: \"#E5E7EB\",\n 900: \"#F3F4F6\",\n },\n\n action: {\n hover: alpha(\"#F3F4F6\", 0.08),\n selected: alpha(\"#F3F4F6\", 0.12),\n focus: alpha(\"#60A5FA\", 0.22),\n active: alpha(\"#F3F4F6\", 0.54),\n disabled: alpha(\"#F3F4F6\", 0.32),\n disabledBackground: alpha(\"#F3F4F6\", 0.08),\n },\n },\n\n typography: {\n fontFamily: FONT_EDITORIAL,\n\n h1: {\n fontWeight: 800,\n fontSize: \"2.1rem\",\n lineHeight: 1.2,\n letterSpacing: \"-0.02em\",\n },\n h2: {\n fontWeight: 800,\n fontSize: \"1.6rem\",\n lineHeight: 1.25,\n letterSpacing: \"-0.01em\",\n },\n h3: { fontWeight: 800, fontSize: \"1.3rem\", lineHeight: 1.3 },\n h4: { fontWeight: 700, fontSize: \"1.125rem\", lineHeight: 1.4 },\n\n subtitle1: { fontWeight: 700, fontSize: \"0.95rem\" },\n subtitle2: { fontWeight: 700, fontSize: \"0.875rem\" },\n\n body1: { fontSize: \"1rem\", lineHeight: 1.85 },\n body2: { fontSize: \"0.9rem\", lineHeight: 1.75 },\n\n button: { textTransform: \"none\", fontWeight: 700 },\n caption: { fontSize: \"0.78rem\" },\n overline: { fontSize: \"0.75rem\", letterSpacing: \"0.12em\" },\n },\n\n shape: { borderRadius: 10 },\n spacing: 8,\n\n components: {\n MuiCssBaseline: {\n styleOverrides: (theme) => ({\n body: {\n backgroundColor: theme.palette.background.default,\n color: theme.palette.text.primary,\n },\n }),\n },\n\n MuiPaper: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 12,\n backgroundImage: \"none\",\n border: `1px solid ${alpha(theme.palette.text.primary, 0.1)}`,\n }),\n },\n },\n\n MuiCard: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 14,\n border: `1px solid ${alpha(theme.palette.text.primary, 0.1)}`,\n }),\n },\n },\n\n MuiAppBar: {\n defaultProps: { color: \"inherit\", elevation: 0 },\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: theme.palette.background.paper,\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, 0.1)}`,\n }),\n },\n },\n\n MuiButton: {\n defaultProps: { disableElevation: true },\n styleOverrides: {\n root: { borderRadius: 10, paddingInline: 16, paddingBlock: 9 },\n outlined: { borderWidth: 1 },\n },\n },\n\n MuiLink: {\n styleOverrides: {\n root: {\n textDecorationThickness: \"2px\",\n textUnderlineOffset: \"3px\",\n },\n },\n },\n\n MuiOutlinedInput: {\n styleOverrides: {\n root: { borderRadius: 10 },\n notchedOutline: ({ theme }) => ({\n borderColor: alpha(theme.palette.text.primary, 0.18),\n }),\n },\n },\n\n MuiInputLabel: {\n styleOverrides: {\n root: { fontWeight: 700 },\n },\n },\n\n MuiTabs: {\n styleOverrides: {\n root: { minHeight: 44 },\n indicator: { height: 2, borderRadius: 2 },\n },\n },\n\n MuiTab: {\n styleOverrides: {\n root: { minHeight: 44, fontWeight: 700, paddingInline: 14 },\n },\n },\n\n MuiTableHead: {\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: alpha(theme.palette.text.primary, 0.06),\n }),\n },\n },\n\n MuiTableCell: {\n styleOverrides: {\n head: ({ theme }) => ({\n fontWeight: 800,\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, 0.14)}`,\n }),\n body: ({ theme }) => ({\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, 0.1)}`,\n }),\n },\n },\n\n MuiDivider: {\n styleOverrides: {\n root: ({ theme }) => ({ borderColor: theme.palette.divider }),\n },\n },\n\n MuiAlert: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 12,\n border: `1px solid ${alpha(theme.palette.text.primary, 0.1)}`,\n }),\n },\n },\n\n MuiTooltip: {\n styleOverrides: {\n tooltip: { borderRadius: 10, fontSize: \"0.8rem\" },\n },\n },\n\n MuiSnackbarContent: {\n styleOverrides: { root: { borderRadius: 12 } },\n },\n },\n} satisfies NamedThemeOptions;\n","import { alpha } from \"@mui/material/styles\";\n\nimport type { NamedThemeOptions } from \"@/models\";\nimport type { Theme, ThemeOptions } from \"@mui/material/styles\";\n\n/**\n * Modern Minimal — purpose-driven, disciplined product UI.\n * - Strong hierarchy, low-ornament components, restrained contrast system.\n * - Designed to stay clear under dense dashboard content.\n */\n\nconst FONT_MINIMAL =\n '\"IBM Plex Sans\",\"Tajawal\",\"Cairo\",\"Noto Sans Arabic\",\"Inter\",\"Arial\",sans-serif';\n\nconst MINIMAL_RADIUS = 6;\n\nconst MINIMAL_TYPOGRAPHY = {\n fontFamily: FONT_MINIMAL,\n\n h1: {\n fontWeight: 900,\n fontSize: \"2.1rem\",\n lineHeight: 1.16,\n letterSpacing: \"-0.03em\",\n },\n h2: {\n fontWeight: 800,\n fontSize: \"1.68rem\",\n lineHeight: 1.22,\n letterSpacing: \"-0.02em\",\n },\n h3: {\n fontWeight: 700,\n fontSize: \"1.32rem\",\n lineHeight: 1.3,\n letterSpacing: \"-0.01em\",\n },\n h4: { fontWeight: 700, fontSize: \"1.08rem\", lineHeight: 1.4 },\n\n subtitle1: { fontWeight: 600, fontSize: \"0.94rem\" },\n subtitle2: { fontWeight: 600, fontSize: \"0.86rem\" },\n\n body1: { fontSize: \"0.94rem\", lineHeight: 1.62 },\n body2: { fontSize: \"0.86rem\", lineHeight: 1.56 },\n\n button: {\n textTransform: \"uppercase\",\n fontWeight: 700,\n letterSpacing: \"0.05em\",\n },\n caption: { fontSize: \"0.74rem\" },\n overline: {\n fontSize: \"0.72rem\",\n letterSpacing: \"0.12em\",\n textTransform: \"uppercase\",\n },\n} as const;\n\nconst createMinimalComponents = ({\n appBarAlpha,\n borderAlpha,\n surfaceShadowAlpha,\n tableHeadAlpha,\n}: {\n appBarAlpha: number;\n borderAlpha: number;\n surfaceShadowAlpha: number;\n tableHeadAlpha: number;\n}): ThemeOptions[\"components\"] => ({\n MuiCssBaseline: {\n styleOverrides: (theme: Theme) => ({\n body: {\n backgroundColor: theme.palette.background.default,\n color: theme.palette.text.primary,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n },\n }),\n },\n\n MuiAppBar: {\n defaultProps: { color: \"inherit\" as const, elevation: 0 },\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: alpha(theme.palette.background.paper, appBarAlpha),\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, borderAlpha)}`,\n boxShadow: `0 1px 0 ${alpha(theme.palette.text.primary, borderAlpha * 0.7)}`,\n }),\n },\n },\n\n MuiPaper: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: MINIMAL_RADIUS + 2,\n backgroundImage: \"none\",\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha)}`,\n boxShadow: `0 1px 2px ${alpha(theme.palette.text.primary, surfaceShadowAlpha)}`,\n }),\n },\n },\n\n MuiCard: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: MINIMAL_RADIUS + 4,\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha)}`,\n boxShadow: `0 1px 2px ${alpha(theme.palette.text.primary, surfaceShadowAlpha)}`,\n }),\n },\n },\n\n MuiButton: {\n defaultProps: { disableElevation: true },\n styleOverrides: {\n root: {\n borderRadius: MINIMAL_RADIUS,\n paddingInline: 16,\n paddingBlock: 9,\n minHeight: 36,\n fontWeight: 700,\n },\n contained: {\n boxShadow: \"none\",\n },\n containedPrimary: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n \"&:hover\": {\n backgroundColor: theme.palette.primary.dark,\n boxShadow: \"none\",\n },\n }),\n outlined: ({ theme }) => ({\n borderWidth: 1,\n borderColor: alpha(theme.palette.text.primary, borderAlpha + 0.05),\n }),\n },\n },\n\n MuiChip: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: MINIMAL_RADIUS,\n fontWeight: 600,\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.04)}`,\n backgroundColor: alpha(theme.palette.background.paper, 0.9),\n }),\n },\n },\n\n MuiTabs: {\n styleOverrides: {\n root: ({ theme }) => ({\n minHeight: 42,\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.06)}`,\n }),\n indicator: ({ theme }) => ({\n height: 2,\n borderRadius: 1,\n backgroundColor: theme.palette.primary.main,\n }),\n },\n },\n\n MuiTab: {\n styleOverrides: {\n root: {\n minHeight: 42,\n fontWeight: 700,\n paddingInline: 14,\n },\n },\n },\n\n MuiOutlinedInput: {\n styleOverrides: {\n root: {\n borderRadius: MINIMAL_RADIUS,\n },\n notchedOutline: ({ theme }) => ({\n borderColor: alpha(theme.palette.text.primary, borderAlpha + 0.08),\n }),\n },\n },\n\n MuiInputLabel: {\n styleOverrides: {\n root: { fontWeight: 600 },\n },\n },\n\n MuiTableHead: {\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: alpha(theme.palette.text.primary, tableHeadAlpha),\n }),\n },\n },\n\n MuiTableCell: {\n styleOverrides: {\n head: ({ theme }) => ({\n fontWeight: 700,\n color: theme.palette.text.primary,\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n }),\n body: ({ theme }) => ({\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, borderAlpha)}`,\n }),\n },\n },\n\n MuiDivider: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderColor: theme.palette.divider,\n }),\n },\n },\n\n MuiAlert: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: MINIMAL_RADIUS + 2,\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n }),\n },\n },\n\n MuiTooltip: {\n styleOverrides: {\n tooltip: ({ theme }) => ({\n borderRadius: MINIMAL_RADIUS,\n fontSize: \"0.78rem\",\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n backgroundColor: theme.palette.background.paper,\n color: theme.palette.text.primary,\n }),\n },\n },\n\n MuiSnackbarContent: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: MINIMAL_RADIUS + 2,\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n }),\n },\n },\n});\n\nexport const modernMinimal = {\n name: \"Modern Minimal\",\n direction: \"rtl\",\n\n palette: {\n mode: \"light\",\n\n primary: {\n main: \"#1E40AF\",\n dark: \"#1E3A8A\",\n light: \"#3B82F6\",\n contrastText: \"#FFFFFF\",\n },\n\n secondary: {\n main: \"#111827\",\n dark: \"#030712\",\n light: \"#374151\",\n contrastText: \"#FFFFFF\",\n },\n\n info: {\n main: \"#2563EB\",\n dark: \"#1D4ED8\",\n light: \"#60A5FA\",\n contrastText: \"#FFFFFF\",\n },\n\n success: {\n main: \"#15803D\",\n dark: \"#166534\",\n light: \"#4ADE80\",\n contrastText: \"#FFFFFF\",\n },\n\n warning: {\n main: \"#B45309\",\n dark: \"#92400E\",\n light: \"#F59E0B\",\n contrastText: \"#FFFFFF\",\n },\n\n error: {\n main: \"#B91C1C\",\n dark: \"#991B1B\",\n light: \"#EF4444\",\n contrastText: \"#FFFFFF\",\n },\n\n background: {\n default: \"#F3F4F6\",\n paper: \"#FFFFFF\",\n },\n\n text: {\n primary: \"#111827\",\n secondary: \"#4B5563\",\n disabled: alpha(\"#111827\", 0.45),\n },\n\n divider: alpha(\"#111827\", 0.14),\n\n grey: {\n 50: \"#F9FAFB\",\n 100: \"#F3F4F6\",\n 200: \"#E5E7EB\",\n 300: \"#D1D5DB\",\n 400: \"#9CA3AF\",\n 500: \"#6B7280\",\n 600: \"#4B5563\",\n 700: \"#374151\",\n 800: \"#1F2937\",\n 900: \"#111827\",\n },\n\n action: {\n hover: alpha(\"#1E40AF\", 0.04),\n selected: alpha(\"#1E40AF\", 0.1),\n focus: alpha(\"#1E40AF\", 0.2),\n active: alpha(\"#111827\", 0.54),\n disabled: alpha(\"#111827\", 0.32),\n disabledBackground: alpha(\"#111827\", 0.08),\n },\n },\n\n typography: MINIMAL_TYPOGRAPHY,\n\n shape: { borderRadius: MINIMAL_RADIUS },\n spacing: 8,\n\n components: createMinimalComponents({\n appBarAlpha: 0.98,\n borderAlpha: 0.12,\n surfaceShadowAlpha: 0.08,\n tableHeadAlpha: 0.04,\n }),\n} satisfies NamedThemeOptions;\n\nexport const modernMinimalDark = {\n name: \"Modern Minimal Dark\",\n direction: \"rtl\",\n\n palette: {\n mode: \"dark\",\n\n primary: {\n main: \"#93C5FD\",\n dark: \"#60A5FA\",\n light: \"#BFDBFE\",\n contrastText: \"#0B1220\",\n },\n\n secondary: {\n main: \"#E5E7EB\",\n dark: \"#D1D5DB\",\n light: \"#F3F4F6\",\n contrastText: \"#0B1220\",\n },\n\n info: {\n main: \"#7DD3FC\",\n dark: \"#38BDF8\",\n light: \"#BAE6FD\",\n contrastText: \"#0B1220\",\n },\n\n success: {\n main: \"#6EE7B7\",\n dark: \"#34D399\",\n light: \"#A7F3D0\",\n contrastText: \"#0B1220\",\n },\n\n warning: {\n main: \"#FCD34D\",\n dark: \"#FBBF24\",\n light: \"#FDE68A\",\n contrastText: \"#0B1220\",\n },\n\n error: {\n main: \"#FDA4AF\",\n dark: \"#FB7185\",\n light: \"#FECACA\",\n contrastText: \"#0B1220\",\n },\n\n background: {\n default: \"#0B0F14\",\n paper: \"#111827\",\n },\n\n text: {\n primary: \"#F3F4F6\",\n secondary: \"#9CA3AF\",\n disabled: alpha(\"#F3F4F6\", 0.45),\n },\n\n divider: alpha(\"#F3F4F6\", 0.16),\n\n grey: {\n 50: \"#0B0F14\",\n 100: \"#111827\",\n 200: \"#1F2937\",\n 300: \"#374151\",\n 400: \"#4B5563\",\n 500: \"#6B7280\",\n 600: \"#9CA3AF\",\n 700: \"#D1D5DB\",\n 800: \"#E5E7EB\",\n 900: \"#F3F4F6\",\n },\n\n action: {\n hover: alpha(\"#93C5FD\", 0.08),\n selected: alpha(\"#93C5FD\", 0.16),\n focus: alpha(\"#93C5FD\", 0.24),\n active: alpha(\"#F3F4F6\", 0.54),\n disabled: alpha(\"#F3F4F6\", 0.32),\n disabledBackground: alpha(\"#F3F4F6\", 0.08),\n },\n },\n\n typography: MINIMAL_TYPOGRAPHY,\n\n shape: { borderRadius: MINIMAL_RADIUS },\n spacing: 8,\n\n components: createMinimalComponents({\n appBarAlpha: 0.94,\n borderAlpha: 0.2,\n surfaceShadowAlpha: 0.2,\n tableHeadAlpha: 0.08,\n }),\n} satisfies NamedThemeOptions;\n","import { alpha } from \"@mui/material/styles\";\n\nimport type { NamedThemeOptions } from \"@/models\";\nimport type { Theme, ThemeOptions } from \"@mui/material/styles\";\n\n/**\n * Neo Glass — liquid-glass direction.\n * - Light: iridescent liquid surfaces over luminous sky gradients.\n * - Dark: deep night glass with neon edges and stronger depth.\n */\n\nconst FONT_LIQUID =\n '\"Space Grotesk\",\"Tajawal\",\"Cairo\",\"Noto Sans Arabic\",\"Inter\",\"Roboto\",\"Arial\",sans-serif';\n\nconst LIQUID_RADIUS = 26;\nconst LIQUID_BLUR = \"blur(18px) saturate(165%)\";\nconst LIQUID_BLUR_STRONG = \"blur(24px) saturate(180%)\";\n\nconst LIQUID_TYPOGRAPHY = {\n fontFamily: FONT_LIQUID,\n\n h1: {\n fontWeight: 800,\n fontSize: \"2.08rem\",\n lineHeight: 1.2,\n letterSpacing: \"-0.025em\",\n },\n h2: {\n fontWeight: 800,\n fontSize: \"1.56rem\",\n lineHeight: 1.25,\n letterSpacing: \"-0.02em\",\n },\n h3: { fontWeight: 700, fontSize: \"1.28rem\", lineHeight: 1.32 },\n h4: { fontWeight: 700, fontSize: \"1.13rem\", lineHeight: 1.4 },\n\n subtitle1: { fontWeight: 700, fontSize: \"0.95rem\" },\n subtitle2: { fontWeight: 700, fontSize: \"0.875rem\" },\n\n body1: { fontSize: \"0.95rem\", lineHeight: 1.64 },\n body2: { fontSize: \"0.875rem\", lineHeight: 1.58 },\n\n button: { textTransform: \"none\", fontWeight: 700, letterSpacing: \"0.01em\" },\n caption: { fontSize: \"0.75rem\" },\n overline: { fontSize: \"0.75rem\", letterSpacing: \"0.08em\" },\n} as const;\n\nconst createLiquidGlassComponents = ({\n bodyPrimaryGlowAlpha,\n bodySecondaryGlowAlpha,\n bodyTertiaryGlowAlpha,\n paperAlpha,\n borderAlpha,\n shadowAlpha,\n isDark,\n}: {\n bodyPrimaryGlowAlpha: number;\n bodySecondaryGlowAlpha: number;\n bodyTertiaryGlowAlpha: number;\n paperAlpha: number;\n borderAlpha: number;\n shadowAlpha: number;\n isDark: boolean;\n}): ThemeOptions[\"components\"] => ({\n MuiCssBaseline: {\n styleOverrides: (theme: Theme) => ({\n body: {\n backgroundColor: theme.palette.background.default,\n color: theme.palette.text.primary,\n backgroundImage: `radial-gradient(1200px 620px at 8% -10%, ${alpha(\n theme.palette.primary.main,\n bodyPrimaryGlowAlpha,\n )}, transparent 52%), radial-gradient(1000px 540px at 96% 4%, ${alpha(\n theme.palette.secondary.main,\n bodySecondaryGlowAlpha,\n )}, transparent 50%), radial-gradient(900px 460px at 50% 100%, ${alpha(\n theme.palette.info.main,\n bodyTertiaryGlowAlpha,\n )}, transparent 58%)`,\n backgroundAttachment: \"fixed\",\n },\n \"body::before\": {\n content: '\"\"',\n position: \"fixed\",\n inset: \"-24% auto auto -16%\",\n width: \"52vw\",\n height: \"52vw\",\n borderRadius: \"50%\",\n pointerEvents: \"none\",\n zIndex: -1,\n background: `radial-gradient(circle, ${alpha(\n theme.palette.primary.light,\n isDark ? 0.2 : 0.26,\n )} 0%, transparent 72%)`,\n filter: \"blur(16px)\",\n },\n \"body::after\": {\n content: '\"\"',\n position: \"fixed\",\n inset: \"auto -18% -28% auto\",\n width: \"56vw\",\n height: \"56vw\",\n borderRadius: \"50%\",\n pointerEvents: \"none\",\n zIndex: -1,\n background: `radial-gradient(circle, ${alpha(\n theme.palette.secondary.light,\n isDark ? 0.18 : 0.24,\n )} 0%, transparent 74%)`,\n filter: \"blur(18px)\",\n },\n \"*::selection\": {\n backgroundColor: alpha(theme.palette.primary.main, isDark ? 0.4 : 0.28),\n color: theme.palette.background.default,\n },\n }),\n },\n\n MuiBackdrop: {\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: alpha(\n theme.palette.background.default,\n isDark ? 0.54 : 0.32,\n ),\n backdropFilter: \"blur(6px)\",\n }),\n },\n },\n\n MuiAppBar: {\n defaultProps: { color: \"inherit\" as const, elevation: 0 },\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 999,\n marginInline: theme.spacing(1),\n marginTop: theme.spacing(1),\n paddingInline: theme.spacing(1),\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha + 0.12,\n ),\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n boxShadow: `0 12px 36px ${alpha(theme.palette.primary.dark, shadowAlpha)}`,\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n }),\n },\n },\n\n MuiPaper: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: LIQUID_RADIUS + 6,\n backgroundImage: `linear-gradient(150deg, ${alpha(\n \"#FFFFFF\",\n isDark ? 0.1 : 0.62,\n )} 0%, ${alpha(\"#FFFFFF\", isDark ? 0.04 : 0.18)} 42%, ${alpha(\n theme.palette.primary.light,\n isDark ? 0.12 : 0.18,\n )} 100%)`,\n backgroundColor: alpha(theme.palette.background.paper, paperAlpha),\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha)}`,\n boxShadow: `0 18px 44px ${alpha(theme.palette.primary.dark, shadowAlpha)}`,\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n }),\n },\n },\n\n MuiCard: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: LIQUID_RADIUS + 8,\n backgroundImage: `linear-gradient(165deg, ${alpha(\n \"#FFFFFF\",\n isDark ? 0.08 : 0.6,\n )}, ${alpha(theme.palette.secondary.light, isDark ? 0.08 : 0.18)} 120%)`,\n backgroundColor: alpha(theme.palette.background.paper, paperAlpha),\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha)}`,\n boxShadow: `0 22px 48px ${alpha(theme.palette.primary.dark, shadowAlpha + 0.04)}`,\n backdropFilter: LIQUID_BLUR_STRONG,\n WebkitBackdropFilter: LIQUID_BLUR_STRONG,\n }),\n },\n },\n\n MuiButton: {\n defaultProps: { disableElevation: true },\n styleOverrides: {\n root: {\n borderRadius: 999,\n paddingInline: 20,\n paddingBlock: 10,\n fontWeight: 700,\n },\n containedPrimary: ({ theme }) => ({\n backgroundImage: `linear-gradient(130deg, ${alpha(\n theme.palette.primary.light,\n 0.98,\n )}, ${alpha(theme.palette.primary.main, 0.94)} 45%, ${alpha(\n theme.palette.secondary.main,\n 0.9,\n )} 100%)`,\n boxShadow: `0 10px 26px ${alpha(theme.palette.primary.main, 0.36)}`,\n \"&:hover\": {\n boxShadow: `0 14px 30px ${alpha(theme.palette.primary.main, 0.44)}`,\n transform: \"translateY(-1px)\",\n },\n }),\n outlined: ({ theme }) => ({\n borderWidth: 1,\n borderColor: alpha(theme.palette.text.primary, 0.22),\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha - 0.04,\n ),\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n }),\n },\n },\n\n MuiChip: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 999,\n fontWeight: 700,\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha)}`,\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha - 0.02,\n ),\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n }),\n },\n },\n\n MuiOutlinedInput: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 20,\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha - 0.02,\n ),\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n \"&.Mui-focused .MuiOutlinedInput-notchedOutline\": {\n borderColor: alpha(theme.palette.primary.main, 0.62),\n borderWidth: 1,\n },\n }),\n notchedOutline: ({ theme }) => ({\n borderColor: alpha(theme.palette.text.primary, borderAlpha),\n }),\n },\n },\n\n MuiInputLabel: {\n styleOverrides: {\n root: { fontWeight: 700 },\n },\n },\n\n MuiTabs: {\n styleOverrides: {\n root: ({ theme }) => ({\n minHeight: 46,\n padding: theme.spacing(0.5),\n borderRadius: 999,\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha - 0.06,\n ),\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha)}`,\n }),\n indicator: ({ theme }) => ({\n height: \"calc(100% - 8px)\",\n top: 4,\n borderRadius: 999,\n backgroundImage: `linear-gradient(150deg, ${alpha(\n \"#FFFFFF\",\n isDark ? 0.14 : 0.8,\n )}, ${alpha(theme.palette.primary.light, isDark ? 0.18 : 0.42)})`,\n border: `1px solid ${alpha(theme.palette.primary.main, 0.36)}`,\n boxShadow: `0 8px 18px ${alpha(theme.palette.primary.main, 0.24)}`,\n }),\n },\n },\n\n MuiTab: {\n styleOverrides: {\n root: {\n minHeight: 38,\n borderRadius: 999,\n fontWeight: 700,\n paddingInline: 14,\n },\n },\n },\n\n MuiTableHead: {\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundImage: `linear-gradient(90deg, ${alpha(\n theme.palette.primary.main,\n 0.16,\n )}, ${alpha(theme.palette.secondary.main, 0.14)})`,\n }),\n },\n },\n\n MuiTableCell: {\n styleOverrides: {\n head: ({ theme }) => ({\n fontWeight: 800,\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n }),\n body: ({ theme }) => ({\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, borderAlpha - 0.02)}`,\n }),\n },\n },\n\n MuiDivider: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderColor: alpha(theme.palette.text.primary, borderAlpha),\n }),\n },\n },\n\n MuiAlert: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: LIQUID_RADIUS,\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha + 0.06,\n ),\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n }),\n },\n },\n\n MuiTooltip: {\n styleOverrides: {\n tooltip: ({ theme }) => ({\n borderRadius: 14,\n fontSize: \"0.8rem\",\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha + 0.12,\n ),\n color: theme.palette.text.primary,\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n }),\n },\n },\n\n MuiSnackbarContent: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 22,\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha + 0.1,\n ),\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n boxShadow: `0 14px 34px ${alpha(theme.palette.primary.dark, shadowAlpha)}`,\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n }),\n },\n },\n\n MuiDialog: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: LIQUID_RADIUS + 10,\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha + 0.08,\n ),\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.1)}`,\n boxShadow: `0 26px 56px ${alpha(theme.palette.primary.dark, shadowAlpha + 0.08)}`,\n backdropFilter: LIQUID_BLUR_STRONG,\n WebkitBackdropFilter: LIQUID_BLUR_STRONG,\n }),\n },\n },\n\n MuiMenu: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: 20,\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha + 0.1,\n ),\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n }),\n },\n },\n\n MuiPopover: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: 20,\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha + 0.08,\n ),\n border: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n backdropFilter: LIQUID_BLUR,\n WebkitBackdropFilter: LIQUID_BLUR,\n }),\n },\n },\n\n MuiDrawer: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: \"24px 0 0 24px\",\n backgroundColor: alpha(\n theme.palette.background.paper,\n paperAlpha + 0.06,\n ),\n borderInlineStart: `1px solid ${alpha(theme.palette.text.primary, borderAlpha + 0.08)}`,\n backdropFilter: LIQUID_BLUR_STRONG,\n WebkitBackdropFilter: LIQUID_BLUR_STRONG,\n }),\n },\n },\n});\n\nexport const neoGlass = {\n name: \"Neo Glass\",\n direction: \"rtl\",\n\n palette: {\n mode: \"light\",\n\n primary: {\n main: \"#43B5FF\",\n dark: \"#1F96EF\",\n light: \"#8DD6FF\",\n contrastText: \"#04203A\",\n },\n\n secondary: {\n main: \"#A86CFF\",\n dark: \"#8D4CFA\",\n light: \"#C7A4FF\",\n contrastText: \"#1D1133\",\n },\n\n info: {\n main: \"#39D7FF\",\n dark: \"#0EB4E0\",\n light: \"#9DEBFF\",\n contrastText: \"#032533\",\n },\n success: {\n main: \"#49CFA0\",\n dark: \"#2FAE82\",\n light: \"#94E5C8\",\n contrastText: \"#053226\",\n },\n warning: {\n main: \"#F2B366\",\n dark: \"#D38F42\",\n light: \"#F8D2A3\",\n contrastText: \"#392008\",\n },\n error: {\n main: \"#FF6F96\",\n dark: \"#F34978\",\n light: \"#FFAAC1\",\n contrastText: \"#3A0B1A\",\n },\n\n background: {\n default: \"#EAF4FF\",\n paper: \"#F7FBFF\",\n },\n\n text: {\n primary: \"#0D1C33\",\n secondary: \"#3B4E6D\",\n disabled: alpha(\"#0D1C33\", 0.45),\n },\n\n divider: alpha(\"#0D1C33\", 0.15),\n\n grey: {\n 50: \"#F8FBFF\",\n 100: \"#EEF5FF\",\n 200: \"#DEEBFF\",\n 300: \"#C7DBFA\",\n 400: \"#A3C0E8\",\n 500: \"#7D98BE\",\n 600: \"#5B7497\",\n 700: \"#435877\",\n 800: \"#2A3D58\",\n 900: \"#0D1C33\",\n },\n\n action: {\n hover: alpha(\"#43B5FF\", 0.14),\n selected: alpha(\"#43B5FF\", 0.22),\n focus: alpha(\"#A86CFF\", 0.24),\n active: alpha(\"#0D1C33\", 0.54),\n disabled: alpha(\"#0D1C33\", 0.32),\n disabledBackground: alpha(\"#0D1C33\", 0.08),\n },\n },\n\n typography: LIQUID_TYPOGRAPHY,\n\n shape: { borderRadius: LIQUID_RADIUS },\n spacing: 8,\n\n components: createLiquidGlassComponents({\n bodyPrimaryGlowAlpha: 0.32,\n bodySecondaryGlowAlpha: 0.24,\n bodyTertiaryGlowAlpha: 0.2,\n paperAlpha: 0.64,\n borderAlpha: 0.2,\n shadowAlpha: 0.18,\n isDark: false,\n }),\n} satisfies NamedThemeOptions;\n\nexport const neoGlassDark = {\n name: \"Neo Glass Dark\",\n direction: \"rtl\",\n\n palette: {\n mode: \"dark\",\n\n primary: {\n main: \"#7DCCFF\",\n dark: \"#4FB6FF\",\n light: \"#B9E6FF\",\n contrastText: \"#021524\",\n },\n\n secondary: {\n main: \"#C59BFF\",\n dark: \"#A86CFF\",\n light: \"#E0C7FF\",\n contrastText: \"#140C24\",\n },\n\n info: {\n main: \"#7EE6FF\",\n dark: \"#39D7FF\",\n light: \"#C0F5FF\",\n contrastText: \"#022130\",\n },\n success: {\n main: \"#89E8C4\",\n dark: \"#49CFA0\",\n light: \"#BDF2DC\",\n contrastText: \"#06261B\",\n },\n warning: {\n main: \"#F8D2A3\",\n dark: \"#F2B366\",\n light: \"#FDE8CA\",\n contrastText: \"#2F1A08\",\n },\n error: {\n main: \"#FFAAC1\",\n dark: \"#FF6F96\",\n light: \"#FFD0DD\",\n contrastText: \"#2F101A\",\n },\n\n background: {\n default: \"#040918\",\n paper: \"#0E1630\",\n },\n\n text: {\n primary: \"#E8F2FF\",\n secondary: \"#A5BCD9\",\n disabled: alpha(\"#E8F2FF\", 0.45),\n },\n\n divider: alpha(\"#E8F2FF\", 0.16),\n\n grey: {\n 50: \"#040918\",\n 100: \"#0B1126\",\n 200: \"#131D3A\",\n 300: \"#1E2B4E\",\n 400: \"#2E4370\",\n 500: \"#48639A\",\n 600: \"#6E8BBA\",\n 700: \"#A5BCD9\",\n 800: \"#D3E2F3\",\n 900: \"#E8F2FF\",\n },\n\n action: {\n hover: alpha(\"#7DCCFF\", 0.18),\n selected: alpha(\"#7DCCFF\", 0.28),\n focus: alpha(\"#C59BFF\", 0.28),\n active: alpha(\"#E8F2FF\", 0.58),\n disabled: alpha(\"#E8F2FF\", 0.34),\n disabledBackground: alpha(\"#E8F2FF\", 0.08),\n },\n },\n\n typography: LIQUID_TYPOGRAPHY,\n\n shape: { borderRadius: LIQUID_RADIUS },\n spacing: 8,\n\n components: createLiquidGlassComponents({\n bodyPrimaryGlowAlpha: 0.28,\n bodySecondaryGlowAlpha: 0.22,\n bodyTertiaryGlowAlpha: 0.18,\n paperAlpha: 0.46,\n borderAlpha: 0.32,\n shadowAlpha: 0.42,\n isDark: true,\n }),\n} satisfies NamedThemeOptions;\n","import { alpha } from \"@mui/material/styles\";\n\nimport type { NamedThemeOptions } from \"@/models\";\nimport type { Theme, ThemeOptions } from \"@mui/material/styles\";\n\nconst FONT_MONO =\n '\"IBM Plex Mono\",\"JetBrains Mono\",\"Tajawal\",\"Cairo\",\"Noto Sans Arabic\",\"Roboto Mono\",\"Consolas\",\"Arial\",monospace';\n\nconst TERMINAL_TYPOGRAPHY = {\n fontFamily: FONT_MONO,\n\n h1: {\n fontWeight: 800,\n fontSize: \"1.85rem\",\n lineHeight: 1.2,\n letterSpacing: \"0.03em\",\n },\n h2: {\n fontWeight: 800,\n fontSize: \"1.42rem\",\n lineHeight: 1.24,\n letterSpacing: \"0.025em\",\n },\n h3: {\n fontWeight: 800,\n fontSize: \"1.14rem\",\n lineHeight: 1.3,\n letterSpacing: \"0.02em\",\n },\n h4: {\n fontWeight: 700,\n fontSize: \"1.02rem\",\n lineHeight: 1.35,\n letterSpacing: \"0.015em\",\n },\n\n subtitle1: { fontWeight: 700, fontSize: \"0.92rem\", letterSpacing: \"0.02em\" },\n subtitle2: { fontWeight: 700, fontSize: \"0.84rem\", letterSpacing: \"0.02em\" },\n\n body1: { fontSize: \"0.92rem\", lineHeight: 1.72 },\n body2: { fontSize: \"0.84rem\", lineHeight: 1.62 },\n\n button: {\n textTransform: \"uppercase\",\n fontWeight: 800,\n letterSpacing: \"0.08em\",\n },\n caption: { fontSize: \"0.73rem\", letterSpacing: \"0.03em\" },\n overline: {\n fontSize: \"0.7rem\",\n letterSpacing: \"0.14em\",\n textTransform: \"uppercase\",\n },\n} as const;\n\nconst createTerminalComponents = ({\n scanlineAlpha,\n surfaceBorderAlpha,\n panelGlowAlpha,\n}: {\n scanlineAlpha: number;\n surfaceBorderAlpha: number;\n panelGlowAlpha: number;\n}): ThemeOptions[\"components\"] => ({\n MuiCssBaseline: {\n styleOverrides: (theme: Theme) => ({\n \"*, *::before, *::after\": {\n boxSizing: \"border-box\",\n },\n body: {\n backgroundColor: theme.palette.background.default,\n color: theme.palette.text.primary,\n textShadow: `0 0 1px ${alpha(theme.palette.primary.main, 0.2)}`,\n backgroundImage: `repeating-linear-gradient(0deg, ${alpha(\n theme.palette.text.primary,\n scanlineAlpha,\n )} 0px, ${alpha(\n theme.palette.text.primary,\n scanlineAlpha,\n )} 1px, transparent 1px, transparent 4px)`,\n backgroundSize: \"100% 4px\",\n },\n \"*::selection\": {\n backgroundColor: alpha(theme.palette.primary.main, 0.34),\n color: theme.palette.background.default,\n },\n }),\n },\n\n MuiAppBar: {\n defaultProps: { color: \"inherit\" as const, elevation: 0 },\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 0,\n backgroundColor: alpha(theme.palette.background.paper, 0.96),\n borderBottom: `2px solid ${alpha(theme.palette.primary.main, 0.62)}`,\n boxShadow: `inset 0 -1px 0 ${alpha(theme.palette.primary.light, 0.24)}`,\n }),\n },\n },\n\n MuiPaper: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 0,\n backgroundImage: \"none\",\n backgroundColor: alpha(theme.palette.background.paper, 0.98),\n border: `2px solid ${alpha(theme.palette.primary.main, surfaceBorderAlpha)}`,\n boxShadow: `inset 0 0 0 1px ${alpha(theme.palette.primary.light, panelGlowAlpha)}`,\n }),\n },\n },\n\n MuiCard: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 0,\n backgroundImage: \"none\",\n border: `2px solid ${alpha(theme.palette.primary.main, surfaceBorderAlpha)}`,\n boxShadow: `inset 0 0 0 1px ${alpha(theme.palette.primary.light, panelGlowAlpha)}`,\n }),\n },\n },\n\n MuiButton: {\n defaultProps: { disableElevation: true },\n styleOverrides: {\n root: {\n borderRadius: 0,\n paddingInline: 16,\n paddingBlock: 9,\n minHeight: 38,\n fontWeight: 800,\n letterSpacing: \"0.08em\",\n textTransform: \"uppercase\",\n },\n containedPrimary: ({ theme }) => ({\n color: theme.palette.primary.light,\n backgroundColor: alpha(theme.palette.primary.main, 0.16),\n border: `2px solid ${alpha(theme.palette.primary.main, 0.72)}`,\n boxShadow: `inset 0 0 0 1px ${alpha(theme.palette.primary.light, 0.34)}`,\n \"&:hover\": {\n backgroundColor: alpha(theme.palette.primary.main, 0.24),\n borderColor: theme.palette.primary.main,\n },\n }),\n outlined: {\n borderStyle: \"dashed\",\n borderWidth: 2,\n },\n outlinedPrimary: ({ theme }) => ({\n borderColor: alpha(theme.palette.primary.main, 0.7),\n }),\n textPrimary: ({ theme }) => ({\n color: theme.palette.primary.main,\n textDecoration: \"underline\",\n textUnderlineOffset: \"2px\",\n }),\n },\n },\n\n MuiChip: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 0,\n fontWeight: 700,\n textTransform: \"uppercase\",\n border: `2px dashed ${alpha(theme.palette.primary.main, 0.68)}`,\n backgroundColor: alpha(theme.palette.primary.main, 0.1),\n }),\n label: {\n paddingInline: 8,\n },\n },\n },\n\n MuiTabs: {\n styleOverrides: {\n root: ({ theme }) => ({\n minHeight: 40,\n borderBottom: `2px solid ${alpha(theme.palette.primary.main, 0.5)}`,\n }),\n indicator: ({ theme }) => ({\n height: \"100%\",\n borderRadius: 0,\n border: `1px solid ${alpha(theme.palette.primary.main, 0.6)}`,\n backgroundColor: alpha(theme.palette.primary.main, 0.14),\n zIndex: 0,\n }),\n },\n },\n\n MuiTab: {\n styleOverrides: {\n root: ({ theme }) => ({\n position: \"relative\",\n zIndex: 1,\n minHeight: 40,\n fontWeight: 700,\n paddingInline: 14,\n textTransform: \"uppercase\",\n letterSpacing: \"0.06em\",\n \"&.Mui-selected\": {\n color: theme.palette.primary.main,\n },\n }),\n },\n },\n\n MuiOutlinedInput: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 0,\n fontFamily: FONT_MONO,\n backgroundColor: alpha(theme.palette.background.paper, 0.96),\n \"&:hover .MuiOutlinedInput-notchedOutline\": {\n borderColor: alpha(theme.palette.primary.main, 0.9),\n },\n \"&.Mui-focused .MuiOutlinedInput-notchedOutline\": {\n borderColor: theme.palette.primary.main,\n borderWidth: 2,\n },\n }),\n notchedOutline: ({ theme }) => ({\n borderColor: alpha(theme.palette.primary.main, 0.6),\n borderWidth: 2,\n }),\n input: {\n paddingBlock: 10,\n },\n },\n },\n\n MuiInputLabel: {\n styleOverrides: {\n root: {\n fontWeight: 700,\n letterSpacing: \"0.06em\",\n textTransform: \"uppercase\",\n },\n },\n },\n\n MuiTableHead: {\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: alpha(theme.palette.primary.main, 0.14),\n backgroundImage: `repeating-linear-gradient(90deg, ${alpha(\n theme.palette.primary.main,\n 0.2,\n )} 0px, ${alpha(theme.palette.primary.main, 0.2)} 2px, transparent 2px, transparent 8px)`,\n }),\n },\n },\n\n MuiTableCell: {\n styleOverrides: {\n head: ({ theme }) => ({\n fontWeight: 800,\n textTransform: \"uppercase\",\n letterSpacing: \"0.05em\",\n borderBottom: `2px dashed ${alpha(theme.palette.primary.main, 0.66)}`,\n }),\n body: ({ theme }) => ({\n fontFamily: FONT_MONO,\n borderBottom: `1px dashed ${alpha(theme.palette.text.primary, 0.25)}`,\n }),\n },\n },\n\n MuiDivider: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderColor: alpha(theme.palette.primary.main, 0.56),\n borderStyle: \"dashed\",\n }),\n },\n },\n\n MuiAlert: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 0,\n border: `2px solid ${alpha(theme.palette.primary.main, 0.68)}`,\n backgroundColor: alpha(theme.palette.background.paper, 0.98),\n }),\n },\n },\n\n MuiTooltip: {\n styleOverrides: {\n tooltip: ({ theme }) => ({\n borderRadius: 0,\n fontSize: \"0.75rem\",\n fontFamily: FONT_MONO,\n border: `1px solid ${alpha(theme.palette.primary.main, 0.72)}`,\n backgroundColor: alpha(theme.palette.background.paper, 0.98),\n color: theme.palette.text.primary,\n }),\n arrow: ({ theme }) => ({\n color: alpha(theme.palette.background.paper, 0.98),\n }),\n },\n },\n\n MuiSnackbarContent: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 0,\n border: `2px solid ${alpha(theme.palette.primary.main, 0.6)}`,\n boxShadow: `inset 0 0 0 1px ${alpha(theme.palette.primary.light, 0.24)}`,\n }),\n },\n },\n\n MuiDialog: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: 0,\n backgroundImage: \"none\",\n border: `2px solid ${alpha(theme.palette.primary.main, surfaceBorderAlpha)}`,\n boxShadow: `inset 0 0 0 1px ${alpha(theme.palette.primary.light, panelGlowAlpha)}`,\n }),\n },\n },\n\n MuiDialogTitle: {\n styleOverrides: {\n root: {\n textTransform: \"uppercase\",\n letterSpacing: \"0.06em\",\n },\n },\n },\n\n MuiMenu: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: 0,\n border: `2px solid ${alpha(theme.palette.primary.main, surfaceBorderAlpha)}`,\n boxShadow: `inset 0 0 0 1px ${alpha(theme.palette.primary.light, panelGlowAlpha)}`,\n }),\n },\n },\n\n MuiPopover: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: 0,\n border: `2px solid ${alpha(theme.palette.primary.main, surfaceBorderAlpha)}`,\n }),\n },\n },\n\n MuiDrawer: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: 0,\n borderInlineStart: `2px solid ${alpha(theme.palette.primary.main, surfaceBorderAlpha)}`,\n backgroundImage: \"none\",\n backgroundColor: alpha(theme.palette.background.paper, 0.98),\n }),\n },\n },\n\n MuiMenuItem: {\n styleOverrides: {\n root: ({ theme }) => ({\n fontFamily: FONT_MONO,\n fontSize: \"0.8rem\",\n letterSpacing: \"0.05em\",\n textTransform: \"uppercase\",\n \"& + &\": {\n borderTop: `1px dashed ${alpha(theme.palette.primary.main, 0.5)}`,\n },\n \"&.Mui-selected\": {\n backgroundColor: alpha(theme.palette.primary.main, 0.16),\n },\n }),\n },\n },\n\n MuiListItemButton: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 0,\n \"& + &\": {\n borderTop: `1px dashed ${alpha(theme.palette.primary.main, 0.42)}`,\n },\n \"&.Mui-selected\": {\n backgroundColor: alpha(theme.palette.primary.main, 0.16),\n },\n }),\n },\n },\n});\n\nexport const retroTerminal = {\n name: \"Retro Terminal\",\n direction: \"rtl\",\n\n palette: {\n mode: \"light\",\n\n primary: {\n main: \"#00B84F\",\n dark: \"#008F3B\",\n light: \"#5BFFA0\",\n contrastText: \"#02180B\",\n },\n\n secondary: {\n main: \"#FF8A3D\",\n dark: \"#D56A24\",\n light: \"#FFB981\",\n contrastText: \"#1A1104\",\n },\n\n info: {\n main: \"#22D3EE\",\n dark: \"#0891B2\",\n light: \"#67E8F9\",\n contrastText: \"#03161A\",\n },\n success: {\n main: \"#00B84F\",\n dark: \"#008F3B\",\n light: \"#5BFFA0\",\n contrastText: \"#02180B\",\n },\n warning: {\n main: \"#FACC15\",\n dark: \"#D4A711\",\n light: \"#FDE047\",\n contrastText: \"#1C1503\",\n },\n error: {\n main: \"#F43F5E\",\n dark: \"#E11D48\",\n light: \"#FDA4AF\",\n contrastText: \"#20050B\",\n },\n\n background: {\n default: \"#E9FDEE\",\n paper: \"#F7FFF9\",\n },\n\n text: {\n primary: \"#03210E\",\n secondary: \"#14542C\",\n disabled: alpha(\"#03210E\", 0.46),\n },\n\n divider: alpha(\"#03210E\", 0.26),\n\n grey: {\n 50: \"#F7FFF9\",\n 100: \"#ECFFF1\",\n 200: \"#D4F8DE\",\n 300: \"#B5EEC6\",\n 400: \"#87DFA1\",\n 500: \"#56C97B\",\n 600: \"#27A95A\",\n 700: \"#15773D\",\n 800: \"#0B4A24\",\n 900: \"#03210E\",\n },\n\n action: {\n hover: alpha(\"#00B84F\", 0.14),\n selected: alpha(\"#00B84F\", 0.22),\n focus: alpha(\"#FF8A3D\", 0.26),\n active: alpha(\"#03210E\", 0.56),\n disabled: alpha(\"#03210E\", 0.34),\n disabledBackground: alpha(\"#03210E\", 0.1),\n },\n },\n\n typography: TERMINAL_TYPOGRAPHY,\n\n shape: { borderRadius: 0 },\n spacing: 8,\n\n components: createTerminalComponents({\n scanlineAlpha: 0.08,\n surfaceBorderAlpha: 0.44,\n panelGlowAlpha: 0.2,\n }),\n} satisfies NamedThemeOptions;\n\nexport const retroTerminalDark = {\n name: \"Retro Terminal Dark\",\n direction: \"rtl\",\n\n palette: {\n mode: \"dark\",\n\n primary: {\n main: \"#33FF85\",\n dark: \"#1FCB63\",\n light: \"#8CFFB4\",\n contrastText: \"#02150A\",\n },\n\n secondary: {\n main: \"#FF9D57\",\n dark: \"#FF7A1E\",\n light: \"#FFC896\",\n contrastText: \"#1A0F04\",\n },\n\n info: {\n main: \"#22D3EE\",\n dark: \"#0EA5E9\",\n light: \"#67E8F9\",\n contrastText: \"#03161A\",\n },\n success: {\n main: \"#33FF85\",\n dark: \"#1FCB63\",\n light: \"#8CFFB4\",\n contrastText: \"#02150A\",\n },\n warning: {\n main: \"#FDE047\",\n dark: \"#FACC15\",\n light: \"#FEF08A\",\n contrastText: \"#211901\",\n },\n error: {\n main: \"#FB7185\",\n dark: \"#F43F5E\",\n light: \"#FDA4AF\",\n contrastText: \"#1E0408\",\n },\n\n background: {\n default: \"#040805\",\n paper: \"#09110B\",\n },\n\n text: {\n primary: \"#9CFFB6\",\n secondary: \"#5FDB85\",\n disabled: alpha(\"#9CFFB6\", 0.46),\n },\n\n divider: alpha(\"#9CFFB6\", 0.24),\n\n grey: {\n 50: \"#040805\",\n 100: \"#09110B\",\n 200: \"#0D1C12\",\n 300: \"#13301E\",\n 400: \"#1A4A2F\",\n 500: \"#257347\",\n 600: \"#2CA65F\",\n 700: \"#5FDB85\",\n 800: \"#8CFFB4\",\n 900: \"#C6FFD9\",\n },\n\n action: {\n hover: alpha(\"#33FF85\", 0.18),\n selected: alpha(\"#33FF85\", 0.28),\n focus: alpha(\"#FF9D57\", 0.3),\n active: alpha(\"#9CFFB6\", 0.58),\n disabled: alpha(\"#9CFFB6\", 0.34),\n disabledBackground: alpha(\"#9CFFB6\", 0.1),\n },\n },\n\n typography: TERMINAL_TYPOGRAPHY,\n\n shape: { borderRadius: 0 },\n spacing: 8,\n\n components: createTerminalComponents({\n scanlineAlpha: 0.12,\n surfaceBorderAlpha: 0.62,\n panelGlowAlpha: 0.32,\n }),\n} satisfies NamedThemeOptions;\n","import { alpha } from \"@mui/material/styles\";\n\nimport type { NamedThemeOptions } from \"@/models\";\nimport type { Theme, ThemeOptions } from \"@mui/material/styles\";\n\n/**\n * Warm Earth — soft organic palette (sand / terracotta / olive).\n * - Light: creamy surfaces, rounded \"pill\" controls, gentle shadows.\n * - Dark: warm clay night mode with the same soft geometry.\n */\n\nconst FONT_WARM =\n '\"Tajawal\",\"Cairo\",\"Noto Naskh Arabic\",\"Noto Sans Arabic\",\"Inter\",\"Roboto\",\"Arial\",sans-serif';\n\nconst TERRACOTTA = \"#D08A6B\";\nconst TERRACOTTA_DARK = \"#B96F4F\";\nconst TERRACOTTA_LIGHT = \"#E8B8A1\";\n\nconst OLIVE = \"#8EA36A\";\nconst OLIVE_DARK = \"#738651\";\nconst OLIVE_LIGHT = \"#B9C89A\";\n\nconst INK = \"#3B2A1F\";\nconst SOFT_RADIUS = 28;\n\nconst WARM_TYPOGRAPHY = {\n fontFamily: FONT_WARM,\n\n h1: {\n fontWeight: 800,\n fontSize: \"2rem\",\n lineHeight: 1.24,\n letterSpacing: \"-0.01em\",\n },\n h2: { fontWeight: 800, fontSize: \"1.5rem\", lineHeight: 1.3 },\n h3: { fontWeight: 700, fontSize: \"1.24rem\", lineHeight: 1.36 },\n h4: { fontWeight: 700, fontSize: \"1.1rem\", lineHeight: 1.42 },\n\n subtitle1: { fontWeight: 600, fontSize: \"0.95rem\" },\n subtitle2: { fontWeight: 600, fontSize: \"0.875rem\" },\n\n body1: { fontSize: \"0.95rem\", lineHeight: 1.78 },\n body2: { fontSize: \"0.875rem\", lineHeight: 1.68 },\n\n button: { textTransform: \"none\", fontWeight: 700, letterSpacing: \"0.01em\" },\n caption: { fontSize: \"0.75rem\" },\n overline: { fontSize: \"0.75rem\", letterSpacing: \"0.06em\" },\n} as const;\n\nconst createWarmEarthComponents = ({\n bodyGlowPrimary,\n bodyGlowSecondary,\n surfaceBorderAlpha,\n panelShadowAlpha,\n appBarAlpha,\n}: {\n bodyGlowPrimary: number;\n bodyGlowSecondary: number;\n surfaceBorderAlpha: number;\n panelShadowAlpha: number;\n appBarAlpha: number;\n}): ThemeOptions[\"components\"] => ({\n MuiCssBaseline: {\n styleOverrides: (theme: Theme) => ({\n body: {\n backgroundColor: theme.palette.background.default,\n color: theme.palette.text.primary,\n backgroundImage: `radial-gradient(900px circle at 12% 6%, ${alpha(\n theme.palette.primary.main,\n bodyGlowPrimary,\n )}, transparent 50%), radial-gradient(800px circle at 90% 10%, ${alpha(\n theme.palette.secondary.main,\n bodyGlowSecondary,\n )}, transparent 48%)`,\n },\n }),\n },\n\n MuiAppBar: {\n defaultProps: { color: \"inherit\" as const, elevation: 0 },\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 999,\n marginInline: theme.spacing(1),\n marginTop: theme.spacing(1),\n paddingInline: theme.spacing(1),\n backgroundColor: alpha(theme.palette.background.paper, appBarAlpha),\n border: `1px solid ${alpha(theme.palette.text.primary, surfaceBorderAlpha)}`,\n boxShadow: `0 10px 30px ${alpha(theme.palette.text.primary, panelShadowAlpha)}`,\n backdropFilter: \"blur(8px)\",\n }),\n },\n },\n\n MuiPaper: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: SOFT_RADIUS + 2,\n backgroundImage: \"none\",\n backgroundColor: alpha(theme.palette.background.paper, 0.97),\n border: `1px solid ${alpha(theme.palette.text.primary, surfaceBorderAlpha)}`,\n boxShadow: `0 14px 36px ${alpha(theme.palette.text.primary, panelShadowAlpha)}`,\n }),\n },\n },\n\n MuiCard: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: SOFT_RADIUS + 4,\n border: `1px solid ${alpha(theme.palette.text.primary, surfaceBorderAlpha)}`,\n boxShadow: `0 18px 40px ${alpha(theme.palette.text.primary, panelShadowAlpha)}`,\n }),\n },\n },\n\n MuiButton: {\n defaultProps: { disableElevation: true },\n styleOverrides: {\n root: {\n borderRadius: 999,\n paddingInline: 22,\n paddingBlock: 10,\n fontWeight: 700,\n },\n containedPrimary: ({ theme }) => ({\n backgroundImage: `linear-gradient(180deg, ${alpha(\n theme.palette.primary.light,\n 0.88,\n )}, ${alpha(theme.palette.primary.main, 0.92)})`,\n boxShadow: `0 8px 18px ${alpha(theme.palette.primary.main, 0.28)}`,\n \"&:hover\": {\n boxShadow: `0 12px 24px ${alpha(theme.palette.primary.main, 0.34)}`,\n },\n }),\n outlined: ({ theme }) => ({\n borderColor: alpha(theme.palette.text.primary, 0.18),\n backgroundColor: alpha(theme.palette.background.paper, 0.55),\n }),\n },\n },\n\n MuiChip: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 999,\n fontWeight: 700,\n border: `1px solid ${alpha(theme.palette.text.primary, 0.14)}`,\n backgroundColor: alpha(theme.palette.background.paper, 0.86),\n }),\n },\n },\n\n MuiTabs: {\n styleOverrides: {\n root: ({ theme }) => ({\n minHeight: 46,\n padding: theme.spacing(0.5),\n borderRadius: 999,\n backgroundColor: alpha(theme.palette.primary.main, 0.1),\n }),\n indicator: ({ theme }) => ({\n height: \"calc(100% - 8px)\",\n top: 4,\n borderRadius: 999,\n backgroundColor: alpha(theme.palette.background.paper, 0.96),\n border: `1px solid ${alpha(theme.palette.primary.main, 0.26)}`,\n boxShadow: `0 6px 14px ${alpha(theme.palette.primary.main, 0.2)}`,\n }),\n },\n },\n\n MuiTab: {\n styleOverrides: {\n root: {\n minHeight: 38,\n fontWeight: 700,\n borderRadius: 999,\n paddingInline: 14,\n },\n },\n },\n\n MuiOutlinedInput: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 22,\n backgroundColor: alpha(theme.palette.background.paper, 0.9),\n \"&.Mui-focused .MuiOutlinedInput-notchedOutline\": {\n borderColor: alpha(theme.palette.primary.main, 0.52),\n borderWidth: 1,\n },\n }),\n notchedOutline: ({ theme }) => ({\n borderColor: alpha(theme.palette.text.primary, 0.16),\n }),\n },\n },\n\n MuiInputLabel: {\n styleOverrides: {\n root: { fontWeight: 600 },\n },\n },\n\n MuiTableHead: {\n styleOverrides: {\n root: ({ theme }) => ({\n backgroundColor: alpha(theme.palette.primary.main, 0.1),\n }),\n },\n },\n\n MuiTableCell: {\n styleOverrides: {\n head: ({ theme }) => ({\n fontWeight: 700,\n color: theme.palette.text.primary,\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, 0.14)}`,\n }),\n body: ({ theme }) => ({\n borderBottom: `1px solid ${alpha(theme.palette.text.primary, 0.09)}`,\n }),\n },\n },\n\n MuiDivider: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderColor: alpha(theme.palette.text.primary, 0.12),\n }),\n },\n },\n\n MuiAlert: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 24,\n border: `1px solid ${alpha(theme.palette.text.primary, 0.14)}`,\n backgroundColor: alpha(theme.palette.background.paper, 0.92),\n }),\n },\n },\n\n MuiTooltip: {\n styleOverrides: {\n tooltip: ({ theme }) => ({\n borderRadius: 14,\n fontSize: \"0.8rem\",\n border: `1px solid ${alpha(theme.palette.text.primary, 0.14)}`,\n backgroundColor: alpha(theme.palette.background.paper, 0.98),\n color: theme.palette.text.primary,\n }),\n },\n },\n\n MuiSnackbarContent: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderRadius: 24,\n border: `1px solid ${alpha(theme.palette.text.primary, 0.14)}`,\n }),\n },\n },\n\n MuiDialog: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: SOFT_RADIUS + 6,\n border: `1px solid ${alpha(theme.palette.text.primary, surfaceBorderAlpha)}`,\n boxShadow: `0 20px 44px ${alpha(theme.palette.text.primary, panelShadowAlpha)}`,\n }),\n },\n },\n\n MuiMenu: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: 22,\n border: `1px solid ${alpha(theme.palette.text.primary, surfaceBorderAlpha)}`,\n }),\n },\n },\n\n MuiPopover: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: 22,\n border: `1px solid ${alpha(theme.palette.text.primary, surfaceBorderAlpha)}`,\n }),\n },\n },\n\n MuiDrawer: {\n styleOverrides: {\n paper: ({ theme }) => ({\n borderRadius: \"24px 0 0 24px\",\n borderInlineStart: `1px solid ${alpha(theme.palette.text.primary, surfaceBorderAlpha)}`,\n }),\n },\n },\n\n MuiMenuItem: {\n styleOverrides: {\n root: ({ theme }) => ({\n marginInline: theme.spacing(0.5),\n borderRadius: 12,\n }),\n },\n },\n\n MuiListItemButton: {\n styleOverrides: {\n root: ({ theme }) => ({\n marginInline: theme.spacing(0.5),\n borderRadius: 12,\n }),\n },\n },\n});\n\nexport const warmEarth = {\n name: \"Warm Earth\",\n direction: \"rtl\",\n\n palette: {\n mode: \"light\",\n\n primary: {\n main: TERRACOTTA,\n dark: TERRACOTTA_DARK,\n light: TERRACOTTA_LIGHT,\n contrastText: \"#FFFFFF\",\n },\n\n secondary: {\n main: OLIVE,\n dark: OLIVE_DARK,\n light: OLIVE_LIGHT,\n contrastText: \"#1B2312\",\n },\n\n info: {\n main: \"#3B82F6\",\n dark: \"#2563EB\",\n light: \"#93C5FD\",\n contrastText: \"#FFFFFF\",\n },\n success: {\n main: \"#22A36A\",\n dark: \"#198D59\",\n light: \"#79D7AE\",\n contrastText: \"#FFFFFF\",\n },\n warning: {\n main: \"#D68A30\",\n dark: \"#B9711F\",\n light: \"#EDB370\",\n contrastText: \"#2B1E10\",\n },\n error: {\n main: \"#D86060\",\n dark: \"#B94A4A\",\n light: \"#EEA0A0\",\n contrastText: \"#FFFFFF\",\n },\n\n background: {\n default: \"#FBF4EC\",\n paper: \"#FFFDF9\",\n },\n\n text: {\n primary: INK,\n secondary: \"#6B5341\",\n disabled: alpha(INK, 0.44),\n },\n\n divider: alpha(INK, 0.12),\n\n grey: {\n 50: \"#FFFEFC\",\n 100: \"#FFF9F1\",\n 200: \"#F4E7D8\",\n 300: \"#EAD6C1\",\n 400: \"#D8BFA3\",\n 500: \"#C0A180\",\n 600: \"#8F735C\",\n 700: \"#634E3F\",\n 800: \"#3E3127\",\n 900: \"#1F1712\",\n },\n\n action: {\n hover: alpha(TERRACOTTA, 0.06),\n selected: alpha(TERRACOTTA, 0.12),\n focus: alpha(\"#3B82F6\", 0.2),\n active: alpha(INK, 0.5),\n disabled: alpha(INK, 0.3),\n disabledBackground: alpha(INK, 0.08),\n },\n },\n\n typography: WARM_TYPOGRAPHY,\n\n shape: { borderRadius: SOFT_RADIUS },\n spacing: 8,\n\n components: createWarmEarthComponents({\n bodyGlowPrimary: 0.2,\n bodyGlowSecondary: 0.16,\n surfaceBorderAlpha: 0.1,\n panelShadowAlpha: 0.14,\n appBarAlpha: 0.88,\n }),\n} satisfies NamedThemeOptions;\n\nexport const warmEarthDark = {\n name: \"Warm Earth Dark\",\n direction: \"rtl\",\n\n palette: {\n mode: \"dark\",\n\n primary: {\n main: \"#E4B392\",\n dark: \"#CB9675\",\n light: \"#F0CBB4\",\n contrastText: \"#1D120B\",\n },\n\n secondary: {\n main: \"#B7CB97\",\n dark: \"#A1B67F\",\n light: \"#D4E2C0\",\n contrastText: \"#1B2312\",\n },\n\n info: {\n main: \"#93C5FD\",\n dark: \"#60A5FA\",\n light: \"#BFDBFE\",\n contrastText: \"#102033\",\n },\n success: {\n main: \"#79D7AE\",\n dark: \"#4BC48F\",\n light: \"#B1E9CD\",\n contrastText: \"#0D2A1D\",\n },\n warning: {\n main: \"#EDB370\",\n dark: \"#D68A30\",\n light: \"#F6CC99\",\n contrastText: \"#31200D\",\n },\n error: {\n main: \"#EEA0A0\",\n dark: \"#D86060\",\n light: \"#F5C4C4\",\n contrastText: \"#301414\",\n },\n\n background: {\n default: \"#18120E\",\n paper: \"#241C17\",\n },\n\n text: {\n primary: \"#F7EEE3\",\n secondary: \"#D1C1B2\",\n disabled: alpha(\"#F7EEE3\", 0.45),\n },\n\n divider: alpha(\"#F7EEE3\", 0.14),\n\n grey: {\n 50: \"#18120E\",\n 100: \"#241C17\",\n 200: \"#302720\",\n 300: \"#3E342A\",\n 400: \"#56483A\",\n 500: \"#776655\",\n 600: \"#A18A73\",\n 700: \"#D1C1B2\",\n 800: \"#E9DFD3\",\n 900: \"#F7EEE3\",\n },\n\n action: {\n hover: alpha(\"#E4B392\", 0.1),\n selected: alpha(\"#E4B392\", 0.16),\n focus: alpha(\"#93C5FD\", 0.24),\n active: alpha(\"#F7EEE3\", 0.52),\n disabled: alpha(\"#F7EEE3\", 0.32),\n disabledBackground: alpha(\"#F7EEE3\", 0.08),\n },\n },\n\n typography: WARM_TYPOGRAPHY,\n\n shape: { borderRadius: SOFT_RADIUS },\n spacing: 8,\n\n components: createWarmEarthComponents({\n bodyGlowPrimary: 0.22,\n bodyGlowSecondary: 0.14,\n surfaceBorderAlpha: 0.18,\n panelShadowAlpha: 0.32,\n appBarAlpha: 0.78,\n }),\n} satisfies NamedThemeOptions;\n"],"mappings":"AAAA,OAAS,SAAAA,MAAa,uBAetB,IAAMC,EACJ,2FAEWC,EAAmB,CAC9B,KAAM,oBACN,UAAW,MAEX,QAAS,CACP,KAAM,QAEN,QAAS,CAEP,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EAEA,UAAW,CAET,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EAEA,KAAM,CACJ,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EACA,QAAS,CACP,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EACA,QAAS,CACP,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EACA,MAAO,CACL,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EAEA,WAAY,CACV,QAAS,UACT,MAAO,SACT,EAEA,KAAM,CACJ,QAAS,UACT,UAAW,UACX,SAAUF,EAAM,UAAW,GAAI,CACjC,EAEA,QAASA,EAAM,UAAW,GAAI,EAE9B,KAAM,CACJ,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EAEA,OAAQ,CACN,MAAOA,EAAM,UAAW,GAAI,EAC5B,SAAUA,EAAM,UAAW,GAAI,EAC/B,MAAOA,EAAM,UAAW,GAAI,EAC5B,OAAQA,EAAM,UAAW,GAAI,EAC7B,SAAUA,EAAM,UAAW,GAAI,EAC/B,mBAAoBA,EAAM,UAAW,GAAI,CAC3C,CACF,EAEA,WAAY,CACV,WAAYC,EAGZ,GAAI,CACF,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AAS,CACP,KAAM,OAEN,QAAS,CACP,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EAEA,UAAW,CACT,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EAEA,KAAM,CACJ,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EACA,QAAS,CACP,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EACA,QAAS,CACP,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EACA,MAAO,CACL,KAAM,UACN,KAAM,UACN,MAAO,UACP,aAAc,SAChB,EAEA,WAAY,CACV,QAAS,UACT,MAAO,SACT,EAEA,KAAM,CACJ,QAAS,UACT,UAAW,UACX,SAAUnB,EAAM,UAAW,GAAI,CACjC,EAEA,QAASA,EAAM,UAAW,GAAI,EAE9B,KAAM,CACJ,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,SACP,EAEA,OAAQ,CACN,MAAOA,EAAM,UAAW,EAAG,EAC3B,SAAUA,EAAM,UAAW,GAAI,EAC/B,MAAOA,EAAM,UAAW,GAAI,EAC5B,OAAQA,EAAM,UAAW,GAAI,EAC7B,SAAUA,EAAM,UAAW,GAAI,EAC/B,mBAAoBA,EAAM,UAAW,GAAI,CAC3C,CACF,EAEA,WAAYU,EAEZ,MAAO,CAAE,aAAcD,CAAY,EACnC,QAAS,EAET,WAAYE,EAA0B,CACpC,gBAAiB,IACjB,kBAAmB,IACnB,mBAAoB,IACpB,iBAAkB,IAClB,YAAa,GACf,CAAC,CACH","names":["alpha","FONT_EDITORIAL","editorialClassic","theme","editorialClassicDark","alpha","FONT_MINIMAL","MINIMAL_RADIUS","MINIMAL_TYPOGRAPHY","createMinimalComponents","appBarAlpha","borderAlpha","surfaceShadowAlpha","tableHeadAlpha","theme","modernMinimal","modernMinimalDark","alpha","FONT_LIQUID","LIQUID_RADIUS","LIQUID_BLUR","LIQUID_BLUR_STRONG","LIQUID_TYPOGRAPHY","createLiquidGlassComponents","bodyPrimaryGlowAlpha","bodySecondaryGlowAlpha","bodyTertiaryGlowAlpha","paperAlpha","borderAlpha","shadowAlpha","isDark","theme","neoGlass","neoGlassDark","alpha","FONT_MONO","TERMINAL_TYPOGRAPHY","createTerminalComponents","scanlineAlpha","surfaceBorderAlpha","panelGlowAlpha","theme","retroTerminal","retroTerminalDark","alpha","FONT_WARM","TERRACOTTA","TERRACOTTA_DARK","TERRACOTTA_LIGHT","OLIVE","OLIVE_DARK","OLIVE_LIGHT","INK","SOFT_RADIUS","WARM_TYPOGRAPHY","createWarmEarthComponents","bodyGlowPrimary","bodyGlowSecondary","surfaceBorderAlpha","panelShadowAlpha","appBarAlpha","theme","warmEarth","warmEarthDark"]}
|
package/dist/index.d.mts
CHANGED
|
@@ -8,8 +8,8 @@ import { Theme as Theme$1, Components, TypographyVariantsOptions } from '@mui/ma
|
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
10
10
|
import { Theme, ThemeOptions, PaletteMode } from '@mui/material/styles';
|
|
11
|
-
import { O as OptionItem, T as ThemeContextProps, a as
|
|
12
|
-
export { C as CustomTypographyVariants, d as DarkModeSetting,
|
|
11
|
+
import { O as OptionItem, T as ThemeContextProps, a as ThemePreset, N as NamedThemeOptions, b as ThemeModeBackground, D as DarkModeOptions, c as NormalizedPreset, A as AppSettings } from './typography-Dq0wCojD.mjs';
|
|
12
|
+
export { C as CustomTypographyVariants, d as DarkModeSetting, e as ThemeId, f as ThemeScheme } from './typography-Dq0wCojD.mjs';
|
|
13
13
|
|
|
14
14
|
declare const DialogBtn: _emotion_styled.StyledComponent<_mui_material.ButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loading" | "loadingIndicator" | "loadingPosition" | "size" | "startIcon" | "variant"> & {
|
|
15
15
|
theme?: _emotion_react.Theme;
|
|
@@ -919,35 +919,24 @@ declare const darkModeOptions: OptionItem[];
|
|
|
919
919
|
|
|
920
920
|
declare const useThemeSettings: () => ThemeContextProps;
|
|
921
921
|
|
|
922
|
-
type
|
|
923
|
-
background?: ThemeModeBackground;
|
|
924
|
-
};
|
|
925
|
-
type Theme1 = ThemeWithModeBackground & {
|
|
926
|
-
name?: string;
|
|
927
|
-
};
|
|
928
|
-
type ThemeN = ThemeWithModeBackground & {
|
|
929
|
-
name: string;
|
|
930
|
-
};
|
|
931
|
-
type ThemesProp = [Theme1] | [ThemeN, ...ThemeN[]];
|
|
932
|
-
type ThemesInput = ThemesProp | ThemePreset[];
|
|
922
|
+
type ThemesInput = ThemePreset[];
|
|
933
923
|
|
|
934
924
|
/**
|
|
935
|
-
* Normalizes
|
|
925
|
+
* Normalizes preset input so the result always includes valid theme names.
|
|
936
926
|
* - No input/empty: returns a single default theme.
|
|
937
|
-
* -
|
|
938
|
-
* - Multiple themes: requires each theme to have a non-empty name.
|
|
927
|
+
* - Duplicate preset ids: resolved with last-wins while keeping first-order.
|
|
939
928
|
*/
|
|
940
|
-
declare const normalizeThemes: (input?: ThemesInput
|
|
941
|
-
declare const mergeThemes: (presets?:
|
|
942
|
-
declare const resolveDefaultThemeName: (themes:
|
|
943
|
-
declare const resolveThemeById: (themes:
|
|
929
|
+
declare const normalizeThemes: (input?: ThemesInput) => NamedThemeOptions[];
|
|
930
|
+
declare const mergeThemes: (presets?: ThemesInput, customThemes?: ThemesInput) => NamedThemeOptions[];
|
|
931
|
+
declare const resolveDefaultThemeName: (themes: NamedThemeOptions[]) => string;
|
|
932
|
+
declare const resolveThemeById: (themes: NamedThemeOptions[], themeId: string) => NamedThemeOptions | undefined;
|
|
944
933
|
|
|
945
934
|
type ThemeProviderWrapperProps = PropsWithChildren<{
|
|
946
935
|
/** Optional font stack to apply across the app. */
|
|
947
936
|
fontFamily?: string;
|
|
948
937
|
/**
|
|
949
|
-
* Optional
|
|
950
|
-
*
|
|
938
|
+
* Optional list of theme presets.
|
|
939
|
+
* Accepts only `ThemePreset[]`.
|
|
951
940
|
*/
|
|
952
941
|
themes?: ThemesInput;
|
|
953
942
|
}>;
|
|
@@ -1184,4 +1173,4 @@ declare const isDarkMode: (darkMode: AppSettings["darkMode"], systemTheme: Syste
|
|
|
1184
1173
|
declare const timeAgo: (date: Date, lang?: string) => string;
|
|
1185
1174
|
declare const timeAgoFromStart: (date: Date, lang?: string) => string;
|
|
1186
1175
|
|
|
1187
|
-
export { APP_SETTINGS_VERSION, AppSettings, type Browser, DarkModeOptions, DialogBtn, ErrorBoundary, GlobalStyles, Loading, type OperatingSystem, OptionItem, PathName, type StoredAppSettings, type SurfaceTokens, type SystemTheme,
|
|
1176
|
+
export { APP_SETTINGS_VERSION, AppSettings, type Browser, DarkModeOptions, DialogBtn, ErrorBoundary, GlobalStyles, Loading, NamedThemeOptions, type OperatingSystem, OptionItem, PathName, type StoredAppSettings, type SurfaceTokens, type SystemTheme, ThemeContextProps, ThemeModeBackground, ThemePreset, ThemeProviderWrapper, type ThemesInput, alphaText, buildMuiTheme, canUseDom, commonComponentProps, darkModeOptions, displayGreeting, editorialClassic, fadeIn, fadeInLeft, getBrowser, getDayIdentifier, getOperatingSystem, getSurfaceTokens, installAppAnimation, isDarkMode, isHexColor, logoutAnimation, mergeThemes, modernMinimal, muiTypography, neoGlass, normalizeThemes, progressPulse, pulseAnimation, readAppSettings, resolveDefaultThemeName, resolveEffectiveMode, resolveThemeById, retroTerminal, scale, selectThemeOptions, slideIn, slideInBottom, systemInfo, timeAgo, timeAgoFromStart, typographyVariants, useResponsiveDisplay, useSystemTheme, useThemeSettings, validateSchemeTokens, warmEarth, writeAppSettings };
|