Skip to content

Commit

Permalink
docs: Ignore ExpansionPanel#square like on master
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 2, 2020
1 parent 92cbed7 commit 6b8ba13
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/pages/api-docs/expansion-panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ You can learn more about the difference by [reading this guide](/guides/minimizi
| <span class="prop-name">disabled</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, the panel will be displayed in a disabled state. |
| <span class="prop-name">expanded</span> | <span class="prop-type">bool</span> | | If `true`, expands the panel, otherwise collapse it. Setting this prop enables control over the panel. |
| <span class="prop-name">onChange</span> | <span class="prop-type">func</span> | | Callback fired when the expand/collapse state is changed.<br><br>**Signature:**<br>`function(event: object, expanded: boolean) => void`<br>*event:* The event source of the callback.<br>*expanded:* The `expanded` state of the panel. |
| <span class="prop-name">square</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, rounded corners are disabled. |
| <span class="prop-name">TransitionComponent</span> | <span class="prop-type">elementType</span> | <span class="prop-default">Collapse</span> | The component used for the collapse effect. [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. |
| <span class="prop-name">TransitionProps</span> | <span class="prop-type">object</span> | | Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element. |

Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/ExpansionPanel/ExpansionPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ ExpansionPanel.propTypes = {
*/
onChange: PropTypes.func,
/**
* If `true`, rounded corners are disabled.
* @ignore
*/
square: PropTypes.bool,
/**
Expand Down
1 change: 1 addition & 0 deletions scripts/generateProptypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const useExternalDocumentation: Record<string, string[]> = {
*/
const ignoreExternalDocumentation: Record<string, string[]> = {
Collapse: ['onEnter', 'onEntered', 'onEntering', 'onExit', 'onExiting'],
ExpansionPanel: ['square'],
Fade: ['onEnter', 'onExit'],
Grow: ['onEnter', 'onExit'],
InputBase: ['aria-describedby'],
Expand Down

0 comments on commit 6b8ba13

Please sign in to comment.