@primer/react-brand 0.72.0-rc.f273f08b → 0.72.0-rc.f8b72452

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 (400) hide show
  1. package/docs/components/River/react.md +12 -45
  2. package/docs/components/RiverBreakoutTabs/index.md +3 -4
  3. package/docs/index.md +2 -2
  4. package/esm/hooks/useFocusTrap.d.ts +8 -8
  5. package/esm/hooks/useFocusTrap.d.ts.map +1 -1
  6. package/esm/hooks/useFocusTrap.js +16 -16
  7. package/esm/hooks/useFocusTrap.js.map +1 -1
  8. package/esm/index.d.ts +1 -0
  9. package/esm/index.d.ts.map +1 -1
  10. package/esm/index.esm.js +51 -50
  11. package/esm/river/River/River.d.ts +0 -6
  12. package/esm/river/River/River.d.ts.map +1 -1
  13. package/esm/river/River/River.js +6 -6
  14. package/esm/river/River/River.js.map +1 -1
  15. package/esm/river/RiverAccordion/RiverAccordion.module-BTU_metB.css +1 -0
  16. package/esm/river/RiverAccordion/RiverAccordion.module.js +1 -1
  17. package/esm/river/RiverAccordion/RiverAccordion.module.js.map +1 -1
  18. package/esm/river/RiverBreakout/RiverBreakout.d.ts +2 -1
  19. package/esm/river/RiverBreakout/RiverBreakout.d.ts.map +1 -1
  20. package/esm/river/RiverBreakout/RiverBreakout.js +20 -16
  21. package/esm/river/RiverBreakout/RiverBreakout.js.map +1 -1
  22. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +1 -0
  23. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts.map +1 -1
  24. package/esm/river/RiverBreakoutTabs/RiverBreakoutTabs.js.map +1 -1
  25. package/esm/river/river-shared.module-Bf_bNlTd.css +1 -0
  26. package/esm/river/river-shared.module.js +1 -1
  27. package/esm/river/river-shared.module.js.map +1 -1
  28. package/lib/css/main.css +98 -72
  29. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  30. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  31. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  32. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  39. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  40. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  41. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  42. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  43. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  44. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  45. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  46. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  47. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  48. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  49. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  50. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  51. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  52. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  53. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  54. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  55. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  56. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  57. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  58. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  59. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  60. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  61. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  62. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  63. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  64. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  65. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  66. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  67. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  68. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  69. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  70. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  71. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  72. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  73. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  74. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  75. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  76. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  77. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  78. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  79. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  84. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  85. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  86. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  87. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  88. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  89. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  90. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  91. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  92. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  93. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  94. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  95. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  96. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  97. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  98. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  99. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  100. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  101. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  102. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  103. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  104. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  105. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  106. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  107. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  108. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  109. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  110. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  111. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  112. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  113. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  114. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  115. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  116. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  117. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  118. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  119. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  120. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  121. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  122. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  123. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  124. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  125. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  126. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  127. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  128. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  129. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  130. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  131. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  132. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  133. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  134. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  135. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  136. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  137. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  138. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  139. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  140. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  141. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  142. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  143. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  144. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  145. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  146. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  147. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  148. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  149. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  150. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  151. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  152. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  153. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  154. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  155. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  156. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  157. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  158. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  159. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  160. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  161. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  162. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  163. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  164. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  165. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  166. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  167. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  168. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  169. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  170. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  171. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  172. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  173. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  174. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  175. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  176. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  177. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  178. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  179. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  180. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  181. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  182. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  183. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  184. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  185. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  186. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  187. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  188. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  189. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  190. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  191. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  192. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  193. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  194. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  195. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  196. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  197. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  198. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  199. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  200. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  201. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  202. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  203. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  204. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  205. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  206. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  207. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  208. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  209. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  210. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  211. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  212. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  213. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  214. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  215. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  216. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  217. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  218. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  219. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  220. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  221. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  222. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  223. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  224. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  225. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  226. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  227. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  228. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  229. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  230. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  231. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  232. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  233. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  234. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  235. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  236. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  237. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  238. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  239. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  240. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  241. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  242. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  243. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  244. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  245. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  246. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  247. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  248. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  249. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  250. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  251. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  252. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  253. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  254. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  255. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  256. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  257. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  258. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  259. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  260. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  261. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  262. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  263. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  264. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  265. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  266. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  267. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  268. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  269. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  270. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  271. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  272. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  273. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  274. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  275. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  276. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  277. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  278. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  279. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  280. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  281. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  282. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  283. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  284. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  285. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  286. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  287. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  288. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  289. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  290. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  291. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  292. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  293. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  294. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  295. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  296. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  297. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  298. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  299. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  300. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  301. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  302. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  303. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  304. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  305. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  306. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  307. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  308. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  309. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  310. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  311. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  312. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  313. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  314. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  315. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  316. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  317. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  318. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  319. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  320. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  321. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  322. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  323. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  324. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  325. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  326. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  327. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  328. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  329. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  330. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  331. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  332. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  333. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  334. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  335. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  336. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  337. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  338. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  339. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  340. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  341. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  342. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  343. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  344. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  345. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  346. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  347. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  348. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  349. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  350. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  351. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  352. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  353. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  354. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  355. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  356. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  357. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  358. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  359. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  360. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  361. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  362. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  363. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  364. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  365. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  366. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  367. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  368. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  369. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  370. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  371. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  372. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  373. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  374. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  375. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  376. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  377. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  378. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  379. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  380. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  381. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  382. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  383. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  384. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  385. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  386. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  387. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  388. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  389. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  390. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  391. package/lib/hooks/useFocusTrap.d.ts +8 -8
  392. package/lib/index.d.ts +1 -0
  393. package/lib/index.js +1 -1
  394. package/lib/river/River/River.d.ts +0 -6
  395. package/lib/river/RiverBreakout/RiverBreakout.d.ts +2 -1
  396. package/lib/river/RiverBreakoutTabs/RiverBreakoutTabs.d.ts +1 -0
  397. package/llms.txt +2 -2
  398. package/package.json +1 -1
  399. package/esm/river/RiverAccordion/RiverAccordion.module-nlZZH3O7.css +0 -1
  400. package/esm/river/river-shared.module-D0AV93uz.css +0 -1
@@ -63,7 +63,7 @@ import {River, RiverBreakout} from '@primer/react-brand'
63
63
 
64
64
  ### GridLine variant
65
65
 
66
- The `gridline` variant adds lateral padding to the River component, making it suitable for use within bordered grid layouts.
66
+ The `gridline` variant adds lateral padding to the River component and applies a full-bleed visual background by default, making it suitable for use within bordered grid layouts.
67
67
 
