diff --git a/docs/data/joy/components/divider/DividerChildPosition.tsx b/docs/data/joy/components/divider/DividerChildPosition.tsx new file mode 100644 index 00000000000000..af8fd1480b4ab6 --- /dev/null +++ b/docs/data/joy/components/divider/DividerChildPosition.tsx @@ -0,0 +1,30 @@ +import * as React from 'react'; +import Box from '@mui/joy/Box'; +import Divider from '@mui/joy/Divider'; +import Stack from '@mui/joy/Stack'; +import Slider from '@mui/joy/Slider'; +import Sheet from '@mui/joy/Sheet'; + +export default function DividerChildPosition() { + const [position, setPosition] = React.useState>(50); + return ( + + + + + Visual indicator + + + + `${value}%`} + onChange={(event, value) => setPosition(value)} + /> + + ); +} diff --git a/docs/data/joy/components/divider/DividerChildPosition.tsx.preview b/docs/data/joy/components/divider/DividerChildPosition.tsx.preview new file mode 100644 index 00000000000000..b4e819e1959153 --- /dev/null +++ b/docs/data/joy/components/divider/DividerChildPosition.tsx.preview @@ -0,0 +1,16 @@ + + + + Visual indicator + + + + `${value}%`} + onChange={(event, value) => setPosition(value)} +/> \ No newline at end of file diff --git a/docs/data/joy/components/divider/DividerInCard.tsx b/docs/data/joy/components/divider/DividerInCard.tsx new file mode 100644 index 00000000000000..d0b5f14cda8bc6 --- /dev/null +++ b/docs/data/joy/components/divider/DividerInCard.tsx @@ -0,0 +1,51 @@ +import * as React from 'react'; +import Box from '@mui/joy/Box'; +import Button from '@mui/joy/Button'; +import Card, { CardProps } from '@mui/joy/Card'; +import Checkbox from '@mui/joy/Checkbox'; +import Divider from '@mui/joy/Divider'; +import Typography from '@mui/joy/Typography'; +import ArrowForward from '@mui/icons-material/ArrowForward'; + +export default function DividerInCard() { + const [orientation, setOrientation] = + React.useState('vertical'); + return ( + + + setOrientation(event.target.checked ? 'horizontal' : 'vertical') + } + sx={{ mb: 2 }} + /> + + + Headline + + + + + Lorem Ipsum is simply dummy text of the printing and typesetting + industry. Lorem Ipsum has been the industry standard dummy text ever + since the 1500s + + + + + + ); +} diff --git a/docs/data/joy/components/divider/DividerInModalDialog.tsx b/docs/data/joy/components/divider/DividerInModalDialog.tsx new file mode 100644 index 00000000000000..5a94fbeee4c79f --- /dev/null +++ b/docs/data/joy/components/divider/DividerInModalDialog.tsx @@ -0,0 +1,45 @@ +import * as React from 'react'; +import Box from '@mui/joy/Box'; +import Button from '@mui/joy/Button'; +import ModalDialog from '@mui/joy/ModalDialog'; +import Divider from '@mui/joy/Divider'; +import Typography from '@mui/joy/Typography'; + +export default function DividerInModalDialog() { + return ( + + + Modal Title + + + + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + Lorem Ipsum has been the industry standard dummy text ever since the 1500s + + + + + + + ); +} diff --git a/docs/data/joy/components/divider/DividerText.tsx b/docs/data/joy/components/divider/DividerText.tsx new file mode 100644 index 00000000000000..c2c82059a8f114 --- /dev/null +++ b/docs/data/joy/components/divider/DividerText.tsx @@ -0,0 +1,29 @@ +import * as React from 'react'; +import Box from '@mui/joy/Box'; +import Stack from '@mui/joy/Stack'; +import Divider from '@mui/joy/Divider'; +import Chip from '@mui/joy/Chip'; + +export default function DividerText() { + const content = ( + + {`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus id dignissim justo. + Nulla ut facilisis ligula. Interdum et malesuada fames ac ante ipsum primis in faucibus. + Sed malesuada lobortis pretium.`} + + ); + + return ( + + {content} + Visual indicator + {content} + + + Visual indicator + + + {content} + + ); +} diff --git a/docs/data/joy/components/divider/DividerText.tsx.preview b/docs/data/joy/components/divider/DividerText.tsx.preview new file mode 100644 index 00000000000000..7d0f50da1808ce --- /dev/null +++ b/docs/data/joy/components/divider/DividerText.tsx.preview @@ -0,0 +1,9 @@ +{content} +Visual indicator +{content} + + + Visual indicator + + +{content} \ No newline at end of file diff --git a/docs/data/joy/components/divider/DividerUsage.tsx b/docs/data/joy/components/divider/DividerUsage.tsx new file mode 100644 index 00000000000000..34dccb8bc6ee88 --- /dev/null +++ b/docs/data/joy/components/divider/DividerUsage.tsx @@ -0,0 +1,62 @@ +import * as React from 'react'; +import JoyUsageDemo from 'docs/src/modules/components/JoyUsageDemo'; +import Stack from '@mui/joy/Stack'; +import Sheet from '@mui/joy/Sheet'; +import Divider from '@mui/joy/Divider'; + +export default function DividerUsages() { + return ( + ( + + + + + + + + + )} + /> + ); +} diff --git a/docs/data/joy/components/divider/FullscreenOverflowDivider.tsx b/docs/data/joy/components/divider/FullscreenOverflowDivider.tsx new file mode 100644 index 00000000000000..18e1c5aa1c919e --- /dev/null +++ b/docs/data/joy/components/divider/FullscreenOverflowDivider.tsx @@ -0,0 +1,47 @@ +import * as React from 'react'; +import Box from '@mui/joy/Box'; +import Divider from '@mui/joy/Divider'; +import Checkbox from '@mui/joy/Checkbox'; + +export default function FullscreenOverflowDivider() { + const [shadow, setShadow] = React.useState(false); + const [clip, setClip] = React.useState(false); + return ( + + + + `rgba(${theme.vars.palette.success.lightChannel} / 0.5)`, + }} + > + + + + + setShadow(event.target.checked)} + /> + setClip(event.target.checked)} + /> + + + ); +} diff --git a/docs/data/joy/components/divider/VerticalDividerText.tsx b/docs/data/joy/components/divider/VerticalDividerText.tsx new file mode 100644 index 00000000000000..c938c7b7ad151e --- /dev/null +++ b/docs/data/joy/components/divider/VerticalDividerText.tsx @@ -0,0 +1,22 @@ +import * as React from 'react'; +import Box from '@mui/joy/Box'; +import Stack from '@mui/joy/Stack'; +import Divider from '@mui/joy/Divider'; + +export default function VerticalDividerText() { + const content = ( + + {`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus id dignissim justo. + Nulla ut facilisis ligula. Interdum et malesuada fames ac ante ipsum primis in faucibus. + Sed malesuada lobortis pretium.`} + + ); + + return ( + + {content} + Visual indicator + {content} + + ); +} diff --git a/docs/data/joy/components/divider/VerticalDividerText.tsx.preview b/docs/data/joy/components/divider/VerticalDividerText.tsx.preview new file mode 100644 index 00000000000000..3cebd0ee143955 --- /dev/null +++ b/docs/data/joy/components/divider/VerticalDividerText.tsx.preview @@ -0,0 +1,3 @@ +{content} +Visual indicator +{content} \ No newline at end of file diff --git a/docs/data/joy/components/divider/VerticalDividers.tsx b/docs/data/joy/components/divider/VerticalDividers.tsx new file mode 100644 index 00000000000000..8479ebed408d28 --- /dev/null +++ b/docs/data/joy/components/divider/VerticalDividers.tsx @@ -0,0 +1,40 @@ +import * as React from 'react'; +import FormatAlignLeftIcon from '@mui/icons-material/FormatAlignLeft'; +import FormatAlignCenterIcon from '@mui/icons-material/FormatAlignCenter'; +import FormatAlignRightIcon from '@mui/icons-material/FormatAlignRight'; +import FormatBoldIcon from '@mui/icons-material/FormatBold'; +import FormatItalicIcon from '@mui/icons-material/FormatItalic'; +import Box from '@mui/joy/Box'; +import Divider from '@mui/joy/Divider'; + +export default function VerticalDividers() { + return ( +
+ + + + + + + + +
+ ); +}