Skip to content

Commit

Permalink
Run yarn docs:typescript:formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
zanivan committed Oct 19, 2023
1 parent 9aaec29 commit a99a43d
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/DiscreteSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const Slider = styled(BaseSlider)(
}
&.${sliderClasses.active} {
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[700] : blue[200]};
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[600] : blue[300]};
outline: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/DiscreteSliderMarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const Slider = styled(BaseSlider)(
}
&.${sliderClasses.active} {
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[700] : blue[200]};
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[600] : blue[300]};
outline: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/DiscreteSliderValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Slider = styled(BaseSlider)(
}
&.${sliderClasses.active} {
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[700] : blue[200]};
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[600] : blue[300]};
outline: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/LabeledValuesSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const Slider = styled(BaseSlider)(
text-align: center;
}
&.${sliderClasses.active} {
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[700] : blue[200]};
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[600] : blue[300]};
outline: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/RangeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const Slider = styled(BaseSlider)(
}
&.${sliderClasses.active} {
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[700] : blue[200]};
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[600] : blue[300]};
outline: none;
}
}
Expand Down
7 changes: 2 additions & 5 deletions docs/data/base/components/slider/UnstyledSlider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { styled, alpha, Box } from '@mui/system';
import { styled, Box } from '@mui/system';
import { Slider as BaseSlider, sliderClasses } from '@mui/base/Slider';

export default function UnstyledSlider() {
Expand Down Expand Up @@ -94,10 +94,7 @@ const Slider = styled(BaseSlider)(
}
&.${sliderClasses.active} {
box-shadow: 0 0 0 0.25rem ${alpha(
theme.palette.mode === 'light' ? blue[200] : blue[300],
0.3,
)};
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[600] : blue[300]};
}
}
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Slider = styled(BaseSlider)(
}
&.${sliderClasses.active} {
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[700] : blue[200]};
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[600] : blue[300]};
outline: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function Styles() {
}
.CustomSlider-thumb:hover {
box-shadow: 0 0 0 0.25rem ${alpha(isDarkMode ? cyan[300] : cyan[200], 0.3)};
box-shadow: 0 0 0 0.25rem ${alpha(isDarkMode ? cyan[300] : cyan[200], 0.5)};
}
.CustomSlider-thumb:focus-visible {
Expand All @@ -130,7 +130,7 @@ function Styles() {
}
.CustomSlider-thumb.${sliderClasses.active} {
box-shadow: 0 0 0 4px ${isDarkMode ? cyan[700] : cyan[200]};
box-shadow: 0 0 0 4px ${isDarkMode ? cyan[600] : cyan[300]};
}
`}</style>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Slider = styled(BaseSlider)(
}
&.${sliderClasses.active} {
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[700] : blue[200]};
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[600] : blue[300]};
outline: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Slider = React.forwardRef((props, ref) => {
className: clsx(
`absolute w-4 h-4 -ml-1.5 -mt-1.5 box-border rounded-full outline-0 border-[3px] border-solid border-current bg-white hover:shadow-outline-purple ${
focused || active
? 'shadow-[0_0_0_4px_#ddd6fe] dark:shadow-[0_0_0_4px_#a78bfa] outline-none'
? 'shadow-[0_0_0_4px_#e9d5ff] dark:shadow-[0_0_0_4px_#7e22ce] active:shadow-[0_0_0_4px_#d8b4fe] dark:active:shadow-[0_0_0_4px_#9333ea] outline-none'
: ''
}`,
resolvedSlotProps?.className,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/VerticalSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Slider = styled(BaseSlider)(
}
&.${sliderClasses.active} {
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[700] : blue[200]};
box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[600] : blue[300]};
outline: none;
}
}
Expand Down

0 comments on commit a99a43d

Please sign in to comment.