68
68
  ```jsx
69
69
  <Stack style={{width: '100%'}}>
@@ -77,45 +77,13 @@ The `gridline` variant adds lateral padding to the River component, making it su
77
77
  <Link href="#">Call to action</Link>
78
78
  </River.Content>
79
79
  </River>
80
- <River variant="gridline" align="end">
80
+ <River variant="gridline">
81
81
  <River.Visual>
82
82
  <img src="/images/placeholder.png" alt="placeholder, blank area with a gray background color" />
83
83
  </River.Visual>
84
84
  <River.Content>
85
85
  <Heading>GridLine variant</Heading>
86
- <Text>The variant works with all alignment options.</Text>
87
- <Link href="#">Call to action</Link>
88
- </River.Content>
89
- </River>
90
- </Stack>
91
- ```
92
-
93
- ### Visual with background
94
-
95
- Use the `imageBackgroundColor` prop on `River.Visual` to create a full-bleed container with a background color and the image/video centered inside with padding. This is intended for use with the `gridline` variant.
96
-
97
- ```jsx
98
- <Stack style={{width: '100%'}}>
99
- <River variant="gridline">
100
- <River.Visual imageBackgroundColor="subtle">
101
- <img src="/images/placeholder.png" alt="placeholder, blank area with a gray background color" />
102
- </River.Visual>
103
- <River.Content>
104
- <Heading>Visual with background</Heading>
105
- <Text>
106
- The imageBackgroundColor prop creates a full-bleed container with a subtle background, centering the media with
107
- padding around it.
108
- </Text>
109
- <Link href="#">Call to action</Link>
110
- </River.Content>
111
- </River>
112
- <River variant="gridline" align="end">
113
- <River.Visual imageBackgroundColor="subtle">
114
- <img src="/images/placeholder.png" alt="placeholder, blank area with a gray background color" />
115
- </River.Visual>
116
- <River.Content>
117
- <Heading>Visual with background (end)</Heading>
118
- <Text>The imageBackgroundColor prop works with all alignment options.</Text>
86
+ <Text>Keep adjacent gridline Rivers aligned in the same direction.</Text>
119
87
  <Link href="#">Call to action</Link>
120
88
  </River.Content>
121
89
  </River>
@@ -258,16 +226,15 @@ Use the `imageBackgroundColor` prop on `River.Visual` to create a full-bleed con
258
226
 
259
227
  ### River.Visual and RiverBreakout.Visual `Required`
260
228
 
261
- | Name | Type | Default | Description |
262
- | :--------------------- | :---------------------- | :-----: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
263
- | `fillMedia` | `boolean` | true | Automatically styles images and video to fill and fit the width of the parent. Disable this setting if you have bespoke styling requirements. |
264
- | `children` | `ReactElement` | | Bring your own component (BYOC) `img` or `ReactElement` (E.g. Next.js `Image` component) |
265
- | `imageBackgroundColor` | `'default'`, `'subtle'` | | Applies a background color with padding around the media. Use `'subtle'` to create a full-bleed container with the image/video centered inside. Intended for use with `gridline` variant. |
266
- | `hasShadow` | `boolean` | `false` | Shadow applied to the `children`. Set be `false` when the child node has a transparent background. |
267
- | `className` | `string` | | Sets a custom class on the root element |
268
- | `id` | `string` | | Sets a custom id |
269
- | `ref` | `React.RefObject` | | Forward a Ref to the underlying DOM node |
270
- | `rounded` | `boolean` | `true` | Toggle visually rounded corners. Enabled by default. |
229
+ | Name | Type | Default | Description |
230
+ | :---------- | :---------------- | :-----: | :-------------------------------------------------------------------------------------------------------------------------------------------- |
231
+ | `fillMedia` | `boolean` | true | Automatically styles images and video to fill and fit the width of the parent. Disable this setting if you have bespoke styling requirements. |
232
+ | `children` | `ReactElement` | | Bring your own component (BYOC) `img` or `ReactElement` (E.g. Next.js `Image` component) |
233
+ | `hasShadow` | `boolean` | `false` | Shadow applied to the `children`. Set be `false` when the child node has a transparent background. |
234
+ | `className` | `string` | | Sets a custom class on the root element |
235
+ | `id` | `string` | | Sets a custom id |
236
+ | `ref` | `React.RefObject` | | Forward a Ref to the underlying DOM node |
237
+ | `rounded` | `boolean` | `true` | Toggle visually rounded corners. Enabled by default. |
271
238
 
272
239
  ### River.Content and RiverBreakout.Content `Required`
273
240
 
@@ -163,9 +163,8 @@ import {RiverBreakoutTabs} from '@primer/react-brand'
163
163
 
164
164
  ### RiverBreakoutTabs.Visual `Required`
165
165
 
166
- | Name | Type | Default | Description |
167
- | :--------------------- | :---------------------- | :-----: | :-------------------------------- |
168
- | `children` | `React.ReactElement` | | Item visual media |
169
- | `imageBackgroundColor` | `'default' \| 'subtle'` | | Optional background around visual |
166
+ | Name | Type | Default | Description |
167
+ | :--------- | :------------------- | :-----: | :---------------- |
168
+ | `children` | `React.ReactElement` | | Item visual media |
170
169
 
171
170
  `RiverBreakoutTabs.Visual` extends `River.Visual` and supports all `River.Visual` props.
package/docs/index.md CHANGED
@@ -1,6 +1,6 @@
1
- # Primer Brand docs (v0.72.0-rc.f273f08b)
1
+ # Primer Brand docs (v0.72.0-rc.f8b72452)
2
2
 
3
- These docs are bundled with `@primer/react-brand@0.72.0-rc.f273f08b` and match your installed version.
3
+ These docs are bundled with `@primer/react-brand@0.72.0-rc.f8b72452` and match your installed version.
4
4
 
5
5
  New here? Start with [Getting started](getting-started/index.md) for installation, global
6
6
  stylesheet and font setup. Component directories are named after their import (e.g.
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- export interface FocusTrapHookSettings {
2
+ export interface FocusTrapHookSettings<ContainerElement extends HTMLElement = HTMLElement, InitialFocusElement extends HTMLElement = HTMLElement> {
3
3
  /**
4
- * Ref that will be used for the trapping container. If not provided, one will
4
+ * Ref object that will be used for the trapping container. If not provided, one will
5
5
  * be created by this hook and returned.
6
6
  */
7
- containerRef: React.RefObject<HTMLElement | null>;
7
+ containerRef?: React.RefObject<ContainerElement | null>;
8
8
  /**
9
- * Ref for the element that should receive focus when the focus trap is first enabled.
9
+ * Ref object for the element that should receive focus when the focus trap is first enabled.
10
10
  * If not provided, one will be created by this hook and returned. Its use is optional.
11
11
  */
12
- initialFocusRef?: React.RefObject<HTMLElement | null>;
12
+ initialFocusRef?: React.RefObject<InitialFocusElement | null>;
13
13
  /**
14
14
  * Set to true to disable the focus trap and clean up listeners. Can be re-enabled at any time.
15
15
  */
@@ -24,8 +24,8 @@ export interface FocusTrapHookSettings {
24
24
  * that should trap focus.
25
25
  * @param settings {FocusTrapHookSettings}
26
26
  */
27
- export declare function useFocusTrap(settings?: FocusTrapHookSettings, dependencies?: React.DependencyList): {
28
- containerRef: React.RefObject<HTMLElement | null> | undefined;
29
- initialFocusRef: React.RefObject<HTMLElement | null> | undefined;
27
+ export declare function useFocusTrap<ContainerElement extends HTMLElement = HTMLElement, InitialFocusElement extends HTMLElement = HTMLElement>(settings?: FocusTrapHookSettings<ContainerElement, InitialFocusElement>, dependencies?: React.DependencyList): {
28
+ containerRef: React.RefObject<ContainerElement | null>;
29
+ initialFocusRef: React.RefObject<InitialFocusElement | null>;
30
30
  };
31
31
  //# sourceMappingURL=useFocusTrap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,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,CAAC,cAAmB,GACtC;IACD,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;IACtD,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAA;CAC7D,CAsCA"}
@@ -1,28 +1,28 @@
1
- import e from "react";
2
- import { focusTrap as t } from "@primer/behaviors";
1
+ import { useProvidedRefOrCreate as e } from "./useRef.js";
2
+ import t from "react";
3
+ import { focusTrap as n } from "@primer/behaviors";
3
4
  //#region src/hooks/useFocusTrap.ts
4
- function n(n, r = []) {
5
- let i = n?.containerRef, a = n?.initialFocusRef, o = n?.disabled, s = e.useRef(null), c = e.useRef(null);
6
- !c.current && !n?.disabled && (c.current = document.activeElement);
7
- function l() {
8
- s.current?.abort(), n?.restoreFocusOnCleanUp && c.current instanceof HTMLElement && (c.current.focus(), c.current = null);
5
+ function r(r, i = []) {
6
+ let a = e(r?.containerRef), o = e(r?.initialFocusRef), s = r?.disabled, c = t.useRef(null), l = t.useRef(null);
7
+ function u() {
8
+ c.current?.abort(), r?.restoreFocusOnCleanUp && l.current instanceof HTMLElement && l.current.focus(), l.current = null;
9
9
  }
10
- return e.useEffect(() => {
11
- if (i?.current instanceof HTMLElement) if (o) l();
12
- else return s.current = t(i.current, a?.current ?? void 0) ?? null, () => {
13
- l();
10
+ return t.useEffect(() => {
11
+ if (a.current instanceof HTMLElement) if (s) u();
12
+ else return l.current ||= document.activeElement, c.current = n(a.current, o.current ?? void 0) ?? null, () => {
13
+ u();
14
14
  };
15
15
  }, [
16
- i,
17
16
  a,
18
17
  o,
19
- ...r
18
+ s,
19
+ ...i
20
20
  ]), {
21
- containerRef: i,
22
- initialFocusRef: a
21
+ containerRef: a,
22
+ initialFocusRef: o
23
23
  };
24
24
  }
25
25
  //#endregion
26
- export { n as useFocusTrap };
26
+ export { r as useFocusTrap };
27
27
 
28
28
  //# sourceMappingURL=useFocusTrap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusTrap.js","names":[],"sources":["../../src/hooks/useFocusTrap.ts"],"sourcesContent":["import React from 'react'\nimport {focusTrap} from '@primer/behaviors'\n\nexport interface FocusTrapHookSettings {\n /**\n * Ref that will be used for the trapping container. If not provided, one will\n * be created by this hook and returned.\n */\n containerRef: React.RefObject<HTMLElement | null>\n\n /**\n * Ref for the element that should receive focus when the focus trap is first enabled.\n * If not provided, one will be created by this hook and returned. Its use is optional.\n */\n initialFocusRef?: React.RefObject<HTMLElement | null>\n\n /**\n * Set to true to disable the focus trap and clean up listeners. Can be re-enabled at any time.\n */\n disabled?: boolean\n\n /**\n * If true, when this focus trap is cleaned up, restore focus to the element that had focus immediately before the focus trap was enabled. (Default: false)\n */\n restoreFocusOnCleanUp?: boolean\n}\n\n/**\n * Hook used to trap focus inside a container. Returns a ref that can be added to the container\n * that should trap focus.\n * @param settings {FocusTrapHookSettings}\n */\nexport function useFocusTrap(\n settings?: FocusTrapHookSettings,\n dependencies: React.DependencyList = [],\n): {\n containerRef: React.RefObject<HTMLElement | null> | undefined\n initialFocusRef: React.RefObject<HTMLElement | null> | undefined\n} {\n const containerRef = settings?.containerRef\n const initialFocusRef = settings?.initialFocusRef\n const disabled = settings?.disabled\n const abortController = React.useRef<AbortController | null>(null)\n const previousFocusedElement = React.useRef<Element | null>(null)\n\n // If we are enabling a focus trap and haven't already stored the previously focused element\n // go ahead an do that so we can restore later when the trap is disabled.\n if (!previousFocusedElement.current && !settings?.disabled) {\n previousFocusedElement.current = document.activeElement\n }\n\n // This function removes the event listeners that enable the focus trap and restores focus\n // to the previously-focused element (if necessary).\n function disableTrap() {\n abortController.current?.abort()\n if (settings?.restoreFocusOnCleanUp && previousFocusedElement.current instanceof HTMLElement) {\n previousFocusedElement.current.focus()\n previousFocusedElement.current = null\n }\n }\n\n React.useEffect(\n () => {\n if (containerRef?.current instanceof HTMLElement) {\n if (!disabled) {\n abortController.current = focusTrap(containerRef.current, initialFocusRef?.current ?? undefined) ?? null\n return () => {\n disableTrap()\n }\n } else {\n disableTrap()\n }\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [containerRef, initialFocusRef, disabled, ...dependencies],\n )\n\n return {containerRef, initialFocusRef}\n}\n"],"mappings":";;;AAgCA,SAAgB,EACd,GACA,IAAqC,EAAE,EAIvC;CACA,IAAM,IAAe,GAAU,cACzB,IAAkB,GAAU,iBAC5B,IAAW,GAAU,UACrB,IAAkB,EAAM,OAA+B,KAAK,EAC5D,IAAyB,EAAM,OAAuB,KAAK;AAIjE,CAAI,CAAC,EAAuB,WAAW,CAAC,GAAU,aAChD,EAAuB,UAAU,SAAS;CAK5C,SAAS,IAAc;AAErB,EADA,EAAgB,SAAS,OAAO,EAC5B,GAAU,yBAAyB,EAAuB,mBAAmB,gBAC/E,EAAuB,QAAQ,OAAO,EACtC,EAAuB,UAAU;;AAqBrC,QAjBA,EAAM,gBACE;AACJ,MAAI,GAAc,mBAAmB,YACnC,KAAK,EAMH,IAAa;MAJb,QADA,EAAgB,UAAU,EAAU,EAAa,SAAS,GAAiB,WAAW,KAAA,EAAU,IAAI,YACvF;AACX,MAAa;;IAQrB;EAAC;EAAc;EAAiB;EAAU,GAAG;EAAa,CAC3D,EAEM;EAAC;EAAc;EAAgB"}
1
+ {"version":3,"file":"useFocusTrap.js","names":[],"sources":["../../src/hooks/useFocusTrap.ts"],"sourcesContent":["import React from 'react'\nimport {focusTrap} from '@primer/behaviors'\nimport {useProvidedRefOrCreate} from './useRef'\n\nexport interface FocusTrapHookSettings<\n ContainerElement extends HTMLElement = HTMLElement,\n InitialFocusElement extends HTMLElement = HTMLElement,\n> {\n /**\n * Ref object that will be used for the trapping container. If not provided, one will\n * be created by this hook and returned.\n */\n containerRef?: React.RefObject<ContainerElement | null>\n\n /**\n * Ref object for the element that should receive focus when the focus trap is first enabled.\n * If not provided, one will be created by this hook and returned. Its use is optional.\n */\n initialFocusRef?: React.RefObject<InitialFocusElement | null>\n\n /**\n * Set to true to disable the focus trap and clean up listeners. Can be re-enabled at any time.\n */\n disabled?: boolean\n\n /**\n * If true, when this focus trap is cleaned up, restore focus to the element that had focus immediately before the focus trap was enabled. (Default: false)\n */\n restoreFocusOnCleanUp?: boolean\n}\n\n/**\n * Hook used to trap focus inside a container. Returns a ref that can be added to the container\n * that should trap focus.\n * @param settings {FocusTrapHookSettings}\n */\nexport function useFocusTrap<\n ContainerElement extends HTMLElement = HTMLElement,\n InitialFocusElement extends HTMLElement = HTMLElement,\n>(\n settings?: FocusTrapHookSettings<ContainerElement, InitialFocusElement>,\n dependencies: React.DependencyList = [],\n): {\n containerRef: React.RefObject<ContainerElement | null>\n initialFocusRef: React.RefObject<InitialFocusElement | null>\n} {\n const containerRef = useProvidedRefOrCreate<ContainerElement | null>(settings?.containerRef)\n const initialFocusRef = useProvidedRefOrCreate<InitialFocusElement | null>(settings?.initialFocusRef)\n const disabled = settings?.disabled\n const abortController = React.useRef<AbortController | null>(null)\n const previousFocusedElement = React.useRef<Element | null>(null)\n\n // This function removes the event listeners that enable the focus trap and restores focus\n // to the previously-focused element (if necessary).\n function disableTrap() {\n abortController.current?.abort()\n if (settings?.restoreFocusOnCleanUp && previousFocusedElement.current instanceof HTMLElement) {\n previousFocusedElement.current.focus()\n }\n previousFocusedElement.current = null\n }\n\n React.useEffect(\n () => {\n if (containerRef.current instanceof HTMLElement) {\n if (!disabled) {\n if (!previousFocusedElement.current) {\n previousFocusedElement.current = document.activeElement\n }\n abortController.current = focusTrap(containerRef.current, initialFocusRef.current ?? undefined) ?? null\n return () => {\n disableTrap()\n }\n } else {\n disableTrap()\n }\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [containerRef, initialFocusRef, disabled, ...dependencies],\n )\n\n return {containerRef, initialFocusRef}\n}\n"],"mappings":";;;;AAoCA,SAAgB,EAId,GACA,IAAqC,EAAE,EAIvC;CACA,IAAM,IAAe,EAAgD,GAAU,aAAa,EACtF,IAAkB,EAAmD,GAAU,gBAAgB,EAC/F,IAAW,GAAU,UACrB,IAAkB,EAAM,OAA+B,KAAK,EAC5D,IAAyB,EAAM,OAAuB,KAAK;CAIjE,SAAS,IAAc;AAKrB,EAJA,EAAgB,SAAS,OAAO,EAC5B,GAAU,yBAAyB,EAAuB,mBAAmB,eAC/E,EAAuB,QAAQ,OAAO,EAExC,EAAuB,UAAU;;AAuBnC,QApBA,EAAM,gBACE;AACJ,MAAI,EAAa,mBAAmB,YAClC,KAAK,EASH,IAAa;MAJb,QAJA,AACE,EAAuB,YAAU,SAAS,eAE5C,EAAgB,UAAU,EAAU,EAAa,SAAS,EAAgB,WAAW,KAAA,EAAU,IAAI,YACtF;AACX,MAAa;;IAQrB;EAAC;EAAc;EAAiB;EAAU,GAAG;EAAa,CAC3D,EAEM;EAAC;EAAc;EAAgB"}
package/esm/index.d.ts CHANGED
@@ -56,5 +56,6 @@ export * from './SectionIntroStacked';
56
56
  export * from './Tabs';
57
57
  export * from './TextCursorAnimation';
58
58
  export * from './Tiles';
59
+ export * from './hooks/useFocusTrap';
59
60
  export * from './hooks/useWindowSize';
60
61
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AAEjC,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,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uBAAuB,CAAA;AACrC,cAAc,QAAQ,CAAA;AACtB,cAAc,uBAAuB,CAAA;AACrC,cAAc,SAAS,CAAA;AAGvB,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA"}
package/esm/index.esm.js CHANGED
@@ -27,53 +27,54 @@ import { RiverBreakoutTabs as Ne } from "./river/RiverBreakoutTabs/RiverBreakout
27
27
  import { RiverStoryScroll as Pe } from "./river/RiverStoryScroll/RiverStoryScroll.js";
28
28
  import { Pagination as Fe } from "./Pagination/Pagination.js";
29
29
  import { MediaPlaylist as Ie } from "./MediaPlaylist/MediaPlaylist.js";
30
- import { SubdomainNavBar as Le } from "./SubdomainNavBar/SubdomainNavBar.js";
31
- import { InlineLink as Re } from "./InlineLink/InlineLink.js";
32
- import { Token as ze, TokenVariants as Be, defaultTokenVariant as Ve } from "./Token/Token.js";
33
- import { Accordion as He, AccordionContent as Ue, AccordionHeading as We, AccordionRoot as Ge, AccordionToggleColors as Ke } from "./Accordion/Accordion.js";
34
- import { FAQ as qe } from "./FAQ/FAQ.js";
35
- import { FAQGroup as Je } from "./FAQ/FAQGroup.js";
36
- import { Checkbox as Ye } from "./forms/Checkbox/Checkbox.js";
37
- import { DEFAULT_TEXTAREA_COLS as Xe, DEFAULT_TEXTAREA_RESIZE as Ze, DEFAULT_TEXTAREA_ROWS as Qe, Textarea as $e } from "./forms/Textarea/Textarea.js";
38
- import { TextInput as et } from "./forms/TextInput/TextInput.js";
39
- import { Select as tt } from "./forms/Select/Select.js";
40
- import { Radio as nt } from "./forms/Radio/Radio.js";
41
- import { FormControl as rt } from "./forms/FormControl/FormControl.js";
42
- import { CheckboxGroup as it } from "./forms/CheckboxGroup/CheckboxGroup.js";
43
- import { RadioGroup as at } from "./forms/RadioGroup/RadioGroup.js";
44
- import { Avatar as ot, AvatarShapes as st, AvatarSizes as ct } from "./Avatar/Avatar.js";
45
- import { Testimonial as lt, TestimonialQuoteMarkColors as ut, TestimonialVariants as dt, defaultQuoteMarkColor as ft, defaultTestimonialVariant as pt } from "./Testimonial/Testimonial.js";
46
- import { ComparisonTable as mt, _ComparisonTable as ht } from "./ComparisonTable/ComparisonTable.js";
47
- import { AnchorNav as gt } from "./AnchorNav/AnchorNav.js";
48
- import { CTABanner as _t, CTABannerBackgroundColors as vt } from "./CTABanner/CTABanner.js";
49
- import { UnorderedList as yt } from "./list/UnorderedList/UnorderedList.js";
50
- import { OrderedList as bt } from "./list/OrderedList/OrderedList.js";
51
- import { CTAForm as xt } from "./CTAForm/CTAForm.js";
52
- import { MinimalFooter as St } from "./MinimalFooter/MinimalFooter.js";
53
- import { Pillar as Ct, defaultPillarIconColor as wt, defaultPillarIconSize as Tt } from "./Pillar/Pillar.js";
54
- import { Card as Et, CardBackgroundColors as Dt, CardCTAVariants as Ot, CardIconColors as kt, CardLabelVariants as At, CardTokenPositions as jt, CardVariants as Mt, defaultCardCTAVariant as Nt, defaultCardIconColor as Pt, defaultCardLabelVariant as Ft } from "./Card/Card.js";
55
- import { CardSkewEffect as It } from "./Card/CardSkewEffect.js";
56
- import { SectionIntro as Lt } from "./SectionIntro/SectionIntro.js";
57
- import { ActionMenu as Rt, ActionMenuButtonModes as zt, ActionMenuProvider as Bt, ActionMenuSizes as Vt, actionMenuOverlaySides as Ht, useActionMenuContext as Ut } from "./ActionMenu/ActionMenu.js";
58
- import { Prose as Wt } from "./Prose/Prose.js";
59
- import { useVideo as Gt } from "./VideoPlayer/hooks/useVideo.js";
60
- import { VideoPlayer as Kt } from "./VideoPlayer/VideoPlayer.js";
61
- import { LogoSuite as qt } from "./LogoSuite/LogoSuite.js";
62
- import { Timeline as Jt } from "./Timeline/Timeline.js";
63
- import { Bento as Yt } from "./Bento/Bento.js";
64
- import { EyebrowBanner as Xt, EyebrowBannerIconColors as Zt, EyebrowBannerLabelColors as Qt, defaultEyebrowBannerIconColor as $t } from "./EyebrowBanner/EyebrowBanner.js";
65
- import { Tooltip as en, TooltipContext as tn } from "./Tooltip/Tooltip.js";
66
- import { PricingOptions as nn } from "./PricingOptions/PricingOptions.js";
67
- import { SubNav as rn, SubNavSubMenuVariants as an, useSubNavContext as on } from "./SubNav/SubNav.js";
68
- import { NavList as sn } from "./NavList/NavList.js";
69
- import { IDE as cn, IDEDefaultIconMap as ln, IDEFileExtensions as un } from "./IDE/IDE.js";
70
- import { BreadcrumbVariants as dn, Breadcrumbs as fn } from "./Breadcrumbs/Breadcrumbs.js";
71
- import { Section as pn, SectionBackgroundColors as mn, SectionPaddingVariants as hn } from "./Section/Section.js";
72
- import { Statistic as gn, StatisticSizes as _n, StatisticSpacingValues as vn } from "./Statistic/Statistic.js";
73
- import { BreakoutBanner as yn, BreakoutBannerBackgroundColors as bn } from "./BreakoutBanner/BreakoutBanner.js";
74
- import { Footnotes as xn, FootnotesItemTags as Sn, FootnotesTags as Cn } from "./Footnotes/Footnotes.js";
75
- import { FrostedGlassVFX as wn, FrostedGlassVFXIntensity as Tn, defaultFrostedGlassVFXIntensity as En } from "./FrostedGlassVFX/FrostedGlassVFX.js";
76
- import { SectionIntroStacked as Dn, SectionIntroStackedVariants as On } from "./SectionIntroStacked/SectionIntroStacked.js";
77
- import { Tabs as kn } from "./Tabs/Tabs.js";
78
- import { Tiles as An } from "./Tiles/Tiles.js";
79
- export { He as Accordion, Ue as AccordionContent, We as AccordionHeading, Ge as AccordionRoot, Ke as AccordionToggleColors, Rt as ActionMenu, zt as ActionMenuButtonModes, Bt as ActionMenuProvider, Vt as ActionMenuSizes, gt as AnchorNav, a as Animate, n as AnimationContext, r as AnimationProvider, i as AnimationVariants, ot as Avatar, st as AvatarShapes, ct as AvatarSizes, Yt as Bento, g as Box, _ as BoxBackgroundColors, v as BoxBorderColorOptions, y as BoxBorderRadiusOptions, b as BoxBorderWidthOptions, x as BoxSpacingValues, dn as BreadcrumbVariants, fn as Breadcrumbs, yn as BreakoutBanner, bn as BreakoutBannerBackgroundColors, je as BreakpointSize, J as Button, ae as ButtonGroup, Y as ButtonSizes, X as ButtonVariants, _t as CTABanner, vt as CTABannerBackgroundColors, xt as CTAForm, Et as Card, Dt as CardBackgroundColors, Ot as CardCTAVariants, kt as CardIconColors, At as CardLabelVariants, It as CardSkewEffect, jt as CardTokenPositions, Mt as CardVariants, Ye as Checkbox, it as CheckboxGroup, te as ColorModesEnum, mt as ComparisonTable, Xe as DEFAULT_TEXTAREA_COLS, Ze as DEFAULT_TEXTAREA_RESIZE, Qe as DEFAULT_TEXTAREA_ROWS, Xt as EyebrowBanner, Zt as EyebrowBannerIconColors, Qt as EyebrowBannerLabelColors, M as EyebrowText, N as EyebrowTextVariants, qe as FAQ, Je as FAQGroup, xn as Footnotes, Sn as FootnotesItemTags, Cn as FootnotesTags, rt as FormControl, wn as FrostedGlassVFX, Tn as FrostedGlassVFXIntensity, t as Grid, I as Heading, L as HeadingFontVariants, R as HeadingLetterSpacing, z as HeadingSizes, B as HeadingStretch, V as HeadingTags, H as HeadingWeights, ee as Hero, cn as IDE, ln as IDEDefaultIconMap, un as IDEFileExtensions, Ce as Icon, K as Image, q as ImageBorderRadiusOptions, Re as InlineLink, fe as Label, pe as LabelColors, me as LabelSizes, ce as Link, le as LinkArrowDirections, ue as LinkSizes, de as LinkVariants, qt as LogoSuite, Ie as MediaPlaylist, St as MinimalFooter, sn as NavList, bt as OrderedList, Fe as Pagination, Ct as Pillar, nn as PricingOptions, Wt as Prose, nt as Radio, at as RadioGroup, _e as River, oe as RiverAccordion, se as RiverAccordionVariants, xe as RiverBreakout, Ne as RiverBreakoutTabs, Se as RiverBreakoutVariants, Pe as RiverStoryScroll, pn as Section, mn as SectionBackgroundColors, Lt as SectionIntro, Dn as SectionIntroStacked, On as SectionIntroStackedVariants, hn as SectionPaddingVariants, tt as Select, c as Stack, l as StackAlignItemVariants, u as StackDirectionVariants, d as StackFlexWrapVariants, f as StackJustifyContentVariants, p as StackSpacingVariants, gn as Statistic, _n as StatisticSizes, vn as StatisticSpacingValues, rn as SubNav, an as SubNavSubMenuVariants, Le as SubdomainNavBar, kn as Tabs, lt as Testimonial, ut as TestimonialQuoteMarkColors, dt as TestimonialVariants, S as Text, P as TextCursorAnimation, C as TextFontVariants, et as TextInput, s as TextRevealAnimation, w as TextSizes, T as TextTags, E as TextVariants, D as TextWeights, $e as Textarea, ne as ThemeContext, re as ThemeProvider, An as Tiles, Jt as Timeline, ze as Token, Be as TokenVariants, en as Tooltip, tn as TooltipContext, yt as UnorderedList, Kt as VideoPlayer, Z as _Button, ht as _ComparisonTable, e as _GLOBAL_STYLES, Ht as actionMenuOverlaySides, U as classMap, Q as defaultButtonSize, $ as defaultButtonVariant, Nt as defaultCardCTAVariant, Pt as defaultCardIconColor, Ft as defaultCardLabelVariant, $t as defaultEyebrowBannerIconColor, O as defaultFontVariant, En as defaultFrostedGlassVFXIntensity, W as defaultHeadingFont, G as defaultHeadingTag, we as defaultIconColor, Te as defaultIconSize, he as defaultLabelColor, ge as defaultLabelSize, wt as defaultPillarIconColor, Tt as defaultPillarIconSize, ft as defaultQuoteMarkColor, ve as defaultRiverAlign, ye as defaultRiverImageTextRatio, be as defaultRiverVariant, m as defaultStackDirection, h as defaultStackSpacing, pt as defaultTestimonialVariant, k as defaultTextSize, A as defaultTextTag, j as defaultTextVariant, Ve as defaultTokenVariant, Ee as iconColors, De as iconSizeMap, Oe as iconSizes, ke as namedIconSizes, Ae as numericIconSizes, F as testIds, Ut as useActionMenuContext, o as useAnimation, on as useSubNavContext, ie as useTheme, Gt as useVideo, Me as useWindowSize };
30
+ import { useFocusTrap as Le } from "./hooks/useFocusTrap.js";
31
+ import { SubdomainNavBar as Re } from "./SubdomainNavBar/SubdomainNavBar.js";
32
+ import { InlineLink as ze } from "./InlineLink/InlineLink.js";
33
+ import { Token as Be, TokenVariants as Ve, defaultTokenVariant as He } from "./Token/Token.js";
34
+ import { Accordion as Ue, AccordionContent as We, AccordionHeading as Ge, AccordionRoot as Ke, AccordionToggleColors as qe } from "./Accordion/Accordion.js";
35
+ import { FAQ as Je } from "./FAQ/FAQ.js";
36
+ import { FAQGroup as Ye } from "./FAQ/FAQGroup.js";
37
+ import { Checkbox as Xe } from "./forms/Checkbox/Checkbox.js";
38
+ import { DEFAULT_TEXTAREA_COLS as Ze, DEFAULT_TEXTAREA_RESIZE as Qe, DEFAULT_TEXTAREA_ROWS as $e, Textarea as et } from "./forms/Textarea/Textarea.js";
39
+ import { TextInput as tt } from "./forms/TextInput/TextInput.js";
40
+ import { Select as nt } from "./forms/Select/Select.js";
41
+ import { Radio as rt } from "./forms/Radio/Radio.js";
42
+ import { FormControl as it } from "./forms/FormControl/FormControl.js";
43
+ import { CheckboxGroup as at } from "./forms/CheckboxGroup/CheckboxGroup.js";
44
+ import { RadioGroup as ot } from "./forms/RadioGroup/RadioGroup.js";
45
+ import { Avatar as st, AvatarShapes as ct, AvatarSizes as lt } from "./Avatar/Avatar.js";
46
+ import { Testimonial as ut, TestimonialQuoteMarkColors as dt, TestimonialVariants as ft, defaultQuoteMarkColor as pt, defaultTestimonialVariant as mt } from "./Testimonial/Testimonial.js";
47
+ import { ComparisonTable as ht, _ComparisonTable as gt } from "./ComparisonTable/ComparisonTable.js";
48
+ import { AnchorNav as _t } from "./AnchorNav/AnchorNav.js";
49
+ import { CTABanner as vt, CTABannerBackgroundColors as yt } from "./CTABanner/CTABanner.js";
50
+ import { UnorderedList as bt } from "./list/UnorderedList/UnorderedList.js";
51
+ import { OrderedList as xt } from "./list/OrderedList/OrderedList.js";
52
+ import { CTAForm as St } from "./CTAForm/CTAForm.js";
53
+ import { MinimalFooter as Ct } from "./MinimalFooter/MinimalFooter.js";
54
+ import { Pillar as wt, defaultPillarIconColor as Tt, defaultPillarIconSize as Et } from "./Pillar/Pillar.js";
55
+ import { Card as Dt, CardBackgroundColors as Ot, CardCTAVariants as kt, CardIconColors as At, CardLabelVariants as jt, CardTokenPositions as Mt, CardVariants as Nt, defaultCardCTAVariant as Pt, defaultCardIconColor as Ft, defaultCardLabelVariant as It } from "./Card/Card.js";
56
+ import { CardSkewEffect as Lt } from "./Card/CardSkewEffect.js";
57
+ import { SectionIntro as Rt } from "./SectionIntro/SectionIntro.js";
58
+ import { ActionMenu as zt, ActionMenuButtonModes as Bt, ActionMenuProvider as Vt, ActionMenuSizes as Ht, actionMenuOverlaySides as Ut, useActionMenuContext as Wt } from "./ActionMenu/ActionMenu.js";
59
+ import { Prose as Gt } from "./Prose/Prose.js";
60
+ import { useVideo as Kt } from "./VideoPlayer/hooks/useVideo.js";
61
+ import { VideoPlayer as qt } from "./VideoPlayer/VideoPlayer.js";
62
+ import { LogoSuite as Jt } from "./LogoSuite/LogoSuite.js";
63
+ import { Timeline as Yt } from "./Timeline/Timeline.js";
64
+ import { Bento as Xt } from "./Bento/Bento.js";
65
+ import { EyebrowBanner as Zt, EyebrowBannerIconColors as Qt, EyebrowBannerLabelColors as $t, defaultEyebrowBannerIconColor as en } from "./EyebrowBanner/EyebrowBanner.js";
66
+ import { Tooltip as tn, TooltipContext as nn } from "./Tooltip/Tooltip.js";
67
+ import { PricingOptions as rn } from "./PricingOptions/PricingOptions.js";
68
+ import { SubNav as an, SubNavSubMenuVariants as on, useSubNavContext as sn } from "./SubNav/SubNav.js";
69
+ import { NavList as cn } from "./NavList/NavList.js";
70
+ import { IDE as ln, IDEDefaultIconMap as un, IDEFileExtensions as dn } from "./IDE/IDE.js";
71
+ import { BreadcrumbVariants as fn, Breadcrumbs as pn } from "./Breadcrumbs/Breadcrumbs.js";
72
+ import { Section as mn, SectionBackgroundColors as hn, SectionPaddingVariants as gn } from "./Section/Section.js";
73
+ import { Statistic as _n, StatisticSizes as vn, StatisticSpacingValues as yn } from "./Statistic/Statistic.js";
74
+ import { BreakoutBanner as bn, BreakoutBannerBackgroundColors as xn } from "./BreakoutBanner/BreakoutBanner.js";
75
+ import { Footnotes as Sn, FootnotesItemTags as Cn, FootnotesTags as wn } from "./Footnotes/Footnotes.js";
76
+ import { FrostedGlassVFX as Tn, FrostedGlassVFXIntensity as En, defaultFrostedGlassVFXIntensity as Dn } from "./FrostedGlassVFX/FrostedGlassVFX.js";
77
+ import { SectionIntroStacked as On, SectionIntroStackedVariants as kn } from "./SectionIntroStacked/SectionIntroStacked.js";
78
+ import { Tabs as An } from "./Tabs/Tabs.js";
79
+ import { Tiles as jn } from "./Tiles/Tiles.js";
80
+ export { Ue as Accordion, We as AccordionContent, Ge as AccordionHeading, Ke as AccordionRoot, qe as AccordionToggleColors, zt as ActionMenu, Bt as ActionMenuButtonModes, Vt as ActionMenuProvider, Ht as ActionMenuSizes, _t as AnchorNav, a as Animate, n as AnimationContext, r as AnimationProvider, i as AnimationVariants, st as Avatar, ct as AvatarShapes, lt as AvatarSizes, Xt as Bento, g as Box, _ as BoxBackgroundColors, v as BoxBorderColorOptions, y as BoxBorderRadiusOptions, b as BoxBorderWidthOptions, x as BoxSpacingValues, fn as BreadcrumbVariants, pn as Breadcrumbs, bn as BreakoutBanner, xn as BreakoutBannerBackgroundColors, je as BreakpointSize, J as Button, ae as ButtonGroup, Y as ButtonSizes, X as ButtonVariants, vt as CTABanner, yt as CTABannerBackgroundColors, St as CTAForm, Dt as Card, Ot as CardBackgroundColors, kt as CardCTAVariants, At as CardIconColors, jt as CardLabelVariants, Lt as CardSkewEffect, Mt as CardTokenPositions, Nt as CardVariants, Xe as Checkbox, at as CheckboxGroup, te as ColorModesEnum, ht as ComparisonTable, Ze as DEFAULT_TEXTAREA_COLS, Qe as DEFAULT_TEXTAREA_RESIZE, $e as DEFAULT_TEXTAREA_ROWS, Zt as EyebrowBanner, Qt as EyebrowBannerIconColors, $t as EyebrowBannerLabelColors, M as EyebrowText, N as EyebrowTextVariants, Je as FAQ, Ye as FAQGroup, Sn as Footnotes, Cn as FootnotesItemTags, wn as FootnotesTags, it as FormControl, Tn as FrostedGlassVFX, En as FrostedGlassVFXIntensity, t as Grid, I as Heading, L as HeadingFontVariants, R as HeadingLetterSpacing, z as HeadingSizes, B as HeadingStretch, V as HeadingTags, H as HeadingWeights, ee as Hero, ln as IDE, un as IDEDefaultIconMap, dn as IDEFileExtensions, Ce as Icon, K as Image, q as ImageBorderRadiusOptions, ze as InlineLink, fe as Label, pe as LabelColors, me as LabelSizes, ce as Link, le as LinkArrowDirections, ue as LinkSizes, de as LinkVariants, Jt as LogoSuite, Ie as MediaPlaylist, Ct as MinimalFooter, cn as NavList, xt as OrderedList, Fe as Pagination, wt as Pillar, rn as PricingOptions, Gt as Prose, rt as Radio, ot as RadioGroup, _e as River, oe as RiverAccordion, se as RiverAccordionVariants, xe as RiverBreakout, Ne as RiverBreakoutTabs, Se as RiverBreakoutVariants, Pe as RiverStoryScroll, mn as Section, hn as SectionBackgroundColors, Rt as SectionIntro, On as SectionIntroStacked, kn as SectionIntroStackedVariants, gn as SectionPaddingVariants, nt as Select, c as Stack, l as StackAlignItemVariants, u as StackDirectionVariants, d as StackFlexWrapVariants, f as StackJustifyContentVariants, p as StackSpacingVariants, _n as Statistic, vn as StatisticSizes, yn as StatisticSpacingValues, an as SubNav, on as SubNavSubMenuVariants, Re as SubdomainNavBar, An as Tabs, ut as Testimonial, dt as TestimonialQuoteMarkColors, ft as TestimonialVariants, S as Text, P as TextCursorAnimation, C as TextFontVariants, tt as TextInput, s as TextRevealAnimation, w as TextSizes, T as TextTags, E as TextVariants, D as TextWeights, et as Textarea, ne as ThemeContext, re as ThemeProvider, jn as Tiles, Yt as Timeline, Be as Token, Ve as TokenVariants, tn as Tooltip, nn as TooltipContext, bt as UnorderedList, qt as VideoPlayer, Z as _Button, gt as _ComparisonTable, e as _GLOBAL_STYLES, Ut as actionMenuOverlaySides, U as classMap, Q as defaultButtonSize, $ as defaultButtonVariant, Pt as defaultCardCTAVariant, Ft as defaultCardIconColor, It as defaultCardLabelVariant, en as defaultEyebrowBannerIconColor, O as defaultFontVariant, Dn as defaultFrostedGlassVFXIntensity, W as defaultHeadingFont, G as defaultHeadingTag, we as defaultIconColor, Te as defaultIconSize, he as defaultLabelColor, ge as defaultLabelSize, Tt as defaultPillarIconColor, Et as defaultPillarIconSize, pt as defaultQuoteMarkColor, ve as defaultRiverAlign, ye as defaultRiverImageTextRatio, be as defaultRiverVariant, m as defaultStackDirection, h as defaultStackSpacing, mt as defaultTestimonialVariant, k as defaultTextSize, A as defaultTextTag, j as defaultTextVariant, He as defaultTokenVariant, Ee as iconColors, De as iconSizeMap, Oe as iconSizes, ke as namedIconSizes, Ae as numericIconSizes, F as testIds, Wt as useActionMenuContext, o as useAnimation, Le as useFocusTrap, sn as useSubNavContext, ie as useTheme, Kt as useVideo, Me as useWindowSize };
@@ -71,8 +71,6 @@ export type RiverContentProps = BaseProps<HTMLDivElement> & {
71
71
  children: React.ReactElement<TextProps> | React.ReactElement<HeadingProps | TextProps | LinkProps>[];
72
72
  } & React.HTMLAttributes<HTMLDivElement>;
73
73
  export declare const RiverContent: React.ForwardRefExoticComponent<Omit<RiverContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
74
- export declare const RiverVisualBackgroundColors: readonly ["default", "subtle"];
75
- export type RiverVisualBackgroundColor = (typeof RiverVisualBackgroundColors)[number];
76
74
  export type RiverVisualProps = BaseProps<HTMLDivElement> & React.HtmlHTMLAttributes<HTMLDivElement> & PropsWithChildren<{
77
75
  /**
78
76
  * Applies automatic size constraints to child images and video.
@@ -89,10 +87,6 @@ export type RiverVisualProps = BaseProps<HTMLDivElement> & React.HtmlHTMLAttribu
89
87
  * Can optionally be disabled.
90
88
  */
91
89
  rounded?: boolean;
92
- /**
93
- * Applies a background color with padding around the media.
94
- */
95
- imageBackgroundColor?: RiverVisualBackgroundColor;
96
90
  }>;
97
91
  export declare const Visual: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<RiverVisualProps>, "ref"> & React.RefAttributes<HTMLDivElement>>;
98
92
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"River.d.ts","sourceRoot":"","sources":["../../../src/river/River/River.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,iBAAiB,EAAoB,MAAM,OAAO,CAAA;AAE7E,OAAO,EAAU,KAAK,YAAY,E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EG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IAC1C;;;;;OAKG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC,EAAE,CAAA;CACrG,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AAExC,eAAO,MAAM,YAAY,uGA8FxB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,cAAc,CAAC,GACtD,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC,GACxC,iBAAiB,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC,CAAA;AAEJ,eAAO,MAAM,MAAM,+HA4BlB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,KAAK;;;CAAuD,CAAA"}
@@ -16,7 +16,7 @@ var m = "50:50", h = "start", g = "default", _ = u(({ animate: n, imageTextRatio
16
16
  let { classes: b, styles: x } = t(n), { Visual: S, Content: C } = l.Children.toArray(u).reduce((e, t) => (l.isValidElement(t) && typeof t.type != "string" && (t.type === y && (e.Visual = t), t.type === v && (e.Content = t)), e), {
17
17
  Visual: null,
18
18
  Content: null
19
- });
19
+ }), w = S ? l.cloneElement(S, { className: e(S.props.className, o === "gridline" && c["River__visual--has-background"]) }) : null;
20
20
  return /* @__PURE__ */ p("section", {
21
21
  ref: _,
22
22
  className: e(c.River, c[`River--${r.replace(":", "-")}`], c[`River--align-${i}`], c[`River--variant-${o}`], o === "gridline" && a.gridline, b, s),
@@ -25,7 +25,7 @@ var m = "50:50", h = "start", g = "default", _ = u(({ animate: n, imageTextRatio
25
25
  ...d
26
26
  },
27
27
  ...f,
28
- children: [C, S]
28
+ children: [C, w]
29
29
  });
30
30
  }), v = u(({ align: a = "center", animate: u, children: m, className: h, leadingComponent: g, trailingComponent: _, trailingComponentDivider: v = !1, style: y, ...b }, x) => {
31
31
  let { classes: S, styles: C } = t(u), w = d(() => l.Children.toArray(m), [m]), T = w.find((e) => l.isValidElement(e) && e.type === i), E = w.find((e) => l.isValidElement(e) && e.type === n), D = w.find((e) => l.isValidElement(e) && e.type === o), O = w.find((e) => l.isValidElement(e) && e.type === s), k = w.find((e) => l.isValidElement(e) && e.type === r);
@@ -77,10 +77,10 @@ var m = "50:50", h = "start", g = "default", _ = u(({ animate: n, imageTextRatio
77
77
  })
78
78
  ]
79
79
  });
80
- }), y = u(({ fillMedia: t = !0, children: n, className: r, hasShadow: i = !1, rounded: a = !0, imageBackgroundColor: o, ...s }, l) => /* @__PURE__ */ f("div", {
81
- ref: l,
82
- className: e(c.River__visual, i && c["River__visual--has-shadow"], t && c["River__visual--fill-media"], a && c["River__visual--rounded"], o === "subtle" && c["River__visual--has-background"], r),
83
- ...s,
80
+ }), y = u(({ fillMedia: t = !0, children: n, className: r, hasShadow: i = !1, rounded: a = !0, ...o }, s) => /* @__PURE__ */ f("div", {
81
+ ref: s,
82
+ className: e(c.River__visual, i && c["River__visual--has-shadow"], t && c["River__visual--fill-media"], a && c["River__visual--rounded"], r),
83
+ ...o,
84
84
  children: n
85
85
  })), b = Object.assign(_, {
86
86
  Visual: y,
@@ -1 +1 @@
1
- {"version":3,"file":"River.js","names":[],"sources":["../../../src/river/River/River.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren, useMemo, type Ref} from 'react'\nimport {clsx} from 'clsx'\nimport {Heading, type HeadingProps} from '../../Heading'\nimport {Text, type TextProps} from '../../Text'\nimport {Link, type LinkProps} from '../../Link'\nimport {Label, type LabelProps} from '../../Label'\nimport {EyebrowText} from '../../EyebrowText'\nimport {useAnimation} from '../../animation'\nimport type {BaseProps} from '../../component-helpers'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/river/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/river/river.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from '../river-shared.module.css'\nimport gridlineStyles from '../../component-helpers/shared.module.css'\n\nexport const RiverVariants = ['default', 'gridline'] as const\nexport const BorderedGrid = 'gridline' as const\nexport const GridLine = 'gridline' as const\nexport type RiverVariant = (typeof RiverVariants)[number]\n\nexport const RiverContentAlignValues = ['center', 'block-end'] as const\nexport type RiverContentAlign = (typeof RiverContentAlignValues)[number]\n\nexport type RiverProps = {\n /**\n * Only specific children are valid.\n * These include: `River.Visual` and `River.Content`.\n * The declarative order of the children will be ignored in the rendered output\n * to enforce correct HTML semantics.\n */\n children: React.ReactElement<RiverVisualProps | RiverContentProps>[]\n /**\n * Apply an alternative image to text column ratio. The default is `50:50`.\n */\n imageTextRatio?: '60:40' | '50:50'\n /**\n * Adjust the order of the `Content` column. The default is `start`.\n */\n align?: 'start' | 'end' | 'center'\n /**\n * Apply a visual variant. The default is `default`.\n * `gridline` applies lateral spacing for use in bordered grid layouts.\n */\n variant?: RiverVariant\n} & BaseProps<HTMLElement> &\n React.HTMLAttributes<HTMLElement>\n\nexport const defaultRiverImageTextRatio = '50:50'\nexport const defaultRiverAlign = 'start'\nexport const defaultRiverVariant: RiverVariant = 'default'\n\ntype ValidRootChildren = {\n Visual: React.ReactElement<RiverVisualProps> | null\n Content: React.ReactElement<RiverContentProps> | null\n}\n\nconst Root = forwardRef(\n (\n {\n animate,\n imageTextRatio = defaultRiverImageTextRatio,\n align = defaultRiverAlign,\n variant = defaultRiverVariant,\n className,\n children,\n style,\n ...rest\n }: RiverProps,\n ref: Ref<HTMLElement>,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const {Visual: VisualChild, Content: ContentChild} = React.Children.toArray(children).reduce<ValidRootChildren>(\n (acc, child) => {\n if (React.isValidElement(child) && typeof child.type !== 'string') {\n if (child.type === Visual) {\n acc.Visual = child as React.ReactElement<RiverVisualProps>\n }\n if (child.type === RiverContent) {\n acc.Content = child as React.ReactElement<RiverContentProps>\n }\n }\n return acc\n },\n {Visual: null, Content: null},\n )\n\n return (\n <section\n ref={ref}\n className={clsx(\n styles.River,\n styles[`River--${imageTextRatio.replace(':', '-')}`],\n styles[`River--align-${align}`],\n styles[`River--variant-${variant}`],\n variant === 'gridline' && gridlineStyles.gridline,\n animationClasses,\n className,\n )}\n style={{...animationInlineStyles, ...style}}\n {...rest}\n >\n {ContentChild}\n {VisualChild}\n </section>\n )\n },\n)\n\nexport type RiverContentProps = BaseProps<HTMLDivElement> & {\n /**\n * Aligns the content vertically within its container.\n */\n align?: RiverContentAlign\n /**\n * Escape-hatch for inserting custom React components.\n * Warning:\n * This prop isn't advertised in our docs but remains part of the public API for edge-cases.\n * Need to use this prop? Please check in with #primer-brand first to confirm correct usage.\n */\n trailingComponent?: React.FunctionComponent\n /**\n * When `true`, a divider will be rendered between the standard river and optional trailing content.\n */\n trailingComponentDivider?: boolean\n /**\n * Escape-hatch for inserting custom React components.\n * Warning:\n * This prop isn't advertised in our docs but remains part of the public API for edge-cases.\n * Need to use this prop? Please check in with #primer-brand first to confirm correct usage.\n */\n leadingComponent?: React.FunctionComponent\n /**\n * Only valid children are allowed.\n * These include: `Heading`, `Text` and `Link`.\n * The declarative order of the children will be ignored in the rendered output\n * to enforce correct HTML semantics.\n */\n children: React.ReactElement<TextProps> | React.ReactElement<HeadingProps | TextProps | LinkProps>[]\n} & React.HTMLAttributes<HTMLDivElement>\n\nexport const RiverContent = forwardRef(\n (\n {\n align = 'center',\n animate,\n children,\n className,\n leadingComponent: LeadingComponent,\n trailingComponent: TrailingComponent,\n trailingComponentDivider = false,\n style,\n ...rest\n }: RiverContentProps,\n ref: Ref<HTMLDivElement>,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const Children = useMemo(() => React.Children.toArray(children), [children])\n\n const HeadingChild = Children.find(child => React.isValidElement(child) && child.type === Heading)\n\n const TextChild = Children.find(child => React.isValidElement(child) && child.type === Text)\n\n const LinkChild = Children.find(child => React.isValidElement(child) && child.type === Link)\n\n const LabelChild = Children.find(child => React.isValidElement(child) && child.type === Label)\n\n const EyebrowTextChild = Children.find(child => React.isValidElement(child) && child.type === EyebrowText)\n\n return (\n <div\n ref={ref}\n className={clsx(animationClasses, styles.River__content, styles[`River__content--align-${align}`], className)}\n style={{...animationInlineStyles, ...style}}\n {...rest}\n >\n {React.isValidElement(LabelChild) && !LeadingComponent && (\n <div className={styles.River__label}>\n {React.cloneElement(LabelChild as React.ReactElement<LabelProps>, {})}\n </div>\n )}\n\n {!LabelChild && React.isValidElement(EyebrowTextChild) && !LeadingComponent && (\n <div className={styles.River__label}>{EyebrowTextChild}</div>\n )}\n\n {!LabelChild && !EyebrowTextChild && LeadingComponent && (\n <div>\n <LeadingComponent />\n </div>\n )}\n\n {React.isValidElement<HeadingProps>(HeadingChild) && (\n <div className={styles.River__heading}>\n {React.cloneElement(HeadingChild as React.ReactElement<HeadingProps>, {\n // as uses h3 default, but can be overridden\n as: HeadingChild.props.as || 'h3',\n size: HeadingChild.props.size || '5',\n weight: HeadingChild.props.weight,\n className: clsx(HeadingChild.props.className, styles['River__heading-inner']),\n })}\n </div>\n )}\n\n {React.isValidElement<TextProps>(TextChild) && (\n <div className={styles['River__body-text']}>\n {React.cloneElement(TextChild as React.ReactElement<TextProps>, {\n variant: 'muted',\n as: 'p',\n className: clsx(styles.River__text, TextChild.props.className),\n })}\n </div>\n )}\n {React.isValidElement<LinkProps>(LinkChild) && (\n <div className={styles['River__call-to-action']}>\n {React.cloneElement(LinkChild as React.ReactElement<LinkProps>, {\n size: 'medium',\n variant: LinkChild.props.variant || 'accent',\n })}\n </div>\n )}\n {TrailingComponent && (\n <div\n className={clsx(\n styles.River__trailingComponent,\n trailingComponentDivider && styles['River__trailingComponent--divider'],\n )}\n >\n <TrailingComponent />\n </div>\n )}\n </div>\n )\n },\n)\n\nexport const RiverVisualBackgroundColors = ['default', 'subtle'] as const\nexport type RiverVisualBackgroundColor = (typeof RiverVisualBackgroundColors)[number]\n\nexport type RiverVisualProps = BaseProps<HTMLDivElement> &\n React.HtmlHTMLAttributes<HTMLDivElement> &\n PropsWithChildren<{\n /**\n * Applies automatic size constraints to child images and video.\n * This can be disabled by setting this prop to `false`.\n */\n fillMedia?: boolean\n /**\n * `img` and `video` elements will apply a shadow by default.\n * This can be disabled by setting this prop to `false`.\n */\n hasShadow?: boolean\n /**\n * Enables rounded corners.\n * Can optionally be disabled.\n */\n rounded?: boolean\n /**\n * Applies a background color with padding around the media.\n */\n imageBackgroundColor?: RiverVisualBackgroundColor\n }>\n\nexport const Visual = forwardRef(\n (\n {\n fillMedia = true,\n children,\n className,\n hasShadow = false,\n rounded = true,\n imageBackgroundColor,\n ...rest\n }: PropsWithChildren<RiverVisualProps>,\n ref: Ref<HTMLDivElement>,\n ) => {\n return (\n <div\n ref={ref}\n className={clsx(\n styles.River__visual,\n hasShadow && styles['River__visual--has-shadow'],\n fillMedia && styles['River__visual--fill-media'],\n rounded && styles['River__visual--rounded'],\n imageBackgroundColor === 'subtle' && styles['River__visual--has-background'],\n className,\n )}\n {...rest}\n >\n {children}\n </div>\n )\n },\n)\n\n/**\n * Alternating text and image pairs.\n */\nexport const River = Object.assign(Root, {Visual, Content: RiverContent})\n"],"mappings":";;;;;;;;;;;;;;AAoDA,IAAa,IAA6B,SAC7B,IAAoB,SACpB,IAAoC,WAO3C,IAAO,GAET,EACE,YACA,oBAAiB,GACjB,WAAQ,GACR,aAAU,GACV,cACA,aACA,UACA,GAAG,KAEL,MACG;CACH,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,EAAQ,EAElF,EAAC,QAAQ,GAAa,SAAS,MAAgB,EAAM,SAAS,QAAQ,EAAS,CAAC,QACnF,GAAK,OACA,E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;CACD,GAAI;CAEH;CACG,CAAA,CAGX,EAKY,IAAQ,OAAO,OAAO,GAAM;CAAC;CAAQ,SAAS;CAAa,CAAC"}
1
+ {"version":3,"file":"River.js","names":[],"sources":["../../../src/river/River/River.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren, useMemo, type Ref} from 'react'\nimport {clsx} from 'clsx'\nimport {Heading, type HeadingProps} from '../../Heading'\nimport {Text, type TextProps} from '../../Text'\nimport {Link, type LinkProps} from '../../Link'\nimport {Label, type LabelProps} from '../../Label'\nimport {EyebrowText} from '../../EyebrowText'\nimport {useAnimation} from '../../animation'\nimport type {BaseProps} from '../../component-helpers'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/river/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/river/river.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from '../river-shared.module.css'\nimport gridlineStyles from '../../component-helpers/shared.module.css'\n\nexport const RiverVariants = ['default', 'gridline'] as const\nexport const BorderedGrid = 'gridline' as const\nexport const GridLine = 'gridline' as const\nexport type RiverVariant = (typeof RiverVariants)[number]\n\nexport const RiverContentAlignValues = ['center', 'block-end'] as const\nexport type RiverContentAlign = (typeof RiverContentAlignValues)[number]\n\nexport type RiverProps = {\n /**\n * Only specific children are valid.\n * These include: `River.Visual` and `River.Content`.\n * The declarative order of the children will be ignored in the rendered output\n * to enforce correct HTML semantics.\n */\n children: React.ReactElement<RiverVisualProps | RiverContentProps>[]\n /**\n * Apply an alternative image to text column ratio. The default is `50:50`.\n */\n imageTextRatio?: '60:40' | '50:50'\n /**\n * Adjust the order of the `Content` column. The default is `start`.\n */\n align?: 'start' | 'end' | 'center'\n /**\n * Apply a visual variant. The default is `default`.\n * `gridline` applies lateral spacing for use in bordered grid layouts.\n */\n variant?: RiverVariant\n} & BaseProps<HTMLElement> &\n React.HTMLAttributes<HTMLElement>\n\nexport const defaultRiverImageTextRatio = '50:50'\nexport const defaultRiverAlign = 'start'\nexport const defaultRiverVariant: RiverVariant = 'default'\n\ntype ValidRootChildren = {\n Visual: React.ReactElement<RiverVisualProps> | null\n Content: React.ReactElement<RiverContentProps> | null\n}\n\nconst Root = forwardRef(\n (\n {\n animate,\n imageTextRatio = defaultRiverImageTextRatio,\n align = defaultRiverAlign,\n variant = defaultRiverVariant,\n className,\n children,\n style,\n ...rest\n }: RiverProps,\n ref: Ref<HTMLElement>,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const {Visual: VisualChild, Content: ContentChild} = React.Children.toArray(children).reduce<ValidRootChildren>(\n (acc, child) => {\n if (React.isValidElement(child) && typeof child.type !== 'string') {\n if (child.type === Visual) {\n acc.Visual = child as React.ReactElement<RiverVisualProps>\n }\n if (child.type === RiverContent) {\n acc.Content = child as React.ReactElement<RiverContentProps>\n }\n }\n return acc\n },\n {Visual: null, Content: null},\n )\n\n const VisualChildWithVariantStyles = VisualChild\n ? React.cloneElement(VisualChild, {\n className: clsx(\n VisualChild.props.className,\n variant === 'gridline' && styles['River__visual--has-background'],\n ),\n })\n : null\n\n return (\n <section\n ref={ref}\n className={clsx(\n styles.River,\n styles[`River--${imageTextRatio.replace(':', '-')}`],\n styles[`River--align-${align}`],\n styles[`River--variant-${variant}`],\n variant === 'gridline' && gridlineStyles.gridline,\n animationClasses,\n className,\n )}\n style={{...animationInlineStyles, ...style}}\n {...rest}\n >\n {ContentChild}\n {VisualChildWithVariantStyles}\n </section>\n )\n },\n)\n\nexport type RiverContentProps = BaseProps<HTMLDivElement> & {\n /**\n * Aligns the content vertically within its container.\n */\n align?: RiverContentAlign\n /**\n * Escape-hatch for inserting custom React components.\n * Warning:\n * This prop isn't advertised in our docs but remains part of the public API for edge-cases.\n * Need to use this prop? Please check in with #primer-brand first to confirm correct usage.\n */\n trailingComponent?: React.FunctionComponent\n /**\n * When `true`, a divider will be rendered between the standard river and optional trailing content.\n */\n trailingComponentDivider?: boolean\n /**\n * Escape-hatch for inserting custom React components.\n * Warning:\n * This prop isn't advertised in our docs but remains part of the public API for edge-cases.\n * Need to use this prop? Please check in with #primer-brand first to confirm correct usage.\n */\n leadingComponent?: React.FunctionComponent\n /**\n * Only valid children are allowed.\n * These include: `Heading`, `Text` and `Link`.\n * The declarative order of the children will be ignored in the rendered output\n * to enforce correct HTML semantics.\n */\n children: React.ReactElement<TextProps> | React.ReactElement<HeadingProps | TextProps | LinkProps>[]\n} & React.HTMLAttributes<HTMLDivElement>\n\nexport const RiverContent = forwardRef(\n (\n {\n align = 'center',\n animate,\n children,\n className,\n leadingComponent: LeadingComponent,\n trailingComponent: TrailingComponent,\n trailingComponentDivider = false,\n style,\n ...rest\n }: RiverContentProps,\n ref: Ref<HTMLDivElement>,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const Children = useMemo(() => React.Children.toArray(children), [children])\n\n const HeadingChild = Children.find(child => React.isValidElement(child) && child.type === Heading)\n\n const TextChild = Children.find(child => React.isValidElement(child) && child.type === Text)\n\n const LinkChild = Children.find(child => React.isValidElement(child) && child.type === Link)\n\n const LabelChild = Children.find(child => React.isValidElement(child) && child.type === Label)\n\n const EyebrowTextChild = Children.find(child => React.isValidElement(child) && child.type === EyebrowText)\n\n return (\n <div\n ref={ref}\n className={clsx(animationClasses, styles.River__content, styles[`River__content--align-${align}`], className)}\n style={{...animationInlineStyles, ...style}}\n {...rest}\n >\n {React.isValidElement(LabelChild) && !LeadingComponent && (\n <div className={styles.River__label}>\n {React.cloneElement(LabelChild as React.ReactElement<LabelProps>, {})}\n </div>\n )}\n\n {!LabelChild && React.isValidElement(EyebrowTextChild) && !LeadingComponent && (\n <div className={styles.River__label}>{EyebrowTextChild}</div>\n )}\n\n {!LabelChild && !EyebrowTextChild && LeadingComponent && (\n <div>\n <LeadingComponent />\n </div>\n )}\n\n {React.isValidElement<HeadingProps>(HeadingChild) && (\n <div className={styles.River__heading}>\n {React.cloneElement(HeadingChild as React.ReactElement<HeadingProps>, {\n // as uses h3 default, but can be overridden\n as: HeadingChild.props.as || 'h3',\n size: HeadingChild.props.size || '5',\n weight: HeadingChild.props.weight,\n className: clsx(HeadingChild.props.className, styles['River__heading-inner']),\n })}\n </div>\n )}\n\n {React.isValidElement<TextProps>(TextChild) && (\n <div className={styles['River__body-text']}>\n {React.cloneElement(TextChild as React.ReactElement<TextProps>, {\n variant: 'muted',\n as: 'p',\n className: clsx(styles.River__text, TextChild.props.className),\n })}\n </div>\n )}\n {React.isValidElement<LinkProps>(LinkChild) && (\n <div className={styles['River__call-to-action']}>\n {React.cloneElement(LinkChild as React.ReactElement<LinkProps>, {\n size: 'medium',\n variant: LinkChild.props.variant || 'accent',\n })}\n </div>\n )}\n {TrailingComponent && (\n <div\n className={clsx(\n styles.River__trailingComponent,\n trailingComponentDivider && styles['River__trailingComponent--divider'],\n )}\n >\n <TrailingComponent />\n </div>\n )}\n </div>\n )\n },\n)\n\nexport type RiverVisualProps = BaseProps<HTMLDivElement> &\n React.HtmlHTMLAttributes<HTMLDivElement> &\n PropsWithChildren<{\n /**\n * Applies automatic size constraints to child images and video.\n * This can be disabled by setting this prop to `false`.\n */\n fillMedia?: boolean\n /**\n * `img` and `video` elements will apply a shadow by default.\n * This can be disabled by setting this prop to `false`.\n */\n hasShadow?: boolean\n /**\n * Enables rounded corners.\n * Can optionally be disabled.\n */\n rounded?: boolean\n }>\n\nexport const Visual = forwardRef(\n (\n {\n fillMedia = true,\n children,\n className,\n hasShadow = false,\n rounded = true,\n ...rest\n }: PropsWithChildren<RiverVisualProps>,\n ref: Ref<HTMLDivElement>,\n ) => {\n return (\n <div\n ref={ref}\n className={clsx(\n styles.River__visual,\n hasShadow && styles['River__visual--has-shadow'],\n fillMedia && styles['River__visual--fill-media'],\n rounded && styles['River__visual--rounded'],\n className,\n )}\n {...rest}\n >\n {children}\n </div>\n )\n },\n)\n\n/**\n * Alternating text and image pairs.\n */\nexport const River = Object.assign(Root, {Visual, Content: RiverContent})\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AAa,GAA4C;KAC9D,MAAM;KACN,SAAS,EAAU,MAAM,WAAW;KACrC,CAAC;IACE,CAAA;GAEP,KACC,kBAAC,OAAD;IACE,WAAW,EACT,EAAO,0BACP,KAA4B,EAAO,qCACpC;cAED,kBAAC,GAAD,EAAqB,CAAA;IACjB,CAAA;GAEJ;;EAGX,EAsBY,IAAS,GAElB,EACE,eAAY,IACZ,aACA,cACA,eAAY,IACZ,aAAU,IACV,GAAG,KAEL,MAGE,kBAAC,OAAD;CACO;CACL,WAAW,EACT,EAAO,eACP,KAAa,EAAO,8BACpB,KAAa,EAAO,8BACpB,KAAW,EAAO,2BAClB,EACD;CACD,GAAI;CAEH;CACG,CAAA,CAGX,EAKY,IAAQ,OAAO,OAAO,GAAM;CAAC;CAAQ,SAAS;CAAa,CAAC"}
@@ -0,0 +1 @@
1
+ .Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB{grid-gap:0;grid-template:"visual""accordion"/1fr;gap:0;display:grid;position:relative}@media screen and (width>=63.25rem){.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB{--gap-width:var(--brand-Grid-spacing-column-gap);--column-and-gap-width:calc((100% + var(--gap-width)) / 12);--4-grid-columns:calc(4 * var(--column-and-gap-width));--7-grid-columns-minus-last-gap:calc((7 * var(--column-and-gap-width)) - var(--gap-width));gap:var(--column-and-gap-width);grid-template-rows:auto}.Primer_Brand__RiverAccordion-module__RiverAccordion__align-start___wbXB3{grid-template-columns:var(--4-grid-columns) var(--7-grid-columns-minus-last-gap);grid-template-areas:"accordion visual"}.Primer_Brand__RiverAccordion-module__RiverAccordion__align-end___Zq4qJ{grid-template-columns:var(--7-grid-columns-minus-last-gap) var(--4-grid-columns);grid-template-areas:"visual accordion"}}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4{padding-inline:var(--brand-RiverAccordion-variant-gridline-spacing-outerInline);padding-block:var(--brand-RiverAccordion-variant-gridline-spacing-outerBlock);position:relative}@media screen and (width>=63.25rem){.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4{--gap-width:var(--brand-RiverAccordion-variant-gridline-spacing-contentGap);--half-column:calc(50% - var(--gap-width) / 2);gap:var(--gap-width);align-items:center}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4.Primer_Brand__RiverAccordion-module__RiverAccordion__align-start___wbXB3{grid-template-columns:var(--half-column) var(--half-column);grid-template-areas:"accordion visual"}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4.Primer_Brand__RiverAccordion-module__RiverAccordion__align-end___Zq4qJ{grid-template-columns:var(--half-column) var(--half-column);grid-template-areas:"visual accordion"}}@media (width>=80rem){.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6{border-radius:var(--brand-borderRadius-medium)}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx{margin-inline:calc(-1 * var(--brand-RiverAccordion-variant-gridline-spacing-outerInline));margin-block-start:calc(-1 * var(--brand-RiverAccordion-variant-gridline-spacing-outerBlock))}@media screen and (width>=48rem) and (width<=63.24rem){.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB{max-width:618px;margin-inline:auto}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB){border-radius:0}.Primer_Brand__RiverAccordion-module__RiverAccordion__accordionContainer___a80ds{grid-area:accordion}.Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx{grid-area:visual}.Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6{border-radius:var(--brand-borderRadius-xlarge);grid-template-columns:subgrid;grid-template-rows:subgrid;width:100%;display:grid;overflow:hidden}.Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob{opacity:0;width:100%;height:100%;transition:opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default), scale var(--brand-animation-duration-default) var(--brand-animation-easing-default);grid-area:1/1;align-items:center;display:flex;scale:1.05}.Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob>*{border-radius:var(--brand-borderRadius-xlarge);-o-object-fit:contain;object-fit:contain;width:100%;height:auto;display:block;overflow:hidden}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob>*{border-radius:var(--brand-borderRadius-medium)}.Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob img,.Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob picture,.Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob video{border-radius:inherit;-o-object-fit:contain;object-fit:contain;width:100%;height:auto;display:block}.Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob>* img,.Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob>* video{border-radius:inherit;-o-object-fit:cover;object-fit:cover;width:100%;height:100%;display:block}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB{padding:var(--base-size-32);background:var(--brand-RiverAccordion-visual-background,var(--brand-color-canvas-subtle));justify-content:center;align-items:center;display:flex}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB>*{border-radius:var(--brand-borderRadius-large);justify-content:center;align-items:center;max-width:100%;height:auto;display:flex}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB img,.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB picture,.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB video{border-radius:var(--brand-borderRadius-large);max-width:100%;height:100%}@media screen and (width>=63.25rem){.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB){grid-template-columns:1fr 1fr;align-items:stretch;gap:0;padding:0}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB) .Primer_Brand__RiverAccordion-module__RiverAccordion__accordionContainer___a80ds{padding:var(--brand-RiverAccordion-variant-gridline-spacing-outerBlock) var(--brand-RiverAccordion-variant-gridline-spacing-outerInline);flex-direction:column;justify-content:center;display:flex}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4.Primer_Brand__RiverAccordion-module__RiverAccordion__align-start___wbXB3:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB) .Primer_Brand__RiverAccordion-module__RiverAccordion__accordionContainer___a80ds{padding-inline-end:var(--brand-RiverAccordion-variant-gridline-spacing-contentGap)}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4.Primer_Brand__RiverAccordion-module__RiverAccordion__align-end___Zq4qJ:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB) .Primer_Brand__RiverAccordion-module__RiverAccordion__accordionContainer___a80ds{padding-inline-start:var(--brand-RiverAccordion-variant-gridline-spacing-contentGap)}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx{margin:0}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB){height:100%}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB{padding:var(--base-size-64);justify-content:center;align-items:center}.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB>*,.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB img,.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB picture,.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsWrapper___Z8Yr6>.Primer_Brand__RiverAccordion-module__RiverAccordion__visual--has-background___JQ9GB video{border-radius:var(--brand-borderRadius-large)}}:is(.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:first-child) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:first-child,.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:nth-child(2)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:nth-child(2),.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:nth-child(3)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:nth-child(3),.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:nth-child(4)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:nth-child(4),.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:nth-child(5)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:nth-child(5),.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:nth-child(6)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:nth-child(6),.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:nth-child(7)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:nth-child(7),.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:nth-child(8)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:nth-child(8),.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:nth-child(9)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:nth-child(9),.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2:nth-child(10)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:nth-child(10),.Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB:not(:has(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2)) .Primer_Brand__RiverAccordion-module__RiverAccordion__visualsContainer___IvQlx .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob:first-child){opacity:1;z-index:1;scale:1}.Primer_Brand__RiverAccordion-module__RiverAccordion__accordionContainer___a80ds .Primer_Brand__RiverAccordion-module__RiverAccordion__visual___aIsob{clip:rect(0, 0, 0, 0);word-wrap:normal;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.Primer_Brand__RiverAccordion-module__RiverAccordion__item___SheMX{border-bottom:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);padding-block-start:var(--base-size-32);position:relative}@media screen and (width<=63.24rem){.Primer_Brand__RiverAccordion-module__RiverAccordion--variant-gridline___1SmA4 .Primer_Brand__RiverAccordion-module__RiverAccordion__item___SheMX:last-child{border-bottom:none}}.Primer_Brand__RiverAccordion-module__RiverAccordion__item___SheMX:not(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2) .Primer_Brand__RiverAccordion-module__RiverAccordion__heading___O56M6{color:var(--brand-color-text-muted)}.Primer_Brand__RiverAccordion-module__RiverAccordion__trigger___1RM50{color:inherit;cursor:pointer;font:inherit;text-align:left;width:100%;padding:0;padding:var(--base-size-4);margin:0;margin:calc(var(--base-size-4) * -1);background:0 0;border:none;justify-content:space-between;align-items:center;display:flex}.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2 .Primer_Brand__RiverAccordion-module__RiverAccordion__trigger___1RM50{cursor:auto;cursor:initial}.Primer_Brand__RiverAccordion-module__RiverAccordion__item___SheMX:not(.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2) .Primer_Brand__RiverAccordion-module__RiverAccordion__trigger___1RM50:after{content:"";width:100%;height:100%;display:block;position:absolute}.Primer_Brand__RiverAccordion-module__RiverAccordion__panel___Y4GUN{transition:grid-template-rows var(--brand-animation-duration-default) var(--brand-animation-easing-default), margin-block-start var(--brand-animation-duration-default) var(--brand-animation-easing-default), padding-block-end var(--brand-animation-duration-default) var(--brand-animation-easing-default);grid-template-rows:0fr;margin-block-start:var(--base-size-32);display:grid;overflow-y:clip}.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2 .Primer_Brand__RiverAccordion-module__RiverAccordion__panel___Y4GUN{grid-template-rows:1fr;margin-block-start:var(--base-size-12);padding-block-end:var(--base-size-32)}.Primer_Brand__RiverAccordion-module__RiverAccordion__content___87sh8{align-items:flex-start;gap:var(--base-size-20);flex-direction:column;min-height:0;display:flex}.Primer_Brand__RiverAccordion-module__RiverAccordion__icon___FMAZH{color:var(--brand-color-text-muted);flex-shrink:0;align-items:center;display:flex}.Primer_Brand__RiverAccordion-module__RiverAccordion__item--open___YH6K2 .Primer_Brand__RiverAccordion-module__RiverAccordion__icon___FMAZH{color:var(--brand-color-text-default)}
@@ -1,4 +1,4 @@
1
- import './RiverAccordion.module-nlZZH3O7.css';var e = {
1
+ import './RiverAccordion.module-BTU_metB.css';var e = {
2
2
  RiverAccordion: "Primer_Brand__RiverAccordion-module__RiverAccordion___cECsB",
3
3
  "RiverAccordion__align-start": "Primer_Brand__RiverAccordion-module__RiverAccordion__align-start___wbXB3",
4
4
  "RiverAccordion__align-end": "Primer_Brand__RiverAccordion-module__RiverAccordion__align-end___Zq4qJ",