@mui/material 5.14.10 → 5.14.12
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/Autocomplete/Autocomplete.d.ts +2 -0
- package/ButtonGroup/ButtonGroup.js +8 -8
- package/CHANGELOG.md +159 -0
- package/DialogActions/DialogActions.js +1 -1
- package/Menu/Menu.d.ts +2 -23
- package/Select/SelectInput.js +9 -5
- package/index.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +8 -8
- package/legacy/DialogActions/DialogActions.js +1 -1
- package/legacy/Select/SelectInput.js +9 -5
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +35 -32
- package/locale/index.js +6 -4
- package/modern/ButtonGroup/ButtonGroup.js +8 -8
- package/modern/DialogActions/DialogActions.js +1 -1
- package/modern/Select/SelectInput.js +9 -5
- package/modern/index.js +1 -1
- package/modern/locale/index.js +6 -4
- package/node/Accordion/Accordion.js +1 -2
- package/node/Accordion/AccordionContext.js +1 -2
- package/node/Accordion/accordionClasses.js +1 -2
- package/node/AccordionActions/AccordionActions.js +1 -2
- package/node/AccordionActions/accordionActionsClasses.js +1 -2
- package/node/AccordionDetails/AccordionDetails.js +1 -2
- package/node/AccordionDetails/accordionDetailsClasses.js +1 -2
- package/node/AccordionSummary/AccordionSummary.js +1 -2
- package/node/AccordionSummary/accordionSummaryClasses.js +1 -2
- package/node/Alert/Alert.js +1 -2
- package/node/Alert/alertClasses.js +1 -2
- package/node/AlertTitle/AlertTitle.js +1 -2
- package/node/AlertTitle/alertTitleClasses.js +1 -2
- package/node/AppBar/AppBar.js +1 -2
- package/node/AppBar/appBarClasses.js +1 -2
- package/node/Autocomplete/Autocomplete.js +1 -2
- package/node/Autocomplete/autocompleteClasses.js +1 -2
- package/node/Avatar/Avatar.js +1 -2
- package/node/Avatar/avatarClasses.js +1 -2
- package/node/AvatarGroup/AvatarGroup.js +1 -2
- package/node/AvatarGroup/avatarGroupClasses.js +1 -2
- package/node/Backdrop/Backdrop.js +1 -2
- package/node/Backdrop/backdropClasses.js +1 -2
- package/node/Badge/Badge.js +1 -2
- package/node/Badge/badgeClasses.js +1 -2
- package/node/BottomNavigation/BottomNavigation.js +1 -2
- package/node/BottomNavigation/bottomNavigationClasses.js +1 -2
- package/node/BottomNavigationAction/BottomNavigationAction.js +1 -2
- package/node/BottomNavigationAction/bottomNavigationActionClasses.js +1 -2
- package/node/Box/Box.js +1 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -2
- package/node/Breadcrumbs/Breadcrumbs.js +1 -2
- package/node/Breadcrumbs/breadcrumbsClasses.js +1 -2
- package/node/Button/Button.js +1 -2
- package/node/Button/buttonClasses.js +1 -2
- package/node/ButtonBase/ButtonBase.js +2 -4
- package/node/ButtonBase/Ripple.js +1 -2
- package/node/ButtonBase/TouchRipple.js +4 -8
- package/node/ButtonBase/buttonBaseClasses.js +1 -2
- package/node/ButtonBase/touchRippleClasses.js +1 -2
- package/node/ButtonGroup/ButtonGroup.js +9 -10
- package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -2
- package/node/ButtonGroup/ButtonGroupContext.js +1 -2
- package/node/ButtonGroup/buttonGroupClasses.js +1 -2
- package/node/Card/Card.js +1 -2
- package/node/Card/cardClasses.js +1 -2
- package/node/CardActionArea/CardActionArea.js +1 -2
- package/node/CardActionArea/cardActionAreaClasses.js +1 -2
- package/node/CardActions/CardActions.js +1 -2
- package/node/CardActions/cardActionsClasses.js +1 -2
- package/node/CardContent/CardContent.js +1 -2
- package/node/CardContent/cardContentClasses.js +1 -2
- package/node/CardHeader/CardHeader.js +1 -2
- package/node/CardHeader/cardHeaderClasses.js +1 -2
- package/node/CardMedia/CardMedia.js +1 -2
- package/node/CardMedia/cardMediaClasses.js +1 -2
- package/node/Checkbox/Checkbox.js +1 -2
- package/node/Checkbox/checkboxClasses.js +1 -2
- package/node/Chip/Chip.js +1 -2
- package/node/Chip/chipClasses.js +1 -2
- package/node/CircularProgress/CircularProgress.js +1 -2
- package/node/CircularProgress/circularProgressClasses.js +1 -2
- package/node/Collapse/Collapse.js +1 -2
- package/node/Collapse/collapseClasses.js +1 -2
- package/node/Container/Container.js +1 -2
- package/node/Container/containerClasses.js +1 -2
- package/node/CssBaseline/CssBaseline.js +1 -2
- package/node/Dialog/Dialog.js +1 -2
- package/node/Dialog/DialogContext.js +1 -2
- package/node/Dialog/dialogClasses.js +1 -2
- package/node/DialogActions/DialogActions.js +2 -3
- package/node/DialogActions/dialogActionsClasses.js +1 -2
- package/node/DialogContent/DialogContent.js +1 -2
- package/node/DialogContent/dialogContentClasses.js +1 -2
- package/node/DialogContentText/DialogContentText.js +1 -2
- package/node/DialogContentText/dialogContentTextClasses.js +1 -2
- package/node/DialogTitle/DialogTitle.js +1 -2
- package/node/DialogTitle/dialogTitleClasses.js +1 -2
- package/node/Divider/Divider.js +1 -2
- package/node/Divider/dividerClasses.js +1 -2
- package/node/Drawer/Drawer.js +1 -2
- package/node/Drawer/drawerClasses.js +1 -2
- package/node/Fab/Fab.js +1 -2
- package/node/Fab/fabClasses.js +1 -2
- package/node/Fade/Fade.js +1 -2
- package/node/FilledInput/FilledInput.js +1 -2
- package/node/FilledInput/filledInputClasses.js +1 -2
- package/node/FormControl/FormControl.js +1 -2
- package/node/FormControl/FormControlContext.js +1 -2
- package/node/FormControl/formControlClasses.js +1 -2
- package/node/FormControlLabel/FormControlLabel.js +2 -4
- package/node/FormControlLabel/formControlLabelClasses.js +1 -2
- package/node/FormGroup/FormGroup.js +1 -2
- package/node/FormGroup/formGroupClasses.js +1 -2
- package/node/FormHelperText/FormHelperText.js +1 -2
- package/node/FormHelperText/formHelperTextClasses.js +1 -2
- package/node/FormLabel/FormLabel.js +2 -4
- package/node/FormLabel/formLabelClasses.js +1 -2
- package/node/GlobalStyles/GlobalStyles.js +1 -2
- package/node/Grid/Grid.js +1 -2
- package/node/Grid/GridContext.js +1 -2
- package/node/Grid/gridClasses.js +1 -2
- package/node/Grow/Grow.js +1 -2
- package/node/Hidden/Hidden.js +1 -2
- package/node/Hidden/HiddenCss.js +1 -2
- package/node/Hidden/HiddenJs.js +1 -2
- package/node/Hidden/hiddenCssClasses.js +1 -2
- package/node/Hidden/withWidth.js +1 -2
- package/node/Icon/Icon.js +1 -2
- package/node/Icon/iconClasses.js +1 -2
- package/node/IconButton/IconButton.js +1 -2
- package/node/IconButton/iconButtonClasses.js +1 -2
- package/node/ImageList/ImageList.js +1 -2
- package/node/ImageList/ImageListContext.js +1 -2
- package/node/ImageList/imageListClasses.js +1 -2
- package/node/ImageListItem/ImageListItem.js +1 -2
- package/node/ImageListItem/imageListItemClasses.js +1 -2
- package/node/ImageListItemBar/ImageListItemBar.js +1 -2
- package/node/ImageListItemBar/imageListItemBarClasses.js +1 -2
- package/node/Input/Input.js +1 -2
- package/node/Input/inputClasses.js +1 -2
- package/node/InputAdornment/InputAdornment.js +1 -2
- package/node/InputAdornment/inputAdornmentClasses.js +1 -2
- package/node/InputBase/InputBase.js +3 -6
- package/node/InputBase/inputBaseClasses.js +1 -2
- package/node/InputLabel/InputLabel.js +1 -2
- package/node/InputLabel/inputLabelClasses.js +1 -2
- package/node/LinearProgress/LinearProgress.js +1 -2
- package/node/LinearProgress/linearProgressClasses.js +1 -2
- package/node/Link/Link.js +1 -2
- package/node/Link/getTextDecoration.js +2 -4
- package/node/Link/linkClasses.js +1 -2
- package/node/List/List.js +1 -2
- package/node/List/ListContext.js +1 -2
- package/node/List/listClasses.js +1 -2
- package/node/ListItem/ListItem.js +2 -4
- package/node/ListItem/listItemClasses.js +1 -2
- package/node/ListItemAvatar/ListItemAvatar.js +1 -2
- package/node/ListItemAvatar/listItemAvatarClasses.js +1 -2
- package/node/ListItemButton/ListItemButton.js +1 -2
- package/node/ListItemButton/listItemButtonClasses.js +1 -2
- package/node/ListItemIcon/ListItemIcon.js +1 -2
- package/node/ListItemIcon/listItemIconClasses.js +1 -2
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -2
- package/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js +1 -2
- package/node/ListItemText/ListItemText.js +1 -2
- package/node/ListItemText/listItemTextClasses.js +1 -2
- package/node/ListSubheader/ListSubheader.js +1 -2
- package/node/ListSubheader/listSubheaderClasses.js +1 -2
- package/node/Menu/Menu.js +2 -4
- package/node/Menu/menuClasses.js +1 -2
- package/node/MenuItem/MenuItem.js +1 -2
- package/node/MenuItem/menuItemClasses.js +1 -2
- package/node/MenuList/MenuList.js +1 -2
- package/node/MobileStepper/MobileStepper.js +1 -2
- package/node/MobileStepper/mobileStepperClasses.js +1 -2
- package/node/Modal/Modal.js +1 -2
- package/node/Modal/modalClasses.js +1 -2
- package/node/NativeSelect/NativeSelect.js +1 -2
- package/node/NativeSelect/NativeSelectInput.js +1 -2
- package/node/NativeSelect/nativeSelectClasses.js +1 -2
- package/node/OutlinedInput/OutlinedInput.js +1 -2
- package/node/OutlinedInput/outlinedInputClasses.js +1 -2
- package/node/Pagination/Pagination.js +1 -2
- package/node/Pagination/paginationClasses.js +1 -2
- package/node/PaginationItem/PaginationItem.js +1 -2
- package/node/PaginationItem/paginationItemClasses.js +1 -2
- package/node/Paper/Paper.js +1 -2
- package/node/Paper/paperClasses.js +1 -2
- package/node/Popover/Popover.js +3 -6
- package/node/Popover/popoverClasses.js +1 -2
- package/node/Popper/Popper.js +1 -2
- package/node/Radio/Radio.js +1 -2
- package/node/Radio/RadioButtonIcon.js +1 -2
- package/node/Radio/radioClasses.js +1 -2
- package/node/RadioGroup/RadioGroup.js +1 -2
- package/node/RadioGroup/RadioGroupContext.js +1 -2
- package/node/Rating/Rating.js +1 -2
- package/node/Rating/ratingClasses.js +1 -2
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
- package/node/ScopedCssBaseline/scopedCssBaselineClasses.js +1 -2
- package/node/Select/Select.js +1 -2
- package/node/Select/SelectInput.js +9 -6
- package/node/Select/selectClasses.js +1 -2
- package/node/Skeleton/Skeleton.js +1 -2
- package/node/Skeleton/skeletonClasses.js +1 -2
- package/node/Slide/Slide.js +1 -2
- package/node/Slider/Slider.js +8 -16
- package/node/Slider/sliderClasses.js +1 -2
- package/node/Snackbar/Snackbar.js +1 -2
- package/node/Snackbar/snackbarClasses.js +1 -2
- package/node/SnackbarContent/SnackbarContent.js +1 -2
- package/node/SnackbarContent/snackbarContentClasses.js +1 -2
- package/node/SpeedDial/SpeedDial.js +1 -2
- package/node/SpeedDial/speedDialClasses.js +1 -2
- package/node/SpeedDialAction/SpeedDialAction.js +1 -2
- package/node/SpeedDialAction/speedDialActionClasses.js +1 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/node/SpeedDialIcon/speedDialIconClasses.js +1 -2
- package/node/Stack/Stack.js +1 -2
- package/node/Stack/stackClasses.js +1 -2
- package/node/Step/Step.js +1 -2
- package/node/Step/StepContext.js +1 -2
- package/node/Step/stepClasses.js +1 -2
- package/node/StepButton/StepButton.js +1 -2
- package/node/StepButton/stepButtonClasses.js +1 -2
- package/node/StepConnector/StepConnector.js +1 -2
- package/node/StepConnector/stepConnectorClasses.js +1 -2
- package/node/StepContent/StepContent.js +1 -2
- package/node/StepContent/stepContentClasses.js +1 -2
- package/node/StepIcon/StepIcon.js +1 -2
- package/node/StepIcon/stepIconClasses.js +1 -2
- package/node/StepLabel/StepLabel.js +1 -2
- package/node/StepLabel/stepLabelClasses.js +1 -2
- package/node/Stepper/Stepper.js +1 -2
- package/node/Stepper/StepperContext.js +1 -2
- package/node/Stepper/stepperClasses.js +1 -2
- package/node/SvgIcon/SvgIcon.js +1 -2
- package/node/SvgIcon/svgIconClasses.js +1 -2
- package/node/SwipeableDrawer/SwipeArea.js +1 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/node/Switch/Switch.js +1 -2
- package/node/Switch/switchClasses.js +1 -2
- package/node/Tab/Tab.js +1 -2
- package/node/Tab/tabClasses.js +1 -2
- package/node/TabScrollButton/TabScrollButton.js +1 -2
- package/node/TabScrollButton/tabScrollButtonClasses.js +1 -2
- package/node/Table/Table.js +1 -2
- package/node/Table/TableContext.js +1 -2
- package/node/Table/Tablelvl2Context.js +1 -2
- package/node/Table/tableClasses.js +1 -2
- package/node/TableBody/TableBody.js +1 -2
- package/node/TableBody/tableBodyClasses.js +1 -2
- package/node/TableCell/TableCell.js +1 -2
- package/node/TableCell/tableCellClasses.js +1 -2
- package/node/TableContainer/TableContainer.js +1 -2
- package/node/TableContainer/tableContainerClasses.js +1 -2
- package/node/TableFooter/TableFooter.js +1 -2
- package/node/TableFooter/tableFooterClasses.js +1 -2
- package/node/TableHead/TableHead.js +1 -2
- package/node/TableHead/tableHeadClasses.js +1 -2
- package/node/TablePagination/TablePagination.js +4 -4
- package/node/TablePagination/TablePaginationActions.js +1 -2
- package/node/TablePagination/tablePaginationClasses.js +1 -2
- package/node/TableRow/TableRow.js +1 -2
- package/node/TableRow/tableRowClasses.js +1 -2
- package/node/TableSortLabel/TableSortLabel.js +1 -2
- package/node/TableSortLabel/tableSortLabelClasses.js +1 -2
- package/node/Tabs/Tabs.js +1 -2
- package/node/Tabs/tabsClasses.js +1 -2
- package/node/TextField/TextField.js +1 -2
- package/node/TextField/textFieldClasses.js +1 -2
- package/node/ToggleButton/ToggleButton.js +1 -2
- package/node/ToggleButton/toggleButtonClasses.js +1 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -2
- package/node/Toolbar/Toolbar.js +1 -2
- package/node/Toolbar/toolbarClasses.js +1 -2
- package/node/Tooltip/Tooltip.js +1 -2
- package/node/Tooltip/tooltipClasses.js +1 -2
- package/node/Typography/Typography.js +2 -4
- package/node/Typography/typographyClasses.js +1 -2
- package/node/Unstable_Grid2/Grid2.js +1 -2
- package/node/Unstable_Grid2/grid2Classes.js +1 -2
- package/node/Zoom/Zoom.js +1 -2
- package/node/colors/amber.js +1 -2
- package/node/colors/blue.js +1 -2
- package/node/colors/blueGrey.js +1 -2
- package/node/colors/brown.js +1 -2
- package/node/colors/common.js +1 -2
- package/node/colors/cyan.js +1 -2
- package/node/colors/deepOrange.js +1 -2
- package/node/colors/deepPurple.js +1 -2
- package/node/colors/green.js +1 -2
- package/node/colors/grey.js +1 -2
- package/node/colors/indigo.js +1 -2
- package/node/colors/lightBlue.js +1 -2
- package/node/colors/lightGreen.js +1 -2
- package/node/colors/lime.js +1 -2
- package/node/colors/orange.js +1 -2
- package/node/colors/pink.js +1 -2
- package/node/colors/purple.js +1 -2
- package/node/colors/red.js +1 -2
- package/node/colors/teal.js +1 -2
- package/node/colors/yellow.js +1 -2
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +1 -2
- package/node/internal/svg-icons/Add.js +2 -3
- package/node/internal/svg-icons/ArrowDownward.js +2 -3
- package/node/internal/svg-icons/ArrowDropDown.js +2 -3
- package/node/internal/svg-icons/Cancel.js +2 -3
- package/node/internal/svg-icons/CheckBox.js +2 -3
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +2 -3
- package/node/internal/svg-icons/CheckCircle.js +2 -3
- package/node/internal/svg-icons/Close.js +2 -3
- package/node/internal/svg-icons/ErrorOutline.js +2 -3
- package/node/internal/svg-icons/FirstPage.js +2 -3
- package/node/internal/svg-icons/IndeterminateCheckBox.js +2 -3
- package/node/internal/svg-icons/InfoOutlined.js +2 -3
- package/node/internal/svg-icons/KeyboardArrowLeft.js +2 -3
- package/node/internal/svg-icons/KeyboardArrowRight.js +2 -3
- package/node/internal/svg-icons/LastPage.js +2 -3
- package/node/internal/svg-icons/MoreHoriz.js +2 -3
- package/node/internal/svg-icons/NavigateBefore.js +2 -3
- package/node/internal/svg-icons/NavigateNext.js +2 -3
- package/node/internal/svg-icons/Person.js +2 -3
- package/node/internal/svg-icons/RadioButtonChecked.js +2 -3
- package/node/internal/svg-icons/RadioButtonUnchecked.js +2 -3
- package/node/internal/svg-icons/ReportProblemOutlined.js +2 -3
- package/node/internal/svg-icons/Star.js +2 -3
- package/node/internal/svg-icons/StarBorder.js +2 -3
- package/node/internal/svg-icons/SuccessOutlined.js +2 -3
- package/node/internal/svg-icons/Warning.js +2 -3
- package/node/internal/switchBaseClasses.js +1 -2
- package/node/locale/index.js +68 -119
- package/node/styles/createPalette.js +2 -4
- package/node/styles/createTheme.js +1 -2
- package/node/styles/createTransitions.js +2 -4
- package/node/styles/defaultTheme.js +1 -2
- package/node/styles/excludeVariablesFromRoot.js +1 -2
- package/node/styles/getOverlayAlpha.js +1 -2
- package/node/styles/identifier.js +1 -2
- package/node/styles/shadows.js +1 -2
- package/node/styles/styled.js +2 -4
- package/node/styles/zIndex.js +1 -2
- package/node/useTouchRipple/useTouchRipple.js +1 -2
- package/node/utils/capitalize.js +1 -2
- package/node/utils/createChainedFunction.js +1 -2
- package/node/utils/debounce.js +1 -2
- package/node/utils/deprecatedPropType.js +1 -2
- package/node/utils/getScrollbarSize.js +1 -2
- package/node/utils/index.js +2 -3
- package/node/utils/isMuiElement.js +1 -2
- package/node/utils/ownerDocument.js +1 -2
- package/node/utils/ownerWindow.js +1 -2
- package/node/utils/requirePropFactory.js +1 -2
- package/node/utils/setRef.js +1 -2
- package/node/utils/shouldSpreadAdditionalProps.js +1 -2
- package/node/utils/unsupportedProp.js +1 -2
- package/node/utils/useControlled.js +1 -2
- package/node/utils/useEnhancedEffect.js +1 -2
- package/node/utils/useEventCallback.js +1 -2
- package/node/utils/useForkRef.js +1 -2
- package/node/utils/useId.js +1 -2
- package/node/utils/useIsFocusVisible.js +1 -2
- package/package.json +7 -7
- package/umd/material-ui.development.js +186 -108
- package/umd/material-ui.production.min.js +21 -21
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
AutocompleteChangeReason,
|
|
8
8
|
AutocompleteCloseReason,
|
|
9
9
|
AutocompleteInputChangeReason,
|
|
10
|
+
AutocompleteValue,
|
|
10
11
|
createFilterOptions,
|
|
11
12
|
UseAutocompleteProps,
|
|
12
13
|
AutocompleteFreeSoloValueMapping,
|
|
@@ -22,6 +23,7 @@ export {
|
|
|
22
23
|
AutocompleteChangeReason,
|
|
23
24
|
AutocompleteCloseReason,
|
|
24
25
|
AutocompleteInputChangeReason,
|
|
26
|
+
AutocompleteValue,
|
|
25
27
|
createFilterOptions,
|
|
26
28
|
};
|
|
27
29
|
|
|
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
10
10
|
import { alpha } from '@mui/system';
|
|
11
|
+
import { getValidReactChildren } from '@mui/utils';
|
|
11
12
|
import capitalize from '../utils/capitalize';
|
|
12
13
|
import styled from '../styles/styled';
|
|
13
14
|
import useThemeProps from '../styles/useThemeProps';
|
|
@@ -180,9 +181,11 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
180
181
|
size,
|
|
181
182
|
variant
|
|
182
183
|
}), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
183
|
-
const
|
|
184
|
+
const validChildren = getValidReactChildren(children);
|
|
185
|
+
const childrenCount = validChildren.length;
|
|
186
|
+
const getButtonPositionClassName = index => {
|
|
184
187
|
const isFirstButton = index === 0;
|
|
185
|
-
const isLastButton = index ===
|
|
188
|
+
const isLastButton = index === childrenCount - 1;
|
|
186
189
|
if (isFirstButton && isLastButton) {
|
|
187
190
|
return '';
|
|
188
191
|
}
|
|
@@ -203,14 +206,11 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
203
206
|
}, other, {
|
|
204
207
|
children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {
|
|
205
208
|
value: context,
|
|
206
|
-
children:
|
|
207
|
-
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
208
|
-
return child;
|
|
209
|
-
}
|
|
209
|
+
children: validChildren.map((child, index) => {
|
|
210
210
|
return /*#__PURE__*/_jsx(ButtonGroupButtonContext.Provider, {
|
|
211
|
-
value: getButtonPositionClassName(index
|
|
211
|
+
value: getButtonPositionClassName(index),
|
|
212
212
|
children: child
|
|
213
|
-
});
|
|
213
|
+
}, index);
|
|
214
214
|
})
|
|
215
215
|
})
|
|
216
216
|
}));
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,164 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.14.12
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.14.11..master -->
|
|
6
|
+
|
|
7
|
+
_Oct 3, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🎨 Introduced color inversion utilities to Joy UI (#38916) @siriwatknp
|
|
12
|
+
- 🚀 Added Chip and related TextField components to Material You @DiegoAndai, @mj12albert
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.14.12`
|
|
15
|
+
|
|
16
|
+
- [DialogActions] Apply margin-left when children is not of `button` type (#39189) @sai6855
|
|
17
|
+
- [Select] Improve a11y by adding combobox role and aria-controls attribute (#38785) @xulingzhihou
|
|
18
|
+
- [Select] Fix MenuProps slotProps forwarding (#39177) @DiegoAndai
|
|
19
|
+
- [TextField] Polish types in Textfield demo (#39140) @sai6855
|
|
20
|
+
- [ButtonGroup] Fix rendering with conditional elements (#38989) @ZeeshanTamboli
|
|
21
|
+
|
|
22
|
+
### `@mui/system@5.14.12`
|
|
23
|
+
|
|
24
|
+
- [system] Add support for `variants` in the styled() util (#39073) @mnajdova
|
|
25
|
+
- [Box] Add missing logical spacing property types (#39169) @Semigradsky
|
|
26
|
+
|
|
27
|
+
### `@mui/base@5.0.0-beta.18`
|
|
28
|
+
|
|
29
|
+
- [useSlider] Align externalProps handling (#38854) @mj12albert
|
|
30
|
+
- [useTabs] Align external props handling for useTab/useTabPanel/useTabsList (#39037) @mj12albert
|
|
31
|
+
- [test] Fix import paths in useTab tests (#39291) @mj12albert
|
|
32
|
+
|
|
33
|
+
### `@mui/material-next@6.0.0-alpha.104`
|
|
34
|
+
|
|
35
|
+
- [Chip] Add Material You Chip component (#38927) @DiegoAndai
|
|
36
|
+
- [Divider] Copy v5 Divider (#39197) @mj12albert
|
|
37
|
+
- [FilledInput] Copy v5 FilledInput (#39040) @mj12albert
|
|
38
|
+
- [FormControl] Add FormControl component (#39032) @mj12albert
|
|
39
|
+
- [Select] Copy Select files from v5 (#39188) @DiegoAndai
|
|
40
|
+
- [TextField] Copy v5 TextField's inner components (#39166) @mj12albert
|
|
41
|
+
|
|
42
|
+
### `@mui/joy@5.0.0-beta.9`
|
|
43
|
+
|
|
44
|
+
- Introduce color inversion utilities (#38916) @siriwatknp
|
|
45
|
+
- Replace margin with `gap` property (#39147) @siriwatknp
|
|
46
|
+
- [CssBaseline] use Joy `GlobalStyles` (#39278) @siriwatknp
|
|
47
|
+
- [Drawer] Apply content styles from theme to content slot (#39199) @sai6855
|
|
48
|
+
- [List] Add gap and missing active styles (#39146) @siriwatknp
|
|
49
|
+
- [Switch] Slight adjustments to the design (#39276) @danilo-leal
|
|
50
|
+
|
|
51
|
+
### Docs
|
|
52
|
+
|
|
53
|
+
- [docs] Update Autocomplete demo for React 18 (#39162) @oliviertassinari
|
|
54
|
+
- [docs-infra] Tweak feedback footer section design (#36556) @danilo-leal
|
|
55
|
+
- [docs-infra] Improve code syntax highlight (#39181) @oliviertassinari
|
|
56
|
+
- [docs][base] Add Tailwind CSS + plain CSS demo on the TextArea page (#39046) @alisasanib
|
|
57
|
+
- [docs][base-ui] Fix style for root div of multiline input (#39182) @ttlpta
|
|
58
|
+
- [docs][base-ui] Improve Select's country select demo (#38983) @oliviertassinari
|
|
59
|
+
- [docs][joy-ui] Add scrollable tabs example (#39260) @siriwatknp
|
|
60
|
+
- [docs][joy-ui] Match `Autocomplete` github label demo to actual github label dropdown (#39228) @sai6855
|
|
61
|
+
- [docs][joy-ui] Refine the Rental dashboard template (#39059) @zanivan
|
|
62
|
+
- [docs][joy-ui] Removed incomplete sentence in the Aspect Ratio page (#39227) @Erik-McKelvey
|
|
63
|
+
- [docs][joy-ui] Fix typo in the Accordion page (#39226) @Erik-McKelvey
|
|
64
|
+
- [docs][joy-ui] Update and standardize template Sidemenus (#39271) @zanivan
|
|
65
|
+
- [docs][joy-ui] Add a roadmap page (#39163) @danilo-leal
|
|
66
|
+
- [docs][material-ui] Replace `Box` with `Stack` in applicable demos (#39174) @sai6855
|
|
67
|
+
- [docs][material-ui] Add small polish to the Templates page (#39224) @danilo-leal
|
|
68
|
+
- [docs][material-ui] Small revision to the Icons page (#38840) @danilo-leal
|
|
69
|
+
|
|
70
|
+
### Core
|
|
71
|
+
|
|
72
|
+
- Add next lint config to eslint (#39183) @Janpot
|
|
73
|
+
- [core] Update eslint rules (#39178) @romgrk
|
|
74
|
+
- [core] Fix Greg GitHub slug @oliviertassinari
|
|
75
|
+
- [core] Priority Support casing normalization @oliviertassinari
|
|
76
|
+
- [website] Add Heat map in pricing page (#39269) @oliviertassinari
|
|
77
|
+
- [website] Update `React Engineer - xCharts` Ashby link (#39172) @DanailH
|
|
78
|
+
- [website] Add Charts to the pricing table (#38680) @alexfauquette
|
|
79
|
+
- [website] Polish career experience @oliviertassinari
|
|
80
|
+
- [website] Simplify the Core products file (#39194) @danilo-leal
|
|
81
|
+
|
|
82
|
+
All contributors of this release in alphabetical order: @alexfauquette, @brijeshb42, @DanailH, @danilo-leal, @DiegoAndai, @Erik-McKelvey, @Janpot, @mj12albert, @mnajdova, @oliviertassinari, @romgrk, @sai6855, @Semigradsky, @siriwatknp, @xulingzhihou, @zanivan, @ZeeshanTamboli
|
|
83
|
+
|
|
84
|
+
## 5.14.11
|
|
85
|
+
|
|
86
|
+
<!-- generated comparing v5.14.10..master -->
|
|
87
|
+
|
|
88
|
+
_Sep 26, 2023_
|
|
89
|
+
|
|
90
|
+
A big thanks to the 23 contributors who made this release possible.
|
|
91
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
92
|
+
|
|
93
|
+
### `@mui/material@5.14.11`
|
|
94
|
+
|
|
95
|
+
- [Autocomplete] Re-export `AutocompleteValue` to make it available from path import (#38638) @vadimka123
|
|
96
|
+
- [Select][material-ui] Missing aria-multiselectable attribute on multiple Select component (#38855) @gitstart
|
|
97
|
+
- [l10n] labelDisplayedRows is added for trTR localization (#39056) @tebersefa
|
|
98
|
+
|
|
99
|
+
### `@mui/utils@5.14.11`
|
|
100
|
+
|
|
101
|
+
- Support RSC in `isMuiElement` util (#38129) @sai6855
|
|
102
|
+
|
|
103
|
+
### `@mui/base@5.0.0-beta.17`
|
|
104
|
+
|
|
105
|
+
- [NumberInput] Support adornments (#38900) @anle9650
|
|
106
|
+
- [Menu] Align external props handling for useMenu/MenuButton/MenuItem (#38946) @mj12albert
|
|
107
|
+
- [Select] Align external props handling (#39038) @mj12albert
|
|
108
|
+
- [TextareaAutosize] Simplify logic and add test (#38728) @oliviertassinari
|
|
109
|
+
|
|
110
|
+
### `@mui/joy@5.0.0-beta.8`
|
|
111
|
+
|
|
112
|
+
- [Button] Fix disabled button styling when component prop is provided (#38996) @sai6855
|
|
113
|
+
- [Drawer] Add missing `JoyDrawer` in theme components (#39074) @Studio384
|
|
114
|
+
|
|
115
|
+
### `@mui/material-next@6.0.0-alpha.103`
|
|
116
|
+
|
|
117
|
+
- [FormControl] Copy v5 FormControl (#39039) @mj12albert
|
|
118
|
+
|
|
119
|
+
### `@mui/lab@5.0.0-alpha.146`
|
|
120
|
+
|
|
121
|
+
- [TreeView] Fix JSDoc comments in TreeView and TreeItem (#38874) @jergason
|
|
122
|
+
|
|
123
|
+
### Docs
|
|
124
|
+
|
|
125
|
+
- Improve focus trap demo (#38985) @oliviertassinari
|
|
126
|
+
- Add Tailwind CSS + plain CSS demo on the Tabs page (#39000) @alisasanib
|
|
127
|
+
- Improve the default theme viewer design (#39049) @danilo-leal
|
|
128
|
+
- Add live demo with CssVarsProvider (#38792) @oliviertassinari
|
|
129
|
+
- Fix wrong hash on Card's page (#39151) @mnajdova
|
|
130
|
+
- Revise the Drawer page (#38988) @danilo-leal
|
|
131
|
+
- Simplify the button's loading indicator demo (#39082) @danilo-leal
|
|
132
|
+
- Fix the Templates link on the Overview page (#39086) @danilo-leal
|
|
133
|
+
- Refine the Sign in template (#38942) @zanivan
|
|
134
|
+
- Add `use-count-up` integration with the Circular Progress (#38952) @anon-phantom
|
|
135
|
+
|
|
136
|
+
### Core
|
|
137
|
+
|
|
138
|
+
- [blog] Add a company values blog post (#38802) @mikailaread
|
|
139
|
+
- [core] Downgrade lerna to 7.2.0 (#39149) @michaldudak
|
|
140
|
+
- [core] Simplify docs feedback interaction (#39075) @alexfauquette
|
|
141
|
+
- [core] Improve ref type definition (#38903) @oliviertassinari
|
|
142
|
+
- [core] Simplify career (#39112) @oliviertassinari
|
|
143
|
+
- [core] Update Babel types along with source packages (#39070) @michaldudak
|
|
144
|
+
- [core] Add a comment to explain `useEnhancedEffect` (#39035) @Janpot
|
|
145
|
+
- [docs-infra] Fix code removal in table of content (#39165) @alexfauquette
|
|
146
|
+
- [docs-infra] Improve callouts design (#39084) @danilo-leal
|
|
147
|
+
- [docs-infra] Fix key warning in Base UI Slider slots section (#38954) @ZeeshanTamboli
|
|
148
|
+
- [docs-infra] Fix error when redirecting to the root page (#38451) @maheshguntur
|
|
149
|
+
- [docs-infra] Open demo crash in the right repository (#39006) @oliviertassinari
|
|
150
|
+
- [test] Split the test package (#39061) @michaldudak
|
|
151
|
+
- [website] React Engineer - xCharts role (#38976) @DanailH
|
|
152
|
+
- [website] Improve the highlighter component colors (#39087) @danilo-leal
|
|
153
|
+
- [website] Fix Pricing page row hover (#39097) @danilo-leal
|
|
154
|
+
- [website] Fix typo with straight quote @oliviertassinari
|
|
155
|
+
- [website] Sync about page @oliviertassinari
|
|
156
|
+
- [website] Update the about page (#38733) @danilo-leal
|
|
157
|
+
- [website] Small fixes on the X marketing page (#38975) @flaviendelangle
|
|
158
|
+
- [website] Add stray design tweaks to the X page (#38589) @danilo-leal
|
|
159
|
+
|
|
160
|
+
All contributors of this release in alphabetical order: @alexfauquette, @alisasanib, @anle9650, @anon-phantom, @DanailH, @danilo-leal, @DiegoAndai, @flaviendelangle, @gitstart, @Janpot, @jergason, @maheshguntur, @michaldudak, @mikailaread, @mj12albert, @mnajdova, @oliviertassinari, @sai6855, @Studio384, @tebersefa, @vadimka123, @zanivan, @ZeeshanTamboli
|
|
161
|
+
|
|
3
162
|
## 5.14.10
|
|
4
163
|
|
|
5
164
|
<!-- generated comparing v5.14.9..master -->
|
package/Menu/Menu.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { MenuOwnerState, SlotComponentProps } from '@mui/base';
|
|
4
3
|
import { InternalStandardProps as StandardProps } from '..';
|
|
5
|
-
import
|
|
4
|
+
import { PaperProps } from '../Paper';
|
|
6
5
|
import { PopoverProps } from '../Popover';
|
|
7
6
|
import { MenuListProps } from '../MenuList';
|
|
8
7
|
import { Theme } from '../styles';
|
|
9
8
|
import { TransitionProps } from '../transitions/transition';
|
|
10
9
|
import { MenuClasses } from './menuClasses';
|
|
11
10
|
|
|
12
|
-
export interface MenuProps
|
|
13
|
-
extends StandardProps<Omit<PopoverProps, 'slots' | 'slotProps'>, 'children'> {
|
|
11
|
+
export interface MenuProps extends StandardProps<PopoverProps> {
|
|
14
12
|
/**
|
|
15
13
|
* An HTML element, or a function that returns one.
|
|
16
14
|
* It's used to set the position of the menu.
|
|
@@ -60,25 +58,6 @@ export interface MenuProps
|
|
|
60
58
|
* `classes` prop applied to the [`Popover`](/material-ui/api/popover/) element.
|
|
61
59
|
*/
|
|
62
60
|
PopoverClasses?: PopoverProps['classes'];
|
|
63
|
-
/**
|
|
64
|
-
* The components used for each slot inside.
|
|
65
|
-
*
|
|
66
|
-
* @default {}
|
|
67
|
-
*/
|
|
68
|
-
slots?: {
|
|
69
|
-
root?: React.ElementType;
|
|
70
|
-
paper?: React.ElementType;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* The extra props for the slot components.
|
|
74
|
-
* You can override the existing props or add new ones.
|
|
75
|
-
*
|
|
76
|
-
* @default {}
|
|
77
|
-
*/
|
|
78
|
-
slotProps?: {
|
|
79
|
-
root?: SlotComponentProps<typeof Menu, {}, MenuOwnerState>;
|
|
80
|
-
paper?: SlotComponentProps<typeof Paper, {}, {}>;
|
|
81
|
-
};
|
|
82
61
|
/**
|
|
83
62
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
84
63
|
*/
|
package/Select/SelectInput.js
CHANGED
|
@@ -10,7 +10,7 @@ import { isFragment } from 'react-is';
|
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import clsx from 'clsx';
|
|
12
12
|
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
13
|
-
import { refType } from '@mui/utils';
|
|
13
|
+
import { refType, unstable_useId as useId } from '@mui/utils';
|
|
14
14
|
import ownerDocument from '../utils/ownerDocument';
|
|
15
15
|
import capitalize from '../utils/capitalize';
|
|
16
16
|
import Menu from '../Menu/Menu';
|
|
@@ -434,11 +434,13 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
434
434
|
});
|
|
435
435
|
const classes = useUtilityClasses(ownerState);
|
|
436
436
|
const paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
437
|
+
const listboxId = useId();
|
|
437
438
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
438
439
|
children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
|
|
439
440
|
ref: handleDisplayRef,
|
|
440
441
|
tabIndex: tabIndex,
|
|
441
|
-
role: "
|
|
442
|
+
role: "combobox",
|
|
443
|
+
"aria-controls": listboxId,
|
|
442
444
|
"aria-disabled": disabled ? 'true' : undefined,
|
|
443
445
|
"aria-expanded": open ? 'true' : 'false',
|
|
444
446
|
"aria-haspopup": "listbox",
|
|
@@ -493,15 +495,17 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
493
495
|
MenuListProps: _extends({
|
|
494
496
|
'aria-labelledby': labelId,
|
|
495
497
|
role: 'listbox',
|
|
496
|
-
|
|
498
|
+
'aria-multiselectable': multiple ? 'true' : undefined,
|
|
499
|
+
disableListWrap: true,
|
|
500
|
+
id: listboxId
|
|
497
501
|
}, MenuProps.MenuListProps),
|
|
498
|
-
slotProps: {
|
|
502
|
+
slotProps: _extends({}, MenuProps.slotProps, {
|
|
499
503
|
paper: _extends({}, paperProps, {
|
|
500
504
|
style: _extends({
|
|
501
505
|
minWidth: menuMinWidth
|
|
502
506
|
}, paperProps != null ? paperProps.style : null)
|
|
503
507
|
})
|
|
504
|
-
},
|
|
508
|
+
}),
|
|
505
509
|
children: items
|
|
506
510
|
}))]
|
|
507
511
|
});
|
package/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
10
10
|
import { alpha } from '@mui/system';
|
|
11
|
+
import { getValidReactChildren } from '@mui/utils';
|
|
11
12
|
import capitalize from '../utils/capitalize';
|
|
12
13
|
import styled from '../styles/styled';
|
|
13
14
|
import useThemeProps from '../styles/useThemeProps';
|
|
@@ -164,9 +165,11 @@ var ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, re
|
|
|
164
165
|
variant: variant
|
|
165
166
|
};
|
|
166
167
|
}, [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
167
|
-
var
|
|
168
|
+
var validChildren = getValidReactChildren(children);
|
|
169
|
+
var childrenCount = validChildren.length;
|
|
170
|
+
var getButtonPositionClassName = function getButtonPositionClassName(index) {
|
|
168
171
|
var isFirstButton = index === 0;
|
|
169
|
-
var isLastButton = index ===
|
|
172
|
+
var isLastButton = index === childrenCount - 1;
|
|
170
173
|
if (isFirstButton && isLastButton) {
|
|
171
174
|
return '';
|
|
172
175
|
}
|
|
@@ -187,14 +190,11 @@ var ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, re
|
|
|
187
190
|
}, other, {
|
|
188
191
|
children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {
|
|
189
192
|
value: context,
|
|
190
|
-
children:
|
|
191
|
-
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
192
|
-
return child;
|
|
193
|
-
}
|
|
193
|
+
children: validChildren.map(function (child, index) {
|
|
194
194
|
return /*#__PURE__*/_jsx(ButtonGroupButtonContext.Provider, {
|
|
195
|
-
value: getButtonPositionClassName(index
|
|
195
|
+
value: getButtonPositionClassName(index),
|
|
196
196
|
children: child
|
|
197
|
-
});
|
|
197
|
+
}, index);
|
|
198
198
|
})
|
|
199
199
|
})
|
|
200
200
|
}));
|
|
@@ -12,7 +12,7 @@ import { isFragment } from 'react-is';
|
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
13
|
import clsx from 'clsx';
|
|
14
14
|
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
15
|
-
import { refType } from '@mui/utils';
|
|
15
|
+
import { refType, unstable_useId as useId } from '@mui/utils';
|
|
16
16
|
import ownerDocument from '../utils/ownerDocument';
|
|
17
17
|
import capitalize from '../utils/capitalize';
|
|
18
18
|
import Menu from '../Menu/Menu';
|
|
@@ -445,11 +445,13 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
445
445
|
});
|
|
446
446
|
var classes = useUtilityClasses(ownerState);
|
|
447
447
|
var paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
448
|
+
var listboxId = useId();
|
|
448
449
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
449
450
|
children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
|
|
450
451
|
ref: handleDisplayRef,
|
|
451
452
|
tabIndex: tabIndex,
|
|
452
|
-
role: "
|
|
453
|
+
role: "combobox",
|
|
454
|
+
"aria-controls": listboxId,
|
|
453
455
|
"aria-disabled": disabled ? 'true' : undefined,
|
|
454
456
|
"aria-expanded": open ? 'true' : 'false',
|
|
455
457
|
"aria-haspopup": "listbox",
|
|
@@ -504,15 +506,17 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
504
506
|
MenuListProps: _extends({
|
|
505
507
|
'aria-labelledby': labelId,
|
|
506
508
|
role: 'listbox',
|
|
507
|
-
|
|
509
|
+
'aria-multiselectable': multiple ? 'true' : undefined,
|
|
510
|
+
disableListWrap: true,
|
|
511
|
+
id: listboxId
|
|
508
512
|
}, MenuProps.MenuListProps),
|
|
509
|
-
slotProps: {
|
|
513
|
+
slotProps: _extends({}, MenuProps.slotProps, {
|
|
510
514
|
paper: _extends({}, paperProps, {
|
|
511
515
|
style: _extends({
|
|
512
516
|
minWidth: menuMinWidth
|
|
513
517
|
}, paperProps != null ? paperProps.style : null)
|
|
514
518
|
})
|
|
515
|
-
},
|
|
519
|
+
}),
|
|
516
520
|
children: items
|
|
517
521
|
}))]
|
|
518
522
|
});
|
package/legacy/index.js
CHANGED
package/legacy/locale/index.js
CHANGED
|
@@ -3791,12 +3791,15 @@ export var trTR = {
|
|
|
3791
3791
|
// if (type === 'previous') {
|
|
3792
3792
|
return 'Önceki sayfaya git';
|
|
3793
3793
|
},
|
|
3794
|
-
labelRowsPerPage: 'Sayfa başına satır:'
|
|
3795
|
-
|
|
3796
|
-
|
|
3794
|
+
labelRowsPerPage: 'Sayfa başına satır:',
|
|
3795
|
+
labelDisplayedRows: function labelDisplayedRows(_ref41) {
|
|
3796
|
+
var from = _ref41.from,
|
|
3797
|
+
to = _ref41.to,
|
|
3798
|
+
count = _ref41.count;
|
|
3799
|
+
return "".concat(from, "-").concat(to, " / ").concat(count !== -1 ? count : "".concat(to, "'den fazla"));
|
|
3800
|
+
}
|
|
3797
3801
|
}
|
|
3798
3802
|
},
|
|
3799
|
-
|
|
3800
3803
|
MuiRating: {
|
|
3801
3804
|
defaultProps: {
|
|
3802
3805
|
getLabelText: function getLabelText(value) {
|
|
@@ -3867,10 +3870,10 @@ export var tlTL = {
|
|
|
3867
3870
|
return 'Pumunta sa nakaraang pahina';
|
|
3868
3871
|
},
|
|
3869
3872
|
labelRowsPerPage: 'Mga hilera bawat pahina:',
|
|
3870
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3871
|
-
var from =
|
|
3872
|
-
to =
|
|
3873
|
-
count =
|
|
3873
|
+
labelDisplayedRows: function labelDisplayedRows(_ref42) {
|
|
3874
|
+
var from = _ref42.from,
|
|
3875
|
+
to = _ref42.to,
|
|
3876
|
+
count = _ref42.count;
|
|
3874
3877
|
return "".concat(from, "\u2013").concat(to, " ng ").concat(count !== -1 ? count : "higit sa ".concat(to));
|
|
3875
3878
|
}
|
|
3876
3879
|
}
|
|
@@ -3943,10 +3946,10 @@ export var ukUA = {
|
|
|
3943
3946
|
return 'Перейти на попередню сторінку';
|
|
3944
3947
|
},
|
|
3945
3948
|
labelRowsPerPage: 'Рядків на сторінці:',
|
|
3946
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3947
|
-
var from =
|
|
3948
|
-
to =
|
|
3949
|
-
count =
|
|
3949
|
+
labelDisplayedRows: function labelDisplayedRows(_ref43) {
|
|
3950
|
+
var from = _ref43.from,
|
|
3951
|
+
to = _ref43.to,
|
|
3952
|
+
count = _ref43.count;
|
|
3950
3953
|
return "".concat(from, "\u2013").concat(to, " \u0437 ").concat(count !== -1 ? count : "\u043F\u043E\u043D\u0430\u0434 ".concat(to));
|
|
3951
3954
|
}
|
|
3952
3955
|
}
|
|
@@ -4026,10 +4029,10 @@ export var urPK = {
|
|
|
4026
4029
|
return 'پچھلے صفحے پر جائیں';
|
|
4027
4030
|
},
|
|
4028
4031
|
labelRowsPerPage: 'ایک صفحے پر قطاریں:',
|
|
4029
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
4030
|
-
var from =
|
|
4031
|
-
to =
|
|
4032
|
-
count =
|
|
4032
|
+
labelDisplayedRows: function labelDisplayedRows(_ref44) {
|
|
4033
|
+
var from = _ref44.from,
|
|
4034
|
+
to = _ref44.to,
|
|
4035
|
+
count = _ref44.count;
|
|
4033
4036
|
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");
|
|
4034
4037
|
}
|
|
4035
4038
|
}
|
|
@@ -4102,10 +4105,10 @@ export var viVN = {
|
|
|
4102
4105
|
return 'Về trang trước đó';
|
|
4103
4106
|
},
|
|
4104
4107
|
labelRowsPerPage: 'Số hàng mỗi trang:',
|
|
4105
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
4106
|
-
var from =
|
|
4107
|
-
to =
|
|
4108
|
-
count =
|
|
4108
|
+
labelDisplayedRows: function labelDisplayedRows(_ref45) {
|
|
4109
|
+
var from = _ref45.from,
|
|
4110
|
+
to = _ref45.to,
|
|
4111
|
+
count = _ref45.count;
|
|
4109
4112
|
return "".concat(from, "\u2013").concat(to, " trong ").concat(count !== -1 ? count : "nhi\u1EC1u h\u01A1n ".concat(to));
|
|
4110
4113
|
}
|
|
4111
4114
|
}
|
|
@@ -4177,10 +4180,10 @@ export var zhCN = {
|
|
|
4177
4180
|
return '上一页';
|
|
4178
4181
|
},
|
|
4179
4182
|
labelRowsPerPage: '每页行数:',
|
|
4180
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
4181
|
-
var from =
|
|
4182
|
-
to =
|
|
4183
|
-
count =
|
|
4183
|
+
labelDisplayedRows: function labelDisplayedRows(_ref46) {
|
|
4184
|
+
var from = _ref46.from,
|
|
4185
|
+
to = _ref46.to,
|
|
4186
|
+
count = _ref46.count;
|
|
4184
4187
|
return "\u7B2C ".concat(from, " \u6761\u5230\u7B2C ").concat(to, " \u6761\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u6761") : "\u81F3\u5C11 ".concat(to, " \u6761"));
|
|
4185
4188
|
}
|
|
4186
4189
|
}
|
|
@@ -4231,10 +4234,10 @@ export var zhHK = {
|
|
|
4231
4234
|
return '上一頁';
|
|
4232
4235
|
},
|
|
4233
4236
|
labelRowsPerPage: '每頁行數:',
|
|
4234
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
4235
|
-
var from =
|
|
4236
|
-
to =
|
|
4237
|
-
count =
|
|
4237
|
+
labelDisplayedRows: function labelDisplayedRows(_ref47) {
|
|
4238
|
+
var from = _ref47.from,
|
|
4239
|
+
to = _ref47.to,
|
|
4240
|
+
count = _ref47.count;
|
|
4238
4241
|
return "\u7B2C ".concat(from, " \u9805\u81F3\u7B2C ").concat(to, " \u9805\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u9805") : "\u8D85\u904E ".concat(to, " \u9805"));
|
|
4239
4242
|
}
|
|
4240
4243
|
}
|
|
@@ -4285,10 +4288,10 @@ export var zhTW = {
|
|
|
4285
4288
|
return '上一頁';
|
|
4286
4289
|
},
|
|
4287
4290
|
labelRowsPerPage: '每頁數量:',
|
|
4288
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
4289
|
-
var from =
|
|
4290
|
-
to =
|
|
4291
|
-
count =
|
|
4291
|
+
labelDisplayedRows: function labelDisplayedRows(_ref48) {
|
|
4292
|
+
var from = _ref48.from,
|
|
4293
|
+
to = _ref48.to,
|
|
4294
|
+
count = _ref48.count;
|
|
4292
4295
|
return "".concat(from, " ~ ").concat(to, " / ").concat(count !== -1 ? count : "".concat(to, " \u4EE5\u4E0A"));
|
|
4293
4296
|
}
|
|
4294
4297
|
}
|
package/locale/index.js
CHANGED
|
@@ -3679,12 +3679,14 @@ export const trTR = {
|
|
|
3679
3679
|
// if (type === 'previous') {
|
|
3680
3680
|
return 'Önceki sayfaya git';
|
|
3681
3681
|
},
|
|
3682
|
-
labelRowsPerPage: 'Sayfa başına satır:'
|
|
3683
|
-
|
|
3684
|
-
|
|
3682
|
+
labelRowsPerPage: 'Sayfa başına satır:',
|
|
3683
|
+
labelDisplayedRows: ({
|
|
3684
|
+
from,
|
|
3685
|
+
to,
|
|
3686
|
+
count
|
|
3687
|
+
}) => `${from}-${to} / ${count !== -1 ? count : `${to}'den fazla`}`
|
|
3685
3688
|
}
|
|
3686
3689
|
},
|
|
3687
|
-
|
|
3688
3690
|
MuiRating: {
|
|
3689
3691
|
defaultProps: {
|
|
3690
3692
|
getLabelText: value => `${value} Yıldız`,
|
|
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
10
10
|
import { alpha } from '@mui/system';
|
|
11
|
+
import { getValidReactChildren } from '@mui/utils';
|
|
11
12
|
import capitalize from '../utils/capitalize';
|
|
12
13
|
import styled from '../styles/styled';
|
|
13
14
|
import useThemeProps from '../styles/useThemeProps';
|
|
@@ -180,9 +181,11 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
180
181
|
size,
|
|
181
182
|
variant
|
|
182
183
|
}), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
183
|
-
const
|
|
184
|
+
const validChildren = getValidReactChildren(children);
|
|
185
|
+
const childrenCount = validChildren.length;
|
|
186
|
+
const getButtonPositionClassName = index => {
|
|
184
187
|
const isFirstButton = index === 0;
|
|
185
|
-
const isLastButton = index ===
|
|
188
|
+
const isLastButton = index === childrenCount - 1;
|
|
186
189
|
if (isFirstButton && isLastButton) {
|
|
187
190
|
return '';
|
|
188
191
|
}
|
|
@@ -203,14 +206,11 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
203
206
|
}, other, {
|
|
204
207
|
children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {
|
|
205
208
|
value: context,
|
|
206
|
-
children:
|
|
207
|
-
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
208
|
-
return child;
|
|
209
|
-
}
|
|
209
|
+
children: validChildren.map((child, index) => {
|
|
210
210
|
return /*#__PURE__*/_jsx(ButtonGroupButtonContext.Provider, {
|
|
211
|
-
value: getButtonPositionClassName(index
|
|
211
|
+
value: getButtonPositionClassName(index),
|
|
212
212
|
children: child
|
|
213
|
-
});
|
|
213
|
+
}, index);
|
|
214
214
|
})
|
|
215
215
|
})
|
|
216
216
|
}));
|