-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00c0b2b
commit 942840a
Showing
26 changed files
with
343 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from 'react'; | ||
import ApiPage from 'docs/src/modules/components/ApiPage'; | ||
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; | ||
import jsonPageContent from './heatmap-tooltip.json'; | ||
|
||
export default function Page(props) { | ||
const { descriptions, pageContent } = props; | ||
return <ApiPage descriptions={descriptions} pageContent={pageContent} />; | ||
} | ||
|
||
Page.getInitialProps = () => { | ||
const req = require.context( | ||
'docsx/translations/api-docs/charts/heatmap-tooltip', | ||
false, | ||
/\.\/heatmap-tooltip.*.json$/, | ||
); | ||
const descriptions = mapApiPageTranslations(req); | ||
|
||
return { | ||
descriptions, | ||
pageContent: jsonPageContent, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
{ | ||
"props": { | ||
"anchorEl": { | ||
"type": { | ||
"name": "union", | ||
"description": "(props, propName) => {\n if (props[propName] == null) {\n return new Error(`Prop '${propName}' is required but wasn't specified`);\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n}<br>| func<br>| { contextElement?: (props, propName) => {\n if (props[propName] == null) {\n return null;\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n}, getBoundingClientRect: func }" | ||
} | ||
}, | ||
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } }, | ||
"component": { "type": { "name": "elementType" } }, | ||
"components": { | ||
"type": { "name": "shape", "description": "{ Root?: elementType }" }, | ||
"default": "{}" | ||
}, | ||
"componentsProps": { | ||
"type": { "name": "shape", "description": "{ root?: func<br>| object }" }, | ||
"default": "{}" | ||
}, | ||
"container": { | ||
"type": { | ||
"name": "union", | ||
"description": "(props, propName) => {\n if (props[propName] == null) {\n return new Error(`Prop '${propName}' is required but wasn't specified`);\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n}<br>| func" | ||
} | ||
}, | ||
"disablePortal": { "type": { "name": "bool" }, "default": "false" }, | ||
"keepMounted": { "type": { "name": "bool" }, "default": "false" }, | ||
"modifiers": { | ||
"type": { | ||
"name": "arrayOf", | ||
"description": "Array<{ data?: object, effect?: func, enabled?: bool, fn?: func, name?: any, options?: object, phase?: 'afterMain'<br>| 'afterRead'<br>| 'afterWrite'<br>| 'beforeMain'<br>| 'beforeRead'<br>| 'beforeWrite'<br>| 'main'<br>| 'read'<br>| 'write', requires?: Array<string>, requiresIfExists?: Array<string> }>" | ||
} | ||
}, | ||
"open": { "type": { "name": "bool" } }, | ||
"placement": { | ||
"type": { | ||
"name": "enum", | ||
"description": "'auto-end'<br>| 'auto-start'<br>| 'auto'<br>| 'bottom-end'<br>| 'bottom-start'<br>| 'bottom'<br>| 'left-end'<br>| 'left-start'<br>| 'left'<br>| 'right-end'<br>| 'right-start'<br>| 'right'<br>| 'top-end'<br>| 'top-start'<br>| 'top'" | ||
}, | ||
"default": "'bottom'" | ||
}, | ||
"popperOptions": { | ||
"type": { | ||
"name": "shape", | ||
"description": "{ modifiers?: array, onFirstUpdate?: func, placement?: 'auto-end'<br>| 'auto-start'<br>| 'auto'<br>| 'bottom-end'<br>| 'bottom-start'<br>| 'bottom'<br>| 'left-end'<br>| 'left-start'<br>| 'left'<br>| 'right-end'<br>| 'right-start'<br>| 'right'<br>| 'top-end'<br>| 'top-start'<br>| 'top', strategy?: 'absolute'<br>| 'fixed' }" | ||
}, | ||
"default": "{}" | ||
}, | ||
"popperRef": { | ||
"type": { | ||
"name": "union", | ||
"description": "func<br>| { current?: { destroy: func, forceUpdate: func, setOptions: func, state: { attributes: object, elements: object, modifiersData: object, options: object, orderedModifiers: Array<object>, placement: 'auto-end'<br>| 'auto-start'<br>| 'auto'<br>| 'bottom-end'<br>| 'bottom-start'<br>| 'bottom'<br>| 'left-end'<br>| 'left-start'<br>| 'left'<br>| 'right-end'<br>| 'right-start'<br>| 'right'<br>| 'top-end'<br>| 'top-start'<br>| 'top', rects: object, reset: bool, scrollParents: object, strategy: 'absolute'<br>| 'fixed', styles: object }, update: func } }" | ||
} | ||
}, | ||
"slotProps": { "type": { "name": "object" }, "default": "{}" }, | ||
"slots": { | ||
"type": { "name": "object" }, | ||
"default": "{}", | ||
"additionalInfo": { "slotsApi": true } | ||
}, | ||
"sx": { | ||
"type": { | ||
"name": "union", | ||
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object" | ||
}, | ||
"additionalInfo": { "sx": true } | ||
}, | ||
"transition": { "type": { "name": "bool" }, "default": "false" } | ||
}, | ||
"name": "HeatmapTooltip", | ||
"imports": [ | ||
"import { HeatmapTooltip } from '@mui/x-charts-pro/Heatmap';", | ||
"import { HeatmapTooltip } from '@mui/x-charts-pro';" | ||
], | ||
"classes": [ | ||
{ | ||
"key": "cell", | ||
"className": "MuiHeatmapTooltip-cell", | ||
"description": "Styles applied to the cell element.", | ||
"isGlobal": false | ||
}, | ||
{ | ||
"key": "labelCell", | ||
"className": "MuiHeatmapTooltip-labelCell", | ||
"description": "Styles applied to the labelCell element.", | ||
"isGlobal": false | ||
}, | ||
{ | ||
"key": "mark", | ||
"className": "MuiHeatmapTooltip-mark", | ||
"description": "Styles applied to the mark element.", | ||
"isGlobal": false | ||
}, | ||
{ | ||
"key": "markCell", | ||
"className": "MuiHeatmapTooltip-markCell", | ||
"description": "Styles applied to the markCell element.", | ||
"isGlobal": false | ||
}, | ||
{ | ||
"key": "paper", | ||
"className": "MuiHeatmapTooltip-paper", | ||
"description": "Styles applied to the paper element.", | ||
"isGlobal": false | ||
}, | ||
{ | ||
"key": "root", | ||
"className": "MuiHeatmapTooltip-root", | ||
"description": "Styles applied to the root element.", | ||
"isGlobal": false | ||
}, | ||
{ | ||
"key": "row", | ||
"className": "MuiHeatmapTooltip-row", | ||
"description": "Styles applied to the row element.", | ||
"isGlobal": false | ||
}, | ||
{ | ||
"key": "table", | ||
"className": "MuiHeatmapTooltip-table", | ||
"description": "Styles applied to the table element.", | ||
"isGlobal": false | ||
}, | ||
{ | ||
"key": "valueCell", | ||
"className": "MuiHeatmapTooltip-valueCell", | ||
"description": "Styles applied to the valueCell element.", | ||
"isGlobal": false | ||
} | ||
], | ||
"muiName": "MuiHeatmapTooltip", | ||
"filename": "/packages/x-charts-pro/src/Heatmap/HeatmapTooltip.tsx", | ||
"inheritance": null, | ||
"demos": "<ul><li><a href=\"/x/react-charts/heatmap/\">Charts - Heatmap <a href=\"/x/introduction/licensing/#pro-plan\" title=\"Pro plan\"><span class=\"plan-pro\"></span></a></a></li></ul>", | ||
"cssComponent": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.