/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/IconButton/iconButtonClasses.ts
67 строк
2 KB
Siriwat K
[material-ui][IconButton] Set default loading to `null` (#45057)
20 янв 2025, 15:35
Не верифицирован
20 янв 2025, 15:35
33ce030
Код
Авторство
О чём код?
import generateUtilityClasses from '@mui/utils/generateUtilityClasses'; import generateUtilityClass from '@mui/utils/generateUtilityClass'; export interface IconButtonClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the root element if `edge="start"`. */ edgeStart: string; /** Styles applied to the root element if `edge="end"`. */ edgeEnd: string; /** Styles applied to the root element if `color="inherit"`. */ colorInherit: string; /** Styles applied to the root element if `color="primary"`. */ colorPrimary: string; /** Styles applied to the root element if `color="secondary"`. */ colorSecondary: string; /** Styles applied to the root element if `color="error"`. */ colorError: string; /** Styles applied to the root element if `color="info"`. */ colorInfo: string; /** Styles applied to the root element if `color="success"`. */ colorSuccess: string; /** Styles applied to the root element if `color="warning"`. */ colorWarning: string; /** State class applied to the root element if `disabled={true}`. */ disabled: string; /** Styles applied to the root element if `size="small"`. */ sizeSmall: string; /** Styles applied to the root element if `size="medium"`. */ sizeMedium: string; /** Styles applied to the root element if `size="large"`. */ sizeLarge: string; /** Styles applied to the root element if `loading={true}`. */ loading: string; /** Styles applied to the loadingIndicator element. */ loadingIndicator: string; /** Styles applied to the loadingWrapper element. */ loadingWrapper: string; } export type IconButtonClassKey = keyof IconButtonClasses; export function getIconButtonUtilityClass(slot: string): string { return generateUtilityClass('MuiIconButton', slot); } const iconButtonClasses: IconButtonClasses = generateUtilityClasses('MuiIconButton', [ 'root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'loading', 'loadingIndicator', 'loadingWrapper', ]); export default iconButtonClasses;