@mui/material 5.10.14 → 5.10.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/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/Autocomplete.js +1 -0
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- 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 +62 -0
- 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 +96 -96
- 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 +6 -6
- 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/fabClasses.d.ts +26 -26
- 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/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/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- 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/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponentAugmentation.d.ts +31 -31
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.js +3 -13
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +37 -37
- 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/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- 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/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- 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/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/esm/Autocomplete/Autocomplete.js +1 -0
- package/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/Paper/Paper.js +1 -11
- package/esm/locale/index.js +73 -0
- package/esm/styles/experimental_extendTheme.js +1 -1
- package/esm/styles/getOverlayAlpha.js +11 -0
- package/esm/styles/index.js +6 -1
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Autocomplete/Autocomplete.js +2 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Paper/Paper.js +1 -11
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +92 -16
- package/legacy/styles/experimental_extendTheme.js +1 -1
- package/legacy/styles/getOverlayAlpha.js +11 -0
- package/legacy/styles/index.js +6 -1
- package/locale/index.d.ts +73 -72
- package/locale/index.js +75 -1
- package/modern/Autocomplete/Autocomplete.js +1 -0
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Paper/Paper.js +1 -11
- package/modern/index.js +1 -1
- package/modern/locale/index.js +73 -0
- package/modern/styles/experimental_extendTheme.js +1 -1
- package/modern/styles/getOverlayAlpha.js +11 -0
- package/modern/styles/index.js +6 -1
- package/package.json +5 -5
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/experimental_extendTheme.d.ts +13 -0
- package/styles/experimental_extendTheme.js +2 -2
- package/styles/getOverlayAlpha.d.ts +2 -0
- package/styles/getOverlayAlpha.js +18 -0
- package/styles/index.d.ts +6 -0
- package/styles/index.js +25 -1
- 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 +466 -452
- package/umd/material-ui.production.min.js +6 -6
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/legacy/locale/index.js
CHANGED
|
@@ -3447,6 +3447,82 @@ export var ukUA = {
|
|
|
3447
3447
|
}
|
|
3448
3448
|
}
|
|
3449
3449
|
};
|
|
3450
|
+
export var urPK = {
|
|
3451
|
+
components: {
|
|
3452
|
+
MuiBreadcrumbs: {
|
|
3453
|
+
defaultProps: {
|
|
3454
|
+
expandText: 'راستہ دکھائیں'
|
|
3455
|
+
}
|
|
3456
|
+
},
|
|
3457
|
+
MuiTablePagination: {
|
|
3458
|
+
defaultProps: {
|
|
3459
|
+
getItemAriaLabel: function getItemAriaLabel(type) {
|
|
3460
|
+
if (type === 'first') {
|
|
3461
|
+
return 'پہلے صفحے پر جائیں';
|
|
3462
|
+
}
|
|
3463
|
+
if (type === 'last') {
|
|
3464
|
+
return 'آخری صفحے پر جائیں';
|
|
3465
|
+
}
|
|
3466
|
+
if (type === 'next') {
|
|
3467
|
+
return 'اگلے صفحے پر جائیں';
|
|
3468
|
+
}
|
|
3469
|
+
// if (type === 'previous') {
|
|
3470
|
+
return 'پچھلے صفحے پر جائیں';
|
|
3471
|
+
},
|
|
3472
|
+
labelRowsPerPage: 'ایک صفحے پر قطاریں:',
|
|
3473
|
+
labelDisplayedRows: function labelDisplayedRows(_ref35) {
|
|
3474
|
+
var from = _ref35.from,
|
|
3475
|
+
to = _ref35.to,
|
|
3476
|
+
count = _ref35.count;
|
|
3477
|
+
return "".concat(count !== -1 ? "".concat(count, " \u0645\u06CC\u06BA \u0633\u06D2") : "".concat(to, " \u0633\u06D2 \u0630\u06CC\u0627\u062F\u06C1 \u0645\u06CC\u06BA \u0633\u06D2"), " ").concat(from, " \u0633\u06D2 ").concat(to, " \u0642\u0637\u0627\u0631\u06CC\u06BA");
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
},
|
|
3481
|
+
MuiRating: {
|
|
3482
|
+
defaultProps: {
|
|
3483
|
+
getLabelText: function getLabelText(value) {
|
|
3484
|
+
return "".concat(value, " \u0633\u062A\u0627\u0631").concat(value !== 1 ? 'ے' : 'ہ');
|
|
3485
|
+
},
|
|
3486
|
+
emptyLabelText: 'خالی'
|
|
3487
|
+
}
|
|
3488
|
+
},
|
|
3489
|
+
MuiAutocomplete: {
|
|
3490
|
+
defaultProps: {
|
|
3491
|
+
clearText: 'کلئیر',
|
|
3492
|
+
closeText: 'بند کریں',
|
|
3493
|
+
loadingText: 'لوڈ ہو رہا ہے۔۔۔',
|
|
3494
|
+
noOptionsText: 'کوئی آپشن نہیں',
|
|
3495
|
+
openText: 'کھولیں'
|
|
3496
|
+
}
|
|
3497
|
+
},
|
|
3498
|
+
MuiAlert: {
|
|
3499
|
+
defaultProps: {
|
|
3500
|
+
closeText: 'بند کریں'
|
|
3501
|
+
}
|
|
3502
|
+
},
|
|
3503
|
+
MuiPagination: {
|
|
3504
|
+
defaultProps: {
|
|
3505
|
+
'aria-label': 'صفحات کی ترتیب',
|
|
3506
|
+
getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
|
|
3507
|
+
if (type === 'page') {
|
|
3508
|
+
return "\u0635\u0641\u062D\u06C1 \u0646\u0645\u0628\u0631 ".concat(page).concat(selected ? '' : ' پر جائیں');
|
|
3509
|
+
}
|
|
3510
|
+
if (type === 'first') {
|
|
3511
|
+
return 'پہلے صفحے پر جائیں';
|
|
3512
|
+
}
|
|
3513
|
+
if (type === 'last') {
|
|
3514
|
+
return 'آخری صفحے پر جائیں';
|
|
3515
|
+
}
|
|
3516
|
+
if (type === 'next') {
|
|
3517
|
+
return 'اگلے صفحے پر جائیں';
|
|
3518
|
+
}
|
|
3519
|
+
// if (type === 'previous') {
|
|
3520
|
+
return 'پچھلے صفحے پر جائیں';
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
}
|
|
3525
|
+
};
|
|
3450
3526
|
export var viVN = {
|
|
3451
3527
|
components: {
|
|
3452
3528
|
MuiBreadcrumbs: {
|
|
@@ -3470,10 +3546,10 @@ export var viVN = {
|
|
|
3470
3546
|
return 'Về trang trước đó';
|
|
3471
3547
|
},
|
|
3472
3548
|
labelRowsPerPage: 'Số hàng mỗi trang:',
|
|
3473
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3474
|
-
var from =
|
|
3475
|
-
to =
|
|
3476
|
-
count =
|
|
3549
|
+
labelDisplayedRows: function labelDisplayedRows(_ref36) {
|
|
3550
|
+
var from = _ref36.from,
|
|
3551
|
+
to = _ref36.to,
|
|
3552
|
+
count = _ref36.count;
|
|
3477
3553
|
return "".concat(from, "\u2013").concat(to, " trong ").concat(count !== -1 ? count : "nhi\u1EC1u h\u01A1n ".concat(to));
|
|
3478
3554
|
}
|
|
3479
3555
|
}
|
|
@@ -3545,10 +3621,10 @@ export var zhCN = {
|
|
|
3545
3621
|
return '上一页';
|
|
3546
3622
|
},
|
|
3547
3623
|
labelRowsPerPage: '每页行数:',
|
|
3548
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3549
|
-
var from =
|
|
3550
|
-
to =
|
|
3551
|
-
count =
|
|
3624
|
+
labelDisplayedRows: function labelDisplayedRows(_ref37) {
|
|
3625
|
+
var from = _ref37.from,
|
|
3626
|
+
to = _ref37.to,
|
|
3627
|
+
count = _ref37.count;
|
|
3552
3628
|
return "\u7B2C ".concat(from, " \u6761\u5230\u7B2C ").concat(to, " \u6761\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u6761") : "\u81F3\u5C11 ".concat(to, " \u6761"));
|
|
3553
3629
|
}
|
|
3554
3630
|
}
|
|
@@ -3599,10 +3675,10 @@ export var zhHK = {
|
|
|
3599
3675
|
return '上一頁';
|
|
3600
3676
|
},
|
|
3601
3677
|
labelRowsPerPage: '每頁行數:',
|
|
3602
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3603
|
-
var from =
|
|
3604
|
-
to =
|
|
3605
|
-
count =
|
|
3678
|
+
labelDisplayedRows: function labelDisplayedRows(_ref38) {
|
|
3679
|
+
var from = _ref38.from,
|
|
3680
|
+
to = _ref38.to,
|
|
3681
|
+
count = _ref38.count;
|
|
3606
3682
|
return "\u7B2C ".concat(from, " \u9805\u81F3\u7B2C ").concat(to, " \u9805\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u9805") : "\u8D85\u904E ".concat(to, " \u9805"));
|
|
3607
3683
|
}
|
|
3608
3684
|
}
|
|
@@ -3653,10 +3729,10 @@ export var zhTW = {
|
|
|
3653
3729
|
return '上一頁';
|
|
3654
3730
|
},
|
|
3655
3731
|
labelRowsPerPage: '每頁行數:',
|
|
3656
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3657
|
-
var from =
|
|
3658
|
-
to =
|
|
3659
|
-
count =
|
|
3732
|
+
labelDisplayedRows: function labelDisplayedRows(_ref39) {
|
|
3733
|
+
var from = _ref39.from,
|
|
3734
|
+
to = _ref39.to,
|
|
3735
|
+
count = _ref39.count;
|
|
3660
3736
|
return "\u7B2C ".concat(from, " \u689D\u5230\u7B2C ").concat(to, " \u689D\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u689D") : "\u81F3\u5C11 ".concat(to, " \u689D"));
|
|
3661
3737
|
}
|
|
3662
3738
|
}
|
|
@@ -4,7 +4,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
4
4
|
import { deepmerge } from '@mui/utils';
|
|
5
5
|
import { colorChannel, alpha, darken, lighten, emphasize, unstable_createGetCssVar as systemCreateGetCssVar } from '@mui/system';
|
|
6
6
|
import createThemeWithoutVars from './createTheme';
|
|
7
|
-
import
|
|
7
|
+
import getOverlayAlpha from './getOverlayAlpha';
|
|
8
8
|
var defaultDarkOverlays = _toConsumableArray(Array(25)).map(function (_, index) {
|
|
9
9
|
if (index === 0) {
|
|
10
10
|
return undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
|
|
2
|
+
var getOverlayAlpha = function getOverlayAlpha(elevation) {
|
|
3
|
+
var alphaValue;
|
|
4
|
+
if (elevation < 1) {
|
|
5
|
+
alphaValue = 5.11916 * Math.pow(elevation, 2);
|
|
6
|
+
} else {
|
|
7
|
+
alphaValue = 4.5 * Math.log(elevation + 1) + 2;
|
|
8
|
+
}
|
|
9
|
+
return (alphaValue / 100).toFixed(2);
|
|
10
|
+
};
|
|
11
|
+
export default getOverlayAlpha;
|
package/legacy/styles/index.js
CHANGED
|
@@ -18,4 +18,9 @@ export { default as makeStyles } from './makeStyles';
|
|
|
18
18
|
export { default as withStyles } from './withStyles';
|
|
19
19
|
export { default as withTheme } from './withTheme';
|
|
20
20
|
export * from './CssVarsProvider';
|
|
21
|
-
export { default as experimental_extendTheme } from './experimental_extendTheme';
|
|
21
|
+
export { default as experimental_extendTheme } from './experimental_extendTheme';
|
|
22
|
+
export { default as getOverlayAlpha } from './getOverlayAlpha';
|
|
23
|
+
|
|
24
|
+
// Private methods for creating parts of the theme
|
|
25
|
+
export { default as private_createTypography } from './createTypography';
|
|
26
|
+
export { default as private_excludeVariablesFromRoot } from './excludeVariablesFromRoot';
|
package/locale/index.d.ts
CHANGED
|
@@ -1,72 +1,73 @@
|
|
|
1
|
-
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
-
export interface Localization {
|
|
3
|
-
components?: {
|
|
4
|
-
MuiAlert?: {
|
|
5
|
-
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
-
};
|
|
7
|
-
MuiBreadcrumbs?: {
|
|
8
|
-
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
-
};
|
|
10
|
-
MuiTablePagination?: {
|
|
11
|
-
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
-
};
|
|
13
|
-
MuiRating?: {
|
|
14
|
-
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
-
};
|
|
16
|
-
MuiAutocomplete?: {
|
|
17
|
-
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
-
};
|
|
19
|
-
MuiPagination?: {
|
|
20
|
-
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const amET: Localization;
|
|
25
|
-
export declare const arEG: Localization;
|
|
26
|
-
export declare const arSA: Localization;
|
|
27
|
-
export declare const arSD: Localization;
|
|
28
|
-
export declare const azAZ: Localization;
|
|
29
|
-
export declare const bnBD: Localization;
|
|
30
|
-
export declare const bgBG: Localization;
|
|
31
|
-
export declare const caES: Localization;
|
|
32
|
-
export declare const csCZ: Localization;
|
|
33
|
-
export declare const daDK: Localization;
|
|
34
|
-
export declare const deDE: Localization;
|
|
35
|
-
export declare const elGR: Localization;
|
|
36
|
-
export declare const enUS: Localization;
|
|
37
|
-
export declare const esES: Localization;
|
|
38
|
-
export declare const etEE: Localization;
|
|
39
|
-
export declare const faIR: Localization;
|
|
40
|
-
export declare const fiFI: Localization;
|
|
41
|
-
export declare const frFR: Localization;
|
|
42
|
-
export declare const heIL: Localization;
|
|
43
|
-
export declare const hiIN: Localization;
|
|
44
|
-
export declare const hrHR: Localization;
|
|
45
|
-
export declare const huHU: Localization;
|
|
46
|
-
export declare const hyAM: Localization;
|
|
47
|
-
export declare const idID: Localization;
|
|
48
|
-
export declare const isIS: Localization;
|
|
49
|
-
export declare const itIT: Localization;
|
|
50
|
-
export declare const jaJP: Localization;
|
|
51
|
-
export declare const khKH: Localization;
|
|
52
|
-
export declare const koKR: Localization;
|
|
53
|
-
export declare const kzKZ: Localization;
|
|
54
|
-
export declare const mkMK: Localization;
|
|
55
|
-
export declare const nbNO: Localization;
|
|
56
|
-
export declare const nlNL: Localization;
|
|
57
|
-
export declare const plPL: Localization;
|
|
58
|
-
export declare const ptBR: Localization;
|
|
59
|
-
export declare const ptPT: Localization;
|
|
60
|
-
export declare const roRO: Localization;
|
|
61
|
-
export declare const srRS: Localization;
|
|
62
|
-
export declare const ruRU: Localization;
|
|
63
|
-
export declare const siLK: Localization;
|
|
64
|
-
export declare const skSK: Localization;
|
|
65
|
-
export declare const svSE: Localization;
|
|
66
|
-
export declare const thTH: Localization;
|
|
67
|
-
export declare const trTR: Localization;
|
|
68
|
-
export declare const ukUA: Localization;
|
|
69
|
-
export declare const
|
|
70
|
-
export declare const
|
|
71
|
-
export declare const
|
|
72
|
-
export declare const
|
|
1
|
+
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
+
export interface Localization {
|
|
3
|
+
components?: {
|
|
4
|
+
MuiAlert?: {
|
|
5
|
+
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
+
};
|
|
7
|
+
MuiBreadcrumbs?: {
|
|
8
|
+
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
+
};
|
|
10
|
+
MuiTablePagination?: {
|
|
11
|
+
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
+
};
|
|
13
|
+
MuiRating?: {
|
|
14
|
+
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
+
};
|
|
16
|
+
MuiAutocomplete?: {
|
|
17
|
+
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
+
};
|
|
19
|
+
MuiPagination?: {
|
|
20
|
+
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const amET: Localization;
|
|
25
|
+
export declare const arEG: Localization;
|
|
26
|
+
export declare const arSA: Localization;
|
|
27
|
+
export declare const arSD: Localization;
|
|
28
|
+
export declare const azAZ: Localization;
|
|
29
|
+
export declare const bnBD: Localization;
|
|
30
|
+
export declare const bgBG: Localization;
|
|
31
|
+
export declare const caES: Localization;
|
|
32
|
+
export declare const csCZ: Localization;
|
|
33
|
+
export declare const daDK: Localization;
|
|
34
|
+
export declare const deDE: Localization;
|
|
35
|
+
export declare const elGR: Localization;
|
|
36
|
+
export declare const enUS: Localization;
|
|
37
|
+
export declare const esES: Localization;
|
|
38
|
+
export declare const etEE: Localization;
|
|
39
|
+
export declare const faIR: Localization;
|
|
40
|
+
export declare const fiFI: Localization;
|
|
41
|
+
export declare const frFR: Localization;
|
|
42
|
+
export declare const heIL: Localization;
|
|
43
|
+
export declare const hiIN: Localization;
|
|
44
|
+
export declare const hrHR: Localization;
|
|
45
|
+
export declare const huHU: Localization;
|
|
46
|
+
export declare const hyAM: Localization;
|
|
47
|
+
export declare const idID: Localization;
|
|
48
|
+
export declare const isIS: Localization;
|
|
49
|
+
export declare const itIT: Localization;
|
|
50
|
+
export declare const jaJP: Localization;
|
|
51
|
+
export declare const khKH: Localization;
|
|
52
|
+
export declare const koKR: Localization;
|
|
53
|
+
export declare const kzKZ: Localization;
|
|
54
|
+
export declare const mkMK: Localization;
|
|
55
|
+
export declare const nbNO: Localization;
|
|
56
|
+
export declare const nlNL: Localization;
|
|
57
|
+
export declare const plPL: Localization;
|
|
58
|
+
export declare const ptBR: Localization;
|
|
59
|
+
export declare const ptPT: Localization;
|
|
60
|
+
export declare const roRO: Localization;
|
|
61
|
+
export declare const srRS: Localization;
|
|
62
|
+
export declare const ruRU: Localization;
|
|
63
|
+
export declare const siLK: Localization;
|
|
64
|
+
export declare const skSK: Localization;
|
|
65
|
+
export declare const svSE: Localization;
|
|
66
|
+
export declare const thTH: Localization;
|
|
67
|
+
export declare const trTR: Localization;
|
|
68
|
+
export declare const ukUA: Localization;
|
|
69
|
+
export declare const urPK: Localization;
|
|
70
|
+
export declare const viVN: Localization;
|
|
71
|
+
export declare const zhCN: Localization;
|
|
72
|
+
export declare const zhHK: Localization;
|
|
73
|
+
export declare const zhTW: Localization;
|
package/locale/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.srRS = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.nbNO = exports.mkMK = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hrHR = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.daDK = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arSA = exports.arEG = exports.amET = void 0;
|
|
6
|
+
exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.urPK = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.srRS = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.nbNO = exports.mkMK = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hrHR = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.daDK = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arSA = exports.arEG = exports.amET = void 0;
|
|
7
7
|
const amET = {
|
|
8
8
|
components: {
|
|
9
9
|
MuiBreadcrumbs: {
|
|
@@ -3390,6 +3390,80 @@ const ukUA = {
|
|
|
3390
3390
|
}
|
|
3391
3391
|
};
|
|
3392
3392
|
exports.ukUA = ukUA;
|
|
3393
|
+
const urPK = {
|
|
3394
|
+
components: {
|
|
3395
|
+
MuiBreadcrumbs: {
|
|
3396
|
+
defaultProps: {
|
|
3397
|
+
expandText: 'راستہ دکھائیں'
|
|
3398
|
+
}
|
|
3399
|
+
},
|
|
3400
|
+
MuiTablePagination: {
|
|
3401
|
+
defaultProps: {
|
|
3402
|
+
getItemAriaLabel: type => {
|
|
3403
|
+
if (type === 'first') {
|
|
3404
|
+
return 'پہلے صفحے پر جائیں';
|
|
3405
|
+
}
|
|
3406
|
+
if (type === 'last') {
|
|
3407
|
+
return 'آخری صفحے پر جائیں';
|
|
3408
|
+
}
|
|
3409
|
+
if (type === 'next') {
|
|
3410
|
+
return 'اگلے صفحے پر جائیں';
|
|
3411
|
+
}
|
|
3412
|
+
// if (type === 'previous') {
|
|
3413
|
+
return 'پچھلے صفحے پر جائیں';
|
|
3414
|
+
},
|
|
3415
|
+
labelRowsPerPage: 'ایک صفحے پر قطاریں:',
|
|
3416
|
+
labelDisplayedRows: ({
|
|
3417
|
+
from,
|
|
3418
|
+
to,
|
|
3419
|
+
count
|
|
3420
|
+
}) => `${count !== -1 ? `${count} میں سے` : `${to} سے ذیادہ میں سے`} ${from} سے ${to} قطاریں`
|
|
3421
|
+
}
|
|
3422
|
+
},
|
|
3423
|
+
MuiRating: {
|
|
3424
|
+
defaultProps: {
|
|
3425
|
+
getLabelText: value => `${value} ستار${value !== 1 ? 'ے' : 'ہ'}`,
|
|
3426
|
+
emptyLabelText: 'خالی'
|
|
3427
|
+
}
|
|
3428
|
+
},
|
|
3429
|
+
MuiAutocomplete: {
|
|
3430
|
+
defaultProps: {
|
|
3431
|
+
clearText: 'کلئیر',
|
|
3432
|
+
closeText: 'بند کریں',
|
|
3433
|
+
loadingText: 'لوڈ ہو رہا ہے۔۔۔',
|
|
3434
|
+
noOptionsText: 'کوئی آپشن نہیں',
|
|
3435
|
+
openText: 'کھولیں'
|
|
3436
|
+
}
|
|
3437
|
+
},
|
|
3438
|
+
MuiAlert: {
|
|
3439
|
+
defaultProps: {
|
|
3440
|
+
closeText: 'بند کریں'
|
|
3441
|
+
}
|
|
3442
|
+
},
|
|
3443
|
+
MuiPagination: {
|
|
3444
|
+
defaultProps: {
|
|
3445
|
+
'aria-label': 'صفحات کی ترتیب',
|
|
3446
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
3447
|
+
if (type === 'page') {
|
|
3448
|
+
return `صفحہ نمبر ${page}${selected ? '' : ' پر جائیں'}`;
|
|
3449
|
+
}
|
|
3450
|
+
if (type === 'first') {
|
|
3451
|
+
return 'پہلے صفحے پر جائیں';
|
|
3452
|
+
}
|
|
3453
|
+
if (type === 'last') {
|
|
3454
|
+
return 'آخری صفحے پر جائیں';
|
|
3455
|
+
}
|
|
3456
|
+
if (type === 'next') {
|
|
3457
|
+
return 'اگلے صفحے پر جائیں';
|
|
3458
|
+
}
|
|
3459
|
+
// if (type === 'previous') {
|
|
3460
|
+
return 'پچھلے صفحے پر جائیں';
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
};
|
|
3466
|
+
exports.urPK = urPK;
|
|
3393
3467
|
const viVN = {
|
|
3394
3468
|
components: {
|
|
3395
3469
|
MuiBreadcrumbs: {
|
|
File without changes
|
package/modern/Paper/Paper.js
CHANGED
|
@@ -8,21 +8,11 @@ import { chainPropTypes, integerPropType } from '@mui/utils';
|
|
|
8
8
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
9
|
import { alpha } from '@mui/system';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
|
+
import getOverlayAlpha from '../styles/getOverlayAlpha';
|
|
11
12
|
import useThemeProps from '../styles/useThemeProps';
|
|
12
13
|
import useTheme from '../styles/useTheme';
|
|
13
14
|
import { getPaperUtilityClass } from './paperClasses';
|
|
14
|
-
|
|
15
|
-
// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
export const getOverlayAlpha = elevation => {
|
|
18
|
-
let alphaValue;
|
|
19
|
-
if (elevation < 1) {
|
|
20
|
-
alphaValue = 5.11916 * elevation ** 2;
|
|
21
|
-
} else {
|
|
22
|
-
alphaValue = 4.5 * Math.log(elevation + 1) + 2;
|
|
23
|
-
}
|
|
24
|
-
return (alphaValue / 100).toFixed(2);
|
|
25
|
-
};
|
|
26
16
|
const useUtilityClasses = ownerState => {
|
|
27
17
|
const {
|
|
28
18
|
square,
|
package/modern/index.js
CHANGED
package/modern/locale/index.js
CHANGED
|
@@ -3343,6 +3343,79 @@ export const ukUA = {
|
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
3345
|
};
|
|
3346
|
+
export const urPK = {
|
|
3347
|
+
components: {
|
|
3348
|
+
MuiBreadcrumbs: {
|
|
3349
|
+
defaultProps: {
|
|
3350
|
+
expandText: 'راستہ دکھائیں'
|
|
3351
|
+
}
|
|
3352
|
+
},
|
|
3353
|
+
MuiTablePagination: {
|
|
3354
|
+
defaultProps: {
|
|
3355
|
+
getItemAriaLabel: type => {
|
|
3356
|
+
if (type === 'first') {
|
|
3357
|
+
return 'پہلے صفحے پر جائیں';
|
|
3358
|
+
}
|
|
3359
|
+
if (type === 'last') {
|
|
3360
|
+
return 'آخری صفحے پر جائیں';
|
|
3361
|
+
}
|
|
3362
|
+
if (type === 'next') {
|
|
3363
|
+
return 'اگلے صفحے پر جائیں';
|
|
3364
|
+
}
|
|
3365
|
+
// if (type === 'previous') {
|
|
3366
|
+
return 'پچھلے صفحے پر جائیں';
|
|
3367
|
+
},
|
|
3368
|
+
labelRowsPerPage: 'ایک صفحے پر قطاریں:',
|
|
3369
|
+
labelDisplayedRows: ({
|
|
3370
|
+
from,
|
|
3371
|
+
to,
|
|
3372
|
+
count
|
|
3373
|
+
}) => `${count !== -1 ? `${count} میں سے` : `${to} سے ذیادہ میں سے`} ${from} سے ${to} قطاریں`
|
|
3374
|
+
}
|
|
3375
|
+
},
|
|
3376
|
+
MuiRating: {
|
|
3377
|
+
defaultProps: {
|
|
3378
|
+
getLabelText: value => `${value} ستار${value !== 1 ? 'ے' : 'ہ'}`,
|
|
3379
|
+
emptyLabelText: 'خالی'
|
|
3380
|
+
}
|
|
3381
|
+
},
|
|
3382
|
+
MuiAutocomplete: {
|
|
3383
|
+
defaultProps: {
|
|
3384
|
+
clearText: 'کلئیر',
|
|
3385
|
+
closeText: 'بند کریں',
|
|
3386
|
+
loadingText: 'لوڈ ہو رہا ہے۔۔۔',
|
|
3387
|
+
noOptionsText: 'کوئی آپشن نہیں',
|
|
3388
|
+
openText: 'کھولیں'
|
|
3389
|
+
}
|
|
3390
|
+
},
|
|
3391
|
+
MuiAlert: {
|
|
3392
|
+
defaultProps: {
|
|
3393
|
+
closeText: 'بند کریں'
|
|
3394
|
+
}
|
|
3395
|
+
},
|
|
3396
|
+
MuiPagination: {
|
|
3397
|
+
defaultProps: {
|
|
3398
|
+
'aria-label': 'صفحات کی ترتیب',
|
|
3399
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
3400
|
+
if (type === 'page') {
|
|
3401
|
+
return `صفحہ نمبر ${page}${selected ? '' : ' پر جائیں'}`;
|
|
3402
|
+
}
|
|
3403
|
+
if (type === 'first') {
|
|
3404
|
+
return 'پہلے صفحے پر جائیں';
|
|
3405
|
+
}
|
|
3406
|
+
if (type === 'last') {
|
|
3407
|
+
return 'آخری صفحے پر جائیں';
|
|
3408
|
+
}
|
|
3409
|
+
if (type === 'next') {
|
|
3410
|
+
return 'اگلے صفحے پر جائیں';
|
|
3411
|
+
}
|
|
3412
|
+
// if (type === 'previous') {
|
|
3413
|
+
return 'پچھلے صفحے پر جائیں';
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
};
|
|
3346
3419
|
export const viVN = {
|
|
3347
3420
|
components: {
|
|
3348
3421
|
MuiBreadcrumbs: {
|
|
@@ -5,7 +5,7 @@ const _excluded = ["colorSchemes", "cssVarPrefix"],
|
|
|
5
5
|
import { deepmerge } from '@mui/utils';
|
|
6
6
|
import { colorChannel, alpha, darken, lighten, emphasize, unstable_createGetCssVar as systemCreateGetCssVar } from '@mui/system';
|
|
7
7
|
import createThemeWithoutVars from './createTheme';
|
|
8
|
-
import
|
|
8
|
+
import getOverlayAlpha from './getOverlayAlpha';
|
|
9
9
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
10
10
|
if (index === 0) {
|
|
11
11
|
return undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
|
|
2
|
+
const getOverlayAlpha = elevation => {
|
|
3
|
+
let alphaValue;
|
|
4
|
+
if (elevation < 1) {
|
|
5
|
+
alphaValue = 5.11916 * elevation ** 2;
|
|
6
|
+
} else {
|
|
7
|
+
alphaValue = 4.5 * Math.log(elevation + 1) + 2;
|
|
8
|
+
}
|
|
9
|
+
return (alphaValue / 100).toFixed(2);
|
|
10
|
+
};
|
|
11
|
+
export default getOverlayAlpha;
|
package/modern/styles/index.js
CHANGED
|
@@ -18,4 +18,9 @@ export { default as makeStyles } from './makeStyles';
|
|
|
18
18
|
export { default as withStyles } from './withStyles';
|
|
19
19
|
export { default as withTheme } from './withTheme';
|
|
20
20
|
export * from './CssVarsProvider';
|
|
21
|
-
export { default as experimental_extendTheme } from './experimental_extendTheme';
|
|
21
|
+
export { default as experimental_extendTheme } from './experimental_extendTheme';
|
|
22
|
+
export { default as getOverlayAlpha } from './getOverlayAlpha';
|
|
23
|
+
|
|
24
|
+
// Private methods for creating parts of the theme
|
|
25
|
+
export { default as private_createTypography } from './createTypography';
|
|
26
|
+
export { default as private_excludeVariablesFromRoot } from './excludeVariablesFromRoot';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.20.1",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.10.
|
|
51
|
-
"@mui/system": "^5.10.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.107",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.10.15",
|
|
51
|
+
"@mui/system": "^5.10.15",
|
|
52
52
|
"@mui/types": "^7.2.1",
|
|
53
|
-
"@mui/utils": "^5.10.
|
|
53
|
+
"@mui/utils": "^5.10.15",
|
|
54
54
|
"@types/react-transition-group": "^4.4.5",
|
|
55
55
|
"clsx": "^1.2.1",
|
|
56
56
|
"csstype": "^3.1.1",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
-
declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
|
|
4
|
-
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
5
|
-
theme?: {
|
|
6
|
-
cssVarPrefix?: string | undefined;
|
|
7
|
-
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
8
|
-
} | undefined;
|
|
9
|
-
documentNode?: Document | null | undefined;
|
|
10
|
-
colorSchemeNode?: Document | HTMLElement | null | undefined;
|
|
11
|
-
colorSchemeSelector?: string | undefined;
|
|
12
|
-
storageWindow?: Window | null | undefined;
|
|
13
|
-
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
14
|
-
export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
+
declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
|
|
4
|
+
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
5
|
+
theme?: {
|
|
6
|
+
cssVarPrefix?: string | undefined;
|
|
7
|
+
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
8
|
+
} | undefined;
|
|
9
|
+
documentNode?: Document | null | undefined;
|
|
10
|
+
colorSchemeNode?: Document | HTMLElement | null | undefined;
|
|
11
|
+
colorSchemeSelector?: string | undefined;
|
|
12
|
+
storageWindow?: Window | null | undefined;
|
|
13
|
+
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
14
|
+
export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
-
*/
|
|
4
|
-
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
-
export default excludeVariablesFromRoot;
|
|
1
|
+
/**
|
|
2
|
+
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
+
*/
|
|
4
|
+
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
+
export default excludeVariablesFromRoot;
|