@primer/react-brand 0.77.0-rc.e7249319 → 0.77.0

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 (399) hide show
  1. package/docs/components/Section/react.md +22 -11
  2. package/docs/index.md +2 -2
  3. package/esm/Section/Section.d.ts +7 -0
  4. package/esm/Section/Section.d.ts.map +1 -1
  5. package/esm/Section/Section.js +33 -32
  6. package/esm/Section/Section.js.map +1 -1
  7. package/esm/Section/Section.module-DjXB_1HE.css +1 -0
  8. package/esm/Section/Section.module.js +2 -1
  9. package/esm/Section/Section.module.js.map +1 -1
  10. package/esm/index.esm.js +9 -9
  11. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/section/section-A-rkj9BD.css +1 -0
  12. package/lib/Section/Section.d.ts +7 -0
  13. package/lib/css/main.css +128 -83
  14. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  15. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  16. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  17. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  18. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  19. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  20. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  21. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  22. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  23. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  24. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  25. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  26. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  29. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  30. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  31. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  32. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  39. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  40. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  41. package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
  42. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  43. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  44. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  45. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  46. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  47. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  48. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  49. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  50. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  51. package/lib/design-tokens/css/tokens/functional/components/icon/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 +9 -1
  79. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  84. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  85. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  86. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  87. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  88. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  89. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
  90. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  91. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  92. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  93. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  94. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  95. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  96. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  97. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  98. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  99. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  100. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  101. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  102. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  103. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  104. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  105. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  106. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  107. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  108. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  109. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  110. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  111. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  112. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  113. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  114. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  115. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  116. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  117. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  118. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  119. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  120. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  121. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  122. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  123. package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
  124. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  125. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  126. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  127. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  128. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  129. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  130. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  131. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  132. package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
  133. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  134. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  135. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  136. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  137. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  138. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  139. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  140. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  141. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  142. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  143. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  144. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  145. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +6 -1
  146. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  147. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  148. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  149. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  150. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  151. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  152. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
  153. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  154. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  155. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  156. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  157. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  158. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  159. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  160. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  161. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  162. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  163. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  164. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  165. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  166. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  167. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  168. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  169. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  170. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  171. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  172. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  173. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  174. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  175. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  176. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  177. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  178. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  179. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  180. package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
  181. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  182. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  183. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  184. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  185. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  186. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  187. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  188. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  189. package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
  190. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  191. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  192. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  193. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  194. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  195. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  196. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  197. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  198. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  199. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  200. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  201. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  202. package/lib/design-tokens/js/tokens/functional/components/section/section.js +2 -1
  203. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  204. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  205. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  206. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  207. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  208. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  209. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
  210. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  211. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  212. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  213. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  214. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  215. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  216. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  217. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  218. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  219. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  220. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  221. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  222. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  223. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  224. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  225. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  226. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  227. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  228. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  229. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  230. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  231. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  232. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  233. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  234. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  235. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  236. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  237. package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
  238. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  239. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  240. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  241. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  242. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  243. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  244. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  245. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  246. package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
  247. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  248. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  249. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  250. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  251. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  252. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  253. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  254. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  255. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  256. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  257. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  258. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  259. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +2 -1
  260. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  261. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  262. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  263. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  264. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  265. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  266. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
  267. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  268. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  269. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  270. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  271. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  272. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  273. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  274. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  275. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  276. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  277. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  278. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  279. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  280. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  281. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  282. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  283. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  284. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  285. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  286. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  287. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  288. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  289. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  290. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  291. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  292. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  293. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  294. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  295. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  296. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  297. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  298. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  299. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  300. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  301. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  302. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  303. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  304. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  305. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  306. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  307. package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
  308. package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
  309. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  310. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  311. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  312. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  313. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  314. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  315. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  316. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  317. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  318. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  319. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  320. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  321. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  322. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  323. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  324. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  325. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
  326. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
  327. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  328. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  329. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  330. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  331. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  332. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  333. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  334. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  335. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  336. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  337. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  338. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  339. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  340. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  341. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  342. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  343. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  344. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  345. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  346. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  347. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  348. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  349. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  350. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  351. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +6 -1
  352. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +6 -1
  353. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  354. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  355. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  356. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  357. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  358. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  359. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  360. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  361. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  362. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  363. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  364. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  365. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
  366. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
  367. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  368. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  369. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  370. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  371. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  372. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  373. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  374. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  375. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  376. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  377. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  378. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  379. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  380. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  381. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  382. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  383. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  384. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  385. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  386. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  387. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  388. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  389. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  390. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  391. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  392. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  393. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  394. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  395. package/lib/index.js +1 -1
  396. package/llms.txt +2 -2
  397. package/package.json +1 -1
  398. package/esm/Section/Section.module-B8zA8qj8.css +0 -1
  399. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/section/section-GXjcxN8l.css +0 -1
@@ -120,18 +120,29 @@ The default `Section` wraps its content in a semantic `<section>` element and pr
120
120
  </>
