Skip to content

Commit 5a9e172

Browse files
authored
Fix experimental hooks export
1 parent e70fd9e commit 5a9e172

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

packages/react/src/__tests__/__snapshots__/exports.test.ts.snap

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ exports[`@primer/react/experimental should not update exports without a semver c
254254
[
255255
"ActionBar",
256256
"type ActionBarProps",
257-
"type AnchoredPositionHookSettings",
258257
"Announce",
259258
"type AnnounceProps",
260259
"AriaAlert",
@@ -310,6 +309,7 @@ exports[`@primer/react/experimental should not update exports without a semver c
310309
"SkeletonAvatar",
311310
"SkeletonBox",
312311
"SkeletonText",
312+
"type SlotConfig",
313313
"Stack",
314314
"type StackItemProps",
315315
"type StackProps",
@@ -329,28 +329,12 @@ exports[`@primer/react/experimental should not update exports without a semver c
329329
"TooltipContext",
330330
"type TooltipDirection",
331331
"type TooltipProps",
332-
"type TouchOrMouseEvent",
333332
"type TriggerPropsType",
334333
"UnderlinePanels",
335334
"type UnderlinePanelsPanelProps",
336335
"type UnderlinePanelsProps",
337336
"type UnderlinePanelsTabProps",
338-
"useAnchoredPosition",
339-
"useId",
340-
"useIsMacOS",
341-
"useMenuInitialFocus",
342-
"useMenuKeyboardNavigation",
343-
"useMnemonics",
344-
"useOnEscapePress",
345-
"useOnOutsideClick",
346-
"type UseOnOutsideClickSettings",
347-
"useOpenAndCloseFocus",
348-
"type UseOpenAndCloseFocusSettings",
349-
"useOverlay",
350-
"type UseOverlaySettings",
351-
"useProvidedRefOrCreate",
352-
"useProvidedStateOrCreate",
353-
"useRefObjectAsForwardedRef",
354-
"useRenderForcingRef",
337+
"useOverflow",
338+
"useSlots",
355339
]
356340
`;

packages/react/src/experimental/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export * from '../PageHeader'
3939

4040
export * from '../Hidden'
4141

42-
export * from '../hooks'
42+
export * from './hooks'
4343

4444
export {NavList} from '../NavList'
4545
export type {

0 commit comments

Comments
 (0)