diff --git a/.changeset/angry-files-leave.md b/.changeset/angry-files-leave.md deleted file mode 100644 index b9f2159c2e..0000000000 --- a/.changeset/angry-files-leave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': patch ---- - -Tweak Overlay CSS to account for cases where the browser supports :open, :popover-open, both, or neither. diff --git a/.changeset/calm-moles-design.md b/.changeset/calm-moles-design.md deleted file mode 100644 index f2495e8ad7..0000000000 --- a/.changeset/calm-moles-design.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/view-components": patch ---- - -Update color vars for `Button` with counter diff --git a/.changeset/chilly-mails-agree.md b/.changeset/chilly-mails-agree.md deleted file mode 100644 index 37b85181de..0000000000 --- a/.changeset/chilly-mails-agree.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/view-components": patch ---- - -dont open dialog if button is aria-disabled diff --git a/.changeset/famous-moles-flash.md b/.changeset/famous-moles-flash.md deleted file mode 100644 index c5e07e29d1..0000000000 --- a/.changeset/famous-moles-flash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': patch ---- - -Fix ActionMenu staying open when focus moved, in browsers with native popover diff --git a/.changeset/flat-bulldogs-juggle.md b/.changeset/flat-bulldogs-juggle.md deleted file mode 100644 index 51995d57a3..0000000000 --- a/.changeset/flat-bulldogs-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': patch ---- - -NavList: Add aria-current to active nav item diff --git a/.changeset/forty-hairs-grin.md b/.changeset/forty-hairs-grin.md deleted file mode 100644 index 4a88439e72..0000000000 --- a/.changeset/forty-hairs-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': patch ---- - -Don't use aria-disabled for buttons diff --git a/.changeset/forty-jokes-punch.md b/.changeset/forty-jokes-punch.md deleted file mode 100644 index e133cb5cf1..0000000000 --- a/.changeset/forty-jokes-punch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/view-components": patch ---- - -Update `ButtonGroup` to use `Beta::Button` diff --git a/.changeset/fresh-ravens-help.md b/.changeset/fresh-ravens-help.md deleted file mode 100644 index 484e8adb28..0000000000 --- a/.changeset/fresh-ravens-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': patch ---- - -Fix text_field.pcss to use flex-start instead of start diff --git a/.changeset/friendly-buses-thank.md b/.changeset/friendly-buses-thank.md deleted file mode 100644 index edf77cd340..0000000000 --- a/.changeset/friendly-buses-thank.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/view-components": patch ---- - -Bug fix: Text field validation wrap styles diff --git a/.changeset/gorgeous-paws-lay.md b/.changeset/gorgeous-paws-lay.md deleted file mode 100644 index 9a3f155a90..0000000000 --- a/.changeset/gorgeous-paws-lay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': minor ---- - -ActionMenu: Move aria-checked to button diff --git a/.changeset/mighty-cameras-train.md b/.changeset/mighty-cameras-train.md deleted file mode 100644 index 72818ffe3b..0000000000 --- a/.changeset/mighty-cameras-train.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/view-components": patch ---- - -Add event.stopPropogation to enter event diff --git a/.changeset/mighty-pandas-pump.md b/.changeset/mighty-pandas-pump.md deleted file mode 100644 index 0e582e14d6..0000000000 --- a/.changeset/mighty-pandas-pump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': patch ---- - -ActionMenu: don't swallow events attached via addEventListener diff --git a/.changeset/moody-pens-cry.md b/.changeset/moody-pens-cry.md deleted file mode 100644 index 940f9b1172..0000000000 --- a/.changeset/moody-pens-cry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': patch ---- - -Fix keyboard functionality with deferred loading in ActionMenu diff --git a/.changeset/new-experts-nail.md b/.changeset/new-experts-nail.md deleted file mode 100644 index 68da216a86..0000000000 --- a/.changeset/new-experts-nail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': minor ---- - -Use polymorphic slots in ActionList and NavList diff --git a/.changeset/popular-apes-juggle.md b/.changeset/popular-apes-juggle.md deleted file mode 100644 index 78d404647d..0000000000 --- a/.changeset/popular-apes-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': patch ---- - -ActionMenu: enable focussing first element on space activation diff --git a/.changeset/rotten-kiwis-change.md b/.changeset/rotten-kiwis-change.md deleted file mode 100644 index 430ab66288..0000000000 --- a/.changeset/rotten-kiwis-change.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@primer/view-components": patch ---- - -- Remove manual fallbacks for CSS vars -- Update PostCSS plugin to add fallbacks at build time diff --git a/.changeset/seven-vans-brake.md b/.changeset/seven-vans-brake.md deleted file mode 100644 index df721caf81..0000000000 --- a/.changeset/seven-vans-brake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/view-components": patch ---- - -ButtonGroup: Change reset selector to use .Button class diff --git a/.changeset/tall-ducks-brake.md b/.changeset/tall-ducks-brake.md deleted file mode 100644 index 485d01769a..0000000000 --- a/.changeset/tall-ducks-brake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': minor ---- - -Fix disabled button behavior diff --git a/.changeset/tidy-plums-pay.md b/.changeset/tidy-plums-pay.md deleted file mode 100644 index 72cbfbbdb7..0000000000 --- a/.changeset/tidy-plums-pay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/view-components": patch ---- - -Preserve aria-label when `Primer::Beta::IconButton` `show_tooltip` is false diff --git a/.changeset/tiny-lions-leave.md b/.changeset/tiny-lions-leave.md deleted file mode 100644 index 1e068f11f8..0000000000 --- a/.changeset/tiny-lions-leave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': patch ---- - -Bump popover-polyfill to latest version diff --git a/.changeset/violet-keys-share.md b/.changeset/violet-keys-share.md deleted file mode 100644 index f2b87d0c2d..0000000000 --- a/.changeset/violet-keys-share.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/view-components': minor ---- - -Allow Beta::Details to be disabled diff --git a/.changeset/young-peaches-hear.md b/.changeset/young-peaches-hear.md deleted file mode 100644 index f3e2f14493..0000000000 --- a/.changeset/young-peaches-hear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/view-components": patch ---- - -Add `@primer/primitives` dependency to docs diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d4d2ed6a0..348e360742 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,56 @@ # CHANGELOG +## 0.2.0 + +### Minor Changes + +- [#2060](https://github.com/primer/view_components/pull/2060) [`bc40f586`](https://github.com/primer/view_components/commit/bc40f586293a26e977a9b96e538aa5fe92ac5bb1) Thanks [@camertron](https://github.com/camertron)! - ActionMenu: Move aria-checked to button + +* [#2042](https://github.com/primer/view_components/pull/2042) [`9c53f8e0`](https://github.com/primer/view_components/commit/9c53f8e0c158e2f1c6618bf1a2635e4a41021fbb) Thanks [@camertron](https://github.com/camertron)! - Use polymorphic slots in ActionList and NavList + +- [#2070](https://github.com/primer/view_components/pull/2070) [`04fc4f1b`](https://github.com/primer/view_components/commit/04fc4f1baec39993df468d0c9ca4a03803462186) Thanks [@camertron](https://github.com/camertron)! - Fix disabled button behavior + +* [#2074](https://github.com/primer/view_components/pull/2074) [`b39eae8c`](https://github.com/primer/view_components/commit/b39eae8cd033089d3782c4552f9001a71eeceddf) Thanks [@camertron](https://github.com/camertron)! - Allow Beta::Details to be disabled + +### Patch Changes + +- [#2055](https://github.com/primer/view_components/pull/2055) [`5911ff9c`](https://github.com/primer/view_components/commit/5911ff9c3e22e3b52e435a0b7ed54ea97358621c) Thanks [@keithamus](https://github.com/keithamus)! - Tweak Overlay CSS to account for cases where the browser supports :open, :popover-open, both, or neither. + +* [#2008](https://github.com/primer/view_components/pull/2008) [`53190440`](https://github.com/primer/view_components/commit/531904404a962620cca734f1582f0771bd47a125) Thanks [@langermank](https://github.com/langermank)! - Update color vars for `Button` with counter + +- [#2021](https://github.com/primer/view_components/pull/2021) [`7abf0965`](https://github.com/primer/view_components/commit/7abf09658d28640efe278bd00a3d1d03dab3e3e5) Thanks [@keithamus](https://github.com/keithamus)! - dont open dialog if button is aria-disabled + +* [#2006](https://github.com/primer/view_components/pull/2006) [`7282911b`](https://github.com/primer/view_components/commit/7282911ba38b2f11681e2a558e189cf2e6174bd4) Thanks [@keithamus](https://github.com/keithamus)! - Fix ActionMenu staying open when focus moved, in browsers with native popover + +- [#2075](https://github.com/primer/view_components/pull/2075) [`2eb286f2`](https://github.com/primer/view_components/commit/2eb286f2c3f5171b52c6e64b70e1602230fc6e75) Thanks [@camertron](https://github.com/camertron)! - NavList: Add aria-current to active nav item + +* [#2077](https://github.com/primer/view_components/pull/2077) [`fe578c16`](https://github.com/primer/view_components/commit/fe578c166da02173680e4825113ede4c94b9be43) Thanks [@camertron](https://github.com/camertron)! - Don't use aria-disabled for buttons + +- [#2013](https://github.com/primer/view_components/pull/2013) [`b7207d27`](https://github.com/primer/view_components/commit/b7207d27b23c77ea7280cc4175c6d665897e8e40) Thanks [@langermank](https://github.com/langermank)! - Update `ButtonGroup` to use `Beta::Button` + +* [#2073](https://github.com/primer/view_components/pull/2073) [`c4ada3b1`](https://github.com/primer/view_components/commit/c4ada3b1d567f6e819f8321e71d977c16f3215eb) Thanks [@camertron](https://github.com/camertron)! - Fix text_field.pcss to use flex-start instead of start + +- [#2032](https://github.com/primer/view_components/pull/2032) [`607889bc`](https://github.com/primer/view_components/commit/607889bc18c4a4ec98dd966940bb361d272f5f60) Thanks [@langermank](https://github.com/langermank)! - Bug fix: Text field validation wrap styles + +* [#2069](https://github.com/primer/view_components/pull/2069) [`532095e9`](https://github.com/primer/view_components/commit/532095e957b072337ed1707ebc5289990b6d8d56) Thanks [@jalafel](https://github.com/jalafel)! - Add event.stopPropogation to enter event + +- [#2071](https://github.com/primer/view_components/pull/2071) [`c0fa71ec`](https://github.com/primer/view_components/commit/c0fa71ecf718a184b73bdfae5c799efb755ece3d) Thanks [@camertron](https://github.com/camertron)! - ActionMenu: don't swallow events attached via addEventListener + +* [#2059](https://github.com/primer/view_components/pull/2059) [`bf60d7d7`](https://github.com/primer/view_components/commit/bf60d7d703752b9a6c096c8d1b1bd2fd0558a607) Thanks [@camertron](https://github.com/camertron)! - Fix keyboard functionality with deferred loading in ActionMenu + +- [#2027](https://github.com/primer/view_components/pull/2027) [`f6d9fe97`](https://github.com/primer/view_components/commit/f6d9fe9741b66751a3c89cdfb5637a111ec4170b) Thanks [@keithamus](https://github.com/keithamus)! - ActionMenu: enable focussing first element on space activation + +* [#2058](https://github.com/primer/view_components/pull/2058) [`3e50e06c`](https://github.com/primer/view_components/commit/3e50e06c308487b97aa5bf12bdc0c8eef66ba086) Thanks [@jonrohan](https://github.com/jonrohan)! - - Remove manual fallbacks for CSS vars + - Update PostCSS plugin to add fallbacks at build time + +- [#2072](https://github.com/primer/view_components/pull/2072) [`70086f5e`](https://github.com/primer/view_components/commit/70086f5e3cbdd360cf85a34de34df83d063652d3) Thanks [@jonrohan](https://github.com/jonrohan)! - ButtonGroup: Change reset selector to use .Button class + +* [#2025](https://github.com/primer/view_components/pull/2025) [`2d1f5074`](https://github.com/primer/view_components/commit/2d1f50747714706f93b8bc64495a56fb72b3e24e) Thanks [@strackoverflow](https://github.com/strackoverflow)! - Preserve aria-label when `Primer::Beta::IconButton` `show_tooltip` is false + +- [#2023](https://github.com/primer/view_components/pull/2023) [`b47a3781`](https://github.com/primer/view_components/commit/b47a37811147af663358cb055fe9ac79701caf43) Thanks [@camertron](https://github.com/camertron)! - Bump popover-polyfill to latest version + +* [#2033](https://github.com/primer/view_components/pull/2033) [`54ed872b`](https://github.com/primer/view_components/commit/54ed872bfb08b8fb07fb9fc9c057627419c601ca) Thanks [@langermank](https://github.com/langermank)! - Add `@primer/primitives` dependency to docs + ## 0.1.9 ### Patch Changes diff --git a/Gemfile.lock b/Gemfile.lock index 0a1ed73f53..a26ccb1235 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - primer_view_components (0.1.9) + primer_view_components (0.2.0) actionview (>= 5.0.0) activesupport (>= 5.0.0) octicons (>= 18.0.0) @@ -121,7 +121,7 @@ GEM racc (~> 1.4) nokogiri (1.14.0-x86_64-linux) racc (~> 1.4) - octicons (19.1.0) + octicons (19.2.0) parallel (1.22.1) parser (3.2.0.0) ast (~> 2.4.1) diff --git a/demo/Gemfile.lock b/demo/Gemfile.lock index 55963a8b9d..a3a1372397 100644 --- a/demo/Gemfile.lock +++ b/demo/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - primer_view_components (0.1.9) + primer_view_components (0.2.0) actionview (>= 5.0.0) activesupport (>= 5.0.0) octicons (>= 18.0.0) @@ -271,7 +271,7 @@ GEM racc (~> 1.4) nokogiri (1.15.2-x86_64-linux) racc (~> 1.4) - octicons (19.1.0) + octicons (19.2.0) oj (3.14.0) os (1.1.4) pry (0.14.1) diff --git a/lib/primer/view_components/version.rb b/lib/primer/view_components/version.rb index 49baebf327..c3e2f38672 100644 --- a/lib/primer/view_components/version.rb +++ b/lib/primer/view_components/version.rb @@ -5,8 +5,8 @@ module Primer module ViewComponents module VERSION MAJOR = 0 - MINOR = 1 - PATCH = 9 + MINOR = 2 + PATCH = 0 STRING = [MAJOR, MINOR, PATCH].join(".") end diff --git a/package-lock.json b/package-lock.json index 88c5320dcc..4120459eed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@primer/view-components", - "version": "0.1.9", + "version": "0.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@primer/view-components", - "version": "0.1.9", + "version": "0.2.0", "license": "MIT", "dependencies": { "@github/auto-check-element": "^5.2.0", diff --git a/package.json b/package.json index 82a556cd00..6d140213b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@primer/view-components", - "version": "0.1.9", + "version": "0.2.0", "description": "ViewComponents for the Primer Design System", "main": "app/assets/javascripts/primer_view_components.js", "module": "app/components/primer/primer.js",