@primer/react-brand 0.33.0-rc.9daf7a8 → 0.33.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 (309) hide show
  1. package/lib/CTABanner/CTABanner.d.ts +8 -8
  2. package/lib/Hero/Hero.d.ts +2 -2
  3. package/lib/IDE/IDE.d.ts +6 -0
  4. package/lib/Link/Link.d.ts +1 -1
  5. package/lib/LogoSuite/LogoSuite.d.ts +10 -10
  6. package/lib/Pagination/Pagination.d.ts +37 -0
  7. package/lib/Pagination/Pagination.visual.spec.d.ts +1 -0
  8. package/lib/Pagination/index.d.ts +1 -0
  9. package/lib/Pagination/model.d.ts +25 -0
  10. package/lib/Stack/Stack.d.ts +2 -2
  11. package/lib/SubNav/SubNav.d.ts +11 -1
  12. package/lib/css/main.css +251 -89
  13. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  14. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  15. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  16. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  17. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  18. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  19. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  20. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  21. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  22. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  23. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  24. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  25. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  26. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  29. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  30. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  31. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  32. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  39. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  40. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  41. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  42. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  43. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  44. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  45. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  46. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  47. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  48. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  49. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  50. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  51. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  52. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  53. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  54. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  55. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  56. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  57. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  58. package/lib/design-tokens/css/tokens/functional/components/pagination/colors-with-modes.css +17 -0
  59. package/lib/design-tokens/css/tokens/functional/components/pillar/colors-with-modes.css +1 -1
  60. package/lib/design-tokens/css/tokens/functional/components/pillar/colors.css +1 -1
  61. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  62. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  63. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  64. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  65. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  66. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  67. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  68. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  69. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  70. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  71. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  72. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  73. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  74. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  75. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  76. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  77. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  78. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  79. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  84. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  85. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  86. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  87. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  88. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  89. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  90. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  91. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  92. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  93. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  94. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  95. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  96. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  97. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  98. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  99. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  100. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  101. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  102. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  103. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  104. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  105. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  106. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  107. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  108. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  109. package/lib/design-tokens/js/module/tokens/functional/components/pillar/colors.js +1 -1
  110. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  111. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  112. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  113. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  114. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  115. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  116. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  117. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  118. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  119. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  120. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  121. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  122. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  123. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  124. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  125. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  126. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  127. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  128. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  129. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  130. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  131. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  132. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  133. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  134. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  135. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  136. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  137. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  138. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  139. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  140. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  141. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  142. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  143. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  144. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  145. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  146. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  147. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  148. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  149. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  150. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  151. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  152. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  153. package/lib/design-tokens/js/tokens/functional/components/pillar/colors.js +1 -1
  154. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  155. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  156. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  157. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  158. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  159. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  160. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  161. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  162. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  163. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  164. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  165. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  166. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  167. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  168. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  169. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  170. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  171. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  172. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  173. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  174. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  175. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  176. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  177. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  178. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  179. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  180. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  181. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  182. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  183. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  184. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  185. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  186. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  187. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  188. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  189. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  190. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  191. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  192. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  193. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  194. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  195. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  196. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  197. package/lib/design-tokens/scss/tokens/functional/components/pillar/colors.scss +1 -1
  198. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  199. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  200. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  201. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  202. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  203. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  204. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  205. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  206. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  207. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  208. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  209. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  210. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  211. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  212. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  213. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  214. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  215. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  216. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  217. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  218. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  219. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  220. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  221. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  222. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  223. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  224. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  225. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  226. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  227. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  228. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  229. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  230. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  231. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  232. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  233. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  234. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  235. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  236. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  237. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  238. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  239. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  240. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  241. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  242. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  243. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  244. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  245. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  246. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  247. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  248. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  249. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  250. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  251. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  252. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  253. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  254. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  255. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  256. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  257. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  258. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  259. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  260. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  261. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  262. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  263. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  264. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  265. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  266. package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.d.ts +1 -1
  267. package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.js +1 -1
  268. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  269. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  270. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  271. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  272. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  273. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  274. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  275. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  276. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  277. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  278. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  279. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  280. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  281. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  282. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  283. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  284. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  285. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  286. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  287. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  288. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  289. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  290. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  291. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  292. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  293. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  294. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  295. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  296. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  297. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  298. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  299. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  300. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  301. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  302. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  303. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  304. package/lib/forms/TextInput/TextInput.d.ts +1 -1
  305. package/lib/forms/Textarea/Textarea.d.ts +1 -1
  306. package/lib/index.d.ts +1 -0
  307. package/lib/index.js +1 -1
  308. package/lib/river/RiverBreakout/RiverBreakout.d.ts +1 -1
  309. package/package.json +1 -1
