Skip to content

Commit

Permalink
Merge branch 'mui:next' into website-hero-spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
KenanYusuf authored May 23, 2024
2 parents b0cc798 + 1f86f90 commit 066cd6d
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 57 deletions.
32 changes: 15 additions & 17 deletions docs/data/material/components/steppers/VerticalLinearStepper.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function VerticalLinearStepper() {
<Step key={step.label}>
<StepLabel
optional={
index === 2 ? (
index === steps.length - 1 ? (
<Typography variant="caption">Last step</Typography>
) : null
}
Expand All @@ -61,22 +61,20 @@ export default function VerticalLinearStepper() {
<StepContent>
<Typography>{step.description}</Typography>
<Box sx={{ mb: 2 }}>
<div>
<Button
variant="contained"
onClick={handleNext}
sx={{ mt: 1, mr: 1 }}
>
{index === steps.length - 1 ? 'Finish' : 'Continue'}
</Button>
<Button
disabled={index === 0}
onClick={handleBack}
sx={{ mt: 1, mr: 1 }}
>
Back
</Button>
</div>
<Button
variant="contained"
onClick={handleNext}
sx={{ mt: 1, mr: 1 }}
>
{index === steps.length - 1 ? 'Finish' : 'Continue'}
</Button>
<Button
disabled={index === 0}
onClick={handleBack}
sx={{ mt: 1, mr: 1 }}
>
Back
</Button>
</Box>
</StepContent>
</Step>
Expand Down
32 changes: 15 additions & 17 deletions docs/data/material/components/steppers/VerticalLinearStepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function VerticalLinearStepper() {
<Step key={step.label}>
<StepLabel
optional={
index === 2 ? (
index === steps.length - 1 ? (
<Typography variant="caption">Last step</Typography>
) : null
}
Expand All @@ -61,22 +61,20 @@ export default function VerticalLinearStepper() {
<StepContent>
<Typography>{step.description}</Typography>
<Box sx={{ mb: 2 }}>
<div>
<Button
variant="contained"
onClick={handleNext}
sx={{ mt: 1, mr: 1 }}
>
{index === steps.length - 1 ? 'Finish' : 'Continue'}
</Button>
<Button
disabled={index === 0}
onClick={handleBack}
sx={{ mt: 1, mr: 1 }}
>
Back
</Button>
</div>
<Button
variant="contained"
onClick={handleNext}
sx={{ mt: 1, mr: 1 }}
>
{index === steps.length - 1 ? 'Finish' : 'Continue'}
</Button>
<Button
disabled={index === 0}
onClick={handleBack}
sx={{ mt: 1, mr: 1 }}
>
Back
</Button>
</Box>
</StepContent>
</Step>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/sandbox/Dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CODE_VARIANTS } from 'docs/src/modules/constants';
import type { MuiProductId } from 'docs/src/modules/utils/getProductInfoFromUrl';

const packagesWithBundledTypes = ['date-fns', '@emotion/react', '@emotion/styled', 'dayjs'];
const muiNpmOrgs = ['@mui', '@base_ui', '@pigment-css'];
const muiNpmOrgs = ['@mui', '@base_ui', '@pigment-css', '@toolpad'];

/**
* WARNING: Always uses `latest` typings.
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
"@types/lodash": "^4.17.4",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.33",
"@types/prettier": "^2.7.3",
"@types/react": "^18.2.55",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^6.21.0",
Expand Down
1 change: 0 additions & 1 deletion packages-internal/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"@types/doctrine": "^0.0.9",
"@types/lodash": "^4.17.4",
"@types/node": "^18.19.33",
"@types/prettier": "^2.7.3",
"@types/react": "^18.2.55",
"@types/uuid": "^9.0.8",
"chai": "^4.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Tabs/Tabs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function hasRightScrollButton(container) {

describe('<Tabs />', () => {
// tests mocking getBoundingClientRect prevent mocha to exit
const isJSDOM = navigator.userAgent === 'node.js';
const isJSDOM = /jsdom/.test(window.navigator.userAgent);

const { clock, render, renderToString } = createRenderer();

Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/internal/animate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('animate', () => {

before(function beforeHook() {
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
const isJSDOM = navigator.userAgent === 'node.js';
const isJSDOM = /jsdom/.test(window.navigator.userAgent);
if (isJSDOM || isSafari) {
// The test fails on Safari with just:
//
Expand Down
4 changes: 0 additions & 4 deletions packages/test-utils/src/createDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ function createDOM() {
}
global.window.Touch = Touch;

global.navigator = {
userAgent: 'node.js',
};

Object.keys(dom.window)
.filter((key) => !blacklist.includes(key))
.concat(whitelist)
Expand Down
10 changes: 0 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
"groupName": "Emotion",
"matchPackagePatterns": "@emotion/*"
},
{
"groupName": "WyW-in-JS",
"matchPackagePatterns": ["@wyw-in-js/*"]
},
{
"groupName": "Font awesome SVG icons",
"matchPackagePatterns": "@fortawesome/*"
Expand Down

0 comments on commit 066cd6d

Please sign in to comment.