@primer/react-brand 0.75.0-rc.a3f7dbd6 → 0.75.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 (940) hide show
  1. package/docs/components/SubdomainNavBar/index.md +215 -86
  2. package/docs/index.md +2 -2
  3. package/esm/Accordion/Accordion.d.ts +2 -2
  4. package/esm/Accordion/Accordion.d.ts.map +1 -1
  5. package/esm/Accordion/Accordion.js +2 -2
  6. package/esm/Accordion/Accordion.js.map +1 -1
  7. package/esm/Accordion/Accordion.module.js +6 -5
  8. package/esm/ActionMenu/ActionMenu.d.ts +2 -2
  9. package/esm/ActionMenu/ActionMenu.js +3 -2
  10. package/esm/ActionMenu/ActionMenu.js.map +1 -1
  11. package/esm/ActionMenu/ActionMenu.module.js +7 -6
  12. package/esm/AnchorNav/AnchorNav.d.ts +4 -4
  13. package/esm/AnchorNav/AnchorNav.d.ts.map +1 -1
  14. package/esm/AnchorNav/AnchorNav.js +9 -4
  15. package/esm/AnchorNav/AnchorNav.js.map +1 -1
  16. package/esm/AnchorNav/AnchorNav.module.js +5 -4
  17. package/esm/AnchorNav/useExpandedMenu.js.map +1 -1
  18. package/esm/Avatar/Avatar.js +1 -1
  19. package/esm/Avatar/Avatar.js.map +1 -1
  20. package/esm/Avatar/Avatar.module.js +5 -4
  21. package/esm/Bento/Bento.d.ts +4 -4
  22. package/esm/Bento/Bento.js +1 -1
  23. package/esm/Bento/Bento.js.map +1 -1
  24. package/esm/Bento/Bento.module.js +7 -6
  25. package/esm/Box/Box.d.ts +1 -1
  26. package/esm/Box/Box.d.ts.map +1 -1
  27. package/esm/Box/Box.js +1 -1
  28. package/esm/Box/Box.js.map +1 -1
  29. package/esm/Breadcrumbs/Breadcrumbs.js +1 -1
  30. package/esm/Breadcrumbs/Breadcrumbs.js.map +1 -1
  31. package/esm/Breadcrumbs/Breadcrumbs.module.js +7 -6
  32. package/esm/BreakoutBanner/BreakoutBanner.js +1 -1
  33. package/esm/BreakoutBanner/BreakoutBanner.js.map +1 -1
  34. package/esm/BreakoutBanner/BreakoutBanner.module.js +5 -4
  35. package/esm/Button/Button.js +1 -1
  36. package/esm/Button/Button.js.map +1 -1
  37. package/esm/Button/Button.module.js +5 -4
  38. package/esm/ButtonGroup/ButtonGroup.js +1 -1
  39. package/esm/ButtonGroup/ButtonGroup.js.map +1 -1
  40. package/esm/ButtonGroup/ButtonGroup.module.js +3 -2
  41. package/esm/CTABanner/CTABanner.d.ts +1 -1
  42. package/esm/CTABanner/CTABanner.js +2 -2
  43. package/esm/CTABanner/CTABanner.js.map +1 -1
  44. package/esm/CTABanner/CTABanner.module.js +4 -3
  45. package/esm/CTAForm/CTAForm.js +1 -1
  46. package/esm/CTAForm/CTAForm.js.map +1 -1
  47. package/esm/CTAForm/CTAForm.module.js +4 -3
  48. package/esm/Card/Card.d.ts +2 -2
  49. package/esm/Card/Card.d.ts.map +1 -1
  50. package/esm/Card/Card.js +3 -3
  51. package/esm/Card/Card.js.map +1 -1
  52. package/esm/Card/Card.module.js +18 -17
  53. package/esm/ComparisonTable/ComparisonTable.d.ts +3 -3
  54. package/esm/ComparisonTable/ComparisonTable.js +1 -1
  55. package/esm/ComparisonTable/ComparisonTable.js.map +1 -1
  56. package/esm/ComparisonTable/ComparisonTable.module.js +4 -3
  57. package/esm/ExpandableArrow/ExpandableArrow.d.ts +2 -1
  58. package/esm/ExpandableArrow/ExpandableArrow.d.ts.map +1 -1
  59. package/esm/ExpandableArrow/ExpandableArrow.js +1 -1
  60. package/esm/ExpandableArrow/ExpandableArrow.js.map +1 -1
  61. package/esm/ExpandableArrow/ExpandableArrow.module.js +4 -3
  62. package/esm/EyebrowBanner/EyebrowBanner.js +2 -2
  63. package/esm/EyebrowBanner/EyebrowBanner.js.map +1 -1
  64. package/esm/EyebrowBanner/EyebrowBanner.module.js +12 -11
  65. package/esm/EyebrowText/EyebrowText.js +1 -1
  66. package/esm/EyebrowText/EyebrowText.js.map +1 -1
  67. package/esm/EyebrowText/EyebrowText.module.js +4 -3
  68. package/esm/FAQ/FAQ.d.ts +2 -2
  69. package/esm/FAQ/FAQ.d.ts.map +1 -1
  70. package/esm/FAQ/FAQ.js +1 -1
  71. package/esm/FAQ/FAQ.js.map +1 -1
  72. package/esm/FAQ/FAQ.module.js +7 -6
  73. package/esm/FAQ/FAQGroup.d.ts +2 -2
  74. package/esm/FAQ/FAQGroup.d.ts.map +1 -1
  75. package/esm/FAQ/FAQGroup.js +7 -3
  76. package/esm/FAQ/FAQGroup.js.map +1 -1
  77. package/esm/FAQ/FAQGroup.module.js +8 -7
  78. package/esm/Footnotes/Footnotes.d.ts +2 -2
  79. package/esm/Footnotes/Footnotes.d.ts.map +1 -1
  80. package/esm/Footnotes/Footnotes.js +2 -2
  81. package/esm/Footnotes/Footnotes.js.map +1 -1
  82. package/esm/Footnotes/Footnotes.module.js +7 -6
  83. package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
  84. package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts.map +1 -1
  85. package/esm/FrostedGlassVFX/FrostedGlassVFX.js +1 -1
  86. package/esm/FrostedGlassVFX/FrostedGlassVFX.js.map +1 -1
  87. package/esm/FrostedGlassVFX/FrostedGlassVFX.module.js +4 -3
  88. package/esm/Grid/Grid.d.ts +2 -2
  89. package/esm/Grid/Grid.js +2 -2
  90. package/esm/Grid/Grid.js.map +1 -1
  91. package/esm/Grid/Grid.module.js +5 -4
  92. package/esm/Heading/Heading.js +1 -1
  93. package/esm/Heading/Heading.js.map +1 -1
  94. package/esm/Heading/Heading.module.js +4 -3
  95. package/esm/Hero/Hero.js +1 -1
  96. package/esm/Hero/Hero.js.map +1 -1
  97. package/esm/Hero/Hero.module.js +4 -3
  98. package/esm/Hero/HeroContext.js.map +1 -1
  99. package/esm/Hero/sub-components/HeroButtonGroup.js +1 -1
  100. package/esm/Hero/sub-components/HeroButtonGroup.js.map +1 -1
  101. package/esm/Hero/sub-components/HeroDescription.js +1 -1
  102. package/esm/Hero/sub-components/HeroDescription.js.map +1 -1
  103. package/esm/Hero/sub-components/HeroEyebrow.js +1 -1
  104. package/esm/Hero/sub-components/HeroEyebrow.js.map +1 -1
  105. package/esm/Hero/sub-components/HeroHeading.js +1 -1
  106. package/esm/Hero/sub-components/HeroHeading.js.map +1 -1
  107. package/esm/Hero/sub-components/HeroImage.js +1 -1
  108. package/esm/Hero/sub-components/HeroImage.js.map +1 -1
  109. package/esm/Hero/sub-components/HeroLabel.js +1 -1
  110. package/esm/Hero/sub-components/HeroLabel.js.map +1 -1
  111. package/esm/Hero/sub-components/HeroPrimaryAction.js.map +1 -1
  112. package/esm/Hero/sub-components/HeroSecondaryAction.js.map +1 -1
  113. package/esm/Hero/sub-components/HeroVideo.js +2 -2
  114. package/esm/Hero/sub-components/HeroVideo.js.map +1 -1
  115. package/esm/IDE/IDE.d.ts +1 -1
  116. package/esm/IDE/IDE.js +3 -2
  117. package/esm/IDE/IDE.js.map +1 -1
  118. package/esm/IDE/IDE.module.js +8 -7
  119. package/esm/Icon/Icon.d.ts +2 -2
  120. package/esm/Icon/Icon.d.ts.map +1 -1
  121. package/esm/Icon/Icon.js +2 -2
  122. package/esm/Icon/Icon.js.map +1 -1
  123. package/esm/Icon/Icon.module.js +4 -3
  124. package/esm/Image/Image.d.ts +1 -1
  125. package/esm/Image/Image.d.ts.map +1 -1
  126. package/esm/Image/Image.js +1 -1
  127. package/esm/Image/Image.js.map +1 -1
  128. package/esm/Image/Image.module.js +5 -4
  129. package/esm/InlineCode/InlineCode.js +1 -1
  130. package/esm/InlineCode/InlineCode.js.map +1 -1
  131. package/esm/InlineCode/InlineCode.module.js +5 -4
  132. package/esm/InlineLink/InlineLink.js +2 -2
  133. package/esm/InlineLink/InlineLink.js.map +1 -1
  134. package/esm/InlineLink/InlineLink.module.js +3 -2
  135. package/esm/Label/Label.js +1 -1
  136. package/esm/Label/Label.js.map +1 -1
  137. package/esm/Label/Label.module.js +6 -5
  138. package/esm/Link/Link.d.ts +1 -1
  139. package/esm/Link/Link.d.ts.map +1 -1
  140. package/esm/Link/Link.js +2 -2
  141. package/esm/Link/Link.js.map +1 -1
  142. package/esm/Link/Link.module.js +4 -3
  143. package/esm/LogoSuite/LogoSuite.d.ts +1 -1
  144. package/esm/LogoSuite/LogoSuite.js +4 -3
  145. package/esm/LogoSuite/LogoSuite.js.map +1 -1
  146. package/esm/LogoSuite/LogoSuite.module.js +11 -10
  147. package/esm/MediaPlaylist/MediaPlaylist.d.ts +4 -4
  148. package/esm/MediaPlaylist/MediaPlaylist.d.ts.map +1 -1
  149. package/esm/MediaPlaylist/MediaPlaylist.js +1 -1
  150. package/esm/MediaPlaylist/MediaPlaylist.js.map +1 -1
  151. package/esm/MediaPlaylist/MediaPlaylist.module.js +25 -24
  152. package/esm/MediaPlaylist/useMediaPlaylist.js.map +1 -1
  153. package/esm/MinimalFooter/MinimalFooter.d.ts +3 -3
  154. package/esm/MinimalFooter/MinimalFooter.d.ts.map +1 -1
  155. package/esm/MinimalFooter/MinimalFooter.js +4 -3
  156. package/esm/MinimalFooter/MinimalFooter.js.map +1 -1
  157. package/esm/MinimalFooter/MinimalFooter.module.js +15 -14
  158. package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js +2 -2
  159. package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js.map +1 -1
  160. package/esm/MinimalVideoPlayer/MinimalVideoPlayer.module.js +6 -5
  161. package/esm/MinimalVideoPlayer/useMinimalVideoPlayback.js.map +1 -1
  162. package/esm/NavList/NavList.js +2 -2
  163. package/esm/NavList/NavList.js.map +1 -1
  164. package/esm/NavList/NavList.module.js +18 -17
  165. package/esm/Pagination/Pagination.d.ts +1 -1
  166. package/esm/Pagination/Pagination.d.ts.map +1 -1
  167. package/esm/Pagination/Pagination.js +1 -1
  168. package/esm/Pagination/Pagination.js.map +1 -1
  169. package/esm/Pagination/Pagination.module.js +11 -10
  170. package/esm/Pagination/model.js.map +1 -1
  171. package/esm/Pillar/Pillar.d.ts +2 -2
  172. package/esm/Pillar/Pillar.d.ts.map +1 -1
  173. package/esm/Pillar/Pillar.js +1 -1
  174. package/esm/Pillar/Pillar.js.map +1 -1
  175. package/esm/Pillar/Pillar.module.js +9 -8
  176. package/esm/PricingOptions/PricingOptions.d.ts +1 -1
  177. package/esm/PricingOptions/PricingOptions.js +5 -3
  178. package/esm/PricingOptions/PricingOptions.js.map +1 -1
  179. package/esm/PricingOptions/PricingOptions.module.js +13 -12
  180. package/esm/Prose/Prose.js +1 -1
  181. package/esm/Prose/Prose.js.map +1 -1
  182. package/esm/Prose/Prose.module.js +4 -3
  183. package/esm/Section/Section.js +1 -1
  184. package/esm/Section/Section.js.map +1 -1
  185. package/esm/Section/Section.module.js +5 -4
  186. package/esm/SectionIntro/SectionIntro.js +1 -1
  187. package/esm/SectionIntro/SectionIntro.js.map +1 -1
  188. package/esm/SectionIntro/SectionIntro.module.js +4 -3
  189. package/esm/SectionIntroStacked/SectionIntroStacked.d.ts +3 -3
  190. package/esm/SectionIntroStacked/SectionIntroStacked.js +1 -1
  191. package/esm/SectionIntroStacked/SectionIntroStacked.js.map +1 -1
  192. package/esm/SectionIntroStacked/SectionIntroStacked.module.js +6 -5
  193. package/esm/Stack/Stack.js +1 -1
  194. package/esm/Stack/Stack.js.map +1 -1
  195. package/esm/Stack/Stack.module.js +4 -3
  196. package/esm/Statistic/Statistic.js +1 -1
  197. package/esm/Statistic/Statistic.js.map +1 -1
  198. package/esm/Statistic/Statistic.module.js +6 -5
  199. package/esm/SubNav/SubNav.d.ts +4 -4
  200. package/esm/SubNav/SubNav.d.ts.map +1 -1
  201. package/esm/SubNav/SubNav.js +6 -4
  202. package/esm/SubNav/SubNav.js.map +1 -1
  203. package/esm/SubNav/SubNav.module.js +9 -8
  204. package/esm/SubNav/useContainsFocus.js.map +1 -1
  205. package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts +3 -1
  206. package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts.map +1 -1
  207. package/esm/SubdomainNavBar/NavigationVisbilityObserver.js +117 -64
  208. package/esm/SubdomainNavBar/NavigationVisbilityObserver.js.map +1 -1
  209. package/esm/SubdomainNavBar/SubdomainNavBar.d.ts +157 -20
  210. package/esm/SubdomainNavBar/SubdomainNavBar.d.ts.map +1 -1
  211. package/esm/SubdomainNavBar/SubdomainNavBar.js +479 -299
  212. package/esm/SubdomainNavBar/SubdomainNavBar.js.map +1 -1
  213. package/esm/SubdomainNavBar/SubdomainNavBar.module-WIrpYyjV.css +1 -0
  214. package/esm/SubdomainNavBar/SubdomainNavBar.module.js +36 -11
  215. package/esm/SubdomainNavBar/SubdomainNavBar.module.js.map +1 -1
  216. package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts +9 -0
  217. package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts.map +1 -0
  218. package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.js +10 -0
  219. package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.js.map +1 -0
  220. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.d.ts +8 -0
  221. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.d.ts.map +1 -0
  222. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js +52 -0
  223. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js.map +1 -0
  224. package/esm/SubdomainNavBar/useSearchResults.d.ts +24 -0
  225. package/esm/SubdomainNavBar/useSearchResults.d.ts.map +1 -0
  226. package/esm/SubdomainNavBar/useSearchResults.js +57 -0
  227. package/esm/SubdomainNavBar/useSearchResults.js.map +1 -0
  228. package/esm/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
  229. package/esm/SubdomainNavBar/useVisibilityObserver.d.ts.map +1 -1
  230. package/esm/SubdomainNavBar/useVisibilityObserver.js +60 -23
  231. package/esm/SubdomainNavBar/useVisibilityObserver.js.map +1 -1
  232. package/esm/Tabs/Tabs.js +3 -2
  233. package/esm/Tabs/Tabs.js.map +1 -1
  234. package/esm/Tabs/Tabs.module.js +12 -11
  235. package/esm/Testimonial/Testimonial.d.ts +1 -1
  236. package/esm/Testimonial/Testimonial.d.ts.map +1 -1
  237. package/esm/Testimonial/Testimonial.js +1 -1
  238. package/esm/Testimonial/Testimonial.js.map +1 -1
  239. package/esm/Testimonial/Testimonial.module.js +8 -7
  240. package/esm/Text/Text.d.ts +1 -1
  241. package/esm/Text/Text.d.ts.map +1 -1
  242. package/esm/Text/Text.js +1 -1
  243. package/esm/Text/Text.js.map +1 -1
  244. package/esm/Text/Text.module.js +4 -3
  245. package/esm/TextCursorAnimation/TextCursorAnimation.d.ts +1 -1
  246. package/esm/TextCursorAnimation/TextCursorAnimation.d.ts.map +1 -1
  247. package/esm/TextCursorAnimation/TextCursorAnimation.js +1 -1
  248. package/esm/TextCursorAnimation/TextCursorAnimation.js.map +1 -1
  249. package/esm/TextCursorAnimation/TextCursorAnimation.module.js +10 -9
  250. package/esm/ThemeProvider/ThemeProvider.d.ts +1 -1
  251. package/esm/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  252. package/esm/ThemeProvider/ThemeProvider.js +4 -4
  253. package/esm/ThemeProvider/ThemeProvider.js.map +1 -1
  254. package/esm/ThemeProvider/useTheme.js.map +1 -1
  255. package/esm/Tiles/Tiles.js +2 -2
  256. package/esm/Tiles/Tiles.js.map +1 -1
  257. package/esm/Tiles/Tiles.module.js +4 -3
  258. package/esm/Timeline/Timeline.d.ts +3 -3
  259. package/esm/Timeline/Timeline.d.ts.map +1 -1
  260. package/esm/Timeline/Timeline.js +2 -2
  261. package/esm/Timeline/Timeline.js.map +1 -1
  262. package/esm/Timeline/Timeline.module.js +5 -4
  263. package/esm/Token/Token.js +1 -1
  264. package/esm/Token/Token.js.map +1 -1
  265. package/esm/Token/Token.module.js +6 -5
  266. package/esm/Tooltip/Tooltip.js +2 -2
  267. package/esm/Tooltip/Tooltip.js.map +1 -1
  268. package/esm/Tooltip/Tooltip.module.js +4 -3
  269. package/esm/VideoPlayer/VideoPlayer.d.ts +2 -2
  270. package/esm/VideoPlayer/VideoPlayer.js +2 -2
  271. package/esm/VideoPlayer/VideoPlayer.js.map +1 -1
  272. package/esm/VideoPlayer/VideoPlayer.module.js +29 -28
  273. package/esm/VideoPlayer/components/CCButton/CCButton.d.ts +2 -2
  274. package/esm/VideoPlayer/components/CCButton/CCButton.d.ts.map +1 -1
  275. package/esm/VideoPlayer/components/CCButton/CCButton.js +1 -1
  276. package/esm/VideoPlayer/components/CCButton/CCButton.js.map +1 -1
  277. package/esm/VideoPlayer/components/Captions/Captions.d.ts +2 -2
  278. package/esm/VideoPlayer/components/Captions/Captions.d.ts.map +1 -1
  279. package/esm/VideoPlayer/components/Captions/Captions.js +1 -1
  280. package/esm/VideoPlayer/components/Captions/Captions.js.map +1 -1
  281. package/esm/VideoPlayer/components/Captions/Captions.module.js +5 -4
  282. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +2 -2
  283. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts.map +1 -1
  284. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js +1 -1
  285. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js.map +1 -1
  286. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +2 -2
  287. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts.map +1 -1
  288. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js +2 -1
  289. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js.map +1 -1
  290. package/esm/VideoPlayer/components/IconControl/IconControl.d.ts +2 -2
  291. package/esm/VideoPlayer/components/IconControl/IconControl.d.ts.map +1 -1
  292. package/esm/VideoPlayer/components/IconControl/IconControl.js +1 -1
  293. package/esm/VideoPlayer/components/IconControl/IconControl.js.map +1 -1
  294. package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts +2 -2
  295. package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts.map +1 -1
  296. package/esm/VideoPlayer/components/MuteButton/MuteButton.js +2 -1
  297. package/esm/VideoPlayer/components/MuteButton/MuteButton.js.map +1 -1
  298. package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +2 -2
  299. package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts.map +1 -1
  300. package/esm/VideoPlayer/components/PauseIcon/PauseIcon.js.map +1 -1
  301. package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +2 -2
  302. package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts.map +1 -1
  303. package/esm/VideoPlayer/components/PlayIcon/PlayIcon.js.map +1 -1
  304. package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +2 -2
  305. package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts.map +1 -1
  306. package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.js.map +1 -1
  307. package/esm/VideoPlayer/components/Range/Range.d.ts +1 -1
  308. package/esm/VideoPlayer/components/Range/Range.d.ts.map +1 -1
  309. package/esm/VideoPlayer/components/Range/Range.js +1 -1
  310. package/esm/VideoPlayer/components/Range/Range.js.map +1 -1
  311. package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts +2 -2
  312. package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts.map +1 -1
  313. package/esm/VideoPlayer/components/SeekControl/SeekControl.js +1 -1
  314. package/esm/VideoPlayer/components/SeekControl/SeekControl.js.map +1 -1
  315. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +2 -2
  316. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts.map +1 -1
  317. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js +3 -2
  318. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js.map +1 -1
  319. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +2 -1
  320. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts.map +1 -1
  321. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.js.map +1 -1
  322. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.module.js +3 -2
  323. package/esm/VideoPlayer/hooks/useIsElementFullScreen.js.map +1 -1
  324. package/esm/VideoPlayer/hooks/useVideo.js.map +1 -1
  325. package/esm/VideoPlayer/hooks/useVideoResizeObserver.js.map +1 -1
  326. package/esm/animation/Animate/Animate.d.ts +1 -1
  327. package/esm/animation/Animate/Animate.d.ts.map +1 -1
  328. package/esm/animation/Animate/Animate.js +1 -1
  329. package/esm/animation/Animate/Animate.js.map +1 -1
  330. package/esm/animation/Animation.module.js +4 -3
  331. package/esm/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
  332. package/esm/animation/AnimationProvider/AnimationProvider.d.ts.map +1 -1
  333. package/esm/animation/AnimationProvider/AnimationProvider.js.map +1 -1
  334. package/esm/animation/TextRevealAnimation/TextRevealAnimation.js +1 -1
  335. package/esm/animation/TextRevealAnimation/TextRevealAnimation.js.map +1 -1
  336. package/esm/animation/TextRevealAnimation/TextRevealAnimation.module.js +5 -4
  337. package/esm/animation/TextRevealAnimation/useTextRevealAnimationLines.js.map +1 -1
  338. package/esm/animation/useAnimation.js.map +1 -1
  339. package/esm/component-helpers/shared.module.js +3 -2
  340. package/esm/component-helpers.d.ts +2 -2
  341. package/esm/component-helpers.d.ts.map +1 -1
  342. package/esm/constants.js.map +1 -1
  343. package/esm/css/stylesheets.js +1 -1
  344. package/esm/findElementInChildren.js.map +1 -1
  345. package/esm/forms/Checkbox/Checkbox.js +2 -2
  346. package/esm/forms/Checkbox/Checkbox.js.map +1 -1
  347. package/esm/forms/Checkbox/Checkbox.module.js +4 -3
  348. package/esm/forms/ControlGroup/ControlGroup.js +3 -2
  349. package/esm/forms/ControlGroup/ControlGroup.js.map +1 -1
  350. package/esm/forms/ControlGroup/ControlGroup.module.js +7 -6
  351. package/esm/forms/FormControl/FormControl.d.ts +5 -5
  352. package/esm/forms/FormControl/FormControl.d.ts.map +1 -1
  353. package/esm/forms/FormControl/FormControl.js +4 -3
  354. package/esm/forms/FormControl/FormControl.js.map +1 -1
  355. package/esm/forms/FormControl/FormControl.module.js +5 -4
  356. package/esm/forms/Radio/Radio.js +1 -1
  357. package/esm/forms/Radio/Radio.js.map +1 -1
  358. package/esm/forms/Radio/Radio.module.js +4 -3
  359. package/esm/forms/Select/Select.d.ts +2 -2
  360. package/esm/forms/Select/Select.js +1 -1
  361. package/esm/forms/Select/Select.js.map +1 -1
  362. package/esm/forms/Select/Select.module.js +4 -3
  363. package/esm/forms/TextInput/TextInput.js +1 -1
  364. package/esm/forms/TextInput/TextInput.js.map +1 -1
  365. package/esm/forms/TextInput/TextInput.module.js +5 -4
  366. package/esm/forms/Textarea/Textarea.js +1 -1
  367. package/esm/forms/Textarea/Textarea.js.map +1 -1
  368. package/esm/forms/Textarea/Textarea.module.js +4 -3
  369. package/esm/hooks/useAnchoredPosition.js +7 -4
  370. package/esm/hooks/useAnchoredPosition.js.map +1 -1
  371. package/esm/hooks/useCursorAnimation.js +4 -2
  372. package/esm/hooks/useCursorAnimation.js.map +1 -1
  373. package/esm/hooks/useFocusTrap.js.map +1 -1
  374. package/esm/hooks/useId.js.map +1 -1
  375. package/esm/hooks/useKeyboardEscape.js.map +1 -1
  376. package/esm/hooks/useOnClickOutside.js.map +1 -1
  377. package/esm/hooks/useReducedMotion.js +1 -1
  378. package/esm/hooks/useReducedMotion.js.map +1 -1
  379. package/esm/hooks/useRef.js.map +1 -1
  380. package/esm/hooks/useResizeObserver.js.map +1 -1
  381. package/esm/hooks/useTabs.js +1 -1
  382. package/esm/hooks/useTabs.js.map +1 -1
  383. package/esm/hooks/useWindowSize.js +7 -7
  384. package/esm/hooks/useWindowSize.js.map +1 -1
  385. package/esm/list/ListItem/ListItem.js +4 -2
  386. package/esm/list/ListItem/ListItem.js.map +1 -1
  387. package/esm/list/ListItem/ListItem.module.js +5 -4
  388. package/esm/list/OrderedList/OrderedList.d.ts +2 -2
  389. package/esm/list/OrderedList/OrderedList.d.ts.map +1 -1
  390. package/esm/list/OrderedList/OrderedList.js +1 -1
  391. package/esm/list/OrderedList/OrderedList.js.map +1 -1
  392. package/esm/list/OrderedList/OrderedList.module.js +3 -2
  393. package/esm/list/UnorderedList/UnorderedList.d.ts +2 -2
  394. package/esm/list/UnorderedList/UnorderedList.d.ts.map +1 -1
  395. package/esm/list/UnorderedList/UnorderedList.js +1 -1
  396. package/esm/list/UnorderedList/UnorderedList.js.map +1 -1
  397. package/esm/list/list-shared.module.js +3 -2
  398. package/esm/list/listContext.js.map +1 -1
  399. package/esm/node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js +28 -0
  400. package/esm/node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js.map +1 -0
  401. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.js +20 -0
  402. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.js.map +1 -0
  403. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js +20 -0
  404. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js.map +1 -0
  405. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js +28 -0
  406. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js.map +1 -0
  407. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckIcon.js +20 -0
  408. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckIcon.js.map +1 -0
  409. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronDownIcon.js +28 -0
  410. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronDownIcon.js.map +1 -0
  411. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js +28 -0
  412. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js.map +1 -0
  413. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronRightIcon.js +28 -0
  414. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronRightIcon.js.map +1 -0
  415. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronUpIcon.js +28 -0
  416. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronUpIcon.js.map +1 -0
  417. package/esm/node_modules/@primer/octicons-react/dist/icons/CopilotIcon.js +33 -0
  418. package/esm/node_modules/@primer/octicons-react/dist/icons/CopilotIcon.js.map +1 -0
  419. package/esm/node_modules/@primer/octicons-react/dist/icons/DashIcon.js +20 -0
  420. package/esm/node_modules/@primer/octicons-react/dist/icons/DashIcon.js.map +1 -0
  421. package/esm/node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js +20 -0
  422. package/esm/node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js.map +1 -0
  423. package/esm/node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js +20 -0
  424. package/esm/node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js.map +1 -0
  425. package/esm/node_modules/@primer/octicons-react/dist/icons/MuteIcon.js +20 -0
  426. package/esm/node_modules/@primer/octicons-react/dist/icons/MuteIcon.js.map +1 -0
  427. package/esm/node_modules/@primer/octicons-react/dist/icons/PaperAirplaneIcon.js +20 -0
  428. package/esm/node_modules/@primer/octicons-react/dist/icons/PaperAirplaneIcon.js.map +1 -0
  429. package/esm/node_modules/@primer/octicons-react/dist/icons/PauseIcon.js +20 -0
  430. package/esm/node_modules/@primer/octicons-react/dist/icons/PauseIcon.js.map +1 -0
  431. package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js +20 -0
  432. package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js.map +1 -0
  433. package/esm/node_modules/@primer/octicons-react/dist/icons/ReplyIcon.js +20 -0
  434. package/esm/node_modules/@primer/octicons-react/dist/icons/ReplyIcon.js.map +1 -0
  435. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js +20 -0
  436. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js.map +1 -0
  437. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js +20 -0
  438. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js.map +1 -0
  439. package/esm/node_modules/@primer/octicons-react/dist/icons/SearchIcon.js +20 -0
  440. package/esm/node_modules/@primer/octicons-react/dist/icons/SearchIcon.js.map +1 -0
  441. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleDownIcon.js +20 -0
  442. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleDownIcon.js.map +1 -0
  443. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleUpIcon.js +20 -0
  444. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleUpIcon.js.map +1 -0
  445. package/esm/node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js +20 -0
  446. package/esm/node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js.map +1 -0
  447. package/esm/node_modules/@primer/octicons-react/dist/icons/XIcon.js +28 -0
  448. package/esm/node_modules/@primer/octicons-react/dist/icons/XIcon.js.map +1 -0
  449. package/esm/node_modules/@primer/octicons-react/dist/renderOcticon-DuMQdmQC.js +132 -0
  450. package/esm/node_modules/@primer/octicons-react/dist/renderOcticon-DuMQdmQC.js.map +1 -0
  451. package/esm/node_modules/clsx/dist/clsx.js +1 -1
  452. package/esm/node_modules/clsx/dist/clsx.js.map +1 -1
  453. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-BGj0AiDW.css +1 -0
  454. package/esm/river/River/River.js +2 -2
  455. package/esm/river/River/River.js.map +1 -1
  456. package/esm/river/RiverAccordion/RiverAccordion.d.ts +4 -4
  457. package/esm/river/RiverAccordion/RiverAccordion.js +3 -2
  458. package/esm/river/RiverAccordion/RiverAccordion.js.map +1 -1
  459. package/esm/river/RiverAccordion/RiverAccordion.module.js +16 -15
  460. package/esm/river/RiverBreakout/RiverBreakout.d.ts +1 -1
  461. package/esm/river/RiverBreakout/RiverBreakout.js +1 -1
  462. package/esm/river/RiverBreakout/RiverBreakout.js.map +1 -1
  463. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +5 -5
  464. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js +2 -2
  465. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js.map +1 -1
  466. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js +31 -30
  467. package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
  468. package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts.map +1 -1
  469. package/esm/river/RiverStoryScroll/RiverStoryScroll.js +5 -3
  470. package/esm/river/RiverStoryScroll/RiverStoryScroll.js.map +1 -1
  471. package/esm/river/RiverStoryScroll/RiverStoryScroll.module.js +8 -7
  472. package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +2 -2
  473. package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts.map +1 -1
  474. package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.js.map +1 -1
  475. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
  476. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts.map +1 -1
  477. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js +1 -1
  478. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js.map +1 -1
  479. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
  480. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts.map +1 -1
  481. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js +1 -1
  482. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js.map +1 -1
  483. package/esm/river/river-shared.module.js +13 -12
  484. package/esm/utils/getTextContent.js.map +1 -1
  485. package/esm/utils/isFragmentElement.js.map +1 -1
  486. package/lib/Accordion/Accordion.d.ts +2 -2
  487. package/lib/ActionMenu/ActionMenu.d.ts +2 -2
  488. package/lib/AnchorNav/AnchorNav.d.ts +4 -4
  489. package/lib/Bento/Bento.d.ts +4 -4
  490. package/lib/Box/Box.d.ts +1 -1
  491. package/lib/CTABanner/CTABanner.d.ts +1 -1
  492. package/lib/Card/Card.d.ts +2 -2
  493. package/lib/ComparisonTable/ComparisonTable.d.ts +3 -3
  494. package/lib/ExpandableArrow/ExpandableArrow.d.ts +2 -1
  495. package/lib/FAQ/FAQ.d.ts +2 -2
  496. package/lib/FAQ/FAQGroup.d.ts +2 -2
  497. package/lib/Footnotes/Footnotes.d.ts +2 -2
  498. package/lib/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
  499. package/lib/Grid/Grid.d.ts +2 -2
  500. package/lib/IDE/IDE.d.ts +1 -1
  501. package/lib/Icon/Icon.d.ts +2 -2
  502. package/lib/Image/Image.d.ts +1 -1
  503. package/lib/Link/Link.d.ts +1 -1
  504. package/lib/LogoSuite/LogoSuite.d.ts +1 -1
  505. package/lib/MediaPlaylist/MediaPlaylist.d.ts +4 -4
  506. package/lib/MinimalFooter/MinimalFooter.d.ts +3 -3
  507. package/lib/Pagination/Pagination.d.ts +1 -1
  508. package/lib/Pillar/Pillar.d.ts +2 -2
  509. package/lib/PricingOptions/PricingOptions.d.ts +1 -1
  510. package/lib/SectionIntroStacked/SectionIntroStacked.d.ts +3 -3
  511. package/lib/SubNav/SubNav.d.ts +4 -4
  512. package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +3 -1
  513. package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +157 -20
  514. package/lib/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts +8 -0
  515. package/lib/SubdomainNavBar/useSearchKeyboardShortcut.d.ts +7 -0
  516. package/lib/SubdomainNavBar/useSearchResults.d.ts +23 -0
  517. package/lib/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
  518. package/lib/Testimonial/Testimonial.d.ts +1 -1
  519. package/lib/Text/Text.d.ts +1 -1
  520. package/lib/TextCursorAnimation/TextCursorAnimation.d.ts +1 -1
  521. package/lib/ThemeProvider/ThemeProvider.d.ts +1 -1
  522. package/lib/Timeline/Timeline.d.ts +3 -3
  523. package/lib/VideoPlayer/VideoPlayer.d.ts +2 -2
  524. package/lib/VideoPlayer/components/CCButton/CCButton.d.ts +2 -2
  525. package/lib/VideoPlayer/components/Captions/Captions.d.ts +2 -2
  526. package/lib/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +2 -2
  527. package/lib/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +2 -2
  528. package/lib/VideoPlayer/components/IconControl/IconControl.d.ts +2 -2
  529. package/lib/VideoPlayer/components/MuteButton/MuteButton.d.ts +2 -2
  530. package/lib/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +2 -2
  531. package/lib/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +2 -2
  532. package/lib/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +2 -2
  533. package/lib/VideoPlayer/components/Range/Range.d.ts +1 -1
  534. package/lib/VideoPlayer/components/SeekControl/SeekControl.d.ts +2 -2
  535. package/lib/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +2 -2
  536. package/lib/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +2 -1
  537. package/lib/animation/Animate/Animate.d.ts +1 -1
  538. package/lib/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
  539. package/lib/component-helpers.d.ts +2 -2
  540. package/lib/css/main.css +1390 -1056
  541. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  542. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  543. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  544. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  545. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  546. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  547. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  548. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  549. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  550. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  551. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  552. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  553. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  554. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  555. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  556. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  557. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  558. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  559. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  560. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  561. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  562. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  563. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  564. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  565. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  566. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  567. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  568. package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
  569. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  570. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  571. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  572. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  573. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  574. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  575. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  576. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  577. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  578. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  579. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  580. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  581. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  582. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
  583. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
  584. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  585. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  586. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  587. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  588. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  589. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  590. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  591. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  592. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  593. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  594. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  595. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  596. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
  597. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  598. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  599. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  600. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  601. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  602. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  603. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  604. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  605. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  606. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  607. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  608. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  609. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +7 -1
  610. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  611. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  612. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  613. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  614. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  615. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  616. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
  617. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  618. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  619. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  620. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  621. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  622. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  623. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  624. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  625. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  626. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  627. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  628. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  629. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  630. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  631. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  632. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  633. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  634. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  635. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  636. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  637. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  638. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  639. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  640. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  641. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  642. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  643. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  644. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  645. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  646. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  647. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  648. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  649. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  650. package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
  651. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  652. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  653. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  654. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  655. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  656. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  657. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  658. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  659. package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
  660. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  661. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  662. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  663. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  664. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  665. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  666. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  667. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  668. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  669. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  670. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  671. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  672. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  673. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  674. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  675. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  676. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  677. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  678. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  679. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
  680. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  681. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  682. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  683. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  684. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  685. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  686. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  687. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  688. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  689. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  690. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  691. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  692. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  693. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  694. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  695. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  696. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  697. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  698. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  699. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  700. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  701. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  702. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  703. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  704. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  705. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  706. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  707. package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
  708. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  709. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  710. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  711. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  712. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  713. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  714. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  715. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  716. package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
  717. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  718. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  719. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  720. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  721. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  722. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  723. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  724. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  725. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  726. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  727. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  728. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  729. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  730. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  731. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  732. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  733. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  734. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  735. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  736. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
  737. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  738. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  739. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  740. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  741. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  742. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  743. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  744. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  745. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  746. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  747. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  748. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  749. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  750. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  751. package/lib/design-tokens/json/colors.json +3 -0
  752. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  753. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  754. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  755. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  756. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  757. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  758. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  759. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  760. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  761. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  762. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  763. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  764. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  765. package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
  766. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  767. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  768. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  769. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  770. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  771. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  772. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  773. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  774. package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
  775. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  776. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  777. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  778. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  779. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  780. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  781. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  782. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  783. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  784. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  785. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  786. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  787. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  788. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  789. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  790. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  791. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  792. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  793. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  794. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
  795. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  796. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  797. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  798. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  799. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  800. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  801. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  802. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  803. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  804. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  805. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  806. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  807. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  808. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  809. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  810. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  811. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  812. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  813. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  814. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  815. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  816. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  817. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  818. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  819. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  820. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  821. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  822. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  823. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  824. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  825. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  826. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  827. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  828. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  829. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  830. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  831. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  832. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  833. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  834. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  835. package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
  836. package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
  837. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  838. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  839. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  840. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  841. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  842. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  843. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  844. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  845. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  846. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  847. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  848. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  849. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  850. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  851. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  852. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  853. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
  854. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
  855. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  856. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  857. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  858. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  859. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  860. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  861. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  862. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  863. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  864. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  865. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  866. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  867. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  868. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  869. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  870. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  871. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  872. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  873. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  874. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  875. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  876. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  877. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  878. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  879. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  880. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  881. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  882. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  883. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  884. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  885. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  886. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  887. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  888. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  889. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  890. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  891. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  892. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  893. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
  894. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
  895. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  896. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  897. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  898. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  899. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  900. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  901. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  902. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  903. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  904. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  905. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  906. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  907. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  908. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  909. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  910. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  911. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  912. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  913. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  914. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  915. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  916. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  917. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  918. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  919. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  920. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  921. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  922. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  923. package/lib/forms/FormControl/FormControl.d.ts +5 -5
  924. package/lib/forms/Select/Select.d.ts +2 -2
  925. package/lib/index.js +1 -1
  926. package/lib/list/OrderedList/OrderedList.d.ts +2 -2
  927. package/lib/list/UnorderedList/UnorderedList.d.ts +2 -2
  928. package/lib/river/RiverAccordion/RiverAccordion.d.ts +4 -4
  929. package/lib/river/RiverBreakout/RiverBreakout.d.ts +1 -1
  930. package/lib/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +5 -5
  931. package/lib/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
  932. package/lib/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +2 -2
  933. package/lib/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
  934. package/lib/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
  935. package/llms.txt +2 -2
  936. package/package.json +24 -24
  937. package/esm/SubdomainNavBar/SubdomainNavBar.module-Rf4qEDka.css +0 -1
  938. package/esm/node_modules/@primer/octicons-react/dist/index.esm.js +0 -434
  939. package/esm/node_modules/@primer/octicons-react/dist/index.esm.js.map +0 -1
  940. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-ehJCoExh.css +0 -1
