@primer/react 0.0.0-20260402135204 → 0.0.0-20260402145624

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 (164) hide show
  1. package/CHANGELOG.md +2 -88
  2. package/dist/ActionBar/ActionBar-94abaa40.css +2 -0
  3. package/dist/ActionBar/ActionBar-94abaa40.css.map +1 -0
  4. package/dist/ActionBar/ActionBar.d.ts +2 -2
  5. package/dist/ActionBar/ActionBar.d.ts.map +1 -1
  6. package/dist/ActionBar/ActionBar.js +290 -367
  7. package/dist/ActionBar/ActionBar.module.css.js +2 -2
  8. package/dist/ActionBar/index.d.ts +2 -2
  9. package/dist/ActionList/Heading.js +16 -17
  10. package/dist/ActionList/Item.d.ts.map +1 -1
  11. package/dist/ActionList/Item.js +192 -626
  12. package/dist/ActionList/LinkItem.d.ts +3 -6
  13. package/dist/ActionList/LinkItem.d.ts.map +1 -1
  14. package/dist/ActionList/LinkItem.js +87 -42
  15. package/dist/ActionList/List.d.ts.map +1 -1
  16. package/dist/ActionList/List.js +40 -41
  17. package/dist/ActionList/index.d.ts +1 -25
  18. package/dist/ActionList/index.d.ts.map +1 -1
  19. package/dist/ActionMenu/{ActionMenu-58362ca7.css → ActionMenu-53493541.css} +2 -2
  20. package/dist/ActionMenu/ActionMenu-53493541.css.map +1 -0
  21. package/dist/ActionMenu/ActionMenu.d.ts.map +1 -1
  22. package/dist/ActionMenu/ActionMenu.js +3 -14
  23. package/dist/ActionMenu/ActionMenu.module.css.js +1 -1
  24. package/dist/AnchoredOverlay/AnchoredOverlay-73c1b2d1.css +2 -0
  25. package/dist/AnchoredOverlay/AnchoredOverlay-73c1b2d1.css.map +1 -0
  26. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
  27. package/dist/AnchoredOverlay/AnchoredOverlay.js +23 -86
  28. package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +2 -2
  29. package/dist/Autocomplete/AutocompleteInput.js +3 -3
  30. package/dist/Autocomplete/AutocompleteOverlay.js +3 -3
  31. package/dist/Banner/{Banner-41040ab7.css → Banner-b3871000.css} +2 -2
  32. package/dist/Banner/{Banner-41040ab7.css.map → Banner-b3871000.css.map} +1 -1
  33. package/dist/Banner/Banner.d.ts.map +1 -1
  34. package/dist/Banner/Banner.js +1 -2
  35. package/dist/Banner/Banner.module.css.js +1 -1
  36. package/dist/Breadcrumbs/Breadcrumbs.d.ts +8 -23
  37. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  38. package/dist/Breadcrumbs/Breadcrumbs.js +66 -27
  39. package/dist/Button/{ButtonBase-4da3fa22.css → ButtonBase-781fba8b.css} +2 -2
  40. package/dist/Button/ButtonBase-781fba8b.css.map +1 -0
  41. package/dist/Button/ButtonBase.d.ts.map +1 -1
  42. package/dist/Button/ButtonBase.js +5 -4
  43. package/dist/Button/ButtonBase.module.css.js +2 -2
  44. package/dist/Button/types.d.ts +1 -1
  45. package/dist/Button/types.d.ts.map +1 -1
  46. package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  47. package/dist/ButtonGroup/ButtonGroup.js +23 -23
  48. package/dist/Checkbox/Checkbox.d.ts.map +1 -1
  49. package/dist/Checkbox/Checkbox.js +5 -5
  50. package/dist/Details/Details.js +1 -1
  51. package/dist/Dialog/{Dialog-b577691f.css → Dialog-2d417a89.css} +2 -2
  52. package/dist/Dialog/Dialog-2d417a89.css.map +1 -0
  53. package/dist/Dialog/Dialog.d.ts.map +1 -1
  54. package/dist/Dialog/Dialog.js +10 -38
  55. package/dist/Dialog/Dialog.module.css.js +2 -2
  56. package/dist/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -1
  57. package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -2
  58. package/dist/FilteredActionList/FilteredActionList-02db90c6.css +2 -0
  59. package/dist/FilteredActionList/FilteredActionList-02db90c6.css.map +1 -0
  60. package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
  61. package/dist/FilteredActionList/FilteredActionList.js +8 -8
  62. package/dist/FilteredActionList/FilteredActionList.module.css.js +1 -1
  63. package/dist/Heading/Heading.js +3 -3
  64. package/dist/Link/{Link-ba423096.css → Link-968346ff.css} +2 -2
  65. package/dist/Link/Link-968346ff.css.map +1 -0
  66. package/dist/Link/Link.d.ts.map +1 -1
  67. package/dist/Link/Link.js +5 -5
  68. package/dist/Link/Link.module.css.js +1 -1
  69. package/dist/NavList/NavList.d.ts +3 -20
  70. package/dist/NavList/NavList.d.ts.map +1 -1
  71. package/dist/NavList/NavList.js +124 -50
  72. package/dist/Overlay/Overlay-15519c09.css +2 -0
  73. package/dist/Overlay/Overlay-15519c09.css.map +1 -0
  74. package/dist/Overlay/Overlay.d.ts +0 -1
  75. package/dist/Overlay/Overlay.d.ts.map +1 -1
  76. package/dist/Overlay/Overlay.js +82 -106
  77. package/dist/Overlay/Overlay.module.css.js +1 -1
  78. package/dist/PageHeader/PageHeader.d.ts.map +1 -1
  79. package/dist/PageHeader/PageHeader.js +31 -30
  80. package/dist/PageLayout/PageLayout.d.ts +20 -4
  81. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  82. package/dist/PageLayout/PageLayout.js +5 -17
  83. package/dist/SelectPanel/SelectPanel.d.ts +2 -2
  84. package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
  85. package/dist/SelectPanel/SelectPanel.js +29 -32
  86. package/dist/Stack/Stack-9e7b935d.css +2 -0
  87. package/dist/Stack/Stack-9e7b935d.css.map +1 -0
  88. package/dist/Stack/Stack.d.ts +2 -12
  89. package/dist/Stack/Stack.d.ts.map +1 -1
  90. package/dist/Stack/Stack.js +61 -89
  91. package/dist/Stack/Stack.module.css.js +1 -1
  92. package/dist/StateLabel/{StateLabel-cd51ae39.css → StateLabel-056eec66.css} +2 -2
  93. package/dist/StateLabel/StateLabel-056eec66.css.map +1 -0
  94. package/dist/StateLabel/StateLabel.d.ts +0 -1
  95. package/dist/StateLabel/StateLabel.d.ts.map +1 -1
  96. package/dist/StateLabel/StateLabel.js +2 -4
  97. package/dist/StateLabel/StateLabel.module.css.js +1 -1
  98. package/dist/TextInput/TextInput.d.ts.map +1 -1
  99. package/dist/TextInput/TextInput.js +11 -36
  100. package/dist/TextInputWithTokens/TextInputWithTokens.js +90 -91
  101. package/dist/ThemeProvider.d.ts.map +1 -1
  102. package/dist/ThemeProvider.js +104 -163
  103. package/dist/Timeline/Timeline-19bef8c5.css +2 -0
  104. package/dist/Timeline/Timeline-19bef8c5.css.map +1 -0
  105. package/dist/Timeline/Timeline.d.ts +1 -1
  106. package/dist/Timeline/Timeline.d.ts.map +1 -1
  107. package/dist/Timeline/Timeline.js +14 -27
  108. package/dist/Timeline/Timeline.module.css.js +1 -1
  109. package/dist/TooltipV2/{Tooltip-dd983e5b.css → Tooltip-fcb90d9c.css} +2 -2
  110. package/dist/TooltipV2/Tooltip-fcb90d9c.css.map +1 -0
  111. package/dist/TooltipV2/Tooltip.d.ts +1 -1
  112. package/dist/TooltipV2/Tooltip.d.ts.map +1 -1
  113. package/dist/TooltipV2/Tooltip.js +15 -21
  114. package/dist/TooltipV2/Tooltip.module.css.js +2 -2
  115. package/dist/TreeView/TreeView.d.ts.map +1 -1
  116. package/dist/TreeView/TreeView.js +59 -101
  117. package/dist/deprecated/DialogV1/Dialog.js +9 -10
  118. package/dist/experimental/Tabs/Tabs.d.ts +1 -1
  119. package/dist/experimental/Tabs/Tabs.d.ts.map +1 -1
  120. package/dist/experimental/Tabs/Tabs.js +16 -16
  121. package/dist/hooks/index.d.ts +0 -1
  122. package/dist/hooks/index.d.ts.map +1 -1
  123. package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
  124. package/dist/hooks/useAnchoredPosition.js +0 -47
  125. package/dist/hooks/useProvidedRefOrCreate.d.ts +0 -9
  126. package/dist/hooks/useProvidedRefOrCreate.d.ts.map +1 -1
  127. package/dist/hooks/useProvidedRefOrCreate.js +0 -12
  128. package/dist/hooks/useRefObjectAsForwardedRef.d.ts +0 -12
  129. package/dist/hooks/useRefObjectAsForwardedRef.d.ts.map +1 -1
  130. package/dist/hooks/useRefObjectAsForwardedRef.js +0 -12
  131. package/dist/index.d.ts +0 -1
  132. package/dist/index.d.ts.map +1 -1
  133. package/dist/index.js +0 -1
  134. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts.map +1 -1
  135. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +8 -17
  136. package/dist/internal/hooks/useMergedRefs.d.ts +2 -0
  137. package/dist/internal/hooks/useMergedRefs.d.ts.map +1 -0
  138. package/dist/internal/hooks/useMergedRefs.js +16 -0
  139. package/dist/utils/character-counter.d.ts.map +1 -1
  140. package/dist/utils/character-counter.js +0 -1
  141. package/generated/components.json +9 -49
  142. package/generated/hooks.json +0 -22
  143. package/package.json +7 -9
  144. package/dist/ActionBar/ActionBar-a41224b2.css +0 -2
  145. package/dist/ActionBar/ActionBar-a41224b2.css.map +0 -1
  146. package/dist/ActionMenu/ActionMenu-58362ca7.css.map +0 -1
  147. package/dist/AnchoredOverlay/AnchoredOverlay-647c7065.css +0 -2
  148. package/dist/AnchoredOverlay/AnchoredOverlay-647c7065.css.map +0 -1
  149. package/dist/Button/ButtonBase-4da3fa22.css.map +0 -1
  150. package/dist/Dialog/Dialog-b577691f.css.map +0 -1
  151. package/dist/FilteredActionList/FilteredActionList-6808e67a.css +0 -2
  152. package/dist/FilteredActionList/FilteredActionList-6808e67a.css.map +0 -1
  153. package/dist/Link/Link-ba423096.css.map +0 -1
  154. package/dist/Overlay/Overlay-f81a131d.css +0 -2
  155. package/dist/Overlay/Overlay-f81a131d.css.map +0 -1
  156. package/dist/Stack/Stack-58c33984.css +0 -2
  157. package/dist/Stack/Stack-58c33984.css.map +0 -1
  158. package/dist/StateLabel/StateLabel-cd51ae39.css.map +0 -1
  159. package/dist/Timeline/Timeline-4d67684a.css +0 -2
  160. package/dist/Timeline/Timeline-4d67684a.css.map +0 -1
  161. package/dist/TooltipV2/Tooltip-dd983e5b.css.map +0 -1
  162. package/dist/hooks/useMergedRefs.d.ts +0 -51
  163. package/dist/hooks/useMergedRefs.d.ts.map +0 -1
  164. package/dist/hooks/useMergedRefs.js +0 -92
