@slipstream-ui/core 0.10.0 → 0.10.2

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 (335) hide show
  1. package/LICENSE +0 -4
  2. package/dist/index.d.mts +13 -4
  3. package/dist/index.d.ts +13 -4
  4. package/dist/index.js +67 -43
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +67 -43
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/manifests/accordion.manifest.json +1 -1
  9. package/dist/manifests/alert.manifest.json +1 -1
  10. package/dist/manifests/announcement-bar.manifest.json +1 -1
  11. package/dist/manifests/app-shell.manifest.json +1 -1
  12. package/dist/manifests/applied-filters.manifest.json +1 -1
  13. package/dist/manifests/article-card.manifest.json +1 -1
  14. package/dist/manifests/auth-layout.manifest.json +1 -1
  15. package/dist/manifests/autocomplete.manifest.json +1 -1
  16. package/dist/manifests/avatar.manifest.json +1 -1
  17. package/dist/manifests/badge.manifest.json +1 -1
  18. package/dist/manifests/block.manifest.json +1 -1
  19. package/dist/manifests/bottom-nav.manifest.json +1 -1
  20. package/dist/manifests/breadcrumb.manifest.json +1 -1
  21. package/dist/manifests/button-group.manifest.json +1 -1
  22. package/dist/manifests/button.manifest.json +1 -1
  23. package/dist/manifests/calendar.manifest.json +1 -1
  24. package/dist/manifests/card.manifest.json +1 -1
  25. package/dist/manifests/checkbox.manifest.json +1 -1
  26. package/dist/manifests/comparison-table.manifest.json +1 -1
  27. package/dist/manifests/confirm-dialog.manifest.json +1 -1
  28. package/dist/manifests/contact-strip.manifest.json +1 -1
  29. package/dist/manifests/container.manifest.json +1 -1
  30. package/dist/manifests/cta-section.manifest.json +1 -1
  31. package/dist/manifests/data-table.manifest.json +1 -1
  32. package/dist/manifests/date-picker-popover.manifest.json +1 -1
  33. package/dist/manifests/date-picker.manifest.json +1 -1
  34. package/dist/manifests/date-range-picker.manifest.json +1 -1
  35. package/dist/manifests/deal-card.manifest.json +1 -1
  36. package/dist/manifests/dialog.manifest.json +1 -1
  37. package/dist/manifests/document-card.manifest.json +1 -1
  38. package/dist/manifests/drawer.manifest.json +1 -1
  39. package/dist/manifests/empty-state.manifest.json +1 -1
  40. package/dist/manifests/entity-card.manifest.json +1 -1
  41. package/dist/manifests/feature-grid.manifest.json +1 -1
  42. package/dist/manifests/feature-row.manifest.json +1 -1
  43. package/dist/manifests/fieldset.manifest.json +1 -1
  44. package/dist/manifests/file-upload.manifest.json +1 -1
  45. package/dist/manifests/filter-bar.manifest.json +1 -1
  46. package/dist/manifests/filter-chips.manifest.json +1 -1
  47. package/dist/manifests/filter-panel.manifest.json +1 -1
  48. package/dist/manifests/flex.manifest.json +1 -1
  49. package/dist/manifests/form-field.manifest.json +1 -1
  50. package/dist/manifests/form-layout.manifest.json +1 -1
  51. package/dist/manifests/form.manifest.json +1 -1
  52. package/dist/manifests/grid.manifest.json +1 -1
  53. package/dist/manifests/heading.manifest.json +1 -1
  54. package/dist/manifests/hero.manifest.json +1 -1
  55. package/dist/manifests/image.manifest.json +1 -1
  56. package/dist/manifests/input-group.manifest.json +1 -1
  57. package/dist/manifests/input.manifest.json +1 -1
  58. package/dist/manifests/label.manifest.json +1 -1
  59. package/dist/manifests/link-tabs.manifest.json +1 -1
  60. package/dist/manifests/link.manifest.json +1 -1
  61. package/dist/manifests/list.manifest.json +1 -1
  62. package/dist/manifests/load-more.manifest.json +1 -1
  63. package/dist/manifests/logo-cloud.manifest.json +1 -1
  64. package/dist/manifests/menu.manifest.json +1 -1
  65. package/dist/manifests/metric-card.manifest.json +1 -1
  66. package/dist/manifests/multi-select.manifest.json +1 -1
  67. package/dist/manifests/newsletter.manifest.json +1 -1
  68. package/dist/manifests/page-header.manifest.json +1 -1
  69. package/dist/manifests/pagination.manifest.json +1 -1
  70. package/dist/manifests/password-input.manifest.json +1 -1
  71. package/dist/manifests/popover.manifest.json +1 -1
  72. package/dist/manifests/process-steps.manifest.json +1 -1
  73. package/dist/manifests/progress.manifest.json +1 -1
  74. package/dist/manifests/prose.manifest.json +1 -1
  75. package/dist/manifests/radio.manifest.json +1 -1
  76. package/dist/manifests/range-slider.manifest.json +1 -1
  77. package/dist/manifests/search.manifest.json +1 -1
  78. package/dist/manifests/section-heading.manifest.json +1 -1
  79. package/dist/manifests/section.manifest.json +1 -1
  80. package/dist/manifests/segmented-control.manifest.json +1 -1
  81. package/dist/manifests/select-menu.manifest.json +1 -1
  82. package/dist/manifests/select.manifest.json +1 -1
  83. package/dist/manifests/separator.manifest.json +1 -1
  84. package/dist/manifests/site-footer.manifest.json +1 -1
  85. package/dist/manifests/site-header.manifest.json +1 -1
  86. package/dist/manifests/skeleton.manifest.json +1 -1
  87. package/dist/manifests/spinner.manifest.json +1 -1
  88. package/dist/manifests/stat-band.manifest.json +1 -1
  89. package/dist/manifests/stepper.manifest.json +1 -1
  90. package/dist/manifests/switch.manifest.json +1 -1
  91. package/dist/manifests/table-card.manifest.json +1 -1
  92. package/dist/manifests/table-of-contents.manifest.json +1 -1
  93. package/dist/manifests/table.manifest.json +1 -1
  94. package/dist/manifests/tabs.manifest.json +1 -1
  95. package/dist/manifests/testimonial.manifest.json +1 -1
  96. package/dist/manifests/text.manifest.json +1 -1
  97. package/dist/manifests/textarea.manifest.json +1 -1
  98. package/dist/manifests/theme-toggle.manifest.json +1 -1
  99. package/dist/manifests/time-picker.manifest.json +1 -1
  100. package/dist/manifests/timeline.manifest.json +1 -1
  101. package/dist/manifests/toast.manifest.json +1 -1
  102. package/dist/manifests/tombstone-card.manifest.json +1 -1
  103. package/dist/manifests/tooltip.manifest.json +1 -1
  104. package/dist/src/components/bottom-nav/BottomNav.js +1 -1
  105. package/dist/src/components/bottom-nav/BottomNav.js.map +1 -1
  106. package/dist/src/components/bottom-nav/BottomNav.mjs +1 -1
  107. package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -1
  108. package/dist/src/components/button/Button.js +1 -1
  109. package/dist/src/components/button/Button.js.map +1 -1
  110. package/dist/src/components/button/Button.mjs +1 -1
  111. package/dist/src/components/button/Button.mjs.map +1 -1
  112. package/dist/src/components/contact-strip/ContactStrip.js +2 -2
  113. package/dist/src/components/contact-strip/ContactStrip.js.map +1 -1
  114. package/dist/src/components/contact-strip/ContactStrip.mjs +2 -2
  115. package/dist/src/components/contact-strip/ContactStrip.mjs.map +1 -1
  116. package/dist/src/components/date-picker-popover/DatePickerPopover.d.ts +3 -0
  117. package/dist/src/components/date-picker-popover/DatePickerPopover.js +5 -1
  118. package/dist/src/components/date-picker-popover/DatePickerPopover.js.map +1 -1
  119. package/dist/src/components/date-picker-popover/DatePickerPopover.mjs +5 -1
  120. package/dist/src/components/date-picker-popover/DatePickerPopover.mjs.map +1 -1
  121. package/dist/src/components/deal-card/DealCard.js +2 -2
  122. package/dist/src/components/deal-card/DealCard.js.map +1 -1
  123. package/dist/src/components/deal-card/DealCard.mjs +2 -2
  124. package/dist/src/components/deal-card/DealCard.mjs.map +1 -1
  125. package/dist/src/components/document-card/DocumentCard.js +1 -1
  126. package/dist/src/components/document-card/DocumentCard.js.map +1 -1
  127. package/dist/src/components/document-card/DocumentCard.mjs +1 -1
  128. package/dist/src/components/document-card/DocumentCard.mjs.map +1 -1
  129. package/dist/src/components/entity-card/EntityCard.js +2 -2
  130. package/dist/src/components/entity-card/EntityCard.js.map +1 -1
  131. package/dist/src/components/entity-card/EntityCard.mjs +2 -2
  132. package/dist/src/components/entity-card/EntityCard.mjs.map +1 -1
  133. package/dist/src/components/feature-grid/FeatureGrid.js +2 -2
  134. package/dist/src/components/feature-grid/FeatureGrid.js.map +1 -1
  135. package/dist/src/components/feature-grid/FeatureGrid.mjs +2 -2
  136. package/dist/src/components/feature-grid/FeatureGrid.mjs.map +1 -1
  137. package/dist/src/components/feature-row/FeatureRow.js +1 -1
  138. package/dist/src/components/feature-row/FeatureRow.js.map +1 -1
  139. package/dist/src/components/feature-row/FeatureRow.mjs +1 -1
  140. package/dist/src/components/feature-row/FeatureRow.mjs.map +1 -1
  141. package/dist/src/components/file-upload/FileUpload.d.ts +8 -2
  142. package/dist/src/components/file-upload/FileUpload.js +12 -2
  143. package/dist/src/components/file-upload/FileUpload.js.map +1 -1
  144. package/dist/src/components/file-upload/FileUpload.mjs +12 -2
  145. package/dist/src/components/file-upload/FileUpload.mjs.map +1 -1
  146. package/dist/src/components/filter-chips/FilterChips.js +1 -1
  147. package/dist/src/components/filter-chips/FilterChips.js.map +1 -1
  148. package/dist/src/components/filter-chips/FilterChips.mjs +1 -1
  149. package/dist/src/components/filter-chips/FilterChips.mjs.map +1 -1
  150. package/dist/src/components/filter-panel/FilterPanel.js +16 -12
  151. package/dist/src/components/filter-panel/FilterPanel.js.map +1 -1
  152. package/dist/src/components/filter-panel/FilterPanel.mjs +16 -12
  153. package/dist/src/components/filter-panel/FilterPanel.mjs.map +1 -1
  154. package/dist/src/components/hero/Hero.js +2 -2
  155. package/dist/src/components/hero/Hero.js.map +1 -1
  156. package/dist/src/components/hero/Hero.mjs +2 -2
  157. package/dist/src/components/hero/Hero.mjs.map +1 -1
  158. package/dist/src/components/image/Image.js +5 -0
  159. package/dist/src/components/image/Image.js.map +1 -1
  160. package/dist/src/components/image/Image.mjs +5 -0
  161. package/dist/src/components/image/Image.mjs.map +1 -1
  162. package/dist/src/components/list/List.js +5 -4
  163. package/dist/src/components/list/List.js.map +1 -1
  164. package/dist/src/components/list/List.mjs +5 -4
  165. package/dist/src/components/list/List.mjs.map +1 -1
  166. package/dist/src/components/menu/Menu.d.ts +2 -2
  167. package/dist/src/components/menu/Menu.js.map +1 -1
  168. package/dist/src/components/menu/Menu.mjs.map +1 -1
  169. package/dist/src/components/process-steps/ProcessSteps.js +1 -1
  170. package/dist/src/components/process-steps/ProcessSteps.js.map +1 -1
  171. package/dist/src/components/process-steps/ProcessSteps.mjs +1 -1
  172. package/dist/src/components/process-steps/ProcessSteps.mjs.map +1 -1
  173. package/dist/src/components/prose/Prose.js +1 -1
  174. package/dist/src/components/prose/Prose.js.map +1 -1
  175. package/dist/src/components/prose/Prose.mjs +1 -1
  176. package/dist/src/components/prose/Prose.mjs.map +1 -1
  177. package/dist/src/components/radio/Radio.js +1 -1
  178. package/dist/src/components/radio/Radio.js.map +1 -1
  179. package/dist/src/components/radio/Radio.mjs +1 -1
  180. package/dist/src/components/radio/Radio.mjs.map +1 -1
  181. package/dist/src/components/select-menu/SelectMenu.js +1 -1
  182. package/dist/src/components/select-menu/SelectMenu.js.map +1 -1
  183. package/dist/src/components/select-menu/SelectMenu.mjs +1 -1
  184. package/dist/src/components/select-menu/SelectMenu.mjs.map +1 -1
  185. package/dist/src/components/stepper/Stepper.js +1 -1
  186. package/dist/src/components/stepper/Stepper.js.map +1 -1
  187. package/dist/src/components/stepper/Stepper.mjs +1 -1
  188. package/dist/src/components/stepper/Stepper.mjs.map +1 -1
  189. package/dist/src/components/table-of-contents/TableOfContents.js +1 -1
  190. package/dist/src/components/table-of-contents/TableOfContents.js.map +1 -1
  191. package/dist/src/components/table-of-contents/TableOfContents.mjs +1 -1
  192. package/dist/src/components/table-of-contents/TableOfContents.mjs.map +1 -1
  193. package/dist/src/components/toast/Toast.js +1 -1
  194. package/dist/src/components/toast/Toast.js.map +1 -1
  195. package/dist/src/components/toast/Toast.mjs +1 -1
  196. package/dist/src/components/toast/Toast.mjs.map +1 -1
  197. package/dist/src/components/toast/Toaster.js +1 -1
  198. package/dist/src/components/toast/Toaster.js.map +1 -1
  199. package/dist/src/components/toast/Toaster.mjs +1 -1
  200. package/dist/src/components/toast/Toaster.mjs.map +1 -1
  201. package/dist/src/components/tombstone-card/TombstoneCard.js +1 -1
  202. package/dist/src/components/tombstone-card/TombstoneCard.js.map +1 -1
  203. package/dist/src/components/tombstone-card/TombstoneCard.mjs +1 -1
  204. package/dist/src/components/tombstone-card/TombstoneCard.mjs.map +1 -1
  205. package/dist/styles-full.css +1 -1
  206. package/dist/styles.css +1 -1
  207. package/package.json +6 -6
  208. package/src/components/bottom-nav/BottomNav.tsx +1 -1
  209. package/src/components/button/Button.tsx +1 -1
  210. package/src/components/calendar/Calendar.test.tsx +1 -1
  211. package/src/components/contact-strip/ContactStrip.tsx +2 -2
  212. package/src/components/date-picker-popover/DatePickerPopover.test.tsx +15 -0
  213. package/src/components/date-picker-popover/DatePickerPopover.tsx +7 -0
  214. package/src/components/deal-card/DealCard.tsx +2 -2
  215. package/src/components/document-card/DocumentCard.tsx +1 -1
  216. package/src/components/entity-card/EntityCard.tsx +2 -2
  217. package/src/components/feature-grid/FeatureGrid.tsx +2 -2
  218. package/src/components/feature-row/FeatureRow.tsx +1 -1
  219. package/src/components/file-upload/FileUpload.test.tsx +10 -0
  220. package/src/components/file-upload/FileUpload.tsx +18 -3
  221. package/src/components/filter-chips/FilterChips.tsx +1 -1
  222. package/src/components/filter-panel/FilterPanel.test.tsx +19 -0
  223. package/src/components/filter-panel/FilterPanel.tsx +18 -14
  224. package/src/components/hero/Hero.tsx +2 -2
  225. package/src/components/image/Image.test.tsx +24 -0
  226. package/src/components/image/Image.tsx +7 -0
  227. package/src/components/list/List.test.tsx +18 -0
  228. package/src/components/list/List.tsx +18 -12
  229. package/src/components/menu/Menu.tsx +2 -2
  230. package/src/components/process-steps/ProcessSteps.tsx +1 -1
  231. package/src/components/prose/Prose.tsx +1 -1
  232. package/src/components/radio/Radio.test.tsx +10 -0
  233. package/src/components/radio/Radio.tsx +1 -1
  234. package/src/components/select-menu/SelectMenu.tsx +1 -1
  235. package/src/components/stepper/Stepper.tsx +1 -1
  236. package/src/components/table-of-contents/TableOfContents.tsx +1 -1
  237. package/src/components/toast/Toast.tsx +1 -1
  238. package/src/components/toast/Toaster.tsx +1 -1
  239. package/src/components/tombstone-card/TombstoneCard.tsx +1 -1
  240. package/src/manifests/accordion.manifest.json +1 -1
  241. package/src/manifests/alert.manifest.json +1 -1
  242. package/src/manifests/announcement-bar.manifest.json +1 -1
  243. package/src/manifests/app-shell.manifest.json +1 -1
  244. package/src/manifests/applied-filters.manifest.json +1 -1
  245. package/src/manifests/article-card.manifest.json +1 -1
  246. package/src/manifests/auth-layout.manifest.json +1 -1
  247. package/src/manifests/autocomplete.manifest.json +1 -1
  248. package/src/manifests/avatar.manifest.json +1 -1
  249. package/src/manifests/badge.manifest.json +1 -1
  250. package/src/manifests/block.manifest.json +1 -1
  251. package/src/manifests/bottom-nav.manifest.json +1 -1
  252. package/src/manifests/breadcrumb.manifest.json +1 -1
  253. package/src/manifests/button-group.manifest.json +1 -1
  254. package/src/manifests/button.manifest.json +1 -1
  255. package/src/manifests/calendar.manifest.json +1 -1
  256. package/src/manifests/card.manifest.json +1 -1
  257. package/src/manifests/checkbox.manifest.json +1 -1
  258. package/src/manifests/comparison-table.manifest.json +1 -1
  259. package/src/manifests/confirm-dialog.manifest.json +1 -1
  260. package/src/manifests/contact-strip.manifest.json +1 -1
  261. package/src/manifests/container.manifest.json +1 -1
  262. package/src/manifests/cta-section.manifest.json +1 -1
  263. package/src/manifests/data-table.manifest.json +1 -1
  264. package/src/manifests/date-picker-popover.manifest.json +1 -1
  265. package/src/manifests/date-picker.manifest.json +1 -1
  266. package/src/manifests/date-range-picker.manifest.json +1 -1
  267. package/src/manifests/deal-card.manifest.json +1 -1
  268. package/src/manifests/dialog.manifest.json +1 -1
  269. package/src/manifests/document-card.manifest.json +1 -1
  270. package/src/manifests/drawer.manifest.json +1 -1
  271. package/src/manifests/empty-state.manifest.json +1 -1
  272. package/src/manifests/entity-card.manifest.json +1 -1
  273. package/src/manifests/feature-grid.manifest.json +1 -1
  274. package/src/manifests/feature-row.manifest.json +1 -1
  275. package/src/manifests/fieldset.manifest.json +1 -1
  276. package/src/manifests/file-upload.manifest.json +1 -1
  277. package/src/manifests/filter-bar.manifest.json +1 -1
  278. package/src/manifests/filter-chips.manifest.json +1 -1
  279. package/src/manifests/filter-panel.manifest.json +1 -1
  280. package/src/manifests/flex.manifest.json +1 -1
  281. package/src/manifests/form-field.manifest.json +1 -1
  282. package/src/manifests/form-layout.manifest.json +1 -1
  283. package/src/manifests/form.manifest.json +1 -1
  284. package/src/manifests/grid.manifest.json +1 -1
  285. package/src/manifests/heading.manifest.json +1 -1
  286. package/src/manifests/hero.manifest.json +1 -1
  287. package/src/manifests/image.manifest.json +1 -1
  288. package/src/manifests/input-group.manifest.json +1 -1
  289. package/src/manifests/input.manifest.json +1 -1
  290. package/src/manifests/label.manifest.json +1 -1
  291. package/src/manifests/link-tabs.manifest.json +1 -1
  292. package/src/manifests/link.manifest.json +1 -1
  293. package/src/manifests/list.manifest.json +1 -1
  294. package/src/manifests/load-more.manifest.json +1 -1
  295. package/src/manifests/logo-cloud.manifest.json +1 -1
  296. package/src/manifests/menu.manifest.json +1 -1
  297. package/src/manifests/metric-card.manifest.json +1 -1
  298. package/src/manifests/multi-select.manifest.json +1 -1
  299. package/src/manifests/newsletter.manifest.json +1 -1
  300. package/src/manifests/page-header.manifest.json +1 -1
  301. package/src/manifests/pagination.manifest.json +1 -1
  302. package/src/manifests/password-input.manifest.json +1 -1
  303. package/src/manifests/popover.manifest.json +1 -1
  304. package/src/manifests/process-steps.manifest.json +1 -1
  305. package/src/manifests/progress.manifest.json +1 -1
  306. package/src/manifests/prose.manifest.json +1 -1
  307. package/src/manifests/radio.manifest.json +1 -1
  308. package/src/manifests/range-slider.manifest.json +1 -1
  309. package/src/manifests/search.manifest.json +1 -1
  310. package/src/manifests/section-heading.manifest.json +1 -1
  311. package/src/manifests/section.manifest.json +1 -1
  312. package/src/manifests/segmented-control.manifest.json +1 -1
  313. package/src/manifests/select-menu.manifest.json +1 -1
  314. package/src/manifests/select.manifest.json +1 -1
  315. package/src/manifests/separator.manifest.json +1 -1
  316. package/src/manifests/site-footer.manifest.json +1 -1
  317. package/src/manifests/site-header.manifest.json +1 -1
  318. package/src/manifests/skeleton.manifest.json +1 -1
  319. package/src/manifests/spinner.manifest.json +1 -1
  320. package/src/manifests/stat-band.manifest.json +1 -1
  321. package/src/manifests/stepper.manifest.json +1 -1
  322. package/src/manifests/switch.manifest.json +1 -1
  323. package/src/manifests/table-card.manifest.json +1 -1
  324. package/src/manifests/table-of-contents.manifest.json +1 -1
  325. package/src/manifests/table.manifest.json +1 -1
  326. package/src/manifests/tabs.manifest.json +1 -1
  327. package/src/manifests/testimonial.manifest.json +1 -1
  328. package/src/manifests/text.manifest.json +1 -1
  329. package/src/manifests/textarea.manifest.json +1 -1
  330. package/src/manifests/theme-toggle.manifest.json +1 -1
  331. package/src/manifests/time-picker.manifest.json +1 -1
  332. package/src/manifests/timeline.manifest.json +1 -1
  333. package/src/manifests/toast.manifest.json +1 -1
  334. package/src/manifests/tombstone-card.manifest.json +1 -1
  335. package/src/manifests/tooltip.manifest.json +1 -1
