@slipstream-ui/core 0.6.1 → 0.8.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 (386) hide show
  1. package/dist/index.d.mts +470 -30
  2. package/dist/index.d.ts +470 -30
  3. package/dist/index.js +1455 -750
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1442 -744
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/manifests/accordion.manifest.json +7 -1
  8. package/dist/manifests/alert.manifest.json +1 -1
  9. package/dist/manifests/announcement-bar.manifest.json +1 -1
  10. package/dist/manifests/app-shell.manifest.json +1 -1
  11. package/dist/manifests/applied-filters.manifest.json +1 -1
  12. package/dist/manifests/article-card.manifest.json +1 -1
  13. package/dist/manifests/auth-layout.manifest.json +19 -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 +13 -1
  17. package/dist/manifests/block.manifest.json +1 -1
  18. package/dist/manifests/bottom-nav.manifest.json +130 -0
  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/card.manifest.json +1 -1
  23. package/dist/manifests/checkbox.manifest.json +1 -1
  24. package/dist/manifests/comparison-table.manifest.json +1 -1
  25. package/dist/manifests/confirm-dialog.manifest.json +1 -1
  26. package/dist/manifests/contact-strip.manifest.json +1 -1
  27. package/dist/manifests/container.manifest.json +1 -1
  28. package/dist/manifests/cta-section.manifest.json +1 -1
  29. package/dist/manifests/data-table.manifest.json +1 -1
  30. package/dist/manifests/date-picker.manifest.json +1 -1
  31. package/dist/manifests/date-range-picker.manifest.json +1 -1
  32. package/dist/manifests/deal-card.manifest.json +158 -0
  33. package/dist/manifests/dialog.manifest.json +1 -1
  34. package/dist/manifests/document-card.manifest.json +108 -0
  35. package/dist/manifests/drawer.manifest.json +48 -2
  36. package/dist/manifests/empty-state.manifest.json +1 -1
  37. package/dist/manifests/entity-card.manifest.json +114 -0
  38. package/dist/manifests/feature-grid.manifest.json +1 -1
  39. package/dist/manifests/feature-row.manifest.json +1 -1
  40. package/dist/manifests/fieldset.manifest.json +1 -1
  41. package/dist/manifests/file-upload.manifest.json +1 -1
  42. package/dist/manifests/filter-bar.manifest.json +1 -1
  43. package/dist/manifests/filter-chips.manifest.json +1 -1
  44. package/dist/manifests/filter-panel.manifest.json +1 -1
  45. package/dist/manifests/flex.manifest.json +1 -1
  46. package/dist/manifests/form-field.manifest.json +1 -1
  47. package/dist/manifests/form-layout.manifest.json +1 -1
  48. package/dist/manifests/form.manifest.json +1 -1
  49. package/dist/manifests/grid.manifest.json +1 -1
  50. package/dist/manifests/heading.manifest.json +1 -1
  51. package/dist/manifests/hero.manifest.json +40 -8
  52. package/dist/manifests/input-group.manifest.json +1 -1
  53. package/dist/manifests/input.manifest.json +1 -1
  54. package/dist/manifests/label.manifest.json +1 -1
  55. package/dist/manifests/link-tabs.manifest.json +1 -1
  56. package/dist/manifests/link.manifest.json +1 -1
  57. package/dist/manifests/list.manifest.json +1 -1
  58. package/dist/manifests/load-more.manifest.json +88 -0
  59. package/dist/manifests/logo-cloud.manifest.json +1 -1
  60. package/dist/manifests/menu.manifest.json +1 -1
  61. package/dist/manifests/metric-card.manifest.json +36 -4
  62. package/dist/manifests/multi-select.manifest.json +1 -1
  63. package/dist/manifests/newsletter.manifest.json +1 -1
  64. package/dist/manifests/page-header.manifest.json +7 -1
  65. package/dist/manifests/pagination.manifest.json +1 -1
  66. package/dist/manifests/password-input.manifest.json +1 -1
  67. package/dist/manifests/popover.manifest.json +1 -1
  68. package/dist/manifests/process-steps.manifest.json +1 -1
  69. package/dist/manifests/progress.manifest.json +1 -1
  70. package/dist/manifests/prose.manifest.json +1 -1
  71. package/dist/manifests/radio.manifest.json +1 -1
  72. package/dist/manifests/range-slider.manifest.json +1 -1
  73. package/dist/manifests/search.manifest.json +1 -1
  74. package/dist/manifests/section-heading.manifest.json +1 -1
  75. package/dist/manifests/section.manifest.json +1 -1
  76. package/dist/manifests/segmented-control.manifest.json +1 -1
  77. package/dist/manifests/select-menu.manifest.json +2 -2
  78. package/dist/manifests/select.manifest.json +1 -1
  79. package/dist/manifests/separator.manifest.json +1 -1
  80. package/dist/manifests/site-footer.manifest.json +1 -1
  81. package/dist/manifests/site-header.manifest.json +1 -1
  82. package/dist/manifests/skeleton.manifest.json +1 -1
  83. package/dist/manifests/spinner.manifest.json +1 -1
  84. package/dist/manifests/stat-band.manifest.json +1 -1
  85. package/dist/manifests/stepper.manifest.json +69 -5
  86. package/dist/manifests/switch.manifest.json +1 -1
  87. package/dist/manifests/table-card.manifest.json +1 -1
  88. package/dist/manifests/table-of-contents.manifest.json +26 -5
  89. package/dist/manifests/table.manifest.json +1 -1
  90. package/dist/manifests/tabs.manifest.json +1 -1
  91. package/dist/manifests/testimonial.manifest.json +1 -1
  92. package/dist/manifests/text.manifest.json +1 -1
  93. package/dist/manifests/textarea.manifest.json +1 -1
  94. package/dist/manifests/theme-toggle.manifest.json +1 -1
  95. package/dist/manifests/time-picker.manifest.json +1 -1
  96. package/dist/manifests/timeline.manifest.json +1 -1
  97. package/dist/manifests/toast.manifest.json +1 -1
  98. package/dist/manifests/tombstone-card.manifest.json +97 -0
  99. package/dist/manifests/tooltip.manifest.json +1 -1
  100. package/dist/src/components/accordion/Accordion.d.ts +17 -1
  101. package/dist/src/components/accordion/Accordion.js +5 -1
  102. package/dist/src/components/accordion/Accordion.js.map +1 -1
  103. package/dist/src/components/accordion/Accordion.mjs +5 -1
  104. package/dist/src/components/accordion/Accordion.mjs.map +1 -1
  105. package/dist/src/components/auth-layout/AuthLayout.d.ts +14 -2
  106. package/dist/src/components/auth-layout/AuthLayout.js +10 -2
  107. package/dist/src/components/auth-layout/AuthLayout.js.map +1 -1
  108. package/dist/src/components/auth-layout/AuthLayout.mjs +10 -2
  109. package/dist/src/components/auth-layout/AuthLayout.mjs.map +1 -1
  110. package/dist/src/components/badge/Badge.d.ts +2 -0
  111. package/dist/src/components/badge/Badge.js +9 -3
  112. package/dist/src/components/badge/Badge.js.map +1 -1
  113. package/dist/src/components/badge/Badge.mjs +9 -3
  114. package/dist/src/components/badge/Badge.mjs.map +1 -1
  115. package/dist/src/components/bottom-nav/BottomNav.d.ts +36 -0
  116. package/dist/src/components/bottom-nav/BottomNav.js +90 -0
  117. package/dist/src/components/bottom-nav/BottomNav.js.map +1 -0
  118. package/dist/src/components/bottom-nav/BottomNav.mjs +66 -0
  119. package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -0
  120. package/dist/src/components/bottom-nav/index.d.ts +1 -0
  121. package/dist/src/components/bottom-nav/index.js +23 -0
  122. package/dist/src/components/bottom-nav/index.js.map +1 -0
  123. package/dist/src/components/bottom-nav/index.mjs +2 -0
  124. package/dist/src/components/bottom-nav/index.mjs.map +1 -0
  125. package/dist/src/components/date-picker/DatePicker.js +1 -1
  126. package/dist/src/components/date-picker/DatePicker.js.map +1 -1
  127. package/dist/src/components/date-picker/DatePicker.mjs +1 -1
  128. package/dist/src/components/date-picker/DatePicker.mjs.map +1 -1
  129. package/dist/src/components/deal-card/DealCard.d.ts +72 -0
  130. package/dist/src/components/deal-card/DealCard.js +108 -0
  131. package/dist/src/components/deal-card/DealCard.js.map +1 -0
  132. package/dist/src/components/deal-card/DealCard.mjs +74 -0
  133. package/dist/src/components/deal-card/DealCard.mjs.map +1 -0
  134. package/dist/src/components/deal-card/index.d.ts +2 -0
  135. package/dist/src/components/deal-card/index.js +29 -0
  136. package/dist/src/components/deal-card/index.js.map +1 -0
  137. package/dist/src/components/deal-card/index.mjs +5 -0
  138. package/dist/src/components/deal-card/index.mjs.map +1 -0
  139. package/dist/src/components/document-card/DocumentCard.d.ts +42 -0
  140. package/dist/src/components/document-card/DocumentCard.js +84 -0
  141. package/dist/src/components/document-card/DocumentCard.js.map +1 -0
  142. package/dist/src/components/document-card/DocumentCard.mjs +50 -0
  143. package/dist/src/components/document-card/DocumentCard.mjs.map +1 -0
  144. package/dist/src/components/document-card/index.d.ts +2 -0
  145. package/dist/src/components/document-card/index.js +29 -0
  146. package/dist/src/components/document-card/index.js.map +1 -0
  147. package/dist/src/components/document-card/index.mjs +5 -0
  148. package/dist/src/components/document-card/index.mjs.map +1 -0
  149. package/dist/src/components/drawer/Drawer.d.ts +25 -2
  150. package/dist/src/components/drawer/Drawer.js +97 -6
  151. package/dist/src/components/drawer/Drawer.js.map +1 -1
  152. package/dist/src/components/drawer/Drawer.mjs +97 -6
  153. package/dist/src/components/drawer/Drawer.mjs.map +1 -1
  154. package/dist/src/components/empty-state/EmptyState.d.ts +13 -4
  155. package/dist/src/components/empty-state/EmptyState.js +13 -1
  156. package/dist/src/components/empty-state/EmptyState.js.map +1 -1
  157. package/dist/src/components/empty-state/EmptyState.mjs +13 -1
  158. package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
  159. package/dist/src/components/entity-card/EntityCard.d.ts +78 -0
  160. package/dist/src/components/entity-card/EntityCard.js +95 -0
  161. package/dist/src/components/entity-card/EntityCard.js.map +1 -0
  162. package/dist/src/components/entity-card/EntityCard.mjs +60 -0
  163. package/dist/src/components/entity-card/EntityCard.mjs.map +1 -0
  164. package/dist/src/components/entity-card/index.d.ts +2 -0
  165. package/dist/src/components/entity-card/index.js +31 -0
  166. package/dist/src/components/entity-card/index.js.map +1 -0
  167. package/dist/src/components/entity-card/index.mjs +6 -0
  168. package/dist/src/components/entity-card/index.mjs.map +1 -0
  169. package/dist/src/components/hero/Hero.d.ts +25 -13
  170. package/dist/src/components/hero/Hero.js +116 -12
  171. package/dist/src/components/hero/Hero.js.map +1 -1
  172. package/dist/src/components/hero/Hero.mjs +116 -12
  173. package/dist/src/components/hero/Hero.mjs.map +1 -1
  174. package/dist/src/components/load-more/LoadMore.d.ts +34 -0
  175. package/dist/src/components/load-more/LoadMore.js +55 -0
  176. package/dist/src/components/load-more/LoadMore.js.map +1 -0
  177. package/dist/src/components/load-more/LoadMore.mjs +21 -0
  178. package/dist/src/components/load-more/LoadMore.mjs.map +1 -0
  179. package/dist/src/components/load-more/index.d.ts +2 -0
  180. package/dist/src/components/load-more/index.js +29 -0
  181. package/dist/src/components/load-more/index.js.map +1 -0
  182. package/dist/src/components/load-more/index.mjs +5 -0
  183. package/dist/src/components/load-more/index.mjs.map +1 -0
  184. package/dist/src/components/metric-card/MetricCard.d.ts +23 -4
  185. package/dist/src/components/metric-card/MetricCard.js +32 -5
  186. package/dist/src/components/metric-card/MetricCard.js.map +1 -1
  187. package/dist/src/components/metric-card/MetricCard.mjs +32 -5
  188. package/dist/src/components/metric-card/MetricCard.mjs.map +1 -1
  189. package/dist/src/components/page-header/PageHeader.d.ts +4 -0
  190. package/dist/src/components/page-header/PageHeader.js +3 -2
  191. package/dist/src/components/page-header/PageHeader.js.map +1 -1
  192. package/dist/src/components/page-header/PageHeader.mjs +3 -2
  193. package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
  194. package/dist/src/components/range-slider/RangeSlider.js +6 -6
  195. package/dist/src/components/range-slider/RangeSlider.js.map +1 -1
  196. package/dist/src/components/range-slider/RangeSlider.mjs +6 -6
  197. package/dist/src/components/range-slider/RangeSlider.mjs.map +1 -1
  198. package/dist/src/components/select-menu/SelectMenu.js +2 -0
  199. package/dist/src/components/select-menu/SelectMenu.js.map +1 -1
  200. package/dist/src/components/select-menu/SelectMenu.mjs +2 -0
  201. package/dist/src/components/select-menu/SelectMenu.mjs.map +1 -1
  202. package/dist/src/components/separator/Separator.d.ts +3 -3
  203. package/dist/src/components/separator/Separator.js +1 -1
  204. package/dist/src/components/separator/Separator.js.map +1 -1
  205. package/dist/src/components/separator/Separator.mjs +1 -1
  206. package/dist/src/components/separator/Separator.mjs.map +1 -1
  207. package/dist/src/components/stepper/Stepper.d.ts +35 -0
  208. package/dist/src/components/stepper/Stepper.js +118 -25
  209. package/dist/src/components/stepper/Stepper.js.map +1 -1
  210. package/dist/src/components/stepper/Stepper.mjs +118 -25
  211. package/dist/src/components/stepper/Stepper.mjs.map +1 -1
  212. package/dist/src/components/table-of-contents/TableOfContents.d.ts +10 -2
  213. package/dist/src/components/table-of-contents/TableOfContents.js +13 -0
  214. package/dist/src/components/table-of-contents/TableOfContents.js.map +1 -1
  215. package/dist/src/components/table-of-contents/TableOfContents.mjs +13 -0
  216. package/dist/src/components/table-of-contents/TableOfContents.mjs.map +1 -1
  217. package/dist/src/components/tabs/Tabs.js +43 -3
  218. package/dist/src/components/tabs/Tabs.js.map +1 -1
  219. package/dist/src/components/tabs/Tabs.mjs +43 -3
  220. package/dist/src/components/tabs/Tabs.mjs.map +1 -1
  221. package/dist/src/components/time-picker/TimePicker.js +1 -1
  222. package/dist/src/components/time-picker/TimePicker.js.map +1 -1
  223. package/dist/src/components/time-picker/TimePicker.mjs +1 -1
  224. package/dist/src/components/time-picker/TimePicker.mjs.map +1 -1
  225. package/dist/src/components/timeline/Timeline.js +2 -2
  226. package/dist/src/components/timeline/Timeline.js.map +1 -1
  227. package/dist/src/components/timeline/Timeline.mjs +2 -2
  228. package/dist/src/components/timeline/Timeline.mjs.map +1 -1
  229. package/dist/src/components/tombstone-card/TombstoneCard.d.ts +39 -0
  230. package/dist/src/components/tombstone-card/TombstoneCard.js +86 -0
  231. package/dist/src/components/tombstone-card/TombstoneCard.js.map +1 -0
  232. package/dist/src/components/tombstone-card/TombstoneCard.mjs +52 -0
  233. package/dist/src/components/tombstone-card/TombstoneCard.mjs.map +1 -0
  234. package/dist/src/components/tombstone-card/index.d.ts +2 -0
  235. package/dist/src/components/tombstone-card/index.js +29 -0
  236. package/dist/src/components/tombstone-card/index.js.map +1 -0
  237. package/dist/src/components/tombstone-card/index.mjs +5 -0
  238. package/dist/src/components/tombstone-card/index.mjs.map +1 -0
  239. package/dist/src/index.d.ts +6 -0
  240. package/dist/styles-full.css +1 -1
  241. package/dist/styles.css +1 -1
  242. package/package.json +3 -3
  243. package/src/components/accordion/Accordion.test.tsx +31 -0
  244. package/src/components/accordion/Accordion.tsx +27 -2
  245. package/src/components/auth-layout/AuthLayout.test.tsx +36 -0
  246. package/src/components/auth-layout/AuthLayout.tsx +20 -3
  247. package/src/components/badge/Badge.test.tsx +7 -0
  248. package/src/components/badge/Badge.tsx +8 -2
  249. package/src/components/bottom-nav/BottomNav.test.tsx +48 -0
  250. package/src/components/bottom-nav/BottomNav.tsx +117 -0
  251. package/src/components/bottom-nav/index.ts +1 -0
  252. package/src/components/date-picker/DatePicker.tsx +1 -1
  253. package/src/components/deal-card/DealCard.test.tsx +54 -0
  254. package/src/components/deal-card/DealCard.tsx +138 -0
  255. package/src/components/deal-card/index.ts +2 -0
  256. package/src/components/document-card/DocumentCard.test.tsx +41 -0
  257. package/src/components/document-card/DocumentCard.tsx +82 -0
  258. package/src/components/document-card/index.ts +2 -0
  259. package/src/components/drawer/Drawer.test.tsx +86 -1
  260. package/src/components/drawer/Drawer.tsx +135 -7
  261. package/src/components/empty-state/EmptyState.test.tsx +26 -1
  262. package/src/components/empty-state/EmptyState.tsx +40 -3
  263. package/src/components/entity-card/EntityCard.test.tsx +38 -0
  264. package/src/components/entity-card/EntityCard.tsx +133 -0
  265. package/src/components/entity-card/index.ts +2 -0
  266. package/src/components/hero/Hero.test.tsx +14 -0
  267. package/src/components/hero/Hero.tsx +111 -19
  268. package/src/components/load-more/LoadMore.test.tsx +28 -0
  269. package/src/components/load-more/LoadMore.tsx +53 -0
  270. package/src/components/load-more/index.ts +2 -0
  271. package/src/components/metric-card/MetricCard.test.tsx +32 -0
  272. package/src/components/metric-card/MetricCard.tsx +45 -7
  273. package/src/components/page-header/PageHeader.test.tsx +13 -0
  274. package/src/components/page-header/PageHeader.tsx +5 -2
  275. package/src/components/range-slider/RangeSlider.test.tsx +8 -0
  276. package/src/components/range-slider/RangeSlider.tsx +10 -6
  277. package/src/components/select-menu/SelectMenu.test.tsx +20 -10
  278. package/src/components/select-menu/SelectMenu.tsx +2 -0
  279. package/src/components/separator/Separator.test.tsx +9 -1
  280. package/src/components/separator/Separator.tsx +1 -1
  281. package/src/components/stepper/Stepper.test.tsx +19 -0
  282. package/src/components/stepper/Stepper.tsx +169 -37
  283. package/src/components/table-of-contents/TableOfContents.test.tsx +12 -1
  284. package/src/components/table-of-contents/TableOfContents.tsx +25 -1
  285. package/src/components/tabs/Tabs.test.tsx +12 -0
  286. package/src/components/tabs/Tabs.tsx +48 -4
  287. package/src/components/time-picker/TimePicker.tsx +1 -1
  288. package/src/components/timeline/Timeline.tsx +2 -2
  289. package/src/components/tombstone-card/TombstoneCard.test.tsx +26 -0
  290. package/src/components/tombstone-card/TombstoneCard.tsx +77 -0
  291. package/src/components/tombstone-card/index.ts +2 -0
  292. package/src/index.ts +6 -0
  293. package/src/manifests/accordion.manifest.json +7 -1
  294. package/src/manifests/alert.manifest.json +1 -1
  295. package/src/manifests/announcement-bar.manifest.json +1 -1
  296. package/src/manifests/app-shell.manifest.json +1 -1
  297. package/src/manifests/applied-filters.manifest.json +1 -1
  298. package/src/manifests/article-card.manifest.json +1 -1
  299. package/src/manifests/auth-layout.manifest.json +19 -1
  300. package/src/manifests/autocomplete.manifest.json +1 -1
  301. package/src/manifests/avatar.manifest.json +1 -1
  302. package/src/manifests/badge.manifest.json +13 -1
  303. package/src/manifests/block.manifest.json +1 -1
  304. package/src/manifests/bottom-nav.manifest.json +130 -0
  305. package/src/manifests/breadcrumb.manifest.json +1 -1
  306. package/src/manifests/button-group.manifest.json +1 -1
  307. package/src/manifests/button.manifest.json +1 -1
  308. package/src/manifests/card.manifest.json +1 -1
  309. package/src/manifests/checkbox.manifest.json +1 -1
  310. package/src/manifests/comparison-table.manifest.json +1 -1
  311. package/src/manifests/confirm-dialog.manifest.json +1 -1
  312. package/src/manifests/contact-strip.manifest.json +1 -1
  313. package/src/manifests/container.manifest.json +1 -1
  314. package/src/manifests/cta-section.manifest.json +1 -1
  315. package/src/manifests/data-table.manifest.json +1 -1
  316. package/src/manifests/date-picker.manifest.json +1 -1
  317. package/src/manifests/date-range-picker.manifest.json +1 -1
  318. package/src/manifests/deal-card.manifest.json +158 -0
  319. package/src/manifests/dialog.manifest.json +1 -1
  320. package/src/manifests/document-card.manifest.json +108 -0
  321. package/src/manifests/drawer.manifest.json +48 -2
  322. package/src/manifests/empty-state.manifest.json +1 -1
  323. package/src/manifests/entity-card.manifest.json +114 -0
  324. package/src/manifests/feature-grid.manifest.json +1 -1
  325. package/src/manifests/feature-row.manifest.json +1 -1
  326. package/src/manifests/fieldset.manifest.json +1 -1
  327. package/src/manifests/file-upload.manifest.json +1 -1
  328. package/src/manifests/filter-bar.manifest.json +1 -1
  329. package/src/manifests/filter-chips.manifest.json +1 -1
  330. package/src/manifests/filter-panel.manifest.json +1 -1
  331. package/src/manifests/flex.manifest.json +1 -1
  332. package/src/manifests/form-field.manifest.json +1 -1
  333. package/src/manifests/form-layout.manifest.json +1 -1
  334. package/src/manifests/form.manifest.json +1 -1
  335. package/src/manifests/grid.manifest.json +1 -1
  336. package/src/manifests/heading.manifest.json +1 -1
  337. package/src/manifests/hero.manifest.json +40 -8
  338. package/src/manifests/input-group.manifest.json +1 -1
  339. package/src/manifests/input.manifest.json +1 -1
  340. package/src/manifests/label.manifest.json +1 -1
  341. package/src/manifests/link-tabs.manifest.json +1 -1
  342. package/src/manifests/link.manifest.json +1 -1
  343. package/src/manifests/list.manifest.json +1 -1
  344. package/src/manifests/load-more.manifest.json +88 -0
  345. package/src/manifests/logo-cloud.manifest.json +1 -1
  346. package/src/manifests/menu.manifest.json +1 -1
  347. package/src/manifests/metric-card.manifest.json +36 -4
  348. package/src/manifests/multi-select.manifest.json +1 -1
  349. package/src/manifests/newsletter.manifest.json +1 -1
  350. package/src/manifests/page-header.manifest.json +7 -1
  351. package/src/manifests/pagination.manifest.json +1 -1
  352. package/src/manifests/password-input.manifest.json +1 -1
  353. package/src/manifests/popover.manifest.json +1 -1
  354. package/src/manifests/process-steps.manifest.json +1 -1
  355. package/src/manifests/progress.manifest.json +1 -1
  356. package/src/manifests/prose.manifest.json +1 -1
  357. package/src/manifests/radio.manifest.json +1 -1
  358. package/src/manifests/range-slider.manifest.json +1 -1
  359. package/src/manifests/search.manifest.json +1 -1
  360. package/src/manifests/section-heading.manifest.json +1 -1
  361. package/src/manifests/section.manifest.json +1 -1
  362. package/src/manifests/segmented-control.manifest.json +1 -1
  363. package/src/manifests/select-menu.manifest.json +2 -2
  364. package/src/manifests/select.manifest.json +1 -1
  365. package/src/manifests/separator.manifest.json +1 -1
  366. package/src/manifests/site-footer.manifest.json +1 -1
  367. package/src/manifests/site-header.manifest.json +1 -1
  368. package/src/manifests/skeleton.manifest.json +1 -1
  369. package/src/manifests/spinner.manifest.json +1 -1
  370. package/src/manifests/stat-band.manifest.json +1 -1
  371. package/src/manifests/stepper.manifest.json +69 -5
  372. package/src/manifests/switch.manifest.json +1 -1
  373. package/src/manifests/table-card.manifest.json +1 -1
  374. package/src/manifests/table-of-contents.manifest.json +26 -5
  375. package/src/manifests/table.manifest.json +1 -1
  376. package/src/manifests/tabs.manifest.json +1 -1
  377. package/src/manifests/testimonial.manifest.json +1 -1
  378. package/src/manifests/text.manifest.json +1 -1
  379. package/src/manifests/textarea.manifest.json +1 -1
  380. package/src/manifests/theme-toggle.manifest.json +1 -1
  381. package/src/manifests/time-picker.manifest.json +1 -1
  382. package/src/manifests/timeline.manifest.json +1 -1
  383. package/src/manifests/toast.manifest.json +1 -1
  384. package/src/manifests/tombstone-card.manifest.json +97 -0
  385. package/src/manifests/tooltip.manifest.json +1 -1
  386. package/src/test/jest-axe.d.ts +6 -1
