diff --git a/docs/data/joy/components/alert/alert.md b/docs/data/joy/components/alert/alert.md index a02772e1e09471..16360bebf0fd7d 100644 --- a/docs/data/joy/components/alert/alert.md +++ b/docs/data/joy/components/alert/alert.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Alert component +components: Alert githubLabel: 'component: alert' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/alert/ --- diff --git a/docs/data/joy/components/aspect-ratio/aspect-ratio-pt.md b/docs/data/joy/components/aspect-ratio/aspect-ratio-pt.md index 41b4f82adadf28..6919129f874ee8 100644 --- a/docs/data/joy/components/aspect-ratio/aspect-ratio-pt.md +++ b/docs/data/joy/components/aspect-ratio/aspect-ratio-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Aspect Ratio component +components: AspectRatio --- # Aspect ratio diff --git a/docs/data/joy/components/aspect-ratio/aspect-ratio-zh.md b/docs/data/joy/components/aspect-ratio/aspect-ratio-zh.md index 41b4f82adadf28..6919129f874ee8 100644 --- a/docs/data/joy/components/aspect-ratio/aspect-ratio-zh.md +++ b/docs/data/joy/components/aspect-ratio/aspect-ratio-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Aspect Ratio component +components: AspectRatio --- # Aspect ratio diff --git a/docs/data/joy/components/aspect-ratio/aspect-ratio.md b/docs/data/joy/components/aspect-ratio/aspect-ratio.md index c3897e6eabd4da..1d7680749b5867 100644 --- a/docs/data/joy/components/aspect-ratio/aspect-ratio.md +++ b/docs/data/joy/components/aspect-ratio/aspect-ratio.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Aspect Ratio component +components: AspectRatio --- # Aspect Ratio diff --git a/docs/data/joy/components/autocomplete/autocomplete.md b/docs/data/joy/components/autocomplete/autocomplete.md index fb900b9dae34cd..84f33f682cef59 100644 --- a/docs/data/joy/components/autocomplete/autocomplete.md +++ b/docs/data/joy/components/autocomplete/autocomplete.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Autocomplete component +components: Autocomplete, AutocompleteListbox, AutocompleteOption githubLabel: 'component: autocomplete' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/ --- diff --git a/docs/data/joy/components/avatar/avatar-pt.md b/docs/data/joy/components/avatar/avatar-pt.md index f9ea9238450f9b..e82187bd04eebe 100644 --- a/docs/data/joy/components/avatar/avatar-pt.md +++ b/docs/data/joy/components/avatar/avatar-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Avatar component +components: Avatar, AvatarGroup, SvgIcon githubLabel: 'component: avatar' --- diff --git a/docs/data/joy/components/avatar/avatar-zh.md b/docs/data/joy/components/avatar/avatar-zh.md index f9ea9238450f9b..e82187bd04eebe 100644 --- a/docs/data/joy/components/avatar/avatar-zh.md +++ b/docs/data/joy/components/avatar/avatar-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Avatar component +components: Avatar, AvatarGroup, SvgIcon githubLabel: 'component: avatar' --- diff --git a/docs/data/joy/components/avatar/avatar.md b/docs/data/joy/components/avatar/avatar.md index 64b1e82eeff84d..abdb639cb1d078 100644 --- a/docs/data/joy/components/avatar/avatar.md +++ b/docs/data/joy/components/avatar/avatar.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Avatar component +components: Avatar, AvatarGroup, SvgIcon githubLabel: 'component: avatar' --- diff --git a/docs/data/joy/components/badge/badge-pt.md b/docs/data/joy/components/badge/badge-pt.md index 40236fc22074a5..39fc1b06877322 100644 --- a/docs/data/joy/components/badge/badge-pt.md +++ b/docs/data/joy/components/badge/badge-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Badge component +components: Badge githubLabel: 'component: badge' unstyled: /base/react-badge/ --- diff --git a/docs/data/joy/components/badge/badge-zh.md b/docs/data/joy/components/badge/badge-zh.md index 40236fc22074a5..39fc1b06877322 100644 --- a/docs/data/joy/components/badge/badge-zh.md +++ b/docs/data/joy/components/badge/badge-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Badge component +components: Badge githubLabel: 'component: badge' unstyled: /base/react-badge/ --- diff --git a/docs/data/joy/components/badge/badge.md b/docs/data/joy/components/badge/badge.md index e4d2c682aff2d6..87bb63ae84fc91 100644 --- a/docs/data/joy/components/badge/badge.md +++ b/docs/data/joy/components/badge/badge.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Badge component +components: Badge githubLabel: 'component: badge' unstyled: /base/react-badge/ --- diff --git a/docs/data/joy/components/breadcrumbs/breadcrumbs-pt.md b/docs/data/joy/components/breadcrumbs/breadcrumbs-pt.md index d09436c35804de..f2e8a4be163ed5 100644 --- a/docs/data/joy/components/breadcrumbs/breadcrumbs-pt.md +++ b/docs/data/joy/components/breadcrumbs/breadcrumbs-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Breadcrumbs component +components: Breadcrumbs --- # Breadcrumbs diff --git a/docs/data/joy/components/breadcrumbs/breadcrumbs-zh.md b/docs/data/joy/components/breadcrumbs/breadcrumbs-zh.md index d09436c35804de..f2e8a4be163ed5 100644 --- a/docs/data/joy/components/breadcrumbs/breadcrumbs-zh.md +++ b/docs/data/joy/components/breadcrumbs/breadcrumbs-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Breadcrumbs component +components: Breadcrumbs --- # Breadcrumbs diff --git a/docs/data/joy/components/breadcrumbs/breadcrumbs.md b/docs/data/joy/components/breadcrumbs/breadcrumbs.md index a3d747752005d7..c3801b6d8ef8fe 100644 --- a/docs/data/joy/components/breadcrumbs/breadcrumbs.md +++ b/docs/data/joy/components/breadcrumbs/breadcrumbs.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Breadcrumbs component +components: Breadcrumbs githubLabel: 'component: breadcrumbs' --- diff --git a/docs/data/joy/components/button/button-pt.md b/docs/data/joy/components/button/button-pt.md index c30b0b2397c484..7ac7cbbd36c7bb 100644 --- a/docs/data/joy/components/button/button-pt.md +++ b/docs/data/joy/components/button/button-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Button component +components: Button, IconButton, LoadingButton githubLabel: 'component: button' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/button/ unstyled: /base/react-button/ diff --git a/docs/data/joy/components/button/button-zh.md b/docs/data/joy/components/button/button-zh.md index c30b0b2397c484..7ac7cbbd36c7bb 100644 --- a/docs/data/joy/components/button/button-zh.md +++ b/docs/data/joy/components/button/button-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Button component +components: Button, IconButton, LoadingButton githubLabel: 'component: button' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/button/ unstyled: /base/react-button/ diff --git a/docs/data/joy/components/button/button.md b/docs/data/joy/components/button/button.md index 982a059eabd39c..fc56271f07f2d4 100644 --- a/docs/data/joy/components/button/button.md +++ b/docs/data/joy/components/button/button.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Button component +components: Button, IconButton, LoadingButton githubLabel: 'component: button' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/button/ unstyled: /base/react-button/ diff --git a/docs/data/joy/components/card/card-pt.md b/docs/data/joy/components/card/card-pt.md index 217ba717c328f4..53d68a735a86a1 100644 --- a/docs/data/joy/components/card/card-pt.md +++ b/docs/data/joy/components/card/card-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Card component +components: Card, CardContent, CardCover, CardOverflow githubLabel: 'component: card' --- diff --git a/docs/data/joy/components/card/card-zh.md b/docs/data/joy/components/card/card-zh.md index 217ba717c328f4..53d68a735a86a1 100644 --- a/docs/data/joy/components/card/card-zh.md +++ b/docs/data/joy/components/card/card-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Card component +components: Card, CardContent, CardCover, CardOverflow githubLabel: 'component: card' --- diff --git a/docs/data/joy/components/card/card.md b/docs/data/joy/components/card/card.md index 8b8949f78b3a9f..700e430d9b746e 100644 --- a/docs/data/joy/components/card/card.md +++ b/docs/data/joy/components/card/card.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Card component +components: Card, CardContent, CardCover, CardOverflow githubLabel: 'component: card' --- diff --git a/docs/data/joy/components/checkbox/checkbox-pt.md b/docs/data/joy/components/checkbox/checkbox-pt.md index f8a785884bb2f8..6afbf06c94ad87 100644 --- a/docs/data/joy/components/checkbox/checkbox-pt.md +++ b/docs/data/joy/components/checkbox/checkbox-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Checkbox component +components: Checkbox githubLabel: 'component: checkbox' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/ --- diff --git a/docs/data/joy/components/checkbox/checkbox-zh.md b/docs/data/joy/components/checkbox/checkbox-zh.md index f8a785884bb2f8..6afbf06c94ad87 100644 --- a/docs/data/joy/components/checkbox/checkbox-zh.md +++ b/docs/data/joy/components/checkbox/checkbox-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Checkbox component +components: Checkbox githubLabel: 'component: checkbox' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/ --- diff --git a/docs/data/joy/components/checkbox/checkbox.md b/docs/data/joy/components/checkbox/checkbox.md index d00cf81285686c..0eabae7a6b7d3b 100644 --- a/docs/data/joy/components/checkbox/checkbox.md +++ b/docs/data/joy/components/checkbox/checkbox.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Checkbox component +components: Checkbox githubLabel: 'component: checkbox' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/ --- diff --git a/docs/data/joy/components/chip/chip-pt.md b/docs/data/joy/components/chip/chip-pt.md index 541e94fe17b3ed..7865a76dcdd8a3 100644 --- a/docs/data/joy/components/chip/chip-pt.md +++ b/docs/data/joy/components/chip/chip-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Chip component +components: Chip, ChipDelete githubLabel: 'component: chip' --- diff --git a/docs/data/joy/components/chip/chip-zh.md b/docs/data/joy/components/chip/chip-zh.md index 541e94fe17b3ed..7865a76dcdd8a3 100644 --- a/docs/data/joy/components/chip/chip-zh.md +++ b/docs/data/joy/components/chip/chip-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Chip component +components: Chip, ChipDelete githubLabel: 'component: chip' --- diff --git a/docs/data/joy/components/chip/chip.md b/docs/data/joy/components/chip/chip.md index c20c9e4a56df3d..187461faba2c27 100644 --- a/docs/data/joy/components/chip/chip.md +++ b/docs/data/joy/components/chip/chip.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Chip component +components: Chip, ChipDelete githubLabel: 'component: chip' --- diff --git a/docs/data/joy/components/circular-progress/circular-progress.md b/docs/data/joy/components/circular-progress/circular-progress.md index 0d9fb8d37898a6..d461a541e43b1d 100644 --- a/docs/data/joy/components/circular-progress/circular-progress.md +++ b/docs/data/joy/components/circular-progress/circular-progress.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Circular Progress component +components: CircularProgress githubLabel: 'component: CircularProgress' --- diff --git a/docs/data/joy/components/css-baseline/css-baseline.md b/docs/data/joy/components/css-baseline/css-baseline.md index 17dc20beae9dfe..4292518d7fe6cc 100644 --- a/docs/data/joy/components/css-baseline/css-baseline.md +++ b/docs/data/joy/components/css-baseline/css-baseline.md @@ -1,5 +1,6 @@ --- product: joy-ui +components: CssBaseline, ScopedCssBaseline githubLabel: 'component: CssBaseline' --- diff --git a/docs/data/joy/components/divider/divider.md b/docs/data/joy/components/divider/divider.md index d2a5afd6bddab9..865b88305c7c21 100644 --- a/docs/data/joy/components/divider/divider.md +++ b/docs/data/joy/components/divider/divider.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Divider component +components: Divider githubLabel: 'component: divider' --- diff --git a/docs/data/joy/components/input/input.md b/docs/data/joy/components/input/input.md index cc475dd528a7ca..2b8d10dec9a74c 100644 --- a/docs/data/joy/components/input/input.md +++ b/docs/data/joy/components/input/input.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Input component +components: FormControl, FormHelperText, FormLabel, Input unstyled: /base/react-input/ --- diff --git a/docs/data/joy/components/linear-progress/linear-progress.md b/docs/data/joy/components/linear-progress/linear-progress.md index e4a26b777cac2b..90e992dc178d54 100644 --- a/docs/data/joy/components/linear-progress/linear-progress.md +++ b/docs/data/joy/components/linear-progress/linear-progress.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Linear Progress component +components: LinearProgress githubLabel: 'component: LinearProgress' --- diff --git a/docs/data/joy/components/link/link-pt.md b/docs/data/joy/components/link/link-pt.md index 4f7319dd4a46be..553696ed7e20d5 100644 --- a/docs/data/joy/components/link/link-pt.md +++ b/docs/data/joy/components/link/link-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Link component +components: Link githubLabel: 'component: link' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/link/ --- diff --git a/docs/data/joy/components/link/link-zh.md b/docs/data/joy/components/link/link-zh.md index 4f7319dd4a46be..553696ed7e20d5 100644 --- a/docs/data/joy/components/link/link-zh.md +++ b/docs/data/joy/components/link/link-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Link component +components: Link githubLabel: 'component: link' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/link/ --- diff --git a/docs/data/joy/components/link/link.md b/docs/data/joy/components/link/link.md index 7766462c3414f0..efad07bec94837 100644 --- a/docs/data/joy/components/link/link.md +++ b/docs/data/joy/components/link/link.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Link component +components: Link githubLabel: 'component: link' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/link/ --- diff --git a/docs/data/joy/components/list/list-pt.md b/docs/data/joy/components/list/list-pt.md index 184d8fdd159ed3..357191442cb12a 100644 --- a/docs/data/joy/components/list/list-pt.md +++ b/docs/data/joy/components/list/list-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React List component +components: List, ListDivider, ListItem, ListItemButton, ListItemContent, ListItemDecorator, ListSubheader githubLabel: 'component: list' --- diff --git a/docs/data/joy/components/list/list-zh.md b/docs/data/joy/components/list/list-zh.md index 184d8fdd159ed3..357191442cb12a 100644 --- a/docs/data/joy/components/list/list-zh.md +++ b/docs/data/joy/components/list/list-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React List component +components: List, ListDivider, ListItem, ListItemButton, ListItemContent, ListItemDecorator, ListSubheader githubLabel: 'component: list' --- diff --git a/docs/data/joy/components/list/list.md b/docs/data/joy/components/list/list.md index d4fe4be15d76ce..7e1ee19147722e 100644 --- a/docs/data/joy/components/list/list.md +++ b/docs/data/joy/components/list/list.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React List component +components: List, ListDivider, ListItem, ListItemButton, ListItemContent, ListItemDecorator, ListSubheader githubLabel: 'component: list' --- diff --git a/docs/data/joy/components/menu/menu-pt.md b/docs/data/joy/components/menu/menu-pt.md index c2e1599c7e50d0..0cdb3214d3d02e 100644 --- a/docs/data/joy/components/menu/menu-pt.md +++ b/docs/data/joy/components/menu/menu-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Menu component +components: Menu, MenuItem, MenuList githubLabel: 'component: menu' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/ unstyled: /base/react-menu/ diff --git a/docs/data/joy/components/menu/menu-zh.md b/docs/data/joy/components/menu/menu-zh.md index c2e1599c7e50d0..0cdb3214d3d02e 100644 --- a/docs/data/joy/components/menu/menu-zh.md +++ b/docs/data/joy/components/menu/menu-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Menu component +components: Menu, MenuItem, MenuList githubLabel: 'component: menu' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/ unstyled: /base/react-menu/ diff --git a/docs/data/joy/components/menu/menu.md b/docs/data/joy/components/menu/menu.md index 20a41f44d90292..0bee3bd01fdf4f 100644 --- a/docs/data/joy/components/menu/menu.md +++ b/docs/data/joy/components/menu/menu.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Menu component +components: Menu, MenuItem, MenuList githubLabel: 'component: menu' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/ unstyled: /base/react-menu/ diff --git a/docs/data/joy/components/modal/modal.md b/docs/data/joy/components/modal/modal.md index 005d86caf6028b..3fac7032ea5d12 100644 --- a/docs/data/joy/components/modal/modal.md +++ b/docs/data/joy/components/modal/modal.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Modal component +components: Modal, ModalClose, ModalDialog githubLabel: 'component: modal' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/ --- diff --git a/docs/data/joy/components/radio/radio-pt.md b/docs/data/joy/components/radio/radio-pt.md index b6066b5680e7de..b0211e0d681d92 100644 --- a/docs/data/joy/components/radio/radio-pt.md +++ b/docs/data/joy/components/radio/radio-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Radio button component +components: Radio, RadioGroup githubLabel: 'component: radio' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/radio/ --- diff --git a/docs/data/joy/components/radio/radio-zh.md b/docs/data/joy/components/radio/radio-zh.md index b6066b5680e7de..b0211e0d681d92 100644 --- a/docs/data/joy/components/radio/radio-zh.md +++ b/docs/data/joy/components/radio/radio-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Radio button component +components: Radio, RadioGroup githubLabel: 'component: radio' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/radio/ --- diff --git a/docs/data/joy/components/radio/radio.md b/docs/data/joy/components/radio/radio.md index 3b9b1955e184b2..cb4840aea61375 100644 --- a/docs/data/joy/components/radio/radio.md +++ b/docs/data/joy/components/radio/radio.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Radio Group component +components: Radio, RadioGroup githubLabel: 'component: radio' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/radio/ --- diff --git a/docs/data/joy/components/select/select-pt.md b/docs/data/joy/components/select/select-pt.md index d1f04e4b1770ae..47f99d815a4cc5 100644 --- a/docs/data/joy/components/select/select-pt.md +++ b/docs/data/joy/components/select/select-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Select component +components: Select, Option githubLabel: 'component: select' unstyled: /base/react-select/ --- diff --git a/docs/data/joy/components/select/select-zh.md b/docs/data/joy/components/select/select-zh.md index d1f04e4b1770ae..47f99d815a4cc5 100644 --- a/docs/data/joy/components/select/select-zh.md +++ b/docs/data/joy/components/select/select-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Select component +components: Select, Option githubLabel: 'component: select' unstyled: /base/react-select/ --- diff --git a/docs/data/joy/components/select/select.md b/docs/data/joy/components/select/select.md index d078564f368ddc..d3e7b7020678ae 100644 --- a/docs/data/joy/components/select/select.md +++ b/docs/data/joy/components/select/select.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Select component +components: Select, Option githubLabel: 'component: select' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/ unstyled: /base/react-select/ diff --git a/docs/data/joy/components/sheet/sheet-pt.md b/docs/data/joy/components/sheet/sheet-pt.md index 6138176c8b6ab2..9ee99ef8060cd8 100644 --- a/docs/data/joy/components/sheet/sheet-pt.md +++ b/docs/data/joy/components/sheet/sheet-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Sheet component +components: Sheet --- # Sheet diff --git a/docs/data/joy/components/sheet/sheet-zh.md b/docs/data/joy/components/sheet/sheet-zh.md index 6138176c8b6ab2..9ee99ef8060cd8 100644 --- a/docs/data/joy/components/sheet/sheet-zh.md +++ b/docs/data/joy/components/sheet/sheet-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Sheet component +components: Sheet --- # Sheet diff --git a/docs/data/joy/components/sheet/sheet.md b/docs/data/joy/components/sheet/sheet.md index 6490e0f528e50c..8b4ba04e30bf8e 100644 --- a/docs/data/joy/components/sheet/sheet.md +++ b/docs/data/joy/components/sheet/sheet.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Sheet component +components: Sheet --- # Sheet diff --git a/docs/data/joy/components/slider/slider-pt.md b/docs/data/joy/components/slider/slider-pt.md index 09369f7e277d43..d9874d3d4cfc17 100644 --- a/docs/data/joy/components/slider/slider-pt.md +++ b/docs/data/joy/components/slider/slider-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Slider component +components: Slider githubLabel: 'component: slider' unstyled: /base/react-slider/ --- diff --git a/docs/data/joy/components/slider/slider-zh.md b/docs/data/joy/components/slider/slider-zh.md index 09369f7e277d43..d9874d3d4cfc17 100644 --- a/docs/data/joy/components/slider/slider-zh.md +++ b/docs/data/joy/components/slider/slider-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Slider component +components: Slider githubLabel: 'component: slider' unstyled: /base/react-slider/ --- diff --git a/docs/data/joy/components/slider/slider.md b/docs/data/joy/components/slider/slider.md index 3e66f09ea1a6ea..adeeee52ffbe81 100644 --- a/docs/data/joy/components/slider/slider.md +++ b/docs/data/joy/components/slider/slider.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Slider component +components: Slider githubLabel: 'component: slider' unstyled: /base/react-slider/ --- diff --git a/docs/data/joy/components/switch/switch-pt.md b/docs/data/joy/components/switch/switch-pt.md index 570e6824c8446f..07ea9cdeed4749 100644 --- a/docs/data/joy/components/switch/switch-pt.md +++ b/docs/data/joy/components/switch/switch-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Switch component +components: Switch githubLabel: 'component: switch' unstyled: /base/react-switch/ --- diff --git a/docs/data/joy/components/switch/switch-zh.md b/docs/data/joy/components/switch/switch-zh.md index 570e6824c8446f..07ea9cdeed4749 100644 --- a/docs/data/joy/components/switch/switch-zh.md +++ b/docs/data/joy/components/switch/switch-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Switch component +components: Switch githubLabel: 'component: switch' unstyled: /base/react-switch/ --- diff --git a/docs/data/joy/components/switch/switch.md b/docs/data/joy/components/switch/switch.md index 77b0357de374a8..039ff92c6c809c 100644 --- a/docs/data/joy/components/switch/switch.md +++ b/docs/data/joy/components/switch/switch.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Switch component +components: Switch githubLabel: 'component: switch' unstyled: /base/react-switch/ --- diff --git a/docs/data/joy/components/table/table.md b/docs/data/joy/components/table/table.md index 603ca1b9ed174b..307b0b35a20c3a 100644 --- a/docs/data/joy/components/table/table.md +++ b/docs/data/joy/components/table/table.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Table component +components: Table githubLabel: 'component: table' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/table/ --- diff --git a/docs/data/joy/components/tabs/tabs-pt.md b/docs/data/joy/components/tabs/tabs-pt.md index 5b71d56541092b..0f4d20cbecf7e1 100644 --- a/docs/data/joy/components/tabs/tabs-pt.md +++ b/docs/data/joy/components/tabs/tabs-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Tabs component +components: Tab, TabList, TabPanel, Tabs githubLabel: 'component: tabs' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/ unstyled: /base/react-tabs/ diff --git a/docs/data/joy/components/tabs/tabs-zh.md b/docs/data/joy/components/tabs/tabs-zh.md index 5b71d56541092b..0f4d20cbecf7e1 100644 --- a/docs/data/joy/components/tabs/tabs-zh.md +++ b/docs/data/joy/components/tabs/tabs-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Tabs component +components: Tab, TabList, TabPanel, Tabs githubLabel: 'component: tabs' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/ unstyled: /base/react-tabs/ diff --git a/docs/data/joy/components/tabs/tabs.md b/docs/data/joy/components/tabs/tabs.md index 1ccad151b8c8df..af11b5eff55878 100644 --- a/docs/data/joy/components/tabs/tabs.md +++ b/docs/data/joy/components/tabs/tabs.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Tabs component +components: Tab, TabList, TabPanel, Tabs githubLabel: 'component: tabs' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/ unstyled: /base/react-tabs/ diff --git a/docs/data/joy/components/text-field/text-field.md b/docs/data/joy/components/text-field/text-field.md index c3b2a2ac6c6ad8..85b30d81fd447d 100644 --- a/docs/data/joy/components/text-field/text-field.md +++ b/docs/data/joy/components/text-field/text-field.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Text Field component +components: TextField githubLabel: 'component: text field' --- diff --git a/docs/data/joy/components/textarea/textarea.md b/docs/data/joy/components/textarea/textarea.md index af70ce61035921..1439b44463d62c 100644 --- a/docs/data/joy/components/textarea/textarea.md +++ b/docs/data/joy/components/textarea/textarea.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Textarea component +components: Textarea githubLabel: 'component: TextareaAutosize' unstyled: /base/react-textarea-autosize/ --- diff --git a/docs/data/joy/components/tooltip/tooltip.md b/docs/data/joy/components/tooltip/tooltip.md index 6f50d134516d60..041d0e86662222 100644 --- a/docs/data/joy/components/tooltip/tooltip.md +++ b/docs/data/joy/components/tooltip/tooltip.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Tooltip component +components: Tooltip githubLabel: 'component: tooltip' waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/ --- diff --git a/docs/data/joy/components/typography/typography-pt.md b/docs/data/joy/components/typography/typography-pt.md index c1e3a43654031a..406df75aefeb4e 100644 --- a/docs/data/joy/components/typography/typography-pt.md +++ b/docs/data/joy/components/typography/typography-pt.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Typography component +components: Typography githubLabel: 'component: Typography' --- diff --git a/docs/data/joy/components/typography/typography-zh.md b/docs/data/joy/components/typography/typography-zh.md index c1e3a43654031a..406df75aefeb4e 100644 --- a/docs/data/joy/components/typography/typography-zh.md +++ b/docs/data/joy/components/typography/typography-zh.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Typography component +components: Typography githubLabel: 'component: Typography' --- diff --git a/docs/data/joy/components/typography/typography.md b/docs/data/joy/components/typography/typography.md index bbd725e7ce819e..f9f4ed17e52db4 100644 --- a/docs/data/joy/components/typography/typography.md +++ b/docs/data/joy/components/typography/typography.md @@ -1,6 +1,7 @@ --- product: joy-ui title: React Typography component +components: Typography githubLabel: 'component: Typography' --- diff --git a/docs/data/joy/pages.ts b/docs/data/joy/pages.ts index e01ed70f069a8f..2033a0c108841e 100644 --- a/docs/data/joy/pages.ts +++ b/docs/data/joy/pages.ts @@ -1,3 +1,5 @@ +import pagesApi from './pagesApi'; + const pages = [ { pathname: '/joy-ui/getting-started', @@ -93,6 +95,12 @@ const pages = [ }, ], }, + { + title: 'Component API', + pathname: '/joy-ui/api', + icon: 'CodeIcon', + children: pagesApi, + }, { pathname: '/joy-ui/customization', icon: 'CreateIcon', @@ -100,6 +108,7 @@ const pages = [ { pathname: '/joy-ui/customization/approaches' }, { pathname: '/joy-ui/customization/dark-mode' }, { + pathname: '/joy-ui/customization/theme', subheader: 'Theme', children: [ { pathname: '/joy-ui/customization/theme-colors', title: 'Colors' }, diff --git a/docs/data/joy/pagesApi.js b/docs/data/joy/pagesApi.js new file mode 100644 index 00000000000000..be5de1d8363484 --- /dev/null +++ b/docs/data/joy/pagesApi.js @@ -0,0 +1,59 @@ +module.exports = [ + { pathname: '/joy-ui/api/alert' }, + { pathname: '/joy-ui/api/aspect-ratio' }, + { pathname: '/joy-ui/api/autocomplete' }, + { pathname: '/joy-ui/api/autocomplete-listbox' }, + { pathname: '/joy-ui/api/autocomplete-option' }, + { pathname: '/joy-ui/api/avatar' }, + { pathname: '/joy-ui/api/avatar-group' }, + { pathname: '/joy-ui/api/badge' }, + { pathname: '/joy-ui/api/breadcrumbs' }, + { pathname: '/joy-ui/api/button' }, + { pathname: '/joy-ui/api/card' }, + { pathname: '/joy-ui/api/card-content' }, + { pathname: '/joy-ui/api/card-cover' }, + { pathname: '/joy-ui/api/card-overflow' }, + { pathname: '/joy-ui/api/checkbox' }, + { pathname: '/joy-ui/api/chip' }, + { pathname: '/joy-ui/api/chip-delete' }, + { pathname: '/joy-ui/api/circular-progress' }, + { pathname: '/joy-ui/api/css-baseline' }, + { pathname: '/joy-ui/api/divider' }, + { pathname: '/joy-ui/api/form-control' }, + { pathname: '/joy-ui/api/form-helper-text' }, + { pathname: '/joy-ui/api/form-label' }, + { pathname: '/joy-ui/api/icon-button' }, + { pathname: '/joy-ui/api/input' }, + { pathname: '/joy-ui/api/linear-progress' }, + { pathname: '/joy-ui/api/link' }, + { pathname: '/joy-ui/api/list' }, + { pathname: '/joy-ui/api/list-divider' }, + { pathname: '/joy-ui/api/list-item' }, + { pathname: '/joy-ui/api/list-item-button' }, + { pathname: '/joy-ui/api/list-item-content' }, + { pathname: '/joy-ui/api/list-item-decorator' }, + { pathname: '/joy-ui/api/list-subheader' }, + { pathname: '/joy-ui/api/menu' }, + { pathname: '/joy-ui/api/menu-item' }, + { pathname: '/joy-ui/api/menu-list' }, + { pathname: '/joy-ui/api/modal' }, + { pathname: '/joy-ui/api/modal-close' }, + { pathname: '/joy-ui/api/modal-dialog' }, + { pathname: '/joy-ui/api/option' }, + { pathname: '/joy-ui/api/radio' }, + { pathname: '/joy-ui/api/radio-group' }, + { pathname: '/joy-ui/api/scoped-css-baseline' }, + { pathname: '/joy-ui/api/select' }, + { pathname: '/joy-ui/api/sheet' }, + { pathname: '/joy-ui/api/slider' }, + { pathname: '/joy-ui/api/svg-icon' }, + { pathname: '/joy-ui/api/switch' }, + { pathname: '/joy-ui/api/tab' }, + { pathname: '/joy-ui/api/table' }, + { pathname: '/joy-ui/api/tab-list' }, + { pathname: '/joy-ui/api/tab-panel' }, + { pathname: '/joy-ui/api/tabs' }, + { pathname: '/joy-ui/api/textarea' }, + { pathname: '/joy-ui/api/tooltip' }, + { pathname: '/joy-ui/api/typography' }, +]; diff --git a/docs/pages/joy-ui/api/alert.js b/docs/pages/joy-ui/api/alert.js new file mode 100644 index 00000000000000..1beef9603135c9 --- /dev/null +++ b/docs/pages/joy-ui/api/alert.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './alert.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/alert', false, /alert.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/alert.json b/docs/pages/joy-ui/api/alert.json new file mode 100644 index 00000000000000..a14f33833b7487 --- /dev/null +++ b/docs/pages/joy-ui/api/alert.json @@ -0,0 +1,42 @@ +{ + "props": { + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "endDecorator": { "type": { "name": "node" } }, + "role": { "type": { "name": "string" }, "default": "'alert'" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "startDecorator": { "type": { "name": "node" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'soft'" + } + }, + "name": "Alert", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Alert/Alert.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/aspect-ratio.js b/docs/pages/joy-ui/api/aspect-ratio.js new file mode 100644 index 00000000000000..ff99079a85af64 --- /dev/null +++ b/docs/pages/joy-ui/api/aspect-ratio.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './aspect-ratio.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/aspect-ratio', + false, + /aspect-ratio.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/aspect-ratio.json b/docs/pages/joy-ui/api/aspect-ratio.json new file mode 100644 index 00000000000000..aa59d1410edd7b --- /dev/null +++ b/docs/pages/joy-ui/api/aspect-ratio.json @@ -0,0 +1,46 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "enum", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'" + }, + "default": "'neutral'" + }, + "maxHeight": { "type": { "name": "union", "description": "number
| string" } }, + "minHeight": { "type": { "name": "union", "description": "number
| string" } }, + "objectFit": { + "type": { + "name": "enum", + "description": "'-moz-initial'
| 'contain'
| 'cover'
| 'fill'
| 'inherit'
| 'initial'
| 'none'
| 'revert-layer'
| 'revert'
| 'scale-down'
| 'unset'" + }, + "default": "'cover'" + }, + "ratio": { + "type": { "name": "union", "description": "number
| string" }, + "default": "'16 / 9'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'soft'" + } + }, + "name": "AspectRatio", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/AspectRatio/AspectRatio.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/autocomplete-listbox.js b/docs/pages/joy-ui/api/autocomplete-listbox.js new file mode 100644 index 00000000000000..e79dc1da495467 --- /dev/null +++ b/docs/pages/joy-ui/api/autocomplete-listbox.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './autocomplete-listbox.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/autocomplete-listbox', + false, + /autocomplete-listbox.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/autocomplete-listbox.json b/docs/pages/joy-ui/api/autocomplete-listbox.json new file mode 100644 index 00000000000000..e21542a2eae4c2 --- /dev/null +++ b/docs/pages/joy-ui/api/autocomplete-listbox.json @@ -0,0 +1,37 @@ +{ + "props": { + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "size": { + "type": { "name": "enum", "description": "'sm'
| 'md'
| 'lg'" }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'contained'
| 'light'
| 'outlined'
| 'text'
| string" + }, + "default": "'outlined'" + } + }, + "name": "AutocompleteListbox", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLUListElement", + "filename": "/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/autocomplete-option.js b/docs/pages/joy-ui/api/autocomplete-option.js new file mode 100644 index 00000000000000..8304139be937e1 --- /dev/null +++ b/docs/pages/joy-ui/api/autocomplete-option.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './autocomplete-option.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/autocomplete-option', + false, + /autocomplete-option.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/autocomplete-option.json b/docs/pages/joy-ui/api/autocomplete-option.json new file mode 100644 index 00000000000000..e5cad148843941 --- /dev/null +++ b/docs/pages/joy-ui/api/autocomplete-option.json @@ -0,0 +1,33 @@ +{ + "props": { + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'contained'
| 'light'
| 'outlined'
| 'text'
| string" + }, + "default": "'plain'" + } + }, + "name": "AutocompleteOption", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLLIElement", + "filename": "/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/autocomplete.js b/docs/pages/joy-ui/api/autocomplete.js new file mode 100644 index 00000000000000..e860d625a4952d --- /dev/null +++ b/docs/pages/joy-ui/api/autocomplete.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './autocomplete.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/autocomplete', + false, + /autocomplete.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/autocomplete.json b/docs/pages/joy-ui/api/autocomplete.json new file mode 100644 index 00000000000000..51e53cad382c16 --- /dev/null +++ b/docs/pages/joy-ui/api/autocomplete.json @@ -0,0 +1,97 @@ +{ + "props": { + "options": { "type": { "name": "array" }, "required": true }, + "aria-describedby": { "type": { "name": "string" } }, + "aria-label": { "type": { "name": "string" } }, + "aria-labelledby": { "type": { "name": "string" } }, + "autoFocus": { "type": { "name": "bool" } }, + "clearIcon": { "type": { "name": "node" }, "default": "" }, + "clearText": { "type": { "name": "string" }, "default": "'Clear'" }, + "closeText": { "type": { "name": "string" }, "default": "'Close'" }, + "color": { + "type": { + "name": "enum", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'" + }, + "default": "'neutral'" + }, + "defaultValue": { + "type": { "name": "custom", "description": "any" }, + "default": "props.multiple ? [] : null" + }, + "disableClearable": { "type": { "name": "bool" }, "default": "false" }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "endDecorator": { "type": { "name": "node" } }, + "error": { "type": { "name": "bool" }, "default": "false" }, + "filterOptions": { "type": { "name": "func" } }, + "forcePopupIcon": { + "type": { "name": "union", "description": "'auto'
| bool" }, + "default": "'auto'" + }, + "freeSolo": { "type": { "name": "bool" }, "default": "false" }, + "getLimitTagsText": { + "type": { "name": "func" }, + "default": "(more: string | number) => `+${more}`" + }, + "getOptionDisabled": { "type": { "name": "func" } }, + "getOptionLabel": { + "type": { "name": "func" }, + "default": "(option) => option.label ?? option" + }, + "groupBy": { "type": { "name": "func" } }, + "id": { "type": { "name": "string" } }, + "inputValue": { "type": { "name": "string" } }, + "isOptionEqualToValue": { "type": { "name": "func" } }, + "limitTags": { "type": { "name": "custom", "description": "integer" }, "default": "-1" }, + "loading": { "type": { "name": "bool" }, "default": "false" }, + "loadingText": { "type": { "name": "node" }, "default": "'Loading…'" }, + "multiple": { "type": { "name": "bool" }, "default": "false" }, + "name": { "type": { "name": "string" } }, + "noOptionsText": { "type": { "name": "node" }, "default": "'No options'" }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "onHighlightChange": { "type": { "name": "func" } }, + "onInputChange": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "openText": { "type": { "name": "string" }, "default": "'Open'" }, + "placeholder": { "type": { "name": "string" } }, + "popupIcon": { "type": { "name": "node" }, "default": "" }, + "readOnly": { "type": { "name": "bool" }, "default": "false" }, + "renderGroup": { "type": { "name": "func" } }, + "renderOption": { "type": { "name": "func" } }, + "renderTags": { "type": { "name": "func" } }, + "required": { "type": { "name": "bool" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "startDecorator": { "type": { "name": "node" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "type": { "type": { "name": "string" } }, + "value": { "type": { "name": "custom", "description": "any" } }, + "variant": { + "type": { + "name": "enum", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'" + }, + "default": "'outlined'" + } + }, + "name": "Autocomplete", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Autocomplete/Autocomplete.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/avatar-group.js b/docs/pages/joy-ui/api/avatar-group.js new file mode 100644 index 00000000000000..c5ccfec00272ea --- /dev/null +++ b/docs/pages/joy-ui/api/avatar-group.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './avatar-group.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/avatar-group', + false, + /avatar-group.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/avatar-group.json b/docs/pages/joy-ui/api/avatar-group.json new file mode 100644 index 00000000000000..27718f3fd9ac3e --- /dev/null +++ b/docs/pages/joy-ui/api/avatar-group.json @@ -0,0 +1,41 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "size": { + "type": { + "name": "union", + "description": "'lg'
| 'md'
| 'sm'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'soft'" + } + }, + "name": "AvatarGroup", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/avatar.js b/docs/pages/joy-ui/api/avatar.js new file mode 100644 index 00000000000000..57a3395ab0730a --- /dev/null +++ b/docs/pages/joy-ui/api/avatar.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './avatar.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/avatar', false, /avatar.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/avatar.json b/docs/pages/joy-ui/api/avatar.json new file mode 100644 index 00000000000000..c77d4923817a95 --- /dev/null +++ b/docs/pages/joy-ui/api/avatar.json @@ -0,0 +1,43 @@ +{ + "props": { + "alt": { "type": { "name": "string" } }, + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "size": { + "type": { + "name": "union", + "description": "'lg'
| 'md'
| 'sm'
| string" + }, + "default": "'md'" + }, + "src": { "type": { "name": "string" } }, + "srcSet": { "type": { "name": "string" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'soft'" + } + }, + "name": "Avatar", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Avatar/Avatar.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/badge.js b/docs/pages/joy-ui/api/badge.js new file mode 100644 index 00000000000000..934d17137e217d --- /dev/null +++ b/docs/pages/joy-ui/api/badge.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './badge.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/badge', false, /badge.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/badge.json b/docs/pages/joy-ui/api/badge.json new file mode 100644 index 00000000000000..2acb56e0d61ff2 --- /dev/null +++ b/docs/pages/joy-ui/api/badge.json @@ -0,0 +1,55 @@ +{ + "props": { + "anchorOrigin": { + "type": { + "name": "shape", + "description": "{ horizontal: 'left'
| 'right', vertical: 'bottom'
| 'top' }" + }, + "default": "{\n vertical: 'top',\n horizontal: 'right',\n}" + }, + "badgeContent": { "type": { "name": "node" }, "default": "''" }, + "badgeInset": { + "type": { "name": "union", "description": "number
| string" }, + "default": "0" + }, + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "invisible": { "type": { "name": "bool" }, "default": "false" }, + "max": { "type": { "name": "number" }, "default": "99" }, + "showZero": { "type": { "name": "bool" }, "default": "false" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'solid'" + } + }, + "name": "Badge", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLSpanElement", + "filename": "/packages/mui-joy/src/Badge/Badge.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/breadcrumbs.js b/docs/pages/joy-ui/api/breadcrumbs.js new file mode 100644 index 00000000000000..afb0cff96967f1 --- /dev/null +++ b/docs/pages/joy-ui/api/breadcrumbs.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './breadcrumbs.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/breadcrumbs', + false, + /breadcrumbs.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/breadcrumbs.json b/docs/pages/joy-ui/api/breadcrumbs.json new file mode 100644 index 00000000000000..6f18365509c763 --- /dev/null +++ b/docs/pages/joy-ui/api/breadcrumbs.json @@ -0,0 +1,27 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "separator": { "type": { "name": "node" }, "default": "'/'" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "Breadcrumbs", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLElement", + "filename": "/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/button.js b/docs/pages/joy-ui/api/button.js new file mode 100644 index 00000000000000..2921080c103f66 --- /dev/null +++ b/docs/pages/joy-ui/api/button.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './button.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/button', false, /button.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/button.json b/docs/pages/joy-ui/api/button.json new file mode 100644 index 00000000000000..869d65a9f8c837 --- /dev/null +++ b/docs/pages/joy-ui/api/button.json @@ -0,0 +1,58 @@ +{ + "props": { + "action": { + "type": { + "name": "union", + "description": "func
| { current?: { focusVisible: func } }" + } + }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "endDecorator": { "type": { "name": "node" } }, + "fullWidth": { "type": { "name": "bool" }, "default": "false" }, + "loading": { "type": { "name": "bool" }, "default": "false" }, + "loadingIndicator": { "type": { "name": "node" }, "default": "" }, + "loadingPosition": { + "type": { + "name": "enum", + "description": "'center'
| 'end'
| 'start'" + }, + "default": "'center'" + }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "startDecorator": { "type": { "name": "node" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'solid'" + } + }, + "name": "Button", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLButtonElement", + "filename": "/packages/mui-joy/src/Button/Button.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/card-content.js b/docs/pages/joy-ui/api/card-content.js new file mode 100644 index 00000000000000..9ed9f2faacfc3f --- /dev/null +++ b/docs/pages/joy-ui/api/card-content.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './card-content.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/card-content', + false, + /card-content.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/card-content.json b/docs/pages/joy-ui/api/card-content.json new file mode 100644 index 00000000000000..88932b2947fa10 --- /dev/null +++ b/docs/pages/joy-ui/api/card-content.json @@ -0,0 +1,20 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "CardContent", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/CardContent/CardContent.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/card-cover.js b/docs/pages/joy-ui/api/card-cover.js new file mode 100644 index 00000000000000..0236dc8169b6f1 --- /dev/null +++ b/docs/pages/joy-ui/api/card-cover.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './card-cover.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/card-cover', + false, + /card-cover.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/card-cover.json b/docs/pages/joy-ui/api/card-cover.json new file mode 100644 index 00000000000000..7ddd8b3c3513fb --- /dev/null +++ b/docs/pages/joy-ui/api/card-cover.json @@ -0,0 +1,20 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "CardCover", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/CardCover/CardCover.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/card-overflow.js b/docs/pages/joy-ui/api/card-overflow.js new file mode 100644 index 00000000000000..2b57750faa905a --- /dev/null +++ b/docs/pages/joy-ui/api/card-overflow.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './card-overflow.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/card-overflow', + false, + /card-overflow.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/card-overflow.json b/docs/pages/joy-ui/api/card-overflow.json new file mode 100644 index 00000000000000..8d3ae238f2606b --- /dev/null +++ b/docs/pages/joy-ui/api/card-overflow.json @@ -0,0 +1,34 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "CardOverflow", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/CardOverflow/CardOverflow.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/card.js b/docs/pages/joy-ui/api/card.js new file mode 100644 index 00000000000000..5da0e773bb2a6d --- /dev/null +++ b/docs/pages/joy-ui/api/card.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './card.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/card', false, /card.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/card.json b/docs/pages/joy-ui/api/card.json new file mode 100644 index 00000000000000..47363b9aa07c94 --- /dev/null +++ b/docs/pages/joy-ui/api/card.json @@ -0,0 +1,46 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "invertedColors": { "type": { "name": "bool" }, "default": "false" }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'vertical'" + }, + "size": { + "type": { + "name": "union", + "description": "'lg'
| 'md'
| 'sm'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "Card", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Card/Card.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/checkbox.js b/docs/pages/joy-ui/api/checkbox.js new file mode 100644 index 00000000000000..0df2f4c56de0b7 --- /dev/null +++ b/docs/pages/joy-ui/api/checkbox.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './checkbox.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/checkbox', false, /checkbox.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/checkbox.json b/docs/pages/joy-ui/api/checkbox.json new file mode 100644 index 00000000000000..9884b3aa24316f --- /dev/null +++ b/docs/pages/joy-ui/api/checkbox.json @@ -0,0 +1,57 @@ +{ + "props": { + "checked": { "type": { "name": "bool" } }, + "checkedIcon": { "type": { "name": "node" }, "default": "" }, + "className": { "type": { "name": "string" } }, + "color": { + "type": { + "name": "enum", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'" + }, + "default": "'neutral'" + }, + "defaultChecked": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableIcon": { "type": { "name": "bool" }, "default": "false" }, + "indeterminate": { "type": { "name": "bool" }, "default": "false" }, + "indeterminateIcon": { "type": { "name": "node" }, "default": "" }, + "label": { "type": { "name": "node" } }, + "name": { "type": { "name": "string" } }, + "onChange": { "type": { "name": "func" } }, + "overlay": { "type": { "name": "bool" }, "default": "false" }, + "readOnly": { "type": { "name": "bool" } }, + "required": { "type": { "name": "bool" } }, + "size": { + "type": { "name": "enum", "description": "'sm'
| 'md'
| 'lg'" }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "uncheckedIcon": { "type": { "name": "node" } }, + "value": { + "type": { + "name": "union", + "description": "Array<string>
| number
| string" + } + }, + "variant": { + "type": { + "name": "enum", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'" + }, + "default": "'solid'" + } + }, + "name": "Checkbox", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLSpanElement", + "filename": "/packages/mui-joy/src/Checkbox/Checkbox.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/chip-delete.js b/docs/pages/joy-ui/api/chip-delete.js new file mode 100644 index 00000000000000..39698b8886be15 --- /dev/null +++ b/docs/pages/joy-ui/api/chip-delete.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './chip-delete.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/chip-delete', + false, + /chip-delete.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/chip-delete.json b/docs/pages/joy-ui/api/chip-delete.json new file mode 100644 index 00000000000000..a9ccb2411d36f0 --- /dev/null +++ b/docs/pages/joy-ui/api/chip-delete.json @@ -0,0 +1,36 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "component": { "type": { "name": "elementType" } }, + "disabled": { "type": { "name": "bool" } }, + "onDelete": { "type": { "name": "func" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'solid'" + } + }, + "name": "ChipDelete", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLButtonElement", + "filename": "/packages/mui-joy/src/ChipDelete/ChipDelete.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/chip.js b/docs/pages/joy-ui/api/chip.js new file mode 100644 index 00000000000000..becc5c4656a95b --- /dev/null +++ b/docs/pages/joy-ui/api/chip.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './chip.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/chip', false, /chip.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/chip.json b/docs/pages/joy-ui/api/chip.json new file mode 100644 index 00000000000000..270c9d91ac4be9 --- /dev/null +++ b/docs/pages/joy-ui/api/chip.json @@ -0,0 +1,44 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "endDecorator": { "type": { "name": "node" } }, + "onClick": { "type": { "name": "func" } }, + "size": { + "type": { + "name": "union", + "description": "'lg'
| 'md'
| 'sm'
| string" + }, + "default": "'md'" + }, + "startDecorator": { "type": { "name": "node" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'solid'" + } + }, + "name": "Chip", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Chip/Chip.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/circular-progress.js b/docs/pages/joy-ui/api/circular-progress.js new file mode 100644 index 00000000000000..99973fb75b7d20 --- /dev/null +++ b/docs/pages/joy-ui/api/circular-progress.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './circular-progress.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/circular-progress', + false, + /circular-progress.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/circular-progress.json b/docs/pages/joy-ui/api/circular-progress.json new file mode 100644 index 00000000000000..3aad5f08bdec17 --- /dev/null +++ b/docs/pages/joy-ui/api/circular-progress.json @@ -0,0 +1,42 @@ +{ + "props": { + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "determinate": { "type": { "name": "bool" }, "default": "false" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "thickness": { "type": { "name": "number" } }, + "value": { "type": { "name": "number" }, "default": "determinate ? 0 : 25" }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'soft'" + } + }, + "name": "CircularProgress", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLSpanElement", + "filename": "/packages/mui-joy/src/CircularProgress/CircularProgress.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/css-baseline.js b/docs/pages/joy-ui/api/css-baseline.js new file mode 100644 index 00000000000000..6fe78ac3fb9d43 --- /dev/null +++ b/docs/pages/joy-ui/api/css-baseline.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './css-baseline.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/css-baseline', + false, + /css-baseline.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/css-baseline.json b/docs/pages/joy-ui/api/css-baseline.json new file mode 100644 index 00000000000000..ca09a55092b0aa --- /dev/null +++ b/docs/pages/joy-ui/api/css-baseline.json @@ -0,0 +1,13 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "disableColorScheme": { "type": { "name": "bool" }, "default": "false" } + }, + "name": "CssBaseline", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "filename": "/packages/mui-joy/src/CssBaseline/CssBaseline.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/divider.js b/docs/pages/joy-ui/api/divider.js new file mode 100644 index 00000000000000..018e205ed7d7ea --- /dev/null +++ b/docs/pages/joy-ui/api/divider.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './divider.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/divider', false, /divider.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/divider.json b/docs/pages/joy-ui/api/divider.json new file mode 100644 index 00000000000000..927dcbacb4bc2f --- /dev/null +++ b/docs/pages/joy-ui/api/divider.json @@ -0,0 +1,30 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "inset": { + "type": { + "name": "union", + "description": "'none'
| 'context'
| string" + } + }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'horizontal'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "Divider", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLHRElement", + "filename": "/packages/mui-joy/src/Divider/Divider.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/form-control.js b/docs/pages/joy-ui/api/form-control.js new file mode 100644 index 00000000000000..fe1436d9acbf30 --- /dev/null +++ b/docs/pages/joy-ui/api/form-control.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './form-control.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/form-control', + false, + /form-control.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/form-control.json b/docs/pages/joy-ui/api/form-control.json new file mode 100644 index 00000000000000..3590dff1bf4b0b --- /dev/null +++ b/docs/pages/joy-ui/api/form-control.json @@ -0,0 +1,40 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + } + }, + "component": { "type": { "name": "elementType" } }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "error": { "type": { "name": "bool" }, "default": "false" }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'vertical'" + }, + "required": { "type": { "name": "bool" }, "default": "false" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "FormControl", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/FormControl/FormControl.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/form-helper-text.js b/docs/pages/joy-ui/api/form-helper-text.js new file mode 100644 index 00000000000000..bb9f7d5ef3010c --- /dev/null +++ b/docs/pages/joy-ui/api/form-helper-text.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './form-helper-text.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/form-helper-text', + false, + /form-helper-text.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/form-helper-text.json b/docs/pages/joy-ui/api/form-helper-text.json new file mode 100644 index 00000000000000..ceddc13ef69da6 --- /dev/null +++ b/docs/pages/joy-ui/api/form-helper-text.json @@ -0,0 +1,20 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "FormHelperText", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/FormHelperText/FormHelperText.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/form-label.js b/docs/pages/joy-ui/api/form-label.js new file mode 100644 index 00000000000000..a17441b6360311 --- /dev/null +++ b/docs/pages/joy-ui/api/form-label.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './form-label.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/form-label', + false, + /form-label.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/form-label.json b/docs/pages/joy-ui/api/form-label.json new file mode 100644 index 00000000000000..7e19c2cee1cc3e --- /dev/null +++ b/docs/pages/joy-ui/api/form-label.json @@ -0,0 +1,21 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "required": { "type": { "name": "bool" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "FormLabel", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLLabelElement", + "filename": "/packages/mui-joy/src/FormLabel/FormLabel.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/icon-button.js b/docs/pages/joy-ui/api/icon-button.js new file mode 100644 index 00000000000000..b74a97145df7bb --- /dev/null +++ b/docs/pages/joy-ui/api/icon-button.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './icon-button.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/icon-button', + false, + /icon-button.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/icon-button.json b/docs/pages/joy-ui/api/icon-button.json new file mode 100644 index 00000000000000..d9b078345fcd9f --- /dev/null +++ b/docs/pages/joy-ui/api/icon-button.json @@ -0,0 +1,48 @@ +{ + "props": { + "action": { + "type": { + "name": "union", + "description": "func
| { current?: { focusVisible: func } }" + } + }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "component": { "type": { "name": "elementType" } }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "focusVisibleClassName": { "type": { "name": "string" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'soft'" + } + }, + "name": "IconButton", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLButtonElement", + "filename": "/packages/mui-joy/src/IconButton/IconButton.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/input.js b/docs/pages/joy-ui/api/input.js new file mode 100644 index 00000000000000..5148e848df28b1 --- /dev/null +++ b/docs/pages/joy-ui/api/input.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './input.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/input', false, /input.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/input.json b/docs/pages/joy-ui/api/input.json new file mode 100644 index 00000000000000..ec9e8ebe0c13b8 --- /dev/null +++ b/docs/pages/joy-ui/api/input.json @@ -0,0 +1,41 @@ +{ + "props": { + "className": { "type": { "name": "string" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + } + }, + "endDecorator": { "type": { "name": "node" } }, + "error": { "type": { "name": "bool" } }, + "fullWidth": { "type": { "name": "bool" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + } + }, + "startDecorator": { "type": { "name": "node" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + } + } + }, + "name": "Input", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Input/Input.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/linear-progress.js b/docs/pages/joy-ui/api/linear-progress.js new file mode 100644 index 00000000000000..913b381ac10b9d --- /dev/null +++ b/docs/pages/joy-ui/api/linear-progress.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './linear-progress.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/linear-progress', + false, + /linear-progress.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/linear-progress.json b/docs/pages/joy-ui/api/linear-progress.json new file mode 100644 index 00000000000000..e38a90713163c4 --- /dev/null +++ b/docs/pages/joy-ui/api/linear-progress.json @@ -0,0 +1,43 @@ +{ + "props": { + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "component": { "type": { "name": "elementType" } }, + "determinate": { "type": { "name": "bool" }, "default": "false" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "thickness": { "type": { "name": "number" } }, + "value": { "type": { "name": "number" }, "default": "determinate ? 0 : 25" }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'soft'" + } + }, + "name": "LinearProgress", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/LinearProgress/LinearProgress.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/link.js b/docs/pages/joy-ui/api/link.js new file mode 100644 index 00000000000000..cefc7a511cf31a --- /dev/null +++ b/docs/pages/joy-ui/api/link.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './link.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/link', false, /link.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/link.json b/docs/pages/joy-ui/api/link.json new file mode 100644 index 00000000000000..f38f446d8d516f --- /dev/null +++ b/docs/pages/joy-ui/api/link.json @@ -0,0 +1,52 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "endDecorator": { "type": { "name": "node" } }, + "level": { + "type": { + "name": "union", + "description": "'body1'
| 'body2'
| 'body3'
| 'h1'
| 'h2'
| 'h3'
| 'h4'
| 'h5'
| 'h6'
| 'inherit'
| string" + }, + "default": "'body1'" + }, + "overlay": { "type": { "name": "bool" }, "default": "false" }, + "startDecorator": { "type": { "name": "node" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "textColor": { "type": { "name": "any" } }, + "underline": { + "type": { + "name": "enum", + "description": "'always'
| 'hover'
| 'none'" + }, + "default": "'hover'" + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "Link", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLAnchorElement", + "filename": "/packages/mui-joy/src/Link/Link.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/list-divider.js b/docs/pages/joy-ui/api/list-divider.js new file mode 100644 index 00000000000000..7368cf339d4cb5 --- /dev/null +++ b/docs/pages/joy-ui/api/list-divider.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './list-divider.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/list-divider', + false, + /list-divider.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/list-divider.json b/docs/pages/joy-ui/api/list-divider.json new file mode 100644 index 00000000000000..af5eb874c70f41 --- /dev/null +++ b/docs/pages/joy-ui/api/list-divider.json @@ -0,0 +1,31 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "inset": { + "type": { + "name": "union", + "description": "'context'
| 'gutter'
| 'startDecorator'
| 'startContent'
| string" + }, + "default": "'context'" + }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'horizontal'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "ListDivider", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLLIElement", + "filename": "/packages/mui-joy/src/ListDivider/ListDivider.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/list-item-button.js b/docs/pages/joy-ui/api/list-item-button.js new file mode 100644 index 00000000000000..e89eeff96e040a --- /dev/null +++ b/docs/pages/joy-ui/api/list-item-button.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './list-item-button.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/list-item-button', + false, + /list-item-button.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/list-item-button.json b/docs/pages/joy-ui/api/list-item-button.json new file mode 100644 index 00000000000000..0cbb3959fcdc9c --- /dev/null +++ b/docs/pages/joy-ui/api/list-item-button.json @@ -0,0 +1,48 @@ +{ + "props": { + "action": { + "type": { + "name": "union", + "description": "func
| { current?: { focusVisible: func } }" + } + }, + "autoFocus": { "type": { "name": "bool" }, "default": "false" }, + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "selected ? 'primary' : 'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "focusVisibleClassName": { "type": { "name": "string" } }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'horizontal'" + }, + "selected": { "type": { "name": "bool" }, "default": "false" }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "ListItemButton", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/ListItemButton/ListItemButton.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/list-item-content.js b/docs/pages/joy-ui/api/list-item-content.js new file mode 100644 index 00000000000000..46a470fbd462f6 --- /dev/null +++ b/docs/pages/joy-ui/api/list-item-content.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './list-item-content.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/list-item-content', + false, + /list-item-content.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/list-item-content.json b/docs/pages/joy-ui/api/list-item-content.json new file mode 100644 index 00000000000000..d23cb7fd11d2ee --- /dev/null +++ b/docs/pages/joy-ui/api/list-item-content.json @@ -0,0 +1,20 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "ListItemContent", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/ListItemContent/ListItemContent.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/list-item-decorator.js b/docs/pages/joy-ui/api/list-item-decorator.js new file mode 100644 index 00000000000000..34d3416aeb72fa --- /dev/null +++ b/docs/pages/joy-ui/api/list-item-decorator.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './list-item-decorator.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/list-item-decorator', + false, + /list-item-decorator.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/list-item-decorator.json b/docs/pages/joy-ui/api/list-item-decorator.json new file mode 100644 index 00000000000000..3e21f8ef7eec62 --- /dev/null +++ b/docs/pages/joy-ui/api/list-item-decorator.json @@ -0,0 +1,20 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "ListItemDecorator", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLSpanElement", + "filename": "/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/list-item.js b/docs/pages/joy-ui/api/list-item.js new file mode 100644 index 00000000000000..795326d3b784e8 --- /dev/null +++ b/docs/pages/joy-ui/api/list-item.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './list-item.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/list-item', + false, + /list-item.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/list-item.json b/docs/pages/joy-ui/api/list-item.json new file mode 100644 index 00000000000000..e2b710e25ce572 --- /dev/null +++ b/docs/pages/joy-ui/api/list-item.json @@ -0,0 +1,38 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "endAction": { "type": { "name": "node" } }, + "nested": { "type": { "name": "bool" }, "default": "false" }, + "startAction": { "type": { "name": "node" } }, + "sticky": { "type": { "name": "bool" }, "default": "false" }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "ListItem", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLLIElement", + "filename": "/packages/mui-joy/src/ListItem/ListItem.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/list-subheader.js b/docs/pages/joy-ui/api/list-subheader.js new file mode 100644 index 00000000000000..40c4ae82a46e44 --- /dev/null +++ b/docs/pages/joy-ui/api/list-subheader.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './list-subheader.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/list-subheader', + false, + /list-subheader.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/list-subheader.json b/docs/pages/joy-ui/api/list-subheader.json new file mode 100644 index 00000000000000..3dcb63d49c5a91 --- /dev/null +++ b/docs/pages/joy-ui/api/list-subheader.json @@ -0,0 +1,33 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + } + }, + "component": { "type": { "name": "elementType" } }, + "sticky": { "type": { "name": "bool" }, "default": "false" }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + } + } + }, + "name": "ListSubheader", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/ListSubheader/ListSubheader.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/list.js b/docs/pages/joy-ui/api/list.js new file mode 100644 index 00000000000000..eb6d30911256fa --- /dev/null +++ b/docs/pages/joy-ui/api/list.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './list.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/list', false, /list.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/list.json b/docs/pages/joy-ui/api/list.json new file mode 100644 index 00000000000000..64f4aa25c4dc0a --- /dev/null +++ b/docs/pages/joy-ui/api/list.json @@ -0,0 +1,46 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'vertical'" + }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + }, + "wrap": { "type": { "name": "bool" }, "default": "false" } + }, + "name": "List", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLUListElement", + "filename": "/packages/mui-joy/src/List/List.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/menu-item.js b/docs/pages/joy-ui/api/menu-item.js new file mode 100644 index 00000000000000..7c25eabddc7a9d --- /dev/null +++ b/docs/pages/joy-ui/api/menu-item.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './menu-item.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/menu-item', + false, + /menu-item.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/menu-item.json b/docs/pages/joy-ui/api/menu-item.json new file mode 100644 index 00000000000000..59fb01beb2e0a8 --- /dev/null +++ b/docs/pages/joy-ui/api/menu-item.json @@ -0,0 +1,28 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "selected ? 'primary' : 'neutral'" + }, + "selected": { "type": { "name": "bool" }, "default": "false" }, + "variant": { + "type": { + "name": "union", + "description": "'contained'
| 'light'
| 'outlined'
| 'text'
| string" + }, + "default": "'plain'" + } + }, + "name": "MenuItem", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLLIElement", + "filename": "/packages/mui-joy/src/MenuItem/MenuItem.tsx", + "inheritance": { "component": "ListItemButton", "pathname": "/joy-ui/api/list-item-button/" }, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/menu-list.js b/docs/pages/joy-ui/api/menu-list.js new file mode 100644 index 00000000000000..328df9707e3920 --- /dev/null +++ b/docs/pages/joy-ui/api/menu-list.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './menu-list.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/menu-list', + false, + /menu-list.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/menu-list.json b/docs/pages/joy-ui/api/menu-list.json new file mode 100644 index 00000000000000..d437abb19e18cc --- /dev/null +++ b/docs/pages/joy-ui/api/menu-list.json @@ -0,0 +1,46 @@ +{ + "props": { + "actions": { + "type": { + "name": "union", + "description": "func
| { current?: { highlightFirstItem: func, highlightLastItem: func } }" + } + }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'outlined'" + } + }, + "name": "MenuList", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLUListElement", + "filename": "/packages/mui-joy/src/MenuList/MenuList.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/menu.js b/docs/pages/joy-ui/api/menu.js new file mode 100644 index 00000000000000..9d8852e164459a --- /dev/null +++ b/docs/pages/joy-ui/api/menu.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './menu.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/menu', false, /menu.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/menu.json b/docs/pages/joy-ui/api/menu.json new file mode 100644 index 00000000000000..2bbb252a15feb3 --- /dev/null +++ b/docs/pages/joy-ui/api/menu.json @@ -0,0 +1,52 @@ +{ + "props": { + "actions": { "type": { "name": "custom", "description": "ref" } }, + "anchorEl": { "type": { "name": "union", "description": "HTML element
| func" } }, + "color": { + "type": { + "name": "enum", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "disablePortal": { "type": { "name": "bool" }, "default": "false" }, + "keepMounted": { "type": { "name": "bool" }, "default": "false" }, + "modifiers": { + "type": { + "name": "arrayOf", + "description": "Array<{ data?: object, effect?: func, enabled?: bool, fn?: func, name?: any, options?: object, phase?: 'afterMain'
| 'afterRead'
| 'afterWrite'
| 'beforeMain'
| 'beforeRead'
| 'beforeWrite'
| 'main'
| 'read'
| 'write', requires?: Array<string>, requiresIfExists?: Array<string> }>" + } + }, + "onClose": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" }, "default": "false" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'outlined'" + } + }, + "name": "Menu", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLUListElement", + "filename": "/packages/mui-joy/src/Menu/Menu.tsx", + "inheritance": { "component": "PopperUnstyled", "pathname": "/base/api/popper-unstyled/" }, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/modal-close.js b/docs/pages/joy-ui/api/modal-close.js new file mode 100644 index 00000000000000..2e1f20037a8b9b --- /dev/null +++ b/docs/pages/joy-ui/api/modal-close.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './modal-close.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/modal-close', + false, + /modal-close.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/modal-close.json b/docs/pages/joy-ui/api/modal-close.json new file mode 100644 index 00000000000000..6c3ef266a1097d --- /dev/null +++ b/docs/pages/joy-ui/api/modal-close.json @@ -0,0 +1,40 @@ +{ + "props": { + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "ModalClose", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLButtonElement", + "filename": "/packages/mui-joy/src/ModalClose/ModalClose.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/modal-dialog.js b/docs/pages/joy-ui/api/modal-dialog.js new file mode 100644 index 00000000000000..7a075af2d745a4 --- /dev/null +++ b/docs/pages/joy-ui/api/modal-dialog.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './modal-dialog.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/modal-dialog', + false, + /modal-dialog.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/modal-dialog.json b/docs/pages/joy-ui/api/modal-dialog.json new file mode 100644 index 00000000000000..c6f88b15526240 --- /dev/null +++ b/docs/pages/joy-ui/api/modal-dialog.json @@ -0,0 +1,48 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "layout": { + "type": { + "name": "union", + "description": "'center'
| 'fullscreen'
| string" + }, + "default": "'center'" + }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'outlined'" + } + }, + "name": "ModalDialog", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/ModalDialog/ModalDialog.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/modal.js b/docs/pages/joy-ui/api/modal.js new file mode 100644 index 00000000000000..ef6790a308f66d --- /dev/null +++ b/docs/pages/joy-ui/api/modal.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './modal.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/modal', false, /modal.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/modal.json b/docs/pages/joy-ui/api/modal.json new file mode 100644 index 00000000000000..5d4f34849be2de --- /dev/null +++ b/docs/pages/joy-ui/api/modal.json @@ -0,0 +1,30 @@ +{ + "props": { + "children": { "type": { "name": "custom", "description": "element" }, "required": true }, + "open": { "type": { "name": "bool" }, "required": true }, + "container": { "type": { "name": "union", "description": "HTML element
| func" } }, + "disableAutoFocus": { "type": { "name": "bool" }, "default": "false" }, + "disableEnforceFocus": { "type": { "name": "bool" }, "default": "false" }, + "disableEscapeKeyDown": { "type": { "name": "bool" }, "default": "false" }, + "disablePortal": { "type": { "name": "bool" }, "default": "false" }, + "disableRestoreFocus": { "type": { "name": "bool" }, "default": "false" }, + "disableScrollLock": { "type": { "name": "bool" }, "default": "false" }, + "hideBackdrop": { "type": { "name": "bool" }, "default": "false" }, + "keepMounted": { "type": { "name": "bool" }, "default": "false" }, + "onClose": { "type": { "name": "func" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "Modal", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Modal/Modal.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/option.js b/docs/pages/joy-ui/api/option.js new file mode 100644 index 00000000000000..5e0ef1712e7508 --- /dev/null +++ b/docs/pages/joy-ui/api/option.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './option.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/option', false, /option.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/option.json b/docs/pages/joy-ui/api/option.json new file mode 100644 index 00000000000000..098e06e12a26b2 --- /dev/null +++ b/docs/pages/joy-ui/api/option.json @@ -0,0 +1,36 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "label": { "type": { "name": "union", "description": "element
| string" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "value": { "type": { "name": "any" } }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "Option", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "filename": "/packages/mui-joy/src/Option/Option.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/radio-group.js b/docs/pages/joy-ui/api/radio-group.js new file mode 100644 index 00000000000000..d06674a93711c6 --- /dev/null +++ b/docs/pages/joy-ui/api/radio-group.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './radio-group.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/radio-group', + false, + /radio-group.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/radio-group.json b/docs/pages/joy-ui/api/radio-group.json new file mode 100644 index 00000000000000..1977ee25066141 --- /dev/null +++ b/docs/pages/joy-ui/api/radio-group.json @@ -0,0 +1,51 @@ +{ + "props": { + "className": { "type": { "name": "string" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "defaultValue": { "type": { "name": "any" } }, + "disableIcon": { "type": { "name": "bool" }, "default": "false" }, + "name": { "type": { "name": "string" } }, + "onChange": { "type": { "name": "func" } }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'vertical'" + }, + "overlay": { "type": { "name": "bool" }, "default": "false" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "value": { "type": { "name": "any" } }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "RadioGroup", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/RadioGroup/RadioGroup.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/radio.js b/docs/pages/joy-ui/api/radio.js new file mode 100644 index 00000000000000..3aa10955c27845 --- /dev/null +++ b/docs/pages/joy-ui/api/radio.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './radio.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/radio', false, /radio.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/radio.json b/docs/pages/joy-ui/api/radio.json new file mode 100644 index 00000000000000..588807a69252f1 --- /dev/null +++ b/docs/pages/joy-ui/api/radio.json @@ -0,0 +1,53 @@ +{ + "props": { + "checked": { "type": { "name": "bool" } }, + "checkedIcon": { "type": { "name": "node" } }, + "className": { "type": { "name": "string" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "defaultChecked": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "disableIcon": { "type": { "name": "bool" }, "default": "false" }, + "label": { "type": { "name": "node" } }, + "name": { "type": { "name": "string" } }, + "onChange": { "type": { "name": "func" } }, + "overlay": { "type": { "name": "bool" }, "default": "false" }, + "readOnly": { "type": { "name": "bool" } }, + "required": { "type": { "name": "bool" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "uncheckedIcon": { "type": { "name": "node" } }, + "value": { "type": { "name": "any" } }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'outlined'" + } + }, + "name": "Radio", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLSpanElement", + "filename": "/packages/mui-joy/src/Radio/Radio.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/scoped-css-baseline.js b/docs/pages/joy-ui/api/scoped-css-baseline.js new file mode 100644 index 00000000000000..169d8079db865d --- /dev/null +++ b/docs/pages/joy-ui/api/scoped-css-baseline.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './scoped-css-baseline.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/scoped-css-baseline', + false, + /scoped-css-baseline.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/scoped-css-baseline.json b/docs/pages/joy-ui/api/scoped-css-baseline.json new file mode 100644 index 00000000000000..ec21fcde16980d --- /dev/null +++ b/docs/pages/joy-ui/api/scoped-css-baseline.json @@ -0,0 +1,21 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "disableColorScheme": { "type": { "name": "bool" }, "default": "false" }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + } + }, + "name": "ScopedCssBaseline", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/select.js b/docs/pages/joy-ui/api/select.js new file mode 100644 index 00000000000000..2aee4a53ac36ce --- /dev/null +++ b/docs/pages/joy-ui/api/select.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './select.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/select', false, /select.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/select.json b/docs/pages/joy-ui/api/select.json new file mode 100644 index 00000000000000..fde9fbbe594902 --- /dev/null +++ b/docs/pages/joy-ui/api/select.json @@ -0,0 +1,54 @@ +{ + "props": { + "action": { + "type": { + "name": "union", + "description": "func
| { current?: { focusVisible: func } }" + } + }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + } + }, + "component": { "type": { "name": "elementType" } }, + "defaultValue": { "type": { "name": "any" } }, + "disabled": { "type": { "name": "bool" } }, + "endDecorator": { "type": { "name": "node" } }, + "getSerializedValue": { "type": { "name": "func" } }, + "indicator": { "type": { "name": "node" } }, + "onChange": { "type": { "name": "func" } }, + "onClose": { "type": { "name": "func" } }, + "placeholder": { "type": { "name": "node" } }, + "renderValue": { "type": { "name": "func" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + } + }, + "startDecorator": { "type": { "name": "node" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "value": { "type": { "name": "any" } }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + } + } + }, + "name": "Select", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Select/Select.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/sheet.js b/docs/pages/joy-ui/api/sheet.js new file mode 100644 index 00000000000000..01e2356cf17d4e --- /dev/null +++ b/docs/pages/joy-ui/api/sheet.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './sheet.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/sheet', false, /sheet.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/sheet.json b/docs/pages/joy-ui/api/sheet.json new file mode 100644 index 00000000000000..35df3e83543deb --- /dev/null +++ b/docs/pages/joy-ui/api/sheet.json @@ -0,0 +1,35 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "invertedColors": { "type": { "name": "bool" }, "default": "false" }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "Sheet", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Sheet/Sheet.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/slider.js b/docs/pages/joy-ui/api/slider.js new file mode 100644 index 00000000000000..8b09d18829b5fa --- /dev/null +++ b/docs/pages/joy-ui/api/slider.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './slider.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/slider', false, /slider.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/slider.json b/docs/pages/joy-ui/api/slider.json new file mode 100644 index 00000000000000..c578c11558eba8 --- /dev/null +++ b/docs/pages/joy-ui/api/slider.json @@ -0,0 +1,112 @@ +{ + "props": { + "aria-label": { "type": { "name": "string" } }, + "aria-valuetext": { "type": { "name": "string" } }, + "classes": { "type": { "name": "object" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'primary'" + }, + "defaultValue": { + "type": { "name": "union", "description": "Array<number>
| number" } + }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "disableSwap": { "type": { "name": "bool" }, "default": "false" }, + "getAriaLabel": { "type": { "name": "func" } }, + "getAriaValueText": { "type": { "name": "func" } }, + "isRtl": { "type": { "name": "bool" }, "default": "false" }, + "marks": { + "type": { + "name": "union", + "description": "Array<{ label?: node, value: number }>
| bool" + }, + "default": "false" + }, + "max": { "type": { "name": "number" }, "default": "100" }, + "min": { "type": { "name": "number" }, "default": "0" }, + "name": { "type": { "name": "string" } }, + "onChange": { "type": { "name": "func" } }, + "onChangeCommitted": { "type": { "name": "func" } }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'horizontal'" + }, + "scale": { "type": { "name": "func" }, "default": "function Identity(x) {\n return x;\n}" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "step": { "type": { "name": "number" }, "default": "1" }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "tabIndex": { "type": { "name": "number" } }, + "track": { + "type": { + "name": "enum", + "description": "'inverted'
| 'normal'
| false" + }, + "default": "'normal'" + }, + "value": { + "type": { "name": "union", "description": "Array<number>
| number" } + }, + "valueLabelDisplay": { + "type": { "name": "enum", "description": "'auto'
| 'off'
| 'on'" }, + "default": "'off'" + }, + "valueLabelFormat": { + "type": { "name": "union", "description": "func
| string" }, + "default": "function Identity(x) {\n return x;\n}" + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'solid'" + } + }, + "name": "Slider", + "styles": { + "classes": [ + "root", + "marked", + "vertical", + "disabled", + "dragging", + "rail", + "track", + "trackFalse", + "trackInverted", + "thumb", + "active", + "focusVisible", + "mark", + "markActive", + "markLabel", + "markLabelActive" + ], + "globalClasses": { + "disabled": "Mui-disabled", + "active": "Mui-active", + "focusVisible": "Mui-focusVisible" + }, + "name": "MuiSlider" + }, + "spread": false, + "forwardsRefTo": "HTMLSpanElement", + "filename": "/packages/mui-joy/src/Slider/Slider.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/svg-icon.js b/docs/pages/joy-ui/api/svg-icon.js new file mode 100644 index 00000000000000..5587325c7a8351 --- /dev/null +++ b/docs/pages/joy-ui/api/svg-icon.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './svg-icon.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/svg-icon', false, /svg-icon.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/svg-icon.json b/docs/pages/joy-ui/api/svg-icon.json new file mode 100644 index 00000000000000..50672c14485cac --- /dev/null +++ b/docs/pages/joy-ui/api/svg-icon.json @@ -0,0 +1,39 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'inherit'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'inherit'" + }, + "component": { "type": { "name": "elementType" } }, + "fontSize": { + "type": { + "name": "enum", + "description": "'inherit'
| 'lg'
| 'md'
| 'sm'
| 'xl'
| 'xl2'
| 'xl3'
| 'xl4'
| 'xl5'
| 'xl6'
| 'xl7'
| 'xs'
| 'xs2'
| 'xs3'" + }, + "default": "'xl'" + }, + "htmlColor": { "type": { "name": "string" } }, + "inheritViewBox": { "type": { "name": "bool" }, "default": "false" }, + "shapeRendering": { "type": { "name": "string" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "titleAccess": { "type": { "name": "string" } }, + "viewBox": { "type": { "name": "string" }, "default": "'0 0 24 24'" } + }, + "name": "SvgIcon", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "SVGSVGElement", + "filename": "/packages/mui-joy/src/SvgIcon/SvgIcon.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/switch.js b/docs/pages/joy-ui/api/switch.js new file mode 100644 index 00000000000000..251a53ea2dde37 --- /dev/null +++ b/docs/pages/joy-ui/api/switch.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './switch.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/switch', false, /switch.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/switch.json b/docs/pages/joy-ui/api/switch.json new file mode 100644 index 00000000000000..04e93fb9c65fb4 --- /dev/null +++ b/docs/pages/joy-ui/api/switch.json @@ -0,0 +1,47 @@ +{ + "props": { + "checked": { "type": { "name": "bool" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "defaultChecked": { "type": { "name": "bool" } }, + "disabled": { "type": { "name": "bool" } }, + "endDecorator": { "type": { "name": "union", "description": "node
| func" } }, + "onChange": { "type": { "name": "func" } }, + "readOnly": { "type": { "name": "bool" } }, + "required": { "type": { "name": "bool" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "startDecorator": { "type": { "name": "union", "description": "node
| func" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'solid'" + } + }, + "name": "Switch", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Switch/Switch.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/tab-list.js b/docs/pages/joy-ui/api/tab-list.js new file mode 100644 index 00000000000000..05c1990d59aca3 --- /dev/null +++ b/docs/pages/joy-ui/api/tab-list.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './tab-list.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/tab-list', false, /tab-list.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/tab-list.json b/docs/pages/joy-ui/api/tab-list.json new file mode 100644 index 00000000000000..4809bf7c79e4f9 --- /dev/null +++ b/docs/pages/joy-ui/api/tab-list.json @@ -0,0 +1,40 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + } + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'soft'" + } + }, + "name": "TabList", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/TabList/TabList.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/tab-panel.js b/docs/pages/joy-ui/api/tab-panel.js new file mode 100644 index 00000000000000..a3ad5d3d2b35d0 --- /dev/null +++ b/docs/pages/joy-ui/api/tab-panel.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './tab-panel.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/tab-panel', + false, + /tab-panel.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/tab-panel.json b/docs/pages/joy-ui/api/tab-panel.json new file mode 100644 index 00000000000000..360b3ae51a0794 --- /dev/null +++ b/docs/pages/joy-ui/api/tab-panel.json @@ -0,0 +1,30 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "component": { "type": { "name": "elementType" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + } + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "value": { + "type": { "name": "union", "description": "number
| string" }, + "default": "0" + } + }, + "name": "TabPanel", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/TabPanel/TabPanel.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/tab.js b/docs/pages/joy-ui/api/tab.js new file mode 100644 index 00000000000000..946f0bad09c092 --- /dev/null +++ b/docs/pages/joy-ui/api/tab.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './tab.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/tab', false, /tab.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/tab.json b/docs/pages/joy-ui/api/tab.json new file mode 100644 index 00000000000000..2af35af08f5b74 --- /dev/null +++ b/docs/pages/joy-ui/api/tab.json @@ -0,0 +1,46 @@ +{ + "props": { + "action": { + "type": { + "name": "union", + "description": "func
| { current?: { focusVisible: func } }" + } + }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "disabled": { "type": { "name": "bool" }, "default": "false" }, + "onChange": { "type": { "name": "func" } }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'horizontal'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "value": { "type": { "name": "union", "description": "number
| string" } }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "Tab", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLButtonElement", + "filename": "/packages/mui-joy/src/Tab/Tab.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/table.js b/docs/pages/joy-ui/api/table.js new file mode 100644 index 00000000000000..f72830a7e92af2 --- /dev/null +++ b/docs/pages/joy-ui/api/table.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './table.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/table', false, /table.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/table.json b/docs/pages/joy-ui/api/table.json new file mode 100644 index 00000000000000..7a4de3b0c6318b --- /dev/null +++ b/docs/pages/joy-ui/api/table.json @@ -0,0 +1,57 @@ +{ + "props": { + "borderAxis": { + "type": { + "name": "union", + "description": "'both'
| 'bothBetween'
| 'none'
| 'x'
| 'xBetween'
| 'y'
| 'yBetween'
| string" + }, + "default": "'xBetween'" + }, + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "hoverRow": { "type": { "name": "bool" }, "default": "false" }, + "noWrap": { "type": { "name": "bool" }, "default": "false" }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "stickyHeader": { "type": { "name": "bool" }, "default": "false" }, + "stripe": { + "type": { + "name": "union", + "description": "'odd'
| 'even'
| string" + } + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "Table", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLTableElement", + "filename": "/packages/mui-joy/src/Table/Table.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/tabs.js b/docs/pages/joy-ui/api/tabs.js new file mode 100644 index 00000000000000..88c7dbafee813f --- /dev/null +++ b/docs/pages/joy-ui/api/tabs.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './tabs.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/tabs', false, /tabs.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/tabs.json b/docs/pages/joy-ui/api/tabs.json new file mode 100644 index 00000000000000..4646d4d454d26b --- /dev/null +++ b/docs/pages/joy-ui/api/tabs.json @@ -0,0 +1,63 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + }, + "default": "'neutral'" + }, + "component": { "type": { "name": "elementType" } }, + "defaultValue": { + "type": { + "name": "union", + "description": "false
| number
| string" + } + }, + "direction": { + "type": { "name": "enum", "description": "'ltr'
| 'rtl'" }, + "default": "'ltr'" + }, + "onChange": { "type": { "name": "func" } }, + "orientation": { + "type": { "name": "enum", "description": "'horizontal'
| 'vertical'" }, + "default": "'horizontal'" + }, + "selectionFollowsFocus": { "type": { "name": "bool" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "value": { + "type": { + "name": "union", + "description": "false
| number
| string" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + }, + "default": "'plain'" + } + }, + "name": "Tabs", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Tabs/Tabs.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/textarea.js b/docs/pages/joy-ui/api/textarea.js new file mode 100644 index 00000000000000..4acc6adc593e90 --- /dev/null +++ b/docs/pages/joy-ui/api/textarea.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './textarea.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/textarea', false, /textarea.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/textarea.json b/docs/pages/joy-ui/api/textarea.json new file mode 100644 index 00000000000000..8a813b2132d4c1 --- /dev/null +++ b/docs/pages/joy-ui/api/textarea.json @@ -0,0 +1,41 @@ +{ + "props": { + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + } + }, + "endDecorator": { "type": { "name": "node" } }, + "error": { "type": { "name": "bool" } }, + "maxRows": { "type": { "name": "union", "description": "number
| string" } }, + "minRows": { "type": { "name": "union", "description": "number
| string" } }, + "size": { + "type": { + "name": "union", + "description": "'sm'
| 'md'
| 'lg'
| string" + } + }, + "startDecorator": { "type": { "name": "node" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + } + } + }, + "name": "Textarea", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": false, + "forwardsRefTo": "HTMLDivElement", + "filename": "/packages/mui-joy/src/Textarea/Textarea.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/tooltip.js b/docs/pages/joy-ui/api/tooltip.js new file mode 100644 index 00000000000000..50d17684416fb8 --- /dev/null +++ b/docs/pages/joy-ui/api/tooltip.js @@ -0,0 +1,19 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './tooltip.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context('docs/translations/api-docs-joy/tooltip', false, /tooltip.*.json$/); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/tooltip.json b/docs/pages/joy-ui/api/tooltip.json new file mode 100644 index 00000000000000..4b45846fa8de0e --- /dev/null +++ b/docs/pages/joy-ui/api/tooltip.json @@ -0,0 +1,73 @@ +{ + "props": { + "children": { "type": { "name": "element" }, "required": true }, + "arrow": { "type": { "name": "bool" }, "default": "false" }, + "color": { + "type": { + "name": "enum", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'" + }, + "default": "'neutral'" + }, + "describeChild": { "type": { "name": "bool" }, "default": "false" }, + "direction": { + "type": { "name": "enum", "description": "'ltr'
| 'rtl'" }, + "default": "'ltr'" + }, + "disableFocusListener": { "type": { "name": "bool" }, "default": "false" }, + "disableHoverListener": { "type": { "name": "bool" }, "default": "false" }, + "disableInteractive": { "type": { "name": "bool" }, "default": "false" }, + "disablePortal": { "type": { "name": "bool" }, "default": "false" }, + "disableTouchListener": { "type": { "name": "bool" }, "default": "false" }, + "enterDelay": { "type": { "name": "number" }, "default": "100" }, + "enterNextDelay": { "type": { "name": "number" }, "default": "0" }, + "enterTouchDelay": { "type": { "name": "number" }, "default": "700" }, + "followCursor": { "type": { "name": "bool" }, "default": "false" }, + "id": { "type": { "name": "string" } }, + "keepMounted": { "type": { "name": "bool" }, "default": "false" }, + "leaveDelay": { "type": { "name": "number" }, "default": "0" }, + "leaveTouchDelay": { "type": { "name": "number" }, "default": "1500" }, + "modifiers": { + "type": { + "name": "arrayOf", + "description": "Array<{ data?: object, effect?: func, enabled?: bool, fn?: func, name?: any, options?: object, phase?: 'afterMain'
| 'afterRead'
| 'afterWrite'
| 'beforeMain'
| 'beforeRead'
| 'beforeWrite'
| 'main'
| 'read'
| 'write', requires?: Array<string>, requiresIfExists?: Array<string> }>" + } + }, + "onClose": { "type": { "name": "func" } }, + "onOpen": { "type": { "name": "func" } }, + "open": { "type": { "name": "bool" } }, + "placement": { + "type": { + "name": "enum", + "description": "'bottom-end'
| 'bottom-start'
| 'bottom'
| 'left-end'
| 'left-start'
| 'left'
| 'right-end'
| 'right-start'
| 'right'
| 'top-end'
| 'top-start'
| 'top'" + }, + "default": "'bottom'" + }, + "size": { + "type": { "name": "enum", "description": "'sm'
| 'md'
| 'lg'" }, + "default": "'md'" + }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "title": { "type": { "name": "node" } }, + "variant": { + "type": { + "name": "enum", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'" + }, + "default": "'solid'" + } + }, + "name": "Tooltip", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLButtonElement", + "filename": "/packages/mui-joy/src/Tooltip/Tooltip.tsx", + "inheritance": null, + "demos": "", + "cssComponent": false +} diff --git a/docs/pages/joy-ui/api/typography.js b/docs/pages/joy-ui/api/typography.js new file mode 100644 index 00000000000000..d159b1190f218d --- /dev/null +++ b/docs/pages/joy-ui/api/typography.js @@ -0,0 +1,23 @@ +import * as React from 'react'; +import ApiPage from 'docs/src/modules/components/ApiPage'; +import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; +import jsonPageContent from './typography.json'; + +export default function Page(props) { + const { descriptions, pageContent } = props; + return ; +} + +Page.getInitialProps = () => { + const req = require.context( + 'docs/translations/api-docs-joy/typography', + false, + /typography.*.json$/, + ); + const descriptions = mapApiPageTranslations(req); + + return { + descriptions, + pageContent: jsonPageContent, + }; +}; diff --git a/docs/pages/joy-ui/api/typography.json b/docs/pages/joy-ui/api/typography.json new file mode 100644 index 00000000000000..2c8be9de8fb4e1 --- /dev/null +++ b/docs/pages/joy-ui/api/typography.json @@ -0,0 +1,48 @@ +{ + "props": { + "children": { "type": { "name": "node" } }, + "color": { + "type": { + "name": "union", + "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" + } + }, + "component": { "type": { "name": "elementType" } }, + "endDecorator": { "type": { "name": "node" } }, + "gutterBottom": { "type": { "name": "bool" }, "default": "false" }, + "level": { + "type": { + "name": "union", + "description": "'body1'
| 'body2'
| 'body3'
| 'h1'
| 'h2'
| 'h3'
| 'h4'
| 'h5'
| 'h6'
| 'inherit'
| string" + }, + "default": "'body1'" + }, + "levelMapping": { + "type": { "name": "object" }, + "default": "{\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n h6: 'h6',\n body1: 'p',\n body2: 'p',\n body3: 'p',\n inherit: 'p',\n}" + }, + "noWrap": { "type": { "name": "bool" }, "default": "false" }, + "startDecorator": { "type": { "name": "node" } }, + "sx": { + "type": { + "name": "union", + "description": "Array<func
| object
| bool>
| func
| object" + } + }, + "textColor": { "type": { "name": "any" } }, + "variant": { + "type": { + "name": "union", + "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" + } + } + }, + "name": "Typography", + "styles": { "classes": [], "globalClasses": {}, "name": null }, + "spread": true, + "forwardsRefTo": "HTMLParagraphElement", + "filename": "/packages/mui-joy/src/Typography/Typography.tsx", + "inheritance": null, + "demos": "", + "cssComponent": true +} diff --git a/docs/scripts/i18n.js b/docs/scripts/i18n.js index b6225695583f0a..5b8ea95c164777 100644 --- a/docs/scripts/i18n.js +++ b/docs/scripts/i18n.js @@ -5,6 +5,7 @@ import { pageToTitle } from 'docs/src/modules/utils/helpers'; import materialPages from 'docs/data/material/pages'; import systemPages from 'docs/data/system/pages'; import basePages from 'docs/data/base/pages'; +import joyPages from 'docs/data/joy/pages'; const EXCLUDES = ['/api', '/blog', '/x/react-']; @@ -40,7 +41,7 @@ async function run() { }); }; - traverse([...systemPages, ...basePages, ...materialPages]); + traverse([...systemPages, ...basePages, ...materialPages, ...joyPages]); await fse.writeFile(translationsFilename, `${JSON.stringify(output, null, 2)}\n`); } diff --git a/docs/src/modules/components/ApiPage.js b/docs/src/modules/components/ApiPage.js index 8905f13019bfd2..157fde9a07abc0 100644 --- a/docs/src/modules/components/ApiPage.js +++ b/docs/src/modules/components/ApiPage.js @@ -169,6 +169,14 @@ export default function ApiPage(props) { slots: componentSlots, } = pageContent; + const isJoyComponent = filename.includes('mui-joy'); + const defaultPropsLink = isJoyComponent + ? '/joy-ui/customization/themed-components/#default-props' + : '/material-ui/customization/theme-components/#default-props'; + const styleOverridesLink = isJoyComponent + ? '/joy-ui/customization/themed-components/#style-overrides' + : '/material-ui/customization/theme-components/#global-style-overrides'; + const { componentDescription, componentDescriptionToc = [], @@ -279,15 +287,18 @@ import { ${componentName} } from '${source}';`} /> ) : null} - {componentStyles.name && ( + {(componentStyles.name || isJoyComponent) && ( diff --git a/docs/translations/api-docs-joy/alert/alert.json b/docs/translations/api-docs-joy/alert/alert.json new file mode 100644 index 00000000000000..428feeb2dac75d --- /dev/null +++ b/docs/translations/api-docs-joy/alert/alert.json @@ -0,0 +1,13 @@ +{ + "componentDescription": "", + "propDescriptions": { + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "endDecorator": "Element placed after the children.", + "role": "The ARIA role attribute of the element.", + "size": "The size of the component.", + "startDecorator": "Element placed before the children.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/aspect-ratio/aspect-ratio.json b/docs/translations/api-docs-joy/aspect-ratio/aspect-ratio.json new file mode 100644 index 00000000000000..dedc711a69a889 --- /dev/null +++ b/docs/translations/api-docs-joy/aspect-ratio/aspect-ratio.json @@ -0,0 +1,14 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "Used to render icon or text elements inside the AspectRatio if src is not set. This can be an element, or just a string.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "maxHeight": "The maximum calculated height of the element (not the CSS height).", + "minHeight": "The minimum calculated height of the element (not the CSS height).", + "objectFit": "The CSS object-fit value of the first-child.", + "ratio": "The aspect-ratio of the element. The current implementation uses padding instead of the CSS aspect-ratio due to browser support. https://caniuse.com/?search=aspect-ratio", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/autocomplete-listbox/autocomplete-listbox.json b/docs/translations/api-docs-joy/autocomplete-listbox/autocomplete-listbox.json new file mode 100644 index 00000000000000..9f449e003040f1 --- /dev/null +++ b/docs/translations/api-docs-joy/autocomplete-listbox/autocomplete-listbox.json @@ -0,0 +1,11 @@ +{ + "componentDescription": "", + "propDescriptions": { + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "size": "The size of the component (affect other nested list* components).", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/autocomplete-option/autocomplete-option.json b/docs/translations/api-docs-joy/autocomplete-option/autocomplete-option.json new file mode 100644 index 00000000000000..6eef5e02a34f4b --- /dev/null +++ b/docs/translations/api-docs-joy/autocomplete-option/autocomplete-option.json @@ -0,0 +1,10 @@ +{ + "componentDescription": "", + "propDescriptions": { + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/autocomplete/autocomplete.json b/docs/translations/api-docs-joy/autocomplete/autocomplete.json new file mode 100644 index 00000000000000..584d9d526f86a8 --- /dev/null +++ b/docs/translations/api-docs-joy/autocomplete/autocomplete.json @@ -0,0 +1,56 @@ +{ + "componentDescription": "", + "propDescriptions": { + "aria-describedby": "Identifies the element (or elements) that describes the object.", + "aria-label": "Defines a string value that labels the current element.", + "aria-labelledby": "Identifies the element (or elements) that labels the current element.", + "autoFocus": "If true, the input element is focused during the first mount.", + "clearIcon": "The icon to display in place of the default clear icon.", + "clearText": "Override the default text for the clear icon button.
For localization purposes, you can use the provided translations.", + "closeText": "Override the default text for the close popup icon button.
For localization purposes, you can use the provided translations.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableClearable": "If true, the input can't be cleared.", + "disabled": "If true, the component is disabled.", + "endDecorator": "Trailing adornment for this input.", + "error": "If true, the input will indicate an error. The prop defaults to the value (false) inherited from the parent FormControl component.", + "filterOptions": "A function that determines the filtered options to be rendered on search.

Signature:
function(options: Array<T>, state: object) => Array<T>
options: The options to render.
state: The state of the component.", + "forcePopupIcon": "Force the visibility display of the popup icon.", + "freeSolo": "If true, the Autocomplete is free solo, meaning that the user input is not bound to provided options.", + "getLimitTagsText": "The label to display when the tags are truncated (limitTags).

Signature:
function(more: string | number) => ReactNode
more: The number of truncated tags.", + "getOptionDisabled": "Used to determine the disabled state for a given option.

Signature:
function(option: T) => boolean
option: The option to test.", + "getOptionLabel": "Used to determine the string value for a given option. It's used to fill the input (and the list box options if renderOption is not provided).
If used in free solo mode, it must accept both the type of the options and a string.

Signature:
function(option: T) => string
", + "groupBy": "If provided, the options will be grouped under the returned string. The groupBy value is also used as the text for group headings when renderGroup is not provided.

Signature:
function(options: T) => string
options: The options to group.", + "id": "This prop is used to help implement the accessibility logic. If you don't provide an id it will fall back to a randomly generated one.", + "inputValue": "The input value.", + "isOptionEqualToValue": "Used to determine if the option represents the given value. Uses strict equality by default. ⚠️ Both arguments need to be handled, an option can only match with one value.

Signature:
function(option: T, value: T) => boolean
option: The option to test.
value: The value to test against.", + "limitTags": "The maximum number of tags that will be visible when not focused. Set -1 to disable the limit.", + "loading": "If true, the component is in a loading state. This shows the loadingText in place of suggestions (only if there are no suggestions to show, e.g. options are empty).", + "loadingText": "Text to display when in a loading state.
For localization purposes, you can use the provided translations.", + "multiple": "If true, value must be an array and the menu will support multiple selections.", + "name": "Name attribute of the input element.", + "noOptionsText": "Text to display when there are no options.
For localization purposes, you can use the provided translations.", + "onChange": "Callback fired when the value changes.

Signature:
function(event: React.SyntheticEvent, value: T | Array<T>, reason: string, details?: string) => void
event: The event source of the callback.
value: The new value of the component.
reason: One of "createOption", "selectOption", "removeOption", "blur" or "clear".", + "onClose": "Callback fired when the popup requests to be closed. Use in controlled mode (see open).

Signature:
function(event: React.SyntheticEvent, reason: string) => void
event: The event source of the callback.
reason: Can be: "toggleInput", "escape", "selectOption", "removeOption", "blur".", + "onHighlightChange": "Callback fired when the highlight option changes.

Signature:
function(event: React.SyntheticEvent, option: T, reason: string) => void
event: The event source of the callback.
option: The highlighted option.
reason: Can be: "keyboard", "auto", "mouse".", + "onInputChange": "Callback fired when the input value changes.

Signature:
function(event: React.SyntheticEvent, value: string, reason: string) => void
event: The event source of the callback.
value: The new value of the text input.
reason: Can be: "input" (user input), "reset" (programmatic change), "clear".", + "onOpen": "Callback fired when the popup requests to be opened. Use in controlled mode (see open).

Signature:
function(event: React.SyntheticEvent) => void
event: The event source of the callback.", + "open": "If true, the component is shown.", + "openText": "Override the default text for the open popup icon button.
For localization purposes, you can use the provided translations.", + "options": "Array of options.", + "placeholder": "The input placeholder", + "popupIcon": "The icon to display in place of the default popup icon.", + "readOnly": "If true, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.", + "renderGroup": "Render the group.

Signature:
function(params: AutocompleteRenderGroupParams) => ReactNode
params: The group to render.", + "renderOption": "Render the option, use getOptionLabel by default.

Signature:
function(props: object, option: T, state: object) => ReactNode
props: The props to apply on the li element.
option: The option to render.
state: The state of the component.", + "renderTags": "Render the selected value.

Signature:
function(value: Array<T>, getTagProps: function, ownerState: object) => ReactNode
value: The value provided to the component.
getTagProps: A tag props getter.
ownerState: The state of the Autocomplete component.", + "required": "If true, the input element is required. The prop defaults to the value (false) inherited from the parent FormControl component.", + "size": "The size of the component.", + "startDecorator": "Leading adornment for this input.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "type": "Type of the input element. It should be a valid HTML5 input type.", + "value": "The value of the autocomplete.
The value must have reference equality with the option in order to be selected. You can customize the equality behavior with the isOptionEqualToValue prop.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/avatar-group/avatar-group.json b/docs/translations/api-docs-joy/avatar-group/avatar-group.json new file mode 100644 index 00000000000000..0642addc5bb5cf --- /dev/null +++ b/docs/translations/api-docs-joy/avatar-group/avatar-group.json @@ -0,0 +1,12 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "Used to render icon or text elements inside the AvatarGroup if src is not set. This can be an element, or just a string.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "size": "The size of the component. It accepts theme values between 'sm' and 'lg'.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/avatar/avatar.json b/docs/translations/api-docs-joy/avatar/avatar.json new file mode 100644 index 00000000000000..e0e27ec923ea84 --- /dev/null +++ b/docs/translations/api-docs-joy/avatar/avatar.json @@ -0,0 +1,14 @@ +{ + "componentDescription": "", + "propDescriptions": { + "alt": "Used in combination with src or srcSet to provide an alt attribute for the rendered img element.", + "children": "Used to render icon or text elements inside the Avatar if src is not set. This can be an element, or just a string.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "size": "The size of the component. It accepts theme values between 'sm' and 'lg'.", + "src": "The src attribute for the img element.", + "srcSet": "The srcSet attribute for the img element. Use this attribute for responsive image display.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/badge/badge.json b/docs/translations/api-docs-joy/badge/badge.json new file mode 100644 index 00000000000000..d125244d9f16a7 --- /dev/null +++ b/docs/translations/api-docs-joy/badge/badge.json @@ -0,0 +1,17 @@ +{ + "componentDescription": "", + "propDescriptions": { + "anchorOrigin": "The anchor of the badge.", + "badgeContent": "The content rendered within the badge.", + "badgeInset": "The inset of the badge. Support shorthand syntax as described in https://developer.mozilla.org/en-US/docs/Web/CSS/inset.", + "children": "The badge will be added relative to this node.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "invisible": "If true, the badge is invisible.", + "max": "Max count to show.", + "showZero": "Controls whether the badge is hidden when badgeContent is zero.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/breadcrumbs/breadcrumbs.json b/docs/translations/api-docs-joy/breadcrumbs/breadcrumbs.json new file mode 100644 index 00000000000000..4e6791681916aa --- /dev/null +++ b/docs/translations/api-docs-joy/breadcrumbs/breadcrumbs.json @@ -0,0 +1,10 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "separator": "Custom separator node.", + "size": "The size of the component. It accepts theme values between 'sm' and 'lg'.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/button/button.json b/docs/translations/api-docs-joy/button/button.json new file mode 100644 index 00000000000000..ee38c292f67cd1 --- /dev/null +++ b/docs/translations/api-docs-joy/button/button.json @@ -0,0 +1,18 @@ +{ + "componentDescription": "", + "propDescriptions": { + "action": "A ref for imperative actions. It currently only supports focusVisible() action.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "disabled": "If true, the component is disabled.", + "endDecorator": "Element placed after the children.", + "fullWidth": "If true, the button will take up the full width of its container.", + "loading": "If true, the loading indicator is shown.", + "loadingIndicator": "The node should contain an element with role="progressbar" with an accessible name. By default we render a CircularProgress that is labelled by the button itself.", + "loadingPosition": "The loading indicator can be positioned on the start, end, or the center of the button.", + "size": "The size of the component.", + "startDecorator": "Element placed before the children.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/card-content/card-content.json b/docs/translations/api-docs-joy/card-content/card-content.json new file mode 100644 index 00000000000000..c7e0fa30f47774 --- /dev/null +++ b/docs/translations/api-docs-joy/card-content/card-content.json @@ -0,0 +1,9 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "Used to render icon or text elements inside the CardContent if src is not set. This can be an element, or just a string.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/card-cover/card-cover.json b/docs/translations/api-docs-joy/card-cover/card-cover.json new file mode 100644 index 00000000000000..826e917ca084be --- /dev/null +++ b/docs/translations/api-docs-joy/card-cover/card-cover.json @@ -0,0 +1,9 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "Used to render icon or text elements inside the CardCover if src is not set. This can be an element, or just a string.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/card-overflow/card-overflow.json b/docs/translations/api-docs-joy/card-overflow/card-overflow.json new file mode 100644 index 00000000000000..f06ece5ed9e306 --- /dev/null +++ b/docs/translations/api-docs-joy/card-overflow/card-overflow.json @@ -0,0 +1,11 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "Used to render icon or text elements inside the CardOverflow if src is not set. This can be an element, or just a string.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/card/card.json b/docs/translations/api-docs-joy/card/card.json new file mode 100644 index 00000000000000..0138f5ae272db9 --- /dev/null +++ b/docs/translations/api-docs-joy/card/card.json @@ -0,0 +1,14 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "Used to render icon or text elements inside the Card if src is not set. This can be an element, or just a string.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "invertedColors": "If true, the children with an implicit color prop invert their colors to match the component's variant and color.", + "orientation": "The component orientation.", + "size": "The size of the component. It accepts theme values between 'sm' and 'lg'.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/checkbox/checkbox.json b/docs/translations/api-docs-joy/checkbox/checkbox.json new file mode 100644 index 00000000000000..b3b8131b09b249 --- /dev/null +++ b/docs/translations/api-docs-joy/checkbox/checkbox.json @@ -0,0 +1,26 @@ +{ + "componentDescription": "", + "propDescriptions": { + "checked": "If true, the component is checked.", + "checkedIcon": "The icon to display when the component is checked.", + "className": "Class name applied to the root element.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "defaultChecked": "The default checked state. Use when the component is not controlled.", + "disabled": "If true, the component is disabled.", + "disableIcon": "If true, the checked icon is removed and the selected variant is applied on the action element instead.", + "indeterminate": "If true, the component appears indeterminate. This does not set the native input element to indeterminate due to inconsistent behavior across browsers. However, we set a data-indeterminate attribute on the input.", + "indeterminateIcon": "The icon to display when the component is indeterminate.", + "label": "The label element next to the checkbox.", + "name": "The name attribute of the input.", + "onChange": "Callback fired when the state is changed.

Signature:
function(event: React.ChangeEvent<HTMLInputElement>) => void
event: The event source of the callback. You can pull out the new value by accessing event.target.value (string). You can pull out the new checked state by accessing event.target.checked (boolean).", + "overlay": "If true, the root element's position is set to initial which allows the action area to fill the nearest positioned parent. This prop is useful for composing Checkbox with ListItem component.", + "readOnly": "If true, the component is read only.", + "required": "If true, the input element is required.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "uncheckedIcon": "The icon when checked is false.", + "value": "The value of the component. The DOM API casts this to a string. The browser uses "on" as the default value.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/chip-delete/chip-delete.json b/docs/translations/api-docs-joy/chip-delete/chip-delete.json new file mode 100644 index 00000000000000..7dc24529e314ce --- /dev/null +++ b/docs/translations/api-docs-joy/chip-delete/chip-delete.json @@ -0,0 +1,13 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "If provided, it will replace the default icon.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "disabled": "If true, the component is disabled. If undefined, the value inherits from the parent chip via a React context.", + "onDelete": "Callback fired when the component is not disabled and either: - Backspace, Enter or Delete is pressed. - The component is clicked.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/chip/chip.json b/docs/translations/api-docs-joy/chip/chip.json new file mode 100644 index 00000000000000..2c1576b528c6bc --- /dev/null +++ b/docs/translations/api-docs-joy/chip/chip.json @@ -0,0 +1,15 @@ +{ + "componentDescription": "Chips represent complex entities in small blocks, such as a contact.", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "disabled": "If true, the component is disabled.", + "endDecorator": "Element placed after the children.", + "onClick": "Element action click handler.", + "size": "The size of the component. It accepts theme values between 'sm' and 'lg'.", + "startDecorator": "Element placed before the children.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/circular-progress/circular-progress.json b/docs/translations/api-docs-joy/circular-progress/circular-progress.json new file mode 100644 index 00000000000000..2b527d0a1ca52e --- /dev/null +++ b/docs/translations/api-docs-joy/circular-progress/circular-progress.json @@ -0,0 +1,13 @@ +{ + "componentDescription": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading.", + "propDescriptions": { + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "determinate": "The boolean to select a variant. Use indeterminate when there is no progress value.", + "size": "The size of the component. It accepts theme values between 'sm' and 'lg'.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "thickness": "The thickness of the circle.", + "value": "The value of the progress indicator for the determinate variant. Value between 0 and 100.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/css-baseline/css-baseline.json b/docs/translations/api-docs-joy/css-baseline/css-baseline.json new file mode 100644 index 00000000000000..f2fcbd9425d184 --- /dev/null +++ b/docs/translations/api-docs-joy/css-baseline/css-baseline.json @@ -0,0 +1,8 @@ +{ + "componentDescription": "Kickstart an elegant, consistent, and simple baseline to build upon.", + "propDescriptions": { + "children": "You can wrap a node.", + "disableColorScheme": "Disable color-scheme CSS property.
For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme For browser support, check out https://caniuse.com/?search=color-scheme" + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/divider/divider.json b/docs/translations/api-docs-joy/divider/divider.json new file mode 100644 index 00000000000000..f890ea984e7454 --- /dev/null +++ b/docs/translations/api-docs-joy/divider/divider.json @@ -0,0 +1,11 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "inset": "The styles applied to the divider to shrink or stretch the line based on the orientation.", + "orientation": "The component orientation.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/form-control/form-control.json b/docs/translations/api-docs-joy/form-control/form-control.json new file mode 100644 index 00000000000000..2b88e3d7936ee9 --- /dev/null +++ b/docs/translations/api-docs-joy/form-control/form-control.json @@ -0,0 +1,15 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "disabled": "If true, the children are in disabled state.", + "error": "If true, the children will indicate an error.", + "orientation": "The content direction flow.", + "required": "If true, the user must specify a value for the input before the owning form can be submitted. If true, the asterisk appears on the FormLabel.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/form-helper-text/form-helper-text.json b/docs/translations/api-docs-joy/form-helper-text/form-helper-text.json new file mode 100644 index 00000000000000..22d43a6210559c --- /dev/null +++ b/docs/translations/api-docs-joy/form-helper-text/form-helper-text.json @@ -0,0 +1,9 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/form-label/form-label.json b/docs/translations/api-docs-joy/form-label/form-label.json new file mode 100644 index 00000000000000..5ec77c29cd103a --- /dev/null +++ b/docs/translations/api-docs-joy/form-label/form-label.json @@ -0,0 +1,10 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "required": "The asterisk is added if required=true", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/icon-button/icon-button.json b/docs/translations/api-docs-joy/icon-button/icon-button.json new file mode 100644 index 00000000000000..94152ed51a1fdf --- /dev/null +++ b/docs/translations/api-docs-joy/icon-button/icon-button.json @@ -0,0 +1,14 @@ +{ + "componentDescription": "", + "propDescriptions": { + "action": "A ref for imperative actions. It currently only supports focusVisible() action.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "disabled": "If true, the component is disabled.", + "focusVisibleClassName": "This prop can help identify which element has keyboard focus. The class name will be applied when the element gains the focus through keyboard interaction. It's a polyfill for the CSS :focus-visible selector. The rationale for using this feature is explained here. A polyfill can be used to apply a focus-visible class to other components if needed.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/input/input.json b/docs/translations/api-docs-joy/input/input.json new file mode 100644 index 00000000000000..ddd21dbb81b993 --- /dev/null +++ b/docs/translations/api-docs-joy/input/input.json @@ -0,0 +1,15 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "endDecorator": "Trailing adornment for this input.", + "error": "If true, the input will indicate an error. The prop defaults to the value (false) inherited from the parent FormControl component.", + "fullWidth": "If true, the button will take up the full width of its container.", + "size": "The size of the component.", + "startDecorator": "Leading adornment for this input.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/linear-progress/linear-progress.json b/docs/translations/api-docs-joy/linear-progress/linear-progress.json new file mode 100644 index 00000000000000..75e4f89a2d0122 --- /dev/null +++ b/docs/translations/api-docs-joy/linear-progress/linear-progress.json @@ -0,0 +1,14 @@ +{ + "componentDescription": "## ARIA\n\nIf the progress bar is describing the loading progress of a particular region of a page,\nyou should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\nattribute to `true` on that region until it has finished loading.", + "propDescriptions": { + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "determinate": "The boolean to select a variant. Use indeterminate when there is no progress value.", + "size": "The size of the component. It accepts theme values between 'sm' and 'lg'.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "thickness": "The thickness of the bar.", + "value": "The value of the progress indicator for the determinate variant. Value between 0 and 100.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/link/link.json b/docs/translations/api-docs-joy/link/link.json new file mode 100644 index 00000000000000..474352de3533d7 --- /dev/null +++ b/docs/translations/api-docs-joy/link/link.json @@ -0,0 +1,17 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the link.", + "disabled": "If true, the component is disabled.", + "endDecorator": "Element placed after the children.", + "level": "Applies the theme typography styles.", + "overlay": "If true, the ::after psuedo element is added to cover the area of interaction. The parent of the overlay Link should have relative CSS position.", + "startDecorator": "Element placed before the children.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "textColor": "The system color.", + "underline": "Controls when the link should have an underline.", + "variant": "Applies the theme link styles." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/list-divider/list-divider.json b/docs/translations/api-docs-joy/list-divider/list-divider.json new file mode 100644 index 00000000000000..b502a9acd01f5b --- /dev/null +++ b/docs/translations/api-docs-joy/list-divider/list-divider.json @@ -0,0 +1,11 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "inset": "The empty space on the side(s) of the divider in a vertical list.
For horizontal list (the nearest parent List has row prop set to true), only inset="gutter" affects the list divider.", + "orientation": "The component orientation.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/list-item-button/list-item-button.json b/docs/translations/api-docs-joy/list-item-button/list-item-button.json new file mode 100644 index 00000000000000..679f527c3f87e2 --- /dev/null +++ b/docs/translations/api-docs-joy/list-item-button/list-item-button.json @@ -0,0 +1,17 @@ +{ + "componentDescription": "", + "propDescriptions": { + "action": "A ref for imperative actions. It currently only supports focusVisible() action.", + "autoFocus": "If true, the list item is focused during the first mount. Focus will also be triggered if the value changes from false to true.", + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "disabled": "If true, the component is disabled.", + "focusVisibleClassName": "This prop can help identify which element has keyboard focus. The class name will be applied when the element gains the focus through keyboard interaction. It's a polyfill for the CSS :focus-visible selector. The rationale for using this feature is explained here. A polyfill can be used to apply a focus-visible class to other components if needed.", + "orientation": "The content direction flow.", + "selected": "If true, the component is selected.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/list-item-content/list-item-content.json b/docs/translations/api-docs-joy/list-item-content/list-item-content.json new file mode 100644 index 00000000000000..22d43a6210559c --- /dev/null +++ b/docs/translations/api-docs-joy/list-item-content/list-item-content.json @@ -0,0 +1,9 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/list-item-decorator/list-item-decorator.json b/docs/translations/api-docs-joy/list-item-decorator/list-item-decorator.json new file mode 100644 index 00000000000000..22d43a6210559c --- /dev/null +++ b/docs/translations/api-docs-joy/list-item-decorator/list-item-decorator.json @@ -0,0 +1,9 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/list-item/list-item.json b/docs/translations/api-docs-joy/list-item/list-item.json new file mode 100644 index 00000000000000..762b4c9e1220b6 --- /dev/null +++ b/docs/translations/api-docs-joy/list-item/list-item.json @@ -0,0 +1,15 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "endAction": "The element to display at the end of ListItem.", + "nested": "If true, the component can contain NestedList.", + "startAction": "The element to display at the start of ListItem.", + "sticky": "If true, the component has sticky position (with top = 0).", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/list-subheader/list-subheader.json b/docs/translations/api-docs-joy/list-subheader/list-subheader.json new file mode 100644 index 00000000000000..288d4bf5e42493 --- /dev/null +++ b/docs/translations/api-docs-joy/list-subheader/list-subheader.json @@ -0,0 +1,12 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "sticky": "If true, the component has sticky position (with top = 0).", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/list/list.json b/docs/translations/api-docs-joy/list/list.json new file mode 100644 index 00000000000000..6e66c8d232485d --- /dev/null +++ b/docs/translations/api-docs-joy/list/list.json @@ -0,0 +1,14 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "orientation": "The component orientation.", + "size": "The size of the component (affect other nested list* components).", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use.", + "wrap": "Only for horizontal list. If true, the list sets the flex-wrap to "wrap" and adjust margin to have gap-like behavior (will move to gap in the future)." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/menu-item/menu-item.json b/docs/translations/api-docs-joy/menu-item/menu-item.json new file mode 100644 index 00000000000000..5fa11e776da12e --- /dev/null +++ b/docs/translations/api-docs-joy/menu-item/menu-item.json @@ -0,0 +1,10 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "selected": "If true, the component is selected.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/menu-list/menu-list.json b/docs/translations/api-docs-joy/menu-list/menu-list.json new file mode 100644 index 00000000000000..82ea39a8eed6f5 --- /dev/null +++ b/docs/translations/api-docs-joy/menu-list/menu-list.json @@ -0,0 +1,12 @@ +{ + "componentDescription": "", + "propDescriptions": { + "actions": "A ref with imperative actions. It allows to select the first or last menu item.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "size": "The size of the component (affect other nested list* components because the Menu inherits List).", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/menu/menu.json b/docs/translations/api-docs-joy/menu/menu.json new file mode 100644 index 00000000000000..f7ca05131276a7 --- /dev/null +++ b/docs/translations/api-docs-joy/menu/menu.json @@ -0,0 +1,18 @@ +{ + "componentDescription": "", + "propDescriptions": { + "actions": "A ref with imperative actions. It allows to select the first or last menu item.", + "anchorEl": "An HTML element, virtualElement, or a function that returns either. It's used to set the position of the popper. The return value will passed as the reference object of the Popper instance.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "disablePortal": "The children will be under the DOM hierarchy of the parent component.", + "keepMounted": "Always keep the children in the DOM. This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Popper.", + "modifiers": "Popper.js is based on a "plugin-like" architecture, most of its features are fully encapsulated "modifiers".
A modifier is a function that is called each time Popper.js needs to compute the position of the popper. For this reason, modifiers should be very performant to avoid bottlenecks. To learn how to create a modifier, read the modifiers documentation.", + "onClose": "Triggered when focus leaves the menu and the menu should close.", + "open": "Controls whether the menu is displayed.", + "size": "The size of the component (affect other nested list* components because the Menu inherits List).", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/modal-close/modal-close.json b/docs/translations/api-docs-joy/modal-close/modal-close.json new file mode 100644 index 00000000000000..efa6ca7c99ce0e --- /dev/null +++ b/docs/translations/api-docs-joy/modal-close/modal-close.json @@ -0,0 +1,11 @@ +{ + "componentDescription": "", + "propDescriptions": { + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/modal-dialog/modal-dialog.json b/docs/translations/api-docs-joy/modal-dialog/modal-dialog.json new file mode 100644 index 00000000000000..60ee88be071508 --- /dev/null +++ b/docs/translations/api-docs-joy/modal-dialog/modal-dialog.json @@ -0,0 +1,13 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "layout": "The layout of the dialog", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/modal/modal.json b/docs/translations/api-docs-joy/modal/modal.json new file mode 100644 index 00000000000000..2a9a7779b25300 --- /dev/null +++ b/docs/translations/api-docs-joy/modal/modal.json @@ -0,0 +1,19 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "A single child content element.
⚠️ Needs to be able to hold a ref.", + "container": "An HTML element or function that returns one. The container will have the portal children appended to it.
By default, it uses the body of the top-level document object, so it's simply document.body most of the time.", + "disableAutoFocus": "If true, the modal will not automatically shift focus to itself when it opens, and replace it to the last focused element when it closes. This also works correctly with any modal children that have the disableAutoFocus prop.
Generally this should never be set to true as it makes the modal less accessible to assistive technologies, like screen readers.", + "disableEnforceFocus": "If true, the modal will not prevent focus from leaving the modal while open.
Generally this should never be set to true as it makes the modal less accessible to assistive technologies, like screen readers.", + "disableEscapeKeyDown": "If true, hitting escape will not fire the onClose callback.", + "disablePortal": "The children will be under the DOM hierarchy of the parent component.", + "disableRestoreFocus": "If true, the modal will not restore focus to previously focused element once modal is hidden or unmounted.", + "disableScrollLock": "Disable the scroll lock behavior.", + "hideBackdrop": "If true, the backdrop is not rendered.", + "keepMounted": "Always keep the children in the DOM. This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Modal.", + "onClose": "Callback fired when the component requests to be closed. The reason parameter can optionally be used to control the response to onClose.

Signature:
function(event: object, reason: string) => void
event: The event source of the callback.
reason: Can be: "escapeKeyDown", "backdropClick", "closeClick".", + "open": "If true, the component is shown.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/option/option.json b/docs/translations/api-docs-joy/option/option.json new file mode 100644 index 00000000000000..f62b73037b5d13 --- /dev/null +++ b/docs/translations/api-docs-joy/option/option.json @@ -0,0 +1,14 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "disabled": "If true, the component is disabled.", + "label": "A text representation of the option's content. Used for keyboard text navigation matching.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The option value.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/radio-group/radio-group.json b/docs/translations/api-docs-joy/radio-group/radio-group.json new file mode 100644 index 00000000000000..9c415568daa613 --- /dev/null +++ b/docs/translations/api-docs-joy/radio-group/radio-group.json @@ -0,0 +1,19 @@ +{ + "componentDescription": "", + "propDescriptions": { + "className": "Class name applied to the root element.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disableIcon": "The radio's disabledIcon prop. If specified, the value is passed down to every radios under this element.", + "name": "The name used to reference the value of the control. If you don't provide this prop, it falls back to a randomly generated name.", + "onChange": "Callback fired when a radio button is selected.

Signature:
function(event: React.ChangeEvent<HTMLInputElement>) => void
event: The event source of the callback. You can pull out the new value by accessing event.target.value (string).", + "orientation": "The component orientation.", + "overlay": "The radio's overlay prop. If specified, the value is passed down to every radios under this element.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "Value of the selected radio button. The DOM API casts this to a string.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/radio/radio.json b/docs/translations/api-docs-joy/radio/radio.json new file mode 100644 index 00000000000000..ff780a15e0cdfb --- /dev/null +++ b/docs/translations/api-docs-joy/radio/radio.json @@ -0,0 +1,24 @@ +{ + "componentDescription": "", + "propDescriptions": { + "checked": "If true, the component is checked.", + "checkedIcon": "The icon to display when the component is checked.", + "className": "Class name applied to the root element.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "defaultChecked": "The default checked state. Use when the component is not controlled.", + "disabled": "If true, the component is disabled.", + "disableIcon": "If true, the checked icon is removed and the selected variant is applied on the action element instead.", + "label": "The label element at the end the radio.", + "name": "The name attribute of the input.", + "onChange": "Callback fired when the state is changed.

Signature:
function(event: React.ChangeEvent<HTMLInputElement>) => void
event: The event source of the callback. You can pull out the new value by accessing event.target.value (string). You can pull out the new checked state by accessing event.target.checked (boolean).", + "overlay": "If true, the root element's position is set to initial which allows the action area to fill the nearest positioned parent. This prop is useful for composing Radio with ListItem component.", + "readOnly": "If true, the component is read only.", + "required": "If true, the input element is required.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "uncheckedIcon": "The icon to display when the component is not checked.", + "value": "The value of the component. The DOM API casts this to a string.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/scoped-css-baseline/scoped-css-baseline.json b/docs/translations/api-docs-joy/scoped-css-baseline/scoped-css-baseline.json new file mode 100644 index 00000000000000..d643f5af443473 --- /dev/null +++ b/docs/translations/api-docs-joy/scoped-css-baseline/scoped-css-baseline.json @@ -0,0 +1,10 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "You can wrap a node.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "disableColorScheme": "Disable color-scheme CSS property. For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme For browser support, check out https://caniuse.com/?search=color-scheme", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/select/select.json b/docs/translations/api-docs-joy/select/select.json new file mode 100644 index 00000000000000..d2a9acb1db0a66 --- /dev/null +++ b/docs/translations/api-docs-joy/select/select.json @@ -0,0 +1,23 @@ +{ + "componentDescription": "", + "propDescriptions": { + "action": "A ref for imperative actions. It currently only supports focusVisible() action.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "defaultValue": "The default selected value. Use when the component is not controlled.", + "disabled": "If true, the component is disabled.", + "endDecorator": "Trailing adornment for the select.", + "getSerializedValue": "A function to convert the currently selected value to a string. Used to set a value of a hidden input associated with the select, so that the selected value can be posted with a form.", + "indicator": "The indicator(*) for the select. ________________ [ value * ] ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾", + "onChange": "Callback fired when an option is selected.", + "onClose": "Triggered when focus leaves the menu and the menu should close.", + "placeholder": "Text to show when there is no selected value.", + "renderValue": "Function that customizes the rendering of the selected value.", + "size": "The size of the component.", + "startDecorator": "Leading adornment for the select.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The selected value. Set to null to deselect all options.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/sheet/sheet.json b/docs/translations/api-docs-joy/sheet/sheet.json new file mode 100644 index 00000000000000..59ca2abe835ac6 --- /dev/null +++ b/docs/translations/api-docs-joy/sheet/sheet.json @@ -0,0 +1,12 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "invertedColors": "If true, the children with an implicit color prop invert their colors to match the component's variant and color.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/slider/slider.json b/docs/translations/api-docs-joy/slider/slider.json new file mode 100644 index 00000000000000..b9d183eaf41dcf --- /dev/null +++ b/docs/translations/api-docs-joy/slider/slider.json @@ -0,0 +1,105 @@ +{ + "componentDescription": "", + "propDescriptions": { + "aria-label": "The label of the slider.", + "aria-valuetext": "A string value that provides a user-friendly name for the current value of the slider.", + "classes": "Override or extend the styles applied to the component. See CSS API below for more details.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "defaultValue": "The default value. Use when the component is not controlled.", + "disabled": "If true, the component is disabled.", + "disableSwap": "If true, the active thumb doesn't swap when moving pointer over a thumb while dragging another thumb.", + "getAriaLabel": "Accepts a function which returns a string value that provides a user-friendly name for the thumb labels of the slider. This is important for screen reader users.

Signature:
function(index: number) => string
index: The thumb label's index to format.", + "getAriaValueText": "Accepts a function which returns a string value that provides a user-friendly name for the current value of the slider. This is important for screen reader users.

Signature:
function(value: number, index: number) => string
value: The thumb label's value to format.
index: The thumb label's index to format.", + "isRtl": "If true the Slider will be rendered right-to-left (with the lowest value on the right-hand side).", + "marks": "Marks indicate predetermined values to which the user can move the slider. If true the marks are spaced according the value of the step prop. If an array, it should contain objects with value and an optional label keys.", + "max": "The maximum allowed value of the slider. Should not be equal to min.", + "min": "The minimum allowed value of the slider. Should not be equal to max.", + "name": "Name attribute of the hidden input element.", + "onChange": "Callback function that is fired when the slider's value changed.

Signature:
function(event: Event, value: number | Array<number>, activeThumb: number) => void
event: The event source of the callback. You can pull out the new value by accessing event.target.value (any). Warning: This is a generic event not a change event.
value: The new value.
activeThumb: Index of the currently moved thumb.", + "onChangeCommitted": "Callback function that is fired when the mouseup is triggered.

Signature:
function(event: React.SyntheticEvent | Event, value: number | Array<number>) => void
event: The event source of the callback. Warning: This is a generic event not a change event.
value: The new value.", + "orientation": "The component orientation.", + "scale": "A transformation function, to change the scale of the slider.

Signature:
function(x: any) => any
", + "size": "The size of the component. It accepts theme values between 'sm' and 'lg'.", + "step": "The granularity with which the slider can step through values. (A "discrete" slider.) The min prop serves as the origin for the valid values. We recommend (max - min) to be evenly divisible by the step.
When step is null, the thumb can only be slid onto marks provided with the marks prop.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "tabIndex": "Tab index attribute of the hidden input element.", + "track": "The track presentation:
- normal the track will render a bar representing the slider value. - inverted the track will render a bar representing the remaining slider value. - false the track will render without a bar.", + "value": "The value of the slider. For ranged sliders, provide an array with two values.", + "valueLabelDisplay": "Controls when the value label is displayed:
- auto the value label will display when the thumb is hovered or focused. - on will display persistently. - off will never display.", + "valueLabelFormat": "The format function the value label's value.
When a function is provided, it should have the following signature:
- {number} value The value label's value to format - {number} index The value label's index to format", + "variant": "The variant to use." + }, + "classDescriptions": { + "root": { "description": "Class name applied to the root element." }, + "marked": { + "description": "Class name applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the root element", + "conditions": "marks is provided with at least one label" + }, + "vertical": { + "description": "Class name applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the root element", + "conditions": "orientation=\"vertical\"" + }, + "disabled": { + "description": "State class applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the root and thumb element", + "conditions": "disabled={true}" + }, + "dragging": { + "description": "State class applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the root", + "conditions": "a thumb is being dragged" + }, + "rail": { + "description": "Class name applied to {{nodeName}}.", + "nodeName": "the rail element" + }, + "track": { + "description": "Class name applied to {{nodeName}}.", + "nodeName": "the track element" + }, + "trackFalse": { + "description": "Class name applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the root element", + "conditions": "track={false}" + }, + "trackInverted": { + "description": "Class name applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the root element", + "conditions": "track=\"inverted\"" + }, + "thumb": { + "description": "Class name applied to {{nodeName}}.", + "nodeName": "the thumb element" + }, + "active": { + "description": "State class applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the thumb element", + "conditions": "it's active" + }, + "focusVisible": { + "description": "State class applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the thumb element", + "conditions": "keyboard focused" + }, + "mark": { + "description": "Class name applied to {{nodeName}}.", + "nodeName": "the mark element" + }, + "markActive": { + "description": "Class name applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the mark element", + "conditions": "active (depending on the value)" + }, + "markLabel": { + "description": "Class name applied to {{nodeName}}.", + "nodeName": "the mark label element" + }, + "markLabelActive": { + "description": "Class name applied to {{nodeName}} if {{conditions}}.", + "nodeName": "the mark label element", + "conditions": "active (depending on the value)" + } + } +} diff --git a/docs/translations/api-docs-joy/svg-icon/svg-icon.json b/docs/translations/api-docs-joy/svg-icon/svg-icon.json new file mode 100644 index 00000000000000..b5ac449f5ca580 --- /dev/null +++ b/docs/translations/api-docs-joy/svg-icon/svg-icon.json @@ -0,0 +1,16 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "Node passed into the SVG element.", + "color": "The color of the component. It supports those theme colors that make sense for this component. You can use the htmlColor prop to apply a color attribute to the SVG element.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "fontSize": "The fontSize applied to the icon. Defaults to 1rem, but can be configure to inherit font size.", + "htmlColor": "Applies a color attribute to the SVG element.", + "inheritViewBox": "If true, the root node will inherit the custom component's viewBox and the viewBox prop will be ignored. Useful when you want to reference a custom component and have SvgIcon pass that component's viewBox to the root node.", + "shapeRendering": "The shape-rendering attribute. The behavior of the different options is described on the MDN Web Docs. If you are having issues with blurry icons you should investigate this prop.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "titleAccess": "Provides a human-readable title for the element that contains it. https://www.w3.org/TR/SVG-access/#Equivalent", + "viewBox": "Allows you to redefine what the coordinates without units mean inside an SVG element. For example, if the SVG element is 500 (width) by 200 (height), and you pass viewBox="0 0 50 20", this means that the coordinates inside the SVG will go from the top left corner (0,0) to bottom right (50,20) and each unit will be worth 10px." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/switch/switch.json b/docs/translations/api-docs-joy/switch/switch.json new file mode 100644 index 00000000000000..f188704218e4e5 --- /dev/null +++ b/docs/translations/api-docs-joy/switch/switch.json @@ -0,0 +1,18 @@ +{ + "componentDescription": "", + "propDescriptions": { + "checked": "If true, the component is checked.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "defaultChecked": "The default checked state. Use when the component is not controlled.", + "disabled": "If true, the component is disabled.", + "endDecorator": "The element that appears at the end of the switch.", + "onChange": "Callback fired when the state is changed.

Signature:
function(event: React.ChangeEvent<HTMLInputElement>) => void
event: The event source of the callback. You can pull out the new value by accessing event.target.value (string). You can pull out the new checked state by accessing event.target.checked (boolean).", + "readOnly": "If true, the component is read only.", + "required": "If true, the input element is required.", + "size": "The size of the component.", + "startDecorator": "The element that appears at the end of the switch.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/tab-list/tab-list.json b/docs/translations/api-docs-joy/tab-list/tab-list.json new file mode 100644 index 00000000000000..4a9b444f78a340 --- /dev/null +++ b/docs/translations/api-docs-joy/tab-list/tab-list.json @@ -0,0 +1,12 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "Used to render icon or text elements inside the TabList if src is not set. This can be an element, or just a string.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/tab-panel/tab-panel.json b/docs/translations/api-docs-joy/tab-panel/tab-panel.json new file mode 100644 index 00000000000000..86b88be794147b --- /dev/null +++ b/docs/translations/api-docs-joy/tab-panel/tab-panel.json @@ -0,0 +1,11 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/tab/tab.json b/docs/translations/api-docs-joy/tab/tab.json new file mode 100644 index 00000000000000..813838fdbd4ccc --- /dev/null +++ b/docs/translations/api-docs-joy/tab/tab.json @@ -0,0 +1,15 @@ +{ + "componentDescription": "", + "propDescriptions": { + "action": "A ref for imperative actions. It currently only supports focusVisible() action.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "disabled": "If true, the component is disabled.", + "onChange": "Callback invoked when new value is being set.", + "orientation": "The content direction flow.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "You can provide your own value. Otherwise, we fall back to the child position index.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/table/table.json b/docs/translations/api-docs-joy/table/table.json new file mode 100644 index 00000000000000..f408f6a2b807ee --- /dev/null +++ b/docs/translations/api-docs-joy/table/table.json @@ -0,0 +1,17 @@ +{ + "componentDescription": "", + "propDescriptions": { + "borderAxis": "The axis to display a border on the table cell.", + "children": "Children of the table", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "hoverRow": "If true, the table row will shade on hover.", + "noWrap": "If true, the body cells will not wrap, but instead will truncate with a text overflow ellipsis.
Note: Header cells are always truncated with overflow ellipsis.", + "size": "The size of the component. It accepts theme values between 'sm' and 'lg'.", + "stickyHeader": "Set the header sticky.
⚠️ It doesn't work with IE11.", + "stripe": "The odd or even row of the table body will have subtle background color.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/tabs/tabs.json b/docs/translations/api-docs-joy/tabs/tabs.json new file mode 100644 index 00000000000000..4612f861ff1275 --- /dev/null +++ b/docs/translations/api-docs-joy/tabs/tabs.json @@ -0,0 +1,18 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "defaultValue": "The default value. Use when the component is not controlled.", + "direction": "The direction of the text.", + "onChange": "Callback invoked when new value is being set.", + "orientation": "The component orientation (layout flow direction).", + "selectionFollowsFocus": "If true the selected tab changes on focus. Otherwise it only changes on activation.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "value": "The value of the currently selected Tab. If you don't want any selected Tab, you can set this prop to false.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/textarea/textarea.json b/docs/translations/api-docs-joy/textarea/textarea.json new file mode 100644 index 00000000000000..5fa1846304c5a1 --- /dev/null +++ b/docs/translations/api-docs-joy/textarea/textarea.json @@ -0,0 +1,15 @@ +{ + "componentDescription": "", + "propDescriptions": { + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "endDecorator": "Trailing adornment for this input.", + "error": "If true, the input will indicate an error. The prop defaults to the value (false) inherited from the parent FormControl component.", + "maxRows": "Maximum number of rows to display.", + "minRows": "Minimum number of rows to display.", + "size": "The size of the component.", + "startDecorator": "Leading adornment for this input.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/tooltip/tooltip.json b/docs/translations/api-docs-joy/tooltip/tooltip.json new file mode 100644 index 00000000000000..406157fcf044df --- /dev/null +++ b/docs/translations/api-docs-joy/tooltip/tooltip.json @@ -0,0 +1,33 @@ +{ + "componentDescription": "", + "propDescriptions": { + "arrow": "If true, adds an arrow to the tooltip.", + "children": "Tooltip reference element.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "describeChild": "Set to true if the title acts as an accessible description. By default the title acts as an accessible label for the child.", + "direction": "Direction of the text.", + "disableFocusListener": "Do not respond to focus-visible events.", + "disableHoverListener": "Do not respond to hover events.", + "disableInteractive": "Makes a tooltip not interactive, i.e. it will close when the user hovers over the tooltip before the leaveDelay is expired.", + "disablePortal": "The children will be under the DOM hierarchy of the parent component.", + "disableTouchListener": "Do not respond to long press touch events.", + "enterDelay": "The number of milliseconds to wait before showing the tooltip. This prop won't impact the enter touch delay (enterTouchDelay).", + "enterNextDelay": "The number of milliseconds to wait before showing the tooltip when one was already recently opened.", + "enterTouchDelay": "The number of milliseconds a user must touch the element before showing the tooltip.", + "followCursor": "If true, the tooltip follow the cursor over the wrapped element.", + "id": "This prop is used to help implement the accessibility logic. If you don't provide this prop. It falls back to a randomly generated id.", + "keepMounted": "Always keep the children in the DOM. This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Popper.", + "leaveDelay": "The number of milliseconds to wait before hiding the tooltip. This prop won't impact the leave touch delay (leaveTouchDelay).", + "leaveTouchDelay": "The number of milliseconds after the user stops touching an element before hiding the tooltip.", + "modifiers": "Popper.js is based on a "plugin-like" architecture, most of its features are fully encapsulated "modifiers".
A modifier is a function that is called each time Popper.js needs to compute the position of the popper. For this reason, modifiers should be very performant to avoid bottlenecks. To learn how to create a modifier, read the modifiers documentation.", + "onClose": "Callback fired when the component requests to be closed.

Signature:
function(event: React.SyntheticEvent) => void
event: The event source of the callback.", + "onOpen": "Callback fired when the component requests to be open.

Signature:
function(event: React.SyntheticEvent) => void
event: The event source of the callback.", + "open": "If true, the component is shown.", + "placement": "Tooltip placement.", + "size": "The size of the component.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "title": "Tooltip title. Zero-length titles string, undefined, null and false are never displayed.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs-joy/typography/typography.json b/docs/translations/api-docs-joy/typography/typography.json new file mode 100644 index 00000000000000..f5359e1c20584f --- /dev/null +++ b/docs/translations/api-docs-joy/typography/typography.json @@ -0,0 +1,18 @@ +{ + "componentDescription": "", + "propDescriptions": { + "children": "The content of the component.", + "color": "The color of the component. It supports those theme colors that make sense for this component.", + "component": "The component used for the root node. Either a string to use a HTML element or a component.", + "endDecorator": "Element placed after the children.", + "gutterBottom": "If true, the text will have a bottom margin.", + "level": "Applies the theme typography styles.", + "levelMapping": "The component maps the variant prop to a range of different HTML element types. For instance, body1 to <h6>. If you wish to change that mapping, you can provide your own. Alternatively, you can use the component prop.", + "noWrap": "If true, the text will not wrap, but instead will truncate with a text overflow ellipsis.
Note that text overflow can only happen with block or inline-block level elements (the element needs to have a width in order to overflow).", + "startDecorator": "Element placed before the children.", + "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", + "textColor": "The system color.", + "variant": "The variant to use." + }, + "classDescriptions": {} +} diff --git a/docs/translations/api-docs/modal/modal-zh.json b/docs/translations/api-docs/modal/modal-zh.json index 9195156eaddd6f..761e8d950fa9a1 100644 --- a/docs/translations/api-docs/modal/modal-zh.json +++ b/docs/translations/api-docs/modal/modal-zh.json @@ -25,16 +25,12 @@ }, "classDescriptions": { "root": { - "description": "Class name applied to the root element." + "description": "Styles applied to the root element." }, "hidden": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", + "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "the Modal has exited" - }, - "backdrop": { - "description": "Class name applied to {{nodeName}}.", - "nodeName": "the backdrop element" } } } diff --git a/docs/translations/translations-pt.json b/docs/translations/translations-pt.json index 4fa672d2233b6d..e9a680e8f2bd20 100644 --- a/docs/translations/translations-pt.json +++ b/docs/translations/translations-pt.json @@ -24,7 +24,7 @@ "ruleName": "Nome da regra", "slots": "Slots", "spreadHint": "Propriedades do componente {{spreadHintElement}} também estão disponíveis.", - "styleOverrides": "The name {{componentStyles.name}} can be used when providing default props or style overrides in the theme.", + "styleOverrides": "The name {{componentStyles.name}} can be used when providing default props or style overrides in the theme.", "type": "Tipo" }, "albumDescr": "Um álbum responsivo / o leiaute da galeria com ações e um rodapé na página.", diff --git a/docs/translations/translations-zh.json b/docs/translations/translations-zh.json index bb7e0db94ab3ae..86425768f17c43 100644 --- a/docs/translations/translations-zh.json +++ b/docs/translations/translations-zh.json @@ -24,7 +24,7 @@ "ruleName": "规则名称", "slots": "插槽", "spreadHint": "{{spreadHintElement}} 组件的属性也是可用的。", - "styleOverrides": "在主题中,名称“{{componentStyles.name}}”可用于提供默认属性(props),或者样式覆盖", + "styleOverrides": "在主题中,名称“{{componentStyles.name}}”可用于提供默认属性(props),或者样式覆盖", "type": "类型" }, "albumDescr": "这是一个包含了 hero 的单元和页脚的响应式相册 / 展览页面布局。", diff --git a/docs/translations/translations.json b/docs/translations/translations.json index 6ad953a97f686b..ea7a9d7fca3bca 100644 --- a/docs/translations/translations.json +++ b/docs/translations/translations.json @@ -30,7 +30,7 @@ "ruleName": "Rule name", "slots": "Slots", "spreadHint": "Props of the {{spreadHintElement}} component are also available.", - "styleOverrides": "The name {{componentStyles.name}} can be used when providing default props or style overrides in the theme.", + "styleOverrides": "The name {{componentStyles.name}} can be used when providing default props or style overrides in the theme.", "type": "Type" }, "albumDescr": "A responsive album / gallery page layout with a hero unit and footer.", @@ -374,6 +374,63 @@ "Earlier versions": "Earlier versions", "/material-ui/migration/migration-v3": "Migration from v3 to v4", "/material-ui/migration/migration-v0x": "Migration from v0.x to v1", - "https://mui.com/store/?utm_source=docs&utm_medium=referral&utm_campaign=sidenav": "Templates" + "https://mui.com/store/?utm_source=docs&utm_medium=referral&utm_campaign=sidenav": "Templates", + "/joy-ui/getting-started": "Getting started", + "/joy-ui/getting-started/overview": "Overview", + "/joy-ui/getting-started/installation": "Installation", + "/joy-ui/getting-started/usage": "Usage", + "/joy-ui/getting-started/tutorial": "Tutorial", + "/joy-ui/getting-started/templates": "Templates", + "main-features": "Main features", + "/joy-ui/main-features/global-variants": "Global variants", + "/joy-ui/main-features/color-inversion": "Color inversion", + "/joy-ui/main-features/automatic-adjustment": "Automatic adjustment", + "/joy-ui/main-features/dark-mode-optimization": "Dark mode optimization", + "/joy-ui/react-": "Components", + "/joy-ui/react-autocomplete": "Autocomplete", + "/joy-ui/react-button": "Button", + "/joy-ui/react-checkbox": "Checkbox", + "/joy-ui/react-input": "Input", + "/joy-ui/react-radio-button": "Radio Group", + "/joy-ui/react-select": "Select", + "/joy-ui/react-slider": "Slider", + "/joy-ui/react-switch": "Switch", + "/joy-ui/react-textarea": "Textarea", + "/joy-ui/react-text-field": "Text Field", + "/joy-ui/react-aspect-ratio": "Aspect Ratio", + "/joy-ui/react-avatar": "Avatar", + "/joy-ui/react-badge": "Badge", + "/joy-ui/react-chip": "Chip", + "/joy-ui/react-divider": "Divider", + "/joy-ui/react-list": "List", + "/joy-ui/react-table": "Table", + "/joy-ui/react-tooltip": "Tooltip", + "/joy-ui/react-typography": "Typography", + "/joy-ui/react-alert": "Alert", + "/joy-ui/react-circular-progress": "Circular Progress", + "/joy-ui/react-linear-progress": "Linear Progress", + "/joy-ui/react-modal": "Modal", + "/joy-ui/react-card": "Card", + "/joy-ui/react-sheet": "Sheet", + "/joy-ui/react-breadcrumbs": "Breadcrumbs", + "/joy-ui/react-link": "Link", + "/joy-ui/react-menu": "Menu", + "/joy-ui/react-tabs": "Tabs", + "/joy-ui/react-grid": "Grid", + "/joy-ui/react-stack": "Stack", + "/joy-ui/react-css-baseline": "CSS Baseline", + "/joy-ui/customization": "Customization", + "/joy-ui/customization/approaches": "Approaches", + "/joy-ui/customization/dark-mode": "Dark mode", + "Theme": "Theme", + "/joy-ui/customization/theme-colors": "Colors", + "/joy-ui/customization/theme-shadow": "Shadow", + "/joy-ui/customization/theme-typography": "Typography", + "/joy-ui/customization/themed-components": "Components", + "/joy-ui/customization/using-css-variables": "Using CSS variables", + "/joy-ui/customization/default-theme-viewer": "Default theme viewer", + "/joy-ui/guides": "How-to guides", + "/joy-ui/guides/using-joy-ui-and-material-ui-together": "Joy UI and Material UI together", + "/joy-ui/guides/using-icon-libraries": "Using icon libraries" } } diff --git a/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts b/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts index 98740a4eb8968e..b83ff9cc593e69 100644 --- a/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts +++ b/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts @@ -324,7 +324,11 @@ const generateApiTranslations = (outputDirectory: string, reactApi: ReactApi) => }); }; -const generateApiPage = (outputDirectory: string, reactApi: ReactApi) => { +const generateApiPage = ( + apiPagesDirectory: string, + translationPagesDirectory: string, + reactApi: ReactApi, +) => { /** * Gather the metadata needed for the component's API page. */ @@ -369,12 +373,12 @@ const generateApiPage = (outputDirectory: string, reactApi: ReactApi) => { }; writePrettifiedFile( - path.resolve(outputDirectory, `${kebabCase(reactApi.name)}.json`), + path.resolve(apiPagesDirectory, `${kebabCase(reactApi.name)}.json`), JSON.stringify(pageContent), ); writePrettifiedFile( - path.resolve(outputDirectory, `${kebabCase(reactApi.name)}.js`), + path.resolve(apiPagesDirectory, `${kebabCase(reactApi.name)}.js`), `import * as React from 'react'; import ApiPage from 'docs/src/modules/components/ApiPage'; import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; @@ -387,7 +391,7 @@ export default function Page(props) { Page.getInitialProps = () => { const req = require.context( - 'docs/translations/api-docs/${kebabCase(reactApi.name)}', + '${translationPagesDirectory}/${kebabCase(reactApi.name)}', false, /${kebabCase(reactApi.name)}.*.json$/, ); @@ -565,6 +569,7 @@ const generateComponentApi = async (componentInfo: ComponentInfo, project: TypeS } } }); + return false; }, }); @@ -612,8 +617,9 @@ const generateComponentApi = async (componentInfo: ComponentInfo, project: TypeS reactApi.forwardsRefTo = testInfo.forwardsRefTo; reactApi.spread = testInfo.spread ?? spread; reactApi.inheritance = getInheritance(testInfo.inheritComponent); - reactApi.styles = await parseStyles({ project, componentName: reactApi.name }); reactApi.slots = parseSlots({ project, componentName: reactApi.name, muiName: reactApi.muiName }); + reactApi.styles = parseStyles({ project, componentName: reactApi.name }); + if (reactApi.styles.classes.length > 0 && !reactApi.name.endsWith('Unstyled')) { reactApi.styles.name = reactApi.muiName; } @@ -630,8 +636,12 @@ const generateComponentApi = async (componentInfo: ComponentInfo, project: TypeS if (!skipApiGeneration) { // Generate pages, json and translations - generateApiTranslations(path.join(process.cwd(), 'docs/translations/api-docs'), reactApi); - generateApiPage(apiPagesDirectory, reactApi); + const translationPagesDirectory = + reactApi.apiPathname.indexOf('/joy-ui/') === 0 + ? 'docs/translations/api-docs-joy' + : 'docs/translations/api-docs'; + generateApiTranslations(path.join(process.cwd(), translationPagesDirectory), reactApi); + generateApiPage(apiPagesDirectory, translationPagesDirectory, reactApi); // Add comment about demo & api links (including inherited component) to the component file await annotateComponentDefinition(reactApi); diff --git a/packages/api-docs-builder/buildApi.ts b/packages/api-docs-builder/buildApi.ts index 9bb1c732711404..d8b2dfcf5f02e9 100644 --- a/packages/api-docs-builder/buildApi.ts +++ b/packages/api-docs-builder/buildApi.ts @@ -13,6 +13,7 @@ import { getBaseHookInfo, getSystemComponentInfo, extractApiPage, + getJoyComponentInfo, } from './buildApiUtils'; import generateComponentApi, { writePrettifiedFile, @@ -153,6 +154,20 @@ const SETTINGS: Settings[] = [ getComponentInfo: getBaseComponentInfo, getHookInfo: getBaseHookInfo, }, + { + output: { + apiManifestPath: path.join(process.cwd(), 'docs/data/joy/pagesApi.js'), + }, + getProjects: () => [ + createTypeScriptProject({ + name: 'joy', + rootPath: path.join(process.cwd(), 'packages/mui-joy'), + entryPointPath: 'src/index.ts', + }), + ], + getApiPages: () => findApiPages('docs/pages/joy-ui/api'), + getComponentInfo: getJoyComponentInfo, + }, { output: { apiManifestPath: path.join(process.cwd(), 'docs/data/system/pagesApi.js'), @@ -192,8 +207,13 @@ async function run(argv: yargs.ArgumentsCamelCase) { (component) => { if ( component.filename.includes('ThemeProvider') || - (component.filename.includes('mui-material') && - component.filename.includes('CssVarsProvider')) + component.filename.includes('CssVarsProvider') || + (component.filename.includes('mui-joy') && + // Box's demo isn't ready + // Container's demo isn't ready + // Grid has problem with react-docgen + // Stack has problem with react-docgen + component.filename.match(/(Box|Container|ColorInversion|Grid|Stack)/)) ) { return false; } diff --git a/packages/api-docs-builder/buildApiUtils.ts b/packages/api-docs-builder/buildApiUtils.ts index 594a570e945f4c..2f2ab0aeb5549e 100644 --- a/packages/api-docs-builder/buildApiUtils.ts +++ b/packages/api-docs-builder/buildApiUtils.ts @@ -361,6 +361,70 @@ export const getBaseHookInfo = (filename: string): HookInfo => { return result; }; +function findJoyUIDemos( + componentName: string, + pagesMarkdown: ReadonlyArray<{ pathname: string; title: string; components: readonly string[] }>, +) { + return pagesMarkdown + .filter( + (page) => page.pathname.indexOf('/joy/') === 0 && page.components.includes(componentName), + ) + .map((page) => ({ + name: page.title, + demoPathname: replaceComponentLinks(`${page.pathname.replace(/^\/joy/, '')}/`).replace( + 'material-ui', + 'joy-ui', + ), + })); +} + +export const getJoyComponentInfo = (filename: string): ComponentInfo => { + const { name } = extractPackageFile(filename); + let srcInfo: null | ReturnType = null; + if (!name) { + throw new Error(`Could not find the component name from: ${filename}`); + } + return { + filename, + name, + muiName: getMuiName(name), + apiPathname: `/joy-ui/api/${kebabCase(name)}/`, + apiPagesDirectory: path.join(process.cwd(), `docs/pages/joy-ui/api`), + isSystemComponent: systemComponents.includes(name), + readFile() { + srcInfo = parseFile(filename); + return srcInfo; + }, + getInheritance(inheritedComponent = srcInfo?.inheritedComponent) { + if (!inheritedComponent) { + return null; + } + return { + name: inheritedComponent, + apiPathname: `/${inheritedComponent.match(/unstyled/i) ? 'base' : 'joy-ui'}/api/${kebabCase( + inheritedComponent, + )}/`, + }; + }, + getDemos: () => { + const allMarkdowns = findPagesMarkdownNew().map((markdown) => { + const markdownContent = fs.readFileSync(markdown.filename, 'utf8'); + const markdownHeaders = getHeaders(markdownContent) as any; + + return { + ...markdown, + title: getTitle(markdownContent), + components: markdownHeaders.components as string[], + }; + }); + return findJoyUIDemos(name, allMarkdowns).map((info) => ({ + ...info, + demoPathname: info.demoPathname, + })); + }, + }; +}; + export const getSystemComponentInfo = (filename: string): ComponentInfo => { const { name } = extractPackageFile(filename); let srcInfo: null | ReturnType = null; diff --git a/packages/api-docs-builder/utils/defaultPropsHandler.ts b/packages/api-docs-builder/utils/defaultPropsHandler.ts index a31d1095312f4d..77b8942afab34e 100644 --- a/packages/api-docs-builder/utils/defaultPropsHandler.ts +++ b/packages/api-docs-builder/utils/defaultPropsHandler.ts @@ -117,10 +117,23 @@ function getRenderBody(componentDefinition: NodePath, importer: Importer): NodeP return value.get('body', 'body'); } -function getPropsPath(functionBody: NodePath): NodePath | undefined { +/** + * Handle the case where `props` is explicitly declared with/without `React.forwardRef(…)`: + * + * @example + * const Component = React.forwardRef((props, ref) => { + * const { className, ...other } = props; + * }) + */ +function getExplicitPropsDeclaration( + componentDefinition: NodePath, + importer: Importer, +): NodePath | undefined { + const functionNode = getRenderBody(componentDefinition, importer); + let propsPath: NodePath | undefined; // visitVariableDeclarator, can't use visit body.node since it looses scope information - functionBody + functionNode .filter((path: NodePath) => { return types.VariableDeclaration.check(path.node); }, undefined) @@ -136,12 +149,22 @@ function getPropsPath(functionBody: NodePath): NodePath | undefined { } }); + if (!propsPath) { + console.error(`${functionNode.parent.value.id.name}: could not find props declaration to generate jsdoc table. The component declaration should be in this format: + + function Component(props: ComponentProps) { + const { ...spreadAsUsual } = props; + ... + } + `); + } + return propsPath; } const defaultPropsHandler: Handler = (documentation, componentDefinition, importer) => { - const renderBody = getRenderBody(componentDefinition, importer); - const props = getPropsPath(renderBody); + const props = getExplicitPropsDeclaration(componentDefinition, importer); + if (props !== undefined) { getDefaultValuesFromProps(props.get('properties'), documentation, importer); } diff --git a/packages/markdown/loader.js b/packages/markdown/loader.js index ffb3a3b6733063..301d8c0f3e0ab5 100644 --- a/packages/markdown/loader.js +++ b/packages/markdown/loader.js @@ -31,6 +31,7 @@ function moduleIDToJSIdentifier(moduleID) { const componentPackageMapping = { 'material-ui': {}, base: {}, + 'joy-ui': {}, }; const packages = [ @@ -46,6 +47,10 @@ const packages = [ product: 'base', paths: [path.join(__dirname, '../../packages/mui-base/src')], }, + { + product: 'joy-ui', + paths: [path.join(__dirname, '../../packages/mui-joy/src')], + }, ]; packages.forEach((pkg) => { diff --git a/packages/mui-joy/src/Alert/Alert.tsx b/packages/mui-joy/src/Alert/Alert.tsx index b19b9f9f3edc12..3d5233167afe76 100644 --- a/packages/mui-joy/src/Alert/Alert.tsx +++ b/packages/mui-joy/src/Alert/Alert.tsx @@ -99,7 +99,16 @@ const AlertEndDecorator = styled('span', { color: theme.vars.palette[ownerState.color!]?.[`${ownerState.variant!}Color`], }), })); - +/** + * + * Demos: + * + * - [Alert](https://mui.com/joy-ui/react-alert/) + * + * API: + * + * - [Alert API](https://mui.com/joy-ui/api/alert/) + */ const Alert = React.forwardRef(function Alert(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/AspectRatio/AspectRatio.tsx b/packages/mui-joy/src/AspectRatio/AspectRatio.tsx index f23cf3746a34d0..66eed2eaf908a8 100644 --- a/packages/mui-joy/src/AspectRatio/AspectRatio.tsx +++ b/packages/mui-joy/src/AspectRatio/AspectRatio.tsx @@ -84,6 +84,16 @@ const AspectRatioContent = styled('div', { theme.variants[ownerState.variant!]?.[ownerState.color!], ]); +/** + * + * Demos: + * + * - [Aspect Ratio](https://mui.com/joy-ui/react-aspect-ratio/) + * + * API: + * + * - [AspectRatio API](https://mui.com/joy-ui/api/aspect-ratio/) + */ const AspectRatio = React.forwardRef(function AspectRatio(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -168,6 +178,7 @@ AspectRatio.propTypes /* remove-proptypes */ = { minHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), /** * The CSS object-fit value of the first-child. + * @default 'cover' */ objectFit: PropTypes.oneOf([ '-moz-initial', diff --git a/packages/mui-joy/src/AspectRatio/AspectRatioProps.ts b/packages/mui-joy/src/AspectRatio/AspectRatioProps.ts index ffddaf3ec7b431..393600635c41a9 100644 --- a/packages/mui-joy/src/AspectRatio/AspectRatioProps.ts +++ b/packages/mui-joy/src/AspectRatio/AspectRatioProps.ts @@ -39,6 +39,7 @@ export interface AspectRatioTypeMap

maxHeight?: number | string; /** * The CSS object-fit value of the first-child. + * @default 'cover' */ objectFit?: React.CSSProperties['objectFit']; /** diff --git a/packages/mui-joy/src/Autocomplete/Autocomplete.tsx b/packages/mui-joy/src/Autocomplete/Autocomplete.tsx index 574b3e5f6ce6d3..7540ab1c62905b 100644 --- a/packages/mui-joy/src/Autocomplete/Autocomplete.tsx +++ b/packages/mui-joy/src/Autocomplete/Autocomplete.tsx @@ -50,8 +50,8 @@ type OwnerState = Omit, 'onChange' | const defaultIsActiveElementInListbox = (listboxRef: React.RefObject) => listboxRef.current !== null && listboxRef.current.contains(document.activeElement); -const defaultGetOptionLabel = (option: T) => - (option as { label: string }).label ?? option; +// @ts-ignore +const defaultGetOptionLabel = (option) => option.label ?? option; const defaultLimitTagsText = (more: string | number) => `+${more}`; const defaultRenderGroup = (params: AutocompleteRenderGroupParams) => ( @@ -268,7 +268,16 @@ const excludeUseAutocompleteParams = < selectOnFocus, ...other }: T) => other as T; - +/** + * + * Demos: + * + * - [Autocomplete](https://mui.com/joy-ui/react-autocomplete/) + * + * API: + * + * - [Autocomplete API](https://mui.com/joy-ui/api/autocomplete/) + */ const Autocomplete = React.forwardRef(function Autocomplete( inProps, ref: React.ForwardedRef, @@ -745,7 +754,7 @@ Autocomplete.propTypes /* remove-proptypes */ = { autoFocus: PropTypes.bool, /** * The icon to display in place of the default clear icon. - * @default + * @default */ clearIcon: PropTypes.node, /** @@ -799,6 +808,7 @@ Autocomplete.propTypes /* remove-proptypes */ = { /** * If `true`, the `input` will indicate an error. * The prop defaults to the value (`false`) inherited from the parent FormControl component. + * @default false */ error: PropTypes.bool, /** @@ -822,9 +832,9 @@ Autocomplete.propTypes /* remove-proptypes */ = { /** * The label to display when the tags are truncated (`limitTags`). * - * @param {number} more The number of truncated tags. + * @param {string | number} more The number of truncated tags. * @returns {ReactNode} - * @default (more) => `+${more}` + * @default (more: string | number) => `+${more}` */ getLimitTagsText: PropTypes.func, /** diff --git a/packages/mui-joy/src/Autocomplete/AutocompleteProps.ts b/packages/mui-joy/src/Autocomplete/AutocompleteProps.ts index 65168491ae3778..2fa7cdbeaf8ab5 100644 --- a/packages/mui-joy/src/Autocomplete/AutocompleteProps.ts +++ b/packages/mui-joy/src/Autocomplete/AutocompleteProps.ts @@ -121,7 +121,7 @@ type AutocompleteOwnProps< autoFocus?: boolean; /** * The icon to display in place of the default clear icon. - * @default + * @default */ clearIcon?: React.ReactNode; /** @@ -156,6 +156,7 @@ type AutocompleteOwnProps< /** * If `true`, the `input` will indicate an error. * The prop defaults to the value (`false`) inherited from the parent FormControl component. + * @default false */ error?: boolean; /** @@ -170,11 +171,11 @@ type AutocompleteOwnProps< /** * The label to display when the tags are truncated (`limitTags`). * - * @param {number} more The number of truncated tags. + * @param {string | number} more The number of truncated tags. * @returns {ReactNode} - * @default (more) => `+${more}` + * @default (more: string | number) => `+${more}` */ - getLimitTagsText?: (more: number) => React.ReactNode; + getLimitTagsText?: (more: string | number) => React.ReactNode; /** * If `true`, the component is in a loading state. * This shows the `loadingText` in place of suggestions (only if there are no suggestions to show, e.g. `options` are empty). diff --git a/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx b/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx index dac1558aa2a517..2eee95e2e56beb 100644 --- a/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx +++ b/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx @@ -83,7 +83,16 @@ const AutocompleteListboxRoot = styled(StyledAutocompleteListbox, { slot: 'Root', overridesResolver: (props, styles) => styles.root, })({}); - +/** + * + * Demos: + * + * - [Autocomplete](https://mui.com/joy-ui/react-autocomplete/) + * + * API: + * + * - [AutocompleteListbox API](https://mui.com/joy-ui/api/autocomplete-listbox/) + */ const AutocompleteListbox = React.forwardRef(function AutocompleteListbox(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx b/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx index 5bf981a02e6126..99db8d3e432567 100644 --- a/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx +++ b/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx @@ -49,7 +49,16 @@ const AutocompleteOptionRoot = styled(StyledAutocompleteOption, { slot: 'Root', overridesResolver: (props, styles) => styles.root, })({}); - +/** + * + * Demos: + * + * - [Autocomplete](https://mui.com/joy-ui/react-autocomplete/) + * + * API: + * + * - [AutocompleteOption API](https://mui.com/joy-ui/api/autocomplete-option/) + */ const AutocompleteOption = React.forwardRef(function AutocompleteOption(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Avatar/Avatar.tsx b/packages/mui-joy/src/Avatar/Avatar.tsx index 380604ed179d08..4a433ad404cf6b 100644 --- a/packages/mui-joy/src/Avatar/Avatar.tsx +++ b/packages/mui-joy/src/Avatar/Avatar.tsx @@ -136,7 +136,16 @@ function useLoaded({ crossOrigin, referrerPolicy, src, srcSet }: UseLoadedProps) return loaded; } - +/** + * + * Demos: + * + * - [Avatar](https://mui.com/joy-ui/react-avatar/) + * + * API: + * + * - [Avatar API](https://mui.com/joy-ui/api/avatar/) + */ const Avatar = React.forwardRef(function Avatar(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx b/packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx index 15905d00e943c1..e3986bdb3f84fc 100644 --- a/packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx +++ b/packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx @@ -40,7 +40,16 @@ const AvatarGroupGroupRoot = styled('div', { display: 'flex', marginInlineStart: 'calc(-1 * var(--AvatarGroup-gap))', })); - +/** + * + * Demos: + * + * - [Avatar](https://mui.com/joy-ui/react-avatar/) + * + * API: + * + * - [AvatarGroup API](https://mui.com/joy-ui/api/avatar-group/) + */ const AvatarGroup = React.forwardRef(function AvatarGroup(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/AvatarGroup/AvatarGroupProps.ts b/packages/mui-joy/src/AvatarGroup/AvatarGroupProps.ts index 7626b75316e197..0212c88a9449a9 100644 --- a/packages/mui-joy/src/AvatarGroup/AvatarGroupProps.ts +++ b/packages/mui-joy/src/AvatarGroup/AvatarGroupProps.ts @@ -11,6 +11,7 @@ export interface AvatarGroupTypeMap

/** * The color context for the avatar children. * It has no effect on the AvatarGroup. + * @default 'neutral' */ color?: AvatarProps['color']; /** @@ -30,6 +31,7 @@ export interface AvatarGroupTypeMap

/** * The variant context for the avatar children. * It has no effect on the AvatarGroup. + * @default 'soft' */ variant?: AvatarProps['variant']; }; diff --git a/packages/mui-joy/src/Badge/Badge.tsx b/packages/mui-joy/src/Badge/Badge.tsx index effb210044ef2d..bef2c36bb465b5 100644 --- a/packages/mui-joy/src/Badge/Badge.tsx +++ b/packages/mui-joy/src/Badge/Badge.tsx @@ -133,7 +133,16 @@ const BadgeBadge = styled('span', { ...theme.variants[ownerState.variant!]?.[ownerState.color!], }; }); - +/** + * + * Demos: + * + * - [Badge](https://mui.com/joy-ui/react-badge/) + * + * API: + * + * - [Badge API](https://mui.com/joy-ui/api/badge/) + */ const Badge = React.forwardRef(function Badge(inProps, ref) { const props = useThemeProps({ props: inProps, name: 'JoyBadge' }); const { @@ -231,6 +240,7 @@ Badge.propTypes /* remove-proptypes */ = { }), /** * The content rendered within the badge. + * @default '' */ badgeContent: PropTypes.node, /** diff --git a/packages/mui-joy/src/Badge/BadgeProps.ts b/packages/mui-joy/src/Badge/BadgeProps.ts index 73bbba2bbdd399..965f5d9e1427d9 100644 --- a/packages/mui-joy/src/Badge/BadgeProps.ts +++ b/packages/mui-joy/src/Badge/BadgeProps.ts @@ -37,6 +37,7 @@ export interface BadgeTypeMap { anchorOrigin?: BadgeOrigin; /** * The content rendered within the badge. + * @default '' */ badgeContent?: React.ReactNode; /** diff --git a/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx b/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx index b5e5c52459b087..3c05443d672cc6 100644 --- a/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx +++ b/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx @@ -75,7 +75,16 @@ const BreadcrumbsSeparator = styled('li', { userSelect: 'none', marginInline: 'var(--Breadcrumbs-gap)', }); - +/** + * + * Demos: + * + * - [Breadcrumbs](https://mui.com/joy-ui/react-breadcrumbs/) + * + * API: + * + * - [Breadcrumbs API](https://mui.com/joy-ui/api/breadcrumbs/) + */ const Breadcrumbs = React.forwardRef(function Breadcrumbs(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Button/Button.tsx b/packages/mui-joy/src/Button/Button.tsx index 594a1ead41211c..4eaac9e40f26f4 100644 --- a/packages/mui-joy/src/Button/Button.tsx +++ b/packages/mui-joy/src/Button/Button.tsx @@ -150,7 +150,16 @@ export const ButtonRoot = styled('button', { }, ]; }); - +/** + * + * Demos: + * + * - [Button](https://mui.com/joy-ui/react-button/) + * + * API: + * + * - [Button API](https://mui.com/joy-ui/api/button/) + */ const Button = React.forwardRef(function Button(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -337,6 +346,7 @@ Button.propTypes /* remove-proptypes */ = { loadingPosition: PropTypes.oneOf(['center', 'end', 'start']), /** * The size of the component. + * @default 'md' */ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['sm', 'md', 'lg']), diff --git a/packages/mui-joy/src/Button/ButtonProps.ts b/packages/mui-joy/src/Button/ButtonProps.ts index 5046d6ad1b62ec..88487633c9b1b8 100644 --- a/packages/mui-joy/src/Button/ButtonProps.ts +++ b/packages/mui-joy/src/Button/ButtonProps.ts @@ -63,6 +63,7 @@ export interface ButtonTypeMap

{ fullWidth?: boolean; /** * The size of the component. + * @default 'md' */ size?: OverridableStringUnion<'sm' | 'md' | 'lg', ButtonPropsSizeOverrides>; /** diff --git a/packages/mui-joy/src/Card/Card.tsx b/packages/mui-joy/src/Card/Card.tsx index bef312a0305d41..11660b507105c6 100644 --- a/packages/mui-joy/src/Card/Card.tsx +++ b/packages/mui-joy/src/Card/Card.tsx @@ -85,6 +85,16 @@ const CardRoot = styled('div', { theme.colorInversion[ownerState.variant!]?.[ownerState.color!], ]); +/** + * + * Demos: + * + * - [Card](https://mui.com/joy-ui/react-card/) + * + * API: + * + * - [Card API](https://mui.com/joy-ui/api/card/) + */ const Card = React.forwardRef(function Card(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/CardContent/CardContent.tsx b/packages/mui-joy/src/CardContent/CardContent.tsx index 42ad54bbeb186d..ab0b3c5230f5bd 100644 --- a/packages/mui-joy/src/CardContent/CardContent.tsx +++ b/packages/mui-joy/src/CardContent/CardContent.tsx @@ -26,7 +26,16 @@ const CardContentRoot = styled('div', { flexGrow: 1, zIndex: 1, }); - +/** + * + * Demos: + * + * - [Card](https://mui.com/joy-ui/react-card/) + * + * API: + * + * - [CardContent API](https://mui.com/joy-ui/api/card-content/) + */ const CardContent = React.forwardRef(function CardContent(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/CardCover/CardCover.tsx b/packages/mui-joy/src/CardCover/CardCover.tsx index b961093edc6697..aa6ddcdd237037 100644 --- a/packages/mui-joy/src/CardCover/CardCover.tsx +++ b/packages/mui-joy/src/CardCover/CardCover.tsx @@ -49,7 +49,16 @@ const CardCoverRoot = styled('div', { }, }, }); - +/** + * + * Demos: + * + * - [Card](https://mui.com/joy-ui/react-card/) + * + * API: + * + * - [CardCover API](https://mui.com/joy-ui/api/card-cover/) + */ const CardCover = React.forwardRef(function CardCover(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/CardOverflow/CardOverflow.tsx b/packages/mui-joy/src/CardOverflow/CardOverflow.tsx index 8e30b37b16b619..0e35bee266c969 100644 --- a/packages/mui-joy/src/CardOverflow/CardOverflow.tsx +++ b/packages/mui-joy/src/CardOverflow/CardOverflow.tsx @@ -87,7 +87,16 @@ const CardOverflowRoot = styled('div', { theme.variants[ownerState.variant!]?.[ownerState.color!], ]; }); - +/** + * + * Demos: + * + * - [Card](https://mui.com/joy-ui/react-card/) + * + * API: + * + * - [CardOverflow API](https://mui.com/joy-ui/api/card-overflow/) + */ const CardOverflow = React.forwardRef(function CardOverflow(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Checkbox/Checkbox.tsx b/packages/mui-joy/src/Checkbox/Checkbox.tsx index d3ab2ee5f3c50f..a3074a9f83275d 100644 --- a/packages/mui-joy/src/Checkbox/Checkbox.tsx +++ b/packages/mui-joy/src/Checkbox/Checkbox.tsx @@ -181,7 +181,16 @@ const CheckboxLabel = styled('label', { const defaultCheckedIcon = ; const defaultIndeterminateIcon = ; - +/** + * + * Demos: + * + * - [Checkbox](https://mui.com/joy-ui/react-checkbox/) + * + * API: + * + * - [Checkbox API](https://mui.com/joy-ui/api/checkbox/) + */ const Checkbox = React.forwardRef(function Checkbox(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -404,7 +413,7 @@ Checkbox.propTypes /* remove-proptypes */ = { indeterminate: PropTypes.bool, /** * The icon to display when the component is indeterminate. - * @default + * @default */ indeterminateIcon: PropTypes.node, /** diff --git a/packages/mui-joy/src/Checkbox/CheckboxProps.ts b/packages/mui-joy/src/Checkbox/CheckboxProps.ts index 6cbf92346b93ae..7e67a381a136c8 100644 --- a/packages/mui-joy/src/Checkbox/CheckboxProps.ts +++ b/packages/mui-joy/src/Checkbox/CheckboxProps.ts @@ -54,7 +54,7 @@ export interface CheckboxTypeMap

{ indeterminate?: boolean; /** * The icon to display when the component is indeterminate. - * @default + * @default */ indeterminateIcon?: React.ReactNode; /** diff --git a/packages/mui-joy/src/Chip/Chip.tsx b/packages/mui-joy/src/Chip/Chip.tsx index fc6e88c3ca9ac2..ccb7502112ac5c 100644 --- a/packages/mui-joy/src/Chip/Chip.tsx +++ b/packages/mui-joy/src/Chip/Chip.tsx @@ -194,6 +194,14 @@ const ChipEndDecorator = styled('span', { /** * Chips represent complex entities in small blocks, such as a contact. + * + * Demos: + * + * - [Chip](https://mui.com/joy-ui/react-chip/) + * + * API: + * + * - [Chip API](https://mui.com/joy-ui/api/chip/) */ const Chip = React.forwardRef(function Chip(inProps, ref) { const props = useThemeProps({ props: inProps, name: 'JoyChip' }); diff --git a/packages/mui-joy/src/ChipDelete/ChipDelete.tsx b/packages/mui-joy/src/ChipDelete/ChipDelete.tsx index d00ced4d45471d..6d5db00b4656bd 100644 --- a/packages/mui-joy/src/ChipDelete/ChipDelete.tsx +++ b/packages/mui-joy/src/ChipDelete/ChipDelete.tsx @@ -65,7 +65,16 @@ const chipVariantMapping = { soft: 'solid', solid: 'solid', } as const; - +/** + * + * Demos: + * + * - [Chip](https://mui.com/joy-ui/react-chip/) + * + * API: + * + * - [ChipDelete API](https://mui.com/joy-ui/api/chip-delete/) + */ const ChipDelete = React.forwardRef(function ChipDelete(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/CircularProgress/CircularProgress.tsx b/packages/mui-joy/src/CircularProgress/CircularProgress.tsx index 990d47d1d6eccf..f5291470ed59ae 100644 --- a/packages/mui-joy/src/CircularProgress/CircularProgress.tsx +++ b/packages/mui-joy/src/CircularProgress/CircularProgress.tsx @@ -192,6 +192,14 @@ const CircularProgressProgress = styled('circle', { * If the progress bar is describing the loading progress of a particular region of a page, * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy` * attribute to `true` on that region until it has finished loading. + * + * Demos: + * + * - [Circular Progress](https://mui.com/joy-ui/react-circular-progres/) + * + * API: + * + * - [CircularProgress API](https://mui.com/joy-ui/api/circular-progress/) */ const CircularProgress = React.forwardRef(function CircularProgress(inProps, ref) { const props = useThemeProps({ @@ -332,7 +340,7 @@ CircularProgress.propTypes /* remove-proptypes */ = { * The value of the progress indicator for the determinate variant. * Value between 0 and 100. * - * For indeterminate, @default 25 + * @default determinate ? 0 : 25 */ value: PropTypes.number, /** diff --git a/packages/mui-joy/src/CircularProgress/CircularProgressProps.ts b/packages/mui-joy/src/CircularProgress/CircularProgressProps.ts index 215e3f7f25c41d..6f8c80cac85e18 100644 --- a/packages/mui-joy/src/CircularProgress/CircularProgressProps.ts +++ b/packages/mui-joy/src/CircularProgress/CircularProgressProps.ts @@ -51,7 +51,7 @@ export interface CircularProgressTypeMap

({ componentName: 'JoyContainer', diff --git a/packages/mui-joy/src/CssBaseline/CssBaseline.test.js b/packages/mui-joy/src/CssBaseline/CssBaseline.test.js new file mode 100644 index 00000000000000..ee4567edd3934e --- /dev/null +++ b/packages/mui-joy/src/CssBaseline/CssBaseline.test.js @@ -0,0 +1 @@ +describe('', () => {}); diff --git a/packages/mui-joy/src/CssBaseline/CssBaseline.tsx b/packages/mui-joy/src/CssBaseline/CssBaseline.tsx index 9dd20792f29a63..f2c257ffa641ee 100644 --- a/packages/mui-joy/src/CssBaseline/CssBaseline.tsx +++ b/packages/mui-joy/src/CssBaseline/CssBaseline.tsx @@ -7,8 +7,17 @@ import { CssBaselineProps } from './CssBaselineProps'; /** * Kickstart an elegant, consistent, and simple baseline to build upon. + * + * Demos: + * + * - [CSS Baseline](https://mui.com/joy-ui/react-css-baseline/) + * + * API: + * + * - [CssBaseline API](https://mui.com/joy-ui/api/css-baseline/) */ -function CssBaseline({ children, disableColorScheme = false }: CssBaselineProps) { +function CssBaseline(props: CssBaselineProps) { + const { children, disableColorScheme = false } = props; return ( ({ props: inProps, diff --git a/packages/mui-joy/src/FormControl/FormControl.tsx b/packages/mui-joy/src/FormControl/FormControl.tsx index a705c5c36a76a4..bfa979f7de57b8 100644 --- a/packages/mui-joy/src/FormControl/FormControl.tsx +++ b/packages/mui-joy/src/FormControl/FormControl.tsx @@ -63,7 +63,16 @@ export const FormControlRoot = styled('div', { position: 'relative', // for keeping the control action area, e.g. Switch flexDirection: ownerState.orientation === 'horizontal' ? 'row' : 'column', })); - +/** + * + * Demos: + * + * - [Input](https://mui.com/joy-ui/react-input/) + * + * API: + * + * - [FormControl API](https://mui.com/joy-ui/api/form-control/) + */ const FormControl = React.forwardRef(function FormControl(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/FormHelperText/FormHelperText.tsx b/packages/mui-joy/src/FormHelperText/FormHelperText.tsx index 715d182f5abdf9..8ec2174ff0a874 100644 --- a/packages/mui-joy/src/FormHelperText/FormHelperText.tsx +++ b/packages/mui-joy/src/FormHelperText/FormHelperText.tsx @@ -34,7 +34,16 @@ const FormHelperTextRoot = styled('div', { '--FormHelperText-margin': '0px', // remove the margin if the helper text is next to the form label. }, })); - +/** + * + * Demos: + * + * - [Input](https://mui.com/joy-ui/react-input/) + * + * API: + * + * - [FormHelperText API](https://mui.com/joy-ui/api/form-helper-text/) + */ const FormHelperText = React.forwardRef(function FormHelperText(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/FormLabel/FormLabel.tsx b/packages/mui-joy/src/FormLabel/FormLabel.tsx index 48277650ebc9b7..5d97af25d0a922 100644 --- a/packages/mui-joy/src/FormLabel/FormLabel.tsx +++ b/packages/mui-joy/src/FormLabel/FormLabel.tsx @@ -43,7 +43,16 @@ const AsteriskComponent = styled('span', { })<{ ownerState: FormLabelProps }>({ color: 'var(--FormLabel-asterisk-color)', }); - +/** + * + * Demos: + * + * - [Input](https://mui.com/joy-ui/react-input/) + * + * API: + * + * - [FormLabel API](https://mui.com/joy-ui/api/form-label/) + */ const FormLabel = React.forwardRef(function FormLabel(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/IconButton/IconButton.tsx b/packages/mui-joy/src/IconButton/IconButton.tsx index 9ef84d4cc5632a..3b7f0304e84aba 100644 --- a/packages/mui-joy/src/IconButton/IconButton.tsx +++ b/packages/mui-joy/src/IconButton/IconButton.tsx @@ -89,7 +89,16 @@ export const IconButtonRoot = styled(StyledIconButton, { slot: 'Root', overridesResolver: (props, styles) => styles.root, })({}); - +/** + * + * Demos: + * + * - [Button](https://mui.com/joy-ui/react-button/) + * + * API: + * + * - [IconButton API](https://mui.com/joy-ui/api/icon-button/) + */ const IconButton = React.forwardRef(function IconButton(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -199,6 +208,7 @@ IconButton.propTypes /* remove-proptypes */ = { focusVisibleClassName: PropTypes.string, /** * The size of the component. + * @default 'md' */ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['sm', 'md', 'lg']), diff --git a/packages/mui-joy/src/IconButton/IconButtonProps.ts b/packages/mui-joy/src/IconButton/IconButtonProps.ts index 80929e799bd854..479ba9f1c09f06 100644 --- a/packages/mui-joy/src/IconButton/IconButtonProps.ts +++ b/packages/mui-joy/src/IconButton/IconButtonProps.ts @@ -42,6 +42,7 @@ export interface IconButtonTypeMap

; /** diff --git a/packages/mui-joy/src/Input/Input.tsx b/packages/mui-joy/src/Input/Input.tsx index 81328bafc17ce5..46e8bf5bde4055 100644 --- a/packages/mui-joy/src/Input/Input.tsx +++ b/packages/mui-joy/src/Input/Input.tsx @@ -245,7 +245,16 @@ const InputEndDecorator = styled(StyledInputEndDecorator, { slot: 'EndDecorator', overridesResolver: (props, styles) => styles.endDecorator, })({}); - +/** + * + * Demos: + * + * - [Input](https://mui.com/joy-ui/react-input/) + * + * API: + * + * - [Input API](https://mui.com/joy-ui/api/input/) + */ const Input = React.forwardRef(function Input(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -399,6 +408,7 @@ Input.propTypes /* remove-proptypes */ = { /** * If `true`, the `input` will indicate an error. * The prop defaults to the value (`false`) inherited from the parent FormControl component. + * @default false */ error: PropTypes.bool, /** diff --git a/packages/mui-joy/src/Input/InputProps.ts b/packages/mui-joy/src/Input/InputProps.ts index 9706ec10c34930..4965cdfc851126 100644 --- a/packages/mui-joy/src/Input/InputProps.ts +++ b/packages/mui-joy/src/Input/InputProps.ts @@ -58,6 +58,7 @@ export interface InputTypeMap

{ /** * If `true`, the `input` will indicate an error. * The prop defaults to the value (`false`) inherited from the parent FormControl component. + * @default false */ error?: boolean; /** diff --git a/packages/mui-joy/src/LinearProgress/LinearProgress.tsx b/packages/mui-joy/src/LinearProgress/LinearProgress.tsx index e3d04cc0df3572..a17f62157e35a6 100644 --- a/packages/mui-joy/src/LinearProgress/LinearProgress.tsx +++ b/packages/mui-joy/src/LinearProgress/LinearProgress.tsx @@ -135,6 +135,14 @@ const LinearProgressRoot = styled('div', { * If the progress bar is describing the loading progress of a particular region of a page, * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy` * attribute to `true` on that region until it has finished loading. + * + * Demos: + * + * - [Linear Progress](https://mui.com/joy-ui/react-linear-progres/) + * + * API: + * + * - [LinearProgress API](https://mui.com/joy-ui/api/linear-progress/) */ const LinearProgress = React.forwardRef(function LinearProgress(inProps, ref) { const props = useThemeProps({ @@ -258,7 +266,7 @@ LinearProgress.propTypes /* remove-proptypes */ = { * The value of the progress indicator for the determinate variant. * Value between 0 and 100. * - * For indeterminate, @default 25 + * @default determinate ? 0 : 25 */ value: PropTypes.number, /** diff --git a/packages/mui-joy/src/LinearProgress/LinearProgressProps.ts b/packages/mui-joy/src/LinearProgress/LinearProgressProps.ts index 090e9687da2dd0..f535d170f0faf3 100644 --- a/packages/mui-joy/src/LinearProgress/LinearProgressProps.ts +++ b/packages/mui-joy/src/LinearProgress/LinearProgressProps.ts @@ -39,7 +39,7 @@ export interface LinearProgressTypeMap

styles.root, })({}); - +/** + * + * Demos: + * + * - [Lists](https://mui.com/joy-ui/react-list/) + * + * API: + * + * - [List API](https://mui.com/joy-ui/api/list/) + */ const List = React.forwardRef(function List(inProps, ref) { const nesting = React.useContext(NestedListContext); const menuContext = React.useContext(MenuUnstyledContext); @@ -157,7 +166,7 @@ const List = React.forwardRef(function List(inProps, ref) { component, className, children, - size = inProps.size ?? 'md', + size: sizeProp, orientation = 'vertical', wrap = false, variant = 'plain', @@ -167,6 +176,7 @@ const List = React.forwardRef(function List(inProps, ref) { } = props; const { getColor } = useColorInversion(variant); const color = getColor(inProps.color, colorProp); + const size = sizeProp || (inProps.size ?? 'md'); let role; if (menuContext || selectContext) { diff --git a/packages/mui-joy/src/List/ListProvider.tsx b/packages/mui-joy/src/List/ListProvider.tsx index 67202fad1fe0cd..6e5972cdf4c7fe 100644 --- a/packages/mui-joy/src/List/ListProvider.tsx +++ b/packages/mui-joy/src/List/ListProvider.tsx @@ -26,7 +26,7 @@ export const scopedVariables = { '--List-item-marginInline': '0px', }; -export interface ListProviderProps { +interface ListProviderProps { /** * If `undefined`, there is no effect. * If `true` or `false`, affects the nested List styles. @@ -46,13 +46,11 @@ export interface ListProviderProps { wrap?: boolean; } -// internal component -function ListProvider({ - children, - nested, - row = false, - wrap = false, -}: React.PropsWithChildren) { +/** + * @ignore - internal component. + */ +function ListProvider(props: React.PropsWithChildren) { + const { children, nested, row = false, wrap = false } = props; const baseProviders = ( diff --git a/packages/mui-joy/src/ListDivider/ListDivider.tsx b/packages/mui-joy/src/ListDivider/ListDivider.tsx index c3bcaebb75d43a..1d2732a8e30399 100644 --- a/packages/mui-joy/src/ListDivider/ListDivider.tsx +++ b/packages/mui-joy/src/ListDivider/ListDivider.tsx @@ -63,7 +63,16 @@ const ListDividerRoot = styled(DividerRoot as unknown as 'li', { }), }), })); - +/** + * + * Demos: + * + * - [Lists](https://mui.com/joy-ui/react-list/) + * + * API: + * + * - [ListDivider API](https://mui.com/joy-ui/api/list-divider/) + */ const ListDivider = React.forwardRef(function ListDivider(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -79,7 +88,7 @@ const ListDivider = React.forwardRef(function ListDivider(inProps, ref) { className, children, inset = 'context', - orientation = row ? 'vertical' : 'horizontal', + orientation: orientationProp, ...other } = props; @@ -88,6 +97,7 @@ const ListDivider = React.forwardRef(function ListDivider(inProps, ref) { componentProp || (listElement && !listElement.match(/^(ul|ol|menu)$/) ? 'div' : 'li'); const role = roleProp || (component === 'li' ? 'separator' : undefined); + const orientation = orientationProp || (row ? 'vertical' : 'horizontal'); const ownerState = { ...props, inset, @@ -151,7 +161,7 @@ ListDivider.propTypes /* remove-proptypes */ = { * The component orientation. * @default 'horizontal' */ - orientation: PropTypes.oneOf(['horizontal', 'vertical']), + orientation: PropTypes /* @typescript-to-proptypes-ignore */.oneOf(['horizontal', 'vertical']), /** * @ignore */ diff --git a/packages/mui-joy/src/ListItem/ListItem.tsx b/packages/mui-joy/src/ListItem/ListItem.tsx index 2f55266169ee35..6a81896417b7ec 100644 --- a/packages/mui-joy/src/ListItem/ListItem.tsx +++ b/packages/mui-joy/src/ListItem/ListItem.tsx @@ -133,7 +133,16 @@ const ListItemEndAction = styled('div', { right: 0, transform: 'translate(var(--List-item-endActionTranslateX), -50%)', })); - +/** + * + * Demos: + * + * - [Lists](https://mui.com/joy-ui/react-list/) + * + * API: + * + * - [ListItem API](https://mui.com/joy-ui/api/list-item/) + */ const ListItem = React.forwardRef(function ListItem(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/ListItemButton/ListItemButton.tsx b/packages/mui-joy/src/ListItemButton/ListItemButton.tsx index 1e62f290885867..1543f0082a9490 100644 --- a/packages/mui-joy/src/ListItemButton/ListItemButton.tsx +++ b/packages/mui-joy/src/ListItemButton/ListItemButton.tsx @@ -105,7 +105,16 @@ const ListItemButtonRoot = styled(StyledListItemButton, { slot: 'Root', overridesResolver: (props, styles) => styles.root, })({}); - +/** + * + * Demos: + * + * - [Lists](https://mui.com/joy-ui/react-list/) + * + * API: + * + * - [ListItemButton API](https://mui.com/joy-ui/api/list-item-button/) + */ const ListItemButton = React.forwardRef(function ListItemButton(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -212,7 +221,7 @@ ListItemButton.propTypes /* remove-proptypes */ = { className: PropTypes.string, /** * The color of the component. It supports those theme colors that make sense for this component. - * @default 'neutral' + * @default selected ? 'primary' : 'neutral' */ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['danger', 'info', 'neutral', 'primary', 'success', 'warning']), diff --git a/packages/mui-joy/src/ListItemButton/ListItemButtonProps.ts b/packages/mui-joy/src/ListItemButton/ListItemButtonProps.ts index 7f19ca5d4d2ffc..3ddd10920d18fc 100644 --- a/packages/mui-joy/src/ListItemButton/ListItemButtonProps.ts +++ b/packages/mui-joy/src/ListItemButton/ListItemButtonProps.ts @@ -29,7 +29,7 @@ export interface ListItemButtonTypeMap

; /** diff --git a/packages/mui-joy/src/ListItemContent/ListItemContent.tsx b/packages/mui-joy/src/ListItemContent/ListItemContent.tsx index ffad6483edc519..10a7e91846a8cd 100644 --- a/packages/mui-joy/src/ListItemContent/ListItemContent.tsx +++ b/packages/mui-joy/src/ListItemContent/ListItemContent.tsx @@ -23,7 +23,16 @@ const ListItemContentRoot = styled('div', { flex: '1 1 auto', minWidth: 0, }); - +/** + * + * Demos: + * + * - [Lists](https://mui.com/joy-ui/react-list/) + * + * API: + * + * - [ListItemContent API](https://mui.com/joy-ui/api/list-item-content/) + */ const ListItemContent = React.forwardRef(function ListItemContent(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.tsx b/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.tsx index db36b9705e9345..241efb7a4c5084 100644 --- a/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.tsx +++ b/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.tsx @@ -33,7 +33,16 @@ const ListItemDecoratorRoot = styled('span', { minBlockSize: 'var(--List-decorator-size)', }), })); - +/** + * + * Demos: + * + * - [Lists](https://mui.com/joy-ui/react-list/) + * + * API: + * + * - [ListItemDecorator API](https://mui.com/joy-ui/api/list-item-decorator/) + */ const ListItemDecorator = React.forwardRef(function ListItemDecorator(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/ListSubheader/ListSubheader.tsx b/packages/mui-joy/src/ListSubheader/ListSubheader.tsx index 1d34452f0b114c..423a4bbd1c140d 100644 --- a/packages/mui-joy/src/ListSubheader/ListSubheader.tsx +++ b/packages/mui-joy/src/ListSubheader/ListSubheader.tsx @@ -54,7 +54,16 @@ const ListSubheaderRoot = styled('div', { : theme.vars.palette.text.tertiary, ...theme.variants[ownerState.variant!]?.[ownerState.color!], })); - +/** + * + * Demos: + * + * - [Lists](https://mui.com/joy-ui/react-list/) + * + * API: + * + * - [ListSubheader API](https://mui.com/joy-ui/api/list-subheader/) + */ const ListSubheader = React.forwardRef(function ListSubheader(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Menu/Menu.tsx b/packages/mui-joy/src/Menu/Menu.tsx index 5c4aba3bc05262..bfc88d35d71bab 100644 --- a/packages/mui-joy/src/Menu/Menu.tsx +++ b/packages/mui-joy/src/Menu/Menu.tsx @@ -52,7 +52,17 @@ const MenuRoot = styled(StyledList, { }), }; }); - +/** + * + * Demos: + * + * - [Menu](https://mui.com/joy-ui/react-menu/) + * + * API: + * + * - [Menu API](https://mui.com/joy-ui/api/menu/) + * - inherits [PopperUnstyled API](https://mui.com/base/api/popper-unstyled/) + */ const Menu = React.forwardRef(function Menu(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -194,6 +204,7 @@ Menu.propTypes /* remove-proptypes */ = { children: PropTypes.node, /** * The color of the component. It supports those theme colors that make sense for this component. + * @default 'neutral' */ color: PropTypes.oneOf(['danger', 'info', 'neutral', 'primary', 'success', 'warning']), /** @@ -260,6 +271,7 @@ Menu.propTypes /* remove-proptypes */ = { open: PropTypes.bool, /** * The size of the component (affect other nested list* components because the `Menu` inherits `List`). + * @default 'md' */ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['sm', 'md', 'lg']), @@ -275,7 +287,7 @@ Menu.propTypes /* remove-proptypes */ = { ]), /** * The variant to use. - * @default 'plain' + * @default 'outlined' */ variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['outlined', 'plain', 'soft', 'solid']), diff --git a/packages/mui-joy/src/Menu/MenuProps.ts b/packages/mui-joy/src/Menu/MenuProps.ts index 737ad7697ca151..418992d60c9c48 100644 --- a/packages/mui-joy/src/Menu/MenuProps.ts +++ b/packages/mui-joy/src/Menu/MenuProps.ts @@ -13,41 +13,41 @@ export interface MenuPropsVariantOverrides {} export type { MenuUnstyledActions } from '@mui/base/MenuUnstyled'; export interface MenuTypeMap

{ - props: P & - Omit & { - /** - * A ref with imperative actions. - * It allows to select the first or last menu item. - */ - actions?: React.Ref; - /** - * The color of the component. It supports those theme colors that make sense for this component. - * @default 'neutral' - */ - color?: OverridableStringUnion; - /** - * Triggered when focus leaves the menu and the menu should close. - */ - onClose?: () => void; - /** - * Controls whether the menu is displayed. - * @default false - */ - open?: boolean; - /** - * The size of the component (affect other nested list* components because the `Menu` inherits `List`). - */ - size?: OverridableStringUnion<'sm' | 'md' | 'lg', MenuPropsSizeOverrides>; - /** - * The system prop that allows defining system overrides as well as additional CSS styles. - */ - sx?: SxProps; - /** - * The variant to use. - * @default 'plain' - */ - variant?: OverridableStringUnion; - }; + props: P & { + /** + * A ref with imperative actions. + * It allows to select the first or last menu item. + */ + actions?: React.Ref; + /** + * The color of the component. It supports those theme colors that make sense for this component. + * @default 'neutral' + */ + color?: OverridableStringUnion; + /** + * Triggered when focus leaves the menu and the menu should close. + */ + onClose?: () => void; + /** + * Controls whether the menu is displayed. + * @default false + */ + open?: boolean; + /** + * The size of the component (affect other nested list* components because the `Menu` inherits `List`). + * @default 'md' + */ + size?: OverridableStringUnion<'sm' | 'md' | 'lg', MenuPropsSizeOverrides>; + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + sx?: SxProps; + /** + * The variant to use. + * @default 'outlined' + */ + variant?: OverridableStringUnion; + } & Omit; defaultComponent: D; } diff --git a/packages/mui-joy/src/MenuItem/MenuItem.tsx b/packages/mui-joy/src/MenuItem/MenuItem.tsx index a4ffdb67eb2819..6ec9ae0e89c432 100644 --- a/packages/mui-joy/src/MenuItem/MenuItem.tsx +++ b/packages/mui-joy/src/MenuItem/MenuItem.tsx @@ -34,7 +34,17 @@ const MenuItemRoot = styled(StyledListItemButton, { slot: 'Root', overridesResolver: (props, styles) => styles.root, })<{ ownerState: MenuItemOwnerState }>({}); - +/** + * + * Demos: + * + * - [Menu](https://mui.com/joy-ui/react-menu/) + * + * API: + * + * - [MenuItem API](https://mui.com/joy-ui/api/menu-item/) + * - inherits [ListItemButton API](https://mui.com/joy-ui/api/list-item-button/) + */ const MenuItem = React.forwardRef(function MenuItem(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -99,7 +109,7 @@ MenuItem.propTypes /* remove-proptypes */ = { children: PropTypes.node, /** * The color of the component. It supports those theme colors that make sense for this component. - * @default 'neutral' + * @default selected ? 'primary' : 'neutral' */ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['danger', 'info', 'neutral', 'primary', 'success', 'warning']), diff --git a/packages/mui-joy/src/MenuList/MenuList.tsx b/packages/mui-joy/src/MenuList/MenuList.tsx index af705f06be602c..67955405a13339 100644 --- a/packages/mui-joy/src/MenuList/MenuList.tsx +++ b/packages/mui-joy/src/MenuList/MenuList.tsx @@ -48,7 +48,16 @@ const MenuListRoot = styled(StyledList, { }), }; }); - +/** + * + * Demos: + * + * - [Menu](https://mui.com/joy-ui/react-menu/) + * + * API: + * + * - [MenuList API](https://mui.com/joy-ui/api/menu-list/) + */ const MenuList = React.forwardRef(function MenuList(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -165,6 +174,7 @@ MenuList.propTypes /* remove-proptypes */ = { id: PropTypes.string, /** * The size of the component (affect other nested list* components because the `Menu` inherits `List`). + * @default 'md' */ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['sm', 'md', 'lg']), @@ -180,7 +190,7 @@ MenuList.propTypes /* remove-proptypes */ = { ]), /** * The variant to use. - * @default 'plain' + * @default 'outlined' */ variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['outlined', 'plain', 'soft', 'solid']), diff --git a/packages/mui-joy/src/MenuList/MenuListProps.ts b/packages/mui-joy/src/MenuList/MenuListProps.ts index 0c9ae59317953b..7629b2b3baefbc 100644 --- a/packages/mui-joy/src/MenuList/MenuListProps.ts +++ b/packages/mui-joy/src/MenuList/MenuListProps.ts @@ -25,6 +25,7 @@ export interface MenuListTypeMap

{ color?: OverridableStringUnion; /** * The size of the component (affect other nested list* components because the `Menu` inherits `List`). + * @default 'md' */ size?: OverridableStringUnion<'sm' | 'md' | 'lg', MenuListPropsSizeOverrides>; /** @@ -33,7 +34,7 @@ export interface MenuListTypeMap

{ sx?: SxProps; /** * The variant to use. - * @default 'plain' + * @default 'outlined' */ variant?: OverridableStringUnion; }; diff --git a/packages/mui-joy/src/Modal/Modal.tsx b/packages/mui-joy/src/Modal/Modal.tsx index 0d64b735468952..bea7c7edc0fcac 100644 --- a/packages/mui-joy/src/Modal/Modal.tsx +++ b/packages/mui-joy/src/Modal/Modal.tsx @@ -78,7 +78,16 @@ const ModalBackdrop = styled('div', { backdropFilter: 'blur(8px)', }), })); - +/** + * + * Demos: + * + * - [Modal](https://mui.com/joy-ui/react-modal/) + * + * API: + * + * - [Modal API](https://mui.com/joy-ui/api/modal/) + */ const Modal = React.forwardRef(function ModalUnstyled(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/ModalClose/ModalClose.tsx b/packages/mui-joy/src/ModalClose/ModalClose.tsx index 8512bfad7d4010..9ad4a005ff78fc 100644 --- a/packages/mui-joy/src/ModalClose/ModalClose.tsx +++ b/packages/mui-joy/src/ModalClose/ModalClose.tsx @@ -62,7 +62,16 @@ const modalDialogVariantMapping = { soft: 'soft', solid: 'solid', } as const; - +/** + * + * Demos: + * + * - [Modal](https://mui.com/joy-ui/react-modal/) + * + * API: + * + * - [ModalClose API](https://mui.com/joy-ui/api/modal-close/) + */ const ModalClose = React.forwardRef(function ModalClose(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/ModalDialog/ModalDialog.tsx b/packages/mui-joy/src/ModalDialog/ModalDialog.tsx index 40d892eb80e522..67c54caaad6eb4 100644 --- a/packages/mui-joy/src/ModalDialog/ModalDialog.tsx +++ b/packages/mui-joy/src/ModalDialog/ModalDialog.tsx @@ -107,7 +107,16 @@ const ModalDialogRoot = styled(SheetRoot, { }, }, })); - +/** + * + * Demos: + * + * - [Modal](https://mui.com/joy-ui/react-modal/) + * + * API: + * + * - [ModalDialog API](https://mui.com/joy-ui/api/modal-dialog/) + */ const ModalDialog = React.forwardRef(function ModalDialog(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -224,7 +233,7 @@ ModalDialog.propTypes /* remove-proptypes */ = { ]), /** * The variant to use. - * @default 'plain' + * @default 'outlined' */ variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['outlined', 'plain', 'soft', 'solid']), diff --git a/packages/mui-joy/src/ModalDialog/ModalDialogProps.ts b/packages/mui-joy/src/ModalDialog/ModalDialogProps.ts index 9ff71da92425dd..c07de24b6927a5 100644 --- a/packages/mui-joy/src/ModalDialog/ModalDialogProps.ts +++ b/packages/mui-joy/src/ModalDialog/ModalDialogProps.ts @@ -36,7 +36,7 @@ export interface ModalDialogTypeMap

sx?: SxProps; /** * The variant to use. - * @default 'plain' + * @default 'outlined' */ variant?: OverridableStringUnion; }; diff --git a/packages/mui-joy/src/Option/Option.test.js b/packages/mui-joy/src/Option/Option.test.js new file mode 100644 index 00000000000000..518126eb8be5c0 --- /dev/null +++ b/packages/mui-joy/src/Option/Option.test.js @@ -0,0 +1 @@ +describe('

{ /** * If `true`, the root element's position is set to initial which allows the action area to fill the nearest positioned parent. * This prop is useful for composing Radio with ListItem component. - * @default false; + * @default false */ overlay?: boolean; /** diff --git a/packages/mui-joy/src/RadioGroup/RadioGroup.tsx b/packages/mui-joy/src/RadioGroup/RadioGroup.tsx index 613f6166fd8b62..0b2eb0a2c86ed1 100644 --- a/packages/mui-joy/src/RadioGroup/RadioGroup.tsx +++ b/packages/mui-joy/src/RadioGroup/RadioGroup.tsx @@ -48,7 +48,16 @@ const RadioGroupRoot = styled('div', { borderRadius: theme.vars.radius.sm, ...theme.variants[ownerState.variant!]?.[ownerState.color!], })); - +/** + * + * Demos: + * + * - [Radio Group](https://mui.com/joy-ui/react-radio/) + * + * API: + * + * - [RadioGroup API](https://mui.com/joy-ui/api/radio-group/) + */ const RadioGroup = React.forwardRef(function RadioGroup(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -173,6 +182,7 @@ RadioGroup.propTypes /* remove-proptypes */ = { className: PropTypes.string, /** * The color of the component. It supports those theme colors that make sense for this component. + * @default 'neutral' */ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['danger', 'info', 'primary', 'success', 'warning']), @@ -189,6 +199,7 @@ RadioGroup.propTypes /* remove-proptypes */ = { defaultValue: PropTypes.any, /** * The radio's `disabledIcon` prop. If specified, the value is passed down to every radios under this element. + * @default false */ disableIcon: PropTypes.bool, /** @@ -210,6 +221,7 @@ RadioGroup.propTypes /* remove-proptypes */ = { orientation: PropTypes.oneOf(['horizontal', 'vertical']), /** * The radio's `overlay` prop. If specified, the value is passed down to every radios under this element. + * @default false */ overlay: PropTypes.bool, /** @@ -238,6 +250,7 @@ RadioGroup.propTypes /* remove-proptypes */ = { value: PropTypes.any, /** * The variant to use. + * @default 'plain' */ variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['outlined', 'plain', 'soft', 'solid']), diff --git a/packages/mui-joy/src/RadioGroup/RadioGroupProps.ts b/packages/mui-joy/src/RadioGroup/RadioGroupProps.ts index 56614803acb19a..0f66b04f9cff49 100644 --- a/packages/mui-joy/src/RadioGroup/RadioGroupProps.ts +++ b/packages/mui-joy/src/RadioGroup/RadioGroupProps.ts @@ -18,6 +18,7 @@ export interface RadioGroupTypeMap

component?: React.ElementType; /** * The color of the component. It supports those theme colors that make sense for this component. + * @default 'neutral' */ color?: RadioProps['color']; /** @@ -26,6 +27,7 @@ export interface RadioGroupTypeMap

defaultValue?: any; /** * The radio's `disabledIcon` prop. If specified, the value is passed down to every radios under this element. + * @default false */ disableIcon?: boolean; /** @@ -35,6 +37,7 @@ export interface RadioGroupTypeMap

name?: string; /** * The radio's `overlay` prop. If specified, the value is passed down to every radios under this element. + * @default false */ overlay?: boolean; /** @@ -64,6 +67,7 @@ export interface RadioGroupTypeMap

value?: any; /** * The variant to use. + * @default 'plain' */ variant?: RadioProps['variant']; }; diff --git a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.tsx b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.tsx index e1b1b8d6978a04..55d1b419cb93d1 100644 --- a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.tsx +++ b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.tsx @@ -60,7 +60,16 @@ const ScopedCssBaselineRoot = styled('div', { ...colorSchemeStyles, }; }); - +/** + * + * Demos: + * + * - [CSS Baseline](https://mui.com/joy-ui/react-css-baseline/) + * + * API: + * + * - [ScopedCssBaseline API](https://mui.com/joy-ui/api/scoped-css-baseline/) + */ const ScopedCssBaseline = React.forwardRef(function ScopedCssBaseline(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -108,7 +117,6 @@ ScopedCssBaseline.propTypes /* remove-proptypes */ = { component: PropTypes.elementType, /** * Disable `color-scheme` CSS property. - * * For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme * For browser support, check out https://caniuse.com/?search=color-scheme * @default false diff --git a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaselineProps.ts b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaselineProps.ts index 653f7f0007ea2e..4312d4e65dba5e 100644 --- a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaselineProps.ts +++ b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaselineProps.ts @@ -11,7 +11,6 @@ export interface ScopedCssBaselineTypeMap

( inProps: SelectOwnProps, ref: React.ForwardedRef, @@ -651,7 +660,7 @@ Select.propTypes /* remove-proptypes */ = { children: PropTypes.node, /** * The color of the component. It supports those theme colors that make sense for this component. - * @default 'primary' + * @default 'neutral' */ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['danger', 'info', 'neutral', 'primary', 'success', 'warning']), @@ -730,7 +739,7 @@ Select.propTypes /* remove-proptypes */ = { value: PropTypes.any, /** * The variant to use. - * @default 'solid' + * @default 'outlined' */ variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['outlined', 'plain', 'soft', 'solid']), diff --git a/packages/mui-joy/src/Select/SelectProps.ts b/packages/mui-joy/src/Select/SelectProps.ts index c71648c4617bd0..f7563f10a231d2 100644 --- a/packages/mui-joy/src/Select/SelectProps.ts +++ b/packages/mui-joy/src/Select/SelectProps.ts @@ -49,7 +49,7 @@ export interface SelectStaticProps extends SelectUnstyledCommonProps { }>; /** * The color of the component. It supports those theme colors that make sense for this component. - * @default 'primary' + * @default 'neutral' */ color?: OverridableStringUnion; /** @@ -90,7 +90,7 @@ export interface SelectStaticProps extends SelectUnstyledCommonProps { sx?: SxProps; /** * The variant to use. - * @default 'solid' + * @default 'outlined' */ variant?: OverridableStringUnion; } diff --git a/packages/mui-joy/src/Sheet/Sheet.tsx b/packages/mui-joy/src/Sheet/Sheet.tsx index 4b5e3bfb414b25..6c8c0786136af9 100644 --- a/packages/mui-joy/src/Sheet/Sheet.tsx +++ b/packages/mui-joy/src/Sheet/Sheet.tsx @@ -63,7 +63,16 @@ export const SheetRoot = styled('div', { theme.colorInversion[ownerState.variant!]?.[ownerState.color!], ]; }); - +/** + * + * Demos: + * + * - [Sheet](https://mui.com/joy-ui/react-sheet/) + * + * API: + * + * - [Sheet API](https://mui.com/joy-ui/api/sheet/) + */ const Sheet = React.forwardRef(function Sheet(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Slider/Slider.tsx b/packages/mui-joy/src/Slider/Slider.tsx index bdbb4936940a3c..8bd61a6b6365a9 100644 --- a/packages/mui-joy/src/Slider/Slider.tsx +++ b/packages/mui-joy/src/Slider/Slider.tsx @@ -14,9 +14,11 @@ import useSlot from '../utils/useSlot'; import sliderClasses, { getSliderUtilityClass } from './sliderClasses'; import { SliderTypeMap, SliderOwnerState } from './SliderProps'; -function Identity(x: any) { +// @ts-ignore +function Identity(x) { return x; } + const useUtilityClasses = (ownerState: SliderOwnerState) => { const { disabled, dragging, marked, orientation, track, variant, color, size } = ownerState; @@ -381,7 +383,16 @@ const SliderInput = styled('input', { slot: 'Input', overridesResolver: (props, styles) => styles.input, })<{ ownerState?: SliderOwnerState }>({}); - +/** + * + * Demos: + * + * - [Slider](https://mui.com/joy-ui/react-slider/) + * + * API: + * + * - [Slider API](https://mui.com/joy-ui/api/slider/) + */ const Slider = React.forwardRef(function Slider(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Stack/Stack.tsx b/packages/mui-joy/src/Stack/Stack.tsx index 9d00238f5e201c..3e7aa714125525 100644 --- a/packages/mui-joy/src/Stack/Stack.tsx +++ b/packages/mui-joy/src/Stack/Stack.tsx @@ -1,10 +1,20 @@ import { createStack } from '@mui/system'; import PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; -import { StackTypeMap } from './StackProps'; import styled from '../styles/styled'; import { useThemeProps } from '../styles'; +import { StackTypeMap } from './StackProps'; +/** + * + * Demos: + * + * - [Stack](https://mui.com/joy-ui/react-stack/) + * + * API: + * + * - [Stack API](https://mui.com/joy-ui/api/stack/) + */ const Stack = createStack({ createStyledComponent: styled('div', { name: 'JoyStack', diff --git a/packages/mui-joy/src/SvgIcon/SvgIcon.tsx b/packages/mui-joy/src/SvgIcon/SvgIcon.tsx index 829bfe79250e73..720a9bc17a5cfe 100644 --- a/packages/mui-joy/src/SvgIcon/SvgIcon.tsx +++ b/packages/mui-joy/src/SvgIcon/SvgIcon.tsx @@ -54,7 +54,16 @@ const SvgIconRoot = styled('svg', { color: theme.variants.plain?.[ownerState.color!]?.color, }), })); - +/** + * + * Demos: + * + * - [Avatar](https://mui.com/joy-ui/react-avatar/) + * + * API: + * + * - [SvgIcon API](https://mui.com/joy-ui/api/svg-icon/) + */ const SvgIcon = React.forwardRef(function SvgIcon(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Switch/Switch.tsx b/packages/mui-joy/src/Switch/Switch.tsx index f6e2aee6b57222..a6af286d564b88 100644 --- a/packages/mui-joy/src/Switch/Switch.tsx +++ b/packages/mui-joy/src/Switch/Switch.tsx @@ -211,7 +211,16 @@ const SwitchEndDecorator = styled('span', { display: 'inline-flex', marginInlineStart: 'var(--Switch-gap)', }); - +/** + * + * Demos: + * + * - [Switch](https://mui.com/joy-ui/react-switch/) + * + * API: + * + * - [Switch API](https://mui.com/joy-ui/api/switch/) + */ const Switch = React.forwardRef(function Switch(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Tab/Tab.tsx b/packages/mui-joy/src/Tab/Tab.tsx index ed655c55dd5362..4cb7aa3511c862 100644 --- a/packages/mui-joy/src/Tab/Tab.tsx +++ b/packages/mui-joy/src/Tab/Tab.tsx @@ -54,7 +54,16 @@ const TabRoot = styled(StyledListItemButton, { }), }; }); - +/** + * + * Demos: + * + * - [Tabs](https://mui.com/joy-ui/react-tabs/) + * + * API: + * + * - [Tab API](https://mui.com/joy-ui/api/tab/) + */ const Tab = React.forwardRef(function Tab(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/TabList/TabList.tsx b/packages/mui-joy/src/TabList/TabList.tsx index 1a35e287a9b71f..4501fafa9d62b6 100644 --- a/packages/mui-joy/src/TabList/TabList.tsx +++ b/packages/mui-joy/src/TabList/TabList.tsx @@ -42,7 +42,16 @@ const TabListRoot = styled(StyledList, { '--List-divider-gap': '0px', ...scopedVariables, })); - +/** + * + * Demos: + * + * - [Tabs](https://mui.com/joy-ui/react-tabs/) + * + * API: + * + * - [TabList API](https://mui.com/joy-ui/api/tab-list/) + */ const TabList = React.forwardRef(function TabList(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/TabPanel/TabPanel.tsx b/packages/mui-joy/src/TabPanel/TabPanel.tsx index 193bfe03d1aeae..28ff7806d6ff66 100644 --- a/packages/mui-joy/src/TabPanel/TabPanel.tsx +++ b/packages/mui-joy/src/TabPanel/TabPanel.tsx @@ -45,7 +45,16 @@ const TabPanelRoot = styled('div', { flexGrow: 1, fontFamily: theme.vars.fontFamily.body, })); - +/** + * + * Demos: + * + * - [Tabs](https://mui.com/joy-ui/react-tabs/) + * + * API: + * + * - [TabPanel API](https://mui.com/joy-ui/api/tab-panel/) + */ const TabPanel = React.forwardRef(function TabPanel(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Table/Table.tsx b/packages/mui-joy/src/Table/Table.tsx index 2b3335ade30c60..af34f318291aaf 100644 --- a/packages/mui-joy/src/Table/Table.tsx +++ b/packages/mui-joy/src/Table/Table.tsx @@ -268,7 +268,16 @@ const TableRoot = styled('table', { }, ]; }); - +/** + * + * Demos: + * + * - [Table](https://mui.com/joy-ui/react-table/) + * + * API: + * + * - [Table API](https://mui.com/joy-ui/api/table/) + */ const Table = React.forwardRef(function Table(inProps, ref) { const props = useThemeProps({ props: inProps, diff --git a/packages/mui-joy/src/Tabs/Tabs.tsx b/packages/mui-joy/src/Tabs/Tabs.tsx index cad8b98e4370d0..258f202ac58f7c 100644 --- a/packages/mui-joy/src/Tabs/Tabs.tsx +++ b/packages/mui-joy/src/Tabs/Tabs.tsx @@ -50,7 +50,16 @@ const TabsRoot = styled(SheetRoot, { alignItems: 'flex-start', }), })); - +/** + * + * Demos: + * + * - [Tabs](https://mui.com/joy-ui/react-tabs/) + * + * API: + * + * - [Tabs API](https://mui.com/joy-ui/api/tabs/) + */ const Tabs = React.forwardRef(function Tabs(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -60,7 +69,7 @@ const Tabs = React.forwardRef(function Tabs(inProps, ref) { const { children, value: valueProp, - defaultValue = valueProp === undefined ? 0 : undefined, + defaultValue: defaultValueProp, orientation = 'horizontal', direction = 'ltr', component, @@ -73,7 +82,7 @@ const Tabs = React.forwardRef(function Tabs(inProps, ref) { } = props; const { getColor } = useColorInversion(variant); const color = getColor(inProps.color, colorProp); - + const defaultValue = defaultValueProp || (valueProp === undefined ? 0 : undefined); const { tabsContextValue } = useTabs({ ...props, orientation, defaultValue }); const ownerState = { @@ -156,6 +165,7 @@ Tabs.propTypes /* remove-proptypes */ = { selectionFollowsFocus: PropTypes.bool, /** * The size of the component. + * @default 'md' */ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([ PropTypes.oneOf(['sm', 'md', 'lg']), diff --git a/packages/mui-joy/src/Tabs/TabsProps.ts b/packages/mui-joy/src/Tabs/TabsProps.ts index ceb58f89920ab3..fe78e4485c3d86 100644 --- a/packages/mui-joy/src/Tabs/TabsProps.ts +++ b/packages/mui-joy/src/Tabs/TabsProps.ts @@ -21,6 +21,7 @@ export interface TabsTypeMap

{ color?: OverridableStringUnion; /** * The size of the component. + * @default 'md' */ size?: OverridableStringUnion<'sm' | 'md' | 'lg', TabsPropsSizeOverrides>; /** diff --git a/packages/mui-joy/src/Textarea/Textarea.tsx b/packages/mui-joy/src/Textarea/Textarea.tsx index 45072e51afdaf9..197e21e3fd110b 100644 --- a/packages/mui-joy/src/Textarea/Textarea.tsx +++ b/packages/mui-joy/src/Textarea/Textarea.tsx @@ -206,7 +206,16 @@ const TextareaEndDecorator = styled('div', { color: theme.vars.palette.text.tertiary, cursor: 'initial', })); - +/** + * + * Demos: + * + * - [Textarea](https://mui.com/joy-ui/react-textarea/) + * + * API: + * + * - [Textarea API](https://mui.com/joy-ui/api/textarea/) + */ const Textarea = React.forwardRef(function Textarea(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -344,6 +353,7 @@ Textarea.propTypes /* remove-proptypes */ = { /** * If `true`, the `input` will indicate an error. * The prop defaults to the value (`false`) inherited from the parent FormControl component. + * @default false */ error: PropTypes.bool, /** diff --git a/packages/mui-joy/src/Textarea/TextareaProps.ts b/packages/mui-joy/src/Textarea/TextareaProps.ts index 6e7679c2691a18..79e6ec874b79c7 100644 --- a/packages/mui-joy/src/Textarea/TextareaProps.ts +++ b/packages/mui-joy/src/Textarea/TextareaProps.ts @@ -53,6 +53,7 @@ export interface TextareaTypeMap

{ /** * If `true`, the `input` will indicate an error. * The prop defaults to the value (`false`) inherited from the parent FormControl component. + * @default false */ error?: boolean; /** diff --git a/packages/mui-joy/src/Tooltip/Tooltip.tsx b/packages/mui-joy/src/Tooltip/Tooltip.tsx index e99f1fcaf75dc9..a8764dda51c9c5 100644 --- a/packages/mui-joy/src/Tooltip/Tooltip.tsx +++ b/packages/mui-joy/src/Tooltip/Tooltip.tsx @@ -204,7 +204,16 @@ function composeFocusEventHandler( handler(event); }; } - +/** + * + * Demos: + * + * - [Tooltip](https://mui.com/joy-ui/react-tooltip/) + * + * API: + * + * - [Tooltip API](https://mui.com/joy-ui/api/tooltip/) + */ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) { const props = useThemeProps({ props: inProps, @@ -661,7 +670,7 @@ Tooltip.propTypes /* remove-proptypes */ = { className: PropTypes.string, /** * The color of the component. It supports those theme colors that make sense for this component. - * @default 'primary' + * @default 'neutral' */ color: PropTypes.oneOf(['danger', 'info', 'neutral', 'primary', 'success', 'warning']), /** @@ -830,7 +839,7 @@ Tooltip.propTypes /* remove-proptypes */ = { title: PropTypes.node, /** * The variant to use. - * @default 'soft' + * @default 'solid' */ variant: PropTypes.oneOf(['outlined', 'plain', 'soft', 'solid']), } as any; diff --git a/packages/mui-joy/src/Tooltip/TooltipProps.ts b/packages/mui-joy/src/Tooltip/TooltipProps.ts index 8c2c3833660f5f..cf7cd385bd258f 100644 --- a/packages/mui-joy/src/Tooltip/TooltipProps.ts +++ b/packages/mui-joy/src/Tooltip/TooltipProps.ts @@ -37,7 +37,7 @@ export interface TooltipTypeMap

{ children: React.ReactElement; /** * The color of the component. It supports those theme colors that make sense for this component. - * @default 'primary' + * @default 'neutral' */ color?: OverridableStringUnion; /** @@ -152,7 +152,7 @@ export interface TooltipTypeMap

{ title: React.ReactNode; /** * The variant to use. - * @default 'soft' + * @default 'solid' */ variant?: OverridableStringUnion; }; diff --git a/packages/mui-joy/src/Typography/Typography.tsx b/packages/mui-joy/src/Typography/Typography.tsx index 4eadcec7e7ab5e..07aa08a344f4fe 100644 --- a/packages/mui-joy/src/Typography/Typography.tsx +++ b/packages/mui-joy/src/Typography/Typography.tsx @@ -10,6 +10,7 @@ import useThemeProps from '../styles/useThemeProps'; import { useColorInversion } from '../styles/ColorInversion'; import useSlot from '../utils/useSlot'; import { getTypographyUtilityClass } from './typographyClasses'; +import { TypographySystem } from '../styles/types'; /** * @internal @@ -143,7 +144,16 @@ const defaultVariantMapping: Record = { body5: 'span', inherit: 'p', }; - +/** + * + * Demos: + * + * - [Typography](https://mui.com/joy-ui/react-typography/) + * + * API: + * + * - [Typography API](https://mui.com/joy-ui/api/typography/) + */ const Typography = React.forwardRef(function Typography(inProps, ref) { const { color: colorProp, @@ -164,7 +174,18 @@ const Typography = React.forwardRef(function Typography(inProps, ref) { gutterBottom = false, noWrap = false, level: levelProp = 'body1', - levelMapping = {}, + levelMapping = { + h1: 'h1', + h2: 'h2', + h3: 'h3', + h4: 'h4', + h5: 'h5', + h6: 'h6', + body1: 'p', + body2: 'p', + body3: 'p', + inherit: 'p', + } as Partial>, children, endDecorator, startDecorator, diff --git a/packages/mui-joy/src/index.ts b/packages/mui-joy/src/index.ts index 9dde053899e668..8919b42154d27f 100644 --- a/packages/mui-joy/src/index.ts +++ b/packages/mui-joy/src/index.ts @@ -9,15 +9,21 @@ export * from './Alert'; export { default as AspectRatio } from './AspectRatio'; export * from './AspectRatio'; +export { default as Autocomplete } from './Autocomplete'; +export * from './Autocomplete'; + +export { default as AutocompleteListbox } from './AutocompleteListbox'; +export * from './AutocompleteListbox'; + +export { default as AutocompleteOption } from './AutocompleteOption'; +export * from './AutocompleteOption'; + export { default as Avatar } from './Avatar'; export * from './Avatar'; export { default as AvatarGroup } from './AvatarGroup'; export * from './AvatarGroup'; -export { default as Autocomplete } from './Autocomplete'; -export * from './Autocomplete'; - export { default as Badge } from './Badge'; export * from './Badge'; @@ -60,9 +66,6 @@ export * from './Container'; export { default as CssBaseline } from './CssBaseline'; export * from './CssBaseline'; -export { default as ScopedCssBaseline } from './ScopedCssBaseline'; -export * from './ScopedCssBaseline'; - export { default as Divider } from './Divider'; export * from './Divider'; @@ -138,6 +141,9 @@ export * from './Radio'; export { default as RadioGroup } from './RadioGroup'; export * from './RadioGroup'; +export { default as ScopedCssBaseline } from './ScopedCssBaseline'; +export * from './ScopedCssBaseline'; + export { default as Select } from './Select'; export * from './Select';