@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
@@ -0,0 +1,113 @@
1
+ import * as React from 'react';
2
+ import { cn } from '../../utils/cn';
3
+ import { Badge, type BadgeProps } from '../badge/Badge';
4
+ import { CoverImage, type CoverImageProps } from '../cover-image/CoverImage';
5
+ import { linkDestination, type LinkLikeProps } from '../../utils/link';
6
+
7
+ export type MediaCardChip = {
8
+ label: string;
9
+ /** Badge variant; quiet outline tones fit status metadata best. */
10
+ variant?: BadgeProps['variant'];
11
+ /** Leading status dot. */
12
+ dot?: boolean;
13
+ };
14
+
15
+ export type MediaCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & LinkLikeProps & {
16
+ /** Card title. */
17
+ title: string;
18
+ /** Supporting copy under the title. */
19
+ description?: React.ReactNode;
20
+ /** Destination URL; the whole card becomes one link when set. */
21
+ href?: string;
22
+ /** Cover art rendered through CoverImage (seeded gradient fallback included). */
23
+ cover?: Omit<CoverImageProps, 'className'>;
24
+ /** Metadata line under the description (date, location, deadline). */
25
+ meta?: React.ReactNode;
26
+ /** Status/category chips rendered as Badges. */
27
+ chips?: MediaCardChip[];
28
+ /** Bottom slot for a details affordance or secondary text. Non-interactive when the card is a link. */
29
+ footer?: React.ReactNode;
30
+ /** 'vertical' stacks cover over content; 'row' puts a fixed-width cover beside it. */
31
+ layout?: 'vertical' | 'row';
32
+ };
33
+
34
+ /**
35
+ * Media card for event, article and listing grids: CoverImage on top (or
36
+ * beside in `layout="row"`), title, description, metadata line, status chips
37
+ * and an optional footer. With `href` the entire card is a single link —
38
+ * one target, one hover state, one focus ring — so keep `footer` free of
39
+ * nested interactive elements.
40
+ */
41
+ export const MediaCard = React.forwardRef<HTMLElement, MediaCardProps>(function MediaCard(
42
+ {
43
+ title,
44
+ description,
45
+ href,
46
+ cover,
47
+ meta,
48
+ chips,
49
+ footer,
50
+ layout = 'vertical',
51
+ linkComponent,
52
+ linkHrefProp = 'href',
53
+ className,
54
+ ...props
55
+ },
56
+ ref
57
+ ) {
58
+ const Link = linkComponent ?? 'a';
59
+ const destination = href ? linkDestination(href, linkHrefProp) : undefined;
60
+ const row = layout === 'row';
61
+
62
+ const body = (
63
+ <>
64
+ {cover && (
65
+ <CoverImage
66
+ {...cover}
67
+ className={cn(
68
+ row ? 'w-36 shrink-0 sm:w-44' : 'w-full',
69
+ !row && 'rounded-none border-b border-border'
70
+ )}
71
+ />
72
+ )}
73
+ <div className={cn('flex min-w-0 flex-1 flex-col gap-2', row ? 'p-4' : 'p-5')}>
74
+ {chips && chips.length > 0 && (
75
+ <div className="flex flex-wrap gap-1.5">
76
+ {chips.map((chip) => (
77
+ <Badge key={chip.label} variant={chip.variant ?? 'outline'} size="sm" dot={chip.dot}>
78
+ {chip.label}
79
+ </Badge>
80
+ ))}
81
+ </div>
82
+ )}
83
+ <h3 className="font-semibold tracking-tight transition-colors group-hover:text-primary-ink">{title}</h3>
84
+ {description && (
85
+ <div className="line-clamp-3 text-sm leading-relaxed text-muted-foreground">{description}</div>
86
+ )}
87
+ {meta && <div className="text-xs text-muted-foreground">{meta}</div>}
88
+ {footer && <div className="mt-auto pt-2 text-xs text-muted-foreground">{footer}</div>}
89
+ </div>
90
+ </>
91
+ );
92
+
93
+ const cardClass = cn(
94
+ 'group flex h-full overflow-hidden rounded-xl border border-border bg-card shadow-sm transition-colors hover:border-primary/40',
95
+ 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background',
96
+ row ? 'flex-row' : 'flex-col',
97
+ className
98
+ );
99
+
100
+ return (
101
+ <article ref={ref as never} className="h-full" {...props}>
102
+ {href && destination ? (
103
+ <Link {...destination} className={cardClass}>
104
+ {body}
105
+ </Link>
106
+ ) : (
107
+ <div className={cardClass}>{body}</div>
108
+ )}
109
+ </article>
110
+ );
111
+ });
112
+
113
+ MediaCard.displayName = 'MediaCard';
@@ -0,0 +1 @@
1
+ export * from './MediaCard';
@@ -0,0 +1,137 @@
1
+ import { render, screen } from '@testing-library/react';
2
+ import userEvent from '@testing-library/user-event';
3
+ import { axe } from 'jest-axe';
4
+ import { describe, expect, it, vi } from 'vitest';
5
+ import { MonthSchedule } from './MonthSchedule';
6
+
7
+ type Event = { id: string; date: string; title: string; type?: string; href?: string };
8
+
9
+ const events: Event[] = [
10
+ { id: '1', date: '2026-03-14', title: 'Fall Classic', type: 'competition', href: '/events/fall-classic' },
11
+ { id: '2', date: '2026-03-14', title: 'Open Floor', type: 'social' },
12
+ { id: '3', date: '2026-03-21', title: 'Workshop', type: 'class' },
13
+ { id: '4', date: '2026-04-15', title: 'Next Month', type: 'social' },
14
+ ];
15
+
16
+ const legend = [
17
+ { type: 'competition', label: 'Competition' },
18
+ { type: 'social', label: 'Social' },
19
+ { type: 'class', label: 'Class' },
20
+ ];
21
+
22
+ const base = {
23
+ events,
24
+ getDate: (e: Event) => e.date,
25
+ getLabel: (e: Event) => e.title,
26
+ getType: (e: Event) => e.type,
27
+ getHref: (e: Event) => e.href,
28
+ };
29
+
30
+ describe('MonthSchedule', () => {
31
+ it('renders the month label and events inside their days', () => {
32
+ render(<MonthSchedule {...base} month="2026-03" today="2026-03-01" />);
33
+ expect(screen.getByText('March 2026')).toBeInTheDocument();
34
+ // Event chips appear in the grid; count both grid + agenda copies? agenda is
35
+ // hidden via CSS but still in the DOM, so use getAllByText.
36
+ expect(screen.getAllByText('Fall Classic').length).toBeGreaterThan(0);
37
+ expect(screen.getAllByText('Open Floor').length).toBeGreaterThan(0);
38
+ expect(screen.getAllByText('Workshop').length).toBeGreaterThan(0);
39
+ // April event must not render for March.
40
+ expect(screen.queryByText('Next Month')).not.toBeInTheDocument();
41
+ });
42
+
43
+ it('marks today with aria-current', () => {
44
+ const { container } = render(
45
+ <MonthSchedule {...base} month="2026-03" today="2026-03-14" />
46
+ );
47
+ expect(container.querySelector('[aria-current="date"]')).toBeInTheDocument();
48
+ });
49
+
50
+ it('collapses overflow beyond maxPerDay', () => {
51
+ const many: Event[] = Array.from({ length: 5 }, (_, i) => ({
52
+ id: `m${i}`,
53
+ date: '2026-03-10',
54
+ title: `Event ${i}`,
55
+ }));
56
+ render(
57
+ <MonthSchedule
58
+ events={many}
59
+ getDate={(e) => e.date}
60
+ getLabel={(e) => e.title}
61
+ month="2026-03"
62
+ today="2026-03-01"
63
+ maxPerDay={2}
64
+ />
65
+ );
66
+ expect(screen.getAllByText('+3 more').length).toBeGreaterThan(0);
67
+ });
68
+
69
+ it('renders the legend with type labels', () => {
70
+ render(<MonthSchedule {...base} month="2026-03" today="2026-03-01" legend={legend} />);
71
+ expect(screen.getByText('Competition')).toBeInTheDocument();
72
+ expect(screen.getByText('Social')).toBeInTheDocument();
73
+ expect(screen.getByText('Class')).toBeInTheDocument();
74
+ });
75
+
76
+ it('links events through linkComponent and linkHrefProp', () => {
77
+ function RouterLink({ to, children, ...rest }: { to: string; children: React.ReactNode }) {
78
+ return <a href={to} data-router-link={to} {...rest}>{children}</a>;
79
+ }
80
+ render(
81
+ <MonthSchedule
82
+ {...base}
83
+ month="2026-03"
84
+ today="2026-03-01"
85
+ linkComponent={RouterLink}
86
+ linkHrefProp="to"
87
+ />
88
+ );
89
+ const links = screen.getAllByRole('link', { name: 'Fall Classic' });
90
+ expect(links.length).toBeGreaterThan(0);
91
+ expect(links[0]).toHaveAttribute('data-router-link', '/events/fall-classic');
92
+ });
93
+
94
+ it('pages months and notifies onMonthChange', async () => {
95
+ const user = userEvent.setup();
96
+ const onMonthChange = vi.fn();
97
+ render(
98
+ <MonthSchedule
99
+ {...base}
100
+ month="2026-03"
101
+ today="2026-03-01"
102
+ onMonthChange={onMonthChange}
103
+ />
104
+ );
105
+ await user.click(screen.getByRole('button', { name: 'Next month' }));
106
+ expect(onMonthChange).toHaveBeenCalledWith('2026-04');
107
+ // Controlled: displayed month stays March until the parent updates it.
108
+ expect(screen.getByText('March 2026')).toBeInTheDocument();
109
+ });
110
+
111
+ it('pages uncontrolled via defaultMonth', async () => {
112
+ const user = userEvent.setup();
113
+ render(<MonthSchedule {...base} defaultMonth="2026-03" today="2026-03-01" />);
114
+ await user.click(screen.getByRole('button', { name: 'Next month' }));
115
+ expect(await screen.findByText('April 2026')).toBeInTheDocument();
116
+ });
117
+
118
+ it('shows the agenda empty state when a month has no events', () => {
119
+ render(
120
+ <MonthSchedule
121
+ events={[]}
122
+ getDate={(e: Event) => e.date}
123
+ getLabel={(e: Event) => e.title}
124
+ month="2026-05"
125
+ today="2026-03-01"
126
+ />
127
+ );
128
+ expect(screen.getByText('No events this month.')).toBeInTheDocument();
129
+ });
130
+
131
+ it('has no axe violations', async () => {
132
+ const { container } = render(
133
+ <MonthSchedule {...base} month="2026-03" today="2026-03-01" legend={legend} />
134
+ );
135
+ expect(await axe(container)).toHaveNoViolations();
136
+ });
137
+ });
@@ -0,0 +1,329 @@
1
+ 'use client';
2
+
3
+ import * as React from 'react';
4
+ import { cn } from '../../utils/cn';
5
+ import {
6
+ addMonths,
7
+ calendarWeeks,
8
+ formatDateLabel,
9
+ monthLabel,
10
+ parseDateKey,
11
+ todayKey,
12
+ weekdayLabels,
13
+ } from '../../utils/date';
14
+ import { Badge } from '../badge/Badge';
15
+ import { Button } from '../button';
16
+ import { linkDestination, type LinkLikeProps } from '../../utils/link';
17
+
18
+ export type MonthScheduleLegendItem = {
19
+ /** Type key returned by getType. */
20
+ type: string;
21
+ /** Human-readable label shown in the legend. */
22
+ label: string;
23
+ };
24
+
25
+ export type MonthScheduleProps<T> = LinkLikeProps & {
26
+ /** Events to place inside days; each is dated via getDate. */
27
+ events: T[];
28
+ /** ISO date key (YYYY-MM-DD) for an event. */
29
+ getDate: (event: T) => string;
30
+ /** Short label shown on the day chip and in the agenda. */
31
+ getLabel: (event: T) => string;
32
+ /** Optional type key used for chip color and the legend. */
33
+ getType?: (event: T) => string | undefined;
34
+ /** Optional destination per event. */
35
+ getHref?: (event: T) => string | undefined;
36
+ /** Controlled month as YYYY-MM. Falls back to defaultMonth, then today. */
37
+ month?: string;
38
+ /** Uncontrolled initial month (YYYY-MM). */
39
+ defaultMonth?: string;
40
+ /** Called with the new YYYY-MM when paging. */
41
+ onMonthChange?: (month: string) => void;
42
+ /** Override "today" for deterministic server rendering and tests. */
43
+ today?: string;
44
+ /** BCP-47 locale for month, weekday and agenda labels. */
45
+ locale?: string;
46
+ /** 0 starts the week on Sunday, 1 on Monday. */
47
+ weekStartsOn?: 0 | 1;
48
+ /** Maximum event chips per day before collapsing into "+N more". */
49
+ maxPerDay?: number;
50
+ /** Type key → label/color entries rendered as a legend under the grid. */
51
+ legend?: MonthScheduleLegendItem[];
52
+ /**
53
+ * Below this breakpoint an agenda list replaces the day grid:
54
+ * 'sm' swaps under 640px, 'md' under 768px.
55
+ */
56
+ agendaBreakpoint?: 'sm' | 'md';
57
+ 'aria-label'?: string;
58
+ className?: string;
59
+ };
60
+
61
+ // Deterministic tone per type so chips and legend agree without a color map
62
+ // in consumer code. Order chosen for adjacent contrast.
63
+ const TYPE_TONES = [
64
+ 'outline-info',
65
+ 'outline-success',
66
+ 'outline-warning',
67
+ 'outline-danger',
68
+ 'outline',
69
+ ] as const;
70
+
71
+ type Tone = (typeof TYPE_TONES)[number];
72
+
73
+ function typeTone(type: string | undefined, legend: MonthScheduleLegendItem[] | undefined): Tone {
74
+ if (!type) return 'outline';
75
+ const index = legend?.findIndex((item) => item.type === type) ?? -1;
76
+ if (index >= 0) return TYPE_TONES[index % TYPE_TONES.length];
77
+ // Stable hash fallback for types missing from the legend.
78
+ let hash = 0;
79
+ for (let i = 0; i < type.length; i += 1) hash = (hash * 31 + type.charCodeAt(i)) >>> 0;
80
+ return TYPE_TONES[hash % TYPE_TONES.length];
81
+ }
82
+
83
+ function monthOf(key: string): { year: number; month: number } {
84
+ const parts = parseDateKey(`${key}-01`);
85
+ return { year: parts?.year ?? 1970, month: parts?.month ?? 0 };
86
+ }
87
+
88
+ function shiftMonth(monthKey: string, delta: number): string {
89
+ const { year, month } = monthOf(monthKey);
90
+ const shifted = addMonths(`${year}-${String(month + 1).padStart(2, '0')}-01`, delta);
91
+ return shifted.slice(0, 7);
92
+ }
93
+
94
+ /**
95
+ * Month schedule: a month grid with dated events rendered inside each day,
96
+ * plus a legend and a small-screen agenda. Built on the same date utilities
97
+ * as Calendar; `today` stays explicit so server-rendered pages never read the
98
+ * server clock.
99
+ */
100
+ export function MonthSchedule<T>({
101
+ events,
102
+ getDate,
103
+ getLabel,
104
+ getType,
105
+ getHref,
106
+ month,
107
+ defaultMonth,
108
+ onMonthChange,
109
+ today,
110
+ locale = 'en-US',
111
+ weekStartsOn = 0,
112
+ maxPerDay = 3,
113
+ legend,
114
+ agendaBreakpoint = 'md',
115
+ linkComponent,
116
+ linkHrefProp = 'href',
117
+ 'aria-label': ariaLabel,
118
+ className,
119
+ }: MonthScheduleProps<T>) {
120
+ const resolvedToday = today ?? todayKey();
121
+ const Link = linkComponent ?? 'a';
122
+ const [internalMonth, setInternalMonth] = React.useState(
123
+ () => month ?? defaultMonth ?? resolvedToday.slice(0, 7)
124
+ );
125
+ const activeMonth = month ?? internalMonth;
126
+ const { year, month: monthIndex } = monthOf(activeMonth);
127
+
128
+ const byDay = React.useMemo(() => {
129
+ const map = new Map<string, T[]>();
130
+ for (const event of events) {
131
+ const key = getDate(event);
132
+ const list = map.get(key);
133
+ if (list) list.push(event);
134
+ else map.set(key, [event]);
135
+ }
136
+ for (const list of map.values()) {
137
+ list.sort((a, b) => getLabel(a).localeCompare(getLabel(b)));
138
+ }
139
+ return map;
140
+ }, [events, getDate, getLabel]);
141
+
142
+ const weeks = React.useMemo(
143
+ () => calendarWeeks(year, monthIndex, weekStartsOn),
144
+ [year, monthIndex, weekStartsOn]
145
+ );
146
+ const weekdays = React.useMemo(
147
+ () => weekdayLabels(locale, weekStartsOn),
148
+ [locale, weekStartsOn]
149
+ );
150
+ const monthName = monthLabel(year, monthIndex, locale);
151
+ const agendaDays = React.useMemo(
152
+ () =>
153
+ [...byDay.keys()]
154
+ .filter((key) => key.startsWith(activeMonth))
155
+ .sort()
156
+ .map((key) => ({ key, items: byDay.get(key) ?? [] })),
157
+ [byDay, activeMonth]
158
+ );
159
+
160
+ const page = (delta: number) => {
161
+ const next = shiftMonth(activeMonth, delta);
162
+ if (month === undefined) setInternalMonth(next);
163
+ onMonthChange?.(next);
164
+ };
165
+
166
+ const renderEvent = (event: T, key: string) => {
167
+ const label = getLabel(event);
168
+ const type = getType?.(event);
169
+ const tone = typeTone(type, legend);
170
+ const href = getHref?.(event);
171
+ const chip = (
172
+ <Badge variant={tone} size="sm" className="max-w-full truncate">
173
+ {label}
174
+ </Badge>
175
+ );
176
+ if (!href) return <span key={key}>{chip}</span>;
177
+ const destination = linkDestination(href, linkHrefProp);
178
+ return (
179
+ <Link
180
+ key={key}
181
+ {...destination}
182
+ className="block max-w-full rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
183
+ >
184
+ {chip}
185
+ </Link>
186
+ );
187
+ };
188
+
189
+ const gridHidden = agendaBreakpoint === 'sm' ? 'hidden sm:block' : 'hidden md:block';
190
+ const agendaHidden = agendaBreakpoint === 'sm' ? 'sm:hidden' : 'md:hidden';
191
+
192
+ return (
193
+ <div className={cn('w-full select-none', className)}>
194
+ <div className="mb-2 flex items-center justify-between gap-2">
195
+ <Button
196
+ type="button"
197
+ variant="ghost"
198
+ size="icon"
199
+ aria-label="Previous month"
200
+ onClick={() => page(-1)}
201
+ >
202
+ ‹
203
+ </Button>
204
+ <div aria-live="polite" className="text-sm font-semibold text-foreground">
205
+ {monthName}
206
+ </div>
207
+ <Button
208
+ type="button"
209
+ variant="ghost"
210
+ size="icon"
211
+ aria-label="Next month"
212
+ onClick={() => page(1)}
213
+ >
214
+ ›
215
+ </Button>
216
+ </div>
217
+
218
+ <div
219
+ role="grid"
220
+ aria-label={ariaLabel ?? monthName}
221
+ className={cn('flex flex-col gap-1', gridHidden)}
222
+ >
223
+ <div role="row" className="grid grid-cols-7 gap-1 text-center text-xs text-muted-foreground">
224
+ {weekdays.map((weekday) => (
225
+ <span key={weekday} role="columnheader" aria-label={weekday} className="py-1">
226
+ {weekday}
227
+ </span>
228
+ ))}
229
+ </div>
230
+
231
+ {weeks.map((week) => (
232
+ <div key={week[0]?.key} role="row" className="grid grid-cols-7 gap-1">
233
+ {week.map((day) => {
234
+ const dayEvents = byDay.get(day.key) ?? [];
235
+ const visible = dayEvents.slice(0, maxPerDay);
236
+ const overflow = dayEvents.length - visible.length;
237
+ const isToday = day.key === resolvedToday;
238
+
239
+ return (
240
+ <div
241
+ key={day.key}
242
+ role="gridcell"
243
+ aria-current={isToday ? 'date' : undefined}
244
+ className={cn(
245
+ 'flex min-h-16 flex-col gap-0.5 rounded-md border border-transparent p-1',
246
+ !day.inMonth && 'opacity-50',
247
+ isToday && 'border-primary/40 bg-primary/5'
248
+ )}
249
+ >
250
+ <span
251
+ className={cn(
252
+ 'self-start px-1 text-xs tabular-nums',
253
+ isToday ? 'font-semibold text-primary-ink' : 'text-muted-foreground'
254
+ )}
255
+ >
256
+ {day.day}
257
+ </span>
258
+ {visible.map((event, index) =>
259
+ renderEvent(event, `${day.key}-${index}-${getLabel(event)}`)
260
+ )}
261
+ {overflow > 0 && (
262
+ <span className="px-1 text-[11px] text-muted-foreground">
263
+ +{overflow} more
264
+ </span>
265
+ )}
266
+ </div>
267
+ );
268
+ })}
269
+ </div>
270
+ ))}
271
+ </div>
272
+
273
+ <div className={cn('flex flex-col gap-3', agendaHidden)}>
274
+ {agendaDays.length === 0 ? (
275
+ <p className="py-6 text-center text-sm text-muted-foreground">No events this month.</p>
276
+ ) : (
277
+ agendaDays.map(({ key, items }) => (
278
+ <section key={key} aria-label={formatDateLabel(key, locale)}>
279
+ <h3 className="mb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground">
280
+ {formatDateLabel(key, locale)}
281
+ </h3>
282
+ <ul className="flex flex-col gap-1">
283
+ {items.map((event, index) => {
284
+ const label = getLabel(event);
285
+ const type = getType?.(event);
286
+ const tone = typeTone(type, legend);
287
+ const href = getHref?.(event);
288
+ const row = (
289
+ <Badge variant={tone} size="sm" className="max-w-full truncate">
290
+ {label}
291
+ </Badge>
292
+ );
293
+ return (
294
+ <li key={`${key}-${index}-${label}`}>
295
+ {href ? (
296
+ <Link
297
+ {...linkDestination(href, linkHrefProp)}
298
+ className="block max-w-full rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
299
+ >
300
+ {row}
301
+ </Link>
302
+ ) : (
303
+ row
304
+ )}
305
+ </li>
306
+ );
307
+ })}
308
+ </ul>
309
+ </section>
310
+ ))
311
+ )}
312
+ </div>
313
+
314
+ {legend && legend.length > 0 && (
315
+ <ul className="mt-3 flex flex-wrap gap-x-4 gap-y-1" aria-label="Event types">
316
+ {legend.map((item) => (
317
+ <li key={item.type} className="flex items-center gap-1.5 text-xs text-muted-foreground">
318
+ <Badge variant={typeTone(item.type, legend)} size="sm">
319
+ {item.label}
320
+ </Badge>
321
+ </li>
322
+ ))}
323
+ </ul>
324
+ )}
325
+ </div>
326
+ );
327
+ }
328
+
329
+ MonthSchedule.displayName = 'MonthSchedule';
@@ -0,0 +1 @@
1
+ export * from './MonthSchedule';
@@ -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
 
