@slipstream-ui/core 0.11.4 → 0.11.6

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 (246) hide show
  1. package/dist/index.d.mts +100 -3
  2. package/dist/index.d.ts +100 -3
  3. package/dist/index.js +589 -441
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +484 -337
  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 +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 +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/contact-strip.manifest.json +1 -1
  28. package/dist/manifests/container.manifest.json +1 -1
  29. package/dist/manifests/cover-image.manifest.json +151 -0
  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 +45 -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 +7 -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 +29 -2
  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 +23 -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/cover-image/CoverImage.d.ts +34 -0
  105. package/dist/src/components/cover-image/CoverImage.js +94 -0
  106. package/dist/src/components/cover-image/CoverImage.js.map +1 -0
  107. package/dist/src/components/cover-image/CoverImage.mjs +70 -0
  108. package/dist/src/components/cover-image/CoverImage.mjs.map +1 -0
  109. package/dist/src/components/cover-image/index.d.ts +1 -0
  110. package/dist/src/components/cover-image/index.js +29 -0
  111. package/dist/src/components/cover-image/index.js.map +1 -0
  112. package/dist/src/components/cover-image/index.mjs +5 -0
  113. package/dist/src/components/cover-image/index.mjs.map +1 -0
  114. package/dist/src/components/empty-state/EmptyState.d.ts +24 -0
  115. package/dist/src/components/empty-state/EmptyState.js +16 -6
  116. package/dist/src/components/empty-state/EmptyState.js.map +1 -1
  117. package/dist/src/components/empty-state/EmptyState.mjs +16 -6
  118. package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
  119. package/dist/src/components/image/Image.d.ts +3 -1
  120. package/dist/src/components/image/Image.js +2 -0
  121. package/dist/src/components/image/Image.js.map +1 -1
  122. package/dist/src/components/image/Image.mjs +2 -0
  123. package/dist/src/components/image/Image.mjs.map +1 -1
  124. package/dist/src/components/segmented-control/SegmentedControl.d.ts +21 -0
  125. package/dist/src/components/segmented-control/SegmentedControl.js +47 -16
  126. package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
  127. package/dist/src/components/segmented-control/SegmentedControl.mjs +48 -17
  128. package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
  129. package/dist/src/components/stat-band/StatBand.d.ts +16 -0
  130. package/dist/src/components/stat-band/StatBand.js +46 -9
  131. package/dist/src/components/stat-band/StatBand.js.map +1 -1
  132. package/dist/src/components/stat-band/StatBand.mjs +46 -9
  133. package/dist/src/components/stat-band/StatBand.mjs.map +1 -1
  134. package/dist/src/index.d.ts +1 -0
  135. package/dist/styles-full.css +1 -1
  136. package/dist/styles.css +1 -1
  137. package/package.json +2 -2
  138. package/src/components/cover-image/CoverImage.test.tsx +88 -0
  139. package/src/components/cover-image/CoverImage.tsx +109 -0
  140. package/src/components/cover-image/index.ts +1 -0
  141. package/src/components/empty-state/EmptyState.test.tsx +33 -0
  142. package/src/components/empty-state/EmptyState.tsx +34 -6
  143. package/src/components/image/Image.tsx +4 -0
  144. package/src/components/segmented-control/SegmentedControl.test.tsx +64 -0
  145. package/src/components/segmented-control/SegmentedControl.tsx +69 -15
  146. package/src/components/stat-band/StatBand.test.tsx +26 -0
  147. package/src/components/stat-band/StatBand.tsx +52 -7
  148. package/src/index.ts +1 -0
  149. package/src/manifests/accordion.manifest.json +1 -1
  150. package/src/manifests/alert.manifest.json +1 -1
  151. package/src/manifests/announcement-bar.manifest.json +1 -1
  152. package/src/manifests/app-shell.manifest.json +1 -1
  153. package/src/manifests/applied-filters.manifest.json +1 -1
  154. package/src/manifests/article-card.manifest.json +1 -1
  155. package/src/manifests/auth-layout.manifest.json +1 -1
  156. package/src/manifests/autocomplete.manifest.json +1 -1
  157. package/src/manifests/avatar.manifest.json +1 -1
  158. package/src/manifests/badge.manifest.json +1 -1
  159. package/src/manifests/block.manifest.json +1 -1
  160. package/src/manifests/bottom-nav.manifest.json +1 -1
  161. package/src/manifests/breadcrumb.manifest.json +1 -1
  162. package/src/manifests/button-group.manifest.json +1 -1
  163. package/src/manifests/button.manifest.json +1 -1
  164. package/src/manifests/calendar.manifest.json +1 -1
  165. package/src/manifests/card.manifest.json +1 -1
  166. package/src/manifests/checkbox.manifest.json +1 -1
  167. package/src/manifests/comparison-table.manifest.json +1 -1
  168. package/src/manifests/confirm-dialog.manifest.json +1 -1
  169. package/src/manifests/contact-strip.manifest.json +1 -1
  170. package/src/manifests/container.manifest.json +1 -1
  171. package/src/manifests/cover-image.manifest.json +151 -0
  172. package/src/manifests/cta-section.manifest.json +1 -1
  173. package/src/manifests/data-table.manifest.json +1 -1
  174. package/src/manifests/date-picker-popover.manifest.json +1 -1
  175. package/src/manifests/date-picker.manifest.json +1 -1
  176. package/src/manifests/date-range-picker.manifest.json +1 -1
  177. package/src/manifests/deal-card.manifest.json +1 -1
  178. package/src/manifests/dialog.manifest.json +1 -1
  179. package/src/manifests/document-card.manifest.json +1 -1
  180. package/src/manifests/drawer.manifest.json +1 -1
  181. package/src/manifests/empty-state.manifest.json +45 -1
  182. package/src/manifests/entity-card.manifest.json +1 -1
  183. package/src/manifests/feature-grid.manifest.json +1 -1
  184. package/src/manifests/feature-row.manifest.json +1 -1
  185. package/src/manifests/fieldset.manifest.json +1 -1
  186. package/src/manifests/file-upload.manifest.json +1 -1
  187. package/src/manifests/filter-bar.manifest.json +1 -1
  188. package/src/manifests/filter-chips.manifest.json +1 -1
  189. package/src/manifests/filter-panel.manifest.json +1 -1
  190. package/src/manifests/flex.manifest.json +1 -1
  191. package/src/manifests/form-field.manifest.json +1 -1
  192. package/src/manifests/form-layout.manifest.json +1 -1
  193. package/src/manifests/form.manifest.json +1 -1
  194. package/src/manifests/grid.manifest.json +1 -1
  195. package/src/manifests/heading.manifest.json +1 -1
  196. package/src/manifests/hero.manifest.json +1 -1
  197. package/src/manifests/image.manifest.json +7 -1
  198. package/src/manifests/input-group.manifest.json +1 -1
  199. package/src/manifests/input.manifest.json +1 -1
  200. package/src/manifests/label.manifest.json +1 -1
  201. package/src/manifests/link-tabs.manifest.json +1 -1
  202. package/src/manifests/link.manifest.json +1 -1
  203. package/src/manifests/list.manifest.json +1 -1
  204. package/src/manifests/load-more.manifest.json +1 -1
  205. package/src/manifests/logo-cloud.manifest.json +1 -1
  206. package/src/manifests/menu.manifest.json +1 -1
  207. package/src/manifests/metric-card.manifest.json +1 -1
  208. package/src/manifests/multi-select.manifest.json +1 -1
  209. package/src/manifests/newsletter.manifest.json +1 -1
  210. package/src/manifests/page-header.manifest.json +1 -1
  211. package/src/manifests/pagination.manifest.json +1 -1
  212. package/src/manifests/password-input.manifest.json +1 -1
  213. package/src/manifests/popover.manifest.json +1 -1
  214. package/src/manifests/process-steps.manifest.json +1 -1
  215. package/src/manifests/progress.manifest.json +1 -1
  216. package/src/manifests/prose.manifest.json +1 -1
  217. package/src/manifests/radio.manifest.json +1 -1
  218. package/src/manifests/range-slider.manifest.json +1 -1
  219. package/src/manifests/search.manifest.json +1 -1
  220. package/src/manifests/section-heading.manifest.json +1 -1
  221. package/src/manifests/section.manifest.json +1 -1
  222. package/src/manifests/segmented-control.manifest.json +29 -2
  223. package/src/manifests/select-menu.manifest.json +1 -1
  224. package/src/manifests/select.manifest.json +1 -1
  225. package/src/manifests/separator.manifest.json +1 -1
  226. package/src/manifests/site-footer.manifest.json +1 -1
  227. package/src/manifests/site-header.manifest.json +1 -1
  228. package/src/manifests/skeleton.manifest.json +1 -1
  229. package/src/manifests/spinner.manifest.json +1 -1
  230. package/src/manifests/stat-band.manifest.json +23 -1
  231. package/src/manifests/stepper.manifest.json +1 -1
  232. package/src/manifests/switch.manifest.json +1 -1
  233. package/src/manifests/table-card.manifest.json +1 -1
  234. package/src/manifests/table-of-contents.manifest.json +1 -1
  235. package/src/manifests/table.manifest.json +1 -1
  236. package/src/manifests/tabs.manifest.json +1 -1
  237. package/src/manifests/testimonial.manifest.json +1 -1
  238. package/src/manifests/text.manifest.json +1 -1
  239. package/src/manifests/textarea.manifest.json +1 -1
  240. package/src/manifests/theme-toggle.manifest.json +1 -1
  241. package/src/manifests/time-picker.manifest.json +1 -1
  242. package/src/manifests/timeline.manifest.json +1 -1
  243. package/src/manifests/toast.manifest.json +1 -1
  244. package/src/manifests/tombstone-card.manifest.json +1 -1
  245. package/src/manifests/tooltip.manifest.json +1 -1
  246. package/src/styles.css +5 -0
