-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[utils] Add typings for
@mui-material/styles/cssUtils
(#29621)
- Loading branch information
1 parent
122252e
commit 8e5a7a9
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { CSSProperties } from './createTypography'; | ||
|
||
export function isUnitless(value: string): boolean; | ||
|
||
export function getUnit(input: string): string; | ||
|
||
export function toUnitless(value: string): number; | ||
|
||
export function convertLength(baseFontSize: string): (length: string, toUnit: string) => string; | ||
|
||
export interface AlignPropertyParams { | ||
size: number; | ||
grid: number; | ||
} | ||
export function alignProperty(params: AlignPropertyParams): number; | ||
|
||
export interface FontGridParams { | ||
lineHeight: number; | ||
pixels: number; | ||
htmlFontSize: number; | ||
} | ||
export function fontGrid(params: FontGridParams): number; | ||
|
||
export interface ResponsivePropertyParams { | ||
cssProperty: string; | ||
min: number; | ||
max: number; | ||
unit?: string; | ||
breakpoints?: number[]; | ||
transform?: (value: number) => number; | ||
} | ||
export function responsiveProperty(params: ResponsivePropertyParams): CSSProperties; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters