Skip to content

Commit

Permalink
chore: Exports hooks from the package root (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-zahedi authored Dec 13, 2023
1 parent b9b2e92 commit d2fe261
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-bags-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@autoguru/overdrive': patch
---

Exports hooks from the package root
8 changes: 8 additions & 0 deletions packages/overdrive/lib/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export * from './useAnimationEvents';
export * from './useAttachedBoxes';
export * from './useDocumentBodyStyles';
export * from './useNegativeMargin';
export * from './useResponsiveValue';
export * from './useWindowHeightFill';
export * from './useWindowScrollLock';
export * from './useMedia';
4 changes: 4 additions & 0 deletions packages/overdrive/lib/hooks/useNegativeMargin/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export {
useNegativeMarginTop,
useNegativeMarginLeft,
} from './useNegativeMargin';
7 changes: 2 additions & 5 deletions packages/overdrive/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
export * from './components/index';

export { useMedia } from './hooks/useMedia/useMedia';
export { useResponsiveValue } from './hooks/useResponsiveValue/useResponsiveValue';
export { useAttachedBoxes } from './hooks/useAttachedBoxes/useAttachedBoxes';
export * from './components';
export * from './hooks';
export { useId, arrayRingLookup } from './utils/index';

0 comments on commit d2fe261

Please sign in to comment.