@@ -21,6 +21,14 @@ export type StatBandProps = React.HTMLAttributes<HTMLDListElement> & {
21
21
  size?: 'sm' | 'md' | 'lg';
22
22
  /** Draw dividers between stats at sm and up. Default true. */
23
23
  divided?: boolean;
24
+ /**
25
+ * Surface treatment. 'panel' renders a bordered strip of hairline-separated
26
+ * cells with denser type for data pages; 'plain' is the marketing band.
27
+ * Default 'plain'.
28
+ */
29
+ variant?: 'plain' | 'panel';
30
+ /** Extra classes for the value element (e.g. font-mono for tabular numerals). */
31
+ valueClassName?: string;
24
32
  };
25
33
 
26
34
  const columnClasses: Record<NonNullable<StatBandProps['columns']>, string> = {
@@ -35,22 +43,43 @@ const valueClasses: Record<NonNullable<StatBandProps['size']>, string> = {
35
43
  lg: 'text-4xl sm:text-5xl',
36
44
  };
37
45
 
46
+ const panelValueClasses: Record<NonNullable<StatBandProps['size']>, string> = {
47
+ sm: 'text-lg',
48
+ md: 'text-xl sm:text-2xl',
49
+ lg: 'text-2xl sm:text-3xl',
50
+ };
51
+
38
52
  /**
39
53
  * Marketing stat band: a semantic description list of headline numbers with
40
54
  * labels and optional hints. Use it inside a Section; the Section owns the
41
55
  * surface tone, so the same band works on white and inverse backgrounds.
42
56
  */
43
57
  export const StatBand = React.forwardRef<HTMLDListElement, StatBandProps>(function StatBand(
44
- { items, columns = 3, align = 'center', size = 'md', divided = true, className, ...props },
58
+ {
59
+ items,
60
+ columns = 3,
61
+ align = 'center',
62
+ size = 'md',
63
+ divided = true,
64
+ variant = 'plain',
65
+ valueClassName,
66
+ className,
67
+ ...props
68
+ },
45
69
  ref
46
70
  ) {
71
+ const panel = variant === 'panel';
47
72
  return (
48
73
  <dl
49
74
  ref={ref}
50
75
  className={cn(
51
- 'grid w-full gap-8',
76
+ 'grid w-full',
77
+ panel ? 'gap-0 rounded-lg border border-border bg-card' : 'gap-8',
52
78
  columnClasses[columns],
53
- divided && 'sm:divide-x sm:divide-border',
79
+ divided &&
80
+ (panel
81
+ ? 'divide-y divide-border sm:divide-x sm:divide-y-0'
82
+ : 'sm:divide-x sm:divide-border'),
54
83
  className
55
84
  )}
56
85
  {...props}
@@ -59,15 +88,31 @@ export const StatBand = React.forwardRef<HTMLDListElement, StatBandProps>(functi
59
88
  <div
60
89
  key={item.label}
61
90
  className={cn(
62
- 'flex min-w-0 flex-col gap-1 sm:px-6 sm:first:pl-0 sm:last:pr-0',
91
+ 'flex min-w-0 flex-col gap-1',
92
+ panel ? 'px-4 py-3 sm:px-5 sm:py-4' : 'sm:px-6 sm:first:pl-0 sm:last:pr-0',
63
93
  align === 'center' ? 'items-center text-center' : 'items-start text-left'
64
94
  )}
65
95
  >
66
- <dt className="order-2 text-sm font-medium text-muted-foreground">
96
+ <dt
97
+ className={cn(
98
+ 'order-2 text-muted-foreground',
99
+ panel ? 'text-xs font-medium uppercase tracking-wide' : 'text-sm font-medium'
100
+ )}
101
+ >
67
102
  {item.label}
68
- {item.hint && <span className="mt-1 block text-xs font-normal">{item.hint}</span>}
103
+ {item.hint && (
104
+ <span className={cn('mt-1 block font-normal', panel ? 'text-xs normal-case tracking-normal' : 'text-xs')}>
105
+ {item.hint}
106
+ </span>
107
+ )}
69
108
  </dt>
70
- <dd className={cn('order-1 m-0 font-semibold tracking-tight tabular-nums', valueClasses[size])}>
109
+ <dd
110
+ className={cn(
111
+ 'order-1 m-0 font-semibold tracking-tight tabular-nums',
112
+ panel ? panelValueClasses[size] : valueClasses[size],
113
+ valueClassName
114
+ )}
115
+ >
71
116
  {item.value}
72
117
  </dd>
73
118
  </div>
package/src/index.ts CHANGED
@@ -48,6 +48,7 @@ export * from './components/data-table';
48
48
  export * from './components/list';
49
49
  export * from './components/link';
50
50
  export * from './components/image';
51
+ export * from './components/cover-image';
51
52
  export * from './components/text';
52
53
  export * from './components/heading';
53
54
  export * from './components/empty-state';
@@ -138,7 +138,7 @@
138
138
  ],
139
139
  "package": "@slipstream-ui/core",
140
140
  "importPath": "@slipstream-ui/core",
141
- "version": "0.11.4",
141
+ "version": "0.11.6",
142
142
  "sourceDir": "accordion",
143
143
  "exportName": "Accordion"
144
144
  }
@@ -91,7 +91,7 @@
91
91
  ],
92
92
  "package": "@slipstream-ui/core",
93
93
  "importPath": "@slipstream-ui/core",
94
- "version": "0.11.4",
94
+ "version": "0.11.6",
95
95
  "sourceDir": "alert",
96
96
  "exportName": "Alert"
97
97
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.4",
7
+ "version": "0.11.6",
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.11.4",
217
+ "version": "0.11.6",
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.11.4",
7
+ "version": "0.11.6",
8
8
  "sourceDir": "applied-filters",
9
9
  "exportName": "AppliedFilters",
10
10
  "description": "Applied-filter summary with a live count, removable chips and an edit action.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.4",
7
+ "version": "0.11.6",
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.11.4",
127
+ "version": "0.11.6",
128
128
  "sourceDir": "auth-layout",
129
129
  "exportName": "AuthLayout"
130
130
  }
@@ -194,7 +194,7 @@
194
194
  ],
