Skip to content

Commit

Permalink
[charts-pro] Avoid relative reference to @mui/x-charts package (#14335
Browse files Browse the repository at this point in the history
)

Co-authored-by: alex <alex.fauquette@gmail.com>
  • Loading branch information
LukasTy and alexfauquette authored Aug 26, 2024
1 parent 7c1c274 commit 377d5a0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
"packages/x-date-pickers",
"packages/x-date-pickers-pro",
"packages/x-charts",
"packages/x-charts-pro",
"packages/x-charts-vendor",
"packages/x-tree-view",
"packages/x-tree-view-pro",
"packages/x-internals"
],
"publishDirectory": {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/charts/charts-surface.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
},
"name": "ChartsSurface",
"imports": [
"import { ChartsSurface } from '/packages/x-charts/src/ChartsSurface.tsx';",
"import { ChartsSurface } from '@mui/x-charts/ChartsSurface';",
"import { ChartsSurface } from '@mui/x-charts';",
"import { ChartsSurface } from '@mui/x-charts-pro';"
],
"classes": [],
"muiName": "MuiChartsSurface",
"filename": "/packages/x-charts/src/ChartsSurface.tsx",
"filename": "/packages/x-charts/src/ChartsSurface/ChartsSurface.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/x/react-charts/components/\">Charts - Custom components</a></li></ul>",
"cssComponent": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import {
ZoomAxisFilters,
GetZoomAxisFilters,
isDefined,
getScale,
} from '@mui/x-charts/internals';
import { ChartsAxisProps, ScaleName, AxisConfig } from '@mui/x-charts';
import { ZoomData } from '../ZoomProvider';
import { getScale } from '../../../../x-charts/src/internals/getScale';

type CreateAxisFilterMapperParams = {
zoomData: ZoomData[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled, SxProps, Theme } from '@mui/material/styles';
import PropTypes from 'prop-types';
import * as React from 'react';
import { useAxisEvents } from './hooks/useAxisEvents';
import { useAxisEvents } from '../hooks/useAxisEvents';

type ViewBox = {
x?: number;
Expand Down
1 change: 1 addition & 0 deletions packages/x-charts/src/ChartsSurface/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './ChartsSurface';
File renamed without changes.
1 change: 1 addition & 0 deletions packages/x-charts/src/internals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export * from './getLabel';
export * from './getSVGPoint';
export * from './isDefined';
export { unstable_cleanupDOM } from './domUtils';
export * from './getScale';

// contexts

Expand Down

0 comments on commit 377d5a0

Please sign in to comment.