/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/StepLabel/stepLabelClasses.ts
49 строк
2 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 StepLabelClasses { /** 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 label element that wraps `children`. */ label: string; /** State class applied to the label element if `active={true}`. */ active: string; /** State class applied to the label element if `completed={true}`. */ completed: string; /** State class applied to the root and label elements if `error={true}`. */ error: string; /** State class applied to the root and label elements if `disabled={true}`. */ disabled: string; /** Styles applied to the `icon` container element. */ iconContainer: string; /** State class applied to the root and icon container and label if `alternativeLabel={true}`. */ alternativeLabel: string; /** Styles applied to the container element which wraps label and `optional`. */ labelContainer: string; } export type StepLabelClassKey = keyof StepLabelClasses; export function getStepLabelUtilityClass(slot: string): string { return generateUtilityClass('MuiStepLabel', slot); } const stepLabelClasses: StepLabelClasses = generateUtilityClasses('MuiStepLabel', [ 'root', 'horizontal', 'vertical', 'label', 'active', 'completed', 'error', 'disabled', 'iconContainer', 'alternativeLabel', 'labelContainer', ]); export default stepLabelClasses;