@@ -0,0 +1,88 @@
1
+ {
2
+ "id": "load-more",
3
+ "name": "LoadMore",
4
+ "tier": "molecule",
5
+ "package": "@slipstream-ui/core",
6
+ "importPath": "@slipstream-ui/core",
7
+ "version": "0.8.0",
8
+ "sourceDir": "load-more",
9
+ "exportName": "LoadMore",
10
+ "description": "Load-more control with pending and end-of-list states.",
11
+ "designIntent": "Paginated lists without page numbers need one consistent load-more control that announces loading and the end of the list. LoadMore keeps the row layout and state copy in one place.",
12
+ "props": [
13
+ {
14
+ "name": "hasMore",
15
+ "type": "boolean",
16
+ "required": true,
17
+ "description": "Whether another page is available."
18
+ },
19
+ {
20
+ "name": "onLoadMore",
21
+ "type": "() => void",
22
+ "required": true,
23
+ "description": "Request the next page."
24
+ },
25
+ {
26
+ "name": "loading",
27
+ "type": "boolean",
28
+ "required": false,
29
+ "defaultValue": "false",
30
+ "description": "Loading state."
31
+ },
32
+ {
33
+ "name": "loadLabel",
34
+ "type": "string",
35
+ "required": false,
36
+ "defaultValue": "Load more",
37
+ "description": "Button label."
38
+ },
39
+ {
40
+ "name": "loadingLabel",
41
+ "type": "string",
42
+ "required": false,
43
+ "defaultValue": "Loading...",
44
+ "description": "Loading label."
45
+ },
46
+ {
47
+ "name": "endLabel",
48
+ "type": "string",
49
+ "required": false,
50
+ "defaultValue": "You're all caught up.",
51
+ "description": "End-of-list message."
52
+ }
53
+ ],
54
+ "examples": [
55
+ {
56
+ "title": "Deal grid pagination",
57
+ "code": "<LoadMore hasMore={hasMore} loading={loading} onLoadMore={loadNextPage} />",
58
+ "description": "A load-more control below a card grid."
59
+ }
60
+ ],
61
+ "antiPatterns": [
62
+ {
63
+ "title": "Don't keep the button when the list is complete",
64
+ "explanation": "Replace the button with the end message so there is no dead action.",
65
+ "example": "<LoadMore hasMore={false} onLoadMore={load} />"
66
+ }
67
+ ],
68
+ "accessibility": [
69
+ {
70
+ "feature": "Live state",
71
+ "implementation": "The wrapper uses aria-live polite; loading disables the button and sets aria-busy",
72
+ "userRequirements": "Keep loading and end labels short"
73
+ }
74
+ ],
75
+ "compositionRules": [
76
+ {
77
+ "component": "Grid",
78
+ "relationship": "Place LoadMore below the card grid",
79
+ "example": "<Grid>...</Grid><LoadMore ... />"
80
+ }
81
+ ],
82
+ "relatedComponents": [
83
+ "Pagination",
84
+ "DataTable",
85
+ "DealCard",
86
+ "EntityCard"
87
+ ]
88
+ }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "logo-cloud",
9
9
  "exportName": "LogoCloud",