121
121
  ```
122
122
 
123
+ ### Customize gridline inline padding
124
+
125
+ Override `--brand-Section-variant-gridline-paddingInline` to customize the inline padding of a gridline section.
126
+
127
+ ```css
128
+ .customSection {
129
+ --brand-Section-variant-gridline-paddingInline: var(--base-size-32);
130
+ }
131
+ ```
132
+
123
133
  ## Component props
124
134
 
125
135
  ### Section
126
136
 
127
- | name | type | default | required | description |
128
- | ------------------------- | -------------------------------------------------------- | ----------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
129
- | `paddingBlockStart` | `SectionPaddingVariants \| 'ResponsiveMap'` | `'normal'` | `false` | Control the padding at the top of the section. |
130
- | `paddingBlockEnd` | `SectionPaddingVariants \| 'ResponsiveMap'` | `'normal'` | `false` | Control the padding at the bottom of the section. |
131
- | `backgroundColor` | `SectionBackgroundColors \| 'string' \| 'ResponsiveMap'` | | `false` | Add a background color. Use a predefined color, a CSS custom property, or a custom color value. |
132
- | `backgroundImageSrc` | `string` \| `string[]` `ResponsiveMap` | | `false` | Add one or more background images. |
133
- | `backgroundImageSize` | `string` \| `string[]` `ResponsiveMap` | `'cover'` | `false` | Control the size of the background image(s). This accepts all CSS `background-size` supported values, including keywords like `contain`. |
134
- | `backgroundImagePosition` | `string` \| `string[]` `ResponsiveMap` | `'50%'` | `false` | Control the position of the background image(s). This accepts all CSS `background-position` supported values, including keywords like `top` and edge offsets. |
135
- | `rounded` | `boolean` | `false` | `false` | Adds rounded corners to the top of the section. |
136
- | `fullWidth` | `boolean` | `false` | `false` | Makes the container fill the entire width of the section. |
137
- | `as` | `'section'` \| `'div'` | `'section'` | `false` | Applies the underlying HTML element. |
137
+ | name | type | default | required | description |
138
+ | ------------------------- | -------------------------------------------------------- | ----------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
139
+ | `variant` | `'default'` \| `'gridline'` | `'default'` | `false` | Sets the visual variant. The `gridline` variant adds horizontal gridlines, responsive inline padding, and container-edge borders at wide viewports. `rounded` is not supported with `gridline`. |
140
+ | `paddingBlockStart` | `SectionPaddingVariants \| 'ResponsiveMap'` | `'normal'` | `false` | Control the padding at the top of the section. |
141
+ | `paddingBlockEnd` | `SectionPaddingVariants \| 'ResponsiveMap'` | `'normal'` | `false` | Control the padding at the bottom of the section. |
142
+ | `backgroundColor` | `SectionBackgroundColors \| 'string' \| 'ResponsiveMap'` | | `false` | Add a background color. Use a predefined color, a CSS custom property, or a custom color value. |
143
+ | `backgroundImageSrc` | `string` \| `string[]` `ResponsiveMap` | | `false` | Add one or more background images. |
144
+ | `backgroundImageSize` | `string` \| `string[]` `ResponsiveMap` | `'cover'` | `false` | Control the size of the background image(s). This accepts all CSS `background-size` supported values, including keywords like `contain`. |
145
+ | `backgroundImagePosition` | `string` \| `string[]` `ResponsiveMap` | `'50%'` | `false` | Control the position of the background image(s). This accepts all CSS `background-position` supported values, including keywords like `top` and edge offsets. |
146
+ | `rounded` | `boolean` | `false` | `false` | Adds rounded corners to the top of the section. Ignored when `variant` is `'gridline'`. |
147
+ | `fullWidth` | `boolean` | `false` | `false` | Makes the container fill the entire width of the section. With the `gridline` variant, this also removes its inline padding and container-edge borders. |
148
+ | `as` | `'section'` \| `'div'` | `'section'` | `false` | Applies the underlying HTML element. |
package/docs/index.md CHANGED
@@ -1,6 +1,6 @@
1
- # Primer Brand docs (v0.77.0-rc.e7249319)
1
+ # Primer Brand docs (v0.77.0)
2
2
 
3
- These docs are bundled with `@primer/react-brand@0.77.0-rc.e7249319` and match your installed version.
3
+ These docs are bundled with `@primer/react-brand@0.77.0` 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.
@@ -3,6 +3,7 @@ import type { BaseProps } from '../component-helpers';
3
3
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/section/section.css';
4
4
  export declare const SectionPaddingVariants: readonly ["none", "condensed", "normal", "spacious"];
5
5
  export declare const SectionBackgroundColors: readonly ["default", "subtle"];
6
+ export declare const SectionVariants: readonly ["default", "gridline"];
6
7
  type ResponsiveMap<T> = {
7
8
  narrow?: T;
8
9
  regular?: T;
@@ -15,11 +16,16 @@ type ResponsiveBackgroundImagePositionMap = ResponsiveMap<string | string[]>;
15
16
  type ResponsiveBackgroundImageSizeMap = ResponsiveMap<string | string[]>;
16
17
  type ResponsiveBackgroundImageSrcMap = ResponsiveMap<string | string[]>;
17
18
  type ResponsivePaddingVariantsMap = ResponsiveMap<PaddingVariants>;
19
+ type SectionVariant = (typeof SectionVariants)[number];
18
20
  type SectionProps = {
19
21
  /**
20
22
  * The HTML element used to render the section.
21
23
  */
22
24
  as?: 'section' | 'div';
25
+ /**
26
+ * The visual variant of the section.
27
+ */
28
+ variant?: SectionVariant;
23
29
  /**
24
30
  * The padding applied to the start of the section.
25
31
  */
@@ -50,6 +56,7 @@ type SectionProps = {
50
56
  fullWidth?: boolean;
51
57
  /**
52
58
  * Adds rounded corners to the top of the section.
59
+ * Not supported with the `gridline` variant.
53
60
  */
54
61
  rounded?: boolean;
55
62
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../src/Section/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,iBAAiB,EAAuB,MAAM,OAAO,CAAA;AAEhF,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAEnD,OAAO,iGAAiG,CAAA;AAGxG,eAAO,MAAM,sBAAsB,sDAAuD,CAAA;AAC1F,eAAO,MAAM,uBAAuB,gCAAiC,CAAA;AAIrE,KAAK,aAAa,CAAC,CAAC,IAAI;IACtB,MAAM,CAAC,EAAE,CAAC,CAAA;IACV,OAAO,CAAC,EAAE,CAAC,CAAA;IACX,IAAI,CAAC,EAAE,CAAC,CAAA;CACT,CAAA;AAED,KAAK,gBAAgB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;AAC5E,KAAK,eAAe,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAA;AAC9D,KAAK,4BAA4B,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAA;AACnE,KAAK,oCAAoC,GAAG,aAAa,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AAC5E,KAAK,gCAAgC,GAAG,aAAa,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AACxE,KAAK,+BAA+B,GAAG,aAAa,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AACvE,KAAK,4BAA4B,GAAG,aAAa,CAAC,eAAe,CAAC,CAAA;AAElE,KAAK,YAAY,GAAG;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,SAAS,GAAG,KAAK,CAAA;IACtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,eAAe,GAAG,4BAA4B,CAAA;IAClE;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,GAAG,4BAA4B,CAAA;IAChE;;OAEG;IACH,eAAe,CAAC,EAAE,gBAAgB,GAAG,4BAA4B,CAAA;IACjE;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,+BAA+B,CAAA;IACxE;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,oCAAoC,CAAA;IAClF;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,gCAAgC,CAAA;IAC1E;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B;;OAEG;IACH,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAA;CACzB,GAAG,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAA;AAOhD,eAAO,MAAM,OAAO,2HA4GnB,CAAA"}
1
+ {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../src/Section/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,iBAAiB,EAAuB,MAAM,OAAO,CAAA;AAEhF,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAEnD,OAAO,iGAAiG,CAAA;AAIxG,eAAO,MAAM,sBAAsB,sDAAuD,CAAA;AAC1F,eAAO,MAAM,uBAAuB,gCAAiC,CAAA;AACrE,eAAO,MAAM,eAAe,kCAAmC,CAAA;AAK/D,KAAK,aAAa,CAAC,CAAC,IAAI;IACtB,MAAM,CAAC,EAAE,CAAC,CAAA;IACV,OAAO,CAAC,EAAE,CAAC,CAAA;IACX,IAAI,CAAC,EAAE,CAAC,CAAA;CACT,CAAA;AAED,KAAK,gBAAgB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;AAC5E,KAAK,eAAe,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAA;AAC9D,KAAK,4BAA4B,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAA;AACnE,KAAK,oCAAoC,GAAG,aAAa,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AAC5E,KAAK,gCAAgC,GAAG,aAAa,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AACxE,KAAK,+BAA+B,GAAG,aAAa,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AACvE,KAAK,4BAA4B,GAAG,aAAa,CAAC,eAAe,CAAC,CAAA;AAClE,KAAK,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAEtD,KAAK,YAAY,GAAG;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,SAAS,GAAG,KAAK,CAAA;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,eAAe,GAAG,4BAA4B,CAAA;IAClE;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,GAAG,4BAA4B,CAAA;IAChE;;OAEG;IACH,eAAe,CAAC,EAAE,gBAAgB,GAAG,4BAA4B,CAAA;IACjE;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,+BAA+B,CAAA;IACxE;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,oCAAoC,CAAA;IAClF;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,gCAAgC,CAAA;IAC1E;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B;;OAEG;IACH,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAA;CACzB,GAAG,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAA;AAOhD,eAAO,MAAM,OAAO,2HAwHnB,CAAA"}
@@ -1,51 +1,52 @@
1
1
  import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
2
- import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/section/section-GXjcxN8l.css';/* empty css */
3
- import t from "./Section.module.js";
4
- import { forwardRef as n, useCallback as r, useMemo as i } from "react";
5
- import { jsx as a } from "react/jsx-runtime";
2
+ import t from "../component-helpers/shared.module.js";
3
+ import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/section/section-A-rkj9BD.css';/* empty css */
4
+ import n from "./Section.module.js";
5
+ import { forwardRef as r, useCallback as i, useMemo as a } from "react";
6
+ import { jsx as o } from "react/jsx-runtime";
6
7
  //#region src/Section/Section.tsx
7
- var o = [
8
+ var s = [
8
9
  "none",
9
10
  "condensed",
10
11
  "normal",
11
12
  "spacious"
12
- ], s = ["default", "subtle"], c = o[2], l = {
13
+ ], c = ["default", "subtle"], l = ["default", "gridline"], u = s[2], d = l[0], f = {
13
14
  root: "Section",
14
15
  container: "Section__container"
15
- }, u = n(({ as: n = "section", paddingBlockStart: o = c, paddingBlockEnd: u = c, backgroundColor: d, backgroundImageSrc: f, backgroundImagePosition: p = "50%", backgroundImageSize: m = "cover", className: h, children: g, "data-testid": _, fullWidth: v = !1, rounded: y = !1, style: b, ...x }, S) => {
16
- let C = r((e, n) => typeof e == "string" ? t[`Section--${n}-${e}`] : Object.keys(e).map((r) => t[`Section-${r}--${n}-${e[r]}`]).join(" "), []), w = r((e, t) => t === "background-image-src" ? Array.isArray(e) ? e.map((e) => `url(${e})`).join() : `url(${e})` : t === "background-color" && typeof e == "string" ? s.includes(e) ? `var(--brand-color-canvas-${e})` : e : Array.isArray(e) ? e.join() : e, []), T = r((e, t) => typeof t == "string" || Array.isArray(t) ? { [`--brand-Section-${e}`]: w(t, e) } : {
17
- [`--brand-Section-narrow-${e}`]: w(t?.narrow, e),
18
- [`--brand-Section-regular-${e}`]: w(t?.regular, e),
19
- [`--brand-Section-wide-${e}`]: w(t?.wide, e)
20
- }, [w]), E = r((e, t, n) => {
21
- n && Object.assign(e, T(t, n));
22
- }, [T]), D = i(() => C(o, "paddingBlockStart"), [o, C]), O = i(() => C(u, "paddingBlockEnd"), [u, C]), k = i(() => {
16
+ }, p = r(({ as: r = "section", variant: s = d, paddingBlockStart: l = u, paddingBlockEnd: p = u, backgroundColor: m, backgroundImageSrc: h, backgroundImagePosition: g = "50%", backgroundImageSize: _ = "cover", className: v, children: y, "data-testid": b, fullWidth: x = !1, rounded: S = !1, style: C, ...w }, T) => {
17
+ let E = i((e, t) => typeof e == "string" ? n[`Section--${t}-${e}`] : Object.keys(e).map((r) => n[`Section-${r}--${t}-${e[r]}`]).join(" "), []), D = i((e, t) => t === "background-image-src" ? Array.isArray(e) ? e.map((e) => `url(${e})`).join() : `url(${e})` : t === "background-color" && typeof e == "string" ? c.includes(e) ? `var(--brand-color-canvas-${e})` : e : Array.isArray(e) ? e.join() : e, []), O = i((e, t) => typeof t == "string" || Array.isArray(t) ? { [`--brand-Section-${e}`]: D(t, e) } : {
18
+ [`--brand-Section-narrow-${e}`]: D(t?.narrow, e),
19
+ [`--brand-Section-regular-${e}`]: D(t?.regular, e),
20
+ [`--brand-Section-wide-${e}`]: D(t?.wide, e)
21
+ }, [D]), k = i((e, t, n) => {
22
+ n && Object.assign(e, O(t, n));
23
+ }, [O]), A = a(() => E(l, "paddingBlockStart"), [l, E]), j = a(() => E(p, "paddingBlockEnd"), [p, E]), M = a(() => {
23
24
  let e = {};
24
- return E(e, "background-color", d), E(e, "background-image-src", f), E(e, "background-image-position", p), E(e, "background-image-size", m), e;
25
+ return k(e, "background-color", m), k(e, "background-image-src", h), k(e, "background-image-position", g), k(e, "background-image-size", _), e;
25
26
  }, [
26
- E,
27
- d,
28
- f,
29
- p,
30
- m
27
+ k,
28
+ m,
29
+ h,
30
+ g,
31
+ _
31
32
  ]);
32
- return /* @__PURE__ */ a(n, {
33
- ref: S,
34
- className: e(t.Section, D, O, y && t["Section--rounded"], h),
35
- "data-testid": _ || l.root,
33
+ return s === "gridline" && S && (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test") && console.warn("Section: rounded is not supported with variant=\"gridline\"; ignoring rounded."), /* @__PURE__ */ o(r, {
34
+ ref: T,
35
+ className: e(n.Section, s === "gridline" && n["Section--variant-gridline"], s === "gridline" && t.gridline, A, j, S && s !== "gridline" && n["Section--rounded"], v),
36
+ "data-testid": b || f.root,
36
37
  style: {
37
- ...k,
38
- ...b
38
+ ...M,
39
+ ...C
39
40
  },
40
- ...x,
41
- children: /* @__PURE__ */ a("div", {
42
- className: e(t.Section__container, v && t["Section__container--fullWidth"]),
43
- "data-testid": l.container,
44
- children: g
41
+ ...w,
42
+ children: /* @__PURE__ */ o("div", {
43
+ className: e(n.Section__container, x && n["Section__container--fullWidth"]),
44
+ "data-testid": f.container,
45
+ children: y
45
46
  })
46
47
  });
47
48
  });
48
49
  //#endregion
49
- export { u as Section, s as SectionBackgroundColors, o as SectionPaddingVariants };
50
+ export { p as Section, c as SectionBackgroundColors, s as SectionPaddingVariants, l as SectionVariants };
50
51
 
51
52
  //# sourceMappingURL=Section.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Section.js","names":[],"sources":["../../src/Section/Section.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren, useCallback, useMemo} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../component-helpers'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/section/section.css'\nimport styles from './Section.module.css'\n\nexport const SectionPaddingVariants = ['none', 'condensed', 'normal', 'spacious'] as const\nexport const SectionBackgroundColors = ['default', 'subtle'] as const\n\nconst defaultSectionPadding = SectionPaddingVariants[2]\n\ntype ResponsiveMap<T> = {\n narrow?: T\n regular?: T\n wide?: T\n}\n\ntype BackgroundColors = (typeof SectionBackgroundColors)[number] | AnyString // The AnyString union type is a workaround to provide autocompletion for the SectionBackgroundColors values\ntype PaddingVariants = (typeof SectionPaddingVariants)[number]\ntype ResponsiveBackgroundColorMap = ResponsiveMap<BackgroundColors>\ntype ResponsiveBackgroundImagePositionMap = ResponsiveMap<string | string[]>\ntype ResponsiveBackgroundImageSizeMap = ResponsiveMap<string | string[]>\ntype ResponsiveBackgroundImageSrcMap = ResponsiveMap<string | string[]>\ntype ResponsivePaddingVariantsMap = ResponsiveMap<PaddingVariants>\n\ntype SectionProps = {\n /**\n * The HTML element used to render the section.\n */\n as?: 'section' | 'div'\n /**\n * The padding applied to the start of the section.\n */\n paddingBlockStart?: PaddingVariants | ResponsivePaddingVariantsMap\n /**\n * The padding applied to the end of the section.\n */\n paddingBlockEnd?: PaddingVariants | ResponsivePaddingVariantsMap\n /**\n * The system-level or custom background color of the section.\n */\n backgroundColor?: BackgroundColors | ResponsiveBackgroundColorMap\n /**\n * The background image of the section.\n */\n backgroundImageSrc?: string | string[] | ResponsiveBackgroundImageSrcMap\n /**\n * The position of the background image.\n */\n backgroundImagePosition?: string | string[] | ResponsiveBackgroundImagePositionMap\n /**\n * The size of the background image.\n */\n backgroundImageSize?: string | string[] | ResponsiveBackgroundImageSizeMap\n /**\n * Makes the content of the section span the full width of its parent container.\n */\n fullWidth?: boolean\n /**\n * Adds rounded corners to the top of the section.\n */\n rounded?: boolean\n /**\n * Forward inline styles\n */\n style?: React.CSSProperties\n /**\n * Optional attirbute for testing\n */\n ['data-testid']?: string\n} & PropsWithChildren<BaseProps<HTMLDivElement>>\n\nconst testIds = {\n root: 'Section',\n container: 'Section__container',\n}\n\nexport const Section = forwardRef<HTMLDivElement, PropsWithChildren<SectionProps>>(\n (\n {\n as: Component = 'section',\n paddingBlockStart = defaultSectionPadding,\n paddingBlockEnd = defaultSectionPadding,\n backgroundColor,\n backgroundImageSrc,\n backgroundImagePosition = '50%',\n backgroundImageSize = 'cover',\n className,\n children,\n 'data-testid': testId,\n fullWidth = false,\n rounded = false,\n style,\n ...props\n },\n ref,\n ) => {\n const createPaddingClasses = useCallback(\n (paddingBlock, blockType) =>\n typeof paddingBlock === 'string'\n ? styles[`Section--${blockType}-${paddingBlock}`]\n : Object.keys(paddingBlock)\n .map(viewport => styles[`Section-${viewport}--${blockType}-${paddingBlock[viewport]}`])\n .join(' '),\n [],\n )\n\n const processBackgroundValue = useCallback((value: string | string[], property) => {\n if (property === 'background-image-src') {\n return Array.isArray(value) ? value.map(img => `url(${img})`).join() : `url(${value})`\n }\n\n if (property === 'background-color' && typeof value === 'string') {\n return SectionBackgroundColors.includes(value as (typeof SectionBackgroundColors)[number])\n ? `var(--brand-color-canvas-${value})`\n : value\n }\n\n return Array.isArray(value) ? value.join() : value\n }, [])\n\n const createStyles = useCallback(\n (property, value) =>\n typeof value === 'string' || Array.isArray(value)\n ? {[`--brand-Section-${property}`]: processBackgroundValue(value, property)}\n : {\n [`--brand-Section-narrow-${property}`]: processBackgroundValue(value?.narrow, property),\n [`--brand-Section-regular-${property}`]: processBackgroundValue(value?.regular, property),\n [`--brand-Section-wide-${property}`]: processBackgroundValue(value?.wide, property),\n },\n [processBackgroundValue],\n )\n\n const addStyle = useCallback(\n (obj, property, value) => {\n if (value) {\n Object.assign(obj, createStyles(property, value))\n }\n },\n [createStyles],\n )\n\n const paddingBlockStartClass = useMemo(\n () => createPaddingClasses(paddingBlockStart, 'paddingBlockStart'),\n [paddingBlockStart, createPaddingClasses],\n )\n const paddingBlockEndClass = useMemo(\n () => createPaddingClasses(paddingBlockEnd, 'paddingBlockEnd'),\n [paddingBlockEnd, createPaddingClasses],\n )\n\n const backgroundStyles = useMemo(() => {\n const allStyles = {}\n\n addStyle(allStyles, 'background-color', backgroundColor)\n addStyle(allStyles, 'background-image-src', backgroundImageSrc)\n addStyle(allStyles, 'background-image-position', backgroundImagePosition)\n addStyle(allStyles, 'background-image-size', backgroundImageSize)\n\n return allStyles\n }, [addStyle, backgroundColor, backgroundImageSrc, backgroundImagePosition, backgroundImageSize])\n\n return (\n <Component\n ref={ref}\n className={clsx(\n styles.Section,\n paddingBlockStartClass,\n paddingBlockEndClass,\n rounded && styles['Section--rounded'],\n className,\n )}\n data-testid={testId || testIds.root}\n style={{...backgroundStyles, ...style}}\n {...props}\n >\n <div\n className={clsx(styles[`Section__container`], fullWidth && styles['Section__container--fullWidth'])}\n data-testid={testIds.container}\n >\n {children}\n </div>\n </Component>\n )\n },\n)\n"],"mappings":";;;;;;AAOA,IAAa,IAAyB;CAAC;CAAQ;CAAa;CAAU;AAAU,GACnE,IAA0B,CAAC,WAAW,QAAQ,GAErD,IAAwB,EAAuB,IA+D/C,IAAU;CACd,MAAM;CACN,WAAW;AACb,GAEa,IAAU,GAEnB,EACE,IAAI,IAAY,WAChB,uBAAoB,GACpB,qBAAkB,GAClB,oBACA,uBACA,6BAA0B,OAC1B,yBAAsB,SACtB,cACA,aACA,eAAe,GACf,eAAY,IACZ,aAAU,IACV,UACA,GAAG,KAEL,MACG;CACH,IAAM,IAAuB,GAC1B,GAAc,MACb,OAAO,KAAiB,WACpB,EAAO,YAAY,EAAU,GAAG,OAChC,OAAO,KAAK,CAAY,CAAC,CACtB,KAAI,MAAY,EAAO,WAAW,EAAS,IAAI,EAAU,GAAG,EAAa,KAAY,CAAC,CACtF,KAAK,GAAG,GACjB,CAAC,CACH,GAEM,IAAyB,GAAa,GAA0B,MAChE,MAAa,yBACR,MAAM,QAAQ,CAAK,IAAI,EAAM,KAAI,MAAO,OAAO,EAAI,EAAE,CAAC,CAAC,KAAK,IAAI,OAAO,EAAM,KAGlF,MAAa,sBAAsB,OAAO,KAAU,WAC/C,EAAwB,SAAS,CAAiD,IACrF,4BAA4B,EAAM,KAClC,IAGC,MAAM,QAAQ,CAAK,IAAI,EAAM,KAAK,IAAI,GAC5C,CAAC,CAAC,GAEC,IAAe,GAClB,GAAU,MACT,OAAO,KAAU,YAAY,MAAM,QAAQ,CAAK,IAC5C,GAAE,mBAAmB,MAAa,EAAuB,GAAO,CAAQ,EAAC,IACzE;GACG,0BAA0B,MAAa,EAAuB,GAAO,QAAQ,CAAQ;GACrF,2BAA2B,MAAa,EAAuB,GAAO,SAAS,CAAQ;GACvF,wBAAwB,MAAa,EAAuB,GAAO,MAAM,CAAQ;CACpF,GACN,CAAC,CAAsB,CACzB,GAEM,IAAW,GACd,GAAK,GAAU,MAAU;EACxB,AAAI,KACF,OAAO,OAAO,GAAK,EAAa,GAAU,CAAK,CAAC;CAEpD,GACA,CAAC,CAAY,CACf,GAEM,IAAyB,QACvB,EAAqB,GAAmB,mBAAmB,GACjE,CAAC,GAAmB,CAAoB,CAC1C,GACM,IAAuB,QACrB,EAAqB,GAAiB,iBAAiB,GAC7D,CAAC,GAAiB,CAAoB,CACxC,GAEM,IAAmB,QAAc;EACrC,IAAM,IAAY,CAAC;EAOnB,OALA,EAAS,GAAW,oBAAoB,CAAe,GACvD,EAAS,GAAW,wBAAwB,CAAkB,GAC9D,EAAS,GAAW,6BAA6B,CAAuB,GACxE,EAAS,GAAW,yBAAyB,CAAmB,GAEzD;CACT,GAAG;EAAC;EAAU;EAAiB;EAAoB;EAAyB;CAAmB,CAAC;CAEhG,OACE,kBAAC,GAAD;EACO;EACL,WAAW,EACT,EAAO,SACP,GACA,GACA,KAAW,EAAO,qBAClB,CACF;EACA,eAAa,KAAU,EAAQ;EAC/B,OAAO;GAAC,GAAG;GAAkB,GAAG;EAAK;EACrC,GAAI;YAEJ,kBAAC,OAAD;GACE,WAAW,EAAK,EAAO,oBAAuB,KAAa,EAAO,gCAAgC;GAClG,eAAa,EAAQ;GAEpB;EACE,CAAA;CACI,CAAA;AAEf,CACF"}
1
+ {"version":3,"file":"Section.js","names":[],"sources":["../../src/Section/Section.tsx"],"sourcesContent":["import React, {forwardRef, PropsWithChildren, useCallback, useMemo} from 'react'\nimport {clsx} from 'clsx'\nimport type {BaseProps} from '../component-helpers'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/section/section.css'\nimport styles from './Section.module.css'\nimport gridlineStyles from '../component-helpers/shared.module.css'\n\nexport const SectionPaddingVariants = ['none', 'condensed', 'normal', 'spacious'] as const\nexport const SectionBackgroundColors = ['default', 'subtle'] as const\nexport const SectionVariants = ['default', 'gridline'] as const\n\nconst defaultSectionPadding = SectionPaddingVariants[2]\nconst defaultSectionVariant = SectionVariants[0]\n\ntype ResponsiveMap<T> = {\n narrow?: T\n regular?: T\n wide?: T\n}\n\ntype BackgroundColors = (typeof SectionBackgroundColors)[number] | AnyString // The AnyString union type is a workaround to provide autocompletion for the SectionBackgroundColors values\ntype PaddingVariants = (typeof SectionPaddingVariants)[number]\ntype ResponsiveBackgroundColorMap = ResponsiveMap<BackgroundColors>\ntype ResponsiveBackgroundImagePositionMap = ResponsiveMap<string | string[]>\ntype ResponsiveBackgroundImageSizeMap = ResponsiveMap<string | string[]>\ntype ResponsiveBackgroundImageSrcMap = ResponsiveMap<string | string[]>\ntype ResponsivePaddingVariantsMap = ResponsiveMap<PaddingVariants>\ntype SectionVariant = (typeof SectionVariants)[number]\n\ntype SectionProps = {\n /**\n * The HTML element used to render the section.\n */\n as?: 'section' | 'div'\n /**\n * The visual variant of the section.\n */\n variant?: SectionVariant\n /**\n * The padding applied to the start of the section.\n */\n paddingBlockStart?: PaddingVariants | ResponsivePaddingVariantsMap\n /**\n * The padding applied to the end of the section.\n */\n paddingBlockEnd?: PaddingVariants | ResponsivePaddingVariantsMap\n /**\n * The system-level or custom background color of the section.\n */\n backgroundColor?: BackgroundColors | ResponsiveBackgroundColorMap\n /**\n * The background image of the section.\n */\n backgroundImageSrc?: string | string[] | ResponsiveBackgroundImageSrcMap\n /**\n * The position of the background image.\n */\n backgroundImagePosition?: string | string[] | ResponsiveBackgroundImagePositionMap\n /**\n * The size of the background image.\n */\n backgroundImageSize?: string | string[] | ResponsiveBackgroundImageSizeMap\n /**\n * Makes the content of the section span the full width of its parent container.\n */\n fullWidth?: boolean\n /**\n * Adds rounded corners to the top of the section.\n * Not supported with the `gridline` variant.\n */\n rounded?: boolean\n /**\n * Forward inline styles\n */\n style?: React.CSSProperties\n /**\n * Optional attirbute for testing\n */\n ['data-testid']?: string\n} & PropsWithChildren<BaseProps<HTMLDivElement>>\n\nconst testIds = {\n root: 'Section',\n container: 'Section__container',\n}\n\nexport const Section = forwardRef<HTMLDivElement, PropsWithChildren<SectionProps>>(\n (\n {\n as: Component = 'section',\n variant = defaultSectionVariant,\n paddingBlockStart = defaultSectionPadding,\n paddingBlockEnd = defaultSectionPadding,\n backgroundColor,\n backgroundImageSrc,\n backgroundImagePosition = '50%',\n backgroundImageSize = 'cover',\n className,\n children,\n 'data-testid': testId,\n fullWidth = false,\n rounded = false,\n style,\n ...props\n },\n ref,\n ) => {\n const createPaddingClasses = useCallback(\n (paddingBlock, blockType) =>\n typeof paddingBlock === 'string'\n ? styles[`Section--${blockType}-${paddingBlock}`]\n : Object.keys(paddingBlock)\n .map(viewport => styles[`Section-${viewport}--${blockType}-${paddingBlock[viewport]}`])\n .join(' '),\n [],\n )\n\n const processBackgroundValue = useCallback((value: string | string[], property) => {\n if (property === 'background-image-src') {\n return Array.isArray(value) ? value.map(img => `url(${img})`).join() : `url(${value})`\n }\n\n if (property === 'background-color' && typeof value === 'string') {\n return SectionBackgroundColors.includes(value as (typeof SectionBackgroundColors)[number])\n ? `var(--brand-color-canvas-${value})`\n : value\n }\n\n return Array.isArray(value) ? value.join() : value\n }, [])\n\n const createStyles = useCallback(\n (property, value) =>\n typeof value === 'string' || Array.isArray(value)\n ? {[`--brand-Section-${property}`]: processBackgroundValue(value, property)}\n : {\n [`--brand-Section-narrow-${property}`]: processBackgroundValue(value?.narrow, property),\n [`--brand-Section-regular-${property}`]: processBackgroundValue(value?.regular, property),\n [`--brand-Section-wide-${property}`]: processBackgroundValue(value?.wide, property),\n },\n [processBackgroundValue],\n )\n\n const addStyle = useCallback(\n (obj, property, value) => {\n if (value) {\n Object.assign(obj, createStyles(property, value))\n }\n },\n [createStyles],\n )\n\n const paddingBlockStartClass = useMemo(\n () => createPaddingClasses(paddingBlockStart, 'paddingBlockStart'),\n [paddingBlockStart, createPaddingClasses],\n )\n const paddingBlockEndClass = useMemo(\n () => createPaddingClasses(paddingBlockEnd, 'paddingBlockEnd'),\n [paddingBlockEnd, createPaddingClasses],\n )\n\n const backgroundStyles = useMemo(() => {\n const allStyles = {}\n\n addStyle(allStyles, 'background-color', backgroundColor)\n addStyle(allStyles, 'background-image-src', backgroundImageSrc)\n addStyle(allStyles, 'background-image-position', backgroundImagePosition)\n addStyle(allStyles, 'background-image-size', backgroundImageSize)\n\n return allStyles\n }, [addStyle, backgroundColor, backgroundImageSrc, backgroundImagePosition, backgroundImageSize])\n\n if (\n variant === 'gridline' &&\n rounded &&\n (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test')\n ) {\n // eslint-disable-next-line no-console\n console.warn('Section: rounded is not supported with variant=\"gridline\"; ignoring rounded.')\n }\n\n return (\n <Component\n ref={ref}\n className={clsx(\n styles.Section,\n variant === 'gridline' && styles['Section--variant-gridline'],\n variant === 'gridline' && gridlineStyles.gridline,\n paddingBlockStartClass,\n paddingBlockEndClass,\n rounded && variant !== 'gridline' && styles['Section--rounded'],\n className,\n )}\n data-testid={testId || testIds.root}\n style={{...backgroundStyles, ...style}}\n {...props}\n >\n <div\n className={clsx(styles[`Section__container`], fullWidth && styles['Section__container--fullWidth'])}\n data-testid={testIds.container}\n >\n {children}\n </div>\n </Component>\n )\n },\n)\n"],"mappings":";;;;;;;AAQA,IAAa,IAAyB;CAAC;CAAQ;CAAa;CAAU;AAAU,GACnE,IAA0B,CAAC,WAAW,QAAQ,GAC9C,IAAkB,CAAC,WAAW,UAAU,GAE/C,IAAwB,EAAuB,IAC/C,IAAwB,EAAgB,IAqExC,IAAU;CACd,MAAM;CACN,WAAW;AACb,GAEa,IAAU,GAEnB,EACE,IAAI,IAAY,WAChB,aAAU,GACV,uBAAoB,GACpB,qBAAkB,GAClB,oBACA,uBACA,6BAA0B,OAC1B,yBAAsB,SACtB,cACA,aACA,eAAe,GACf,eAAY,IACZ,aAAU,IACV,UACA,GAAG,KAEL,MACG;CACH,IAAM,IAAuB,GAC1B,GAAc,MACb,OAAO,KAAiB,WACpB,EAAO,YAAY,EAAU,GAAG,OAChC,OAAO,KAAK,CAAY,CAAC,CACtB,KAAI,MAAY,EAAO,WAAW,EAAS,IAAI,EAAU,GAAG,EAAa,KAAY,CAAC,CACtF,KAAK,GAAG,GACjB,CAAC,CACH,GAEM,IAAyB,GAAa,GAA0B,MAChE,MAAa,yBACR,MAAM,QAAQ,CAAK,IAAI,EAAM,KAAI,MAAO,OAAO,EAAI,EAAE,CAAC,CAAC,KAAK,IAAI,OAAO,EAAM,KAGlF,MAAa,sBAAsB,OAAO,KAAU,WAC/C,EAAwB,SAAS,CAAiD,IACrF,4BAA4B,EAAM,KAClC,IAGC,MAAM,QAAQ,CAAK,IAAI,EAAM,KAAK,IAAI,GAC5C,CAAC,CAAC,GAEC,IAAe,GAClB,GAAU,MACT,OAAO,KAAU,YAAY,MAAM,QAAQ,CAAK,IAC5C,GAAE,mBAAmB,MAAa,EAAuB,GAAO,CAAQ,EAAC,IACzE;GACG,0BAA0B,MAAa,EAAuB,GAAO,QAAQ,CAAQ;GACrF,2BAA2B,MAAa,EAAuB,GAAO,SAAS,CAAQ;GACvF,wBAAwB,MAAa,EAAuB,GAAO,MAAM,CAAQ;CACpF,GACN,CAAC,CAAsB,CACzB,GAEM,IAAW,GACd,GAAK,GAAU,MAAU;EACxB,AAAI,KACF,OAAO,OAAO,GAAK,EAAa,GAAU,CAAK,CAAC;CAEpD,GACA,CAAC,CAAY,CACf,GAEM,IAAyB,QACvB,EAAqB,GAAmB,mBAAmB,GACjE,CAAC,GAAmB,CAAoB,CAC1C,GACM,IAAuB,QACrB,EAAqB,GAAiB,iBAAiB,GAC7D,CAAC,GAAiB,CAAoB,CACxC,GAEM,IAAmB,QAAc;EACrC,IAAM,IAAY,CAAC;EAOnB,OALA,EAAS,GAAW,oBAAoB,CAAe,GACvD,EAAS,GAAW,wBAAwB,CAAkB,GAC9D,EAAS,GAAW,6BAA6B,CAAuB,GACxE,EAAS,GAAW,yBAAyB,CAAmB,GAEzD;CACT,GAAG;EAAC;EAAU;EAAiB;EAAoB;EAAyB;CAAmB,CAAC;CAWhG,OARE,MAAY,cACZ,MAAA,QAAA,IAAA,aAC0B,iBAAA,QAAA,IAAA,aAA0C,WAGpE,QAAQ,KAAK,gFAA8E,GAI3F,kBAAC,GAAD;EACO;EACL,WAAW,EACT,EAAO,SACP,MAAY,cAAc,EAAO,8BACjC,MAAY,cAAc,EAAe,UACzC,GACA,GACA,KAAW,MAAY,cAAc,EAAO,qBAC5C,CACF;EACA,eAAa,KAAU,EAAQ;EAC/B,OAAO;GAAC,GAAG;GAAkB,GAAG;EAAK;EACrC,GAAI;YAEJ,kBAAC,OAAD;GACE,WAAW,EAAK,EAAO,oBAAuB,KAAa,EAAO,gCAAgC;GAClG,eAAa,EAAQ;GAEpB;EACE,CAAA;CACI,CAAA;AAEf,CACF"}
@@ -0,0 +1 @@
1
+ .Primer_Brand__Section-module__Section___O2zvq{--rounded-padding-overlap-adjustment:0px;--rounded-radius:var(--brand-borderRadius-xlarge);--padding-block-start:var(--brand-Section-padding-normal);--padding-block-end:var(--brand-Section-padding-normal);--adjusted-padding-block-end:calc(var(--padding-block-end) + var(--rounded-padding-overlap-adjustment));background-repeat:no-repeat;background-color:var(--brand-Section-narrow-background-color,var(--brand-Section-background-color));background-image:var(--brand-Section-narrow-background-image-src,var(--brand-Section-background-image-src));background-size:var(--brand-Section-narrow-background-image-size,var(--brand-Section-background-image-size));background-position:50%;background-position:var(--brand-Section-narrow-background-image-position,var(--brand-Section-background-image-position,center));padding-block-start:var(--padding-block-start);padding-block-end:var(--adjusted-padding-block-end)}.Primer_Brand__Section-module__Section__container___xy9DV{width:100%;max-width:var(--brand-Section-container-maxWidth);margin-inline:auto}.Primer_Brand__Section-module__Section__container--fullWidth___5sU9n{max-width:none}.Primer_Brand__Section-module__Section--variant-gridline___X6okw .Primer_Brand__Section-module__Section__container___xy9DV{padding-inline:var(--brand-Section-variant-gridline-paddingInline)}.Primer_Brand__Section-module__Section--variant-gridline___X6okw .Primer_Brand__Section-module__Section__container--fullWidth___5sU9n{padding-inline:0}.Primer_Brand__Section-module__Section___O2zvq.Primer_Brand__Section-module__Section--variant-gridline___X6okw:after{bottom:calc(-1 * var(--brand-borderWidth-thin))}.Primer_Brand__Section-module__Section--rounded___9qxrG{border-radius:var(--rounded-radius) var(--rounded-radius) 0 0;margin-top:calc(-1 * var(--rounded-radius))}.Primer_Brand__Section-module__Section___O2zvq:has(+.Primer_Brand__Section-module__Section--rounded___9qxrG){--rounded-padding-overlap-adjustment:var(--rounded-radius)}.Primer_Brand__Section-module__Section--paddingBlockStart-none___4vMFc,.Primer_Brand__Section-module__Section-narrow--paddingBlockStart-none___7jsdQ{--padding-block-start:0}.Primer_Brand__Section-module__Section--paddingBlockStart-condensed___B4uoH,.Primer_Brand__Section-module__Section-narrow--paddingBlockStart-condensed___xbTDA{--padding-block-start:var(--brand-Section-padding-condensed)}.Primer_Brand__Section-module__Section--paddingBlockStart-normal___MRda_,.Primer_Brand__Section-module__Section-narrow--paddingBlockStart-normal___f0OXP{--padding-block-start:var(--brand-Section-padding-normal)}.Primer_Brand__Section-module__Section--paddingBlockStart-spacious___UzvtN,.Primer_Brand__Section-module__Section-narrow--paddingBlockStart-spacious___402r9{--padding-block-start:var(--brand-Section-padding-spacious)}.Primer_Brand__Section-module__Section--paddingBlockEnd-none___bRHMx,.Primer_Brand__Section-module__Section-narrow--paddingBlockEnd-none___r7NV_{--padding-block-end:0px}.Primer_Brand__Section-module__Section--paddingBlockEnd-condensed___Y1rxz,.Primer_Brand__Section-module__Section-narrow--paddingBlockEnd-condensed___0v98Y{--padding-block-end:var(--brand-Section-padding-condensed)}.Primer_Brand__Section-module__Section--paddingBlockEnd-normal___p2GiM,.Primer_Brand__Section-module__Section-narrow--paddingBlockEnd-normal___Cfp0Y{--padding-block-end:var(--brand-Section-padding-normal)}.Primer_Brand__Section-module__Section--paddingBlockEnd-spacious___TybX8,.Primer_Brand__Section-module__Section-narrow--paddingBlockEnd-spacious___ysjWh{--padding-block-end:var(--brand-Section-padding-spacious)}@media screen and (width>=48rem){.Primer_Brand__Section-module__Section___O2zvq{background-color:var(--brand-Section-regular-background-color,var(--brand-Section-background-color));background-image:var(--brand-Section-regular-background-image-src,var(--brand-Section-background-image-src));background-size:var(--brand-Section-regular-background-image-size,var(--brand-Section-background-image-size));background-position:var(--brand-Section-regular-background-image-position,var(--brand-Section-background-image-position))}.Primer_Brand__Section-module__Section-regular--paddingBlockStart-none___Nj9j3{--padding-block-start:0}.Primer_Brand__Section-module__Section-regular--paddingBlockStart-condensed___qaXW1{--padding-block-start:var(--brand-Section-padding-condensed)}.Primer_Brand__Section-module__Section-regular--paddingBlockStart-normal___vB8Ri{--padding-block-start:var(--brand-Section-padding-normal)}.Primer_Brand__Section-module__Section-regular--paddingBlockStart-spacious___ldEla{--padding-block-start:var(--brand-Section-padding-spacious)}.Primer_Brand__Section-module__Section-regular--paddingBlockEnd-none___fz5rB{--padding-block-end:0px}.Primer_Brand__Section-module__Section-regular--paddingBlockEnd-condensed___D1eGT{--padding-block-end:var(--brand-Section-padding-condensed)}.Primer_Brand__Section-module__Section-regular--paddingBlockEnd-normal___6tfPx{--padding-block-end:var(--brand-Section-padding-normal)}.Primer_Brand__Section-module__Section-regular--paddingBlockEnd-spacious___ffrwb{--padding-block-end:var(--brand-Section-padding-spacious)}}@media screen and (width>=80rem){.Primer_Brand__Section-module__Section___O2zvq{background-color:var(--brand-Section-wide-background-color,var(--brand-Section-background-color));background-image:var(--brand-Section-wide-background-image-src,var(--brand-Section-background-image-src));background-size:var(--brand-Section-wide-background-image-size,var(--brand-Section-background-image-size));background-position:var(--brand-Section-wide-background-image-position,var(--brand-Section-background-image-position))}.Primer_Brand__Section-module__Section-wide--paddingBlockStart-none___cYTu3{--padding-block-start:0}.Primer_Brand__Section-module__Section-wide--paddingBlockStart-condensed___Y3WFj{--padding-block-start:var(--brand-Section-padding-condensed)}.Primer_Brand__Section-module__Section-wide--paddingBlockStart-normal___0lhjy{--padding-block-start:var(--brand-Section-padding-normal)}.Primer_Brand__Section-module__Section-wide--paddingBlockStart-spacious___kEVXd{--padding-block-start:var(--brand-Section-padding-spacious)}.Primer_Brand__Section-module__Section-wide--paddingBlockEnd-none___3NyQ9{--padding-block-end:0px}.Primer_Brand__Section-module__Section-wide--paddingBlockEnd-condensed___bF0Sz{--padding-block-end:var(--brand-Section-padding-condensed)}.Primer_Brand__Section-module__Section-wide--paddingBlockEnd-normal___kisJx{--padding-block-end:var(--brand-Section-padding-normal)}.Primer_Brand__Section-module__Section-wide--paddingBlockEnd-spacious___xovw1{--padding-block-end:var(--brand-Section-padding-spacious)}.Primer_Brand__Section-module__Section--variant-gridline___X6okw .Primer_Brand__Section-module__Section__container___xy9DV:not(.Primer_Brand__Section-module__Section__container--fullWidth___5sU9n){border-inline:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);position:relative}.Primer_Brand__Section-module__Section--variant-gridline___X6okw .Primer_Brand__Section-module__Section__container___xy9DV:not(.Primer_Brand__Section-module__Section__container--fullWidth___5sU9n):before,.Primer_Brand__Section-module__Section--variant-gridline___X6okw .Primer_Brand__Section-module__Section__container___xy9DV:not(.Primer_Brand__Section-module__Section__container--fullWidth___5sU9n):after{content:"";width:var(--brand-borderWidth-thin);background-color:var(--brand-color-border-muted);pointer-events:none;position:absolute;inset-block-start:calc(-1 * var(--padding-block-start));inset-block-end:calc(-1 * var(--adjusted-padding-block-end))}.Primer_Brand__Section-module__Section--variant-gridline___X6okw .Primer_Brand__Section-module__Section__container___xy9DV:not(.Primer_Brand__Section-module__Section__container--fullWidth___5sU9n):before{inset-inline-start:calc(-1 * var(--brand-borderWidth-thin))}.Primer_Brand__Section-module__Section--variant-gridline___X6okw .Primer_Brand__Section-module__Section__container___xy9DV:not(.Primer_Brand__Section-module__Section__container--fullWidth___5sU9n):after{inset-inline-end:calc(-1 * var(--brand-borderWidth-thin))}}
@@ -1,8 +1,9 @@
1
- import './Section.module-B8zA8qj8.css';//#region src/Section/Section.module.css
1
+ import './Section.module-DjXB_1HE.css';//#region src/Section/Section.module.css
2
2
  var e = "Primer_Brand__Section-module__Section___O2zvq", t = "Primer_Brand__Section-module__Section__container___xy9DV", n = {
3
3
  Section: e,
4
4
  Section__container: t,
5
5
  "Section__container--fullWidth": "Primer_Brand__Section-module__Section__container--fullWidth___5sU9n",
6
+ "Section--variant-gridline": "Primer_Brand__Section-module__Section--variant-gridline___X6okw",
6
7
  "Section--rounded": "Primer_Brand__Section-module__Section--rounded___9qxrG",
7
8
  "Section--paddingBlockStart-none": "Primer_Brand__Section-module__Section--paddingBlockStart-none___4vMFc",
8
9
  "Section-narrow--paddingBlockStart-none": "Primer_Brand__Section-module__Section-narrow--paddingBlockStart-none___7jsdQ",
@@ -1 +1 @@
1
- {"version":3,"file":"Section.module.js","names":[],"sources":["../../src/Section/Section.module.css"],"sourcesContent":[".Section {\n --rounded-padding-overlap-adjustment: 0px;\n --rounded-radius: var(--brand-borderRadius-xlarge);\n --padding-block-end: var(--brand-Section-padding-normal);\n --adjusted-padding-block-end: calc(var(--padding-block-end) + var(--rounded-padding-overlap-adjustment));\n\n background-repeat: no-repeat;\n background-color: var(--brand-Section-narrow-background-color, var(--brand-Section-background-color));\n background-image: var(--brand-Section-narrow-background-image-src, var(--brand-Section-background-image-src));\n background-size: var(--brand-Section-narrow-background-image-size, var(--brand-Section-background-image-size));\n\n background-position: var(\n --brand-Section-narrow-background-image-position,\n var(--brand-Section-background-image-position, center)\n );\n\n padding-block-start: var(--padding-block-start);\n padding-block-end: var(--adjusted-padding-block-end);\n}\n\n.Section__container {\n width: 100%;\n max-width: var(--brand-Section-container-maxWidth);\n margin-inline: auto;\n}\n\n.Section__container--fullWidth {\n max-width: none;\n}\n\n.Section--rounded {\n border-radius: var(--rounded-radius) var(--rounded-radius) 0 0;\n margin-top: calc(-1 * var(--rounded-radius));\n}\n\n/* A progressive enhancment to adjust block-end padding to account for adjacent section rounded corners overlap. */\n.Section:has(+ .Section--rounded) {\n --rounded-padding-overlap-adjustment: var(--rounded-radius);\n}\n\n.Section--paddingBlockStart-none,\n.Section-narrow--paddingBlockStart-none {\n padding-block-start: 0;\n}\n\n.Section--paddingBlockStart-condensed,\n.Section-narrow--paddingBlockStart-condensed {\n padding-block-start: var(--brand-Section-padding-condensed);\n}\n.Section--paddingBlockStart-normal,\n.Section-narrow--paddingBlockStart-normal {\n padding-block-start: var(--brand-Section-padding-normal);\n}\n.Section--paddingBlockStart-spacious,\n.Section-narrow--paddingBlockStart-spacious {\n padding-block-start: var(--brand-Section-padding-spacious);\n}\n\n.Section--paddingBlockEnd-none,\n.Section-narrow--paddingBlockEnd-none {\n --padding-block-end: 0px;\n}\n\n.Section--paddingBlockEnd-condensed,\n.Section-narrow--paddingBlockEnd-condensed {\n --padding-block-end: var(--brand-Section-padding-condensed);\n}\n.Section--paddingBlockEnd-normal,\n.Section-narrow--paddingBlockEnd-normal {\n --padding-block-end: var(--brand-Section-padding-normal);\n}\n.Section--paddingBlockEnd-spacious,\n.Section-narrow--paddingBlockEnd-spacious {\n --padding-block-end: var(--brand-Section-padding-spacious);\n}\n\n@media screen and (min-width: 48rem) {\n .Section {\n background-color: var(--brand-Section-regular-background-color, var(--brand-Section-background-color));\n background-image: var(--brand-Section-regular-background-image-src, var(--brand-Section-background-image-src));\n background-size: var(--brand-Section-regular-background-image-size, var(--brand-Section-background-image-size));\n background-position: var(\n --brand-Section-regular-background-image-position,\n var(--brand-Section-background-image-position)\n );\n }\n\n .Section-regular--paddingBlockStart-none {\n padding-block-start: 0;\n }\n\n .Section-regular--paddingBlockStart-condensed {\n padding-block-start: var(--brand-Section-padding-condensed);\n }\n .Section-regular--paddingBlockStart-normal {\n padding-block-start: var(--brand-Section-padding-normal);\n }\n .Section-regular--paddingBlockStart-spacious {\n padding-block-start: var(--brand-Section-padding-spacious);\n }\n\n .Section-regular--paddingBlockEnd-none {\n --padding-block-end: 0px;\n }\n\n .Section-regular--paddingBlockEnd-condensed {\n --padding-block-end: var(--brand-Section-padding-condensed);\n }\n .Section-regular--paddingBlockEnd-normal {\n --padding-block-end: var(--brand-Section-padding-normal);\n }\n .Section-regular--paddingBlockEnd-spacious {\n --padding-block-end: var(--brand-Section-padding-spacious);\n }\n}\n\n@media screen and (min-width: 80rem) {\n .Section {\n background-color: var(--brand-Section-wide-background-color, var(--brand-Section-background-color));\n background-image: var(--brand-Section-wide-background-image-src, var(--brand-Section-background-image-src));\n background-size: var(--brand-Section-wide-background-image-size, var(--brand-Section-background-image-size));\n\n background-position: var(\n --brand-Section-wide-background-image-position,\n var(--brand-Section-background-image-position)\n );\n }\n\n .Section-wide--paddingBlockStart-none {\n padding-block-start: 0;\n }\n\n .Section-wide--paddingBlockStart-condensed {\n padding-block-start: var(--brand-Section-padding-condensed);\n }\n .Section-wide--paddingBlockStart-normal {\n padding-block-start: var(--brand-Section-padding-normal);\n }\n .Section-wide--paddingBlockStart-spacious {\n padding-block-start: var(--brand-Section-padding-spacious);\n }\n\n .Section-wide--paddingBlockEnd-none {\n --padding-block-end: 0px;\n }\n\n .Section-wide--paddingBlockEnd-condensed {\n --padding-block-end: var(--brand-Section-padding-condensed);\n }\n .Section-wide--paddingBlockEnd-normal {\n --padding-block-end: var(--brand-Section-padding-normal);\n }\n .Section-wide--paddingBlockEnd-spacious {\n --padding-block-end: var(--brand-Section-padding-spacious);\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Section.module.js","names":[],"sources":["../../src/Section/Section.module.css"],"sourcesContent":[".Section {\n --rounded-padding-overlap-adjustment: 0px;\n --rounded-radius: var(--brand-borderRadius-xlarge);\n --padding-block-start: var(--brand-Section-padding-normal);\n --padding-block-end: var(--brand-Section-padding-normal);\n --adjusted-padding-block-end: calc(var(--padding-block-end) + var(--rounded-padding-overlap-adjustment));\n\n background-repeat: no-repeat;\n background-color: var(--brand-Section-narrow-background-color, var(--brand-Section-background-color));\n background-image: var(--brand-Section-narrow-background-image-src, var(--brand-Section-background-image-src));\n background-size: var(--brand-Section-narrow-background-image-size, var(--brand-Section-background-image-size));\n\n background-position: var(\n --brand-Section-narrow-background-image-position,\n var(--brand-Section-background-image-position, center)\n );\n\n padding-block-start: var(--padding-block-start);\n padding-block-end: var(--adjusted-padding-block-end);\n}\n\n.Section__container {\n width: 100%;\n max-width: var(--brand-Section-container-maxWidth);\n margin-inline: auto;\n}\n\n.Section__container--fullWidth {\n max-width: none;\n}\n\n.Section--variant-gridline .Section__container {\n padding-inline: var(--brand-Section-variant-gridline-paddingInline);\n}\n\n.Section--variant-gridline .Section__container--fullWidth {\n padding-inline: 0;\n}\n\n.Section.Section--variant-gridline::after {\n bottom: calc(-1 * var(--brand-borderWidth-thin));\n}\n\n.Section--rounded {\n border-radius: var(--rounded-radius) var(--rounded-radius) 0 0;\n margin-top: calc(-1 * var(--rounded-radius));\n}\n\n/* A progressive enhancment to adjust block-end padding to account for adjacent section rounded corners overlap. */\n.Section:has(+ .Section--rounded) {\n --rounded-padding-overlap-adjustment: var(--rounded-radius);\n}\n\n.Section--paddingBlockStart-none,\n.Section-narrow--paddingBlockStart-none {\n --padding-block-start: 0;\n}\n\n.Section--paddingBlockStart-condensed,\n.Section-narrow--paddingBlockStart-condensed {\n --padding-block-start: var(--brand-Section-padding-condensed);\n}\n.Section--paddingBlockStart-normal,\n.Section-narrow--paddingBlockStart-normal {\n --padding-block-start: var(--brand-Section-padding-normal);\n}\n.Section--paddingBlockStart-spacious,\n.Section-narrow--paddingBlockStart-spacious {\n --padding-block-start: var(--brand-Section-padding-spacious);\n}\n\n.Section--paddingBlockEnd-none,\n.Section-narrow--paddingBlockEnd-none {\n --padding-block-end: 0px;\n}\n\n.Section--paddingBlockEnd-condensed,\n.Section-narrow--paddingBlockEnd-condensed {\n --padding-block-end: var(--brand-Section-padding-condensed);\n}\n.Section--paddingBlockEnd-normal,\n.Section-narrow--paddingBlockEnd-normal {\n --padding-block-end: var(--brand-Section-padding-normal);\n}\n.Section--paddingBlockEnd-spacious,\n.Section-narrow--paddingBlockEnd-spacious {\n --padding-block-end: var(--brand-Section-padding-spacious);\n}\n\n@media screen and (min-width: 48rem) {\n .Section {\n background-color: var(--brand-Section-regular-background-color, var(--brand-Section-background-color));\n background-image: var(--brand-Section-regular-background-image-src, var(--brand-Section-background-image-src));\n background-size: var(--brand-Section-regular-background-image-size, var(--brand-Section-background-image-size));\n background-position: var(\n --brand-Section-regular-background-image-position,\n var(--brand-Section-background-image-position)\n );\n }\n\n .Section-regular--paddingBlockStart-none {\n --padding-block-start: 0;\n }\n\n .Section-regular--paddingBlockStart-condensed {\n --padding-block-start: var(--brand-Section-padding-condensed);\n }\n .Section-regular--paddingBlockStart-normal {\n --padding-block-start: var(--brand-Section-padding-normal);\n }\n .Section-regular--paddingBlockStart-spacious {\n --padding-block-start: var(--brand-Section-padding-spacious);\n }\n\n .Section-regular--paddingBlockEnd-none {\n --padding-block-end: 0px;\n }\n\n .Section-regular--paddingBlockEnd-condensed {\n --padding-block-end: var(--brand-Section-padding-condensed);\n }\n .Section-regular--paddingBlockEnd-normal {\n --padding-block-end: var(--brand-Section-padding-normal);\n }\n .Section-regular--paddingBlockEnd-spacious {\n --padding-block-end: var(--brand-Section-padding-spacious);\n }\n}\n\n@media screen and (min-width: 80rem) {\n .Section {\n background-color: var(--brand-Section-wide-background-color, var(--brand-Section-background-color));\n background-image: var(--brand-Section-wide-background-image-src, var(--brand-Section-background-image-src));\n background-size: var(--brand-Section-wide-background-image-size, var(--brand-Section-background-image-size));\n\n background-position: var(\n --brand-Section-wide-background-image-position,\n var(--brand-Section-background-image-position)\n );\n }\n\n .Section-wide--paddingBlockStart-none {\n --padding-block-start: 0;\n }\n\n .Section-wide--paddingBlockStart-condensed {\n --padding-block-start: var(--brand-Section-padding-condensed);\n }\n .Section-wide--paddingBlockStart-normal {\n --padding-block-start: var(--brand-Section-padding-normal);\n }\n .Section-wide--paddingBlockStart-spacious {\n --padding-block-start: var(--brand-Section-padding-spacious);\n }\n\n .Section-wide--paddingBlockEnd-none {\n --padding-block-end: 0px;\n }\n\n .Section-wide--paddingBlockEnd-condensed {\n --padding-block-end: var(--brand-Section-padding-condensed);\n }\n .Section-wide--paddingBlockEnd-normal {\n --padding-block-end: var(--brand-Section-padding-normal);\n }\n .Section-wide--paddingBlockEnd-spacious {\n --padding-block-end: var(--brand-Section-padding-spacious);\n }\n\n .Section--variant-gridline .Section__container:not(.Section__container--fullWidth) {\n position: relative;\n border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);\n }\n\n .Section--variant-gridline .Section__container:not(.Section__container--fullWidth)::before,\n .Section--variant-gridline .Section__container:not(.Section__container--fullWidth)::after {\n content: '';\n position: absolute;\n inset-block-start: calc(-1 * var(--padding-block-start));\n inset-block-end: calc(-1 * var(--adjusted-padding-block-end));\n width: var(--brand-borderWidth-thin);\n background-color: var(--brand-color-border-muted);\n pointer-events: none;\n }\n\n .Section--variant-gridline .Section__container:not(.Section__container--fullWidth)::before {\n inset-inline-start: calc(-1 * var(--brand-borderWidth-thin));\n }\n\n .Section--variant-gridline .Section__container:not(.Section__container--fullWidth)::after {\n inset-inline-end: calc(-1 * var(--brand-borderWidth-thin));\n }\n}\n"],"mappings":""}
package/esm/index.esm.js CHANGED
@@ -70,12 +70,12 @@ import { SubNav as un, SubNavSubMenuVariants as dn, useSubNavContext as fn } fro
70
70
  import { NavList as pn } from "./NavList/NavList.js";
71
71
  import { IDE as mn, IDEDefaultIconMap as hn, IDEFileExtensions as gn } from "./IDE/IDE.js";
72
72
  import { BreadcrumbVariants as _n, Breadcrumbs as vn } from "./Breadcrumbs/Breadcrumbs.js";
73
- import { Section as yn, SectionBackgroundColors as bn, SectionPaddingVariants as xn } from "./Section/Section.js";
74
- import { Statistic as Sn, StatisticSizes as Cn, StatisticSpacingValues as wn } from "./Statistic/Statistic.js";
75
- import { BreakoutBanner as Tn, BreakoutBannerBackgroundColors as En } from "./BreakoutBanner/BreakoutBanner.js";
76
- import { Footnotes as Dn, FootnotesItemTags as On, FootnotesTags as kn } from "./Footnotes/Footnotes.js";
77
- import { FrostedGlassVFX as An, FrostedGlassVFXIntensity as jn, defaultFrostedGlassVFXIntensity as Mn } from "./FrostedGlassVFX/FrostedGlassVFX.js";
78
- import { SectionIntroStacked as Nn, SectionIntroStackedVariants as Pn } from "./SectionIntroStacked/SectionIntroStacked.js";
79
- import { Tabs as Fn } from "./Tabs/Tabs.js";
80
- import { Tiles as In } from "./Tiles/Tiles.js";
81
- export { Qe as Accordion, $e as AccordionContent, et as AccordionHeading, tt as AccordionRoot, nt as AccordionToggleColors, ne as ActionMenu, re as ActionMenuButtonModes, ie as ActionMenuProvider, ae as ActionMenuSizes, Et as AnchorNav, a as Animate, n as AnimationContext, r as AnimationProvider, i as AnimationVariants, gt as Avatar, _t as AvatarShapes, vt as AvatarSizes, tn as Bento, g as Box, _ as BoxBackgroundColors, v as BoxBorderColorOptions, y as BoxBorderRadiusOptions, b as BoxBorderWidthOptions, x as BoxSpacingValues, _n as BreadcrumbVariants, vn as Breadcrumbs, Tn as BreakoutBanner, En as BreakoutBannerBackgroundColors, ze as BreakpointSize, K as Button, ce as ButtonGroup, q as ButtonSizes, J as ButtonVariants, Dt as CTABanner, Ot as CTABannerBackgroundColors, jt as CTAForm, It as Card, Lt as CardBackgroundColors, Rt as CardCTAVariants, zt as CardIconColors, Bt as CardImagePaddingOptions, Vt as CardLabelVariants, Ht as CardTokenPositions, Ut as CardVariants, at as Checkbox, mt as CheckboxGroup, Q as ColorModesEnum, wt as ComparisonTable, ot as DEFAULT_TEXTAREA_COLS, st as DEFAULT_TEXTAREA_RESIZE, ct as DEFAULT_TEXTAREA_ROWS, nn as EyebrowBanner, rn as EyebrowBannerIconColors, an as EyebrowBannerLabelColors, M as EyebrowText, N as EyebrowTextVariants, rt as FAQ, it as FAQGroup, Dn as Footnotes, On as FootnotesItemTags, kn as FootnotesTags, pt as FormControl, An as FrostedGlassVFX, jn as FrostedGlassVFXIntensity, t as Grid, I as Heading, L as HeadingFontVariants, R as HeadingLetterSpacing, z as HeadingSizes, B as HeadingStretch, V as HeadingTags, H as HeadingWeights, de as Hero, mn as IDE, hn as IDEDefaultIconMap, gn as IDEFileExtensions, je as Icon, le as Image, ue as ImageBorderRadiusOptions, Je as InlineCode, qe as InlineLink, ve as Label, ye as LabelColors, be as LabelSizes, me as Link, he as LinkArrowDirections, ge as LinkSizes, _e as LinkVariants, $t as LogoSuite, We as MediaPlaylist, Mt as MinimalFooter, Zt as MinimalVideoPlayer, pn as NavList, At as OrderedList, Ue as Pagination, Nt as Pillar, ln as PricingOptions, Jt as Prose, ft as Radio, ht as RadioGroup, Ce as River, fe as RiverAccordion, pe as RiverAccordionVariants, ke as RiverBreakout, Ve as RiverBreakoutTabs, Ae as RiverBreakoutVariants, He as RiverStoryScroll, we as RiverVisualPaddingOptions, Te as RiverVisualPositionOptions, yn as Section, bn as SectionBackgroundColors, qt as SectionIntro, Nn as SectionIntroStacked, Pn as SectionIntroStackedVariants, xn as SectionPaddingVariants, dt as Select, c as Stack, l as StackAlignItemVariants, u as StackDirectionVariants, d as StackFlexWrapVariants, f as StackJustifyContentVariants, p as StackSpacingVariants, Sn as Statistic, Cn as StatisticSizes, wn as StatisticSpacingValues, un as SubNav, dn as SubNavSubMenuVariants, Ke as SubdomainNavBar, Fn as Tabs, yt as Testimonial, bt as TestimonialQuoteMarkColors, xt as TestimonialVariants, S as Text, P as TextCursorAnimation, C as TextFontVariants, ut as TextInput, s as TextRevealAnimation, w as TextSizes, T as TextTags, E as TextVariants, D as TextWeights, lt as Textarea, $ as ThemeContext, ee as ThemeProvider, In as Tiles, en as Timeline, Ye as Token, Xe as TokenVariants, sn as Tooltip, cn as TooltipContext, kt as UnorderedList, Xt as VideoPlayer, Y as _Button, Tt as _ComparisonTable, e as _GLOBAL_STYLES, Qt as _MinimalVideoPlayer, oe as actionMenuOverlaySides, U as classMap, X as defaultButtonSize, Z as defaultButtonVariant, Wt as defaultCardCTAVariant, Gt as defaultCardIconColor, Kt as defaultCardLabelVariant, on as defaultEyebrowBannerIconColor, O as defaultFontVariant, Mn as defaultFrostedGlassVFXIntensity, W as defaultHeadingFont, G as defaultHeadingTag, Me as defaultIconColor, Ne as defaultIconSize, xe as defaultLabelColor, Se as defaultLabelSize, Pt as defaultPillarIconColor, Ft as defaultPillarIconSize, St as defaultQuoteMarkColor, Ee as defaultRiverAlign, De as defaultRiverImageTextRatio, Oe as defaultRiverVariant, m as defaultStackDirection, h as defaultStackSpacing, Ct as defaultTestimonialVariant, k as defaultTextSize, A as defaultTextTag, j as defaultTextVariant, Ze as defaultTokenVariant, Pe as iconColors, Fe as iconSizeMap, Ie as iconSizes, Le as namedIconSizes, Re as numericIconSizes, F as testIds, se as useActionMenuContext, o as useAnimation, Ge as useFocusTrap, fn as useSubNavContext, te as useTheme, Yt as useVideo, Be as useWindowSize };
73
+ import { Section as yn, SectionBackgroundColors as bn, SectionPaddingVariants as xn, SectionVariants as Sn } from "./Section/Section.js";
74
+ import { Statistic as Cn, StatisticSizes as wn, StatisticSpacingValues as Tn } from "./Statistic/Statistic.js";
75
+ import { BreakoutBanner as En, BreakoutBannerBackgroundColors as Dn } from "./BreakoutBanner/BreakoutBanner.js";
76
+ import { Footnotes as On, FootnotesItemTags as kn, FootnotesTags as An } from "./Footnotes/Footnotes.js";
77
+ import { FrostedGlassVFX as jn, FrostedGlassVFXIntensity as Mn, defaultFrostedGlassVFXIntensity as Nn } from "./FrostedGlassVFX/FrostedGlassVFX.js";
78
+ import { SectionIntroStacked as Pn, SectionIntroStackedVariants as Fn } from "./SectionIntroStacked/SectionIntroStacked.js";
79
+ import { Tabs as In } from "./Tabs/Tabs.js";
80
+ import { Tiles as Ln } from "./Tiles/Tiles.js";
81
+ export { Qe as Accordion, $e as AccordionContent, et as AccordionHeading, tt as AccordionRoot, nt as AccordionToggleColors, ne as ActionMenu, re as ActionMenuButtonModes, ie as ActionMenuProvider, ae as ActionMenuSizes, Et as AnchorNav, a as Animate, n as AnimationContext, r as AnimationProvider, i as AnimationVariants, gt as Avatar, _t as AvatarShapes, vt as AvatarSizes, tn as Bento, g as Box, _ as BoxBackgroundColors, v as BoxBorderColorOptions, y as BoxBorderRadiusOptions, b as BoxBorderWidthOptions, x as BoxSpacingValues, _n as BreadcrumbVariants, vn as Breadcrumbs, En as BreakoutBanner, Dn as BreakoutBannerBackgroundColors, ze as BreakpointSize, K as Button, ce as ButtonGroup, q as ButtonSizes, J as ButtonVariants, Dt as CTABanner, Ot as CTABannerBackgroundColors, jt as CTAForm, It as Card, Lt as CardBackgroundColors, Rt as CardCTAVariants, zt as CardIconColors, Bt as CardImagePaddingOptions, Vt as CardLabelVariants, Ht as CardTokenPositions, Ut as CardVariants, at as Checkbox, mt as CheckboxGroup, Q as ColorModesEnum, wt as ComparisonTable, ot as DEFAULT_TEXTAREA_COLS, st as DEFAULT_TEXTAREA_RESIZE, ct as DEFAULT_TEXTAREA_ROWS, nn as EyebrowBanner, rn as EyebrowBannerIconColors, an as EyebrowBannerLabelColors, M as EyebrowText, N as EyebrowTextVariants, rt as FAQ, it as FAQGroup, On as Footnotes, kn as FootnotesItemTags, An as FootnotesTags, pt as FormControl, jn as FrostedGlassVFX, Mn as FrostedGlassVFXIntensity, t as Grid, I as Heading, L as HeadingFontVariants, R as HeadingLetterSpacing, z as HeadingSizes, B as HeadingStretch, V as HeadingTags, H as HeadingWeights, de as Hero, mn as IDE, hn as IDEDefaultIconMap, gn as IDEFileExtensions, je as Icon, le as Image, ue as ImageBorderRadiusOptions, Je as InlineCode, qe as InlineLink, ve as Label, ye as LabelColors, be as LabelSizes, me as Link, he as LinkArrowDirections, ge as LinkSizes, _e as LinkVariants, $t as LogoSuite, We as MediaPlaylist, Mt as MinimalFooter, Zt as MinimalVideoPlayer, pn as NavList, At as OrderedList, Ue as Pagination, Nt as Pillar, ln as PricingOptions, Jt as Prose, ft as Radio, ht as RadioGroup, Ce as River, fe as RiverAccordion, pe as RiverAccordionVariants, ke as RiverBreakout, Ve as RiverBreakoutTabs, Ae as RiverBreakoutVariants, He as RiverStoryScroll, we as RiverVisualPaddingOptions, Te as RiverVisualPositionOptions, yn as Section, bn as SectionBackgroundColors, qt as SectionIntro, Pn as SectionIntroStacked, Fn as SectionIntroStackedVariants, xn as SectionPaddingVariants, Sn as SectionVariants, dt as Select, c as Stack, l as StackAlignItemVariants, u as StackDirectionVariants, d as StackFlexWrapVariants, f as StackJustifyContentVariants, p as StackSpacingVariants, Cn as Statistic, wn as StatisticSizes, Tn as StatisticSpacingValues, un as SubNav, dn as SubNavSubMenuVariants, Ke as SubdomainNavBar, In as Tabs, yt as Testimonial, bt as TestimonialQuoteMarkColors, xt as TestimonialVariants, S as Text, P as TextCursorAnimation, C as TextFontVariants, ut as TextInput, s as TextRevealAnimation, w as TextSizes, T as TextTags, E as TextVariants, D as TextWeights, lt as Textarea, $ as ThemeContext, ee as ThemeProvider, Ln as Tiles, en as Timeline, Ye as Token, Xe as TokenVariants, sn as Tooltip, cn as TooltipContext, kt as UnorderedList, Xt as VideoPlayer, Y as _Button, Tt as _ComparisonTable, e as _GLOBAL_STYLES, Qt as _MinimalVideoPlayer, oe as actionMenuOverlaySides, U as classMap, X as defaultButtonSize, Z as defaultButtonVariant, Wt as defaultCardCTAVariant, Gt as defaultCardIconColor, Kt as defaultCardLabelVariant, on as defaultEyebrowBannerIconColor, O as defaultFontVariant, Nn as defaultFrostedGlassVFXIntensity, W as defaultHeadingFont, G as defaultHeadingTag, Me as defaultIconColor, Ne as defaultIconSize, xe as defaultLabelColor, Se as defaultLabelSize, Pt as defaultPillarIconColor, Ft as defaultPillarIconSize, St as defaultQuoteMarkColor, Ee as defaultRiverAlign, De as defaultRiverImageTextRatio, Oe as defaultRiverVariant, m as defaultStackDirection, h as defaultStackSpacing, Ct as defaultTestimonialVariant, k as defaultTextSize, A as defaultTextTag, j as defaultTextVariant, Ze as defaultTokenVariant, Pe as iconColors, Fe as iconSizeMap, Ie as iconSizes, Le as namedIconSizes, Re as numericIconSizes, F as testIds, se as useActionMenuContext, o as useAnimation, Ge as useFocusTrap, fn as useSubNavContext, te as useTheme, Yt as useVideo, Be as useWindowSize };
@@ -0,0 +1 @@
1
+ :root{--brand-Section-variant-gridline-paddingInline:var(--base-size-20);--brand-Section-container-maxWidth:80rem;--brand-Section-padding-spacious:var(--base-size-64);--brand-Section-padding-normal:var(--base-size-48);--brand-Section-padding-condensed:var(--base-size-16)}@media (width>=768px){:root{--brand-Section-variant-gridline-paddingInline:var(--base-size-40);--brand-Section-padding-spacious:var(--base-size-80);--brand-Section-padding-normal:var(--base-size-64);--brand-Section-padding-condensed:var(--base-size-32)}}@media (width>=1024px){:root{--brand-Section-padding-spacious:var(--base-size-128);--brand-Section-padding-normal:var(--base-size-96);--brand-Section-padding-condensed:var(--base-size-48)}}@media (width>=1280px){:root{--brand-Section-variant-gridline-paddingInline:var(--base-size-64)}}
@@ -3,6 +3,7 @@ import type { BaseProps } from '../component-helpers';
3
3
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/section/section.css';
4
4
  export declare const SectionPaddingVariants: readonly ["none", "condensed", "normal", "spacious"];
5
5
  export declare const SectionBackgroundColors: readonly ["default", "subtle"];
6
+ export declare const SectionVariants: readonly ["default", "gridline"];
6
7
  type ResponsiveMap<T> = {
7
8
  narrow?: T;
8
9
  regular?: T;
@@ -15,11 +16,16 @@ type ResponsiveBackgroundImagePositionMap = ResponsiveMap<string | string[]>;
15
16
  type ResponsiveBackgroundImageSizeMap = ResponsiveMap<string | string[]>;
16
17
  type ResponsiveBackgroundImageSrcMap = ResponsiveMap<string | string[]>;
17
18
  type ResponsivePaddingVariantsMap = ResponsiveMap<PaddingVariants>;
19
+ type SectionVariant = (typeof SectionVariants)[number];
18
20
  type SectionProps = {
19
21
  /**
20
22
  * The HTML element used to render the section.
21
23
  */
22
24
  as?: 'section' | 'div';
25
+ /**
26
+ * The visual variant of the section.
27
+ */
28
+ variant?: SectionVariant;
23
29
  /**
24
30
  * The padding applied to the start of the section.
25
31
  */
@@ -50,6 +56,7 @@ type SectionProps = {
50
56
  fullWidth?: boolean;
51
57
  /**
52
58
  * Adds rounded corners to the top of the section.
59
+ * Not supported with the `gridline` variant.
53
60
  */
54
61
  rounded?: boolean;
55
62
  /**