@primer/react-brand 0.78.0-rc.bcc08c15 → 0.78.0-rc.c01d8371

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 (455) hide show
  1. package/docs/components/SubNav/index.md +53 -8
  2. package/docs/index.md +2 -2
  3. package/esm/SubNav/SubNav.d.ts +19 -1
  4. package/esm/SubNav/SubNav.d.ts.map +1 -1
  5. package/esm/SubNav/SubNav.js +265 -166
  6. package/esm/SubNav/SubNav.js.map +1 -1
  7. package/esm/SubNav/SubNav.module-cyUt0N_h.css +1 -0
  8. package/esm/SubNav/SubNav.module.js +11 -4
  9. package/esm/SubNav/SubNav.module.js.map +1 -1
  10. package/esm/SubNav/useAnchorMenu.d.ts +5 -0
  11. package/esm/SubNav/useAnchorMenu.d.ts.map +1 -0
  12. package/esm/SubNav/useAnchorMenu.js +23 -0
  13. package/esm/SubNav/useAnchorMenu.js.map +1 -0
  14. package/esm/SubNav/useNarrowMenu.d.ts +8 -0
  15. package/esm/SubNav/useNarrowMenu.d.ts.map +1 -0
  16. package/esm/SubNav/useNarrowMenu.js +41 -0
  17. package/esm/SubNav/useNarrowMenu.js.map +1 -0
  18. package/esm/SubNav/useWideMenu.d.ts +13 -0
  19. package/esm/SubNav/useWideMenu.d.ts.map +1 -0
  20. package/esm/SubNav/useWideMenu.js +109 -0
  21. package/esm/SubNav/useWideMenu.js.map +1 -0
  22. package/esm/SubdomainNavBar/SubdomainNavBar.module-BLR1YjX-.css +1 -0
  23. package/esm/SubdomainNavBar/SubdomainNavBar.module.js +2 -3
  24. package/esm/SubdomainNavBar/SubdomainNavBar.module.js.map +1 -1
  25. package/esm/Tiles/Tiles.d.ts +1 -0
  26. package/esm/Tiles/Tiles.d.ts.map +1 -1
  27. package/esm/Tiles/Tiles.js +69 -39
  28. package/esm/Tiles/Tiles.js.map +1 -1
  29. package/esm/Tiles/Tiles.module-DUo9CsNB.css +1 -0
  30. package/esm/Tiles/Tiles.module.js +2 -2
  31. package/esm/Tiles/Tiles.module.js.map +1 -1
  32. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/base-Dl5rLq0_.css +1 -0
  33. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes-Bna3nyXf.css +1 -0
  34. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/base-CX1T1tsR.css +1 -0
  35. package/lib/SubNav/SubNav.d.ts +19 -1
  36. package/lib/SubNav/useAnchorMenu.d.ts +4 -0
  37. package/lib/SubNav/useNarrowMenu.d.ts +7 -0
  38. package/lib/SubNav/useWideMenu.d.ts +12 -0
  39. package/lib/Tiles/Tiles.d.ts +1 -0
  40. package/lib/css/main.css +335 -282
  41. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  42. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  43. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  44. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  45. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  46. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  47. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  48. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  49. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  50. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  51. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  52. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  53. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  54. package/lib/design-tokens/css/tokens/functional/components/button/base.css +1 -1
  55. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  56. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  57. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  58. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  59. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  60. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  61. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  62. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  63. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  64. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  65. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  66. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  67. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  68. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  69. package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
  70. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  71. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  72. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  73. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  74. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  75. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  76. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  77. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  78. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  79. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/components/icon-button/base.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/components/icon-button/colors.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  84. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  85. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  86. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
  87. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
  88. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  89. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  90. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  91. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  92. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  93. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  94. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  95. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  96. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  97. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  98. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  99. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  100. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
  101. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  102. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  103. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  104. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  105. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  106. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  107. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  108. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  109. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  110. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  111. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +6 -1
  112. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +15 -1
  113. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  114. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  115. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  116. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  117. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  118. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  119. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  120. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
  121. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  122. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  123. package/lib/design-tokens/css/tokens/functional/components/tiles/base.css +8 -0
  124. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  125. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  126. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  127. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  128. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  129. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  130. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  131. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  132. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  133. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  134. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  135. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  136. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  137. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  138. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  139. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  140. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  141. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  142. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  143. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  144. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  145. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  146. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  147. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  148. package/lib/design-tokens/js/module/tokens/functional/components/button/base.js +1 -1
  149. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  150. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  151. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  152. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  153. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  154. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  155. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  156. package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
  157. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  158. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  159. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  160. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  161. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  162. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  163. package/lib/design-tokens/js/module/tokens/functional/components/icon-button/base.js +1 -1
  164. package/lib/design-tokens/js/module/tokens/functional/components/icon-button/colors.js +1 -1
  165. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  166. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  167. package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
  168. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  169. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  170. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  171. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  172. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  173. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  174. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  175. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  176. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  177. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  178. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  179. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  180. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  181. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  182. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +10 -1
  183. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  184. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  185. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  186. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  187. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
  188. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  189. package/lib/design-tokens/js/module/tokens/functional/components/tiles/base.js +14 -0
  190. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  191. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  192. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  193. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  194. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  195. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  196. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  197. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  198. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  199. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  200. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  201. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  202. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  203. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  204. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  205. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  206. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  207. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  208. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  209. package/lib/design-tokens/js/tokens/functional/components/button/base.js +1 -1
  210. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  211. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  212. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  213. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  214. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  215. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  216. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  217. package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
  218. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  219. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  220. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  221. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  222. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  223. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  224. package/lib/design-tokens/js/tokens/functional/components/icon-button/base.js +1 -1
  225. package/lib/design-tokens/js/tokens/functional/components/icon-button/colors.js +1 -1
  226. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  227. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  228. package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
  229. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  230. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  231. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  232. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  233. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  234. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  235. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  236. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  237. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  238. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  239. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  240. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  241. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  242. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  243. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +6 -1
  244. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  245. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  246. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  247. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  248. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
  249. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  250. package/lib/design-tokens/js/tokens/functional/components/tiles/base.js +6 -0
  251. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  252. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  253. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  254. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  255. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  256. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  257. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  258. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  259. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  260. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  261. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  262. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  263. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  264. package/lib/design-tokens/json/colors.json +7 -0
  265. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  266. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  267. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  268. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  269. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  270. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  271. package/lib/design-tokens/scss/tokens/functional/components/button/base.scss +1 -1
  272. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  273. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  274. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  275. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  276. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  277. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  278. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  279. package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
  280. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  281. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  282. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  283. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  284. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  285. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  286. package/lib/design-tokens/scss/tokens/functional/components/icon-button/base.scss +1 -1
  287. package/lib/design-tokens/scss/tokens/functional/components/icon-button/colors.scss +1 -1
  288. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  289. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  290. package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
  291. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  292. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  293. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  294. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  295. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  296. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  297. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  298. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  299. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  300. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  301. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  302. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  303. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  304. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  305. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +6 -1
  306. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  307. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  308. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  309. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  310. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
  311. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  312. package/lib/design-tokens/scss/tokens/functional/components/tiles/base.scss +5 -0
  313. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  314. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  315. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  316. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  317. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  318. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  319. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  320. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  321. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  322. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  323. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  324. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  325. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  326. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  327. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  328. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  329. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  330. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  331. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  332. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  333. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  334. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  335. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  336. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  337. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  338. package/lib/design-tokens/ts/tokens/functional/components/button/base.d.ts +1 -1
  339. package/lib/design-tokens/ts/tokens/functional/components/button/base.js +1 -1
  340. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  341. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  342. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  343. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  344. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  345. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  346. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  347. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  348. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  349. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  350. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  351. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  352. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  353. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  354. package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
  355. package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
  356. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  357. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  358. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  359. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  360. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  361. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  362. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  363. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  364. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  365. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  366. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  367. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  368. package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.d.ts +1 -1
  369. package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.js +1 -1
  370. package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.d.ts +1 -1
  371. package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.js +1 -1
  372. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  373. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  374. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  375. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  376. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
  377. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
  378. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  379. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  380. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  381. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  382. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  383. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  384. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  385. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  386. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  387. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  388. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  389. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  390. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  391. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  392. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  393. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  394. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  395. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  396. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  397. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  398. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  399. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  400. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  401. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  402. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  403. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  404. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  405. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  406. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +11 -2
  407. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +10 -1
  408. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  409. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  410. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  411. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  412. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  413. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  414. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  415. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  416. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
  417. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
  418. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  419. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  420. package/lib/design-tokens/ts/tokens/functional/components/tiles/base.d.ts +17 -0
  421. package/lib/design-tokens/ts/tokens/functional/components/tiles/base.js +14 -0
  422. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  423. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  424. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  425. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  426. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  427. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  428. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  429. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  430. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  431. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  432. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  433. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  434. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  435. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  436. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  437. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  438. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  439. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  440. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  441. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  442. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  443. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  444. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  445. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  446. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  447. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  448. package/lib/index.js +1 -1
  449. package/llms.txt +2 -2
  450. package/package.json +1 -1
  451. package/esm/SubNav/SubNav.module-D-gLr0JO.css +0 -1
  452. package/esm/SubdomainNavBar/SubdomainNavBar.module-BE9mtBPE.css +0 -1
  453. package/esm/Tiles/Tiles.module-BzHaDJV8.css +0 -1
  454. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/base-DIkvLW-s.css +0 -1
  455. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes-5gfdihUt.css +0 -1