10
10
  "description": "Trust strip for member, customer or partner logos with captions, columns and optional links.",
@@ -120,7 +120,7 @@
120
120
  ],
121
121
  "package": "@slipstream-ui/core",
122
122
  "importPath": "@slipstream-ui/core",
123
- "version": "0.6.1",
123
+ "version": "0.8.0",
124
124
  "sourceDir": "menu",
125
125
  "exportName": "Menu"
126
126
  }
@@ -8,8 +8,14 @@
8
8
  {
9
9
  "name": "label",
10
10
  "type": "string",
11
- "required": true,
12
- "description": "Metric name."
11
+ "required": false,
12
+ "description": "Metric name. Alias: title."
13
+ },
14
+ {
15
+ "name": "title",
16
+ "type": "string",
17
+ "required": false,
18
+ "description": "Alias for label (migration-friendly)."
13
19
  },
14
20
  {
15
21
  "name": "value",
@@ -39,13 +45,39 @@
39
45
  "name": "hint",
40
46
  "type": "React.ReactNode",
41
47
  "required": false,
42
- "description": "Comparison context (vs last month)."
48
+ "description": "Comparison context (vs last month). Alias: description."
49
+ },
50
+ {
51
+ "name": "description",
52
+ "type": "React.ReactNode",
53
+ "required": false,
54
+ "description": "Alias for hint (migration-friendly)."
43
55
  },
