Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(demo/pages/docs): use relative imports to fix API docs #1612

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions packages/visx-demo/src/pages/docs/annotation.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import AnnotationReadme from '!!raw-loader!../../../../visx-annotation/Readme.md';
import Annotation from '@visx/annotation/src/components/Annotation';
import EditableAnnotation from '@visx/annotation/src/components/EditableAnnotation';
import CircleSubject from '@visx/annotation/src/components/CircleSubject';
import LineSubject from '@visx/annotation/src/components/LineSubject';
import Connector from '@visx/annotation/src/components/Connector';
import Label from '@visx/annotation/src/components/Label';
import HtmlLabel from '@visx/annotation/src/components/HtmlLabel';
import LinePathAnnotationDeprecated from '@visx/annotation/src/deprecated/LinePathAnnotation';
import Annotation from '../../../../visx-annotation/src/components/Annotation';
import EditableAnnotation from '../../../../visx-annotation/src/components/EditableAnnotation';
import CircleSubject from '../../../../visx-annotation/src/components/CircleSubject';
import LineSubject from '../../../../visx-annotation/src/components/LineSubject';
import Connector from '../../../../visx-annotation/src/components/Connector';
import Label from '../../../../visx-annotation/src/components/Label';
import HtmlLabel from '../../../../visx-annotation/src/components/HtmlLabel';
import LinePathAnnotationDeprecated from '../../../../visx-annotation/src/deprecated/LinePathAnnotation';
import DocPage from '../../components/DocPage';
import AnnotationTile from '../../components/Gallery/AnnotationTile';

Expand Down
10 changes: 5 additions & 5 deletions packages/visx-demo/src/pages/docs/axis.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import AxisReadme from '!!raw-loader!../../../../visx-axis/Readme.md';
import Axis from '@visx/axis/src/axis/Axis';
import AxisBottom from '@visx/axis/src/axis/AxisBottom';
import AxisLeft from '@visx/axis/src/axis/AxisLeft';
import AxisRight from '@visx/axis/src/axis/AxisRight';
import AxisTop from '@visx/axis/src/axis/AxisTop';
import Axis from '../../../../visx-axis/src/axis/Axis';
import AxisBottom from '../../../../visx-axis/src/axis/AxisBottom';
import AxisLeft from '../../../../visx-axis/src/axis/AxisLeft';
import AxisRight from '../../../../visx-axis/src/axis/AxisRight';
import AxisTop from '../../../../visx-axis/src/axis/AxisTop';
import DocPage from '../../components/DocPage';
import AxisTile from '../../components/Gallery/AxisTile';
import BarStackTile from '../../components/Gallery/BarStackTile';
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/brush.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import BrushReadme from '!!raw-loader!../../../../visx-brush/Readme.md';
import Brush from '@visx/brush/src/Brush';
import Brush from '../../../../visx-brush/src/Brush';
import DocPage from '../../components/DocPage';
import BrushTile from '../../components/Gallery/BrushTile';

Expand Down
4 changes: 2 additions & 2 deletions packages/visx-demo/src/pages/docs/chord.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ChordReadme from '!!raw-loader!../../../../visx-chord/Readme.md';
import Chord from '@visx/chord/src/Chord';
import Ribbon from '@visx/chord/src/Ribbon';
import Chord from '../../../../visx-chord/src/Chord';
import Ribbon from '../../../../visx-chord/src/Ribbon';
import DocPage from '../../components/DocPage';
import ChordTile from '../../components/Gallery/ChordTile';

Expand Down
6 changes: 3 additions & 3 deletions packages/visx-demo/src/pages/docs/clip-path.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import ClipPathReadme from '!!raw-loader!../../../../visx-clip-path/Readme.md';
import ClipPath from '@visx/clip-path/src/clip-paths/ClipPath';
import CircleClipPath from '@visx/clip-path/src/clip-paths/CircleClipPath';
import RectClipPath from '@visx/clip-path/src/clip-paths/RectClipPath';
import ClipPath from '../../../../visx-clip-path/src/clip-paths/ClipPath';
import CircleClipPath from '../../../../visx-clip-path/src/clip-paths/CircleClipPath';
import RectClipPath from '../../../../visx-clip-path/src/clip-paths/RectClipPath';
import DocPage from '../../components/DocPage';