@@ -2,12 +2,14 @@ import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
2
2
  import { Text as t } from "../Text/Text.js";
3
3
  import { ArrowUpRightIcon as n } from "../node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js";
4
4
  import r from "../component-helpers/shared.module.js";
5
- import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes-DTTqGOfy.css';/* empty css */
6
- import i from "./Tiles.module.js";
7
- import { createContext as a, forwardRef as o, useContext as s } from "react";
8
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
+ import { isFragmentElement as i } from "../utils/isFragmentElement.js";
6
+ import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes-DTTqGOfy.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/tiles/base-CX1T1tsR.css';/* empty css */
7
+ /* empty css */
8
+ import a from "./Tiles.module.js";
9
+ import o, { createContext as s, forwardRef as c, useContext as l } from "react";
10
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
11
  //#region src/Tiles/Tiles.tsx
10
- var u = {
12
+ var f = {
11
13
  root: "Tiles",
12
14
  get grid() {
13
15
  return `${this.root}-grid`;
@@ -15,56 +17,84 @@ var u = {
15
17
  get item() {
16
18
  return `${this.root}-item`;
17
19
  }
18
- }, d = a("default"), f = o(({ variant: t = "default", layout: n = "default", children: a, className: o, "data-testid": s, ...l }, f) => /* @__PURE__ */ c(d.Provider, {
19
- value: n,
20
- children: /* @__PURE__ */ c("div", {
21
- ref: f,
22
- className: e(i.Tiles, i[`Tiles--variant-${t}`], i[`Tiles--layout-${n}`], t === "gridlines" && r.gridline, o),
23
- "data-testid": s || u.root,
24
- ...l,
25
- children: /* @__PURE__ */ c("ul", {
26
- className: i["Tiles-grid"],
27
- "data-testid": u.grid,
28
- children: a
20
+ }, p = {
21
+ default: {
22
+ xsmall: 2,
23
+ small: 3,
24
+ medium: 4,
25
+ large: 9
26
+ },
27
+ compact: {
28
+ xsmall: 4,
29
+ small: 3,
30
+ medium: 6,
31
+ large: 9
32
+ }
33
+ }, m = s("default"), h = c(({ variant: t = "default", layout: n = "default", children: s, className: c, "data-testid": l, ...d }, h) => {
34
+ let g = (e) => o.Children.toArray(e).reduce((e, t) => e + (i(t) ? g(t.props.children) : 1), 0), _ = (e, t) => {
35
+ if (e === 0) return 1;
36
+ let n = Math.ceil(e / t);
37
+ return Math.ceil(e / n);
38
+ }, v = g(s);
39
+ (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test") && v > 9 && console.warn("Tiles: Use no more than 9 items.");
40
+ let y = p[n], b = {
41
+ "--tiles-columns-xsmall": _(v, y.xsmall),
42
+ "--tiles-columns-small": _(v, y.small),
43
+ "--tiles-columns-medium": _(v, y.medium),
44
+ "--tiles-columns-large": _(v, y.large)
45
+ };
46
+ return /* @__PURE__ */ u(m.Provider, {
47
+ value: n,
48
+ children: /* @__PURE__ */ u("div", {
49
+ ref: h,
50
+ className: e(a.Tiles, a[`Tiles--variant-${t}`], a[`Tiles--layout-${n}`], t === "gridlines" && r.gridline, c),
51
+ "data-testid": l || f.root,
52
+ ...d,
53
+ children: /* @__PURE__ */ u("ul", {
54
+ className: a["Tiles-grid"],
55
+ "data-testid": f.grid,
56
+ style: b,
57
+ children: s
58
+ })
29
59
  })
30
- })
31
- })), p = o(({ name: r, href: a, children: o, className: f, "data-testid": p, ...m }, h) => {
32
- let g = s(d), _ = !!a, v = g === "compact" && !_, y = /* @__PURE__ */ l("span", {
33
- className: i["Tiles-item-content"],
34
- children: [/* @__PURE__ */ c("span", {
35
- className: i["Tiles-item-media"],
60
+ });
61
+ }), g = c(({ name: r, href: i, children: o, className: s, "data-testid": c, ...p }, h) => {
62
+ let g = l(m), _ = !!i, v = g === "compact" && !_, y = /* @__PURE__ */ d("span", {
63
+ className: a["Tiles-item-content"],
64
+ children: [/* @__PURE__ */ u("span", {
65
+ className: a["Tiles-item-media"],
36
66
  "aria-hidden": "true",
37
67
  children: o
38
- }), /* @__PURE__ */ l("span", {
39
- className: e(i["Tiles-item-label"], v && "visually-hidden"),
40
- children: [/* @__PURE__ */ c(t, {
68
+ }), /* @__PURE__ */ d("span", {
69
+ className: e(a["Tiles-item-label"], v && "visually-hidden"),
70
+ children: [/* @__PURE__ */ u(t, {
41
71
  as: "span",
42
72
  size: "100",
43
- className: i["Tiles-item-name"],
73
+ className: a["Tiles-item-name"],
44
74
  children: r
45
- }), _ && /* @__PURE__ */ c(n, {
75
+ }), _ && /* @__PURE__ */ u(n, {
46
76
  size: 16,
47
- className: i["Tiles-item-icon"],
77
+ className: a["Tiles-item-icon"],
48
78
  "aria-hidden": "true"
49
79
  })]
50
80
  })]
51
81
  });
52
- return /* @__PURE__ */ c("li", {
82
+ return /* @__PURE__ */ u("li", {
53
83
  ref: h,
54
- className: e(i["Tiles-item"], f),
55
- "data-testid": p || u.item,
56
- ...m,
57
- children: _ ? /* @__PURE__ */ c("a", {
58
- href: a,
59
- className: i["Tiles-item-link"],
84
+ className: e(a["Tiles-item"], s),
85
+ "data-testid": c || f.item,
86
+ ...p,
87
+ children: _ ? /* @__PURE__ */ u("a", {
88
+ href: i,
89
+ className: a["Tiles-item-link"],
60
90
  children: y
61
91
  }) : y
62
92
  });
63
- }), m = Object.assign(f, {
64
- Item: p,
65
- testIds: u
93
+ }), _ = Object.assign(h, {
94
+ Item: g,
95
+ testIds: f
66
96
  });
67
97
  //#endregion
68
- export { m as Tiles };
98
+ export { _ as Tiles };
69
99
 
70
100
  //# sourceMappingURL=Tiles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tiles.js","names":[],"sources":["../../src/Tiles/Tiles.tsx"],"sourcesContent":["import {clsx} from 'clsx'\nimport React, {createContext, forwardRef, type PropsWithChildren, type Ref, useContext} from 'react'\nimport {ArrowUpRightIcon} from '@primer/octicons-react'\nimport type {BaseProps} from '../component-helpers'\nimport gridlineStyles from '../component-helpers/shared.module.css'\nimport {Text} from '../Text'\n\n/** * Design Tokens */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Tiles.module.css'\n\nconst testIds = {\n root: 'Tiles',\n get grid() {\n return `${this.root}-grid`\n },\n get item() {\n return `${this.root}-item`\n },\n}\n\ntype TilesVariant = 'default' | 'gridlines'\n\ntype TilesLayout = 'default' | 'compact'\n\nconst TilesContext = createContext<TilesLayout>('default')\n\nexport type TilesProps = {\n /**\n * The visual variant of the Tiles component.\n */\n variant?: TilesVariant\n /**\n * The layout density of the Tiles grid.\n */\n layout?: TilesLayout\n /**\n * Test id for the root Tiles element.\n */\n 'data-testid'?: string\n} & BaseProps<HTMLDivElement> &\n React.HTMLAttributes<HTMLDivElement>\n\nconst TilesRoot = forwardRef(\n (\n {\n variant = 'default',\n layout = 'default',\n children,\n className,\n 'data-testid': testId,\n ...rest\n }: PropsWithChildren<TilesProps>,\n ref: Ref<HTMLDivElement>,\n ) => {\n return (\n <TilesContext.Provider value={layout}>\n <div\n ref={ref}\n className={clsx(\n styles.Tiles,\n styles[`Tiles--variant-${variant}`],\n styles[`Tiles--layout-${layout}`],\n variant === 'gridlines' && gridlineStyles.gridline,\n className,\n )}\n data-testid={testId || testIds.root}\n {...rest}\n >\n <ul className={styles['Tiles-grid']} data-testid={testIds.grid}>\n {children}\n </ul>\n </div>\n </TilesContext.Provider>\n )\n },\n)\n\nexport type TilesItemProps = {\n /**\n * The accessible name for the tile item.\n */\n name: string\n /**\n * Optional URL to link the tile to.\n */\n href?: string\n /**\n * Test id for the tile item element.\n */\n 'data-testid'?: string\n} & BaseProps<HTMLLIElement> &\n Omit<React.HTMLAttributes<HTMLLIElement>, 'children'> & {\n children: React.ReactNode\n }\n\nconst _Item = forwardRef(\n ({name, href, children, className, 'data-testid': testId, ...rest}: TilesItemProps, ref: Ref<HTMLLIElement>) => {\n const layout = useContext(TilesContext)\n const hasLink = Boolean(href)\n const isLabelHidden = layout === 'compact' && !hasLink\n\n const content = (\n <span className={styles['Tiles-item-content']}>\n <span className={styles['Tiles-item-media']} aria-hidden=\"true\">\n {children}\n </span>\n <span className={clsx(styles['Tiles-item-label'], isLabelHidden && 'visually-hidden')}>\n <Text as=\"span\" size=\"100\" className={styles['Tiles-item-name']}>\n {name}\n </Text>\n {hasLink && <ArrowUpRightIcon size={16} className={styles['Tiles-item-icon']} aria-hidden=\"true\" />}\n </span>\n </span>\n )\n\n return (\n <li ref={ref} className={clsx(styles['Tiles-item'], className)} data-testid={testId || testIds.item} {...rest}>\n {hasLink ? (\n <a href={href} className={styles['Tiles-item-link']}>\n {content}\n </a>\n ) : (\n content\n )}\n </li>\n )\n },\n)\n\n/**\n * Use Tiles to display a grid of logos or icons with optional links.\n * @see https://primer.style/brand/components/Tiles\n */\nexport const Tiles = Object.assign(TilesRoot, {\n Item: _Item,\n testIds,\n})\n"],"mappings":";;;;;;;;;AAaA,IAAM,IAAU;CACd,MAAM;CACN,IAAI,OAAO;EACT,OAAO,GAAG,KAAK,KAAK;CACtB;CACA,IAAI,OAAO;EACT,OAAO,GAAG,KAAK,KAAK;CACtB;AACF,GAMM,IAAe,EAA2B,SAAS,GAkBnD,IAAY,GAEd,EACE,aAAU,WACV,YAAS,WACT,aACA,cACA,eAAe,GACf,GAAG,KAEL,MAGE,kBAAC,EAAa,UAAd;CAAuB,OAAO;WAC5B,kBAAC,OAAD;EACO;EACL,WAAW,EACT,EAAO,OACP,EAAO,kBAAkB,MACzB,EAAO,iBAAiB,MACxB,MAAY,eAAe,EAAe,UAC1C,CACF;EACA,eAAa,KAAU,EAAQ;EAC/B,GAAI;YAEJ,kBAAC,MAAD;GAAI,WAAW,EAAO;GAAe,eAAa,EAAQ;GACvD;EACC,CAAA;CACD,CAAA;AACgB,CAAA,CAG7B,GAoBM,IAAQ,GACX,EAAC,SAAM,SAAM,aAAU,cAAW,eAAe,GAAQ,GAAG,KAAuB,MAA4B;CAC9G,IAAM,IAAS,EAAW,CAAY,GAChC,IAAU,EAAQ,GAClB,IAAgB,MAAW,aAAa,CAAC,GAEzC,IACJ,kBAAC,QAAD;EAAM,WAAW,EAAO;YAAxB,CACE,kBAAC,QAAD;GAAM,WAAW,EAAO;GAAqB,eAAY;GACtD;EACG,CAAA,GACN,kBAAC,QAAD;GAAM,WAAW,EAAK,EAAO,qBAAqB,KAAiB,iBAAiB;aAApF,CACE,kBAAC,GAAD;IAAM,IAAG;IAAO,MAAK;IAAM,WAAW,EAAO;cAC1C;GACG,CAAA,GACL,KAAW,kBAAC,GAAD;IAAkB,MAAM;IAAI,WAAW,EAAO;IAAoB,eAAY;GAAQ,CAAA,CAC9F;IACF;;CAGR,OACE,kBAAC,MAAD;EAAS;EAAK,WAAW,EAAK,EAAO,eAAe,CAAS;EAAG,eAAa,KAAU,EAAQ;EAAM,GAAI;YACtG,IACC,kBAAC,KAAD;GAAS;GAAM,WAAW,EAAO;aAC9B;EACA,CAAA,IAEH;CAEA,CAAA;AAER,CACF,GAMa,IAAQ,OAAO,OAAO,GAAW;CAC5C,MAAM;CACN;AACF,CAAC"}
1
+ {"version":3,"file":"Tiles.js","names":[],"sources":["../../src/Tiles/Tiles.tsx"],"sourcesContent":["import {clsx} from 'clsx'\nimport React, {createContext, forwardRef, type PropsWithChildren, type Ref, useContext} from 'react'\nimport {ArrowUpRightIcon} from '@primer/octicons-react'\nimport type {BaseProps} from '../component-helpers'\nimport gridlineStyles from '../component-helpers/shared.module.css'\nimport {Text} from '../Text'\nimport {isFragmentElement} from '../utils/isFragmentElement'\n\n/** * Design Tokens */\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/tiles/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css'\n\n/** * Main Stylesheet (as a CSS Module) */\nimport styles from './Tiles.module.css'\n\nconst testIds = {\n root: 'Tiles',\n get grid() {\n return `${this.root}-grid`\n },\n get item() {\n return `${this.root}-item`\n },\n}\n\ntype TilesVariant = 'default' | 'gridlines'\n\ntype TilesLayout = 'default' | 'compact'\n\nconst maximumTilesPerRowByViewport = {\n default: {xsmall: 2, small: 3, medium: 4, large: 9},\n compact: {xsmall: 4, small: 3, medium: 6, large: 9},\n} satisfies Record<TilesLayout, Record<'xsmall' | 'small' | 'medium' | 'large', number>>\n\nconst TilesContext = createContext<TilesLayout>('default')\n\nexport type TilesProps = {\n /**\n * The visual variant of the Tiles component.\n */\n variant?: TilesVariant\n /**\n * The layout density of the Tiles grid.\n */\n layout?: TilesLayout\n /**\n * Test id for the root Tiles element.\n */\n 'data-testid'?: string\n} & BaseProps<HTMLDivElement> &\n React.HTMLAttributes<HTMLDivElement>\n\nconst TilesRoot = forwardRef(\n (\n {\n variant = 'default',\n layout = 'default',\n children,\n className,\n 'data-testid': testId,\n ...rest\n }: PropsWithChildren<TilesProps>,\n ref: Ref<HTMLDivElement>,\n ) => {\n const getChildCount = (childNodes: React.ReactNode): number =>\n React.Children.toArray(childNodes).reduce<number>(\n (count, child) => count + (isFragmentElement(child) ? getChildCount(child.props.children) : 1),\n 0,\n )\n\n const getBalancedColumnCount = (itemCount: number, maximumTilesPerRow: number) => {\n if (itemCount === 0) return 1\n\n const fewestRowsNeeded = Math.ceil(itemCount / maximumTilesPerRow)\n return Math.ceil(itemCount / fewestRowsNeeded)\n }\n\n const itemCount = getChildCount(children)\n\n if ((process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') && itemCount > 9) {\n // eslint-disable-next-line no-console\n console.warn('Tiles: Use no more than 9 items.')\n }\n\n const maximumTilesPerRow = maximumTilesPerRowByViewport[layout]\n const gridStyle = {\n '--tiles-columns-xsmall': getBalancedColumnCount(itemCount, maximumTilesPerRow.xsmall),\n '--tiles-columns-small': getBalancedColumnCount(itemCount, maximumTilesPerRow.small),\n '--tiles-columns-medium': getBalancedColumnCount(itemCount, maximumTilesPerRow.medium),\n '--tiles-columns-large': getBalancedColumnCount(itemCount, maximumTilesPerRow.large),\n } as React.CSSProperties\n\n return (\n <TilesContext.Provider value={layout}>\n <div\n ref={ref}\n className={clsx(\n styles.Tiles,\n styles[`Tiles--variant-${variant}`],\n styles[`Tiles--layout-${layout}`],\n variant === 'gridlines' && gridlineStyles.gridline,\n className,\n )}\n data-testid={testId || testIds.root}\n {...rest}\n >\n <ul className={styles['Tiles-grid']} data-testid={testIds.grid} style={gridStyle}>\n {children}\n </ul>\n </div>\n </TilesContext.Provider>\n )\n },\n)\n\nexport type TilesItemProps = {\n /**\n * The accessible name for the tile item.\n */\n name: string\n /**\n * Optional URL to link the tile to.\n */\n href?: string\n /**\n * Test id for the tile item element.\n */\n 'data-testid'?: string\n} & BaseProps<HTMLLIElement> &\n Omit<React.HTMLAttributes<HTMLLIElement>, 'children'> & {\n children: React.ReactNode\n }\n\nconst _Item = forwardRef(\n ({name, href, children, className, 'data-testid': testId, ...rest}: TilesItemProps, ref: Ref<HTMLLIElement>) => {\n const layout = useContext(TilesContext)\n const hasLink = Boolean(href)\n const isLabelHidden = layout === 'compact' && !hasLink\n\n const content = (\n <span className={styles['Tiles-item-content']}>\n <span className={styles['Tiles-item-media']} aria-hidden=\"true\">\n {children}\n </span>\n <span className={clsx(styles['Tiles-item-label'], isLabelHidden && 'visually-hidden')}>\n <Text as=\"span\" size=\"100\" className={styles['Tiles-item-name']}>\n {name}\n </Text>\n {hasLink && <ArrowUpRightIcon size={16} className={styles['Tiles-item-icon']} aria-hidden=\"true\" />}\n </span>\n </span>\n )\n\n return (\n <li ref={ref} className={clsx(styles['Tiles-item'], className)} data-testid={testId || testIds.item} {...rest}>\n {hasLink ? (\n <a href={href} className={styles['Tiles-item-link']}>\n {content}\n </a>\n ) : (\n content\n )}\n </li>\n )\n },\n)\n\n/**\n * Use Tiles to display a grid of logos or icons with optional links.\n * @see https://primer.style/brand/components/Tiles\n */\nexport const Tiles = Object.assign(TilesRoot, {\n Item: _Item,\n testIds,\n})\n"],"mappings":";;;;;;;;;;;AAeA,IAAM,IAAU;CACd,MAAM;CACN,IAAI,OAAO;EACT,OAAO,GAAG,KAAK,KAAK;CACtB;CACA,IAAI,OAAO;EACT,OAAO,GAAG,KAAK,KAAK;CACtB;AACF,GAMM,IAA+B;CACnC,SAAS;EAAC,QAAQ;EAAG,OAAO;EAAG,QAAQ;EAAG,OAAO;CAAC;CAClD,SAAS;EAAC,QAAQ;EAAG,OAAO;EAAG,QAAQ;EAAG,OAAO;CAAC;AACpD,GAEM,IAAe,EAA2B,SAAS,GAkBnD,IAAY,GAEd,EACE,aAAU,WACV,YAAS,WACT,aACA,cACA,eAAe,GACf,GAAG,KAEL,MACG;CACH,IAAM,KAAiB,MACrB,EAAM,SAAS,QAAQ,CAAU,CAAC,CAAC,QAChC,GAAO,MAAU,KAAS,EAAkB,CAAK,IAAI,EAAc,EAAM,MAAM,QAAQ,IAAI,IAC5F,CACF,GAEI,KAA0B,GAAmB,MAA+B;EAChF,IAAI,MAAc,GAAG,OAAO;EAE5B,IAAM,IAAmB,KAAK,KAAK,IAAY,CAAkB;EACjE,OAAO,KAAK,KAAK,IAAY,CAAgB;CAC/C,GAEM,IAAY,EAAc,CAAQ;CAExC,CAAA,QAAA,IAAA,aAA8B,iBAAA,QAAA,IAAA,aAA0C,WAAW,IAAY,KAE7F,QAAQ,KAAK,kCAAkC;CAGjD,IAAM,IAAqB,EAA6B,IAClD,IAAY;EAChB,0BAA0B,EAAuB,GAAW,EAAmB,MAAM;EACrF,yBAAyB,EAAuB,GAAW,EAAmB,KAAK;EACnF,0BAA0B,EAAuB,GAAW,EAAmB,MAAM;EACrF,yBAAyB,EAAuB,GAAW,EAAmB,KAAK;CACrF;CAEA,OACE,kBAAC,EAAa,UAAd;EAAuB,OAAO;YAC5B,kBAAC,OAAD;GACO;GACL,WAAW,EACT,EAAO,OACP,EAAO,kBAAkB,MACzB,EAAO,iBAAiB,MACxB,MAAY,eAAe,EAAe,UAC1C,CACF;GACA,eAAa,KAAU,EAAQ;GAC/B,GAAI;aAEJ,kBAAC,MAAD;IAAI,WAAW,EAAO;IAAe,eAAa,EAAQ;IAAM,OAAO;IACpE;GACC,CAAA;EACD,CAAA;CACgB,CAAA;AAE3B,CACF,GAoBM,IAAQ,GACX,EAAC,SAAM,SAAM,aAAU,cAAW,eAAe,GAAQ,GAAG,KAAuB,MAA4B;CAC9G,IAAM,IAAS,EAAW,CAAY,GAChC,IAAU,EAAQ,GAClB,IAAgB,MAAW,aAAa,CAAC,GAEzC,IACJ,kBAAC,QAAD;EAAM,WAAW,EAAO;YAAxB,CACE,kBAAC,QAAD;GAAM,WAAW,EAAO;GAAqB,eAAY;GACtD;EACG,CAAA,GACN,kBAAC,QAAD;GAAM,WAAW,EAAK,EAAO,qBAAqB,KAAiB,iBAAiB;aAApF,CACE,kBAAC,GAAD;IAAM,IAAG;IAAO,MAAK;IAAM,WAAW,EAAO;cAC1C;GACG,CAAA,GACL,KAAW,kBAAC,GAAD;IAAkB,MAAM;IAAI,WAAW,EAAO;IAAoB,eAAY;GAAQ,CAAA,CAC9F;IACF;;CAGR,OACE,kBAAC,MAAD;EAAS;EAAK,WAAW,EAAK,EAAO,eAAe,CAAS;EAAG,eAAa,KAAU,EAAQ;EAAM,GAAI;YACtG,IACC,kBAAC,KAAD;GAAS;GAAM,WAAW,EAAO;aAC9B;EACA,CAAA,IAEH;CAEA,CAAA;AAER,CACF,GAMa,IAAQ,OAAO,OAAO,GAAW;CAC5C,MAAM;CACN;AACF,CAAC"}
@@ -0,0 +1 @@
1
+ .Primer_Brand__Tiles-module__Tiles___RhWBm{width:100%;color:var(--brand-color-text-default)}.Primer_Brand__Tiles-module__Tiles-grid___lAoQw{--tiles-columns:var(--tiles-columns-xsmall);margin:0;flex-wrap:wrap;justify-content:center;margin-inline:auto;padding:0;list-style:none;display:flex}.Primer_Brand__Tiles-module__Tiles--layout-default___szHFY .Primer_Brand__Tiles-module__Tiles-grid___lAoQw,.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-grid___lAoQw{max-width:min(100%, calc(var(--brand-Tiles-item-maxSize) * var(--tiles-columns)))}@media screen and (width>=34rem) and (width<=47.99rem){.Primer_Brand__Tiles-module__Tiles-grid___lAoQw{--tiles-columns:var(--tiles-columns-small)}}@media screen and (width>=48rem){.Primer_Brand__Tiles-module__Tiles-grid___lAoQw{--tiles-columns:var(--tiles-columns-medium)}}@media screen and (width>=63.25rem){.Primer_Brand__Tiles-module__Tiles-grid___lAoQw{--tiles-columns:var(--tiles-columns-large)}}.Primer_Brand__Tiles-module__Tiles--variant-gridlines___6CsMP .Primer_Brand__Tiles-module__Tiles-grid___lAoQw{padding-right:var(--brand-borderWidth-thin);padding-bottom:var(--brand-borderWidth-thin)}.Primer_Brand__Tiles-module__Tiles-item___YlnUj{--tiles-inset-shadow:inset 0 0 0 transparent;width:calc(100% / var(--tiles-columns));max-width:var(--brand-Tiles-item-maxSize);max-height:var(--brand-Tiles-item-maxSize);box-sizing:border-box;background-color:var(--brand-tiles-bgColor-rest);border-top:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);border-left:var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);box-shadow:var(--brand-borderWidth-thin) 0 0 0 var(--brand-color-border-muted), 0 var(--brand-borderWidth-thin) 0 0 var(--brand-color-border-muted), inset 0 0 0 transparent;box-shadow:var(--brand-borderWidth-thin) 0 0 0 var(--brand-color-border-muted), 0 var(--brand-borderWidth-thin) 0 0 var(--brand-color-border-muted), var(--tiles-inset-shadow);transition:background-color var(--brand-animation-duration-faster) var(--brand-animation-easing-default), box-shadow var(--brand-animation-duration-faster) var(--brand-animation-easing-default);flex-direction:column;display:flex;position:relative}:is(.Primer_Brand__Tiles-module__Tiles-item___YlnUj:has(.Primer_Brand__Tiles-module__Tiles-item-link___NcK69):hover,.Primer_Brand__Tiles-module__Tiles-item___YlnUj:has(.Primer_Brand__Tiles-module__Tiles-item-link___NcK69):focus-within){--tiles-inset-shadow:inset 0 var(--base-size-2) 0 var(--brand-tiles-highlightColor);background-color:var(--brand-tiles-bgColor-hover)}.Primer_Brand__Tiles-module__Tiles-item-link___NcK69{width:100%;color:inherit;flex:1;-webkit-text-decoration:none;text-decoration:none;display:flex}.Primer_Brand__Tiles-module__Tiles-item-link___NcK69:focus-visible{outline:var(--base-size-4) solid var(--brand-color-focus);outline-offset:calc(-1 * var(--base-size-4));border-radius:var(--brand-borderRadius-small)}.Primer_Brand__Tiles-module__Tiles-item-content___YIq8M{aspect-ratio:1;justify-content:center;align-items:center;width:100%;display:flex;position:relative}.Primer_Brand__Tiles-module__Tiles-item-media___QH9l2{justify-content:center;align-items:center;display:flex}.Primer_Brand__Tiles-module__Tiles-item-media___QH9l2 svg,.Primer_Brand__Tiles-module__Tiles-item-media___QH9l2 img{width:auto;height:var(--base-size-40);max-width:100%}.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-media___QH9l2 svg,.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-media___QH9l2 img{height:var(--base-size-28)}@media screen and (width>=48rem){.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-media___QH9l2 svg,.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-media___QH9l2 img{height:var(--base-size-32)}}.Primer_Brand__Tiles-module__Tiles-item-label___L9BIA{justify-content:space-between;align-items:center;gap:var(--base-size-4);padding:var(--base-size-12) var(--base-size-16);display:flex;position:absolute;bottom:0;left:0;right:0}.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-media___QH9l2{transition:transform var(--brand-animation-duration-fast) var(--brand-animation-easing-default)}.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-link___NcK69:hover .Primer_Brand__Tiles-module__Tiles-item-media___QH9l2,.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-link___NcK69:focus-visible .Primer_Brand__Tiles-module__Tiles-item-media___QH9l2{transform:translateY(calc(-1 * var(--base-size-4)))}.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-label___L9BIA{opacity:0;transform:translateY(var(--base-size-4));transition:opacity var(--brand-animation-duration-fast) var(--brand-animation-easing-default), transform var(--brand-animation-duration-fast) var(--brand-animation-easing-default);pointer-events:none}.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-link___NcK69:hover .Primer_Brand__Tiles-module__Tiles-item-label___L9BIA,.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-link___NcK69:focus-visible .Primer_Brand__Tiles-module__Tiles-item-label___L9BIA{opacity:1;transform:translateY(0)}.Primer_Brand__Tiles-module__Tiles-item-name___47ZMU{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.Primer_Brand__Tiles-module__Tiles-item-icon___2Hu6M{color:var(--brand-color-text-default);flex-shrink:0}@media (prefers-reduced-motion:reduce){.Primer_Brand__Tiles-module__Tiles-item___YlnUj,.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-media___QH9l2,.Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD .Primer_Brand__Tiles-module__Tiles-item-label___L9BIA{transition:none}}
@@ -1,9 +1,9 @@
1
- import './Tiles.module-BzHaDJV8.css';//#region src/Tiles/Tiles.module.css
1
+ import './Tiles.module-DUo9CsNB.css';//#region src/Tiles/Tiles.module.css
2
2
  var e = "Primer_Brand__Tiles-module__Tiles___RhWBm", t = {
3
3
  Tiles: e,
4
4
  "Tiles-grid": "Primer_Brand__Tiles-module__Tiles-grid___lAoQw",
5
- "Tiles--layout-compact": "Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD",
6
5
  "Tiles--layout-default": "Primer_Brand__Tiles-module__Tiles--layout-default___szHFY",
6
+ "Tiles--layout-compact": "Primer_Brand__Tiles-module__Tiles--layout-compact___HBisD",
7
7
  "Tiles--variant-gridlines": "Primer_Brand__Tiles-module__Tiles--variant-gridlines___6CsMP",
8
8
  "Tiles-item": "Primer_Brand__Tiles-module__Tiles-item___YlnUj",
9
9
  "Tiles-item-link": "Primer_Brand__Tiles-module__Tiles-item-link___NcK69",
@@ -1 +1 @@
1
- {"version":3,"file":"Tiles.module.js","names":[],"sources":["../../src/Tiles/Tiles.module.css"],"sourcesContent":[".Tiles {\n width: 100%;\n color: var(--brand-color-text-default);\n}\n\n.Tiles-grid {\n --tiles-columns: 2;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.Tiles--layout-compact .Tiles-grid {\n --tiles-columns: 4;\n}\n\n@media screen and (min-width: 48rem) {\n .Tiles--layout-default .Tiles-grid {\n --tiles-columns: 4;\n }\n}\n\n@media screen and (min-width: 34rem) and (max-width: 47.99rem) {\n .Tiles-grid {\n --tiles-columns: 3;\n }\n}\n\n@media screen and (min-width: 63.25rem) {\n .Tiles--layout-default .Tiles-grid {\n --tiles-columns: 6;\n }\n}\n\n@media screen and (min-width: 48rem) {\n .Tiles--layout-compact .Tiles-grid {\n --tiles-columns: 6;\n }\n}\n\n@media screen and (min-width: 63.25rem) {\n .Tiles--layout-compact .Tiles-grid {\n --tiles-columns: 8;\n }\n}\n\n.Tiles--variant-gridlines .Tiles-grid {\n --tiles-grid-border-color: var(--brand-color-border-muted);\n position: relative;\n padding-right: var(--brand-borderWidth-thin);\n padding-bottom: var(--brand-borderWidth-thin);\n}\n\n.Tiles--variant-gridlines .Tiles-grid::before,\n.Tiles--variant-gridlines .Tiles-grid::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n width: 0;\n border-left: var(--brand-borderWidth-thin) solid var(--tiles-grid-border-color);\n z-index: 1;\n pointer-events: none;\n}\n\n.Tiles--variant-gridlines .Tiles-grid::before {\n left: 0;\n}\n\n.Tiles--variant-gridlines .Tiles-grid::after {\n right: 0;\n}\n\n@media screen and (min-width: 63.25rem) {\n .Tiles--variant-gridlines.Tiles--layout-default .Tiles-grid:not(:has(> .Tiles-item:nth-child(6))),\n .Tiles--variant-gridlines.Tiles--layout-compact .Tiles-grid:not(:has(> .Tiles-item:nth-child(8))) {\n --tiles-grid-border-color: transparent;\n }\n}\n\n.Tiles-item {\n --tiles-inset-shadow: inset 0 0 0 transparent;\n position: relative;\n display: flex;\n flex-direction: column;\n width: calc(100% / var(--tiles-columns));\n box-sizing: border-box;\n background-color: var(--brand-tiles-bgColor-rest);\n border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);\n border-left: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);\n box-shadow: var(--brand-borderWidth-thin) 0 0 0 var(--brand-color-border-muted),\n 0 var(--brand-borderWidth-thin) 0 0 var(--brand-color-border-muted), var(--tiles-inset-shadow);\n transition: background-color var(--brand-animation-duration-faster) var(--brand-animation-easing-default),\n box-shadow var(--brand-animation-duration-faster) var(--brand-animation-easing-default);\n}\n\n.Tiles-item:has(.Tiles-item-link):hover,\n.Tiles-item:has(.Tiles-item-link):focus-within {\n --tiles-inset-shadow: inset 0 var(--base-size-2) 0 var(--brand-tiles-highlightColor);\n background-color: var(--brand-tiles-bgColor-hover);\n}\n\n.Tiles-item-link {\n display: flex;\n width: 100%;\n flex: 1;\n text-decoration: none;\n color: inherit;\n}\n\n.Tiles-item-link:focus-visible {\n outline: var(--base-size-4) solid var(--brand-color-focus);\n outline-offset: calc(-1 * var(--base-size-4));\n border-radius: var(--brand-borderRadius-small);\n}\n\n.Tiles-item-content {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n aspect-ratio: 1;\n}\n\n.Tiles-item-media {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.Tiles-item-media svg,\n.Tiles-item-media img {\n width: auto;\n height: var(--base-size-40);\n max-width: 100%;\n}\n\n.Tiles--layout-compact .Tiles-item-media svg,\n.Tiles--layout-compact .Tiles-item-media img {\n height: var(--base-size-28);\n}\n\n@media screen and (min-width: 48rem) {\n .Tiles--layout-compact .Tiles-item-media svg,\n .Tiles--layout-compact .Tiles-item-media img {\n height: var(--base-size-32);\n }\n}\n\n.Tiles-item-label {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--base-size-4);\n padding: var(--base-size-12) var(--base-size-16);\n}\n\n.Tiles--layout-compact .Tiles-item-media {\n transition: transform var(--brand-animation-duration-fast) var(--brand-animation-easing-default);\n}\n\n.Tiles--layout-compact .Tiles-item-link:hover .Tiles-item-media,\n.Tiles--layout-compact .Tiles-item-link:focus-visible .Tiles-item-media {\n transform: translateY(calc(-1 * var(--base-size-4)));\n}\n\n.Tiles--layout-compact .Tiles-item-label {\n opacity: 0;\n transform: translateY(var(--base-size-4));\n transition: opacity var(--brand-animation-duration-fast) var(--brand-animation-easing-default),\n transform var(--brand-animation-duration-fast) var(--brand-animation-easing-default);\n pointer-events: none;\n}\n\n.Tiles--layout-compact .Tiles-item-link:hover .Tiles-item-label,\n.Tiles--layout-compact .Tiles-item-link:focus-visible .Tiles-item-label {\n opacity: 1;\n transform: translateY(0);\n}\n\n.Tiles-item-name {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n}\n\n.Tiles-item-icon {\n flex-shrink: 0;\n color: var(--brand-color-text-default);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .Tiles-item {\n transition: none;\n }\n\n .Tiles--layout-compact .Tiles-item-media {\n transition: none;\n }\n\n .Tiles--layout-compact .Tiles-item-label {\n transition: none;\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Tiles.module.js","names":[],"sources":["../../src/Tiles/Tiles.module.css"],"sourcesContent":[".Tiles {\n width: 100%;\n color: var(--brand-color-text-default);\n}\n\n.Tiles-grid {\n --tiles-columns: var(--tiles-columns-xsmall);\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n list-style: none;\n margin: 0;\n margin-inline: auto;\n padding: 0;\n}\n\n.Tiles--layout-default .Tiles-grid,\n.Tiles--layout-compact .Tiles-grid {\n max-width: min(100%, calc(var(--brand-Tiles-item-maxSize) * var(--tiles-columns)));\n}\n\n@media screen and (min-width: 34rem) and (max-width: 47.99rem) {\n .Tiles-grid {\n --tiles-columns: var(--tiles-columns-small);\n }\n}\n\n@media screen and (min-width: 48rem) {\n .Tiles-grid {\n --tiles-columns: var(--tiles-columns-medium);\n }\n}\n\n@media screen and (min-width: 63.25rem) {\n .Tiles-grid {\n --tiles-columns: var(--tiles-columns-large);\n }\n}\n\n.Tiles--variant-gridlines .Tiles-grid {\n padding-right: var(--brand-borderWidth-thin);\n padding-bottom: var(--brand-borderWidth-thin);\n}\n\n.Tiles-item {\n --tiles-inset-shadow: inset 0 0 0 transparent;\n position: relative;\n display: flex;\n flex-direction: column;\n width: calc(100% / var(--tiles-columns));\n max-width: var(--brand-Tiles-item-maxSize);\n max-height: var(--brand-Tiles-item-maxSize);\n box-sizing: border-box;\n background-color: var(--brand-tiles-bgColor-rest);\n border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);\n border-left: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);\n box-shadow: var(--brand-borderWidth-thin) 0 0 0 var(--brand-color-border-muted),\n 0 var(--brand-borderWidth-thin) 0 0 var(--brand-color-border-muted), var(--tiles-inset-shadow);\n transition: background-color var(--brand-animation-duration-faster) var(--brand-animation-easing-default),\n box-shadow var(--brand-animation-duration-faster) var(--brand-animation-easing-default);\n}\n\n.Tiles-item:has(.Tiles-item-link):hover,\n.Tiles-item:has(.Tiles-item-link):focus-within {\n --tiles-inset-shadow: inset 0 var(--base-size-2) 0 var(--brand-tiles-highlightColor);\n background-color: var(--brand-tiles-bgColor-hover);\n}\n\n.Tiles-item-link {\n display: flex;\n width: 100%;\n flex: 1;\n text-decoration: none;\n color: inherit;\n}\n\n.Tiles-item-link:focus-visible {\n outline: var(--base-size-4) solid var(--brand-color-focus);\n outline-offset: calc(-1 * var(--base-size-4));\n border-radius: var(--brand-borderRadius-small);\n}\n\n.Tiles-item-content {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n aspect-ratio: 1;\n}\n\n.Tiles-item-media {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.Tiles-item-media svg,\n.Tiles-item-media img {\n width: auto;\n height: var(--base-size-40);\n max-width: 100%;\n}\n\n.Tiles--layout-compact .Tiles-item-media svg,\n.Tiles--layout-compact .Tiles-item-media img {\n height: var(--base-size-28);\n}\n\n@media screen and (min-width: 48rem) {\n .Tiles--layout-compact .Tiles-item-media svg,\n .Tiles--layout-compact .Tiles-item-media img {\n height: var(--base-size-32);\n }\n}\n\n.Tiles-item-label {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--base-size-4);\n padding: var(--base-size-12) var(--base-size-16);\n}\n\n.Tiles--layout-compact .Tiles-item-media {\n transition: transform var(--brand-animation-duration-fast) var(--brand-animation-easing-default);\n}\n\n.Tiles--layout-compact .Tiles-item-link:hover .Tiles-item-media,\n.Tiles--layout-compact .Tiles-item-link:focus-visible .Tiles-item-media {\n transform: translateY(calc(-1 * var(--base-size-4)));\n}\n\n.Tiles--layout-compact .Tiles-item-label {\n opacity: 0;\n transform: translateY(var(--base-size-4));\n transition: opacity var(--brand-animation-duration-fast) var(--brand-animation-easing-default),\n transform var(--brand-animation-duration-fast) var(--brand-animation-easing-default);\n pointer-events: none;\n}\n\n.Tiles--layout-compact .Tiles-item-link:hover .Tiles-item-label,\n.Tiles--layout-compact .Tiles-item-link:focus-visible .Tiles-item-label {\n opacity: 1;\n transform: translateY(0);\n}\n\n.Tiles-item-name {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n}\n\n.Tiles-item-icon {\n flex-shrink: 0;\n color: var(--brand-color-text-default);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .Tiles-item {\n transition: none;\n }\n\n .Tiles--layout-compact .Tiles-item-media {\n transition: none;\n }\n\n .Tiles--layout-compact .Tiles-item-label {\n transition: none;\n }\n}\n"],"mappings":""}
@@ -0,0 +1 @@
1
+ :root{--brand-SubNav-offset-overflowMenu:.25rem;--brand-SubNav-height-overflowMenuItemMin:2.5rem;--brand-SubNav-height-overflowMenuInset:8rem;--brand-SubNav-width-overflowMenuMin:10rem;--brand-SubNav-width-overflowMenuInset:2rem;--brand-SubNav-width-subMenu:18.75rem}
@@ -0,0 +1 @@
1
+ :root,[data-color-mode=light]{--brand-SubNav-bgColor:var(--brand-color-canvas-default);--brand-SubNav-overflowMenu-bgColor-rest:var(--brand-color-canvas-default);--brand-SubNav-overflowMenu-bgColor-hover:var(--brand-color-canvas-subtle);--brand-SubNav-overflowMenu-fgColor-rest:var(--brand-color-text-muted);--brand-SubNav-overflowMenu-fgColor-hover:var(--brand-color-text-default);--brand-SubNav-overflowMenu-toggle-bgColor-rest:transparent;--brand-SubNav-overflowMenu-toggle-bgColor-hover:var(--base-color-scale-gray-1);--brand-SubNav-overflowMenu-toggle-bgColor-active:var(--base-color-scale-gray-1);--brand-SubNav-color-link-rest:var(--brand-color-text-default);--brand-SubNav-color-link-active:var(--brand-color-text-default);--brand-SubNav-color-link-bgColor:#e4ebe6;--brand-SubNav-shadow:0px 100px 80px #00000003, 0px 41px 33px #00000005, 0px 22px 17px #00000005, 0px 12px 10px #00000008, 0px 6px 5px #0000000a, 0px 2px 2px #00000012}[data-color-mode=dark]{--brand-SubNav-bgColor:var(--brand-color-canvas-default);--brand-SubNav-overflowMenu-bgColor-rest:var(--brand-color-canvas-default);--brand-SubNav-overflowMenu-bgColor-hover:var(--brand-color-canvas-subtle);--brand-SubNav-overflowMenu-fgColor-rest:var(--brand-color-text-muted);--brand-SubNav-overflowMenu-fgColor-hover:var(--brand-color-text-default);--brand-SubNav-overflowMenu-toggle-bgColor-rest:transparent;--brand-SubNav-overflowMenu-toggle-bgColor-hover:var(--base-color-scale-gray-6);--brand-SubNav-overflowMenu-toggle-bgColor-active:var(--base-color-scale-gray-6);--brand-SubNav-color-link-rest:var(--brand-color-text-default);--brand-SubNav-color-link-active:var(--brand-color-text-default);--brand-SubNav-color-link-bgColor:#323834;--brand-SubNav-shadow:0px 100px 80px #00000003, 0px 41px 33px #00000005, 0px 22px 17px #00000005, 0px 12px 10px #00000008, 0px 6px 5px #0000000a, 0px 2px 2px #00000012}
@@ -12,6 +12,13 @@ type SubNavContextType = {
12
12
  portalRef: RefObject<HTMLDivElement | null>;
13
13
  };
14
14
  export declare const useSubNavContext: () => SubNavContextType;
15
+ export type SubNavMenuLabels = {
16
+ menuLabel: string;
17
+ closeLabel: string;
18
+ activeLabel: string;
19
+ closeActiveLabel: string;
20
+ overflowMenuLabel: string;
21
+ };
15
22
  export type SubNavProps = {
16
23
  /**
17
24
  * @deprecated The hasShadow prop is deprecated and will be removed in a future release.
@@ -22,6 +29,10 @@ export type SubNavProps = {
22
29
  * removing any internal padding and guttering.
23
30
  */
24
31
  fullWidth?: boolean;
32
+ /**
33
+ * Customizable accessible labels
34
+ */
35
+ menuLabels?: Partial<SubNavMenuLabels>;
25
36
  'data-testid'?: string;
26
37
  } & PropsWithChildren<BaseProps<HTMLDivElement>>;
27
38
  type HeadingBaseProps = {
@@ -37,11 +48,16 @@ type LinkBaseProps = {
37
48
  'data-testid'?: string;
38
49
  variant?: TextProps['variant'];
39
50
  _subMenuVariant?: SubMenuVariants;
51
+ _isOverflowed?: boolean;
52
+ _isOverflowMenu?: boolean;
53
+ _onOverflowLinkActivate?: () => void;
40
54
  } & PropsWithChildren<React.HTMLProps<HTMLAnchorElement>> & BaseProps<HTMLAnchorElement>;
41
55
  type SubMenuProps = {
42
56
  variant?: SubMenuVariants;
57
+ _isOverflowMenu?: boolean;
58
+ _onOverflowLinkActivate?: () => void;
43
59
  } & React.HTMLAttributes<HTMLUListElement> & BaseProps<HTMLUListElement>;
44
- declare function SubMenuBase({ children, className, variant, ...props }: SubMenuProps): React.JSX.Element;
60
+ declare function SubMenuBase({ children, className, 'aria-label': ariaLabel, variant, _isOverflowMenu, _onOverflowLinkActivate, ...props }: SubMenuProps): React.JSX.Element;
45
61
  type SubNavActionProps = {
46
62
  /**
47
63
  * Required path or location for the action button to link to.
@@ -75,6 +91,8 @@ export declare const SubNav: React.NamedExoticComponent<Omit<SubNavProps, "ref">
75
91
  readonly heading: string;
76
92
  readonly action: string;
77
93
  readonly subMenu: string;
94
+ readonly overflowButton: string;
95
+ readonly overflowMenu: string;
78
96
  };
79
97
  };
80
98
  export {};
@@ -0,0 +1,4 @@
1
+ export declare function useAnchorMenu(): {
2
+ anchorMenuRef: import("react").RefObject<HTMLDivElement | null>;
3
+ portalRef: import("react").RefObject<HTMLDivElement | null>;
4
+ };
@@ -0,0 +1,7 @@
1
+ export declare function useNarrowMenu(isLarge: boolean | undefined): {
2
+ navRef: import("react").RefObject<HTMLElement | null>;
3
+ narrowMenuRef: import("react").RefObject<HTMLDivElement | null>;
4
+ isNarrowMenuOpen: boolean;
5
+ closeNarrowMenu: () => void;
6
+ toggleNarrowMenu: () => void;
7
+ };
@@ -0,0 +1,12 @@
1
+ import { type FocusEvent, type ReactNode } from 'react';
2
+ export declare function useWideMenu(children: ReactNode, isLarge: boolean | undefined, linkCount: number): {
3
+ overlayRef: import("react").RefObject<HTMLUListElement | null>;
4
+ overflowRef: import("react").RefObject<HTMLLIElement | null>;
5
+ overflowButtonRef: import("react").RefObject<HTMLButtonElement | null>;
6
+ overflowMenuRef: import("react").RefObject<HTMLDivElement | null>;
7
+ visibleLinkCount: number;
8
+ hasOverflow: boolean;
9
+ isOverflowMenuOpen: boolean;
10
+ closeOverflowMenu: () => void;
11
+ handleOverflowMenuBlur: (event: FocusEvent<HTMLLIElement>) => void;
12
+ };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { BaseProps } from '../component-helpers';
3
3
  /** * Design Tokens */
4
+ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/tiles/base.css';
4
5
  import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css';
5
6
  type TilesVariant = 'default' | 'gridlines';
6
7
  type TilesLayout = 'default' | 'compact';