@primer/react-brand 0.69.1-rc.0a4e5ff5 → 0.70.0-rc.11ae3568

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 (702) hide show
  1. package/README.md +19 -0
  2. package/docs/components/ActionMenu/index.md +156 -0
  3. package/docs/components/AnchorNav/index.md +220 -0
  4. package/docs/components/Avatar/index.md +30 -0
  5. package/docs/components/Avatar/react.md +71 -0
  6. package/docs/components/Bento/index.md +223 -0
  7. package/docs/components/Breadcrumbs/index.md +51 -0
  8. package/docs/components/Breadcrumbs/react.md +53 -0
  9. package/docs/components/BreakoutBanner/index.md +102 -0
  10. package/docs/components/BreakoutBanner/react.md +174 -0
  11. package/docs/components/Button/index.md +133 -0
  12. package/docs/components/Button/react.md +94 -0
  13. package/docs/components/ButtonGroup/index.md +62 -0
  14. package/docs/components/ButtonGroup/react.md +60 -0
  15. package/docs/components/CTABanner/index.md +114 -0
  16. package/docs/components/CTABanner/react.md +343 -0
  17. package/docs/components/CTAForm/index.md +95 -0
  18. package/docs/components/CTAForm/react.md +103 -0
  19. package/docs/components/Card/index.md +126 -0
  20. package/docs/components/Card/react.md +240 -0
  21. package/docs/components/ComparisonTable/index.md +381 -0
  22. package/docs/components/EyebrowBanner/index.md +153 -0
  23. package/docs/components/FAQ/index.md +66 -0
  24. package/docs/components/FAQ/react.md +477 -0
  25. package/docs/components/Footnotes/index.md +41 -0
  26. package/docs/components/Footnotes/react.md +156 -0
  27. package/docs/components/Hero/index.md +65 -0
  28. package/docs/components/Hero/react.md +215 -0
  29. package/docs/components/IDE/index.md +278 -0
  30. package/docs/components/Icon/index.md +87 -0
  31. package/docs/components/Image/index.md +51 -0
  32. package/docs/components/Image/react.md +160 -0
  33. package/docs/components/Label/index.md +86 -0
  34. package/docs/components/Label/react.md +76 -0
  35. package/docs/components/LogoSuite/index.md +93 -0
  36. package/docs/components/LogoSuite/react.md +667 -0
  37. package/docs/components/MediaPlaylist/index.md +133 -0
  38. package/docs/components/MinimalFooter/index.md +94 -0
  39. package/docs/components/NavList/index.md +210 -0
  40. package/docs/components/OrderedList/index.md +55 -0
  41. package/docs/components/OrderedList/react.md +41 -0
  42. package/docs/components/Pagination/index.md +80 -0
  43. package/docs/components/Pillar/index.md +114 -0
  44. package/docs/components/Pillar/react.md +175 -0
  45. package/docs/components/PricingOptions/index.md +509 -0
  46. package/docs/components/Prose/index.md +158 -0
  47. package/docs/components/River/index.md +190 -0
  48. package/docs/components/River/react.md +295 -0
  49. package/docs/components/RiverAccordion/index.md +200 -0
  50. package/docs/components/RiverBreakoutTabs/index.md +171 -0
  51. package/docs/components/Section/index.md +40 -0
  52. package/docs/components/Section/react.md +137 -0
  53. package/docs/components/SectionIntro/index.md +77 -0
  54. package/docs/components/SectionIntro/react.md +107 -0
  55. package/docs/components/SectionIntroStacked/index.md +226 -0
  56. package/docs/components/Statistic/index.md +111 -0
  57. package/docs/components/SubNav/index.md +156 -0
  58. package/docs/components/SubdomainNavBar/index.md +136 -0
  59. package/docs/components/Tabs/index.md +243 -0
  60. package/docs/components/Testimonial/index.md +138 -0
  61. package/docs/components/Testimonial/react.md +191 -0
  62. package/docs/components/Tiles/index.md +1441 -0
  63. package/docs/components/Timeline/index.md +68 -0
  64. package/docs/components/Token/index.md +86 -0
  65. package/docs/components/Tooltip/index.md +61 -0
  66. package/docs/components/UnorderedList/index.md +67 -0
  67. package/docs/components/UnorderedList/react.md +89 -0
  68. package/docs/components/VideoPlayer/index.md +234 -0
  69. package/docs/components/index.md +53 -0
  70. package/docs/forms/Checkbox/index.md +86 -0
  71. package/docs/forms/Checkbox/react.md +111 -0
  72. package/docs/forms/CheckboxGroup/index.md +37 -0
  73. package/docs/forms/CheckboxGroup/react.md +175 -0
  74. package/docs/forms/FormControl/index.md +404 -0
  75. package/docs/forms/Radio/index.md +63 -0
  76. package/docs/forms/Radio/react.md +68 -0
  77. package/docs/forms/RadioGroup/index.md +45 -0
  78. package/docs/forms/RadioGroup/react.md +151 -0
  79. package/docs/forms/Select/index.md +244 -0
  80. package/docs/forms/TextArea/index.md +126 -0
  81. package/docs/forms/TextInput/index.md +221 -0
  82. package/docs/forms/index.md +14 -0
  83. package/docs/getting-started/esm.md +49 -0
  84. package/docs/getting-started/index.md +98 -0
  85. package/docs/index.md +99 -0
  86. package/docs/introduction/animation.md +127 -0
  87. package/docs/introduction/index.md +10 -0
  88. package/docs/introduction/mcp.md +52 -0
  89. package/docs/introduction/theming.md +132 -0
  90. package/docs/layout/Box/index.md +46 -0
  91. package/docs/layout/Box/react.md +284 -0
  92. package/docs/layout/Grid/index.md +132 -0
  93. package/docs/layout/Grid/react.md +117 -0
  94. package/docs/layout/Stack/index.md +60 -0
  95. package/docs/layout/Stack/react.md +166 -0
  96. package/docs/layout/index.md +9 -0
  97. package/docs/primitives/color.md +6 -0
  98. package/docs/primitives/index.md +8 -0
  99. package/docs/typography/Heading/index.md +53 -0
  100. package/docs/typography/Heading/react.md +182 -0
  101. package/docs/typography/Text/index.md +68 -0
  102. package/docs/typography/Text/react.md +125 -0
  103. package/docs/typography/index.md +8 -0
  104. package/esm/Footnotes/{Footnotes.module-Du0yaz7E.css → Footnotes.module-DG9Vx76y.css} +1 -1
  105. package/esm/Footnotes/Footnotes.module.js +1 -1
  106. package/esm/Footnotes/Footnotes.module.js.map +1 -1
  107. package/esm/Heading/Heading.d.ts +10 -0
  108. package/esm/Heading/Heading.d.ts.map +1 -1
  109. package/esm/Heading/Heading.js.map +1 -1
  110. package/esm/Hero/Hero.d.ts.map +1 -1
  111. package/esm/Hero/Hero.js +60 -58
  112. package/esm/Hero/Hero.js.map +1 -1
  113. package/esm/Hero/{Hero.module-Cy82CEW3.css → Hero.module-DqG5f0MT.css} +1 -1
  114. package/esm/Hero/Hero.module.js +1 -1
  115. package/esm/Hero/Hero.module.js.map +1 -1
  116. package/esm/NavList/NavList.d.ts +86 -0
  117. package/esm/NavList/NavList.d.ts.map +1 -0
  118. package/esm/NavList/NavList.js +277 -0
  119. package/esm/NavList/NavList.js.map +1 -0
  120. package/esm/NavList/NavList.module-CZFnt8br.css +1 -0
  121. package/esm/NavList/NavList.module.js +32 -0
  122. package/esm/NavList/NavList.module.js.map +1 -0
  123. package/esm/NavList/index.d.ts +2 -0
  124. package/esm/NavList/index.d.ts.map +1 -0
  125. package/esm/SectionIntroStacked/{SectionIntroStacked.module-Cr7kUqTH.css → SectionIntroStacked.module-C3cmwHDY.css} +1 -1
  126. package/esm/SectionIntroStacked/SectionIntroStacked.module.js +1 -1
  127. package/esm/SectionIntroStacked/SectionIntroStacked.module.js.map +1 -1
  128. package/esm/Token/Token.js +0 -1
  129. package/esm/Token/Token.js.map +1 -1
  130. package/esm/Token/{Token.module-BcKU1KwK.css → Token.module-DtWE9IPI.css} +1 -1
  131. package/esm/Token/Token.module.js +1 -1
  132. package/esm/Token/Token.module.js.map +1 -1
  133. package/esm/index.d.ts +1 -0
  134. package/esm/index.d.ts.map +1 -1
  135. package/esm/index.esm.js +12 -11
  136. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes-CGyt2t8f.css +1 -0
  137. package/lib/Grid/Grid.d.ts +1 -1
  138. package/lib/Heading/Heading.d.ts +10 -0
  139. package/lib/NavList/NavList.d.ts +85 -0
  140. package/lib/NavList/index.d.ts +1 -0
  141. package/lib/SubNav/SubNav.d.ts +1 -1
  142. package/lib/Token/Token.d.ts +1 -1
  143. package/lib/css/main.css +613 -74
  144. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  145. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  146. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  147. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  148. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  149. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  150. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  151. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  152. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  153. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  154. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  155. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  156. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  157. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  158. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  159. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  160. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  161. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  162. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  163. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  164. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  165. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  166. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  167. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  168. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  169. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  170. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  171. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  172. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  173. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  174. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  175. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  176. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  177. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  178. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  179. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  180. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  181. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  182. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  183. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  184. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  185. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  186. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  187. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  188. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  189. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  190. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  191. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  192. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  193. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  194. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  195. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  196. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +13 -0
  197. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  198. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  199. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  200. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  201. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  202. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  203. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  204. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  205. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  206. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  207. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  208. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  209. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  210. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  211. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  212. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  213. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  214. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  215. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  216. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  217. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  218. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  219. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  220. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  221. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  222. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  223. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  224. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  225. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  226. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  227. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  228. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  229. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  230. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  231. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  232. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  233. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  234. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  235. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  236. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  237. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  238. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  239. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  240. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  241. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  242. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  243. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  244. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  245. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  246. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  247. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  248. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  249. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  250. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  251. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  252. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  253. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  254. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  255. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  256. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  257. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  258. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  259. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  260. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  261. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  262. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  263. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  264. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  265. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  266. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  267. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  268. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  269. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  270. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  271. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  272. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  273. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  274. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  275. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  276. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  277. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  278. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  279. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  280. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  281. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  282. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  283. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  284. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  285. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  286. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  287. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  288. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  289. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  290. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  291. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  292. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  293. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  294. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  295. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  296. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  297. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  298. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  299. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  300. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  301. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  302. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  303. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  304. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  305. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  306. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  307. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  308. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  309. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  310. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  311. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  312. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  313. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  314. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  315. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  316. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  317. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  318. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  319. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  320. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  321. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  322. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  323. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  324. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  325. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  326. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  327. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  328. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  329. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  330. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  331. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  332. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  333. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  334. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  335. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  336. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  337. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  338. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  339. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  340. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  341. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  342. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  343. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  344. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  345. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  346. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  347. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  348. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  349. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  350. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  351. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  352. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  353. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  354. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  355. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  356. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  357. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  358. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  359. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  360. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  361. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  362. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  363. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  364. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  365. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  366. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  367. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  368. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  369. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  370. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  371. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  372. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  373. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  374. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  375. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  376. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  377. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  378. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  379. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  380. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  381. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  382. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  383. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  384. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  385. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  386. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  387. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  388. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  389. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  390. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  391. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  392. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  393. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  394. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  395. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  396. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  397. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  398. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  399. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  400. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  401. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  402. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  403. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  404. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  405. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  406. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  407. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  408. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  409. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  410. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  411. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  412. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  413. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  414. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  415. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  416. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  417. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  418. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  419. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  420. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  421. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  422. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  423. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  424. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  425. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  426. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  427. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  428. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  429. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  430. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  431. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  432. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  433. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  434. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  435. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  436. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  437. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  438. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  439. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  440. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  441. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  442. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  443. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  444. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  445. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  446. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  447. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  448. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  449. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  450. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  451. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  452. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  453. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  454. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  455. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  456. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  457. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  458. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  459. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  460. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  461. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  462. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  463. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  464. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  465. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  466. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  467. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  468. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  469. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  470. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  471. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  472. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  473. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  474. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  475. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  476. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  477. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  478. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  479. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  480. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  481. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  482. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  483. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  484. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  485. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  486. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  487. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  488. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  489. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  490. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  491. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  492. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  493. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  494. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  495. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  496. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  497. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  498. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  499. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  500. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  501. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  502. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  503. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  504. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  505. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  506. package/lib/index.d.ts +1 -0
  507. package/lib/index.js +1 -1
  508. package/llms.txt +97 -0
  509. package/package.json +17 -5
  510. package/esm/Hero/Hero.figma.d.ts +0 -2
  511. package/esm/Hero/Hero.figma.d.ts.map +0 -1
  512. package/esm/IDE/fixtures/content.d.ts +0 -7
  513. package/esm/IDE/fixtures/content.d.ts.map +0 -1
  514. package/esm/LogoSuite/LogoSuite.figma.d.ts +0 -2
  515. package/esm/LogoSuite/LogoSuite.figma.d.ts.map +0 -1
  516. package/esm/LogoSuite/LogoSuite.fixtures.d.ts +0 -2
  517. package/esm/LogoSuite/LogoSuite.fixtures.d.ts.map +0 -1
  518. package/esm/MonaSans/MonaSans.d.ts +0 -11
  519. package/esm/MonaSans/MonaSans.d.ts.map +0 -1
  520. package/esm/MonaSans/index.d.ts +0 -2
  521. package/esm/MonaSans/index.d.ts.map +0 -1
  522. package/esm/PricingOptions/PricingOptions.figma.d.ts +0 -2
  523. package/esm/PricingOptions/PricingOptions.figma.d.ts.map +0 -1
  524. package/esm/Tiles/Tiles.fixtures.d.ts +0 -7
  525. package/esm/Tiles/Tiles.fixtures.d.ts.map +0 -1
  526. package/esm/fixtures/third-party-logos/AzureLogo.d.ts +0 -5
  527. package/esm/fixtures/third-party-logos/AzureLogo.d.ts.map +0 -1
  528. package/esm/fixtures/third-party-logos/JetBrainsLogo.d.ts +0 -5
  529. package/esm/fixtures/third-party-logos/JetBrainsLogo.d.ts.map +0 -1
  530. package/esm/fixtures/third-party-logos/MicrosoftCopilotLogo.d.ts +0 -5
  531. package/esm/fixtures/third-party-logos/MicrosoftCopilotLogo.d.ts.map +0 -1
  532. package/esm/fixtures/third-party-logos/MicrosoftLogo.d.ts +0 -5
  533. package/esm/fixtures/third-party-logos/MicrosoftLogo.d.ts.map +0 -1
  534. package/esm/fixtures/third-party-logos/NeoVimLogo.d.ts +0 -5
  535. package/esm/fixtures/third-party-logos/NeoVimLogo.d.ts.map +0 -1
  536. package/esm/fixtures/third-party-logos/VisualStudioCodeLogo.d.ts +0 -5
  537. package/esm/fixtures/third-party-logos/VisualStudioCodeLogo.d.ts.map +0 -1
  538. package/esm/fixtures/third-party-logos/VisualStudioLogo.d.ts +0 -5
  539. package/esm/fixtures/third-party-logos/VisualStudioLogo.d.ts.map +0 -1
  540. package/esm/list/ListItem/index.d.ts +0 -2
  541. package/esm/list/ListItem/index.d.ts.map +0 -1
  542. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts +0 -13
  543. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts.map +0 -1
  544. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts +0 -14
  545. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts.map +0 -1
  546. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts +0 -8
  547. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts.map +0 -1
  548. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/index.d.ts +0 -2
  549. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/index.d.ts.map +0 -1
  550. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts +0 -49
  551. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts.map +0 -1
  552. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/index.d.ts +0 -2
  553. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/index.d.ts.map +0 -1
  554. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts +0 -17
  555. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts.map +0 -1
  556. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/index.d.ts +0 -2
  557. package/esm/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/index.d.ts.map +0 -1
  558. package/esm/recipes/FeaturePreviewLPs/helpers.d.ts +0 -30
  559. package/esm/recipes/FeaturePreviewLPs/helpers.d.ts.map +0 -1
  560. package/esm/recipes/FlexTemplate/FlexSection/FlexSection.d.ts +0 -8
  561. package/esm/recipes/FlexTemplate/FlexSection/FlexSection.d.ts.map +0 -1
  562. package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiver.d.ts +0 -2
  563. package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiver.d.ts.map +0 -1
  564. package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverAccordion.d.ts +0 -8
  565. package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverAccordion.d.ts.map +0 -1
  566. package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverBreakout.d.ts +0 -2
  567. package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulRiverBreakout.d.ts.map +0 -1
  568. package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulTestimonials.d.ts +0 -8
  569. package/esm/recipes/FlexTemplate/FlexSection/components/ContentfulTestimonials.d.ts.map +0 -1
  570. package/esm/recipes/FlexTemplate/FlexSection/components/FlexSectionTestimonials.d.ts +0 -8
  571. package/esm/recipes/FlexTemplate/FlexSection/components/FlexSectionTestimonials.d.ts.map +0 -1
  572. package/esm/recipes/FlexTemplate/FlexSection/components/index.d.ts +0 -6
  573. package/esm/recipes/FlexTemplate/FlexSection/components/index.d.ts.map +0 -1
  574. package/esm/recipes/FlexTemplate/FlexSection/index.d.ts +0 -2
  575. package/esm/recipes/FlexTemplate/FlexSection/index.d.ts.map +0 -1
  576. package/esm/recipes/FlexTemplate/FlexTemplate.d.ts +0 -7
  577. package/esm/recipes/FlexTemplate/FlexTemplate.d.ts.map +0 -1
  578. package/esm/recipes/FlexTemplate/FlexTemplate.types.d.ts +0 -318
  579. package/esm/recipes/FlexTemplate/FlexTemplate.types.d.ts.map +0 -1
  580. package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/FlexTemplateTrailingSection.d.ts +0 -6
  581. package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/FlexTemplateTrailingSection.d.ts.map +0 -1
  582. package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/index.d.ts +0 -3
  583. package/esm/recipes/FlexTemplate/FlexTemplateTrailingSection/index.d.ts.map +0 -1
  584. package/esm/recipes/FlexTemplate/fixtures/content.d.ts +0 -2
  585. package/esm/recipes/FlexTemplate/fixtures/content.d.ts.map +0 -1
  586. package/esm/recipes/FlexTemplate/index.d.ts +0 -4
  587. package/esm/recipes/FlexTemplate/index.d.ts.map +0 -1
  588. package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.content.d.ts +0 -68
  589. package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.content.d.ts.map +0 -1
  590. package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.d.ts +0 -7
  591. package/esm/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.d.ts.map +0 -1
  592. package/esm/recipes/Flexsuite/Category/index.d.ts +0 -2
  593. package/esm/recipes/Flexsuite/Category/index.d.ts.map +0 -1
  594. package/esm/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.content.d.ts +0 -49
  595. package/esm/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.content.d.ts.map +0 -1
  596. package/esm/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.d.ts +0 -7
  597. package/esm/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.d.ts.map +0 -1
  598. package/esm/recipes/Flexsuite/Details/index.d.ts +0 -4
  599. package/esm/recipes/Flexsuite/Details/index.d.ts.map +0 -1
  600. package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.content.d.ts +0 -101
  601. package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.content.d.ts.map +0 -1
  602. package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.d.ts +0 -7
  603. package/esm/recipes/Flexsuite/Overview/FlexSuiteAIOverview.d.ts.map +0 -1
  604. package/esm/recipes/Flexsuite/Overview/FlexSuiteOverview.content.d.ts +0 -5
  605. package/esm/recipes/Flexsuite/Overview/FlexSuiteOverview.content.d.ts.map +0 -1
  606. package/esm/recipes/Flexsuite/Overview/index.d.ts +0 -4
  607. package/esm/recipes/Flexsuite/Overview/index.d.ts.map +0 -1
  608. package/esm/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts +0 -16
  609. package/esm/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts.map +0 -1
  610. package/esm/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts +0 -33
  611. package/esm/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts.map +0 -1
  612. package/esm/recipes/SolutionTemplates/SolutionPage/index.d.ts +0 -2
  613. package/esm/recipes/SolutionTemplates/SolutionPage/index.d.ts.map +0 -1
  614. package/esm/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts +0 -17
  615. package/esm/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts.map +0 -1
  616. package/esm/recipes/SolutionTemplates/helpers.d.ts +0 -127
  617. package/esm/recipes/SolutionTemplates/helpers.d.ts.map +0 -1
  618. package/esm/recipes/SolutionTemplates/index.d.ts +0 -1
  619. package/esm/recipes/SolutionTemplates/index.d.ts.map +0 -1
  620. package/esm/recipes/seo/Article/Article.d.ts +0 -14
  621. package/esm/recipes/seo/Article/Article.d.ts.map +0 -1
  622. package/esm/recipes/seo/Article/ArticleToC.d.ts +0 -4
  623. package/esm/recipes/seo/Article/ArticleToC.d.ts.map +0 -1
  624. package/esm/recipes/seo/Article/article-shared.d.ts +0 -5
  625. package/esm/recipes/seo/Article/article-shared.d.ts.map +0 -1
  626. package/esm/recipes/seo/Article/index.d.ts +0 -2
  627. package/esm/recipes/seo/Article/index.d.ts.map +0 -1
  628. package/esm/recipes/seo/Category/CategoryPage.d.ts +0 -9
  629. package/esm/recipes/seo/Category/CategoryPage.d.ts.map +0 -1
  630. package/esm/recipes/seo/Category/index.d.ts +0 -2
  631. package/esm/recipes/seo/Category/index.d.ts.map +0 -1
  632. package/esm/recipes/seo/helpers.d.ts +0 -16
  633. package/esm/recipes/seo/helpers.d.ts.map +0 -1
  634. package/esm/recipes/seo/index.d.ts +0 -1
  635. package/esm/recipes/seo/index.d.ts.map +0 -1
  636. package/esm/river/River.figma.d.ts +0 -2
  637. package/esm/river/River.figma.d.ts.map +0 -1
  638. package/lib/Hero/Hero.figma.d.ts +0 -1
  639. package/lib/IDE/fixtures/content.d.ts +0 -6
  640. package/lib/LogoSuite/LogoSuite.figma.d.ts +0 -1
  641. package/lib/LogoSuite/LogoSuite.fixtures.d.ts +0 -1
  642. package/lib/MonaSans/MonaSans.d.ts +0 -10
  643. package/lib/MonaSans/index.d.ts +0 -1
  644. package/lib/PricingOptions/PricingOptions.figma.d.ts +0 -1
  645. package/lib/Tiles/Tiles.fixtures.d.ts +0 -6
  646. package/lib/fixtures/third-party-logos/AzureLogo.d.ts +0 -4
  647. package/lib/fixtures/third-party-logos/JetBrainsLogo.d.ts +0 -4
  648. package/lib/fixtures/third-party-logos/MicrosoftCopilotLogo.d.ts +0 -4
  649. package/lib/fixtures/third-party-logos/MicrosoftLogo.d.ts +0 -4
  650. package/lib/fixtures/third-party-logos/NeoVimLogo.d.ts +0 -4
  651. package/lib/fixtures/third-party-logos/VisualStudioCodeLogo.d.ts +0 -4
  652. package/lib/fixtures/third-party-logos/VisualStudioLogo.d.ts +0 -4
  653. package/lib/index.esm.d.ts +0 -7
  654. package/lib/list/ListItem/index.d.ts +0 -1
  655. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOne.d.ts +0 -12
  656. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/FeaturePreviewLevelOneSideBySide.d.ts +0 -13
  657. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/components/FormExample.d.ts +0 -7
  658. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelOne/index.d.ts +0 -1
  659. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/FeaturePreviewLevelTwo.d.ts +0 -48
  660. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelTwo/index.d.ts +0 -1
  661. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/FeaturePreviewLevelZero.d.ts +0 -16
  662. package/lib/recipes/FeaturePreviewLPs/FeaturePreviewLevelZero/index.d.ts +0 -1
  663. package/lib/recipes/FeaturePreviewLPs/helpers.d.ts +0 -29
  664. package/lib/recipes/FlexTemplate/FlexSection/FlexSection.d.ts +0 -7
  665. package/lib/recipes/FlexTemplate/FlexSection/components/ContentfulRiver.d.ts +0 -1
  666. package/lib/recipes/FlexTemplate/FlexSection/components/ContentfulRiverAccordion.d.ts +0 -7
  667. package/lib/recipes/FlexTemplate/FlexSection/components/ContentfulRiverBreakout.d.ts +0 -1
  668. package/lib/recipes/FlexTemplate/FlexSection/components/ContentfulTestimonials.d.ts +0 -7
  669. package/lib/recipes/FlexTemplate/FlexSection/components/FlexSectionTestimonials.d.ts +0 -7
  670. package/lib/recipes/FlexTemplate/FlexSection/components/index.d.ts +0 -5
  671. package/lib/recipes/FlexTemplate/FlexSection/index.d.ts +0 -1
  672. package/lib/recipes/FlexTemplate/FlexTemplate.d.ts +0 -6
  673. package/lib/recipes/FlexTemplate/FlexTemplate.types.d.ts +0 -317
  674. package/lib/recipes/FlexTemplate/FlexTemplateTrailingSection/FlexTemplateTrailingSection.d.ts +0 -5
  675. package/lib/recipes/FlexTemplate/FlexTemplateTrailingSection/index.d.ts +0 -2
  676. package/lib/recipes/FlexTemplate/fixtures/content.d.ts +0 -1
  677. package/lib/recipes/FlexTemplate/index.d.ts +0 -3
  678. package/lib/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.content.d.ts +0 -67
  679. package/lib/recipes/Flexsuite/Category/FlexSuiteSecurityCategory/FlexSuiteSecurityCategory.d.ts +0 -6
  680. package/lib/recipes/Flexsuite/Category/index.d.ts +0 -1
  681. package/lib/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.content.d.ts +0 -48
  682. package/lib/recipes/Flexsuite/Details/FlexSuiteAIDetailsPlaylist/FlexSuiteAIDetailsPlaylist.d.ts +0 -6
  683. package/lib/recipes/Flexsuite/Details/index.d.ts +0 -3
  684. package/lib/recipes/Flexsuite/Overview/FlexSuiteAIOverview.content.d.ts +0 -100
  685. package/lib/recipes/Flexsuite/Overview/FlexSuiteAIOverview.d.ts +0 -6
  686. package/lib/recipes/Flexsuite/Overview/FlexSuiteOverview.content.d.ts +0 -4
  687. package/lib/recipes/Flexsuite/Overview/index.d.ts +0 -3
  688. package/lib/recipes/SolutionTemplates/CategoryPage/CategoryPage.d.ts +0 -15
  689. package/lib/recipes/SolutionTemplates/SolutionPage/SolutionPage.d.ts +0 -32
  690. package/lib/recipes/SolutionTemplates/SolutionPage/index.d.ts +0 -1
  691. package/lib/recipes/SolutionTemplates/SolutionsOverview/SolutionsOverview.d.ts +0 -16
  692. package/lib/recipes/SolutionTemplates/helpers.d.ts +0 -126
  693. package/lib/recipes/SolutionTemplates/index.d.ts +0 -0
  694. package/lib/recipes/seo/Article/Article.d.ts +0 -13
  695. package/lib/recipes/seo/Article/ArticleToC.d.ts +0 -3
  696. package/lib/recipes/seo/Article/article-shared.d.ts +0 -4
  697. package/lib/recipes/seo/Article/index.d.ts +0 -1
  698. package/lib/recipes/seo/Category/CategoryPage.d.ts +0 -8
  699. package/lib/recipes/seo/Category/index.d.ts +0 -1
  700. package/lib/recipes/seo/helpers.d.ts +0 -15
  701. package/lib/recipes/seo/index.d.ts +0 -0
  702. package/lib/river/River.figma.d.ts +0 -1