const components = [ClipPath, CircleClipPath, RectClipPath];
Expand Down
4 changes: 2 additions & 2 deletions packages/visx-demo/src/pages/docs/drag.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import DragReadme from '!!raw-loader!../../../../visx-drag/Readme.md';
import Drag from '@visx/drag/src/Drag';
import useDrag from '@visx/drag/src/useDrag';
import Drag from '../../../../visx-drag/src/Drag';
import useDrag from '../../../../visx-drag/src/useDrag';
import DocPage from '../../components/DocPage';
import DragITile from '../../components/Gallery/DragITile';
import DragIITile from '../../components/Gallery/DragIITile';
Expand Down
18 changes: 9 additions & 9 deletions packages/visx-demo/src/pages/docs/geo.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import GeoReadme from '!!raw-loader!../../../../visx-geo/Readme.md';
import Graticule from '@visx/geo/src/graticule/Graticule';
import Albers from '@visx/geo/src/projections/Albers';
import AlbersUsa from '@visx/geo/src/projections/AlbersUsa';
import CustomProjection from '@visx/geo/src/projections/CustomProjection';
import EqualEarth from '@visx/geo/src/projections/EqualEarth';
import Mercator from '@visx/geo/src/projections/Mercator';
import NaturalEarth from '@visx/geo/src/projections/NaturalEarth';
import Orthographic from '@visx/geo/src/projections/Orthographic';
import Projection from '@visx/geo/src/projections/Projection';
import Graticule from '../../../../visx-geo/src/graticule/Graticule';
import Albers from '../../../../visx-geo/src/projections/Albers';
import AlbersUsa from '../../../../visx-geo/src/projections/AlbersUsa';
import CustomProjection from '../../../../visx-geo/src/projections/CustomProjection';
import EqualEarth from '../../../../visx-geo/src/projections/EqualEarth';
import Mercator from '../../../../visx-geo/src/projections/Mercator';
import NaturalEarth from '../../../../visx-geo/src/projections/NaturalEarth';
import Orthographic from '../../../../visx-geo/src/projections/Orthographic';
import Projection from '../../../../visx-geo/src/projections/Projection';
import DocPage from '../../components/DocPage';
import GeoMercatorTile from '../../components/Gallery/GeoMercatorTile';
import GeoCustomTile from '../../components/Gallery/GeoCustomTile';
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/glyph.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import GlyphReadme from '!!raw-loader!../../../../visx-glyph/Readme.md';
import * as Glyph from '@visx/glyph';
import * as Glyph from '../../../../visx-glyph';
import DocPage from '../../components/DocPage';
import GlyphsTile from '../../components/Gallery/GlyphsTile';
import LegendsTile from '../../components/Gallery/LegendsTile';
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/gradient.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import GradientReadme from '!!raw-loader!../../../../visx-gradient/Readme.md';
import * as Gradients from '@visx/gradient';
import * as Gradients from '../../../../visx-gradient';
import DocPage from '../../components/DocPage';
import GradientsTile from '../../components/Gallery/GradientsTile';
import AreaTile from '../../components/Gallery/AreaTile';
Expand Down
12 changes: 6 additions & 6 deletions packages/visx-demo/src/pages/docs/grid.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import GridReadme from '!!raw-loader!../../../../visx-grid/Readme.md';
import Grid from '@visx/grid/src/grids/Grid';
import GridRows from '@visx/grid/src/grids/GridRows';
import GridColumns from '@visx/grid/src/grids/GridColumns';
import GridRadial from '@visx/grid/src/grids/GridRadial';
import GridAngle from '@visx/grid/src/grids/GridAngle';
import GridPolar from '@visx/grid/src/grids/GridPolar';
import Grid from '../../../../visx-grid/src/grids/Grid';
import GridRows from '../../../../visx-grid/src/grids/GridRows';
import GridColumns from '../../../../visx-grid/src/grids/GridColumns';
import GridRadial from '../../../../visx-grid/src/grids/GridRadial';
import GridAngle from '../../../../visx-grid/src/grids/GridAngle';
import GridPolar from '../../../../visx-grid/src/grids/GridPolar';
import DocPage from '../../components/DocPage';
import AxisTile from '../../components/Gallery/AxisTile';
import BarStackTile from '../../components/Gallery/BarStackTile';
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/group.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import GroupReadme from '!!raw-loader!../../../../visx-group/Readme.md';
import Group from '@visx/group/src/Group';
import Group from '../../../../visx-group/src/Group';
import DocPage from '../../components/DocPage';
import PatternsTile from '../../components/Gallery/PatternsTile';
import RadarTile from '../../components/Gallery/RadarTile';
Expand Down
4 changes: 2 additions & 2 deletions packages/visx-demo/src/pages/docs/heatmap.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import HeatmapReadme from '!!raw-loader!../../../../visx-heatmap/Readme.md';
import HeatmapRect from '@visx/heatmap/src/heatmaps/HeatmapRect';
import HeatmapCircle from '@visx/heatmap/src/heatmaps/HeatmapCircle';
import HeatmapRect from '../../../../visx-heatmap/src/heatmaps/HeatmapRect';
import HeatmapCircle from '../../../../visx-heatmap/src/heatmaps/HeatmapCircle';
import DocPage from '../../components/DocPage';
import HeatmapsTile from '../../components/Gallery/HeatmapsTile';

