-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[Accordion] Convert to support CSS extraction #41221
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
Merged
mnajdova
merged 10 commits into
mui:master
from
mnajdova:accordion/zero-runtime-compatible
Mar 13, 2024
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0c6c3bd
[Accordion] Convert to support zero-runtime
mnajdova ce53da9
Merge branch 'master' into accordion/zero-runtime-compatible
mnajdova 914a1aa
Merge branch 'master' into accordion/zero-runtime-compatible
mnajdova de6baac
Drop using ownerState in the props callback
mnajdova 562e80e
add zero-runtime example
mnajdova 5e3a02f
remove unnecessary components
mnajdova 474a6dc
Merge branch 'master' into accordion/zero-runtime-compatible
mnajdova a9a5821
update imports
mnajdova ffebe9b
Merge branch 'master' into accordion/zero-runtime-compatible
mnajdova 979ad31
add pages
mnajdova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
apps/pigment-css-next-app/src/app/material-ui/react-accordion/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
import AccordionExpandDefault from '../../../../../../docs/data/material/components/accordion/AccordionExpandDefault'; | ||
import AccordionExpandIcon from '../../../../../../docs/data/material/components/accordion/AccordionExpandIcon'; | ||
import AccordionTransition from '../../../../../../docs/data/material/components/accordion/AccordionTransition'; | ||
import AccordionUsage from '../../../../../../docs/data/material/components/accordion/AccordionUsage'; | ||
import ControlledAccordions from '../../../../../../docs/data/material/components/accordion/ControlledAccordions'; | ||
import CustomizedAccordions from '../../../../../../docs/data/material/components/accordion/CustomizedAccordions'; | ||
import DisabledAccordion from '../../../../../../docs/data/material/components/accordion/DisabledAccordion'; | ||
|
||
export default function Accordion() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Accordion Expand Default</h2> | ||
<div className="demo-container"> | ||
<AccordionExpandDefault /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Accordion Expand Icon</h2> | ||
<div className="demo-container"> | ||
<AccordionExpandIcon /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Accordion Transition</h2> | ||
<div className="demo-container"> | ||
<AccordionTransition /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Accordion Usage</h2> | ||
<div className="demo-container"> | ||
<AccordionUsage /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Controlled Accordions</h2> | ||
<div className="demo-container"> | ||
<ControlledAccordions /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Accordions</h2> | ||
<div className="demo-container"> | ||
<CustomizedAccordions /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Disabled Accordion</h2> | ||
<div className="demo-container"> | ||
<DisabledAccordion /> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
59 changes: 59 additions & 0 deletions
59
apps/pigment-css-vite-app/src/pages/material-ui/react-accordion.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import * as React from 'react'; | ||
import MaterialUILayout from '../../Layout'; | ||
import AccordionExpandDefault from '../../../../../docs/data/material/components/accordion/AccordionExpandDefault.tsx'; | ||
import AccordionExpandIcon from '../../../../../docs/data/material/components/accordion/AccordionExpandIcon.tsx'; | ||
import AccordionTransition from '../../../../../docs/data/material/components/accordion/AccordionTransition.tsx'; | ||
import AccordionUsage from '../../../../../docs/data/material/components/accordion/AccordionUsage.tsx'; | ||
import ControlledAccordions from '../../../../../docs/data/material/components/accordion/ControlledAccordions.tsx'; | ||
import CustomizedAccordions from '../../../../../docs/data/material/components/accordion/CustomizedAccordions.tsx'; | ||
import DisabledAccordion from '../../../../../docs/data/material/components/accordion/DisabledAccordion.tsx'; | ||
|
||
export default function Accordion() { | ||
return ( | ||
<MaterialUILayout> | ||
<h1>Accordion</h1> | ||
<section> | ||
<h2> Accordion Expand Default</h2> | ||
<div className="demo-container"> | ||
<AccordionExpandDefault /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Accordion Expand Icon</h2> | ||
<div className="demo-container"> | ||
<AccordionExpandIcon /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Accordion Transition</h2> | ||
<div className="demo-container"> | ||
<AccordionTransition /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Accordion Usage</h2> | ||
<div className="demo-container"> | ||
<AccordionUsage /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Controlled Accordions</h2> | ||
<div className="demo-container"> | ||
<ControlledAccordions /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Accordions</h2> | ||
<div className="demo-container"> | ||
<CustomizedAccordions /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Disabled Accordion</h2> | ||
<div className="demo-container"> | ||
<DisabledAccordion /> | ||
</div> | ||
</section> | ||
</MaterialUILayout> | ||
); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.