worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
28
node_modules/@mui/material/styles/createTypography.d.ts
generated
vendored
Normal file
28
node_modules/@mui/material/styles/createTypography.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import * as React from 'react';
|
||||
import { CSSProperties } from "./createMixins.js";
|
||||
import { Palette } from "./createPalette.js";
|
||||
export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'button' | 'overline';
|
||||
export interface FontStyle {
|
||||
fontFamily: React.CSSProperties['fontFamily'];
|
||||
fontSize: number;
|
||||
fontWeightLight: React.CSSProperties['fontWeight'];
|
||||
fontWeightRegular: React.CSSProperties['fontWeight'];
|
||||
fontWeightMedium: React.CSSProperties['fontWeight'];
|
||||
fontWeightBold: React.CSSProperties['fontWeight'];
|
||||
htmlFontSize: number;
|
||||
}
|
||||
export interface FontStyleOptions extends Partial<FontStyle> {
|
||||
allVariants?: React.CSSProperties;
|
||||
}
|
||||
|
||||
// TODO: which one should actually be allowed to be subject to module augmentation?
|
||||
// current type vs interface decision is kept for historical reasons until we
|
||||
// made a decision
|
||||
export type TypographyStyle = CSSProperties;
|
||||
export interface TypographyStyleOptions extends TypographyStyle {}
|
||||
export interface TypographyUtils {
|
||||
pxToRem: (px: number) => string;
|
||||
}
|
||||
export interface TypographyVariants extends Record<TypographyVariant, TypographyStyle>, FontStyle, TypographyUtils {}
|
||||
export interface TypographyVariantsOptions extends Partial<Record<TypographyVariant, TypographyStyleOptions> & FontStyleOptions> {}
|
||||
export default function createTypography(palette: Palette, typography: TypographyVariantsOptions | ((palette: Palette) => TypographyVariantsOptions)): TypographyVariants;
|
||||
Loading…
Add table
Add a link
Reference in a new issue