@primer/react-brand 0.59.2 → 0.60.0

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 (461) hide show
  1. package/lib/ActionMenu/ActionMenu.d.ts +5 -64
  2. package/lib/AnchorNav/useExpandedMenu.d.ts +1 -1
  3. package/lib/ButtonGroup/ButtonGroup.d.ts +2 -3
  4. package/lib/ComparisonTable/ComparisonTable.d.ts +2 -2
  5. package/lib/FAQ/FAQGroup.d.ts +2 -2
  6. package/lib/Grid/Grid.d.ts +1 -0
  7. package/lib/IDE/IDE.d.ts +2 -2
  8. package/lib/Pillar/Pillar.d.ts +5 -3
  9. package/lib/SubNav/SubNav.d.ts +2 -6
  10. package/lib/SubNav/useContainsFocus.d.ts +1 -1
  11. package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +5 -5
  12. package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +4 -3
  13. package/lib/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
  14. package/lib/Tabs/Tabs.d.ts +2 -2
  15. package/lib/Tooltip/Tooltip.d.ts +1 -1
  16. package/lib/VideoPlayer/hooks/useVideo.d.ts +1 -1
  17. package/lib/VideoPlayer/hooks/useVideoKeypressHandlers.d.ts +1 -1
  18. package/lib/VideoPlayer/hooks/useVideoResizeObserver.d.ts +1 -1
  19. package/lib/animation/Animate/Animate.d.ts +1 -1
  20. package/lib/animation/TextRevealAnimation/TextRevealAnimation.d.ts +2 -2
  21. package/lib/animation/TextRevealAnimation/useTextRevealAnimationLines.d.ts +3 -2
  22. package/lib/css/main.css +65 -65
  23. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  24. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  25. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  26. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  29. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  30. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  31. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  32. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  39. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  40. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  41. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  42. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  43. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  44. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  45. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  46. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  47. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  48. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  49. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  50. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  51. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  52. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  53. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  54. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  55. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  56. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  57. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  58. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  59. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  60. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  61. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  62. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  63. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  64. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  65. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  66. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  67. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  68. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  69. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  70. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  71. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  72. package/lib/design-tokens/css/tokens/functional/components/pagination/colors-with-modes.css +1 -1
  73. package/lib/design-tokens/css/tokens/functional/components/pillar/colors-with-modes.css +1 -1
  74. package/lib/design-tokens/css/tokens/functional/components/pillar/colors.css +1 -1
  75. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  76. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  77. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  78. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  79. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  84. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  85. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  86. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  87. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  88. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  89. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  90. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  91. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  92. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  93. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  94. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  95. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  96. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  97. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  98. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  99. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  100. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  101. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  102. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  103. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  104. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  105. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  106. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  107. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  108. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  109. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  110. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  111. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  112. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  113. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  114. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  115. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  116. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  117. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  118. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  119. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  120. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  121. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  122. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  123. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  124. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  125. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  126. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  127. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  128. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  129. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  130. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  131. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  132. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  133. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  134. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  135. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  136. package/lib/design-tokens/js/module/tokens/functional/components/pillar/colors.js +1 -1
  137. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  138. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  139. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  140. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  141. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  142. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  143. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  144. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  145. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  146. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  147. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  148. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  149. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  150. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  151. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  152. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  153. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  154. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  155. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  156. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  157. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  158. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  159. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  160. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  161. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  162. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  163. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  164. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  165. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  166. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  167. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  168. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  169. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  170. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  171. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  172. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  173. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  174. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  175. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  176. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  177. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  178. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  179. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  180. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  181. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  182. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  183. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  184. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  185. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  186. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  187. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  188. package/lib/design-tokens/js/tokens/functional/components/pillar/colors.js +1 -1
  189. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  190. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  191. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  192. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  193. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  194. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  195. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  196. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  197. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  198. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  199. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  200. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  201. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  202. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  203. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  204. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  205. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  206. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  207. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  208. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  209. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  210. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  211. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  212. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  213. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  214. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  215. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  216. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  217. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  218. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  219. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  220. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  221. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  222. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  223. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  224. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  225. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  226. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  227. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  228. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  229. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  230. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  231. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  232. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  233. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  234. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  235. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  236. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  237. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  238. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  239. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  240. package/lib/design-tokens/scss/tokens/functional/components/pillar/colors.scss +1 -1
  241. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  242. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  243. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  244. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  245. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  246. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  247. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  248. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  249. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  250. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  251. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  252. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  253. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  254. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  255. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  256. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  257. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  258. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  259. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  260. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  261. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  262. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  263. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  264. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  265. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  266. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  267. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  268. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  269. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  270. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  271. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  272. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  273. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  274. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  275. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  276. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  277. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  278. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  279. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  280. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  281. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  282. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  283. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  284. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  285. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  286. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  287. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  288. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  289. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  290. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  291. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  292. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  293. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  294. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  295. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  296. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  297. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  298. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  299. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  300. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  301. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  302. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  303. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  304. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  305. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  306. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  307. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  308. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  309. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  310. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  311. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  312. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  313. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  314. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  315. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  316. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  317. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  318. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  319. package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.d.ts +1 -1
  320. package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.js +1 -1
  321. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  322. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  323. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  324. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  325. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  326. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  327. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  328. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  329. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  330. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  331. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  332. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  333. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  334. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  335. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  336. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  337. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  338. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  339. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  340. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  341. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  342. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  343. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  344. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  345. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  346. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  347. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  348. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  349. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  350. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  351. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  352. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  353. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  354. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  355. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  356. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  357. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  358. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  359. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  360. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  361. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  362. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  363. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  364. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  365. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  366. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  367. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  368. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  369. package/lib/hooks/useAnchoredPosition.d.ts +4 -4
  370. package/lib/hooks/useFocusTrap.d.ts +4 -4
  371. package/lib/hooks/useOnClickOutside.d.ts +1 -1
  372. package/lib/hooks/useResizeObserver.d.ts +1 -1
  373. package/lib/hooks/useTabs.d.ts +2 -2
  374. package/lib/index.js +1 -2
  375. package/lib/utils/isFragmentElement.d.ts +4 -0
  376. package/package.json +7 -5
  377. package/lib/Accordion/Accordion.visual.spec.d.ts +0 -1
  378. package/lib/ActionMenu/ActionMenu.visual.spec.d.ts +0 -1
  379. package/lib/AnchorNav/AnchorNav.visual.spec.d.ts +0 -1
  380. package/lib/Avatar/Avatar.visual.spec.d.ts +0 -1
  381. package/lib/Bento/Bento.visual.spec.d.ts +0 -1
  382. package/lib/Box/Box.visual.spec.d.ts +0 -1
  383. package/lib/Breadcrumbs/Breadcrumbs.visual.spec.d.ts +0 -1
  384. package/lib/BreakoutBanner/BreakoutBanner.visual.spec.d.ts +0 -1
  385. package/lib/Button/Button.visual.spec.d.ts +0 -1
  386. package/lib/ButtonGroup/ButtonGroup.visual.spec.d.ts +0 -1
  387. package/lib/CTABanner/CTABanner.visual.spec.d.ts +0 -1
  388. package/lib/CTAForm/CTAForm.visual.spec.d.ts +0 -1
  389. package/lib/Card/Card.visual.spec.d.ts +0 -1
  390. package/lib/ComparisonTable/ComparisonTable.visual.spec.d.ts +0 -1
  391. package/lib/ExpandableArrow/ExpandableArrow.visual.spec.d.ts +0 -1
  392. package/lib/EyebrowBanner/EyebrowBanner.visual.spec.d.ts +0 -1
  393. package/lib/FAQ/FAQ.visual.spec.d.ts +0 -1
  394. package/lib/Footnotes/Footnotes.visual.spec.d.ts +0 -1
  395. package/lib/Grid/Grid.visual.spec.d.ts +0 -1
  396. package/lib/Heading/Heading.visual.spec.d.ts +0 -1
  397. package/lib/Hero/Hero.visual.spec.d.ts +0 -1
  398. package/lib/IDE/IDE.visual.spec.d.ts +0 -1
  399. package/lib/Icon/Icon.visual.spec.d.ts +0 -1
  400. package/lib/Image/Image.visual.spec.d.ts +0 -1
  401. package/lib/InlineLink/InlineLink.visual.spec.d.ts +0 -1
  402. package/lib/Label/Label.visual.spec.d.ts +0 -1
  403. package/lib/Link/Link.visual.spec.d.ts +0 -1
  404. package/lib/LogoSuite/LogoSuite.visual.spec.d.ts +0 -1
  405. package/lib/MinimalFooter/MinimalFooter.visual.spec.d.ts +0 -1
  406. package/lib/MonaSans/MonaSans.visual.spec.d.ts +0 -1
  407. package/lib/Pagination/Pagination.visual.spec.d.ts +0 -1
  408. package/lib/Pillar/Pillar.visual.spec.d.ts +0 -1
  409. package/lib/PricingOptions/PricingOptions.visual.spec.d.ts +0 -1
  410. package/lib/Prose/Prose.visual.spec.d.ts +0 -1
  411. package/lib/Section/Section.visual.spec.d.ts +0 -1
  412. package/lib/SectionIntro/SectionIntro.visual.spec.d.ts +0 -1
  413. package/lib/SectionIntroStacked/SectionIntroStacked.visual.spec.d.ts +0 -1
  414. package/lib/Stack/Stack.visual.spec.d.ts +0 -1
  415. package/lib/Statistic/Statistic.visual.spec.d.ts +0 -1
  416. package/lib/SubNav/SubNav.visual.spec.d.ts +0 -1
  417. package/lib/SubdomainNavBar/SubdomainNavBar.visual.spec.d.ts +0 -1
  418. package/lib/Tabs/Tabs.visual.spec.d.ts +0 -1
  419. package/lib/Testimonial/Testimonial.visual.spec.d.ts +0 -1
  420. package/lib/Text/Text.visual.spec.d.ts +0 -1
  421. package/lib/ThemeProvider/ThemeProvider.visual.spec.d.ts +0 -1
  422. package/lib/ThemeProvider/useTheme.test.d.ts +0 -1
  423. package/lib/Timeline/Timeline.visual.spec.d.ts +0 -1
  424. package/lib/Tooltip/Tooltip.visual.spec.d.ts +0 -1
  425. package/lib/VideoPlayer/VideoPlayer.visual.spec.d.ts +0 -1
  426. package/lib/animation/TextRevealAnimation/TextRevealAnimation.visual.spec.d.ts +0 -1
  427. package/lib/animation/animation.visual.spec.d.ts +0 -1
  428. package/lib/animation/useAnimation.test.d.ts +0 -1
  429. package/lib/forms/Checkbox/Checkbox.visual.spec.d.ts +0 -1
  430. package/lib/forms/CheckboxGroup/CheckboxGroup.visual.spec.d.ts +0 -1
  431. package/lib/forms/FormControl/FormControl.visual.spec.d.ts +0 -1
  432. package/lib/forms/Radio/Radio.visual.spec.d.ts +0 -1
  433. package/lib/forms/RadioGroup/RadioGroup.visual.spec.d.ts +0 -1
  434. package/lib/forms/Select/Select.visual.spec.d.ts +0 -1
  435. package/lib/forms/TextInput/TextInput.visual.spec.d.ts +0 -1
  436. package/lib/forms/Textarea/Textarea.visual.spec.d.ts +0 -1
  437. package/lib/forms/forms.visual.spec.d.ts +0 -1
  438. package/lib/index.js.LICENSE.txt +0 -8
  439. package/lib/list/OrderedList/OrderedList.visual.spec.d.ts +0 -1
  440. package/lib/list/UnorderedList/UnorderedList.visual.spec.d.ts +0 -1
  441. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.visual.spec.d.ts +0 -1
  442. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.visual.spec.d.ts +0 -1
  443. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.visual.spec.d.ts +0 -1
  444. package/lib/recipes/FlexTemplate/FlexSection/FlexSection.visual.spec.d.ts +0 -1
  445. package/lib/recipes/FlexTemplate/FlexTemplate.visual.spec.d.ts +0 -1
  446. package/lib/recipes/FlexTemplate/examples/examples.visual.spec.d.ts +0 -1
  447. package/lib/recipes/SolutionTemplates/CategoryPage/CategoryPage.visual.spec.d.ts +0 -1
  448. package/lib/recipes/SolutionTemplates/SolutionPage/Industry/Industry.visual.spec.d.ts +0 -1
  449. package/lib/recipes/SolutionTemplates/SolutionPage/Size/Size.visual.spec.d.ts +0 -1
  450. package/lib/recipes/SolutionTemplates/SolutionPage/UseCase/UseCase.visual.spec.d.ts +0 -1
  451. package/lib/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.visual.spec.d.ts +0 -1
  452. package/lib/recipes/seo/Article/Article.visual.spec.d.ts +0 -1
  453. package/lib/recipes/seo/Category/Category.visual.spec.d.ts +0 -1
  454. package/lib/river/River/River.visual.spec.d.ts +0 -1
  455. package/lib/river/RiverAccordion/RiverAccordion.visual.spec.d.ts +0 -1
  456. package/lib/river/RiverBreakout/RiverBreakout.visual.spec.d.ts +0 -1
  457. package/lib/river/RiverStoryScroll/RiverStoryScroll.visual.spec.d.ts +0 -1
  458. package/lib/test-utils/fixtures/data.d.ts +0 -1
  459. package/lib/test-utils/mocks/match-media-mock.d.ts +0 -0
  460. package/lib/test-utils/mocks/popover-polyfill.d.ts +0 -0
  461. package/lib/test-utils/setupTests.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import React, { PropsWithChildren, Ref, ReactElement } from 'react';
