@primer/react-brand 0.72.0-rc.44ea78b6 → 0.72.0-rc.4db5fc89

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 (506) hide show
  1. package/docs/components/ButtonGroup/react.md +29 -8
  2. package/docs/components/Hero/react.md +82 -18
  3. package/docs/components/River/react.md +33 -33
  4. package/docs/components/RiverBreakoutTabs/index.md +3 -4
  5. package/docs/components/index.md +1 -1
  6. package/docs/getting-started/index.md +9 -3
  7. package/docs/index.md +3 -3
  8. package/esm/ActionMenu/ActionMenu.d.ts +1 -1
  9. package/esm/ActionMenu/ActionMenu.d.ts.map +1 -1
  10. package/esm/ActionMenu/ActionMenu.js +60 -60
  11. package/esm/ActionMenu/ActionMenu.js.map +1 -1
  12. package/esm/AnchorNav/AnchorNav.js +20 -20
  13. package/esm/ButtonGroup/ButtonGroup.d.ts +3 -1
  14. package/esm/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  15. package/esm/ButtonGroup/ButtonGroup.js +24 -16
  16. package/esm/ButtonGroup/ButtonGroup.js.map +1 -1
  17. package/esm/CTABanner/CTABanner.js +6 -6
  18. package/esm/Card/Card.js +5 -5
  19. package/esm/Hero/Hero.d.ts +17 -4
  20. package/esm/Hero/Hero.d.ts.map +1 -1
  21. package/esm/Hero/Hero.js +103 -98
  22. package/esm/Hero/Hero.js.map +1 -1
  23. package/esm/Hero/Hero.module-DH253w6y.css +1 -0
  24. package/esm/Hero/Hero.module.js +8 -5
  25. package/esm/Hero/Hero.module.js.map +1 -1
  26. package/esm/Hero/HeroContext.d.ts +7 -5
  27. package/esm/Hero/HeroContext.d.ts.map +1 -1
  28. package/esm/Hero/HeroContext.js +3 -9
  29. package/esm/Hero/HeroContext.js.map +1 -1
  30. package/esm/Hero/sub-components/HeroButtonGroup.d.ts +5 -0
  31. package/esm/Hero/sub-components/HeroButtonGroup.d.ts.map +1 -0
  32. package/esm/Hero/sub-components/HeroButtonGroup.js +28 -0
  33. package/esm/Hero/sub-components/HeroButtonGroup.js.map +1 -0
  34. package/esm/Hero/sub-components/HeroImage.d.ts +7 -4
  35. package/esm/Hero/sub-components/HeroImage.d.ts.map +1 -1
  36. package/esm/Hero/sub-components/HeroImage.js +6 -6
  37. package/esm/Hero/sub-components/HeroImage.js.map +1 -1
  38. package/esm/Hero/sub-components/HeroVideo.d.ts +16 -4
  39. package/esm/Hero/sub-components/HeroVideo.d.ts.map +1 -1
  40. package/esm/Hero/sub-components/HeroVideo.js +15 -15
  41. package/esm/Hero/sub-components/HeroVideo.js.map +1 -1
  42. package/esm/Hero/sub-components/index.d.ts +2 -0
  43. package/esm/Hero/sub-components/index.d.ts.map +1 -1
  44. package/esm/Link/Link.js +5 -5
  45. package/esm/LogoSuite/LogoSuite.js +11 -11
  46. package/esm/MinimalFooter/MinimalFooter.js +6 -6
  47. package/esm/NavList/NavList.module-zvpwnkzz.css +1 -0
  48. package/esm/NavList/NavList.module.js +8 -8
  49. package/esm/NavList/NavList.module.js.map +1 -1
  50. package/esm/PricingOptions/PricingOptions.js +18 -18
  51. package/esm/SubNav/SubNav.js +30 -30
  52. package/esm/SubdomainNavBar/NavigationVisbilityObserver.js +21 -21
  53. package/esm/SubdomainNavBar/SubdomainNavBar.js +83 -83
  54. package/esm/VideoPlayer/VideoPlayer.js +4 -4
  55. package/esm/forms/Checkbox/Checkbox.d.ts +1 -0
  56. package/esm/forms/Checkbox/Checkbox.d.ts.map +1 -1
  57. package/esm/forms/Checkbox/Checkbox.js +1 -0
  58. package/esm/forms/Checkbox/Checkbox.js.map +1 -1
  59. package/esm/forms/FormControl/FormControl.d.ts +1 -0
  60. package/esm/forms/FormControl/FormControl.d.ts.map +1 -1
  61. package/esm/forms/FormControl/FormControl.js +1 -0
  62. package/esm/forms/FormControl/FormControl.js.map +1 -1
  63. package/esm/forms/Radio/Radio.d.ts +1 -0
  64. package/esm/forms/Radio/Radio.d.ts.map +1 -1
  65. package/esm/forms/Radio/Radio.js +1 -0
  66. package/esm/forms/Radio/Radio.js.map +1 -1
  67. package/esm/forms/Select/Select.d.ts +1 -0
  68. package/esm/forms/Select/Select.d.ts.map +1 -1
  69. package/esm/forms/Select/Select.js +1 -0
  70. package/esm/forms/Select/Select.js.map +1 -1
  71. package/esm/forms/TextInput/TextInput.d.ts +1 -0
  72. package/esm/forms/TextInput/TextInput.d.ts.map +1 -1
  73. package/esm/forms/TextInput/TextInput.js +1 -0
  74. package/esm/forms/TextInput/TextInput.js.map +1 -1
  75. package/esm/forms/Textarea/Textarea.d.ts +1 -0
  76. package/esm/forms/Textarea/Textarea.d.ts.map +1 -1
  77. package/esm/forms/Textarea/Textarea.js +1 -0
  78. package/esm/forms/Textarea/Textarea.js.map +1 -1
  79. package/esm/forms/index.d.ts +0 -4
  80. package/esm/forms/index.d.ts.map +1 -1
  81. package/esm/hooks/useFocusTrap.d.ts +8 -8
  82. package/esm/hooks/useFocusTrap.d.ts.map +1 -1
  83. package/esm/hooks/useFocusTrap.js +16 -16
  84. package/esm/hooks/useFocusTrap.js.map +1 -1
  85. package/esm/index.d.ts +1 -0
  86. package/esm/index.d.ts.map +1 -1
  87. package/esm/index.esm.js +68 -67
  88. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css +1 -0
  89. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/river/river-DHn1_SEa.css +1 -0
  90. package/esm/river/River/River.d.ts +16 -8
  91. package/esm/river/River/River.d.ts.map +1 -1
  92. package/esm/river/River/River.js +29 -13
  93. package/esm/river/River/River.js.map +1 -1
  94. package/esm/river/River/index.d.ts +2 -2
  95. package/esm/river/River/index.d.ts.map +1 -1
  96. package/esm/river/RiverAccordion/RiverAccordion.js +1 -1
  97. package/esm/river/RiverAccordion/RiverAccordion.module-BTU_metB.css +1 -0
  98. package/esm/river/RiverAccordion/RiverAccordion.module.js +1 -1
  99. package/esm/river/RiverAccordion/RiverAccordion.module.js.map +1 -1
  100. package/esm/river/RiverBreakout/RiverBreakout.d.ts +2 -1
  101. package/esm/river/RiverBreakout/RiverBreakout.d.ts.map +1 -1
  102. package/esm/river/RiverBreakout/RiverBreakout.js +8 -4
  103. package/esm/river/RiverBreakout/RiverBreakout.js.map +1 -1
  104. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +3 -2
  105. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts.map +1 -1
  106. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js +2 -2
  107. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js.map +1 -1
  108. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module-CB2SZhbE.css +1 -0
  109. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js +1 -1
  110. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module.js.map +1 -1
  111. package/esm/river/river-shared.module-fF58cowg.css +1 -0
  112. package/esm/river/river-shared.module.js +8 -1
  113. package/esm/river/river-shared.module.js.map +1 -1
  114. package/lib/ActionMenu/ActionMenu.d.ts +1 -1
  115. package/lib/ButtonGroup/ButtonGroup.d.ts +3 -1
  116. package/lib/Hero/Hero.d.ts +17 -4
  117. package/lib/Hero/HeroContext.d.ts +7 -5
  118. package/lib/Hero/sub-components/HeroButtonGroup.d.ts +4 -0
  119. package/lib/Hero/sub-components/HeroImage.d.ts +7 -4
  120. package/lib/Hero/sub-components/HeroVideo.d.ts +16 -4
  121. package/lib/Hero/sub-components/index.d.ts +2 -0
  122. package/lib/css/main.css +6943 -6764
  123. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  124. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  125. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  126. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  127. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  128. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  129. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  130. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  131. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  132. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  133. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  134. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  135. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  136. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  137. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  138. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  139. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  140. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  141. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  142. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  143. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  144. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  145. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  146. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  147. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  148. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  149. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  150. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  151. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  152. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  153. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  154. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  155. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  156. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  157. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  158. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  159. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  160. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  161. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  162. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  163. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  164. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  165. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  166. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  167. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  168. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  169. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  170. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  171. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  172. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  173. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  174. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  175. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
  176. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  177. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  178. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  179. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  180. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  181. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  182. package/lib/design-tokens/css/tokens/functional/components/river/river.css +8 -1
  183. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  184. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  185. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  186. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  187. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  188. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  189. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  190. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  191. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  192. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  193. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  194. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  195. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  196. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  197. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  198. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  199. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  200. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  201. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  202. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  203. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  204. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  205. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  206. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  207. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  208. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  209. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  210. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  211. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  212. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  213. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  214. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  215. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  216. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  217. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  218. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  219. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  220. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  221. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  222. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  223. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  224. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  225. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  226. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  227. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  228. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  229. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  230. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  231. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  232. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  233. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  234. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  235. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  236. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  237. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  238. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  239. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  240. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  241. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  242. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  243. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  244. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  245. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  246. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  247. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +4 -1
  248. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  249. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  250. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  251. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  252. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  253. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  254. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  255. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  256. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  257. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  258. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  259. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  260. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  261. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  262. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  263. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  264. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  265. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  266. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  267. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  268. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  269. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  270. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  271. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  272. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  273. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  274. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  275. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  276. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  277. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  278. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  279. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  280. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  281. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  282. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  283. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  284. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  285. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  286. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  287. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  288. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  289. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  290. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  291. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  292. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  293. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  294. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  295. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  296. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  297. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  298. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  299. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  300. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  301. package/lib/design-tokens/js/tokens/functional/components/river/river.js +2 -1
  302. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  303. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  304. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  305. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  306. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  307. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  308. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  309. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  310. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  311. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  312. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  313. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  314. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  315. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  316. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  317. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  318. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  319. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  320. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  321. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  322. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  323. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  324. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  325. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  326. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  327. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  328. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  329. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  330. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  331. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  332. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  333. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  334. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  335. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  336. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  337. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  338. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  339. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  340. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  341. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  342. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  343. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  344. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  345. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  346. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  347. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  348. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  349. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  350. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  351. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  352. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  353. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  354. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  355. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +2 -1
  356. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  357. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  358. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  359. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  360. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  361. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  362. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  363. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  364. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  365. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  366. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  367. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  368. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  369. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  370. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  371. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  372. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  373. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  374. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  375. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  376. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  377. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  378. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  379. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  380. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  381. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  382. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  383. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  384. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  385. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  386. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  387. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  388. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  389. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  390. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  391. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  392. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  393. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  394. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  395. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  396. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  397. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  398. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  399. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  400. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  401. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  402. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  403. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  404. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  405. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  406. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  407. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  408. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  409. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  410. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  411. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  412. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  413. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  414. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  415. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  416. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  417. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  418. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  419. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  420. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  421. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  422. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  423. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  424. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  425. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  426. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  427. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  428. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  429. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  430. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  431. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  432. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  433. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  434. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  435. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  436. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  437. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  438. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  439. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  440. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  441. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +4 -1
  442. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +4 -1
  443. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  444. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  445. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  446. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  447. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  448. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  449. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  450. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  451. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  452. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  453. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  454. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  455. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  456. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  457. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  458. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  459. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  460. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  461. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  462. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  463. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  464. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  465. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  466. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  467. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  468. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  469. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  470. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  471. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  472. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  473. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  474. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  475. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  476. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  477. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  478. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  479. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  480. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  481. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  482. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  483. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  484. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  485. package/lib/forms/Checkbox/Checkbox.d.ts +1 -0
  486. package/lib/forms/FormControl/FormControl.d.ts +1 -0
  487. package/lib/forms/Radio/Radio.d.ts +1 -0
  488. package/lib/forms/Select/Select.d.ts +1 -0
  489. package/lib/forms/TextInput/TextInput.d.ts +1 -0
  490. package/lib/forms/Textarea/Textarea.d.ts +1 -0
  491. package/lib/forms/index.d.ts +0 -4
  492. package/lib/hooks/useFocusTrap.d.ts +8 -8
  493. package/lib/index.d.ts +1 -0
  494. package/lib/index.js +1 -1
  495. package/lib/river/River/River.d.ts +16 -8
  496. package/lib/river/River/index.d.ts +2 -2
  497. package/lib/river/RiverBreakout/RiverBreakout.d.ts +2 -1
  498. package/lib/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +3 -2
  499. package/llms.txt +3 -3
  500. package/package.json +1 -1
  501. package/esm/Hero/Hero.module-DqG5f0MT.css +0 -1
  502. package/esm/NavList/NavList.module-CZFnt8br.css +0 -1
  503. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/river/river-QteO10lt.css +0 -1
  504. package/esm/river/RiverAccordion/RiverAccordion.module-nlZZH3O7.css +0 -1
  505. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.module-CH8jehnx.css +0 -1
  506. package/esm/river/river-shared.module-D0AV93uz.css +0 -1
