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] Convert LinearProgress to support Pigment CSS #41816

Merged
merged 8 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
100 changes: 100 additions & 0 deletions apps/pigment-css-next-app/src/app/material-ui/react-progress/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
'use client';
import * as React from 'react';
import CircularColor from '../../../../../../docs/data/material/components/progress/CircularColor';
import CircularDeterminate from '../../../../../../docs/data/material/components/progress/CircularDeterminate';
import CircularIndeterminate from '../../../../../../docs/data/material/components/progress/CircularIndeterminate';
import CircularIntegration from '../../../../../../docs/data/material/components/progress/CircularIntegration';
import CircularUnderLoad from '../../../../../../docs/data/material/components/progress/CircularUnderLoad';
import CircularWithValueLabel from '../../../../../../docs/data/material/components/progress/CircularWithValueLabel';
import CustomizedProgressBars from '../../../../../../docs/data/material/components/progress/CustomizedProgressBars';
import DelayingAppearance from '../../../../../../docs/data/material/components/progress/DelayingAppearance';
import LinearBuffer from '../../../../../../docs/data/material/components/progress/LinearBuffer';
import LinearColor from '../../../../../../docs/data/material/components/progress/LinearColor';
import LinearDeterminate from '../../../../../../docs/data/material/components/progress/LinearDeterminate';
import LinearIndeterminate from '../../../../../../docs/data/material/components/progress/LinearIndeterminate';
import LinearWithValueLabel from '../../../../../../docs/data/material/components/progress/LinearWithValueLabel';

export default function Progress() {
return (
<React.Fragment>
<section>
<h2> Circular Color</h2>
<div className="demo-container">
<CircularColor />
</div>
</section>
<section>
<h2> Circular Determinate</h2>
<div className="demo-container">
<CircularDeterminate />
</div>
</section>
<section>
<h2> Circular Indeterminate</h2>
<div className="demo-container">
<CircularIndeterminate />
</div>
</section>
<section>
<h2> Circular Integration</h2>
<div className="demo-container">
<CircularIntegration />
</div>
</section>
<section>
<h2> Circular Under Load</h2>
<div className="demo-container">
<CircularUnderLoad />
</div>
</section>
<section>
<h2> Circular With Value Label</h2>
<div className="demo-container">
<CircularWithValueLabel />
</div>
</section>
<section>
<h2> Customized Progress Bars</h2>
<div className="demo-container">
<CustomizedProgressBars />
</div>
</section>
<section>
<h2> Delaying Appearance</h2>
<div className="demo-container">
<DelayingAppearance />
</div>
</section>
<section>
<h2> Linear Buffer</h2>
<div className="demo-container">
<LinearBuffer />
</div>
</section>
<section>
<h2> Linear Color</h2>
<div className="demo-container">
<LinearColor />
</div>
</section>
<section>
<h2> Linear Determinate</h2>
<div className="demo-container">
<LinearDeterminate />
</div>
</section>
<section>
<h2> Linear Indeterminate</h2>
<div className="demo-container">
<LinearIndeterminate />
</div>
</section>
<section>
<h2> Linear With Value Label</h2>
<div className="demo-container">
<LinearWithValueLabel />
</div>
</section>
</React.Fragment>
);
}
101 changes: 101 additions & 0 deletions apps/pigment-css-vite-app/src/pages/material-ui/react-progress.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
import * as React from 'react';
import MaterialUILayout from '../../Layout';
import CircularColor from '../../../../../docs/data/material/components/progress/CircularColor.tsx';
import CircularDeterminate from '../../../../../docs/data/material/components/progress/CircularDeterminate.tsx';
import CircularIndeterminate from '../../../../../docs/data/material/components/progress/CircularIndeterminate.tsx';
import CircularIntegration from '../../../../../docs/data/material/components/progress/CircularIntegration.tsx';
import CircularUnderLoad from '../../../../../docs/data/material/components/progress/CircularUnderLoad.tsx';
import CircularWithValueLabel from '../../../../../docs/data/material/components/progress/CircularWithValueLabel.tsx';
import CustomizedProgressBars from '../../../../../docs/data/material/components/progress/CustomizedProgressBars.tsx';
import DelayingAppearance from '../../../../../docs/data/material/components/progress/DelayingAppearance.tsx';
import LinearBuffer from '../../../../../docs/data/material/components/progress/LinearBuffer.tsx';
import LinearColor from '../../../../../docs/data/material/components/progress/LinearColor.tsx';
import LinearDeterminate from '../../../../../docs/data/material/components/progress/LinearDeterminate.tsx';
import LinearIndeterminate from '../../../../../docs/data/material/components/progress/LinearIndeterminate.tsx';
import LinearWithValueLabel from '../../../../../docs/data/material/components/progress/LinearWithValueLabel.tsx';

export default function Progress() {
return (
<MaterialUILayout>
<h1>Progress</h1>
<section>
<h2> Circular Color</h2>
<div className="demo-container">
<CircularColor />
</div>
</section>
<section>
<h2> Circular Determinate</h2>
<div className="demo-container">
<CircularDeterminate />
</div>
</section>
<section>
<h2> Circular Indeterminate</h2>
<div className="demo-container">
<CircularIndeterminate />
</div>
</section>
<section>
<h2> Circular Integration</h2>
<div className="demo-container">
<CircularIntegration />
</div>
</section>
<section>
<h2> Circular Under Load</h2>
<div className="demo-container">
<CircularUnderLoad />
</div>
</section>
<section>
<h2> Circular With Value Label</h2>
<div className="demo-container">
<CircularWithValueLabel />
</div>
</section>
<section>
<h2> Customized Progress Bars</h2>
<div className="demo-container">
<CustomizedProgressBars />
</div>
</section>
<section>
<h2> Delaying Appearance</h2>
<div className="demo-container">
<DelayingAppearance />
</div>
</section>
<section>
<h2> Linear Buffer</h2>
<div className="demo-container">
<LinearBuffer />
</div>
</section>
<section>
<h2> Linear Color</h2>
<div className="demo-container">
<LinearColor />
</div>
</section>
<section>
<h2> Linear Determinate</h2>
<div className="demo-container">
<LinearDeterminate />
</div>
</section>
<section>
<h2> Linear Indeterminate</h2>
<div className="demo-container">
<LinearIndeterminate />
</div>
</section>
<section>
<h2> Linear With Value Label</h2>
<div className="demo-container">
<LinearWithValueLabel />
</div>
</section>
</MaterialUILayout>
);
}
Loading
Loading