@@ -23,20 +23,20 @@ export declare const CTABanner: React.ForwardRefExoticComponent<Omit<BaseProps<H
23
23
  } & {
24
24
  as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
25
25
  size?: "display" | "1" | "2" | "3" | "4" | "5" | "6" | "subhead-large" | "subhead-medium" | undefined;
26
- weight?: "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "light" | "extralight" | {
27
- narrow?: "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "light" | "extralight" | undefined;
28
- regular?: "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "light" | "extralight" | undefined;
29
- wide?: "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "light" | "extralight" | undefined;
26
+ weight?: "light" | "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "extralight" | {
27
+ narrow?: "light" | "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "extralight" | undefined;
28
+ regular?: "light" | "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "extralight" | undefined;
29
+ wide?: "light" | "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "extralight" | undefined;
30
30
  } | undefined;
31
31
  stretch?: "normal" | "condensed" | "expanded" | {
32
32
  narrow?: "normal" | "condensed" | "expanded" | undefined;
33
33
  regular?: "normal" | "condensed" | "expanded" | undefined;
34
34
  wide?: "normal" | "condensed" | "expanded" | undefined;
35
35
  } | undefined;
36
- letterSpacing?: "normal" | "none" | "condensed" | {
37
- narrow?: "normal" | "none" | "condensed" | undefined;
38
- regular?: "normal" | "none" | "condensed" | undefined;
39
- wide?: "normal" | "none" | "condensed" | undefined;
36
+ letterSpacing?: "normal" | "condensed" | "none" | {
37
+ narrow?: "normal" | "condensed" | "none" | undefined;
38
+ regular?: "normal" | "condensed" | "none" | undefined;
39
+ wide?: "normal" | "condensed" | "none" | undefined;
40
40
  } | undefined;
41
41
  font?: "mona-sans" | "hubot-sans" | undefined;
42
42
  } & React.HTMLAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
@@ -58,7 +58,7 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
58
58
  children?: React.ReactNode;
59
59
  }, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
60
60
  Image: React.ForwardRefExoticComponent<(Omit<{
61
- position?: "block-end" | "inline-end" | undefined;
61
+ position?: "inline-end" | "block-end" | undefined;
62
62
  } & React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
63
63
  src: string;
64
64
  alt: string;
@@ -69,7 +69,7 @@ export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithC
69
69
  as?: "img" | undefined;
70
70
  srcSet?: Pick<React.ImgHTMLAttributes<HTMLImageElement>, "srcSet"> | undefined;
71
71
  }, "ref"> | Omit<{
72
- position?: "block-end" | "inline-end" | undefined;
72
+ position?: "inline-end" | "block-end" | undefined;
73
73
  } & React.ImgHTMLAttributes<HTMLImageElement> & BaseProps<HTMLImageElement> & {
74
74
  src: string;
75
75
  alt: string;
package/lib/IDE/IDE.d.ts CHANGED
@@ -58,6 +58,8 @@ export type IDEEditorFile = {
58
58
  code: string | string[];
59
59
  highlighter?: 'hljs';
60
60
  };
61
+ type IDEEditorTabIcon = Record<string, string>;
62
+ export declare const IDEDefaultIconMap: IDEEditorTabIcon;
61
63
  export declare const IDEFileExtensions: string[];
62
64
  /**
63
65
  * Use IDE to display a decorative editor component
@@ -126,6 +128,10 @@ export declare const IDE: React.NamedExoticComponent<{
126
128
  * Test id for the IDE.
127
129
  */
128
130
  'data-testid'?: string | undefined;
131
+ /**
132
+ * Enable user customisation of the icons used in file tabs.
133
+ */
134
+ tabIcons?: IDEEditorTabIcon | undefined;
129
135
  } & BaseProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
