/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/StepConnector/stepConnectorClasses.ts
40 строк
1 KB
Siriwat K
[StepConnector][StepContent][StepLabel] Remove deprecated props and classes (#48058)
23 мар 2026, 11:56
Не верифицирован
23 мар 2026, 11:56
04816a1
Код
Авторство
О чём код?
import generateUtilityClasses from '@mui/utils/generateUtilityClasses'; import generateUtilityClass from '@mui/utils/generateUtilityClass'; export interface StepConnectorClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the root element if `orientation="horizontal"`. */ horizontal: string; /** Styles applied to the root element if `orientation="vertical"`. */ vertical: string; /** Styles applied to the root element if `alternativeLabel={true}`. */ alternativeLabel: 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 `disabled={true}`. */ disabled: string; /** Styles applied to the line element. */ line: string; } export type StepConnectorClassKey = keyof StepConnectorClasses; export function getStepConnectorUtilityClass(slot: string): string { return generateUtilityClass('MuiStepConnector', slot); } const stepConnectorClasses: StepConnectorClasses = generateUtilityClasses('MuiStepConnector', [ 'root', 'horizontal', 'vertical', 'alternativeLabel', 'active', 'completed', 'disabled', 'line', ]); export default stepConnectorClasses;