Expand Down
10 changes: 5 additions & 5 deletions packages/visx-demo/src/pages/docs/hierarchy.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import HierarchyReadme from '!!raw-loader!../../../../visx-hierarchy/Readme.md';
import Cluster from '@visx/hierarchy/src/hierarchies/Cluster';
import Pack from '@visx/hierarchy/src/hierarchies/Pack';
import Partition from '@visx/hierarchy/src/hierarchies/Partition';
import Tree from '@visx/hierarchy/src/hierarchies/Tree';
import Treemap from '@visx/hierarchy/src/hierarchies/Treemap';
import Cluster from '../../../../visx-hierarchy/src/hierarchies/Cluster';
import Pack from '../../../../visx-hierarchy/src/hierarchies/Pack';
import Partition from '../../../../visx-hierarchy/src/hierarchies/Partition';
import Tree from '../../../../visx-hierarchy/src/hierarchies/Tree';
import Treemap from '../../../../visx-hierarchy/src/hierarchies/Treemap';
import DocPage from '../../components/DocPage';
import PackTile from '../../components/Gallery/PackTile';
import TreemapTile from '../../components/Gallery/TreemapTile';
Expand Down
12 changes: 6 additions & 6 deletions packages/visx-demo/src/pages/docs/legend.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import LegendReadme from '!!raw-loader!../../../../visx-legend/Readme.md';
import Legend from '@visx/legend/src/legends/Legend';
import Linear from '@visx/legend/src/legends/Linear';
import Ordinal from '@visx/legend/src/legends/Ordinal';
import Quantile from '@visx/legend/src/legends/Quantile';
import Size from '@visx/legend/src/legends/Size';
import Threshold from '@visx/legend/src/legends/Threshold';
import Legend from '../../../../visx-legend/src/legends/Legend';
import Linear from '../../../../visx-legend/src/legends/Linear';
import Ordinal from '../../../../visx-legend/src/legends/Ordinal';
import Quantile from '../../../../visx-legend/src/legends/Quantile';
import Size from '../../../../visx-legend/src/legends/Size';
import Threshold from '../../../../visx-legend/src/legends/Threshold';
import DocPage from '../../components/DocPage';
import LegendsTile from '../../components/Gallery/LegendsTile';

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/marker.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import MarkerReadme from '!!raw-loader!../../../../visx-marker/Readme.md';
import Marker from '@visx/marker/src/markers/Marker';
import Marker from '../../../../visx-marker/src/markers/Marker';
import DocPage from '../../components/DocPage';