@@ -1,5 +1,6 @@
1
- import './Hero.module-BfrAFYlo.css';var e = {
2
- Hero: "Primer_Brand__Hero-module__Hero___It6gj",
1
+ import './Hero.module-BfrAFYlo.css';//#region src/Hero/Hero.module.css
2
+ var e = "Primer_Brand__Hero-module__Hero___It6gj", t = {
3
+ Hero: e,
3
4
  "Hero--variant-default": "Primer_Brand__Hero-module__Hero--variant-default___lNgHw",
4
5
  "Hero--align-start": "Primer_Brand__Hero-module__Hero--align-start___ouSp3",
5
6
  "Hero--align-center": "Primer_Brand__Hero-module__Hero--align-center___6FMoH",
@@ -55,6 +56,6 @@ import './Hero.module-BfrAFYlo.css';var e = {
55
56
  "Hero-expressive-body-column": "Primer_Brand__Hero-module__Hero-expressive-body-column___Beyq_"
56
57
  };
57
58
  //#endregion
58
- export { e as default };
59
+ export { e as Hero, t as default };
59
60
 
60
61
  //# sourceMappingURL=Hero.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeroContext.js","names":[],"sources":["../../src/Hero/HeroContext.ts"],"sourcesContent":["import React from 'react'\n\nexport const HeroAlignOptions = ['start', 'center'] as const\nexport type HeroAlign = (typeof HeroAlignOptions)[number]\n\nexport const HeroVariantOptions = ['default', 'gridline', 'gridline-expressive'] as const\nexport type HeroVariant = (typeof HeroVariantOptions)[number]\n\nexport const HeroMediaPaddingOptions = ['default', 'none', 'all'] as const\nexport type HeroMediaPadding = (typeof HeroMediaPaddingOptions)[number]\n\nexport const HeroMediaPositionOptions = ['block-end', 'inline-start', 'inline-end'] as const\nexport const HeroMediaInlinePositionOptions = ['inline-start', 'inline-end'] as const\nexport type HeroMediaPosition = (typeof HeroMediaPositionOptions)[number]\nexport type HeroMediaInlinePosition = (typeof HeroMediaInlinePositionOptions)[number]\n\ntype HeroContextType = {\n /**\n * The active variant of the Hero component\n */\n variant: HeroVariant\n /**\n * The alignment of the Hero content\n */\n align: HeroAlign\n /**\n * Image position within the Hero\n */\n imagePosition: HeroMediaPosition\n /**\n * Hero.Image is an inline media position\n */\n hasInlineMedia: boolean\n /**\n * Whether animation is enabled for the Hero\n */\n enableAnimation: boolean\n}\n\nexport const HeroContext = React.createContext<HeroContextType | undefined>(undefined)\n\nexport const useHeroContext = (): HeroContextType => {\n const context = React.useContext(HeroContext)\n if (!context) {\n throw new Error('useHeroContext must be used within a HeroProvider')\n }\n\n return context\n}\n"],"mappings":";;AAYA,IAAa,IAAiC,CAAC,gBAAgB,aAAa,EA2B/D,IAAc,EAAM,cAA2C,KAAA,EAAU,EAEzE,UAAwC;CACnD,IAAM,IAAU,EAAM,WAAW,EAAY;AAC7C,KAAI,CAAC,EACH,OAAU,MAAM,oDAAoD;AAGtE,QAAO"}
1
+ {"version":3,"file":"HeroContext.js","names":[],"sources":["../../src/Hero/HeroContext.ts"],"sourcesContent":["import React from 'react'\n\nexport const HeroAlignOptions = ['start', 'center'] as const\nexport type HeroAlign = (typeof HeroAlignOptions)[number]\n\nexport const HeroVariantOptions = ['default', 'gridline', 'gridline-expressive'] as const\nexport type HeroVariant = (typeof HeroVariantOptions)[number]\n\nexport const HeroMediaPaddingOptions = ['default', 'none', 'all'] as const\nexport type HeroMediaPadding = (typeof HeroMediaPaddingOptions)[number]\n\nexport const HeroMediaPositionOptions = ['block-end', 'inline-start', 'inline-end'] as const\nexport const HeroMediaInlinePositionOptions = ['inline-start', 'inline-end'] as const\nexport type HeroMediaPosition = (typeof HeroMediaPositionOptions)[number]\nexport type HeroMediaInlinePosition = (typeof HeroMediaInlinePositionOptions)[number]\n\ntype HeroContextType = {\n /**\n * The active variant of the Hero component\n */\n variant: HeroVariant\n /**\n * The alignment of the Hero content\n */\n align: HeroAlign\n /**\n * Image position within the Hero\n */\n imagePosition: HeroMediaPosition\n /**\n * Hero.Image is an inline media position\n */\n hasInlineMedia: boolean\n /**\n * Whether animation is enabled for the Hero\n */\n enableAnimation: boolean\n}\n\nexport const HeroContext = React.createContext<HeroContextType | undefined>(undefined)\n\nexport const useHeroContext = (): HeroContextType => {\n const context = React.useContext(HeroContext)\n if (!context) {\n throw new Error('useHeroContext must be used within a HeroProvider')\n }\n\n return context\n}\n"],"mappings":";;AAYA,IAAa,IAAiC,CAAC,gBAAgB,YAAY,GA2B9D,IAAc,EAAM,cAA2C,KAAA,CAAS,GAExE,UAAwC;CACnD,IAAM,IAAU,EAAM,WAAW,CAAW;CAC5C,IAAI,CAAC,GACH,MAAU,MAAM,mDAAmD;CAGrE,OAAO;AACT"}
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { Box as t } from "../../Box/Box.js";
3
3
  import { useHeroContext as n } from "../HeroContext.js";
4
4
  import r from "../Hero.module.js";
@@ -1 +1 @@
1
- {"version":3,"file":"HeroButtonGroup.js","names":[],"sources":["../../../src/Hero/sub-components/HeroButtonGroup.tsx"],"sourcesContent":["import React, {forwardRef} from 'react'\nimport {clsx} from 'clsx'\nimport {Box} from '../../Box'\nimport {ButtonGroup} from '../../ButtonGroup'\nimport {useHeroContext} from '../HeroContext'\n\nimport styles from '../Hero.module.css'\n\nexport type HeroButtonGroupProps = React.ComponentProps<typeof ButtonGroup>\n\nexport const HeroButtonGroup = forwardRef<HTMLDivElement, HeroButtonGroupProps>(\n ({className, children, ...props}, ref) => {\n const {variant, enableAnimation} = useHeroContext()\n const isGridline = variant === 'gridline' || variant === 'gridline-expressive'\n const Tag = isGridline ? Box : React.Fragment\n const tagProps = isGridline\n ? {\n animate: enableAnimation\n ? {\n variant: 'slide-in-up' as const,\n delay: 750,\n duration: 1000,\n }\n : undefined,\n }\n : {}\n\n return (\n <Tag {...tagProps}>\n <ButtonGroup ref={ref} className={clsx(styles['Hero-actions'], className)} {...props}>\n {children}\n </ButtonGroup>\n </Tag>\n )\n },\n)\n"],"mappings":";;;;;;;;AAUA,IAAa,IAAkB,GAC5B,EAAC,cAAW,aAAU,GAAG,KAAQ,MAAQ;CACxC,IAAM,EAAC,YAAS,uBAAmB,GAAgB,EAC7C,IAAa,MAAY,cAAc,MAAY;AAczD,QACE,kBAdU,IAAa,IAAM,EAAM,UAcnC;EAAK,GAbU,IACb,EACE,SAAS,IACL;GACE,SAAS;GACT,OAAO;GACP,UAAU;GACX,GACD,KAAA,GACL,GACD,EAAE;YAIF,kBAAC,GAAD;GAAkB;GAAK,WAAW,EAAK,EAAO,iBAAiB,EAAU;GAAE,GAAI;GAC5E;GACW,CAAA;EACV,CAAA;EAGX"}
1
+ {"version":3,"file":"HeroButtonGroup.js","names":[],"sources":["../../../src/Hero/sub-components/HeroButtonGroup.tsx"],"sourcesContent":["import React, {forwardRef} from 'react'\nimport {clsx} from 'clsx'\nimport {Box} from '../../Box'\nimport {ButtonGroup} from '../../ButtonGroup'\nimport {useHeroContext} from '../HeroContext'\n\nimport styles from '../Hero.module.css'\n\nexport type HeroButtonGroupProps = React.ComponentProps<typeof ButtonGroup>\n\nexport const HeroButtonGroup = forwardRef<HTMLDivElement, HeroButtonGroupProps>(\n ({className, children, ...props}, ref) => {\n const {variant, enableAnimation} = useHeroContext()\n const isGridline = variant === 'gridline' || variant === 'gridline-expressive'\n const Tag = isGridline ? Box : React.Fragment\n const tagProps = isGridline\n ? {\n animate: enableAnimation\n ? {\n variant: 'slide-in-up' as const,\n delay: 750,\n duration: 1000,\n }\n : undefined,\n }\n : {}\n\n return (\n <Tag {...tagProps}>\n <ButtonGroup ref={ref} className={clsx(styles['Hero-actions'], className)} {...props}>\n {children}\n </ButtonGroup>\n </Tag>\n )\n },\n)\n"],"mappings":";;;;;;;;AAUA,IAAa,IAAkB,GAC5B,EAAC,cAAW,aAAU,GAAG,KAAQ,MAAQ;CACxC,IAAM,EAAC,YAAS,uBAAmB,EAAe,GAC5C,IAAa,MAAY,cAAc,MAAY;CAczD,OACE,kBAdU,IAAa,IAAM,EAAM,UAcnC;EAAK,GAbU,IACb,EACE,SAAS,IACL;GACE,SAAS;GACT,OAAO;GACP,UAAU;EACZ,IACA,KAAA,EACN,IACA,CAAC;YAID,kBAAC,GAAD;GAAkB;GAAK,WAAW,EAAK,EAAO,iBAAiB,CAAS;GAAG,GAAI;GAC5E;EACU,CAAA;CACV,CAAA;AAET,CACF"}
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { useHeroContext as t } from "../HeroContext.js";
3
3
  import { Text as n } from "../../Text/Text.js";
4
4
  import r from "../Hero.module.js";
@@ -1 +1 @@
1
- {"version":3,"file":"HeroDescription.js","names":[],"sources":["../../../src/Hero/sub-components/HeroDescription.tsx"],"sourcesContent":["import {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport {Text, TextSizes, TextWeightVariants, ResponsiveWeightMap, TextProps} from '../../Text'\nimport type {BaseProps} from '../../component-helpers'\n\nimport styles from '../Hero.module.css'\nimport {useHeroContext} from '../HeroContext'\n\nexport type HeroDescriptionProps = {\n size?: (typeof TextSizes)[number]\n weight?: TextWeightVariants | ResponsiveWeightMap\n} & BaseProps<HTMLParagraphElement> &\n TextProps\n\nexport const HeroDescription = forwardRef<HTMLParagraphElement, PropsWithChildren<HeroDescriptionProps>>(\n (\n {size = '200', weight = 'normal', children, variant = 'muted', className}: PropsWithChildren<HeroDescriptionProps>,\n ref,\n ) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridlineVariant = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n\n return (\n <Text\n animate={\n isGridlineVariant && enableAnimation\n ? {\n variant: 'slide-in-up',\n delay: 500,\n duration: 1000,\n }\n : undefined\n }\n ref={ref}\n className={clsx(styles['Hero-description'], className)}\n as=\"p\"\n size={size}\n weight={weight}\n variant={variant}\n >\n {children}\n </Text>\n )\n },\n)\n"],"mappings":";;;;;;;AAcA,IAAa,IAAkB,GAE3B,EAAC,UAAO,OAAO,YAAS,UAAU,aAAU,aAAU,SAAS,gBAC/D,MACG;CACH,IAAM,EAAC,SAAS,GAAa,uBAAmB,GAAgB;AAGhE,QACE,kBAAC,GAAD;EACE,UAJsB,MAAgB,cAAc,MAAgB,0BAK7C,IACjB;GACE,SAAS;GACT,OAAO;GACP,UAAU;GACX,GACD,KAAA;EAED;EACL,WAAW,EAAK,EAAO,qBAAqB,EAAU;EACtD,IAAG;EACG;EACE;EACC;EAER;EACI,CAAA;EAGZ"}
1
+ {"version":3,"file":"HeroDescription.js","names":[],"sources":["../../../src/Hero/sub-components/HeroDescription.tsx"],"sourcesContent":["import {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport {Text, TextSizes, TextWeightVariants, ResponsiveWeightMap, TextProps} from '../../Text'\nimport type {BaseProps} from '../../component-helpers'\n\nimport styles from '../Hero.module.css'\nimport {useHeroContext} from '../HeroContext'\n\nexport type HeroDescriptionProps = {\n size?: (typeof TextSizes)[number]\n weight?: TextWeightVariants | ResponsiveWeightMap\n} & BaseProps<HTMLParagraphElement> &\n TextProps\n\nexport const HeroDescription = forwardRef<HTMLParagraphElement, PropsWithChildren<HeroDescriptionProps>>(\n (\n {size = '200', weight = 'normal', children, variant = 'muted', className}: PropsWithChildren<HeroDescriptionProps>,\n ref,\n ) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridlineVariant = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n\n return (\n <Text\n animate={\n isGridlineVariant && enableAnimation\n ? {\n variant: 'slide-in-up',\n delay: 500,\n duration: 1000,\n }\n : undefined\n }\n ref={ref}\n className={clsx(styles['Hero-description'], className)}\n as=\"p\"\n size={size}\n weight={weight}\n variant={variant}\n >\n {children}\n </Text>\n )\n },\n)\n"],"mappings":";;;;;;;AAcA,IAAa,IAAkB,GAE3B,EAAC,UAAO,OAAO,YAAS,UAAU,aAAU,aAAU,SAAS,gBAC/D,MACG;CACH,IAAM,EAAC,SAAS,GAAa,uBAAmB,EAAe;CAG/D,OACE,kBAAC,GAAD;EACE,UAJsB,MAAgB,cAAc,MAAgB,0BAK7C,IACjB;GACE,SAAS;GACT,OAAO;GACP,UAAU;EACZ,IACA,KAAA;EAED;EACL,WAAW,EAAK,EAAO,qBAAqB,CAAS;EACrD,IAAG;EACG;EACE;EACC;EAER;CACG,CAAA;AAEV,CACF"}
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import t from "../Hero.module.js";
3
3
  import { forwardRef as n } from "react";
4
4
  import { jsx as r } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"HeroEyebrow.js","names":[],"sources":["../../../src/Hero/sub-components/HeroEyebrow.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../../component-helpers'\n\nimport styles from '../Hero.module.css'\n\nexport type HeroEyebrowProps = PropsWithChildren<BaseProps<HTMLDivElement>>\n\nexport const HeroEyebrow = forwardRef<HTMLDivElement, HeroEyebrowProps>(\n ({children, className, ...rest}: PropsWithChildren<HeroEyebrowProps>, ref) => {\n return (\n <div ref={ref} className={clsx(styles['Hero-eyebrow'], className)} {...rest}>\n {children}\n </div>\n )\n },\n)\n"],"mappings":";;;;;AAQA,IAAa,IAAc,GACxB,EAAC,aAAU,cAAW,GAAG,KAA4C,MAElE,kBAAC,OAAD;CAAU;CAAK,WAAW,EAAK,EAAO,iBAAiB,EAAU;CAAE,GAAI;CACpE;CACG,CAAA,CAGX"}
1
+ {"version":3,"file":"HeroEyebrow.js","names":[],"sources":["../../../src/Hero/sub-components/HeroEyebrow.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../../component-helpers'\n\nimport styles from '../Hero.module.css'\n\nexport type HeroEyebrowProps = PropsWithChildren<BaseProps<HTMLDivElement>>\n\nexport const HeroEyebrow = forwardRef<HTMLDivElement, HeroEyebrowProps>(\n ({children, className, ...rest}: PropsWithChildren<HeroEyebrowProps>, ref) => {\n return (\n <div ref={ref} className={clsx(styles['Hero-eyebrow'], className)} {...rest}>\n {children}\n </div>\n )\n },\n)\n"],"mappings":";;;;;AAQA,IAAa,IAAc,GACxB,EAAC,aAAU,cAAW,GAAG,KAA4C,MAElE,kBAAC,OAAD;CAAU;CAAK,WAAW,EAAK,EAAO,iBAAiB,CAAS;CAAG,GAAI;CACpE;AACE,CAAA,CAGX"}
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { useHeroContext as t } from "../HeroContext.js";
3
3
  import n from "../Hero.module.js";
4
4
  import { Heading as r } from "../../Heading/Heading.js";
@@ -1 +1 @@
1
- {"version":3,"file":"HeroHeading.js","names":[],"sources":["../../../src/Hero/sub-components/HeroHeading.tsx"],"sourcesContent":["import {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport {Heading, HeadingProps} from '../../Heading'\nimport {useHeroContext} from '../HeroContext'\n\nimport styles from '../Hero.module.css'\n\nexport type HeroHeadingProps = Omit<HeadingProps, 'as'> & {\n fullWidth?: boolean\n}\n\nexport const HeroHeading = forwardRef<HTMLHeadingElement, HeroHeadingProps>(\n ({children, fullWidth = false, size = '1', ...rest}: PropsWithChildren<HeroHeadingProps>, ref) => {\n const {hasInlineMedia, variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridlineVariant = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n\n return (\n <Heading\n animate={\n isGridlineVariant && enableAnimation\n ? {\n variant: 'reveal-in-up',\n delay: 0,\n duration: 1000,\n }\n : undefined\n }\n id=\"hero-section-brand-heading\"\n className={clsx(styles['Hero-heading'], fullWidth && styles['Hero-heading--fullWidth'])}\n as=\"h1\"\n size={hasInlineMedia ? '2' : size}\n ref={ref}\n {...rest}\n >\n {children}\n </Heading>\n )\n },\n)\n"],"mappings":";;;;;;;AAWA,IAAa,IAAc,GACxB,EAAC,aAAU,eAAY,IAAO,UAAO,KAAK,GAAG,KAA4C,MAAQ;CAChG,IAAM,EAAC,mBAAgB,SAAS,GAAa,uBAAmB,GAAgB;AAGhF,QACE,kBAAC,GAAD;EACE,UAJsB,MAAgB,cAAc,MAAgB,0BAK7C,IACjB;GACE,SAAS;GACT,OAAO;GACP,UAAU;GACX,GACD,KAAA;EAEN,IAAG;EACH,WAAW,EAAK,EAAO,iBAAiB,KAAa,EAAO,2BAA2B;EACvF,IAAG;EACH,MAAM,IAAiB,MAAM;EACxB;EACL,GAAI;EAEH;EACO,CAAA;EAGf"}
1
+ {"version":3,"file":"HeroHeading.js","names":[],"sources":["../../../src/Hero/sub-components/HeroHeading.tsx"],"sourcesContent":["import {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport {Heading, HeadingProps} from '../../Heading'\nimport {useHeroContext} from '../HeroContext'\n\nimport styles from '../Hero.module.css'\n\nexport type HeroHeadingProps = Omit<HeadingProps, 'as'> & {\n fullWidth?: boolean\n}\n\nexport const HeroHeading = forwardRef<HTMLHeadingElement, HeroHeadingProps>(\n ({children, fullWidth = false, size = '1', ...rest}: PropsWithChildren<HeroHeadingProps>, ref) => {\n const {hasInlineMedia, variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridlineVariant = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n\n return (\n <Heading\n animate={\n isGridlineVariant && enableAnimation\n ? {\n variant: 'reveal-in-up',\n delay: 0,\n duration: 1000,\n }\n : undefined\n }\n id=\"hero-section-brand-heading\"\n className={clsx(styles['Hero-heading'], fullWidth && styles['Hero-heading--fullWidth'])}\n as=\"h1\"\n size={hasInlineMedia ? '2' : size}\n ref={ref}\n {...rest}\n >\n {children}\n </Heading>\n )\n },\n)\n"],"mappings":";;;;;;;AAWA,IAAa,IAAc,GACxB,EAAC,aAAU,eAAY,IAAO,UAAO,KAAK,GAAG,KAA4C,MAAQ;CAChG,IAAM,EAAC,mBAAgB,SAAS,GAAa,uBAAmB,EAAe;CAG/E,OACE,kBAAC,GAAD;EACE,UAJsB,MAAgB,cAAc,MAAgB,0BAK7C,IACjB;GACE,SAAS;GACT,OAAO;GACP,UAAU;EACZ,IACA,KAAA;EAEN,IAAG;EACH,WAAW,EAAK,EAAO,iBAAiB,KAAa,EAAO,0BAA0B;EACtF,IAAG;EACH,MAAM,IAAiB,MAAM;EACxB;EACL,GAAI;EAEH;CACM,CAAA;AAEb,CACF"}
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { useHeroContext as t } from "../HeroContext.js";
3
3
  import n from "../Hero.module.js";
4
4
  import { Image as r } from "../../Image/Image.js";
@@ -1 +1 @@
1
- {"version":3,"file":"HeroImage.js","names":[],"sources":["../../../src/Hero/sub-components/HeroImage.tsx"],"sourcesContent":["import {forwardRef} from 'react'\nimport {clsx} from 'clsx'\nimport {Image, ImageProps} from '../../Image'\nimport type {BaseProps} from '../../component-helpers'\nimport {useHeroContext, type HeroMediaPadding, type HeroMediaPosition} from '../HeroContext'\n\nimport styles from '../Hero.module.css'\n\nexport type HeroImageProps = {\n position?: HeroMediaPosition\n padding?: HeroMediaPadding\n enableBorder?: boolean\n} & ImageProps &\n BaseProps<HTMLImageElement>\n\nexport const HeroImage = forwardRef<HTMLImageElement, HeroImageProps>(\n ({position = 'block-end', padding = 'default', className, enableBorder, ...rest}: HeroImageProps, ref) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isInlinePosition = position.startsWith('inline')\n return (\n <Image\n animate={\n heroVariant === 'gridline' && enableAnimation\n ? {\n variant: 'slide-in-up',\n delay: 0,\n duration: 1000,\n }\n : undefined\n }\n ref={ref}\n className={clsx(\n styles['Hero-image'],\n styles['Hero-media'],\n styles[`Hero-media--pos-${position}`],\n isInlinePosition && styles['Hero-media--pos-inline'],\n padding === 'all' && styles['Hero-media--padding-all'],\n padding === 'none' && styles['Hero-media--padding-none'],\n className,\n )}\n {...rest}\n />\n )\n },\n)\n"],"mappings":";;;;;;;AAeA,IAAa,IAAY,GACtB,EAAC,cAAW,aAAa,aAAU,WAAW,cAAW,iBAAc,GAAG,KAAuB,MAAQ;CACxG,IAAM,EAAC,SAAS,GAAa,uBAAmB,GAAgB,EAC1D,IAAmB,EAAS,WAAW,SAAS;AACtD,QACE,kBAAC,GAAD;EACE,SACE,MAAgB,cAAc,IAC1B;GACE,SAAS;GACT,OAAO;GACP,UAAU;GACX,GACD,KAAA;EAED;EACL,WAAW,EACT,EAAO,eACP,EAAO,eACP,EAAO,mBAAmB,MAC1B,KAAoB,EAAO,2BAC3B,MAAY,SAAS,EAAO,4BAC5B,MAAY,UAAU,EAAO,6BAC7B,EACD;EACD,GAAI;EACJ,CAAA;EAGP"}
1
+ {"version":3,"file":"HeroImage.js","names":[],"sources":["../../../src/Hero/sub-components/HeroImage.tsx"],"sourcesContent":["import {forwardRef} from 'react'\nimport {clsx} from 'clsx'\nimport {Image, ImageProps} from '../../Image'\nimport type {BaseProps} from '../../component-helpers'\nimport {useHeroContext, type HeroMediaPadding, type HeroMediaPosition} from '../HeroContext'\n\nimport styles from '../Hero.module.css'\n\nexport type HeroImageProps = {\n position?: HeroMediaPosition\n padding?: HeroMediaPadding\n enableBorder?: boolean\n} & ImageProps &\n BaseProps<HTMLImageElement>\n\nexport const HeroImage = forwardRef<HTMLImageElement, HeroImageProps>(\n ({position = 'block-end', padding = 'default', className, enableBorder, ...rest}: HeroImageProps, ref) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isInlinePosition = position.startsWith('inline')\n return (\n <Image\n animate={\n heroVariant === 'gridline' && enableAnimation\n ? {\n variant: 'slide-in-up',\n delay: 0,\n duration: 1000,\n }\n : undefined\n }\n ref={ref}\n className={clsx(\n styles['Hero-image'],\n styles['Hero-media'],\n styles[`Hero-media--pos-${position}`],\n isInlinePosition && styles['Hero-media--pos-inline'],\n padding === 'all' && styles['Hero-media--padding-all'],\n padding === 'none' && styles['Hero-media--padding-none'],\n className,\n )}\n {...rest}\n />\n )\n },\n)\n"],"mappings":";;;;;;;AAeA,IAAa,IAAY,GACtB,EAAC,cAAW,aAAa,aAAU,WAAW,cAAW,iBAAc,GAAG,KAAuB,MAAQ;CACxG,IAAM,EAAC,SAAS,GAAa,uBAAmB,EAAe,GACzD,IAAmB,EAAS,WAAW,QAAQ;CACrD,OACE,kBAAC,GAAD;EACE,SACE,MAAgB,cAAc,IAC1B;GACE,SAAS;GACT,OAAO;GACP,UAAU;EACZ,IACA,KAAA;EAED;EACL,WAAW,EACT,EAAO,eACP,EAAO,eACP,EAAO,mBAAmB,MAC1B,KAAoB,EAAO,2BAC3B,MAAY,SAAS,EAAO,4BAC5B,MAAY,UAAU,EAAO,6BAC7B,CACF;EACA,GAAI;CACL,CAAA;AAEL,CACF"}
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { useHeroContext as t } from "../HeroContext.js";
3
3
  import { TextCursorAnimation as n } from "../../TextCursorAnimation/TextCursorAnimation.js";
4
4
  import r from "../Hero.module.js";
@@ -1 +1 @@
1
- {"version":3,"file":"HeroLabel.js","names":[],"sources":["../../../src/Hero/sub-components/HeroLabel.tsx"],"sourcesContent":["import {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport {TextProps} from '../../Text'\nimport type {BaseProps} from '../../component-helpers'\nimport {TextCursorAnimation} from '../../TextCursorAnimation'\n\nimport styles from '../Hero.module.css'\nimport {useHeroContext} from '../HeroContext'\n\nexport type HeroLabelProps = Omit<TextProps, 'as' | 'ref' | 'animate'> &\n Omit<BaseProps<HTMLSpanElement>, 'animate'> & {\n animate?: boolean\n animationDelay?: number\n initialText?: string\n }\n\nexport const HeroLabel = forwardRef<HTMLSpanElement, HeroLabelProps>(\n (\n {\n children,\n className,\n variant = 'muted',\n animate = false,\n animationDelay = 1000,\n initialText,\n ...rest\n }: PropsWithChildren<HeroLabelProps>,\n ref,\n ) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridlineVariant = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n\n const shouldAnimate = enableAnimation || animate\n const shouldHaveDelay = (isGridlineVariant && enableAnimation) || animate\n\n return (\n <span ref={ref} className={clsx(styles['Hero-label'], className)} {...rest}>\n <TextCursorAnimation\n variant={variant}\n animate={shouldAnimate}\n delay={shouldHaveDelay ? animationDelay : 0}\n initialText={initialText}\n >\n {children}\n </TextCursorAnimation>\n </span>\n )\n },\n)\n"],"mappings":";;;;;;;AAgBA,IAAa,IAAY,GAErB,EACE,aACA,cACA,aAAU,SACV,aAAU,IACV,oBAAiB,KACjB,gBACA,GAAG,KAEL,MACG;CACH,IAAM,EAAC,SAAS,GAAa,uBAAmB,GAAgB,EAC1D,IAAoB,MAAgB,cAAc,MAAgB,uBAElE,IAAgB,KAAmB,GACnC,IAAmB,KAAqB,KAAoB;AAElE,QACE,kBAAC,QAAD;EAAW;EAAK,WAAW,EAAK,EAAO,eAAe,EAAU;EAAE,GAAI;YACpE,kBAAC,GAAD;GACW;GACT,SAAS;GACT,OAAO,IAAkB,IAAiB;GAC7B;GAEZ;GACmB,CAAA;EACjB,CAAA;EAGZ"}
1
+ {"version":3,"file":"HeroLabel.js","names":[],"sources":["../../../src/Hero/sub-components/HeroLabel.tsx"],"sourcesContent":["import {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport {TextProps} from '../../Text'\nimport type {BaseProps} from '../../component-helpers'\nimport {TextCursorAnimation} from '../../TextCursorAnimation'\n\nimport styles from '../Hero.module.css'\nimport {useHeroContext} from '../HeroContext'\n\nexport type HeroLabelProps = Omit<TextProps, 'as' | 'ref' | 'animate'> &\n Omit<BaseProps<HTMLSpanElement>, 'animate'> & {\n animate?: boolean\n animationDelay?: number\n initialText?: string\n }\n\nexport const HeroLabel = forwardRef<HTMLSpanElement, HeroLabelProps>(\n (\n {\n children,\n className,\n variant = 'muted',\n animate = false,\n animationDelay = 1000,\n initialText,\n ...rest\n }: PropsWithChildren<HeroLabelProps>,\n ref,\n ) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridlineVariant = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n\n const shouldAnimate = enableAnimation || animate\n const shouldHaveDelay = (isGridlineVariant && enableAnimation) || animate\n\n return (\n <span ref={ref} className={clsx(styles['Hero-label'], className)} {...rest}>\n <TextCursorAnimation\n variant={variant}\n animate={shouldAnimate}\n delay={shouldHaveDelay ? animationDelay : 0}\n initialText={initialText}\n >\n {children}\n </TextCursorAnimation>\n </span>\n )\n },\n)\n"],"mappings":";;;;;;;AAgBA,IAAa,IAAY,GAErB,EACE,aACA,cACA,aAAU,SACV,aAAU,IACV,oBAAiB,KACjB,gBACA,GAAG,KAEL,MACG;CACH,IAAM,EAAC,SAAS,GAAa,uBAAmB,EAAe,GACzD,IAAoB,MAAgB,cAAc,MAAgB,uBAElE,IAAgB,KAAmB,GACnC,IAAmB,KAAqB,KAAoB;CAElE,OACE,kBAAC,QAAD;EAAW;EAAK,WAAW,EAAK,EAAO,eAAe,CAAS;EAAG,GAAI;YACpE,kBAAC,GAAD;GACW;GACT,SAAS;GACT,OAAO,IAAkB,IAAiB;GAC7B;GAEZ;EACkB,CAAA;CACjB,CAAA;AAEV,CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeroPrimaryAction.js","names":[],"sources":["../../../src/Hero/sub-components/HeroPrimaryAction.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {Button, ButtonBaseProps} from '../../Button'\nimport type {BaseProps} from '../../component-helpers'\nimport {useHeroContext} from '../HeroContext'\nimport {Box} from '../../Box'\n\ntype RestrictedPolymorphism =\n | (BaseProps<HTMLAnchorElement> & {as?: 'a'})\n | (BaseProps<HTMLButtonElement> & {as?: 'button'})\n\nexport type HeroPrimaryActionProps = {\n as?: 'a' | 'button'\n href: string\n} & ButtonBaseProps &\n RestrictedPolymorphism\n\nexport const HeroPrimaryAction = forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n PropsWithChildren<HeroPrimaryActionProps>\n>(({href, as = 'a', children, ...rest}, ref) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridline = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n const Tag = isGridline ? Box : React.Fragment\n const tagProps = isGridline\n ? {\n animate: enableAnimation\n ? {\n variant: 'slide-in-up' as const,\n delay: 750,\n duration: 1000,\n }\n : undefined,\n }\n : {}\n\n return (\n <Tag {...tagProps}>\n <Button ref={ref as React.Ref<HTMLButtonElement>} as={as} variant=\"primary\" size=\"medium\" href={href} {...rest}>\n {children}\n </Button>\n </Tag>\n )\n})\n"],"mappings":";;;;;;AAgBA,IAAa,IAAoB,GAG9B,EAAC,SAAM,QAAK,KAAK,aAAU,GAAG,KAAO,MAAQ;CAC9C,IAAM,EAAC,SAAS,GAAa,uBAAmB,GAAgB,EAC1D,IAAa,MAAgB,cAAc,MAAgB;AAcjE,QACE,kBAdU,IAAa,IAAM,EAAM,UAcnC;EAAK,GAbU,IACb,EACE,SAAS,IACL;GACE,SAAS;GACT,OAAO;GACP,UAAU;GACX,GACD,KAAA,GACL,GACD,EAAE;YAIF,kBAAC,GAAD;GAAa;GAAyC;GAAI,SAAQ;GAAU,MAAK;GAAe;GAAM,GAAI;GACvG;GACM,CAAA;EACL,CAAA;EAER"}
1
+ {"version":3,"file":"HeroPrimaryAction.js","names":[],"sources":["../../../src/Hero/sub-components/HeroPrimaryAction.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {Button, ButtonBaseProps} from '../../Button'\nimport type {BaseProps} from '../../component-helpers'\nimport {useHeroContext} from '../HeroContext'\nimport {Box} from '../../Box'\n\ntype RestrictedPolymorphism =\n | (BaseProps<HTMLAnchorElement> & {as?: 'a'})\n | (BaseProps<HTMLButtonElement> & {as?: 'button'})\n\nexport type HeroPrimaryActionProps = {\n as?: 'a' | 'button'\n href: string\n} & ButtonBaseProps &\n RestrictedPolymorphism\n\nexport const HeroPrimaryAction = forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n PropsWithChildren<HeroPrimaryActionProps>\n>(({href, as = 'a', children, ...rest}, ref) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridline = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n const Tag = isGridline ? Box : React.Fragment\n const tagProps = isGridline\n ? {\n animate: enableAnimation\n ? {\n variant: 'slide-in-up' as const,\n delay: 750,\n duration: 1000,\n }\n : undefined,\n }\n : {}\n\n return (\n <Tag {...tagProps}>\n <Button ref={ref as React.Ref<HTMLButtonElement>} as={as} variant=\"primary\" size=\"medium\" href={href} {...rest}>\n {children}\n </Button>\n </Tag>\n )\n})\n"],"mappings":";;;;;;AAgBA,IAAa,IAAoB,GAG9B,EAAC,SAAM,QAAK,KAAK,aAAU,GAAG,KAAO,MAAQ;CAC9C,IAAM,EAAC,SAAS,GAAa,uBAAmB,EAAe,GACzD,IAAa,MAAgB,cAAc,MAAgB;CAcjE,OACE,kBAdU,IAAa,IAAM,EAAM,UAcnC;EAAK,GAbU,IACb,EACE,SAAS,IACL;GACE,SAAS;GACT,OAAO;GACP,UAAU;EACZ,IACA,KAAA,EACN,IACA,CAAC;YAID,kBAAC,GAAD;GAAa;GAAyC;GAAI,SAAQ;GAAU,MAAK;GAAe;GAAM,GAAI;GACvG;EACK,CAAA;CACL,CAAA;AAET,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeroSecondaryAction.js","names":[],"sources":["../../../src/Hero/sub-components/HeroSecondaryAction.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {Button, ButtonBaseProps} from '../../Button'\nimport type {BaseProps} from '../../component-helpers'\nimport {Box} from '../..'\nimport {useHeroContext} from '../HeroContext'\n\ntype RestrictedPolymorphism =\n | (BaseProps<HTMLAnchorElement> & {as?: 'a'})\n | (BaseProps<HTMLButtonElement> & {as?: 'button'})\n\nexport type HeroSecondaryActionProps = {\n as?: 'a' | 'button'\n href: string\n} & ButtonBaseProps &\n RestrictedPolymorphism\n\nexport const HeroSecondaryAction = forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n PropsWithChildren<HeroSecondaryActionProps>\n>(({href, as = 'a', children, ...rest}, ref) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridline = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n const Tag = isGridline ? Box : React.Fragment\n const tagProps = isGridline\n ? {\n animate: enableAnimation\n ? {\n variant: 'slide-in-up' as const,\n delay: 750,\n duration: 1000,\n }\n : undefined,\n }\n : {}\n return (\n <Tag {...tagProps}>\n <Button ref={ref as React.Ref<HTMLButtonElement>} as={as} variant=\"secondary\" size=\"medium\" href={href} {...rest}>\n {children}\n </Button>\n </Tag>\n )\n})\n"],"mappings":";;;;;;AAgBA,IAAa,IAAsB,GAGhC,EAAC,SAAM,QAAK,KAAK,aAAU,GAAG,KAAO,MAAQ;CAC9C,IAAM,EAAC,SAAS,GAAa,uBAAmB,GAAgB,EAC1D,IAAa,MAAgB,cAAc,MAAgB;AAajE,QACE,kBAbU,IAAa,IAAM,EAAM,UAanC;EAAK,GAZU,IACb,EACE,SAAS,IACL;GACE,SAAS;GACT,OAAO;GACP,UAAU;GACX,GACD,KAAA,GACL,GACD,EAAE;YAGF,kBAAC,GAAD;GAAa;GAAyC;GAAI,SAAQ;GAAY,MAAK;GAAe;GAAM,GAAI;GACzG;GACM,CAAA;EACL,CAAA;EAER"}
1
+ {"version":3,"file":"HeroSecondaryAction.js","names":[],"sources":["../../../src/Hero/sub-components/HeroSecondaryAction.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {Button, ButtonBaseProps} from '../../Button'\nimport type {BaseProps} from '../../component-helpers'\nimport {Box} from '../..'\nimport {useHeroContext} from '../HeroContext'\n\ntype RestrictedPolymorphism =\n | (BaseProps<HTMLAnchorElement> & {as?: 'a'})\n | (BaseProps<HTMLButtonElement> & {as?: 'button'})\n\nexport type HeroSecondaryActionProps = {\n as?: 'a' | 'button'\n href: string\n} & ButtonBaseProps &\n RestrictedPolymorphism\n\nexport const HeroSecondaryAction = forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n PropsWithChildren<HeroSecondaryActionProps>\n>(({href, as = 'a', children, ...rest}, ref) => {\n const {variant: heroVariant, enableAnimation} = useHeroContext()\n const isGridline = heroVariant === 'gridline' || heroVariant === 'gridline-expressive'\n const Tag = isGridline ? Box : React.Fragment\n const tagProps = isGridline\n ? {\n animate: enableAnimation\n ? {\n variant: 'slide-in-up' as const,\n delay: 750,\n duration: 1000,\n }\n : undefined,\n }\n : {}\n return (\n <Tag {...tagProps}>\n <Button ref={ref as React.Ref<HTMLButtonElement>} as={as} variant=\"secondary\" size=\"medium\" href={href} {...rest}>\n {children}\n </Button>\n </Tag>\n )\n})\n"],"mappings":";;;;;;AAgBA,IAAa,IAAsB,GAGhC,EAAC,SAAM,QAAK,KAAK,aAAU,GAAG,KAAO,MAAQ;CAC9C,IAAM,EAAC,SAAS,GAAa,uBAAmB,EAAe,GACzD,IAAa,MAAgB,cAAc,MAAgB;CAajE,OACE,kBAbU,IAAa,IAAM,EAAM,UAanC;EAAK,GAZU,IACb,EACE,SAAS,IACL;GACE,SAAS;GACT,OAAO;GACP,UAAU;EACZ,IACA,KAAA,EACN,IACA,CAAC;YAGD,kBAAC,GAAD;GAAa;GAAyC;GAAI,SAAQ;GAAY,MAAK;GAAe;GAAM,GAAI;GACzG;EACK,CAAA;CACL,CAAA;AAET,CAAC"}
@@ -1,9 +1,9 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { useProvidedRefOrCreate as t } from "../../hooks/useRef.js";
3
3
  import { Box as n } from "../../Box/Box.js";
4
4
  import { Text as r } from "../../Text/Text.js";
5
5
  import i from "../Hero.module.js";
6
- import { MarkGithubIcon as a } from "../../node_modules/@primer/octicons-react/dist/index.esm.js";
6
+ import { MarkGithubIcon as a } from "../../node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js";
7
7
  import { Image as o } from "../../Image/Image.js";
8
8
  import { PlayIcon as s } from "../../VideoPlayer/components/PlayIcon/PlayIcon.js";
9
9
  import c, { forwardRef as l } from "react";
@@ -1 +1 @@
1
- {"version":3,"file":"HeroVideo.js","names":[],"sources":["../../../src/Hero/sub-components/HeroVideo.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../../component-helpers'\nimport type {HeroMediaPadding, HeroMediaPosition} from '../HeroContext'\nimport {useProvidedRefOrCreate} from '../../hooks/useRef'\n\nimport styles from '../Hero.module.css'\nimport {Box, Image, Text} from '../..'\nimport {PlayIcon} from '../../VideoPlayer/components/PlayIcon'\nimport {MarkGithubIcon} from '@primer/octicons-react'\n\ntype HeroVideoBaseProps = {\n position?: HeroMediaPosition\n /**\n * Controls the padding around media in gridline layouts. `default` preserves the padding recommended for the position.\n */\n padding?: HeroMediaPadding\n enableBorder?: boolean\n 'data-testid'?: string\n} & PropsWithChildren<BaseProps<HTMLDivElement>>\n\n// discriminated union to ensure that if one poster* prop is set, all are required\ntype PosterProps =\n | {poster?: never; posterAltText?: never; posterTitle?: never}\n | {poster: string; posterAltText: string; posterTitle: string}\n\nexport type HeroVideoProps = HeroVideoBaseProps & PosterProps\n\nexport const HeroVideo = forwardRef<HTMLDivElement, HeroVideoProps>(\n (\n {\n className,\n children,\n position = 'block-end',\n padding = 'default',\n poster,\n posterTitle,\n posterAltText,\n enableBorder,\n 'data-testid': testId,\n ...rest\n }: HeroVideoProps,\n ref,\n ) => {\n const [showVideo, setShowVideo] = React.useState(poster ? false : true)\n const containerRef = useProvidedRefOrCreate(ref as React.RefObject<HTMLDivElement>)\n const isInlinePosition = position.startsWith('inline')\n\n const mediaClasses = clsx(\n styles['Hero-video'],\n styles['Hero-media'],\n styles[`Hero-media--pos-${position}`],\n isInlinePosition && styles['Hero-media--pos-inline'],\n padding === 'all' && styles['Hero-media--padding-all'],\n padding === 'none' && styles['Hero-media--padding-none'],\n className,\n )\n\n const handlePosterClick = () => setShowVideo(true)\n\n const videoContent = (\n <div className={mediaClasses} ref={containerRef} data-testid={testId || 'Hero-video'} {...rest}>\n {children}\n </div>\n )\n\n if (showVideo) {\n return videoContent\n }\n\n return (\n <PosterImage\n posterSrc={poster!}\n posterAlt={posterAltText!}\n posterTitle={posterTitle!}\n onClick={handlePosterClick}\n className={mediaClasses}\n />\n )\n },\n)\n\ntype PosterImageProps = {\n posterSrc: string\n posterAlt: string\n posterTitle: string\n onClick: () => void\n className?: string\n}\n\nfunction PosterImage({posterSrc, posterAlt, posterTitle, onClick, className}: PosterImageProps) {\n return (\n <Box className={className}>\n <button aria-label=\"Play video\" onClick={onClick} className={styles['Hero-video-poster-button']}>\n <Image src={posterSrc} alt={posterAlt} className={styles['Hero-video-poster-image']} />\n <PlayIcon className={styles['Hero-video-poster-icon']} />\n <span className={styles['Hero-video-poster-header']}>\n <MarkGithubIcon size={48} className={styles['Hero-video-header-poster-icon']} />\n <Text size=\"350\" className={styles['Hero-video-poster-text']}>\n {posterTitle}\n </Text>\n </span>\n </button>\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;;;AA4BA,IAAa,IAAY,GAErB,EACE,cACA,aACA,cAAW,aACX,aAAU,WACV,WACA,gBACA,kBACA,iBACA,eAAe,GACf,GAAG,KAEL,MACG;CACH,IAAM,CAAC,GAAW,KAAgB,EAAM,SAAS,GAAsB,EACjE,IAAe,EAAuB,EAAuC,EAC7E,IAAmB,EAAS,WAAW,SAAS,EAEhD,IAAe,EACnB,EAAO,eACP,EAAO,eACP,EAAO,mBAAmB,MAC1B,KAAoB,EAAO,2BAC3B,MAAY,SAAS,EAAO,4BAC5B,MAAY,UAAU,EAAO,6BAC7B,EACD,EAEK,UAA0B,EAAa,GAAK,EAE5C,IACJ,kBAAC,OAAD;EAAK,WAAW;EAAc,KAAK;EAAc,eAAa,KAAU;EAAc,GAAI;EACvF;EACG,CAAA;AAOR,QAJI,IACK,IAIP,kBAAC,GAAD;EACE,WAAW;EACX,WAAW;EACE;EACb,SAAS;EACT,WAAW;EACX,CAAA;EAGP;AAUD,SAAS,EAAY,EAAC,cAAW,cAAW,gBAAa,YAAS,gBAA8B;AAC9F,QACE,kBAAC,GAAD;EAAgB;YACd,kBAAC,UAAD;GAAQ,cAAW;GAAsB;GAAS,WAAW,EAAO;aAApE;IACE,kBAAC,GAAD;KAAO,KAAK;KAAW,KAAK;KAAW,WAAW,EAAO;KAA8B,CAAA;IACvF,kBAAC,GAAD,EAAU,WAAW,EAAO,2BAA6B,CAAA;IACzD,kBAAC,QAAD;KAAM,WAAW,EAAO;eAAxB,CACE,kBAAC,GAAD;MAAgB,MAAM;MAAI,WAAW,EAAO;MAAoC,CAAA,EAChF,kBAAC,GAAD;MAAM,MAAK;MAAM,WAAW,EAAO;gBAChC;MACI,CAAA,CACF;;IACA;;EACL,CAAA"}
1
+ {"version":3,"file":"HeroVideo.js","names":[],"sources":["../../../src/Hero/sub-components/HeroVideo.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../../component-helpers'\nimport type {HeroMediaPadding, HeroMediaPosition} from '../HeroContext'\nimport {useProvidedRefOrCreate} from '../../hooks/useRef'\n\nimport styles from '../Hero.module.css'\nimport {Box, Image, Text} from '../..'\nimport {PlayIcon} from '../../VideoPlayer/components/PlayIcon'\nimport {MarkGithubIcon} from '@primer/octicons-react'\n\ntype HeroVideoBaseProps = {\n position?: HeroMediaPosition\n /**\n * Controls the padding around media in gridline layouts. `default` preserves the padding recommended for the position.\n */\n padding?: HeroMediaPadding\n enableBorder?: boolean\n 'data-testid'?: string\n} & PropsWithChildren<BaseProps<HTMLDivElement>>\n\n// discriminated union to ensure that if one poster* prop is set, all are required\ntype PosterProps =\n | {poster?: never; posterAltText?: never; posterTitle?: never}\n | {poster: string; posterAltText: string; posterTitle: string}\n\nexport type HeroVideoProps = HeroVideoBaseProps & PosterProps\n\nexport const HeroVideo = forwardRef<HTMLDivElement, HeroVideoProps>(\n (\n {\n className,\n children,\n position = 'block-end',\n padding = 'default',\n poster,\n posterTitle,\n posterAltText,\n enableBorder,\n 'data-testid': testId,\n ...rest\n }: HeroVideoProps,\n ref,\n ) => {\n const [showVideo, setShowVideo] = React.useState(poster ? false : true)\n const containerRef = useProvidedRefOrCreate(ref as React.RefObject<HTMLDivElement>)\n const isInlinePosition = position.startsWith('inline')\n\n const mediaClasses = clsx(\n styles['Hero-video'],\n styles['Hero-media'],\n styles[`Hero-media--pos-${position}`],\n isInlinePosition && styles['Hero-media--pos-inline'],\n padding === 'all' && styles['Hero-media--padding-all'],\n padding === 'none' && styles['Hero-media--padding-none'],\n className,\n )\n\n const handlePosterClick = () => setShowVideo(true)\n\n const videoContent = (\n <div className={mediaClasses} ref={containerRef} data-testid={testId || 'Hero-video'} {...rest}>\n {children}\n </div>\n )\n\n if (showVideo) {\n return videoContent\n }\n\n return (\n <PosterImage\n posterSrc={poster!}\n posterAlt={posterAltText!}\n posterTitle={posterTitle!}\n onClick={handlePosterClick}\n className={mediaClasses}\n />\n )\n },\n)\n\ntype PosterImageProps = {\n posterSrc: string\n posterAlt: string\n posterTitle: string\n onClick: () => void\n className?: string\n}\n\nfunction PosterImage({posterSrc, posterAlt, posterTitle, onClick, className}: PosterImageProps) {\n return (\n <Box className={className}>\n <button aria-label=\"Play video\" onClick={onClick} className={styles['Hero-video-poster-button']}>\n <Image src={posterSrc} alt={posterAlt} className={styles['Hero-video-poster-image']} />\n <PlayIcon className={styles['Hero-video-poster-icon']} />\n <span className={styles['Hero-video-poster-header']}>\n <MarkGithubIcon size={48} className={styles['Hero-video-header-poster-icon']} />\n <Text size=\"350\" className={styles['Hero-video-poster-text']}>\n {posterTitle}\n </Text>\n </span>\n </button>\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;;;AA4BA,IAAa,IAAY,GAErB,EACE,cACA,aACA,cAAW,aACX,aAAU,WACV,WACA,gBACA,kBACA,iBACA,eAAe,GACf,GAAG,KAEL,MACG;CACH,IAAM,CAAC,GAAW,KAAgB,EAAM,SAAS,EAAqB,GAChE,IAAe,EAAuB,CAAsC,GAC5E,IAAmB,EAAS,WAAW,QAAQ,GAE/C,IAAe,EACnB,EAAO,eACP,EAAO,eACP,EAAO,mBAAmB,MAC1B,KAAoB,EAAO,2BAC3B,MAAY,SAAS,EAAO,4BAC5B,MAAY,UAAU,EAAO,6BAC7B,CACF,GAEM,UAA0B,EAAa,EAAI,GAE3C,IACJ,kBAAC,OAAD;EAAK,WAAW;EAAc,KAAK;EAAc,eAAa,KAAU;EAAc,GAAI;EACvF;CACE,CAAA;CAOP,OAJI,IACK,IAIP,kBAAC,GAAD;EACE,WAAW;EACX,WAAW;EACE;EACb,SAAS;EACT,WAAW;CACZ,CAAA;AAEL,CACF;AAUA,SAAS,EAAY,EAAC,cAAW,cAAW,gBAAa,YAAS,gBAA8B;CAC9F,OACE,kBAAC,GAAD;EAAgB;YACd,kBAAC,UAAD;GAAQ,cAAW;GAAsB;GAAS,WAAW,EAAO;aAApE;IACE,kBAAC,GAAD;KAAO,KAAK;KAAW,KAAK;KAAW,WAAW,EAAO;IAA6B,CAAA;IACtF,kBAAC,GAAD,EAAU,WAAW,EAAO,0BAA4B,CAAA;IACxD,kBAAC,QAAD;KAAM,WAAW,EAAO;eAAxB,CACE,kBAAC,GAAD;MAAgB,MAAM;MAAI,WAAW,EAAO;KAAmC,CAAA,GAC/E,kBAAC,GAAD;MAAM,MAAK;MAAM,WAAW,EAAO;gBAChC;KACG,CAAA,CACF;;GACA;;CACL,CAAA;AAET"}
package/esm/IDE/IDE.d.ts CHANGED
@@ -148,7 +148,7 @@ export declare const IDE: React.NamedExoticComponent<{
148
148
  } & BaseProps<HTMLDivElement> & {
149
149
  children?: React.ReactNode | undefined;
150
150
  }> & {
151
- readonly type: ({ children, className, "data-testid": testId, height, variant, ...rest }: PropsWithChildren<IDEProps>) => import("react/jsx-runtime").JSX.Element;
151
+ readonly type: ({ children, className, "data-testid": testId, height, variant, ...rest }: PropsWithChildren<IDEProps>) => React.JSX.Element;
152
152
  } & {
153
153
  testIds: {
154
154
  root: string;
package/esm/IDE/IDE.js CHANGED
@@ -1,8 +1,9 @@
1
- import e from "../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
2
2
  import t from "../animation/Animation.module.js";
3
3
  import { useProvidedRefOrCreate as n } from "../hooks/useRef.js";
4
4
  import { Text as r } from "../Text/Text.js";
5
- import { CopilotIcon as i, PaperAirplaneIcon as a } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
5
+ import { CopilotIcon as i } from "../node_modules/@primer/octicons-react/dist/icons/CopilotIcon.js";
6
+ import { PaperAirplaneIcon as a } from "../node_modules/@primer/octicons-react/dist/icons/PaperAirplaneIcon.js";
6
7
  import { useTabs as o } from "../hooks/useTabs.js";
7
8
  import { TextInput as s } from "../forms/TextInput/TextInput.js";
8
9
  import { Avatar as c } from "../Avatar/Avatar.js";
@@ -1 +1 @@
1
- {"version":3,"file":"IDE.js","names":[],"sources":["../../src/IDE/IDE.tsx"],"sourcesContent":["import {CopilotIcon, PaperAirplaneIcon} from '@primer/octicons-react'\nimport {clsx} from 'clsx'\nimport React, {\n Children,\n forwardRef,\n isValidElement,\n memo,\n type PropsWithChildren,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from 'react'\n\nimport {Avatar, Text, TextInput} from '..'\nimport type {BaseProps} from '../component-helpers'\nimport {useTabs} from '../hooks/useTabs'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/ide/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport animationStyles from '../animation/Animation.module.css'\nimport styles from './IDE.module.css'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\nconst testIds = {\n root: 'IDE',\n get chat() {\n return `${this.root}-chat`\n },\n get editor() {\n return `${this.root}-editor`\n },\n get editorContent() {\n return `${this.editor}-content`\n },\n get editorTabs() {\n return `${this.editor}-tab`\n },\n}\n\n/**\n * @deprecated IDEProps is deprecated and will be removed in a future release.\n */\nexport type IDEProps = {\n /**\n * Test id for the IDE\n */\n 'data-testid'?: string\n /**\n * The optionally configurable height of the IDE\n */\n height?: number\n /**\n * Alternative presentation of the IDE\n */\n variant?: 'default' | 'glass'\n} & BaseProps<HTMLDivElement>\n\nconst _IDERoot = memo(\n ({children, className, 'data-testid': testId, height, variant = 'default', ...rest}: PropsWithChildren<IDEProps>) => {\n const [animationIsPaused, setAnimationIsPaused] = useState(false)\n const [chatAnimationIsDone, setChatAnimationIsDone] = useState(false)\n const [editorAnimationIsDone, setEditorAnimationIsDone] = useState(false)\n const chatRef = useRef<IDEChatHandle>(null)\n const editorRef = useRef<IDEEditorHandle>(null)\n\n useEffect(() => {\n if (chatAnimationIsDone && editorAnimationIsDone) {\n setAnimationIsPaused(false)\n }\n }, [chatAnimationIsDone, editorAnimationIsDone])\n\n const childrenArray = useMemo(() => Children.toArray(children), [children])\n\n const ChatChild = childrenArray.find(\n (child): child is React.ReactElement<React.ComponentProps<typeof IDE.Chat>> =>\n isValidElement(child) && child.type === IDE.Chat,\n )\n const hasChatChild = !!ChatChild\n const ClonedChatChild = hasChatChild\n ? React.cloneElement(ChatChild, {\n ref: chatRef,\n 'data-testid': testId || testIds.chat,\n animationIsPaused,\n setAnimationIsDone: setChatAnimationIsDone,\n })\n : null\n\n const EditorChild = childrenArray.find(\n (child): child is React.ReactElement<React.ComponentProps<typeof IDE.Editor>> =>\n isValidElement(child) && child.type === IDE.Editor,\n )\n const hasEditorChild = !!EditorChild\n const ClonedEditorChild = hasEditorChild\n ? React.cloneElement(EditorChild, {\n ref: editorRef,\n 'data-testid': testId || testIds.editor,\n animationIsPaused,\n setAnimationIsDone: setEditorAnimationIsDone,\n })\n : null\n\n // If a child exists, we need to account for its animation state\n const allAnimationsAreDone = (!hasChatChild || chatAnimationIsDone) && (!hasEditorChild || editorAnimationIsDone)\n\n const onPlayPause = useCallback(\n isPlaying => {\n if (allAnimationsAreDone) {\n setChatAnimationIsDone(false)\n setEditorAnimationIsDone(false)\n chatRef.current?.resetAnimation()\n editorRef.current?.resetAnimation()\n } else {\n setAnimationIsPaused(!isPlaying)\n }\n },\n [allAnimationsAreDone],\n )\n\n return (\n <section\n data-testid={testId || testIds.root}\n className={clsx(\n styles[`IDE--${variant}`],\n hasChatChild && hasEditorChild && styles['IDE--full-exp'],\n hasChatChild && !hasEditorChild && styles['IDE--chat-only'],\n className,\n )}\n >\n <div {...rest}>\n <div\n className={styles['IDE__inner']}\n style={{['--brand-IDE-height' as string]: height ? `${height}px` : undefined}}\n >\n <div className={styles.IDE__main}>\n {ClonedChatChild}\n {ClonedEditorChild}\n </div>\n <PlayPauseButton isPlaying={!animationIsPaused && !allAnimationsAreDone} onPlayPause={onPlayPause} />\n </div>\n </div>\n </section>\n )\n },\n)\n\ntype IDEChatProps = {\n /**\n * The chat script\n */\n script: IDEChatMessage[]\n /**\n * Alternative description of the chat script for users of assistive technologies.\n */\n alternativeText: string\n /**\n * The delay between messages\n */\n animationDelay?: number\n /**\n * Test id for the IDE\n */\n 'data-testid'?: string\n /**\n * Internal prop used for controlling the animation state\n */\n animationIsPaused?: boolean\n /**\n * Internal prop used for controlling the animation state\n */\n setAnimationIsDone?: (isDone: boolean) => void\n} & BaseProps<HTMLElement>\n\ntype IDEChatMessageUser = {\n role: 'user'\n avatar: string\n}\n\ntype IDEChatMessageAssistant = {\n role: 'assistant'\n}\n\n/**\n * @deprecated IDEChatMessage is deprecated and will be removed in a future release.\n */\nexport type IDEChatMessage = {handle: string; message: string; codeSnippet?: string; highlighter?: 'hljs'} & (\n | IDEChatMessageUser\n | IDEChatMessageAssistant\n)\n\ntype IDEChatHandle = HTMLElement & {\n resetAnimation: () => void\n}\n\nconst _Chat = memo(\n forwardRef<IDEChatHandle, IDEChatProps>(\n (\n {\n 'data-testid': testId,\n script,\n animationDelay = 3000,\n alternativeText,\n animationIsPaused,\n setAnimationIsDone,\n ...rest\n },\n forwardedRef,\n ) => {\n const ref = useProvidedRefOrCreate(forwardedRef)\n const delay = animationDelay\n const messagesRef = useRef<HTMLDivElement>(null)\n const [scheduledAnimations, setScheduledAnimations] = useState<IDEChatAnimation[]>([])\n const isPausedRef = useRef(animationIsPaused)\n isPausedRef.current = animationIsPaused\n\n const scrollIntoParentView = useCallback((element: Element | null) => {\n if (!element || !messagesRef.current) return\n const container = messagesRef.current\n const elementRect = element.getBoundingClientRect()\n const containerRect = container.getBoundingClientRect()\n\n if (elementRect.top < containerRect.top || elementRect.bottom > containerRect.bottom) {\n container.scrollTop += elementRect.top - containerRect.top\n }\n }, [])\n\n const scheduleAnimations = useCallback(() => {\n if (!script.length) return\n\n const allMessages = document.querySelectorAll(`.${styles['IDE__Chat-message']}`)\n const defaultMessages = Array.from(allMessages).slice(0, 1)\n const newerMessages = Array.from(allMessages).slice(1)\n\n const animations: IDEChatAnimation[] = []\n\n if (defaultMessages[0]) {\n animations.push({\n delay: 0,\n action: 'show',\n element: defaultMessages[0] as HTMLElement,\n })\n }\n\n animations.push({\n delay: delay / 4,\n action: 'delay',\n })\n\n for (const [index, message] of newerMessages.entries()) {\n animations.push({\n delay,\n action: 'show',\n element: message as HTMLElement,\n shouldScroll: index % 2 === 0,\n shouldFadePrevious: true,\n messageIndex: index,\n isLast: index === newerMessages.length - 1,\n })\n }\n\n animations.push({\n delay: 100,\n isDone: true,\n })\n\n setScheduledAnimations(animations)\n }, [script, delay])\n\n const resetAnimation = useCallback(() => {\n setAnimationIsDone?.(false)\n\n const allMessages = document.querySelectorAll(`.${styles['IDE__Chat-message']}`)\n for (const message of allMessages) {\n message.classList.remove(styles['IDE__Chat-message--visible'], styles['IDE__Chat-message--faded'])\n }\n\n if (messagesRef.current) {\n messagesRef.current.scrollTop = 0\n }\n\n scheduleAnimations()\n }, [scheduleAnimations, setAnimationIsDone])\n\n useImperativeHandle(ref, () => {\n if (!ref.current) {\n return {\n resetAnimation,\n } as IDEChatHandle\n }\n\n return {\n ...ref.current,\n resetAnimation,\n }\n })\n\n useEffect(() => {\n scheduleAnimations()\n }, [scheduleAnimations])\n\n useEffect(() => {\n let prevTimestamp = -1\n let animationId: number\n let currentIndex = 0\n\n const animate: FrameRequestCallback = timestamp => {\n if (currentIndex >= scheduledAnimations.length || isPausedRef.current) {\n if (isPausedRef.current) {\n // Reset timestamp when paused so we don't accumulate time\n prevTimestamp = -1\n }\n animationId = requestAnimationFrame(animate)\n return\n }\n\n const diff = prevTimestamp === -1 ? 0 : timestamp - prevTimestamp\n prevTimestamp = timestamp\n\n const nextAnimation = scheduledAnimations[currentIndex]\n\n if (nextAnimation.isDone) {\n setAnimationIsDone?.(true)\n return\n }\n\n nextAnimation.delay -= diff\n\n if (nextAnimation.delay <= 0) {\n if (nextAnimation.action === 'delay') {\n // Just a delay, no visual action needed\n currentIndex++\n } else {\n const animation = nextAnimation as IDEChatAnimationWithElement\n\n if (animation.shouldScroll) {\n scrollIntoParentView(animation.element)\n }\n\n if (animation.shouldFadePrevious) {\n // Fade previous messages\n const allMessages = document.querySelectorAll(`.${styles['IDE__Chat-message']}`)\n const defaultMessages = Array.from(allMessages).slice(0, 1)\n const newerMessages = Array.from(allMessages).slice(1)\n\n for (const defaultMessage of defaultMessages) {\n defaultMessage.classList.add(styles['IDE__Chat-message--faded'])\n }\n\n const filteredNewerMessage = newerMessages.filter((_, i) => i < (animation.messageIndex ?? 0))\n for (const filteredMessage of filteredNewerMessage) {\n filteredMessage.classList.add(styles['IDE__Chat-message--faded'])\n }\n\n // Remove faded class from all messages at the end\n if (animation.isLast) {\n setTimeout(() => {\n for (const defaultMessage of defaultMessages) {\n defaultMessage.classList.remove(styles['IDE__Chat-message--faded'])\n }\n for (const newerMessage of newerMessages) {\n newerMessage.classList.remove(styles['IDE__Chat-message--faded'])\n }\n }, 100)\n }\n }\n\n animation.element.classList.add(styles['IDE__Chat-message--visible'])\n currentIndex++\n }\n }\n\n animationId = requestAnimationFrame(animate)\n }\n\n animationId = requestAnimationFrame(animate)\n\n return () => {\n if (animationId) {\n cancelAnimationFrame(animationId)\n }\n }\n }, [scheduledAnimations, scrollIntoParentView, setAnimationIsDone])\n\n return (\n <section ref={ref} className={styles.IDE__Chat} data-testid={testId || testIds.chat} {...rest}>\n <span className=\"visually-hidden\">{alternativeText}</span>\n <div className={styles['IDE__Chat-wrapper']} aria-hidden>\n <div ref={messagesRef} className={styles['IDE__Chat-messages']}>\n {script.length &&\n script.map((message, index) => (\n <div\n id={`IDE__Chat-message-${index}`}\n key={index}\n className={clsx(\n styles['IDE__Chat-message'],\n message.role === 'user' && styles['IDE__Chat-message--user'],\n )}\n >\n <div className={styles['IDE__Chat-message-user']}>\n {message.role === 'user' ? (\n <Avatar src={message.avatar} alt={message.handle} />\n ) : (\n <CopilotIcon size={24} />\n )}\n <Text as=\"p\" size=\"100\" weight=\"medium\" className={styles['IDE__Chat-message-handle']}>\n {message.handle}\n </Text>\n </div>\n <div className={styles['IDE__Chat-message-content']}>\n <div className={styles['IDE__Chat-message-text']}>{message.message}</div>\n\n {message.highlighter && message.codeSnippet && (\n <pre\n className={styles['IDE__Chat-message-snippet']}\n dangerouslySetInnerHTML={{__html: message.codeSnippet}}\n />\n )}\n\n {!message.highlighter && message.codeSnippet && (\n <pre className={styles['IDE__Chat-message-snippet']}>{message.codeSnippet}</pre>\n )}\n </div>\n </div>\n ))}\n </div>\n <div className={styles['IDE__Chat-input-area']}>\n <TextInput\n disabled\n className={styles['IDE__Chat-input']}\n fullWidth\n placeholder=\"Ask a question or type '/' for commands.\"\n trailingVisual={<PaperAirplaneIcon className={styles['IDE__Chat-input-icon']} />}\n />\n </div>\n </div>\n </section>\n )\n },\n ),\n)\n\ntype IDEEditorProps = {\n /**\n * The index of the active tab.\n */\n activeTab?: number\n\n /**\n * An array of IDE editor files.\n */\n files: IDEEditorFile[]\n\n /**\n * Determines whether line numbers should be shown in the editor.\n */\n showLineNumbers?: boolean\n\n /**\n * Controls the size of the editor text.\n */\n size?: 'small' | 'medium' | 'large'\n\n /**\n * Used for triggering animation externally.\n */\n triggerAnimation?: boolean\n\n /**\n * Test id for the IDE.\n */\n 'data-testid'?: string\n /**\n * Enable user customisation of the icons used in file tabs.\n */\n tabIcons?: IDEEditorTabIcon\n /**\n * Internal prop used for controlling the animation state\n */\n animationIsPaused?: boolean\n /**\n * Internal prop used for controlling the animation state\n */\n setAnimationIsDone?: (isDone: boolean) => void\n} & BaseProps<HTMLDivElement>\n\n/**\n * @deprecated IDEEditorFile is deprecated and will be removed in a future release.\n */\nexport type IDEEditorFile = {\n name: string\n /**\n * Alternative description of the code for users of assistive technologies.\n */\n alternativeText: string\n /**\n * Controls line at which the Copilot suggestion begins\n */\n suggestedLineStart?: number\n code: string | string[]\n highlighter?: 'hljs' // add additional highlighters as needed\n}\n\ntype IDEEditorTabIcon = Record<string, string>\n\nconst iconBaseUrl = 'https://github.com/primer/brand/assets'\n\nexport const IDEDefaultIconMap: IDEEditorTabIcon = {\n py: `${iconBaseUrl}/13340707/7ca66487-d958-4c30-acbc-397f7a6169b7`,\n ts: `${iconBaseUrl}/13340707/2a7b87cf-b522-4ab5-a127-5a2c69bd0a89`,\n js: `${iconBaseUrl}/13340707/5a7bfffa-af38-4e32-ab39-a9e7efbcc7c6`,\n jsx: `${iconBaseUrl}/13340707/d975a978-dbc7-4626-b995-c00cac9bc132`,\n hs: `${iconBaseUrl}/13340707/826843ce-424b-4693-84d3-a43e4b7f1280`,\n html: `${iconBaseUrl}/13340707/f5b03413-b8f4-4cd5-9d91-6b574ada14ed`,\n css: `${iconBaseUrl}/13340707/3df2f0ba-daff-4b76-8492-f5773c515369`,\n scss: `${iconBaseUrl}/13340707/a1d21f2e-c813-4211-8d9a-2869c1968e9a`,\n json: `${iconBaseUrl}/13340707/ca21068e-8c27-4b84-9a1d-b965b49b3568`,\n md: `${iconBaseUrl}/13340707/39e7ff2b-9d0a-47e9-9686-bed51800084c`,\n yml: `${iconBaseUrl}/13340707/afb28101-1352-444f-8a8e-419b6883132f`,\n yaml: `${iconBaseUrl}/13340707/afb28101-1352-444f-8a8e-419b6883132f`,\n txt: `${iconBaseUrl}/13340707/7c52da20-1fe2-496c-b4bb-6ea61d0fe3dd`,\n sh: `${iconBaseUrl}/13340707/549ce181-4541-4811-8712-a9c5abd8eeae`,\n sql: `${iconBaseUrl}/13340707/b2b73a2e-e4e1-47c8-aabc-c204836244b8`,\n // Add additional default icons as needed\n // Note: These can also be customised and extended by end user using the tabIcons prop\n}\n\nexport const IDEFileExtensions = Object.keys(IDEDefaultIconMap)\n\ntype IDEAnimation = {\n delay: number\n isDone?: boolean\n tab: string | null\n} & ({elements: HTMLElement[]} | {isDone: true})\n\ntype IDEChatAnimation = {\n delay: number\n isDone?: boolean\n} & (\n | {\n action: 'show'\n element: HTMLElement\n shouldScroll?: boolean\n shouldFadePrevious?: boolean\n messageIndex?: number\n isLast?: boolean\n }\n | {action: 'delay'}\n | {isDone: true}\n)\n\ntype IDEChatAnimationWithElement = {\n delay: number\n action: 'show'\n element: HTMLElement\n shouldScroll?: boolean\n shouldFadePrevious?: boolean\n messageIndex?: number\n isLast?: boolean\n}\n\ntype IDEEditorHandle = HTMLElement & {\n resetAnimation: () => void\n}\n\nconst _Editor = memo(\n forwardRef<IDEEditorHandle, IDEEditorProps>(\n (\n {\n activeTab = 0,\n 'data-testid': testId,\n files,\n triggerAnimation = false,\n showLineNumbers = true,\n size = 'medium',\n tabIcons = IDEDefaultIconMap,\n animationIsPaused,\n setAnimationIsDone,\n ...rest\n },\n forwardedRef,\n ) => {\n const ref = useProvidedRefOrCreate(forwardedRef)\n const presRef = useRef<HTMLDivElement>(null)\n const [scheduledAnimations, setScheduledAnimations] = useState<IDEAnimation[]>([])\n const isPausedRef = useRef(animationIsPaused)\n isPausedRef.current = animationIsPaused\n\n const tabs = useTabs({\n defaultTab: activeTab.toString(),\n autoActivate: true,\n onTabActivate: (_, activeTabRef) => {\n activeTabRef?.scrollIntoView({behavior: 'smooth', block: 'nearest', inline: 'start'})\n resetAnimation()\n },\n })\n\n const scheduleAnimations = useCallback(() => {\n if (!presRef.current) return\n\n const pres = presRef.current.querySelectorAll<HTMLPreElement>('pre:not([data-has-suggestion=\"true\"])')\n const copilotSuggestions = presRef.current.querySelectorAll<HTMLPreElement>('pre[data-has-suggestion=\"true\"]')\n\n const animations: IDEAnimation[] = []\n\n for (const pre of pres) {\n animations.push({\n delay: 200,\n elements: [pre],\n tab: tabs.activeTab,\n })\n }\n\n animations.push({\n delay: 1000,\n elements: Array.from(copilotSuggestions),\n tab: tabs.activeTab,\n })\n\n animations.push({\n delay: 200,\n isDone: true,\n tab: tabs.activeTab,\n })\n\n setScheduledAnimations(animations)\n }, [tabs.activeTab])\n\n const resetAnimation = useCallback(() => {\n setScheduledAnimations([])\n setAnimationIsDone?.(false)\n\n const pres = presRef.current?.querySelectorAll('pre')\n if (pres) {\n for (const pre of pres) {\n pre.classList.remove(animationStyles['Animation--active'])\n }\n }\n\n scheduleAnimations()\n }, [scheduleAnimations, setAnimationIsDone])\n\n useImperativeHandle(ref, () => {\n if (!ref.current) {\n return {\n resetAnimation,\n } as IDEEditorHandle\n }\n\n return {\n ...ref.current,\n resetAnimation,\n }\n })\n\n useEffect(() => {\n scheduleAnimations()\n }, [scheduleAnimations, triggerAnimation])\n\n useEffect(() => {\n let prevTimestamp = -1\n let animationId: number\n let currentIndex = 0\n\n const animate: FrameRequestCallback = timestamp => {\n if (currentIndex >= scheduledAnimations.length || tabs.activeTab === null) {\n return\n }\n\n if (isPausedRef.current) {\n // Reset timestamp when paused so we don't accumulate time\n prevTimestamp = -1\n animationId = requestAnimationFrame(animate)\n return\n }\n\n const diff = prevTimestamp === -1 ? 0 : timestamp - prevTimestamp\n prevTimestamp = timestamp\n\n const nextAnimation = scheduledAnimations[currentIndex]\n\n if (nextAnimation.isDone) {\n setAnimationIsDone?.(true)\n return\n }\n\n if (nextAnimation.tab !== tabs.activeTab) {\n return\n }\n\n nextAnimation.delay -= diff\n\n if (nextAnimation.delay <= 0) {\n for (const element of nextAnimation.elements) {\n element.classList.add(animationStyles['Animation--active'])\n }\n currentIndex++\n }\n\n animationId = requestAnimationFrame(animate)\n }\n\n animationId = requestAnimationFrame(animate)\n\n return () => {\n if (animationId) {\n cancelAnimationFrame(animationId)\n }\n }\n }, [scheduledAnimations, setAnimationIsDone, tabs.activeTab])\n\n return (\n <div\n className={clsx(styles.IDE__Editor, styles[`IDE__Editor--${size}`])}\n data-testid={testId || testIds.editor}\n {...rest}\n >\n <div\n className={styles['IDE__Editor-tabs']}\n data-testid={testIds.editorTabs}\n {...tabs.getTabListProps({label: 'files'})}\n >\n {files.map((file, index) => {\n const language = file.name.split('.').pop()\n const isActiveTab = tabs.activeTab === index.toString()\n\n return (\n <button\n {...tabs.getTabProps(index.toString())}\n key={file.name}\n className={clsx(styles['IDE__Editor-tab'], isActiveTab && styles['IDE__Editor-tab--active'])}\n >\n {language && (\n <img\n className={styles['IDE__Editor-tab-icon']}\n alt=\"\"\n width={16}\n height={16}\n src={tabIcons[language]}\n />\n )}\n {file.name}\n </button>\n )\n })}\n </div>\n <div className={styles['IDE__Editor-content']}>\n {files.map((file, fileIndex) => (\n <div {...tabs.getTabPanelProps(fileIndex.toString())} key={file.name}>\n <span className=\"visually-hidden\">{file.alternativeText}</span>\n <div className={styles['IDE__Editor-content-wrapper']} aria-hidden=\"true\">\n {showLineNumbers && (\n <div className={styles['IDE__Editor-lineNumbers']}>\n {(Array.isArray(file.code) ? file.code : file.code.split('\\n')).map((_, index) => (\n <div key={index} className={styles['IDE__Editor-lineNumber']}>\n {index + 1}\n </div>\n ))}\n </div>\n )}\n <div\n ref={tabs.activeTab === fileIndex.toString() ? presRef : null}\n data-testid={testIds.editorContent}\n className={styles['IDE__Editor-content-inner']}\n >\n {Array.isArray(file.code) ? (\n (file.code as string[]).map((line, index) => {\n const isSuggestion = index + 1 >= (file.suggestedLineStart ?? Infinity)\n return (\n <React.Fragment key={line + index}>\n <pre\n key={index}\n className={clsx(\n styles['IDE__Editor-pane'],\n index + 1 < (file.suggestedLineStart ?? Infinity) &&\n animationStyles['Animation--slide-in-right'],\n isSuggestion && animationStyles['Animation--slide-in-down'],\n isSuggestion && styles['IDE__Editor-pane--suggested'],\n )}\n dangerouslySetInnerHTML={{__html: line === '' ? '&nbsp;' : line}}\n data-has-suggestion={isSuggestion}\n />\n {isSuggestion && index === file.code.length - 1 && (\n <pre\n className={clsx(\n animationStyles['Animation--slide-in-down'],\n styles['IDE__Chat-copilot-indicator'],\n )}\n data-has-suggestion={isSuggestion}\n >\n <CopilotIcon size={24} className={styles['IDE__Chat-copilot-indicator-label']} />\n <Text as=\"span\" className={styles['IDE__Chat-copilot-indicator-label']}>\n Copilot\n </Text>\n </pre>\n )}\n </React.Fragment>\n )\n })\n ) : (\n <pre\n className={clsx(styles['IDE__Editor-pane'], animationStyles['Animation--slide-in-right'])}\n dangerouslySetInnerHTML={{__html: file.code}}\n />\n )}\n </div>\n </div>\n </div>\n ))}\n </div>\n </div>\n )\n },\n ),\n)\n\nconst PauseIcon = () => (\n <svg fill=\"none\" role=\"presentation\" aria-hidden=\"true\" viewBox=\"3.17 2.28 13.7 15.42\">\n <path\n d=\"M4.66148 2.3125C3.83593 2.3125 3.16669 2.98174 3.16669 3.80729V16.1927C3.16669 17.0183 3.83593 17.6875 4.66148 17.6875H7.65106C8.47662 17.6875 9.14586 17.0183 9.14586 16.1927V3.80729C9.14586 2.98174 8.47662 2.3125 7.65106 2.3125H4.66148ZM4.44794 3.80729C4.44794 3.68936 4.54355 3.59375 4.66148 3.59375H7.65106C7.769 3.59375 7.86461 3.68936 7.86461 3.80729V16.1927C7.86461 16.3106 7.769 16.4062 7.65106 16.4062H4.66148C4.54355 16.4062 4.44794 16.3106 4.44794 16.1927V3.80729ZM12.349 2.3125C11.5235 2.3125 10.8542 2.98174 10.8542 3.80729V16.1927C10.8542 17.0183 11.5235 17.6875 12.349 17.6875H15.3386C16.1642 17.6875 16.8334 17.0183 16.8334 16.1927V3.80729C16.8334 2.98174 16.1642 2.3125 15.3386 2.3125H12.349ZM12.1355 3.80729C12.1355 3.68936 12.2311 3.59375 12.349 3.59375H15.3386C15.4565 3.59375 15.5521 3.68936 15.5521 3.80729V16.1927C15.5521 16.3106 15.4565 16.4062 15.3386 16.4062H12.349C12.2311 16.4062 12.1355 16.3106 12.1355 16.1927V3.80729Z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n)\nconst PlayIcon = () => (\n <svg fill=\"none\" role=\"presentation\" aria-hidden=\"true\" viewBox=\"4.02 2.3 14.43 15.4\">\n <path\n d=\"M6.24905 3.69194C5.82218 3.45967 5.30225 3.76868 5.30225 4.25466V15.7452C5.30225 16.2312 5.82218 16.5402 6.24906 16.3079L16.8079 10.5626C17.2538 10.32 17.2538 9.67983 16.8079 9.4372L6.24905 3.69194ZM4.021 4.25466C4.021 2.79672 5.58078 1.86969 6.86142 2.56651L17.4203 8.31176C18.758 9.03966 18.758 10.9602 17.4203 11.6881L6.86143 17.4333C5.58079 18.1301 4.021 17.2031 4.021 15.7452V4.25466Z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n)\n\ntype PlayPauseButtonProps = {\n isPlaying?: boolean\n onPlayPause?: (isPlaying: boolean) => void\n}\n\nconst PlayPauseButton = ({isPlaying = true, onPlayPause}: PlayPauseButtonProps) => {\n const onClick = useCallback(() => {\n onPlayPause?.(!isPlaying)\n }, [onPlayPause, isPlaying])\n\n /**\n * aria-pressed is intentionally not used here to prevent potentially confusing screen reader announcements\n * eg \"Play animation on\" or \"Pause animation off\"\n */\n return (\n <button\n className={styles['IDE__play-pause-button']}\n type=\"button\"\n onClick={onClick}\n aria-label={isPlaying ? 'Pause animation' : 'Play animation'}\n >\n {isPlaying ? <PauseIcon /> : <PlayIcon />}\n </button>\n )\n}\n\n/**\n * Use IDE to display a decorative editor component\n * @deprecated IDE is deprecated and will be removed in a future release.\n * @see https://primer.style/brand/components/IDE\n */\nexport const IDE = Object.assign(_IDERoot, {\n testIds,\n Chat: _Chat,\n Editor: _Editor,\n})\n"],"mappings":";;;;;;;;;;;;;;AA+BA,IAAM,IAAU;CACd,MAAM;CACN,IAAI,OAAO;AACT,SAAO,GAAG,KAAK,KAAK;;CAEtB,IAAI,SAAS;AACX,SAAO,GAAG,KAAK,KAAK;;CAEtB,IAAI,gBAAgB;AAClB,SAAO,GAAG,KAAK,OAAO;;CAExB,IAAI,aAAa;AACf,SAAO,GAAG,KAAK,OAAO;;CAEzB,EAoBK,IAAW,GACd,EAAC,aAAU,cAAW,eAAe,GAAQ,WAAQ,aAAU,WAAW,GAAG,QAAuC;CACnH,IAAM,CAAC,GAAmB,KAAwB,EAAS,GAAM,EAC3D,CAAC,GAAqB,KAA0B,EAAS,GAAM,EAC/D,CAAC,GAAu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CACN;GACE,CAAA,CACF;;EAGX,CACF,EAEK,UACJ,kBAAC,OAAD;CAAK,MAAK;CAAO,MAAK;CAAe,eAAY;CAAO,SAAQ;WAC9D,kBAAC,QAAD;EACE,GAAE;EACF,MAAK;EACC,CAAA;CACJ,CAAA,EAEF,UACJ,kBAAC,OAAD;CAAK,MAAK;CAAO,MAAK;CAAe,eAAY;CAAO,SAAQ;WAC9D,kBAAC,QAAD;EACE,GAAE;EACF,MAAK;EACC,CAAA;CACJ,CAAA,EAQF,KAAmB,EAAC,eAAY,IAAM,qBAAuC;CACjF,IAAM,IAAU,QAAkB;AAChC,MAAc,CAAC,EAAU;IACxB,CAAC,GAAa,EAAU,CAAC;AAM5B,QACE,kBAAC,UAAD;EACE,WAAW,EAAO;EAClB,MAAK;EACI;EACT,cAAY,IAAY,oBAAoB;YAE/B,EAAZ,IAAa,IAAgB,GAAjB,EAAa,CAAe;EAClC,CAAA;GASA,IAAM,OAAO,OAAO,GAAU;CACzC;CACA,MAAM;CACN,QAAQ;CACT,CAAC"}
1
+ {"version":3,"file":"IDE.js","names":[],"sources":["../../src/IDE/IDE.tsx"],"sourcesContent":["import {CopilotIcon, PaperAirplaneIcon} from '@primer/octicons-react'\nimport {clsx} from 'clsx'\nimport React, {\n Children,\n forwardRef,\n isValidElement,\n memo,\n type PropsWithChildren,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from 'react'\n\nimport {Avatar, Text, TextInput} from '..'\nimport type {BaseProps} from '../component-helpers'\nimport {useTabs} from '../hooks/useTabs'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/ide/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport animationStyles from '../animation/Animation.module.css'\nimport styles from './IDE.module.css'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\nconst testIds = {\n root: 'IDE',\n get chat() {\n return `${this.root}-chat`\n },\n get editor() {\n return `${this.root}-editor`\n },\n get editorContent() {\n return `${this.editor}-content`\n },\n get editorTabs() {\n return `${this.editor}-tab`\n },\n}\n\n/**\n * @deprecated IDEProps is deprecated and will be removed in a future release.\n */\nexport type IDEProps = {\n /**\n * Test id for the IDE\n */\n 'data-testid'?: string\n /**\n * The optionally configurable height of the IDE\n */\n height?: number\n /**\n * Alternative presentation of the IDE\n */\n variant?: 'default' | 'glass'\n} & BaseProps<HTMLDivElement>\n\nconst _IDERoot = memo(\n ({children, className, 'data-testid': testId, height, variant = 'default', ...rest}: PropsWithChildren<IDEProps>) => {\n const [animationIsPaused, setAnimationIsPaused] = useState(false)\n const [chatAnimationIsDone, setChatAnimationIsDone] = useState(false)\n const [editorAnimationIsDone, setEditorAnimationIsDone] = useState(false)\n const chatRef = useRef<IDEChatHandle>(null)\n const editorRef = useRef<IDEEditorHandle>(null)\n\n useEffect(() => {\n if (chatAnimationIsDone && editorAnimationIsDone) {\n setAnimationIsPaused(false)\n }\n }, [chatAnimationIsDone, editorAnimationIsDone])\n\n const childrenArray = useMemo(() => Children.toArray(children), [children])\n\n const ChatChild = childrenArray.find(\n (child): child is React.ReactElement<React.ComponentProps<typeof IDE.Chat>> =>\n isValidElement(child) && child.type === IDE.Chat,\n )\n const hasChatChild = !!ChatChild\n const ClonedChatChild = hasChatChild\n ? React.cloneElement(ChatChild, {\n ref: chatRef,\n 'data-testid': testId || testIds.chat,\n animationIsPaused,\n setAnimationIsDone: setChatAnimationIsDone,\n })\n : null\n\n const EditorChild = childrenArray.find(\n (child): child is React.ReactElement<React.ComponentProps<typeof IDE.Editor>> =>\n isValidElement(child) && child.type === IDE.Editor,\n )\n const hasEditorChild = !!EditorChild\n const ClonedEditorChild = hasEditorChild\n ? React.cloneElement(EditorChild, {\n ref: editorRef,\n 'data-testid': testId || testIds.editor,\n animationIsPaused,\n setAnimationIsDone: setEditorAnimationIsDone,\n })\n : null\n\n // If a child exists, we need to account for its animation state\n const allAnimationsAreDone = (!hasChatChild || chatAnimationIsDone) && (!hasEditorChild || editorAnimationIsDone)\n\n const onPlayPause = useCallback(\n isPlaying => {\n if (allAnimationsAreDone) {\n setChatAnimationIsDone(false)\n setEditorAnimationIsDone(false)\n chatRef.current?.resetAnimation()\n editorRef.current?.resetAnimation()\n } else {\n setAnimationIsPaused(!isPlaying)\n }\n },\n [allAnimationsAreDone],\n )\n\n return (\n <section\n data-testid={testId || testIds.root}\n className={clsx(\n styles[`IDE--${variant}`],\n hasChatChild && hasEditorChild && styles['IDE--full-exp'],\n hasChatChild && !hasEditorChild && styles['IDE--chat-only'],\n className,\n )}\n >\n <div {...rest}>\n <div\n className={styles['IDE__inner']}\n style={{['--brand-IDE-height' as string]: height ? `${height}px` : undefined}}\n >\n <div className={styles.IDE__main}>\n {ClonedChatChild}\n {ClonedEditorChild}\n </div>\n <PlayPauseButton isPlaying={!animationIsPaused && !allAnimationsAreDone} onPlayPause={onPlayPause} />\n </div>\n </div>\n </section>\n )\n },\n)\n\ntype IDEChatProps = {\n /**\n * The chat script\n */\n script: IDEChatMessage[]\n /**\n * Alternative description of the chat script for users of assistive technologies.\n */\n alternativeText: string\n /**\n * The delay between messages\n */\n animationDelay?: number\n /**\n * Test id for the IDE\n */\n 'data-testid'?: string\n /**\n * Internal prop used for controlling the animation state\n */\n animationIsPaused?: boolean\n /**\n * Internal prop used for controlling the animation state\n */\n setAnimationIsDone?: (isDone: boolean) => void\n} & BaseProps<HTMLElement>\n\ntype IDEChatMessageUser = {\n role: 'user'\n avatar: string\n}\n\ntype IDEChatMessageAssistant = {\n role: 'assistant'\n}\n\n/**\n * @deprecated IDEChatMessage is deprecated and will be removed in a future release.\n */\nexport type IDEChatMessage = {handle: string; message: string; codeSnippet?: string; highlighter?: 'hljs'} & (\n | IDEChatMessageUser\n | IDEChatMessageAssistant\n)\n\ntype IDEChatHandle = HTMLElement & {\n resetAnimation: () => void\n}\n\nconst _Chat = memo(\n forwardRef<IDEChatHandle, IDEChatProps>(\n (\n {\n 'data-testid': testId,\n script,\n animationDelay = 3000,\n alternativeText,\n animationIsPaused,\n setAnimationIsDone,\n ...rest\n },\n forwardedRef,\n ) => {\n const ref = useProvidedRefOrCreate(forwardedRef)\n const delay = animationDelay\n const messagesRef = useRef<HTMLDivElement>(null)\n const [scheduledAnimations, setScheduledAnimations] = useState<IDEChatAnimation[]>([])\n const isPausedRef = useRef(animationIsPaused)\n isPausedRef.current = animationIsPaused\n\n const scrollIntoParentView = useCallback((element: Element | null) => {\n if (!element || !messagesRef.current) return\n const container = messagesRef.current\n const elementRect = element.getBoundingClientRect()\n const containerRect = container.getBoundingClientRect()\n\n if (elementRect.top < containerRect.top || elementRect.bottom > containerRect.bottom) {\n container.scrollTop += elementRect.top - containerRect.top\n }\n }, [])\n\n const scheduleAnimations = useCallback(() => {\n if (!script.length) return\n\n const allMessages = document.querySelectorAll(`.${styles['IDE__Chat-message']}`)\n const defaultMessages = Array.from(allMessages).slice(0, 1)\n const newerMessages = Array.from(allMessages).slice(1)\n\n const animations: IDEChatAnimation[] = []\n\n if (defaultMessages[0]) {\n animations.push({\n delay: 0,\n action: 'show',\n element: defaultMessages[0] as HTMLElement,\n })\n }\n\n animations.push({\n delay: delay / 4,\n action: 'delay',\n })\n\n for (const [index, message] of newerMessages.entries()) {\n animations.push({\n delay,\n action: 'show',\n element: message as HTMLElement,\n shouldScroll: index % 2 === 0,\n shouldFadePrevious: true,\n messageIndex: index,\n isLast: index === newerMessages.length - 1,\n })\n }\n\n animations.push({\n delay: 100,\n isDone: true,\n })\n\n setScheduledAnimations(animations)\n }, [script, delay])\n\n const resetAnimation = useCallback(() => {\n setAnimationIsDone?.(false)\n\n const allMessages = document.querySelectorAll(`.${styles['IDE__Chat-message']}`)\n for (const message of allMessages) {\n message.classList.remove(styles['IDE__Chat-message--visible'], styles['IDE__Chat-message--faded'])\n }\n\n if (messagesRef.current) {\n messagesRef.current.scrollTop = 0\n }\n\n scheduleAnimations()\n }, [scheduleAnimations, setAnimationIsDone])\n\n useImperativeHandle(ref, () => {\n if (!ref.current) {\n return {\n resetAnimation,\n } as IDEChatHandle\n }\n\n return {\n ...ref.current,\n resetAnimation,\n }\n })\n\n useEffect(() => {\n scheduleAnimations()\n }, [scheduleAnimations])\n\n useEffect(() => {\n let prevTimestamp = -1\n let animationId: number\n let currentIndex = 0\n\n const animate: FrameRequestCallback = timestamp => {\n if (currentIndex >= scheduledAnimations.length || isPausedRef.current) {\n if (isPausedRef.current) {\n // Reset timestamp when paused so we don't accumulate time\n prevTimestamp = -1\n }\n animationId = requestAnimationFrame(animate)\n return\n }\n\n const diff = prevTimestamp === -1 ? 0 : timestamp - prevTimestamp\n prevTimestamp = timestamp\n\n const nextAnimation = scheduledAnimations[currentIndex]\n\n if (nextAnimation.isDone) {\n setAnimationIsDone?.(true)\n return\n }\n\n nextAnimation.delay -= diff\n\n if (nextAnimation.delay <= 0) {\n if (nextAnimation.action === 'delay') {\n // Just a delay, no visual action needed\n currentIndex++\n } else {\n const animation = nextAnimation as IDEChatAnimationWithElement\n\n if (animation.shouldScroll) {\n scrollIntoParentView(animation.element)\n }\n\n if (animation.shouldFadePrevious) {\n // Fade previous messages\n const allMessages = document.querySelectorAll(`.${styles['IDE__Chat-message']}`)\n const defaultMessages = Array.from(allMessages).slice(0, 1)\n const newerMessages = Array.from(allMessages).slice(1)\n\n for (const defaultMessage of defaultMessages) {\n defaultMessage.classList.add(styles['IDE__Chat-message--faded'])\n }\n\n const filteredNewerMessage = newerMessages.filter((_, i) => i < (animation.messageIndex ?? 0))\n for (const filteredMessage of filteredNewerMessage) {\n filteredMessage.classList.add(styles['IDE__Chat-message--faded'])\n }\n\n // Remove faded class from all messages at the end\n if (animation.isLast) {\n setTimeout(() => {\n for (const defaultMessage of defaultMessages) {\n defaultMessage.classList.remove(styles['IDE__Chat-message--faded'])\n }\n for (const newerMessage of newerMessages) {\n newerMessage.classList.remove(styles['IDE__Chat-message--faded'])\n }\n }, 100)\n }\n }\n\n animation.element.classList.add(styles['IDE__Chat-message--visible'])\n currentIndex++\n }\n }\n\n animationId = requestAnimationFrame(animate)\n }\n\n animationId = requestAnimationFrame(animate)\n\n return () => {\n if (animationId) {\n cancelAnimationFrame(animationId)\n }\n }\n }, [scheduledAnimations, scrollIntoParentView, setAnimationIsDone])\n\n return (\n <section ref={ref} className={styles.IDE__Chat} data-testid={testId || testIds.chat} {...rest}>\n <span className=\"visually-hidden\">{alternativeText}</span>\n <div className={styles['IDE__Chat-wrapper']} aria-hidden>\n <div ref={messagesRef} className={styles['IDE__Chat-messages']}>\n {script.length &&\n script.map((message, index) => (\n <div\n id={`IDE__Chat-message-${index}`}\n key={index}\n className={clsx(\n styles['IDE__Chat-message'],\n message.role === 'user' && styles['IDE__Chat-message--user'],\n )}\n >\n <div className={styles['IDE__Chat-message-user']}>\n {message.role === 'user' ? (\n <Avatar src={message.avatar} alt={message.handle} />\n ) : (\n <CopilotIcon size={24} />\n )}\n <Text as=\"p\" size=\"100\" weight=\"medium\" className={styles['IDE__Chat-message-handle']}>\n {message.handle}\n </Text>\n </div>\n <div className={styles['IDE__Chat-message-content']}>\n <div className={styles['IDE__Chat-message-text']}>{message.message}</div>\n\n {message.highlighter && message.codeSnippet && (\n <pre\n className={styles['IDE__Chat-message-snippet']}\n dangerouslySetInnerHTML={{__html: message.codeSnippet}}\n />\n )}\n\n {!message.highlighter && message.codeSnippet && (\n <pre className={styles['IDE__Chat-message-snippet']}>{message.codeSnippet}</pre>\n )}\n </div>\n </div>\n ))}\n </div>\n <div className={styles['IDE__Chat-input-area']}>\n <TextInput\n disabled\n className={styles['IDE__Chat-input']}\n fullWidth\n placeholder=\"Ask a question or type '/' for commands.\"\n trailingVisual={<PaperAirplaneIcon className={styles['IDE__Chat-input-icon']} />}\n />\n </div>\n </div>\n </section>\n )\n },\n ),\n)\n\ntype IDEEditorProps = {\n /**\n * The index of the active tab.\n */\n activeTab?: number\n\n /**\n * An array of IDE editor files.\n */\n files: IDEEditorFile[]\n\n /**\n * Determines whether line numbers should be shown in the editor.\n */\n showLineNumbers?: boolean\n\n /**\n * Controls the size of the editor text.\n */\n size?: 'small' | 'medium' | 'large'\n\n /**\n * Used for triggering animation externally.\n */\n triggerAnimation?: boolean\n\n /**\n * Test id for the IDE.\n */\n 'data-testid'?: string\n /**\n * Enable user customisation of the icons used in file tabs.\n */\n tabIcons?: IDEEditorTabIcon\n /**\n * Internal prop used for controlling the animation state\n */\n animationIsPaused?: boolean\n /**\n * Internal prop used for controlling the animation state\n */\n setAnimationIsDone?: (isDone: boolean) => void\n} & BaseProps<HTMLDivElement>\n\n/**\n * @deprecated IDEEditorFile is deprecated and will be removed in a future release.\n */\nexport type IDEEditorFile = {\n name: string\n /**\n * Alternative description of the code for users of assistive technologies.\n */\n alternativeText: string\n /**\n * Controls line at which the Copilot suggestion begins\n */\n suggestedLineStart?: number\n code: string | string[]\n highlighter?: 'hljs' // add additional highlighters as needed\n}\n\ntype IDEEditorTabIcon = Record<string, string>\n\nconst iconBaseUrl = 'https://github.com/primer/brand/assets'\n\nexport const IDEDefaultIconMap: IDEEditorTabIcon = {\n py: `${iconBaseUrl}/13340707/7ca66487-d958-4c30-acbc-397f7a6169b7`,\n ts: `${iconBaseUrl}/13340707/2a7b87cf-b522-4ab5-a127-5a2c69bd0a89`,\n js: `${iconBaseUrl}/13340707/5a7bfffa-af38-4e32-ab39-a9e7efbcc7c6`,\n jsx: `${iconBaseUrl}/13340707/d975a978-dbc7-4626-b995-c00cac9bc132`,\n hs: `${iconBaseUrl}/13340707/826843ce-424b-4693-84d3-a43e4b7f1280`,\n html: `${iconBaseUrl}/13340707/f5b03413-b8f4-4cd5-9d91-6b574ada14ed`,\n css: `${iconBaseUrl}/13340707/3df2f0ba-daff-4b76-8492-f5773c515369`,\n scss: `${iconBaseUrl}/13340707/a1d21f2e-c813-4211-8d9a-2869c1968e9a`,\n json: `${iconBaseUrl}/13340707/ca21068e-8c27-4b84-9a1d-b965b49b3568`,\n md: `${iconBaseUrl}/13340707/39e7ff2b-9d0a-47e9-9686-bed51800084c`,\n yml: `${iconBaseUrl}/13340707/afb28101-1352-444f-8a8e-419b6883132f`,\n yaml: `${iconBaseUrl}/13340707/afb28101-1352-444f-8a8e-419b6883132f`,\n txt: `${iconBaseUrl}/13340707/7c52da20-1fe2-496c-b4bb-6ea61d0fe3dd`,\n sh: `${iconBaseUrl}/13340707/549ce181-4541-4811-8712-a9c5abd8eeae`,\n sql: `${iconBaseUrl}/13340707/b2b73a2e-e4e1-47c8-aabc-c204836244b8`,\n // Add additional default icons as needed\n // Note: These can also be customised and extended by end user using the tabIcons prop\n}\n\nexport const IDEFileExtensions = Object.keys(IDEDefaultIconMap)\n\ntype IDEAnimation = {\n delay: number\n isDone?: boolean\n tab: string | null\n} & ({elements: HTMLElement[]} | {isDone: true})\n\ntype IDEChatAnimation = {\n delay: number\n isDone?: boolean\n} & (\n | {\n action: 'show'\n element: HTMLElement\n shouldScroll?: boolean\n shouldFadePrevious?: boolean\n messageIndex?: number\n isLast?: boolean\n }\n | {action: 'delay'}\n | {isDone: true}\n)\n\ntype IDEChatAnimationWithElement = {\n delay: number\n action: 'show'\n element: HTMLElement\n shouldScroll?: boolean\n shouldFadePrevious?: boolean\n messageIndex?: number\n isLast?: boolean\n}\n\ntype IDEEditorHandle = HTMLElement & {\n resetAnimation: () => void\n}\n\nconst _Editor = memo(\n forwardRef<IDEEditorHandle, IDEEditorProps>(\n (\n {\n activeTab = 0,\n 'data-testid': testId,\n files,\n triggerAnimation = false,\n showLineNumbers = true,\n size = 'medium',\n tabIcons = IDEDefaultIconMap,\n animationIsPaused,\n setAnimationIsDone,\n ...rest\n },\n forwardedRef,\n ) => {\n const ref = useProvidedRefOrCreate(forwardedRef)\n const presRef = useRef<HTMLDivElement>(null)\n const [scheduledAnimations, setScheduledAnimations] = useState<IDEAnimation[]>([])\n const isPausedRef = useRef(animationIsPaused)\n isPausedRef.current = animationIsPaused\n\n const tabs = useTabs({\n defaultTab: activeTab.toString(),\n autoActivate: true,\n onTabActivate: (_, activeTabRef) => {\n activeTabRef?.scrollIntoView({behavior: 'smooth', block: 'nearest', inline: 'start'})\n resetAnimation()\n },\n })\n\n const scheduleAnimations = useCallback(() => {\n if (!presRef.current) return\n\n const pres = presRef.current.querySelectorAll<HTMLPreElement>('pre:not([data-has-suggestion=\"true\"])')\n const copilotSuggestions = presRef.current.querySelectorAll<HTMLPreElement>('pre[data-has-suggestion=\"true\"]')\n\n const animations: IDEAnimation[] = []\n\n for (const pre of pres) {\n animations.push({\n delay: 200,\n elements: [pre],\n tab: tabs.activeTab,\n })\n }\n\n animations.push({\n delay: 1000,\n elements: Array.from(copilotSuggestions),\n tab: tabs.activeTab,\n })\n\n animations.push({\n delay: 200,\n isDone: true,\n tab: tabs.activeTab,\n })\n\n setScheduledAnimations(animations)\n }, [tabs.activeTab])\n\n const resetAnimation = useCallback(() => {\n setScheduledAnimations([])\n setAnimationIsDone?.(false)\n\n const pres = presRef.current?.querySelectorAll('pre')\n if (pres) {\n for (const pre of pres) {\n pre.classList.remove(animationStyles['Animation--active'])\n }\n }\n\n scheduleAnimations()\n }, [scheduleAnimations, setAnimationIsDone])\n\n useImperativeHandle(ref, () => {\n if (!ref.current) {\n return {\n resetAnimation,\n } as IDEEditorHandle\n }\n\n return {\n ...ref.current,\n resetAnimation,\n }\n })\n\n useEffect(() => {\n scheduleAnimations()\n }, [scheduleAnimations, triggerAnimation])\n\n useEffect(() => {\n let prevTimestamp = -1\n let animationId: number\n let currentIndex = 0\n\n const animate: FrameRequestCallback = timestamp => {\n if (currentIndex >= scheduledAnimations.length || tabs.activeTab === null) {\n return\n }\n\n if (isPausedRef.current) {\n // Reset timestamp when paused so we don't accumulate time\n prevTimestamp = -1\n animationId = requestAnimationFrame(animate)\n return\n }\n\n const diff = prevTimestamp === -1 ? 0 : timestamp - prevTimestamp\n prevTimestamp = timestamp\n\n const nextAnimation = scheduledAnimations[currentIndex]\n\n if (nextAnimation.isDone) {\n setAnimationIsDone?.(true)\n return\n }\n\n if (nextAnimation.tab !== tabs.activeTab) {\n return\n }\n\n nextAnimation.delay -= diff\n\n if (nextAnimation.delay <= 0) {\n for (const element of nextAnimation.elements) {\n element.classList.add(animationStyles['Animation--active'])\n }\n currentIndex++\n }\n\n animationId = requestAnimationFrame(animate)\n }\n\n animationId = requestAnimationFrame(animate)\n\n return () => {\n if (animationId) {\n cancelAnimationFrame(animationId)\n }\n }\n }, [scheduledAnimations, setAnimationIsDone, tabs.activeTab])\n\n return (\n <div\n className={clsx(styles.IDE__Editor, styles[`IDE__Editor--${size}`])}\n data-testid={testId || testIds.editor}\n {...rest}\n >\n <div\n className={styles['IDE__Editor-tabs']}\n data-testid={testIds.editorTabs}\n {...tabs.getTabListProps({label: 'files'})}\n >\n {files.map((file, index) => {\n const language = file.name.split('.').pop()\n const isActiveTab = tabs.activeTab === index.toString()\n\n return (\n <button\n {...tabs.getTabProps(index.toString())}\n key={file.name}\n className={clsx(styles['IDE__Editor-tab'], isActiveTab && styles['IDE__Editor-tab--active'])}\n >\n {language && (\n <img\n className={styles['IDE__Editor-tab-icon']}\n alt=\"\"\n width={16}\n height={16}\n src={tabIcons[language]}\n />\n )}\n {file.name}\n </button>\n )\n })}\n </div>\n <div className={styles['IDE__Editor-content']}>\n {files.map((file, fileIndex) => (\n <div {...tabs.getTabPanelProps(fileIndex.toString())} key={file.name}>\n <span className=\"visually-hidden\">{file.alternativeText}</span>\n <div className={styles['IDE__Editor-content-wrapper']} aria-hidden=\"true\">\n {showLineNumbers && (\n <div className={styles['IDE__Editor-lineNumbers']}>\n {(Array.isArray(file.code) ? file.code : file.code.split('\\n')).map((_, index) => (\n <div key={index} className={styles['IDE__Editor-lineNumber']}>\n {index + 1}\n </div>\n ))}\n </div>\n )}\n <div\n ref={tabs.activeTab === fileIndex.toString() ? presRef : null}\n data-testid={testIds.editorContent}\n className={styles['IDE__Editor-content-inner']}\n >\n {Array.isArray(file.code) ? (\n (file.code as string[]).map((line, index) => {\n const isSuggestion = index + 1 >= (file.suggestedLineStart ?? Infinity)\n return (\n <React.Fragment key={line + index}>\n <pre\n key={index}\n className={clsx(\n styles['IDE__Editor-pane'],\n index + 1 < (file.suggestedLineStart ?? Infinity) &&\n animationStyles['Animation--slide-in-right'],\n isSuggestion && animationStyles['Animation--slide-in-down'],\n isSuggestion && styles['IDE__Editor-pane--suggested'],\n )}\n dangerouslySetInnerHTML={{__html: line === '' ? '&nbsp;' : line}}\n data-has-suggestion={isSuggestion}\n />\n {isSuggestion && index === file.code.length - 1 && (\n <pre\n className={clsx(\n animationStyles['Animation--slide-in-down'],\n styles['IDE__Chat-copilot-indicator'],\n )}\n data-has-suggestion={isSuggestion}\n >\n <CopilotIcon size={24} className={styles['IDE__Chat-copilot-indicator-label']} />\n <Text as=\"span\" className={styles['IDE__Chat-copilot-indicator-label']}>\n Copilot\n </Text>\n </pre>\n )}\n </React.Fragment>\n )\n })\n ) : (\n <pre\n className={clsx(styles['IDE__Editor-pane'], animationStyles['Animation--slide-in-right'])}\n dangerouslySetInnerHTML={{__html: file.code}}\n />\n )}\n </div>\n </div>\n </div>\n ))}\n </div>\n </div>\n )\n },\n ),\n)\n\nconst PauseIcon = () => (\n <svg fill=\"none\" role=\"presentation\" aria-hidden=\"true\" viewBox=\"3.17 2.28 13.7 15.42\">\n <path\n d=\"M4.66148 2.3125C3.83593 2.3125 3.16669 2.98174 3.16669 3.80729V16.1927C3.16669 17.0183 3.83593 17.6875 4.66148 17.6875H7.65106C8.47662 17.6875 9.14586 17.0183 9.14586 16.1927V3.80729C9.14586 2.98174 8.47662 2.3125 7.65106 2.3125H4.66148ZM4.44794 3.80729C4.44794 3.68936 4.54355 3.59375 4.66148 3.59375H7.65106C7.769 3.59375 7.86461 3.68936 7.86461 3.80729V16.1927C7.86461 16.3106 7.769 16.4062 7.65106 16.4062H4.66148C4.54355 16.4062 4.44794 16.3106 4.44794 16.1927V3.80729ZM12.349 2.3125C11.5235 2.3125 10.8542 2.98174 10.8542 3.80729V16.1927C10.8542 17.0183 11.5235 17.6875 12.349 17.6875H15.3386C16.1642 17.6875 16.8334 17.0183 16.8334 16.1927V3.80729C16.8334 2.98174 16.1642 2.3125 15.3386 2.3125H12.349ZM12.1355 3.80729C12.1355 3.68936 12.2311 3.59375 12.349 3.59375H15.3386C15.4565 3.59375 15.5521 3.68936 15.5521 3.80729V16.1927C15.5521 16.3106 15.4565 16.4062 15.3386 16.4062H12.349C12.2311 16.4062 12.1355 16.3106 12.1355 16.1927V3.80729Z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n)\nconst PlayIcon = () => (\n <svg fill=\"none\" role=\"presentation\" aria-hidden=\"true\" viewBox=\"4.02 2.3 14.43 15.4\">\n <path\n d=\"M6.24905 3.69194C5.82218 3.45967 5.30225 3.76868 5.30225 4.25466V15.7452C5.30225 16.2312 5.82218 16.5402 6.24906 16.3079L16.8079 10.5626C17.2538 10.32 17.2538 9.67983 16.8079 9.4372L6.24905 3.69194ZM4.021 4.25466C4.021 2.79672 5.58078 1.86969 6.86142 2.56651L17.4203 8.31176C18.758 9.03966 18.758 10.9602 17.4203 11.6881L6.86143 17.4333C5.58079 18.1301 4.021 17.2031 4.021 15.7452V4.25466Z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n)\n\ntype PlayPauseButtonProps = {\n isPlaying?: boolean\n onPlayPause?: (isPlaying: boolean) => void\n}\n\nconst PlayPauseButton = ({isPlaying = true, onPlayPause}: PlayPauseButtonProps) => {\n const onClick = useCallback(() => {\n onPlayPause?.(!isPlaying)\n }, [onPlayPause, isPlaying])\n\n /**\n * aria-pressed is intentionally not used here to prevent potentially confusing screen reader announcements\n * eg \"Play animation on\" or \"Pause animation off\"\n */\n return (\n <button\n className={styles['IDE__play-pause-button']}\n type=\"button\"\n onClick={onClick}\n aria-label={isPlaying ? 'Pause animation' : 'Play animation'}\n >\n {isPlaying ? <PauseIcon /> : <PlayIcon />}\n </button>\n )\n}\n\n/**\n * Use IDE to display a decorative editor component\n * @deprecated IDE is deprecated and will be removed in a future release.\n * @see https://primer.style/brand/components/IDE\n */\nexport const IDE = Object.assign(_IDERoot, {\n testIds,\n Chat: _Chat,\n Editor: _Editor,\n})\n"],"mappings":";;;;;;;;;;;;;;;AA+BA,IAAM,IAAU;CACd,MAAM;CACN,IAAI,OAAO;EACT,OAAO,GAAG,KAAK,KAAK;CACtB;CACA,IAAI,SAAS;EACX,OAAO,GAAG,KAAK,KAAK;CACtB;CACA,IAAI,gBAAgB;EAClB,OAAO,GAAG,KAAK,OAAO;CACxB;CACA,IAAI,aAAa;EACf,OAAO,GAAG,KAAK,OAAO;CACxB;AACF,GAoBM,IAAW,GACd,EAAC,aAAU,cAAW,eAAe,GAAQ,WAAQ,aAAU,WAAW,GAAG,QAAuC;CACnH,IAAM,CAAC,GAAmB,KAAwB,EAAS,EAAK,GAC1D,CAAC,GAAqB,KAA0B,EAAS,EAAK,GAC9D,CAAC,GAAuB,KAA4B,EAAS,EAAK,GAClE,IAAU,EAAsB,IAAI,GACpC,IAAY,EAAwB,IAAI;CAE9C,QAAgB;EACd,AAAI,KAAuB,KACzB,EAAqB,EAAK;CAE9B,GAAG,CAAC,GAAqB,CAAqB,CAAC;CAE/C,IAAM,IAAgB,QAAc,EAAS,QAAQ,CAAQ,GAAG,CAAC,CAAQ,CAAC,GAEpE,IAAY,EAAc,MAC7B,MACC,EAAe,CAAK,KAAK,EAAM,SAAS,EAAI,IAChD,GACM,IAAe,CAAC,CAAC,GACjB,IAAkB,IACpB,EAAM,aAAa,GAAW;EAC5B,KAAK;EACL,eAAe,KAAU,EAAQ;EACjC;EACA,oBAAoB;CACtB,CAAC,IACD,MAEE,IAAc,EAAc,MAC/B,MACC,EAAe,CAAK,KAAK,EAAM,SAAS,EAAI,MAChD,GACM,IAAiB,CAAC,CAAC,GACnB,IAAoB,IACtB,EAAM,aAAa,GAAa;EAC9B,KAAK;EACL,eAAe,KAAU,EAAQ;EACjC;EACA,oBAAoB;CACtB,CAAC,IACD,MA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I;EACT,cAAY,IAAY,oBAAoB;YAE/B,EAAZ,IAAa,IAAgB,GAAjB,CAAY,CAAe;CAClC,CAAA;AAEZ,GAOa,IAAM,OAAO,OAAO,GAAU;CACzC;CACA,MAAM;CACN,QAAQ;AACV,CAAC"}
@@ -1,9 +1,10 @@
1
- import './IDE.module-CFxIRObF.css';var e = {
2
- IDE__inner: "Primer_Brand__IDE-module__IDE__inner___NnTQJ",
1
+ import './IDE.module-CFxIRObF.css';//#region src/IDE/IDE.module.css
2
+ var e = "Primer_Brand__IDE-module__IDE__inner___NnTQJ", t = "Primer_Brand__IDE-module__IDE__main___U46Bi", n = "Primer_Brand__IDE-module__IDE__Chat___FjTgp", r = "Primer_Brand__IDE-module__IDE__Editor___Shd_o", i = "Primer_Brand__IDE-module__IDE___d_Ai4", a = {
3
+ IDE__inner: e,
3
4
  "IDE--glass": "Primer_Brand__IDE-module__IDE--glass___kIHmW",
4
- IDE__main: "Primer_Brand__IDE-module__IDE__main___U46Bi",
5
+ IDE__main: t,
5
6
  "IDE--default": "Primer_Brand__IDE-module__IDE--default___1AD3a",
6
- IDE__Chat: "Primer_Brand__IDE-module__IDE__Chat___FjTgp",
7
+ IDE__Chat: n,
7
8
  "IDE--full-exp": "Primer_Brand__IDE-module__IDE--full-exp___eJnjX",
8
9
  "IDE__Chat-wrapper": "Primer_Brand__IDE-module__IDE__Chat-wrapper___OBbrc",
9
10
  "IDE__Chat-message-user": "Primer_Brand__IDE-module__IDE__Chat-message-user___tz2Ml",
@@ -15,7 +16,7 @@ import './IDE.module-CFxIRObF.css';var e = {
15
16
  "IDE__Chat-message": "Primer_Brand__IDE-module__IDE__Chat-message___mpKSJ",
16
17
  "IDE__Chat-message--visible": "Primer_Brand__IDE-module__IDE__Chat-message--visible___t7sQR",
17
18
  "IDE__Chat-message--faded": "Primer_Brand__IDE-module__IDE__Chat-message--faded___Zj1bF",
18
- IDE__Editor: "Primer_Brand__IDE-module__IDE__Editor___Shd_o",
19
+ IDE__Editor: r,
19
20
  "IDE__Editor-tabs": "Primer_Brand__IDE-module__IDE__Editor-tabs___iGJJ2",
20
21
  "IDE__Editor-tab": "Primer_Brand__IDE-module__IDE__Editor-tab___dJvu_",
21
22
  "IDE__Editor-tab--active": "Primer_Brand__IDE-module__IDE__Editor-tab--active___gdbpw",
@@ -36,9 +37,9 @@ import './IDE.module-CFxIRObF.css';var e = {
36
37
  "IDE__Chat-copilot-indicator-label": "Primer_Brand__IDE-module__IDE__Chat-copilot-indicator-label___Ly0_c",
37
38
  "IDE__play-pause-button": "Primer_Brand__IDE-module__IDE__play-pause-button___z27k0",
38
39
  "IDE--chat-only": "Primer_Brand__IDE-module__IDE--chat-only____CFK8",
39
- IDE: "Primer_Brand__IDE-module__IDE___d_Ai4"
40
+ IDE: i
40
41
  };
41
42
  //#endregion
42
- export { e as default };
43
+ export { i as IDE, n as IDE__Chat, r as IDE__Editor, e as IDE__inner, t as IDE__main, a as default };
43
44
 
44
45
  //# sourceMappingURL=IDE.module.js.map
@@ -1,4 +1,4 @@
1
- import { type ReactElement, type SVGAttributes } from 'react';
1
+ import React, { type ReactElement, type SVGAttributes } from 'react';
2
2
  import { type Icon as OcticonProps } from '@primer/octicons-react';
3
3
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon/colors.css';
4
4
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css';
@@ -19,5 +19,5 @@ 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) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const Icon: ({ icon: Octicon, className, color, hasBackground, size, ...rest }: IconProps) => React.JSX.Element;
23
23
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../src/Icon/Icon.tsx"],"names":[],"mappings":"AA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
  import { Colors as t } from "../constants.js";
3
3
  import n from "./Icon.module.js";
4
- import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon/colors-CctMSz17.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes-Bjhpbkke.css';/* empty css */
4
+ import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes-Bjhpbkke.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon/colors-CctMSz17.css';/* empty css */
5
5
  /* empty css */
6
6
  import r from "react";
7
7
  import { jsx as i } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","names":[],"sources":["../../src/Icon/Icon.tsx"],"sourcesContent":["import React, {type ReactElement, type SVGAttributes} from 'react'\nimport styles from './Icon.module.css'\nimport {clsx} from 'clsx'\nimport {type Icon as OcticonProps} from '@primer/octicons-react'\nimport {Colors} from '../constants'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon/colors.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css'\n\nexport const namedIconSizes = ['small', 'medium', 'large'] as const\nexport type NamedIconSize = (typeof namedIconSizes)[number]\n\nexport const numericIconSizes = [20, 24, 28, 32, 36, 40, 44] as const\nexport type NumericIconSize = (typeof numericIconSizes)[number]\nconst isNumericIconSize = (size: IconSize): size is NumericIconSize => typeof size === 'number'\n\nexport const iconSizes = [...namedIconSizes, ...numericIconSizes] as const\nexport type IconSize = (typeof iconSizes)[number]\n\nexport const defaultIconSize = iconSizes[0]\nexport const iconSizeMap: Record<NamedIconSize, NumericIconSize> = {\n small: 20,\n medium: 32,\n large: 44,\n}\n\nconst getIconSize = (size: IconSize): NumericIconSize => {\n if (isNumericIconSize(size)) {\n return size\n }\n\n return iconSizeMap[size]\n}\n\nexport const iconColors = Colors\nexport type IconColor = (typeof iconColors)[number]\nexport const defaultIconColor = iconColors[0]\n\nexport type IconProps = SVGAttributes<SVGElement> & {\n icon: OcticonProps | ReactElement<OcticonProps>\n color?: IconColor\n hasBackground?: boolean\n size?: IconSize\n}\n\nexport const Icon = ({\n icon: Octicon,\n className,\n color = defaultIconColor,\n hasBackground = false,\n size = defaultIconSize,\n ...rest\n}: IconProps) => {\n const iconSize = getIconSize(size)\n\n const iconProps = {\n size: iconSize,\n ...rest,\n }\n\n const iconComponent = React.isValidElement(Octicon) ? (\n React.cloneElement(Octicon as ReactElement<OcticonProps>, {\n ...Octicon.props,\n ...iconProps,\n })\n ) : (\n <Octicon {...iconProps} />\n )\n\n return (\n <div\n className={clsx(\n styles['Icon'],\n styles[`Icon--size-${iconSize}`],\n styles[`Icon--color-${color}`],\n hasBackground && [styles['Icon--background'], styles[`Icon--background-color-${color}`]],\n className,\n )}\n >\n {iconComponent}\n </div>\n )\n}\n"],"mappings":";;;;;;;;AASA,IAAa,IAAiB;CAAC;CAAS;CAAU;CAAQ,EAG7C,IAAmB;CAAC;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAG,EAEtD,KAAqB,MAA4C,OAAO,KAAS,UAE1E,IAAY,CAAC,GAAG,GAAgB,GAAG,EAAiB,EAGpD,IAAkB,EAAU,IAC5B,IAAsD;CACjE,OAAO;CACP,QAAQ;CACR,OAAO;CACR,EAEK,KAAe,MACf,EAAkB,EAAK,GAClB,IAGF,EAAY,IAGR,IAAa,GAEb,IAAmB,EAAW,IAS9B,KAAQ,EACnB,MAAM,GACN,cACA,WAAQ,GACR,mBAAgB,IAChB,UAAO,GACP,GAAG,QACY;CACf,IAAM,IAAW,EAAY,EAAK,EAE5B,IAAY;EAChB,MAAM;EACN,GAAG;EACJ,EAEK,IAAgB,EAAM,eAAe,EAAQ,GACjD,EAAM,aAAa,GAAuC;EACxD,GAAG,EAAQ;EACX,GAAG;EACJ,CAAC,GAEF,kBAAC,GAAD,EAAS,GAAI,GAAa,CAAA;AAG5B,QACE,kBAAC,OAAD;EACE,WAAW,EACT,EAAO,MACP,EAAO,cAAc,MACrB,EAAO,eAAe,MACtB,KAAiB,CAAC,EAAO,qBAAqB,EAAO,0BAA0B,KAAS,EACxF,EACD;YAEA;EACG,CAAA"}
1
+ {"version":3,"file":"Icon.js","names":[],"sources":["../../src/Icon/Icon.tsx"],"sourcesContent":["import React, {type ReactElement, type SVGAttributes} from 'react'\nimport styles from './Icon.module.css'\nimport {clsx} from 'clsx'\nimport {type Icon as OcticonProps} from '@primer/octicons-react'\nimport {Colors} from '../constants'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon/colors.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css'\n\nexport const namedIconSizes = ['small', 'medium', 'large'] as const\nexport type NamedIconSize = (typeof namedIconSizes)[number]\n\nexport const numericIconSizes = [20, 24, 28, 32, 36, 40, 44] as const\nexport type NumericIconSize = (typeof numericIconSizes)[number]\nconst isNumericIconSize = (size: IconSize): size is NumericIconSize => typeof size === 'number'\n\nexport const iconSizes = [...namedIconSizes, ...numericIconSizes] as const\nexport type IconSize = (typeof iconSizes)[number]\n\nexport const defaultIconSize = iconSizes[0]\nexport const iconSizeMap: Record<NamedIconSize, NumericIconSize> = {\n small: 20,\n medium: 32,\n large: 44,\n}\n\nconst getIconSize = (size: IconSize): NumericIconSize => {\n if (isNumericIconSize(size)) {\n return size\n }\n\n return iconSizeMap[size]\n}\n\nexport const iconColors = Colors\nexport type IconColor = (typeof iconColors)[number]\nexport const defaultIconColor = iconColors[0]\n\nexport type IconProps = SVGAttributes<SVGElement> & {\n icon: OcticonProps | ReactElement<OcticonProps>\n color?: IconColor\n hasBackground?: boolean\n size?: IconSize\n}\n\nexport const Icon = ({\n icon: Octicon,\n className,\n color = defaultIconColor,\n hasBackground = false,\n size = defaultIconSize,\n ...rest\n}: IconProps) => {\n const iconSize = getIconSize(size)\n\n const iconProps = {\n size: iconSize,\n ...rest,\n }\n\n const iconComponent = React.isValidElement(Octicon) ? (\n React.cloneElement(Octicon as ReactElement<OcticonProps>, {\n ...Octicon.props,\n ...iconProps,\n })\n ) : (\n <Octicon {...iconProps} />\n )\n\n return (\n <div\n className={clsx(\n styles['Icon'],\n styles[`Icon--size-${iconSize}`],\n styles[`Icon--color-${color}`],\n hasBackground && [styles['Icon--background'], styles[`Icon--background-color-${color}`]],\n className,\n )}\n >\n {iconComponent}\n </div>\n )\n}\n"],"mappings":";;;;;;;;AASA,IAAa,IAAiB;CAAC;CAAS;CAAU;AAAO,GAG5C,IAAmB;CAAC;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;AAAE,GAErD,KAAqB,MAA4C,OAAO,KAAS,UAE1E,IAAY,CAAC,GAAG,GAAgB,GAAG,CAAgB,GAGnD,IAAkB,EAAU,IAC5B,IAAsD;CACjE,OAAO;CACP,QAAQ;CACR,OAAO;AACT,GAEM,KAAe,MACf,EAAkB,CAAI,IACjB,IAGF,EAAY,IAGR,IAAa,GAEb,IAAmB,EAAW,IAS9B,KAAQ,EACnB,MAAM,GACN,cACA,WAAQ,GACR,mBAAgB,IAChB,UAAO,GACP,GAAG,QACY;CACf,IAAM,IAAW,EAAY,CAAI,GAE3B,IAAY;EAChB,MAAM;EACN,GAAG;CACL,GAEM,IAAgB,EAAM,eAAe,CAAO,IAChD,EAAM,aAAa,GAAuC;EACxD,GAAG,EAAQ;EACX,GAAG;CACL,CAAC,IAED,kBAAC,GAAD,EAAS,GAAI,EAAY,CAAA;CAG3B,OACE,kBAAC,OAAD;EACE,WAAW,EACT,EAAO,MACP,EAAO,cAAc,MACrB,EAAO,eAAe,MACtB,KAAiB,CAAC,EAAO,qBAAqB,EAAO,0BAA0B,IAAQ,GACvF,CACF;YAEC;CACE,CAAA;AAET"}
@@ -1,5 +1,6 @@
1
- import './Icon.module-UyYnXhrw.css';var e = {
2
- Icon: "Primer_Brand__Icon-module__Icon___aJJhk",
1
+ import './Icon.module-UyYnXhrw.css';//#region src/Icon/Icon.module.css
2
+ var e = "Primer_Brand__Icon-module__Icon___aJJhk", t = {
3
+ Icon: e,
3
4
  "Icon--size-20": "Primer_Brand__Icon-module__Icon--size-20___j3HnM",
4
5
  "Icon--size-24": "Primer_Brand__Icon-module__Icon--size-24___IMNie",
5
6
  "Icon--size-28": "Primer_Brand__Icon-module__Icon--size-28___a2UX9",
@@ -38,6 +39,6 @@ import './Icon.module-UyYnXhrw.css';var e = {
38
39
  "Icon--background-color-yellow": "Primer_Brand__Icon-module__Icon--background-color-yellow___uFZoS"
39
40
  };
40
41
  //#endregion
41
- export { e as default };
42
+ export { e as Icon, t as default };
42
43
 
43
44
  //# sourceMappingURL=Icon.module.js.map
@@ -21,5 +21,5 @@ 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) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const Image: ({ animate, aspectRatio, className, as, ref, alt, width, height, media, srcSet, style, borderRadius, ...rest }: ImageProps) => React.JSX.Element;
25
25
  //# sourceMappingURL=Image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../src/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAG9C,eAAO,MAAM,wBAAwB,yDAA0D,CAAA;AAC/F,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA;AAChF,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;AAE1E,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAChE,SAAS,CAAC,gBAAgB,CAAC,GAAG;IAC5B,GAA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CAAC,EAAE,gBAAgB,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IAId,YAAY,CAAC,EAAE,wBAAwB,CAAA;IACvC,MAAM,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,CAAA;CACnE,GAAG,CACA;IACE,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,MAAM,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,CAAA;CACnE,GACD;IACE,EAAE,EAAE,SAAS,CAAA;IACb,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;KACd,EAAE,CAAA;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB,CACJ,CAAA;AAeH,eAAO,MAAM,KAAK,GAAI,+GAcnB,UAAU,sBAoEZ,CAAA"}
@@ -1,4 +1,4 @@
1
- import e from "../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
2
2
  import { useAnimation as t } from "../animation/useAnimation.js";
3
3
  import n from "./Image.module.js";
4
4
  import "react";