/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/Select/selectClasses.ts
52 строки
2 KB
Albert Yu
[select] Remove deprecated CSS classes (#48065)
23 мар 2026, 16:18
Не верифицирован
23 мар 2026, 16:18
3ce44b3
Код
Авторство
О чём код?
import generateUtilityClasses from '@mui/utils/generateUtilityClasses'; import generateUtilityClass from '@mui/utils/generateUtilityClass'; export interface SelectClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the select component `select` class. */ select: string; /** Styles applied to the select component if `multiple={true}`. */ multiple: string; /** Styles applied to the select component if `variant="filled"`. */ filled: string; /** Styles applied to the select component if it is focused. */ focused: string; /** Styles applied to the select component if `variant="outlined"`. */ outlined: string; /** Styles applied to the select component if `variant="standard"`. */ standard: string; /** State class applied to the select component `disabled` class. */ disabled: string; /** Styles applied to the icon component. */ icon: string; /** Styles applied to the icon component if the popup is open. */ iconOpen: string; /** Styles applied to the underlying native input component. */ nativeInput: string; /** State class applied to the root element if `error={true}`. */ error: string; } export type SelectClassKey = keyof SelectClasses; export function getSelectUtilityClasses(slot: string): string { return generateUtilityClass('MuiSelect', slot); } const selectClasses: SelectClasses = generateUtilityClasses('MuiSelect', [ 'root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'nativeInput', 'error', ]); export default selectClasses;