@slipstream-ui/core 0.7.0 → 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 (260) hide show
  1. package/dist/index.d.mts +135 -15
  2. package/dist/index.d.ts +135 -15
  3. package/dist/index.js +923 -710
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +922 -710
  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 +1 -1
  33. package/dist/manifests/dialog.manifest.json +1 -1
  34. package/dist/manifests/document-card.manifest.json +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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/drawer/Drawer.d.ts +25 -2
  126. package/dist/src/components/drawer/Drawer.js +97 -6
  127. package/dist/src/components/drawer/Drawer.js.map +1 -1
  128. package/dist/src/components/drawer/Drawer.mjs +97 -6
  129. package/dist/src/components/drawer/Drawer.mjs.map +1 -1
  130. package/dist/src/components/empty-state/EmptyState.d.ts +13 -4
  131. package/dist/src/components/empty-state/EmptyState.js +13 -1
  132. package/dist/src/components/empty-state/EmptyState.js.map +1 -1
  133. package/dist/src/components/empty-state/EmptyState.mjs +13 -1
  134. package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
  135. package/dist/src/components/metric-card/MetricCard.d.ts +23 -4
  136. package/dist/src/components/metric-card/MetricCard.js +32 -5
  137. package/dist/src/components/metric-card/MetricCard.js.map +1 -1
  138. package/dist/src/components/metric-card/MetricCard.mjs +32 -5
  139. package/dist/src/components/metric-card/MetricCard.mjs.map +1 -1
  140. package/dist/src/components/page-header/PageHeader.d.ts +4 -0
  141. package/dist/src/components/page-header/PageHeader.js +3 -2
  142. package/dist/src/components/page-header/PageHeader.js.map +1 -1
  143. package/dist/src/components/page-header/PageHeader.mjs +3 -2
  144. package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
  145. package/dist/src/components/separator/Separator.d.ts +3 -3
  146. package/dist/src/index.d.ts +1 -0
  147. package/dist/styles-full.css +1 -1
  148. package/dist/styles.css +1 -1
  149. package/package.json +3 -3
  150. package/src/components/accordion/Accordion.test.tsx +31 -0
  151. package/src/components/accordion/Accordion.tsx +27 -2
  152. package/src/components/auth-layout/AuthLayout.test.tsx +36 -0
  153. package/src/components/auth-layout/AuthLayout.tsx +20 -3
  154. package/src/components/badge/Badge.test.tsx +7 -0
  155. package/src/components/badge/Badge.tsx +8 -2
  156. package/src/components/bottom-nav/BottomNav.test.tsx +48 -0
  157. package/src/components/bottom-nav/BottomNav.tsx +117 -0
  158. package/src/components/bottom-nav/index.ts +1 -0
  159. package/src/components/drawer/Drawer.test.tsx +86 -1
  160. package/src/components/drawer/Drawer.tsx +135 -7
  161. package/src/components/empty-state/EmptyState.test.tsx +26 -1
  162. package/src/components/empty-state/EmptyState.tsx +40 -3
  163. package/src/components/metric-card/MetricCard.test.tsx +32 -0
  164. package/src/components/metric-card/MetricCard.tsx +45 -7
  165. package/src/components/page-header/PageHeader.test.tsx +13 -0
  166. package/src/components/page-header/PageHeader.tsx +5 -2
  167. package/src/index.ts +1 -0
  168. package/src/manifests/accordion.manifest.json +7 -1
  169. package/src/manifests/alert.manifest.json +1 -1
  170. package/src/manifests/announcement-bar.manifest.json +1 -1
  171. package/src/manifests/app-shell.manifest.json +1 -1
  172. package/src/manifests/applied-filters.manifest.json +1 -1
  173. package/src/manifests/article-card.manifest.json +1 -1
  174. package/src/manifests/auth-layout.manifest.json +19 -1
  175. package/src/manifests/autocomplete.manifest.json +1 -1
  176. package/src/manifests/avatar.manifest.json +1 -1
  177. package/src/manifests/badge.manifest.json +13 -1
  178. package/src/manifests/block.manifest.json +1 -1
  179. package/src/manifests/bottom-nav.manifest.json +130 -0
  180. package/src/manifests/breadcrumb.manifest.json +1 -1
  181. package/src/manifests/button-group.manifest.json +1 -1
  182. package/src/manifests/button.manifest.json +1 -1
  183. package/src/manifests/card.manifest.json +1 -1
  184. package/src/manifests/checkbox.manifest.json +1 -1
  185. package/src/manifests/comparison-table.manifest.json +1 -1
  186. package/src/manifests/confirm-dialog.manifest.json +1 -1
  187. package/src/manifests/contact-strip.manifest.json +1 -1
  188. package/src/manifests/container.manifest.json +1 -1
  189. package/src/manifests/cta-section.manifest.json +1 -1
  190. package/src/manifests/data-table.manifest.json +1 -1
  191. package/src/manifests/date-picker.manifest.json +1 -1
  192. package/src/manifests/date-range-picker.manifest.json +1 -1
  193. package/src/manifests/deal-card.manifest.json +1 -1
  194. package/src/manifests/dialog.manifest.json +1 -1
  195. package/src/manifests/document-card.manifest.json +1 -1
  196. package/src/manifests/drawer.manifest.json +48 -2
  197. package/src/manifests/empty-state.manifest.json +1 -1
  198. package/src/manifests/entity-card.manifest.json +1 -1
  199. package/src/manifests/feature-grid.manifest.json +1 -1
  200. package/src/manifests/feature-row.manifest.json +1 -1
  201. package/src/manifests/fieldset.manifest.json +1 -1
  202. package/src/manifests/file-upload.manifest.json +1 -1
  203. package/src/manifests/filter-bar.manifest.json +1 -1
  204. package/src/manifests/filter-chips.manifest.json +1 -1
  205. package/src/manifests/filter-panel.manifest.json +1 -1
  206. package/src/manifests/flex.manifest.json +1 -1
  207. package/src/manifests/form-field.manifest.json +1 -1
  208. package/src/manifests/form-layout.manifest.json +1 -1
  209. package/src/manifests/form.manifest.json +1 -1
  210. package/src/manifests/grid.manifest.json +1 -1
  211. package/src/manifests/heading.manifest.json +1 -1
  212. package/src/manifests/hero.manifest.json +1 -1
  213. package/src/manifests/input-group.manifest.json +1 -1
  214. package/src/manifests/input.manifest.json +1 -1
  215. package/src/manifests/label.manifest.json +1 -1
  216. package/src/manifests/link-tabs.manifest.json +1 -1
  217. package/src/manifests/link.manifest.json +1 -1
  218. package/src/manifests/list.manifest.json +1 -1
  219. package/src/manifests/load-more.manifest.json +1 -1
  220. package/src/manifests/logo-cloud.manifest.json +1 -1
  221. package/src/manifests/menu.manifest.json +1 -1
  222. package/src/manifests/metric-card.manifest.json +36 -4
  223. package/src/manifests/multi-select.manifest.json +1 -1
  224. package/src/manifests/newsletter.manifest.json +1 -1
  225. package/src/manifests/page-header.manifest.json +7 -1
  226. package/src/manifests/pagination.manifest.json +1 -1
  227. package/src/manifests/password-input.manifest.json +1 -1
  228. package/src/manifests/popover.manifest.json +1 -1
  229. package/src/manifests/process-steps.manifest.json +1 -1
  230. package/src/manifests/progress.manifest.json +1 -1
  231. package/src/manifests/prose.manifest.json +1 -1
  232. package/src/manifests/radio.manifest.json +1 -1
  233. package/src/manifests/range-slider.manifest.json +1 -1
  234. package/src/manifests/search.manifest.json +1 -1
  235. package/src/manifests/section-heading.manifest.json +1 -1
  236. package/src/manifests/section.manifest.json +1 -1
  237. package/src/manifests/segmented-control.manifest.json +1 -1
  238. package/src/manifests/select-menu.manifest.json +1 -1
  239. package/src/manifests/select.manifest.json +1 -1
  240. package/src/manifests/separator.manifest.json +1 -1
  241. package/src/manifests/site-footer.manifest.json +1 -1
  242. package/src/manifests/site-header.manifest.json +1 -1
  243. package/src/manifests/skeleton.manifest.json +1 -1
  244. package/src/manifests/spinner.manifest.json +1 -1
  245. package/src/manifests/stat-band.manifest.json +1 -1
  246. package/src/manifests/stepper.manifest.json +1 -1
  247. package/src/manifests/switch.manifest.json +1 -1
  248. package/src/manifests/table-card.manifest.json +1 -1
  249. package/src/manifests/table-of-contents.manifest.json +1 -1
  250. package/src/manifests/table.manifest.json +1 -1
  251. package/src/manifests/tabs.manifest.json +1 -1
  252. package/src/manifests/testimonial.manifest.json +1 -1
  253. package/src/manifests/text.manifest.json +1 -1
  254. package/src/manifests/textarea.manifest.json +1 -1
  255. package/src/manifests/theme-toggle.manifest.json +1 -1
  256. package/src/manifests/time-picker.manifest.json +1 -1
  257. package/src/manifests/timeline.manifest.json +1 -1
  258. package/src/manifests/toast.manifest.json +1 -1
  259. package/src/manifests/tombstone-card.manifest.json +1 -1
  260. package/src/manifests/tooltip.manifest.json +1 -1
