@mui/material 5.11.1 → 5.11.2

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 (177) 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/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/badgeClasses.d.ts +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +100 -100
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +71 -0
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/checkboxClasses.d.ts +18 -18
  30. package/Chip/chipClasses.d.ts +96 -96
  31. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  32. package/ClickAwayListener/index.d.ts +2 -2
  33. package/Collapse/collapseClasses.d.ts +18 -18
  34. package/Container/containerClasses.d.ts +6 -6
  35. package/Dialog/DialogContext.d.ts +6 -6
  36. package/Dialog/dialogClasses.d.ts +36 -36
  37. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  38. package/DialogContent/dialogContentClasses.d.ts +10 -10
  39. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  40. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  41. package/Divider/dividerClasses.d.ts +34 -34
  42. package/Drawer/drawerClasses.d.ts +30 -30
  43. package/Fab/fabClasses.d.ts +26 -26
  44. package/FilledInput/filledInputClasses.d.ts +40 -40
  45. package/FormControl/FormControlContext.d.ts +17 -17
  46. package/FormControl/formControlClasses.d.ts +14 -14
  47. package/FormControl/useFormControl.d.ts +2 -2
  48. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  49. package/FormGroup/formGroupClasses.d.ts +12 -12
  50. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  51. package/FormLabel/formLabelClasses.d.ts +22 -22
  52. package/Grid/gridClasses.d.ts +48 -48
  53. package/Icon/iconClasses.d.ts +24 -24
  54. package/IconButton/iconButtonClasses.d.ts +34 -34
  55. package/ImageList/imageListClasses.d.ts +16 -16
  56. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  57. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  58. package/Input/inputClasses.d.ts +34 -34
  59. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  60. package/InputBase/inputBaseClasses.d.ts +46 -46
  61. package/InputLabel/inputLabelClasses.d.ts +32 -32
  62. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  63. package/Link/getTextDecoration.d.ts +15 -15
  64. package/Link/linkClasses.d.ts +18 -18
  65. package/List/listClasses.d.ts +14 -14
  66. package/ListItem/listItemClasses.d.ts +30 -30
  67. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  68. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  69. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  70. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  71. package/ListItemText/listItemTextClasses.d.ts +18 -18
  72. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  73. package/Menu/menuClasses.d.ts +12 -12
  74. package/MenuItem/menuItemClasses.d.ts +20 -20
  75. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  76. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  77. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  78. package/Pagination/paginationClasses.d.ts +14 -14
  79. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  80. package/Paper/paperClasses.d.ts +39 -39
  81. package/Popover/popoverClasses.d.ts +10 -10
  82. package/Popper/Popper.d.ts +37 -37
  83. package/Popper/Popper.js +11 -7
  84. package/Radio/radioClasses.d.ts +16 -16
  85. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  86. package/RadioGroup/useRadioGroup.d.ts +4 -4
  87. package/Rating/ratingClasses.d.ts +40 -40
  88. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  89. package/Select/SelectInput.js +11 -6
  90. package/Select/selectClasses.d.ts +30 -30
  91. package/Skeleton/skeletonClasses.d.ts +26 -26
  92. package/Slider/Slider.js +0 -5
  93. package/Snackbar/snackbarClasses.d.ts +20 -20
  94. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  95. package/SpeedDial/speedDialClasses.d.ts +22 -22
  96. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  97. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  98. package/Step/StepContext.d.ts +20 -20
  99. package/Step/stepClasses.d.ts +16 -16
  100. package/StepButton/stepButtonClasses.d.ts +14 -14
  101. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  102. package/StepContent/stepContentClasses.d.ts +12 -12
  103. package/StepIcon/stepIconClasses.d.ts +16 -16
  104. package/StepLabel/stepLabelClasses.d.ts +28 -28
  105. package/Stepper/StepperContext.d.ts +18 -18
  106. package/Stepper/stepperClasses.d.ts +14 -14
  107. package/SvgIcon/svgIconClasses.d.ts +26 -26
  108. package/Switch/switchClasses.d.ts +32 -32
  109. package/Tab/tabClasses.d.ts +26 -26
  110. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  111. package/Table/tableClasses.d.ts +10 -10
  112. package/TableBody/tableBodyClasses.d.ts +8 -8
  113. package/TableCell/TableCell.js +5 -1
  114. package/TableCell/tableCellClasses.d.ts +32 -32
  115. package/TableContainer/tableContainerClasses.d.ts +8 -8
  116. package/TableFooter/tableFooterClasses.d.ts +8 -8
  117. package/TableHead/tableHeadClasses.d.ts +8 -8
  118. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  119. package/TableRow/tableRowClasses.d.ts +16 -16
  120. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  121. package/Tabs/tabsClasses.d.ts +32 -32
  122. package/TextField/textFieldClasses.d.ts +8 -8
  123. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  124. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  125. package/Toolbar/toolbarClasses.d.ts +14 -14
  126. package/Tooltip/tooltipClasses.d.ts +30 -30
  127. package/Typography/typographyClasses.d.ts +50 -50
  128. package/Unstable_Grid2/Grid2.d.ts +4 -4
  129. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  130. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  131. package/Unstable_Grid2/index.d.ts +4 -4
  132. package/className/index.d.ts +1 -1
  133. package/darkScrollbar/index.d.ts +28 -28
  134. package/generateUtilityClass/index.d.ts +2 -2
  135. package/generateUtilityClasses/index.d.ts +1 -1
  136. package/index.js +1 -1
  137. package/internal/switchBaseClasses.d.ts +12 -12
  138. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  139. package/legacy/Popper/Popper.js +13 -9
  140. package/legacy/Select/SelectInput.js +9 -6
  141. package/legacy/Slider/Slider.js +0 -5
  142. package/legacy/TableCell/TableCell.js +5 -1
  143. package/legacy/index.js +1 -1
  144. package/legacy/locale/index.js +195 -116
  145. package/locale/index.d.ts +74 -73
  146. package/locale/index.js +79 -4
  147. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  148. package/modern/Popper/Popper.js +11 -7
  149. package/modern/Select/SelectInput.js +7 -6
  150. package/modern/Slider/Slider.js +0 -5
  151. package/modern/TableCell/TableCell.js +5 -1
  152. package/modern/index.js +1 -1
  153. package/modern/locale/index.js +79 -4
  154. package/node/BottomNavigation/BottomNavigation.js +0 -0
  155. package/node/Popper/Popper.js +11 -7
  156. package/node/Select/SelectInput.js +11 -6
  157. package/node/Slider/Slider.js +0 -5
  158. package/node/TableCell/TableCell.js +5 -1
  159. package/node/index.js +1 -1
  160. package/node/locale/index.js +81 -5
  161. package/package.json +6 -6
  162. package/styles/CssVarsProvider.d.ts +16 -16
  163. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  164. package/styles/getOverlayAlpha.d.ts +2 -2
  165. package/transitions/index.d.ts +1 -1
  166. package/transitions/transition.d.ts +13 -13
  167. package/transitions/utils.d.ts +23 -23
  168. package/types/OverridableComponentAugmentation.d.ts +31 -31
  169. package/umd/material-ui.development.js +154 -83
  170. package/umd/material-ui.production.min.js +21 -21
  171. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  172. package/useTouchRipple/index.d.ts +1 -1
  173. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  174. package/utils/getScrollbarSize.d.ts +2 -2
  175. package/utils/ownerDocument.d.ts +2 -2
  176. package/utils/ownerWindow.d.ts +2 -2
  177. package/utils/setRef.d.ts +2 -2