@@ -0,0 +1,125 @@
1
+ ---
2
+ title: Text
3
+ description: Use the text component create a range of body text
4
+ keywords: ['body', 'content', 'copy', 'paragraph']
5
+ figma: 'https://www.figma.com/file/BJ95AjraesmRCWsKA013GS/Primer-Brand?node-id=354%3A9513'
6
+ source: https://github.com/primer/brand/blob/main/packages/react/src/Text/Text.tsx
7
+ storybook: '/brand/storybook/?path=/story/components-text--playground'
8
+ ---
9
+
10
+ ```js
11
+ import {Text} from '@primer/react-brand'
12
+ ```
13
+
14
+ ## Examples
15
+
16
+ ### Default
17
+
18
+ ```jsx
19
+ <Text>With GitHub Copilot, you’re always in charge.</Text>
20
+ ```
21
+
22
+ ### Scale
23
+
24
+ ```jsx
25
+ <div>
26
+ {TextSizes.map(size => (
27
+ <Text key={size} size={size} as="p">
28
+ Text {size}
29
+ </Text>
30
+ ))}
31
+ </div>
32
+ ```
33
+
34
+ ### Variants
35
+
36
+ ```jsx
37
+ <div>
38
+ <Text as="p">With GitHub Copilot, you’re always in charge.</Text>
39
+ <Text as="p" variant="muted">
40
+ With GitHub Copilot, you’re always in charge.
41
+ </Text>
42
+ </div>
43
+ ```
44
+
45
+ ### Alignment
46
+
47
+ Use `align` to set the horizontal alignment of content inside a block element.
48
+
49
+ ```jsx
50
+ <Stack direction="vertical">
51
+ <Text as="p" align="start">
52
+ Start
53
+ </Text>
54
+ <Text as="p" align="center">
55
+ Center
56
+ </Text>
57
+ <Text as="p" align="end">
58
+ End
59
+ </Text>
60
+ </Stack>
61
+ ```
62
+
63
+ ### Polymorphism
64
+
65
+ The `Text` component can render as a `span`, `p` or `div` HTML element.
66
+
67
+ ```jsx
68
+ <Text as="p">With GitHub Copilot, you’re always in charge.</Text>
69
+ ```
70
+
71
+ ### Weight
72
+
73
+ The recommended text weight is automatically applied through Text based on its position on the type scale.
74
+ Use the `weight` prop to adjust the default visual appearance if required.
75
+
76
+ ```jsx
77
+ <div>
78
+ <Text as="p" weight="heavy">
79
+ heavy
80
+ </Text>
81
+ <Text as="p" weight="extrabold">
82
+ extrabold
83
+ </Text>
84
+ <Text as="p" weight="bold">
85
+ bold
86
+ </Text>
87
+ <Text as="p" weight="semibold">
88
+ semibold
89
+ </Text>
90
+ <Text as="p" weight="medium">
91
+ medium
92
+ </Text>
93
+ <Text as="p" weight="regular">
94
+ regular
95
+ </Text>
96
+ <Text as="p" weight="light">
97
+ light
98
+ </Text>
99
+
100
+ {/* Responsive */}
101
+ <br />
102
+ <br />
103
+ <Text
104
+ as="p"
105
+ weight={{
106
+ narrow: 'heavy',
107
+ regular: 'semibold',
108
+ wide: 'light',
109
+ }}
110
+ >
111
+ Responsive
112
+ </Text>
113
+ </div>
114
+ ```
115
+
116
+ ## Component props
117
+
118
+ ### Text
119
+
120
+ | Name | Type | Default | Description |
121
+ | :-------- | :------------------------------------- | :------------------: | :-------------------------------------- |
122
+ | `as` | `TextTags` | `defaultTextTag` | Applies the underlying HTML element |
123
+ | `size` | `TextSizes` | `defaultTextSize` | Specify the text size |
124
+ | `variant` | `TextVariants` | `defaultTextVariant` | Specify alternative text appearance |
125
+ | `weight` | `TextWeights \| 'ResponsiveWeightMap'` | | Override the default visual text weight |
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Typography
3
+ ---
4
+
5
+ ## In this section
6
+
7
+ - [Heading](Heading/react.md): Use the heading component to render title or subtitle text.
8
+ - [Text](Text/react.md): Use the text component create a range of body text
@@ -1 +1 @@
1
- .Primer_Brand__Footnotes-module__Footnotes___Nejyn{padding-block:var(--base-size-80);gap:var(--base-size-24);flex-direction:column;display:flex}.Primer_Brand__Footnotes-module__Footnotes--variant-citations___CDvXV{font-family:var(--brand-body-fontFamily);font-weight:var(--brand-text-weight-100);font-size:var(--brand-text-size-100);line-height:var(--brand-text-lineHeight-100);letter-spacing:var(--brand-text-letterSpacing-100);color:var(--brand-color-text-muted);margin:0;padding-inline-start:var(--base-size-16)}.Primer_Brand__Footnotes-module__Footnotes--variant-citations___CDvXV .Primer_Brand__Footnotes-module__FootnotesItem___IfXmq{padding-inline-start:var(--base-size-12)}.Primer_Brand__Footnotes-module__FootnotesItem___IfXmq{scroll-margin-top:80px}.Primer_Brand__Footnotes-module__FootnotesItem__citationIcon___gBAZT{margin-inline-start:var(--base-size-4);transform:scaleY(-1)}.Primer_Brand__Footnotes-module__FootnotesItem__citationText___4Rjij{gap:var(--base-size-4);display:inline}
1
+ .Primer_Brand__Footnotes-module__Footnotes___Nejyn{padding-block:var(--base-size-80);gap:var(--base-size-12);flex-direction:column;display:flex}.Primer_Brand__Footnotes-module__Footnotes--variant-citations___CDvXV{font-family:var(--brand-body-fontFamily);font-weight:var(--brand-text-weight-100);font-size:var(--brand-text-size-100);line-height:var(--brand-text-lineHeight-100);letter-spacing:var(--brand-text-letterSpacing-100);color:var(--brand-color-text-muted);margin:0;padding-inline-start:var(--base-size-16)}.Primer_Brand__Footnotes-module__Footnotes--variant-citations___CDvXV .Primer_Brand__Footnotes-module__FootnotesItem___IfXmq{padding-inline-start:var(--base-size-12)}.Primer_Brand__Footnotes-module__FootnotesItem___IfXmq{scroll-margin-top:80px}.Primer_Brand__Footnotes-module__FootnotesItem__citationIcon___gBAZT{margin-inline-start:var(--base-size-4);transform:scaleY(-1)}.Primer_Brand__Footnotes-module__FootnotesItem__citationText___4Rjij{gap:var(--base-size-4);display:inline}
@@ -1,4 +1,4 @@
1
- import './Footnotes.module-Du0yaz7E.css';var e = {
1
+ import './Footnotes.module-DG9Vx76y.css';var e = {
2
2
  Footnotes: "Primer_Brand__Footnotes-module__Footnotes___Nejyn",
3
3
  "Footnotes--variant-citations": "Primer_Brand__Footnotes-module__Footnotes--variant-citations___CDvXV",
4
4
  FootnotesItem: "Primer_Brand__Footnotes-module__FootnotesItem___IfXmq",
@@ -1 +1 @@
1
- {"version":3,"file":"Footnotes.module.js","names":[],"sources":["../../src/Footnotes/Footnotes.module.css"],"sourcesContent":[".Footnotes {\n padding-block: var(--base-size-80);\n display: flex;\n flex-direction: column;\n gap: var(--base-size-24);\n}\n\n.Footnotes--variant-citations {\n margin: 0;\n padding-inline-start: var(--base-size-16);\n font-family: var(--brand-body-fontFamily);\n font-weight: var(--brand-text-weight-100);\n font-size: var(--brand-text-size-100);\n line-height: var(--brand-text-lineHeight-100);\n letter-spacing: var(--brand-text-letterSpacing-100);\n color: var(--brand-color-text-muted);\n}\n\n.Footnotes--variant-citations .FootnotesItem {\n padding-inline-start: var(--base-size-12);\n}\n\n.FootnotesItem {\n scroll-margin-top: 80px;\n}\n\n.FootnotesItem__citationIcon {\n transform: scaleY(-1);\n margin-inline-start: var(--base-size-4);\n}\n\n.FootnotesItem__citationText {\n display: inline;\n gap: var(--base-size-4);\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Footnotes.module.js","names":[],"sources":["../../src/Footnotes/Footnotes.module.css"],"sourcesContent":[".Footnotes {\n padding-block: var(--base-size-80);\n display: flex;\n flex-direction: column;\n gap: var(--base-size-12);\n}\n\n.Footnotes--variant-citations {\n margin: 0;\n padding-inline-start: var(--base-size-16);\n font-family: var(--brand-body-fontFamily);\n font-weight: var(--brand-text-weight-100);\n font-size: var(--brand-text-size-100);\n line-height: var(--brand-text-lineHeight-100);\n letter-spacing: var(--brand-text-letterSpacing-100);\n color: var(--brand-color-text-muted);\n}\n\n.Footnotes--variant-citations .FootnotesItem {\n padding-inline-start: var(--base-size-12);\n}\n\n.FootnotesItem {\n scroll-margin-top: 80px;\n}\n\n.FootnotesItem__citationIcon {\n transform: scaleY(-1);\n margin-inline-start: var(--base-size-4);\n}\n\n.FootnotesItem__citationText {\n display: inline;\n gap: var(--base-size-4);\n}\n"],"mappings":""}
@@ -37,7 +37,14 @@ export declare const classMap: {
37
37
  h6: "6";
38
38
  };
39
39
  export type HeadingProps = {
40
+ /** Semantic heading level (`h1`–`h6`) only. Use `size` to apply the correct visual size. */
40
41
  as?: (typeof HeadingTags)[number];
42
+ /**
43
+ * Controls the visual size, independent of `as`. Should be used whenever as prop is used, as the defaults may not be ideal for all use-cases.
44
+ *
45
+ * @example
46
+ * <Heading as="h2" size="4">This h2 will appear visually identical to an h4</Heading>
47
+ */
41
48
  size?: (typeof HeadingSizes)[number];
42
49
  weight?: HeadingWeightVariants | ResponsiveWeightMap;
43
50
  stretch?: HeadingStretchVariants | ResponsiveStretchMap;
@@ -45,6 +52,9 @@ export type HeadingProps = {
45
52
  font?: HeadingFontVariants;
46
53
  textWrap?: HeadingTextWrapVariants;
47
54
  } & React.HTMLAttributes<HTMLHeadingElement> & BaseProps<HTMLHeadingElement>;
55
+ /**
56
+ * Use the heading component to render titles or subtitle text.
57
+ */
48
58
  export declare const Heading: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<HeadingProps>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
49
59
  export {};
50
60
  //# sourceMappingURL=Heading.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../src/Heading/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAA;AAGnE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAGnD,eAAO,MAAM,YAAY,uFAAwF,CAAA;AACjH,eAAO,MAAM,WAAW,+CAAgD,CAAA;AAExE,eAAO,MAAM,cAAc,gGASjB,CAAA;AACV,eAAO,MAAM,cAAc,8CAA+C,CAAA;AAC1E,eAAO,MAAM,oBAAoB,0CAA2C,CAAA;AAC5E,eAAO,MAAM,mBAAmB,mDAAoD,CAAA;AAEpF,eAAO,MAAM,iBAAiB,MAAiB,CAAA;AAC/C,eAAO,MAAM,kBAAkB,aAAyB,CAAA;AAExD,KAAK,qBAAqB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAC5D,KAAK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AA4B,CAAA;CACpC,CAAA;AAED,KAAK,mBAAmB,GAAG;IACzB,MAAM,CAAC,EAAE,qBAAqB,CAAA;IAC9B,OAAO,CAAC,EAAE,qBAAqB,CAAA;IAC/B,IAAI,CAAC,EAAE,qBAAqB,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;CAOpB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,4FAA4F;IAC5F,EAAE,CAAC,EAAE,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;IACjC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA;IACpC,MAAM,CAAC,EAAE,qBAAqB,GAAG,mBAAmB,CAAA;IACpD,OAAO,CAAC,EAAE,sBAAsB,GAAG,oBAAoB,CAAA;IACvD,aAAa,CAAC,EAAE,4BAA4B,GAAG,0BAA0B,CAAA;IACzE,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAC1B,QAAQ,CAAC,EAAE,uBAAuB,CAAA;CACnC,GAAG,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,GAC1C,SAAS,CAAC,kBAAkB,CAAC,CAAA;AAE/B;;GAEG;AACH,eAAO,MAAM,OAAO,+HA4DnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.js","names":[],"sources":["../../src/Heading/Heading.tsx"],"sourcesContent":["import React, {PropsWithChildren, forwardRef, useMemo} from 'react'\nimport {clsx} from 'clsx'\nimport styles from './Heading.module.css'\nimport type {BaseProps} from '../component-helpers'\nimport {useAnimation} from '../animation'\n\nexport const HeadingSizes = ['display', '1', '2', '3', '4', '5', '6', 'subhead-large', 'subhead-medium'] as const\nexport const HeadingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] as const\n\nexport const HeadingWeights = [\n 'heavy',\n 'extrabold',\n 'bold',\n 'semibold',\n 'medium',\n 'normal',\n 'light',\n 'extralight',\n] as const\nexport const HeadingStretch = ['condensed', 'normal', 'expanded'] as const\nexport const HeadingLetterSpacing = ['condensed', 'normal', 'none'] as const\nexport const HeadingFontVariants = ['mona-sans', 'hubot-sans', 'monospace'] as const\n\nexport const defaultHeadingTag = HeadingTags[1]\nexport const defaultHeadingFont = HeadingFontVariants[0]\n\ntype HeadingWeightVariants = (typeof HeadingWeights)[number]\ntype HeadingStretchVariants = (typeof HeadingStretch)[number]\ntype HeadingLetterSpacingVariants = (typeof HeadingLetterSpacing)[number]\ntype HeadingFontVariants = (typeof HeadingFontVariants)[number]\ntype HeadingTextWrapVariants = 'wrap' | 'balance'\n\ntype ResponsiveStretchMap = {\n narrow?: HeadingStretchVariants\n regular?: HeadingStretchVariants\n wide?: HeadingStretchVariants\n}\n\ntype ResponsiveLetterSpacingMap = {\n narrow?: HeadingLetterSpacingVariants\n regular?: HeadingLetterSpacingVariants\n wide?: HeadingLetterSpacingVariants\n}\n\ntype ResponsiveWeightMap = {\n narrow?: HeadingWeightVariants\n regular?: HeadingWeightVariants\n wide?: HeadingWeightVariants\n}\n\nexport const classMap = {\n h1: HeadingSizes[1],\n h2: HeadingSizes[2],\n h3: HeadingSizes[3],\n h4: HeadingSizes[4],\n h5: HeadingSizes[5],\n h6: HeadingSizes[6],\n}\n\nexport type HeadingProps = {\n as?: (typeof HeadingTags)[number]\n size?: (typeof HeadingSizes)[number]\n weight?: HeadingWeightVariants | ResponsiveWeightMap\n stretch?: HeadingStretchVariants | ResponsiveStretchMap\n letterSpacing?: HeadingLetterSpacingVariants | ResponsiveLetterSpacingMap\n font?: HeadingFontVariants\n textWrap?: HeadingTextWrapVariants\n} & React.HTMLAttributes<HTMLHeadingElement> &\n BaseProps<HTMLHeadingElement>\n\nexport const Heading = forwardRef<HTMLHeadingElement, PropsWithChildren<HeadingProps>>(\n (\n {\n animate,\n className,\n children,\n as: HeadingComponent = defaultHeadingTag,\n size,\n letterSpacing,\n weight,\n stretch,\n style,\n font = 'mona-sans',\n textWrap = 'balance',\n ...rest\n },\n ref,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const buildClass = (type: string, value) => {\n if (!value) return null\n return typeof value === 'string'\n ? styles[`Heading--${type}-${value}`]\n : Object.keys(value)\n .map(viewport => {\n return styles[`Heading-${viewport}--${type}-${value[viewport]}`]\n })\n .join(' ')\n }\n\n const weightClass = useMemo(() => buildClass('weight', weight), [weight])\n const stretchClass = useMemo(() => buildClass('stretch', stretch), [stretch])\n const letterSpacingClass = useMemo(() => buildClass('letter-spacing', letterSpacing), [letterSpacing])\n\n const headingClassNames = clsx(\n animationClasses,\n styles.Heading,\n styles[`Heading-font--${font}`],\n !size && styles[`Heading--${classMap[HeadingComponent]}`],\n size && styles[`Heading--${size}`],\n styles[`Heading--textWrap-${textWrap}`],\n weight && weightClass,\n stretch && stretchClass,\n letterSpacingClass && letterSpacingClass,\n className,\n )\n\n if (!HeadingTags.includes(HeadingComponent)) {\n // eslint-disable-next-line no-console\n console.error(`Heading: 'as' prop must be one of ${HeadingTags.join(', ')}`)\n return null\n }\n\n return (\n <HeadingComponent ref={ref} className={headingClassNames} style={{...animationInlineStyles, ...style}} {...rest}>\n {children}\n </HeadingComponent>\n )\n },\n)\n"],"mappings":";;;;;;AAMA,IAAa,IAAe;CAAC;CAAW;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAiB;CAAiB,EAC3F,IAAc;CAAC;CAAM;CAAM;CAAM;CAAM;CAAM;CAAK,EAElD,IAAiB;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,EACY,IAAiB;CAAC;CAAa;CAAU;CAAW,EACpD,IAAuB;CAAC;CAAa;CAAU;CAAO,EACtD,IAAsB;CAAC;CAAa;CAAc;CAAY,EAE9D,IAAoB,EAAY,IAChC,IAAqB,EAAoB,IA0BzC,IAAW;CACtB,IAAI,EAAa;CACjB,IAAI,EAAa;CACjB,IAAI,EAAa;CACjB,IAAI,EAAa;CACjB,IAAI,EAAa;CACjB,IAAI,EAAa;CAClB,EAaY,IAAU,GAEnB,EACE,YACA,cACA,aACA,IAAI,IAAmB,GACvB,SACA,kBACA,WACA,YACA,UACA,UAAO,aACP,cAAW,WACX,GAAG,KAEL,MACG;CACH,IAAM,EAAC,SAAS,GAAkB,QAAQ,MAAyB,EAAa,EAAQ,EAElF,KAAc,GAAc,MAC3B,IACE,OAAO,KAAU,WACpB,EAAO,YAAY,EAAK,GAAG,OAC3B,OAAO,KAAK,EAAM,CACf,KAAI,MACI,EAAO,WAAW,EAAS,IAAI,EAAK,GAAG,EAAM,MACpD,CACD,KAAK,IAAI,GAPG,MAUf,IAAc,QAAc,EAAW,UAAU,EAAO,EAAE,CAAC,EAAO,CAAC,EACnE,IAAe,QAAc,EAAW,WAAW,EAAQ,EAAE,CAAC,EAAQ,CAAC,EACvE,IAAqB,QAAc,EAAW,kBAAkB,EAAc,EAAE,CAAC,EAAc,CAAC,EAEhG,IAAoB,EACxB,GACA,EAAO,SACP,EAAO,iBAAiB,MACxB,CAAC,KAAQ,EAAO,YAAY,EAAS,OACrC,KAAQ,EAAO,YAAY,MAC3B,EAAO,qBAAqB,MAC5B,KAAU,GACV,KAAW,GACX,KAAsB,GACtB,EACD;AAQD,QANK,EAAY,SAAS,EAAiB,GAOzC,kBAAC,GAAD;EAAuB;EAAK,WAAW;EAAmB,OAAO;GAAC,GAAG;GAAuB,GAAG;GAAM;EAAE,GAAI;EACxG;EACgB,CAAA,IAPnB,QAAQ,MAAM,qCAAqC,EAAY,KAAK,KAAK,GAAG,EACrE;EASZ"}
1
+ {"version":3,"file":"Heading.js","names":[],"sources":["../../src/Heading/Heading.tsx"],"sourcesContent":["import React, {PropsWithChildren, forwardRef, useMemo} from 'react'\nimport {clsx} from 'clsx'\nimport styles from './Heading.module.css'\nimport type {BaseProps} from '../component-helpers'\nimport {useAnimation} from '../animation'\n\nexport const HeadingSizes = ['display', '1', '2', '3', '4', '5', '6', 'subhead-large', 'subhead-medium'] as const\nexport const HeadingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] as const\n\nexport const HeadingWeights = [\n 'heavy',\n 'extrabold',\n 'bold',\n 'semibold',\n 'medium',\n 'normal',\n 'light',\n 'extralight',\n] as const\nexport const HeadingStretch = ['condensed', 'normal', 'expanded'] as const\nexport const HeadingLetterSpacing = ['condensed', 'normal', 'none'] as const\nexport const HeadingFontVariants = ['mona-sans', 'hubot-sans', 'monospace'] as const\n\nexport const defaultHeadingTag = HeadingTags[1]\nexport const defaultHeadingFont = HeadingFontVariants[0]\n\ntype HeadingWeightVariants = (typeof HeadingWeights)[number]\ntype HeadingStretchVariants = (typeof HeadingStretch)[number]\ntype HeadingLetterSpacingVariants = (typeof HeadingLetterSpacing)[number]\ntype HeadingFontVariants = (typeof HeadingFontVariants)[number]\ntype HeadingTextWrapVariants = 'wrap' | 'balance'\n\ntype ResponsiveStretchMap = {\n narrow?: HeadingStretchVariants\n regular?: HeadingStretchVariants\n wide?: HeadingStretchVariants\n}\n\ntype ResponsiveLetterSpacingMap = {\n narrow?: HeadingLetterSpacingVariants\n regular?: HeadingLetterSpacingVariants\n wide?: HeadingLetterSpacingVariants\n}\n\ntype ResponsiveWeightMap = {\n narrow?: HeadingWeightVariants\n regular?: HeadingWeightVariants\n wide?: HeadingWeightVariants\n}\n\nexport const classMap = {\n h1: HeadingSizes[1],\n h2: HeadingSizes[2],\n h3: HeadingSizes[3],\n h4: HeadingSizes[4],\n h5: HeadingSizes[5],\n h6: HeadingSizes[6],\n}\n\nexport type HeadingProps = {\n /** Semantic heading level (`h1`–`h6`) only. Use `size` to apply the correct visual size. */\n as?: (typeof HeadingTags)[number]\n /**\n * Controls the visual size, independent of `as`. Should be used whenever as prop is used, as the defaults may not be ideal for all use-cases.\n *\n * @example\n * <Heading as=\"h2\" size=\"4\">This h2 will appear visually identical to an h4</Heading>\n */\n size?: (typeof HeadingSizes)[number]\n weight?: HeadingWeightVariants | ResponsiveWeightMap\n stretch?: HeadingStretchVariants | ResponsiveStretchMap\n letterSpacing?: HeadingLetterSpacingVariants | ResponsiveLetterSpacingMap\n font?: HeadingFontVariants\n textWrap?: HeadingTextWrapVariants\n} & React.HTMLAttributes<HTMLHeadingElement> &\n BaseProps<HTMLHeadingElement>\n\n/**\n * Use the heading component to render titles or subtitle text.\n */\nexport const Heading = forwardRef<HTMLHeadingElement, PropsWithChildren<HeadingProps>>(\n (\n {\n animate,\n className,\n children,\n as: HeadingComponent = defaultHeadingTag,\n size,\n letterSpacing,\n weight,\n stretch,\n style,\n font = 'mona-sans',\n textWrap = 'balance',\n ...rest\n },\n ref,\n ) => {\n const {classes: animationClasses, styles: animationInlineStyles} = useAnimation(animate)\n\n const buildClass = (type: string, value) => {\n if (!value) return null\n return typeof value === 'string'\n ? styles[`Heading--${type}-${value}`]\n : Object.keys(value)\n .map(viewport => {\n return styles[`Heading-${viewport}--${type}-${value[viewport]}`]\n })\n .join(' ')\n }\n\n const weightClass = useMemo(() => buildClass('weight', weight), [weight])\n const stretchClass = useMemo(() => buildClass('stretch', stretch), [stretch])\n const letterSpacingClass = useMemo(() => buildClass('letter-spacing', letterSpacing), [letterSpacing])\n\n const headingClassNames = clsx(\n animationClasses,\n styles.Heading,\n styles[`Heading-font--${font}`],\n !size && styles[`Heading--${classMap[HeadingComponent]}`],\n size && styles[`Heading--${size}`],\n styles[`Heading--textWrap-${textWrap}`],\n weight && weightClass,\n stretch && stretchClass,\n letterSpacingClass && letterSpacingClass,\n className,\n )\n\n if (!HeadingTags.includes(HeadingComponent)) {\n // eslint-disable-next-line no-console\n console.error(`Heading: 'as' prop must be one of ${HeadingTags.join(', ')}`)\n return null\n }\n\n return (\n <HeadingComponent ref={ref} className={headingClassNames} style={{...animationInlineStyles, ...style}} {...rest}>\n {children}\n </HeadingComponent>\n )\n },\n)\n"],"mappings":";;;;;;AAMA,IAAa,IAAe;CAAC;CAAW;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAiB;CAAiB,EAC3F,IAAc;CAAC;CAAM;C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;EACgB,CAAA,IAPnB,QAAQ,MAAM,qCAAqC,EAAY,KAAK,KAAK,GAAG,EACrE;EASZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../src/Hero/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAA;AAK7E,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAInD,OAAO,KAAK,EAA2B,SAAS,EAAE,WAAW,EAAC,MAAM,eAAe,CAAA;AAanF;;GAEG;AACH,OAAO,2FAA2F,CAAA;AAkBlG,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IACzC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC1D,oBAAoB,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC3C,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAsQD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUf,CAAA"}
1
+ {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../src/Hero/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAA;AAK7E,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAInD,OAAO,KAAK,EAA2B,SAAS,EAAE,WAAW,EAAC,MAAM,eAAe,CAAA;AAanF;;GAEG;AACH,OAAO,2FAA2F,CAAA;AAkBlG,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IACzC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC1D,oBAAoB,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC3C,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AA8QD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUf,CAAA"}
package/esm/Hero/Hero.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import e from "../node_modules/clsx/dist/clsx.js";
2
2
  import { Grid as t } from "../Grid/Grid.js";
3
- import { AnimationProvider as n } from "../animation/AnimationProvider/AnimationProvider.js";
4
- import { Stack as r } from "../Stack/Stack.js";
5
- import { Box as ee } from "../Box/Box.js";
6
- import { HeroContext as i, heroMediaInlinePositions as a } from "./HeroContext.js";
7
- import o from "./Hero.module.js";
8
- import { HeroLabel as s } from "./sub-components/HeroLabel.js";
9
- import { HeroHeading as c } from "./sub-components/HeroHeading.js";
10
- import { HeroDescription as l } from "./sub-components/HeroDescription.js";
11
- import { HeroImage as u } from "./sub-components/HeroImage.js";
12
- import { HeroVideo as d } from "./sub-components/HeroVideo.js";
13
- import { HeroEyebrow as f } from "./sub-components/HeroEyebrow.js";
14
- import { HeroPrimaryAction as p } from "./sub-components/HeroPrimaryAction.js";
15
- import { HeroSecondaryAction as m } from "./sub-components/HeroSecondaryAction.js";
3
+ import { AnimationProvider as ee } from "../animation/AnimationProvider/AnimationProvider.js";
4
+ import { Stack as n } from "../Stack/Stack.js";
5
+ import { Box as te } from "../Box/Box.js";
6
+ import { HeroContext as ne, heroMediaInlinePositions as r } from "./HeroContext.js";
7
+ import i from "./Hero.module.js";
8
+ import { HeroLabel as a } from "./sub-components/HeroLabel.js";
9
+ import { HeroHeading as o } from "./sub-components/HeroHeading.js";
10
+ import { HeroDescription as s } from "./sub-components/HeroDescription.js";
11
+ import { HeroImage as c } from "./sub-components/HeroImage.js";
12
+ import { HeroVideo as l } from "./sub-components/HeroVideo.js";
13
+ import { HeroEyebrow as u } from "./sub-components/HeroEyebrow.js";
14
+ import { HeroPrimaryAction as d } from "./sub-components/HeroPrimaryAction.js";
15
+ import { HeroSecondaryAction as f } from "./sub-components/HeroSecondaryAction.js";
16
16
  import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/hero/base-BDi-g8vJ.css';/* empty css */
17
- import h, { Fragment as te, forwardRef as g, useMemo as ne } from "react";
17
+ import p, { Fragment as m, forwardRef as h, useMemo as g } from "react";
18
18
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
19
19
  //#region src/Hero/Hero.tsx
20
20
  var b = {
@@ -28,9 +28,9 @@ var b = {
28
28
  get imageWrapper() {
29
29
  return `${this.root}-imageWrapper`;
30
30
  }
31
- }, x = g(({ className: g, align: x = "start", children: S, imageContainerClassName: C, imageContainerStyle: w, imageContainerRef: T, imageBackgroundColor: E, variant: D = "default", trailingComponent: O, enableAnimation: k = !1, "data-testid": A, ...j }, re) => {
32
- let { HeroActions: M, HeroChildren: N, HeroImageChild: P, HeroVideoChild: F, HeroHeaderChildren: ie, HeroDescriptionChild: I } = ne(() => {
33
- let e = h.Children.toArray(S).reduce((e, t) => (h.isValidElement(t) && (t.type === p || t.type === m ? e.HeroActions.push(t) : t.type === u ? e.HeroImageChild = t : t.type === d ? e.HeroVideoChild = t : (e.HeroChildren.push(t), t.type === s || t.type === f || t.type === c ? e.HeroHeaderChildren.push(t) : t.type === l && (e.HeroDescriptionChild = t))), e), {
31
+ }, x = h(({ className: h, align: x = "start", children: S, imageContainerClassName: C, imageContainerStyle: w, imageContainerRef: T, imageBackgroundColor: E, variant: D = "default", trailingComponent: O, enableAnimation: k = !1, "data-testid": A, ...j }, M) => {
32
+ let { HeroActions: N, HeroChildren: re, HeroImageChild: P, HeroVideoChild: F, HeroHeaderChildren: I, HeroDescriptionChild: L } = g(() => {
33
+ let e = p.Children.toArray(S).reduce((e, t) => (p.isValidElement(t) && (t.type === d || t.type === f ? e.HeroActions.push(t) : t.type === c ? e.HeroImageChild = t : t.type === l ? e.HeroVideoChild = t : (e.HeroChildren.push(t), t.type === a || t.type === u || t.type === o ? e.HeroHeaderChildren.push(t) : t.type === s && (e.HeroDescriptionChild = t))), e), {
34
34
  HeroActions: [],
35
35
  HeroChildren: [],
36
36
  HeroImageChild: void 0,
@@ -39,69 +39,71 @@ var b = {
39
39
  HeroDescriptionChild: void 0
40
40
  });
41
41
  return e.HeroImageChild && e.HeroVideoChild && (e.HeroVideoChild = void 0), e;
42
- }, [S]), L = P?.props.position || F?.props.position, R = D === "gridline-expressive" && L?.startsWith("inline-") ? (process.env.NODE_ENV !== "production" && console.warn(`Hero: "gridline-expressive" variant does not support "${L}" position. Defaulting to "block-end".`), "block-end") : L || "block-end", z = P?.props.enableBorder ?? F?.props.enableBorder ?? !0, B = a.includes(R), V = B ? R : void 0, H = P || F, U = D === "gridline", W = D === "gridline-expressive", G = R === "block-end" || R === "block-end-padded", K = R === "block-end-padded", q = (U || W) && k ? n : te, J = (U || W) && k ? {
42
+ }, [S]), R = P?.props.position || F?.props.position, z = D === "gridline-expressive" && R?.startsWith("inline-") ? (process.env.NODE_ENV !== "production" && console.warn(`Hero: "gridline-expressive" variant does not support "${R}" position. Defaulting to "block-end".`), "block-end") : R || "block-end", ie = P?.props.enableBorder ?? F?.props.enableBorder ?? !0, B = r.includes(z), V = B ? z : void 0, H = P || F, U = D === "gridline", W = D === "gridline-expressive", G = z === "block-end" || z === "block-end-padded", K = z === "block-end-padded", q = W && x === "center", J = q ? "start" : x;
43
+ q && (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test") && console.warn("Hero: the \"gridline-expressive\" variant does not support align=\"center\"; using \"start\" instead.");
44
+ let ae = (U || W) && k ? ee : m, oe = (U || W) && k ? {
43
45
  autoStaggerChildren: !1,
44
46
  animationTrigger: "immediate"
45
- } : {}, Y = (U || W) && G, X = U && B, ae = P ? o["Hero--layout-image"] : o["Hero--layout-default"], Z = R === "inline-start" || R === "inline-start-padded", Q = (e) => O && /* @__PURE__ */ v(ee, {
47
+ } : {}, Y = (U || W) && G, X = U && B, se = P ? i["Hero--layout-image"] : i["Hero--layout-default"], Z = z === "inline-start" || z === "inline-start-padded", Q = (e) => O && /* @__PURE__ */ v(te, {
46
48
  animate: e ? {
47
49
  variant: "slide-in-up",
48
50
  delay: 1e3,
49
51
  duration: 1e3
50
52
  } : void 0,
51
53
  children: /* @__PURE__ */ v("div", {
52
- className: o["Hero-trailing"],
54
+ className: i["Hero-trailing"],
53
55
  children: /* @__PURE__ */ v(O, {})
54
56
  })
55
- }), $ = () => M.length > 0 && /* @__PURE__ */ v("div", {
56
- className: o["Hero-actions"],
57
- children: M
57
+ }), $ = () => N.length > 0 && /* @__PURE__ */ v("div", {
58
+ className: i["Hero-actions"],
59
+ children: N
58
60
  });
59
- return /* @__PURE__ */ v(q, {
60
- ...J,
61
- children: /* @__PURE__ */ v(i.Provider, {
61
+ return /* @__PURE__ */ v(ae, {
62
+ ...oe,
63
+ children: /* @__PURE__ */ v(ne.Provider, {
62
64
  value: {
63
- imagePosition: R,
65
+ imagePosition: z,
64
66
  variant: D,
65
- align: x,
67
+ align: J,
66
68
  hasInlineMedia: B,
67
69
  enableAnimation: k
68
70
  },
69
71
  children: /* @__PURE__ */ y("section", {
70
- className: e(o.Hero, o[`Hero--variant-${D}`], !B && o[`Hero--align-${x}`], ae, (P || F) && o[`Hero--image-pos-${R}`], (P || F) && B && o["Hero--image-pos-inline"], X && o["Hero--variant-inline-gridline"], g),
71
- ref: re,
72
+ className: e(i.Hero, i[`Hero--variant-${D}`], !B && i[`Hero--align-${J}`], se, (P || F) && i[`Hero--image-pos-${z}`], (P || F) && B && i["Hero--image-pos-inline"], X && i["Hero--variant-inline-gridline"], h),
73
+ ref: M,
72
74
  "aria-labelledby": "hero-section-brand-heading",
73
75
  "data-testid": A || b.root,
74
76
  ...j,
75
77
  children: [/* @__PURE__ */ v(t, {
76
78
  fullWidth: !Y && !X,
77
79
  "data-testid": b.grid,
78
- className: e(o["Hero-grid"], o[`Hero-grid--${R}`], Y && !W && o["Hero-grid--contained"], X && o["Hero-grid--bordered-inline"], W && o["Hero-grid--expressive"]),
80
+ className: e(i["Hero-grid"], i[`Hero-grid--${z}`], Y && !W && i["Hero-grid--contained"], X && i["Hero-grid--bordered-inline"], W && i["Hero-grid--expressive"]),
79
81
  children: W ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(t.Column, {
80
82
  span: {
81
83
  medium: 12,
82
- large: I ? 7 : 6
84
+ large: L ? 7 : 6
83
85
  },
84
- className: o["Hero-expressive-header-column"],
85
- children: /* @__PURE__ */ v(r, {
86
+ className: i["Hero-expressive-header-column"],
87
+ children: /* @__PURE__ */ v(n, {
86
88
  direction: "vertical",
87
89
  gap: "none",
88
90
  padding: "none",
89
91
  alignItems: "flex-start",
90
- children: ie
92
+ children: I
91
93
  })
92
94
  }), /* @__PURE__ */ v(t.Column, {
93
95
  span: {
94
96
  medium: 12,
95
- large: I ? 5 : 6
97
+ large: L ? 5 : 6
96
98
  },
97
- className: o["Hero-expressive-body-column"],
98
- children: /* @__PURE__ */ y(r, {
99
+ className: i["Hero-expressive-body-column"],
100
+ children: /* @__PURE__ */ y(n, {
99
101
  direction: "vertical",
100
102
  gap: "none",
101
103
  padding: "none",
102
104
  alignItems: "flex-start",
103
105
  children: [
104
- I,
106
+ L,
105
107
  $(),
106
108
  Q(k)
107
109
  ]
@@ -110,24 +112,24 @@ var b = {
110
112
  Z && H && !Y && /* @__PURE__ */ v(t.Column, {
111
113
  ref: T,
112
114
  span: { large: 6 },
113
- className: e(E && o[`Hero-imageContainer--bg-${E}`], X && V?.includes("padded") && o["Hero-imageContainer--inline-bg-padded"], X && o["Hero-imageContainer--inline-bordered"]),
115
+ className: e(E && i[`Hero-imageContainer--bg-${E}`], X && V?.includes("padded") && i["Hero-imageContainer--inline-bg-padded"], X && i["Hero-imageContainer--inline-bordered"]),
114
116
  children: /* @__PURE__ */ v("div", {
115
- className: e(o["Hero-mediaContainer"], C),
117
+ className: e(i["Hero-mediaContainer"], C),
116
118
  style: w,
117
119
  children: H
118
120
  })
119
121
  }),
120
122
  /* @__PURE__ */ v(t.Column, {
121
123
  span: { large: H && B ? 6 : 12 },
122
- children: /* @__PURE__ */ y(r, {
123
- className: e(X && o["Hero-text-column--inline-gridline"], X && o["Hero-contentColumn--bordered-inline"]),
124
+ children: /* @__PURE__ */ y(n, {
125
+ className: e(X && i["Hero-text-column--inline-gridline"], X && i["Hero-contentColumn--bordered-inline"]),
124
126
  direction: "vertical",
125
127
  gap: "none",
126
128
  padding: "none",
127
- alignItems: B || x === "start" ? "flex-start" : "center",
128
- justifyContent: B ? void 0 : x === "start" ? "flex-start" : "center",
129
+ alignItems: B || J === "start" ? "flex-start" : "center",
130
+ justifyContent: B ? void 0 : J === "start" ? "flex-start" : "center",
129
131
  children: [
130
- N,
132
+ re,
131
133
  $(),
132
134
  Q(U && k)
133
135
  ]
@@ -136,9 +138,9 @@ var b = {
136
138
  !Z && H && !Y && /* @__PURE__ */ v(t.Column, {
137
139
  ref: T,
138
140
  span: { large: B ? 6 : 12 },
139
- className: e(E && o[`Hero-imageContainer--bg-${E}`], X && V?.includes("padded") && o["Hero-imageContainer--inline-bg-padded"], X && o["Hero-imageContainer--inline-bordered"]),
141
+ className: e(E && i[`Hero-imageContainer--bg-${E}`], X && V?.includes("padded") && i["Hero-imageContainer--inline-bg-padded"], X && i["Hero-imageContainer--inline-bordered"]),
140
142
  children: /* @__PURE__ */ v("div", {
141
- className: e(o["Hero-mediaContainer"], C),
143
+ className: e(i["Hero-mediaContainer"], C),
142
144
  style: w,
143
145
  children: H
144
146
  })
@@ -147,10 +149,10 @@ var b = {
147
149
  }), H && Y && /* @__PURE__ */ v("div", {
148
150
  ref: T,
149
151
  "data-testid": b.imageWrapper,
150
- className: e(o["Hero-imageWrapper"], K && o["Hero-imageWrapper--block-end-padded"], C, E && o[`Hero-imageWrapper--bg-${E}`]),
152
+ className: e(i["Hero-imageWrapper"], K && i["Hero-imageWrapper--block-end-padded"], C, E && i[`Hero-imageWrapper--bg-${E}`]),
151
153
  style: w,
152
154
  children: /* @__PURE__ */ v("div", {
153
- className: e(o["Hero-imageWrapper-inner"], K && o["Hero-imageWrapper-inner--padded"], z && o["Hero-imageWrapper-inner--with-gridline"]),
155
+ className: e(i["Hero-imageWrapper-inner"], K && i["Hero-imageWrapper-inner--padded"], ie && i["Hero-imageWrapper-inner--with-gridline"]),
154
156
  children: H
155
157
  })
156
158
  })]
@@ -158,14 +160,14 @@ var b = {
158
160
  })
159
161
  });
160
162
  }), S = Object.assign(x, {
161
- Heading: c,
162
- Description: l,
163
- PrimaryAction: p,
164
- SecondaryAction: m,
165
- Image: u,
166
- Video: d,
167
- Label: s,
168
- Eyebrow: f,
163
+ Heading: o,
164
+ Description: s,
165
+ PrimaryAction: d,
166
+ SecondaryAction: f,
167
+ Image: c,
168
+ Video: l,
169
+ Label: a,
170
+ Eyebrow: u,
169
171
  testIds: b
170
172
  });
171
173
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.js","names":[],"sources":["../../src/Hero/Hero.tsx"],"sourcesContent":["import React, {forwardRef, Fragment, PropsWithChildren, useMemo} from 'react'\nimport {clsx} from 'clsx'\nimport {Grid} from '../Grid'\nimport {Stack} from '../Stack'\nimport {Box} from '../Box'\nimport type {BaseProps} from '../component-helpers'\nimport {AnimationProvider} from '../animation'\n\nimport {HeroContext, heroMediaInlinePositions} from './HeroContext'\nimport type {HeroMediaInlinePositions, HeroAlign, HeroVariant} from './HeroContext'\nimport {\n HeroLabel,\n HeroHeading,\n HeroDescription,\n HeroImage,\n HeroVideo,\n HeroEyebrow,\n HeroPrimaryAction,\n HeroSecondaryAction,\n} from './sub-components'\nimport type {HeroImageProps, HeroVideoProps} from './sub-components'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/hero/base.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Hero.module.css'\n\nconst testIds = {\n root: 'Hero',\n get video() {\n return `${this.root}-video`\n },\n get grid() {\n return `${this.root}-grid`\n },\n get imageWrapper() {\n return `${this.root}-imageWrapper`\n },\n}\n\nexport type HeroProps = BaseProps<HTMLElement> & {\n align?: HeroAlign\n imageContainerClassName?: string\n imageContainerStyle?: React.CSSProperties\n imageContainerRef?: React.RefObject<HTMLDivElement | null>\n imageBackgroundColor?: 'default' | 'subtle'\n variant?: HeroVariant\n enableAnimation?: 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 trailingComponent?: React.FunctionComponent\n 'data-testid'?: string\n}\n\nconst Root = forwardRef<HTMLElement, PropsWithChildren<HeroProps>>(\n (\n {\n className,\n align = 'start',\n children,\n imageContainerClassName,\n imageContainerStyle,\n imageContainerRef,\n imageBackgroundColor,\n variant = 'default',\n trailingComponent: TrailingComponent,\n enableAnimation = false,\n 'data-testid': testId,\n ...rest\n },\n ref,\n ) => {\n const {HeroActions, HeroChildren, HeroImageChild, HeroVideoChild, HeroHeaderChildren, HeroDescriptionChild} =\n useMemo(() => {\n const result = React.Children.toArray(children).reduce<{\n HeroActions: React.ReactElement[]\n HeroImageChild?: React.ReactElement<HeroImageProps>\n HeroVideoChild?: React.ReactElement<HeroVideoProps>\n HeroChildren: React.ReactElement[]\n HeroHeaderChildren: React.ReactElement[]\n HeroDescriptionChild?: React.ReactElement\n }>(\n (acc, child) => {\n if (React.isValidElement(child)) {\n if (child.type === HeroPrimaryAction || child.type === HeroSecondaryAction) {\n acc.HeroActions.push(child)\n } else if (child.type === HeroImage) {\n acc.HeroImageChild = child as React.ReactElement<HeroImageProps>\n } else if (child.type === HeroVideo) {\n acc.HeroVideoChild = child as React.ReactElement<HeroVideoProps>\n } else {\n acc.HeroChildren.push(child)\n if (child.type === HeroLabel || child.type === HeroEyebrow || child.type === HeroHeading) {\n acc.HeroHeaderChildren.push(child)\n } else if (child.type === HeroDescription) {\n acc.HeroDescriptionChild = child\n }\n }\n }\n return acc\n },\n {\n HeroActions: [],\n HeroChildren: [],\n HeroImageChild: undefined,\n HeroVideoChild: undefined,\n HeroHeaderChildren: [],\n HeroDescriptionChild: undefined,\n },\n )\n\n // Prefer Hero.Image - don't show both\n if (result.HeroImageChild && result.HeroVideoChild) {\n result.HeroVideoChild = undefined\n }\n\n return result\n }, [children])\n\n const mediaPositionProp = HeroImageChild?.props.position || HeroVideoChild?.props.position\n\n const mediaPosition = (() => {\n if (variant === 'gridline-expressive' && mediaPositionProp?.startsWith('inline-')) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line no-console\n console.warn(\n `Hero: \"gridline-expressive\" variant does not support \"${mediaPositionProp}\" position. Defaulting to \"block-end\".`,\n )\n }\n return 'block-end'\n }\n return mediaPositionProp || 'block-end'\n })()\n const mediaWrapperHasBorder = HeroImageChild?.props.enableBorder ?? HeroVideoChild?.props.enableBorder ?? true\n const hasInlineMedia = heroMediaInlinePositions.includes(mediaPosition as HeroMediaInlinePositions)\n const inlineMediaPosition = hasInlineMedia ? mediaPosition : undefined\n const mediaChild = HeroImageChild || HeroVideoChild\n const isGridline = variant === 'gridline'\n const isGridlineExpressive = variant === 'gridline-expressive'\n const isBlockEndPosition = mediaPosition === 'block-end' || mediaPosition === 'block-end-padded'\n const isBlockEndPadded = mediaPosition === 'block-end-padded'\n\n const Tag = (isGridline || isGridlineExpressive) && enableAnimation ? AnimationProvider : Fragment\n const tagProps =\n (isGridline || isGridlineExpressive) && enableAnimation\n ? {\n autoStaggerChildren: false,\n animationTrigger: 'immediate' as const,\n }\n : {}\n\n const useContainedLayout = (isGridline || isGridlineExpressive) && isBlockEndPosition\n const useInlineGridline = isGridline && hasInlineMedia\n\n const heroLayoutClass = HeroImageChild ? styles['Hero--layout-image'] : styles['Hero--layout-default']\n const isInlineStart = mediaPosition === 'inline-start' || mediaPosition === 'inline-start-padded'\n\n const renderTrailingComponent = (shouldAnimate: boolean) =>\n TrailingComponent && (\n <Box animate={shouldAnimate ? {variant: 'slide-in-up' as const, delay: 1000, duration: 1000} : undefined}>\n <div className={styles['Hero-trailing']}>\n <TrailingComponent />\n </div>\n </Box>\n )\n\n const renderActions = () => HeroActions.length > 0 && <div className={styles['Hero-actions']}>{HeroActions}</div>\n\n return (\n <Tag {...tagProps}>\n <HeroContext.Provider value={{imagePosition: mediaPosition, variant, align, hasInlineMedia, enableAnimation}}>\n <section\n className={clsx(\n styles.Hero,\n styles[`Hero--variant-${variant}`],\n !hasInlineMedia && styles[`Hero--align-${align}`],\n heroLayoutClass,\n (HeroImageChild || HeroVideoChild) && styles[`Hero--image-pos-${mediaPosition}`],\n (HeroImageChild || HeroVideoChild) && hasInlineMedia && styles['Hero--image-pos-inline'],\n useInlineGridline && styles['Hero--variant-inline-gridline'],\n className,\n )}\n ref={ref}\n aria-labelledby=\"hero-section-brand-heading\"\n data-testid={testId || testIds.root}\n {...rest}\n >\n <Grid\n fullWidth={!useContainedLayout && !useInlineGridline}\n data-testid={testIds.grid}\n className={clsx(\n styles['Hero-grid'],\n styles[`Hero-grid--${mediaPosition}`],\n useContainedLayout && !isGridlineExpressive && styles['Hero-grid--contained'],\n useInlineGridline && styles['Hero-grid--bordered-inline'],\n isGridlineExpressive && styles['Hero-grid--expressive'],\n )}\n >\n {isGridlineExpressive ? (\n <>\n {/* Expressive variant: header column (left) */}\n <Grid.Column\n span={{medium: 12, large: HeroDescriptionChild ? 7 : 6}}\n className={styles['Hero-expressive-header-column']}\n >\n <Stack direction=\"vertical\" gap=\"none\" padding=\"none\" alignItems=\"flex-start\">\n {HeroHeaderChildren}\n </Stack>\n </Grid.Column>\n {/* Expressive variant: body column (right) */}\n <Grid.Column\n span={{medium: 12, large: HeroDescriptionChild ? 5 : 6}}\n className={styles['Hero-expressive-body-column']}\n >\n <Stack direction=\"vertical\" gap=\"none\" padding=\"none\" alignItems=\"flex-start\">\n {HeroDescriptionChild}\n {renderActions()}\n {renderTrailingComponent(enableAnimation)}\n </Stack>\n </Grid.Column>\n </>\n ) : (\n <>\n {/* Standard GridLine variant: text column */}\n {isInlineStart && mediaChild && !useContainedLayout && (\n <Grid.Column\n ref={imageContainerRef}\n span={{large: 6}}\n className={clsx(\n imageBackgroundColor && styles[`Hero-imageContainer--bg-${imageBackgroundColor}`],\n useInlineGridline &&\n inlineMediaPosition?.includes('padded') &&\n styles['Hero-imageContainer--inline-bg-padded'],\n useInlineGridline && styles['Hero-imageContainer--inline-bordered'],\n )}\n >\n <div\n className={clsx(styles['Hero-mediaContainer'], imageContainerClassName)}\n style={imageContainerStyle}\n >\n {mediaChild}\n </div>\n </Grid.Column>\n )}\n <Grid.Column span={{large: mediaChild && hasInlineMedia ? 6 : 12}}>\n <Stack\n className={clsx(\n useInlineGridline && styles['Hero-text-column--inline-gridline'],\n useInlineGridline && styles['Hero-contentColumn--bordered-inline'],\n )}\n direction=\"vertical\"\n gap=\"none\"\n padding=\"none\"\n alignItems={hasInlineMedia ? 'flex-start' : align === 'start' ? 'flex-start' : 'center'}\n justifyContent={hasInlineMedia ? undefined : align === 'start' ? 'flex-start' : 'center'}\n >\n {HeroChildren}\n {renderActions()}\n {renderTrailingComponent(isGridline && enableAnimation)}\n </Stack>\n </Grid.Column>\n {!isInlineStart && mediaChild && !useContainedLayout && (\n <Grid.Column\n ref={imageContainerRef}\n span={{large: hasInlineMedia ? 6 : 12}}\n className={clsx(\n imageBackgroundColor && styles[`Hero-imageContainer--bg-${imageBackgroundColor}`],\n useInlineGridline &&\n inlineMediaPosition?.includes('padded') &&\n styles['Hero-imageContainer--inline-bg-padded'],\n useInlineGridline && styles['Hero-imageContainer--inline-bordered'],\n )}\n >\n <div\n className={clsx(styles['Hero-mediaContainer'], imageContainerClassName)}\n style={imageContainerStyle}\n >\n {mediaChild}\n </div>\n </Grid.Column>\n )}\n </>\n )}\n </Grid>\n {mediaChild && useContainedLayout && (\n <div\n ref={imageContainerRef}\n data-testid={testIds.imageWrapper}\n className={clsx(\n styles['Hero-imageWrapper'],\n isBlockEndPadded && styles['Hero-imageWrapper--block-end-padded'],\n imageContainerClassName,\n imageBackgroundColor && styles[`Hero-imageWrapper--bg-${imageBackgroundColor}`],\n )}\n style={imageContainerStyle}\n >\n <div\n className={clsx(\n styles['Hero-imageWrapper-inner'],\n isBlockEndPadded && styles['Hero-imageWrapper-inner--padded'],\n mediaWrapperHasBorder && styles['Hero-imageWrapper-inner--with-gridline'],\n )}\n >\n {mediaChild}\n </div>\n </div>\n )}\n </section>\n </HeroContext.Provider>\n </Tag>\n )\n },\n)\n\nexport const Hero = Object.assign(Root, {\n Heading: HeroHeading,\n Description: HeroDescription,\n PrimaryAction: HeroPrimaryAction,\n SecondaryAction: HeroSecondaryAction,\n Image: HeroImage,\n Video: HeroVideo,\n Label: HeroLabel,\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;kBATlF;SAWG;SACA,GAAe;SACf,EAAwB,KAAc,EAAgB;SACjD;;OACI,CAAA;MACb,CAAC,KAAiB,KAAc,CAAC,KAChC,kBAAC,EAAK,QAAN;OACE,KAAK;OACL,MAAM,EAAC,OAAO,IAAiB,IAAI,IAAG;OACtC,WAAW,EACT,KAAwB,EAAO,2BAA2B,MAC1D,KACE,GAAqB,SAAS,SAAS,IACvC,EAAO,0CACT,KAAqB,EAAO,wCAC7B;iBAED,kBAAC,OAAD;QACE,WAAW,EAAK,EAAO,wBAAwB,EAAwB;QACvE,OAAO;kBAEN;QACG,CAAA;OACM,CAAA;MAEf,EAAA,CAAA;KAEA,CAAA,EACN,KAAc,KACb,kBAAC,OAAD;KACE,KAAK;KACL,eAAa,EAAQ;KACrB,WAAW,EACT,EAAO,sBACP,KAAoB,EAAO,wCAC3B,GACA,KAAwB,EAAO,yBAAyB,KACzD;KACD,OAAO;eAEP,kBAAC,OAAD;MACE,WAAW,EACT,EAAO,4BACP,KAAoB,EAAO,oCAC3B,KAAyB,EAAO,0CACjC;gBAEA;MACG,CAAA;KACF,CAAA,CAEA;;GACW,CAAA;EACnB,CAAA;EAGX,EAEY,IAAO,OAAO,OAAO,GAAM;CACtC,SAAS;CACT,aAAa;CACb,eAAe;CACf,iBAAiB;CACjB,OAAO;CACP,OAAO;CACP,OAAO;CACP,SAAS;CACT;CACD,CAAC"}
1
+ {"version":3,"file":"Hero.js","names":[],"sources":["../../src/Hero/Hero.tsx"],"sourcesContent":["import React, {forwardRef, Fragment, PropsWithChildren, useMemo} from 'react'\nimport {clsx} from 'clsx'\nimport {Grid} from '../Grid'\nimport {Stack} from '../Stack'\nimport {Box} from '../Box'\nimport type {BaseProps} from '../component-helpers'\nimport {AnimationProvider} from '../animation'\n\nimport {HeroContext, heroMediaInlinePositions} from './HeroContext'\nimport type {HeroMediaInlinePositions, HeroAlign, HeroVariant} from './HeroContext'\nimport {\n HeroLabel,\n HeroHeading,\n HeroDescription,\n HeroImage,\n HeroVideo,\n HeroEyebrow,\n HeroPrimaryAction,\n HeroSecondaryAction,\n} from './sub-components'\nimport type {HeroImageProps, HeroVideoProps} from './sub-components'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/hero/base.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Hero.module.css'\n\nconst testIds = {\n root: 'Hero',\n get video() {\n return `${this.root}-video`\n },\n get grid() {\n return `${this.root}-grid`\n },\n get imageWrapper() {\n return `${this.root}-imageWrapper`\n },\n}\n\nexport type HeroProps = BaseProps<HTMLElement> & {\n align?: HeroAlign\n imageContainerClassName?: string\n imageContainerStyle?: React.CSSProperties\n imageContainerRef?: React.RefObject<HTMLDivElement | null>\n imageBackgroundColor?: 'default' | 'subtle'\n variant?: HeroVariant\n enableAnimation?: 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 trailingComponent?: React.FunctionComponent\n 'data-testid'?: string\n}\n\nconst Root = forwardRef<HTMLElement, PropsWithChildren<HeroProps>>(\n (\n {\n className,\n align: alignProp = 'start',\n children,\n imageContainerClassName,\n imageContainerStyle,\n imageContainerRef,\n imageBackgroundColor,\n variant = 'default',\n trailingComponent: TrailingComponent,\n enableAnimation = false,\n 'data-testid': testId,\n ...rest\n },\n ref,\n ) => {\n const {HeroActions, HeroChildren, HeroImageChild, HeroVideoChild, HeroHeaderChildren, HeroDescriptionChild} =\n useMemo(() => {\n const result = React.Children.toArray(children).reduce<{\n HeroActions: React.ReactElement[]\n HeroImageChild?: React.ReactElement<HeroImageProps>\n HeroVideoChild?: React.ReactElement<HeroVideoProps>\n HeroChildren: React.ReactElement[]\n HeroHeaderChildren: React.ReactElement[]\n HeroDescriptionChild?: React.ReactElement\n }>(\n (acc, child) => {\n if (React.isValidElement(child)) {\n if (child.type === HeroPrimaryAction || child.type === HeroSecondaryAction) {\n acc.HeroActions.push(child)\n } else if (child.type === HeroImage) {\n acc.HeroImageChild = child as React.ReactElement<HeroImageProps>\n } else if (child.type === HeroVideo) {\n acc.HeroVideoChild = child as React.ReactElement<HeroVideoProps>\n } else {\n acc.HeroChildren.push(child)\n if (child.type === HeroLabel || child.type === HeroEyebrow || child.type === HeroHeading) {\n acc.HeroHeaderChildren.push(child)\n } else if (child.type === HeroDescription) {\n acc.HeroDescriptionChild = child\n }\n }\n }\n return acc\n },\n {\n HeroActions: [],\n HeroChildren: [],\n HeroImageChild: undefined,\n HeroVideoChild: undefined,\n HeroHeaderChildren: [],\n HeroDescriptionChild: undefined,\n },\n )\n\n // Prefer Hero.Image - don't show both\n if (result.HeroImageChild && result.HeroVideoChild) {\n result.HeroVideoChild = undefined\n }\n\n return result\n }, [children])\n\n const mediaPositionProp = HeroImageChild?.props.position || HeroVideoChild?.props.position\n\n const mediaPosition = (() => {\n if (variant === 'gridline-expressive' && mediaPositionProp?.startsWith('inline-')) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line no-console\n console.warn(\n `Hero: \"gridline-expressive\" variant does not support \"${mediaPositionProp}\" position. Defaulting to \"block-end\".`,\n )\n }\n return 'block-end'\n }\n return mediaPositionProp || 'block-end'\n })()\n const mediaWrapperHasBorder = HeroImageChild?.props.enableBorder ?? HeroVideoChild?.props.enableBorder ?? true\n const hasInlineMedia = heroMediaInlinePositions.includes(mediaPosition as HeroMediaInlinePositions)\n const inlineMediaPosition = hasInlineMedia ? mediaPosition : undefined\n const mediaChild = HeroImageChild || HeroVideoChild\n const isGridline = variant === 'gridline'\n const isGridlineExpressive = variant === 'gridline-expressive'\n const isBlockEndPosition = mediaPosition === 'block-end' || mediaPosition === 'block-end-padded'\n const isBlockEndPadded = mediaPosition === 'block-end-padded'\n\n const isInvalidGridlineAlignment = isGridlineExpressive && alignProp === 'center'\n const align: HeroAlign = isInvalidGridlineAlignment ? 'start' : alignProp\n\n if (isInvalidGridlineAlignment && (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')) {\n // eslint-disable-next-line no-console\n console.warn('Hero: the \"gridline-expressive\" variant does not support align=\"center\"; using \"start\" instead.')\n }\n\n const Tag = (isGridline || isGridlineExpressive) && enableAnimation ? AnimationProvider : Fragment\n const tagProps =\n (isGridline || isGridlineExpressive) && enableAnimation\n ? {\n autoStaggerChildren: false,\n animationTrigger: 'immediate' as const,\n }\n : {}\n\n const useContainedLayout = (isGridline || isGridlineExpressive) && isBlockEndPosition\n const useInlineGridline = isGridline && hasInlineMedia\n\n const heroLayoutClass = HeroImageChild ? styles['Hero--layout-image'] : styles['Hero--layout-default']\n const isInlineStart = mediaPosition === 'inline-start' || mediaPosition === 'inline-start-padded'\n\n const renderTrailingComponent = (shouldAnimate: boolean) =>\n TrailingComponent && (\n <Box animate={shouldAnimate ? {variant: 'slide-in-up' as const, delay: 1000, duration: 1000} : undefined}>\n <div className={styles['Hero-trailing']}>\n <TrailingComponent />\n </div>\n </Box>\n )\n\n const renderActions = () => HeroActions.length > 0 && <div className={styles['Hero-actions']}>{HeroActions}</div>\n\n return (\n <Tag {...tagProps}>\n <HeroContext.Provider value={{imagePosition: mediaPosition, variant, align, hasInlineMedia, enableAnimation}}>\n <section\n className={clsx(\n styles.Hero,\n styles[`Hero--variant-${variant}`],\n !hasInlineMedia && styles[`Hero--align-${align}`],\n heroLayoutClass,\n (HeroImageChild || HeroVideoChild) && styles[`Hero--image-pos-${mediaPosition}`],\n (HeroImageChild || HeroVideoChild) && hasInlineMedia && styles['Hero--image-pos-inline'],\n useInlineGridline && styles['Hero--variant-inline-gridline'],\n className,\n )}\n ref={ref}\n aria-labelledby=\"hero-section-brand-heading\"\n data-testid={testId || testIds.root}\n {...rest}\n >\n <Grid\n fullWidth={!useContainedLayout && !useInlineGridline}\n data-testid={testIds.grid}\n className={clsx(\n styles['Hero-grid'],\n styles[`Hero-grid--${mediaPosition}`],\n useContainedLayout && !isGridlineExpressive && styles['Hero-grid--contained'],\n useInlineGridline && styles['Hero-grid--bordered-inline'],\n isGridlineExpressive && styles['Hero-grid--expressive'],\n )}\n >\n {isGridlineExpressive ? (\n <>\n {/* Expressive variant: header column (left) */}\n <Grid.Column\n span={{medium: 12, large: HeroDescriptionChild ? 7 : 6}}\n className={styles['Hero-expressive-header-column']}\n >\n <Stack direction=\"vertical\" gap=\"none\" padding=\"none\" alignItems=\"flex-start\">\n {HeroHeaderChildren}\n </Stack>\n </Grid.Column>\n {/* Expressive variant: body column (right) */}\n <Grid.Column\n span={{medium: 12, large: HeroDescriptionChild ? 5 : 6}}\n className={styles['Hero-expressive-body-column']}\n >\n <Stack direction=\"vertical\" gap=\"none\" padding=\"none\" alignItems=\"flex-start\">\n {HeroDescriptionChild}\n {renderActions()}\n {renderTrailingComponent(enableAnimation)}\n </Stack>\n </Grid.Column>\n </>\n ) : (\n <>\n {/* Standard GridLine variant: text column */}\n {isInlineStart && mediaChild && !useContainedLayout && (\n <Grid.Column\n ref={imageContainerRef}\n span={{large: 6}}\n className={clsx(\n imageBackgroundColor && styles[`Hero-imageContainer--bg-${imageBackgroundColor}`],\n useInlineGridline &&\n inlineMediaPosition?.includes('padded') &&\n styles['Hero-imageContainer--inline-bg-padded'],\n useInlineGridline && styles['Hero-imageContainer--inline-bordered'],\n )}\n >\n <div\n className={clsx(styles['Hero-mediaContainer'], imageContainerClassName)}\n style={imageContainerStyle}\n >\n {mediaChild}\n </div>\n </Grid.Column>\n )}\n <Grid.Column span={{large: mediaChild && hasInlineMedia ? 6 : 12}}>\n <Stack\n className={clsx(\n useInlineGridline && styles['Hero-text-column--inline-gridline'],\n useInlineGridline && styles['Hero-contentColumn--bordered-inline'],\n )}\n direction=\"vertical\"\n gap=\"none\"\n padding=\"none\"\n alignItems={hasInlineMedia ? 'flex-start' : align === 'start' ? 'flex-start' : 'center'}\n justifyContent={hasInlineMedia ? undefined : align === 'start' ? 'flex-start' : 'center'}\n >\n {HeroChildren}\n {renderActions()}\n {renderTrailingComponent(isGridline && enableAnimation)}\n </Stack>\n </Grid.Column>\n {!isInlineStart && mediaChild && !useContainedLayout && (\n <Grid.Column\n ref={imageContainerRef}\n span={{large: hasInlineMedia ? 6 : 12}}\n className={clsx(\n imageBackgroundColor && styles[`Hero-imageContainer--bg-${imageBackgroundColor}`],\n useInlineGridline &&\n inlineMediaPosition?.includes('padded') &&\n styles['Hero-imageContainer--inline-bg-padded'],\n useInlineGridline && styles['Hero-imageContainer--inline-bordered'],\n )}\n >\n <div\n className={clsx(styles['Hero-mediaContainer'], imageContainerClassName)}\n style={imageContainerStyle}\n >\n {mediaChild}\n </div>\n </Grid.Column>\n )}\n </>\n )}\n </Grid>\n {mediaChild && useContainedLayout && (\n <div\n ref={imageContainerRef}\n data-testid={testIds.imageWrapper}\n className={clsx(\n styles['Hero-imageWrapper'],\n isBlockEndPadded && styles['Hero-imageWrapper--block-end-padded'],\n imageContainerClassName,\n imageBackgroundColor && styles[`Hero-imageWrapper--bg-${imageBackgroundColor}`],\n )}\n style={imageContainerStyle}\n >\n <div\n className={clsx(\n styles['Hero-imageWrapper-inner'],\n isBlockEndPadded && styles['Hero-imageWrapper-inner--padded'],\n mediaWrapperHasBorder && styles['Hero-imageWrapper-inner--with-gridline'],\n )}\n >\n {mediaChild}\n </div>\n </div>\n )}\n </section>\n </HeroContext.Provider>\n </Tag>\n )\n },\n)\n\nexport const Hero = Object.assign(Root, {\n Heading: HeroHeading,\n Description: HeroDescription,\n PrimaryAction: HeroPrimaryAction,\n SecondaryAction: HeroSecondaryAction,\n Image: HeroImage,\n Video: HeroVideo,\n Label: HeroLabel,\n Eyebrow: HeroEyebrow,\n testIds,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA8BA,IAAM,IAAU;CACd,MAAM;CACN,IAAI,QAAQ;AACV,SAAO,GAAG,KAAK,KAAK;;CAEtB,IAAI,OAAO;AACT,SAAO,GAAG,KAAK,KAAK;;CAEtB,IAAI,eAAe;AACjB,SAAO,GAAG,KAAK,KAAK;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AiB,KAAc,CAAC,KAChC,kBAAC,EAAK,QAAN;OACE,KAAK;OACL,MAAM,EAAC,OAAO,IAAiB,IAAI,IAAG;OACtC,WAAW,EACT,KAAwB,EAAO,2BAA2B,MAC1D,KACE,GAAqB,SAAS,SAAS,IACvC,EAAO,0CACT,KAAqB,EAAO,wCAC7B;iBAED,kBAAC,OAAD;QACE,WAAW,EAAK,EAAO,wBAAwB,EAAwB;QACvE,OAAO;kBAEN;QACG,CAAA;OACM,CAAA;MAEf,EAAA,CAAA;KAEA,CAAA,EACN,KAAc,KACb,kBAAC,OAAD;KACE,KAAK;KACL,eAAa,EAAQ;KACrB,WAAW,EACT,EAAO,sBACP,KAAoB,EAAO,wCAC3B,GACA,KAAwB,EAAO,yBAAyB,KACzD;KACD,OAAO;eAEP,kBAAC,OAAD;MACE,WAAW,EACT,EAAO,4BACP,KAAoB,EAAO,oCAC3B,MAAyB,EAAO,0CACjC;gBAEA;MACG,CAAA;KACF,CAAA,CAEA;;GACW,CAAA;EACnB,CAAA;EAGX,EAEY,IAAO,OAAO,OAAO,GAAM;CACtC,SAAS;CACT,aAAa;CACb,eAAe;CACf,iBAAiB;CACjB,OAAO;CACP,OAAO;CACP,OAAO;CACP,SAAS;CACT;CACD,CAAC"}
@@ -1 +1 @@
1
- .Primer_Brand__Hero-module__Hero___It6gj{flex-direction:column;display:flex}.Primer_Brand__Hero-module__Hero--variant-default___lNgHw{padding:var(--brand-Hero-narrow-padding)}.Primer_Brand__Hero-module__Hero--align-start___ouSp3{text-align:left;align-items:flex-start}.Primer_Brand__Hero-module__Hero--align-center___6FMoH{text-align:center;place-items:center}.Primer_Brand__Hero-module__Hero-grid___gXNGW{--brand-Grid-spacing-margin:0}.Primer_Brand__Hero-module__Hero-grid--contained___vfiGA{width:100%;max-width:1280px;padding:var(--base-size-32);background-color:var(--brand-Hero-bgColor-gridlineGridInner);margin-inline:auto}@container (width>=1280px){.Primer_Brand__Hero-module__Hero-grid--contained___vfiGA{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero-grid--block-end___jU6_V,.Primer_Brand__Hero-module__Hero-grid--inline-end___o8Dtq{--brand-Grid-spacing-row:var(--base-size-40)}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-grid--contained___vfiGA{padding:var(--base-size-64)}.Primer_Brand__Hero-module__Hero-grid--block-end___jU6_V{--brand-Grid-spacing-row:var(--base-size-80)}}.Primer_Brand__Hero-module__Hero--align-center___6FMoH .Primer_Brand__Hero-module__Hero-actions___RUotq{justify-content:center}.Primer_Brand__Hero-module__Hero--align-center___6FMoH .Primer_Brand__Hero-module__Hero-content___lpGj0{flex-direction:column;align-items:center;display:flex}.Primer_Brand__Hero-module__Hero-image___GC10l{border-radius:var(--brand-borderRadius-medium);width:100%}.Primer_Brand__Hero-module__Hero-mediaContainer___DWFUR{flex:1;width:100%;height:100%;display:flex}.Primer_Brand__Hero-module__Hero-imageContainer--bg-subtle___RFNq3{background-color:var(--brand-color-canvas-subtle);padding:var(--base-size-32) var(--base-size-32) 0}.Primer_Brand__Hero-module__Hero-imageContainer--inline-bg-padded___Y_hah{padding:var(--base-size-32);background-color:var(--brand-color-canvas-subtle)}.Primer_Brand__Hero-module__Hero-imageWrapper___CscCA{justify-content:center;width:100%;display:flex}.Primer_Brand__Hero-module__Hero-imageWrapper--bg-subtle___8xPH_{border-block:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);background-color:var(--brand-color-canvas-subtle);padding:var(--base-size-32) var(--base-size-32) 0}.Primer_Brand__Hero-module__Hero-imageContainer--inline-bordered___g8hqZ{background-color:var(--brand-color-canvas-subtle);align-items:stretch;display:flex}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-imageContainer--inline-bordered___g8hqZ{min-height:calc(600px - var(--base-size-24))}.Primer_Brand__Hero-module__Hero-imageWrapper--bg-subtle___8xPH_{padding:var(--base-size-64) var(--base-size-64) 0}.Primer_Brand__Hero-module__Hero-imageContainer--inline-bg-padded___Y_hah{padding:var(--base-size-64)}}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh{width:100%;container-type:inline-size}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-media___rM3qR{max-width:1176px;margin-inline:auto;display:block;overflow:hidden}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-media--pos-block-end___6QShk,.Primer_Brand__Hero-module__Hero-media-item--block-end___RrUWM{border-radius:var(--brand-borderRadius-medium) var(--brand-borderRadius-medium) 0 0}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper___CscCA{border-block:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);background-color:var(--brand-color-canvas-subtle);width:100%}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner___jk8Wg{width:100%;max-width:1280px;padding:var(--base-size-32) var(--base-size-32) 0;margin-inline:auto}@container (width>=1280px){.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner--with-gridline___fixm4{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner--padded___cN4al{padding:var(--base-size-32)}.Primer_Brand__Hero-module__Hero-media--pos-block-end-padded___VdZlI{border-radius:var(--brand-borderRadius-medium)}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner___jk8Wg{padding:var(--base-size-64) var(--base-size-64) 0}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner--padded___cN4al{padding:var(--base-size-64)}}.Primer_Brand__Hero-module__Hero-grid--bordered-inline___e_HR8{width:100%;max-width:1280px;margin-inline:auto}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-grid--bordered-inline___e_HR8{min-height:440px}}@container (width>=1280px){.Primer_Brand__Hero-module__Hero-grid--bordered-inline___e_HR8{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh.Primer_Brand__Hero-module__Hero--image-pos-inline___fwJAZ{border-block-end:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}.Primer_Brand__Hero-module__Hero-contentColumn--bordered-inline___2Dfrd{padding:var(--base-size-32);flex-direction:column;justify-content:center;display:flex}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-contentColumn--bordered-inline___2Dfrd{padding:var(--base-size-64)}}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-media--pos-inline___TD4jr:not(.Primer_Brand__Hero-module__Hero-media--pos-inline-padded___Uq4Xk),.Primer_Brand__Hero-module__Hero-media-item--inline___3XHJG{border-radius:0}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-media--pos-inline-padded___Uq4Xk{align-self:center;max-width:100%;height:auto}.Primer_Brand__Hero-module__Hero-video___Ne5zN{width:100%}.Primer_Brand__Hero-module__Hero-media-item___Ia3pn{border-radius:var(--brand-borderRadius-large);width:100%}.Primer_Brand__Hero-module__Hero-label___XJftM{text-transform:uppercase;letter-spacing:1px;align-items:center;margin-block-end:calc(var(--base-size-16) - var(--base-size-2));display:flex}.Primer_Brand__Hero-module__Hero-heading___HMve3{max-width:924px;margin:0}.Primer_Brand__Hero-module__Hero-heading___HMve3 b{color:var(--brand-color-accent-primary);font-style:normal;font-weight:inherit}.Primer_Brand__Hero-module__Hero-heading--fullWidth___sJlnY{max-width:none;max-width:initial}.Primer_Brand__Hero-module__Hero-text-column--inline-gridline___gGhfi{height:100%}.Primer_Brand__Hero-module__Hero-description___7raSC{margin:var(--base-size-24) 0 0;max-width:600px}.Primer_Brand__Hero-module__Hero--variant-inline-gridline___Jwjqy .Primer_Brand__Hero-module__Hero-description___7raSC{margin-block-start:auto;padding-block-start:var(--base-size-24)}.Primer_Brand__Hero-module__Hero-actions___RUotq{align-items:center;gap:var(--base-size-8) var(--base-size-16);flex-wrap:wrap;margin-block-start:var(--base-size-28);display:flex}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-actions___RUotq{align-items:stretch;gap:var(--base-size-8) var(--base-size-12)}.Primer_Brand__Hero-module__Hero-trailing____cadc{margin-block-start:var(--base-size-32)}.Primer_Brand__Hero-module__Hero-eyebrow___mlxSE{margin-block-end:var(--base-size-32)}@media screen and (width>=34rem){.Primer_Brand__Hero-module__Hero--variant-default___lNgHw{padding:var(--brand-Hero-regular-padding)}}.Primer_Brand__Hero-module__Hero-video-poster-button___mtbvt{cursor:pointer;background:0 0;border:none;width:100%;height:100%;padding:0;font-size:0;line-height:0;display:block;position:relative}.Primer_Brand__Hero-module__Hero-video-poster-image___ZP3Q5{width:100%;height:auto;display:block}.Primer_Brand__Hero-module__Hero-video-poster-icon___PfT4p{width:var(--base-size-96);height:var(--base-size-96);z-index:1;color:var(--base-color-scale-white-0);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.Primer_Brand__Hero-module__Hero-video-poster-header___13M9x{padding:var(--base-size-16) var(--base-size-24);align-items:center;gap:var(--base-size-16);height:var(--base-size-80);background:linear-gradient(#000000b3 60%,#0000);display:flex;position:absolute;inset:0 0 auto}.Primer_Brand__Hero-module__Hero-video-header-poster-icon___tlEff,.Primer_Brand__Hero-module__Hero-video-poster-text___4R755{color:var(--base-color-scale-white-0)}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3{width:100%;container-type:inline-size}.Primer_Brand__Hero-module__Hero-grid--expressive___Lq5SC{--brand-Grid-spacing-row:0;gap:0;width:100%;max-width:1280px;margin-inline:auto}@container (width>=1280px){.Primer_Brand__Hero-module__Hero-grid--expressive___Lq5SC{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero-expressive-header-column___iq2TT{padding:var(--base-size-32);border-block-end:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);align-items:center;padding-block-end:var(--base-size-24);display:flex}.Primer_Brand__Hero-module__Hero-expressive-body-column___Beyq_{padding:var(--base-size-32);padding-block-start:var(--base-size-24)}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-description___7raSC{margin-block-start:0}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-actions___RUotq{margin-block-start:var(--base-size-28)}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-trailing____cadc{margin-block-start:var(--base-size-24)}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-expressive-header-column___iq2TT{padding:var(--base-size-64);border-block-end:none;border-inline-end:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);padding-inline-end:var(--base-size-64)}.Primer_Brand__Hero-module__Hero-expressive-body-column___Beyq_{padding:var(--base-size-64);flex-direction:column;justify-content:flex-end;padding-inline-start:var(--base-size-64);display:flex}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-actions___RUotq{margin-block-start:var(--base-size-28)}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-trailing____cadc{margin-block-start:var(--base-size-20)}}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper___CscCA{border-block:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);background-color:var(--brand-color-canvas-subtle);width:100%}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner___jk8Wg{width:100%;max-width:1280px;padding:var(--base-size-32) var(--base-size-32) 0;margin-inline:auto}@container (width>=1280px){.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner--with-gridline___fixm4{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner--padded___cN4al{padding:var(--base-size-32)}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner___jk8Wg{padding:var(--base-size-64) var(--base-size-64) 0}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner--padded___cN4al{padding:var(--base-size-64)}}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-media___rM3qR{max-width:1176px;margin-inline:auto;display:block;overflow:hidden}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-media--pos-block-end___6QShk,.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-image___GC10l:not(.Primer_Brand__Hero-module__Hero-media--pos-block-end-padded___VdZlI){border-radius:var(--brand-borderRadius-medium) var(--brand-borderRadius-medium) 0 0}
1
+ .Primer_Brand__Hero-module__Hero___It6gj{flex-direction:column;display:flex}.Primer_Brand__Hero-module__Hero--variant-default___lNgHw{padding:var(--brand-Hero-narrow-padding)}.Primer_Brand__Hero-module__Hero--align-start___ouSp3{text-align:left;align-items:flex-start}.Primer_Brand__Hero-module__Hero--align-center___6FMoH{text-align:center;place-items:center}.Primer_Brand__Hero-module__Hero-grid___gXNGW{--brand-Grid-spacing-margin:0}.Primer_Brand__Hero-module__Hero-grid--contained___vfiGA{width:100%;max-width:1280px;padding:var(--base-size-32);background-color:var(--brand-Hero-bgColor-gridlineGridInner);margin-inline:auto}@container (width>=1280px){.Primer_Brand__Hero-module__Hero-grid--contained___vfiGA{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero-grid--block-end___jU6_V,.Primer_Brand__Hero-module__Hero-grid--inline-end___o8Dtq{--brand-Grid-spacing-row:var(--base-size-40)}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-grid--contained___vfiGA{padding:var(--base-size-64)}.Primer_Brand__Hero-module__Hero-grid--block-end___jU6_V{--brand-Grid-spacing-row:var(--base-size-80)}}.Primer_Brand__Hero-module__Hero--align-center___6FMoH .Primer_Brand__Hero-module__Hero-actions___RUotq{justify-content:center}.Primer_Brand__Hero-module__Hero--align-center___6FMoH .Primer_Brand__Hero-module__Hero-content___lpGj0{flex-direction:column;align-items:center;display:flex}.Primer_Brand__Hero-module__Hero-image___GC10l{border-radius:var(--brand-borderRadius-medium);width:100%}.Primer_Brand__Hero-module__Hero-mediaContainer___DWFUR{flex:1;width:100%;height:100%;display:flex}.Primer_Brand__Hero-module__Hero-imageContainer--bg-subtle___RFNq3{background-color:var(--brand-color-canvas-subtle);padding:var(--base-size-32) var(--base-size-32) 0}.Primer_Brand__Hero-module__Hero-imageContainer--inline-bg-padded___Y_hah{padding:var(--base-size-32);background-color:var(--brand-color-canvas-subtle)}.Primer_Brand__Hero-module__Hero-imageWrapper___CscCA{justify-content:center;width:100%;display:flex}.Primer_Brand__Hero-module__Hero-imageWrapper--bg-subtle___8xPH_{border-block:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);background-color:var(--brand-color-canvas-subtle);padding:var(--base-size-32) var(--base-size-32) 0}.Primer_Brand__Hero-module__Hero-imageContainer--inline-bordered___g8hqZ{background-color:var(--brand-color-canvas-subtle);align-items:stretch;display:flex}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-imageContainer--inline-bordered___g8hqZ{min-height:calc(600px - var(--base-size-24))}.Primer_Brand__Hero-module__Hero-imageWrapper--bg-subtle___8xPH_{padding:var(--base-size-64) var(--base-size-64) 0}.Primer_Brand__Hero-module__Hero-imageContainer--inline-bg-padded___Y_hah{padding:var(--base-size-64)}}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh{width:100%;container-type:inline-size}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-media___rM3qR{max-width:1176px;margin-inline:auto;display:block;overflow:hidden}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-media--pos-block-end___6QShk,.Primer_Brand__Hero-module__Hero-media-item--block-end___RrUWM{border-radius:var(--brand-borderRadius-medium) var(--brand-borderRadius-medium) 0 0}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper___CscCA{border-block:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);background-color:var(--brand-color-canvas-subtle);width:100%}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner___jk8Wg{width:100%;max-width:1280px;padding:var(--base-size-32) var(--base-size-32) 0;margin-inline:auto}@container (width>=1280px){.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner--with-gridline___fixm4{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner--padded___cN4al{padding:var(--base-size-32)}.Primer_Brand__Hero-module__Hero-media--pos-block-end-padded___VdZlI{border-radius:var(--brand-borderRadius-medium)}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner___jk8Wg{padding:var(--base-size-64) var(--base-size-64) 0}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-imageWrapper-inner--padded___cN4al{padding:var(--base-size-64)}}.Primer_Brand__Hero-module__Hero-grid--bordered-inline___e_HR8{width:100%;max-width:1280px;margin-inline:auto}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-grid--bordered-inline___e_HR8{min-height:440px}}@container (width>=1280px){.Primer_Brand__Hero-module__Hero-grid--bordered-inline___e_HR8{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh.Primer_Brand__Hero-module__Hero--image-pos-inline___fwJAZ{border-block-end:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}.Primer_Brand__Hero-module__Hero-contentColumn--bordered-inline___2Dfrd{padding:var(--base-size-32);flex-direction:column;justify-content:center;display:flex}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-contentColumn--bordered-inline___2Dfrd{padding:var(--base-size-64)}}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-media--pos-inline___TD4jr:not(.Primer_Brand__Hero-module__Hero-media--pos-inline-padded___Uq4Xk),.Primer_Brand__Hero-module__Hero-media-item--inline___3XHJG{border-radius:0}.Primer_Brand__Hero-module__Hero--variant-gridline___B_Xwh .Primer_Brand__Hero-module__Hero-media--pos-inline-padded___Uq4Xk{align-self:center;max-width:100%;height:auto}.Primer_Brand__Hero-module__Hero-video___Ne5zN{width:100%}.Primer_Brand__Hero-module__Hero-media-item___Ia3pn{border-radius:var(--brand-borderRadius-large);width:100%}.Primer_Brand__Hero-module__Hero-label___XJftM{text-transform:uppercase;letter-spacing:1px;align-items:center;margin-block-end:calc(var(--base-size-16) - var(--base-size-2));display:flex}.Primer_Brand__Hero-module__Hero-heading___HMve3{max-width:924px;margin:0}.Primer_Brand__Hero-module__Hero-heading___HMve3 b{color:var(--brand-color-accent-primary);font-style:normal;font-weight:inherit}.Primer_Brand__Hero-module__Hero-heading--fullWidth___sJlnY{max-width:none;max-width:initial}.Primer_Brand__Hero-module__Hero-text-column--inline-gridline___gGhfi{height:100%}.Primer_Brand__Hero-module__Hero-description___7raSC{margin:var(--base-size-24) 0 0;max-width:600px}.Primer_Brand__Hero-module__Hero--variant-inline-gridline___Jwjqy .Primer_Brand__Hero-module__Hero-description___7raSC{margin-block-start:auto;padding-block-start:var(--base-size-24)}.Primer_Brand__Hero-module__Hero-actions___RUotq{align-items:center;gap:var(--base-size-8) var(--base-size-16);flex-wrap:wrap;margin-block-start:var(--base-size-28);display:flex}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-actions___RUotq{align-items:stretch;gap:var(--base-size-8) var(--base-size-12)}.Primer_Brand__Hero-module__Hero-trailing____cadc{margin-block-start:var(--base-size-32)}.Primer_Brand__Hero-module__Hero-eyebrow___mlxSE{margin-block-end:var(--base-size-32)}@media screen and (width>=34rem){.Primer_Brand__Hero-module__Hero--variant-default___lNgHw{padding:var(--brand-Hero-regular-padding)}}.Primer_Brand__Hero-module__Hero-video-poster-button___mtbvt{cursor:pointer;background:0 0;border:none;width:100%;height:100%;padding:0;font-size:0;line-height:0;display:block;position:relative}.Primer_Brand__Hero-module__Hero-video-poster-image___ZP3Q5{width:100%;height:auto;display:block}.Primer_Brand__Hero-module__Hero-video-poster-icon___PfT4p{width:var(--base-size-96);height:var(--base-size-96);z-index:1;color:var(--base-color-scale-white-0);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.Primer_Brand__Hero-module__Hero-video-poster-header___13M9x{padding:var(--base-size-16) var(--base-size-24);align-items:center;gap:var(--base-size-16);height:var(--base-size-80);background:linear-gradient(#000000b3 60%,#0000);display:flex;position:absolute;inset:0 0 auto}.Primer_Brand__Hero-module__Hero-video-header-poster-icon___tlEff,.Primer_Brand__Hero-module__Hero-video-poster-text___4R755{color:var(--base-color-scale-white-0)}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3{width:100%;container-type:inline-size}.Primer_Brand__Hero-module__Hero-grid--expressive___Lq5SC{--brand-Grid-spacing-row:0;gap:0;width:100%;max-width:1280px;margin-inline:auto}@container (width>=1280px){.Primer_Brand__Hero-module__Hero-grid--expressive___Lq5SC{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero-expressive-header-column___iq2TT{padding:var(--base-size-36);padding-inline:var(--base-size-20);border-block-end:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);align-items:center;padding-block-end:var(--base-size-28);display:flex}.Primer_Brand__Hero-module__Hero-expressive-body-column___Beyq_{padding:var(--base-size-32);padding-inline:var(--base-size-20);padding-block-start:var(--base-size-24)}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-description___7raSC{margin-block-start:0}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-actions___RUotq{margin-block-start:var(--base-size-28)}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-trailing____cadc{margin-block-start:var(--base-size-24)}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero-expressive-header-column___iq2TT{padding:var(--base-size-64);border-block-end:none;border-inline-end:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);padding-inline-end:var(--base-size-64)}.Primer_Brand__Hero-module__Hero-expressive-body-column___Beyq_{padding:var(--base-size-64);flex-direction:column;justify-content:flex-end;padding-inline-start:var(--base-size-64);display:flex}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-actions___RUotq{margin-block-start:var(--base-size-24)}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-trailing____cadc{margin-block-start:var(--base-size-20)}}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper___CscCA{border-block:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);background-color:var(--brand-color-canvas-subtle);width:100%}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner___jk8Wg{width:100%;max-width:1280px;padding:var(--base-size-32) var(--base-size-32) 0;margin-inline:auto}@container (width>=1280px){.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner--with-gridline___fixm4{border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted)}}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner--padded___cN4al{padding:var(--base-size-32)}@media screen and (width>=63.25rem){.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner___jk8Wg{padding:var(--base-size-64) var(--base-size-64) 0}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-imageWrapper-inner--padded___cN4al{padding:var(--base-size-64)}}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-media___rM3qR{max-width:1176px;margin-inline:auto;display:block;overflow:hidden}.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-media--pos-block-end___6QShk,.Primer_Brand__Hero-module__Hero--variant-gridline-expressive___yVRY3 .Primer_Brand__Hero-module__Hero-image___GC10l:not(.Primer_Brand__Hero-module__Hero-media--pos-block-end-padded___VdZlI){border-radius:var(--brand-borderRadius-medium) var(--brand-borderRadius-medium) 0 0}
@@ -1,4 +1,4 @@
1
- import './Hero.module-Cy82CEW3.css';var e = {
1
+ import './Hero.module-DqG5f0MT.css';var e = {
2
2
  Hero: "Primer_Brand__Hero-module__Hero___It6gj",
3
3
  "Hero--variant-default": "Primer_Brand__Hero-module__Hero--variant-default___lNgHw",
4
4
  "Hero--align-start": "Primer_Brand__Hero-module__Hero--align-start___ouSp3",