Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ExpansionPanel] Rename to Accordion #21494

Merged
merged 42 commits into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ca4af29
wip
mnajdova Jun 18, 2020
acfbd14
wip
mnajdova Jun 18, 2020
c86419b
reverted some changes
mnajdova Jun 18, 2020
3a13819
sorting
mnajdova Jun 18, 2020
8409f67
migration
mnajdova Jun 18, 2020
0616c22
fix in migration
mnajdova Jun 18, 2020
1ef1e8f
fix in migration
mnajdova Jun 18, 2020
ce15229
fix in migration
mnajdova Jun 18, 2020
85a23f5
Update docs/src/pages/getting-started/supported-components/supported-…
mnajdova Jun 18, 2020
11234ad
added redirect
mnajdova Jun 18, 2020
63ee23a
fixed material design links
mnajdova Jun 18, 2020
79de28d
codemod fix
mnajdova Jun 18, 2020
b55a418
Merge branch 'next' into feat/accordion-component
mnajdova Jun 18, 2020
74e4f22
prettier + formatted
mnajdova Jun 18, 2020
b5df6ae
changed accordions to accordion
mnajdova Jun 19, 2020
ade67c9
docs:api
mnajdova Jun 19, 2020
9e77a1d
renamed accordions to accordion
mnajdova Jun 19, 2020
c340cb6
Update docs/src/pages/components/accordion/accordion.md
mnajdova Jun 19, 2020
68088ae
Update docs/src/pages/components/accordion/accordion.md
mnajdova Jun 19, 2020
affbc18
Update docs/src/pages/components/accordion/accordion.md
mnajdova Jun 19, 2020
471d5be
added deprecated exports for ExpansionPanel components
mnajdova Jun 20, 2020
2278210
Merge branch 'feat/accordion-component' of https://github.com/mnajdov…
mnajdova Jun 20, 2020
451a4a3
added motivation for renaming component
mnajdova Jun 20, 2020
1e93ce6
Update docs/src/pages/components/accordion/accordion.md
mnajdova Jun 20, 2020
ec0ce51
Update docs/src/pages/guides/migration-v4/migration-v4.md
mnajdova Jun 20, 2020
7d2889a
Update docs/src/pages/guides/migration-v4/migration-v4.md
mnajdova Jun 20, 2020
e15dac5
cleandup migration
mnajdova Jun 20, 2020
37ea972
prettier
mnajdova Jun 20, 2020
89227d6
changed comments on deprecated components
mnajdova Jun 21, 2020
f18c733
removed
mnajdova Jun 23, 2020
83e4aa8
reverted del files
mnajdova Jun 23, 2020
bdb11de
renamed
mnajdova Jun 23, 2020
e76dfcc
fixed d.ts fiels
mnajdova Jun 23, 2020
ab3d003
r
mnajdova Jun 23, 2020
f156c08
added
mnajdova Jun 23, 2020
13c6553
renamed
mnajdova Jun 23, 2020
957fef9
renamed types
mnajdova Jun 23, 2020
99ce035
redirects
mnajdova Jun 23, 2020
43faa08
Revert markdown source changes
eps1lon Jun 23, 2020
7a53037
Move markdown source from expansion-panel to accordion
eps1lon Jun 23, 2020
dee2e6f
Expansion Panel -> Accordion
eps1lon Jun 23, 2020
f034f65
Revert attempt at renaming
eps1lon Jun 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/expansion-panel-actions';
const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel-actions\.md$/);
const pageFilename = 'api/accordion-actions';
const requireRaw = require.context('!raw-loader!./', false, /\/accordion-actions\.md$/);

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
filename: /packages/material-ui/src/ExpansionPanelActions/ExpansionPanelActions.js
filename: /packages/material-ui/src/AccordionActions/AccordionActions.js
---

<!--- This documentation is automatically generated, do not try to edit it. -->

# ExpansionPanelActions API
# AccordionActions API

<p class="description">The API documentation of the ExpansionPanelActions React component. Learn more about the props and the CSS customization points.</p>
<p class="description">The API documentation of the AccordionActions React component. Learn more about the props and the CSS customization points.</p>

## Import

```js
import ExpansionPanelActions from '@material-ui/core/ExpansionPanelActions';
import AccordionActions from '@material-ui/core/AccordionActions';
// or
import { ExpansionPanelActions } from '@material-ui/core';
import { AccordionActions } from '@material-ui/core';
```

You can learn more about the difference by [reading this guide](/guides/minimizing-bundle-size/).
Expand All @@ -22,7 +22,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi

## Component name

