@mui/material 5.9.3 → 5.10.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/Autocomplete.js +2 -2
- 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 +179 -4
- 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 +88 -88
- 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/Grid.d.ts +1 -1
- package/Grid/Grid.js +6 -2
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.js +1 -1
- 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/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 +24 -24
- package/README.md +9 -8
- 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/Skeleton.d.ts +1 -1
- package/Skeleton/Skeleton.js +3 -1
- package/Skeleton/skeletonClasses.d.ts +26 -24
- package/Skeleton/skeletonClasses.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/StepLabel.js +1 -1
- 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 +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/TableCell.d.ts +6 -2
- package/TableCell/TableCell.js +6 -2
- 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/Tooltip.js +1 -1
- 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/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Autocomplete/Autocomplete.js +2 -2
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Grid/Grid.js +6 -2
- package/legacy/IconButton/IconButton.js +1 -1
- package/legacy/Skeleton/Skeleton.js +3 -1
- package/legacy/Skeleton/skeletonClasses.js +1 -1
- package/legacy/StepLabel/StepLabel.js +1 -1
- package/legacy/TableCell/TableCell.js +6 -2
- package/legacy/Tooltip/Tooltip.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/useScrollTrigger/useScrollTrigger.js +6 -2
- package/locale/index.d.ts +71 -71
- package/modern/Autocomplete/Autocomplete.js +2 -2
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Grid/Grid.js +2 -2
- package/modern/IconButton/IconButton.js +1 -1
- package/modern/Skeleton/Skeleton.js +3 -1
- package/modern/Skeleton/skeletonClasses.js +1 -1
- package/modern/StepLabel/StepLabel.js +1 -1
- package/modern/TableCell/TableCell.js +6 -2
- package/modern/Tooltip/Tooltip.js +1 -1
- package/modern/index.js +1 -1
- package/modern/useScrollTrigger/useScrollTrigger.js +6 -2
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Grid/Grid.js +6 -2
- package/node/IconButton/IconButton.js +1 -1
- package/node/Skeleton/Skeleton.js +3 -1
- package/node/Skeleton/skeletonClasses.js +1 -1
- package/node/StepLabel/StepLabel.js +1 -1
- package/node/TableCell/TableCell.js +6 -2
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/index.js +1 -1
- package/node/useScrollTrigger/useScrollTrigger.js +6 -2
- package/package.json +4 -3
- package/styles/CssVarsProvider.d.ts +14 -14
- 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 +216 -109
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useScrollTrigger/useScrollTrigger.js +6 -2
- 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
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface SwitchBaseClasses {
|
|
2
|
-
root: string;
|
|
3
|
-
checked: string;
|
|
4
|
-
disabled: string;
|
|
5
|
-
input: string;
|
|
6
|
-
edgeStart: string;
|
|
7
|
-
edgeEnd: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
|
|
10
|
-
export declare function getSwitchBaseUtilityClass(slot: string): string;
|
|
11
|
-
declare const switchBaseClasses: SwitchBaseClasses;
|
|
12
|
-
export default switchBaseClasses;
|
|
1
|
+
export interface SwitchBaseClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
checked: string;
|
|
4
|
+
disabled: string;
|
|
5
|
+
input: string;
|
|
6
|
+
edgeStart: string;
|
|
7
|
+
edgeEnd: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
|
|
10
|
+
export declare function getSwitchBaseUtilityClass(slot: string): string;
|
|
11
|
+
declare const switchBaseClasses: SwitchBaseClasses;
|
|
12
|
+
export default switchBaseClasses;
|
|
@@ -590,7 +590,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
590
590
|
readOnly: readOnly
|
|
591
591
|
}, getInputProps())
|
|
592
592
|
})
|
|
593
|
-
})),
|
|
593
|
+
})), anchorEl ? /*#__PURE__*/_jsx(AutocompletePopper, _extends({
|
|
594
594
|
as: PopperComponent,
|
|
595
595
|
disablePortal: disablePortal,
|
|
596
596
|
style: {
|
|
@@ -599,7 +599,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
599
599
|
ownerState: ownerState,
|
|
600
600
|
role: "presentation",
|
|
601
601
|
anchorEl: anchorEl,
|
|
602
|
-
open:
|
|
602
|
+
open: popupOpen
|
|
603
603
|
}, componentsProps.popper, {
|
|
604
604
|
className: clsx(classes.popper, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
|
|
605
605
|
children: /*#__PURE__*/_jsxs(AutocompletePaper, _extends({
|
|
File without changes
|
package/legacy/Grid/Grid.js
CHANGED
|
@@ -180,6 +180,8 @@ export function generateRowGap(_ref4) {
|
|
|
180
180
|
styles = handleBreakpoints({
|
|
181
181
|
theme: theme
|
|
182
182
|
}, rowSpacingValues, function (propValue, breakpoint) {
|
|
183
|
+
var _zeroValueBreakpointK;
|
|
184
|
+
|
|
183
185
|
var themeSpacing = theme.spacing(propValue);
|
|
184
186
|
|
|
185
187
|
if (themeSpacing !== '0px') {
|
|
@@ -190,7 +192,7 @@ export function generateRowGap(_ref4) {
|
|
|
190
192
|
});
|
|
191
193
|
}
|
|
192
194
|
|
|
193
|
-
if (zeroValueBreakpointKeys.includes(breakpoint)) {
|
|
195
|
+
if ((_zeroValueBreakpointK = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK.includes(breakpoint)) {
|
|
194
196
|
return {};
|
|
195
197
|
}
|
|
196
198
|
|
|
@@ -228,6 +230,8 @@ export function generateColumnGap(_ref7) {
|
|
|
228
230
|
styles = handleBreakpoints({
|
|
229
231
|
theme: theme
|
|
230
232
|
}, columnSpacingValues, function (propValue, breakpoint) {
|
|
233
|
+
var _zeroValueBreakpointK2;
|
|
234
|
+
|
|
231
235
|
var themeSpacing = theme.spacing(propValue);
|
|
232
236
|
|
|
233
237
|
if (themeSpacing !== '0px') {
|
|
@@ -239,7 +243,7 @@ export function generateColumnGap(_ref7) {
|
|
|
239
243
|
});
|
|
240
244
|
}
|
|
241
245
|
|
|
242
|
-
if (zeroValueBreakpointKeys.includes(breakpoint)) {
|
|
246
|
+
if ((_zeroValueBreakpointK2 = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK2.includes(breakpoint)) {
|
|
243
247
|
return {};
|
|
244
248
|
}
|
|
245
249
|
|
|
@@ -50,7 +50,7 @@ var IconButtonRoot = styled(ButtonBase, {
|
|
|
50
50
|
})
|
|
51
51
|
}, !ownerState.disableRipple && {
|
|
52
52
|
'&:hover': {
|
|
53
|
-
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.
|
|
53
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.activeChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
|
|
54
54
|
// Reset on touch devices, it doesn't add specificity
|
|
55
55
|
'@media (hover: none)': {
|
|
56
56
|
backgroundColor: 'transparent'
|
|
@@ -59,6 +59,8 @@ var SkeletonRoot = styled('span', {
|
|
|
59
59
|
}
|
|
60
60
|
}, ownerState.variant === 'circular' && {
|
|
61
61
|
borderRadius: '50%'
|
|
62
|
+
}, ownerState.variant === 'rounded' && {
|
|
63
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
62
64
|
}, ownerState.hasChildren && {
|
|
63
65
|
'& > *': {
|
|
64
66
|
visibility: 'hidden'
|
|
@@ -172,7 +174,7 @@ process.env.NODE_ENV !== "production" ? Skeleton.propTypes
|
|
|
172
174
|
*/
|
|
173
175
|
variant: PropTypes
|
|
174
176
|
/* @typescript-to-proptypes-ignore */
|
|
175
|
-
.oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'text']), PropTypes.string]),
|
|
177
|
+
.oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'rounded', 'text']), PropTypes.string]),
|
|
176
178
|
|
|
177
179
|
/**
|
|
178
180
|
* Width of the skeleton.
|
|
@@ -2,5 +2,5 @@ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
|
2
2
|
export function getSkeletonUtilityClass(slot) {
|
|
3
3
|
return generateUtilityClass('MuiSkeleton', slot);
|
|
4
4
|
}
|
|
5
|
-
var skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
|
|
5
|
+
var skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
|
|
6
6
|
export default skeletonClasses;
|
|
@@ -25,7 +25,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
25
25
|
var slots = {
|
|
26
26
|
root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
27
27
|
label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
28
|
-
iconContainer: ['iconContainer', alternativeLabel && 'alternativeLabel'],
|
|
28
|
+
iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
29
29
|
labelContainer: ['labelContainer']
|
|
30
30
|
};
|
|
31
31
|
return composeClasses(slots, getStepLabelUtilityClass, classes);
|
|
@@ -206,7 +206,9 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
|
|
|
206
206
|
* Specify the size of the cell.
|
|
207
207
|
* The prop defaults to the value (`'medium'`) inherited from the parent Table component.
|
|
208
208
|
*/
|
|
209
|
-
size: PropTypes
|
|
209
|
+
size: PropTypes
|
|
210
|
+
/* @typescript-to-proptypes-ignore */
|
|
211
|
+
.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
|
210
212
|
|
|
211
213
|
/**
|
|
212
214
|
* Set aria-sort direction.
|
|
@@ -222,6 +224,8 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
|
|
|
222
224
|
* Specify the cell type.
|
|
223
225
|
* The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.
|
|
224
226
|
*/
|
|
225
|
-
variant: PropTypes
|
|
227
|
+
variant: PropTypes
|
|
228
|
+
/* @typescript-to-proptypes-ignore */
|
|
229
|
+
.oneOfType([PropTypes.oneOf(['body', 'footer', 'head']), PropTypes.string])
|
|
226
230
|
} : void 0;
|
|
227
231
|
export default TableCell;
|
|
@@ -178,7 +178,7 @@ var TooltipArrow = styled('span', {
|
|
|
178
178
|
/* = width / sqrt(2) = (length of the hypotenuse) */
|
|
179
179
|
,
|
|
180
180
|
boxSizing: 'border-box',
|
|
181
|
-
color: theme.vars ?
|
|
181
|
+
color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),
|
|
182
182
|
'&::before': {
|
|
183
183
|
content: '""',
|
|
184
184
|
margin: 'auto',
|
package/legacy/index.js
CHANGED
|
@@ -51,9 +51,13 @@ export default function useScrollTrigger() {
|
|
|
51
51
|
|
|
52
52
|
handleScroll(); // Re-evaluate trigger when dependencies change
|
|
53
53
|
|
|
54
|
-
target.addEventListener('scroll', handleScroll
|
|
54
|
+
target.addEventListener('scroll', handleScroll, {
|
|
55
|
+
passive: true
|
|
56
|
+
});
|
|
55
57
|
return function () {
|
|
56
|
-
target.removeEventListener('scroll', handleScroll
|
|
58
|
+
target.removeEventListener('scroll', handleScroll, {
|
|
59
|
+
passive: true
|
|
60
|
+
});
|
|
57
61
|
}; // See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
|
|
58
62
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
59
63
|
}, [target, getTrigger, JSON.stringify(other)]);
|
package/locale/index.d.ts
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
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 arSD: Localization;
|
|
27
|
-
export declare const azAZ: Localization;
|
|
28
|
-
export declare const bnBD: Localization;
|
|
29
|
-
export declare const bgBG: Localization;
|
|
30
|
-
export declare const caES: Localization;
|
|
31
|
-
export declare const csCZ: Localization;
|
|
32
|
-
export declare const daDK: Localization;
|
|
33
|
-
export declare const deDE: Localization;
|
|
34
|
-
export declare const elGR: Localization;
|
|
35
|
-
export declare const enUS: Localization;
|
|
36
|
-
export declare const esES: Localization;
|
|
37
|
-
export declare const etEE: Localization;
|
|
38
|
-
export declare const faIR: Localization;
|
|
39
|
-
export declare const fiFI: Localization;
|
|
40
|
-
export declare const frFR: Localization;
|
|
41
|
-
export declare const heIL: Localization;
|
|
42
|
-
export declare const hiIN: Localization;
|
|
43
|
-
export declare const hrHR: Localization;
|
|
44
|
-
export declare const huHU: Localization;
|
|
45
|
-
export declare const hyAM: Localization;
|
|
46
|
-
export declare const idID: Localization;
|
|
47
|
-
export declare const isIS: Localization;
|
|
48
|
-
export declare const itIT: Localization;
|
|
49
|
-
export declare const jaJP: Localization;
|
|
50
|
-
export declare const khKH: Localization;
|
|
51
|
-
export declare const koKR: Localization;
|
|
52
|
-
export declare const kzKZ: Localization;
|
|
53
|
-
export declare const mkMK: Localization;
|
|
54
|
-
export declare const nbNO: Localization;
|
|
55
|
-
export declare const nlNL: Localization;
|
|
56
|
-
export declare const plPL: Localization;
|
|
57
|
-
export declare const ptBR: Localization;
|
|
58
|
-
export declare const ptPT: Localization;
|
|
59
|
-
export declare const roRO: Localization;
|
|
60
|
-
export declare const srRS: Localization;
|
|
61
|
-
export declare const ruRU: Localization;
|
|
62
|
-
export declare const siLK: Localization;
|
|
63
|
-
export declare const skSK: Localization;
|
|
64
|
-
export declare const svSE: Localization;
|
|
65
|
-
export declare const thTH: Localization;
|
|
66
|
-
export declare const trTR: Localization;
|
|
67
|
-
export declare const ukUA: Localization;
|
|
68
|
-
export declare const viVN: Localization;
|
|
69
|
-
export declare const zhCN: Localization;
|
|
70
|
-
export declare const zhHK: Localization;
|
|
71
|
-
export declare const zhTW: Localization;
|
|
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 arSD: Localization;
|
|
27
|
+
export declare const azAZ: Localization;
|
|
28
|
+
export declare const bnBD: Localization;
|
|
29
|
+
export declare const bgBG: Localization;
|
|
30
|
+
export declare const caES: Localization;
|
|
31
|
+
export declare const csCZ: Localization;
|
|
32
|
+
export declare const daDK: Localization;
|
|
33
|
+
export declare const deDE: Localization;
|
|
34
|
+
export declare const elGR: Localization;
|
|
35
|
+
export declare const enUS: Localization;
|
|
36
|
+
export declare const esES: Localization;
|
|
37
|
+
export declare const etEE: Localization;
|
|
38
|
+
export declare const faIR: Localization;
|
|
39
|
+
export declare const fiFI: Localization;
|
|
40
|
+
export declare const frFR: Localization;
|
|
41
|
+
export declare const heIL: Localization;
|
|
42
|
+
export declare const hiIN: Localization;
|
|
43
|
+
export declare const hrHR: Localization;
|
|
44
|
+
export declare const huHU: Localization;
|
|
45
|
+
export declare const hyAM: Localization;
|
|
46
|
+
export declare const idID: Localization;
|
|
47
|
+
export declare const isIS: Localization;
|
|
48
|
+
export declare const itIT: Localization;
|
|
49
|
+
export declare const jaJP: Localization;
|
|
50
|
+
export declare const khKH: Localization;
|
|
51
|
+
export declare const koKR: Localization;
|
|
52
|
+
export declare const kzKZ: Localization;
|
|
53
|
+
export declare const mkMK: Localization;
|
|
54
|
+
export declare const nbNO: Localization;
|
|
55
|
+
export declare const nlNL: Localization;
|
|
56
|
+
export declare const plPL: Localization;
|
|
57
|
+
export declare const ptBR: Localization;
|
|
58
|
+
export declare const ptPT: Localization;
|
|
59
|
+
export declare const roRO: Localization;
|
|
60
|
+
export declare const srRS: Localization;
|
|
61
|
+
export declare const ruRU: Localization;
|
|
62
|
+
export declare const siLK: Localization;
|
|
63
|
+
export declare const skSK: Localization;
|
|
64
|
+
export declare const svSE: Localization;
|
|
65
|
+
export declare const thTH: Localization;
|
|
66
|
+
export declare const trTR: Localization;
|
|
67
|
+
export declare const ukUA: Localization;
|
|
68
|
+
export declare const viVN: Localization;
|
|
69
|
+
export declare const zhCN: Localization;
|
|
70
|
+
export declare const zhHK: Localization;
|
|
71
|
+
export declare const zhTW: Localization;
|
|
@@ -557,7 +557,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
557
557
|
readOnly
|
|
558
558
|
}, getInputProps())
|
|
559
559
|
})
|
|
560
|
-
})),
|
|
560
|
+
})), anchorEl ? /*#__PURE__*/_jsx(AutocompletePopper, _extends({
|
|
561
561
|
as: PopperComponent,
|
|
562
562
|
disablePortal: disablePortal,
|
|
563
563
|
style: {
|
|
@@ -566,7 +566,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
566
566
|
ownerState: ownerState,
|
|
567
567
|
role: "presentation",
|
|
568
568
|
anchorEl: anchorEl,
|
|
569
|
-
open:
|
|
569
|
+
open: popupOpen
|
|
570
570
|
}, componentsProps.popper, {
|
|
571
571
|
className: clsx(classes.popper, componentsProps.popper?.className),
|
|
572
572
|
children: /*#__PURE__*/_jsxs(AutocompletePaper, _extends({
|
|
File without changes
|
package/modern/Grid/Grid.js
CHANGED
|
@@ -195,7 +195,7 @@ export function generateRowGap({
|
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
if (zeroValueBreakpointKeys
|
|
198
|
+
if (zeroValueBreakpointKeys?.includes(breakpoint)) {
|
|
199
199
|
return {};
|
|
200
200
|
}
|
|
201
201
|
|
|
@@ -249,7 +249,7 @@ export function generateColumnGap({
|
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
if (zeroValueBreakpointKeys
|
|
252
|
+
if (zeroValueBreakpointKeys?.includes(breakpoint)) {
|
|
253
253
|
return {};
|
|
254
254
|
}
|
|
255
255
|
|
|
@@ -54,7 +54,7 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
54
54
|
})
|
|
55
55
|
}, !ownerState.disableRipple && {
|
|
56
56
|
'&:hover': {
|
|
57
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.
|
|
57
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
|
|
58
58
|
// Reset on touch devices, it doesn't add specificity
|
|
59
59
|
'@media (hover: none)': {
|
|
60
60
|
backgroundColor: 'transparent'
|
|
@@ -86,6 +86,8 @@ const SkeletonRoot = styled('span', {
|
|
|
86
86
|
}
|
|
87
87
|
}, ownerState.variant === 'circular' && {
|
|
88
88
|
borderRadius: '50%'
|
|
89
|
+
}, ownerState.variant === 'rounded' && {
|
|
90
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
89
91
|
}, ownerState.hasChildren && {
|
|
90
92
|
'& > *': {
|
|
91
93
|
visibility: 'hidden'
|
|
@@ -221,7 +223,7 @@ process.env.NODE_ENV !== "production" ? Skeleton.propTypes
|
|
|
221
223
|
*/
|
|
222
224
|
variant: PropTypes
|
|
223
225
|
/* @typescript-to-proptypes-ignore */
|
|
224
|
-
.oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'text']), PropTypes.string]),
|
|
226
|
+
.oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'rounded', 'text']), PropTypes.string]),
|
|
225
227
|
|
|
226
228
|
/**
|
|
227
229
|
* Width of the skeleton.
|
|
@@ -2,5 +2,5 @@ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
|
2
2
|
export function getSkeletonUtilityClass(slot) {
|
|
3
3
|
return generateUtilityClass('MuiSkeleton', slot);
|
|
4
4
|
}
|
|
5
|
-
const skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
|
|
5
|
+
const skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
|
|
6
6
|
export default skeletonClasses;
|
|
@@ -27,7 +27,7 @@ const useUtilityClasses = ownerState => {
|
|
|
27
27
|
const slots = {
|
|
28
28
|
root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
29
29
|
label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
30
|
-
iconContainer: ['iconContainer', alternativeLabel && 'alternativeLabel'],
|
|
30
|
+
iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
31
31
|
labelContainer: ['labelContainer']
|
|
32
32
|
};
|
|
33
33
|
return composeClasses(slots, getStepLabelUtilityClass, classes);
|
|
@@ -212,7 +212,9 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
|
|
|
212
212
|
* Specify the size of the cell.
|
|
213
213
|
* The prop defaults to the value (`'medium'`) inherited from the parent Table component.
|
|
214
214
|
*/
|
|
215
|
-
size: PropTypes
|
|
215
|
+
size: PropTypes
|
|
216
|
+
/* @typescript-to-proptypes-ignore */
|
|
217
|
+
.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
|
216
218
|
|
|
217
219
|
/**
|
|
218
220
|
* Set aria-sort direction.
|
|
@@ -228,6 +230,8 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
|
|
|
228
230
|
* Specify the cell type.
|
|
229
231
|
* The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.
|
|
230
232
|
*/
|
|
231
|
-
variant: PropTypes
|
|
233
|
+
variant: PropTypes
|
|
234
|
+
/* @typescript-to-proptypes-ignore */
|
|
235
|
+
.oneOfType([PropTypes.oneOf(['body', 'footer', 'head']), PropTypes.string])
|
|
232
236
|
} : void 0;
|
|
233
237
|
export default TableCell;
|
|
@@ -185,7 +185,7 @@ const TooltipArrow = styled('span', {
|
|
|
185
185
|
/* = width / sqrt(2) = (length of the hypotenuse) */
|
|
186
186
|
,
|
|
187
187
|
boxSizing: 'border-box',
|
|
188
|
-
color: theme.vars ?
|
|
188
|
+
color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),
|
|
189
189
|
'&::before': {
|
|
190
190
|
content: '""',
|
|
191
191
|
margin: 'auto',
|
package/modern/index.js
CHANGED
|
@@ -44,9 +44,13 @@ export default function useScrollTrigger(options = {}) {
|
|
|
44
44
|
|
|
45
45
|
handleScroll(); // Re-evaluate trigger when dependencies change
|
|
46
46
|
|
|
47
|
-
target.addEventListener('scroll', handleScroll
|
|
47
|
+
target.addEventListener('scroll', handleScroll, {
|
|
48
|
+
passive: true
|
|
49
|
+
});
|
|
48
50
|
return () => {
|
|
49
|
-
target.removeEventListener('scroll', handleScroll
|
|
51
|
+
target.removeEventListener('scroll', handleScroll, {
|
|
52
|
+
passive: true
|
|
53
|
+
});
|
|
50
54
|
}; // See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
|
|
51
55
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
52
56
|
}, [target, getTrigger, JSON.stringify(other)]);
|
|
@@ -601,7 +601,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
601
601
|
readOnly
|
|
602
602
|
}, getInputProps())
|
|
603
603
|
})
|
|
604
|
-
})),
|
|
604
|
+
})), anchorEl ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompletePopper, (0, _extends2.default)({
|
|
605
605
|
as: PopperComponent,
|
|
606
606
|
disablePortal: disablePortal,
|
|
607
607
|
style: {
|
|
@@ -610,7 +610,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
610
610
|
ownerState: ownerState,
|
|
611
611
|
role: "presentation",
|
|
612
612
|
anchorEl: anchorEl,
|
|
613
|
-
open:
|
|
613
|
+
open: popupOpen
|
|
614
614
|
}, componentsProps.popper, {
|
|
615
615
|
className: (0, _clsx.default)(classes.popper, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
|
|
616
616
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AutocompletePaper, (0, _extends2.default)({
|
|
File without changes
|
package/node/Grid/Grid.js
CHANGED
|
@@ -209,6 +209,8 @@ function generateRowGap({
|
|
|
209
209
|
styles = (0, _system.handleBreakpoints)({
|
|
210
210
|
theme
|
|
211
211
|
}, rowSpacingValues, (propValue, breakpoint) => {
|
|
212
|
+
var _zeroValueBreakpointK;
|
|
213
|
+
|
|
212
214
|
const themeSpacing = theme.spacing(propValue);
|
|
213
215
|
|
|
214
216
|
if (themeSpacing !== '0px') {
|
|
@@ -220,7 +222,7 @@ function generateRowGap({
|
|
|
220
222
|
};
|
|
221
223
|
}
|
|
222
224
|
|
|
223
|
-
if (zeroValueBreakpointKeys.includes(breakpoint)) {
|
|
225
|
+
if ((_zeroValueBreakpointK = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK.includes(breakpoint)) {
|
|
224
226
|
return {};
|
|
225
227
|
}
|
|
226
228
|
|
|
@@ -263,6 +265,8 @@ function generateColumnGap({
|
|
|
263
265
|
styles = (0, _system.handleBreakpoints)({
|
|
264
266
|
theme
|
|
265
267
|
}, columnSpacingValues, (propValue, breakpoint) => {
|
|
268
|
+
var _zeroValueBreakpointK2;
|
|
269
|
+
|
|
266
270
|
const themeSpacing = theme.spacing(propValue);
|
|
267
271
|
|
|
268
272
|
if (themeSpacing !== '0px') {
|
|
@@ -275,7 +279,7 @@ function generateColumnGap({
|
|
|
275
279
|
};
|
|
276
280
|
}
|
|
277
281
|
|
|
278
|
-
if (zeroValueBreakpointKeys.includes(breakpoint)) {
|
|
282
|
+
if ((_zeroValueBreakpointK2 = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK2.includes(breakpoint)) {
|
|
279
283
|
return {};
|
|
280
284
|
}
|
|
281
285
|
|
|
@@ -81,7 +81,7 @@ const IconButtonRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
81
81
|
})
|
|
82
82
|
}, !ownerState.disableRipple && {
|
|
83
83
|
'&:hover': {
|
|
84
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.
|
|
84
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(theme.palette.action.active, theme.palette.action.hoverOpacity),
|
|
85
85
|
// Reset on touch devices, it doesn't add specificity
|
|
86
86
|
'@media (hover: none)': {
|
|
87
87
|
backgroundColor: 'transparent'
|
|
@@ -111,6 +111,8 @@ const SkeletonRoot = (0, _styled.default)('span', {
|
|
|
111
111
|
}
|
|
112
112
|
}, ownerState.variant === 'circular' && {
|
|
113
113
|
borderRadius: '50%'
|
|
114
|
+
}, ownerState.variant === 'rounded' && {
|
|
115
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
114
116
|
}, ownerState.hasChildren && {
|
|
115
117
|
'& > *': {
|
|
116
118
|
visibility: 'hidden'
|
|
@@ -243,7 +245,7 @@ process.env.NODE_ENV !== "production" ? Skeleton.propTypes
|
|
|
243
245
|
*/
|
|
244
246
|
variant: _propTypes.default
|
|
245
247
|
/* @typescript-to-proptypes-ignore */
|
|
246
|
-
.oneOfType([_propTypes.default.oneOf(['circular', 'rectangular', 'text']), _propTypes.default.string]),
|
|
248
|
+
.oneOfType([_propTypes.default.oneOf(['circular', 'rectangular', 'rounded', 'text']), _propTypes.default.string]),
|
|
247
249
|
|
|
248
250
|
/**
|
|
249
251
|
* Width of the skeleton.
|
|
@@ -12,6 +12,6 @@ function getSkeletonUtilityClass(slot) {
|
|
|
12
12
|
return (0, _base.generateUtilityClass)('MuiSkeleton', slot);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const skeletonClasses = (0, _base.generateUtilityClasses)('MuiSkeleton', ['root', 'text', 'rectangular', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
|
|
15
|
+
const skeletonClasses = (0, _base.generateUtilityClasses)('MuiSkeleton', ['root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
|
|
16
16
|
var _default = skeletonClasses;
|
|
17
17
|
exports.default = _default;
|
|
@@ -52,7 +52,7 @@ const useUtilityClasses = ownerState => {
|
|
|
52
52
|
const slots = {
|
|
53
53
|
root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
54
54
|
label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
55
|
-
iconContainer: ['iconContainer', alternativeLabel && 'alternativeLabel'],
|
|
55
|
+
iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
56
56
|
labelContainer: ['labelContainer']
|
|
57
57
|
};
|
|
58
58
|
return (0, _base.unstable_composeClasses)(slots, _stepLabelClasses.getStepLabelUtilityClass, classes);
|
|
@@ -235,7 +235,9 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
|
|
|
235
235
|
* Specify the size of the cell.
|
|
236
236
|
* The prop defaults to the value (`'medium'`) inherited from the parent Table component.
|
|
237
237
|
*/
|
|
238
|
-
size: _propTypes.default
|
|
238
|
+
size: _propTypes.default
|
|
239
|
+
/* @typescript-to-proptypes-ignore */
|
|
240
|
+
.oneOfType([_propTypes.default.oneOf(['medium', 'small']), _propTypes.default.string]),
|
|
239
241
|
|
|
240
242
|
/**
|
|
241
243
|
* Set aria-sort direction.
|
|
@@ -251,7 +253,9 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
|
|
|
251
253
|
* Specify the cell type.
|
|
252
254
|
* The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.
|
|
253
255
|
*/
|
|
254
|
-
variant: _propTypes.default
|
|
256
|
+
variant: _propTypes.default
|
|
257
|
+
/* @typescript-to-proptypes-ignore */
|
|
258
|
+
.oneOfType([_propTypes.default.oneOf(['body', 'footer', 'head']), _propTypes.default.string])
|
|
255
259
|
} : void 0;
|
|
256
260
|
var _default = TableCell;
|
|
257
261
|
exports.default = _default;
|
package/node/Tooltip/Tooltip.js
CHANGED
|
@@ -219,7 +219,7 @@ const TooltipArrow = (0, _styled.default)('span', {
|
|
|
219
219
|
/* = width / sqrt(2) = (length of the hypotenuse) */
|
|
220
220
|
,
|
|
221
221
|
boxSizing: 'border-box',
|
|
222
|
-
color: theme.vars ?
|
|
222
|
+
color: theme.vars ? theme.vars.palette.Tooltip.bg : (0, _system.alpha)(theme.palette.grey[700], 0.9),
|
|
223
223
|
'&::before': {
|
|
224
224
|
content: '""',
|
|
225
225
|
margin: 'auto',
|
package/node/index.js
CHANGED
|
@@ -60,9 +60,13 @@ function useScrollTrigger(options = {}) {
|
|
|
60
60
|
|
|
61
61
|
handleScroll(); // Re-evaluate trigger when dependencies change
|
|
62
62
|
|
|
63
|
-
target.addEventListener('scroll', handleScroll
|
|
63
|
+
target.addEventListener('scroll', handleScroll, {
|
|
64
|
+
passive: true
|
|
65
|
+
});
|
|
64
66
|
return () => {
|
|
65
|
-
target.removeEventListener('scroll', handleScroll
|
|
67
|
+
target.removeEventListener('scroll', handleScroll, {
|
|
68
|
+
passive: true
|
|
69
|
+
});
|
|
66
70
|
}; // See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
|
|
67
71
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
68
72
|
}, [target, getTrigger, JSON.stringify(other)]);
|