Skip to content

Commit

Permalink
Debarrel packages/polaris-viz
Browse files Browse the repository at this point in the history
  • Loading branch information
envex committed Dec 3, 2024
1 parent c85ca07 commit f4346d7
Show file tree
Hide file tree
Showing 531 changed files with 1,175 additions and 1,687 deletions.
10 changes: 9 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
"UNSTABLE_telemetry"
]
}
]
],
"@shopify/strict-component-boundaries": "off"
},
"overrides": [
{
Expand Down Expand Up @@ -150,6 +151,13 @@
"react/no-unused-prop-types": "off",
"@shopify/strict-component-boundaries": "off"
}
},
{
"files": ["codemods/**/*.js"],
"rules": {
"no-console": "off",
"import/no-extraneous-dependencies": "off"
}
}
]
}
4 changes: 2 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {themes} from '@storybook/theming';
import {PolarisVizProvider} from '@shopify/polaris-viz';
import {DARK_THEME, LIGHT_THEME} from '../packages/polaris-viz/src/constants';
import {useTheme} from '../packages/polaris-viz/src/hooks';
import {DARK_THEME} from '../packages/polaris-viz/src/constants';
import {useTheme} from '@shopify/polaris-viz-core';

// https://github.com/storybookjs/storybook/issues/548
const storiesOrder = {
Expand Down
10 changes: 4 additions & 6 deletions packages/polaris-viz-core/src/hooks/stories/Hooks.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
Banner,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {Banner} from '../../../../polaris-viz/src/components/Docs/stories/components/Banner/Banner';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Hooks"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Color Manipulation/ColorScale"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Color Manipulation/OpacityScale"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Color Manipulation/changeColorOpacity"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Color Manipulation/changeGradientOpacity"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/clamp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
iimport {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Color Manipulation/createCSSConicGradient"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Color Manipulation/createGradient"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import LinkTo from '@storybook/addon-links/react';

<Meta
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Shape Manipulation/curveStepRounded"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/estimateStringWidth"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Color Manipulation/getAverageColor"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';

<Meta
title="Shared/Utilities/Data Handling/getFilteredSeries"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';
import LinkTo from '@storybook/addon-links/react';
import {DEFAULT_THEME_NAME} from '@shopify/polaris-viz-core';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Theme Handling/getSeriesColors"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/getValueFromXScale"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';

<Meta
title="Shared/Utilities/Color Manipulation/isGradientType"
Expand All @@ -13,6 +10,7 @@ import {
docsOnly: true,
}}
/>
;

<UtilitiesHeader />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';

<Meta
title="Shared/Utilities/isValueWithinDomain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Divider} from '../../../../polaris-viz/src/components/Docs/stories/components/Divider';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/CSS to JS/paddingStringToObject"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Divider} from '../../../../polaris-viz/src/components/Docs/stories/components/Divider';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/Data Handling/removeFalsyValues"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Divider} from '../../../../polaris-viz/src/components/Docs/stories/components/Divider';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/uniqueId"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {Meta, Story, Canvas} from '@storybook/addon-docs';
import {Meta} from '@storybook/addon-docs';

import {
Divider,
Title,
UtilitiesHeader,
} from '../../../../polaris-viz/src/components/Docs/stories/components';
import {Divider} from '../../../../polaris-viz/src/components/Docs/stories/components/Divider';
import {Title} from '../../../../polaris-viz/src/components/Docs/stories/components/Title/Title';
import {UtilitiesHeader} from '../../../../polaris-viz/src/components/Docs/stories/components/UtilitiesHeader/UtilitiesHeader';

<Meta
title="Shared/Utilities/useSVGBlurEvents"
Expand Down
2 changes: 0 additions & 2 deletions packages/polaris-viz/src/chromatic/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {storiesOf} from '@storybook/react';
import {
BarChart,
LineChart,
PolarisVizProvider,
StackedAreaChart,
} from '../../components';
import {BarChart} from '../../components/BarChart/BarChart';
import {LineChart} from '../../components/LineChart/LineChart';
import {PolarisVizProvider} from '../../components/PolarisVizProvider/PolarisVizProvider';
import {StackedAreaChart} from '../../components/StackedAreaChart/StackedAreaChart';
import type {DataSeries} from '@shopify/polaris-viz-core';

const DATA = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {storiesOf} from '@storybook/react';
import {
BarChart,
LineChart,
PolarisVizProvider,
StackedAreaChart,
} from '../../components';
import {BarChart} from '../../components/BarChart/BarChart';
import {LineChart} from '../../components/LineChart/LineChart';
import {PolarisVizProvider} from '../../components/PolarisVizProvider/PolarisVizProvider';
import {StackedAreaChart} from '../../components/StackedAreaChart/StackedAreaChart';
import type {DataSeries} from '@shopify/polaris-viz-core';

const NUMBERS = [
Expand Down
Loading

0 comments on commit f4346d7

Please sign in to comment.