@slipstream-ui/core 0.12.1 → 0.14.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 +208 -4
- package/dist/index.d.ts +208 -4
- package/dist/index.js +471 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +463 -11
- 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 +49 -6
- 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/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/components/time-picker/TimePicker.d.ts +31 -2
- package/dist/src/components/time-picker/TimePicker.js +244 -11
- package/dist/src/components/time-picker/TimePicker.js.map +1 -1
- package/dist/src/components/time-picker/TimePicker.mjs +244 -11
- package/dist/src/components/time-picker/TimePicker.mjs.map +1 -1
- package/dist/src/index.d.ts +6 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- 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/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/components/time-picker/TimePicker.test.tsx +77 -0
- package/src/components/time-picker/TimePicker.tsx +315 -12
- 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 +49 -6
- 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,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.14.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.14.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.14.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.14.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.14.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.14.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.14.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.",
|
|
@@ -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.14.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.14.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.14.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.14.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.",
|