@primer/react 0.0.0-20260819151913 → 0.0.0-20260824175215

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 (32) hide show
  1. package/CHANGELOG.md +12 -4
  2. package/dist/ActionBar/ActionBar.d.ts +5 -9
  3. package/dist/ActionBar/ActionBar.js +164 -551
  4. package/dist/ActionBar/index.d.ts +2 -1
  5. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +1 -2
  6. package/dist/AnchoredOverlay/AnchoredOverlay.js +61 -84
  7. package/dist/Button/ButtonBase-b44e29d1.css +2 -0
  8. package/dist/Button/ButtonBase-b44e29d1.css.map +1 -0
  9. package/dist/Button/ButtonBase.d.ts +5 -2
  10. package/dist/Button/ButtonBase.js +4 -2
  11. package/dist/Button/ButtonBase.module.css.js +3 -2
  12. package/dist/Button/types.d.ts +15 -1
  13. package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
  14. package/dist/Flash/Flash.d.ts +6 -0
  15. package/dist/Flash/Flash.js +6 -0
  16. package/dist/SelectPanel/SelectPanel.d.ts +1 -0
  17. package/dist/SelectPanel/SelectPanel.js +2 -2
  18. package/dist/deprecated/ActionMenu.js +2 -2
  19. package/dist/deprecated/index.d.ts +2 -1
  20. package/dist/deprecated/index.js +2 -1
  21. package/dist/experimental/SelectPanel2/SelectPanel.d.ts +1 -0
  22. package/dist/experimental/Tabs/Tabs.js +33 -19
  23. package/dist/experimental/Tabs/types.d.ts +6 -0
  24. package/dist/experimental/Tabs/useTab.js +6 -1
  25. package/dist/experimental/Tabs/useTabList.js +29 -22
  26. package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +38 -1
  27. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +69 -18
  28. package/dist/hooks/useOpenAndCloseFocus.js +2 -5
  29. package/generated/components.json +66 -25
  30. package/package.json +1 -1
  31. package/dist/Button/ButtonBase-311501b9.css +0 -2
  32. package/dist/Button/ButtonBase-311501b9.css.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,16 +1,24 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260819151913
3
+ ## 0.0.0-20260824175215
4
+
5
+ ### Patch Changes
6
+
7
+ - Fake entry to force publishing
8
+
9
+ ## 38.37.0
4
10
 
5
11
  ### Minor Changes
6
12
 
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.
13
+ - [#8311](https://github.com/primer/react/pull/8311) [`b111781`](https://github.com/primer/react/commit/b1117811cebfb9463f20fe76f77cdf13917ae6b2) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Button: Add configurable notification indicators to Button and IconButton
14
+
15
+ - [#8306](https://github.com/primer/react/pull/8306) [`a3afd7b`](https://github.com/primer/react/commit/a3afd7baf05ea6c4a272a40ccb636f20a48f87dc) Thanks [@llastflowers](https://github.com/llastflowers)! - Deprecate the `Flash` component and move to `@primer/react/deprecated`
8
16
 
9
17
  - [#8295](https://github.com/primer/react/pull/8295) [`bfebb8a`](https://github.com/primer/react/commit/bfebb8a538e6f068a457722b154799876bda3ab4) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Textarea: Add an `autoSize` option that allows the field to grow with its content
10
18
 
11
- ### Patch Changes
19
+ - [#8233](https://github.com/primer/react/pull/8233) [`80a68cf`](https://github.com/primer/react/commit/80a68cf05226323ad8cbc0531f244d60ea6747e3) 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.
12
20
 
13
- - Fake entry to force publishing
21
+ ### Patch Changes
14
22
 
15
23
  - [#8304](https://github.com/primer/react/pull/8304) [`88feb65`](https://github.com/primer/react/commit/88feb658c13fec154da1a8aa199250514f4fdba3) Thanks [@iansan5653](https://github.com/iansan5653)! - Animate `SegmentedControl` when switching between items
16
24
 
@@ -34,16 +34,12 @@ type ActionBarProps = {
34
34
  */
35
35
  gap?: GapScale;
36
36
  } & A11yProps;
37
- type ActiveAnchorProps = {
37
+ type ActionBarIconButtonProps = {
38
38
  disabled?: boolean;
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;
39
+ } & IconButtonProps;
40
+ type ActionBarButtonProps = {
41
+ disabled?: boolean;
42
+ } & ButtonProps;
47
43
  type ActionBarMenuItemProps = ({
48
44
  /**
49
45
  * Type of menu item to be rendered in the menu (action | group).