Skip to content

Commit

Permalink
[Joy] Fix role proptypes (mui#34119)
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp authored and Daniel Rabe committed Nov 29, 2022
1 parent 75e22f6 commit e8c51d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 248 deletions.
125 changes: 1 addition & 124 deletions packages/mui-joy/src/ListItem/ListItem.tsx
Expand Up @@ -261,130 +261,7 @@ ListItem.propTypes /* remove-proptypes */ = {
/**
* @ignore
*/
role: PropTypes.oneOfType([
PropTypes.oneOf([
'alert',
'alertdialog',
'application',
'article',
'banner',
'button',
'cell',
'checkbox',
'columnheader',
'combobox',
'complementary',
'contentinfo',
'definition',
'dialog',
'directory',
'document',
'feed',
'figure',
'form',
'grid',
'gridcell',
'group',
'heading',
'img',
'link',
'list',
'listbox',
'listitem',
'log',
'main',
'marquee',
'math',
'menu',
'menubar',
'menuitem',
'menuitemcheckbox',
'menuitemradio',
'navigation',
'none',
'note',
'option',
'presentation',
'progressbar',
'radio',
'radiogroup',
'region',
'row',
'rowgroup',
'rowheader',
'scrollbar',
'search',
'searchbox',
'separator',
'slider',
'spinbutton',
'status',
'switch',
'tab',
'table',
'tablist',
'tabpanel',
'term',
'textbox',
'timer',
'toolbar',
'tooltip',
'tree',
'treegrid',
'treeitem',
]),
PropTypes.shape({
'__@iterator@91': PropTypes.func.isRequired,
anchor: PropTypes.func.isRequired,
at: PropTypes.func.isRequired,
big: PropTypes.func.isRequired,
blink: PropTypes.func.isRequired,
bold: PropTypes.func.isRequired,
charAt: PropTypes.func.isRequired,
charCodeAt: PropTypes.func.isRequired,
codePointAt: PropTypes.func.isRequired,
concat: PropTypes.func.isRequired,
endsWith: PropTypes.func.isRequired,
fixed: PropTypes.func.isRequired,
fontcolor: PropTypes.func.isRequired,
fontsize: PropTypes.func.isRequired,
includes: PropTypes.func.isRequired,
indexOf: PropTypes.func.isRequired,
italics: PropTypes.func.isRequired,
lastIndexOf: PropTypes.func.isRequired,
length: PropTypes.number.isRequired,
link: PropTypes.func.isRequired,
localeCompare: PropTypes.func.isRequired,
match: PropTypes.func.isRequired,
matchAll: PropTypes.func.isRequired,
normalize: PropTypes.func.isRequired,
padEnd: PropTypes.func.isRequired,
padStart: PropTypes.func.isRequired,
repeat: PropTypes.func.isRequired,
replace: PropTypes.func.isRequired,
search: PropTypes.func.isRequired,
slice: PropTypes.func.isRequired,
small: PropTypes.func.isRequired,
split: PropTypes.func.isRequired,
startsWith: PropTypes.func.isRequired,
strike: PropTypes.func.isRequired,
sub: PropTypes.func.isRequired,
substr: PropTypes.func.isRequired,
substring: PropTypes.func.isRequired,
sup: PropTypes.func.isRequired,
toLocaleLowerCase: PropTypes.func.isRequired,
toLocaleUpperCase: PropTypes.func.isRequired,
toLowerCase: PropTypes.func.isRequired,
toString: PropTypes.func.isRequired,
toUpperCase: PropTypes.func.isRequired,
trim: PropTypes.func.isRequired,
trimEnd: PropTypes.func.isRequired,
trimLeft: PropTypes.func.isRequired,
trimRight: PropTypes.func.isRequired,
trimStart: PropTypes.func.isRequired,
valueOf: PropTypes.func.isRequired,
}),
]),
role: PropTypes /* @typescript-to-proptypes-ignore */.string,
/**
* The element to display at the start of ListItem.
*/
Expand Down
125 changes: 1 addition & 124 deletions packages/mui-joy/src/RadioGroup/RadioGroup.tsx
Expand Up @@ -186,130 +186,7 @@ RadioGroup.propTypes /* remove-proptypes */ = {
/**
* @ignore
*/
role: PropTypes.oneOfType([
PropTypes.oneOf([
'alert',
'alertdialog',
'application',
'article',
'banner',
'button',
'cell',
'checkbox',
'columnheader',
'combobox',
'complementary',
'contentinfo',
'definition',
'dialog',
'directory',
'document',
'feed',
'figure',
'form',
'grid',
'gridcell',
'group',
'heading',
'img',
'link',
'list',
'listbox',
'listitem',
'log',
'main',
'marquee',
'math',
'menu',
'menubar',
'menuitem',
'menuitemcheckbox',
'menuitemradio',
'navigation',
'none',
'note',
'option',
'presentation',
'progressbar',
'radio',
'radiogroup',
'region',
'row',
'rowgroup',
'rowheader',
'scrollbar',
'search',
'searchbox',
'separator',
'slider',
'spinbutton',
'status',
'switch',
'tab',
'table',
'tablist',
'tabpanel',
'term',
'textbox',
'timer',
'toolbar',
'tooltip',
'tree',
'treegrid',
'treeitem',
]),
PropTypes.shape({
'__@iterator@91': PropTypes.func.isRequired,
anchor: PropTypes.func.isRequired,
at: PropTypes.func.isRequired,
big: PropTypes.func.isRequired,
blink: PropTypes.func.isRequired,
bold: PropTypes.func.isRequired,
charAt: PropTypes.func.isRequired,
charCodeAt: PropTypes.func.isRequired,
codePointAt: PropTypes.func.isRequired,
concat: PropTypes.func.isRequired,
endsWith: PropTypes.func.isRequired,
fixed: PropTypes.func.isRequired,
fontcolor: PropTypes.func.isRequired,
fontsize: PropTypes.func.isRequired,
includes: PropTypes.func.isRequired,
indexOf: PropTypes.func.isRequired,
italics: PropTypes.func.isRequired,
lastIndexOf: PropTypes.func.isRequired,
length: PropTypes.number.isRequired,
link: PropTypes.func.isRequired,
localeCompare: PropTypes.func.isRequired,
match: PropTypes.func.isRequired,
matchAll: PropTypes.func.isRequired,
normalize: PropTypes.func.isRequired,
padEnd: PropTypes.func.isRequired,
padStart: PropTypes.func.isRequired,
repeat: PropTypes.func.isRequired,
replace: PropTypes.func.isRequired,
search: PropTypes.func.isRequired,
slice: PropTypes.func.isRequired,
small: PropTypes.func.isRequired,
split: PropTypes.func.isRequired,
startsWith: PropTypes.func.isRequired,
strike: PropTypes.func.isRequired,
sub: PropTypes.func.isRequired,
substr: PropTypes.func.isRequired,
substring: PropTypes.func.isRequired,
sup: PropTypes.func.isRequired,
toLocaleLowerCase: PropTypes.func.isRequired,
toLocaleUpperCase: PropTypes.func.isRequired,
toLowerCase: PropTypes.func.isRequired,
toString: PropTypes.func.isRequired,
toUpperCase: PropTypes.func.isRequired,
trim: PropTypes.func.isRequired,
trimEnd: PropTypes.func.isRequired,
trimLeft: PropTypes.func.isRequired,
trimRight: PropTypes.func.isRequired,
trimStart: PropTypes.func.isRequired,
valueOf: PropTypes.func.isRequired,
}),
]),
role: PropTypes /* @typescript-to-proptypes-ignore */.string,
/**
* If `true`, flex direction is set to 'row'.
* @default false
Expand Down

0 comments on commit e8c51d5

Please sign in to comment.