From 79c36f75cac0e04b868eee2fb261408d31b3872a Mon Sep 17 00:00:00 2001 From: Zeeshan T Date: Tue, 20 Apr 2021 23:03:25 +0530 Subject: [PATCH 1/2] fix: docs typos --- docs/pages/api-docs/data-grid.md | 4 ++-- docs/pages/api-docs/x-grid.md | 4 ++-- docs/src/pages/components/data-grid/overview/overview.md | 2 +- packages/grid/_modules_/grid/GridComponentProps.ts | 2 +- packages/grid/_modules_/grid/models/api/gridComponentsApi.ts | 2 +- .../grid/_modules_/grid/models/gridSlotsComponentsProps.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/pages/api-docs/data-grid.md b/docs/pages/api-docs/data-grid.md index 1dfb54b71c761..91ec3b187aad9 100644 --- a/docs/pages/api-docs/data-grid.md +++ b/docs/pages/api-docs/data-grid.md @@ -18,11 +18,11 @@ import { DataGrid } from '@material-ui/data-grid'; | autoHeight | boolean | false | If `true`, the grid height is dynamic and follow the number of rows in the grid. | | autoPageSize | boolean | false | If `true`, the pageSize is calculated according to the container size and the max number of rows to avoid rendering a vertical scroll bar. | | checkboxSelection | boolean | false | If `true`, the grid get a first column with a checkbox that allows to select rows. | -| className | string | | Css classname to add on the outer container. | +| className | string | | CSS classname to add on the outer container. | | columnBuffer | number | 2 | Number of columns rendered outside the grid viewport. | | columnTypes | GridColumnTypesRecord | | Extend native column types with your new column types. | | components | GridSlotsComponent | | Overrideable components. | -| componentsProps | GridSlotsComponentProps | | Overrideable components props dynamic passed to the component at rendering. | +| componentsProps | GridSlotsComponentsProps | | Overrideable components props dynamically passed to the component at rendering. | | density | Density | standard | Sets the density of the grid. | | disableColumnMenu | boolean | false | If `true`, the column menu is disabled. | | disableColumnSelector | boolean | false | If `true`, the column selector is disabled. | diff --git a/docs/pages/api-docs/x-grid.md b/docs/pages/api-docs/x-grid.md index 69e55b07ced08..56d6c2cd76599 100644 --- a/docs/pages/api-docs/x-grid.md +++ b/docs/pages/api-docs/x-grid.md @@ -19,11 +19,11 @@ import { XGrid } from '@material-ui/x-grid'; | autoHeight | boolean | false | If `true`, the grid height is dynamic and follow the number of rows in the grid. | | autoPageSize | boolean | false | If `true`, the pageSize is calculated according to the container size and the max number of rows to avoid rendering a vertical scroll bar. | | checkboxSelection | boolean | false | If `true`, the grid get a first column with a checkbox that allows to select rows. | -| className | string | | Css classname to add on the outer container. | +| className | string | | CSS classname to add on the outer container. | | columnBuffer | number | 2 | Number of columns rendered outside the grid viewport. | | columnTypes | GridColumnTypesRecord | | Extend native column types with your new column types. | | components | GridSlotsComponent | | Overrideable components slots. | -| componentsProps | GridSlotsComponentProps | | Overrideable components props dynamic passed to the component at rendering. | +| componentsProps | GridSlotsComponentsProps | | Overrideable components props dynamically passed to the component at rendering. | | density | Density | standard | Sets the density of the grid. | | disableColumnMenu | boolean | false | If `true`, the column menu is disabled. | | disableColumnSelector | boolean | false | If `true`, the column selector is disabled. | diff --git a/docs/src/pages/components/data-grid/overview/overview.md b/docs/src/pages/components/data-grid/overview/overview.md index 2a0b2bb61c9c2..7286523e99192 100644 --- a/docs/src/pages/components/data-grid/overview/overview.md +++ b/docs/src/pages/components/data-grid/overview/overview.md @@ -66,7 +66,7 @@ We provide three options: - Built with and exclusively for React ⚛️ - High performance 🚀 -- Lightweight; less than [30 kB](https://bundlephobia.com/result?p=@material-ui/data-grid) gzipped with as few dependencies as possible. +- Lightweight; less than [55 kB](https://bundlephobia.com/result?p=@material-ui/data-grid) gzipped with as few dependencies as possible. - [Filtering](/components/data-grid/filtering/) and [multi-filtering](/components/data-grid/filtering/#multi-column-filtering) - [Pagination](/components/data-grid/pagination/) - [Sorting](/components/data-grid/sorting) and [multi-sort](/components/data-grid/sorting/#multi-column-sorting) diff --git a/packages/grid/_modules_/grid/GridComponentProps.ts b/packages/grid/_modules_/grid/GridComponentProps.ts index 1a5c61c206826..fdeafda7b3769 100644 --- a/packages/grid/_modules_/grid/GridComponentProps.ts +++ b/packages/grid/_modules_/grid/GridComponentProps.ts @@ -29,7 +29,7 @@ export interface GridComponentProps extends GridOptionsProp { */ components?: GridSlotsComponent; /** - * Overrideable components props dynamic passed to the component at rendering. + * Overrideable components props dynamically passed to the component at rendering. */ componentsProps?: GridSlotsComponentsProps; /** diff --git a/packages/grid/_modules_/grid/models/api/gridComponentsApi.ts b/packages/grid/_modules_/grid/models/api/gridComponentsApi.ts index 0d531eb548275..9f2e8352d2f7f 100644 --- a/packages/grid/_modules_/grid/models/api/gridComponentsApi.ts +++ b/packages/grid/_modules_/grid/models/api/gridComponentsApi.ts @@ -60,7 +60,7 @@ export interface GridComponentsApi { */ components: GridApiRefComponentsProperty; /** - * Overrideable components props dynamic passed to the component at rendering. + * Overrideable components props dynamically passed to the component at rendering. */ componentsProps?: GridSlotsComponentsProps; } diff --git a/packages/grid/_modules_/grid/models/gridSlotsComponentsProps.ts b/packages/grid/_modules_/grid/models/gridSlotsComponentsProps.ts index beb4e7f59a003..581086b86f3e2 100644 --- a/packages/grid/_modules_/grid/models/gridSlotsComponentsProps.ts +++ b/packages/grid/_modules_/grid/models/gridSlotsComponentsProps.ts @@ -1,5 +1,5 @@ /** - * Overrideable components props dynamic passed to the component at rendering. + * Overrideable components props dynamically passed to the component at rendering. */ export interface GridSlotsComponentsProps { columnMenu?: any; From 1fbbb9b3f79e8a74834e80dc7c7daa5da5acd6c8 Mon Sep 17 00:00:00 2001 From: Zeeshan Tamboli Date: Wed, 21 Apr 2021 06:46:18 +0530 Subject: [PATCH 2/2] Update docs/src/pages/components/data-grid/overview/overview.md Co-authored-by: Olivier Tassinari --- docs/src/pages/components/data-grid/overview/overview.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/src/pages/components/data-grid/overview/overview.md b/docs/src/pages/components/data-grid/overview/overview.md index 7286523e99192..9204bb6fe6951 100644 --- a/docs/src/pages/components/data-grid/overview/overview.md +++ b/docs/src/pages/components/data-grid/overview/overview.md @@ -66,7 +66,6 @@ We provide three options: - Built with and exclusively for React ⚛️ - High performance 🚀 -- Lightweight; less than [55 kB](https://bundlephobia.com/result?p=@material-ui/data-grid) gzipped with as few dependencies as possible. - [Filtering](/components/data-grid/filtering/) and [multi-filtering](/components/data-grid/filtering/#multi-column-filtering) - [Pagination](/components/data-grid/pagination/) - [Sorting](/components/data-grid/sorting) and [multi-sort](/components/data-grid/sorting/#multi-column-sorting)