@@ -46,3 +46,16 @@ describe('PageHeader hero options', () => {
46
46
  expect(screen.getByRole('heading', { level: 1 })).toHaveClass('text-4xl');
47
47
  });
48
48
  });
49
+
50
+ describe('PageHeader migration aliases', () => {
51
+ it('renders subtitle when description is absent', () => {
52
+ render(<PageHeader title="Billing" subtitle="Manage invoices." />);
53
+ expect(screen.getByText('Manage invoices.')).toBeInTheDocument();
54
+ });
55
+
56
+ it('prefers description when both description and subtitle are passed', () => {
57
+ render(<PageHeader title="Billing" description="Canonical" subtitle="Alias" />);
58
+ expect(screen.getByText('Canonical')).toBeInTheDocument();
59
+ expect(screen.queryByText('Alias')).not.toBeInTheDocument();
60
+ });
61
+ });
@@ -4,6 +4,8 @@ import { cn } from '../../utils/cn';
4
4
  export type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
5
5
  title: string;
6
6
  description?: string;
7
+ /** Alias for `description` (migration-friendly). */
8
+ subtitle?: string;
7
9
  /** Breadcrumbs/eyebrow above the title. */
8
10
  breadcrumbs?: React.ReactNode;
9
11
  /** Right-aligned actions (buttons, menus). */
