@slipstream-ui/core 0.11.3 → 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.
- package/dist/index.d.mts +126 -7
- package/dist/index.d.ts +126 -7
- package/dist/index.js +605 -444
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +500 -340
- 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 +16 -4
- 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 +1 -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/form-layout/FormLayout.d.ts +26 -4
- package/dist/src/components/form-layout/FormLayout.js +16 -3
- package/dist/src/components/form-layout/FormLayout.js.map +1 -1
- package/dist/src/components/form-layout/FormLayout.mjs +16 -3
- package/dist/src/components/form-layout/FormLayout.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/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 +1 -1
- 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/form-layout/FormLayout.test.tsx +26 -0
- package/src/components/form-layout/FormLayout.tsx +37 -5
- 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/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 +16 -4
- 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 +1 -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
|
@@ -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.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.
|
|
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.
|
|
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.
|
|
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.",
|
|
@@ -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.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.
|
|
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.",
|
|
@@ -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.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.",
|
|
@@ -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.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.
|
|
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.",
|
|
@@ -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.6",
|
|
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.11.
|
|
7
|
+
"version": "0.11.6",
|
|
8
8
|
"sourceDir": "feature-row",
|
|
9
9
|
"exportName": "FeatureRow",
|
|
10
10
|
"description": "Alternating media and copy row for mid-page feature sections.",
|
|
@@ -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.6",
|
|
8
8
|
"sourceDir": "filter-chips",
|
|
9
9
|
"exportName": "FilterChips",
|
|
10
10
|
"description": "Active-filter summary with removable chips and a clear-all action.",
|
|
@@ -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.6",
|
|
8
8
|
"sourceDir": "filter-panel",
|
|
9
9
|
"exportName": "FilterPanel",
|
|
10
10
|
"description": "Structured filter panel with collapsible sections and reset/apply actions.",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "columns",
|
|
26
|
-
"type": "1 | 2 | 3 | 4",
|
|
26
|
+
"type": "1 | 2 | 3 | 4 | { base?: 1|2|3|4; sm?: 1|2|3|4; md?: 1|2|3|4; lg?: 1|2|3|4; xl?: 1|2|3|4 }",
|
|
27
27
|
"defaultValue": "2",
|
|
28
28
|
"required": false,
|
|
29
|
-
"description": "Grid column count (literal classes survive CSS purging).",
|
|
29
|
+
"description": "Grid column count (literal classes survive CSS purging), or per-breakpoint counts like { base: 1, md: 2 }.",
|
|
30
30
|
"examples": [
|
|
31
31
|
"2",
|
|
32
|
-
"
|
|
32
|
+
"{ base: 1, md: 2 }"
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -51,12 +51,24 @@
|
|
|
51
51
|
"Billing details"
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
+
{
|
|
55
|
+
"name": "legendClassName",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"required": false,
|
|
58
|
+
"description": "Extra classes for the legend (fieldset mode)."
|
|
59
|
+
},
|
|
54
60
|
{
|
|
55
61
|
"name": "description",
|
|
56
62
|
"type": "string",
|
|
57
63
|
"required": false,
|
|
58
64
|
"description": "Supporting line under the legend (fieldset mode)."
|
|
59
65
|
},
|
|
66
|
+
{
|
|
67
|
+
"name": "descriptionClassName",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"required": false,
|
|
70
|
+
"description": "Extra classes for the description line (fieldset mode)."
|
|
71
|
+
},
|
|
60
72
|
{
|
|
61
73
|
"name": "as",
|
|
62
74
|
"type": "'div' | 'fieldset'",
|
|
@@ -130,7 +142,7 @@
|
|
|
130
142
|
],
|
|
131
143
|
"package": "@slipstream-ui/core",
|
|
132
144
|
"importPath": "@slipstream-ui/core",
|
|
133
|
-
"version": "0.11.
|
|
145
|
+
"version": "0.11.6",
|
|
134
146
|
"sourceDir": "form-layout",
|
|
135
147
|
"exportName": "FormLayout"
|
|
136
148
|
}
|
|
@@ -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.6",
|
|
8
8
|
"sourceDir": "hero",
|
|
9
9
|
"exportName": "Hero",
|
|
10
10
|
"description": "Responsive marketing hero with badge, eyebrow, headline, copy, actions and an optional media slot.",
|
|
@@ -70,6 +70,12 @@
|
|
|
70
70
|
"required": false,
|
|
71
71
|
"description": "Additional image classes, merged with className"
|
|
72
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"name": "sizes",
|
|
75
|
+
"type": "string",
|
|
76
|
+
"required": false,
|
|
77
|
+
"description": "Responsive sizes hint for the browser's source selection"
|
|
78
|
+
},
|
|
73
79
|
{
|
|
74
80
|
"name": "style",
|
|
75
81
|
"type": "React.CSSProperties",
|
|
@@ -136,7 +142,7 @@
|
|
|
136
142
|
],
|
|
137
143
|
"package": "@slipstream-ui/core",
|
|
138
144
|
"importPath": "@slipstream-ui/core",
|
|
139
|
-
"version": "0.11.
|
|
145
|
+
"version": "0.11.6",
|
|
140
146
|
"sourceDir": "image",
|
|
141
147
|
"exportName": "Image"
|
|
142
148
|
}
|
|
@@ -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.6",
|
|
8
8
|
"sourceDir": "link",
|
|
9
9
|
"exportName": "Link",
|
|
10
10
|
"description": "Inline link primitive with default/muted/underline/arrow/external variants, asChild router support and safe external handling.",
|
|
@@ -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.6",
|
|
8
8
|
"sourceDir": "load-more",
|
|
9
9
|
"exportName": "LoadMore",
|
|
10
10
|
"description": "Load-more control with pending and end-of-list states.",
|
|
@@ -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.6",
|
|
8
8
|
"sourceDir": "logo-cloud",
|
|
9
9
|
"exportName": "LogoCloud",
|
|
10
10
|
"description": "Trust strip for member, customer or partner logos with captions, columns and optional links.",
|