Skip to content

Commit 9db17c4

Browse files
authored
Merge branch 'next' into migrate/List
2 parents 2770ace + 841e805 commit 9db17c4

File tree

89 files changed

+1839
-860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1839
-860
lines changed

docs/pages/api-docs/accordion-summary.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"children": { "type": { "name": "node" } },
44
"classes": { "type": { "name": "object" } },
55
"expandIcon": { "type": { "name": "node" } },
6-
"focusVisibleClassName": { "type": { "name": "string" } }
6+
"focusVisibleClassName": { "type": { "name": "string" } },
7+
"sx": { "type": { "name": "object" } }
78
},
89
"name": "AccordionSummary",
910
"styles": {
@@ -20,6 +21,6 @@
2021
"filename": "/packages/material-ui/src/AccordionSummary/AccordionSummary.js",
2122
"inheritance": { "component": "ButtonBase", "pathname": "/api/button-base/" },
2223
"demos": "<ul><li><a href=\"/components/accordion/\">Accordion</a></li></ul>",
23-
"styledComponent": false,
24+
"styledComponent": true,
2425
"cssComponent": false
2526
}

docs/pages/api-docs/breadcrumbs.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"itemsAfterCollapse": { "type": { "name": "number" }, "default": "1" },
88
"itemsBeforeCollapse": { "type": { "name": "number" }, "default": "1" },
99
"maxItems": { "type": { "name": "number" }, "default": "8" },
10-
"separator": { "type": { "name": "node" }, "default": "'/'" }
10+
"separator": { "type": { "name": "node" }, "default": "'/'" },
11+
"sx": { "type": { "name": "object" } }
1112
},
1213
"name": "Breadcrumbs",
1314
"styles": {
@@ -20,6 +21,6 @@
2021
"filename": "/packages/material-ui/src/Breadcrumbs/Breadcrumbs.js",
2122
"inheritance": null,
2223
"demos": "<ul><li><a href=\"/components/breadcrumbs/\">Breadcrumbs</a></li></ul>",
23-
"styledComponent": false,
24+
"styledComponent": true,
2425
"cssComponent": false
2526
}

docs/pages/api-docs/divider.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"type": { "name": "enum", "description": "'horizontal'<br>&#124;&nbsp;'vertical'" },
1111
"default": "'horizontal'"
1212
},
13+
"sx": { "type": { "name": "object" } },
1314
"textAlign": {
1415
"type": {
1516
"name": "enum",
@@ -51,6 +52,6 @@
5152
"filename": "/packages/material-ui/src/Divider/Divider.js",
5253
"inheritance": null,
5354
"demos": "<ul><li><a href=\"/components/dividers/\">Dividers</a></li>\n<li><a href=\"/components/lists/\">Lists</a></li></ul>",
54-
"styledComponent": false,
55+
"styledComponent": true,
5556
"cssComponent": false
5657
}

docs/pages/api-docs/icon-button.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"size": {
2323
"type": { "name": "enum", "description": "'medium'<br>&#124;&nbsp;'small'" },
2424
"default": "'medium'"
25-
}
25+
},
26+
"sx": { "type": { "name": "object" } }
2627
},
2728
"name": "IconButton",
2829
"styles": {
@@ -45,6 +46,6 @@
4546
"filename": "/packages/material-ui/src/IconButton/IconButton.js",
4647
"inheritance": { "component": "ButtonBase", "pathname": "/api/button-base/" },
4748
"demos": "<ul><li><a href=\"/components/buttons/\">Buttons</a></li></ul>",
48-
"styledComponent": false,
49+
"styledComponent": true,
4950
"cssComponent": false
5051
}

docs/pages/api-docs/list-item.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"disabled": { "type": { "name": "bool" } },
1919
"disableGutters": { "type": { "name": "bool" } },
2020
"divider": { "type": { "name": "bool" } },
21-
"selected": { "type": { "name": "bool" } }
21+
"selected": { "type": { "name": "bool" } },
22+
"sx": { "type": { "name": "object" } }
2223
},
2324
"name": "ListItem",
2425
"styles": {
@@ -47,6 +48,6 @@
4748
"filename": "/packages/material-ui/src/ListItem/ListItem.js",
4849
"inheritance": null,
4950
"demos": "<ul><li><a href=\"/components/lists/\">Lists</a></li>\n<li><a href=\"/components/transfer-list/\">Transfer List</a></li></ul>",
50-
"styledComponent": false,
51+
"styledComponent": true,
5152
"cssComponent": false
5253
}

