@primer/react-brand 0.75.0-rc.c3abcc84 → 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 (915) hide show
  1. package/docs/index.md +2 -2
  2. package/esm/Accordion/Accordion.d.ts +2 -2
  3. package/esm/Accordion/Accordion.d.ts.map +1 -1
  4. package/esm/Accordion/Accordion.js +2 -2
  5. package/esm/Accordion/Accordion.js.map +1 -1
  6. package/esm/Accordion/Accordion.module.js +6 -5
  7. package/esm/ActionMenu/ActionMenu.d.ts +2 -2
  8. package/esm/ActionMenu/ActionMenu.js +3 -2
  9. package/esm/ActionMenu/ActionMenu.js.map +1 -1
  10. package/esm/ActionMenu/ActionMenu.module.js +7 -6
  11. package/esm/AnchorNav/AnchorNav.d.ts +4 -4
  12. package/esm/AnchorNav/AnchorNav.d.ts.map +1 -1
  13. package/esm/AnchorNav/AnchorNav.js +9 -4
  14. package/esm/AnchorNav/AnchorNav.js.map +1 -1
  15. package/esm/AnchorNav/AnchorNav.module.js +5 -4
  16. package/esm/AnchorNav/useExpandedMenu.js.map +1 -1
  17. package/esm/Avatar/Avatar.js +1 -1
  18. package/esm/Avatar/Avatar.js.map +1 -1
  19. package/esm/Avatar/Avatar.module.js +5 -4
  20. package/esm/Bento/Bento.d.ts +4 -4
  21. package/esm/Bento/Bento.js +1 -1
  22. package/esm/Bento/Bento.js.map +1 -1
  23. package/esm/Bento/Bento.module.js +7 -6
  24. package/esm/Box/Box.d.ts +1 -1
  25. package/esm/Box/Box.d.ts.map +1 -1
  26. package/esm/Box/Box.js +1 -1
  27. package/esm/Box/Box.js.map +1 -1
  28. package/esm/Breadcrumbs/Breadcrumbs.js +1 -1
  29. package/esm/Breadcrumbs/Breadcrumbs.js.map +1 -1
  30. package/esm/Breadcrumbs/Breadcrumbs.module.js +7 -6
  31. package/esm/BreakoutBanner/BreakoutBanner.js +1 -1
  32. package/esm/BreakoutBanner/BreakoutBanner.js.map +1 -1
  33. package/esm/BreakoutBanner/BreakoutBanner.module.js +5 -4
  34. package/esm/Button/Button.js +1 -1
  35. package/esm/Button/Button.js.map +1 -1
  36. package/esm/Button/Button.module.js +5 -4
  37. package/esm/ButtonGroup/ButtonGroup.js +1 -1
  38. package/esm/ButtonGroup/ButtonGroup.js.map +1 -1
  39. package/esm/ButtonGroup/ButtonGroup.module.js +3 -2
  40. package/esm/CTABanner/CTABanner.d.ts +1 -1
  41. package/esm/CTABanner/CTABanner.js +2 -2
  42. package/esm/CTABanner/CTABanner.js.map +1 -1
  43. package/esm/CTABanner/CTABanner.module.js +4 -3
  44. package/esm/CTAForm/CTAForm.js +1 -1
  45. package/esm/CTAForm/CTAForm.js.map +1 -1
  46. package/esm/CTAForm/CTAForm.module.js +4 -3
  47. package/esm/Card/Card.d.ts +2 -2
  48. package/esm/Card/Card.d.ts.map +1 -1
  49. package/esm/Card/Card.js +3 -3
  50. package/esm/Card/Card.js.map +1 -1
  51. package/esm/Card/Card.module.js +18 -17
  52. package/esm/ComparisonTable/ComparisonTable.d.ts +3 -3
  53. package/esm/ComparisonTable/ComparisonTable.js +1 -1
  54. package/esm/ComparisonTable/ComparisonTable.js.map +1 -1
  55. package/esm/ComparisonTable/ComparisonTable.module.js +4 -3
  56. package/esm/ExpandableArrow/ExpandableArrow.d.ts +2 -1
  57. package/esm/ExpandableArrow/ExpandableArrow.d.ts.map +1 -1
  58. package/esm/ExpandableArrow/ExpandableArrow.js +1 -1
  59. package/esm/ExpandableArrow/ExpandableArrow.js.map +1 -1
  60. package/esm/ExpandableArrow/ExpandableArrow.module.js +4 -3
  61. package/esm/EyebrowBanner/EyebrowBanner.js +2 -2
  62. package/esm/EyebrowBanner/EyebrowBanner.js.map +1 -1
  63. package/esm/EyebrowBanner/EyebrowBanner.module.js +12 -11
  64. package/esm/EyebrowText/EyebrowText.js +1 -1
  65. package/esm/EyebrowText/EyebrowText.js.map +1 -1
  66. package/esm/EyebrowText/EyebrowText.module.js +4 -3
  67. package/esm/FAQ/FAQ.d.ts +2 -2
  68. package/esm/FAQ/FAQ.d.ts.map +1 -1
  69. package/esm/FAQ/FAQ.js +1 -1
  70. package/esm/FAQ/FAQ.js.map +1 -1
  71. package/esm/FAQ/FAQ.module.js +7 -6
  72. package/esm/FAQ/FAQGroup.d.ts +2 -2
  73. package/esm/FAQ/FAQGroup.d.ts.map +1 -1
  74. package/esm/FAQ/FAQGroup.js +7 -3
  75. package/esm/FAQ/FAQGroup.js.map +1 -1
  76. package/esm/FAQ/FAQGroup.module.js +8 -7
  77. package/esm/Footnotes/Footnotes.d.ts +2 -2
  78. package/esm/Footnotes/Footnotes.d.ts.map +1 -1
  79. package/esm/Footnotes/Footnotes.js +2 -2
  80. package/esm/Footnotes/Footnotes.js.map +1 -1
  81. package/esm/Footnotes/Footnotes.module.js +7 -6
  82. package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
  83. package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts.map +1 -1
  84. package/esm/FrostedGlassVFX/FrostedGlassVFX.js +1 -1
  85. package/esm/FrostedGlassVFX/FrostedGlassVFX.js.map +1 -1
  86. package/esm/FrostedGlassVFX/FrostedGlassVFX.module.js +4 -3
  87. package/esm/Grid/Grid.d.ts +2 -2
  88. package/esm/Grid/Grid.js +2 -2
  89. package/esm/Grid/Grid.js.map +1 -1
  90. package/esm/Grid/Grid.module.js +5 -4
  91. package/esm/Heading/Heading.js +1 -1
  92. package/esm/Heading/Heading.js.map +1 -1
  93. package/esm/Heading/Heading.module.js +4 -3
  94. package/esm/Hero/Hero.js +1 -1
  95. package/esm/Hero/Hero.js.map +1 -1
  96. package/esm/Hero/Hero.module.js +4 -3
  97. package/esm/Hero/HeroContext.js.map +1 -1
  98. package/esm/Hero/sub-components/HeroButtonGroup.js +1 -1
  99. package/esm/Hero/sub-components/HeroButtonGroup.js.map +1 -1
  100. package/esm/Hero/sub-components/HeroDescription.js +1 -1
  101. package/esm/Hero/sub-components/HeroDescription.js.map +1 -1
  102. package/esm/Hero/sub-components/HeroEyebrow.js +1 -1
  103. package/esm/Hero/sub-components/HeroEyebrow.js.map +1 -1
  104. package/esm/Hero/sub-components/HeroHeading.js +1 -1
  105. package/esm/Hero/sub-components/HeroHeading.js.map +1 -1
  106. package/esm/Hero/sub-components/HeroImage.js +1 -1
  107. package/esm/Hero/sub-components/HeroImage.js.map +1 -1
  108. package/esm/Hero/sub-components/HeroLabel.js +1 -1
  109. package/esm/Hero/sub-components/HeroLabel.js.map +1 -1
  110. package/esm/Hero/sub-components/HeroPrimaryAction.js.map +1 -1
  111. package/esm/Hero/sub-components/HeroSecondaryAction.js.map +1 -1
  112. package/esm/Hero/sub-components/HeroVideo.js +2 -2
  113. package/esm/Hero/sub-components/HeroVideo.js.map +1 -1
  114. package/esm/IDE/IDE.d.ts +1 -1
  115. package/esm/IDE/IDE.js +3 -2
  116. package/esm/IDE/IDE.js.map +1 -1
  117. package/esm/IDE/IDE.module.js +8 -7
  118. package/esm/Icon/Icon.d.ts +2 -2
  119. package/esm/Icon/Icon.d.ts.map +1 -1
  120. package/esm/Icon/Icon.js +2 -2
  121. package/esm/Icon/Icon.js.map +1 -1
  122. package/esm/Icon/Icon.module.js +4 -3
  123. package/esm/Image/Image.d.ts +1 -1
  124. package/esm/Image/Image.d.ts.map +1 -1
  125. package/esm/Image/Image.js +1 -1
  126. package/esm/Image/Image.js.map +1 -1
  127. package/esm/Image/Image.module.js +5 -4
  128. package/esm/InlineCode/InlineCode.js +1 -1
  129. package/esm/InlineCode/InlineCode.js.map +1 -1
  130. package/esm/InlineCode/InlineCode.module.js +5 -4
  131. package/esm/InlineLink/InlineLink.js +2 -2
  132. package/esm/InlineLink/InlineLink.js.map +1 -1
  133. package/esm/InlineLink/InlineLink.module.js +3 -2
  134. package/esm/Label/Label.js +1 -1
  135. package/esm/Label/Label.js.map +1 -1
  136. package/esm/Label/Label.module.js +6 -5
  137. package/esm/Link/Link.d.ts +1 -1
  138. package/esm/Link/Link.d.ts.map +1 -1
  139. package/esm/Link/Link.js +2 -2
  140. package/esm/Link/Link.js.map +1 -1
  141. package/esm/Link/Link.module.js +4 -3
  142. package/esm/LogoSuite/LogoSuite.d.ts +1 -1
  143. package/esm/LogoSuite/LogoSuite.js +4 -3
  144. package/esm/LogoSuite/LogoSuite.js.map +1 -1
  145. package/esm/LogoSuite/LogoSuite.module.js +11 -10
  146. package/esm/MediaPlaylist/MediaPlaylist.d.ts +4 -4
  147. package/esm/MediaPlaylist/MediaPlaylist.d.ts.map +1 -1
  148. package/esm/MediaPlaylist/MediaPlaylist.js +1 -1
  149. package/esm/MediaPlaylist/MediaPlaylist.js.map +1 -1
  150. package/esm/MediaPlaylist/MediaPlaylist.module.js +25 -24
  151. package/esm/MediaPlaylist/useMediaPlaylist.js.map +1 -1
  152. package/esm/MinimalFooter/MinimalFooter.d.ts +3 -3
  153. package/esm/MinimalFooter/MinimalFooter.d.ts.map +1 -1
  154. package/esm/MinimalFooter/MinimalFooter.js +4 -3
  155. package/esm/MinimalFooter/MinimalFooter.js.map +1 -1
  156. package/esm/MinimalFooter/MinimalFooter.module.js +15 -14
  157. package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js +2 -2
  158. package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js.map +1 -1
  159. package/esm/MinimalVideoPlayer/MinimalVideoPlayer.module.js +6 -5
  160. package/esm/MinimalVideoPlayer/useMinimalVideoPlayback.js.map +1 -1
  161. package/esm/NavList/NavList.js +2 -2
  162. package/esm/NavList/NavList.js.map +1 -1
  163. package/esm/NavList/NavList.module.js +18 -17
  164. package/esm/Pagination/Pagination.d.ts +1 -1
  165. package/esm/Pagination/Pagination.d.ts.map +1 -1
  166. package/esm/Pagination/Pagination.js +1 -1
  167. package/esm/Pagination/Pagination.js.map +1 -1
  168. package/esm/Pagination/Pagination.module.js +11 -10
  169. package/esm/Pagination/model.js.map +1 -1
  170. package/esm/Pillar/Pillar.d.ts +2 -2
  171. package/esm/Pillar/Pillar.d.ts.map +1 -1
  172. package/esm/Pillar/Pillar.js +1 -1
  173. package/esm/Pillar/Pillar.js.map +1 -1
  174. package/esm/Pillar/Pillar.module.js +9 -8
  175. package/esm/PricingOptions/PricingOptions.d.ts +1 -1
  176. package/esm/PricingOptions/PricingOptions.js +5 -3
  177. package/esm/PricingOptions/PricingOptions.js.map +1 -1
  178. package/esm/PricingOptions/PricingOptions.module.js +13 -12
  179. package/esm/Prose/Prose.js +1 -1
  180. package/esm/Prose/Prose.js.map +1 -1
  181. package/esm/Prose/Prose.module.js +4 -3
  182. package/esm/Section/Section.js +1 -1
  183. package/esm/Section/Section.js.map +1 -1
  184. package/esm/Section/Section.module.js +5 -4
  185. package/esm/SectionIntro/SectionIntro.js +1 -1
  186. package/esm/SectionIntro/SectionIntro.js.map +1 -1
  187. package/esm/SectionIntro/SectionIntro.module.js +4 -3
  188. package/esm/SectionIntroStacked/SectionIntroStacked.d.ts +3 -3
  189. package/esm/SectionIntroStacked/SectionIntroStacked.js +1 -1
  190. package/esm/SectionIntroStacked/SectionIntroStacked.js.map +1 -1
  191. package/esm/SectionIntroStacked/SectionIntroStacked.module.js +6 -5
  192. package/esm/Stack/Stack.js +1 -1
  193. package/esm/Stack/Stack.js.map +1 -1
  194. package/esm/Stack/Stack.module.js +4 -3
  195. package/esm/Statistic/Statistic.js +1 -1
  196. package/esm/Statistic/Statistic.js.map +1 -1
  197. package/esm/Statistic/Statistic.module.js +6 -5
  198. package/esm/SubNav/SubNav.d.ts +4 -4
  199. package/esm/SubNav/SubNav.d.ts.map +1 -1
  200. package/esm/SubNav/SubNav.js +6 -4
  201. package/esm/SubNav/SubNav.js.map +1 -1
  202. package/esm/SubNav/SubNav.module.js +9 -8
  203. package/esm/SubNav/useContainsFocus.js.map +1 -1
  204. package/esm/SubdomainNavBar/NavigationVisbilityObserver.js +4 -3
  205. package/esm/SubdomainNavBar/NavigationVisbilityObserver.js.map +1 -1
  206. package/esm/SubdomainNavBar/SubdomainNavBar.d.ts +3 -3
  207. package/esm/SubdomainNavBar/SubdomainNavBar.d.ts.map +1 -1
  208. package/esm/SubdomainNavBar/SubdomainNavBar.js +6 -2
  209. package/esm/SubdomainNavBar/SubdomainNavBar.js.map +1 -1
  210. package/esm/SubdomainNavBar/SubdomainNavBar.module.js +4 -3
  211. package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.js.map +1 -1
  212. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js +2 -2
  213. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js.map +1 -1
  214. package/esm/SubdomainNavBar/useSearchResults.js.map +1 -1
  215. package/esm/SubdomainNavBar/useVisibilityObserver.js.map +1 -1
  216. package/esm/Tabs/Tabs.js +3 -2
  217. package/esm/Tabs/Tabs.js.map +1 -1
  218. package/esm/Tabs/Tabs.module.js +12 -11
  219. package/esm/Testimonial/Testimonial.d.ts +1 -1
  220. package/esm/Testimonial/Testimonial.d.ts.map +1 -1
  221. package/esm/Testimonial/Testimonial.js +1 -1
  222. package/esm/Testimonial/Testimonial.js.map +1 -1
  223. package/esm/Testimonial/Testimonial.module.js +8 -7
  224. package/esm/Text/Text.d.ts +1 -1
  225. package/esm/Text/Text.d.ts.map +1 -1
  226. package/esm/Text/Text.js +1 -1
  227. package/esm/Text/Text.js.map +1 -1
  228. package/esm/Text/Text.module.js +4 -3
  229. package/esm/TextCursorAnimation/TextCursorAnimation.d.ts +1 -1
  230. package/esm/TextCursorAnimation/TextCursorAnimation.d.ts.map +1 -1
  231. package/esm/TextCursorAnimation/TextCursorAnimation.js +1 -1
  232. package/esm/TextCursorAnimation/TextCursorAnimation.js.map +1 -1
  233. package/esm/TextCursorAnimation/TextCursorAnimation.module.js +10 -9
  234. package/esm/ThemeProvider/ThemeProvider.d.ts +1 -1
  235. package/esm/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  236. package/esm/ThemeProvider/ThemeProvider.js +4 -4
  237. package/esm/ThemeProvider/ThemeProvider.js.map +1 -1
  238. package/esm/ThemeProvider/useTheme.js.map +1 -1
  239. package/esm/Tiles/Tiles.js +2 -2
  240. package/esm/Tiles/Tiles.js.map +1 -1
  241. package/esm/Tiles/Tiles.module.js +4 -3
  242. package/esm/Timeline/Timeline.d.ts +3 -3
  243. package/esm/Timeline/Timeline.d.ts.map +1 -1
  244. package/esm/Timeline/Timeline.js +2 -2
  245. package/esm/Timeline/Timeline.js.map +1 -1
  246. package/esm/Timeline/Timeline.module.js +5 -4
  247. package/esm/Token/Token.js +1 -1
  248. package/esm/Token/Token.js.map +1 -1
  249. package/esm/Token/Token.module.js +6 -5
  250. package/esm/Tooltip/Tooltip.js +2 -2
  251. package/esm/Tooltip/Tooltip.js.map +1 -1
  252. package/esm/Tooltip/Tooltip.module.js +4 -3
  253. package/esm/VideoPlayer/VideoPlayer.d.ts +2 -2
  254. package/esm/VideoPlayer/VideoPlayer.js +2 -2
  255. package/esm/VideoPlayer/VideoPlayer.js.map +1 -1
  256. package/esm/VideoPlayer/VideoPlayer.module.js +29 -28
  257. package/esm/VideoPlayer/components/CCButton/CCButton.d.ts +2 -2
  258. package/esm/VideoPlayer/components/CCButton/CCButton.d.ts.map +1 -1
  259. package/esm/VideoPlayer/components/CCButton/CCButton.js +1 -1
  260. package/esm/VideoPlayer/components/CCButton/CCButton.js.map +1 -1
  261. package/esm/VideoPlayer/components/Captions/Captions.d.ts +2 -2
  262. package/esm/VideoPlayer/components/Captions/Captions.d.ts.map +1 -1
  263. package/esm/VideoPlayer/components/Captions/Captions.js +1 -1
  264. package/esm/VideoPlayer/components/Captions/Captions.js.map +1 -1
  265. package/esm/VideoPlayer/components/Captions/Captions.module.js +5 -4
  266. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +2 -2
  267. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts.map +1 -1
  268. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js +1 -1
  269. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js.map +1 -1
  270. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +2 -2
  271. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts.map +1 -1
  272. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js +2 -1
  273. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js.map +1 -1
  274. package/esm/VideoPlayer/components/IconControl/IconControl.d.ts +2 -2
  275. package/esm/VideoPlayer/components/IconControl/IconControl.d.ts.map +1 -1
  276. package/esm/VideoPlayer/components/IconControl/IconControl.js +1 -1
  277. package/esm/VideoPlayer/components/IconControl/IconControl.js.map +1 -1
  278. package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts +2 -2
  279. package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts.map +1 -1
  280. package/esm/VideoPlayer/components/MuteButton/MuteButton.js +2 -1
  281. package/esm/VideoPlayer/components/MuteButton/MuteButton.js.map +1 -1
  282. package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +2 -2
  283. package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts.map +1 -1
  284. package/esm/VideoPlayer/components/PauseIcon/PauseIcon.js.map +1 -1
  285. package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +2 -2
  286. package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts.map +1 -1
  287. package/esm/VideoPlayer/components/PlayIcon/PlayIcon.js.map +1 -1
  288. package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +2 -2
  289. package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts.map +1 -1
  290. package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.js.map +1 -1
  291. package/esm/VideoPlayer/components/Range/Range.d.ts +1 -1
  292. package/esm/VideoPlayer/components/Range/Range.d.ts.map +1 -1
  293. package/esm/VideoPlayer/components/Range/Range.js +1 -1
  294. package/esm/VideoPlayer/components/Range/Range.js.map +1 -1
  295. package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts +2 -2
  296. package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts.map +1 -1
  297. package/esm/VideoPlayer/components/SeekControl/SeekControl.js +1 -1
  298. package/esm/VideoPlayer/components/SeekControl/SeekControl.js.map +1 -1
  299. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +2 -2
  300. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts.map +1 -1
  301. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js +3 -2
  302. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js.map +1 -1
  303. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +2 -1
  304. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts.map +1 -1
  305. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.js.map +1 -1
  306. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.module.js +3 -2
  307. package/esm/VideoPlayer/hooks/useIsElementFullScreen.js.map +1 -1
  308. package/esm/VideoPlayer/hooks/useVideo.js.map +1 -1
  309. package/esm/VideoPlayer/hooks/useVideoResizeObserver.js.map +1 -1
  310. package/esm/animation/Animate/Animate.d.ts +1 -1
  311. package/esm/animation/Animate/Animate.d.ts.map +1 -1
  312. package/esm/animation/Animate/Animate.js +1 -1
  313. package/esm/animation/Animate/Animate.js.map +1 -1
  314. package/esm/animation/Animation.module.js +4 -3
  315. package/esm/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
  316. package/esm/animation/AnimationProvider/AnimationProvider.d.ts.map +1 -1
  317. package/esm/animation/AnimationProvider/AnimationProvider.js.map +1 -1
  318. package/esm/animation/TextRevealAnimation/TextRevealAnimation.js +1 -1
  319. package/esm/animation/TextRevealAnimation/TextRevealAnimation.js.map +1 -1
  320. package/esm/animation/TextRevealAnimation/TextRevealAnimation.module.js +5 -4
  321. package/esm/animation/TextRevealAnimation/useTextRevealAnimationLines.js.map +1 -1
  322. package/esm/animation/useAnimation.js.map +1 -1
  323. package/esm/component-helpers/shared.module.js +3 -2
  324. package/esm/component-helpers.d.ts +2 -2
  325. package/esm/component-helpers.d.ts.map +1 -1
  326. package/esm/constants.js.map +1 -1
  327. package/esm/css/stylesheets.js +1 -1
  328. package/esm/findElementInChildren.js.map +1 -1
  329. package/esm/forms/Checkbox/Checkbox.js +2 -2
  330. package/esm/forms/Checkbox/Checkbox.js.map +1 -1
  331. package/esm/forms/Checkbox/Checkbox.module.js +4 -3
  332. package/esm/forms/ControlGroup/ControlGroup.js +3 -2
  333. package/esm/forms/ControlGroup/ControlGroup.js.map +1 -1
  334. package/esm/forms/ControlGroup/ControlGroup.module.js +7 -6
  335. package/esm/forms/FormControl/FormControl.d.ts +5 -5
  336. package/esm/forms/FormControl/FormControl.d.ts.map +1 -1
  337. package/esm/forms/FormControl/FormControl.js +4 -3
  338. package/esm/forms/FormControl/FormControl.js.map +1 -1
  339. package/esm/forms/FormControl/FormControl.module.js +5 -4
  340. package/esm/forms/Radio/Radio.js +1 -1
  341. package/esm/forms/Radio/Radio.js.map +1 -1
  342. package/esm/forms/Radio/Radio.module.js +4 -3
  343. package/esm/forms/Select/Select.d.ts +2 -2
  344. package/esm/forms/Select/Select.js +1 -1
  345. package/esm/forms/Select/Select.js.map +1 -1
  346. package/esm/forms/Select/Select.module.js +4 -3
  347. package/esm/forms/TextInput/TextInput.js +1 -1
  348. package/esm/forms/TextInput/TextInput.js.map +1 -1
  349. package/esm/forms/TextInput/TextInput.module.js +5 -4
  350. package/esm/forms/Textarea/Textarea.js +1 -1
  351. package/esm/forms/Textarea/Textarea.js.map +1 -1
  352. package/esm/forms/Textarea/Textarea.module.js +4 -3
  353. package/esm/hooks/useAnchoredPosition.js +7 -4
  354. package/esm/hooks/useAnchoredPosition.js.map +1 -1
  355. package/esm/hooks/useCursorAnimation.js +4 -2
  356. package/esm/hooks/useCursorAnimation.js.map +1 -1
  357. package/esm/hooks/useFocusTrap.js.map +1 -1
  358. package/esm/hooks/useId.js.map +1 -1
  359. package/esm/hooks/useKeyboardEscape.js.map +1 -1
  360. package/esm/hooks/useOnClickOutside.js.map +1 -1
  361. package/esm/hooks/useReducedMotion.js +1 -1
  362. package/esm/hooks/useReducedMotion.js.map +1 -1
  363. package/esm/hooks/useRef.js.map +1 -1
  364. package/esm/hooks/useResizeObserver.js.map +1 -1
  365. package/esm/hooks/useTabs.js +1 -1
  366. package/esm/hooks/useTabs.js.map +1 -1
  367. package/esm/hooks/useWindowSize.js +7 -7
  368. package/esm/hooks/useWindowSize.js.map +1 -1
  369. package/esm/list/ListItem/ListItem.js +4 -2
  370. package/esm/list/ListItem/ListItem.js.map +1 -1
  371. package/esm/list/ListItem/ListItem.module.js +5 -4
  372. package/esm/list/OrderedList/OrderedList.d.ts +2 -2
  373. package/esm/list/OrderedList/OrderedList.d.ts.map +1 -1
  374. package/esm/list/OrderedList/OrderedList.js +1 -1
  375. package/esm/list/OrderedList/OrderedList.js.map +1 -1
  376. package/esm/list/OrderedList/OrderedList.module.js +3 -2
  377. package/esm/list/UnorderedList/UnorderedList.d.ts +2 -2
  378. package/esm/list/UnorderedList/UnorderedList.d.ts.map +1 -1
  379. package/esm/list/UnorderedList/UnorderedList.js +1 -1
  380. package/esm/list/UnorderedList/UnorderedList.js.map +1 -1
  381. package/esm/list/list-shared.module.js +3 -2
  382. package/esm/list/listContext.js.map +1 -1
  383. package/esm/node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js +28 -0
  384. package/esm/node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js.map +1 -0
  385. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.js +20 -0
  386. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.js.map +1 -0
  387. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js +20 -0
  388. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js.map +1 -0
  389. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js +28 -0
  390. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js.map +1 -0
  391. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckIcon.js +20 -0
  392. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckIcon.js.map +1 -0
  393. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronDownIcon.js +28 -0
  394. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronDownIcon.js.map +1 -0
  395. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js +28 -0
  396. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js.map +1 -0
  397. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronRightIcon.js +28 -0
  398. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronRightIcon.js.map +1 -0
  399. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronUpIcon.js +28 -0
  400. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronUpIcon.js.map +1 -0
  401. package/esm/node_modules/@primer/octicons-react/dist/icons/CopilotIcon.js +33 -0
  402. package/esm/node_modules/@primer/octicons-react/dist/icons/CopilotIcon.js.map +1 -0
  403. package/esm/node_modules/@primer/octicons-react/dist/icons/DashIcon.js +20 -0
  404. package/esm/node_modules/@primer/octicons-react/dist/icons/DashIcon.js.map +1 -0
  405. package/esm/node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js +20 -0
  406. package/esm/node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js.map +1 -0
  407. package/esm/node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js +20 -0
  408. package/esm/node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js.map +1 -0
  409. package/esm/node_modules/@primer/octicons-react/dist/icons/MuteIcon.js +20 -0
  410. package/esm/node_modules/@primer/octicons-react/dist/icons/MuteIcon.js.map +1 -0
  411. package/esm/node_modules/@primer/octicons-react/dist/icons/PaperAirplaneIcon.js +20 -0
  412. package/esm/node_modules/@primer/octicons-react/dist/icons/PaperAirplaneIcon.js.map +1 -0
  413. package/esm/node_modules/@primer/octicons-react/dist/icons/PauseIcon.js +20 -0
  414. package/esm/node_modules/@primer/octicons-react/dist/icons/PauseIcon.js.map +1 -0
  415. package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js +20 -0
  416. package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js.map +1 -0
  417. package/esm/node_modules/@primer/octicons-react/dist/icons/ReplyIcon.js +20 -0
  418. package/esm/node_modules/@primer/octicons-react/dist/icons/ReplyIcon.js.map +1 -0
  419. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js +20 -0
  420. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js.map +1 -0
  421. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js +20 -0
  422. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js.map +1 -0
  423. package/esm/node_modules/@primer/octicons-react/dist/icons/SearchIcon.js +20 -0
  424. package/esm/node_modules/@primer/octicons-react/dist/icons/SearchIcon.js.map +1 -0
  425. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleDownIcon.js +20 -0
  426. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleDownIcon.js.map +1 -0
  427. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleUpIcon.js +20 -0
  428. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleUpIcon.js.map +1 -0
  429. package/esm/node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js +20 -0
  430. package/esm/node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js.map +1 -0
  431. package/esm/node_modules/@primer/octicons-react/dist/icons/XIcon.js +28 -0
  432. package/esm/node_modules/@primer/octicons-react/dist/icons/XIcon.js.map +1 -0
  433. package/esm/node_modules/@primer/octicons-react/dist/renderOcticon-DuMQdmQC.js +132 -0
  434. package/esm/node_modules/@primer/octicons-react/dist/renderOcticon-DuMQdmQC.js.map +1 -0
  435. package/esm/node_modules/clsx/dist/clsx.js +1 -1
  436. package/esm/node_modules/clsx/dist/clsx.js.map +1 -1
  437. package/esm/river/River/River.js +2 -2
  438. package/esm/river/River/River.js.map +1 -1
  439. package/esm/river/RiverAccordion/RiverAccordion.d.ts +4 -4
  440. package/esm/river/RiverAccordion/RiverAccordion.js +3 -2
  441. package/esm/river/RiverAccordion/RiverAccordion.js.map +1 -1
  442. package/esm/river/RiverAccordion/RiverAccordion.module.js +16 -15
  443. package/esm/river/RiverBreakout/RiverBreakout.d.ts +1 -1
  444. package/esm/river/RiverBreakout/RiverBreakout.js +1 -1
  445. package/esm/river/RiverBreakout/RiverBreakout.js.map +1 -1
  446. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +5 -5
  447. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js +2 -2
  448. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js.map +1 -1
  449. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js +31 -30
  450. package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
  451. package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts.map +1 -1
  452. package/esm/river/RiverStoryScroll/RiverStoryScroll.js +5 -3
  453. package/esm/river/RiverStoryScroll/RiverStoryScroll.js.map +1 -1
  454. package/esm/river/RiverStoryScroll/RiverStoryScroll.module.js +8 -7
  455. package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +2 -2
  456. package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts.map +1 -1
  457. package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.js.map +1 -1
  458. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
  459. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts.map +1 -1
  460. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js +1 -1
  461. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js.map +1 -1
  462. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
  463. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts.map +1 -1
  464. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js +1 -1
  465. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js.map +1 -1
  466. package/esm/river/river-shared.module.js +13 -12
  467. package/esm/utils/getTextContent.js.map +1 -1
  468. package/esm/utils/isFragmentElement.js.map +1 -1
  469. package/lib/Accordion/Accordion.d.ts +2 -2
  470. package/lib/ActionMenu/ActionMenu.d.ts +2 -2
  471. package/lib/AnchorNav/AnchorNav.d.ts +4 -4
  472. package/lib/Bento/Bento.d.ts +4 -4
  473. package/lib/Box/Box.d.ts +1 -1
  474. package/lib/CTABanner/CTABanner.d.ts +1 -1
  475. package/lib/Card/Card.d.ts +2 -2
  476. package/lib/ComparisonTable/ComparisonTable.d.ts +3 -3
  477. package/lib/ExpandableArrow/ExpandableArrow.d.ts +2 -1
  478. package/lib/FAQ/FAQ.d.ts +2 -2
  479. package/lib/FAQ/FAQGroup.d.ts +2 -2
  480. package/lib/Footnotes/Footnotes.d.ts +2 -2
  481. package/lib/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
  482. package/lib/Grid/Grid.d.ts +2 -2
  483. package/lib/IDE/IDE.d.ts +1 -1
  484. package/lib/Icon/Icon.d.ts +2 -2
  485. package/lib/Image/Image.d.ts +1 -1
  486. package/lib/Link/Link.d.ts +1 -1
  487. package/lib/LogoSuite/LogoSuite.d.ts +1 -1
  488. package/lib/MediaPlaylist/MediaPlaylist.d.ts +4 -4
  489. package/lib/MinimalFooter/MinimalFooter.d.ts +3 -3
  490. package/lib/Pagination/Pagination.d.ts +1 -1
  491. package/lib/Pillar/Pillar.d.ts +2 -2
  492. package/lib/PricingOptions/PricingOptions.d.ts +1 -1
  493. package/lib/SectionIntroStacked/SectionIntroStacked.d.ts +3 -3
  494. package/lib/SubNav/SubNav.d.ts +4 -4
  495. package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +3 -3
  496. package/lib/Testimonial/Testimonial.d.ts +1 -1
  497. package/lib/Text/Text.d.ts +1 -1
  498. package/lib/TextCursorAnimation/TextCursorAnimation.d.ts +1 -1
  499. package/lib/ThemeProvider/ThemeProvider.d.ts +1 -1
  500. package/lib/Timeline/Timeline.d.ts +3 -3
  501. package/lib/VideoPlayer/VideoPlayer.d.ts +2 -2
  502. package/lib/VideoPlayer/components/CCButton/CCButton.d.ts +2 -2
  503. package/lib/VideoPlayer/components/Captions/Captions.d.ts +2 -2
  504. package/lib/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +2 -2
  505. package/lib/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +2 -2
  506. package/lib/VideoPlayer/components/IconControl/IconControl.d.ts +2 -2
  507. package/lib/VideoPlayer/components/MuteButton/MuteButton.d.ts +2 -2
  508. package/lib/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +2 -2
  509. package/lib/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +2 -2
  510. package/lib/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +2 -2
  511. package/lib/VideoPlayer/components/Range/Range.d.ts +1 -1
  512. package/lib/VideoPlayer/components/SeekControl/SeekControl.d.ts +2 -2
  513. package/lib/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +2 -2
  514. package/lib/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +2 -1
  515. package/lib/animation/Animate/Animate.d.ts +1 -1
  516. package/lib/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
  517. package/lib/component-helpers.d.ts +2 -2
  518. package/lib/css/main.css +148 -838
  519. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  520. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  521. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  522. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  523. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  524. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  525. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  526. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  527. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  528. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  529. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  530. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  531. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  532. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  533. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  534. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  535. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  536. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  537. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  538. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  539. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  540. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  541. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  542. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  543. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  544. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  545. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  546. package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
  547. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  548. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  549. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  550. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  551. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  552. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  553. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  554. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  555. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  556. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  557. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  558. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  559. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  560. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
  561. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
  562. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  563. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  564. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  565. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  566. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  567. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  568. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  569. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  570. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  571. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  572. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  573. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  574. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
  575. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  576. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  577. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  578. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  579. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  580. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  581. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  582. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  583. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  584. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  585. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  586. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  587. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  588. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  589. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  590. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  591. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  592. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  593. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  594. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
  595. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  596. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  597. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  598. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  599. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  600. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  601. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  602. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  603. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  604. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  605. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  606. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  607. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  608. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  609. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  610. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  611. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  612. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  613. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  614. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  615. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  616. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  617. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  618. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  619. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  620. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  621. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  622. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  623. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  624. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  625. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  626. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  627. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  628. package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
  629. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  630. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  631. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  632. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  633. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  634. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  635. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  636. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  637. package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
  638. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  639. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  640. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  641. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  642. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  643. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  644. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  645. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  646. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  647. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  648. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  649. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  650. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  651. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  652. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  653. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  654. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  655. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  656. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  657. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
  658. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  659. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  660. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  661. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  662. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  663. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  664. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  665. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  666. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  667. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  668. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  669. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  670. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  671. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  672. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  673. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  674. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  675. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  676. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  677. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  678. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  679. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  680. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  681. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  682. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  683. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  684. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  685. package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
  686. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  687. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  688. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  689. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  690. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  691. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  692. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  693. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  694. package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
  695. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  696. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  697. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  698. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  699. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  700. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  701. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  702. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  703. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  704. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  705. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  706. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  707. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  708. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  709. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  710. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  711. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  712. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  713. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  714. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
  715. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  716. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  717. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  718. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  719. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  720. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  721. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  722. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  723. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  724. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  725. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  726. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  727. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  728. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  729. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  730. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  731. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  732. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  733. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  734. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  735. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  736. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  737. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  738. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  739. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  740. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  741. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  742. package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
  743. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  744. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  745. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  746. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  747. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  748. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  749. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  750. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  751. package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
  752. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  753. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  754. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  755. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  756. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  757. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  758. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  759. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  760. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  761. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  762. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  763. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  764. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  765. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  766. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  767. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  768. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  769. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  770. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  771. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
  772. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  773. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  774. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  775. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  776. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  777. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  778. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  779. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  780. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  781. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  782. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  783. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  784. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  785. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  786. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  787. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  788. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  789. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  790. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  791. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  792. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  793. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  794. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  795. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  796. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  797. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  798. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  799. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  800. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  801. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  802. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  803. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  804. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  805. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  806. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  807. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  808. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  809. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  810. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  811. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  812. package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
  813. package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
  814. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  815. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  816. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  817. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  818. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  819. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  820. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  821. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  822. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  823. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  824. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  825. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  826. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  827. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  828. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  829. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  830. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
  831. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
  832. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  833. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  834. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  835. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  836. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  837. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  838. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  839. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  840. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  841. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  842. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  843. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  844. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  845. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  846. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  847. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  848. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  849. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  850. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  851. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  852. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  853. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  854. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  855. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  856. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  857. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  858. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  859. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  860. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  861. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  862. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  863. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  864. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  865. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  866. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  867. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  868. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  869. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  870. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
  871. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
  872. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  873. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  874. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  875. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  876. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  877. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  878. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  879. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  880. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  881. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  882. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  883. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  884. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  885. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  886. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  887. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  888. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  889. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  890. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  891. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  892. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  893. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  894. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  895. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  896. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  897. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  898. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  899. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  900. package/lib/forms/FormControl/FormControl.d.ts +5 -5
  901. package/lib/forms/Select/Select.d.ts +2 -2
  902. package/lib/index.js +1 -1
  903. package/lib/list/OrderedList/OrderedList.d.ts +2 -2
  904. package/lib/list/UnorderedList/UnorderedList.d.ts +2 -2
  905. package/lib/river/RiverAccordion/RiverAccordion.d.ts +4 -4
  906. package/lib/river/RiverBreakout/RiverBreakout.d.ts +1 -1
  907. package/lib/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +5 -5
  908. package/lib/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
  909. package/lib/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +2 -2
  910. package/lib/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
  911. package/lib/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
  912. package/llms.txt +2 -2
  913. package/package.json +24 -23
  914. package/esm/node_modules/@primer/octicons-react/dist/index.esm.js +0 -434
  915. package/esm/node_modules/@primer/octicons-react/dist/index.esm.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"EyebrowBanner.js","names":[],"sources":["../../src/EyebrowBanner/EyebrowBanner.tsx"],"sourcesContent":["import React, {PropsWithChildren, forwardRef, useCallback} from 'react'\nimport {clsx} from 'clsx'\nimport {type Icon as IconProps} from '@primer/octicons-react'\n\nimport {Text} from '../Text'\nimport {Colors, BiColorGradients} from '../constants'\n\nimport type {BaseProps} from '../component-helpers'\nimport {ExpandableArrow} from '../ExpandableArrow'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './EyebrowBanner.module.css'\n\nexport type EyebrowBannerProps = BaseProps<HTMLAnchorElement> & {\n href: string\n ['data-testid']?: string\n} & React.HTMLAttributes<HTMLAnchorElement> &\n React.AnchorHTMLAttributes<HTMLAnchorElement>\n\nconst testIds = {\n root: 'EyebrowBanner',\n visual: 'EyebrowBanner__visual',\n label: 'EyebrowBanner__label',\n expandableArrow: 'EyebrowBanner__expandableArrow',\n}\n\nconst _EyebrowBanner = forwardRef<HTMLAnchorElement, EyebrowBannerProps>(\n ({className, children, 'data-testid': testId, href, onMouseEnter, onMouseLeave, onFocus, onBlur, ...rest}, ref) => {\n const [isHovered, setIsHovered] = React.useState(false)\n const [isFocused, setIsFocused] = React.useState(false)\n\n const handleMouseEnter = useCallback(\n (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {\n setIsHovered(!isHovered)\n onMouseEnter?.(event)\n },\n [onMouseEnter, isHovered],\n )\n\n const handleMouseLeave = useCallback(\n (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {\n setIsHovered(!isHovered)\n onMouseLeave?.(event)\n },\n [onMouseLeave, isHovered],\n )\n\n const handleOnFocus = useCallback(\n (event: React.FocusEvent<HTMLAnchorElement, Element>) => {\n setIsFocused(!isFocused)\n onFocus?.(event)\n },\n [onFocus, isFocused],\n )\n\n const handleOnBlur = useCallback(\n (event: React.FocusEvent<HTMLAnchorElement, Element>) => {\n setIsFocused(!isFocused)\n onBlur?.(event)\n },\n [onBlur, isFocused],\n )\n\n const HeadingChild = React.Children.toArray(children).filter(child => {\n if (React.isValidElement(child)) {\n return child.type === EyebrowBannerHeading\n }\n })\n\n const SubHeadingChild = React.Children.toArray(children).filter(child => {\n if (React.isValidElement(child)) {\n return child.type === EyebrowBannerSubHeading\n }\n })\n\n const VisualChild = React.Children.toArray(children).find(child => {\n if (React.isValidElement(child)) {\n return child.type === EyebrowBannerVisual\n }\n })\n\n const LabelChild = React.Children.toArray(children).find(child => {\n if (React.isValidElement(child)) {\n return child.type === EyebrowBannerLabel\n }\n })\n\n return (\n <a\n href={href}\n ref={ref}\n className={clsx(styles.EyebrowBanner, className)}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onFocus={handleOnFocus}\n onBlur={handleOnBlur}\n data-testid={testId || testIds.root}\n {...rest}\n >\n <span className={styles['EyebrowBanner__inner']}>\n {VisualChild && <span className={styles['EyebrowBanner__leadingVisual']}>{VisualChild}</span>}\n <span className=\"visually-hidden\">&nbsp;</span>\n {LabelChild && !VisualChild && <>{LabelChild}</>}\n <span className=\"visually-hidden\">&nbsp;</span>\n <span className={styles['EyebrowBanner__headings']}>\n {HeadingChild}\n <span className=\"visually-hidden\">&nbsp;</span>\n {SubHeadingChild}\n </span>\n\n <span className={styles['EyebrowBanner__trailingVisual']}>\n <ExpandableArrow\n className={styles['EyebrowBanner__trailingVisual-icon']}\n expanded={isHovered || isFocused}\n data-testid={testIds.expandableArrow}\n />\n </span>\n </span>\n </a>\n )\n },\n)\n\ntype EyebrowBannerHeadingProps = PropsWithChildren<BaseProps<HTMLSpanElement>>\n\nconst EyebrowBannerHeading = forwardRef<HTMLSpanElement, EyebrowBannerHeadingProps>(\n ({className, children, ...rest}, ref) => {\n return (\n <Text\n size=\"100\"\n variant=\"default\"\n weight=\"medium\"\n ref={ref}\n className={clsx(styles[`EyebrowBanner__heading`], className)}\n {...rest}\n >\n {children}\n </Text>\n )\n },\n)\n\ntype EyebrowBannerSubHeadingProps = PropsWithChildren<BaseProps<HTMLSpanElement>>\n\nconst EyebrowBannerSubHeading = forwardRef<HTMLSpanElement, EyebrowBannerSubHeadingProps>(\n ({className, children, ...rest}, ref) => {\n return (\n <Text\n size=\"100\"\n variant=\"muted\"\n ref={ref}\n className={clsx(styles[`EyebrowBanner__subHeading`], className)}\n {...rest}\n >\n {children}\n </Text>\n )\n },\n)\n\nexport const EyebrowBannerIconColors = Colors\n\nexport const defaultEyebrowBannerIconColor = EyebrowBannerIconColors[0]\n\ntype EyebrowBannerVisual = BaseProps<HTMLSpanElement> & {\n icon?: React.ReactNode | IconProps\n color?: (typeof EyebrowBannerIconColors)[number]\n hasBackground?: boolean\n ['aria-hidden']?: boolean\n children?: React.ReactNode\n}\n\nconst EyebrowBannerVisual = forwardRef<HTMLSpanElement, EyebrowBannerVisual>(\n (\n {\n className,\n children,\n 'aria-hidden': ariaHidden,\n icon: Icon,\n color = defaultEyebrowBannerIconColor,\n hasBackground = false,\n ...rest\n },\n ref,\n ) => {\n return (\n <span\n ref={ref}\n className={clsx(\n styles[`EyebrowBanner__visual`],\n Icon && styles.EyebrowBanner__icon,\n Icon && styles[`EyebrowBanner__icon--color-${color}`],\n hasBackground && styles['EyebrowBanner__icon--badge'],\n className,\n )}\n data-testid={testIds.visual}\n aria-hidden={ariaHidden || typeof Icon !== 'function'}\n {...rest}\n >\n {Icon ? typeof Icon === 'function' ? <Icon /> : Icon : children}\n </span>\n )\n },\n)\n\nexport const EyebrowBannerLabelColors = [...BiColorGradients, ...Colors] as const\n\ntype EyebrowBannerLabel = BaseProps<HTMLSpanElement> & {\n /**\n * The color variations available in EyebrowBanner.Label\n */\n color?: (typeof EyebrowBannerLabelColors)[number]\n}\n\nconst EyebrowBannerLabel = forwardRef<HTMLSpanElement, PropsWithChildren<EyebrowBannerLabel>>(\n ({className, children, color, ...rest}, ref) => {\n return (\n <span\n ref={ref}\n className={clsx(\n styles[`EyebrowBanner__leadingLabel`],\n color && styles[`EyebrowBanner__leadingLabel--color-${color}`],\n className,\n )}\n data-testid={testIds.label}\n {...rest}\n >\n {children}\n </span>\n )\n },\n)\n\n/**\n * Use EyebrowBanner to display a short message at the top of a page.\n * @see https://primer.style/brand/components/EyebrowBanner\n */\nexport const EyebrowBanner = Object.assign(_EyebrowBanner, {\n Visual: EyebrowBannerVisual,\n Label: EyebrowBannerLabel,\n Heading: EyebrowBannerHeading,\n SubHeading: EyebrowBannerSubHeading,\n testIds,\n})\n"],"mappings":";;;;;;;;;;AAyBA,IAAM,IAAU;CACd,MAAM;CACN,QAAQ;CACR,OAAO;CACP,iBAAiB;CAClB,EAEK,IAAiB,GACpB,EAAC,cAAW,aAAU,eAAe,GAAQ,SAAM,iBAAc,iBAAc,YAAS,WAAQ,GAAG,KAAO,MAAQ;CACjH,IAAM,CAAC,GAAW,KAAgB,EAAM,SAAS,GAAM,EACjD,CAAC,GAAW,KAAgB,EAAM,SAAS,GAAM,EAEjD,IAAmB,GACtB,MAA2D;AAE1D,EADA,EAAa,CAAC,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,sCAAsC,MACtD,EACD;CACD,eAAa,EAAQ;CACrB,GAAI;CAEH;CACI,CAAA,CAGZ,EAMY,IAAgB,OAAO,OAAO,GAAgB;CACzD,QAAQ;CACR,OAAO;CACP,SAAS;CACT,YAAY;CACZ;CACD,CAAC"}
