/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/Skeleton/skeletonClasses.ts
46 строк
1 KB
Siriwat K
[material-ui] Use direct import from utils package (#40254)
20 дек 2023, 16:34
Не верифицирован
20 дек 2023, 16:34
7c2f0ca
Код
Авторство
О чём код?
import generateUtilityClasses from '@mui/utils/generateUtilityClasses'; import generateUtilityClass from '@mui/utils/generateUtilityClass'; export interface SkeletonClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the root element if `variant="text"`. */ text: string; /** Styles applied to the root element if `variant="rectangular"`. */ rectangular: string; /** Styles applied to the root element if `variant="rounded"`. */ rounded: string; /** Styles applied to the root element if `variant="circular"`. */ circular: string; /** Styles applied to the root element if `animation="pulse"`. */ pulse: string; /** Styles applied to the root element if `animation="wave"`. */ wave: string; /** Styles applied when the component is passed children. */ withChildren: string; /** Styles applied when the component is passed children and no width. */ fitContent: string; /** Styles applied when the component is passed children and no height. */ heightAuto: string; } export type SkeletonClassKey = keyof SkeletonClasses; export function getSkeletonUtilityClass(slot: string): string { return generateUtilityClass('MuiSkeleton', slot); } const skeletonClasses: SkeletonClasses = generateUtilityClasses('MuiSkeleton', [ 'root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto', ]); export default skeletonClasses;