@primer/react-brand 0.75.1 → 0.76.0-rc.16d4997d

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 (419) hide show
  1. package/docs/components/SubdomainNavBar/index.md +28 -1
  2. package/docs/index.md +2 -2
  3. package/esm/Accordion/Accordion.d.ts.map +1 -1
  4. package/esm/Accordion/Accordion.js +1 -3
  5. package/esm/Accordion/Accordion.js.map +1 -1
  6. package/esm/Accordion/{Accordion.module-COckontb.css → Accordion.module-B-iFuyHy.css} +1 -1
  7. package/esm/Accordion/Accordion.module.js +1 -1
  8. package/esm/Accordion/Accordion.module.js.map +1 -1
  9. package/esm/Button/Button.module-9oHHqqnx.css +1 -0
  10. package/esm/Button/Button.module.js +1 -1
  11. package/esm/Button/Button.module.js.map +1 -1
  12. package/esm/IDE/IDE.module-CDu-F0lH.css +1 -0
  13. package/esm/IDE/IDE.module.js +1 -1
  14. package/esm/IDE/IDE.module.js.map +1 -1
  15. package/esm/MinimalFooter/{MinimalFooter.module-CGtOtT5r.css → MinimalFooter.module-BKn_6UZK.css} +1 -1
  16. package/esm/MinimalFooter/MinimalFooter.module.js +1 -1
  17. package/esm/MinimalFooter/MinimalFooter.module.js.map +1 -1
  18. package/esm/SubdomainNavBar/SubdomainNavBar.d.ts +9 -0
  19. package/esm/SubdomainNavBar/SubdomainNavBar.d.ts.map +1 -1
  20. package/esm/SubdomainNavBar/SubdomainNavBar.js +320 -319
  21. package/esm/SubdomainNavBar/SubdomainNavBar.js.map +1 -1
  22. package/esm/SubdomainNavBar/SubdomainNavBar.module-DLlWpwNa.css +1 -0
  23. package/esm/SubdomainNavBar/SubdomainNavBar.module.js +7 -1
  24. package/esm/SubdomainNavBar/SubdomainNavBar.module.js.map +1 -1
  25. package/esm/VideoPlayer/VideoPlayer.module-Cb7UilXP.css +1 -0
  26. package/esm/VideoPlayer/VideoPlayer.module.js +1 -1
  27. package/esm/VideoPlayer/VideoPlayer.module.js.map +1 -1
  28. package/esm/css/{reset-CSgu34_f.css → reset-CbGp2YkS.css} +1 -1
  29. package/esm/css/stylesheets.js +1 -1
  30. package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +9 -0
  31. package/lib/css/main.css +204 -87
  32. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  33. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  34. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  35. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  39. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  40. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  41. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  42. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  43. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  44. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  45. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  46. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  47. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  48. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  49. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  50. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  51. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  52. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  53. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  54. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  55. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  56. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  57. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  58. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  59. package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
  60. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  61. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  62. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  63. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  64. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  65. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  66. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  67. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  68. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  69. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  70. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  71. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  72. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  73. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
  74. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
  75. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  76. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  77. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  78. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  79. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  84. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  85. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  86. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  87. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
  88. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  89. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  90. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  91. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  92. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  93. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  94. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  95. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  96. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  97. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  98. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  99. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  100. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  101. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  102. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  103. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  104. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  105. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  106. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  107. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
  108. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  109. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  110. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  111. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  112. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  113. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  114. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  115. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  116. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  117. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  118. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  119. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  120. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  121. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  122. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  123. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  124. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  125. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  126. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  127. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  128. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  129. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  130. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  131. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  132. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  133. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  134. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  135. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  136. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  137. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  138. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  139. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  140. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  141. package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
  142. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  143. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  144. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  145. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  146. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  147. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  148. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  149. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  150. package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
  151. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  152. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  153. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  154. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  155. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  156. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  157. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  158. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  159. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  160. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  161. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  162. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  163. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  164. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  165. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  166. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  167. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  168. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  169. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  170. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
  171. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  172. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  173. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  174. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  175. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  176. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  177. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  178. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  179. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  180. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  181. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  182. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  183. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  184. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  185. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  186. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  187. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  188. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  189. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  190. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  191. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  192. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  193. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  194. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  195. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  196. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  197. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  198. package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
  199. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  200. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  201. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  202. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  203. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  204. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  205. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  206. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  207. package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
  208. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  209. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  210. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  211. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  212. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  213. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  214. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  215. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  216. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  217. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  218. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  219. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  220. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  221. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  222. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  223. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  224. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  225. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  226. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  227. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
  228. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  229. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  230. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  231. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  232. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  233. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  234. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  235. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  236. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  237. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  238. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  239. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  240. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  241. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  242. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  243. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  244. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  245. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  246. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  247. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  248. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  249. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  250. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  251. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  252. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  253. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  254. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  255. package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
  256. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  257. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  258. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  259. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  260. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  261. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  262. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  263. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  264. package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
  265. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  266. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  267. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  268. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  269. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  270. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  271. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  272. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  273. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  274. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  275. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  276. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  277. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  278. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  279. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  280. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  281. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  282. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  283. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  284. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
  285. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  286. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  287. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  288. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  289. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  290. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  291. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  292. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  293. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  294. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  295. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  296. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  297. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  298. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  299. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  300. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  301. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  302. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  303. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  304. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  305. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  306. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  307. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  308. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  309. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  310. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  311. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  312. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  313. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  314. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  315. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  316. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  317. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  318. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  319. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  320. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  321. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  322. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  323. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  324. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  325. package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
  326. package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
  327. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  328. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  329. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  330. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  331. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  332. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  333. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  334. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  335. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  336. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  337. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  338. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  339. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  340. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  341. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  342. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  343. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
  344. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
  345. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  346. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  347. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  348. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  349. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  350. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  351. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  352. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  353. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  354. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  355. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  356. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  357. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  358. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  359. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  360. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  361. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  362. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  363. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  364. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  365. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  366. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  367. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  368. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  369. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  370. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  371. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  372. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  373. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  374. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  375. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  376. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  377. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  378. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  379. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  380. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  381. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  382. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  383. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
  384. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
  385. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  386. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  387. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  388. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  389. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  390. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  391. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  392. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  393. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  394. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  395. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  396. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  397. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  398. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  399. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  400. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  401. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  402. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  403. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  404. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  405. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  406. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  407. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  408. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  409. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  410. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  411. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  412. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  413. package/lib/index.js +1 -1
  414. package/llms.txt +2 -2
  415. package/package.json +1 -1
  416. package/esm/Button/Button.module-Byz3R1qi.css +0 -1
  417. package/esm/IDE/IDE.module-CFxIRObF.css +0 -1
  418. package/esm/SubdomainNavBar/SubdomainNavBar.module-WIrpYyjV.css +0 -1
  419. package/esm/VideoPlayer/VideoPlayer.module-BpVcE2WB.css +0 -1