44
56
  {
45
57
  "name": "icon",
46
58
  "type": "ReactNode",
47
59
  "required": false,
48
60
  "description": "Decorative icon."
61
+ },
62
+ {
63
+ "name": "tone",
64
+ "type": "'default' | 'success' | 'warning' | 'destructive'",
65
+ "required": false,
66
+ "defaultValue": "default",
67
+ "description": "Semantic color for the value (not the delta).",
68
+ "enum": [
69
+ "default",
70
+ "success",
71
+ "warning",
72
+ "destructive"
73
+ ]
74
+ },
75
+ {
76
+ "name": "loading",
77
+ "type": "boolean",
78
+ "required": false,
79
+ "defaultValue": "false",
80
+ "description": "Renders a skeleton instead of the value and sets aria-busy."
49
81
  }
50
82
  ],
51
83
  "examples": [
@@ -99,7 +131,7 @@
99
131
  ],
100
132
  "package": "@slipstream-ui/core",
101
133
  "importPath": "@slipstream-ui/core",
102
- "version": "0.6.1",
134
+ "version": "0.8.0",
103
135
  "sourceDir": "metric-card",
104
136
  "exportName": "MetricCard"
105
137
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "multi-select",
9
9
  "exportName": "MultiSelect",
10
10
  "description": "Searchable multi-select filter with visible removable chips and a checkbox panel.",
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "newsletter",
9
9
  "exportName": "Newsletter",
10
10
  "description": "Email capture block with inline or stacked layout, pending state, success and failure feedback.",
@@ -17,6 +17,12 @@
17
17
  "required": false,
18
18
  "description": "Supporting summary under the title."
19
19
  },
20
+ {
21
+ "name": "subtitle",
22
+ "type": "string",
23
+ "required": false,
24
+ "description": "Alias for description (migration-friendly)."
25
+ },
20
26
  {
21
27
  "name": "breadcrumbs",
22
28
  "type": "ReactNode",
@@ -141,7 +147,7 @@
141
147
  ],
142
148
  "package": "@slipstream-ui/core",
143
149
  "importPath": "@slipstream-ui/core",
144
- "version": "0.6.1",
150
+ "version": "0.8.0",
145
151
  "sourceDir": "page-header",
146
152
  "exportName": "PageHeader"
147
153
  }
@@ -204,7 +204,7 @@
204
204
  ],
205
205
  "package": "@slipstream-ui/core",
206
206
  "importPath": "@slipstream-ui/core",
207
- "version": "0.6.1",
207
+ "version": "0.8.0",
208
208
  "sourceDir": "pagination",
209
209
  "exportName": "Pagination"
210
210
  }
@@ -69,7 +69,7 @@
69
69
  ],
70
70
  "package": "@slipstream-ui/core",
