move mui.d.ts to package folder
This commit is contained in:
parent
0d91e1133d
commit
e4b39836de
100
src/mui.d.ts → lib/utils/themes/mui.d.ts
vendored
Executable file → Normal file
100
src/mui.d.ts → lib/utils/themes/mui.d.ts
vendored
Executable file → Normal file
@ -1,50 +1,50 @@
|
|||||||
import "@material-ui/styles";
|
import "@material-ui/styles";
|
||||||
|
|
||||||
declare module "@mui/material/styles" {
|
declare module "@mui/material/styles" {
|
||||||
interface Palette {
|
interface Palette {
|
||||||
lightPurple: Palette["primary"],
|
lightPurple: Palette["primary"],
|
||||||
darkPurple: Palette["primary"],
|
darkPurple: Palette["primary"],
|
||||||
brightPurple: Palette["primary"],
|
brightPurple: Palette["primary"],
|
||||||
fadePurple: Palette["primary"],
|
fadePurple: Palette["primary"],
|
||||||
grey1: Palette["primary"],
|
grey1: Palette["primary"],
|
||||||
grey2: Palette["primary"],
|
grey2: Palette["primary"],
|
||||||
grey3: Palette["primary"],
|
grey3: Palette["primary"],
|
||||||
grey4: Palette["primary"],
|
grey4: Palette["primary"],
|
||||||
orange: Palette["primary"],
|
orange: Palette["primary"],
|
||||||
navbarbg: Palette["primary"],
|
navbarbg: Palette["primary"],
|
||||||
}
|
}
|
||||||
interface PaletteOptions {
|
interface PaletteOptions {
|
||||||
lightPurple?: PaletteOptions["primary"],
|
lightPurple?: PaletteOptions["primary"],
|
||||||
darkPurple?: PaletteOptions["primary"],
|
darkPurple?: PaletteOptions["primary"],
|
||||||
brightPurple?: PaletteOptions["primary"],
|
brightPurple?: PaletteOptions["primary"],
|
||||||
fadePurple?: PaletteOptions["primary"],
|
fadePurple?: PaletteOptions["primary"],
|
||||||
grey1?: PaletteOptions["primary"],
|
grey1?: PaletteOptions["primary"],
|
||||||
grey2?: PaletteOptions["primary"],
|
grey2?: PaletteOptions["primary"],
|
||||||
grey3?: PaletteOptions["primary"],
|
grey3?: PaletteOptions["primary"],
|
||||||
grey4?: PaletteOptions["primary"],
|
grey4?: PaletteOptions["primary"],
|
||||||
orange?: PaletteOptions["primary"],
|
orange?: PaletteOptions["primary"],
|
||||||
navbarbg?: PaletteOptions["primary"],
|
navbarbg?: PaletteOptions["primary"],
|
||||||
}
|
}
|
||||||
interface TypographyVariants {
|
interface TypographyVariants {
|
||||||
infographic: React.CSSProperties;
|
infographic: React.CSSProperties;
|
||||||
p1: React.CSSProperties;
|
p1: React.CSSProperties;
|
||||||
}
|
}
|
||||||
interface TypographyVariantsOptions {
|
interface TypographyVariantsOptions {
|
||||||
infographic?: React.CSSProperties;
|
infographic?: React.CSSProperties;
|
||||||
p1?: React.CSSProperties;
|
p1?: React.CSSProperties;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module "@mui/material/Typography" {
|
declare module "@mui/material/Typography" {
|
||||||
interface TypographyPropsVariantOverrides {
|
interface TypographyPropsVariantOverrides {
|
||||||
infographic: true;
|
infographic: true;
|
||||||
p1: true;
|
p1: true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type DataAttributeKey = `data-${string}`;
|
type DataAttributeKey = `data-${string}`;
|
||||||
declare module 'react' {
|
declare module 'react' {
|
||||||
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
||||||
[dataAttribute: DataAttributeKey]: unknown;
|
[dataAttribute: DataAttributeKey]: unknown;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user