The `MuiExpansionPanelActions` name can be used for providing [default props](/customization/globals/#default-props) or [style overrides](/customization/globals/#css) at the theme level.
The `MuiAccordionActions` name can be used for providing [default props](/customization/globals/#default-props) or [style overrides](/customization/globals/#css) at the theme level.

## Props

Expand All @@ -40,18 +40,18 @@ Any other props supplied will be provided to the root element (native element).

| Rule name | Global class | Description |
|:-----|:-------------|:------------|
| <span class="prop-name">root</span> | <span class="prop-name">.MuiExpansionPanelActions-root</span> | Styles applied to the root element.
| <span class="prop-name">spacing</span> | <span class="prop-name">.MuiExpansionPanelActions-spacing</span> | Styles applied to the root element if `disableSpacing={false}`.
| <span class="prop-name">root</span> | <span class="prop-name">.MuiAccordionActions-root</span> | Styles applied to the root element.
| <span class="prop-name">spacing</span> | <span class="prop-name">.MuiAccordionActions-spacing</span> | Styles applied to the root element if `disableSpacing={false}`.

You can override the style of the component thanks to one of these customization points:

- With a rule name of the [`classes` object prop](/customization/components/#overriding-styles-with-classes).
- With a [global class name](/customization/components/#overriding-styles-with-global-class-names).
- With a theme and an [`overrides` property](/customization/globals/#css).

If that's not sufficient, you can check the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/ExpansionPanelActions/ExpansionPanelActions.js) for more detail.
If that's not sufficient, you can check the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/AccordionActions/AccordionActions.js) for more detail.

## Demos

- [Expansion Panels](/components/expansion-panels/)
- [Accordion](/components/accordion/)

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/expansion-panel-summary';
const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel-summary\.md$/);
const pageFilename = 'api/accordion-details';
const requireRaw = require.context('!raw-loader!./', false, /\/accordion-details\.md$/);

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
filename: /packages/material-ui/src/ExpansionPanelDetails/ExpansionPanelDetails.js
filename: /packages/material-ui/src/AccordionDetails/AccordionDetails.js
---

<!--- This documentation is automatically generated, do not try to edit it. -->

# ExpansionPanelDetails API
# AccordionDetails API

<p class="description">The API documentation of the ExpansionPanelDetails React component. Learn more about the props and the CSS customization points.</p>
<p class="description">The API documentation of the AccordionDetails React component. Learn more about the props and the CSS customization points.</p>

## Import

```js
import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
import AccordionDetails from '@material-ui/core/AccordionDetails';
// or
import { ExpansionPanelDetails } from '@material-ui/core';
import { AccordionDetails } from '@material-ui/core';
```

You can learn more about the difference by [reading this guide](/guides/minimizing-bundle-size/).
Expand All @@ -22,13 +22,13 @@ You can learn more about the difference by [reading this guide](/guides/minimizi

## Component name

The `MuiExpansionPanelDetails` name can be used for providing [default props](/customization/globals/#default-props) or [style overrides](/customization/globals/#css) at the theme level.
The `MuiAccordionDetails` name can be used for providing [default props](/customization/globals/#default-props) or [style overrides](/customization/globals/#css) at the theme level.

## Props

| Name | Type | Default | Description |
|:-----|:-----|:--------|:------------|
| <span class="prop-name">children</span> | <span class="prop-type">node</span> | | The content of the expansion panel details. |
| <span class="prop-name">children</span> | <span class="prop-type">node</span> | | The content of the accordion details. |
| <span class="prop-name">classes</span> | <span class="prop-type">object</span> | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. |

The `ref` is forwarded to the root element.
Expand All @@ -39,17 +39,17 @@ Any other props supplied will be provided to the root element (native element).

| Rule name | Global class | Description |
|:-----|:-------------|:------------|
| <span class="prop-name">root</span> | <span class="prop-name">.MuiExpansionPanelDetails-root</span> | Styles applied to the root element.
| <span class="prop-name">root</span> | <span class="prop-name">.MuiAccordionDetails-root</span> | Styles applied to the root element.

You can override the style of the component thanks to one of these customization points:

- With a rule name of the [`classes` object prop](/customization/components/#overriding-styles-with-classes).
- With a [global class name](/customization/components/#overriding-styles-with-global-class-names).
- With a theme and an [`overrides` property](/customization/globals/#css).

If that's not sufficient, you can check the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/ExpansionPanelDetails/ExpansionPanelDetails.js) for more detail.
If that's not sufficient, you can check the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/AccordionDetails/AccordionDetails.js) for more detail.

## Demos

- [Expansion Panels](/components/expansion-panels/)
- [Accordion](/components/accordion/)

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/expansion-panel-details';
const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel-details\.md$/);
const pageFilename = 'api/accordion-summary';
const requireRaw = require.context('!raw-loader!./', false, /\/accordion-summary\.md$/);

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
filename: /packages/material-ui/src/ExpansionPanelSummary/ExpansionPanelSummary.js
filename: /packages/material-ui/src/AccordionSummary/AccordionSummary.js
---

<!--- This documentation is automatically generated, do not try to edit it. -->

# ExpansionPanelSummary API
# AccordionSummary API

<p class="description">The API documentation of the ExpansionPanelSummary React component. Learn more about the props and the CSS customization points.</p>
<p class="description">The API documentation of the AccordionSummary React component. Learn more about the props and the CSS customization points.</p>

## Import

```js
import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
import AccordionSummary from '@material-ui/core/AccordionSummary';
// or
import { ExpansionPanelSummary } from '@material-ui/core';
import { AccordionSummary } from '@material-ui/core';
```

You can learn more about the difference by [reading this guide](/guides/minimizing-bundle-size/).
Expand All @@ -22,13 +22,13 @@ You can learn more about the difference by [reading this guide](/guides/minimizi

## Component name

The `MuiExpansionPanelSummary` name can be used for providing [default props](/customization/globals/#default-props) or [style overrides](/customization/globals/#css) at the theme level.
The `MuiAccordionSummary` name can be used for providing [default props](/customization/globals/#default-props) or [style overrides](/customization/globals/#css) at the theme level.

## Props

| Name | Type | Default | Description |
|:-----|:-----|:--------|:------------|
| <span class="prop-name">children</span> | <span class="prop-type">node</span> | | The content of the expansion panel summary. |
| <span class="prop-name">children</span> | <span class="prop-type">node</span> | | The content of the accordion summary. |
| <span class="prop-name">classes</span> | <span class="prop-type">object</span> | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. |
| <span class="prop-name">expandIcon</span> | <span class="prop-type">node</span> | | The icon to display as the expand indicator. |
| <span class="prop-name">IconButtonProps</span> | <span class="prop-type">object</span> | | Props applied to the `IconButton` element wrapping the expand icon. |
Expand All @@ -41,20 +41,20 @@ Any other props supplied will be provided to the root element ([ButtonBase](/api

| Rule name | Global class | Description |
|:-----|:-------------|:------------|
| <span class="prop-name">root</span> | <span class="prop-name">.MuiExpansionPanelSummary-root</span> | Styles applied to the root element.
| <span class="prop-name">root</span> | <span class="prop-name">.MuiAccordionSummary-root</span> | Styles applied to the root element.
| <span class="prop-name">expanded</span> | <span class="prop-name">.Mui-expanded</span> | Pseudo-class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`.
| <span class="prop-name">focused</span> | <span class="prop-name">.Mui-focused</span> | Pseudo-class applied to the root element if `focused={true}`.
| <span class="prop-name">disabled</span> | <span class="prop-name">.Mui-disabled</span> | Pseudo-class applied to the root element if `disabled={true}`.
| <span class="prop-name">content</span> | <span class="prop-name">.MuiExpansionPanelSummary-content</span> | Styles applied to the children wrapper element.
| <span class="prop-name">expandIcon</span> | <span class="prop-name">.MuiExpansionPanelSummary-expandIcon</span> | Styles applied to the `IconButton` component when `expandIcon` is supplied.
| <span class="prop-name">content</span> | <span class="prop-name">.MuiAccordionSummary-content</span> | Styles applied to the children wrapper element.
| <span class="prop-name">expandIcon</span> | <span class="prop-name">.MuiAccordionSummary-expandIcon</span> | Styles applied to the `IconButton` component when `expandIcon` is supplied.

You can override the style of the component thanks to one of these customization points:

- With a rule name of the [`classes` object prop](/customization/components/#overriding-styles-with-classes).
- With a [global class name](/customization/components/#overriding-styles-with-global-class-names).
- With a theme and an [`overrides` property](/customization/globals/#css).

If that's not sufficient, you can check the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/ExpansionPanelSummary/ExpansionPanelSummary.js) for more detail.
If that's not sufficient, you can check the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/AccordionSummary/AccordionSummary.js) for more detail.

## Inheritance

Expand All @@ -63,5 +63,5 @@ You can take advantage of this behavior to [target nested components](/guides/ap

## Demos

- [Expansion Panels](/components/expansion-panels/)
- [Accordion](/components/accordion/)

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/expansion-panel';
const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel\.md$/);
const pageFilename = 'api/accordion';
const requireRaw = require.context('!raw-loader!./', false, /\/accordion\.md$/);

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
Expand Down
Loading