Skip to content

Commit

Permalink
Fix proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Oct 9, 2023
1 parent ca89854 commit 3347073
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions packages/mui-material-next/src/FilledInput/FilledInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,6 @@ FilledInput.propTypes /* remove-proptypes */ = {
* If `true`, the `input` element is focused during the first mount.
*/
autoFocus: PropTypes.bool,
/**
* @ignore
*/
children: PropTypes.node,
/**
* Override or extend the styles applied to the component.
*/
Expand Down
10 changes: 6 additions & 4 deletions packages/mui-material-next/src/FilledInput/FilledInput.types.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { SxProps } from '@mui/system';
// eslint-disable-next-line no-restricted-imports
import { InternalStandardProps as StandardProps } from '@mui/material';
import { PolymorphicProps } from '@mui/base/utils';
import { Simplify } from '@mui/types';
import { OverrideProps, Simplify } from '@mui/types';
import { Theme } from '../styles/Theme.types';
import { InputBaseProps } from '../InputBase/InputBase.types';
import { FilledInputClasses } from './filledInputClasses';

export type FilledInputOwnProps = StandardProps<Omit<InputBaseProps, 'slots'>> & {
export type FilledInputOwnProps = StandardProps<Omit<InputBaseProps, 'children' | 'slots'>> & {
/**
* Override or extend the styles applied to the component.
*/
Expand Down Expand Up @@ -58,7 +57,10 @@ export interface FilledInputTypeMap<

export type FilledInputProps<
RootComponentType extends React.ElementType = FilledInputTypeMap['defaultComponent'],
> = PolymorphicProps<FilledInputTypeMap<{}, RootComponentType>, RootComponentType>;
AdditionalProps = {},
> = OverrideProps<FilledInputTypeMap<AdditionalProps, RootComponentType>, RootComponentType> & {
inputComponent?: React.ElementType;
};

export type FilledInputOwnerState = Simplify<
FilledInputOwnProps & {
Expand Down

0 comments on commit 3347073

Please sign in to comment.