Skip to content

Commit

Permalink
[docs] Remove default value set to undefined (#12128)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette authored Feb 19, 2024
1 parent dcf4126 commit 0da71c1
Show file tree
Hide file tree
Showing 53 changed files with 35 additions and 76 deletions.
4 changes: 2 additions & 2 deletions docs/pages/x/api/charts/bar-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"grid": {
"type": { "name": "shape", "description": "{ horizontal?: bool, vertical?: bool }" }
},
"height": { "type": { "name": "number" }, "default": "undefined" },
"height": { "type": { "name": "number" } },
"layout": {
"type": { "name": "enum", "description": "'horizontal'<br>&#124;&nbsp;'vertical'" },
"default": "'vertical'"
Expand Down Expand Up @@ -91,7 +91,7 @@
},
"default": "null"
},
"width": { "type": { "name": "number" }, "default": "undefined" },
"width": { "type": { "name": "number" } },
"xAxis": {
"type": {
"name": "arrayOf",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/charts/charts-voronoi-handler.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"describedArgs": ["event", "scatterItemIdentifier"]
}
},
"voronoiMaxRadius": { "type": { "name": "number" }, "default": "undefined" }
"voronoiMaxRadius": { "type": { "name": "number" } }
},
"name": "ChartsVoronoiHandler",
"imports": [
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/charts/gauge-container.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"cy": { "type": { "name": "union", "description": "number<br>&#124;&nbsp;string" } },
"disableAxisListener": { "type": { "name": "bool" }, "default": "false" },
"endAngle": { "type": { "name": "number" }, "default": "360" },
"height": { "type": { "name": "number" }, "default": "undefined" },
"height": { "type": { "name": "number" } },
"innerRadius": {
"type": { "name": "union", "description": "number<br>&#124;&nbsp;string" },
"default": "'80%'"
Expand All @@ -28,7 +28,7 @@
"value": { "type": { "name": "number" } },
"valueMax": { "type": { "name": "number" }, "default": "100" },
"valueMin": { "type": { "name": "number" }, "default": "0" },
"width": { "type": { "name": "number" }, "default": "undefined" }
"width": { "type": { "name": "number" } }
},
"name": "GaugeContainer",
"imports": [
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/charts/gauge.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"cy": { "type": { "name": "union", "description": "number<br>&#124;&nbsp;string" } },
"disableAxisListener": { "type": { "name": "bool" }, "default": "false" },
"endAngle": { "type": { "name": "number" }, "default": "360" },
"height": { "type": { "name": "number" }, "default": "undefined" },
"height": { "type": { "name": "number" } },
"innerRadius": {
"type": { "name": "union", "description": "number<br>&#124;&nbsp;string" },
"default": "'80%'"
Expand All @@ -28,7 +28,7 @@
"value": { "type": { "name": "number" } },
"valueMax": { "type": { "name": "number" }, "default": "100" },
"valueMin": { "type": { "name": "number" }, "default": "0" },
"width": { "type": { "name": "number" }, "default": "undefined" }
"width": { "type": { "name": "number" } }
},
"name": "Gauge",
"imports": [
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/charts/line-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"grid": {
"type": { "name": "shape", "description": "{ horizontal?: bool, vertical?: bool }" }
},
"height": { "type": { "name": "number" }, "default": "undefined" },
"height": { "type": { "name": "number" } },
"leftAxis": {
"type": {
"name": "union",
Expand Down Expand Up @@ -86,7 +86,7 @@
},
"default": "null"
},
"width": { "type": { "name": "number" }, "default": "undefined" },
"width": { "type": { "name": "number" } },
"xAxis": {
"type": {
"name": "arrayOf",
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/charts/pie-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"dataset": { "type": { "name": "arrayOf", "description": "Array&lt;object&gt;" } },
"disableAxisListener": { "type": { "name": "bool" }, "default": "false" },
"height": { "type": { "name": "number" }, "default": "undefined" },
"height": { "type": { "name": "number" } },
"leftAxis": {
"type": {
"name": "union",
Expand Down Expand Up @@ -82,7 +82,7 @@
},
"default": "null"
},
"width": { "type": { "name": "number" }, "default": "undefined" },
"width": { "type": { "name": "number" } },
"xAxis": {
"type": {
"name": "arrayOf",
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/charts/responsive-chart-container.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
},
"dataset": { "type": { "name": "arrayOf", "description": "Array&lt;object&gt;" } },
"disableAxisListener": { "type": { "name": "bool" }, "default": "false" },
"height": { "type": { "name": "number" }, "default": "undefined" },
"height": { "type": { "name": "number" } },
"margin": {
"type": {
"name": "shape",
"description": "{ bottom?: number, left?: number, right?: number, top?: number }"
},
"default": "object Depends on the charts type."
},
"width": { "type": { "name": "number" }, "default": "undefined" },
"width": { "type": { "name": "number" } },
"xAxis": {
"type": {
"name": "arrayOf",
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/x/api/charts/scatter-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"grid": {
"type": { "name": "shape", "description": "{ horizontal?: bool, vertical?: bool }" }
},
"height": { "type": { "name": "number" }, "default": "undefined" },
"height": { "type": { "name": "number" } },
"leftAxis": {
"type": {
"name": "union",
Expand Down Expand Up @@ -82,8 +82,8 @@
},
"default": "null"
},
"voronoiMaxRadius": { "type": { "name": "number" }, "default": "undefined" },
"width": { "type": { "name": "number" }, "default": "undefined" },
"voronoiMaxRadius": { "type": { "name": "number" } },
"width": { "type": { "name": "number" } },
"xAxis": {
"type": {
"name": "arrayOf",
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/charts/spark-line-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dataset": { "type": { "name": "arrayOf", "description": "Array&lt;object&gt;" } },
"disableAxisListener": { "type": { "name": "bool" }, "default": "false" },
"height": { "type": { "name": "number" }, "default": "undefined" },
"height": { "type": { "name": "number" } },
"margin": {
"type": {
"name": "shape",
Expand Down Expand Up @@ -40,7 +40,7 @@
"returned": "string"
}
},
"width": { "type": { "name": "number" }, "default": "undefined" },
"width": { "type": { "name": "number" } },
"xAxis": {
"type": {
"name": "shape",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-calendar.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"disableHighlightToday": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"focusedView": {
"type": {
"name": "enum",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-range-calendar.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"disableHighlightToday": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"focusedView": { "type": { "name": "enum", "description": "'day'" } },
"loading": { "type": { "name": "bool" }, "default": "false" },
"maxDate": { "type": { "name": "object" } },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/date-time-range-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/desktop-date-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/mobile-date-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/mobile-date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"disableOpenPicker": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"format": { "type": { "name": "string" } },
"formatDensity": {
"type": { "name": "enum", "description": "'dense'<br>&#124;&nbsp;'spacious'" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/static-date-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"default": "\"mobile\""
},
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"loading": { "type": { "name": "bool" }, "default": "false" },
"localeText": { "type": { "name": "object" } },
"maxDate": { "type": { "name": "object" } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"default": "\"mobile\""
},
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"loading": { "type": { "name": "bool" }, "default": "false" },
"localeText": { "type": { "name": "object" } },
"maxDate": { "type": { "name": "object" } },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/date-pickers/static-date-time-picker.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"default": "\"mobile\""
},
"displayWeekNumber": { "type": { "name": "bool" } },
"fixedWeekNumber": { "type": { "name": "number" }, "default": "undefined" },
"fixedWeekNumber": { "type": { "name": "number" } },
"loading": { "type": { "name": "bool" }, "default": "false" },
"localeText": { "type": { "name": "object" } },
"maxDate": { "type": { "name": "object" } },
Expand Down
2 changes: 0 additions & 2 deletions packages/x-charts/src/BarChart/BarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ BarChart.propTypes = {
}),
/**
* The height of the chart in px. If not defined, it takes the height of the parent element.
* @default undefined
*/
height: PropTypes.number,
/**
Expand Down Expand Up @@ -474,7 +473,6 @@ BarChart.propTypes = {
}),
/**
* The width of the chart in px. If not defined, it takes the width of the parent element.
* @default undefined
*/
width: PropTypes.number,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export type ChartsVoronoiHandlerProps = {
/**
* Defines the maximal distance between a scatter point and the pointer that triggers the interaction.
* If `undefined`, the radius is assumed to be infinite.
* @default undefined
*/
voronoiMaxRadius?: number | undefined;
/**
Expand Down Expand Up @@ -201,7 +200,6 @@ ChartsVoronoiHandler.propTypes = {
/**
* Defines the maximal distance between a scatter point and the pointer that triggers the interaction.
* If `undefined`, the radius is assumed to be infinite.
* @default undefined
*/
voronoiMaxRadius: PropTypes.number,
} as any;
Expand Down
2 changes: 0 additions & 2 deletions packages/x-charts/src/Gauge/Gauge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ Gauge.propTypes = {
endAngle: PropTypes.number,
/**
* The height of the chart in px. If not defined, it takes the height of the parent element.
* @default undefined
*/
height: PropTypes.number,
/**
Expand Down Expand Up @@ -142,7 +141,6 @@ Gauge.propTypes = {
}),
/**
* The width of the chart in px. If not defined, it takes the width of the parent element.
* @default undefined
*/
width: PropTypes.number,
} as any;
Expand Down
4 changes: 0 additions & 4 deletions packages/x-charts/src/Gauge/GaugeContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ export interface GaugeContainerProps
Omit<GaugeProviderProps, 'children'> {
/**
* The width of the chart in px. If not defined, it takes the width of the parent element.
* @default undefined
*/
width?: number;
/**
* The height of the chart in px. If not defined, it takes the height of the parent element.
* @default undefined
*/
height?: number;
children?: React.ReactNode;
Expand Down Expand Up @@ -157,7 +155,6 @@ GaugeContainer.propTypes = {
endAngle: PropTypes.number,
/**
* The height of the chart in px. If not defined, it takes the height of the parent element.
* @default undefined
*/
height: PropTypes.number,
/**
Expand Down Expand Up @@ -220,7 +217,6 @@ GaugeContainer.propTypes = {
}),
/**
* The width of the chart in px. If not defined, it takes the width of the parent element.
* @default undefined
*/
width: PropTypes.number,
} as any;
Expand Down
Loading

0 comments on commit 0da71c1

Please sign in to comment.