From 1915fa0bb68d9bc1fb4de33f6f38f3e38f450c8a Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 16 Jan 2025 08:17:43 +0530 Subject: [PATCH] Prune --- .../base/components/utils/mui-theme.d.ts | 64 +------------------ 1 file changed, 1 insertion(+), 63 deletions(-) diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts index 059575e323..768af5e765 100644 --- a/web/packages/base/components/utils/mui-theme.d.ts +++ b/web/packages/base/components/utils/mui-theme.d.ts @@ -4,69 +4,6 @@ import React from "react"; // Import the module augmentation that provides types for `theme.vars.*`. import type {} from "@mui/material/themeCssVarsAugmentation"; -declare module "@mui/material/styles" { - interface Theme { - colors: ThemeColors; - } - - interface ThemeOptions { - colors?: ThemeColorsOptions; - } -} - -// ================================================= -// Custom Interfaces -// ================================================= - -declare module "@mui/material/styles" { - interface ThemeColors { - background: BackgroundType; - backdrop: Strength; - text: Strength; - fill: FillStrength; - stroke: Strength; - accent: ColorStrength; - warning: ColorStrength; - danger: ColorStrength; - } - - interface ThemeColorsOptions { - background?: Partial; - backdrop?: Partial; - text?: Partial; - fill?: Partial; - stroke?: Partial; - accent?: Partial; - warning?: Partial; - danger?: Partial; - } - - interface ColorStrength { - A800: string; - A700: string; - A500: string; - A400: string; - A300: string; - } - - interface FixedColors { - accent: string; - warning: string; - danger: string; - } - - interface Strength { - base: string; - muted: string; - faint: string; - } - - type FillStrength = Strength & { - basePressed: string; - faintPressed: string; - }; -} - // Add new tokens to the Palette. // // https://mui.com/material-ui/customization/css-theme-variables/usage/#adding-new-theme-tokens @@ -230,6 +167,7 @@ declare module "@mui/material/Button" { critical: true; } } + declare module "@mui/material/Checkbox" { interface CheckboxPropsColorOverrides { accent: true;