Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mui/material-ui into depr…
Browse files Browse the repository at this point in the history
…ecation/alert
  • Loading branch information
siriwatknp committed Jan 9, 2025
2 parents ccccc28 + 04fc1fa commit 36ddc60
Show file tree
Hide file tree
Showing 13 changed files with 200 additions and 182 deletions.
37 changes: 33 additions & 4 deletions apps/pigment-css-vite-app/src/pages/material-ui/react-progress.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import * as React from 'react';
import LinearProgress, { LinearProgressProps } from '@mui/material/LinearProgress';
import Typography from '@mui/material/Typography';
import Box from '@mui/material/Box';
import MaterialUILayout from '../../Layout';
import CircularColor from '../../../../../docs/data/material/components/progress/CircularColor.tsx';
import CircularDeterminate from '../../../../../docs/data/material/components/progress/CircularDeterminate.tsx';
Expand All @@ -9,9 +12,23 @@ import CircularWithValueLabel from '../../../../../docs/data/material/components
import CustomizedProgressBars from '../../../../../docs/data/material/components/progress/CustomizedProgressBars.tsx';
import DelayingAppearance from '../../../../../docs/data/material/components/progress/DelayingAppearance.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';

function LinearProgressWithLabel(props: LinearProgressProps & { value: number }) {
return (
<Box sx={{ display: 'flex', alignItems: 'center' }}>
<Box sx={{ width: '100%', mr: 1 }}>
<LinearProgress variant="determinate" {...props} />
</Box>
<Box sx={{ minWidth: 35 }}>
<Typography
variant="body2"
sx={{ color: 'text.secondary' }}
>{`${Math.round(props.value)}%`}</Typography>
</Box>
</Box>
);
}

export default function Progress() {
return (
Expand Down Expand Up @@ -65,6 +82,14 @@ export default function Progress() {
<DelayingAppearance />
</div>
</section>
<section>
<h2> Linear Buffer</h2>
<div className="demo-container">
<Box sx={{ width: '100%' }}>
<LinearProgress variant="buffer" value={10} valueBuffer={30} />
</Box>
</div>
</section>
<section>
<h2> Linear Color</h2>
<div className="demo-container">
Expand All @@ -74,7 +99,9 @@ export default function Progress() {
<section>
<h2> Linear Determinate</h2>
<div className="demo-container">
<LinearDeterminate />
<Box sx={{ width: '100%' }}>
<LinearProgress variant="determinate" value={10} />
</Box>
</div>
</section>
<section>
Expand All @@ -86,7 +113,9 @@ export default function Progress() {
<section>
<h2> Linear With Value Label</h2>
<div className="demo-container">
<LinearWithValueLabel />
<Box sx={{ width: '100%' }}>
<LinearProgressWithLabel value={10} />
</Box>
</div>
</section>
</MaterialUILayout>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# Material UI Sync plugin
# Material UI Sync plugin 🧪

<p class="description">Sync is a Figma plugin that generates Material UI themes directly from design to code.</p>

:::warning
This plugin is experimental.
:::

## Introduction

[Material UI Sync](https://www.figma.com/community/plugin/1336346114713490235/material-ui-sync) is a Figma plugin that lets you generate a theme from the [Material UI for Figma Design Kit](https://www.figma.com/community/file/912837788133317724/material-ui-for-figma-and-mui-x).

:::warning
Sync works in combination with the [Material UI for Figma Design Kit v5.16.0](https://github.com/mui/mui-design-kits/releases) and later.
Other kits, such as the Joy UI Design Kit, are not supported yet.
:::

<img src="/static/material-ui/design-resources/sync.png" style="width: 814px;" alt="Customizing the Material UI Switch component in Figma with the Sync plugin running." width="1628" height="400" />

Sync works in combination with the [Material UI for Figma Design Kit v5.16.0](https://github.com/mui/mui-design-kits/releases) and later.

## Running the plugin

If you don't have the [complete and latest version](/store/items/figma-react/) of the Material UI for Figma Design Kit installed, you can test the plugin by using the [Community version](https://www.figma.com/community/file/912837788133317724/material-ui-for-figma-and-mui-x) instead.
Expand Down
3 changes: 1 addition & 2 deletions docs/data/material/getting-started/overview/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ It includes a comprehensive collection of prebuilt components that are ready for

:::info
Material UI v6 supports Material Design 2.
Adoption of Material Design 3 is tentatively planned for a future Material UI version.
You can follow [this GitHub issue](https://github.com/mui/material-ui/issues/29345) for future updates.
You can follow [this GitHub issue](https://github.com/mui/material-ui/issues/29345) for future design-related updates.
:::

## Advantages of Material UI
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ const pages: MuiPage[] = [
{
pathname: '/material-ui/design-resources/material-ui-sync',
title: 'Figma Sync plugin',
beta: true,
unstable: true,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/careers/CareersFaq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const faqData = [
For those that chose the "employee":
- people in France are hired as full-time employees under the French [legal entity](https://www.infogreffe.com/entreprise-societe/852357748-material-ui-750119B189960000.html).
- people in France are hired as full-time employees under the French [legal entity](https://www.infogreffe.fr/entreprise-societe/852357748-material-ui-750119B189960000.html).
- people outside of France are hired through an Employer of Record (EOR), for example, Deel: https://www.deel.com/.
`,
},
Expand Down
9 changes: 2 additions & 7 deletions docs/src/components/productMaterial/MaterialEnd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,11 @@ export default function MaterialEnd({ noFaq }: MaterialEndProps) {
Does it support Material Design 3?
</Typography>
<Typography>
The adoption of Material Design 3 is tentatively planned for Material UI v7. See
the{' '}
<Link href="https://mui.com/versions/#release-schedule">
the release schedule
</Link>{' '}
and follow{' '}
Material UI currently adopts Material Design 2. You can follow{' '}
<Link href="https://github.com/mui/material-ui/issues/29345">
this GitHub issue
</Link>{' '}
for future updates.
for future design-related updates.
</Typography>
</div>
</ListItem>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
},
"dependencies": {
"@googleapis/sheets": "^9.3.1",
"@netlify/functions": "^2.8.2",
"@netlify/functions": "^3.0.0",
"@slack/bolt": "^4.2.0",
"execa": "^9.5.2",
"google-auth-library": "^9.15.0"
Expand Down Expand Up @@ -198,7 +198,7 @@
"vitest-fail-on-console": "^0.7.1",
"webpack": "^5.97.1",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"webpack-cli": "^6.0.1",
"yargs": "^17.7.2"
},
"packageManager": "[email protected]",
Expand Down
3 changes: 3 additions & 0 deletions packages/mui-docs/src/MarkdownElement/MarkdownElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,9 @@ const Root = styled('div')(
transition: theme.transitions.create(['background', 'borderColor', 'display'], {
duration: theme.transitions.duration.shortest,
}),
'@media (max-width: 640px)': {
display: 'none',
},
'& .MuiCode-copied-label': {
display: 'none',
},
Expand Down
Loading

0 comments on commit 36ddc60

Please sign in to comment.