@mui/x-tree-view 6.0.0-alpha.2 → 6.0.0-alpha.3

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,83 @@
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
+ ## 6.14.0
7
+
8
+ _Sep 14, 2023_
9
+
10
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Fix `YearCalendar` and `MonthCalendar` accessibility (#10312) @LukasTy
13
+
14
+ The `YearCalendar` and `MonthCalendar` items role has been changed from `button` to `radio` in order to improve the component's a11y support.
15
+ If you were relying on the mentioned components having a `button` role for items, you will need to update your usage to expect a `radio` role instead.
16
+
17
+ - 🌍 Improve Japanese (ja-JP), Persian (fa-IR), and Vietnamese (vi-VN) locales on the data grid
18
+ - 🐞 Bugfixes
19
+ - 📚 Documentation improvements
20
+
21
+ ### Data Grid
22
+
23
+ #### `@mui/x-data-grid@6.14.0`
24
+
25
+ - [l10n] Improve Japanese (ja-JP) locale (#10299) @makoto14
26
+ - [l10n] Improve Persian (fa-IR) locale (#10277) @aminsaedi
27
+ - [l10n] Improve Vietnamese (vi-VN) locale (#10280) @khangnguyen2100
28
+
29
+ #### `@mui/x-data-grid-pro@6.14.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
30
+
31
+ Same changes as in `@mui/x-data-grid@6.14.0`.
32
+
33
+ #### `@mui/x-data-grid-premium@6.14.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
34
+
35
+ Same changes as in `@mui/x-data-grid-pro@6.14.0`, plus:
36
+
37
+ - [DataGridPremium] Fix clipboard import cutting off at 100 rows (#9930) @gitstart
38
+
39
+ ### Date Pickers
40
+
41
+ #### `@mui/x-date-pickers@6.14.0`
42
+
43
+ - [pickers] Fix `YearCalendar` and `MonthCalendar` a11y (#10312) @LukasTy
44
+ - [pickers] Localize `TimeClock` meridiem text (#10324) @LukasTy
45
+
46
+ #### `@mui/x-date-pickers-pro@6.14.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
+
48
+ Same changes as in `@mui/x-date-pickers@6.14.0`.
49
+
50
+ ### Charts / `@mui/x-charts@6.0.0-alpha.11`
51
+
52
+ - [charts] Add default `barGapRatio` and increase `categoryGapRatio` (#10317) @LukasTy
53
+ - [charts] Enable `eslint` on the package (#10330) @LukasTy
54
+
55
+ ### Tree View / `@mui/x-tree-view@6.0.0-alpha.3`
56
+
57
+ - [TreeView] Fix box-sizing dependency (#10255) @oliviertassinari
58
+
59
+ ### Docs
60
+
61
+ - [docs] Add conditional range picker props example (#10227) @LukasTy
62
+ - [docs] Add toolbar to the multi-filters demo (#10223) @MBilalShafi
63
+ - [docs] Avoid the use of "We" @oliviertassinari
64
+ - [docs] Clarify MUI vs. MUI Core difference @oliviertassinari
65
+ - [docs] Enable `ariaV7` flag for demos using `useDemoData` hook (#10204) @cherniavskii
66
+ - [docs] Fix Tree View link to API references (#10282) @oliviertassinari
67
+ - [docs] Fix image layout shift (#10313) @oliviertassinari
68
+ - [docs] Fix link to MUI X from readme logo @oliviertassinari
69
+ - [docs] Fix redirection to Base UI URLs @oliviertassinari
70
+ - [docs] Improve Tree View demos (#10268) @oliviertassinari
71
+ - [docs] Improve docs for ref type props (#10273) @michelengelen
72
+ - [docs] Improve npm package README (#10269) @oliviertassinari
73
+ - [docs] Improve the clarity of the npm links @oliviertassinari
74
+ - [docs] Keep installation readme simple @oliviertassinari
75
+ - [docs] Make each component feel more standalone @oliviertassinari
76
+
77
+ ### Core
78
+
79
+ - [core] Add types extension for clarity @oliviertassinari
80
+ - [core] Set logo height to fix layout shift in GitHub @oliviertassinari
81
+ - [core] TrapFocus was renamed to FocusTrap @oliviertassinari
82
+
6
83
  ## 6.13.0
7
84
 
8
85
  _Sep 8, 2023_
@@ -12,6 +89,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
12
89
  - 🎁 Fix `anchorRef` behavior on range pickers (#10077) @LukasTy
13
90
 
14
91
  The range picker popup will now be anchored to the first input element and left aligned like other pickers.
92
+
15
93
  - 🌍 Improve Slovak (sk-SK) locale on the data grid
16
94
  - 🐞 Bugfixes
17
95
  - 📚 Documentation improvements
@@ -1838,7 +1916,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
1838
1916
  #### Changes
1839
1917
 
1840
1918
  - [DataGrid] Add interface for `singleSelect` column (#7685) @m4theushw
1841
- - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7733) @ivek-Prajapatii
1919
+ - [DataGrid] Allow to pass props to the `FocusTrap` inside the panel wrapper (#7733) @ivek-Prajapatii
1842
1920
  - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7857) @cherniavskii
1843
1921
  - [DataGridPro] Change cursor when dragging a column (#7725) @sai6855
1844
1922
  - [DataGridPremium] Fix `leafField` to have correct focus value (#7950) @MBilalShafi
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # @mui/x-tree-view
1
+ # MUI X Tree View
2
2
 
3
3
  This package is the community edition of the tree view components.
4
- It's part of MUI X, an open-core extension of MUI, with advanced components.
4
+ It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components.
5
5
 
6
6
  ## Installation
7
7
 
@@ -11,12 +11,6 @@ Install the package in your project directory with:
11
11
  npm install @mui/x-tree-view
12
12
  ```
13
13
 
14
- or
15
-
16
- ```bash
17
- yarn add @mui/x-tree-view
18
- ```
19
-
20
14
  This component has the following peer dependencies that you will need to install as well.
21
15
 
22
16
  ```json
@@ -30,4 +24,4 @@ This component has the following peer dependencies that you will need to install
30
24
 
31
25
  ## Documentation
32
26
 
33
- WIP
27
+ Visit [https://mui.com/x/react-tree-view/](https://mui.com/x/react-tree-view/) to view the full documentation.
@@ -4,10 +4,10 @@ import { TreeItemProps } from './TreeItem.types';
4
4
  *
5
5
  * Demos:
6
6
  *
7
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
7
+ * - [Tree View](https://mui.com/x/react-tree-view/)
8
8
  *
9
9
  * API:
10
10
  *
11
- * - [TreeItem API](https://mui.com/material-ui/api/tree-item/)
11
+ * - [TreeItem API](https://mui.com/x/api/tree-view/tree-item/)
12
12
  */
13
13
  export declare const TreeItem: React.ForwardRefExoticComponent<TreeItemProps & React.RefAttributes<HTMLLIElement>>;
@@ -59,6 +59,8 @@ const StyledTreeItemContent = styled(TreeItemContent, {
59
59
  }) => ({
60
60
  padding: '0 8px',
61
61
  width: '100%',
62
+ boxSizing: 'border-box',
63
+ // prevent width + padding to overflow
62
64
  display: 'flex',
63
65
  alignItems: 'center',
64
66
  cursor: 'pointer',
@@ -101,10 +103,12 @@ const StyledTreeItemContent = styled(TreeItemContent, {
101
103
  }
102
104
  },
103
105
  [`& .${treeItemClasses.label}`]: _extends({
106
+ paddingLeft: 4,
104
107
  width: '100%',
108
+ boxSizing: 'border-box',
109
+ // prevent width + padding to overflow
105
110
  // fixes overflow - see https://github.com/mui/material-ui/issues/27372
106
111
  minWidth: 0,
107
- paddingLeft: 4,
108
112
  position: 'relative'
109
113
  }, theme.typography.body1)
110
114
  }));
@@ -122,11 +126,11 @@ const TreeItemGroup = styled(Collapse, {
122
126
  *
123
127
  * Demos:
124
128
  *
125
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
129
+ * - [Tree View](https://mui.com/x/react-tree-view/)
126
130
  *
127
131
  * API:
128
132
  *
129
- * - [TreeItem API](https://mui.com/material-ui/api/tree-item/)
133
+ * - [TreeItem API](https://mui.com/x/api/tree-view/tree-item/)
130
134
  */
131
135
  export const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
132
136
  const props = useThemeProps({
@@ -4,11 +4,11 @@ import { TreeViewProps } from './TreeView.types';
4
4
  *
5
5
  * Demos:
6
6
  *
7
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
7
+ * - [Tree View](https://mui.com/x/react-tree-view/)
8
8
  *
9
9
  * API:
10
10
  *
11
- * - [TreeView API](https://mui.com/material-ui/api/tree-view/)
11
+ * - [TreeView API](https://mui.com/x/api/tree-view/tree-view/)
12
12
  */
13
13
  declare const TreeView: React.ForwardRefExoticComponent<TreeViewProps & React.RefAttributes<HTMLUListElement>>;
14
14
  export { TreeView };
@@ -54,11 +54,11 @@ const defaultDefaultSelected = [];
54
54
  *
55
55
  * Demos:
56
56
  *
57
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
57
+ * - [Tree View](https://mui.com/x/react-tree-view/)
58
58
  *
59
59
  * API:
60
60
  *
61
- * - [TreeView API](https://mui.com/material-ui/api/tree-view/)
61
+ * - [TreeView API](https://mui.com/x/api/tree-view/tree-view/)
62
62
  */
63
63
  const TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
64
64
  var _themeProps$disabledI, _themeProps$disableSe, _themeProps$multiSele, _themeProps$defaultEx, _themeProps$defaultSe;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v6.0.0-alpha.2
2
+ * @mui/x-tree-view v6.0.0-alpha.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -58,6 +58,8 @@ var StyledTreeItemContent = styled(TreeItemContent, {
58
58
  return _ref4 = {
59
59
  padding: '0 8px',
60
60
  width: '100%',
61
+ boxSizing: 'border-box',
62
+ // prevent width + padding to overflow
61
63
  display: 'flex',
62
64
  alignItems: 'center',
63
65
  cursor: 'pointer',
@@ -95,10 +97,12 @@ var StyledTreeItemContent = styled(TreeItemContent, {
95
97
  fontSize: 18
96
98
  }
97
99
  }), _defineProperty(_ref4, "& .".concat(treeItemClasses.label), _extends({
100
+ paddingLeft: 4,
98
101
  width: '100%',
102
+ boxSizing: 'border-box',
103
+ // prevent width + padding to overflow
99
104
  // fixes overflow - see https://github.com/mui/material-ui/issues/27372
100
105
  minWidth: 0,
101
- paddingLeft: 4,
102
106
  position: 'relative'
103
107
  }, theme.typography.body1)), _ref4;
104
108
  });
@@ -118,11 +122,11 @@ var TreeItemGroup = styled(Collapse, {
118
122
  *
119
123
  * Demos:
120
124
  *
121
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
125
+ * - [Tree View](https://mui.com/x/react-tree-view/)
122
126
  *
123
127
  * API:
124
128
  *
125
- * - [TreeItem API](https://mui.com/material-ui/api/tree-item/)
129
+ * - [TreeItem API](https://mui.com/x/api/tree-view/tree-item/)
126
130
  */
127
131
  export var TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
128
132
  var props = useThemeProps({
@@ -55,11 +55,11 @@ var defaultDefaultSelected = [];
55
55
  *
56
56
  * Demos:
57
57
  *
58
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
58
+ * - [Tree View](https://mui.com/x/react-tree-view/)
59
59
  *
60
60
  * API:
61
61
  *
62
- * - [TreeView API](https://mui.com/material-ui/api/tree-view/)
62
+ * - [TreeView API](https://mui.com/x/api/tree-view/tree-view/)
63
63
  */
64
64
  var TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
65
65
  var _themeProps$disabledI, _themeProps$disableSe, _themeProps$multiSele, _themeProps$defaultEx, _themeProps$defaultSe;
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v6.0.0-alpha.2
2
+ * @mui/x-tree-view v6.0.0-alpha.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -59,6 +59,8 @@ const StyledTreeItemContent = styled(TreeItemContent, {
59
59
  }) => ({
60
60
  padding: '0 8px',
61
61
  width: '100%',
62
+ boxSizing: 'border-box',
63
+ // prevent width + padding to overflow
62
64
  display: 'flex',
63
65
  alignItems: 'center',
64
66
  cursor: 'pointer',
@@ -101,10 +103,12 @@ const StyledTreeItemContent = styled(TreeItemContent, {
101
103
  }
102
104
  },
103
105
  [`& .${treeItemClasses.label}`]: _extends({
106
+ paddingLeft: 4,
104
107
  width: '100%',
108
+ boxSizing: 'border-box',
109
+ // prevent width + padding to overflow
105
110
  // fixes overflow - see https://github.com/mui/material-ui/issues/27372
106
111
  minWidth: 0,
107
- paddingLeft: 4,
108
112
  position: 'relative'
109
113
  }, theme.typography.body1)
110
114
  }));
@@ -122,11 +126,11 @@ const TreeItemGroup = styled(Collapse, {
122
126
  *
123
127
  * Demos:
124
128
  *
125
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
129
+ * - [Tree View](https://mui.com/x/react-tree-view/)
126
130
  *
127
131
  * API:
128
132
  *
129
- * - [TreeItem API](https://mui.com/material-ui/api/tree-item/)
133
+ * - [TreeItem API](https://mui.com/x/api/tree-view/tree-item/)
130
134
  */
131
135
  export const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
132
136
  const props = useThemeProps({
@@ -54,11 +54,11 @@ const defaultDefaultSelected = [];
54
54
  *
55
55
  * Demos:
56
56
  *
57
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
57
+ * - [Tree View](https://mui.com/x/react-tree-view/)
58
58
  *
59
59
  * API:
60
60
  *
61
- * - [TreeView API](https://mui.com/material-ui/api/tree-view/)
61
+ * - [TreeView API](https://mui.com/x/api/tree-view/tree-view/)
62
62
  */
63
63
  const TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
64
64
  const themeProps = useThemeProps({
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v6.0.0-alpha.2
2
+ * @mui/x-tree-view v6.0.0-alpha.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -67,6 +67,8 @@ const StyledTreeItemContent = (0, _styles.styled)(_TreeItemContent.TreeItemConte
67
67
  }) => ({
68
68
  padding: '0 8px',
69
69
  width: '100%',
70
+ boxSizing: 'border-box',
71
+ // prevent width + padding to overflow
70
72
  display: 'flex',
71
73
  alignItems: 'center',
72
74
  cursor: 'pointer',
@@ -109,10 +111,12 @@ const StyledTreeItemContent = (0, _styles.styled)(_TreeItemContent.TreeItemConte
109
111
  }
110
112
  },
111
113
  [`& .${_treeItemClasses.treeItemClasses.label}`]: (0, _extends2.default)({
114
+ paddingLeft: 4,
112
115
  width: '100%',
116
+ boxSizing: 'border-box',
117
+ // prevent width + padding to overflow
113
118
  // fixes overflow - see https://github.com/mui/material-ui/issues/27372
114
119
  minWidth: 0,
115
- paddingLeft: 4,
116
120
  position: 'relative'
117
121
  }, theme.typography.body1)
118
122
  }));
@@ -130,11 +134,11 @@ const TreeItemGroup = (0, _styles.styled)(_Collapse.default, {
130
134
  *
131
135
  * Demos:
132
136
  *
133
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
137
+ * - [Tree View](https://mui.com/x/react-tree-view/)
134
138
  *
135
139
  * API:
136
140
  *
137
- * - [TreeItem API](https://mui.com/material-ui/api/tree-item/)
141
+ * - [TreeItem API](https://mui.com/x/api/tree-view/tree-item/)
138
142
  */
139
143
  const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
140
144
  const props = (0, _styles.useThemeProps)({
@@ -63,11 +63,11 @@ const defaultDefaultSelected = [];
63
63
  *
64
64
  * Demos:
65
65
  *
66
- * - [Tree View](https://mui.com/material-ui/react-tree-view/)
66
+ * - [Tree View](https://mui.com/x/react-tree-view/)
67
67
  *
68
68
  * API:
69
69
  *
70
- * - [TreeView API](https://mui.com/material-ui/api/tree-view/)
70
+ * - [TreeView API](https://mui.com/x/api/tree-view/tree-view/)
71
71
  */
72
72
  const TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
73
73
  const themeProps = (0, _styles.useThemeProps)({
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v6.0.0-alpha.2
2
+ * @mui/x-tree-view v6.0.0-alpha.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-tree-view",
3
- "version": "6.0.0-alpha.2",
3
+ "version": "6.0.0-alpha.3",
4
4
  "description": "The community edition of the tree view components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.22.15",
35
- "@mui/base": "^5.0.0-alpha.87",
36
- "@mui/utils": "^5.14.7",
35
+ "@mui/base": "^5.0.0-beta.14",
36
+ "@mui/utils": "^5.14.8",
37
37
  "@types/react-transition-group": "^4.4.6",
38
38
  "clsx": "^2.0.0",
39
39
  "prop-types": "^15.8.1",