@mui/material 5.10.14 → 5.10.16

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 (171) hide show
  1. package/Accordion/accordionClasses.d.ts +1 -1
  2. package/AccordionActions/accordionActionsClasses.d.ts +1 -1
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +1 -1
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
  5. package/Alert/alertClasses.d.ts +1 -1
  6. package/AlertTitle/alertTitleClasses.d.ts +1 -1
  7. package/AppBar/appBarClasses.d.ts +1 -1
  8. package/Autocomplete/Autocomplete.js +1 -0
  9. package/Autocomplete/autocompleteClasses.d.ts +1 -1
  10. package/Avatar/avatarClasses.d.ts +1 -1
  11. package/AvatarGroup/avatarGroupClasses.d.ts +1 -1
  12. package/Backdrop/backdropClasses.d.ts +1 -1
  13. package/Badge/badgeClasses.d.ts +1 -1
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +1 -1
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +1 -1
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +1 -1
  17. package/Button/buttonClasses.d.ts +1 -1
  18. package/ButtonBase/buttonBaseClasses.d.ts +1 -1
  19. package/ButtonBase/touchRippleClasses.d.ts +1 -1
  20. package/ButtonGroup/buttonGroupClasses.d.ts +1 -1
  21. package/CHANGELOG.md +108 -0
  22. package/Card/cardClasses.d.ts +1 -1
  23. package/CardActionArea/cardActionAreaClasses.d.ts +1 -1
  24. package/CardActions/cardActionsClasses.d.ts +1 -1
  25. package/CardContent/cardContentClasses.d.ts +1 -1
  26. package/CardHeader/cardHeaderClasses.d.ts +1 -1
  27. package/CardMedia/cardMediaClasses.d.ts +1 -1
  28. package/Checkbox/checkboxClasses.d.ts +1 -1
  29. package/Chip/Chip.d.ts +10 -0
  30. package/Chip/Chip.js +15 -2
  31. package/Chip/chipClasses.d.ts +1 -1
  32. package/CircularProgress/circularProgressClasses.d.ts +1 -1
  33. package/Collapse/collapseClasses.d.ts +1 -1
  34. package/Dialog/dialogClasses.d.ts +1 -1
  35. package/DialogActions/dialogActionsClasses.d.ts +1 -1
  36. package/DialogContent/dialogContentClasses.d.ts +1 -1
  37. package/DialogContentText/dialogContentTextClasses.d.ts +1 -1
  38. package/DialogTitle/dialogTitleClasses.d.ts +1 -1
  39. package/Divider/dividerClasses.d.ts +1 -1
  40. package/Drawer/drawerClasses.d.ts +1 -1
  41. package/Fab/fabClasses.d.ts +1 -1
  42. package/FilledInput/filledInputClasses.d.ts +1 -1
  43. package/FormControl/FormControlContext.d.ts +17 -0
  44. package/FormControl/FormControlContext.js +1 -1
  45. package/FormControl/formControlClasses.d.ts +1 -1
  46. package/FormControl/index.d.ts +3 -1
  47. package/FormControl/useFormControl.d.ts +2 -25
  48. package/FormControlLabel/formControlLabelClasses.d.ts +1 -1
  49. package/FormGroup/formGroupClasses.d.ts +1 -1
  50. package/FormHelperText/formHelperTextClasses.d.ts +1 -1
  51. package/FormLabel/formLabelClasses.d.ts +1 -1
  52. package/Grid/gridClasses.d.ts +1 -1
  53. package/Icon/iconClasses.d.ts +1 -1
  54. package/IconButton/iconButtonClasses.d.ts +9 -1
  55. package/IconButton/iconButtonClasses.js +1 -1
  56. package/ImageList/imageListClasses.d.ts +1 -1
  57. package/ImageListItem/imageListItemClasses.d.ts +1 -1
  58. package/ImageListItemBar/imageListItemBarClasses.d.ts +1 -1
  59. package/Input/inputClasses.d.ts +1 -1
  60. package/InputAdornment/inputAdornmentClasses.d.ts +1 -1
  61. package/InputBase/inputBaseClasses.d.ts +1 -1
  62. package/InputLabel/inputLabelClasses.d.ts +1 -1
  63. package/LinearProgress/linearProgressClasses.d.ts +1 -1
  64. package/Link/linkClasses.d.ts +1 -1
  65. package/List/listClasses.d.ts +1 -1
  66. package/ListItem/listItemClasses.d.ts +1 -1
  67. package/ListItemAvatar/listItemAvatarClasses.d.ts +1 -1
  68. package/ListItemButton/listItemButtonClasses.d.ts +1 -1
  69. package/ListItemIcon/listItemIconClasses.d.ts +1 -1
  70. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +1 -1
  71. package/ListItemText/listItemTextClasses.d.ts +1 -1
  72. package/ListSubheader/listSubheaderClasses.d.ts +1 -1
  73. package/Menu/menuClasses.d.ts +1 -1
  74. package/MenuItem/menuItemClasses.d.ts +1 -1
  75. package/MobileStepper/mobileStepperClasses.d.ts +1 -1
  76. package/NativeSelect/nativeSelectClasses.d.ts +1 -1
  77. package/OutlinedInput/outlinedInputClasses.d.ts +1 -1
  78. package/Pagination/paginationClasses.d.ts +1 -1
  79. package/PaginationItem/paginationItemClasses.d.ts +1 -1
  80. package/Paper/Paper.js +3 -13
  81. package/Paper/paperClasses.d.ts +1 -1
  82. package/Popover/popoverClasses.d.ts +1 -1
  83. package/Popper/Popper.d.ts +2 -2
  84. package/Radio/radioClasses.d.ts +1 -1
  85. package/Rating/ratingClasses.d.ts +1 -1
  86. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +1 -1
  87. package/Select/selectClasses.d.ts +1 -1
  88. package/Skeleton/skeletonClasses.d.ts +1 -1
  89. package/Snackbar/snackbarClasses.d.ts +1 -1
  90. package/SnackbarContent/snackbarContentClasses.d.ts +1 -1
  91. package/SpeedDial/speedDialClasses.d.ts +1 -1
  92. package/SpeedDialAction/speedDialActionClasses.d.ts +1 -1
  93. package/SpeedDialIcon/speedDialIconClasses.d.ts +1 -1
  94. package/Step/stepClasses.d.ts +1 -1
  95. package/StepButton/stepButtonClasses.d.ts +1 -1
  96. package/StepConnector/stepConnectorClasses.d.ts +1 -1
  97. package/StepContent/stepContentClasses.d.ts +1 -1
  98. package/StepIcon/stepIconClasses.d.ts +1 -1
  99. package/StepLabel/stepLabelClasses.d.ts +1 -1
  100. package/Stepper/stepperClasses.d.ts +1 -1
  101. package/SvgIcon/svgIconClasses.d.ts +1 -1
  102. package/SwipeableDrawer/SwipeableDrawer.js +3 -1
  103. package/Switch/switchClasses.d.ts +1 -1
  104. package/Tab/tabClasses.d.ts +1 -1
  105. package/TabScrollButton/tabScrollButtonClasses.d.ts +1 -1
  106. package/Table/tableClasses.d.ts +1 -1
  107. package/TableBody/tableBodyClasses.d.ts +1 -1
  108. package/TableCell/tableCellClasses.d.ts +1 -1
  109. package/TableContainer/tableContainerClasses.d.ts +1 -1
  110. package/TableFooter/tableFooterClasses.d.ts +1 -1
  111. package/TableHead/tableHeadClasses.d.ts +1 -1
  112. package/TablePagination/tablePaginationClasses.d.ts +1 -1
  113. package/TableRow/tableRowClasses.d.ts +1 -1
  114. package/TableSortLabel/tableSortLabelClasses.d.ts +1 -1
  115. package/Tabs/tabsClasses.d.ts +1 -1
  116. package/TextField/textFieldClasses.d.ts +1 -1
  117. package/ToggleButton/toggleButtonClasses.d.ts +1 -1
  118. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +1 -1
  119. package/Toolbar/toolbarClasses.d.ts +1 -1
  120. package/Tooltip/tooltipClasses.d.ts +1 -1
  121. package/Typography/typographyClasses.d.ts +1 -1
  122. package/Unstable_Grid2/Grid2Props.d.ts +2 -2
  123. package/Unstable_Grid2/grid2Classes.d.ts +1 -1
  124. package/esm/Autocomplete/Autocomplete.js +1 -0
  125. package/esm/Chip/Chip.js +15 -2
  126. package/esm/FormControl/FormControlContext.js +1 -2
  127. package/esm/IconButton/iconButtonClasses.js +1 -1
  128. package/esm/Paper/Paper.js +1 -11
  129. package/esm/SwipeableDrawer/SwipeableDrawer.js +3 -1
  130. package/esm/locale/index.js +73 -0
  131. package/esm/styles/experimental_extendTheme.js +1 -1
  132. package/esm/styles/getOverlayAlpha.js +11 -0
  133. package/esm/styles/index.js +6 -1
  134. package/index.js +1 -1
  135. package/internal/switchBaseClasses.d.ts +1 -1
  136. package/legacy/Autocomplete/Autocomplete.js +2 -1
  137. package/legacy/Chip/Chip.js +15 -1
  138. package/legacy/FormControl/FormControlContext.js +1 -2
  139. package/legacy/IconButton/iconButtonClasses.js +1 -1
  140. package/legacy/Paper/Paper.js +1 -11
  141. package/legacy/SwipeableDrawer/SwipeableDrawer.js +3 -1
  142. package/legacy/index.js +1 -1
  143. package/legacy/locale/index.js +92 -16
  144. package/legacy/styles/experimental_extendTheme.js +1 -1
  145. package/legacy/styles/getOverlayAlpha.js +11 -0
  146. package/legacy/styles/index.js +6 -1
  147. package/locale/index.d.ts +1 -0
  148. package/locale/index.js +75 -1
  149. package/modern/Autocomplete/Autocomplete.js +1 -0
  150. package/modern/Chip/Chip.js +15 -2
  151. package/modern/FormControl/FormControlContext.js +1 -2
  152. package/modern/IconButton/iconButtonClasses.js +1 -1
  153. package/modern/Paper/Paper.js +1 -11
  154. package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -1
  155. package/modern/index.js +1 -1
  156. package/modern/locale/index.js +73 -0
  157. package/modern/styles/experimental_extendTheme.js +1 -1
  158. package/modern/styles/getOverlayAlpha.js +11 -0
  159. package/modern/styles/index.js +6 -1
  160. package/package.json +6 -6
  161. package/styles/experimental_extendTheme.d.ts +13 -0
  162. package/styles/experimental_extendTheme.js +2 -2
  163. package/styles/getOverlayAlpha.d.ts +2 -0
  164. package/styles/getOverlayAlpha.js +18 -0
  165. package/styles/index.d.ts +6 -0
  166. package/styles/index.js +25 -1
  167. package/styles/responsiveFontSizes.d.ts +2 -2
  168. package/transitions/transition.d.ts +3 -3
  169. package/umd/material-ui.development.js +492 -470
  170. package/umd/material-ui.production.min.js +20 -20
  171. package/useMediaQuery/useMediaQuery.d.ts +1 -1
