From 485eeba4cd0fc533543551339534ad23e0fe29fc Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Thu, 2 Nov 2017 22:11:11 -0700 Subject: [PATCH] [shared] @data-ui/core -> @data-ui/shared --- packages/core/README.md | 9 --------- packages/histogram/package.json | 2 +- packages/histogram/src/chart/Histogram.jsx | 2 +- packages/histogram/src/index.js | 2 +- packages/network/package.json | 2 +- packages/network/src/chart/Network.jsx | 2 +- packages/network/src/index.js | 2 +- packages/radial-chart/package.json | 2 +- packages/radial-chart/src/chart/RadialChart.jsx | 2 +- packages/radial-chart/src/index.js | 2 +- packages/{core => shared}/.babelrc | 0 packages/{core => shared}/Makefile | 0 packages/shared/README.md | 9 +++++++++ packages/{core => shared}/package.json | 2 +- packages/{core => shared}/src/components/CrossHair.jsx | 0 packages/{core => shared}/src/enhancer/WithTooltip.js | 0 packages/{core => shared}/src/index.js | 0 .../{core => shared}/test/components/CrossHair.test.js | 0 .../{core => shared}/test/enhancer/WithTooltip.test.js | 0 packages/{core => shared}/test/setup.js | 0 packages/{core => shared}/test/shim.js | 0 packages/sparkline/package.json | 2 +- packages/sparkline/src/index.js | 2 +- packages/xy-chart/package.json | 2 +- packages/xy-chart/src/chart/XYChart.jsx | 2 +- packages/xy-chart/src/index.js | 4 ++-- 26 files changed, 25 insertions(+), 25 deletions(-) delete mode 100644 packages/core/README.md rename packages/{core => shared}/.babelrc (100%) rename packages/{core => shared}/Makefile (100%) create mode 100644 packages/shared/README.md rename packages/{core => shared}/package.json (98%) rename packages/{core => shared}/src/components/CrossHair.jsx (100%) rename packages/{core => shared}/src/enhancer/WithTooltip.js (100%) rename packages/{core => shared}/src/index.js (100%) rename packages/{core => shared}/test/components/CrossHair.test.js (100%) rename packages/{core => shared}/test/enhancer/WithTooltip.test.js (100%) rename packages/{core => shared}/test/setup.js (100%) rename packages/{core => shared}/test/shim.js (100%) diff --git a/packages/core/README.md b/packages/core/README.md deleted file mode 100644 index 62fb1466..00000000 --- a/packages/core/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# @data-ui/core - -Shared ``@data-ui` components used across multiple packages. - -`npm install --save @data-ui/core` - - - - diff --git a/packages/histogram/package.json b/packages/histogram/package.json index 7f9a2d53..f8e3f775 100644 --- a/packages/histogram/package.json +++ b/packages/histogram/package.json @@ -49,7 +49,7 @@ "react": "^15.0.0-0 || ^16.0.0-0" }, "dependencies": { - "@data-ui/core": "0.0.0", + "@data-ui/shared": "0.0.0", "@data-ui/theme": "0.0.9", "@vx/axis": "0.0.140", "@vx/curve": "0.0.140", diff --git a/packages/histogram/src/chart/Histogram.jsx b/packages/histogram/src/chart/Histogram.jsx index d8af14e5..627c5c6e 100644 --- a/packages/histogram/src/chart/Histogram.jsx +++ b/packages/histogram/src/chart/Histogram.jsx @@ -11,7 +11,7 @@ import componentName from '../utils/componentName'; import computeDomainsFromBins from '../utils/computeDomainsFromBins'; import getValueKey from '../utils/getValueKey'; import { themeShape } from '../utils/propShapes'; -import WithTooltip, { withTooltipPropTypes } from '@data-ui/core/build/enhancer/WithTooltip'; +import WithTooltip, { withTooltipPropTypes } from '@data-ui/shared/build/enhancer/WithTooltip'; export const propTypes = { ...withTooltipPropTypes, diff --git a/packages/histogram/src/index.js b/packages/histogram/src/index.js index c424bf8e..e2623d26 100644 --- a/packages/histogram/src/index.js +++ b/packages/histogram/src/index.js @@ -5,7 +5,7 @@ export { default as DensitySeries } from './series/DensitySeries'; export { default as XAxis } from './axis/XAxis'; export { default as YAxis } from './axis/YAxis'; -export { default as WithTooltip, withTooltipPropTypes } from '@data-ui/core/build/enhancer/WithTooltip'; +export { default as WithTooltip, withTooltipPropTypes } from '@data-ui/shared/build/enhancer/WithTooltip'; export { LinearGradient } from '@vx/gradient'; export { PatternLines } from '@vx/pattern'; diff --git a/packages/network/package.json b/packages/network/package.json index 793203d2..2e36afa8 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -47,7 +47,7 @@ "react": "^15.0.0-0 || ^16.0.0-0" }, "dependencies": { - "@data-ui/core": "0.0.0", + "@data-ui/shared": "0.0.0", "@data-ui/theme": "0.0.9", "@vx/event": "0.0.141", "@vx/glyph": "0.0.140", diff --git a/packages/network/src/chart/Network.jsx b/packages/network/src/chart/Network.jsx index b32a7511..9c3c2d77 100644 --- a/packages/network/src/chart/Network.jsx +++ b/packages/network/src/chart/Network.jsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import { Group } from '@vx/group'; -import WithTooltip, { withTooltipPropTypes } from '@data-ui/core/build/enhancer/WithTooltip'; +import WithTooltip, { withTooltipPropTypes } from '@data-ui/shared/build/enhancer/WithTooltip'; import Layout from '../layout/atlasForce'; import Links from './Links'; import Nodes from './Nodes'; diff --git a/packages/network/src/index.js b/packages/network/src/index.js index f4125097..7469fbce 100644 --- a/packages/network/src/index.js +++ b/packages/network/src/index.js @@ -14,4 +14,4 @@ export { export { default as WithTooltip, withTooltipPropTypes, -} from '@data-ui/core/build/enhancer/WithTooltip'; +} from '@data-ui/shared/build/enhancer/WithTooltip'; diff --git a/packages/radial-chart/package.json b/packages/radial-chart/package.json index 7f4df1a0..30fa3cc9 100644 --- a/packages/radial-chart/package.json +++ b/packages/radial-chart/package.json @@ -22,7 +22,7 @@ "author": "Chris Williams ", "license": "MIT", "dependencies": { - "@data-ui/core": "0.0.0", + "@data-ui/shared": "0.0.0", "@data-ui/theme": "0.0.9", "@vx/event": "0.0.140", "@vx/group": "0.0.140", diff --git a/packages/radial-chart/src/chart/RadialChart.jsx b/packages/radial-chart/src/chart/RadialChart.jsx index 3367cfe2..544e074a 100644 --- a/packages/radial-chart/src/chart/RadialChart.jsx +++ b/packages/radial-chart/src/chart/RadialChart.jsx @@ -2,7 +2,7 @@ import { Group } from '@vx/group'; import PropTypes from 'prop-types'; import React from 'react'; -import WithTooltip, { withTooltipPropTypes } from '@data-ui/core/build/enhancer/WithTooltip'; +import WithTooltip, { withTooltipPropTypes } from '@data-ui/shared/build/enhancer/WithTooltip'; export const propTypes = { ...withTooltipPropTypes, diff --git a/packages/radial-chart/src/index.js b/packages/radial-chart/src/index.js index 567493f2..09fc62c2 100644 --- a/packages/radial-chart/src/index.js +++ b/packages/radial-chart/src/index.js @@ -2,4 +2,4 @@ export { default as ArcLabel } from './label/ArcLabel'; export { default as ArcSeries } from './series/ArcSeries'; export { default as RadialChart, propTypes as radialChartPropTypes } from './chart/RadialChart'; export { singleHueScaleFactory, multiHueScaleFactory } from './util/fillScaleFactory'; -export { default as WithTooltip, withTooltipPropTypes } from '@data-ui/core/build/enhancer/WithTooltip'; +export { default as WithTooltip, withTooltipPropTypes } from '@data-ui/shared/build/enhancer/WithTooltip'; diff --git a/packages/core/.babelrc b/packages/shared/.babelrc similarity index 100% rename from packages/core/.babelrc rename to packages/shared/.babelrc diff --git a/packages/core/Makefile b/packages/shared/Makefile similarity index 100% rename from packages/core/Makefile rename to packages/shared/Makefile diff --git a/packages/shared/README.md b/packages/shared/README.md new file mode 100644 index 00000000..8acff69a --- /dev/null +++ b/packages/shared/README.md @@ -0,0 +1,9 @@ +# @data-ui/shared + +Shared ``@data-ui` components used across multiple packages. + +`npm install --save @data-ui/shared` + + + + diff --git a/packages/core/package.json b/packages/shared/package.json similarity index 98% rename from packages/core/package.json rename to packages/shared/package.json index 188bc1f0..b88c3b14 100644 --- a/packages/core/package.json +++ b/packages/shared/package.json @@ -1,5 +1,5 @@ { - "name": "@data-ui/core", + "name": "@data-ui/shared", "version": "0.0.0", "description": "Shared @data-ui components used across multiple packages", "main": "build/index.js", diff --git a/packages/core/src/components/CrossHair.jsx b/packages/shared/src/components/CrossHair.jsx similarity index 100% rename from packages/core/src/components/CrossHair.jsx rename to packages/shared/src/components/CrossHair.jsx diff --git a/packages/core/src/enhancer/WithTooltip.js b/packages/shared/src/enhancer/WithTooltip.js similarity index 100% rename from packages/core/src/enhancer/WithTooltip.js rename to packages/shared/src/enhancer/WithTooltip.js diff --git a/packages/core/src/index.js b/packages/shared/src/index.js similarity index 100% rename from packages/core/src/index.js rename to packages/shared/src/index.js diff --git a/packages/core/test/components/CrossHair.test.js b/packages/shared/test/components/CrossHair.test.js similarity index 100% rename from packages/core/test/components/CrossHair.test.js rename to packages/shared/test/components/CrossHair.test.js diff --git a/packages/core/test/enhancer/WithTooltip.test.js b/packages/shared/test/enhancer/WithTooltip.test.js similarity index 100% rename from packages/core/test/enhancer/WithTooltip.test.js rename to packages/shared/test/enhancer/WithTooltip.test.js diff --git a/packages/core/test/setup.js b/packages/shared/test/setup.js similarity index 100% rename from packages/core/test/setup.js rename to packages/shared/test/setup.js diff --git a/packages/core/test/shim.js b/packages/shared/test/shim.js similarity index 100% rename from packages/core/test/shim.js rename to packages/shared/test/shim.js diff --git a/packages/sparkline/package.json b/packages/sparkline/package.json index b48e9c1b..0976ee92 100644 --- a/packages/sparkline/package.json +++ b/packages/sparkline/package.json @@ -48,7 +48,7 @@ "react": "^15.0.0-0 || ^16.0.0-0" }, "dependencies": { - "@data-ui/core": "0.0.0", + "@data-ui/shared": "0.0.0", "@data-ui/theme": "0.0.8", "@vx/axis": "0.0.140", "@vx/curve": "0.0.140", diff --git a/packages/sparkline/src/index.js b/packages/sparkline/src/index.js index a6049d7f..ab48a3c6 100644 --- a/packages/sparkline/src/index.js +++ b/packages/sparkline/src/index.js @@ -8,7 +8,7 @@ export { default as BandLine } from './annotation/BandLine'; export { default as Label } from './annotation/Label'; export { default as HorizontalReferenceLine } from './annotation/HorizontalReferenceLine'; export { default as VerticalReferenceLine } from './annotation/VerticalReferenceLine'; -export { default as WithTooltip, Tooltip, withTooltipPropTypes } from '@data-ui/core/build/enhancer/WithTooltip'; +export { default as WithTooltip, Tooltip, withTooltipPropTypes } from '@data-ui/shared/build/enhancer/WithTooltip'; export { LinearGradient } from '@vx/gradient'; export { PatternLines } from '@vx/pattern'; diff --git a/packages/xy-chart/package.json b/packages/xy-chart/package.json index f510faa8..7af73340 100644 --- a/packages/xy-chart/package.json +++ b/packages/xy-chart/package.json @@ -21,7 +21,7 @@ "author": "Chris Williams ", "license": "MIT", "dependencies": { - "@data-ui/core": "0.0.0", + "@data-ui/shared": "0.0.0", "@data-ui/theme": "0.0.9", "@vx/axis": "0.0.145", "@vx/curve": "0.0.140", diff --git a/packages/xy-chart/src/chart/XYChart.jsx b/packages/xy-chart/src/chart/XYChart.jsx index a1e25f8e..5e58f54d 100644 --- a/packages/xy-chart/src/chart/XYChart.jsx +++ b/packages/xy-chart/src/chart/XYChart.jsx @@ -5,7 +5,7 @@ import Grid from '@vx/grid/build/grids/Grid'; import Group from '@vx/group/build/Group'; import Voronoi from './Voronoi'; -import WithTooltip, { withTooltipPropTypes } from '@data-ui/core/build/enhancer/WithTooltip'; +import WithTooltip, { withTooltipPropTypes } from '@data-ui/shared/build/enhancer/WithTooltip'; import { collectDataFromChildSeries, diff --git a/packages/xy-chart/src/index.js b/packages/xy-chart/src/index.js index 976d4abe..c906d1c6 100644 --- a/packages/xy-chart/src/index.js +++ b/packages/xy-chart/src/index.js @@ -12,8 +12,8 @@ export { default as PointSeries, pointComponentPropTypes } from './series/PointS export { default as StackedBarSeries } from './series/StackedBarSeries'; export { default as HorizontalReferenceLine } from './annotation/HorizontalReferenceLine'; -export { default as CrossHair } from '@data-ui/core/build/components/CrossHair'; -export { default as WithTooltip, withTooltipPropTypes } from '@data-ui/core/build/enhancer/WithTooltip'; +export { default as CrossHair } from '@data-ui/shared/build/components/CrossHair'; +export { default as WithTooltip, withTooltipPropTypes } from '@data-ui/shared/build/enhancer/WithTooltip'; export { LinearGradient } from '@vx/gradient'; export { PatternLines, PatternCircles, PatternWaves, PatternHexagons } from '@vx/pattern';