@primer/react-brand 0.75.0-rc.a3f7dbd6 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (940) hide show
  1. package/docs/components/SubdomainNavBar/index.md +215 -86
  2. package/docs/index.md +2 -2
  3. package/esm/Accordion/Accordion.d.ts +2 -2
  4. package/esm/Accordion/Accordion.d.ts.map +1 -1
  5. package/esm/Accordion/Accordion.js +2 -2
  6. package/esm/Accordion/Accordion.js.map +1 -1
  7. package/esm/Accordion/Accordion.module.js +6 -5
  8. package/esm/ActionMenu/ActionMenu.d.ts +2 -2
  9. package/esm/ActionMenu/ActionMenu.js +3 -2
  10. package/esm/ActionMenu/ActionMenu.js.map +1 -1
  11. package/esm/ActionMenu/ActionMenu.module.js +7 -6
  12. package/esm/AnchorNav/AnchorNav.d.ts +4 -4
  13. package/esm/AnchorNav/AnchorNav.d.ts.map +1 -1
  14. package/esm/AnchorNav/AnchorNav.js +9 -4
  15. package/esm/AnchorNav/AnchorNav.js.map +1 -1
  16. package/esm/AnchorNav/AnchorNav.module.js +5 -4
  17. package/esm/AnchorNav/useExpandedMenu.js.map +1 -1
  18. package/esm/Avatar/Avatar.js +1 -1
  19. package/esm/Avatar/Avatar.js.map +1 -1
  20. package/esm/Avatar/Avatar.module.js +5 -4
  21. package/esm/Bento/Bento.d.ts +4 -4
  22. package/esm/Bento/Bento.js +1 -1
  23. package/esm/Bento/Bento.js.map +1 -1
  24. package/esm/Bento/Bento.module.js +7 -6
  25. package/esm/Box/Box.d.ts +1 -1
  26. package/esm/Box/Box.d.ts.map +1 -1
  27. package/esm/Box/Box.js +1 -1
  28. package/esm/Box/Box.js.map +1 -1
  29. package/esm/Breadcrumbs/Breadcrumbs.js +1 -1
  30. package/esm/Breadcrumbs/Breadcrumbs.js.map +1 -1
  31. package/esm/Breadcrumbs/Breadcrumbs.module.js +7 -6
  32. package/esm/BreakoutBanner/BreakoutBanner.js +1 -1
  33. package/esm/BreakoutBanner/BreakoutBanner.js.map +1 -1
  34. package/esm/BreakoutBanner/BreakoutBanner.module.js +5 -4
  35. package/esm/Button/Button.js +1 -1
  36. package/esm/Button/Button.js.map +1 -1
  37. package/esm/Button/Button.module.js +5 -4
  38. package/esm/ButtonGroup/ButtonGroup.js +1 -1
  39. package/esm/ButtonGroup/ButtonGroup.js.map +1 -1
  40. package/esm/ButtonGroup/ButtonGroup.module.js +3 -2
  41. package/esm/CTABanner/CTABanner.d.ts +1 -1
  42. package/esm/CTABanner/CTABanner.js +2 -2
  43. package/esm/CTABanner/CTABanner.js.map +1 -1
  44. package/esm/CTABanner/CTABanner.module.js +4 -3
  45. package/esm/CTAForm/CTAForm.js +1 -1
  46. package/esm/CTAForm/CTAForm.js.map +1 -1
  47. package/esm/CTAForm/CTAForm.module.js +4 -3
  48. package/esm/Card/Card.d.ts +2 -2
  49. package/esm/Card/Card.d.ts.map +1 -1
  50. package/esm/Card/Card.js +3 -3
  51. package/esm/Card/Card.js.map +1 -1
  52. package/esm/Card/Card.module.js +18 -17
  53. package/esm/ComparisonTable/ComparisonTable.d.ts +3 -3
  54. package/esm/ComparisonTable/ComparisonTable.js +1 -1
  55. package/esm/ComparisonTable/ComparisonTable.js.map +1 -1
  56. package/esm/ComparisonTable/ComparisonTable.module.js +4 -3
  57. package/esm/ExpandableArrow/ExpandableArrow.d.ts +2 -1
  58. package/esm/ExpandableArrow/ExpandableArrow.d.ts.map +1 -1
  59. package/esm/ExpandableArrow/ExpandableArrow.js +1 -1
  60. package/esm/ExpandableArrow/ExpandableArrow.js.map +1 -1
  61. package/esm/ExpandableArrow/ExpandableArrow.module.js +4 -3
  62. package/esm/EyebrowBanner/EyebrowBanner.js +2 -2
  63. package/esm/EyebrowBanner/EyebrowBanner.js.map +1 -1
  64. package/esm/EyebrowBanner/EyebrowBanner.module.js +12 -11
  65. package/esm/EyebrowText/EyebrowText.js +1 -1
  66. package/esm/EyebrowText/EyebrowText.js.map +1 -1
  67. package/esm/EyebrowText/EyebrowText.module.js +4 -3
  68. package/esm/FAQ/FAQ.d.ts +2 -2
  69. package/esm/FAQ/FAQ.d.ts.map +1 -1
  70. package/esm/FAQ/FAQ.js +1 -1
  71. package/esm/FAQ/FAQ.js.map +1 -1
  72. package/esm/FAQ/FAQ.module.js +7 -6
  73. package/esm/FAQ/FAQGroup.d.ts +2 -2
  74. package/esm/FAQ/FAQGroup.d.ts.map +1 -1
  75. package/esm/FAQ/FAQGroup.js +7 -3
  76. package/esm/FAQ/FAQGroup.js.map +1 -1
  77. package/esm/FAQ/FAQGroup.module.js +8 -7
  78. package/esm/Footnotes/Footnotes.d.ts +2 -2
  79. package/esm/Footnotes/Footnotes.d.ts.map +1 -1
  80. package/esm/Footnotes/Footnotes.js +2 -2
  81. package/esm/Footnotes/Footnotes.js.map +1 -1
  82. package/esm/Footnotes/Footnotes.module.js +7 -6
  83. package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
  84. package/esm/FrostedGlassVFX/FrostedGlassVFX.d.ts.map +1 -1
  85. package/esm/FrostedGlassVFX/FrostedGlassVFX.js +1 -1
  86. package/esm/FrostedGlassVFX/FrostedGlassVFX.js.map +1 -1
  87. package/esm/FrostedGlassVFX/FrostedGlassVFX.module.js +4 -3
  88. package/esm/Grid/Grid.d.ts +2 -2
  89. package/esm/Grid/Grid.js +2 -2
  90. package/esm/Grid/Grid.js.map +1 -1
  91. package/esm/Grid/Grid.module.js +5 -4
  92. package/esm/Heading/Heading.js +1 -1
  93. package/esm/Heading/Heading.js.map +1 -1
  94. package/esm/Heading/Heading.module.js +4 -3
  95. package/esm/Hero/Hero.js +1 -1
  96. package/esm/Hero/Hero.js.map +1 -1
  97. package/esm/Hero/Hero.module.js +4 -3
  98. package/esm/Hero/HeroContext.js.map +1 -1
  99. package/esm/Hero/sub-components/HeroButtonGroup.js +1 -1
  100. package/esm/Hero/sub-components/HeroButtonGroup.js.map +1 -1
  101. package/esm/Hero/sub-components/HeroDescription.js +1 -1
  102. package/esm/Hero/sub-components/HeroDescription.js.map +1 -1
  103. package/esm/Hero/sub-components/HeroEyebrow.js +1 -1
  104. package/esm/Hero/sub-components/HeroEyebrow.js.map +1 -1
  105. package/esm/Hero/sub-components/HeroHeading.js +1 -1
  106. package/esm/Hero/sub-components/HeroHeading.js.map +1 -1
  107. package/esm/Hero/sub-components/HeroImage.js +1 -1
  108. package/esm/Hero/sub-components/HeroImage.js.map +1 -1
  109. package/esm/Hero/sub-components/HeroLabel.js +1 -1
  110. package/esm/Hero/sub-components/HeroLabel.js.map +1 -1
  111. package/esm/Hero/sub-components/HeroPrimaryAction.js.map +1 -1
  112. package/esm/Hero/sub-components/HeroSecondaryAction.js.map +1 -1
  113. package/esm/Hero/sub-components/HeroVideo.js +2 -2
  114. package/esm/Hero/sub-components/HeroVideo.js.map +1 -1
  115. package/esm/IDE/IDE.d.ts +1 -1
  116. package/esm/IDE/IDE.js +3 -2
  117. package/esm/IDE/IDE.js.map +1 -1
  118. package/esm/IDE/IDE.module.js +8 -7
  119. package/esm/Icon/Icon.d.ts +2 -2
  120. package/esm/Icon/Icon.d.ts.map +1 -1
  121. package/esm/Icon/Icon.js +2 -2
  122. package/esm/Icon/Icon.js.map +1 -1
  123. package/esm/Icon/Icon.module.js +4 -3
  124. package/esm/Image/Image.d.ts +1 -1
  125. package/esm/Image/Image.d.ts.map +1 -1
  126. package/esm/Image/Image.js +1 -1
  127. package/esm/Image/Image.js.map +1 -1
  128. package/esm/Image/Image.module.js +5 -4
  129. package/esm/InlineCode/InlineCode.js +1 -1
  130. package/esm/InlineCode/InlineCode.js.map +1 -1
  131. package/esm/InlineCode/InlineCode.module.js +5 -4
  132. package/esm/InlineLink/InlineLink.js +2 -2
  133. package/esm/InlineLink/InlineLink.js.map +1 -1
  134. package/esm/InlineLink/InlineLink.module.js +3 -2
  135. package/esm/Label/Label.js +1 -1
  136. package/esm/Label/Label.js.map +1 -1
  137. package/esm/Label/Label.module.js +6 -5
  138. package/esm/Link/Link.d.ts +1 -1
  139. package/esm/Link/Link.d.ts.map +1 -1
  140. package/esm/Link/Link.js +2 -2
  141. package/esm/Link/Link.js.map +1 -1
  142. package/esm/Link/Link.module.js +4 -3
  143. package/esm/LogoSuite/LogoSuite.d.ts +1 -1
  144. package/esm/LogoSuite/LogoSuite.js +4 -3
  145. package/esm/LogoSuite/LogoSuite.js.map +1 -1
  146. package/esm/LogoSuite/LogoSuite.module.js +11 -10
  147. package/esm/MediaPlaylist/MediaPlaylist.d.ts +4 -4
  148. package/esm/MediaPlaylist/MediaPlaylist.d.ts.map +1 -1
  149. package/esm/MediaPlaylist/MediaPlaylist.js +1 -1
  150. package/esm/MediaPlaylist/MediaPlaylist.js.map +1 -1
  151. package/esm/MediaPlaylist/MediaPlaylist.module.js +25 -24
  152. package/esm/MediaPlaylist/useMediaPlaylist.js.map +1 -1
  153. package/esm/MinimalFooter/MinimalFooter.d.ts +3 -3
  154. package/esm/MinimalFooter/MinimalFooter.d.ts.map +1 -1
  155. package/esm/MinimalFooter/MinimalFooter.js +4 -3
  156. package/esm/MinimalFooter/MinimalFooter.js.map +1 -1
  157. package/esm/MinimalFooter/MinimalFooter.module.js +15 -14
  158. package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js +2 -2
  159. package/esm/MinimalVideoPlayer/MinimalVideoPlayer.js.map +1 -1
  160. package/esm/MinimalVideoPlayer/MinimalVideoPlayer.module.js +6 -5
  161. package/esm/MinimalVideoPlayer/useMinimalVideoPlayback.js.map +1 -1
  162. package/esm/NavList/NavList.js +2 -2
  163. package/esm/NavList/NavList.js.map +1 -1
  164. package/esm/NavList/NavList.module.js +18 -17
  165. package/esm/Pagination/Pagination.d.ts +1 -1
  166. package/esm/Pagination/Pagination.d.ts.map +1 -1
  167. package/esm/Pagination/Pagination.js +1 -1
  168. package/esm/Pagination/Pagination.js.map +1 -1
  169. package/esm/Pagination/Pagination.module.js +11 -10
  170. package/esm/Pagination/model.js.map +1 -1
  171. package/esm/Pillar/Pillar.d.ts +2 -2
  172. package/esm/Pillar/Pillar.d.ts.map +1 -1
  173. package/esm/Pillar/Pillar.js +1 -1
  174. package/esm/Pillar/Pillar.js.map +1 -1
  175. package/esm/Pillar/Pillar.module.js +9 -8
  176. package/esm/PricingOptions/PricingOptions.d.ts +1 -1
  177. package/esm/PricingOptions/PricingOptions.js +5 -3
  178. package/esm/PricingOptions/PricingOptions.js.map +1 -1
  179. package/esm/PricingOptions/PricingOptions.module.js +13 -12
  180. package/esm/Prose/Prose.js +1 -1
  181. package/esm/Prose/Prose.js.map +1 -1
  182. package/esm/Prose/Prose.module.js +4 -3
  183. package/esm/Section/Section.js +1 -1
  184. package/esm/Section/Section.js.map +1 -1
  185. package/esm/Section/Section.module.js +5 -4
  186. package/esm/SectionIntro/SectionIntro.js +1 -1
  187. package/esm/SectionIntro/SectionIntro.js.map +1 -1
  188. package/esm/SectionIntro/SectionIntro.module.js +4 -3
  189. package/esm/SectionIntroStacked/SectionIntroStacked.d.ts +3 -3
  190. package/esm/SectionIntroStacked/SectionIntroStacked.js +1 -1
  191. package/esm/SectionIntroStacked/SectionIntroStacked.js.map +1 -1
  192. package/esm/SectionIntroStacked/SectionIntroStacked.module.js +6 -5
  193. package/esm/Stack/Stack.js +1 -1
  194. package/esm/Stack/Stack.js.map +1 -1
  195. package/esm/Stack/Stack.module.js +4 -3
  196. package/esm/Statistic/Statistic.js +1 -1
  197. package/esm/Statistic/Statistic.js.map +1 -1
  198. package/esm/Statistic/Statistic.module.js +6 -5
  199. package/esm/SubNav/SubNav.d.ts +4 -4
  200. package/esm/SubNav/SubNav.d.ts.map +1 -1
  201. package/esm/SubNav/SubNav.js +6 -4
  202. package/esm/SubNav/SubNav.js.map +1 -1
  203. package/esm/SubNav/SubNav.module.js +9 -8
  204. package/esm/SubNav/useContainsFocus.js.map +1 -1
  205. package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts +3 -1
  206. package/esm/SubdomainNavBar/NavigationVisbilityObserver.d.ts.map +1 -1
  207. package/esm/SubdomainNavBar/NavigationVisbilityObserver.js +117 -64
  208. package/esm/SubdomainNavBar/NavigationVisbilityObserver.js.map +1 -1
  209. package/esm/SubdomainNavBar/SubdomainNavBar.d.ts +157 -20
  210. package/esm/SubdomainNavBar/SubdomainNavBar.d.ts.map +1 -1
  211. package/esm/SubdomainNavBar/SubdomainNavBar.js +479 -299
  212. package/esm/SubdomainNavBar/SubdomainNavBar.js.map +1 -1
  213. package/esm/SubdomainNavBar/SubdomainNavBar.module-WIrpYyjV.css +1 -0
  214. package/esm/SubdomainNavBar/SubdomainNavBar.module.js +36 -11
  215. package/esm/SubdomainNavBar/SubdomainNavBar.module.js.map +1 -1
  216. package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts +9 -0
  217. package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts.map +1 -0
  218. package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.js +10 -0
  219. package/esm/SubdomainNavBar/SubdomainNavBarLinkContext.js.map +1 -0
  220. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.d.ts +8 -0
  221. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.d.ts.map +1 -0
  222. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js +52 -0
  223. package/esm/SubdomainNavBar/useSearchKeyboardShortcut.js.map +1 -0
  224. package/esm/SubdomainNavBar/useSearchResults.d.ts +24 -0
  225. package/esm/SubdomainNavBar/useSearchResults.d.ts.map +1 -0
  226. package/esm/SubdomainNavBar/useSearchResults.js +57 -0
  227. package/esm/SubdomainNavBar/useSearchResults.js.map +1 -0
  228. package/esm/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
  229. package/esm/SubdomainNavBar/useVisibilityObserver.d.ts.map +1 -1
  230. package/esm/SubdomainNavBar/useVisibilityObserver.js +60 -23
  231. package/esm/SubdomainNavBar/useVisibilityObserver.js.map +1 -1
  232. package/esm/Tabs/Tabs.js +3 -2
  233. package/esm/Tabs/Tabs.js.map +1 -1
  234. package/esm/Tabs/Tabs.module.js +12 -11
  235. package/esm/Testimonial/Testimonial.d.ts +1 -1
  236. package/esm/Testimonial/Testimonial.d.ts.map +1 -1
  237. package/esm/Testimonial/Testimonial.js +1 -1
  238. package/esm/Testimonial/Testimonial.js.map +1 -1
  239. package/esm/Testimonial/Testimonial.module.js +8 -7
  240. package/esm/Text/Text.d.ts +1 -1
  241. package/esm/Text/Text.d.ts.map +1 -1
  242. package/esm/Text/Text.js +1 -1
  243. package/esm/Text/Text.js.map +1 -1
  244. package/esm/Text/Text.module.js +4 -3
  245. package/esm/TextCursorAnimation/TextCursorAnimation.d.ts +1 -1
  246. package/esm/TextCursorAnimation/TextCursorAnimation.d.ts.map +1 -1
  247. package/esm/TextCursorAnimation/TextCursorAnimation.js +1 -1
  248. package/esm/TextCursorAnimation/TextCursorAnimation.js.map +1 -1
  249. package/esm/TextCursorAnimation/TextCursorAnimation.module.js +10 -9
  250. package/esm/ThemeProvider/ThemeProvider.d.ts +1 -1
  251. package/esm/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  252. package/esm/ThemeProvider/ThemeProvider.js +4 -4
  253. package/esm/ThemeProvider/ThemeProvider.js.map +1 -1
  254. package/esm/ThemeProvider/useTheme.js.map +1 -1
  255. package/esm/Tiles/Tiles.js +2 -2
  256. package/esm/Tiles/Tiles.js.map +1 -1
  257. package/esm/Tiles/Tiles.module.js +4 -3
  258. package/esm/Timeline/Timeline.d.ts +3 -3
  259. package/esm/Timeline/Timeline.d.ts.map +1 -1
  260. package/esm/Timeline/Timeline.js +2 -2
  261. package/esm/Timeline/Timeline.js.map +1 -1
  262. package/esm/Timeline/Timeline.module.js +5 -4
  263. package/esm/Token/Token.js +1 -1
  264. package/esm/Token/Token.js.map +1 -1
  265. package/esm/Token/Token.module.js +6 -5
  266. package/esm/Tooltip/Tooltip.js +2 -2
  267. package/esm/Tooltip/Tooltip.js.map +1 -1
  268. package/esm/Tooltip/Tooltip.module.js +4 -3
  269. package/esm/VideoPlayer/VideoPlayer.d.ts +2 -2
  270. package/esm/VideoPlayer/VideoPlayer.js +2 -2
  271. package/esm/VideoPlayer/VideoPlayer.js.map +1 -1
  272. package/esm/VideoPlayer/VideoPlayer.module.js +29 -28
  273. package/esm/VideoPlayer/components/CCButton/CCButton.d.ts +2 -2
  274. package/esm/VideoPlayer/components/CCButton/CCButton.d.ts.map +1 -1
  275. package/esm/VideoPlayer/components/CCButton/CCButton.js +1 -1
  276. package/esm/VideoPlayer/components/CCButton/CCButton.js.map +1 -1
  277. package/esm/VideoPlayer/components/Captions/Captions.d.ts +2 -2
  278. package/esm/VideoPlayer/components/Captions/Captions.d.ts.map +1 -1
  279. package/esm/VideoPlayer/components/Captions/Captions.js +1 -1
  280. package/esm/VideoPlayer/components/Captions/Captions.js.map +1 -1
  281. package/esm/VideoPlayer/components/Captions/Captions.module.js +5 -4
  282. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +2 -2
  283. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.d.ts.map +1 -1
  284. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js +1 -1
  285. package/esm/VideoPlayer/components/ControlsBar/ControlsBar.js.map +1 -1
  286. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +2 -2
  287. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts.map +1 -1
  288. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js +2 -1
  289. package/esm/VideoPlayer/components/FullScreenButton/FullScreenButton.js.map +1 -1
  290. package/esm/VideoPlayer/components/IconControl/IconControl.d.ts +2 -2
  291. package/esm/VideoPlayer/components/IconControl/IconControl.d.ts.map +1 -1
  292. package/esm/VideoPlayer/components/IconControl/IconControl.js +1 -1
  293. package/esm/VideoPlayer/components/IconControl/IconControl.js.map +1 -1
  294. package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts +2 -2
  295. package/esm/VideoPlayer/components/MuteButton/MuteButton.d.ts.map +1 -1
  296. package/esm/VideoPlayer/components/MuteButton/MuteButton.js +2 -1
  297. package/esm/VideoPlayer/components/MuteButton/MuteButton.js.map +1 -1
  298. package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +2 -2
  299. package/esm/VideoPlayer/components/PauseIcon/PauseIcon.d.ts.map +1 -1
  300. package/esm/VideoPlayer/components/PauseIcon/PauseIcon.js.map +1 -1
  301. package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +2 -2
  302. package/esm/VideoPlayer/components/PlayIcon/PlayIcon.d.ts.map +1 -1
  303. package/esm/VideoPlayer/components/PlayIcon/PlayIcon.js.map +1 -1
  304. package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +2 -2
  305. package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts.map +1 -1
  306. package/esm/VideoPlayer/components/PlayPauseButton/PlayPauseButton.js.map +1 -1
  307. package/esm/VideoPlayer/components/Range/Range.d.ts +1 -1
  308. package/esm/VideoPlayer/components/Range/Range.d.ts.map +1 -1
  309. package/esm/VideoPlayer/components/Range/Range.js +1 -1
  310. package/esm/VideoPlayer/components/Range/Range.js.map +1 -1
  311. package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts +2 -2
  312. package/esm/VideoPlayer/components/SeekControl/SeekControl.d.ts.map +1 -1
  313. package/esm/VideoPlayer/components/SeekControl/SeekControl.js +1 -1
  314. package/esm/VideoPlayer/components/SeekControl/SeekControl.js.map +1 -1
  315. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +2 -2
  316. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts.map +1 -1
  317. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js +3 -2
  318. package/esm/VideoPlayer/components/VideoTooltip/VideoTooltip.js.map +1 -1
  319. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +2 -1
  320. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.d.ts.map +1 -1
  321. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.js.map +1 -1
  322. package/esm/VideoPlayer/components/VolumeControl/VolumeControl.module.js +3 -2
  323. package/esm/VideoPlayer/hooks/useIsElementFullScreen.js.map +1 -1
  324. package/esm/VideoPlayer/hooks/useVideo.js.map +1 -1
  325. package/esm/VideoPlayer/hooks/useVideoResizeObserver.js.map +1 -1
  326. package/esm/animation/Animate/Animate.d.ts +1 -1
  327. package/esm/animation/Animate/Animate.d.ts.map +1 -1
  328. package/esm/animation/Animate/Animate.js +1 -1
  329. package/esm/animation/Animate/Animate.js.map +1 -1
  330. package/esm/animation/Animation.module.js +4 -3
  331. package/esm/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
  332. package/esm/animation/AnimationProvider/AnimationProvider.d.ts.map +1 -1
  333. package/esm/animation/AnimationProvider/AnimationProvider.js.map +1 -1
  334. package/esm/animation/TextRevealAnimation/TextRevealAnimation.js +1 -1
  335. package/esm/animation/TextRevealAnimation/TextRevealAnimation.js.map +1 -1
  336. package/esm/animation/TextRevealAnimation/TextRevealAnimation.module.js +5 -4
  337. package/esm/animation/TextRevealAnimation/useTextRevealAnimationLines.js.map +1 -1
  338. package/esm/animation/useAnimation.js.map +1 -1
  339. package/esm/component-helpers/shared.module.js +3 -2
  340. package/esm/component-helpers.d.ts +2 -2
  341. package/esm/component-helpers.d.ts.map +1 -1
  342. package/esm/constants.js.map +1 -1
  343. package/esm/css/stylesheets.js +1 -1
  344. package/esm/findElementInChildren.js.map +1 -1
  345. package/esm/forms/Checkbox/Checkbox.js +2 -2
  346. package/esm/forms/Checkbox/Checkbox.js.map +1 -1
  347. package/esm/forms/Checkbox/Checkbox.module.js +4 -3
  348. package/esm/forms/ControlGroup/ControlGroup.js +3 -2
  349. package/esm/forms/ControlGroup/ControlGroup.js.map +1 -1
  350. package/esm/forms/ControlGroup/ControlGroup.module.js +7 -6
  351. package/esm/forms/FormControl/FormControl.d.ts +5 -5
  352. package/esm/forms/FormControl/FormControl.d.ts.map +1 -1
  353. package/esm/forms/FormControl/FormControl.js +4 -3
  354. package/esm/forms/FormControl/FormControl.js.map +1 -1
  355. package/esm/forms/FormControl/FormControl.module.js +5 -4
  356. package/esm/forms/Radio/Radio.js +1 -1
  357. package/esm/forms/Radio/Radio.js.map +1 -1
  358. package/esm/forms/Radio/Radio.module.js +4 -3
  359. package/esm/forms/Select/Select.d.ts +2 -2
  360. package/esm/forms/Select/Select.js +1 -1
  361. package/esm/forms/Select/Select.js.map +1 -1
  362. package/esm/forms/Select/Select.module.js +4 -3
  363. package/esm/forms/TextInput/TextInput.js +1 -1
  364. package/esm/forms/TextInput/TextInput.js.map +1 -1
  365. package/esm/forms/TextInput/TextInput.module.js +5 -4
  366. package/esm/forms/Textarea/Textarea.js +1 -1
  367. package/esm/forms/Textarea/Textarea.js.map +1 -1
  368. package/esm/forms/Textarea/Textarea.module.js +4 -3
  369. package/esm/hooks/useAnchoredPosition.js +7 -4
  370. package/esm/hooks/useAnchoredPosition.js.map +1 -1
  371. package/esm/hooks/useCursorAnimation.js +4 -2
  372. package/esm/hooks/useCursorAnimation.js.map +1 -1
  373. package/esm/hooks/useFocusTrap.js.map +1 -1
  374. package/esm/hooks/useId.js.map +1 -1
  375. package/esm/hooks/useKeyboardEscape.js.map +1 -1
  376. package/esm/hooks/useOnClickOutside.js.map +1 -1
  377. package/esm/hooks/useReducedMotion.js +1 -1
  378. package/esm/hooks/useReducedMotion.js.map +1 -1
  379. package/esm/hooks/useRef.js.map +1 -1
  380. package/esm/hooks/useResizeObserver.js.map +1 -1
  381. package/esm/hooks/useTabs.js +1 -1
  382. package/esm/hooks/useTabs.js.map +1 -1
  383. package/esm/hooks/useWindowSize.js +7 -7
  384. package/esm/hooks/useWindowSize.js.map +1 -1
  385. package/esm/list/ListItem/ListItem.js +4 -2
  386. package/esm/list/ListItem/ListItem.js.map +1 -1
  387. package/esm/list/ListItem/ListItem.module.js +5 -4
  388. package/esm/list/OrderedList/OrderedList.d.ts +2 -2
  389. package/esm/list/OrderedList/OrderedList.d.ts.map +1 -1
  390. package/esm/list/OrderedList/OrderedList.js +1 -1
  391. package/esm/list/OrderedList/OrderedList.js.map +1 -1
  392. package/esm/list/OrderedList/OrderedList.module.js +3 -2
  393. package/esm/list/UnorderedList/UnorderedList.d.ts +2 -2
  394. package/esm/list/UnorderedList/UnorderedList.d.ts.map +1 -1
  395. package/esm/list/UnorderedList/UnorderedList.js +1 -1
  396. package/esm/list/UnorderedList/UnorderedList.js.map +1 -1
  397. package/esm/list/list-shared.module.js +3 -2
  398. package/esm/list/listContext.js.map +1 -1
  399. package/esm/node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js +28 -0
  400. package/esm/node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js.map +1 -0
  401. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.js +20 -0
  402. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpIcon.js.map +1 -0
  403. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js +20 -0
  404. package/esm/node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js.map +1 -0
  405. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js +28 -0
  406. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js.map +1 -0
  407. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckIcon.js +20 -0
  408. package/esm/node_modules/@primer/octicons-react/dist/icons/CheckIcon.js.map +1 -0
  409. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronDownIcon.js +28 -0
  410. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronDownIcon.js.map +1 -0
  411. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js +28 -0
  412. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js.map +1 -0
  413. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronRightIcon.js +28 -0
  414. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronRightIcon.js.map +1 -0
  415. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronUpIcon.js +28 -0
  416. package/esm/node_modules/@primer/octicons-react/dist/icons/ChevronUpIcon.js.map +1 -0
  417. package/esm/node_modules/@primer/octicons-react/dist/icons/CopilotIcon.js +33 -0
  418. package/esm/node_modules/@primer/octicons-react/dist/icons/CopilotIcon.js.map +1 -0
  419. package/esm/node_modules/@primer/octicons-react/dist/icons/DashIcon.js +20 -0
  420. package/esm/node_modules/@primer/octicons-react/dist/icons/DashIcon.js.map +1 -0
  421. package/esm/node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js +20 -0
  422. package/esm/node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js.map +1 -0
  423. package/esm/node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js +20 -0
  424. package/esm/node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js.map +1 -0
  425. package/esm/node_modules/@primer/octicons-react/dist/icons/MuteIcon.js +20 -0
  426. package/esm/node_modules/@primer/octicons-react/dist/icons/MuteIcon.js.map +1 -0
  427. package/esm/node_modules/@primer/octicons-react/dist/icons/PaperAirplaneIcon.js +20 -0
  428. package/esm/node_modules/@primer/octicons-react/dist/icons/PaperAirplaneIcon.js.map +1 -0
  429. package/esm/node_modules/@primer/octicons-react/dist/icons/PauseIcon.js +20 -0
  430. package/esm/node_modules/@primer/octicons-react/dist/icons/PauseIcon.js.map +1 -0
  431. package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js +20 -0
  432. package/esm/node_modules/@primer/octicons-react/dist/icons/PlayIcon.js.map +1 -0
  433. package/esm/node_modules/@primer/octicons-react/dist/icons/ReplyIcon.js +20 -0
  434. package/esm/node_modules/@primer/octicons-react/dist/icons/ReplyIcon.js.map +1 -0
  435. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js +20 -0
  436. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenFullIcon.js.map +1 -0
  437. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js +20 -0
  438. package/esm/node_modules/@primer/octicons-react/dist/icons/ScreenNormalIcon.js.map +1 -0
  439. package/esm/node_modules/@primer/octicons-react/dist/icons/SearchIcon.js +20 -0
  440. package/esm/node_modules/@primer/octicons-react/dist/icons/SearchIcon.js.map +1 -0
  441. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleDownIcon.js +20 -0
  442. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleDownIcon.js.map +1 -0
  443. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleUpIcon.js +20 -0
  444. package/esm/node_modules/@primer/octicons-react/dist/icons/TriangleUpIcon.js.map +1 -0
  445. package/esm/node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js +20 -0
  446. package/esm/node_modules/@primer/octicons-react/dist/icons/UnmuteIcon.js.map +1 -0
  447. package/esm/node_modules/@primer/octicons-react/dist/icons/XIcon.js +28 -0
  448. package/esm/node_modules/@primer/octicons-react/dist/icons/XIcon.js.map +1 -0
  449. package/esm/node_modules/@primer/octicons-react/dist/renderOcticon-DuMQdmQC.js +132 -0
  450. package/esm/node_modules/@primer/octicons-react/dist/renderOcticon-DuMQdmQC.js.map +1 -0
  451. package/esm/node_modules/clsx/dist/clsx.js +1 -1
  452. package/esm/node_modules/clsx/dist/clsx.js.map +1 -1
  453. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-BGj0AiDW.css +1 -0
  454. package/esm/river/River/River.js +2 -2
  455. package/esm/river/River/River.js.map +1 -1
  456. package/esm/river/RiverAccordion/RiverAccordion.d.ts +4 -4
  457. package/esm/river/RiverAccordion/RiverAccordion.js +3 -2
  458. package/esm/river/RiverAccordion/RiverAccordion.js.map +1 -1
  459. package/esm/river/RiverAccordion/RiverAccordion.module.js +16 -15
  460. package/esm/river/RiverBreakout/RiverBreakout.d.ts +1 -1
  461. package/esm/river/RiverBreakout/RiverBreakout.js +1 -1
  462. package/esm/river/RiverBreakout/RiverBreakout.js.map +1 -1
  463. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +5 -5
  464. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js +2 -2
  465. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js.map +1 -1
  466. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js +31 -30
  467. package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
  468. package/esm/river/RiverStoryScroll/RiverStoryScroll.d.ts.map +1 -1
  469. package/esm/river/RiverStoryScroll/RiverStoryScroll.js +5 -3
  470. package/esm/river/RiverStoryScroll/RiverStoryScroll.js.map +1 -1
  471. package/esm/river/RiverStoryScroll/RiverStoryScroll.module.js +8 -7
  472. package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +2 -2
  473. package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts.map +1 -1
  474. package/esm/river/RiverStoryScroll/RiverStoryScrollProvider.js.map +1 -1
  475. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
  476. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts.map +1 -1
  477. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js +1 -1
  478. package/esm/river/RiverStoryScroll/RiverStoryScrollResponder.js.map +1 -1
  479. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
  480. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts.map +1 -1
  481. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js +1 -1
  482. package/esm/river/RiverStoryScroll/RiverStoryScrollTracker.js.map +1 -1
  483. package/esm/river/river-shared.module.js +13 -12
  484. package/esm/utils/getTextContent.js.map +1 -1
  485. package/esm/utils/isFragmentElement.js.map +1 -1
  486. package/lib/Accordion/Accordion.d.ts +2 -2
  487. package/lib/ActionMenu/ActionMenu.d.ts +2 -2
  488. package/lib/AnchorNav/AnchorNav.d.ts +4 -4
  489. package/lib/Bento/Bento.d.ts +4 -4
  490. package/lib/Box/Box.d.ts +1 -1
  491. package/lib/CTABanner/CTABanner.d.ts +1 -1
  492. package/lib/Card/Card.d.ts +2 -2
  493. package/lib/ComparisonTable/ComparisonTable.d.ts +3 -3
  494. package/lib/ExpandableArrow/ExpandableArrow.d.ts +2 -1
  495. package/lib/FAQ/FAQ.d.ts +2 -2
  496. package/lib/FAQ/FAQGroup.d.ts +2 -2
  497. package/lib/Footnotes/Footnotes.d.ts +2 -2
  498. package/lib/FrostedGlassVFX/FrostedGlassVFX.d.ts +1 -1
  499. package/lib/Grid/Grid.d.ts +2 -2
  500. package/lib/IDE/IDE.d.ts +1 -1
  501. package/lib/Icon/Icon.d.ts +2 -2
  502. package/lib/Image/Image.d.ts +1 -1
  503. package/lib/Link/Link.d.ts +1 -1
  504. package/lib/LogoSuite/LogoSuite.d.ts +1 -1
  505. package/lib/MediaPlaylist/MediaPlaylist.d.ts +4 -4
  506. package/lib/MinimalFooter/MinimalFooter.d.ts +3 -3
  507. package/lib/Pagination/Pagination.d.ts +1 -1
  508. package/lib/Pillar/Pillar.d.ts +2 -2
  509. package/lib/PricingOptions/PricingOptions.d.ts +1 -1
  510. package/lib/SectionIntroStacked/SectionIntroStacked.d.ts +3 -3
  511. package/lib/SubNav/SubNav.d.ts +4 -4
  512. package/lib/SubdomainNavBar/NavigationVisbilityObserver.d.ts +3 -1
  513. package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +157 -20
  514. package/lib/SubdomainNavBar/SubdomainNavBarLinkContext.d.ts +8 -0
  515. package/lib/SubdomainNavBar/useSearchKeyboardShortcut.d.ts +7 -0
  516. package/lib/SubdomainNavBar/useSearchResults.d.ts +23 -0
  517. package/lib/SubdomainNavBar/useVisibilityObserver.d.ts +1 -1
  518. package/lib/Testimonial/Testimonial.d.ts +1 -1
  519. package/lib/Text/Text.d.ts +1 -1
  520. package/lib/TextCursorAnimation/TextCursorAnimation.d.ts +1 -1
  521. package/lib/ThemeProvider/ThemeProvider.d.ts +1 -1
  522. package/lib/Timeline/Timeline.d.ts +3 -3
  523. package/lib/VideoPlayer/VideoPlayer.d.ts +2 -2
  524. package/lib/VideoPlayer/components/CCButton/CCButton.d.ts +2 -2
  525. package/lib/VideoPlayer/components/Captions/Captions.d.ts +2 -2
  526. package/lib/VideoPlayer/components/ControlsBar/ControlsBar.d.ts +2 -2
  527. package/lib/VideoPlayer/components/FullScreenButton/FullScreenButton.d.ts +2 -2
  528. package/lib/VideoPlayer/components/IconControl/IconControl.d.ts +2 -2
  529. package/lib/VideoPlayer/components/MuteButton/MuteButton.d.ts +2 -2
  530. package/lib/VideoPlayer/components/PauseIcon/PauseIcon.d.ts +2 -2
  531. package/lib/VideoPlayer/components/PlayIcon/PlayIcon.d.ts +2 -2
  532. package/lib/VideoPlayer/components/PlayPauseButton/PlayPauseButton.d.ts +2 -2
  533. package/lib/VideoPlayer/components/Range/Range.d.ts +1 -1
  534. package/lib/VideoPlayer/components/SeekControl/SeekControl.d.ts +2 -2
  535. package/lib/VideoPlayer/components/VideoTooltip/VideoTooltip.d.ts +2 -2
  536. package/lib/VideoPlayer/components/VolumeControl/VolumeControl.d.ts +2 -1
  537. package/lib/animation/Animate/Animate.d.ts +1 -1
  538. package/lib/animation/AnimationProvider/AnimationProvider.d.ts +1 -1
  539. package/lib/component-helpers.d.ts +2 -2
  540. package/lib/css/main.css +1390 -1056
  541. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  542. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  543. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  544. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  545. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  546. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  547. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  548. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  549. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  550. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  551. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  552. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  553. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  554. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  555. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  556. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  557. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  558. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  559. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  560. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  561. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  562. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  563. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  564. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  565. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  566. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  567. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  568. package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
  569. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  570. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  571. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  572. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  573. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  574. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  575. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  576. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  577. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  578. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  579. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  580. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  581. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  582. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
  583. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
  584. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  585. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  586. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  587. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  588. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  589. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  590. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  591. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  592. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  593. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  594. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  595. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  596. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
  597. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  598. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  599. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  600. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  601. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  602. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  603. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  604. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  605. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  606. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  607. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  608. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  609. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +7 -1
  610. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  611. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  612. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  613. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  614. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  615. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  616. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
  617. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  618. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  619. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  620. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  621. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  622. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  623. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  624. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  625. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  626. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  627. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  628. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  629. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  630. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  631. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  632. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  633. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  634. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  635. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  636. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  637. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  638. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  639. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  640. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  641. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  642. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  643. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  644. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  645. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  646. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  647. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  648. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  649. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  650. package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
  651. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  652. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  653. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  654. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  655. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  656. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  657. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  658. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  659. package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
  660. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  661. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  662. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  663. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  664. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  665. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  666. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  667. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  668. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  669. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  670. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  671. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  672. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  673. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  674. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  675. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  676. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  677. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  678. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  679. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
  680. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  681. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  682. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  683. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  684. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  685. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  686. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  687. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  688. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  689. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  690. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  691. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  692. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  693. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  694. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  695. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  696. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  697. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  698. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  699. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  700. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  701. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  702. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  703. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  704. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  705. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  706. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  707. package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
  708. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  709. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  710. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  711. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  712. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  713. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  714. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  715. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  716. package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
  717. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  718. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  719. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  720. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  721. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  722. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  723. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  724. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  725. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  726. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  727. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  728. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  729. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  730. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  731. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  732. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  733. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  734. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  735. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  736. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
  737. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  738. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  739. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  740. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  741. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  742. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  743. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  744. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  745. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  746. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  747. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  748. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  749. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  750. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  751. package/lib/design-tokens/json/colors.json +3 -0
  752. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  753. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  754. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  755. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  756. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  757. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  758. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  759. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  760. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  761. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  762. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  763. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  764. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  765. package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
  766. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  767. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  768. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  769. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  770. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  771. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  772. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  773. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  774. package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
  775. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  776. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  777. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  778. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  779. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  780. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  781. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  782. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  783. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  784. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  785. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  786. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  787. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  788. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  789. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  790. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  791. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  792. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  793. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  794. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
  795. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  796. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  797. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  798. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  799. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  800. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  801. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  802. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  803. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  804. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  805. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  806. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  807. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  808. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  809. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  810. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  811. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  812. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  813. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  814. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  815. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  816. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  817. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  818. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  819. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  820. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  821. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  822. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  823. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  824. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  825. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  826. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  827. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  828. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  829. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  830. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  831. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  832. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  833. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  834. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  835. package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
  836. package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
  837. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  838. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  839. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  840. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  841. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  842. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  843. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  844. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  845. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  846. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  847. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  848. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  849. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  850. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  851. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  852. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  853. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
  854. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
  855. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  856. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  857. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  858. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  859. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  860. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  861. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  862. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  863. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  864. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  865. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  866. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  867. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  868. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  869. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  870. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  871. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  872. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  873. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  874. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  875. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  876. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  877. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  878. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  879. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  880. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  881. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  882. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  883. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  884. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  885. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  886. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  887. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  888. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  889. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  890. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  891. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  892. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  893. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
  894. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
  895. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  896. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  897. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  898. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  899. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  900. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  901. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  902. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  903. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  904. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  905. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  906. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  907. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  908. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  909. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  910. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  911. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  912. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  913. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  914. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  915. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  916. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  917. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  918. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  919. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  920. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  921. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  922. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  923. package/lib/forms/FormControl/FormControl.d.ts +5 -5
  924. package/lib/forms/Select/Select.d.ts +2 -2
  925. package/lib/index.js +1 -1
  926. package/lib/list/OrderedList/OrderedList.d.ts +2 -2
  927. package/lib/list/UnorderedList/UnorderedList.d.ts +2 -2
  928. package/lib/river/RiverAccordion/RiverAccordion.d.ts +4 -4
  929. package/lib/river/RiverBreakout/RiverBreakout.d.ts +1 -1
  930. package/lib/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +5 -5
  931. package/lib/river/RiverStoryScroll/RiverStoryScroll.d.ts +1 -1
  932. package/lib/river/RiverStoryScroll/RiverStoryScrollProvider.d.ts +2 -2
  933. package/lib/river/RiverStoryScroll/RiverStoryScrollResponder.d.ts +1 -1
  934. package/lib/river/RiverStoryScroll/RiverStoryScrollTracker.d.ts +1 -1
  935. package/llms.txt +2 -2
  936. package/package.json +24 -24
  937. package/esm/SubdomainNavBar/SubdomainNavBar.module-Rf4qEDka.css +0 -1
  938. package/esm/node_modules/@primer/octicons-react/dist/index.esm.js +0 -434
  939. package/esm/node_modules/@primer/octicons-react/dist/index.esm.js.map +0 -1
  940. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-ehJCoExh.css +0 -1