195
195
  "package": "@slipstream-ui/core",
196
196
  "importPath": "@slipstream-ui/core",
197
- "version": "0.11.4",
197
+ "version": "0.11.6",
198
198
  "sourceDir": "autocomplete",
199
199
  "exportName": "Autocomplete"
200
200
  }
@@ -152,7 +152,7 @@
152
152
  ],
153
153
  "package": "@slipstream-ui/core",
154
154
  "importPath": "@slipstream-ui/core",
155
- "version": "0.11.4",
155
+ "version": "0.11.6",
156
156
  "sourceDir": "avatar",
157
157
  "exportName": "Avatar"
158
158
  }
@@ -217,7 +217,7 @@
217
217
  ],
218
218
  "package": "@slipstream-ui/core",
219
219
  "importPath": "@slipstream-ui/core",
220
- "version": "0.11.4",
220
+ "version": "0.11.6",
221
221
  "sourceDir": "badge",
222
222
  "exportName": "Badge"
223
223
  }
@@ -101,7 +101,7 @@
101
101
  ],
102
102
  "package": "@slipstream-ui/core",
103
103
  "importPath": "@slipstream-ui/core",
104
- "version": "0.11.4",
104
+ "version": "0.11.6",
105
105
  "sourceDir": "block",
106
106
  "exportName": "Block"
