@mui/material 5.9.2 → 5.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.js +1 -1
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/Button.js +8 -3
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/TouchRipple.js +1 -1
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +196 -5
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.js +5 -7
- package/Chip/chipClasses.d.ts +88 -80
- package/Chip/chipClasses.js +1 -1
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/Grid.d.ts +1 -1
- package/Grid/Grid.js +71 -4
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +3 -2
- package/InputBase/inputBaseClasses.d.ts +46 -44
- package/InputBase/inputBaseClasses.js +1 -1
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +24 -24
- package/README.md +8 -8
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/SelectInput.js +1 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/Skeleton.d.ts +1 -1
- package/Skeleton/Skeleton.js +3 -1
- package/Skeleton/skeletonClasses.d.ts +26 -24
- package/Skeleton/skeletonClasses.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Stack/Stack.js +2 -1
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +1 -1
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/TableCell.d.ts +6 -2
- package/TableCell/TableCell.js +6 -2
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +1 -1
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Badge/Badge.js +1 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Button/Button.js +4 -2
- package/legacy/ButtonBase/TouchRipple.js +1 -1
- package/legacy/Chip/Chip.js +4 -6
- package/legacy/Chip/chipClasses.js +1 -1
- package/legacy/Grid/Grid.js +76 -12
- package/legacy/InputBase/InputBase.js +3 -2
- package/legacy/InputBase/inputBaseClasses.js +1 -1
- package/legacy/Select/SelectInput.js +1 -1
- package/legacy/Skeleton/Skeleton.js +3 -1
- package/legacy/Skeleton/skeletonClasses.js +1 -1
- package/legacy/Stack/Stack.js +2 -1
- package/legacy/StepLabel/StepLabel.js +1 -1
- package/legacy/TableCell/TableCell.js +6 -2
- package/legacy/Tooltip/Tooltip.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/createTheme.js +5 -0
- package/legacy/useScrollTrigger/useScrollTrigger.js +6 -2
- package/locale/index.d.ts +71 -71
- package/modern/Badge/Badge.js +1 -1
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Button/Button.js +8 -3
- package/modern/ButtonBase/TouchRipple.js +1 -1
- package/modern/Chip/Chip.js +5 -7
- package/modern/Chip/chipClasses.js +1 -1
- package/modern/Grid/Grid.js +67 -4
- package/modern/InputBase/InputBase.js +3 -2
- package/modern/InputBase/inputBaseClasses.js +1 -1
- package/modern/Select/SelectInput.js +1 -1
- package/modern/Skeleton/Skeleton.js +3 -1
- package/modern/Skeleton/skeletonClasses.js +1 -1
- package/modern/Stack/Stack.js +2 -1
- package/modern/StepLabel/StepLabel.js +1 -1
- package/modern/TableCell/TableCell.js +6 -2
- package/modern/Tooltip/Tooltip.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/createTheme.js +6 -0
- package/modern/useScrollTrigger/useScrollTrigger.js +6 -2
- package/node/Badge/Badge.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Button/Button.js +10 -3
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/Chip/Chip.js +5 -7
- package/node/Chip/chipClasses.js +1 -1
- package/node/Grid/Grid.js +71 -4
- package/node/InputBase/InputBase.js +3 -2
- package/node/InputBase/inputBaseClasses.js +1 -1
- package/node/Select/SelectInput.js +1 -1
- package/node/Skeleton/Skeleton.js +3 -1
- package/node/Skeleton/skeletonClasses.js +1 -1
- package/node/Stack/Stack.js +1 -0
- package/node/StepLabel/StepLabel.js +1 -1
- package/node/TableCell/TableCell.js +6 -2
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/createTheme.js +6 -0
- package/node/useScrollTrigger/useScrollTrigger.js +6 -2
- package/package.json +6 -5
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/createTheme.js +6 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +245 -104
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useScrollTrigger/useScrollTrigger.js +6 -2
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,196 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.10.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.10.0..master -->
|
|
6
|
+
|
|
7
|
+
_Aug 15, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 18 contributors who made this release possible. This release was mostly around 🐛 bug fixes and 📚 documentation improvements.
|
|
10
|
+
|
|
11
|
+
### `@mui/material@5.10.1`
|
|
12
|
+
|
|
13
|
+
- ​<!-- 04 -->[TableCell] Enable variant overrides via TypeScript module augmentation (#33856) @arjunvijayanathakurup
|
|
14
|
+
|
|
15
|
+
### `@mui/system@5.10.1`
|
|
16
|
+
|
|
17
|
+
- ​<!-- 05 -->[system] Fix `ContainerProps` export (#33923) @bugzpodder
|
|
18
|
+
|
|
19
|
+
### `@mui/base@5.0.0-alpha.93`
|
|
20
|
+
|
|
21
|
+
- ​<!-- 31 -->[TrapFocus] Removes invisible tabbable elements from (#33543) @EthanStandel
|
|
22
|
+
- ​<!-- 30 -->[Input][base] Pass the rows prop to the underlying textarea (#33873) @michaldudak
|
|
23
|
+
- ​<!-- 06 -->[SelectUnstyled] Add ability to post the select's value when submitting a form (#33697) @michaldudak
|
|
24
|
+
|
|
25
|
+
### `@mui/joy@5.0.0-alpha.41`
|
|
26
|
+
|
|
27
|
+
- ​<!-- 07 -->[IconButton][joy] Fix large IconButton scaling (#33885) @cherewaty
|
|
28
|
+
|
|
29
|
+
### Docs
|
|
30
|
+
|
|
31
|
+
- ​<!-- 23 -->[docs] Expand on a11y section for Material UI `Link` component (#32839) @TKrishnasamy
|
|
32
|
+
- ​<!-- 22 -->[docs] Fix typo in Joy UI's `AspectRatio` docs (#33895) @IsaacInsoll
|
|
33
|
+
- ​<!-- 21 -->[docs] Improve the Base Usage page (#33272) @samuelsycamore
|
|
34
|
+
- ​<!-- 20 -->[docs] Avoid refreshing the page when button on demo is clicked (#33852) @PunitSoniME
|
|
35
|
+
- ​<!-- 19 -->[docs] Improve the HorizontalNonLinearStepper demo styling (#33886) @hayawata3626
|
|
36
|
+
- ​<!-- 18 -->[docs] Remove dead NoSsr in the demos (#33910) @oliviertassinari
|
|
37
|
+
- ​<!-- 17 -->[docs] Fix the reopening menu problem in MenuUnstyled demo (#33890) @michaldudak
|
|
38
|
+
- ​<!-- 24 -->[docs] Fix a few link issues (#33909) @oliviertassinari
|
|
39
|
+
- ​<!-- 16 -->[docs] Explain the icons package dependencies (#33592) @michaldudak
|
|
40
|
+
- ​<!-- 15 -->[docs] Fix reported SEO issues (#33818) @oliviertassinari
|
|
41
|
+
- ​<!-- 14 -->[docs] Add permanent notifications back (#33843) @oliviertassinari
|
|
42
|
+
- ​<!-- 13 -->[docs] Enforce description for all pages (#33698) @oliviertassinari
|
|
43
|
+
- ​<!-- 12 -->[docs] Clarify difference in startup times between named and default imports (#33109) @cmdcolin
|
|
44
|
+
- ​<!-- 11 -->[docs] Update transform function in the sx prop sizing docs (#33850) @ZeeshanTamboli
|
|
45
|
+
- ​<!-- 10 -->[docs] Adding missing accessibility labels (#33782) @PunitSoniME
|
|
46
|
+
- ​<!-- 09 -->[docs] Fix `/system/getting-started/advanced/` does not exist (#33867) @MonstraG
|
|
47
|
+
- ​<!-- 32 -->[docs] New Crowdin updates (#32213) @l10nbot
|
|
48
|
+
- ​<!-- 08 -->[examples] Fix broken path to favicon.ico (#33906) @mmostafavi
|
|
49
|
+
- ​<!-- 02 -->[website] Add new FAQ to pricing page (#33553) @oliviertassinari
|
|
50
|
+
- ​<!-- 03 -->[website] Miscellaneous improvements to the marketing pages (#33897) @danilo-leal
|
|
51
|
+
|
|
52
|
+
### Core
|
|
53
|
+
|
|
54
|
+
- ​<!-- 29 -->[core] Add the download tracker package (#33899) @michaldudak
|
|
55
|
+
- ​<!-- 28 -->[core] Use proper external build id for Argos uploads (#33929) @cherniavskii
|
|
56
|
+
- ​<!-- 27 -->[core] Enforce 70 as the max width on the title on the docs (#33819) @oliviertassinari
|
|
57
|
+
- ​<!-- 26 -->[core] Clear yarn installation warning (#33776) @michaldudak
|
|
58
|
+
- ​<!-- 25 -->[core] Bump yarn to 1.22.19 (#33656) @michaldudak
|
|
59
|
+
- ​<!-- 24 -->[core] Remove outdated Next.js options (#33845) @oliviertassinari
|
|
60
|
+
- ​<!-- 34 -->[core] Add the download tracker build script (#33941) @michaldudak
|
|
61
|
+
- ​<!-- 01 -->[website] Allow /r/store- redirection pattern @oliviertassinari
|
|
62
|
+
|
|
63
|
+
All contributors of this release in alphabetical order: @arjunvijayanathakurup, @bugzpodder, @cherewaty, @cherniavskii, @cmdcolin, @danilo-leal, @EthanStandel, @hayawata3626, @IsaacInsoll, @l10nbot, @michaldudak, @mmostafavi, @MonstraG, @oliviertassinari, @PunitSoniME, @samuelsycamore, @TKrishnasamy, @ZeeshanTamboli
|
|
64
|
+
|
|
65
|
+
## 5.10.0
|
|
66
|
+
|
|
67
|
+
<!-- generated comparing v5.9.3..master -->
|
|
68
|
+
|
|
69
|
+
_Aug 8, 2022_
|
|
70
|
+
|
|
71
|
+
A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
|
|
72
|
+
|
|
73
|
+
- ✨ [Stack](https://mui.com/system/react-stack/) component is added to MUI System and Joy UI #33760 #33800 @mnajdova
|
|
74
|
+
- ✨ [Breadcrumbs](https://mui.com/joy-ui/react-breadcrumbs/) component is added to Joy UI (#32697) @hbjORbj
|
|
75
|
+
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
|
|
76
|
+
|
|
77
|
+
### `@mui/material@5.10.0`
|
|
78
|
+
|
|
79
|
+
- [Grid] Prevent crash if spacing is set to zero in theme (#33777) @PunitSoniME
|
|
80
|
+
- [Grid] Export interface `RegularBreakpoints` to fix type error (#33751) @ZeeshanTamboli
|
|
81
|
+
- [Skeleton] Add `rounded` variant (#33687) @siriwatknp
|
|
82
|
+
- [Stepper] Fix classes for icon container (#33734) @pratikkarad
|
|
83
|
+
- [TableCell] Enable size prop overrides via module augmentation (#33816) @brentertz
|
|
84
|
+
- [Tooltip] Fix tooltip arrow css var background (#33753) @TimoWilhelm
|
|
85
|
+
- [useScrollTrigger] Add passive flag to scroll trigger event listener #32437 (#33749) @Dsalazar1685
|
|
86
|
+
|
|
87
|
+
### `@mui/system@5.10.0`
|
|
88
|
+
|
|
89
|
+
- Fix unnecessary styles created from `sx` (#33752) @siriwatknp
|
|
90
|
+
- Fix duplicated styles in Box (#33774) @iamxukai
|
|
91
|
+
- Don't spread props to DOM for string tags (#33761) @siriwatknp
|
|
92
|
+
- Add `Stack` component (#33760) @mnajdova
|
|
93
|
+
|
|
94
|
+
### `@mui/joy@5.0.0-alpha.40`
|
|
95
|
+
|
|
96
|
+
- [Stack] Add new component (#33800) @mnajdova
|
|
97
|
+
- [Breadcrumbs] Add `Breadcrumbs` component (#32697) @hbjORbj
|
|
98
|
+
- [Card] Fix wrong api description for `size` prop (#33862) @hbjORbj
|
|
99
|
+
- Miscellaneous fixes (#33796, #33750) @siriwatknp
|
|
100
|
+
|
|
101
|
+
### Docs
|
|
102
|
+
|
|
103
|
+
- [docs] Create, revise, and expand System "Getting started" docs (#33503) @samuelsycamore
|
|
104
|
+
- [docs] Test new image best practice @oliviertassinari
|
|
105
|
+
- [docs] Fix typo in the ClickAwayListerner name (#33813) @pawelsmigielski
|
|
106
|
+
- [docs] Fix link to `Basics` section in `Trap Focus` docs (#33772) @ZeeshanTamboli
|
|
107
|
+
- [docs] z-index added in popper when used by split button (#33763) @PunitSoniME
|
|
108
|
+
- [docs] Improve the guide for using @mui/base with Tailwind CSS (#33670) @mnajdova
|
|
109
|
+
- [docs] Fix warnings related to Next.js' links (#33693) @mnajdova
|
|
110
|
+
- [docs] Add notification to aggregation blogpost (#33745) @joserodolfofreitas
|
|
111
|
+
- [docs] Add Grid version 2 docs (#33554) @siriwatknp
|
|
112
|
+
- [examples] Fix `NextLinkComposedProps` type error (#33842) @adham618
|
|
113
|
+
|
|
114
|
+
### Core
|
|
115
|
+
|
|
116
|
+
- [blog] Add social card to Tenerife retreat post (#33764)
|
|
117
|
+
- [blog] Fix blue outline bug (#33707) @oliviertassinari
|
|
118
|
+
- [blog] Improve the width of the layout (#33706) @oliviertassinari@samuelsycamore
|
|
119
|
+
- [core] Remove unnecessary packageName attribute from pages (#33488) @cherniavskii
|
|
120
|
+
- [core] Remove duplicated CODE_OF_CONDUCT (#33702) @oliviertassinari
|
|
121
|
+
- [core] Update Playwright packages together (#33737) @michaldudak
|
|
122
|
+
- [website] Fix notifications not being marked as read in production (#33756) @cherniavskii
|
|
123
|
+
|
|
124
|
+
All contributors of this release in alphabetical order: @adham618, @brentertz, @cherniavskii, @Dsalazar1685, @hbjORbj, @iamxukai, @joserodolfofreitas, @michaldudak, @mnajdova, @oliviertassinari, @pawelsmigielski, @pratikkarad, @PunitSoniME, @siriwatknp, @TimoWilhelm, @ZeeshanTamboli
|
|
125
|
+
|
|
126
|
+
## 5.9.3
|
|
127
|
+
|
|
128
|
+
<!-- generated comparing v5.9.2..master -->
|
|
129
|
+
|
|
130
|
+
_Aug 1, 2022_
|
|
131
|
+
|
|
132
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
133
|
+
|
|
134
|
+
- 🖼️ @garronej worked on improving the support of Emotion packages in the System (#33205)
|
|
135
|
+
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
|
|
136
|
+
|
|
137
|
+
### `@mui/material@5.9.3`
|
|
138
|
+
|
|
139
|
+
- [Chip] Assign classnames and associated styles for `filled` variant (#33587) @hbjORbj
|
|
140
|
+
- [Grid] Fix `columnSpacing` and `rowSpacing` props ignore higher breakpoints with 0 (#33480) @ZeeshanTamboli
|
|
141
|
+
- [Input] Add the readOnly state class (#33654) @michaldudak
|
|
142
|
+
- [Stack] Responsive styles based on breakpoints should be in the correct order (#33552) @hbjORbj
|
|
143
|
+
|
|
144
|
+
### `@mui/system@5.9.3`
|
|
145
|
+
|
|
146
|
+
- [system] Make @emotion/\* fully supported in the System (#33205) @garronej
|
|
147
|
+
|
|
148
|
+
### `@mui/codemod@5.9.3`
|
|
149
|
+
|
|
150
|
+
- [codemod] Fix theme-spacing performance (#33691) @siriwatknp
|
|
151
|
+
- [codemod] Support @mui import for variant-prop (#33692) @siriwatknp
|
|
152
|
+
|
|
153
|
+
### `@mui/styled-engine-sc@5.9.3`
|
|
154
|
+
|
|
155
|
+
- [styled-engine-sc] Add missing @babel/runtime dependency (#33741) @MonstraG
|
|
156
|
+
|
|
157
|
+
### `@mui/joy@5.0.0-alpha.38`
|
|
158
|
+
|
|
159
|
+
- [Joy] Add Tabs components (#33664) @siriwatknp
|
|
160
|
+
- [Joy] Miscellaneous fixes (#33685) @siriwatknp
|
|
161
|
+
- [Joy] Update read.me content (#33643) @danilo-leal
|
|
162
|
+
|
|
163
|
+
### Docs
|
|
164
|
+
|
|
165
|
+
- [blog] Add blog post about company retreat in Tenerife 🏝 (#33566) @samuelsycamore
|
|
166
|
+
- [blog] Add blog post to announce the aggregation feature (#33595) @joserodolfofreitas
|
|
167
|
+
- [blog] Fix horizontal scrollbar with code snippets (#33648) @joserodolfofreitas
|
|
168
|
+
- [docs] Fix a typo in the code in `Sorting & selecting` Table demo (#33674) @mracette
|
|
169
|
+
- [docs] Fix en-US format in the Skeleton demo (#33699) @husseinsaad98
|
|
170
|
+
- [docs] Update module reference for `usePagination` (#33675) @fullstackzach
|
|
171
|
+
- [docs] Fix code examples in `styled` API vs `sx` prop docs (#33665) @ZeeshanTamboli
|
|
172
|
+
- [docs][system] Throw an informative error when `theme.vars` is used in `createTheme` and mention this in the theming docs (#33619) @hbjORbj
|
|
173
|
+
- [website] Remove legacy redirect @oliviertassinari
|
|
174
|
+
- [website] Add new legal pages (#33650) @oliviertassinari
|
|
175
|
+
- [website] Clarify when a license in development is required (#33668) @oliviertassinari
|
|
176
|
+
- [website] Update links to rows pages (#33739) @cherniavskii
|
|
177
|
+
- [website] Update pricing table to add aggregation and row pinning (#33659) @joserodolfofreitas
|
|
178
|
+
|
|
179
|
+
### Core
|
|
180
|
+
|
|
181
|
+
- [core] Replace `getInitialProps` with `getStaticProps` (#33684) @mnajdova
|
|
182
|
+
- [core] Remove accidentally added files (#33636) @michaldudak
|
|
183
|
+
- [core] Update packages with security issues (#33679) @michaldudak
|
|
184
|
+
- [core] Add React 17 nightly build (#33594) @mnajdova
|
|
185
|
+
- [core] Update lerna to 5.2.0 (#33635) @michaldudak
|
|
186
|
+
- [core] Prepare isolation of Next.js X app (#33649) @oliviertassinari
|
|
187
|
+
- [core] Remove thenify version override from package.json resolutions (#33638) @michaldudak
|
|
188
|
+
- [core] Update Node.js to 14 on CircleCI, CodeSandbox, and Netlify (#33642) @michaldudak
|
|
189
|
+
- [test] Replace istanbul-instrumenter-loader with babel-plugin-istanbul (#33666) @michaldudak
|
|
190
|
+
- [test] Run TypeScript module augmentation tests for Joy UI in CI (#33667) @ZeeshanTamboli
|
|
191
|
+
|
|
192
|
+
All contributors of this release in alphabetical order: @cherniavskii, @danilo-leal, @fullstackzach, @garronej, @hbjORbj, @husseinsaad98, @joserodolfofreitas, @michaldudak, @mnajdova, @MonstraG, @mracette, @oliviertassinari, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
193
|
+
|
|
3
194
|
## 5.9.2
|
|
4
195
|
|
|
5
196
|
<!-- generated comparing v5.9.1..master -->
|
|
@@ -159,7 +350,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
|
|
|
159
350
|
|
|
160
351
|
### `@mui/base@5.0.0-alpha.89`
|
|
161
352
|
|
|
162
|
-
- Base] Change the order of class names merged in useSlotProps (#33383) @michaldudak
|
|
353
|
+
- [Base] Change the order of class names merged in useSlotProps (#33383) @michaldudak
|
|
163
354
|
- [ModalUnstyled] Accept callbacks in componentsProps (#33181) @michaldudak
|
|
164
355
|
- [SelectUnstyled] Accept callbacks in componentsProps (#33197) @michaldudak
|
|
165
356
|
- [TabsUnstyled] Accept callbacks in componentsProps (#33284) @michaldudak
|
|
@@ -6812,7 +7003,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
|
|
|
6812
7003
|
|
|
6813
7004
|
While the source code is currently hosted in the [main repository](https://github.com/mui/material-ui), we might move it to the [x repository](https://github.com/mui/mui-x) in the future, depending on what is easier for the commercial date range picker. The date picker will stay open source no matter what.
|
|
6814
7005
|
|
|
6815
|
-
- 📚 Revamp the documentation for [the system](https://mui.com/system/
|
|
7006
|
+
- 📚 Revamp the documentation for [the system](https://mui.com/system/getting-started/overview/). The System contains CSS utilities. The documentation now promotes the use of the `sx` prop. It's ideal for adding one-off styles, e.g. padding, but when pushed to its limits, it can be used to implement quickly a complete page.
|
|
6816
7007
|
- 👩🎨 Upgrade emotion to v11 (#23007) @mnajdova.
|
|
6817
7008
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
6818
7009
|
|
|
@@ -7214,7 +7405,7 @@ Here are some highlights ✨:
|
|
|
7214
7405
|
If you target IE11, you need to use the new bundle (`legacy`). We are treating IE11 as a second class-citizen, which is a continuation of the direction taken in #22873.
|
|
7215
7406
|
|
|
7216
7407
|
- 🚀 Improve the internal benchmark suite (#22923, #23058) @mnajdova.
|
|
7217
|
-
This was a prerequisite step to improve the [system](https://mui.com/system/
|
|
7408
|
+
This was a prerequisite step to improve the [system](https://mui.com/system/getting-started/overview/). We needed to be able to measure performance. After #22945, we have measured that the `Box` component is x3 faster in v5-alpha compared to v4.
|
|
7218
7409
|
- ✏️ A new blog post: [Q3 2020 Update](https://mui.com/blog/2020-q3-update/) (#23055) @oliviertassinari.
|
|
7219
7410
|
- 🐙 Migrate more tests to react-testing-library @deiga, @Morteza-Jenabzadeh, @nicholas-l.
|
|
7220
7411
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
@@ -7555,7 +7746,7 @@ Here are some highlights ✨:
|
|
|
7555
7746
|
|
|
7556
7747
|
The new styling solution saves 2kB gzipped in the bundle compared to JSS, and about 14 kB gzipped if you were already using emotion or styled-components.
|
|
7557
7748
|
|
|
7558
|
-
Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/
|
|
7749
|
+
Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/getting-started/overview/)).
|
|
7559
7750
|
|
|
7560
7751
|
This change has been in our roadmap for more than a year.
|
|
7561
7752
|
We announced it in the [v4 release blog post](https://mui.com/blog/material-ui-v4-is-out/) as a direction v5 would take.
|
|
@@ -8808,7 +8999,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
8808
8999
|
/>
|
|
8809
9000
|
```
|
|
8810
9001
|
|
|
8811
|
-
- [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/
|
|
9002
|
+
- [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
|
|
8812
9003
|
|
|
8813
9004
|
```diff
|
|
8814
9005
|
-import Typography from '@material-ui/core/Typography';
|
package/Card/cardClasses.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface CardClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type CardClassKey = keyof CardClasses;
|
|
6
|
-
export declare function getCardUtilityClass(slot: string): string;
|
|
7
|
-
declare const cardClasses: CardClasses;
|
|
8
|
-
export default cardClasses;
|
|
1
|
+
export interface CardClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type CardClassKey = keyof CardClasses;
|
|
6
|
+
export declare function getCardUtilityClass(slot: string): string;
|
|
7
|
+
declare const cardClasses: CardClasses;
|
|
8
|
+
export default cardClasses;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface CardActionAreaClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the ButtonBase root element if the action area is keyboard focused. */
|
|
5
|
-
focusVisible: string;
|
|
6
|
-
/** Styles applied to the overlay that covers the action area when it is keyboard focused. */
|
|
7
|
-
focusHighlight: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type CardActionAreaClassKey = keyof CardActionAreaClasses;
|
|
10
|
-
export declare function getCardActionAreaUtilityClass(slot: string): string;
|
|
11
|
-
declare const cardActionAreaClasses: CardActionAreaClasses;
|
|
12
|
-
export default cardActionAreaClasses;
|
|
1
|
+
export interface CardActionAreaClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the ButtonBase root element if the action area is keyboard focused. */
|
|
5
|
+
focusVisible: string;
|
|
6
|
+
/** Styles applied to the overlay that covers the action area when it is keyboard focused. */
|
|
7
|
+
focusHighlight: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type CardActionAreaClassKey = keyof CardActionAreaClasses;
|
|
10
|
+
export declare function getCardActionAreaUtilityClass(slot: string): string;
|
|
11
|
+
declare const cardActionAreaClasses: CardActionAreaClasses;
|
|
12
|
+
export default cardActionAreaClasses;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface CardActionsClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `disableSpacing={true}`. */
|
|
5
|
-
spacing: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type CardActionsClassKey = keyof CardActionsClasses;
|
|
8
|
-
export declare function getCardActionsUtilityClass(slot: string): string;
|
|
9
|
-
declare const cardActionsClasses: CardActionsClasses;
|
|
10
|
-
export default cardActionsClasses;
|
|
1
|
+
export interface CardActionsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `disableSpacing={true}`. */
|
|
5
|
+
spacing: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type CardActionsClassKey = keyof CardActionsClasses;
|
|
8
|
+
export declare function getCardActionsUtilityClass(slot: string): string;
|
|
9
|
+
declare const cardActionsClasses: CardActionsClasses;
|
|
10
|
+
export default cardActionsClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface CardContentClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type CardContentClassKey = keyof CardContentClasses;
|
|
6
|
-
export declare function getCardContentUtilityClass(slot: string): string;
|
|
7
|
-
declare const cardContentClasses: CardContentClasses;
|
|
8
|
-
export default cardContentClasses;
|
|
1
|
+
export interface CardContentClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type CardContentClassKey = keyof CardContentClasses;
|
|
6
|
+
export declare function getCardContentUtilityClass(slot: string): string;
|
|
7
|
+
declare const cardContentClasses: CardContentClasses;
|
|
8
|
+
export default cardContentClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface CardHeaderClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the avatar element. */
|
|
5
|
-
avatar: string;
|
|
6
|
-
/** Styles applied to the action element. */
|
|
7
|
-
action: string;
|
|
8
|
-
/** Styles applied to the content wrapper element. */
|
|
9
|
-
content: string;
|
|
10
|
-
/** Styles applied to the title Typography element. */
|
|
11
|
-
title: string;
|
|
12
|
-
/** Styles applied to the subheader Typography element. */
|
|
13
|
-
subheader: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type CardHeaderClassKey = keyof CardHeaderClasses;
|
|
16
|
-
export declare function getCardHeaderUtilityClass(slot: string): string;
|
|
17
|
-
declare const cardHeaderClasses: CardHeaderClasses;
|
|
18
|
-
export default cardHeaderClasses;
|
|
1
|
+
export interface CardHeaderClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the avatar element. */
|
|
5
|
+
avatar: string;
|
|
6
|
+
/** Styles applied to the action element. */
|
|
7
|
+
action: string;
|
|
8
|
+
/** Styles applied to the content wrapper element. */
|
|
9
|
+
content: string;
|
|
10
|
+
/** Styles applied to the title Typography element. */
|
|
11
|
+
title: string;
|
|
12
|
+
/** Styles applied to the subheader Typography element. */
|
|
13
|
+
subheader: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type CardHeaderClassKey = keyof CardHeaderClasses;
|
|
16
|
+
export declare function getCardHeaderUtilityClass(slot: string): string;
|
|
17
|
+
declare const cardHeaderClasses: CardHeaderClasses;
|
|
18
|
+
export default cardHeaderClasses;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface CardMediaClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `component="video, audio, picture, iframe, or img"`. */
|
|
5
|
-
media: string;
|
|
6
|
-
/** Styles applied to the root element if `component="picture or img"`. */
|
|
7
|
-
img: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type CardMediaClassKey = keyof CardMediaClasses;
|
|
10
|
-
export declare function getCardMediaUtilityClass(slot: string): string;
|
|
11
|
-
declare const cardMediaClasses: CardMediaClasses;
|
|
12
|
-
export default cardMediaClasses;
|
|
1
|
+
export interface CardMediaClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `component="video, audio, picture, iframe, or img"`. */
|
|
5
|
+
media: string;
|
|
6
|
+
/** Styles applied to the root element if `component="picture or img"`. */
|
|
7
|
+
img: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type CardMediaClassKey = keyof CardMediaClasses;
|
|
10
|
+
export declare function getCardMediaUtilityClass(slot: string): string;
|
|
11
|
+
declare const cardMediaClasses: CardMediaClasses;
|
|
12
|
+
export default cardMediaClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface CheckboxClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `checked={true}`. */
|
|
5
|
-
checked: string;
|
|
6
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
-
disabled: string;
|
|
8
|
-
/** State class applied to the root element if `indeterminate={true}`. */
|
|
9
|
-
indeterminate: string;
|
|
10
|
-
/** Styles applied to the root element if `color="primary"`. */
|
|
11
|
-
colorPrimary: string;
|
|
12
|
-
/** Styles applied to the root element if `color="secondary"`. */
|
|
13
|
-
colorSecondary: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type CheckboxClassKey = keyof CheckboxClasses;
|
|
16
|
-
export declare function getCheckboxUtilityClass(slot: string): string;
|
|
17
|
-
declare const checkboxClasses: CheckboxClasses;
|
|
18
|
-
export default checkboxClasses;
|
|
1
|
+
export interface CheckboxClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `checked={true}`. */
|
|
5
|
+
checked: string;
|
|
6
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
+
disabled: string;
|
|
8
|
+
/** State class applied to the root element if `indeterminate={true}`. */
|
|
9
|
+
indeterminate: string;
|
|
10
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
11
|
+
colorPrimary: string;
|
|
12
|
+
/** Styles applied to the root element if `color="secondary"`. */
|
|
13
|
+
colorSecondary: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type CheckboxClassKey = keyof CheckboxClasses;
|
|
16
|
+
export declare function getCheckboxUtilityClass(slot: string): string;
|
|
17
|
+
declare const checkboxClasses: CheckboxClasses;
|
|
18
|
+
export default checkboxClasses;
|
package/Chip/Chip.js
CHANGED
|
@@ -32,7 +32,7 @@ const useUtilityClasses = ownerState => {
|
|
|
32
32
|
label: ['label', `label${capitalize(size)}`],
|
|
33
33
|
avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
|
|
34
34
|
icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(color)}`],
|
|
35
|
-
deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `
|
|
35
|
+
deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
|
36
36
|
};
|
|
37
37
|
return composeClasses(slots, getChipUtilityClass, classes);
|
|
38
38
|
};
|
|
@@ -70,8 +70,8 @@ const ChipRoot = styled('div', {
|
|
|
70
70
|
}, {
|
|
71
71
|
[`& .${chipClasses.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]
|
|
72
72
|
}, {
|
|
73
|
-
[`& .${chipClasses.deleteIcon}`]: styles[`
|
|
74
|
-
}, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant],
|
|
73
|
+
[`& .${chipClasses.deleteIcon}`]: styles[`deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
|
74
|
+
}, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], styles[`${variant}${capitalize(color)}`]];
|
|
75
75
|
}
|
|
76
76
|
})(({
|
|
77
77
|
theme,
|
|
@@ -339,7 +339,6 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
339
339
|
};
|
|
340
340
|
|
|
341
341
|
const clickable = clickableProp !== false && onClick ? true : clickableProp;
|
|
342
|
-
const small = size === 'small';
|
|
343
342
|
const component = clickable || onDelete ? ButtonBase : ComponentProp || 'div';
|
|
344
343
|
|
|
345
344
|
const ownerState = _extends({}, props, {
|
|
@@ -362,12 +361,11 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
362
361
|
let deleteIcon = null;
|
|
363
362
|
|
|
364
363
|
if (onDelete) {
|
|
365
|
-
const customClasses = clsx(color !== 'default' && (variant === 'outlined' ? classes[`deleteIconOutlinedColor${capitalize(color)}`] : classes[`deleteIconColor${capitalize(color)}`]), small && classes.deleteIconSmall);
|
|
366
364
|
deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? /*#__PURE__*/React.cloneElement(deleteIconProp, {
|
|
367
|
-
className: clsx(deleteIconProp.props.className, classes.deleteIcon
|
|
365
|
+
className: clsx(deleteIconProp.props.className, classes.deleteIcon),
|
|
368
366
|
onClick: handleDeleteIconClick
|
|
369
367
|
}) : /*#__PURE__*/_jsx(CancelIcon, {
|
|
370
|
-
className: clsx(classes.deleteIcon
|
|
368
|
+
className: clsx(classes.deleteIcon),
|
|
371
369
|
onClick: handleDeleteIconClick
|
|
372
370
|
});
|
|
373
371
|
}
|
package/Chip/chipClasses.d.ts
CHANGED
|
@@ -1,80 +1,88 @@
|
|
|
1
|
-
export interface ChipClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
5
|
-
sizeSmall: string;
|
|
6
|
-
/** Styles applied to the root element if `size="medium"`. */
|
|
7
|
-
sizeMedium: string;
|
|
8
|
-
/** Styles applied to the root element if `color="primary"`. */
|
|
9
|
-
colorPrimary: string;
|
|
10
|
-
/** Styles applied to the root element if `color="secondary"`. */
|
|
11
|
-
colorSecondary: string;
|
|
12
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
13
|
-
disabled: string;
|
|
14
|
-
/** Styles applied to the root element if `onClick` is defined or `clickable={true}`. */
|
|
15
|
-
clickable: string;
|
|
16
|
-
/** Styles applied to the root element if `onClick` and `color="primary"` is defined or `clickable={true}`. */
|
|
17
|
-
clickableColorPrimary: string;
|
|
18
|
-
/** Styles applied to the root element if `onClick` and `color="secondary"` is defined or `clickable={true}`. */
|
|
19
|
-
clickableColorSecondary: string;
|
|
20
|
-
/** Styles applied to the root element if `onDelete` is defined. */
|
|
21
|
-
deletable: string;
|
|
22
|
-
/** Styles applied to the root element if `onDelete` and `color="primary"` is defined. */
|
|
23
|
-
deletableColorPrimary: string;
|
|
24
|
-
/** Styles applied to the root element if `onDelete` and `color="secondary"` is defined. */
|
|
25
|
-
deletableColorSecondary: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
27
|
-
outlined: string;
|
|
28
|
-
/** Styles applied to the root element if `variant="filled"`. */
|
|
29
|
-
filled: string;
|
|
30
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
|
|
31
|
-
outlinedPrimary: string;
|
|
32
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
|
|
33
|
-
outlinedSecondary: string;
|
|
34
|
-
/** Styles applied to the
|
|
35
|
-
|
|
36
|
-
/** Styles applied to the
|
|
37
|
-
|
|
38
|
-
/** Styles applied to the avatar element
|
|
39
|
-
|
|
40
|
-
/** Styles applied to the avatar element if `
|
|
41
|
-
|
|
42
|
-
/** Styles applied to the avatar element if `
|
|
43
|
-
|
|
44
|
-
/** Styles applied to the
|
|
45
|
-
|
|
46
|
-
/** Styles applied to the
|
|
47
|
-
|
|
48
|
-
/** Styles applied to the icon element
|
|
49
|
-
|
|
50
|
-
/** Styles applied to the icon element if `
|
|
51
|
-
|
|
52
|
-
/** Styles applied to the icon element if `
|
|
53
|
-
|
|
54
|
-
/** Styles applied to the
|
|
55
|
-
|
|
56
|
-
/** Styles applied to the
|
|
57
|
-
|
|
58
|
-
/** Styles applied to the label `span` element
|
|
59
|
-
|
|
60
|
-
/** Styles applied to the
|
|
61
|
-
|
|
62
|
-
/** Styles applied to the
|
|
63
|
-
|
|
64
|
-
/** Styles applied to the deleteIcon element
|
|
65
|
-
|
|
66
|
-
/** Styles applied to the deleteIcon element if `
|
|
67
|
-
|
|
68
|
-
/** Styles applied to the deleteIcon element if `
|
|
69
|
-
|
|
70
|
-
/** Styles applied to the deleteIcon element if `color="primary"` and `variant="
|
|
71
|
-
|
|
72
|
-
/** Styles applied to the deleteIcon element if `color="secondary"` and `variant="
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
export interface ChipClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
5
|
+
sizeSmall: string;
|
|
6
|
+
/** Styles applied to the root element if `size="medium"`. */
|
|
7
|
+
sizeMedium: string;
|
|
8
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
9
|
+
colorPrimary: string;
|
|
10
|
+
/** Styles applied to the root element if `color="secondary"`. */
|
|
11
|
+
colorSecondary: string;
|
|
12
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
13
|
+
disabled: string;
|
|
14
|
+
/** Styles applied to the root element if `onClick` is defined or `clickable={true}`. */
|
|
15
|
+
clickable: string;
|
|
16
|
+
/** Styles applied to the root element if `onClick` and `color="primary"` is defined or `clickable={true}`. */
|
|
17
|
+
clickableColorPrimary: string;
|
|
18
|
+
/** Styles applied to the root element if `onClick` and `color="secondary"` is defined or `clickable={true}`. */
|
|
19
|
+
clickableColorSecondary: string;
|
|
20
|
+
/** Styles applied to the root element if `onDelete` is defined. */
|
|
21
|
+
deletable: string;
|
|
22
|
+
/** Styles applied to the root element if `onDelete` and `color="primary"` is defined. */
|
|
23
|
+
deletableColorPrimary: string;
|
|
24
|
+
/** Styles applied to the root element if `onDelete` and `color="secondary"` is defined. */
|
|
25
|
+
deletableColorSecondary: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
27
|
+
outlined: string;
|
|
28
|
+
/** Styles applied to the root element if `variant="filled"`. */
|
|
29
|
+
filled: string;
|
|
30
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
|
|
31
|
+
outlinedPrimary: string;
|
|
32
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
|
|
33
|
+
outlinedSecondary: string;
|
|
34
|
+
/** Styles applied to the root element if `variant="filled"` and `color="primary"`. */
|
|
35
|
+
filledPrimary: string;
|
|
36
|
+
/** Styles applied to the root element if `variant="filled"` and `color="secondary"`. */
|
|
37
|
+
filledSecondary: string;
|
|
38
|
+
/** Styles applied to the avatar element. */
|
|
39
|
+
avatar: string;
|
|
40
|
+
/** Styles applied to the avatar element if `size="small"`. */
|
|
41
|
+
avatarSmall: string;
|
|
42
|
+
/** Styles applied to the avatar element if `size="medium"`. */
|
|
43
|
+
avatarMedium: string;
|
|
44
|
+
/** Styles applied to the avatar element if `color="primary"`. */
|
|
45
|
+
avatarColorPrimary: string;
|
|
46
|
+
/** Styles applied to the avatar element if `color="secondary"`. */
|
|
47
|
+
avatarColorSecondary: string;
|
|
48
|
+
/** Styles applied to the icon element. */
|
|
49
|
+
icon: string;
|
|
50
|
+
/** Styles applied to the icon element if `size="small"`. */
|
|
51
|
+
iconSmall: string;
|
|
52
|
+
/** Styles applied to the icon element if `size="medium"`. */
|
|
53
|
+
iconMedium: string;
|
|
54
|
+
/** Styles applied to the icon element if `color="primary"`. */
|
|
55
|
+
iconColorPrimary: string;
|
|
56
|
+
/** Styles applied to the icon element if `color="secondary"`. */
|
|
57
|
+
iconColorSecondary: string;
|
|
58
|
+
/** Styles applied to the label `span` element. */
|
|
59
|
+
label: string;
|
|
60
|
+
/** Styles applied to the label `span` element if `size="small"`. */
|
|
61
|
+
labelSmall: string;
|
|
62
|
+
/** Styles applied to the label `span` element if `size="medium"`. */
|
|
63
|
+
labelMedium: string;
|
|
64
|
+
/** Styles applied to the deleteIcon element. */
|
|
65
|
+
deleteIcon: string;
|
|
66
|
+
/** Styles applied to the deleteIcon element if `size="small"`. */
|
|
67
|
+
deleteIconSmall: string;
|
|
68
|
+
/** Styles applied to the deleteIcon element if `size="medium"`. */
|
|
69
|
+
deleteIconMedium: string;
|
|
70
|
+
/** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`. */
|
|
71
|
+
deleteIconColorPrimary: string;
|
|
72
|
+
/** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`. */
|
|
73
|
+
deleteIconColorSecondary: string;
|
|
74
|
+
/** Styles applied to the deleteIcon element if `color="primary"` and `variant="outlined"`. */
|
|
75
|
+
deleteIconOutlinedColorPrimary: string;
|
|
76
|
+
/** Styles applied to the deleteIcon element if `color="secondary"` and `variant="outlined"`. */
|
|
77
|
+
deleteIconOutlinedColorSecondary: string;
|
|
78
|
+
/** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`. */
|
|
79
|
+
deleteIconFilledColorPrimary: string;
|
|
80
|
+
/** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`. */
|
|
81
|
+
deleteIconFilledColorSecondary: string;
|
|
82
|
+
/** State class applied to the root element if keyboard focused. */
|
|
83
|
+
focusVisible: string;
|
|
84
|
+
}
|
|
85
|
+
export declare type ChipClassKey = keyof ChipClasses;
|
|
86
|
+
export declare function getChipUtilityClass(slot: string): string;
|
|
87
|
+
declare const chipClasses: ChipClasses;
|
|
88
|
+
export default chipClasses;
|