v88.0.0
88.0.0 (2023-06-28)
Features
- AccordionExpandIcon: Moved to
./AccordionSummary
folder (d58dd51) - Deprecation and fallback for some components in MuiCozyTheme (c2f4acd)
- Move
MuiCozyTheme/MuiBreadcrumbs
in/Breadcrumbs
(1678047) - Move Breadcrumbs component into
./legacy
folder (ffc9c9b) - Move components from
MuiCozyTheme
folder toreact
folder (b9f5324) - Remove
MuiCozyTheme/Dialog
content (549c20a)
BREAKING CHANGES
- We moved these components into
/react
folder.
This is the list of impacted components: MuiCozyTheme/Buttons
, MuiCozyTheme/MuiBreadcrumbs
, MuiCozyTheme/Dialog
, MuiCozyTheme/Accordion
, MuiCozyTheme/AccordionDetails
, MuiCozyTheme/AccordionSummary
, MuiCozyTheme/Divider
, MuiCozyTheme/Grid
, MuiCozyTheme/List
, MuiCozyTheme/ListItem
, MuiCozyTheme/ListItemIcon
, MuiCozyTheme/ListItemSecondaryAction
, MuiCozyTheme/ListSubheader
, MuiCozyTheme/Menu
, MuiCozyTheme/Switch
, MuiCozyTheme/TextField
You can use this codemods to migrate. Don't forget to run js linter after the codemods.
The --parser
option is essential to manage any TSX files in the project.
yarn global add @cozy/codemods
yarn global add [email protected]
jscodeshift -t $(yarn global dir)/node_modules/@cozy/codemods/src/transforms/transform-ui-muicozytheme-imports.js src babel --ignore-pattern=src/targets/ --extensions js,jsx,tsx --parser tsx
- you must replace
cozy-ui/transpiled/react/Breadcrumbs
bycozy-ui/transpiled/react/legacy/Breadcrumbs