Blame view

天文台pc/tianwentai-ui/node_modules/@mui/system/breakpoints/breakpoints.d.ts 1.13 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  import { CSSObject } from '@mui/styled-engine';
  import { Breakpoints } from "../createBreakpoints/createBreakpoints.js";
  import type { Breakpoint } from "../createTheme/index.js";
  import { ResponsiveStyleValue } from "../styleFunctionSx/index.js";
  import { StyleFunction } from "../style/index.js";
  export interface ResolveBreakpointValuesOptions<T> {
    values: ResponsiveStyleValue<T>;
    breakpoints?: Breakpoints['values'] | undefined;
    base?: Record<string, boolean> | undefined;
  }
  export function resolveBreakpointValues<T>(options: ResolveBreakpointValuesOptions<T>): Record<string, T>;
  export function mergeBreakpointsInOrder(breakpoints: Breakpoints, styles: CSSObject[]): CSSObject;
  export function handleBreakpoints<Props>(props: Props, propValue: any, styleFromPropValue: (value: any, breakpoint?: Breakpoint) => any): any;
  type DefaultBreakPoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
  
  /**
   * @returns An enhanced stylefunction that considers breakpoints
   */
  export default function breakpoints<Props, Breakpoints extends string = DefaultBreakPoints>(styleFunction: StyleFunction<Props>): StyleFunction<Partial<Record<Breakpoints, Props>> & Props>;