@primer/react 38.42.0-rc.fcbfbaea1 → 38.42.1-rc.26719e9c2

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 (52) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/ActionBar/ActionBar.js +498 -162
  3. package/dist/ActionBar/index.d.ts +2 -2
  4. package/dist/ActionList/Group.js +4 -5
  5. package/dist/ActionList/Item.js +2 -2
  6. package/dist/Banner/Banner.js +3 -5
  7. package/dist/Button/ButtonBase.js +3 -2
  8. package/dist/Button/IconButton.js +3 -4
  9. package/dist/Button/types.d.ts +2 -2
  10. package/dist/Card/Card.js +1 -2
  11. package/dist/Checkbox/Checkbox.js +145 -41
  12. package/dist/CounterLabel/CounterLabel.js +80 -18
  13. package/dist/Details/Details.js +2 -4
  14. package/dist/FeatureFlags/FeatureFlagScope.js +1 -0
  15. package/dist/FilteredActionList/constants.js +2 -0
  16. package/dist/FilteredActionList/useAnnouncements.js +148 -81
  17. package/dist/FormControl/FormControl.js +55 -80
  18. package/dist/FormControl/FormControlLabel.js +1 -2
  19. package/dist/InlineMessage/InlineMessage.js +1 -2
  20. package/dist/NavList/NavList.js +3 -4
  21. package/dist/Overlay/Overlay.d.ts +2 -0
  22. package/dist/Overlay/Overlay.js +300 -63
  23. package/dist/PageLayout/usePaneWidth.js +2 -2
  24. package/dist/Popover/Popover.js +3 -5
  25. package/dist/ProgressBar/ProgressBar.js +1 -2
  26. package/dist/SegmentedControl/SegmentedControlButton.js +1 -2
  27. package/dist/Select/Select.js +2 -2
  28. package/dist/SelectPanel/SelectPanel.d.ts +1 -1
  29. package/dist/SelectPanel/SelectPanel.js +1 -1
  30. package/dist/Spinner/Spinner.js +1 -2
  31. package/dist/TextInput/TextInput.js +242 -87
  32. package/dist/Textarea/Textarea.d.ts +2 -2
  33. package/dist/ToggleSwitch/ToggleSwitch.js +2 -3
  34. package/dist/Tooltip/Tooltip.js +98 -17
  35. package/dist/TooltipV2/Tooltip.js +295 -138
  36. package/dist/TopicTag/TopicTag.js +1 -2
  37. package/dist/TreeView/useTypeahead.js +1 -0
  38. package/dist/Truncate/Truncate.js +87 -14
  39. package/dist/UnderlineNav/UnderlineNavItem.js +2 -4
  40. package/dist/deprecated/ActionList/List.js +1 -1
  41. package/dist/experimental/SelectPanel2/SelectPanel.d.ts +1 -1
  42. package/dist/hooks/useOpenAndCloseFocus.d.ts +3 -1
  43. package/dist/hooks/useOpenAndCloseFocus.js +28 -16
  44. package/dist/hooks/useOverlay.d.ts +3 -1
  45. package/dist/hooks/useOverlay.js +24 -22
  46. package/dist/internal/components/InputLabel.js +1 -2
  47. package/dist/internal/components/TextInputInnerAction.js +1 -2
  48. package/dist/internal/components/TextInputWrapper.d.ts +3 -0
  49. package/dist/internal/hooks/useThemeProvider.js +3 -3
  50. package/generated/components.json +34 -20
  51. package/generated/hooks.json +12 -0
  52. package/package.json +12 -13
package/CHANGELOG.md CHANGED
@@ -1,11 +1,33 @@
1
1
  # @primer/react
2
2
 
3
+ ## 38.42.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8524](https://github.com/primer/react/pull/8524) [`0d5607c`](https://github.com/primer/react/commit/0d5607c3b29ab090a0a97d1532fdc3a066a37d3d) Thanks [@tay1orjones](https://github.com/tay1orjones)! - TreeView: Prevent typeahead errors and focus changes when typing in nested controls.
8
+
3
9
  ## 38.42.0
4
10
 
5
11
  ### Minor Changes
6
12
 
13
+ - [#8513](https://github.com/primer/react/pull/8513) [`1bab81a`](https://github.com/primer/react/commit/1bab81a0eb3f613c8d6b4abd36bd92d0ac6cedc4) Thanks [@tay1orjones](https://github.com/tay1orjones)! - ActionMenu, Overlay: Add `preventFocusOnClose` to let consumers manage focus when an overlay closes.
14
+
15
+ - [#8525](https://github.com/primer/react/pull/8525) [`013ab30`](https://github.com/primer/react/commit/013ab3078785ee90afe8a7562576fe0a26001b96) Thanks [@tay1orjones](https://github.com/tay1orjones)! - TextInput and Textarea: Deprecate the `contrast` prop. Omit it to use the default background.
16
+
17
+ - [#8450](https://github.com/primer/react/pull/8450) [`1528a48`](https://github.com/primer/react/commit/1528a483f9efa41fdb4bea7793c49bcde6fb4220) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - IconButton, ActionBar: Accept React nodes and icon components
18
+
19
+ - [#8509](https://github.com/primer/react/pull/8509) [`78ba2e0`](https://github.com/primer/react/commit/78ba2e08bc194f36b023e126a3084468aabff2ac) Thanks [@joshblack](https://github.com/joshblack)! - CounterLabel, Truncate: Improve rendering performance with React Compiler support.
20
+
21
+ - [#8511](https://github.com/primer/react/pull/8511) [`6d14fa0`](https://github.com/primer/react/commit/6d14fa092e3e9e470991dab7f8e753bfb265a905) Thanks [@joshblack](https://github.com/joshblack)! - Checkbox, Tooltip: Improve rendering performance with React Compiler support.
22
+
23
+ - [#8512](https://github.com/primer/react/pull/8512) [`e236683`](https://github.com/primer/react/commit/e236683d5c21c1d4b8121d35f4960986f5cd3a5f) Thanks [@joshblack](https://github.com/joshblack)! - ActionBar, FilteredActionList, Overlay, TextInput, Tooltip: Improve rendering performance with automatic memoization.
24
+
7
25
  - [#8415](https://github.com/primer/react/pull/8415) [`66a9f31`](https://github.com/primer/react/commit/66a9f31611c642209f66ed68b7d43712b09dbd88) Thanks [@rickyzhangca](https://github.com/rickyzhangca)! - DataTable: Add controlled and uncontrolled row selection.
8
26
 
27
+ ### Patch Changes
28
+
29
+ - [#8508](https://github.com/primer/react/pull/8508) [`f71dce4`](https://github.com/primer/react/commit/f71dce4869dedf4cb8460ed2fa8e18edc0604198) Thanks [@namangoyal176-10](https://github.com/namangoyal176-10)! - FormControl: Prevent duplicate input rendering when layout is horizontal with non-choice inputs
30
+
9
31
  ## 38.41.0
10
32
 
11
33
  ### Minor Changes