@@ -37,9 +39,10 @@ const sizeClasses: Record<NonNullable<PageHeaderProps['size']>, string> = {
37
39
  * and heading hierarchy.
38
40
  */
39
41
  export const PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(function PageHeader(
40
- { title, description, breadcrumbs, actions, eyebrow, size = 'md', align = 'left', titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props },
42
+ { title, description, subtitle, breadcrumbs, actions, eyebrow, size = 'md', align = 'left', titleClassName, descriptionClassName, eyebrowClassName, className, children, ...props },
41
43
  ref
42
44
  ) {
45
+ const supporting = description ?? subtitle;
43
46
  return (
44
47
  <div ref={ref} className={cn('flex flex-col gap-2', align === 'center' && 'items-center text-center', className)} {...props}>
45
48
  {breadcrumbs && <div className="text-sm text-muted-foreground">{breadcrumbs}</div>}
@@ -49,7 +52,7 @@ export const PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(func
49
52
  <div className={cn('flex w-full flex-wrap items-start justify-between gap-3', align === 'center' && 'justify-center')}>
50
53
  <div className={cn('min-w-0', align === 'center' && 'flex flex-col items-center')}>
51
54
  <h1 className={cn('font-semibold tracking-tight', sizeClasses[size], titleClassName)}>{title}</h1>
52
- {description && <p className={cn('mt-2 max-w-2xl text-base text-muted-foreground', descriptionClassName)}>{description}</p>}
55
+ {supporting && <p className={cn('mt-2 max-w-2xl text-base text-muted-foreground', descriptionClassName)}>{supporting}</p>}
53
56
  </div>
54
57
  {actions && <div className="flex shrink-0 items-center gap-2">{actions}</div>}
55
58
  </div>
package/src/index.ts CHANGED
@@ -8,6 +8,7 @@ export * from './components/button-group';
8
8
  export * from './components/input';
9
9
  export * from './components/input-group';
10
10
  export * from './components/badge';
11
+ export * from './components/bottom-nav';
11
12
  export * from './components/avatar';
12
13
  export * from './components/spinner';
13
14
  export * from './components/toast';
@@ -71,6 +71,12 @@
71
71
  "lg",
72
72
  "16"
73
73
  ]
74
+ },
75
+ {
76
+ "name": "items",
77
+ "type": "AccordionSection[]",
78
+ "required": false,
79
+ "description": "Declarative sections ({ id, title, content, disabled }); rendered as an AccordionItem per entry instead of children."
74
80
  }
75
81
  ],
76
82
  "examples": [
@@ -132,7 +138,7 @@
132
138
  ],
133
139
  "package": "@slipstream-ui/core",
134
140
  "importPath": "@slipstream-ui/core",
135
- "version": "0.7.0",
141
+ "version": "0.8.0",
136
142
  "sourceDir": "accordion",
137
143
  "exportName": "Accordion"
138
144
  }
@@ -91,7 +91,7 @@
91
91
  ],
