@primer/react-brand 0.81.0-rc.1b89e69c → 0.81.0-rc.b64e5144

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 (460) hide show
  1. package/docs/index.md +2 -2
  2. package/esm/Card/Card.d.ts.map +1 -1
  3. package/esm/Card/Card.js +0 -1
  4. package/esm/Card/Card.js.map +1 -1
  5. package/lib/css/main.css +83 -83
  6. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  7. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  8. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  9. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  10. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  11. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  12. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  13. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  14. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  15. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  16. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  17. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  18. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  19. package/lib/design-tokens/css/tokens/functional/components/button/base.css +1 -1
  20. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  21. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  22. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  23. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  24. package/lib/design-tokens/css/tokens/functional/components/carousel-pagination/colors-with-modes.css +1 -1
  25. package/lib/design-tokens/css/tokens/functional/components/carousel-pagination/colors.css +1 -1
  26. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  29. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  30. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  31. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  32. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/base.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/colors-with-modes.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
  39. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  40. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  41. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  42. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  43. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  44. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  45. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  46. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  47. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  48. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  49. package/lib/design-tokens/css/tokens/functional/components/icon-button/base.css +1 -1
  50. package/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes.css +1 -1
  51. package/lib/design-tokens/css/tokens/functional/components/icon-button/colors.css +1 -1
  52. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  53. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  54. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  55. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
  56. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
  57. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  58. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  59. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  60. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  61. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  62. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  63. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  64. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  65. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  66. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  67. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  68. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  69. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
  70. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  71. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  72. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  73. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  74. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  75. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  76. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  77. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  78. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  79. package/lib/design-tokens/css/tokens/functional/components/spinner/base.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/components/spinner/colors-with-modes.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/components/spinner/colors.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  84. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  85. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  86. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  87. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  88. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  89. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  90. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  91. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  92. package/lib/design-tokens/css/tokens/functional/components/testimonial-group/base.css +1 -1
  93. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
  94. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  95. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  96. package/lib/design-tokens/css/tokens/functional/components/tiles/base.css +1 -1
  97. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  98. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  99. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  100. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  101. package/lib/design-tokens/css/tokens/functional/components/toggle-switch/base.css +1 -1
  102. package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors-with-modes.css +1 -1
  103. package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors.css +1 -1
  104. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  105. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  106. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  107. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  108. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  109. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  110. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  111. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  112. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  113. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  114. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  115. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  116. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  117. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  118. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  119. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  120. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  121. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  122. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  123. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  124. package/lib/design-tokens/js/module/tokens/functional/components/button/base.js +1 -1
  125. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  126. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  127. package/lib/design-tokens/js/module/tokens/functional/components/carousel-pagination/colors.js +1 -1
  128. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  129. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  130. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  131. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  132. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  133. package/lib/design-tokens/js/module/tokens/functional/components/feature-comparison-table/base.js +1 -1
  134. package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
  135. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  136. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  137. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  138. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  139. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  140. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  141. package/lib/design-tokens/js/module/tokens/functional/components/icon-button/base.js +1 -1
  142. package/lib/design-tokens/js/module/tokens/functional/components/icon-button/colors.js +1 -1
  143. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  144. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  145. package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
  146. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  147. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  148. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  149. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  150. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  151. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  152. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  153. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  154. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  155. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  156. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  157. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  158. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  159. package/lib/design-tokens/js/module/tokens/functional/components/spinner/base.js +1 -1
  160. package/lib/design-tokens/js/module/tokens/functional/components/spinner/colors.js +1 -1
  161. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  162. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  163. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  164. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  165. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  166. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  167. package/lib/design-tokens/js/module/tokens/functional/components/testimonial-group/base.js +1 -1
  168. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
  169. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  170. package/lib/design-tokens/js/module/tokens/functional/components/tiles/base.js +1 -1
  171. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  172. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  173. package/lib/design-tokens/js/module/tokens/functional/components/toggle-switch/base.js +1 -1
  174. package/lib/design-tokens/js/module/tokens/functional/components/toggle-switch/colors.js +1 -1
  175. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  176. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  177. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  178. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  179. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  180. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  181. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  182. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  183. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  184. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  185. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  186. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  187. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  188. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  189. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  190. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  191. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  192. package/lib/design-tokens/js/tokens/functional/components/button/base.js +1 -1
  193. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  194. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  195. package/lib/design-tokens/js/tokens/functional/components/carousel-pagination/colors.js +1 -1
  196. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  197. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  198. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  199. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  200. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  201. package/lib/design-tokens/js/tokens/functional/components/feature-comparison-table/base.js +1 -1
  202. package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
  203. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  204. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  205. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  206. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  207. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  208. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  209. package/lib/design-tokens/js/tokens/functional/components/icon-button/base.js +1 -1
  210. package/lib/design-tokens/js/tokens/functional/components/icon-button/colors.js +1 -1
  211. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  212. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  213. package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
  214. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  215. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  216. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  217. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  218. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  219. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  220. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  221. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  222. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  223. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  224. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  225. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  226. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  227. package/lib/design-tokens/js/tokens/functional/components/spinner/base.js +1 -1
  228. package/lib/design-tokens/js/tokens/functional/components/spinner/colors.js +1 -1
  229. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  230. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  231. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  232. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  233. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  234. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  235. package/lib/design-tokens/js/tokens/functional/components/testimonial-group/base.js +1 -1
  236. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
  237. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  238. package/lib/design-tokens/js/tokens/functional/components/tiles/base.js +1 -1
  239. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  240. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  241. package/lib/design-tokens/js/tokens/functional/components/toggle-switch/base.js +1 -1
  242. package/lib/design-tokens/js/tokens/functional/components/toggle-switch/colors.js +1 -1
  243. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  244. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  245. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  246. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  247. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  248. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  249. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  250. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  251. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  252. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  253. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  254. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  255. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  256. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  257. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  258. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  259. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  260. package/lib/design-tokens/scss/tokens/functional/components/button/base.scss +1 -1
  261. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  262. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  263. package/lib/design-tokens/scss/tokens/functional/components/carousel-pagination/colors.scss +1 -1
  264. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  265. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  266. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  267. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  268. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  269. package/lib/design-tokens/scss/tokens/functional/components/feature-comparison-table/base.scss +1 -1
  270. package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
  271. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  272. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  273. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  274. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  275. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  276. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  277. package/lib/design-tokens/scss/tokens/functional/components/icon-button/base.scss +1 -1
  278. package/lib/design-tokens/scss/tokens/functional/components/icon-button/colors.scss +1 -1
  279. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  280. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  281. package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
  282. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  283. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  284. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  285. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  286. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  287. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  288. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  289. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  290. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  291. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  292. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  293. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  294. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  295. package/lib/design-tokens/scss/tokens/functional/components/spinner/base.scss +1 -1
  296. package/lib/design-tokens/scss/tokens/functional/components/spinner/colors.scss +1 -1
  297. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  298. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  299. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  300. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  301. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  302. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  303. package/lib/design-tokens/scss/tokens/functional/components/testimonial-group/base.scss +1 -1
  304. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
  305. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  306. package/lib/design-tokens/scss/tokens/functional/components/tiles/base.scss +1 -1
  307. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  308. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  309. package/lib/design-tokens/scss/tokens/functional/components/toggle-switch/base.scss +1 -1
  310. package/lib/design-tokens/scss/tokens/functional/components/toggle-switch/colors.scss +1 -1
  311. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  312. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  313. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  314. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  315. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  316. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  317. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  318. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  319. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  320. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  321. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  322. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  323. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  324. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  325. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  326. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  327. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  328. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  329. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  330. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  331. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  332. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  333. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  334. package/lib/design-tokens/ts/tokens/functional/components/button/base.d.ts +1 -1
  335. package/lib/design-tokens/ts/tokens/functional/components/button/base.js +1 -1
  336. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  337. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  338. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  339. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  340. package/lib/design-tokens/ts/tokens/functional/components/carousel-pagination/colors.d.ts +1 -1
  341. package/lib/design-tokens/ts/tokens/functional/components/carousel-pagination/colors.js +1 -1
  342. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  343. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  344. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  345. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  346. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  347. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  348. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  349. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  350. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  351. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  352. package/lib/design-tokens/ts/tokens/functional/components/feature-comparison-table/base.d.ts +1 -1
  353. package/lib/design-tokens/ts/tokens/functional/components/feature-comparison-table/base.js +1 -1
  354. package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
  355. package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
  356. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  357. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  358. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  359. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  360. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  361. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  362. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  363. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  364. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  365. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  366. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  367. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  368. package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.d.ts +1 -1
  369. package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.js +1 -1
  370. package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.d.ts +1 -1
  371. package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.js +1 -1
  372. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  373. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  374. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  375. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  376. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
  377. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
  378. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  379. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  380. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  381. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  382. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  383. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  384. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  385. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  386. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  387. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  388. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  389. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  390. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  391. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  392. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  393. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  394. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  395. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  396. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  397. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  398. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  399. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  400. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  401. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  402. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  403. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  404. package/lib/design-tokens/ts/tokens/functional/components/spinner/base.d.ts +1 -1
  405. package/lib/design-tokens/ts/tokens/functional/components/spinner/base.js +1 -1
  406. package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.d.ts +1 -1
  407. package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.js +1 -1
  408. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  409. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  410. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  411. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  412. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  413. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  414. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  415. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  416. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  417. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  418. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  419. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  420. package/lib/design-tokens/ts/tokens/functional/components/testimonial-group/base.d.ts +1 -1
  421. package/lib/design-tokens/ts/tokens/functional/components/testimonial-group/base.js +1 -1
  422. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
  423. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
  424. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  425. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  426. package/lib/design-tokens/ts/tokens/functional/components/tiles/base.d.ts +1 -1
  427. package/lib/design-tokens/ts/tokens/functional/components/tiles/base.js +1 -1
  428. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  429. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  430. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  431. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  432. package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/base.d.ts +1 -1
  433. package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/base.js +1 -1
  434. package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.d.ts +1 -1
  435. package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.js +1 -1
  436. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  437. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  438. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  439. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  440. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  441. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  442. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  443. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  444. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  445. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  446. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  447. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  448. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  449. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  450. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  451. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  452. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  453. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  454. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  455. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  456. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  457. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  458. package/lib/index.js +1 -1
  459. package/llms.txt +2 -2
  460. package/package.json +1 -1