107
107
  }
@@ -124,7 +124,7 @@
124
124
  ],
125
125
  "package": "@slipstream-ui/core",
126
126
  "importPath": "@slipstream-ui/core",
127
- "version": "0.11.4",
127
+ "version": "0.11.6",
128
128
  "sourceDir": "bottom-nav",
129
129
  "exportName": "BottomNav"
130
130
  }
@@ -129,7 +129,7 @@
129
129
  ],
130
130
  "package": "@slipstream-ui/core",
131
131
  "importPath": "@slipstream-ui/core",
132
- "version": "0.11.4",
132
+ "version": "0.11.6",
133
133
  "sourceDir": "breadcrumb",
134
134
  "exportName": "Breadcrumb"
135
135
  }
@@ -105,7 +105,7 @@
105
105
  ],
106
106
  "package": "@slipstream-ui/core",
107
107
  "importPath": "@slipstream-ui/core",
108
- "version": "0.11.4",
108
+ "version": "0.11.6",
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.11.4",
256
+ "version": "0.11.6",
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.11.4",
172
+ "version": "0.11.6",
173
173
  "sourceDir": "calendar",
174
174
  "exportName": "Calendar"
175
175
  }
@@ -86,7 +86,7 @@
86
86
  ],
87
87
  "package": "@slipstream-ui/core",
