@mui/x-data-grid-premium 7.29.1 → 7.29.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,60 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.29.2
7
+
8
+ _May 1, 2025_
9
+
10
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Add Armenian (hy-AM) locale on the Data Grid
13
+ - 🌍 Improve Italian (it-IT) locale on the Date and Time Pickers
14
+ - 🐞 Bugfixes
15
+
16
+ Special thanks go out to the community contributors who have helped make this release possible:
17
+ @ArturAghakaryan, @federico-ntr.
18
+
19
+ Following are all team members who have contributed to this release:
20
+ @arminmeh, @JCQuintas, @KenanYusuf, @MBilalShafi, @oliviertassinari.
21
+
22
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
23
+
24
+ ### Data Grid
25
+
26
+ #### `@mui/x-data-grid@7.29.2`
27
+
28
+ - [DataGrid] Fix column title truncation on touch devices (#17497) @KenanYusuf
29
+ - [DataGrid] Fix theme `defaultProps` causing unwanted re-renders (#17530) @KenanYusuf
30
+ - [l10n] Add Armenian (hy-AM) locale (#17422) @ArturAghakaryan
31
+ - [l10n] Fix l10n export (#17526) @arminmeh
32
+
33
+ #### `@mui/x-data-grid-pro@7.29.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.29.2`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.29.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@7.29.2`.
40
+
41
+ ### Date and Time Pickers
42
+
43
+ #### `@mui/x-date-pickers@7.29.2`
44
+
45
+ - [l10n] Improve Italian (it-IT) locale (#17604) @federico-ntr
46
+
47
+ #### `@mui/x-date-pickers-pro@7.29.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
48
+
49
+ Same changes as in `@mui/x-date-pickers@7.29.2`.
50
+
51
+ ### Docs
52
+
53
+ - [docs] Fix MUI X v7 install instructions (#17537) @oliviertassinari
54
+ - [docs] Improve data grid export docs (#17553) @MBilalShafi
55
+
56
+ ### Core
57
+
58
+ - [core] Fix root package 7.29.1 (#17523) @JCQuintas
59
+
6
60
  ## 7.29.1
7
61
 
8
62
  _Apr 23, 2025_
@@ -9,6 +9,7 @@ exports.useDataGridPremiumProps = exports.DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _styles = require("@mui/material/styles");
12
+ var _system = require("@mui/system");
12
13
  var _xDataGridPro = require("@mui/x-data-grid-pro");
13
14
  var _internals = require("@mui/x-data-grid-pro/internals");
14
15
  var _aggregation = require("../hooks/features/aggregation");
@@ -42,12 +43,12 @@ const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PREMIUM_PROPS_D
42
43
  });
43
44
  const defaultSlots = _dataGridPremiumDefaultSlotsComponents.DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
44
45
  const useDataGridPremiumProps = inProps => {
45
- const themedProps = (0, _internals.useProps)(
46
- // eslint-disable-next-line material-ui/mui-name-matches-component-name
47
- (0, _styles.useThemeProps)({
46
+ const theme = (0, _styles.useTheme)();
47
+ const themedProps = (0, _internals.useProps)(React.useMemo(() => (0, _system.getThemeProps)({
48
48
  props: inProps,
49
+ theme,
49
50
  name: 'MuiDataGrid'
50
- }));
51
+ }), [theme, inProps]));
51
52
  const localeText = React.useMemo(() => (0, _extends2.default)({}, _xDataGridPro.GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
52
53
  const slots = React.useMemo(() => (0, _internals.computeSlots)({
53
54
  defaultSlots,
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { useThemeProps } from '@mui/material/styles';
3
+ import { useTheme } from '@mui/material/styles';
4
+ import { getThemeProps } from '@mui/system';
4
5
  import { DATA_GRID_PRO_PROPS_DEFAULT_VALUES, GRID_DEFAULT_LOCALE_TEXT, GridSignature } from '@mui/x-data-grid-pro';
5
6
  import { computeSlots, useProps } from '@mui/x-data-grid-pro/internals';
6
7
  import { GRID_AGGREGATION_FUNCTIONS } from "../hooks/features/aggregation/index.js";
@@ -34,12 +35,12 @@ export const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PRO
34
35
  });
35
36
  const defaultSlots = DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
36
37
  export const useDataGridPremiumProps = inProps => {
37
- const themedProps = useProps(
38
- // eslint-disable-next-line material-ui/mui-name-matches-component-name
39
- useThemeProps({
38
+ const theme = useTheme();
39
+ const themedProps = useProps(React.useMemo(() => getThemeProps({
40
40
  props: inProps,
41
+ theme,
41
42
  name: 'MuiDataGrid'
42
- }));
43
+ }), [theme, inProps]));
43
44
  const localeText = React.useMemo(() => _extends({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
44
45
  const slots = React.useMemo(() => computeSlots({
45
46
  defaultSlots,
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTc0NTM1OTIwMDAwMA==";
3
+ const releaseInfo = "MTc0NjA0NjgwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.29.1
2
+ * @mui/x-data-grid-premium v7.29.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { useThemeProps } from '@mui/material/styles';
3
+ import { useTheme } from '@mui/material/styles';
4
+ import { getThemeProps } from '@mui/system';
4
5
  import { DATA_GRID_PRO_PROPS_DEFAULT_VALUES, GRID_DEFAULT_LOCALE_TEXT, GridSignature } from '@mui/x-data-grid-pro';
5
6
  import { computeSlots, useProps } from '@mui/x-data-grid-pro/internals';
6
7
  import { GRID_AGGREGATION_FUNCTIONS } from "../hooks/features/aggregation/index.js";
@@ -34,12 +35,12 @@ export const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PRO
34
35
  });
35
36
  const defaultSlots = DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
36
37
  export const useDataGridPremiumProps = inProps => {
37
- const themedProps = useProps(
38
- // eslint-disable-next-line material-ui/mui-name-matches-component-name
39
- useThemeProps({
38
+ const theme = useTheme();
39
+ const themedProps = useProps(React.useMemo(() => getThemeProps({
40
40
  props: inProps,
41
+ theme,
41
42
  name: 'MuiDataGrid'
42
- }));
43
+ }), [theme, inProps]));
43
44
  const localeText = React.useMemo(() => _extends({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
44
45
  const slots = React.useMemo(() => computeSlots({
45
46
  defaultSlots,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.29.1
2
+ * @mui/x-data-grid-premium v7.29.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTc0NTM1OTIwMDAwMA==";
3
+ const releaseInfo = "MTc0NjA0NjgwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "7.29.1",
3
+ "version": "7.29.2",
4
4
  "description": "The Premium plan edition of the Data Grid Components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -40,10 +40,10 @@
40
40
  "exceljs": "^4.4.0",
41
41
  "prop-types": "^15.8.1",
42
42
  "reselect": "^5.1.1",
43
- "@mui/x-data-grid-pro": "7.29.1",
44
- "@mui/x-data-grid": "7.29.1",
45
- "@mui/x-license": "7.29.1",
46
- "@mui/x-internals": "7.29.0"
43
+ "@mui/x-data-grid": "7.29.2",
44
+ "@mui/x-data-grid-pro": "7.29.2",
45
+ "@mui/x-internals": "7.29.0",
46
+ "@mui/x-license": "7.29.1"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@emotion/react": "^11.9.0",
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTc0NTM1OTIwMDAwMA==";
9
+ const releaseInfo = "MTc0NjA0NjgwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat