@slipstream-ui/core 0.11.9 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/dist/index.d.mts +254 -148
  2. package/dist/index.d.ts +254 -148
  3. package/dist/index.js +1582 -1156
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1577 -1156
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/manifests/accordion.manifest.json +1 -1
  8. package/dist/manifests/alert.manifest.json +1 -1
  9. package/dist/manifests/announcement-bar.manifest.json +12 -1
  10. package/dist/manifests/app-shell.manifest.json +12 -1
  11. package/dist/manifests/applied-filters.manifest.json +1 -1
  12. package/dist/manifests/article-card.manifest.json +12 -1
  13. package/dist/manifests/auth-layout.manifest.json +1 -1
  14. package/dist/manifests/autocomplete.manifest.json +1 -1
  15. package/dist/manifests/avatar.manifest.json +1 -1
  16. package/dist/manifests/badge.manifest.json +1 -1
  17. package/dist/manifests/block.manifest.json +1 -1
  18. package/dist/manifests/bottom-nav.manifest.json +1 -1
  19. package/dist/manifests/breadcrumb.manifest.json +1 -1
  20. package/dist/manifests/button-group.manifest.json +1 -1
  21. package/dist/manifests/button.manifest.json +1 -1
  22. package/dist/manifests/calendar.manifest.json +1 -1
  23. package/dist/manifests/card.manifest.json +1 -1
  24. package/dist/manifests/checkbox.manifest.json +1 -1
  25. package/dist/manifests/comparison-table.manifest.json +1 -1
  26. package/dist/manifests/confirm-dialog.manifest.json +1 -1
  27. package/dist/manifests/consent-banner.manifest.json +130 -0
  28. package/dist/manifests/contact-strip.manifest.json +12 -1
  29. package/dist/manifests/container.manifest.json +1 -1
  30. package/dist/manifests/cover-image.manifest.json +1 -1
  31. package/dist/manifests/cta-section.manifest.json +1 -1
  32. package/dist/manifests/data-table.manifest.json +1 -1
  33. package/dist/manifests/date-picker-popover.manifest.json +1 -1
  34. package/dist/manifests/date-picker.manifest.json +1 -1
  35. package/dist/manifests/date-range-picker.manifest.json +1 -1
  36. package/dist/manifests/deal-card.manifest.json +12 -1
  37. package/dist/manifests/dialog.manifest.json +1 -1
  38. package/dist/manifests/document-card.manifest.json +1 -1
  39. package/dist/manifests/drawer.manifest.json +1 -1
  40. package/dist/manifests/empty-state.manifest.json +1 -1
  41. package/dist/manifests/entity-card.manifest.json +12 -1
  42. package/dist/manifests/feature-grid.manifest.json +12 -1
  43. package/dist/manifests/feature-row.manifest.json +1 -1
  44. package/dist/manifests/fieldset.manifest.json +1 -1
  45. package/dist/manifests/file-upload.manifest.json +1 -1
  46. package/dist/manifests/filter-bar.manifest.json +1 -1
  47. package/dist/manifests/filter-chips.manifest.json +1 -1
  48. package/dist/manifests/filter-panel.manifest.json +1 -1
  49. package/dist/manifests/flex.manifest.json +1 -1
  50. package/dist/manifests/form-field.manifest.json +1 -1
  51. package/dist/manifests/form-layout.manifest.json +1 -1
  52. package/dist/manifests/form.manifest.json +1 -1
  53. package/dist/manifests/grid.manifest.json +1 -1
  54. package/dist/manifests/heading.manifest.json +1 -1
  55. package/dist/manifests/hero.manifest.json +1 -1
  56. package/dist/manifests/image.manifest.json +1 -1
  57. package/dist/manifests/input-group.manifest.json +1 -1
  58. package/dist/manifests/input.manifest.json +1 -1
  59. package/dist/manifests/label.manifest.json +1 -1
  60. package/dist/manifests/link-tabs.manifest.json +1 -1
  61. package/dist/manifests/link.manifest.json +1 -1
  62. package/dist/manifests/list-toolbar.manifest.json +1 -1
  63. package/dist/manifests/list.manifest.json +1 -1
  64. package/dist/manifests/load-more.manifest.json +1 -1
  65. package/dist/manifests/logo-cloud.manifest.json +1 -1
  66. package/dist/manifests/media-card.manifest.json +161 -0
  67. package/dist/manifests/menu.manifest.json +1 -1
  68. package/dist/manifests/metric-card.manifest.json +1 -1
  69. package/dist/manifests/month-schedule.manifest.json +217 -0
  70. package/dist/manifests/multi-select.manifest.json +1 -1
  71. package/dist/manifests/newsletter.manifest.json +1 -1
  72. package/dist/manifests/page-header.manifest.json +1 -1
  73. package/dist/manifests/pagination.manifest.json +1 -1
  74. package/dist/manifests/password-input.manifest.json +1 -1
  75. package/dist/manifests/popover.manifest.json +1 -1
  76. package/dist/manifests/process-steps.manifest.json +1 -1
  77. package/dist/manifests/progress.manifest.json +1 -1
  78. package/dist/manifests/prose.manifest.json +1 -1
  79. package/dist/manifests/radio.manifest.json +1 -1
  80. package/dist/manifests/range-slider.manifest.json +1 -1
  81. package/dist/manifests/search.manifest.json +1 -1
  82. package/dist/manifests/section-heading.manifest.json +1 -1
  83. package/dist/manifests/section.manifest.json +1 -1
  84. package/dist/manifests/segmented-control.manifest.json +1 -1
  85. package/dist/manifests/select-menu.manifest.json +1 -1
  86. package/dist/manifests/select.manifest.json +1 -1
  87. package/dist/manifests/separator.manifest.json +1 -1
  88. package/dist/manifests/site-footer.manifest.json +1 -1
  89. package/dist/manifests/site-header.manifest.json +7 -1
  90. package/dist/manifests/skeleton.manifest.json +1 -1
  91. package/dist/manifests/spinner.manifest.json +1 -1
  92. package/dist/manifests/stat-band.manifest.json +1 -1
  93. package/dist/manifests/stepper.manifest.json +1 -1
  94. package/dist/manifests/switch.manifest.json +1 -1
  95. package/dist/manifests/table-card.manifest.json +1 -1
  96. package/dist/manifests/table-of-contents.manifest.json +1 -1
  97. package/dist/manifests/table.manifest.json +1 -1
  98. package/dist/manifests/tabs.manifest.json +1 -1
  99. package/dist/manifests/testimonial.manifest.json +1 -1
  100. package/dist/manifests/text.manifest.json +1 -1
  101. package/dist/manifests/textarea.manifest.json +1 -1
  102. package/dist/manifests/theme-toggle.manifest.json +1 -1
  103. package/dist/manifests/time-picker.manifest.json +1 -1
  104. package/dist/manifests/timeline.manifest.json +1 -1
  105. package/dist/manifests/toast.manifest.json +1 -1
  106. package/dist/manifests/tombstone-card.manifest.json +12 -1
  107. package/dist/manifests/tooltip.manifest.json +1 -1
  108. package/dist/src/components/announcement-bar/AnnouncementBar.d.ts +3 -6
  109. package/dist/src/components/announcement-bar/AnnouncementBar.js +3 -1
  110. package/dist/src/components/announcement-bar/AnnouncementBar.js.map +1 -1
  111. package/dist/src/components/announcement-bar/AnnouncementBar.mjs +3 -1
  112. package/dist/src/components/announcement-bar/AnnouncementBar.mjs.map +1 -1
  113. package/dist/src/components/app-shell/AppShell.d.ts +3 -4
  114. package/dist/src/components/app-shell/AppShell.js +3 -1
  115. package/dist/src/components/app-shell/AppShell.js.map +1 -1
  116. package/dist/src/components/app-shell/AppShell.mjs +3 -1
  117. package/dist/src/components/app-shell/AppShell.mjs.map +1 -1
  118. package/dist/src/components/article-card/ArticleCard.d.ts +3 -6
  119. package/dist/src/components/article-card/ArticleCard.js +3 -1
  120. package/dist/src/components/article-card/ArticleCard.js.map +1 -1
  121. package/dist/src/components/article-card/ArticleCard.mjs +3 -1
  122. package/dist/src/components/article-card/ArticleCard.mjs.map +1 -1
  123. package/dist/src/components/bottom-nav/BottomNav.d.ts +2 -5
  124. package/dist/src/components/bottom-nav/BottomNav.js +2 -1
  125. package/dist/src/components/bottom-nav/BottomNav.js.map +1 -1
  126. package/dist/src/components/bottom-nav/BottomNav.mjs +2 -1
  127. package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -1
  128. package/dist/src/components/breadcrumb/Breadcrumb.d.ts +3 -16
  129. package/dist/src/components/breadcrumb/Breadcrumb.js +2 -1
  130. package/dist/src/components/breadcrumb/Breadcrumb.js.map +1 -1
  131. package/dist/src/components/breadcrumb/Breadcrumb.mjs +2 -1
  132. package/dist/src/components/breadcrumb/Breadcrumb.mjs.map +1 -1
  133. package/dist/src/components/consent-banner/ConsentBanner.d.ts +53 -0
  134. package/dist/src/components/consent-banner/ConsentBanner.js +83 -0
  135. package/dist/src/components/consent-banner/ConsentBanner.js.map +1 -0
  136. package/dist/src/components/consent-banner/ConsentBanner.mjs +49 -0
  137. package/dist/src/components/consent-banner/ConsentBanner.mjs.map +1 -0
  138. package/dist/src/components/consent-banner/index.d.ts +1 -0
  139. package/dist/src/components/consent-banner/index.js +23 -0
  140. package/dist/src/components/consent-banner/index.js.map +1 -0
  141. package/dist/src/components/consent-banner/index.mjs +2 -0
  142. package/dist/src/components/consent-banner/index.mjs.map +1 -0
  143. package/dist/src/components/contact-strip/ContactStrip.d.ts +3 -6
  144. package/dist/src/components/contact-strip/ContactStrip.js +3 -2
  145. package/dist/src/components/contact-strip/ContactStrip.js.map +1 -1
  146. package/dist/src/components/contact-strip/ContactStrip.mjs +3 -2
  147. package/dist/src/components/contact-strip/ContactStrip.mjs.map +1 -1
  148. package/dist/src/components/deal-card/DealCard.d.ts +3 -6
  149. package/dist/src/components/deal-card/DealCard.js +3 -1
  150. package/dist/src/components/deal-card/DealCard.js.map +1 -1
  151. package/dist/src/components/deal-card/DealCard.mjs +3 -1
  152. package/dist/src/components/deal-card/DealCard.mjs.map +1 -1
  153. package/dist/src/components/empty-state/EmptyState.d.ts +3 -10
  154. package/dist/src/components/empty-state/EmptyState.js +2 -1
  155. package/dist/src/components/empty-state/EmptyState.js.map +1 -1
  156. package/dist/src/components/empty-state/EmptyState.mjs +2 -1
  157. package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
  158. package/dist/src/components/entity-card/EntityCard.d.ts +4 -9
  159. package/dist/src/components/entity-card/EntityCard.js +4 -2
  160. package/dist/src/components/entity-card/EntityCard.js.map +1 -1
  161. package/dist/src/components/entity-card/EntityCard.mjs +4 -2
  162. package/dist/src/components/entity-card/EntityCard.mjs.map +1 -1
  163. package/dist/src/components/feature-grid/FeatureGrid.d.ts +3 -6
  164. package/dist/src/components/feature-grid/FeatureGrid.js +3 -2
  165. package/dist/src/components/feature-grid/FeatureGrid.js.map +1 -1
  166. package/dist/src/components/feature-grid/FeatureGrid.mjs +3 -2
  167. package/dist/src/components/feature-grid/FeatureGrid.mjs.map +1 -1
  168. package/dist/src/components/link-tabs/LinkTabs.d.ts +3 -16
  169. package/dist/src/components/link-tabs/LinkTabs.js +2 -1
  170. package/dist/src/components/link-tabs/LinkTabs.js.map +1 -1
  171. package/dist/src/components/link-tabs/LinkTabs.mjs +2 -1
  172. package/dist/src/components/link-tabs/LinkTabs.mjs.map +1 -1
  173. package/dist/src/components/logo-cloud/LogoCloud.d.ts +3 -10
  174. package/dist/src/components/logo-cloud/LogoCloud.js +2 -1
  175. package/dist/src/components/logo-cloud/LogoCloud.js.map +1 -1
  176. package/dist/src/components/logo-cloud/LogoCloud.mjs +2 -1
  177. package/dist/src/components/logo-cloud/LogoCloud.mjs.map +1 -1
  178. package/dist/src/components/media-card/MediaCard.d.ts +54 -0
  179. package/dist/src/components/media-card/MediaCard.js +89 -0
  180. package/dist/src/components/media-card/MediaCard.js.map +1 -0
  181. package/dist/src/components/media-card/MediaCard.mjs +55 -0
  182. package/dist/src/components/media-card/MediaCard.mjs.map +1 -0
  183. package/dist/src/components/media-card/index.d.ts +1 -0
  184. package/dist/src/components/media-card/index.js +23 -0
  185. package/dist/src/components/media-card/index.js.map +1 -0
  186. package/dist/src/components/media-card/index.mjs +2 -0
  187. package/dist/src/components/media-card/index.mjs.map +1 -0
  188. package/dist/src/components/month-schedule/MonthSchedule.d.ts +53 -0
  189. package/dist/src/components/month-schedule/MonthSchedule.js +246 -0
  190. package/dist/src/components/month-schedule/MonthSchedule.js.map +1 -0
  191. package/dist/src/components/month-schedule/MonthSchedule.mjs +220 -0
  192. package/dist/src/components/month-schedule/MonthSchedule.mjs.map +1 -0
  193. package/dist/src/components/month-schedule/index.d.ts +1 -0
  194. package/dist/src/components/month-schedule/index.js +23 -0
  195. package/dist/src/components/month-schedule/index.js.map +1 -0
  196. package/dist/src/components/month-schedule/index.mjs +2 -0
  197. package/dist/src/components/month-schedule/index.mjs.map +1 -0
  198. package/dist/src/components/pagination/Pagination.d.ts +3 -10
  199. package/dist/src/components/pagination/Pagination.js +2 -1
  200. package/dist/src/components/pagination/Pagination.js.map +1 -1
  201. package/dist/src/components/pagination/Pagination.mjs +2 -1
  202. package/dist/src/components/pagination/Pagination.mjs.map +1 -1
  203. package/dist/src/components/segmented-control/SegmentedControl.d.ts +3 -10
  204. package/dist/src/components/segmented-control/SegmentedControl.js +2 -1
  205. package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
  206. package/dist/src/components/segmented-control/SegmentedControl.mjs +2 -1
  207. package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
  208. package/dist/src/components/site-footer/SiteFooter.d.ts +2 -9
  209. package/dist/src/components/site-footer/SiteFooter.js +2 -1
  210. package/dist/src/components/site-footer/SiteFooter.js.map +1 -1
  211. package/dist/src/components/site-footer/SiteFooter.mjs +2 -1
  212. package/dist/src/components/site-footer/SiteFooter.mjs.map +1 -1
  213. package/dist/src/components/site-header/SiteHeader.d.ts +9 -10
  214. package/dist/src/components/site-header/SiteHeader.js +138 -133
  215. package/dist/src/components/site-header/SiteHeader.js.map +1 -1
  216. package/dist/src/components/site-header/SiteHeader.mjs +138 -133
  217. package/dist/src/components/site-header/SiteHeader.mjs.map +1 -1
  218. package/dist/src/components/tombstone-card/TombstoneCard.d.ts +3 -6
  219. package/dist/src/components/tombstone-card/TombstoneCard.js +3 -1
  220. package/dist/src/components/tombstone-card/TombstoneCard.js.map +1 -1
  221. package/dist/src/components/tombstone-card/TombstoneCard.mjs +3 -1
  222. package/dist/src/components/tombstone-card/TombstoneCard.mjs.map +1 -1
  223. package/dist/src/index.d.ts +5 -0
  224. package/dist/src/utils/consent.d.ts +42 -0
  225. package/dist/src/utils/consent.js +142 -0
  226. package/dist/src/utils/consent.js.map +1 -0
  227. package/dist/src/utils/consent.mjs +107 -0
  228. package/dist/src/utils/consent.mjs.map +1 -0
  229. package/dist/src/utils/link.d.ts +21 -0
  230. package/dist/src/utils/link.js +31 -0
  231. package/dist/src/utils/link.js.map +1 -0
  232. package/dist/src/utils/link.mjs +7 -0
  233. package/dist/src/utils/link.mjs.map +1 -0
  234. package/dist/styles-full.css +1 -1
  235. package/dist/styles.css +1 -1
  236. package/package.json +3 -3
  237. package/src/components/announcement-bar/AnnouncementBar.test.tsx +18 -0
  238. package/src/components/announcement-bar/AnnouncementBar.tsx +4 -4
  239. package/src/components/app-shell/AppShell.test.tsx +10 -0
  240. package/src/components/app-shell/AppShell.tsx +4 -4
  241. package/src/components/article-card/ArticleCard.test.tsx +10 -0
  242. package/src/components/article-card/ArticleCard.tsx +4 -4
  243. package/src/components/bottom-nav/BottomNav.tsx +3 -6
  244. package/src/components/breadcrumb/Breadcrumb.tsx +3 -9
  245. package/src/components/consent-banner/ConsentBanner.test.tsx +58 -0
  246. package/src/components/consent-banner/ConsentBanner.tsx +93 -0
  247. package/src/components/consent-banner/index.ts +1 -0
  248. package/src/components/contact-strip/ContactStrip.test.tsx +16 -0
  249. package/src/components/contact-strip/ContactStrip.tsx +4 -5
  250. package/src/components/deal-card/DealCard.test.tsx +19 -0
  251. package/src/components/deal-card/DealCard.tsx +4 -4
  252. package/src/components/empty-state/EmptyState.tsx +3 -6
  253. package/src/components/entity-card/EntityCard.test.tsx +8 -0
  254. package/src/components/entity-card/EntityCard.tsx +5 -5
  255. package/src/components/feature-grid/FeatureGrid.test.tsx +16 -0
  256. package/src/components/feature-grid/FeatureGrid.tsx +4 -5
  257. package/src/components/link-tabs/LinkTabs.tsx +3 -9
  258. package/src/components/logo-cloud/LogoCloud.tsx +3 -6
  259. package/src/components/media-card/MediaCard.test.tsx +97 -0
  260. package/src/components/media-card/MediaCard.tsx +113 -0
  261. package/src/components/media-card/index.ts +1 -0
  262. package/src/components/month-schedule/MonthSchedule.test.tsx +137 -0
  263. package/src/components/month-schedule/MonthSchedule.tsx +329 -0
  264. package/src/components/month-schedule/index.ts +1 -0
  265. package/src/components/pagination/Pagination.tsx +3 -6
  266. package/src/components/segmented-control/SegmentedControl.tsx +3 -6
  267. package/src/components/site-footer/SiteFooter.tsx +3 -11
  268. package/src/components/site-header/SiteHeader.test.tsx +26 -0
  269. package/src/components/site-header/SiteHeader.tsx +17 -11
  270. package/src/components/tombstone-card/TombstoneCard.test.tsx +17 -0
  271. package/src/components/tombstone-card/TombstoneCard.tsx +4 -4
  272. package/src/index.ts +5 -0
  273. package/src/manifests/accordion.manifest.json +1 -1
  274. package/src/manifests/alert.manifest.json +1 -1
  275. package/src/manifests/announcement-bar.manifest.json +12 -1
  276. package/src/manifests/app-shell.manifest.json +12 -1
  277. package/src/manifests/applied-filters.manifest.json +1 -1
  278. package/src/manifests/article-card.manifest.json +12 -1
  279. package/src/manifests/auth-layout.manifest.json +1 -1
  280. package/src/manifests/autocomplete.manifest.json +1 -1
  281. package/src/manifests/avatar.manifest.json +1 -1
  282. package/src/manifests/badge.manifest.json +1 -1
  283. package/src/manifests/block.manifest.json +1 -1
  284. package/src/manifests/bottom-nav.manifest.json +1 -1
  285. package/src/manifests/breadcrumb.manifest.json +1 -1
  286. package/src/manifests/button-group.manifest.json +1 -1
  287. package/src/manifests/button.manifest.json +1 -1
  288. package/src/manifests/calendar.manifest.json +1 -1
  289. package/src/manifests/card.manifest.json +1 -1
  290. package/src/manifests/checkbox.manifest.json +1 -1
  291. package/src/manifests/comparison-table.manifest.json +1 -1
  292. package/src/manifests/confirm-dialog.manifest.json +1 -1
  293. package/src/manifests/consent-banner.manifest.json +130 -0
  294. package/src/manifests/contact-strip.manifest.json +12 -1
  295. package/src/manifests/container.manifest.json +1 -1
  296. package/src/manifests/cover-image.manifest.json +1 -1
  297. package/src/manifests/cta-section.manifest.json +1 -1
  298. package/src/manifests/data-table.manifest.json +1 -1
  299. package/src/manifests/date-picker-popover.manifest.json +1 -1
  300. package/src/manifests/date-picker.manifest.json +1 -1
  301. package/src/manifests/date-range-picker.manifest.json +1 -1
  302. package/src/manifests/deal-card.manifest.json +12 -1
  303. package/src/manifests/dialog.manifest.json +1 -1
  304. package/src/manifests/document-card.manifest.json +1 -1
  305. package/src/manifests/drawer.manifest.json +1 -1
  306. package/src/manifests/empty-state.manifest.json +1 -1
  307. package/src/manifests/entity-card.manifest.json +12 -1
  308. package/src/manifests/feature-grid.manifest.json +12 -1
  309. package/src/manifests/feature-row.manifest.json +1 -1
  310. package/src/manifests/fieldset.manifest.json +1 -1
  311. package/src/manifests/file-upload.manifest.json +1 -1
  312. package/src/manifests/filter-bar.manifest.json +1 -1
  313. package/src/manifests/filter-chips.manifest.json +1 -1
  314. package/src/manifests/filter-panel.manifest.json +1 -1
  315. package/src/manifests/flex.manifest.json +1 -1
  316. package/src/manifests/form-field.manifest.json +1 -1
  317. package/src/manifests/form-layout.manifest.json +1 -1
  318. package/src/manifests/form.manifest.json +1 -1
  319. package/src/manifests/grid.manifest.json +1 -1
  320. package/src/manifests/heading.manifest.json +1 -1
  321. package/src/manifests/hero.manifest.json +1 -1
  322. package/src/manifests/image.manifest.json +1 -1
  323. package/src/manifests/input-group.manifest.json +1 -1
  324. package/src/manifests/input.manifest.json +1 -1
  325. package/src/manifests/label.manifest.json +1 -1
  326. package/src/manifests/link-tabs.manifest.json +1 -1
  327. package/src/manifests/link.manifest.json +1 -1
  328. package/src/manifests/list-toolbar.manifest.json +1 -1
  329. package/src/manifests/list.manifest.json +1 -1
  330. package/src/manifests/load-more.manifest.json +1 -1
  331. package/src/manifests/logo-cloud.manifest.json +1 -1
  332. package/src/manifests/media-card.manifest.json +161 -0
  333. package/src/manifests/menu.manifest.json +1 -1
  334. package/src/manifests/metric-card.manifest.json +1 -1
  335. package/src/manifests/month-schedule.manifest.json +217 -0
  336. package/src/manifests/multi-select.manifest.json +1 -1
  337. package/src/manifests/newsletter.manifest.json +1 -1
  338. package/src/manifests/page-header.manifest.json +1 -1
  339. package/src/manifests/pagination.manifest.json +1 -1
  340. package/src/manifests/password-input.manifest.json +1 -1
  341. package/src/manifests/popover.manifest.json +1 -1
  342. package/src/manifests/process-steps.manifest.json +1 -1
  343. package/src/manifests/progress.manifest.json +1 -1
  344. package/src/manifests/prose.manifest.json +1 -1
  345. package/src/manifests/radio.manifest.json +1 -1
  346. package/src/manifests/range-slider.manifest.json +1 -1
  347. package/src/manifests/search.manifest.json +1 -1
  348. package/src/manifests/section-heading.manifest.json +1 -1
  349. package/src/manifests/section.manifest.json +1 -1
  350. package/src/manifests/segmented-control.manifest.json +1 -1
  351. package/src/manifests/select-menu.manifest.json +1 -1
  352. package/src/manifests/select.manifest.json +1 -1
  353. package/src/manifests/separator.manifest.json +1 -1
  354. package/src/manifests/site-footer.manifest.json +1 -1
  355. package/src/manifests/site-header.manifest.json +7 -1
  356. package/src/manifests/skeleton.manifest.json +1 -1
  357. package/src/manifests/spinner.manifest.json +1 -1
  358. package/src/manifests/stat-band.manifest.json +1 -1
  359. package/src/manifests/stepper.manifest.json +1 -1
  360. package/src/manifests/switch.manifest.json +1 -1
  361. package/src/manifests/table-card.manifest.json +1 -1
  362. package/src/manifests/table-of-contents.manifest.json +1 -1
  363. package/src/manifests/table.manifest.json +1 -1
  364. package/src/manifests/tabs.manifest.json +1 -1
  365. package/src/manifests/testimonial.manifest.json +1 -1
  366. package/src/manifests/text.manifest.json +1 -1
  367. package/src/manifests/textarea.manifest.json +1 -1
  368. package/src/manifests/theme-toggle.manifest.json +1 -1
  369. package/src/manifests/time-picker.manifest.json +1 -1
  370. package/src/manifests/timeline.manifest.json +1 -1
  371. package/src/manifests/toast.manifest.json +1 -1
  372. package/src/manifests/tombstone-card.manifest.json +12 -1
  373. package/src/manifests/tooltip.manifest.json +1 -1
  374. package/src/utils/consent.test.ts +112 -0
  375. package/src/utils/consent.ts +169 -0
  376. package/src/utils/link.ts +19 -0
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { cn } from '../../utils/cn';
3
+ import { linkDestination, type LinkLikeProps } from '../../utils/link';
3
4
 
4
5
  export type SiteFooterLink = {
5
6
  label: string;
@@ -12,7 +13,7 @@ export type SiteFooterColumn = {
12
13
  links: SiteFooterLink[];
13
14
  };
14
15
 
15
- export type SiteFooterProps = React.HTMLAttributes<HTMLElement> & {
16
+ export type SiteFooterProps = React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
16
17
  /** Brand slot (logo/lockup). */
17
18
  brand?: React.ReactNode;
18
19
  /** Short line under the brand. */
@@ -22,14 +23,6 @@ export type SiteFooterProps = React.HTMLAttributes<HTMLElement> & {
22
23
  columns: SiteFooterColumn[];
23
24
  /** Bottom bar (copyright, legal links). */
24
25
  legal?: React.ReactNode;
25
- /** Router link element. */
26
- linkComponent?: React.ElementType;
27
- /**
28
- * Prop used to pass the destination to `linkComponent`.
29
- * `href` (default) covers anchors and Next.js Link; `to` covers
30
- * react-router and other routers that use a `to` prop.
31
- */
32
- linkHrefProp?: 'href' | 'to';
33
26
  /** Current route, used to mark the matching link with aria-current="page". */
34
27
  activeHref?: string;
35
28
  /** Prefix matching highlights /docs when on /docs/installation (default). */
@@ -62,8 +55,7 @@ export function SiteFooter({
62
55
  ...props
63
56
  }: SiteFooterProps) {
64
57
  const Link = linkComponent ?? 'a';
65
- const destination = (href: string) =>
66
- linkHrefProp === 'to' ? { to: href } : { href };
58
+ const destination = (href: string) => linkDestination(href, linkHrefProp);
67
59
 
68
60
  return (
69
61
  <footer className={cn('border-t border-border bg-muted/30', className)} {...props}>
@@ -22,6 +22,32 @@ describe('SiteHeader', () => {
22
22
  expect(external).toHaveAttribute('rel', 'noopener noreferrer');
23
23
  });
24
24
 
25
+ it('renders the topBar utility strip above the nav', () => {
26
+ render(
27
+ <SiteHeader
28
+ brand={<span>Acme</span>}
29
+ items={items}
30
+ topBar={
31
+ <>
32
+ <span>English</span>
33
+ <a href="/submit">Submit an event</a>
34
+ </>
35
+ }
36
+ />
37
+ );
38
+ const strip = screen.getByText('English').parentElement?.parentElement;
39
+ expect(strip).toHaveClass('border-b');
40
+ expect(strip?.querySelector('a')).toHaveAttribute('href', '/submit');
41
+ // The strip sits before the nav landmark in DOM order.
42
+ const nav = screen.getByRole('navigation', { name: 'Main' });
43
+ expect(strip!.compareDocumentPosition(nav) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
44
+ });
45
+
46
+ it('omits the topBar strip when the prop is absent', () => {
47
+ const { container } = render(<SiteHeader brand={<span>Acme</span>} items={items} />);
48
+ expect(container.querySelector('header > div')).toBeNull();
49
+ });
50
+
25
51
  it('respects exact matching', () => {
26
52
  render(<SiteHeader brand={<span>Acme</span>} items={items} activeHref="/docs/components" match="exact" />);
27
53
  expect(screen.getByRole('link', { name: 'Docs' })).not.toHaveAttribute('aria-current');
@@ -2,6 +2,7 @@
2
2
 
3
3
  import * as React from 'react';
4
4
  import { cn } from '../../utils/cn';
5
+ import { linkDestination, type LinkLikeProps } from '../../utils/link';
5
6
  import { Drawer } from '../drawer/Drawer';
6
7
 
7
8
  /** A single destination in the header or inside a mega panel. */
@@ -34,9 +35,15 @@ export type SiteNavItem =
34
35
  columns: SiteNavColumn[];
35
36
  };
36
37
 
37
- export type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
38
+ export type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
38
39
  /** Brand slot - logo/lockup or wordmark. Wrapped in a link to "/". */
39
40
  brand: React.ReactNode;
41
+ /**
42
+ * Slim utility strip rendered above the brand row (locale switch, feed
43
+ * link, submit link). Content is placed in a container matching the nav
44
+ * metrics; lay out multiple items with justify-between or a flex row.
45
+ */
46
+ topBar?: React.ReactNode;
40
47
  /** Primary navigation items. */
41
48
  items: SiteNavItem[];
42
49
  /** Current route for active styling (aria-current="page"). */
@@ -50,14 +57,6 @@ export type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
50
57
  actions?: React.ReactNode;
51
58
  /** Actions rendered inside the mobile drawer; defaults to `actions`. */
52
59
  mobileActions?: React.ReactNode;
53
- /** Custom link element for routers (Next Link, react-router Link). */
54
- linkComponent?: React.ElementType;
55
- /**
56
- * Prop used to pass the destination to `linkComponent`.
57
- * `href` (default) covers anchors and Next.js Link; `to` covers
58
- * react-router and other routers that use a `to` prop.
59
- */
60
- linkHrefProp?: 'href' | 'to';
61
60
  /** Accessible name for the brand link (default "Home"). */
62
61
  brandLabel?: string;
63
62
  /** Accessible name for the desktop navigation landmark (default "Main"). */
@@ -122,6 +121,7 @@ function Caret() {
122
121
  */
123
122
  export function SiteHeader({
124
123
  brand,
124
+ topBar,
125
125
  items,
126
126
  activeHref,
127
127
  match = 'prefix',
@@ -150,8 +150,7 @@ export function SiteHeader({
150
150
  const menuId = `${generatedId}-menu`;
151
151
  const Link = linkComponent ?? 'a';
152
152
 
153
- const destination = (href: string) =>
154
- linkHrefProp === 'to' ? { to: href } : { href };
153
+ const destination = (href: string) => linkDestination(href, linkHrefProp);
155
154
 
156
155
  // Escape and an outside pointer close the desktop panel. Focus movement
157
156
  // inside the item is handled by onBlur so tabbing through stays open.
@@ -229,6 +228,13 @@ export function SiteHeader({
229
228
  )}
230
229
  {...props}
231
230
  >
231
+ {topBar && (
232
+ <div className="border-b border-border/60 text-muted-foreground">
233
+ <div className="mx-auto flex h-9 w-full max-w-7xl items-center justify-between gap-4 px-4 text-xs sm:px-6">
234
+ {topBar}
235
+ </div>
236
+ </div>
237
+ )}
232
238
  <nav
233
239
  aria-label={navLabel}
234
240
  className={cn(
@@ -19,6 +19,23 @@ describe('TombstoneCard', () => {
19
19
  expect(screen.getByRole('link', { name: 'View details' })).toHaveAttribute('href', '/deals/archived');
20
20
  });
21
21
 
22
+ it('passes the destination via linkHrefProp for routers that use "to"', () => {
23
+ const RouterLink = ({ to, children, ...rest }: { to: string; children: React.ReactNode }) => (
24
+ <a href={to} data-router-to={to} {...rest}>
25
+ {children}
26
+ </a>
27
+ );
28
+ render(
29
+ <TombstoneCard
30
+ title="Unavailable"
31
+ href="/deals/1"
32
+ linkComponent={RouterLink}
33
+ linkHrefProp="to"
34
+ />
35
+ );
36
+ expect(screen.getByRole('link', { name: 'View details' })).toHaveAttribute('data-router-to', '/deals/1');
37
+ });
38
+
22
39
  it('has no accessibility violations', async () => {
23
40
  const { container } = render(<TombstoneCard title="Unavailable" reason="No longer available." />);
24
41
  expect(await axe(container)).toHaveNoViolations();
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { cn } from '../../utils/cn';
3
+ import { linkDestination, type LinkLikeProps } from '../../utils/link';
3
4
  import { Badge } from '../badge/Badge';
4
5
  import { Card, CardContent } from '../card/Card';
5
6
 
6
7
  export type TombstoneStatus = 'archived' | 'unavailable' | 'closed';
7
8
 
8
- export type TombstoneCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
9
+ export type TombstoneCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & LinkLikeProps & {
9
10
  /** Listing, deal or document name. */
10
11
  title: string;
11
12
  /** Why the item is unavailable. */
@@ -18,8 +19,6 @@ export type TombstoneCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'
18
19
  href?: string;
19
20
  /** Link label. Default "View details". */
20
21
  actionLabel?: string;
21
- /** Custom link element for routers. */
22
- linkComponent?: React.ElementType;
23
22
  };
24
23
 
25
24
  const statusConfig: Record<TombstoneStatus, { label: string; variant: 'secondary' | 'warning' | 'outline' }> = {
@@ -42,6 +41,7 @@ export const TombstoneCard = React.forwardRef<HTMLElement, TombstoneCardProps>(f
42
41
  href,
43
42
  actionLabel = 'View details',
44
43
  linkComponent,
44
+ linkHrefProp = 'href',
45
45
  className,
46
46
  ...props
47
47
  },
@@ -65,7 +65,7 @@ export const TombstoneCard = React.forwardRef<HTMLElement, TombstoneCardProps>(f
65
65
  {reason && <p className="text-sm leading-relaxed text-muted-foreground">{reason}</p>}
66
66
  {href && (
67
67
  <Link
68
- href={href}
68
+ {...linkDestination(href, linkHrefProp)}
69
69
  className="mt-auto text-sm font-medium text-primary-ink underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
70
70
  >
71
71
  {actionLabel}
package/src/index.ts CHANGED
@@ -2,6 +2,8 @@ export * from './types/manifest';
2
2
  export * from './utils/cn';
3
3
  export * from './utils/gap';
4
4
  export * from './utils/presence';
5
+ export * from './utils/consent';
6
+ export type { LinkLikeProps } from './utils/link';
5
7
  export * from './components/app-shell';
6
8
  export * from './components/button';
7
9
  export * from './components/button-group';
@@ -36,8 +38,10 @@ export * from './components/link-tabs';
36
38
  export * from './components/theme-toggle';
37
39
  export * from './components/tooltip';
38
40
  export * from './components/calendar';
41
+ export * from './components/month-schedule';
39
42
  export * from './components/card';
40
43
  export * from './components/confirm-dialog';
44
+ export * from './components/consent-banner';
41
45
  export * from './components/table-of-contents';
42
46
  export * from './components/prose';
43
47
  export * from './components/site-footer';
@@ -80,6 +84,7 @@ export * from './components/feature-row';
80
84
  export * from './components/testimonial';
81
85
  export * from './components/process-steps';
82
86
  export * from './components/article-card';
87
+ export * from './components/media-card';
83
88
  export * from './components/newsletter';
84
89
  export * from './components/contact-strip';
85
90
  export * from './components/announcement-bar';
@@ -138,7 +138,7 @@
138
138
  ],
139
139
  "package": "@slipstream-ui/core",
140
140
  "importPath": "@slipstream-ui/core",
141
- "version": "0.11.9",
141
+ "version": "0.12.0",
142
142
  "sourceDir": "accordion",
143
143
  "exportName": "Accordion"
144
144
  }
@@ -91,7 +91,7 @@
91
91
  ],
92
92
  "package": "@slipstream-ui/core",
93
93
  "importPath": "@slipstream-ui/core",
94
- "version": "0.11.9",
94
+ "version": "0.12.0",
95
95
  "sourceDir": "alert",
96
96
  "exportName": "Alert"
97
97
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.12.0",
8
8
  "sourceDir": "announcement-bar",
9
9
  "exportName": "AnnouncementBar",
10
10
  "description": "Dismissible announcement bar with optional action, tone and sticky positioning.",
@@ -65,6 +65,17 @@
65
65
  "type": "React.ElementType",
66
66
  "required": false,
67
67
  "description": "Custom link element for routers."
68
+ },
69
+ {
70
+ "name": "linkHrefProp",
71
+ "type": "'href' | 'to'",
72
+ "required": false,
73
+ "defaultValue": "href",
74
+ "description": "Prop name used to pass the destination to linkComponent ('href' for anchors and most routers, 'to' for react-router).",
75
+ "enum": [
76
+ "href",
77
+ "to"
78
+ ]
68
79
  }
69
80
  ],
70
81
  "examples": [
@@ -62,6 +62,17 @@
62
62
  "defaultValue": "a",
63
63
  "description": "Router link component (react-router Link, Next Link) (Sidebar)."
64
64
  },
65
+ {
66
+ "name": "linkHrefProp",
67
+ "type": "'href' | 'to'",
68
+ "required": false,
69
+ "defaultValue": "href",
70
+ "description": "Prop name used to pass the destination to linkComponent ('href' for anchors and most routers, 'to' for react-router).",
71
+ "enum": [
72
+ "href",
73
+ "to"
74
+ ]
75
+ },
65
76
  {
66
77
  "name": "label",
67
78
  "type": "string",
@@ -214,7 +225,7 @@
214
225
  ],
215
226
  "package": "@slipstream-ui/core",
216
227
  "importPath": "@slipstream-ui/core",
217
- "version": "0.11.9",
228
+ "version": "0.12.0",
218
229
  "sourceDir": "app-shell",
219
230
  "exportName": "AppShell"
220
231
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.12.0",
8
8
  "sourceDir": "applied-filters",
9
9
  "exportName": "AppliedFilters",
10
10
  "description": "Applied-filter summary with a live count, removable chips and an edit action.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.12.0",
8
8
  "sourceDir": "article-card",
9
9
  "exportName": "ArticleCard",
10
10
  "description": "Linked article or resource card with media, eyebrow, title, summary and metadata.",
@@ -52,6 +52,17 @@
52
52
  "required": false,
53
53
  "description": "Custom link element for routers."
54
54
  },
55
+ {
56
+ "name": "linkHrefProp",
57
+ "type": "'href' | 'to'",
58
+ "required": false,
59
+ "defaultValue": "href",
60
+ "description": "Prop name used to pass the destination to linkComponent ('href' for anchors and most routers, 'to' for react-router).",
61
+ "enum": [
62
+ "href",
63
+ "to"
64
+ ]
65
+ },
55
66
  {
56
67
  "name": "variant",
57
68
  "type": "'default' | 'compact'",
@@ -124,7 +124,7 @@
124
124
  ],
125
125
  "package": "@slipstream-ui/core",
126
126
  "importPath": "@slipstream-ui/core",
127
- "version": "0.11.9",
127
+ "version": "0.12.0",
128
128
  "sourceDir": "auth-layout",
129
129
  "exportName": "AuthLayout"
130
130
  }
@@ -194,7 +194,7 @@
194
194
  ],
195
195
  "package": "@slipstream-ui/core",
196
196
  "importPath": "@slipstream-ui/core",
197
- "version": "0.11.9",
197
+ "version": "0.12.0",
198
198
  "sourceDir": "autocomplete",
199
199
  "exportName": "Autocomplete"
200
200
  }
@@ -152,7 +152,7 @@
152
152
  ],
153
153
  "package": "@slipstream-ui/core",
154
154
  "importPath": "@slipstream-ui/core",
155
- "version": "0.11.9",
155
+ "version": "0.12.0",
156
156
  "sourceDir": "avatar",
157
157
  "exportName": "Avatar"
158
158
  }
@@ -217,7 +217,7 @@
217
217
  ],
218
218
  "package": "@slipstream-ui/core",
219
219
  "importPath": "@slipstream-ui/core",
220
- "version": "0.11.9",
220
+ "version": "0.12.0",
221
221
  "sourceDir": "badge",
222
222
  "exportName": "Badge"
223
223
  }
@@ -101,7 +101,7 @@
101
101
  ],
102
102
  "package": "@slipstream-ui/core",
103
103
  "importPath": "@slipstream-ui/core",
104
- "version": "0.11.9",
104
+ "version": "0.12.0",
105
105
  "sourceDir": "block",
106
106
  "exportName": "Block"
107
107
  }
@@ -124,7 +124,7 @@
124
124
  ],
125
125
  "package": "@slipstream-ui/core",
126
126
  "importPath": "@slipstream-ui/core",
127
- "version": "0.11.9",
127
+ "version": "0.12.0",
128
128
  "sourceDir": "bottom-nav",
129
129
  "exportName": "BottomNav"
130
130
  }
@@ -129,7 +129,7 @@
129
129
  ],
130
130
  "package": "@slipstream-ui/core",
131
131
  "importPath": "@slipstream-ui/core",
132
- "version": "0.11.9",
132
+ "version": "0.12.0",
133
133
  "sourceDir": "breadcrumb",
134
134
  "exportName": "Breadcrumb"
135
135
  }
@@ -105,7 +105,7 @@
105
105
  ],
