Open siriwatknp opened 2 months ago
Hey @siriwatknp on step 4 of Render demos, shouldn't it be cd apps/pigment-css-next-app && pnpm install && pnpm dev
instead of cd apps/pigment-next-app && pnpm install && pnpm dev
?
@siriwatknp would like to work on Checkbox
I assigned the Breadcrumbs component to myself to work on them this week 👍🏼
It uses Typography though 🤔
const BreadcrumbsRoot = styled(Typography, {
name: 'MuiBreadcrumbs',
slot: 'Root',
overridesResolver: (props, styles) => {
return [{ [`& .${breadcrumbsClasses.li}`]: styles.li }, styles.root];
},
})({});
Is that a blocker given that the Typography component is on hold?
I assigned the Breadcrumbs component to myself to work on them this week 👍🏼
@DiegoAndai the Breadcrumbs was taken by aacevski a while ago https://github.com/mui/material-ui/pull/41496
@siriwatknp would like to work on
Checkbox
Assigned, thanks!
@DiegoAndai the Breadcrumbs was taken by aacevski a while ago https://github.com/mui/material-ui/pull/41496
😅
@siriwatknp is the Chip taken? If not, I can take it.
I'd like to take Popover. I have opened a PR: https://github.com/mui/material-ui/pull/41564
Next up, I'd like to work on the Card component.
is the Chip taken? If not, I can take it.
Assigned.
Next up, I'd like to work on the Card component.
Assigned.
@siriwatknp which one can I take next?
I'd like to work on the Backdrop component next. :100: PR has been opened: https://github.com/mui/material-ui/pull/41581
I'd like to take on BottomNavigation please.
@siriwatknp which one can I take next?
Assigned ButtonGroup to you.
I'd like to work on FormControl next up. 🙌🏼 PR opened.
Next I'd like to take on FormGroup. PR opened.
Can I pick up toolbar? @siriwatknp
For FilledInput
(PR), we don't have a dedicated docs page/demo, how can we progress this? @siriwatknp
Can I pick up toolbar? @siriwatknp
Please do, thanks!
Hi @siriwatknp I'm working on a project dependent on MUI and we would need the zero runtime CSS for a next step in the project. We're happy to contribute with our time to the MUI repo with the rewrite if it can help to speed up the works and the new version release. But basically wondering if us spending some extra time will actually make things faster or is there a fixed release schedule anyway?
@siriwatknp I'll take the Select
-component. Should I also change the NativeSelectInput
or is that something for the Input
-component.
@siriwatknp I'll take the
Select
-component. Should I also change theNativeSelectInput
or is that something for theInput
-component.
The Input needs a GlobalStyles (not done yet). Can you pick one from the "Ready-to-take Component".
@siriwatknp I was wondering myself why the Select
component was in the ready to take section. Then just assign me a component and I can work through it. Thanks
Hi @siriwatknp I'm working on a project dependent on MUI and we would need the zero runtime CSS for a next step in the project. We're happy to contribute with our time to the MUI repo with the rewrite if it can help to speed up the works and the new version release. But basically wondering if us spending some extra time will actually make things faster or is there a fixed release schedule anyway?
Thanks! We aim for May but it's not a fixed schedule. The faster we finish this issue, the faster we can do the stable release.
@siriwatknp I'll work on the ToggleButton
component.
@siriwatknp I'll work on the
ToggleButton
component.
Thanks! assigned.
@siriwatknp I would like to work on the Radio
next.
@siriwatknp I've taken the liberty of converting the PaginationItem
(#41848), IconButton
(#41850) and Fab
(#41851)
@siriwatknp I would like to work on the Icon
next.
@siriwatknp I would like to work on the
Icon
next.
Hey, thanks for asking but the rest will be done by the codemod. Thank you so much!
The rest of the tasks will be done by a codemod.
Thank you for past contributions
# Contribution is welcome The focus of Material UI v6 is to support static CSS extraction, and we are excited to invite the community to be a part of it! For short context, the static extraction is done by our in-house styling-engine package, aka [Pigment CSS](https://github.com/mui/material-ui/tree/next/packages/pigment-css-react). You can think of it as a replacement for Emotion/Styled-components. We must add an intermediate path to let the components support both Pigment CSS and Emotion. The goal of this issue is to track the progress of the work with guidance on how to contribute and check the result. Explanation about Pigment CSS is **out-of-scope**. But you can [visit the README](https://github.com/mui/material-ui/tree/next/packages/pigment-css-react) for more info. ## Contributing 1. Pick a component from the **Ready-to-take** section below. Tag @siriwatknp in the comment to assign to you (for example, if you take Accordion, Accordion* must be included in your PR). 2. Fork the [repo](https://github.com/mui/material-ui/) (if you are a new contributor, please check the [contributing](https://github.com/mui/material-ui/blob/master/CONTRIBUTING.md) first) and open the component implementation, e.g. `packages/mui-material/src/Avatar/Avatar.js`. 3. Change the path import of these APIs, `styled`, `useThemeProps`, `keyframes` to `../zero-styled`: ```diff … - import styled from '../styles/styled'; - import useThemeProps from '../styles/useThemeProps'; + import { styled, createUseThemeProps } from '../zero-styled'; …the rest of the imports const useThemeProps = createUseThemeProps('MuiAvatar'); … ``` 💡 For `useThemeProps`, replace it with `createUseThemeProps` and call the function with a string that has the same value as `useThemeProps({ props: inProps, name:Move
**Before**: ```js const AccordionRoot = styled(Paper, { … })({ theme, ownerState }) => ({ ...(!ownerState.square && { borderRadius: 0, '&:first-of-type': { borderTopLeftRadius: (theme.vars || theme).shape.borderRadius, borderTopRightRadius: (theme.vars || theme).shape.borderRadius, }, '&:last-of-type': { borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius, borderBottomRightRadius: (theme.vars || theme).shape.borderRadius, // Fix a rendering issue on Edge '@supports (-ms-ime-align: auto)': { borderBottomLeftRadius: 0, borderBottomRightRadius: 0, }, }, }), ...(!ownerState.disableGutters && { [`&.${accordionClasses.expanded}`]: { margin: '16px 0', }, }), }) ``` **After**: ```js const AccordionRoot = styled(Paper, { … })({ theme }) => ({ // there must be NO `ownerState` here. variants: [ { props: { square: false }, style: { borderRadius: 0, '&:first-of-type': { borderTopLeftRadius: (theme.vars || theme).shape.borderRadius, borderTopRightRadius: (theme.vars || theme).shape.borderRadius, }, '&:last-of-type': { borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius, borderBottomRightRadius: (theme.vars || theme).shape.borderRadius, // Fix a rendering issue on Edge '@supports (-ms-ime-align: auto)': { borderBottomLeftRadius: 0, borderBottomRightRadius: 0, }, }, }, }, { props: { disableGutters: false }, style: { [`&.${accordionClasses.expanded}`]: { margin: '16px 0', } } } ] }) ```ownerState
from the root style argument callback tovariants
Use
**Before**: ```js ({ theme, ownerState }) => { return { ...theme.typography.body2, backgroundColor: 'transparent', display: 'flex', padding: '6px 16px', ...(ownerState.color && ownerState.variant === 'standard' && { color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6), backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9), [`& .${alertClasses.icon}`]: theme.vars ? { color: theme.vars.palette.Alert[`${color}IconColor`] } : { color: theme.palette[color].main, }, }), } ``` **After**: ```js ({ theme }) => { return { ...theme.typography.body2, backgroundColor: 'transparent', display: 'flex', padding: '6px 16px', variants: [ ...Object.entries(theme.palette) .filter(([, value]) => value.main && value.light) // check all the used fields in the style below .map(([color]) => ({ props: { colorSeverity: color, variant: 'standard' }, style: { color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6), backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9), [`& .${alertClasses.icon}`]: theme.vars ? { color: theme.vars.palette.Alert[`${color}IconColor`] } : { color: theme.palette[color].main, }, }, })), ] } ``` Example: https://github.com/mui/material-ui/pull/41230/files?diff=unified&w=0#diff-c2a97485bf897f10a4ae2116d86ea7d6eaed078be9781d4181b1a5bbf02ae170R60-R77Object.entries(theme.palette)
to populate colorsReady-to-take Components
.muiName
attached)Will be done by a Codemod
https://github.com/mui/material-ui/pull/41743
https://github.com/mui/material-ui/pull/42001
.muiName
attached)useTheme()
).muiName
attached).muiName
attached) https://github.com/mui/material-ui/pull/41663 @mj12albert.muiName
attached)useTheme()
)useTheme
useTheme()
)useTheme()
)Waiting for 👍
extendSxProp
extendSxProp