@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.
Files changed (146) hide show
  1. package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
  2. package/Alert/alertClasses.d.ts +24 -24
  3. package/Breadcrumbs/BreadcrumbCollapsed.js +0 -2
  4. package/Button/buttonClasses.d.ts +33 -33
  5. package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
  6. package/CHANGELOG.md +80 -0
  7. package/Chip/chipClasses.d.ts +26 -26
  8. package/CircularProgress/circularProgressClasses.d.ts +2 -2
  9. package/Collapse/Collapse.d.ts +31 -1
  10. package/Collapse/Collapse.js +73 -30
  11. package/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
  12. package/Dialog/dialogClasses.d.ts +2 -2
  13. package/Divider/dividerClasses.d.ts +1 -1
  14. package/Drawer/drawerClasses.d.ts +8 -8
  15. package/GlobalStyles/GlobalStyles.js +0 -2
  16. package/ImageListItemBar/imageListItemBarClasses.d.ts +4 -4
  17. package/InitColorSchemeScript/InitColorSchemeScript.d.ts +1 -2
  18. package/InitColorSchemeScript/InitColorSchemeScript.js +0 -2
  19. package/Input/inputClasses.d.ts +4 -4
  20. package/InputBase/inputBaseClasses.d.ts +5 -5
  21. package/LinearProgress/linearProgressClasses.d.ts +9 -9
  22. package/OutlinedInput/NotchedOutline.js +0 -2
  23. package/OutlinedInput/outlinedInputClasses.d.ts +4 -4
  24. package/PaginationItem/paginationItemClasses.d.ts +4 -4
  25. package/Radio/RadioButtonIcon.js +0 -2
  26. package/Select/selectClasses.d.ts +3 -3
  27. package/Slider/sliderClasses.d.ts +7 -7
  28. package/StepConnector/stepConnectorClasses.d.ts +2 -2
  29. package/TableSortLabel/tableSortLabelClasses.d.ts +2 -2
  30. package/Tabs/Tabs.js +0 -5
  31. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
  32. package/Zoom/Zoom.d.ts +1 -1
  33. package/Zoom/Zoom.js +1 -1
  34. package/esm/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
  35. package/esm/Alert/alertClasses.d.ts +24 -24
  36. package/esm/Breadcrumbs/BreadcrumbCollapsed.js +0 -1
  37. package/esm/Button/buttonClasses.d.ts +33 -33
  38. package/esm/ButtonGroup/buttonGroupClasses.d.ts +17 -17
  39. package/esm/Chip/chipClasses.d.ts +26 -26
  40. package/esm/CircularProgress/circularProgressClasses.d.ts +2 -2
  41. package/esm/Collapse/Collapse.d.ts +31 -1
  42. package/esm/Collapse/Collapse.js +73 -30
  43. package/esm/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
  44. package/esm/Dialog/dialogClasses.d.ts +2 -2
  45. package/esm/Divider/dividerClasses.d.ts +1 -1
  46. package/esm/Drawer/drawerClasses.d.ts +8 -8
  47. package/esm/GlobalStyles/GlobalStyles.js +0 -1
  48. package/esm/ImageListItemBar/imageListItemBarClasses.d.ts +4 -4
  49. package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +1 -2
  50. package/esm/InitColorSchemeScript/InitColorSchemeScript.js +0 -1
  51. package/esm/Input/inputClasses.d.ts +4 -4
  52. package/esm/InputBase/inputBaseClasses.d.ts +5 -5
  53. package/esm/LinearProgress/linearProgressClasses.d.ts +9 -9
  54. package/esm/OutlinedInput/NotchedOutline.js +0 -1
  55. package/esm/OutlinedInput/outlinedInputClasses.d.ts +4 -4
  56. package/esm/PaginationItem/paginationItemClasses.d.ts +4 -4
  57. package/esm/Radio/RadioButtonIcon.js +0 -1
  58. package/esm/Select/selectClasses.d.ts +3 -3
  59. package/esm/Slider/sliderClasses.d.ts +7 -7
  60. package/esm/StepConnector/stepConnectorClasses.d.ts +2 -2
  61. package/esm/TableSortLabel/tableSortLabelClasses.d.ts +2 -2
  62. package/esm/Tabs/Tabs.js +0 -5
  63. package/esm/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
  64. package/esm/Zoom/Zoom.d.ts +1 -1
  65. package/esm/Zoom/Zoom.js +1 -1
  66. package/esm/index.js +1 -1
  67. package/esm/internal/svg-icons/Add.js +0 -1
  68. package/esm/internal/svg-icons/ArrowDownward.js +0 -1
  69. package/esm/internal/svg-icons/ArrowDropDown.js +0 -1
  70. package/esm/internal/svg-icons/Cancel.js +0 -1
  71. package/esm/internal/svg-icons/CheckBox.js +0 -1
  72. package/esm/internal/svg-icons/CheckBoxOutlineBlank.js +0 -1
  73. package/esm/internal/svg-icons/CheckCircle.js +0 -1
  74. package/esm/internal/svg-icons/Close.js +0 -1
  75. package/esm/internal/svg-icons/ErrorOutline.js +0 -1
  76. package/esm/internal/svg-icons/FirstPage.js +0 -1
  77. package/esm/internal/svg-icons/IndeterminateCheckBox.js +0 -1
  78. package/esm/internal/svg-icons/InfoOutlined.js +0 -1
  79. package/esm/internal/svg-icons/KeyboardArrowLeft.js +0 -1
  80. package/esm/internal/svg-icons/KeyboardArrowRight.js +0 -1
  81. package/esm/internal/svg-icons/LastPage.js +0 -1
  82. package/esm/internal/svg-icons/MoreHoriz.js +0 -1
  83. package/esm/internal/svg-icons/NavigateBefore.js +0 -1
  84. package/esm/internal/svg-icons/NavigateNext.js +0 -1
  85. package/esm/internal/svg-icons/Person.js +0 -1
  86. package/esm/internal/svg-icons/RadioButtonChecked.js +0 -1
  87. package/esm/internal/svg-icons/RadioButtonUnchecked.js +0 -1
  88. package/esm/internal/svg-icons/ReportProblemOutlined.js +0 -1
  89. package/esm/internal/svg-icons/Star.js +0 -1
  90. package/esm/internal/svg-icons/StarBorder.js +0 -1
  91. package/esm/internal/svg-icons/SuccessOutlined.js +0 -1
  92. package/esm/internal/svg-icons/Warning.js +0 -1
  93. package/esm/locale/caES.js +45 -42
  94. package/esm/styles/ThemeProvider.d.ts +1 -1
  95. package/esm/styles/ThemeProviderWithVars.d.ts +2 -3
  96. package/esm/styles/ThemeProviderWithVars.js +0 -1
  97. package/esm/styles/createTheme.d.ts +13 -5
  98. package/esm/styles/createThemeFoundation.d.ts +279 -0
  99. package/esm/styles/createThemeFoundation.js +37 -0
  100. package/esm/styles/createThemeNoVars.d.ts +3 -1
  101. package/esm/styles/createThemeWithVars.d.ts +23 -306
  102. package/esm/styles/index.d.ts +1 -1
  103. package/esm/version/index.js +2 -2
  104. package/esm/zero-styled/index.d.ts +1 -2
  105. package/esm/zero-styled/index.js +0 -1
  106. package/index.js +1 -1
  107. package/internal/svg-icons/Add.js +0 -2
  108. package/internal/svg-icons/ArrowDownward.js +0 -2
  109. package/internal/svg-icons/ArrowDropDown.js +0 -2
  110. package/internal/svg-icons/Cancel.js +0 -2
  111. package/internal/svg-icons/CheckBox.js +0 -2
  112. package/internal/svg-icons/CheckBoxOutlineBlank.js +0 -2
  113. package/internal/svg-icons/CheckCircle.js +0 -2
  114. package/internal/svg-icons/Close.js +0 -2
  115. package/internal/svg-icons/ErrorOutline.js +0 -2
  116. package/internal/svg-icons/FirstPage.js +0 -2
  117. package/internal/svg-icons/IndeterminateCheckBox.js +0 -2
  118. package/internal/svg-icons/InfoOutlined.js +0 -2
  119. package/internal/svg-icons/KeyboardArrowLeft.js +0 -2
  120. package/internal/svg-icons/KeyboardArrowRight.js +0 -2
  121. package/internal/svg-icons/LastPage.js +0 -2
  122. package/internal/svg-icons/MoreHoriz.js +0 -2
  123. package/internal/svg-icons/NavigateBefore.js +0 -2
  124. package/internal/svg-icons/NavigateNext.js +0 -2
  125. package/internal/svg-icons/Person.js +0 -2
  126. package/internal/svg-icons/RadioButtonChecked.js +0 -2
  127. package/internal/svg-icons/RadioButtonUnchecked.js +0 -2
  128. package/internal/svg-icons/ReportProblemOutlined.js +0 -2
  129. package/internal/svg-icons/Star.js +0 -2
  130. package/internal/svg-icons/StarBorder.js +0 -2
  131. package/internal/svg-icons/SuccessOutlined.js +0 -2
  132. package/internal/svg-icons/Warning.js +0 -2
  133. package/locale/caES.js +45 -42
  134. package/package.json +7 -7
  135. package/styles/ThemeProvider.d.ts +1 -1
  136. package/styles/ThemeProviderWithVars.d.ts +2 -3
  137. package/styles/ThemeProviderWithVars.js +0 -2
  138. package/styles/createTheme.d.ts +13 -5
  139. package/styles/createThemeFoundation.d.ts +279 -0
  140. package/styles/createThemeFoundation.js +5 -0
  141. package/styles/createThemeNoVars.d.ts +3 -1
  142. package/styles/createThemeWithVars.d.ts +23 -306
  143. package/styles/index.d.ts +1 -1
  144. package/version/index.js +2 -2
  145. package/zero-styled/index.d.ts +1 -2
  146. 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}`. */
@@ -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-button/#floating-action-buttons) component.
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-button/#floating-action-buttons) component.
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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v7.3.3
2
+ * @mui/material v7.3.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import { createSvgIcon } from "../../utils/index.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import createSvgIcon from "../../utils/createSvgIcon.js";
5
4
 
6
5
  /**
@@ -1,28 +1,31 @@
1
1
  export const caES = {
2
2
  components: {
3
- // MuiBreadcrumbs: {
4
- // defaultProps: {
5
- // expandText: 'Show path',
6
- // },
7
- // },
3
+ MuiBreadcrumbs: {
4
+ defaultProps: {
5
+ expandText: 'Mostra el camí'
6
+ }
7
+ },
8
8
  MuiTablePagination: {
9
9
  defaultProps: {
10
- // getItemAriaLabel: (type) => {
11
- // if (type === 'first') {
12
- // return 'Go to first page';
13
- // }
14
- // if (type === 'last') {
15
- // return 'Go to last page';
16
- // }
17
- // if (type === 'next') {
18
- // return 'Go to next page';
19
- // }
20
- // // if (type === 'previous') {
21
- // return 'Go to previous page';
22
- // },
23
- labelRowsPerPage: 'Files per pàgina:'
24
- // labelDisplayedRows: ({ from, to, count }) =>
25
- // `${from}–${to} de ${count !== -1 ? count : `more than ${to}`}`,
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>): React.JSX.Element;
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): React.JSX.Element;
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: React.PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
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,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import styleFunctionSx from '@mui/system/styleFunctionSx';
5
4
  import { unstable_createCssVarsProvider as createCssVarsProvider } from '@mui/system';
6
5
  import createTheme from "./createTheme.js";
@@ -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, ThemeOptions } from "./createThemeNoVars.js";
3
- export type { ThemeOptions, Theme, CssThemeVariables } from "./createThemeNoVars.js";
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?: Omit<ThemeOptions, 'components'> & Pick<CssVarsThemeOptions, 'defaultColorScheme' | 'colorSchemes' | 'components'> & {
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;