88
88
  "importPath": "@slipstream-ui/core",
89
- "version": "0.11.4",
89
+ "version": "0.11.6",
90
90
  "sourceDir": "card",
91
91
  "exportName": "Card"
92
92
  }
@@ -160,7 +160,7 @@
160
160
  ],
161
161
  "package": "@slipstream-ui/core",
162
162
  "importPath": "@slipstream-ui/core",
163
- "version": "0.11.4",
163
+ "version": "0.11.6",
164
164
  "sourceDir": "checkbox",
165
165
  "exportName": "Checkbox"
166
166
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.4",
7
+ "version": "0.11.6",
8
8
  "sourceDir": "comparison-table",
9
9
  "exportName": "ComparisonTable",
10
10
  "description": "Marketing comparison table with check/dash boolean cells, a highlighted column and responsive overflow.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.4",
7
+ "version": "0.11.6",
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.11.4",
7
+ "version": "0.11.6",
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.11.4",
7
+ "version": "0.11.6",
8
8
  "sourceDir": "container",
9
9
  "exportName": "Container",
10
10
  "description": "Centered, width-constrained page container with shared gutters and four width presets.",
@@ -0,0 +1,151 @@
1
+ {
2
+ "id": "cover-image",
3
+ "name": "CoverImage",
4
+ "tier": "molecule",
5
+ "description": "Fixed-aspect media cover that shows the image when present and a deterministic seed-derived token gradient when the entity has no art.",
6
+ "designIntent": "Media cards need a cover that never looks broken: imageless entities still get an intentional, per-entity placeholder instead of a reused generic social card. CoverImage wraps Image's src->fallback chain inside an aspect-ratio box so grids stay aligned and never shift layout.",
7
+ "props": [
8
+ {
9
+ "name": "src",
10
+ "type": "string | null",
11
+ "required": false,
12
+ "description": "Cover URL. When absent or broken, the seeded fallback renders instead.",
13
+ "examples": [
14
+ "https://cdn.example.com/events/fall-classic.jpg"
15
+ ]
16
+ },
17
+ {
18
+ "name": "alt",
19
+ "type": "string",
20
+ "required": true,
21
+ "description": "Accessible description of the image."
22
+ },
23
+ {
24
+ "name": "aspect",
25
+ "type": "'video' | 'square' | 'wide' | string",
26
+ "required": false,
27
+ "defaultValue": "video",
28
+ "enum": [
29
+ "video",
30
+ "square",
31
+ "wide"
32
+ ],
33
+ "description": "Aspect ratio: presets map to 16:9, 1:1 and 2:1; any CSS aspect-ratio value like '16/10' also works.",
34
+ "examples": [
35
+ "square",
36
+ "16/10"
37
+ ]
38
+ },
39
+ {
40
+ "name": "seed",
41
+ "type": "string",
42
+ "required": false,
43
+ "description": "Stable key selecting the fallback gradient (e.g. entity slug), so the same entity always gets the same placeholder."
44
+ },
45
+ {
46
+ "name": "priority",
47
+ "type": "boolean",
48
+ "required": false,
49
+ "defaultValue": "false",
50
+ "description": "Load eagerly and fetch at high priority for the LCP image."
51
+ },
52
+ {
53
+ "name": "sizes",
54
+ "type": "string",
55
+ "required": false,
56
+ "description": "Responsive sizes hint forwarded to the image element."
57
+ },
58
+ {
59
+ "name": "fallback",
60
+ "type": "React.ReactNode",
61
+ "required": false,
62
+ "description": "Custom fallback content; defaults to the seed-derived token gradient."
63
+ },
64
+ {
65
+ "name": "mark",
66
+ "type": "React.ReactNode",
67
+ "required": false,
68
+ "description": "Optional mark (icon, monogram) centered on the default gradient."
69
+ },
70
+ {
71
+ "name": "className",
72
+ "type": "string",
73
+ "required": false,
74
+ "description": "Classes merged onto the aspect-ratio container."
75
+ }
76
+ ],
77
+ "examples": [
78
+ {
79
+ "title": "Entity cover with seeded placeholder",
80
+ "code": "<CoverImage\n src={event.imageUrl}\n alt={event.title}\n seed={event.slug}\n aspect=\"video\"\n sizes=\"(min-width: 1024px) 33vw, 100vw\"\n/>",
81
+ "description": "16:9 cover; imageless events get a stable per-slug gradient."
82
+ },
83
+ {
84
+ "title": "Square avatar-style cover",
85
+ "code": "<CoverImage alt={studio.name} seed={studio.slug} aspect=\"square\" mark={<StudioIcon />} />",
86
+ "description": "Square cover with a mark on the gradient fallback."
87
+ }
88
+ ],
89
+ "antiPatterns": [
90
+ {
91
+ "title": "Don't use it for photos of people",
92
+ "explanation": "Use Avatar for people and firms; CoverImage is for media covers (events, articles, listings).",
93
+ "example": "// Avoid\n<CoverImage src={person.photo} alt={person.name} />\n\n// Prefer\n<Avatar src={person.photo} name={person.name} />"
94
+ },
95
+ {
96
+ "title": "Don't skip the seed",
97
+ "explanation": "Without a stable seed the fallback falls back to alt text, so two entities can share a gradient by accident. Pass the entity slug.",
98
+ "example": "<CoverImage src={e.image} alt={e.title} seed={e.slug} />"
99
+ }
100
+ ],
101
+ "accessibility": [
102
+ {
103
+ "feature": "Image semantics",
104
+ "implementation": "Renders a real img with alt when src is present; the gradient fallback is aria-hidden decoration",
105
+ "userRequirements": "Always pass a descriptive alt; the placeholder is not content"
106
+ },
107
+ {
108
+ "feature": "Layout stability",
109
+ "implementation": "The aspect-ratio box reserves space before the image loads, so grids never shift",
110
+ "userRequirements": "Pick the aspect that matches the card design"
111
+ }
112
+ ],
113
+ "contentGuidelines": [
114
+ {
115
+ "contentType": "Alt text",
116
+ "guidelines": [
117
+ "Describe the image, not the component",
118
+ "For decorative covers paired with a title, keep alt concise"
119
+ ],
120
+ "goodExamples": [
121
+ "Fall Classic competition floor"
122
+ ],
123
+ "badExamples": [
124
+ "Cover image",
125
+ "Photo"
126
+ ]
127
+ }
128
+ ],
129
+ "compositionRules": [
130
+ {
131
+ "component": "Card",
132
+ "relationship": "CoverImage is the media slot at the top of a Card or listing tile",
133
+ "example": "<Card><CoverImage src={item.image} alt={item.title} seed={item.slug} /><CardContent>…</CardContent></Card>"
134
+ },
135
+ {
136
+ "component": "Image",
137
+ "relationship": "CoverImage wraps Image, inheriting its src->fallbackSrc->fallback resilience chain",
138
+ "example": "<CoverImage src={url} alt={alt} />"
139
+ }
140
+ ],
141
+ "relatedComponents": [
142
+ "Image",
143
+ "Avatar",
144
+ "Card"
145
+ ],
146
+ "package": "@slipstream-ui/core",
147
+ "importPath": "@slipstream-ui/core",
148
+ "version": "0.11.6",
149
+ "sourceDir": "cover-image",
150
+ "exportName": "CoverImage"
151
+ }
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.4",
7
+ "version": "0.11.6",
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.11.4",
325
+ "version": "0.11.6",
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.11.4",
199
+ "version": "0.11.6",
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.11.4",
91
+ "version": "0.11.6",
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.11.4",
7
+ "version": "0.11.6",
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.11.4",
7
+ "version": "0.11.6",
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.11.4",
166
+ "version": "0.11.6",
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.11.4",
7
+ "version": "0.11.6",
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.11.4",
262
+ "version": "0.11.6",
263
263
  "sourceDir": "drawer",