@@ -102,7 +102,7 @@ export const Hero = React.forwardRef<HTMLElement, HeroProps>(function Hero(
102
102
  'mb-5 inline-flex rounded-full border px-3 py-1 text-xs font-medium',
103
103
  overlay
104
104
  ? 'border-background/30 bg-background/10 text-background'
105
- : 'border-primary/30 bg-primary/10 text-primary',
105
+ : 'border-primary/30 bg-primary/10 text-primary-ink',
106
106
  badgeClassName
107
107
  )}
108
108
  >
@@ -113,7 +113,7 @@ export const Hero = React.forwardRef<HTMLElement, HeroProps>(function Hero(
113
113
  <p
114
114
  className={cn(
115
115
  'mb-3 text-xs font-semibold uppercase tracking-widest',
116
- overlay ? 'text-background/90' : 'text-primary',
116
+ overlay ? 'text-background/90' : 'text-primary-ink',
117
117
  eyebrowClassName
118
118
  )}
119
119
  >
@@ -87,6 +87,30 @@ describe('Image', () => {
87
87
  expect(img).toHaveClass('object-cover');
88
88
  });
89
89
 
90
+ it('restarts the fallback chain when src changes', () => {
91
+ const { rerender } = render(
92
+ <Image
93
+ src="/broken.jpg"
94
+ fallbackSrc="/fallback.svg"
95
+ alt="Event"
96
+ fallback={<span data-testid="fallback">No image</span>}
97
+ />
98
+ );
99
+ fireEvent.error(screen.getByRole('img', { name: 'Event' }));
100
+ fireEvent.error(screen.getByRole('img', { name: 'Event' }));
101
+ expect(screen.getByTestId('fallback')).toBeInTheDocument();
102
+
103
+ rerender(
104
+ <Image
105
+ src="/new.jpg"
106
+ fallbackSrc="/fallback.svg"
107
+ alt="Event"
108
+ fallback={<span data-testid="fallback">No image</span>}
109
+ />
110
+ );
111
+ expect(screen.getByRole('img', { name: 'Event' })).toHaveAttribute('src', '/new.jpg');
112
+ });
113
+
90
114
  it('has no accessibility violations', async () => {
91
115
  const { container } = render(<Image src="/event.jpg" alt="Fall Classic" />);
92
116
  expect(await axe(container)).toHaveNoViolations();
@@ -46,6 +46,13 @@ export function Image({
46
46
  style,
47
47
  }: ImageProps) {
48
48
  const [stage, setStage] = React.useState<0 | 1 | 2>(0);
49
+ // Restart the src -> fallbackSrc -> fallback chain whenever the URLs
50
+ // change, so a reused component never sticks on a stale fallback.
51
+ const [prevUrls, setPrevUrls] = React.useState({ src, fallbackSrc });
52
+ if (prevUrls.src !== src || prevUrls.fallbackSrc !== fallbackSrc) {
53
+ setPrevUrls({ src, fallbackSrc });
54
+ setStage(0);
55
+ }
49
56
 
50
57
  const onError = () => setStage((current) => (current === 0 && fallbackSrc ? 1 : 2));
51
58
  const current = stage === 0 ? src : stage === 1 ? fallbackSrc : null;
@@ -76,6 +76,24 @@ describe('List / ListItem', () => {
76
76
  expect(screen.getByRole('button', { name: 'Off' })).toBeDisabled();
77
77
  });
78
78
 
79
+ it('uses compact row padding only when size is compact', () => {
80
+ const { rerender } = render(
81
+ <List>
82
+ <ListItem>Row</ListItem>
83
+ </List>
84
+ );
85
+ expect(screen.getByText('Row').closest('li')?.firstElementChild).toHaveClass('py-2.5');
86
+
87
+ rerender(
88
+ <List size="compact">
89
+ <ListItem>Row</ListItem>
90
+ </List>
91
+ );
92
+ const compactRow = screen.getByText('Row').closest('li')?.firstElementChild;
93
+ expect(compactRow).toHaveClass('py-1.5');
94
+ expect(compactRow).not.toHaveClass('py-2.5');
95
+ });
96
+
79
97
  it('has no accessibility violations', async () => {
80
98
  const { container } = render(
81
99
  <List bordered divided>
@@ -10,6 +10,10 @@ export type ListProps = React.HTMLAttributes<HTMLUListElement> & {
10
10
  size?: 'default' | 'compact';
11
11
  };
12
12
 
13
+ type ListDensity = 'default' | 'compact';
14
+
15
+ const ListDensityContext = React.createContext<ListDensity>('default');
16
+
13
17
  /**
14
18
  * Semantic list container for groups of related rows (settings, results,
15
19
  * nav items). Renders a real <ul> so screen readers announce item counts;
@@ -17,17 +21,18 @@ export type ListProps = React.HTMLAttributes<HTMLUListElement> & {
17
21
  */
18
22
  const List = React.forwardRef<HTMLUListElement, ListProps>(
19
23
  ({ divided, bordered, size = 'default', className, ...props }, ref) => (
20
- <ul
21
- ref={ref}
22
- className={cn(
23
- 'flex flex-col',
24
- bordered && 'overflow-hidden rounded-lg border border-border bg-card',
25
- divided && 'divide-y divide-border',
26
- size === 'compact' ? 'gap-0' : 'gap-0',
27
- className
28
- )}
29
- {...props}
30
- />
24
+ <ListDensityContext.Provider value={size}>
25
+ <ul
26
+ ref={ref}
27
+ className={cn(
28
+ 'flex flex-col',
29
+ bordered && 'overflow-hidden rounded-lg border border-border bg-card',
30
+ divided && 'divide-y divide-border',
31
+ className
32
+ )}
33
+ {...props}
34
+ />
35
+ </ListDensityContext.Provider>
31
36
  )
32
37
  );
33
38
  List.displayName = 'List';
@@ -53,7 +58,8 @@ export type ListItemProps = React.LiHTMLAttributes<HTMLLIElement> & {
53
58
  /** A single row inside a List. */
54
59
  const ListItem = React.forwardRef<HTMLLIElement, ListItemProps>(
55
60
  ({ leading, trailing, selected, onClick, description, disabled, className, children, ...props }, ref) => {
56
- const padding = 'px-3 py-2.5';
61
+ const density = React.useContext(ListDensityContext);
62
+ const padding = density === 'compact' ? 'px-3 py-1.5' : 'px-3 py-2.5';
57
63
  const rowClass = cn(
58
64
  'flex w-full items-center gap-3 text-left text-sm',
59
65
  selected && 'bg-accent text-accent-foreground',
@@ -32,8 +32,8 @@ export type MenuProps = {
32
32
  };
33
33
 
34
34
  /**
35
- * Dropdown menu with keyboard navigation (arrows, Home/End, Escape),
36
- * typeahead, and proper ARIA menu semantics. Items are rendered in a
35
+ * Dropdown menu with keyboard navigation (arrows, Home/End, Escape)
36
+ * and proper ARIA menu semantics. Items are rendered in a
37
37
  * floating panel anchored to the trigger.
38
38
  */
39
39
  const Menu = React.forwardRef<HTMLDivElement, MenuProps>(
@@ -40,7 +40,7 @@ export const ProcessSteps = React.forwardRef<HTMLOListElement, ProcessStepsProps
40
40
  key={step.title}
41
41
  className={cn('flex min-w-0 flex-col gap-4', align === 'center' && 'items-center text-center')}
42
42
  >
43
- <span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary [&_svg]:size-5">
43
+ <span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary-ink [&_svg]:size-5">
44
44
  {step.icon ?? (numbered ? String(index + 1).padStart(2, '0') : null)}
45
45
  </span>
46
46
  <div className="min-w-0">
@@ -36,7 +36,7 @@ export const Prose = React.forwardRef<HTMLDivElement, ProseProps>(function Prose
36
36
  '[&_h4]:mb-2 [&_h4]:mt-6 [&_h4]:scroll-mt-24 [&_h4]:font-semibold',
37
37
  // Body copy
38
38
  '[&_p]:my-4 [&_p]:leading-7',
39
- '[&_a]:text-primary [&_a]:underline [&_a]:decoration-primary/40 [&_a]:underline-offset-4 hover:[&_a]:decoration-primary',
39
+ '[&_a]:text-primary-ink [&_a]:underline [&_a]:decoration-primary/40 [&_a]:underline-offset-4 hover:[&_a]:decoration-primary',
40
40
  '[&_strong]:font-semibold [&_strong]:text-foreground [&_em]:italic',
41
41
  '[&_ul]:my-4 [&_ul]:list-disc [&_ul]:space-y-1.5 [&_ul]:pl-6',
42
42
  '[&_ol]:my-4 [&_ol]:list-decimal [&_ol]:space-y-1.5 [&_ol]:pl-6',
@@ -85,6 +85,16 @@ describe('RadioGroup', () => {
85
85
  expect(screen.getByLabelText('Pro')).toBeChecked();
86
86
  });
87
87
 
88
+ it('dims the label of disabled items via peer-disabled', () => {
89
+ render(
90
+ <RadioGroup name="plan" legend="Plan">
91
+ <RadioGroupItem value="free" label="Free" disabled />
92
+ </RadioGroup>
93
+ );
94
+ expect(screen.getByRole('radio')).toHaveClass('peer');
95
+ expect(screen.getByText('Free')).toHaveClass('peer-disabled:opacity-70');
96
+ });
97
+
88
98
  it('has no accessibility violations', async () => {
89
99
  const { container } = render(
90
100
  <RadioGroup name="plan" legend="Choose a plan">
@@ -131,7 +131,7 @@ const RadioGroupItem = React.forwardRef<HTMLInputElement, RadioGroupItemProps>(
131
131
  value={value}
132
132
  checked={group.value === value}
133
133
  onCheckedChange={(checked) => checked && group.onChange(value)}
134
- className={className}
134
+ className={cn('peer', className)}
135
135
  {...props}
136
136
  />
137
137
  {label && (
@@ -352,7 +352,7 @@ export const SelectMenu = React.forwardRef<HTMLButtonElement, SelectMenuProps>(f
352
352
  )}
353
353
  </span>
354
354
  {multiple && selectedValues.includes(row.item!.value) && (
355
- <span aria-hidden="true" className="ml-auto text-primary">
355
+ <span aria-hidden="true" className="ml-auto text-primary-ink">
356
356
  ✓
357
357
  </span>
358
358
  )}
@@ -117,7 +117,7 @@ export const Stepper = React.forwardRef<HTMLOListElement, StepperProps>(function
117
117
  'rounded-full border font-medium',
118
118
  markerSizeClass,
119
119
  state === 'complete' && 'border-primary bg-primary text-primary-foreground',
120
- state === 'current' && 'border-primary text-primary',
120
+ state === 'current' && 'border-primary text-primary-ink',
121
121
  state === 'upcoming' && 'border-border text-muted-foreground'
122
122
  )
123
123
  )}
@@ -66,7 +66,7 @@ export function TableOfContents({
66
66
  className={cn(
67
67
  '-ml-px block border-l py-1 pl-3 no-underline transition-colors',
68
68
  active
69
- ? 'border-primary font-medium text-primary underline'
69
+ ? 'border-primary font-medium text-primary-ink underline'
70
70
  : 'border-transparent text-muted-foreground hover:border-border hover:text-foreground'
71
71
  )}
72
72
  >
@@ -110,7 +110,7 @@ function ToastRegion({
110
110
  entry.action?.onClick();
111
111
  onDismiss(entry.id);
112
112
  }}
113
- className="mt-2 text-sm font-medium text-primary hover:underline"
113
+ className="mt-2 text-sm font-medium text-primary-ink hover:underline"
114
114
  >
115
115
  {entry.action.label}
116
116
  </button>
@@ -93,7 +93,7 @@ export function Toaster({ position = 'bottom-right', label = 'Notifications', di
93
93
  entry.action?.onClick();
94
94
  imperativeToast.dismiss(entry.id);
95
95
  }}
96
- className="mt-2 text-sm font-medium text-primary hover:underline"
96
+ className="mt-2 text-sm font-medium text-primary-ink hover:underline"
97
97
  >
98
98
  {entry.action.label}
99
99
  </button>
@@ -66,7 +66,7 @@ export const TombstoneCard = React.forwardRef<HTMLElement, TombstoneCardProps>(f
66
66
  {href && (
67
67
  <Link
68
68
  href={href}
69
- className="mt-auto text-sm font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
69
+ className="mt-auto text-sm font-medium text-primary-ink underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
70
70
  >
71
71
  {actionLabel}
72
72
  </Link>
@@ -138,7 +138,7 @@
138
138
  ],
139
139
  "package": "@slipstream-ui/core",
140
140
  "importPath": "@slipstream-ui/core",
141
- "version": "0.10.0",
141
+ "version": "0.10.2",
142
142
  "sourceDir": "accordion",
143
143
  "exportName": "Accordion"
144
144
  }
@@ -91,7 +91,7 @@
91
91
  ],
92
92
  "package": "@slipstream-ui/core",
93
93
  "importPath": "@slipstream-ui/core",
94
- "version": "0.10.0",
94
+ "version": "0.10.2",
95
95
  "sourceDir": "alert",
96
96
  "exportName": "Alert"
97
97
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "announcement-bar",
9
9
  "exportName": "AnnouncementBar",
10
10
  "description": "Dismissible announcement bar with optional action, tone and sticky positioning.",
@@ -214,7 +214,7 @@
214
214
  ],
215
215
  "package": "@slipstream-ui/core",
216
216
  "importPath": "@slipstream-ui/core",
217
- "version": "0.10.0",
217
+ "version": "0.10.2",
218
218
  "sourceDir": "app-shell",
219
219
  "exportName": "AppShell"
220
220
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "applied-filters",
9
9
  "exportName": "AppliedFilters",
10
10
  "description": "Applied-filter summary with a live count, removable chips and an edit action.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "article-card",
9
9
  "exportName": "ArticleCard",
10
10
  "description": "Linked article or resource card with media, eyebrow, title, summary and metadata.",
@@ -124,7 +124,7 @@
124
124
  ],
125
125
  "package": "@slipstream-ui/core",
126
126
  "importPath": "@slipstream-ui/core",
127
- "version": "0.10.0",
127
+ "version": "0.10.2",
128
128
  "sourceDir": "auth-layout",
129
129
  "exportName": "AuthLayout"
130
130
  }
@@ -194,7 +194,7 @@
194
194
  ],
195
195
  "package": "@slipstream-ui/core",
196
196
  "importPath": "@slipstream-ui/core",
197
- "version": "0.10.0",
197
+ "version": "0.10.2",
198
198
  "sourceDir": "autocomplete",
199
199
  "exportName": "Autocomplete"
200
200
  }
@@ -152,7 +152,7 @@
152
152
  ],
153
153
  "package": "@slipstream-ui/core",
154
154
  "importPath": "@slipstream-ui/core",
155
- "version": "0.10.0",
155
+ "version": "0.10.2",
156
156
  "sourceDir": "avatar",
157
157
  "exportName": "Avatar"
158
158
  }
@@ -205,7 +205,7 @@
205
205
  ],
206
206
  "package": "@slipstream-ui/core",
207
207
  "importPath": "@slipstream-ui/core",
208
- "version": "0.10.0",
208
+ "version": "0.10.2",
209
209
  "sourceDir": "badge",
210
210
  "exportName": "Badge"
211
211
  }
@@ -101,7 +101,7 @@
101
101
  ],
102
102
  "package": "@slipstream-ui/core",
103
103
  "importPath": "@slipstream-ui/core",
104
- "version": "0.10.0",
104
+ "version": "0.10.2",
105
105
  "sourceDir": "block",
106
106
  "exportName": "Block"
107
107
  }
@@ -124,7 +124,7 @@
124
124
  ],
125
125
  "package": "@slipstream-ui/core",
126
126
  "importPath": "@slipstream-ui/core",
127
- "version": "0.10.0",
127
+ "version": "0.10.2",
128
128
  "sourceDir": "bottom-nav",
129
129
  "exportName": "BottomNav"
130
130
  }
@@ -129,7 +129,7 @@
129
129
  ],
130
130
  "package": "@slipstream-ui/core",
131
131
  "importPath": "@slipstream-ui/core",
132
- "version": "0.10.0",
132
+ "version": "0.10.2",
133
133
  "sourceDir": "breadcrumb",
134
134
  "exportName": "Breadcrumb"
135
135
  }
@@ -105,7 +105,7 @@
105
105
  ],
106
106
  "package": "@slipstream-ui/core",
107
107
  "importPath": "@slipstream-ui/core",
108
- "version": "0.10.0",
108
+ "version": "0.10.2",
109
109
  "sourceDir": "button-group",
110
110
  "exportName": "ButtonGroup"
111
111
  }
@@ -253,7 +253,7 @@
253
253
  ],
254
254
  "package": "@slipstream-ui/core",
255
255
  "importPath": "@slipstream-ui/core",
256
- "version": "0.10.0",
256
+ "version": "0.10.2",
257
257
  "sourceDir": "button",
258
258
  "exportName": "Button"
259
259
  }
@@ -169,7 +169,7 @@
169
169
  ],
170
170
  "package": "@slipstream-ui/core",
171
171
  "importPath": "@slipstream-ui/core",
172
- "version": "0.10.0",
172
+ "version": "0.10.2",
173
173
  "sourceDir": "calendar",
174
174
  "exportName": "Calendar"
175
175
  }
@@ -86,7 +86,7 @@
86
86
  ],
87
87
  "package": "@slipstream-ui/core",
88
88
  "importPath": "@slipstream-ui/core",
89
- "version": "0.10.0",
89
+ "version": "0.10.2",
90
90
  "sourceDir": "card",
91
91
  "exportName": "Card"
92
92
  }
@@ -160,7 +160,7 @@
160
160
  ],
161
161
  "package": "@slipstream-ui/core",
162
162
  "importPath": "@slipstream-ui/core",
163
- "version": "0.10.0",
163
+ "version": "0.10.2",
164
164
  "sourceDir": "checkbox",
165
165
  "exportName": "Checkbox"
166
166
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "comparison-table",
9
9
  "exportName": "ComparisonTable",
10
10
  "description": "Marketing comparison table with check/dash boolean cells, a highlighted column and responsive overflow.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "confirm-dialog",
9
9
  "exportName": "ConfirmDialog",
