@mui/material 5.5.0 → 5.5.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.
Files changed (191) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/BottomNavigation/BottomNavigation.js +0 -0
  12. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  13. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  14. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  15. package/Button/buttonClasses.d.ts +76 -76
  16. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  17. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  18. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  19. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  20. package/CHANGELOG.md +65 -0
  21. package/Card/cardClasses.d.ts +8 -8
  22. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  23. package/CardActions/cardActionsClasses.d.ts +10 -10
  24. package/CardContent/cardContentClasses.d.ts +8 -8
  25. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  26. package/CardMedia/cardMediaClasses.d.ts +12 -12
  27. package/Checkbox/checkboxClasses.d.ts +18 -18
  28. package/Chip/chipClasses.d.ts +80 -80
  29. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  30. package/ClickAwayListener/index.d.ts +2 -2
  31. package/Collapse/collapseClasses.d.ts +18 -18
  32. package/Container/containerClasses.d.ts +22 -22
  33. package/Dialog/DialogContext.d.ts +6 -6
  34. package/Dialog/dialogClasses.d.ts +36 -36
  35. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  36. package/DialogContent/dialogContentClasses.d.ts +10 -10
  37. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  38. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  39. package/Divider/dividerClasses.d.ts +34 -34
  40. package/Drawer/drawerClasses.d.ts +30 -30
  41. package/Fab/Fab.js +1 -0
  42. package/Fab/fabClasses.d.ts +26 -26
  43. package/FilledInput/FilledInput.js +1 -1
  44. package/FilledInput/filledInputClasses.d.ts +40 -40
  45. package/FormControl/formControlClasses.d.ts +14 -14
  46. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  47. package/FormGroup/formGroupClasses.d.ts +12 -12
  48. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  49. package/FormLabel/formLabelClasses.d.ts +22 -22
  50. package/Grid/Grid.js +10 -14
  51. package/Grid/gridClasses.d.ts +48 -48
  52. package/Icon/iconClasses.d.ts +24 -24
  53. package/IconButton/iconButtonClasses.d.ts +26 -26
  54. package/ImageList/imageListClasses.d.ts +16 -16
  55. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  56. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  57. package/Input/Input.js +1 -1
  58. package/Input/inputClasses.d.ts +34 -34
  59. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  60. package/InputBase/InputBase.d.ts +1 -1
  61. package/InputBase/InputBase.js +1 -1
  62. package/InputBase/inputBaseClasses.d.ts +44 -44
  63. package/InputLabel/inputLabelClasses.d.ts +32 -32
  64. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  65. package/Link/linkClasses.d.ts +18 -18
  66. package/List/listClasses.d.ts +14 -14
  67. package/ListItem/listItemClasses.d.ts +30 -30
  68. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  69. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  70. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  71. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  72. package/ListItemText/listItemTextClasses.d.ts +18 -18
  73. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  74. package/Menu/menuClasses.d.ts +12 -12
  75. package/MenuItem/menuItemClasses.d.ts +20 -20
  76. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  77. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  78. package/OutlinedInput/NotchedOutline.js +3 -1
  79. package/OutlinedInput/OutlinedInput.js +1 -1
  80. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  81. package/Pagination/paginationClasses.d.ts +14 -14
  82. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  83. package/Paper/paperClasses.d.ts +39 -39
  84. package/Popover/popoverClasses.d.ts +10 -10
  85. package/Popper/Popper.d.ts +17 -17
  86. package/Popper/Popper.js +6 -1
  87. package/README.md +1 -0
  88. package/Radio/radioClasses.d.ts +16 -16
  89. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  90. package/RadioGroup/useRadioGroup.d.ts +4 -4
  91. package/Rating/ratingClasses.d.ts +40 -40
  92. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  93. package/Select/selectClasses.d.ts +30 -30
  94. package/Skeleton/skeletonClasses.d.ts +24 -24
  95. package/Snackbar/Snackbar.js +1 -1
  96. package/Snackbar/snackbarClasses.d.ts +20 -20
  97. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  98. package/SpeedDial/speedDialClasses.d.ts +22 -22
  99. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  100. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  101. package/Step/StepContext.d.ts +20 -20
  102. package/Step/stepClasses.d.ts +16 -16
  103. package/StepButton/stepButtonClasses.d.ts +14 -14
  104. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  105. package/StepContent/stepContentClasses.d.ts +12 -12
  106. package/StepIcon/stepIconClasses.d.ts +16 -16
  107. package/StepLabel/stepLabelClasses.d.ts +28 -28
  108. package/Stepper/stepperClasses.d.ts +14 -14
  109. package/SvgIcon/svgIconClasses.d.ts +24 -24
  110. package/Switch/switchClasses.d.ts +32 -32
  111. package/Tab/tabClasses.d.ts +26 -26
  112. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  113. package/Table/tableClasses.d.ts +10 -10
  114. package/TableBody/tableBodyClasses.d.ts +8 -8
  115. package/TableCell/tableCellClasses.d.ts +32 -32
  116. package/TableContainer/tableContainerClasses.d.ts +8 -8
  117. package/TableFooter/tableFooterClasses.d.ts +8 -8
  118. package/TableHead/tableHeadClasses.d.ts +8 -8
  119. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  120. package/TableRow/tableRowClasses.d.ts +16 -16
  121. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  122. package/Tabs/tabsClasses.d.ts +32 -32
  123. package/TextField/textFieldClasses.d.ts +8 -8
  124. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  125. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  126. package/Toolbar/toolbarClasses.d.ts +14 -14
  127. package/Tooltip/tooltipClasses.d.ts +30 -30
  128. package/Typography/typographyClasses.d.ts +50 -50
  129. package/className/index.d.ts +8 -8
  130. package/darkScrollbar/index.d.ts +28 -28
  131. package/index.js +1 -1
  132. package/internal/switchBaseClasses.d.ts +12 -12
  133. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  134. package/legacy/Fab/Fab.js +1 -0
  135. package/legacy/FilledInput/FilledInput.js +1 -1
  136. package/legacy/Grid/Grid.js +11 -17
  137. package/legacy/Input/Input.js +1 -1
  138. package/legacy/InputBase/InputBase.js +1 -1
  139. package/legacy/OutlinedInput/NotchedOutline.js +3 -1
  140. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  141. package/legacy/Popper/Popper.js +6 -1
  142. package/legacy/Snackbar/Snackbar.js +1 -1
  143. package/legacy/index.js +1 -1
  144. package/legacy/locale/index.js +149 -64
  145. package/legacy/styles/zIndex.js +1 -0
  146. package/locale/index.d.ts +71 -70
  147. package/locale/index.js +84 -0
  148. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  149. package/modern/Fab/Fab.js +1 -0
  150. package/modern/FilledInput/FilledInput.js +1 -1
  151. package/modern/Grid/Grid.js +10 -14
  152. package/modern/Input/Input.js +1 -1
  153. package/modern/InputBase/InputBase.js +1 -1
  154. package/modern/OutlinedInput/NotchedOutline.js +3 -1
  155. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  156. package/modern/Popper/Popper.js +6 -1
  157. package/modern/Snackbar/Snackbar.js +1 -1
  158. package/modern/index.js +1 -1
  159. package/modern/locale/index.js +84 -0
  160. package/modern/styles/zIndex.js +1 -0
  161. package/node/BottomNavigation/BottomNavigation.js +0 -0
  162. package/node/Fab/Fab.js +1 -0
  163. package/node/FilledInput/FilledInput.js +1 -1
  164. package/node/Grid/Grid.js +10 -14
  165. package/node/Input/Input.js +1 -1
  166. package/node/InputBase/InputBase.js +1 -1
  167. package/node/OutlinedInput/NotchedOutline.js +3 -1
  168. package/node/OutlinedInput/OutlinedInput.js +1 -1
  169. package/node/Popper/Popper.js +7 -1
  170. package/node/Snackbar/Snackbar.js +1 -1
  171. package/node/index.js +1 -1
  172. package/node/locale/index.js +87 -2
  173. package/node/styles/zIndex.js +1 -0
  174. package/package.json +4 -4
  175. package/styles/components.d.ts +3 -0
  176. package/styles/props.d.ts +2 -0
  177. package/styles/zIndex.d.ts +1 -0
  178. package/styles/zIndex.js +1 -0
  179. package/transitions/index.d.ts +1 -1
  180. package/transitions/transition.d.ts +13 -13
  181. package/transitions/utils.d.ts +23 -23
  182. package/umd/material-ui.development.js +39 -30
  183. package/umd/material-ui.production.min.js +6 -6
  184. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  185. package/usePagination/usePagination.d.ts +1 -1
  186. package/useTouchRipple/index.d.ts +1 -1
  187. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  188. package/utils/getScrollbarSize.d.ts +2 -2
  189. package/utils/ownerDocument.d.ts +2 -2
  190. package/utils/ownerWindow.d.ts +2 -2
  191. package/utils/setRef.d.ts +2 -2
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.srRS = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.nbNO = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hrHR = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.daDK = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arEG = exports.amET = void 0;
6
+ exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.srRS = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.nbNO = exports.mkMK = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hrHR = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.daDK = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arEG = exports.amET = void 0;
7
7
  const amET = {
8
8
  components: {
9
9
  MuiBreadcrumbs: {
@@ -2315,8 +2315,93 @@ const kzKZ = {
2315
2315
  }
2316
2316
  }
2317
2317
  }
2318
- };
2318
+ }; // Macedonian - Македонски
2319
+
2319
2320
  exports.kzKZ = kzKZ;
