@primer/react 0.0.0-20260814130501 → 0.0.0-20260818135516

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/dist/ActionBar/ActionBar.d.ts +9 -5
  3. package/dist/ActionBar/ActionBar.js +549 -160
  4. package/dist/ActionBar/index.d.ts +1 -0
  5. package/dist/ActionList/Group-d89306a8.css +2 -0
  6. package/dist/ActionList/Group-d89306a8.css.map +1 -0
  7. package/dist/ActionList/Group.module.css.js +2 -2
  8. package/dist/ActionList/Heading.js +2 -1
  9. package/dist/ActionList/Item.js +282 -277
  10. package/dist/ActionList/LinkItem.js +11 -3
  11. package/dist/ActionList/index.d.ts +3 -0
  12. package/dist/ActionList/shared.d.ts +4 -0
  13. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +1 -1
  14. package/dist/AnchoredOverlay/AnchoredOverlay.js +84 -61
  15. package/dist/AvatarStack/{AvatarStack-9bb5649f.css → AvatarStack-e6a99916.css} +2 -2
  16. package/dist/AvatarStack/AvatarStack-e6a99916.css.map +1 -0
  17. package/dist/AvatarStack/AvatarStack.module.css.js +1 -1
  18. package/dist/CounterLabel/CounterLabel.js +5 -2
  19. package/dist/Details/Details.js +2 -1
  20. package/dist/Dialog/Dialog.js +3 -2
  21. package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -2
  22. package/dist/NavList/NavList.d.ts +4 -2
  23. package/dist/NavList/NavList.js +87 -45
  24. package/dist/PageHeader/PageHeader.js +2 -1
  25. package/dist/Popover/Popover.d.ts +1 -0
  26. package/dist/Popover/Popover.js +84 -47
  27. package/dist/Portal/Portal.js +91 -29
  28. package/dist/Radio/Radio.js +1 -1
  29. package/dist/SelectPanel/SelectPanel.js +28 -27
  30. package/dist/ThemeContext.d.ts +20 -0
  31. package/dist/ThemeProvider.d.ts +3 -0
  32. package/dist/ThemeProvider.js +39 -129
  33. package/dist/TooltipV2/Tooltip.js +3 -2
  34. package/dist/TreeView/TreeView.js +0 -1
  35. package/dist/UnderlineNav/UnderlineNav.d.ts +3 -2
  36. package/dist/UnderlineNav/UnderlineNav.js +1 -1
  37. package/dist/deprecated/ActionList/List.js +2 -1
  38. package/dist/deprecated/ActionMenu.js +2 -2
  39. package/dist/experimental/SelectPanel2/SelectPanel.js +7 -4
  40. package/dist/experimental/Tabs/Tabs.js +19 -33
  41. package/dist/experimental/Tabs/types.d.ts +0 -6
  42. package/dist/experimental/Tabs/useTab.js +1 -6
  43. package/dist/experimental/Tabs/useTabList.js +22 -29
  44. package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +1 -38
  45. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +18 -69
  46. package/dist/hooks/useFocusZone.js +2 -1
  47. package/dist/hooks/useMenuInitialFocus.js +72 -57
  48. package/dist/hooks/useOpenAndCloseFocus.js +5 -2
  49. package/dist/internal/components/ThemeProviderBase.js +50 -0
  50. package/dist/internal/hooks/useThemeProvider.js +71 -0
  51. package/dist/legacy-theme/ts/color-schemes.js +3942 -3942
  52. package/dist/next/ThemeProvider.d.ts +7 -0
  53. package/dist/next/ThemeProvider.js +35 -0
  54. package/dist/next/index.d.ts +4 -1
  55. package/dist/next/index.js +3 -1
  56. package/dist/theme.d.ts +16 -54
  57. package/dist/useTheme.d.ts +2 -14
  58. package/generated/components.json +28 -58
  59. package/generated/hooks.json +2 -7
  60. package/package.json +8 -10
  61. package/dist/ActionList/Group-efcb39da.css +0 -2
  62. package/dist/ActionList/Group-efcb39da.css.map +0 -1
  63. package/dist/AvatarStack/AvatarStack-9bb5649f.css.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,15 +1,38 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260814130501
3
+ ## 0.0.0-20260818135516
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - [#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.
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 a second argument.
8
+
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`
10
+ and deprecate the legacy JavaScript theme implementation.
11
+
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
8
13
 
9
14
  ### Patch Changes
10
15
 
16
+ - [#8276](https://github.com/primer/react/pull/8276) [`5069f8a`](https://github.com/primer/react/commit/5069f8a7cb95544ce14122e97d67c8a1279f8a08) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Portal: Render nothing while server rendering and during hydration instead of accessing the DOM during render, fixing server rendering support. Client-only renders are unchanged and still mount portaled content in the same commit.
17
+
11
18
  - Fake entry to force publishing
12
19
 
20
+ - [#8260](https://github.com/primer/react/pull/8260) [`24d0831`](https://github.com/primer/react/commit/24d0831d34b13e3b4bac8afcfa2ccd5795cd9a9d) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - UnderlineNav: Keep item icons visible by default at the medium breakpoint and above
21
+
22
+ ## 38.35.1
23
+
24
+ ### Patch Changes
25
+
26
+ - [#8258](https://github.com/primer/react/pull/8258) [`edbcd94`](https://github.com/primer/react/commit/edbcd942354ff45148c2623be8b543ef8789a20f) Thanks [@llastflowers](https://github.com/llastflowers)! - Update `AvatarStack` to not reserve space when collapsed
27
+
28
+ - [#8273](https://github.com/primer/react/pull/8273) [`0c1e401`](https://github.com/primer/react/commit/0c1e401b6b0d57f95f8115ea90af78281751a766) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - NavList: Exclude group headings from navigation list item counts
29
+
30
+ ## 38.35.0
31
+
32
+ ### Minor Changes
33
+
34
+ - [#8253](https://github.com/primer/react/pull/8253) [`da3df9a`](https://github.com/primer/react/commit/da3df9aba582c7bcedbe69f1bdc5ab64ac90d32b) Thanks [@llastflowers](https://github.com/llastflowers)! - Add default Esc-to-dismiss support to `Popover` component
35
+
13
36
  ## 38.34.0
14
37
 
15
38
  ### Minor 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).