@@ -7,21 +7,11 @@ import { chainPropTypes, integerPropType } from '@mui/utils';
7
7
  import { unstable_composeClasses as composeClasses } from '@mui/base';
8
8
  import { alpha } from '@mui/system';
9
9
  import styled from '../styles/styled';
10
+ import getOverlayAlpha from '../styles/getOverlayAlpha';
10
11
  import useThemeProps from '../styles/useThemeProps';
11
12
  import useTheme from '../styles/useTheme';
12
13
  import { getPaperUtilityClass } from './paperClasses';
13
-
14
- // Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
15
14
  import { jsx as _jsx } from "react/jsx-runtime";
16
- export var getOverlayAlpha = function getOverlayAlpha(elevation) {
17
- var alphaValue;
18
- if (elevation < 1) {
19
- alphaValue = 5.11916 * Math.pow(elevation, 2);
20
- } else {
21
- alphaValue = 4.5 * Math.log(elevation + 1) + 2;
22
- }
23
- return (alphaValue / 100).toFixed(2);
24
- };
25
15
  var useUtilityClasses = function useUtilityClasses(ownerState) {
26
16
  var square = ownerState.square,
27
17
  elevation = ownerState.elevation,
@@ -7,6 +7,7 @@ import { elementTypeAcceptingRef } from '@mui/utils';
7
7
  import { useThemeProps } from '@mui/system';
8
8
  import { NoSsr } from '@mui/base';
9
9
  import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
10
+ import useForkRef from '../utils/useForkRef';
10
11
  import ownerDocument from '../utils/ownerDocument';
11
12
  import ownerWindow from '../utils/ownerWindow';
12
13
  import useEventCallback from '../utils/useEventCallback';
@@ -161,6 +162,7 @@ var SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inP
161
162
  var swipeAreaRef = React.useRef();
162
163
  var backdropRef = React.useRef();
163
164
  var paperRef = React.useRef();
165
+ var handleRef = useForkRef(PaperProps.ref, paperRef);
164
166
  var touchDetected = React.useRef(false);
165
167
 
166
168
  // Ref for transition duration based on / to match swipe speed
@@ -458,7 +460,7 @@ var SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inP
458
460
  style: _extends({
459
461
  pointerEvents: variant === 'temporary' && !open ? 'none' : ''
460
462
  }, PaperProps.style),
461
- ref: paperRef
463
+ ref: handleRef
462
464
  }),
