@primer/react 0.0.0-20260625164407 → 0.0.0-20260625180200

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 (700) hide show
  1. package/CHANGELOG.md +6 -396
  2. package/dist/ActionBar/ActionBar-a41224b2.css +2 -0
  3. package/dist/ActionBar/ActionBar-a41224b2.css.map +1 -0
  4. package/dist/ActionBar/ActionBar.d.ts +2 -25
  5. package/dist/ActionBar/ActionBar.d.ts.map +1 -1
  6. package/dist/ActionBar/ActionBar.js +386 -395
  7. package/dist/ActionBar/ActionBar.module.css.js +2 -2
  8. package/dist/ActionBar/index.d.ts +2 -22
  9. package/dist/ActionBar/index.d.ts.map +1 -1
  10. package/dist/ActionBar/index.js +1 -2
  11. package/dist/ActionList/ActionList-8b212f46.css +2 -0
  12. package/dist/ActionList/ActionList-8b212f46.css.map +1 -0
  13. package/dist/ActionList/ActionList.module.css.js +2 -2
  14. package/dist/ActionList/Description.d.ts.map +1 -1
  15. package/dist/ActionList/Group-2c8b5711.css +2 -0
  16. package/dist/ActionList/Group-2c8b5711.css.map +1 -0
  17. package/dist/ActionList/Group.d.ts +14 -6
  18. package/dist/ActionList/Group.d.ts.map +1 -1
  19. package/dist/ActionList/Group.js +27 -55
  20. package/dist/ActionList/Group.module.css.js +2 -2
  21. package/dist/ActionList/Heading.d.ts.map +1 -1
  22. package/dist/ActionList/Heading.js +0 -1
  23. package/dist/ActionList/Item.d.ts.map +1 -1
  24. package/dist/ActionList/Item.js +240 -248
  25. package/dist/ActionList/LinkItem.d.ts +1 -1
  26. package/dist/ActionList/List.d.ts +11 -2
  27. package/dist/ActionList/List.d.ts.map +1 -1
  28. package/dist/ActionList/List.js +31 -61
  29. package/dist/ActionList/Selection.js +1 -1
  30. package/dist/ActionList/TrailingAction.d.ts +1 -2
  31. package/dist/ActionList/TrailingAction.d.ts.map +1 -1
  32. package/dist/ActionList/TrailingAction.js +31 -39
  33. package/dist/ActionList/Visuals.d.ts.map +1 -1
  34. package/dist/ActionList/Visuals.js +4 -8
  35. package/dist/ActionList/index.d.ts +30 -31
  36. package/dist/ActionList/index.d.ts.map +1 -1
  37. package/dist/ActionList/index.js +0 -6
  38. package/dist/ActionMenu/ActionMenu-58362ca7.css +2 -0
  39. package/dist/ActionMenu/ActionMenu-58362ca7.css.map +1 -0
  40. package/dist/ActionMenu/ActionMenu.d.ts.map +1 -1
  41. package/dist/ActionMenu/ActionMenu.js +31 -29
  42. package/dist/ActionMenu/ActionMenu.module.css.js +1 -1
  43. package/dist/AnchoredOverlay/AnchoredOverlay-0f6f45b5.css +2 -0
  44. package/dist/AnchoredOverlay/AnchoredOverlay-0f6f45b5.css.map +1 -0
  45. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +0 -20
  46. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
  47. package/dist/AnchoredOverlay/AnchoredOverlay.js +44 -211
  48. package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +2 -2
  49. package/dist/Autocomplete/Autocomplete.d.ts +1 -1
  50. package/dist/Autocomplete/AutocompleteInput.d.ts.map +1 -1
  51. package/dist/Autocomplete/AutocompleteInput.js +3 -18
  52. package/dist/Autocomplete/AutocompleteMenu.d.ts.map +1 -1
  53. package/dist/Autocomplete/AutocompleteMenu.js +1 -8
  54. package/dist/Autocomplete/AutocompleteOverlay.d.ts.map +1 -1
  55. package/dist/Autocomplete/AutocompleteOverlay.js +2 -3
  56. package/dist/Avatar/Avatar-61b19061.css +1 -1
  57. package/dist/Avatar/Avatar-61b19061.css.map +1 -1
  58. package/dist/AvatarStack/AvatarStack-8526f38a.css +2 -0
  59. package/dist/AvatarStack/AvatarStack-8526f38a.css.map +1 -0
  60. package/dist/AvatarStack/AvatarStack.d.ts.map +1 -1
  61. package/dist/AvatarStack/AvatarStack.js +0 -3
  62. package/dist/AvatarStack/AvatarStack.module.css.js +1 -1
  63. package/dist/Banner/Banner-41040ab7.css +1 -1
  64. package/dist/Banner/Banner-41040ab7.css.map +1 -1
  65. package/dist/Banner/Banner.d.ts.map +1 -1
  66. package/dist/Banner/Banner.js +20 -25
  67. package/dist/BaseStyles-fda34843.css +1 -1
  68. package/dist/BaseStyles-fda34843.css.map +1 -1
  69. package/dist/BaseStyles.d.ts.map +1 -1
  70. package/dist/BaseStyles.js +0 -1
  71. package/dist/Blankslate/Blankslate-a039d79a.css +2 -0
  72. package/dist/Blankslate/Blankslate-a039d79a.css.map +1 -0
  73. package/dist/Blankslate/Blankslate.d.ts.map +1 -1
  74. package/dist/Blankslate/Blankslate.js +0 -6
  75. package/dist/Blankslate/Blankslate.module.css.js +1 -1
  76. package/dist/BranchName/BranchName-2fad4f4b.css +1 -1
  77. package/dist/BranchName/BranchName-2fad4f4b.css.map +1 -1
  78. package/dist/BranchName/BranchName.d.ts +4 -2
  79. package/dist/BranchName/BranchName.d.ts.map +1 -1
  80. package/dist/BranchName/BranchName.js +0 -1
  81. package/dist/Breadcrumbs/Breadcrumbs-dbfc9d95.css +2 -0
  82. package/dist/Breadcrumbs/{Breadcrumbs-54395fc6.css.map → Breadcrumbs-dbfc9d95.css.map} +1 -1
  83. package/dist/Breadcrumbs/Breadcrumbs.d.ts +10 -4
  84. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  85. package/dist/Breadcrumbs/Breadcrumbs.js +150 -326
  86. package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
  87. package/dist/Button/ButtonBase-6659abcf.css +2 -0
  88. package/dist/Button/ButtonBase-6659abcf.css.map +1 -0
  89. package/dist/Button/ButtonBase.d.ts.map +1 -1
  90. package/dist/Button/ButtonBase.js +3 -6
  91. package/dist/Button/ButtonBase.module.css.js +2 -2
  92. package/dist/Button/IconButton.d.ts.map +1 -1
  93. package/dist/Button/IconButton.js +2 -3
  94. package/dist/Button/LinkButton.js +0 -1
  95. package/dist/ButtonGroup/ButtonGroup-10292330.css +2 -0
  96. package/dist/ButtonGroup/ButtonGroup-10292330.css.map +1 -0
  97. package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  98. package/dist/ButtonGroup/ButtonGroup.js +0 -2
  99. package/dist/ButtonGroup/ButtonGroup.module.css.js +2 -2
  100. package/dist/Checkbox/Checkbox-edc5dc3e.css +2 -0
  101. package/dist/Checkbox/Checkbox-edc5dc3e.css.map +1 -0
  102. package/dist/Checkbox/Checkbox.d.ts +0 -1
  103. package/dist/Checkbox/Checkbox.d.ts.map +1 -1
  104. package/dist/Checkbox/Checkbox.js +5 -14
  105. package/dist/Checkbox/Checkbox.module.css.js +1 -1
  106. package/dist/Checkbox/shared-edc41e16.css +1 -1
  107. package/dist/Checkbox/shared-edc41e16.css.map +1 -1
  108. package/dist/CheckboxGroup/CheckboxGroup.js +1 -1
  109. package/dist/CircleBadge/CircleBadge-87549d20.css +1 -1
  110. package/dist/CircleBadge/CircleBadge-87549d20.css.map +1 -1
  111. package/dist/CircleBadge/CircleBadge.d.ts +1 -1
  112. package/dist/CircleBadge/CircleBadge.d.ts.map +1 -1
  113. package/dist/CircleBadge/CircleBadge.js +28 -45
  114. package/dist/ConfirmationDialog/ConfirmationDialog.d.ts +9 -0
  115. package/dist/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -1
  116. package/dist/ConfirmationDialog/ConfirmationDialog.js +42 -2
  117. package/dist/CounterLabel/CounterLabel-8c6e8ee4.css +1 -1
  118. package/dist/CounterLabel/CounterLabel-8c6e8ee4.css.map +1 -1
  119. package/dist/CounterLabel/CounterLabel.d.ts +0 -2
  120. package/dist/CounterLabel/CounterLabel.d.ts.map +1 -1
  121. package/dist/CounterLabel/CounterLabel.js +90 -25
  122. package/dist/DataTable/Pagination-b6f8418c.css +2 -0
  123. package/dist/DataTable/Pagination-b6f8418c.css.map +1 -0
  124. package/dist/DataTable/Pagination.d.ts.map +1 -1
  125. package/dist/DataTable/Pagination.js +0 -7
  126. package/dist/DataTable/Pagination.module.css.js +1 -1
  127. package/dist/DataTable/Table-7f5cb3e4.css +1 -1
  128. package/dist/DataTable/Table-7f5cb3e4.css.map +1 -1
  129. package/dist/DataTable/Table.d.ts.map +1 -1
  130. package/dist/DataTable/Table.js +2 -16
  131. package/dist/DataTable/index.d.ts +8 -4
  132. package/dist/DataTable/index.d.ts.map +1 -1
  133. package/dist/DataTable/sorting.d.ts +1 -1
  134. package/dist/DataTable/storybook/data.d.ts.map +1 -1
  135. package/dist/DataTable/useTable.d.ts.map +1 -1
  136. package/dist/DataTable/useTable.js +3 -8
  137. package/dist/Details/Details.d.ts +2 -6
  138. package/dist/Details/Details.d.ts.map +1 -1
  139. package/dist/Details/Details.js +22 -31
  140. package/dist/Dialog/Dialog-2de477b3.css +2 -0
  141. package/dist/Dialog/Dialog-2de477b3.css.map +1 -0
  142. package/dist/Dialog/Dialog.d.ts +4 -6
  143. package/dist/Dialog/Dialog.d.ts.map +1 -1
  144. package/dist/Dialog/Dialog.js +36 -89
  145. package/dist/Dialog/Dialog.module.css.js +2 -2
  146. package/dist/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -1
  147. package/dist/FeatureFlags/DefaultFeatureFlags.js +6 -5
  148. package/dist/FeatureFlags/FeatureFlags.d.ts +6 -0
  149. package/dist/FeatureFlags/FeatureFlags.d.ts.map +1 -1
  150. package/dist/FeatureFlags/FeatureFlags.js +41 -32
  151. package/dist/FilteredActionList/FilteredActionList-02db90c6.css +2 -0
  152. package/dist/FilteredActionList/FilteredActionList-02db90c6.css.map +1 -0
  153. package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
  154. package/dist/FilteredActionList/FilteredActionList.js +34 -30
  155. package/dist/FilteredActionList/FilteredActionList.module.css.js +1 -1
  156. package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css +2 -0
  157. package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css.map +1 -0
  158. package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +10 -2
  159. package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
  160. package/dist/FilteredActionList/FilteredActionListLoaders.js +13 -6
  161. package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +2 -2
  162. package/dist/FilteredActionList/index.d.ts +1 -9
  163. package/dist/FilteredActionList/index.d.ts.map +1 -1
  164. package/dist/FilteredActionList/useAnnouncements.d.ts.map +1 -1
  165. package/dist/Flash/Flash-a3596568.css +1 -1
  166. package/dist/Flash/Flash-a3596568.css.map +1 -1
  167. package/dist/Flash/Flash.d.ts.map +1 -1
  168. package/dist/Flash/Flash.js +1 -2
  169. package/dist/FormControl/FormControl-fa33984d.css +1 -1
  170. package/dist/FormControl/FormControl-fa33984d.css.map +1 -1
  171. package/dist/FormControl/FormControl.d.ts +3 -3
  172. package/dist/FormControl/FormControl.d.ts.map +1 -1
  173. package/dist/FormControl/FormControl.js +0 -2
  174. package/dist/FormControl/FormControlCaption-f58db5f7.css +1 -1
  175. package/dist/FormControl/FormControlCaption-f58db5f7.css.map +1 -1
  176. package/dist/FormControl/FormControlCaption.d.ts.map +1 -1
  177. package/dist/FormControl/FormControlCaption.js +0 -1
  178. package/dist/FormControl/FormControlLabel.d.ts.map +1 -1
  179. package/dist/FormControl/FormControlLabel.js +0 -1
  180. package/dist/FormControl/FormControlLeadingVisual-e217df71.css +1 -1
  181. package/dist/FormControl/FormControlLeadingVisual-e217df71.css.map +1 -1
  182. package/dist/FormControl/FormControlLeadingVisual.d.ts.map +1 -1
  183. package/dist/FormControl/FormControlLeadingVisual.js +0 -1
  184. package/dist/FormControl/_FormControlValidation.d.ts.map +1 -1
  185. package/dist/FormControl/_FormControlValidation.js +0 -1
  186. package/dist/Header/Header-aff64597.css +1 -1
  187. package/dist/Header/Header-aff64597.css.map +1 -1
  188. package/dist/Header/Header.d.ts.map +1 -1
  189. package/dist/Header/Header.js +0 -3
  190. package/dist/Heading/Heading.d.ts.map +1 -1
  191. package/dist/Heading/Heading.js +16 -9
  192. package/dist/Hidden/Hidden.d.ts.map +1 -1
  193. package/dist/Hidden/Hidden.js +0 -1
  194. package/dist/InlineMessage/InlineMessage-80d97643.css +2 -0
  195. package/dist/InlineMessage/InlineMessage-80d97643.css.map +1 -0
  196. package/dist/InlineMessage/InlineMessage.d.ts +1 -1
  197. package/dist/InlineMessage/InlineMessage.d.ts.map +1 -1
  198. package/dist/InlineMessage/InlineMessage.js +19 -35
  199. package/dist/InlineMessage/InlineMessage.module.css.js +1 -1
  200. package/dist/KeybindingHint/KeybindingHint.d.ts +9 -0
  201. package/dist/KeybindingHint/KeybindingHint.d.ts.map +1 -1
  202. package/dist/KeybindingHint/KeybindingHint.js +12 -3
  203. package/dist/KeybindingHint/components/Chord-d4edcc89.css +1 -1
  204. package/dist/KeybindingHint/components/Chord-d4edcc89.css.map +1 -1
  205. package/dist/KeybindingHint/components/Chord.d.ts +2 -0
  206. package/dist/KeybindingHint/components/Chord.d.ts.map +1 -1
  207. package/dist/KeybindingHint/components/Chord.js +21 -2
  208. package/dist/KeybindingHint/components/Key.js +10 -10
  209. package/dist/KeybindingHint/components/Sequence.d.ts +2 -0
  210. package/dist/KeybindingHint/components/Sequence.d.ts.map +1 -1
  211. package/dist/KeybindingHint/components/Sequence.js +5 -2
  212. package/dist/KeybindingHint/index.d.ts +1 -2
  213. package/dist/KeybindingHint/index.d.ts.map +1 -1
  214. package/dist/KeybindingHint/key-names.d.ts +3 -4
  215. package/dist/KeybindingHint/key-names.d.ts.map +1 -1
  216. package/dist/KeybindingHint/key-names.js +14 -15
  217. package/dist/Label/Label-7904957c.css +1 -1
  218. package/dist/Label/Label-7904957c.css.map +1 -1
  219. package/dist/Label/Label.d.ts.map +1 -1
  220. package/dist/Label/Label.js +1 -2
  221. package/dist/LabelGroup/LabelGroup.d.ts.map +1 -1
  222. package/dist/LabelGroup/LabelGroup.js +3 -16
  223. package/dist/Link/Link-968346ff.css +2 -0
  224. package/dist/Link/Link-968346ff.css.map +1 -0
  225. package/dist/Link/Link.d.ts +1 -1
  226. package/dist/Link/Link.d.ts.map +1 -1
  227. package/dist/Link/Link.js +17 -12
  228. package/dist/Link/Link.module.css.js +1 -1
  229. package/dist/NavList/NavList-5dc067e3.css +1 -1
  230. package/dist/NavList/NavList-5dc067e3.css.map +1 -1
  231. package/dist/NavList/NavList.d.ts +12 -6
  232. package/dist/NavList/NavList.d.ts.map +1 -1
  233. package/dist/NavList/NavList.js +87 -114
  234. package/dist/Overlay/Overlay-f81a131d.css +2 -0
  235. package/dist/Overlay/Overlay-f81a131d.css.map +1 -0
  236. package/dist/Overlay/Overlay.d.ts +18 -3
  237. package/dist/Overlay/Overlay.d.ts.map +1 -1
  238. package/dist/Overlay/Overlay.js +110 -90
  239. package/dist/Overlay/Overlay.module.css.js +2 -2
  240. package/dist/PageHeader/{PageHeader-5e969745.css → PageHeader-9f4a690a.css} +2 -2
  241. package/dist/PageHeader/PageHeader-9f4a690a.css.map +1 -0
  242. package/dist/PageHeader/PageHeader.d.ts.map +1 -1
  243. package/dist/PageHeader/PageHeader.js +35 -69
  244. package/dist/PageHeader/PageHeader.module.css.js +1 -1
  245. package/dist/PageLayout/PageLayout-3444a142.css +1 -1
  246. package/dist/PageLayout/PageLayout-3444a142.css.map +1 -1
  247. package/dist/PageLayout/PageLayout.d.ts +7 -24
  248. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  249. package/dist/PageLayout/PageLayout.js +8 -21
  250. package/dist/PageLayout/usePaneWidth.d.ts.map +1 -1
  251. package/dist/PageLayout/usePaneWidth.js +7 -15
  252. package/dist/Pagehead/Pagehead-0744ffce.css +1 -1
  253. package/dist/Pagehead/Pagehead-0744ffce.css.map +1 -1
  254. package/dist/Pagehead/Pagehead.js +0 -1
  255. package/dist/Pagination/Pagination-16a5b4c6.css +1 -1
  256. package/dist/Pagination/Pagination-16a5b4c6.css.map +1 -1
  257. package/dist/Pagination/Pagination.d.ts +0 -1
  258. package/dist/Pagination/Pagination.d.ts.map +1 -1
  259. package/dist/Pagination/Pagination.js +1 -9
  260. package/dist/Popover/Popover-a93df39c.css +1 -1
  261. package/dist/Popover/Popover-a93df39c.css.map +1 -1
  262. package/dist/Popover/Popover.d.ts.map +1 -1
  263. package/dist/Popover/Popover.js +0 -2
  264. package/dist/Portal/Portal.d.ts +14 -0
  265. package/dist/Portal/Portal.d.ts.map +1 -1
  266. package/dist/Portal/Portal.js +46 -8
  267. package/dist/Portal/index.d.ts +1 -3
  268. package/dist/Portal/index.d.ts.map +1 -1
  269. package/dist/Portal/index.js +1 -0
  270. package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
  271. package/dist/ProgressBar/ProgressBar.js +0 -2
  272. package/dist/Radio/Radio-4319e717.css +1 -1
  273. package/dist/Radio/Radio-4319e717.css.map +1 -1
  274. package/dist/Radio/Radio.d.ts.map +1 -1
  275. package/dist/Radio/Radio.js +2 -3
  276. package/dist/RadioGroup/RadioGroup.d.ts +10 -4
  277. package/dist/RadioGroup/RadioGroup.d.ts.map +1 -1
  278. package/dist/RadioGroup/RadioGroup.js +4 -3
  279. package/dist/RadioGroup/index.d.ts +1 -2
  280. package/dist/RadioGroup/index.d.ts.map +1 -1
  281. package/dist/RelativeTime/RelativeTime.js +0 -1
  282. package/dist/ScrollableRegion/ScrollableRegion.d.ts.map +1 -1
  283. package/dist/ScrollableRegion/ScrollableRegion.js +0 -1
  284. package/dist/SegmentedControl/SegmentedControl-6389d0da.css +2 -0
  285. package/dist/SegmentedControl/SegmentedControl-6389d0da.css.map +1 -0
  286. package/dist/SegmentedControl/SegmentedControl.d.ts +3 -2
  287. package/dist/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  288. package/dist/SegmentedControl/SegmentedControl.js +1 -1
  289. package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -1
  290. package/dist/SegmentedControl/SegmentedControlButton.d.ts.map +1 -1
  291. package/dist/SegmentedControl/SegmentedControlButton.js +0 -1
  292. package/dist/SegmentedControl/SegmentedControlIconButton.d.ts.map +1 -1
  293. package/dist/SegmentedControl/SegmentedControlIconButton.js +0 -1
  294. package/dist/Select/Select.d.ts.map +1 -1
  295. package/dist/Select/Select.js +2 -6
  296. package/dist/SelectPanel/SelectPanel-3ac7e8d0.css +2 -0
  297. package/dist/SelectPanel/SelectPanel-3ac7e8d0.css.map +1 -0
  298. package/dist/SelectPanel/SelectPanel.d.ts +2 -3
  299. package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
  300. package/dist/SelectPanel/SelectPanel.js +7 -57
  301. package/dist/SelectPanel/SelectPanel.module.css.js +1 -1
  302. package/dist/SelectPanel/SelectPanelMessage.d.ts.map +1 -1
  303. package/dist/SelectPanel/SelectPanelMessage.js +1 -6
  304. package/dist/SelectPanel/index.d.ts +0 -1
  305. package/dist/SelectPanel/index.d.ts.map +1 -1
  306. package/dist/SideNav-baa2364d.css +1 -1
  307. package/dist/SideNav-baa2364d.css.map +1 -1
  308. package/dist/SideNav.d.ts.map +1 -1
  309. package/dist/SideNav.js +0 -2
  310. package/dist/Skeleton/SkeletonBox.d.ts +0 -1
  311. package/dist/Skeleton/SkeletonBox.d.ts.map +1 -1
  312. package/dist/Skeleton/SkeletonBox.js +47 -54
  313. package/dist/SkeletonText/SkeletonText.d.ts.map +1 -1
  314. package/dist/SkeletonText/SkeletonText.js +2 -2
  315. package/dist/Spinner/Spinner.d.ts.map +1 -1
  316. package/dist/Spinner/Spinner.js +6 -4
  317. package/dist/Stack/Stack-9e7b935d.css +2 -0
  318. package/dist/Stack/Stack-9e7b935d.css.map +1 -0
  319. package/dist/Stack/Stack.d.ts +2 -12
  320. package/dist/Stack/Stack.d.ts.map +1 -1
  321. package/dist/Stack/Stack.js +61 -89
  322. package/dist/Stack/Stack.module.css.js +1 -1
  323. package/dist/StateLabel/StateLabel-056eec66.css +2 -0
  324. package/dist/StateLabel/StateLabel-056eec66.css.map +1 -0
  325. package/dist/StateLabel/StateLabel.d.ts +0 -1
  326. package/dist/StateLabel/StateLabel.d.ts.map +1 -1
  327. package/dist/StateLabel/StateLabel.js +2 -4
  328. package/dist/StateLabel/StateLabel.module.css.js +1 -1
  329. package/dist/SubNav/SubNav-88128e5c.css +1 -1
  330. package/dist/SubNav/SubNav-88128e5c.css.map +1 -1
  331. package/dist/TabNav/TabNav-83c6145e.css +1 -1
  332. package/dist/TabNav/TabNav-83c6145e.css.map +1 -1
  333. package/dist/Text/{Text-d649cda5.css → Text-ca7603b7.css} +2 -2
  334. package/dist/Text/Text-ca7603b7.css.map +1 -0
  335. package/dist/Text/Text.d.ts +6 -4
  336. package/dist/Text/Text.d.ts.map +1 -1
  337. package/dist/Text/Text.js +14 -20
  338. package/dist/Text/Text.module.css.js +1 -1
  339. package/dist/TextInput/TextInput-dff8f842.css +1 -1
  340. package/dist/TextInput/TextInput-dff8f842.css.map +1 -1
  341. package/dist/TextInput/TextInput.d.ts +1 -7
  342. package/dist/TextInput/TextInput.d.ts.map +1 -1
  343. package/dist/TextInput/TextInput.js +71 -35
  344. package/dist/TextInputWithTokens/TextInputWithTokens-946ead3e.css +1 -1
  345. package/dist/TextInputWithTokens/TextInputWithTokens-946ead3e.css.map +1 -1
  346. package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +3 -3
  347. package/dist/TextInputWithTokens/TextInputWithTokens.d.ts.map +1 -1
  348. package/dist/TextInputWithTokens/TextInputWithTokens.js +2 -9
  349. package/dist/Textarea/TextArea-53e27580.css +1 -1
  350. package/dist/Textarea/TextArea-53e27580.css.map +1 -1
  351. package/dist/Textarea/Textarea.d.ts.map +1 -1
  352. package/dist/Textarea/Textarea.js +186 -158
  353. package/dist/ThemeProvider.d.ts +14 -10
  354. package/dist/ThemeProvider.d.ts.map +1 -1
  355. package/dist/ThemeProvider.js +121 -186
  356. package/dist/Timeline/Timeline-19bef8c5.css +2 -0
  357. package/dist/Timeline/Timeline-19bef8c5.css.map +1 -0
  358. package/dist/Timeline/Timeline.d.ts +7 -27
  359. package/dist/Timeline/Timeline.d.ts.map +1 -1
  360. package/dist/Timeline/Timeline.js +54 -252
  361. package/dist/Timeline/Timeline.module.css.js +2 -2
  362. package/dist/Timeline/index.d.ts +1 -1
  363. package/dist/Timeline/index.d.ts.map +1 -1
  364. package/dist/ToggleSwitch/ToggleSwitch-fc4696f5.css +2 -0
  365. package/dist/ToggleSwitch/ToggleSwitch-fc4696f5.css.map +1 -0
  366. package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
  367. package/dist/ToggleSwitch/ToggleSwitch.module.css.js +1 -1
  368. package/dist/Token/IssueLabelToken-ea9392ab.css +2 -0
  369. package/dist/Token/{IssueLabelToken-10cfada5.css.map → IssueLabelToken-ea9392ab.css.map} +1 -1
  370. package/dist/Token/IssueLabelToken.d.ts.map +1 -1
  371. package/dist/Token/IssueLabelToken.js +1 -3
  372. package/dist/Token/IssueLabelToken.module.css.js +1 -1
  373. package/dist/Token/Token-b3c86dc0.css +1 -1
  374. package/dist/Token/Token-b3c86dc0.css.map +1 -1
  375. package/dist/Token/Token.d.ts.map +1 -1
  376. package/dist/Token/Token.js +1 -3
  377. package/dist/Token/TokenBase.d.ts +5 -2
  378. package/dist/Token/TokenBase.d.ts.map +1 -1
  379. package/dist/Token/TokenBase.js +14 -3
  380. package/dist/Token/_RemoveTokenButton-a0d2969b.css +1 -1
  381. package/dist/Token/_RemoveTokenButton-a0d2969b.css.map +1 -1
  382. package/dist/Token/_RemoveTokenButton.js +1 -1
  383. package/dist/Token/_TokenTextContainer-24678fbc.css +2 -0
  384. package/dist/Token/_TokenTextContainer-24678fbc.css.map +1 -0
  385. package/dist/Token/_TokenTextContainer.module.css.js +2 -2
  386. package/dist/Tooltip/Tooltip-dca4338d.css +1 -1
  387. package/dist/Tooltip/Tooltip-dca4338d.css.map +1 -1
  388. package/dist/Tooltip/Tooltip.d.ts +3 -0
  389. package/dist/Tooltip/Tooltip.d.ts.map +1 -1
  390. package/dist/Tooltip/Tooltip.js +4 -3
  391. package/dist/TooltipV2/Tooltip.d.ts +3 -0
  392. package/dist/TooltipV2/Tooltip.d.ts.map +1 -1
  393. package/dist/TooltipV2/Tooltip.js +10 -11
  394. package/dist/TopicTag/TopicTag-b15f6cf1.css +1 -1
  395. package/dist/TopicTag/TopicTag-b15f6cf1.css.map +1 -1
  396. package/dist/TreeView/TreeView-70baca82.css +2 -0
  397. package/dist/TreeView/TreeView-70baca82.css.map +1 -0
  398. package/dist/TreeView/TreeView.d.ts +2 -11
  399. package/dist/TreeView/TreeView.d.ts.map +1 -1
  400. package/dist/TreeView/TreeView.js +172 -220
  401. package/dist/TreeView/TreeView.module.css.js +2 -2
  402. package/dist/TreeView/useRovingTabIndex.d.ts +3 -4
  403. package/dist/TreeView/useRovingTabIndex.d.ts.map +1 -1
  404. package/dist/TreeView/useRovingTabIndex.js +21 -42
  405. package/dist/UnderlineNav/UnderlineNav.d.ts +1 -0
  406. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  407. package/dist/UnderlineNav/UnderlineNav.js +17 -11
  408. package/dist/_VisuallyHidden.js +2 -2
  409. package/dist/_VisuallyHidden.module.css.js +2 -2
  410. package/dist/deprecated/ActionList/Divider-7c6b656a.css +1 -1
  411. package/dist/deprecated/ActionList/Divider-7c6b656a.css.map +1 -1
  412. package/dist/deprecated/ActionList/Group.d.ts +1 -1
  413. package/dist/deprecated/ActionList/Group.d.ts.map +1 -1
  414. package/dist/deprecated/ActionList/Group.js +5 -9
  415. package/dist/deprecated/ActionList/Header-493b1d76.css +1 -1
  416. package/dist/deprecated/ActionList/Header-493b1d76.css.map +1 -1
  417. package/dist/deprecated/ActionList/Item-f48bd3ee.css +2 -2
  418. package/dist/deprecated/ActionList/Item-f48bd3ee.css.map +1 -1
  419. package/dist/deprecated/ActionList/List-1ec9d6d9.css +1 -1
  420. package/dist/deprecated/ActionList/List-1ec9d6d9.css.map +1 -1
  421. package/dist/deprecated/DialogV1/Dialog-dce13989.css +1 -1
  422. package/dist/deprecated/DialogV1/Dialog-dce13989.css.map +1 -1
  423. package/dist/deprecated/UnderlineNav/UnderlineNav-0c1e0dff.css +1 -1
  424. package/dist/deprecated/UnderlineNav/UnderlineNav-0c1e0dff.css.map +1 -1
  425. package/dist/deprecated/utils/create-slots.d.ts.map +1 -1
  426. package/dist/experimental/IssueLabel/IssueLabel-2007d7e7.css +1 -1
  427. package/dist/experimental/IssueLabel/IssueLabel-2007d7e7.css.map +1 -1
  428. package/dist/experimental/SelectPanel2/SelectPanel-40b4ba73.css +2 -0
  429. package/dist/experimental/SelectPanel2/SelectPanel-40b4ba73.css.map +1 -0
  430. package/dist/experimental/SelectPanel2/SelectPanel.d.ts +1 -4
  431. package/dist/experimental/SelectPanel2/SelectPanel.d.ts.map +1 -1
  432. package/dist/experimental/SelectPanel2/SelectPanel.js +4 -9
  433. package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
  434. package/dist/experimental/SelectPanel2/index.d.ts +1 -2
  435. package/dist/experimental/SelectPanel2/index.d.ts.map +1 -1
  436. package/dist/experimental/SelectPanel2/mock-story-data.d.ts +3 -3
  437. package/dist/experimental/Tabs/Tabs.d.ts +111 -3
  438. package/dist/experimental/Tabs/Tabs.d.ts.map +1 -1
  439. package/dist/experimental/Tabs/Tabs.js +237 -3
  440. package/dist/experimental/Tabs/index.d.ts +2 -5
  441. package/dist/experimental/Tabs/index.d.ts.map +1 -1
  442. package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts.map +1 -1
  443. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +56 -101
  444. package/dist/experimental/index.d.ts +2 -4
  445. package/dist/experimental/index.d.ts.map +1 -1
  446. package/dist/experimental/index.js +3 -9
  447. package/dist/hooks/index.d.ts +0 -1
  448. package/dist/hooks/index.d.ts.map +1 -1
  449. package/dist/hooks/useAnchoredPosition.d.ts +0 -1
  450. package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
  451. package/dist/hooks/useAnchoredPosition.js +5 -74
  452. package/dist/hooks/useControllableState.d.ts.map +1 -1
  453. package/dist/hooks/useControllableState.js +0 -2
  454. package/dist/hooks/useDetails.d.ts.map +1 -1
  455. package/dist/hooks/useDialog.d.ts.map +1 -1
  456. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  457. package/dist/hooks/useFocusTrap.js +0 -2
  458. package/dist/hooks/useFocusZone.d.ts.map +1 -1
  459. package/dist/hooks/useFocusZone.js +1 -3
  460. package/dist/hooks/useIsMacOS.js +32 -0
  461. package/dist/hooks/useMedia.d.ts +24 -1
  462. package/dist/hooks/useMedia.d.ts.map +1 -1
  463. package/dist/hooks/useMedia.js +6 -15
  464. package/dist/hooks/useMenuInitialFocus.d.ts.map +1 -1
  465. package/dist/hooks/useMenuInitialFocus.js +0 -1
  466. package/dist/hooks/useMergedRefs.d.ts +5 -5
  467. package/dist/hooks/useMergedRefs.d.ts.map +1 -1
  468. package/dist/hooks/useMergedRefs.js +31 -31
  469. package/dist/hooks/useMnemonics.d.ts.map +1 -1
  470. package/dist/hooks/useOnEscapePress.js +1 -1
  471. package/dist/hooks/useResizeObserver.d.ts +1 -1
  472. package/dist/hooks/useResizeObserver.d.ts.map +1 -1
  473. package/dist/hooks/useResizeObserver.js +2 -5
  474. package/dist/hooks/useResponsiveValue.d.ts +0 -2
  475. package/dist/hooks/useResponsiveValue.d.ts.map +1 -1
  476. package/dist/hooks/useResponsiveValue.js +0 -2
  477. package/dist/hooks/useSlots.d.ts.map +1 -1
  478. package/dist/hooks/useSlots.js +0 -24
  479. package/dist/hooks/useSyncedState.d.ts +1 -1
  480. package/dist/index.d.ts +6 -11
  481. package/dist/index.d.ts.map +1 -1
  482. package/dist/index.js +3 -12
  483. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup-e38b5339.css +1 -1
  484. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup-e38b5339.css.map +1 -1
  485. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +3 -4
  486. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts.map +1 -1
  487. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +6 -8
  488. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.d.ts.map +1 -1
  489. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +2 -4
  490. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.d.ts +0 -1
  491. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.d.ts.map +1 -1
  492. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts.map +1 -1
  493. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +2 -4
  494. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts.map +1 -1
  495. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -4
  496. package/dist/internal/components/InputLabel-985ef80b.css +1 -1
  497. package/dist/internal/components/InputLabel-985ef80b.css.map +1 -1
  498. package/dist/internal/components/InputValidation-dddeaafd.css +1 -1
  499. package/dist/internal/components/InputValidation-dddeaafd.css.map +1 -1
  500. package/dist/internal/components/InputValidation.d.ts +1 -2
  501. package/dist/internal/components/InputValidation.d.ts.map +1 -1
  502. package/dist/internal/components/InputValidation.js +33 -64
  503. package/dist/internal/components/TextInputInnerAction-477e9b99.css +1 -1
  504. package/dist/internal/components/TextInputInnerAction-477e9b99.css.map +1 -1
  505. package/dist/internal/components/TextInputInnerAction.d.ts +1 -1
  506. package/dist/internal/components/TextInputInnerAction.js +0 -1
  507. package/dist/internal/components/TextInputInnerVisualSlot.d.ts +0 -4
  508. package/dist/internal/components/TextInputInnerVisualSlot.d.ts.map +1 -1
  509. package/dist/internal/components/TextInputInnerVisualSlot.js +50 -66
  510. package/dist/internal/components/TextInputWrapper-889df5d3.css +2 -0
  511. package/dist/internal/components/TextInputWrapper-889df5d3.css.map +1 -0
  512. package/dist/internal/components/TextInputWrapper.d.ts.map +1 -1
  513. package/dist/internal/components/TextInputWrapper.js +24 -34
  514. package/dist/internal/components/TextInputWrapper.module.css.js +1 -1
  515. package/dist/internal/components/UnderlineTabbedInterface-4197ee28.css +1 -1
  516. package/dist/internal/components/UnderlineTabbedInterface-4197ee28.css.map +1 -1
  517. package/dist/internal/hooks/useFocus.d.ts +1 -9
  518. package/dist/internal/hooks/useFocus.d.ts.map +1 -1
  519. package/dist/live-region/Announce.d.ts.map +1 -1
  520. package/dist/live-region/Announce.js +36 -51
  521. package/dist/theme.d.ts +1 -1
  522. package/dist/utils/StressTest.d.ts.map +1 -1
  523. package/dist/utils/character-counter.d.ts +21 -16
  524. package/dist/utils/character-counter.d.ts.map +1 -1
  525. package/dist/utils/character-counter.js +59 -23
  526. package/dist/utils/descendant-registry.d.ts.map +1 -1
  527. package/dist/utils/environment.d.ts +1 -4
  528. package/dist/utils/environment.d.ts.map +1 -1
  529. package/dist/utils/environment.js +2 -17
  530. package/dist/utils/form-story-helpers.d.ts +1 -2
  531. package/dist/utils/form-story-helpers.d.ts.map +1 -1
  532. package/dist/utils/modern-polymorphic.d.ts +1 -1
  533. package/dist/utils/modern-polymorphic.d.ts.map +1 -1
  534. package/dist/utils/useIsomorphicLayoutEffect.d.ts +2 -2
  535. package/dist/utils/useIsomorphicLayoutEffect.d.ts.map +1 -1
  536. package/generated/components.json +30 -345
  537. package/generated/hooks.json +0 -52
  538. package/package.json +17 -19
  539. package/dist/ActionBar/ActionBar-e63def3c.css +0 -2
  540. package/dist/ActionBar/ActionBar-e63def3c.css.map +0 -1
  541. package/dist/ActionList/ActionList-65f7daac.css +0 -2
  542. package/dist/ActionList/ActionList-65f7daac.css.map +0 -1
  543. package/dist/ActionList/Group-efcb39da.css +0 -2
  544. package/dist/ActionList/Group-efcb39da.css.map +0 -1
  545. package/dist/ActionList/GroupContext.d.ts +0 -8
  546. package/dist/ActionList/GroupContext.d.ts.map +0 -1
  547. package/dist/ActionList/GroupContext.js +0 -8
  548. package/dist/ActionList/GroupHeadingTrailingAction.d.ts +0 -21
  549. package/dist/ActionList/GroupHeadingTrailingAction.d.ts.map +0 -1
  550. package/dist/ActionList/GroupHeadingTrailingAction.js +0 -72
  551. package/dist/ActionMenu/ActionMenu-c4e2a589.css +0 -2
  552. package/dist/ActionMenu/ActionMenu-c4e2a589.css.map +0 -1
  553. package/dist/AnchoredOverlay/AnchoredOverlay-83281f45.css +0 -2
  554. package/dist/AnchoredOverlay/AnchoredOverlay-83281f45.css.map +0 -1
  555. package/dist/AvatarStack/AvatarStack-9bb5649f.css +0 -2
  556. package/dist/AvatarStack/AvatarStack-9bb5649f.css.map +0 -1
  557. package/dist/Blankslate/Blankslate-11d7a7fd.css +0 -2
  558. package/dist/Blankslate/Blankslate-11d7a7fd.css.map +0 -1
  559. package/dist/Breadcrumbs/Breadcrumbs-54395fc6.css +0 -2
  560. package/dist/Button/ButtonBase-311501b9.css +0 -2
  561. package/dist/Button/ButtonBase-311501b9.css.map +0 -1
  562. package/dist/ButtonGroup/ButtonGroup-be1c1123.css +0 -2
  563. package/dist/ButtonGroup/ButtonGroup-be1c1123.css.map +0 -1
  564. package/dist/Card/Card-59b77d05.css +0 -2
  565. package/dist/Card/Card-59b77d05.css.map +0 -1
  566. package/dist/Card/Card.d.ts +0 -142
  567. package/dist/Card/Card.d.ts.map +0 -1
  568. package/dist/Card/Card.js +0 -610
  569. package/dist/Card/Card.module.css.js +0 -5
  570. package/dist/Card/index.d.ts +0 -28
  571. package/dist/Card/index.d.ts.map +0 -1
  572. package/dist/Card/index.js +0 -12
  573. package/dist/Checkbox/Checkbox-7476a7ba.css +0 -2
  574. package/dist/Checkbox/Checkbox-7476a7ba.css.map +0 -1
  575. package/dist/ConfirmationDialog/useConfirm.d.ts +0 -12
  576. package/dist/ConfirmationDialog/useConfirm.d.ts.map +0 -1
  577. package/dist/ConfirmationDialog/useConfirm.js +0 -40
  578. package/dist/DataTable/Pagination-aebe86e8.css +0 -2
  579. package/dist/DataTable/Pagination-aebe86e8.css.map +0 -1
  580. package/dist/Dialog/Dialog-b7da369a.css +0 -2
  581. package/dist/Dialog/Dialog-b7da369a.css.map +0 -1
  582. package/dist/Dialog/DialogContext.d.ts +0 -3
  583. package/dist/Dialog/DialogContext.d.ts.map +0 -1
  584. package/dist/Dialog/DialogContext.js +0 -5
  585. package/dist/FilteredActionList/FilteredActionList-6808e67a.css +0 -2
  586. package/dist/FilteredActionList/FilteredActionList-6808e67a.css.map +0 -1
  587. package/dist/FilteredActionList/FilteredActionListInput.d.ts +0 -15
  588. package/dist/FilteredActionList/FilteredActionListInput.d.ts.map +0 -1
  589. package/dist/FilteredActionList/FilteredActionListInput.js +0 -119
  590. package/dist/FilteredActionList/FilteredActionListLoaders-bdda3d7e.css +0 -2
  591. package/dist/FilteredActionList/FilteredActionListLoaders-bdda3d7e.css.map +0 -1
  592. package/dist/FilteredActionList/constants.d.ts +0 -11
  593. package/dist/FilteredActionList/constants.d.ts.map +0 -1
  594. package/dist/FilteredActionList/constants.js +0 -13
  595. package/dist/FilteredActionList/index.js +0 -10
  596. package/dist/InlineMessage/InlineMessage-cd1e4c93.css +0 -2
  597. package/dist/InlineMessage/InlineMessage-cd1e4c93.css.map +0 -1
  598. package/dist/KeybindingHint/components/utils.d.ts +0 -8
  599. package/dist/KeybindingHint/components/utils.d.ts.map +0 -1
  600. package/dist/KeybindingHint/components/utils.js +0 -32
  601. package/dist/KeybindingHint/platform.d.ts +0 -22
  602. package/dist/KeybindingHint/platform.d.ts.map +0 -1
  603. package/dist/KeybindingHint/platform.js +0 -61
  604. package/dist/KeybindingHint/utils.d.ts +0 -15
  605. package/dist/KeybindingHint/utils.d.ts.map +0 -1
  606. package/dist/KeybindingHint/utils.js +0 -17
  607. package/dist/Link/Link-ba423096.css +0 -2
  608. package/dist/Link/Link-ba423096.css.map +0 -1
  609. package/dist/Overlay/Overlay-214d10dd.css +0 -2
  610. package/dist/Overlay/Overlay-214d10dd.css.map +0 -1
  611. package/dist/Overlay/constants.d.ts +0 -19
  612. package/dist/Overlay/constants.d.ts.map +0 -1
  613. package/dist/Overlay/constants.js +0 -20
  614. package/dist/PageHeader/PageHeader-5e969745.css.map +0 -1
  615. package/dist/Portal/PortalContext.d.ts +0 -5
  616. package/dist/Portal/PortalContext.d.ts.map +0 -1
  617. package/dist/Portal/PortalContext.js +0 -5
  618. package/dist/Portal/portalRoot.d.ts +0 -11
  619. package/dist/Portal/portalRoot.d.ts.map +0 -1
  620. package/dist/Portal/portalRoot.js +0 -39
  621. package/dist/RadioGroup/RadioGroupContext.d.ts +0 -7
  622. package/dist/RadioGroup/RadioGroupContext.d.ts.map +0 -1
  623. package/dist/RadioGroup/RadioGroupContext.js +0 -5
  624. package/dist/SegmentedControl/SegmentedControl-622e61a4.css +0 -2
  625. package/dist/SegmentedControl/SegmentedControl-622e61a4.css.map +0 -1
  626. package/dist/SelectPanel/SelectPanel-00796bf3.css +0 -2
  627. package/dist/SelectPanel/SelectPanel-00796bf3.css.map +0 -1
  628. package/dist/Stack/Stack-58c33984.css +0 -2
  629. package/dist/Stack/Stack-58c33984.css.map +0 -1
  630. package/dist/StateLabel/StateLabel-cd51ae39.css +0 -2
  631. package/dist/StateLabel/StateLabel-cd51ae39.css.map +0 -1
  632. package/dist/Text/Text-d649cda5.css.map +0 -1
  633. package/dist/ThemeContext.d.ts +0 -15
  634. package/dist/ThemeContext.d.ts.map +0 -1
  635. package/dist/ThemeContext.js +0 -9
  636. package/dist/Timeline/Timeline-ff81db92.css +0 -2
  637. package/dist/Timeline/Timeline-ff81db92.css.map +0 -1
  638. package/dist/Timeline/constants.d.ts +0 -2
  639. package/dist/Timeline/constants.d.ts.map +0 -1
  640. package/dist/ToggleSwitch/ToggleSwitch-b5866af6.css +0 -2
  641. package/dist/ToggleSwitch/ToggleSwitch-b5866af6.css.map +0 -1
  642. package/dist/Token/IssueLabelToken-10cfada5.css +0 -2
  643. package/dist/Token/_TokenTextContainer-55ce2de3.css +0 -2
  644. package/dist/Token/_TokenTextContainer-55ce2de3.css.map +0 -1
  645. package/dist/Token/constants.d.ts +0 -4
  646. package/dist/Token/constants.d.ts.map +0 -1
  647. package/dist/Token/constants.js +0 -3
  648. package/dist/Token/utils.d.ts +0 -3
  649. package/dist/Token/utils.d.ts.map +0 -1
  650. package/dist/Token/utils.js +0 -14
  651. package/dist/Tooltip/TooltipContext.d.ts +0 -5
  652. package/dist/Tooltip/TooltipContext.d.ts.map +0 -1
  653. package/dist/Tooltip/TooltipContext.js +0 -5
  654. package/dist/TooltipV2/TooltipContext.d.ts +0 -5
  655. package/dist/TooltipV2/TooltipContext.d.ts.map +0 -1
  656. package/dist/TooltipV2/TooltipContext.js +0 -5
  657. package/dist/TreeView/TreeView-1bf45a33.css +0 -2
  658. package/dist/TreeView/TreeView-1bf45a33.css.map +0 -1
  659. package/dist/UnderlineNav/utils.d.ts +0 -3
  660. package/dist/UnderlineNav/utils.d.ts.map +0 -1
  661. package/dist/UnderlineNav/utils.js +0 -8
  662. package/dist/experimental/SelectPanel2/SelectPanel-608e207e.css +0 -2
  663. package/dist/experimental/SelectPanel2/SelectPanel-608e207e.css.map +0 -1
  664. package/dist/experimental/Tabs/TabsContext.d.ts +0 -3
  665. package/dist/experimental/Tabs/TabsContext.d.ts.map +0 -1
  666. package/dist/experimental/Tabs/TabsContext.js +0 -5
  667. package/dist/experimental/Tabs/types.d.ts +0 -107
  668. package/dist/experimental/Tabs/types.d.ts.map +0 -1
  669. package/dist/experimental/Tabs/useTab.d.ts +0 -7
  670. package/dist/experimental/Tabs/useTab.d.ts.map +0 -1
  671. package/dist/experimental/Tabs/useTab.js +0 -97
  672. package/dist/experimental/Tabs/useTabList.d.ts +0 -3
  673. package/dist/experimental/Tabs/useTabList.d.ts.map +0 -1
  674. package/dist/experimental/Tabs/useTabList.js +0 -100
  675. package/dist/experimental/Tabs/useTabPanel.d.ts +0 -4
  676. package/dist/experimental/Tabs/useTabPanel.d.ts.map +0 -1
  677. package/dist/experimental/Tabs/useTabPanel.js +0 -37
  678. package/dist/experimental/Tabs/useTabs.d.ts +0 -3
  679. package/dist/experimental/Tabs/useTabs.d.ts.map +0 -1
  680. package/dist/experimental/Tabs/useTabs.js +0 -12
  681. package/dist/hooks/MatchMedia.d.ts +0 -23
  682. package/dist/hooks/MatchMedia.d.ts.map +0 -1
  683. package/dist/hooks/MatchMediaContext.d.ts +0 -5
  684. package/dist/hooks/MatchMediaContext.d.ts.map +0 -1
  685. package/dist/hooks/MatchMediaContext.js +0 -8
  686. package/dist/internal/components/TextInputWrapper-b2f7f9fa.css +0 -2
  687. package/dist/internal/components/TextInputWrapper-b2f7f9fa.css.map +0 -1
  688. package/dist/internal/hooks/useDevOnlyEffect.d.ts +0 -16
  689. package/dist/internal/hooks/useDevOnlyEffect.d.ts.map +0 -1
  690. package/dist/internal/hooks/useDevOnlyEffect.js +0 -25
  691. package/dist/useTheme.d.ts +0 -15
  692. package/dist/useTheme.d.ts.map +0 -1
  693. package/dist/useTheme.js +0 -16
  694. package/dist/utils/as-slot.d.ts +0 -20
  695. package/dist/utils/as-slot.d.ts.map +0 -1
  696. package/dist/utils/as-slot.js +0 -30
  697. package/dist/utils/story-helpers.d.ts +0 -71
  698. package/dist/utils/story-helpers.d.ts.map +0 -1
  699. package/dist/utils/testing/profiler.d.ts +0 -35
  700. package/dist/utils/testing/profiler.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,406 +1,12 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260625164407
