@mui/material 9.0.0-alpha.2 → 9.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.mts +0 -14
- package/Accordion/Accordion.d.ts +0 -14
- package/Accordion/Accordion.js +3 -25
- package/Accordion/Accordion.mjs +3 -25
- package/AccordionSummary/AccordionSummary.js +1 -1
- package/AccordionSummary/AccordionSummary.mjs +1 -1
- package/AccordionSummary/accordionSummaryClasses.d.mts +0 -5
- package/AccordionSummary/accordionSummaryClasses.d.ts +0 -5
- package/AccordionSummary/accordionSummaryClasses.js +1 -1
- package/AccordionSummary/accordionSummaryClasses.mjs +1 -1
- package/Alert/Alert.d.mts +0 -23
- package/Alert/Alert.d.ts +0 -23
- package/Alert/Alert.js +4 -36
- package/Alert/Alert.mjs +4 -36
- package/Alert/alertClasses.d.mts +0 -72
- package/Alert/alertClasses.d.ts +0 -72
- package/Alert/alertClasses.js +1 -1
- package/Alert/alertClasses.mjs +1 -1
- package/Autocomplete/Autocomplete.d.mts +26 -60
- package/Autocomplete/Autocomplete.d.ts +26 -60
- package/Autocomplete/Autocomplete.js +76 -119
- package/Autocomplete/Autocomplete.mjs +76 -119
- package/Avatar/Avatar.d.mts +0 -8
- package/Avatar/Avatar.d.ts +0 -8
- package/Avatar/Avatar.js +13 -35
- package/Avatar/Avatar.mjs +13 -35
- package/AvatarGroup/AvatarGroup.d.mts +0 -15
- package/AvatarGroup/AvatarGroup.d.ts +0 -15
- package/AvatarGroup/AvatarGroup.js +1 -18
- package/AvatarGroup/AvatarGroup.mjs +1 -18
- package/Backdrop/Backdrop.d.mts +1 -31
- package/Backdrop/Backdrop.d.ts +1 -31
- package/Backdrop/Backdrop.js +2 -42
- package/Backdrop/Backdrop.mjs +2 -42
- package/Badge/Badge.d.mts +0 -20
- package/Badge/Badge.d.ts +0 -20
- package/Badge/Badge.js +2 -35
- package/Badge/Badge.mjs +2 -35
- package/Box/Box.d.mts +1 -0
- package/Box/Box.d.ts +1 -0
- package/Button/Button.d.mts +1 -0
- package/Button/Button.d.ts +1 -0
- package/Button/Button.js +6 -6
- package/Button/Button.mjs +6 -6
- package/Button/buttonClasses.d.mts +0 -132
- package/Button/buttonClasses.d.ts +0 -132
- package/Button/buttonClasses.js +1 -1
- package/Button/buttonClasses.mjs +1 -1
- package/ButtonBase/ButtonBase.js +16 -2
- package/ButtonBase/ButtonBase.mjs +16 -2
- package/CHANGELOG.md +191 -0
- package/CardHeader/CardHeader.js +5 -1
- package/CardHeader/CardHeader.mjs +5 -1
- package/CircularProgress/CircularProgress.js +2 -2
- package/CircularProgress/CircularProgress.mjs +2 -2
- package/CircularProgress/circularProgressClasses.d.mts +0 -8
- package/CircularProgress/circularProgressClasses.d.ts +0 -8
- package/CircularProgress/circularProgressClasses.js +1 -1
- package/CircularProgress/circularProgressClasses.mjs +1 -1
- package/Divider/Divider.d.mts +1 -6
- package/Divider/Divider.d.ts +1 -6
- package/Divider/Divider.js +2 -18
- package/Divider/Divider.mjs +2 -18
- package/Divider/dividerClasses.d.mts +0 -4
- package/Divider/dividerClasses.d.ts +0 -4
- package/Divider/dividerClasses.js +1 -1
- package/Divider/dividerClasses.mjs +1 -1
- package/FormControlLabel/FormControlLabel.d.mts +1 -14
- package/FormControlLabel/FormControlLabel.d.ts +1 -14
- package/FormControlLabel/FormControlLabel.js +1 -13
- package/FormControlLabel/FormControlLabel.mjs +1 -13
- package/Input/Input.js +2 -1
- package/Input/Input.mjs +2 -1
- package/List/List.d.mts +1 -0
- package/List/List.d.ts +1 -0
- package/ListItemButton/ListItemButton.d.mts +1 -0
- package/ListItemButton/ListItemButton.d.ts +1 -0
- package/ListItemIcon/ListItemIcon.d.mts +1 -0
- package/ListItemIcon/ListItemIcon.d.ts +1 -0
- package/ListItemText/ListItemText.d.mts +1 -0
- package/ListItemText/ListItemText.d.ts +1 -0
- package/ListItemText/ListItemText.js +5 -1
- package/ListItemText/ListItemText.mjs +5 -1
- package/ListSubheader/ListSubheader.d.mts +1 -0
- package/ListSubheader/ListSubheader.d.ts +1 -0
- package/Menu/Menu.d.mts +0 -13
- package/Menu/Menu.d.ts +0 -13
- package/Menu/Menu.js +5 -44
- package/Menu/Menu.mjs +5 -44
- package/MenuItem/MenuItem.js +21 -1
- package/MenuItem/MenuItem.mjs +23 -1
- package/MenuList/MenuList.js +77 -109
- package/MenuList/MenuList.mjs +77 -109
- package/MobileStepper/MobileStepper.d.mts +0 -5
- package/MobileStepper/MobileStepper.d.ts +0 -5
- package/MobileStepper/MobileStepper.js +1 -10
- package/MobileStepper/MobileStepper.mjs +1 -10
- package/Paper/Paper.d.mts +1 -0
- package/Paper/Paper.d.ts +1 -0
- package/Popover/Popover.d.mts +4 -48
- package/Popover/Popover.d.ts +4 -48
- package/Popover/Popover.js +4 -64
- package/Popover/Popover.mjs +4 -64
- package/Popper/Popper.d.mts +0 -17
- package/Popper/Popper.d.ts +0 -17
- package/Popper/Popper.js +2 -26
- package/Popper/Popper.mjs +2 -26
- package/Popper/index.d.mts +1 -0
- package/Popper/index.d.ts +1 -0
- package/Popper/index.js +11 -2
- package/Popper/index.mjs +1 -0
- package/Select/SelectInput.js +50 -55
- package/Select/SelectInput.mjs +47 -52
- package/Select/index.d.mts +1 -0
- package/Select/index.d.ts +1 -0
- package/Select/index.js +12 -0
- package/Select/index.mjs +1 -0
- package/Select/utils/SelectFocusSourceContext.d.mts +4 -0
- package/Select/utils/SelectFocusSourceContext.d.ts +4 -0
- package/Select/utils/SelectFocusSourceContext.js +19 -0
- package/Select/utils/SelectFocusSourceContext.mjs +13 -0
- package/Select/utils/areEqualValues.d.mts +1 -0
- package/Select/utils/areEqualValues.d.ts +1 -0
- package/Select/utils/areEqualValues.js +14 -0
- package/Select/utils/areEqualValues.mjs +8 -0
- package/Select/utils/getOpenInteractionType.d.mts +1 -0
- package/Select/utils/getOpenInteractionType.d.ts +1 -0
- package/Select/utils/getOpenInteractionType.js +18 -0
- package/Select/utils/getOpenInteractionType.mjs +12 -0
- package/Select/utils/index.d.mts +4 -0
- package/Select/utils/index.d.ts +4 -0
- package/Select/utils/index.js +40 -0
- package/Select/utils/index.mjs +4 -0
- package/Select/utils/isEmpty.d.mts +1 -0
- package/Select/utils/isEmpty.d.ts +1 -0
- package/Select/utils/isEmpty.js +9 -0
- package/Select/utils/isEmpty.mjs +3 -0
- package/Slider/Slider.d.mts +109 -77
- package/Slider/Slider.d.ts +109 -77
- package/Slider/Slider.js +42 -119
- package/Slider/Slider.mjs +42 -119
- package/Slider/sliderClasses.d.mts +7 -7
- package/Slider/sliderClasses.d.ts +7 -7
- package/Slider/useSlider.js +50 -14
- package/Slider/useSlider.mjs +50 -14
- package/Snackbar/Snackbar.d.mts +1 -27
- package/Snackbar/Snackbar.d.ts +1 -27
- package/Snackbar/Snackbar.js +5 -58
- package/Snackbar/Snackbar.mjs +5 -58
- package/SpeedDial/SpeedDial.d.mts +0 -13
- package/SpeedDial/SpeedDial.d.ts +0 -13
- package/SpeedDial/SpeedDial.js +15 -40
- package/SpeedDial/SpeedDial.mjs +15 -40
- package/SpeedDialAction/SpeedDialAction.d.mts +0 -28
- package/SpeedDialAction/SpeedDialAction.d.ts +0 -28
- package/SpeedDialAction/SpeedDialAction.js +5 -46
- package/SpeedDialAction/SpeedDialAction.mjs +5 -46
- package/Step/Step.js +7 -5
- package/Step/Step.mjs +7 -5
- package/StepButton/StepButton.js +16 -6
- package/StepButton/StepButton.mjs +16 -6
- package/StepConnector/StepConnector.js +2 -2
- package/StepConnector/StepConnector.mjs +2 -2
- package/StepContent/StepContent.js +2 -2
- package/StepContent/StepContent.mjs +2 -2
- package/StepLabel/StepLabel.js +2 -2
- package/StepLabel/StepLabel.mjs +2 -2
- package/Stepper/Stepper.js +44 -7
- package/Stepper/Stepper.mjs +44 -7
- package/Stepper/StepperContext.d.mts +7 -0
- package/Stepper/StepperContext.d.ts +7 -0
- package/Stepper/StepperContext.js +2 -1
- package/Stepper/StepperContext.mjs +1 -0
- package/Stepper/index.d.mts +0 -1
- package/Stepper/index.d.ts +0 -1
- package/Tab/Tab.js +0 -1
- package/Tab/Tab.mjs +0 -1
- package/TablePagination/TablePagination.d.mts +1 -1
- package/TablePagination/TablePagination.d.ts +1 -1
- package/TablePagination/TablePagination.js +4 -2
- package/TablePagination/TablePagination.mjs +4 -2
- package/Tabs/Tabs.d.mts +2 -33
- package/Tabs/Tabs.d.ts +2 -33
- package/Tabs/Tabs.js +54 -135
- package/Tabs/Tabs.mjs +54 -135
- package/TextField/TextField.d.mts +6 -49
- package/TextField/TextField.d.ts +6 -49
- package/TextField/TextField.js +18 -53
- package/TextField/TextField.mjs +18 -53
- package/Tooltip/Tooltip.d.mts +1 -55
- package/Tooltip/Tooltip.d.ts +1 -55
- package/Tooltip/Tooltip.js +9 -87
- package/Tooltip/Tooltip.mjs +9 -87
- package/Typography/Typography.d.mts +1 -6
- package/Typography/Typography.d.ts +1 -6
- package/Typography/Typography.js +3 -19
- package/Typography/Typography.mjs +3 -19
- package/Typography/typographyClasses.d.mts +0 -5
- package/Typography/typographyClasses.d.ts +0 -5
- package/Typography/typographyClasses.js +1 -1
- package/Typography/typographyClasses.mjs +1 -1
- package/index.d.mts +0 -2
- package/index.d.ts +0 -2
- package/index.js +1 -9
- package/index.mjs +1 -2
- package/locale/amET.js +4 -1
- package/locale/amET.mjs +3 -1
- package/locale/arEG.js +4 -1
- package/locale/arEG.mjs +3 -1
- package/locale/arSA.js +4 -1
- package/locale/arSA.mjs +3 -1
- package/locale/arSD.js +4 -1
- package/locale/arSD.mjs +3 -1
- package/locale/beBY.js +4 -1
- package/locale/beBY.mjs +3 -1
- package/locale/bnBD.js +4 -1
- package/locale/bnBD.mjs +3 -1
- package/locale/caES.js +4 -1
- package/locale/caES.mjs +3 -1
- package/locale/csCZ.js +4 -1
- package/locale/csCZ.mjs +3 -1
- package/locale/daDK.js +4 -1
- package/locale/daDK.mjs +3 -1
- package/locale/deDE.js +4 -1
- package/locale/deDE.mjs +3 -1
- package/locale/elGR.js +4 -1
- package/locale/elGR.mjs +3 -1
- package/locale/esES.js +4 -1
- package/locale/esES.mjs +3 -1
- package/locale/etEE.js +4 -1
- package/locale/etEE.mjs +3 -1
- package/locale/faIR.js +4 -1
- package/locale/faIR.mjs +3 -1
- package/locale/fiFI.js +4 -1
- package/locale/fiFI.mjs +3 -1
- package/locale/frFR.js +4 -1
- package/locale/frFR.mjs +3 -1
- package/locale/heIL.js +4 -1
- package/locale/heIL.mjs +3 -1
- package/locale/hiIN.js +4 -1
- package/locale/hiIN.mjs +3 -1
- package/locale/hrHR.js +5 -1
- package/locale/hrHR.mjs +4 -1
- package/locale/isIS.js +4 -1
- package/locale/isIS.mjs +3 -1
- package/locale/itIT.js +4 -1
- package/locale/itIT.mjs +3 -1
- package/locale/jaJP.js +4 -1
- package/locale/jaJP.mjs +3 -1
- package/locale/khKH.js +4 -1
- package/locale/khKH.mjs +3 -1
- package/locale/kkKZ.js +4 -1
- package/locale/kkKZ.mjs +3 -1
- package/locale/koKR.js +4 -1
- package/locale/koKR.mjs +3 -1
- package/locale/kuCKB.js +4 -1
- package/locale/kuCKB.mjs +3 -1
- package/locale/kuLatn.js +4 -1
- package/locale/kuLatn.mjs +3 -1
- package/locale/mkMK.js +5 -1
- package/locale/mkMK.mjs +4 -1
- package/locale/msMS.js +5 -1
- package/locale/msMS.mjs +4 -1
- package/locale/myMY.js +5 -1
- package/locale/myMY.mjs +4 -1
- package/locale/nbNO.js +4 -1
- package/locale/nbNO.mjs +3 -1
- package/locale/neNP.js +5 -1
- package/locale/neNP.mjs +4 -1
- package/locale/nlNL.js +4 -1
- package/locale/nlNL.mjs +3 -1
- package/locale/nnNO.js +4 -1
- package/locale/nnNO.mjs +3 -1
- package/locale/plPL.js +4 -1
- package/locale/plPL.mjs +3 -1
- package/locale/psAF.js +4 -1
- package/locale/psAF.mjs +3 -1
- package/locale/ptBR.js +4 -1
- package/locale/ptBR.mjs +3 -1
- package/locale/ptPT.js +4 -1
- package/locale/ptPT.mjs +3 -1
- package/locale/roRO.js +4 -1
- package/locale/roRO.mjs +3 -1
- package/locale/ruRU.js +4 -1
- package/locale/ruRU.mjs +3 -1
- package/locale/siLK.js +4 -1
- package/locale/siLK.mjs +3 -1
- package/locale/skSK.js +4 -1
- package/locale/skSK.mjs +3 -1
- package/locale/srRS.js +5 -1
- package/locale/srRS.mjs +4 -1
- package/locale/svSE.js +4 -1
- package/locale/svSE.mjs +3 -1
- package/locale/thTH.js +4 -1
- package/locale/thTH.mjs +3 -1
- package/locale/tlTL.js +5 -1
- package/locale/tlTL.mjs +4 -1
- package/locale/trTR.js +4 -1
- package/locale/trTR.mjs +3 -1
- package/locale/ukUA.js +4 -1
- package/locale/ukUA.mjs +3 -1
- package/locale/urPK.js +4 -1
- package/locale/urPK.mjs +3 -1
- package/locale/utils/buildFormatNumber.d.mts +2 -0
- package/locale/utils/buildFormatNumber.d.ts +2 -0
- package/locale/utils/buildFormatNumber.js +23 -0
- package/locale/utils/buildFormatNumber.mjs +17 -0
- package/locale/viVN.js +4 -1
- package/locale/viVN.mjs +3 -1
- package/locale/zhCN.js +4 -1
- package/locale/zhCN.mjs +3 -1
- package/locale/zhHK.js +4 -1
- package/locale/zhHK.mjs +3 -1
- package/locale/zhTW.js +4 -1
- package/locale/zhTW.mjs +3 -1
- package/package.json +236 -236
- package/styles/components.d.mts +0 -5
- package/styles/components.d.ts +0 -5
- package/styles/overrides.d.mts +0 -2
- package/styles/overrides.d.ts +0 -2
- package/styles/props.d.mts +0 -2
- package/styles/props.d.ts +0 -2
- package/themeCssVarsAugmentation/index.js +5 -0
- package/themeCssVarsAugmentation/index.mjs +5 -0
- package/useAutocomplete/useAutocomplete.d.mts +0 -12
- package/useAutocomplete/useAutocomplete.d.ts +0 -12
- package/useAutocomplete/useAutocomplete.js +53 -28
- package/useAutocomplete/useAutocomplete.mjs +53 -28
- package/utils/index.d.mts +2 -0
- package/utils/index.d.ts +2 -0
- package/utils/index.js +14 -0
- package/utils/index.mjs +2 -0
- package/utils/useRovingTabIndex.d.mts +2 -0
- package/utils/useRovingTabIndex.d.ts +2 -0
- package/utils/useRovingTabIndex.js +9 -0
- package/utils/useRovingTabIndex.mjs +2 -0
- package/version/index.js +2 -2
- package/version/index.mjs +2 -2
- package/GridLegacy/GridLegacy.d.mts +0 -160
- package/GridLegacy/GridLegacy.d.ts +0 -160
- package/GridLegacy/GridLegacy.js +0 -601
- package/GridLegacy/GridLegacy.mjs +0 -588
- package/GridLegacy/GridLegacyContext.js +0 -17
- package/GridLegacy/GridLegacyContext.mjs +0 -12
- package/GridLegacy/gridLegacyClasses.d.mts +0 -48
- package/GridLegacy/gridLegacyClasses.d.ts +0 -48
- package/GridLegacy/gridLegacyClasses.js +0 -27
- package/GridLegacy/gridLegacyClasses.mjs +0 -19
- package/GridLegacy/index.d.mts +0 -4
- package/GridLegacy/index.d.ts +0 -4
- package/GridLegacy/index.js +0 -35
- package/GridLegacy/index.mjs +0 -3
package/styles/components.d.mts
CHANGED
|
@@ -227,11 +227,6 @@ export interface Components<Theme = unknown> {
|
|
|
227
227
|
styleOverrides?: ComponentsOverrides<Theme>['MuiFormLabel'] | undefined;
|
|
228
228
|
variants?: ComponentsVariants<Theme>['MuiFormLabel'] | undefined;
|
|
229
229
|
} | undefined;
|
|
230
|
-
MuiGridLegacy?: {
|
|
231
|
-
defaultProps?: ComponentsProps['MuiGridLegacy'] | undefined;
|
|
232
|
-
styleOverrides?: ComponentsOverrides<Theme>['MuiGridLegacy'] | undefined;
|
|
233
|
-
variants?: ComponentsVariants<Theme>['MuiGridLegacy'] | undefined;
|
|
234
|
-
} | undefined;
|
|
235
230
|
MuiGrid?: {
|
|
236
231
|
defaultProps?: ComponentsProps['MuiGrid'] | undefined;
|
|
237
232
|
styleOverrides?: ComponentsOverrides<Theme>['MuiGrid'] | undefined;
|
package/styles/components.d.ts
CHANGED
|
@@ -227,11 +227,6 @@ export interface Components<Theme = unknown> {
|
|
|
227
227
|
styleOverrides?: ComponentsOverrides<Theme>['MuiFormLabel'] | undefined;
|
|
228
228
|
variants?: ComponentsVariants<Theme>['MuiFormLabel'] | undefined;
|
|
229
229
|
} | undefined;
|
|
230
|
-
MuiGridLegacy?: {
|
|
231
|
-
defaultProps?: ComponentsProps['MuiGridLegacy'] | undefined;
|
|
232
|
-
styleOverrides?: ComponentsOverrides<Theme>['MuiGridLegacy'] | undefined;
|
|
233
|
-
variants?: ComponentsVariants<Theme>['MuiGridLegacy'] | undefined;
|
|
234
|
-
} | undefined;
|
|
235
230
|
MuiGrid?: {
|
|
236
231
|
defaultProps?: ComponentsProps['MuiGrid'] | undefined;
|
|
237
232
|
styleOverrides?: ComponentsOverrides<Theme>['MuiGrid'] | undefined;
|
package/styles/overrides.d.mts
CHANGED
|
@@ -44,7 +44,6 @@ import { FormControlLabelClassKey } from "../FormControlLabel/index.mjs";
|
|
|
44
44
|
import { FormGroupClassKey } from "../FormGroup/index.mjs";
|
|
45
45
|
import { FormHelperTextClassKey } from "../FormHelperText/index.mjs";
|
|
46
46
|
import { FormLabelClassKey } from "../FormLabel/index.mjs";
|
|
47
|
-
import { GridLegacyClassKey } from "../GridLegacy/index.mjs";
|
|
48
47
|
import { GridClassKey } from "../Grid/index.mjs";
|
|
49
48
|
import { IconButtonClassKey } from "../IconButton/index.mjs";
|
|
50
49
|
import { IconClassKey } from "../Icon/index.mjs";
|
|
@@ -168,7 +167,6 @@ export interface ComponentNameToClassKey {
|
|
|
168
167
|
MuiFormGroup: FormGroupClassKey;
|
|
169
168
|
MuiFormHelperText: FormHelperTextClassKey;
|
|
170
169
|
MuiFormLabel: FormLabelClassKey;
|
|
171
|
-
MuiGridLegacy: GridLegacyClassKey;
|
|
172
170
|
MuiGrid: GridClassKey;
|
|
173
171
|
MuiIcon: IconClassKey;
|
|
174
172
|
MuiIconButton: IconButtonClassKey;
|
package/styles/overrides.d.ts
CHANGED
|
@@ -44,7 +44,6 @@ import { FormControlLabelClassKey } from "../FormControlLabel/index.js";
|
|
|
44
44
|
import { FormGroupClassKey } from "../FormGroup/index.js";
|
|
45
45
|
import { FormHelperTextClassKey } from "../FormHelperText/index.js";
|
|
46
46
|
import { FormLabelClassKey } from "../FormLabel/index.js";
|
|
47
|
-
import { GridLegacyClassKey } from "../GridLegacy/index.js";
|
|
48
47
|
import { GridClassKey } from "../Grid/index.js";
|
|
49
48
|
import { IconButtonClassKey } from "../IconButton/index.js";
|
|
50
49
|
import { IconClassKey } from "../Icon/index.js";
|
|
@@ -168,7 +167,6 @@ export interface ComponentNameToClassKey {
|
|
|
168
167
|
MuiFormGroup: FormGroupClassKey;
|
|
169
168
|
MuiFormHelperText: FormHelperTextClassKey;
|
|
170
169
|
MuiFormLabel: FormLabelClassKey;
|
|
171
|
-
MuiGridLegacy: GridLegacyClassKey;
|
|
172
170
|
MuiGrid: GridClassKey;
|
|
173
171
|
MuiIcon: IconClassKey;
|
|
174
172
|
MuiIconButton: IconButtonClassKey;
|
package/styles/props.d.mts
CHANGED
|
@@ -42,7 +42,6 @@ import { FormControlProps } from "../FormControl/index.mjs";
|
|
|
42
42
|
import { FormGroupProps } from "../FormGroup/index.mjs";
|
|
43
43
|
import { FormHelperTextProps } from "../FormHelperText/index.mjs";
|
|
44
44
|
import { FormLabelProps } from "../FormLabel/index.mjs";
|
|
45
|
-
import { GridLegacyProps } from "../GridLegacy/index.mjs";
|
|
46
45
|
import { GridProps } from "../Grid/index.mjs";
|
|
47
46
|
import { IconButtonProps } from "../IconButton/index.mjs";
|
|
48
47
|
import { IconProps } from "../Icon/index.mjs";
|
|
@@ -163,7 +162,6 @@ export interface ComponentsPropsList {
|
|
|
163
162
|
MuiFormGroup: FormGroupProps;
|
|
164
163
|
MuiFormHelperText: FormHelperTextProps;
|
|
165
164
|
MuiFormLabel: FormLabelProps;
|
|
166
|
-
MuiGridLegacy: GridLegacyProps;
|
|
167
165
|
MuiGrid: GridProps;
|
|
168
166
|
MuiImageList: ImageListProps;
|
|
169
167
|
MuiImageListItem: ImageListItemProps;
|
package/styles/props.d.ts
CHANGED
|
@@ -42,7 +42,6 @@ import { FormControlProps } from "../FormControl/index.js";
|
|
|
42
42
|
import { FormGroupProps } from "../FormGroup/index.js";
|
|
43
43
|
import { FormHelperTextProps } from "../FormHelperText/index.js";
|
|
44
44
|
import { FormLabelProps } from "../FormLabel/index.js";
|
|
45
|
-
import { GridLegacyProps } from "../GridLegacy/index.js";
|
|
46
45
|
import { GridProps } from "../Grid/index.js";
|
|
47
46
|
import { IconButtonProps } from "../IconButton/index.js";
|
|
48
47
|
import { IconProps } from "../Icon/index.js";
|
|
@@ -163,7 +162,6 @@ export interface ComponentsPropsList {
|
|
|
163
162
|
MuiFormGroup: FormGroupProps;
|
|
164
163
|
MuiFormHelperText: FormHelperTextProps;
|
|
165
164
|
MuiFormLabel: FormLabelProps;
|
|
166
|
-
MuiGridLegacy: GridLegacyProps;
|
|
167
165
|
MuiGrid: GridProps;
|
|
168
166
|
MuiImageList: ImageListProps;
|
|
169
167
|
MuiImageListItem: ImageListItemProps;
|
|
@@ -346,12 +346,6 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
|
|
|
346
346
|
* @returns props that should be spread on the popup icon
|
|
347
347
|
*/
|
|
348
348
|
getPopupIndicatorProps: () => React.HTMLAttributes<HTMLButtonElement>;
|
|
349
|
-
/**
|
|
350
|
-
* @deprecated Use `getItemProps` instead
|
|
351
|
-
*
|
|
352
|
-
* A tag props getter.
|
|
353
|
-
*/
|
|
354
|
-
getTagProps: AutocompleteGetTagProps;
|
|
355
349
|
/**
|
|
356
350
|
* Resolver for the listbox component's props.
|
|
357
351
|
* @returns props that should be spread on the listbox component
|
|
@@ -406,12 +400,6 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
|
|
|
406
400
|
* Index of the focused item for the component.
|
|
407
401
|
*/
|
|
408
402
|
focusedItem: number;
|
|
409
|
-
/**
|
|
410
|
-
* @deprecated Use `focusedItem` instead
|
|
411
|
-
*
|
|
412
|
-
* Index of the focused tag for the component.
|
|
413
|
-
*/
|
|
414
|
-
focusedTag: number;
|
|
415
403
|
/**
|
|
416
404
|
* The options to render.
|
|
417
405
|
* - If `groupBy` is provided, the options are grouped and represented as `AutocompleteGroupedOption<Value>[]`.
|
|
@@ -346,12 +346,6 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
|
|
|
346
346
|
* @returns props that should be spread on the popup icon
|
|
347
347
|
*/
|
|
348
348
|
getPopupIndicatorProps: () => React.HTMLAttributes<HTMLButtonElement>;
|
|
349
|
-
/**
|
|
350
|
-
* @deprecated Use `getItemProps` instead
|
|
351
|
-
*
|
|
352
|
-
* A tag props getter.
|
|
353
|
-
*/
|
|
354
|
-
getTagProps: AutocompleteGetTagProps;
|
|
355
349
|
/**
|
|
356
350
|
* Resolver for the listbox component's props.
|
|
357
351
|
* @returns props that should be spread on the listbox component
|
|
@@ -406,12 +400,6 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
|
|
|
406
400
|
* Index of the focused item for the component.
|
|
407
401
|
*/
|
|
408
402
|
focusedItem: number;
|
|
409
|
-
/**
|
|
410
|
-
* @deprecated Use `focusedItem` instead
|
|
411
|
-
*
|
|
412
|
-
* Index of the focused tag for the component.
|
|
413
|
-
*/
|
|
414
|
-
focusedTag: number;
|
|
415
403
|
/**
|
|
416
404
|
* The options to render.
|
|
417
405
|
* - If `groupBy` is provided, the options are grouped and represented as `AutocompleteGroupedOption<Value>[]`.
|
|
@@ -64,6 +64,7 @@ const defaultFilterOptions = createFilterOptions();
|
|
|
64
64
|
// Number of options to jump in list box when `Page Up` and `Page Down` keys are used.
|
|
65
65
|
const pageSize = 5;
|
|
66
66
|
const defaultIsActiveElementInListbox = listboxRef => listboxRef.current !== null && listboxRef.current.parentElement?.contains(document.activeElement);
|
|
67
|
+
const defaultIsOptionEqualToValue = (option, value) => option === value;
|
|
67
68
|
const MULTIPLE_DEFAULT_VALUE = [];
|
|
68
69
|
function getInputValue(value, multiple, getOptionLabel, renderValue) {
|
|
69
70
|
if (multiple || value == null || renderValue) {
|
|
@@ -102,7 +103,7 @@ function useAutocomplete(props) {
|
|
|
102
103
|
id: idProp,
|
|
103
104
|
includeInputInList = false,
|
|
104
105
|
inputValue: inputValueProp,
|
|
105
|
-
isOptionEqualToValue =
|
|
106
|
+
isOptionEqualToValue = defaultIsOptionEqualToValue,
|
|
106
107
|
multiple = false,
|
|
107
108
|
onChange,
|
|
108
109
|
onClose,
|
|
@@ -134,6 +135,7 @@ function useAutocomplete(props) {
|
|
|
134
135
|
const firstFocus = React.useRef(true);
|
|
135
136
|
const inputRef = React.useRef(null);
|
|
136
137
|
const listboxRef = React.useRef(null);
|
|
138
|
+
const windowLostFocus = React.useRef(false);
|
|
137
139
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
138
140
|
const [focusedItem, setFocusedItem] = React.useState(-1);
|
|
139
141
|
const defaultHighlighted = autoHighlight ? 0 : -1;
|
|
@@ -179,8 +181,30 @@ function useAutocomplete(props) {
|
|
|
179
181
|
const [inputPristine, setInputPristine] = React.useState(true);
|
|
180
182
|
const inputValueIsSelectedValue = !multiple && value != null && inputValue === getOptionLabel(value);
|
|
181
183
|
const popupOpen = open && !readOnly;
|
|
184
|
+
const selectedValues = React.useMemo(() => {
|
|
185
|
+
if (multiple) {
|
|
186
|
+
return value;
|
|
187
|
+
}
|
|
188
|
+
if (value != null) {
|
|
189
|
+
return [value];
|
|
190
|
+
}
|
|
191
|
+
return [];
|
|
192
|
+
}, [multiple, value]);
|
|
193
|
+
const selectedValuesSet = React.useMemo(() => {
|
|
194
|
+
// Fast path for the default strict equality comparator to avoid O(n^2) option checks.
|
|
195
|
+
if (isOptionEqualToValue !== defaultIsOptionEqualToValue || selectedValues.length === 0) {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
return new Set(selectedValues);
|
|
199
|
+
}, [isOptionEqualToValue, selectedValues]);
|
|
200
|
+
const isOptionSelected = React.useCallback(option => {
|
|
201
|
+
if (selectedValuesSet) {
|
|
202
|
+
return selectedValuesSet.has(option);
|
|
203
|
+
}
|
|
204
|
+
return selectedValues.some(value2 => value2 != null && isOptionEqualToValue(option, value2));
|
|
205
|
+
}, [isOptionEqualToValue, selectedValues, selectedValuesSet]);
|
|
182
206
|
const filteredOptions = popupOpen ? filterOptions(options.filter(option => {
|
|
183
|
-
if (filterSelectedOptions && (
|
|
207
|
+
if (filterSelectedOptions && isOptionSelected(option)) {
|
|
184
208
|
return false;
|
|
185
209
|
}
|
|
186
210
|
return true;
|
|
@@ -213,9 +237,7 @@ function useAutocomplete(props) {
|
|
|
213
237
|
if (itemToFocus === -1) {
|
|
214
238
|
inputRef.current.focus();
|
|
215
239
|
} else {
|
|
216
|
-
|
|
217
|
-
const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
|
|
218
|
-
anchorEl.querySelector(`[${indexType}="${itemToFocus}"]`).focus();
|
|
240
|
+
anchorEl.querySelector(`[data-item-index="${itemToFocus}"]`).focus();
|
|
219
241
|
}
|
|
220
242
|
});
|
|
221
243
|
|
|
@@ -498,6 +520,21 @@ function useAutocomplete(props) {
|
|
|
498
520
|
syncHighlightedIndex();
|
|
499
521
|
}
|
|
500
522
|
}, [syncHighlightedIndex, filteredOptionsChanged, popupOpen, disableCloseOnSelect]);
|
|
523
|
+
|
|
524
|
+
// Listen for browser window blur to detect when the user switches tabs or windows.
|
|
525
|
+
// This helps prevent the popup from reopening automatically when the window regains focus.
|
|
526
|
+
React.useEffect(() => {
|
|
527
|
+
if (typeof window === 'undefined') {
|
|
528
|
+
return undefined;
|
|
529
|
+
}
|
|
530
|
+
const handleWindowBlur = () => {
|
|
531
|
+
windowLostFocus.current = true;
|
|
532
|
+
};
|
|
533
|
+
window.addEventListener('blur', handleWindowBlur);
|
|
534
|
+
return () => {
|
|
535
|
+
window.removeEventListener('blur', handleWindowBlur);
|
|
536
|
+
};
|
|
537
|
+
}, []);
|
|
501
538
|
const handleOpen = event => {
|
|
502
539
|
if (open) {
|
|
503
540
|
return;
|
|
@@ -571,10 +608,7 @@ function useAutocomplete(props) {
|
|
|
571
608
|
if (direction === 'next' && nextFocus === value.length || direction === 'previous' && nextFocus === -1) {
|
|
572
609
|
return -1;
|
|
573
610
|
}
|
|
574
|
-
|
|
575
|
-
// Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is removed.
|
|
576
|
-
const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
|
|
577
|
-
const option = anchorEl.querySelector(`[${indexType}="${nextFocus}"]`);
|
|
611
|
+
const option = anchorEl.querySelector(`[data-item-index="${nextFocus}"]`);
|
|
578
612
|
|
|
579
613
|
// Same logic as MenuList.js
|
|
580
614
|
if (!option || !option.hasAttribute('tabindex') || option.disabled || option.getAttribute('aria-disabled') === 'true') {
|
|
@@ -833,6 +867,14 @@ function useAutocomplete(props) {
|
|
|
833
867
|
// Ensure DOM focus lands on the input
|
|
834
868
|
focusItem(-1);
|
|
835
869
|
}
|
|
870
|
+
|
|
871
|
+
// If the window previously lost focus while the popup was open,
|
|
872
|
+
// ignore this focus event to prevent unintended reopening.
|
|
873
|
+
// Reset the flag so normal focus behavior resumes.
|
|
874
|
+
if (windowLostFocus.current) {
|
|
875
|
+
windowLostFocus.current = false;
|
|
876
|
+
return;
|
|
877
|
+
}
|
|
836
878
|
if (openOnFocus && !ignoreFocus.current) {
|
|
837
879
|
handleOpen(event);
|
|
838
880
|
}
|
|
@@ -1023,11 +1065,7 @@ function useAutocomplete(props) {
|
|
|
1023
1065
|
...(multiple && {
|
|
1024
1066
|
key: index
|
|
1025
1067
|
}),
|
|
1026
|
-
|
|
1027
|
-
'data-item-index': index
|
|
1028
|
-
} : {
|
|
1029
|
-
'data-tag-index': index
|
|
1030
|
-
}),
|
|
1068
|
+
'data-item-index': index,
|
|
1031
1069
|
tabIndex: -1,
|
|
1032
1070
|
...(!readOnly && {
|
|
1033
1071
|
onDelete: multiple ? handleItemDelete(index) : handleSingleItemDelete
|
|
@@ -1038,17 +1076,6 @@ function useAutocomplete(props) {
|
|
|
1038
1076
|
type: 'button',
|
|
1039
1077
|
onClick: handlePopupIndicator
|
|
1040
1078
|
}),
|
|
1041
|
-
// deprecated
|
|
1042
|
-
getTagProps: ({
|
|
1043
|
-
index
|
|
1044
|
-
}) => ({
|
|
1045
|
-
key: index,
|
|
1046
|
-
'data-tag-index': index,
|
|
1047
|
-
tabIndex: -1,
|
|
1048
|
-
...(!readOnly && {
|
|
1049
|
-
onDelete: handleItemDelete(index)
|
|
1050
|
-
})
|
|
1051
|
-
}),
|
|
1052
1079
|
getListboxProps: () => ({
|
|
1053
1080
|
role: 'listbox',
|
|
1054
1081
|
id: `${id}-listbox`,
|
|
@@ -1064,7 +1091,7 @@ function useAutocomplete(props) {
|
|
|
1064
1091
|
index,
|
|
1065
1092
|
option
|
|
1066
1093
|
}) => {
|
|
1067
|
-
const selected = (
|
|
1094
|
+
const selected = isOptionSelected(option);
|
|
1068
1095
|
const disabled = getOptionDisabled ? getOptionDisabled(option) : false;
|
|
1069
1096
|
return {
|
|
1070
1097
|
key: getOptionKey?.(option) ?? getOptionLabel(option),
|
|
@@ -1089,8 +1116,6 @@ function useAutocomplete(props) {
|
|
|
1089
1116
|
anchorEl,
|
|
1090
1117
|
setAnchorEl,
|
|
1091
1118
|
focusedItem,
|
|
1092
|
-
// deprecated
|
|
1093
|
-
focusedTag: focusedItem,
|
|
1094
1119
|
groupedOptions
|
|
1095
1120
|
};
|
|
1096
1121
|
}
|
|
@@ -56,6 +56,7 @@ const defaultFilterOptions = createFilterOptions();
|
|
|
56
56
|
// Number of options to jump in list box when `Page Up` and `Page Down` keys are used.
|
|
57
57
|
const pageSize = 5;
|
|
58
58
|
const defaultIsActiveElementInListbox = listboxRef => listboxRef.current !== null && listboxRef.current.parentElement?.contains(document.activeElement);
|
|
59
|
+
const defaultIsOptionEqualToValue = (option, value) => option === value;
|
|
59
60
|
const MULTIPLE_DEFAULT_VALUE = [];
|
|
60
61
|
function getInputValue(value, multiple, getOptionLabel, renderValue) {
|
|
61
62
|
if (multiple || value == null || renderValue) {
|
|
@@ -94,7 +95,7 @@ function useAutocomplete(props) {
|
|
|
94
95
|
id: idProp,
|
|
95
96
|
includeInputInList = false,
|
|
96
97
|
inputValue: inputValueProp,
|
|
97
|
-
isOptionEqualToValue =
|
|
98
|
+
isOptionEqualToValue = defaultIsOptionEqualToValue,
|
|
98
99
|
multiple = false,
|
|
99
100
|
onChange,
|
|
100
101
|
onClose,
|
|
@@ -126,6 +127,7 @@ function useAutocomplete(props) {
|
|
|
126
127
|
const firstFocus = React.useRef(true);
|
|
127
128
|
const inputRef = React.useRef(null);
|
|
128
129
|
const listboxRef = React.useRef(null);
|
|
130
|
+
const windowLostFocus = React.useRef(false);
|
|
129
131
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
130
132
|
const [focusedItem, setFocusedItem] = React.useState(-1);
|
|
131
133
|
const defaultHighlighted = autoHighlight ? 0 : -1;
|
|
@@ -171,8 +173,30 @@ function useAutocomplete(props) {
|
|
|
171
173
|
const [inputPristine, setInputPristine] = React.useState(true);
|
|
172
174
|
const inputValueIsSelectedValue = !multiple && value != null && inputValue === getOptionLabel(value);
|
|
173
175
|
const popupOpen = open && !readOnly;
|
|
176
|
+
const selectedValues = React.useMemo(() => {
|
|
177
|
+
if (multiple) {
|
|
178
|
+
return value;
|
|
179
|
+
}
|
|
180
|
+
if (value != null) {
|
|
181
|
+
return [value];
|
|
182
|
+
}
|
|
183
|
+
return [];
|
|
184
|
+
}, [multiple, value]);
|
|
185
|
+
const selectedValuesSet = React.useMemo(() => {
|
|
186
|
+
// Fast path for the default strict equality comparator to avoid O(n^2) option checks.
|
|
187
|
+
if (isOptionEqualToValue !== defaultIsOptionEqualToValue || selectedValues.length === 0) {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
return new Set(selectedValues);
|
|
191
|
+
}, [isOptionEqualToValue, selectedValues]);
|
|
192
|
+
const isOptionSelected = React.useCallback(option => {
|
|
193
|
+
if (selectedValuesSet) {
|
|
194
|
+
return selectedValuesSet.has(option);
|
|
195
|
+
}
|
|
196
|
+
return selectedValues.some(value2 => value2 != null && isOptionEqualToValue(option, value2));
|
|
197
|
+
}, [isOptionEqualToValue, selectedValues, selectedValuesSet]);
|
|
174
198
|
const filteredOptions = popupOpen ? filterOptions(options.filter(option => {
|
|
175
|
-
if (filterSelectedOptions && (
|
|
199
|
+
if (filterSelectedOptions && isOptionSelected(option)) {
|
|
176
200
|
return false;
|
|
177
201
|
}
|
|
178
202
|
return true;
|
|
@@ -205,9 +229,7 @@ function useAutocomplete(props) {
|
|
|
205
229
|
if (itemToFocus === -1) {
|
|
206
230
|
inputRef.current.focus();
|
|
207
231
|
} else {
|
|
208
|
-
|
|
209
|
-
const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
|
|
210
|
-
anchorEl.querySelector(`[${indexType}="${itemToFocus}"]`).focus();
|
|
232
|
+
anchorEl.querySelector(`[data-item-index="${itemToFocus}"]`).focus();
|
|
211
233
|
}
|
|
212
234
|
});
|
|
213
235
|
|
|
@@ -490,6 +512,21 @@ function useAutocomplete(props) {
|
|
|
490
512
|
syncHighlightedIndex();
|
|
491
513
|
}
|
|
492
514
|
}, [syncHighlightedIndex, filteredOptionsChanged, popupOpen, disableCloseOnSelect]);
|
|
515
|
+
|
|
516
|
+
// Listen for browser window blur to detect when the user switches tabs or windows.
|
|
517
|
+
// This helps prevent the popup from reopening automatically when the window regains focus.
|
|
518
|
+
React.useEffect(() => {
|
|
519
|
+
if (typeof window === 'undefined') {
|
|
520
|
+
return undefined;
|
|
521
|
+
}
|
|
522
|
+
const handleWindowBlur = () => {
|
|
523
|
+
windowLostFocus.current = true;
|
|
524
|
+
};
|
|
525
|
+
window.addEventListener('blur', handleWindowBlur);
|
|
526
|
+
return () => {
|
|
527
|
+
window.removeEventListener('blur', handleWindowBlur);
|
|
528
|
+
};
|
|
529
|
+
}, []);
|
|
493
530
|
const handleOpen = event => {
|
|
494
531
|
if (open) {
|
|
495
532
|
return;
|
|
@@ -563,10 +600,7 @@ function useAutocomplete(props) {
|
|
|
563
600
|
if (direction === 'next' && nextFocus === value.length || direction === 'previous' && nextFocus === -1) {
|
|
564
601
|
return -1;
|
|
565
602
|
}
|
|
566
|
-
|
|
567
|
-
// Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is removed.
|
|
568
|
-
const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
|
|
569
|
-
const option = anchorEl.querySelector(`[${indexType}="${nextFocus}"]`);
|
|
603
|
+
const option = anchorEl.querySelector(`[data-item-index="${nextFocus}"]`);
|
|
570
604
|
|
|
571
605
|
// Same logic as MenuList.js
|
|
572
606
|
if (!option || !option.hasAttribute('tabindex') || option.disabled || option.getAttribute('aria-disabled') === 'true') {
|
|
@@ -825,6 +859,14 @@ function useAutocomplete(props) {
|
|
|
825
859
|
// Ensure DOM focus lands on the input
|
|
826
860
|
focusItem(-1);
|
|
827
861
|
}
|
|
862
|
+
|
|
863
|
+
// If the window previously lost focus while the popup was open,
|
|
864
|
+
// ignore this focus event to prevent unintended reopening.
|
|
865
|
+
// Reset the flag so normal focus behavior resumes.
|
|
866
|
+
if (windowLostFocus.current) {
|
|
867
|
+
windowLostFocus.current = false;
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
828
870
|
if (openOnFocus && !ignoreFocus.current) {
|
|
829
871
|
handleOpen(event);
|
|
830
872
|
}
|
|
@@ -1015,11 +1057,7 @@ function useAutocomplete(props) {
|
|
|
1015
1057
|
...(multiple && {
|
|
1016
1058
|
key: index
|
|
1017
1059
|
}),
|
|
1018
|
-
|
|
1019
|
-
'data-item-index': index
|
|
1020
|
-
} : {
|
|
1021
|
-
'data-tag-index': index
|
|
1022
|
-
}),
|
|
1060
|
+
'data-item-index': index,
|
|
1023
1061
|
tabIndex: -1,
|
|
1024
1062
|
...(!readOnly && {
|
|
1025
1063
|
onDelete: multiple ? handleItemDelete(index) : handleSingleItemDelete
|
|
@@ -1030,17 +1068,6 @@ function useAutocomplete(props) {
|
|
|
1030
1068
|
type: 'button',
|
|
1031
1069
|
onClick: handlePopupIndicator
|
|
1032
1070
|
}),
|
|
1033
|
-
// deprecated
|
|
1034
|
-
getTagProps: ({
|
|
1035
|
-
index
|
|
1036
|
-
}) => ({
|
|
1037
|
-
key: index,
|
|
1038
|
-
'data-tag-index': index,
|
|
1039
|
-
tabIndex: -1,
|
|
1040
|
-
...(!readOnly && {
|
|
1041
|
-
onDelete: handleItemDelete(index)
|
|
1042
|
-
})
|
|
1043
|
-
}),
|
|
1044
1071
|
getListboxProps: () => ({
|
|
1045
1072
|
role: 'listbox',
|
|
1046
1073
|
id: `${id}-listbox`,
|
|
@@ -1056,7 +1083,7 @@ function useAutocomplete(props) {
|
|
|
1056
1083
|
index,
|
|
1057
1084
|
option
|
|
1058
1085
|
}) => {
|
|
1059
|
-
const selected = (
|
|
1086
|
+
const selected = isOptionSelected(option);
|
|
1060
1087
|
const disabled = getOptionDisabled ? getOptionDisabled(option) : false;
|
|
1061
1088
|
return {
|
|
1062
1089
|
key: getOptionKey?.(option) ?? getOptionLabel(option),
|
|
@@ -1081,8 +1108,6 @@ function useAutocomplete(props) {
|
|
|
1081
1108
|
anchorEl,
|
|
1082
1109
|
setAnchorEl,
|
|
1083
1110
|
focusedItem,
|
|
1084
|
-
// deprecated
|
|
1085
|
-
focusedTag: focusedItem,
|
|
1086
1111
|
groupedOptions
|
|
1087
1112
|
};
|
|
1088
1113
|
}
|
package/utils/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ export { default as createSvgIcon } from "./createSvgIcon.mjs";
|
|
|
5
5
|
export { default as debounce } from "./debounce.mjs";
|
|
6
6
|
export { default as deprecatedPropType } from "./deprecatedPropType.mjs";
|
|
7
7
|
export { default as isMuiElement } from "./isMuiElement.mjs";
|
|
8
|
+
export { default as getActiveElement } from "./getActiveElement.mjs";
|
|
8
9
|
export { default as unstable_memoTheme } from "./memoTheme.mjs";
|
|
9
10
|
export { default as ownerDocument } from "./ownerDocument.mjs";
|
|
10
11
|
export { default as ownerWindow } from "./ownerWindow.mjs";
|
|
@@ -15,6 +16,7 @@ export { default as unstable_useId } from "./useId.mjs";
|
|
|
15
16
|
export { default as unsupportedProp } from "./unsupportedProp.mjs";
|
|
16
17
|
export { default as useControlled } from "./useControlled.mjs";
|
|
17
18
|
export { default as useEventCallback } from "./useEventCallback.mjs";
|
|
19
|
+
export { default as useRovingTabIndex } from "./useRovingTabIndex.mjs";
|
|
18
20
|
export { default as useForkRef } from "./useForkRef.mjs";
|
|
19
21
|
export { default as mergeSlotProps } from "./mergeSlotProps.mjs";
|
|
20
22
|
export * from "./types.mjs";
|
package/utils/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { default as createSvgIcon } from "./createSvgIcon.js";
|
|
|
5
5
|
export { default as debounce } from "./debounce.js";
|
|
6
6
|
export { default as deprecatedPropType } from "./deprecatedPropType.js";
|
|
7
7
|
export { default as isMuiElement } from "./isMuiElement.js";
|
|
8
|
+
export { default as getActiveElement } from "./getActiveElement.js";
|
|
8
9
|
export { default as unstable_memoTheme } from "./memoTheme.js";
|
|
9
10
|
export { default as ownerDocument } from "./ownerDocument.js";
|
|
10
11
|
export { default as ownerWindow } from "./ownerWindow.js";
|
|
@@ -15,6 +16,7 @@ export { default as unstable_useId } from "./useId.js";
|
|
|
15
16
|
export { default as unsupportedProp } from "./unsupportedProp.js";
|
|
16
17
|
export { default as useControlled } from "./useControlled.js";
|
|
17
18
|
export { default as useEventCallback } from "./useEventCallback.js";
|
|
19
|
+
export { default as useRovingTabIndex } from "./useRovingTabIndex.js";
|
|
18
20
|
export { default as useForkRef } from "./useForkRef.js";
|
|
19
21
|
export { default as mergeSlotProps } from "./mergeSlotProps.js";
|
|
20
22
|
export * from "./types.js";
|
package/utils/index.js
CHANGED
|
@@ -35,6 +35,12 @@ Object.defineProperty(exports, "deprecatedPropType", {
|
|
|
35
35
|
return _deprecatedPropType.default;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
+
Object.defineProperty(exports, "getActiveElement", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return _getActiveElement.default;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
38
44
|
Object.defineProperty(exports, "isMuiElement", {
|
|
39
45
|
enumerable: true,
|
|
40
46
|
get: function () {
|
|
@@ -114,6 +120,12 @@ Object.defineProperty(exports, "useForkRef", {
|
|
|
114
120
|
return _useForkRef.default;
|
|
115
121
|
}
|
|
116
122
|
});
|
|
123
|
+
Object.defineProperty(exports, "useRovingTabIndex", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () {
|
|
126
|
+
return _useRovingTabIndex.default;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
117
129
|
var _ClassNameGenerator = _interopRequireDefault(require("@mui/utils/ClassNameGenerator"));
|
|
118
130
|
var _capitalize = _interopRequireDefault(require("./capitalize"));
|
|
119
131
|
var _createChainedFunction = _interopRequireDefault(require("./createChainedFunction"));
|
|
@@ -121,6 +133,7 @@ var _createSvgIcon = _interopRequireDefault(require("./createSvgIcon"));
|
|
|
121
133
|
var _debounce = _interopRequireDefault(require("./debounce"));
|
|
122
134
|
var _deprecatedPropType = _interopRequireDefault(require("./deprecatedPropType"));
|
|
123
135
|
var _isMuiElement = _interopRequireDefault(require("./isMuiElement"));
|
|
136
|
+
var _getActiveElement = _interopRequireDefault(require("./getActiveElement"));
|
|
124
137
|
var _memoTheme = _interopRequireDefault(require("./memoTheme"));
|
|
125
138
|
var _ownerDocument = _interopRequireDefault(require("./ownerDocument"));
|
|
126
139
|
var _ownerWindow = _interopRequireDefault(require("./ownerWindow"));
|
|
@@ -131,6 +144,7 @@ var _useId = _interopRequireDefault(require("./useId"));
|
|
|
131
144
|
var _unsupportedProp = _interopRequireDefault(require("./unsupportedProp"));
|
|
132
145
|
var _useControlled = _interopRequireDefault(require("./useControlled"));
|
|
133
146
|
var _useEventCallback = _interopRequireDefault(require("./useEventCallback"));
|
|
147
|
+
var _useRovingTabIndex = _interopRequireDefault(require("./useRovingTabIndex"));
|
|
134
148
|
var _useForkRef = _interopRequireDefault(require("./useForkRef"));
|
|
135
149
|
var _mergeSlotProps = _interopRequireDefault(require("./mergeSlotProps"));
|
|
136
150
|
// TODO: remove this export once ClassNameGenerator is stable
|
package/utils/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ export { default as createSvgIcon } from "./createSvgIcon.mjs";
|
|
|
7
7
|
export { default as debounce } from "./debounce.mjs";
|
|
8
8
|
export { default as deprecatedPropType } from "./deprecatedPropType.mjs";
|
|
9
9
|
export { default as isMuiElement } from "./isMuiElement.mjs";
|
|
10
|
+
export { default as getActiveElement } from "./getActiveElement.mjs";
|
|
10
11
|
export { default as unstable_memoTheme } from "./memoTheme.mjs";
|
|
11
12
|
export { default as ownerDocument } from "./ownerDocument.mjs";
|
|
12
13
|
export { default as ownerWindow } from "./ownerWindow.mjs";
|
|
@@ -17,6 +18,7 @@ export { default as unstable_useId } from "./useId.mjs";
|
|
|
17
18
|
export { default as unsupportedProp } from "./unsupportedProp.mjs";
|
|
18
19
|
export { default as useControlled } from "./useControlled.mjs";
|
|
19
20
|
export { default as useEventCallback } from "./useEventCallback.mjs";
|
|
21
|
+
export { default as useRovingTabIndex } from "./useRovingTabIndex.mjs";
|
|
20
22
|
export { default as useForkRef } from "./useForkRef.mjs";
|
|
21
23
|
export { default as mergeSlotProps } from "./mergeSlotProps.mjs";
|
|
22
24
|
// TODO: remove this export once ClassNameGenerator is stable
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _useRovingTabIndex = _interopRequireDefault(require("@mui/utils/useRovingTabIndex"));
|
|
9
|
+
var _default = exports.default = _useRovingTabIndex.default;
|
package/version/index.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "9.0.0-alpha.
|
|
7
|
+
const version = exports.version = "9.0.0-alpha.4";
|
|
8
8
|
const major = exports.major = Number("9");
|
|
9
9
|
const minor = exports.minor = Number("0");
|
|
10
10
|
const patch = exports.patch = Number("0");
|
|
11
|
-
const prerelease = exports.prerelease = "alpha.
|
|
11
|
+
const prerelease = exports.prerelease = "alpha.4";
|
|
12
12
|
var _default = exports.default = version;
|
package/version/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "9.0.0-alpha.
|
|
1
|
+
export const version = "9.0.0-alpha.4";
|
|
2
2
|
export const major = Number("9");
|
|
3
3
|
export const minor = Number("0");
|
|
4
4
|
export const patch = Number("0");
|
|
5
|
-
export const prerelease = "alpha.
|
|
5
|
+
export const prerelease = "alpha.4";
|
|
6
6
|
export default version;
|