@mui/codemod 5.15.9 → 5.15.11

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 (31) hide show
  1. package/README.md +155 -3
  2. package/codemod.js +80 -7
  3. package/node/deprecations/accordion-summary-classes/accordion-summary-classes.js +55 -0
  4. package/node/deprecations/accordion-summary-classes/index.js +13 -0
  5. package/node/deprecations/accordion-summary-classes/postcss-plugin.js +28 -0
  6. package/node/deprecations/accordion-summary-classes/postcss.config.js +8 -0
  7. package/node/deprecations/accordion-summary-classes/test-cases/actual.js +54 -0
  8. package/node/deprecations/accordion-summary-classes/test-cases/expected.js +54 -0
  9. package/node/deprecations/alert-props/alert-props.js +22 -0
  10. package/node/deprecations/alert-props/index.js +13 -0
  11. package/node/deprecations/alert-props/test-cases/actual.js +43 -0
  12. package/node/deprecations/alert-props/test-cases/expected.js +33 -0
  13. package/node/deprecations/alert-props/test-cases/theme.actual.js +52 -0
  14. package/node/deprecations/alert-props/test-cases/theme.expected.js +42 -0
  15. package/node/deprecations/all/deprecations-all.js +9 -1
  16. package/node/deprecations/all/postcss.config.js +11 -0
  17. package/node/deprecations/avatar-props/avatar-props.js +58 -0
  18. package/node/deprecations/avatar-props/index.js +13 -0
  19. package/node/deprecations/avatar-props/test-cases/actual.js +26 -0
  20. package/node/deprecations/avatar-props/test-cases/expected.js +30 -0
  21. package/node/deprecations/avatar-props/test-cases/theme.actual.js +12 -0
  22. package/node/deprecations/avatar-props/test-cases/theme.expected.js +14 -0
  23. package/node/deprecations/pagination-item-classes/index.js +13 -0
  24. package/node/deprecations/pagination-item-classes/pagination-item-classes.js +58 -0
  25. package/node/deprecations/pagination-item-classes/postcss-plugin.js +39 -0
  26. package/node/deprecations/pagination-item-classes/postcss.config.js +8 -0
  27. package/node/deprecations/pagination-item-classes/test-cases/actual.js +108 -0
  28. package/node/deprecations/pagination-item-classes/test-cases/expected.js +108 -0
  29. package/node/deprecations/utils/replaceComponentsWithSlots.js +184 -0
  30. package/node/util/findComponentDefaultProps.js +30 -0
  31. package/package.json +3 -1
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ fn({
4
+ MuiAlert: {
5
+ defaultProps: {
6
+ slots: {
7
+ closeButton: ComponentsButton
8
+ },
9
+ slotProps: {
10
+ closeButton: componentsButtonProps
11
+ }
12
+ }
13
+ }
14
+ });
15
+ fn({
16
+ MuiAlert: {
17
+ defaultProps: {
18
+ slots: {
19
+ closeButton: ComponentsButton,
20
+ closeIcon: SlotsIcon
21
+ },
22
+ slotProps: {
23
+ closeButton: componentsButtonProps,
24
+ closeIcon: slotsIconProps
25
+ }
26
+ }
27
+ }
28
+ });
29
+ fn({
30
+ MuiAlert: {
31
+ defaultProps: {
32
+ slots: {
33
+ closeButton: SlotsButton,
34
+ closeIcon: SlotsIcon
35
+ },
36
+ slotProps: {
37
+ closeButton: slotsButtonProps,
38
+ closeIcon: slotsIconProps
39
+ }
40
+ }
41
+ }
42
+ });
@@ -5,12 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = deprecationsAll;
8
- var _accordionProps = _interopRequireDefault(require("../accordion-props/accordion-props"));
8
+ var _accordionProps = _interopRequireDefault(require("../accordion-props"));
9
+ var _avatarProps = _interopRequireDefault(require("../avatar-props"));
10
+ var _dividerProps = _interopRequireDefault(require("../divider-props"));
11
+ var _accordionSummaryClasses = _interopRequireDefault(require("../accordion-summary-classes"));
12
+ var _paginationItemClasses = _interopRequireDefault(require("../pagination-item-classes"));
9
13
  /**
10
14
  * @param {import('jscodeshift').FileInfo} file
11
15
  * @param {import('jscodeshift').API} api
12
16
  */