package/locale/index.js CHANGED
@@ -1121,12 +1121,14 @@ export const faIR = {
1121
1121
  // if (type === 'previous') {
1122
1122
  return 'رفتن به صفحه‌ی قبلی';
1123
1123
  },
1124
- labelRowsPerPage: 'تعداد سطرهای هر صفحه:'
1125
- // labelDisplayedRows: ({ from, to, count }) =>
1126
- // `${from}–${to} از ${count !== -1 ? count : `more than ${to}`}`,
1124
+ labelRowsPerPage: 'تعداد سطرهای هر صفحه:',
1125
+ labelDisplayedRows: ({
1126
+ from,
1127
+ to,
1128
+ count
1129
+ }) => `${from}–${to} از ${count !== -1 ? count : `بیشتر از ${to}`}`
1127
1130
  }
1128
1131
  },
1129
-
1130
1132
  MuiRating: {
1131
1133
  defaultProps: {
1132
1134
  getLabelText: value => `${value} ستاره`,
@@ -2124,6 +2126,79 @@ export const koKR = {
2124
2126
  }
2125
2127
  }
2126
2128
  };
2129
+ export const kuLatn = {
2130
+ components: {
2131
+ MuiBreadcrumbs: {
2132
+ defaultProps: {
2133
+ expandText: 'Rê nîşan bide'
2134
+ }
2135
+ },
2136
+ MuiTablePagination: {
2137
+ defaultProps: {
2138
+ getItemAriaLabel: type => {
2139
+ if (type === 'first') {
2140
+ return 'Biçe rûpela yekem';
2141
+ }
2142
+ if (type === 'last') {
2143
+ return 'Biçe rûpela dawî';
2144
+ }
2145
+ if (type === 'next') {
2146
+ return 'Biçe rûpela din';
2147
+ }
2148
+ // if (type === 'previous') {
2149
+ return 'Biçe rûpela berê';
2150
+ },
2151
+ labelRowsPerPage: 'Rêz li ser rûpelê:',
2152
+ labelDisplayedRows: ({
2153
+ from,
2154
+ to,
2155
+ count
2156
+ }) => `${from}–${to} of ${count !== -1 ? count : `zêdetir ji ${to}`}`
2157
+ }
2158
+ },
2159
+ MuiRating: {
2160
+ defaultProps: {
2161
+ getLabelText: value => `${value} Stêrk`,
2162
+ emptyLabelText: 'Vala'
2163
+ }
2164
+ },
2165
+ MuiAutocomplete: {
2166
+ defaultProps: {
2167
+ clearText: 'Paqij bike',
2168
+ closeText: 'Bigre',
2169
+ loadingText: 'Tê barkirin…',
2170
+ noOptionsText: 'Vebijêrk tune',
2171
+ openText: 'Veke'
2172
+ }
2173
+ },
2174
+ MuiAlert: {
2175
+ defaultProps: {
2176
+ closeText: 'Bigre'
2177
+ }
2178
+ },
2179
+ MuiPagination: {
2180
+ defaultProps: {
2181
+ 'aria-label': 'Navîgasyona rûpelan',
2182
+ getItemAriaLabel: (type, page, selected) => {
2183
+ if (type === 'page') {
2184
+ return `${selected ? '' : 'Biçe '}rûpel ${page}`;
2185
+ }
2186
+ if (type === 'first') {
2187
+ return 'Biçe rûpela yekem';
2188
+ }
2189
+ if (type === 'last') {
2190
+ return 'Biçe rûpela dawî';
2191
+ }
2192
+ if (type === 'next') {
2193
+ return 'Biçe rûpela din';
2194
+ }
2195
+ // if (type === 'previous') {
2196
+ return 'Biçe rûpela berê';
2197
+ }
2198
+ }
2199
+ }
2200
+ }
2201
+ };
2127
2202
  export const kkKZ = {
2128
2203
  components: {
2129
2204
  MuiBreadcrumbs: {
File without changes
@@ -28,17 +28,17 @@ const PopperRoot = styled(PopperUnstyled, {
28
28
  */
29
29
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
30
30
  const theme = useTheme();
31
- const _useThemeProps = useThemeProps({
32
- props: inProps,
33
- name: 'MuiPopper'
34
- }),
35
- {
31
+ const props = useThemeProps({
32
+ props: inProps,
33
+ name: 'MuiPopper'
34
+ });
35
+ const {
36
36
  components,
37
37
  componentsProps,
38
38
  slots,
39
39
  slotProps
40
- } = _useThemeProps,
41
- other = _objectWithoutPropertiesLoose(_useThemeProps, _excluded);
40
+ } = props,
41
+ other = _objectWithoutPropertiesLoose(props, _excluded);
42
42
  const RootComponent = slots?.root ?? components?.Root;
43
43
  return /*#__PURE__*/_jsx(PopperRoot, _extends({
44
44
  direction: theme?.direction,
@@ -129,6 +129,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
129
129
  * If `true`, the component is shown.
130
130
  */
131
131
  open: PropTypes.bool.isRequired,
132
+ /**
133
+ * @ignore
134
+ */
135
+ ownerState: PropTypes.any,
132
136
  /**
133
137
  * Popper placement.
134
138
  * @default 'bottom'
@@ -159,6 +159,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
159
159
  setDisplayNode(node);
160
160
  }
161
161
  }, []);
162
+ const anchorElement = displayNode?.parentNode;
162
163
  React.useImperativeHandle(handleRef, () => ({
163
164
  focus: () => {
164
165
  displayRef.current.focus();
@@ -170,7 +171,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
170
171
  // Resize menu on `defaultOpen` automatic toggle.
171
172
  React.useEffect(() => {
172
173
  if (defaultOpen && openState && displayNode && !isOpenControlled) {
173
- setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
174
+ setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
174
175
  displayRef.current.focus();
175
176
  }
176
177
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -209,7 +210,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
209
210
  onClose(event);
210
211
  }
211
212
  if (!isOpenControlled) {
212
- setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
213
+ setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
213
214
  setOpenState(open);
214
215
  }
215
216
  };
@@ -365,7 +366,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
365
366
  if (value) {
366
367
  return selected;
367
368
  }
368
- const firstSelectableElement = arr.find(item => item.props.value !== undefined && item.props.disabled !== true);
369
+ const firstSelectableElement = arr.find(item => item?.props?.value !== undefined && item.props.disabled !== true);
369
370
  if (child === firstSelectableElement) {
370
371
  return true;
371
372
  }
@@ -386,7 +387,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
386
387
  }
387
388
  },
388
389
  role: 'option',
389
- selected: arr[0].props.value === undefined || arr[0].props.disabled === true ? isFirstSelectableElement() : selected,
390
+ selected: arr[0]?.props?.value === undefined || arr[0]?.props?.disabled === true ? isFirstSelectableElement() : selected,
390
391
  value: undefined,
391
392
  // The value is most likely not a valid HTML attribute.
392
393
  'data-value': child.props.value // Instead, we provide it as a data attribute.
@@ -423,7 +424,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
423
424
  // Avoid performing a layout computation in the render method.
424
425
  let menuMinWidth = menuMinWidthState;
425
426
  if (!autoWidth && isOpenControlled && displayNode) {
426
- menuMinWidth = displayNode.clientWidth;
427
+ menuMinWidth = anchorElement.clientWidth;
427
428
  }
428
429
  let tabIndex;
429
430
  if (typeof tabIndexProp !== 'undefined') {
@@ -481,7 +482,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
481
482
  ownerState: ownerState
482
483
  }), /*#__PURE__*/_jsx(Menu, _extends({
483
484
  id: `menu-${name || ''}`,
484
- anchorEl: displayNode,
485
+ anchorEl: anchorElement,
485
486
  open: open,
486
487
  onClose: handleClose,
487
488
  anchorOrigin: {
@@ -619,11 +619,6 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
619
619
  * @returns {string}
620
620
  */
621
621
  getAriaValueText: PropTypes.func,
622
- /**
623
- * Indicates whether the theme context has rtl direction. It is set automatically.
624
- * @default false
625
- */
626
- isRtl: PropTypes.bool,
627
622
  /**
628
623
  * Marks indicate predetermined values to which the user can move the slider.
629
624
  * If `true` the marks are spaced according the value of the `step` prop.
@@ -120,7 +120,11 @@ const TableCell = /*#__PURE__*/React.forwardRef(function TableCell(inProps, ref)
120
120
  component = isHeadCell ? 'th' : 'td';
121
121
  }
122
122
  let scope = scopeProp;
123
- if (!scope && isHeadCell) {
123
+ // scope is not a valid attribute for <td/> elements.
124
+ // source: https://html.spec.whatwg.org/multipage/tables.html#the-td-element
125
+ if (component === 'td') {
126
+ scope = undefined;
127
+ } else if (!scope && isHeadCell) {
124
128
  scope = 'col';
125
129
  }
126
130
  const variant = variantProp || tablelvl2 && tablelvl2.variant;
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.11.1
1
+ /** @license MUI v5.11.2
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.
@@ -1121,12 +1121,14 @@ export const faIR = {
1121
1121
  // if (type === 'previous') {
1122
1122
  return 'رفتن به صفحه‌ی قبلی';
1123
1123
  },
1124
- labelRowsPerPage: 'تعداد سطرهای هر صفحه:'
1125
- // labelDisplayedRows: ({ from, to, count }) =>
1126
- // `${from}–${to} از ${count !== -1 ? count : `more than ${to}`}`,
1124
+ labelRowsPerPage: 'تعداد سطرهای هر صفحه:',
1125
+ labelDisplayedRows: ({
1126
+ from,
1127
+ to,
1128
+ count
1129
+ }) => `${from}–${to} از ${count !== -1 ? count : `بیشتر از ${to}`}`
1127
1130
  }
1128
1131
  },
1129
-
1130
1132
  MuiRating: {
1131
1133
  defaultProps: {
1132
1134
  getLabelText: value => `${value} ستاره`,
@@ -2124,6 +2126,79 @@ export const koKR = {
2124
2126
  }
2125
2127
  }
2126
2128
  };
2129
+ export const kuLatn = {
2130
+ components: {
2131
+ MuiBreadcrumbs: {
2132
+ defaultProps: {
2133
+ expandText: 'Rê nîşan bide'
2134
+ }
2135
+ },
2136
+ MuiTablePagination: {
2137
+ defaultProps: {
2138
+ getItemAriaLabel: type => {
2139
+ if (type === 'first') {
2140
+ return 'Biçe rûpela yekem';
2141
+ }
2142
+ if (type === 'last') {
2143
+ return 'Biçe rûpela dawî';
2144
+ }
2145
+ if (type === 'next') {
2146
+ return 'Biçe rûpela din';
2147
+ }
2148
+ // if (type === 'previous') {
2149
+ return 'Biçe rûpela berê';
2150
+ },
2151
+ labelRowsPerPage: 'Rêz li ser rûpelê:',
2152
+ labelDisplayedRows: ({
2153
+ from,
2154
+ to,
2155
+ count
2156
+ }) => `${from}–${to} of ${count !== -1 ? count : `zêdetir ji ${to}`}`
2157
+ }
2158
+ },
2159
+ MuiRating: {
2160
+ defaultProps: {
2161
+ getLabelText: value => `${value} Stêrk`,
2162
+ emptyLabelText: 'Vala'
2163
+ }
2164
+ },
2165
+ MuiAutocomplete: {
2166
+ defaultProps: {
2167
+ clearText: 'Paqij bike',
2168
+ closeText: 'Bigre',
2169
+ loadingText: 'Tê barkirin…',
2170
+ noOptionsText: 'Vebijêrk tune',
2171
+ openText: 'Veke'
2172
+ }
2173
+ },
2174
+ MuiAlert: {
2175
+ defaultProps: {
2176
+ closeText: 'Bigre'
2177
+ }
2178
+ },
2179
+ MuiPagination: {
2180
+ defaultProps: {
2181
+ 'aria-label': 'Navîgasyona rûpelan',
2182
+ getItemAriaLabel: (type, page, selected) => {
2183
+ if (type === 'page') {
2184
+ return `${selected ? '' : 'Biçe '}rûpel ${page}`;
2185
+ }
2186
+ if (type === 'first') {
2187
+ return 'Biçe rûpela yekem';
2188
+ }
2189
+ if (type === 'last') {
2190
+ return 'Biçe rûpela dawî';
2191
+ }
2192
+ if (type === 'next') {
2193
+ return 'Biçe rûpela din';
2194
+ }
2195
+ // if (type === 'previous') {
2196
+ return 'Biçe rûpela berê';
2197
+ }
2198
+ }
2199
+ }
2200
+ }
2201
+ };
2127
2202
  export const kkKZ = {
2128
2203
  components: {
2129
2204
  MuiBreadcrumbs: {
File without changes
@@ -38,17 +38,17 @@ const PopperRoot = (0, _styles.styled)(_PopperUnstyled.default, {
38
38
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
39
39
  var _slots$root;
40
40
  const theme = (0, _system.useThemeWithoutDefault)();
41
- const _useThemeProps = (0, _styles.useThemeProps)({
42
- props: inProps,
43
- name: 'MuiPopper'
44
- }),
45
- {
41
+ const props = (0, _styles.useThemeProps)({
42
+ props: inProps,
43
+ name: 'MuiPopper'
44
+ });
45
+ const {
46
46
  components,
47
47
  componentsProps,
48
48
  slots,
49
49
  slotProps
50
- } = _useThemeProps,
51
- other = (0, _objectWithoutPropertiesLoose2.default)(_useThemeProps, _excluded);
50
+ } = props,
51
+ other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
52
52
  const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
53
53
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(PopperRoot, (0, _extends2.default)({
54
54
  direction: theme == null ? void 0 : theme.direction,
@@ -139,6 +139,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
139
139
  * If `true`, the component is shown.
140
140
  */
141
141
  open: _propTypes.default.bool.isRequired,
142
+ /**
143
+ * @ignore
144
+ */
145
+ ownerState: _propTypes.default.any,
142
146
  /**
143
147
  * Popper placement.
144
148
  * @default 'bottom'
@@ -166,6 +166,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
166
166
  setDisplayNode(node);
167
167
  }
168
168
  }, []);
169
+ const anchorElement = displayNode == null ? void 0 : displayNode.parentNode;
169
170
  React.useImperativeHandle(handleRef, () => ({
170
171
  focus: () => {
171
172
  displayRef.current.focus();
@@ -177,7 +178,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
177
178
  // Resize menu on `defaultOpen` automatic toggle.
178
179
  React.useEffect(() => {
179
180
  if (defaultOpen && openState && displayNode && !isOpenControlled) {
180
- setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
181
+ setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
181
182
  displayRef.current.focus();
182
183
  }
183
184
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -216,7 +217,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
216
217
  onClose(event);
217
218
  }
218
219
  if (!isOpenControlled) {
219
- setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
220
+ setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
220
221
  setOpenState(open);
221
222
  }
222
223
  };
@@ -336,6 +337,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
336
337
  }
337
338
  }
338
339
  const items = childrenArray.map((child, index, arr) => {
340
+ var _arr$, _arr$$props, _arr$2, _arr$2$props;
339
341
  if (! /*#__PURE__*/React.isValidElement(child)) {
340
342
  return null;
341
343
  }
@@ -372,7 +374,10 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
372
374
  if (value) {
373
375
  return selected;
374
376
  }
375
- const firstSelectableElement = arr.find(item => item.props.value !== undefined && item.props.disabled !== true);
377
+ const firstSelectableElement = arr.find(item => {
378
+ var _item$props;
379
+ return (item == null ? void 0 : (_item$props = item.props) == null ? void 0 : _item$props.value) !== undefined && item.props.disabled !== true;
380
+ });
376
381
  if (child === firstSelectableElement) {
377
382
  return true;
378
383
  }
@@ -393,7 +398,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
393
398
  }
394
399
  },
395
400
  role: 'option',
396
- selected: arr[0].props.value === undefined || arr[0].props.disabled === true ? isFirstSelectableElement() : selected,
401
+ selected: ((_arr$ = arr[0]) == null ? void 0 : (_arr$$props = _arr$.props) == null ? void 0 : _arr$$props.value) === undefined || ((_arr$2 = arr[0]) == null ? void 0 : (_arr$2$props = _arr$2.props) == null ? void 0 : _arr$2$props.disabled) === true ? isFirstSelectableElement() : selected,
397
402
  value: undefined,
398
403
  // The value is most likely not a valid HTML attribute.
399
404
  'data-value': child.props.value // Instead, we provide it as a data attribute.
@@ -430,7 +435,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
430
435
  // Avoid performing a layout computation in the render method.
431
436
  let menuMinWidth = menuMinWidthState;
432
437
  if (!autoWidth && isOpenControlled && displayNode) {
433
- menuMinWidth = displayNode.clientWidth;
438
+ menuMinWidth = anchorElement.clientWidth;
434
439
  }
435
440
  let tabIndex;
436
441
  if (typeof tabIndexProp !== 'undefined') {
@@ -488,7 +493,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
488
493
  ownerState: ownerState
489
494
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Menu.default, (0, _extends2.default)({
490
495
  id: `menu-${name || ''}`,
491
- anchorEl: displayNode,
496
+ anchorEl: anchorElement,
492
497
  open: open,
493
498
  onClose: handleClose,
494
499
  anchorOrigin: {
@@ -630,11 +630,6 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
630
630
  * @returns {string}
631
631
  */
632
632
  getAriaValueText: _propTypes.default.func,
633
- /**
634
- * Indicates whether the theme context has rtl direction. It is set automatically.
635
- * @default false
636
- */
637
- isRtl: _propTypes.default.bool,
638
633
  /**
639
634
  * Marks indicate predetermined values to which the user can move the slider.
640
635
  * If `true` the marks are spaced according the value of the `step` prop.
@@ -129,7 +129,11 @@ const TableCell = /*#__PURE__*/React.forwardRef(function TableCell(inProps, ref)
129
129
  component = isHeadCell ? 'th' : 'td';
130
130
  }
131
131
  let scope = scopeProp;
132
- if (!scope && isHeadCell) {
132
+ // scope is not a valid attribute for <td/> elements.
133
+ // source: https://html.spec.whatwg.org/multipage/tables.html#the-td-element
134
+ if (component === 'td') {
135
+ scope = undefined;
136
+ } else if (!scope && isHeadCell) {
133
137
  scope = 'col';
134
138
  }
135
139
  const variant = variantProp || tablelvl2 && tablelvl2.variant;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.11.1
1
+ /** @license MUI v5.11.2
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.
@@ -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.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.koKR = exports.kkKZ = 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.kuLatn = exports.koKR = exports.kkKZ = 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: {
@@ -1141,12 +1141,14 @@ const faIR = {
1141
1141
  // if (type === 'previous') {
1142
1142
  return 'رفتن به صفحه‌ی قبلی';
1143
1143
  },
1144
- labelRowsPerPage: 'تعداد سطرهای هر صفحه:'
1145
- // labelDisplayedRows: ({ from, to, count }) =>
1146
- // `${from}–${to} از ${count !== -1 ? count : `more than ${to}`}`,
1144
+ labelRowsPerPage: 'تعداد سطرهای هر صفحه:',
1145
+ labelDisplayedRows: ({
1146
+ from,
1147
+ to,
1148
+ count
1149
+ }) => `${from}–${to} از ${count !== -1 ? count : `بیشتر از ${to}`}`
1147
1150
  }
1148
1151
  },
1149
-
1150
1152
  MuiRating: {
1151
1153
  defaultProps: {
1152
1154
  getLabelText: value => `${value} ستاره`,
@@ -2155,6 +2157,80 @@ const koKR = {
2155
2157
  }
2156
2158
  };
2157
2159
  exports.koKR = koKR;
2160
+ const kuLatn = {
2161
+ components: {
2162
+ MuiBreadcrumbs: {
2163
+ defaultProps: {
2164
+ expandText: 'Rê nîşan bide'
2165
+ }
2166
+ },
2167
+ MuiTablePagination: {
2168
+ defaultProps: {
2169
+ getItemAriaLabel: type => {
2170
+ if (type === 'first') {
2171
+ return 'Biçe rûpela yekem';
2172
+ }
2173
+ if (type === 'last') {
2174
+ return 'Biçe rûpela dawî';
2175
+ }
2176
+ if (type === 'next') {
2177
+ return 'Biçe rûpela din';
2178
+ }
2179
+ // if (type === 'previous') {
2180
+ return 'Biçe rûpela berê';
2181
+ },
2182
+ labelRowsPerPage: 'Rêz li ser rûpelê:',
2183
+ labelDisplayedRows: ({
2184
+ from,
2185
+ to,
2186
+ count
2187
+ }) => `${from}–${to} of ${count !== -1 ? count : `zêdetir ji ${to}`}`
2188
+ }
2189
+ },
2190
+ MuiRating: {
2191
+ defaultProps: {
2192
+ getLabelText: value => `${value} Stêrk`,
2193
+ emptyLabelText: 'Vala'
2194
+ }
2195
+ },
2196
+ MuiAutocomplete: {
2197
+ defaultProps: {
2198
+ clearText: 'Paqij bike',
2199
+ closeText: 'Bigre',
2200
+ loadingText: 'Tê barkirin…',
2201
+ noOptionsText: 'Vebijêrk tune',
2202
+ openText: 'Veke'
2203
+ }
2204
+ },
2205
+ MuiAlert: {
2206
+ defaultProps: {
2207
+ closeText: 'Bigre'
2208
+ }
2209
+ },
2210
+ MuiPagination: {
2211
+ defaultProps: {
2212
+ 'aria-label': 'Navîgasyona rûpelan',
2213
+ getItemAriaLabel: (type, page, selected) => {
2214
+ if (type === 'page') {
2215
+ return `${selected ? '' : 'Biçe '}rûpel ${page}`;
2216
+ }
2217
+ if (type === 'first') {
2218
+ return 'Biçe rûpela yekem';
2219
+ }
2220
+ if (type === 'last') {
2221
+ return 'Biçe rûpela dawî';
2222
+ }
2223
+ if (type === 'next') {
2224
+ return 'Biçe rûpela din';
2225
+ }
2226
+ // if (type === 'previous') {
2227
+ return 'Biçe rûpela berê';
2228
+ }
2229
+ }
2230
+ }
2231
+ }
2232
+ };
2233
+ exports.kuLatn = kuLatn;
2158
2234
  const kkKZ = {
2159
2235
  components: {
2160
2236
  MuiBreadcrumbs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.11.1",
3
+ "version": "5.11.2",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -45,12 +45,12 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@babel/runtime": "^7.20.6",
49
- "@mui/base": "5.0.0-alpha.111",
50
- "@mui/core-downloads-tracker": "^5.11.1",
51
- "@mui/system": "^5.11.1",
48
+ "@babel/runtime": "^7.20.7",
49
+ "@mui/base": "5.0.0-alpha.112",
50
+ "@mui/core-downloads-tracker": "^5.11.2",
51
+ "@mui/system": "^5.11.2",
52
52
  "@mui/types": "^7.2.3",
53
- "@mui/utils": "^5.11.1",
53
+ "@mui/utils": "^5.11.2",
54
54
  "@types/react-transition-group": "^4.4.5",
55
55
  "clsx": "^1.2.1",
56
56
  "csstype": "^3.1.1",
@@ -1,16 +1,16 @@
1
- /// <reference types="react" />
2
- import { SupportedColorScheme } from './experimental_extendTheme';
3
- declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
4
- declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
5
- theme?: {
6
- cssVarPrefix?: string | undefined;
7
- colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
8
- } | undefined;
9
- documentNode?: Document | null | undefined;
10
- colorSchemeNode?: Element | null | undefined;
11
- colorSchemeSelector?: string | undefined;
12
- storageWindow?: Window | null | undefined;
13
- disableNestedContext?: boolean | undefined;
14
- disableStyleSheetGeneration?: boolean | undefined;
15
- }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
16
- export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
1
+ /// <reference types="react" />
2
+ import { SupportedColorScheme } from './experimental_extendTheme';
3
+ declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
4
+ declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
5
+ theme?: {
6
+ cssVarPrefix?: string | undefined;
7
+ colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
8
+ } | undefined;
9
+ documentNode?: Document | null | undefined;
10
+ colorSchemeNode?: Element | null | undefined;
11
+ colorSchemeSelector?: string | undefined;
12
+ storageWindow?: Window | null | undefined;
13
+ disableNestedContext?: boolean | undefined;
14
+ disableStyleSheetGeneration?: boolean | undefined;
15
+ }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
16
+ export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
@@ -1,5 +1,5 @@
1
- /**
2
- * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
3
- */
4
- declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
5
- export default excludeVariablesFromRoot;
1
+ /**
2
+ * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
3
+ */
4
+ declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
5
+ export default excludeVariablesFromRoot;
@@ -1,2 +1,2 @@
1
- declare const getOverlayAlpha: (elevation: number) => string;
2
- export default getOverlayAlpha;
1
+ declare const getOverlayAlpha: (elevation: number) => string;
2
+ export default getOverlayAlpha;
@@ -1 +1 @@
1
- export * from './transition';
1
+ export * from './transition';