264
264
  "exportName": "Drawer"
265
265
  }
@@ -61,6 +61,45 @@
61
61
  "sm",
62
62
  "md"
63
63
  ]
64
+ },
65
+ {
66
+ "name": "align",
67
+ "type": "'center' | 'start'",
68
+ "required": false,
69
+ "defaultValue": "center",
70
+ "description": "Horizontal alignment of content and actions. Use 'start' for content pages and filtered lists.",
71
+ "enum": [
72
+ "center",
73
+ "start"
74
+ ]
75
+ },
76
+ {
77
+ "name": "tone",
78
+ "type": "'plain' | 'panel'",
79
+ "required": false,
80
+ "defaultValue": "plain",
81
+ "description": "Surface treatment. 'panel' is a tinted, solid-bordered surface for content pages; 'plain' keeps the dashed outline.",
82
+ "enum": [
83
+ "plain",
84
+ "panel"
85
+ ]
86
+ },
87
+ {
88
+ "name": "linkComponent",
89
+ "type": "React.ElementType",
90
+ "required": false,
91
+ "description": "Custom link element for action hrefs (Next Link, react-router Link)."
92
+ },
93
+ {
94
+ "name": "linkHrefProp",
95
+ "type": "'href' | 'to'",
96
+ "required": false,
97
+ "defaultValue": "href",
98
+ "enum": [
99
+ "href",
100
+ "to"
101
+ ],
102
+ "description": "Prop used to pass the destination to linkComponent."
64
103
  }