71
71
  "importPath": "@slipstream-ui/core",
72
- "version": "0.6.1",
72
+ "version": "0.8.0",
73
73
  "sourceDir": "password-input",
74
74
  "exportName": "PasswordInput"
75
75
  }
@@ -98,7 +98,7 @@
98
98
  ],
99
99
  "package": "@slipstream-ui/core",
100
100
  "importPath": "@slipstream-ui/core",
101
- "version": "0.6.1",
101
+ "version": "0.8.0",
102
102
  "sourceDir": "popover",
103
103
  "exportName": "Popover"
104
104
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "process-steps",
9
9
  "exportName": "ProcessSteps",
10
10
  "description": "Ordered process cards with derived step numbers or custom icons.",
@@ -109,7 +109,7 @@
109
109
  ],
110
110
  "package": "@slipstream-ui/core",
111
111
  "importPath": "@slipstream-ui/core",
112
- "version": "0.6.1",
112
+ "version": "0.8.0",
113
113
  "sourceDir": "progress",
114
114
  "exportName": "Progress"
115
115
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "prose",
9
9
  "exportName": "Prose",
10
10
  "description": "Self-contained long-form typography for rendered markdown/MDX: headings, links, lists, code, tables, quotes and figures.",
@@ -181,7 +181,7 @@
181
181
  ],
182
182
  "package": "@slipstream-ui/core",
183
183
  "importPath": "@slipstream-ui/core",
184
- "version": "0.6.1",
184
+ "version": "0.8.0",
185
185
  "sourceDir": "radio",
186
186
  "exportName": "Radio"
187
187
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "range-slider",
9
9
  "exportName": "RangeSlider",
10
10
  "description": "Dual-thumb numeric range slider with labeled native inputs and formatted values.",
@@ -161,7 +161,7 @@
161
161
  ],
162
162
  "package": "@slipstream-ui/core",
163
163
  "importPath": "@slipstream-ui/core",
164
- "version": "0.6.1",
164
+ "version": "0.8.0",
165
165
  "sourceDir": "search",
166
166
  "exportName": "Search"
167
167
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "section-heading",
9
9
  "exportName": "SectionHeading",
10
10
  "description": "Section heading block: eyebrow, title (level 2-4), description and actions, with left/center alignment and three sizes.",
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "section",
9
9
  "exportName": "Section",
10
10
  "description": "Full-width page section with a surface tone, vertical rhythm and an optional centered container.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "segmented-control",
9
9
  "exportName": "SegmentedControl",
10
10
  "description": "Single- or multi-select segmented control for view and filter switches.",
@@ -4,11 +4,11 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "select-menu",
9
9
  "exportName": "SelectMenu",
10
10
  "description": "Custom listbox select for rich options: descriptions, icons, groups, multi-select, custom rows and hidden inputs for forms.",
