Skip to content

Commit b9b558e

Browse files
pksjcejonrohan
andauthored
Remove PointerBox from @primer-react (#6857)
Co-authored-by: Jon Rohan <yes@jonrohan.codes>
1 parent 9614c0e commit b9b558e

File tree

11 files changed

+6
-261
lines changed

11 files changed

+6
-261
lines changed

.changeset/beige-plums-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": major
3+
---
4+
5+
Remove PointerBox from @primer-react

contributor-docs/behaviors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Generic behaviors provide functionality that is not specific to any single compo
5151

5252
## Component behaviors
5353

54-
Component behaviors specifically implement behaviors for components. Therefore, hooks that implement component behaviors should always return an object containing props objects to be spread across the elements that make up the component's JSX. While component behaviors do not necessarily have to be one-to-one, **a component may only use one component behavior**. Sometimes it makes sense to use the same component behavior on several components. For example: the Dialog, Popover, and PointerBox components may all use the `usePopover` component behavior.
54+
Component behaviors specifically implement behaviors for components. Therefore, hooks that implement component behaviors should always return an object containing props objects to be spread across the elements that make up the component's JSX. While component behaviors do not necessarily have to be one-to-one, **a component may only use one component behavior**. Sometimes it makes sense to use the same component behavior on several components. For example: the Dialog, and Popover components may all use the `usePopover` component behavior.
5555

5656
### Component behavior examples
5757

packages/react/script/react-compiler.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const unsupported = new Set(
2020
'src/ConfirmationDialog/**/*.tsx',
2121
'src/Pagehead/**/*.tsx',
2222
'src/Pagination/**/*.tsx',
23-
'src/PointerBox/**/*.tsx',
2423
'src/SelectPanel/**/*.tsx',
2524
'src/SideNav.tsx',
2625
'src/internal/components/CheckboxOrRadioGroup/**/*.tsx',

packages/react/src/PointerBox/PointerBox.docs.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/react/src/PointerBox/PointerBox.stories.tsx

Lines changed: 0 additions & 53 deletions
This file was deleted.

packages/react/src/PointerBox/PointerBox.test.tsx

Lines changed: 0 additions & 86 deletions
This file was deleted.

packages/react/src/PointerBox/PointerBox.tsx

Lines changed: 0 additions & 73 deletions
This file was deleted.

packages/react/src/PointerBox/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ exports[`@primer/react > should not update exports without a semver change 1`] =
112112
"type PageLayoutProps",
113113
"Pagination",
114114
"type PaginationProps",
115-
"PointerBox",
116-
"type PointerBoxProps",
117115
"Popover",
118116
"type PopoverContentProps",
119117
"type PopoverProps",
@@ -242,8 +240,6 @@ exports[`@primer/react/deprecated > should not update exports without a semver c
242240
"type OcticonProps",
243241
"Pagehead",
244242
"type PageheadProps",
245-
"PointerBox",
246-
"type PointerBoxProps",
247243
"TabNav",
248244
"type TabNavLinkProps",
249245
"type TabNavProps",

packages/react/src/deprecated/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,3 @@ export type {TabNavProps, TabNavLinkProps} from '../TabNav'
4242
export {default as Tooltip} from '../Tooltip/Tooltip'
4343
export type {TooltipProps} from '../Tooltip/Tooltip'
4444
// end of v37.0.0
45-
46-
// Deprecated in v38.0.0
47-
export {default as PointerBox} from '../PointerBox'
48-
export type {PointerBoxProps} from '../PointerBox'

0 commit comments

Comments
 (0)