Skip to content

Commit

Permalink
Bump babel (#6529)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andrew Cherniavskyi <andrew@mui.com>
  • Loading branch information
renovate[bot] and cherniavskii authored Nov 17, 2022
1 parent 4e50238 commit d5fdc1b
Show file tree
Hide file tree
Showing 25 changed files with 189 additions and 228 deletions.
1 change: 0 additions & 1 deletion docs/data/data-grid/components/CellWithPopover.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function CellWithPopover() {
rowLength: 100,
maxColumns: 4,
});

const [anchorEl, setAnchorEl] = React.useState(null);
const [value, setValue] = React.useState('');

Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/components/CustomFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default function CustomFooter() {
rowLength: 4,
maxColumns: 6,
});

return (
<Box sx={{ width: '100%' }}>
<Box sx={{ height: 350, width: '100%', mb: 1 }}>
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/editing/AskConfirmationBeforeSave.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export default function AskConfirmationBeforeSave() {
// the dialog is fully open.
// noButtonRef.current?.focus();
};

const renderConfirmDialog = () => {
if (!promiseArguments) {
return null;
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/export/CustomExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ function JsonExportMenuItem(props) {
const blob = new Blob([jsonString], {
type: 'text/json',
});

exportBlob(blob, 'DataGrid_demo.json');

// Hide the export menu after the export
Expand Down
2 changes: 0 additions & 2 deletions docs/data/data-grid/export/ExcelCustomExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,11 @@ const exceljsPreProcess = ({ workbook, worksheet }) => {
name: 'Arial Black',
size: 14,
};

worksheet.getCell('A1').alignment = {
vertical: 'top',
horizontal: 'center',
wrapText: true,
};

worksheet.addRow([]);
};
const exceljsPostProcess = ({ worksheet }) => {
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/overview/DataGridPremiumDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default function DataGridPremiumDemo() {
'incoTerm',
],
});

const apiRef = useGridApiRef();

const initialState = useKeepGroupedColumnsHidden({
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/pagination/PageControlled.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default function PageControlled() {
rowLength: 100,
maxColumns: 6,
});

const [page, setPage] = React.useState(0);

return (
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/pagination/PageSizeControlled.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default function PageSizeControlled() {
rowLength: 500,
maxColumns: 6,
});

const [pageSize, setPageSize] = React.useState(25);

return (
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/row-grouping/RowGroupingFullExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default function RowGroupingFullExample() {
rowLength: 100,
maxColumns: 25,
});

const apiRef = useGridApiRef();

const initialState = useKeepGroupedColumnsHidden({
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/style/AntDesignGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export default function AntDesignGrid() {
rowLength: 10,
maxColumns: 10,
});

return (
<div style={{ height: 400, width: '100%' }}>
<StyledDataGrid
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/tree-data/TreeDataLazyLoading.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ const fakeDataFetcher = (parentPath = []) =>
...row,
descendantCount: getChildren(row.hierarchy).length,
}));

resolve(rows);
}, 500 + Math.random() * 300);
});
Expand Down
3 changes: 2 additions & 1 deletion docs/data/date-pickers/localization/LocalizedTimePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const locales = ['en', 'ru', 'ar-sa'];
const ampmOptions = {
'undefined': undefined,
true: true,
false: false };
false: false
};

export default function LocalizedTimePicker() {
const [locale, setLocale] = React.useState('ru');
Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"typescript:transpile:dev": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" scripts/formattedTSDemos --watch"
},
"dependencies": {
"@babel/core": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/runtime-corejs2": "^7.19.2",
"@babel/runtime-corejs2": "^7.20.1",
"@date-io/date-fns-jalali": "^2.16.0",
"@docsearch/react": "^3.3.0",
"@emotion/cache": "^11.10.5",
Expand Down Expand Up @@ -85,7 +85,7 @@
"webpack-bundle-analyzer": "^4.7.0"
},
"devDependencies": {
"@babel/plugin-transform-react-constant-elements": "^7.18.12",
"@babel/plugin-transform-react-constant-elements": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@types/doctrine": "^0.0.5",
"cpy-cli": "^4.2.0",
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@
"devDependencies": {
"@argos-ci/core": "^0.5.1",
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/node": "^7.19.1",
"@babel/core": "^7.20.2",
"@babel/node": "^7.20.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
"@babel/plugin-proposal-object-rest-spread": "^7.20.2",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/plugin-transform-react-constant-elements": "^7.18.12",
"@babel/plugin-transform-runtime": "^7.19.1",
"@babel/preset-env": "^7.19.3",
"@babel/plugin-transform-react-constant-elements": "^7.20.2",
"@babel/plugin-transform-runtime": "^7.19.6",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/register": "^7.18.9",
"@babel/traverse": "^7.19.3",
"@babel/types": "^7.19.3",
"@babel/traverse": "^7.20.1",
"@babel/types": "^7.20.2",
"@emotion/cache": "^11.10.5",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/x-data-grid-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"directory": "packages/grid/x-data-grid-generator"
},
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.20.1",
"@mui/base": "^5.0.0-alpha.106",
"@mui/x-data-grid-premium": "6.0.0-alpha.8",
"chance": "^1.1.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/x-data-grid-premium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"directory": "packages/grid/x-data-grid-premium"
},
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.20.1",
"@mui/utils": "^5.10.14",
"@mui/x-data-grid": "6.0.0-alpha.8",
"@mui/x-data-grid-pro": "6.0.0-alpha.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/x-data-grid-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"directory": "packages/grid/x-data-grid-pro"
},
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.20.1",
"@mui/utils": "^5.10.14",
"@mui/x-data-grid": "6.0.0-alpha.8",
"@mui/x-license-pro": "6.0.0-alpha.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/x-data-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"directory": "packages/grid/x-data-grid"
},
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.20.1",
"@mui/utils": "^5.10.14",
"clsx": "^1.2.1",
"prop-types": "^15.8.1",
Expand Down
6 changes: 0 additions & 6 deletions packages/grid/x-data-grid/src/locales/csCZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ const csCZGrid: Partial<GridLocaleText> = {
toolbarFiltersTooltipShow: 'Zobrazit filtry',
toolbarFiltersTooltipActive: (count) => {
let pluralForm = 'aktivních filtrů';

if (count > 1 && count < 5) {
pluralForm = 'aktivní filtry';
} else if (count === 1) {
pluralForm = 'aktivní filtr';
}

return `${count} ${pluralForm}`;
},

Expand Down Expand Up @@ -100,13 +98,11 @@ const csCZGrid: Partial<GridLocaleText> = {
// Column header text
columnHeaderFiltersTooltipActive: (count) => {
let pluralForm = 'aktivních filtrů';

if (count > 1 && count < 5) {
pluralForm = 'aktivní filtry';
} else if (count === 1) {
pluralForm = 'aktivní filtr';
}

return `${count} ${pluralForm}`;
},
columnHeaderFiltersLabel: 'Zobrazit filtry',
Expand All @@ -115,13 +111,11 @@ const csCZGrid: Partial<GridLocaleText> = {
// Rows selected footer text
footerRowSelected: (count) => {
let pluralForm = 'vybraných záznamů';

if (count > 1 && count < 5) {
pluralForm = 'vybrané záznamy';
} else if (count === 1) {
pluralForm = 'vybraný záznam';
}

return `${count} ${pluralForm}`;
},

Expand Down
6 changes: 0 additions & 6 deletions packages/grid/x-data-grid/src/locales/ruRU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ const ruRUGrid: Partial<GridLocaleText> = {
toolbarFiltersTooltipActive: (count) => {
let pluralForm = 'активных фильтров';
const lastDigit = count % 10;

if (lastDigit > 1 && lastDigit < 5) {
pluralForm = 'активных фильтра';
} else if (lastDigit === 1) {
pluralForm = 'активный фильтр';
}

return `${count} ${pluralForm}`;
},

Expand Down Expand Up @@ -102,13 +100,11 @@ const ruRUGrid: Partial<GridLocaleText> = {
columnHeaderFiltersTooltipActive: (count) => {
let pluralForm = 'активных фильтров';
const lastDigit = count % 10;

if (lastDigit > 1 && lastDigit < 5) {
pluralForm = 'активных фильтра';
} else if (lastDigit === 1) {
pluralForm = 'активный фильтр';
}

return `${count} ${pluralForm}`;
},
columnHeaderFiltersLabel: 'Показать фильтры',
Expand All @@ -118,13 +114,11 @@ const ruRUGrid: Partial<GridLocaleText> = {
footerRowSelected: (count) => {
let pluralForm = 'строк выбрано';
const lastDigit = count % 10;

if (lastDigit > 1 && lastDigit < 5) {
pluralForm = 'строки выбраны';
} else if (lastDigit === 1) {
pluralForm = 'строка выбрана';
}

return `${count} ${pluralForm}`;
},

Expand Down
6 changes: 0 additions & 6 deletions packages/grid/x-data-grid/src/locales/skSK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ const skSKGrid: Partial<GridLocaleText> = {
toolbarFiltersTooltipShow: 'Zobraziť filtre',
toolbarFiltersTooltipActive: (count) => {
let pluralForm = 'aktívnych filtrov';

if (count > 1 && count < 5) {
pluralForm = 'aktívne filtre';
} else if (count === 1) {
pluralForm = 'aktívny filter';
}

return `${count} ${pluralForm}`;
},

Expand Down Expand Up @@ -100,13 +98,11 @@ const skSKGrid: Partial<GridLocaleText> = {
// Column header text
columnHeaderFiltersTooltipActive: (count) => {
let pluralForm = 'aktívnych filtrov';

if (count > 1 && count < 5) {
pluralForm = 'aktívne filtre';
} else if (count === 1) {
pluralForm = 'aktívny filter';
}

return `${count} ${pluralForm}`;
},
columnHeaderFiltersLabel: 'Zobraziť filtre',
Expand All @@ -115,13 +111,11 @@ const skSKGrid: Partial<GridLocaleText> = {
// Rows selected footer text
footerRowSelected: (count) => {
let pluralForm = 'vybraných záznamov';

if (count > 1 && count < 5) {
pluralForm = 'vybrané záznamy';
} else if (count === 1) {
pluralForm = 'vybraný záznam';
}

return `${count} ${pluralForm}`;
},

Expand Down
2 changes: 1 addition & 1 deletion packages/x-date-pickers-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"directory": "packages/x-date-pickers-pro"
},
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.20.1",
"@date-io/date-fns": "^2.16.0",
"@date-io/dayjs": "^2.16.0",
"@date-io/luxon": "^2.16.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-date-pickers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"directory": "packages/x-date-pickers"
},
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.20.1",
"@date-io/core": "^2.16.0",
"@date-io/date-fns": "^2.16.0",
"@date-io/date-fns-jalali": "^2.16.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-license-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"directory": "packages/x-license-pro"
},
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.20.1",
"@mui/utils": "^5.10.14"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit d5fdc1b

Please sign in to comment.