463
465
  anchor: anchor,
464
466
  transitionDuration: calculatedDurationRef.current || transitionDuration,
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.14
1
+ /** @license MUI v5.10.16
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.
@@ -3447,6 +3447,82 @@ export var ukUA = {
3447
3447
  }
3448
3448
  }
3449
3449
  };
3450
+ export var urPK = {
3451
+ components: {
3452
+ MuiBreadcrumbs: {
3453
+ defaultProps: {
3454
+ expandText: 'راستہ دکھائیں'
3455
+ }
3456
+ },
3457
+ MuiTablePagination: {
3458
+ defaultProps: {
3459
+ getItemAriaLabel: function getItemAriaLabel(type) {
3460
+ if (type === 'first') {
3461
+ return 'پہلے صفحے پر جائیں';
3462
+ }
3463
+ if (type === 'last') {
3464
+ return 'آخری صفحے پر جائیں';
3465
+ }
3466
+ if (type === 'next') {
3467
+ return 'اگلے صفحے پر جائیں';
3468
+ }
3469
+ // if (type === 'previous') {
3470
+ return 'پچھلے صفحے پر جائیں';
3471
+ },
3472
+ labelRowsPerPage: 'ایک صفحے پر قطاریں:',
3473
+ labelDisplayedRows: function labelDisplayedRows(_ref35) {
3474
+ var from = _ref35.from,
3475
+ to = _ref35.to,
3476
+ count = _ref35.count;
3477
+ return "".concat(count !== -1 ? "".concat(count, " \u0645\u06CC\u06BA \u0633\u06D2") : "".concat(to, " \u0633\u06D2 \u0630\u06CC\u0627\u062F\u06C1 \u0645\u06CC\u06BA \u0633\u06D2"), " ").concat(from, " \u0633\u06D2 ").concat(to, " \u0642\u0637\u0627\u0631\u06CC\u06BA");
3478
+ }
3479
+ }
3480
+ },
3481
+ MuiRating: {
3482
+ defaultProps: {
3483
+ getLabelText: function getLabelText(value) {
3484
+ return "".concat(value, " \u0633\u062A\u0627\u0631").concat(value !== 1 ? 'ے' : 'ہ');
3485
+ },
3486
+ emptyLabelText: 'خالی'
3487
+ }
3488
+ },
3489
+ MuiAutocomplete: {
3490
+ defaultProps: {
3491
+ clearText: 'کلئیر',
3492
+ closeText: 'بند کریں',
3493
+ loadingText: 'لوڈ ہو رہا ہے۔۔۔',
3494
+ noOptionsText: 'کوئی آپشن نہیں',
3495
+ openText: 'کھولیں'
3496
+ }
3497
+ },
3498
+ MuiAlert: {
3499
+ defaultProps: {
3500
+ closeText: 'بند کریں'
3501
+ }
3502
+ },
3503
+ MuiPagination: {
3504
+ defaultProps: {
3505
+ 'aria-label': 'صفحات کی ترتیب',
3506
+ getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
3507
+ if (type === 'page') {
3508
+ return "\u0635\u0641\u062D\u06C1 \u0646\u0645\u0628\u0631 ".concat(page).concat(selected ? '' : ' پر جائیں');
3509
+ }
3510
+ if (type === 'first') {
3511
+ return 'پہلے صفحے پر جائیں';
3512
+ }
3513
+ if (type === 'last') {
3514
+ return 'آخری صفحے پر جائیں';
3515
+ }
3516
+ if (type === 'next') {
3517
+ return 'اگلے صفحے پر جائیں';
3518
+ }
3519
+ // if (type === 'previous') {
3520
+ return 'پچھلے صفحے پر جائیں';
3521
+ }
3522
+ }
3523
+ }
3524
+ }
3525
+ };
3450
3526
  export var viVN = {
3451
3527
  components: {
3452
3528
  MuiBreadcrumbs: {
@@ -3470,10 +3546,10 @@ export var viVN = {
3470
3546
  return 'Về trang trước đó';
3471
3547
  },
3472
3548
  labelRowsPerPage: 'Số hàng mỗi trang:',
3473
- labelDisplayedRows: function labelDisplayedRows(_ref35) {
3474
- var from = _ref35.from,
3475
- to = _ref35.to,
3476
- count = _ref35.count;
3549
+ labelDisplayedRows: function labelDisplayedRows(_ref36) {
3550
+ var from = _ref36.from,
3551
+ to = _ref36.to,
3552
+ count = _ref36.count;
3477
3553
  return "".concat(from, "\u2013").concat(to, " trong ").concat(count !== -1 ? count : "nhi\u1EC1u h\u01A1n ".concat(to));
3478
3554
  }
3479
3555
  }
@@ -3545,10 +3621,10 @@ export var zhCN = {
3545
3621
  return '上一页';
3546
3622
  },
3547
3623
  labelRowsPerPage: '每页行数:',
3548
- labelDisplayedRows: function labelDisplayedRows(_ref36) {
3549
- var from = _ref36.from,
3550
- to = _ref36.to,
3551
- count = _ref36.count;
3624
+ labelDisplayedRows: function labelDisplayedRows(_ref37) {
3625
+ var from = _ref37.from,
3626
+ to = _ref37.to,
3627
+ count = _ref37.count;
3552
3628
  return "\u7B2C ".concat(from, " \u6761\u5230\u7B2C ").concat(to, " \u6761\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u6761") : "\u81F3\u5C11 ".concat(to, " \u6761"));
3553
3629
  }
3554
3630
  }
@@ -3599,10 +3675,10 @@ export var zhHK = {
3599
3675
  return '上一頁';
3600
3676
  },
3601
3677
  labelRowsPerPage: '每頁行數:',
3602
- labelDisplayedRows: function labelDisplayedRows(_ref37) {
3603
- var from = _ref37.from,
3604
- to = _ref37.to,
3605
- count = _ref37.count;
3678
+ labelDisplayedRows: function labelDisplayedRows(_ref38) {
3679
+ var from = _ref38.from,
3680
+ to = _ref38.to,
3681
+ count = _ref38.count;
3606
3682
  return "\u7B2C ".concat(from, " \u9805\u81F3\u7B2C ").concat(to, " \u9805\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u9805") : "\u8D85\u904E ".concat(to, " \u9805"));
3607
3683
  }
3608
3684
  }
@@ -3653,10 +3729,10 @@ export var zhTW = {
3653
3729
  return '上一頁';
3654
3730
  },
3655
3731
  labelRowsPerPage: '每頁行數:',
3656
- labelDisplayedRows: function labelDisplayedRows(_ref38) {
3657
- var from = _ref38.from,
3658
- to = _ref38.to,
3659
- count = _ref38.count;
3732
+ labelDisplayedRows: function labelDisplayedRows(_ref39) {
3733
+ var from = _ref39.from,
3734
+ to = _ref39.to,
3735
+ count = _ref39.count;
3660
3736
  return "\u7B2C ".concat(from, " \u689D\u5230\u7B2C ").concat(to, " \u689D\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u689D") : "\u81F3\u5C11 ".concat(to, " \u689D"));
3661
3737
  }
3662
3738
  }
@@ -4,7 +4,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
4
4
  import { deepmerge } from '@mui/utils';
5
5
  import { colorChannel, alpha, darken, lighten, emphasize, unstable_createGetCssVar as systemCreateGetCssVar } from '@mui/system';
6
6
  import createThemeWithoutVars from './createTheme';
7
- import { getOverlayAlpha } from '../Paper/Paper';
7
+ import getOverlayAlpha from './getOverlayAlpha';
8
8
  var defaultDarkOverlays = _toConsumableArray(Array(25)).map(function (_, index) {
9
9
  if (index === 0) {
10
10
  return undefined;
@@ -0,0 +1,11 @@
1
+ // Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
2
+ var getOverlayAlpha = function getOverlayAlpha(elevation) {
3
+ var alphaValue;
4
+ if (elevation < 1) {
5
+ alphaValue = 5.11916 * Math.pow(elevation, 2);
6
+ } else {
7
+ alphaValue = 4.5 * Math.log(elevation + 1) + 2;
8
+ }
9
+ return (alphaValue / 100).toFixed(2);
10
+ };
11
+ export default getOverlayAlpha;
@@ -18,4 +18,9 @@ export { default as makeStyles } from './makeStyles';
18
18
  export { default as withStyles } from './withStyles';
19
19
  export { default as withTheme } from './withTheme';
20
20
  export * from './CssVarsProvider';
21
- export { default as experimental_extendTheme } from './experimental_extendTheme';
21
+ export { default as experimental_extendTheme } from './experimental_extendTheme';
22
+ export { default as getOverlayAlpha } from './getOverlayAlpha';
23
+
24
+ // Private methods for creating parts of the theme
25
+ export { default as private_createTypography } from './createTypography';
26
+ export { default as private_excludeVariablesFromRoot } from './excludeVariablesFromRoot';
package/locale/index.d.ts CHANGED
@@ -66,6 +66,7 @@ export declare const svSE: Localization;
66
66
  export declare const thTH: Localization;
67
67
  export declare const trTR: Localization;
68
68
  export declare const ukUA: Localization;
69
+ export declare const urPK: Localization;
69
70
  export declare const viVN: Localization;
70
71
  export declare const zhCN: Localization;
71
72
  export declare const zhHK: Localization;
package/locale/index.js CHANGED
@@ -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.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.arSA = exports.arEG = exports.amET = void 0;
6
+ exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.urPK = 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.arSA = exports.arEG = exports.amET = void 0;
7
7
  const amET = {
8
8
  components: {
9
9
  MuiBreadcrumbs: {
@@ -3390,6 +3390,80 @@ const ukUA = {
3390
3390
  }
3391
3391
  };
3392
3392
  exports.ukUA = ukUA;
3393
+ const urPK = {
3394
+ components: {
3395
+ MuiBreadcrumbs: {
3396
+ defaultProps: {
3397
+ expandText: 'راستہ دکھائیں'
3398
+ }
3399
+ },
3400
+ MuiTablePagination: {
3401
+ defaultProps: {
3402
+ getItemAriaLabel: type => {
3403
+ if (type === 'first') {
3404
+ return 'پہلے صفحے پر جائیں';
3405
+ }
3406
+ if (type === 'last') {
3407
+ return 'آخری صفحے پر جائیں';
3408
+ }
3409
+ if (type === 'next') {
3410
+ return 'اگلے صفحے پر جائیں';
3411
+ }
3412
+ // if (type === 'previous') {
3413
+ return 'پچھلے صفحے پر جائیں';
3414
+ },
3415
+ labelRowsPerPage: 'ایک صفحے پر قطاریں:',
3416
+ labelDisplayedRows: ({
3417
+ from,
3418
+ to,
3419
+ count
3420
+ }) => `${count !== -1 ? `${count} میں سے` : `${to} سے ذیادہ میں سے`} ${from} سے ${to} قطاریں`
3421
+ }
3422
+ },
3423
+ MuiRating: {
3424
+ defaultProps: {
3425
+ getLabelText: value => `${value} ستار${value !== 1 ? 'ے' : 'ہ'}`,
3426
+ emptyLabelText: 'خالی'
3427
+ }
3428
+ },
3429
+ MuiAutocomplete: {
3430
+ defaultProps: {
3431
+ clearText: 'کلئیر',
3432
+ closeText: 'بند کریں',
3433
+ loadingText: 'لوڈ ہو رہا ہے۔۔۔',
3434
+ noOptionsText: 'کوئی آپشن نہیں',
3435
+ openText: 'کھولیں'
3436
+ }
3437
+ },
3438
+ MuiAlert: {
3439
+ defaultProps: {
3440
+ closeText: 'بند کریں'
3441
+ }
3442
+ },
3443
+ MuiPagination: {
3444
+ defaultProps: {
3445
+ 'aria-label': 'صفحات کی ترتیب',
3446
+ getItemAriaLabel: (type, page, selected) => {
3447
+ if (type === 'page') {
3448
+ return `صفحہ نمبر ${page}${selected ? '' : ' پر جائیں'}`;
3449
+ }
3450
+ if (type === 'first') {
3451
+ return 'پہلے صفحے پر جائیں';
3452
+ }
3453
+ if (type === 'last') {
3454
+ return 'آخری صفحے پر جائیں';
3455
+ }
3456
+ if (type === 'next') {
3457
+ return 'اگلے صفحے پر جائیں';
3458
+ }
3459
+ // if (type === 'previous') {
3460
+ return 'پچھلے صفحے پر جائیں';
3461
+ }
3462
+ }
3463
+ }
3464
+ }
3465
+ };
3466
+ exports.urPK = urPK;
3393
3467
  const viVN = {
3394
3468
  components: {
3395
3469
  MuiBreadcrumbs: {
@@ -280,6 +280,7 @@ const AutocompleteListbox = styled('div', {
280
280
  padding: '8px 0',
281
281
  maxHeight: '40vh',
282
282
  overflow: 'auto',
283
+ position: 'relative',
283
284
  [`& .${autocompleteClasses.option}`]: {
284
285
  minHeight: 48,
285
286
  display: 'flex',
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
3
+ const _excluded = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -292,7 +292,9 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
292
292
  onKeyDown,
293
293
  onKeyUp,
294
294
  size = 'medium',
295
- variant = 'filled'
295
+ variant = 'filled',
296
+ tabIndex,
297
+ skipFocusWhenDisabled = false
296
298
  } = props,
297
299
  other = _objectWithoutPropertiesLoose(props, _excluded);
298
300
  const chipRef = React.useRef(null);
@@ -382,6 +384,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
382
384
  onKeyDown: handleKeyDown,
383
385
  onKeyUp: handleKeyUp,
384
386
  ref: handleRef,
387
+ tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
385
388
  ownerState: ownerState
386
389
  }, moreProps, other, {
387
390
  children: [avatar || icon, /*#__PURE__*/_jsx(ChipLabel, {
@@ -473,10 +476,20 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
473
476
  * @default 'medium'
474
477
  */
475
478
  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
479
+ /**
480
+ * If `true`, allows the disabled chip to escape focus.
481
+ * If `false`, allows the disabled chip to receive focus.
482
+ * @default false
483
+ */
484
+ skipFocusWhenDisabled: PropTypes.bool,
476
485
  /**
477
486
  * The system prop that allows defining system overrides as well as additional CSS styles.
478
487
  */
479
488
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
489
+ /**
490
+ * @ignore
491
+ */
492
+ tabIndex: PropTypes.number,
480
493
  /**
481
494
  * The variant to use.
482
495
  * @default 'filled'
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
-
3
2
  /**
4
3
  * @ignore - internal component.
5
4
  */
6
- const FormControlContext = /*#__PURE__*/React.createContext();
5
+ const FormControlContext = /*#__PURE__*/React.createContext(undefined);
7
6
  if (process.env.NODE_ENV !== 'production') {
8
7
  FormControlContext.displayName = 'FormControlContext';
9
8
  }
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
3
3
  export function getIconButtonUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiIconButton', slot);
5
5
  }
6
- const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
6
+ const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
7
7
  export default iconButtonClasses;
@@ -8,21 +8,11 @@ import { chainPropTypes, integerPropType } from '@mui/utils';
8
8
  import { unstable_composeClasses as composeClasses } from '@mui/base';
9
9
  import { alpha } from '@mui/system';
10
10
  import styled from '../styles/styled';
11
+ import getOverlayAlpha from '../styles/getOverlayAlpha';
11
12
  import useThemeProps from '../styles/useThemeProps';
12
13
  import useTheme from '../styles/useTheme';
13
14
  import { getPaperUtilityClass } from './paperClasses';
14
-
15
- // Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
16
15
  import { jsx as _jsx } from "react/jsx-runtime";
17
- export const getOverlayAlpha = elevation => {
18
- let alphaValue;
19
- if (elevation < 1) {
20
- alphaValue = 5.11916 * elevation ** 2;
21
- } else {
22
- alphaValue = 4.5 * Math.log(elevation + 1) + 2;
23
- }
24
- return (alphaValue / 100).toFixed(2);
25
- };
26
16
  const useUtilityClasses = ownerState => {
27
17
  const {
28
18
  square,
@@ -9,6 +9,7 @@ import { elementTypeAcceptingRef } from '@mui/utils';
9
9
  import { useThemeProps } from '@mui/system';
10
10
  import { NoSsr } from '@mui/base';
11
11
  import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
12
+ import useForkRef from '../utils/useForkRef';
12
13
  import ownerDocument from '../utils/ownerDocument';
13
14
  import ownerWindow from '../utils/ownerWindow';
14
15
  import useEventCallback from '../utils/useEventCallback';
@@ -154,6 +155,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
154
155
  const swipeAreaRef = React.useRef();
155
156
  const backdropRef = React.useRef();
156
157
  const paperRef = React.useRef();
158
+ const handleRef = useForkRef(PaperProps.ref, paperRef);
157
159
  const touchDetected = React.useRef(false);
158
160
 
159
161
  // Ref for transition duration based on / to match swipe speed
@@ -448,7 +450,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
448
450
  style: _extends({
449
451
  pointerEvents: variant === 'temporary' && !open ? 'none' : ''
450
452
  }, PaperProps.style),
451
- ref: paperRef
453
+ ref: handleRef
452
454
  }),
453
455
  anchor: anchor,
454
456
  transitionDuration: calculatedDurationRef.current || transitionDuration,
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.14
1
+ /** @license MUI v5.10.16
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.
@@ -3343,6 +3343,79 @@ export const ukUA = {
3343
3343
  }
3344
3344
  }
3345
3345
  };
3346
+ export const urPK = {
3347
+ components: {
3348
+ MuiBreadcrumbs: {
3349
+ defaultProps: {
3350
+ expandText: 'راستہ دکھائیں'
3351
+ }
3352
+ },
3353
+ MuiTablePagination: {
3354
+ defaultProps: {
3355
+ getItemAriaLabel: type => {
3356
+ if (type === 'first') {
3357
+ return 'پہلے صفحے پر جائیں';
3358
+ }
3359
+ if (type === 'last') {
3360
+ return 'آخری صفحے پر جائیں';
3361
+ }
3362
+ if (type === 'next') {
3363
+ return 'اگلے صفحے پر جائیں';
3364
+ }
3365
+ // if (type === 'previous') {
3366
+ return 'پچھلے صفحے پر جائیں';
3367
+ },
3368
+ labelRowsPerPage: 'ایک صفحے پر قطاریں:',
3369
+ labelDisplayedRows: ({
3370
+ from,
3371
+ to,
3372
+ count
3373
+ }) => `${count !== -1 ? `${count} میں سے` : `${to} سے ذیادہ میں سے`} ${from} سے ${to} قطاریں`
3374
+ }
3375
+ },
3376
+ MuiRating: {
3377
+ defaultProps: {
3378
+ getLabelText: value => `${value} ستار${value !== 1 ? 'ے' : 'ہ'}`,
3379
+ emptyLabelText: 'خالی'
3380
+ }
3381
+ },
3382
+ MuiAutocomplete: {
3383
+ defaultProps: {
3384
+ clearText: 'کلئیر',
3385
+ closeText: 'بند کریں',
3386
+ loadingText: 'لوڈ ہو رہا ہے۔۔۔',
3387
+ noOptionsText: 'کوئی آپشن نہیں',
3388
+ openText: 'کھولیں'
3389
+ }
3390
+ },
3391
+ MuiAlert: {
3392
+ defaultProps: {
3393
+ closeText: 'بند کریں'
3394
+ }
3395
+ },
3396
+ MuiPagination: {
3397
+ defaultProps: {
3398
+ 'aria-label': 'صفحات کی ترتیب',
3399
+ getItemAriaLabel: (type, page, selected) => {
3400
+ if (type === 'page') {
3401
+ return `صفحہ نمبر ${page}${selected ? '' : ' پر جائیں'}`;
3402
+ }
3403
+ if (type === 'first') {
3404
+ return 'پہلے صفحے پر جائیں';
3405
+ }
3406
+ if (type === 'last') {
3407
+ return 'آخری صفحے پر جائیں';
3408
+ }
3409
+ if (type === 'next') {
3410
+ return 'اگلے صفحے پر جائیں';
3411
+ }
3412
+ // if (type === 'previous') {
3413
+ return 'پچھلے صفحے پر جائیں';
3414
+ }
3415
+ }
3416
+ }
3417
+ }
3418
+ };
3346
3419
  export const viVN = {
3347
3420
  components: {
3348
3421
  MuiBreadcrumbs: {
@@ -5,7 +5,7 @@ const _excluded = ["colorSchemes", "cssVarPrefix"],
5
5
  import { deepmerge } from '@mui/utils';
6
6
  import { colorChannel, alpha, darken, lighten, emphasize, unstable_createGetCssVar as systemCreateGetCssVar } from '@mui/system';
7
7
  import createThemeWithoutVars from './createTheme';
8
- import { getOverlayAlpha } from '../Paper/Paper';
8
+ import getOverlayAlpha from './getOverlayAlpha';
9
9
  const defaultDarkOverlays = [...Array(25)].map((_, index) => {
10
10
  if (index === 0) {
11
11
  return undefined;
@@ -0,0 +1,11 @@
1
+ // Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
2
+ const getOverlayAlpha = elevation => {
3
+ let alphaValue;
4
+ if (elevation < 1) {
5
+ alphaValue = 5.11916 * elevation ** 2;
6
+ } else {
7
+ alphaValue = 4.5 * Math.log(elevation + 1) + 2;
8
+ }
9
+ return (alphaValue / 100).toFixed(2);
10
+ };
11
+ export default getOverlayAlpha;
@@ -18,4 +18,9 @@ export { default as makeStyles } from './makeStyles';
18
18
  export { default as withStyles } from './withStyles';
19
19
  export { default as withTheme } from './withTheme';
20
20
  export * from './CssVarsProvider';
21
- export { default as experimental_extendTheme } from './experimental_extendTheme';
21
+ export { default as experimental_extendTheme } from './experimental_extendTheme';
22
+ export { default as getOverlayAlpha } from './getOverlayAlpha';
23
+
24
+ // Private methods for creating parts of the theme
25
+ export { default as private_createTypography } from './createTypography';
26
+ export { default as private_excludeVariablesFromRoot } from './excludeVariablesFromRoot';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.10.14",
3
+ "version": "5.10.16",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -46,11 +46,11 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.20.1",
49
- "@mui/base": "5.0.0-alpha.106",
50
- "@mui/core-downloads-tracker": "^5.10.14",
51
- "@mui/system": "^5.10.14",
52
- "@mui/types": "^7.2.1",
53
- "@mui/utils": "^5.10.14",
49
+ "@mui/base": "5.0.0-alpha.108",
50
+ "@mui/core-downloads-tracker": "^5.10.16",
51
+ "@mui/system": "^5.10.16",
52
+ "@mui/types": "^7.2.2",
53
+ "@mui/utils": "^5.10.16",
54
54
  "@types/react-transition-group": "^4.4.5",
55
55
  "clsx": "^1.2.1",
56
56
  "csstype": "^3.1.1",
@@ -34,6 +34,8 @@ export type SupportedColorScheme = DefaultColorScheme | ExtendedColorScheme;
34
34
  export interface Opacity {
35
35
  inputPlaceholder: number;
36
36
  inputUnderline: number;
37
+ switchTrackDisabled: number;
38
+ switchTrack: number;
37
39
  }
38
40
 
39
41
  export type Overlays = [
@@ -238,6 +240,7 @@ export interface CssVarsPalette {
238
240
  success: PaletteColorChannel;
239
241
  warning: PaletteColorChannel;
240
242
  text: PaletteTextChannel;
243
+ background: PaletteBackgroundChannel;
241
244
  dividerChannel: string;
242
245
  action: PaletteActionChannel;
243
246
  Alert: PaletteAlert;
@@ -388,6 +391,16 @@ export interface CssVarsTheme extends ColorSystem {
388
391
  vars: ThemeVars;
389
392
  getCssVar: (field: ThemeCssVar, ...vars: ThemeCssVar[]) => string;
390
393
  getColorSchemeSelector: (colorScheme: SupportedColorScheme) => string;
394
+
395
+ // Default theme tokens
396
+ spacing: Theme['spacing'];
397
+ breakpints: Theme['breakpoints'];
398
+ shape: Theme['shape'];
399
+ typography: Theme['typography'];
400
+ transitions: Theme['transitions'];
401
+ shadows: Theme['shadows'];
402
+ mixins: Theme['mixins'];
403
+ zIndex: Theme['zIndex'];
391
404
  }
392
405
 
393
406
  /**
@@ -11,14 +11,14 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
11
11
  var _utils = require("@mui/utils");
12
12
  var _system = require("@mui/system");
13
13
  var _createTheme = _interopRequireDefault(require("./createTheme"));
14
- var _Paper = require("../Paper/Paper");
14
+ var _getOverlayAlpha = _interopRequireDefault(require("./getOverlayAlpha"));
15
15
  const _excluded = ["colorSchemes", "cssVarPrefix"],
16
16
  _excluded2 = ["palette"];
17
17
  const defaultDarkOverlays = [...Array(25)].map((_, index) => {
18
18
  if (index === 0) {
19
19
  return undefined;
20
20
  }
21
- const overlay = (0, _Paper.getOverlayAlpha)(index);
21
+ const overlay = (0, _getOverlayAlpha.default)(index);
22
22
  return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
23
23
  });
24
24
  function assignNode(obj, keys) {