'use client'
import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'
import { Theme } from '@mui/material/styles'
import { Iconify } from '../../../../components/web/images'
const ArrowDownIcon = (props: SvgIconProps) => (
)
const CheckboxIcon = (props: SvgIconProps) => (
)
const CheckboxCheckedIcon = (props: SvgIconProps) => (
)
const CheckboxIndeterminateIcon = (props: SvgIconProps) => (
)
const RadioIcon = (props: SvgIconProps) => (
)
const RadioCheckedIcon = (props: SvgIconProps) => (
)
const RatingIcon = (props: SvgIconProps) => (
)
const TreeViewCollapseIcon = (props: SvgIconProps) => (
)
const TreeViewExpandIcon = (props: SvgIconProps) => (
)
const TreeViewEndIcon = (props: SvgIconProps) => (
)
export function defaultProps(theme: Theme) {
return {
MuiDialog: {
defaultProps: {
fullWidth: true,
},
},
MuiAlert: {
defaultProps: {
iconMapping: {
error: ,
info: ,
success: ,
warning: ,
},
},
},
MuiStack: {
defaultProps: {
useFlexGap: true,
},
},
MuiAppBar: {
defaultProps: {
color: 'transparent',
},
},
MuiAvatarGroup: {
defaultProps: {
max: 4,
},
},
MuiButtonGroup: {
defaultProps: {
disableElevation: true,
},
},
MuiButton: {
defaultProps: {
color: 'primary',
variant: 'contained',
disableElevation: true,
},
},
MuiCardHeader: {
defaultProps: {
titleTypographyProps: { variant: 'h6' },
subheaderTypographyProps: {
variant: 'body2',
marginTop: theme.spacing(0.5),
},
},
},
MuiChip: {
defaultProps: {
deleteIcon: ,
},
},
MuiDialogActions: {
defaultProps: {
disableSpacing: true,
},
},
MuiFab: {
defaultProps: {
color: 'primary',
},
},
MuiLink: {
defaultProps: {
underline: 'hover',
},
},
MuiListItemText: {
defaultProps: {
primaryTypographyProps: {
typography: 'subtitle2',
},
secondaryTypographyProps: {
component: 'span',
},
},
},
MuiLoadingButton: {
defaultProps: {
color: 'primary',
variant: 'contained',
disableElevation: true,
},
},
MuiPaper: {
defaultProps: {
elevation: 0,
},
},
MuiSkeleton: {
defaultProps: {
animation: 'wave',
variant: 'rounded',
},
},
MuiFilledInput: {
defaultProps: {
disableUnderline: true,
},
},
MuiFormHelperText: {
defaultProps: {
component: 'div',
},
},
MuiTab: {
defaultProps: {
disableRipple: true,
iconPosition: 'start',
},
},
MuiTabs: {
defaultProps: {
textColor: 'inherit',
variant: 'scrollable',
allowScrollButtonsMobile: true,
},
},
MuiTablePagination: {
defaultProps: {
backIconButtonProps: {
size: 'small',
},
nextIconButtonProps: {
size: 'small',
},
},
},
MuiSlider: {
defaultProps: {
size: 'small',
},
},
MuiAutocomplete: {
defaultProps: {
popupIcon: ,
},
},
MuiSelect: {
defaultProps: {
IconComponent: ArrowDownIcon,
},
},
MuiNativeSelect: {
defaultProps: {
IconComponent: ArrowDownIcon,
},
},
MuiCheckbox: {
defaultProps: {
size: 'small',
icon: ,
checkedIcon: ,
indeterminateIcon: ,
},
},
MuiRadio: {
defaultProps: {
size: 'small',
icon: ,
checkedIcon: ,
},
},
MuiRating: {
defaultProps: {
emptyIcon: ,
icon: ,
},
},
MuiTreeView: {
defaultProps: {
defaultCollapseIcon: ,
defaultExpandIcon: ,
defaultEndIcon: ,
},
},
MuiDataGrid: {
defaultProps: {
slots: {
// column
columnSortedAscendingIcon: () => (
),
columnSortedDescendingIcon: () => (
),
columnUnsortedIcon: () => (
),
columnMenuIcon: () => ,
columnMenuSortAscendingIcon: () => (
),
columnMenuSortDescendingIcon: () => (
),
columnMenuFilterIcon: () => ,
columnMenuHideIcon: () => ,
columnMenuManageColumnsIcon: () => ,
columnSelectorIcon: () => ,
// filter
filterPanelDeleteIcon: () => ,
openFilterButtonIcon: () => ,
columnFilteredIcon: () => (
),
// density
densityCompactIcon: () => (
),
densityStandardIcon: () => ,
densityComfortableIcon: () => ,
// export
exportIcon: () => ,
// quick filter
quickFilterIcon: () => (
),
quickFilterClearIcon: () => ,
},
slotProps: {
basePopper: {
placement: 'bottom-end',
},
baseTextField: {
variant: 'outlined',
InputLabelProps: { shrink: true },
},
baseFormControl: {
variant: 'outlined',
},
baseSelect: {
variant: 'outlined',
},
},
},
},
}
}