11
- "designIntent": "Native <select> cannot render rich option content. SelectMenu supplies a real listbox with the button/listbox keyboard model while keeping the same value/onValueChange contract as Select, so teams can move between the two without rewriting state.",
11
+ "designIntent": "Native <select> cannot render rich option content. SelectMenu supplies a real listbox behind a select-only combobox trigger with the combobox/listbox keyboard model while keeping the same value/onValueChange contract as Select, so teams can move between the two without rewriting state.",
12
12
  "props": [
13
13
  {
14
14
  "name": "items",
@@ -123,7 +123,7 @@
123
123
  ],
124
124
  "package": "@slipstream-ui/core",
125
125
  "importPath": "@slipstream-ui/core",
126
- "version": "0.6.1",
126
+ "version": "0.8.0",
127
127
  "sourceDir": "select",
128
128
  "exportName": "Select"
129
129
  }
@@ -84,7 +84,7 @@
84
84
  ],
85
85
  "package": "@slipstream-ui/core",
86
86
  "importPath": "@slipstream-ui/core",
87
- "version": "0.6.1",
87
+ "version": "0.8.0",
88
88
  "sourceDir": "separator",
89
89
  "exportName": "Separator"
90
90
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "site-footer",
9
9
  "exportName": "SiteFooter",
10
10
  "description": "Marketing footer: brand + tagline column, link columns and a legal bar; router-agnostic via linkComponent.",
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "site-header",
9
9
  "exportName": "SiteHeader",
10
10
  "description": "Marketing/site header: sticky bar with brand, horizontal navigation with prefix-aware active states, right-aligned actions and a mobile drawer.",
@@ -126,7 +126,7 @@
126
126
  ],
127
127
  "package": "@slipstream-ui/core",
128
128
  "importPath": "@slipstream-ui/core",
129
- "version": "0.6.1",
129
+ "version": "0.8.0",
130
130
  "sourceDir": "skeleton",
131
131
  "exportName": "Skeleton"
132
132
  }
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "package": "@slipstream-ui/core",
54
54
  "importPath": "@slipstream-ui/core",
55
- "version": "0.6.1",
55
+ "version": "0.8.0",
56
56
  "sourceDir": "spinner",
57
57
  "exportName": "Spinner"
58
58
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "stat-band",
9
9
  "exportName": "StatBand",
10
10
  "description": "Semantic description list of headline stats with labels, optional hints and column presets.",
@@ -2,8 +2,8 @@
2
2
  "id": "stepper",
3
3
  "name": "Stepper",
4
4
  "tier": "molecule",
5
- "description": "Multi-step flow indicator: ordered list, aria-current step, text state for complete/current/upcoming.",
6
- "designIntent": "Wizards need orientation: where am I, what is done, what is next. A stepper built on an ordered list keeps the sequence structural and announces state in text, not just color.",
5
+ "description": "Multi-step flow indicator: ordered list, aria-current step, text state for complete/current/upcoming, horizontal or vertical, numbered or dots.",
6
+ "designIntent": "Wizards need orientation: where am I, what is done, what is next. A stepper built on an ordered list keeps the sequence structural and announces state in text, not just color. Four responsive shapes (inline labels, labels below, vertical timeline, compact dots) cover onboarding, checkout, and narrow sidebars.",
7
7
  "props": [
8
8
  {
9
9
  "name": "steps",
@@ -28,6 +28,50 @@
28
28
  "vertical"
29
29
  ]
30
30
  },
31
+ {
32
+ "name": "variant",
33
+ "type": "'numbered' | 'dots'",
34
+ "required": false,
35
+ "defaultValue": "numbered",
36
+ "description": "Marker style. numbered shows the step number and a check when complete; dots is the compact progress variant with no numbers.",
37
+ "enum": [
38
+ "numbered",
39
+ "dots"
40
+ ]
41
+ },
42
+ {
43
+ "name": "size",
44
+ "type": "'sm' | 'md'",
45
+ "required": false,
46
+ "defaultValue": "md",
47
+ "description": "Marker and label scale.",
48
+ "enum": [
49
+ "sm",
50
+ "md"
51
+ ]
52
+ },
53
+ {
54
+ "name": "labelPlacement",
55
+ "type": "'inline' | 'below'",
56
+ "required": false,
57
+ "defaultValue": "inline",
58
+ "description": "Horizontal only: place the label beside the marker or beneath it.",
59
+ "enum": [
60
+ "inline",
61
+ "below"
62
+ ]
63
+ },
64
+ {
65
+ "name": "alignTitles",
66
+ "type": "'start' | 'center'",
67
+ "required": false,
68
+ "defaultValue": "center",
69
+ "description": "Center a title vertically against its marker when that step has no description. Titles with a description stay top aligned.",
70
+ "enum": [
71
+ "start",
72
+ "center"
73
+ ]
74
+ },
31
75
  {
32
76
  "name": "onStepClick",
33
77
  "type": "(index: number) => void",
@@ -37,9 +81,24 @@
37
81
  ],
38
82
  "examples": [
39
83
  {
40
- "title": "Onboarding wizard",
41
- "code": "<Stepper\n current={step}\n steps={[{ label: 'Account' }, { label: 'Studio details' }, { label: 'Invite team' }, { label: 'Review' }]}\n/>",
84
+ "title": "Horizontal onboarding wizard",
85
+ "code": "<Stepper\n current={step}\n steps={[{ label: 'Account' }, { label: 'Studio details' }, { label: 'Invite team' }, { label: 'Review' }]}\n onStepClick={setStep}\n/>",
42
86
  "description": "Current step is announced; completed steps show a check."
87
+ },
88
+ {
89
+ "title": "Labels below the markers",
90
+ "code": "<Stepper\n current={2}\n labelPlacement=\"below\"\n steps={[{ label: 'Account' }, { label: 'Studio' }, { label: 'Review' }]}\n/>",
91
+ "description": "A wider, marketing-friendly horizontal shape."
92
+ },
93
+ {
94
+ "title": "Vertical timeline",
95
+ "code": "<Stepper\n current={1}\n orientation=\"vertical\"\n steps={[\n { label: 'Submitted', description: 'Mar 2' },\n { label: 'Under review', description: 'Mar 4' },\n { label: 'Decision', description: 'Mar 9' },\n ]}\n/>",
96
+ "description": "A vertical connector joins the markers, suited to sidebars and activity feeds."
97
+ },
98
+ {
99
+ "title": "Compact dots",
100
+ "code": "<Stepper current={1} variant=\"dots\" size=\"sm\" steps={[{ label: 'Plan' }, { label: 'Build' }, { label: 'Ship' }]} />",
101
+ "description": "No numbers, small markers, for tight toolbars or mobile."
43
102
  }
44
103
  ],