const components = [Marker];
Expand Down
10 changes: 5 additions & 5 deletions packages/visx-demo/src/pages/docs/network.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import NetworkReadme from '!!raw-loader!../../../../visx-network/Readme.md';
import Graph from '@visx/network/src/Graph';
import Nodes from '@visx/network/src/Nodes';
import Links from '@visx/network/src/Links';
import DefaultNode from '@visx/network/src/DefaultNode';
import DefaultLink from '@visx/network/src/DefaultLink';
import Graph from '../../../../visx-network/src/Graph';
import Nodes from '../../../../visx-network/src/Nodes';
import Links from '../../../../visx-network/src/Links';
import DefaultNode from '../../../../visx-network/src/DefaultNode';
import DefaultLink from '../../../../visx-network/src/DefaultLink';
import DocPage from '../../components/DocPage';
import NetworkTile from '../../components/Gallery/NetworkTile';

Expand Down
12 changes: 6 additions & 6 deletions packages/visx-demo/src/pages/docs/pattern.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import PatternReadme from '!!raw-loader!../../../../visx-pattern/Readme.md';
import Circles from '@visx/pattern/src/patterns/Circles';
import Hexagons from '@visx/pattern/src/patterns/Hexagons';
import Lines from '@visx/pattern/src/patterns/Lines';
import Path from '@visx/pattern/src/patterns/Path';
import Pattern from '@visx/pattern/src/patterns/Pattern';
import Waves from '@visx/pattern/src/patterns/Waves';
import Circles from '../../../../visx-pattern/src/patterns/Circles';
import Hexagons from '../../../../visx-pattern/src/patterns/Hexagons';
import Lines from '../../../../visx-pattern/src/patterns/Lines';
import Path from '../../../../visx-pattern/src/patterns/Path';
import Pattern from '../../../../visx-pattern/src/patterns/Pattern';
import Waves from '../../../../visx-pattern/src/patterns/Waves';
import DocPage from '../../components/DocPage';
import PatternsTile from '../../components/Gallery/PatternsTile';
import StreamGraphTile from '../../components/Gallery/StreamGraphTile';
Expand Down
6 changes: 3 additions & 3 deletions packages/visx-demo/src/pages/docs/react-spring.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import ReactSpringReadme from '!!raw-loader!../../../../visx-react-spring/README.md';
import AnimatedAxis from '@visx/react-spring/src/axis/AnimatedAxis';
import AnimatedGridColumns from '@visx/react-spring/src/grid/AnimatedGridColumns';
import AnimatedGridRows from '@visx/react-spring/src/grid/AnimatedGridRows';
import AnimatedAxis from '../../../../visx-react-spring/src/axis/AnimatedAxis';
import AnimatedGridColumns from '../../../../visx-react-spring/src/grid/AnimatedGridColumns';
import AnimatedGridRows from '../../../../visx-react-spring/src/grid/AnimatedGridRows';
import DocPage from '../../components/DocPage';
import AxisTile from '../../components/Gallery/AxisTile';

