@mui/material 7.3.3 → 7.3.5
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/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
- package/Alert/alertClasses.d.ts +24 -24
- package/Breadcrumbs/BreadcrumbCollapsed.js +0 -2
- package/Button/buttonClasses.d.ts +33 -33
- package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
- package/CHANGELOG.md +80 -0
- package/Chip/chipClasses.d.ts +26 -26
- package/CircularProgress/circularProgressClasses.d.ts +2 -2
- package/Collapse/Collapse.d.ts +31 -1
- package/Collapse/Collapse.js +73 -30
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
- package/Dialog/dialogClasses.d.ts +2 -2
- package/Divider/dividerClasses.d.ts +1 -1
- package/Drawer/drawerClasses.d.ts +8 -8
- package/GlobalStyles/GlobalStyles.js +0 -2
- package/ImageListItemBar/imageListItemBarClasses.d.ts +4 -4
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +1 -2
- package/InitColorSchemeScript/InitColorSchemeScript.js +0 -2
- package/Input/inputClasses.d.ts +4 -4
- package/InputBase/inputBaseClasses.d.ts +5 -5
- package/LinearProgress/linearProgressClasses.d.ts +9 -9
- package/OutlinedInput/NotchedOutline.js +0 -2
- package/OutlinedInput/outlinedInputClasses.d.ts +4 -4
- package/PaginationItem/paginationItemClasses.d.ts +4 -4
- package/Radio/RadioButtonIcon.js +0 -2
- package/Select/selectClasses.d.ts +3 -3
- package/Slider/sliderClasses.d.ts +7 -7
- package/StepConnector/stepConnectorClasses.d.ts +2 -2
- package/TableSortLabel/tableSortLabelClasses.d.ts +2 -2
- package/Tabs/Tabs.js +0 -5
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
- package/Zoom/Zoom.d.ts +1 -1
- package/Zoom/Zoom.js +1 -1
- package/esm/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
- package/esm/Alert/alertClasses.d.ts +24 -24
- package/esm/Breadcrumbs/BreadcrumbCollapsed.js +0 -1
- package/esm/Button/buttonClasses.d.ts +33 -33
- package/esm/ButtonGroup/buttonGroupClasses.d.ts +17 -17
- package/esm/Chip/chipClasses.d.ts +26 -26
- package/esm/CircularProgress/circularProgressClasses.d.ts +2 -2
- package/esm/Collapse/Collapse.d.ts +31 -1
- package/esm/Collapse/Collapse.js +73 -30
- package/esm/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
- package/esm/Dialog/dialogClasses.d.ts +2 -2
- package/esm/Divider/dividerClasses.d.ts +1 -1
- package/esm/Drawer/drawerClasses.d.ts +8 -8
- package/esm/GlobalStyles/GlobalStyles.js +0 -1
- package/esm/ImageListItemBar/imageListItemBarClasses.d.ts +4 -4
- package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +1 -2
- package/esm/InitColorSchemeScript/InitColorSchemeScript.js +0 -1
- package/esm/Input/inputClasses.d.ts +4 -4
- package/esm/InputBase/inputBaseClasses.d.ts +5 -5
- package/esm/LinearProgress/linearProgressClasses.d.ts +9 -9
- package/esm/OutlinedInput/NotchedOutline.js +0 -1
- package/esm/OutlinedInput/outlinedInputClasses.d.ts +4 -4
- package/esm/PaginationItem/paginationItemClasses.d.ts +4 -4
- package/esm/Radio/RadioButtonIcon.js +0 -1
- package/esm/Select/selectClasses.d.ts +3 -3
- package/esm/Slider/sliderClasses.d.ts +7 -7
- package/esm/StepConnector/stepConnectorClasses.d.ts +2 -2
- package/esm/TableSortLabel/tableSortLabelClasses.d.ts +2 -2
- package/esm/Tabs/Tabs.js +0 -5
- package/esm/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
- package/esm/Zoom/Zoom.d.ts +1 -1
- package/esm/Zoom/Zoom.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internal/svg-icons/Add.js +0 -1
- package/esm/internal/svg-icons/ArrowDownward.js +0 -1
- package/esm/internal/svg-icons/ArrowDropDown.js +0 -1
- package/esm/internal/svg-icons/Cancel.js +0 -1
- package/esm/internal/svg-icons/CheckBox.js +0 -1
- package/esm/internal/svg-icons/CheckBoxOutlineBlank.js +0 -1
- package/esm/internal/svg-icons/CheckCircle.js +0 -1
- package/esm/internal/svg-icons/Close.js +0 -1
- package/esm/internal/svg-icons/ErrorOutline.js +0 -1
- package/esm/internal/svg-icons/FirstPage.js +0 -1
- package/esm/internal/svg-icons/IndeterminateCheckBox.js +0 -1
- package/esm/internal/svg-icons/InfoOutlined.js +0 -1
- package/esm/internal/svg-icons/KeyboardArrowLeft.js +0 -1
- package/esm/internal/svg-icons/KeyboardArrowRight.js +0 -1
- package/esm/internal/svg-icons/LastPage.js +0 -1
- package/esm/internal/svg-icons/MoreHoriz.js +0 -1
- package/esm/internal/svg-icons/NavigateBefore.js +0 -1
- package/esm/internal/svg-icons/NavigateNext.js +0 -1
- package/esm/internal/svg-icons/Person.js +0 -1
- package/esm/internal/svg-icons/RadioButtonChecked.js +0 -1
- package/esm/internal/svg-icons/RadioButtonUnchecked.js +0 -1
- package/esm/internal/svg-icons/ReportProblemOutlined.js +0 -1
- package/esm/internal/svg-icons/Star.js +0 -1
- package/esm/internal/svg-icons/StarBorder.js +0 -1
- package/esm/internal/svg-icons/SuccessOutlined.js +0 -1
- package/esm/internal/svg-icons/Warning.js +0 -1
- package/esm/locale/caES.js +45 -42
- package/esm/styles/ThemeProvider.d.ts +1 -1
- package/esm/styles/ThemeProviderWithVars.d.ts +2 -3
- package/esm/styles/ThemeProviderWithVars.js +0 -1
- package/esm/styles/createTheme.d.ts +13 -5
- package/esm/styles/createThemeFoundation.d.ts +279 -0
- package/esm/styles/createThemeFoundation.js +37 -0
- package/esm/styles/createThemeNoVars.d.ts +3 -1
- package/esm/styles/createThemeWithVars.d.ts +23 -306
- package/esm/styles/index.d.ts +1 -1
- package/esm/version/index.js +2 -2
- package/esm/zero-styled/index.d.ts +1 -2
- package/esm/zero-styled/index.js +0 -1
- package/index.js +1 -1
- package/internal/svg-icons/Add.js +0 -2
- package/internal/svg-icons/ArrowDownward.js +0 -2
- package/internal/svg-icons/ArrowDropDown.js +0 -2
- package/internal/svg-icons/Cancel.js +0 -2
- package/internal/svg-icons/CheckBox.js +0 -2
- package/internal/svg-icons/CheckBoxOutlineBlank.js +0 -2
- package/internal/svg-icons/CheckCircle.js +0 -2
- package/internal/svg-icons/Close.js +0 -2
- package/internal/svg-icons/ErrorOutline.js +0 -2
- package/internal/svg-icons/FirstPage.js +0 -2
- package/internal/svg-icons/IndeterminateCheckBox.js +0 -2
- package/internal/svg-icons/InfoOutlined.js +0 -2
- package/internal/svg-icons/KeyboardArrowLeft.js +0 -2
- package/internal/svg-icons/KeyboardArrowRight.js +0 -2
- package/internal/svg-icons/LastPage.js +0 -2
- package/internal/svg-icons/MoreHoriz.js +0 -2
- package/internal/svg-icons/NavigateBefore.js +0 -2
- package/internal/svg-icons/NavigateNext.js +0 -2
- package/internal/svg-icons/Person.js +0 -2
- package/internal/svg-icons/RadioButtonChecked.js +0 -2
- package/internal/svg-icons/RadioButtonUnchecked.js +0 -2
- package/internal/svg-icons/ReportProblemOutlined.js +0 -2
- package/internal/svg-icons/Star.js +0 -2
- package/internal/svg-icons/StarBorder.js +0 -2
- package/internal/svg-icons/SuccessOutlined.js +0 -2
- package/internal/svg-icons/Warning.js +0 -2
- package/locale/caES.js +45 -42
- package/package.json +7 -7
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/ThemeProviderWithVars.d.ts +2 -3
- package/styles/ThemeProviderWithVars.js +0 -2
- package/styles/createTheme.d.ts +13 -5
- package/styles/createThemeFoundation.d.ts +279 -0
- package/styles/createThemeFoundation.js +5 -0
- package/styles/createThemeNoVars.d.ts +3 -1
- package/styles/createThemeWithVars.d.ts +23 -306
- package/styles/index.d.ts +1 -1
- package/version/index.js +2 -2
- package/zero-styled/index.d.ts +1 -2
- package/zero-styled/index.js +0 -2
package/esm/Tabs/Tabs.js
CHANGED
|
@@ -638,11 +638,6 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
638
638
|
}
|
|
639
639
|
return undefined;
|
|
640
640
|
}, [scrollable, scrollButtons, updateScrollObserver, childrenProp?.length]);
|
|
641
|
-
React.useEffect(() => {
|
|
642
|
-
if (scrollable && scrollButtons === 'auto' && (displayEndScroll || displayStartScroll)) {
|
|
643
|
-
scrollSelectedIntoView(true);
|
|
644
|
-
}
|
|
645
|
-
}, [displayEndScroll, displayStartScroll, scrollable, scrollButtons, scrollSelectedIntoView]);
|
|
646
641
|
React.useEffect(() => {
|
|
647
642
|
setMounted(true);
|
|
648
643
|
}, []);
|
|
@@ -12,11 +12,11 @@ export interface ToggleButtonGroupClasses {
|
|
|
12
12
|
/** Styles applied to the children. */
|
|
13
13
|
grouped: string;
|
|
14
14
|
/** Styles applied to the children if `orientation="horizontal"`.
|
|
15
|
-
* @deprecated Combine the [.MuiToggleButtonGroup-horizontal](/material-ui/api/toggle-button-group/#toggle-button-group-classes-horizontal) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
15
|
+
* @deprecated Combine the [.MuiToggleButtonGroup-horizontal](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-horizontal) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
16
16
|
*/
|
|
17
17
|
groupedHorizontal: string;
|
|
18
18
|
/** Styles applied to the children if `orientation="vertical"`.
|
|
19
|
-
* @deprecated Combine the [.MuiToggleButtonGroup-vertical](/material-ui/api/toggle-button-group/#toggle-button-group-classes-vertical) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
19
|
+
* @deprecated Combine the [.MuiToggleButtonGroup-vertical](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-vertical) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
20
20
|
*/
|
|
21
21
|
groupedVertical: string;
|
|
22
22
|
/** Styles applied to the root element if `fullWidth={true}`. */
|
package/esm/Zoom/Zoom.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface ZoomProps extends TransitionProps {
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* The Zoom transition can be used for the floating variant of the
|
|
37
|
-
* [Button](https://mui.com/material-ui/react-
|
|
37
|
+
* [Button](https://mui.com/material-ui/react-floating-action-button/#animation) component.
|
|
38
38
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
39
39
|
*
|
|
40
40
|
* Demos:
|
package/esm/Zoom/Zoom.js
CHANGED
|
@@ -20,7 +20,7 @@ const styles = {
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* The Zoom transition can be used for the floating variant of the
|
|
23
|
-
* [Button](/material-ui/react-
|
|
23
|
+
* [Button](/material-ui/react-floating-action-button/#animation) component.
|
|
24
24
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
25
25
|
*/
|
|
26
26
|
const Zoom = /*#__PURE__*/React.forwardRef(function Zoom(props, ref) {
|
package/esm/index.js
CHANGED
package/esm/locale/caES.js
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
export const caES = {
|
|
2
2
|
components: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
MuiBreadcrumbs: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
expandText: 'Mostra el camí'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
8
|
MuiTablePagination: {
|
|
9
9
|
defaultProps: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
labelRowsPerPage: 'Files per pàgina:'
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
getItemAriaLabel: type => {
|
|
11
|
+
if (type === 'first') {
|
|
12
|
+
return 'Ves a la primera pàgina';
|
|
13
|
+
}
|
|
14
|
+
if (type === 'last') {
|
|
15
|
+
return "Ves a l'última pàgina";
|
|
16
|
+
}
|
|
17
|
+
if (type === 'next') {
|
|
18
|
+
return 'Ves a la pàgina següent';
|
|
19
|
+
}
|
|
20
|
+
// if (type === 'previous') {
|
|
21
|
+
return 'Ves a la pàgina anterior';
|
|
22
|
+
},
|
|
23
|
+
labelRowsPerPage: 'Files per pàgina:',
|
|
24
|
+
labelDisplayedRows: ({
|
|
25
|
+
from,
|
|
26
|
+
to,
|
|
27
|
+
count
|
|
28
|
+
}) => `${from}–${to} de ${count !== -1 ? count : `més de ${to}`}`
|
|
26
29
|
}
|
|
27
30
|
},
|
|
28
31
|
MuiRating: {
|
|
@@ -44,27 +47,27 @@ export const caES = {
|
|
|
44
47
|
defaultProps: {
|
|
45
48
|
closeText: 'Tancat'
|
|
46
49
|
}
|
|
50
|
+
},
|
|
51
|
+
MuiPagination: {
|
|
52
|
+
defaultProps: {
|
|
53
|
+
'aria-label': 'Navegació entre pàgines',
|
|
54
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
55
|
+
if (type === 'page') {
|
|
56
|
+
return `${selected ? '' : 'Ves a la '}pàgina ${page}`;
|
|
57
|
+
}
|
|
58
|
+
if (type === 'first') {
|
|
59
|
+
return 'Ves a la primera pàgina';
|
|
60
|
+
}
|
|
61
|
+
if (type === 'last') {
|
|
62
|
+
return "Ves a l'última pàgina";
|
|
63
|
+
}
|
|
64
|
+
if (type === 'next') {
|
|
65
|
+
return 'Ves a la pàgina següent';
|
|
66
|
+
}
|
|
67
|
+
// if (type === 'previous') {
|
|
68
|
+
return 'Ves a la pàgina anterior';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
47
71
|
}
|
|
48
|
-
// MuiPagination: {
|
|
49
|
-
// defaultProps: {
|
|
50
|
-
// 'aria-label': 'Pagination navigation',
|
|
51
|
-
// getItemAriaLabel: (type, page, selected) => {
|
|
52
|
-
// if (type === 'page') {
|
|
53
|
-
// return `${selected ? '' : 'Go to '}page ${page}`;
|
|
54
|
-
// }
|
|
55
|
-
// if (type === 'first') {
|
|
56
|
-
// return 'Go to first page';
|
|
57
|
-
// }
|
|
58
|
-
// if (type === 'last') {
|
|
59
|
-
// return 'Go to last page';
|
|
60
|
-
// }
|
|
61
|
-
// if (type === 'next') {
|
|
62
|
-
// return 'Go to next page';
|
|
63
|
-
// }
|
|
64
|
-
// // if (type === 'previous') {
|
|
65
|
-
// return 'Go to previous page';
|
|
66
|
-
// },
|
|
67
|
-
// },
|
|
68
|
-
// },
|
|
69
72
|
}
|
|
70
73
|
};
|
|
@@ -72,5 +72,5 @@ export interface ThemeProviderProps<Theme = DefaultTheme> extends ThemeProviderC
|
|
|
72
72
|
export default function ThemeProvider<Theme = DefaultTheme>({
|
|
73
73
|
theme,
|
|
74
74
|
...props
|
|
75
|
-
}: ThemeProviderProps<Theme>):
|
|
75
|
+
}: ThemeProviderProps<Theme>): import("react/jsx-runtime").JSX.Element;
|
|
76
76
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { SupportedColorScheme } from "./createThemeWithVars.js";
|
|
3
2
|
declare const useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, deprecatedGetInitColorSchemeScript: typeof import("@mui/system/InitColorSchemeScript").default;
|
|
4
|
-
declare function Experimental_CssVarsProvider(props: any):
|
|
3
|
+
declare function Experimental_CssVarsProvider(props: any): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
declare const getInitColorSchemeScript: typeof deprecatedGetInitColorSchemeScript;
|
|
6
5
|
/**
|
|
7
6
|
* TODO: remove this export in v7
|
|
@@ -26,7 +25,7 @@ declare const getInitColorSchemeScript: typeof deprecatedGetInitColorSchemeScrip
|
|
|
26
25
|
*
|
|
27
26
|
* To see the full documentation, check out https://mui.com/material-ui/customization/css-theme-variables/usage/.
|
|
28
27
|
*/
|
|
29
|
-
export declare const CssVarsProvider: (props:
|
|
28
|
+
export declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
30
29
|
theme?: {
|
|
31
30
|
cssVariables?: false;
|
|
32
31
|
cssVarPrefix?: string;
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
+
import { PaletteOptions } from "./createPalette.js";
|
|
2
|
+
import { ColorSystemOptions } from "./createThemeFoundation.js";
|
|
1
3
|
import { CssVarsThemeOptions } from "./createThemeWithVars.js";
|
|
2
|
-
import { Theme,
|
|
3
|
-
export type {
|
|
4
|
+
import { Theme, CssThemeVariables } from "./createThemeNoVars.js";
|
|
5
|
+
export type { Theme, CssThemeVariables } from "./createThemeNoVars.js";
|
|
6
|
+
type CssVarsOptions = CssThemeVariables extends {
|
|
7
|
+
enabled: true;
|
|
8
|
+
} ? ColorSystemOptions : {};
|
|
9
|
+
type CssVarsConfigList = 'colorSchemeSelector' | 'rootSelector' | 'disableCssColorScheme' | 'cssVarPrefix' | 'shouldSkipGeneratingVar' | 'nativeColor';
|
|
10
|
+
export interface ThemeOptions extends CssVarsOptions, Omit<CssVarsThemeOptions, CssVarsConfigList> {
|
|
11
|
+
cssVariables?: boolean | Pick<CssVarsThemeOptions, CssVarsConfigList>;
|
|
12
|
+
palette?: PaletteOptions;
|
|
13
|
+
}
|
|
4
14
|
/**
|
|
5
15
|
* Generate a theme base on the options received.
|
|
6
16
|
* @param options Takes an incomplete theme object and adds the missing parts.
|
|
7
17
|
* @param args Deep merge the arguments with the about to be returned theme.
|
|
8
18
|
* @returns A complete, ready-to-use theme object.
|
|
9
19
|
*/
|
|
10
|
-
export default function createTheme(options?:
|
|
11
|
-
cssVariables?: boolean | Pick<CssVarsThemeOptions, 'colorSchemeSelector' | 'rootSelector' | 'disableCssColorScheme' | 'cssVarPrefix' | 'shouldSkipGeneratingVar' | 'nativeColor'>;
|
|
12
|
-
},
|
|
20
|
+
export default function createTheme(options?: ThemeOptions,
|
|
13
21
|
// cast type to skip module augmentation test
|
|
14
22
|
...args: object[]): Theme;
|