Skip to content

Commit f1396e2

Browse files
authored
Merge branch 'main' into siddharthkp/migration-adr
2 parents 14f420b + 2eff7a5 commit f1396e2

File tree

14 files changed

+121
-70
lines changed

14 files changed

+121
-70
lines changed

.changeset/proud-colts-attend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Allow minor version updates for production dependencies

.changeset/stale-hounds-notice.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@primer/react": minor
3+
---
4+
5+
[NavList](https://primer.style/NavList) is ready to use. You can now import it from the main bundle:
6+
7+
```js
8+
import {NavList} from '@primer/react'
9+
```

.github/workflows/deploy_preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Preview
1414
uses: primer/.github/.github/workflows/deploy_preview.yml@main
1515
with:
16-
node_version: 16
16+
node_version: 14
1717
install: npm ci && cd docs && npm ci && cd ..
1818
build: npm run build:docs:preview
1919
output_dir: docs/public

.github/workflows/deploy_production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
if: ${{ needs.guard.outputs.should_deploy == 'true' }}
3939
uses: primer/.github/.github/workflows/deploy.yml@main
4040
with:
41-
node_version: 16
41+
node_version: 14
4242
install: npm ci && cd docs && npm ci && cd ..
4343
build: npm run build:docs
4444
output_dir: docs/public

docs/content/NavList.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
title: NavList
3-
status: Draft
4-
description: Use nav list to render a vertical list of navigation links.
3+
status: Alpha
4+
componentId: nav_list
5+
description: Use a nav list to render a vertical list of navigation links.
56
source: https://github.com/primer/react/tree/main/src/NavList
7+
storybook: '/react/storybook/?path=/story/composite-components-navlist--simple'
68
---
79

810
```js
9-
import {NavList} from '@primer/react/drafts'
11+
import {NavList} from '@primer/react'
1012
```
1113

1214
## Examples
@@ -333,9 +335,9 @@ function App() {
333335
adaptsToThemes: true,
334336
adaptsToScreenSizes: true,
335337
fullTestCoverage: true,
336-
usedInProduction: false,
338+
usedInProduction: true,
337339
usageExamplesDocumented: true,
338-
hasStorybookStories: false,
340+
hasStorybookStories: true,
339341
designReviewed: false,
340342
a11yReviewed: false,
341343
stableApi: false,

docs/src/@primer/gatsby-theme-doctocat/nav.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
url: /LabelGroup
9191
- title: Link
9292
url: /Link
93+
- title: NavList
94+
url: /NavList
9395
- title: Overlay
9496
url: /Overlay
9597
- title: Pagehead

package-lock.json

Lines changed: 38 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,24 @@
7878
"npm": ">=7"
7979
},
8080
"dependencies": {
81-
"@primer/behaviors": "1.1.1",
82-
"@primer/octicons-react": "16.1.1",
83-
"@primer/primitives": "7.6.0",
84-
"@radix-ui/react-polymorphic": "0.0.14",
85-
"@react-aria/ssr": "3.1.0",
86-
"@styled-system/css": "5.1.5",
87-
"@styled-system/props": "5.1.5",
88-
"@styled-system/theme-get": "5.1.2",
89-
"@types/styled-components": "5.1.11",
90-
"@types/styled-system": "5.1.12",
91-
"@types/styled-system__css": "5.0.16",
92-
"@types/styled-system__theme-get": "5.0.1",
93-
"classnames": "2.3.1",
94-
"color2k": "1.2.4",
95-
"deepmerge": "4.2.2",
96-
"focus-visible": "5.2.0",
97-
"history": "5.0.0",
98-
"styled-system": "5.1.5"
81+
"@primer/behaviors": "^1.1.1",
82+
"@primer/octicons-react": "^17.3.0",
83+
"@primer/primitives": "^7.6.0",
84+
"@radix-ui/react-polymorphic": "^0.0.14",
85+
"@react-aria/ssr": "^3.1.0",
86+
"@styled-system/css": "^5.1.5",
87+
"@styled-system/props": "^5.1.5",
88+
"@styled-system/theme-get": "^5.1.2",
89+
"@types/styled-components": "^5.1.11",
90+
"@types/styled-system": "^5.1.12",
91+
"@types/styled-system__css": "^5.0.16",
92+
"@types/styled-system__theme-get": "^5.0.1",
93+
"classnames": "^2.3.1",
94+
"color2k": "^1.2.4",
95+
"deepmerge": "^4.2.2",
96+
"focus-visible": "^5.2.0",
97+
"history": "^5.0.0",
98+
"styled-system": "^5.1.5"
9999
},
100100
"devDependencies": {
101101
"@babel/cli": "7.17.6",

src/ActionList/Divider.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import {get} from '../constants'
44
import {Theme} from '../ThemeProvider'
55
import {SxProp, merge} from '../sx'
66

7+
export type ActionListDividerProps = SxProp
8+
79
/**
810
* Visually separates `Item`s or `Group`s in an `ActionList`.
911
*/
10-
11-
export const Divider: React.FC<SxProp> = ({sx = {}}) => {
12+
export const Divider: React.FC<ActionListDividerProps> = ({sx = {}}) => {
1213
return (
1314
<Box
1415
as="li"

src/ActionList/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type {ActionListProps} from './List'
1010
export type {ActionListGroupProps} from './Group'
1111
export type {ActionListItemProps} from './Item'
1212
export type {ActionListLinkItemProps} from './LinkItem'
13+
export type {ActionListDividerProps} from './Divider'
1314
export type {ActionListDescriptionProps} from './Description'
1415
export type {ActionListLeadingVisualProps, ActionListTrailingVisualProps} from './Visuals'
1516

0 commit comments

Comments
 (0)