45
104
  "antiPatterns": [
@@ -80,6 +139,11 @@
80
139
  "component": "Form",
81
140
  "relationship": "One Form (or Form step) per Stepper stage",
82
141
  "example": "<Stepper current={1} steps={steps} />"
142
+ },
143
+ {
144
+ "component": "Drawer",
145
+ "relationship": "A vertical dots Stepper fits a narrow drawer or settings sidebar",
146
+ "example": "<Drawer><Stepper current={1} orientation=\"vertical\" variant=\"dots\" steps={steps} /></Drawer>"
83
147
  }
84
148
  ],
85
149
  "relatedComponents": [
@@ -89,7 +153,7 @@
89
153
  ],
90
154
  "package": "@slipstream-ui/core",
91
155
  "importPath": "@slipstream-ui/core",
92
- "version": "0.6.1",
156
+ "version": "0.8.0",
93
157
  "sourceDir": "stepper",
94
158
  "exportName": "Stepper"
95
159
  }
@@ -102,7 +102,7 @@
102
102
  ],
103
103
  "package": "@slipstream-ui/core",
104
104
  "importPath": "@slipstream-ui/core",
105
- "version": "0.6.1",
105
+ "version": "0.8.0",
106
106
  "sourceDir": "switch",
107
107
  "exportName": "Switch"
108
108
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "table-card",
9
9
  "exportName": "TableCard",
10
10
  "description": "Table shell with title/description, header actions, optional toolbar, edge-to-edge body and a footer row.",
@@ -4,11 +4,11 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.6.1",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "table-of-contents",
9
9
  "exportName": "TableOfContents",
10
- "description": "Sticky 'On this page' navigation with nested levels and aria-current, plus a useScrollSpy hook for the active heading.",
11
- "designIntent": "Long-form pages drift into bespoke TOC implementations. TableOfContents fixes the nested list, active styling and landmark name; useScrollSpy supplies the active id from real scroll position.",
10
+ "description": "Sticky 'On this page' navigation with real anchor links, nested levels and aria-current, plus a useScrollSpy hook for the active heading.",
11
+ "designIntent": "Long-form pages drift into bespoke TOC implementations. TableOfContents fixes the nested list, native anchor navigation, active styling and landmark name; useScrollSpy supplies the active id from real scroll position.",
12
12
  "props": [
13
13
  {
14
14
  "name": "headings",
@@ -47,13 +47,24 @@
47
47
  "type": "string",
48
48
  "required": false,
49
49
  "description": "Extra classes for the visible label."
50
+ },
51
+ {
52
+ "name": "onNavigate",
53
+ "type": "(id: string) => void",
54
+ "required": false,
55
+ "description": "Called with the heading id when a link is activated. The browser still performs the native anchor jump; use it to sync a controlled activeId, analytics, or close a mobile TOC."
50
56
  }
51
57
  ],
52
58
  "examples": [
53
59
  {
54
60
  "title": "Article TOC",
55
- "code": "const activeId = useScrollSpy(headings.map((h) => h.id));\n\n<TableOfContents headings={headings} activeId={activeId} />",
56
- "description": "Scroll-spy driven active state."
61
+ "code": "const ids = headings.map((h) => h.id);\nconst activeId = useScrollSpy(ids);\n\n<TableOfContents headings={headings} activeId={activeId} />",
62
+ "description": "Scroll-spy driven active state; links are native anchors."
63
+ },
64
+ {
65
+ "title": "Controlled TOC with navigation callback",
66
+ "code": "<TableOfContents\n headings={headings}\n activeId={activeId}\n onNavigate={(id) => {\n setActiveId(id);\n setMobileOpen(false);\n }}\n/>",
67
+ "description": "Update local state when a heading is chosen; the anchor still scrolls and updates the hash."
57
68
  }
58
69
  ],
59
70
  "antiPatterns": [
@@ -61,6 +72,11 @@
61
72
  "title": "Don't hardcode the active id",
62
73
  "explanation": "Compute it from scroll position so the highlight follows the reader.",
63
74
  "example": "// Avoid\n<TableOfContents headings={h} activeId=\"intro\" />"
75
+ },
76
+ {
77
+ "title": "Don't replace the anchors with buttons",
78
+ "explanation": "Buttons only run a highlight callback and break deep links, middle-click, and open-in-new-tab. The component renders real anchors; keep them.",
79
+ "example": "// Avoid\n<button onClick={() => setActiveId(h.id)}>{h.text}</button>\n\n// Prefer\n<TableOfContents headings={h} activeId={activeId} onNavigate={setActiveId} />"
64
80
  }
65
81
  ],
66
82
  "accessibility": [
@@ -68,6 +84,11 @@
68
84
  "feature": "Landmark + current item",
69
85
  "implementation": "nav aria-label plus aria-current=location on the active link",
70
86
  "userRequirements": "Keep heading levels sequential"
87
+ },
88
+ {
89
+ "feature": "Native anchor navigation",
90
+ "implementation": "Each item is an a[href='#id'], so Enter, middle-click and deep links work",
91
+ "userRequirements": "Render an element with the matching id, and add scroll-mt-* when a sticky header overlaps the target"
71
92
  }
72
93
  ],
73
94
  "contentGuidelines": [
@@ -78,7 +78,7 @@
78
78
  ],
79
79
  "package": "@slipstream-ui/core",
80
80
  "importPath": "@slipstream-ui/core",
81
- "version": "0.6.1",
81
+ "version": "0.8.0",
82
82
  "sourceDir": "table",
83
83
  "exportName": "Table"
84
84
  }
@@ -138,7 +138,7 @@
138
138
  ],
139
139
  "package": "@slipstream-ui/core",
140
140
  "importPath": "@slipstream-ui/core",
141
- "version": "0.6.1",
141
+ "version": "0.8.0",
142
142
  "sourceDir": "tabs",
143
143
  "exportName": "Tabs"
144
144
  }