@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,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import { BaseProps } from '../component-helpers';
3
3
  /**
4
4
  * Design tokens
@@ -13,7 +13,7 @@ export type TimelineItemProps = BaseProps<HTMLLIElement>;
13
13
  * Use Timeline to display a list of connected items as a vertical timeline.
14
14
  * @see https://primer.style/brand/components/Timeline
15
15
  */
16
- export declare const Timeline: (({ animate, className, children, fullWidth, ...rest }: PropsWithChildren<TimelineProps>) => import("react/jsx-runtime").JSX.Element) & {
17
- Item: ({ className, children, ...rest }: PropsWithChildren<TimelineItemProps>) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const Timeline: (({ animate, className, children, fullWidth, ...rest }: PropsWithChildren<TimelineProps>) => React.JSX.Element) & {
17
+ Item: ({ className, children, ...rest }: PropsWithChildren<TimelineItemProps>) => React.JSX.Element;
18
18
  };
19
19
  //# sourceMappingURL=Timeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,iBAAiB,EAAuB,MAAM,OAAO,CAAA;AAGpE,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAI9C;;GAEG;AACH,OAAO,4GAA4G,CAAA;AACnH,OAAO,+FAA+F,CAAA;AAEtG,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAA;AAmB/B,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,aAAa,CAAC,CAAA;AAwBxD;;;GAGG;AACH,eAAO,MAAM,QAAQ,0DA7C6D,iBAAiB,CAAC,aAAa,CAAC;6CAmBpE,iBAAiB,CAAC,iBAAiB,CAAC;CA4BhF,CAAA"}
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,iBAAiB,EAAuB,MAAM,OAAO,CAAA;AAGpE,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAI9C;;GAEG;AACH,OAAO,4GAA4G,CAAA;AACnH,OAAO,+FAA+F,CAAA;AAEtG,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAA;AAmB/B,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,aAAa,CAAC,CAAA;AAwBxD;;;GAGG;AACH,eAAO,MAAM,QAAQ,0DA7C6D,iBAAiB,CAAC,aAAa,CAAC;6CAmBpE,iBAAiB,CAAC,iBAAiB,CAAC;CA4BhF,CAAA"}
@@ -1,8 +1,8 @@
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 { Text as n } from "../Text/Text.js";
4
4
  import r from "./Timeline.module.js";
5
- import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes-DDIdeMJX.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/base-CXOJfjx4.css';/* empty css */
5
+ import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/base-CXOJfjx4.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes-DDIdeMJX.css';/* empty css */
6
6
  /* empty css */
7
7
  import i, { useCallback as a, useMemo as o } from "react";
8
8
  import { jsx as s } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.js","names":[],"sources":["../../src/Timeline/Timeline.tsx"],"sourcesContent":["import React, {PropsWithChildren, useMemo, useCallback} from 'react'\nimport {clsx} from 'clsx'\nimport styles from './Timeline.module.css'\nimport {BaseProps} from '../component-helpers'\nimport {useAnimation} from '../animation'\nimport {Text} from '../Text'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/timeline/base.css'\n\nexport type TimelineProps = {\n fullWidth?: boolean\n} & BaseProps<HTMLUListElement>\n\nconst TimelineBase = ({animate, className, children, fullWidth = false, ...rest}: PropsWithChildren<TimelineProps>) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const timelineClassName = clsx(\n animationClasses,\n styles.Timeline,\n fullWidth && styles['Timeline--full-width'],\n className,\n )\n\n return (\n <ul className={timelineClassName} style={{...animationInlineStyles}} {...rest}>\n {children}\n </ul>\n )\n}\n\nexport type TimelineItemProps = BaseProps<HTMLLIElement>\n\nconst Item = ({className, children, ...rest}: PropsWithChildren<TimelineItemProps>) => {\n const itemClassName = clsx(styles['Timeline__item'], className)\n const childrenArray = useMemo(() => React.Children.toArray(children), [children])\n\n const getConditionalVariant = useCallback(() => {\n if (childrenArray.some(child => React.isValidElement(child) && (child.type === 'b' || child.type === 'em'))) {\n return 'muted'\n }\n return 'default'\n }, [childrenArray])\n\n const defaultColor = childrenArray.length === 1 ? 'default' : getConditionalVariant()\n\n return (\n <li className={itemClassName} {...rest}>\n <Text className={styles['Timeline__item-text']} size=\"200\" variant={defaultColor}>\n {children}\n </Text>\n </li>\n )\n}\n\n/**\n * Use Timeline to display a list of connected items as a vertical timeline.\n * @see https://primer.style/brand/components/Timeline\n */\nexport const Timeline = Object.assign(TimelineBase, {\n Item,\n})\n"],"mappings":";;;;;;;;AA8DA,IAAa,IAAW,OAAO,QA7CT,EAAC,YAAS,cAAW,aAAU,eAAY,IAAO,GAAG,QAA4C;CACrH,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,EAAQ;AASxF,QACE,kBAAC,MAAD;EAAI,WARoB,EACxB,GACA,EAAO,UACP,KAAa,EAAO,yBACpB,EAIe;EAAmB,OAAO,EAAC,GAAG,GAAsB;EAAE,GAAI;EACtE;EACE,CAAA;GAgC2C,EAClD,OA3BY,EAAC,cAAW,aAAU,GAAG,QAAgD;CACrF,IAAM,IAAgB,EAAK,EAAO,gBAAmB,EAAU,EACzD,IAAgB,QAAc,EAAM,SAAS,QAAQ,EAAS,EAAE,CAAC,EAAS,CAAC,EAE3E,IAAwB,QACxB,EAAc,MAAK,MAAS,EAAM,eAAe,EAAM,KAAK,EAAM,SAAS,OAAO,EAAM,SAAS,MAAM,GAClG,UAEF,WACN,CAAC,EAAc,CAAC,EAEb,IAAe,EAAc,WAAW,IAAI,YAAY,GAAuB;AAErF,QACE,kBAAC,MAAD;EAAI,WAAW;EAAe,GAAI;YAChC,kBAAC,GAAD;GAAM,WAAW,EAAO;GAAwB,MAAK;GAAM,SAAS;GACjE;GACI,CAAA;EACJ,CAAA;GAUR,CAAC"}
1
+ {"version":3,"file":"Timeline.js","names":[],"sources":["../../src/Timeline/Timeline.tsx"],"sourcesContent":["import React, {PropsWithChildren, useMemo, useCallback} from 'react'\nimport {clsx} from 'clsx'\nimport styles from './Timeline.module.css'\nimport {BaseProps} from '../component-helpers'\nimport {useAnimation} from '../animation'\nimport {Text} from '../Text'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/timeline/base.css'\n\nexport type TimelineProps = {\n fullWidth?: boolean\n} & BaseProps<HTMLUListElement>\n\nconst TimelineBase = ({animate, className, children, fullWidth = false, ...rest}: PropsWithChildren<TimelineProps>) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const timelineClassName = clsx(\n animationClasses,\n styles.Timeline,\n fullWidth && styles['Timeline--full-width'],\n className,\n )\n\n return (\n <ul className={timelineClassName} style={{...animationInlineStyles}} {...rest}>\n {children}\n </ul>\n )\n}\n\nexport type TimelineItemProps = BaseProps<HTMLLIElement>\n\nconst Item = ({className, children, ...rest}: PropsWithChildren<TimelineItemProps>) => {\n const itemClassName = clsx(styles['Timeline__item'], className)\n const childrenArray = useMemo(() => React.Children.toArray(children), [children])\n\n const getConditionalVariant = useCallback(() => {\n if (childrenArray.some(child => React.isValidElement(child) && (child.type === 'b' || child.type === 'em'))) {\n return 'muted'\n }\n return 'default'\n }, [childrenArray])\n\n const defaultColor = childrenArray.length === 1 ? 'default' : getConditionalVariant()\n\n return (\n <li className={itemClassName} {...rest}>\n <Text className={styles['Timeline__item-text']} size=\"200\" variant={defaultColor}>\n {children}\n </Text>\n </li>\n )\n}\n\n/**\n * Use Timeline to display a list of connected items as a vertical timeline.\n * @see https://primer.style/brand/components/Timeline\n */\nexport const Timeline = Object.assign(TimelineBase, {\n Item,\n})\n"],"mappings":";;;;;;;;AA8DA,IAAa,IAAW,OAAO,QA7CT,EAAC,YAAS,cAAW,aAAU,eAAY,IAAO,GAAG,QAA4C;CACrH,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,CAAO;CASvF,OACE,kBAAC,MAAD;EAAI,WARoB,EACxB,GACA,EAAO,UACP,KAAa,EAAO,yBACpB,CAIe;EAAmB,OAAO,EAAC,GAAG,EAAqB;EAAG,GAAI;EACtE;CACC,CAAA;AAER,GA8BoD,EAClD,OA3BY,EAAC,cAAW,aAAU,GAAG,QAAgD;CACrF,IAAM,IAAgB,EAAK,EAAO,gBAAmB,CAAS,GACxD,IAAgB,QAAc,EAAM,SAAS,QAAQ,CAAQ,GAAG,CAAC,CAAQ,CAAC,GAE1E,IAAwB,QACxB,EAAc,MAAK,MAAS,EAAM,eAAe,CAAK,MAAM,EAAM,SAAS,OAAO,EAAM,SAAS,KAAK,IACjG,UAEF,WACN,CAAC,CAAa,CAAC,GAEZ,IAAe,EAAc,WAAW,IAAI,YAAY,EAAsB;CAEpF,OACE,kBAAC,MAAD;EAAI,WAAW;EAAe,GAAI;YAChC,kBAAC,GAAD;GAAM,WAAW,EAAO;GAAwB,MAAK;GAAM,SAAS;GACjE;EACG,CAAA;CACJ,CAAA;AAER,EAQA,CAAC"}
@@ -1,10 +1,11 @@
1
- import './Timeline.module-CQrQaD-z.css';var e = {
2
- Timeline: "Primer_Brand__Timeline-module__Timeline___BK9r7",
3
- Timeline__item: "Primer_Brand__Timeline-module__Timeline__item___1RcCO",
1
+ import './Timeline.module-CQrQaD-z.css';//#region src/Timeline/Timeline.module.css
2
+ var e = "Primer_Brand__Timeline-module__Timeline___BK9r7", t = "Primer_Brand__Timeline-module__Timeline__item___1RcCO", n = {
3
+ Timeline: e,
4
+ Timeline__item: t,
4
5
  "Timeline--full-width": "Primer_Brand__Timeline-module__Timeline--full-width___ezRqP",
5
6
  "Timeline__item-text": "Primer_Brand__Timeline-module__Timeline__item-text___5BcIe"
6
7
  };
7
8
  //#endregion
8
- export { e as default };
9
+ export { e as Timeline, t as Timeline__item, n as default };
9
10
 
10
11
  //# sourceMappingURL=Timeline.module.js.map
@@ -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 { Text as n } from "../Text/Text.js";
4
4
  import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes-5VT1x9eF.css';/* empty css */
@@ -1 +1 @@
1
- {"version":3,"file":"Token.js","names":[],"sources":["../../src/Token/Token.tsx"],"sourcesContent":["import {clsx} from 'clsx'\nimport React, {forwardRef, type Ref} from 'react'\n\nimport {Text} from '../Text'\nimport {useAnimation} from '../animation'\nimport type {BaseProps} from '../component-helpers'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css'\n\nimport styles from './Token.module.css'\n\nexport const TokenVariants = ['default', 'accent', 'outline', 'invisible'] as const\n\nexport const defaultTokenVariant = TokenVariants[0]\n\ntype TokenLeadingVisual = React.ReactElement | React.ComponentType<{className?: string}>\n\ntype TokenSharedProps = {\n /**\n * The leading visual appears before the Token content.\n * Pass an element to supply custom props, or a component type that accepts an optional className.\n */\n leadingVisual?: TokenLeadingVisual\n /**\n * The variant variations available in Token.\n */\n variant?: (typeof TokenVariants)[number]\n /**\n * The HTML element rendered by Token.\n */\n as?: 'span' | 'a'\n ['data-testid']?: string\n}\n\ntype TokenSpanProps = BaseProps<HTMLSpanElement> &\n TokenSharedProps & {\n as?: 'span'\n } & React.ComponentPropsWithoutRef<'span'>\n\ntype TokenAnchorProps = BaseProps<HTMLAnchorElement> &\n TokenSharedProps & {\n as: 'a'\n href: string\n } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>\n\nexport type TokenProps = TokenSpanProps | TokenAnchorProps\n\nconst testIds = {\n root: 'Token',\n get leadingVisual() {\n return `${this.root}-leading-visual`\n },\n}\n\nconst _Token = forwardRef<HTMLSpanElement | HTMLAnchorElement, TokenProps>(\n (\n {\n animate,\n variant = defaultTokenVariant,\n as = 'span',\n children,\n className,\n 'data-testid': testId,\n leadingVisual: LeadingVisual,\n style,\n ...props\n },\n ref: Ref<HTMLSpanElement | HTMLAnchorElement>,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const tokenClassName = clsx(\n animationClasses,\n styles.Token,\n LeadingVisual && styles['Token--hasLeadingVisual'],\n as === 'a' && styles['Token--interactive'],\n styles[`Token--variant-${variant}`],\n className,\n )\n\n const tokenChildren = (\n <>\n {LeadingVisual && (\n <span className={styles['Token__leading-visual']} data-testid={testIds.leadingVisual} aria-hidden=\"true\">\n {typeof LeadingVisual === 'function' ? (\n <LeadingVisual className={styles['Token__visual']} />\n ) : (\n React.isValidElement<{className?: string}>(LeadingVisual) &&\n React.cloneElement(LeadingVisual, {\n className: clsx(styles['Token__visual'], LeadingVisual.props.className),\n })\n )}\n </span>\n )}\n <Text as=\"span\" size=\"100\" className={styles['Token__label']}>\n {children}\n </Text>\n </>\n )\n\n if (as === 'a') {\n return (\n <a\n ref={ref as Ref<HTMLAnchorElement>}\n className={tokenClassName}\n data-testid={testId || testIds.root}\n style={{...animationInlineStyles, ...style}}\n {...props}\n >\n {tokenChildren}\n </a>\n )\n }\n\n return (\n <span\n ref={ref as Ref<HTMLSpanElement>}\n className={tokenClassName}\n data-testid={testId || testIds.root}\n style={{...animationInlineStyles, ...style}}\n {...props}\n >\n {tokenChildren}\n </span>\n )\n },\n)\n\n/**\n * Use Token to display compact metadata that describes or supports adjacent content.\n * @see https://primer.style/brand/components/Token\n */\nexport const Token = Object.assign(_Token, {testIds})\n"],"mappings":";;;;;;;;AAcA,IAAa,IAAgB;CAAC;CAAW;CAAU;CAAW;CAAY,EAE7D,IAAsB,EAAc,IAkC3C,IAAU;CACd,MAAM;CACN,IAAI,gBAAgB;AAClB,SAAO,GAAG,KAAK,KAAK;;CAEvB,EAEK,IAAS,GAEX,EACE,YACA,aAAU,GACV,QAAK,QACL,aACA,cACA,eAAe,GACf,eAAe,GACf,UACA,GAAG,KAEL,MACG;CACH,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,EAAQ,EAElF,IAAiB,EACrB,GACA,EAAO,OACP,KAAiB,EAAO,4BACxB,MAAO,OAAO,EAAO,uBACrB,EAAO,kBAAkB,MACzB,EACD,EAEK,IACJ,kBAAA,GAAA,EAAA,UAAA,CACG,KACC,kBAAC,QAAD;EAAM,WAAW,EAAO;EAA0B,eAAa,EAAQ;EAAe,eAAY;YAC/F,OAAO,KAAkB,aACxB,kBAAC,GAAD,EAAe,WAAW,EAAO,eAAoB,CAAA,GAErD,EAAM,eAAqC,EAAc,IACzD,EAAM,aAAa,GAAe,EAChC,WAAW,EAAK,EAAO,eAAkB,EAAc,MAAM,UAAU,EACxE,CAAC;EAEC,CAAA,EAET,kBAAC,GAAD;EAAM,IAAG;EAAO,MAAK;EAAM,WAAW,EAAO;EAC1C;EACI,CAAA,CACN,EAAA,CAAA;AAiBL,QAZI,EAFA,MAAO,MAEN,MAaF,QAbC;EACO;EACL,WAAW;EACX,eAAa,KAAU,EAAQ;EAC/B,OAAO;GAAC,GAAG;GAAuB,GAAG;GAAM;EAC3C,GAAI;YAEH;EACC,CAAA;EAgBX,EAMY,IAAQ,OAAO,OAAO,GAAQ,EAAC,YAAQ,CAAC"}
1
+ {"version":3,"file":"Token.js","names":[],"sources":["../../src/Token/Token.tsx"],"sourcesContent":["import {clsx} from 'clsx'\nimport React, {forwardRef, type Ref} from 'react'\n\nimport {Text} from '../Text'\nimport {useAnimation} from '../animation'\nimport type {BaseProps} from '../component-helpers'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css'\n\nimport styles from './Token.module.css'\n\nexport const TokenVariants = ['default', 'accent', 'outline', 'invisible'] as const\n\nexport const defaultTokenVariant = TokenVariants[0]\n\ntype TokenLeadingVisual = React.ReactElement | React.ComponentType<{className?: string}>\n\ntype TokenSharedProps = {\n /**\n * The leading visual appears before the Token content.\n * Pass an element to supply custom props, or a component type that accepts an optional className.\n */\n leadingVisual?: TokenLeadingVisual\n /**\n * The variant variations available in Token.\n */\n variant?: (typeof TokenVariants)[number]\n /**\n * The HTML element rendered by Token.\n */\n as?: 'span' | 'a'\n ['data-testid']?: string\n}\n\ntype TokenSpanProps = BaseProps<HTMLSpanElement> &\n TokenSharedProps & {\n as?: 'span'\n } & React.ComponentPropsWithoutRef<'span'>\n\ntype TokenAnchorProps = BaseProps<HTMLAnchorElement> &\n TokenSharedProps & {\n as: 'a'\n href: string\n } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>\n\nexport type TokenProps = TokenSpanProps | TokenAnchorProps\n\nconst testIds = {\n root: 'Token',\n get leadingVisual() {\n return `${this.root}-leading-visual`\n },\n}\n\nconst _Token = forwardRef<HTMLSpanElement | HTMLAnchorElement, TokenProps>(\n (\n {\n animate,\n variant = defaultTokenVariant,\n as = 'span',\n children,\n className,\n 'data-testid': testId,\n leadingVisual: LeadingVisual,\n style,\n ...props\n },\n ref: Ref<HTMLSpanElement | HTMLAnchorElement>,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const tokenClassName = clsx(\n animationClasses,\n styles.Token,\n LeadingVisual && styles['Token--hasLeadingVisual'],\n as === 'a' && styles['Token--interactive'],\n styles[`Token--variant-${variant}`],\n className,\n )\n\n const tokenChildren = (\n <>\n {LeadingVisual && (\n <span className={styles['Token__leading-visual']} data-testid={testIds.leadingVisual} aria-hidden=\"true\">\n {typeof LeadingVisual === 'function' ? (\n <LeadingVisual className={styles['Token__visual']} />\n ) : (\n React.isValidElement<{className?: string}>(LeadingVisual) &&\n React.cloneElement(LeadingVisual, {\n className: clsx(styles['Token__visual'], LeadingVisual.props.className),\n })\n )}\n </span>\n )}\n <Text as=\"span\" size=\"100\" className={styles['Token__label']}>\n {children}\n </Text>\n </>\n )\n\n if (as === 'a') {\n return (\n <a\n ref={ref as Ref<HTMLAnchorElement>}\n className={tokenClassName}\n data-testid={testId || testIds.root}\n style={{...animationInlineStyles, ...style}}\n {...props}\n >\n {tokenChildren}\n </a>\n )\n }\n\n return (\n <span\n ref={ref as Ref<HTMLSpanElement>}\n className={tokenClassName}\n data-testid={testId || testIds.root}\n style={{...animationInlineStyles, ...style}}\n {...props}\n >\n {tokenChildren}\n </span>\n )\n },\n)\n\n/**\n * Use Token to display compact metadata that describes or supports adjacent content.\n * @see https://primer.style/brand/components/Token\n */\nexport const Token = Object.assign(_Token, {testIds})\n"],"mappings":";;;;;;;;AAcA,IAAa,IAAgB;CAAC;CAAW;CAAU;CAAW;AAAW,GAE5D,IAAsB,EAAc,IAkC3C,IAAU;CACd,MAAM;CACN,IAAI,gBAAgB;EAClB,OAAO,GAAG,KAAK,KAAK;CACtB;AACF,GAEM,IAAS,GAEX,EACE,YACA,aAAU,GACV,QAAK,QACL,aACA,cACA,eAAe,GACf,eAAe,GACf,UACA,GAAG,KAEL,MACG;CACH,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,CAAO,GAEjF,IAAiB,EACrB,GACA,EAAO,OACP,KAAiB,EAAO,4BACxB,MAAO,OAAO,EAAO,uBACrB,EAAO,kBAAkB,MACzB,CACF,GAEM,IACJ,kBAAA,GAAA,EAAA,UAAA,CACG,KACC,kBAAC,QAAD;EAAM,WAAW,EAAO;EAA0B,eAAa,EAAQ;EAAe,eAAY;YAC/F,OAAO,KAAkB,aACxB,kBAAC,GAAD,EAAe,WAAW,EAAO,cAAmB,CAAA,IAEpD,EAAM,eAAqC,CAAa,KACxD,EAAM,aAAa,GAAe,EAChC,WAAW,EAAK,EAAO,eAAkB,EAAc,MAAM,SAAS,EACxE,CAAC;CAEC,CAAA,GAER,kBAAC,GAAD;EAAM,IAAG;EAAO,MAAK;EAAM,WAAW,EAAO;EAC1C;CACG,CAAA,CACN,EAAA,CAAA;CAiBJ,OAZI,EAFA,MAAO,MAEN,MAaF,QAbC;EACO;EACL,WAAW;EACX,eAAa,KAAU,EAAQ;EAC/B,OAAO;GAAC,GAAG;GAAuB,GAAG;EAAK;EAC1C,GAAI;YAEH;CACA,CAAA;AAeT,CACF,GAMa,IAAQ,OAAO,OAAO,GAAQ,EAAC,WAAO,CAAC"}
@@ -1,16 +1,17 @@
1
- import './Token.module-DtWE9IPI.css';var e = {
2
- Token: "Primer_Brand__Token-module__Token___nJxhW",
1
+ import './Token.module-DtWE9IPI.css';//#region src/Token/Token.module.css
2
+ var e = "Primer_Brand__Token-module__Token___nJxhW", t = "Primer_Brand__Token-module__Token__label___e3Cx3", n = "Primer_Brand__Token-module__Token__visual___Nlxfv", r = {
3
+ Token: e,
3
4
  "Token--hasLeadingVisual": "Primer_Brand__Token-module__Token--hasLeadingVisual___Erv8L",
4
5
  "Token--interactive": "Primer_Brand__Token-module__Token--interactive___ZpgTX",
5
6
  "Token--variant-default": "Primer_Brand__Token-module__Token--variant-default___eMkcM",
6
7
  "Token--variant-accent": "Primer_Brand__Token-module__Token--variant-accent___fSxf7",
7
8
  "Token--variant-outline": "Primer_Brand__Token-module__Token--variant-outline___GTmIy",
8
9
  "Token--variant-invisible": "Primer_Brand__Token-module__Token--variant-invisible___IR7Ki",
9
- Token__label: "Primer_Brand__Token-module__Token__label___e3Cx3",
10
+ Token__label: t,
10
11
  "Token__leading-visual": "Primer_Brand__Token-module__Token__leading-visual____uvYs",
11
- Token__visual: "Primer_Brand__Token-module__Token__visual___Nlxfv"
12
+ Token__visual: n
12
13
  };
13
14
  //#endregion
14
- export { e as default };
15
+ export { e as Token, t as Token__label, n as Token__visual, r as default };
15
16
 
16
17
  //# sourceMappingURL=Token.module.js.map
@@ -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 { useId as t } from "../hooks/useId.js";
3
3
  import { useProvidedRefOrCreate as n } from "../hooks/useRef.js";
4
4
  import r from "./Tooltip.module.js";
@@ -99,7 +99,7 @@ var m = {
99
99
  "data-direction": j,
100
100
  ...w,
101
101
  role: b === "description" ? "tooltip" : void 0,
102
- "aria-hidden": b === "label" ? !0 : void 0,
102
+ "aria-hidden": b === "label" || void 0,
103
103
  id: E,
104
104
  onMouseEnter: N,
105
105
  onMouseLeave: P,
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","names":[],"sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import React, {Children, useEffect, useRef, useState} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../hooks/useId'\nimport {getAnchoredPosition} from '@primer/behaviors'\nimport type {AnchorSide, AnchorAlignment} from '@primer/behaviors'\nimport {isSupported, apply} from '@oddbird/popover-polyfill/fn'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Tooltip.module.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css'\nimport {BaseProps} from '../component-helpers'\n\ntype TooltipDirection = 'n' | 'e' | 's' | 'w'\nexport type TooltipProps = {\n direction?: TooltipDirection\n text: string\n type?: 'label' | 'description'\n children?: React.ReactNode\n} & BaseProps<HTMLDivElement>\n\nexport type TriggerPropsType = {\n 'aria-describedby'?: string\n 'aria-labelledby'?: string\n 'aria-label'?: string\n onBlur?: React.FocusEventHandler\n onFocus?: React.FocusEventHandler\n onMouseEnter?: React.MouseEventHandler\n onMouseLeave?: React.MouseEventHandler\n ref?: React.RefObject<HTMLElement | null>\n}\n\n// map tooltip direction to anchoredPosition props\nconst directionToPosition: Record<TooltipDirection, {side: AnchorSide; align: AnchorAlignment}> = {\n n: {side: 'outside-top', align: 'center'},\n e: {side: 'outside-right', align: 'center'},\n s: {side: 'outside-bottom', align: 'center'},\n w: {side: 'outside-left', align: 'center'},\n}\n\n// map anchoredPosition props to tooltip direction\nconst positionToDirection: Record<string, TooltipDirection> = {\n 'outside-top-center': 'n',\n 'outside-right-center': 'e',\n 'outside-bottom-center': 's',\n 'outside-left-center': 'w',\n}\n\n// The list is from GitHub's custom-axe-rules https://github.com/github/github/blob/master/app/assets/modules/github/axe-custom-rules.ts#L3\nconst interactiveElements = [\n 'a[href]',\n 'button:not(:disabled)',\n 'summary',\n 'select',\n 'input:not([type=hidden])',\n 'textarea',\n]\n\nconst isInteractive = (element: HTMLElement) => {\n return (\n interactiveElements.some(selector => element.matches(selector)) ||\n (element.hasAttribute('role') && element.getAttribute('role') === 'button')\n )\n}\nexport const TooltipContext = React.createContext<{tooltipId?: string}>({})\n\nexport const Tooltip = React.forwardRef(\n ({direction = 's', text, type = 'description', children, id, className, ...rest}: TooltipProps, forwardedRef) => {\n const tooltipId = useId(id)\n const child = (Children.only(children) as React.ReactElement<TriggerPropsType> | null) ?? null\n const triggerRef = useProvidedRefOrCreate(forwardedRef as React.RefObject<HTMLElement | null> | null)\n const tooltipElRef = useRef<HTMLDivElement>(null)\n // Used to delay the closing of the tooltip to make sure the user can move the mouse from the trigger to the tooltip\n const closeTooltipTimeoutRef = useRef<NodeJS.Timeout | null>(null)\n const tooltipCloseTimeout = 200\n\n const [calculatedDirection, setCalculatedDirection] = useState<TooltipDirection>(direction)\n\n const openTooltip = React.useCallback(() => {\n if (closeTooltipTimeoutRef.current) {\n clearTimeout(closeTooltipTimeoutRef.current)\n closeTooltipTimeoutRef.current = null\n }\n\n if (tooltipElRef.current && triggerRef.current && !tooltipElRef.current.matches(':popover-open')) {\n tooltipElRef.current.showPopover()\n }\n }, [tooltipElRef, triggerRef])\n\n const closeTooltip = React.useCallback(() => {\n closeTooltipTimeoutRef.current = setTimeout(() => {\n if (tooltipElRef.current && triggerRef.current && tooltipElRef.current.matches(':popover-open')) {\n tooltipElRef.current.hidePopover()\n }\n }, tooltipCloseTimeout)\n }, [tooltipElRef, triggerRef])\n\n useEffect(() => {\n return () => {\n if (closeTooltipTimeoutRef.current) {\n clearTimeout(closeTooltipTimeoutRef.current)\n }\n }\n }, [closeTooltipTimeoutRef])\n\n useEffect(() => {\n if (!tooltipElRef.current || !triggerRef.current) return\n /*\n * ACCESSIBILITY CHECKS\n */\n // Has trigger element or any of its children interactive elements?\n const isTriggerInteractive = isInteractive(triggerRef.current)\n const triggerChildren = triggerRef.current.childNodes\n const hasInteractiveChild = Array.from(triggerChildren).some(triggerChild => {\n return triggerChild instanceof HTMLElement && isInteractive(triggerChild)\n })\n\n if (\n !(isTriggerInteractive || hasInteractiveChild) &&\n (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n 'The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead.',\n )\n }\n\n // If the tooltip is used for labelling the interactive element, the trigger element or any of its children should not have aria-label\n if (type === 'label') {\n const hasAriaLabel = triggerRef.current.hasAttribute('aria-label')\n const hasAriaLabelInChildren = Array.from(triggerRef.current.childNodes).some(\n triggerChild => triggerChild instanceof HTMLElement && triggerChild.hasAttribute('aria-label'),\n )\n\n if (\n (hasAriaLabel || hasAriaLabelInChildren) &&\n (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n 'The label type `Tooltip` is going to be used here to label the trigger element. Please remove the aria-label from the trigger element.',\n )\n }\n }\n\n // SSR safe polyfill apply\n if (typeof window !== 'undefined') {\n if (!isSupported()) {\n apply()\n }\n }\n\n /*\n * TOOLTIP POSITIONING\n */\n const tooltip = tooltipElRef.current\n const trigger = triggerRef.current\n tooltip.setAttribute('popover', 'auto')\n const settings = {\n side: directionToPosition[direction].side,\n align: directionToPosition[direction].align,\n anchorOffset: 8,\n }\n\n const positionSet = () => {\n const {top, left, anchorAlign, anchorSide} = getAnchoredPosition(tooltip, trigger, settings)\n\n tooltip.style.top = `${top}px`\n tooltip.style.left = `${left}px`\n // This is required to make sure the popover is positioned correctly i.e. when there is not enough space on the specified direction, we set a new direction to position the ::after\n const calculatedDirectionString = positionToDirection[`${anchorSide}-${anchorAlign}` as string]\n setCalculatedDirection(calculatedDirectionString)\n }\n\n tooltip.addEventListener('toggle', positionSet)\n\n return () => {\n tooltip.removeEventListener('toggle', positionSet)\n }\n }, [tooltipElRef, triggerRef, direction, type])\n\n return (\n <TooltipContext.Provider value={{tooltipId}}>\n {child &&\n React.cloneElement(child, {\n ref: triggerRef,\n // If it is a type description, we use tooltip to describe the trigger\n 'aria-describedby': type === 'description' ? tooltipId : child.props['aria-describedby'],\n // If it is a label type, we use tooltip to label the trigger\n 'aria-labelledby': type === 'label' ? tooltipId : child.props['aria-labelledby'],\n onBlur: (event: React.FocusEvent) => {\n closeTooltip()\n child.props.onBlur?.(event)\n },\n onFocus: (event: React.FocusEvent) => {\n openTooltip()\n child.props.onFocus?.(event)\n },\n onMouseEnter: (event: React.MouseEvent) => {\n openTooltip()\n child.props.onMouseEnter?.(event)\n },\n onMouseLeave: (event: React.MouseEvent) => {\n closeTooltip()\n child.props.onMouseLeave?.(event)\n },\n })}\n <div\n className={clsx(styles.Tooltip, className)}\n ref={tooltipElRef}\n data-direction={calculatedDirection}\n {...rest}\n // Only need tooltip role if the tooltip is a description for supplementary information\n role={type === 'description' ? 'tooltip' : undefined}\n // stop AT from announcing the tooltip twice when it is a label type because it will be announced with \"aria-labelledby\"\n aria-hidden={type === 'label' ? true : undefined}\n id={tooltipId}\n // mouse leave and enter on the tooltip itself is needed to keep the tooltip open when the mouse is over the tooltip\n onMouseEnter={openTooltip}\n onMouseLeave={closeTooltip}\n >\n {text}\n </div>\n </TooltipContext.Provider>\n )\n },\n)\n"],"mappings":"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"}
1
+ {"version":3,"file":"Tooltip.js","names":[],"sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import React, {Children, useEffect, useRef, useState} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../hooks/useId'\nimport {getAnchoredPosition} from '@primer/behaviors'\nimport type {AnchorSide, AnchorAlignment} from '@primer/behaviors'\nimport {isSupported, apply} from '@oddbird/popover-polyfill/fn'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Tooltip.module.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css'\nimport {BaseProps} from '../component-helpers'\n\ntype TooltipDirection = 'n' | 'e' | 's' | 'w'\nexport type TooltipProps = {\n direction?: TooltipDirection\n text: string\n type?: 'label' | 'description'\n children?: React.ReactNode\n} & BaseProps<HTMLDivElement>\n\nexport type TriggerPropsType = {\n 'aria-describedby'?: string\n 'aria-labelledby'?: string\n 'aria-label'?: string\n onBlur?: React.FocusEventHandler\n onFocus?: React.FocusEventHandler\n onMouseEnter?: React.MouseEventHandler\n onMouseLeave?: React.MouseEventHandler\n ref?: React.RefObject<HTMLElement | null>\n}\n\n// map tooltip direction to anchoredPosition props\nconst directionToPosition: Record<TooltipDirection, {side: AnchorSide; align: AnchorAlignment}> = {\n n: {side: 'outside-top', align: 'center'},\n e: {side: 'outside-right', align: 'center'},\n s: {side: 'outside-bottom', align: 'center'},\n w: {side: 'outside-left', align: 'center'},\n}\n\n// map anchoredPosition props to tooltip direction\nconst positionToDirection: Record<string, TooltipDirection> = {\n 'outside-top-center': 'n',\n 'outside-right-center': 'e',\n 'outside-bottom-center': 's',\n 'outside-left-center': 'w',\n}\n\n// The list is from GitHub's custom-axe-rules https://github.com/github/github/blob/master/app/assets/modules/github/axe-custom-rules.ts#L3\nconst interactiveElements = [\n 'a[href]',\n 'button:not(:disabled)',\n 'summary',\n 'select',\n 'input:not([type=hidden])',\n 'textarea',\n]\n\nconst isInteractive = (element: HTMLElement) => {\n return (\n interactiveElements.some(selector => element.matches(selector)) ||\n (element.hasAttribute('role') && element.getAttribute('role') === 'button')\n )\n}\nexport const TooltipContext = React.createContext<{tooltipId?: string}>({})\n\nexport const Tooltip = React.forwardRef(\n ({direction = 's', text, type = 'description', children, id, className, ...rest}: TooltipProps, forwardedRef) => {\n const tooltipId = useId(id)\n const child = (Children.only(children) as React.ReactElement<TriggerPropsType> | null) ?? null\n const triggerRef = useProvidedRefOrCreate(forwardedRef as React.RefObject<HTMLElement | null> | null)\n const tooltipElRef = useRef<HTMLDivElement>(null)\n // Used to delay the closing of the tooltip to make sure the user can move the mouse from the trigger to the tooltip\n const closeTooltipTimeoutRef = useRef<NodeJS.Timeout | null>(null)\n const tooltipCloseTimeout = 200\n\n const [calculatedDirection, setCalculatedDirection] = useState<TooltipDirection>(direction)\n\n const openTooltip = React.useCallback(() => {\n if (closeTooltipTimeoutRef.current) {\n clearTimeout(closeTooltipTimeoutRef.current)\n closeTooltipTimeoutRef.current = null\n }\n\n if (tooltipElRef.current && triggerRef.current && !tooltipElRef.current.matches(':popover-open')) {\n tooltipElRef.current.showPopover()\n }\n }, [tooltipElRef, triggerRef])\n\n const closeTooltip = React.useCallback(() => {\n closeTooltipTimeoutRef.current = setTimeout(() => {\n if (tooltipElRef.current && triggerRef.current && tooltipElRef.current.matches(':popover-open')) {\n tooltipElRef.current.hidePopover()\n }\n }, tooltipCloseTimeout)\n }, [tooltipElRef, triggerRef])\n\n useEffect(() => {\n return () => {\n if (closeTooltipTimeoutRef.current) {\n clearTimeout(closeTooltipTimeoutRef.current)\n }\n }\n }, [closeTooltipTimeoutRef])\n\n useEffect(() => {\n if (!tooltipElRef.current || !triggerRef.current) return\n /*\n * ACCESSIBILITY CHECKS\n */\n // Has trigger element or any of its children interactive elements?\n const isTriggerInteractive = isInteractive(triggerRef.current)\n const triggerChildren = triggerRef.current.childNodes\n const hasInteractiveChild = Array.from(triggerChildren).some(triggerChild => {\n return triggerChild instanceof HTMLElement && isInteractive(triggerChild)\n })\n\n if (\n !(isTriggerInteractive || hasInteractiveChild) &&\n (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n 'The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead.',\n )\n }\n\n // If the tooltip is used for labelling the interactive element, the trigger element or any of its children should not have aria-label\n if (type === 'label') {\n const hasAriaLabel = triggerRef.current.hasAttribute('aria-label')\n const hasAriaLabelInChildren = Array.from(triggerRef.current.childNodes).some(\n triggerChild => triggerChild instanceof HTMLElement && triggerChild.hasAttribute('aria-label'),\n )\n\n if (\n (hasAriaLabel || hasAriaLabelInChildren) &&\n (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n 'The label type `Tooltip` is going to be used here to label the trigger element. Please remove the aria-label from the trigger element.',\n )\n }\n }\n\n // SSR safe polyfill apply\n if (typeof window !== 'undefined') {\n if (!isSupported()) {\n apply()\n }\n }\n\n /*\n * TOOLTIP POSITIONING\n */\n const tooltip = tooltipElRef.current\n const trigger = triggerRef.current\n tooltip.setAttribute('popover', 'auto')\n const settings = {\n side: directionToPosition[direction].side,\n align: directionToPosition[direction].align,\n anchorOffset: 8,\n }\n\n const positionSet = () => {\n const {top, left, anchorAlign, anchorSide} = getAnchoredPosition(tooltip, trigger, settings)\n\n tooltip.style.top = `${top}px`\n tooltip.style.left = `${left}px`\n // This is required to make sure the popover is positioned correctly i.e. when there is not enough space on the specified direction, we set a new direction to position the ::after\n const calculatedDirectionString = positionToDirection[`${anchorSide}-${anchorAlign}` as string]\n setCalculatedDirection(calculatedDirectionString)\n }\n\n tooltip.addEventListener('toggle', positionSet)\n\n return () => {\n tooltip.removeEventListener('toggle', positionSet)\n }\n }, [tooltipElRef, triggerRef, direction, type])\n\n return (\n <TooltipContext.Provider value={{tooltipId}}>\n {child &&\n React.cloneElement(child, {\n ref: triggerRef,\n // If it is a type description, we use tooltip to describe the trigger\n 'aria-describedby': type === 'description' ? tooltipId : child.props['aria-describedby'],\n // If it is a label type, we use tooltip to label the trigger\n 'aria-labelledby': type === 'label' ? tooltipId : child.props['aria-labelledby'],\n onBlur: (event: React.FocusEvent) => {\n closeTooltip()\n child.props.onBlur?.(event)\n },\n onFocus: (event: React.FocusEvent) => {\n openTooltip()\n child.props.onFocus?.(event)\n },\n onMouseEnter: (event: React.MouseEvent) => {\n openTooltip()\n child.props.onMouseEnter?.(event)\n },\n onMouseLeave: (event: React.MouseEvent) => {\n closeTooltip()\n child.props.onMouseLeave?.(event)\n },\n })}\n <div\n className={clsx(styles.Tooltip, className)}\n ref={tooltipElRef}\n data-direction={calculatedDirection}\n {...rest}\n // Only need tooltip role if the tooltip is a description for supplementary information\n role={type === 'description' ? 'tooltip' : undefined}\n // stop AT from announcing the tooltip twice when it is a label type because it will be announced with \"aria-labelledby\"\n aria-hidden={type === 'label' ? true : undefined}\n id={tooltipId}\n // mouse leave and enter on the tooltip itself is needed to keep the tooltip open when the mouse is over the tooltip\n onMouseEnter={openTooltip}\n onMouseLeave={closeTooltip}\n >\n {text}\n </div>\n </TooltipContext.Provider>\n )\n },\n)\n"],"mappings":"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"}
@@ -1,9 +1,10 @@
1
- import './Tooltip.module-5Km7qGR5.css';var e = {
2
- Tooltip: "Primer_Brand__Tooltip-module__Tooltip___0Eipx",
1
+ import './Tooltip.module-5Km7qGR5.css';//#region src/Tooltip/Tooltip.module.css
2
+ var e = "Primer_Brand__Tooltip-module__Tooltip___0Eipx", t = {
3
+ Tooltip: e,
3
4
  ":popover-open": "Primer_Brand__Tooltip-module__:popover-open___GpZlX",
4
5
  "tooltip-appear": "Primer_Brand__Tooltip-module__tooltip-appear___hAyFD"
5
6
  };
6
7
  //#endregion
7
- export { e as default };
8
+ export { e as Tooltip, t as default };
8
9
 
9
10
  //# sourceMappingURL=Tooltip.module.js.map
@@ -19,8 +19,8 @@ type VideoPlayerProps = {
19
19
  playIcon?: FunctionComponent;
20
20
  } & HTMLProps<HTMLVideoElement>;
21
21
  export declare const VideoPlayer: React.ForwardRefExoticComponent<Omit<VideoPlayerProps, "ref"> & React.RefAttributes<HTMLVideoElement>> & {
22
- Source: (props: React.HTMLProps<HTMLSourceElement>) => import("react/jsx-runtime").JSX.Element;
23
- Track: ({ kind, ...rest }: React.HTMLProps<HTMLTrackElement>) => import("react/jsx-runtime").JSX.Element;
22
+ Source: (props: React.HTMLProps<HTMLSourceElement>) => React.JSX.Element;
23
+ Track: ({ kind, ...rest }: React.HTMLProps<HTMLTrackElement>) => React.JSX.Element;
24
24
  Provider: React.ForwardRefExoticComponent<{
25
25
  children?: React.ReactNode | undefined;
26
26
  } & React.RefAttributes<HTMLVideoElement>>;
@@ -1,7 +1,7 @@
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 { Text as n } from "../Text/Text.js";
4
- import { MarkGithubIcon as r } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
4
+ import { MarkGithubIcon as r } from "../node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js";
5
5
  import { PlayIcon as i } from "./components/PlayIcon/PlayIcon.js";
6
6
  import a from "./VideoPlayer.module.js";
7
7
  import { VideoContext as o, VideoProvider as s, useVideo as c } from "./hooks/useVideo.js";
@@ -1 +1 @@
1
- {"version":3,"file":"VideoPlayer.js","names":[],"sources":["../../src/VideoPlayer/VideoPlayer.tsx"],"sourcesContent":["import React, {forwardRef, useCallback, useContext, type HTMLProps, type FunctionComponent} from 'react'\nimport {clsx} from 'clsx'\nimport {Text} from '../Text'\nimport {type AnimateProps} from '../animation'\nimport {\n Captions,\n CCButton,\n ControlsBar,\n FullScreenButton,\n MuteButton,\n PlayIcon as DefaultPlayIcon,\n PlayPauseButton,\n SeekControl,\n VolumeControl,\n} from './components'\nimport {MarkGithubIcon} from '@primer/octicons-react'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './VideoPlayer.module.css'\nimport {useVideoResizeObserver} from './hooks/'\nimport {useVideo, VideoContext, VideoProvider} from './hooks/useVideo'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\ntype VideoPlayerProps = {\n title: string\n visuallyHiddenTitle?: boolean\n showBranding?: boolean\n animate?: AnimateProps\n showPlayPauseButton?: boolean\n showSeekControl?: boolean\n showCCButton?: boolean\n showMuteButton?: boolean\n showVolumeControl?: boolean\n showFullScreenButton?: boolean\n playIcon?: FunctionComponent\n} & HTMLProps<HTMLVideoElement>\n\nconst Root = forwardRef<HTMLVideoElement, VideoPlayerProps>(\n (\n {\n title,\n visuallyHiddenTitle,\n showBranding = true,\n children,\n className,\n showPlayPauseButton = true,\n showSeekControl = true,\n showCCButton = true,\n showMuteButton = true,\n showVolumeControl = true,\n showFullScreenButton = true,\n playIcon: PlayIcon = () => <DefaultPlayIcon className={styles.VideoPlayer__playButton} />,\n ...rest\n }: VideoPlayerProps,\n forwardedRef,\n ) => {\n const videoContext = useVideo()\n const {ccEnabled, fullscreenRef, isPlaying, ref, togglePlaying} = videoContext\n const forwardedRefCallback = useCallback(\n (node: HTMLVideoElement | null) => {\n assignRef(forwardedRef, node)\n },\n [forwardedRef],\n )\n const providedRef = useProvidedRefOrCreate<HTMLVideoElement>(forwardedRefCallback)\n\n const setVideoElementRef = useCallback(\n (node: HTMLVideoElement | null) => {\n assignRef(ref, node)\n assignRef(providedRef, node)\n },\n [ref, providedRef],\n )\n\n const isSmall = useVideoResizeObserver({\n videoWrapperRef: fullscreenRef,\n className: styles['VideoPlayer__container--small'],\n })\n\n const showControlsRow1 = showPlayPauseButton || showSeekControl\n const showControlsRow2 = showCCButton || showMuteButton || showVolumeControl || showFullScreenButton\n const showControlsBar = showControlsRow1 || showControlsRow2\n\n return (\n <div data-video-player-container className={styles.VideoPlayer__container} ref={fullscreenRef}>\n <div className={styles.VideoPlayer__overlayContainer}>\n <video\n ref={setVideoElementRef}\n title={title}\n controls={false}\n className={clsx(styles.VideoPlayer, className)}\n {...rest}\n >\n {children}\n <track kind=\"captions\" />\n </video>\n {showBranding || !visuallyHiddenTitle ? (\n <div className={clsx(styles.VideoPlayer__title, isPlaying && styles['VideoPlayer__title--hidden'])}>\n {showBranding && <MarkGithubIcon size={40} aria-label=\"GitHub logo\" />}\n {!visuallyHiddenTitle && (\n <Text size=\"400\" weight=\"medium\" className={styles.VideoPlayer__controlTextColor}>\n {title}\n </Text>\n )}\n </div>\n ) : null}\n <button\n className={clsx(\n styles.VideoPlayer__playButtonOverlay,\n isPlaying && styles['VideoPlayer__playButtonOverlay--transparent'],\n )}\n onClick={togglePlaying}\n aria-label={isPlaying ? 'Pause' : 'Play'}\n >\n {!isPlaying && <PlayIcon />}\n </button>\n </div>\n\n {ccEnabled && <Captions />}\n {showControlsBar && (\n <ControlsBar>\n {showControlsRow1 && (\n <div className={styles['VideoPlayer__controlsBar__row1']}>\n {showPlayPauseButton && <PlayPauseButton />}\n {showSeekControl && <SeekControl />}\n </div>\n )}\n {showControlsRow2 && (\n <div className={styles['VideoPlayer__controlsBar__row2']}>\n {showCCButton && <CCButton />}\n {showMuteButton && <MuteButton />}\n {showVolumeControl && !isSmall && <VolumeControl />}\n {showFullScreenButton && <FullScreenButton />}\n </div>\n )}\n </ControlsBar>\n )}\n </div>\n )\n },\n)\n\nfunction assignRef<T>(targetRef: React.RefObject<T> | React.Ref<T> | null | undefined, value: T | null) {\n if (!targetRef) return\n\n if (typeof targetRef === 'function') {\n targetRef(value)\n return\n }\n\n ;(targetRef as React.MutableRefObject<T | null>).current = value\n}\n\nconst VideoPlayerSource = (props: React.HTMLProps<HTMLSourceElement>) => <source {...props} />\n\nconst VideoPlayerTrack = ({kind = 'captions', ...rest}: React.HTMLProps<HTMLTrackElement>) => (\n <track kind={kind} {...rest} />\n)\n\nconst RootWithProvider = forwardRef<HTMLVideoElement, VideoPlayerProps>((props, ref) => {\n const context = useContext(VideoContext)\n\n return context ? (\n <Root ref={ref} {...props} />\n ) : (\n <VideoProvider>\n <Root ref={ref} {...props} />\n </VideoProvider>\n )\n})\n\nexport const VideoPlayer = Object.assign(RootWithProvider, {\n Source: VideoPlayerSource,\n Track: VideoPlayerTrack,\n Provider: VideoProvider,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA,IAAM,IAAO,GAET,EACE,UACA,wBACA,kBAAe,IACf,aACA,cACA,yBAAsB,IACtB,qBAAkB,IAClB,kBAAe,IACf,oBAAiB,IACjB,uBAAoB,IACpB,0BAAuB,IACvB,UAAU,UAAiB,kBAAC,GAAD,EAAiB,WAAW,EAAO,yBAA2B,CAAA,EACzF,GAAG,KAEL,MACG;CAEH,IAAM,EAAC,cAAW,kBAAe,cAAW,QAAK,qBAD5B,GAC6C,EAO5D,IAAc,EANS,GAC1B,MAAkC;AACjC,IAAU,GAAc,EAAK;IAE/B,CAAC,EAAa,CAE6C,CAAqB,EAE5E,IAAqB,GACxB,MAAkC;AAEjC,EADA,EAAU,GAAK,EAAK,EACpB,EAAU,GAAa,EAAK;IAE9B,CAAC,GAAK,EAAY,CACnB,EAEK,IAAU,EAAuB;EACrC,iBAAiB;EACjB,WAAW,EAAO;EACnB,CAAC,EAEI,IAAmB,KAAuB,GAC1C,IAAmB,KAAgB,KAAkB,KAAqB,GAC1E,IAAkB,KAAoB;AAE5C,QACE,kBAAC,OAAD;EAAK,+BAAA;EAA4B,WAAW,EAAO;EAAwB,KAAK;YAAhF;GACE,kBAAC,OAAD;IAAK,WAAW,EAAO;cAAvB;KACE,kBAAC,SAAD;MACE,KAAK;MACE;MACP,UAAU;MACV,WAAW,EAAK,EAAO,aAAa,EAAU;MAC9C,GAAI;gBALN,CAOG,GACD,kBAAC,SAAD,EAAO,MAAK,YAAa,CAAA,CACnB;;KACP,KAAgB,CAAC,IAChB,kBAAC,OAAD;MAAK,WAAW,EAAK,EAAO,oBAAoB,KAAa,EAAO,8BAA8B;gBAAlG,CACG,KAAgB,kBAAC,GAAD;OAAgB,MAAM;OAAI,cAAW;OAAgB,CAAA,EACrE,CAAC,KACA,kBAAC,GAAD;OAAM,MAAK;OAAM,QAAO;OAAS,WAAW,EAAO;iBAChD;OACI,CAAA,CAEL;UACJ;KACJ,kBAAC,UAAD;MACE,WAAW,EACT,EAAO,gCACP,KAAa,EAAO,+CACrB;MACD,SAAS;MACT,cAAY,IAAY,UAAU;gBAEjC,CAAC,KAAa,kBAAC,GAAD,EAAY,CAAA;MACpB,CAAA;KACL;;GAEL,KAAa,kBAAC,GAAD,EAAY,CAAA;GACzB,KACC,kBAAC,GAAD,EAAA,UAAA,CACG,KACC,kBAAC,OAAD;IAAK,WAAW,EAAO;cAAvB,CACG,KAAuB,kBAAC,GAAD,EAAmB,CAAA,EAC1C,KAAmB,kBAAC,GAAD,EAAe,CAAA,CAC/B;OAEP,KACC,kBAAC,OAAD;IAAK,WAAW,EAAO;cAAvB;KACG,KAAgB,kBAAC,GAAD,EAAY,CAAA;KAC5B,KAAkB,kBAAC,GAAD,EAAc,CAAA;KAChC,KAAqB,CAAC,KAAW,kBAAC,GAAD,EAAiB,CAAA;KAClD,KAAwB,kBAAC,GAAD,EAAoB,CAAA;KACzC;MAEI,EAAA,CAAA;GAEZ;;EAGX;AAED,SAAS,EAAa,GAAiE,GAAiB;AACjG,QAEL;MAAI,OAAO,KAAc,YAAY;AACnC,KAAU,EAAM;AAChB;;AAGA,IAA+C,UAAU;;;AAG7D,IAAM,KAAqB,MAA8C,kBAAC,UAAD,EAAQ,GAAI,GAAS,CAAA,EAExF,KAAoB,EAAC,UAAO,YAAY,GAAG,QAC/C,kBAAC,SAAD;CAAa;CAAM,GAAI;CAAQ,CAAA,EAG3B,IAAmB,GAAgD,GAAO,MAC9D,EAAW,EAEpB,GACL,kBAAC,GAAD;CAAW;CAAK,GAAI;CAAS,CAAA,GAE7B,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAW;CAAK,GAAI;CAAS,CAAA,EACf,CAAA,CAElB,EAEW,IAAc,OAAO,OAAO,GAAkB;CACzD,QAAQ;CACR,OAAO;CACP,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"VideoPlayer.js","names":[],"sources":["../../src/VideoPlayer/VideoPlayer.tsx"],"sourcesContent":["import React, {forwardRef, useCallback, useContext, type HTMLProps, type FunctionComponent} from 'react'\nimport {clsx} from 'clsx'\nimport {Text} from '../Text'\nimport {type AnimateProps} from '../animation'\nimport {\n Captions,\n CCButton,\n ControlsBar,\n FullScreenButton,\n MuteButton,\n PlayIcon as DefaultPlayIcon,\n PlayPauseButton,\n SeekControl,\n VolumeControl,\n} from './components'\nimport {MarkGithubIcon} from '@primer/octicons-react'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './VideoPlayer.module.css'\nimport {useVideoResizeObserver} from './hooks/'\nimport {useVideo, VideoContext, VideoProvider} from './hooks/useVideo'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\n\ntype VideoPlayerProps = {\n title: string\n visuallyHiddenTitle?: boolean\n showBranding?: boolean\n animate?: AnimateProps\n showPlayPauseButton?: boolean\n showSeekControl?: boolean\n showCCButton?: boolean\n showMuteButton?: boolean\n showVolumeControl?: boolean\n showFullScreenButton?: boolean\n playIcon?: FunctionComponent\n} & HTMLProps<HTMLVideoElement>\n\nconst Root = forwardRef<HTMLVideoElement, VideoPlayerProps>(\n (\n {\n title,\n visuallyHiddenTitle,\n showBranding = true,\n children,\n className,\n showPlayPauseButton = true,\n showSeekControl = true,\n showCCButton = true,\n showMuteButton = true,\n showVolumeControl = true,\n showFullScreenButton = true,\n playIcon: PlayIcon = () => <DefaultPlayIcon className={styles.VideoPlayer__playButton} />,\n ...rest\n }: VideoPlayerProps,\n forwardedRef,\n ) => {\n const videoContext = useVideo()\n const {ccEnabled, fullscreenRef, isPlaying, ref, togglePlaying} = videoContext\n const forwardedRefCallback = useCallback(\n (node: HTMLVideoElement | null) => {\n assignRef(forwardedRef, node)\n },\n [forwardedRef],\n )\n const providedRef = useProvidedRefOrCreate<HTMLVideoElement>(forwardedRefCallback)\n\n const setVideoElementRef = useCallback(\n (node: HTMLVideoElement | null) => {\n assignRef(ref, node)\n assignRef(providedRef, node)\n },\n [ref, providedRef],\n )\n\n const isSmall = useVideoResizeObserver({\n videoWrapperRef: fullscreenRef,\n className: styles['VideoPlayer__container--small'],\n })\n\n const showControlsRow1 = showPlayPauseButton || showSeekControl\n const showControlsRow2 = showCCButton || showMuteButton || showVolumeControl || showFullScreenButton\n const showControlsBar = showControlsRow1 || showControlsRow2\n\n return (\n <div data-video-player-container className={styles.VideoPlayer__container} ref={fullscreenRef}>\n <div className={styles.VideoPlayer__overlayContainer}>\n <video\n ref={setVideoElementRef}\n title={title}\n controls={false}\n className={clsx(styles.VideoPlayer, className)}\n {...rest}\n >\n {children}\n <track kind=\"captions\" />\n </video>\n {showBranding || !visuallyHiddenTitle ? (\n <div className={clsx(styles.VideoPlayer__title, isPlaying && styles['VideoPlayer__title--hidden'])}>\n {showBranding && <MarkGithubIcon size={40} aria-label=\"GitHub logo\" />}\n {!visuallyHiddenTitle && (\n <Text size=\"400\" weight=\"medium\" className={styles.VideoPlayer__controlTextColor}>\n {title}\n </Text>\n )}\n </div>\n ) : null}\n <button\n className={clsx(\n styles.VideoPlayer__playButtonOverlay,\n isPlaying && styles['VideoPlayer__playButtonOverlay--transparent'],\n )}\n onClick={togglePlaying}\n aria-label={isPlaying ? 'Pause' : 'Play'}\n >\n {!isPlaying && <PlayIcon />}\n </button>\n </div>\n\n {ccEnabled && <Captions />}\n {showControlsBar && (\n <ControlsBar>\n {showControlsRow1 && (\n <div className={styles['VideoPlayer__controlsBar__row1']}>\n {showPlayPauseButton && <PlayPauseButton />}\n {showSeekControl && <SeekControl />}\n </div>\n )}\n {showControlsRow2 && (\n <div className={styles['VideoPlayer__controlsBar__row2']}>\n {showCCButton && <CCButton />}\n {showMuteButton && <MuteButton />}\n {showVolumeControl && !isSmall && <VolumeControl />}\n {showFullScreenButton && <FullScreenButton />}\n </div>\n )}\n </ControlsBar>\n )}\n </div>\n )\n },\n)\n\nfunction assignRef<T>(targetRef: React.RefObject<T> | React.Ref<T> | null | undefined, value: T | null) {\n if (!targetRef) return\n\n if (typeof targetRef === 'function') {\n targetRef(value)\n return\n }\n\n ;(targetRef as React.MutableRefObject<T | null>).current = value\n}\n\nconst VideoPlayerSource = (props: React.HTMLProps<HTMLSourceElement>) => <source {...props} />\n\nconst VideoPlayerTrack = ({kind = 'captions', ...rest}: React.HTMLProps<HTMLTrackElement>) => (\n <track kind={kind} {...rest} />\n)\n\nconst RootWithProvider = forwardRef<HTMLVideoElement, VideoPlayerProps>((props, ref) => {\n const context = useContext(VideoContext)\n\n return context ? (\n <Root ref={ref} {...props} />\n ) : (\n <VideoProvider>\n <Root ref={ref} {...props} />\n </VideoProvider>\n )\n})\n\nexport const VideoPlayer = Object.assign(RootWithProvider, {\n Source: VideoPlayerSource,\n Track: VideoPlayerTrack,\n Provider: VideoProvider,\n})\n"],"mappings":"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"}
@@ -1,37 +1,38 @@
1
- import './VideoPlayer.module-BpVcE2WB.css';var e = {
2
- VideoPlayer__container: "Primer_Brand__VideoPlayer-module__VideoPlayer__container___zr6Iu",
3
- VideoPlayer__overlayContainer: "Primer_Brand__VideoPlayer-module__VideoPlayer__overlayContainer___KADCQ",
4
- VideoPlayer: "Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9",
1
+ import './VideoPlayer.module-BpVcE2WB.css';//#region src/VideoPlayer/VideoPlayer.module.css
2
+ var e = "Primer_Brand__VideoPlayer-module__VideoPlayer__container___zr6Iu", t = "Primer_Brand__VideoPlayer-module__VideoPlayer__overlayContainer___KADCQ", n = "Primer_Brand__VideoPlayer-module__VideoPlayer___GJSo9", r = "Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay___uXPU2", i = "Primer_Brand__VideoPlayer-module__VideoPlayer__playButton___UmSvY", a = "Primer_Brand__VideoPlayer-module__VideoPlayer__title___3e5F_", o = "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar___B_mfd", s = "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row1___Vz_Zo", c = "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row2___pzzds", l = "Primer_Brand__VideoPlayer-module__VideoPlayer__controls___FYZtO", u = "Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5", d = "Primer_Brand__VideoPlayer-module__VideoPlayer__closedCaption___ODIq4", f = "Primer_Brand__VideoPlayer-module__VideoPlayer__seek___OwcjI", p = "Primer_Brand__VideoPlayer-module__VideoPlayer__progressTime___9p6bX", m = "Primer_Brand__VideoPlayer-module__VideoPlayer__totalTime___5JBGC", h = "Primer_Brand__VideoPlayer-module__VideoPlayer__progressBar___86Eto", g = "Primer_Brand__VideoPlayer-module__VideoPlayer__ccOff___NHsg6", _ = "Primer_Brand__VideoPlayer-module__VideoPlayer__ccText___7TAGa", v = "Primer_Brand__VideoPlayer-module__VideoPlayer__range___h4_en", y = "Primer_Brand__VideoPlayer-module__VideoPlayer__rangeInput___ma_RQ", b = "Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr", x = "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip___QrVwV", S = "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipContent___IOBAO", C = "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipText___SPfNc", w = "Primer_Brand__VideoPlayer-module__VideoPlayer__controlTextColor___Ih3yg", T = "Primer_Brand__VideoPlayer-module__VideoPlayer__seekTime___Wb0Ol", E = {
3
+ VideoPlayer__container: e,
4
+ VideoPlayer__overlayContainer: t,
5
+ VideoPlayer: n,
5
6
  "VideoPlayer__container--fullscreen": "Primer_Brand__VideoPlayer-module__VideoPlayer__container--fullscreen___MChxa",
6
- VideoPlayer__playButtonOverlay: "Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay___uXPU2",
7
+ VideoPlayer__playButtonOverlay: r,
7
8
  "VideoPlayer__playButtonOverlay--transparent": "Primer_Brand__VideoPlayer-module__VideoPlayer__playButtonOverlay--transparent___0UmfX",
8
- VideoPlayer__playButton: "Primer_Brand__VideoPlayer-module__VideoPlayer__playButton___UmSvY",
9
- VideoPlayer__title: "Primer_Brand__VideoPlayer-module__VideoPlayer__title___3e5F_",
9
+ VideoPlayer__playButton: i,
10
+ VideoPlayer__title: a,
10
11
  "VideoPlayer__title--hidden": "Primer_Brand__VideoPlayer-module__VideoPlayer__title--hidden___t7cGG",
11
- VideoPlayer__controlsBar: "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar___B_mfd",
12
- VideoPlayer__controlsBar__row1: "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row1___Vz_Zo",
13
- VideoPlayer__controlsBar__row2: "Primer_Brand__VideoPlayer-module__VideoPlayer__controlsBar__row2___pzzds",
14
- VideoPlayer__controls: "Primer_Brand__VideoPlayer-module__VideoPlayer__controls___FYZtO",
15
- VideoPlayer__iconControl: "Primer_Brand__VideoPlayer-module__VideoPlayer__iconControl____tvm5",
16
- VideoPlayer__closedCaption: "Primer_Brand__VideoPlayer-module__VideoPlayer__closedCaption___ODIq4",
17
- VideoPlayer__seek: "Primer_Brand__VideoPlayer-module__VideoPlayer__seek___OwcjI",
18
- VideoPlayer__progressTime: "Primer_Brand__VideoPlayer-module__VideoPlayer__progressTime___9p6bX",
12
+ VideoPlayer__controlsBar: o,
13
+ VideoPlayer__controlsBar__row1: s,
14
+ VideoPlayer__controlsBar__row2: c,
15
+ VideoPlayer__controls: l,
16
+ VideoPlayer__iconControl: u,
17
+ VideoPlayer__closedCaption: d,
18
+ VideoPlayer__seek: f,
19
+ VideoPlayer__progressTime: p,
19
20
  "VideoPlayer__container--small": "Primer_Brand__VideoPlayer-module__VideoPlayer__container--small___aQE4d",
20
- VideoPlayer__totalTime: "Primer_Brand__VideoPlayer-module__VideoPlayer__totalTime___5JBGC",
21
- VideoPlayer__progressBar: "Primer_Brand__VideoPlayer-module__VideoPlayer__progressBar___86Eto",
22
- VideoPlayer__ccOff: "Primer_Brand__VideoPlayer-module__VideoPlayer__ccOff___NHsg6",
23
- VideoPlayer__ccText: "Primer_Brand__VideoPlayer-module__VideoPlayer__ccText___7TAGa",
24
- VideoPlayer__range: "Primer_Brand__VideoPlayer-module__VideoPlayer__range___h4_en",
25
- VideoPlayer__rangeInput: "Primer_Brand__VideoPlayer-module__VideoPlayer__rangeInput___ma_RQ",
26
- VideoPlayer__rangeProgress: "Primer_Brand__VideoPlayer-module__VideoPlayer__rangeProgress___t_oOr",
27
- VideoPlayer__tooltip: "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip___QrVwV",
28
- VideoPlayer__tooltipContent: "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipContent___IOBAO",
29
- VideoPlayer__tooltipText: "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltipText___SPfNc",
21
+ VideoPlayer__totalTime: m,
22
+ VideoPlayer__progressBar: h,
23
+ VideoPlayer__ccOff: g,
24
+ VideoPlayer__ccText: _,
25
+ VideoPlayer__range: v,
26
+ VideoPlayer__rangeInput: y,
27
+ VideoPlayer__rangeProgress: b,
28
+ VideoPlayer__tooltip: x,
29
+ VideoPlayer__tooltipContent: S,
30
+ VideoPlayer__tooltipText: C,
30
31
  "VideoPlayer__tooltip-visible": "Primer_Brand__VideoPlayer-module__VideoPlayer__tooltip-visible___nqoFm",
31
- VideoPlayer__controlTextColor: "Primer_Brand__VideoPlayer-module__VideoPlayer__controlTextColor___Ih3yg",
32
- VideoPlayer__seekTime: "Primer_Brand__VideoPlayer-module__VideoPlayer__seekTime___Wb0Ol"
32
+ VideoPlayer__controlTextColor: w,
33
+ VideoPlayer__seekTime: T
33
34
  };
34
35
  //#endregion
35
- export { e as default };
36
+ export { n as VideoPlayer, g as VideoPlayer__ccOff, _ as VideoPlayer__ccText, d as VideoPlayer__closedCaption, e as VideoPlayer__container, w as VideoPlayer__controlTextColor, l as VideoPlayer__controls, o as VideoPlayer__controlsBar, s as VideoPlayer__controlsBar__row1, c as VideoPlayer__controlsBar__row2, u as VideoPlayer__iconControl, t as VideoPlayer__overlayContainer, i as VideoPlayer__playButton, r as VideoPlayer__playButtonOverlay, h as VideoPlayer__progressBar, p as VideoPlayer__progressTime, v as VideoPlayer__range, y as VideoPlayer__rangeInput, b as VideoPlayer__rangeProgress, f as VideoPlayer__seek, T as VideoPlayer__seekTime, a as VideoPlayer__title, x as VideoPlayer__tooltip, S as VideoPlayer__tooltipContent, C as VideoPlayer__tooltipText, m as VideoPlayer__totalTime, E as default };
36
37
 
37
38
  //# sourceMappingURL=VideoPlayer.module.js.map
@@ -1,3 +1,3 @@
1
- import { type HTMLAttributes } from 'react';
2
- export declare const CCButton: ({ className, ...props }: HTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React, { type HTMLAttributes } from 'react';
2
+ export declare const CCButton: ({ className, ...props }: HTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
3
3
  //# sourceMappingURL=CCButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CCButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/CCButton/CCButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAQhD,eAAO,MAAM,QAAQ,GAAI,yBAAuB,cAAc,CAAC,iBAAiB,CAAC,4CAoBhF,CAAA"}
1
+ {"version":3,"file":"CCButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/CCButton/CCButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAQhD,eAAO,MAAM,QAAQ,GAAI,yBAAuB,cAAc,CAAC,iBAAiB,CAAC,sBAoBhF,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 { Text as t } from "../../../Text/Text.js";
3
3
  import n from "../../VideoPlayer.module.js";
4
4
  import { useVideo as r } from "../../hooks/useVideo.js";
@@ -1 +1 @@
1
- {"version":3,"file":"CCButton.js","names":[],"sources":["../../../../src/VideoPlayer/components/CCButton/CCButton.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport {Text} from '../../../Text'\nimport styles from '../../VideoPlayer.module.css'\nimport {VideoTooltip} from '../'\nimport {useVideo} from '../../hooks/useVideo'\n\nexport const CCButton = ({className, ...props}: HTMLAttributes<HTMLButtonElement>) => {\n const {ccEnabled, toggleCC} = useVideo()\n\n return (\n <button\n className={clsx(\n className,\n styles.VideoPlayer__iconControl,\n styles.VideoPlayer__closedCaption,\n !ccEnabled && styles.VideoPlayer__ccOff,\n )}\n onClick={toggleCC}\n {...props}\n >\n <Text className={styles.VideoPlayer__ccText} aria-hidden=\"true\">\n CC\n </Text>\n <VideoTooltip>{ccEnabled ? 'Disable captions' : 'Enable captions'}</VideoTooltip>\n </button>\n )\n}\n"],"mappings":";;;;;;;;AAQA,IAAa,KAAY,EAAC,cAAW,GAAG,QAA8C;CACpF,IAAM,EAAC,cAAW,gBAAY,GAAU;AAExC,QACE,kBAAC,UAAD;EACE,WAAW,EACT,GACA,EAAO,0BACP,EAAO,4BACP,CAAC,KAAa,EAAO,mBACtB;EACD,SAAS;EACT,GAAI;YARN,CAUE,kBAAC,GAAD;GAAM,WAAW,EAAO;GAAqB,eAAY;aAAO;GAEzD,CAAA,EACP,kBAAC,GAAD,EAAA,UAAe,IAAY,qBAAqB,mBAAiC,CAAA,CAC1E"}
1
+ {"version":3,"file":"CCButton.js","names":[],"sources":["../../../../src/VideoPlayer/components/CCButton/CCButton.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport {Text} from '../../../Text'\nimport styles from '../../VideoPlayer.module.css'\nimport {VideoTooltip} from '../'\nimport {useVideo} from '../../hooks/useVideo'\n\nexport const CCButton = ({className, ...props}: HTMLAttributes<HTMLButtonElement>) => {\n const {ccEnabled, toggleCC} = useVideo()\n\n return (\n <button\n className={clsx(\n className,\n styles.VideoPlayer__iconControl,\n styles.VideoPlayer__closedCaption,\n !ccEnabled && styles.VideoPlayer__ccOff,\n )}\n onClick={toggleCC}\n {...props}\n >\n <Text className={styles.VideoPlayer__ccText} aria-hidden=\"true\">\n CC\n </Text>\n <VideoTooltip>{ccEnabled ? 'Disable captions' : 'Enable captions'}</VideoTooltip>\n </button>\n )\n}\n"],"mappings":";;;;;;;;AAQA,IAAa,KAAY,EAAC,cAAW,GAAG,QAA8C;CACpF,IAAM,EAAC,cAAW,gBAAY,EAAS;CAEvC,OACE,kBAAC,UAAD;EACE,WAAW,EACT,GACA,EAAO,0BACP,EAAO,4BACP,CAAC,KAAa,EAAO,kBACvB;EACA,SAAS;EACT,GAAI;YARN,CAUE,kBAAC,GAAD;GAAM,WAAW,EAAO;GAAqB,eAAY;aAAO;EAE1D,CAAA,GACN,kBAAC,GAAD,EAAA,UAAe,IAAY,qBAAqB,kBAAgC,CAAA,CAC1E;;AAEZ"}
@@ -1,3 +1,3 @@
1
- import { type HTMLAttributes } from 'react';
2
- export declare const Captions: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element | null;
1
+ import React, { type HTMLAttributes } from 'react';
2
+ export declare const Captions: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => React.JSX.Element | null;
3
3
  //# sourceMappingURL=Captions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Captions.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/Captions/Captions.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,cAAc,EAAsB,MAAM,OAAO,CAAA;AAOrE,eAAO,MAAM,QAAQ,GAAI,yBAAuB,cAAc,CAAC,cAAc,CAAC,mDA6C7E,CAAA"}
1
+ {"version":3,"file":"Captions.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/Captions/Captions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAsB,MAAM,OAAO,CAAA;AAOrE,eAAO,MAAM,QAAQ,GAAI,yBAAuB,cAAc,CAAC,cAAc,CAAC,6BA6C7E,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 { Text as t } from "../../../Text/Text.js";
3
3
  import n from "./Captions.module.js";
4
4
  import { useVideo as r } from "../../hooks/useVideo.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Captions.js","names":[],"sources":["../../../../src/VideoPlayer/components/Captions/Captions.tsx"],"sourcesContent":["import React, {type HTMLAttributes, useEffect, useState} from 'react'\nimport {clsx} from 'clsx'\n\nimport {Text} from '../../../Text'\nimport styles from './Captions.module.css'\nimport {useVideo} from '../../hooks/useVideo'\n\nexport const Captions = ({className, ...props}: HTMLAttributes<HTMLDivElement>) => {\n const [caption, setCaption] = useState('')\n const {ref} = useVideo()\n\n const videoRef = ref?.current\n const trackInformation = videoRef?.textTracks[0]?.cues\n\n useEffect(() => {\n if (!videoRef) {\n return\n }\n\n const compareAndSetCaption = () => {\n if (!trackInformation) {\n return\n }\n\n for (let i = 0; i < trackInformation.length; i++) {\n const cue = trackInformation[i]\n\n if (videoRef.currentTime >= cue.startTime && videoRef.currentTime < cue.endTime) {\n setCaption(cue['text'])\n break\n }\n\n setCaption('')\n }\n }\n\n videoRef.addEventListener('timeupdate', compareAndSetCaption)\n\n return () => videoRef.removeEventListener('timeupdate', compareAndSetCaption)\n }, [videoRef, trackInformation])\n\n if (!trackInformation) {\n return null\n }\n\n return (\n <div className={clsx(className, styles.Captions)} {...props}>\n <Text as=\"p\" className={styles.Captions__text} align=\"center\">\n {caption}\n </Text>\n </div>\n )\n}\n"],"mappings":";;;;;;;AAOA,IAAa,KAAY,EAAC,cAAW,GAAG,QAA2C;CACjF,IAAM,CAAC,GAAS,KAAc,EAAS,GAAG,EACpC,EAAC,WAAO,GAAU,EAElB,IAAW,GAAK,SAChB,IAAmB,GAAU,WAAW,IAAI;AAiClD,QA/BA,QAAgB;AACd,MAAI,CAAC,EACH;EAGF,IAAM,UAA6B;AAC5B,SAIL,MAAK,IAAI,IAAI,GAAG,IAAI,EAAiB,QAAQ,KAAK;IAChD,IAAM,IAAM,EAAiB;AAE7B,QAAI,EAAS,eAAe,EAAI,aAAa,EAAS,cAAc,EAAI,SAAS;AAC/E,OAAW,EAAI,KAAQ;AACvB;;AAGF,MAAW,GAAG;;;AAMlB,SAFA,EAAS,iBAAiB,cAAc,EAAqB,QAEhD,EAAS,oBAAoB,cAAc,EAAqB;IAC5E,CAAC,GAAU,EAAiB,CAAC,EAE3B,IAKH,kBAAC,OAAD;EAAK,WAAW,EAAK,GAAW,EAAO,SAAS;EAAE,GAAI;YACpD,kBAAC,GAAD;GAAM,IAAG;GAAI,WAAW,EAAO;GAAgB,OAAM;aAClD;GACI,CAAA;EACH,CAAA,GARC"}
1
+ {"version":3,"file":"Captions.js","names":[],"sources":["../../../../src/VideoPlayer/components/Captions/Captions.tsx"],"sourcesContent":["import React, {type HTMLAttributes, useEffect, useState} from 'react'\nimport {clsx} from 'clsx'\n\nimport {Text} from '../../../Text'\nimport styles from './Captions.module.css'\nimport {useVideo} from '../../hooks/useVideo'\n\nexport const Captions = ({className, ...props}: HTMLAttributes<HTMLDivElement>) => {\n const [caption, setCaption] = useState('')\n const {ref} = useVideo()\n\n const videoRef = ref?.current\n const trackInformation = videoRef?.textTracks[0]?.cues\n\n useEffect(() => {\n if (!videoRef) {\n return\n }\n\n const compareAndSetCaption = () => {\n if (!trackInformation) {\n return\n }\n\n for (let i = 0; i < trackInformation.length; i++) {\n const cue = trackInformation[i]\n\n if (videoRef.currentTime >= cue.startTime && videoRef.currentTime < cue.endTime) {\n setCaption(cue['text'])\n break\n }\n\n setCaption('')\n }\n }\n\n videoRef.addEventListener('timeupdate', compareAndSetCaption)\n\n return () => videoRef.removeEventListener('timeupdate', compareAndSetCaption)\n }, [videoRef, trackInformation])\n\n if (!trackInformation) {\n return null\n }\n\n return (\n <div className={clsx(className, styles.Captions)} {...props}>\n <Text as=\"p\" className={styles.Captions__text} align=\"center\">\n {caption}\n </Text>\n </div>\n )\n}\n"],"mappings":";;;;;;;AAOA,IAAa,KAAY,EAAC,cAAW,GAAG,QAA2C;CACjF,IAAM,CAAC,GAAS,KAAc,EAAS,EAAE,GACnC,EAAC,WAAO,EAAS,GAEjB,IAAW,GAAK,SAChB,IAAmB,GAAU,WAAW,EAAE,EAAE;CAiClD,OA/BA,QAAgB;EACd,IAAI,CAAC,GACH;EAGF,IAAM,UAA6B;GAC5B,OAIL,KAAK,IAAI,IAAI,GAAG,IAAI,EAAiB,QAAQ,KAAK;IAChD,IAAM,IAAM,EAAiB;IAE7B,IAAI,EAAS,eAAe,EAAI,aAAa,EAAS,cAAc,EAAI,SAAS;KAC/E,EAAW,EAAI,IAAO;KACtB;IACF;IAEA,EAAW,EAAE;GACf;EACF;EAIA,OAFA,EAAS,iBAAiB,cAAc,CAAoB,SAE/C,EAAS,oBAAoB,cAAc,CAAoB;CAC9E,GAAG,CAAC,GAAU,CAAgB,CAAC,GAE1B,IAKH,kBAAC,OAAD;EAAK,WAAW,EAAK,GAAW,EAAO,QAAQ;EAAG,GAAI;YACpD,kBAAC,GAAD;GAAM,IAAG;GAAI,WAAW,EAAO;GAAgB,OAAM;aAClD;EACG,CAAA;CACH,CAAA,IARE;AAUX"}
@@ -1,8 +1,9 @@
1
- import './Captions.module-CvaHeR3V.css';var e = {
2
- Captions: "Primer_Brand__Captions-module__Captions___5Wpoz",
3
- Captions__text: "Primer_Brand__Captions-module__Captions__text___lrxrJ"
1
+ import './Captions.module-CvaHeR3V.css';//#region src/VideoPlayer/components/Captions/Captions.module.css
2
+ var e = "Primer_Brand__Captions-module__Captions___5Wpoz", t = "Primer_Brand__Captions-module__Captions__text___lrxrJ", n = {
3
+ Captions: e,
4
+ Captions__text: t
4
5
  };
5
6
  //#endregion
6
- export { e as default };
7
+ export { e as Captions, t as Captions__text, n as default };
7
8
 
8
9
  //# sourceMappingURL=Captions.module.js.map
@@ -1,4 +1,4 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import React, { type HTMLAttributes } from 'react';
2
2
  export type ControlsBarProps = HTMLAttributes<HTMLDivElement>;
3
- export declare const ControlsBar: ({ className, ...rest }: ControlsBarProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ControlsBar: ({ className, ...rest }: ControlsBarProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=ControlsBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ControlsBar.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/ControlsBar/ControlsBar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAKhD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,eAAO,MAAM,WAAW,GAAI,wBAAsB,gBAAgB,4CAEjE,CAAA"}
1
+ {"version":3,"file":"ControlsBar.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/ControlsBar/ControlsBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAKhD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,eAAO,MAAM,WAAW,GAAI,wBAAsB,gBAAgB,sBAEjE,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 t from "../../VideoPlayer.module.js";
3
3
  import "react";
4
4
  import { jsx as n } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"ControlsBar.js","names":[],"sources":["../../../../src/VideoPlayer/components/ControlsBar/ControlsBar.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport styles from '../../VideoPlayer.module.css'\n\nexport type ControlsBarProps = HTMLAttributes<HTMLDivElement>\n\nexport const ControlsBar = ({className, ...rest}: ControlsBarProps) => (\n <div className={clsx(styles.VideoPlayer__controlsBar, className)} {...rest} />\n)\n"],"mappings":";;;;;AAOA,IAAa,KAAe,EAAC,cAAW,GAAG,QACzC,kBAAC,OAAD;CAAK,WAAW,EAAK,EAAO,0BAA0B,EAAU;CAAE,GAAI;CAAQ,CAAA"}
1
+ {"version":3,"file":"ControlsBar.js","names":[],"sources":["../../../../src/VideoPlayer/components/ControlsBar/ControlsBar.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport styles from '../../VideoPlayer.module.css'\n\nexport type ControlsBarProps = HTMLAttributes<HTMLDivElement>\n\nexport const ControlsBar = ({className, ...rest}: ControlsBarProps) => (\n <div className={clsx(styles.VideoPlayer__controlsBar, className)} {...rest} />\n)\n"],"mappings":";;;;;AAOA,IAAa,KAAe,EAAC,cAAW,GAAG,QACzC,kBAAC,OAAD;CAAK,WAAW,EAAK,EAAO,0BAA0B,CAAS;CAAG,GAAI;AAAO,CAAA"}
@@ -1,3 +1,3 @@
1
- import { type HTMLAttributes } from 'react';
2
- export declare const FullScreenButton: (props: HTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React, { type HTMLAttributes } from 'react';
2
+ export declare const FullScreenButton: (props: HTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
3
3
  //# sourceMappingURL=FullScreenButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/FullScreenButton/FullScreenButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAMhD,eAAO,MAAM,gBAAgB,GAAI,OAAO,cAAc,CAAC,iBAAiB,CAAC,4CAOxE,CAAA"}
1
+ {"version":3,"file":"FullScreenButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/FullScreenButton/FullScreenButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAMhD,eAAO,MAAM,gBAAgB,GAAI,OAAO,cAAc,CAAC,iBAAiB,CAAC,sBAOxE,CAAA"}
@@ -1,4 +1,5 @@
1
- import { ScreenFullIcon as e, ScreenNormalIcon as t } from "../../../node_modules/@primer/octicons-react/dist/index.esm.js";
1
+ import { ScreenFullIcon as e } from "../../../node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js";
2
+ import { ScreenNormalIcon as t } from "../../../node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js";
2
3
  import { useVideo as n } from "../../hooks/useVideo.js";
3
4
  import { IconControl as r } from "../IconControl/IconControl.js";
4
5
  import "react";
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenButton.js","names":[],"sources":["../../../../src/VideoPlayer/components/FullScreenButton/FullScreenButton.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {ScreenFullIcon, ScreenNormalIcon} from '@primer/octicons-react'\n\nimport {IconControl} from '../'\nimport {useVideo} from '../../hooks'\n\nexport const FullScreenButton = (props: HTMLAttributes<HTMLButtonElement>) => {\n const {isFullScreen, toggleFullScreen} = useVideo()\n return (\n <IconControl onClick={toggleFullScreen} tooltip={isFullScreen ? 'Exit full screen' : 'Full screen'} {...props}>\n {isFullScreen ? <ScreenNormalIcon size={24} /> : <ScreenFullIcon size={24} />}\n </IconControl>\n )\n}\n"],"mappings":";;;;;;AAMA,IAAa,KAAoB,MAA6C;CAC5E,IAAM,EAAC,iBAAc,wBAAoB,GAAU;AACnD,QACE,kBAAC,GAAD;EAAa,SAAS;EAAkB,SAAS,IAAe,qBAAqB;EAAe,GAAI;YACtF,EAAf,IAAgB,IAAiC,GAAlC,EAAkB,MAAM,IAAM,CAA+B;EACjE,CAAA"}
1
+ {"version":3,"file":"FullScreenButton.js","names":[],"sources":["../../../../src/VideoPlayer/components/FullScreenButton/FullScreenButton.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {ScreenFullIcon, ScreenNormalIcon} from '@primer/octicons-react'\n\nimport {IconControl} from '../'\nimport {useVideo} from '../../hooks'\n\nexport const FullScreenButton = (props: HTMLAttributes<HTMLButtonElement>) => {\n const {isFullScreen, toggleFullScreen} = useVideo()\n return (\n <IconControl onClick={toggleFullScreen} tooltip={isFullScreen ? 'Exit full screen' : 'Full screen'} {...props}>\n {isFullScreen ? <ScreenNormalIcon size={24} /> : <ScreenFullIcon size={24} />}\n </IconControl>\n )\n}\n"],"mappings":";;;;;;;AAMA,IAAa,KAAoB,MAA6C;CAC5E,IAAM,EAAC,iBAAc,wBAAoB,EAAS;CAClD,OACE,kBAAC,GAAD;EAAa,SAAS;EAAkB,SAAS,IAAe,qBAAqB;EAAe,GAAI;YACtF,EAAf,IAAgB,IAAiC,GAAlC,EAAkB,MAAM,GAAK,CAA+B;CACjE,CAAA;AAEjB"}
@@ -1,7 +1,7 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import React, { type HTMLAttributes } from 'react';
2
2
  type IconControlProps = {
3
3
  tooltip: string;
4
4
  } & HTMLAttributes<HTMLButtonElement>;
5
- export declare const IconControl: ({ tooltip, children, className, ...rest }: IconControlProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const IconControl: ({ tooltip, children, className, ...rest }: IconControlProps) => React.JSX.Element;
6
6
  export {};
7
7
  //# sourceMappingURL=IconControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconControl.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/IconControl/IconControl.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAMhD,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAA;AAErC,eAAO,MAAM,WAAW,GAAI,2CAAyC,gBAAgB,4CAKpF,CAAA"}
1
+ {"version":3,"file":"IconControl.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/IconControl/IconControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAMhD,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAA;AAErC,eAAO,MAAM,WAAW,GAAI,2CAAyC,gBAAgB,sBAKpF,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 t from "../../VideoPlayer.module.js";
3
3
  import { VideoTooltip as n } from "../VideoTooltip/VideoTooltip.js";
4
4
  import "react";
@@ -1 +1 @@
1
- {"version":3,"file":"IconControl.js","names":[],"sources":["../../../../src/VideoPlayer/components/IconControl/IconControl.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport {VideoTooltip} from '../'\nimport styles from '../../VideoPlayer.module.css'\n\ntype IconControlProps = {\n tooltip: string\n} & HTMLAttributes<HTMLButtonElement>\n\nexport const IconControl = ({tooltip, children, className, ...rest}: IconControlProps) => (\n <button className={clsx(styles.VideoPlayer__iconControl, className)} {...rest}>\n {children}\n <VideoTooltip>{tooltip}</VideoTooltip>\n </button>\n)\n"],"mappings":";;;;;;AAUA,IAAa,KAAe,EAAC,YAAS,aAAU,cAAW,GAAG,QAC5D,kBAAC,UAAD;CAAQ,WAAW,EAAK,EAAO,0BAA0B,EAAU;CAAE,GAAI;WAAzE,CACG,GACD,kBAAC,GAAD,EAAA,UAAe,GAAuB,CAAA,CAC/B"}
1
+ {"version":3,"file":"IconControl.js","names":[],"sources":["../../../../src/VideoPlayer/components/IconControl/IconControl.tsx"],"sourcesContent":["import React, {type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\n\nimport {VideoTooltip} from '../'\nimport styles from '../../VideoPlayer.module.css'\n\ntype IconControlProps = {\n tooltip: string\n} & HTMLAttributes<HTMLButtonElement>\n\nexport const IconControl = ({tooltip, children, className, ...rest}: IconControlProps) => (\n <button className={clsx(styles.VideoPlayer__iconControl, className)} {...rest}>\n {children}\n <VideoTooltip>{tooltip}</VideoTooltip>\n </button>\n)\n"],"mappings":";;;;;;AAUA,IAAa,KAAe,EAAC,YAAS,aAAU,cAAW,GAAG,QAC5D,kBAAC,UAAD;CAAQ,WAAW,EAAK,EAAO,0BAA0B,CAAS;CAAG,GAAI;WAAzE,CACG,GACD,kBAAC,GAAD,EAAA,UAAe,EAAsB,CAAA,CAC/B"}
@@ -1,3 +1,3 @@
1
- import { type HTMLAttributes } from 'react';
2
- export declare const MuteButton: (props: HTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React, { type HTMLAttributes } from 'react';
2
+ export declare const MuteButton: (props: HTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
3
3
  //# sourceMappingURL=MuteButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MuteButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/MuteButton/MuteButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAMhD,eAAO,MAAM,UAAU,GAAI,OAAO,cAAc,CAAC,iBAAiB,CAAC,4CAOlE,CAAA"}
1
+ {"version":3,"file":"MuteButton.d.ts","sourceRoot":"","sources":["../../../../src/VideoPlayer/components/MuteButton/MuteButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAMhD,eAAO,MAAM,UAAU,GAAI,OAAO,cAAc,CAAC,iBAAiB,CAAC,sBAOlE,CAAA"}
@@ -1,4 +1,5 @@
1
- import { MuteIcon as e, UnmuteIcon as t } from "../../../node_modules/@primer/octicons-react/dist/index.esm.js";
1
+ import { MuteIcon as e } from "../../../node_modules/@primer/octicons-react/dist/icons/MuteIcon.js";
2
+ import { UnmuteIcon as t } from "../../../node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js";
2
3
  import { useVideo as n } from "../../hooks/useVideo.js";
3
4
  import { IconControl as r } from "../IconControl/IconControl.js";
4
5
  import "react";