10
10
  "description": "Accessible confirmation dialog with async pending state, destructive variant and cancellable actions, built on Dialog.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "contact-strip",
9
9
  "exportName": "ContactStrip",
10
10
  "description": "Compact labelled contact rows with optional icons and links.",
@@ -4,7 +4,7 @@
4
4
  "tier": "atom",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "container",
9
9
  "exportName": "Container",
10
10
  "description": "Centered, width-constrained page container with shared gutters and four width presets.",
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "cta-section",
9
9
  "exportName": "CTASection",
10
10
  "description": "Full-width conversion band with eyebrow, headline, supporting copy and actions.",
@@ -322,7 +322,7 @@
322
322
  ],
323
323
  "package": "@slipstream-ui/core",
324
324
  "importPath": "@slipstream-ui/core",
325
- "version": "0.10.0",
325
+ "version": "0.10.2",
326
326
  "sourceDir": "data-table",
327
327
  "exportName": "DataTable"
328
328
  }
@@ -196,7 +196,7 @@
196
196
  ],
197
197
  "package": "@slipstream-ui/core",
198
198
  "importPath": "@slipstream-ui/core",
199
- "version": "0.10.0",
199
+ "version": "0.10.2",
200
200
  "sourceDir": "date-picker-popover",
201
201
  "exportName": "DatePickerPopover"
