Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 370f14f

Browse files
feat: expose types and restructure index (jscottsmith#219)
1 parent a6b7bff commit 370f14f

File tree

8 files changed

+15
-21
lines changed

8 files changed

+15
-21
lines changed
File renamed without changes.

‎src/components/Parallax/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { Parallax } from './Parallax';
2+
export * from './types';
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export { ParallaxBanner } from './ParallaxBanner';
2+
export { ParallaxBannerLayer } from './components/ParallaxBannerLayer';
3+
export * from './types';
File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { ParallaxProvider } from './ParallaxProvider';
2+
export * from './types';

‎src/hooks/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { useParallax } from './useParallax';
2+
export { useParallaxController } from './useParallaxController';

‎src/index.ts‎

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
1-
import { EasingPreset, EffectNumber, EffectString } from 'parallax-controller';
1+
export { EasingPreset, EffectNumber, EffectString } from 'parallax-controller';
22

3-
import { Parallax } from './components/Parallax';
4-
import { ParallaxBanner } from './components/ParallaxBanner';
5-
import { ParallaxBannerLayer } from './components/ParallaxBanner/components/ParallaxBannerLayer';
6-
import { ParallaxProvider } from './components/ParallaxProvider';
7-
import { ParallaxContext } from './context/ParallaxContext';
8-
import { useParallax } from './hooks/useParallax';
9-
import { useParallaxController } from './hooks/useParallaxController';
10-
11-
export {
12-
useParallax,
13-
useParallaxController,
14-
Parallax,
15-
ParallaxBanner,
16-
ParallaxBannerLayer,
17-
ParallaxProvider,
18-
ParallaxContext,
19-
EasingPreset,
20-
EffectNumber,
21-
EffectString,
22-
};
3+
export * from './components/Parallax';
4+
export * from './components/ParallaxBanner';
5+
export * from './components/ParallaxProvider';
6+
export * from './hooks';
7+
export { ParallaxContext } from './context/ParallaxContext';

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /