Skip to content

Commit

Permalink
run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Jun 23, 2022
1 parent ad4f05f commit 2c68c04
Show file tree
Hide file tree
Showing 19 changed files with 130 additions and 37 deletions.
2 changes: 2 additions & 0 deletions docs/pages/x/api/data-grid/data-grid-premium.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@
"columnHeaderTitle",
"columnHeaderTitleContainer",
"columnHeaderTitleContainerContent",
"columnGroupHeaderTitleContainerContent",
"columnGroupHeader--withName",
"columnHeaders",
"columnHeadersInner",
"columnHeadersInner--scrollable",
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/x/api/data-grid/data-grid-pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@
"columnHeaderTitle",
"columnHeaderTitleContainer",
"columnHeaderTitleContainerContent",
"columnGroupHeaderTitleContainerContent",
"columnGroupHeader--withName",
"columnHeaders",
"columnHeadersInner",
"columnHeadersInner--scrollable",
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/x/api/data-grid/data-grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@
"columnHeaderTitle",
"columnHeaderTitleContainer",
"columnHeaderTitleContainerContent",
"columnGroupHeaderTitleContainerContent",
"columnGroupHeader--withName",
"columnHeaders",
"columnHeadersInner",
"columnHeadersInner--scrollable",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column header's title excepted buttons"
},
"columnGroupHeaderTitleContainerContent": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column group header's title excepted buttons"
},
"columnGroupHeader--withName": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the column group header cell",
"conditions": "not empty"
},
"columnHeaders": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column headers"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column header's title excepted buttons"
},
"columnGroupHeaderTitleContainerContent": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column group header's title excepted buttons"
},
"columnGroupHeader--withName": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the column group header cell",
"conditions": "not empty"
},
"columnHeaders": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column headers"
Expand Down
9 changes: 9 additions & 0 deletions docs/translations/api-docs/data-grid/data-grid-premium.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column header's title excepted buttons"
},
"columnGroupHeaderTitleContainerContent": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column group header's title excepted buttons"
},
"columnGroupHeader--withName": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the column group header cell",
"conditions": "not empty"
},
"columnHeaders": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column headers"
Expand Down
9 changes: 9 additions & 0 deletions docs/translations/api-docs/data-grid/data-grid-pro-pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,15 @@
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column header's title excepted buttons"
},
"columnGroupHeaderTitleContainerContent": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column group header's title excepted buttons"
},
"columnGroupHeader--withName": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the column group header cell",
"conditions": "not empty"
},
"columnHeaders": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column headers"
Expand Down
9 changes: 9 additions & 0 deletions docs/translations/api-docs/data-grid/data-grid-pro-zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,15 @@
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column header's title excepted buttons"
},
"columnGroupHeaderTitleContainerContent": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column group header's title excepted buttons"
},
"columnGroupHeader--withName": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the column group header cell",
"conditions": "not empty"
},
"columnHeaders": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column headers"
Expand Down
9 changes: 9 additions & 0 deletions docs/translations/api-docs/data-grid/data-grid-pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,15 @@
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column header's title excepted buttons"
},
"columnGroupHeaderTitleContainerContent": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column group header's title excepted buttons"
},
"columnGroupHeader--withName": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the column group header cell",
"conditions": "not empty"
},
"columnHeaders": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column headers"
Expand Down
9 changes: 9 additions & 0 deletions docs/translations/api-docs/data-grid/data-grid-pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,15 @@
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column header's title excepted buttons"
},
"columnGroupHeaderTitleContainerContent": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column group header's title excepted buttons"
},
"columnGroupHeader--withName": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the column group header cell",
"conditions": "not empty"
},
"columnHeaders": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column headers"
Expand Down
9 changes: 9 additions & 0 deletions docs/translations/api-docs/data-grid/data-grid-zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,15 @@
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column header's title excepted buttons"
},
"columnGroupHeaderTitleContainerContent": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column group header's title excepted buttons"
},
"columnGroupHeader--withName": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the column group header cell",
"conditions": "not empty"
},
"columnHeaders": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column headers"
Expand Down
9 changes: 9 additions & 0 deletions docs/translations/api-docs/data-grid/data-grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,15 @@
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column header's title excepted buttons"
},
"columnGroupHeaderTitleContainerContent": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column group header's title excepted buttons"
},
"columnGroupHeader--withName": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the column group header cell",
"conditions": "not empty"
},
"columnHeaders": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the column headers"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ DataGridPremiumRaw.propTypes = {
freeReordering: PropTypes.bool,
groupId: PropTypes.string.isRequired,
headerName: PropTypes.string,
renderHeaderGroup: PropTypes.func,
}),
),
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ DataGridProRaw.propTypes = {
freeReordering: PropTypes.bool,
groupId: PropTypes.string.isRequired,
headerName: PropTypes.string,
renderHeaderGroup: PropTypes.func,
}),
),
/**
Expand Down
1 change: 1 addition & 0 deletions packages/grid/x-data-grid/src/DataGrid/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ DataGridRaw.propTypes = {
freeReordering: PropTypes.bool,
groupId: PropTypes.string.isRequired,
headerName: PropTypes.string,
renderHeaderGroup: PropTypes.func,
}),
),
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { borderBottom, CSSInterpolation } from '@mui/system';
import { CSSInterpolation } from '@mui/system';
import { darken, lighten, alpha, styled } from '@mui/material/styles';
import { gridClasses } from '../../constants/gridClasses';

Expand Down Expand Up @@ -82,16 +82,16 @@ export const GridRootStyles = styled('div', {
},
},
[`& .${gridClasses['virtualScrollerContent--overflowed']} .${gridClasses['row--lastVisible']} .${gridClasses.cell}`]:
{
borderBottomColor: 'transparent',
},
{
borderBottomColor: 'transparent',
},
[`& .${gridClasses.columnHeader}, & .${gridClasses.columnGroupHeader}, & .${gridClasses.cell}`]:
{
WebkitTapHighlightColor: 'transparent',
lineHeight: null,
padding: '0 10px',
boxSizing: 'border-box',
},
{
WebkitTapHighlightColor: 'transparent',
lineHeight: null,
padding: '0 10px',
boxSizing: 'border-box',
},
[`& .${gridClasses.columnHeader}:focus-within, & .${gridClasses.cell}:focus-within`]: {
outline: `solid ${alpha(theme.palette.primary.main, 0.5)} 1px`,
outlineWidth: 1,
Expand All @@ -111,21 +111,21 @@ export const GridRootStyles = styled('div', {
alignItems: 'center',
},
[`& .${gridClasses['columnHeader--sorted']} .${gridClasses.iconButtonContainer}, & .${gridClasses['columnHeader--filtered']} .${gridClasses.iconButtonContainer}`]:
{
visibility: 'visible',
width: 'auto',
},
{
visibility: 'visible',
width: 'auto',
},
[`& .${gridClasses.columnHeader}:not(.${gridClasses['columnHeader--sorted']}) .${gridClasses.sortIcon}`]:
{
opacity: 0,
transition: theme.transitions.create(['opacity'], {
duration: theme.transitions.duration.shorter,
}),
},
{
opacity: 0,
transition: theme.transitions.create(['opacity'], {
duration: theme.transitions.duration.shorter,
}),
},
[`& .${gridClasses.columnHeader}:not(.${gridClasses['columnHeader--sorted']}):hover .${gridClasses.sortIcon}`]:
{
opacity: 0.5,
},
{
opacity: 0.5,
},
[`& .${gridClasses.columnHeaderTitleContainer}`]: {
display: 'flex',
alignItems: 'center',
Expand All @@ -140,9 +140,9 @@ export const GridRootStyles = styled('div', {
alignItems: 'center',
},
[`& .${gridClasses['columnGroupHeader--withName']} .${gridClasses.columnGroupHeaderTitleContainerContent}`]:
{
borderBottom: `solid ${theme.palette.divider} 2px`,
},
{
borderBottom: `solid ${theme.palette.divider} 2px`,
},
[`& .${gridClasses.withBorder} .${gridClasses.columnGroupHeaderTitleContainerContent}`]: {
borderBottom: `none`,
},
Expand All @@ -159,19 +159,19 @@ export const GridRootStyles = styled('div', {
justifyContent: 'center',
},
[`& .${gridClasses['columnHeader--alignRight']} .${gridClasses.columnHeaderDraggableContainer}, & .${gridClasses['columnHeader--alignRight']} .${gridClasses.columnHeaderTitleContainer}`]:
{
flexDirection: 'row-reverse',
},
{
flexDirection: 'row-reverse',
},
[`& .${gridClasses['columnHeader--alignCenter']} .${gridClasses.menuIcon}, & .${gridClasses['columnHeader--alignRight']} .${gridClasses.menuIcon}`]:
{
marginRight: 'auto',
marginLeft: -6,
},
{
marginRight: 'auto',
marginLeft: -6,
},
[`& .${gridClasses['columnHeader--alignRight']} .${gridClasses.menuIcon}, & .${gridClasses['columnHeader--alignRight']} .${gridClasses.menuIcon}`]:
{
marginRight: 'auto',
marginLeft: -10,
},
{
marginRight: 'auto',
marginLeft: -10,
},
[`& .${gridClasses['columnHeader--moving']}`]: {
backgroundColor: theme.palette.action.hover,
},
Expand Down
1 change: 1 addition & 0 deletions scripts/x-data-grid-premium.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
{ "name": "gridColumnDefinitionsSelector", "kind": "Variable" },
{ "name": "gridColumnFieldsSelector", "kind": "Variable" },
{ "name": "GridColumnGroup", "kind": "TypeAlias" },
{ "name": "GridColumnGroupHeaderParams", "kind": "TypeAlias" },
{ "name": "GridColumnGroupingModel", "kind": "TypeAlias" },
{ "name": "gridColumnGroupingSelector", "kind": "Variable" },
{ "name": "gridColumnGroupsLookupSelector", "kind": "Variable" },
Expand Down
1 change: 1 addition & 0 deletions scripts/x-data-grid-pro.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
{ "name": "gridColumnDefinitionsSelector", "kind": "Variable" },
{ "name": "gridColumnFieldsSelector", "kind": "Variable" },
{ "name": "GridColumnGroup", "kind": "TypeAlias" },
{ "name": "GridColumnGroupHeaderParams", "kind": "TypeAlias" },
{ "name": "GridColumnGroupingModel", "kind": "TypeAlias" },
{ "name": "gridColumnGroupingSelector", "kind": "Variable" },
{ "name": "gridColumnGroupsLookupSelector", "kind": "Variable" },
Expand Down
1 change: 1 addition & 0 deletions scripts/x-data-grid.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
{ "name": "gridColumnDefinitionsSelector", "kind": "Variable" },
{ "name": "gridColumnFieldsSelector", "kind": "Variable" },
{ "name": "GridColumnGroup", "kind": "TypeAlias" },
{ "name": "GridColumnGroupHeaderParams", "kind": "TypeAlias" },
{ "name": "GridColumnGroupingModel", "kind": "TypeAlias" },
{ "name": "gridColumnGroupingSelector", "kind": "Variable" },
{ "name": "gridColumnGroupsLookupSelector", "kind": "Variable" },
Expand Down

0 comments on commit 2c68c04

Please sign in to comment.