@primer/react-brand 0.46.0 → 0.47.0-rc.92f76d23

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 (426) hide show
  1. package/lib/Accordion/Accordion.d.ts +1 -1
  2. package/lib/ActionMenu/ActionMenu.d.ts +4 -4
  3. package/lib/AnchorNav/AnchorNav.d.ts +4 -4
  4. package/lib/Bento/Bento.d.ts +5 -5
  5. package/lib/Box/Box.d.ts +1 -1
  6. package/lib/BreakoutBanner/BreakoutBanner.d.ts +11 -86
  7. package/lib/Button/Button.d.ts +2 -6
  8. package/lib/ButtonGroup/ButtonGroup.d.ts +1 -5
  9. package/lib/CTABanner/CTABanner.d.ts +11 -71
  10. package/lib/CTAForm/CTAForm.d.ts +1 -3
  11. package/lib/Card/Card.d.ts +2 -2
  12. package/lib/Card/CardSkewEffect.d.ts +1 -1
  13. package/lib/ComparisonTable/ComparisonTable.d.ts +5 -15
  14. package/lib/ExpandableArrow/ExpandableArrow.d.ts +1 -1
  15. package/lib/FAQ/FAQ.d.ts +1 -1
  16. package/lib/FAQ/FAQGroup.d.ts +2 -2
  17. package/lib/Footnotes/Footnotes.d.ts +2 -2
  18. package/lib/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
  19. package/lib/Grid/Grid.d.ts +2 -2
  20. package/lib/Heading/Heading.d.ts +1 -1
  21. package/lib/IDE/IDE.d.ts +37 -36
  22. package/lib/Icon/Icon.d.ts +1 -1
  23. package/lib/Image/Image.d.ts +1 -1
  24. package/lib/InlineLink/InlineLink.d.ts +1 -1
  25. package/lib/Label/Label.d.ts +2 -1
  26. package/lib/Link/Link.d.ts +1 -1
  27. package/lib/LogoSuite/LogoSuite.d.ts +3 -17
  28. package/lib/LogoSuite/LogoSuite.fixtures.d.ts +1 -1
  29. package/lib/MinimalFooter/MinimalFooter.d.ts +3 -3
  30. package/lib/MonaSans/MonaSans.d.ts +1 -1
  31. package/lib/Pagination/Pagination.d.ts +2 -2
  32. package/lib/Pillar/Pillar.d.ts +7 -6
  33. package/lib/PricingOptions/PricingOptions.d.ts +2 -2
  34. package/lib/SectionIntro/SectionIntro.d.ts +8 -6
  35. package/lib/Stack/Stack.d.ts +1 -41
  36. package/lib/SubNav/SubNav.d.ts +4 -4
  37. package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +1 -1
  38. package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +7 -6
  39. package/lib/Testimonial/Testimonial.d.ts +5 -9
  40. package/lib/Text/Text.d.ts +1 -1
  41. package/lib/ThemeProvider/ThemeProvider.d.ts +1 -1
  42. package/lib/Timeline/Timeline.d.ts +2 -2
  43. package/lib/Tooltip/Tooltip.d.ts +1 -6
  44. package/lib/VideoPlayer/VideoPlayer.d.ts +4 -4
  45. package/lib/VideoPlayer/components/CCButton/CCButton.d.ts +1 -1
  46. package/lib/VideoPlayer/components/Captions/Captions.d.ts +1 -1
  47. package/lib/VideoPlayer/components/Controls/Controls.d.ts +1 -1
  48. package/lib/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +1 -1
  49. package/lib/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +1 -1
  50. package/lib/VideoPlayer/components/IconControl/IconControl.d.ts +1 -1
  51. package/lib/VideoPlayer/components/MuteButton/MuteButton.d.ts +1 -1
  52. package/lib/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +1 -1
  53. package/lib/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +1 -1
  54. package/lib/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +1 -1
  55. package/lib/VideoPlayer/components/Range/Range.d.ts +2 -1
  56. package/lib/VideoPlayer/components/SeekControl/SeekControl.d.ts +1 -1
  57. package/lib/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +1 -1
  58. package/lib/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +1 -1
  59. package/lib/VideoPlayer/hooks/useVideo.d.ts +5 -4
  60. package/lib/animation/Animate/Animate.d.ts +1 -1
  61. package/lib/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
  62. package/lib/animation/TextRevealAnimation/TextRevealAnimation.d.ts +1 -1
  63. package/lib/component-helpers.d.ts +2 -2
  64. package/lib/css/main.css +67 -63
  65. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  66. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  67. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  68. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  69. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  70. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  71. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  72. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  73. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  74. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  75. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  76. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  77. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  78. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  79. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  84. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  85. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  86. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  87. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  88. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  89. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  90. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  91. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  92. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  93. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  94. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  95. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  96. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  97. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  98. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  99. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  100. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  101. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  102. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  103. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  104. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  105. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  106. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  107. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  108. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  109. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  110. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  111. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  112. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  113. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  114. package/lib/design-tokens/css/tokens/functional/components/pagination/colors-with-modes.css +1 -1
  115. package/lib/design-tokens/css/tokens/functional/components/pillar/colors-with-modes.css +1 -1
  116. package/lib/design-tokens/css/tokens/functional/components/pillar/colors.css +1 -1
  117. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  118. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  119. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  120. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  121. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  122. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  123. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  124. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  125. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  126. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  127. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  128. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  129. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  130. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  131. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  132. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  133. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  134. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  135. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  136. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  137. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  138. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  139. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  140. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  141. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  142. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  143. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  144. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  145. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  146. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  147. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  148. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  149. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  150. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  151. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  152. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  153. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  154. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  155. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  156. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  157. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  158. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  159. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  160. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  161. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  162. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  163. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  164. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  165. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  166. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  167. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  168. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  169. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  170. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  171. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  172. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  173. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  174. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  175. package/lib/design-tokens/js/module/tokens/functional/components/pillar/colors.js +1 -1
  176. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  177. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  178. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  179. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  180. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  181. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  182. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  183. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  184. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  185. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  186. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  187. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  188. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  189. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  190. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  191. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  192. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  193. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  194. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  195. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  196. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  197. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  198. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  199. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  200. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  201. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  202. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  203. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  204. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  205. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  206. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  207. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  208. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  209. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  210. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  211. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  212. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  213. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  214. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  215. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  216. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  217. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  218. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  219. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  220. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  221. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  222. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  223. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  224. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  225. package/lib/design-tokens/js/tokens/functional/components/pillar/colors.js +1 -1
  226. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  227. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  228. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  229. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  230. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  231. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  232. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  233. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  234. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  235. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  236. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  237. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  238. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  239. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  240. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  241. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  242. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  243. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  244. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  245. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  246. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  247. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  248. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  249. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  250. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  251. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  252. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  253. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  254. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  255. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  256. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  257. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  258. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  259. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  260. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  261. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  262. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  263. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  264. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  265. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  266. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  267. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  268. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  269. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  270. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  271. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  272. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  273. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  274. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  275. package/lib/design-tokens/scss/tokens/functional/components/pillar/colors.scss +1 -1
  276. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  277. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  278. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  279. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  280. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  281. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  282. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  283. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  284. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  285. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  286. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  287. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  288. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  289. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  290. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  291. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  292. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  293. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  294. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  295. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  296. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  297. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  298. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  299. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  300. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  301. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  302. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  303. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  304. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  305. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  306. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  307. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  308. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  309. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  310. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  311. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  312. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  313. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  314. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  315. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  316. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  317. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  318. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  319. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  320. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  321. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  322. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  323. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  324. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  325. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  326. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  327. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  328. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  329. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  330. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  331. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  332. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  333. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  334. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  335. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  336. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  337. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  338. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  339. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  340. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  341. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  342. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  343. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  344. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  345. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  346. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  347. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  348. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  349. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  350. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  351. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  352. package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.d.ts +1 -1
  353. package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.js +1 -1
  354. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  355. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  356. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  357. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  358. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  359. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  360. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  361. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  362. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  363. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  364. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  365. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  366. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  367. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  368. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  369. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  370. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  371. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  372. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  373. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  374. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  375. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  376. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  377. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  378. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  379. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  380. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  381. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  382. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  383. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  384. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  385. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  386. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  387. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  388. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  389. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  390. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  391. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  392. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  393. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  394. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  395. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  396. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  397. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  398. package/lib/forms/Checkbox/Checkbox.d.ts +1 -27
  399. package/lib/forms/FormControl/FormControl.d.ts +4 -4
  400. package/lib/forms/Radio/Radio.d.ts +1 -19
  401. package/lib/forms/Select/Select.d.ts +7 -20
  402. package/lib/forms/TextInput/TextInput.d.ts +3 -47
  403. package/lib/forms/Textarea/Textarea.d.ts +1 -30
  404. package/lib/hooks/useId.d.ts +2 -0
  405. package/lib/index.js +1 -1
  406. package/lib/list/OrderedList/OrderedList.d.ts +1 -1
  407. package/lib/list/UnorderedList/UnorderedList.d.ts +1 -1
  408. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts +1 -1
  409. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts +1 -1
  410. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts +1 -1
  411. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts +1 -1
  412. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts +1 -1
  413. package/lib/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts +1 -1
  414. package/lib/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts +18 -1
  415. package/lib/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts +2 -1
  416. package/lib/recipes/seo/Article/Article.d.ts +1 -1
  417. package/lib/recipes/seo/Article/ArticleToC.d.ts +1 -1
  418. package/lib/recipes/seo/Category/CategoryPage.d.ts +1 -1
  419. package/lib/river/River/River.d.ts +4 -72
  420. package/lib/river/RiverBreakout/RiverBreakout.d.ts +3 -8
  421. package/lib/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
  422. package/lib/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +1 -1
  423. package/lib/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
  424. package/lib/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
  425. package/lib/test-utils/setupTests.d.ts +1 -0
  426. package/package.json +26 -17
