diff --git a/docs/package.json b/docs/package.json index 29fecab5d1..a70dce7aa6 100644 --- a/docs/package.json +++ b/docs/package.json @@ -35,7 +35,7 @@ "@mui/joy": "5.0.0-beta.28", "@mui/material": "^5.15.10", "@mui/material-nextjs": "^5.15.9", - "@mui/monorepo": "github:mui/material-ui#5e4e18a10085b7e65955ca11ba6c93c838003e0c", + "@mui/monorepo": "github:mui/material-ui#ad3a9364756881fef41bf01723a886ea1a823b0d", "@mui/styles": "^5.15.9", "@mui/system": "^5.15.9", "@mui/types": "^7.2.13", diff --git a/docs/pages/base-ui/api/badge.json b/docs/pages/base-ui/api/badge.json index bd111d150b..3a82cc1245 100644 --- a/docs/pages/base-ui/api/badge.json +++ b/docs/pages/base-ui/api/badge.json @@ -20,28 +20,7 @@ }, "name": "Badge", "imports": ["import { Badge } from '@mui/base/Badge';", "import { Badge } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'span'", - "class": "base-Badge-root" - }, - { - "name": "badge", - "description": "The component that renders the badge.", - "default": "'span'", - "class": "base-Badge-badge" - } - ], - "classes": [ - { - "key": "invisible", - "className": "base-Badge-invisible", - "description": "State class applied to the badge `span` element if `invisible={true}`.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "Badge", "forwardsRefTo": "HTMLSpanElement", diff --git a/docs/pages/base-ui/api/button.json b/docs/pages/base-ui/api/button.json index 14e232edc8..194e89cc2b 100644 --- a/docs/pages/base-ui/api/button.json +++ b/docs/pages/base-ui/api/button.json @@ -21,34 +21,7 @@ }, "name": "Button", "imports": ["import { Button } from '@mui/base/Button';", "import { Button } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "props.href || props.to ? 'a' : 'button'", - "class": "base-Button-root" - } - ], - "classes": [ - { - "key": "active", - "className": "base--active", - "description": "State class applied to the root `button` element if `active={true}`.", - "isGlobal": true - }, - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root `button` element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "focusVisible", - "className": "base--focusVisible", - "description": "State class applied to the root `button` element if `focusVisible={true}`.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "Button", "forwardsRefTo": "HTMLButtonElement", diff --git a/docs/pages/base-ui/api/form-control.json b/docs/pages/base-ui/api/form-control.json index 4403030246..1eace95951 100644 --- a/docs/pages/base-ui/api/form-control.json +++ b/docs/pages/base-ui/api/form-control.json @@ -22,44 +22,7 @@ "import { FormControl } from '@mui/base/FormControl';", "import { FormControl } from '@mui/base';" ], - "classes": [ - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "error", - "className": "base--error", - "description": "State class applied to the root element if `error={true}`.", - "isGlobal": true - }, - { - "key": "filled", - "className": "base-FormControl-filled", - "description": "State class applied to the root element if the inner input has value.", - "isGlobal": false - }, - { - "key": "focused", - "className": "base--focused", - "description": "State class applied to the root element if the inner input is focused.", - "isGlobal": true - }, - { - "key": "required", - "className": "base--required", - "description": "State class applied to the root element if `required={true}`.", - "isGlobal": true - }, - { - "key": "root", - "className": "base-FormControl-root", - "description": "Class applied to the root element.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "FormControl", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/pages/base-ui/api/input.json b/docs/pages/base-ui/api/input.json index 263f1ebd9a..e8477499f6 100644 --- a/docs/pages/base-ui/api/input.json +++ b/docs/pages/base-ui/api/input.json @@ -43,82 +43,7 @@ }, "name": "Input", "imports": ["import { Input } from '@mui/base/Input';", "import { Input } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'div'", - "class": "base-Input-root" - }, - { - "name": "input", - "description": "The component that renders the input.", - "default": "'input'", - "class": "base-Input-input" - }, - { - "name": "textarea", - "description": "The component that renders the textarea.", - "default": "'textarea'", - "class": null - } - ], - "classes": [ - { - "key": "adornedEnd", - "className": "base-Input-adornedEnd", - "description": "Class name applied to the root element if `endAdornment` is provided.", - "isGlobal": false - }, - { - "key": "adornedStart", - "className": "base-Input-adornedStart", - "description": "Class name applied to the root element if `startAdornment` is provided.", - "isGlobal": false - }, - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "error", - "className": "base--error", - "description": "State class applied to the root element if `error={true}`.", - "isGlobal": true - }, - { - "key": "focused", - "className": "base--focused", - "description": "State class applied to the root element if the component is focused.", - "isGlobal": true - }, - { - "key": "formControl", - "className": "base-Input-formControl", - "description": "Class name applied to the root element if the component is a descendant of `FormControl`.", - "isGlobal": false - }, - { - "key": "inputMultiline", - "className": "base-Input-inputMultiline", - "description": "Class name applied to the input element if `multiline={true}`.", - "isGlobal": false - }, - { - "key": "inputTypeSearch", - "className": "base-Input-inputTypeSearch", - "description": "Class name applied to the input element if `type=\"search\"`.", - "isGlobal": false - }, - { - "key": "multiline", - "className": "base-Input-multiline", - "description": "Class name applied to the root element if `multiline={true}`.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "Input", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/pages/base-ui/api/menu-button.json b/docs/pages/base-ui/api/menu-button.json index c94ea4990b..0aa7dd2943 100644 --- a/docs/pages/base-ui/api/menu-button.json +++ b/docs/pages/base-ui/api/menu-button.json @@ -19,34 +19,7 @@ "import { MenuButton } from '@mui/base/MenuButton';", "import { MenuButton } from '@mui/base';" ], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'button'", - "class": "base-MenuButton-root" - } - ], - "classes": [ - { - "key": "active", - "className": "base--active", - "description": "State class applied to the root element if `active={true}`.", - "isGlobal": true - }, - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "expanded", - "className": "base--expanded", - "description": "State class applied to the root element if the associated menu is open.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "MenuButton", "forwardsRefTo": "HTMLButtonElement", diff --git a/docs/pages/base-ui/api/menu-item.json b/docs/pages/base-ui/api/menu-item.json index f0cfeb201b..5c6ae34965 100644 --- a/docs/pages/base-ui/api/menu-item.json +++ b/docs/pages/base-ui/api/menu-item.json @@ -18,28 +18,7 @@ "import { MenuItem } from '@mui/base/MenuItem';", "import { MenuItem } from '@mui/base';" ], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'li'", - "class": "base-MenuItem-root" - } - ], - "classes": [ - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root `button` element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "focusVisible", - "className": "base--focusVisible", - "description": "State class applied to the root `button` element if `focusVisible={true}`.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "MenuItem", "forwardsRefTo": "HTMLLIElement", diff --git a/docs/pages/base-ui/api/menu.json b/docs/pages/base-ui/api/menu.json index b55bbe3b42..b4e0dd2942 100644 --- a/docs/pages/base-ui/api/menu.json +++ b/docs/pages/base-ui/api/menu.json @@ -23,28 +23,7 @@ }, "name": "Menu", "imports": ["import { Menu } from '@mui/base/Menu';", "import { Menu } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the popup element.", - "default": "'div'", - "class": "base-Menu-root" - }, - { - "name": "listbox", - "description": "The component that renders the listbox.", - "default": "'ul'", - "class": "base-Menu-listbox" - } - ], - "classes": [ - { - "key": "expanded", - "className": "base--expanded", - "description": "State class applied to the root element if `open={true}`.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "Menu", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/pages/base-ui/api/modal.json b/docs/pages/base-ui/api/modal.json index 8b0cdc30a6..cee11e7ea6 100644 --- a/docs/pages/base-ui/api/modal.json +++ b/docs/pages/base-ui/api/modal.json @@ -41,27 +41,7 @@ }, "name": "Modal", "imports": ["import { Modal } from '@mui/base/Modal';", "import { Modal } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'div'", - "class": "base-Modal-root" - }, - { - "name": "backdrop", - "description": "The component that renders the backdrop.", - "class": "base-Modal-backdrop" - } - ], - "classes": [ - { - "key": "hidden", - "className": "base-Modal-hidden", - "description": "Class name applied to the root element if the `Modal` has exited.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "Modal", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/pages/base-ui/api/number-input.json b/docs/pages/base-ui/api/number-input.json index 953f4bdb2d..2d9c602d21 100644 --- a/docs/pages/base-ui/api/number-input.json +++ b/docs/pages/base-ui/api/number-input.json @@ -49,76 +49,7 @@ "import { Unstable_NumberInput as NumberInput } from '@mui/base/Unstable_NumberInput';", "import { Unstable_NumberInput as NumberInput } from '@mui/base';" ], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'div'", - "class": "base-NumberInput-root" - }, - { - "name": "input", - "description": "The component that renders the input.", - "default": "'input'", - "class": "base-NumberInput-input" - }, - { - "name": "incrementButton", - "description": "The component that renders the increment button.", - "default": "'button'", - "class": "base-NumberInput-incrementButton" - }, - { - "name": "decrementButton", - "description": "The component that renders the decrement button.", - "default": "'button'", - "class": "base-NumberInput-decrementButton" - } - ], - "classes": [ - { - "key": "adornedEnd", - "className": "base-NumberInput-adornedEnd", - "description": "Class name applied to the root element if `endAdornment` is provided.", - "isGlobal": false - }, - { - "key": "adornedStart", - "className": "base-NumberInput-adornedStart", - "description": "Class name applied to the root element if `startAdornment` is provided.", - "isGlobal": false - }, - { - "key": "disabled", - "className": "base--disabled", - "description": "Class name applied to the root element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "error", - "className": "base--error", - "description": "State class applied to the root element if `error={true}`.", - "isGlobal": true - }, - { - "key": "focused", - "className": "base--focused", - "description": "Class name applied to the root element if the component is focused.", - "isGlobal": true - }, - { - "key": "formControl", - "className": "base-NumberInput-formControl", - "description": "Class name applied to the root element if the component is a descendant of `FormControl`.", - "isGlobal": false - }, - { - "key": "readOnly", - "className": "base--readOnly", - "description": "State class applied to the root element if `readOnly={true}`.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "NumberInput", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/pages/base-ui/api/option-group.json b/docs/pages/base-ui/api/option-group.json index dbf07dc404..0c46833b13 100644 --- a/docs/pages/base-ui/api/option-group.json +++ b/docs/pages/base-ui/api/option-group.json @@ -23,34 +23,7 @@ "import { OptionGroup } from '@mui/base/OptionGroup';", "import { OptionGroup } from '@mui/base';" ], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'li'", - "class": "base-OptionGroup-root" - }, - { - "name": "label", - "description": "The component that renders the label.", - "default": "'span'", - "class": "base-OptionGroup-label" - }, - { - "name": "list", - "description": "The component that renders the list.", - "default": "'ul'", - "class": "base-OptionGroup-list" - } - ], - "classes": [ - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root `li` element if `disabled={true}`.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "OptionGroup", "forwardsRefTo": "HTMLLIElement", diff --git a/docs/pages/base-ui/api/option.json b/docs/pages/base-ui/api/option.json index e8bdb76ab6..e61e79c4ac 100644 --- a/docs/pages/base-ui/api/option.json +++ b/docs/pages/base-ui/api/option.json @@ -15,34 +15,7 @@ }, "name": "Option", "imports": ["import { Option } from '@mui/base/Option';", "import { Option } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'li'", - "class": "base-Option-root" - } - ], - "classes": [ - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root `li` element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "highlighted", - "className": "base-Option-highlighted", - "description": "State class applied to the root `li` element if `highlighted={true}`.", - "isGlobal": false - }, - { - "key": "selected", - "className": "base--selected", - "description": "State class applied to the root `li` element if `selected={true}`.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "Option", "forwardsRefTo": "HTMLLIElement", diff --git a/docs/pages/base-ui/api/popper.json b/docs/pages/base-ui/api/popper.json index 79e807c7d5..0940926d9c 100644 --- a/docs/pages/base-ui/api/popper.json +++ b/docs/pages/base-ui/api/popper.json @@ -49,14 +49,7 @@ }, "name": "Popper", "imports": ["import { Popper } from '@mui/base/Popper';", "import { Popper } from '@mui/base';"], - "classes": [ - { - "key": "root", - "className": "base-Popper-root", - "description": "Class name applied to the root element.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "Popper", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/pages/base-ui/api/popup.json b/docs/pages/base-ui/api/popup.json index d0d07b7879..10ed770fa3 100644 --- a/docs/pages/base-ui/api/popup.json +++ b/docs/pages/base-ui/api/popup.json @@ -49,22 +49,7 @@ "import { Unstable_Popup as Popup } from '@mui/base/Unstable_Popup';", "import { Unstable_Popup as Popup } from '@mui/base';" ], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'div'", - "class": "base-Popup-root" - } - ], - "classes": [ - { - "key": "open", - "className": "base--open", - "description": "Class name applied to the root element when the popup is open.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "Popup", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/pages/base-ui/api/select.json b/docs/pages/base-ui/api/select.json index a0e413aa16..e4c9ce89d8 100644 --- a/docs/pages/base-ui/api/select.json +++ b/docs/pages/base-ui/api/select.json @@ -36,52 +36,7 @@ }, "name": "Select", "imports": ["import { Select } from '@mui/base/Select';", "import { Select } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'button'", - "class": "base-Select-root" - }, - { - "name": "listbox", - "description": "The component that renders the listbox.", - "default": "'ul'", - "class": "base-Select-listbox" - }, - { - "name": "popup", - "description": "The component that wraps the popup.", - "default": "'div'", - "class": "base-Select-popup" - } - ], - "classes": [ - { - "key": "active", - "className": "base--active", - "description": "State class applied to the root `button` element if `active={true}`.", - "isGlobal": true - }, - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root `button` element and the listbox 'ul' element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "expanded", - "className": "base--expanded", - "description": "State class applied to the root `button` element if `expanded={true}`.", - "isGlobal": true - }, - { - "key": "focusVisible", - "className": "base--focusVisible", - "description": "State class applied to the root `button` element if `focusVisible={true}`.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "Select", "forwardsRefTo": "HTMLButtonElement", diff --git a/docs/pages/base-ui/api/slider.json b/docs/pages/base-ui/api/slider.json index 295d18e7bf..ccdfb1e188 100644 --- a/docs/pages/base-ui/api/slider.json +++ b/docs/pages/base-ui/api/slider.json @@ -88,117 +88,7 @@ }, "name": "Slider", "imports": ["import { Slider } from '@mui/base/Slider';", "import { Slider } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'span'", - "class": "base-Slider-root" - }, - { - "name": "track", - "description": "The component that renders the track.", - "default": "'span'", - "class": "base-Slider-track" - }, - { - "name": "rail", - "description": "The component that renders the rail.", - "default": "'span'", - "class": "base-Slider-rail" - }, - { - "name": "thumb", - "description": "The component that renders the thumb.", - "default": "'span'", - "class": "base-Slider-thumb" - }, - { - "name": "mark", - "description": "The component that renders the mark.", - "default": "'span'", - "class": "base-Slider-mark" - }, - { - "name": "markLabel", - "description": "The component that renders the mark label.", - "default": "'span'", - "class": "base-Slider-markLabel" - }, - { - "name": "valueLabel", - "description": "The component that renders the value label.", - "class": null - }, - { - "name": "input", - "description": "The component that renders the input.", - "default": "'input'", - "class": null - } - ], - "classes": [ - { - "key": "active", - "className": "base--active", - "description": "State class applied to the thumb element if it's active.", - "isGlobal": true - }, - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root and thumb element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "dragging", - "className": "base-Slider-dragging", - "description": "State class applied to the root if a thumb is being dragged.", - "isGlobal": false - }, - { - "key": "focusVisible", - "className": "base--focusVisible", - "description": "State class applied to the thumb element if keyboard focused.", - "isGlobal": true - }, - { - "key": "markActive", - "className": "base-Slider-markActive", - "description": "Class name applied to the mark element if active (depending on the value).", - "isGlobal": false - }, - { - "key": "marked", - "className": "base-Slider-marked", - "description": "Class name applied to the root element if `marks` is provided with at least one label.", - "isGlobal": false - }, - { - "key": "markLabelActive", - "className": "base-Slider-markLabelActive", - "description": "Class name applied to the mark label element if active (depending on the value).", - "isGlobal": false - }, - { - "key": "trackFalse", - "className": "base-Slider-trackFalse", - "description": "Class name applied to the root element if `track={false}`.", - "isGlobal": false - }, - { - "key": "trackInverted", - "className": "base-Slider-trackInverted", - "description": "Class name applied to the root element if `track=\"inverted\"`.", - "isGlobal": false - }, - { - "key": "vertical", - "className": "base-Slider-vertical", - "description": "Class name applied to the root element if `orientation=\"vertical\"`.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "Slider", "forwardsRefTo": "HTMLSpanElement", diff --git a/docs/pages/base-ui/api/snackbar.json b/docs/pages/base-ui/api/snackbar.json index fad38bd3ae..3fbb13ce17 100644 --- a/docs/pages/base-ui/api/snackbar.json +++ b/docs/pages/base-ui/api/snackbar.json @@ -30,14 +30,6 @@ "import { Snackbar } from '@mui/base/Snackbar';", "import { Snackbar } from '@mui/base';" ], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'div'", - "class": "base-Snackbar-root" - } - ], "classes": [], "spread": true, "muiName": "Snackbar", diff --git a/docs/pages/base-ui/api/switch.json b/docs/pages/base-ui/api/switch.json index 2f65aa0313..6cfd84a18e 100644 --- a/docs/pages/base-ui/api/switch.json +++ b/docs/pages/base-ui/api/switch.json @@ -31,58 +31,7 @@ }, "name": "Switch", "imports": ["import { Switch } from '@mui/base/Switch';", "import { Switch } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'span'", - "class": "base-Switch-root" - }, - { - "name": "input", - "description": "The component that renders the input.", - "default": "'input'", - "class": "base-Switch-input" - }, - { - "name": "thumb", - "description": "The component that renders the thumb.", - "default": "'span'", - "class": "base-Switch-thumb" - }, - { - "name": "track", - "description": "The component that renders the track.", - "default": "'span'", - "class": "base-Switch-track" - } - ], - "classes": [ - { - "key": "checked", - "className": "base--checked", - "description": "State class applied to the root element if the switch is checked", - "isGlobal": true - }, - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root element if the switch is disabled", - "isGlobal": true - }, - { - "key": "focusVisible", - "className": "base--focusVisible", - "description": "State class applied to the root element if the switch has visible focus", - "isGlobal": true - }, - { - "key": "readOnly", - "className": "base--readOnly", - "description": "Class applied to the root element if the switch is read-only", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "Switch", "forwardsRefTo": "HTMLSpanElement", diff --git a/docs/pages/base-ui/api/tab-panel.json b/docs/pages/base-ui/api/tab-panel.json index 0bf0d3c27f..d16180e7a1 100644 --- a/docs/pages/base-ui/api/tab-panel.json +++ b/docs/pages/base-ui/api/tab-panel.json @@ -17,22 +17,7 @@ "import { TabPanel } from '@mui/base/TabPanel';", "import { TabPanel } from '@mui/base';" ], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'div'", - "class": "base-TabPanel-root" - } - ], - "classes": [ - { - "key": "hidden", - "className": "base-TabPanel-hidden", - "description": "State class applied to the root `div` element if `hidden={true}`.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "TabPanel", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/pages/base-ui/api/tab.json b/docs/pages/base-ui/api/tab.json index acea228acd..a61fa0f9ae 100644 --- a/docs/pages/base-ui/api/tab.json +++ b/docs/pages/base-ui/api/tab.json @@ -21,28 +21,7 @@ }, "name": "Tab", "imports": ["import { Tab } from '@mui/base/Tab';", "import { Tab } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'button'", - "class": "base-Tab-root" - } - ], - "classes": [ - { - "key": "disabled", - "className": "base--disabled", - "description": "State class applied to the root `button` element if `disabled={true}`.", - "isGlobal": true - }, - { - "key": "selected", - "className": "base--selected", - "description": "State class applied to the root `button` element if `selected={true}`.", - "isGlobal": true - } - ], + "classes": [], "spread": true, "muiName": "Tab", "forwardsRefTo": "HTMLButtonElement", diff --git a/docs/pages/base-ui/api/table-pagination.json b/docs/pages/base-ui/api/table-pagination.json index a55babc517..8080c7ebc3 100644 --- a/docs/pages/base-ui/api/table-pagination.json +++ b/docs/pages/base-ui/api/table-pagination.json @@ -58,76 +58,7 @@ "import { TablePagination } from '@mui/base/TablePagination';", "import { TablePagination } from '@mui/base';" ], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'td'", - "class": "base-TablePagination-root" - }, - { - "name": "actions", - "description": "The component that renders the actions.", - "default": "TablePaginationActions", - "class": "base-TablePagination-actions" - }, - { - "name": "select", - "description": "The component that renders the select.", - "default": "'select'", - "class": "base-TablePagination-select" - }, - { - "name": "selectLabel", - "description": "The component that renders the select label.", - "default": "'p'", - "class": "base-TablePagination-selectLabel" - }, - { - "name": "menuItem", - "description": "The component that renders the menu item.", - "default": "'option'", - "class": "base-TablePagination-menuItem" - }, - { - "name": "displayedRows", - "description": "The component that renders the displayed rows.", - "default": "'p'", - "class": "base-TablePagination-displayedRows" - }, - { - "name": "toolbar", - "description": "The component that renders the toolbar.", - "default": "'div'", - "class": "base-TablePagination-toolbar" - }, - { - "name": "spacer", - "description": "The component that renders the spacer.", - "default": "'div'", - "class": "base-TablePagination-spacer" - } - ], - "classes": [ - { - "key": "input", - "className": "base-TablePagination-input", - "description": "Class name applied to the Select component `root` element.", - "isGlobal": false - }, - { - "key": "selectIcon", - "className": "base-TablePagination-selectIcon", - "description": "Class name applied to the Select component `icon` class.", - "isGlobal": false - }, - { - "key": "selectRoot", - "className": "base-TablePagination-selectRoot", - "description": "Class name applied to the Select component `root` element.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "TablePagination", "forwardsRefTo": "HTMLTableCellElement", diff --git a/docs/pages/base-ui/api/tabs-list.json b/docs/pages/base-ui/api/tabs-list.json index 31c7cd26cd..22d921829f 100644 --- a/docs/pages/base-ui/api/tabs-list.json +++ b/docs/pages/base-ui/api/tabs-list.json @@ -16,28 +16,7 @@ "import { TabsList } from '@mui/base/TabsList';", "import { TabsList } from '@mui/base';" ], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'div'", - "class": "base-TabsList-root" - } - ], - "classes": [ - { - "key": "horizontal", - "className": "base-TabsList-horizontal", - "description": "Class name applied to the root element if `orientation='horizontal'`.", - "isGlobal": false - }, - { - "key": "vertical", - "className": "base-TabsList-vertical", - "description": "Class name applied to the root element if `orientation='vertical'`.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "TabsList", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/pages/base-ui/api/tabs.json b/docs/pages/base-ui/api/tabs.json index 2e8837616e..25a88f6d6a 100644 --- a/docs/pages/base-ui/api/tabs.json +++ b/docs/pages/base-ui/api/tabs.json @@ -25,28 +25,7 @@ }, "name": "Tabs", "imports": ["import { Tabs } from '@mui/base/Tabs';", "import { Tabs } from '@mui/base';"], - "slots": [ - { - "name": "root", - "description": "The component that renders the root.", - "default": "'div'", - "class": "base-Tabs-root" - } - ], - "classes": [ - { - "key": "horizontal", - "className": "base-Tabs-horizontal", - "description": "Class name applied to the root element if `orientation='horizontal'`.", - "isGlobal": false - }, - { - "key": "vertical", - "className": "base-Tabs-vertical", - "description": "Class name applied to the root element if `orientation='vertical'`.", - "isGlobal": false - } - ], + "classes": [], "spread": true, "muiName": "Tabs", "forwardsRefTo": "HTMLDivElement", diff --git a/docs/translations/api-docs-base/badge/badge.json b/docs/translations/api-docs-base/badge/badge.json index 0af4baae88..7160470946 100644 --- a/docs/translations/api-docs-base/badge/badge.json +++ b/docs/translations/api-docs-base/badge/badge.json @@ -13,15 +13,5 @@ "description": "The components used for each slot inside the Badge. Either a string to use a HTML element or a component." } }, - "classDescriptions": { - "invisible": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the badge span element", - "conditions": "invisible={true}" - } - }, - "slotDescriptions": { - "badge": "The component that renders the badge.", - "root": "The component that renders the root." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/button/button.json b/docs/translations/api-docs-base/button/button.json index 44c7999074..0c88a33210 100644 --- a/docs/translations/api-docs-base/button/button.json +++ b/docs/translations/api-docs-base/button/button.json @@ -16,22 +16,5 @@ "description": "The components used for each slot inside the Button. Either a string to use a HTML element or a component." } }, - "classDescriptions": { - "active": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "active={true}" - }, - "disabled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "disabled={true}" - }, - "focusVisible": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "focusVisible={true}" - } - }, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/form-control/form-control.json b/docs/translations/api-docs-base/form-control/form-control.json index 2766bb5bca..be9ded015d 100644 --- a/docs/translations/api-docs-base/form-control/form-control.json +++ b/docs/translations/api-docs-base/form-control/form-control.json @@ -17,32 +17,5 @@ }, "value": { "description": "The value of the form element." } }, - "classDescriptions": { - "disabled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "disabled={true}" - }, - "error": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "error={true}" - }, - "filled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "the inner input has value" - }, - "focused": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "the inner input is focused" - }, - "required": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "required={true}" - }, - "root": { "description": "Class applied to the root element." } - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/input/input.json b/docs/translations/api-docs-base/input/input.json index 9038c7094c..98faf7a805 100644 --- a/docs/translations/api-docs-base/input/input.json +++ b/docs/translations/api-docs-base/input/input.json @@ -51,56 +51,5 @@ "description": "The value of the input element, required for a controlled component." } }, - "classDescriptions": { - "adornedEnd": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "endAdornment is provided" - }, - "adornedStart": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "startAdornment is provided" - }, - "disabled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "disabled={true}" - }, - "error": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "error={true}" - }, - "focused": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "the component is focused" - }, - "formControl": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "the component is a descendant of FormControl" - }, - "inputMultiline": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the input element", - "conditions": "multiline={true}" - }, - "inputTypeSearch": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the input element", - "conditions": "type=\"search\"" - }, - "multiline": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "multiline={true}" - } - }, - "slotDescriptions": { - "input": "The component that renders the input.", - "root": "The component that renders the root.", - "textarea": "The component that renders the textarea." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/menu-button/menu-button.json b/docs/translations/api-docs-base/menu-button/menu-button.json index 9b9289ad85..b8483773fb 100644 --- a/docs/translations/api-docs-base/menu-button/menu-button.json +++ b/docs/translations/api-docs-base/menu-button/menu-button.json @@ -12,22 +12,5 @@ }, "slots": { "description": "The props used for each slot inside the MenuButton." } }, - "classDescriptions": { - "active": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "active={true}" - }, - "disabled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "disabled={true}" - }, - "expanded": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "the associated menu is open" - } - }, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/menu-item/menu-item.json b/docs/translations/api-docs-base/menu-item/menu-item.json index 929f2a146e..b394c325a0 100644 --- a/docs/translations/api-docs-base/menu-item/menu-item.json +++ b/docs/translations/api-docs-base/menu-item/menu-item.json @@ -13,17 +13,5 @@ "description": "The components used for each slot inside the MenuItem. Either a string to use a HTML element or a component." } }, - "classDescriptions": { - "disabled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "disabled={true}" - }, - "focusVisible": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "focusVisible={true}" - } - }, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/menu/menu.json b/docs/translations/api-docs-base/menu/menu.json index 6c1f6d9ad3..8a099d8f0a 100644 --- a/docs/translations/api-docs-base/menu/menu.json +++ b/docs/translations/api-docs-base/menu/menu.json @@ -13,15 +13,5 @@ "description": "The components used for each slot inside the Menu. Either a string to use a HTML element or a component." } }, - "classDescriptions": { - "expanded": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "open={true}" - } - }, - "slotDescriptions": { - "listbox": "The component that renders the listbox.", - "root": "The component that renders the popup element." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/modal/modal.json b/docs/translations/api-docs-base/modal/modal.json index c11a9fd0e6..5d9fe165ef 100644 --- a/docs/translations/api-docs-base/modal/modal.json +++ b/docs/translations/api-docs-base/modal/modal.json @@ -44,15 +44,5 @@ "description": "The components used for each slot inside the Modal. Either a string to use a HTML element or a component." } }, - "classDescriptions": { - "hidden": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "the Modal has exited" - } - }, - "slotDescriptions": { - "backdrop": "The component that renders the backdrop.", - "root": "The component that renders the root." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/number-input/number-input.json b/docs/translations/api-docs-base/number-input/number-input.json index 7269152dc9..70818641c7 100644 --- a/docs/translations/api-docs-base/number-input/number-input.json +++ b/docs/translations/api-docs-base/number-input/number-input.json @@ -45,47 +45,5 @@ "step": { "description": "The amount that the value changes on each increment or decrement." }, "value": { "description": "The current value. Use when the component is controlled." } }, - "classDescriptions": { - "adornedEnd": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "endAdornment is provided" - }, - "adornedStart": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "startAdornment is provided" - }, - "disabled": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "disabled={true}" - }, - "error": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "error={true}" - }, - "focused": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "the component is focused" - }, - "formControl": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "the component is a descendant of FormControl" - }, - "readOnly": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "readOnly={true}" - } - }, - "slotDescriptions": { - "decrementButton": "The component that renders the decrement button.", - "incrementButton": "The component that renders the increment button.", - "input": "The component that renders the input.", - "root": "The component that renders the root." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/option-group/option-group.json b/docs/translations/api-docs-base/option-group/option-group.json index a448465870..b073a4d8ce 100644 --- a/docs/translations/api-docs-base/option-group/option-group.json +++ b/docs/translations/api-docs-base/option-group/option-group.json @@ -10,16 +10,5 @@ "description": "The components used for each slot inside the OptionGroup. Either a string to use a HTML element or a component." } }, - "classDescriptions": { - "disabled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root li element", - "conditions": "disabled={true}" - } - }, - "slotDescriptions": { - "label": "The component that renders the label.", - "list": "The component that renders the list.", - "root": "The component that renders the root." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/option/option.json b/docs/translations/api-docs-base/option/option.json index 2aa322918e..1d18c46e89 100644 --- a/docs/translations/api-docs-base/option/option.json +++ b/docs/translations/api-docs-base/option/option.json @@ -11,22 +11,5 @@ }, "value": { "description": "The value of the option." } }, - "classDescriptions": { - "disabled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root li element", - "conditions": "disabled={true}" - }, - "highlighted": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root li element", - "conditions": "highlighted={true}" - }, - "selected": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root li element", - "conditions": "selected={true}" - } - }, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/popper/popper.json b/docs/translations/api-docs-base/popper/popper.json index 729a6f9eeb..ae37bc6ed6 100644 --- a/docs/translations/api-docs-base/popper/popper.json +++ b/docs/translations/api-docs-base/popper/popper.json @@ -32,5 +32,5 @@ "description": "Help supporting a react-transition-group/Transition component." } }, - "classDescriptions": { "root": { "description": "Class name applied to the root element." } } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/popup/popup.json b/docs/translations/api-docs-base/popup/popup.json index c3e7496852..3b7529e404 100644 --- a/docs/translations/api-docs-base/popup/popup.json +++ b/docs/translations/api-docs-base/popup/popup.json @@ -29,12 +29,5 @@ }, "strategy": { "description": "The type of CSS position property to use (absolute or fixed)." } }, - "classDescriptions": { - "open": { - "description": "Class name applied to {{nodeName}} when {{conditions}}.", - "nodeName": "the root element", - "conditions": "the popup is open" - } - }, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/select/select.json b/docs/translations/api-docs-base/select/select.json index 1b50b4a0e5..7c87f7ad67 100644 --- a/docs/translations/api-docs-base/select/select.json +++ b/docs/translations/api-docs-base/select/select.json @@ -50,31 +50,5 @@ "description": "The selected value. Set to null to deselect all options." } }, - "classDescriptions": { - "active": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "active={true}" - }, - "disabled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element and the listbox 'ul' element", - "conditions": "disabled={true}" - }, - "expanded": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "expanded={true}" - }, - "focusVisible": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "focusVisible={true}" - } - }, - "slotDescriptions": { - "listbox": "The component that renders the listbox.", - "popup": "The component that wraps the popup.", - "root": "The component that renders the root." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/slider/slider.json b/docs/translations/api-docs-base/slider/slider.json index 229cf2f7e4..afc13eeec5 100644 --- a/docs/translations/api-docs-base/slider/slider.json +++ b/docs/translations/api-docs-base/slider/slider.json @@ -77,66 +77,5 @@ "description": "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" } }, - "classDescriptions": { - "active": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the thumb element", - "conditions": "it's active" - }, - "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" - }, - "focusVisible": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the thumb element", - "conditions": "keyboard focused" - }, - "markActive": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the mark element", - "conditions": "active (depending on the value)" - }, - "marked": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "marks is provided with at least one label" - }, - "markLabelActive": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the mark label element", - "conditions": "active (depending on the value)" - }, - "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\"" - }, - "vertical": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "orientation=\"vertical\"" - } - }, - "slotDescriptions": { - "input": "The component that renders the input.", - "mark": "The component that renders the mark.", - "markLabel": "The component that renders the mark label.", - "rail": "The component that renders the rail.", - "root": "The component that renders the root.", - "thumb": "The component that renders the thumb.", - "track": "The component that renders the track.", - "valueLabel": "The component that renders the value label." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/snackbar/snackbar.json b/docs/translations/api-docs-base/snackbar/snackbar.json index 3fc01b50d5..17deba5fb6 100644 --- a/docs/translations/api-docs-base/snackbar/snackbar.json +++ b/docs/translations/api-docs-base/snackbar/snackbar.json @@ -26,6 +26,5 @@ "description": "The components used for each slot inside the Snackbar. Either a string to use a HTML element or a component." } }, - "classDescriptions": {}, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/switch/switch.json b/docs/translations/api-docs-base/switch/switch.json index e28f6b7e92..b19b79dbe3 100644 --- a/docs/translations/api-docs-base/switch/switch.json +++ b/docs/translations/api-docs-base/switch/switch.json @@ -22,22 +22,5 @@ "description": "The components used for each slot inside the Switch. Either a string to use a HTML element or a component." } }, - "classDescriptions": { - "checked": { - "description": "State class applied to the root element if the switch is checked" - }, - "disabled": { - "description": "State class applied to the root element if the switch is disabled" - }, - "focusVisible": { - "description": "State class applied to the root element if the switch has visible focus" - }, - "readOnly": { "description": "Class applied to the root element if the switch is read-only" } - }, - "slotDescriptions": { - "input": "The component that renders the input.", - "root": "The component that renders the root.", - "thumb": "The component that renders the thumb.", - "track": "The component that renders the track." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/tab-panel/tab-panel.json b/docs/translations/api-docs-base/tab-panel/tab-panel.json index 3d6f6b40e2..ae85d2a14f 100644 --- a/docs/translations/api-docs-base/tab-panel/tab-panel.json +++ b/docs/translations/api-docs-base/tab-panel/tab-panel.json @@ -10,12 +10,5 @@ "description": "The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected. If not provided, it will fall back to the index of the panel. It is recommended to explicitly provide it, as it's required for the tab panel to be rendered on the server." } }, - "classDescriptions": { - "hidden": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root div element", - "conditions": "hidden={true}" - } - }, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/tab/tab.json b/docs/translations/api-docs-base/tab/tab.json index 62ba08a1fd..1c6aae5d92 100644 --- a/docs/translations/api-docs-base/tab/tab.json +++ b/docs/translations/api-docs-base/tab/tab.json @@ -14,17 +14,5 @@ "description": "You can provide your own value. Otherwise, it falls back to the child position index." } }, - "classDescriptions": { - "disabled": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "disabled={true}" - }, - "selected": { - "description": "State class applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root button element", - "conditions": "selected={true}" - } - }, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/table-pagination/table-pagination.json b/docs/translations/api-docs-base/table-pagination/table-pagination.json index 23c97b8c5e..d5e60c5f92 100644 --- a/docs/translations/api-docs-base/table-pagination/table-pagination.json +++ b/docs/translations/api-docs-base/table-pagination/table-pagination.json @@ -41,28 +41,5 @@ "description": "The components used for each slot inside the TablePagination. Either a string to use a HTML element or a component." } }, - "classDescriptions": { - "input": { - "description": "Class name applied to {{nodeName}}.", - "nodeName": "the Select component root element" - }, - "selectIcon": { - "description": "Class name applied to {{nodeName}}.", - "nodeName": "the Select component icon class" - }, - "selectRoot": { - "description": "Class name applied to {{nodeName}}.", - "nodeName": "the Select component root element" - } - }, - "slotDescriptions": { - "actions": "The component that renders the actions.", - "displayedRows": "The component that renders the displayed rows.", - "menuItem": "The component that renders the menu item.", - "root": "The component that renders the root.", - "select": "The component that renders the select.", - "selectLabel": "The component that renders the select label.", - "spacer": "The component that renders the spacer.", - "toolbar": "The component that renders the toolbar." - } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/tabs-list/tabs-list.json b/docs/translations/api-docs-base/tabs-list/tabs-list.json index bafdd7f891..1691d3facc 100644 --- a/docs/translations/api-docs-base/tabs-list/tabs-list.json +++ b/docs/translations/api-docs-base/tabs-list/tabs-list.json @@ -7,17 +7,5 @@ "description": "The components used for each slot inside the TabsList. Either a string to use a HTML element or a component." } }, - "classDescriptions": { - "horizontal": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "orientation='horizontal'" - }, - "vertical": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "orientation='vertical'" - } - }, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/docs/translations/api-docs-base/tabs/tabs.json b/docs/translations/api-docs-base/tabs/tabs.json index fbc2bb7af1..02473bac15 100644 --- a/docs/translations/api-docs-base/tabs/tabs.json +++ b/docs/translations/api-docs-base/tabs/tabs.json @@ -19,17 +19,5 @@ "description": "The value of the currently selected Tab. If you don't want any selected Tab, you can set this prop to null." } }, - "classDescriptions": { - "horizontal": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "orientation='horizontal'" - }, - "vertical": { - "description": "Class name applied to {{nodeName}} if {{conditions}}.", - "nodeName": "the root element", - "conditions": "orientation='vertical'" - } - }, - "slotDescriptions": { "root": "The component that renders the root." } + "classDescriptions": {} } diff --git a/package.json b/package.json index 97cd70c89a..ba3074b583 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "@mui/internal-scripts": "^1.0.1", "@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/fb183624/@mui/internal-test-utils", "@mui/material": "^5.15.10", - "@mui/monorepo": "github:mui/material-ui#5e4e18a10085b7e65955ca11ba6c93c838003e0c", + "@mui/monorepo": "github:mui/material-ui#ad3a9364756881fef41bf01723a886ea1a823b0d", "@mui/utils": "^5.15.11", "@next/eslint-plugin-next": "^14.1.3", "@octokit/rest": "^20.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ff89b96941..1d7a837bce 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -112,8 +112,8 @@ importers: specifier: ^5.15.10 version: 5.15.10(@emotion/react@11.11.4)(@emotion/styled@11.11.0)(@types/react@18.2.65)(react-dom@18.2.0)(react@18.2.0) '@mui/monorepo': - specifier: github:mui/material-ui#5e4e18a10085b7e65955ca11ba6c93c838003e0c - version: github.com/mui/material-ui/5e4e18a10085b7e65955ca11ba6c93c838003e0c + specifier: github:mui/material-ui#ad3a9364756881fef41bf01723a886ea1a823b0d + version: github.com/mui/material-ui/ad3a9364756881fef41bf01723a886ea1a823b0d '@mui/utils': specifier: ^5.15.11 version: 5.15.11(@types/react@18.2.65)(react@18.2.0) @@ -412,8 +412,8 @@ importers: specifier: ^5.15.9 version: 5.15.9(@emotion/cache@11.11.0)(@emotion/server@11.11.0)(@mui/material@5.15.10)(@types/react@18.2.65)(next@14.1.3)(react@18.2.0) '@mui/monorepo': - specifier: github:mui/material-ui#5e4e18a10085b7e65955ca11ba6c93c838003e0c - version: github.com/mui/material-ui/5e4e18a10085b7e65955ca11ba6c93c838003e0c + specifier: github:mui/material-ui#ad3a9364756881fef41bf01723a886ea1a823b0d + version: github.com/mui/material-ui/ad3a9364756881fef41bf01723a886ea1a823b0d '@mui/styles': specifier: ^5.15.9 version: 5.15.10(@types/react@18.2.65)(react@18.2.0) @@ -3604,6 +3604,23 @@ packages: react: 18.2.0 react-is: 18.2.0 + /@netlify/functions@2.6.0: + resolution: {integrity: sha512-vU20tij0fb4nRGACqb+5SQvKd50JYyTyEhQetCMHdakcJFzjLDivvRR16u1G2Oy4A7xNAtGJF1uz8reeOtTVcQ==} + engines: {node: '>=14.0.0'} + dependencies: + '@netlify/serverless-functions-api': 1.14.0 + + /@netlify/node-cookies@0.1.0: + resolution: {integrity: sha512-OAs1xG+FfLX0LoRASpqzVntVV/RpYkgpI0VrUnw2u0Q1qiZUzcPffxRK8HF3gc4GjuhG5ahOEMJ9bswBiZPq0g==} + engines: {node: ^14.16.0 || >=16.0.0} + + /@netlify/serverless-functions-api@1.14.0: + resolution: {integrity: sha512-HUNETLNvNiC2J+SB/YuRwJA9+agPrc0azSoWVk8H85GC+YE114hcS5JW+dstpKwVerp2xILE3vNWN7IMXP5Q5Q==} + engines: {node: ^14.18.0 || >=16.0.0} + dependencies: + '@netlify/node-cookies': 0.1.0 + urlpattern-polyfill: 8.0.2 + /@next/env@14.1.3: resolution: {integrity: sha512-VhgXTvrgeBRxNPjyfBsDIMvgsKDxjlpw4IAUsHCX8Gjl1vtHUYRT3+xfQ/wwvLPDd/6kqfLqk9Pt4+7gysuCKQ==} dev: false @@ -16621,6 +16638,9 @@ packages: /url-template@2.0.8: resolution: {integrity: sha512-XdVKMF4SJ0nP/O7XIPB0JwAEuT9lDIYnNsK8yGVe43y0AWoKeJNdv3ZNWh7ksJ6KqQFjOO6ox/VEitLnaVNufw==} + /urlpattern-polyfill@8.0.2: + resolution: {integrity: sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ==} + /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -17322,13 +17342,14 @@ packages: - utf-8-validate dev: true - github.com/mui/material-ui/5e4e18a10085b7e65955ca11ba6c93c838003e0c: - resolution: {tarball: https://codeload.github.com/mui/material-ui/tar.gz/5e4e18a10085b7e65955ca11ba6c93c838003e0c} + github.com/mui/material-ui/ad3a9364756881fef41bf01723a886ea1a823b0d: + resolution: {tarball: https://codeload.github.com/mui/material-ui/tar.gz/ad3a9364756881fef41bf01723a886ea1a823b0d} name: '@mui/monorepo' - version: 5.15.11 + version: 5.15.12 requiresBuild: true dependencies: '@googleapis/sheets': 5.0.5 + '@netlify/functions': 2.6.0 '@slack/bolt': 3.17.1 execa: 8.0.1 google-auth-library: 9.6.3 diff --git a/scripts/buildApiDocs/config/baseUi/generateBaseUiApiPages.ts b/scripts/buildApiDocs/config/baseUi/generateBaseUiApiPages.ts index 6bebe3ee4a..735fc99358 100644 --- a/scripts/buildApiDocs/config/baseUi/generateBaseUiApiPages.ts +++ b/scripts/buildApiDocs/config/baseUi/generateBaseUiApiPages.ts @@ -5,9 +5,11 @@ import { getHeaders } from '@mui/internal-markdown'; import findPagesMarkdown from '@mui-internal/api-docs-builder/utils/findPagesMarkdown'; import { writePrettifiedFile } from '@mui-internal/api-docs-builder/buildApiUtils'; +const REPO_ROOT = path.resolve(__dirname, '../../../..'); + export async function generateBaseUIApiPages() { await Promise.all( - findPagesMarkdown().map(async (markdown) => { + findPagesMarkdown(path.join(REPO_ROOT, 'docs/data')).map(async (markdown) => { const markdownContent = fs.readFileSync(markdown.filename, 'utf8'); const markdownHeaders = getHeaders(markdownContent) as any; const pathnameTokens = markdown.pathname.split('/'); diff --git a/scripts/buildApiDocs/config/baseUi/getBaseUiComponentInfo.ts b/scripts/buildApiDocs/config/baseUi/getBaseUiComponentInfo.ts index beaed3cb91..af6c8b7b25 100644 --- a/scripts/buildApiDocs/config/baseUi/getBaseUiComponentInfo.ts +++ b/scripts/buildApiDocs/config/baseUi/getBaseUiComponentInfo.ts @@ -10,9 +10,11 @@ import { } from '@mui-internal/api-docs-builder/buildApiUtils'; import findPagesMarkdown from '@mui-internal/api-docs-builder/utils/findPagesMarkdown'; +const REPO_ROOT = path.resolve(__dirname, '../../../..'); + export function getBaseUiDemos(name: string) { // resolve demos, so that we can getch the API url - const allMarkdowns = findPagesMarkdown() + const allMarkdowns = findPagesMarkdown(path.join(REPO_ROOT, 'docs/data')) .filter((markdown) => { return markdown.filename.match(/[\\/]data[\\/]base[\\/]/); }) diff --git a/scripts/buildApiDocs/config/baseUi/getBaseUiHookInfo.ts b/scripts/buildApiDocs/config/baseUi/getBaseUiHookInfo.ts index ee659c238e..f2788bbb55 100644 --- a/scripts/buildApiDocs/config/baseUi/getBaseUiHookInfo.ts +++ b/scripts/buildApiDocs/config/baseUi/getBaseUiHookInfo.ts @@ -12,6 +12,8 @@ import { } from '@mui-internal/api-docs-builder/buildApiUtils'; import findPagesMarkdown from '@mui-internal/api-docs-builder/utils/findPagesMarkdown'; +const REPO_ROOT = path.resolve(__dirname, '../../../..'); + export function getBaseUiHookInfo(filename: string): HookInfo { const { name } = extractPackageFile(filename); let srcInfo: null | ReturnType = null; @@ -19,7 +21,7 @@ export function getBaseUiHookInfo(filename: string): HookInfo { throw new Error(`Could not find the hook name from: ${filename}`); } - const allMarkdowns = findPagesMarkdown() + const allMarkdowns = findPagesMarkdown(path.join(REPO_ROOT, 'docs/data')) .filter((markdown) => { return markdown.filename.match(/[\\/]data[\\/]base[\\/]/); }) diff --git a/scripts/buildApiDocs/config/baseUi/projectSettings.ts b/scripts/buildApiDocs/config/baseUi/projectSettings.ts index b9b64d42ad..1ed41fd3a8 100644 --- a/scripts/buildApiDocs/config/baseUi/projectSettings.ts +++ b/scripts/buildApiDocs/config/baseUi/projectSettings.ts @@ -39,6 +39,7 @@ export const projectSettings: ProjectSettings = { return source; }, skipAnnotatingComponentDefinition: true, + skipSlotsAndClasses: true, generateJsonFileOnly: true, translationPagesDirectory: 'docs/translations/api-docs-base', generateClassName: generateUtilityClass,