1
+ import React, { PropsWithChildren, ReactElement } from 'react';
2
2
  import { ButtonProps } from '../';
3
3
  import { type Icon } from '@primer/octicons-react';
4
4
  import { type PositionSettings } from '@primer/behaviors';
@@ -62,15 +62,10 @@ type ActionMenuContextType = {
62
62
  };
63
63
  export declare const useActionMenuContext: () => ActionMenuContextType;
64
64
  export declare const ActionMenuProvider: React.FC<ActionMenuProps>;
65
- type ActionMenuButtonProps = PropsWithChildren<Ref<HTMLButtonElement>> & {
66
- id?: string;
65
+ type ActionMenuButtonProps = PropsWithChildren<BaseProps<HTMLButtonElement> & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, 'id' | 'disabled' | 'onClick'>> & {
67
66
  as?: ButtonProps<'a'>['as'];
68
67
  href?: ButtonProps<'a'>['href'];
69
- ref?: React.RefObject<HTMLButtonElement>;
70
- className?: string;
71
68
  menuOpen?: boolean;
72
- disabled?: boolean;
73
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
74
69
  'data-testid'?: string;
75
70
  size?: ActionMenuSizes;
76
71
  _mode?: ActionMenuButtonModes;
@@ -92,11 +87,9 @@ type ActionMenuItemDefaultProps = ActionMenuItemBaseProps & {
92
87
  value?: string;
93
88
  selected?: boolean;
94
89
  } & Omit<React.HTMLProps<HTMLLIElement>, keyof ActionMenuItemBaseProps | 'as'>;
95
- type ActionMenuOverlayProps = PropsWithChildren<Ref<HTMLUListElement>> & {
90
+ type ActionMenuOverlayProps = PropsWithChildren<BaseProps<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement>> & {
96
91
  'aria-label': string;
97
92
  id?: string;
98
- ref?: React.RefObject<HTMLUListElement>;
99
- className?: string;
100
93
  'data-testid'?: string;
101
94
  menuOpen?: boolean;
102
95
  style?: React.CSSProperties;
@@ -151,61 +144,9 @@ export declare const ActionMenu: React.NamedExoticComponent<{
151
144
  } & BaseProps<HTMLDivElement>> & {
152
145
  readonly type: ({ id, children, "data-testid": testId, disabled, open, selectionVariant, menuAlignment, size, menuSide, onSelect, mode, }: ActionMenuProps) => import("react/jsx-runtime").JSX.Element;
153
146
  } & {
154
- Button: React.ForwardRefExoticComponent<(Omit<((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) & {
155
- children?: React.ReactNode | undefined;
156
- } & {
157
- id?: string;
158
- as?: ButtonProps<"a">["as"];
159
- href?: ButtonProps<"a">["href"];
160
- ref?: React.RefObject<HTMLButtonElement>;
161
- className?: string;
162
- menuOpen?: boolean;
163
- disabled?: boolean;
164
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
165
- 'data-testid'?: string;
166
- size?: ActionMenuSizes;
167
- _mode?: ActionMenuButtonModes;
168
- variant?: ButtonProps<"a">["variant"];
169
- leadingVisual?: ButtonProps<"a">["leadingVisual"];
170
- }, "ref"> | Omit<React.RefObject<HTMLButtonElement> & {
171
- children?: React.ReactNode | undefined;
172
- } & {
173
- id?: string;
174
- as?: ButtonProps<"a">["as"];
175
- href?: ButtonProps<"a">["href"];
176
- ref?: React.RefObject<HTMLButtonElement>;
177
- className?: string;
178
- menuOpen?: boolean;
179
- disabled?: boolean;
180
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
181
- 'data-testid'?: string;
182
- size?: ActionMenuSizes;
183
- _mode?: ActionMenuButtonModes;
184
- variant?: ButtonProps<"a">["variant"];
185
- leadingVisual?: ButtonProps<"a">["leadingVisual"];
186
- }, "ref">) & React.RefAttributes<HTMLButtonElement>>;
147
+ Button: React.ForwardRefExoticComponent<Omit<ActionMenuButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
187
148
  Item: ({ as, children, className, disabled, handler, selected, type, value, onClick, onKeyDown, leadingVisual: LeadingVisual, ...props }: ActionMenuItemAnchorProps | ActionMenuItemDefaultProps) => import("react/jsx-runtime").JSX.Element;
188
- Overlay: React.ForwardRefExoticComponent<(Omit<((instance: HTMLUListElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) & {
189
- children?: React.ReactNode | undefined;
190
- } & {
191
- 'aria-label': string;
192
- id?: string;
193
- ref?: React.RefObject<HTMLUListElement>;
194
- className?: string;
195
- 'data-testid'?: string;
196
- menuOpen?: boolean;
197
- style?: React.CSSProperties;
198
- }, "ref"> | Omit<React.RefObject<HTMLUListElement> & {
199
- children?: React.ReactNode | undefined;
200
- } & {
201
- 'aria-label': string;
202
- id?: string;
203
- ref?: React.RefObject<HTMLUListElement>;
204
- className?: string;
205
- 'data-testid'?: string;
206
- menuOpen?: boolean;
207
- style?: React.CSSProperties;
208
- }, "ref">) & React.RefAttributes<HTMLUListElement>>;
149
+ Overlay: React.ForwardRefExoticComponent<Omit<ActionMenuOverlayProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
209
150
  testIds: {
210
151
  root: string;
211
152
  readonly button: string;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const useExpandedMenu: (open: boolean, linkContainerRef: React.RefObject<HTMLElement>, innerContainerRef: React.RefObject<HTMLElement>, isNarrow: boolean, closeMenuCallback: () => void) => void;
2
+ export declare const useExpandedMenu: (open: boolean, linkContainerRef: React.RefObject<HTMLElement | null>, innerContainerRef: React.RefObject<HTMLElement | null>, isNarrow: boolean, closeMenuCallback: () => void) => void;
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { BaseProps } from '../component-helpers';
3
3
  import { ButtonProps } from '../Button';
4
- type PrimerBrandButtonType = React.ReactElement<ButtonProps<React.ElementType<'button' | 'a'>>>;
4
+ export type PrimerBrandButtonType = React.ReactElement<ButtonProps<React.ElementType<'button' | 'a'>>>;
5
5
  export type ButtonGroupProps = BaseProps<HTMLDivElement> & {
6
6
  children: PrimerBrandButtonType[] | PrimerBrandButtonType;
7
7
  buttonSize?: ButtonProps<'button' | 'a'>['size'];
8
- buttonsAs?: React.ElementType;
8
+ buttonsAs?: 'button' | 'a';
9
9
  };
10
10
  export declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- export {};
@@ -12,10 +12,10 @@ export type ComparisonTableProps<C extends React.ElementType> = BaseProps<C> & {
12
12
  featuredColumn?: number;
13
13
  } & React.ComponentPropsWithoutRef<C>;
14
14
  export declare const _ComparisonTable: React.ForwardRefExoticComponent<Omit<ComparisonTableProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
- type RowProps = {
15
+ type RowProps = React.HTMLAttributes<HTMLTableRowElement> & {
16
16
  header?: boolean;
17
17
  };
18
- export type CellProps = BaseProps<HTMLTableCellElement> & {
18
+ export type CellProps = BaseProps<HTMLTableCellElement> & React.HTMLAttributes<HTMLTableCellElement> & {
19
19
  as?: 'td' | 'th';
20
20
  };
21
21
  export type FootnoteProps = BaseProps<HTMLParagraphElement>;
@@ -1,4 +1,4 @@
1
- import React, { type ReactElement } from 'react';
1
+ import React from 'react';
2
2
  import { FAQSubheadingProps } from './';
3
3
  /**
4
4
  * Design tokens
@@ -10,7 +10,7 @@ declare function HeadingBase({ children, className, as, ...rest }: FAQSubheading
10
10
  export type FAQGroupProps = React.PropsWithChildren<{
11
11
  id?: string;
12
12
  defaultSelectedIndex?: number;
13
- tabAttributes?: (children: ReactElement, index: number) => Record<string, unknown>;
13
+ tabAttributes?: (children: React.ReactNode, index: number) => Record<string, unknown>;
14
14
  }>;
15
15
  declare function FAQGroupBase({ children, id, defaultSelectedIndex, tabAttributes, ...rest }: FAQGroupProps): import("react/jsx-runtime").JSX.Element;
16
16
  /**
@@ -1,4 +1,5 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
+ import type { JSX } from 'react';
2
3
  import type { BaseProps } from '../component-helpers';
3
4
  /**
4
5
  * Design tokens
package/lib/IDE/IDE.d.ts CHANGED
@@ -147,7 +147,7 @@ export declare const IDE: React.NamedExoticComponent<{
147
147
  readonly editorContent: string;
148
148
  readonly editorTabs: string;
149
149
  };
150
- Chat: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IDEChatProps, "ref"> & React.RefAttributes<IDEChatHandle>>>;
151
- Editor: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IDEEditorProps, "ref"> & React.RefAttributes<IDEEditorHandle>>>;
150
+ Chat: React.NamedExoticComponent<Omit<IDEChatProps, "ref"> & React.RefAttributes<IDEChatHandle>>;
151
+ Editor: React.NamedExoticComponent<Omit<IDEEditorProps, "ref"> & React.RefAttributes<IDEEditorHandle>>;
152
152
  };
153
153
  export {};
@@ -1,11 +1,10 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren, type JSX } from 'react';
2
2
  import { HeadingProps, type ImageProps, LinkProps } from '..';
3
3
  import type { BaseProps } from '../component-helpers';
4
4
  /**
5
5
  * Design tokens
6
6
  */
7
7
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/pillar/colors-with-modes.css';
8
- import type { Icon as IconProps } from '@primer/octicons-react';
9
8
  export declare const PillarIconColors: readonly ["default", "blue", "coral", "green", "gray", "indigo", "lemon", "lime", "orange", "pink", "purple", "red", "teal", "yellow"];
10
9
  export declare const defaultPillarIconColor: "default";
11
10
  export type PillarProps<C extends keyof JSX.IntrinsicElements = 'div'> = React.HTMLAttributes<C> & {
@@ -24,8 +23,11 @@ export type PillarProps<C extends keyof JSX.IntrinsicElements = 'div'> = React.H
24
23
  } & (C extends 'article' ? PropsWithChildren<BaseProps<HTMLElement>> : PropsWithChildren<BaseProps<HTMLDivElement>>);
25
24
  type PillarImageProps = ImageProps;
26
25
  declare function PillarImage({ className, ...rest }: PillarImageProps): import("react/jsx-runtime").JSX.Element;
26
+ type IconComponent = React.ComponentType<{
27
+ size?: number;
28
+ }>;
27
29
  type PillarIconProps = BaseProps<HTMLSpanElement> & {
28
- icon: React.ReactNode | IconProps;
30
+ icon: React.ReactNode | IconComponent;
29
31
  color?: (typeof PillarIconColors)[number];
30
32
  };
31
33
  declare function PillarIcon({ icon: Icon, className, color, ...rest }: PillarIconProps): import("react/jsx-runtime").JSX.Element;
@@ -9,7 +9,7 @@ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/compone
9
9
  export declare const SubNavSubMenuVariants: readonly ["dropdown", "anchor"];
10
10
  type SubMenuVariants = (typeof SubNavSubMenuVariants)[number];
11
11
  type SubNavContextType = {
12
- portalRef: RefObject<HTMLDivElement>;
12
+ portalRef: RefObject<HTMLDivElement | null>;
13
13
  };
14
14
  export declare const useSubNavContext: () => SubNavContextType;
15
15
  export type SubNavProps = {
@@ -58,11 +58,7 @@ declare function ActionBase({ children, href, variant, size, ...rest }: SubNavAc
58
58
  * Use SubNav to display a secondary navigation beneath a primary header.
59
59
  * @see https://primer.style/brand/components/SubNav
60
60
  */
61
- export declare const SubNav: React.NamedExoticComponent<Omit<Omit<SubNavProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
62
- ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
63
- }> & {
64
- readonly type: React.ForwardRefExoticComponent<Omit<SubNavProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
65
- } & {
61
+ export declare const SubNav: React.NamedExoticComponent<Omit<SubNavProps, "ref"> & React.RefAttributes<HTMLDivElement>> & {
66
62
  Heading: ({ href, children, className, "data-testid": testID, ...props }: HeadingBaseProps) => import("react/jsx-runtime").JSX.Element;
67
63
  SubHeading: ({ href, children, className, "data-testid": testID, ...props }: SubHeadingBaseProps) => import("react/jsx-runtime").JSX.Element;
68
64
  Link: React.ForwardRefExoticComponent<Omit<LinkBaseProps, "ref"> & React.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
@@ -6,4 +6,4 @@ import { type RefObject } from 'react';
6
6
  * @type T The type of the container element.
7
7
  * @returns The ref to be applied to the container element.
8
8
  */
9
- export declare const useContainsFocus: <T extends HTMLElement>(containerRef?: RefObject<T>, onFocusChange?: (isFocussed: boolean) => void) => void;
9
+ export declare const useContainsFocus: <T extends HTMLElement>(containerRef?: RefObject<T | null>, onFocusChange?: (isFocussed: boolean) => void) => void;
@@ -1,5 +1,5 @@
1
- export declare function NavigationVisbilityObserver({ children, className, ...rest }: {
2
- [x: string]: any;
3
- children: any;
4
- className: any;
5
- }): import("react/jsx-runtime").JSX.Element;
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { BaseProps } from '../component-helpers';
3
+ type NavigationVisibilityObserverProps = PropsWithChildren<BaseProps<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement>>;
4
+ export declare const NavigationVisbilityObserver: React.ForwardRefExoticComponent<Omit<NavigationVisibilityObserverProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
5
+ export {};
@@ -8,7 +8,7 @@ export type SubdomainNavBarProps = {
8
8
  * Valid child elements are `SubdomainNavBar.Link`, `SubdomainNavBar.PrimaryAction`,
9
9
  * `SubdomainNavBar.SecondaryAction` and `SubdomainNavBar.Search`
10
10
  */
11
- children?: React.ReactNode | React.ReactElement<LinkProps> | React.ReactElement<SearchProps> | React.ReactElement<CTAActionProps>;
11
+ children?: React.ReactNode | React.ReactElement<SubdomainNavBarLinkProps> | React.ReactElement<SearchProps> | React.ReactElement<CTAActionProps>;
12
12
  /**
13
13
  * Forward a custom HTML class attribute
14
14
  */
@@ -39,11 +39,12 @@ export type SubdomainNavBarProps = {
39
39
  onNarrowMenuToggle?: (isOpen: boolean) => void;
40
40
  };
41
41
  declare function Root({ children, className, fixed, fullWidth, logoHref, title, titleHref, onNarrowMenuToggle, ...rest }: SubdomainNavBarProps): import("react/jsx-runtime").JSX.Element;
42
- type LinkProps = {
42
+ export type SubdomainNavBarLinkProps = {
43
43
  href: string;
44
44
  isExternal?: boolean;
45
+ 'data-navitemid'?: string;
45
46
  } & React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
46
- declare function Link({ href, className, children, isExternal, ...rest }: PropsWithChildren<LinkProps>): import("react/jsx-runtime").JSX.Element;
47
+ declare function Link({ href, className, children, isExternal, ...rest }: PropsWithChildren<SubdomainNavBarLinkProps>): import("react/jsx-runtime").JSX.Element;
47
48
  export type SubdomainNavBarSearchResultProps = {
48
49
  title: string;
49
50
  description: string;
@@ -2,4 +2,4 @@ import { RefObject } from 'react';
2
2
  export type VisibilityMap = {
3
3
  [key: string]: boolean;
4
4
  };
5
- export declare function useVisibilityObserver(navigationRef: RefObject<HTMLUListElement>, children: any): VisibilityMap[];
5
+ export declare function useVisibilityObserver(navigationRef: RefObject<HTMLUListElement | null>, children: any): VisibilityMap[];
@@ -56,7 +56,7 @@ export type TabsItemProps = {
56
56
  children: ReactNode;
57
57
  className?: string;
58
58
  isActive?: boolean;
59
- variant?: 'default' | 'accent';
59
+ variant?: 'default' | 'accent' | 'underline';
60
60
  /**
61
61
  * ⚠️ WARNING: Setting a custom id will override the automatically generated ARIA attributes
62
62
  * (aria-controls, aria-labelledby). You will need to manually implement proper accessibility
@@ -161,7 +161,7 @@ export declare const Tabs: React.ForwardRefExoticComponent<(Omit<{
161
161
  children: ReactNode;
162
162
  className?: string;
163
163
  isActive?: boolean;
164
- variant?: "default" | "accent";
164
+ variant?: "default" | "accent" | "underline";
165
165
  /**
166
166
  * ⚠️ WARNING: Setting a custom id will override the automatically generated ARIA attributes
167
167
  * (aria-controls, aria-labelledby). You will need to manually implement proper accessibility
@@ -16,7 +16,7 @@ export type TriggerPropsType = {
16
16
  onFocus?: React.FocusEventHandler;
17
17
  onMouseEnter?: React.MouseEventHandler;
18
18
  onMouseLeave?: React.MouseEventHandler;
19
- ref?: React.RefObject<HTMLElement>;
19
+ ref?: React.RefObject<HTMLElement | null>;
20
20
  };
21
21
  export declare const TooltipContext: React.Context<{
22
22
  tooltipId?: string;
@@ -26,7 +26,7 @@ export type UseVideoContext = VideoState & {
26
26
  toggleFullScreen: () => void;
27
27
  setDuration: (duration: number) => void;
28
28
  isFullScreen: boolean;
29
- fullscreenRef: RefObject<HTMLDivElement>;
29
+ fullscreenRef: RefObject<HTMLDivElement | null>;
30
30
  };
31
31
  export declare const VideoContext: React.Context<UseVideoContext | null>;
32
32
  export declare const useVideo: () => UseVideoContext;
@@ -1,3 +1,3 @@
1
1
  import { type RefObject } from 'react';
2
2
  export type KeypressHandler = [KeyboardEvent['key'], (e: KeyboardEvent) => void];
3
- export declare const useVideoKeypressHandlers: (videoWrapperRef: RefObject<HTMLElement>) => void;
3
+ export declare const useVideoKeypressHandlers: (videoWrapperRef: RefObject<HTMLElement | null>) => void;
@@ -1,5 +1,5 @@
1
1
  import { type RefObject } from 'react';
2
2
  export declare const useVideoResizeObserver: ({ videoWrapperRef, className, }: {
3
- videoWrapperRef: RefObject<HTMLElement>;
3
+ videoWrapperRef: RefObject<HTMLElement | null>;
4
4
  className: string;
5
5
  }) => boolean;
@@ -1,4 +1,4 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren, type JSX } from 'react';
2
2
  import type { BaseProps } from '../../component-helpers';
3
3
  export type BoxProps<T extends keyof JSX.IntrinsicElements = 'div'> = React.HTMLAttributes<T> & {
4
4
  as?: T | 'div' | 'span' | 'section';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { BaseProps } from '../../component-helpers';
3
3
  export type TextRevealAnimationProps = BaseProps<HTMLSpanElement> & Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> & {
4
- children: React.ReactChild;
4
+ children: string;
5
5
  };
6
- export declare function TextRevealAnimation({ children, ...rest }: TextRevealAnimationProps): import("react/jsx-runtime").JSX.Element | null;
6
+ export declare const TextRevealAnimation: React.ForwardRefExoticComponent<Omit<TextRevealAnimationProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
@@ -1,4 +1,5 @@
1
- export declare const useTextRevealAnimationLines: (text?: string) => {
2
- ref: import("react").RefObject<HTMLElement>;
1
+ import { RefObject } from 'react';
2
+ export declare const useTextRevealAnimationLines: (text?: string, providedRef?: RefObject<HTMLElement | null>) => {
3
+ ref: RefObject<HTMLElement | null>;
3
4
  lines: string[] | undefined;
4
5
  };