Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .changeset/twenty-weeks-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
'@primer/react': patch
---

Surfaced the following components and hooks from the root index:

- Portal
- AnchoredOverlay
- useFocusTrap
- useFocusZone (and types)
- sx (and types)
- ConfirmationDialogProps

These exports can now be imported from the root index, rather than from their nested subfolders.

E.g.

```diff
- import { ConfirmationDialogProps } from '@primer/react/lib-esm/Dialog/ConfirmationDialog';
+ import { ConfirmationDialogProps } from '@primer/react';
```
5 changes: 1 addition & 4 deletions docs/content/system-props.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: System Props
---

import {PropsList, COMMON, LAYOUT, BORDER, TYPOGRAPHY, FLEX, POSITION, GRID} from '../components'
import {PropsList, COMMON, LAYOUT, BORDER, TYPOGRAPHY} from '../components'

<Note variant="warning">

Expand Down Expand Up @@ -32,6 +32,3 @@ For example, if you wanted to add some flex utilities to the `Text` component, y
| `TYPOGRAPHY` | <PropsList systemProps={TYPOGRAPHY}/> | [styled-system typography docs](https://github.com/jxnblk/styled-system/blob/master/docs/table.md#typography) |
| `BORDER` | <PropsList systemProps={BORDER}/> | [styled-system border docs](https://github.com/jxnblk/styled-system/blob/master/docs/table.md#border) |
| `LAYOUT` | <PropsList systemProps={LAYOUT}/> | [styled-system layout docs](https://github.com/jxnblk/styled-system/blob/master/docs/table.md#layout) <br/> [styled-system misc docs](https://github.com/jxnblk/styled-system/blob/master/docs/table.md#misc) |
| `POSITION` | <PropsList systemProps={POSITION}/> | [styled-system position docs](https://github.com/jxnblk/styled-system/blob/master/docs/table.md#position) |
| `FLEX` | <PropsList systemProps={FLEX}/> | [styled-system flexbox docs](https://github.com/jxnblk/styled-system/blob/master/docs/table.md#flexbox) |
| `GRID` | <PropsList systemProps={GRID}/> | [styled-system grid docs](https://github.com/styled-system/styled-system/blob/master/docs/table.md#grid-layout) |
Loading