@primer/react-brand 0.69.0 → 0.69.1-rc.0a4e5ff5

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 (373) hide show
  1. package/esm/Footnotes/Footnotes.d.ts.map +1 -1
  2. package/esm/Footnotes/Footnotes.js +27 -26
  3. package/esm/Footnotes/Footnotes.js.map +1 -1
  4. package/esm/utils/getTextContent.d.ts +3 -0
  5. package/esm/utils/getTextContent.d.ts.map +1 -0
  6. package/esm/utils/getTextContent.js +16 -0
  7. package/esm/utils/getTextContent.js.map +1 -0
  8. package/lib/Hero/HeroContext.d.ts +1 -1
  9. package/lib/css/main.css +67 -67
  10. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  11. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  12. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  13. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  14. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  15. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  16. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  17. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  18. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  19. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  20. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  21. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  22. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  23. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  24. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  25. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  26. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  29. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  30. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  31. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  32. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  39. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  40. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  41. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  42. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  43. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  44. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  45. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  46. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  47. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  48. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  49. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  50. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  51. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  52. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  53. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  54. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  55. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  56. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  57. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  58. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  59. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  60. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  61. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  62. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  63. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  64. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  65. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  66. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  67. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  68. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  69. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  70. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  71. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  72. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  73. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  74. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  75. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  76. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  77. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  78. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  79. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  84. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  85. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  86. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  87. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  88. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  89. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  90. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  91. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  92. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  93. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  94. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  95. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  96. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  97. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  98. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  99. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  100. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  101. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  102. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  103. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  104. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  105. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  106. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  107. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  108. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  109. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  110. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  111. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  112. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  113. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  114. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  115. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  116. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  117. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  118. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  119. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  120. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  121. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  122. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  123. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  124. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  125. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  126. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  127. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  128. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  129. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  130. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  131. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  132. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  133. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  134. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  135. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  136. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  137. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  138. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  139. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  140. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  141. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  142. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  143. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  144. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  145. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  146. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  147. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  148. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  149. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  150. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  151. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  152. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  153. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  154. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  155. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  156. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  157. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  158. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  159. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  160. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  161. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  162. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  163. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  164. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  165. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  166. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  167. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  168. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  169. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  170. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  171. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  172. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  173. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  174. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  175. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  176. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  177. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  178. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  179. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  180. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  181. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  182. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  183. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  184. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  185. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  186. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  187. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  188. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  189. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  190. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  191. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  192. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  193. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  194. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  195. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  196. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  197. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  198. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  199. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  200. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  201. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  202. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  203. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  204. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  205. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  206. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  207. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  208. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  209. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  210. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  211. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  212. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  213. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  214. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  215. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  216. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  217. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  218. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  219. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  220. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  221. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  222. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  223. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  224. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  225. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  226. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  227. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  228. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  229. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  230. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  231. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  232. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  233. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  234. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  235. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  236. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  237. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  238. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  239. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  240. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  241. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  242. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  243. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  244. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  245. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  246. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  247. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  248. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  249. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  250. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  251. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  252. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  253. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  254. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  255. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  256. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  257. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  258. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  259. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  260. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  261. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  262. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  263. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  264. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  265. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  266. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  267. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  268. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  269. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  270. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  271. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  272. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  273. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  274. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  275. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  276. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  277. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  278. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  279. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  280. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  281. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  282. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  283. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  284. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  285. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  286. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  287. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  288. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  289. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  290. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  291. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  292. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  293. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  294. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  295. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  296. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  297. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  298. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  299. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  300. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  301. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  302. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  303. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  304. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  305. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  306. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  307. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  308. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  309. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  310. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  311. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  312. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  313. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  314. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  315. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  316. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  317. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  318. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  319. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  320. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  321. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  322. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  323. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  324. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  325. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  326. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  327. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  328. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  329. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  330. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  331. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  332. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  333. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  334. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  335. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  336. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  337. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  338. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  339. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  340. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  341. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  342. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  343. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  344. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  345. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  346. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  347. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  348. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  349. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  350. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  351. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  352. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  353. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  354. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  355. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  356. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  357. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  358. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  359. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  360. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  361. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  362. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  363. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  364. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  365. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  366. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  367. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  368. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  369. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  370. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  371. package/lib/index.js +1 -1
  372. package/lib/utils/getTextContent.d.ts +2 -0
  373. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Footnotes.d.ts","sourceRoot":"","sources":["../../src/Footnotes/Footnotes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAKnD,eAAO,MAAM,aAAa,wBAAyB,CAAA;AAEnD,KAAK,+BAA+B,GAChC,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,cAAc,CAAC,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAA;CAAC,CAAC,GACjF,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,gBAAgB,CAAC,GAAG;IAAC,EAAE,CAAC,EAAE,IAAI,CAAA;CAAC,CAAC,CAAA;AAE5F,KAAK,cAAc,GAAG;IACpB,EAAE,CAAC,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;IACnC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B,GAAG,+BAA+B,CAAA;AAEnC,iBAAS,IAAI,CAAC,EAAC,EAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAmC,EAAE,GAAG,IAAI,EAAC,EAAE,cAAc,2CAyC3G;AAED,eAAO,MAAM,iBAAiB,qBAAsB,CAAA;AAEpD,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,KAAK,0BAA0B,GAAG;IAChC,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,kBAAkB,GAAG,CAAC,yBAAyB,GAAG,0BAA0B,CAAC,GAChF,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,GAC1C,SAAS,CAAC,oBAAoB,CAAC,CAAA;AAEjC,iBAAS,IAAI,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAqB,EAAE,GAAG,IAAI,EAAC,EAAE,kBAAkB,2CAsBtF;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS;;CAA8B,CAAA"}
