/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/StepIcon/stepIconClasses.ts
31 строка
920 B
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 StepIconClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the SVG text element. */ text: string; /** State class applied to the root element if `active={true}`. */ active: string; /** State class applied to the root element if `completed={true}`. */ completed: string; /** State class applied to the root element if `error={true}`. */ error: string; } export type StepIconClassKey = keyof StepIconClasses; export function getStepIconUtilityClass(slot: string): string { return generateUtilityClass('MuiStepIcon', slot); } const stepIconClasses: StepIconClasses = generateUtilityClasses('MuiStepIcon', [ 'root', 'active', 'completed', 'error', 'text', ]); export default stepIconClasses;