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

[material-ui][ButtonGroup] Convert to support CSS extraction #41666

Merged
merged 9 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions apps/pigment-css-next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@pigment-css/react": "workspace:^",
"@mui/utils": "workspace:^",
"@mui/base": "workspace:^",
"@mui/lab": "workspace:^",
"@mui/material": "workspace:^",
"@mui/system": "workspace:^",
"@mui/material-nextjs": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
'use client';
import * as React from 'react';
import BasicButtonGroup from '../../../../../../docs/data/material/components/button-group/BasicButtonGroup';
import DisableElevation from '../../../../../../docs/data/material/components/button-group/DisableElevation';
import GroupOrientation from '../../../../../../docs/data/material/components/button-group/GroupOrientation';
import GroupSizesColors from '../../../../../../docs/data/material/components/button-group/GroupSizesColors';
import LoadingButtonGroup from '../../../../../../docs/data/material/components/button-group/LoadingButtonGroup';
import SplitButton from '../../../../../../docs/data/material/components/button-group/SplitButton';
import VariantButtonGroup from '../../../../../../docs/data/material/components/button-group/VariantButtonGroup';

export default function ButtonGroup() {
return (
<React.Fragment>
<section>
<h2> Basic Button Group</h2>
<div className="demo-container">
<BasicButtonGroup />
</div>
</section>
<section>
<h2> Disable Elevation</h2>
<div className="demo-container">
<DisableElevation />
</div>
</section>
<section>
<h2> Group Orientation</h2>
<div className="demo-container">
<GroupOrientation />
</div>
</section>
<section>
<h2> Group Sizes Colors</h2>
<div className="demo-container">
<GroupSizesColors />
</div>
</section>
<section>
<h2> Loading Button Group</h2>
<div className="demo-container">
<LoadingButtonGroup />
</div>
</section>
<section>
<h2> Split Button</h2>
<div className="demo-container">
<SplitButton />
</div>
</section>
<section>
<h2> Variant Button Group</h2>
<div className="demo-container">
<VariantButtonGroup />
</div>
</section>
</React.Fragment>
);
}
1 change: 1 addition & 0 deletions apps/pigment-css-vite-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@pigment-css/react": "workspace:^",
"@mui/utils": "workspace:^",
"@mui/base": "workspace:^",
"@mui/lab": "workspace:^",
"@mui/material": "workspace:^",
"@mui/system": "workspace:^",
"@mui/icons-material": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import * as React from 'react';
import MaterialUILayout from '../../Layout';
import BasicButtonGroup from '../../../../../docs/data/material/components/button-group/BasicButtonGroup.tsx';
import DisableElevation from '../../../../../docs/data/material/components/button-group/DisableElevation.tsx';
import GroupOrientation from '../../../../../docs/data/material/components/button-group/GroupOrientation.tsx';
import GroupSizesColors from '../../../../../docs/data/material/components/button-group/GroupSizesColors.tsx';
import LoadingButtonGroup from '../../../../../docs/data/material/components/button-group/LoadingButtonGroup.tsx';
import SplitButton from '../../../../../docs/data/material/components/button-group/SplitButton.tsx';
import VariantButtonGroup from '../../../../../docs/data/material/components/button-group/VariantButtonGroup.tsx';

export default function ButtonGroup() {
return (
<MaterialUILayout>
<h1>Button-group</h1>
<section>
<h2> Basic Button Group</h2>
<div className="demo-container">
<BasicButtonGroup />
</div>
</section>
<section>
<h2> Disable Elevation</h2>
<div className="demo-container">
<DisableElevation />
</div>
</section>
<section>
<h2> Group Orientation</h2>
<div className="demo-container">
<GroupOrientation />
</div>
</section>
<section>
<h2> Group Sizes Colors</h2>
<div className="demo-container">
<GroupSizesColors />
</div>
</section>
<section>
<h2> Loading Button Group</h2>
<div className="demo-container">
<LoadingButtonGroup />
</div>
</section>
<section>
<h2> Split Button</h2>
<div className="demo-container">
<SplitButton />
</div>
</section>
<section>
<h2> Variant Button Group</h2>
<div className="demo-container">
<VariantButtonGroup />
</div>
</section>
</MaterialUILayout>
);
}
Loading
Loading