130
136
  };
131
137
  export {};
@@ -9,7 +9,7 @@ export type LinkProps = {
9
9
  /**
10
10
  * Position of the arrow.
11
11
  */
12
- arrowDirection?: 'start' | 'end';
12
+ arrowDirection?: 'start' | 'end' | 'none';
13
13
  /**
14
14
  * Specify alternative link appearance
15
15
  */
@@ -36,10 +36,10 @@ export declare const LogoSuite: (({ align, children, className, hasDivider, "dat
36
36
  font?: "mona-sans" | "hubot-sans" | undefined;
37
37
  size?: "700" | "600" | "500" | "400" | "300" | "200" | "100" | undefined;
38
38
  variant?: "default" | "muted" | undefined;
39
- weight?: "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "light" | "extralight" | import("../").ResponsiveWeightMap | undefined;
39
+ weight?: "light" | "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "extralight" | import("../").ResponsiveWeightMap | undefined;
40
40
  align?: "start" | "center" | "end" | undefined;
41
41
  } & {
42
- as?: "p" | "span" | "div" | "strong" | "em" | undefined;
42
+ as?: "span" | "div" | "em" | "p" | "strong" | undefined;
43
43
  } & React.HTMLAttributes<HTMLParagraphElement> & {
44
44
  as?: "p" | undefined;
45
45
  } & {
@@ -48,10 +48,10 @@ export declare const LogoSuite: (({ align, children, className, hasDivider, "dat
48
48
  font?: "mona-sans" | "hubot-sans" | undefined;
49
49
  size?: "700" | "600" | "500" | "400" | "300" | "200" | "100" | undefined;
50
50
  variant?: "default" | "muted" | undefined;
51
- weight?: "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "light" | "extralight" | import("../").ResponsiveWeightMap | undefined;
51
+ weight?: "light" | "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "extralight" | import("../").ResponsiveWeightMap | undefined;
52
52
  align?: "start" | "center" | "end" | undefined;
53
53
  } & {
54
- as?: "p" | "span" | "div" | "strong" | "em" | undefined;
54
+ as?: "span" | "div" | "em" | "p" | "strong" | undefined;
55
55
  } & React.HTMLAttributes<HTMLSpanElement> & BaseProps<HTMLSpanElement> & {
56
56
  as?: "span" | undefined;
57
57
  } & {
@@ -60,10 +60,10 @@ export declare const LogoSuite: (({ align, children, className, hasDivider, "dat
60
60
  font?: "mona-sans" | "hubot-sans" | undefined;
61
61
  size?: "700" | "600" | "500" | "400" | "300" | "200" | "100" | undefined;
62
62
  variant?: "default" | "muted" | undefined;
63
- weight?: "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "light" | "extralight" | import("../").ResponsiveWeightMap | undefined;
63
+ weight?: "light" | "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "extralight" | import("../").ResponsiveWeightMap | undefined;
64
64
  align?: "start" | "center" | "end" | undefined;
65
65
  } & {
66
- as?: "p" | "span" | "div" | "strong" | "em" | undefined;
66
+ as?: "span" | "div" | "em" | "p" | "strong" | undefined;
67
67
  } & React.HTMLAttributes<HTMLDivElement> & BaseProps<HTMLDivElement> & {
68
68
  as?: "div" | undefined;
69
69
  } & {
@@ -72,10 +72,10 @@ export declare const LogoSuite: (({ align, children, className, hasDivider, "dat
72
72
  font?: "mona-sans" | "hubot-sans" | undefined;
73
73
  size?: "700" | "600" | "500" | "400" | "300" | "200" | "100" | undefined;
74
74
  variant?: "default" | "muted" | undefined;
75
- weight?: "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "light" | "extralight" | import("../").ResponsiveWeightMap | undefined;
75
+ weight?: "light" | "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "extralight" | import("../").ResponsiveWeightMap | undefined;
76
76
  align?: "start" | "center" | "end" | undefined;
77
77
  } & {
78
- as?: "p" | "span" | "div" | "strong" | "em" | undefined;
78
+ as?: "span" | "div" | "em" | "p" | "strong" | undefined;
79
79
  } & React.HTMLAttributes<HTMLElement> & BaseProps<HTMLElement> & {
80
80
  as?: "strong" | undefined;
81
81
  } & {
@@ -84,10 +84,10 @@ export declare const LogoSuite: (({ align, children, className, hasDivider, "dat
84
84
  font?: "mona-sans" | "hubot-sans" | undefined;
85
85
  size?: "700" | "600" | "500" | "400" | "300" | "200" | "100" | undefined;
86
86
  variant?: "default" | "muted" | undefined;
87
- weight?: "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "light" | "extralight" | import("../").ResponsiveWeightMap | undefined;
87
+ weight?: "light" | "heavy" | "extrabold" | "bold" | "semibold" | "medium" | "normal" | "extralight" | import("../").ResponsiveWeightMap | undefined;
88
88
  align?: "start" | "center" | "end" | undefined;
89
89
  } & {
90
- as?: "p" | "span" | "div" | "strong" | "em" | undefined;
90
+ as?: "span" | "div" | "em" | "p" | "strong" | undefined;
91
91
  } & React.HTMLAttributes<HTMLElement> & BaseProps<HTMLElement> & {
92
92
  as?: "em" | undefined;
93
93
  } & {
@@ -0,0 +1,37 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import type { BaseProps } from '../component-helpers';
3
+ /**
4
+ * Design tokens
5
+ */
6
+ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/pagination/colors-with-modes.css';
7
+ type ResponsivePageVisibilityMap = {
8
+ narrow?: boolean;
9
+ regular?: boolean;
10
+ wide?: boolean;
11
+ };
12
+ export type PaginationProps = {
13
+ pageCount: number;
14
+ currentPage: number;
15
+ onPageChange?: (e: React.MouseEvent, n: number) => void;
16
+ hrefBuilder?: (n: number) => string;
17
+ marginPageCount?: number;
18
+ showPages?: boolean | ResponsivePageVisibilityMap;
19
+ surroundingPageCount?: number;
20
+ 'data-testid'?: string;
21
+ } & PropsWithChildren<BaseProps<HTMLElement>> & React.HTMLAttributes<HTMLElement>;
22
+ /**
23
+ * Use Pagination to display a sequence of links that allow navigation to discrete, related pages.
24
+ * @see https://primer.style/brand/components/Pagination
25
+ */
26
+ export declare const Pagination: React.MemoExoticComponent<({ id, children, className, pageCount, currentPage, onPageChange, hrefBuilder, marginPageCount, showPages, surroundingPageCount, "aria-label": ariaLabel, "data-testid": testId, ...rest }: PaginationProps) => JSX.Element>;
27
+ type UsePaginationPagesParameters = {
28
+ pageCount: number;
29
+ currentPage: number;
30
+ onPageChange?: (e: React.MouseEvent, n: number) => void;
31
+ hrefBuilder: (n: number) => string;
32
+ marginPageCount: number;
33
+ showPages?: PaginationProps['showPages'];
34
+ surroundingPageCount: number;
35
+ };
36
+ export declare function usePaginationPages({ pageCount, currentPage, onPageChange, hrefBuilder, marginPageCount, showPages, surroundingPageCount, }: UsePaginationPagesParameters): JSX.Element[];
37
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Pagination';
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import { LinkProps } from '../Link';
3
+ type PaginationModel = {
4
+ type: string;
5
+ num: number;
6
+ } | {
7
+ type: string;
8
+ num: number;
9
+ selected: boolean;
10
+ precedesBreak: boolean;
11
+ };
12
+ type PageType = {
13
+ type: string;
14
+ num: number;
15
+ disabled?: boolean;
16
+ selected?: boolean;
17
+ precedesBreak?: boolean;
18
+ };
19
+ export declare function buildPaginationModel(pageCount: number, currentPage: number, showPages: boolean, marginPageCount: number, surroundingPageCount: number): PaginationModel[];
20
+ export declare function buildComponentData(page: PageType, hrefBuilder: (n: number) => string, onClick: (e: React.MouseEvent) => void): {
21
+ props: LinkProps;
22
+ key: string;
23
+ content: string;
24
+ };
25
+ export {};
@@ -96,7 +96,7 @@ export declare const Stack: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLE
96
96
  * A string value will be applied to all viewports.
97
97
  * An object can be used to define different values for different viewports.
98
98
  */
99
- gap?: "normal" | 8 | 4 | "none" | "condensed" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128 | ResponsiveSpacingMap | undefined;
99
+ gap?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128 | ResponsiveSpacingMap | undefined;
100
100
  /**
101
101
  * Applies vertical alignment to child elements relative to the Stack, using the align-items CSS property.
102
102
  * A string value will be applied to all viewports.
@@ -108,7 +108,7 @@ export declare const Stack: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLE
108
108
  * A string value will be applied to all viewports.
109
109
  * An object can be used to define different values for different viewports.
110
110
  */
111
- padding?: "normal" | 8 | 4 | "none" | "condensed" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128 | ResponsiveSpacingMap | undefined;
111
+ padding?: "normal" | 8 | 4 | "condensed" | "none" | 12 | "spacious" | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 64 | 80 | 96 | 112 | 128 | ResponsiveSpacingMap | undefined;
112
112
  /**
113
113
  * Applies horizontal alignment to child elements relative to the Stack, using the justify-content CSS property.
114
114
  * A string value will be applied to all viewports.
@@ -8,6 +8,11 @@ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/compone
8
8
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css';
9
9
  export type SubNavProps = {
10
10
  hasShadow?: boolean;
11
+ /**
12
+ * Allows the SubNav to be used at full width,
13
+ * removing any internal padding and guttering.
14
+ */
15
+ fullWidth?: boolean;
11
16
  'data-testid'?: string;
12
17
  } & PropsWithChildren<BaseProps<HTMLElement>>;
13
18
  type SubNavHeadingProps = {
@@ -40,11 +45,16 @@ declare function _SubNavAction({ children, href, variant, size, ...rest }: SubNa
40
45
  */
41
46
  export declare const SubNav: React.NamedExoticComponent<{
42
47
  hasShadow?: boolean | undefined;
48
+ /**
49
+ * Allows the SubNav to be used at full width,
50
+ * removing any internal padding and guttering.
51
+ */
52
+ fullWidth?: boolean | undefined;
43
53
  'data-testid'?: string | undefined;
44
54
  } & BaseProps<HTMLElement> & {
45
55
  children?: React.ReactNode;
46
56
  }> & {
47
- readonly type: ({ id, children, className, "data-testid": testId, hasShadow }: SubNavProps) => JSX.Element;
57
+ readonly type: ({ id, children, className, "data-testid": testId, fullWidth, hasShadow }: SubNavProps) => JSX.Element;
48
58
  } & {
49
59
  Heading: ({ href, children, className, "data-testid": testID, ...props }: SubNavHeadingProps) => JSX.Element;
50
60
  Link: ({ children, href, "aria-current": ariaCurrent, "data-testid": testId, className, ...props }: SubNavLinkProps) => JSX.Element;