1
+ {"version":3,"file":"EyebrowBanner.js","names":[],"sources":["../../src/EyebrowBanner/EyebrowBanner.tsx"],"sourcesContent":["import React, {PropsWithChildren, forwardRef, useCallback} from 'react'\nimport {clsx} from 'clsx'\nimport {type Icon as IconProps} from '@primer/octicons-react'\n\nimport {Text} from '../Text'\nimport {Colors, BiColorGradients} from '../constants'\n\nimport type {BaseProps} from '../component-helpers'\nimport {ExpandableArrow} from '../ExpandableArrow'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './EyebrowBanner.module.css'\n\nexport type EyebrowBannerProps = BaseProps<HTMLAnchorElement> & {\n href: string\n ['data-testid']?: string\n} & React.HTMLAttributes<HTMLAnchorElement> &\n React.AnchorHTMLAttributes<HTMLAnchorElement>\n\nconst testIds = {\n root: 'EyebrowBanner',\n visual: 'EyebrowBanner__visual',\n label: 'EyebrowBanner__label',\n expandableArrow: 'EyebrowBanner__expandableArrow',\n}\n\nconst _EyebrowBanner = forwardRef<HTMLAnchorElement, EyebrowBannerProps>(\n ({className, children, 'data-testid': testId, href, onMouseEnter, onMouseLeave, onFocus, onBlur, ...rest}, ref) => {\n const [isHovered, setIsHovered] = React.useState(false)\n const [isFocused, setIsFocused] = React.useState(false)\n\n const handleMouseEnter = useCallback(\n (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {\n setIsHovered(!isHovered)\n onMouseEnter?.(event)\n },\n [onMouseEnter, isHovered],\n )\n\n const handleMouseLeave = useCallback(\n (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {\n setIsHovered(!isHovered)\n onMouseLeave?.(event)\n },\n [onMouseLeave, isHovered],\n )\n\n const handleOnFocus = useCallback(\n (event: React.FocusEvent<HTMLAnchorElement, Element>) => {\n setIsFocused(!isFocused)\n onFocus?.(event)\n },\n [onFocus, isFocused],\n )\n\n const handleOnBlur = useCallback(\n (event: React.FocusEvent<HTMLAnchorElement, Element>) => {\n setIsFocused(!isFocused)\n onBlur?.(event)\n },\n [onBlur, isFocused],\n )\n\n const HeadingChild = React.Children.toArray(children).filter(child => {\n if (React.isValidElement(child)) {\n return child.type === EyebrowBannerHeading\n }\n })\n\n const SubHeadingChild = React.Children.toArray(children).filter(child => {\n if (React.isValidElement(child)) {\n return child.type === EyebrowBannerSubHeading\n }\n })\n\n const VisualChild = React.Children.toArray(children).find(child => {\n if (React.isValidElement(child)) {\n return child.type === EyebrowBannerVisual\n }\n })\n\n const LabelChild = React.Children.toArray(children).find(child => {\n if (React.isValidElement(child)) {\n return child.type === EyebrowBannerLabel\n }\n })\n\n return (\n <a\n href={href}\n ref={ref}\n className={clsx(styles.EyebrowBanner, className)}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onFocus={handleOnFocus}\n onBlur={handleOnBlur}\n data-testid={testId || testIds.root}\n {...rest}\n >\n <span className={styles['EyebrowBanner__inner']}>\n {VisualChild && <span className={styles['EyebrowBanner__leadingVisual']}>{VisualChild}</span>}\n <span className=\"visually-hidden\">&nbsp;</span>\n {LabelChild && !VisualChild && <>{LabelChild}</>}\n <span className=\"visually-hidden\">&nbsp;</span>\n <span className={styles['EyebrowBanner__headings']}>\n {HeadingChild}\n <span className=\"visually-hidden\">&nbsp;</span>\n {SubHeadingChild}\n </span>\n\n <span className={styles['EyebrowBanner__trailingVisual']}>\n <ExpandableArrow\n className={styles['EyebrowBanner__trailingVisual-icon']}\n expanded={isHovered || isFocused}\n data-testid={testIds.expandableArrow}\n />\n </span>\n </span>\n </a>\n )\n },\n)\n\ntype EyebrowBannerHeadingProps = PropsWithChildren<BaseProps<HTMLSpanElement>>\n\nconst EyebrowBannerHeading = forwardRef<HTMLSpanElement, EyebrowBannerHeadingProps>(\n ({className, children, ...rest}, ref) => {\n return (\n <Text\n size=\"100\"\n variant=\"default\"\n weight=\"medium\"\n ref={ref}\n className={clsx(styles[`EyebrowBanner__heading`], className)}\n {...rest}\n >\n {children}\n </Text>\n )\n },\n)\n\ntype EyebrowBannerSubHeadingProps = PropsWithChildren<BaseProps<HTMLSpanElement>>\n\nconst EyebrowBannerSubHeading = forwardRef<HTMLSpanElement, EyebrowBannerSubHeadingProps>(\n ({className, children, ...rest}, ref) => {\n return (\n <Text\n size=\"100\"\n variant=\"muted\"\n ref={ref}\n className={clsx(styles[`EyebrowBanner__subHeading`], className)}\n {...rest}\n >\n {children}\n </Text>\n )\n },\n)\n\nexport const EyebrowBannerIconColors = Colors\n\nexport const defaultEyebrowBannerIconColor = EyebrowBannerIconColors[0]\n\ntype EyebrowBannerVisual = BaseProps<HTMLSpanElement> & {\n icon?: React.ReactNode | IconProps\n color?: (typeof EyebrowBannerIconColors)[number]\n hasBackground?: boolean\n ['aria-hidden']?: boolean\n children?: React.ReactNode\n}\n\nconst EyebrowBannerVisual = forwardRef<HTMLSpanElement, EyebrowBannerVisual>(\n (\n {\n className,\n children,\n 'aria-hidden': ariaHidden,\n icon: Icon,\n color = defaultEyebrowBannerIconColor,\n hasBackground = false,\n ...rest\n },\n ref,\n ) => {\n return (\n <span\n ref={ref}\n className={clsx(\n styles[`EyebrowBanner__visual`],\n Icon && styles.EyebrowBanner__icon,\n Icon && styles[`EyebrowBanner__icon--color-${color}`],\n hasBackground && styles['EyebrowBanner__icon--badge'],\n className,\n )}\n data-testid={testIds.visual}\n aria-hidden={ariaHidden || typeof Icon !== 'function'}\n {...rest}\n >\n {Icon ? typeof Icon === 'function' ? <Icon /> : Icon : children}\n </span>\n )\n },\n)\n\nexport const EyebrowBannerLabelColors = [...BiColorGradients, ...Colors] as const\n\ntype EyebrowBannerLabel = BaseProps<HTMLSpanElement> & {\n /**\n * The color variations available in EyebrowBanner.Label\n */\n color?: (typeof EyebrowBannerLabelColors)[number]\n}\n\nconst EyebrowBannerLabel = forwardRef<HTMLSpanElement, PropsWithChildren<EyebrowBannerLabel>>(\n ({className, children, color, ...rest}, ref) => {\n return (\n <span\n ref={ref}\n className={clsx(\n styles[`EyebrowBanner__leadingLabel`],\n color && styles[`EyebrowBanner__leadingLabel--color-${color}`],\n className,\n )}\n data-testid={testIds.label}\n {...rest}\n >\n {children}\n </span>\n )\n },\n)\n\n/**\n * Use EyebrowBanner to display a short message at the top of a page.\n * @see https://primer.style/brand/components/EyebrowBanner\n */\nexport const EyebrowBanner = Object.assign(_EyebrowBanner, {\n Visual: EyebrowBannerVisual,\n Label: EyebrowBannerLabel,\n Heading: EyebrowBannerHeading,\n SubHeading: EyebrowBannerSubHeading,\n testIds,\n})\n"],"mappings":";;;;;;;;;;AAyBA,IAAM,IAAU;CACd,MAAM;CACN,QAAQ;CACR,OAAO;CACP,iBAAiB;AACnB,GAEM,IAAiB,GACpB,EAAC,cAAW,aAAU,eAAe,GAAQ,SAAM,iBAAc,iBAAc,YAAS,WAAQ,GAAG,KAAO,MAAQ;CACjH,IAAM,CAAC,GAAW,KAAgB,EAAM,SAAS,EAAK,GAChD,CAAC,GAAW,KAAgB,EAAM,SAAS,EAAK,GAEhD,IAAmB,GACtB,MAA2D;EAE1D,AADA,EAAa,CAAC,CAAS,GACvB,IAAe,CAAK;CACtB,GACA,CAAC,GAAc,CAAS,CAC1B,GAEM,IAAmB,GACtB,MAA2D;EAE1D,AADA,EAAa,CAAC,CAAS,GACvB,IAAe,CAAK;CACtB,GACA,CAAC,GAAc,CAAS,CAC1B,GAEM,IAAgB,GACnB,MAAwD;EAEvD,AADA,EAAa,CAAC,CAAS,GACvB,IAAU,CAAK;CACjB,GACA,CAAC,GAAS,CAAS,CACrB,GAEM,IAAe,GAClB,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.css';var e = {
2
- EyebrowBanner: "Primer_Brand__EyebrowBanner-module__EyebrowBanner___l0pH9",
3
- EyebrowBanner__inner: "Primer_Brand__EyebrowBanner-module__EyebrowBanner__inner___FT9Za",
4
- EyebrowBanner__headings: "Primer_Brand__EyebrowBanner-module__EyebrowBanner__headings___uqjq6",
5
- EyebrowBanner__leadingVisual: "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingVisual___jOHo0",
6
- EyebrowBanner__trailingVisual: "Primer_Brand__EyebrowBanner-module__EyebrowBanner__trailingVisual___GOWPn",
1
+ import './EyebrowBanner.module-DYeTmaU9.css';//#region src/EyebrowBanner/EyebrowBanner.module.css
2
+ var e = "Primer_Brand__EyebrowBanner-module__EyebrowBanner___l0pH9", t = "Primer_Brand__EyebrowBanner-module__EyebrowBanner__inner___FT9Za", n = "Primer_Brand__EyebrowBanner-module__EyebrowBanner__headings___uqjq6", r = "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingVisual___jOHo0", i = "Primer_Brand__EyebrowBanner-module__EyebrowBanner__trailingVisual___GOWPn", a = "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingLabel___2iKJT", o = "Primer_Brand__EyebrowBanner-module__EyebrowBanner__heading___pV18r", s = "Primer_Brand__EyebrowBanner-module__EyebrowBanner__subHeading___j_Pgs", c = "Primer_Brand__EyebrowBanner-module__EyebrowBanner__icon___0DNEo", l = {
3
+ EyebrowBanner: e,
4
+ EyebrowBanner__inner: t,
5
+ EyebrowBanner__headings: n,
6
+ EyebrowBanner__leadingVisual: r,
7
+ EyebrowBanner__trailingVisual: i,
7
8
  "EyebrowBanner__trailingVisual-icon": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__trailingVisual-icon___RR5Q9",
8
- EyebrowBanner__leadingLabel: "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingLabel___2iKJT",
9
+ EyebrowBanner__leadingLabel: a,
9
10
  "EyebrowBanner__leadingLabel--color-blue": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingLabel--color-blue___Q75Z_",
10
11
  "EyebrowBanner__leadingLabel--color-blue-purple": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingLabel--color-blue-purple___u3vdi",
11
12
  "EyebrowBanner__leadingLabel--color-coral": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingLabel--color-coral___n4YIN",
@@ -24,10 +25,10 @@ import './EyebrowBanner.module-DYeTmaU9.css';var e = {
24
25
  "EyebrowBanner__leadingLabel--color-red-orange": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingLabel--color-red-orange___tNfqQ",
25
26
  "EyebrowBanner__leadingLabel--color-teal": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingLabel--color-teal___sHwEi",
26
27
  "EyebrowBanner__leadingLabel--color-yellow": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__leadingLabel--color-yellow___NED2T",
27
- EyebrowBanner__heading: "Primer_Brand__EyebrowBanner-module__EyebrowBanner__heading___pV18r",
28
- EyebrowBanner__subHeading: "Primer_Brand__EyebrowBanner-module__EyebrowBanner__subHeading___j_Pgs",
28
+ EyebrowBanner__heading: o,
29
+ EyebrowBanner__subHeading: s,
29
30
  "EyebrowBanner__icon--badge": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__icon--badge___8JXiE",
30
- EyebrowBanner__icon: "Primer_Brand__EyebrowBanner-module__EyebrowBanner__icon___0DNEo",
31
+ EyebrowBanner__icon: c,
31
32
  "EyebrowBanner__icon--color-default": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__icon--color-default___AHn0V",
32
33
  "EyebrowBanner__icon--color-blue": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__icon--color-blue___4OskO",
33
34
  "EyebrowBanner__icon--color-coral": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__icon--color-coral___T_46y",
@@ -44,6 +45,6 @@ import './EyebrowBanner.module-DYeTmaU9.css';var e = {
44
45
  "EyebrowBanner__icon--color-yellow": "Primer_Brand__EyebrowBanner-module__EyebrowBanner__icon--color-yellow___oVyB6"
45
46
  };
46
47
  //#endregion
47
- export { e as default };
48
+ export { e as EyebrowBanner, o as EyebrowBanner__heading, n as EyebrowBanner__headings, c as EyebrowBanner__icon, t as EyebrowBanner__inner, a as EyebrowBanner__leadingLabel, r as EyebrowBanner__leadingVisual, s as EyebrowBanner__subHeading, i as EyebrowBanner__trailingVisual, l as default };
48
49
 
49
50
  //# sourceMappingURL=EyebrowBanner.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 { Text as t } from "../Text/Text.js";
3
3
  import n from "./EyebrowText.module.js";
4
4
  import { forwardRef as r } from "react";
@@ -1 +1 @@
1
- {"version":3,"file":"EyebrowText.js","names":[],"sources":["../../src/EyebrowText/EyebrowText.tsx"],"sourcesContent":["import React, {forwardRef, type Ref} from 'react'\nimport {clsx} from 'clsx'\nimport {Text, type TextProps} from '../Text'\n\nimport type {BaseProps} from '../component-helpers'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './EyebrowText.module.css'\n\nexport const EyebrowTextVariants = ['default', 'muted', 'accent'] as const\n\nexport type EyebrowTextVariant = (typeof EyebrowTextVariants)[number]\n\nexport type EyebrowTextProps = Omit<TextProps, 'as' | 'animate' | 'variant'> &\n Omit<BaseProps<HTMLSpanElement>, 'animate'> & {\n variant?: EyebrowTextVariant\n ['data-testid']?: string\n }\n\nconst testIds = {\n root: 'EyebrowText',\n}\n\nconst _EyebrowText = forwardRef<HTMLSpanElement, EyebrowTextProps>(\n (\n {\n className,\n children,\n style,\n 'data-testid': testId,\n font = 'monospace',\n size = '100',\n variant = 'muted',\n weight = 'normal',\n ...props\n },\n ref: Ref<HTMLSpanElement>,\n ) => {\n const textVariant = variant === 'accent' ? 'default' : variant\n\n return (\n <Text\n ref={ref}\n as=\"span\"\n size={size}\n variant={textVariant}\n font={font}\n weight={weight}\n className={clsx(styles.EyebrowText, variant === 'accent' && styles['EyebrowText--variant-accent'], className)}\n style={style}\n data-testid={testId || testIds.root}\n {...props}\n >\n {children}\n </Text>\n )\n },\n)\n\n/**\n * EyebrowText is a simple text component that should be used above Headings.\n */\nexport const EyebrowText = Object.assign(_EyebrowText, {testIds})\n"],"mappings":";;;;;;AASA,IAAa,IAAsB;CAAC;CAAW;CAAS;CAAS,EAU3D,IAAU,EACd,MAAM,eACP,EAEK,IAAe,GAEjB,EACE,cACA,aACA,UACA,eAAe,GACf,UAAO,aACP,UAAO,OACP,aAAU,SACV,YAAS,UACT,GAAG,KAEL,MAKE,kBAAC,GAAD;CACO;CACL,IAAG;CACG;CACN,SAPgB,MAAY,WAAW,YAAY;CAQ7C;CACE;CACR,WAAW,EAAK,EAAO,aAAa,MAAY,YAAY,EAAO,gCAAgC,EAAU;CACtG;CACP,eAAa,KAAU,EAAQ;CAC/B,GAAI;CAEH;CACI,CAAA,CAGZ,EAKY,IAAc,OAAO,OAAO,GAAc,EAAC,YAAQ,CAAC"}
1
+ {"version":3,"file":"EyebrowText.js","names":[],"sources":["../../src/EyebrowText/EyebrowText.tsx"],"sourcesContent":["import React, {forwardRef, type Ref} from 'react'\nimport {clsx} from 'clsx'\nimport {Text, type TextProps} from '../Text'\n\nimport type {BaseProps} from '../component-helpers'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './EyebrowText.module.css'\n\nexport const EyebrowTextVariants = ['default', 'muted', 'accent'] as const\n\nexport type EyebrowTextVariant = (typeof EyebrowTextVariants)[number]\n\nexport type EyebrowTextProps = Omit<TextProps, 'as' | 'animate' | 'variant'> &\n Omit<BaseProps<HTMLSpanElement>, 'animate'> & {\n variant?: EyebrowTextVariant\n ['data-testid']?: string\n }\n\nconst testIds = {\n root: 'EyebrowText',\n}\n\nconst _EyebrowText = forwardRef<HTMLSpanElement, EyebrowTextProps>(\n (\n {\n className,\n children,\n style,\n 'data-testid': testId,\n font = 'monospace',\n size = '100',\n variant = 'muted',\n weight = 'normal',\n ...props\n },\n ref: Ref<HTMLSpanElement>,\n ) => {\n const textVariant = variant === 'accent' ? 'default' : variant\n\n return (\n <Text\n ref={ref}\n as=\"span\"\n size={size}\n variant={textVariant}\n font={font}\n weight={weight}\n className={clsx(styles.EyebrowText, variant === 'accent' && styles['EyebrowText--variant-accent'], className)}\n style={style}\n data-testid={testId || testIds.root}\n {...props}\n >\n {children}\n </Text>\n )\n },\n)\n\n/**\n * EyebrowText is a simple text component that should be used above Headings.\n */\nexport const EyebrowText = Object.assign(_EyebrowText, {testIds})\n"],"mappings":";;;;;;AASA,IAAa,IAAsB;CAAC;CAAW;CAAS;AAAQ,GAU1D,IAAU,EACd,MAAM,cACR,GAEM,IAAe,GAEjB,EACE,cACA,aACA,UACA,eAAe,GACf,UAAO,aACP,UAAO,OACP,aAAU,SACV,YAAS,UACT,GAAG,KAEL,MAKE,kBAAC,GAAD;CACO;CACL,IAAG;CACG;CACN,SAPgB,MAAY,WAAW,YAAY;CAQ7C;CACE;CACR,WAAW,EAAK,EAAO,aAAa,MAAY,YAAY,EAAO,gCAAgC,CAAS;CACrG;CACP,eAAa,KAAU,EAAQ;CAC/B,GAAI;CAEH;AACG,CAAA,CAGZ,GAKa,IAAc,OAAO,OAAO,GAAc,EAAC,WAAO,CAAC"}
@@ -1,8 +1,9 @@
1
- import './EyebrowText.module-DRReWOj8.css';var e = {
2
- EyebrowText: "Primer_Brand__EyebrowText-module__EyebrowText___IBLG_",
1
+ import './EyebrowText.module-DRReWOj8.css';//#region src/EyebrowText/EyebrowText.module.css
2
+ var e = "Primer_Brand__EyebrowText-module__EyebrowText___IBLG_", t = {
3
+ EyebrowText: e,
3
4
  "EyebrowText--variant-accent": "Primer_Brand__EyebrowText-module__EyebrowText--variant-accent___euIbO"
4
5
  };
5
6
  //#endregion
6
- export { e as default };
7
+ export { e as EyebrowText, t as default };
7
8
 
8
9
  //# sourceMappingURL=EyebrowText.module.js.map
package/esm/FAQ/FAQ.d.ts CHANGED
@@ -20,7 +20,7 @@ export type FAQSubheadingProps = BaseProps<HTMLHeadingElement> & {
20
20
  children: React.ReactNode | React.ReactNode[];
21
21
  as?: Exclude<HeadingProps['as'], 'h1'>;
22
22
  } & HeadingProps;
23
- declare function FAQSubheading({ children, className, as, size, font, weight, ...rest }: FAQSubheadingProps): import("react/jsx-runtime").JSX.Element;
23
+ declare function FAQSubheading({ children, className, as, size, font, weight, ...rest }: FAQSubheadingProps): React.JSX.Element;
24
24
  /**
25
25
  * FAQ component:
26
26
  * {@link https://primer.style/brand/components/FAQ/ See usage examples}.
@@ -40,7 +40,7 @@ export declare const FAQ: React.ForwardRefExoticComponent<Omit<FAQRootProps, "re
40
40
  toggleColor?: typeof import("..").AccordionToggleColors[number];
41
41
  weight?: HeadingProps["weight"];
42
42
  } & React.RefAttributes<HTMLHeadingElement>>;
43
- Answer: ({ children, className, ...rest }: import("..").AccordionContentProps) => import("react/jsx-runtime").JSX.Element;
43
+ Answer: ({ children, className, ...rest }: import("..").AccordionContentProps) => React.JSX.Element;
44
44
  };
45
45
  export {};
46
46
  //# sourceMappingURL=FAQ.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FAQ.d.ts","sourceRoot":"","sources":["../../src/FAQ/FAQ.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAG1D,OAAO,EAA2E,YAAY,EAAC,MAAM,IAAI,CAAA;AACzG,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAGnD;;GAEG;AACH,OAAO,0FAA0F,CAAA;AACjG,OAAO,uGAAuG,CAAA;AAC9G,OAAO,yFAAyF,CAAA;AAOhG,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;CACjC,GAAG,iBAAiB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,GAC3C,KAAK,CAAC,cAAc,CAAC,WAAW,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,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,GAC3C,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAgEnC,KAAK,eAAe,GAAG,SAAS,CAAC,kBAAkB,CAAC,GAAG;IACrD,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC7C,EAAE,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;CACxB,GAAG,YAAY,CAAA;AAmBhB,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC,kBAAkB,CAAC,GAAG;IAC/D,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC7C,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;CACvC,GAAG,YAAY,CAAA;AAEhB,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,EAAS,EACT,IAAuB,EACvB,IAAkB,EAClB,MAAiB,EACjB,GAAG,IAAI,EACR,EAAE,kBAAkB,qBAapB;AAED;;;GAGG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;CAMd,CAAA"}
package/esm/FAQ/FAQ.js CHANGED
@@ -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 { Heading as n } from "../Heading/Heading.js";
4
4
  import { AccordionContent as r, AccordionHeading as i, AccordionRoot as a } from "../Accordion/Accordion.js";
@@ -1 +1 @@
1
- {"version":3,"file":"FAQ.js","names":[],"sources":["../../src/FAQ/FAQ.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\n\nimport {useAnimation, Heading, AccordionHeading, AccordionContent, AccordionRoot, HeadingProps} from '..'\nimport type {BaseProps} from '../component-helpers'\nimport {isFragmentElement} from '../utils/isFragmentElement'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/faq.css'\n\n/**\n * Main stylesheet (as a CSS Module)\n */\nimport styles from './FAQ.module.css'\n\nexport type FAQRootProps = {\n variant?: 'default' | 'gridline'\n} & PropsWithChildren<BaseProps<HTMLElement>> &\n React.HTMLAttributes<HTMLElement>\n\nconst FAQRoot = forwardRef<HTMLElement, FAQRootProps>(\n ({children, style, animate, className, variant = 'default', ...rest}, ref) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const filteredChildren = React.Children.toArray(children).filter(child => {\n if (React.isValidElement(child) && typeof child.type !== 'string') {\n if (\n isFragmentElement(child) ||\n (child as React.ReactElement).type === FAQHeading ||\n (child as React.ReactElement).type === FAQSubheading ||\n (child as React.ReactElement).type === AccordionRoot\n ) {\n return true\n }\n }\n return false\n })\n\n const hasSubheading = React.Children.toArray(children).some(\n child => React.isValidElement(child) && typeof child.type !== 'string' && child.type === FAQSubheading,\n )\n\n return (\n <section\n ref={ref}\n className={clsx(styles.FAQ, styles[`FAQ--variant-${variant}`], animationClasses, className)}\n style={{...animationInlineStyles, ...style}}\n {...rest}\n >\n {React.Children.toArray(filteredChildren).map((child, index) => {\n if (React.isValidElement<FAQHeadingProps>(child) && child.type === FAQHeading) {\n const clonedChild = React.cloneElement(child, {\n align: hasSubheading ? 'start' : child.props.align,\n size: hasSubheading ? '3' : child.props.size,\n weight: hasSubheading ? 'medium' : child.props.weight,\n })\n\n if (variant === 'gridline') {\n return (\n <div key={child.key ?? index} className={styles[`FAQ__heading-wrapper--${variant}`]}>\n {clonedChild}\n </div>\n )\n }\n return clonedChild\n }\n\n const otherChild = child\n\n return variant === 'gridline' ? (\n <div key={index} className={styles[`FAQ__content-wrapper--${variant}`]}>\n {otherChild}\n </div>\n ) : (\n otherChild\n )\n })}\n </section>\n )\n },\n)\n\ntype FAQHeadingProps = BaseProps<HTMLHeadingElement> & {\n align?: 'start' | 'center'\n children: React.ReactNode | React.ReactNode[]\n as?: HeadingProps['as']\n} & HeadingProps\n\nconst FAQHeading = forwardRef<HTMLHeadingElement, FAQHeadingProps>(\n ({children, className, size = '3', align = 'center', as, ...rest}, ref) => {\n const headingLevel = size === '3' ? 'h3' : 'h2'\n return (\n <Heading\n as={as || headingLevel}\n size={size}\n className={clsx(styles.FAQ__heading, styles[`FAQ__heading--${align}`], className)}\n ref={ref}\n {...rest}\n >\n {children}\n </Heading>\n )\n },\n)\n\nexport type FAQSubheadingProps = BaseProps<HTMLHeadingElement> & {\n align?: 'start' | 'center'\n children: React.ReactNode | React.ReactNode[]\n as?: Exclude<HeadingProps['as'], 'h1'>\n} & HeadingProps\n\nfunction FAQSubheading({\n children,\n className,\n as = 'h3',\n size = 'subhead-medium',\n font = 'monospace',\n weight = 'medium',\n ...rest\n}: FAQSubheadingProps) {\n return (\n <Heading\n as={as}\n className={clsx(styles.FAQ__subheading, className)}\n weight={weight}\n size={size}\n font={font}\n {...rest}\n >\n {children}\n </Heading>\n )\n}\n\n/**\n * FAQ component:\n * {@link https://primer.style/brand/components/FAQ/ See usage examples}.\n */\nexport const FAQ = Object.assign(FAQRoot, {\n Subheading: FAQSubheading,\n Heading: FAQHeading,\n Item: AccordionRoot,\n Question: AccordionHeading,\n Answer: AccordionContent,\n})\n"],"mappings":";;;;;;;;;;;;AAwBA,IAAM,IAAU,GACb,EAAC,aAAU,UAAO,YAAS,cAAW,aAAU,WAAW,GAAG,KAAO,MAAQ;CAC5E,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,EAAQ,EAElF,IA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,EACrB,aACA,cACA,QAAK,MACL,UAAO,kBACP,UAAO,aACP,YAAS,UACT,GAAG,KACkB;AACrB,QACE,kBAAC,GAAD;EACM;EACJ,WAAW,EAAK,EAAO,iBAAiB,EAAU;EAC1C;EACF;EACA;EACN,GAAI;EAEH;EACO,CAAA;;AAQd,IAAa,IAAM,OAAO,OAAO,GAAS;CACxC,YAAY;CACZ,SAAS;CACT,MAAM;CACN,UAAU;CACV,QAAQ;CACT,CAAC"}
1
+ {"version":3,"file":"FAQ.js","names":[],"sources":["../../src/FAQ/FAQ.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\n\nimport {useAnimation, Heading, AccordionHeading, AccordionContent, AccordionRoot, HeadingProps} from '..'\nimport type {BaseProps} from '../component-helpers'\nimport {isFragmentElement} from '../utils/isFragmentElement'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/faq.css'\n\n/**\n * Main stylesheet (as a CSS Module)\n */\nimport styles from './FAQ.module.css'\n\nexport type FAQRootProps = {\n variant?: 'default' | 'gridline'\n} & PropsWithChildren<BaseProps<HTMLElement>> &\n React.HTMLAttributes<HTMLElement>\n\nconst FAQRoot = forwardRef<HTMLElement, FAQRootProps>(\n ({children, style, animate, className, variant = 'default', ...rest}, ref) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const filteredChildren = React.Children.toArray(children).filter(child => {\n if (React.isValidElement(child) && typeof child.type !== 'string') {\n if (\n isFragmentElement(child) ||\n (child as React.ReactElement).type === FAQHeading ||\n (child as React.ReactElement).type === FAQSubheading ||\n (child as React.ReactElement).type === AccordionRoot\n ) {\n return true\n }\n }\n return false\n })\n\n const hasSubheading = React.Children.toArray(children).some(\n child => React.isValidElement(child) && typeof child.type !== 'string' && child.type === FAQSubheading,\n )\n\n return (\n <section\n ref={ref}\n className={clsx(styles.FAQ, styles[`FAQ--variant-${variant}`], animationClasses, className)}\n style={{...animationInlineStyles, ...style}}\n {...rest}\n >\n {React.Children.toArray(filteredChildren).map((child, index) => {\n if (React.isValidElement<FAQHeadingProps>(child) && child.type === FAQHeading) {\n const clonedChild = React.cloneElement(child, {\n align: hasSubheading ? 'start' : child.props.align,\n size: hasSubheading ? '3' : child.props.size,\n weight: hasSubheading ? 'medium' : child.props.weight,\n })\n\n if (variant === 'gridline') {\n return (\n <div key={child.key ?? index} className={styles[`FAQ__heading-wrapper--${variant}`]}>\n {clonedChild}\n </div>\n )\n }\n return clonedChild\n }\n\n const otherChild = child\n\n return variant === 'gridline' ? (\n <div key={index} className={styles[`FAQ__content-wrapper--${variant}`]}>\n {otherChild}\n </div>\n ) : (\n otherChild\n )\n })}\n </section>\n )\n },\n)\n\ntype FAQHeadingProps = BaseProps<HTMLHeadingElement> & {\n align?: 'start' | 'center'\n children: React.ReactNode | React.ReactNode[]\n as?: HeadingProps['as']\n} & HeadingProps\n\nconst FAQHeading = forwardRef<HTMLHeadingElement, FAQHeadingProps>(\n ({children, className, size = '3', align = 'center', as, ...rest}, ref) => {\n const headingLevel = size === '3' ? 'h3' : 'h2'\n return (\n <Heading\n as={as || headingLevel}\n size={size}\n className={clsx(styles.FAQ__heading, styles[`FAQ__heading--${align}`], className)}\n ref={ref}\n {...rest}\n >\n {children}\n </Heading>\n )\n },\n)\n\nexport type FAQSubheadingProps = BaseProps<HTMLHeadingElement> & {\n align?: 'start' | 'center'\n children: React.ReactNode | React.ReactNode[]\n as?: Exclude<HeadingProps['as'], 'h1'>\n} & HeadingProps\n\nfunction FAQSubheading({\n children,\n className,\n as = 'h3',\n size = 'subhead-medium',\n font = 'monospace',\n weight = 'medium',\n ...rest\n}: FAQSubheadingProps) {\n return (\n <Heading\n as={as}\n className={clsx(styles.FAQ__subheading, className)}\n weight={weight}\n size={size}\n font={font}\n {...rest}\n >\n {children}\n </Heading>\n )\n}\n\n/**\n * FAQ component:\n * {@link https://primer.style/brand/components/FAQ/ See usage examples}.\n */\nexport const FAQ = Object.assign(FAQRoot, {\n Subheading: FAQSubheading,\n Heading: FAQHeading,\n Item: AccordionRoot,\n Question: AccordionHeading,\n Answer: AccordionContent,\n})\n"],"mappings":";;;;;;;;;;;;AAwBA,IAAM,IAAU,GACb,EAAC,aAAU,UAAO,YAAS,cAAW,aAAU,WAAW,GAAG,KAAO,MAAQ;CAC5E,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,CAAO,GAEjF,IAAmB,EAAM,SAAS,QAAQ,CAAQ,CAAC,CAAC,QAAO,MAC/D,GAAI,EAAM,eAAe,CAAK,KAAK,OAAO,EAAM,QAAS,aAErD,EAAkB,CAAK,KACtB,EAA6B,SAAS,KACtC,EAA6B,SAAS,KACtC,EAA6B,SAAS,GAM5C,GAEK,IAAgB,EAAM,SAAS,QAAQ,CAAQ,CAAC,CAAC,MACrD,MAAS,EAAM,eAAe,CAAK,KAAK,OAAO,EAAM,QAAS,YAAY,EAAM,SAAS,CAC3F;CAEA,OACE,kBAAC,WAAD;EACO;EACL,WAAW,EAAK,EAAO,KAAK,EAAO,gBAAgB,MAAY,GAAkB,CAAS;EAC1F,OAAO;GAAC,GAAG;GAAuB,GAAG;EAAK;EAC1C,GAAI;YAEH,EAAM,SAAS,QAAQ,CAAgB,CAAC,CAAC,KAAK,GAAO,MAAU;GAC9D,IAAI,EAAM,eAAgC,CAAK,KAAK,EAAM,SAAS,GAAY;IAC7E,IAAM,IAAc,EAAM,aAAa,GAAO;KAC5C,OAAO,IAAgB,UAAU,EAAM,MAAM;KAC7C,MAAM,IAAgB,MAAM,EAAM,MAAM;KACxC,QAAQ,IAAgB,WAAW,EAAM,MAAM;IACjD,CAAC;IASD,OAPI,MAAY,aAEZ,kBAAC,OAAD;KAA8B,WAAW,EAAO,yBAAyB;eACtE;IACE,GAFK,EAAM,OAAO,CAElB,IAGF;GACT;GAEA,IAAM,IAAa;GAEnB,OAAO,MAAY,aACjB,kBAAC,OAAD;IAAiB,WAAW,EAAO,yBAAyB;cACzD;GACE,GAFK,CAEL,IAEL;EAEJ,CAAC;CACM,CAAA;AAEb,CACF,GAQM,IAAa,GAChB,EAAC,aAAU,cAAW,UAAO,KAAK,WAAQ,UAAU,OAAI,GAAG,KAAO,MAG/D,kBAAC,GAAD;CACE,IAAI,MAHa,MAAS,MAAM,OAAO;CAIjC;CACN,WAAW,EAAK,EAAO,cAAc,EAAO,iBAAiB,MAAU,CAAS;CAC3E;CACL,GAAI;CAEH;AACM,CAAA,CAGf;AAQA,SAAS,EAAc,EACrB,aACA,cACA,QAAK,MACL,UAAO,kBACP,UAAO,aACP,YAAS,UACT,GAAG,KACkB;CACrB,OACE,kBAAC,GAAD;EACM;EACJ,WAAW,EAAK,EAAO,iBAAiB,CAAS;EACzC;EACF;EACA;EACN,GAAI;EAEH;CACM,CAAA;AAEb;AAMA,IAAa,IAAM,OAAO,OAAO,GAAS;CACxC,YAAY;CACZ,SAAS;CACT,MAAM;CACN,UAAU;CACV,QAAQ;AACV,CAAC"}
@@ -1,16 +1,17 @@
1
- import './FAQ.module-BFCs33mw.css';var e = {
2
- FAQ: "Primer_Brand__FAQ-module__FAQ___fhKat",
1
+ import './FAQ.module-BFCs33mw.css';//#region src/FAQ/FAQ.module.css
2
+ var e = "Primer_Brand__FAQ-module__FAQ___fhKat", t = "Primer_Brand__FAQ-module__FAQ__heading___8eTS4", n = "Primer_Brand__FAQ-module__FAQ__subheading___AVw7m", r = "Primer_Brand__FAQ-module__details__summary___1sVQ4", i = {
3
+ FAQ: e,
3
4
  "FAQ--variant-gridline": "Primer_Brand__FAQ-module__FAQ--variant-gridline___oIn0f",
4
5
  "FAQ__content-wrapper--gridline": "Primer_Brand__FAQ-module__FAQ__content-wrapper--gridline___AWSUU",
5
6
  "FAQ__heading-wrapper--gridline": "Primer_Brand__FAQ-module__FAQ__heading-wrapper--gridline___c4m3j",
6
- FAQ__heading: "Primer_Brand__FAQ-module__FAQ__heading___8eTS4",
7
- FAQ__subheading: "Primer_Brand__FAQ-module__FAQ__subheading___AVw7m",
7
+ FAQ__heading: t,
8
+ FAQ__subheading: n,
8
9
  "FAQ__heading--start": "Primer_Brand__FAQ-module__FAQ__heading--start___frhvf",
9
10
  "FAQ__heading--center": "Primer_Brand__FAQ-module__FAQ__heading--center___dED8A",
10
11
  "FAQ__heading--large": "Primer_Brand__FAQ-module__FAQ__heading--large___v8f53",
11
- details__summary: "Primer_Brand__FAQ-module__details__summary___1sVQ4"
12
+ details__summary: r
12
13
  };
13
14
  //#endregion
14
- export { e as default };
15
+ export { e as FAQ, t as FAQ__heading, n as FAQ__subheading, i as default, r as details__summary };
15
16
 
16
17
  //# sourceMappingURL=FAQ.module.js.map
@@ -6,14 +6,14 @@ import { FAQSubheadingProps } from './';
6
6
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/base.css';
7
7
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css';
8
8
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/faq.css';
9
- declare function HeadingBase({ children, className, as, ...rest }: FAQSubheadingProps): import("react/jsx-runtime").JSX.Element;
9
+ declare function HeadingBase({ children, className, as, ...rest }: FAQSubheadingProps): React.JSX.Element;
10
10
  export type FAQGroupProps = React.PropsWithChildren<{
11
11
  id?: string;
12
12
  variant?: 'default' | 'gridline';
13
13
  defaultSelectedIndex?: number;
14
14
  tabAttributes?: (children: React.ReactNode, index: number) => Record<string, unknown>;
15
15
  }>;
16
- declare function FAQGroupBase({ children, id, variant, defaultSelectedIndex, tabAttributes, ...rest }: FAQGroupProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function FAQGroupBase({ children, id, variant, defaultSelectedIndex, tabAttributes, ...rest }: FAQGroupProps): React.JSX.Element;
17
17
  /**
18
18
  * FAQGroup component:
19
19
  * {@link https://primer.style/brand/components/FAQ#grouped-faqs See usage examples}.
@@ -1 +1 @@
1
- {"version":3,"file":"FAQGroup.d.ts","sourceRoot":"","sources":["../../src/FAQ/FAQGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAC,kBAAkB,EAAoB,MAAM,IAAI,CAAA;AAGxD;;GAEG;AACH,OAAO,0FAA0F,CAAA;AACjG,OAAO,uGAAuG,CAAA;AAC9G,OAAO,yFAAyF,CAAA;AAOhG,iBAAS,WAAW,CAAC,EAAC,QAAQ,EAAE,SAAS,EAAE,EAAS,EAAE,GAAG,IAAI,EAAC,EAAE,kBAAkB,2CAMjF;AAED,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAClD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACtF,CAAC,CAAA;AAEF,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,EAAE,EACF,OAAmB,EACnB,oBAAwB,EACxB,aAAa,EACb,GAAG,IAAI,EACR,EAAE,aAAa,2CA8Mf;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ;;CAEnB,CAAA"}
1
+ {"version":3,"file":"FAQGroup.d.ts","sourceRoot":"","sources":["../../src/FAQ/FAQGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAC,kBAAkB,EAAoB,MAAM,IAAI,CAAA;AAGxD;;GAEG;AACH,OAAO,0FAA0F,CAAA;AACjG,OAAO,uGAAuG,CAAA;AAC9G,OAAO,yFAAyF,CAAA;AAOhG,iBAAS,WAAW,CAAC,EAAC,QAAQ,EAAE,SAAS,EAAE,EAAS,EAAE,GAAG,IAAI,EAAC,EAAE,kBAAkB,qBAMjF;AAED,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAClD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACtF,CAAC,CAAA;AAEF,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,EAAE,EACF,OAAmB,EACnB,oBAAwB,EACxB,aAAa,EACb,GAAG,IAAI,EACR,EAAE,aAAa,qBA8Mf;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ;;CAEnB,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 { useId as t } from "../hooks/useId.js";
3
3
  import { Grid as n } from "../Grid/Grid.js";
4
4
  import { Stack as r } from "../Stack/Stack.js";
@@ -26,11 +26,15 @@ function p({ children: a, id: p, variant: m = "default", defaultSelectedIndex: g
26
26
  b(e), x || S(!0);
27
27
  }, E = (e) => (t) => {
28
28
  if (t.key === "ArrowUp") {
29
- t.preventDefault(), b((e - 1 + D.length) % D.length), x || S(!0);
29
+ t.preventDefault();
30
+ let n = (e - 1 + D.length) % D.length;
31
+ b(n), x || S(!0);
30
32
  return;
31
33
  }
32
34
  if (t.key === "ArrowDown") {
33
- t.preventDefault(), b((e + 1) % D.length), x || S(!0);
35
+ t.preventDefault();
36
+ let n = (e + 1) % D.length;
37
+ b(n), x || S(!0);
34
38
  return;
35
39
  }
36
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FAQGroup.js","names":[],"sources":["../../src/FAQ/FAQGroup.tsx"],"sourcesContent":["import React from 'react'\nimport {useId} from '../hooks/useId'\nimport {clsx} from 'clsx'\n\nimport {FAQSubheadingProps, FAQRootProps, FAQ} from './'\nimport {Accordion, Grid, Heading, Stack, Box} from '../'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/faq.css'\n\n/**\n * Main stylesheet (as a CSS Module)\n */\nimport styles from './FAQGroup.module.css'\n\nfunction HeadingBase({children, className, as = 'h3', ...rest}: FAQSubheadingProps) {\n return (\n <Heading as={as} className={clsx(styles['FAQGroup__heading'], className)} {...rest}>\n {children}\n </Heading>\n )\n}\n\nexport type FAQGroupProps = React.PropsWithChildren<{\n id?: string\n variant?: 'default' | 'gridline'\n defaultSelectedIndex?: number\n tabAttributes?: (children: React.ReactNode, index: number) => Record<string, unknown>\n}>\n\nfunction FAQGroupBase({\n children,\n id,\n variant = 'default',\n defaultSelectedIndex = 0,\n tabAttributes,\n ...rest\n}: FAQGroupProps) {\n const [selectedIndex, setSelectedIndex] = React.useState(defaultSelectedIndex)\n const [hasInteracted, setHasInteracted] = React.useState(false)\n const instanceId = useId(id)\n const selectedTabRef = React.useRef<HTMLButtonElement>(null)\n\n const handleTabClick = (index: number) => (_event: React.MouseEvent<HTMLButtonElement>) => {\n setSelectedIndex(index)\n if (!hasInteracted) setHasInteracted(true)\n }\n\n const handleKeyDown = (index: number) => (_event: React.KeyboardEvent<HTMLButtonElement>) => {\n if (_event.key === 'ArrowUp') {\n _event.preventDefault()\n const prevIndex = (index - 1 + faqChildren.length) % faqChildren.length\n setSelectedIndex(prevIndex)\n if (!hasInteracted) setHasInteracted(true)\n return\n }\n\n if (_event.key === 'ArrowDown') {\n _event.preventDefault()\n const nextIndex = (index + 1) % faqChildren.length\n setSelectedIndex(nextIndex)\n if (!hasInteracted) setHasInteracted(true)\n return\n }\n }\n\n React.useEffect(() => {\n if (hasInteracted) selectedTabRef.current?.focus()\n }, [hasInteracted, selectedIndex])\n\n const faqChildren = React.Children.toArray(children).filter(\n (child): child is React.ReactElement<FAQRootProps> =>\n React.isValidElement<FAQRootProps>(child) && child.type === FAQ,\n )\n\n const Tabs = React.Children.map(faqChildren, (faqChild, index) => {\n if (faqChild.props.children) {\n const GroupHeadingChild = React.Children.toArray(faqChild.props.children).find(\n (child): child is React.ReactElement<React.ComponentProps<typeof FAQ.Heading>> =>\n React.isValidElement(child) && child.type === FAQ.Heading,\n )\n\n const tabContents = GroupHeadingChild?.props.children\n\n const providedTabAttributes =\n GroupHeadingChild && tabAttributes ? tabAttributes(tabContents ?? null, index) : undefined\n const tabAttributeProps = providedTabAttributes ?? {}\n const {ref: providedTabRef, ...tabAttributeRest} = tabAttributeProps as {\n ref?: React.Ref<HTMLButtonElement>\n }\n\n const handleTabRef = (node: HTMLButtonElement | null) => {\n if (selectedIndex === index) {\n selectedTabRef.current = node\n } else if (selectedTabRef.current === node) {\n selectedTabRef.current = null\n }\n\n assignRef(providedTabRef, node)\n }\n\n return (\n <button\n type=\"button\"\n role=\"tab\"\n className={styles['FAQGroup__tablist-button']}\n id={`${instanceId}-tab-${index}`}\n aria-controls={`${instanceId}-panel-${index}`}\n aria-selected={selectedIndex === index}\n onClick={handleTabClick(index)}\n onKeyDown={handleKeyDown(index)}\n key={index}\n data-testid={`FAQGroup-tab-${index + 1}`}\n tabIndex={selectedIndex !== index ? -1 : undefined}\n ref={handleTabRef}\n {...tabAttributeRest}\n >\n {tabContents}\n </button>\n )\n }\n return null\n })\n\n const TabPanels = React.Children.map(faqChildren, (faqChild, index) => {\n if (faqChild.props.children) {\n const FAQItemChild = React.Children.map(faqChild.props.children, child =>\n React.isValidElement(child) && child.type !== FAQ.Heading ? child : null,\n )\n\n const FAQItemHeadingText = React.Children.map(faqChild.props.children, child =>\n React.isValidElement<{children?: React.ReactNode}>(child) && child.type === FAQ.Heading\n ? child.props.children\n : null,\n )\n\n return (\n <div\n role=\"tabpanel\"\n id={`${instanceId}-panel-${index}`}\n aria-labelledby={`${instanceId}-tab-${index}`}\n hidden={selectedIndex !== index}\n key={index}\n data-testid={`FAQGroup-tab-panel-${index + 1}`}\n >\n {FAQItemHeadingText && (\n <FAQ.Subheading\n data-testid={`FAQGroup-tab-panel-heading-${index + 1}`}\n className={clsx(styles['FAQGroup__panel-subHeading'])}\n >\n {FAQItemHeadingText}\n </FAQ.Subheading>\n )}\n {FAQItemChild}\n </div>\n )\n }\n })\n\n const SectionedAccordions = React.Children.map(faqChildren, (faqChild, index) => {\n if (faqChild.props.children) {\n const GroupHeadingChild = React.Children.toArray(faqChild.props.children).find(\n (child): child is React.ReactElement<React.ComponentProps<typeof FAQ.Heading>> =>\n React.isValidElement(child) && child.type === FAQ.Heading,\n )\n const FAQItemChild = React.Children.map(faqChild.props.children, child =>\n React.isValidElement<{className?: string}>(child) && child.type !== FAQ.Heading\n ? React.cloneElement(child, {\n className: clsx(styles['FAQGroup__nested-accordion-item'], child.props.className),\n })\n : null,\n )\n\n if (!GroupHeadingChild || !FAQItemChild) return null\n\n return (\n <Accordion\n key={index}\n variant=\"emphasis\"\n className={clsx(variant === 'gridline' && styles['FAQGroup__accordion--gridline'])}\n >\n <Accordion.Heading {...GroupHeadingChild.props} />\n <Accordion.Content>{FAQItemChild}</Accordion.Content>\n </Accordion>\n )\n }\n })\n\n const GroupHeading = React.Children.toArray(children).find(\n (child): child is React.ReactElement<FAQSubheadingProps> =>\n React.isValidElement(child) && child.type === HeadingBase,\n )\n\n const Tag = variant === 'gridline' ? Box : React.Fragment\n const tagProps = variant === 'gridline' ? {className: clsx(styles['FAQGroup__gridline-wrapper'])} : {}\n\n return (\n <Tag {...tagProps}>\n <div className={clsx(styles[`FAQGroup__heading-wrapper`], styles[`FAQGroup__heading-wrapper--${variant}`])}>\n <Grid enableGutters={false} {...rest}>\n <Grid.Column>\n {GroupHeading && (\n <Grid>\n <Grid.Column>{GroupHeading}</Grid.Column>\n </Grid>\n )}\n </Grid.Column>\n </Grid>\n </div>\n <Grid enableGutters={false} {...rest}>\n <Grid.Column span={12}>\n <div className={clsx(styles.FAQGroup__accordion)}>{SectionedAccordions}</div>\n <Grid className={clsx(styles.FAQGroup)}>\n <Grid.Column\n span={{medium: 5, large: 4}}\n className={clsx(\n styles.FAQGroup__tablist,\n variant === 'gridline' && styles['FAQGroup__tablist--gridline'],\n )}\n >\n <Stack\n direction=\"vertical\"\n aria-orientation=\"vertical\"\n padding=\"none\"\n role=\"tablist\"\n gap=\"none\"\n alignItems=\"flex-start\"\n >\n {Tabs}\n </Stack>\n </Grid.Column>\n <Grid.Column\n start={6}\n span={7}\n className={clsx(variant === 'gridline' && styles['FAQGroup__content--gridline'])}\n >\n {TabPanels}\n </Grid.Column>\n </Grid>\n </Grid.Column>\n </Grid>\n </Tag>\n )\n}\n\n/**\n * FAQGroup component:\n * {@link https://primer.style/brand/components/FAQ#grouped-faqs See usage examples}.\n */\nexport const FAQGroup = Object.assign(FAQGroupBase, {\n Heading: HeadingBase,\n})\n\nfunction assignRef<T>(ref: React.Ref<T> | undefined, value: T | null) {\n if (!ref) return\n if (typeof ref === 'function') {\n ref(value)\n return\n }\n\n ;(ref as React.MutableRefObject<T | null>).current = value\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,SAAS,EAAY,EAAC,aAAU,cAAW,QAAK,MAAM,GAAG,KAA2B;AAClF,QACE,kBAAC,GAAD;EAAa;EAAI,WAAW,EAAK,EAAO,mBAAsB,EAAU;EAAE,GAAI;EAC3E;EACO,CAAA;;AAWd,SAAS,EAAa,EACpB,aACA,OACA,aAAU,WACV,0BAAuB,GACvB,kBACA,GAAG,KACa;CAChB,IAAM,CAAC,GAAe,KAAoB,EAAM,SAAS,EAAqB,EACxE,CAAC,GAAe,KAAoB,EAAM,SAAS,GAAM,EAC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cAAc,EAAO,+BAA+B;gBAE/E;MACW,CAAA,CACT;OACK;;GACT,CAAA,CACH;;;AAQV,IAAa,IAAW,OAAO,OAAO,GAAc,EAClD,SAAS,GACV,CAAC;AAEF,SAAS,EAAa,GAA+B,GAAiB;AAC/D,QACL;MAAI,OAAO,KAAQ,YAAY;AAC7B,KAAI,EAAM;AACV;;AAGA,IAAyC,UAAU"}
1
+ {"version":3,"file":"FAQGroup.js","names":[],"sources":["../../src/FAQ/FAQGroup.tsx"],"sourcesContent":["import React from 'react'\nimport {useId} from '../hooks/useId'\nimport {clsx} from 'clsx'\n\nimport {FAQSubheadingProps, FAQRootProps, FAQ} from './'\nimport {Accordion, Grid, Heading, Stack, Box} from '../'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/faq.css'\n\n/**\n * Main stylesheet (as a CSS Module)\n */\nimport styles from './FAQGroup.module.css'\n\nfunction HeadingBase({children, className, as = 'h3', ...rest}: FAQSubheadingProps) {\n return (\n <Heading as={as} className={clsx(styles['FAQGroup__heading'], className)} {...rest}>\n {children}\n </Heading>\n )\n}\n\nexport type FAQGroupProps = React.PropsWithChildren<{\n id?: string\n variant?: 'default' | 'gridline'\n defaultSelectedIndex?: number\n tabAttributes?: (children: React.ReactNode, index: number) => Record<string, unknown>\n}>\n\nfunction FAQGroupBase({\n children,\n id,\n variant = 'default',\n defaultSelectedIndex = 0,\n tabAttributes,\n ...rest\n}: FAQGroupProps) {\n const [selectedIndex, setSelectedIndex] = React.useState(defaultSelectedIndex)\n const [hasInteracted, setHasInteracted] = React.useState(false)\n const instanceId = useId(id)\n const selectedTabRef = React.useRef<HTMLButtonElement>(null)\n\n const handleTabClick = (index: number) => (_event: React.MouseEvent<HTMLButtonElement>) => {\n setSelectedIndex(index)\n if (!hasInteracted) setHasInteracted(true)\n }\n\n const handleKeyDown = (index: number) => (_event: React.KeyboardEvent<HTMLButtonElement>) => {\n if (_event.key === 'ArrowUp') {\n _event.preventDefault()\n const prevIndex = (index - 1 + faqChildren.length) % faqChildren.length\n setSelectedIndex(prevIndex)\n if (!hasInteracted) setHasInteracted(true)\n return\n }\n\n if (_event.key === 'ArrowDown') {\n _event.preventDefault()\n const nextIndex = (index + 1) % faqChildren.length\n setSelectedIndex(nextIndex)\n if (!hasInteracted) setHasInteracted(true)\n return\n }\n }\n\n React.useEffect(() => {\n if (hasInteracted) selectedTabRef.current?.focus()\n }, [hasInteracted, selectedIndex])\n\n const faqChildren = React.Children.toArray(children).filter(\n (child): child is React.ReactElement<FAQRootProps> =>\n React.isValidElement<FAQRootProps>(child) && child.type === FAQ,\n )\n\n const Tabs = React.Children.map(faqChildren, (faqChild, index) => {\n if (faqChild.props.children) {\n const GroupHeadingChild = React.Children.toArray(faqChild.props.children).find(\n (child): child is React.ReactElement<React.ComponentProps<typeof FAQ.Heading>> =>\n React.isValidElement(child) && child.type === FAQ.Heading,\n )\n\n const tabContents = GroupHeadingChild?.props.children\n\n const providedTabAttributes =\n GroupHeadingChild && tabAttributes ? tabAttributes(tabContents ?? null, index) : undefined\n const tabAttributeProps = providedTabAttributes ?? {}\n const {ref: providedTabRef, ...tabAttributeRest} = tabAttributeProps as {\n ref?: React.Ref<HTMLButtonElement>\n }\n\n const handleTabRef = (node: HTMLButtonElement | null) => {\n if (selectedIndex === index) {\n selectedTabRef.current = node\n } else if (selectedTabRef.current === node) {\n selectedTabRef.current = null\n }\n\n assignRef(providedTabRef, node)\n }\n\n return (\n <button\n type=\"button\"\n role=\"tab\"\n className={styles['FAQGroup__tablist-button']}\n id={`${instanceId}-tab-${index}`}\n aria-controls={`${instanceId}-panel-${index}`}\n aria-selected={selectedIndex === index}\n onClick={handleTabClick(index)}\n onKeyDown={handleKeyDown(index)}\n key={index}\n data-testid={`FAQGroup-tab-${index + 1}`}\n tabIndex={selectedIndex !== index ? -1 : undefined}\n ref={handleTabRef}\n {...tabAttributeRest}\n >\n {tabContents}\n </button>\n )\n }\n return null\n })\n\n const TabPanels = React.Children.map(faqChildren, (faqChild, index) => {\n if (faqChild.props.children) {\n const FAQItemChild = React.Children.map(faqChild.props.children, child =>\n React.isValidElement(child) && child.type !== FAQ.Heading ? child : null,\n )\n\n const FAQItemHeadingText = React.Children.map(faqChild.props.children, child =>\n React.isValidElement<{children?: React.ReactNode}>(child) && child.type === FAQ.Heading\n ? child.props.children\n : null,\n )\n\n return (\n <div\n role=\"tabpanel\"\n id={`${instanceId}-panel-${index}`}\n aria-labelledby={`${instanceId}-tab-${index}`}\n hidden={selectedIndex !== index}\n key={index}\n data-testid={`FAQGroup-tab-panel-${index + 1}`}\n >\n {FAQItemHeadingText && (\n <FAQ.Subheading\n data-testid={`FAQGroup-tab-panel-heading-${index + 1}`}\n className={clsx(styles['FAQGroup__panel-subHeading'])}\n >\n {FAQItemHeadingText}\n </FAQ.Subheading>\n )}\n {FAQItemChild}\n </div>\n )\n }\n })\n\n const SectionedAccordions = React.Children.map(faqChildren, (faqChild, index) => {\n if (faqChild.props.children) {\n const GroupHeadingChild = React.Children.toArray(faqChild.props.children).find(\n (child): child is React.ReactElement<React.ComponentProps<typeof FAQ.Heading>> =>\n React.isValidElement(child) && child.type === FAQ.Heading,\n )\n const FAQItemChild = React.Children.map(faqChild.props.children, child =>\n React.isValidElement<{className?: string}>(child) && child.type !== FAQ.Heading\n ? React.cloneElement(child, {\n className: clsx(styles['FAQGroup__nested-accordion-item'], child.props.className),\n })\n : null,\n )\n\n if (!GroupHeadingChild || !FAQItemChild) return null\n\n return (\n <Accordion\n key={index}\n variant=\"emphasis\"\n className={clsx(variant === 'gridline' && styles['FAQGroup__accordion--gridline'])}\n >\n <Accordion.Heading {...GroupHeadingChild.props} />\n <Accordion.Content>{FAQItemChild}</Accordion.Content>\n </Accordion>\n )\n }\n })\n\n const GroupHeading = React.Children.toArray(children).find(\n (child): child is React.ReactElement<FAQSubheadingProps> =>\n React.isValidElement(child) && child.type === HeadingBase,\n )\n\n const Tag = variant === 'gridline' ? Box : React.Fragment\n const tagProps = variant === 'gridline' ? {className: clsx(styles['FAQGroup__gridline-wrapper'])} : {}\n\n return (\n <Tag {...tagProps}>\n <div className={clsx(styles[`FAQGroup__heading-wrapper`], styles[`FAQGroup__heading-wrapper--${variant}`])}>\n <Grid enableGutters={false} {...rest}>\n <Grid.Column>\n {GroupHeading && (\n <Grid>\n <Grid.Column>{GroupHeading}</Grid.Column>\n </Grid>\n )}\n </Grid.Column>\n </Grid>\n </div>\n <Grid enableGutters={false} {...rest}>\n <Grid.Column span={12}>\n <div className={clsx(styles.FAQGroup__accordion)}>{SectionedAccordions}</div>\n <Grid className={clsx(styles.FAQGroup)}>\n <Grid.Column\n span={{medium: 5, large: 4}}\n className={clsx(\n styles.FAQGroup__tablist,\n variant === 'gridline' && styles['FAQGroup__tablist--gridline'],\n )}\n >\n <Stack\n direction=\"vertical\"\n aria-orientation=\"vertical\"\n padding=\"none\"\n role=\"tablist\"\n gap=\"none\"\n alignItems=\"flex-start\"\n >\n {Tabs}\n </Stack>\n </Grid.Column>\n <Grid.Column\n start={6}\n span={7}\n className={clsx(variant === 'gridline' && styles['FAQGroup__content--gridline'])}\n >\n {TabPanels}\n </Grid.Column>\n </Grid>\n </Grid.Column>\n </Grid>\n </Tag>\n )\n}\n\n/**\n * FAQGroup component:\n * {@link https://primer.style/brand/components/FAQ#grouped-faqs See usage examples}.\n */\nexport const FAQGroup = Object.assign(FAQGroupBase, {\n Heading: HeadingBase,\n})\n\nfunction assignRef<T>(ref: React.Ref<T> | undefined, value: T | null) {\n if (!ref) return\n if (typeof ref === 'function') {\n ref(value)\n return\n }\n\n ;(ref as React.MutableRefObject<T | null>).current = value\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,SAAS,EAAY,EAAC,aAAU,cAAW,QAAK,MAAM,GAAG,KAA2B;CAClF,OACE,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IAAyB,CAAA,GAC5E,kBAAC,GAAD;KAAM,WAAW,EAAK,EAAO,QAAQ;eAArC,CACE,kBAAC,EAAK,QAAN;MACE,MAAM;OAAC,QAAQ;OAAG,OAAO;MAAC;MAC1B,WAAW,EACT,EAAO,mBACP,MAAY,cAAc,EAAO,8BACnC;gBAEA,kBAAC,GAAD;OACE,WAAU;OACV,oBAAiB;OACjB,SAAQ;OACR,MAAK;OACL,KAAI;OACJ,YAAW;iBAEV;MACI,CAAA;KACI,CAAA,GACb,kBAAC,EAAK,QAAN;MACE,OAAO;MACP,MAAM;MACN,WAAW,EAAK,MAAY,cAAc,EAAO,8BAA8B;gBAE9E;KACU,CAAA,CACT;MACK;;EACT,CAAA,CACH;;AAET;AAMA,IAAa,IAAW,OAAO,OAAO,GAAc,EAClD,SAAS,EACX,CAAC;AAED,SAAS,EAAa,GAA+B,GAAiB;CAC/D,OACL;MAAI,OAAO,KAAQ,YAAY;GAC7B,EAAI,CAAK;GACT;EACF;EAEC,EAA0C,UAAU;CAFrD;AAGF"}
@@ -1,20 +1,21 @@
1
- import './FAQGroup.module-qm5jP0zF.css';var e = {
2
- FAQGroup: "Primer_Brand__FAQGroup-module__FAQGroup___YEL8U",
3
- FAQGroup__accordion: "Primer_Brand__FAQGroup-module__FAQGroup__accordion___UP5VM",
1
+ import './FAQGroup.module-qm5jP0zF.css';//#region src/FAQ/FAQGroup.module.css
2
+ var e = "Primer_Brand__FAQGroup-module__FAQGroup___YEL8U", t = "Primer_Brand__FAQGroup-module__FAQGroup__accordion___UP5VM", n = "Primer_Brand__FAQGroup-module__FAQGroup__tablist___iBu9X", r = "Primer_Brand__FAQGroup-module__FAQ__heading___HjZwb", i = "Primer_Brand__FAQGroup-module__FAQGroup__heading___RypDB", a = {
3
+ FAQGroup: e,
4
+ FAQGroup__accordion: t,
4
5
  "FAQGroup__panel-subHeading": "Primer_Brand__FAQGroup-module__FAQGroup__panel-subHeading___hpXCw",
5
- FAQGroup__tablist: "Primer_Brand__FAQGroup-module__FAQGroup__tablist___iBu9X",
6
- FAQ__heading: "Primer_Brand__FAQGroup-module__FAQ__heading___HjZwb",
6
+ FAQGroup__tablist: n,
7
+ FAQ__heading: r,
7
8
  "FAQGroup__tablist-button": "Primer_Brand__FAQGroup-module__FAQGroup__tablist-button___VAe_R",
8
9
  "FAQGroup__nested-accordion-item": "Primer_Brand__FAQGroup-module__FAQGroup__nested-accordion-item___Bh12D",
9
10
  "FAQGroup__tablist--gridline": "Primer_Brand__FAQGroup-module__FAQGroup__tablist--gridline___9dsD5",
10
11
  "FAQGroup__content--gridline": "Primer_Brand__FAQGroup-module__FAQGroup__content--gridline___Xu44n",
11
- FAQGroup__heading: "Primer_Brand__FAQGroup-module__FAQGroup__heading___RypDB",
12
+ FAQGroup__heading: i,
12
13
  "FAQGroup__gridline-wrapper": "Primer_Brand__FAQGroup-module__FAQGroup__gridline-wrapper___7IC44",
13
14
  "FAQGroup__heading-wrapper": "Primer_Brand__FAQGroup-module__FAQGroup__heading-wrapper___pYwfs",
14
15
  "FAQGroup__heading-wrapper--gridline": "Primer_Brand__FAQGroup-module__FAQGroup__heading-wrapper--gridline___nZYpp",
15
16
  "FAQGroup__accordion--gridline": "Primer_Brand__FAQGroup-module__FAQGroup__accordion--gridline___6GLEm"
16
17
  };
17
18
  //#endregion
18
- export { e as default };
19
+ export { e as FAQGroup, t as FAQGroup__accordion, i as FAQGroup__heading, n as FAQGroup__tablist, r as FAQ__heading, a as default };
19
20
 
20
21
  //# sourceMappingURL=FAQGroup.module.js.map
@@ -10,7 +10,7 @@ type FootnotesProps = {
10
10
  as?: (typeof FootnotesTags)[number];
11
11
  visuallyHiddenHeading?: string;
12
12
  } & FootnotesRestrictedPolymorphism;
13
- declare function Root({ as, className, children, visuallyHiddenHeading, ...rest }: FootnotesProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function Root({ as, className, children, visuallyHiddenHeading, ...rest }: FootnotesProps): React.JSX.Element;
14
14
  export declare const FootnotesItemTags: readonly ["a", "p"];
15
15
  type DefaultFootnotesItemProps = {
16
16
  _variant?: 'disclaimer';
@@ -20,7 +20,7 @@ type CitationFootnotesItemProps = {
20
20
  href?: string;
21
21
  };
22
22
  type FootnotesItemProps = (DefaultFootnotesItemProps | CitationFootnotesItemProps) & React.HTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLParagraphElement>;
23
- declare function Item({ className, children, _variant, ...rest }: FootnotesItemProps): import("react/jsx-runtime").JSX.Element;
23
+ declare function Item({ className, children, _variant, ...rest }: FootnotesItemProps): React.JSX.Element;
24
24
  /**
25
25
  * Footnotes component
26
26
  * {@link https://primer.style/brand/components/Footnotes/ See usage examples}.
@@ -1 +1 @@
1
- {"version":3,"file":"Footnotes.d.ts","sourceRoot":"","sources":["../../src/Footnotes/Footnotes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAMnD,eAAO,MAAM,aAAa,wBAAyB,CAAA;AAEnD,KAAK,+BAA+B,GAChC,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,cAAc,CAAC,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAA;CAAC,CAAC,GACjF,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,gBAAgB,CAAC,GAAG;IAAC,EAAE,CAAC,EAAE,IAAI,CAAA;CAAC,CAAC,CAAA;AAE5F,KAAK,cAAc,GAAG;IACpB,EAAE,CAAC,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;IACnC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B,GAAG,+BAA+B,CAAA;AAEnC,iBAAS,IAAI,CAAC,EAAC,EAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAmC,EAAE,GAAG,IAAI,EAAC,EAAE,cAAc,2CAyC3G;AAED,e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AAC,EAAC,EAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAmC,EAAE,GAAG,IAAI,EAAC,EAAE,cAAc,qBAyC3G;AAED,eAAO,MAAM,iBAAiB,qBAAsB,CAAA;AAEpD,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,KAAK,0BAA0B,GAAG;IAChC,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,kBAAkB,GAAG,CAAC,yBAAyB,GAAG,0BAA0B,CAAC,GAChF,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,GAC1C,SAAS,CAAC,oBAAoB,CAAC,CAAA;AAEjC,iBAAS,IAAI,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAqB,EAAE,GAAG,IAAI,EAAC,EAAE,kBAAkB,qBAsBtF;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS;;CAA8B,CAAA"}
@@ -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 { Text as t } from "../Text/Text.js";
3
3
  import { Heading as n } from "../Heading/Heading.js";
4
- import { ReplyIcon as r } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
4
+ import { ReplyIcon as r } from "../node_modules/@primer/octicons-react/dist/icons/ReplyIcon.js";
5
5
  import { InlineLink as i } from "../InlineLink/InlineLink.js";
6
6
  import a from "./Footnotes.module.js";
7
7
  import { getTextContent as o } from "../utils/getTextContent.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Footnotes.js","names":[],"sources":["../../src/Footnotes/Footnotes.tsx"],"sourcesContent":["import React from 'react'\nimport {ReplyIcon} from '@primer/octicons-react'\nimport {clsx} from 'clsx'\n\nimport {Heading, InlineLink, Text} from '../'\nimport type {BaseProps} from '../component-helpers'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Footnotes.module.css'\nimport {getTextContent} from '../utils/getTextContent'\n\nexport const FootnotesTags = ['div', 'ol'] as const\n\ntype FootnotesRestrictedPolymorphism =\n | (React.HTMLAttributes<HTMLDivElement> & BaseProps<HTMLDivElement> & {as?: 'div'})\n | (React.HTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLOListElement> & {as?: 'ol'})\n\ntype FootnotesProps = {\n as?: (typeof FootnotesTags)[number]\n visuallyHiddenHeading?: string\n} & FootnotesRestrictedPolymorphism\n\nfunction Root({as = 'ol', className, children, visuallyHiddenHeading = 'Footnotes', ...rest}: FootnotesProps) {\n const memoizedChildren = React.useMemo(() => React.Children.toArray(children), [children])\n\n if (as === 'div') {\n const filteredChildren = memoizedChildren.map(child => {\n if (React.isValidElement<FootnotesItemProps>(child) && child.type === Item) {\n return React.cloneElement(child, {\n _variant: 'disclaimer',\n ...child.props,\n })\n }\n return null\n })\n return (\n <>\n <Heading className=\"visually-hidden\" as=\"h2\" id=\"footnote-label\">\n {visuallyHiddenHeading}\n </Heading>\n <div\n className={clsx(styles.Footnotes, styles['Footnotes--variant-disclaimer'], className)}\n {...(rest as BaseProps<HTMLDivElement>)}\n >\n {filteredChildren}\n </div>\n </>\n )\n }\n\n return (\n <>\n <Heading className=\"visually-hidden\" as=\"h2\" id=\"footnote-label\">\n {visuallyHiddenHeading}\n </Heading>\n <ol\n className={clsx(styles.Footnotes, styles['Footnotes--variant-citations'], className)}\n {...(rest as BaseProps<HTMLOListElement>)}\n >\n {children}\n </ol>\n </>\n )\n}\n\nexport const FootnotesItemTags = ['a', 'p'] as const\n\ntype DefaultFootnotesItemProps = {\n _variant?: 'disclaimer'\n}\n\ntype CitationFootnotesItemProps = {\n _variant?: 'citation'\n href?: string\n}\n\ntype FootnotesItemProps = (DefaultFootnotesItemProps | CitationFootnotesItemProps) &\n React.HTMLAttributes<HTMLParagraphElement> &\n BaseProps<HTMLParagraphElement>\n\nfunction Item({className, children, _variant = 'citation', ...rest}: FootnotesItemProps) {\n if (_variant === 'disclaimer') {\n return (\n <Text as=\"p\" variant=\"muted\" size=\"100\" className={clsx(styles.FootnotesItem, className)}>\n {children}\n </Text>\n )\n }\n\n const {href, ...restSansHref} = rest as CitationFootnotesItemProps\n return (\n <li className={clsx(styles.FootnotesItem, className)} {...(restSansHref as CitationFootnotesItemProps)}>\n <Text as=\"p\" variant=\"muted\" size=\"100\" className={clsx(styles.FootnotesItem__citationText)}>\n {children}\n {href && (\n <InlineLink href={href} aria-label={`Back to content ${getTextContent(children)}`}>\n <ReplyIcon className={styles.FootnotesItem__citationIcon} />\n </InlineLink>\n )}\n </Text>\n </li>\n )\n}\n\n/**\n * Footnotes component\n * {@link https://primer.style/brand/components/Footnotes/ See usage examples}.\n */\nexport const Footnotes = Object.assign(Root, {Item})\n"],"mappings":";;;;;;;;;;AAWA,IAAa,IAAgB,CAAC,OAAO,KAAK;AAW1C,SAAS,EAAK,EAAC,QAAK,MAAM,cAAW,aAAU,2BAAwB,aAAa,GAAG,KAAuB;CAC5G,IAAM,IAAmB,EAAM,cAAc,EAAM,SAAS,QAAQ,EAAS,EAAE,CAAC,EAAS,CAAC;AAE1F,KAAI,MAAO,OAAO;EAChB,IAAM,IAAmB,EAAiB,KAAI,MACxC,EAAM,eAAmC,EAAM,IAAI,EAAM,SAAS,IAC7D,EAAM,aAAa,GAAO;GAC/B,UAAU;GACV,GAAG,EAAM;GACV,CAAC,GAEG,KACP;AACF,SACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;GAAS,WAAU;GAAkB,IAAG;GAAK,IAAG;aAC7C;GACO,CAAA,EACV,kBAAC,OAAD;GACE,WAAW,EAAK,EAAO,WAAW,EAAO,kCAAkC,EAAU;GACrF,GAAK;aAEJ;GACG,CAAA,CACL,EAAA,CAAA;;AAIP,QACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;EAAS,WAAU;EAAkB,IAAG;EAAK,IAAG;YAC7C;EACO,CAAA,EACV,kBAAC,MAAD;EACE,WAAW,EAAK,EAAO,WAAW,EAAO,iCAAiC,EAAU;EACpF,GAAK;EAEJ;EACE,CAAA,CACJ,EAAA,CAAA;;AAIP,IAAa,IAAoB,CAAC,KAAK,IAAI;AAe3C,SAAS,EAAK,EAAC,cAAW,aAAU,cAAW,YAAY,GAAG,KAA2B;AACvF,KAAI,MAAa,aACf,QACE,kBAAC,GAAD;EAAM,IAAG;EAAI,SAAQ;EAAQ,MAAK;EAAM,WAAW,EAAK,EAAO,eAAe,EAAU;EACrF;EACI,CAAA;CAIX,IAAM,EAAC,SAAM,GAAG,MAAgB;AAChC,QACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAO,eAAe,EAAU;EAAE,GAAK;YACzD,kBAAC,GAAD;GAAM,IAAG;GAAI,SAAQ;GAAQ,MAAK;GAAM,WAAW,EAAK,EAAO,4BAA4B;aAA3F,CACG,GACA,KACC,kBAAC,GAAD;IAAkB;IAAM,cAAY,mBAAmB,EAAe,EAAS;cAC7E,kBAAC,GAAD,EAAW,WAAW,EAAO,6BAA+B,CAAA;IACjD,CAAA,CAEV;;EACJ,CAAA;;AAQT,IAAa,IAAY,OAAO,OAAO,GAAM,EAAC,SAAK,CAAC"}
1
+ {"version":3,"file":"Footnotes.js","names":[],"sources":["../../src/Footnotes/Footnotes.tsx"],"sourcesContent":["import React from 'react'\nimport {ReplyIcon} from '@primer/octicons-react'\nimport {clsx} from 'clsx'\n\nimport {Heading, InlineLink, Text} from '../'\nimport type {BaseProps} from '../component-helpers'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Footnotes.module.css'\nimport {getTextContent} from '../utils/getTextContent'\n\nexport const FootnotesTags = ['div', 'ol'] as const\n\ntype FootnotesRestrictedPolymorphism =\n | (React.HTMLAttributes<HTMLDivElement> & BaseProps<HTMLDivElement> & {as?: 'div'})\n | (React.HTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLOListElement> & {as?: 'ol'})\n\ntype FootnotesProps = {\n as?: (typeof FootnotesTags)[number]\n visuallyHiddenHeading?: string\n} & FootnotesRestrictedPolymorphism\n\nfunction Root({as = 'ol', className, children, visuallyHiddenHeading = 'Footnotes', ...rest}: FootnotesProps) {\n const memoizedChildren = React.useMemo(() => React.Children.toArray(children), [children])\n\n if (as === 'div') {\n const filteredChildren = memoizedChildren.map(child => {\n if (React.isValidElement<FootnotesItemProps>(child) && child.type === Item) {\n return React.cloneElement(child, {\n _variant: 'disclaimer',\n ...child.props,\n })\n }\n return null\n })\n return (\n <>\n <Heading className=\"visually-hidden\" as=\"h2\" id=\"footnote-label\">\n {visuallyHiddenHeading}\n </Heading>\n <div\n className={clsx(styles.Footnotes, styles['Footnotes--variant-disclaimer'], className)}\n {...(rest as BaseProps<HTMLDivElement>)}\n >\n {filteredChildren}\n </div>\n </>\n )\n }\n\n return (\n <>\n <Heading className=\"visually-hidden\" as=\"h2\" id=\"footnote-label\">\n {visuallyHiddenHeading}\n </Heading>\n <ol\n className={clsx(styles.Footnotes, styles['Footnotes--variant-citations'], className)}\n {...(rest as BaseProps<HTMLOListElement>)}\n >\n {children}\n </ol>\n </>\n )\n}\n\nexport const FootnotesItemTags = ['a', 'p'] as const\n\ntype DefaultFootnotesItemProps = {\n _variant?: 'disclaimer'\n}\n\ntype CitationFootnotesItemProps = {\n _variant?: 'citation'\n href?: string\n}\n\ntype FootnotesItemProps = (DefaultFootnotesItemProps | CitationFootnotesItemProps) &\n React.HTMLAttributes<HTMLParagraphElement> &\n BaseProps<HTMLParagraphElement>\n\nfunction Item({className, children, _variant = 'citation', ...rest}: FootnotesItemProps) {\n if (_variant === 'disclaimer') {\n return (\n <Text as=\"p\" variant=\"muted\" size=\"100\" className={clsx(styles.FootnotesItem, className)}>\n {children}\n </Text>\n )\n }\n\n const {href, ...restSansHref} = rest as CitationFootnotesItemProps\n return (\n <li className={clsx(styles.FootnotesItem, className)} {...(restSansHref as CitationFootnotesItemProps)}>\n <Text as=\"p\" variant=\"muted\" size=\"100\" className={clsx(styles.FootnotesItem__citationText)}>\n {children}\n {href && (\n <InlineLink href={href} aria-label={`Back to content ${getTextContent(children)}`}>\n <ReplyIcon className={styles.FootnotesItem__citationIcon} />\n </InlineLink>\n )}\n </Text>\n </li>\n )\n}\n\n/**\n * Footnotes component\n * {@link https://primer.style/brand/components/Footnotes/ See usage examples}.\n */\nexport const Footnotes = Object.assign(Root, {Item})\n"],"mappings":";;;;;;;;;;AAWA,IAAa,IAAgB,CAAC,OAAO,IAAI;AAWzC,SAAS,EAAK,EAAC,QAAK,MAAM,cAAW,aAAU,2BAAwB,aAAa,GAAG,KAAuB;CAC5G,IAAM,IAAmB,EAAM,cAAc,EAAM,SAAS,QAAQ,CAAQ,GAAG,CAAC,CAAQ,CAAC;CAEzF,IAAI,MAAO,OAAO;EAChB,IAAM,IAAmB,EAAiB,KAAI,MACxC,EAAM,eAAmC,CAAK,KAAK,EAAM,SAAS,IAC7D,EAAM,aAAa,GAAO;GAC/B,UAAU;GACV,GAAG,EAAM;EACX,CAAC,IAEI,IACR;EACD,OACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;GAAS,WAAU;GAAkB,IAAG;GAAK,IAAG;aAC7C;EACM,CAAA,GACT,kBAAC,OAAD;GACE,WAAW,EAAK,EAAO,WAAW,EAAO,kCAAkC,CAAS;GACpF,GAAK;aAEJ;EACE,CAAA,CACL,EAAA,CAAA;CAEN;CAEA,OACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;EAAS,WAAU;EAAkB,IAAG;EAAK,IAAG;YAC7C;CACM,CAAA,GACT,kBAAC,MAAD;EACE,WAAW,EAAK,EAAO,WAAW,EAAO,iCAAiC,CAAS;EACnF,GAAK;EAEJ;CACC,CAAA,CACJ,EAAA,CAAA;AAEN;AAEA,IAAa,IAAoB,CAAC,KAAK,GAAG;AAe1C,SAAS,EAAK,EAAC,cAAW,aAAU,cAAW,YAAY,GAAG,KAA2B;CACvF,IAAI,MAAa,cACf,OACE,kBAAC,GAAD;EAAM,IAAG;EAAI,SAAQ;EAAQ,MAAK;EAAM,WAAW,EAAK,EAAO,eAAe,CAAS;EACpF;CACG,CAAA;CAIV,IAAM,EAAC,SAAM,GAAG,MAAgB;CAChC,OACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAO,eAAe,CAAS;EAAG,GAAK;YACzD,kBAAC,GAAD;GAAM,IAAG;GAAI,SAAQ;GAAQ,MAAK;GAAM,WAAW,EAAK,EAAO,2BAA2B;aAA1F,CACG,GACA,KACC,kBAAC,GAAD;IAAkB;IAAM,cAAY,mBAAmB,EAAe,CAAQ;cAC5E,kBAAC,GAAD,EAAW,WAAW,EAAO,4BAA8B,CAAA;GACjD,CAAA,CAEV;;CACJ,CAAA;AAER;AAMA,IAAa,IAAY,OAAO,OAAO,GAAM,EAAC,QAAI,CAAC"}
@@ -1,11 +1,12 @@
1
- import './Footnotes.module-DG9Vx76y.css';var e = {
2
- Footnotes: "Primer_Brand__Footnotes-module__Footnotes___Nejyn",
1
+ import './Footnotes.module-DG9Vx76y.css';//#region src/Footnotes/Footnotes.module.css
2
+ var e = "Primer_Brand__Footnotes-module__Footnotes___Nejyn", t = "Primer_Brand__Footnotes-module__FootnotesItem___IfXmq", n = "Primer_Brand__Footnotes-module__FootnotesItem__citationIcon___gBAZT", r = "Primer_Brand__Footnotes-module__FootnotesItem__citationText___4Rjij", i = {
3
+ Footnotes: e,
3
4
  "Footnotes--variant-citations": "Primer_Brand__Footnotes-module__Footnotes--variant-citations___CDvXV",
4
- FootnotesItem: "Primer_Brand__Footnotes-module__FootnotesItem___IfXmq",
5
- FootnotesItem__citationIcon: "Primer_Brand__Footnotes-module__FootnotesItem__citationIcon___gBAZT",
6
- FootnotesItem__citationText: "Primer_Brand__Footnotes-module__FootnotesItem__citationText___4Rjij"
5
+ FootnotesItem: t,
6
+ FootnotesItem__citationIcon: n,
7
+ FootnotesItem__citationText: r
7
8
  };
8
9
  //#endregion
9
- export { e as default };
10
+ export { e as Footnotes, t as FootnotesItem, n as FootnotesItem__citationIcon, r as FootnotesItem__citationText, i as default };
10
11
 
11
12
  //# sourceMappingURL=Footnotes.module.js.map
@@ -22,5 +22,5 @@ export type FrostedGlassVFXProps = BaseProps<HTMLDivElement> & React.HTMLAttribu
22
22
  * FrostedGlassVFX component
23
23
  * {@link https://primer.style/brand/components/FrostedGlassVFX/ See usage examples}.
24
24
  */
25
- export declare function FrostedGlassVFX({ hasBorderRadius, children, className, intensity, ...rest }: FrostedGlassVFXProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare function FrostedGlassVFX({ hasBorderRadius, children, className, intensity, ...rest }: FrostedGlassVFXProps): React.JSX.Element;
26
26
  //# sourceMappingURL=FrostedGlassVFX.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FrostedGlassVFX.d.ts","sourceRoot":"","sources":["../../src/FrostedGlassVFX/FrostedGlassVFX.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAEnD;;GAEG;AACH,OAAO,wGAAwG,CAAA;AAC/G,OAAO,qHAAqH,CAAA;AAK5H,eAAO,MAAM,wBAAwB,oCAAqC,CAAA;AAC1E,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA;AAChF,eAAO,MAAM,+BAA+B,EAAE,wBAAmC,CAAA;AAEjF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,cAAc,CAAC,GAC1D,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACrC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAA;CACrC,CAAA;AAEH;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,eAAsB,EACtB,QAAQ,EACR,SAAS,EACT,SAA2C,EAC3C,GAAG,IAAI,EACR,EAAE,oBAAoB,2CActB"}
1
+ {"version":3,"file":"FrostedGlassVFX.d.ts","sourceRoot":"","sources":["../../src/FrostedGlassVFX/FrostedGlassVFX.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAEnD;;GAEG;AACH,OAAO,wGAAwG,CAAA;AAC/G,OAAO,qHAAqH,CAAA;AAK5H,eAAO,MAAM,wBAAwB,oCAAqC,CAAA;AAC1E,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA;AAChF,eAAO,MAAM,+BAA+B,EAAE,wBAAmC,CAAA;AAEjF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,cAAc,CAAC,GAC1D,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACrC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAA;CACrC,CAAA;AAEH;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,eAAsB,EACtB,QAAQ,EACR,SAAS,EACT,SAA2C,EAC3C,GAAG,IAAI,EACR,EAAE,oBAAoB,qBActB"}
@@ -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 '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes-CMw13Yda.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base-BlFewKzM.css';/* empty css */
3
3
  /* empty css */
4
4
  import t from "./FrostedGlassVFX.module.js";
@@ -1 +1 @@
1
- {"version":3,"file":"FrostedGlassVFX.js","names":[],"sources":["../../src/FrostedGlassVFX/FrostedGlassVFX.tsx"],"sourcesContent":["import React from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../component-helpers'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './FrostedGlassVFX.module.css'\n\nexport const FrostedGlassVFXIntensity = ['low', 'medium', 'high'] as const\nexport type FrostedGlassVFXIntensity = (typeof FrostedGlassVFXIntensity)[number]\nexport const defaultFrostedGlassVFXIntensity: FrostedGlassVFXIntensity = 'medium'\n\nexport type FrostedGlassVFXProps = BaseProps<HTMLDivElement> &\n React.HTMLAttributes<HTMLDivElement> & {\n /**\n * Applies rounded corners\n */\n hasBorderRadius?: boolean\n /**\n * Controls the blur amount\n */\n intensity?: FrostedGlassVFXIntensity\n }\n\n/**\n * FrostedGlassVFX component\n * {@link https://primer.style/brand/components/FrostedGlassVFX/ See usage examples}.\n */\nexport function FrostedGlassVFX({\n hasBorderRadius = true,\n children,\n className,\n intensity = defaultFrostedGlassVFXIntensity,\n ...rest\n}: FrostedGlassVFXProps) {\n return (\n <div\n className={clsx(\n styles.FrostedGlassVFX,\n hasBorderRadius && styles['FrostedGlassVFX--rounded-corners'],\n styles[`FrostedGlassVFX--intensity-${intensity}`],\n className,\n )}\n {...rest}\n >\n {children}\n </div>\n )\n}\n"],"mappings":";;;;;;;AAaA,IAAa,IAA2B;CAAC;CAAO;CAAU;CAAO,EAEpD,IAA4D;AAkBzE,SAAgB,EAAgB,EAC9B,qBAAkB,IAClB,aACA,cACA,eAAY,GACZ,GAAG,KACoB;AACvB,QACE,kBAAC,OAAD;EACE,WAAW,EACT,EAAO,iBACP,KAAmB,EAAO,qCAC1B,EAAO,8BAA8B,MACrC,EACD;EACD,GAAI;EAEH;EACG,CAAA"}
1
+ {"version":3,"file":"FrostedGlassVFX.js","names":[],"sources":["../../src/FrostedGlassVFX/FrostedGlassVFX.tsx"],"sourcesContent":["import React from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../component-helpers'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './FrostedGlassVFX.module.css'\n\nexport const FrostedGlassVFXIntensity = ['low', 'medium', 'high'] as const\nexport type FrostedGlassVFXIntensity = (typeof FrostedGlassVFXIntensity)[number]\nexport const defaultFrostedGlassVFXIntensity: FrostedGlassVFXIntensity = 'medium'\n\nexport type FrostedGlassVFXProps = BaseProps<HTMLDivElement> &\n React.HTMLAttributes<HTMLDivElement> & {\n /**\n * Applies rounded corners\n */\n hasBorderRadius?: boolean\n /**\n * Controls the blur amount\n */\n intensity?: FrostedGlassVFXIntensity\n }\n\n/**\n * FrostedGlassVFX component\n * {@link https://primer.style/brand/components/FrostedGlassVFX/ See usage examples}.\n */\nexport function FrostedGlassVFX({\n hasBorderRadius = true,\n children,\n className,\n intensity = defaultFrostedGlassVFXIntensity,\n ...rest\n}: FrostedGlassVFXProps) {\n return (\n <div\n className={clsx(\n styles.FrostedGlassVFX,\n hasBorderRadius && styles['FrostedGlassVFX--rounded-corners'],\n styles[`FrostedGlassVFX--intensity-${intensity}`],\n className,\n )}\n {...rest}\n >\n {children}\n </div>\n )\n}\n"],"mappings":";;;;;;;AAaA,IAAa,IAA2B;CAAC;CAAO;CAAU;AAAM,GAEnD,IAA4D;AAkBzE,SAAgB,EAAgB,EAC9B,qBAAkB,IAClB,aACA,cACA,eAAY,GACZ,GAAG,KACoB;CACvB,OACE,kBAAC,OAAD;EACE,WAAW,EACT,EAAO,iBACP,KAAmB,EAAO,qCAC1B,EAAO,8BAA8B,MACrC,CACF;EACA,GAAI;EAEH;CACE,CAAA;AAET"}
@@ -1,11 +1,12 @@
1
- import './FrostedGlassVFX.module-CBwswPOI.css';var e = {
2
- FrostedGlassVFX: "Primer_Brand__FrostedGlassVFX-module__FrostedGlassVFX___n7bAR",
1
+ import './FrostedGlassVFX.module-CBwswPOI.css';//#region src/FrostedGlassVFX/FrostedGlassVFX.module.css
2
+ var e = "Primer_Brand__FrostedGlassVFX-module__FrostedGlassVFX___n7bAR", t = {
3
+ FrostedGlassVFX: e,
3
4
  "FrostedGlassVFX--rounded-corners": "Primer_Brand__FrostedGlassVFX-module__FrostedGlassVFX--rounded-corners___4Ve0_",
4
5
  "FrostedGlassVFX--intensity-low": "Primer_Brand__FrostedGlassVFX-module__FrostedGlassVFX--intensity-low___sfdan",
5
6
  "FrostedGlassVFX--intensity-medium": "Primer_Brand__FrostedGlassVFX-module__FrostedGlassVFX--intensity-medium___Tnplu",
6
7
  "FrostedGlassVFX--intensity-high": "Primer_Brand__FrostedGlassVFX-module__FrostedGlassVFX--intensity-high___pdX39"
7
8
  };
8
9
  //#endregion
9
- export { e as default };
10
+ export { e as FrostedGlassVFX, t as default };
10
11
 
11
12
  //# sourceMappingURL=FrostedGlassVFX.module.js.map
@@ -92,9 +92,9 @@ export declare const Grid: React.NamedExoticComponent<React.HTMLAttributes<"div"
92
92
  } & BaseProps<HTMLDivElement> & {
93
93
  children?: React.ReactNode | undefined;
94
94
  }> & {
95
- readonly type: ({ className, children, as, fullWidth, enableOverlay, enableGutters, columnGap, rowGap, ["data-testid"]: testId, ...rest }: PropsWithChildren<GridProps>) => import("react/jsx-runtime").JSX.Element;
95
+ readonly type: ({ className, children, as, fullWidth, enableOverlay, enableGutters, columnGap, rowGap, ["data-testid"]: testId, ...rest }: PropsWithChildren<GridProps>) => JSX.Element;
96
96
  } & {
97
- Column: React.MemoExoticComponent<({ children, as, span, start, className, ...rest }: PropsWithChildren<GridColumnProps>) => import("react/jsx-runtime").JSX.Element>;
97
+ Column: React.MemoExoticComponent<({ children, as, span, start, className, ...rest }: PropsWithChildren<GridColumnProps>) => JSX.Element>;
98
98
  testIds: {
99
99
  root: string;
100
100
  };
package/esm/Grid/Grid.js CHANGED
@@ -1,5 +1,5 @@
1
- import e from "../node_modules/clsx/dist/clsx.js";
2
- import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/grid/grid-Cjk6fsH8.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes-6QocK2fy.css';/* empty css */
1
+ import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
2
+ import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes-6QocK2fy.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/grid/grid-Cjk6fsH8.css';/* empty css */
3
3
  /* empty css */
4
4
  import t from "./Grid.module.js";
5
5
  import { useId as n } from "../hooks/useId.js";