2321
+ const mkMK = {
2322
+ components: {
2323
+ MuiBreadcrumbs: {
2324
+ defaultProps: {
2325
+ expandText: 'Прикажи патека'
2326
+ }
2327
+ },
2328
+ MuiTablePagination: {
2329
+ defaultProps: {
2330
+ getItemAriaLabel: type => {
2331
+ if (type === 'first') {
2332
+ return 'Оди на прва страница';
2333
+ }
2334
+
2335
+ if (type === 'last') {
2336
+ return 'Оди на последна страница';
2337
+ }
2338
+
2339
+ if (type === 'next') {
2340
+ return 'Оди на следна страница';
2341
+ } // if (type === 'previous') {
2342
+
2343
+
2344
+ return 'Оди на предходна страница';
2345
+ },
2346
+ labelRowsPerPage: 'Редови по страница:',
2347
+ labelDisplayedRows: ({
2348
+ from,
2349
+ to,
2350
+ count
2351
+ }) => `${from}–${to} од ${count !== -1 ? count : `повеќе од ${to}`}`
2352
+ }
2353
+ },
2354
+ MuiRating: {
2355
+ defaultProps: {
2356
+ getLabelText: value => {
2357
+ const lastDigit = value % 10;
2358
+ return `${value} Ѕвезд${lastDigit === 1 ? 'а' : 'и'}`;
2359
+ },
2360
+ emptyLabelText: 'Празно'
2361
+ }
2362
+ },
2363
+ MuiAutocomplete: {
2364
+ defaultProps: {
2365
+ clearText: 'Избриши',
2366
+ closeText: 'Затвори',
2367
+ loadingText: 'Се презема',
2368
+ noOptionsText: 'Нема опција',
2369
+ openText: 'Отвори'
2370
+ }
2371
+ },
2372
+ MuiAlert: {
2373
+ defaultProps: {
2374
+ closeText: 'Затвори'
2375
+ }
2376
+ },
2377
+ MuiPagination: {
2378
+ defaultProps: {
2379
+ 'aria-label': 'Навигација низ страници',
2380
+ getItemAriaLabel: (type, page, selected) => {
2381
+ if (type === 'page') {
2382
+ return `${selected ? '' : 'Оди на '}страница ${page}`;
2383
+ }
2384
+
2385
+ if (type === 'first') {
2386
+ return 'Оди на прва страница';
2387
+ }
2388
+
2389
+ if (type === 'last') {
2390
+ return 'Оди на последна страница';
2391
+ }
2392
+
2393
+ if (type === 'next') {
2394
+ return 'Оди на следна страница';
2395
+ } // if (type === 'previous') {
2396
+
2397
+
2398
+ return 'Оди на предходна страница';
2399
+ }
2400
+ }
2401
+ }
2402
+ }
2403
+ };
2404
+ exports.mkMK = mkMK;
2320
2405
  const nbNO = {
2321
2406
  components: {
2322
2407
  MuiBreadcrumbs: {
@@ -8,6 +8,7 @@ exports.default = void 0;
8
8
  // like global values in the browser.
9
9
  const zIndex = {
10
10
  mobileStepper: 1000,
11
+ fab: 1050,
11
12
  speedDial: 1050,
12
13
  appBar: 1100,
13
14
  drawer: 1200,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.",
@@ -46,9 +46,9 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.17.2",
49
- "@mui/base": "5.0.0-alpha.71",
50
- "@mui/system": "^5.5.0",
51
- "@mui/types": "^7.1.2",
49
+ "@mui/base": "5.0.0-alpha.72",
50
+ "@mui/system": "^5.5.1",
51
+ "@mui/types": "^7.1.3",
52
52
  "@mui/utils": "^5.4.4",
53
53
  "@types/react-transition-group": "^4.4.4",
54
54
  "clsx": "^1.1.1",
@@ -368,6 +368,9 @@ export interface Components<Theme = unknown> {
368
368
  styleOverrides?: ComponentsOverrides<Theme>['MuiPaper'];
369
369
  variants?: ComponentsVariants['MuiPaper'];
370
370
  };
371
+ MuiPopper?: {
372
+ defaultProps?: ComponentsProps['MuiPopper'];
373
+ };
371
374
  MuiPopover?: {
372
375
  defaultProps?: ComponentsProps['MuiPopover'];
373
376
  styleOverrides?: ComponentsOverrides<Theme>['MuiPopover'];
package/styles/props.d.ts CHANGED
@@ -115,6 +115,7 @@ import { ToolbarProps } from '../Toolbar';
115
115
  import { TooltipProps } from '../Tooltip';
116
116
  import { TouchRippleProps } from '../ButtonBase/TouchRipple';
117
117
  import { TypographyProps } from '../Typography';
118
+ import { PopperProps } from '../Popper';
118
119
 
119
120
  export type ComponentsProps = {
120
121
  [Name in keyof ComponentsPropsList]?: Partial<ComponentsPropsList[Name]>;
@@ -195,6 +196,7 @@ export interface ComponentsPropsList {
195
196
  MuiPagination: PaginationProps;
196
197
  MuiPaginationItem: PaginationItemProps;
197
198
  MuiPaper: PaperProps;
199
+ MuiPopper: PopperProps;
198
200
  MuiPopover: PopoverProps;
199
201
  MuiRadio: RadioProps;
200
202
  MuiRadioGroup: RadioGroupProps;
@@ -6,6 +6,7 @@ export interface ZIndex {
6
6
  modal: number;
7
7
  snackbar: number;
8
8
  tooltip: number;
9
+ fab: number;
9
10
  }
10
11
 
11
12
  export type ZIndexOptions = Partial<ZIndex>;
package/styles/zIndex.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // like global values in the browser.
3
3
  const zIndex = {
4
4
  mobileStepper: 1000,
5
+ fab: 1050,
5
6
  speedDial: 1050,
6
7
  appBar: 1100,
7
8
  drawer: 1200,
@@ -1 +1 @@
1
- export * from './transition';
1
+ export * from './transition';
@@ -1,13 +1,13 @@
1
- import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
- import * as React from 'react';
3
- export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
- export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
- export interface EasingProps {
6
- easing: string | {
7
- enter?: string;
8
- exit?: string;
9
- };
10
- }
11
- export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
- export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
- }
1
+ import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
+ import * as React from 'react';
3
+ export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
+ export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
+ export interface EasingProps {
6
+ easing: string | {
7
+ enter?: string;
8
+ exit?: string;
9
+ };
10
+ }
11
+ export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
+ export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
+ }
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.5.0
1
+ /** @license MUI v5.5.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -2042,7 +2042,7 @@
2042
2042
 
2043
2043
  var pkg = {
2044
2044
  name: "@emotion/react",
2045
- version: "11.8.1",
2045
+ version: "11.8.2",
2046
2046
  main: "dist/emotion-react.cjs.js",
2047
2047
  module: "dist/emotion-react.esm.js",
2048
2048
  browser: {
@@ -2072,7 +2072,6 @@
2072
2072
  "@emotion/babel-plugin": "^11.7.1",
2073
2073
  "@emotion/cache": "^11.7.1",
2074
2074
  "@emotion/serialize": "^1.0.2",
2075
- "@emotion/sheet": "^1.1.0",
2076
2075
  "@emotion/utils": "^1.1.0",
2077
2076
  "@emotion/weak-memoize": "^0.2.5",
2078
2077
  "hoist-non-react-statics": "^3.3.1"
@@ -2096,10 +2095,11 @@
2096
2095
  "@emotion/server": "11.4.0",
2097
2096
  "@emotion/styled": "11.8.1",
2098
2097
  "@types/react": "^16.9.11",
2099
- dtslint: "^0.3.0",
2098
+ dtslint: "^4.2.1",
2100
2099
  "html-tag-names": "^1.1.2",
2101
2100
  react: "16.14.0",
2102
- "svg-tag-names": "^1.1.1"
2101
+ "svg-tag-names": "^1.1.1",
2102
+ typescript: "^4.5.5"
2103
2103
  },
2104
2104
  repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
2105
2105
  publishConfig: {
@@ -2169,8 +2169,9 @@
2169
2169
 
2170
2170
  var sheetRef = React.useRef();
2171
2171
  useInsertionEffect$1(function () {
2172
- var key = cache.key + "-global";
2173
- var sheet = new StyleSheet({
2172
+ var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
2173
+
2174
+ var sheet = new cache.sheet.constructor({
2174
2175
  key: key,
2175
2176
  nonce: cache.sheet.nonce,
2176
2177
  container: cache.sheet.container,
@@ -9489,6 +9490,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9489
9490
 
9490
9491
  var currentNode = getParentNode(element);
9491
9492
 
9493
+ if (isShadowRoot(currentNode)) {
9494
+ currentNode = currentNode.host;
9495
+ }
9496
+
9492
9497
  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
9493
9498
  var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
9494
9499
  // create a containing block.
@@ -9721,7 +9726,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9721
9726
 
9722
9727
  if (placement === top || (placement === left || placement === right) && variation === end) {
9723
9728
  sideY = bottom;
9724
- var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
9729
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
9725
9730
  offsetParent[heightProp];
9726
9731
  y -= offsetY - popperRect.height;
9727
9732
  y *= gpuAcceleration ? 1 : -1;
@@ -9729,7 +9734,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9729
9734
 
9730
9735
  if (placement === left || (placement === top || placement === bottom) && variation === end) {
9731
9736
  sideX = right;
9732
- var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
9737
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
9733
9738
  offsetParent[widthProp];
9734
9739
  x -= offsetX - popperRect.width;
9735
9740
  x *= gpuAcceleration ? 1 : -1;
@@ -14589,6 +14594,7 @@ const theme2 = createTheme({ palette: {
14589
14594
  // like global values in the browser.
14590
14595
  const zIndex = {
14591
14596
  mobileStepper: 1000,
14597
+ fab: 1050,
14592
14598
  speedDial: 1050,
14593
14599
  appBar: 1100,
14594
14600
  drawer: 1200,
@@ -19323,8 +19329,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19323
19329
  *
19324
19330
  * - [Popper API](https://mui.com/api/popper/)
19325
19331
  */
19326
- const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(props, ref) {
19332
+ const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
19327
19333
  const theme = useTheme$2();
19334
+ const props = useThemeProps({
19335
+ props: inProps,
19336
+ name: 'MuiPopper'
19337
+ });
19328
19338
  return /*#__PURE__*/jsxRuntime_1(PopperUnstyled$1, _extends({
19329
19339
  direction: theme == null ? void 0 : theme.direction
19330
19340
  }, props, {
@@ -20814,7 +20824,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20814
20824
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
20815
20825
 
20816
20826
  /**
20817
- * If `true`, a `textarea` element is rendered.
20827
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
20818
20828
  * @default false
20819
20829
  */
20820
20830
  multiline: PropTypes.bool,
@@ -28356,6 +28366,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28356
28366
  minWidth: 0,
28357
28367
  width: 56,
28358
28368
  height: 56,
28369
+ zIndex: theme.zIndex.fab,
28359
28370
  boxShadow: theme.shadows[6],
28360
28371
  '&:active': {
28361
28372
  boxShadow: theme.shadows[12]
@@ -28881,7 +28892,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28881
28892
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
28882
28893
 
28883
28894
  /**
28884
- * If `true`, a `textarea` element is rendered.
28895
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
28885
28896
  * @default false
28886
28897
  */
28887
28898
  multiline: PropTypes.bool,
@@ -30270,10 +30281,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30270
30281
 
30271
30282
  const rowSpacing = rowSpacingProp || spacing;
30272
30283
  const columnSpacing = columnSpacingProp || spacing;
30273
- const columnsContext = React__namespace.useContext(GridContext$1); // setting prop before context to accomodate nesting
30274
- // colums set with default breakpoint unit of 12
30284
+ const columnsContext = React__namespace.useContext(GridContext$1); // columns set with default breakpoint unit of 12
30275
30285
 
30276
- const columns = columnsProp || columnsContext || 12;
30286
+ const columns = container ? columnsProp || 12 : columnsContext;
30277
30287
 
30278
30288
  const ownerState = _extends({}, props, {
30279
30289
  columns,
@@ -30292,18 +30302,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30292
30302
  });
30293
30303
 
30294
30304
  const classes = useUtilityClasses$_(ownerState);
30295
-
30296
- const wrapChild = element => columns !== 12 ? /*#__PURE__*/jsxRuntime_1(GridContext$1.Provider, {
30305
+ return /*#__PURE__*/jsxRuntime_1(GridContext$1.Provider, {
30297
30306
  value: columns,
30298
- children: element
30299
- }) : element;
30300
-
30301
- return wrapChild( /*#__PURE__*/jsxRuntime_1(GridRoot, _extends({
30302
- ownerState: ownerState,
30303
- className: clsx(classes.root, className),
30304
- as: component,
30305
- ref: ref
30306
- }, other)));
30307
+ children: /*#__PURE__*/jsxRuntime_1(GridRoot, _extends({
30308
+ ownerState: ownerState,
30309
+ className: clsx(classes.root, className),
30310
+ as: component,
30311
+ ref: ref
30312
+ }, other))
30313
+ });
30307
30314
  });
30308
30315
  Grid.propTypes
30309
30316
  /* remove-proptypes */
@@ -32482,7 +32489,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32482
32489
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
32483
32490
 
32484
32491
  /**
32485
- * If `true`, a `textarea` element is rendered.
32492
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
32486
32493
  * @default false
32487
32494
  */
32488
32495
  multiline: PropTypes.bool,
@@ -36773,7 +36780,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36773
36780
  '& > span': {
36774
36781
  paddingLeft: 5,
36775
36782
  paddingRight: 5,
36776
- display: 'inline-block'
36783
+ display: 'inline-block',
36784
+ opacity: 0,
36785
+ visibility: 'visible'
36777
36786
  }
36778
36787
  }, ownerState.notched && {
36779
36788
  maxWidth: '100%',
@@ -37109,7 +37118,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37109
37118
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
37110
37119
 
37111
37120
  /**
37112
- * If `true`, a `textarea` element is rendered.
37121
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
37113
37122
  * @default false
37114
37123
  */
37115
37124
  multiline: PropTypes.bool,
@@ -41543,7 +41552,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41543
41552
  onMouseLeave: handleMouseLeave,
41544
41553
  ownerState: ownerState,
41545
41554
  ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
41546
- // See https://github.com/mui-org/material-ui/issues/29080
41555
+ // See https://github.com/mui/material-ui/issues/29080
41547
41556
  ,
41548
41557
  role: "presentation"
41549
41558
  }, other, {