92
92
  "package": "@slipstream-ui/core",
93
93
  "importPath": "@slipstream-ui/core",
94
- "version": "0.7.0",
94
+ "version": "0.8.0",
95
95
  "sourceDir": "alert",
96
96
  "exportName": "Alert"
97
97
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.7.0",
7
+ "version": "0.8.0",
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.7.0",
217
+ "version": "0.8.0",
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.7.0",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "applied-filters",
9
9
  "exportName": "AppliedFilters",
10
10
  "description": "Applied-filter summary with a live count, removable chips and an edit action.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.7.0",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "article-card",
9
9
  "exportName": "ArticleCard",
10
10
  "description": "Linked article or resource card with media, eyebrow, title, summary and metadata.",
@@ -17,12 +17,24 @@
17
17
  "required": false,
18
18
  "description": "Supporting line under the heading."
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": "brand",
22
28
  "type": "ReactNode",
23
29
  "required": false,
24
30
  "description": "Mark rendered above the card."
25
31
  },
32
+ {
33
+ "name": "logo",
34
+ "type": "ReactNode",
35
+ "required": false,
36
+ "description": "Alias for brand (migration-friendly)."
37
+ },
26
38
  {
27
39
  "name": "footer",
28
40
  "type": "ReactNode",
@@ -53,6 +65,12 @@
53
65
  "type": "ReactNode",
54
66
  "required": false,
55
67
  "description": "Optional panel rendered beside the card in the split variant. Ignored when centered; omitting it falls back to centered."
68
+ },
69
+ {
70
+ "name": "maxWidth",
71
+ "type": "number | string",
72
+ "required": false,
73
+ "description": "Overrides the card width: pixels (420) or any CSS width (\"26rem\")."
56
74
  }
57
75
  ],
58
76
  "examples": [
@@ -106,7 +124,7 @@
106
124
  ],
107
125
  "package": "@slipstream-ui/core",
108
126
  "importPath": "@slipstream-ui/core",
109
- "version": "0.7.0",
127
+ "version": "0.8.0",
110
128
  "sourceDir": "auth-layout",
111
129
  "exportName": "AuthLayout"
112
130
  }
@@ -194,7 +194,7 @@
194
194
  ],
195
195
  "package": "@slipstream-ui/core",
196
196
  "importPath": "@slipstream-ui/core",
197
- "version": "0.7.0",
197
+ "version": "0.8.0",
198
198
  "sourceDir": "autocomplete",
199
199
  "exportName": "Autocomplete"
200
200
  }
@@ -152,7 +152,7 @@
152
152
  ],
153
153
  "package": "@slipstream-ui/core",
154
154
  "importPath": "@slipstream-ui/core",
155
- "version": "0.7.0",
155
+ "version": "0.8.0",
156
156
  "sourceDir": "avatar",
157
157
  "exportName": "Avatar"
158
158
  }
@@ -54,6 +54,18 @@
54
54
  "required": false,
55
55
  "defaultValue": "false",
56
56
  "description": "Render the child element with badge styling."
