@primer/react 0.0.0-20260814135639 → 0.0.0-20260819123220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260814135639
3
+ ## 0.0.0-20260819123220
4
4
 
5
5
  ### Minor Changes
6
6
 
7
+ - [#8320](https://github.com/primer/react/pull/8320) [`d711274`](https://github.com/primer/react/commit/d7112747cee1fab22dfb0030bd455a971dcb3dfd) Thanks [@mattcosta7](https://github.com/mattcosta7)! - ActionBar: Add `activeAnchorRef` to action buttons for overlays that need the action's currently visible trigger. Anchored overlay render functions now receive their reactive anchor ref as an optional second argument.
8
+
7
9
  - [#8212](https://github.com/primer/react/pull/8212) [`9ac9343`](https://github.com/primer/react/commit/9ac9343a70fd0f70413a42cd27baf562a74dd4fc) Thanks [@mattcosta7](https://github.com/mattcosta7)! - ThemeProvider: Add a CSS-variable-based implementation to `@primer/react/next`
8
10
  and deprecate the legacy JavaScript theme implementation.
9
11
 
10
- - [#8233](https://github.com/primer/react/pull/8233) [`6cbfecc`](https://github.com/primer/react/commit/6cbfecc13c8f9ae4315c84774752d4408f9d2616) Thanks [@rickyzhangca](https://github.com/rickyzhangca)! - UnderlinePanels: add controlled `value`/`defaultValue`/`onChange` and `activationMode` props, keyed to a per-`Tab`/`Panel` `value`, for data-driven tabs. Behind the `primer_react_underline_panels_controlled` feature flag; the existing `aria-selected`/`onSelect` API is unchanged.
11
-
12
12
  - [#8303](https://github.com/primer/react/pull/8303) [`a88cc69`](https://github.com/primer/react/commit/a88cc693539e2b9aa836623c737e860e7203e73a) Thanks [@TylerJDev](https://github.com/TylerJDev)! - NavList: Add a `tooltipText` prop to items
13
13
 
14
14
  ### Patch Changes
@@ -34,12 +34,16 @@ type ActionBarProps = {
34
34
  */
35
35
  gap?: GapScale;
36
36
  } & A11yProps;
37
- type ActionBarIconButtonProps = {
37
+ type ActiveAnchorProps = {
38
38
  disabled?: boolean;
39
- } & IconButtonProps;
40
- type ActionBarButtonProps = {
41
- disabled?: boolean;
42
- } & ButtonProps;
39
+ /**
40
+ * Receives the visible trigger representing this action. Points to this button while inline and the ActionBar
41
+ * overflow button while this action is overflowing.
42
+ */
43
+ activeAnchorRef?: React.Ref<HTMLButtonElement>;
44
+ };
45
+ type ActionBarIconButtonProps = ActiveAnchorProps & IconButtonProps;
46
+ type ActionBarButtonProps = ActiveAnchorProps & ButtonProps;
43
47
  type ActionBarMenuItemProps = ({
44
48
  /**
45
49
  * Type of menu item to be rendered in the menu (action | group).