package/CHANGELOG.md CHANGED
@@ -1,103 +1,17 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260402135204
3
+ ## 0.0.0-20260402145624
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - [#7677](https://github.com/primer/react/pull/7677) [`c1a81b1`](https://github.com/primer/react/commit/c1a81b178742ba547b85a3df3ed3c27bcff6b7c5) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Add Popover API to AnchoredOverlay (behind `primer_react_css_anchor_positioning` feature flag)
8
-
9
- - [#7697](https://github.com/primer/react/pull/7697) [`990ce7b`](https://github.com/primer/react/commit/990ce7b625bcf90ef3867e93086d0c74835a9068) Thanks [@hectahertz](https://github.com/hectahertz)! - **Stack**: Add `tight` (4px) and `cozy` (12px) spacing values to `gap` and `padding` props. Add `paddingBlock` and `paddingInline` props for directional padding control.
7
+ - [#7655](https://github.com/primer/react/pull/7655) [`8f1f205`](https://github.com/primer/react/commit/8f1f205a637939eb167095b4ac766cf6524ac558) Thanks [@iansan5653](https://github.com/iansan5653)! - Replace `ActionBar` overflow calculations with CSS wrapping approach to improve performance and stability
10
8
 
11
9
  ### Patch Changes
12
10
 
13
- - [#7652](https://github.com/primer/react/pull/7652) [`5d19e2b`](https://github.com/primer/react/commit/5d19e2bb5bbd444f2e82d98eef300c221863941c) Thanks [@owenniblock](https://github.com/owenniblock)! - useAnchoredPosition: recalculate overlay position when any scrollable ancestor (or the window) is scrolled.
14
-
15
- - [#7707](https://github.com/primer/react/pull/7707) [`6431bfe`](https://github.com/primer/react/commit/6431bfecd72e24db1dfa90b02f8a42834e63843b) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Fix anchor-name not being set on the anchor element when SelectPanel is opened in Copilot code agent.
16
-
17
- - [#7638](https://github.com/primer/react/pull/7638) [`f04e85d`](https://github.com/primer/react/commit/f04e85df536cd6e8047f70b070bd3cf7c0961f92) Thanks [@iansan5653](https://github.com/iansan5653)! - Update internal implementations of combined refs to improve performance and add support for React 19 callback refs
18
-
19
11
  - Fake entry to force publishing
20
12
 
21
- - [#7695](https://github.com/primer/react/pull/7695) [`780fc3d`](https://github.com/primer/react/commit/780fc3d7b52fd0f9b63f313af6355398180a0118) Thanks [@mattcosta7](https://github.com/mattcosta7)! - perf(ThemeProvider): Reduce unnecessary renders and effect cascades
22
-
23
- - Replace `useState` + `useEffect` SSR hydration handoff with `useSyncExternalStore` — eliminates post-hydration re-render
24
- - Replace `useState` + `useEffect` in `useSystemColorMode` with `useSyncExternalStore` — eliminates effect gap and stale-then-update flicker
25
- - Cache `getServerHandoff` DOM read + JSON.parse per ID (runs once, not on every call)
26
- - Memoize context value object to prevent unnecessary re-renders of all consumers
27
-
28
- - [#7706](https://github.com/primer/react/pull/7706) [`fd8910a`](https://github.com/primer/react/commit/fd8910abff851f43d19805ceaa439a9a18c4f226) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - ActionList.Item: fix inline descriptions being referenced via `aria-labelledby` instead of `aria-describedby`
29
-
30
- ## 38.18.0
31
-
32
- ### Minor Changes
33
-
34
- - [#7700](https://github.com/primer/react/pull/7700) [`91bf343`](https://github.com/primer/react/commit/91bf343210483be373f7ec5ce1ba652518a9ce4c) Thanks [@francinelucca](https://github.com/francinelucca)! - ActionMenu: Graduate `primer_react_action_menu_display_in_viewport_inside_dialog` feature flag. ActionMenu now automatically uses `displayInViewport` when rendered inside a Dialog, without requiring the feature flag.
35
-
36
- - [#7699](https://github.com/primer/react/pull/7699) [`1505d9b`](https://github.com/primer/react/commit/1505d9b06bbcbb1d6bf87b4d21461d79b71eff10) Thanks [@francinelucca](https://github.com/francinelucca)! - SelectPanel: Add `displayInViewport` prop
37
-
38
- - [#7662](https://github.com/primer/react/pull/7662) [`39c8cf3`](https://github.com/primer/react/commit/39c8cf30254268d770422b9d890d96da51d35d89) Thanks [@HiroAgustin](https://github.com/HiroAgustin)! - Timeline: Update `clipSidebar` prop to accept `'start'`, `'end'`, or `'both'` in addition to `boolean`. Use `'start'` to only clip the top, `'end'` to only clip the bottom, or `'both'`/`true` to clip both ends.
39
-
40
- ### Patch Changes
41
-
42
- - [#7690](https://github.com/primer/react/pull/7690) [`b492cc8`](https://github.com/primer/react/commit/b492cc82efdb68189a070dfa7fcd88f18cc9d7b4) Thanks [@HiroAgustin](https://github.com/HiroAgustin)! - fix(Button): Apply inline-flex display to loading wrapper for link variant buttons
43
-
44
- - [#7696](https://github.com/primer/react/pull/7696) [`1acb7d3`](https://github.com/primer/react/commit/1acb7d3dc416094e481ac9b45d3fa45ebd527c86) Thanks [@francinelucca](https://github.com/francinelucca)! - Fix item dividers not visible in SelectPanel and FilteredActionList when `showItemDividers` is enabled, caused by `content-visibility: auto` clipping the absolutely-positioned divider pseudo-elements.
45
-
46
- - [#7683](https://github.com/primer/react/pull/7683) [`f05fcac`](https://github.com/primer/react/commit/f05fcacedafe8a9a1af9caa6a762403d47851250) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Dialog: dynamically switch footer button layout based on available height.
47
-
48
- - [#7676](https://github.com/primer/react/pull/7676) [`35ca056`](https://github.com/primer/react/commit/35ca05690910ffb8286a2aeef01c043af377a6c2) Thanks [@HiroAgustin](https://github.com/HiroAgustin)! - Remove link underline effect on hover for both Link (inline) and Button with variant link (no visuals)
49
-
50
- - [#7631](https://github.com/primer/react/pull/7631) [`0ecaf6f`](https://github.com/primer/react/commit/0ecaf6f64c50235081416515b7d5b6b2e364b33f) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Add test to validate that the `muted` prop is not leaked as a bare DOM attribute on `Link`
51
-
52
- ## 38.17.0
53
-
54
- ### Minor Changes
55
-
56
- - [#7658](https://github.com/primer/react/pull/7658) [`259fdff`](https://github.com/primer/react/commit/259fdff67550e328b851129a78e87413ddb07229) Thanks [@hussam-i-am](https://github.com/hussam-i-am)! - fix(polymorphic): Improve prop passthrough for ActionList.LinkItem and Breadcrumbs.Item
57
-
58
- - [#7672](https://github.com/primer/react/pull/7672) [`77735f9`](https://github.com/primer/react/commit/77735f975c71b267130899fc1fd7b47bcb5f062d) Thanks [@iansan5653](https://github.com/iansan5653)! - - New: Exposes new `useMergedRefs` hook that can merge two refs into a single combined ref
59
-
60
- - Deprecates `useRefObjectAsForwardedRef`; see doc comment for migration instructions
61
- - Deprecates `useProvidedRefOrCreate`; see doc comment for migration instructions
62
-
63
- - [#7623](https://github.com/primer/react/pull/7623) [`42847d1`](https://github.com/primer/react/commit/42847d1bb943c2db6d2309dfd604e8d3ab55d387) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - `IconButton`: `keybindingHint` now accepts `string[]` in addition to `string`. Multiple hints are rendered joined with "or".
64
-
65
- ### Patch Changes
66
-
67
- - [#7510](https://github.com/primer/react/pull/7510) [`8fa988b`](https://github.com/primer/react/commit/8fa988ba613117874657af722ef6de768b0e0eb8) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: ensure max-height does not surpass viewport height in Overlay, ActionMenu under feature flag
68
-
69
- - [#7682](https://github.com/primer/react/pull/7682) [`8aed331`](https://github.com/primer/react/commit/8aed331f9dcb8c51d86bf531f7e331a6ccd23d9a) Thanks [@llastflowers](https://github.com/llastflowers)! - Update CheckboxOrRadioGroup.tsx to add `required` announcement
70
-
71
- ## 38.16.0
72
-
73
- ### Minor Changes
74
-
75
- - [#7661](https://github.com/primer/react/pull/7661) [`dceb79c`](https://github.com/primer/react/commit/dceb79c5e0f8ab5c25bbc9727bc3207fb77d520e) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Add CSS Anchor Positioning to `AnchoredOverlay` (under a feature flag)
76
-
77
- ## 38.15.1
78
-
79
- ### Patch Changes
80
-
81
13
  - [#7625](https://github.com/primer/react/pull/7625) [`2e8c707`](https://github.com/primer/react/commit/2e8c70702d5096551049c29c8e79749bf63a919f) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Banner: stack inline actions vertically on narrow viewports.
82
14
 
83
- - [#7554](https://github.com/primer/react/pull/7554) [`f34f0c3`](https://github.com/primer/react/commit/f34f0c37c2bb144e34b029696c580ee8104dbce6) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(ActionList): memoize context values, menuItemProps, and aria attributes
84
-
85
- - [#7598](https://github.com/primer/react/pull/7598) [`4b345db`](https://github.com/primer/react/commit/4b345db228997b66c381f7d03369f87ee25fdf02) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Banner): replace `:has(.BannerActions)` with `[data-has-actions]` attribute selector
86
-
87
- - [#7597](https://github.com/primer/react/pull/7597) [`adadd38`](https://github.com/primer/react/commit/adadd380043c637d431e30643e910e7b4ec7fe03) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Button): replace `:has(.Visual)` with `[data-no-visuals]` attribute selector in link variant styling
88
-
89
- - [#7599](https://github.com/primer/react/pull/7599) [`e6513c2`](https://github.com/primer/react/commit/e6513c2a8a5b99e61c9009e0e3c7112a7388a295) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Dialog): replace `:has(.Footer)` with `[data-has-footer]` attribute selector for footer border detection
90
-
91
- - [#7620](https://github.com/primer/react/pull/7620) [`ec0b789`](https://github.com/primer/react/commit/ec0b7890b45ca939c24d6236d94a69d9006c3a64) Thanks [@hectahertz](https://github.com/hectahertz)! - Use stable object reference for DialogContext value to prevent unnecessary re-renders
92
-
93
- - [#7621](https://github.com/primer/react/pull/7621) [`235126a`](https://github.com/primer/react/commit/235126abbd271e0a6e1e95110f40d72c193c6d24) Thanks [@hectahertz](https://github.com/hectahertz)! - Memoize SelectPanel overlayProps, focusTrapSettings, and preventBubbling to reduce allocations on re-renders
94
-
95
- - [#7600](https://github.com/primer/react/pull/7600) [`0d7cc92`](https://github.com/primer/react/commit/0d7cc92b474185c7efa09871b42c6a97a9326be6) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(TextInput): skip redundant character counter updates
96
-
97
- - [#7654](https://github.com/primer/react/pull/7654) [`a09a60c`](https://github.com/primer/react/commit/a09a60cb8218adf8fe2ab71e46da76fbf8331bc6) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - SelectPanel: use `100dvh` and `env(safe-area-inset-bottom)` in fullscreen-on-narrow mode to prevent content from being obscured by iOS Safari's browser chrome.
98
-
99
- - [#7545](https://github.com/primer/react/pull/7545) [`17ec46f`](https://github.com/primer/react/commit/17ec46f77524f3ad5e1789102bdf2dbaf47eab49) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(TreeView): defer scrollIntoView to coalesce reflows during rapid navigation
100
-
101
15
  ## 38.15.0
102
16
 
103
17
  ### Minor Changes
@@ -0,0 +1,2 @@
1
+ .prc-ActionBar-List-9uz46{align-items:flex-start;display:flex;gap:var(--actionbar-gap,var(--stack-gap-condensed,.5rem));height:var(--actionbar-height,var(--control-small-size,1.75rem));list-style:none;margin-bottom:-1px;min-width:0;overflow:hidden;position:relative}.prc-ActionBar-List-9uz46:not([data-has-overflow]){animation:prc-ActionBar-detect-overflow-mAuJu linear;animation-timeline:scroll(self block)}.prc-ActionBar-List-9uz46[data-has-overflow=true]{--morebutton-display:block}.prc-ActionBar-List-9uz46:where([data-size=medium]){--actionbar-height:var(--control-medium-size,2rem)}.prc-ActionBar-List-9uz46:where([data-size=large]){--actionbar-height:var(--control-large-size,2.5rem)}.prc-ActionBar-List-9uz46:where([data-gap=none]){--actionbar-gap:0}.prc-ActionBar-List-9uz46:where([data-gap=none]) .prc-ActionBar-Divider-6V8yH{padding:0 var(--base-size-8,.5rem)}.prc-ActionBar-List-9uz46:where([data-gap=condensed]){--actionbar-gap:var(--stack-gap-condensed,0.5rem)}.prc-ActionBar-List-9uz46 [data-overflowing]{visibility:hidden!important}@keyframes prc-ActionBar-detect-overflow-mAuJu{0%,to{--morebutton-display:block}}.prc-ActionBar-Nav-9spON{align-items:center;display:flex;justify-content:flex-end;padding-inline:var(--base-size-16,1rem)}.prc-ActionBar-Nav-9spON:where([data-flush=true]){padding-inline:0}.prc-ActionBar-Divider-6V8yH:before{background:var(--borderColor-muted,var(--color-border-muted));content:"";display:block;height:var(--base-size-20,1.25rem);margin-top:calc((var(--actionbar-height) - var(--base-size-20,1.25rem))/2);width:var(--borderWidth-thin,.0625rem)}.prc-ActionBar-Group-peNCk,.prc-ActionBar-OverflowContainer-AkYZs{display:flex;gap:inherit}.prc-ActionBar-OverflowContainer-AkYZs{flex-wrap:wrap;justify-content:flex-end;overflow:hidden}.prc-ActionBar-MoreButton-RHqpx{display:var(--morebutton-display,none)}
2
+ /*# sourceMappingURL=ActionBar-94abaa40.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ActionBar/ActionBar.module.css.js"],"names":[],"mappings":"AAAA,0BASE,sBAAuB,CAPvB,YAAa,CAQb,yDAAqD,CAGrD,gEAA0D,CAL1D,eAAgB,CADhB,kBAAmB,CAJnB,WAAY,CAQZ,eAAgB,CAVhB,iBAuDF,CAxCE,mDAIE,oDAAiC,CACjC,qCACF,CAGA,kDACE,0BACF,CAEA,oDACE,kDACF,CAEA,mDACE,mDACF,CAGA,iDACE,iBAKF,CAHE,8EACE,kCACF,CAGF,sDACE,iDACF,CAEA,6CAIE,2BACF,CAGF,+CACE,MAEE,0BACF,CACF,CAEA,yBAIE,kBAAmB,CAHnB,YAAa,CAEb,wBAAyB,CADzB,uCAOF,CAHE,kDACE,gBACF,CAIA,oCAME,6DAAoC,CAFpC,UAAW,CAHX,aAAc,CAEd,kCAA2B,CAK3B,0EAAqE,CANrE,sCAOF,CAQF,kEAJE,YAAa,CACb,WASF,CANA,uCAEE,cAAe,CAEf,wBAAyB,CACzB,eACF,CAEA,gCACE,sCACF","file":"ActionBar-94abaa40.css","sourcesContent":[".List {\n position: relative;\n display: flex;\n min-width: 0;\n\n /* wonder why this is here */\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: -1px;\n list-style: none;\n align-items: flex-start;\n gap: var(--actionbar-gap, var(--stack-gap-condensed));\n overflow: hidden;\n /* Explicit height is required to clip wrapped items */\n height: var(--actionbar-height, var(--control-small-size));\n\n /* Only apply scroll animation before overflow is calculated (for SSR/initial render) */\n &:not([data-has-overflow]) {\n /* Scroll-based animations have no effect unless the container is scrollable (has overflow, even with overflow:hidden)\n so we can use them to detect overflow. It would be cleaner to use scroll-state container queries for this, but\n browser support for scroll-driven animations is slightly better. */\n animation: detect-overflow linear;\n animation-timeline: scroll(self block);\n }\n\n /* After initial render, JS is used to control visibility which provides progressive enhancement for unsupported browsers */\n &[data-has-overflow='true'] {\n --morebutton-display: block;\n }\n\n &:where([data-size='medium']) {\n --actionbar-height: var(--control-medium-size);\n }\n\n &:where([data-size='large']) {\n --actionbar-height: var(--control-large-size);\n }\n\n /* Gap scale (mirrors Stack) */\n &:where([data-gap='none']) {\n --actionbar-gap: 0;\n\n .Divider {\n padding: 0 var(--base-size-8);\n }\n }\n\n &:where([data-gap='condensed']) {\n --actionbar-gap: var(--stack-gap-condensed);\n }\n\n & [data-overflowing] {\n /* Hide overflowing items. Even though they are clipped by `overflow: hidden`, setting `visibility: hidden` ensures\n they can't accidentally be shown and also hides them from screen readers / keyboard nav. `!important` prevents\n consumers from unintentionally overriding this and breaking accessibility. */\n visibility: hidden !important;\n }\n}\n\n@keyframes detect-overflow {\n 0%,\n 100% {\n --morebutton-display: block;\n }\n}\n\n.Nav {\n display: flex;\n padding-inline: var(--base-size-16);\n justify-content: flex-end;\n align-items: center;\n\n &:where([data-flush='true']) {\n padding-inline: 0;\n }\n}\n\n.Divider {\n &::before {\n display: block;\n width: var(--borderWidth-thin);\n height: var(--base-size-20);\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background: var(--borderColor-muted);\n /* stylelint-disable-next-line primer/spacing */\n margin-top: calc((var(--actionbar-height) - var(--base-size-20)) / 2);\n }\n}\n\n.Group {\n display: flex;\n gap: inherit;\n}\n\n.OverflowContainer {\n display: flex;\n flex-wrap: wrap;\n gap: inherit;\n justify-content: flex-end;\n overflow: hidden;\n}\n\n.MoreButton {\n display: var(--morebutton-display, none);\n}\n"]}
@@ -118,8 +118,8 @@ export declare const ActionBarMenu: React.ForwardRefExoticComponent<{
118
118
  description?: string;
119
119
  tooltipDirection?: import("../TooltipV2").TooltipDirection;
120
120
  keyshortcuts?: string;
121
- keybindingHint?: string | string[];
121
+ keybindingHint?: string;
122
122
  } & Omit<import("..").ButtonBaseProps, "aria-label" | "aria-labelledby"> & React.RefAttributes<unknown>>;
123
- export declare const VerticalDivider: () => React.JSX.Element | null;
123
+ export declare const VerticalDivider: () => React.JSX.Element;
124
124
  export {};
125
125
  //# sourceMappingURL=ActionBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../src/ActionBar/ActionBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2D,MAAM,OAAO,CAAA;AAE/E,OAAO,EAAa,KAAK,mBAAmB,EAAC,MAAM,eAAe,CAAA;AAKlE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,WAAW,CAAA;AAkD9C,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExC,KAAK,SAAS,GACV;IACE,wDAAwD;IACxD,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAA;IAChD,iBAAiB,CAAC,EAAE,SAAS,CAAA;CAC9B,GACD;IACE,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;CAC3D,CAAA;AAEL,KAAK,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAA;AAEpC,MAAM,MAAM,cAAc,GAAG;IAC3B;;;SAGK;IACL,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX,gCAAgC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA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