From 44ffe25dc3f0250aed3f0053a5d68bfaae267d56 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 27 Nov 2023 15:55:52 +0100 Subject: [PATCH] [Portal] Improve docs for container prop (#39180) Signed-off-by: Olivier Tassinari Co-authored-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com> --- .../AutocompleteIntroduction/css/index.js | 4 +- .../AutocompleteIntroduction/css/index.tsx | 4 +- .../AutocompleteIntroduction/system/index.js | 4 +- .../AutocompleteIntroduction/system/index.tsx | 4 +- .../autocomplete/ControlledStates.js | 4 +- .../autocomplete/ControlledStates.tsx | 4 +- .../autocomplete/UseAutocomplete.js | 4 +- .../autocomplete/UseAutocomplete.tsx | 4 +- .../autocomplete/UseAutocompletePopper.js | 4 +- .../autocomplete/UseAutocompletePopper.tsx | 4 +- .../base/components/badge/AccessibleBadges.js | 4 +- .../components/badge/AccessibleBadges.tsx | 4 +- docs/data/base/components/badge/BadgeMax.js | 2 +- docs/data/base/components/badge/BadgeMax.tsx | 2 +- .../base/components/badge/BadgeVisibility.js | 4 +- .../base/components/badge/BadgeVisibility.tsx | 4 +- .../base/components/badge/ShowZeroBadge.js | 2 +- .../base/components/badge/ShowZeroBadge.tsx | 2 +- .../badge/UnstyledBadge/css/index.js | 2 +- .../badge/UnstyledBadge/css/index.tsx | 2 +- .../badge/UnstyledBadge/system/index.js | 2 +- .../badge/UnstyledBadge/system/index.tsx | 2 +- .../UnstyledBadgeIntroduction/css/index.js | 2 +- .../UnstyledBadgeIntroduction/css/index.tsx | 2 +- .../UnstyledBadgeIntroduction/system/index.js | 2 +- .../system/index.tsx | 2 +- .../components/button/UnstyledButtonCustom.js | 2 +- .../button/UnstyledButtonCustom.tsx | 2 +- .../UnstyledButtonIntroduction/css/index.js | 2 +- .../UnstyledButtonIntroduction/css/index.tsx | 2 +- .../system/index.js | 2 +- .../system/index.tsx | 2 +- .../button/UnstyledButtonsDisabledFocus.js | 2 +- .../button/UnstyledButtonsDisabledFocus.tsx | 2 +- .../UnstyledButtonsDisabledFocusCustom.js | 2 +- .../UnstyledButtonsDisabledFocusCustom.tsx | 2 +- .../button/UnstyledButtonsSimple.js | 2 +- .../button/UnstyledButtonsSimple.tsx | 2 +- .../components/button/UnstyledButtonsSpan.js | 2 +- .../components/button/UnstyledButtonsSpan.tsx | 2 +- .../components/button/UnstyledLinkButton.js | 2 +- .../components/button/UnstyledLinkButton.tsx | 2 +- docs/data/base/components/button/UseButton.js | 2 +- .../data/base/components/button/UseButton.tsx | 2 +- .../BasicFormControl/css/index.js | 2 +- .../BasicFormControl/css/index.tsx | 2 +- .../BasicFormControl/system/index.js | 2 +- .../BasicFormControl/system/index.tsx | 2 +- .../form-control/FormControlFunctionChild.js | 2 +- .../form-control/FormControlFunctionChild.tsx | 2 +- .../base/components/input/InputAdornments.js | 2 +- .../base/components/input/InputAdornments.tsx | 2 +- .../base/components/input/InputMultiline.js | 2 +- .../base/components/input/InputMultiline.tsx | 2 +- .../input/InputMultilineAutosize.js | 2 +- .../input/InputMultilineAutosize.tsx | 2 +- .../input/UnstyledInputBasic/css/index.js | 2 +- .../input/UnstyledInputBasic/css/index.tsx | 2 +- .../input/UnstyledInputBasic/system/index.js | 2 +- .../input/UnstyledInputBasic/system/index.tsx | 2 +- .../UnstyledInputIntroduction/css/index.js | 2 +- .../UnstyledInputIntroduction/css/index.tsx | 2 +- .../UnstyledInputIntroduction/system/index.js | 2 +- .../system/index.tsx | 2 +- docs/data/base/components/input/UseInput.js | 2 +- docs/data/base/components/input/UseInput.tsx | 2 +- .../menu/MenuIntroduction/css/index.js | 10 +- .../menu/MenuIntroduction/css/index.tsx | 10 +- .../menu/MenuIntroduction/system/index.js | 4 +- .../menu/MenuIntroduction/system/index.tsx | 4 +- .../components/menu/MenuSimple/css/index.js | 10 +- .../components/menu/MenuSimple/css/index.tsx | 10 +- .../menu/MenuSimple/system/index.js | 4 +- .../menu/MenuSimple/system/index.tsx | 4 +- docs/data/base/components/menu/UseMenu.js | 12 +- docs/data/base/components/menu/UseMenu.tsx | 12 +- .../base/components/menu/WrappedMenuItems.js | 4 +- .../base/components/menu/WrappedMenuItems.tsx | 4 +- .../base/components/modal/KeepMountedModal.js | 127 +++++++++--------- .../components/modal/KeepMountedModal.tsx | 117 ++++++++-------- .../base/components/modal/ModalUnstyled.js | 126 +++++++++-------- .../base/components/modal/ModalUnstyled.tsx | 116 ++++++++-------- .../data/base/components/modal/NestedModal.js | 71 +++++----- .../base/components/modal/NestedModal.tsx | 71 +++++----- .../data/base/components/modal/ServerModal.js | 72 +++++----- .../base/components/modal/ServerModal.tsx | 74 +++++----- .../data/base/components/modal/SpringModal.js | 120 ++++++++--------- .../base/components/modal/SpringModal.tsx | 120 ++++++++--------- .../base/components/modal/TransitionsModal.js | 120 ++++++++--------- .../components/modal/TransitionsModal.tsx | 110 +++++++-------- docs/data/base/components/modal/UseModal.js | 110 ++++++++------- docs/data/base/components/modal/UseModal.tsx | 110 ++++++++------- docs/data/base/components/modal/modal.md | 8 +- .../number-input/NumberInputAdornments.js | 2 +- .../number-input/NumberInputAdornments.tsx | 2 +- .../NumberInputBasic/css/index.js | 2 +- .../NumberInputBasic/css/index.tsx | 2 +- .../NumberInputBasic/system/index.js | 2 +- .../NumberInputBasic/system/index.tsx | 2 +- .../NumberInputIntroduction/css/index.js | 2 +- .../NumberInputIntroduction/css/index.tsx | 2 +- .../NumberInputIntroduction/system/index.js | 2 +- .../NumberInputIntroduction/system/index.tsx | 2 +- .../components/number-input/QuantityInput.js | 4 +- .../components/number-input/QuantityInput.tsx | 4 +- .../components/number-input/UseNumberInput.js | 4 +- .../number-input/UseNumberInput.tsx | 4 +- .../popper/UnstyledPopperBasic/css/index.js | 6 +- .../popper/UnstyledPopperBasic/css/index.tsx | 6 +- .../UnstyledPopperBasic/system/index.js | 4 +- .../UnstyledPopperBasic/system/index.tsx | 4 +- .../base/components/popup/AnimatedPopup.js | 4 +- .../base/components/popup/AnimatedPopup.tsx | 4 +- .../components/popup/DisabledPortalPopup.js | 4 +- .../components/popup/DisabledPortalPopup.tsx | 4 +- docs/data/base/components/popup/Placement.js | 2 +- docs/data/base/components/popup/Placement.tsx | 2 +- .../data/base/components/popup/SimplePopup.js | 4 +- .../base/components/popup/SimplePopup.tsx | 4 +- .../UnstyledPopupIntroduction/css/index.js | 8 +- .../UnstyledPopupIntroduction/css/index.tsx | 8 +- .../UnstyledPopupIntroduction/system/index.js | 4 +- .../system/index.tsx | 4 +- .../base/components/portal/SimplePortal.js | 2 +- .../base/components/portal/SimplePortal.tsx | 2 +- .../portal/SimplePortal.tsx.preview | 2 +- docs/data/base/components/portal/portal.md | 15 ++- .../select/UnstyledSelectBasic/css/index.js | 6 +- .../select/UnstyledSelectBasic/css/index.tsx | 6 +- .../UnstyledSelectBasic/system/index.js | 4 +- .../UnstyledSelectBasic/system/index.tsx | 4 +- .../select/UnstyledSelectControlled.js | 6 +- .../select/UnstyledSelectControlled.tsx | 6 +- .../select/UnstyledSelectCustomRenderValue.js | 4 +- .../UnstyledSelectCustomRenderValue.tsx | 4 +- .../components/select/UnstyledSelectForm.js | 6 +- .../components/select/UnstyledSelectForm.tsx | 6 +- .../select/UnstyledSelectGrouping.js | 4 +- .../select/UnstyledSelectGrouping.tsx | 4 +- .../UnstyledSelectIntroduction/css/index.js | 4 +- .../UnstyledSelectIntroduction/css/index.tsx | 4 +- .../system/index.js | 4 +- .../system/index.tsx | 4 +- .../select/UnstyledSelectMultiple.js | 4 +- .../select/UnstyledSelectMultiple.tsx | 4 +- .../select/UnstyledSelectObjectValues.js | 6 +- .../select/UnstyledSelectObjectValues.tsx | 6 +- .../select/UnstyledSelectObjectValuesForm.js | 8 +- .../select/UnstyledSelectObjectValuesForm.tsx | 8 +- .../select/UnstyledSelectRichOptions.js | 4 +- .../select/UnstyledSelectRichOptions.tsx | 4 +- docs/data/base/components/select/UseSelect.js | 4 +- .../data/base/components/select/UseSelect.tsx | 4 +- .../snackbar/TransitionComponentSnackbar.js | 4 +- .../snackbar/TransitionComponentSnackbar.tsx | 4 +- .../snackbar/UnstyledSnackbar/css/index.js | 8 +- .../snackbar/UnstyledSnackbar/css/index.tsx | 8 +- .../snackbar/UnstyledSnackbar/system/index.js | 4 +- .../UnstyledSnackbar/system/index.tsx | 4 +- .../UnstyledSnackbarIntroduction/css/index.js | 10 +- .../css/index.tsx | 10 +- .../system/index.js | 6 +- .../system/index.tsx | 6 +- .../base/components/snackbar/UseSnackbar.js | 4 +- .../base/components/snackbar/UseSnackbar.tsx | 4 +- .../TableCustomized/css/index.js | 2 +- .../TableCustomized/css/index.tsx | 2 +- .../TableCustomized/system/index.js | 2 +- .../TableCustomized/system/index.tsx | 2 +- .../table-pagination/TableUnstyled.js | 2 +- .../table-pagination/TableUnstyled.tsx | 2 +- .../css/index.js | 2 +- .../css/index.tsx | 2 +- .../system/index.js | 2 +- .../system/index.tsx | 2 +- .../UnstyledTabsIntroduction/system/index.js | 2 +- .../UnstyledTabsIntroduction/system/index.tsx | 2 +- .../textarea-autosize/EmptyTextarea.js | 2 +- .../textarea-autosize/EmptyTextarea.tsx | 2 +- .../textarea-autosize/MaxHeightTextarea.js | 2 +- .../textarea-autosize/MaxHeightTextarea.tsx | 2 +- .../textarea-autosize/MinHeightTextarea.js | 2 +- .../textarea-autosize/MinHeightTextarea.tsx | 2 +- .../UnstyledTextarea/css/index.js | 4 +- .../UnstyledTextarea/css/index.tsx | 4 +- .../UnstyledTextarea/system/index.js | 2 +- .../UnstyledTextarea/system/index.tsx | 2 +- .../UnstyledTextareaIntroduction/css/index.js | 2 +- .../css/index.tsx | 2 +- .../system/index.js | 2 +- .../system/index.tsx | 2 +- .../accessibility/KeyboardNavigation.js | 6 +- .../accessibility/KeyboardNavigation.tsx | 6 +- .../data/joy/components/modal/ServerModal.tsx | 4 +- .../material/components/modal/ServerModal.tsx | 2 +- .../components/portal/SimplePortal.js | 29 ---- .../components/portal/SimplePortal.tsx | 29 ---- .../portal/SimplePortal.tsx.preview | 12 -- docs/pages/base-theme.css | 22 +-- docs/pages/experiments/base/listbox.tsx | 2 +- docs/pages/experiments/base/tabs.tsx | 2 +- .../productBaseUI/BaseUIThemesDemo.tsx | 4 +- .../components/BaseButtonDemo.tsx | 18 +-- .../productBaseUI/components/BaseMenuDemo.tsx | 82 +++++------ .../productBaseUI/components/BaseTabsDemo.tsx | 56 ++++---- .../src/modules/components/MarkdownElement.js | 2 +- .../api-docs-base/modal/modal.json | 2 +- .../api-docs-base/popper/popper.json | 2 +- .../api-docs-base/portal/portal.json | 2 +- .../api-docs-joy/drawer/drawer.json | 2 +- .../api-docs-joy/modal/modal.json | 2 +- docs/translations/api-docs/modal/modal.json | 2 +- docs/translations/api-docs/popper/popper.json | 2 +- .../api-docs/use-modal/use-modal.json | 2 +- packages/mui-base/src/Modal/Modal.tsx | 3 + packages/mui-base/src/Modal/Modal.types.ts | 3 + packages/mui-base/src/Popper/Popper.tsx | 3 + packages/mui-base/src/Popper/Popper.types.ts | 3 + packages/mui-base/src/Portal/Portal.tsx | 3 + packages/mui-base/src/Portal/Portal.types.ts | 3 + .../src/unstable_useModal/useModal.types.ts | 3 + packages/mui-joy/src/Drawer/Drawer.tsx | 3 + packages/mui-joy/src/Modal/Modal.tsx | 3 + packages/mui-material/src/Modal/Modal.d.ts | 3 + packages/mui-material/src/Modal/Modal.js | 3 + packages/mui-material/src/Popper/Popper.tsx | 3 + 226 files changed, 1190 insertions(+), 1243 deletions(-) delete mode 100644 docs/data/material/components/portal/SimplePortal.js delete mode 100644 docs/data/material/components/portal/SimplePortal.tsx delete mode 100644 docs/data/material/components/portal/SimplePortal.tsx.preview diff --git a/docs/data/base/components/autocomplete/AutocompleteIntroduction/css/index.js b/docs/data/base/components/autocomplete/AutocompleteIntroduction/css/index.js index c7dbada292900e..588d75658c9695 100644 --- a/docs/data/base/components/autocomplete/AutocompleteIntroduction/css/index.js +++ b/docs/data/base/components/autocomplete/AutocompleteIntroduction/css/index.js @@ -188,7 +188,7 @@ function Styles() {