@mui/material 5.4.4 → 5.5.2
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/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.js +4 -2
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.js +1 -1
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +192 -2
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +22 -22
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +1 -0
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +1 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/Grid.js +10 -14
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +1 -1
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.d.ts +1 -1
- package/InputBase/InputBase.js +1 -1
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/NotchedOutline.js +3 -1
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -17
- package/Popper/Popper.js +21 -6
- package/README.md +1 -0
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.d.ts +2 -0
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Snackbar/Snackbar.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +1 -0
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +8 -0
- package/className/index.js +9 -0
- package/className/package.json +6 -0
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/AvatarGroup/AvatarGroup.js +4 -2
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Box/Box.js +1 -1
- package/legacy/Fab/Fab.js +1 -0
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/Grid/Grid.js +11 -17
- package/legacy/Input/Input.js +1 -1
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/OutlinedInput/NotchedOutline.js +3 -1
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Popper/Popper.js +23 -6
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SvgIcon/SvgIcon.js +1 -0
- package/legacy/className/index.js +9 -0
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +347 -80
- package/legacy/styles/zIndex.js +1 -0
- package/legacy/utils/index.js +10 -2
- package/locale/index.d.ts +71 -68
- package/locale/index.js +264 -0
- package/modern/AvatarGroup/AvatarGroup.js +4 -2
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Box/Box.js +1 -1
- package/modern/Fab/Fab.js +1 -0
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/Grid/Grid.js +10 -14
- package/modern/Input/Input.js +1 -1
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/OutlinedInput/NotchedOutline.js +3 -1
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Popper/Popper.js +21 -6
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +1 -0
- package/modern/className/index.js +9 -0
- package/modern/index.js +1 -1
- package/modern/locale/index.js +264 -0
- package/modern/styles/zIndex.js +1 -0
- package/modern/utils/index.js +10 -2
- package/node/AvatarGroup/AvatarGroup.js +4 -2
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Box/Box.js +2 -2
- package/node/Fab/Fab.js +1 -0
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/Grid/Grid.js +10 -14
- package/node/Input/Input.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +3 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Popper/Popper.js +24 -7
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -0
- package/node/className/index.js +13 -0
- package/node/index.js +1 -1
- package/node/locale/index.js +271 -4
- package/node/styles/zIndex.js +1 -0
- package/node/utils/index.js +13 -7
- package/package.json +5 -5
- package/styles/components.d.ts +3 -0
- package/styles/props.d.ts +2 -0
- package/styles/zIndex.d.ts +1 -0
- package/styles/zIndex.js +1 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +2838 -2690
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/usePagination/usePagination.d.ts +1 -1
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/index.d.ts +1 -1
- package/utils/index.js +10 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/modern/locale/index.js
CHANGED
|
@@ -1500,6 +1500,96 @@ export const hiIN = {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
+
}; // Croatian - Hrvatski
|
|
1504
|
+
|
|
1505
|
+
export const hrHR = {
|
|
1506
|
+
components: {
|
|
1507
|
+
MuiBreadcrumbs: {
|
|
1508
|
+
defaultProps: {
|
|
1509
|
+
expandText: 'Pokaži putanju'
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
MuiTablePagination: {
|
|
1513
|
+
defaultProps: {
|
|
1514
|
+
getItemAriaLabel: type => {
|
|
1515
|
+
if (type === 'first') {
|
|
1516
|
+
return 'Idi na prvu stranicu';
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
if (type === 'last') {
|
|
1520
|
+
return 'Idi na posljednju stranicu';
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
if (type === 'next') {
|
|
1524
|
+
return 'Idi na sljedeću stranicu';
|
|
1525
|
+
} // if (type === 'previous') {
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
return 'Idi na prethodnu stranicu';
|
|
1529
|
+
},
|
|
1530
|
+
labelRowsPerPage: 'Redova po stranici:',
|
|
1531
|
+
labelDisplayedRows: ({
|
|
1532
|
+
from,
|
|
1533
|
+
to,
|
|
1534
|
+
count
|
|
1535
|
+
}) => `${from}–${to} od ${count !== -1 ? count : `više nego ${to}`}`
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
MuiRating: {
|
|
1539
|
+
defaultProps: {
|
|
1540
|
+
getLabelText: value => {
|
|
1541
|
+
const lastDigit = value % 10;
|
|
1542
|
+
const lastTwoDigits = value % 100;
|
|
1543
|
+
|
|
1544
|
+
if ([2, 3, 4].includes(lastDigit) && ![12, 13, 14].includes(lastTwoDigits)) {
|
|
1545
|
+
return 'Zvijezde';
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
return 'Zvijezda';
|
|
1549
|
+
},
|
|
1550
|
+
emptyLabelText: 'Prazno'
|
|
1551
|
+
}
|
|
1552
|
+
},
|
|
1553
|
+
MuiAutocomplete: {
|
|
1554
|
+
defaultProps: {
|
|
1555
|
+
clearText: 'Briši',
|
|
1556
|
+
closeText: 'Zatvori',
|
|
1557
|
+
loadingText: 'Učitavanje…',
|
|
1558
|
+
noOptionsText: 'Nema opcija',
|
|
1559
|
+
openText: 'Otvori'
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
MuiAlert: {
|
|
1563
|
+
defaultProps: {
|
|
1564
|
+
closeText: 'Zatvori'
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
MuiPagination: {
|
|
1568
|
+
defaultProps: {
|
|
1569
|
+
'aria-label': 'Navigacija po stranicama',
|
|
1570
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
1571
|
+
if (type === 'page') {
|
|
1572
|
+
return `${selected ? '' : 'Idi na '}stranicu ${page}`;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
if (type === 'first') {
|
|
1576
|
+
return 'Idi na prvu stranicu';
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
if (type === 'last') {
|
|
1580
|
+
return 'Idi na zadnju stranicu';
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
if (type === 'next') {
|
|
1584
|
+
return 'Idi na sljedeću stranicu';
|
|
1585
|
+
} // if (type === 'previous') {
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
return 'Idi na prethodnu stranicu';
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1503
1593
|
};
|
|
1504
1594
|
export const huHU = {
|
|
1505
1595
|
components: {
|
|
@@ -2191,6 +2281,90 @@ export const kzKZ = {
|
|
|
2191
2281
|
}
|
|
2192
2282
|
}
|
|
2193
2283
|
}
|
|
2284
|
+
}; // Macedonian - Македонски
|
|
2285
|
+
|
|
2286
|
+
export const mkMK = {
|
|
2287
|
+
components: {
|
|
2288
|
+
MuiBreadcrumbs: {
|
|
2289
|
+
defaultProps: {
|
|
2290
|
+
expandText: 'Прикажи патека'
|
|
2291
|
+
}
|
|
2292
|
+
},
|
|
2293
|
+
MuiTablePagination: {
|
|
2294
|
+
defaultProps: {
|
|
2295
|
+
getItemAriaLabel: type => {
|
|
2296
|
+
if (type === 'first') {
|
|
2297
|
+
return 'Оди на прва страница';
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
if (type === 'last') {
|
|
2301
|
+
return 'Оди на последна страница';
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
if (type === 'next') {
|
|
2305
|
+
return 'Оди на следна страница';
|
|
2306
|
+
} // if (type === 'previous') {
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
return 'Оди на предходна страница';
|
|
2310
|
+
},
|
|
2311
|
+
labelRowsPerPage: 'Редови по страница:',
|
|
2312
|
+
labelDisplayedRows: ({
|
|
2313
|
+
from,
|
|
2314
|
+
to,
|
|
2315
|
+
count
|
|
2316
|
+
}) => `${from}–${to} од ${count !== -1 ? count : `повеќе од ${to}`}`
|
|
2317
|
+
}
|
|
2318
|
+
},
|
|
2319
|
+
MuiRating: {
|
|
2320
|
+
defaultProps: {
|
|
2321
|
+
getLabelText: value => {
|
|
2322
|
+
const lastDigit = value % 10;
|
|
2323
|
+
return `${value} Ѕвезд${lastDigit === 1 ? 'а' : 'и'}`;
|
|
2324
|
+
},
|
|
2325
|
+
emptyLabelText: 'Празно'
|
|
2326
|
+
}
|
|
2327
|
+
},
|
|
2328
|
+
MuiAutocomplete: {
|
|
2329
|
+
defaultProps: {
|
|
2330
|
+
clearText: 'Избриши',
|
|
2331
|
+
closeText: 'Затвори',
|
|
2332
|
+
loadingText: 'Се презема',
|
|
2333
|
+
noOptionsText: 'Нема опција',
|
|
2334
|
+
openText: 'Отвори'
|
|
2335
|
+
}
|
|
2336
|
+
},
|
|
2337
|
+
MuiAlert: {
|
|
2338
|
+
defaultProps: {
|
|
2339
|
+
closeText: 'Затвори'
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
MuiPagination: {
|
|
2343
|
+
defaultProps: {
|
|
2344
|
+
'aria-label': 'Навигација низ страници',
|
|
2345
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
2346
|
+
if (type === 'page') {
|
|
2347
|
+
return `${selected ? '' : 'Оди на '}страница ${page}`;
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
if (type === 'first') {
|
|
2351
|
+
return 'Оди на прва страница';
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
if (type === 'last') {
|
|
2355
|
+
return 'Оди на последна страница';
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
if (type === 'next') {
|
|
2359
|
+
return 'Оди на следна страница';
|
|
2360
|
+
} // if (type === 'previous') {
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
return 'Оди на предходна страница';
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2194
2368
|
};
|
|
2195
2369
|
export const nbNO = {
|
|
2196
2370
|
components: {
|
|
@@ -2679,6 +2853,96 @@ export const roRO = {
|
|
|
2679
2853
|
}
|
|
2680
2854
|
}
|
|
2681
2855
|
}
|
|
2856
|
+
}; // Serbian - Srpski
|
|
2857
|
+
|
|
2858
|
+
export const srRS = {
|
|
2859
|
+
components: {
|
|
2860
|
+
MuiBreadcrumbs: {
|
|
2861
|
+
defaultProps: {
|
|
2862
|
+
expandText: 'Pokaži putanju'
|
|
2863
|
+
}
|
|
2864
|
+
},
|
|
2865
|
+
MuiTablePagination: {
|
|
2866
|
+
defaultProps: {
|
|
2867
|
+
getItemAriaLabel: type => {
|
|
2868
|
+
if (type === 'first') {
|
|
2869
|
+
return 'Idi na prvu stranicu';
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
if (type === 'last') {
|
|
2873
|
+
return 'Idi na poslednju stranicu';
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
if (type === 'next') {
|
|
2877
|
+
return 'Idi na sledeću stranicu';
|
|
2878
|
+
} // if (type === 'previous') {
|
|
2879
|
+
|
|
2880
|
+
|
|
2881
|
+
return 'Idi na prethodnu stranicu';
|
|
2882
|
+
},
|
|
2883
|
+
labelRowsPerPage: 'Redova po stranici:',
|
|
2884
|
+
labelDisplayedRows: ({
|
|
2885
|
+
from,
|
|
2886
|
+
to,
|
|
2887
|
+
count
|
|
2888
|
+
}) => `${from}–${to} od ${count !== -1 ? count : `više nego ${to}`}`
|
|
2889
|
+
}
|
|
2890
|
+
},
|
|
2891
|
+
MuiRating: {
|
|
2892
|
+
defaultProps: {
|
|
2893
|
+
getLabelText: value => {
|
|
2894
|
+
const lastDigit = value % 10;
|
|
2895
|
+
const lastTwoDigits = value % 100;
|
|
2896
|
+
|
|
2897
|
+
if ([2, 3, 4].includes(lastDigit) && ![12, 13, 14].includes(lastTwoDigits)) {
|
|
2898
|
+
return 'Zvezde';
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
return 'Zvezda';
|
|
2902
|
+
},
|
|
2903
|
+
emptyLabelText: 'Prazno'
|
|
2904
|
+
}
|
|
2905
|
+
},
|
|
2906
|
+
MuiAutocomplete: {
|
|
2907
|
+
defaultProps: {
|
|
2908
|
+
clearText: 'Briši',
|
|
2909
|
+
closeText: 'Zatvori',
|
|
2910
|
+
loadingText: 'Učitavanje…',
|
|
2911
|
+
noOptionsText: 'Nema opcija',
|
|
2912
|
+
openText: 'Otvori'
|
|
2913
|
+
}
|
|
2914
|
+
},
|
|
2915
|
+
MuiAlert: {
|
|
2916
|
+
defaultProps: {
|
|
2917
|
+
closeText: 'Zatvori'
|
|
2918
|
+
}
|
|
2919
|
+
},
|
|
2920
|
+
MuiPagination: {
|
|
2921
|
+
defaultProps: {
|
|
2922
|
+
'aria-label': 'Navigacija po stranicama',
|
|
2923
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
2924
|
+
if (type === 'page') {
|
|
2925
|
+
return `${selected ? '' : 'Idi na '}stranicu ${page}`;
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
if (type === 'first') {
|
|
2929
|
+
return 'Idi na prvu stranicu';
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
if (type === 'last') {
|
|
2933
|
+
return 'Idi na zadnju stranicu';
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
if (type === 'next') {
|
|
2937
|
+
return 'Idi na sledeću stranicu';
|
|
2938
|
+
} // if (type === 'previous') {
|
|
2939
|
+
|
|
2940
|
+
|
|
2941
|
+
return 'Idi na prethodnu stranicu';
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2682
2946
|
};
|
|
2683
2947
|
export const ruRU = {
|
|
2684
2948
|
components: {
|
package/modern/styles/zIndex.js
CHANGED
package/modern/utils/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/base/className';
|
|
1
2
|
export { default as capitalize } from './capitalize';
|
|
2
3
|
export { default as createChainedFunction } from './createChainedFunction';
|
|
3
4
|
export { default as createSvgIcon } from './createSvgIcon';
|
|
@@ -14,5 +15,12 @@ export { default as unsupportedProp } from './unsupportedProp';
|
|
|
14
15
|
export { default as useControlled } from './useControlled';
|
|
15
16
|
export { default as useEventCallback } from './useEventCallback';
|
|
16
17
|
export { default as useForkRef } from './useForkRef';
|
|
17
|
-
export { default as useIsFocusVisible } from './useIsFocusVisible';
|
|
18
|
-
|
|
18
|
+
export { default as useIsFocusVisible } from './useIsFocusVisible'; // TODO: remove this export once ClassNameGenerator is stable
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
20
|
+
|
|
21
|
+
export const unstable_ClassNameGenerator = {
|
|
22
|
+
configure: generator => {
|
|
23
|
+
console.warn(['MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.', '', "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", '', 'The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401', '', 'The updated documentation: https://mui.com/guides/classname-generator/'].join('\n'));
|
|
24
|
+
ClassNameGenerator.configure(generator);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
@@ -146,11 +146,13 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
146
146
|
marginLeft
|
|
147
147
|
}, (_componentsProps$addi2 = componentsProps.additionalAvatar) == null ? void 0 : _componentsProps$addi2.style),
|
|
148
148
|
children: ["+", extraAvatars]
|
|
149
|
-
})) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
149
|
+
})) : null, children.slice(0, maxAvatars).reverse().map((child, index) => {
|
|
150
150
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
151
151
|
className: (0, _clsx.default)(child.props.className, classes.avatar),
|
|
152
152
|
style: (0, _extends2.default)({
|
|
153
|
-
|
|
153
|
+
// Consistent with "&:last-child" styling for the default spacing,
|
|
154
|
+
// we do not apply custom marginLeft spacing on the last child
|
|
155
|
+
marginLeft: index === maxAvatars - 1 ? undefined : marginLeft
|
|
154
156
|
}, child.props.style),
|
|
155
157
|
variant: child.props.variant || variant
|
|
156
158
|
});
|
|
File without changes
|
package/node/Box/Box.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _system = require("@mui/system");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _className = require("../className");
|
|
11
11
|
|
|
12
12
|
var _styles = require("../styles");
|
|
13
13
|
|
|
@@ -19,7 +19,7 @@ const defaultTheme = (0, _styles.createTheme)();
|
|
|
19
19
|
const Box = (0, _system.createBox)({
|
|
20
20
|
defaultTheme,
|
|
21
21
|
defaultClassName: 'MuiBox-root',
|
|
22
|
-
generateClassName:
|
|
22
|
+
generateClassName: _className.unstable_ClassNameGenerator.generate
|
|
23
23
|
});
|
|
24
24
|
var _default = Box;
|
|
25
25
|
exports.default = _default;
|
package/node/Fab/Fab.js
CHANGED
|
@@ -366,7 +366,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
|
|
|
366
366
|
minRows: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
367
367
|
|
|
368
368
|
/**
|
|
369
|
-
* If `true`, a
|
|
369
|
+
* If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
|
|
370
370
|
* @default false
|
|
371
371
|
*/
|
|
372
372
|
multiline: _propTypes.default.bool,
|
package/node/Grid/Grid.js
CHANGED
|
@@ -338,10 +338,9 @@ const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
|
|
338
338
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
339
339
|
const rowSpacing = rowSpacingProp || spacing;
|
|
340
340
|
const columnSpacing = columnSpacingProp || spacing;
|
|
341
|
-
const columnsContext = React.useContext(_GridContext.default); //
|
|
342
|
-
// colums set with default breakpoint unit of 12
|
|
341
|
+
const columnsContext = React.useContext(_GridContext.default); // columns set with default breakpoint unit of 12
|
|
343
342
|
|
|
344
|
-
const columns = columnsProp ||
|
|
343
|
+
const columns = container ? columnsProp || 12 : columnsContext;
|
|
345
344
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
346
345
|
columns,
|
|
347
346
|
container,
|
|
@@ -358,18 +357,15 @@ const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
|
|
358
357
|
zeroMinWidth
|
|
359
358
|
});
|
|
360
359
|
const classes = useUtilityClasses(ownerState);
|
|
361
|
-
|
|
362
|
-
const wrapChild = element => columns !== 12 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridContext.default.Provider, {
|
|
360
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridContext.default.Provider, {
|
|
363
361
|
value: columns,
|
|
364
|
-
children:
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
ref: ref
|
|
372
|
-
}, other)));
|
|
362
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(GridRoot, (0, _extends2.default)({
|
|
363
|
+
ownerState: ownerState,
|
|
364
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
365
|
+
as: component,
|
|
366
|
+
ref: ref
|
|
367
|
+
}, other))
|
|
368
|
+
});
|
|
373
369
|
});
|
|
374
370
|
process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
375
371
|
/* remove-proptypes */
|
package/node/Input/Input.js
CHANGED
|
@@ -294,7 +294,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
|
|
|
294
294
|
minRows: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
295
295
|
|
|
296
296
|
/**
|
|
297
|
-
* If `true`, a
|
|
297
|
+
* If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
|
|
298
298
|
* @default false
|
|
299
299
|
*/
|
|
300
300
|
multiline: _propTypes.default.bool,
|
|
@@ -665,7 +665,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
|
|
|
665
665
|
minRows: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
666
666
|
|
|
667
667
|
/**
|
|
668
|
-
* If `true`, a
|
|
668
|
+
* If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
|
|
669
669
|
* @default false
|
|
670
670
|
*/
|
|
671
671
|
multiline: _propTypes.default.bool,
|
|
@@ -77,7 +77,9 @@ const NotchedOutlineLegend = (0, _styled.default)('legend')(({
|
|
|
77
77
|
'& > span': {
|
|
78
78
|
paddingLeft: 5,
|
|
79
79
|
paddingRight: 5,
|
|
80
|
-
display: 'inline-block'
|
|
80
|
+
display: 'inline-block',
|
|
81
|
+
opacity: 0,
|
|
82
|
+
visibility: 'visible'
|
|
81
83
|
}
|
|
82
84
|
}, ownerState.notched && {
|
|
83
85
|
maxWidth: '100%',
|
|
@@ -294,7 +294,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes
|
|
|
294
294
|
minRows: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
295
295
|
|
|
296
296
|
/**
|
|
297
|
-
* If `true`, a
|
|
297
|
+
* If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
|
|
298
298
|
* @default false
|
|
299
299
|
*/
|
|
300
300
|
multiline: _propTypes.default.bool,
|
package/node/Popper/Popper.js
CHANGED
|
@@ -9,15 +9,17 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
12
|
-
var React = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
12
|
var _PopperUnstyled = _interopRequireDefault(require("@mui/base/PopperUnstyled"));
|
|
17
13
|
|
|
14
|
+
var _system = require("@mui/system");
|
|
15
|
+
|
|
18
16
|
var _utils = require("@mui/utils");
|
|
19
17
|
|
|
20
|
-
var
|
|
18
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
|
+
|
|
20
|
+
var React = _interopRequireWildcard(require("react"));
|
|
21
|
+
|
|
22
|
+
var _styles = require("../styles");
|
|
21
23
|
|
|
22
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
25
|
|
|
@@ -25,6 +27,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
27
|
|
|
26
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
29
|
|
|
30
|
+
const PopperRoot = (0, _styles.styled)(_PopperUnstyled.default, {
|
|
31
|
+
name: 'MuiPopper',
|
|
32
|
+
slot: 'Root',
|
|
33
|
+
overridesResolver: (props, styles) => styles.root
|
|
34
|
+
})({});
|
|
28
35
|
/**
|
|
29
36
|
*
|
|
30
37
|
* Demos:
|
|
@@ -37,9 +44,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
37
44
|
*
|
|
38
45
|
* - [Popper API](https://mui.com/api/popper/)
|
|
39
46
|
*/
|
|
40
|
-
|
|
47
|
+
|
|
48
|
+
const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
41
49
|
const theme = (0, _system.useThemeWithoutDefault)();
|
|
42
|
-
|
|
50
|
+
const props = (0, _styles.useThemeProps)({
|
|
51
|
+
props: inProps,
|
|
52
|
+
name: 'MuiPopper'
|
|
53
|
+
});
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PopperRoot, (0, _extends2.default)({
|
|
43
55
|
direction: theme == null ? void 0 : theme.direction
|
|
44
56
|
}, props, {
|
|
45
57
|
ref: ref
|
|
@@ -143,6 +155,11 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
143
155
|
*/
|
|
144
156
|
popperRef: _utils.refType,
|
|
145
157
|
|
|
158
|
+
/**
|
|
159
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
160
|
+
*/
|
|
161
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
162
|
+
|
|
146
163
|
/**
|
|
147
164
|
* Help supporting a react-transition-group/Transition component.
|
|
148
165
|
* @default false
|
|
@@ -315,7 +315,7 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
315
315
|
onMouseLeave: handleMouseLeave,
|
|
316
316
|
ownerState: ownerState,
|
|
317
317
|
ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
318
|
-
// See https://github.com/mui
|
|
318
|
+
// See https://github.com/mui/material-ui/issues/29080
|
|
319
319
|
,
|
|
320
320
|
role: "presentation"
|
|
321
321
|
}, other, {
|
package/node/SvgIcon/SvgIcon.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "unstable_ClassNameGenerator", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _className.unstable_ClassNameGenerator;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _className = require("@mui/base/className");
|
package/node/index.js
CHANGED