@slipstream-ui/core 0.11.8 → 0.11.10
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 +176 -9
- package/dist/index.d.ts +176 -9
- package/dist/index.js +1297 -905
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1294 -905
- 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 +4 -2
- 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 +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +22 -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 +1 -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 +1 -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-toolbar.manifest.json +120 -0
- 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/media-card.manifest.json +161 -0
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/month-schedule.manifest.json +217 -0
- 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 +4 -4
- 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 +1 -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/button/Button.d.ts +2 -2
- package/dist/src/components/button/Button.js +1 -0
- package/dist/src/components/button/Button.js.map +1 -1
- package/dist/src/components/button/Button.mjs +1 -0
- package/dist/src/components/button/Button.mjs.map +1 -1
- package/dist/src/components/data-table/DataTable.d.ts +12 -1
- package/dist/src/components/data-table/DataTable.js +189 -112
- package/dist/src/components/data-table/DataTable.js.map +1 -1
- package/dist/src/components/data-table/DataTable.mjs +189 -112
- package/dist/src/components/data-table/DataTable.mjs.map +1 -1
- package/dist/src/components/list-toolbar/ListToolbar.d.ts +25 -0
- package/dist/src/components/list-toolbar/ListToolbar.js +68 -0
- package/dist/src/components/list-toolbar/ListToolbar.js.map +1 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs +44 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs.map +1 -0
- package/dist/src/components/list-toolbar/index.d.ts +1 -0
- package/dist/src/components/list-toolbar/index.js +23 -0
- package/dist/src/components/list-toolbar/index.js.map +1 -0
- package/dist/src/components/list-toolbar/index.mjs +2 -0
- package/dist/src/components/list-toolbar/index.mjs.map +1 -0
- package/dist/src/components/media-card/MediaCard.d.ts +61 -0
- package/dist/src/components/media-card/MediaCard.js +88 -0
- package/dist/src/components/media-card/MediaCard.js.map +1 -0
- package/dist/src/components/media-card/MediaCard.mjs +54 -0
- package/dist/src/components/media-card/MediaCard.mjs.map +1 -0
- package/dist/src/components/media-card/index.d.ts +1 -0
- package/dist/src/components/media-card/index.js +23 -0
- package/dist/src/components/media-card/index.js.map +1 -0
- package/dist/src/components/media-card/index.mjs +2 -0
- package/dist/src/components/media-card/index.mjs.map +1 -0
- package/dist/src/components/month-schedule/MonthSchedule.d.ts +56 -0
- package/dist/src/components/month-schedule/MonthSchedule.js +245 -0
- package/dist/src/components/month-schedule/MonthSchedule.js.map +1 -0
- package/dist/src/components/month-schedule/MonthSchedule.mjs +219 -0
- package/dist/src/components/month-schedule/MonthSchedule.mjs.map +1 -0
- package/dist/src/components/month-schedule/index.d.ts +1 -0
- package/dist/src/components/month-schedule/index.js +23 -0
- package/dist/src/components/month-schedule/index.js.map +1 -0
- package/dist/src/components/month-schedule/index.mjs +2 -0
- package/dist/src/components/month-schedule/index.mjs.map +1 -0
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +20 -4
- package/dist/src/components/segmented-control/SegmentedControl.js +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/button/Button.ssr.test.tsx +1 -1
- package/src/components/button/Button.test.tsx +6 -0
- package/src/components/button/Button.tsx +1 -0
- package/src/components/data-table/DataTable.test.tsx +99 -0
- package/src/components/data-table/DataTable.tsx +115 -1
- package/src/components/list-toolbar/ListToolbar.test.tsx +50 -0
- package/src/components/list-toolbar/ListToolbar.tsx +64 -0
- package/src/components/list-toolbar/index.ts +1 -0
- package/src/components/media-card/MediaCard.test.tsx +97 -0
- package/src/components/media-card/MediaCard.tsx +116 -0
- package/src/components/media-card/index.ts +1 -0
- package/src/components/month-schedule/MonthSchedule.test.tsx +137 -0
- package/src/components/month-schedule/MonthSchedule.tsx +332 -0
- package/src/components/month-schedule/index.ts +1 -0
- package/src/components/segmented-control/SegmentedControl.test.tsx +51 -0
- package/src/components/segmented-control/SegmentedControl.tsx +36 -4
- package/src/index.ts +3 -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 +4 -2
- 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 +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +22 -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 +1 -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 +1 -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-toolbar.manifest.json +120 -0
- 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/media-card.manifest.json +161 -0
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/month-schedule.manifest.json +217 -0
- 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 +4 -4
- 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 +1 -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
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "list-toolbar",
|
|
3
|
+
"name": "ListToolbar",
|
|
4
|
+
"tier": "atom",
|
|
5
|
+
"description": "Slim result bar for filtered lists: count, page position, sort note, and slots for a view switch and sort control.",
|
|
6
|
+
"designIntent": "Every directory rebuilds the same row above its results: \"42 events · Page 2 of 5\" on the left, a grid/list SegmentedControl and a sort Select on the right. ListToolbar fixes that layout so the summary stays consistent and screen readers hear count changes.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "count",
|
|
10
|
+
"type": "number",
|
|
11
|
+
"required": false,
|
|
12
|
+
"description": "Number of matching results; renders \"{count} {countLabel}\"."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "countLabel",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"required": false,
|
|
18
|
+
"defaultValue": "results",
|
|
19
|
+
"description": "Noun for the result count."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "position",
|
|
23
|
+
"type": "ReactNode",
|
|
24
|
+
"required": false,
|
|
25
|
+
"description": "Page or range position, e.g. \"Page 2 of 5\" or \"Showing 21–40 of 137\"."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "note",
|
|
29
|
+
"type": "ReactNode",
|
|
30
|
+
"required": false,
|
|
31
|
+
"description": "Muted note after the position, e.g. \"Sorted by date, soonest first\"."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "align",
|
|
35
|
+
"type": "'between' | 'start' | 'center' | 'end'",
|
|
36
|
+
"required": false,
|
|
37
|
+
"defaultValue": "between",
|
|
38
|
+
"description": "Distribution of summary and controls.",
|
|
39
|
+
"enum": [
|
|
40
|
+
"between",
|
|
41
|
+
"start",
|
|
42
|
+
"center",
|
|
43
|
+
"end"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "children",
|
|
48
|
+
"type": "ReactNode",
|
|
49
|
+
"required": false,
|
|
50
|
+
"description": "Controls rendered at the far end: SegmentedControl view switch, sort Select."
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"examples": [
|
|
54
|
+
{
|
|
55
|
+
"title": "Directory result bar",
|
|
56
|
+
"code": "<ListToolbar\n count={events.length}\n countLabel=\"events\"\n position={\"Page \" + page + \" of \" + pages}\n note=\"Sorted by date, soonest first\"\n>\n <SegmentedControl\n options={[{ value: 'grid', label: 'Grid' }, { value: 'list', label: 'List' }]}\n value={view}\n onValueChange={setView}\n />\n <Select label=\"Sort\" options={sortOptions} value={sort} onValueChange={setSort} />\n</ListToolbar>",
|
|
57
|
+
"description": "Count and position on the left; view switch and sort on the right."
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"antiPatterns": [
|
|
61
|
+
{
|
|
62
|
+
"title": "Don't put filter inputs in the bar",
|
|
63
|
+
"explanation": "ListToolbar summarizes results; search fields and filter selects belong in FilterBar above it. Children is for the view switch and sort control only.",
|
|
64
|
+
"example": "// Avoid\n<ListToolbar><Input placeholder=\"Search…\" /><Select … /></ListToolbar>\n\n// Prefer\n<FilterBar searchValue={q} onSearchChange={setQ}><Select … /></FilterBar>\n<ListToolbar count={n}><SegmentedControl … /><Select … /></ListToolbar>"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"accessibility": [
|
|
68
|
+
{
|
|
69
|
+
"feature": "Live result count",
|
|
70
|
+
"implementation": "The summary line is aria-live=polite so filtering announces the new count",
|
|
71
|
+
"userRequirements": "Keep count updates meaningful; avoid announcing on every keystroke if the list filters live"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"contentGuidelines": [
|
|
75
|
+
{
|
|
76
|
+
"contentType": "Count label",
|
|
77
|
+
"guidelines": [
|
|
78
|
+
"Name the collection being counted",
|
|
79
|
+
"Use singular nouns for count=1 if the host needs it"
|
|
80
|
+
],
|
|
81
|
+
"goodExamples": [
|
|
82
|
+
"events",
|
|
83
|
+
"studios"
|
|
84
|
+
],
|
|
85
|
+
"badExamples": [
|
|
86
|
+
"items",
|
|
87
|
+
"results"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"compositionRules": [
|
|
92
|
+
{
|
|
93
|
+
"component": "SegmentedControl",
|
|
94
|
+
"relationship": "Link-mode SegmentedControl is the canonical grid/list view switch",
|
|
95
|
+
"example": "<ListToolbar …><SegmentedControl options={views} value={view} onValueChange={setView} /></ListToolbar>"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"component": "Select",
|
|
99
|
+
"relationship": "Sort control renders in children",
|
|
100
|
+
"example": "<ListToolbar …><Select label=\"Sort\" … /></ListToolbar>"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"component": "FilterBar",
|
|
104
|
+
"relationship": "FilterBar owns the input row above; ListToolbar owns the result summary below it",
|
|
105
|
+
"example": "<FilterBar … />\n<ListToolbar … />\n{results}"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"relatedComponents": [
|
|
109
|
+
"FilterBar",
|
|
110
|
+
"SegmentedControl",
|
|
111
|
+
"Select",
|
|
112
|
+
"Pagination",
|
|
113
|
+
"EmptyState"
|
|
114
|
+
],
|
|
115
|
+
"package": "@slipstream-ui/core",
|
|
116
|
+
"importPath": "@slipstream-ui/core",
|
|
117
|
+
"version": "0.11.10",
|
|
118
|
+
"sourceDir": "list-toolbar",
|
|
119
|
+
"exportName": "ListToolbar"
|
|
120
|
+
}
|
|
@@ -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.10",
|
|
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.10",
|
|
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.",
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "media-card",
|
|
3
|
+
"name": "MediaCard",
|
|
4
|
+
"tier": "molecule",
|
|
5
|
+
"package": "@slipstream-ui/core",
|
|
6
|
+
"importPath": "@slipstream-ui/core",
|
|
7
|
+
"version": "0.11.10",
|
|
8
|
+
"sourceDir": "media-card",
|
|
9
|
+
"exportName": "MediaCard",
|
|
10
|
+
"description": "Media card for event, article and listing grids: CoverImage cover, title, description, metadata, status chips and a footer, with an optional whole-card link.",
|
|
11
|
+
"designIntent": "Every media surface rebuilds the same card: cover art, a title, a date or location line, status chips and a details affordance. MediaCard composes CoverImage, Badge and the ArticleCard stretched-link pattern so imageless entities still look intentional and the card is one target, one hover state, one focus ring.",
|
|
12
|
+
"props": [
|
|
13
|
+
{
|
|
14
|
+
"name": "title",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"required": true,
|
|
17
|
+
"description": "Card title."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "description",
|
|
21
|
+
"type": "ReactNode",
|
|
22
|
+
"required": false,
|
|
23
|
+
"description": "Supporting copy under the title."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "href",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"required": false,
|
|
29
|
+
"description": "Destination URL; the whole card becomes a single link when set."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "cover",
|
|
33
|
+
"type": "CoverImageProps",
|
|
34
|
+
"required": false,
|
|
35
|
+
"description": "Cover art rendered through CoverImage; seeded gradient fallback included. Pass src, alt, aspect, seed, mark, priority and sizes."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "meta",
|
|
39
|
+
"type": "ReactNode",
|
|
40
|
+
"required": false,
|
|
41
|
+
"description": "Metadata line under the description, e.g. date, location or registration deadline."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "chips",
|
|
45
|
+
"type": "MediaCardChip[]",
|
|
46
|
+
"required": false,
|
|
47
|
+
"description": "Status or category chips rendered as Badges; each chip takes label, variant and dot."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "footer",
|
|
51
|
+
"type": "ReactNode",
|
|
52
|
+
"required": false,
|
|
53
|
+
"description": "Bottom slot for a details affordance or secondary text. Keep it non-interactive when the card is a link."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "layout",
|
|
57
|
+
"type": "'vertical' | 'row'",
|
|
58
|
+
"required": false,
|
|
59
|
+
"defaultValue": "vertical",
|
|
60
|
+
"description": "'vertical' stacks the cover over the content; 'row' puts a fixed-width cover beside it for list rows.",
|
|
61
|
+
"enum": [
|
|
62
|
+
"vertical",
|
|
63
|
+
"row"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "linkComponent",
|
|
68
|
+
"type": "React.ElementType",
|
|
69
|
+
"required": false,
|
|
70
|
+
"description": "Custom link element for routers such as Next Link or react-router Link."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "linkHrefProp",
|
|
74
|
+
"type": "'href' | 'to'",
|
|
75
|
+
"required": false,
|
|
76
|
+
"defaultValue": "href",
|
|
77
|
+
"description": "Prop name used to pass the destination to linkComponent.",
|
|
78
|
+
"enum": [
|
|
79
|
+
"href",
|
|
80
|
+
"to"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"examples": [
|
|
85
|
+
{
|
|
86
|
+
"title": "Event card in a grid",
|
|
87
|
+
"code": "<MediaCard\n href={event.href}\n title={event.title}\n description={event.summary}\n cover={{ src: event.imageUrl, alt: event.title, seed: event.slug, sizes: '(min-width: 1024px) 33vw, 100vw' }}\n meta={event.date + ' · ' + event.venue}\n chips={[{ label: 'Registration open', variant: 'outline-success', dot: true }]}\n footer='Details →'\n/>",
|
|
88
|
+
"description": "Whole-card link with a seeded cover fallback, a deadline meta line and a status chip."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"title": "List row",
|
|
92
|
+
"code": "<MediaCard\n layout=\"row\"\n href={article.href}\n title={article.title}\n cover={{ alt: article.title, seed: article.slug, aspect: 'square' }}\n meta={article.date}\n/>",
|
|
93
|
+
"description": "Fixed-width cover beside the content for compact result rows."
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"antiPatterns": [
|
|
97
|
+
{
|
|
98
|
+
"title": "Don't nest links or buttons in the footer",
|
|
99
|
+
"explanation": "With href set the whole card is one link, so nested interactive elements are invalid HTML. Keep footer to text, or drop href and compose your own actions.",
|
|
100
|
+
"example": "// Avoid\n<MediaCard href=\"/events/1\" footer={<Button>Register</Button>} />\n\n// Prefer\n<MediaCard href=\"/events/1\" footer='Details →' />"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"title": "Don't use it for directory profiles",
|
|
104
|
+
"explanation": "Entity profiles with avatars, stats and tags belong in EntityCard; MediaCard is for media-first surfaces (events, articles, listings).",
|
|
105
|
+
"example": "// Avoid\n<MediaCard cover={{ alt: firm.name }} title={firm.name} />\n\n// Prefer\n<EntityCard name={firm.name} entityType={firm.type} logo={firm.logo} />"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"accessibility": [
|
|
109
|
+
{
|
|
110
|
+
"feature": "Single link target",
|
|
111
|
+
"implementation": "With href the entire card is one anchor with a visible focus ring; without href it is a static article",
|
|
112
|
+
"userRequirements": "Do not nest interactive elements inside when href is set"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"feature": "Cover semantics",
|
|
116
|
+
"implementation": "CoverImage renders a real img with alt when src is present; the gradient fallback is aria-hidden",
|
|
117
|
+
"userRequirements": "Pass a descriptive alt through cover.alt"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"contentGuidelines": [
|
|
121
|
+
{
|
|
122
|
+
"contentType": "Title and meta",
|
|
123
|
+
"guidelines": [
|
|
124
|
+
"Title is the card's heading; keep meta to one short line (date, venue, deadline)",
|
|
125
|
+
"Footer is a details affordance such as 'Details →', not a second CTA"
|
|
126
|
+
],
|
|
127
|
+
"goodExamples": [
|
|
128
|
+
"Mar 14 · Salt Lake City Convention Center",
|
|
129
|
+
"Registration closes Feb 26"
|
|
130
|
+
],
|
|
131
|
+
"badExamples": [
|
|
132
|
+
"Click here to view more information about this event",
|
|
133
|
+
"Best event ever!!"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"compositionRules": [
|
|
138
|
+
{
|
|
139
|
+
"component": "CoverImage",
|
|
140
|
+
"relationship": "The cover prop is forwarded to CoverImage, inheriting its seeded gradient fallback and aspect box",
|
|
141
|
+
"example": "<MediaCard cover={{ src, alt, seed: slug, aspect: 'video' }} title={title} />"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"component": "Badge",
|
|
145
|
+
"relationship": "chips render as sm Badges; quiet outline tones (outline-success, outline-warning) fit status metadata",
|
|
146
|
+
"example": "chips={[{ label: 'Open', variant: 'outline-success', dot: true }]}"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"component": "ListToolbar",
|
|
150
|
+
"relationship": "Pair with ListToolbar above the grid and Pagination below it for a complete filtered-list surface",
|
|
151
|
+
"example": "<ListToolbar count={items.length} />\n<div className=\"grid gap-4\"><MediaCard … /></div>"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"relatedComponents": [
|
|
155
|
+
"CoverImage",
|
|
156
|
+
"Badge",
|
|
157
|
+
"ArticleCard",
|
|
158
|
+
"EntityCard",
|
|
159
|
+
"ListToolbar"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "month-schedule",
|
|
3
|
+
"name": "MonthSchedule",
|
|
4
|
+
"tier": "organism",
|
|
5
|
+
"package": "@slipstream-ui/core",
|
|
6
|
+
"importPath": "@slipstream-ui/core",
|
|
7
|
+
"version": "0.11.10",
|
|
8
|
+
"sourceDir": "month-schedule",
|
|
9
|
+
"exportName": "MonthSchedule",
|
|
10
|
+
"description": "Month grid that shows dated events inside each day, with a type legend and a small-screen agenda — the schedule counterpart to Calendar's date picker.",
|
|
11
|
+
"designIntent": "Directories need to show events inside days, not just pick one. MonthSchedule reuses Calendar's date utilities (ISO keys, calendarWeeks, explicit today) so server-rendered pages stay deterministic, and collapses to an agenda list below a breakpoint where day cells get too cramped.",
|
|
12
|
+
"props": [
|
|
13
|
+
{
|
|
14
|
+
"name": "events",
|
|
15
|
+
"type": "T[]",
|
|
16
|
+
"required": true,
|
|
17
|
+
"description": "Events to place inside days; each is dated via getDate."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "getDate",
|
|
21
|
+
"type": "(event: T) => string",
|
|
22
|
+
"required": true,
|
|
23
|
+
"description": "ISO date key (YYYY-MM-DD) for an event."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "getLabel",
|
|
27
|
+
"type": "(event: T) => string",
|
|
28
|
+
"required": true,
|
|
29
|
+
"description": "Short label shown on the day chip and in the agenda."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "getType",
|
|
33
|
+
"type": "(event: T) => string",
|
|
34
|
+
"required": false,
|
|
35
|
+
"description": "Optional type key used for chip color and legend matching."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "getHref",
|
|
39
|
+
"type": "(event: T) => string",
|
|
40
|
+
"required": false,
|
|
41
|
+
"description": "Optional destination per event."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "month",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"required": false,
|
|
47
|
+
"description": "Controlled month as YYYY-MM; falls back to defaultMonth, then today."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "defaultMonth",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"required": false,
|
|
53
|
+
"description": "Uncontrolled initial month (YYYY-MM)."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "onMonthChange",
|
|
57
|
+
"type": "(month: string) => void",
|
|
58
|
+
"required": false,
|
|
59
|
+
"description": "Called with the new YYYY-MM when paging."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "today",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"required": false,
|
|
65
|
+
"description": "Override \"today\" for deterministic server rendering and tests."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "locale",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"required": false,
|
|
71
|
+
"defaultValue": "en-US",
|
|
72
|
+
"description": "BCP-47 locale for month, weekday and agenda labels."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "weekStartsOn",
|
|
76
|
+
"type": "0 | 1",
|
|
77
|
+
"required": false,
|
|
78
|
+
"defaultValue": "0",
|
|
79
|
+
"description": "0 starts the week on Sunday, 1 on Monday."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "maxPerDay",
|
|
83
|
+
"type": "number",
|
|
84
|
+
"required": false,
|
|
85
|
+
"defaultValue": "3",
|
|
86
|
+
"description": "Maximum event chips per day before collapsing into \"+N more\"."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "legend",
|
|
90
|
+
"type": "MonthScheduleLegendItem[]",
|
|
91
|
+
"required": false,
|
|
92
|
+
"description": "Type key → label entries rendered as a legend; also fixes chip tones deterministically."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "agendaBreakpoint",
|
|
96
|
+
"type": "'sm' | 'md'",
|
|
97
|
+
"required": false,
|
|
98
|
+
"defaultValue": "md",
|
|
99
|
+
"description": "Below this breakpoint an agenda list replaces the day grid.",
|
|
100
|
+
"enum": [
|
|
101
|
+
"sm",
|
|
102
|
+
"md"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "linkComponent",
|
|
107
|
+
"type": "React.ElementType",
|
|
108
|
+
"required": false,
|
|
109
|
+
"description": "Custom link element for event hrefs (Next Link, react-router)."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "linkHrefProp",
|
|
113
|
+
"type": "'href' | 'to'",
|
|
114
|
+
"required": false,
|
|
115
|
+
"defaultValue": "href",
|
|
116
|
+
"description": "Prop name used to pass the destination to linkComponent.",
|
|
117
|
+
"enum": [
|
|
118
|
+
"href",
|
|
119
|
+
"to"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "className",
|
|
124
|
+
"type": "string",
|
|
125
|
+
"required": false,
|
|
126
|
+
"description": "Classes merged onto the root container."
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "aria-label",
|
|
130
|
+
"type": "string",
|
|
131
|
+
"required": false,
|
|
132
|
+
"description": "Accessible name for the month grid; defaults to the month label."
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"examples": [
|
|
136
|
+
{
|
|
137
|
+
"title": "Competition calendar",
|
|
138
|
+
"code": "<MonthSchedule\n events={competitions}\n getDate={(c) => c.startDate}\n getLabel={(c) => c.name}\n getType={(c) => c.kind}\n getHref={(c) => '/competitions/' + c.slug}\n legend={[\n { type: 'competition', label: 'Competition' },\n { type: 'workshop', label: 'Workshop' },\n ]}\n today={todayKey}\n/>",
|
|
139
|
+
"description": "Month grid with typed event chips; tapping an event navigates to its detail page."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"title": "Controlled month with URL state",
|
|
143
|
+
"code": "const [month, setMonth] = useState(searchParams.get('month') ?? '2026-03');\n\n<MonthSchedule\n month={month}\n onMonthChange={(m) => router.replace('?month=' + m)}\n events={events}\n getDate={(e) => e.date}\n getLabel={(e) => e.title}\n/>",
|
|
144
|
+
"description": "Keep the visible month in the URL so the schedule is shareable and back-button safe."
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"antiPatterns": [
|
|
148
|
+
{
|
|
149
|
+
"title": "Don't use it to pick a date",
|
|
150
|
+
"explanation": "MonthSchedule shows events inside days; it has no selection model. Use Calendar or DatePicker when the user must choose a day.",
|
|
151
|
+
"example": "// Avoid\n<MonthSchedule events={[]} getDate={…} getLabel={…} onSelect={…} />\n\n// Prefer\n<Calendar value={date} onValueChange={setDate} />"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"title": "Don't compute today on the server",
|
|
155
|
+
"explanation": "Without an explicit today prop the component reads the client clock; pass today from a deterministic source for SSR and tests.",
|
|
156
|
+
"example": "<MonthSchedule today={props.today} … />"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"accessibility": [
|
|
160
|
+
{
|
|
161
|
+
"feature": "Grid semantics",
|
|
162
|
+
"implementation": "Day cells use role=grid/gridcell/row with column headers; today gets aria-current=date",
|
|
163
|
+
"userRequirements": "The grid conveys month structure to screen readers"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"feature": "Small-screen agenda",
|
|
167
|
+
"implementation": "Below agendaBreakpoint the grid is replaced by a labelled list of days and events, which is easier to scan than cramped cells",
|
|
168
|
+
"userRequirements": "Both representations stay in the DOM; CSS picks one per viewport"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"feature": "Live month label",
|
|
172
|
+
"implementation": "The month name sits in an aria-live=polite region so paging is announced",
|
|
173
|
+
"userRequirements": "Keyboard and screen-reader users hear month changes"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"contentGuidelines": [
|
|
177
|
+
{
|
|
178
|
+
"contentType": "Event labels",
|
|
179
|
+
"guidelines": [
|
|
180
|
+
"Keep getLabel short — chips truncate; put detail in the destination page",
|
|
181
|
+
"Legend labels describe the type, not the event"
|
|
182
|
+
],
|
|
183
|
+
"goodExamples": [
|
|
184
|
+
"Fall Classic",
|
|
185
|
+
"Competition"
|
|
186
|
+
],
|
|
187
|
+
"badExamples": [
|
|
188
|
+
"Fall Classic 2026 — two-day ballroom competition with six heats",
|
|
189
|
+
"Stuff"
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"compositionRules": [
|
|
194
|
+
{
|
|
195
|
+
"component": "Calendar",
|
|
196
|
+
"relationship": "Sibling components sharing the same date utilities; Calendar picks a day, MonthSchedule shows events in days",
|
|
197
|
+
"example": "<Calendar value={date} onValueChange={setDate} />\n<MonthSchedule events={events} getDate={getDate} getLabel={getLabel} />"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"component": "Badge",
|
|
201
|
+
"relationship": "Day chips and the legend render as sm Badges with deterministic outline tones per type",
|
|
202
|
+
"example": "legend={[{ type: 'social', label: 'Social' }]}"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"component": "ListToolbar",
|
|
206
|
+
"relationship": "Pair with ListToolbar and Pagination when the schedule is one view of a filterable directory",
|
|
207
|
+
"example": "<ListToolbar count={events.length} />\n<MonthSchedule … />"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"relatedComponents": [
|
|
211
|
+
"Calendar",
|
|
212
|
+
"DatePicker",
|
|
213
|
+
"Badge",
|
|
214
|
+
"ListToolbar",
|
|
215
|
+
"MediaCard"
|
|
216
|
+
]
|
|
217
|
+
}
|
|
@@ -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.10",
|
|
8
8
|
"sourceDir": "multi-select",
|
|
9
9
|
"exportName": "MultiSelect",
|
|
10
10
|
"description": "Searchable multi-select filter with visible removable chips and a checkbox panel.",
|
|
@@ -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.10",
|
|
8
8
|
"sourceDir": "newsletter",
|
|
9
9
|
"exportName": "Newsletter",
|
|
10
10
|
"description": "Email capture block with inline or stacked layout, pending state, success and failure feedback.",
|
|
@@ -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.10",
|
|
8
8
|
"sourceDir": "process-steps",
|
|
9
9
|
"exportName": "ProcessSteps",
|
|
10
10
|
"description": "Ordered process cards with derived step numbers or custom icons.",
|
|
@@ -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.10",
|
|
8
8
|
"sourceDir": "prose",
|
|
9
9
|
"exportName": "Prose",
|
|
10
10
|
"description": "Self-contained long-form typography for rendered markdown/MDX: headings, links, lists, code, tables, quotes and figures.",
|
|
@@ -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.10",
|
|
8
8
|
"sourceDir": "range-slider",
|
|
9
9
|
"exportName": "RangeSlider",
|
|
10
10
|
"description": "Dual-thumb numeric range slider with labeled native inputs and formatted values.",
|