@slipstream-ui/core 0.11.4 → 0.11.7
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.
- package/dist/index.d.mts +107 -4
- package/dist/index.d.ts +107 -4
- package/dist/index.js +594 -442
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +489 -338
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.manifest.json +151 -0
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +45 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +7 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +29 -2
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +22 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +23 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/cover-image/CoverImage.d.ts +34 -0
- package/dist/src/components/cover-image/CoverImage.js +94 -0
- package/dist/src/components/cover-image/CoverImage.js.map +1 -0
- package/dist/src/components/cover-image/CoverImage.mjs +70 -0
- package/dist/src/components/cover-image/CoverImage.mjs.map +1 -0
- package/dist/src/components/cover-image/index.d.ts +1 -0
- package/dist/src/components/cover-image/index.js +29 -0
- package/dist/src/components/cover-image/index.js.map +1 -0
- package/dist/src/components/cover-image/index.mjs +5 -0
- package/dist/src/components/cover-image/index.mjs.map +1 -0
- package/dist/src/components/empty-state/EmptyState.d.ts +24 -0
- package/dist/src/components/empty-state/EmptyState.js +16 -6
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +16 -6
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/image/Image.d.ts +3 -1
- package/dist/src/components/image/Image.js +2 -0
- package/dist/src/components/image/Image.js.map +1 -1
- package/dist/src/components/image/Image.mjs +2 -0
- package/dist/src/components/image/Image.mjs.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +21 -0
- package/dist/src/components/segmented-control/SegmentedControl.js +47 -16
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +48 -17
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/components/site-header/SiteHeader.d.ts +7 -1
- package/dist/src/components/site-header/SiteHeader.js +5 -1
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +5 -1
- package/dist/src/components/site-header/SiteHeader.mjs.map +1 -1
- package/dist/src/components/stat-band/StatBand.d.ts +16 -0
- package/dist/src/components/stat-band/StatBand.js +46 -9
- package/dist/src/components/stat-band/StatBand.js.map +1 -1
- package/dist/src/components/stat-band/StatBand.mjs +46 -9
- package/dist/src/components/stat-band/StatBand.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/components/cover-image/CoverImage.test.tsx +88 -0
- package/src/components/cover-image/CoverImage.tsx +109 -0
- package/src/components/cover-image/index.ts +1 -0
- package/src/components/empty-state/EmptyState.test.tsx +33 -0
- package/src/components/empty-state/EmptyState.tsx +34 -6
- package/src/components/image/Image.tsx +4 -0
- package/src/components/segmented-control/SegmentedControl.test.tsx +64 -0
- package/src/components/segmented-control/SegmentedControl.tsx +69 -15
- package/src/components/site-header/SiteHeader.test.tsx +18 -0
- package/src/components/site-header/SiteHeader.tsx +11 -1
- package/src/components/stat-band/StatBand.test.tsx +26 -0
- package/src/components/stat-band/StatBand.tsx +52 -7
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +1 -1
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.manifest.json +151 -0
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +45 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +7 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +29 -2
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +22 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +23 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
- 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
|
-
{
|
|
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
|
|
76
|
+
'grid w-full',
|
|
77
|
+
panel ? 'gap-0 rounded-lg border border-border bg-card' : 'gap-8',
|
|
52
78
|
columnClasses[columns],
|
|
53
|
-
divided &&
|
|
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
|
|
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
|
|
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 &&
|
|
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
|
|
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';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.7",
|
|
8
8
|
"sourceDir": "announcement-bar",
|
|
9
9
|
"exportName": "AnnouncementBar",
|
|
10
10
|
"description": "Dismissible announcement bar with optional action, tone and sticky positioning.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.7",
|
|
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.
|
|
7
|
+
"version": "0.11.7",
|
|
8
8
|
"sourceDir": "article-card",
|
|
9
9
|
"exportName": "ArticleCard",
|
|
10
10
|
"description": "Linked article or resource card with media, eyebrow, title, summary and metadata.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.7",
|
|
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.
|
|
7
|
+
"version": "0.11.7",
|
|
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.
|
|
7
|
+
"version": "0.11.7",
|
|
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.
|
|
7
|
+
"version": "0.11.7",
|
|
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.7",
|
|
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.
|
|
7
|
+
"version": "0.11.7",
|
|
8
8
|
"sourceDir": "cta-section",
|
|
9
9
|
"exportName": "CTASection",
|
|
10
10
|
"description": "Full-width conversion band with eyebrow, headline, supporting copy and actions.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.7",
|
|
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.
|
|
7
|
+
"version": "0.11.7",
|
|
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.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.7",
|
|
8
8
|
"sourceDir": "document-card",
|
|
9
9
|
"exportName": "DocumentCard",
|
|
10
10
|
"description": "Document row with file metadata, access status and an optional download action.",
|
|
@@ -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.
|
|
162
|
+
"version": "0.11.7",
|
|
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.
|
|
7
|
+
"version": "0.11.7",
|
|
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.",
|