@@ -6,26 +6,26 @@ import { useKeyboardEscape as i } from "../hooks/useKeyboardEscape.js";
6
6
  import { ArrowUpRightIcon as a } from "../node_modules/@primer/octicons-react/dist/icons/ArrowUpRightIcon.js";
7
7
  import { ChevronLeftIcon as o } from "../node_modules/@primer/octicons-react/dist/icons/ChevronLeftIcon.js";
8
8
  import { LinkExternalIcon as s } from "../node_modules/@primer/octicons-react/dist/icons/LinkExternalIcon.js";
9
- import { MarkGithubIcon as ee } from "../node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js";
10
- import { SearchIcon as c } from "../node_modules/@primer/octicons-react/dist/icons/SearchIcon.js";
11
- import { useWindowSize as l } from "../hooks/useWindowSize.js";
12
- import u from "./SubdomainNavBar.module.js";
13
- import { SubdomainNavBarLinkContext as d, useSubdomainNavBarLinkContext as f } from "./SubdomainNavBarLinkContext.js";
14
- import { NavigationVisbilityObserver as te } from "./NavigationVisbilityObserver.js";
15
- import { useFocusTrap as ne } from "../hooks/useFocusTrap.js";
9
+ import { MarkGithubIcon as c } from "../node_modules/@primer/octicons-react/dist/icons/MarkGithubIcon.js";
10
+ import { SearchIcon as l } from "../node_modules/@primer/octicons-react/dist/icons/SearchIcon.js";
11
+ import { useWindowSize as u } from "../hooks/useWindowSize.js";
12
+ import d from "./SubdomainNavBar.module.js";
13
+ import { SubdomainNavBarLinkContext as ee, useSubdomainNavBarLinkContext as te } from "./SubdomainNavBarLinkContext.js";
14
+ import { NavigationVisbilityObserver as ne } from "./NavigationVisbilityObserver.js";
15
+ import { useFocusTrap as re } from "../hooks/useFocusTrap.js";
16
16
  import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes-BGj0AiDW.css';/* empty css */
17
- import { useSearchKeyboardShortcut as re } from "./useSearchKeyboardShortcut.js";
18
- import { useSearchResults as ie } from "./useSearchResults.js";
17
+ import { useSearchKeyboardShortcut as ie } from "./useSearchKeyboardShortcut.js";
18
+ import { useSearchResults as f } from "./useSearchResults.js";
19
19
  import { TextInput as ae } from "../forms/TextInput/TextInput.js";
20
- import { FormControl as p } from "../forms/FormControl/FormControl.js";
21
- import m, { forwardRef as h, useCallback as g, useEffect as _, useImperativeHandle as v, useMemo as y, useRef as b, useState as x } from "react";
22
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
20
+ import { FormControl as oe } from "../forms/FormControl/FormControl.js";
21
+ import p, { forwardRef as m, useCallback as h, useEffect as g, useImperativeHandle as _, useMemo as v, useRef as y, useState as b } from "react";
22
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
23
23
  //#region src/SubdomainNavBar/SubdomainNavBar.tsx