@@ -1,12 +1,12 @@
1
1
  import 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 { ChevronLeftIcon as r, LinkExternalIcon as i, MarkGithubIcon as a, SearchIcon as o, XIcon as s } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
5
- import { Button as c } from "../Button/Button.js";
6
- import { useWindowSize as l } from "../hooks/useWindowSize.js";
7
- import { useOnClickOutside as u } from "../hooks/useOnClickOutside.js";
8
- import d from "./SubdomainNavBar.module.js";
9
- import { useKeyboardEscape as f } from "../hooks/useKeyboardEscape.js";
4
+ import { Button as r } from "../Button/Button.js";
5
+ import { useOnClickOutside as i } from "../hooks/useOnClickOutside.js";
6
+ import { useKeyboardEscape as a } from "../hooks/useKeyboardEscape.js";
7
+ import { ChevronLeftIcon as o, LinkExternalIcon as s, MarkGithubIcon as c, SearchIcon as l, XIcon as u } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
8
+ import { useWindowSize as d } from "../hooks/useWindowSize.js";
9
+ import f from "./SubdomainNavBar.module.js";
10
10
  import { NavigationVisbilityObserver as p } from "./NavigationVisbilityObserver.js";
11
11
  import { useFocusTrap as m } from "../hooks/useFocusTrap.js";
