Skip to content

Commit

Permalink
Tooltip: Do not export all types publicly in the experimental bundle (#…
Browse files Browse the repository at this point in the history
…5064)

* Do not export all types publicly in the experimental bundle

* export tooltip direction for button

* snapshot

* Create eight-avocados-lick.md

* Update .changeset/eight-avocados-lick.md
  • Loading branch information
broccolinisoup authored Oct 7, 2024
1 parent b91a5e5 commit 29f33ce
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-avocados-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Tooltip: Do not export all types publicly in the experimental bundle
2 changes: 1 addition & 1 deletion packages/react/src/TooltipV2/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export type TooltipProps = React.PropsWithChildren<
ComponentProps<typeof StyledTooltip>
>

export type TriggerPropsType = {
type TriggerPropsType = {
'aria-describedby'?: string
'aria-labelledby'?: string
'aria-label'?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,7 @@ exports[`@primer/react/experimental should not update exports without a semver c
"type TableTitleProps",
"type TitleProps",
"Tooltip",
"TooltipContext",
"type TooltipDirection",
"type TooltipProps",
"type TriggerPropsType",
"UnderlinePanels",
"type UnderlinePanelsPanelProps",
"type UnderlinePanelsProps",
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export type {
NavListDividerProps,
} from '../NavList'
export * from './SelectPanel2'
export * from '../TooltipV2'
export {Tooltip} from '../TooltipV2'
export type {TooltipProps} from '../TooltipV2'
export * from '../ActionBar'

export {ScrollableRegion} from '../ScrollableRegion'
Expand Down

0 comments on commit 29f33ce

Please sign in to comment.