@@ -30,7 +30,7 @@ type AccordionContentProps = BaseProps<HTMLElement> & {
30
30
  handleOpen?: (boolean: any) => void;
31
31
  parentRef?: React.RefObject<HTMLDetailsElement>;
32
32
  };
33
- export declare function AccordionContent({ children, className, open, handleOpen, parentRef, ...rest }: AccordionContentProps): JSX.Element;
33
+ export declare function AccordionContent({ children, className, open, handleOpen, parentRef, ...rest }: AccordionContentProps): import("react/jsx-runtime").JSX.Element;
34
34
  /**
35
35
  * Branded Accordion component
36
36
  */
@@ -120,9 +120,9 @@ export declare const ActionMenu: React.NamedExoticComponent<{
120
120
  size?: ActionMenuSizes;
121
121
  menuSide?: PositionSettings["side"];
122
122
  } & BaseProps<HTMLDivElement>> & {
123
- readonly type: ({ id, children, "data-testid": testId, disabled, open, selectionVariant, menuAlignment, size, menuSide, onSelect, }: ActionMenuProps) => JSX.Element;
123
+ readonly type: ({ id, children, "data-testid": testId, disabled, open, selectionVariant, menuAlignment, size, menuSide, onSelect, }: ActionMenuProps) => import("react/jsx-runtime").JSX.Element;
124
124
  } & {
125
- Button: React.ForwardRefExoticComponent<(Omit<((instance: HTMLButtonElement | null) => void) & {
125
+ 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]) & {
126
126
  children?: React.ReactNode | undefined;
127
127
  } & {
128
128
  id?: string;
@@ -145,8 +145,8 @@ export declare const ActionMenu: React.NamedExoticComponent<{
145
145
  'data-testid'?: string;
146
146
  size?: ActionMenuSizes;
147
147
  }, "ref">) & React.RefAttributes<HTMLButtonElement>>;
148
- Item: ({ children, className, disabled, handler, selected, type, value, ...props }: ActionMenuItemProps) => JSX.Element;
149
- Overlay: React.ForwardRefExoticComponent<(Omit<((instance: HTMLUListElement | null) => void) & {
148
+ Item: ({ children, className, disabled, handler, selected, type, value, ...props }: ActionMenuItemProps) => import("react/jsx-runtime").JSX.Element;
149
+ 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]) & {
150
150
  children?: React.ReactNode | undefined;
151
151
  } & {
152
152
  'aria-label': string;
@@ -19,7 +19,7 @@ export type AnchorNavProps = BaseProps<HTMLElement> & {
19
19
  */
20
20
  hideUntilSticky?: boolean;
21
21
  } & React.ComponentPropsWithoutRef<'nav'>;
22
- declare function _AnchorNav({ children, enableDefaultBgColor, hideUntilSticky, ...rest }: AnchorNavProps): JSX.Element;
22
+ declare function _AnchorNav({ children, enableDefaultBgColor, hideUntilSticky, ...rest }: AnchorNavProps): import("react/jsx-runtime").JSX.Element;
23
23
  type AnchorNavLinkIntersectionOptions = {
24
24
  /**
25
25
  * The area of the element that should trigger the next linked section to be highlighted.
@@ -45,15 +45,15 @@ type AnchorNavLinkProps = BaseProps<HTMLAnchorElement> & {
45
45
  prefersReducedMotion?: boolean;
46
46
  updateCurrentActiveNav?: (id: string | null) => void;
47
47
  } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
48
- declare function _AnchorNavLink({ alignment, children, href, isActive, toggleMenuCallback, prefersReducedMotion, intersectionOptions, updateCurrentActiveNav, ...rest }: AnchorNavLinkProps): JSX.Element;
48
+ declare function _AnchorNavLink({ alignment, children, href, isActive, toggleMenuCallback, prefersReducedMotion, intersectionOptions, updateCurrentActiveNav, ...rest }: AnchorNavLinkProps): import("react/jsx-runtime").JSX.Element;
49
49
  type AnchorNavActionProps = {
50
50
  /**
51
51
  * Required path or location for the action button to link to.
52
52
  */
53
53
  href: string;
54
54
  } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & ButtonBaseProps;
55
- declare function _AnchorNavAction({ children, href, variant, size, ...rest }: AnchorNavActionProps): JSX.Element;
56
- declare function _AnchorNavActionSecondary({ children, href, variant, size, ...rest }: AnchorNavActionProps): JSX.Element;
55
+ declare function _AnchorNavAction({ children, href, variant, size, ...rest }: AnchorNavActionProps): import("react/jsx-runtime").JSX.Element;
56
+ declare function _AnchorNavActionSecondary({ children, href, variant, size, ...rest }: AnchorNavActionProps): import("react/jsx-runtime").JSX.Element;
57
57
  /**
58
58
  * AnchorNav allows users to navigate to different sections of a page.
59
59
  * @see https://primer.style/brand/components/AnchorNav
@@ -45,10 +45,10 @@ type BentoVisualProps = {
45
45
  position?: string;
46
46
  padding?: Padding | ResponsivePadding;
47
47
  } & React.HTMLAttributes<HTMLDivElement> & BaseProps<HTMLDivElement>;
48
- export declare const Bento: (({ className, ...rest }: BentoProps) => JSX.Element) & {
49
- Item: ({ className, columnStart, columnSpan, rowStart, rowSpan, flow, colorMode, visualAsBackground, order, bgColor, children, ...rest }: BentoItemProps) => JSX.Element;
50
- Visual: ({ horizontalAlign, verticalAlign, fillMedia, overflow, position, padding, className, children, ...rest }: BentoVisualProps) => JSX.Element;
51
- Content: ({ children, leadingVisual: LeadingVisual, padding, verticalAlign, horizontalAlign, className, ...rest }: BentoContentProps) => JSX.Element;
52
- Heading: React.ForwardRefExoticComponent<Omit<BentoHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
48
+ export declare const Bento: (({ className, ...rest }: BentoProps) => import("react/jsx-runtime").JSX.Element) & {
49
+ Item: ({ className, columnStart, columnSpan, rowStart, rowSpan, flow, colorMode, visualAsBackground, order, bgColor, children, ...rest }: BentoItemProps) => import("react/jsx-runtime").JSX.Element;
50
+ Visual: ({ horizontalAlign, verticalAlign, fillMedia, overflow, position, padding, className, children, ...rest }: BentoVisualProps) => import("react/jsx-runtime").JSX.Element;
51
+ Content: ({ children, leadingVisual: LeadingVisual, padding, verticalAlign, horizontalAlign, className, ...rest }: BentoContentProps) => import("react/jsx-runtime").JSX.Element;
52
+ Heading: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<BentoHeadingProps>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
53
53
  };
54
54
  export {};
package/lib/Box/Box.d.ts CHANGED
@@ -77,5 +77,5 @@ type BoxProps = {
77
77
  * Use Box to apply fine-grained styling to content.
78
78
  * @see https://primer.style/brand/components/Box
79
79
  */
80
- export declare const Box: ({ animate, children, className, "data-testid": testId, style, padding, paddingBlockStart, paddingInlineEnd, paddingBlockEnd, paddingInlineStart, margin, marginBlockStart, marginInlineEnd, marginBlockEnd, marginInlineStart, backgroundColor, borderRadius, borderWidth, borderBlockStartWidth, borderInlineEndWidth, borderBlockEndWidth, borderInlineStartWidth, borderColor, borderStyle, ...rest }: PropsWithChildren<BoxProps>) => JSX.Element;
80
+ export declare const Box: ({ animate, children, className, "data-testid": testId, style, padding, paddingBlockStart, paddingInlineEnd, paddingBlockEnd, paddingInlineStart, margin, marginBlockStart, marginInlineEnd, marginBlockEnd, marginInlineStart, backgroundColor, borderRadius, borderWidth, borderBlockStartWidth, borderInlineEndWidth, borderBlockEndWidth, borderInlineStartWidth, borderColor, borderStyle, ...rest }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
81
81
  export {};
@@ -1,6 +1,7 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import { Icon } from '@primer/octicons-react';
3
3
  import type { BaseProps } from '../component-helpers';
4
+ import { HeadingProps, StackProps } from '../';
4
5
  type ResponsiveMap<T> = {
5
6
  narrow?: T;
6
7
  regular?: T;
@@ -39,95 +40,19 @@ export type BreakoutBannerProps = BaseProps<HTMLDivElement> & React.HTMLAttribut
39
40
  */
40
41
  leadingVisual?: ReactElement | Icon;
41
42
  };
43
+ type BreakoutBannerHeadingProps = BaseProps<HTMLHeadingElement> & {
44
+ children: React.ReactNode | React.ReactNode[];
45
+ } & HeadingProps;
46
+ type BreakoutBannerDescriptionProps = BaseProps<HTMLParagraphElement> & {
47
+ children: React.ReactNode | React.ReactNode[];
48
+ };
42
49
  /**
43
50
  * Breakout banner component
44
51
  * {@link https://primer.style/brand/components/BreakoutBanner/ See usage examples}.
45
52
  */
46
- export declare const BreakoutBanner: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
47
- children: React.ReactNode | React.ReactNode[];
48
- /**
49
- * The alignment of the content within the banner
50
- */
51
- align?: "start" | "center";
52
- /**
53
- * Optional, custom background color
54
- */
55
- backgroundColor?: BackgroundColors | ResponsiveBackgroundColorMap;
56
- /**
57
- * Optional, custom background image
58
- */
59
- backgroundImageSrc?: string | ResponsiveBackgroundImageSrcMap;
60
- /**
61
- * Optional, custom background position
62
- */
63
- backgroundImagePosition?: string | ResponsiveBackgroundImagePositionMap;
64
- /**
65
- * Optional, custom background size
66
- */
67
- backgroundImageSize?: string | ResponsiveBackgroundImageSizeMap;
68
- /**
69
- * An optional leading visual that appears before the heading
70
- */
71
- leadingVisual?: ReactElement | Icon;
72
- }, "ref"> & React.RefAttributes<HTMLDivElement>> & {
73
- Heading: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLHeadingElement> & {
74
- children: React.ReactNode | React.ReactNode[];
75
- } & {
76
- as?: typeof import("../").HeadingTags[number];
77
- size?: typeof import("../").HeadingSizes[number];
78
- weight?: ("medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight") | {
79
- narrow?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
80
- regular?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
81
- wide?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
82
- };
83
- stretch?: ("normal" | "condensed" | "expanded") | {
84
- narrow?: "normal" | "condensed" | "expanded";
85
- regular?: "normal" | "condensed" | "expanded";
86
- wide?: "normal" | "condensed" | "expanded";
87
- };
88
- letterSpacing?: ("normal" | "condensed" | "none") | {
89
- narrow?: "normal" | "condensed" | "none";
90
- regular?: "normal" | "condensed" | "none";
91
- wide?: "normal" | "condensed" | "none";
92
- };
93
- font?: "mona-sans" | "hubot-sans" | "monospace";
94
- } & React.HTMLAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
95
- Description: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLParagraphElement> & {
96
- children: React.ReactNode | React.ReactNode[];
97
- }, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
98
- LinkGroup: React.ForwardRefExoticComponent<Omit<Omit<BaseProps<HTMLElement> & {
99
- children: React.ReactNode[] | React.ReactNode;
100
- direction?: ("horizontal" | "vertical") | {
101
- narrow?: "horizontal" | "vertical";
102
- regular?: "horizontal" | "vertical";
103
- wide?: "horizontal" | "vertical";
104
- };
105
- gap?: ("normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128) | {
106
- narrow?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
107
- regular?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
108
- wide?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
109
- };
110
- alignItems?: ("center" | "flex-end" | "flex-start") | {
111
- narrow?: "center" | "flex-end" | "flex-start";
112
- regular?: "center" | "flex-end" | "flex-start";
113
- wide?: "center" | "flex-end" | "flex-start";
114
- };
115
- padding?: ("normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128) | {
116
- narrow?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
117
- regular?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
118
- wide?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128;
119
- };
120
- justifyContent?: ("center" | "space-around" | "space-between" | "space-evenly" | "flex-end" | "flex-start") | {
121
- narrow?: "center" | "space-around" | "space-between" | "space-evenly" | "flex-end" | "flex-start";
122
- regular?: "center" | "space-around" | "space-between" | "space-evenly" | "flex-end" | "flex-start";
123
- wide?: "center" | "space-around" | "space-between" | "space-evenly" | "flex-end" | "flex-start";
124
- };
125
- style?: React.CSSProperties;
126
- flexWrap?: ("nowrap" | "wrap") | {
127
- narrow?: "nowrap" | "wrap";
128
- regular?: "nowrap" | "wrap";
129
- wide?: "nowrap" | "wrap";
130
- };
131
- } & BaseProps<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>;
53
+ export declare const BreakoutBanner: React.ForwardRefExoticComponent<Omit<BreakoutBannerProps, "ref"> & React.RefAttributes<HTMLDivElement>> & {
54
+ Heading: React.ForwardRefExoticComponent<Omit<BreakoutBannerHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
55
+ Description: React.ForwardRefExoticComponent<Omit<BreakoutBannerDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
56
+ LinkGroup: React.ForwardRefExoticComponent<Omit<Omit<StackProps, "ref"> & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>;
132
57
  };
133
58
  export {};
@@ -35,12 +35,8 @@ export type ButtonBaseProps = {
35
35
  export type ButtonProps<C extends React.ElementType> = BaseProps<C> & {
36
36
  as?: C;
37
37
  } & ButtonBaseProps & React.ComponentPropsWithoutRef<C>;
38
- export declare const _Button: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
39
- as?: React.ElementType<any> | undefined;
40
- } & ButtonBaseProps & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>>;
41
- export declare const Button: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
42
- as?: React.ElementType<any> | undefined;
43
- } & ButtonBaseProps & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>> & {
38
+ export declare const _Button: React.ForwardRefExoticComponent<Omit<ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
39
+ export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLButtonElement>> & {
44
40
  testIds: {
45
41
  root: string;
46
42
  readonly leadingVisual: string;
@@ -7,9 +7,5 @@ export type ButtonGroupProps = BaseProps<HTMLDivElement> & {
7
7
  buttonSize?: ButtonProps<'button' | 'a'>['size'];
8
8
  buttonsAs?: React.ElementType;
9
9
  };
10
- export declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLDivElement> & {
11
- children: PrimerBrandButtonType[] | PrimerBrandButtonType;
12
- buttonSize?: ButtonProps<"button" | "a">["size"];
13
- buttonsAs?: React.ElementType;
14
- }, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
11
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { BaseProps } from '../component-helpers';
3
+ import { HeadingProps } from '../Heading';
3
4
  import { TextProps } from '../Text';
4
5
  /**
5
6
  * Design tokens
@@ -57,76 +58,15 @@ export type CTABannerProps = BaseProps<HTMLElement> & React.HTMLAttributes<HTMLE
57
58
  */
58
59
  trailingComponent?: React.FunctionComponent;
59
60
  };
60
- export declare const CTABanner: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLElement> & React.HTMLAttributes<HTMLElement> & {
61
- /**
62
- * The alignment of the content within the banner.
63
- */
64
- align?: "start" | "center";
65
- /**
66
- * A flag to add a border to the banner.
67
- */
68
- hasBorder?: boolean;
69
- /**
70
- * A flag to remove the shadow from the banner.
71
- */
72
- hasShadow?: boolean;
73
- /**
74
- * A flag to remove the background from the banner.
75
- */
76
- hasBackground?: boolean;
77
- /**
78
- * Optional, custom background color.
79
- */
80
- backgroundColor?: BackgroundColors | ResponsiveBackgroundColorMap;
81
- /**
82
- * Optional, custom background image.
83
- */
84
- backgroundImageSrc?: string | ResponsiveBackgroundImageSrcMap;
85
- /**
86
- * Optional, custom background position.
87
- */
88
- backgroundImagePosition?: string | ResponsiveBackgroundImagePositionMap;
89
- /**
90
- * Optional, custom background size.
91
- */
92
- backgroundImageSize?: string | ResponsiveBackgroundImageSizeMap;
93
- /**
94
- * Escape-hatch for inserting custom React components.
95
- * Warning:
96
- * This prop isn't advertised in our docs but remains part of the public API for edge-cases.
97
- * Need to use this prop? Please check in with #primer-brand first to confirm correct usage.
98
- */
99
- trailingComponent?: React.FunctionComponent;
100
- }, "ref"> & React.RefAttributes<HTMLElement>> & {
101
- Heading: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLHeadingElement> & {
102
- children: React.ReactNode | React.ReactNode[];
103
- } & {
104
- as?: typeof import("../Heading").HeadingTags[number];
105
- size?: typeof import("../Heading").HeadingSizes[number];
106
- weight?: ("medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight") | {
107
- narrow?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
108
- regular?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
109
- wide?: "medium" | "light" | "heavy" | "extrabold" | "bold" | "semibold" | "normal" | "extralight";
110
- };
111
- stretch?: ("normal" | "condensed" | "expanded") | {
112
- narrow?: "normal" | "condensed" | "expanded";
113
- regular?: "normal" | "condensed" | "expanded";
114
- wide?: "normal" | "condensed" | "expanded";
115
- };
116
- letterSpacing?: ("normal" | "condensed" | "none") | {
117
- narrow?: "normal" | "condensed" | "none";
118
- regular?: "normal" | "condensed" | "none";
119
- wide?: "normal" | "condensed" | "none";
120
- };
121
- font?: "mona-sans" | "hubot-sans" | "monospace";
122
- } & React.HTMLAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
123
- Description: React.ForwardRefExoticComponent<Omit<React.HtmlHTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLParagraphElement> & {
124
- variant?: TextProps["variant"];
125
- }, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
126
- ButtonGroup: React.ForwardRefExoticComponent<Omit<Omit<BaseProps<HTMLDivElement> & {
127
- children: React.ReactElement<import("..").ButtonProps<React.ElementType<"a" | "button">>, string | React.JSXElementConstructor<any>>[] | React.ReactElement<import("..").ButtonProps<React.ElementType<"a" | "button">>, string | React.JSXElementConstructor<any>>;
128
- buttonSize?: import("..").ButtonProps<"button" | "a">["size"];
129
- buttonsAs?: React.ElementType;
130
- }, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
61
+ type CTABannerHeadingProps = BaseProps<HTMLHeadingElement> & {
62
+ children: React.ReactNode | React.ReactNode[];
63
+ } & HeadingProps;
64
+ type CTABannerDescriptionProps = React.HtmlHTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLParagraphElement> & {
65
+ variant?: TextProps['variant'];
66
+ };
67
+ export declare const CTABanner: React.ForwardRefExoticComponent<Omit<CTABannerProps, "ref"> & React.RefAttributes<HTMLElement>> & {
68
+ Heading: React.ForwardRefExoticComponent<Omit<CTABannerHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
69
+ Description: React.ForwardRefExoticComponent<Omit<CTABannerDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
70
+ ButtonGroup: React.ForwardRefExoticComponent<Omit<Omit<import("../ButtonGroup").ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
131
71
  };
132
72
  export {};
@@ -2,7 +2,5 @@ import React from 'react';
2
2
  export declare const CTAForm: React.ForwardRefExoticComponent<React.FormHTMLAttributes<HTMLFormElement> & React.RefAttributes<HTMLFormElement>> & {
3
3
  Input: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
4
  Confirm: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
5
- Action: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("../component-helpers").BaseProps<React.ElementType<any>> & {
6
- as?: React.ElementType<any> | undefined;
7
- } & import("../").ButtonBaseProps & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>, "variant" | "type">, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ Action: React.ForwardRefExoticComponent<Omit<Omit<import("../").ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
6
  };
@@ -37,7 +37,7 @@ export type CardProps = {
37
37
  fullWidth?: boolean;
38
38
  } & Omit<BaseProps<HTMLDivElement>, 'animate'> & Omit<React.ComponentPropsWithoutRef<'div'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'> & Pick<React.ComponentPropsWithoutRef<'a'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'>;
39
39
  type CardImageProps = ImageProps;
40
- declare function CardImage({ className, ...rest }: CardImageProps): JSX.Element;
40
+ declare function CardImage({ className, ...rest }: CardImageProps): import("react/jsx-runtime").JSX.Element;
41
41
  type CardIconProps = IconProps;
42
42
  type CardLabelProps = BaseProps<HTMLSpanElement> & {
43
43
  children: React.ReactNode | React.ReactNode[];
@@ -58,7 +58,7 @@ type CardDescriptionProps = BaseProps<HTMLParagraphElement> & {
58
58
  export declare const Card: React.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React.RefAttributes<HTMLDivElement>> & {
59
59
  Image: typeof CardImage;
60
60
  Label: React.ForwardRefExoticComponent<Omit<CardLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
61
- Icon: ({ className, ...props }: IconProps) => JSX.Element;
61
+ Icon: ({ className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
62
62
  Heading: React.ForwardRefExoticComponent<Omit<CardHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
63
63
  Description: React.ForwardRefExoticComponent<Omit<CardDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
64
64
  };
@@ -4,5 +4,5 @@ type CardSkewEffectProps = {
4
4
  perspective?: number;
5
5
  disableSkew?: boolean;
6
6
  } & BaseProps<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>;
7
- export declare const CardSkewEffect: ({ color, children, className, perspective, disableSkew, ...rest }: PropsWithChildren<CardSkewEffectProps>) => JSX.Element;
7
+ export declare const CardSkewEffect: ({ color, children, className, perspective, disableSkew, ...rest }: PropsWithChildren<CardSkewEffectProps>) => import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -11,12 +11,7 @@ export type ComparisonTableProps<C extends React.ElementType> = BaseProps<C> & {
11
11
  variant?: 'default' | 'minimal';
12
12
  featuredColumn?: number;
13
13
  } & React.ComponentPropsWithoutRef<C>;
14
- export declare const _ComparisonTable: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
15
- as?: React.ElementType<any> | undefined;
16
- heading?: string;
17
- variant?: "default" | "minimal";
18
- featuredColumn?: number;
19
- } & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const _ComparisonTable: React.ForwardRefExoticComponent<Omit<ComparisonTableProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
15
  type RowProps = {
21
16
  header?: boolean;
22
17
  };
@@ -30,14 +25,9 @@ export type FootnoteProps = BaseProps<HTMLParagraphElement>;
30
25
  * They are useful for comparing products, plans, or features in marketing pages.
31
26
  * @see https://primer.style/brand/components/ComparisonTable
32
27
  */
33
- export declare const ComparisonTable: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
34
- as?: React.ElementType<any> | undefined;
35
- heading?: string;
36
- variant?: "default" | "minimal";
37
- featuredColumn?: number;
38
- } & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLDivElement>> & {
39
- Row: ({ children, ...rest }: PropsWithChildren<RowProps>) => JSX.Element;
40
- Cell: ({ as, children, ...props }: PropsWithChildren<CellProps>) => JSX.Element;
41
- Footnote: ({ children, ...props }: PropsWithChildren<FootnoteProps>) => JSX.Element;
28
+ export declare const ComparisonTable: React.ForwardRefExoticComponent<Omit<ComparisonTableProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
29
+ Row: ({ children, ...rest }: PropsWithChildren<RowProps>) => import("react/jsx-runtime").JSX.Element;
30
+ Cell: ({ as, children, ...props }: PropsWithChildren<CellProps>) => import("react/jsx-runtime").JSX.Element;
31
+ Footnote: ({ children, ...props }: PropsWithChildren<FootnoteProps>) => import("react/jsx-runtime").JSX.Element;
42
32
  };
43
33
  export {};
@@ -5,5 +5,5 @@ type ExpandableArrowProps = {
5
5
  hidden?: boolean;
6
6
  reverse?: boolean;
7
7
  };
8
- export declare function ExpandableArrow({ className, expanded, reverse, hidden, ...rest }: ExpandableArrowProps): JSX.Element;
8
+ export declare function ExpandableArrow({ className, expanded, reverse, hidden, ...rest }: ExpandableArrowProps): import("react/jsx-runtime").JSX.Element;
9
9
  export {};
package/lib/FAQ/FAQ.d.ts CHANGED
@@ -18,7 +18,7 @@ export type FAQSubheadingProps = BaseProps<HTMLHeadingElement> & {
18
18
  children: React.ReactNode | React.ReactNode[];
19
19
  as?: Exclude<HeadingProps['as'], 'h1'>;
20
20
  } & HeadingProps;
21
- declare function FAQSubheading({ children, className, as, size, weight, ...rest }: FAQSubheadingProps): JSX.Element;
21
+ declare function FAQSubheading({ children, className, as, size, weight, ...rest }: FAQSubheadingProps): import("react/jsx-runtime").JSX.Element;
22
22
  /**
23
23
  * FAQ component:
24
24
  * {@link https://primer.style/brand/components/FAQ/ See usage examples}.
@@ -6,13 +6,13 @@ import { FAQSubheadingProps } from './';
6
6
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/base.css';
7
7
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css';
8
8
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/faq.css';
9
- declare function _Heading({ children, className, as, ...rest }: FAQSubheadingProps): JSX.Element;
9
+ declare function _Heading({ children, className, as, ...rest }: FAQSubheadingProps): import("react/jsx-runtime").JSX.Element;
10
10
  export type FAQGroupProps = React.PropsWithChildren<{
11
11
  id?: string;
12
12
  defaultSelectedIndex?: number;
13
13
  tabAttributes?: (children: ReactElement, index: number) => Record<string, unknown>;
14
14
  }>;
15
- declare function _FAQGroup({ children, id, defaultSelectedIndex, tabAttributes, ...rest }: FAQGroupProps): JSX.Element;
15
+ declare function _FAQGroup({ children, id, defaultSelectedIndex, tabAttributes, ...rest }: FAQGroupProps): import("react/jsx-runtime").JSX.Element;
16
16
  /**
17
17
  * FAQGroup component:
18
18
  * {@link https://primer.style/brand/components/FAQ#grouped-faqs See usage examples}.
@@ -10,7 +10,7 @@ type FootnotesProps = {
10
10
  as?: (typeof FootnotesTags)[number];
11
11
  visuallyHiddenHeading?: string;
12
12
  } & FootnotesRestrictedPolymorphism;
13
- declare function Root({ as, className, children, visuallyHiddenHeading, ...rest }: FootnotesProps): JSX.Element;
13
+ declare function Root({ as, className, children, visuallyHiddenHeading, ...rest }: FootnotesProps): import("react/jsx-runtime").JSX.Element;
14
14
  export declare const FootnotesItemTags: readonly ["a", "p"];
15
15
  type DefaultFootnotesItemProps = {
16
16
  _variant?: 'disclaimer';
@@ -20,7 +20,7 @@ type CitationFootnotesItemProps = {
20
20
  href?: string;
21
21
  };
22
22
  type FootnotesItemProps = (DefaultFootnotesItemProps | CitationFootnotesItemProps) & React.HTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLParagraphElement>;
23
- declare function Item({ className, children, _variant, ...rest }: FootnotesItemProps): JSX.Element;
23
+ declare function Item({ className, children, _variant, ...rest }: FootnotesItemProps): import("react/jsx-runtime").JSX.Element;
24
24
  /**
25
25
  * Footnotes component
26
26
  * {@link https://primer.style/brand/components/Footnotes/ See usage examples}.
@@ -22,4 +22,4 @@ export type FrostedGlassVFXProps = BaseProps<HTMLDivElement> & React.HTMLAttribu
22
22
  * FrostedGlassVFX component
23
23
  * {@link https://primer.style/brand/components/FrostedGlassVFX/ See usage examples}.
24
24
  */
25
- export declare function FrostedGlassVFX({ hasBorderRadius, children, className, intensity, ...rest }: FrostedGlassVFXProps): JSX.Element;
25
+ export declare function FrostedGlassVFX({ hasBorderRadius, children, className, intensity, ...rest }: FrostedGlassVFXProps): import("react/jsx-runtime").JSX.Element;
@@ -67,9 +67,9 @@ export declare const Grid: React.NamedExoticComponent<React.HTMLAttributes<"div"
67
67
  } & BaseProps<HTMLDivElement> & {
68
68
  children?: React.ReactNode | undefined;
69
69
  }> & {
70
- readonly type: ({ className, children, as, fullWidth, enableOverlay, ["data-testid"]: testId, ...rest }: PropsWithChildren<GridProps>) => JSX.Element;
70
+ readonly type: ({ className, children, as, fullWidth, enableOverlay, ["data-testid"]: testId, ...rest }: PropsWithChildren<GridProps>) => import("react/jsx-runtime").JSX.Element;
71
71
  } & {
72
- Column: React.MemoExoticComponent<({ children, as, span, start, className, ...rest }: PropsWithChildren<GridColumnProps>) => JSX.Element>;
72
+ Column: React.MemoExoticComponent<({ children, as, span, start, className, ...rest }: PropsWithChildren<GridColumnProps>) => import("react/jsx-runtime").JSX.Element>;
73
73
  testIds: {
74
74
  root: string;
75
75
  };
@@ -43,5 +43,5 @@ export type HeadingProps = {
43
43
  letterSpacing?: HeadingLetterSpacingVariants | ResponsiveLetterSpacingMap;
44
44
  font?: HeadingFontVariants;
45
45
  } & React.HTMLAttributes<HTMLHeadingElement> & BaseProps<HTMLHeadingElement>;
46
- export declare const Heading: React.ForwardRefExoticComponent<Omit<HeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
46
+ export declare const Heading: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<HeadingProps>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
47
47
  export {};
package/lib/IDE/IDE.d.ts CHANGED
@@ -50,6 +50,40 @@ export type IDEChatMessage = {
50
50
  codeSnippet?: string;
51
51
  highlighter?: 'hljs';
52
52
  } & (IDEChatMessageUser | IDEChatMessageAssistant);
53
+ type IDEEditorProps = {
54
+ /**
55
+ * The index of the active tab.
56
+ */
57
+ activeTab?: number;
58
+ /**
59
+ * An array of IDE editor files.
60
+ */
61
+ files: IDEEditorFile[];
62
+ /**
63
+ * Determines whether line numbers should be shown in the editor.
64
+ */
65
+ showLineNumbers?: boolean;
66
+ /**
67
+ * Controls the size of the editor text.
68
+ */
69
+ size?: 'small' | 'medium' | 'large';
70
+ /**
71
+ * Used for triggering animation externally.
72
+ */
73
+ triggerAnimation?: boolean;
74
+ /**
75
+ * Determines whether the replay button should be shown.
76
+ */
77
+ showReplayButton?: boolean;
78
+ /**
79
+ * Test id for the IDE.
80
+ */
81
+ 'data-testid'?: string;
82
+ /**
83
+ * Enable user customisation of the icons used in file tabs.
84
+ */
85
+ tabIcons?: IDEEditorTabIcon;
86
+ } & BaseProps<HTMLDivElement>;
53
87
  export type IDEEditorFile = {
54
88
  name: string;
55
89
  /**
@@ -86,7 +120,7 @@ export declare const IDE: React.NamedExoticComponent<{
86
120
  } & BaseProps<HTMLDivElement> & {
87
121
  children?: React.ReactNode | undefined;
88
122
  }> & {
89
- readonly type: ({ children, className, "data-testid": testId, height, variant, ...rest }: PropsWithChildren<IDEProps>) => JSX.Element;
123
+ readonly type: ({ children, className, "data-testid": testId, height, variant, ...rest }: PropsWithChildren<IDEProps>) => import("react/jsx-runtime").JSX.Element;
90
124
  } & {
91
125
  testIds: {
92
126
  root: string;
@@ -95,40 +129,7 @@ export declare const IDE: React.NamedExoticComponent<{
95
129
  readonly editorContent: string;
96
130
  readonly editorTabs: string;
97
131
  };
98
- Chat: React.MemoExoticComponent<({ "data-testid": testId, script, animationDelay, alternativeText, ...rest }: IDEChatProps) => JSX.Element>;
99
- Editor: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<{
100
- /**
101
- * The index of the active tab.
102
- */
103
- activeTab?: number;
104
- /**
105
- * An array of IDE editor files.
106
- */
107
- files: IDEEditorFile[];
108
- /**
109
- * Determines whether line numbers should be shown in the editor.
110
- */
111
- showLineNumbers?: boolean;
112
- /**
113
- * Controls the size of the editor text.
114
- */
115
- size?: "small" | "medium" | "large";
116
- /**
117
- * Used for triggering animation externally.
118
- */
119
- triggerAnimation?: boolean;
120
- /**
121
- * Determines whether the replay button should be shown.
122
- */
123
- showReplayButton?: boolean;
124
- /**
125
- * Test id for the IDE.
126
- */
127
- 'data-testid'?: string;
128
- /**
129
- * Enable user customisation of the icons used in file tabs.
130
- */
131
- tabIcons?: IDEEditorTabIcon;
132
- } & BaseProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
132
+ Chat: React.MemoExoticComponent<({ "data-testid": testId, script, animationDelay, alternativeText, ...rest }: IDEChatProps) => import("react/jsx-runtime").JSX.Element>;
133
+ Editor: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IDEEditorProps, "ref"> & React.RefAttributes<HTMLDivElement>>>;
133
134
  };
134
135
  export {};
@@ -19,4 +19,4 @@ export type IconProps = SVGAttributes<SVGElement> & {
19
19
  hasBackground?: boolean;
20
20
  size?: IconSize;
21
21
  };
22
- export declare const Icon: ({ icon: Octicon, className, color, hasBackground, size, ...rest }: IconProps) => JSX.Element;
22
+ export declare const Icon: ({ icon: Octicon, className, color, hasBackground, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -21,4 +21,4 @@ export type ImageProps = React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<H
21
21
  }[];
22
22
  srcSet?: undefined;
23
23
  });
24
- export declare const Image: ({ animate, aspectRatio, className, as, ref, alt, width, height, media, srcSet, style, borderRadius, ...rest }: ImageProps) => JSX.Element;
24
+ export declare const Image: ({ animate, aspectRatio, className, as, ref, alt, width, height, media, srcSet, style, borderRadius, ...rest }: ImageProps) => import("react/jsx-runtime").JSX.Element;
@@ -14,4 +14,4 @@ export type InlineLinkProps = BaseProps<HTMLAnchorElement> & {
14
14
  /**
15
15
  * A HTML anchor link component that renders inline with adjacent text.
16
16
  */
17
- export declare const InlineLink: React.ForwardRefExoticComponent<Omit<InlineLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
17
+ export declare const InlineLink: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<InlineLinkProps>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
@@ -4,6 +4,7 @@ import type { BaseProps } from '../component-helpers';
4
4
  * Design tokens
5
5
  */
6
6
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css';
7
+ import { Icon } from '@primer/octicons-react';
7
8
  export declare const LabelColors: readonly ["default", "blue", "coral", "green", "gray", "indigo", "lemon", "lime", "orange", "pink", "purple", "red", "teal", "yellow", "blue-purple", "green-blue", "pink-blue", "purple-red", "red-orange"];
8
9
  export declare const LabelSizes: readonly ["medium", "large"];
9
10
  export declare const defaultLabelColor: "default";
@@ -12,7 +13,7 @@ export type LabelProps = BaseProps<HTMLSpanElement> & {
12
13
  /**
13
14
  * The leading visual appears before the Label content
14
15
  */
15
- leadingVisual?: React.ReactNode;
16
+ leadingVisual?: React.ReactNode | Icon;
16
17
  /**
17
18
  * The color variations available in Label
18
19
  */