docs/pages/api-docs/list-subheader.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"component": { "type": { "name": "elementType" } },
1313
"disableGutters": { "type": { "name": "bool" } },
1414
"disableSticky": { "type": { "name": "bool" } },
15-
"inset": { "type": { "name": "bool" } }
15+
"inset": { "type": { "name": "bool" } },
16+
"sx": { "type": { "name": "object" } }
1617
},
1718
"name": "ListSubheader",
1819
"styles": {
@@ -25,6 +26,6 @@
2526
"filename": "/packages/material-ui/src/ListSubheader/ListSubheader.js",
2627
"inheritance": null,
2728
"demos": "<ul><li><a href=\"/components/lists/\">Lists</a></li></ul>",
28-
"styledComponent": false,
29+
"styledComponent": true,
2930
"cssComponent": false
3031
}

docs/pages/api-docs/table-pagination.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
"root",
3737
"toolbar",
3838
"spacer",
39-
"caption",
39+
"selectLabel",
4040
"selectRoot",
4141
"select",
4242
"selectIcon",
4343
"input",
4444
"menuItem",
45+
"displayedRows",
4546
"actions"
4647
],
4748
"globalClasses": {},

docs/src/modules/components/Link.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,18 @@ interface NextLinkComposedProps
1616

1717
export const NextLinkComposed = React.forwardRef<HTMLAnchorElement, NextLinkComposedProps>(
1818
function NextLinkComposed(props, ref) {
19-
const { to, linkAs, href, replace, scroll, passHref, shallow, prefetch, ...other } = props;
19+
const {
20+
to,
21+
linkAs,
22+
href,
23+
replace,
24+
scroll,
25+
passHref,
26+
shallow,
27+
prefetch,
28+
locale,
29+
...other
30+
} = props;
2031

2132
return (
2233
<NextLink
@@ -27,6 +38,7 @@ export const NextLinkComposed = React.forwardRef<HTMLAnchorElement, NextLinkComp
2738
scroll={scroll}
2839
shallow={shallow}
2940
passHref={passHref}
41+
locale={locale}
3042
>
3143
<a ref={ref} {...other} />
3244
</NextLink>

docs/src/pages/guides/migration-v4/migration-v4.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,15 @@ As the core components use emotion as a styled engine, the props used by emotion
10781078
+ onPageChange={()=>{}}
10791079
```
10801080

1081+
- Separate classes for different table pagination labels. This allows simpler customizations.
1082+
1083+
```diff
1084+
<TablePagination
1085+
- classes={{ caption: 'foo' }}
1086+
+ classes={{ selectLabel: 'foo', displayedRows: 'foo' }}
1087+
/>
1088+
```
1089+
10811090
### Tabs
10821091

10831092
- TypeScript: The `event` in `onChange` is no longer typed as a `React.ChangeEvent` but `React.SyntheticEvent`.

docs/translations/api-docs/accordion-summary/accordion-summary.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"children": "The content of the component.",
55
"classes": "Override or extend the styles applied to the component. See <a href=\"#css\">CSS API</a> below for more details.",
66
"expandIcon": "The icon to display as the expand indicator.",
7-
"focusVisibleClassName": "This prop can help identify which element has keyboard focus. The class name will be applied when the element gains the focus through keyboard interaction. It&#39;s a polyfill for the <a href=\"https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo\">CSS :focus-visible selector</a>. The rationale for using this feature <a href=\"https://github.com/WICG/focus-visible/blob/master/explainer.md\">is explained here</a>. A <a href=\"https://github.com/WICG/focus-visible\">polyfill can be used</a> to apply a <code>focus-visible</code> class to other components if needed."
7+
"focusVisibleClassName": "This prop can help identify which element has keyboard focus. The class name will be applied when the element gains the focus through keyboard interaction. It&#39;s a polyfill for the <a href=\"https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo\">CSS :focus-visible selector</a>. The rationale for using this feature <a href=\"https://github.com/WICG/focus-visible/blob/master/explainer.md\">is explained here</a>. A <a href=\"https://github.com/WICG/focus-visible\">polyfill can be used</a> to apply a <code>focus-visible</code> class to other components if needed.",
8+
"sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the <a href=\"/system/basics/#the-sx-prop\">`sx` page</a> for more details."
89
},
910
"classDescriptions": {
1011
"root": { "description": "Styles applied to the root element." },

0 commit comments

Comments
 (0)