Skip to content

Commit a44c5e5

Browse files
committed
Merge remote-tracking branch 'upstream/master' into tooltip-docs
2 parents f46a1af + ab23dc3 commit a44c5e5

131 files changed

Lines changed: 1658 additions & 845 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,5 +343,13 @@ module.exports = {
343343
...addReactCompilerRule(PICKERS_PACKAGES, ENABLE_REACT_COMPILER_PLUGIN_DATE_PICKERS),
344344
...addReactCompilerRule(TREE_VIEW_PACKAGES, ENABLE_REACT_COMPILER_PLUGIN_TREE_VIEW),
345345
...addReactCompilerRule(SCHEDULER_PACKAGES, ENABLE_REACT_COMPILER_PLUGIN_SCHEDULER),
346+
347+
// We can't use the react-compiler plugin in the base-ui-utils folder because the Base UI team doesn't use it yet.
348+
{
349+
files: ['packages/x-scheduler/src/base-ui-copy/**/*{.tsx,.ts,.js}'],
350+
rules: {
351+
'react-compiler/react-compiler': 'off',
352+
},
353+
},
346354
],
347355
};

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
if: github.repository == 'mui/mui-x'
1818
steps:
1919
- run: echo "${{ github.actor }}"
20-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121
with:
2222
fetch-depth: 0
2323
- name: Set up pnpm
2424
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
2525
- name: Use Node.js 23.x
26-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
26+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2727
with:
2828
node-version: 23
2929
cache: 'pnpm' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020
# Initializes the CodeQL tools for scanning.
2121
- name: Initialize CodeQL
22-
uses: github/codeql-action/init@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
22+
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
2323
with:
2424
languages: typescript
2525
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -29,4 +29,4 @@ jobs:
2929
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
3030
# queries: security-extended,security-and-quality
3131
- name: Perform CodeQL Analysis
32-
uses: github/codeql-action/analyze@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
32+
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ jobs:
4040
publish_results: true
4141
# Upload the results to GitHub's code scanning dashboard.
4242
- name: Upload to code-scanning
43-
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
43+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
4444
with:
4545
sarif_file: results.sarif

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ module.exports = function getBabelConfig(api) {
9292
ignoreFilenames: ['DataGrid.tsx', 'DataGridPro.tsx'],
9393
},
9494
],
95+
'@mui/internal-babel-plugin-display-name',
9596
[
9697
'transform-inline-environment-variables',
9798
{
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import * as React from 'react';
2+
import Box from '@mui/material/Box';
3+
import { Unstable_FunnelChart as FunnelChart } from '@mui/x-charts-pro/FunnelChart';
4+
5+
export default function PyramidFunnel() {
6+
return (
7+
<Box sx={{ width: '100%', maxWidth: 400 }}>
8+
<FunnelChart
9+
series={[
10+
{
11+
curve: 'pyramid',
12+
data: [{ value: 10 }, { value: 90 }, { value: 180 }, { value: 400 }],
13+
},
14+
]}
15+
height={300}
16+
/>
17+
</Box>
18+
);
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import * as React from 'react';
2+
import Box from '@mui/material/Box';
3+
import { Unstable_FunnelChart as FunnelChart } from '@mui/x-charts-pro/FunnelChart';
4+
5+
export default function PyramidFunnel() {
6+
return (
7+
<Box sx={{ width: '100%', maxWidth: 400 }}>
8+
<FunnelChart
9+
series={[
10+
{
11+
curve: 'pyramid',
12+
data: [{ value: 10 }, { value: 90 }, { value: 180 }, { value: 400 }],
13+
},
14+
]}
15+
height={300}
16+
/>
17+
</Box>
18+
);
19+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<FunnelChart
2+
series={[
3+
{
4+
curve: 'pyramid',
5+
data: [{ value: 10 }, { value: 90 }, { value: 180 }, { value: 400 }],
6+
},
7+
]}
8+
height={300}
9+
/>

docs/data/charts/funnel/funnel.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ To disable the legend, set the `hideLegend` prop to `true`.
2929

3030
{{"demo": "FunnelLegend.js"}}
3131

32+
## Pyramid Chart
33+
34+
The pyramid chart is a variation of the funnel chart.
35+
36+
To create a pyramid chart, set the `curve` property to `pyramid` in the series.
37+
38+
{{"demo": "PyramidFunnel.js"}}
39+
3240
## Labels
3341

3442
The funnel chart displays labels by default.

docs/data/charts/zoom-and-pan/zoom-and-pan.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ You can provide an overview and allow the manipulation of the zoomed area by set
6262

6363
{{"demo": "ZoomSlider.js"}}
6464

65+
You can set the `zoom.slider.size` property to customize the size reserved for the zoom slider.
66+
This can be useful if you're using a custom zoom slider and want to update the space reserved for it.
67+
If you're using the default zoom slider, updating `zoom.slider.size` effectively changes the padding around the slider.
68+
69+
The size is the height on an x-axis and the width on a y-axis.
70+
6571
### Composition
6672

6773
When using composition, you can render the axes' sliders by rendering the `ChartZoomSlider` component.

0 commit comments

Comments
 (0)