65
104
  ],
66
105
  "examples": [
@@ -68,6 +107,11 @@
68
107
  "title": "Empty collection",
69
108
  "code": "<EmptyState\n title=\"No classes yet\"\n description=\"Create your first class to get started.\"\n action={<Button>New class</Button>}\n/>",
70
109
  "description": "Title, explanation and one primary action."
110
+ },
111
+ {
112
+ "title": "Filtered-list panel",
113
+ "code": "<EmptyState\n align=\"start\"\n tone=\"panel\"\n title=\"No matches\"\n description=\"Try widening the filters or clearing them.\"\n action={{ label: 'Clear filters', onClick: reset }}\n secondaryAction={<Link href=\"/items\">Browse all</Link>}\n/>",
114
+ "description": "Left-aligned tinted panel with multiple actions for content pages."
71
115
  }
72
116
  ],
73
117
  "antiPatterns": [
@@ -115,7 +159,7 @@
115
159
  ],
116
160
  "package": "@slipstream-ui/core",
117
161
  "importPath": "@slipstream-ui/core",
118
- "version": "0.11.4",
162
+ "version": "0.11.6",
119
163
  "sourceDir": "empty-state",
120
164
  "exportName": "EmptyState"
121
165
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.4",
7
+ "version": "0.11.6",
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.",