diff --git a/docs/data/joy/components/alert/alert.md b/docs/data/joy/components/alert/alert.md index 0e59224b6233cf..16cea74836fdf5 100644 --- a/docs/data/joy/components/alert/alert.md +++ b/docs/data/joy/components/alert/alert.md @@ -18,7 +18,7 @@ Alerts should not be confused with alert _dialogs_ ([ARIA](https://www.w3.org/WA Use the Joy UI [Modal](https://mui.com/joy-ui/react-modal/) if you need the behavior of a dialog. ::: -{{"demo": "AlertUsage.js", "hideToolbar": true}} +{{"demo": "AlertUsage.js", "hideToolbar": true, "bg": "gradient"}} {{"component": "modules/components/ComponentLinkHeader.js", "design": false}} diff --git a/docs/data/joy/components/autocomplete/CustomTags.js b/docs/data/joy/components/autocomplete/CustomTags.js index 7e808ccc86ed50..1b83a19a03b900 100644 --- a/docs/data/joy/components/autocomplete/CustomTags.js +++ b/docs/data/joy/components/autocomplete/CustomTags.js @@ -9,7 +9,6 @@ export default function CustomTags() { id="tags-default" multiple placeholder="Favorites" - variant="soft" options={top100Films} getOptionLabel={(option) => option.title} defaultValue={[top100Films[13]]} diff --git a/docs/data/joy/components/autocomplete/CustomTags.tsx b/docs/data/joy/components/autocomplete/CustomTags.tsx index 7e808ccc86ed50..1b83a19a03b900 100644 --- a/docs/data/joy/components/autocomplete/CustomTags.tsx +++ b/docs/data/joy/components/autocomplete/CustomTags.tsx @@ -9,7 +9,6 @@ export default function CustomTags() { id="tags-default" multiple placeholder="Favorites" - variant="soft" options={top100Films} getOptionLabel={(option) => option.title} defaultValue={[top100Films[13]]} diff --git a/docs/data/joy/components/autocomplete/Playground.js b/docs/data/joy/components/autocomplete/Playground.js index 0420a8dbc8dd9f..2fc136eb690ba3 100644 --- a/docs/data/joy/components/autocomplete/Playground.js +++ b/docs/data/joy/components/autocomplete/Playground.js @@ -27,12 +27,14 @@ export default function Playground() { @@ -43,7 +45,7 @@ export default function Playground() { {...flags.reduce((prev, current) => ({ ...prev, [current]: true }), {})} /> - + Flags {flags.length ? `(${flags.length})` : ''} @@ -68,6 +71,7 @@ export default function Playground() { )} + - {['mobile', 'laptop', 'monitor'].map((item) => ( + {['Mobile', 'Laptop', 'Monitor'].map((item) => ( { { - mobile: , - laptop: , - monitor: , + Mobile: , + Laptop: , + Monitor: , }[item] } diff --git a/docs/data/joy/components/checkbox/ExampleChoiceChipCheckbox.js b/docs/data/joy/components/checkbox/ExampleChoiceChipCheckbox.js index c916604acba5d5..c199896884f320 100644 --- a/docs/data/joy/components/checkbox/ExampleChoiceChipCheckbox.js +++ b/docs/data/joy/components/checkbox/ExampleChoiceChipCheckbox.js @@ -10,7 +10,10 @@ import Done from '@mui/icons-material/Done'; export default function ExampleChoiceChipCheckbox() { const [value, setValue] = React.useState([]); return ( - + Choose amenities diff --git a/docs/data/joy/components/checkbox/ExampleFilterMemberCheckbox.js b/docs/data/joy/components/checkbox/ExampleFilterMemberCheckbox.js index 8eb97877bc7302..01114edfde01cd 100644 --- a/docs/data/joy/components/checkbox/ExampleFilterMemberCheckbox.js +++ b/docs/data/joy/components/checkbox/ExampleFilterMemberCheckbox.js @@ -19,6 +19,7 @@ export default function ExampleFilterMemberCheckbox() { variant="outlined" sx={{ p: 2, + bgcolor: 'background.body', borderRadius: 'sm', width: 360, maxWidth: '100%', diff --git a/docs/data/joy/components/checkbox/ExampleFilterStatusCheckbox.js b/docs/data/joy/components/checkbox/ExampleFilterStatusCheckbox.js index bd6e8db8bab2a3..f80008ec27bc72 100644 --- a/docs/data/joy/components/checkbox/ExampleFilterStatusCheckbox.js +++ b/docs/data/joy/components/checkbox/ExampleFilterStatusCheckbox.js @@ -14,7 +14,10 @@ export default function ExampleFilterStatusCheckbox() { wrongAddress: false, }); return ( - + div': { p: 2, boxShadow: 'sm', borderRadius: 'xs', display: 'flex' }, }} > - + - + ( - + diff --git a/docs/data/joy/components/divider/divider.md b/docs/data/joy/components/divider/divider.md index 9aa5fd90e2e35f..dfd5a051079b84 100644 --- a/docs/data/joy/components/divider/divider.md +++ b/docs/data/joy/components/divider/divider.md @@ -12,7 +12,7 @@ githubLabel: 'component: divider' Dividers separate content into clear groups. -{{"demo": "DividerUsage.js", "hideToolbar": "true"}} +{{"demo": "DividerUsage.js", "hideToolbar": "true", "bg": "gradient"}} {{"component": "modules/components/ComponentLinkHeader.js", "design": false}} @@ -50,7 +50,7 @@ Use the `Divider` to wrap elements that will be added to it. Use the `orientation` prop to render a vertical divider. -{{"demo": "VerticalDividers.js", "bg": true}} +{{"demo": "VerticalDividers.js"}} #### Vertical with text diff --git a/docs/data/joy/components/linear-progress/linear-progress.md b/docs/data/joy/components/linear-progress/linear-progress.md index 28584de3d7d3b5..bc56dcb995e07e 100644 --- a/docs/data/joy/components/linear-progress/linear-progress.md +++ b/docs/data/joy/components/linear-progress/linear-progress.md @@ -17,7 +17,7 @@ To actually have it represent how long an operation will take, use the [determin The animations of the components rely on CSS as much as possible to work even before the JavaScript is loaded. -{{"demo": "LinearProgressUsage.js", "hideToolbar": true}} +{{"demo": "LinearProgressUsage.js", "hideToolbar": true, "bg": "gradient"}} {{"component": "modules/components/ComponentLinkHeader.js", "design": false}} diff --git a/docs/data/joy/components/link/LinkCard.js b/docs/data/joy/components/link/LinkCard.js index 650f7e31c3096f..3164e71b7deb66 100644 --- a/docs/data/joy/components/link/LinkCard.js +++ b/docs/data/joy/components/link/LinkCard.js @@ -10,7 +10,7 @@ export default function Links() { return ( - Spark joy components + Components that spark joy! diff --git a/docs/data/joy/components/link/link.md b/docs/data/joy/components/link/link.md index 432956fdf5065c..7766462c3414f0 100644 --- a/docs/data/joy/components/link/link.md +++ b/docs/data/joy/components/link/link.md @@ -14,7 +14,7 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/link/ The `Link` component represents the HTML `` element. It accepts the same props as the [`Typography`](/joy-ui/react-typography/) component, as well as the system props. -{{"demo": "LinkUsage.js", "hideToolbar": true}} +{{"demo": "LinkUsage.js", "hideToolbar": true, "bg": "gradient"}} {{"component": "modules/components/ComponentLinkHeader.js", "design": false}} diff --git a/docs/data/joy/components/list/DividedList.js b/docs/data/joy/components/list/DividedList.js index 651c04358d1cff..9f6582db43eb6b 100644 --- a/docs/data/joy/components/list/DividedList.js +++ b/docs/data/joy/components/list/DividedList.js @@ -25,8 +25,10 @@ export default function DividedList() { ( ({ ...sx, width: 300, ...theme.variants.outlined.neutral })} + sx={(theme) => ({ + ...sx, + width: 300, + ...theme.variants.outlined.neutral, + bgcolor: 'background.body', + borderRadius: 'sm', + })} > diff --git a/docs/data/joy/components/list/NestedList.js b/docs/data/joy/components/list/NestedList.js index 5ebd12bd076f44..0efdde73c046dd 100644 --- a/docs/data/joy/components/list/NestedList.js +++ b/docs/data/joy/components/list/NestedList.js @@ -25,7 +25,9 @@ export default function NestedList() { size={small ? 'sm' : undefined} sx={{ width: 200, + bgcolor: 'background.body', borderRadius: 'sm', + boxShadow: 'sm', }} > diff --git a/docs/data/joy/components/list/SizesList.js b/docs/data/joy/components/list/SizesList.js index 662ed09eff77dd..42fb75d1158b60 100644 --- a/docs/data/joy/components/list/SizesList.js +++ b/docs/data/joy/components/list/SizesList.js @@ -16,7 +16,7 @@ export default function SizesList() { justifyContent: 'center', gap: 6, flexWrap: 'wrap', - '& > *': { minWidth: 0, flexBasis: 120 }, + '& > *': { minWidth: 0, flexBasis: 200 }, }} > {['sm', 'md', 'lg'].map((size) => ( @@ -27,7 +27,12 @@ export default function SizesList() { diff --git a/docs/data/joy/components/list/StickyList.js b/docs/data/joy/components/list/StickyList.js index 43d2e3f85ad174..bda4f5a122fdcf 100644 --- a/docs/data/joy/components/list/StickyList.js +++ b/docs/data/joy/components/list/StickyList.js @@ -8,10 +8,12 @@ import Sheet from '@mui/joy/Sheet'; export default function StickyList() { return ( diff --git a/docs/data/joy/components/list/list.md b/docs/data/joy/components/list/list.md index ca6460c7d68e10..306b76c03c6ecb 100644 --- a/docs/data/joy/components/list/list.md +++ b/docs/data/joy/components/list/list.md @@ -20,7 +20,7 @@ Joy UI provides four list-related components: - [`ListDivider`](#divider): A separator between list items. - [`ListSubheader`](#nested-list): A label for a nested list. -{{"demo": "ListUsage.js", "hideToolbar": true}} +{{"demo": "ListUsage.js", "hideToolbar": true, "bg": "gradient"}} ## Component diff --git a/docs/data/joy/components/menu/MenuIconSideNavExample.js b/docs/data/joy/components/menu/MenuIconSideNavExample.js index 668c85f269aea0..109f82b1df3065 100644 --- a/docs/data/joy/components/menu/MenuIconSideNavExample.js +++ b/docs/data/joy/components/menu/MenuIconSideNavExample.js @@ -126,7 +126,7 @@ export default function MenuIconSideNavExample() { }, 200); }; return ( - + {['Credit Card', 'Paypal', 'QR Code'].map((value, index) => ( diff --git a/docs/data/joy/components/radio/IconlessRadio.js b/docs/data/joy/components/radio/IconlessRadio.js index 9071be7e837884..9cc4b42b0e8c29 100644 --- a/docs/data/joy/components/radio/IconlessRadio.js +++ b/docs/data/joy/components/radio/IconlessRadio.js @@ -27,7 +27,15 @@ export default function IconlessRadio() { sx={{ gap: 1.5 }} > {['512GB', '1TB', '2TB'].map((value) => ( - + diff --git a/docs/data/joy/components/radio/RadioPositionEnd.js b/docs/data/joy/components/radio/RadioPositionEnd.js index c84a4c957b82bb..d0efa8187ee17b 100644 --- a/docs/data/joy/components/radio/RadioPositionEnd.js +++ b/docs/data/joy/components/radio/RadioPositionEnd.js @@ -20,8 +20,12 @@ export default function RadioPositionEnd() { '--List-decorator-size': '32px', }} > - {['Individual', 'Team', 'Interprise'].map((item, index) => ( - + {['Individual', 'Team', 'Enterprise'].map((item, index) => ( + {[, , ][index]} diff --git a/docs/data/joy/components/radio/RadioUsage.js b/docs/data/joy/components/radio/RadioUsage.js index 0d0c7540c2b720..7924106aa0b134 100644 --- a/docs/data/joy/components/radio/RadioUsage.js +++ b/docs/data/joy/components/radio/RadioUsage.js @@ -15,13 +15,13 @@ export default function RadioUsage() { { propName: 'variant', knob: 'select', - defaultValue: 'outlined', + defaultValue: 'soft', options: ['plain', 'outlined', 'soft', 'solid'], }, { propName: 'color', knob: 'color', - defaultValue: 'neutral', + defaultValue: 'primary', }, { propName: 'size', diff --git a/docs/data/joy/components/radio/radio.md b/docs/data/joy/components/radio/radio.md index e10bb8943ef6a7..925df4bdbd5209 100644 --- a/docs/data/joy/components/radio/radio.md +++ b/docs/data/joy/components/radio/radio.md @@ -15,7 +15,7 @@ The `Radio` component is the one to be used when you want to allow users to sele To allow multiple selection, use the `Checkbox` instead. For more in-depth about when to use each, visit [the NNg's documentation](https://www.nngroup.com/articles/checkboxes-vs-radio-buttons/). -{{"demo": "RadioUsage.js", "hideToolbar": true}} +{{"demo": "RadioUsage.js", "hideToolbar": true, "bg": "gradient"}} :::success To learn how to add more variants or sizes to the component, check out the [Themed components](/joy-ui/customization/themed-components/) page. @@ -139,7 +139,7 @@ Visit the [WAI-ARIA documentation](https://www.w3.org/WAI/ARIA/apg/patterns/radi A clone of an [inspiration](https://dribbble.com/shots/11239824-Radio-button-groups) that demonstrate the composition of the components. -{{"demo": "ExampleTiers.js", "bg": true}} +{{"demo": "ExampleTiers.js"}} ### Alignment buttons diff --git a/docs/data/joy/components/select/select.md b/docs/data/joy/components/select/select.md index 2a85dc3cf4cb14..56526c821e46eb 100644 --- a/docs/data/joy/components/select/select.md +++ b/docs/data/joy/components/select/select.md @@ -14,7 +14,7 @@ unstyled: /base/react-select/ The `Select` component is used to trigger a popup that displays a list of `Option` components. -{{"demo": "SelectUsage.js", "hideToolbar": true}} +{{"demo": "SelectUsage.js", "hideToolbar": true, "bg": "gradient"}} :::success To learn how to add more variants or sizes to the component, check out the [Themed components](/joy-ui/customization/themed-components/) page. diff --git a/docs/data/joy/components/sheet/SheetUsage.js b/docs/data/joy/components/sheet/SheetUsage.js index 70c796699aa0c9..7b69784fec98cd 100644 --- a/docs/data/joy/components/sheet/SheetUsage.js +++ b/docs/data/joy/components/sheet/SheetUsage.js @@ -27,6 +27,7 @@ export default function SheetUsage() { width: 250, height: 200, m: 1, + mb: 4, display: 'flex', alignItems: 'center', justifyContent: 'center', diff --git a/docs/data/joy/components/sheet/sheet.md b/docs/data/joy/components/sheet/sheet.md index 42da506688129f..6490e0f528e50c 100644 --- a/docs/data/joy/components/sheet/sheet.md +++ b/docs/data/joy/components/sheet/sheet.md @@ -12,7 +12,7 @@ title: React Sheet component The `Sheet` container is a generic container. It's a sibling to the [`Box`](/system/react-box/) component, and equivalent to Material UI's [`Paper`](/material-ui/react-paper/), with the difference being that it supports Joy UI's global variants out of the box. -{{"demo": "SheetUsage.js", "hideToolbar": true}} +{{"demo": "SheetUsage.js", "hideToolbar": true, "bg": "gradient"}} {{"component": "modules/components/ComponentLinkHeader.js", "design": false}} diff --git a/docs/data/joy/components/slider/SliderUsage.js b/docs/data/joy/components/slider/SliderUsage.js index 23f05690770409..0eed2b0ec7685c 100644 --- a/docs/data/joy/components/slider/SliderUsage.js +++ b/docs/data/joy/components/slider/SliderUsage.js @@ -51,8 +51,6 @@ export default function SliderUsage() { p: 2, lineHeight: 0, borderRadius: 'sm', - bgcolor: - props.variant === 'plain' ? 'background.level3' : 'background.surface', }} > diff --git a/docs/data/joy/components/slider/slider.md b/docs/data/joy/components/slider/slider.md index efb8f76bc5bcce..6ecbbe5f588214 100644 --- a/docs/data/joy/components/slider/slider.md +++ b/docs/data/joy/components/slider/slider.md @@ -13,7 +13,7 @@ unstyled: /base/react-slider/ Sliders are ideal for interface controls that benefit from a visual representation of adjustable content, such as volume or brightness settings, or for applying image filters such as gradients or saturation. -{{"demo": "SliderUsage.js", "hideToolbar": true}} +{{"demo": "SliderUsage.js", "hideToolbar": true, "bg": "gradient"}} :::success To learn how to add more variants or sizes to the component, check out [Themed components](/joy-ui/customization/themed-components/). diff --git a/docs/data/joy/components/switch/switch.md b/docs/data/joy/components/switch/switch.md index 9ac70db50c0aad..169224fb8d0ea7 100644 --- a/docs/data/joy/components/switch/switch.md +++ b/docs/data/joy/components/switch/switch.md @@ -15,7 +15,7 @@ Switches are very commonly used for adjusting settings on mobile. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label. -{{"demo": "SwitchUsage.js", "hideToolbar": true}} +{{"demo": "SwitchUsage.js", "hideToolbar": true, "bg": "gradient"}} :::success To learn how to add more sizes to the component, check out [Themed components—Extend sizes](/joy-ui/customization/themed-components/#extend-sizes). diff --git a/docs/data/joy/components/tabs/TabDisabled.js b/docs/data/joy/components/tabs/TabDisabled.js index d1695e9dc28e40..c2c759e35ae056 100644 --- a/docs/data/joy/components/tabs/TabDisabled.js +++ b/docs/data/joy/components/tabs/TabDisabled.js @@ -5,7 +5,7 @@ import Tab from '@mui/joy/Tab'; export default function TabDisabled() { return ( - + First tab Second tab diff --git a/docs/data/joy/components/tabs/TabDisabled.tsx b/docs/data/joy/components/tabs/TabDisabled.tsx index d1695e9dc28e40..c2c759e35ae056 100644 --- a/docs/data/joy/components/tabs/TabDisabled.tsx +++ b/docs/data/joy/components/tabs/TabDisabled.tsx @@ -5,7 +5,7 @@ import Tab from '@mui/joy/Tab'; export default function TabDisabled() { return ( - + First tab Second tab diff --git a/docs/data/joy/components/tabs/TabDisabled.tsx.preview b/docs/data/joy/components/tabs/TabDisabled.tsx.preview index fb178b27ee297c..5c90d27f5570fe 100644 --- a/docs/data/joy/components/tabs/TabDisabled.tsx.preview +++ b/docs/data/joy/components/tabs/TabDisabled.tsx.preview @@ -1,4 +1,4 @@ - + First tab Second tab diff --git a/docs/data/joy/components/tabs/TabsBasic.js b/docs/data/joy/components/tabs/TabsBasic.js index 85a0ba2db744b7..7700d27fd85703 100644 --- a/docs/data/joy/components/tabs/TabsBasic.js +++ b/docs/data/joy/components/tabs/TabsBasic.js @@ -6,19 +6,19 @@ import TabPanel from '@mui/joy/TabPanel'; export default function TabsBasic() { return ( - + First tab Second tab Third tab - + First tab panel - + Second tab panel - + Third tab panel diff --git a/docs/data/joy/components/tabs/TabsBasic.tsx b/docs/data/joy/components/tabs/TabsBasic.tsx index 85a0ba2db744b7..7700d27fd85703 100644 --- a/docs/data/joy/components/tabs/TabsBasic.tsx +++ b/docs/data/joy/components/tabs/TabsBasic.tsx @@ -6,19 +6,19 @@ import TabPanel from '@mui/joy/TabPanel'; export default function TabsBasic() { return ( - + First tab Second tab Third tab - + First tab panel - + Second tab panel - + Third tab panel diff --git a/docs/data/joy/components/tabs/TabsBasic.tsx.preview b/docs/data/joy/components/tabs/TabsBasic.tsx.preview index 088ef73b86168b..35e69f3f6771f4 100644 --- a/docs/data/joy/components/tabs/TabsBasic.tsx.preview +++ b/docs/data/joy/components/tabs/TabsBasic.tsx.preview @@ -1,16 +1,16 @@ - + First tab Second tab Third tab - + First tab panel - + Second tab panel - + Third tab panel \ No newline at end of file diff --git a/docs/data/joy/components/tabs/TabsBottomNavExample.js b/docs/data/joy/components/tabs/TabsBottomNavExample.js index 96cea58e69afe7..449a87bf12f9ba 100644 --- a/docs/data/joy/components/tabs/TabsBottomNavExample.js +++ b/docs/data/joy/components/tabs/TabsBottomNavExample.js @@ -20,7 +20,7 @@ export default function TabsBottomNavExample() { p: 3, py: 5, borderRadius: 'sm', - bgcolor: `${colors[index]}.400`, + bgcolor: `${colors[index]}.600`, }} > setIndex(value)} sx={(theme) => ({ - borderBottomLeftRadius: '1rem', - borderBottomRightRadius: '1rem', + borderRadius: 'xl', maxWidth: 400, mx: 'auto', boxShadow: theme.shadow.sm, diff --git a/docs/data/joy/components/tabs/TabsBottomNavExample.tsx b/docs/data/joy/components/tabs/TabsBottomNavExample.tsx index 7b0a080e6a2253..ff4c8c5ad99968 100644 --- a/docs/data/joy/components/tabs/TabsBottomNavExample.tsx +++ b/docs/data/joy/components/tabs/TabsBottomNavExample.tsx @@ -20,7 +20,7 @@ export default function TabsBottomNavExample() { p: 3, py: 5, borderRadius: 'sm', - bgcolor: `${colors[index]}.400`, + bgcolor: `${colors[index]}.600`, }} > setIndex(value as number)} sx={(theme) => ({ - borderBottomLeftRadius: '1rem', - borderBottomRightRadius: '1rem', + borderRadius: 'xl', maxWidth: 400, mx: 'auto', boxShadow: theme.shadow.sm, diff --git a/docs/data/joy/components/tabs/TabsIcon.js b/docs/data/joy/components/tabs/TabsIcon.js index d0201996a043ac..66468d48e80194 100644 --- a/docs/data/joy/components/tabs/TabsIcon.js +++ b/docs/data/joy/components/tabs/TabsIcon.js @@ -8,7 +8,7 @@ import PersonPinIcon from '@mui/icons-material/PersonPin'; export default function TabsIcon() { return ( - + diff --git a/docs/data/joy/components/tabs/TabsIcon.tsx b/docs/data/joy/components/tabs/TabsIcon.tsx index d0201996a043ac..66468d48e80194 100644 --- a/docs/data/joy/components/tabs/TabsIcon.tsx +++ b/docs/data/joy/components/tabs/TabsIcon.tsx @@ -8,7 +8,7 @@ import PersonPinIcon from '@mui/icons-material/PersonPin'; export default function TabsIcon() { return ( - + diff --git a/docs/data/joy/components/tabs/TabsIcon.tsx.preview b/docs/data/joy/components/tabs/TabsIcon.tsx.preview index 5ee4abdd0e0f67..2ee615ae539293 100644 --- a/docs/data/joy/components/tabs/TabsIcon.tsx.preview +++ b/docs/data/joy/components/tabs/TabsIcon.tsx.preview @@ -1,4 +1,4 @@ - + diff --git a/docs/data/joy/components/tabs/TabsIconWithText.js b/docs/data/joy/components/tabs/TabsIconWithText.js index d797bf3cc799f9..1e10c2dcd06480 100644 --- a/docs/data/joy/components/tabs/TabsIconWithText.js +++ b/docs/data/joy/components/tabs/TabsIconWithText.js @@ -10,7 +10,11 @@ import PersonPinIcon from '@mui/icons-material/PersonPin'; export default function TabsIconWithText() { return (
- + @@ -32,7 +36,7 @@ export default function TabsIconWithText() { - + diff --git a/docs/data/joy/components/tabs/TabsIconWithText.tsx b/docs/data/joy/components/tabs/TabsIconWithText.tsx index d797bf3cc799f9..1e10c2dcd06480 100644 --- a/docs/data/joy/components/tabs/TabsIconWithText.tsx +++ b/docs/data/joy/components/tabs/TabsIconWithText.tsx @@ -10,7 +10,11 @@ import PersonPinIcon from '@mui/icons-material/PersonPin'; export default function TabsIconWithText() { return (
- + @@ -32,7 +36,7 @@ export default function TabsIconWithText() { - + diff --git a/docs/data/joy/components/tabs/TabsPageExample.js b/docs/data/joy/components/tabs/TabsPageExample.js index e7d6b1e7f8e4a4..88b9b0258a6b79 100644 --- a/docs/data/joy/components/tabs/TabsPageExample.js +++ b/docs/data/joy/components/tabs/TabsPageExample.js @@ -17,7 +17,6 @@ export default function TabsPageExample() { bgcolor: 'background.body', flexGrow: 1, m: -3, - p: 3, overflowX: 'hidden', borderRadius: 'md', }} @@ -26,11 +25,15 @@ export default function TabsPageExample() { aria-label="Pipeline" value={index} onChange={(event, value) => setIndex(value)} - sx={{ '--Tabs-gap': '0px', maxWidth: 400, mx: 'auto' }} + sx={{ '--Tabs-gap': '0px' }} > ({ - '--bg': theme.vars.palette.background.level1, + '--bg': theme.vars.palette.background.surface, background: 'var(--bg)', boxShadow: '0 0 0 100vmax var(--bg)', clipPath: 'inset(0 -100vmax)', - px: 1.5, + px: 4, py: 2, })} > - Deals + Deals panel - Library + Library panel } /> diff --git a/docs/data/joy/components/tabs/TabsPageExample.tsx b/docs/data/joy/components/tabs/TabsPageExample.tsx index c49cafc73b4c30..4b9dbb1d42b305 100644 --- a/docs/data/joy/components/tabs/TabsPageExample.tsx +++ b/docs/data/joy/components/tabs/TabsPageExample.tsx @@ -17,7 +17,6 @@ export default function TabsPageExample() { bgcolor: 'background.body', flexGrow: 1, m: -3, - p: 3, overflowX: 'hidden', borderRadius: 'md', }} @@ -26,11 +25,15 @@ export default function TabsPageExample() { aria-label="Pipeline" value={index} onChange={(event, value) => setIndex(value as number)} - sx={{ '--Tabs-gap': '0px', maxWidth: 400, mx: 'auto' }} + sx={{ '--Tabs-gap': '0px' }} > ({ - '--bg': theme.vars.palette.background.level1, + '--bg': theme.vars.palette.background.surface, background: 'var(--bg)', boxShadow: '0 0 0 100vmax var(--bg)', clipPath: 'inset(0 -100vmax)', - px: 1.5, + px: 4, py: 2, })} > - Deals + Deals panel - Library + Library panel } /> diff --git a/docs/data/joy/components/tabs/TabsPricingExample.js b/docs/data/joy/components/tabs/TabsPricingExample.js index c497338b232af9..9f4424223becac 100644 --- a/docs/data/joy/components/tabs/TabsPricingExample.js +++ b/docs/data/joy/components/tabs/TabsPricingExample.js @@ -11,11 +11,17 @@ export default function TabsPricingExample() { size="sm" aria-label="Pricing plan" defaultValue={0} - sx={{ width: 343, '--Tabs-gap': '0px' }} + sx={(theme) => ({ + width: 343, + '--Tabs-gap': '0px', + borderRadius: 'lg', + boxShadow: 'sm', + overflow: 'auto', + border: `1px solid ${theme.vars.palette.divider}`, + })} > ({ + sx={{ '--List-item-radius': '0px', borderRadius: 0, [`& .${tabClasses.root}`]: { @@ -35,21 +41,18 @@ export default function TabsPricingExample() { height: 2, bgcolor: 'primary.400', }, - '&:not(:first-of-type)': { - borderLeft: `1px solid ${theme.vars.palette.divider}`, - }, [`&.${tabClasses.focusVisible}`]: { outlineOffset: '-3px', }, }, - })} + }} > Community Pro Premium - - + + Get started with the industry-standard React UI library, MIT-licensed. @@ -59,8 +62,8 @@ export default function TabsPricingExample() { - - + + Best for professional developers building enterprise or data-rich applications. @@ -71,8 +74,8 @@ export default function TabsPricingExample() { - - + + The most advanced features for data-rich applications, as well as the highest priority for support. diff --git a/docs/data/joy/components/tabs/TabsPricingExample.tsx b/docs/data/joy/components/tabs/TabsPricingExample.tsx index c497338b232af9..9f4424223becac 100644 --- a/docs/data/joy/components/tabs/TabsPricingExample.tsx +++ b/docs/data/joy/components/tabs/TabsPricingExample.tsx @@ -11,11 +11,17 @@ export default function TabsPricingExample() { size="sm" aria-label="Pricing plan" defaultValue={0} - sx={{ width: 343, '--Tabs-gap': '0px' }} + sx={(theme) => ({ + width: 343, + '--Tabs-gap': '0px', + borderRadius: 'lg', + boxShadow: 'sm', + overflow: 'auto', + border: `1px solid ${theme.vars.palette.divider}`, + })} > ({ + sx={{ '--List-item-radius': '0px', borderRadius: 0, [`& .${tabClasses.root}`]: { @@ -35,21 +41,18 @@ export default function TabsPricingExample() { height: 2, bgcolor: 'primary.400', }, - '&:not(:first-of-type)': { - borderLeft: `1px solid ${theme.vars.palette.divider}`, - }, [`&.${tabClasses.focusVisible}`]: { outlineOffset: '-3px', }, }, - })} + }} > Community Pro Premium - - + + Get started with the industry-standard React UI library, MIT-licensed. @@ -59,8 +62,8 @@ export default function TabsPricingExample() { - - + + Best for professional developers building enterprise or data-rich applications. @@ -71,8 +74,8 @@ export default function TabsPricingExample() { - - + + The most advanced features for data-rich applications, as well as the highest priority for support. diff --git a/docs/data/joy/components/tabs/TabsUsage.js b/docs/data/joy/components/tabs/TabsUsage.js index 06801939040ee7..2a884518ad7c00 100644 --- a/docs/data/joy/components/tabs/TabsUsage.js +++ b/docs/data/joy/components/tabs/TabsUsage.js @@ -5,6 +5,7 @@ import TabList from '@mui/joy/TabList'; import Tab from '@mui/joy/Tab'; export default function TabsUsage() { + const [index, setIndex] = React.useState(0); return ( ( - + setIndex(value)} + sx={{ borderRadius: 'lg' }} + > - Tab A - Tab B - Tab C + + Tab A + + + Tab B + + + Tab C + )} diff --git a/docs/data/joy/components/tabs/TabsVariants.js b/docs/data/joy/components/tabs/TabsVariants.js index 0dcdd500c7e295..2ece9310e8b59e 100644 --- a/docs/data/joy/components/tabs/TabsVariants.js +++ b/docs/data/joy/components/tabs/TabsVariants.js @@ -12,6 +12,7 @@ export default function TabsVariants() { aria-label="Plain tabs" value={index} onChange={(event, value) => setIndex(value)} + sx={{ borderRadius: 'lg' }} > First tab @@ -24,6 +25,7 @@ export default function TabsVariants() { aria-label="Outlined tabs" value={index} onChange={(event, value) => setIndex(value)} + sx={{ borderRadius: 'lg' }} > setIndex(value)} + sx={{ borderRadius: 'lg' }} > setIndex(value as number)} + sx={{ borderRadius: 'lg' }} > First tab @@ -24,6 +25,7 @@ export default function TabsVariants() { aria-label="Outlined tabs" value={index} onChange={(event, value) => setIndex(value as number)} + sx={{ borderRadius: 'lg' }} > setIndex(value as number)} + sx={{ borderRadius: 'lg' }} > First tab Second tab Third tab - + First tab panel - + Second tab panel - + Third tab panel diff --git a/docs/data/joy/components/tabs/TabsVertical.tsx b/docs/data/joy/components/tabs/TabsVertical.tsx index 489c4b239b8a50..5382103bb9550e 100644 --- a/docs/data/joy/components/tabs/TabsVertical.tsx +++ b/docs/data/joy/components/tabs/TabsVertical.tsx @@ -10,20 +10,20 @@ export default function TabsVertical() { aria-label="Vertical tabs" orientation="vertical" defaultValue={0} - sx={{ minWidth: 300 }} + sx={{ minWidth: 300, borderRadius: 'lg' }} > First tab Second tab Third tab - + First tab panel - + Second tab panel - + Third tab panel diff --git a/docs/data/joy/components/tabs/tabs.md b/docs/data/joy/components/tabs/tabs.md index e2b73beffd875e..0f7d82d3f09a8c 100644 --- a/docs/data/joy/components/tabs/tabs.md +++ b/docs/data/joy/components/tabs/tabs.md @@ -19,7 +19,7 @@ Joy UI provides four tabs-related components: - `Tab`: A button to toggle a selected tab. - `TabPanel`: A pane that displays on the screen when its value matches with the selected tab. -{{"demo": "TabsUsage.js", "hideToolbar": true}} +{{"demo": "TabsUsage.js", "hideToolbar": true, "bg": "gradient"}} {{"component": "modules/components/ComponentLinkHeader.js", "design": false}} @@ -120,7 +120,7 @@ You can use those to customize the component on both the `sx` prop and the theme {{"demo": "TabsPricingExample.js"}} -### Page tabs +### Page tabs with chips {{"demo": "TabsPageExample.js"}} diff --git a/docs/data/joy/components/text-field/text-field.md b/docs/data/joy/components/text-field/text-field.md index 855766f604e789..5f7d8c11378b70 100644 --- a/docs/data/joy/components/text-field/text-field.md +++ b/docs/data/joy/components/text-field/text-field.md @@ -14,7 +14,7 @@ unstyled: /base/react-input/ Text fields allow users to enter text into a UI. They typically appear in forms and dialogs. -{{"demo": "TextFieldUsage.js", "hideToolbar": true}} +{{"demo": "TextFieldUsage.js", "hideToolbar": true, "bg": "gradient"}} {{"component": "modules/components/ComponentLinkHeader.js"}} diff --git a/docs/data/joy/components/textarea/TextareaFormProps.js b/docs/data/joy/components/textarea/TextareaFormProps.js index f7e560df97e2e0..50e59e8291b7fe 100644 --- a/docs/data/joy/components/textarea/TextareaFormProps.js +++ b/docs/data/joy/components/textarea/TextareaFormProps.js @@ -21,7 +21,7 @@ export default function TextareaFormProps() { }} >