@@ -1,5 +1,6 @@
1
- import './shared.module-CrdMh7Vf.css';var e = { gridline: "Primer_Brand__shared-module__gridline___FDR_5" };
1
+ import './shared.module-CrdMh7Vf.css';//#region src/component-helpers/shared.module.css
2
+ var e = "Primer_Brand__shared-module__gridline___FDR_5", t = { gridline: e };
2
3
  //#endregion
3
- export { e as default };
4
+ export { t as default, e as gridline };
4
5
 
5
6
  //# sourceMappingURL=shared.module.js.map
@@ -6,14 +6,14 @@ import { AnimateProps } from './animation/AnimationProvider';
6
6
  export declare const Container: ({ children, style, }: {
7
7
  children: React.ReactElement[] | React.ReactElement;
8
8
  style?: React.CSSProperties;
9
- }) => import("react/jsx-runtime").JSX.Element;
9
+ }) => React.JSX.Element;
10
10
  type RedlineBackgroundProps = {
11
11
  height?: number;
12
12
  hasBorder?: boolean;
13
13
  className?: string;
14
14
  style?: CSSProperties;
15
15
  };
16
- export declare function RedlineBackground({ height, hasBorder, style, ...rest }: PropsWithChildren<RedlineBackgroundProps>): import("react/jsx-runtime").JSX.Element;
16
+ export declare function RedlineBackground({ height, hasBorder, style, ...rest }: PropsWithChildren<RedlineBackgroundProps>): React.JSX.Element;
17
17
  /**
18
18
  * Base Types
19
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"component-helpers.d.ts","sourceRoot":"","sources":["../src/component-helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,GAAG,EAAE,iBAAiB,EAAE,aAAa,EAAC,MAAM,OAAO,CAAA;AAClE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAA;AAE1D;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,sBAGvB;IACD,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE,GAAG,KAAK,CAAC,YAAY,CAAA;IACnD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B,4CAA+E,CAAA;AAEhF,KAAK,sBAAsB,GAAG;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAgB,EAChB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,2CAoB3C;AAED;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;IACZ,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB,CAAA"}
1
+ {"version":3,"file":"component-helpers.d.ts","sourceRoot":"","sources":["../src/component-helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,GAAG,EAAE,iBAAiB,EAAE,aAAa,EAAC,MAAM,OAAO,CAAA;AAClE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAA;AAE1D;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,sBAGvB;IACD,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE,GAAG,KAAK,CAAC,YAAY,CAAA;IACnD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B,sBAA+E,CAAA;AAEhF,KAAK,sBAAsB,GAAG;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAgB,EAChB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,qBAoB3C;AAED;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;IACZ,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":[],"sources":["../src/constants.tsx"],"sourcesContent":["export const Colors = [\n 'default',\n 'blue',\n 'coral',\n 'green',\n 'gray',\n 'indigo',\n 'lemon',\n 'lime',\n 'orange',\n 'pink',\n 'purple',\n 'red',\n 'teal',\n 'yellow',\n] as const\n\nexport const BiColorGradients = ['blue-purple', 'green-blue', 'pink-blue', 'purple-red', 'red-orange'] as const\nexport const TriColorGradients = ['green-blue-purple'] as const\n\n// TODO: consider generating the scale from style dictionary and serve from the brand-primitives package\nexport const BaseSizeScale = [4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 60, 64, 80, 88, 96, 112, 128] as const\ntype BaseSizeScale = (typeof BaseSizeScale)[number]\n"],"mappings":";AAAA,IAAa,IAAS;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,EAEY,IAAmB;CAAC;CAAe;CAAc;CAAa;CAAc;CAAa,EACzF,IAAoB,CAAC,oBAAoB,EAGzC,IAAgB;CAAC;CAAG;CAAG;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAK;CAAI"}
1
+ {"version":3,"file":"constants.js","names":[],"sources":["../src/constants.tsx"],"sourcesContent":["export const Colors = [\n 'default',\n 'blue',\n 'coral',\n 'green',\n 'gray',\n 'indigo',\n 'lemon',\n 'lime',\n 'orange',\n 'pink',\n 'purple',\n 'red',\n 'teal',\n 'yellow',\n] as const\n\nexport const BiColorGradients = ['blue-purple', 'green-blue', 'pink-blue', 'purple-red', 'red-orange'] as const\nexport const TriColorGradients = ['green-blue-purple'] as const\n\n// TODO: consider generating the scale from style dictionary and serve from the brand-primitives package\nexport const BaseSizeScale = [4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 60, 64, 80, 88, 96, 112, 128] as const\ntype BaseSizeScale = (typeof BaseSizeScale)[number]\n"],"mappings":";AAAA,IAAa,IAAS;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,GAEa,IAAmB;CAAC;CAAe;CAAc;CAAa;CAAc;AAAY,GACxF,IAAoB,CAAC,mBAAmB,GAGxC,IAAgB;CAAC;CAAG;CAAG;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAK;AAAG"}
@@ -1,4 +1,4 @@
1
- import './utilities-BivJncWo.css';import './reset-CSgu34_f.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/typography/typography-responsive-D6GwCHec.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/size/size-SXubYfUg.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/size/breakpoints-DV9ZFHGu.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/size/border-B0NqqX5b.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/colors/global-with-modes-Bdet_nBw.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/animation/base-BIr7u5g8.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/base/typography/typography-CAC6sGQ3.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/base/size/size-6EfgMG7y.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes-BVk7bh0Y.css';/* empty css */
1
+ import './utilities-BivJncWo.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/colors/global-with-modes-Bdet_nBw.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/size/border-B0NqqX5b.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/size/breakpoints-DV9ZFHGu.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/typography/typography-responsive-D6GwCHec.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/size/size-SXubYfUg.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/animation/base-BIr7u5g8.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/base/typography/typography-CAC6sGQ3.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/base/size/size-6EfgMG7y.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes-BVk7bh0Y.css';import './reset-CSgu34_f.css';/* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
@@ -1 +1 @@
1
- {"version":3,"file":"findElementInChildren.js","names":[],"sources":["../src/findElementInChildren.ts"],"sourcesContent":["import React from 'react'\n\nconst findElementInChildren = (children: React.ReactNode, element: React.ElementType): boolean => {\n if (!children) {\n return false\n }\n\n if (Array.isArray(children)) {\n for (const child of children) {\n if (findElementInChildren(child, element)) {\n return true\n }\n }\n } else if (React.isValidElement<{children?: React.ReactNode}>(children)) {\n if (children.type === element) {\n return true\n }\n\n if (children.props.children && findElementInChildren(children.props.children, element)) {\n return true\n }\n }\n\n return false\n}\n\nexport default findElementInChildren\n"],"mappings":";;AAEA,IAAM,KAAyB,GAA2B,MAAwC;AAChG,KAAI,CAAC,EACH,QAAO;AAGT,KAAI,MAAM,QAAQ,EAAS;OACpB,IAAM,KAAS,EAClB,KAAI,EAAsB,GAAO,EAAQ,CACvC,QAAO;YAGF,EAAM,eAA6C,EAAS,KACjE,EAAS,SAAS,KAIlB,EAAS,MAAM,YAAY,EAAsB,EAAS,MAAM,UAAU,EAAQ,EACpF,QAAO;AAIX,QAAO"}
1
+ {"version":3,"file":"findElementInChildren.js","names":[],"sources":["../src/findElementInChildren.ts"],"sourcesContent":["import React from 'react'\n\nconst findElementInChildren = (children: React.ReactNode, element: React.ElementType): boolean => {\n if (!children) {\n return false\n }\n\n if (Array.isArray(children)) {\n for (const child of children) {\n if (findElementInChildren(child, element)) {\n return true\n }\n }\n } else if (React.isValidElement<{children?: React.ReactNode}>(children)) {\n if (children.type === element) {\n return true\n }\n\n if (children.props.children && findElementInChildren(children.props.children, element)) {\n return true\n }\n }\n\n return false\n}\n\nexport default findElementInChildren\n"],"mappings":";;AAEA,IAAM,KAAyB,GAA2B,MAAwC;CAChG,IAAI,CAAC,GACH,OAAO;CAGT,IAAI,MAAM,QAAQ,CAAQ;OACnB,IAAM,KAAS,GAClB,IAAI,EAAsB,GAAO,CAAO,GACtC,OAAO;CAAA,OAGN,IAAI,EAAM,eAA6C,CAAQ,MAChE,EAAS,SAAS,KAIlB,EAAS,MAAM,YAAY,EAAsB,EAAS,MAAM,UAAU,CAAO,IACnF,OAAO;CAIX,OAAO;AACT"}
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { useId as t } from "../../hooks/useId.js";
3
3
  import { useProvidedRefOrCreate as n } from "../../hooks/useRef.js";
4
4
  import r from "../../hooks/useIsomorphicLayoutEffect.js";
@@ -25,7 +25,7 @@ var l = a(({ checked: a, className: l, indeterminate: u, disabled: d, id: f, onC
25
25
  "aria-invalid": h === "error" ? "true" : "false",
26
26
  "aria-required": m ? "true" : "false",
27
27
  "aria-checked": u ? "mixed" : a,
28
- checked: u ? !1 : a,
28
+ checked: !u && a,
29
29
  className: e(i["Checkbox-input"]),
30
30
  disabled: d,
31
31
  name: g,
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","names":[],"sources":["../../../src/forms/Checkbox/Checkbox.tsx"],"sourcesContent":["import React, {forwardRef, useCallback, type InputHTMLAttributes, type ReactElement} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../../hooks/useId'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormValidationStatus} from '../form-types'\nimport useLayoutEffect from '../../hooks/useIsomorphicLayoutEffect'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './Checkbox.module.css'\nimport {useProvidedRefOrCreate} from '../../hooks/useRef'\n\nexport type CheckboxProps = {\n /**\n * Apply indeterminate visual appearance to the checkbox\n */\n indeterminate?: boolean\n /**\n * Apply inactive visual appearance to the checkbox\n */\n disabled?: boolean\n /**\n * Indicates whether the checkbox must be checked\n */\n required?: boolean\n /**\n * Only used to inform ARIA attributes. Individual checkboxes do not have validation styles.\n */\n validationStatus?: FormValidationStatus\n /**\n * A unique value that is never shown to the user.\n * Used during form submission and to identify which checkbox inputs are selected\n */\n value?: string\n} & Exclude<InputHTMLAttributes<HTMLInputElement>, 'value'> &\n BaseProps<HTMLInputElement>\n\nconst CheckboxInternal = (\n {\n checked,\n className,\n indeterminate,\n disabled,\n id,\n onChange,\n required,\n validationStatus,\n value,\n ...rest\n }: CheckboxProps,\n ref,\n): ReactElement => {\n const inputRef = useProvidedRefOrCreate<HTMLInputElement | null>(ref || null)\n const uniqueId = useId(id)\n\n useLayoutEffect(() => {\n if (inputRef.current) {\n inputRef.current.indeterminate = indeterminate || false\n }\n }, [indeterminate, checked, inputRef])\n\n const onClick = useCallback(() => {\n if (!disabled && inputRef.current) {\n inputRef.current.click()\n }\n }, [disabled, inputRef])\n\n return (\n <span className={styles['Checkbox-wrapper']}>\n <input\n id={uniqueId}\n aria-invalid={validationStatus === 'error' ? 'true' : 'false'}\n aria-required={required ? 'true' : 'false'}\n aria-checked={indeterminate ? 'mixed' : checked}\n checked={indeterminate ? false : checked}\n className={clsx(styles['Checkbox-input'])}\n disabled={disabled}\n name={value}\n onChange={onChange}\n ref={inputRef}\n required={required}\n type=\"checkbox\"\n value={value}\n {...rest}\n />\n <span\n className={clsx(styles['Checkbox'], indeterminate && styles['Checkbox--indeterminate'], className)}\n onClick={onClick}\n tabIndex={-1}\n aria-hidden=\"true\"\n >\n {indeterminate ? (\n <svg\n className={clsx(styles['Checkbox-checkmark'])}\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 16 16\"\n width=\"16\"\n height=\"16\"\n aria-hidden=\"true\"\n >\n <path fillRule=\"evenodd\" d=\"M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z\"></path>\n </svg>\n ) : (\n <svg viewBox=\"0 0 100 100\" className={clsx(styles['Checkbox-checkmark'])} aria-hidden=\"true\">\n <path\n className={clsx(styles['Checkbox-checkmark-path'])}\n fill=\"none\"\n stroke=\"#000\"\n strokeWidth=\"13\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeMiterlimit=\"10\"\n d=\"M12.1 52.1l24.4 24.4 53-53\"\n />\n </svg>\n )}\n </span>\n </span>\n )\n}\n\nexport const Checkbox = forwardRef(CheckboxInternal)\n"],"mappings":";;;;;;;;AAyHA,IAAa,IAAW,GAnFtB,EACE,YACA,cACA,kBACA,aACA,OACA,aACA,aACA,qBACA,UACA,GAAG,KAEL,MACiB;CACjB,IAAM,IAAW,EAAgD,KAAO,KAAK,EACvE,IAAW,EAAM,EAAG;AAE1B,SAAsB;AACpB,EAAI,EAAS,YACX,EAAS,QAAQ,gBAAgB,KAAiB;IAEnD;EAAC;EAAe;EAAS;EAAS,CAAC;CAEtC,IAAM,IAAU,QAAkB;AAChC,EAAI,CAAC,KAAY,EAAS,WACxB,EAAS,QAAQ,OAAO;IAEzB,CAAC,GAAU,EAAS,CAAC;AAExB,QACE,kBAAC,QAAD;EAAM,WAAW,EAAO;YAAxB,CACE,kBAAC,SAAD;GACE,IAAI;GACJ,gBAAc,MAAqB,UAAU,SAAS;GACtD,iBAAe,IAAW,SAAS;GACnC,gBAAc,IAAgB,UAAU;GACxC,SAAS,IAAgB,KAAQ;GACjC,WAAW,EAAK,EAAO,kBAAkB;GAC/B;GACV,MAAM;GACI;GACV,KAAK;GACK;GACV,MAAK;GACE;GACP,GAAI;GACJ,CAAA,EACF,kBAAC,QAAD;GACE,WAAW,EAAK,EAAO,UAAa,KAAiB,EAAO,4BAA4B,EAAU;GACzF;GACT,UAAU;GACV,eAAY;aAEX,IACC,kBAAC,OAAD;IACE,WAAW,EAAK,EAAO,sBAAsB;IAC7C,OAAM;IACN,SAAQ;IACR,OAAM;IACN,QAAO;IACP,eAAY;cAEZ,kBAAC,QAAD;KAAM,UAAS;KAAU,GAAE;KAA8E,CAAA;IACrG,CAAA,GAEN,kBAAC,OAAD;IAAK,SAAQ;IAAc,WAAW,EAAK,EAAO,sBAAsB;IAAE,eAAY;cACpF,kBAAC,QAAD;KACE,WAAW,EAAK,EAAO,2BAA2B;KAClD,MAAK;KACL,QAAO;KACP,aAAY;KACZ,eAAc;KACd,gBAAe;KACf,kBAAiB;KACjB,GAAE;KACF,CAAA;IACE,CAAA;GAEH,CAAA,CACF;;EAIyC"}
1
+ {"version":3,"file":"Checkbox.js","names":[],"sources":["../../../src/forms/Checkbox/Checkbox.tsx"],"sourcesContent":["import React, {forwardRef, useCallback, type InputHTMLAttributes, type ReactElement} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../../hooks/useId'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormValidationStatus} from '../form-types'\nimport useLayoutEffect from '../../hooks/useIsomorphicLayoutEffect'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './Checkbox.module.css'\nimport {useProvidedRefOrCreate} from '../../hooks/useRef'\n\nexport type CheckboxProps = {\n /**\n * Apply indeterminate visual appearance to the checkbox\n */\n indeterminate?: boolean\n /**\n * Apply inactive visual appearance to the checkbox\n */\n disabled?: boolean\n /**\n * Indicates whether the checkbox must be checked\n */\n required?: boolean\n /**\n * Only used to inform ARIA attributes. Individual checkboxes do not have validation styles.\n */\n validationStatus?: FormValidationStatus\n /**\n * A unique value that is never shown to the user.\n * Used during form submission and to identify which checkbox inputs are selected\n */\n value?: string\n} & Exclude<InputHTMLAttributes<HTMLInputElement>, 'value'> &\n BaseProps<HTMLInputElement>\n\nconst CheckboxInternal = (\n {\n checked,\n className,\n indeterminate,\n disabled,\n id,\n onChange,\n required,\n validationStatus,\n value,\n ...rest\n }: CheckboxProps,\n ref,\n): ReactElement => {\n const inputRef = useProvidedRefOrCreate<HTMLInputElement | null>(ref || null)\n const uniqueId = useId(id)\n\n useLayoutEffect(() => {\n if (inputRef.current) {\n inputRef.current.indeterminate = indeterminate || false\n }\n }, [indeterminate, checked, inputRef])\n\n const onClick = useCallback(() => {\n if (!disabled && inputRef.current) {\n inputRef.current.click()\n }\n }, [disabled, inputRef])\n\n return (\n <span className={styles['Checkbox-wrapper']}>\n <input\n id={uniqueId}\n aria-invalid={validationStatus === 'error' ? 'true' : 'false'}\n aria-required={required ? 'true' : 'false'}\n aria-checked={indeterminate ? 'mixed' : checked}\n checked={indeterminate ? false : checked}\n className={clsx(styles['Checkbox-input'])}\n disabled={disabled}\n name={value}\n onChange={onChange}\n ref={inputRef}\n required={required}\n type=\"checkbox\"\n value={value}\n {...rest}\n />\n <span\n className={clsx(styles['Checkbox'], indeterminate && styles['Checkbox--indeterminate'], className)}\n onClick={onClick}\n tabIndex={-1}\n aria-hidden=\"true\"\n >\n {indeterminate ? (\n <svg\n className={clsx(styles['Checkbox-checkmark'])}\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 16 16\"\n width=\"16\"\n height=\"16\"\n aria-hidden=\"true\"\n >\n <path fillRule=\"evenodd\" d=\"M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z\"></path>\n </svg>\n ) : (\n <svg viewBox=\"0 0 100 100\" className={clsx(styles['Checkbox-checkmark'])} aria-hidden=\"true\">\n <path\n className={clsx(styles['Checkbox-checkmark-path'])}\n fill=\"none\"\n stroke=\"#000\"\n strokeWidth=\"13\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeMiterlimit=\"10\"\n d=\"M12.1 52.1l24.4 24.4 53-53\"\n />\n </svg>\n )}\n </span>\n </span>\n )\n}\n\nexport const Checkbox = forwardRef(CheckboxInternal)\n"],"mappings":";;;;;;;;AAyHA,IAAa,IAAW,GAnFtB,EACE,YACA,cACA,kBACA,aACA,OACA,aACA,aACA,qBACA,UACA,GAAG,KAEL,MACiB;CACjB,IAAM,IAAW,EAAgD,KAAO,IAAI,GACtE,IAAW,EAAM,CAAE;CAEzB,QAAsB;EACpB,AAAI,EAAS,YACX,EAAS,QAAQ,gBAAgB,KAAiB;CAEtD,GAAG;EAAC;EAAe;EAAS;CAAQ,CAAC;CAErC,IAAM,IAAU,QAAkB;EAChC,AAAI,CAAC,KAAY,EAAS,WACxB,EAAS,QAAQ,MAAM;CAE3B,GAAG,CAAC,GAAU,CAAQ,CAAC;CAEvB,OACE,kBAAC,QAAD;EAAM,WAAW,EAAO;YAAxB,CACE,kBAAC,SAAD;GACE,IAAI;GACJ,gBAAc,MAAqB,UAAU,SAAS;GACtD,iBAAe,IAAW,SAAS;GACnC,gBAAc,IAAgB,UAAU;GACxC,SAAS,MAAwB;GACjC,WAAW,EAAK,EAAO,iBAAiB;GAC9B;GACV,MAAM;GACI;GACV,KAAK;GACK;GACV,MAAK;GACE;GACP,GAAI;EACL,CAAA,GACD,kBAAC,QAAD;GACE,WAAW,EAAK,EAAO,UAAa,KAAiB,EAAO,4BAA4B,CAAS;GACxF;GACT,UAAU;GACV,eAAY;aAEX,IACC,kBAAC,OAAD;IACE,WAAW,EAAK,EAAO,qBAAqB;IAC5C,OAAM;IACN,SAAQ;IACR,OAAM;IACN,QAAO;IACP,eAAY;cAEZ,kBAAC,QAAD;KAAM,UAAS;KAAU,GAAE;IAA6E,CAAA;GACrG,CAAA,IAEL,kBAAC,OAAD;IAAK,SAAQ;IAAc,WAAW,EAAK,EAAO,qBAAqB;IAAG,eAAY;cACpF,kBAAC,QAAD;KACE,WAAW,EAAK,EAAO,0BAA0B;KACjD,MAAK;KACL,QAAO;KACP,aAAY;KACZ,eAAc;KACd,gBAAe;KACf,kBAAiB;KACjB,GAAE;IACH,CAAA;GACE,CAAA;EAEH,CAAA,CACF;;AAEV,CAEmD"}
@@ -1,12 +1,13 @@
1
- import './Checkbox.module-CtRGEfSq.css';var e = {
1
+ import './Checkbox.module-CtRGEfSq.css';//#region src/forms/Checkbox/Checkbox.module.css
2
+ var e = "Primer_Brand__Checkbox-module__Checkbox___u6_Bq", t = {
2
3
  "Checkbox-wrapper": "Primer_Brand__Checkbox-module__Checkbox-wrapper___81I1z",
3
- Checkbox: "Primer_Brand__Checkbox-module__Checkbox___u6_Bq",
4
+ Checkbox: e,
4
5
  "Checkbox-input": "Primer_Brand__Checkbox-module__Checkbox-input___NQtTz",
5
6
  "Checkbox-checkmark": "Primer_Brand__Checkbox-module__Checkbox-checkmark___1RiBT",
6
7
  "Checkbox-checkmark-path": "Primer_Brand__Checkbox-module__Checkbox-checkmark-path___NHI_D",
7
8
  "Checkbox--indeterminate": "Primer_Brand__Checkbox-module__Checkbox--indeterminate___TsIkM"
8
9
  };
9
10
  //#endregion
10
- export { e as default };
11
+ export { e as Checkbox, t as default };
11
12
 
12
13
  //# sourceMappingURL=Checkbox.module.js.map
@@ -1,7 +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 { useId as t } from "../../hooks/useId.js";
3
3
  import { Text as n } from "../../Text/Text.js";
4
- import { AlertFillIcon as r, CheckCircleFillIcon as i } from "../../node_modules/@primer/octicons-react/dist/index.esm.js";
4
+ import { AlertFillIcon as r } from "../../node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js";
5
+ import { CheckCircleFillIcon as i } from "../../node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js";
5
6
  import a from "./ControlGroup.module.js";
6
7
  import { Children as o, createContext as s, forwardRef as c, isValidElement as l, useContext as u } from "react";
7
8
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"ControlGroup.js","names":[],"sources":["../../../src/forms/ControlGroup/ControlGroup.tsx"],"sourcesContent":["import React, {Children, createContext, forwardRef, isValidElement, useContext, type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\nimport {AlertFillIcon, CheckCircleFillIcon} from '@primer/octicons-react'\nimport {useId} from '../../hooks/useId'\n\nimport type {FormValidationStatus} from '..'\nimport {Text} from '../..'\nimport styles from './ControlGroup.module.css'\n\ntype ControlGroupContext = {\n id?: string\n}\n\nconst ControlGroupContext = createContext<ControlGroupContext | null>(null)\n\nconst useControlGroup = () => {\n const context = useContext(ControlGroupContext)\n\n if (!context) {\n throw new Error(\n 'useControlGroup must be used within an ControlGroupProvider. Did you forget to wrap your component in a <ControlGroupProvider>?',\n )\n }\n\n return context\n}\n\nexport type ControlGroupProps = HTMLAttributes<HTMLFieldSetElement>\nconst _ControlGroup = forwardRef<HTMLFieldSetElement, ControlGroupProps>(({className, id, ...props}, ref) => {\n const uniqueId = useId(id)\n\n const containsCaption = Children.toArray(props.children).some(\n child => isValidElement(child) && child.type === ControlGroupCaption,\n )\n const containsValidation = Children.toArray(props.children).some(\n child => isValidElement(child) && child.type === ControlGroupValidation,\n )\n\n const describedBy =\n [containsCaption && `${uniqueId}-caption`, containsValidation && `${uniqueId}-validation`]\n .filter(Boolean)\n .join(' ') || undefined\n\n return (\n <ControlGroupContext.Provider value={{id: uniqueId}}>\n <fieldset\n ref={ref}\n className={clsx(styles.ControlGroup__container, className)}\n aria-describedby={describedBy}\n {...props}\n />\n </ControlGroupContext.Provider>\n )\n})\n\nexport type ControlGroupLabelProps = {visuallyHidden?: boolean} & HTMLAttributes<HTMLLegendElement>\nconst ControlGroupLabel = forwardRef<HTMLLegendElement, ControlGroupLabelProps>(\n ({children, className, visuallyHidden, ...props}, ref) => {\n return (\n <legend\n ref={ref}\n className={clsx(styles.ControlGroup__label, visuallyHidden && 'visually-hidden', className)}\n {...props}\n >\n <Text as=\"span\" weight=\"medium\" size=\"100\">\n {children}\n </Text>\n </legend>\n )\n },\n)\n\nexport type ControlGroupCaptionProps = HTMLAttributes<HTMLSpanElement>\nconst ControlGroupCaption = forwardRef<HTMLSpanElement, ControlGroupCaptionProps>(({className, ...props}, ref) => {\n const {id} = useControlGroup()\n\n return <Text as=\"span\" size=\"100\" variant=\"muted\" ref={ref} id={`${id}-caption`} className={className} {...props} />\n})\n\nexport type ControlGroupValidationProps = {variant: FormValidationStatus} & HTMLAttributes<HTMLSpanElement>\nconst ControlGroupValidation = forwardRef<HTMLSpanElement, ControlGroupValidationProps>(\n ({className, variant, children, ...props}, ref) => {\n const {id} = useControlGroup()\n\n return (\n <Text\n as=\"span\"\n size=\"100\"\n ref={ref}\n id={`${id}-validation`}\n className={clsx(\n styles.ControlGroup__validation,\n styles['ControlGroup__validation--animate-in'],\n variant === 'success' && styles['ControlGroup__validation--success'],\n variant === 'error' && styles['ControlGroup__validation--error'],\n className,\n )}\n {...props}\n >\n {variant === 'success' && (\n <span className={styles['ControlGroup__validation-icon--success']}>\n <CheckCircleFillIcon />\n </span>\n )}\n {variant === 'error' && (\n <span className={styles['ControlGroup__validation-icon--error']}>\n <AlertFillIcon />\n </span>\n )}\n {children}\n </Text>\n )\n },\n)\n\nexport const ControlGroup = Object.assign(_ControlGroup, {\n Label: ControlGroupLabel,\n Caption: ControlGroupCaption,\n Validation: ControlGroupValidation,\n})\n"],"mappings":";;;;;;;;AAaA,IAAM,IAAsB,EAA0C,KAAK,EAErE,UAAwB;CAC5B,IAAM,IAAU,EAAW,EAAoB;AAE/C,KAAI,CAAC,EACH,OAAU,MACR,kIACD;AAGH,QAAO;GAIH,IAAgB,GAAoD,EAAC,cAAW,OAAI,GAAG,KAAQ,MAAQ;CAC3G,IAAM,IAAW,EAAM,EAAG,EAEpB,IAAkB,EAAS,QAAQ,EAAM,SAAS,CAAC,MACvD,MAAS,EAAe,EAAM,IAAI,EAAM,SAAS,EAClD,EACK,IAAqB,EAAS,QAAQ,EAAM,SAAS,CAAC,MAC1D,MAAS,EAAe,EAAM,IAAI,EAAM,SAAS,EAClD,EAEK,IACJ,CAAC,KAAmB,GAAG,EAAS,WAAW,KAAsB,GAAG,EAAS,aAAa,CACvF,OAAO,QAAQ,CACf,KAAK,IAAI,IAAI,KAAA;AAElB,QACE,kBAAC,EAAoB,UAArB;EAA8B,OAAO,EAAC,IAAI,GAAS;YACjD,kBAAC,YAAD;GACO;GACL,WAAW,EAAK,EAAO,yBAAyB,EAAU;GAC1D,oBAAkB;GAClB,GAAI;GACJ,CAAA;EAC2B,CAAA;EAEjC,EAGI,IAAoB,GACvB,EAAC,aAAU,cAAW,mBAAgB,GAAG,KAAQ,MAE9C,kBAAC,UAAD;CACO;CACL,WAAW,EAAK,EAAO,qBAAqB,KAAkB,mBAAmB,EAAU;CAC3F,GAAI;WAEJ,kBAAC,GAAD;EAAM,IAAG;EAAO,QAAO;EAAS,MAAK;EAClC;EACI,CAAA;CACA,CAAA,CAGd,EAGK,IAAsB,GAAuD,EAAC,cAAW,GAAG,KAAQ,MAAQ;CAChH,IAAM,EAAC,UAAM,GAAiB;AAE9B,QAAO,kBAAC,GAAD;EAAM,IAAG;EAAO,MAAK;EAAM,SAAQ;EAAa;EAAK,IAAI,GAAG,EAAG;EAAsB;EAAW,GAAI;EAAS,CAAA;EACpH,EAGI,IAAyB,GAC5B,EAAC,cAAW,YAAS,aAAU,GAAG,KAAQ,MAAQ;CACjD,IAAM,EAAC,UAAM,GAAiB;AAE9B,QACE,kBAAC,GAAD;EACE,IAAG;EACH,MAAK;EACA;EACL,IAAI,GAAG,EAAG;EACV,WAAW,EACT,EAAO,0BACP,EAAO,yCACP,MAAY,aAAa,EAAO,sCAChC,MAAY,WAAW,EAAO,oCAC9B,EACD;EACD,GAAI;YAZN;GAcG,MAAY,aACX,kBAAC,QAAD;IAAM,WAAW,EAAO;cACtB,kBAAC,GAAD,EAAuB,CAAA;IAClB,CAAA;GAER,MAAY,WACX,kBAAC,QAAD;IAAM,WAAW,EAAO;cACtB,kBAAC,GAAD,EAAiB,CAAA;IACZ,CAAA;GAER;GACI;;EAGZ,EAEY,IAAe,OAAO,OAAO,GAAe;CACvD,OAAO;CACP,SAAS;CACT,YAAY;CACb,CAAC"}
1
+ {"version":3,"file":"ControlGroup.js","names":[],"sources":["../../../src/forms/ControlGroup/ControlGroup.tsx"],"sourcesContent":["import React, {Children, createContext, forwardRef, isValidElement, useContext, type HTMLAttributes} from 'react'\nimport {clsx} from 'clsx'\nimport {AlertFillIcon, CheckCircleFillIcon} from '@primer/octicons-react'\nimport {useId} from '../../hooks/useId'\n\nimport type {FormValidationStatus} from '..'\nimport {Text} from '../..'\nimport styles from './ControlGroup.module.css'\n\ntype ControlGroupContext = {\n id?: string\n}\n\nconst ControlGroupContext = createContext<ControlGroupContext | null>(null)\n\nconst useControlGroup = () => {\n const context = useContext(ControlGroupContext)\n\n if (!context) {\n throw new Error(\n 'useControlGroup must be used within an ControlGroupProvider. Did you forget to wrap your component in a <ControlGroupProvider>?',\n )\n }\n\n return context\n}\n\nexport type ControlGroupProps = HTMLAttributes<HTMLFieldSetElement>\nconst _ControlGroup = forwardRef<HTMLFieldSetElement, ControlGroupProps>(({className, id, ...props}, ref) => {\n const uniqueId = useId(id)\n\n const containsCaption = Children.toArray(props.children).some(\n child => isValidElement(child) && child.type === ControlGroupCaption,\n )\n const containsValidation = Children.toArray(props.children).some(\n child => isValidElement(child) && child.type === ControlGroupValidation,\n )\n\n const describedBy =\n [containsCaption && `${uniqueId}-caption`, containsValidation && `${uniqueId}-validation`]\n .filter(Boolean)\n .join(' ') || undefined\n\n return (\n <ControlGroupContext.Provider value={{id: uniqueId}}>\n <fieldset\n ref={ref}\n className={clsx(styles.ControlGroup__container, className)}\n aria-describedby={describedBy}\n {...props}\n />\n </ControlGroupContext.Provider>\n )\n})\n\nexport type ControlGroupLabelProps = {visuallyHidden?: boolean} & HTMLAttributes<HTMLLegendElement>\nconst ControlGroupLabel = forwardRef<HTMLLegendElement, ControlGroupLabelProps>(\n ({children, className, visuallyHidden, ...props}, ref) => {\n return (\n <legend\n ref={ref}\n className={clsx(styles.ControlGroup__label, visuallyHidden && 'visually-hidden', className)}\n {...props}\n >\n <Text as=\"span\" weight=\"medium\" size=\"100\">\n {children}\n </Text>\n </legend>\n )\n },\n)\n\nexport type ControlGroupCaptionProps = HTMLAttributes<HTMLSpanElement>\nconst ControlGroupCaption = forwardRef<HTMLSpanElement, ControlGroupCaptionProps>(({className, ...props}, ref) => {\n const {id} = useControlGroup()\n\n return <Text as=\"span\" size=\"100\" variant=\"muted\" ref={ref} id={`${id}-caption`} className={className} {...props} />\n})\n\nexport type ControlGroupValidationProps = {variant: FormValidationStatus} & HTMLAttributes<HTMLSpanElement>\nconst ControlGroupValidation = forwardRef<HTMLSpanElement, ControlGroupValidationProps>(\n ({className, variant, children, ...props}, ref) => {\n const {id} = useControlGroup()\n\n return (\n <Text\n as=\"span\"\n size=\"100\"\n ref={ref}\n id={`${id}-validation`}\n className={clsx(\n styles.ControlGroup__validation,\n styles['ControlGroup__validation--animate-in'],\n variant === 'success' && styles['ControlGroup__validation--success'],\n variant === 'error' && styles['ControlGroup__validation--error'],\n className,\n )}\n {...props}\n >\n {variant === 'success' && (\n <span className={styles['ControlGroup__validation-icon--success']}>\n <CheckCircleFillIcon />\n </span>\n )}\n {variant === 'error' && (\n <span className={styles['ControlGroup__validation-icon--error']}>\n <AlertFillIcon />\n </span>\n )}\n {children}\n </Text>\n )\n },\n)\n\nexport const ControlGroup = Object.assign(_ControlGroup, {\n Label: ControlGroupLabel,\n Caption: ControlGroupCaption,\n Validation: ControlGroupValidation,\n})\n"],"mappings":";;;;;;;;;AAaA,IAAM,IAAsB,EAA0C,IAAI,GAEpE,UAAwB;CAC5B,IAAM,IAAU,EAAW,CAAmB;CAE9C,IAAI,CAAC,GACH,MAAU,MACR,iIACF;CAGF,OAAO;AACT,GAGM,IAAgB,GAAoD,EAAC,cAAW,OAAI,GAAG,KAAQ,MAAQ;CAC3G,IAAM,IAAW,EAAM,CAAE,GAEnB,IAAkB,EAAS,QAAQ,EAAM,QAAQ,CAAC,CAAC,MACvD,MAAS,EAAe,CAAK,KAAK,EAAM,SAAS,CACnD,GACM,IAAqB,EAAS,QAAQ,EAAM,QAAQ,CAAC,CAAC,MAC1D,MAAS,EAAe,CAAK,KAAK,EAAM,SAAS,CACnD,GAEM,IACJ,CAAC,KAAmB,GAAG,EAAS,WAAW,KAAsB,GAAG,EAAS,YAAY,CAAC,CACvF,OAAO,OAAO,CAAC,CACf,KAAK,GAAG,KAAK,KAAA;CAElB,OACE,kBAAC,EAAoB,UAArB;EAA8B,OAAO,EAAC,IAAI,EAAQ;YAChD,kBAAC,YAAD;GACO;GACL,WAAW,EAAK,EAAO,yBAAyB,CAAS;GACzD,oBAAkB;GAClB,GAAI;EACL,CAAA;CAC2B,CAAA;AAElC,CAAC,GAGK,IAAoB,GACvB,EAAC,aAAU,cAAW,mBAAgB,GAAG,KAAQ,MAE9C,kBAAC,UAAD;CACO;CACL,WAAW,EAAK,EAAO,qBAAqB,KAAkB,mBAAmB,CAAS;CAC1F,GAAI;WAEJ,kBAAC,GAAD;EAAM,IAAG;EAAO,QAAO;EAAS,MAAK;EAClC;CACG,CAAA;AACA,CAAA,CAGd,GAGM,IAAsB,GAAuD,EAAC,cAAW,GAAG,KAAQ,MAAQ;CAChH,IAAM,EAAC,UAAM,EAAgB;CAE7B,OAAO,kBAAC,GAAD;EAAM,IAAG;EAAO,MAAK;EAAM,SAAQ;EAAa;EAAK,IAAI,GAAG,EAAG;EAAsB;EAAW,GAAI;CAAQ,CAAA;AACrH,CAAC,GAGK,IAAyB,GAC5B,EAAC,cAAW,YAAS,aAAU,GAAG,KAAQ,MAAQ;CACjD,IAAM,EAAC,UAAM,EAAgB;CAE7B,OACE,kBAAC,GAAD;EACE,IAAG;EACH,MAAK;EACA;EACL,IAAI,GAAG,EAAG;EACV,WAAW,EACT,EAAO,0BACP,EAAO,yCACP,MAAY,aAAa,EAAO,sCAChC,MAAY,WAAW,EAAO,oCAC9B,CACF;EACA,GAAI;YAZN;GAcG,MAAY,aACX,kBAAC,QAAD;IAAM,WAAW,EAAO;cACtB,kBAAC,GAAD,CAAsB,CAAA;GAClB,CAAA;GAEP,MAAY,WACX,kBAAC,QAAD;IAAM,WAAW,EAAO;cACtB,kBAAC,GAAD,CAAgB,CAAA;GACZ,CAAA;GAEP;EACG;;AAEV,CACF,GAEa,IAAe,OAAO,OAAO,GAAe;CACvD,OAAO;CACP,SAAS;CACT,YAAY;AACd,CAAC"}
@@ -1,15 +1,16 @@
1
- import './ControlGroup.module-XDWDqxx9.css';var e = {
2
- ControlGroup__container: "Primer_Brand__ControlGroup-module__ControlGroup__container___k0gGq",
3
- ControlGroup__label: "Primer_Brand__ControlGroup-module__ControlGroup__label___T4WJ_",
4
- ControlGroup__validation: "Primer_Brand__ControlGroup-module__ControlGroup__validation___Mw_kk",
1
+ import './ControlGroup.module-XDWDqxx9.css';//#region src/forms/ControlGroup/ControlGroup.module.css
2
+ var e = "Primer_Brand__ControlGroup-module__ControlGroup__container___k0gGq", t = "Primer_Brand__ControlGroup-module__ControlGroup__label___T4WJ_", n = "Primer_Brand__ControlGroup-module__ControlGroup__validation___Mw_kk", r = "Primer_Brand__ControlGroup-module__ControlGroupValidationFadeIn___XyNBx", i = {
3
+ ControlGroup__container: e,
4
+ ControlGroup__label: t,
5
+ ControlGroup__validation: n,
5
6
  "ControlGroup__validation--success": "Primer_Brand__ControlGroup-module__ControlGroup__validation--success___MyYHt",
6
7
  "ControlGroup__validation--error": "Primer_Brand__ControlGroup-module__ControlGroup__validation--error___LauSr",
7
8
  "ControlGroup__validation-icon--success": "Primer_Brand__ControlGroup-module__ControlGroup__validation-icon--success___DM0ZI",
8
9
  "ControlGroup__validation-icon--error": "Primer_Brand__ControlGroup-module__ControlGroup__validation-icon--error___IDxnE",
9
10
  "ControlGroup__validation--animate-in": "Primer_Brand__ControlGroup-module__ControlGroup__validation--animate-in___RqXFv",
10
- ControlGroupValidationFadeIn: "Primer_Brand__ControlGroup-module__ControlGroupValidationFadeIn___XyNBx"
11
+ ControlGroupValidationFadeIn: r
11
12
  };
12
13
  //#endregion
13
- export { e as default };
14
+ export { r as ControlGroupValidationFadeIn, e as ControlGroup__container, t as ControlGroup__label, n as ControlGroup__validation, i as default };
14
15
 
15
16
  //# sourceMappingURL=ControlGroup.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
  import type { FormValidationStatus, FormInputSizes } from '../';
4
4
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css';
@@ -47,10 +47,10 @@ type FormControlHintProps = PropsWithChildren<BaseProps<HTMLSpanElement>>;
47
47
  * FormControl
48
48
  * {@link https://primer.style/brand/components/FormControl/ See usage examples}.
49
49
  */
50
- export declare const FormControl: (({ children, className, hasBorder, fullWidth, id, required, size, validationStatus, ...rest }: PropsWithChildren<FormControlProps>) => import("react/jsx-runtime").JSX.Element) & {
51
- Label: ({ children, className, htmlFor, required, showRequiredIndicator, size, validationStatus, visuallyHidden, ...rest }: PropsWithChildren<FormControlLabelProps>) => import("react/jsx-runtime").JSX.Element;
52
- Validation: ({ children, validationStatus, className, ...props }: FormControlValidationProps) => import("react/jsx-runtime").JSX.Element;
53
- Hint: ({ className, ...rest }: FormControlHintProps) => import("react/jsx-runtime").JSX.Element;
50
+ export declare const FormControl: (({ children, className, hasBorder, fullWidth, id, required, size, validationStatus, ...rest }: PropsWithChildren<FormControlProps>) => React.JSX.Element) & {
51
+ Label: ({ children, className, htmlFor, required, showRequiredIndicator, size, validationStatus, visuallyHidden, ...rest }: PropsWithChildren<FormControlLabelProps>) => React.JSX.Element;
52
+ Validation: ({ children, validationStatus, className, ...props }: FormControlValidationProps) => React.JSX.Element;
53
+ Hint: ({ className, ...rest }: FormControlHintProps) => React.JSX.Element;
54
54
  };
55
55
  export {};
56
56
  //# sourceMappingURL=FormControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../../src/forms/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAK9C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAC,oBAAoB,EAAE,cAAc,EAAC,MAAM,KAAK,CAAA;AAS7D,OAAO,2GAA2G,CAAA;AAGlH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG;IACtD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC,CAAA;AA2JD,KAAK,qBAAqB,GAAG;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAA;AA4C/B,KAAK,0BAA0B,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC,GAAG,SAAS,CAAC,eAAe,CAAC,CAAA;AA8B9B,KAAK,oBAAoB,GAAG,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAA;AAMzE;;;GAGG;AACH,eAAO,MAAM,WAAW,kGAnOrB,iBAAiB,CAAC,gBAAgB,CAAC;gIAwJnC,iBAAiB,CAAC,qBAAqB,CAAC;sEAqCuC,0BAA0B;mCA8B7D,oBAAoB;CAYjE,CAAA"}
1
+ {"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../../src/forms/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAK9C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAC,oBAAoB,EAAE,cAAc,EAAC,MAAM,KAAK,CAAA;AAS7D,OAAO,2GAA2G,CAAA;AAGlH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG;IACtD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC,CAAA;AA2JD,KAAK,qBAAqB,GAAG;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAA;AA4C/B,KAAK,0BAA0B,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC,GAAG,SAAS,CAAC,eAAe,CAAC,CAAA;AA8B9B,KAAK,oBAAoB,GAAG,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAA;AAMzE;;;GAGG;AACH,eAAO,MAAM,WAAW,kGAnOrB,iBAAiB,CAAC,gBAAgB,CAAC;gIAwJnC,iBAAiB,CAAC,qBAAqB,CAAC;sEAqCuC,0BAA0B;mCA8B7D,oBAAoB;CAYjE,CAAA"}
@@ -1,7 +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 { useId as t } from "../../hooks/useId.js";
3
3
  import { Text as n } from "../../Text/Text.js";
4
- import { AlertFillIcon as r, CheckCircleFillIcon as i } from "../../node_modules/@primer/octicons-react/dist/index.esm.js";
4
+ import { AlertFillIcon as r } from "../../node_modules/@primer/octicons-react/dist/icons/AlertFillIcon.js";
5
+ import { CheckCircleFillIcon as i } from "../../node_modules/@primer/octicons-react/dist/icons/CheckCircleFillIcon.js";
5
6
  import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css';/* empty css */
6
7
  import { Checkbox as a } from "../Checkbox/Checkbox.js";
7
8
  import { Textarea as o } from "../Textarea/Textarea.js";
@@ -90,7 +91,7 @@ var m = ({ children: n, className: r, hasBorder: i, fullWidth: p, id: m, require
90
91
  required: v,
91
92
  validationStatus: b,
92
93
  size: y,
93
- showRequiredIndicator: w ? !1 : n.props.showRequiredIndicator
94
+ showRequiredIndicator: !w && n.props.showRequiredIndicator
94
95
  });
95
96
  }
96
97
  if (t.type === g) {
@@ -1 +1 @@
1
- {"version":3,"file":"FormControl.js","names":[],"sources":["../../../src/forms/FormControl/FormControl.tsx"],"sourcesContent":["import React, {PropsWithChildren} from 'react'\nimport {useId} from '../../hooks/useId'\nimport {clsx} from 'clsx'\nimport {AlertFillIcon, CheckCircleFillIcon} from '@primer/octicons-react'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormValidationStatus, FormInputSizes} from '../'\n\nimport {Checkbox} from '../Checkbox'\nimport {Select} from '../Select'\nimport {TextInput} from '../TextInput'\nimport {Textarea} from '../Textarea'\nimport {Radio} from '../Radio'\nimport {Text} from '../../Text'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './FormControl.module.css'\n\nexport type FormControlProps = BaseProps<HTMLElement> & {\n /**\n * Apply a decorative border to the form control.\n */\n hasBorder?: boolean\n /**\n * Applies full width styling.\n */\n fullWidth?: boolean\n /**\n * A unique identifier for the form control.\n * This is used to associate the form control with its associated label.\n * If an id is not provided, a unique id will be generated.\n */\n id?: string\n /**\n * Applies required styling to the label and input.\n */\n required?: boolean\n /**\n * Alternative sizes for inputs and labels.\n */\n size?: FormInputSizes\n /**\n * Provides contextual validation feedback to all children, showing relevant messaging where applicable.\n */\n validationStatus?: FormValidationStatus\n}\n\n/**\n * The Checkbox and the Radio components both use the trick of using a <label> to render the visual control,\n * and visually hiding the <input>. This means that, when you add a FormControl.Label alongside your\n * Checkbox/Radio, the <input> technically has two <label> elements associated with it.\n * That doesn't appear to be a problem (it's valid HTML and NVDA announces it correctly) but it does annoy\n * our Storybook Axe tests because they only seem to look at one of the labels.\n * To fix this, we recommend that the FormControl.Label always appears before the Checkbox/Radio in the DOM,\n * even though it visually appears after the Checkbox/Radio, as this keeps Storybook Axe happy.\n */\n\nconst Root = ({\n children,\n className,\n hasBorder,\n fullWidth,\n id,\n required,\n size = 'medium',\n validationStatus,\n ...rest\n}: PropsWithChildren<FormControlProps>) => {\n const uniqueId = useId(id)\n const childrenArr = React.Children.toArray(children)\n\n const isInlineControl = childrenArr.some(\n child => React.isValidElement(child) && (child.type === Checkbox || child.type === Radio),\n )\n\n const containsHint = childrenArr.some(child => React.isValidElement(child) && child.type === FormControlHint)\n const containsValidation = childrenArr.some(\n child => React.isValidElement(child) && child.type === FormControlValidation,\n )\n\n return (\n <section\n id={`FormControl--${uniqueId}`}\n className={clsx(\n styles.FormControl,\n fullWidth && styles[`FormControl--fullWidth`],\n isInlineControl && styles['FormControl--checkbox'],\n hasBorder && styles['FormControl--border'],\n className,\n )}\n {...rest}\n >\n {React.Children.map(children, child => {\n if (!React.isValidElement(child)) return child\n\n const describedBy =\n [containsHint && `${uniqueId}-hint`, containsValidation && `${uniqueId}-validation`]\n .filter(Boolean)\n .join(' ') || undefined\n\n if (child.type === TextInput) {\n const element = child as React.ReactElement<React.ComponentProps<typeof TextInput>>\n return React.cloneElement(element, {\n className: clsx(element.props.className),\n id: uniqueId,\n name: element.props.name || uniqueId,\n required: element.props.required || required,\n validationStatus: element.props.validationStatus || validationStatus,\n fullWidth,\n size,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === Textarea) {\n const element = child as React.ReactElement<React.ComponentProps<typeof Textarea>>\n return React.cloneElement(element, {\n className: clsx(element.props.className),\n id: uniqueId,\n name: element.props.name || uniqueId,\n required: element.props.required || required,\n validationStatus: element.props.validationStatus || validationStatus,\n fullWidth,\n size,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === Select) {\n const element = child as React.ReactElement<React.ComponentProps<typeof Select>>\n return React.cloneElement(element, {\n className: clsx(element.props.className),\n id: uniqueId,\n name: element.props.name || uniqueId,\n required: element.props.required || required,\n validationStatus: element.props.validationStatus || validationStatus,\n fullWidth,\n size,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === Checkbox) {\n const element = child as React.ReactElement<React.ComponentProps<typeof Checkbox>>\n return React.cloneElement(element, {\n className: clsx(element.props.className, styles['FormControl-control--checkbox']),\n id: uniqueId,\n name: element.props.name || uniqueId,\n required: element.props.required || required,\n validationStatus: element.props.validationStatus || validationStatus,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === Radio) {\n const element = child as React.ReactElement<React.ComponentProps<typeof Radio>>\n return React.cloneElement(element, {\n className: clsx(isInlineControl && styles['FormControl-control--radio'], element.props.className),\n id: uniqueId,\n name: element.props.name,\n required: element.props.required || required,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === FormControlLabel) {\n const element = child as React.ReactElement<React.ComponentProps<typeof FormControlLabel>>\n return React.cloneElement(element, {\n className: clsx(isInlineControl && styles['FormControl-label--checkbox'], element.props.className),\n htmlFor: uniqueId,\n children: element.props.children,\n required,\n validationStatus,\n size,\n showRequiredIndicator: isInlineControl ? false : element.props.showRequiredIndicator,\n })\n }\n\n if (child.type === FormControlValidation) {\n const element = child as React.ReactElement<React.ComponentProps<typeof FormControlValidation>>\n return React.cloneElement(element, {\n className: clsx(isInlineControl && styles['FormControl-validation-checkbox'], element.props.className),\n validationStatus,\n id: `${uniqueId}-validation`,\n })\n }\n\n if (child.type === FormControlHint) {\n const element = child as React.ReactElement<React.ComponentProps<typeof FormControlHint>>\n return React.cloneElement(element, {\n id: `${uniqueId}-hint`,\n })\n }\n\n return child\n })}\n </section>\n )\n}\n\ntype FormControlLabelProps = {\n htmlFor?: string\n required?: boolean\n showRequiredIndicator?: boolean\n size?: FormInputSizes\n validationStatus?: FormValidationStatus\n visuallyHidden?: boolean\n} & BaseProps<HTMLLabelElement>\n\nconst FormControlLabel = ({\n children,\n className,\n htmlFor,\n required,\n showRequiredIndicator = true,\n size = 'medium',\n validationStatus,\n visuallyHidden,\n ...rest\n}: PropsWithChildren<FormControlLabelProps>) => {\n return (\n <label\n htmlFor={htmlFor}\n className={clsx(\n styles['FormControl-label'],\n validationStatus && styles[`FormControl-label--${validationStatus}`],\n styles[`FormControl-label--${size}`],\n visuallyHidden && styles['FormControl-label--visually-hidden'],\n className,\n )}\n {...rest}\n >\n {React.Children.map(children, child => {\n if (React.isValidElement<FormControlHintProps>(child) && child.type === FormControlHint) {\n return React.cloneElement(child, {\n className: clsx(styles['FormControl--visible'], child.props.className),\n })\n }\n return child\n })}\n\n {required && showRequiredIndicator && (\n <span className={styles['FormControl-label-required']} aria-hidden>\n {' '}\n *\n </span>\n )}\n </label>\n )\n}\n\ntype FormControlValidationProps = {\n children: string\n validationStatus?: FormValidationStatus\n} & BaseProps<HTMLSpanElement>\n\nconst FormControlValidation = ({children, validationStatus, className, ...props}: FormControlValidationProps) => {\n return (\n <Text\n as=\"span\"\n size=\"100\"\n className={clsx(\n styles['FormControl-validation'],\n validationStatus && styles['FormControl-validation--animate-in'],\n validationStatus && styles[`FormControl-validation--${validationStatus}`],\n className,\n )}\n {...props}\n >\n {validationStatus === 'error' && (\n <span className={styles['FormControl-validation-error-icon']}>\n <AlertFillIcon />\n </span>\n )}\n {validationStatus === 'success' && (\n <span className={styles['FormControl-validation-success-icon']}>\n <CheckCircleFillIcon />\n </span>\n )}\n {children}\n </Text>\n )\n}\n\ntype FormControlHintProps = PropsWithChildren<BaseProps<HTMLSpanElement>>\n\nconst FormControlHint = ({className, ...rest}: FormControlHintProps) => {\n return <Text as=\"span\" size=\"100\" variant=\"muted\" className={clsx(styles['FormControl-hint'], className)} {...rest} />\n}\n\n/**\n * FormControl\n * {@link https://primer.style/brand/components/FormControl/ See usage examples}.\n */\nexport const FormControl = Object.assign(Root, {\n Label: FormControlLabel,\n Validation: FormControlValidation,\n Hint: FormControlHint,\n})\n"],"mappings":"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"}
1
+ {"version":3,"file":"FormControl.js","names":[],"sources":["../../../src/forms/FormControl/FormControl.tsx"],"sourcesContent":["import React, {PropsWithChildren} from 'react'\nimport {useId} from '../../hooks/useId'\nimport {clsx} from 'clsx'\nimport {AlertFillIcon, CheckCircleFillIcon} from '@primer/octicons-react'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormValidationStatus, FormInputSizes} from '../'\n\nimport {Checkbox} from '../Checkbox'\nimport {Select} from '../Select'\nimport {TextInput} from '../TextInput'\nimport {Textarea} from '../Textarea'\nimport {Radio} from '../Radio'\nimport {Text} from '../../Text'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './FormControl.module.css'\n\nexport type FormControlProps = BaseProps<HTMLElement> & {\n /**\n * Apply a decorative border to the form control.\n */\n hasBorder?: boolean\n /**\n * Applies full width styling.\n */\n fullWidth?: boolean\n /**\n * A unique identifier for the form control.\n * This is used to associate the form control with its associated label.\n * If an id is not provided, a unique id will be generated.\n */\n id?: string\n /**\n * Applies required styling to the label and input.\n */\n required?: boolean\n /**\n * Alternative sizes for inputs and labels.\n */\n size?: FormInputSizes\n /**\n * Provides contextual validation feedback to all children, showing relevant messaging where applicable.\n */\n validationStatus?: FormValidationStatus\n}\n\n/**\n * The Checkbox and the Radio components both use the trick of using a <label> to render the visual control,\n * and visually hiding the <input>. This means that, when you add a FormControl.Label alongside your\n * Checkbox/Radio, the <input> technically has two <label> elements associated with it.\n * That doesn't appear to be a problem (it's valid HTML and NVDA announces it correctly) but it does annoy\n * our Storybook Axe tests because they only seem to look at one of the labels.\n * To fix this, we recommend that the FormControl.Label always appears before the Checkbox/Radio in the DOM,\n * even though it visually appears after the Checkbox/Radio, as this keeps Storybook Axe happy.\n */\n\nconst Root = ({\n children,\n className,\n hasBorder,\n fullWidth,\n id,\n required,\n size = 'medium',\n validationStatus,\n ...rest\n}: PropsWithChildren<FormControlProps>) => {\n const uniqueId = useId(id)\n const childrenArr = React.Children.toArray(children)\n\n const isInlineControl = childrenArr.some(\n child => React.isValidElement(child) && (child.type === Checkbox || child.type === Radio),\n )\n\n const containsHint = childrenArr.some(child => React.isValidElement(child) && child.type === FormControlHint)\n const containsValidation = childrenArr.some(\n child => React.isValidElement(child) && child.type === FormControlValidation,\n )\n\n return (\n <section\n id={`FormControl--${uniqueId}`}\n className={clsx(\n styles.FormControl,\n fullWidth && styles[`FormControl--fullWidth`],\n isInlineControl && styles['FormControl--checkbox'],\n hasBorder && styles['FormControl--border'],\n className,\n )}\n {...rest}\n >\n {React.Children.map(children, child => {\n if (!React.isValidElement(child)) return child\n\n const describedBy =\n [containsHint && `${uniqueId}-hint`, containsValidation && `${uniqueId}-validation`]\n .filter(Boolean)\n .join(' ') || undefined\n\n if (child.type === TextInput) {\n const element = child as React.ReactElement<React.ComponentProps<typeof TextInput>>\n return React.cloneElement(element, {\n className: clsx(element.props.className),\n id: uniqueId,\n name: element.props.name || uniqueId,\n required: element.props.required || required,\n validationStatus: element.props.validationStatus || validationStatus,\n fullWidth,\n size,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === Textarea) {\n const element = child as React.ReactElement<React.ComponentProps<typeof Textarea>>\n return React.cloneElement(element, {\n className: clsx(element.props.className),\n id: uniqueId,\n name: element.props.name || uniqueId,\n required: element.props.required || required,\n validationStatus: element.props.validationStatus || validationStatus,\n fullWidth,\n size,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === Select) {\n const element = child as React.ReactElement<React.ComponentProps<typeof Select>>\n return React.cloneElement(element, {\n className: clsx(element.props.className),\n id: uniqueId,\n name: element.props.name || uniqueId,\n required: element.props.required || required,\n validationStatus: element.props.validationStatus || validationStatus,\n fullWidth,\n size,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === Checkbox) {\n const element = child as React.ReactElement<React.ComponentProps<typeof Checkbox>>\n return React.cloneElement(element, {\n className: clsx(element.props.className, styles['FormControl-control--checkbox']),\n id: uniqueId,\n name: element.props.name || uniqueId,\n required: element.props.required || required,\n validationStatus: element.props.validationStatus || validationStatus,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === Radio) {\n const element = child as React.ReactElement<React.ComponentProps<typeof Radio>>\n return React.cloneElement(element, {\n className: clsx(isInlineControl && styles['FormControl-control--radio'], element.props.className),\n id: uniqueId,\n name: element.props.name,\n required: element.props.required || required,\n 'aria-describedby': describedBy,\n })\n }\n\n if (child.type === FormControlLabel) {\n const element = child as React.ReactElement<React.ComponentProps<typeof FormControlLabel>>\n return React.cloneElement(element, {\n className: clsx(isInlineControl && styles['FormControl-label--checkbox'], element.props.className),\n htmlFor: uniqueId,\n children: element.props.children,\n required,\n validationStatus,\n size,\n showRequiredIndicator: isInlineControl ? false : element.props.showRequiredIndicator,\n })\n }\n\n if (child.type === FormControlValidation) {\n const element = child as React.ReactElement<React.ComponentProps<typeof FormControlValidation>>\n return React.cloneElement(element, {\n className: clsx(isInlineControl && styles['FormControl-validation-checkbox'], element.props.className),\n validationStatus,\n id: `${uniqueId}-validation`,\n })\n }\n\n if (child.type === FormControlHint) {\n const element = child as React.ReactElement<React.ComponentProps<typeof FormControlHint>>\n return React.cloneElement(element, {\n id: `${uniqueId}-hint`,\n })\n }\n\n return child\n })}\n </section>\n )\n}\n\ntype FormControlLabelProps = {\n htmlFor?: string\n required?: boolean\n showRequiredIndicator?: boolean\n size?: FormInputSizes\n validationStatus?: FormValidationStatus\n visuallyHidden?: boolean\n} & BaseProps<HTMLLabelElement>\n\nconst FormControlLabel = ({\n children,\n className,\n htmlFor,\n required,\n showRequiredIndicator = true,\n size = 'medium',\n validationStatus,\n visuallyHidden,\n ...rest\n}: PropsWithChildren<FormControlLabelProps>) => {\n return (\n <label\n htmlFor={htmlFor}\n className={clsx(\n styles['FormControl-label'],\n validationStatus && styles[`FormControl-label--${validationStatus}`],\n styles[`FormControl-label--${size}`],\n visuallyHidden && styles['FormControl-label--visually-hidden'],\n className,\n )}\n {...rest}\n >\n {React.Children.map(children, child => {\n if (React.isValidElement<FormControlHintProps>(child) && child.type === FormControlHint) {\n return React.cloneElement(child, {\n className: clsx(styles['FormControl--visible'], child.props.className),\n })\n }\n return child\n })}\n\n {required && showRequiredIndicator && (\n <span className={styles['FormControl-label-required']} aria-hidden>\n {' '}\n *\n </span>\n )}\n </label>\n )\n}\n\ntype FormControlValidationProps = {\n children: string\n validationStatus?: FormValidationStatus\n} & BaseProps<HTMLSpanElement>\n\nconst FormControlValidation = ({children, validationStatus, className, ...props}: FormControlValidationProps) => {\n return (\n <Text\n as=\"span\"\n size=\"100\"\n className={clsx(\n styles['FormControl-validation'],\n validationStatus && styles['FormControl-validation--animate-in'],\n validationStatus && styles[`FormControl-validation--${validationStatus}`],\n className,\n )}\n {...props}\n >\n {validationStatus === 'error' && (\n <span className={styles['FormControl-validation-error-icon']}>\n <AlertFillIcon />\n </span>\n )}\n {validationStatus === 'success' && (\n <span className={styles['FormControl-validation-success-icon']}>\n <CheckCircleFillIcon />\n </span>\n )}\n {children}\n </Text>\n )\n}\n\ntype FormControlHintProps = PropsWithChildren<BaseProps<HTMLSpanElement>>\n\nconst FormControlHint = ({className, ...rest}: FormControlHintProps) => {\n return <Text as=\"span\" size=\"100\" variant=\"muted\" className={clsx(styles['FormControl-hint'], className)} {...rest} />\n}\n\n/**\n * FormControl\n * {@link https://primer.style/brand/components/FormControl/ See usage examples}.\n */\nexport const FormControl = Object.assign(Root, {\n Label: FormControlLabel,\n Validation: FormControlValidation,\n Hint: FormControlHint,\n})\n"],"mappings":"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"}
@@ -1,5 +1,6 @@
1
- import './FormControl.module-CSNT689n.css';var e = {
2
- FormControl: "Primer_Brand__FormControl-module__FormControl___xyCI6",
1
+ import './FormControl.module-CSNT689n.css';//#region src/forms/FormControl/FormControl.module.css
2
+ var e = "Primer_Brand__FormControl-module__FormControl___xyCI6", t = "Primer_Brand__FormControl-module__FormControlValidationFadeIn___tj0TP", n = {
3
+ FormControl: e,
3
4
  "FormControl--fullWidth": "Primer_Brand__FormControl-module__FormControl--fullWidth____kgvY",
4
5
  "FormControl--checkbox": "Primer_Brand__FormControl-module__FormControl--checkbox___bF4ig",
5
6
  "FormControl--border": "Primer_Brand__FormControl-module__FormControl--border___JkgNP",
@@ -16,10 +17,10 @@ import './FormControl.module-CSNT689n.css';var e = {
16
17
  "FormControl-validation-success-icon": "Primer_Brand__FormControl-module__FormControl-validation-success-icon___zPbVN",
17
18
  "FormControl-validation-error-icon": "Primer_Brand__FormControl-module__FormControl-validation-error-icon___hijkD",
18
19
  "FormControl-validation--animate-in": "Primer_Brand__FormControl-module__FormControl-validation--animate-in___bQToQ",
19
- FormControlValidationFadeIn: "Primer_Brand__FormControl-module__FormControlValidationFadeIn___tj0TP",
20
+ FormControlValidationFadeIn: t,
20
21
  "FormControl-validation-checkbox": "Primer_Brand__FormControl-module__FormControl-validation-checkbox___o5dVo"
21
22
  };
22
23
  //#endregion
23
- export { e as default };
24
+ export { e as FormControl, t as FormControlValidationFadeIn, n as default };
24
25
 
25
26
  //# sourceMappingURL=FormControl.module.js.map
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { useId as t } from "../../hooks/useId.js";
3
3
  import { useProvidedRefOrCreate as n } from "../../hooks/useRef.js";
4
4
  import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css';/* empty css */
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","names":[],"sources":["../../../src/forms/Radio/Radio.tsx"],"sourcesContent":["import React, {forwardRef, useCallback, type InputHTMLAttributes, type ReactElement} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../../hooks/useId'\nimport {useProvidedRefOrCreate} from '../../hooks/useRef'\n\nimport type {BaseProps} from '../../component-helpers'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './Radio.module.css'\n\nexport type RadioProps = {\n /**\n * Apply inactive visual appearance to the Radio\n */\n disabled?: boolean\n /**\n * Indicates whether the Radio must be checked\n */\n required?: boolean\n /**\n * A unique value that is never shown to the user.\n * Used during form submission and to identify which Radio inputs are selected\n */\n value?: string\n} & Exclude<InputHTMLAttributes<HTMLInputElement>, 'value'> &\n BaseProps<HTMLInputElement>\n\nconst RadioInternal = (\n {checked, className, disabled, id, onChange, required, value, ...rest}: RadioProps,\n ref,\n): ReactElement => {\n const inputRef = useProvidedRefOrCreate<HTMLInputElement | null>(ref || null)\n const uniqueId = useId(id)\n\n const onClick = useCallback(() => {\n if (!disabled && inputRef.current) {\n inputRef.current.click()\n }\n }, [disabled, inputRef])\n\n return (\n <span className={styles['Radio-wrapper']}>\n <input\n id={uniqueId}\n aria-checked={checked ? 'true' : 'false'}\n checked={checked}\n className={clsx(styles['Radio-input'])}\n disabled={disabled}\n name={value}\n onChange={onChange}\n ref={inputRef}\n required={required}\n type=\"radio\"\n value={value}\n {...rest}\n />\n <span className={clsx(styles.Radio, className)} onClick={onClick} tabIndex={-1} aria-hidden=\"true\">\n <span className={styles['Radio-dot']} />\n </span>\n </span>\n )\n}\n\nexport const Radio = forwardRef(RadioInternal)\n"],"mappings":";;;;;;;AA+DA,IAAa,IAAQ,GAnCnB,EAAC,YAAS,cAAW,aAAU,OAAI,aAAU,aAAU,UAAO,GAAG,KACjE,MACiB;CACjB,IAAM,IAAW,EAAgD,KAAO,KAAK,EACvE,IAAW,EAAM,EAAG,EAEpB,IAAU,QAAkB;AAChC,EAAI,CAAC,KAAY,EAAS,WACxB,EAAS,QAAQ,OAAO;IAEzB,CAAC,GAAU,EAAS,CAAC;AAExB,QACE,kBAAC,QAAD;EAAM,WAAW,EAAO;YAAxB,CACE,kBAAC,SAAD;GACE,IAAI;GACJ,gBAAc,IAAU,SAAS;GACxB;GACT,WAAW,EAAK,EAAO,eAAe;GAC5B;GACV,MAAM;GACI;GACV,KAAK;GACK;GACV,MAAK;GACE;GACP,GAAI;GACJ,CAAA,EACF,kBAAC,QAAD;GAAM,WAAW,EAAK,EAAO,OAAO,EAAU;GAAW;GAAS,UAAU;GAAI,eAAY;aAC1F,kBAAC,QAAD,EAAM,WAAW,EAAO,cAAgB,CAAA;GACnC,CAAA,CACF;;EAImC"}
1
+ {"version":3,"file":"Radio.js","names":[],"sources":["../../../src/forms/Radio/Radio.tsx"],"sourcesContent":["import React, {forwardRef, useCallback, type InputHTMLAttributes, type ReactElement} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../../hooks/useId'\nimport {useProvidedRefOrCreate} from '../../hooks/useRef'\n\nimport type {BaseProps} from '../../component-helpers'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './Radio.module.css'\n\nexport type RadioProps = {\n /**\n * Apply inactive visual appearance to the Radio\n */\n disabled?: boolean\n /**\n * Indicates whether the Radio must be checked\n */\n required?: boolean\n /**\n * A unique value that is never shown to the user.\n * Used during form submission and to identify which Radio inputs are selected\n */\n value?: string\n} & Exclude<InputHTMLAttributes<HTMLInputElement>, 'value'> &\n BaseProps<HTMLInputElement>\n\nconst RadioInternal = (\n {checked, className, disabled, id, onChange, required, value, ...rest}: RadioProps,\n ref,\n): ReactElement => {\n const inputRef = useProvidedRefOrCreate<HTMLInputElement | null>(ref || null)\n const uniqueId = useId(id)\n\n const onClick = useCallback(() => {\n if (!disabled && inputRef.current) {\n inputRef.current.click()\n }\n }, [disabled, inputRef])\n\n return (\n <span className={styles['Radio-wrapper']}>\n <input\n id={uniqueId}\n aria-checked={checked ? 'true' : 'false'}\n checked={checked}\n className={clsx(styles['Radio-input'])}\n disabled={disabled}\n name={value}\n onChange={onChange}\n ref={inputRef}\n required={required}\n type=\"radio\"\n value={value}\n {...rest}\n />\n <span className={clsx(styles.Radio, className)} onClick={onClick} tabIndex={-1} aria-hidden=\"true\">\n <span className={styles['Radio-dot']} />\n </span>\n </span>\n )\n}\n\nexport const Radio = forwardRef(RadioInternal)\n"],"mappings":";;;;;;;AA+DA,IAAa,IAAQ,GAnCnB,EAAC,YAAS,cAAW,aAAU,OAAI,aAAU,aAAU,UAAO,GAAG,KACjE,MACiB;CACjB,IAAM,IAAW,EAAgD,KAAO,IAAI,GACtE,IAAW,EAAM,CAAE,GAEnB,IAAU,QAAkB;EAChC,AAAI,CAAC,KAAY,EAAS,WACxB,EAAS,QAAQ,MAAM;CAE3B,GAAG,CAAC,GAAU,CAAQ,CAAC;CAEvB,OACE,kBAAC,QAAD;EAAM,WAAW,EAAO;YAAxB,CACE,kBAAC,SAAD;GACE,IAAI;GACJ,gBAAc,IAAU,SAAS;GACxB;GACT,WAAW,EAAK,EAAO,cAAc;GAC3B;GACV,MAAM;GACI;GACV,KAAK;GACK;GACV,MAAK;GACE;GACP,GAAI;EACL,CAAA,GACD,kBAAC,QAAD;GAAM,WAAW,EAAK,EAAO,OAAO,CAAS;GAAY;GAAS,UAAU;GAAI,eAAY;aAC1F,kBAAC,QAAD,EAAM,WAAW,EAAO,aAAe,CAAA;EACnC,CAAA,CACF;;AAEV,CAE6C"}
@@ -1,10 +1,11 @@
1
- import './Radio.module-B470XLdO.css';var e = {
1
+ import './Radio.module-B470XLdO.css';//#region src/forms/Radio/Radio.module.css
2
+ var e = "Primer_Brand__Radio-module__Radio___vTG_e", t = {
2
3
  "Radio-wrapper": "Primer_Brand__Radio-module__Radio-wrapper___zXaOV",
3
- Radio: "Primer_Brand__Radio-module__Radio___vTG_e",
4
+ Radio: e,
4
5
  "Radio-input": "Primer_Brand__Radio-module__Radio-input___K0b_k",
5
6
  "Radio-dot": "Primer_Brand__Radio-module__Radio-dot___9afdK"
6
7
  };
7
8
  //#endregion
8
- export { e as default };
9
+ export { e as Radio, t as default };
9
10
 
10
11
  //# sourceMappingURL=Radio.module.js.map
@@ -41,7 +41,7 @@ export type OptGroupProps = {
41
41
  * Select
42
42
  */
43
43
  export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<unknown>> & {
44
- Option: ({ children, value, ...rest }: OptionProps) => import("react/jsx-runtime").JSX.Element;
45
- OptGroup: ({ children, label, ...rest }: OptGroupProps) => import("react/jsx-runtime").JSX.Element;
44
+ Option: ({ children, value, ...rest }: OptionProps) => React.JSX.Element;
45
+ OptGroup: ({ children, label, ...rest }: OptGroupProps) => React.JSX.Element;
46
46
  };
47
47
  //# sourceMappingURL=Select.d.ts.map
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css';/* empty css */
3
3
  import t from "./Select.module.js";
4
4
  import { forwardRef as n } from "react";
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":[],"sources":["../../../src/forms/Select/Select.tsx"],"sourcesContent":["import React, {forwardRef} from 'react'\nimport {clsx} from 'clsx'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormInputSizes, FormValidationStatus} from '../form-types'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './Select.module.css'\n\nexport type SelectProps = {\n /**\n * Applies full width styling.\n */\n fullWidth?: boolean\n /**\n * Applies a required attribute to the input\n */\n required?: boolean\n /**\n * Applies alternative sizing to the input\n */\n size?: FormInputSizes\n /**\n * Placeholder text to display when no value is selected\n */\n placeholder?: string\n /**\n *\n */\n validationStatus?: FormValidationStatus\n} & Omit<React.InputHTMLAttributes<HTMLSelectElement>, 'size'> &\n BaseProps<HTMLSelectElement>\n\nconst _SelectRoot = (\n {\n children,\n className,\n disabled,\n fullWidth = false,\n placeholder,\n size = 'medium',\n validationStatus,\n ...rest\n }: SelectProps,\n ref,\n) => {\n return (\n <span\n className={clsx(\n styles['Select-wrapper'],\n styles[`Select-wrapper--${size}`],\n fullWidth && styles['Select-wrapper--fullWidth'],\n validationStatus && styles[`Select--${validationStatus}`],\n disabled && styles[`Select-wrapper--disabled`],\n )}\n >\n <select\n aria-invalid={validationStatus === 'error'}\n className={clsx(\n styles.Select,\n styles[`Select--${size}`],\n 'Select',\n fullWidth && styles['Select--fullWidth'],\n className,\n )}\n disabled={disabled}\n ref={ref}\n {...rest}\n >\n {placeholder && (\n <option value=\"\" disabled={disabled}>\n {placeholder}\n </option>\n )}\n {children}\n </select>\n </span>\n )\n}\n\nconst SelectRoot = forwardRef(_SelectRoot)\n\nexport type OptionProps = {\n value: string\n} & React.PropsWithChildren<React.HTMLProps<HTMLOptionElement>>\n\nconst Option = ({children, value, ...rest}: OptionProps) => {\n return (\n <option value={value} {...rest}>\n {children}\n </option>\n )\n}\n\nexport type OptGroupProps = {\n /**\n * Specifies that an option-group should be disabled\n */\n disabled?: string\n /**\n * Specifies a label for an option-group\n */\n label: string\n} & React.PropsWithChildren<React.HTMLProps<HTMLOptGroupElement>>\n\nconst OptGroup = ({children, label, ...rest}: OptGroupProps) => {\n return (\n <optgroup label={label} {...rest}>\n {children}\n </optgroup>\n )\n}\n\n/**\n * Select\n */\nexport const Select = Object.assign(SelectRoot, {\n Option,\n OptGroup,\n})\n"],"mappings":";;;;;AAgFA,IAAM,IAAa,GA9CjB,EACE,aACA,cACA,aACA,eAAY,IACZ,gBACA,UAAO,UACP,qBACA,GAAG,KAEL,MAGE,kBAAC,QAAD;CACE,WAAW,EACT,EAAO,mBACP,EAAO,mBAAmB,MAC1B,KAAa,EAAO,8BACpB,KAAoB,EAAO,WAAW,MACtC,KAAY,EAAO,4BACpB;WAED,kBAAC,UAAD;EACE,gBAAc,MAAqB;EACnC,WAAW,EACT,EAAO,QACP,EAAO,WAAW,MAClB,UACA,KAAa,EAAO,sBACpB,EACD;EACS;EACL;EACL,GAAI;YAXN,CAaG,KACC,kBAAC,UAAD;GAAQ,OAAM;GAAa;aACxB;GACM,CAAA,EAEV,EACM;;CACJ,CAAA,CAI+B,EAoC7B,IAAS,OAAO,OAAO,GAAY;CAC9C,SA/Bc,EAAC,aAAU,UAAO,GAAG,QAEjC,kBAAC,UAAD;EAAe;EAAO,GAAI;EACvB;EACM,CAAA;CA4BX,WAbgB,EAAC,aAAU,UAAO,GAAG,QAEnC,kBAAC,YAAD;EAAiB;EAAO,GAAI;EACzB;EACQ,CAAA;CAUd,CAAC"}
1
+ {"version":3,"file":"Select.js","names":[],"sources":["../../../src/forms/Select/Select.tsx"],"sourcesContent":["import React, {forwardRef} from 'react'\nimport {clsx} from 'clsx'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormInputSizes, FormValidationStatus} from '../form-types'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './Select.module.css'\n\nexport type SelectProps = {\n /**\n * Applies full width styling.\n */\n fullWidth?: boolean\n /**\n * Applies a required attribute to the input\n */\n required?: boolean\n /**\n * Applies alternative sizing to the input\n */\n size?: FormInputSizes\n /**\n * Placeholder text to display when no value is selected\n */\n placeholder?: string\n /**\n *\n */\n validationStatus?: FormValidationStatus\n} & Omit<React.InputHTMLAttributes<HTMLSelectElement>, 'size'> &\n BaseProps<HTMLSelectElement>\n\nconst _SelectRoot = (\n {\n children,\n className,\n disabled,\n fullWidth = false,\n placeholder,\n size = 'medium',\n validationStatus,\n ...rest\n }: SelectProps,\n ref,\n) => {\n return (\n <span\n className={clsx(\n styles['Select-wrapper'],\n styles[`Select-wrapper--${size}`],\n fullWidth && styles['Select-wrapper--fullWidth'],\n validationStatus && styles[`Select--${validationStatus}`],\n disabled && styles[`Select-wrapper--disabled`],\n )}\n >\n <select\n aria-invalid={validationStatus === 'error'}\n className={clsx(\n styles.Select,\n styles[`Select--${size}`],\n 'Select',\n fullWidth && styles['Select--fullWidth'],\n className,\n )}\n disabled={disabled}\n ref={ref}\n {...rest}\n >\n {placeholder && (\n <option value=\"\" disabled={disabled}>\n {placeholder}\n </option>\n )}\n {children}\n </select>\n </span>\n )\n}\n\nconst SelectRoot = forwardRef(_SelectRoot)\n\nexport type OptionProps = {\n value: string\n} & React.PropsWithChildren<React.HTMLProps<HTMLOptionElement>>\n\nconst Option = ({children, value, ...rest}: OptionProps) => {\n return (\n <option value={value} {...rest}>\n {children}\n </option>\n )\n}\n\nexport type OptGroupProps = {\n /**\n * Specifies that an option-group should be disabled\n */\n disabled?: string\n /**\n * Specifies a label for an option-group\n */\n label: string\n} & React.PropsWithChildren<React.HTMLProps<HTMLOptGroupElement>>\n\nconst OptGroup = ({children, label, ...rest}: OptGroupProps) => {\n return (\n <optgroup label={label} {...rest}>\n {children}\n </optgroup>\n )\n}\n\n/**\n * Select\n */\nexport const Select = Object.assign(SelectRoot, {\n Option,\n OptGroup,\n})\n"],"mappings":";;;;;AAgFA,IAAM,IAAa,GA9CjB,EACE,aACA,cACA,aACA,eAAY,IACZ,gBACA,UAAO,UACP,qBACA,GAAG,KAEL,MAGE,kBAAC,QAAD;CACE,WAAW,EACT,EAAO,mBACP,EAAO,mBAAmB,MAC1B,KAAa,EAAO,8BACpB,KAAoB,EAAO,WAAW,MACtC,KAAY,EAAO,2BACrB;WAEA,kBAAC,UAAD;EACE,gBAAc,MAAqB;EACnC,WAAW,EACT,EAAO,QACP,EAAO,WAAW,MAClB,UACA,KAAa,EAAO,sBACpB,CACF;EACU;EACL;EACL,GAAI;YAXN,CAaG,KACC,kBAAC,UAAD;GAAQ,OAAM;GAAa;aACxB;EACK,CAAA,GAET,CACK;;AACJ,CAAA,CAI+B,GAoC5B,IAAS,OAAO,OAAO,GAAY;CAC9C,SA/Bc,EAAC,aAAU,UAAO,GAAG,QAEjC,kBAAC,UAAD;EAAe;EAAO,GAAI;EACvB;CACK,CAAA;CA4BV,WAbgB,EAAC,aAAU,UAAO,GAAG,QAEnC,kBAAC,YAAD;EAAiB;EAAO,GAAI;EACzB;CACO,CAAA;AAUd,CAAC"}
@@ -1,5 +1,6 @@
1
- import './Select.module-CRuV5AGO.css';var e = {
2
- Select: "Primer_Brand__Select-module__Select___EmI6J",
1
+ import './Select.module-CRuV5AGO.css';//#region src/forms/Select/Select.module.css
2
+ var e = "Primer_Brand__Select-module__Select___EmI6J", t = {
3
+ Select: e,
3
4
  "Select-wrapper--disabled": "Primer_Brand__Select-module__Select-wrapper--disabled___YhyYg",
4
5
  "Select-wrapper": "Primer_Brand__Select-module__Select-wrapper___sX7AR",
5
6
  "Select-wrapper--medium": "Primer_Brand__Select-module__Select-wrapper--medium___0yHXL",
@@ -11,6 +12,6 @@ import './Select.module-CRuV5AGO.css';var e = {
11
12
  "Select--error": "Primer_Brand__Select-module__Select--error___FxIYn"
12
13
  };
13
14
  //#endregion
14
- export { e as default };
15
+ export { e as Select, t as default };
15
16
 
16
17
  //# sourceMappingURL=Select.module.js.map
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { useId as t } from "../../hooks/useId.js";
3
3
  import { Text as n } from "../../Text/Text.js";
4
4
  import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css';/* empty css */
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.js","names":[],"sources":["../../../src/forms/TextInput/TextInput.tsx"],"sourcesContent":["import React, {forwardRef, useMemo} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../../hooks/useId'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormInputSizes, FormValidationStatus} from '../form-types'\nimport {Text} from '../../Text'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './TextInput.module.css'\nimport type {Icon} from '@primer/octicons-react'\n\ntype VisualType = React.ReactElement | React.ReactNode | Icon\n\nexport type TextInputProps = {\n /**\n * Applies full width styling.\n */\n fullWidth?: boolean\n /**\n * Removes border\n */\n invisible?: boolean\n /**\n * Applies non-interactive text to start of input.\n */\n leadingText?: string\n /**\n * Applies non-interactive iconography to start of input.\n */\n leadingVisual?: VisualType\n /**\n * Applies monospace styling.\n */\n monospace?: boolean\n /**\n * Applies alternative sizing to the input\n */\n size?: FormInputSizes\n /**\n * Applies non-interactive text to end of input.\n */\n trailingText?: string\n /**\n * Applies non-interactive iconography to end of input.\n */\n trailingVisual?: VisualType\n /**\n * Constrains the input type to single line inputs.\n */\n type?: 'text' | 'number' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'time' | 'datetime-local'\n /**\n * Applies a required attribute to the input\n */\n required?: boolean\n /**\n *\n */\n validationStatus?: FormValidationStatus\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> &\n BaseProps<HTMLInputElement>\n\nconst TextInputInternal = (\n {\n className,\n disabled,\n fullWidth = false,\n invisible = false,\n leadingText,\n leadingVisual: LeadingVisual,\n monospace,\n placeholder,\n size = 'medium',\n trailingText,\n trailingVisual: TrailingVisual,\n validationStatus,\n ...rest\n }: TextInputProps,\n ref,\n) => {\n const uniqueId = useId()\n\n const showLeadingText = leadingText && !LeadingVisual\n const showLeadingVisual = LeadingVisual && !leadingText\n const showTrailingText = trailingText && !TrailingVisual\n const showTrailingVisual = TrailingVisual && !trailingText\n\n const leadingTextId = `${uniqueId}-leading-text`\n const leadingVisualId = `${uniqueId}-leading-visual`\n const trailingVisualId = `${uniqueId}-trailing-visual`\n const trailingTextId = `${uniqueId}-trailing-text`\n\n const describedBy = useMemo(() => {\n const elements = [\n {condition: showLeadingText, id: leadingTextId},\n {condition: showLeadingVisual, id: leadingVisualId},\n {condition: showTrailingVisual, id: trailingVisualId},\n {condition: showTrailingText, id: trailingTextId},\n ]\n\n return elements\n .filter(({condition}) => condition)\n .map(({id}) => id)\n .join(' ')\n }, [\n showLeadingText,\n showLeadingVisual,\n showTrailingVisual,\n showTrailingText,\n leadingTextId,\n leadingVisualId,\n trailingVisualId,\n trailingTextId,\n ])\n\n return (\n <span\n className={clsx(\n styles['TextInput-wrapper'],\n styles[`TextInput-wrapper--${size}`],\n fullWidth && styles['TextInput-wrapper--fullWidth'],\n invisible && styles['TextInput-wrapper--invisible'],\n disabled && styles['TextInput-wrapper--disabled'],\n monospace && styles['TextInput-wrapper--monospace'],\n validationStatus && styles[`TextInput-wrapper--${validationStatus}`],\n )}\n >\n {showLeadingText && (\n <span\n className={clsx(\n styles['TextInput-leading-text'],\n styles[`TextInput-leading-text--${size}`],\n disabled && styles['TextInput-leading-text--disabled'],\n validationStatus && styles[`TextInput-leading-text--${validationStatus}`],\n )}\n >\n <Text\n size={size === 'large' ? '200' : '100'}\n as=\"span\"\n className={clsx(styles['TextInput-leading-text-inner'], styles[`TextInput-leading-text-inner--${size}`])}\n id={leadingTextId}\n >\n {leadingText}\n </Text>\n </span>\n )}\n {showLeadingVisual && (\n <span className={clsx(styles['TextInput-leading-visual'], styles[`TextInput-leading-visual--${size}`])}>\n {LeadingVisual &&\n React.isValidElement<{className?: string; width?: number; height?: number; id?: string}>(LeadingVisual)\n ? React.cloneElement(LeadingVisual, {\n className: clsx(\n styles['TextInput-leading-visual-icon'],\n styles[`TextInput-leading-visual-icon--${size}`],\n ),\n width: size === 'large' ? 20 : 16,\n height: size === 'large' ? 20 : 16,\n id: leadingVisualId,\n })\n : null}\n </span>\n )}\n <input\n type=\"text\"\n ref={ref}\n className={clsx(\n styles.TextInput,\n 'TextInput',\n styles[`TextInput--${size}`],\n fullWidth && styles['TextInput--fullWidth'],\n LeadingVisual && styles[`TextInput--has-leading-visual--${size}`],\n TrailingVisual && styles[`TextInput--has-trailing-visual--${size}`],\n validationStatus && styles[`TextInput--${validationStatus}`],\n leadingText && !LeadingVisual && styles['TextInput--has-leading-text'],\n trailingText && !TrailingVisual && styles['TextInput--has-trailing-text'],\n className,\n )}\n placeholder={placeholder}\n disabled={disabled}\n aria-invalid={validationStatus === 'error'}\n aria-describedby={describedBy || undefined}\n {...rest}\n />\n {showTrailingVisual && (\n <span className={clsx(styles['TextInput-trailing-visual'], styles[`TextInput-trailing-visual--${size}`])}>\n {TrailingVisual &&\n React.isValidElement<{className?: string; width?: number; height?: number; id?: string}>(TrailingVisual)\n ? React.cloneElement(TrailingVisual, {\n className: clsx(\n styles['TextInput-trailing-visual-icon'],\n styles[`TextInput-trailing-visual-icon--${size}`],\n ),\n width: size === 'large' ? 20 : 16,\n height: size === 'large' ? 20 : 16,\n id: trailingVisualId,\n })\n : null}\n </span>\n )}\n {showTrailingText && (\n <span\n className={clsx(\n styles['TextInput-trailing-text'],\n styles[`TextInput-trailing-text--${size}`],\n disabled && styles['TextInput-trailing-text--disabled'],\n validationStatus && styles[`TextInput-trailing-text--${validationStatus}`],\n )}\n >\n <Text\n size={size === 'large' ? '200' : '100'}\n as=\"span\"\n className={clsx(styles['TextInput-trailing-text-inner'], styles[`TextInput-trailing-text-inner--${size}`])}\n id={trailingTextId}\n >\n {trailingText}\n </Text>\n </span>\n )}\n </span>\n )\n}\n\nexport const TextInput = forwardRef(TextInputInternal)\n\nTextInput.displayName = 'TextInput'\n"],"mappings":"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"}
1
+ {"version":3,"file":"TextInput.js","names":[],"sources":["../../../src/forms/TextInput/TextInput.tsx"],"sourcesContent":["import React, {forwardRef, useMemo} from 'react'\nimport {clsx} from 'clsx'\nimport {useId} from '../../hooks/useId'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormInputSizes, FormValidationStatus} from '../form-types'\nimport {Text} from '../../Text'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './TextInput.module.css'\nimport type {Icon} from '@primer/octicons-react'\n\ntype VisualType = React.ReactElement | React.ReactNode | Icon\n\nexport type TextInputProps = {\n /**\n * Applies full width styling.\n */\n fullWidth?: boolean\n /**\n * Removes border\n */\n invisible?: boolean\n /**\n * Applies non-interactive text to start of input.\n */\n leadingText?: string\n /**\n * Applies non-interactive iconography to start of input.\n */\n leadingVisual?: VisualType\n /**\n * Applies monospace styling.\n */\n monospace?: boolean\n /**\n * Applies alternative sizing to the input\n */\n size?: FormInputSizes\n /**\n * Applies non-interactive text to end of input.\n */\n trailingText?: string\n /**\n * Applies non-interactive iconography to end of input.\n */\n trailingVisual?: VisualType\n /**\n * Constrains the input type to single line inputs.\n */\n type?: 'text' | 'number' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'time' | 'datetime-local'\n /**\n * Applies a required attribute to the input\n */\n required?: boolean\n /**\n *\n */\n validationStatus?: FormValidationStatus\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> &\n BaseProps<HTMLInputElement>\n\nconst TextInputInternal = (\n {\n className,\n disabled,\n fullWidth = false,\n invisible = false,\n leadingText,\n leadingVisual: LeadingVisual,\n monospace,\n placeholder,\n size = 'medium',\n trailingText,\n trailingVisual: TrailingVisual,\n validationStatus,\n ...rest\n }: TextInputProps,\n ref,\n) => {\n const uniqueId = useId()\n\n const showLeadingText = leadingText && !LeadingVisual\n const showLeadingVisual = LeadingVisual && !leadingText\n const showTrailingText = trailingText && !TrailingVisual\n const showTrailingVisual = TrailingVisual && !trailingText\n\n const leadingTextId = `${uniqueId}-leading-text`\n const leadingVisualId = `${uniqueId}-leading-visual`\n const trailingVisualId = `${uniqueId}-trailing-visual`\n const trailingTextId = `${uniqueId}-trailing-text`\n\n const describedBy = useMemo(() => {\n const elements = [\n {condition: showLeadingText, id: leadingTextId},\n {condition: showLeadingVisual, id: leadingVisualId},\n {condition: showTrailingVisual, id: trailingVisualId},\n {condition: showTrailingText, id: trailingTextId},\n ]\n\n return elements\n .filter(({condition}) => condition)\n .map(({id}) => id)\n .join(' ')\n }, [\n showLeadingText,\n showLeadingVisual,\n showTrailingVisual,\n showTrailingText,\n leadingTextId,\n leadingVisualId,\n trailingVisualId,\n trailingTextId,\n ])\n\n return (\n <span\n className={clsx(\n styles['TextInput-wrapper'],\n styles[`TextInput-wrapper--${size}`],\n fullWidth && styles['TextInput-wrapper--fullWidth'],\n invisible && styles['TextInput-wrapper--invisible'],\n disabled && styles['TextInput-wrapper--disabled'],\n monospace && styles['TextInput-wrapper--monospace'],\n validationStatus && styles[`TextInput-wrapper--${validationStatus}`],\n )}\n >\n {showLeadingText && (\n <span\n className={clsx(\n styles['TextInput-leading-text'],\n styles[`TextInput-leading-text--${size}`],\n disabled && styles['TextInput-leading-text--disabled'],\n validationStatus && styles[`TextInput-leading-text--${validationStatus}`],\n )}\n >\n <Text\n size={size === 'large' ? '200' : '100'}\n as=\"span\"\n className={clsx(styles['TextInput-leading-text-inner'], styles[`TextInput-leading-text-inner--${size}`])}\n id={leadingTextId}\n >\n {leadingText}\n </Text>\n </span>\n )}\n {showLeadingVisual && (\n <span className={clsx(styles['TextInput-leading-visual'], styles[`TextInput-leading-visual--${size}`])}>\n {LeadingVisual &&\n React.isValidElement<{className?: string; width?: number; height?: number; id?: string}>(LeadingVisual)\n ? React.cloneElement(LeadingVisual, {\n className: clsx(\n styles['TextInput-leading-visual-icon'],\n styles[`TextInput-leading-visual-icon--${size}`],\n ),\n width: size === 'large' ? 20 : 16,\n height: size === 'large' ? 20 : 16,\n id: leadingVisualId,\n })\n : null}\n </span>\n )}\n <input\n type=\"text\"\n ref={ref}\n className={clsx(\n styles.TextInput,\n 'TextInput',\n styles[`TextInput--${size}`],\n fullWidth && styles['TextInput--fullWidth'],\n LeadingVisual && styles[`TextInput--has-leading-visual--${size}`],\n TrailingVisual && styles[`TextInput--has-trailing-visual--${size}`],\n validationStatus && styles[`TextInput--${validationStatus}`],\n leadingText && !LeadingVisual && styles['TextInput--has-leading-text'],\n trailingText && !TrailingVisual && styles['TextInput--has-trailing-text'],\n className,\n )}\n placeholder={placeholder}\n disabled={disabled}\n aria-invalid={validationStatus === 'error'}\n aria-describedby={describedBy || undefined}\n {...rest}\n />\n {showTrailingVisual && (\n <span className={clsx(styles['TextInput-trailing-visual'], styles[`TextInput-trailing-visual--${size}`])}>\n {TrailingVisual &&\n React.isValidElement<{className?: string; width?: number; height?: number; id?: string}>(TrailingVisual)\n ? React.cloneElement(TrailingVisual, {\n className: clsx(\n styles['TextInput-trailing-visual-icon'],\n styles[`TextInput-trailing-visual-icon--${size}`],\n ),\n width: size === 'large' ? 20 : 16,\n height: size === 'large' ? 20 : 16,\n id: trailingVisualId,\n })\n : null}\n </span>\n )}\n {showTrailingText && (\n <span\n className={clsx(\n styles['TextInput-trailing-text'],\n styles[`TextInput-trailing-text--${size}`],\n disabled && styles['TextInput-trailing-text--disabled'],\n validationStatus && styles[`TextInput-trailing-text--${validationStatus}`],\n )}\n >\n <Text\n size={size === 'large' ? '200' : '100'}\n as=\"span\"\n className={clsx(styles['TextInput-trailing-text-inner'], styles[`TextInput-trailing-text-inner--${size}`])}\n id={trailingTextId}\n >\n {trailingText}\n </Text>\n </span>\n )}\n </span>\n )\n}\n\nexport const TextInput = forwardRef(TextInputInternal)\n\nTextInput.displayName = 'TextInput'\n"],"mappings":"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"}
@@ -1,5 +1,6 @@
1
- import './TextInput.module-CrmcmO_m.css';var e = {
2
- TextInput: "Primer_Brand__TextInput-module__TextInput___d6r3B",
1
+ import './TextInput.module-CrmcmO_m.css';//#region src/forms/TextInput/TextInput.module.css
2
+ var e = "Primer_Brand__TextInput-module__TextInput___d6r3B", t = "Primer_Brand__TextInput-module__Checkbox___NeBpg", n = {
3
+ TextInput: e,
3
4
  "TextInput-wrapper--medium": "Primer_Brand__TextInput-module__TextInput-wrapper--medium___MBN0V",
4
5
  "TextInput--medium": "Primer_Brand__TextInput-module__TextInput--medium___fpyd0",
5
6
  "TextInput--large": "Primer_Brand__TextInput-module__TextInput--large___S8mM0",
@@ -40,9 +41,9 @@ import './TextInput.module-CrmcmO_m.css';var e = {
40
41
  "TextInput-trailing-text--success": "Primer_Brand__TextInput-module__TextInput-trailing-text--success___WCi_J",
41
42
  "TextInput-leading-text--error": "Primer_Brand__TextInput-module__TextInput-leading-text--error___WAcZB",
42
43
  "TextInput-trailing-text--error": "Primer_Brand__TextInput-module__TextInput-trailing-text--error____yUSw",
43
- Checkbox: "Primer_Brand__TextInput-module__Checkbox___NeBpg"
44
+ Checkbox: t
44
45
  };
45
46
  //#endregion
46
- export { e as default };
47
+ export { t as Checkbox, e as TextInput, n as default };
47
48
 
48
49
  //# sourceMappingURL=TextInput.module.js.map
@@ -1,4 +1,4 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css';/* empty css */
3
3
  import t from "./Textarea.module.js";
4
4
  import { forwardRef as n } from "react";
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.js","names":[],"sources":["../../../src/forms/Textarea/Textarea.tsx"],"sourcesContent":["import React, {forwardRef} from 'react'\nimport {clsx} from 'clsx'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormInputSizes, FormValidationStatus} from '../form-types'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './Textarea.module.css'\n\nexport const DEFAULT_TEXTAREA_ROWS = 7\nexport const DEFAULT_TEXTAREA_COLS = 30\nexport const DEFAULT_TEXTAREA_RESIZE = 'both'\n\nexport type TextareaProps = {\n /**\n * Applies full width styling.\n */\n fullWidth?: boolean\n /**\n * Removes border\n */\n invisible?: boolean\n /**\n * Applies monospace styling.\n */\n monospace?: boolean\n /**\n * Applies alternative sizing to the input\n */\n size?: FormInputSizes\n /**\n * Applies a required attribute to the input\n */\n required?: boolean\n /**\n *\n */\n validationStatus?: FormValidationStatus\n /**\n * Allows resizing of the textarea\n */\n resize?: 'none' | 'both' | 'horizontal' | 'vertical'\n} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> &\n BaseProps<HTMLTextAreaElement>\n\nconst testIds = {\n root: 'Textarea',\n get outerContainer() {\n return `${this.root}-outer-container`\n },\n}\n\nconst _Textarea = (\n {\n children,\n className,\n cols = DEFAULT_TEXTAREA_COLS,\n disabled,\n fullWidth = false,\n invisible = false,\n monospace,\n placeholder,\n size = 'medium',\n validationStatus,\n required,\n resize = DEFAULT_TEXTAREA_RESIZE,\n rows = DEFAULT_TEXTAREA_ROWS,\n ...rest\n }: TextareaProps,\n ref,\n) => {\n return (\n <span\n className={clsx(\n styles['Textarea-wrapper'],\n fullWidth && styles['Textarea-wrapper--fullWidth'],\n invisible && styles['Textarea-wrapper--invisible'],\n disabled && styles['Textarea-wrapper--disabled'],\n monospace && styles['Textarea-wrapper--monospace'],\n validationStatus && styles[`Textarea-wrapper--${validationStatus}`],\n )}\n data-testid={testIds.outerContainer}\n >\n <textarea\n ref={ref}\n className={clsx(\n styles.Textarea,\n 'Textarea',\n styles[`Textarea--${size}`],\n styles[`Textarea-resize--${resize}`],\n fullWidth && styles['Textarea--fullWidth'],\n validationStatus && styles[`Textarea--${validationStatus}`],\n className,\n )}\n placeholder={placeholder}\n disabled={disabled}\n aria-invalid={validationStatus === 'error'}\n required={required}\n rows={rows}\n cols={cols}\n {...rest}\n >\n {children}\n </textarea>\n </span>\n )\n}\n\nexport const Textarea = forwardRef(_Textarea)\n\nTextarea.displayName = 'Textarea'\n"],"mappings":";;;;;;AASA,IAAa,IAAwB,GACxB,IAAwB,IACxB,IAA0B,QAkCjC,IAAU;CACd,MAAM;CACN,IAAI,iBAAiB;AACnB,SAAO,GAAG,KAAK,KAAK;;CAEvB,EA0DY,IAAW,GAvDtB,EACE,aACA,cACA,UAAA,IACA,aACA,eAAY,IACZ,eAAY,IACZ,cACA,gBACA,UAAO,UACP,qBACA,aACA,YAAS,GACT,UAAA,GACA,GAAG,KAEL,MAGE,kBAAC,QAAD;CACE,WAAW,EACT,EAAO,qBACP,KAAa,EAAO,gCACpB,KAAa,EAAO,gCACpB,KAAY,EAAO,+BACnB,KAAa,EAAO,gCACpB,KAAoB,EAAO,qBAAqB,KACjD;CACD,eAAa,EAAQ;WAErB,kBAAC,YAAD;EACO;EACL,WAAW,EACT,EAAO,UACP,YACA,EAAO,aAAa,MACpB,EAAO,oBAAoB,MAC3B,KAAa,EAAO,wBACpB,KAAoB,EAAO,aAAa,MACxC,EACD;EACY;EACH;EACV,gBAAc,MAAqB;EACzB;EACJ;EACA;EACN,GAAI;EAEH;EACQ,CAAA;CACN,CAAA,CAIkC;AAE7C,EAAS,cAAc"}
1
+ {"version":3,"file":"Textarea.js","names":[],"sources":["../../../src/forms/Textarea/Textarea.tsx"],"sourcesContent":["import React, {forwardRef} from 'react'\nimport {clsx} from 'clsx'\n\nimport type {BaseProps} from '../../component-helpers'\nimport type {FormInputSizes, FormValidationStatus} from '../form-types'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css'\nimport styles from './Textarea.module.css'\n\nexport const DEFAULT_TEXTAREA_ROWS = 7\nexport const DEFAULT_TEXTAREA_COLS = 30\nexport const DEFAULT_TEXTAREA_RESIZE = 'both'\n\nexport type TextareaProps = {\n /**\n * Applies full width styling.\n */\n fullWidth?: boolean\n /**\n * Removes border\n */\n invisible?: boolean\n /**\n * Applies monospace styling.\n */\n monospace?: boolean\n /**\n * Applies alternative sizing to the input\n */\n size?: FormInputSizes\n /**\n * Applies a required attribute to the input\n */\n required?: boolean\n /**\n *\n */\n validationStatus?: FormValidationStatus\n /**\n * Allows resizing of the textarea\n */\n resize?: 'none' | 'both' | 'horizontal' | 'vertical'\n} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> &\n BaseProps<HTMLTextAreaElement>\n\nconst testIds = {\n root: 'Textarea',\n get outerContainer() {\n return `${this.root}-outer-container`\n },\n}\n\nconst _Textarea = (\n {\n children,\n className,\n cols = DEFAULT_TEXTAREA_COLS,\n disabled,\n fullWidth = false,\n invisible = false,\n monospace,\n placeholder,\n size = 'medium',\n validationStatus,\n required,\n resize = DEFAULT_TEXTAREA_RESIZE,\n rows = DEFAULT_TEXTAREA_ROWS,\n ...rest\n }: TextareaProps,\n ref,\n) => {\n return (\n <span\n className={clsx(\n styles['Textarea-wrapper'],\n fullWidth && styles['Textarea-wrapper--fullWidth'],\n invisible && styles['Textarea-wrapper--invisible'],\n disabled && styles['Textarea-wrapper--disabled'],\n monospace && styles['Textarea-wrapper--monospace'],\n validationStatus && styles[`Textarea-wrapper--${validationStatus}`],\n )}\n data-testid={testIds.outerContainer}\n >\n <textarea\n ref={ref}\n className={clsx(\n styles.Textarea,\n 'Textarea',\n styles[`Textarea--${size}`],\n styles[`Textarea-resize--${resize}`],\n fullWidth && styles['Textarea--fullWidth'],\n validationStatus && styles[`Textarea--${validationStatus}`],\n className,\n )}\n placeholder={placeholder}\n disabled={disabled}\n aria-invalid={validationStatus === 'error'}\n required={required}\n rows={rows}\n cols={cols}\n {...rest}\n >\n {children}\n </textarea>\n </span>\n )\n}\n\nexport const Textarea = forwardRef(_Textarea)\n\nTextarea.displayName = 'Textarea'\n"],"mappings":";;;;;;AASA,IAAa,IAAwB,GACxB,IAAwB,IACxB,IAA0B,QAkCjC,IAAU;CACd,MAAM;CACN,IAAI,iBAAiB;EACnB,OAAO,GAAG,KAAK,KAAK;CACtB;AACF,GA0Da,IAAW,GAvDtB,EACE,aACA,cACA,UAAA,IACA,aACA,eAAY,IACZ,eAAY,IACZ,cACA,gBACA,UAAO,UACP,qBACA,aACA,YAAS,GACT,UAAA,GACA,GAAG,KAEL,MAGE,kBAAC,QAAD;CACE,WAAW,EACT,EAAO,qBACP,KAAa,EAAO,gCACpB,KAAa,EAAO,gCACpB,KAAY,EAAO,+BACnB,KAAa,EAAO,gCACpB,KAAoB,EAAO,qBAAqB,IAClD;CACA,eAAa,EAAQ;WAErB,kBAAC,YAAD;EACO;EACL,WAAW,EACT,EAAO,UACP,YACA,EAAO,aAAa,MACpB,EAAO,oBAAoB,MAC3B,KAAa,EAAO,wBACpB,KAAoB,EAAO,aAAa,MACxC,CACF;EACa;EACH;EACV,gBAAc,MAAqB;EACzB;EACJ;EACA;EACN,GAAI;EAEH;CACO,CAAA;AACN,CAAA,CAIkC;AAE5C,EAAS,cAAc"}