106
106
  "package": "@slipstream-ui/core",
107
107
  "importPath": "@slipstream-ui/core",
108
- "version": "0.11.9",
108
+ "version": "0.12.0",
109
109
  "sourceDir": "button-group",
110
110
  "exportName": "ButtonGroup"
111
111
  }
@@ -255,7 +255,7 @@
255
255
  ],
256
256
  "package": "@slipstream-ui/core",
257
257
  "importPath": "@slipstream-ui/core",
258
- "version": "0.11.9",
258
+ "version": "0.12.0",
259
259
  "sourceDir": "button",
260
260
  "exportName": "Button"
261
261
  }
@@ -169,7 +169,7 @@
169
169
  ],
170
170
  "package": "@slipstream-ui/core",
171
171
  "importPath": "@slipstream-ui/core",
172
- "version": "0.11.9",
172
+ "version": "0.12.0",
173
173
  "sourceDir": "calendar",
174
174
  "exportName": "Calendar"
175
175
  }
@@ -86,7 +86,7 @@
86
86
  ],
87
87
  "package": "@slipstream-ui/core",
88
88
  "importPath": "@slipstream-ui/core",
89
- "version": "0.11.9",
89
+ "version": "0.12.0",
90
90
  "sourceDir": "card",
91
91
  "exportName": "Card"
