diff --git a/packages/victory-create-container/src/create-container.ts b/packages/victory-create-container/src/create-container.ts index 671df94b1..95c998449 100644 --- a/packages/victory-create-container/src/create-container.ts +++ b/packages/victory-create-container/src/create-container.ts @@ -75,7 +75,7 @@ const combineDefaultEvents = (defaultEvents: any[]) => { return events.filter(Boolean); }; -const combineContainerMixins = ( +export const combineContainerMixins = ( mixins: MixinFunction[], Container: React.ComponentType, ) => { @@ -138,7 +138,7 @@ const checkBehaviorName = ( } }; -const makeCreateContainerFunction = +export const makeCreateContainerFunction = ( mixinMap: Record, Container: React.ComponentType, @@ -169,7 +169,7 @@ const makeCreateContainerFunction = return combineContainerMixins([...firstMixins, ...secondMixins], Container); }; -const createContainer = makeCreateContainerFunction( +export const createContainer = makeCreateContainerFunction( { zoom: [zoomContainerMixin], voronoi: [voronoiContainerMixin], @@ -179,5 +179,3 @@ const createContainer = makeCreateContainerFunction( }, VictoryContainer, ); - -export { createContainer, makeCreateContainerFunction, combineContainerMixins }; diff --git a/packages/victory-create-container/src/index.ts b/packages/victory-create-container/src/index.ts index 3a1c18681..5f9b97723 100644 --- a/packages/victory-create-container/src/index.ts +++ b/packages/victory-create-container/src/index.ts @@ -1,5 +1 @@ -export { - combineContainerMixins, - makeCreateContainerFunction, - createContainer, -} from "./create-container"; +export * from "./create-container";