1
+ {"version":3,"file":"Footnotes.d.ts","sourceRoot":"","sources":["../../src/Footnotes/Footnotes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAMnD,eAAO,MAAM,aAAa,wBAAyB,CAAA;AAEnD,KAAK,+BAA+B,GAChC,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,cAAc,CAAC,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAA;CAAC,CAAC,GACjF,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,gBAAgB,CAAC,GAAG;IAAC,EAAE,CAAC,EAAE,IAAI,CAAA;CAAC,CAAC,CAAA;AAE5F,KAAK,cAAc,GAAG;IACpB,EAAE,CAAC,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;IACnC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B,GAAG,+BAA+B,CAAA;AAEnC,iBAAS,IAAI,CAAC,EAAC,EAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAmC,EAAE,GAAG,IAAI,EAAC,EAAE,cAAc,2CAyC3G;AAED,eAAO,MAAM,iBAAiB,qBAAsB,CAAA;AAEpD,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,KAAK,0BAA0B,GAAG;IAChC,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,kBAAkB,GAAG,CAAC,yBAAyB,GAAG,0BAA0B,CAAC,GAChF,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,GAC1C,SAAS,CAAC,oBAAoB,CAAC,CAAA;AAEjC,iBAAS,IAAI,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAqB,EAAE,GAAG,IAAI,EAAC,EAAE,kBAAkB,2CAsBtF;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS;;CAA8B,CAAA"}
@@ -4,67 +4,68 @@ import { Heading as n } from "../Heading/Heading.js";
4
4
  import { ReplyIcon as r } from "../node_modules/@primer/octicons-react/dist/index.esm.js";
5
5
  import { InlineLink as i } from "../InlineLink/InlineLink.js";
6
6
  import a from "./Footnotes.module.js";
7
- import o from "react";
8
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ import { getTextContent as o } from "../utils/getTextContent.js";
8
+ import s from "react";
9
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
9
10
  //#region src/Footnotes/Footnotes.tsx
10
- var u = ["div", "ol"];
11
- function d({ as: t = "ol", className: r, children: i, visuallyHiddenHeading: u = "Footnotes", ...d }) {
12
- let f = o.useMemo(() => o.Children.toArray(i), [i]);
11
+ var d = ["div", "ol"];
12
+ function f({ as: t = "ol", className: r, children: i, visuallyHiddenHeading: o = "Footnotes", ...d }) {
13
+ let f = s.useMemo(() => s.Children.toArray(i), [i]);
13
14
  if (t === "div") {
14
- let t = f.map((e) => o.isValidElement(e) && e.type === p ? o.cloneElement(e, {
15
+ let t = f.map((e) => s.isValidElement(e) && e.type === m ? s.cloneElement(e, {
15
16
  _variant: "disclaimer",
16
17
  ...e.props
17
18
  }) : null);
18
- return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(n, {
19
+ return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(n, {
19
20
  className: "visually-hidden",
20
21
  as: "h2",
21
22
  id: "footnote-label",
22
- children: u
23
- }), /* @__PURE__ */ c("div", {
23
+ children: o
24
+ }), /* @__PURE__ */ l("div", {
24
25
  className: e(a.Footnotes, a["Footnotes--variant-disclaimer"], r),
25
26
  ...d,
26
27
  children: t
27
28
  })] });
28
29
  }
29
- return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(n, {
30
+ return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(n, {
30
31
  className: "visually-hidden",
31
32
  as: "h2",
32
33
  id: "footnote-label",
33
- children: u
34
- }), /* @__PURE__ */ c("ol", {
34
+ children: o
35
+ }), /* @__PURE__ */ l("ol", {
35
36
  className: e(a.Footnotes, a["Footnotes--variant-citations"], r),
36
37
  ...d,
37
38
  children: i
38
39
  })] });
39
40
  }
40
- var f = ["a", "p"];
41
- function p({ className: n, children: o, _variant: s = "citation", ...u }) {
42
- if (s === "disclaimer") return /* @__PURE__ */ c(t, {
41
+ var p = ["a", "p"];
42
+ function m({ className: n, children: s, _variant: c = "citation", ...d }) {
43
+ if (c === "disclaimer") return /* @__PURE__ */ l(t, {
43
44
  as: "p",
44
45
  variant: "muted",
45
46
  size: "100",
46
47
  className: e(a.FootnotesItem, n),
47
- children: o
48
+ children: s
48
49
  });
49
- let { href: d, ...f } = u;
50
- return /* @__PURE__ */ c("li", {
50
+ let { href: f, ...p } = d;
51
+ return /* @__PURE__ */ l("li", {
51
52
  className: e(a.FootnotesItem, n),
52
- ...f,
53
- children: /* @__PURE__ */ l(t, {
53
+ ...p,
54
+ children: /* @__PURE__ */ u(t, {
54
55
  as: "p",
55
56
  variant: "muted",
56
57
  size: "100",
57
58
  className: e(a.FootnotesItem__citationText),
58
- children: [o, d && /* @__PURE__ */ c(i, {
59
- href: d,
60
- "aria-label": "Back to content",
61
- children: /* @__PURE__ */ c(r, { className: a.FootnotesItem__citationIcon })
59
+ children: [s, f && /* @__PURE__ */ l(i, {
60
+ href: f,
61
+ "aria-label": `Back to content ${o(s)}`,
62
+ children: /* @__PURE__ */ l(r, { className: a.FootnotesItem__citationIcon })
62
63
  })]
63
64
  })
64
65
  });
65
66
  }
66
- var m = Object.assign(d, { Item: p });
67
+ var h = Object.assign(f, { Item: m });
67
68
  //#endregion
68
- export { m as Footnotes, f as FootnotesItemTags, u as FootnotesTags };
69
+ export { h as Footnotes, p as FootnotesItemTags, d as FootnotesTags };
69
70
 
70
71
  //# sourceMappingURL=Footnotes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footnotes.js","names":[],"sources":["../../src/Footnotes/Footnotes.tsx"],"sourcesContent":["import React from 'react'\nimport {ReplyIcon} from '@primer/octicons-react'\nimport {clsx} from 'clsx'\n\nimport {Heading, InlineLink, Text} from '../'\nimport type {BaseProps} from '../component-helpers'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Footnotes.module.css'\n\nexport const FootnotesTags = ['div', 'ol'] as const\n\ntype FootnotesRestrictedPolymorphism =\n | (React.HTMLAttributes<HTMLDivElement> & BaseProps<HTMLDivElement> & {as?: 'div'})\n | (React.HTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLOListElement> & {as?: 'ol'})\n\ntype FootnotesProps = {\n as?: (typeof FootnotesTags)[number]\n visuallyHiddenHeading?: string\n} & FootnotesRestrictedPolymorphism\n\nfunction Root({as = 'ol', className, children, visuallyHiddenHeading = 'Footnotes', ...rest}: FootnotesProps) {\n const memoizedChildren = React.useMemo(() => React.Children.toArray(children), [children])\n\n if (as === 'div') {\n const filteredChildren = memoizedChildren.map(child => {\n if (React.isValidElement<FootnotesItemProps>(child) && child.type === Item) {\n return React.cloneElement(child, {\n _variant: 'disclaimer',\n ...child.props,\n })\n }\n return null\n })\n return (\n <>\n <Heading className=\"visually-hidden\" as=\"h2\" id=\"footnote-label\">\n {visuallyHiddenHeading}\n </Heading>\n <div\n className={clsx(styles.Footnotes, styles['Footnotes--variant-disclaimer'], className)}\n {...(rest as BaseProps<HTMLDivElement>)}\n >\n {filteredChildren}\n </div>\n </>\n )\n }\n\n return (\n <>\n <Heading className=\"visually-hidden\" as=\"h2\" id=\"footnote-label\">\n {visuallyHiddenHeading}\n </Heading>\n <ol\n className={clsx(styles.Footnotes, styles['Footnotes--variant-citations'], className)}\n {...(rest as BaseProps<HTMLOListElement>)}\n >\n {children}\n </ol>\n </>\n )\n}\n\nexport const FootnotesItemTags = ['a', 'p'] as const\n\ntype DefaultFootnotesItemProps = {\n _variant?: 'disclaimer'\n}\n\ntype CitationFootnotesItemProps = {\n _variant?: 'citation'\n href?: string\n}\n\ntype FootnotesItemProps = (DefaultFootnotesItemProps | CitationFootnotesItemProps) &\n React.HTMLAttributes<HTMLParagraphElement> &\n BaseProps<HTMLParagraphElement>\n\nfunction Item({className, children, _variant = 'citation', ...rest}: FootnotesItemProps) {\n if (_variant === 'disclaimer') {\n return (\n <Text as=\"p\" variant=\"muted\" size=\"100\" className={clsx(styles.FootnotesItem, className)}>\n {children}\n </Text>\n )\n }\n\n const {href, ...restSansHref} = rest as CitationFootnotesItemProps\n return (\n <li className={clsx(styles.FootnotesItem, className)} {...(restSansHref as CitationFootnotesItemProps)}>\n <Text as=\"p\" variant=\"muted\" size=\"100\" className={clsx(styles.FootnotesItem__citationText)}>\n {children}\n {href && (\n <InlineLink href={href} aria-label=\"Back to content\">\n <ReplyIcon className={styles.FootnotesItem__citationIcon} />\n </InlineLink>\n )}\n </Text>\n </li>\n )\n}\n\n/**\n * Footnotes component\n * {@link https://primer.style/brand/components/Footnotes/ See usage examples}.\n */\nexport const Footnotes = Object.assign(Root, {Item})\n"],"mappings":";;;;;;;;;AAUA,IAAa,IAAgB,CAAC,OAAO,KAAK;AAW1C,SAAS,EAAK,EAAC,QAAK,MAAM,cAAW,aAAU,2BAAwB,aAAa,GAAG,KAAuB;CAC5G,IAAM,IAAmB,EAAM,cAAc,EAAM,SAAS,QAAQ,EAAS,EAAE,CAAC,EAAS,CAAC;AAE1F,KAAI,MAAO,OAAO;EAChB,IAAM,IAAmB,EAAiB,KAAI,MACxC,EAAM,eAAmC,EAAM,IAAI,EAAM,SAAS,IAC7D,EAAM,aAAa,GAAO;GAC/B,UAAU;GACV,GAAG,EAAM;GACV,CAAC,GAEG,KACP;AACF,SACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;GAAS,WAAU;GAAkB,IAAG;GAAK,IAAG;aAC7C;GACO,CAAA,EACV,kBAAC,OAAD;GACE,WAAW,EAAK,EAAO,WAAW,EAAO,kCAAkC,EAAU;GACrF,GAAK;aAEJ;GACG,CAAA,CACL,EAAA,CAAA;;AAIP,QACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;EAAS,WAAU;EAAkB,IAAG;EAAK,IAAG;YAC7C;EACO,CAAA,EACV,kBAAC,MAAD;EACE,WAAW,EAAK,EAAO,WAAW,EAAO,iCAAiC,EAAU;EACpF,GAAK;EAEJ;EACE,CAAA,CACJ,EAAA,CAAA;;AAIP,IAAa,IAAoB,CAAC,KAAK,IAAI;AAe3C,SAAS,EAAK,EAAC,cAAW,aAAU,cAAW,YAAY,GAAG,KAA2B;AACvF,KAAI,MAAa,aACf,QACE,kBAAC,GAAD;EAAM,IAAG;EAAI,SAAQ;EAAQ,MAAK;EAAM,WAAW,EAAK,EAAO,eAAe,EAAU;EACrF;EACI,CAAA;CAIX,IAAM,EAAC,SAAM,GAAG,MAAgB;AAChC,QACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAO,eAAe,EAAU;EAAE,GAAK;YACzD,kBAAC,GAAD;GAAM,IAAG;GAAI,SAAQ;GAAQ,MAAK;GAAM,WAAW,EAAK,EAAO,4BAA4B;aAA3F,CACG,GACA,KACC,kBAAC,GAAD;IAAkB;IAAM,cAAW;cACjC,kBAAC,GAAD,EAAW,WAAW,EAAO,6BAA+B,CAAA;IACjD,CAAA,CAEV;;EACJ,CAAA;;AAQT,IAAa,IAAY,OAAO,OAAO,GAAM,EAAC,SAAK,CAAC"}
1
+ {"version":3,"file":"Footnotes.js","names":[],"sources":["../../src/Footnotes/Footnotes.tsx"],"sourcesContent":["import React from 'react'\nimport {ReplyIcon} from '@primer/octicons-react'\nimport {clsx} from 'clsx'\n\nimport {Heading, InlineLink, Text} from '../'\nimport type {BaseProps} from '../component-helpers'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Footnotes.module.css'\nimport {getTextContent} from '../utils/getTextContent'\n\nexport const FootnotesTags = ['div', 'ol'] as const\n\ntype FootnotesRestrictedPolymorphism =\n | (React.HTMLAttributes<HTMLDivElement> & BaseProps<HTMLDivElement> & {as?: 'div'})\n | (React.HTMLAttributes<HTMLParagraphElement> & BaseProps<HTMLOListElement> & {as?: 'ol'})\n\ntype FootnotesProps = {\n as?: (typeof FootnotesTags)[number]\n visuallyHiddenHeading?: string\n} & FootnotesRestrictedPolymorphism\n\nfunction Root({as = 'ol', className, children, visuallyHiddenHeading = 'Footnotes', ...rest}: FootnotesProps) {\n const memoizedChildren = React.useMemo(() => React.Children.toArray(children), [children])\n\n if (as === 'div') {\n const filteredChildren = memoizedChildren.map(child => {\n if (React.isValidElement<FootnotesItemProps>(child) && child.type === Item) {\n return React.cloneElement(child, {\n _variant: 'disclaimer',\n ...child.props,\n })\n }\n return null\n })\n return (\n <>\n <Heading className=\"visually-hidden\" as=\"h2\" id=\"footnote-label\">\n {visuallyHiddenHeading}\n </Heading>\n <div\n className={clsx(styles.Footnotes, styles['Footnotes--variant-disclaimer'], className)}\n {...(rest as BaseProps<HTMLDivElement>)}\n >\n {filteredChildren}\n </div>\n </>\n )\n }\n\n return (\n <>\n <Heading className=\"visually-hidden\" as=\"h2\" id=\"footnote-label\">\n {visuallyHiddenHeading}\n </Heading>\n <ol\n className={clsx(styles.Footnotes, styles['Footnotes--variant-citations'], className)}\n {...(rest as BaseProps<HTMLOListElement>)}\n >\n {children}\n </ol>\n </>\n )\n}\n\nexport const FootnotesItemTags = ['a', 'p'] as const\n\ntype DefaultFootnotesItemProps = {\n _variant?: 'disclaimer'\n}\n\ntype CitationFootnotesItemProps = {\n _variant?: 'citation'\n href?: string\n}\n\ntype FootnotesItemProps = (DefaultFootnotesItemProps | CitationFootnotesItemProps) &\n React.HTMLAttributes<HTMLParagraphElement> &\n BaseProps<HTMLParagraphElement>\n\nfunction Item({className, children, _variant = 'citation', ...rest}: FootnotesItemProps) {\n if (_variant === 'disclaimer') {\n return (\n <Text as=\"p\" variant=\"muted\" size=\"100\" className={clsx(styles.FootnotesItem, className)}>\n {children}\n </Text>\n )\n }\n\n const {href, ...restSansHref} = rest as CitationFootnotesItemProps\n return (\n <li className={clsx(styles.FootnotesItem, className)} {...(restSansHref as CitationFootnotesItemProps)}>\n <Text as=\"p\" variant=\"muted\" size=\"100\" className={clsx(styles.FootnotesItem__citationText)}>\n {children}\n {href && (\n <InlineLink href={href} aria-label={`Back to content ${getTextContent(children)}`}>\n <ReplyIcon className={styles.FootnotesItem__citationIcon} />\n </InlineLink>\n )}\n </Text>\n </li>\n )\n}\n\n/**\n * Footnotes component\n * {@link https://primer.style/brand/components/Footnotes/ See usage examples}.\n */\nexport const Footnotes = Object.assign(Root, {Item})\n"],"mappings":";;;;;;;;;;AAWA,IAAa,IAAgB,CAAC,OAAO,KAAK;AAW1C,SAAS,EAAK,EAAC,QAAK,MAAM,cAAW,aAAU,2BAAwB,aAAa,GAAG,KAAuB;CAC5G,IAAM,IAAmB,EAAM,cAAc,EAAM,SAAS,QAAQ,EAAS,EAAE,CAAC,EAAS,CAAC;AAE1F,KAAI,MAAO,OAAO;EAChB,IAAM,IAAmB,EAAiB,KAAI,MACxC,EAAM,eAAmC,EAAM,IAAI,EAAM,SAAS,IAC7D,EAAM,aAAa,GAAO;GAC/B,UAAU;GACV,GAAG,EAAM;GACV,CAAC,GAEG,KACP;AACF,SACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;GAAS,WAAU;GAAkB,IAAG;GAAK,IAAG;aAC7C;GACO,CAAA,EACV,kBAAC,OAAD;GACE,WAAW,EAAK,EAAO,WAAW,EAAO,kCAAkC,EAAU;GACrF,GAAK;aAEJ;GACG,CAAA,CACL,EAAA,CAAA;;AAIP,QACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;EAAS,WAAU;EAAkB,IAAG;EAAK,IAAG;YAC7C;EACO,CAAA,EACV,kBAAC,MAAD;EACE,WAAW,EAAK,EAAO,WAAW,EAAO,iCAAiC,EAAU;EACpF,GAAK;EAEJ;EACE,CAAA,CACJ,EAAA,CAAA;;AAIP,IAAa,IAAoB,CAAC,KAAK,IAAI;AAe3C,SAAS,EAAK,EAAC,cAAW,aAAU,cAAW,YAAY,GAAG,KAA2B;AACvF,KAAI,MAAa,aACf,QACE,kBAAC,GAAD;EAAM,IAAG;EAAI,SAAQ;EAAQ,MAAK;EAAM,WAAW,EAAK,EAAO,eAAe,EAAU;EACrF;EACI,CAAA;CAIX,IAAM,EAAC,SAAM,GAAG,MAAgB;AAChC,QACE,kBAAC,MAAD;EAAI,WAAW,EAAK,EAAO,eAAe,EAAU;EAAE,GAAK;YACzD,kBAAC,GAAD;GAAM,IAAG;GAAI,SAAQ;GAAQ,MAAK;GAAM,WAAW,EAAK,EAAO,4BAA4B;aAA3F,CACG,GACA,KACC,kBAAC,GAAD;IAAkB;IAAM,cAAY,mBAAmB,EAAe,EAAS;cAC7E,kBAAC,GAAD,EAAW,WAAW,EAAO,6BAA+B,CAAA;IACjD,CAAA,CAEV;;EACJ,CAAA;;AAQT,IAAa,IAAY,OAAO,OAAO,GAAM,EAAC,SAAK,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare function getTextContent(node: React.ReactNode): string;
3
+ //# sourceMappingURL=getTextContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTextContent.d.ts","sourceRoot":"","sources":["../../src/utils/getTextContent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,wBAAgB,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAiB5D"}
@@ -0,0 +1,16 @@
1
+ import e from "react";
2
+ //#region src/utils/getTextContent.ts
3
+ function t(n) {
4
+ if (!n) return "";
5
+ if (typeof n == "string" || typeof n == "number") return String(n);
6
+ if (Array.isArray(n)) return n.map(t).join("");
7
+ if (e.isValidElement(n)) {
8
+ let e = n.props;
9
+ return t(e.children);
10
+ }
11
+ return "";
12
+ }
13
+ //#endregion
14
+ export { t as getTextContent };
15
+
16
+ //# sourceMappingURL=getTextContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTextContent.js","names":[],"sources":["../../src/utils/getTextContent.ts"],"sourcesContent":["import React from 'react'\n\nexport function getTextContent(node: React.ReactNode): string {\n if (!node) return ''\n\n if (typeof node === 'string' || typeof node === 'number') {\n return String(node)\n }\n\n if (Array.isArray(node)) {\n return node.map(getTextContent).join('')\n }\n\n if (React.isValidElement(node)) {\n const props = node.props as {children?: React.ReactNode}\n return getTextContent(props.children)\n }\n\n return ''\n}\n"],"mappings":";;AAEA,SAAgB,EAAe,GAA+B;AAC5D,KAAI,CAAC,EAAM,QAAO;AAElB,KAAI,OAAO,KAAS,YAAY,OAAO,KAAS,SAC9C,QAAO,OAAO,EAAK;AAGrB,KAAI,MAAM,QAAQ,EAAK,CACrB,QAAO,EAAK,IAAI,EAAe,CAAC,KAAK,GAAG;AAG1C,KAAI,EAAM,eAAe,EAAK,EAAE;EAC9B,IAAM,IAAQ,EAAK;AACnB,SAAO,EAAe,EAAM,SAAS;;AAGvC,QAAO"}
@@ -4,7 +4,7 @@ export type HeroAlign = (typeof HeroAlignOptions)[number];
4
4
  export declare const HeroVariantOptions: readonly ["default", "gridline", "gridline-expressive"];
5
5
  export type HeroVariant = (typeof HeroVariantOptions)[number];
6
6
  export declare const heroMediaPositions: readonly ["block-end", "block-end-padded", "inline-start", "inline-end", "inline-end-padded", "inline-start-padded"];
7
- export declare const heroMediaInlinePositions: ("block-end" | "block-end-padded" | "inline-start" | "inline-end" | "inline-end-padded" | "inline-start-padded")[];
7
+ export declare const heroMediaInlinePositions: ("inline-end" | "inline-start" | "block-end" | "block-end-padded" | "inline-end-padded" | "inline-start-padded")[];
8
8
  export type HeroMediaPositions = (typeof heroMediaPositions)[number];
9
9
  export type HeroMediaInlinePositions = (typeof heroMediaInlinePositions)[number];
10
10
  type HeroContextType = {