From 7ed32dfdca7be9142aea1d4e3f4334b699d282f2 Mon Sep 17 00:00:00 2001 From: Brijesh Bittu Date: Fri, 23 Feb 2024 20:37:14 +0530 Subject: [PATCH] [material] Remove unused dev dependency on @mui/lab (#41198) --- .../src/TimelineDot/color-palette-prop.spec.tsx | 15 +++++++++++++++ packages/mui-material/package.json | 1 - .../test/typescript/color-palette-prop.spec.tsx | 2 -- pnpm-lock.yaml | 3 --- 4 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 packages/mui-lab/src/TimelineDot/color-palette-prop.spec.tsx diff --git a/packages/mui-lab/src/TimelineDot/color-palette-prop.spec.tsx b/packages/mui-lab/src/TimelineDot/color-palette-prop.spec.tsx new file mode 100644 index 00000000000000..3702b0b0c914bb --- /dev/null +++ b/packages/mui-lab/src/TimelineDot/color-palette-prop.spec.tsx @@ -0,0 +1,15 @@ +import * as React from 'react'; +import TimelineDot from '@mui/lab/TimelineDot'; + +function TestBaseColorPaletteProp() { + const baseColorPalette = ['primary', 'secondary', 'error', 'info', 'success', 'warning'] as const; + return ( +
+ {baseColorPalette.map((color) => ( +
+ +
+ ))} +
+ ); +} diff --git a/packages/mui-material/package.json b/packages/mui-material/package.json index e7cb648f287dd7..c49f2e526f340c 100644 --- a/packages/mui-material/package.json +++ b/packages/mui-material/package.json @@ -58,7 +58,6 @@ "devDependencies": { "@mui/internal-babel-macros": "workspace:^", "@mui-internal/test-utils": "workspace:^", - "@mui/lab": "workspace:*", "@popperjs/core": "^2.11.8", "@rollup/plugin-replace": "^5.0.5", "@testing-library/dom": "^9.3.4", diff --git a/packages/mui-material/test/typescript/color-palette-prop.spec.tsx b/packages/mui-material/test/typescript/color-palette-prop.spec.tsx index 0b3cb37b90600a..0e8abd6b6001a9 100644 --- a/packages/mui-material/test/typescript/color-palette-prop.spec.tsx +++ b/packages/mui-material/test/typescript/color-palette-prop.spec.tsx @@ -1,5 +1,4 @@ import * as React from 'react'; -import TimelineDot from '@mui/lab/TimelineDot'; import { Badge, Button, @@ -39,7 +38,6 @@ function TestBaseColorPaletteProp() { - diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2215a34dc63821..505d313ec69d15 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1651,9 +1651,6 @@ importers: '@mui/internal-babel-macros': specifier: workspace:^ version: link:../mui-babel-macros - '@mui/lab': - specifier: workspace:* - version: link:../mui-lab/build '@popperjs/core': specifier: ^2.11.8 version: 2.11.8