Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
43a193c
VRT: Mock avatars to return stable images (#4547)
siddharthkp May 1, 2024
9018b32
Version Packages (#4532)
primer[bot] May 1, 2024
6b502fd
Fix: Ensure dynamically updated label is announced (#4537)
khiga8 May 1, 2024
c860b70
tests: add missing snapshot and axe coverage for ActionMenu (#4538)
khiga8 May 1, 2024
5c2fb82
chore(deps-dev): bump ejs from 3.1.9 to 3.1.10 (#4549)
dependabot[bot] May 3, 2024
9a56727
BranchName: Add style for span and add v8 tokens (#4556)
lukasoppermann May 3, 2024
f0de234
refactor(Banner): update region to use a dedicated aria-label (#4539)
joshblack May 3, 2024
7889527
chore(deps-dev): bump cross-env from 7.0.2 to 7.0.3 (#4561)
dependabot[bot] May 6, 2024
3cae7c8
chore(deps-dev): bump @babel/plugin-transform-modules-commonjs (#4562)
dependabot[bot] May 6, 2024
e094a39
chore(deps-dev): bump jest-fail-on-console from 3.1.1 to 3.2.0 (#4563)
dependabot[bot] May 6, 2024
ed31476
feat(FeatureFlags): broaden feature flag type to accept undefined (#4…
joshblack May 6, 2024
09ac01e
prevent form submit (#4551)
siddharthkp May 7, 2024
495935b
deprecate title prop on ActionList.Group component on docs (#4544)
broccolinisoup May 7, 2024
7e587b6
chore: add hydro analytics to storybook (#4558)
joshblack May 7, 2024
447a1fd
Revert "Revert "Add support for nested submenus to `ActionMenu`"" (#4…
iansan5653 May 7, 2024
32c088d
chore(deps): update typescript to 5.4.5 (#4568)
joshblack May 7, 2024
e39fcf8
Use dynamic height and width for dialogs (#4567)
dgreif May 7, 2024
95cd867
`TreeView`: Fix expanding/collapsing item when `Space` is pressed (#4…
randall-krauskopf May 8, 2024
02a2a2b
Export things we need for CommentEditor (#4513)
owenniblock May 8, 2024
564db1d
Trigger onClose when Dialog backdrop is clicked (#4565)
dgreif May 8, 2024
024124a
ActionBar: Add a few fixes and tests (#4536)
pksjce May 8, 2024
4ecbe1a
fix(react): update minimum version for @primer/live-region-element (#…
joshblack May 9, 2024
4dd6bef
ActionList: Fix leaky disabled description styles (#4566)
siddharthkp May 13, 2024
32ea290
chore(deps-dev): bump @babel/core from 7.23.7 to 7.24.5 (#4586)
dependabot[bot] May 13, 2024
4d90e83
chore(deps-dev): bump semver from 7.6.0 to 7.6.2 (#4585)
dependabot[bot] May 13, 2024
6cd9280
chore(deps-dev): bump @types/node from 20.11.20 to 20.12.11 (#4584)
dependabot[bot] May 13, 2024
ab108fa
chore(deps-dev): bump terser from 5.27.0 to 5.31.0 (#4583)
dependabot[bot] May 13, 2024
865f091
Revert "Trigger onClose when Dialog backdrop is clicked (#4565)" (#4578)
joshblack May 13, 2024
adae1e8
Create a release event tracking workflow (#4580)
jonrohan May 13, 2024
272c0b8
Update assign_release_conductor.yml (#4588)
joshblack May 13, 2024
5647054
Version Packages (#4559)
primer[bot] May 14, 2024
c81898c
Add `TreeView.LeadingAction` sub-component (#4546)
ayy-bc May 15, 2024
d4e234f
Update NavList to use the new GroupHeading API and add an `as` prop t…
broccolinisoup May 16, 2024
6cce7b7
fix(Stack): rename spread to justify (#4591)
joshblack May 16, 2024
e090b73
Replace `jest-axe` with `axe-core` (#4590)
TylerJDev May 16, 2024
2d26f4c
Fix replacement URL for React getting started (#4571)
MrChrisW May 16, 2024
4fa4fae
Ensure tab-container uses latest, semver range (#4596)
keithamus May 17, 2024
138511c
chore(deps-dev): bump recast from 0.23.6 to 0.23.7 (#4603)
dependabot[bot] May 20, 2024
c5f7940
chore(deps-dev): bump minipass from 2.9.0 to 7.1.1 (#4606)
dependabot[bot] May 20, 2024
ac25029
`TreeView`: Align tree item toggle and visual icons to top of item (#…
iansan5653 May 20, 2024
732e67a
update checklist (#4607)
broccolinisoup May 20, 2024
9c01a93
ActionBar: Move to main directory (experimental → alpha) (#4574)
pksjce May 21, 2024
f293344
render the group heading sub component if title exists (#4614)
broccolinisoup May 21, 2024
9665abf
Version Packages (#4595)
primer[bot] May 21, 2024
68e6326
chore(eslint): add primer_react_ to list of allowed camelcase names (…
joshblack May 21, 2024
9b63299
Add `openOnFocus` prop to `AutocompleteInput` (#4555)
JoyceZhu May 21, 2024
f57dd3d
fix(SelectPanel2): only bind keydown event when necessary (#4601)
bwittenberg May 22, 2024
34a7c49
Update release_tracking to v2.1.0 (#4618)
jonrohan May 22, 2024
ed701be
refactor(Stack): write to single custom property for gap changes (#4589)
joshblack May 22, 2024
32c6870
Update Banner.tsx (#4598)
lukasoppermann May 23, 2024
e47445d
Allows asterisk in `FormControl.Label` to be adjustable (#4543)
TylerJDev May 23, 2024
4c4e98a
docs(Banner): add story for dismissing banner (#4619)
joshblack May 24, 2024
4ac81ea
Version Packages (#4616)
primer[bot] May 27, 2024
dde7cef
chore(deps-dev): bump eslint-plugin-ssr-friendly from 1.2.0 to 1.3.0 …
dependabot[bot] May 28, 2024
2b22017
Work on implementing code connect to allow for realistic code preview…
lukasoppermann May 28, 2024
42ba5dc
TreeView: Add custom aria label to TreeView.Item (#4617)
JelloBagel May 29, 2024
b1fef5c
Remove release event tracking branch check (#4631)
jonrohan May 29, 2024
e34e4b2
PageHeader: Address dom order issues (screen reader experience feedba…
broccolinisoup May 29, 2024
c5166cd
docs: add example with NavList.Group (#4629)
khiga8 May 29, 2024
afe8d7a
Release tracking (#4632)
primer[bot] May 30, 2024
43dcf55
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#4637)
dependabot[bot] Jun 3, 2024
240fa50
Bumps relative-time-element version (#4638)
lindseywild Jun 4, 2024
bd861cc
Adds `noTitle` option to RelativeTime component (#4635)
lindseywild Jun 5, 2024
4552723
Update TreeView default story to use prop `label` on TrailingVisual (…
kendallgassner Jun 5, 2024
cacc21a
chore(deps): bump @primer/octicons-react from 17.12.0 to 19.9.0 (#4624)
dependabot[bot] Jun 5, 2024
6cbbc49
fix(SegmentedControl): explicitly set the `type` attribute for `Segme…
joshblack Jun 5, 2024
65f2cd1
Add `aria-expanded` back to `AnchoredOverlay` (#4456)
TylerJDev Jun 6, 2024
d876224
chore(deps): update react, react-dom, testing-library (#4646)
joshblack Jun 6, 2024
964db80
ADR: Deprecating props in favor of more accessible prop/API (#4627)
broccolinisoup Jun 7, 2024
5a119eb
feat: add rollup-plugin-import-css (#4650)
joshblack Jun 7, 2024
d2ab5e2
Bump eslint-plugin-github and eliminate false positive (#4649)
khiga8 Jun 7, 2024
1cfb110
chore(deps-dev): bump @babel/preset-typescript from 7.24.1 to 7.24.7 …
dependabot[bot] Jun 10, 2024
c80872d
chore(deps-dev): bump postcss-preset-env from 9.3.0 to 9.5.14 (#4654)
dependabot[bot] Jun 10, 2024
5d4ac9e
chore(deps-dev): bump mdast-util-from-markdown from 2.0.0 to 2.0.1 (#…
dependabot[bot] Jun 10, 2024
c9a1c8d
Version Packages (#4642)
primer[bot] Jun 11, 2024
5c05236
refactor(project): update project to use Storybook v8 (#4644)
joshblack Jun 11, 2024
1b1387f
chore(deps): bump braces from 3.0.2 to 3.0.3 (#4662)
dependabot[bot] Jun 11, 2024
f252337
feat: add InlineMessage component (#4443)
joshblack Jun 11, 2024
eb2ab13
Trigger onClose when Dialog backdrop is clicked (#4613)
joshblack Jun 11, 2024
e2a974f
add classname prop support to PageHeader component and its children (…
ktravers Jun 13, 2024
d91b7fa
Version Packages (#4663)
primer[bot] Jun 13, 2024
623b16e
Add `labelWrap` prop to `Button` (#4527)
langermank Jun 14, 2024
b13bbb3
Prevents text color from changing on hover for "inactive" ActionMenu.…
mperrotti Jun 17, 2024
9db463c
Add example PageLayout stories for responsive sidebar patterns (#4660)
mperrotti Jun 17, 2024
edda553
chore(deps-dev): bump eslint-plugin-storybook from 0.6.15 to 0.8.0 (#…
dependabot[bot] Jun 17, 2024
5685ba4
chore(deps-dev): bump eslint-plugin-react-refresh from 0.4.6 to 0.4.7…
dependabot[bot] Jun 17, 2024
c8b3274
chore(deps-dev): bump @babel/preset-react from 7.23.3 to 7.24.7 (#4677)
dependabot[bot] Jun 17, 2024
ad17105
chore(deps-dev): bump ajv from 8.12.0 to 8.16.0 (#4678)
dependabot[bot] Jun 17, 2024
685e103
chore(deps-dev): bump filesize from 10.1.0 to 10.1.2 (#4679)
dependabot[bot] Jun 17, 2024
c093411
Convey Spinner to assistive technologies (#4140)
mperrotti Jun 17, 2024
e2f35e2
Add components to support skeleton loading states (#4052)
mperrotti Jun 18, 2024
3c467ef
Fixes for `ActionList` semantics (#4272)
TylerJDev Jun 18, 2024
3e493ba
Adds UnderlinePanels to `drafts/` (#4550)
mperrotti Jun 18, 2024
daae0b8
chore: enable moduleResolution: Bundler (#4680)
joshblack Jun 19, 2024
e957fef
chore(deps): update @primer/live-region-element to 0.7.0 (#4684)
joshblack Jun 19, 2024
0cf08f3
fix(Spinner): use aria-label when defined, falling back to srText (#4…
joshblack Jun 20, 2024
7c2de02
fix(Spinner): update visually hidden container to span (#4689)
joshblack Jun 20, 2024
48b43d8
docs(versioning): update versioning guide with css custom property ch…
joshblack Jun 21, 2024
af1cc73
fix(Spinner): update container to use span instead of div (#4692)
joshblack Jun 21, 2024
db72a71
Introduce TrailingAction to ActionList (#4634)
khiga8 Jun 21, 2024
9ee8ec9
Fix `ActionList.Item` conditional when FF is not enabled (#4695)
TylerJDev Jun 25, 2024
a2224c5
docs(versioning): update guide with changes to event handlers (#4688)
joshblack Jun 25, 2024
dddd477
Version Packages (#4674)
primer[bot] Jun 25, 2024
1403ef7
PageHeader: Fixes layout issues on title and sub components (#4669)
broccolinisoup Jun 26, 2024
390511e
Bump release event tracking to 2.1.1 (#4700)
jonrohan Jun 26, 2024
546803e
Overlay: Set style prop correctly (#4699)
siddharthkp Jun 27, 2024
55e97a9
refactor(VisuallyHidden): update base element from div to span (#4691)
joshblack Jun 27, 2024
897033e
[ADR] docs: add live-regions adr (#4611)
joshblack Jun 28, 2024
93f2ac0
Fix remaining `Axe` errors in Storybook (#4704)
TylerJDev Jun 28, 2024
eedc6b1
refactor(live-region): update live region helpers to match ADR (#4673)
joshblack Jun 28, 2024
84f862c
Version Packages (#4698)
primer[bot] Jul 1, 2024
a7d1e4f
Add TrailingAction support to NavList (#4697)
khiga8 Jul 2, 2024
823d2ac
docs(Banner): update banner docs after accessibility review (#4708)
joshblack Jul 3, 2024
89c3a08
Figma connect files (#4681)
lukasoppermann Jul 3, 2024
71859ed
ActionList: Ensure `variant` is respected when `full` (#4706)
TylerJDev Jul 3, 2024
199e384
Remove live region from `FormControl` validation (#4711)
TylerJDev Jul 3, 2024
7e644b7
Adds loading state to ActionList items (#4051)
mperrotti Jul 5, 2024
219868e
docs: add template for ADRs (#4720)
joshblack Jul 5, 2024
55d53f2
Version Packages (#4713)
primer[bot] Jul 9, 2024
7f55577
test(e2e): update test-e2e script to read playwright version automati…
joshblack Jul 9, 2024
fd80a60
feat(UnderlineNavItem): add support for icons as React.ReactElement (…
joshblack Jul 9, 2024
1976ee1
Workflow: Add label "staff" to issues and PR to help prioritisation (…
siddharthkp Jul 9, 2024
2536b49
Update the default value of `unsafeDisableTooltip` to `false` and rem…
broccolinisoup Jul 9, 2024
d773f26
IconButton: Add `keyshortcuts` prop to allow labelling and describing…
broccolinisoup Jul 11, 2024
adc8a8f
Fix border styles for `ActionList.Item` (#4735)
TylerJDev Jul 11, 2024
ba253d7
docs(Banner): update status for Banner so storybook urls are generate…
joshblack Jul 12, 2024
71bdfa8
Add support for initial focus ref to Dialog 2 (#4729)
broccolinisoup Jul 15, 2024
9ad19a5
test(SelectPanel): update tests to account for more of API (#4705)
joshblack Jul 16, 2024
c004fd5
fix(npm): update exports for UnderlinePanels (#4742)
joshblack Jul 16, 2024
caa0001
docs: Indicate the DataTable component has been reviewed for accessib…
smockle Jul 16, 2024
2ec6d14
Wrap storybook preview in <Profiler> component (#4746)
jonrohan Jul 18, 2024
c744a8e
feat(components-json): update parser to support StoryObj from storybo…
joshblack Jul 18, 2024
0f86c7a
[Storybook] Move FilteredSearch FilterList to deprecated folder (#4749)
tbenning Jul 18, 2024
9443f62
Version Packages (#4728)
primer[bot] Jul 19, 2024
6db8b2f
Promote PageHeader to Beta 🎉 (#4725)
broccolinisoup Jul 19, 2024
c7c0c47
Add missing displayName to PageHeader.TitleArea and PageHeader.Parent…
lumaxis Jul 19, 2024
cef7521
Add Textinput, textarea and treeview (#4754)
lukasoppermann Jul 19, 2024
4532793
PageHeader: Fix shrinking `Actions` sub component in Safari (#4738)
broccolinisoup Jul 22, 2024
f0fc748
add story with visual and count (#4763)
siddharthkp Jul 22, 2024
d4f23fb
experimental/SelectPanel v2: Fix heading color (#4757)
siddharthkp Jul 22, 2024
1c131f8
TextInput: Refactor `TextInputInnerAction` to use the default icon bu…
broccolinisoup Jul 23, 2024
a9fab98
feat: added support for className to <AnchoredOverlay> (#4741)
Princeyadav05 Jul 23, 2024
dfe6d2f
Added className prop to AnchoredOverlay component for custom styling …
romanpozdnov Jul 23, 2024
bd362cb
Add alt text to examples (#4767)
siddharthkp Jul 24, 2024
533f997
StateLabel: Add labels to icon (#4764)
siddharthkp Jul 24, 2024
8574027
Prevents inactive indicator icon/tooltip from appearing in ActionMenu…
mperrotti Jul 24, 2024
991839c
Un-revert "Add `loading` prop for `Button` and `IconButton` (#3582)" …
mperrotti Jul 25, 2024
801ca96
feat(react): add ScrollableRegion and useOverflow (#4719)
joshblack Jul 25, 2024
7d086c7
fix(Blankslate): update styles to prevent SSR hydration mismatch (#4710)
joshblack Jul 25, 2024
d79f6d5
Autocomplete: Fix storybook issues (#4769)
TylerJDev Jul 25, 2024
d6ca0cf
chore(deps): update @primer/behaviors to ^1.7.0 (#4777)
joshblack Jul 25, 2024
3779dbf
ActionList: Prevent double key event when `<button>` is used (#4772)
TylerJDev Jul 25, 2024
a9730c9
Bug fix: ActionList divider disappears on selected items (#4778)
langermank Jul 25, 2024
01923c3
Move `Stack` out of drafts (#4747)
langermank Jul 25, 2024
0b57996
Version Packages (#4753)
primer[bot] Jul 26, 2024
4ebacb7
chore(changeset): enter prerelease mode for v37 (#4789)
joshblack Jul 29, 2024
92e05f7
Autocomplete: Only open menu on click (#4771)
TylerJDev Jul 29, 2024
11e7aef
Prep for high contrast theme border-color changes (#4774)
langermank Jul 29, 2024
01b396a
chore: add package version numbers (#4796)
joshblack Jul 30, 2024
8977361
feat: add postcss-preset-primer (#4751)
joshblack Jul 30, 2024
04eac62
Utilize `aria-describedby` on all `ActionList` descriptions (#4666)
TylerJDev Jul 31, 2024
0fa60a4
refactor(react): move deprecated components to deprecated (#4798)
joshblack Jul 31, 2024
340318c
feat(project): add support for stylelint for linting CSS files (#4801)
joshblack Jul 31, 2024
527f9a9
fix(RelativeTime): bumps relative-time-element version (#4803)
aprendendofelipe Aug 1, 2024
b7c90ea
Header: add overflow (#4768)
siddharthkp Aug 1, 2024
66c21e9
feat(storybook): add support for feature flag toggle in toolbar (#4805)
joshblack Aug 1, 2024
a7f0ddf
docs(components): update import path to experimental (#4793)
joshblack Aug 1, 2024
482b4d6
feat(react): enable support for CSS Modules and emitting *.css files …
joshblack Aug 1, 2024
2ab2b3c
test(e2e): add vrt for blankslate (#4809)
joshblack Aug 1, 2024
9c08a31
ci: update release candidate for pre mode (#4817)
joshblack Aug 6, 2024
1cda89c
Add missing `link` variant to Button (#4814)
langermank Aug 6, 2024
955b671
ci: update hash generation for package (#4818)
joshblack Aug 6, 2024
a6f6296
Version Packages (rc) (#4797)
primer[bot] Aug 7, 2024
c0425ff
refactor(Blankslate): add support for css modules to Blankslate (#4810)
joshblack Aug 7, 2024
84d1604
Add `variant` prop to Heading (#4806)
langermank Aug 7, 2024
b85d505
Add `className` prop to `FormControl` (#4824)
iansan5653 Aug 7, 2024
c043cdc
document "hideTitle" prop (#4826)
ktravers Aug 8, 2024
f9bc73c
export FilteredActionList (#4816)
siddharthkp Aug 8, 2024
ab15dcf
Adding a workflow for scanning component files for stats (#4833)
jonrohan Aug 8, 2024
75cbb2a
Add text alternatives to Octicons in `Timeline` stories (#4820)
TylerJDev Aug 9, 2024
e74e581
chore(deps): Bump eslint-plugin-primer-react to v5.4.0 and update the…
broccolinisoup Aug 11, 2024
7ce1fda
Add `size` and `weight` props to `Text` (#4834)
langermank Aug 12, 2024
41b75de
test(e2e): update e2e tests for link (#4825)
joshblack Aug 12, 2024
529e1a3
SelectPanel: Add stories and tests for documentation purposes (#4829)
broccolinisoup Aug 12, 2024
6c60473
feat: add experimental Label component
joshblack Apr 25, 2024
1429187
chore: run format
joshblack Apr 25, 2024
9e4ea79
test(vrt): update snapshots
joshblack Apr 25, 2024
3b2b151
rename + agree to use color2k
langermank May 9, 2024
aa84f41
adding color algo for hex colors
lukasoppermann Jul 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .changeset/afraid-beds-lick.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/beige-schools-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Add `link` variant to Button
5 changes: 5 additions & 0 deletions .changeset/clever-birds-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Add `variant` prop to Heading for small, medium and large styles
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["docs", "example-*"]
"ignore": ["docs", "example-*", "codesandbox"]
}
5 changes: 5 additions & 0 deletions .changeset/dry-trainers-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': major
---

Update Primer React to emit *.css files that are imported by emitted *.js files for styling
7 changes: 7 additions & 0 deletions .changeset/fluffy-ravens-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@primer/react": patch
---

- Adjust checkbox and radio border color values for high contrast themes
- Add default border to SegmentedControl
- Add inset box-shadow to StatusLabel to prep for new border-color in dark high contrast
5 changes: 5 additions & 0 deletions .changeset/four-shoes-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

Set `openOnFocus` default to `false`, making the menu closed initially rather than opening on focus of input
5 changes: 5 additions & 0 deletions .changeset/four-tables-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

Add the deprecated Dialog, Octicon, Pagehead, TabNav, and Tooltip components to @primer/react/deprecated
5 changes: 5 additions & 0 deletions .changeset/gold-cups-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Add `size` and `weight` props to `Text`
5 changes: 5 additions & 0 deletions .changeset/honest-ligers-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

chore(deps): Update eslint-plugin-primer-react to latest
5 changes: 5 additions & 0 deletions .changeset/lovely-days-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

ActionList: Adds `aria-labelledby` to `ActionList.TrailingVisual`, making it part of the accessible name of `ActionList.Item`
5 changes: 5 additions & 0 deletions .changeset/moody-rivers-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Header: Add overflow when there are a lot of items
5 changes: 5 additions & 0 deletions .changeset/new-shirts-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

FilteredActionList: export `FilteredActionList` from '@primer/react/experimental'
24 changes: 24 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"mode": "pre",
"tag": "rc",
"initialVersions": {
"docs": "1.0.0",
"codesandbox": "0.0.0",
"example-app-router": "0.0.0",
"example-consumer-test": "0.0.0",
"example-nextjs": "0.0.0",
"@primer/react": "36.27.0",
"rollup-plugin-import-css": "0.0.0",
"postcss-preset-primer": "0.0.0"
},
"changesets": [
"beige-schools-kneel",
"dry-trainers-protect",
"fluffy-ravens-thank",
"four-shoes-yell",
"four-tables-glow",
"lovely-days-march",
"moody-rivers-impress",
"young-meals-worry"
]
}
5 changes: 0 additions & 5 deletions .changeset/rare-rings-argue.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaggy-kids-rest.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/tall-wasps-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

Adds new `className` prop to `FormControl` component
5 changes: 5 additions & 0 deletions .changeset/tough-pans-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

Update Blankslate component to use CSS Modules behind a feature flag
5 changes: 5 additions & 0 deletions .changeset/young-meals-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Bumps @github/relative-time-element to v4.4.2
9 changes: 6 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ module.exports = {
camelcase: [
'error',
{
allow: ['dark_dimmed'],
allow: [
'dark_dimmed',
// Allow feature flag names that start with `primer_react_`
'^primer_react_',
],
},
],
'primer-react/no-deprecated-colors': ['warn', {checkAllStrings: true}],

// Overrides from updating plugin:github
'filenames/match-regex': 'off',
Expand All @@ -85,6 +88,7 @@ module.exports = {
'github/no-inner-html': 'off',
'github/role-supports-aria-props': 'off',
'no-restricted-syntax': 'off',
'primer-react/a11y-use-next-tooltip': 'off',
},
overrides: [
// rules which apply only to JS
Expand Down Expand Up @@ -237,7 +241,6 @@ module.exports = {
'jsx-a11y/label-has-for': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'primer-react/no-deprecated-colors': ['error', {skipImportCheck: true}],
'no-redeclare': 'off',
'ssr-friendly/no-dom-globals-in-module-scope': 'off',
'ssr-friendly/no-dom-globals-in-react-fc': 'off',
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/add_staff_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Add Staff Label

on:
issues:
types: [opened, reopened]
pull_request:
types: [opened, reopened]

jobs:
add-staff-label:
if: ${{ github.repository == 'primer/react' }}
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Add label to issue
if: ${{ github.event.issue.author_association == 'MEMBER' }}
run: |
gh issue edit ${{github.event.issue.html_url}} --add-label staff
- name: Add label to pull_request
if: ${{ github.event.pull_request.author_association == 'MEMBER' }}
run: |
gh pr edit ${{github.event.pull_request.html_url}} --add-label staff
18 changes: 9 additions & 9 deletions .github/workflows/assign_release_conductor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,6 @@ jobs:
return user.login === PREV_RELEASE_CONDUCTOR;
});

if (hasPreviousReviewer) {
await github.rest.pulls.removeRequestedReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: PR_NUMBER,
reviewers: [PREV_RELEASE_CONDUCTOR],
});
}

// Add the current release conductor as an assignee if they are not currently assigned
const hasAssignee = pull.assignees.find((assignee) => {
return assignee.login === RELEASE_CONDUCTOR;
Expand All @@ -101,3 +92,12 @@ jobs:
reviewers: [RELEASE_CONDUCTOR]
})
}

if (hasPreviousReviewer) {
await github.rest.pulls.removeRequestedReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: PR_NUMBER,
reviewers: [PREV_RELEASE_CONDUCTOR],
});
}
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
run: npm ci
- name: Lint JavaScript
run: npm run lint
- name: Lint CSS
run: npm run lint:css
- name: Lint markdown
run: npm run lint:md

Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/codescan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: 'Code Scan'

on:
schedule:
- cron: '0 * * * *'

jobs:
codescan:
name: Scan the repository
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci

- uses: actions/github-script@v7
id: file-counts
with:
script: |
const fg = require('fast-glob')
const fs = require('fs')
const path = require('path')
const files = await fg.glob(['packages/react/src/**/*.tsx', 'packages/react/src/**/*.module.css'], {
ignore: [
'**/__tests__/**',
'**/_*.tsx',
'**/*.figma.tsx',
'**/*.stories.tsx',
'**/*.test.tsx',
'**/CSSComponent/**',
'**/hooks/**',
'**/index.tsx',
'**/utils/**',
],
})

const metrics = []

for (const file of files) {
const content = fs.readFileSync(file, 'utf8')
const name = path.parse(file).name.replace('.module', '')
if (file.endsWith('.tsx')) {
const matched = content.match(/.`$([^`]*)^`$/gm)
if (matched) {
const count = matched.join('\n').split('\n').length
metrics.push(
`- type: "count"\n name: "primer.react.styled-system.count"\n value: ${count}\n tags:\n - "path:${file}"\n - "component:${name}"`,
)
}
} else {
const count = content.split('\n').length
metrics.push(
`- type: "count"\n name: "primer.react.css-module.count"\n value: ${count}\n tags:\n - "path:${file}"\n - "component:${name}"`,
)
}
}

core.setOutput('metrics', metrics.join('\n'))

- name: Build count
uses: masci/datadog@v1
with:
api-key: ${{ secrets.datadog_api_key }}
metrics: ${{ steps.file-counts.outputs.metrics }}
2 changes: 1 addition & 1 deletion .github/workflows/consumer_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build @primer/react
run: npm run build -w @primer/react
run: npm run build -w rollup-plugin-import-css -w @primer/react
# Output the artifact as a tarball in `consumer-test`. Write the
# information for this package in `consumer-test/pack.json` so we can read
# from it later to install the package
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/figma_connect_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Figma Connect Publish on Change

on:
push:
paths:
- packages/react/src/components/**/*.figma.tsx
branches:
- main

jobs:
code-connect:
name: Code Connect
runs-on: ubuntu-latest
steps:
- run: npx figma connect publish
env:
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}
5 changes: 5 additions & 0 deletions .github/workflows/release_canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
- name: Publish canary release
run: |
# Remove existing pre.json if one exists. Snapshots are not allowed
# in pre-release mode.
# TODO: remove in v37
rm .changeset/pre.json

echo -e "---\n$( jq .name packages/react/package.json ): patch\n---\n\nFake entry to force publishing" > .changeset/force-snapshot-release.md
npx changeset version --snapshot
npx changeset publish --tag canary
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/release_candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,19 @@ jobs:

- name: Publish release candidate
run: |
# Remove existing pre.json if one exists. Snapshots are not allowed
# in pre-release mode.
# TODO: remove in v37
rm .changeset/pre.json

pkg_json_path=packages/react/package.json
version=$(jq -r .version $pkg_json_path)
echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path

# Update how the version is generated in these prereleases. By
# default, -rc. is included in versions when `pre.json` is present.
# Add this back in when we exit the v37 release
# TODO: remove in v37
echo "$( jq ".version = \"$(echo $version).$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
npx changeset publish --tag next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release_tracking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release Event Tracking
# Measure a datadog event every time a release occurs

on:
pull_request:
types:
- closed
- opened
- reopened

release:
types: [published]

jobs:
release-tracking:
name: Release Tracking
uses: primer/.github/.github/workflows/[email protected]
secrets:
datadog_api_key: ${{ secrets.DATADOG_API_KEY }}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading