@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,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "figure",
|
|
3
|
+
"name": "Figure",
|
|
4
|
+
"tier": "atom",
|
|
5
|
+
"description": "Semantic figure wrapper with caption and credit line",
|
|
6
|
+
"designIntent": "Figure gives any media or illustration a semantic figure/figcaption pairing so captions are associated with content for assistive tech and SEO, with an optional credit line for attribution.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "caption",
|
|
10
|
+
"type": "ReactNode",
|
|
11
|
+
"required": false,
|
|
12
|
+
"description": "Caption content rendered in <figcaption> below the children"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "credit",
|
|
16
|
+
"type": "ReactNode",
|
|
17
|
+
"required": false,
|
|
18
|
+
"description": "Optional source/attribution line appended under the caption"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "align",
|
|
22
|
+
"type": "'left' | 'center'",
|
|
23
|
+
"defaultValue": "left",
|
|
24
|
+
"required": false,
|
|
25
|
+
"description": "Caption text alignment"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "className",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"required": false,
|
|
31
|
+
"description": "Additional CSS classes to apply"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"examples": [
|
|
35
|
+
{
|
|
36
|
+
"title": "Captioned chart",
|
|
37
|
+
"code": "<Figure caption=\"Signups by week\" credit=\"Internal analytics\">\n <Chart />\n</Figure>",
|
|
38
|
+
"description": "Caption and credit associate with the figure for assistive tech"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "Centered caption",
|
|
42
|
+
"code": "<Figure caption=\"Team photo\" align=\"center\">\n <img src=\"/team.jpg\" alt=\"The team\" />\n</Figure>",
|
|
43
|
+
"description": "Caption centered under the media"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"antiPatterns": [
|
|
47
|
+
{
|
|
48
|
+
"title": "Don't use Figure for layout grouping",
|
|
49
|
+
"explanation": "Figure is semantic media markup. For generic grouping use Card, Section or a plain div.",
|
|
50
|
+
"example": "// Avoid\n<Figure><div>Card content</div></Figure>\n// Prefer\n<Card>...</Card>"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"accessibility": [
|
|
54
|
+
{
|
|
55
|
+
"feature": "Semantic association",
|
|
56
|
+
"implementation": "Renders <figure> with <figcaption>, so the caption is programmatically tied to the content",
|
|
57
|
+
"userRequirements": "Ensure the media itself has alt text or an accessible name"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"feature": "Readable caption",
|
|
61
|
+
"implementation": "Caption uses text-xs muted styling at readable contrast",
|
|
62
|
+
"userRequirements": "Keep captions concise; put long descriptions in Prose"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"contentGuidelines": [
|
|
66
|
+
{
|
|
67
|
+
"contentType": "Captions",
|
|
68
|
+
"guidelines": [
|
|
69
|
+
"Describe what the media shows, not 'image of'",
|
|
70
|
+
"Keep captions to one sentence",
|
|
71
|
+
"Use credit for source attribution only"
|
|
72
|
+
],
|
|
73
|
+
"goodExamples": [
|
|
74
|
+
"Salt Lake City studio, March 2026",
|
|
75
|
+
"Source: NDCA results"
|
|
76
|
+
],
|
|
77
|
+
"badExamples": [
|
|
78
|
+
"Picture",
|
|
79
|
+
"Click to enlarge"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"compositionRules": [
|
|
84
|
+
{
|
|
85
|
+
"component": "Media",
|
|
86
|
+
"relationship": "Media composes Figure internally to add the aspect frame and image handling",
|
|
87
|
+
"example": "<Media src=\"/a.jpg\" alt=\"A\" caption=\"Caption\"/>"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"component": "CoverImage",
|
|
91
|
+
"relationship": "CoverImage renders the seeded placeholder art that typically sits inside a Figure",
|
|
92
|
+
"example": "<Figure caption=\"Cover\"><CoverImage seed={slug} mark={<Icon/>}/></Figure>"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"relatedComponents": [
|
|
96
|
+
"Media",
|
|
97
|
+
"CoverImage",
|
|
98
|
+
"Prose"
|
|
99
|
+
],
|
|
100
|
+
"package": "@slipstream-ui/core",
|
|
101
|
+
"importPath": "@slipstream-ui/core",
|
|
102
|
+
"version": "0.13.0",
|
|
103
|
+
"sourceDir": "figure",
|
|
104
|
+
"exportName": "Figure"
|
|
105
|
+
}
|
|
@@ -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": "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.
|
|
7
|
+
"version": "0.13.0",
|
|
8
8
|
"sourceDir": "filter-panel",
|
|
9
9
|
"exportName": "FilterPanel",
|
|
10
10
|
"description": "Structured filter panel with collapsible sections and reset/apply actions.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
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.",
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "icon-button",
|
|
3
|
+
"name": "IconButton",
|
|
4
|
+
"tier": "atom",
|
|
5
|
+
"description": "Square icon-only button built on Button with a required accessible label",
|
|
6
|
+
"designIntent": "IconButton removes the footgun of unlabeled icon controls: label is a required prop mapped to aria-label, and sizes stay on the spacing scale. It composes Button so variants, loading and asChild behave identically.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "label",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"required": true,
|
|
12
|
+
"description": "Accessible name for the control, rendered as aria-label"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "size",
|
|
16
|
+
"type": "'sm' | 'md' | 'lg'",
|
|
17
|
+
"defaultValue": "md",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Square edge length: sm h-8, md h-10 (Button icon size), lg h-11. All Button variants, loading and asChild are inherited."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "className",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"required": false,
|
|
25
|
+
"description": "Additional CSS classes to apply"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"examples": [
|
|
29
|
+
{
|
|
30
|
+
"title": "Toolbar action",
|
|
31
|
+
"code": "<IconButton label=\"Delete row\" variant=\"ghost\" size=\"sm\" onClick={remove}>\n <TrashIcon />\n</IconButton>",
|
|
32
|
+
"description": "Compact ghost button in a dense toolbar"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"title": "Loading state",
|
|
36
|
+
"code": "<IconButton label=\"Refresh data\" loading={isFetching}>\n <RefreshIcon />\n</IconButton>",
|
|
37
|
+
"description": "Button semantics handle disabled + aria-busy while loading"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"antiPatterns": [
|
|
41
|
+
{
|
|
42
|
+
"title": "Don't pass icon-only content without label",
|
|
43
|
+
"explanation": "label is required by the type; omitting it is a compile error, not a runtime warning.",
|
|
44
|
+
"example": "// Avoid (type error)\n<IconButton><SettingsIcon /></IconButton>\n// Prefer\n<IconButton label=\"Settings\"><SettingsIcon /></IconButton>"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"accessibility": [
|
|
48
|
+
{
|
|
49
|
+
"feature": "Required accessible name",
|
|
50
|
+
"implementation": "label prop is required in TypeScript and rendered as aria-label",
|
|
51
|
+
"userRequirements": "Name the action (\"Delete row\"), not the icon (\"trash\")"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"feature": "Keyboard and focus",
|
|
55
|
+
"implementation": "Inherits Button's focus-visible ring and disabled semantics",
|
|
56
|
+
"userRequirements": "Keep icon buttons at least 24px; sm is h-8 w-8"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"contentGuidelines": [
|
|
60
|
+
{
|
|
61
|
+
"contentType": "Button labels",
|
|
62
|
+
"guidelines": [
|
|
63
|
+
"Use verb + object phrasing for actions",
|
|
64
|
+
"Keep labels under 4 words",
|
|
65
|
+
"Match the tooltip text when one is present"
|
|
66
|
+
],
|
|
67
|
+
"goodExamples": [
|
|
68
|
+
"Close dialog",
|
|
69
|
+
"Copy link",
|
|
70
|
+
"Open menu"
|
|
71
|
+
],
|
|
72
|
+
"badExamples": [
|
|
73
|
+
"X",
|
|
74
|
+
"Click",
|
|
75
|
+
"Do the thing"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"compositionRules": [
|
|
80
|
+
{
|
|
81
|
+
"component": "Button",
|
|
82
|
+
"relationship": "IconButton composes Button size=icon and inherits variant/loading/asChild",
|
|
83
|
+
"example": "<IconButton label=\"Refresh\" variant=\"outline\" loading={busy}><RefreshIcon/></IconButton>"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"component": "Icon",
|
|
87
|
+
"relationship": "Wrap the icon child in Icon for tone and consistent sizing",
|
|
88
|
+
"example": "<IconButton label=\"Delete\"><Icon icon={TrashIcon} tone=\"destructive\"/></IconButton>"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"relatedComponents": [
|
|
92
|
+
"Icon",
|
|
93
|
+
"Button",
|
|
94
|
+
"IconTile"
|
|
95
|
+
],
|
|
96
|
+
"package": "@slipstream-ui/core",
|
|
97
|
+
"importPath": "@slipstream-ui/core",
|
|
98
|
+
"version": "0.13.0",
|
|
99
|
+
"sourceDir": "icon-button",
|
|
100
|
+
"exportName": "IconButton"
|
|
101
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "icon-tile",
|
|
3
|
+
"name": "IconTile",
|
|
4
|
+
"tier": "atom",
|
|
5
|
+
"description": "Tinted square surface for icons with an optional corner badge",
|
|
6
|
+
"designIntent": "IconTile gives feature bullets, status markers and accent icons a consistent tinted container. Tones follow the Alert convention (ink text on a tint) so contrast is pre-audited, and sizes stay on the spacing scale.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "tone",
|
|
10
|
+
"type": "'default' | 'primary' | 'success' | 'warning' | 'info' | 'destructive'",
|
|
11
|
+
"defaultValue": "default",
|
|
12
|
+
"required": false,
|
|
13
|
+
"description": "Tint and ink pairing; destructive uses text-destructive per the Alert convention"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "size",
|
|
17
|
+
"type": "'sm' | 'md' | 'lg'",
|
|
18
|
+
"defaultValue": "md",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "Tile edge length: sm h-8, md h-10, lg h-12 with proportional icon sizing"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "badge",
|
|
24
|
+
"type": "ReactNode",
|
|
25
|
+
"required": false,
|
|
26
|
+
"description": "Count or status marker pinned to the tile's top-right corner"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "className",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"required": false,
|
|
32
|
+
"description": "Additional CSS classes to apply"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"examples": [
|
|
36
|
+
{
|
|
37
|
+
"title": "Feature bullet",
|
|
38
|
+
"code": "<IconTile tone=\"primary\"><ZapIcon /></IconTile>",
|
|
39
|
+
"description": "Tinted accent next to a feature title"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"title": "Badge count",
|
|
43
|
+
"code": "<IconTile tone=\"info\" badge={3}><BellIcon /></IconTile>",
|
|
44
|
+
"description": "Corner marker for unread counts or status dots"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"antiPatterns": [
|
|
48
|
+
{
|
|
49
|
+
"title": "Don't put interactive content inside",
|
|
50
|
+
"explanation": "IconTile is a presentational span. Interactive tiles belong in a Button or link.",
|
|
51
|
+
"example": "// Avoid\n<IconTile onClick={...}><Icon /></IconTile>\n// Prefer\n<button className=\"...\"><IconTile><Icon /></IconTile></button>"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"accessibility": [
|
|
55
|
+
{
|
|
56
|
+
"feature": "Decorative surface",
|
|
57
|
+
"implementation": "Plain span with no role; meaning comes from adjacent text or an Icon label",
|
|
58
|
+
"userRequirements": "Label the Icon inside when the tile conveys status"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"feature": "Contrast",
|
|
62
|
+
"implementation": "Tone pairs reuse the audited Alert tint/ink tokens",
|
|
63
|
+
"userRequirements": "Do not override tone colors with arbitrary classes"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"contentGuidelines": [
|
|
67
|
+
{
|
|
68
|
+
"contentType": "Badge values",
|
|
69
|
+
"guidelines": [
|
|
70
|
+
"Use numbers for counts",
|
|
71
|
+
"Cap long values (99+) at the call site",
|
|
72
|
+
"Use a short glyph only for status dots"
|
|
73
|
+
],
|
|
74
|
+
"goodExamples": [
|
|
75
|
+
"3",
|
|
76
|
+
"12",
|
|
77
|
+
"•"
|
|
78
|
+
],
|
|
79
|
+
"badExamples": [
|
|
80
|
+
"many",
|
|
81
|
+
"New!"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"compositionRules": [
|
|
86
|
+
{
|
|
87
|
+
"component": "Icon",
|
|
88
|
+
"relationship": "Icon inside IconTile inherits the tile svg sizing; pass tone only when overriding",
|
|
89
|
+
"example": "<IconTile tone=\"success\"><Icon icon={CheckIcon}/></IconTile>"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"component": "FeatureRow",
|
|
93
|
+
"relationship": "IconTile pairs with feature rows for consistent marketing grids",
|
|
94
|
+
"example": "<FeatureRow icon={<IconTile tone=\"primary\"><ZapIcon/></IconTile>} title=\"Fast\"/>"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"relatedComponents": [
|
|
98
|
+
"Icon",
|
|
99
|
+
"IconButton",
|
|
100
|
+
"FeatureRow"
|
|
101
|
+
],
|
|
102
|
+
"package": "@slipstream-ui/core",
|
|
103
|
+
"importPath": "@slipstream-ui/core",
|
|
104
|
+
"version": "0.13.0",
|
|
105
|
+
"sourceDir": "icon-tile",
|
|
106
|
+
"exportName": "IconTile"
|
|
107
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "icon",
|
|
3
|
+
"name": "Icon",
|
|
4
|
+
"tier": "atom",
|
|
5
|
+
"description": "Consistent sizing and tinting wrapper for consumer-supplied SVG icons",
|
|
6
|
+
"designIntent": "Icon gives every consumer icon one sizing and color contract: spacing-scale sizes, semantic tones, and decorative-by-default semantics so icon-only UI stays accessible when a label is supplied.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "size",
|
|
10
|
+
"type": "'sm' | 'md' | 'lg' | 'xl'",
|
|
11
|
+
"defaultValue": "md",
|
|
12
|
+
"required": false,
|
|
13
|
+
"description": "Icon edge length aligned to the spacing scale (14/16/20/24px rendered via SVG selectors)"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "tone",
|
|
17
|
+
"type": "'default' | 'muted' | 'primary' | 'success' | 'warning' | 'info' | 'destructive'",
|
|
18
|
+
"defaultValue": "default",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "Semantic text color applied to the icon via currentColor"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "icon",
|
|
24
|
+
"type": "ComponentType<SVGProps<SVGSVGElement>>",
|
|
25
|
+
"required": false,
|
|
26
|
+
"description": "Icon component to render; alternatively pass the SVG element as children"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "label",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"required": false,
|
|
32
|
+
"description": "Accessible name; when set the icon is exposed as role=img instead of hidden"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "className",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"required": false,
|
|
38
|
+
"description": "Additional CSS classes to apply"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"examples": [
|
|
42
|
+
{
|
|
43
|
+
"title": "Decorative icon in a button",
|
|
44
|
+
"code": "<Button variant=\"ghost\" size=\"icon\">\n <Icon icon={SearchIcon} />\n</Button>",
|
|
45
|
+
"description": "Icon is aria-hidden; the button supplies the accessible name"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"title": "Meaningful standalone icon",
|
|
49
|
+
"code": "<Icon icon={CheckCircleIcon} size=\"lg\" tone=\"success\" label=\"Verified\" />",
|
|
50
|
+
"description": "label exposes the icon as role=img for assistive tech"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"antiPatterns": [
|
|
54
|
+
{
|
|
55
|
+
"title": "Don't use Icon for text or interactive content",
|
|
56
|
+
"explanation": "Icon only sizes and tints SVG artwork. Interactive elements belong in IconButton or Button.",
|
|
57
|
+
"example": "// Avoid\n<Icon onClick={...}><svg /></Icon>\n// Prefer\n<IconButton label=\"Settings\" onClick={...}><SettingsIcon /></IconButton>"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"accessibility": [
|
|
61
|
+
{
|
|
62
|
+
"feature": "Decorative by default",
|
|
63
|
+
"implementation": "aria-hidden=true unless label is provided, then role=img + aria-label",
|
|
64
|
+
"userRequirements": "Pass label whenever the icon conveys meaning without adjacent text"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"feature": "Color contrast",
|
|
68
|
+
"implementation": "Tones use semantic ink tokens audited for AA on tinted surfaces",
|
|
69
|
+
"userRequirements": "Icons are decorative; ensure meaning is not carried by color alone"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"contentGuidelines": [
|
|
73
|
+
{
|
|
74
|
+
"contentType": "Icon labels",
|
|
75
|
+
"guidelines": [
|
|
76
|
+
"Keep labels to one or two words",
|
|
77
|
+
"Name the action or object, not the icon",
|
|
78
|
+
"Match the label to the visible tooltip or adjacent text"
|
|
79
|
+
],
|
|
80
|
+
"goodExamples": [
|
|
81
|
+
"Search",
|
|
82
|
+
"Verified",
|
|
83
|
+
"Delete item"
|
|
84
|
+
],
|
|
85
|
+
"badExamples": [
|
|
86
|
+
"Magnifying glass icon",
|
|
87
|
+
"Click here"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"compositionRules": [
|
|
92
|
+
{
|
|
93
|
+
"component": "IconButton",
|
|
94
|
+
"relationship": "IconButton renders Icon children inside an accessible labeled control",
|
|
95
|
+
"example": "<IconButton label=\"Search\"><Icon icon={SearchIcon}/></IconButton>"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"component": "IconTile",
|
|
99
|
+
"relationship": "IconTile sizes descendant svg elements itself; plain SVG children work without Icon",
|
|
100
|
+
"example": "<IconTile tone=\"primary\"><ZapIcon/></IconTile>"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"component": "Button",
|
|
104
|
+
"relationship": "Button already sizes descendant svg at size-4; Icon adds tone and larger sizes",
|
|
105
|
+
"example": "<Button><Icon size=\"lg\" tone=\"primary\" icon={StarIcon}/> New</Button>"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"relatedComponents": [
|
|
109
|
+
"IconButton",
|
|
110
|
+
"IconTile",
|
|
111
|
+
"SocialLinks",
|
|
112
|
+
"Button"
|
|
113
|
+
],
|
|
114
|
+
"package": "@slipstream-ui/core",
|
|
115
|
+
"importPath": "@slipstream-ui/core",
|
|
116
|
+
"version": "0.13.0",
|
|
117
|
+
"sourceDir": "icon",
|
|
118
|
+
"exportName": "Icon"
|
|
119
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "atom",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.13.0",
|
|
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.
|
|
7
|
+
"version": "0.13.0",
|
|
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.
|
|
7
|
+
"version": "0.13.0",
|
|
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.",
|
|
@@ -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": "media-card",
|
|
9
9
|
"exportName": "MediaCard",
|
|
10
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.",
|