4
-
5
- ### Minor Changes
6
-
7
- - [#8048](https://github.com/primer/react/pull/8048) [`3f9f4ed`](https://github.com/primer/react/commit/3f9f4ed147945fdb6e8a9710e7d485928125cc23) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - ActionBar: Add `ActionBar.Button` for rendering text buttons that overflow into the menu, alongside the existing `ActionBar.IconButton`
8
-
9
- - [#7991](https://github.com/primer/react/pull/7991) [`b906268`](https://github.com/primer/react/commit/b906268b7ebe8d684d8b5e9b1c4e9b528a5dd67a) Thanks [@llastflowers](https://github.com/llastflowers)! - Add data-component attributes and associated tests for:
10
-
11
- Radio
12
- RadioGroup
13
- RelativeTime
14
- ScrollableRegion
15
- SegmentedControl
16
- Select
17
- SideNav
18
- SkeletonBox
19
- SkeletonAvatar
20
- SkeletonText
21
- Spinner
22
-
23
- ### Patch Changes
24
-
25
- - [#8021](https://github.com/primer/react/pull/8021) [`6131a94`](https://github.com/primer/react/commit/6131a9424b5bd5bb98b7ae05771d8187fe2f58cd) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Announce, AriaStatus, AriaAlert: Avoid an extra React render on every content change (e.g. per keystroke when tied to an input)
26
-
27
- - [#7935](https://github.com/primer/react/pull/7935) [`5b3c806`](https://github.com/primer/react/commit/5b3c806305cfa09d33d42fc2957d55105725ea3b) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - ConfirmationDialog: `useConfirm`/`confirm` now removes its host element from `document.body` after the dialog is closed, and uses a fresh host element per call, so the empty container no longer lingers or leaks into other components and tests
28
-
29
- - Fake entry to force publishing
30
-
31
- - [#8007](https://github.com/primer/react/pull/8007) [`f052126`](https://github.com/primer/react/commit/f0521263c85a8d665f7c031bd711b3568bdac8e2) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Improve style-recalc performance by making ButtonGroup, DataTable Pagination, and Checkbox CSS selectors bucketable (removing universal `*`/`:not([attr])` subjects and `:is()` selector-list merges)
32
-
33
- - [#8021](https://github.com/primer/react/pull/8021) [`6131a94`](https://github.com/primer/react/commit/6131a9424b5bd5bb98b7ae05771d8187fe2f58cd) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Textarea: Improve typing performance by deriving the character counter in render instead of in effects, removing extra re-renders on each keystroke.
34
-
35
- - [#8021](https://github.com/primer/react/pull/8021) [`6131a94`](https://github.com/primer/react/commit/6131a9424b5bd5bb98b7ae05771d8187fe2f58cd) Thanks [@mattcosta7](https://github.com/mattcosta7)! - TextInput: Improve typing performance by deriving the character counter in render instead of in effects, removing extra re-renders on each keystroke.
36
-
37
- ## 38.29.0
38
-
39
- ### Minor Changes
40
-
41
- - [#8009](https://github.com/primer/react/pull/8009) [`2cf75b5`](https://github.com/primer/react/commit/2cf75b5e81218b55252ccd87beac6b2103326917) Thanks [@joshblack](https://github.com/joshblack)! - Update CSS build options to compile down :is() selectors
42
-
43
- - [#7994](https://github.com/primer/react/pull/7994) [`8cb7f6d`](https://github.com/primer/react/commit/8cb7f6d9e1314e8c9b3bddeabebbf6a93fb4f768) Thanks [@TylerJDev](https://github.com/TylerJDev)! - ActionList: Adds `tooltipDirection` prop to `ActionList.TrailingAction`
44
-
45
- - [#7867](https://github.com/primer/react/pull/7867) [`4ec4248`](https://github.com/primer/react/commit/4ec4248b9c1ae662b761385110f1fd7ad7480a2f) Thanks [@llastflowers](https://github.com/llastflowers)! - Add data-component attributes and associated tests for ActionMenu, AnchoredOverlay, Autocomplete, and NavList
46
-
47
- - [#7897](https://github.com/primer/react/pull/7897) [`1f7b8af`](https://github.com/primer/react/commit/1f7b8af8127a859c472b3972ebe9fce934246c38) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Add support for the `as` prop on `TreeView.Item`. This enables rendering the
48
- treeitem as a different element (e.g. `as="a"` for native anchors, or a custom
49
- router-link component) while preserving all existing keyboard, focus, and ARIA
50
- behavior.
51
-
52
- When `as` is omitted, the existing markup is unchanged: an `<li>` is rendered
53
- as the `role="treeitem"` element. When `as` is provided, the polymorphic
54
- element is rendered as the treeitem and is wrapped in an `<li role="none">`
55
- so the markup remains valid (a `<ul role="tree">` may only directly contain
56
- `<li>` elements).
57
-
58
- ### Patch Changes
59
-
60
- - [#7976](https://github.com/primer/react/pull/7976) [`1fac927`](https://github.com/primer/react/commit/1fac9270c497c1904acbb3eb60805630aab82a97) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - NavList: add a small gap between items for readability, including before expanded sub-navs, behind the `primer_react_action_list_item_gap` feature flag
61
-
62
- - [#7999](https://github.com/primer/react/pull/7999) [`eada357`](https://github.com/primer/react/commit/eada3574ff15bfd7680602f34e19308ea766a972) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Breadcrumbs: Improve rendering performance and refresh the overflow menu when breadcrumb content changes without changing the number of items.
63
-
64
- - [#7929](https://github.com/primer/react/pull/7929) [`48c34ca`](https://github.com/primer/react/commit/48c34ca452a5449b0ba901783edb169b6a1e1882) Thanks [@joshblack](https://github.com/joshblack)! - FilteredActionList: Make body skeleton widths stable for server rendering
65
-
66
- - [#7985](https://github.com/primer/react/pull/7985) [`969c874`](https://github.com/primer/react/commit/969c8749b40a8f5075dd9ca91314cde5c41e3814) Thanks [@joshblack](https://github.com/joshblack)! - AnchoredOverlay: Render the popover target attribute correctly for popover anchors
67
-
68
- - [#7984](https://github.com/primer/react/pull/7984) [`06fdad4`](https://github.com/primer/react/commit/06fdad432ad274878b15921d3ee25a157c61e70d) Thanks [@joshblack](https://github.com/joshblack)! - CircleBadge, ActionList: Prevent internal props from rendering on DOM elements
69
-
70
- - [#7978](https://github.com/primer/react/pull/7978) [`e3f655c`](https://github.com/primer/react/commit/e3f655c6735ffd1bd105b8e7599e273bb1eee4d1) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - PageHeader.ParentLink: Forward unknown props (e.g. `to`) to the underlying element, enabling client-side routing with polymorphic `as`.
71
-
72
- - [#7930](https://github.com/primer/react/pull/7930) [`f32ac0f`](https://github.com/primer/react/commit/f32ac0f4d623a78c9e92c43e0f13e654eb5ce2ca) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Blankslate: reduce `size="small"` padding to `var(--base-size-16)` for denser layouts
73
-
74
- ## 38.28.0
75
-
76
- ### Minor Changes
77
-
78
- - [#7888](https://github.com/primer/react/pull/7888) [`45be31b`](https://github.com/primer/react/commit/45be31b561b2c1280b182531069e8a84364a4185) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Extend `cssAnchorPositioningSettings` with a `fallbackStrategy` (`'default' | 'none' | 'opposite-side'`) to control CSS anchor positioning fallback behavior when native CSS anchor positioning is active.
79
-
80
- - [#7923](https://github.com/primer/react/pull/7923) [`6a7e130`](https://github.com/primer/react/commit/6a7e13051139ba06e48391edc0b05ef555b814b9) Thanks [@dylanatsmith](https://github.com/dylanatsmith)! - Card: Add `layout="compact"` prop for a compact card layout with tighter spacing, no icon background, and smaller title
81
-
82
- - [#7922](https://github.com/primer/react/pull/7922) [`55b7b04`](https://github.com/primer/react/commit/55b7b04647af9d7812e9ff77605524048358039c) Thanks [@dylanatsmith](https://github.com/dylanatsmith)! - InlineMessage: Make `variant` prop optional, defaulting to the standard foreground color with an info icon
83
-
84
- - [#7889](https://github.com/primer/react/pull/7889) [`3af5edc`](https://github.com/primer/react/commit/3af5edc56dd21aaa16c7c1676c4627c4ecd6f0f2) Thanks [@llastflowers](https://github.com/llastflowers)! - Add data-component attributes and associated tests for PageHeader, PageLayout, Pagehead, Popover, Portal, and ProgressBar
85
-
86
- - [#7964](https://github.com/primer/react/pull/7964) [`0f0f79f`](https://github.com/primer/react/commit/0f0f79f5da92087e636cde0d0709479c9c68d2d1) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Add `cssAnchorPositioningSettings` prop to allow opting out of native CSS anchor positioning (via `disable`), and use it in `SelectPanel` so the `modal` variant stays manually centered instead of being repositioned by CSS anchor positioning.
87
-
88
- ### Patch Changes
89
-
90
- - [#7918](https://github.com/primer/react/pull/7918) [`95986ce`](https://github.com/primer/react/commit/95986ce22eaca6f4cb2122a00d51ec93d72f2dfe) Thanks [@jonrohan](https://github.com/jonrohan)! - Autocomplete: Keep the typed text instead of restoring the full inline suggestion when the input loses focus, matching the behavior of pressing Escape
91
-
92
- - [#7971](https://github.com/primer/react/pull/7971) [`2087e87`](https://github.com/primer/react/commit/2087e87c9fe869a59fc1dcb0546ee25a14767006) Thanks [@francinelucca](https://github.com/francinelucca)! - ThemeProvider: Skip rendering the SSR handoff script when the `primer_react_theme_provider_remove_ssr_handoff` feature flag is enabled
93
-
94
- - [#7910](https://github.com/primer/react/pull/7910) [`0c38cfa`](https://github.com/primer/react/commit/0c38cfaeabab347e48d4e34c200739e32efa73a2) Thanks [@janmaarten-a11y](https://github.com/janmaarten-a11y)! - Timeline: Add `primer_react_timeline_list_semantics` feature flag to opt into list semantics
95
-
96
- When the `primer_react_timeline_list_semantics` feature flag is enabled, `Timeline` renders as `<ol role="list">` and `Timeline.Item` / `Timeline.Break` render as `<li>` so screen reader users get list navigation (total item count, position in sequence). The default behavior is unchanged — `Timeline` and its subcomponents still render as `<div>` until the flag is opted into.
97
-
98
- Enable the flag with the `FeatureFlags` provider:
99
-
100
- ```tsx
101
- import {FeatureFlags} from '@primer/react/experimental'
102
- ;<FeatureFlags flags={{primer_react_timeline_list_semantics: true}}>
103
- <Timeline>…</Timeline>
104
- </FeatureFlags>
105
- ```
106
-
107
- ## 38.27.0
108
-
109
- ### Minor Changes
110
-
111
- - [#7900](https://github.com/primer/react/pull/7900) [`49a546f`](https://github.com/primer/react/commit/49a546fcb3901c139a3abe8f1daea7b5f3427f5d) Thanks [@mattcosta7](https://github.com/mattcosta7)! - `PageLayout.Sidebar` (and `SplitPageLayout.Sidebar`): add controlled-width support via `currentWidth` + `onResizeEnd`, matching the discriminated-union API already on `PageLayout.Pane`. The underlying `usePaneWidth` hook already supported these options; this wires them through the component's prop surface. Existing usage is unchanged — the props are opt-in and the uncontrolled (default or `widthStorageKey`-backed) behavior is preserved exactly.
112
-
113
- - [#7906](https://github.com/primer/react/pull/7906) [`adc5299`](https://github.com/primer/react/commit/adc5299f3d98519119fb9547e50dd2985fc96174) Thanks [@jonrohan](https://github.com/jonrohan)! - Text: Add `whiteSpace` prop to control the CSS `white-space` property
114
-
115
- ### Patch Changes
116
-
117
- - [#7915](https://github.com/primer/react/pull/7915) [`f58e448`](https://github.com/primer/react/commit/f58e448961df15e28b4a69950de84d478e2664af) Thanks [@jonrohan](https://github.com/jonrohan)! - Dialog: Fix `Escape` key not closing the dialog on the first keypress when the close button is focused
118
-
119
- - [#7908](https://github.com/primer/react/pull/7908) [`e9a2254`](https://github.com/primer/react/commit/e9a225421df61e7fa62da1b2796972122d266d36) Thanks [@jonrohan](https://github.com/jonrohan)! - `KeybindingHint`: display the `Meta` key correctly on platforms other than macOS and Windows. The `Meta`, `Alt`, and `Mod` keys are now resolved based on the detected platform: Apple platforms (macOS and iOS) show `⌘`/`⌥`, Windows shows `Win`, and all other platforms show `Meta`/`Alt`.
120
-
121
- - [#7894](https://github.com/primer/react/pull/7894) [`af4541d`](https://github.com/primer/react/commit/af4541d991c6e583dbf510bd0a0699f244ea00b2) Thanks [@mattcosta7](https://github.com/mattcosta7)! - ActionList: Replace `:has(...)` selectors on `ActionList.Item`, `InactiveButtonWrap`, and `TrailingActionButton` with JS-derived data attributes (`data-has-trailing-action`, `data-trailing-action-loading`, `data-position`, `data-has-label`). Reduces style-recalculation cost on lists that render many items. No visual or behavioral changes.
122
-
123
- - [#7899](https://github.com/primer/react/pull/7899) [`9659ce7`](https://github.com/primer/react/commit/9659ce767760d85c033e43e7e8ecdfdfb452dcb1) Thanks [@mattcosta7](https://github.com/mattcosta7)! - `TreeView`: make rows safer to use with `contain: paint` / `content-visibility: auto` and reduce style-recalc cost on hover/focus in large trees. No visual or layout changes; all changes are either invisible at the default rendering or behind an opt-in CSS containment property the consumer sets.
124
-
125
- - The current-item indicator (positioned at `left: -8px` of the row container) was being clipped when a consumer applied `contain: paint` to the `<li>` or when the documented `containIntrinsicSize` prop on `TreeView.Item` triggered `content-visibility: auto` on the row container — including for `current` items. Both `.TreeViewItem` and `.TreeViewItemContainer` now declare `overflow-clip-margin: var(--base-size-8)`, which extends the paint-clip edge by 8px on the side the indicator paints. The property is a no-op when no paint containment is active, so default rendering is byte-identical.
126
- - Skeleton-row hover suppression no longer relies on `:has(.TreeViewItemSkeleton)`, which forced subtree invalidation on every row. `LoadingItem` now communicates with the placeholder `Item` via a module-private context that emits a positive `data-loading` attribute on the `<li>`, and the CSS selector targets that directly. No new public prop.
127
- - Nesting indicator lines no longer use a root-scope `:hover`/`:focus-within` descendant selector. Color is driven by an inherited `--tree-line-color` custom property set on the root `<ul>`, so a hover or focus change inside the tree updates one property on one element instead of re-matching `.TreeViewItemLevelLine` selectors against every level line in the tree.
128
- - Fixed a unitless `outline-offset: -2` in the forced-colors focus-ring fallback that browsers were silently dropping (so forced-colors users now actually get a focus indicator on tree items).
129
- - `.TreeViewItemContainer`'s `grid-template-columns` now declares the `trailingAction` column explicitly (`auto`) so it matches the 5-area `grid-template-areas` declaration (previously the trailing column was implicit `auto`).
130
-
131
- ## 38.26.0
132
-
133
- ### Minor Changes
134
-
135
- - [#7869](https://github.com/primer/react/pull/7869) [`23fba52`](https://github.com/primer/react/commit/23fba52138e3314d058187e8d07d011e6889e1e2) Thanks [@adierkens](https://github.com/adierkens)! - Slot system consistency improvements:
136
-
137
- - Remove orphan `__SLOT__` markers from root components that no parent scans for: `ActionMenu` (root `Menu`), `UnderlinePanels` (root), `Autocomplete` is unchanged (still used as a `FormControl` child), `PageLayout` (root), `SegmentedControl` (root), `RadioGroup` (root), `CheckboxGroup` (root), and `Dialog` (root). Sub-component markers are intentionally retained so consumers can keep wrapping them.
138
- - Standardize `Symbol(...)` descriptions used as slot markers to the `Parent.Slot` convention: `CheckboxOrRadioGroupLabel` → `CheckboxOrRadioGroup.Label`, `CheckboxOrRadioGroupCaption` → `CheckboxOrRadioGroup.Caption`, `CheckboxOrRadioGroupValidation` → `CheckboxOrRadioGroup.Validation`, `DEPRECATED_Tooltip` → `Tooltip`, and `Table` → `DataTable.Table`.
139
- - Migrate `PageHeader`, `NavList.Item`, and the internal `CheckboxOrRadioGroup` to use the `useSlots` hook instead of hand-rolling `React.Children` traversal with `isSlot`. The `CheckboxOrRadioGroup` migration also removes duplicated work where `useSlots` was already called but slots were re-extracted by hand immediately after.
140
- - Export `useSlots`, `isSlot`, `asSlot`, and the `WithSlotMarker`/`FCWithSlotMarker` types publicly from `@primer/react` so downstream consumers can build their own slot-aware compound components.
141
- - Add `asSlot(component, slotSource)` helper: a typed utility that copies a `__SLOT__` marker from a source slot component onto a wrapper component, replacing the cast-heavy `(Wrapper as typeof Wrapper & {__SLOT__?: symbol}).__SLOT__ = Source.__SLOT__` pattern.
142
- - Add a dev-mode warning in `useSlots` when a child's `displayName` matches a slot component's `displayName` but the child is missing the `__SLOT__` marker — a common footgun when wrapping slot components.
143
-
144
- - [#7898](https://github.com/primer/react/pull/7898) [`da27739`](https://github.com/primer/react/commit/da2773915b5d299fd5971322f41dc9a2cfb8a13a) Thanks [@francinelucca](https://github.com/francinelucca)! - ThemeProvider: Add `contextOnly` prop to opt out of rendering the wrapping `<div>` with `data-*` theme attributes
145
-
146
- - [#7886](https://github.com/primer/react/pull/7886) [`64dfbd3`](https://github.com/primer/react/commit/64dfbd307314d4c52c2072d0f72611a5da3e6739) Thanks [@janmaarten-a11y](https://github.com/janmaarten-a11y)! - Add `Timeline.Actions` sub-component for rendering action buttons, links, SHAs, status labels, and similar right-aligned content on a `Timeline.Item`. Renders as a horizontal flex row pushed to the right edge of the item with `gap: 8px` between children and `min-height` matching the badge so contents vertically center against it.
147
-
148
- - [#7885](https://github.com/primer/react/pull/7885) [`9d2cb53`](https://github.com/primer/react/commit/9d2cb53c06f172598dc96be11ac0441c338e5341) Thanks [@janmaarten-a11y](https://github.com/janmaarten-a11y)! - Add `Timeline.Avatar` sub-component for rendering an actor avatar in the left gutter of a `Timeline.Item`. Accepts any React children and is absolutely positioned so it does not affect badge or body layout. Consumers must reserve roughly 72px of left padding around the `Timeline` for the avatar to be visible.
149
-
150
- ### Patch Changes
151
-
152
- - [#7864](https://github.com/primer/react/pull/7864) [`e7205ea`](https://github.com/primer/react/commit/e7205ea51b02fb1b7ac9de2df122f7ba67ebe078) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Eliminate nested-update cascades in `useFocus`, `PageLayout.Pane`, and
153
- `AnchoredOverlay`:
154
-
155
- - `useFocus` no longer produces a second re-render after focusing; one
156
- `focus()` call now results in exactly one render instead of two.
157
- - `PageLayout.Pane` (resizable) no longer triggers a forced re-render
158
- before paint on mount. The CSS variable and ARIA attributes are still
159
- updated synchronously in the layout effect; the React state sync is
160
- wrapped in `startTransition` so it runs in the transition lane rather
161
- than as part of the layout-effect commit.
162
- - `AnchoredOverlay` no longer keeps `useAnchoredPosition`'s scroll
163
- listeners and `ResizeObserver` attached while it is closed. After an
164
- open→close cycle, the first scroll/resize event no longer fires a
165
- spurious `setPosition(undefined)` that re-renders the closed overlay.
166
-
167
- Also adds a profiler-based test harness at
168
- `src/utils/testing/profiler.tsx` so future regressions can be pinned with
169
- `counter.updateCount` and `counter.nestedUpdateCount` assertions.
170
-
171
- - [#7892](https://github.com/primer/react/pull/7892) [`4dd08af`](https://github.com/primer/react/commit/4dd08af9e4942962ebb253050b1807c13382dc76) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Disable CSS anchor positioning if related CSS rules are not supported
172
-
173
- - [#7878](https://github.com/primer/react/pull/7878) [`8c468fd`](https://github.com/primer/react/commit/8c468fd28322456f48601f9cbf6226fc4c35b661) Thanks [@mattcosta7](https://github.com/mattcosta7)! - FilteredActionList: Guard against `undefined` items in the virtualizer's `getItemKey` callback to prevent a crash when `@tanstack/react-virtual` invokes it with an index whose item was just removed (e.g. when filtering shrinks the items list).
174
-
175
- - [#7893](https://github.com/primer/react/pull/7893) [`0eef204`](https://github.com/primer/react/commit/0eef20484e5e26d0b6edb89dca68c538e7e898c6) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Button: Replace the icon-only-with-counter `:has(...):not(:has(...))` selector with a `data-icon-only-counter` attribute computed from props. Reduces style-recalculation cost on pages that render many Buttons. No visual or behavioral changes.
176
-
177
- - [#7896](https://github.com/primer/react/pull/7896) [`673514b`](https://github.com/primer/react/commit/673514bf6743067d9db887a2c57e675a7e2a52f8) Thanks [@mattcosta7](https://github.com/mattcosta7)! - TextInput / TextInputWithTokens / Select / Autocomplete: Replace chained `:not([data-leading-visual])`, `:not([data-trailing-visual])`, and `:not([data-trailing-action])` attribute negations in `TextInputWrapper` styles with positive `data-no-leading-visual`, `data-no-trailing-visual`, and `data-no-trailing-action` markers emitted by the wrapper components. Eliminates the 2- and 3-deep `:not()` chains that previously evaluated against every input on every state change. No visual or behavioral changes.
178
-
179
- - [#7876](https://github.com/primer/react/pull/7876) [`980e94c`](https://github.com/primer/react/commit/980e94cc1de7807bb2b3fc4dd006ea8dbf3e8303) Thanks [@mattcosta7](https://github.com/mattcosta7)! - UnderlinePanels: Eliminate the empty-tablist frame on mount and the cascading
180
- re-render when icons toggle. Tabs and panels are now derived in render
181
- (previously stored in state synced via `useEffect`), the list width is kept
182
- in a ref instead of state, and `iconsVisible` / `loadingCounters` flow to
183
- each tab via context — combined with `React.memo(Tab)`, that makes
184
- resize-driven icon toggles update only the part of each tab that depends on
185
- the change, not the whole tablist subtree. Behavior is unchanged.
186
-
187
- - [#7874](https://github.com/primer/react/pull/7874) [`8cc7e99`](https://github.com/primer/react/commit/8cc7e998d2dbde1fb927b598755810b534702a6a) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Dev-only effects (the `if (__DEV__) { useEffect(...) }` pattern with an
188
- `eslint-disable react-hooks/rules-of-hooks` comment at every call site) are
189
- now expressed via a new internal `useDevOnlyEffect` hook. The lint
190
- suppression lives in the wrapper, the effect is dropped from production by
191
- the consumer's `process.env.NODE_ENV` replacement, and call sites get
192
- `react-hooks/exhaustive-deps` lint via `additionalEffectHooks`. No public
193
- API changes.
194
-
195
- ## 38.25.0
196
-
197
- ### Minor Changes
198
-
199
- - [#7852](https://github.com/primer/react/pull/7852) [`5504680`](https://github.com/primer/react/commit/5504680614bacc2ce3eecaaa55d10887e6fb152d) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Card: Add `data-component` attributes to `Card` and its subcomponents (`Icon`, `Image`, `Heading`, `Description`, `Metadata`, `Menu`). Add an `as` prop (`'div' | 'section'`) so standalone Cards can render as a labelled region landmark; `as="section"` requires `aria-label` or `aria-labelledby`. `Card` now requires `children`. Also improves docs and stories.
200
-
201
- ### Patch Changes
202
-
203
- - [#7858](https://github.com/primer/react/pull/7858) [`1ce2906`](https://github.com/primer/react/commit/1ce2906d1816ba443eacfede67d496d074b8d2fb) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Add additional fallbacks for CSS Anchor Positioning
204
-
205
- - [#7843](https://github.com/primer/react/pull/7843) [`fc571fd`](https://github.com/primer/react/commit/fc571fd8c3899f19a1dd9e77b8a22f6528d776e2) Thanks [@joshblack](https://github.com/joshblack)! - Update useMergedRefs so that in React 18 no warning is emitted
206
-
207
- ## 38.24.0
208
-
209
- ### Minor Changes
210
-
211
- - [#7829](https://github.com/primer/react/pull/7829) [`228019c`](https://github.com/primer/react/commit/228019cac474e94558e571c325692d3b40ca4488) Thanks [@adierkens](https://github.com/adierkens)! - ActionList: Add `ActionList.GroupHeading.TrailingAction` for header-level actions on grouped lists. Closes #2043.
212
-
213
- When the `primer_react_action_list_group_heading_trailing_action` feature flag is enabled, you can place an `ActionList.GroupHeading.TrailingAction` (a small invisible `IconButton`) inside `ActionList.GroupHeading` to render a uniform square action target next to the group's heading. Only supported inside an `ActionList` with the default `list` role — using it inside `ActionMenu` or with `role="listbox"` will throw.
214
-
215
- ```tsx
216
- <ActionList>
217
- <ActionList.Group>
218
- <ActionList.GroupHeading as="h3">
219
- Custom fields
220
- <ActionList.GroupHeading.TrailingAction label="New field" icon={PlusIcon} />
221
- </ActionList.GroupHeading>
222
- <ActionList.Item>...</ActionList.Item>
223
- </ActionList.Group>
224
- </ActionList>
225
- ```
226
-
227
- - [#7838](https://github.com/primer/react/pull/7838) [`8ddf1b0`](https://github.com/primer/react/commit/8ddf1b0b0082e43ffb83c572877f38eb6e9e30c3) Thanks [@llastflowers](https://github.com/llastflowers)! - Add data-component attributes and associated tests for Hidden, InlineMessage, KeybindingHint, Label, and LabelGroup
228
-
229
- - [#7776](https://github.com/primer/react/pull/7776) [`d6f61c1`](https://github.com/primer/react/commit/d6f61c1e197b52eb75cff97299bfac4caedcc1ac) Thanks [@llastflowers](https://github.com/llastflowers)! - Add `data-component` attributes for Blankslate, BranchName, Breadcrumbs, ButtonGroup, Checkbox, CheckboxGroup, CircleBadge, ConfirmationDialog, CounterLabel, and Dialog to provide stable selectors.
230
-
231
- - [#7816](https://github.com/primer/react/pull/7816) [`aef8548`](https://github.com/primer/react/commit/aef85486a77a544ab36fcc18470dc06bf2502b09) Thanks [@iansan5653](https://github.com/iansan5653)! - Replace `ActionBar` overflow calculations with CSS wrapping approach to improve performance and stability
232
-
233
- - [#7831](https://github.com/primer/react/pull/7831) [`0de97c2`](https://github.com/primer/react/commit/0de97c25ae2adb026b04f7cac46463779ff023a1) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Dialog: Support custom width values.
234
-
235
- - [#7819](https://github.com/primer/react/pull/7819) [`8ed6149`](https://github.com/primer/react/commit/8ed6149b45093449c6e12a71a374618fe282d6a1) Thanks [@llastflowers](https://github.com/llastflowers)! - Add `data-component` attributes for Details, Flash, FormControl (+ update InputValidation to forward from FormControl.Validation), Header, and Heading.
236
-
237
- ### Patch Changes
238
-
239
- - [#7842](https://github.com/primer/react/pull/7842) [`635357e`](https://github.com/primer/react/commit/635357e7d2963bb594718a754fb7f53c1f917c41) Thanks [@joshblack](https://github.com/joshblack)! - DataTable: Treat zero as a populated value when sorting numeric columns
240
-
241
- - [#7824](https://github.com/primer/react/pull/7824) [`6889235`](https://github.com/primer/react/commit/6889235fac93f17cfd0354758f4f9a1e6ff01942) Thanks [@jonrohan](https://github.com/jonrohan)! - Fix `usePaneWidth` triggering unnecessary React re-renders on every window resize
242
-
243
- - [#7833](https://github.com/primer/react/pull/7833) [`dfed7ca`](https://github.com/primer/react/commit/dfed7ca73532922ec0526dd85afcf7ae471c566e) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Timeline: Remove border override from TimelineBadge when variant is set
244
-
245
- ## 38.23.0
246
-
247
- ### Minor Changes
248
-
249
- - [#7817](https://github.com/primer/react/pull/7817) [`51a7a28`](https://github.com/primer/react/commit/51a7a28a8c1a44d80cffe774783dfff1d436a1d1) Thanks [@francinelucca](https://github.com/francinelucca)! - - ActionList: Expand `selectableRoles` and `listRoleTypes` to include `treeitem` and `tree`.
250
- - Export `ActionListContainerContext` as `ActionList.ContainerContext`.
251
- - Export `useRovingTabIndex` from the public API with additional configuration options (`preventScroll` and `dependencies`).
252
-
253
- ### Patch Changes
254
-
255
- - [#7805](https://github.com/primer/react/pull/7805) [`8f8844e`](https://github.com/primer/react/commit/8f8844ef69a52b0462bf76cee389e61bb02de2d7) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Disables CSS anchor positioning if `portalContainerName` is true. (behind `primer_react_css_anchor_positioning` feature flag)
256
-
257
- - [#7800](https://github.com/primer/react/pull/7800) [`ce88bdf`](https://github.com/primer/react/commit/ce88bdf3191aaee0ad662803f285a4e77810ce9e) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: add `primer_react_styled_react_use_primer_theme_providers` feature flag to DefaultFeatureFlags
258
-
259
- - [#7802](https://github.com/primer/react/pull/7802) [`872bf46`](https://github.com/primer/react/commit/872bf464c0cdf2144b680ffe309ef4ad2ac1b5ac) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Ensure overlay fits within viewport by calculating viewport height + width (behind `primer_react_css_anchor_positioning` feature flag)
260
-
261
- ## 38.22.0
262
-
263
- ### Minor Changes
264
-
265
- - [#7755](https://github.com/primer/react/pull/7755) [`0e868f9`](https://github.com/primer/react/commit/0e868f9c34ee6d073485e81651a16e92d3ff822c) Thanks [@francinelucca](https://github.com/francinelucca)! - feat: add ActionList, SelectPanel primitives exports and new FilteredActionList.Input components
266
-
267
- ### Patch Changes
268
-
269
- - [#7797](https://github.com/primer/react/pull/7797) [`3e05935`](https://github.com/primer/react/commit/3e059351a65b18e99d006facc1863feb94be0a7e) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Breadcrumbs overflow menu no longer appears when there are only two crumb items.
270
-
271
- - [#7511](https://github.com/primer/react/pull/7511) [`eb73dee`](https://github.com/primer/react/commit/eb73deea0c9f8fb0fdb44b28445eebc748a39443) Thanks [@RSoeborg](https://github.com/RSoeborg)! - Fix NavList parent item flicker during static-to-interactive transitions when navigating between current sub-items in a SubNav.
272
-
273
- - [#7619](https://github.com/primer/react/pull/7619) [`68aaf61`](https://github.com/primer/react/commit/68aaf617ebbeeb36aa5a7eb4b696d0061f6c2674) Thanks [@hectahertz](https://github.com/hectahertz)! - Memoize ActionMenu context values to prevent unnecessary re-renders of menu items
274
-
275
- - [#7708](https://github.com/primer/react/pull/7708) [`d0fa0ff`](https://github.com/primer/react/commit/d0fa0ff2301b3db7a4b66e7aabf3ff544ffb4ef2) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(css): audit :has() selectors and add stylelint guard for Safari
276
-
277
- - [#7775](https://github.com/primer/react/pull/7775) [`4b7e4ca`](https://github.com/primer/react/commit/4b7e4ca0fe1dcbb687fff94a9c8cfe6951bb08f7) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Ensure styles persist on anchors even when re-mounted (behind feature flag)
278
-
279
- - [#7780](https://github.com/primer/react/pull/7780) [`8330aad`](https://github.com/primer/react/commit/8330aadeba6231bf916a9c93757f89018838ebb4) Thanks [@francinelucca](https://github.com/francinelucca)! - fix: Checkbox indeterminate state now persists on click if the state didn't change
280
-
281
- ## 38.21.1
282
-
283
- ### Patch Changes
284
-
285
- - [#7770](https://github.com/primer/react/pull/7770) [`619175c`](https://github.com/primer/react/commit/619175c00dece144573fe5afbe4cd51e524a6c3d) Thanks [@LisaKr](https://github.com/LisaKr)! - Defer `useAnchoredPosition` initial mount setState from useLayoutEffect to useEffect when overlay is closed, eliminating unnecessary cascading re-renders that block paint.
286
-
287
- ## 38.21.0
288
-
289
- ### Minor Changes
290
-
291
- - [#7760](https://github.com/primer/react/pull/7760) [`b2e0efd`](https://github.com/primer/react/commit/b2e0efd04c61e526d8e7db6bc773f9b4ab155d72) Thanks [@siddharthkp](https://github.com/siddharthkp)! - Deprecate the `useResponsiveValue` hook.
292
-
293
- - [#7724](https://github.com/primer/react/pull/7724) [`d813099`](https://github.com/primer/react/commit/d813099b7377be4eed329b4276e8b231054326c8) Thanks [@francinelucca](https://github.com/francinelucca)! - Add stable `data-component` selectors to multiple components following ADR-023:
294
-
295
- - **ActionBar**
296
- - **ActionList** and friends
297
- - **Button**
298
- - **FilteredActionList** and friends
299
- - **Link**
300
- - **LinkButton**
301
- - **Pagination**
302
- - **SelectPanel** and friends
303
- - **Table** and friends
304
- - **TextInput**
305
- - **TextInputWithTokens**
306
- - **TooltipV2**
307
-
308
- This enables consumers to query and test components using stable selectors like `[data-component="Table.Row"]`.
309
-
310
- - [#7766](https://github.com/primer/react/pull/7766) [`b3f06f1`](https://github.com/primer/react/commit/b3f06f1e2c91125c7b6b035bd019f534219d358f) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: (Behind feature flag) Make popover API usage opt-in
311
-
312
- - [#7763](https://github.com/primer/react/pull/7763) [`b288d6e`](https://github.com/primer/react/commit/b288d6e2dc9d1eef345ef4d16f6b0fba4f165955) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Add borderRadius prop to Card component.
313
-
314
- ### Patch Changes
315
-
316
- - [#7714](https://github.com/primer/react/pull/7714) [`e974d9f`](https://github.com/primer/react/commit/e974d9f6d156805dbda9639a3fe6091a02a1a754) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(ActionList): replace :has() selector with JS-computed attribute
317
-
318
- - [#7754](https://github.com/primer/react/pull/7754) [`9e3fe4b`](https://github.com/primer/react/commit/9e3fe4b501ce5affb558bf92697e5c79341903ca) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Breadcrumbs: On narrow viewports, only show the current page breadcrumb and the overflow menu when `overflow="menu"` is set.
319
-
320
- - [#7757](https://github.com/primer/react/pull/7757) [`ed82a1e`](https://github.com/primer/react/commit/ed82a1e0399b98428d4b794239bb37649806b5cc) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - SelectPanel: Lock body scroll when modal variant is on.
321
-
322
- - [#7734](https://github.com/primer/react/pull/7734) [`421ebf0`](https://github.com/primer/react/commit/421ebf0a54558a29f1efbe1850036f80b1bbe126) Thanks [@llastflowers](https://github.com/llastflowers)! - add data-component attributes for Avatar, AvatarStack, Banner, & BaseStyles
323
-
324
- ## 38.20.0
325
-
326
- ### Minor Changes
327
-
328
- - [#7723](https://github.com/primer/react/pull/7723) [`ec6c88f`](https://github.com/primer/react/commit/ec6c88fe3eb3ef349500617c90378712f802376d) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Add Card component with subcomponents: Card.Icon, Card.Image, Card.Heading, Card.Description, Card.Menu, and Card.Metadata
329
-
330
- - [#7725](https://github.com/primer/react/pull/7725) [`d7b9313`](https://github.com/primer/react/commit/d7b9313b53e370e258c152084ac1f0402d64b77f) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Remove polyfill for CSS Anchor Positioning, use primer/behaviors as fallback. Ensure overlays take available space.
331
-
332
- - [#7752](https://github.com/primer/react/pull/7752) [`d7380a7`](https://github.com/primer/react/commit/d7380a7616a6c0cf861b5fe3dd9bd8d76470ca2e) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Breadcrumbs: Graduate `primer_react_breadcrumbs_overflow_menu` feature flag, making the overflow menu behavior always-on.
333
-
334
- - [#7733](https://github.com/primer/react/pull/7733) [`b9211db`](https://github.com/primer/react/commit/b9211db173841c9d9a531c777c5ce2c0cd8af60f) Thanks [@francinelucca](https://github.com/francinelucca)! - Overlay: Graduate `primer_react_overlay_max_height_clamp_to_viewport` feature flag
335
-
336
- The max-height of overlays is now clamped to the viewport height by default using `min(size, 100dvh)`. This prevents overlays from extending beyond the viewport on smaller screens.
337
-
338
- - [#7698](https://github.com/primer/react/pull/7698) [`5c34ab4`](https://github.com/primer/react/commit/5c34ab45c8744d7d038d63773adff324015f5643) Thanks [@hectahertz](https://github.com/hectahertz)! - Timeline: add `variant` prop to `Timeline.Badge` for built-in color schemes (`accent`, `success`, `attention`, `severe`, `danger`, `done`, `open`, `closed`, `sponsors`)
339
-
340
- ### Patch Changes
341
-
342
- - [#7738](https://github.com/primer/react/pull/7738) [`f5f2869`](https://github.com/primer/react/commit/f5f28691d9e5c9f8495e8c592635d2b616f7cb49) Thanks [@francinelucca](https://github.com/francinelucca)! - ActionMenu, Table: Fix component mutation issue where `Object.assign` was modifying original `@primer/react` components. Now uses wrapper components to avoid side effects.
343
-
344
- - [#7747](https://github.com/primer/react/pull/7747) [`b7dfb78`](https://github.com/primer/react/commit/b7dfb78079c50c6798aa4e09212aede701bf6c56) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Fix IssueLabelToken text contrast in light theme by updating the lightness-switch formula to use a division-based approach that properly produces a binary switch value for selecting black vs white text
345
-
346
- - [#7739](https://github.com/primer/react/pull/7739) [`efa7af8`](https://github.com/primer/react/commit/efa7af8d1e628cddc2f0356de83e7af5568ff358) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Spinner: Remove feature flag `primer_react_spinner_synchronize_animations`, treat it as always enabled.
347
-
348
- - [#7746](https://github.com/primer/react/pull/7746) [`30206c4`](https://github.com/primer/react/commit/30206c4fab92de8888f3f103f9b05bff96fdc1b9) Thanks [@jonrohan](https://github.com/jonrohan)! - Update TokenTextContainer `line-height` to use primer primitives CSS variable `var(--base-text-lineHeight-normal)`
349
-
350
- ## 38.19.0
351
-
352
- ### Minor Changes
353
-
354
- - [#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)
355
-
356
- - [#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.
357
-
358
- ### Patch Changes
359
-
360
- - [#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.
361
-
362
- - [#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.
363
-
364
- - [#7633](https://github.com/primer/react/pull/7633) [`a107d39`](https://github.com/primer/react/commit/a107d398e0574b5f8085485c96b27a168061eb50) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Graduate `primer_react_css_has_selector_perf` feature flag: the CSS `:has()` performance optimization (`body[data-dialog-scroll-disabled]`) is now the default behavior for Dialog scroll disabling
365
-
366
- - [#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
367
-
368
- - Replace `useState` + `useEffect` SSR hydration handoff with `useSyncExternalStore` — eliminates post-hydration re-render
369
- - Replace `useState` + `useEffect` in `useSystemColorMode` with `useSyncExternalStore` — eliminates effect gap and stale-then-update flicker
370
- - Cache `getServerHandoff` DOM read + JSON.parse per ID (runs once, not on every call)
371
- - Memoize context value object to prevent unnecessary re-renders of all consumers
372
-
373
- - [#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`
374
-
375
- ## 38.18.0
376
-
377
- ### Minor Changes
378
-
379
- - [#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.
380
-
381
- - [#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
382
-
383
- - [#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.
384
-
385
- ### Patch Changes
386
-
387
- - [#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
388
-
389
- - [#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.
390
-
391
- - [#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.
392
-
393
- - [#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)
394
-
395
- - [#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`
396
-
397
- ## 38.17.0
3
+ ## 0.0.0-20260625180200
398
4
 
399
5
  ### Minor Changes
400
6
 
401
7
  - [#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
402
8
 
403
- - [#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
9
+ - [#7672](https://github.com/primer/react/pull/7672) [`973f184`](https://github.com/primer/react/commit/973f184c7ed18526c786404376c11f2df71f2e54) Thanks [@iansan5653](https://github.com/iansan5653)! - - New: Exposes new `useMergedRefs` hook that can merge two refs into a single combined ref
404
10
 
405
11
  - Deprecates `useRefObjectAsForwardedRef`; see doc comment for migration instructions
406
12
  - Deprecates `useProvidedRefOrCreate`; see doc comment for migration instructions
@@ -409,6 +15,10 @@
409
15
 
410
16
  ### Patch Changes
411
17
 
18
+ - [#7645](https://github.com/primer/react/pull/7645) [`bdb0e39`](https://github.com/primer/react/commit/bdb0e39d56bfb13ab3e321622402369251cc3207) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Update internal implementations of combined refs to improve performance and add support for React 19 callback refs
19
+
20
+ - Fake entry to force publishing
21
+
412
22
  - [#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
413
23
 
414
24
  - [#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
@@ -0,0 +1,2 @@
1
+ .prc-ActionBar-List-9uz46{align-items:center;display:flex;gap:var(--actionbar-gap,var(--stack-gap-condensed,.5rem));list-style:none;margin-bottom:-1px;min-width:0;position:relative;white-space:nowrap}.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-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);width:var(--borderWidth-thin,.0625rem)}.prc-ActionBar-Group-peNCk{display:flex;gap:inherit}
2
+ /*# sourceMappingURL=ActionBar-a41224b2.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ActionBar/ActionBar.module.css.js"],"names":[],"mappings":"AAAA,0BAUE,kBAAmB,CARnB,YAAa,CASb,yDAAqD,CAFrD,eAAgB,CAFhB,kBAAmB,CAJnB,WAAY,CAFZ,iBAAkB,CAOlB,kBAiBF,CAXE,iDACE,iBAKF,CAHE,8EACE,kCACF,CAGF,sDACE,iDACF,CAGF,yBAIE,kBAAmB,CAHnB,YAAa,CAEb,wBAAyB,CADzB,uCAOF,CAHE,kDACE,gBACF,CAIA,oCAME,6DAAoC,CAFpC,UAAW,CAHX,aAAc,CAEd,kCAA2B,CAD3B,sCAKF,CAGF,2BACE,YAAa,CACb,WACF","file":"ActionBar-a41224b2.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 white-space: nowrap;\n list-style: none;\n align-items: center;\n gap: var(--actionbar-gap, var(--stack-gap-condensed));\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\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 }\n}\n\n.Group {\n display: flex;\n gap: inherit;\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type ActionListItemProps } from '../ActionList';
3
- import type { ButtonProps, IconButtonProps } from '../Button';
3
+ import type { IconButtonProps } from '../Button';
4
4
  type Size = 'small' | 'medium' | 'large';
5
5
  type A11yProps = {
6
6
  /** When provided, a label is added to the action bar */
@@ -38,9 +38,6 @@ export type ActionBarProps = {
38
38
  export type ActionBarIconButtonProps = {
39
39
  disabled?: boolean;
40
40
  } & IconButtonProps;
41
- export type ActionBarButtonProps = {
42
- disabled?: boolean;
43
- } & ButtonProps;
44
41
  export type ActionBarMenuItemProps = ({
45
42
  /**
46
43
  * Type of menu item to be rendered in the menu (action | group).
@@ -94,26 +91,6 @@ export type ActionBarMenuProps = {
94
91
  } & IconButtonProps;
95
92
  export declare const ActionBar: React.FC<React.PropsWithChildren<ActionBarProps>>;
96
93
  export declare const ActionBarIconButton: React.ForwardRefExoticComponent<ActionBarIconButtonProps & React.RefAttributes<unknown>>;
97
- export declare const ActionBarButton: React.ForwardRefExoticComponent<{
98
- disabled?: boolean;
99
- } & {
100
- alignContent?: import("../Button/types").AlignContent;
101
- icon?: React.FunctionComponent<import("@primer/octicons-react").IconProps> | React.ElementType | React.ReactElement<any> | null;
102
- leadingVisual?: React.ElementType | React.ReactElement<any> | null;
103
- trailingVisual?: React.ElementType | React.ReactElement<any> | null;
104
- trailingAction?: React.ElementType | null;
105
- children?: React.ReactNode;
106
- count?: number | string;
107
- } & {
108
- variant?: import("../Button/types").VariantType;
109
- size?: import("../Button/types").Size;
110
- disabled?: boolean;
111
- block?: boolean;
112
- loading?: boolean;
113
- loadingAnnouncement?: string;
114
- inactive?: boolean;
115
- labelWrap?: boolean;
116
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<unknown>>;
117
94
  export declare const ActionBarGroup: React.ForwardRefExoticComponent<{
118
95
  children?: React.ReactNode | undefined;
119
96
  } & React.RefAttributes<unknown>>;
@@ -143,6 +120,6 @@ export declare const ActionBarMenu: React.ForwardRefExoticComponent<{
143
120
  keyshortcuts?: string;
144
121
  keybindingHint?: string | string[];
145
122
  } & Omit<import("..").ButtonBaseProps, "aria-label" | "aria-labelledby"> & React.RefAttributes<unknown>>;
146
- export declare const VerticalDivider: () => React.JSX.Element;
123
+ export declare const VerticalDivider: () => React.JSX.Element | null;
147
124
  export {};
148
125
  //# sourceMappingURL=ActionBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../src/ActionBar/ActionBar.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../src/ActionBar/ActionBar.tsx"],"names":[],"mappings":"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"}