6
7
  export type PaginationIcons = {
7
8
  /** Glyph/slot for the jump-to-first button. */
@@ -14,7 +15,7 @@ export type PaginationIcons = {
14
15
  last?: React.ReactNode;
15
16
  };
16
17
 
17
- export type PaginationProps = React.HTMLAttributes<HTMLElement> & {
18
+ export type PaginationProps = React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
18
19
  /** Current page number (1-based). Alias: currentPage. */
19
20
  page?: number;
20
21
  /** Total number of pages. Alias: totalPages (or derived from total/pageSize). */
@@ -40,10 +41,6 @@ export type PaginationProps = React.HTMLAttributes<HTMLElement> & {
40
41
  * the React Server Component boundary.
41
42
  */
42
43
  pageHrefs?: Record<number, string>;
43
- /** Custom link element for routers (Next Link, react-router Link). */
44
- linkComponent?: React.ElementType;
45
- /** Prop used to pass the destination to `linkComponent`. */
46
- linkHrefProp?: 'href' | 'to';
47
44
  /** How many page buttons to show around the current page (default 1). */
48
45
  siblings?: number;
49
46
  /** Show the jump-to-first/last buttons (default false). */
@@ -136,7 +133,7 @@ const Pagination = React.forwardRef<HTMLElement, PaginationProps>(
136
133
 
137
134
  const linkMode = pageHrefs !== undefined;
138
135
  const LinkEl = linkComponent ?? 'a';
139
- const destination = (href: string) => (linkHrefProp === 'to' ? { to: href } : { href });
136
+ const destination = (href: string) => linkDestination(href, linkHrefProp);
140
137
  const hrefFor = (target: number) => pageHrefs?.[target];
141
138
 
142
139
  /** One step control (first/prev/next/last) in either mode. */
@@ -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
 
6
7
  export type SegmentedOption = {
7
8
  value: string;
@@ -24,7 +25,7 @@ export type SegmentedOption = {
24
25
  href?: string;
25
26
  };
26
27
 
27
- export type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
28
+ export type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & LinkLikeProps & {
28
29
  /** Options rendered as segments. */
29
30
  options: SegmentedOption[];
30
31
  /** Controlled selected value. Use string[] when multiple. */
@@ -44,10 +45,6 @@ export type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, '
44
45
  * responsive pattern for "full-width on mobile, compact on desktop".
45
46
  */
46
47
  fullWidth?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
47
- /** Custom link element for routers (Next Link, react-router Link). */
48
- linkComponent?: React.ElementType;
49
- /** Prop used to pass the destination to `linkComponent`. */
50
- linkHrefProp?: 'href' | 'to';
51
48
  };
52
49
 
53
50
  const sizeClasses = {
@@ -118,7 +115,7 @@ export const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedContro
118
115
 
119
116
  const linkMode = options.some((option) => option.href !== undefined);
120
117
  const LinkEl = linkComponent ?? 'a';
121
- const destination = (href: string) => (linkHrefProp === 'to' ? { to: href } : { href });
118
+ const destination = (href: string) => linkDestination(href, linkHrefProp);
122
119
 
123
120
  const refs = React.useRef<Array<HTMLButtonElement | null>>([]);
124
121