@slipstream-ui/core 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +177 -2
- package/dist/index.d.ts +177 -2
- package/dist/index.js +262 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +254 -9
- 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/consent-banner.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 +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 +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/figure.manifest.json +105 -0
- 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/icon-button.manifest.json +101 -0
- package/dist/manifests/icon-tile.manifest.json +107 -0
- package/dist/manifests/icon.manifest.json +119 -0
- 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 +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/media-card.manifest.json +1 -1
- package/dist/manifests/media.manifest.json +142 -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 +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 +1 -1
- 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/social-links.manifest.json +120 -0
- 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/figure/Figure.d.ts +23 -0
- package/dist/src/components/figure/Figure.js +60 -0
- package/dist/src/components/figure/Figure.js.map +1 -0
- package/dist/src/components/figure/Figure.mjs +26 -0
- package/dist/src/components/figure/Figure.mjs.map +1 -0
- package/dist/src/components/figure/index.d.ts +2 -0
- package/dist/src/components/figure/index.js +29 -0
- package/dist/src/components/figure/index.js.map +1 -0
- package/dist/src/components/figure/index.mjs +5 -0
- package/dist/src/components/figure/index.mjs.map +1 -0
- package/dist/src/components/icon/Icon.d.ts +33 -0
- package/dist/src/components/icon/Icon.js +82 -0
- package/dist/src/components/icon/Icon.js.map +1 -0
- package/dist/src/components/icon/Icon.mjs +47 -0
- package/dist/src/components/icon/Icon.mjs.map +1 -0
- package/dist/src/components/icon/index.d.ts +2 -0
- package/dist/src/components/icon/index.js +31 -0
- package/dist/src/components/icon/index.js.map +1 -0
- package/dist/src/components/icon/index.mjs +6 -0
- package/dist/src/components/icon/index.mjs.map +1 -0
- package/dist/src/components/icon-button/IconButton.d.ts +25 -0
- package/dist/src/components/icon-button/IconButton.js +60 -0
- package/dist/src/components/icon-button/IconButton.js.map +1 -0
- package/dist/src/components/icon-button/IconButton.mjs +26 -0
- package/dist/src/components/icon-button/IconButton.mjs.map +1 -0
- package/dist/src/components/icon-button/index.d.ts +2 -0
- package/dist/src/components/icon-button/index.js +29 -0
- package/dist/src/components/icon-button/index.js.map +1 -0
- package/dist/src/components/icon-button/index.mjs +5 -0
- package/dist/src/components/icon-button/index.mjs.map +1 -0
- package/dist/src/components/icon-tile/IconTile.d.ts +23 -0
- package/dist/src/components/icon-tile/IconTile.js +75 -0
- package/dist/src/components/icon-tile/IconTile.js.map +1 -0
- package/dist/src/components/icon-tile/IconTile.mjs +40 -0
- package/dist/src/components/icon-tile/IconTile.mjs.map +1 -0
- package/dist/src/components/icon-tile/index.d.ts +2 -0
- package/dist/src/components/icon-tile/index.js +31 -0
- package/dist/src/components/icon-tile/index.js.map +1 -0
- package/dist/src/components/icon-tile/index.mjs +6 -0
- package/dist/src/components/icon-tile/index.mjs.map +1 -0
- package/dist/src/components/media/Media.d.ts +48 -0
- package/dist/src/components/media/Media.js +97 -0
- package/dist/src/components/media/Media.js.map +1 -0
- package/dist/src/components/media/Media.mjs +63 -0
- package/dist/src/components/media/Media.mjs.map +1 -0
- package/dist/src/components/media/index.d.ts +2 -0
- package/dist/src/components/media/index.js +29 -0
- package/dist/src/components/media/index.js.map +1 -0
- package/dist/src/components/media/index.mjs +5 -0
- package/dist/src/components/media/index.mjs.map +1 -0
- package/dist/src/components/site-header/SiteHeader.js +33 -9
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +33 -9
- package/dist/src/components/site-header/SiteHeader.mjs.map +1 -1
- package/dist/src/components/social-links/SocialLinks.d.ts +34 -0
- package/dist/src/components/social-links/SocialLinks.js +69 -0
- package/dist/src/components/social-links/SocialLinks.js.map +1 -0
- package/dist/src/components/social-links/SocialLinks.mjs +35 -0
- package/dist/src/components/social-links/SocialLinks.mjs.map +1 -0
- package/dist/src/components/social-links/index.d.ts +2 -0
- package/dist/src/components/social-links/index.js +29 -0
- package/dist/src/components/social-links/index.js.map +1 -0
- package/dist/src/components/social-links/index.mjs +5 -0
- package/dist/src/components/social-links/index.mjs.map +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/components/figure/Figure.test.tsx +54 -0
- package/src/components/figure/Figure.tsx +38 -0
- package/src/components/figure/index.ts +2 -0
- package/src/components/icon/Icon.test.tsx +70 -0
- package/src/components/icon/Icon.tsx +61 -0
- package/src/components/icon/index.ts +2 -0
- package/src/components/icon-button/IconButton.test.tsx +76 -0
- package/src/components/icon-button/IconButton.tsx +38 -0
- package/src/components/icon-button/index.ts +2 -0
- package/src/components/icon-tile/IconTile.test.tsx +63 -0
- package/src/components/icon-tile/IconTile.tsx +55 -0
- package/src/components/icon-tile/index.ts +2 -0
- package/src/components/media/Media.test.tsx +53 -0
- package/src/components/media/Media.tsx +92 -0
- package/src/components/media/index.ts +2 -0
- package/src/components/site-header/SiteHeader.test.tsx +27 -0
- package/src/components/site-header/SiteHeader.tsx +60 -21
- package/src/components/social-links/SocialLinks.test.tsx +59 -0
- package/src/components/social-links/SocialLinks.tsx +73 -0
- package/src/components/social-links/index.ts +2 -0
- package/src/index.ts +6 -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/consent-banner.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 +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 +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/figure.manifest.json +105 -0
- 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/icon-button.manifest.json +101 -0
- package/src/manifests/icon-tile.manifest.json +107 -0
- package/src/manifests/icon.manifest.json +119 -0
- 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 +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/media-card.manifest.json +1 -1
- package/src/manifests/media.manifest.json +142 -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 +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 +1 -1
- 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/social-links.manifest.json +120 -0
- 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,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "media",
|
|
3
|
+
"name": "Media",
|
|
4
|
+
"tier": "molecule",
|
|
5
|
+
"description": "Aspect-ratio media frame with image fallback chain and caption/credit",
|
|
6
|
+
"designIntent": "Media is the figure-level primitive for article and card imagery: it reserves aspect-ratio space so layouts never shift, renders src through Image's fallback chain, accepts arbitrary media as children, and pairs caption and credit via Figure.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "aspect",
|
|
10
|
+
"type": "'video' | 'square' | 'wide' | string",
|
|
11
|
+
"defaultValue": "video",
|
|
12
|
+
"required": false,
|
|
13
|
+
"description": "Aspect ratio preset or any CSS aspect-ratio value; reserves layout space"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "src",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Image URL rendered through Image's src -> fallback chain"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "alt",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"defaultValue": "",
|
|
25
|
+
"required": false,
|
|
26
|
+
"description": "Alt text for src media; required for meaningful images"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "sizes",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"required": false,
|
|
32
|
+
"description": "Responsive sizes hint forwarded to the image"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "priority",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"defaultValue": "false",
|
|
38
|
+
"required": false,
|
|
39
|
+
"description": "Load eagerly at high priority for the LCP image"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "fallback",
|
|
43
|
+
"type": "ReactNode",
|
|
44
|
+
"required": false,
|
|
45
|
+
"description": "Content shown when src is absent or fails; also used when no children are provided"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "caption",
|
|
49
|
+
"type": "ReactNode",
|
|
50
|
+
"required": false,
|
|
51
|
+
"description": "Caption rendered in figcaption below the frame"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "credit",
|
|
55
|
+
"type": "ReactNode",
|
|
56
|
+
"required": false,
|
|
57
|
+
"description": "Optional source/attribution line under the caption"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "align",
|
|
61
|
+
"type": "'left' | 'center'",
|
|
62
|
+
"defaultValue": "left",
|
|
63
|
+
"required": false,
|
|
64
|
+
"description": "Caption alignment"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "className",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"required": false,
|
|
70
|
+
"description": "Additional CSS classes to apply"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"examples": [
|
|
74
|
+
{
|
|
75
|
+
"title": "Article hero image",
|
|
76
|
+
"code": "<Media\n src=\"/photos/studio.jpg\"\n alt=\"Dance studio floor\"\n aspect=\"wide\"\n caption=\"The practice floor at Studio West\"\n credit=\"Photo: Jane Doe\"\n/>",
|
|
77
|
+
"description": "Captioned hero with reserved 2:1 space"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"title": "Embedded video",
|
|
81
|
+
"code": "<Media aspect=\"video\" caption=\"Championship final\">\n <iframe src=\"...\" title=\"Final\" className=\"h-full w-full\" />\n</Media>",
|
|
82
|
+
"description": "Arbitrary media inside the aspect frame"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"antiPatterns": [
|
|
86
|
+
{
|
|
87
|
+
"title": "Don't use Media for generated placeholder art",
|
|
88
|
+
"explanation": "CoverImage adds the seeded token-gradient fallback for imageless entities; Media is for real media with captions.",
|
|
89
|
+
"example": "// Prefer for entity covers\n<CoverImage seed={slug} mark={<Icon />} />\n// Prefer Media for captioned article imagery"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"accessibility": [
|
|
93
|
+
{
|
|
94
|
+
"feature": "Caption association",
|
|
95
|
+
"implementation": "Renders figure/figcaption via Figure so captions are programmatically tied to the media",
|
|
96
|
+
"userRequirements": "Provide alt for src images and title/labels for embedded media"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"feature": "Layout stability",
|
|
100
|
+
"implementation": "Aspect-ratio box reserves space before the image loads, preventing CLS",
|
|
101
|
+
"userRequirements": "Pick an aspect that matches the real media"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"contentGuidelines": [
|
|
105
|
+
{
|
|
106
|
+
"contentType": "Captions and credits",
|
|
107
|
+
"guidelines": [
|
|
108
|
+
"Caption describes the media; credit names the source",
|
|
109
|
+
"Keep captions to one sentence",
|
|
110
|
+
"Alt text describes the image for screen readers separately"
|
|
111
|
+
],
|
|
112
|
+
"goodExamples": [
|
|
113
|
+
"caption: Final round, credit: USDSC 2026"
|
|
114
|
+
],
|
|
115
|
+
"badExamples": [
|
|
116
|
+
"caption: image, credit: web"
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"compositionRules": [
|
|
121
|
+
{
|
|
122
|
+
"component": "Image",
|
|
123
|
+
"relationship": "src media renders through Image for the src -> fallbackSrc -> fallback chain",
|
|
124
|
+
"example": "<Media src=\"/a.jpg\" alt=\"A\" sizes=\"100vw\"/>"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"component": "Figure",
|
|
128
|
+
"relationship": "Media is a Figure with an aspect-ratio frame; Figure alone has no frame",
|
|
129
|
+
"example": "<Media aspect=\"square\" caption=\"Square\"><Chart/></Media>"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"relatedComponents": [
|
|
133
|
+
"Figure",
|
|
134
|
+
"CoverImage",
|
|
135
|
+
"Image"
|
|
136
|
+
],
|
|
137
|
+
"package": "@slipstream-ui/core",
|
|
138
|
+
"importPath": "@slipstream-ui/core",
|
|
139
|
+
"version": "0.13.0",
|
|
140
|
+
"sourceDir": "media",
|
|
141
|
+
"exportName": "Media"
|
|
142
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "month-schedule",
|
|
9
9
|
"exportName": "MonthSchedule",
|
|
10
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.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
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.
|
|
7
|
+
"version": "0.13.0",
|
|
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.
|
|
7
|
+
"version": "0.13.0",
|
|
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.
|
|
7
|
+
"version": "0.13.0",
|
|
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.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "range-slider",
|
|
9
9
|
"exportName": "RangeSlider",
|
|
10
10
|
"description": "Dual-thumb numeric range slider with labeled native inputs and formatted values.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "section-heading",
|
|
9
9
|
"exportName": "SectionHeading",
|
|
10
10
|
"description": "Section heading block: eyebrow, title (level 2-4), description and actions, with left/center alignment and three sizes.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "section",
|
|
9
9
|
"exportName": "Section",
|
|
10
10
|
"description": "Full-width page section with a surface tone, vertical rhythm and an optional centered container.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "segmented-control",
|
|
9
9
|
"exportName": "SegmentedControl",
|
|
10
10
|
"description": "Single- or multi-select segmented control for view and filter switches.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "select-menu",
|
|
9
9
|
"exportName": "SelectMenu",
|
|
10
10
|
"description": "Custom listbox select for rich options: descriptions, icons, groups, multi-select, custom rows and hidden inputs for forms.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "site-footer",
|
|
9
9
|
"exportName": "SiteFooter",
|
|
10
10
|
"description": "Marketing footer: brand + tagline column, link columns and a legal bar; router-agnostic via linkComponent.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "site-header",
|
|
9
9
|
"exportName": "SiteHeader",
|
|
10
10
|
"description": "Marketing/site header: sticky bar with brand, horizontal navigation with prefix-aware active states, right-aligned actions and a mobile drawer.",
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "social-links",
|
|
3
|
+
"name": "SocialLinks",
|
|
4
|
+
"tier": "molecule",
|
|
5
|
+
"description": "Accessible row of outbound social and profile links",
|
|
6
|
+
"designIntent": "SocialLinks standardizes outbound profile links: every destination is named, external links get safe rel attributes, and icon-only links stay keyboard and screen-reader accessible.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "links",
|
|
10
|
+
"type": "SocialLink[]",
|
|
11
|
+
"required": true,
|
|
12
|
+
"description": "Destinations: { href, label, icon? } — icon may be an SVG element or component"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "label",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"defaultValue": "Social links",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Accessible name for the navigation landmark"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "iconSize",
|
|
23
|
+
"type": "IconProps['size']",
|
|
24
|
+
"defaultValue": "md",
|
|
25
|
+
"required": false,
|
|
26
|
+
"description": "Icon size passed through to Icon"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "iconTone",
|
|
30
|
+
"type": "IconProps['tone']",
|
|
31
|
+
"defaultValue": "muted",
|
|
32
|
+
"required": false,
|
|
33
|
+
"description": "Icon tone passed through to Icon"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "className",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"required": false,
|
|
39
|
+
"description": "Additional CSS classes to apply"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"examples": [
|
|
43
|
+
{
|
|
44
|
+
"title": "Footer social row",
|
|
45
|
+
"code": "<SocialLinks\n label=\"Follow us\"\n links={[\n { href: 'https://github.com/acme', label: 'GitHub', icon: GithubIcon },\n { href: 'https://x.com/acme', label: 'X', icon: XIcon },\n ]}\n/>",
|
|
46
|
+
"description": "Icon links named by their platform"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"title": "Text-only profile links",
|
|
50
|
+
"code": "<SocialLinks\n links={[{ href: 'https://example.com/team', label: 'Team page' }]}\n/>",
|
|
51
|
+
"description": "Links without icons render as labeled text"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"antiPatterns": [
|
|
55
|
+
{
|
|
56
|
+
"title": "Don't reuse the platform name as the only link text",
|
|
57
|
+
"explanation": "Each link is named via aria-label or visible text; identical unlabeled icons in a row are indistinguishable to screen readers.",
|
|
58
|
+
"example": "// Avoid\nlinks.map(l => <a href={l.href}><Icon icon={l.icon} /></a>)\n// Prefer\n<SocialLinks links={links} />"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"accessibility": [
|
|
62
|
+
{
|
|
63
|
+
"feature": "Named destinations",
|
|
64
|
+
"implementation": "Icon-only links get aria-label={label}; text links use visible text",
|
|
65
|
+
"userRequirements": "Give every link a distinct, meaningful label"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"feature": "Safe external links",
|
|
69
|
+
"implementation": "Every link renders target=_blank rel=noopener noreferrer",
|
|
70
|
+
"userRequirements": "Only use for genuinely external destinations"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"feature": "Keyboard operation",
|
|
74
|
+
"implementation": "Native anchors with a visible focus-visible ring",
|
|
75
|
+
"userRequirements": "Icon hit area is h-9 w-9, above the 24px minimum"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"contentGuidelines": [
|
|
79
|
+
{
|
|
80
|
+
"contentType": "Link labels",
|
|
81
|
+
"guidelines": [
|
|
82
|
+
"Name the platform or destination",
|
|
83
|
+
"Prefer \"GitHub\" over \"our GitHub\" for icon links",
|
|
84
|
+
"Keep text-link labels short"
|
|
85
|
+
],
|
|
86
|
+
"goodExamples": [
|
|
87
|
+
"GitHub",
|
|
88
|
+
"LinkedIn",
|
|
89
|
+
"Dribbble"
|
|
90
|
+
],
|
|
91
|
+
"badExamples": [
|
|
92
|
+
"Click here",
|
|
93
|
+
"Social",
|
|
94
|
+
"Follow"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"compositionRules": [
|
|
99
|
+
{
|
|
100
|
+
"component": "SiteFooter",
|
|
101
|
+
"relationship": "SocialLinks is the standard outbound-link row for footers and contact strips",
|
|
102
|
+
"example": "<SiteFooter contact={...}><SocialLinks links={social}/></SiteFooter>"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"component": "Icon",
|
|
106
|
+
"relationship": "Each link icon renders through Icon with iconSize/iconTone props",
|
|
107
|
+
"example": "<SocialLinks iconSize=\"lg\" iconTone=\"default\" links={links}/>"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"relatedComponents": [
|
|
111
|
+
"Icon",
|
|
112
|
+
"SiteFooter",
|
|
113
|
+
"ContactStrip"
|
|
114
|
+
],
|
|
115
|
+
"package": "@slipstream-ui/core",
|
|
116
|
+
"importPath": "@slipstream-ui/core",
|
|
117
|
+
"version": "0.13.0",
|
|
118
|
+
"sourceDir": "social-links",
|
|
119
|
+
"exportName": "SocialLinks"
|
|
120
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "stat-band",
|
|
9
9
|
"exportName": "StatBand",
|
|
10
10
|
"description": "Semantic description list of headline stats with labels, optional hints and column presets.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "table-card",
|
|
9
9
|
"exportName": "TableCard",
|
|
10
10
|
"description": "Table shell with title/description, header actions, optional toolbar, edge-to-edge body and a footer row.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "table-of-contents",
|
|
9
9
|
"exportName": "TableOfContents",
|
|
10
10
|
"description": "Sticky 'On this page' navigation with real anchor links, nested levels and aria-current, plus a useScrollSpy hook for the active heading.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "testimonial",
|
|
9
9
|
"exportName": "Testimonial",
|
|
10
10
|
"description": "Semantic written testimonial with quote, person, role, company, avatar and logo slots.",
|