57
+ },
58
+ {
59
+ "name": "size",
60
+ "type": "'sm' | 'md' | 'lg'",
61
+ "required": false,
62
+ "defaultValue": "md",
63
+ "description": "Pill scale: sm for dense tables, lg for hero and metadata strips.",
64
+ "enum": [
65
+ "sm",
66
+ "md",
67
+ "lg"
68
+ ]
57
69
  }
58
70
  ],
59
71
  "examples": [
@@ -193,7 +205,7 @@
193
205
  ],
194
206
  "package": "@slipstream-ui/core",
195
207
  "importPath": "@slipstream-ui/core",
196
- "version": "0.7.0",
208
+ "version": "0.8.0",
197
209
  "sourceDir": "badge",
198
210
  "exportName": "Badge"
199
211
  }
@@ -101,7 +101,7 @@
101
101
  ],
102
102
  "package": "@slipstream-ui/core",
103
103
  "importPath": "@slipstream-ui/core",
104
- "version": "0.7.0",
104
+ "version": "0.8.0",
105
105
  "sourceDir": "block",
106
106
  "exportName": "Block"
107
107
  }
@@ -0,0 +1,130 @@
1
+ {
2
+ "id": "bottom-nav",
3
+ "name": "BottomNav",
4
+ "tier": "organism",
5
+ "description": "Mobile bottom tab bar for the 3-5 primary destinations of an app shell, with an active tab, count badges and safe-area padding.",
6
+ "designIntent": "Mobile apps put primary navigation within thumb reach at the bottom of the screen, but hand-rolled bars drift on target size, active state and the iOS home indicator. BottomNav owns the landmark, the aria-current state, 44px minimum targets and env(safe-area-inset-bottom) so every mobile shell behaves the same.",
7
+ "props": [
8
+ {
9
+ "name": "items",
10
+ "type": "BottomNavItem[]",
11
+ "required": true,
12
+ "description": "Tabs in order: href, label, optional icon, active, badge and disabled."
13
+ },
14
+ {
15
+ "name": "linkComponent",
16
+ "type": "React.ElementType",
17
+ "required": false,
18
+ "description": "Router link component (Next Link, react-router Link)."
19
+ },
20
+ {
21
+ "name": "linkHrefProp",
22
+ "type": "'href' | 'to'",
23
+ "required": false,
24
+ "defaultValue": "href",
25
+ "description": "Prop used to pass the destination to linkComponent.",
26
+ "enum": [
27
+ "href",
28
+ "to"
29
+ ]
30
+ },
31
+ {
32
+ "name": "label",
33
+ "type": "string",
34
+ "required": false,
35
+ "defaultValue": "Primary",
36
+ "description": "Accessible label for the nav landmark."
37
+ },
38
+ {
39
+ "name": "fixed",
40
+ "type": "boolean",
41
+ "required": false,
42
+ "defaultValue": "true",
43
+ "description": "Pin the bar to the bottom edge with safe-area padding."
44
+ },
45
+ {
46
+ "name": "mobileOnly",
47
+ "type": "boolean",
48
+ "required": false,
49
+ "defaultValue": "true",
50
+ "description": "Hide the bar from the md breakpoint up."
51
+ }
52
+ ],
53
+ "examples": [
54
+ {
55
+ "title": "Mobile app shell tabs",
56
+ "code": "<BottomNav\n items={[\n { href: '/', label: 'Home', icon: <HomeIcon />, active: true },\n { href: '/search', label: 'Search', icon: <SearchIcon /> },\n { href: '/alerts', label: 'Alerts', icon: <BellIcon />, badge: 3 },\n ]}\n/>",
57
+ "description": "Three primary destinations with one active tab."
58
+ }
59
+ ],
60
+ "antiPatterns": [
61
+ {
62
+ "title": "Don't stack more than five tabs",
63
+ "explanation": "Targets stop being thumb-reachable and labels start truncating. Move the extras into a More destination.",
64
+ "example": "// Avoid\n<BottomNav items={eightItems} />\n\n// Prefer 3-5 items plus a More tab"
65
+ },
66
+ {
67
+ "title": "Don't use BottomNav for desktop navigation",
68
+ "explanation": "mobileOnly hides the bar at md and up; desktop keeps SiteHeader/Sidebar.",
69
+ "example": "// Avoid\n<BottomNav items={items} mobileOnly={false} />\n\n// Prefer desktop nav in SiteHeader or Sidebar"
70
+ }
71
+ ],
72
+ "accessibility": [
73
+ {
74
+ "feature": "Navigation landmark",
75
+ "implementation": "Renders <nav> with an accessible name (default \"Primary\")",
76
+ "userRequirements": "Give each bar a distinct label when a page has more than one nav"
77
+ },
78
+ {
79
+ "feature": "Current tab",
80
+ "implementation": "aria-current=\"page\" on the active tab only",
81
+ "userRequirements": "Set active from the router's current location"
82
+ },
83
+ {
84
+ "feature": "Target size",
85
+ "implementation": "Every tab is at least 56px tall with a 44px minimum target",
86
+ "userRequirements": "Keep icons decorative; the label carries the name"
87
+ }
88
+ ],
89
+ "contentGuidelines": [
90
+ {
91
+ "contentType": "Tab labels",
92
+ "guidelines": [
93
+ "One word where possible",
94
+ "Sentence case",
95
+ "Under 12 characters"
96
+ ],
97
+ "goodExamples": [
98
+ "Home",
99
+ "Search",
100
+ "Alerts"
101
+ ],
102
+ "badExamples": [
103
+ "Go to the alerts page"
104
+ ]
105
+ }
106
+ ],
107
+ "compositionRules": [
108
+ {
109
+ "component": "AppShell",
110
+ "relationship": "Pair with AppShell and add bottom padding so content is not hidden behind the bar",
111
+ "example": "<AppShell><main className=\"pb-20\">...</main><BottomNav items={items} /></AppShell>"
112
+ },
113
+ {
114
+ "component": "Badge",
115
+ "relationship": "Counts ride in the item's badge slot; keep them to a single number",
116
+ "example": "<BottomNav items={[{ href: '/alerts', label: 'Alerts', badge: 3 }]} />"
117
+ }
118
+ ],
119
+ "relatedComponents": [
120
+ "AppShell",
121
+ "Sidebar",
122
+ "SiteHeader",
123
+ "Badge"
124
+ ],
125
+ "package": "@slipstream-ui/core",
126
+ "importPath": "@slipstream-ui/core",
127
+ "version": "0.8.0",
128
+ "sourceDir": "bottom-nav",
129
+ "exportName": "BottomNav"
130
+ }
@@ -129,7 +129,7 @@
129
129
  ],
