@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":"useCursorAnimation.js","names":[],"sources":["../../src/hooks/useCursorAnimation.ts"],"sourcesContent":["import {useEffect, useState} from 'react'\nimport useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect'\nimport {useReducedMotion} from './useReducedMotion'\n\nexport type CursorAnimationPhase = 'initial' | 'correction' | 'final' | 'complete'\n\nexport type UseCursorAnimationResult = {\n visibleText: string\n showCursor: boolean\n cursorPhase: CursorAnimationPhase\n}\n\nexport type UseCursorAnimationOptions = {\n text: string\n initialText?: string\n animate?: boolean\n delay?: number\n waitForPageLoad?: boolean\n}\n\nexport function useCursorAnimation({\n text,\n initialText,\n animate,\n delay = 500,\n waitForPageLoad = true,\n}: UseCursorAnimationOptions): UseCursorAnimationResult {\n const prefersReducedMotion = useReducedMotion()\n\n const shouldAnimate = animate === true && !prefersReducedMotion && text.length > 0\n const shouldStartHidden = animate === true && text.length > 0\n\n const [frame, setFrame] = useState<UseCursorAnimationResult>({\n visibleText: shouldStartHidden ? '' : text,\n showCursor: !shouldStartHidden,\n cursorPhase: shouldStartHidden ? 'initial' : 'complete',\n })\n\n useIsomorphicLayoutEffect(() => {\n if (!shouldAnimate) {\n setFrame({visibleText: text, showCursor: true, cursorPhase: 'complete'})\n }\n }, [shouldAnimate, text])\n\n useEffect(() => {\n if (!shouldAnimate) return\n\n const frameDuration = 1000 / 60\n const charactersPerSecond = 30 * (85 / 75)\n const deleteCharactersPerSecond = 24 * (85 / 75)\n const correctionPauseDuration = 350 / (85 / 75)\n const scrambleSymbols = ['>', '*', '=', '&', '+', '-', '%', '^', '_']\n\n setFrame({visibleText: '', showCursor: false, cursorPhase: 'initial'})\n\n const candidateInitialText =\n typeof initialText === 'string' && initialText.length > 0 && initialText !== text ? initialText : undefined\n let sharedPrefixLength = 0\n\n if (candidateInitialText) {\n while (\n sharedPrefixLength < candidateInitialText.length &&\n sharedPrefixLength < text.length &&\n candidateInitialText[sharedPrefixLength] === text[sharedPrefixLength]\n ) {\n sharedPrefixLength += 1\n }\n }\n\n const hasCorrection = candidateInitialText !== undefined && sharedPrefixLength < candidateInitialText.length\n const firstText = hasCorrection ? candidateInitialText : text\n const deletedCharacterCount = hasCorrection ? firstText.length - sharedPrefixLength : 0\n const firstTypeDuration = (firstText.length / charactersPerSecond) * 1000\n const correctionStart = firstTypeDuration + (hasCorrection ? correctionPauseDuration : 0)\n const deleteDuration = (deletedCharacterCount / deleteCharactersPerSecond) * 1000\n const secondTypeStart = correctionStart + deleteDuration\n const secondTypeCharacterCount = hasCorrection ? text.length - sharedPrefixLength : 0\n const secondTypeDuration = (secondTypeCharacterCount / charactersPerSecond) * 1000\n const typingComplete = secondTypeStart + secondTypeDuration\n const correctionCursorStart = correctionStart - frameDuration\n const finalCursorStart = typingComplete - 6 * frameDuration\n\n const getScrambledText = (sourceText: string, characterCount: number) => {\n let result = ''\n let visibleCharacterIndex = 0\n\n for (let index = 0; index < characterCount; index += 1) {\n const character = sourceText[index]\n\n if (/\\s/.test(character)) {\n result = `${result}${character}`\n continue\n }\n\n visibleCharacterIndex += 1\n result = `${result}${character}`\n\n if (index === characterCount - 1) {\n result = `${result}${scrambleSymbols[(visibleCharacterIndex - 1) % scrambleSymbols.length]}`\n }\n }\n\n return result\n }\n\n const getFrame = (elapsed: number): UseCursorAnimationResult => {\n let nextText = ''\n\n if (elapsed > 0 && elapsed < firstTypeDuration) {\n const typedCharacterCount = Math.floor((elapsed / 1000) * charactersPerSecond)\n nextText = getScrambledText(firstText, typedCharacterCount)\n } else if (hasCorrection && elapsed >= firstTypeDuration && elapsed < correctionStart) {\n nextText = firstText\n } else if (hasCorrection && elapsed >= correctionStart && elapsed < secondTypeStart) {\n const deleteElapsed = elapsed - correctionStart\n const currentDeletedCharacterCount = Math.floor((deleteElapsed / 1000) * deleteCharactersPerSecond)\n nextText = firstText.slice(0, firstText.length - currentDeletedCharacterCount)\n } else if (hasCorrection && elapsed >= secondTypeStart && elapsed < typingComplete) {\n const secondTypeElapsed = elapsed - secondTypeStart\n const typedCharacterCount = Math.min(\n text.length,\n sharedPrefixLength + Math.floor((secondTypeElapsed / 1000) * charactersPerSecond),\n )\n nextText = text.slice(0, typedCharacterCount)\n } else if (elapsed >= typingComplete) {\n nextText = text\n }\n\n let nextCursorPhase: CursorAnimationPhase = 'initial'\n if (hasCorrection && elapsed >= correctionCursorStart) nextCursorPhase = 'correction'\n if (elapsed >= finalCursorStart) nextCursorPhase = 'final'\n if (elapsed >= typingComplete) nextCursorPhase = 'complete'\n\n return {\n visibleText: nextText,\n showCursor: nextText.length > 0,\n cursorPhase: nextCursorPhase,\n }\n }\n\n let animationFrame: number | undefined\n let delayTimer: ReturnType<typeof setTimeout> | undefined\n\n const startAnimation = () => {\n const startTime = performance.now()\n let previousFrame: UseCursorAnimationResult = {\n visibleText: '',\n showCursor: false,\n cursorPhase: 'initial',\n }\n\n const tick = (currentTime: number) => {\n const elapsed = currentTime - startTime\n const nextFrame = getFrame(elapsed)\n\n if (\n previousFrame.visibleText !== nextFrame.visibleText ||\n previousFrame.showCursor !== nextFrame.showCursor ||\n previousFrame.cursorPhase !== nextFrame.cursorPhase\n ) {\n previousFrame = nextFrame\n setFrame(nextFrame)\n }\n\n if (elapsed < typingComplete) {\n animationFrame = window.requestAnimationFrame(tick)\n }\n }\n\n animationFrame = window.requestAnimationFrame(tick)\n }\n\n const startDelayTimer = () => {\n delayTimer = setTimeout(startAnimation, delay)\n }\n\n if (waitForPageLoad && typeof window !== 'undefined') {\n if (document.readyState === 'complete') {\n startDelayTimer()\n } else {\n const handleLoad = () => startDelayTimer()\n window.addEventListener('load', handleLoad)\n return () => {\n window.removeEventListener('load', handleLoad)\n if (delayTimer !== undefined) clearTimeout(delayTimer)\n if (animationFrame !== undefined) window.cancelAnimationFrame(animationFrame)\n }\n }\n } else {\n startDelayTimer()\n }\n\n return () => {\n if (delayTimer !== undefined) clearTimeout(delayTimer)\n if (animationFrame !== undefined) window.cancelAnimationFrame(animationFrame)\n }\n }, [delay, initialText, shouldAnimate, text, waitForPageLoad])\n\n return frame\n}\n"],"mappings":";;;;AAoBA,SAAgB,EAAmB,EACjC,SACA,gBACA,YACA,WAAQ,KACR,qBAAkB,MACoC;CACtD,IAAM,IAAuB,GAAkB,EAEzC,IAAgB,MAAY,MAAQ,CAAC,KAAwB,EAAK,SAAS,GAC3E,IAAoB,MAAY,MAAQ,EAAK,SAAS,GAEtD,CAAC,GAAO,KAAY,EAAmC;EAC3D,aAAa,IAAoB,KAAK;EACtC,YAAY,CAAC;EACb,aAAa,IAAoB,YAAY;EAC9C,CAAC;AAkKF,QAhKA,QAAgC;AAC9B,EAAK,KACH,EAAS;GAAC,aAAa;GAAM,YAAY;GAAM,aAAa;GAAW,CAAC;IAEzE,CAAC,GAAe,EAAK,CAAC,EAEzB,QAAgB;AACd,MAAI,CAAC,EAAe;EAEpB,IAAM,IAAgB,MAAO,IAEvB,IAAkC,KAAK,KAAX,IAE5B,IAAkB;GAAC;GAAK;GAAK;GAAK;GAAK;GAAK;GAAK;GAAK;GAAK;GAAI;AAErE,IAAS;GAAC,aAAa;GAAI,YAAY;GAAO,aAAa;GAAU,CAAC;EAEtE,IAAM,IACJ,OAAO,KAAgB,YAAY,EAAY,SAAS,KAAK,MAAgB,IAAO,IAAc,KAAA,GAChG,IAAqB;AAEzB,MAAI,EACF,QACE,IAAqB,EAAqB,UAC1C,IAAqB,EAAK,UAC1B,EAAqB,OAAwB,EAAK,IAElD,MAAsB;EAI1B,IAAM,IAAgB,MAAyB,KAAA,KAAa,IAAqB,EAAqB,QAChG,IAAY,IAAgB,IAAuB,GACnD,IAAwB,IAAgB,EAAU,SAAS,IAAqB,GAChF,IAAqB,EAAU,SAAS,KAAuB,KAC/D,IAAkB,KAAqB,IAAgB,oBAA0B,IAEjF,IAAkB,IADA,IAAwB,IAA6B,KAIvE,IAAiB,KAFU,IAAgB,EAAK,SAAS,IAAqB,KAC7B,KAAuB,KAExE,IAAwB,IAAkB,GAC1C,IAAmB,IAAiB,IAAI,GAExC,KAAoB,GAAoB,MAA2B;GACvE,IAAI,IAAS,IACT,IAAwB;AAE5B,QAAK,IAAI,IAAQ,GAAG,IAAQ,GAAgB,KAAS,GAAG;IACtD,IAAM,IAAY,EAAW;AAE7B,QAAI,KAAK,KAAK,EAAU,EAAE;AACxB,SAAS,GAAG,IAAS;AACrB;;AAMF,IAHA,KAAyB,GACzB,IAAS,GAAG,IAAS,KAEjB,MAAU,IAAiB,MAC7B,IAAS,GAAG,IAAS,GAAiB,IAAwB,KAAK,EAAgB;;AAIvF,UAAO;KAGH,KAAY,MAA8C;GAC9D,IAAI,IAAW;AAEf,OAAI,IAAU,KAAK,IAAU,EAE3B,KAAW,EAAiB,GADA,KAAK,MAAO,IAAU,MAAQ,GACnB,CAAoB;YAClD,KAAiB,KAAW,KAAqB,IAAU,EACpE,KAAW;YACF,KAAiB,KAAW,KAAmB,IAAU,GAAiB;IACnF,IAAM,IAAgB,IAAU,GAC1B,IAA+B,KAAK,MAAO,IAAgB,MAAQ,EAA0B;AACnG,QAAW,EAAU,MAAM,GAAG,EAAU,SAAS,EAA6B;cACrE,KAAiB,KAAW,KAAmB,IAAU,GAAgB;IAClF,IAAM,IAAoB,IAAU,GAC9B,IAAsB,KAAK,IAC/B,EAAK,QACL,IAAqB,KAAK,MAAO,IAAoB,MAAQ,GAAoB,CAClF;AACD,QAAW,EAAK,MAAM,GAAG,EAAoB;UACpC,KAAW,MACpB,IAAW;GAGb,IAAI,IAAwC;AAK5C,UAJI,KAAiB,KAAW,MAAuB,IAAkB,eACrE,KAAW,MAAkB,IAAkB,UAC/C,KAAW,MAAgB,IAAkB,aAE1C;IACL,aAAa;IACb,YAAY,EAAS,SAAS;IAC9B,aAAa;IACd;KAGC,GACA,GAEE,UAAuB;GAC3B,IAAM,IAAY,YAAY,KAAK,EAC/B,IAA0C;IAC5C,aAAa;IACb,YAAY;IACZ,aAAa;IACd,EAEK,KAAQ,MAAwB;IACpC,IAAM,IAAU,IAAc,GACxB,IAAY,EAAS,EAAQ;AAWnC,KARE,EAAc,gBAAgB,EAAU,eACxC,EAAc,eAAe,EAAU,cACvC,EAAc,gBAAgB,EAAU,iBAExC,IAAgB,GAChB,EAAS,EAAU,GAGjB,IAAU,MACZ,IAAiB,OAAO,sBAAsB,EAAK;;AAIvD,OAAiB,OAAO,sBAAsB,EAAK;KAG/C,UAAwB;AAC5B,OAAa,WAAW,GAAgB,EAAM;;AAGhD,MAAI,KAAmB,OAAO,SAAW,IACvC,KAAI,SAAS,eAAe,WAC1B,IAAiB;OACZ;GACL,IAAM,UAAmB,GAAiB;AAE1C,UADA,OAAO,iBAAiB,QAAQ,EAAW,QAC9B;AAGX,IAFA,OAAO,oBAAoB,QAAQ,EAAW,EAC1C,MAAe,KAAA,KAAW,aAAa,EAAW,EAClD,MAAmB,KAAA,KAAW,OAAO,qBAAqB,EAAe;;;MAIjF,IAAiB;AAGnB,eAAa;AAEX,GADI,MAAe,KAAA,KAAW,aAAa,EAAW,EAClD,MAAmB,KAAA,KAAW,OAAO,qBAAqB,EAAe;;IAE9E;EAAC;EAAO;EAAa;EAAe;EAAM;EAAgB,CAAC,EAEvD"}
1
+ {"version":3,"file":"useCursorAnimation.js","names":[],"sources":["../../src/hooks/useCursorAnimation.ts"],"sourcesContent":["import {useEffect, useState} from 'react'\nimport useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect'\nimport {useReducedMotion} from './useReducedMotion'\n\nexport type CursorAnimationPhase = 'initial' | 'correction' | 'final' | 'complete'\n\nexport type UseCursorAnimationResult = {\n visibleText: string\n showCursor: boolean\n cursorPhase: CursorAnimationPhase\n}\n\nexport type UseCursorAnimationOptions = {\n text: string\n initialText?: string\n animate?: boolean\n delay?: number\n waitForPageLoad?: boolean\n}\n\nexport function useCursorAnimation({\n text,\n initialText,\n animate,\n delay = 500,\n waitForPageLoad = true,\n}: UseCursorAnimationOptions): UseCursorAnimationResult {\n const prefersReducedMotion = useReducedMotion()\n\n const shouldAnimate = animate === true && !prefersReducedMotion && text.length > 0\n const shouldStartHidden = animate === true && text.length > 0\n\n const [frame, setFrame] = useState<UseCursorAnimationResult>({\n visibleText: shouldStartHidden ? '' : text,\n showCursor: !shouldStartHidden,\n cursorPhase: shouldStartHidden ? 'initial' : 'complete',\n })\n\n useIsomorphicLayoutEffect(() => {\n if (!shouldAnimate) {\n setFrame({visibleText: text, showCursor: true, cursorPhase: 'complete'})\n }\n }, [shouldAnimate, text])\n\n useEffect(() => {\n if (!shouldAnimate) return\n\n const frameDuration = 1000 / 60\n const charactersPerSecond = 30 * (85 / 75)\n const deleteCharactersPerSecond = 24 * (85 / 75)\n const correctionPauseDuration = 350 / (85 / 75)\n const scrambleSymbols = ['>', '*', '=', '&', '+', '-', '%', '^', '_']\n\n setFrame({visibleText: '', showCursor: false, cursorPhase: 'initial'})\n\n const candidateInitialText =\n typeof initialText === 'string' && initialText.length > 0 && initialText !== text ? initialText : undefined\n let sharedPrefixLength = 0\n\n if (candidateInitialText) {\n while (\n sharedPrefixLength < candidateInitialText.length &&\n sharedPrefixLength < text.length &&\n candidateInitialText[sharedPrefixLength] === text[sharedPrefixLength]\n ) {\n sharedPrefixLength += 1\n }\n }\n\n const hasCorrection = candidateInitialText !== undefined && sharedPrefixLength < candidateInitialText.length\n const firstText = hasCorrection ? candidateInitialText : text\n const deletedCharacterCount = hasCorrection ? firstText.length - sharedPrefixLength : 0\n const firstTypeDuration = (firstText.length / charactersPerSecond) * 1000\n const correctionStart = firstTypeDuration + (hasCorrection ? correctionPauseDuration : 0)\n const deleteDuration = (deletedCharacterCount / deleteCharactersPerSecond) * 1000\n const secondTypeStart = correctionStart + deleteDuration\n const secondTypeCharacterCount = hasCorrection ? text.length - sharedPrefixLength : 0\n const secondTypeDuration = (secondTypeCharacterCount / charactersPerSecond) * 1000\n const typingComplete = secondTypeStart + secondTypeDuration\n const correctionCursorStart = correctionStart - frameDuration\n const finalCursorStart = typingComplete - 6 * frameDuration\n\n const getScrambledText = (sourceText: string, characterCount: number) => {\n let result = ''\n let visibleCharacterIndex = 0\n\n for (let index = 0; index < characterCount; index += 1) {\n const character = sourceText[index]\n\n if (/\\s/.test(character)) {\n result = `${result}${character}`\n continue\n }\n\n visibleCharacterIndex += 1\n result = `${result}${character}`\n\n if (index === characterCount - 1) {\n result = `${result}${scrambleSymbols[(visibleCharacterIndex - 1) % scrambleSymbols.length]}`\n }\n }\n\n return result\n }\n\n const getFrame = (elapsed: number): UseCursorAnimationResult => {\n let nextText = ''\n\n if (elapsed > 0 && elapsed < firstTypeDuration) {\n const typedCharacterCount = Math.floor((elapsed / 1000) * charactersPerSecond)\n nextText = getScrambledText(firstText, typedCharacterCount)\n } else if (hasCorrection && elapsed >= firstTypeDuration && elapsed < correctionStart) {\n nextText = firstText\n } else if (hasCorrection && elapsed >= correctionStart && elapsed < secondTypeStart) {\n const deleteElapsed = elapsed - correctionStart\n const currentDeletedCharacterCount = Math.floor((deleteElapsed / 1000) * deleteCharactersPerSecond)\n nextText = firstText.slice(0, firstText.length - currentDeletedCharacterCount)\n } else if (hasCorrection && elapsed >= secondTypeStart && elapsed < typingComplete) {\n const secondTypeElapsed = elapsed - secondTypeStart\n const typedCharacterCount = Math.min(\n text.length,\n sharedPrefixLength + Math.floor((secondTypeElapsed / 1000) * charactersPerSecond),\n )\n nextText = text.slice(0, typedCharacterCount)\n } else if (elapsed >= typingComplete) {\n nextText = text\n }\n\n let nextCursorPhase: CursorAnimationPhase = 'initial'\n if (hasCorrection && elapsed >= correctionCursorStart) nextCursorPhase = 'correction'\n if (elapsed >= finalCursorStart) nextCursorPhase = 'final'\n if (elapsed >= typingComplete) nextCursorPhase = 'complete'\n\n return {\n visibleText: nextText,\n showCursor: nextText.length > 0,\n cursorPhase: nextCursorPhase,\n }\n }\n\n let animationFrame: number | undefined\n let delayTimer: ReturnType<typeof setTimeout> | undefined\n\n const startAnimation = () => {\n const startTime = performance.now()\n let previousFrame: UseCursorAnimationResult = {\n visibleText: '',\n showCursor: false,\n cursorPhase: 'initial',\n }\n\n const tick = (currentTime: number) => {\n const elapsed = currentTime - startTime\n const nextFrame = getFrame(elapsed)\n\n if (\n previousFrame.visibleText !== nextFrame.visibleText ||\n previousFrame.showCursor !== nextFrame.showCursor ||\n previousFrame.cursorPhase !== nextFrame.cursorPhase\n ) {\n previousFrame = nextFrame\n setFrame(nextFrame)\n }\n\n if (elapsed < typingComplete) {\n animationFrame = window.requestAnimationFrame(tick)\n }\n }\n\n animationFrame = window.requestAnimationFrame(tick)\n }\n\n const startDelayTimer = () => {\n delayTimer = setTimeout(startAnimation, delay)\n }\n\n if (waitForPageLoad && typeof window !== 'undefined') {\n if (document.readyState === 'complete') {\n startDelayTimer()\n } else {\n const handleLoad = () => startDelayTimer()\n window.addEventListener('load', handleLoad)\n return () => {\n window.removeEventListener('load', handleLoad)\n if (delayTimer !== undefined) clearTimeout(delayTimer)\n if (animationFrame !== undefined) window.cancelAnimationFrame(animationFrame)\n }\n }\n } else {\n startDelayTimer()\n }\n\n return () => {\n if (delayTimer !== undefined) clearTimeout(delayTimer)\n if (animationFrame !== undefined) window.cancelAnimationFrame(animationFrame)\n }\n }, [delay, initialText, shouldAnimate, text, waitForPageLoad])\n\n return frame\n}\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusTrap.js","names":[],"sources":["../../src/hooks/useFocusTrap.ts"],"sourcesContent":["import React from 'react'\nimport {focusTrap} from '@primer/behaviors'\nimport {useProvidedRefOrCreate} from './useRef'\n\nexport interface FocusTrapHookSettings<\n ContainerElement extends HTMLElement = HTMLElement,\n InitialFocusElement extends HTMLElement = HTMLElement,\n> {\n /**\n * Ref object that will be used for the trapping container. If not provided, one will\n * be created by this hook and returned.\n */\n containerRef?: React.RefObject<ContainerElement | null>\n\n /**\n * Ref object for the element that should receive focus when the focus trap is first enabled.\n * If not provided, one will be created by this hook and returned. Its use is optional.\n */\n initialFocusRef?: React.RefObject<InitialFocusElement | null>\n\n /**\n * Set to true to disable the focus trap and clean up listeners. Can be re-enabled at any time.\n */\n disabled?: boolean\n\n /**\n * If true, when this focus trap is cleaned up, restore focus to the element that had focus immediately before the focus trap was enabled. (Default: false)\n */\n restoreFocusOnCleanUp?: boolean\n}\n\n/**\n * Hook used to trap focus inside a container. Returns a ref that can be added to the container\n * that should trap focus.\n * @param settings {FocusTrapHookSettings}\n */\nexport function useFocusTrap<\n ContainerElement extends HTMLElement = HTMLElement,\n InitialFocusElement extends HTMLElement = HTMLElement,\n>(\n settings?: FocusTrapHookSettings<ContainerElement, InitialFocusElement>,\n dependencies: React.DependencyList = [],\n): {\n containerRef: React.RefObject<ContainerElement | null>\n initialFocusRef: React.RefObject<InitialFocusElement | null>\n} {\n const containerRef = useProvidedRefOrCreate<ContainerElement | null>(settings?.containerRef)\n const initialFocusRef = useProvidedRefOrCreate<InitialFocusElement | null>(settings?.initialFocusRef)\n const disabled = settings?.disabled\n const abortController = React.useRef<AbortController | null>(null)\n const previousFocusedElement = React.useRef<Element | null>(null)\n\n // This function removes the event listeners that enable the focus trap and restores focus\n // to the previously-focused element (if necessary).\n function disableTrap() {\n abortController.current?.abort()\n if (settings?.restoreFocusOnCleanUp && previousFocusedElement.current instanceof HTMLElement) {\n previousFocusedElement.current.focus()\n }\n previousFocusedElement.current = null\n }\n\n React.useEffect(\n () => {\n if (containerRef.current instanceof HTMLElement) {\n if (!disabled) {\n if (!previousFocusedElement.current) {\n previousFocusedElement.current = document.activeElement\n }\n abortController.current = focusTrap(containerRef.current, initialFocusRef.current ?? undefined) ?? null\n return () => {\n disableTrap()\n }\n } else {\n disableTrap()\n }\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [containerRef, initialFocusRef, disabled, ...dependencies],\n )\n\n return {containerRef, initialFocusRef}\n}\n"],"mappings":";;;;AAoCA,SAAgB,EAId,GACA,IAAqC,EAAE,EAIvC;CACA,IAAM,IAAe,EAAgD,GAAU,aAAa,EACtF,IAAkB,EAAmD,GAAU,gBAAgB,EAC/F,IAAW,GAAU,UACrB,IAAkB,EAAM,OAA+B,KAAK,EAC5D,IAAyB,EAAM,OAAuB,KAAK;CAIjE,SAAS,IAAc;AAKrB,EAJA,EAAgB,SAAS,OAAO,EAC5B,GAAU,yBAAyB,EAAuB,mBAAmB,eAC/E,EAAuB,QAAQ,OAAO,EAExC,EAAuB,UAAU;;AAuBnC,QApBA,EAAM,gBACE;AACJ,MAAI,EAAa,mBAAmB,YAClC,KAAK,EASH,IAAa;MAJb,QAJA,AACE,EAAuB,YAAU,SAAS,eAE5C,EAAgB,UAAU,EAAU,EAAa,SAAS,EAAgB,WAAW,KAAA,EAAU,IAAI,YACtF;AACX,MAAa;;IAQrB;EAAC;EAAc;EAAiB;EAAU,GAAG;EAAa,CAC3D,EAEM;EAAC;EAAc;EAAgB"}
1
+ {"version":3,"file":"useFocusTrap.js","names":[],"sources":["../../src/hooks/useFocusTrap.ts"],"sourcesContent":["import React from 'react'\nimport {focusTrap} from '@primer/behaviors'\nimport {useProvidedRefOrCreate} from './useRef'\n\nexport interface FocusTrapHookSettings<\n ContainerElement extends HTMLElement = HTMLElement,\n InitialFocusElement extends HTMLElement = HTMLElement,\n> {\n /**\n * Ref object that will be used for the trapping container. If not provided, one will\n * be created by this hook and returned.\n */\n containerRef?: React.RefObject<ContainerElement | null>\n\n /**\n * Ref object for the element that should receive focus when the focus trap is first enabled.\n * If not provided, one will be created by this hook and returned. Its use is optional.\n */\n initialFocusRef?: React.RefObject<InitialFocusElement | null>\n\n /**\n * Set to true to disable the focus trap and clean up listeners. Can be re-enabled at any time.\n */\n disabled?: boolean\n\n /**\n * If true, when this focus trap is cleaned up, restore focus to the element that had focus immediately before the focus trap was enabled. (Default: false)\n */\n restoreFocusOnCleanUp?: boolean\n}\n\n/**\n * Hook used to trap focus inside a container. Returns a ref that can be added to the container\n * that should trap focus.\n * @param settings {FocusTrapHookSettings}\n */\nexport function useFocusTrap<\n ContainerElement extends HTMLElement = HTMLElement,\n InitialFocusElement extends HTMLElement = HTMLElement,\n>(\n settings?: FocusTrapHookSettings<ContainerElement, InitialFocusElement>,\n dependencies: React.DependencyList = [],\n): {\n containerRef: React.RefObject<ContainerElement | null>\n initialFocusRef: React.RefObject<InitialFocusElement | null>\n} {\n const containerRef = useProvidedRefOrCreate<ContainerElement | null>(settings?.containerRef)\n const initialFocusRef = useProvidedRefOrCreate<InitialFocusElement | null>(settings?.initialFocusRef)\n const disabled = settings?.disabled\n const abortController = React.useRef<AbortController | null>(null)\n const previousFocusedElement = React.useRef<Element | null>(null)\n\n // This function removes the event listeners that enable the focus trap and restores focus\n // to the previously-focused element (if necessary).\n function disableTrap() {\n abortController.current?.abort()\n if (settings?.restoreFocusOnCleanUp && previousFocusedElement.current instanceof HTMLElement) {\n previousFocusedElement.current.focus()\n }\n previousFocusedElement.current = null\n }\n\n React.useEffect(\n () => {\n if (containerRef.current instanceof HTMLElement) {\n if (!disabled) {\n if (!previousFocusedElement.current) {\n previousFocusedElement.current = document.activeElement\n }\n abortController.current = focusTrap(containerRef.current, initialFocusRef.current ?? undefined) ?? null\n return () => {\n disableTrap()\n }\n } else {\n disableTrap()\n }\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [containerRef, initialFocusRef, disabled, ...dependencies],\n )\n\n return {containerRef, initialFocusRef}\n}\n"],"mappings":";;;;AAoCA,SAAgB,EAId,GACA,IAAqC,CAAC,GAItC;CACA,IAAM,IAAe,EAAgD,GAAU,YAAY,GACrF,IAAkB,EAAmD,GAAU,eAAe,GAC9F,IAAW,GAAU,UACrB,IAAkB,EAAM,OAA+B,IAAI,GAC3D,IAAyB,EAAM,OAAuB,IAAI;CAIhE,SAAS,IAAc;EAKrB,AAJA,EAAgB,SAAS,MAAM,GAC3B,GAAU,yBAAyB,EAAuB,mBAAmB,eAC/E,EAAuB,QAAQ,MAAM,GAEvC,EAAuB,UAAU;CACnC;CAsBA,OApBA,EAAM,gBACE;EACJ,IAAI,EAAa,mBAAmB,aAClC,IAAK,GASH,EAAY;OAJZ,OAJA,AACE,EAAuB,YAAU,SAAS,eAE5C,EAAgB,UAAU,EAAU,EAAa,SAAS,EAAgB,WAAW,KAAA,CAAS,KAAK,YACtF;GACX,EAAY;EACd;CAKN,GAEA;EAAC;EAAc;EAAiB;EAAU,GAAG;CAAY,CAC3D,GAEO;EAAC;EAAc;CAAe;AACvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useId.js","names":[],"sources":["../../src/hooks/useId.ts"],"sourcesContent":["import {useId as useReactId} from 'react'\n\nexport type UseId = (id?: string) => string\n\nexport const useId: UseId = id => {\n const uniqueId = useReactId()\n\n if (id) {\n return id\n }\n\n return uniqueId\n}\n"],"mappings":";;AAIA,IAAa,KAAe,MAAM;CAChC,IAAM,IAAW,GAAY;AAM7B,QAJI,KAIG"}
1
+ {"version":3,"file":"useId.js","names":[],"sources":["../../src/hooks/useId.ts"],"sourcesContent":["import {useId as useReactId} from 'react'\n\nexport type UseId = (id?: string) => string\n\nexport const useId: UseId = id => {\n const uniqueId = useReactId()\n\n if (id) {\n return id\n }\n\n return uniqueId\n}\n"],"mappings":";;AAIA,IAAa,KAAe,MAAM;CAChC,IAAM,IAAW,EAAW;CAM5B,OAJI,KAIG;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardEscape.js","names":[],"sources":["../../src/hooks/useKeyboardEscape.ts"],"sourcesContent":["import {useCallback, useEffect} from 'react'\n\nexport function useKeyboardEscape(handler) {\n const handleKeyboardEscape = useCallback(\n event => {\n if (event.key === 'Escape') {\n handler()\n }\n },\n [handler],\n )\n\n useEffect(() => {\n document.addEventListener('keydown', handleKeyboardEscape, false)\n\n return () => {\n document.removeEventListener('keydown', handleKeyboardEscape, false)\n }\n }, [handleKeyboardEscape])\n}\n"],"mappings":";;AAEA,SAAgB,EAAkB,GAAS;CACzC,IAAM,IAAuB,GAC3B,MAAS;AACP,EAAI,EAAM,QAAQ,YAChB,GAAS;IAGb,CAAC,EAAQ,CACV;AAED,UACE,SAAS,iBAAiB,WAAW,GAAsB,GAAM,QAEpD;AACX,WAAS,oBAAoB,WAAW,GAAsB,GAAM;KAErE,CAAC,EAAqB,CAAC"}
1
+ {"version":3,"file":"useKeyboardEscape.js","names":[],"sources":["../../src/hooks/useKeyboardEscape.ts"],"sourcesContent":["import {useCallback, useEffect} from 'react'\n\nexport function useKeyboardEscape(handler) {\n const handleKeyboardEscape = useCallback(\n event => {\n if (event.key === 'Escape') {\n handler()\n }\n },\n [handler],\n )\n\n useEffect(() => {\n document.addEventListener('keydown', handleKeyboardEscape, false)\n\n return () => {\n document.removeEventListener('keydown', handleKeyboardEscape, false)\n }\n }, [handleKeyboardEscape])\n}\n"],"mappings":";;AAEA,SAAgB,EAAkB,GAAS;CACzC,IAAM,IAAuB,GAC3B,MAAS;EACP,AAAI,EAAM,QAAQ,YAChB,EAAQ;CAEZ,GACA,CAAC,CAAO,CACV;CAEA,SACE,SAAS,iBAAiB,WAAW,GAAsB,EAAK,SAEnD;EACX,SAAS,oBAAoB,WAAW,GAAsB,EAAK;CACrE,IACC,CAAC,CAAoB,CAAC;AAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"useOnClickOutside.js","names":[],"sources":["../../src/hooks/useOnClickOutside.ts"],"sourcesContent":["import {RefObject, useEffect} from 'react'\n\nexport function useOnClickOutside(\n ref: RefObject<HTMLElement | null>,\n handler?: (event: MouseEvent | TouchEvent | FocusEvent) => void,\n excludeRef?: RefObject<HTMLElement | null>,\n): void {\n useEffect(() => {\n const listener = (event: MouseEvent | TouchEvent | FocusEvent) => {\n // Do nothing if clicking ref's element or descendent elements\n if (\n !ref.current ||\n ref.current.contains(event.target as Node) ||\n (excludeRef && excludeRef.current && excludeRef.current.contains(event.target as Node))\n ) {\n return\n }\n if (handler) {\n handler(event)\n }\n }\n\n document.addEventListener('mousedown', listener)\n document.addEventListener('touchstart', listener, {passive: true})\n document.addEventListener('focusin', listener)\n\n return () => {\n document.removeEventListener('mousedown', listener)\n document.removeEventListener('touchstart', listener)\n document.removeEventListener('focusin', listener)\n }\n }, [ref, handler, excludeRef])\n}\n"],"mappings":";;AAEA,SAAgB,EACd,GACA,GACA,GACM;AACN,SAAgB;EACd,IAAM,KAAY,MAAgD;AAG9D,IAAC,EAAI,WACL,EAAI,QAAQ,SAAS,EAAM,OAAe,IACzC,KAAc,EAAW,WAAW,EAAW,QAAQ,SAAS,EAAM,OAAe,IAIpF,KACF,EAAQ,EAAM;;AAQlB,SAJA,SAAS,iBAAiB,aAAa,EAAS,EAChD,SAAS,iBAAiB,cAAc,GAAU,EAAC,SAAS,IAAK,CAAC,EAClE,SAAS,iBAAiB,WAAW,EAAS,QAEjC;AAGX,GAFA,SAAS,oBAAoB,aAAa,EAAS,EACnD,SAAS,oBAAoB,cAAc,EAAS,EACpD,SAAS,oBAAoB,WAAW,EAAS;;IAElD;EAAC;EAAK;EAAS;EAAW,CAAC"}
1
+ {"version":3,"file":"useOnClickOutside.js","names":[],"sources":["../../src/hooks/useOnClickOutside.ts"],"sourcesContent":["import {RefObject, useEffect} from 'react'\n\nexport function useOnClickOutside(\n ref: RefObject<HTMLElement | null>,\n handler?: (event: MouseEvent | TouchEvent | FocusEvent) => void,\n excludeRef?: RefObject<HTMLElement | null>,\n): void {\n useEffect(() => {\n const listener = (event: MouseEvent | TouchEvent | FocusEvent) => {\n // Do nothing if clicking ref's element or descendent elements\n if (\n !ref.current ||\n ref.current.contains(event.target as Node) ||\n (excludeRef && excludeRef.current && excludeRef.current.contains(event.target as Node))\n ) {\n return\n }\n if (handler) {\n handler(event)\n }\n }\n\n document.addEventListener('mousedown', listener)\n document.addEventListener('touchstart', listener, {passive: true})\n document.addEventListener('focusin', listener)\n\n return () => {\n document.removeEventListener('mousedown', listener)\n document.removeEventListener('touchstart', listener)\n document.removeEventListener('focusin', listener)\n }\n }, [ref, handler, excludeRef])\n}\n"],"mappings":";;AAEA,SAAgB,EACd,GACA,GACA,GACM;CACN,QAAgB;EACd,IAAM,KAAY,MAAgD;GAG9D,CAAC,EAAI,WACL,EAAI,QAAQ,SAAS,EAAM,MAAc,KACxC,KAAc,EAAW,WAAW,EAAW,QAAQ,SAAS,EAAM,MAAc,KAInF,KACF,EAAQ,CAAK;EAEjB;EAMA,OAJA,SAAS,iBAAiB,aAAa,CAAQ,GAC/C,SAAS,iBAAiB,cAAc,GAAU,EAAC,SAAS,GAAI,CAAC,GACjE,SAAS,iBAAiB,WAAW,CAAQ,SAEhC;GAGX,AAFA,SAAS,oBAAoB,aAAa,CAAQ,GAClD,SAAS,oBAAoB,cAAc,CAAQ,GACnD,SAAS,oBAAoB,WAAW,CAAQ;EAClD;CACF,GAAG;EAAC;EAAK;EAAS;CAAU,CAAC;AAC/B"}
@@ -1,7 +1,7 @@
1
1
  import { useEffect as e, useState as t } from "react";
2
2
  //#region src/hooks/useReducedMotion.ts
3
3
  function n() {
4
- let [n, r] = t(() => typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1);
4
+ let [n, r] = t(() => typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches);
5
5
  return e(() => {
6
6
  let e = window.matchMedia("(prefers-reduced-motion: reduce)");
7
7
  r(e.matches);
@@ -1 +1 @@
1
- {"version":3,"file":"useReducedMotion.js","names":[],"sources":["../../src/hooks/useReducedMotion.ts"],"sourcesContent":["import {useState, useEffect} from 'react'\n\n/**\n * Hook that returns true if the user prefers reduced motion.\n * Respects the prefers-reduced-motion media query.\n */\nexport function useReducedMotion(): boolean {\n const [prefersReducedMotion, setPrefersReducedMotion] = useState(() =>\n typeof window !== 'undefined' ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : false,\n )\n\n useEffect(() => {\n const mediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)')\n setPrefersReducedMotion(mediaQuery.matches)\n\n const handleChange = (event: MediaQueryListEvent) => {\n setPrefersReducedMotion(event.matches)\n }\n\n mediaQuery.addEventListener('change', handleChange)\n return () => mediaQuery.removeEventListener('change', handleChange)\n }, [])\n\n return prefersReducedMotion\n}\n"],"mappings":";;AAMA,SAAgB,IAA4B;CAC1C,IAAM,CAAC,GAAsB,KAA2B,QACtD,OAAO,SAAW,MAAc,OAAO,WAAW,mCAAmC,CAAC,UAAU,GACjG;AAcD,QAZA,QAAgB;EACd,IAAM,IAAa,OAAO,WAAW,mCAAmC;AACxE,IAAwB,EAAW,QAAQ;EAE3C,IAAM,KAAgB,MAA+B;AACnD,KAAwB,EAAM,QAAQ;;AAIxC,SADA,EAAW,iBAAiB,UAAU,EAAa,QACtC,EAAW,oBAAoB,UAAU,EAAa;IAClE,EAAE,CAAC,EAEC"}
1
+ {"version":3,"file":"useReducedMotion.js","names":[],"sources":["../../src/hooks/useReducedMotion.ts"],"sourcesContent":["import {useState, useEffect} from 'react'\n\n/**\n * Hook that returns true if the user prefers reduced motion.\n * Respects the prefers-reduced-motion media query.\n */\nexport function useReducedMotion(): boolean {\n const [prefersReducedMotion, setPrefersReducedMotion] = useState(() =>\n typeof window !== 'undefined' ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : false,\n )\n\n useEffect(() => {\n const mediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)')\n setPrefersReducedMotion(mediaQuery.matches)\n\n const handleChange = (event: MediaQueryListEvent) => {\n setPrefersReducedMotion(event.matches)\n }\n\n mediaQuery.addEventListener('change', handleChange)\n return () => mediaQuery.removeEventListener('change', handleChange)\n }, [])\n\n return prefersReducedMotion\n}\n"],"mappings":";;AAMA,SAAgB,IAA4B;CAC1C,IAAM,CAAC,GAAsB,KAA2B,QACtD,OAAO,SAAW,OAAc,OAAO,WAAW,kCAAkC,CAAC,CAAC,OACxF;CAcA,OAZA,QAAgB;EACd,IAAM,IAAa,OAAO,WAAW,kCAAkC;EACvE,EAAwB,EAAW,OAAO;EAE1C,IAAM,KAAgB,MAA+B;GACnD,EAAwB,EAAM,OAAO;EACvC;EAGA,OADA,EAAW,iBAAiB,UAAU,CAAY,SACrC,EAAW,oBAAoB,UAAU,CAAY;CACpE,GAAG,CAAC,CAAC,GAEE;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"useRef.js","names":[],"sources":["../../src/hooks/useRef.ts"],"sourcesContent":["import React, {useRef, useMemo} from 'react'\n\n/**\n * There are some situations where we only want to create a new ref if one is not provided to a component\n * or hook as a prop. However, due to the `rules-of-hooks`, we cannot conditionally make a call to `React.useRef`\n * only in the situations where the ref is not provided as a prop.\n * This hook aims to encapsulate that logic, so the consumer doesn't need to be concerned with violating `rules-of-hooks`.\n * @param providedRef The ref to use - can be a RefObject, RefCallback (functional ref), null or undefined.\n * @type TRef The type of the RefObject which should be created.\n * @returns A RefObject that either uses the provided ref, wraps a functional ref, or creates a new one\n */\nexport function useProvidedRefOrCreate<TRef>(\n providedRef?: React.RefObject<TRef> | React.RefCallback<TRef> | null,\n): React.RefObject<TRef> {\n const createdRef = useRef<TRef | null>(null)\n const wrapperRef = useRef<React.MutableRefObject<TRef | null> | null>(null)\n\n const finalRef = useMemo(() => {\n // Handle function refs\n // We wrap it in a MutableRefObject to ensure we can set the current value\n // and also call the callback with the latest value\n if (typeof providedRef === 'function') {\n if (!wrapperRef.current) {\n let currentVal: TRef | null = null\n\n wrapperRef.current = {\n get current() {\n return currentVal\n },\n set current(value: TRef | null) {\n currentVal = value\n\n providedRef(value)\n },\n }\n }\n return wrapperRef.current\n }\n\n wrapperRef.current = null\n\n // Return the provided ref if it's a RefObject\n if (providedRef && typeof providedRef === 'object' && providedRef.current !== undefined) {\n return providedRef\n }\n\n // Return a new ref if it's neither a function nor a RefObject\n return createdRef\n }, [providedRef, createdRef])\n\n return finalRef as React.RefObject<TRef>\n}\n"],"mappings":";;AAWA,SAAgB,EACd,GACuB;CACvB,IAAM,IAAa,EAAoB,KAAK,EACtC,IAAa,EAAmD,KAAK;AAmC3E,QAjCiB,QAAc;AAI7B,MAAI,OAAO,KAAgB,YAAY;AACrC,OAAI,CAAC,EAAW,SAAS;IACvB,IAAI,IAA0B;AAE9B,MAAW,UAAU;KACnB,IAAI,UAAU;AACZ,aAAO;;KAET,IAAI,QAAQ,GAAoB;AAG9B,MAFA,IAAa,GAEb,EAAY,EAAM;;KAErB;;AAEH,UAAO,EAAW;;AAWpB,SARA,EAAW,UAAU,MAGjB,KAAe,OAAO,KAAgB,YAAY,EAAY,YAAY,KAAA,IACrE,IAIF;IACN,CAAC,GAAa,EAAW,CAErB"}
1
+ {"version":3,"file":"useRef.js","names":[],"sources":["../../src/hooks/useRef.ts"],"sourcesContent":["import React, {useRef, useMemo} from 'react'\n\n/**\n * There are some situations where we only want to create a new ref if one is not provided to a component\n * or hook as a prop. However, due to the `rules-of-hooks`, we cannot conditionally make a call to `React.useRef`\n * only in the situations where the ref is not provided as a prop.\n * This hook aims to encapsulate that logic, so the consumer doesn't need to be concerned with violating `rules-of-hooks`.\n * @param providedRef The ref to use - can be a RefObject, RefCallback (functional ref), null or undefined.\n * @type TRef The type of the RefObject which should be created.\n * @returns A RefObject that either uses the provided ref, wraps a functional ref, or creates a new one\n */\nexport function useProvidedRefOrCreate<TRef>(\n providedRef?: React.RefObject<TRef> | React.RefCallback<TRef> | null,\n): React.RefObject<TRef> {\n const createdRef = useRef<TRef | null>(null)\n const wrapperRef = useRef<React.MutableRefObject<TRef | null> | null>(null)\n\n const finalRef = useMemo(() => {\n // Handle function refs\n // We wrap it in a MutableRefObject to ensure we can set the current value\n // and also call the callback with the latest value\n if (typeof providedRef === 'function') {\n if (!wrapperRef.current) {\n let currentVal: TRef | null = null\n\n wrapperRef.current = {\n get current() {\n return currentVal\n },\n set current(value: TRef | null) {\n currentVal = value\n\n providedRef(value)\n },\n }\n }\n return wrapperRef.current\n }\n\n wrapperRef.current = null\n\n // Return the provided ref if it's a RefObject\n if (providedRef && typeof providedRef === 'object' && providedRef.current !== undefined) {\n return providedRef\n }\n\n // Return a new ref if it's neither a function nor a RefObject\n return createdRef\n }, [providedRef, createdRef])\n\n return finalRef as React.RefObject<TRef>\n}\n"],"mappings":";;AAWA,SAAgB,EACd,GACuB;CACvB,IAAM,IAAa,EAAoB,IAAI,GACrC,IAAa,EAAmD,IAAI;CAmC1E,OAjCiB,QAAc;EAI7B,IAAI,OAAO,KAAgB,YAAY;GACrC,IAAI,CAAC,EAAW,SAAS;IACvB,IAAI,IAA0B;IAE9B,EAAW,UAAU;KACnB,IAAI,UAAU;MACZ,OAAO;KACT;KACA,IAAI,QAAQ,GAAoB;MAG9B,AAFA,IAAa,GAEb,EAAY,CAAK;KACnB;IACF;GACF;GACA,OAAO,EAAW;EACpB;EAUA,OARA,EAAW,UAAU,MAGjB,KAAe,OAAO,KAAgB,YAAY,EAAY,YAAY,KAAA,IACrE,IAIF;CACT,GAAG,CAAC,GAAa,CAAU,CAEpB;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"useResizeObserver.js","names":[],"sources":["../../src/hooks/useResizeObserver.ts"],"sourcesContent":["import {RefObject, useEffect, useRef} from 'react'\n\nexport type ResizeObserverCallback = (entries: ResizeObserverEntry[]) => void\n\nexport interface ResizeObserverEntry {\n contentRect: DOMRectReadOnly\n}\n\nexport function useResizeObserver<T extends HTMLElement>(\n callback: ResizeObserverCallback,\n target?: RefObject<T | null>,\n) {\n const savedCallback = useRef(callback)\n\n useEffect(() => {\n savedCallback.current = callback\n })\n\n useEffect(() => {\n const targetEl = target && 'current' in target ? target.current : document.documentElement\n if (!targetEl) {\n return\n }\n\n const observer = new ResizeObserver(entries => {\n savedCallback.current(entries)\n })\n\n observer.observe(targetEl)\n\n return () => {\n observer.disconnect()\n }\n }, [target])\n}\n"],"mappings":";;AAQA,SAAgB,EACd,GACA,GACA;CACA,IAAM,IAAgB,EAAO,EAAS;AAMtC,CAJA,QAAgB;AACd,IAAc,UAAU;GACxB,EAEF,QAAgB;EACd,IAAM,IAAW,KAAU,aAAa,IAAS,EAAO,UAAU,SAAS;AAC3E,MAAI,CAAC,EACH;EAGF,IAAM,IAAW,IAAI,gBAAe,MAAW;AAC7C,KAAc,QAAQ,EAAQ;IAC9B;AAIF,SAFA,EAAS,QAAQ,EAAS,QAEb;AACX,KAAS,YAAY;;IAEtB,CAAC,EAAO,CAAC"}
1
+ {"version":3,"file":"useResizeObserver.js","names":[],"sources":["../../src/hooks/useResizeObserver.ts"],"sourcesContent":["import {RefObject, useEffect, useRef} from 'react'\n\nexport type ResizeObserverCallback = (entries: ResizeObserverEntry[]) => void\n\nexport interface ResizeObserverEntry {\n contentRect: DOMRectReadOnly\n}\n\nexport function useResizeObserver<T extends HTMLElement>(\n callback: ResizeObserverCallback,\n target?: RefObject<T | null>,\n) {\n const savedCallback = useRef(callback)\n\n useEffect(() => {\n savedCallback.current = callback\n })\n\n useEffect(() => {\n const targetEl = target && 'current' in target ? target.current : document.documentElement\n if (!targetEl) {\n return\n }\n\n const observer = new ResizeObserver(entries => {\n savedCallback.current(entries)\n })\n\n observer.observe(targetEl)\n\n return () => {\n observer.disconnect()\n }\n }, [target])\n}\n"],"mappings":";;AAQA,SAAgB,EACd,GACA,GACA;CACA,IAAM,IAAgB,EAAO,CAAQ;CAMrC,AAJA,QAAgB;EACd,EAAc,UAAU;CAC1B,CAAC,GAED,QAAgB;EACd,IAAM,IAAW,KAAU,aAAa,IAAS,EAAO,UAAU,SAAS;EAC3E,IAAI,CAAC,GACH;EAGF,IAAM,IAAW,IAAI,gBAAe,MAAW;GAC7C,EAAc,QAAQ,CAAO;EAC/B,CAAC;EAID,OAFA,EAAS,QAAQ,CAAQ,SAEZ;GACX,EAAS,WAAW;EACtB;CACF,GAAG,CAAC,CAAM,CAAC;AACb"}
@@ -14,7 +14,7 @@ var i = ({ defaultTab: i, autoActivate: a = !0, orientation: o = "horizontal", o
14
14
  }, [s]), f = n(/* @__PURE__ */ new Map()), p = t((e) => `tabs-${c}-tab-${e}`, [c]), m = t((e) => `tabs-${c}-panel-${e}`, [c]), h = t((e, t) => {
15
15
  f.current.has(e) || (f.current.set(e, t), d((t) => ({
16
16
  ...t,
17
- tabs: new Set([...t.tabs, e]),
17
+ tabs: /* @__PURE__ */ new Set([...t.tabs, e]),
18
18
  activeTab: t.activeTab || e
19
19
  })));
20
20
  }, [d]), g = t((e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useTabs.js","names":[],"sources":["../../src/hooks/useTabs.ts"],"sourcesContent":["import {useCallback, useState, useRef, type KeyboardEvent, type MutableRefObject, type Ref} from 'react'\nimport {useId} from '../hooks/useId'\n\nexport type OnTabActivate = (id: string, activeTabRef?: HTMLElement) => void\n\ntype Orientation = 'horizontal' | 'vertical'\ntype TabId = `tabs-${string}-tab-${string}`\ntype TabPanelId = `tabs-${string}-panel-${string}`\n\nexport type UseTabsOptions = {\n defaultTab?: string\n autoActivate?: boolean\n onTabActivate?: OnTabActivate\n orientation?: Orientation\n}\n\nexport type TabState = {\n activeTab: string | null\n focusedTab: string | null\n tabs: Set<string>\n}\n\ntype TabListProps = {\n role: 'tablist'\n 'aria-orientation': Orientation\n}\n\ntype TabProps = {\n role: 'tab'\n id: TabId\n 'aria-controls': TabPanelId\n 'aria-selected': boolean\n tabIndex: 0 | -1\n onClick: () => void\n onKeyDown: (event: KeyboardEvent) => void\n onFocus: () => void\n ref: (element: HTMLElement | null) => void\n}\n\ntype TabPanelProps = {\n role: 'tabpanel'\n id: TabPanelId\n 'aria-labelledby': TabId\n hidden: boolean\n tabIndex: 0\n}\n\ntype LabelOrLabelledBy = {label: string; labelledBy?: never} | {labelledBy: string; label?: never}\n\nexport type UseTabs = {\n activeTab: string | null\n focusedTab: string | null\n activateTab: (id: string) => void\n focusTab: (id: string) => void\n getTabListProps: (props: LabelOrLabelledBy) => TabListProps\n getTabProps: <T extends HTMLElement = HTMLElement>(id: string, externalRef?: Ref<T>) => TabProps\n getTabPanelProps: (id: string) => TabPanelProps\n}\n\nexport const useTabs = ({\n defaultTab,\n autoActivate = true,\n orientation = 'horizontal',\n onTabActivate,\n}: UseTabsOptions = {}): UseTabs => {\n const uniqueId = useId()\n const [tabState, _setTabState] = useState<TabState>({\n activeTab: defaultTab || null,\n focusedTab: null,\n tabs: new Set(),\n })\n\n const setTabState = useCallback(\n (updater: (state: TabState) => TabState) => {\n _setTabState(prev => {\n const nextState = updater(prev)\n\n // Only call onTabActivate when activeTab changes from one tab to another (not on mount)\n if (nextState.activeTab && nextState.activeTab !== prev.activeTab && prev.activeTab !== null) {\n onTabActivate?.(nextState.activeTab, tabRefs.current.get(nextState.activeTab))\n }\n\n return nextState\n })\n },\n [onTabActivate],\n )\n\n // Refs to store tab elements for focus management\n const tabRefs = useRef<Map<string, HTMLElement>>(new Map())\n\n const getTabId = useCallback<(id: string) => TabId>(id => `tabs-${uniqueId}-tab-${id}`, [uniqueId])\n const getPanelId = useCallback<(id: string) => TabPanelId>(id => `tabs-${uniqueId}-panel-${id}`, [uniqueId])\n\n const registerTab = useCallback(\n (id: string, element: HTMLElement) => {\n if (tabRefs.current.has(id)) {\n return\n }\n\n tabRefs.current.set(id, element)\n setTabState(prev => ({\n ...prev,\n tabs: new Set([...prev.tabs, id]),\n activeTab: prev.activeTab || id, // Set as active if no active tab\n }))\n },\n [setTabState],\n )\n\n const focusTab = useCallback((id: string) => {\n tabRefs.current.get(id)?.focus()\n }, [])\n\n const activateTab = useCallback(\n (id: string) => {\n setTabState(prev => ({\n ...prev,\n activeTab: id,\n focusedTab: id,\n }))\n },\n [setTabState],\n )\n\n const getNextTabIndex = useCallback((index: number, tabs: string[]) => (index + 1) % tabs.length, [])\n const getPrevTabIndex = useCallback((index: number, tabs: string[]) => (index - 1 + tabs.length) % tabs.length, [])\n\n const onTabKeyDown = useCallback(\n (event: KeyboardEvent, id: string) => {\n const tabs = [...tabState.tabs]\n const currentIndex = tabs.indexOf(id)\n\n switch (true) {\n case event.key === 'ArrowLeft' && orientation === 'horizontal':\n case event.key === 'ArrowUp' && orientation === 'vertical': {\n event.preventDefault()\n const prevIndex = getPrevTabIndex(currentIndex, tabs)\n const prevTab = tabs[prevIndex]\n focusTab(prevTab)\n if (autoActivate) activateTab(prevTab)\n break\n }\n\n case event.key === 'ArrowRight' && orientation === 'horizontal':\n case event.key === 'ArrowDown' && orientation === 'vertical': {\n event.preventDefault()\n const nextIndex = getNextTabIndex(currentIndex, tabs)\n const nextTab = tabs[nextIndex]\n focusTab(nextTab)\n if (autoActivate) activateTab(nextTab)\n break\n }\n\n case event.key === 'Home': {\n event.preventDefault()\n focusTab(tabs[0])\n if (autoActivate) activateTab(tabs[0])\n break\n }\n\n case event.key === 'End': {\n event.preventDefault()\n focusTab(tabs[tabs.length - 1])\n if (autoActivate) activateTab(tabs[tabs.length - 1])\n break\n }\n\n case event.key === ' ':\n case event.key === 'Enter': {\n event.preventDefault()\n if (!autoActivate) activateTab(id)\n break\n }\n }\n },\n [tabState.tabs, orientation, getPrevTabIndex, focusTab, autoActivate, activateTab, getNextTabIndex],\n )\n\n const onTabClick = useCallback(\n (id: string) => {\n activateTab(id)\n },\n [activateTab],\n )\n\n const onTabFocus = useCallback(\n (id: string) => {\n setTabState(prev => {\n if (prev.focusedTab === id) {\n return prev\n }\n return {\n ...prev,\n focusedTab: id,\n }\n })\n },\n [setTabState],\n )\n\n const getTabListProps = useCallback<UseTabs['getTabListProps']>(\n ({label, labelledBy}) => ({\n role: 'tablist',\n 'aria-orientation': orientation,\n ...(label && {'aria-label': label}),\n ...(labelledBy && {'aria-labelledby': labelledBy}),\n }),\n [orientation],\n )\n\n const getTabProps = useCallback<UseTabs['getTabProps']>(\n <T extends HTMLElement = HTMLElement>(id: string, externalRef?: Ref<T>) => ({\n role: 'tab',\n id: getTabId(id),\n 'aria-controls': getPanelId(id),\n 'aria-selected': id === tabState.activeTab,\n tabIndex: id === tabState.activeTab ? 0 : -1,\n onClick: () => onTabClick(id),\n onKeyDown: (event: KeyboardEvent) => onTabKeyDown(event, id),\n onFocus: () => onTabFocus(id),\n ref: (element: HTMLElement | null) => {\n if (element) registerTab(id, element)\n\n if (!externalRef) return\n if (typeof externalRef === 'function') {\n externalRef(element as T | null)\n return\n }\n if ('current' in externalRef) {\n ;(externalRef as MutableRefObject<T | null>).current = element as T | null\n return\n }\n },\n }),\n [tabState.activeTab, getTabId, getPanelId, onTabClick, onTabKeyDown, onTabFocus, registerTab],\n )\n\n const getTabPanelProps = useCallback<UseTabs['getTabPanelProps']>(\n (id: string) => ({\n role: 'tabpanel',\n id: getPanelId(id),\n 'aria-labelledby': getTabId(id),\n hidden: id !== tabState.activeTab,\n tabIndex: 0,\n }),\n [tabState.activeTab, getPanelId, getTabId],\n )\n\n return {\n activeTab: tabState.activeTab,\n focusedTab: tabState.focusedTab,\n\n activateTab,\n focusTab,\n\n getTabListProps,\n getTabProps,\n getTabPanelProps,\n }\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"useTabs.js","names":[],"sources":["../../src/hooks/useTabs.ts"],"sourcesContent":["import {useCallback, useState, useRef, type KeyboardEvent, type MutableRefObject, type Ref} from 'react'\nimport {useId} from '../hooks/useId'\n\nexport type OnTabActivate = (id: string, activeTabRef?: HTMLElement) => void\n\ntype Orientation = 'horizontal' | 'vertical'\ntype TabId = `tabs-${string}-tab-${string}`\ntype TabPanelId = `tabs-${string}-panel-${string}`\n\nexport type UseTabsOptions = {\n defaultTab?: string\n autoActivate?: boolean\n onTabActivate?: OnTabActivate\n orientation?: Orientation\n}\n\nexport type TabState = {\n activeTab: string | null\n focusedTab: string | null\n tabs: Set<string>\n}\n\ntype TabListProps = {\n role: 'tablist'\n 'aria-orientation': Orientation\n}\n\ntype TabProps = {\n role: 'tab'\n id: TabId\n 'aria-controls': TabPanelId\n 'aria-selected': boolean\n tabIndex: 0 | -1\n onClick: () => void\n onKeyDown: (event: KeyboardEvent) => void\n onFocus: () => void\n ref: (element: HTMLElement | null) => void\n}\n\ntype TabPanelProps = {\n role: 'tabpanel'\n id: TabPanelId\n 'aria-labelledby': TabId\n hidden: boolean\n tabIndex: 0\n}\n\ntype LabelOrLabelledBy = {label: string; labelledBy?: never} | {labelledBy: string; label?: never}\n\nexport type UseTabs = {\n activeTab: string | null\n focusedTab: string | null\n activateTab: (id: string) => void\n focusTab: (id: string) => void\n getTabListProps: (props: LabelOrLabelledBy) => TabListProps\n getTabProps: <T extends HTMLElement = HTMLElement>(id: string, externalRef?: Ref<T>) => TabProps\n getTabPanelProps: (id: string) => TabPanelProps\n}\n\nexport const useTabs = ({\n defaultTab,\n autoActivate = true,\n orientation = 'horizontal',\n onTabActivate,\n}: UseTabsOptions = {}): UseTabs => {\n const uniqueId = useId()\n const [tabState, _setTabState] = useState<TabState>({\n activeTab: defaultTab || null,\n focusedTab: null,\n tabs: new Set(),\n })\n\n const setTabState = useCallback(\n (updater: (state: TabState) => TabState) => {\n _setTabState(prev => {\n const nextState = updater(prev)\n\n // Only call onTabActivate when activeTab changes from one tab to another (not on mount)\n if (nextState.activeTab && nextState.activeTab !== prev.activeTab && prev.activeTab !== null) {\n onTabActivate?.(nextState.activeTab, tabRefs.current.get(nextState.activeTab))\n }\n\n return nextState\n })\n },\n [onTabActivate],\n )\n\n // Refs to store tab elements for focus management\n const tabRefs = useRef<Map<string, HTMLElement>>(new Map())\n\n const getTabId = useCallback<(id: string) => TabId>(id => `tabs-${uniqueId}-tab-${id}`, [uniqueId])\n const getPanelId = useCallback<(id: string) => TabPanelId>(id => `tabs-${uniqueId}-panel-${id}`, [uniqueId])\n\n const registerTab = useCallback(\n (id: string, element: HTMLElement) => {\n if (tabRefs.current.has(id)) {\n return\n }\n\n tabRefs.current.set(id, element)\n setTabState(prev => ({\n ...prev,\n tabs: new Set([...prev.tabs, id]),\n activeTab: prev.activeTab || id, // Set as active if no active tab\n }))\n },\n [setTabState],\n )\n\n const focusTab = useCallback((id: string) => {\n tabRefs.current.get(id)?.focus()\n }, [])\n\n const activateTab = useCallback(\n (id: string) => {\n setTabState(prev => ({\n ...prev,\n activeTab: id,\n focusedTab: id,\n }))\n },\n [setTabState],\n )\n\n const getNextTabIndex = useCallback((index: number, tabs: string[]) => (index + 1) % tabs.length, [])\n const getPrevTabIndex = useCallback((index: number, tabs: string[]) => (index - 1 + tabs.length) % tabs.length, [])\n\n const onTabKeyDown = useCallback(\n (event: KeyboardEvent, id: string) => {\n const tabs = [...tabState.tabs]\n const currentIndex = tabs.indexOf(id)\n\n switch (true) {\n case event.key === 'ArrowLeft' && orientation === 'horizontal':\n case event.key === 'ArrowUp' && orientation === 'vertical': {\n event.preventDefault()\n const prevIndex = getPrevTabIndex(currentIndex, tabs)\n const prevTab = tabs[prevIndex]\n focusTab(prevTab)\n if (autoActivate) activateTab(prevTab)\n break\n }\n\n case event.key === 'ArrowRight' && orientation === 'horizontal':\n case event.key === 'ArrowDown' && orientation === 'vertical': {\n event.preventDefault()\n const nextIndex = getNextTabIndex(currentIndex, tabs)\n const nextTab = tabs[nextIndex]\n focusTab(nextTab)\n if (autoActivate) activateTab(nextTab)\n break\n }\n\n case event.key === 'Home': {\n event.preventDefault()\n focusTab(tabs[0])\n if (autoActivate) activateTab(tabs[0])\n break\n }\n\n case event.key === 'End': {\n event.preventDefault()\n focusTab(tabs[tabs.length - 1])\n if (autoActivate) activateTab(tabs[tabs.length - 1])\n break\n }\n\n case event.key === ' ':\n case event.key === 'Enter': {\n event.preventDefault()\n if (!autoActivate) activateTab(id)\n break\n }\n }\n },\n [tabState.tabs, orientation, getPrevTabIndex, focusTab, autoActivate, activateTab, getNextTabIndex],\n )\n\n const onTabClick = useCallback(\n (id: string) => {\n activateTab(id)\n },\n [activateTab],\n )\n\n const onTabFocus = useCallback(\n (id: string) => {\n setTabState(prev => {\n if (prev.focusedTab === id) {\n return prev\n }\n return {\n ...prev,\n focusedTab: id,\n }\n })\n },\n [setTabState],\n )\n\n const getTabListProps = useCallback<UseTabs['getTabListProps']>(\n ({label, labelledBy}) => ({\n role: 'tablist',\n 'aria-orientation': orientation,\n ...(label && {'aria-label': label}),\n ...(labelledBy && {'aria-labelledby': labelledBy}),\n }),\n [orientation],\n )\n\n const getTabProps = useCallback<UseTabs['getTabProps']>(\n <T extends HTMLElement = HTMLElement>(id: string, externalRef?: Ref<T>) => ({\n role: 'tab',\n id: getTabId(id),\n 'aria-controls': getPanelId(id),\n 'aria-selected': id === tabState.activeTab,\n tabIndex: id === tabState.activeTab ? 0 : -1,\n onClick: () => onTabClick(id),\n onKeyDown: (event: KeyboardEvent) => onTabKeyDown(event, id),\n onFocus: () => onTabFocus(id),\n ref: (element: HTMLElement | null) => {\n if (element) registerTab(id, element)\n\n if (!externalRef) return\n if (typeof externalRef === 'function') {\n externalRef(element as T | null)\n return\n }\n if ('current' in externalRef) {\n ;(externalRef as MutableRefObject<T | null>).current = element as T | null\n return\n }\n },\n }),\n [tabState.activeTab, getTabId, getPanelId, onTabClick, onTabKeyDown, onTabFocus, registerTab],\n )\n\n const getTabPanelProps = useCallback<UseTabs['getTabPanelProps']>(\n (id: string) => ({\n role: 'tabpanel',\n id: getPanelId(id),\n 'aria-labelledby': getTabId(id),\n hidden: id !== tabState.activeTab,\n tabIndex: 0,\n }),\n [tabState.activeTab, getPanelId, getTabId],\n )\n\n return {\n activeTab: tabState.activeTab,\n focusedTab: tabState.focusedTab,\n\n activateTab,\n focusTab,\n\n getTabListProps,\n getTabProps,\n getTabPanelProps,\n }\n}\n"],"mappings":"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"}
@@ -33,24 +33,24 @@ function r() {
33
33
  }, []), n;
34
34
  }
35
35
  var i = (e) => {
36
- let t = n.XXLARGE;
36
+ let t = "xxlarge";
37
37
  switch (!0) {
38
38
  case e >= 320 && e < 544:
39
- t = n.XSMALL;
39
+ t = "xsmall";
40
40
  break;
41
41
  case e >= 544 && e < 768:
42
- t = n.SMALL;
42
+ t = "small";
43
43
  break;
44
44
  case e >= 768 && e < 1012:
45
- t = n.MEDIUM;
45
+ t = "medium";
46
46
  break;
47
47
  case e >= 1012 && e < 1280:
48
- t = n.LARGE;
48
+ t = "large";
49
49
  break;
50
50
  case e >= 1280 && e < 1440:
51
- t = n.XLARGE;
51
+ t = "xlarge";
52
52
  break;
53
- default: t = n.XXLARGE;
53
+ default: t = "xxlarge";
54
54
  }
55
55
  return t;
56
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useWindowSize.js","names":[],"sources":["../../src/hooks/useWindowSize.ts"],"sourcesContent":["import {useState, useEffect} from 'react'\n\nexport enum BreakpointSize {\n XSMALL = 'xsmall',\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n XLARGE = 'xlarge',\n XXLARGE = 'xxlarge',\n}\n\ntype WindowSize = {\n width?: number\n height?: number\n isXSmall?: boolean\n isSmall?: boolean\n isMedium?: boolean\n isLarge?: boolean\n isXLarge?: boolean\n isXXLarge?: boolean\n currentBreakpointSize?: BreakpointSize\n}\n\nexport function useWindowSize() {\n const [windowSize, setWindowSize] = useState<WindowSize>({\n width: undefined, // undefined to avoid client/server mismatch on initial mount\n height: undefined, // undefined to avoid client/server mismatch on initial mount,\n isXSmall: undefined, // undefined to avoid client/server mismatch on initial mount,\n isSmall: undefined, // undefined to avoid client/server mismatch on initial mount,\n isMedium: undefined, // undefined to avoid client/server mismatch on initial mount,\n isLarge: undefined, // undefined to avoid client/server mismatch on initial mount,\n isXLarge: undefined, // undefined to avoid client/server mismatch on initial mount,\n isXXLarge: undefined, // undefined to avoid client/server mismatch on initial mount,\n currentBreakpointSize: undefined, // undefined to avoid client/server mismatch on initial mount,\n })\n\n useEffect(() => {\n // should only execute all the code below on client\n function handleResize() {\n setWindowSize({\n width: window.innerWidth,\n height: window.innerHeight,\n /*\n * Maps to large breakpoint\n * TODO: replace with design token. Requires remToPx util.\n */\n isXSmall: window.innerWidth >= 320,\n isSmall: window.innerWidth >= 544,\n isMedium: window.innerWidth >= 768,\n isLarge: window.innerWidth >= 1012,\n isXLarge: window.innerWidth >= 1280,\n isXXLarge: window.innerWidth >= 1440,\n currentBreakpointSize: breakpointSwitch(window.innerWidth),\n })\n }\n\n // eslint-disable-next-line github/prefer-observers\n window.addEventListener('resize', handleResize)\n\n handleResize()\n\n return () => window.removeEventListener('resize', handleResize)\n }, [])\n\n return windowSize\n}\n\nconst breakpointSwitch = (value: number) => {\n let current = BreakpointSize.XXLARGE\n switch (true) {\n case value >= 320 && value < 544:\n current = BreakpointSize.XSMALL\n break\n case value >= 544 && value < 768:\n current = BreakpointSize.SMALL\n break\n case value >= 768 && value < 1012:\n current = BreakpointSize.MEDIUM\n break\n case value >= 1012 && value < 1280:\n current = BreakpointSize.LARGE\n break\n case value >= 1280 && value < 1440:\n current = BreakpointSize.XLARGE\n break\n default:\n current = BreakpointSize.XXLARGE\n }\n return current\n}\n"],"mappings":";;AAEA,IAAY,IAAL,yBAAA,GAAA;QACL,EAAA,SAAS,UACT,EAAA,QAAQ,SACR,EAAA,SAAS,UACT,EAAA,QAAQ,SACR,EAAA,SAAS,UACT,EAAA,UAAU;KACX;AAcD,SAAgB,IAAgB;CAC9B,IAAM,CAAC,GAAY,KAAiB,EAAqB;EACvD,OAAO,KAAA;EACP,QAAQ,KAAA;EACR,UAAU,KAAA;EACV,SAAS,KAAA;EACT,UAAU,KAAA;EACV,SAAS,KAAA;EACT,UAAU,KAAA;EACV,WAAW,KAAA;EACX,uBAAuB,KAAA;EACxB,CAAC;AA8BF,QA5BA,QAAgB;EAEd,SAAS,IAAe;AACtB,KAAc;IACZ,OAAO,OAAO;IACd,QAAQ,OAAO;IAKf,UAAU,OAAO,cAAc;IAC/B,SAAS,OAAO,cAAc;IAC9B,UAAU,OAAO,cAAc;IAC/B,SAAS,OAAO,cAAc;IAC9B,UAAU,OAAO,cAAc;IAC/B,WAAW,OAAO,cAAc;IAChC,uBAAuB,EAAiB,OAAO,WAAW;IAC3D,CAAC;;AAQJ,SAJA,OAAO,iBAAiB,UAAU,EAAa,EAE/C,GAAc,QAED,OAAO,oBAAoB,UAAU,EAAa;IAC9D,EAAE,CAAC,EAEC;;AAGT,IAAM,KAAoB,MAAkB;CAC1C,IAAI,IAAU,EAAe;AAC7B,SAAQ,IAAR;EACE,KAAK,KAAS,OAAO,IAAQ;AAC3B,OAAU,EAAe;AACzB;EACF,KAAK,KAAS,OAAO,IAAQ;AAC3B,OAAU,EAAe;AACzB;EACF,KAAK,KAAS,OAAO,IAAQ;AAC3B,OAAU,EAAe;AACzB;EACF,KAAK,KAAS,QAAQ,IAAQ;AAC5B,OAAU,EAAe;AACzB;EACF,KAAK,KAAS,QAAQ,IAAQ;AAC5B,OAAU,EAAe;AACzB;EACF,QACE,KAAU,EAAe;;AAE7B,QAAO"}
1
+ {"version":3,"file":"useWindowSize.js","names":[],"sources":["../../src/hooks/useWindowSize.ts"],"sourcesContent":["import {useState, useEffect} from 'react'\n\nexport enum BreakpointSize {\n XSMALL = 'xsmall',\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n XLARGE = 'xlarge',\n XXLARGE = 'xxlarge',\n}\n\ntype WindowSize = {\n width?: number\n height?: number\n isXSmall?: boolean\n isSmall?: boolean\n isMedium?: boolean\n isLarge?: boolean\n isXLarge?: boolean\n isXXLarge?: boolean\n currentBreakpointSize?: BreakpointSize\n}\n\nexport function useWindowSize() {\n const [windowSize, setWindowSize] = useState<WindowSize>({\n width: undefined, // undefined to avoid client/server mismatch on initial mount\n height: undefined, // undefined to avoid client/server mismatch on initial mount,\n isXSmall: undefined, // undefined to avoid client/server mismatch on initial mount,\n isSmall: undefined, // undefined to avoid client/server mismatch on initial mount,\n isMedium: undefined, // undefined to avoid client/server mismatch on initial mount,\n isLarge: undefined, // undefined to avoid client/server mismatch on initial mount,\n isXLarge: undefined, // undefined to avoid client/server mismatch on initial mount,\n isXXLarge: undefined, // undefined to avoid client/server mismatch on initial mount,\n currentBreakpointSize: undefined, // undefined to avoid client/server mismatch on initial mount,\n })\n\n useEffect(() => {\n // should only execute all the code below on client\n function handleResize() {\n setWindowSize({\n width: window.innerWidth,\n height: window.innerHeight,\n /*\n * Maps to large breakpoint\n * TODO: replace with design token. Requires remToPx util.\n */\n isXSmall: window.innerWidth >= 320,\n isSmall: window.innerWidth >= 544,\n isMedium: window.innerWidth >= 768,\n isLarge: window.innerWidth >= 1012,\n isXLarge: window.innerWidth >= 1280,\n isXXLarge: window.innerWidth >= 1440,\n currentBreakpointSize: breakpointSwitch(window.innerWidth),\n })\n }\n\n // eslint-disable-next-line github/prefer-observers\n window.addEventListener('resize', handleResize)\n\n handleResize()\n\n return () => window.removeEventListener('resize', handleResize)\n }, [])\n\n return windowSize\n}\n\nconst breakpointSwitch = (value: number) => {\n let current = BreakpointSize.XXLARGE\n switch (true) {\n case value >= 320 && value < 544:\n current = BreakpointSize.XSMALL\n break\n case value >= 544 && value < 768:\n current = BreakpointSize.SMALL\n break\n case value >= 768 && value < 1012:\n current = BreakpointSize.MEDIUM\n break\n case value >= 1012 && value < 1280:\n current = BreakpointSize.LARGE\n break\n case value >= 1280 && value < 1440:\n current = BreakpointSize.XLARGE\n break\n default:\n current = BreakpointSize.XXLARGE\n }\n return current\n}\n"],"mappings":";;AAEA,IAAY,IAAL,yBAAA,GAAA;QACL,EAAA,SAAA,UACA,EAAA,QAAA,SACA,EAAA,SAAA,UACA,EAAA,QAAA,SACA,EAAA,SAAA,UACA,EAAA,UAAA;AACF,EAAA,CAAA,CAAA;AAcA,SAAgB,IAAgB;CAC9B,IAAM,CAAC,GAAY,KAAiB,EAAqB;EACvD,OAAO,KAAA;EACP,QAAQ,KAAA;EACR,UAAU,KAAA;EACV,SAAS,KAAA;EACT,UAAU,KAAA;EACV,SAAS,KAAA;EACT,UAAU,KAAA;EACV,WAAW,KAAA;EACX,uBAAuB,KAAA;CACzB,CAAC;CA8BD,OA5BA,QAAgB;EAEd,SAAS,IAAe;GACtB,EAAc;IACZ,OAAO,OAAO;IACd,QAAQ,OAAO;IAKf,UAAU,OAAO,cAAc;IAC/B,SAAS,OAAO,cAAc;IAC9B,UAAU,OAAO,cAAc;IAC/B,SAAS,OAAO,cAAc;IAC9B,UAAU,OAAO,cAAc;IAC/B,WAAW,OAAO,cAAc;IAChC,uBAAuB,EAAiB,OAAO,UAAU;GAC3D,CAAC;EACH;EAOA,OAJA,OAAO,iBAAiB,UAAU,CAAY,GAE9C,EAAa,SAEA,OAAO,oBAAoB,UAAU,CAAY;CAChE,GAAG,CAAC,CAAC,GAEE;AACT;AAEA,IAAM,KAAoB,MAAkB;CAC1C,IAAI,IAAA;CACJ,QAAQ,IAAR;EACE,KAAK,KAAS,OAAO,IAAQ;GAC3B,IAAA;GACA;EACF,KAAK,KAAS,OAAO,IAAQ;GAC3B,IAAA;GACA;EACF,KAAK,KAAS,OAAO,IAAQ;GAC3B,IAAA;GACA;EACF,KAAK,KAAS,QAAQ,IAAQ;GAC5B,IAAA;GACA;EACF,KAAK,KAAS,QAAQ,IAAQ;GAC5B,IAAA;GACA;EACF,SACE,IAAA;CACJ;CACA,OAAO;AACT"}
@@ -1,6 +1,8 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { Text as t } from "../../Text/Text.js";
3
- import { CheckIcon as n, DashIcon as r, XIcon as i } from "../../node_modules/@primer/octicons-react/dist/index.esm.js";
3
+ import { CheckIcon as n } from "../../node_modules/@primer/octicons-react/dist/icons/CheckIcon.js";
4
+ import { DashIcon as r } from "../../node_modules/@primer/octicons-react/dist/icons/DashIcon.js";
5
+ import { XIcon as i } from "../../node_modules/@primer/octicons-react/dist/icons/XIcon.js";
4
6
  import { ListContext as a } from "../listContext.js";
5
7
  import o from "./ListItem.module.js";
6
8
  import { useContext as s } from "react";
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","names":[],"sources":["../../../src/list/ListItem/ListItem.tsx"],"sourcesContent":["import React, {type Ref, useContext} from 'react'\nimport {clsx} from 'clsx'\nimport {CheckIcon, DashIcon, type Icon, type IconProps, XIcon} from '@primer/octicons-react'\nimport {Text, TextProps} from '../../Text'\nimport type {BaseProps} from '../../component-helpers'\nimport {ListContext} from '../listContext'\n\nimport styles from './ListItem.module.css'\n\nexport type ListItemProps = BaseProps<HTMLElement> & {\n /**\n * React.ReactNode and React.ReactNode[] are valid children.\n */\n children?: React.ReactNode | React.ReactNode[]\n /**\n * The ref object to be attached to the list item.\n */\n ref?: Ref<HTMLLIElement>\n /*\n * Custom icon to be used as leading visual\n */\n leadingVisual?: Icon\n /*\n * Color of leading icon\n */\n leadingVisualFill?: IconProps['fill']\n /*\n * Aria label for the leading visual\n */\n leadingVisualAriaLabel?: string\n} & Pick<TextProps, 'variant'>\n\nfunction Root({\n className,\n children,\n leadingVisualFill,\n leadingVisual: LeadingVisual,\n leadingVisualAriaLabel,\n variant: textVariant = 'default',\n ...props\n}: ListItemProps) {\n const {variant} = useContext(ListContext)\n\n const _leadingVisual = () => {\n const iconProps = {\n fill: leadingVisualFill,\n 'aria-label': leadingVisualAriaLabel,\n ...(leadingVisualFill && {style: {fill: leadingVisualFill}}),\n }\n\n if (LeadingVisual) {\n return (\n <LeadingVisual\n className={clsx(\n styles['ListItem__leading-visual'],\n !leadingVisualFill && styles['ListItem__leading-visual--muted'],\n )}\n {...iconProps}\n />\n )\n }\n\n switch (variant) {\n case 'checked':\n return (\n <CheckIcon\n className={clsx(\n styles['ListItem__leading-visual'],\n styles['ListItem__checked'],\n !leadingVisualFill && styles['ListItem__leading-visual--muted'],\n )}\n {...iconProps}\n />\n )\n case 'x':\n return (\n <XIcon\n className={clsx(\n styles['ListItem__leading-visual'],\n styles['ListItem__x'],\n !leadingVisualFill && styles['ListItem__leading-visual--muted'],\n )}\n {...iconProps}\n />\n )\n case 'default':\n return (\n <DashIcon\n className={clsx(\n styles['ListItem__leading-visual'],\n styles['ListItem__default'],\n !leadingVisualFill && styles['ListItem__leading-visual--muted'],\n )}\n {...iconProps}\n />\n )\n\n default:\n return null\n }\n }\n\n return (\n <li className={clsx(styles.ListItem, !variant && styles.OrderedList__item, className)} {...props}>\n {_leadingVisual()}\n <Text as=\"span\" variant={textVariant} className={clsx(styles[`ListItem--${textVariant}`])}>\n {children}\n </Text>\n </li>\n )\n}\n\nexport const ListItem = Object.assign(Root)\n"],"mappings":";;;;;;;;AAgCA,SAAS,EAAK,EACZ,cACA,aACA,sBACA,eAAe,GACf,2BACA,SAAS,IAAc,WACvB,GAAG,KACa;CAChB,IAAM,EAAC,eAAW,EAAW,EAAY,EAEnC,UAAuB;EAC3B,IAAM,IAAY;GAChB,MAAM;GACN,cAAc;GACd,GAAI,KAAqB,EAAC,OAAO,EAAC,MAAM,GAAkB,EAAC;GAC5D;AAED,MAAI,EACF,QACE,kBAAC,GAAD;GACE,WAAW,EACT,EAAO,6BACP,CAAC,KAAqB,EAAO,mCAC9B;GACD,GAAI;GACJ,CAAA;AAIN,UAAQ,GAAR;GACE,KAAK,UACH,QACE,kBAAC,GAAD;IACE,WAAW,EACT,EAAO,6BACP,EAAO,mBACP,CAAC,KAAqB,EAAO,mCAC9B;IACD,GAAI;IACJ,CAAA;GAEN,KAAK,IACH,QACE,kBAAC,GAAD;IACE,WAAW,EACT,EAAO,6BACP,EAAO,aACP,CAAC,KAAqB,EAAO,mCAC9B;IACD,GAAI;IACJ,CAAA;GAEN,KAAK,UACH,QACE,kBAAC,GAAD;IACE,WAAW,EACT,EAAO,6BACP,EAAO,mBACP,CAAC,KAAqB,EAAO,mCAC9B;IACD,GAAI;IACJ,CAAA;GAGN,QACE,QAAO;;;AAIb,QACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAO,UAAU,CAAC,KAAW,EAAO,mBAAmB,EAAU;EAAE,GAAI;YAA3F,CACG,GAAgB,EACjB,kBAAC,GAAD;GAAM,IAAG;GAAO,SAAS;GAAa,WAAW,EAAK,EAAO,aAAa,KAAe;GACtF;GACI,CAAA,CACJ;;;AAIT,IAAa,IAAW,OAAO,OAAO,EAAK"}
1
+ {"version":3,"file":"ListItem.js","names":[],"sources":["../../../src/list/ListItem/ListItem.tsx"],"sourcesContent":["import React, {type Ref, useContext} from 'react'\nimport {clsx} from 'clsx'\nimport {CheckIcon, DashIcon, type Icon, type IconProps, XIcon} from '@primer/octicons-react'\nimport {Text, TextProps} from '../../Text'\nimport type {BaseProps} from '../../component-helpers'\nimport {ListContext} from '../listContext'\n\nimport styles from './ListItem.module.css'\n\nexport type ListItemProps = BaseProps<HTMLElement> & {\n /**\n * React.ReactNode and React.ReactNode[] are valid children.\n */\n children?: React.ReactNode | React.ReactNode[]\n /**\n * The ref object to be attached to the list item.\n */\n ref?: Ref<HTMLLIElement>\n /*\n * Custom icon to be used as leading visual\n */\n leadingVisual?: Icon\n /*\n * Color of leading icon\n */\n leadingVisualFill?: IconProps['fill']\n /*\n * Aria label for the leading visual\n */\n leadingVisualAriaLabel?: string\n} & Pick<TextProps, 'variant'>\n\nfunction Root({\n className,\n children,\n leadingVisualFill,\n leadingVisual: LeadingVisual,\n leadingVisualAriaLabel,\n variant: textVariant = 'default',\n ...props\n}: ListItemProps) {\n const {variant} = useContext(ListContext)\n\n const _leadingVisual = () => {\n const iconProps = {\n fill: leadingVisualFill,\n 'aria-label': leadingVisualAriaLabel,\n ...(leadingVisualFill && {style: {fill: leadingVisualFill}}),\n }\n\n if (LeadingVisual) {\n return (\n <LeadingVisual\n className={clsx(\n styles['ListItem__leading-visual'],\n !leadingVisualFill && styles['ListItem__leading-visual--muted'],\n )}\n {...iconProps}\n />\n )\n }\n\n switch (variant) {\n case 'checked':\n return (\n <CheckIcon\n className={clsx(\n styles['ListItem__leading-visual'],\n styles['ListItem__checked'],\n !leadingVisualFill && styles['ListItem__leading-visual--muted'],\n )}\n {...iconProps}\n />\n )\n case 'x':\n return (\n <XIcon\n className={clsx(\n styles['ListItem__leading-visual'],\n styles['ListItem__x'],\n !leadingVisualFill && styles['ListItem__leading-visual--muted'],\n )}\n {...iconProps}\n />\n )\n case 'default':\n return (\n <DashIcon\n className={clsx(\n styles['ListItem__leading-visual'],\n styles['ListItem__default'],\n !leadingVisualFill && styles['ListItem__leading-visual--muted'],\n )}\n {...iconProps}\n />\n )\n\n default:\n return null\n }\n }\n\n return (\n <li className={clsx(styles.ListItem, !variant && styles.OrderedList__item, className)} {...props}>\n {_leadingVisual()}\n <Text as=\"span\" variant={textVariant} className={clsx(styles[`ListItem--${textVariant}`])}>\n {children}\n </Text>\n </li>\n )\n}\n\nexport const ListItem = Object.assign(Root)\n"],"mappings":";;;;;;;;;;AAgCA,SAAS,EAAK,EACZ,cACA,aACA,sBACA,eAAe,GACf,2BACA,SAAS,IAAc,WACvB,GAAG,KACa;CAChB,IAAM,EAAC,eAAW,EAAW,CAAW,GAElC,UAAuB;EAC3B,IAAM,IAAY;GAChB,MAAM;GACN,cAAc;GACd,GAAI,KAAqB,EAAC,OAAO,EAAC,MAAM,EAAiB,EAAC;EAC5D;EAEA,IAAI,GACF,OACE,kBAAC,GAAD;GACE,WAAW,EACT,EAAO,6BACP,CAAC,KAAqB,EAAO,kCAC/B;GACA,GAAI;EACL,CAAA;EAIL,QAAQ,GAAR;GACE,KAAK,WACH,OACE,kBAAC,GAAD;IACE,WAAW,EACT,EAAO,6BACP,EAAO,mBACP,CAAC,KAAqB,EAAO,kCAC/B;IACA,GAAI;GACL,CAAA;GAEL,KAAK,KACH,OACE,kBAAC,GAAD;IACE,WAAW,EACT,EAAO,6BACP,EAAO,aACP,CAAC,KAAqB,EAAO,kCAC/B;IACA,GAAI;GACL,CAAA;GAEL,KAAK,WACH,OACE,kBAAC,GAAD;IACE,WAAW,EACT,EAAO,6BACP,EAAO,mBACP,CAAC,KAAqB,EAAO,kCAC/B;IACA,GAAI;GACL,CAAA;GAGL,SACE,OAAO;EACX;CACF;CAEA,OACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAO,UAAU,CAAC,KAAW,EAAO,mBAAmB,CAAS;EAAG,GAAI;YAA3F,CACG,EAAe,GAChB,kBAAC,GAAD;GAAM,IAAG;GAAO,SAAS;GAAa,WAAW,EAAK,EAAO,aAAa,IAAc;GACrF;EACG,CAAA,CACJ;;AAER;AAEA,IAAa,IAAW,OAAO,OAAO,CAAI"}
@@ -1,12 +1,13 @@
1
- import './ListItem.module-CtD-ZiWp.css';var e = {
2
- ListItem: "Primer_Brand__ListItem-module__ListItem___gaMoG",
1
+ import './ListItem.module-CtD-ZiWp.css';//#region src/list/ListItem/ListItem.module.css
2
+ var e = "Primer_Brand__ListItem-module__ListItem___gaMoG", t = "Primer_Brand__ListItem-module__OrderedList__item___pg7p3", n = {
3
+ ListItem: e,
3
4
  "ListItem--default": "Primer_Brand__ListItem-module__ListItem--default___lToMr",
4
5
  "ListItem--muted": "Primer_Brand__ListItem-module__ListItem--muted___CM_5l",
5
6
  "ListItem__leading-visual": "Primer_Brand__ListItem-module__ListItem__leading-visual___b6jlG",
6
7
  "ListItem__leading-visual--muted": "Primer_Brand__ListItem-module__ListItem__leading-visual--muted___qNtEm",
7
- OrderedList__item: "Primer_Brand__ListItem-module__OrderedList__item___pg7p3"
8
+ OrderedList__item: t
8
9
  };
9
10
  //#endregion
10
- export { e as default };
11
+ export { e as ListItem, t as OrderedList__item, n as default };
11
12
 
12
13
  //# sourceMappingURL=ListItem.module.js.map
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import type { BaseProps } from '../../component-helpers';
3
3
  export type OrderedListProps = PropsWithChildren<BaseProps<HTMLOListElement>>;
4
- declare function Root({ children, ...props }: OrderedListProps): import("react/jsx-runtime").JSX.Element;
4
+ declare function Root({ children, ...props }: OrderedListProps): React.JSX.Element;
5
5
  export declare const OrderedList: typeof Root & {
6
6
  Item: any;
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OrderedList.d.ts","sourceRoot":"","sources":["../../../src/list/OrderedList/OrderedList.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AAOtD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAE7E,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,gBAAgB,2CAMnD;AAED,eAAO,MAAM,WAAW;;CAAwC,CAAA"}
1
+ {"version":3,"file":"OrderedList.d.ts","sourceRoot":"","sources":["../../../src/list/OrderedList/OrderedList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AAOtD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAE7E,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,gBAAgB,qBAMnD;AAED,eAAO,MAAM,WAAW;;CAAwC,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 { ListContext as t } from "../listContext.js";
3
3
  import { ListItem as n } from "../ListItem/ListItem.js";
4
4
  import r from "../list-shared.module.js";
@@ -1 +1 @@
1
- {"version":3,"file":"OrderedList.js","names":[],"sources":["../../../src/list/OrderedList/OrderedList.tsx"],"sourcesContent":["import React, {PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../../component-helpers'\nimport {ListContext} from '../listContext'\nimport {ListItem} from '../ListItem/ListItem'\n\nimport baseStyles from '../list-shared.module.css'\nimport styles from './OrderedList.module.css'\n\nexport type OrderedListProps = PropsWithChildren<BaseProps<HTMLOListElement>>\n\nfunction Root({children, ...props}: OrderedListProps) {\n return (\n <ol className={clsx(baseStyles.List, styles.OrderedList, props.className)} {...props}>\n <ListContext.Provider value={{variant: ''}}>{children}</ListContext.Provider>\n </ol>\n )\n}\n\nexport const OrderedList = Object.assign(Root, {Item: ListItem})\n"],"mappings":";;;;;;;;AAWA,SAAS,EAAK,EAAC,aAAU,GAAG,KAA0B;AACpD,QACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAW,MAAM,EAAO,aAAa,EAAM,UAAU;EAAE,GAAI;YAC7E,kBAAC,EAAY,UAAb;GAAsB,OAAO,EAAC,SAAS,IAAG;GAAG;GAAgC,CAAA;EAC1E,CAAA;;AAIT,IAAa,IAAc,OAAO,OAAO,GAAM,EAAC,MAAM,GAAS,CAAC"}
1
+ {"version":3,"file":"OrderedList.js","names":[],"sources":["../../../src/list/OrderedList/OrderedList.tsx"],"sourcesContent":["import React, {PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../../component-helpers'\nimport {ListContext} from '../listContext'\nimport {ListItem} from '../ListItem/ListItem'\n\nimport baseStyles from '../list-shared.module.css'\nimport styles from './OrderedList.module.css'\n\nexport type OrderedListProps = PropsWithChildren<BaseProps<HTMLOListElement>>\n\nfunction Root({children, ...props}: OrderedListProps) {\n return (\n <ol className={clsx(baseStyles.List, styles.OrderedList, props.className)} {...props}>\n <ListContext.Provider value={{variant: ''}}>{children}</ListContext.Provider>\n </ol>\n )\n}\n\nexport const OrderedList = Object.assign(Root, {Item: ListItem})\n"],"mappings":";;;;;;;;AAWA,SAAS,EAAK,EAAC,aAAU,GAAG,KAA0B;CACpD,OACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAW,MAAM,EAAO,aAAa,EAAM,SAAS;EAAG,GAAI;YAC7E,kBAAC,EAAY,UAAb;GAAsB,OAAO,EAAC,SAAS,GAAE;GAAI;EAA+B,CAAA;CAC1E,CAAA;AAER;AAEA,IAAa,IAAc,OAAO,OAAO,GAAM,EAAC,MAAM,EAAQ,CAAC"}
@@ -1,5 +1,6 @@
1
- import './OrderedList.module-DBJeYW8p.css';var e = { OrderedList: "Primer_Brand__OrderedList-module__OrderedList___Dw7mD" };
1
+ import './OrderedList.module-DBJeYW8p.css';//#region src/list/OrderedList/OrderedList.module.css
2
+ var e = "Primer_Brand__OrderedList-module__OrderedList___Dw7mD", t = { OrderedList: e };
2
3
  //#endregion
3
- export { e as default };
4
+ export { e as OrderedList, t as default };
4
5
 
5
6
  //# sourceMappingURL=OrderedList.module.js.map
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import type { BaseProps } from '../../component-helpers';
3
3
  export type UnorderedListProps = PropsWithChildren<BaseProps<HTMLUListElement>> & {
4
4
  /**
@@ -6,7 +6,7 @@ export type UnorderedListProps = PropsWithChildren<BaseProps<HTMLUListElement>>
6
6
  */
7
7
  variant?: 'default' | 'checked' | 'x';
8
8
  };
9
- declare function Root({ variant, children, ...props }: UnorderedListProps): import("react/jsx-runtime").JSX.Element;
9
+ declare function Root({ variant, children, ...props }: UnorderedListProps): React.JSX.Element;
10
10
  export declare const UnorderedList: typeof Root & {
11
11
  Item: any;
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"UnorderedList.d.ts","sourceRoot":"","sources":["../../../src/list/UnorderedList/UnorderedList.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AAMtD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,GAAG;IAChF;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,GAAG,CAAA;CACtC,CAAA;AAED,iBAAS,IAAI,CAAC,EAAC,OAAmB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,kBAAkB,2CAM1E;AAED,eAAO,MAAM,aAAa;;CAAwC,CAAA"}
1
+ {"version":3,"file":"UnorderedList.d.ts","sourceRoot":"","sources":["../../../src/list/UnorderedList/UnorderedList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AAMtD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,GAAG;IAChF;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,GAAG,CAAA;CACtC,CAAA;AAED,iBAAS,IAAI,CAAC,EAAC,OAAmB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,kBAAkB,qBAM1E;AAED,eAAO,MAAM,aAAa;;CAAwC,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 { ListContext as t } from "../listContext.js";
3
3
  import { ListItem as n } from "../ListItem/ListItem.js";
4
4
  import r from "../list-shared.module.js";
@@ -1 +1 @@
1
- {"version":3,"file":"UnorderedList.js","names":[],"sources":["../../../src/list/UnorderedList/UnorderedList.tsx"],"sourcesContent":["import React, {PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../../component-helpers'\nimport {ListItem} from '../ListItem/ListItem'\nimport {ListContext} from '../listContext'\n\nimport styles from '../list-shared.module.css'\n\nexport type UnorderedListProps = PropsWithChildren<BaseProps<HTMLUListElement>> & {\n /**\n * The semantic structure of list that is presented visually setting 'ol' vs 'ul' based on the style the style of the list.\n */\n variant?: 'default' | 'checked' | 'x'\n}\n\nfunction Root({variant = 'default', children, ...props}: UnorderedListProps) {\n return (\n <ul className={clsx(styles.List, props.className)} {...props}>\n <ListContext.Provider value={{variant}}>{children}</ListContext.Provider>\n </ul>\n )\n}\n\nexport const UnorderedList = Object.assign(Root, {Item: ListItem})\n"],"mappings":";;;;;;;AAeA,SAAS,EAAK,EAAC,aAAU,WAAW,aAAU,GAAG,KAA4B;AAC3E,QACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAO,MAAM,EAAM,UAAU;EAAE,GAAI;YACrD,kBAAC,EAAY,UAAb;GAAsB,OAAO,EAAC,YAAQ;GAAG;GAAgC,CAAA;EACtE,CAAA;;AAIT,IAAa,IAAgB,OAAO,OAAO,GAAM,EAAC,MAAM,GAAS,CAAC"}
1
+ {"version":3,"file":"UnorderedList.js","names":[],"sources":["../../../src/list/UnorderedList/UnorderedList.tsx"],"sourcesContent":["import React, {PropsWithChildren} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../../component-helpers'\nimport {ListItem} from '../ListItem/ListItem'\nimport {ListContext} from '../listContext'\n\nimport styles from '../list-shared.module.css'\n\nexport type UnorderedListProps = PropsWithChildren<BaseProps<HTMLUListElement>> & {\n /**\n * The semantic structure of list that is presented visually setting 'ol' vs 'ul' based on the style the style of the list.\n */\n variant?: 'default' | 'checked' | 'x'\n}\n\nfunction Root({variant = 'default', children, ...props}: UnorderedListProps) {\n return (\n <ul className={clsx(styles.List, props.className)} {...props}>\n <ListContext.Provider value={{variant}}>{children}</ListContext.Provider>\n </ul>\n )\n}\n\nexport const UnorderedList = Object.assign(Root, {Item: ListItem})\n"],"mappings":";;;;;;;AAeA,SAAS,EAAK,EAAC,aAAU,WAAW,aAAU,GAAG,KAA4B;CAC3E,OACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAO,MAAM,EAAM,SAAS;EAAG,GAAI;YACrD,kBAAC,EAAY,UAAb;GAAsB,OAAO,EAAC,WAAO;GAAI;EAA+B,CAAA;CACtE,CAAA;AAER;AAEA,IAAa,IAAgB,OAAO,OAAO,GAAM,EAAC,MAAM,EAAQ,CAAC"}
@@ -1,5 +1,6 @@
1
- import './list-shared.module-CXsvDQ7x.css';var e = { List: "Primer_Brand__list-shared-module__List___Osssm" };
1
+ import './list-shared.module-CXsvDQ7x.css';//#region src/list/list-shared.module.css
2
+ var e = "Primer_Brand__list-shared-module__List___Osssm", t = { List: e };
2
3
  //#endregion
3
- export { e as default };
4
+ export { e as List, t as default };
4
5
 
5
6
  //# sourceMappingURL=list-shared.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"listContext.js","names":[],"sources":["../../src/list/listContext.ts"],"sourcesContent":["import {createContext} from 'react'\n\nexport const ListContext = createContext({\n variant: 'default',\n})\n"],"mappings":";;AAEA,IAAa,IAAc,EAAc,EACvC,SAAS,WACV,CAAC"}
1
+ {"version":3,"file":"listContext.js","names":[],"sources":["../../src/list/listContext.ts"],"sourcesContent":["import {createContext} from 'react'\n\nexport const ListContext = createContext({\n variant: 'default',\n})\n"],"mappings":";;AAEA,IAAa,IAAc,EAAc,EACvC,SAAS,UACX,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { t as e } from "../renderOcticon-DuMQdmQC.js";
2
+ import t from "react";
3
+ //#region ../../node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.mjs
4
+ var n = [
5
+ "12",
6
+ "16",
7
+ "24"
8
+ ], r = {
9
+ 12: {
10
+ width: 12,
11
+ path: /*#__PURE__*/ t.createElement("path", { d: "M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" })
12
+ },
13
+ 16: {
14
+ width: 16,
15
+ path: /*#__PURE__*/ t.createElement("path", { d: "M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z" })
16
+ },
17
+ 24: {
18
+ width: 24,
19
+ path: /*#__PURE__*/ t.createElement("path", { d: "M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z" })
20
+ }
21
+ }, i = /*#__PURE__*/ t.forwardRef(function(t, i) {
22
+ return e(t, i, "octicon octicon-alert-fill", r, n);
23
+ });
24
+ i.displayName = "AlertFillIcon";
25
+ //#endregion
26
+ export { i as AlertFillIcon, i as default };
27
+
28
+ //# sourceMappingURL=AlertFillIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertFillIcon.js","names":[],"sources":["../../../../../../../../node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.mjs"],"sourcesContent":["import { t as renderOcticon } from \"../renderOcticon-DuMQdmQC.mjs\";\nimport React from \"react\";\nvar heights = [\n\t\"12\",\n\t\"16\",\n\t\"24\"\n];\nvar svgDataByHeight = {\n\t\"12\": {\n\t\t\"width\": 12,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z\" })\n\t},\n\t\"16\": {\n\t\t\"width\": 16,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z\" })\n\t},\n\t\"24\": {\n\t\t\"width\": 24,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z\" })\n\t}\n};\nvar AlertFillIcon = /*#__PURE__*/ React.forwardRef(function(props, ref) {\n\treturn renderOcticon(props, ref, \"octicon octicon-alert-fill\", svgDataByHeight, heights);\n});\nAlertFillIcon.displayName = \"AlertFillIcon\";\nexport { AlertFillIcon, AlertFillIcon as default };\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAI,IAAU;CACb;CACA;CACA;AACD,GACI,IAAkB;CACrB,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,gKAAgK,CAAC;CACzN;CACA,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,+NAA+N,CAAC;CACxR;CACA,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,iPAAiP,CAAC;CAC1S;AACD,GACI,IAA8B,gBAAM,WAAW,SAAS,GAAO,GAAK;CACvE,OAAO,EAAc,GAAO,GAAK,8BAA8B,GAAiB,CAAO;AACxF,CAAC;AACD,EAAc,cAAc"}
@@ -0,0 +1,20 @@
1
+ import { t as e } from "../renderOcticon-DuMQdmQC.js";
2
+ import t from "react";
3
+ //#region ../../node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.mjs
4
+ var n = ["16", "24"], r = {
5
+ 16: {
6
+ width: 16,
7
+ path: /*#__PURE__*/ t.createElement("path", { d: "M3.47 7.78a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0l4.25 4.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L9 4.81v7.44a.75.75 0 0 1-1.5 0V4.81L4.53 7.78a.75.75 0 0 1-1.06 0Z" })
8
+ },
9
+ 24: {
10
+ width: 24,
11
+ path: /*#__PURE__*/ t.createElement("path", { d: "M18.655 10.405a.75.75 0 0 1-1.06 0l-4.97-4.97v14.44a.75.75 0 0 1-1.5 0V5.435l-4.97 4.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l6.25-6.25a.75.75 0 0 1 1.06 0l6.25 6.25a.75.75 0 0 1 0 1.06Z" })
12
+ }
13
+ }, i = /*#__PURE__*/ t.forwardRef(function(t, i) {
14
+ return e(t, i, "octicon octicon-arrow-up", r, n);
15
+ });
16
+ i.displayName = "ArrowUpIcon";
17
+ //#endregion
18
+ export { i as ArrowUpIcon, i as default };
19
+
20
+ //# sourceMappingURL=ArrowUpIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrowUpIcon.js","names":[],"sources":["../../../../../../../../node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.mjs"],"sourcesContent":["import { t as renderOcticon } from \"../renderOcticon-DuMQdmQC.mjs\";\nimport React from \"react\";\nvar heights = [\"16\", \"24\"];\nvar svgDataByHeight = {\n\t\"16\": {\n\t\t\"width\": 16,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M3.47 7.78a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0l4.25 4.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L9 4.81v7.44a.75.75 0 0 1-1.5 0V4.81L4.53 7.78a.75.75 0 0 1-1.06 0Z\" })\n\t},\n\t\"24\": {\n\t\t\"width\": 24,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M18.655 10.405a.75.75 0 0 1-1.06 0l-4.97-4.97v14.44a.75.75 0 0 1-1.5 0V5.435l-4.97 4.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l6.25-6.25a.75.75 0 0 1 1.06 0l6.25 6.25a.75.75 0 0 1 0 1.06Z\" })\n\t}\n};\nvar ArrowUpIcon = /*#__PURE__*/ React.forwardRef(function(props, ref) {\n\treturn renderOcticon(props, ref, \"octicon octicon-arrow-up\", svgDataByHeight, heights);\n});\nArrowUpIcon.displayName = \"ArrowUpIcon\";\nexport { ArrowUpIcon, ArrowUpIcon as default };\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAI,IAAU,CAAC,MAAM,IAAI,GACrB,IAAkB;CACrB,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,8LAA8L,CAAC;CACvP;CACA,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,yMAAyM,CAAC;CAClQ;AACD,GACI,IAA4B,gBAAM,WAAW,SAAS,GAAO,GAAK;CACrE,OAAO,EAAc,GAAO,GAAK,4BAA4B,GAAiB,CAAO;AACtF,CAAC;AACD,EAAY,cAAc"}
@@ -0,0 +1,20 @@
1
+ import { t as e } from "../renderOcticon-DuMQdmQC.js";
2
+ import t from "react";
3
+ //#region ../../node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.mjs
4
+ var n = ["16", "24"], r = {
5
+ 16: {
6
+ width: 16,
7
+ path: /*#__PURE__*/ t.createElement("path", { d: "M4.53 4.75A.75.75 0 0 1 5.28 4h6.01a.75.75 0 0 1 .75.75v6.01a.75.75 0 0 1-1.5 0v-4.2l-5.26 5.261a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L9.48 5.5h-4.2a.75.75 0 0 1-.75-.75Z" })
8
+ },
9
+ 24: {
10
+ width: 24,
11
+ path: /*#__PURE__*/ t.createElement("path", { d: "M18.25 15.5a.75.75 0 0 1-.75-.75V7.56L7.28 17.78a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L16.44 6.5H9.25a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75Z" })
12
+ }
13
+ }, i = /*#__PURE__*/ t.forwardRef(function(t, i) {
14
+ return e(t, i, "octicon octicon-arrow-up-right", r, n);
15
+ });
16
+ i.displayName = "ArrowUpRightIcon";
17
+ //#endregion
18
+ export { i as ArrowUpRightIcon, i as default };
19
+
20
+ //# sourceMappingURL=ArrowUpRightIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrowUpRightIcon.js","names":[],"sources":["../../../../../../../../node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.mjs"],"sourcesContent":["import { t as renderOcticon } from \"../renderOcticon-DuMQdmQC.mjs\";\nimport React from \"react\";\nvar heights = [\"16\", \"24\"];\nvar svgDataByHeight = {\n\t\"16\": {\n\t\t\"width\": 16,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M4.53 4.75A.75.75 0 0 1 5.28 4h6.01a.75.75 0 0 1 .75.75v6.01a.75.75 0 0 1-1.5 0v-4.2l-5.26 5.261a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L9.48 5.5h-4.2a.75.75 0 0 1-.75-.75Z\" })\n\t},\n\t\"24\": {\n\t\t\"width\": 24,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M18.25 15.5a.75.75 0 0 1-.75-.75V7.56L7.28 17.78a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L16.44 6.5H9.25a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75Z\" })\n\t}\n};\nvar ArrowUpRightIcon = /*#__PURE__*/ React.forwardRef(function(props, ref) {\n\treturn renderOcticon(props, ref, \"octicon octicon-arrow-up-right\", svgDataByHeight, heights);\n});\nArrowUpRightIcon.displayName = \"ArrowUpRightIcon\";\nexport { ArrowUpRightIcon, ArrowUpRightIcon as default };\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAI,IAAU,CAAC,MAAM,IAAI,GACrB,IAAkB;CACrB,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,yLAAyL,CAAC;CAClP;CACA,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,oLAAoL,CAAC;CAC7O;AACD,GACI,IAAiC,gBAAM,WAAW,SAAS,GAAO,GAAK;CAC1E,OAAO,EAAc,GAAO,GAAK,kCAAkC,GAAiB,CAAO;AAC5F,CAAC;AACD,EAAiB,cAAc"}
@@ -0,0 +1,28 @@
1
+ import { t as e } from "../renderOcticon-DuMQdmQC.js";
2
+ import t from "react";
3
+ //#region ../../node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.mjs
4
+ var n = [
5
+ "12",
6
+ "16",
7
+ "24"
8
+ ], r = {
9
+ 12: {
10
+ width: 12,
11
+ path: /*#__PURE__*/ t.createElement("path", { d: "M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z" })
12
+ },
13
+ 16: {
14
+ width: 16,
15
+ path: /*#__PURE__*/ t.createElement("path", { d: "M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z" })
16
+ },
17
+ 24: {
18
+ width: 24,
19
+ path: /*#__PURE__*/ t.createElement("path", { d: "M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z" })
20
+ }
21
+ }, i = /*#__PURE__*/ t.forwardRef(function(t, i) {
22
+ return e(t, i, "octicon octicon-check-circle-fill", r, n);
23
+ });
24
+ i.displayName = "CheckCircleFillIcon";
25
+ //#endregion
26
+ export { i as CheckCircleFillIcon, i as default };
27
+
28
+ //# sourceMappingURL=CheckCircleFillIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckCircleFillIcon.js","names":[],"sources":["../../../../../../../../node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.mjs"],"sourcesContent":["import { t as renderOcticon } from \"../renderOcticon-DuMQdmQC.mjs\";\nimport React from \"react\";\nvar heights = [\n\t\"12\",\n\t\"16\",\n\t\"24\"\n];\nvar svgDataByHeight = {\n\t\"12\": {\n\t\t\"width\": 12,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z\" })\n\t},\n\t\"16\": {\n\t\t\"width\": 16,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z\" })\n\t},\n\t\"24\": {\n\t\t\"width\": 24,\n\t\t\"path\": /*#__PURE__*/ React.createElement(\"path\", { d: \"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z\" })\n\t}\n};\nvar CheckCircleFillIcon = /*#__PURE__*/ React.forwardRef(function(props, ref) {\n\treturn renderOcticon(props, ref, \"octicon octicon-check-circle-fill\", svgDataByHeight, heights);\n});\nCheckCircleFillIcon.displayName = \"CheckCircleFillIcon\";\nexport { CheckCircleFillIcon, CheckCircleFillIcon as default };\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAI,IAAU;CACb;CACA;CACA;AACD,GACI,IAAkB;CACrB,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,sHAAsH,CAAC;CAC/K;CACA,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,kMAAkM,CAAC;CAC3P;CACA,IAAM;EACL,OAAS;EACT,MAAsB,gBAAM,cAAc,QAAQ,EAAE,GAAG,wOAAwO,CAAC;CACjS;AACD,GACI,IAAoC,gBAAM,WAAW,SAAS,GAAO,GAAK;CAC7E,OAAO,EAAc,GAAO,GAAK,qCAAqC,GAAiB,CAAO;AAC/F,CAAC;AACD,EAAoB,cAAc"}