From 6b8ba1397b7f32f12d836cb3d6209cc210cad0d4 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Thu, 2 Apr 2020 12:02:34 +0200 Subject: [PATCH] docs: Ignore ExpansionPanel#square like on master --- docs/pages/api-docs/expansion-panel.md | 1 - packages/material-ui/src/ExpansionPanel/ExpansionPanel.js | 2 +- scripts/generateProptypes.ts | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/api-docs/expansion-panel.md b/docs/pages/api-docs/expansion-panel.md index 263a4ca968edf2..798cf1512a6e44 100644 --- a/docs/pages/api-docs/expansion-panel.md +++ b/docs/pages/api-docs/expansion-panel.md @@ -30,7 +30,6 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | disabled | bool | false | If `true`, the panel will be displayed in a disabled state. | | expanded | bool | | If `true`, expands the panel, otherwise collapse it. Setting this prop enables control over the panel. | | onChange | func | | Callback fired when the expand/collapse state is changed.

**Signature:**
`function(event: object, expanded: boolean) => void`
*event:* The event source of the callback.
*expanded:* The `expanded` state of the panel. | -| square | bool | false | If `true`, rounded corners are disabled. | | TransitionComponent | elementType | Collapse | The component used for the collapse effect. [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. | | TransitionProps | object | | Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element. | diff --git a/packages/material-ui/src/ExpansionPanel/ExpansionPanel.js b/packages/material-ui/src/ExpansionPanel/ExpansionPanel.js index 43e55124fe85ba..d40086c69cffe6 100644 --- a/packages/material-ui/src/ExpansionPanel/ExpansionPanel.js +++ b/packages/material-ui/src/ExpansionPanel/ExpansionPanel.js @@ -201,7 +201,7 @@ ExpansionPanel.propTypes = { */ onChange: PropTypes.func, /** - * If `true`, rounded corners are disabled. + * @ignore */ square: PropTypes.bool, /** diff --git a/scripts/generateProptypes.ts b/scripts/generateProptypes.ts index 0adc5d7011bef2..9142d44e461e25 100644 --- a/scripts/generateProptypes.ts +++ b/scripts/generateProptypes.ts @@ -64,6 +64,7 @@ const useExternalDocumentation: Record = { */ const ignoreExternalDocumentation: Record = { Collapse: ['onEnter', 'onEntered', 'onEntering', 'onExit', 'onExiting'], + ExpansionPanel: ['square'], Fade: ['onEnter', 'onExit'], Grow: ['onEnter', 'onExit'], InputBase: ['aria-describedby'],