@slipstream-ui/core 0.8.0 → 0.9.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 +184 -8
- package/dist/index.d.ts +184 -8
- package/dist/index.js +1609 -887
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1651 -933
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +2 -2
- 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 +175 -0
- 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 +8 -1
- package/dist/manifests/date-picker-popover.manifest.json +202 -0
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +142 -0
- 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 +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 +86 -4
- 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 +13 -3
- 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 +7 -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/alert/Alert.js +1 -1
- package/dist/src/components/alert/Alert.js.map +1 -1
- package/dist/src/components/alert/Alert.mjs +1 -1
- package/dist/src/components/alert/Alert.mjs.map +1 -1
- package/dist/src/components/app-shell/AppShell.js +1 -1
- package/dist/src/components/app-shell/AppShell.js.map +1 -1
- package/dist/src/components/app-shell/AppShell.mjs +1 -1
- package/dist/src/components/app-shell/AppShell.mjs.map +1 -1
- package/dist/src/components/article-card/ArticleCard.js +2 -2
- package/dist/src/components/article-card/ArticleCard.js.map +1 -1
- package/dist/src/components/article-card/ArticleCard.mjs +2 -2
- package/dist/src/components/article-card/ArticleCard.mjs.map +1 -1
- package/dist/src/components/calendar/Calendar.d.ts +34 -0
- package/dist/src/components/calendar/Calendar.js +233 -0
- package/dist/src/components/calendar/Calendar.js.map +1 -0
- package/dist/src/components/calendar/Calendar.mjs +208 -0
- package/dist/src/components/calendar/Calendar.mjs.map +1 -0
- package/dist/src/components/calendar/index.d.ts +1 -0
- package/dist/src/components/calendar/index.js +23 -0
- package/dist/src/components/calendar/index.js.map +1 -0
- package/dist/src/components/calendar/index.mjs +2 -0
- package/dist/src/components/calendar/index.mjs.map +1 -0
- package/dist/src/components/comparison-table/ComparisonTable.js +1 -1
- package/dist/src/components/comparison-table/ComparisonTable.js.map +1 -1
- package/dist/src/components/comparison-table/ComparisonTable.mjs +1 -1
- package/dist/src/components/comparison-table/ComparisonTable.mjs.map +1 -1
- package/dist/src/components/cta-section/CTASection.js +1 -1
- package/dist/src/components/cta-section/CTASection.js.map +1 -1
- package/dist/src/components/cta-section/CTASection.mjs +1 -1
- package/dist/src/components/cta-section/CTASection.mjs.map +1 -1
- package/dist/src/components/data-table/DataTable.d.ts +3 -1
- package/dist/src/components/data-table/DataTable.js +2 -4
- package/dist/src/components/data-table/DataTable.js.map +1 -1
- package/dist/src/components/data-table/DataTable.mjs +2 -4
- package/dist/src/components/data-table/DataTable.mjs.map +1 -1
- package/dist/src/components/date-picker-popover/DatePickerPopover.d.ts +33 -0
- package/dist/src/components/date-picker-popover/DatePickerPopover.js +117 -0
- package/dist/src/components/date-picker-popover/DatePickerPopover.js.map +1 -0
- package/dist/src/components/date-picker-popover/DatePickerPopover.mjs +83 -0
- package/dist/src/components/date-picker-popover/DatePickerPopover.mjs.map +1 -0
- package/dist/src/components/date-picker-popover/index.d.ts +1 -0
- package/dist/src/components/date-picker-popover/index.js +23 -0
- package/dist/src/components/date-picker-popover/index.js.map +1 -0
- package/dist/src/components/date-picker-popover/index.mjs +2 -0
- package/dist/src/components/date-picker-popover/index.mjs.map +1 -0
- package/dist/src/components/image/Image.d.ts +34 -0
- package/dist/src/components/image/Image.js +75 -0
- package/dist/src/components/image/Image.js.map +1 -0
- package/dist/src/components/image/Image.mjs +41 -0
- package/dist/src/components/image/Image.mjs.map +1 -0
- package/dist/src/components/image/index.d.ts +1 -0
- package/dist/src/components/image/index.js +29 -0
- package/dist/src/components/image/index.js.map +1 -0
- package/dist/src/components/image/index.mjs +5 -0
- package/dist/src/components/image/index.mjs.map +1 -0
- package/dist/src/components/link/Link.js +4 -4
- package/dist/src/components/link/Link.js.map +1 -1
- package/dist/src/components/link/Link.mjs +4 -4
- package/dist/src/components/link/Link.mjs.map +1 -1
- package/dist/src/components/page-header/PageHeader.js +1 -1
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +1 -1
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/popover/Popover.d.ts +36 -3
- package/dist/src/components/popover/Popover.js +118 -22
- package/dist/src/components/popover/Popover.js.map +1 -1
- package/dist/src/components/popover/Popover.mjs +117 -22
- package/dist/src/components/popover/Popover.mjs.map +1 -1
- package/dist/src/components/section-heading/SectionHeading.js +1 -1
- package/dist/src/components/section-heading/SectionHeading.js.map +1 -1
- package/dist/src/components/section-heading/SectionHeading.mjs +1 -1
- package/dist/src/components/section-heading/SectionHeading.mjs.map +1 -1
- package/dist/src/components/site-header/SiteHeader.d.ts +25 -3
- package/dist/src/components/site-header/SiteHeader.js +141 -6
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +141 -6
- package/dist/src/components/site-header/SiteHeader.mjs.map +1 -1
- package/dist/src/components/stepper/Stepper.d.ts +18 -0
- package/dist/src/components/stepper/Stepper.js +2 -1
- package/dist/src/components/stepper/Stepper.js.map +1 -1
- package/dist/src/components/stepper/Stepper.mjs +2 -1
- package/dist/src/components/stepper/Stepper.mjs.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/utils/date.d.ts +32 -0
- package/dist/src/utils/date.js +171 -0
- package/dist/src/utils/date.js.map +1 -0
- package/dist/src/utils/date.mjs +134 -0
- package/dist/src/utils/date.mjs.map +1 -0
- package/dist/src/utils/position.d.ts +42 -0
- package/dist/src/utils/position.js +91 -0
- package/dist/src/utils/position.js.map +1 -0
- package/dist/src/utils/position.mjs +67 -0
- package/dist/src/utils/position.mjs.map +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/alert/Alert.tsx +1 -1
- package/src/components/app-shell/AppShell.tsx +1 -1
- package/src/components/article-card/ArticleCard.tsx +2 -2
- package/src/components/calendar/Calendar.test.tsx +277 -0
- package/src/components/calendar/Calendar.tsx +273 -0
- package/src/components/calendar/index.ts +1 -0
- package/src/components/comparison-table/ComparisonTable.tsx +1 -1
- package/src/components/cta-section/CTASection.tsx +1 -1
- package/src/components/data-table/DataTable.test.tsx +21 -0
- package/src/components/data-table/DataTable.tsx +4 -1
- package/src/components/date-picker-popover/DatePickerPopover.test.tsx +223 -0
- package/src/components/date-picker-popover/DatePickerPopover.tsx +117 -0
- package/src/components/date-picker-popover/index.ts +1 -0
- package/src/components/image/Image.test.tsx +94 -0
- package/src/components/image/Image.tsx +71 -0
- package/src/components/image/index.ts +1 -0
- package/src/components/link/Link.test.tsx +2 -1
- package/src/components/link/Link.tsx +4 -4
- package/src/components/page-header/PageHeader.tsx +1 -1
- package/src/components/popover/Popover.test.tsx +307 -3
- package/src/components/popover/Popover.tsx +228 -91
- package/src/components/section-heading/SectionHeading.tsx +1 -1
- package/src/components/site-header/SiteHeader.test.tsx +103 -1
- package/src/components/site-header/SiteHeader.tsx +220 -16
- package/src/components/stepper/Stepper.test.tsx +12 -0
- package/src/components/stepper/Stepper.tsx +15 -1
- package/src/index.ts +3 -0
- package/src/manifests/accordion.manifest.json +2 -2
- 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 +175 -0
- 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 +8 -1
- package/src/manifests/date-picker-popover.manifest.json +202 -0
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +142 -0
- 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 +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 +86 -4
- 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 +13 -3
- 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 +7 -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
- package/src/utils/date.test.ts +190 -0
- package/src/utils/date.ts +162 -0
- package/src/utils/position.test.ts +227 -0
- package/src/utils/position.ts +129 -0
|
@@ -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.9.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.9.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.",
|
|
@@ -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.9.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.9.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.9.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.9.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.9.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.9.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,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "image",
|
|
3
|
+
"name": "Image",
|
|
4
|
+
"tier": "atom",
|
|
5
|
+
"description": "A resilient image with a two-step fallback chain, intrinsic dimensions, and an LCP priority flag",
|
|
6
|
+
"designIntent": "Organizer images are hotlinked and periodically 403, move, or die. Image keeps cards and banners free of broken-image boxes and layout shift by always emitting intrinsic dimensions, trying a known-good fallback source, and finally rendering consumer-provided fallback content. Priority is opt-in for the one above-the-fold image per page.",
|
|
7
|
+
"props": [
|
|
8
|
+
{
|
|
9
|
+
"name": "src",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"required": true,
|
|
12
|
+
"description": "Primary image URL; hotlinked sources are expected",
|
|
13
|
+
"examples": [
|
|
14
|
+
"https://organizer.example/event.jpg",
|
|
15
|
+
"/images/event-placeholder.svg"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "alt",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"required": true,
|
|
22
|
+
"description": "Accessible description of the image content",
|
|
23
|
+
"examples": [
|
|
24
|
+
"Fall Classic ballroom competition floor",
|
|
25
|
+
"Studio storefront on Main Street"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "fallbackSrc",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"required": false,
|
|
32
|
+
"description": "Second URL tried before the fallback node, such as generated placeholder art"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "fallback",
|
|
36
|
+
"type": "React.ReactNode",
|
|
37
|
+
"required": false,
|
|
38
|
+
"description": "Content rendered when every URL has failed (icon, initials, empty panel)"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "priority",
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"defaultValue": "false",
|
|
44
|
+
"required": false,
|
|
45
|
+
"description": "Load eagerly with high fetch priority for the LCP image"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "width",
|
|
49
|
+
"type": "number",
|
|
50
|
+
"defaultValue": "1200",
|
|
51
|
+
"required": false,
|
|
52
|
+
"description": "Intrinsic width used to reserve layout space (CLS)"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "height",
|
|
56
|
+
"type": "number",
|
|
57
|
+
"defaultValue": "630",
|
|
58
|
+
"required": false,
|
|
59
|
+
"description": "Intrinsic height used to reserve layout space (CLS)"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "className",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"required": false,
|
|
65
|
+
"description": "Classes applied to the image element"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "imgClassName",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"required": false,
|
|
71
|
+
"description": "Additional image classes, merged with className"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "style",
|
|
75
|
+
"type": "React.CSSProperties",
|
|
76
|
+
"required": false,
|
|
77
|
+
"description": "Inline styles for the image element"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"examples": [
|
|
81
|
+
{
|
|
82
|
+
"title": "Event card image",
|
|
83
|
+
"code": "<Image\n src={event.imageUrl}\n fallbackSrc=\"/images/event-placeholder.svg\"\n alt={`${event.title} event image`}\n width={1200}\n height={630}\n/>",
|
|
84
|
+
"description": "Hotlinked organizer image with a generated fallback"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"title": "Hero image",
|
|
88
|
+
"code": "<Image\n src=\"/hero.jpg\"\n alt=\"Dancers on the competition floor\"\n width={1600}\n height={900}\n priority\n/>",
|
|
89
|
+
"description": "The single above-the-fold image loads eagerly"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"title": "Initials fallback",
|
|
93
|
+
"code": "<Image\n src={org.imageUrl ?? ''}\n alt={org.name}\n width={96}\n height={96}\n fallback={<span aria-hidden>{initials(org.name)}</span>}\n/>",
|
|
94
|
+
"description": "Render an identity tile when no image survives"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"antiPatterns": [
|
|
98
|
+
{
|
|
99
|
+
"title": "Don't omit width and height",
|
|
100
|
+
"explanation": "Without intrinsic dimensions the browser cannot reserve space and a failed image shifts the page. The defaults exist so there is no reason to omit them; override them to the real aspect ratio.",
|
|
101
|
+
"example": "// Avoid: no dimensions\n<Image src={src} alt={alt} />\n\n// Prefer: real aspect ratio\n<Image src={src} alt={alt} width={1200} height={630} />"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"title": "Don't set priority on every image",
|
|
105
|
+
"explanation": "Only one image should compete for LCP priority. Marking a grid eager delays everything else.",
|
|
106
|
+
"example": "// Avoid: every card eager\nitems.map((item) => <Image priority ... />)\n\n// Prefer: first item only\nitems.map((item, index) => <Image priority={index === 0} ... />)"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"title": "Don't describe the component in alt text",
|
|
110
|
+
"explanation": "Alt text describes the content. Screen readers already announce that it is an image.",
|
|
111
|
+
"example": "// Avoid: <Image alt=\"Image of a dancer\" />\n// Prefer: <Image alt=\"Dancer mid-turn on the floor\" />"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"accessibility": [
|
|
115
|
+
{
|
|
116
|
+
"feature": "Alternative text",
|
|
117
|
+
"implementation": "alt is required by the type system and rendered on every img",
|
|
118
|
+
"userRequirements": "Describe the content; use an empty alt only for decorative images"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"feature": "Layout stability",
|
|
122
|
+
"implementation": "Intrinsic width and height are always rendered, including after a fallback swap",
|
|
123
|
+
"userRequirements": "Pass the real aspect ratio for the surface"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"feature": "Failed image",
|
|
127
|
+
"implementation": "A failed chain renders fallback content instead of a broken-image glyph",
|
|
128
|
+
"userRequirements": "Provide a fallback for cards where the image carries meaning"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"relatedComponents": [
|
|
132
|
+
"ArticleCard",
|
|
133
|
+
"EntityCard",
|
|
134
|
+
"Hero",
|
|
135
|
+
"PageHeader"
|
|
136
|
+
],
|
|
137
|
+
"package": "@slipstream-ui/core",
|
|
138
|
+
"importPath": "@slipstream-ui/core",
|
|
139
|
+
"version": "0.9.0",
|
|
140
|
+
"sourceDir": "image",
|
|
141
|
+
"exportName": "Image"
|
|
142
|
+
}
|
|
@@ -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.9.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.9.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.9.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": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.9.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.9.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.",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"id": "popover",
|
|
3
3
|
"name": "Popover",
|
|
4
4
|
"tier": "molecule",
|
|
5
|
-
"description": "Floating panel anchored to a trigger with
|
|
6
|
-
"designIntent": "Popover displays interactive content (links, buttons, forms) in a floating panel.
|
|
5
|
+
"description": "Floating panel anchored to a trigger or a PopoverAnchor, with placement, flip and collision control, closing on outside click and Escape",
|
|
6
|
+
"designIntent": "Popover displays interactive content (links, buttons, forms) in a floating panel. The panel prefers the requested side, flips when that side cannot fit, and clamps inside the viewport, so it is never clipped by the window edge or an ancestor's overflow.",
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "open",
|
|
@@ -28,6 +28,68 @@
|
|
|
28
28
|
"type": "string",
|
|
29
29
|
"required": false,
|
|
30
30
|
"description": "Additional CSS classes to apply"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "side",
|
|
34
|
+
"type": "'top' | 'right' | 'bottom' | 'left'",
|
|
35
|
+
"defaultValue": "bottom",
|
|
36
|
+
"required": false,
|
|
37
|
+
"description": "Preferred side of the anchor; flips to the opposite side when it cannot fit.",
|
|
38
|
+
"enum": [
|
|
39
|
+
"top",
|
|
40
|
+
"right",
|
|
41
|
+
"bottom",
|
|
42
|
+
"left"
|
|
43
|
+
],
|
|
44
|
+
"examples": [
|
|
45
|
+
"bottom",
|
|
46
|
+
"top",
|
|
47
|
+
"right"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "align",
|
|
52
|
+
"type": "'start' | 'center' | 'end'",
|
|
53
|
+
"defaultValue": "start",
|
|
54
|
+
"required": false,
|
|
55
|
+
"description": "Cross-axis alignment of the panel against the anchor.",
|
|
56
|
+
"enum": [
|
|
57
|
+
"start",
|
|
58
|
+
"center",
|
|
59
|
+
"end"
|
|
60
|
+
],
|
|
61
|
+
"examples": [
|
|
62
|
+
"start",
|
|
63
|
+
"center"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "sideOffset",
|
|
68
|
+
"type": "number",
|
|
69
|
+
"defaultValue": "8",
|
|
70
|
+
"required": false,
|
|
71
|
+
"description": "Gap in pixels between the anchor and the panel."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "alignOffset",
|
|
75
|
+
"type": "number",
|
|
76
|
+
"defaultValue": "0",
|
|
77
|
+
"required": false,
|
|
78
|
+
"description": "Nudge in pixels along the cross axis."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "collisionPadding",
|
|
82
|
+
"type": "number",
|
|
83
|
+
"defaultValue": "8",
|
|
84
|
+
"required": false,
|
|
85
|
+
"description": "Minimum distance the panel keeps from the viewport edges."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "matchTriggerWidth",
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"defaultValue": "false",
|
|
91
|
+
"required": false,
|
|
92
|
+
"description": "Set the panel width to the anchor width, for select-like panels."
|
|
31
93
|
}
|
|
32
94
|
],
|
|
33
95
|
"examples": [
|
|
@@ -40,6 +102,16 @@
|
|
|
40
102
|
"title": "Controlled popover",
|
|
41
103
|
"code": "<Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger>Options</PopoverTrigger>\n <PopoverContent>\n <form>...</form>\n </PopoverContent>\n</Popover>",
|
|
42
104
|
"description": "Popover driven by parent state"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"title": "Placement",
|
|
108
|
+
"code": "<Popover>\n <PopoverTrigger>Filters</PopoverTrigger>\n <PopoverContent side=\"right\" align=\"start\" sideOffset={12}>\n <FilterPanel />\n </PopoverContent>\n</Popover>",
|
|
109
|
+
"description": "The panel opens to the right and flips left when there is no room."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"title": "Anchored to a field",
|
|
113
|
+
"code": "<Popover>\n <PopoverAnchor><Input placeholder=\"Pick a date\" /></PopoverAnchor>\n <PopoverTrigger>Pick</PopoverTrigger>\n <PopoverContent matchTriggerWidth>\n <Calendar value={date} onValueChange={setDate} />\n </PopoverContent>\n</Popover>",
|
|
114
|
+
"description": "PopoverAnchor places the panel against the field, not the wrapper."
|
|
43
115
|
}
|
|
44
116
|
],
|
|
45
117
|
"antiPatterns": [
|
|
@@ -51,6 +123,11 @@
|
|
|
51
123
|
{
|
|
52
124
|
"title": "Don't use Popover for critical forms or destructive actions",
|
|
53
125
|
"explanation": "Popovers close on outside click, which can interrupt form filling. Use Dialog for forms and destructive confirmations."
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"title": "Don't build a custom floating panel",
|
|
129
|
+
"explanation": "Placement, flipping, viewport clamping, scroll anchoring and dismissal are already handled. A hand-rolled portal by definition has none of them.",
|
|
130
|
+
"example": "// Avoid\n<div style={{ position: 'fixed', top: rect.bottom }}>...</div>\n\n// Prefer\n<PopoverContent side=\"bottom\" collisionPadding={8}>...</PopoverContent>"
|
|
54
131
|
}
|
|
55
132
|
],
|
|
56
133
|
"accessibility": [
|
|
@@ -61,7 +138,7 @@
|
|
|
61
138
|
},
|
|
62
139
|
{
|
|
63
140
|
"feature": "Escape dismissal",
|
|
64
|
-
"implementation": "Escape closes the popover",
|
|
141
|
+
"implementation": "Escape closes the popover and returns focus to the trigger",
|
|
65
142
|
"userRequirements": "Keep the trigger focusable after close"
|
|
66
143
|
}
|
|
67
144
|
],
|
|
@@ -89,6 +166,11 @@
|
|
|
89
166
|
"component": "PopoverTrigger",
|
|
90
167
|
"relationship": "Every Popover needs a PopoverTrigger",
|
|
91
168
|
"example": "<PopoverTrigger>Open</PopoverTrigger>"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"component": "PopoverAnchor",
|
|
172
|
+
"relationship": "Use PopoverAnchor when the panel belongs to a field rather than the trigger button",
|
|
173
|
+
"example": "<PopoverAnchor><Input /></PopoverAnchor>"
|
|
92
174
|
}
|
|
93
175
|
],
|
|
94
176
|
"relatedComponents": [
|
|
@@ -98,7 +180,7 @@
|
|
|
98
180
|
],
|
|
99
181
|
"package": "@slipstream-ui/core",
|
|
100
182
|
"importPath": "@slipstream-ui/core",
|
|
101
|
-
"version": "0.
|
|
183
|
+
"version": "0.9.0",
|
|
102
184
|
"sourceDir": "popover",
|
|
103
185
|
"exportName": "Popover"
|
|
104
186
|
}
|
|
@@ -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.9.0",
|
|
8
8
|
"sourceDir": "process-steps",
|
|
9
9
|
"exportName": "ProcessSteps",
|
|
10
10
|
"description": "Ordered process cards with derived step numbers or custom icons.",
|