@slipstream-ui/core 0.7.0 → 0.8.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 +135 -15
- package/dist/index.d.ts +135 -15
- package/dist/index.js +923 -710
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +922 -710
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +7 -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 +19 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +13 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +130 -0
- 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/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.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 +48 -2
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +36 -4
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +7 -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/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/accordion/Accordion.d.ts +17 -1
- package/dist/src/components/accordion/Accordion.js +5 -1
- package/dist/src/components/accordion/Accordion.js.map +1 -1
- package/dist/src/components/accordion/Accordion.mjs +5 -1
- package/dist/src/components/accordion/Accordion.mjs.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.d.ts +14 -2
- package/dist/src/components/auth-layout/AuthLayout.js +10 -2
- package/dist/src/components/auth-layout/AuthLayout.js.map +1 -1
- package/dist/src/components/auth-layout/AuthLayout.mjs +10 -2
- package/dist/src/components/auth-layout/AuthLayout.mjs.map +1 -1
- package/dist/src/components/badge/Badge.d.ts +2 -0
- package/dist/src/components/badge/Badge.js +9 -3
- package/dist/src/components/badge/Badge.js.map +1 -1
- package/dist/src/components/badge/Badge.mjs +9 -3
- package/dist/src/components/badge/Badge.mjs.map +1 -1
- package/dist/src/components/bottom-nav/BottomNav.d.ts +36 -0
- package/dist/src/components/bottom-nav/BottomNav.js +90 -0
- package/dist/src/components/bottom-nav/BottomNav.js.map +1 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs +66 -0
- package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -0
- package/dist/src/components/bottom-nav/index.d.ts +1 -0
- package/dist/src/components/bottom-nav/index.js +23 -0
- package/dist/src/components/bottom-nav/index.js.map +1 -0
- package/dist/src/components/bottom-nav/index.mjs +2 -0
- package/dist/src/components/bottom-nav/index.mjs.map +1 -0
- package/dist/src/components/drawer/Drawer.d.ts +25 -2
- package/dist/src/components/drawer/Drawer.js +97 -6
- package/dist/src/components/drawer/Drawer.js.map +1 -1
- package/dist/src/components/drawer/Drawer.mjs +97 -6
- package/dist/src/components/drawer/Drawer.mjs.map +1 -1
- package/dist/src/components/empty-state/EmptyState.d.ts +13 -4
- package/dist/src/components/empty-state/EmptyState.js +13 -1
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +13 -1
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/metric-card/MetricCard.d.ts +23 -4
- package/dist/src/components/metric-card/MetricCard.js +32 -5
- package/dist/src/components/metric-card/MetricCard.js.map +1 -1
- package/dist/src/components/metric-card/MetricCard.mjs +32 -5
- package/dist/src/components/metric-card/MetricCard.mjs.map +1 -1
- package/dist/src/components/page-header/PageHeader.d.ts +4 -0
- package/dist/src/components/page-header/PageHeader.js +3 -2
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +3 -2
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/separator/Separator.d.ts +3 -3
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/accordion/Accordion.test.tsx +31 -0
- package/src/components/accordion/Accordion.tsx +27 -2
- package/src/components/auth-layout/AuthLayout.test.tsx +36 -0
- package/src/components/auth-layout/AuthLayout.tsx +20 -3
- package/src/components/badge/Badge.test.tsx +7 -0
- package/src/components/badge/Badge.tsx +8 -2
- package/src/components/bottom-nav/BottomNav.test.tsx +48 -0
- package/src/components/bottom-nav/BottomNav.tsx +117 -0
- package/src/components/bottom-nav/index.ts +1 -0
- package/src/components/drawer/Drawer.test.tsx +86 -1
- package/src/components/drawer/Drawer.tsx +135 -7
- package/src/components/empty-state/EmptyState.test.tsx +26 -1
- package/src/components/empty-state/EmptyState.tsx +40 -3
- package/src/components/metric-card/MetricCard.test.tsx +32 -0
- package/src/components/metric-card/MetricCard.tsx +45 -7
- package/src/components/page-header/PageHeader.test.tsx +13 -0
- package/src/components/page-header/PageHeader.tsx +5 -2
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +7 -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 +19 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +13 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +130 -0
- 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/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.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 +48 -2
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +36 -4
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +7 -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/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
|
@@ -71,6 +71,12 @@
|
|
|
71
71
|
"lg",
|
|
72
72
|
"16"
|
|
73
73
|
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "items",
|
|
77
|
+
"type": "AccordionSection[]",
|
|
78
|
+
"required": false,
|
|
79
|
+
"description": "Declarative sections ({ id, title, content, disabled }); rendered as an AccordionItem per entry instead of children."
|
|
74
80
|
}
|
|
75
81
|
],
|
|
76
82
|
"examples": [
|
|
@@ -132,7 +138,7 @@
|
|
|
132
138
|
],
|
|
133
139
|
"package": "@slipstream-ui/core",
|
|
134
140
|
"importPath": "@slipstream-ui/core",
|
|
135
|
-
"version": "0.
|
|
141
|
+
"version": "0.8.0",
|
|
136
142
|
"sourceDir": "accordion",
|
|
137
143
|
"exportName": "Accordion"
|
|
138
144
|
}
|
|
@@ -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.8.0",
|
|
8
8
|
"sourceDir": "announcement-bar",
|
|
9
9
|
"exportName": "AnnouncementBar",
|
|
10
10
|
"description": "Dismissible announcement bar with optional action, tone and sticky positioning.",
|
|
@@ -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.8.0",
|
|
8
8
|
"sourceDir": "applied-filters",
|
|
9
9
|
"exportName": "AppliedFilters",
|
|
10
10
|
"description": "Applied-filter summary with a live count, removable chips and an edit action.",
|
|
@@ -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.8.0",
|
|
8
8
|
"sourceDir": "article-card",
|
|
9
9
|
"exportName": "ArticleCard",
|
|
10
10
|
"description": "Linked article or resource card with media, eyebrow, title, summary and metadata.",
|
|
@@ -17,12 +17,24 @@
|
|
|
17
17
|
"required": false,
|
|
18
18
|
"description": "Supporting line under the heading."
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
"name": "subtitle",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": "Alias for description (migration-friendly)."
|
|
25
|
+
},
|
|
20
26
|
{
|
|
21
27
|
"name": "brand",
|
|
22
28
|
"type": "ReactNode",
|
|
23
29
|
"required": false,
|
|
24
30
|
"description": "Mark rendered above the card."
|
|
25
31
|
},
|
|
32
|
+
{
|
|
33
|
+
"name": "logo",
|
|
34
|
+
"type": "ReactNode",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": "Alias for brand (migration-friendly)."
|
|
37
|
+
},
|
|
26
38
|
{
|
|
27
39
|
"name": "footer",
|
|
28
40
|
"type": "ReactNode",
|
|
@@ -53,6 +65,12 @@
|
|
|
53
65
|
"type": "ReactNode",
|
|
54
66
|
"required": false,
|
|
55
67
|
"description": "Optional panel rendered beside the card in the split variant. Ignored when centered; omitting it falls back to centered."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "maxWidth",
|
|
71
|
+
"type": "number | string",
|
|
72
|
+
"required": false,
|
|
73
|
+
"description": "Overrides the card width: pixels (420) or any CSS width (\"26rem\")."
|
|
56
74
|
}
|
|
57
75
|
],
|
|
58
76
|
"examples": [
|
|
@@ -106,7 +124,7 @@
|
|
|
106
124
|
],
|
|
107
125
|
"package": "@slipstream-ui/core",
|
|
108
126
|
"importPath": "@slipstream-ui/core",
|
|
109
|
-
"version": "0.
|
|
127
|
+
"version": "0.8.0",
|
|
110
128
|
"sourceDir": "auth-layout",
|
|
111
129
|
"exportName": "AuthLayout"
|
|
112
130
|
}
|
|
@@ -54,6 +54,18 @@
|
|
|
54
54
|
"required": false,
|
|
55
55
|
"defaultValue": "false",
|
|
56
56
|
"description": "Render the child element with badge styling."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "size",
|
|
60
|
+
"type": "'sm' | 'md' | 'lg'",
|
|
61
|
+
"required": false,
|
|
62
|
+
"defaultValue": "md",
|
|
63
|
+
"description": "Pill scale: sm for dense tables, lg for hero and metadata strips.",
|
|
64
|
+
"enum": [
|
|
65
|
+
"sm",
|
|
66
|
+
"md",
|
|
67
|
+
"lg"
|
|
68
|
+
]
|
|
57
69
|
}
|
|
58
70
|
],
|
|
59
71
|
"examples": [
|
|
@@ -193,7 +205,7 @@
|
|
|
193
205
|
],
|
|
194
206
|
"package": "@slipstream-ui/core",
|
|
195
207
|
"importPath": "@slipstream-ui/core",
|
|
196
|
-
"version": "0.
|
|
208
|
+
"version": "0.8.0",
|
|
197
209
|
"sourceDir": "badge",
|
|
198
210
|
"exportName": "Badge"
|
|
199
211
|
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "bottom-nav",
|
|
3
|
+
"name": "BottomNav",
|
|
4
|
+
"tier": "organism",
|
|
5
|
+
"description": "Mobile bottom tab bar for the 3-5 primary destinations of an app shell, with an active tab, count badges and safe-area padding.",
|
|
6
|
+
"designIntent": "Mobile apps put primary navigation within thumb reach at the bottom of the screen, but hand-rolled bars drift on target size, active state and the iOS home indicator. BottomNav owns the landmark, the aria-current state, 44px minimum targets and env(safe-area-inset-bottom) so every mobile shell behaves the same.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "items",
|
|
10
|
+
"type": "BottomNavItem[]",
|
|
11
|
+
"required": true,
|
|
12
|
+
"description": "Tabs in order: href, label, optional icon, active, badge and disabled."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "linkComponent",
|
|
16
|
+
"type": "React.ElementType",
|
|
17
|
+
"required": false,
|
|
18
|
+
"description": "Router link component (Next Link, react-router Link)."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "linkHrefProp",
|
|
22
|
+
"type": "'href' | 'to'",
|
|
23
|
+
"required": false,
|
|
24
|
+
"defaultValue": "href",
|
|
25
|
+
"description": "Prop used to pass the destination to linkComponent.",
|
|
26
|
+
"enum": [
|
|
27
|
+
"href",
|
|
28
|
+
"to"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "label",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"required": false,
|
|
35
|
+
"defaultValue": "Primary",
|
|
36
|
+
"description": "Accessible label for the nav landmark."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "fixed",
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"required": false,
|
|
42
|
+
"defaultValue": "true",
|
|
43
|
+
"description": "Pin the bar to the bottom edge with safe-area padding."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "mobileOnly",
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"required": false,
|
|
49
|
+
"defaultValue": "true",
|
|
50
|
+
"description": "Hide the bar from the md breakpoint up."
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"examples": [
|
|
54
|
+
{
|
|
55
|
+
"title": "Mobile app shell tabs",
|
|
56
|
+
"code": "<BottomNav\n items={[\n { href: '/', label: 'Home', icon: <HomeIcon />, active: true },\n { href: '/search', label: 'Search', icon: <SearchIcon /> },\n { href: '/alerts', label: 'Alerts', icon: <BellIcon />, badge: 3 },\n ]}\n/>",
|
|
57
|
+
"description": "Three primary destinations with one active tab."
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"antiPatterns": [
|
|
61
|
+
{
|
|
62
|
+
"title": "Don't stack more than five tabs",
|
|
63
|
+
"explanation": "Targets stop being thumb-reachable and labels start truncating. Move the extras into a More destination.",
|
|
64
|
+
"example": "// Avoid\n<BottomNav items={eightItems} />\n\n// Prefer 3-5 items plus a More tab"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"title": "Don't use BottomNav for desktop navigation",
|
|
68
|
+
"explanation": "mobileOnly hides the bar at md and up; desktop keeps SiteHeader/Sidebar.",
|
|
69
|
+
"example": "// Avoid\n<BottomNav items={items} mobileOnly={false} />\n\n// Prefer desktop nav in SiteHeader or Sidebar"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"accessibility": [
|
|
73
|
+
{
|
|
74
|
+
"feature": "Navigation landmark",
|
|
75
|
+
"implementation": "Renders <nav> with an accessible name (default \"Primary\")",
|
|
76
|
+
"userRequirements": "Give each bar a distinct label when a page has more than one nav"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"feature": "Current tab",
|
|
80
|
+
"implementation": "aria-current=\"page\" on the active tab only",
|
|
81
|
+
"userRequirements": "Set active from the router's current location"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"feature": "Target size",
|
|
85
|
+
"implementation": "Every tab is at least 56px tall with a 44px minimum target",
|
|
86
|
+
"userRequirements": "Keep icons decorative; the label carries the name"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"contentGuidelines": [
|
|
90
|
+
{
|
|
91
|
+
"contentType": "Tab labels",
|
|
92
|
+
"guidelines": [
|
|
93
|
+
"One word where possible",
|
|
94
|
+
"Sentence case",
|
|
95
|
+
"Under 12 characters"
|
|
96
|
+
],
|
|
97
|
+
"goodExamples": [
|
|
98
|
+
"Home",
|
|
99
|
+
"Search",
|
|
100
|
+
"Alerts"
|
|
101
|
+
],
|
|
102
|
+
"badExamples": [
|
|
103
|
+
"Go to the alerts page"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"compositionRules": [
|
|
108
|
+
{
|
|
109
|
+
"component": "AppShell",
|
|
110
|
+
"relationship": "Pair with AppShell and add bottom padding so content is not hidden behind the bar",
|
|
111
|
+
"example": "<AppShell><main className=\"pb-20\">...</main><BottomNav items={items} /></AppShell>"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"component": "Badge",
|
|
115
|
+
"relationship": "Counts ride in the item's badge slot; keep them to a single number",
|
|
116
|
+
"example": "<BottomNav items={[{ href: '/alerts', label: 'Alerts', badge: 3 }]} />"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"relatedComponents": [
|
|
120
|
+
"AppShell",
|
|
121
|
+
"Sidebar",
|
|
122
|
+
"SiteHeader",
|
|
123
|
+
"Badge"
|
|
124
|
+
],
|
|
125
|
+
"package": "@slipstream-ui/core",
|
|
126
|
+
"importPath": "@slipstream-ui/core",
|
|
127
|
+
"version": "0.8.0",
|
|
128
|
+
"sourceDir": "bottom-nav",
|
|
129
|
+
"exportName": "BottomNav"
|
|
130
|
+
}
|
|
@@ -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.8.0",
|
|
8
8
|
"sourceDir": "comparison-table",
|
|
9
9
|
"exportName": "ComparisonTable",
|
|
10
10
|
"description": "Marketing comparison table with check/dash boolean cells, a highlighted column and responsive overflow.",
|
|
@@ -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.8.0",
|
|
8
8
|
"sourceDir": "confirm-dialog",
|
|
9
9
|
"exportName": "ConfirmDialog",
|
|
10
10
|
"description": "Accessible confirmation dialog with async pending state, destructive variant and cancellable actions, built on Dialog.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.8.0",
|
|
8
8
|
"sourceDir": "contact-strip",
|
|
9
9
|
"exportName": "ContactStrip",
|
|
10
10
|
"description": "Compact labelled contact rows with optional icons and links.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "atom",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.8.0",
|
|
8
8
|
"sourceDir": "container",
|
|
9
9
|
"exportName": "Container",
|
|
10
10
|
"description": "Centered, width-constrained page container with shared gutters and four width presets.",
|
|
@@ -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.8.0",
|
|
8
8
|
"sourceDir": "cta-section",
|
|
9
9
|
"exportName": "CTASection",
|
|
10
10
|
"description": "Full-width conversion band with eyebrow, headline, supporting copy and actions.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.8.0",
|
|
8
8
|
"sourceDir": "date-range-picker",
|
|
9
9
|
"exportName": "DateRangePicker",
|
|
10
10
|
"description": "Start/end date range with ISO strings and quick presets.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.8.0",
|
|
8
8
|
"sourceDir": "deal-card",
|
|
9
9
|
"exportName": "DealCard",
|
|
10
10
|
"description": "Deal opportunity card with sector, status, metrics, NDA/CIM badges and access actions.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.8.0",
|
|
8
8
|
"sourceDir": "document-card",
|
|
9
9
|
"exportName": "DocumentCard",
|
|
10
10
|
"description": "Document row with file metadata, access status and an optional download action.",
|
|
@@ -18,9 +18,15 @@
|
|
|
18
18
|
{
|
|
19
19
|
"name": "onOpenChange",
|
|
20
20
|
"type": "(open: boolean) => void",
|
|
21
|
-
"required":
|
|
21
|
+
"required": false,
|
|
22
22
|
"description": "Close requests (✕, Escape, backdrop, your own triggers)."
|
|
23
23
|
},
|
|
24
|
+
{
|
|
25
|
+
"name": "onClose",
|
|
26
|
+
"type": "() => void",
|
|
27
|
+
"required": false,
|
|
28
|
+
"description": "Close-request alias for onOpenChange(false); used when only a close handler is passed."
|
|
29
|
+
},
|
|
24
30
|
{
|
|
25
31
|
"name": "title",
|
|
26
32
|
"type": "string",
|
|
@@ -88,6 +94,46 @@
|
|
|
88
94
|
"60vh"
|
|
89
95
|
]
|
|
90
96
|
},
|
|
97
|
+
{
|
|
98
|
+
"name": "resizable",
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"required": false,
|
|
101
|
+
"defaultValue": "false",
|
|
102
|
+
"description": "Drag the inner edge to resize a left/right drawer. Arrow keys nudge 16px, Shift+Arrow 64px, Home/End jump to the bounds. Ignored for top/bottom drawers."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "minWidth",
|
|
106
|
+
"type": "number",
|
|
107
|
+
"required": false,
|
|
108
|
+
"defaultValue": "240",
|
|
109
|
+
"description": "Lower width bound in pixels while resizable."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "maxWidth",
|
|
113
|
+
"type": "number",
|
|
114
|
+
"required": false,
|
|
115
|
+
"defaultValue": "960",
|
|
116
|
+
"description": "Upper width bound in pixels while resizable."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "defaultWidth",
|
|
120
|
+
"type": "number",
|
|
121
|
+
"required": false,
|
|
122
|
+
"description": "Initial width in pixels while resizable; defaults to the size preset."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "onWidthChange",
|
|
126
|
+
"type": "(width: number) => void",
|
|
127
|
+
"required": false,
|
|
128
|
+
"description": "Fired with the next width in pixels when a resize commits."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "resizeLabel",
|
|
132
|
+
"type": "string",
|
|
133
|
+
"required": false,
|
|
134
|
+
"defaultValue": "Resize drawer",
|
|
135
|
+
"description": "Accessible label for the resize handle."
|
|
136
|
+
},
|
|
91
137
|
{
|
|
92
138
|
"name": "closeOnBackdrop",
|
|
93
139
|
"type": "boolean",
|
|
@@ -213,7 +259,7 @@
|
|
|
213
259
|
],
|
|
214
260
|
"package": "@slipstream-ui/core",
|
|
215
261
|
"importPath": "@slipstream-ui/core",
|
|
216
|
-
"version": "0.
|
|
262
|
+
"version": "0.8.0",
|
|
217
263
|
"sourceDir": "drawer",
|
|
218
264
|
"exportName": "Drawer"
|
|
219
265
|
}
|
|
@@ -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.8.0",
|
|
8
8
|
"sourceDir": "entity-card",
|
|
9
9
|
"exportName": "EntityCard",
|
|
10
10
|
"description": "Firm or member profile card with logo, type, location, stats, tags and actions.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.8.0",
|
|
8
8
|
"sourceDir": "feature-grid",
|
|
9
9
|
"exportName": "FeatureGrid",
|
|
10
10
|
"description": "Grid of feature or benefit cards with an icon, title, copy and optional link.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.8.0",
|
|
8
8
|
"sourceDir": "feature-row",
|
|
9
9
|
"exportName": "FeatureRow",
|
|
10
10
|
"description": "Alternating media and copy row for mid-page feature sections.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.8.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.8.0",
|
|
8
8
|
"sourceDir": "filter-panel",
|
|
9
9
|
"exportName": "FilterPanel",
|
|
10
10
|
"description": "Structured filter panel with collapsible sections and reset/apply actions.",
|