@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
package/esm/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/esm/Tabs/Tabs.js
CHANGED
|
@@ -638,6 +638,11 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
638
638
|
}
|
|
639
639
|
return undefined;
|
|
640
640
|
}, [scrollable, scrollButtons, updateScrollObserver, childrenProp?.length]);
|
|
641
|
+
React.useEffect(() => {
|
|
642
|
+
if (scrollable && scrollButtons === 'auto' && (displayEndScroll || displayStartScroll)) {
|
|
643
|
+
scrollSelectedIntoView(true);
|
|
644
|
+
}
|
|
645
|
+
}, [displayEndScroll, displayStartScroll, scrollable, scrollButtons, scrollSelectedIntoView]);
|
|
641
646
|
React.useEffect(() => {
|
|
642
647
|
setMounted(true);
|
|
643
648
|
}, []);
|
|
@@ -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
|
}>;
|
|
@@ -442,7 +442,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
|
|
|
442
442
|
/**
|
|
443
443
|
* 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).
|
|
444
444
|
*/
|
|
445
|
-
type: PropTypes
|
|
445
|
+
type: PropTypes.string,
|
|
446
446
|
/**
|
|
447
447
|
* The value of the `input` element, required for a controlled component.
|
|
448
448
|
*/
|
package/esm/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
|
}>;
|
package/esm/index.js
CHANGED
|
@@ -18,7 +18,7 @@ interface SwitchBaseSlots {
|
|
|
18
18
|
type SwitchBaseSlotsAndSlotProps = CreateSlotsAndSlotProps<SwitchBaseSlots, {
|
|
19
19
|
/**
|
|
20
20
|
* Props forwarded to the root slot.
|
|
21
|
-
* By default, the
|
|
21
|
+
* By default, the available props are based on the [ButtonBase](https://mui.com/material-ui/api/button-base/#props) component.
|
|
22
22
|
*/
|
|
23
23
|
root: SlotProps<React.ElementType<ButtonBaseProps>, {}, SwitchBaseOwnerState>;
|
|
24
24
|
/**
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const amET = {
|
|
2
|
+
components: {
|
|
3
|
+
MuiBreadcrumbs: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
expandText: 'መንገድ አሳይ'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
MuiTablePagination: {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
getItemAriaLabel: type => {
|
|
11
|
+
if (type === 'first') {
|
|
12
|
+
return 'ወደ መጀመሪያው ገጽ ይሂዱ';
|
|
13
|
+
}
|
|
14
|
+
if (type === 'last') {
|
|
15
|
+
return 'ወደ መጨረሻው ገጽ ይሂዱ';
|
|
16
|
+
}
|
|
17
|
+
if (type === 'next') {
|
|
18
|
+
return 'ወደ ቀጣዩ ገጽ ይሂዱ';
|
|
19
|
+
}
|
|
20
|
+
// if (type === 'previous') {
|
|
21
|
+
return 'ወደ ቀዳሚው ገጽ ይሂዱ';
|
|
22
|
+
},
|
|
23
|
+
labelRowsPerPage: 'ረድፎች በአንድ ገጽ:',
|
|
24
|
+
labelDisplayedRows: ({
|
|
25
|
+
from,
|
|
26
|
+
to,
|
|
27
|
+
count
|
|
28
|
+
}) => `${from}-${to} ከ ${count !== -1 ? count : `${to} በላይ`}`
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
MuiRating: {
|
|
32
|
+
defaultProps: {
|
|
33
|
+
getLabelText: value => `${value} ኮከ${value !== 1 ? 'ቦች' : 'ብ'}`,
|
|
34
|
+
emptyLabelText: 'ባዶ'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
MuiAutocomplete: {
|
|
38
|
+
defaultProps: {
|
|
39
|
+
clearText: 'አጽዳ',
|
|
40
|
+
closeText: 'ዝጋ',
|
|
41
|
+
loadingText: 'በመጫን ላይ…',
|
|
42
|
+
noOptionsText: 'አማራጮች የሉም',
|
|
43
|
+
openText: 'ክፈት'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
MuiAlert: {
|
|
47
|
+
defaultProps: {
|
|
48
|
+
closeText: 'ዝጋ'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
MuiPagination: {
|
|
52
|
+
defaultProps: {
|
|
53
|
+
'aria-label': 'የገጽ አሰሳ',
|
|
54
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
55
|
+
if (type === 'page') {
|
|
56
|
+
return `${selected ? '' : 'ወደ '}ገጽ ${page}${selected ? '' : ' ሂድ'}`;
|
|
57
|
+
}
|
|
58
|
+
if (type === 'first') {
|
|
59
|
+
return 'ወደ መጀመሪያው ገጽ ይሂዱ';
|
|
60
|
+
}
|
|
61
|
+
if (type === 'last') {
|
|
62
|
+
return 'ወደ መጨረሻው ገጽ ይሂዱ';
|
|
63
|
+
}
|
|
64
|
+
if (type === 'next') {
|
|
65
|
+
return 'ወደ ቀጣዩ ገጽ ይሂዱ';
|
|
66
|
+
}
|
|
67
|
+
// if (type === 'previous') {
|
|
68
|
+
return 'ወደ ቀዳሚው ገጽ ይሂዱ';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const arEG = {
|
|
2
|
+
components: {
|
|
3
|
+
MuiBreadcrumbs: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
expandText: 'إظهار المسار'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
MuiTablePagination: {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
getItemAriaLabel: type => {
|
|
11
|
+
if (type === 'first') {
|
|
12
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
13
|
+
}
|
|
14
|
+
if (type === 'last') {
|
|
15
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
16
|
+
}
|
|
17
|
+
if (type === 'next') {
|
|
18
|
+
return 'انتقل إلى الصفحة التالية';
|
|
19
|
+
}
|
|
20
|
+
// if (type === 'previous') {
|
|
21
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
22
|
+
},
|
|
23
|
+
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
|
|
24
|
+
labelDisplayedRows: ({
|
|
25
|
+
from,
|
|
26
|
+
to,
|
|
27
|
+
count
|
|
28
|
+
}) => `${from}–${to} من ${count !== -1 ? count : ` أكثر من${to}`}`
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
MuiRating: {
|
|
32
|
+
defaultProps: {
|
|
33
|
+
getLabelText: value => `${value} ${value !== 1 ? 'نجوم' : 'نجمة'}`,
|
|
34
|
+
emptyLabelText: 'فارغ'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
MuiAutocomplete: {
|
|
38
|
+
defaultProps: {
|
|
39
|
+
clearText: 'مسح',
|
|
40
|
+
closeText: 'إغلاق',
|
|
41
|
+
loadingText: 'جار التحميل...',
|
|
42
|
+
noOptionsText: 'لا يوجد خيارات',
|
|
43
|
+
openText: 'فتح'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
MuiAlert: {
|
|
47
|
+
defaultProps: {
|
|
48
|
+
closeText: 'إغلاق'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
MuiPagination: {
|
|
52
|
+
defaultProps: {
|
|
53
|
+
'aria-label': 'التنقل عبر الصفحات',
|
|
54
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
55
|
+
if (type === 'page') {
|
|
56
|
+
return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
|
|
57
|
+
}
|
|
58
|
+
if (type === 'first') {
|
|
59
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
60
|
+
}
|
|
61
|
+
if (type === 'last') {
|
|
62
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
63
|
+
}
|
|
64
|
+
if (type === 'next') {
|
|
65
|
+
return 'انتقل إلى الصفحة التالية';
|
|
66
|
+
}
|
|
67
|
+
// if (type === 'previous') {
|
|
68
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const arSA = {
|
|
2
|
+
components: {
|
|
3
|
+
MuiBreadcrumbs: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
expandText: 'إظهار المسار'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
MuiTablePagination: {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
getItemAriaLabel: type => {
|
|
11
|
+
if (type === 'first') {
|
|
12
|
+
return 'الانتقال إلى الصفحة الأولى';
|
|
13
|
+
}
|
|
14
|
+
if (type === 'last') {
|
|
15
|
+
return 'الانتقال إلى الصفحة الأخيرة';
|
|
16
|
+
}
|
|
17
|
+
if (type === 'next') {
|
|
18
|
+
return 'الانتقال إلى الصفحة التالية';
|
|
19
|
+
}
|
|
20
|
+
// if (type === 'previous') {
|
|
21
|
+
return 'الانتقال إلى الصفحة السابقة';
|
|
22
|
+
},
|
|
23
|
+
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
|
|
24
|
+
labelDisplayedRows: ({
|
|
25
|
+
from,
|
|
26
|
+
to,
|
|
27
|
+
count
|
|
28
|
+
}) => `${from}–${to} من ${count !== -1 ? count : ` أكثر من${to}`}`
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
MuiRating: {
|
|
32
|
+
defaultProps: {
|
|
33
|
+
getLabelText: value => `${value} ${value !== 1 ? 'نجوم' : 'نجمة'}`,
|
|
34
|
+
emptyLabelText: 'فارغ'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
MuiAutocomplete: {
|
|
38
|
+
defaultProps: {
|
|
39
|
+
clearText: 'مسح',
|
|
40
|
+
closeText: 'إغلاق',
|
|
41
|
+
loadingText: 'جار التحميل...',
|
|
42
|
+
noOptionsText: 'لا توجد خيارات',
|
|
43
|
+
openText: 'فتح'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
MuiAlert: {
|
|
47
|
+
defaultProps: {
|
|
48
|
+
closeText: 'إغلاق'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
MuiPagination: {
|
|
52
|
+
defaultProps: {
|
|
53
|
+
'aria-label': 'التنقل عبر الصفحات',
|
|
54
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
55
|
+
if (type === 'page') {
|
|
56
|
+
return `${selected ? '' : 'الانتقال إلى '} صفحة ${page}`;
|
|
57
|
+
}
|
|
58
|
+
if (type === 'first') {
|
|
59
|
+
return 'الانتقال إلى الصفحة الأولى';
|
|
60
|
+
}
|
|
61
|
+
if (type === 'last') {
|
|
62
|
+
return 'الانتقال الي الصفحة الأخيرة';
|
|
63
|
+
}
|
|
64
|
+
if (type === 'next') {
|
|
65
|
+
return 'الانتقال إلى الصفحة التالية';
|
|
66
|
+
}
|
|
67
|
+
// if (type === 'previous') {
|
|
68
|
+
return 'الانتقال إلى الصفحة السابقة';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const arSD = {
|
|
2
|
+
components: {
|
|
3
|
+
MuiBreadcrumbs: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
expandText: 'إظهار المسار'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
MuiTablePagination: {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
getItemAriaLabel: type => {
|
|
11
|
+
if (type === 'first') {
|
|
12
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
13
|
+
}
|
|
14
|
+
if (type === 'last') {
|
|
15
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
16
|
+
}
|
|
17
|
+
if (type === 'next') {
|
|
18
|
+
return 'انتقل إلى الصفحة التالية';
|
|
19
|
+
}
|
|
20
|
+
// if (type === 'previous') {
|
|
21
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
22
|
+
},
|
|
23
|
+
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
|
|
24
|
+
labelDisplayedRows: ({
|
|
25
|
+
from,
|
|
26
|
+
to,
|
|
27
|
+
count
|
|
28
|
+
}) => `${from}–${to} من ${count !== -1 ? count : ` أكثر من${to}`}`
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
MuiRating: {
|
|
32
|
+
defaultProps: {
|
|
33
|
+
getLabelText: value => `${value} ${value !== 1 ? 'نجوم' : 'نجمة'}`,
|
|
34
|
+
emptyLabelText: 'فارغ'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
MuiAutocomplete: {
|
|
38
|
+
defaultProps: {
|
|
39
|
+
clearText: 'مسح',
|
|
40
|
+
closeText: 'إغلاق',
|
|
41
|
+
loadingText: 'جار التحميل...',
|
|
42
|
+
noOptionsText: 'لا يوجد خيارات',
|
|
43
|
+
openText: 'فتح'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
MuiAlert: {
|
|
47
|
+
defaultProps: {
|
|
48
|
+
closeText: 'إغلاق'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
MuiPagination: {
|
|
52
|
+
defaultProps: {
|
|
53
|
+
'aria-label': 'التنقل عبر الصفحات',
|
|
54
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
55
|
+
if (type === 'page') {
|
|
56
|
+
return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
|
|
57
|
+
}
|
|
58
|
+
if (type === 'first') {
|
|
59
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
60
|
+
}
|
|
61
|
+
if (type === 'last') {
|
|
62
|
+
return 'انتقل الي الصفحة الأخيرة';
|
|
63
|
+
}
|
|
64
|
+
if (type === 'next') {
|
|
65
|
+
return 'انتقل إلى الصفحة التالية';
|
|
66
|
+
}
|
|
67
|
+
// if (type === 'previous') {
|
|
68
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export const azAZ = {
|
|
2
|
+
components: {
|
|
3
|
+
MuiBreadcrumbs: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
expandText: 'Yolu göstər'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
MuiTablePagination: {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
getItemAriaLabel: type => {
|
|
11
|
+
if (type === 'first') {
|
|
12
|
+
return 'Birinci səhifəyə keç';
|
|
13
|
+
}
|
|
14
|
+
if (type === 'last') {
|
|
15
|
+
return 'Sonuncu səhifəyə keç';
|
|
16
|
+
}
|
|
17
|
+
if (type === 'next') {
|
|
18
|
+
return 'Növbəti səhifəyə keç';
|
|
19
|
+
}
|
|
20
|
+
// if (type === 'previous') {
|
|
21
|
+
return 'Əvvəlki səhifəyə keç';
|
|
22
|
+
},
|
|
23
|
+
labelRowsPerPage: 'Səhifəyə düşən sətrlər:'
|
|
24
|
+
// labelDisplayedRows: ({ from, to, count }) =>
|
|
25
|
+
// `${from}–${to} dən ${count !== -1 ? count : `more than ${to}`}`,
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
MuiRating: {
|
|
29
|
+
defaultProps: {
|
|
30
|
+
getLabelText: value => {
|
|
31
|
+
let pluralForm = 'Ulduz';
|
|
32
|
+
const lastDigit = value % 10;
|
|
33
|
+
if (lastDigit > 1 && lastDigit < 5) {
|
|
34
|
+
pluralForm = 'Ulduzlar';
|
|
35
|
+
}
|
|
36
|
+
return `${value} ${pluralForm}`;
|
|
37
|
+
},
|
|
38
|
+
emptyLabelText: 'Boş'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
MuiAutocomplete: {
|
|
42
|
+
defaultProps: {
|
|
43
|
+
clearText: 'Silmək',
|
|
44
|
+
closeText: 'Bağlamaq',
|
|
45
|
+
loadingText: 'Yüklənir…',
|
|
46
|
+
noOptionsText: 'Seçimlər mövcud deyil',
|
|
47
|
+
openText: 'Открыть'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
MuiAlert: {
|
|
51
|
+
defaultProps: {
|
|
52
|
+
closeText: 'Bağlamaq'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
MuiPagination: {
|
|
56
|
+
defaultProps: {
|
|
57
|
+
'aria-label': 'Səhifənin naviqasiyası',
|
|
58
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
59
|
+
if (type === 'page') {
|
|
60
|
+
return `${page} ${selected ? 'səhifə' : 'səhifəyə keç'}`;
|
|
61
|
+
}
|
|
62
|
+
if (type === 'first') {
|
|
63
|
+
return 'Birinci səhifəyə keç';
|
|
64
|
+
}
|
|
65
|
+
if (type === 'last') {
|
|
66
|
+
return 'Sonuncu səhifəyə keç';
|
|
67
|
+
}
|
|
68
|
+
if (type === 'next') {
|
|
69
|
+
return 'Növbəti səhifəyə keç';
|
|
70
|
+
}
|
|
71
|
+
// if (type === 'previous') {
|
|
72
|
+
return 'Əvvəlki səhifəyə keç';
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export const beBY = {
|
|
2
|
+
components: {
|
|
3
|
+
MuiBreadcrumbs: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
expandText: 'Паказаць шлях'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
MuiTablePagination: {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
getItemAriaLabel: type => {
|
|
11
|
+
if (type === 'first') {
|
|
12
|
+
return 'Перайсці на першую старонку';
|
|
13
|
+
}
|
|
14
|
+
if (type === 'last') {
|
|
15
|
+
return 'Перайсці на апошнюю старонку';
|
|
16
|
+
}
|
|
17
|
+
if (type === 'next') {
|
|
18
|
+
return 'Перайсці на наступную старонку';
|
|
19
|
+
}
|
|
20
|
+
// if (type === 'previous') {
|
|
21
|
+
return 'Перайсці на папярэднюю старонку';
|
|
22
|
+
},
|
|
23
|
+
labelRowsPerPage: 'Радкоў на старонцы:',
|
|
24
|
+
labelDisplayedRows: ({
|
|
25
|
+
from,
|
|
26
|
+
to,
|
|
27
|
+
count
|
|
28
|
+
}) => `${from}–${to} з ${count !== -1 ? count : `больш чым ${to}`}`
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
MuiRating: {
|
|
32
|
+
defaultProps: {
|
|
33
|
+
getLabelText: value => {
|
|
34
|
+
let pluralForm = 'Зорак';
|
|
35
|
+
const lastDigit = value % 10;
|
|
36
|
+
if (lastDigit > 1 && lastDigit < 5 && (value < 10 || value > 20)) {
|
|
37
|
+
pluralForm = 'Зоркі';
|
|
38
|
+
} else if (lastDigit === 1 && value % 100 !== 11) {
|
|
39
|
+
pluralForm = 'Зорка';
|
|
40
|
+
}
|
|
41
|
+
return `${value} ${pluralForm}`;
|
|
42
|
+
},
|
|
43
|
+
emptyLabelText: 'Рэйтынг адсутнічае'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
MuiAutocomplete: {
|
|
47
|
+
defaultProps: {
|
|
48
|
+
clearText: 'Ачысціць',
|
|
49
|
+
closeText: 'Закрыць',
|
|
50
|
+
loadingText: 'Загрузка…',
|
|
51
|
+
noOptionsText: 'Няма варыянтаў',
|
|
52
|
+
openText: 'Адкрыць'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
MuiAlert: {
|
|
56
|
+
defaultProps: {
|
|
57
|
+
closeText: 'Закрыць'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
MuiPagination: {
|
|
61
|
+
defaultProps: {
|
|
62
|
+
'aria-label': 'Навігацыя па старонкам',
|
|
63
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
64
|
+
if (type === 'page') {
|
|
65
|
+
if (selected) {
|
|
66
|
+
return `${page} старонка`;
|
|
67
|
+
}
|
|
68
|
+
return `Перайсці на ${page} старонку`;
|
|
69
|
+
}
|
|
70
|
+
if (type === 'first') {
|
|
71
|
+
return 'Перайсці на першую старонку';
|
|
72
|
+
}
|
|
73
|
+
if (type === 'last') {
|
|
74
|
+
return 'Перайсці на апошнюю старонку';
|
|
75
|
+
}
|
|
76
|
+
if (type === 'next') {
|
|
77
|
+
return 'Перайсці на наступную старонку';
|
|
78
|
+
}
|
|
79
|
+
// if (type === 'previous') {
|
|
80
|
+
return 'Перайсці на папярэднюю старонку';
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|