92
92
  }
@@ -160,7 +160,7 @@
160
160
  ],
161
161
  "package": "@slipstream-ui/core",
162
162
  "importPath": "@slipstream-ui/core",
163
- "version": "0.11.9",
163
+ "version": "0.12.0",
164
164
  "sourceDir": "checkbox",
165
165
  "exportName": "Checkbox"
166
166
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.12.0",
8
8
  "sourceDir": "comparison-table",
9
9
  "exportName": "ComparisonTable",
10
10
  "description": "Marketing comparison table with check/dash boolean cells, a highlighted column and responsive overflow.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.12.0",
8
8
  "sourceDir": "confirm-dialog",
9
9
  "exportName": "ConfirmDialog",
10
10
  "description": "Accessible confirmation dialog with async pending state, destructive variant and cancellable actions, built on Dialog.",
@@ -0,0 +1,130 @@
1
+ {
2
+ "id": "consent-banner",
3
+ "name": "ConsentBanner",
4
+ "tier": "molecule",
5
+ "package": "@slipstream-ui/core",
6
+ "importPath": "@slipstream-ui/core",
7
+ "version": "0.12.0",
8
+ "sourceDir": "consent-banner",
9
+ "exportName": "ConsentBanner",
10
+ "description": "Styled cookie/consent banner: fixed bottom bar with accept, decline and an optional manage-preferences action. Pair it with the headless useConsent hook so the decision persists per-purpose in localStorage.",
11
+ "designIntent": "Every consumer app reinvents the same cookie banner and consent store. ConsentBanner owns the presentation (fixed bar, safe-area padding, labelled region, AA buttons); useConsent owns the headless state (per-purpose preferences, expiry, cross-tab sync) so neither side is coupled to the other.",
12
+ "props": [
13
+ {
14
+ "name": "onAccept",
15
+ "type": "() => void",
16
+ "required": true,
17
+ "description": "Called when the visitor accepts; typically consent.setAll(true)."
18
+ },
19
+ {
20
+ "name": "onDecline",
21
+ "type": "() => void",
22
+ "required": true,
23
+ "description": "Called when the visitor declines; typically consent.setAll(false)."
24
+ },
25
+ {
26
+ "name": "onManage",
27
+ "type": "() => void",
28
+ "required": false,
29
+ "description": "Optional manage-preferences action for granular consent dialogs."
30
+ },
31
+ {
32
+ "name": "title",
33
+ "type": "ReactNode",
34
+ "required": false,
35
+ "description": "Banner heading; omit for a single-line notice."
36
+ },
37
+ {
38
+ "name": "children",
39
+ "type": "ReactNode",
40
+ "required": false,
41
+ "description": "Body copy; put privacy-policy links here."
42
+ },
43
+ {
44
+ "name": "label",
45
+ "type": "string",
46
+ "required": false,
47
+ "defaultValue": "'Cookie consent'",
48
+ "description": "Accessible name for the banner region."
49
+ },
50
+ {
51
+ "name": "acceptLabel",
52
+ "type": "ReactNode",
53
+ "required": false,
54
+ "defaultValue": "'Accept'",
55
+ "description": "Accept button label."
56
+ },
57
+ {
58
+ "name": "declineLabel",
59
+ "type": "ReactNode",
60
+ "required": false,
61
+ "defaultValue": "'Decline'",
62
+ "description": "Decline button label."
63
+ },
64
+ {
65
+ "name": "manageLabel",
66
+ "type": "ReactNode",
67
+ "required": false,
68
+ "defaultValue": "'Manage'",
69
+ "description": "Manage-preferences button label."
70
+ }
71
+ ],
72
+ "examples": [
73
+ {
74
+ "title": "Accept/decline with useConsent",
75
+ "code": "const consent = useConsent({ purposes: ['analytics'] });\n\n{!consent.decided && (\n <ConsentBanner\n title=\"We use cookies\"\n onAccept={() => consent.setAll(true)}\n onDecline={() => consent.setAll(false)}\n onManage={() => openPreferences()}\n >\n We use cookies for analytics.{' '}\n <a href=\"/privacy\">Privacy policy</a>\n </ConsentBanner>\n)}",
76
+ "description": "The canonical wiring: render while undecided, persist through the hook."
77
+ },
78
+ {
79
+ "title": "Gate analytics on a purpose",
80
+ "code": "const consent = useConsent({ purposes: ['analytics'] });\n\nuseEffect(() => {\n if (consent.preferences?.analytics) loadAnalytics();\n}, [consent.preferences]);",
81
+ "description": "Read the same hook elsewhere to gate trackers; instances stay in sync."
82
+ }
83
+ ],
84
+ "antiPatterns": [
85
+ {
86
+ "title": "Don't render before the decision is known",
87
+ "explanation": "Render the banner only while consent.decided is false, and read preferences (not decided) to gate trackers — a denied purpose and an undecided visitor are different states.",
88
+ "example": "// Avoid\n{consent.decided && <Tracker />}\n// Prefer\n{consent.preferences?.analytics && <Tracker />}"
89
+ },
90
+ {
91
+ "title": "Don't block the page",
92
+ "explanation": "ConsentBanner is non-modal by design; a modal consent wall hurts conversion and accessibility. Use Dialog only if your policy genuinely requires it.",
93
+ "example": "// Avoid\n<Dialog open={!consent.decided}>...</Dialog>"
94
+ }
95
+ ],
96
+ "accessibility": [
97
+ {
98
+ "feature": "Named region",
99
+ "implementation": "Renders role=region with aria-label (default 'Cookie consent')",
100
+ "userRequirements": "Localize label, acceptLabel, declineLabel and manageLabel for non-English audiences"
101
+ },
102
+ {
103
+ "feature": "Keyboard and focus",
104
+ "implementation": "All actions are native Buttons with visible focus rings; tab order is manage → decline → accept",
105
+ "userRequirements": "Keep accept and decline equally prominent — no dark patterns"
106
+ },
107
+ {
108
+ "feature": "Safe-area aware",
109
+ "implementation": "Bottom padding includes env(safe-area-inset-bottom) for notched devices",
110
+ "userRequirements": "None"
111
+ }
112
+ ],
113
+ "compositionRules": [
114
+ {
115
+ "component": "useConsent",
116
+ "relationship": "Headless hook exported from @slipstream-ui/core; wire onAccept/onDecline/onManage to setAll/set/clear",
117
+ "example": "const consent = useConsent({ purposes: ['analytics', 'marketing'] });"
118
+ },
119
+ {
120
+ "component": "SiteFooter",
121
+ "relationship": "Re-open the banner or preferences dialog from a footer 'Cookie settings' link via consent.clear()",
122
+ "example": "<SiteFooter contact={<button onClick={consent.clear}>Cookie settings</button>} />"
123
+ }
124
+ ],
125
+ "relatedComponents": [
126
+ "Alert",
127
+ "Dialog",
128
+ "Button"
129
+ ]
130
+ }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.12.0",
8
8
  "sourceDir": "contact-strip",
9
9
  "exportName": "ContactStrip",
10
10
  "description": "Compact labelled contact rows with optional icons and links.",
@@ -39,6 +39,17 @@
39
39
  "type": "React.ElementType",
40
40
  "required": false,
41
41
  "description": "Custom link element for routers."
42
+ },
43
+ {
44
+ "name": "linkHrefProp",
45
+ "type": "'href' | 'to'",
46
+ "required": false,
47
+ "defaultValue": "href",
48
+ "description": "Prop name used to pass the destination to linkComponent ('href' for anchors and most routers, 'to' for react-router).",
49
+ "enum": [
50
+ "href",
51
+ "to"
52
+ ]
42
53
  }
43
54
  ],
44
55
  "examples": [