Skip to content

Commit

Permalink
[material-ui][ButtonGroup] Convert to support CSS extraction (#41666)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanivan authored Mar 29, 2024
1 parent e9db5b8 commit 5a289eb
Show file tree
Hide file tree
Showing 6 changed files with 282 additions and 110 deletions.
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

0 comments on commit 5a289eb

Please sign in to comment.