Skip to content

Commit

Permalink
run proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Jan 31, 2023
1 parent 84346a7 commit 58cf87a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/mui-joy/src/AspectRatio/AspectRatio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ AspectRatio.propTypes /* remove-proptypes */ = {
minHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
/**
* The CSS object-fit value of the first-child.
* @default 'cover'
*/
objectFit: PropTypes.oneOf([
'-moz-initial',
Expand Down
7 changes: 4 additions & 3 deletions packages/mui-joy/src/Autocomplete/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ Autocomplete.propTypes /* remove-proptypes */ = {
autoFocus: PropTypes.bool,
/**
* The icon to display in place of the default clear icon.
* @default <ClearIcon fontSize="small" />
* @default <ClearIcon fontSize="md" />
*/
clearIcon: PropTypes.node,
/**
Expand Down Expand Up @@ -800,6 +800,7 @@ Autocomplete.propTypes /* remove-proptypes */ = {
/**
* If `true`, the `input` will indicate an error.
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
* @default false
*/
error: PropTypes.bool,
/**
Expand All @@ -823,9 +824,9 @@ Autocomplete.propTypes /* remove-proptypes */ = {
/**
* The label to display when the tags are truncated (`limitTags`).
*
* @param {number} more The number of truncated tags.
* @param {string | number} more The number of truncated tags.
* @returns {ReactNode}
* @default (more) => `+${more}`
* @default (more: string | number) => `+${more}`
*/
getLimitTagsText: PropTypes.func,
/**
Expand Down
1 change: 1 addition & 0 deletions packages/mui-joy/src/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ Button.propTypes /* remove-proptypes */ = {
loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),
/**
* The size of the component.
* @default 'md'
*/
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.oneOf(['sm', 'md', 'lg']),
Expand Down
1 change: 1 addition & 0 deletions packages/mui-joy/src/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ Input.propTypes /* remove-proptypes */ = {
/**
* If `true`, the `input` will indicate an error.
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
* @default false
*/
error: PropTypes.bool,
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Radio/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ Radio.propTypes /* remove-proptypes */ = {
/**
* If `true`, the root element's position is set to initial which allows the action area to fill the nearest positioned parent.
* This prop is useful for composing Radio with ListItem component.
* @default false;
* @default false
*/
overlay: PropTypes.bool,
/**
Expand Down
4 changes: 4 additions & 0 deletions packages/mui-joy/src/RadioGroup/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ RadioGroup.propTypes /* remove-proptypes */ = {
className: PropTypes.string,
/**
* The color of the component. It supports those theme colors that make sense for this component.
* @default 'neutral'
*/
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.oneOf(['danger', 'info', 'primary', 'success', 'warning']),
Expand All @@ -189,6 +190,7 @@ RadioGroup.propTypes /* remove-proptypes */ = {
defaultValue: PropTypes.any,
/**
* The radio's `disabledIcon` prop. If specified, the value is passed down to every radios under this element.
* @default false
*/
disableIcon: PropTypes.bool,
/**
Expand All @@ -210,6 +212,7 @@ RadioGroup.propTypes /* remove-proptypes */ = {
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
/**
* The radio's `overlay` prop. If specified, the value is passed down to every radios under this element.
* @default false
*/
overlay: PropTypes.bool,
/**
Expand Down Expand Up @@ -238,6 +241,7 @@ RadioGroup.propTypes /* remove-proptypes */ = {
value: PropTypes.any,
/**
* The variant to use.
* @default 'plain'
*/
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.oneOf(['outlined', 'plain', 'soft', 'solid']),
Expand Down
1 change: 1 addition & 0 deletions packages/mui-joy/src/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ Textarea.propTypes /* remove-proptypes */ = {
/**
* If `true`, the `input` will indicate an error.
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
* @default false
*/
error: PropTypes.bool,
/**
Expand Down

0 comments on commit 58cf87a

Please sign in to comment.