Expand Down
4 changes: 2 additions & 2 deletions packages/visx-demo/src/pages/docs/responsive.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ResponsiveReadme from '!!raw-loader!../../../../visx-responsive/Readme.md';
import ParentSize from '@visx/responsive/src/components/ParentSize';
import ScaleSVG from '@visx/responsive/src/components/ScaleSVG';
import ParentSize from '../../../../visx-responsive/src/components/ParentSize';
import ScaleSVG from '../../../../visx-responsive/src/components/ScaleSVG';
import DocPage from '../../components/DocPage';
import ResponsiveTile from '../../components/Gallery/ResponsiveTile';

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/shape.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ShapeReadme from '!!raw-loader!../../../../visx-shape/Readme.md';
import * as Shapes from '@visx/shape';
import * as Shapes from '../../../../visx-shape';
import DocPage from '../../components/DocPage';
import LineRadialTile from '../../components/Gallery/LineRadialTile';
import PiesTile from '../../components/Gallery/PiesTile';
Expand Down
4 changes: 2 additions & 2 deletions packages/visx-demo/src/pages/docs/stats.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import StatsReadme from '!!raw-loader!../../../../visx-stats/Readme.md';
import BoxPlot from '@visx/stats/src/BoxPlot';
import ViolinPlot from '@visx/stats/src/ViolinPlot';
import BoxPlot from '../../../../visx-stats/src/BoxPlot';
import ViolinPlot from '../../../../visx-stats/src/ViolinPlot';
import DocPage from '../../components/DocPage';
import StatsPlotTile from '../../components/Gallery/StatsPlotTile';

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/text.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import TextReadme from '!!raw-loader!../../../../visx-text/Readme.md';
import Text from '@visx/text/src/Text';
import Text from '../../../../visx-text/src/Text';
import DocPage from '../../components/DocPage';
import TextTile from '../../components/Gallery/TextTile';

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/threshold.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ThresholdReadme from '!!raw-loader!../../../../visx-threshold/Readme.md';
import Threshold from '@visx/threshold/src/Threshold';
import Threshold from '../../../../visx-threshold/src/Threshold';
import DocPage from '../../components/DocPage';
import ThresholdTile from '../../components/Gallery/ThresholdTile';

Expand Down
10 changes: 5 additions & 5 deletions packages/visx-demo/src/pages/docs/tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import TooltipReadme from '!!raw-loader!../../../../visx-tooltip/Readme.md';
import Tooltip from '@visx/tooltip/src/tooltips/Tooltip';
import TooltipWithBounds from '@visx/tooltip/src/tooltips/TooltipWithBounds';
import useTooltip from '@visx/tooltip/src/hooks/useTooltip';
import useTooltipInPortal from '@visx/tooltip/src/hooks/useTooltipInPortal';
import Portal from '@visx/tooltip/src/Portal';
import Tooltip from '../../../../visx-tooltip/src/tooltips/Tooltip';
import TooltipWithBounds from '../../../../visx-tooltip/src/tooltips/TooltipWithBounds';
import useTooltip from '../../../../visx-tooltip/src/hooks/useTooltip';
import useTooltipInPortal from '../../../../visx-tooltip/src/hooks/useTooltipInPortal';
import Portal from '../../../../visx-tooltip/src/Portal';

import DocPage from '../../components/DocPage';
import TooltipTile from '../../components/Gallery/TooltipTile';
Expand Down
4 changes: 2 additions & 2 deletions packages/visx-demo/src/pages/docs/voronoi.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import VoronoiReadme from '!!raw-loader!../../../../visx-voronoi/Readme.md';
import VoronoiPolygon from '@visx/voronoi/src/components/VoronoiPolygon';
import voronoi from '@visx/voronoi/src/voronoi';
import VoronoiPolygon from '../../../../visx-voronoi/src/components/VoronoiPolygon';
import voronoi from '../../../../visx-voronoi/src/voronoi';
import DocPage from '../../components/DocPage';
import VoronoiTile from '../../components/Gallery/VoronoiTile';

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/wordcloud.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import WordcloudReadme from '!!raw-loader!../../../../visx-wordcloud/Readme.md';
import Wordcloud from '@visx/wordcloud/src/Wordcloud';
import Wordcloud from '../../../../visx-wordcloud/src/Wordcloud';
import DocPage from '../../components/DocPage';
import WordcloudTile from '../../components/Gallery/WordcloudTile';

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/xychart.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import XYChartReadme from '!!raw-loader!../../../../visx-xychart/README.md';
import * as XYChartPackage from '@visx/xychart';
import * as XYChartPackage from '../../../../visx-xychart';
import DocPage from '../../components/DocPage';
import XYChartTile from '../../components/Gallery/XYChartTile';

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-demo/src/pages/docs/zoom.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ZoomReadme from '!!raw-loader!../../../../visx-zoom/Readme.md';
import Zoom from '@visx/zoom/src/Zoom';
import Zoom from '../../../../visx-zoom/src/Zoom';
import DocPage from '../../components/DocPage';
import ZoomITile from '../../components/Gallery/ZoomITile';

Expand Down