12
12
  import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-ehJCoExh.css';/* empty css */
@@ -30,8 +30,8 @@ var D = {
30
30
  return `${this.root}-search-live-region`;
31
31
  }
32
32
  };
33
- function O({ children: i, className: o, fixed: s = !0, fullWidth: u = !1, logoHref: h = "https://github.com", title: g, titleHref: v = "/", onNarrowMenuToggle: O, ...N }) {
34
- let [P, F] = C(!0), [I, L] = C(!1), { isSmall: R, isMedium: z } = l(), [B, V] = C(!1), H = S(null), U = t("start-of-content"), W = () => {
33
+ function O({ children: i, className: s, fixed: l = !0, fullWidth: u = !1, logoHref: h = "https://github.com", title: g, titleHref: v = "/", onNarrowMenuToggle: O, ...N }) {
34
+ let [P, F] = C(!0), [I, L] = C(!1), { isSmall: R, isMedium: z } = d(), [B, V] = C(!1), H = S(null), U = t("start-of-content"), W = () => {
35
35
  let e = !P;
36
36
  F(e), O?.(!e);
37
37
  }, G = () => L(!I), K = S(null);
@@ -42,7 +42,7 @@ function O({ children: i, className: o, fixed: s = !0, fullWidth: u = !1, logoHr
42
42
  containerRef: K,
43
43
  restoreFocusOnCleanUp: !0,
44
44
  disabled: P
45
- }), f(() => {
45
+ }), a(() => {
46
46
  F(!0), O?.(!1);
47
47
  }), b(() => {
48
48
  z && (F(!0), O?.(!1));
@@ -70,51 +70,51 @@ function O({ children: i, className: o, fixed: s = !0, fullWidth: u = !1, logoHr
70
70
  return !!e && !!t;
71
71
  }, [i]);
72
72
  return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("div", {
73
- className: e(d["SubdomainNavBar-outer-container"], s && d["SubdomainNavBar-outer-container--fixed"], Z && d["SubdomainNavBar-outer-container--has-actions"]),
74
- children: [/* @__PURE__ */ T(c, {
73
+ className: e(f["SubdomainNavBar-outer-container"], l && f["SubdomainNavBar-outer-container--fixed"], Z && f["SubdomainNavBar-outer-container--has-actions"]),
74
+ children: [/* @__PURE__ */ T(r, {
75
75
  as: "a",
76
76
  href: `#${H.current?.id || U}`,
77
77
  variant: "primary",
78
- className: e(d["SubdomainNavBar-skip-to-content"], !B && "visually-hidden"),
78
+ className: e(f["SubdomainNavBar-skip-to-content"], !B && "visually-hidden"),
79
79
  onFocus: q,
80
80
  onBlur: J,
81
81
  children: "Skip to content"
82
82
  }), /* @__PURE__ */ T("header", {
83
- className: e(d.SubdomainNavBar, o),
83
+ className: e(f.SubdomainNavBar, s),
84
84
  "data-testid": D.root,
85
85
  ...N,
86
86
  children: /* @__PURE__ */ E("div", {
87
87
  ref: K,
88
- className: e(d["SubdomainNavBar-inner-container"], I && d["SubdomainNavBar-inner-container--search-open"], !u && d["SubdomainNavBar-inner-container--centered"]),
88
+ className: e(f["SubdomainNavBar-inner-container"], I && f["SubdomainNavBar-inner-container--search-open"], !u && f["SubdomainNavBar-inner-container--centered"]),
89
89
  "data-testid": D.innerContainer,
90
90
  children: [
91
91
  /* @__PURE__ */ T("nav", {
92
92
  "aria-label": "Header logo and title",
93
93
  children: /* @__PURE__ */ E("ol", {
94
- className: d["SubdomainNavBar-title-area"],
94
+ className: f["SubdomainNavBar-title-area"],
95
95
  children: [/* @__PURE__ */ T("li", { children: /* @__PURE__ */ E("a", {
96
96
  href: h,
97
97
  "aria-label": "Github Home",
98
- className: d["SubdomainNavBar-logo-mark"],
98
+ className: f["SubdomainNavBar-logo-mark"],
99
99
  children: [/* @__PURE__ */ T("span", {
100
- className: e(d["SubdomainNavBar-back-arrow"]),
101
- children: /* @__PURE__ */ T(r, {
100
+ className: e(f["SubdomainNavBar-back-arrow"]),
101
+ children: /* @__PURE__ */ T(o, {
102
102
  fill: "currentColor",
103
103
  size: 24
104
104
  })
105
- }), /* @__PURE__ */ T(a, {
105
+ }), /* @__PURE__ */ T(c, {
106
106
  fill: "currentColor",
107
107
  size: 24
108
108
  })]
109
109
  }) }), g && R && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("li", {
110
110
  role: "separator",
111
- className: d["SubdomainNavBar-title-separator"],
111
+ className: f["SubdomainNavBar-title-separator"],
112
112
  "aria-hidden": !0,
113
113
  children: "/"
114
114
  }), /* @__PURE__ */ T("li", { children: /* @__PURE__ */ T("a", {
115
115
  href: v,
116
116
  "aria-label": `${g} home`,
117
- className: e(d["SubdomainNavBar-title"]),
117
+ className: e(f["SubdomainNavBar-title"]),
118
118
  children: /* @__PURE__ */ T(n, {
119
119
  size: "400",
120
120
  weight: "medium",
@@ -126,15 +126,15 @@ function O({ children: i, className: o, fixed: s = !0, fullWidth: u = !1, logoHr
126
126
  Y && /* @__PURE__ */ T("nav", {
127
127
  id: "menu-navigation",
128
128
  "aria-label": g,
129
- className: d["SubdomainNavBar-primary-nav"],
129
+ className: f["SubdomainNavBar-primary-nav"],
130
130
  "data-testid": D.menuLinks,
131
131
  children: /* @__PURE__ */ T(p, {
132
- className: e(d["SubdomainNavBar-primary-nav-list--invisible"]),
132
+ className: e(f["SubdomainNavBar-primary-nav-list--invisible"]),
133
133
  children: X
134
134
  })
135
135
  }),
136
136
  /* @__PURE__ */ E("div", {
137
- className: e(d["SubdomainNavBar-secondary-nav"]),
137
+ className: e(f["SubdomainNavBar-secondary-nav"]),
138
138
  children: [
139
139
  _.Children.toArray(i).map((e) => _.isValidElement(e) && e.type === A ? _.cloneElement(e, {
140
140
  active: I,
@@ -146,39 +146,39 @@ function O({ children: i, className: o, fixed: s = !0, fullWidth: u = !1, logoHr
146
146
  "aria-label": "Menu",
147
147
  "aria-controls": "menu-navigation",
148
148
  "aria-haspopup": "true",
149
- className: e(d["SubdomainNavBar-menu-button"], d["SubdomainNavBar-mobile-menu-button"], !P && d["SubdomainNavBar-menu-button--close"]),
149
+ className: e(f["SubdomainNavBar-menu-button"], f["SubdomainNavBar-mobile-menu-button"], !P && f["SubdomainNavBar-menu-button--close"]),
150
150
  "data-testid": D.menuButton,
151
151
  onClick: W,
152
152
  children: [
153
- /* @__PURE__ */ T("div", { className: e(d["SubdomainNavBar-menu-button-bar"]) }),
154
- /* @__PURE__ */ T("div", { className: e(d["SubdomainNavBar-menu-button-bar"]) }),
155
- /* @__PURE__ */ T("div", { className: e(d["SubdomainNavBar-menu-button-bar"]) })
153
+ /* @__PURE__ */ T("div", { className: e(f["SubdomainNavBar-menu-button-bar"]) }),
154
+ /* @__PURE__ */ T("div", { className: e(f["SubdomainNavBar-menu-button-bar"]) }),
155
+ /* @__PURE__ */ T("div", { className: e(f["SubdomainNavBar-menu-button-bar"]) })
156
156
  ]
157
157
  }),
158
158
  z && /* @__PURE__ */ T("div", {
159
- className: e(d["SubdomainNavBar-button-area"], d["SubdomainNavBar-button-area--visible"]),
159
+ className: e(f["SubdomainNavBar-button-area"], f["SubdomainNavBar-button-area--visible"]),
160
160
  children: /* @__PURE__ */ T("div", {
161
- className: d["SubdomainNavBar-button-area-inner"],
161
+ className: f["SubdomainNavBar-button-area-inner"],
162
162
  children: _.Children.toArray(i).map((e) => _.isValidElement(e) && (e.type === j || e.type === M) ? e : null).filter(Boolean)
163
163
  })
164
164
  }),
165
165
  !z && /* @__PURE__ */ E("div", {
166
- className: e(d["SubdomainNavBar-menu-wrapper"], P && d["SubdomainNavBar-menu-wrapper--close"]),
166
+ className: e(f["SubdomainNavBar-menu-wrapper"], P && f["SubdomainNavBar-menu-wrapper--close"]),
167
167
  children: [/* @__PURE__ */ E("div", { children: [g && v && /* @__PURE__ */ T(n, {
168
168
  as: "p",
169
169
  children: /* @__PURE__ */ T("a", {
170
170
  href: v,
171
171
  "aria-label": `${g} home`,
172
- className: e(d["SubdomainNavBar-link"], d["SubdomainNavBar-link--title"]),
172
+ className: e(f["SubdomainNavBar-link"], f["SubdomainNavBar-link--title"]),
173
173
  children: g
174
174
  })
175
175
  }), Y && !P && /* @__PURE__ */ T(p, {
176
- className: e(d["SubdomainNavBar-primary-nav-list--visible"]),
176
+ className: e(f["SubdomainNavBar-primary-nav-list--visible"]),
177
177
  children: X
178
178
  })] }), /* @__PURE__ */ T("div", {
179
- className: e(d["SubdomainNavBar-button-area"], d["SubdomainNavBar-button-area--visible"]),
179
+ className: e(f["SubdomainNavBar-button-area"], f["SubdomainNavBar-button-area--visible"]),
180
180
  children: /* @__PURE__ */ T("div", {
181
- className: d["SubdomainNavBar-button-area-inner"],
181
+ className: f["SubdomainNavBar-button-area-inner"],
182
182
  children: _.Children.toArray(i).map((e) => _.isValidElement(e) && (e.type === j || e.type === M) ? e : null).filter(Boolean)
183
183
  })
184
184
  })]
@@ -193,34 +193,34 @@ function O({ children: i, className: o, fixed: s = !0, fullWidth: u = !1, logoHr
193
193
  tabIndex: -1
194
194
  })] });
195
195
  }
196
- function k({ href: t, className: n, children: r, isExternal: a, ...o }) {
196
+ function k({ href: t, className: n, children: r, isExternal: i, ...a }) {
197
197
  return /* @__PURE__ */ T("li", {
198
- className: e(d["SubdomainNavBar-primary-nav-list-item"], n),
199
- ...o,
198
+ className: e(f["SubdomainNavBar-primary-nav-list-item"], n),
199
+ ...a,
200
200
  children: /* @__PURE__ */ E("a", {
201
201
  href: t,
202
- className: d["SubdomainNavBar-link"],
202
+ className: f["SubdomainNavBar-link"],
203
203
  children: [/* @__PURE__ */ T("span", {
204
- className: d["SubdomainNavBar-link-text"],
204
+ className: f["SubdomainNavBar-link-text"],
205
205
  children: r
206
- }), a && /* @__PURE__ */ T(i, {
206
+ }), i && /* @__PURE__ */ T(s, {
207
207
  size: 16,
208
208
  "aria-label": "External link"
209
209
  })]
210
210
  })
211
211
  });
212
212
  }
213
- var A = v(({ active: t, title: r, searchResults: i, searchTerm: a, handlerFn: c, onSubmit: l, onChange: p }, _) => {
213
+ var A = v(({ active: t, title: r, searchResults: o, searchTerm: s, handlerFn: c, onSubmit: d, onChange: p }, _) => {
214
214
  let v = S(null);
215
215
  m({
216
216
  containerRef: v,
217
217
  restoreFocusOnCleanUp: !0,
218
218
  disabled: !t
219
- }), u(v, c);
219
+ }), i(v, c);
220
220
  let [x, O] = C(-1), [k, A] = C(), [j, M] = C(!1), N = y((e) => {
221
221
  c && c(e), O(-1);
222
222
  }, [c]);
223
- u(v, N), f(() => {
223
+ i(v, N), a(() => {
224
224
  if (!k && t) return N(), !1;
225
225
  A(!1), O(-1);
226
226
  });
@@ -230,28 +230,28 @@ var A = v(({ active: t, title: r, searchResults: i, searchTerm: a, handlerFn: c,
230
230
  "ArrowUp",
231
231
  "Escape",
232
232
  "Enter"
233
- ], n = x, r = i ? i.length : 0, a = v.current, o;
234
- if (!t.includes(e.key) || e.key === "Enter" && x === -1 || !a) return !1;
235
- e.preventDefault(), e.key === "ArrowDown" ? (o = n < r - 1 ? n + 1 : -1, O(o)) : e.key === "ArrowUp" && (o = n === -1 ? r - 1 : n - 1, O(o)), ["ArrowDown", "ArrowUp"].includes(e.key) && a.querySelector(`#subdomainnavbar-search-result-${o}`)?.scrollIntoView(), e.key === "Enter" && a.querySelector(`#subdomainnavbar-search-result-${x} a`).click();
236
- }, [i, x]), F = y(() => {
233
+ ], n = x, r = o ? o.length : 0, i = v.current, a;
234
+ if (!t.includes(e.key) || e.key === "Enter" && x === -1 || !i) return !1;
235
+ e.preventDefault(), e.key === "ArrowDown" ? (a = n < r - 1 ? n + 1 : -1, O(a)) : e.key === "ArrowUp" && (a = n === -1 ? r - 1 : n - 1, O(a)), ["ArrowDown", "ArrowUp"].includes(e.key) && i.querySelector(`#subdomainnavbar-search-result-${a}`)?.scrollIntoView(), e.key === "Enter" && i.querySelector(`#subdomainnavbar-search-result-${x} a`).click();
236
+ }, [o, x]), F = y(() => {
237
237
  M(!0), setTimeout(() => {
238
238
  t && M(!1);
239
239
  }, 200);
240
240
  }, [t]);
241
241
  return b(() => {
242
- A(!!(i && i.length)), F();
242
+ A(!!(o && o.length)), F();
243
243
  }, [
244
- i,
245
- a,
244
+ o,
245
+ s,
246
246
  F
247
247
  ]), /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", {
248
- className: e(d["SubdomainNavBar-search-trigger"]),
248
+ className: e(f["SubdomainNavBar-search-trigger"]),
249
249
  children: /* @__PURE__ */ T("button", {
250
250
  "aria-label": "Toggle search bar",
251
- className: d["SubdomainNavBar-search-button"],
251
+ className: f["SubdomainNavBar-search-button"],
252
252
  onClick: c,
253
253
  "data-testid": "toggle-search",
254
- children: /* @__PURE__ */ T(o, { "aria-label": "Search icon" })
254
+ children: /* @__PURE__ */ T(l, { "aria-label": "Search icon" })
255
255
  })
256
256
  }), t && /* @__PURE__ */ E("div", {
257
257
  ref: v,
@@ -259,12 +259,12 @@ var A = v(({ active: t, title: r, searchResults: i, searchTerm: a, handlerFn: c,
259
259
  "aria-label": `Search ${r}`,
260
260
  "aria-modal": "true",
261
261
  tabIndex: -1,
262
- className: e(d["SubdomainNavBar-search-dialog"]),
262
+ className: e(f["SubdomainNavBar-search-dialog"]),
263
263
  children: [/* @__PURE__ */ E("div", {
264
- className: e(d["SubdomainNavBar-search-dialog-control-area"]),
264
+ className: e(f["SubdomainNavBar-search-dialog-control-area"]),
265
265
  children: [/* @__PURE__ */ T("form", {
266
- className: e(d["SubdomainNavBar-search-form"]),
267
- onSubmit: l,
266
+ className: e(f["SubdomainNavBar-search-form"]),
267
+ onSubmit: d,
268
268
  role: "search",
269
269
  children: /* @__PURE__ */ E(g, {
270
270
  fullWidth: !0,
@@ -274,51 +274,51 @@ var A = v(({ active: t, title: r, searchResults: i, searchTerm: a, handlerFn: c,
274
274
  children: "Search"
275
275
  }), /* @__PURE__ */ T(h, {
276
276
  ref: _,
277
- className: e(d["SubdomainNavBar-search-text-input"]),
277
+ className: e(f["SubdomainNavBar-search-text-input"]),
278
278
  name: "search",
279
279
  role: "combobox",
280
280
  "aria-expanded": k,
281
281
  "aria-controls": "listbox-search-results",
282
282
  placeholder: `Search ${r}`,
283
283
  onChange: p,
284
- defaultValue: a,
284
+ defaultValue: s,
285
285
  invisible: !0,
286
- leadingVisual: /* @__PURE__ */ T(o, { size: 16 }),
286
+ leadingVisual: /* @__PURE__ */ T(l, { size: 16 }),
287
287
  "aria-activedescendant": x === -1 ? void 0 : `subdomainnavbar-search-result-${x}`,
288
288
  onKeyDown: P
289
289
  })]
290
290
  })
291
291
  }), /* @__PURE__ */ T("button", {
292
292
  "aria-label": "Close",
293
- className: e(d["SubdomainNavBar-menu-button"], d["SubdomainNavBar-menu-button--close"]),
293
+ className: e(f["SubdomainNavBar-menu-button"], f["SubdomainNavBar-menu-button--close"]),
294
294
  onClick: N,
295
- children: /* @__PURE__ */ T(s, { size: 24 })
295
+ children: /* @__PURE__ */ T(u, { size: 24 })
296
296
  })]
297
297
  }), /* @__PURE__ */ E("div", {
298
298
  id: "listbox-search-results",
299
299
  children: [k && /* @__PURE__ */ E("div", {
300
- className: e(d["SubdomainNavBar-search-results-container"]),
300
+ className: e(f["SubdomainNavBar-search-results-container"]),
301
301
  children: [/* @__PURE__ */ E(n, {
302
302
  id: "subdomainnavbar-search-results-heading",
303
- className: d["SubdomainNavBar-search-results-heading"],
303
+ className: f["SubdomainNavBar-search-results-heading"],
304
304
  children: [
305
305
  "Results for “",
306
- a,
306
+ s,
307
307
  "”"
308
308
  ]
309
309
  }), /* @__PURE__ */ T("ul", {
310
310
  role: "listbox",
311
311
  tabIndex: 0,
312
312
  "aria-labelledby": "subdomainnavbar-search-results-heading",
313
- className: e(d["SubdomainNavBar-search-results"]),
314
- children: i?.map((e, t) => /* @__PURE__ */ E("li", {
313
+ className: e(f["SubdomainNavBar-search-results"]),
314
+ children: o?.map((e, t) => /* @__PURE__ */ E("li", {
315
315
  id: `subdomainnavbar-search-result-${t}`,
316
- className: d["SubdomainNavBar-search-result-item"],
316
+ className: f["SubdomainNavBar-search-result-item"],
317
317
  role: "option",
318
318
  "aria-selected": t === x,
319
319
  children: [
320
320
  /* @__PURE__ */ T("div", {
321
- className: d["SubdomainNavBar-search-result-item-container"],
321
+ className: f["SubdomainNavBar-search-result-item-container"],
322
322
  children: /* @__PURE__ */ T("a", {
323
323
  href: e.url,
324
324
  children: e.title
@@ -328,16 +328,16 @@ var A = v(({ active: t, title: r, searchResults: i, searchTerm: a, handlerFn: c,
328
328
  as: "p",
329
329
  size: "200",
330
330
  id: `subdomainnavbar-search-result-item-desc${t}`,
331
- className: d["SubdomainNavBar-search-result-item-desc"],
331
+ className: f["SubdomainNavBar-search-result-item-desc"],
332
332
  children: e.description
333
333
  }),
334
334
  /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(n, {
335
335
  size: "100",
336
- className: d["SubdomainNavBar-search-result-item-desc"],
336
+ className: f["SubdomainNavBar-search-result-item-desc"],
337
337
  children: e.date
338
338
  }), e.category && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E(n, {
339
339
  size: "100",
340
- className: d["SubdomainNavBar-search-result-item-desc"],
340
+ className: f["SubdomainNavBar-search-result-item-desc"],
341
341
  children: [
342
342
  " ",
343
343
  "•",
@@ -345,7 +345,7 @@ var A = v(({ active: t, title: r, searchResults: i, searchTerm: a, handlerFn: c,
345
345
  ]
346
346
  }), /* @__PURE__ */ T(n, {
347
347
  size: "100",
348
- className: d["SubdomainNavBar-search-result-item-desc"],
348
+ className: f["SubdomainNavBar-search-result-item-desc"],
349
349
  children: e.category
350
350
  })] })] })
351
351
  ]
@@ -356,29 +356,29 @@ var A = v(({ active: t, title: r, searchResults: i, searchTerm: a, handlerFn: c,
356
356
  "aria-atomic": "true",
357
357
  "data-testid": D.liveRegion,
358
358
  className: "visually-hidden",
359
- children: [`${i?.length} suggestions.`, j && /* @__PURE__ */ T("span", { children: "\xA0" })]
359
+ children: [`${o?.length} suggestions.`, j && /* @__PURE__ */ T("span", { children: "\xA0" })]
360
360
  })]
361
361
  })]
362
362
  })] });
363
363
  });
364
- function j({ children: t, href: n, ...r }) {
365
- return /* @__PURE__ */ T(c, {
364
+ function j({ children: t, href: n, ...i }) {
365
+ return /* @__PURE__ */ T(r, {
366
366
  as: "a",
367
367
  href: n,
368
- className: e(d["SubdomainNavBar-cta-button"]),
368
+ className: e(f["SubdomainNavBar-cta-button"]),
369
369
  variant: "primary",
370
370
  size: "small",
371
- ...r,
371
+ ...i,
372
372
  children: t
373
373
  });
374
374
  }
375
- function M({ children: t, href: n, ...r }) {
376
- return /* @__PURE__ */ T(c, {
375
+ function M({ children: t, href: n, ...i }) {
376
+ return /* @__PURE__ */ T(r, {
377
377
  as: "a",
378
378
  href: n,
379
- className: e(d["SubdomainNavBar-cta-button"], d["SubdomainNavBar-cta-button--secondary"]),
379
+ className: e(f["SubdomainNavBar-cta-button"], f["SubdomainNavBar-cta-button--secondary"]),
380
380
  size: "small",
381
- ...r,
381
+ ...i,
382
382
  children: t
383
383
  });
384
384
  }
@@ -1,8 +1,8 @@
1
1
  import e from "../node_modules/clsx/dist/clsx.js";
2
2
  import { useProvidedRefOrCreate as t } from "../hooks/useRef.js";
3
3
  import { Text as n } from "../Text/Text.js";
4
- import { PlayIcon as r } from "./components/PlayIcon/PlayIcon.js";
5
- import { MarkGithubIcon as i } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
4
+ import { MarkGithubIcon as r } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
5
+ import { PlayIcon as i } from "./components/PlayIcon/PlayIcon.js";
6
6
  import a from "./VideoPlayer.module.js";
7
7
  import { VideoContext as o, VideoProvider as s, useVideo as c } from "./hooks/useVideo.js";
8
8
  import { Captions as l } from "./components/Captions/Captions.js";
@@ -19,7 +19,7 @@ import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/compon
19
19
  import { forwardRef as v, useCallback as y, useContext as b } from "react";
20
20
  import { jsx as x, jsxs as S } from "react/jsx-runtime";
21
21
  //#region src/VideoPlayer/VideoPlayer.tsx
22
- var C = v(({ title: o, visuallyHiddenTitle: s, showBranding: v = !0, children: b, className: C, showPlayPauseButton: T = !0, showSeekControl: E = !0, showCCButton: D = !0, showMuteButton: O = !0, showVolumeControl: k = !0, showFullScreenButton: A = !0, playIcon: j = () => /* @__PURE__ */ x(r, { className: a.VideoPlayer__playButton }), ...M }, N) => {
22
+ var C = v(({ title: o, visuallyHiddenTitle: s, showBranding: v = !0, children: b, className: C, showPlayPauseButton: T = !0, showSeekControl: E = !0, showCCButton: D = !0, showMuteButton: O = !0, showVolumeControl: k = !0, showFullScreenButton: A = !0, playIcon: j = () => /* @__PURE__ */ x(i, { className: a.VideoPlayer__playButton }), ...M }, N) => {
23
23
  let { ccEnabled: P, fullscreenRef: F, isPlaying: I, ref: L, togglePlaying: R } = c(), z = t(y((e) => {
24
24
  w(N, e);
25
25
  }, [N])), B = y((e) => {
@@ -46,7 +46,7 @@ var C = v(({ title: o, visuallyHiddenTitle: s, showBranding: v = !0, children: b
46
46
  }),
47
47
  v || !s ? /* @__PURE__ */ S("div", {
48
48
  className: e(a.VideoPlayer__title, I && a["VideoPlayer__title--hidden"]),
49
- children: [v && /* @__PURE__ */ x(i, {
49
+ children: [v && /* @__PURE__ */ x(r, {
50
50
  size: 40,
51
51
  "aria-label": "GitHub logo"
52
52
  }), !s && /* @__PURE__ */ x(n, {
@@ -1,6 +1,7 @@
1
1
  import React, { type InputHTMLAttributes } from 'react';
2
2
  import type { BaseProps } from '../../component-helpers';
3
3
  import type { FormValidationStatus } from '../form-types';
4
+ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css';
4
5
  export type CheckboxProps = {
5
6
  /**
6
7
  * Apply indeterminate visual appearance to the checkbox
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/forms/Checkbox/Checkbox.tsx"],"names":[],"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mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,GACzD,SAAS,CAAC,gBAAgB,CAAC,CAAA;AAsF7B,eAAO,MAAM,QAAQ,4FAA+B,CAAA"}
@@ -2,6 +2,7 @@ import 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";
5
+ import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css';/* empty css */
5
6
  import i from "./Checkbox.module.js";
6
7
  import { forwardRef as a, useCallback as o } from "react";
7
8
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
@@ -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 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":";;;;;;;AAwHA,IAAa,I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[],"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,6 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import type { BaseProps } from '../../component-helpers';
3
3
  import type { FormValidationStatus, FormInputSizes } from '../';
4
+ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css';
4
5
  export type FormControlProps = BaseProps<HTMLElement> & {
5
6
  /**
6
7
  * Apply a decorative border to the form control.
@@ -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,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@@ import 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 { AlertFillIcon as r, CheckCircleFillIcon as i } from "../../node_modules/@primer/octicons-react/dist/index.esm.js";
5
+ import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css';/* empty css */
5
6
  import { Checkbox as a } from "../Checkbox/Checkbox.js";
6
7
  import { Textarea as o } from "../Textarea/Textarea.js";
7
8
  import { TextInput as s } from "../TextInput/TextInput.js";
@@ -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 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: FormControlH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Ac,OAAO,OAAO,GAAM;CAC7C,OAAO;CACP,YAAY;CACZ,MAAM;CACP,CAAC"}
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":";;;;;;;;;;;;;;AAyDA,IAAM,KAAQ,EACZ,aACA,cACA,cACA,cACA,OACA,aACA,UAAO,UACP,qBACA,GAAG,QACsC;CACzC,IAAM,IAAW,EAAM,EAAG,EACpB,IAAc,EAAM,SAAS,QAAQ,EAAS,EAE9C,IAAkB,EAAY,MAClC,MAAS,EAAM,eAAe,EAAM,KAAK,E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AwB,IACxB,UAAO,UACP,qBACA,mBACA,GAAG,QAGD,kBAAC,SAAD;CACW;CACT,WAAW,EACT,EAAO,sBACP,KAAoB,EAAO,sBAAsB,MACjD,EAAO,sBAAsB,MAC7B,KAAkB,EAAO,uCACzB,EACD;CACD,GAAI;WATN,CAWG,EAAM,SAAS,IAAI,IAAU,MACxB,EAAM,eAAqC,EAAM,IAAI,EAAM,SAAS,IAC/D,EAAM,aAAa,GAAO,EAC/B,WAAW,EAAK,EAAO,yBAAyB,EAAM,MAAM,UAAU,EACvE,CAAC,GAEG,EACP,EAED,KAAY,KACX,kBAAC,QAAD;EAAM,WAAW,EAAO;EAA+B,eAAA;YAAvD,CACG,KAAI,IAEA;IAEH;IASN,KAAyB,EAAC,aAAU,qBAAkB,cAAW,GAAG,QAEtE,kBAAC,GAAD;CACE,IAAG;CACH,MAAK;CACL,WAAW,EACT,EAAO,2BACP,KAAoB,EAAO,uCAC3B,KAAoB,EAAO,2BAA2B,MACtD,EACD;CACD,GAAI;WATN;EAWG,MAAqB,WACpB,kBAAC,QAAD;GAAM,WAAW,EAAO;aACtB,kBAAC,GAAD,EAAiB,CAAA;GACZ,CAAA;EAER,MAAqB,aACpB,kBAAC,QAAD;GAAM,WAAW,EAAO;aACtB,kBAAC,GAAD,EAAuB,CAAA;GAClB,CAAA;EAER;EACI;IAML,KAAmB,EAAC,cAAW,GAAG,QAC/B,kBAAC,GAAD;CAAM,IAAG;CAAO,MAAK;CAAM,SAAQ;CAAQ,WAAW,EAAK,EAAO,qBAAqB,EAAU;CAAE,GAAI;CAAQ,CAAA,EAO3G,IAAc,OAAO,OAAO,GAAM;CAC7C,OAAO;CACP,YAAY;CACZ,MAAM;CACP,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import React, { type InputHTMLAttributes } from 'react';
2
2
  import type { BaseProps } from '../../component-helpers';
3
+ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css';
3
4
  export type RadioProps = {
4
5
  /**
5
6
  * Apply inactive visual appearance to the Radio
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/forms/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA0B,KAAK,mBAAmB,EAAoB,MAAM,OAAO,CAAA;AAKjG,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AAItD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,GACzD,SAAS,CAAC,gBAAgB,CAAC,CAAA;AAsC7B,eAAO,MAAM,KAAK,yFAA4B,CAAA"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/forms/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA0B,KAAK,mBAAmB,EAAoB,MAAM,OAAO,CAAA;AAKjG,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAA;AAEtD,OAAO,2GAA2G,CAAA;AAGlH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,GACzD,SAAS,CAAC,gBAAgB,CAAC,CAAA;AAsC7B,eAAO,MAAM,KAAK,yFAA4B,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import 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
+ import '../../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes-C05YPRXo.css';/* empty css */
4
5
  import r from "./Radio.module.js";
5
6
  import { forwardRef as i, useCallback as a } from "react";
6
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";