130
130
  "package": "@slipstream-ui/core",
131
131
  "importPath": "@slipstream-ui/core",
132
- "version": "0.7.0",
132
+ "version": "0.8.0",
133
133
  "sourceDir": "breadcrumb",
134
134
  "exportName": "Breadcrumb"
135
135
  }
@@ -105,7 +105,7 @@
105
105
  ],
106
106
  "package": "@slipstream-ui/core",
107
107
  "importPath": "@slipstream-ui/core",
108
- "version": "0.7.0",
108
+ "version": "0.8.0",
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.7.0",
256
+ "version": "0.8.0",
257
257
  "sourceDir": "button",
258
258
  "exportName": "Button"
259
259
  }
@@ -86,7 +86,7 @@
86
86
  ],
87
87
  "package": "@slipstream-ui/core",
88
88
  "importPath": "@slipstream-ui/core",
89
- "version": "0.7.0",
89
+ "version": "0.8.0",
90
90
  "sourceDir": "card",
91
91
  "exportName": "Card"
92
92
  }
@@ -160,7 +160,7 @@
160
160
  ],
161
161
  "package": "@slipstream-ui/core",
162
162
  "importPath": "@slipstream-ui/core",
163
- "version": "0.7.0",
163
+ "version": "0.8.0",
164
164
  "sourceDir": "checkbox",
165
165
  "exportName": "Checkbox"
166
166
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.7.0",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "comparison-table",
9
9
  "exportName": "ComparisonTable",
10
10
  "description": "Marketing comparison table with check/dash boolean cells, a highlighted column and responsive overflow.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.7.0",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "confirm-dialog",
9
9
  "exportName": "ConfirmDialog",
10
10
  "description": "Accessible confirmation dialog with async pending state, destructive variant and cancellable actions, built on Dialog.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.7.0",
7
+ "version": "0.8.0",
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.7.0",
7
+ "version": "0.8.0",
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.7.0",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "cta-section",
9
9
  "exportName": "CTASection",