24
- var T = {
24
+ var w = {
25
25
  menuLabel: "Menu",
26
26
  closeLabel: "Close",
27
27
  overflowMenuLabel: "More"
28
- }, E = m.createContext("small"), D = {
28
+ }, T = p.createContext("small"), E = {
29
29
  root: "SubdomainNavBar",
30
30
  get innerContainer() {
31
31
  return `${this.root}-inner-container`;
@@ -40,7 +40,7 @@ var T = {
40
40
  return `${this.root}-search-live-region`;
41
41
  }
42
42
  };
43
- function O(e) {
43
+ function D(e) {
44
44
  if (e.closest("[hidden], [inert], [aria-hidden=\"true\"]")) return !1;
45
45
  for (let t = e; t; t = t.parentElement) {
46
46
  let e = window.getComputedStyle(t);
@@ -48,250 +48,248 @@ function O(e) {
48
48
  }
49
49
  return !0;
50
50
  }
51
- var k = h(function({ children: a, className: s, fixed: c = !0, fullWidth: f = !1, logoHref: ie = "https://github.com", style: ae, title: p, titleHref: h = "/", leadingComponent: k, trailingComponent: j, onNarrowMenuToggle: F, menuLabels: oe, skipToContentTargetId: I, ...se }, ce) {
52
- let [L, le] = x(!0), [ue, R] = x(!1), [de, fe] = x(0), { isMedium: pe, isLarge: z } = l(), [me, he] = x(!1), [ge, B] = x(), V = b(null), _e = b(null), ve = t(), ye = `${ve}-main`, be = t(), H = {
53
- ...T,
54
- ...oe
55
- }, U = g(() => {
56
- fe(Math.max(0, V.current?.getBoundingClientRect().top ?? 0));
57
- }, []), W = g(() => {
58
- L || (le(!0), F?.(!1));
59
- }, [L, F]), xe = () => {
60
- if (!L) {
61
- W();
51
+ var O = m(function({ children: a, className: s, fixed: l = !0, fullWidth: te = !1, variant: f = "default", logoHref: ae = "https://github.com", style: oe, title: m, titleHref: O = "/", leadingComponent: A, trailingComponent: P, onNarrowMenuToggle: F, menuLabels: I, skipToContentTargetId: L, ...se }, ce) {
52
+ let [R, le] = b(!0), [ue, z] = b(!1), [de, fe] = b(0), { isMedium: pe, isLarge: B } = u(), [me, he] = b(!1), [ge, V] = b(), H = y(null), _e = y(null), ve = t(), ye = `${ve}-main`, be = t(), U = {
53
+ ...w,
54
+ ...I
55
+ }, xe = f === "featured", W = h(() => {
56
+ fe(Math.max(0, H.current?.getBoundingClientRect().top ?? 0));
57
+ }, []), G = h(() => {
58
+ R || (le(!0), F?.(!1));
59
+ }, [R, F]), Se = () => {
60
+ if (!R) {
61
+ G();
62
62
  return;
63
63
  }
64
- R(!1), U(), le(!1), F?.(!0);
65
- }, Se = b(null), Ce = g(() => {
66
- let e = Array.from(document.querySelectorAll("main")).find(O);
64
+ z(!1), W(), le(!1), F?.(!0);
65
+ }, Ce = y(null), we = h(() => {
66
+ let e = Array.from(document.querySelectorAll("main")).find(D);
67
67
  return e ? (e.id ||= document.getElementById("start-of-content") ? ye : "start-of-content", e) : _e.current;
68
- }, [ye]), G = g(() => {
69
- if (I) {
70
- let e = document.getElementById(I);
71
- if (e && O(e)) return e;
68
+ }, [ye]), K = h(() => {
69
+ if (L) {
70
+ let e = document.getElementById(L);
71
+ if (e && D(e)) return e;
72
72
  }
73
- return Ce();
74
- }, [Ce, I]), we = g(() => {
73
+ return we();
74
+ }, [we, L]), Te = h(() => {
75
75
  he(!0);
76
- let e = G();
77
- e && B(e.id);
78
- }, [G]), Te = g((e) => {
76
+ let e = K();
77
+ e && V(e.id);
78
+ }, [K]), Ee = h((e) => {
79
79
  if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
80
- let t = I ? document.getElementById(I) : null, n = I && (!t || !O(t)), r = G();
81
- if (n && console.warn(`SubdomainNavBar could not find the skip-to-content target "${I}". Falling back to the page's main content.`), !r) return;
80
+ let t = L ? document.getElementById(L) : null, n = L && (!t || !D(t)), r = K();
81
+ if (n && console.warn(`SubdomainNavBar could not find the skip-to-content target "${L}". Falling back to the page's main content.`), !r) return;
82
82
  let i = `#${encodeURIComponent(r.id)}`;
83
- e.currentTarget.setAttribute("href", i), B(r.id);
83
+ e.currentTarget.setAttribute("href", i), V(r.id);
84
84
  let a = r.tabIndex < 0 && !r.hasAttribute("tabindex");
85
85
  a && (r.tabIndex = -1);
86
86
  let o = r.style.scrollMarginBlockStart;
87
- if (c) {
88
- let e = V.current?.getBoundingClientRect().height ?? 0;
87
+ if (l) {
88
+ let e = H.current?.getBoundingClientRect().height ?? 0;
89
89
  r.style.scrollMarginBlockStart = `${e}px`;
90
90
  }
91
91
  r.addEventListener("blur", () => {
92
92
  a && r.removeAttribute("tabindex"), r.style.scrollMarginBlockStart = o;
93
93
  }, { once: !0 }), r.focus({ preventScroll: !0 });
94
94
  }, [
95
- c,
96
- G,
97
- I
95
+ l,
96
+ K,
97
+ L
98
98
  ]);
99
- _(() => {
100
- let e = G();
101
- e && B(e.id);
102
- }, [G]), ne({
103
- containerRef: Se,
99
+ g(() => {
100
+ let e = K();
101
+ e && V(e.id);
102
+ }, [K]), re({
103
+ containerRef: Ce,
104
104
  restoreFocusOnCleanUp: !0,
105
- disabled: L
106
- }), i(W), _(() => {
107
- z && W();
108
- }, [W, z]), _(() => {
109
- if (L || z) return;
110
- U();
111
- let e = new ResizeObserver(U), t = V.current;
105
+ disabled: R
106
+ }), i(G), g(() => {
107
+ B && G();
108
+ }, [G, B]), g(() => {
109
+ if (R || B) return;
110
+ W();
111
+ let e = new ResizeObserver(W), t = H.current;
112
112
  return t && e.observe(t), e.observe(document.documentElement), () => e.disconnect();
113
113
  }, [
114
- z,
115
- L,
116
- U
117
- ]), _(() => {
118
- if (L) return;
114
+ B,
115
+ R,
116
+ W
117
+ ]), g(() => {
118
+ if (R) return;
119
119
  let e = document.body.style.overflow;
120
120
  return document.body.style.overflow = "hidden", () => {
121
121
  document.body.style.overflow = e;
122
122
  };
123
- }, [L]);
124
- let Ee = g(() => he(!1), []), K = y(() => m.Children.toArray(a).filter((e) => m.isValidElement(e) && typeof e.type != "string" && e.type === A), []).length > 0, q = y(() => m.Children.toArray(a).map((e, t) => m.isValidElement(e) && e.type === A ? m.cloneElement(e, {
123
+ }, [R]);
124
+ let De = h(() => he(!1), []), q = v(() => p.Children.toArray(a).filter((e) => p.isValidElement(e) && typeof e.type != "string" && e.type === k), []).length > 0, Oe = v(() => p.Children.toArray(a).map((e, t) => p.isValidElement(e) && e.type === k ? p.cloneElement(e, {
125
125
  href: e.props.href,
126
126
  children: e.props.children,
127
127
  style: { "--animation-order": t }
128
- }) : null).filter(Boolean), [a]), J = y(() => m.Children.toArray(a).filter((e) => m.isValidElement(e) && (e.type === N || e.type === P)), [a]), De = y(() => J.map((e) => m.cloneElement(e, { onClick: (t) => {
129
- e.props.onClick?.(t), t.defaultPrevented || W();
130
- } })), [J, W]), Y = J.length > 0, Oe = y(() => m.Children.toArray(a).find((e) => m.isValidElement(e) && e.type === M), [a]), ke = !!Oe, X = g(() => {
131
- ke && (W(), R(!0));
132
- }, [W, ke]), Z = g(() => R(!1), []);
133
- v(ce, () => V.current ? Object.assign(V.current, {
128
+ }) : null).filter(Boolean), [a]), J = v(() => p.Children.toArray(a).filter((e) => p.isValidElement(e) && (e.type === M || e.type === N)), [a]), ke = v(() => J.map((e) => p.cloneElement(e, { onClick: (t) => {
129
+ e.props.onClick?.(t), t.defaultPrevented || G();
130
+ } })), [J, G]), Y = J.length > 0, Ae = v(() => p.Children.toArray(a).find((e) => p.isValidElement(e) && e.type === j), [a]), je = !!Ae, X = h(() => {
131
+ je && (G(), z(!0));
132
+ }, [G, je]), Z = h(() => z(!1), []);
133
+ _(ce, () => H.current ? Object.assign(H.current, {
134
134
  openSearch: X,
135
135
  closeSearch: Z
136
136
  }) : {
137
137
  openSearch: X,
138
138
  closeSearch: Z
139
- }, [Z, X]), re({
139
+ }, [Z, X]), ie({
140
140
  disabled: ue,
141
- keyboardShortcut: Oe?.props.keyboardShortcut,
141
+ keyboardShortcut: Ae?.props.keyboardShortcut,
142
142
  onTrigger: X
143
143
  });
144
- let Q = k != null, $ = j != null, Ae = K || Y || Q || $, je = {
145
- ...ae,
144
+ let Q = A != null, $ = P != null, Me = q || Y || Q || $, Ne = {
145
+ ...oe,
146
146
  "--SubdomainNavBar-menu-offset-block-start": `${de}px`
147
147
  };
148
- return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w("div", {
149
- className: e(u["SubdomainNavBar-outer-container"], c && u["SubdomainNavBar-outer-container--fixed"]),
150
- children: [/* @__PURE__ */ C(r, {
148
+ return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
149
+ className: e(d["SubdomainNavBar-outer-container"], l && d["SubdomainNavBar-outer-container--fixed"]),
150
+ children: [/* @__PURE__ */ S(r, {
151
151
  as: "a",
152
- href: `#${ge || I || ve}`,
152
+ href: `#${ge || L || ve}`,
153
153
  variant: "primary",
154
154
  size: "small",
155
- className: e(u["SubdomainNavBar-skip-to-content"], !me && "visually-hidden"),
156
- onFocus: we,
157
- onBlur: Ee,
158
- onClick: Te,
155
+ className: e(d["SubdomainNavBar-skip-to-content"], !me && "visually-hidden"),
156
+ onFocus: Te,
157
+ onBlur: De,
158
+ onClick: Ee,
159
159
  children: "Skip to content"
160
- }), /* @__PURE__ */ w("header", {
161
- ref: V,
162
- className: e(u.SubdomainNavBar, s),
163
- "data-testid": D.root,
164
- style: je,
160
+ }), /* @__PURE__ */ C("header", {
161
+ ref: H,
162
+ className: e(d.SubdomainNavBar, d[`SubdomainNavBar--variant-${f}`], m && d["SubdomainNavBar--has-title"], q && d["SubdomainNavBar--has-primary-nav"], s),
163
+ "data-testid": E.root,
164
+ style: Ne,
165
165
  ...se,
166
- children: [/* @__PURE__ */ w("div", {
167
- ref: Se,
168
- className: e(u["SubdomainNavBar-inner-container"], ue && u["SubdomainNavBar-inner-container--search-open"], !f && u["SubdomainNavBar-inner-container--centered"]),
169
- "data-testid": D.innerContainer,
166
+ children: [/* @__PURE__ */ C("div", {
167
+ ref: Ce,
168
+ className: e(d["SubdomainNavBar-inner-container"], ue && d["SubdomainNavBar-inner-container--search-open"], !te && d["SubdomainNavBar-inner-container--centered"]),
169
+ "data-testid": E.innerContainer,
170
170
  children: [
171
- /* @__PURE__ */ C("nav", {
171
+ /* @__PURE__ */ S("nav", {
172
172
  "aria-label": "Header logo and title",
173
- children: /* @__PURE__ */ w("ol", {
174
- className: u["SubdomainNavBar-title-area"],
175
- children: [/* @__PURE__ */ C("li", { children: /* @__PURE__ */ w("a", {
176
- href: ie,
177
- "aria-label": "Github Home",
178
- className: u["SubdomainNavBar-logo-mark"],
179
- children: [/* @__PURE__ */ C("span", {
180
- className: u["SubdomainNavBar-back-arrow"],
181
- children: /* @__PURE__ */ C(o, {
173
+ className: d["SubdomainNavBar-title-navigation"],
174
+ children: /* @__PURE__ */ C("ol", {
175
+ className: d["SubdomainNavBar-title-area"],
176
+ children: [/* @__PURE__ */ S("li", { children: /* @__PURE__ */ C("a", {
177
+ href: ae,
178
+ "aria-label": "GitHub Home",
179
+ className: d["SubdomainNavBar-logo-mark"],
180
+ children: [/* @__PURE__ */ S("span", {
181
+ className: d["SubdomainNavBar-back-arrow"],
182
+ children: /* @__PURE__ */ S(o, {
182
183
  fill: "currentColor",
183
184
  size: 24
184
185
  })
185
- }), /* @__PURE__ */ C(ee, {
186
+ }), /* @__PURE__ */ S(c, {
186
187
  fill: "currentColor",
187
188
  size: 24
188
189
  })]
189
- }) }), p && /* @__PURE__ */ C(S, { children: /* @__PURE__ */ C("li", { children: /* @__PURE__ */ C("a", {
190
- href: h,
191
- "aria-label": `${p} home`,
192
- className: e(u["SubdomainNavBar-title"]),
193
- children: /* @__PURE__ */ w(n, {
190
+ }) }), m && /* @__PURE__ */ S("li", { children: /* @__PURE__ */ S("a", {
191
+ href: O,
192
+ "aria-label": `${m} home`,
193
+ className: d["SubdomainNavBar-title"],
194
+ children: /* @__PURE__ */ C(n, {
194
195
  size: "400",
196
+ variant: "muted",
195
197
  weight: "medium",
196
- children: [
197
- /* @__PURE__ */ C("span", {
198
- className: u["SubdomainNavBar-title-prefix"],
199
- children: "GitHub"
200
- }),
201
- " ",
202
- /* @__PURE__ */ C("span", {
203
- className: u["SubdomainNavBar-title-label"],
204
- children: p
205
- })
206
- ]
198
+ children: [xe && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("span", {
199
+ className: d["SubdomainNavBar-title-prefix"],
200
+ children: "GitHub"
201
+ }), " "] }), /* @__PURE__ */ S("span", {
202
+ className: d["SubdomainNavBar-title-label"],
203
+ children: m
204
+ })]
207
205
  })
208
- }) }) })]
206
+ }) })]
209
207
  })
210
208
  }),
211
- K && /* @__PURE__ */ C("nav", {
209
+ q && /* @__PURE__ */ S("nav", {
212
210
  id: "menu-navigation",
213
- "aria-label": p,
214
- className: u["SubdomainNavBar-primary-nav"],
215
- "data-testid": D.menuLinks,
216
- children: /* @__PURE__ */ C(te, {
217
- className: e(u["SubdomainNavBar-primary-nav-list--invisible"]),
218
- overflowMenuLabel: H.overflowMenuLabel,
219
- children: q
211
+ "aria-label": m,
212
+ className: d["SubdomainNavBar-primary-nav"],
213
+ "data-testid": E.menuLinks,
214
+ children: /* @__PURE__ */ S(ne, {
215
+ className: d["SubdomainNavBar-primary-nav-list--invisible"],
216
+ overflowMenuLabel: U.overflowMenuLabel,
217
+ children: Oe
220
218
  })
221
219
  }),
222
- z && Q && /* @__PURE__ */ C("div", {
223
- className: u["SubdomainNavBar-leading-component"],
224
- children: k
220
+ B && Q && /* @__PURE__ */ S("div", {
221
+ className: d["SubdomainNavBar-leading-component"],
222
+ children: A
225
223
  }),
226
- /* @__PURE__ */ w("div", {
227
- className: e(u["SubdomainNavBar-secondary-nav"]),
224
+ /* @__PURE__ */ C("div", {
225
+ className: e(d["SubdomainNavBar-secondary-nav"]),
228
226
  children: [
229
- m.Children.toArray(a).map((t) => m.isValidElement(t) && t.type === M ? m.cloneElement(t, {
227
+ p.Children.toArray(a).map((t) => p.isValidElement(t) && t.type === j ? p.cloneElement(t, {
230
228
  active: ue,
231
- className: e(t.props.className, z && (Y || $) && u["SubdomainNavBar-search-trigger--has-trailing-item"]),
229
+ className: e(t.props.className, B && (Y || $) && d["SubdomainNavBar-search-trigger--has-trailing-item"]),
232
230
  onSearchOpen: X,
233
231
  onSearchClose: Z,
234
- title: p
232
+ title: m
235
233
  }) : null).filter(Boolean),
236
- Ae && /* @__PURE__ */ w("button", {
237
- "aria-expanded": !L,
238
- "aria-label": L ? H.menuLabel : H.closeLabel,
234
+ Me && /* @__PURE__ */ C("button", {
235
+ "aria-expanded": !R,
236
+ "aria-label": R ? U.menuLabel : U.closeLabel,
239
237
  "aria-controls": be,
240
- className: e(u["SubdomainNavBar-menu-button"], u["SubdomainNavBar-mobile-menu-button"], !L && u["SubdomainNavBar-menu-button--close"]),
241
- "data-testid": D.menuButton,
242
- onClick: xe,
243
- children: [/* @__PURE__ */ w("span", {
244
- className: u["SubdomainNavBar-menu-button-icon"],
238
+ className: e(d["SubdomainNavBar-menu-button"], d["SubdomainNavBar-mobile-menu-button"], !R && d["SubdomainNavBar-menu-button--close"]),
239
+ "data-testid": E.menuButton,
240
+ onClick: Se,
241
+ children: [/* @__PURE__ */ C("span", {
242
+ className: d["SubdomainNavBar-menu-button-icon"],
245
243
  "aria-hidden": "true",
246
244
  children: [
247
- /* @__PURE__ */ C("span", { className: u["SubdomainNavBar-menu-button-bar"] }),
248
- /* @__PURE__ */ C("span", { className: u["SubdomainNavBar-menu-button-bar"] }),
249
- /* @__PURE__ */ C("span", { className: u["SubdomainNavBar-menu-button-bar"] })
245
+ /* @__PURE__ */ S("span", { className: d["SubdomainNavBar-menu-button-bar"] }),
246
+ /* @__PURE__ */ S("span", { className: d["SubdomainNavBar-menu-button-bar"] }),
247
+ /* @__PURE__ */ S("span", { className: d["SubdomainNavBar-menu-button-bar"] })
250
248
  ]
251
- }), /* @__PURE__ */ C("span", {
252
- className: u["SubdomainNavBar-menu-button-label"],
253
- children: L ? H.menuLabel : H.closeLabel
249
+ }), /* @__PURE__ */ S("span", {
250
+ className: d["SubdomainNavBar-menu-button-label"],
251
+ children: R ? U.menuLabel : U.closeLabel
254
252
  })]
255
253
  }),
256
- z && $ && /* @__PURE__ */ C("div", {
257
- className: u["SubdomainNavBar-trailing-component"],
258
- children: j
254
+ B && $ && /* @__PURE__ */ S("div", {
255
+ className: d["SubdomainNavBar-trailing-component"],
256
+ children: P
259
257
  }),
260
- z && Y && /* @__PURE__ */ C("div", {
261
- className: e(u["SubdomainNavBar-button-area"], u["SubdomainNavBar-button-area--visible"], $ && u["SubdomainNavBar-button-area--has-leading-item"]),
262
- children: /* @__PURE__ */ C("div", {
263
- className: u["SubdomainNavBar-button-area-inner"],
258
+ B && Y && /* @__PURE__ */ S("div", {
259
+ className: e(d["SubdomainNavBar-button-area"], d["SubdomainNavBar-button-area--visible"], $ && d["SubdomainNavBar-button-area--has-leading-item"]),
260
+ children: /* @__PURE__ */ S("div", {
261
+ className: d["SubdomainNavBar-button-area-inner"],
264
262
  children: J
265
263
  })
266
264
  }),
267
- !z && /* @__PURE__ */ w("div", {
265
+ !B && /* @__PURE__ */ C("div", {
268
266
  id: be,
269
- className: e(u["SubdomainNavBar-menu-wrapper"], L && u["SubdomainNavBar-menu-wrapper--close"]),
270
- children: [!L && /* @__PURE__ */ w("div", { children: [Q && /* @__PURE__ */ C("div", {
271
- className: u["SubdomainNavBar-leading-component"],
272
- children: k
273
- }), K && /* @__PURE__ */ C(d.Provider, {
274
- value: { onLinkClick: W },
275
- children: pe ? /* @__PURE__ */ C("ul", {
276
- className: u["SubdomainNavBar-primary-nav-list--visible"],
277
- children: q
278
- }) : /* @__PURE__ */ C(te, {
279
- className: e(u["SubdomainNavBar-primary-nav-list--visible"]),
280
- overflowMenuLabel: H.overflowMenuLabel,
281
- children: q
267
+ className: e(d["SubdomainNavBar-menu-wrapper"], R && d["SubdomainNavBar-menu-wrapper--close"]),
268
+ children: [!R && /* @__PURE__ */ C("div", { children: [Q && /* @__PURE__ */ S("div", {
269
+ className: d["SubdomainNavBar-leading-component"],
270
+ children: A
271
+ }), q && /* @__PURE__ */ S(ee.Provider, {
272
+ value: { onLinkClick: G },
273
+ children: pe ? /* @__PURE__ */ S("ul", {
274
+ className: d["SubdomainNavBar-primary-nav-list--visible"],
275
+ children: Oe
276
+ }) : /* @__PURE__ */ S(ne, {
277
+ className: e(d["SubdomainNavBar-primary-nav-list--visible"]),
278
+ overflowMenuLabel: U.overflowMenuLabel,
279
+ children: Oe
282
280
  })
283
- })] }), !L && (Y || $) && /* @__PURE__ */ w("div", {
284
- className: e(u["SubdomainNavBar-menu-wrapper-footer"], (K || Q) && u["SubdomainNavBar-menu-wrapper-footer--has-leading-item"]),
285
- children: [$ && /* @__PURE__ */ C("div", {
286
- className: u["SubdomainNavBar-trailing-component"],
287
- children: j
288
- }), Y && /* @__PURE__ */ C("div", {
289
- className: e(u["SubdomainNavBar-button-area"], u["SubdomainNavBar-button-area--visible"]),
290
- children: /* @__PURE__ */ C("div", {
291
- className: u["SubdomainNavBar-button-area-inner"],
292
- children: /* @__PURE__ */ C(E.Provider, {
281
+ })] }), !R && (Y || $) && /* @__PURE__ */ C("div", {
282
+ className: e(d["SubdomainNavBar-menu-wrapper-footer"], (q || Q) && d["SubdomainNavBar-menu-wrapper-footer--has-leading-item"]),
283
+ children: [$ && /* @__PURE__ */ S("div", {
284
+ className: d["SubdomainNavBar-trailing-component"],
285
+ children: P
286
+ }), Y && /* @__PURE__ */ S("div", {
287
+ className: e(d["SubdomainNavBar-button-area"], d["SubdomainNavBar-button-area--visible"]),
288
+ children: /* @__PURE__ */ S("div", {
289
+ className: d["SubdomainNavBar-button-area-inner"],
290
+ children: /* @__PURE__ */ S(T.Provider, {
293
291
  value: pe ? "small" : "medium",
294
- children: De
292
+ children: ke
295
293
  })
296
294
  })
297
295
  })]
@@ -300,36 +298,36 @@ var k = h(function({ children: a, className: s, fixed: c = !0, fullWidth: f = !1
300
298
  ]
301
299
  })
302
300
  ]
303
- }), !z && !L && /* @__PURE__ */ C("div", {
304
- className: u["SubdomainNavBar-menu-backdrop"],
301
+ }), !B && !R && /* @__PURE__ */ S("div", {
302
+ className: d["SubdomainNavBar-menu-backdrop"],
305
303
  "aria-hidden": "true"
306
304
  })]
307
305
  })]
308
- }), /* @__PURE__ */ C("div", {
306
+ }), /* @__PURE__ */ S("div", {
309
307
  ref: _e,
310
308
  id: ve,
311
309
  tabIndex: -1
312
310
  })] });
313
311
  });
314
- function A({ href: t, className: n, children: r, isExternal: i, "aria-current": a, "aria-hidden": o, tabIndex: ee, ...c }) {
315
- let { isOverflowed: l, onLinkClick: d } = f();
316
- return /* @__PURE__ */ C("li", {
317
- ...c,
318
- "aria-hidden": l ? !0 : o,
319
- className: e(u["SubdomainNavBar-primary-nav-list-item"], n),
320
- tabIndex: l ? -1 : ee,
321
- children: /* @__PURE__ */ C("a", {
312
+ function k({ href: t, className: n, children: r, isExternal: i, "aria-current": a, "aria-hidden": o, tabIndex: c, ...l }) {
313
+ let { isOverflowed: u, onLinkClick: ee } = te();
314
+ return /* @__PURE__ */ S("li", {
315
+ ...l,
316
+ "aria-hidden": u ? !0 : o,
317
+ className: e(d["SubdomainNavBar-primary-nav-list-item"], n),
318
+ tabIndex: u ? -1 : c,
319
+ children: /* @__PURE__ */ S("a", {
322
320
  href: t,
323
321
  "aria-current": a,
324
- className: u["SubdomainNavBar-link"],
325
- onClick: d,
326
- tabIndex: l ? -1 : void 0,
327
- children: /* @__PURE__ */ w("span", {
328
- className: u["SubdomainNavBar-link-content"],
329
- children: [/* @__PURE__ */ C("span", {
330
- className: u["SubdomainNavBar-link-text"],
322
+ className: d["SubdomainNavBar-link"],
323
+ onClick: ee,
324
+ tabIndex: u ? -1 : void 0,
325
+ children: /* @__PURE__ */ C("span", {
326
+ className: d["SubdomainNavBar-link-content"],
327
+ children: [/* @__PURE__ */ S("span", {
328
+ className: d["SubdomainNavBar-link-text"],
331
329
  children: r
332
- }), i && /* @__PURE__ */ C(s, {
330
+ }), i && /* @__PURE__ */ S(s, {
333
331
  size: 16,
334
332
  "aria-label": "External link"
335
333
  })]
@@ -337,7 +335,7 @@ function A({ href: t, className: n, children: r, isExternal: i, "aria-current":
337
335
  })
338
336
  });
339
337
  }
340
- var j = {
338
+ var A = {
341
339
  searchLabel: "Search",
342
340
  closeLabel: "Close",
343
341
  resultsLabel: "Results",
@@ -347,33 +345,33 @@ var j = {
347
345
  formatResultsHeading: (e) => `Results for “${e}”`,
348
346
  formatResultsLabel: (e) => `Results for ${e}`,
349
347
  formatSuggestions: (e) => `${e} suggestions.`
350
- }, M = h(({ active: t, className: r, title: i, searchResults: o, searchTerm: s, onSearchOpen: ee, onSearchClose: l, onSubmit: d, onChange: f, placeholder: te, shortcutLabel: ne, keyboardShortcut: re, labels: m }, h) => {
351
- let v = b(null), y = b(null), x = {
352
- ...j,
353
- ...m
354
- }, T = te ?? (i ? x.formatSearchWithTitle(i) : x.searchLabel), E = i ? x.formatSearchWithTitle(i) : x.searchLabel, O = ne ?? (re || ""), { activeDescendant: k, handleSearchResultKeyDown: A, hasGroupedSearchResults: M, hasSearchResults: N, normalizedSearchResultGroups: P, resetActiveDescendant: F, searchResultsLength: oe } = ie({
355
- dialogRef: v,
348
+ }, j = m(({ active: t, className: r, title: i, searchResults: o, searchTerm: s, onSearchOpen: c, onSearchClose: u, onSubmit: ee, onChange: te, placeholder: ne, shortcutLabel: re, keyboardShortcut: ie, labels: p }, m) => {
349
+ let _ = y(null), v = y(null), b = {
350
+ ...A,
351
+ ...p
352
+ }, w = ne ?? (i ? b.formatSearchWithTitle(i) : b.searchLabel), T = i ? b.formatSearchWithTitle(i) : b.searchLabel, D = re ?? (ie || ""), { activeDescendant: O, handleSearchResultKeyDown: k, hasGroupedSearchResults: j, hasSearchResults: M, normalizedSearchResultGroups: N, resetActiveDescendant: P, searchResultsLength: F } = f({
353
+ dialogRef: _,
356
354
  searchResults: o
357
- }), I = g(() => {
358
- l?.(), F();
359
- }, [l, F]), se = g((e) => {
360
- if (y.current = e, typeof h == "function") {
361
- h(e);
355
+ }), I = h(() => {
356
+ u?.(), P();
357
+ }, [u, P]), L = h((e) => {
358
+ if (v.current = e, typeof m == "function") {
359
+ m(e);
362
360
  return;
363
361
  }
364
- h && (h.current = e);
365
- }, [h]);
366
- _(() => {
367
- let e = v.current;
362
+ m && (m.current = e);
363
+ }, [m]);
364
+ g(() => {
365
+ let e = _.current;
368
366
  if (e) {
369
367
  if (t) {
370
- e.open || (typeof e.showModal == "function" ? e.showModal() : e.setAttribute("open", "")), y.current?.focus();
368
+ e.open || (typeof e.showModal == "function" ? e.showModal() : e.setAttribute("open", "")), v.current?.focus();
371
369
  return;
372
370
  }
373
371
  e.open && (typeof e.close == "function" ? e.close() : e.removeAttribute("open"));
374
372
  }
375
- }, [t, y]), _(() => {
376
- let e = v.current;
373
+ }, [t, v]), g(() => {
374
+ let e = _.current;
377
375
  if (!e) return;
378
376
  let t = (t) => {
379
377
  if (t.target !== e) return;
@@ -382,194 +380,197 @@ var j = {
382
380
  };
383
381
  return e.addEventListener("click", t), () => e.removeEventListener("click", t);
384
382
  }, [I]);
385
- let ce = g((e) => {
383
+ let se = h((e) => {
386
384
  e.preventDefault(), I();
387
- }, [I]), L = ({ result: e, index: t }) => /* @__PURE__ */ w("li", {
388
- className: u["SubdomainNavBar-search-result-item"],
385
+ }, [I]), ce = ({ result: e, index: t }) => /* @__PURE__ */ C("li", {
386
+ className: d["SubdomainNavBar-search-result-item"],
389
387
  role: "presentation",
390
388
  children: [
391
- /* @__PURE__ */ C("div", {
392
- className: u["SubdomainNavBar-search-result-item-container"],
393
- children: /* @__PURE__ */ w("a", {
389
+ /* @__PURE__ */ S("div", {
390
+ className: d["SubdomainNavBar-search-result-item-container"],
391
+ children: /* @__PURE__ */ C("a", {
394
392
  id: `subdomainnavbar-search-result-${t}`,
395
393
  href: e.url,
396
394
  role: "option",
397
- "aria-selected": t === k,
398
- children: [/* @__PURE__ */ C("span", { children: e.title }), M && e.isExternal && /* @__PURE__ */ C(a, {
395
+ "aria-selected": t === O,
396
+ children: [/* @__PURE__ */ S("span", { children: e.title }), j && e.isExternal && /* @__PURE__ */ S(a, {
399
397
  size: 20,
400
398
  "aria-hidden": "true"
401
399
  })]
402
400
  })
403
401
  }),
404
- /* @__PURE__ */ C(n, {
402
+ /* @__PURE__ */ S(n, {
405
403
  as: "p",
406
404
  size: "200",
407
405
  id: `subdomainnavbar-search-result-item-desc${t}`,
408
- className: u["SubdomainNavBar-search-result-item-desc"],
406
+ className: d["SubdomainNavBar-search-result-item-desc"],
409
407
  children: e.description
410
408
  }),
411
- /* @__PURE__ */ w("div", {
412
- className: u["SubdomainNavBar-search-result-item-meta"],
413
- children: [/* @__PURE__ */ C(n, {
409
+ /* @__PURE__ */ C("div", {
410
+ className: d["SubdomainNavBar-search-result-item-meta"],
411
+ children: [/* @__PURE__ */ S(n, {
414
412
  size: "100",
415
- className: u["SubdomainNavBar-search-result-item-desc"],
413
+ className: d["SubdomainNavBar-search-result-item-desc"],
416
414
  children: e.date
417
- }), e.category && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w(n, {
415
+ }), e.category && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C(n, {
418
416
  size: "100",
419
- className: u["SubdomainNavBar-search-result-item-desc"],
417
+ className: d["SubdomainNavBar-search-result-item-desc"],
420
418
  children: [
421
419
  " ",
422
420
  "•",
423
421
  " "
424
422
  ]
425
- }), /* @__PURE__ */ C(n, {
423
+ }), /* @__PURE__ */ S(n, {
426
424
  size: "100",
427
- className: u["SubdomainNavBar-search-result-item-desc"],
425
+ className: d["SubdomainNavBar-search-result-item-desc"],
428
426
  children: e.category
429
427
  })] })]
430
428
  })
431
429
  ]
432
430
  }, `${e.title}-${t}`);
433
- return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
434
- className: e(u["SubdomainNavBar-search-trigger"], r),
435
- children: /* @__PURE__ */ w("button", {
436
- "aria-label": x.formatSearchTrigger(T),
437
- className: u["SubdomainNavBar-search-input-button"],
438
- onClick: ee,
431
+ return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
432
+ className: e(d["SubdomainNavBar-search-trigger"], r),
433
+ children: /* @__PURE__ */ C("button", {
434
+ "aria-label": b.formatSearchTrigger(w),
435
+ className: d["SubdomainNavBar-search-input-button"],
436
+ onClick: c,
439
437
  "data-testid": "toggle-search",
440
438
  type: "button",
441
- children: [/* @__PURE__ */ w("span", {
442
- className: u["SubdomainNavBar-search-input-button-placeholder"],
443
- children: [/* @__PURE__ */ C(c, {
439
+ children: [/* @__PURE__ */ C("span", {
440
+ className: d["SubdomainNavBar-search-input-button-placeholder"],
441
+ children: [/* @__PURE__ */ S(l, {
444
442
  "aria-hidden": "true",
445
443
  size: 16
446
- }), /* @__PURE__ */ C("span", { children: T })]
447
- }), O && /* @__PURE__ */ C("span", {
448
- className: u["SubdomainNavBar-search-input-button-shortcut"],
449
- children: O
444
+ }), /* @__PURE__ */ S("span", {
445
+ className: d["SubdomainNavBar-search-input-button-placeholder-text"],
446
+ children: w
447
+ })]
448
+ }), D && /* @__PURE__ */ S("span", {
449
+ className: d["SubdomainNavBar-search-input-button-shortcut"],
450
+ children: D
450
451
  })]
451
452
  })
452
- }), /* @__PURE__ */ C("dialog", {
453
- ref: v,
454
- "aria-label": E,
455
- className: e(u["SubdomainNavBar-search-dialog"], N && u["SubdomainNavBar-search-dialog--has-results"]),
456
- onCancel: ce,
457
- children: t && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
458
- className: e(u["SubdomainNavBar-search-dialog-control-area"]),
459
- children: /* @__PURE__ */ w("div", {
460
- className: u["SubdomainNavBar-search-input-area"],
461
- children: [/* @__PURE__ */ C("form", {
462
- className: e(u["SubdomainNavBar-search-form"]),
463
- onSubmit: d,
453
+ }), /* @__PURE__ */ S("dialog", {
454
+ ref: _,
455
+ "aria-label": T,
456
+ className: e(d["SubdomainNavBar-search-dialog"], M && d["SubdomainNavBar-search-dialog--has-results"]),
457
+ onCancel: se,
458
+ children: t && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
459
+ className: e(d["SubdomainNavBar-search-dialog-control-area"]),
460
+ children: /* @__PURE__ */ C("div", {
461
+ className: d["SubdomainNavBar-search-input-area"],
462
+ children: [/* @__PURE__ */ S("form", {
463
+ className: e(d["SubdomainNavBar-search-form"]),
464
+ onSubmit: ee,
464
465
  role: "search",
465
- children: /* @__PURE__ */ w(p, {
466
+ children: /* @__PURE__ */ C(oe, {
466
467
  fullWidth: !0,
467
468
  size: "medium",
468
- children: [/* @__PURE__ */ C(p.Label, {
469
+ children: [/* @__PURE__ */ S(oe.Label, {
469
470
  visuallyHidden: !0,
470
- children: x.searchLabel
471
- }), /* @__PURE__ */ C(ae, {
472
- ref: se,
473
- className: e(u["SubdomainNavBar-search-text-input"]),
471
+ children: b.searchLabel
472
+ }), /* @__PURE__ */ S(ae, {
473
+ ref: L,
474
+ className: e(d["SubdomainNavBar-search-text-input"]),
474
475
  name: "search",
475
476
  role: "combobox",
476
477
  autoComplete: "off",
477
478
  "aria-autocomplete": "list",
478
- "aria-expanded": N,
479
+ "aria-expanded": M,
479
480
  "aria-controls": "listbox-search-results",
480
- placeholder: T,
481
- onChange: f,
481
+ placeholder: w,
482
+ onChange: te,
482
483
  defaultValue: s,
483
484
  invisible: !0,
484
- leadingVisual: /* @__PURE__ */ C(c, { size: 16 }),
485
- "aria-activedescendant": k === -1 ? void 0 : `subdomainnavbar-search-result-${k}`,
486
- onKeyDown: A
485
+ leadingVisual: /* @__PURE__ */ S(l, { size: 16 }),
486
+ "aria-activedescendant": O === -1 ? void 0 : `subdomainnavbar-search-result-${O}`,
487
+ onKeyDown: k
487
488
  })]
488
489
  })
489
- }), /* @__PURE__ */ C("button", {
490
- "aria-label": x.closeLabel,
491
- className: u["SubdomainNavBar-search-close-button"],
490
+ }), /* @__PURE__ */ S("button", {
491
+ "aria-label": b.closeLabel,
492
+ className: d["SubdomainNavBar-search-close-button"],
492
493
  onClick: I,
493
494
  type: "button",
494
- children: x.closeLabel
495
+ children: b.closeLabel
495
496
  })]
496
497
  })
497
- }), /* @__PURE__ */ w("div", {
498
+ }), /* @__PURE__ */ C("div", {
498
499
  id: "listbox-search-results",
499
- className: e(u["SubdomainNavBar-search-results-area"], N && u["SubdomainNavBar-search-results-area--visible"]),
500
- children: [N && /* @__PURE__ */ w("div", {
501
- className: e(u["SubdomainNavBar-search-results-container"]),
502
- children: [!M && /* @__PURE__ */ C(n, {
500
+ className: e(d["SubdomainNavBar-search-results-area"], M && d["SubdomainNavBar-search-results-area--visible"]),
501
+ children: [M && /* @__PURE__ */ C("div", {
502
+ className: e(d["SubdomainNavBar-search-results-container"]),
503
+ children: [!j && /* @__PURE__ */ S(n, {
503
504
  id: "subdomainnavbar-search-results-heading",
504
- className: u["SubdomainNavBar-search-results-heading"],
505
- children: x.formatResultsHeading(s ?? "")
506
- }), /* @__PURE__ */ C("ul", {
505
+ className: d["SubdomainNavBar-search-results-heading"],
506
+ children: b.formatResultsHeading(s ?? "")
507
+ }), /* @__PURE__ */ S("ul", {
507
508
  role: "listbox",
508
509
  tabIndex: 0,
509
- "aria-labelledby": M ? void 0 : "subdomainnavbar-search-results-heading",
510
- "aria-label": M ? s ? x.formatResultsLabel(s) : x.searchResultsLabel : void 0,
511
- className: e(u["SubdomainNavBar-search-results"]),
512
- children: M ? P.map((e, t) => {
510
+ "aria-labelledby": j ? void 0 : "subdomainnavbar-search-results-heading",
511
+ "aria-label": j ? s ? b.formatResultsLabel(s) : b.searchResultsLabel : void 0,
512
+ className: e(d["SubdomainNavBar-search-results"]),
513
+ children: j ? N.map((e, t) => {
513
514
  let r = `subdomainnavbar-search-result-group-${t}`;
514
- return /* @__PURE__ */ w("li", {
515
- className: u["SubdomainNavBar-search-result-group"],
515
+ return /* @__PURE__ */ C("li", {
516
+ className: d["SubdomainNavBar-search-result-group"],
516
517
  role: "presentation",
517
- children: [e.title && /* @__PURE__ */ C(n, {
518
+ children: [e.title && /* @__PURE__ */ S(n, {
518
519
  id: r,
519
- className: u["SubdomainNavBar-search-result-group-heading"],
520
+ className: d["SubdomainNavBar-search-result-group-heading"],
520
521
  children: e.title
521
- }), /* @__PURE__ */ C("ul", {
522
- className: u["SubdomainNavBar-search-result-group-list"],
522
+ }), /* @__PURE__ */ S("ul", {
523
+ className: d["SubdomainNavBar-search-result-group-list"],
523
524
  role: "group",
524
525
  "aria-labelledby": e.title ? r : void 0,
525
- "aria-label": e.title ? void 0 : x.resultsLabel,
526
- children: e.results.map(L)
526
+ "aria-label": e.title ? void 0 : b.resultsLabel,
527
+ children: e.results.map(ce)
527
528
  })]
528
529
  }, e.title ?? `ungrouped-${t}`);
529
- }) : P.flatMap((e) => e.results.map(L))
530
+ }) : N.flatMap((e) => e.results.map(ce))
530
531
  })]
531
- }), /* @__PURE__ */ w("div", {
532
+ }), /* @__PURE__ */ C("div", {
532
533
  "aria-live": "polite",
533
534
  "aria-atomic": "true",
534
- "data-testid": D.liveRegion,
535
+ "data-testid": E.liveRegion,
535
536
  className: "visually-hidden",
536
- children: [x.formatSuggestions(oe), /* @__PURE__ */ C("span", { children: "\xA0" })]
537
+ children: [b.formatSuggestions(F), /* @__PURE__ */ S("span", { children: "\xA0" })]
537
538
  })]
538
539
  })] })
539
540
  })] });
540
541
  });
541
- k.displayName = "SubdomainNavBar";
542
- function N({ children: t, href: n, ...i }) {
543
- let a = m.useContext(E);
544
- return /* @__PURE__ */ C(r, {
542
+ O.displayName = "SubdomainNavBar";
543
+ function M({ children: t, href: n, ...i }) {
544
+ let a = p.useContext(T);
545
+ return /* @__PURE__ */ S(r, {
545
546
  as: "a",
546
547
  href: n,
547
- className: e(u["SubdomainNavBar-cta-button"]),
548
+ className: e(d["SubdomainNavBar-cta-button"]),
548
549
  variant: "primary",
549
550
  size: a,
550
551
  ...i,
551
552
  children: t
552
553
  });
553
554
  }
554
- function P({ children: t, href: n, ...i }) {
555
- let a = m.useContext(E);
556
- return /* @__PURE__ */ C(r, {
555
+ function N({ children: t, href: n, ...i }) {
556
+ let a = p.useContext(T);
557
+ return /* @__PURE__ */ S(r, {
557
558
  as: "a",
558
559
  href: n,
559
- className: e(u["SubdomainNavBar-cta-button"], u["SubdomainNavBar-cta-button--secondary"]),
560
+ className: e(d["SubdomainNavBar-cta-button"], d["SubdomainNavBar-cta-button--secondary"]),
560
561
  size: a,
561
562
  ...i,
562
563
  children: t
563
564
  });
564
565
  }
565
- var F = Object.assign(k, {
566
- Link: A,
567
- Search: M,
568
- PrimaryAction: N,
569
- SecondaryAction: P,
570
- testIds: D
566
+ var P = Object.assign(O, {
567
+ Link: k,
568
+ Search: j,
569
+ PrimaryAction: M,
570
+ SecondaryAction: N,
571
+ testIds: E
571
572
  });
572
573
  //#endregion
573
- export { F as SubdomainNavBar };
574
+ export { P as SubdomainNavBar };
574
575
 
575
576
  //# sourceMappingURL=SubdomainNavBar.js.map