@mui/material 5.14.13 → 5.14.15
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/AppBar/AppBar.d.ts +4 -1
- package/AppBar/AppBar.js +1 -1
- package/AppBar/appBarClasses.d.ts +8 -0
- package/AppBar/appBarClasses.js +1 -1
- package/AvatarGroup/AvatarGroup.d.ts +6 -0
- package/AvatarGroup/AvatarGroup.js +12 -3
- package/CHANGELOG.md +146 -0
- package/Checkbox/Checkbox.js +1 -1
- package/InputLabel/InputLabel.js +4 -3
- package/Pagination/Pagination.d.ts +3 -6
- package/Pagination/Pagination.js +1 -1
- package/Radio/Radio.js +1 -1
- package/Tabs/Tabs.js +30 -5
- package/ToggleButton/toggleButtonClasses.d.ts +2 -0
- package/ToggleButton/toggleButtonClasses.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -0
- package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/index.js +1 -1
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/AppBar/appBarClasses.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +12 -3
- package/legacy/Checkbox/Checkbox.js +1 -1
- package/legacy/InputLabel/InputLabel.js +4 -3
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/Tabs/Tabs.js +30 -5
- package/legacy/ToggleButton/toggleButtonClasses.js +1 -1
- package/legacy/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +244 -166
- package/locale/index.d.ts +1 -0
- package/locale/index.js +120 -46
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/AppBar/appBarClasses.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +12 -3
- package/modern/Checkbox/Checkbox.js +1 -1
- package/modern/InputLabel/InputLabel.js +4 -3
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/Radio/Radio.js +1 -1
- package/modern/Tabs/Tabs.js +27 -5
- package/modern/ToggleButton/toggleButtonClasses.js +1 -1
- package/modern/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +120 -46
- package/node/Accordion/Accordion.js +2 -2
- package/node/Accordion/AccordionContext.js +2 -2
- package/node/Accordion/index.js +2 -2
- package/node/AccordionActions/AccordionActions.js +2 -2
- package/node/AccordionActions/index.js +2 -2
- package/node/AccordionDetails/AccordionDetails.js +2 -2
- package/node/AccordionDetails/index.js +2 -2
- package/node/AccordionSummary/AccordionSummary.js +2 -2
- package/node/AccordionSummary/index.js +2 -2
- package/node/Alert/Alert.js +2 -2
- package/node/Alert/index.js +2 -2
- package/node/AlertTitle/AlertTitle.js +2 -2
- package/node/AlertTitle/index.js +2 -2
- package/node/AppBar/AppBar.js +3 -3
- package/node/AppBar/appBarClasses.js +1 -1
- package/node/AppBar/index.js +2 -2
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/Autocomplete/index.js +2 -2
- package/node/Avatar/Avatar.js +2 -2
- package/node/Avatar/index.js +2 -2
- package/node/AvatarGroup/AvatarGroup.js +13 -5
- package/node/AvatarGroup/index.js +2 -2
- package/node/Backdrop/Backdrop.js +2 -2
- package/node/Backdrop/index.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/Badge/index.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +2 -2
- package/node/BottomNavigation/index.js +2 -2
- package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/node/BottomNavigationAction/index.js +2 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +2 -2
- package/node/Breadcrumbs/Breadcrumbs.js +2 -2
- package/node/Breadcrumbs/index.js +2 -2
- package/node/Button/Button.js +2 -2
- package/node/Button/index.js +2 -2
- package/node/ButtonBase/ButtonBase.js +2 -2
- package/node/ButtonBase/Ripple.js +2 -2
- package/node/ButtonBase/TouchRipple.js +2 -2
- package/node/ButtonBase/index.js +2 -2
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- package/node/ButtonGroup/ButtonGroupButtonContext.js +2 -2
- package/node/ButtonGroup/ButtonGroupContext.js +2 -2
- package/node/ButtonGroup/index.js +2 -2
- package/node/Card/Card.js +2 -2
- package/node/Card/index.js +2 -2
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CardActionArea/index.js +2 -2
- package/node/CardActions/CardActions.js +2 -2
- package/node/CardActions/index.js +2 -2
- package/node/CardContent/CardContent.js +2 -2
- package/node/CardContent/index.js +2 -2
- package/node/CardHeader/CardHeader.js +2 -2
- package/node/CardHeader/index.js +2 -2
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/CardMedia/index.js +2 -2
- package/node/Checkbox/Checkbox.js +3 -3
- package/node/Checkbox/index.js +2 -2
- package/node/Chip/Chip.js +2 -2
- package/node/Chip/index.js +2 -2
- package/node/CircularProgress/CircularProgress.js +2 -2
- package/node/CircularProgress/index.js +2 -2
- package/node/Collapse/Collapse.js +2 -2
- package/node/Collapse/index.js +2 -2
- package/node/Container/index.js +2 -2
- package/node/CssBaseline/CssBaseline.js +2 -2
- package/node/Dialog/Dialog.js +2 -2
- package/node/Dialog/DialogContext.js +2 -2
- package/node/Dialog/index.js +2 -2
- package/node/DialogActions/DialogActions.js +2 -2
- package/node/DialogActions/index.js +2 -2
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/DialogContent/index.js +2 -2
- package/node/DialogContentText/DialogContentText.js +2 -2
- package/node/DialogContentText/index.js +2 -2
- package/node/DialogTitle/DialogTitle.js +2 -2
- package/node/DialogTitle/index.js +2 -2
- package/node/Divider/Divider.js +2 -2
- package/node/Divider/index.js +2 -2
- package/node/Drawer/Drawer.js +2 -2
- package/node/Drawer/index.js +2 -2
- package/node/Fab/Fab.js +2 -2
- package/node/Fab/index.js +2 -2
- package/node/Fade/Fade.js +2 -2
- package/node/FilledInput/FilledInput.js +2 -2
- package/node/FilledInput/index.js +2 -2
- package/node/FormControl/FormControl.js +2 -2
- package/node/FormControl/FormControlContext.js +2 -2
- package/node/FormControl/index.js +2 -2
- package/node/FormControl/useFormControl.js +2 -2
- package/node/FormControlLabel/FormControlLabel.js +2 -2
- package/node/FormControlLabel/index.js +2 -2
- package/node/FormGroup/FormGroup.js +2 -2
- package/node/FormGroup/index.js +2 -2
- package/node/FormHelperText/FormHelperText.js +2 -2
- package/node/FormHelperText/index.js +2 -2
- package/node/FormLabel/FormLabel.js +2 -2
- package/node/FormLabel/index.js +2 -2
- package/node/GlobalStyles/GlobalStyles.js +2 -2
- package/node/Grid/Grid.js +2 -2
- package/node/Grid/GridContext.js +2 -2
- package/node/Grid/index.js +2 -2
- package/node/Grow/Grow.js +2 -2
- package/node/Hidden/Hidden.js +2 -2
- package/node/Hidden/HiddenCss.js +2 -2
- package/node/Hidden/HiddenJs.js +2 -2
- package/node/Hidden/withWidth.js +2 -2
- package/node/Icon/Icon.js +2 -2
- package/node/Icon/index.js +2 -2
- package/node/IconButton/IconButton.js +2 -2
- package/node/IconButton/index.js +2 -2
- package/node/ImageList/ImageList.js +2 -2
- package/node/ImageList/ImageListContext.js +2 -2
- package/node/ImageList/index.js +2 -2
- package/node/ImageListItem/ImageListItem.js +2 -2
- package/node/ImageListItem/index.js +2 -2
- package/node/ImageListItemBar/ImageListItemBar.js +2 -2
- package/node/ImageListItemBar/index.js +2 -2
- package/node/Input/Input.js +2 -2
- package/node/Input/index.js +2 -2
- package/node/InputAdornment/InputAdornment.js +2 -2
- package/node/InputAdornment/index.js +2 -2
- package/node/InputBase/InputBase.js +2 -2
- package/node/InputBase/index.js +2 -2
- package/node/InputLabel/InputLabel.js +6 -5
- package/node/InputLabel/index.js +2 -2
- package/node/LinearProgress/LinearProgress.js +2 -2
- package/node/LinearProgress/index.js +2 -2
- package/node/Link/Link.js +2 -2
- package/node/Link/index.js +2 -2
- package/node/List/List.js +2 -2
- package/node/List/ListContext.js +2 -2
- package/node/List/index.js +2 -2
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItem/index.js +2 -2
- package/node/ListItemAvatar/ListItemAvatar.js +2 -2
- package/node/ListItemAvatar/index.js +2 -2
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemButton/index.js +2 -2
- package/node/ListItemIcon/ListItemIcon.js +2 -2
- package/node/ListItemIcon/index.js +2 -2
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/node/ListItemSecondaryAction/index.js +2 -2
- package/node/ListItemText/ListItemText.js +2 -2
- package/node/ListItemText/index.js +2 -2
- package/node/ListSubheader/ListSubheader.js +2 -2
- package/node/ListSubheader/index.js +2 -2
- package/node/Menu/Menu.js +2 -2
- package/node/Menu/index.js +2 -2
- package/node/MenuItem/MenuItem.js +2 -2
- package/node/MenuItem/index.js +2 -2
- package/node/MenuList/MenuList.js +2 -2
- package/node/MobileStepper/MobileStepper.js +2 -2
- package/node/MobileStepper/index.js +2 -2
- package/node/Modal/Modal.js +2 -2
- package/node/Modal/index.js +2 -2
- package/node/NativeSelect/NativeSelect.js +2 -2
- package/node/NativeSelect/NativeSelectInput.js +2 -2
- package/node/NativeSelect/index.js +2 -2
- package/node/OutlinedInput/NotchedOutline.js +2 -2
- package/node/OutlinedInput/OutlinedInput.js +2 -2
- package/node/OutlinedInput/index.js +2 -2
- package/node/Pagination/Pagination.js +3 -3
- package/node/Pagination/index.js +2 -2
- package/node/PaginationItem/PaginationItem.js +2 -2
- package/node/PaginationItem/index.js +2 -2
- package/node/Paper/Paper.js +2 -2
- package/node/Paper/index.js +2 -2
- package/node/Popover/Popover.js +2 -2
- package/node/Popover/index.js +2 -2
- package/node/Popper/Popper.js +2 -2
- package/node/Radio/Radio.js +3 -3
- package/node/Radio/RadioButtonIcon.js +2 -2
- package/node/Radio/index.js +2 -2
- package/node/RadioGroup/RadioGroup.js +2 -2
- package/node/RadioGroup/RadioGroupContext.js +2 -2
- package/node/RadioGroup/useRadioGroup.js +2 -2
- package/node/Rating/Rating.js +2 -2
- package/node/Rating/index.js +2 -2
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/node/ScopedCssBaseline/index.js +2 -2
- package/node/Select/Select.js +2 -2
- package/node/Select/SelectInput.js +2 -2
- package/node/Select/index.js +2 -2
- package/node/Skeleton/Skeleton.js +2 -2
- package/node/Skeleton/index.js +2 -2
- package/node/Slide/Slide.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Slider/SliderValueLabel.js +2 -2
- package/node/Slider/index.js +2 -2
- package/node/Snackbar/Snackbar.js +2 -2
- package/node/Snackbar/index.js +2 -2
- package/node/SnackbarContent/SnackbarContent.js +2 -2
- package/node/SnackbarContent/index.js +2 -2
- package/node/SpeedDial/SpeedDial.js +2 -2
- package/node/SpeedDial/index.js +2 -2
- package/node/SpeedDialAction/SpeedDialAction.js +2 -2
- package/node/SpeedDialAction/index.js +2 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/node/SpeedDialIcon/index.js +2 -2
- package/node/Step/Step.js +2 -2
- package/node/Step/StepContext.js +2 -2
- package/node/Step/index.js +2 -2
- package/node/StepButton/StepButton.js +2 -2
- package/node/StepButton/index.js +2 -2
- package/node/StepConnector/StepConnector.js +2 -2
- package/node/StepConnector/index.js +2 -2
- package/node/StepContent/StepContent.js +2 -2
- package/node/StepContent/index.js +2 -2
- package/node/StepIcon/StepIcon.js +2 -2
- package/node/StepIcon/index.js +2 -2
- package/node/StepLabel/StepLabel.js +2 -2
- package/node/StepLabel/index.js +2 -2
- package/node/Stepper/Stepper.js +2 -2
- package/node/Stepper/StepperContext.js +2 -2
- package/node/Stepper/index.js +2 -2
- package/node/SvgIcon/SvgIcon.js +2 -2
- package/node/SvgIcon/index.js +2 -2
- package/node/SwipeableDrawer/SwipeArea.js +2 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/node/Switch/Switch.js +2 -2
- package/node/Switch/index.js +2 -2
- package/node/Tab/Tab.js +2 -2
- package/node/Tab/index.js +2 -2
- package/node/TabScrollButton/TabScrollButton.js +2 -2
- package/node/TabScrollButton/index.js +2 -2
- package/node/Table/Table.js +2 -2
- package/node/Table/TableContext.js +2 -2
- package/node/Table/Tablelvl2Context.js +2 -2
- package/node/Table/index.js +2 -2
- package/node/TableBody/TableBody.js +2 -2
- package/node/TableBody/index.js +2 -2
- package/node/TableCell/TableCell.js +2 -2
- package/node/TableCell/index.js +2 -2
- package/node/TableContainer/TableContainer.js +2 -2
- package/node/TableContainer/index.js +2 -2
- package/node/TableFooter/TableFooter.js +2 -2
- package/node/TableFooter/index.js +2 -2
- package/node/TableHead/TableHead.js +2 -2
- package/node/TableHead/index.js +2 -2
- package/node/TablePagination/TablePagination.js +2 -2
- package/node/TablePagination/TablePaginationActions.js +2 -2
- package/node/TablePagination/index.js +2 -2
- package/node/TableRow/TableRow.js +2 -2
- package/node/TableRow/index.js +2 -2
- package/node/TableSortLabel/TableSortLabel.js +2 -2
- package/node/TableSortLabel/index.js +2 -2
- package/node/Tabs/ScrollbarSize.js +2 -2
- package/node/Tabs/Tabs.js +32 -7
- package/node/Tabs/index.js +2 -2
- package/node/TextField/TextField.js +2 -2
- package/node/TextField/index.js +2 -2
- package/node/ToggleButton/ToggleButton.js +2 -2
- package/node/ToggleButton/index.js +2 -2
- package/node/ToggleButton/toggleButtonClasses.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/node/ToggleButtonGroup/index.js +2 -2
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/node/Toolbar/Toolbar.js +2 -2
- package/node/Toolbar/index.js +2 -2
- package/node/Tooltip/Tooltip.js +2 -2
- package/node/Tooltip/index.js +2 -2
- package/node/Typography/Typography.js +2 -2
- package/node/Typography/index.js +2 -2
- package/node/Unstable_Grid2/index.js +2 -2
- package/node/Zoom/Zoom.js +2 -2
- package/node/index.js +3 -3
- package/node/internal/SwitchBase.js +2 -2
- package/node/internal/svg-icons/Add.js +2 -2
- package/node/internal/svg-icons/ArrowDownward.js +2 -2
- package/node/internal/svg-icons/ArrowDropDown.js +2 -2
- package/node/internal/svg-icons/Cancel.js +2 -2
- package/node/internal/svg-icons/CheckBox.js +2 -2
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +2 -2
- package/node/internal/svg-icons/CheckCircle.js +2 -2
- package/node/internal/svg-icons/Close.js +2 -2
- package/node/internal/svg-icons/ErrorOutline.js +2 -2
- package/node/internal/svg-icons/FirstPage.js +2 -2
- package/node/internal/svg-icons/IndeterminateCheckBox.js +2 -2
- package/node/internal/svg-icons/InfoOutlined.js +2 -2
- package/node/internal/svg-icons/KeyboardArrowLeft.js +2 -2
- package/node/internal/svg-icons/KeyboardArrowRight.js +2 -2
- package/node/internal/svg-icons/LastPage.js +2 -2
- package/node/internal/svg-icons/MoreHoriz.js +2 -2
- package/node/internal/svg-icons/NavigateBefore.js +2 -2
- package/node/internal/svg-icons/NavigateNext.js +2 -2
- package/node/internal/svg-icons/Person.js +2 -2
- package/node/internal/svg-icons/RadioButtonChecked.js +2 -2
- package/node/internal/svg-icons/RadioButtonUnchecked.js +2 -2
- package/node/internal/svg-icons/ReportProblemOutlined.js +2 -2
- package/node/internal/svg-icons/Star.js +2 -2
- package/node/internal/svg-icons/StarBorder.js +2 -2
- package/node/internal/svg-icons/SuccessOutlined.js +2 -2
- package/node/internal/svg-icons/Warning.js +2 -2
- package/node/locale/index.js +121 -47
- package/node/styles/ThemeProvider.js +2 -2
- package/node/styles/index.js +2 -2
- package/node/styles/useTheme.js +2 -2
- package/node/useAutocomplete/index.js +2 -2
- package/node/useMediaQuery/useMediaQuery.js +2 -2
- package/node/useScrollTrigger/useScrollTrigger.js +2 -2
- package/node/useTouchRipple/useTouchRipple.js +2 -2
- package/node/utils/createSvgIcon.js +2 -2
- package/package.json +7 -7
- package/umd/material-ui.development.js +72 -35
- package/umd/material-ui.production.min.js +6 -6
package/locale/index.js
CHANGED
|
@@ -138,7 +138,7 @@ export const arEG = {
|
|
|
138
138
|
return 'انتقل إلى الصفحة التالية';
|
|
139
139
|
}
|
|
140
140
|
// if (type === 'previous') {
|
|
141
|
-
return 'انتقل
|
|
141
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -1849,35 +1849,37 @@ export const idID = {
|
|
|
1849
1849
|
|
|
1850
1850
|
export const isIS = {
|
|
1851
1851
|
components: {
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1852
|
+
MuiBreadcrumbs: {
|
|
1853
|
+
defaultProps: {
|
|
1854
|
+
expandText: 'Sýna slóð'
|
|
1855
|
+
}
|
|
1856
|
+
},
|
|
1857
1857
|
MuiTablePagination: {
|
|
1858
1858
|
defaultProps: {
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
labelRowsPerPage: 'Raðir á síðu:'
|
|
1873
|
-
|
|
1874
|
-
|
|
1859
|
+
getItemAriaLabel: type => {
|
|
1860
|
+
if (type === 'first') {
|
|
1861
|
+
return 'Fara á fyrstu síðu';
|
|
1862
|
+
}
|
|
1863
|
+
if (type === 'last') {
|
|
1864
|
+
return 'Fara á síðustu síðu';
|
|
1865
|
+
}
|
|
1866
|
+
if (type === 'next') {
|
|
1867
|
+
return 'Fara á næstu síðu';
|
|
1868
|
+
}
|
|
1869
|
+
// if (type === 'previous') {
|
|
1870
|
+
return 'Fara á fyrri síðu';
|
|
1871
|
+
},
|
|
1872
|
+
labelRowsPerPage: 'Raðir á síðu:',
|
|
1873
|
+
labelDisplayedRows: ({
|
|
1874
|
+
from,
|
|
1875
|
+
to,
|
|
1876
|
+
count
|
|
1877
|
+
}) => `${from}–${to} af ${count !== -1 ? count : `fleiri enn ${to}`}`
|
|
1875
1878
|
}
|
|
1876
1879
|
},
|
|
1877
|
-
|
|
1878
1880
|
MuiRating: {
|
|
1879
1881
|
defaultProps: {
|
|
1880
|
-
getLabelText: value => `${value} ${value === 1 ? '
|
|
1882
|
+
getLabelText: value => `${value} ${value === 1 ? 'stjarna' : 'stjörnur'}`,
|
|
1881
1883
|
emptyLabelText: 'Tómt'
|
|
1882
1884
|
}
|
|
1883
1885
|
},
|
|
@@ -1894,31 +1896,30 @@ export const isIS = {
|
|
|
1894
1896
|
defaultProps: {
|
|
1895
1897
|
closeText: 'Loka'
|
|
1896
1898
|
}
|
|
1899
|
+
},
|
|
1900
|
+
MuiPagination: {
|
|
1901
|
+
defaultProps: {
|
|
1902
|
+
'aria-label': 'Síðuflakk',
|
|
1903
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
1904
|
+
if (type === 'page') {
|
|
1905
|
+
return `${selected ? 'Síða' : 'Fara á síðu'} ${page}`;
|
|
1906
|
+
}
|
|
1907
|
+
if (type === 'first') {
|
|
1908
|
+
return 'Fara á fyrstu síðu';
|
|
1909
|
+
}
|
|
1910
|
+
if (type === 'last') {
|
|
1911
|
+
return 'Fara á síðustu síðu';
|
|
1912
|
+
}
|
|
1913
|
+
if (type === 'next') {
|
|
1914
|
+
return 'Fara á næstu síðu';
|
|
1915
|
+
}
|
|
1916
|
+
// if (type === 'previous') {
|
|
1917
|
+
return 'Fara á fyrri síðu';
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1897
1920
|
}
|
|
1898
|
-
// MuiPagination: {
|
|
1899
|
-
// defaultProps: {
|
|
1900
|
-
// 'aria-label': 'Pagination navigation',
|
|
1901
|
-
// getItemAriaLabel: (type, page, selected) => {
|
|
1902
|
-
// if (type === 'page') {
|
|
1903
|
-
// return `${selected ? '' : 'Go to '}page ${page}`;
|
|
1904
|
-
// }
|
|
1905
|
-
// if (type === 'first') {
|
|
1906
|
-
// return 'Go to first page';
|
|
1907
|
-
// }
|
|
1908
|
-
// if (type === 'last') {
|
|
1909
|
-
// return 'Go to last page';
|
|
1910
|
-
// }
|
|
1911
|
-
// if (type === 'next') {
|
|
1912
|
-
// return 'Go to next page';
|
|
1913
|
-
// }
|
|
1914
|
-
// // if (type === 'previous') {
|
|
1915
|
-
// return 'Go to previous page';
|
|
1916
|
-
// },
|
|
1917
|
-
// },
|
|
1918
|
-
// },
|
|
1919
1921
|
}
|
|
1920
1922
|
};
|
|
1921
|
-
|
|
1922
1923
|
export const itIT = {
|
|
1923
1924
|
components: {
|
|
1924
1925
|
MuiBreadcrumbs: {
|
|
@@ -2818,6 +2819,79 @@ export const nbNO = {
|
|
|
2818
2819
|
}
|
|
2819
2820
|
}
|
|
2820
2821
|
};
|
|
2822
|
+
export const nnNO = {
|
|
2823
|
+
components: {
|
|
2824
|
+
MuiBreadcrumbs: {
|
|
2825
|
+
defaultProps: {
|
|
2826
|
+
expandText: 'Vis sti'
|
|
2827
|
+
}
|
|
2828
|
+
},
|
|
2829
|
+
MuiTablePagination: {
|
|
2830
|
+
defaultProps: {
|
|
2831
|
+
getItemAriaLabel: type => {
|
|
2832
|
+
if (type === 'first') {
|
|
2833
|
+
return 'Gå til første side';
|
|
2834
|
+
}
|
|
2835
|
+
if (type === 'last') {
|
|
2836
|
+
return 'Gå til siste side';
|
|
2837
|
+
}
|
|
2838
|
+
if (type === 'next') {
|
|
2839
|
+
return 'Gå til neste side';
|
|
2840
|
+
}
|
|
2841
|
+
// if (type === 'previous') {
|
|
2842
|
+
return 'Gå til førre side';
|
|
2843
|
+
},
|
|
2844
|
+
labelRowsPerPage: 'Rader per side:',
|
|
2845
|
+
labelDisplayedRows: ({
|
|
2846
|
+
from,
|
|
2847
|
+
to,
|
|
2848
|
+
count
|
|
2849
|
+
}) => `${from}–${to} av ${count !== -1 ? count : `fleire enn ${to}`}`
|
|
2850
|
+
}
|
|
2851
|
+
},
|
|
2852
|
+
MuiRating: {
|
|
2853
|
+
defaultProps: {
|
|
2854
|
+
getLabelText: value => `${value} stjerne${value !== 1 ? 'r' : ''}`,
|
|
2855
|
+
emptyLabelText: 'Tom'
|
|
2856
|
+
}
|
|
2857
|
+
},
|
|
2858
|
+
MuiAutocomplete: {
|
|
2859
|
+
defaultProps: {
|
|
2860
|
+
clearText: 'Tøm',
|
|
2861
|
+
closeText: 'Lukk',
|
|
2862
|
+
loadingText: 'Lastar inn…',
|
|
2863
|
+
noOptionsText: 'Ingen alternativ',
|
|
2864
|
+
openText: 'Opna'
|
|
2865
|
+
}
|
|
2866
|
+
},
|
|
2867
|
+
MuiAlert: {
|
|
2868
|
+
defaultProps: {
|
|
2869
|
+
closeText: 'Lukk'
|
|
2870
|
+
}
|
|
2871
|
+
},
|
|
2872
|
+
MuiPagination: {
|
|
2873
|
+
defaultProps: {
|
|
2874
|
+
'aria-label': 'Navigasjon for paginering',
|
|
2875
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
2876
|
+
if (type === 'page') {
|
|
2877
|
+
return `${selected ? '' : 'Gå til '}side ${page}`;
|
|
2878
|
+
}
|
|
2879
|
+
if (type === 'first') {
|
|
2880
|
+
return 'Gå til første side';
|
|
2881
|
+
}
|
|
2882
|
+
if (type === 'last') {
|
|
2883
|
+
return 'Gå til siste side';
|
|
2884
|
+
}
|
|
2885
|
+
if (type === 'next') {
|
|
2886
|
+
return 'Gå til neste side';
|
|
2887
|
+
}
|
|
2888
|
+
// if (type === 'previous') {
|
|
2889
|
+
return 'Gå til førre side';
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
};
|
|
2821
2895
|
export const nlNL = {
|
|
2822
2896
|
components: {
|
|
2823
2897
|
MuiBreadcrumbs: {
|
package/modern/AppBar/AppBar.js
CHANGED
|
@@ -157,7 +157,7 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */
|
|
|
157
157
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
158
158
|
* @default 'primary'
|
|
159
159
|
*/
|
|
160
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']), PropTypes.string]),
|
|
160
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
161
161
|
/**
|
|
162
162
|
* If true, the `color` prop is applied in dark mode.
|
|
163
163
|
* @default false
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
|
|
|
3
3
|
export function getAppBarUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiAppBar', slot);
|
|
5
5
|
}
|
|
6
|
-
const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent']);
|
|
6
|
+
const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
|
|
7
7
|
export default appBarClasses;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["children", "className", "component", "componentsProps", "max", "slotProps", "spacing", "total", "variant"];
|
|
5
|
+
const _excluded = ["children", "className", "component", "componentsProps", "max", "renderSurplus", "slotProps", "spacing", "total", "variant"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { isFragment } from 'react-is';
|
|
@@ -13,6 +13,7 @@ import styled from '../styles/styled';
|
|
|
13
13
|
import useThemeProps from '../styles/useThemeProps';
|
|
14
14
|
import Avatar, { avatarClasses } from '../Avatar';
|
|
15
15
|
import avatarGroupClasses, { getAvatarGroupUtilityClass } from './avatarGroupClasses';
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
18
|
const SPACINGS = {
|
|
18
19
|
small: -16,
|
|
@@ -73,6 +74,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
73
74
|
component = 'div',
|
|
74
75
|
componentsProps = {},
|
|
75
76
|
max = 5,
|
|
77
|
+
renderSurplus,
|
|
76
78
|
slotProps = {},
|
|
77
79
|
spacing = 'medium',
|
|
78
80
|
total,
|
|
@@ -102,6 +104,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
102
104
|
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
|
103
105
|
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
104
106
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
107
|
+
const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
|
|
105
108
|
const marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
|
|
106
109
|
const additionalAvatarSlotProps = slotProps.additionalAvatar ?? componentsProps.additionalAvatar;
|
|
107
110
|
return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
|
|
@@ -110,7 +113,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
110
113
|
className: clsx(classes.root, className),
|
|
111
114
|
ref: ref
|
|
112
115
|
}, other, {
|
|
113
|
-
children: [extraAvatars ? /*#__PURE__*/
|
|
116
|
+
children: [extraAvatars ? /*#__PURE__*/_jsx(AvatarGroupAvatar, _extends({
|
|
114
117
|
ownerState: ownerState,
|
|
115
118
|
variant: variant
|
|
116
119
|
}, additionalAvatarSlotProps, {
|
|
@@ -118,7 +121,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
118
121
|
style: _extends({
|
|
119
122
|
marginLeft
|
|
120
123
|
}, additionalAvatarSlotProps?.style),
|
|
121
|
-
children:
|
|
124
|
+
children: extraAvatarsElement
|
|
122
125
|
})) : null, children.slice(0, maxAvatars).reverse().map((child, index) => {
|
|
123
126
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
124
127
|
className: clsx(child.props.className, classes.avatar),
|
|
@@ -176,6 +179,12 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
|
|
|
176
179
|
}
|
|
177
180
|
return null;
|
|
178
181
|
}),
|
|
182
|
+
/**
|
|
183
|
+
* custom renderer of extraAvatars
|
|
184
|
+
* @param {number} surplus number of extra avatars
|
|
185
|
+
* @returns {React.ReactNode} custom element to display
|
|
186
|
+
*/
|
|
187
|
+
renderSurplus: PropTypes.func,
|
|
179
188
|
/**
|
|
180
189
|
* The extra props for the slot components.
|
|
181
190
|
* You can override the existing props or add new ones.
|
|
@@ -39,7 +39,7 @@ const CheckboxRoot = styled(SwitchBase, {
|
|
|
39
39
|
const {
|
|
40
40
|
ownerState
|
|
41
41
|
} = props;
|
|
42
|
-
return [styles.root, ownerState.indeterminate && styles.indeterminate, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];
|
|
42
|
+
return [styles.root, ownerState.indeterminate && styles.indeterminate, styles[`size${capitalize(ownerState.size)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];
|
|
43
43
|
}
|
|
44
44
|
})(({
|
|
45
45
|
theme,
|
|
@@ -42,7 +42,7 @@ const InputLabelRoot = styled(FormLabel, {
|
|
|
42
42
|
} = props;
|
|
43
43
|
return [{
|
|
44
44
|
[`& .${formLabelClasses.asterisk}`]: styles.asterisk
|
|
45
|
-
}, styles.root, ownerState.formControl && styles.formControl, ownerState.size === 'small' && styles.sizeSmall, ownerState.shrink && styles.shrink, !ownerState.disableAnimation && styles.animated, styles[ownerState.variant]];
|
|
45
|
+
}, styles.root, ownerState.formControl && styles.formControl, ownerState.size === 'small' && styles.sizeSmall, ownerState.shrink && styles.shrink, !ownerState.disableAnimation && styles.animated, ownerState.focused && styles.focused, styles[ownerState.variant]];
|
|
46
46
|
}
|
|
47
47
|
})(({
|
|
48
48
|
theme,
|
|
@@ -125,7 +125,7 @@ const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, re
|
|
|
125
125
|
const fcs = formControlState({
|
|
126
126
|
props,
|
|
127
127
|
muiFormControl,
|
|
128
|
-
states: ['size', 'variant', 'required']
|
|
128
|
+
states: ['size', 'variant', 'required', 'focused']
|
|
129
129
|
});
|
|
130
130
|
const ownerState = _extends({}, props, {
|
|
131
131
|
disableAnimation,
|
|
@@ -133,7 +133,8 @@ const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, re
|
|
|
133
133
|
shrink,
|
|
134
134
|
size: fcs.size,
|
|
135
135
|
variant: fcs.variant,
|
|
136
|
-
required: fcs.required
|
|
136
|
+
required: fcs.required,
|
|
137
|
+
focused: fcs.focused
|
|
137
138
|
});
|
|
138
139
|
const classes = useUtilityClasses(ownerState);
|
|
139
140
|
return /*#__PURE__*/_jsx(InputLabelRoot, _extends({
|
|
@@ -169,7 +169,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
169
169
|
* This is important for screen reader users.
|
|
170
170
|
*
|
|
171
171
|
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
172
|
-
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
|
|
172
|
+
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
|
|
173
173
|
* @param {number} page The page number to format.
|
|
174
174
|
* @param {bool} selected If true, the current page is selected.
|
|
175
175
|
* @returns {string}
|
package/modern/Radio/Radio.js
CHANGED
|
@@ -37,7 +37,7 @@ const RadioRoot = styled(SwitchBase, {
|
|
|
37
37
|
const {
|
|
38
38
|
ownerState
|
|
39
39
|
} = props;
|
|
40
|
-
return [styles.root, styles[`color${capitalize(ownerState.color)}`]];
|
|
40
|
+
return [styles.root, ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], styles[`color${capitalize(ownerState.color)}`]];
|
|
41
41
|
}
|
|
42
42
|
})(({
|
|
43
43
|
theme,
|
package/modern/Tabs/Tabs.js
CHANGED
|
@@ -501,23 +501,45 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
501
501
|
updateIndicatorState();
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
|
+
let resizeObserver;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* @type {MutationCallback}
|
|
508
|
+
*/
|
|
509
|
+
const handleMutation = records => {
|
|
510
|
+
records.forEach(record => {
|
|
511
|
+
record.removedNodes.forEach(item => {
|
|
512
|
+
resizeObserver?.unobserve(item);
|
|
513
|
+
});
|
|
514
|
+
record.addedNodes.forEach(item => {
|
|
515
|
+
resizeObserver?.observe(item);
|
|
516
|
+
});
|
|
517
|
+
});
|
|
518
|
+
handleResize();
|
|
519
|
+
updateScrollButtonState();
|
|
520
|
+
};
|
|
504
521
|
const win = ownerWindow(tabsRef.current);
|
|
505
522
|
win.addEventListener('resize', handleResize);
|
|
506
|
-
let
|
|
523
|
+
let mutationObserver;
|
|
507
524
|
if (typeof ResizeObserver !== 'undefined') {
|
|
508
525
|
resizeObserver = new ResizeObserver(handleResize);
|
|
509
526
|
Array.from(tabListRef.current.children).forEach(child => {
|
|
510
527
|
resizeObserver.observe(child);
|
|
511
528
|
});
|
|
512
529
|
}
|
|
530
|
+
if (typeof MutationObserver !== 'undefined') {
|
|
531
|
+
mutationObserver = new MutationObserver(handleMutation);
|
|
532
|
+
mutationObserver.observe(tabListRef.current, {
|
|
533
|
+
childList: true
|
|
534
|
+
});
|
|
535
|
+
}
|
|
513
536
|
return () => {
|
|
514
537
|
handleResize.clear();
|
|
515
538
|
win.removeEventListener('resize', handleResize);
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}
|
|
539
|
+
mutationObserver?.disconnect();
|
|
540
|
+
resizeObserver?.disconnect();
|
|
519
541
|
};
|
|
520
|
-
}, [updateIndicatorState]);
|
|
542
|
+
}, [updateIndicatorState, updateScrollButtonState]);
|
|
521
543
|
|
|
522
544
|
/**
|
|
523
545
|
* Toggle visibility of start and end scroll buttons
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
|
|
|
3
3
|
export function getToggleButtonUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiToggleButton', slot);
|
|
5
5
|
}
|
|
6
|
-
const toggleButtonClasses = generateUtilityClasses('MuiToggleButton', ['root', 'disabled', 'selected', 'standard', 'primary', 'secondary', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
6
|
+
const toggleButtonClasses = generateUtilityClasses('MuiToggleButton', ['root', 'disabled', 'selected', 'standard', 'primary', 'secondary', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'fullWidth']);
|
|
7
7
|
export default toggleButtonClasses;
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
|
|
|
3
3
|
export function getToggleButtonGroupUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiToggleButtonGroup', slot);
|
|
5
5
|
}
|
|
6
|
-
const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical']);
|
|
6
|
+
const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical', 'fullWidth']);
|
|
7
7
|
export default toggleButtonGroupClasses;
|
package/modern/index.js
CHANGED
package/modern/locale/index.js
CHANGED
|
@@ -138,7 +138,7 @@ export const arEG = {
|
|
|
138
138
|
return 'انتقل إلى الصفحة التالية';
|
|
139
139
|
}
|
|
140
140
|
// if (type === 'previous') {
|
|
141
|
-
return 'انتقل
|
|
141
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -1849,35 +1849,37 @@ export const idID = {
|
|
|
1849
1849
|
|
|
1850
1850
|
export const isIS = {
|
|
1851
1851
|
components: {
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1852
|
+
MuiBreadcrumbs: {
|
|
1853
|
+
defaultProps: {
|
|
1854
|
+
expandText: 'Sýna slóð'
|
|
1855
|
+
}
|
|
1856
|
+
},
|
|
1857
1857
|
MuiTablePagination: {
|
|
1858
1858
|
defaultProps: {
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
labelRowsPerPage: 'Raðir á síðu:'
|
|
1873
|
-
|
|
1874
|
-
|
|
1859
|
+
getItemAriaLabel: type => {
|
|
1860
|
+
if (type === 'first') {
|
|
1861
|
+
return 'Fara á fyrstu síðu';
|
|
1862
|
+
}
|
|
1863
|
+
if (type === 'last') {
|
|
1864
|
+
return 'Fara á síðustu síðu';
|
|
1865
|
+
}
|
|
1866
|
+
if (type === 'next') {
|
|
1867
|
+
return 'Fara á næstu síðu';
|
|
1868
|
+
}
|
|
1869
|
+
// if (type === 'previous') {
|
|
1870
|
+
return 'Fara á fyrri síðu';
|
|
1871
|
+
},
|
|
1872
|
+
labelRowsPerPage: 'Raðir á síðu:',
|
|
1873
|
+
labelDisplayedRows: ({
|
|
1874
|
+
from,
|
|
1875
|
+
to,
|
|
1876
|
+
count
|
|
1877
|
+
}) => `${from}–${to} af ${count !== -1 ? count : `fleiri enn ${to}`}`
|
|
1875
1878
|
}
|
|
1876
1879
|
},
|
|
1877
|
-
|
|
1878
1880
|
MuiRating: {
|
|
1879
1881
|
defaultProps: {
|
|
1880
|
-
getLabelText: value => `${value} ${value === 1 ? '
|
|
1882
|
+
getLabelText: value => `${value} ${value === 1 ? 'stjarna' : 'stjörnur'}`,
|
|
1881
1883
|
emptyLabelText: 'Tómt'
|
|
1882
1884
|
}
|
|
1883
1885
|
},
|
|
@@ -1894,31 +1896,30 @@ export const isIS = {
|
|
|
1894
1896
|
defaultProps: {
|
|
1895
1897
|
closeText: 'Loka'
|
|
1896
1898
|
}
|
|
1899
|
+
},
|
|
1900
|
+
MuiPagination: {
|
|
1901
|
+
defaultProps: {
|
|
1902
|
+
'aria-label': 'Síðuflakk',
|
|
1903
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
1904
|
+
if (type === 'page') {
|
|
1905
|
+
return `${selected ? 'Síða' : 'Fara á síðu'} ${page}`;
|
|
1906
|
+
}
|
|
1907
|
+
if (type === 'first') {
|
|
1908
|
+
return 'Fara á fyrstu síðu';
|
|
1909
|
+
}
|
|
1910
|
+
if (type === 'last') {
|
|
1911
|
+
return 'Fara á síðustu síðu';
|
|
1912
|
+
}
|
|
1913
|
+
if (type === 'next') {
|
|
1914
|
+
return 'Fara á næstu síðu';
|
|
1915
|
+
}
|
|
1916
|
+
// if (type === 'previous') {
|
|
1917
|
+
return 'Fara á fyrri síðu';
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1897
1920
|
}
|
|
1898
|
-
// MuiPagination: {
|
|
1899
|
-
// defaultProps: {
|
|
1900
|
-
// 'aria-label': 'Pagination navigation',
|
|
1901
|
-
// getItemAriaLabel: (type, page, selected) => {
|
|
1902
|
-
// if (type === 'page') {
|
|
1903
|
-
// return `${selected ? '' : 'Go to '}page ${page}`;
|
|
1904
|
-
// }
|
|
1905
|
-
// if (type === 'first') {
|
|
1906
|
-
// return 'Go to first page';
|
|
1907
|
-
// }
|
|
1908
|
-
// if (type === 'last') {
|
|
1909
|
-
// return 'Go to last page';
|
|
1910
|
-
// }
|
|
1911
|
-
// if (type === 'next') {
|
|
1912
|
-
// return 'Go to next page';
|
|
1913
|
-
// }
|
|
1914
|
-
// // if (type === 'previous') {
|
|
1915
|
-
// return 'Go to previous page';
|
|
1916
|
-
// },
|
|
1917
|
-
// },
|
|
1918
|
-
// },
|
|
1919
1921
|
}
|
|
1920
1922
|
};
|
|
1921
|
-
|
|
1922
1923
|
export const itIT = {
|
|
1923
1924
|
components: {
|
|
1924
1925
|
MuiBreadcrumbs: {
|
|
@@ -2818,6 +2819,79 @@ export const nbNO = {
|
|
|
2818
2819
|
}
|
|
2819
2820
|
}
|
|
2820
2821
|
};
|
|
2822
|
+
export const nnNO = {
|
|
2823
|
+
components: {
|
|
2824
|
+
MuiBreadcrumbs: {
|
|
2825
|
+
defaultProps: {
|
|
2826
|
+
expandText: 'Vis sti'
|
|
2827
|
+
}
|
|
2828
|
+
},
|
|
2829
|
+
MuiTablePagination: {
|
|
2830
|
+
defaultProps: {
|
|
2831
|
+
getItemAriaLabel: type => {
|
|
2832
|
+
if (type === 'first') {
|
|
2833
|
+
return 'Gå til første side';
|
|
2834
|
+
}
|
|
2835
|
+
if (type === 'last') {
|
|
2836
|
+
return 'Gå til siste side';
|
|
2837
|
+
}
|
|
2838
|
+
if (type === 'next') {
|
|
2839
|
+
return 'Gå til neste side';
|
|
2840
|
+
}
|
|
2841
|
+
// if (type === 'previous') {
|
|
2842
|
+
return 'Gå til førre side';
|
|
2843
|
+
},
|
|
2844
|
+
labelRowsPerPage: 'Rader per side:',
|
|
2845
|
+
labelDisplayedRows: ({
|
|
2846
|
+
from,
|
|
2847
|
+
to,
|
|
2848
|
+
count
|
|
2849
|
+
}) => `${from}–${to} av ${count !== -1 ? count : `fleire enn ${to}`}`
|
|
2850
|
+
}
|
|
2851
|
+
},
|
|
2852
|
+
MuiRating: {
|
|
2853
|
+
defaultProps: {
|
|
2854
|
+
getLabelText: value => `${value} stjerne${value !== 1 ? 'r' : ''}`,
|
|
2855
|
+
emptyLabelText: 'Tom'
|
|
2856
|
+
}
|
|
2857
|
+
},
|
|
2858
|
+
MuiAutocomplete: {
|
|
2859
|
+
defaultProps: {
|
|
2860
|
+
clearText: 'Tøm',
|
|
2861
|
+
closeText: 'Lukk',
|
|
2862
|
+
loadingText: 'Lastar inn…',
|
|
2863
|
+
noOptionsText: 'Ingen alternativ',
|
|
2864
|
+
openText: 'Opna'
|
|
2865
|
+
}
|
|
2866
|
+
},
|
|
2867
|
+
MuiAlert: {
|
|
2868
|
+
defaultProps: {
|
|
2869
|
+
closeText: 'Lukk'
|
|
2870
|
+
}
|
|
2871
|
+
},
|
|
2872
|
+
MuiPagination: {
|
|
2873
|
+
defaultProps: {
|
|
2874
|
+
'aria-label': 'Navigasjon for paginering',
|
|
2875
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
2876
|
+
if (type === 'page') {
|
|
2877
|
+
return `${selected ? '' : 'Gå til '}side ${page}`;
|
|
2878
|
+
}
|
|
2879
|
+
if (type === 'first') {
|
|
2880
|
+
return 'Gå til første side';
|
|
2881
|
+
}
|
|
2882
|
+
if (type === 'last') {
|
|
2883
|
+
return 'Gå til siste side';
|
|
2884
|
+
}
|
|
2885
|
+
if (type === 'next') {
|
|
2886
|
+
return 'Gå til neste side';
|
|
2887
|
+
}
|
|
2888
|
+
// if (type === 'previous') {
|
|
2889
|
+
return 'Gå til førre side';
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
};
|
|
2821
2895
|
export const nlNL = {
|
|
2822
2896
|
components: {
|
|
2823
2897
|
MuiBreadcrumbs: {
|
|
@@ -23,8 +23,8 @@ var _useControlled = _interopRequireDefault(require("../utils/useControlled"));
|
|
|
23
23
|
var _accordionClasses = _interopRequireWildcard(require("./accordionClasses"));
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
const _excluded = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
|
|
26
|
-
function _getRequireWildcardCache(
|
|
27
|
-
function _interopRequireWildcard(
|
|
26
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
28
|
const useUtilityClasses = ownerState => {
|
|
29
29
|
const {
|
|
30
30
|
classes,
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
function _getRequireWildcardCache(
|
|
10
|
-
function _interopRequireWildcard(
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
11
|
/**
|
|
12
12
|
* @ignore - internal component.
|
|
13
13
|
* @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
|