10
10
  "description": "Full-width conversion band with eyebrow, headline, supporting copy and actions.",
@@ -315,7 +315,7 @@
315
315
  ],
316
316
  "package": "@slipstream-ui/core",
317
317
  "importPath": "@slipstream-ui/core",
318
- "version": "0.7.0",
318
+ "version": "0.8.0",
319
319
  "sourceDir": "data-table",
320
320
  "exportName": "DataTable"
321
321
  }
@@ -88,7 +88,7 @@
88
88
  ],
89
89
  "package": "@slipstream-ui/core",
90
90
  "importPath": "@slipstream-ui/core",
91
- "version": "0.7.0",
91
+ "version": "0.8.0",
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.7.0",
7
+ "version": "0.8.0",
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.7.0",
7
+ "version": "0.8.0",
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.7.0",
166
+ "version": "0.8.0",
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.7.0",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "document-card",
9
9
  "exportName": "DocumentCard",
10
10
  "description": "Document row with file metadata, access status and an optional download action.",
@@ -18,9 +18,15 @@
18
18
  {
19
19
  "name": "onOpenChange",
20
20
  "type": "(open: boolean) => void",
21
- "required": true,
21
+ "required": false,
22
22
  "description": "Close requests (✕, Escape, backdrop, your own triggers)."
23
23
  },
24
+ {
25
+ "name": "onClose",
26
+ "type": "() => void",
27
+ "required": false,
28
+ "description": "Close-request alias for onOpenChange(false); used when only a close handler is passed."
29
+ },
24
30
  {
25
31
  "name": "title",
26
32
  "type": "string",
@@ -88,6 +94,46 @@
88
94
  "60vh"
89
95
  ]
90
96
  },
97
+ {
98
+ "name": "resizable",
99
+ "type": "boolean",
100
+ "required": false,
101
+ "defaultValue": "false",
102
+ "description": "Drag the inner edge to resize a left/right drawer. Arrow keys nudge 16px, Shift+Arrow 64px, Home/End jump to the bounds. Ignored for top/bottom drawers."
103
+ },
104
+ {
105
+ "name": "minWidth",
106
+ "type": "number",
107
+ "required": false,
108
+ "defaultValue": "240",
109
+ "description": "Lower width bound in pixels while resizable."
110
+ },
111
+ {
112
+ "name": "maxWidth",
113
+ "type": "number",
114
+ "required": false,
115
+ "defaultValue": "960",
116
+ "description": "Upper width bound in pixels while resizable."
117
+ },
118
+ {
119
+ "name": "defaultWidth",
120
+ "type": "number",
121
+ "required": false,
122
+ "description": "Initial width in pixels while resizable; defaults to the size preset."
123
+ },
124
+ {
125
+ "name": "onWidthChange",
126
+ "type": "(width: number) => void",
127
+ "required": false,
128
+ "description": "Fired with the next width in pixels when a resize commits."
129
+ },
130
+ {
131
+ "name": "resizeLabel",
132
+ "type": "string",
133
+ "required": false,
134
+ "defaultValue": "Resize drawer",
135
+ "description": "Accessible label for the resize handle."
136
+ },
91
137
  {
92
138
  "name": "closeOnBackdrop",
93
139
  "type": "boolean",
@@ -213,7 +259,7 @@
213
259
  ],
214
260
  "package": "@slipstream-ui/core",
215
261
  "importPath": "@slipstream-ui/core",
216
- "version": "0.7.0",
262
+ "version": "0.8.0",
217
263
  "sourceDir": "drawer",
218
264
  "exportName": "Drawer"
219
265
  }
@@ -115,7 +115,7 @@
115
115
  ],
116
116
  "package": "@slipstream-ui/core",
117
117
  "importPath": "@slipstream-ui/core",
118
- "version": "0.7.0",
118
+ "version": "0.8.0",
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.7.0",
7
+ "version": "0.8.0",
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.7.0",
7
+ "version": "0.8.0",
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.7.0",
7
+ "version": "0.8.0",
8
8
  "sourceDir": "feature-row",
9
9
  "exportName": "FeatureRow",
10
10
  "description": "Alternating media and copy row for mid-page feature sections.",