-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move deprecated components to deprecated folder (#1881)
* prepare integration branch * Move deprecated components to deprecated folder * Add subpath exports for deprecated * Fix up the docs * Remove dialog and formgroup components * Fix up all the tests * Create smooth-cameras-prove.md Co-authored-by: Reza Rahman <rezrah@github.com>
- Loading branch information
Showing
15 changed files
with
229 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/react": major | ||
--- | ||
|
||
Move deprecated components to deprecated folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"_comment1": "this is required only for typescript. once this is fixed https://github.com/microsoft/TypeScript/issues/33079 we can remove this hack", | ||
"name": "@primer/react/deprecated", | ||
"types": "../lib-esm/deprecated/index.d.ts", | ||
"main": "../lib-esm/deprecated/index.js", | ||
"type": "module", | ||
"sideEffects": false | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** This is the place where we keep components that are deprecated. | ||
* We don't recommend using it in production. | ||
* If you already use them, please move to the suggested alternative components | ||
* | ||
* But, they are published on npm and you can import them. | ||
* example: import {FormGroup} from '@primer/react/deprecated | ||
*/ | ||
|
||
export {default as BorderBox} from '../BorderBox' | ||
export type {BorderBoxProps} from '../BorderBox' | ||
export {default as Flex} from '../Flex' | ||
export type {FlexProps} from '../Flex' | ||
export {default as Grid} from '../Grid' | ||
export type {GridProps} from '../Grid' | ||
export {default as Position, Absolute, Fixed, Relative, Sticky} from '../Position' | ||
export type {PositionProps, AbsoluteProps, FixedProps, RelativeProps, StickyProps} from '../Position' | ||
export {default as Dropdown} from '../Dropdown' | ||
export type { | ||
DropdownProps, | ||
DropdownCaretProps, | ||
DropdownButtonProps, | ||
DropdownItemProps, | ||
DropdownMenuProps | ||
} from '../Dropdown' | ||
export {default as SelectMenu} from '../SelectMenu' | ||
export type { | ||
SelectMenuProps, | ||
SelectMenuDividerProps, | ||
SelectMenuFilterProps, | ||
SelectMenuFooterProps, | ||
SelectMenuItemProps, | ||
SelectMenuListProps, | ||
SelectMenuModalProps, | ||
SelectMenuTabsProps, | ||
SelectMenuHeaderProps, | ||
SelectMenuTabProps, | ||
SelectMenuTabPanelProps, | ||
SelectMenuLoadingAnimationProps | ||
} from '../SelectMenu' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters