@mui/material 7.3.1 → 7.3.3
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.ts +3 -3
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/Alert/Alert.d.ts +6 -6
- package/Avatar/Avatar.d.ts +3 -3
- package/Backdrop/Backdrop.d.ts +2 -2
- package/Badge/Badge.d.ts +2 -2
- package/BottomNavigationAction/BottomNavigationAction.d.ts +2 -2
- package/CHANGELOG.md +153 -4
- package/CardActionArea/CardActionArea.d.ts +2 -2
- package/CardHeader/CardHeader.d.ts +6 -6
- package/Checkbox/Checkbox.d.ts +2 -2
- package/Chip/Chip.d.ts +2 -2
- package/Chip/Chip.js +2 -2
- package/CircularProgress/CircularProgress.d.ts +6 -0
- package/CircularProgress/CircularProgress.js +31 -4
- package/CircularProgress/circularProgressClasses.d.ts +2 -0
- package/CircularProgress/circularProgressClasses.js +1 -1
- package/Dialog/Dialog.d.ts +5 -5
- package/Divider/Divider.js +1 -1
- package/Drawer/Drawer.d.ts +6 -6
- package/Drawer/Drawer.js +5 -1
- package/InputBase/InputBase.js +1 -1
- package/ListItem/ListItem.js +1 -1
- package/ListItemText/ListItemText.d.ts +2 -2
- package/Menu/Menu.d.ts +5 -5
- package/MenuItem/MenuItem.js +1 -1
- package/MobileStepper/MobileStepper.d.ts +4 -4
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/PaginationItem/PaginationItem.d.ts +36 -4
- package/Popover/Popover.d.ts +5 -5
- package/Popover/Popover.js +2 -2
- package/Radio/Radio.d.ts +2 -2
- package/Rating/Rating.d.ts +5 -5
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.d.ts +3 -3
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDialAction/SpeedDialAction.d.ts +4 -4
- package/StepContent/StepContent.d.ts +1 -1
- package/StepLabel/StepLabel.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/Switch/Switch.d.ts +5 -5
- package/TablePagination/TablePagination.d.ts +10 -10
- package/TablePagination/TablePagination.js +3 -3
- package/TablePaginationActions/TablePaginationActions.d.ts +2 -2
- package/TablePaginationActions/TablePaginationActions.js +2 -2
- package/Tabs/Tabs.d.ts +8 -8
- package/Tabs/Tabs.js +5 -0
- package/TextField/TextField.d.ts +6 -6
- package/TextField/TextField.js +1 -1
- package/Tooltip/Tooltip.d.ts +4 -4
- package/esm/Accordion/Accordion.d.ts +3 -3
- package/esm/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/esm/Alert/Alert.d.ts +6 -6
- package/esm/Avatar/Avatar.d.ts +3 -3
- package/esm/Backdrop/Backdrop.d.ts +2 -2
- package/esm/Badge/Badge.d.ts +2 -2
- package/esm/BottomNavigationAction/BottomNavigationAction.d.ts +2 -2
- package/esm/CardActionArea/CardActionArea.d.ts +2 -2
- package/esm/CardHeader/CardHeader.d.ts +6 -6
- package/esm/Checkbox/Checkbox.d.ts +2 -2
- package/esm/Chip/Chip.d.ts +2 -2
- package/esm/Chip/Chip.js +2 -2
- package/esm/CircularProgress/CircularProgress.d.ts +6 -0
- package/esm/CircularProgress/CircularProgress.js +32 -5
- package/esm/CircularProgress/circularProgressClasses.d.ts +2 -0
- package/esm/CircularProgress/circularProgressClasses.js +1 -1
- package/esm/Dialog/Dialog.d.ts +5 -5
- package/esm/Divider/Divider.js +1 -1
- package/esm/Drawer/Drawer.d.ts +6 -6
- package/esm/Drawer/Drawer.js +5 -1
- package/esm/InputBase/InputBase.js +1 -1
- package/esm/ListItem/ListItem.js +1 -1
- package/esm/ListItemText/ListItemText.d.ts +2 -2
- package/esm/Menu/Menu.d.ts +5 -5
- package/esm/MenuItem/MenuItem.js +1 -1
- package/esm/MobileStepper/MobileStepper.d.ts +4 -4
- package/esm/OutlinedInput/OutlinedInput.js +1 -1
- package/esm/PaginationItem/PaginationItem.d.ts +36 -4
- package/esm/Popover/Popover.d.ts +5 -5
- package/esm/Popover/Popover.js +2 -2
- package/esm/Radio/Radio.d.ts +2 -2
- package/esm/Rating/Rating.d.ts +5 -5
- package/esm/Slider/Slider.js +1 -1
- package/esm/Snackbar/Snackbar.d.ts +3 -3
- package/esm/SnackbarContent/SnackbarContent.js +1 -1
- package/esm/SpeedDial/SpeedDial.d.ts +2 -2
- package/esm/SpeedDialAction/SpeedDialAction.d.ts +4 -4
- package/esm/StepContent/StepContent.d.ts +1 -1
- package/esm/StepLabel/StepLabel.d.ts +3 -3
- package/esm/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/esm/Switch/Switch.d.ts +5 -5
- package/esm/TablePagination/TablePagination.d.ts +10 -10
- package/esm/TablePagination/TablePagination.js +3 -3
- package/esm/TablePaginationActions/TablePaginationActions.d.ts +2 -2
- package/esm/TablePaginationActions/TablePaginationActions.js +2 -2
- package/esm/Tabs/Tabs.d.ts +8 -8
- package/esm/Tabs/Tabs.js +5 -0
- package/esm/TextField/TextField.d.ts +6 -6
- package/esm/TextField/TextField.js +1 -1
- package/esm/Tooltip/Tooltip.d.ts +4 -4
- package/esm/index.js +1 -1
- package/esm/internal/SwitchBase.d.ts +1 -1
- package/esm/locale/amET.d.ts +2 -0
- package/esm/locale/amET.js +73 -0
- package/esm/locale/arEG.d.ts +2 -0
- package/esm/locale/arEG.js +73 -0
- package/esm/locale/arSA.d.ts +2 -0
- package/esm/locale/arSA.js +73 -0
- package/esm/locale/arSD.d.ts +2 -0
- package/esm/locale/arSD.js +73 -0
- package/esm/locale/azAZ.d.ts +2 -0
- package/esm/locale/azAZ.js +77 -0
- package/esm/locale/beBY.d.ts +2 -0
- package/esm/locale/beBY.js +85 -0
- package/esm/locale/bgBG.d.ts +2 -0
- package/esm/locale/bgBG.js +70 -0
- package/esm/locale/bnBD.d.ts +2 -0
- package/esm/locale/bnBD.js +73 -0
- package/esm/locale/caES.d.ts +2 -0
- package/esm/locale/caES.js +70 -0
- package/esm/locale/csCZ.d.ts +2 -0
- package/esm/locale/csCZ.js +81 -0
- package/esm/locale/daDK.d.ts +2 -0
- package/esm/locale/daDK.js +73 -0
- package/esm/locale/deDE.d.ts +2 -0
- package/esm/locale/deDE.js +73 -0
- package/esm/locale/elGR.d.ts +2 -0
- package/esm/locale/elGR.js +75 -0
- package/esm/locale/enUS.d.ts +2 -0
- package/esm/locale/enUS.js +61 -0
- package/esm/locale/esES.d.ts +2 -0
- package/esm/locale/esES.js +73 -0
- package/esm/locale/etEE.d.ts +2 -0
- package/esm/locale/etEE.js +73 -0
- package/esm/locale/faIR.d.ts +2 -0
- package/esm/locale/faIR.js +78 -0
- package/esm/locale/fiFI.d.ts +2 -0
- package/esm/locale/fiFI.js +73 -0
- package/esm/locale/frFR.d.ts +2 -0
- package/esm/locale/frFR.js +73 -0
- package/esm/locale/heIL.d.ts +2 -0
- package/esm/locale/heIL.js +73 -0
- package/esm/locale/hiIN.d.ts +2 -0
- package/esm/locale/hiIN.js +73 -0
- package/esm/locale/hrHR.d.ts +2 -0
- package/esm/locale/hrHR.js +81 -0
- package/esm/locale/huHU.d.ts +2 -0
- package/esm/locale/huHU.js +70 -0
- package/esm/locale/hyAM.d.ts +2 -0
- package/esm/locale/hyAM.js +70 -0
- package/esm/locale/idID.d.ts +2 -0
- package/esm/locale/idID.js +70 -0
- package/esm/locale/index.d.ts +60 -82
- package/esm/locale/index.js +60 -4327
- package/esm/locale/isIS.d.ts +2 -0
- package/esm/locale/isIS.js +73 -0
- package/esm/locale/itIT.d.ts +2 -0
- package/esm/locale/itIT.js +73 -0
- package/esm/locale/jaJP.d.ts +2 -0
- package/esm/locale/jaJP.js +73 -0
- package/esm/locale/khKH.d.ts +2 -0
- package/esm/locale/khKH.js +73 -0
- package/esm/locale/kkKZ.d.ts +2 -0
- package/esm/locale/kkKZ.js +76 -0
- package/esm/locale/koKR.d.ts +2 -0
- package/esm/locale/koKR.js +73 -0
- package/esm/locale/kuCKB.d.ts +2 -0
- package/esm/locale/kuCKB.js +73 -0
- package/esm/locale/kuLatn.d.ts +2 -0
- package/esm/locale/kuLatn.js +73 -0
- package/esm/locale/mkMK.d.ts +2 -0
- package/esm/locale/mkMK.js +77 -0
- package/esm/locale/msMS.d.ts +2 -0
- package/esm/locale/msMS.js +77 -0
- package/esm/locale/myMY.d.ts +2 -0
- package/esm/locale/myMY.js +77 -0
- package/esm/locale/nbNO.d.ts +2 -0
- package/esm/locale/nbNO.js +73 -0
- package/esm/locale/neNP.d.ts +2 -0
- package/esm/locale/neNP.js +77 -0
- package/esm/locale/nlNL.d.ts +2 -0
- package/esm/locale/nlNL.js +73 -0
- package/esm/locale/nnNO.d.ts +2 -0
- package/esm/locale/nnNO.js +73 -0
- package/esm/locale/plPL.d.ts +2 -0
- package/esm/locale/plPL.js +82 -0
- package/esm/locale/psAF.d.ts +2 -0
- package/esm/locale/psAF.js +73 -0
- package/esm/locale/ptBR.d.ts +2 -0
- package/esm/locale/ptBR.js +73 -0
- package/esm/locale/ptPT.d.ts +2 -0
- package/esm/locale/ptPT.js +73 -0
- package/esm/locale/roRO.d.ts +2 -0
- package/esm/locale/roRO.js +73 -0
- package/esm/locale/ruRU.d.ts +2 -0
- package/esm/locale/ruRU.js +85 -0
- package/esm/locale/siLK.d.ts +2 -0
- package/esm/locale/siLK.js +73 -0
- package/esm/locale/skSK.d.ts +2 -0
- package/esm/locale/skSK.js +81 -0
- package/esm/locale/srRS.d.ts +2 -0
- package/esm/locale/srRS.js +81 -0
- package/esm/locale/svSE.d.ts +2 -0
- package/esm/locale/svSE.js +73 -0
- package/esm/locale/thTH.d.ts +2 -0
- package/esm/locale/thTH.js +73 -0
- package/esm/locale/tlTL.d.ts +2 -0
- package/esm/locale/tlTL.js +74 -0
- package/esm/locale/trTR.d.ts +2 -0
- package/esm/locale/trTR.js +73 -0
- package/esm/locale/ukUA.d.ts +2 -0
- package/esm/locale/ukUA.js +82 -0
- package/esm/locale/urPK.d.ts +2 -0
- package/esm/locale/urPK.js +73 -0
- package/esm/locale/utils/LocaleTextApi.d.ts +23 -0
- package/esm/locale/utils/LocaleTextApi.js +1 -0
- package/esm/locale/viVN.d.ts +2 -0
- package/esm/locale/viVN.js +73 -0
- package/esm/locale/zhCN.d.ts +2 -0
- package/esm/locale/zhCN.js +51 -0
- package/esm/locale/zhHK.d.ts +2 -0
- package/esm/locale/zhHK.js +51 -0
- package/esm/locale/zhTW.d.ts +2 -0
- package/esm/locale/zhTW.js +51 -0
- package/esm/styles/createColorScheme.js +2 -2
- package/esm/styles/createTheme.js +2 -2
- package/esm/useAutocomplete/useAutocomplete.js +2 -2
- package/esm/utils/shouldSpreadAdditionalProps.js +1 -1
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/internal/SwitchBase.d.ts +1 -1
- package/locale/amET.d.ts +2 -0
- package/locale/amET.js +79 -0
- package/locale/arEG.d.ts +2 -0
- package/locale/arEG.js +79 -0
- package/locale/arSA.d.ts +2 -0
- package/locale/arSA.js +79 -0
- package/locale/arSD.d.ts +2 -0
- package/locale/arSD.js +79 -0
- package/locale/azAZ.d.ts +2 -0
- package/locale/azAZ.js +83 -0
- package/locale/beBY.d.ts +2 -0
- package/locale/beBY.js +91 -0
- package/locale/bgBG.d.ts +2 -0
- package/locale/bgBG.js +76 -0
- package/locale/bnBD.d.ts +2 -0
- package/locale/bnBD.js +79 -0
- package/locale/caES.d.ts +2 -0
- package/locale/caES.js +76 -0
- package/locale/csCZ.d.ts +2 -0
- package/locale/csCZ.js +87 -0
- package/locale/daDK.d.ts +2 -0
- package/locale/daDK.js +79 -0
- package/locale/deDE.d.ts +2 -0
- package/locale/deDE.js +79 -0
- package/locale/elGR.d.ts +2 -0
- package/locale/elGR.js +81 -0
- package/locale/enUS.d.ts +2 -0
- package/locale/enUS.js +67 -0
- package/locale/esES.d.ts +2 -0
- package/locale/esES.js +79 -0
- package/locale/etEE.d.ts +2 -0
- package/locale/etEE.js +79 -0
- package/locale/faIR.d.ts +2 -0
- package/locale/faIR.js +84 -0
- package/locale/fiFI.d.ts +2 -0
- package/locale/fiFI.js +79 -0
- package/locale/frFR.d.ts +2 -0
- package/locale/frFR.js +79 -0
- package/locale/heIL.d.ts +2 -0
- package/locale/heIL.js +79 -0
- package/locale/hiIN.d.ts +2 -0
- package/locale/hiIN.js +79 -0
- package/locale/hrHR.d.ts +2 -0
- package/locale/hrHR.js +87 -0
- package/locale/huHU.d.ts +2 -0
- package/locale/huHU.js +76 -0
- package/locale/hyAM.d.ts +2 -0
- package/locale/hyAM.js +76 -0
- package/locale/idID.d.ts +2 -0
- package/locale/idID.js +76 -0
- package/locale/index.d.ts +60 -82
- package/locale/index.js +660 -4328
- package/locale/isIS.d.ts +2 -0
- package/locale/isIS.js +79 -0
- package/locale/itIT.d.ts +2 -0
- package/locale/itIT.js +79 -0
- package/locale/jaJP.d.ts +2 -0
- package/locale/jaJP.js +79 -0
- package/locale/khKH.d.ts +2 -0
- package/locale/khKH.js +79 -0
- package/locale/kkKZ.d.ts +2 -0
- package/locale/kkKZ.js +82 -0
- package/locale/koKR.d.ts +2 -0
- package/locale/koKR.js +79 -0
- package/locale/kuCKB.d.ts +2 -0
- package/locale/kuCKB.js +79 -0
- package/locale/kuLatn.d.ts +2 -0
- package/locale/kuLatn.js +79 -0
- package/locale/mkMK.d.ts +2 -0
- package/locale/mkMK.js +83 -0
- package/locale/msMS.d.ts +2 -0
- package/locale/msMS.js +83 -0
- package/locale/myMY.d.ts +2 -0
- package/locale/myMY.js +83 -0
- package/locale/nbNO.d.ts +2 -0
- package/locale/nbNO.js +79 -0
- package/locale/neNP.d.ts +2 -0
- package/locale/neNP.js +83 -0
- package/locale/nlNL.d.ts +2 -0
- package/locale/nlNL.js +79 -0
- package/locale/nnNO.d.ts +2 -0
- package/locale/nnNO.js +79 -0
- package/locale/plPL.d.ts +2 -0
- package/locale/plPL.js +88 -0
- package/locale/psAF.d.ts +2 -0
- package/locale/psAF.js +79 -0
- package/locale/ptBR.d.ts +2 -0
- package/locale/ptBR.js +79 -0
- package/locale/ptPT.d.ts +2 -0
- package/locale/ptPT.js +79 -0
- package/locale/roRO.d.ts +2 -0
- package/locale/roRO.js +79 -0
- package/locale/ruRU.d.ts +2 -0
- package/locale/ruRU.js +91 -0
- package/locale/siLK.d.ts +2 -0
- package/locale/siLK.js +79 -0
- package/locale/skSK.d.ts +2 -0
- package/locale/skSK.js +87 -0
- package/locale/srRS.d.ts +2 -0
- package/locale/srRS.js +87 -0
- package/locale/svSE.d.ts +2 -0
- package/locale/svSE.js +79 -0
- package/locale/thTH.d.ts +2 -0
- package/locale/thTH.js +79 -0
- package/locale/tlTL.d.ts +2 -0
- package/locale/tlTL.js +80 -0
- package/locale/trTR.d.ts +2 -0
- package/locale/trTR.js +79 -0
- package/locale/ukUA.d.ts +2 -0
- package/locale/ukUA.js +88 -0
- package/locale/urPK.d.ts +2 -0
- package/locale/urPK.js +79 -0
- package/locale/utils/LocaleTextApi.d.ts +23 -0
- package/locale/utils/LocaleTextApi.js +5 -0
- package/locale/viVN.d.ts +2 -0
- package/locale/viVN.js +79 -0
- package/locale/zhCN.d.ts +2 -0
- package/locale/zhCN.js +57 -0
- package/locale/zhHK.d.ts +2 -0
- package/locale/zhHK.js +57 -0
- package/locale/zhTW.d.ts +2 -0
- package/locale/zhTW.js +57 -0
- package/package.json +36 -37
- package/styles/createColorScheme.js +2 -2
- package/styles/createTheme.js +2 -2
- package/useAutocomplete/useAutocomplete.js +2 -2
- package/utils/shouldSpreadAdditionalProps.js +1 -1
- package/version/index.js +2 -2
- package/esm/utils/isHostComponent.d.ts +0 -6
- package/esm/utils/isHostComponent.js +0 -7
- package/utils/isHostComponent.d.ts +0 -6
- package/utils/isHostComponent.js +0 -13
|
@@ -145,7 +145,7 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes /* remo
|
|
|
145
145
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
146
146
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
147
147
|
/**
|
|
148
|
-
* This prop is an alias for `slotProps.previousButton` and will be
|
|
148
|
+
* This prop is an alias for `slotProps.previousButton` and will be overridden by it if both are used.
|
|
149
149
|
* @deprecated Use `slotProps.previousButton` instead.
|
|
150
150
|
*/
|
|
151
151
|
backIconButtonProps: _propTypes.default.object,
|
|
@@ -180,7 +180,7 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes /* remo
|
|
|
180
180
|
*/
|
|
181
181
|
getItemAriaLabel: _propTypes.default.func.isRequired,
|
|
182
182
|
/**
|
|
183
|
-
* This prop is an alias for `slotProps.nextButton` and will be
|
|
183
|
+
* This prop is an alias for `slotProps.nextButton` and will be overridden by it if both are used.
|
|
184
184
|
* @deprecated Use `slotProps.nextButton` instead.
|
|
185
185
|
*/
|
|
186
186
|
nextIconButtonProps: _propTypes.default.object,
|
package/Tabs/Tabs.d.ts
CHANGED
|
@@ -61,44 +61,44 @@ export interface TabsSlots {
|
|
|
61
61
|
export type TabsSlotsAndSlotProps = CreateSlotsAndSlotProps<TabsSlots, {
|
|
62
62
|
/**
|
|
63
63
|
* Props forwarded to the root slot.
|
|
64
|
-
* By default, the
|
|
64
|
+
* By default, the available props are based on the div element.
|
|
65
65
|
*/
|
|
66
66
|
root: SlotProps<'div', TabsRootSlotPropsOverrides, TabsOwnerState>;
|
|
67
67
|
/**
|
|
68
68
|
* Props forwarded to the scroller slot.
|
|
69
|
-
* By default, the
|
|
69
|
+
* By default, the available props are based on the div element.
|
|
70
70
|
*/
|
|
71
71
|
scroller: SlotProps<'div', TabsScrollerSlotPropsOverrides, TabsOwnerState>;
|
|
72
72
|
/**
|
|
73
73
|
* Props forwarded to the list slot.
|
|
74
|
-
* By default, the
|
|
74
|
+
* By default, the available props are based on the div element.
|
|
75
75
|
*/
|
|
76
76
|
list: SlotProps<'div', TabsListSlotPropsOverrides, TabsOwnerState>;
|
|
77
77
|
/**
|
|
78
78
|
* Props forwarded to the scrollbar slot.
|
|
79
|
-
* By default, the
|
|
79
|
+
* By default, the available props are based on the div element.
|
|
80
80
|
*/
|
|
81
81
|
scrollbar: SlotProps<'div', {
|
|
82
82
|
onChange?: (scrollbarWidth: undefined | number) => void;
|
|
83
83
|
} & TabsScrollbarSlotPropsOverrides, TabsOwnerState>;
|
|
84
84
|
/**
|
|
85
85
|
* Props forwarded to the indicator slot.
|
|
86
|
-
* By default, the
|
|
86
|
+
* By default, the available props are based on the span element.
|
|
87
87
|
*/
|
|
88
88
|
indicator: SlotProps<'span', TabsIndicatorSlotPropsOverrides, TabsOwnerState>;
|
|
89
89
|
/**
|
|
90
90
|
* Props forwarded to the scrollButton slot.
|
|
91
|
-
* By default, the
|
|
91
|
+
* By default, the available props are based on the [TabScrollButton](https://mui.com/material-ui/api/tab-scroll-button/#props) component.
|
|
92
92
|
*/
|
|
93
93
|
scrollButtons: SlotProps<typeof TabScrollButton, TabsScrollButtonsSlotPropsOverrides, TabsOwnerState>;
|
|
94
94
|
/**
|
|
95
95
|
* Props forwarded to the startScrollButtonIcon slot.
|
|
96
|
-
* By default, the
|
|
96
|
+
* By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
|
|
97
97
|
*/
|
|
98
98
|
startScrollButtonIcon: SlotProps<typeof SvgIcon, TabsStartScrollButtonIconSlotPropsOverrides, TabsOwnerState>;
|
|
99
99
|
/**
|
|
100
100
|
* Props forwarded to the endScrollButtonIcon slot.
|
|
101
|
-
* By default, the
|
|
101
|
+
* By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
|
|
102
102
|
*/
|
|
103
103
|
endScrollButtonIcon: SlotProps<typeof SvgIcon, TabsEndScrollButtonIconSlotPropsOverrides, TabsOwnerState>;
|
|
104
104
|
}> & {
|
package/Tabs/Tabs.js
CHANGED
|
@@ -645,6 +645,11 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
645
645
|
}
|
|
646
646
|
return undefined;
|
|
647
647
|
}, [scrollable, scrollButtons, updateScrollObserver, childrenProp?.length]);
|
|
648
|
+
React.useEffect(() => {
|
|
649
|
+
if (scrollable && scrollButtons === 'auto' && (displayEndScroll || displayStartScroll)) {
|
|
650
|
+
scrollSelectedIntoView(true);
|
|
651
|
+
}
|
|
652
|
+
}, [displayEndScroll, displayStartScroll, scrollable, scrollButtons, scrollSelectedIntoView]);
|
|
648
653
|
React.useEffect(() => {
|
|
649
654
|
setMounted(true);
|
|
650
655
|
}, []);
|
package/TextField/TextField.d.ts
CHANGED
|
@@ -50,32 +50,32 @@ export interface TextFieldSlots {
|
|
|
50
50
|
export type TextFieldSlotsAndSlotProps<InputPropsType> = CreateSlotsAndSlotProps<TextFieldSlots, {
|
|
51
51
|
/**
|
|
52
52
|
* Props forwarded to the root slot.
|
|
53
|
-
* By default, the
|
|
53
|
+
* By default, the available props are based on the [FormControl](https://mui.com/material-ui/api/form-control/#props) component.
|
|
54
54
|
*/
|
|
55
55
|
root: SlotProps<React.ElementType<FormControlProps>, {}, TextFieldOwnerState>;
|
|
56
56
|
/**
|
|
57
57
|
* Props forwarded to the input slot.
|
|
58
|
-
* By default, the
|
|
58
|
+
* By default, the available props are based on the [Input](https://mui.com/material-ui/api/input/#props) component.
|
|
59
59
|
*/
|
|
60
60
|
input: SlotProps<React.ElementType<InputPropsType>, {}, TextFieldOwnerState>;
|
|
61
61
|
/**
|
|
62
62
|
* Props forwarded to the input label slot.
|
|
63
|
-
* By default, the
|
|
63
|
+
* By default, the available props are based on the [InputLabel](https://mui.com/material-ui/api/input-label/#props) component.
|
|
64
64
|
*/
|
|
65
65
|
inputLabel: SlotProps<React.ElementType<InputLabelProps>, {}, TextFieldOwnerState>;
|
|
66
66
|
/**
|
|
67
67
|
* Props forwarded to the html input slot.
|
|
68
|
-
* By default, the
|
|
68
|
+
* By default, the available props are based on the html input element.
|
|
69
69
|
*/
|
|
70
70
|
htmlInput: SlotProps<React.ElementType<InputBaseProps['inputProps']>, {}, TextFieldOwnerState>;
|
|
71
71
|
/**
|
|
72
72
|
* Props forwarded to the form helper text slot.
|
|
73
|
-
* By default, the
|
|
73
|
+
* By default, the available props are based on the [FormHelperText](https://mui.com/material-ui/api/form-helper-text/#props) component.
|
|
74
74
|
*/
|
|
75
75
|
formHelperText: SlotProps<React.ElementType<FormHelperTextProps>, {}, TextFieldOwnerState>;
|
|
76
76
|
/**
|
|
77
77
|
* Props forwarded to the select slot.
|
|
78
|
-
* By default, the
|
|
78
|
+
* By default, the available props are based on the [Select](https://mui.com/material-ui/api/select/#props) component.
|
|
79
79
|
*/
|
|
80
80
|
select: SlotProps<React.ElementType<SelectProps>, {}, TextFieldOwnerState>;
|
|
81
81
|
}>;
|
package/TextField/TextField.js
CHANGED
|
@@ -449,7 +449,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
|
|
|
449
449
|
/**
|
|
450
450
|
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
|
|
451
451
|
*/
|
|
452
|
-
type: _propTypes.default
|
|
452
|
+
type: _propTypes.default.string,
|
|
453
453
|
/**
|
|
454
454
|
* The value of the `input` element, required for a controlled component.
|
|
455
455
|
*/
|
package/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -35,22 +35,22 @@ export interface TooltipSlots {
|
|
|
35
35
|
export type TooltipSlotsAndSlotProps = CreateSlotsAndSlotProps<TooltipSlots, {
|
|
36
36
|
/**
|
|
37
37
|
* Props forwarded to the popper slot.
|
|
38
|
-
* By default, the
|
|
38
|
+
* By default, the available props are based on the [Popper](https://mui.com/material-ui/api/popper/#props) component.
|
|
39
39
|
*/
|
|
40
40
|
popper: SlotProps<React.ElementType<PopperProps>, TooltipPopperSlotPropsOverrides, TooltipOwnerState>;
|
|
41
41
|
/**
|
|
42
42
|
* Props forwarded to the transition slot.
|
|
43
|
-
* By default, the
|
|
43
|
+
* By default, the available props are based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
|
|
44
44
|
*/
|
|
45
45
|
transition: SlotProps<React.ElementType, TransitionProps & TooltipTransitionSlotPropsOverrides, TooltipOwnerState>;
|
|
46
46
|
/**
|
|
47
47
|
* Props forwarded to the tooltip slot.
|
|
48
|
-
* By default, the
|
|
48
|
+
* By default, the available props are based on the div element.
|
|
49
49
|
*/
|
|
50
50
|
tooltip: SlotProps<'div', TooltipTooltipSlotPropsOverrides, TooltipOwnerState>;
|
|
51
51
|
/**
|
|
52
52
|
* Props forwarded to the tooltip slot.
|
|
53
|
-
* By default, the
|
|
53
|
+
* By default, the available props are based on the span element.
|
|
54
54
|
*/
|
|
55
55
|
arrow: SlotProps<'span', TooltipArrowSlotPropsOverrides, TooltipOwnerState>;
|
|
56
56
|
}>;
|
|
@@ -36,17 +36,17 @@ export interface AccordionRegionSlotPropsOverrides {}
|
|
|
36
36
|
export type AccordionSlotsAndSlotProps = CreateSlotsAndSlotProps<AccordionSlots, {
|
|
37
37
|
/**
|
|
38
38
|
* Props forwarded to the root slot.
|
|
39
|
-
* By default, the
|
|
39
|
+
* By default, the available props are based on the Paper element.
|
|
40
40
|
*/
|
|
41
41
|
root: SlotProps<React.ElementType<PaperProps>, AccordionRootSlotPropsOverrides, AccordionOwnerState>;
|
|
42
42
|
/**
|
|
43
43
|
* Props forwarded to the heading slot.
|
|
44
|
-
* By default, the
|
|
44
|
+
* By default, the available props are based on the h3 element.
|
|
45
45
|
*/
|
|
46
46
|
heading: SlotProps<'h3', AccordionHeadingSlotPropsOverrides, AccordionOwnerState>;
|
|
47
47
|
/**
|
|
48
48
|
* Props forwarded to the transition slot.
|
|
49
|
-
* By default, the
|
|
49
|
+
* By default, the available props are based on the [Collapse](https://mui.com/material-ui/api/collapse/#props) component.
|
|
50
50
|
*/
|
|
51
51
|
transition: SlotComponentProps<React.ElementType, TransitionProps & AccordionTransitionSlotPropsOverrides, AccordionOwnerState>;
|
|
52
52
|
/**
|
|
@@ -28,17 +28,17 @@ export interface AccordionSummaryExpandIconWrapperSlotPropsOverrides {}
|
|
|
28
28
|
export type AccordionSummarySlotsAndSlotProps = CreateSlotsAndSlotProps<AccordionSummarySlots, {
|
|
29
29
|
/**
|
|
30
30
|
* Props forwarded to the root slot.
|
|
31
|
-
* By default, the
|
|
31
|
+
* By default, the available props are based on the [ButtonBase](https://mui.com/material-ui/api/button-base/#props) component.
|
|
32
32
|
*/
|
|
33
33
|
root: SlotProps<React.ElementType<ButtonBaseProps>, AccordionSummaryRootSlotPropsOverrides, AccordionSummaryOwnerState>;
|
|
34
34
|
/**
|
|
35
35
|
* Props forwarded to the content slot.
|
|
36
|
-
* By default, the
|
|
36
|
+
* By default, the available props are based on a div element.
|
|
37
37
|
*/
|
|
38
38
|
content: SlotProps<'div', AccordionSummaryContentSlotPropsOverrides, AccordionSummaryOwnerState>;
|
|
39
39
|
/**
|
|
40
40
|
* Props forwarded to the expand icon wrapper slot.
|
|
41
|
-
* By default, the
|
|
41
|
+
* By default, the available props are based on a div element.
|
|
42
42
|
*/
|
|
43
43
|
expandIconWrapper: SlotProps<'div', AccordionSummaryExpandIconWrapperSlotPropsOverrides, AccordionSummaryOwnerState>;
|
|
44
44
|
}>;
|
package/esm/Alert/Alert.d.ts
CHANGED
|
@@ -52,32 +52,32 @@ export interface AlertSlots {
|
|
|
52
52
|
export type AlertSlotsAndSlotProps = CreateSlotsAndSlotProps<AlertSlots, {
|
|
53
53
|
/**
|
|
54
54
|
* Props forwarded to the root slot.
|
|
55
|
-
* By default, the
|
|
55
|
+
* By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
56
56
|
*/
|
|
57
57
|
root: SlotProps<React.ElementType<PaperProps>, AlertRootSlotPropsOverrides, AlertOwnerState>;
|
|
58
58
|
/**
|
|
59
59
|
* Props forwarded to the icon slot.
|
|
60
|
-
* By default, the
|
|
60
|
+
* By default, the available props are based on a div element.
|
|
61
61
|
*/
|
|
62
62
|
icon: SlotProps<'div', AlertIconSlotPropsOverrides, AlertOwnerState>;
|
|
63
63
|
/**
|
|
64
64
|
* Props forwarded to the message slot.
|
|
65
|
-
* By default, the
|
|
65
|
+
* By default, the available props are based on a div element.
|
|
66
66
|
*/
|
|
67
67
|
message: SlotProps<'div', AlertMessageSlotPropsOverrides, AlertOwnerState>;
|
|
68
68
|
/**
|
|
69
69
|
* Props forwarded to the action slot.
|
|
70
|
-
* By default, the
|
|
70
|
+
* By default, the available props are based on a div element.
|
|
71
71
|
*/
|
|
72
72
|
action: SlotProps<'div', AlertActionSlotPropsOverrides, AlertOwnerState>;
|
|
73
73
|
/**
|
|
74
74
|
* Props forwarded to the closeButton slot.
|
|
75
|
-
* By default, the
|
|
75
|
+
* By default, the available props are based on the [IconButton](https://mui.com/material-ui/api/icon-button/#props) component.
|
|
76
76
|
*/
|
|
77
77
|
closeButton: SlotProps<React.ElementType<IconButtonProps>, AlertCloseButtonSlotPropsOverrides, AlertOwnerState>;
|
|
78
78
|
/**
|
|
79
79
|
* Props forwarded to the closeIcon slot.
|
|
80
|
-
* By default, the
|
|
80
|
+
* By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
|
|
81
81
|
*/
|
|
82
82
|
closeIcon: SlotProps<React.ElementType<SvgIconProps>, AlertCloseIconSlotPropsOverrides, AlertOwnerState>;
|
|
83
83
|
}>;
|
package/esm/Avatar/Avatar.d.ts
CHANGED
|
@@ -30,17 +30,17 @@ export interface AvatarFallbackSlotPropsOverrides {}
|
|
|
30
30
|
export type AvatarSlotsAndSlotProps = CreateSlotsAndSlotProps<AvatarSlots, {
|
|
31
31
|
/**
|
|
32
32
|
* Props forwarded to the root slot.
|
|
33
|
-
* By default, the
|
|
33
|
+
* By default, the available props are based on the div element.
|
|
34
34
|
*/
|
|
35
35
|
root: SlotProps<'div', AvatarRootSlotPropsOverrides, AvatarOwnProps>;
|
|
36
36
|
/**
|
|
37
37
|
* Props forwarded to the img slot.
|
|
38
|
-
* By default, the
|
|
38
|
+
* By default, the available props are based on the img element.
|
|
39
39
|
*/
|
|
40
40
|
img: SlotProps<'img', AvatarImgSlotPropsOverrides, AvatarOwnProps>;
|
|
41
41
|
/**
|
|
42
42
|
* Props forwarded to the fallback slot.
|
|
43
|
-
* By default, the
|
|
43
|
+
* By default, the available props are based on the [SvgIcon](https://mui.com/material-ui/api/svg-icon/#props) component.
|
|
44
44
|
*/
|
|
45
45
|
fallback: SlotProps<React.ElementType<SvgIconProps>, AvatarFallbackSlotPropsOverrides, AvatarOwnProps>;
|
|
46
46
|
}>;
|
|
@@ -24,12 +24,12 @@ export interface BackdropTransitionSlotPropsOverrides {}
|
|
|
24
24
|
export type BackdropSlotsAndSlotProps = CreateSlotsAndSlotProps<BackdropSlots, {
|
|
25
25
|
/**
|
|
26
26
|
* Props forwarded to the transition slot.
|
|
27
|
-
* By default, the
|
|
27
|
+
* By default, the available props are based on the div element.
|
|
28
28
|
*/
|
|
29
29
|
root: SlotProps<'div', BackdropComponentsPropsOverrides, BackdropOwnerState>;
|
|
30
30
|
/**
|
|
31
31
|
* Props forwarded to the transition slot.
|
|
32
|
-
* By default, the
|
|
32
|
+
* By default, the available props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
|
|
33
33
|
*/
|
|
34
34
|
transition: SlotComponentProps<React.ElementType, TransitionProps & BackdropTransitionSlotPropsOverrides, BackdropOwnerState>;
|
|
35
35
|
}>;
|
package/esm/Badge/Badge.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ export interface BadgeSlots {
|
|
|
24
24
|
export type BadgeSlotsAndSlotProps = CreateSlotsAndSlotProps<BadgeSlots, {
|
|
25
25
|
/**
|
|
26
26
|
* Props forwarded to the root slot.
|
|
27
|
-
* By default, the
|
|
27
|
+
* By default, the available props are based on the span element.
|
|
28
28
|
*/
|
|
29
29
|
root: SlotProps<'span', BadgeRootSlotPropsOverrides, BadgeOwnerState>;
|
|
30
30
|
/**
|
|
31
31
|
* Props forwarded to the label slot.
|
|
32
|
-
* By default, the
|
|
32
|
+
* By default, the available props are based on the span element.
|
|
33
33
|
*/
|
|
34
34
|
badge: SlotProps<'span', BadgeBadgeSlotPropsOverrides, BadgeOwnerState>;
|
|
35
35
|
}>;
|
|
@@ -20,12 +20,12 @@ export interface BottomNavigationActionSlots {
|
|
|
20
20
|
export type BottomNavigationActionSlotsAndSlotProps = CreateSlotsAndSlotProps<BottomNavigationActionSlots, {
|
|
21
21
|
/**
|
|
22
22
|
* Props forwarded to the root slot.
|
|
23
|
-
* By default, the
|
|
23
|
+
* By default, the available props are based on the ButtonBase element.
|
|
24
24
|
*/
|
|
25
25
|
root: SlotProps<React.ElementType<ButtonBaseProps>, {}, BottomNavigationActionOwnerState>;
|
|
26
26
|
/**
|
|
27
27
|
* Props forwarded to the label slot.
|
|
28
|
-
* By default, the
|
|
28
|
+
* By default, the available props are based on the span element.
|
|
29
29
|
*/
|
|
30
30
|
label: SlotProps<'span', {}, BottomNavigationActionOwnerState>;
|
|
31
31
|
}>;
|
|
@@ -20,12 +20,12 @@ export interface CardActionAreaSlots {
|
|
|
20
20
|
export type CardActionAreaSlotsAndSlotProps = CreateSlotsAndSlotProps<CardActionAreaSlots, {
|
|
21
21
|
/**
|
|
22
22
|
* Props forwarded to the root slot.
|
|
23
|
-
* By default, the
|
|
23
|
+
* By default, the available props are based on the span element.
|
|
24
24
|
*/
|
|
25
25
|
root: SlotProps<React.ElementType<ButtonBaseProps>, {}, CardActionAreaOwnerState>;
|
|
26
26
|
/**
|
|
27
27
|
* Props forwarded to the focusHighlight slot.
|
|
28
|
-
* By default, the
|
|
28
|
+
* By default, the available props are based on the span element.
|
|
29
29
|
*/
|
|
30
30
|
focusHighlight: SlotProps<'span', {}, CardActionAreaOwnerState>;
|
|
31
31
|
}>;
|
|
@@ -48,32 +48,32 @@ export interface CardHeaderSlots {
|
|
|
48
48
|
export type CardHeaderSlotsAndSlotProps = CreateSlotsAndSlotProps<CardHeaderSlots, {
|
|
49
49
|
/**
|
|
50
50
|
* Props forwarded to the root slot.
|
|
51
|
-
* By default, the
|
|
51
|
+
* By default, the available props are based on the div element.
|
|
52
52
|
*/
|
|
53
53
|
root: SlotProps<'div', CardHeaderRootSlotPropsOverrides, CardHeaderOwnerState>;
|
|
54
54
|
/**
|
|
55
55
|
* Props forwarded to the avatar slot.
|
|
56
|
-
* By default, the
|
|
56
|
+
* By default, the available props are based on the div element.
|
|
57
57
|
*/
|
|
58
58
|
avatar: SlotProps<'div', CardHeaderAvatarSlotPropsOverrides, CardHeaderOwnerState>;
|
|
59
59
|
/**
|
|
60
60
|
* Props forwarded to the action slot.
|
|
61
|
-
* By default, the
|
|
61
|
+
* By default, the available props are based on the div element.
|
|
62
62
|
*/
|
|
63
63
|
action: SlotProps<'div', CardHeaderActionSlotPropsOverrides, CardHeaderOwnerState>;
|
|
64
64
|
/**
|
|
65
65
|
* Props forwarded to the content slot.
|
|
66
|
-
* By default, the
|
|
66
|
+
* By default, the available props are based on the div element.
|
|
67
67
|
*/
|
|
68
68
|
content: SlotProps<'div', CardHeaderContentSlotPropsOverrides, CardHeaderOwnerState>;
|
|
69
69
|
/**
|
|
70
70
|
* Props forwarded to the title slot (as long as disableTypography is not `true`).
|
|
71
|
-
* By default, the
|
|
71
|
+
* By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component.
|
|
72
72
|
*/
|
|
73
73
|
title: SlotProps<React.ElementType<TypographyProps>, CardHeaderTitleSlotPropsOverrides, CardHeaderOwnerState>;
|
|
74
74
|
/**
|
|
75
75
|
* Props forwarded to the subheader slot (as long as disableTypography is not `true`).
|
|
76
|
-
* By default, the
|
|
76
|
+
* By default, the available props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component.
|
|
77
77
|
*/
|
|
78
78
|
subheader: SlotProps<React.ElementType<TypographyProps>, CardHeaderSubheaderSlotPropsOverrides, CardHeaderOwnerState>;
|
|
79
79
|
}>;
|
|
@@ -25,12 +25,12 @@ export interface CheckboxSlots {
|
|
|
25
25
|
export type CheckboxSlotsAndSlotProps = CreateSlotsAndSlotProps<CheckboxSlots, {
|
|
26
26
|
/**
|
|
27
27
|
* Props forwarded to the root slot.
|
|
28
|
-
* By default, the
|
|
28
|
+
* By default, the available props are based on the div element.
|
|
29
29
|
*/
|
|
30
30
|
root: SlotProps<React.ElementType<SwitchBaseProps>, CheckboxRootSlotPropsOverrides, CheckboxOwnerState>;
|
|
31
31
|
/**
|
|
32
32
|
* Props forwarded to the input slot.
|
|
33
|
-
* By default, the
|
|
33
|
+
* By default, the available props are based on the input element.
|
|
34
34
|
*/
|
|
35
35
|
input: SlotProps<'input', CheckboxInputSlotPropsOverrides, CheckboxOwnerState>;
|
|
36
36
|
}>;
|
package/esm/Chip/Chip.d.ts
CHANGED
|
@@ -20,12 +20,12 @@ export interface ChipSlots {
|
|
|
20
20
|
export type ChipSlotsAndSlotProps = CreateSlotsAndSlotProps<ChipSlots, {
|
|
21
21
|
/**
|
|
22
22
|
* Props forwarded to the root slot.
|
|
23
|
-
* By default, the
|
|
23
|
+
* By default, the available props are based on the div element.
|
|
24
24
|
*/
|
|
25
25
|
root: SlotProps<'div', {}, ChipOwnerState>;
|
|
26
26
|
/**
|
|
27
27
|
* Props forwarded to the label slot.
|
|
28
|
-
* By default, the
|
|
28
|
+
* By default, the available props are based on the span element.
|
|
29
29
|
*/
|
|
30
30
|
label: SlotProps<'span', {}, ChipOwnerState>;
|
|
31
31
|
}>;
|
package/esm/Chip/Chip.js
CHANGED
|
@@ -483,11 +483,11 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
483
483
|
},
|
|
484
484
|
onKeyDown: event => {
|
|
485
485
|
handlers.onKeyDown?.(event);
|
|
486
|
-
handleKeyDown
|
|
486
|
+
handleKeyDown(event);
|
|
487
487
|
},
|
|
488
488
|
onKeyUp: event => {
|
|
489
489
|
handlers.onKeyUp?.(event);
|
|
490
|
-
handleKeyUp
|
|
490
|
+
handleKeyUp(event);
|
|
491
491
|
}
|
|
492
492
|
})
|
|
493
493
|
});
|
|
@@ -24,6 +24,12 @@ export interface CircularProgressProps extends StandardProps<React.HTMLAttribute
|
|
|
24
24
|
* @default false
|
|
25
25
|
*/
|
|
26
26
|
disableShrink?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, a track circle slot is mounted to show a subtle background for the progress.
|
|
29
|
+
* The `size` and `thickness` apply to the track slot to be consistent with the progress circle.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
enableTrackSlot?: boolean;
|
|
27
33
|
/**
|
|
28
34
|
* The size of the component.
|
|
29
35
|
* If using a number, the pixel unit is assumed.
|
|
@@ -11,7 +11,7 @@ import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
|
11
11
|
import capitalize from "../utils/capitalize.js";
|
|
12
12
|
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.js";
|
|
13
13
|
import { getCircularProgressUtilityClass } from "./circularProgressClasses.js";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const SIZE = 44;
|
|
16
16
|
const circularRotateKeyframe = keyframes`
|
|
17
17
|
0% {
|
|
@@ -58,6 +58,7 @@ const useUtilityClasses = ownerState => {
|
|
|
58
58
|
const slots = {
|
|
59
59
|
root: ['root', variant, `color${capitalize(color)}`],
|
|
60
60
|
svg: ['svg'],
|
|
61
|
+
track: ['track'],
|
|
61
62
|
circle: ['circle', `circle${capitalize(variant)}`, disableShrink && 'circleDisableShrink']
|
|
62
63
|
};
|
|
63
64
|
return composeClasses(slots, getCircularProgressUtilityClass, classes);
|
|
@@ -143,6 +144,15 @@ const CircularProgressCircle = styled('circle', {
|
|
|
143
144
|
}
|
|
144
145
|
}]
|
|
145
146
|
})));
|
|
147
|
+
const CircularProgressTrack = styled('circle', {
|
|
148
|
+
name: 'MuiCircularProgress',
|
|
149
|
+
slot: 'Track'
|
|
150
|
+
})(memoTheme(({
|
|
151
|
+
theme
|
|
152
|
+
}) => ({
|
|
153
|
+
stroke: 'currentColor',
|
|
154
|
+
opacity: (theme.vars || theme).palette.action.activatedOpacity
|
|
155
|
+
})));
|
|
146
156
|
|
|
147
157
|
/**
|
|
148
158
|
* ## ARIA
|
|
@@ -160,6 +170,7 @@ const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress
|
|
|
160
170
|
className,
|
|
161
171
|
color = 'primary',
|
|
162
172
|
disableShrink = false,
|
|
173
|
+
enableTrackSlot = false,
|
|
163
174
|
size = 40,
|
|
164
175
|
style,
|
|
165
176
|
thickness = 3.6,
|
|
@@ -174,7 +185,8 @@ const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress
|
|
|
174
185
|
size,
|
|
175
186
|
thickness,
|
|
176
187
|
value,
|
|
177
|
-
variant
|
|
188
|
+
variant,
|
|
189
|
+
enableTrackSlot
|
|
178
190
|
};
|
|
179
191
|
const classes = useUtilityClasses(ownerState);
|
|
180
192
|
const circleStyle = {};
|
|
@@ -200,11 +212,20 @@ const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress
|
|
|
200
212
|
role: "progressbar",
|
|
201
213
|
...rootProps,
|
|
202
214
|
...other,
|
|
203
|
-
children: /*#__PURE__*/
|
|
215
|
+
children: /*#__PURE__*/_jsxs(CircularProgressSVG, {
|
|
204
216
|
className: classes.svg,
|
|
205
217
|
ownerState: ownerState,
|
|
206
218
|
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
|
207
|
-
children: /*#__PURE__*/_jsx(
|
|
219
|
+
children: [enableTrackSlot ? /*#__PURE__*/_jsx(CircularProgressTrack, {
|
|
220
|
+
className: classes.track,
|
|
221
|
+
ownerState: ownerState,
|
|
222
|
+
cx: SIZE,
|
|
223
|
+
cy: SIZE,
|
|
224
|
+
r: (SIZE - thickness) / 2,
|
|
225
|
+
fill: "none",
|
|
226
|
+
strokeWidth: thickness,
|
|
227
|
+
"aria-hidden": "true"
|
|
228
|
+
}) : null, /*#__PURE__*/_jsx(CircularProgressCircle, {
|
|
208
229
|
className: classes.circle,
|
|
209
230
|
style: circleStyle,
|
|
210
231
|
ownerState: ownerState,
|
|
@@ -213,7 +234,7 @@ const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress
|
|
|
213
234
|
r: (SIZE - thickness) / 2,
|
|
214
235
|
fill: "none",
|
|
215
236
|
strokeWidth: thickness
|
|
216
|
-
})
|
|
237
|
+
})]
|
|
217
238
|
})
|
|
218
239
|
});
|
|
219
240
|
});
|
|
@@ -248,6 +269,12 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
|
|
|
248
269
|
}
|
|
249
270
|
return null;
|
|
250
271
|
}),
|
|
272
|
+
/**
|
|
273
|
+
* If `true`, a track circle slot is mounted to show a subtle background for the progress.
|
|
274
|
+
* The `size` and `thickness` apply to the track slot to be consistent with the progress circle.
|
|
275
|
+
* @default false
|
|
276
|
+
*/
|
|
277
|
+
enableTrackSlot: PropTypes.bool,
|
|
251
278
|
/**
|
|
252
279
|
* The size of the component.
|
|
253
280
|
* If using a number, the pixel unit is assumed.
|
|
@@ -11,6 +11,8 @@ export interface CircularProgressClasses {
|
|
|
11
11
|
colorSecondary: string;
|
|
12
12
|
/** Styles applied to the svg element. */
|
|
13
13
|
svg: string;
|
|
14
|
+
/** Styles applied to the track slot if `enableTrackSlot={true}`. */
|
|
15
|
+
track: string;
|
|
14
16
|
/** Styles applied to the `circle` svg path. */
|
|
15
17
|
circle: string;
|
|
16
18
|
/** Styles applied to the `circle` svg path if `variant="determinate"`.
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getCircularProgressUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiCircularProgress', slot);
|
|
5
5
|
}
|
|
6
|
-
const circularProgressClasses = generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
|
6
|
+
const circularProgressClasses = generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'track', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
|
7
7
|
export default circularProgressClasses;
|
package/esm/Dialog/Dialog.d.ts
CHANGED
|
@@ -41,27 +41,27 @@ export interface DialogRootSlotPropsOverrides {}
|
|
|
41
41
|
export type DialogSlotsAndSlotProps = CreateSlotsAndSlotProps<DialogSlots, {
|
|
42
42
|
/**
|
|
43
43
|
* Props forwarded to the root slot.
|
|
44
|
-
* By default, the
|
|
44
|
+
* By default, the available props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
|
|
45
45
|
*/
|
|
46
46
|
root: SlotProps<React.ElementType<ModalProps>, DialogRootSlotPropsOverrides, DialogOwnerState>;
|
|
47
47
|
/**
|
|
48
48
|
* Props forwarded to the backdrop slot.
|
|
49
|
-
* By default, the
|
|
49
|
+
* By default, the available props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
|
|
50
50
|
*/
|
|
51
51
|
backdrop: SlotProps<React.ElementType<BackdropProps>, DialogBackdropSlotPropsOverrides, DialogOwnerState>;
|
|
52
52
|
/**
|
|
53
53
|
* Props forwarded to the container slot.
|
|
54
|
-
* By default, the
|
|
54
|
+
* By default, the available props are based on a div element.
|
|
55
55
|
*/
|
|
56
56
|
container: SlotProps<'div', DialogContainerSlotPropsOverrides, DialogOwnerState>;
|
|
57
57
|
/**
|
|
58
58
|
* Props forwarded to the transition slot.
|
|
59
|
-
* By default, the
|
|
59
|
+
* By default, the available props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
|
|
60
60
|
*/
|
|
61
61
|
transition: SlotComponentProps<React.ElementType, TransitionProps & DialogTransitionSlotPropsOverrides, DialogOwnerState>;
|
|
62
62
|
/**
|
|
63
63
|
* Props forwarded to the paper slot.
|
|
64
|
-
* By default, the
|
|
64
|
+
* By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
65
65
|
*/
|
|
66
66
|
paper: SlotProps<React.ElementType<PaperProps>, DialogPaperSlotPropsOverrides, DialogOwnerState>;
|
|
67
67
|
}>;
|
package/esm/Divider/Divider.js
CHANGED
|
@@ -294,7 +294,7 @@ process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */
|
|
|
294
294
|
/**
|
|
295
295
|
* @ignore
|
|
296
296
|
*/
|
|
297
|
-
role: PropTypes
|
|
297
|
+
role: PropTypes.string,
|
|
298
298
|
/**
|
|
299
299
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
300
300
|
*/
|
package/esm/Drawer/Drawer.d.ts
CHANGED
|
@@ -45,27 +45,27 @@ export interface DrawerSlots {
|
|
|
45
45
|
export type DrawerSlotsAndSlotProps = CreateSlotsAndSlotProps<DrawerSlots, {
|
|
46
46
|
/**
|
|
47
47
|
* Props forwarded to the root slot.
|
|
48
|
-
* By default, the
|
|
48
|
+
* By default, the available props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
|
|
49
49
|
*/
|
|
50
50
|
root: SlotProps<React.ElementType<ModalProps>, DrawerRootSlotPropsOverrides, DrawerOwnerState>;
|
|
51
51
|
/**
|
|
52
52
|
* Props forwarded to the backdrop slot.
|
|
53
|
-
* By default, the
|
|
53
|
+
* By default, the available props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
|
|
54
54
|
*/
|
|
55
55
|
backdrop: SlotProps<React.ElementType<BackdropProps>, DrawerBackdropSlotPropsOverrides, DrawerOwnerState>;
|
|
56
56
|
/**
|
|
57
57
|
* Props forwarded to the docked slot.
|
|
58
|
-
* By default, the
|
|
58
|
+
* By default, the available props are based on a div element.
|
|
59
59
|
*/
|
|
60
60
|
docked: SlotProps<'div', DrawerDockedSlotPropsOverrides, DrawerOwnerState>;
|
|
61
61
|
/**
|
|
62
62
|
* Props forwarded to the paper slot.
|
|
63
|
-
* By default, the
|
|
63
|
+
* By default, the available props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
64
64
|
*/
|
|
65
65
|
paper: SlotProps<React.ElementType<PaperProps>, DrawerPaperSlotPropsOverrides, DrawerOwnerState>;
|
|
66
66
|
/**
|
|
67
67
|
* Props forwarded to the transition slot.
|
|
68
|
-
* By default, the
|
|
68
|
+
* By default, the available props are based on the [Slide](https://mui.com/material-ui/api/slide/#props) component.
|
|
69
69
|
*/
|
|
70
70
|
transition: SlotProps<React.ElementType, TransitionProps & DrawerTransitionSlotPropsOverrides, DrawerOwnerState>;
|
|
71
71
|
}>;
|
|
@@ -137,7 +137,7 @@ export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'childre
|
|
|
137
137
|
variant?: 'permanent' | 'persistent' | 'temporary';
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
// omit `slots` and `slotProps` to prevent
|
|
140
|
+
// omit `slots` and `slotProps` to prevent recursion
|
|
141
141
|
export interface DrawerOwnerState extends Omit<DrawerProps, 'slots' | 'slotProps'> {}
|
|
142
142
|
|
|
143
143
|
/**
|