202
202
  }
@@ -88,7 +88,7 @@
88
88
  ],
89
89
  "package": "@slipstream-ui/core",
90
90
  "importPath": "@slipstream-ui/core",
91
- "version": "0.10.0",
91
+ "version": "0.10.2",
92
92
  "sourceDir": "date-picker",
93
93
  "exportName": "DatePicker"
94
94
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "date-range-picker",
9
9
  "exportName": "DateRangePicker",
10
10
  "description": "Start/end date range with ISO strings and quick presets.",
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "deal-card",
9
9
  "exportName": "DealCard",
10
10
  "description": "Deal opportunity card with sector, status, metrics, NDA/CIM badges and access actions.",
@@ -163,7 +163,7 @@
163
163
  ],
164
164
  "package": "@slipstream-ui/core",
165
165
  "importPath": "@slipstream-ui/core",
166
- "version": "0.10.0",
166
+ "version": "0.10.2",
167
167
  "sourceDir": "dialog",
168
168
  "exportName": "Dialog"
169
169
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "document-card",
9
9
  "exportName": "DocumentCard",
10
10
  "description": "Document row with file metadata, access status and an optional download action.",
@@ -259,7 +259,7 @@
259
259
  ],
260
260
  "package": "@slipstream-ui/core",
261
261
  "importPath": "@slipstream-ui/core",
262
- "version": "0.10.0",
262
+ "version": "0.10.2",
263
263
  "sourceDir": "drawer",
264
264
  "exportName": "Drawer"
265
265
  }
@@ -115,7 +115,7 @@
115
115
  ],
116
116
  "package": "@slipstream-ui/core",
117
117
  "importPath": "@slipstream-ui/core",
118
- "version": "0.10.0",
118
+ "version": "0.10.2",
119
119
  "sourceDir": "empty-state",
120
120
  "exportName": "EmptyState"
121
121
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "entity-card",
9
9
  "exportName": "EntityCard",
10
10
  "description": "Firm or member profile card with logo, type, location, stats, tags and actions.",
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "feature-grid",
9
9
  "exportName": "FeatureGrid",
10
10
  "description": "Grid of feature or benefit cards with an icon, title, copy and optional link.",
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.10.0",
7
+ "version": "0.10.2",
8
8
  "sourceDir": "feature-row",
9
9
  "exportName": "FeatureRow",
10
10
  "description": "Alternating media and copy row for mid-page feature sections.",