Skip to content

Commit

Permalink
refactor(react): move deprecated components to deprecated (#4798)
Browse files Browse the repository at this point in the history
* refactor(react): move deprecated components to deprecated

* chore: add changeset

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack authored Jul 31, 2024
1 parent 04eac62 commit 0fa60a4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-tables-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

Add the deprecated Dialog, Octicon, Pagehead, TabNav, and Tooltip components to @primer/react/deprecated
12 changes: 12 additions & 0 deletions packages/react/src/__tests__/__snapshots__/exports.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,23 @@ exports[`@primer/react/deprecated should not update exports without a semver cha
"type ButtonProps",
"ButtonTableList",
"type ButtonTableListProps",
"Dialog",
"type DialogHeaderProps",
"type DialogProps",
"FilteredSearch",
"type FilteredSearchProps",
"FilterList",
"type FilterListItemProps",
"type FilterListProps",
"Octicon",
"type OcticonProps",
"Pagehead",
"type PageheadProps",
"TabNav",
"type TabNavLinkProps",
"type TabNavProps",
"Tooltip",
"type TooltipProps",
"UnderlineNav",
"type UnderlineNavLinkProps",
"type UnderlineNavProps",
Expand Down
13 changes: 13 additions & 0 deletions packages/react/src/deprecated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,16 @@ export type {FilteredSearchProps} from './FilteredSearch'
export {default as UnderlineNav} from './UnderlineNav'
export type {UnderlineNavProps, UnderlineNavLinkProps} from './UnderlineNav'
// end of v36.0.0

// Deprecated in v37.0.0
export {default as Dialog} from '../Dialog'
export type {DialogProps, DialogHeaderProps} from '../Dialog'
export {default as Octicon} from '../Octicon'
export type {OcticonProps} from '../Octicon'
export {default as Pagehead} from '../Pagehead'
export type {PageheadProps} from '../Pagehead'
export {default as TabNav} from '../TabNav'
export type {TabNavProps, TabNavLinkProps} from '../TabNav'
export {default as Tooltip} from '../Tooltip/Tooltip'
export type {TooltipProps} from '../Tooltip/Tooltip'
// end of v37.0.0

0 comments on commit 0fa60a4

Please sign in to comment.