package/docs/index.md CHANGED
@@ -1,6 +1,6 @@
1
- # Primer Brand docs (v0.81.0-rc.1b89e69c)
1
+ # Primer Brand docs (v0.81.0-rc.b64e5144)
2
2
 
3
- These docs are bundled with `@primer/react-brand@0.81.0-rc.1b89e69c` and match your installed version.
3
+ These docs are bundled with `@primer/react-brand@0.81.0-rc.b64e5144` and match your installed version.
4
4
 
5
5
  New here? Start with [Getting started](getting-started/index.md) for installation, global
6
6
  stylesheet and font setup. Component directories are named after their import (e.g.
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAGlD,OAAO,EAAU,YAAY,EAAe,KAAK,UAAU,EAAC,MAAM,IAAI,CAAA;AAEtE,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,SAAS,CAAA;AAG5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAKnD;;GAEG;AACH,OAAO,+GAA+G,CAAA;AACtH,OAAO,2FAA2F,CAAA;AAClG,OAAO,wGAAwG,CAAA;AAQ/G,eAAO,MAAM,YAAY,iCAAkC,CAAA;AAC3D,eAAO,MAAM,eAAe,oCAAqC,CAAA;AACjE,eAAO,MAAM,oBAAoB,wCAAyC,CAAA;AAC1E,eAAO,MAAM,kBAAkB,uCAAwC,CAAA;AACvE,eAAO,MAAM,iBAAiB,mCAAoC,CAAA;AAClE,eAAO,MAAM,uBAAuB,8BAA+B,CAAA;AAEnE,eAAO,MAAM,cAAc,wIAAS,CAAA;AAEpC,eAAO,MAAM,oBAAoB,WAAoB,CAAA;A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,CAAC,SAAS,EAAE,CAAA;IAC7C,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC7B,CAAA;AAoBD,KAAK,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC,GAC/D,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG;IACzD,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC7C,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC3B,CAAA;AAwBH,KAAK,gBAAgB,GAAG,SAAS,CAAC,kBAAkB,CAAC,GAAG;IACtD,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC7C,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,GAAG,IAAI,CAAC,YAAY,EAAE,cAAc,GAAG,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC,GAC5E,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAA;AAqBrC,KAAK,oBAAoB,GAAG,SAAS,CAAC,oBAAoB,CAAC,GAAG;IAC5D,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CAC9C,CAAA;AAwBD;;;GAGG;AACH,eAAO,MAAM,IAAI;;mDA/G8C,SAAS;;;;;CAsHtE,CAAA"}
package/esm/Card/Card.js CHANGED
@@ -54,7 +54,6 @@ var _ = ["default", "minimal"], v = [
54
54
  X === "block-end" ? F : null,
55
55
  v === "none" ? null : /* @__PURE__ */ g("div", {
56
56
  className: e(f.Card__action, v === "arrow" && f["Card__action--arrowOnly"]),
57
- "aria-hidden": v === "arrow" || void 0,
58
57
  children: [/* @__PURE__ */ h("span", {
59
58
  className: e(v === "arrow" && f.Card__actionLabelClip),
60
59
  children: /* @__PURE__ */ h(r, {
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","names":[],"sources":["../../src/Card/Card.tsx"],"sourcesContent":["import React, {RefObject, forwardRef} from 'react'\n\nimport {clsx} from 'clsx'\nimport {Heading, HeadingProps, Text, Image, type ImageProps} from '..'\nimport {EyebrowText} from '../EyebrowText'\nimport {Icon, type IconProps} from '../Icon'\nimport {Token} from '../Token'\nimport {ExpandableArrow} from '../ExpandableArrow'\nimport type {BaseProps} from '../component-helpers'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\nimport {Colors} from '../constants'\nimport {isFragmentElement} from '../utils/isFragmentElement'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/card/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css'\n\n/**\n * Main stylesheet (as a CSS Module)\n */\nimport styles from './Card.module.css'\nimport stylesLink from '../Link/Link.module.css'\n\nexport const CardVariants = ['default', 'minimal'] as const\nexport const CardCTAVariants = ['text', 'arrow', 'none'] as const\nexport const CardBackgroundColors = ['default', 'subtle', 'none'] as const\nexport const CardTokenPositions = ['block-start', 'block-end'] as const\nexport const CardLabelVariants = ['token', 'accent-text'] as const\nexport const CardImagePaddingOptions = ['default', 'none'] as const\n\nexport const CardIconColors = Colors\n\nexport const defaultCardIconColor = CardIconColors[0]\nexport const defaultCardCTAVariant = CardCTAVariants[0]\nexport const defaultCardLabelVariant = CardLabelVariants[0]\n\nexport type CardVariants = (typeof CardVariants)[number]\nexport type CardCTAVariant = (typeof CardCTAVariants)[number]\nexport type CardTokenPosition = (typeof CardTokenPositions)[number]\nexport type CardLabelVariant = (typeof CardLabelVariants)[number]\nexport type CardBackgroundColor = (typeof CardBackgroundColors)[number]\nexport type CardImagePadding = (typeof CardImagePaddingOptions)[number]\n\ntype CardLeadingVisual = React.ReactElement | React.ComponentType<{className?: string}>\n\nexport type CardProps = {\n /**\n * Specify alternative card appearance\n */\n variant?: CardVariants\n /**\n * Valid children include Card.Image, Card.Icon, Card.Label, Card.Tokens, Card.Heading, and Card.Description\n */\n children:\n | React.ReactNode\n | React.ReactElement<CardImageProps>\n | React.ReactElement<CardIconProps>\n | React.ReactElement<CardLabelProps>\n | React.ReactElement<CardTokensProps>\n | React.ReactElement<CardHeadingProps>\n | React.ReactElement<CardDescriptionProps>\n /**\n * Disable transitions and animations within the Card\n */\n disableAnimation?: boolean\n /**\n * The href of the link\n * */\n href: string\n /**\n * Changes the cta text of the card\n * */\n ctaText?: string\n /**\n * Specifies the presentation of the call-to-action area\n */\n ctaVariant?: CardCTAVariant\n /**\n * Optional, custom background color.\n */\n backgroundColor?: CardBackgroundColor\n /**\n * A visual that appears before the heading, commonly used for a logo or brand mark\n */\n leadingVisual?: CardLeadingVisual\n /**\n * Adds a border to the card.\n */\n hasBorder?: boolean\n /**\n * Fills the width of the parent container and removes the default max-width.\n */\n fullWidth?: boolean\n /**\n * Aligns the card content\n */\n align?: 'start' | 'center'\n} & Omit<BaseProps<HTMLDivElement>, 'animate'> &\n Omit<React.ComponentPropsWithoutRef<'div'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'> &\n Pick<React.ComponentPropsWithoutRef<'a'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'>\n\nconst CardRoot = forwardRef<HTMLDivElement, CardProps>(\n (\n {\n align = 'start',\n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur,\n children: childrenMaybeWrappedInFragment,\n className,\n ctaText = 'Learn more',\n ctaVariant = defaultCardCTAVariant,\n disableAnimation = false,\n fullWidth = false,\n href,\n hasBorder = false,\n leadingVisual,\n style,\n variant = 'default',\n backgroundColor,\n ...props\n },\n ref,\n ) => {\n const cardRef = useProvidedRefOrCreate(ref as RefObject<HTMLDivElement>)\n const resolvedBackgroundColor =\n backgroundColor ?? (variant === 'minimal' || ctaVariant === 'arrow' ? 'none' : 'default')\n\n let children: React.ReactNode | null\n\n if (childrenMaybeWrappedInFragment == null) {\n children = null\n } else if (isFragmentElement(childrenMaybeWrappedInFragment)) {\n children = childrenMaybeWrappedInFragment.props.children ?? null\n } else {\n children = childrenMaybeWrappedInFragment\n }\n\n const {cardImage, cardIcon, cardLabel, cardTokensBlockStart, cardTokensBlockEnd, cardHeading, cardDescription} =\n React.Children.toArray(children).reduce<{\n cardHeading?: ReturnType<typeof CardHeading>\n cardImage?: ReturnType<typeof CardImage>\n cardIcon?: ReturnType<typeof CardIcon>\n cardLabel?: ReturnType<typeof CardLabel>\n cardTokensBlockStart?: ReturnType<typeof CardTokens>\n cardTokensBlockEnd?: ReturnType<typeof CardTokens>\n cardDescription?: ReturnType<typeof CardDescription>\n }>((acc, child) => {\n if (isCardHeading(child)) {\n acc.cardHeading = React.cloneElement(child, {\n href,\n })\n } else if (isCardImage(child)) {\n acc.cardImage = child\n } else if (isCardIcon(child)) {\n acc.cardIcon = child\n } else if (isCardLabel(child)) {\n acc.cardLabel = child\n } else if (isCardTokens(child)) {\n if (child.props.position === 'block-end') {\n acc.cardTokensBlockEnd = child\n } else {\n acc.cardTokensBlockStart = child\n }\n } else if (isCardDescription(child)) {\n acc.cardDescription = child\n }\n\n return acc\n }, {})\n\n if ((process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') && leadingVisual && cardIcon) {\n // eslint-disable-next-line no-console\n console.warn('Card: `leadingVisual` and `Card.Icon` cannot be used together. `Card.Icon` will not be rendered.')\n }\n\n const renderedLeadingVisual = getRenderableLeadingVisual(leadingVisual)\n const renderedCardIcon = renderedLeadingVisual ? undefined : cardIcon\n const imagePosition = cardImage ? cardImage.props.position || 'block-start' : null\n const shouldRenderLinkArrow = !(align === 'center' && ctaVariant === 'text')\n\n return (\n <DefaultCardWrapperComponent\n style={style}\n className={clsx(\n fullWidth ? styles['Card--fullWidth'] : styles['Card--maxWidth'],\n styles[`Card--align-${align}`],\n )}\n >\n <div\n className={clsx(\n styles.Card,\n disableAnimation && styles['Card--disableAnimation'],\n renderedLeadingVisual && styles['Card--hasLeadingVisual'],\n ctaVariant === 'arrow' && styles['Card--ctaVariant-arrow'],\n cardTokensBlockEnd && styles['Card--tokensPosition-block-end'],\n variant === 'minimal' && styles['Card--variant-minimal'],\n hasBorder && styles['Card--border'],\n styles[`Card--backgroundColor-${resolvedBackgroundColor}`],\n imagePosition && styles[`Card--imagePos-${imagePosition}`],\n className,\n )}\n style={style}\n ref={cardRef}\n {...props}\n >\n {imagePosition === 'block-start' ? cardImage : null}\n {renderedLeadingVisual ? <div className={styles.Card__leadingVisual}>{renderedLeadingVisual}</div> : null}\n {renderedCardIcon}\n {cardTokensBlockStart}\n {cardLabel}\n {cardHeading}\n {cardDescription}\n {cardTokensBlockEnd}\n {imagePosition === 'block-end' ? cardImage : null}\n\n {ctaVariant !== 'none' ? (\n <div\n className={clsx(styles.Card__action, ctaVariant === 'arrow' && styles['Card__action--arrowOnly'])}\n aria-hidden={ctaVariant === 'arrow' ? true : undefined}\n >\n <span className={clsx(ctaVariant === 'arrow' && styles.Card__actionLabelClip)}>\n <Text as=\"span\" size=\"200\" className={clsx(stylesLink['Link--label'], styles.Card__actionLabel)}>\n {ctaText}\n </Text>\n </span>\n {shouldRenderLinkArrow ? (\n <span\n className={clsx(\n styles.Card__actionIcon,\n ctaVariant === 'arrow' && styles['Card__actionIcon--arrowOnly'],\n )}\n >\n <ExpandableArrow\n className={clsx(stylesLink['Link-arrow'], styles['Card--expandableArrow'])}\n aria-hidden=\"true\"\n />\n </span>\n ) : null}\n </div>\n ) : null}\n </div>\n </DefaultCardWrapperComponent>\n )\n },\n)\n\ntype DefaultCardWrapperComponentProps = React.PropsWithChildren<{\n className?: string\n style?: React.CSSProperties\n}>\n\nfunction DefaultCardWrapperComponent({className, children, style}: DefaultCardWrapperComponentProps) {\n return (\n <div className={clsx(styles['Card__outer'], className)} style={style}>\n {children}\n </div>\n )\n}\n\nfunction getRenderableLeadingVisual(leadingVisual?: CardLeadingVisual) {\n if (!leadingVisual) {\n return null\n }\n\n if (typeof leadingVisual === 'function') {\n return React.createElement(leadingVisual, {className: styles['Card__leadingVisualItem']})\n }\n\n if (React.isValidElement<{className?: string}>(leadingVisual)) {\n return React.cloneElement(leadingVisual, {\n className: clsx(styles['Card__leadingVisualItem'], leadingVisual.props.className),\n })\n }\n\n return null\n}\n\nexport type CardImageProps = {\n position?: 'block-start' | 'block-end'\n padding?: CardImagePadding\n} & ImageProps\n\nfunction CardImage({className, position = 'block-start', padding = 'default', ...rest}: CardImageProps) {\n return (\n <div\n className={clsx(\n styles.Card__image,\n styles[`Card__image--position-${position}`],\n padding === 'none' && styles['Card__image--padding-none'],\n )}\n >\n <Image className={className} {...rest} />\n </div>\n )\n}\n\ntype CardIconProps = IconProps\n\nconst CardIcon = ({className, hasBackground = true, ...props}: IconProps) => (\n <Icon className={clsx(styles.Card__icon, className)} hasBackground={hasBackground} {...props} />\n)\n\ntype CardTokensProps = BaseProps<HTMLDivElement> & {\n children: React.ReactNode | React.ReactNode[]\n position?: CardTokenPosition\n}\n\nconst CardTokens = forwardRef<HTMLDivElement, CardTokensProps>(\n ({children, className, position = 'block-start', ...rest}, ref) => {\n return (\n <div\n className={clsx(\n styles.Card__tokens,\n position === 'block-end' && styles['Card__tokens--position-block-end'],\n className,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </div>\n )\n },\n)\n\ntype CardLabelProps = Omit<BaseProps<HTMLSpanElement>, 'animate'> &\n Omit<React.ComponentPropsWithoutRef<'span'>, 'children'> & {\n children: React.ReactNode | React.ReactNode[]\n variant?: CardLabelVariant\n }\n\nconst CardLabel = forwardRef<HTMLSpanElement, CardLabelProps>(\n ({children, variant = defaultCardLabelVariant, className, ...rest}, ref) => {\n if (variant === 'accent-text') {\n return (\n <EyebrowText ref={ref} className={clsx(styles.Card__label, className)} variant=\"accent\" {...rest}>\n {children}\n </EyebrowText>\n )\n }\n\n return (\n <Token\n ref={ref as React.Ref<HTMLSpanElement | HTMLAnchorElement>}\n className={clsx(styles.Card__label, className)}\n {...rest}\n >\n {children}\n </Token>\n )\n },\n)\n\ntype CardHeadingProps = BaseProps<HTMLHeadingElement> & {\n children: React.ReactNode | React.ReactNode[]\n as?: Exclude<HeadingProps['as'], 'h1'>\n href?: string\n} & Omit<HeadingProps, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'> &\n React.ComponentPropsWithoutRef<'a'>\n\nconst CardHeading = forwardRef<HTMLHeadingElement, CardHeadingProps>(\n ({children, as = 'h3', className, href, onMouseEnter, onMouseLeave, onBlur, onFocus, ...rest}, ref) => {\n return (\n <Heading size=\"6\" className={clsx(styles.Card__heading, className)} ref={ref} as={as} {...rest}>\n <a\n href={href}\n className={clsx(styles.Card__link)}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n onBlur={onBlur}\n onFocus={onFocus}\n >\n {children}\n </a>\n </Heading>\n )\n },\n)\n\ntype CardDescriptionProps = BaseProps<HTMLParagraphElement> & {\n children: React.ReactNode | React.ReactNode[]\n}\n\nconst CardDescription = forwardRef<HTMLParagraphElement, CardDescriptionProps>(\n ({children, className, ...rest}, ref) => {\n return (\n <Text variant=\"muted\" ref={ref} size=\"200\" as=\"p\" className={clsx(styles.Card__description, className)} {...rest}>\n {children}\n </Text>\n )\n },\n)\n\nconst createComponentTypeGuard =\n <T,>(componentType: React.ComponentType<T>) =>\n (element: unknown): element is React.ReactElement<T> =>\n React.isValidElement(element) && element.type === componentType\n\nconst isCardImage = createComponentTypeGuard(CardImage)\nconst isCardIcon = createComponentTypeGuard(CardIcon)\nconst isCardLabel = createComponentTypeGuard(CardLabel)\nconst isCardTokens = createComponentTypeGuard(CardTokens)\nconst isCardHeading = createComponentTypeGuard(CardHeading)\nconst isCardDescription = createComponentTypeGuard(CardDescription)\n\n/**\n * Card component:\n * @see https://primer.style/brand/components/Card\n */\nexport const Card = Object.assign(CardRoot, {\n Image: CardImage,\n Icon: CardIcon,\n Label: CardLabel,\n Tokens: CardTokens,\n Heading: CardHeading,\n Description: CardDescription,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA0BA,IAAa,IAAe,CAAC,WAAW,SAAS,GACpC,IAAkB;CAAC;CAAQ;CAAS;AAAM,GAC1C,IAAuB;CAAC;CAAW;CAAU;AAAM,GACnD,IAAqB,CAAC,eAAe,WAAW,GAChD,IAAoB,CAAC,SAAS,aAAa,GAC3C,IAA0B,CAAC,WAAW,MAAM,GAE5C,IAAiB,GAEjB,IAAuB,EAAe,IACtC,IAAwB,EAAgB,IACxC,IAA0B,EAAkB,IAmEnD,IAAW,GAEb,EACE,WAAQ,SACR,iBACA,iBACA,YACA,WACA,UAAU,GACV,cACA,aAAU,cACV,gBAAa,GACb,sBAAmB,IACnB,eAAY,IACZ,SACA,eAAY,IACZ,kBACA,UACA,aAAU,WACV,oBACA,GAAG,KAEL,MACG;CACH,IAAM,IAAU,EAAuB,CAAgC,GACjE,IACJ,MAAoB,MAAY,aAAa,MAAe,UAAU,SAAS,YAE7E;CAEJ,AAKE,IALE,KAAkC,OACzB,OACF,EAAkB,CAA8B,IAC9C,EAA+B,MAAM,YAAY,OAEjD;CAGb,IAAM,EAAC,cAAW,aAAU,cAAW,yBAAsB,uBAAoB,gBAAa,uBAC5F,EAAM,SAAS,QAAQ,CAAQ,CAAC,CAAC,QAQ7B,GAAK,OACH,EAAc,CAAK,IACrB,EAAI,cAAc,EAAM,aAAa,GAAO,EAC1C,QACF,CAAC,IACQ,EAAY,CAAK,IAC1B,EAAI,YAAY,IACP,EAAW,CAAK,IACzB,EAAI,WAAW,IACN,EAAY,CAAK,IAC1B,EAAI,YAAY,IACP,EAAa,CAAK,IACvB,EAAM,MAAM,aAAa,cAC3B,EAAI,qBAAqB,IAEzB,EAAI,uBAAuB,IAEpB,EAAkB,CAAK,MAChC,EAAI,kBAAkB,IAGjB,IACN,CA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,EAAO,aAAa,CAAS;CAC7C,GAAI;CAEH;AACI,CAAA,CAGb,GASM,IAAc,GACjB,EAAC,aAAU,QAAK,MAAM,cAAW,SAAM,iBAAc,iBAAc,WAAQ,YAAS,GAAG,KAAO,MAE3F,kBAAC,GAAD;CAAS,MAAK;CAAI,WAAW,EAAK,EAAO,eAAe,CAAS;CAAQ;CAAS;CAAI,GAAI;WACxF,kBAAC,KAAD;EACQ;EACN,WAAW,EAAK,EAAO,UAAU;EACnB;EACA;EACN;EACC;EAER;CACA,CAAA;AACI,CAAA,CAGf,GAMM,IAAkB,GACrB,EAAC,aAAU,cAAW,GAAG,KAAO,MAE7B,kBAAC,GAAD;CAAM,SAAQ;CAAa;CAAK,MAAK;CAAM,IAAG;CAAI,WAAW,EAAK,EAAO,mBAAmB,CAAS;CAAG,GAAI;CACzG;AACG,CAAA,CAGZ,GAEM,KACC,OACJ,MACC,EAAM,eAAe,CAAO,KAAK,EAAQ,SAAS,GAEhD,IAAc,EAAyB,CAAS,GAChD,IAAa,EAAyB,CAAQ,GAC9C,IAAc,EAAyB,CAAS,GAChD,IAAe,EAAyB,CAAU,GAClD,IAAgB,EAAyB,CAAW,GACpD,IAAoB,EAAyB,CAAe,GAMrD,IAAO,OAAO,OAAO,GAAU;CAC1C,OAAO;CACP,MAAM;CACN,OAAO;CACP,QAAQ;CACR,SAAS;CACT,aAAa;AACf,CAAC"}
1
+ {"version":3,"file":"Card.js","names":[],"sources":["../../src/Card/Card.tsx"],"sourcesContent":["import React, {RefObject, forwardRef} from 'react'\n\nimport {clsx} from 'clsx'\nimport {Heading, HeadingProps, Text, Image, type ImageProps} from '..'\nimport {EyebrowText} from '../EyebrowText'\nimport {Icon, type IconProps} from '../Icon'\nimport {Token} from '../Token'\nimport {ExpandableArrow} from '../ExpandableArrow'\nimport type {BaseProps} from '../component-helpers'\nimport {useProvidedRefOrCreate} from '../hooks/useRef'\nimport {Colors} from '../constants'\nimport {isFragmentElement} from '../utils/isFragmentElement'\n\n/**\n * Design tokens\n */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/card/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css'\n\n/**\n * Main stylesheet (as a CSS Module)\n */\nimport styles from './Card.module.css'\nimport stylesLink from '../Link/Link.module.css'\n\nexport const CardVariants = ['default', 'minimal'] as const\nexport const CardCTAVariants = ['text', 'arrow', 'none'] as const\nexport const CardBackgroundColors = ['default', 'subtle', 'none'] as const\nexport const CardTokenPositions = ['block-start', 'block-end'] as const\nexport const CardLabelVariants = ['token', 'accent-text'] as const\nexport const CardImagePaddingOptions = ['default', 'none'] as const\n\nexport const CardIconColors = Colors\n\nexport const defaultCardIconColor = CardIconColors[0]\nexport const defaultCardCTAVariant = CardCTAVariants[0]\nexport const defaultCardLabelVariant = CardLabelVariants[0]\n\nexport type CardVariants = (typeof CardVariants)[number]\nexport type CardCTAVariant = (typeof CardCTAVariants)[number]\nexport type CardTokenPosition = (typeof CardTokenPositions)[number]\nexport type CardLabelVariant = (typeof CardLabelVariants)[number]\nexport type CardBackgroundColor = (typeof CardBackgroundColors)[number]\nexport type CardImagePadding = (typeof CardImagePaddingOptions)[number]\n\ntype CardLeadingVisual = React.ReactElement | React.ComponentType<{className?: string}>\n\nexport type CardProps = {\n /**\n * Specify alternative card appearance\n */\n variant?: CardVariants\n /**\n * Valid children include Card.Image, Card.Icon, Card.Label, Card.Tokens, Card.Heading, and Card.Description\n */\n children:\n | React.ReactNode\n | React.ReactElement<CardImageProps>\n | React.ReactElement<CardIconProps>\n | React.ReactElement<CardLabelProps>\n | React.ReactElement<CardTokensProps>\n | React.ReactElement<CardHeadingProps>\n | React.ReactElement<CardDescriptionProps>\n /**\n * Disable transitions and animations within the Card\n */\n disableAnimation?: boolean\n /**\n * The href of the link\n * */\n href: string\n /**\n * Changes the cta text of the card\n * */\n ctaText?: string\n /**\n * Specifies the presentation of the call-to-action area\n */\n ctaVariant?: CardCTAVariant\n /**\n * Optional, custom background color.\n */\n backgroundColor?: CardBackgroundColor\n /**\n * A visual that appears before the heading, commonly used for a logo or brand mark\n */\n leadingVisual?: CardLeadingVisual\n /**\n * Adds a border to the card.\n */\n hasBorder?: boolean\n /**\n * Fills the width of the parent container and removes the default max-width.\n */\n fullWidth?: boolean\n /**\n * Aligns the card content\n */\n align?: 'start' | 'center'\n} & Omit<BaseProps<HTMLDivElement>, 'animate'> &\n Omit<React.ComponentPropsWithoutRef<'div'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'> &\n Pick<React.ComponentPropsWithoutRef<'a'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'>\n\nconst CardRoot = forwardRef<HTMLDivElement, CardProps>(\n (\n {\n align = 'start',\n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur,\n children: childrenMaybeWrappedInFragment,\n className,\n ctaText = 'Learn more',\n ctaVariant = defaultCardCTAVariant,\n disableAnimation = false,\n fullWidth = false,\n href,\n hasBorder = false,\n leadingVisual,\n style,\n variant = 'default',\n backgroundColor,\n ...props\n },\n ref,\n ) => {\n const cardRef = useProvidedRefOrCreate(ref as RefObject<HTMLDivElement>)\n const resolvedBackgroundColor =\n backgroundColor ?? (variant === 'minimal' || ctaVariant === 'arrow' ? 'none' : 'default')\n\n let children: React.ReactNode | null\n\n if (childrenMaybeWrappedInFragment == null) {\n children = null\n } else if (isFragmentElement(childrenMaybeWrappedInFragment)) {\n children = childrenMaybeWrappedInFragment.props.children ?? null\n } else {\n children = childrenMaybeWrappedInFragment\n }\n\n const {cardImage, cardIcon, cardLabel, cardTokensBlockStart, cardTokensBlockEnd, cardHeading, cardDescription} =\n React.Children.toArray(children).reduce<{\n cardHeading?: ReturnType<typeof CardHeading>\n cardImage?: ReturnType<typeof CardImage>\n cardIcon?: ReturnType<typeof CardIcon>\n cardLabel?: ReturnType<typeof CardLabel>\n cardTokensBlockStart?: ReturnType<typeof CardTokens>\n cardTokensBlockEnd?: ReturnType<typeof CardTokens>\n cardDescription?: ReturnType<typeof CardDescription>\n }>((acc, child) => {\n if (isCardHeading(child)) {\n acc.cardHeading = React.cloneElement(child, {\n href,\n })\n } else if (isCardImage(child)) {\n acc.cardImage = child\n } else if (isCardIcon(child)) {\n acc.cardIcon = child\n } else if (isCardLabel(child)) {\n acc.cardLabel = child\n } else if (isCardTokens(child)) {\n if (child.props.position === 'block-end') {\n acc.cardTokensBlockEnd = child\n } else {\n acc.cardTokensBlockStart = child\n }\n } else if (isCardDescription(child)) {\n acc.cardDescription = child\n }\n\n return acc\n }, {})\n\n if ((process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') && leadingVisual && cardIcon) {\n // eslint-disable-next-line no-console\n console.warn('Card: `leadingVisual` and `Card.Icon` cannot be used together. `Card.Icon` will not be rendered.')\n }\n\n const renderedLeadingVisual = getRenderableLeadingVisual(leadingVisual)\n const renderedCardIcon = renderedLeadingVisual ? undefined : cardIcon\n const imagePosition = cardImage ? cardImage.props.position || 'block-start' : null\n const shouldRenderLinkArrow = !(align === 'center' && ctaVariant === 'text')\n\n return (\n <DefaultCardWrapperComponent\n style={style}\n className={clsx(\n fullWidth ? styles['Card--fullWidth'] : styles['Card--maxWidth'],\n styles[`Card--align-${align}`],\n )}\n >\n <div\n className={clsx(\n styles.Card,\n disableAnimation && styles['Card--disableAnimation'],\n renderedLeadingVisual && styles['Card--hasLeadingVisual'],\n ctaVariant === 'arrow' && styles['Card--ctaVariant-arrow'],\n cardTokensBlockEnd && styles['Card--tokensPosition-block-end'],\n variant === 'minimal' && styles['Card--variant-minimal'],\n hasBorder && styles['Card--border'],\n styles[`Card--backgroundColor-${resolvedBackgroundColor}`],\n imagePosition && styles[`Card--imagePos-${imagePosition}`],\n className,\n )}\n style={style}\n ref={cardRef}\n {...props}\n >\n {imagePosition === 'block-start' ? cardImage : null}\n {renderedLeadingVisual ? <div className={styles.Card__leadingVisual}>{renderedLeadingVisual}</div> : null}\n {renderedCardIcon}\n {cardTokensBlockStart}\n {cardLabel}\n {cardHeading}\n {cardDescription}\n {cardTokensBlockEnd}\n {imagePosition === 'block-end' ? cardImage : null}\n\n {ctaVariant !== 'none' ? (\n <div className={clsx(styles.Card__action, ctaVariant === 'arrow' && styles['Card__action--arrowOnly'])}>\n <span className={clsx(ctaVariant === 'arrow' && styles.Card__actionLabelClip)}>\n <Text as=\"span\" size=\"200\" className={clsx(stylesLink['Link--label'], styles.Card__actionLabel)}>\n {ctaText}\n </Text>\n </span>\n {shouldRenderLinkArrow ? (\n <span\n className={clsx(\n styles.Card__actionIcon,\n ctaVariant === 'arrow' && styles['Card__actionIcon--arrowOnly'],\n )}\n >\n <ExpandableArrow\n className={clsx(stylesLink['Link-arrow'], styles['Card--expandableArrow'])}\n aria-hidden=\"true\"\n />\n </span>\n ) : null}\n </div>\n ) : null}\n </div>\n </DefaultCardWrapperComponent>\n )\n },\n)\n\ntype DefaultCardWrapperComponentProps = React.PropsWithChildren<{\n className?: string\n style?: React.CSSProperties\n}>\n\nfunction DefaultCardWrapperComponent({className, children, style}: DefaultCardWrapperComponentProps) {\n return (\n <div className={clsx(styles['Card__outer'], className)} style={style}>\n {children}\n </div>\n )\n}\n\nfunction getRenderableLeadingVisual(leadingVisual?: CardLeadingVisual) {\n if (!leadingVisual) {\n return null\n }\n\n if (typeof leadingVisual === 'function') {\n return React.createElement(leadingVisual, {className: styles['Card__leadingVisualItem']})\n }\n\n if (React.isValidElement<{className?: string}>(leadingVisual)) {\n return React.cloneElement(leadingVisual, {\n className: clsx(styles['Card__leadingVisualItem'], leadingVisual.props.className),\n })\n }\n\n return null\n}\n\nexport type CardImageProps = {\n position?: 'block-start' | 'block-end'\n padding?: CardImagePadding\n} & ImageProps\n\nfunction CardImage({className, position = 'block-start', padding = 'default', ...rest}: CardImageProps) {\n return (\n <div\n className={clsx(\n styles.Card__image,\n styles[`Card__image--position-${position}`],\n padding === 'none' && styles['Card__image--padding-none'],\n )}\n >\n <Image className={className} {...rest} />\n </div>\n )\n}\n\ntype CardIconProps = IconProps\n\nconst CardIcon = ({className, hasBackground = true, ...props}: IconProps) => (\n <Icon className={clsx(styles.Card__icon, className)} hasBackground={hasBackground} {...props} />\n)\n\ntype CardTokensProps = BaseProps<HTMLDivElement> & {\n children: React.ReactNode | React.ReactNode[]\n position?: CardTokenPosition\n}\n\nconst CardTokens = forwardRef<HTMLDivElement, CardTokensProps>(\n ({children, className, position = 'block-start', ...rest}, ref) => {\n return (\n <div\n className={clsx(\n styles.Card__tokens,\n position === 'block-end' && styles['Card__tokens--position-block-end'],\n className,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </div>\n )\n },\n)\n\ntype CardLabelProps = Omit<BaseProps<HTMLSpanElement>, 'animate'> &\n Omit<React.ComponentPropsWithoutRef<'span'>, 'children'> & {\n children: React.ReactNode | React.ReactNode[]\n variant?: CardLabelVariant\n }\n\nconst CardLabel = forwardRef<HTMLSpanElement, CardLabelProps>(\n ({children, variant = defaultCardLabelVariant, className, ...rest}, ref) => {\n if (variant === 'accent-text') {\n return (\n <EyebrowText ref={ref} className={clsx(styles.Card__label, className)} variant=\"accent\" {...rest}>\n {children}\n </EyebrowText>\n )\n }\n\n return (\n <Token\n ref={ref as React.Ref<HTMLSpanElement | HTMLAnchorElement>}\n className={clsx(styles.Card__label, className)}\n {...rest}\n >\n {children}\n </Token>\n )\n },\n)\n\ntype CardHeadingProps = BaseProps<HTMLHeadingElement> & {\n children: React.ReactNode | React.ReactNode[]\n as?: Exclude<HeadingProps['as'], 'h1'>\n href?: string\n} & Omit<HeadingProps, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'> &\n React.ComponentPropsWithoutRef<'a'>\n\nconst CardHeading = forwardRef<HTMLHeadingElement, CardHeadingProps>(\n ({children, as = 'h3', className, href, onMouseEnter, onMouseLeave, onBlur, onFocus, ...rest}, ref) => {\n return (\n <Heading size=\"6\" className={clsx(styles.Card__heading, className)} ref={ref} as={as} {...rest}>\n <a\n href={href}\n className={clsx(styles.Card__link)}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n onBlur={onBlur}\n onFocus={onFocus}\n >\n {children}\n </a>\n </Heading>\n )\n },\n)\n\ntype CardDescriptionProps = BaseProps<HTMLParagraphElement> & {\n children: React.ReactNode | React.ReactNode[]\n}\n\nconst CardDescription = forwardRef<HTMLParagraphElement, CardDescriptionProps>(\n ({children, className, ...rest}, ref) => {\n return (\n <Text variant=\"muted\" ref={ref} size=\"200\" as=\"p\" className={clsx(styles.Card__description, className)} {...rest}>\n {children}\n </Text>\n )\n },\n)\n\nconst createComponentTypeGuard =\n <T,>(componentType: React.ComponentType<T>) =>\n (element: unknown): element is React.ReactElement<T> =>\n React.isValidElement(element) && element.type === componentType\n\nconst isCardImage = createComponentTypeGuard(CardImage)\nconst isCardIcon = createComponentTypeGuard(CardIcon)\nconst isCardLabel = createComponentTypeGuard(CardLabel)\nconst isCardTokens = createComponentTypeGuard(CardTokens)\nconst isCardHeading = createComponentTypeGuard(CardHeading)\nconst isCardDescription = createComponentTypeGuard(CardDescription)\n\n/**\n * Card component:\n * @see https://primer.style/brand/components/Card\n */\nexport const Card = Object.assign(CardRoot, {\n Image: CardImage,\n Icon: CardIcon,\n Label: CardLabel,\n Tokens: CardTokens,\n Heading: CardHeading,\n Description: CardDescription,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA0BA,IAAa,IAAe,CAAC,WAAW,SAAS,GACpC,IAAkB;CAAC;CAAQ;CAAS;AAAM,GAC1C,IAAuB;CAAC;CAAW;CAAU;AAAM,GACnD,IAAqB,CAAC,eAAe,WAAW,GAChD,IAAoB,CAAC,SAAS,aAAa,GAC3C,IAA0B,CAAC,WAAW,MAAM,GAE5C,IAAiB,GAEjB,IAAuB,EAAe,IACtC,IAAwB,EAAgB,IACxC,IAA0B,EAAkB,IAmEnD,IAAW,GAEb,EACE,WAAQ,SAC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