@mui/material 5.4.1 → 5.4.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/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/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 +65 -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 +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/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 +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/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 +17 -17
- 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.js +19 -7
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- 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/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/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/ToggleButton.d.ts +15 -0
- package/ToggleButton/ToggleButton.js +8 -2
- 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/darkScrollbar/index.d.ts +28 -28
- package/index.d.ts +3 -0
- package/index.js +3 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Select/Select.js +23 -7
- package/legacy/ToggleButton/ToggleButton.js +8 -2
- package/legacy/index.js +3 -1
- package/locale/index.d.ts +68 -68
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Select/Select.js +19 -7
- package/modern/ToggleButton/ToggleButton.js +8 -2
- package/modern/index.js +3 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Select/Select.js +22 -9
- package/node/ToggleButton/ToggleButton.js +8 -2
- package/node/index.js +22 -1
- package/package.json +5 -5
- package/styles/index.d.ts +3 -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 +133 -79
- package/umd/material-ui.production.min.js +8 -8
- 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/transitions/utils.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const reflow: (node: Element) => number;
|
|
3
|
-
interface ComponentProps {
|
|
4
|
-
easing: string | {
|
|
5
|
-
enter?: string;
|
|
6
|
-
exit?: string;
|
|
7
|
-
} | undefined;
|
|
8
|
-
style: React.CSSProperties | undefined;
|
|
9
|
-
timeout: number | {
|
|
10
|
-
enter?: number;
|
|
11
|
-
exit?: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface Options {
|
|
15
|
-
mode: 'enter' | 'exit';
|
|
16
|
-
}
|
|
17
|
-
interface TransitionProps {
|
|
18
|
-
duration: string | number;
|
|
19
|
-
easing: string | undefined;
|
|
20
|
-
delay: string | undefined;
|
|
21
|
-
}
|
|
22
|
-
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const reflow: (node: Element) => number;
|
|
3
|
+
interface ComponentProps {
|
|
4
|
+
easing: string | {
|
|
5
|
+
enter?: string;
|
|
6
|
+
exit?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
style: React.CSSProperties | undefined;
|
|
9
|
+
timeout: number | {
|
|
10
|
+
enter?: number;
|
|
11
|
+
exit?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Options {
|
|
15
|
+
mode: 'enter' | 'exit';
|
|
16
|
+
}
|
|
17
|
+
interface TransitionProps {
|
|
18
|
+
duration: string | number;
|
|
19
|
+
easing: string | undefined;
|
|
20
|
+
delay: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.4.
|
|
1
|
+
/** @license MUI v5.4.2
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -6281,17 +6281,6 @@
|
|
|
6281
6281
|
return acc;
|
|
6282
6282
|
}, {});
|
|
6283
6283
|
|
|
6284
|
-
function getThemeValue(prop, value, theme) {
|
|
6285
|
-
const inputProps = {
|
|
6286
|
-
[prop]: value,
|
|
6287
|
-
theme
|
|
6288
|
-
};
|
|
6289
|
-
const styleFunction = propToStyleFunction[prop];
|
|
6290
|
-
return styleFunction ? styleFunction(inputProps) : {
|
|
6291
|
-
[prop]: value
|
|
6292
|
-
};
|
|
6293
|
-
}
|
|
6294
|
-
|
|
6295
6284
|
function objectsHaveSameKeys(...objects) {
|
|
6296
6285
|
const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);
|
|
6297
6286
|
const union = new Set(allKeys);
|
|
@@ -6300,72 +6289,100 @@
|
|
|
6300
6289
|
|
|
6301
6290
|
function callIfFn(maybeFn, arg) {
|
|
6302
6291
|
return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;
|
|
6303
|
-
}
|
|
6292
|
+
} // eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6304
6293
|
|
|
6305
|
-
function styleFunctionSx(props) {
|
|
6306
|
-
const {
|
|
6307
|
-
sx,
|
|
6308
|
-
theme = {}
|
|
6309
|
-
} = props || {};
|
|
6310
6294
|
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
*/
|
|
6295
|
+
function unstable_createStyleFunctionSx(styleFunctionMapping$1 = styleFunctionMapping) {
|
|
6296
|
+
const propToStyleFunction = Object.keys(styleFunctionMapping$1).reduce((acc, styleFnName) => {
|
|
6297
|
+
styleFunctionMapping$1[styleFnName].filterProps.forEach(propName => {
|
|
6298
|
+
acc[propName] = styleFunctionMapping$1[styleFnName];
|
|
6299
|
+
});
|
|
6300
|
+
return acc;
|
|
6301
|
+
}, {});
|
|
6319
6302
|
|
|
6303
|
+
function getThemeValue(prop, value, theme) {
|
|
6304
|
+
const inputProps = {
|
|
6305
|
+
[prop]: value,
|
|
6306
|
+
theme
|
|
6307
|
+
};
|
|
6308
|
+
const styleFunction = propToStyleFunction[prop];
|
|
6309
|
+
return styleFunction ? styleFunction(inputProps) : {
|
|
6310
|
+
[prop]: value
|
|
6311
|
+
};
|
|
6312
|
+
}
|
|
6320
6313
|
|
|
6321
|
-
function
|
|
6322
|
-
|
|
6314
|
+
function styleFunctionSx(props) {
|
|
6315
|
+
const {
|
|
6316
|
+
sx,
|
|
6317
|
+
theme = {}
|
|
6318
|
+
} = props || {};
|
|
6323
6319
|
|
|
6324
|
-
if (
|
|
6325
|
-
|
|
6326
|
-
} else if (typeof sxInput !== 'object') {
|
|
6327
|
-
// value
|
|
6328
|
-
return sxInput;
|
|
6320
|
+
if (!sx) {
|
|
6321
|
+
return null; // emotion & styled-components will neglect null
|
|
6329
6322
|
}
|
|
6323
|
+
/*
|
|
6324
|
+
* Receive `sxInput` as object or callback
|
|
6325
|
+
* and then recursively check keys & values to create media query object styles.
|
|
6326
|
+
* (the result will be used in `styled`)
|
|
6327
|
+
*/
|
|
6330
6328
|
|
|
6331
|
-
const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);
|
|
6332
|
-
const breakpointsKeys = Object.keys(emptyBreakpoints);
|
|
6333
|
-
let css = emptyBreakpoints;
|
|
6334
|
-
Object.keys(sxObject).forEach(styleKey => {
|
|
6335
|
-
const value = callIfFn(sxObject[styleKey], theme);
|
|
6336
6329
|
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6330
|
+
function traverse(sxInput) {
|
|
6331
|
+
let sxObject = sxInput;
|
|
6332
|
+
|
|
6333
|
+
if (typeof sxInput === 'function') {
|
|
6334
|
+
sxObject = sxInput(theme);
|
|
6335
|
+
} else if (typeof sxInput !== 'object') {
|
|
6336
|
+
// value
|
|
6337
|
+
return sxInput;
|
|
6338
|
+
}
|
|
6339
|
+
|
|
6340
|
+
if (!sxObject) {
|
|
6341
|
+
return null;
|
|
6342
|
+
}
|
|
6343
|
+
|
|
6344
|
+
const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);
|
|
6345
|
+
const breakpointsKeys = Object.keys(emptyBreakpoints);
|
|
6346
|
+
let css = emptyBreakpoints;
|
|
6347
|
+
Object.keys(sxObject).forEach(styleKey => {
|
|
6348
|
+
const value = callIfFn(sxObject[styleKey], theme);
|
|
6349
|
+
|
|
6350
|
+
if (value !== null && value !== undefined) {
|
|
6351
|
+
if (typeof value === 'object') {
|
|
6352
|
+
if (propToStyleFunction[styleKey]) {
|
|
6353
|
+
css = merge(css, getThemeValue(styleKey, value, theme));
|
|
6353
6354
|
} else {
|
|
6354
|
-
|
|
6355
|
+
const breakpointsValues = handleBreakpoints({
|
|
6356
|
+
theme
|
|
6357
|
+
}, value, x => ({
|
|
6358
|
+
[styleKey]: x
|
|
6359
|
+
}));
|
|
6360
|
+
|
|
6361
|
+
if (objectsHaveSameKeys(breakpointsValues, value)) {
|
|
6362
|
+
css[styleKey] = styleFunctionSx({
|
|
6363
|
+
sx: value,
|
|
6364
|
+
theme
|
|
6365
|
+
});
|
|
6366
|
+
} else {
|
|
6367
|
+
css = merge(css, breakpointsValues);
|
|
6368
|
+
}
|
|
6355
6369
|
}
|
|
6370
|
+
} else {
|
|
6371
|
+
css = merge(css, getThemeValue(styleKey, value, theme));
|
|
6356
6372
|
}
|
|
6357
|
-
} else {
|
|
6358
|
-
css = merge(css, getThemeValue(styleKey, value, theme));
|
|
6359
6373
|
}
|
|
6360
|
-
}
|
|
6361
|
-
|
|
6362
|
-
|
|
6374
|
+
});
|
|
6375
|
+
return removeUnusedBreakpoints(breakpointsKeys, css);
|
|
6376
|
+
}
|
|
6377
|
+
|
|
6378
|
+
return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
|
|
6363
6379
|
}
|
|
6364
6380
|
|
|
6365
|
-
return
|
|
6381
|
+
return styleFunctionSx;
|
|
6366
6382
|
}
|
|
6367
|
-
|
|
6383
|
+
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
6368
6384
|
styleFunctionSx.filterProps = ['sx'];
|
|
6385
|
+
var defaultStyleFunctionSx = styleFunctionSx;
|
|
6369
6386
|
|
|
6370
6387
|
const _excluded$2k = ["sx"];
|
|
6371
6388
|
|
|
@@ -6420,7 +6437,7 @@
|
|
|
6420
6437
|
function sx(styles) {
|
|
6421
6438
|
return ({
|
|
6422
6439
|
theme
|
|
6423
|
-
}) =>
|
|
6440
|
+
}) => defaultStyleFunctionSx({
|
|
6424
6441
|
sx: styles,
|
|
6425
6442
|
theme
|
|
6426
6443
|
});
|
|
@@ -6469,6 +6486,21 @@
|
|
|
6469
6486
|
|
|
6470
6487
|
const _excluded$2j = ["values", "unit", "step"];
|
|
6471
6488
|
|
|
6489
|
+
const sortBreakpointsValues = values => {
|
|
6490
|
+
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
6491
|
+
key,
|
|
6492
|
+
val: values[key]
|
|
6493
|
+
})) || []; // Sort in ascending order
|
|
6494
|
+
|
|
6495
|
+
breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
|
|
6496
|
+
return breakpointsAsArray.reduce((acc, obj) => {
|
|
6497
|
+
return _extends({}, acc, {
|
|
6498
|
+
[obj.key]: obj.val
|
|
6499
|
+
});
|
|
6500
|
+
}, {});
|
|
6501
|
+
}; // Keep in mind that @media is inclusive by the CSS specification.
|
|
6502
|
+
|
|
6503
|
+
|
|
6472
6504
|
function createBreakpoints(breakpoints) {
|
|
6473
6505
|
const {
|
|
6474
6506
|
// The breakpoint **start** at this value.
|
|
@@ -6490,7 +6522,8 @@
|
|
|
6490
6522
|
} = breakpoints,
|
|
6491
6523
|
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2j);
|
|
6492
6524
|
|
|
6493
|
-
const
|
|
6525
|
+
const sortedValues = sortBreakpointsValues(values);
|
|
6526
|
+
const keys = Object.keys(sortedValues);
|
|
6494
6527
|
|
|
6495
6528
|
function up(key) {
|
|
6496
6529
|
const value = typeof values[key] === 'number' ? values[key] : key;
|
|
@@ -6532,7 +6565,7 @@
|
|
|
6532
6565
|
|
|
6533
6566
|
return _extends({
|
|
6534
6567
|
keys,
|
|
6535
|
-
values,
|
|
6568
|
+
values: sortedValues,
|
|
6536
6569
|
up,
|
|
6537
6570
|
down,
|
|
6538
6571
|
between,
|
|
@@ -6715,7 +6748,8 @@
|
|
|
6715
6748
|
const {
|
|
6716
6749
|
defaultTheme,
|
|
6717
6750
|
defaultClassName = 'MuiBox-root',
|
|
6718
|
-
generateClassName
|
|
6751
|
+
generateClassName,
|
|
6752
|
+
styleFunctionSx = defaultStyleFunctionSx
|
|
6719
6753
|
} = options;
|
|
6720
6754
|
const BoxRoot = styled$2('div')(styleFunctionSx);
|
|
6721
6755
|
const Box = /*#__PURE__*/React__namespace.forwardRef(function Box(inProps, ref) {
|
|
@@ -6847,7 +6881,8 @@
|
|
|
6847
6881
|
}
|
|
6848
6882
|
|
|
6849
6883
|
return variantsStyles;
|
|
6850
|
-
};
|
|
6884
|
+
}; // Update /system/styled/#api in case if this changes
|
|
6885
|
+
|
|
6851
6886
|
|
|
6852
6887
|
function shouldForwardProp(prop) {
|
|
6853
6888
|
return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
|
|
@@ -6862,7 +6897,8 @@
|
|
|
6862
6897
|
const {
|
|
6863
6898
|
defaultTheme = systemDefaultTheme,
|
|
6864
6899
|
rootShouldForwardProp = shouldForwardProp,
|
|
6865
|
-
slotShouldForwardProp = shouldForwardProp
|
|
6900
|
+
slotShouldForwardProp = shouldForwardProp,
|
|
6901
|
+
styleFunctionSx = defaultStyleFunctionSx
|
|
6866
6902
|
} = input;
|
|
6867
6903
|
return (tag, inputOptions = {}) => {
|
|
6868
6904
|
const {
|
|
@@ -12739,7 +12775,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12739
12775
|
otherHandlers == null ? void 0 : (_otherHandlers$onFocu = otherHandlers.onFocus) == null ? void 0 : _otherHandlers$onFocu.call(otherHandlers, event);
|
|
12740
12776
|
};
|
|
12741
12777
|
|
|
12742
|
-
const
|
|
12778
|
+
const createHandleHiddenInputBlur = otherHandlers => event => {
|
|
12743
12779
|
var _otherHandlers$onBlur;
|
|
12744
12780
|
|
|
12745
12781
|
handleBlurVisible(event);
|
|
@@ -13130,7 +13166,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13130
13166
|
const ownEventHandlers = {
|
|
13131
13167
|
onChange: createHandleHiddenInputChange(otherHandlers || {}),
|
|
13132
13168
|
onFocus: createHandleHiddenInputFocus(otherHandlers || {}),
|
|
13133
|
-
onBlur:
|
|
13169
|
+
onBlur: createHandleHiddenInputBlur(otherHandlers || {})
|
|
13134
13170
|
};
|
|
13135
13171
|
|
|
13136
13172
|
const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
|
|
@@ -39638,7 +39674,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39638
39674
|
} ;
|
|
39639
39675
|
var SelectInput$1 = SelectInput;
|
|
39640
39676
|
|
|
39641
|
-
var
|
|
39677
|
+
var _StyledInput, _StyledFilledInput;
|
|
39642
39678
|
|
|
39643
39679
|
const _excluded$D = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
|
|
39644
39680
|
|
|
@@ -39649,6 +39685,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39649
39685
|
return classes;
|
|
39650
39686
|
};
|
|
39651
39687
|
|
|
39688
|
+
const styledRootConfig = {
|
|
39689
|
+
name: 'MuiSelect',
|
|
39690
|
+
overridesResolver: (props, styles) => styles.root,
|
|
39691
|
+
shouldForwardProp: prop => rootShouldForwardProp(prop) && prop !== 'variant',
|
|
39692
|
+
slot: 'Root'
|
|
39693
|
+
};
|
|
39694
|
+
const StyledInput = styled$1(Input$1, styledRootConfig)('');
|
|
39695
|
+
const StyledOutlinedInput = styled$1(OutlinedInput$1, styledRootConfig)('');
|
|
39696
|
+
const StyledFilledInput = styled$1(FilledInput$1, styledRootConfig)('');
|
|
39652
39697
|
const Select = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps, ref) {
|
|
39653
39698
|
const props = useThemeProps({
|
|
39654
39699
|
name: 'MuiSelect',
|
|
@@ -39676,7 +39721,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39676
39721
|
open,
|
|
39677
39722
|
renderValue,
|
|
39678
39723
|
SelectDisplayProps,
|
|
39679
|
-
variant:
|
|
39724
|
+
variant: variantProp = 'outlined'
|
|
39680
39725
|
} = props,
|
|
39681
39726
|
other = _objectWithoutPropertiesLoose(props, _excluded$D);
|
|
39682
39727
|
|
|
@@ -39687,16 +39732,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39687
39732
|
muiFormControl,
|
|
39688
39733
|
states: ['variant']
|
|
39689
39734
|
});
|
|
39690
|
-
const variant = fcs.variant ||
|
|
39735
|
+
const variant = fcs.variant || variantProp;
|
|
39691
39736
|
const InputComponent = input || {
|
|
39692
|
-
standard:
|
|
39693
|
-
outlined: /*#__PURE__*/jsxRuntime_1(
|
|
39737
|
+
standard: _StyledInput || (_StyledInput = /*#__PURE__*/jsxRuntime_1(StyledInput, {})),
|
|
39738
|
+
outlined: /*#__PURE__*/jsxRuntime_1(StyledOutlinedInput, {
|
|
39694
39739
|
label: label
|
|
39695
39740
|
}),
|
|
39696
|
-
filled:
|
|
39741
|
+
filled: _StyledFilledInput || (_StyledFilledInput = /*#__PURE__*/jsxRuntime_1(StyledFilledInput, {}))
|
|
39697
39742
|
}[variant];
|
|
39698
39743
|
|
|
39699
39744
|
const ownerState = _extends({}, props, {
|
|
39745
|
+
variant,
|
|
39700
39746
|
classes: classesProp
|
|
39701
39747
|
});
|
|
39702
39748
|
|
|
@@ -39735,7 +39781,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39735
39781
|
notched: true
|
|
39736
39782
|
} : {}, {
|
|
39737
39783
|
ref: inputComponentRef,
|
|
39738
|
-
className: clsx(InputComponent.props.className, className)
|
|
39784
|
+
className: clsx(InputComponent.props.className, className),
|
|
39785
|
+
variant
|
|
39739
39786
|
}, other));
|
|
39740
39787
|
});
|
|
39741
39788
|
Select.propTypes
|
|
@@ -49535,12 +49582,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49535
49582
|
fullWidth: PropTypes.bool,
|
|
49536
49583
|
|
|
49537
49584
|
/**
|
|
49538
|
-
*
|
|
49585
|
+
* Callback fired when the state changes.
|
|
49586
|
+
*
|
|
49587
|
+
* @param {React.MouseEvent<HTMLElement>} event The event source of the callback.
|
|
49588
|
+
* @param {any} value of the selected button.
|
|
49539
49589
|
*/
|
|
49540
49590
|
onChange: PropTypes.func,
|
|
49541
49591
|
|
|
49542
49592
|
/**
|
|
49543
|
-
*
|
|
49593
|
+
* Callback fired when the button is clicked.
|
|
49594
|
+
*
|
|
49595
|
+
* @param {React.MouseEvent<HTMLElement>} event The event source of the callback.
|
|
49596
|
+
* @param {any} value of the selected button.
|
|
49544
49597
|
*/
|
|
49545
49598
|
onClick: PropTypes.func,
|
|
49546
49599
|
|
|
@@ -49972,6 +50025,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49972
50025
|
exports.Paper = Paper$1;
|
|
49973
50026
|
exports.Popover = Popover$1;
|
|
49974
50027
|
exports.Popper = Popper$1;
|
|
50028
|
+
exports.Portal = Portal$1;
|
|
49975
50029
|
exports.Radio = Radio$1;
|
|
49976
50030
|
exports.RadioGroup = RadioGroup$1;
|
|
49977
50031
|
exports.Rating = Rating$1;
|