Skip to content

Commit

Permalink
Fixes for v35 (#1934)
Browse files Browse the repository at this point in the history
* fix ActioMenu story

* backfill missing exports in root index

* fix package-lock

* add changeset
  • Loading branch information
rezrah committed Mar 8, 2022
1 parent 41dd547 commit 33da6a0
Show file tree
Hide file tree
Showing 6 changed files with 35,282 additions and 68 deletions.
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

0 comments on commit 33da6a0

Please sign in to comment.