13
17
  function deprecationsAll(file, api, options) {
14
18
  file.source = (0, _accordionProps.default)(file, api, options);
19
+ file.source = (0, _avatarProps.default)(file, api, options);
20
+ file.source = (0, _dividerProps.default)(file, api, options);
21
+ file.source = (0, _accordionSummaryClasses.default)(file, api, options);
22
+ file.source = (0, _paginationItemClasses.default)(file, api, options);
15
23
  return file.source;
16
24
  }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ const {
4
+ plugin: accordionSummaryClassesPlugin
5
+ } = require('../accordion-summary-classes/postcss-plugin');
6
+ const {
7
+ plugin: paginationItemClassesPlugin
8
+ } = require('../pagination-item-classes/postcss-plugin');
9
+ module.exports = {
10
+ plugins: [accordionSummaryClassesPlugin, paginationItemClassesPlugin]
11
+ };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = transformer;
8
+ var _findComponentJSX = _interopRequireDefault(require("../../util/findComponentJSX"));
9
+ var _assignObject = _interopRequireDefault(require("../../util/assignObject"));
10
+ var _appendAttribute = _interopRequireDefault(require("../../util/appendAttribute"));
11
+ /**
12
+ * @param {import('jscodeshift').FileInfo} file
13
+ * @param {import('jscodeshift').API} api
14
+ */
15
+ function transformer(file, api, options) {
16
+ const j = api.jscodeshift;
17
+ const root = j(file.source);
18
+ const printOptions = options.printOptions;
19
+ (0, _findComponentJSX.default)(j, {
20
+ root,
21
+ componentName: 'Avatar'
22
+ }, elementPath => {
23
+ const index = elementPath.node.openingElement.attributes.findIndex(attr => attr.type === 'JSXAttribute' && attr.name.name === 'imgProps');
24
+ if (index !== -1) {
25
+ const removed = elementPath.node.openingElement.attributes.splice(index, 1);
26
+ let hasNode = false;
27
+ elementPath.node.openingElement.attributes.forEach(attr => {
28
+ var _attr$name;
29
+ if (((_attr$name = attr.name) == null ? void 0 : _attr$name.name) === 'slotProps') {
30
+ hasNode = true;
31
+ (0, _assignObject.default)(j, {
32
+ target: attr,
33
+ key: 'img',
34
+ expression: removed[0].value.expression
35
+ });
36
+ }
37
+ });
38
+ if (!hasNode) {
39
+ (0, _appendAttribute.default)(j, {
40
+ target: elementPath.node,
41
+ attributeName: 'slotProps',
42
+ expression: j.objectExpression([j.objectProperty(j.identifier('img'), removed[0].value.expression)])
43
+ });
44
+ }
45
+ }
46
+ });
47
+ root.find(j.ObjectProperty, {
48
+ key: {
49
+ name: 'imgProps'
50
+ }
51
+ }).forEach(path => {
52
+ var _path$parent;
53
+ if (((_path$parent = path.parent) == null || (_path$parent = _path$parent.parent) == null || (_path$parent = _path$parent.parent) == null || (_path$parent = _path$parent.parent) == null || (_path$parent = _path$parent.node.key) == null ? void 0 : _path$parent.name) === 'MuiAvatar') {
54
+ path.replace(j.property('init', j.identifier('slotProps'), j.objectExpression([j.objectProperty(j.identifier('img'), path.node.value)])));
55
+ }
56
+ });
57
+ return root.toSource(printOptions);
58
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "default", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _avatarProps.default;
11
+ }
12
+ });
13
+ var _avatarProps = _interopRequireDefault(require("./avatar-props"));
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
5
+ var _material = require("@mui/material");
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
8
+ imgProps: {
9
+ onError: () => {},
10
+ onLoad: () => {}
11
+ }
12
+ });
13
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Avatar, {
14
+ imgProps: {
15
+ onError: () => {},
16
+ onLoad: () => {}
17
+ }
18
+ });
19
+
20
+ // should skip non MUI components
21
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiAvatar, {
22
+ imgProps: {
23
+ onError: () => {},
24
+ onLoad: () => {}
25
+ }
26
+ });
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
5
+ var _material = require("@mui/material");
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
8
+ slotProps: {
9
+ img: {
10
+ onError: () => {},
11
+ onLoad: () => {}
12
+ }
13
+ }
14
+ });
15
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Avatar, {
16
+ slotProps: {
17
+ img: {
18
+ onError: () => {},
19
+ onLoad: () => {}
20
+ }
21
+ }
22
+ });
23
+
24
+ // should skip non MUI components
25
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiAvatar, {
26
+ imgProps: {
27
+ onError: () => {},
28
+ onLoad: () => {}
29
+ }
30
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ fn({
4
+ MuiAvatar: {
5
+ defaultProps: {
6
+ imgProps: {
7
+ onError: () => {},
8
+ onLoad: () => {}
9
+ }
10
+ }
11
+ }
12
+ });
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ fn({
4
+ MuiAvatar: {
5
+ defaultProps: {
6
+ slotProps: {
7
+ img: {
8
+ onError: () => {},
9
+ onLoad: () => {}
10
+ }
11
+ }
12
+ }
13
+ }
14
+ });
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "default", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _paginationItemClasses.default;
11
+ }
12
+ });
13
+ var _paginationItemClasses = _interopRequireDefault(require("./pagination-item-classes"));
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = transformer;
7
+ var _postcssPlugin = require("./postcss-plugin");
8
+ /**
9
+ * @param {import('jscodeshift').FileInfo} file
10
+ * @param {import('jscodeshift').API} api
11
+ */
12
+ function transformer(file, api, options) {
13
+ const j = api.jscodeshift;
14
+ const root = j(file.source);
15
+ const printOptions = options.printOptions;
16
+ _postcssPlugin.classes.forEach(({
17
+ deprecatedClass,
18
+ replacementSelector
19
+ }) => {
20
+ root.find(j.ImportDeclaration).filter(path => path.node.source.value.match(/^@mui\/material\/PaginationItem$/)).forEach(path => {
21
+ path.node.specifiers.forEach(specifier => {
22
+ if (specifier.type === 'ImportSpecifier' && specifier.imported.name === 'paginationItemClasses') {
23
+ const deprecatedAtomicClass = deprecatedClass.replace('.MuiPaginationItem-', '');
24
+ root.find(j.MemberExpression, {
25
+ object: {
26
+ name: specifier.local.name
27
+ },
28
+ property: {
29
+ name: deprecatedAtomicClass
30
+ }
31
+ }).forEach(memberExpression => {
32
+ const parent = memberExpression.parentPath.parentPath.value;
33
+ if (parent.type === j.TemplateLiteral.name) {
34
+ const memberExpressionIndex = parent.expressions.findIndex(expression => expression === memberExpression.value);
35
+ const precedingTemplateElement = parent.quasis[memberExpressionIndex];
36
+ const atomicClasses = replacementSelector.replaceAll('MuiPaginationItem-', '').replaceAll('&.', '').split('.').filter(Boolean);
37
+ if (precedingTemplateElement.value.raw.endsWith('&.')) {
38
+ parent.expressions.splice(memberExpressionIndex, 1, j.memberExpression(memberExpression.value.object, j.identifier(atomicClasses[0])), j.memberExpression(memberExpression.value.object, j.identifier(atomicClasses[1])));
39
+ parent.quasis.splice(memberExpressionIndex, 1, j.templateElement({
40
+ raw: precedingTemplateElement.value.raw,
41
+ cooked: precedingTemplateElement.value.cooked
42
+ }, false), j.templateElement({
43
+ raw: '.',
44
+ cooked: '.'
45
+ }, false));
46
+ }
47
+ }
48
+ });
49
+ }
50
+ });
51
+ });
52
+ const selectorRegex = new RegExp(`^&${deprecatedClass}`);
53
+ root.find(j.Literal, literal => typeof literal.value === 'string' && literal.value.match(selectorRegex)).forEach(path => {
54
+ path.replace(j.literal(path.value.value.replace(selectorRegex, `&${replacementSelector}`)));
55
+ });
56
+ });
57
+ return root.toSource(printOptions);
58
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ const classes = [{
4
+ deprecatedClass: '.MuiPaginationItem-textPrimary',
5
+ replacementSelector: '.MuiPaginationItem-text.MuiPaginationItem-colorPrimary'
6
+ }, {
7
+ deprecatedClass: '.MuiPaginationItem-textSecondary',
8
+ replacementSelector: '.MuiPaginationItem-text.MuiPaginationItem-colorSecondary'
9
+ }, {
10
+ deprecatedClass: '.MuiPaginationItem-outlinedPrimary',
11
+ replacementSelector: '.MuiPaginationItem-outlined.MuiPaginationItem-colorPrimary'
12
+ }, {
13
+ deprecatedClass: '.MuiPaginationItem-outlinedSecondary',
14
+ replacementSelector: '.MuiPaginationItem-outlined.MuiPaginationItem-colorSecondary'
15
+ }];
16
+ const plugin = () => {
17
+ return {
18
+ postcssPlugin: `Replace deperecated PaginationItem classes with new classes`,
19
+ Rule(rule) {
20
+ const {
21
+ selector
22
+ } = rule;
23
+ classes.forEach(({
24
+ deprecatedClass,
25
+ replacementSelector
26
+ }) => {
27
+ const selectorRegex = new RegExp(`${deprecatedClass}`);
28
+ if (selector.match(selectorRegex)) {
29
+ rule.selector = selector.replace(selectorRegex, replacementSelector);
30
+ }
31
+ });
32
+ }
33
+ };
34
+ };
35
+ plugin.postcss = true;
36
+ module.exports = {
37
+ plugin,
38
+ classes
39
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ const {
4
+ plugin
5
+ } = require('./postcss-plugin');
6
+ module.exports = {
7
+ plugins: [plugin]
8
+ };
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+
3
+ var _PaginationItem = require("@mui/material/PaginationItem");
4
+ var _jsxRuntime = require("react/jsx-runtime");
5
+ fn({
6
+ MuiPaginationItem: {
7
+ styleOverrides: {
8
+ root: {
9
+ '&.MuiPaginationItem-textPrimary': {
10
+ color: 'red'
11
+ },
12
+ '&.MuiPaginationItem-textSecondary': {
13
+ color: 'red'
14
+ },
15
+ '&.MuiPaginationItem-outlinedPrimary': {
16
+ color: 'red'
17
+ },
18
+ '&.MuiPaginationItem-outlinedSecondary': {
19
+ color: 'red'
20
+ }
21
+ }
22
+ }
23
+ }
24
+ });
25
+ fn({
26
+ MuiPaginationItem: {
27
+ styleOverrides: {
28
+ root: {
29
+ [`&.${_PaginationItem.paginationItemClasses.textPrimary}`]: {
30
+ color: 'red'
31
+ },
32
+ [`&.${_PaginationItem.paginationItemClasses.textSecondary}`]: {
33
+ color: 'red'
34
+ },
35
+ [`&.${_PaginationItem.paginationItemClasses.outlinedPrimary}`]: {
36
+ color: 'red'
37
+ },
38
+ [`&.${_PaginationItem.paginationItemClasses.outlinedSecondary}`]: {
39
+ color: 'red'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ });
45
+ styled(Component)(() => {
46
+ return {
47
+ '&.MuiPaginationItem-textPrimary': {
48
+ color: 'red'
49
+ },
50
+ '&.MuiPaginationItem-textSecondary': {
51
+ color: 'red'
52
+ },
53
+ '&.MuiPaginationItem-outlinedPrimary': {
54
+ color: 'red'
55
+ },
56
+ '&.MuiPaginationItem-outlinedSecondary': {
57
+ color: 'red'
58
+ }
59
+ };
60
+ });
61
+ styled(Component)(() => {
62
+ return {
63
+ [`&.${_PaginationItem.paginationItemClasses.textPrimary}`]: {
64
+ color: 'red'
65
+ },
66
+ [`&.${_PaginationItem.paginationItemClasses.textSecondary}`]: {
67
+ color: 'red'
68
+ },
69
+ [`&.${_PaginationItem.paginationItemClasses.outlinedPrimary}`]: {
70
+ color: 'red'
71
+ },
72
+ [`&.${_PaginationItem.paginationItemClasses.outlinedSecondary}`]: {
73
+ color: 'red'
74
+ }
75
+ };
76
+ });
77
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationItem, {
78
+ sx: {
79
+ '&.MuiPaginationItem-textPrimary': {
80
+ color: 'red'
81
+ },
82
+ '&.MuiPaginationItem-textSecondary': {
83
+ color: 'red'
84
+ },
85
+ '&.MuiPaginationItem-outlinedPrimary': {
86
+ color: 'red'
87
+ },
88
+ '&.MuiPaginationItem-outlinedSecondary': {
89
+ color: 'red'
90
+ }
91
+ }
92
+ });
93
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationItem, {
94
+ sx: {
95
+ [`&.${_PaginationItem.paginationItemClasses.textPrimary}`]: {
96
+ color: 'red'
97
+ },
98
+ [`&.${_PaginationItem.paginationItemClasses.textSecondary}`]: {
99
+ color: 'red'
100
+ },
101
+ [`&.${_PaginationItem.paginationItemClasses.outlinedPrimary}`]: {
102
+ color: 'red'
103
+ },
104
+ [`&.${_PaginationItem.paginationItemClasses.outlinedSecondary}`]: {
105
+ color: 'red'
106
+ }
107
+ }
108
+ });
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+
3
+ var _PaginationItem = require("@mui/material/PaginationItem");
4
+ var _jsxRuntime = require("react/jsx-runtime");
5
+ fn({
6
+ MuiPaginationItem: {
7
+ styleOverrides: {
8
+ root: {
9
+ "&.MuiPaginationItem-text.MuiPaginationItem-colorPrimary": {
10
+ color: 'red'
11
+ },
12
+ "&.MuiPaginationItem-text.MuiPaginationItem-colorSecondary": {
13
+ color: 'red'
14
+ },
15
+ "&.MuiPaginationItem-outlined.MuiPaginationItem-colorPrimary": {
16
+ color: 'red'
17
+ },
18
+ "&.MuiPaginationItem-outlined.MuiPaginationItem-colorSecondary": {
19
+ color: 'red'
20
+ }
21
+ }
22
+ }
23
+ }
24
+ });
25
+ fn({
26
+ MuiPaginationItem: {
27
+ styleOverrides: {
28
+ root: {
29
+ [`&.${_PaginationItem.paginationItemClasses.text}.${_PaginationItem.paginationItemClasses.colorPrimary}`]: {
30
+ color: 'red'
31
+ },
32
+ [`&.${_PaginationItem.paginationItemClasses.text}.${_PaginationItem.paginationItemClasses.colorSecondary}`]: {
33
+ color: 'red'
34
+ },
35
+ [`&.${_PaginationItem.paginationItemClasses.outlined}.${_PaginationItem.paginationItemClasses.colorPrimary}`]: {
36
+ color: 'red'
37
+ },
38
+ [`&.${_PaginationItem.paginationItemClasses.outlined}.${_PaginationItem.paginationItemClasses.colorSecondary}`]: {
39
+ color: 'red'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ });
45
+ styled(Component)(() => {
46
+ return {
47
+ "&.MuiPaginationItem-text.MuiPaginationItem-colorPrimary": {
48
+ color: 'red'
49
+ },
50
+ "&.MuiPaginationItem-text.MuiPaginationItem-colorSecondary": {
51
+ color: 'red'
52
+ },
53
+ "&.MuiPaginationItem-outlined.MuiPaginationItem-colorPrimary": {
54
+ color: 'red'
55
+ },
56
+ "&.MuiPaginationItem-outlined.MuiPaginationItem-colorSecondary": {
57
+ color: 'red'
58
+ }
59
+ };
60
+ });
61
+ styled(Component)(() => {
62
+ return {
63
+ [`&.${_PaginationItem.paginationItemClasses.text}.${_PaginationItem.paginationItemClasses.colorPrimary}`]: {
64
+ color: 'red'
65
+ },
66
+ [`&.${_PaginationItem.paginationItemClasses.text}.${_PaginationItem.paginationItemClasses.colorSecondary}`]: {
67
+ color: 'red'
68
+ },
69
+ [`&.${_PaginationItem.paginationItemClasses.outlined}.${_PaginationItem.paginationItemClasses.colorPrimary}`]: {
70
+ color: 'red'
71
+ },
72
+ [`&.${_PaginationItem.paginationItemClasses.outlined}.${_PaginationItem.paginationItemClasses.colorSecondary}`]: {
73
+ color: 'red'
74
+ }
75
+ };
76
+ });
77
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationItem, {
78
+ sx: {
79
+ "&.MuiPaginationItem-text.MuiPaginationItem-colorPrimary": {
80
+ color: 'red'
81
+ },
82
+ "&.MuiPaginationItem-text.MuiPaginationItem-colorSecondary": {
83
+ color: 'red'
84
+ },
85
+ "&.MuiPaginationItem-outlined.MuiPaginationItem-colorPrimary": {
86
+ color: 'red'
87
+ },
88
+ "&.MuiPaginationItem-outlined.MuiPaginationItem-colorSecondary": {
89
+ color: 'red'
90
+ }
91
+ }
92
+ });
93
+ /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationItem, {
94
+ sx: {
95
+ [`&.${_PaginationItem.paginationItemClasses.text}.${_PaginationItem.paginationItemClasses.colorPrimary}`]: {
96
+ color: 'red'
97
+ },
98
+ [`&.${_PaginationItem.paginationItemClasses.text}.${_PaginationItem.paginationItemClasses.colorSecondary}`]: {
99
+ color: 'red'
100
+ },
101
+ [`&.${_PaginationItem.paginationItemClasses.outlined}.${_PaginationItem.paginationItemClasses.colorPrimary}`]: {
102
+ color: 'red'
103
+ },
104
+ [`&.${_PaginationItem.paginationItemClasses.outlined}.${_PaginationItem.paginationItemClasses.colorSecondary}`]: {
105
+ color: 'red'
106
+ }
107
+ }
108
+ });