@slipstream-ui/core 0.11.9 → 0.12.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 +254 -148
- package/dist/index.d.ts +254 -148
- package/dist/index.js +1582 -1156
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1577 -1156
- 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 +12 -1
- package/dist/manifests/app-shell.manifest.json +12 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +12 -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 +130 -0
- package/dist/manifests/contact-strip.manifest.json +12 -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 +12 -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 +12 -1
- package/dist/manifests/feature-grid.manifest.json +12 -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 +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 +161 -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 +217 -0
- 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 +7 -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 +12 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/announcement-bar/AnnouncementBar.d.ts +3 -6
- package/dist/src/components/announcement-bar/AnnouncementBar.js +3 -1
- package/dist/src/components/announcement-bar/AnnouncementBar.js.map +1 -1
- package/dist/src/components/announcement-bar/AnnouncementBar.mjs +3 -1
- package/dist/src/components/announcement-bar/AnnouncementBar.mjs.map +1 -1
- package/dist/src/components/app-shell/AppShell.d.ts +3 -4
- package/dist/src/components/app-shell/AppShell.js +3 -1
- package/dist/src/components/app-shell/AppShell.js.map +1 -1
- package/dist/src/components/app-shell/AppShell.mjs +3 -1
- package/dist/src/components/app-shell/AppShell.mjs.map +1 -1
- package/dist/src/components/article-card/ArticleCard.d.ts +3 -6
- package/dist/src/components/article-card/ArticleCard.js +3 -1
- package/dist/src/components/article-card/ArticleCard.js.map +1 -1
- package/dist/src/components/article-card/ArticleCard.mjs +3 -1
- package/dist/src/components/article-card/ArticleCard.mjs.map +1 -1
- package/dist/src/components/bottom-nav/BottomNav.d.ts +2 -5
- package/dist/src/components/bottom-nav/BottomNav.js +2 -1
- package/dist/src/components/bottom-nav/BottomNav.js.map +1 -1
- package/dist/src/components/bottom-nav/BottomNav.mjs +2 -1
- package/dist/src/components/bottom-nav/BottomNav.mjs.map +1 -1
- package/dist/src/components/breadcrumb/Breadcrumb.d.ts +3 -16
- package/dist/src/components/breadcrumb/Breadcrumb.js +2 -1
- package/dist/src/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/src/components/breadcrumb/Breadcrumb.mjs +2 -1
- package/dist/src/components/breadcrumb/Breadcrumb.mjs.map +1 -1
- package/dist/src/components/consent-banner/ConsentBanner.d.ts +53 -0
- package/dist/src/components/consent-banner/ConsentBanner.js +83 -0
- package/dist/src/components/consent-banner/ConsentBanner.js.map +1 -0
- package/dist/src/components/consent-banner/ConsentBanner.mjs +49 -0
- package/dist/src/components/consent-banner/ConsentBanner.mjs.map +1 -0
- package/dist/src/components/consent-banner/index.d.ts +1 -0
- package/dist/src/components/consent-banner/index.js +23 -0
- package/dist/src/components/consent-banner/index.js.map +1 -0
- package/dist/src/components/consent-banner/index.mjs +2 -0
- package/dist/src/components/consent-banner/index.mjs.map +1 -0
- package/dist/src/components/contact-strip/ContactStrip.d.ts +3 -6
- package/dist/src/components/contact-strip/ContactStrip.js +3 -2
- package/dist/src/components/contact-strip/ContactStrip.js.map +1 -1
- package/dist/src/components/contact-strip/ContactStrip.mjs +3 -2
- package/dist/src/components/contact-strip/ContactStrip.mjs.map +1 -1
- package/dist/src/components/deal-card/DealCard.d.ts +3 -6
- package/dist/src/components/deal-card/DealCard.js +3 -1
- package/dist/src/components/deal-card/DealCard.js.map +1 -1
- package/dist/src/components/deal-card/DealCard.mjs +3 -1
- package/dist/src/components/deal-card/DealCard.mjs.map +1 -1
- package/dist/src/components/empty-state/EmptyState.d.ts +3 -10
- package/dist/src/components/empty-state/EmptyState.js +2 -1
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +2 -1
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/entity-card/EntityCard.d.ts +4 -9
- package/dist/src/components/entity-card/EntityCard.js +4 -2
- package/dist/src/components/entity-card/EntityCard.js.map +1 -1
- package/dist/src/components/entity-card/EntityCard.mjs +4 -2
- package/dist/src/components/entity-card/EntityCard.mjs.map +1 -1
- package/dist/src/components/feature-grid/FeatureGrid.d.ts +3 -6
- package/dist/src/components/feature-grid/FeatureGrid.js +3 -2
- package/dist/src/components/feature-grid/FeatureGrid.js.map +1 -1
- package/dist/src/components/feature-grid/FeatureGrid.mjs +3 -2
- package/dist/src/components/feature-grid/FeatureGrid.mjs.map +1 -1
- package/dist/src/components/link-tabs/LinkTabs.d.ts +3 -16
- package/dist/src/components/link-tabs/LinkTabs.js +2 -1
- package/dist/src/components/link-tabs/LinkTabs.js.map +1 -1
- package/dist/src/components/link-tabs/LinkTabs.mjs +2 -1
- package/dist/src/components/link-tabs/LinkTabs.mjs.map +1 -1
- package/dist/src/components/logo-cloud/LogoCloud.d.ts +3 -10
- package/dist/src/components/logo-cloud/LogoCloud.js +2 -1
- package/dist/src/components/logo-cloud/LogoCloud.js.map +1 -1
- package/dist/src/components/logo-cloud/LogoCloud.mjs +2 -1
- package/dist/src/components/logo-cloud/LogoCloud.mjs.map +1 -1
- package/dist/src/components/media-card/MediaCard.d.ts +54 -0
- package/dist/src/components/media-card/MediaCard.js +89 -0
- package/dist/src/components/media-card/MediaCard.js.map +1 -0
- package/dist/src/components/media-card/MediaCard.mjs +55 -0
- package/dist/src/components/media-card/MediaCard.mjs.map +1 -0
- package/dist/src/components/media-card/index.d.ts +1 -0
- package/dist/src/components/media-card/index.js +23 -0
- package/dist/src/components/media-card/index.js.map +1 -0
- package/dist/src/components/media-card/index.mjs +2 -0
- package/dist/src/components/media-card/index.mjs.map +1 -0
- package/dist/src/components/month-schedule/MonthSchedule.d.ts +53 -0
- package/dist/src/components/month-schedule/MonthSchedule.js +246 -0
- package/dist/src/components/month-schedule/MonthSchedule.js.map +1 -0
- package/dist/src/components/month-schedule/MonthSchedule.mjs +220 -0
- package/dist/src/components/month-schedule/MonthSchedule.mjs.map +1 -0
- package/dist/src/components/month-schedule/index.d.ts +1 -0
- package/dist/src/components/month-schedule/index.js +23 -0
- package/dist/src/components/month-schedule/index.js.map +1 -0
- package/dist/src/components/month-schedule/index.mjs +2 -0
- package/dist/src/components/month-schedule/index.mjs.map +1 -0
- package/dist/src/components/pagination/Pagination.d.ts +3 -10
- package/dist/src/components/pagination/Pagination.js +2 -1
- package/dist/src/components/pagination/Pagination.js.map +1 -1
- package/dist/src/components/pagination/Pagination.mjs +2 -1
- package/dist/src/components/pagination/Pagination.mjs.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +3 -10
- package/dist/src/components/segmented-control/SegmentedControl.js +2 -1
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +2 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/components/site-footer/SiteFooter.d.ts +2 -9
- package/dist/src/components/site-footer/SiteFooter.js +2 -1
- package/dist/src/components/site-footer/SiteFooter.js.map +1 -1
- package/dist/src/components/site-footer/SiteFooter.mjs +2 -1
- package/dist/src/components/site-footer/SiteFooter.mjs.map +1 -1
- package/dist/src/components/site-header/SiteHeader.d.ts +9 -10
- package/dist/src/components/site-header/SiteHeader.js +138 -133
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +138 -133
- package/dist/src/components/site-header/SiteHeader.mjs.map +1 -1
- package/dist/src/components/tombstone-card/TombstoneCard.d.ts +3 -6
- package/dist/src/components/tombstone-card/TombstoneCard.js +3 -1
- package/dist/src/components/tombstone-card/TombstoneCard.js.map +1 -1
- package/dist/src/components/tombstone-card/TombstoneCard.mjs +3 -1
- package/dist/src/components/tombstone-card/TombstoneCard.mjs.map +1 -1
- package/dist/src/index.d.ts +5 -0
- package/dist/src/utils/consent.d.ts +42 -0
- package/dist/src/utils/consent.js +142 -0
- package/dist/src/utils/consent.js.map +1 -0
- package/dist/src/utils/consent.mjs +107 -0
- package/dist/src/utils/consent.mjs.map +1 -0
- package/dist/src/utils/link.d.ts +21 -0
- package/dist/src/utils/link.js +31 -0
- package/dist/src/utils/link.js.map +1 -0
- package/dist/src/utils/link.mjs +7 -0
- package/dist/src/utils/link.mjs.map +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/announcement-bar/AnnouncementBar.test.tsx +18 -0
- package/src/components/announcement-bar/AnnouncementBar.tsx +4 -4
- package/src/components/app-shell/AppShell.test.tsx +10 -0
- package/src/components/app-shell/AppShell.tsx +4 -4
- package/src/components/article-card/ArticleCard.test.tsx +10 -0
- package/src/components/article-card/ArticleCard.tsx +4 -4
- package/src/components/bottom-nav/BottomNav.tsx +3 -6
- package/src/components/breadcrumb/Breadcrumb.tsx +3 -9
- package/src/components/consent-banner/ConsentBanner.test.tsx +58 -0
- package/src/components/consent-banner/ConsentBanner.tsx +93 -0
- package/src/components/consent-banner/index.ts +1 -0
- package/src/components/contact-strip/ContactStrip.test.tsx +16 -0
- package/src/components/contact-strip/ContactStrip.tsx +4 -5
- package/src/components/deal-card/DealCard.test.tsx +19 -0
- package/src/components/deal-card/DealCard.tsx +4 -4
- package/src/components/empty-state/EmptyState.tsx +3 -6
- package/src/components/entity-card/EntityCard.test.tsx +8 -0
- package/src/components/entity-card/EntityCard.tsx +5 -5
- package/src/components/feature-grid/FeatureGrid.test.tsx +16 -0
- package/src/components/feature-grid/FeatureGrid.tsx +4 -5
- package/src/components/link-tabs/LinkTabs.tsx +3 -9
- package/src/components/logo-cloud/LogoCloud.tsx +3 -6
- package/src/components/media-card/MediaCard.test.tsx +97 -0
- package/src/components/media-card/MediaCard.tsx +113 -0
- package/src/components/media-card/index.ts +1 -0
- package/src/components/month-schedule/MonthSchedule.test.tsx +137 -0
- package/src/components/month-schedule/MonthSchedule.tsx +329 -0
- package/src/components/month-schedule/index.ts +1 -0
- package/src/components/pagination/Pagination.tsx +3 -6
- package/src/components/segmented-control/SegmentedControl.tsx +3 -6
- package/src/components/site-footer/SiteFooter.tsx +3 -11
- package/src/components/site-header/SiteHeader.test.tsx +26 -0
- package/src/components/site-header/SiteHeader.tsx +17 -11
- package/src/components/tombstone-card/TombstoneCard.test.tsx +17 -0
- package/src/components/tombstone-card/TombstoneCard.tsx +4 -4
- package/src/index.ts +5 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +12 -1
- package/src/manifests/app-shell.manifest.json +12 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +12 -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 +130 -0
- package/src/manifests/contact-strip.manifest.json +12 -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 +12 -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 +12 -1
- package/src/manifests/feature-grid.manifest.json +12 -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 +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 +161 -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 +217 -0
- 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 +7 -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 +12 -1
- package/src/manifests/tooltip.manifest.json +1 -1
- package/src/utils/consent.test.ts +112 -0
- package/src/utils/consent.ts +169 -0
- package/src/utils/link.ts +19 -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.12.0",
|
|
8
8
|
"sourceDir": "process-steps",
|
|
9
9
|
"exportName": "ProcessSteps",
|
|
10
10
|
"description": "Ordered process cards with derived step numbers or custom icons.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "prose",
|
|
9
9
|
"exportName": "Prose",
|
|
10
10
|
"description": "Self-contained long-form typography for rendered markdown/MDX: headings, links, lists, code, tables, quotes and figures.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "range-slider",
|
|
9
9
|
"exportName": "RangeSlider",
|
|
10
10
|
"description": "Dual-thumb numeric range slider with labeled native inputs and formatted values.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "section-heading",
|
|
9
9
|
"exportName": "SectionHeading",
|
|
10
10
|
"description": "Section heading block: eyebrow, title (level 2-4), description and actions, with left/center alignment and three sizes.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "section",
|
|
9
9
|
"exportName": "Section",
|
|
10
10
|
"description": "Full-width page section with a surface tone, vertical rhythm and an optional centered container.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "segmented-control",
|
|
9
9
|
"exportName": "SegmentedControl",
|
|
10
10
|
"description": "Single- or multi-select segmented control for view and filter switches.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "select-menu",
|
|
9
9
|
"exportName": "SelectMenu",
|
|
10
10
|
"description": "Custom listbox select for rich options: descriptions, icons, groups, multi-select, custom rows and hidden inputs for forms.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "site-footer",
|
|
9
9
|
"exportName": "SiteFooter",
|
|
10
10
|
"description": "Marketing footer: brand + tagline column, link columns and a legal bar; router-agnostic via linkComponent.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "organism",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "site-header",
|
|
9
9
|
"exportName": "SiteHeader",
|
|
10
10
|
"description": "Marketing/site header: sticky bar with brand, horizontal navigation with prefix-aware active states, right-aligned actions and a mobile drawer.",
|
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
"required": true,
|
|
17
17
|
"description": "Brand slot (logo/lockup), wrapped in a link to /."
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
"name": "topBar",
|
|
21
|
+
"type": "ReactNode",
|
|
22
|
+
"required": false,
|
|
23
|
+
"description": "Slim utility strip rendered above the brand row (locale switch, feed link, submit link). Content sits in a container matching the nav metrics; lay out multiple items with justify-between or a flex row."
|
|
24
|
+
},
|
|
19
25
|
{
|
|
20
26
|
"name": "items",
|
|
21
27
|
"type": "SiteNavItem[]",
|
|
@@ -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.12.0",
|
|
8
8
|
"sourceDir": "stat-band",
|
|
9
9
|
"exportName": "StatBand",
|
|
10
10
|
"description": "Semantic description list of headline stats with labels, optional hints and column presets.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "table-card",
|
|
9
9
|
"exportName": "TableCard",
|
|
10
10
|
"description": "Table shell with title/description, header actions, optional toolbar, edge-to-edge body and a footer row.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "table-of-contents",
|
|
9
9
|
"exportName": "TableOfContents",
|
|
10
10
|
"description": "Sticky 'On this page' navigation with real anchor links, nested levels and aria-current, plus a useScrollSpy hook for the active heading.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sourceDir": "testimonial",
|
|
9
9
|
"exportName": "Testimonial",
|
|
10
10
|
"description": "Semantic written testimonial with quote, person, role, company, avatar and logo slots.",
|
|
@@ -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.12.0",
|
|
8
8
|
"sourceDir": "tombstone-card",
|
|
9
9
|
"exportName": "TombstoneCard",
|
|
10
10
|
"description": "Placeholder card for archived, closed or unavailable marketplace items.",
|
|
@@ -58,6 +58,17 @@
|
|
|
58
58
|
"type": "React.ElementType",
|
|
59
59
|
"required": false,
|
|
60
60
|
"description": "Custom link element for routers."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "linkHrefProp",
|
|
64
|
+
"type": "'href' | 'to'",
|
|
65
|
+
"required": false,
|
|
66
|
+
"defaultValue": "href",
|
|
67
|
+
"description": "Prop name used to pass the destination to linkComponent ('href' for anchors and most routers, 'to' for react-router).",
|
|
68
|
+
"enum": [
|
|
69
|
+
"href",
|
|
70
|
+
"to"
|
|
71
|
+
]
|
|
61
72
|
}
|
|
62
73
|
],
|
|
63
74
|
"examples": [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import { type LinkLikeProps } from '../../utils/link';
|
|
3
|
+
export type AnnouncementBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & LinkLikeProps & {
|
|
3
4
|
/** Message shown in the bar. */
|
|
4
5
|
message: React.ReactNode;
|
|
5
6
|
/** Optional destination for the action. */
|
|
@@ -14,14 +15,12 @@ export type AnnouncementBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'c
|
|
|
14
15
|
tone?: 'muted' | 'brand' | 'inverse';
|
|
15
16
|
/** Pin the bar to the top of the viewport. */
|
|
16
17
|
sticky?: boolean;
|
|
17
|
-
/** Custom link element for routers. */
|
|
18
|
-
linkComponent?: React.ElementType;
|
|
19
18
|
};
|
|
20
19
|
/**
|
|
21
20
|
* Dismissible announcement bar for launches, content hubs and network notices.
|
|
22
21
|
* It owns only dismissal; persistence and targeting belong to the caller.
|
|
23
22
|
*/
|
|
24
|
-
export declare const AnnouncementBar: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
23
|
+
export declare const AnnouncementBar: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & LinkLikeProps & {
|
|
25
24
|
/** Message shown in the bar. */
|
|
26
25
|
message: React.ReactNode;
|
|
27
26
|
/** Optional destination for the action. */
|
|
@@ -36,6 +35,4 @@ export declare const AnnouncementBar: React.ForwardRefExoticComponent<Omit<React
|
|
|
36
35
|
tone?: "muted" | "brand" | "inverse";
|
|
37
36
|
/** Pin the bar to the top of the viewport. */
|
|
38
37
|
sticky?: boolean;
|
|
39
|
-
/** Custom link element for routers. */
|
|
40
|
-
linkComponent?: React.ElementType;
|
|
41
38
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -35,6 +35,7 @@ module.exports = __toCommonJS(AnnouncementBar_exports);
|
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
36
|
var React = __toESM(require("react"));
|
|
37
37
|
var import_cn = require("../../utils/cn.js");
|
|
38
|
+
var import_link = require("../../utils/link.js");
|
|
38
39
|
const toneClasses = {
|
|
39
40
|
muted: "bg-muted text-foreground",
|
|
40
41
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -50,6 +51,7 @@ const AnnouncementBar = React.forwardRef(
|
|
|
50
51
|
tone = "muted",
|
|
51
52
|
sticky = false,
|
|
52
53
|
linkComponent,
|
|
54
|
+
linkHrefProp = "href",
|
|
53
55
|
className,
|
|
54
56
|
...props
|
|
55
57
|
}, ref) {
|
|
@@ -78,7 +80,7 @@ const AnnouncementBar = React.forwardRef(
|
|
|
78
80
|
href && actionLabel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
79
81
|
Link,
|
|
80
82
|
{
|
|
81
|
-
href,
|
|
83
|
+
...(0, import_link.linkDestination)(href, linkHrefProp),
|
|
82
84
|
className: "shrink-0 font-semibold underline underline-offset-4 hover:no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current",
|
|
83
85
|
children: actionLabel
|
|
84
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/announcement-bar/AnnouncementBar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type AnnouncementBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {\n /** Message shown in the bar. */\n message: React.ReactNode;\n /** Optional destination for the action. */\n href?: string;\n /** Action text, shown when href is provided. */\n actionLabel?: string;\n /** Show a close control. Default true. */\n dismissible?: boolean;\n /** Called after the user dismisses the bar. */\n onDismiss?: () => void;\n /** Surface treatment. Default 'muted'. */\n tone?: 'muted' | 'brand' | 'inverse';\n /** Pin the bar to the top of the viewport. */\n sticky?: boolean;\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/announcement-bar/AnnouncementBar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { linkDestination, type LinkLikeProps } from '../../utils/link';\n\nexport type AnnouncementBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & LinkLikeProps & {\n /** Message shown in the bar. */\n message: React.ReactNode;\n /** Optional destination for the action. */\n href?: string;\n /** Action text, shown when href is provided. */\n actionLabel?: string;\n /** Show a close control. Default true. */\n dismissible?: boolean;\n /** Called after the user dismisses the bar. */\n onDismiss?: () => void;\n /** Surface treatment. Default 'muted'. */\n tone?: 'muted' | 'brand' | 'inverse';\n /** Pin the bar to the top of the viewport. */\n sticky?: boolean;\n};\n\nconst toneClasses = {\n muted: 'bg-muted text-foreground',\n brand: 'bg-primary text-primary-foreground',\n inverse: 'bg-inverse text-inverse-foreground',\n} as const;\n\n/**\n * Dismissible announcement bar for launches, content hubs and network notices.\n * It owns only dismissal; persistence and targeting belong to the caller.\n */\nexport const AnnouncementBar = React.forwardRef<HTMLDivElement, AnnouncementBarProps>(\n function AnnouncementBar(\n {\n message,\n href,\n actionLabel,\n dismissible = true,\n onDismiss,\n tone = 'muted',\n sticky = false,\n linkComponent,\n linkHrefProp = 'href',\n className,\n ...props\n },\n ref\n ) {\n const [dismissed, setDismissed] = React.useState(false);\n const Link = linkComponent ?? 'a';\n\n if (dismissed) return null;\n\n const dismiss = () => {\n setDismissed(true);\n onDismiss?.();\n };\n\n return (\n <div\n ref={ref}\n role=\"region\"\n aria-label=\"Announcement\"\n className={cn(\n 'w-full border-b border-border/60',\n toneClasses[tone],\n sticky && 'sticky top-0 z-30',\n className\n )}\n {...props}\n >\n <div className=\"mx-auto flex w-full max-w-7xl items-center justify-center gap-3 px-4 py-2 text-sm sm:px-6\">\n <p className=\"min-w-0 text-center\">{message}</p>\n {href && actionLabel && (\n <Link\n {...linkDestination(href, linkHrefProp)}\n className=\"shrink-0 font-semibold underline underline-offset-4 hover:no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current\"\n >\n {actionLabel}\n </Link>\n )}\n {dismissible && (\n <button\n type=\"button\"\n onClick={dismiss}\n aria-label=\"Dismiss announcement\"\n className=\"shrink-0 rounded p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 20 20\" className=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\">\n <path d=\"m5 5 10 10M15 5 5 15\" />\n </svg>\n </button>\n )}\n </div>\n </div>\n );\n }\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyEQ;AAvER,YAAuB;AACvB,gBAAmB;AACnB,kBAAoD;AAmBpD,MAAM,cAAc;AAAA,EAClB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AACX;AAMO,MAAM,kBAAkB,MAAM;AAAA,EACnC,SAASA,iBACP;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP,SAAS;AAAA,IACT;AAAA,IACA,eAAe;AAAA,IACf;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,UAAM,CAAC,WAAW,YAAY,IAAI,MAAM,SAAS,KAAK;AACtD,UAAM,OAAO,iBAAiB;AAE9B,QAAI,UAAW,QAAO;AAEtB,UAAM,UAAU,MAAM;AACpB,mBAAa,IAAI;AACjB,kBAAY;AAAA,IACd;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,MAAK;AAAA,QACL,cAAW;AAAA,QACX,eAAW;AAAA,UACT;AAAA,UACA,YAAY,IAAI;AAAA,UAChB,UAAU;AAAA,UACV;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEJ,uDAAC,SAAI,WAAU,6FACb;AAAA,sDAAC,OAAE,WAAU,uBAAuB,mBAAQ;AAAA,UAC3C,QAAQ,eACP;AAAA,YAAC;AAAA;AAAA,cACE,OAAG,6BAAgB,MAAM,YAAY;AAAA,cACtC,WAAU;AAAA,cAET;AAAA;AAAA,UACH;AAAA,UAED,eACC;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,SAAS;AAAA,cACT,cAAW;AAAA,cACX,WAAU;AAAA,cAEV,sDAAC,SAAI,eAAY,QAAO,SAAQ,aAAY,WAAU,WAAU,MAAK,QAAO,QAAO,gBAAe,aAAY,KAAI,eAAc,SAC9H,sDAAC,UAAK,GAAE,wBAAuB,GACjC;AAAA;AAAA,UACF;AAAA,WAEJ;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;","names":["AnnouncementBar"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { cn } from "../../utils/cn.mjs";
|
|
5
|
+
import { linkDestination } from "../../utils/link.mjs";
|
|
5
6
|
const toneClasses = {
|
|
6
7
|
muted: "bg-muted text-foreground",
|
|
7
8
|
brand: "bg-primary text-primary-foreground",
|
|
@@ -17,6 +18,7 @@ const AnnouncementBar = React.forwardRef(
|
|
|
17
18
|
tone = "muted",
|
|
18
19
|
sticky = false,
|
|
19
20
|
linkComponent,
|
|
21
|
+
linkHrefProp = "href",
|
|
20
22
|
className,
|
|
21
23
|
...props
|
|
22
24
|
}, ref) {
|
|
@@ -45,7 +47,7 @@ const AnnouncementBar = React.forwardRef(
|
|
|
45
47
|
href && actionLabel && /* @__PURE__ */ jsx(
|
|
46
48
|
Link,
|
|
47
49
|
{
|
|
48
|
-
href,
|
|
50
|
+
...linkDestination(href, linkHrefProp),
|
|
49
51
|
className: "shrink-0 font-semibold underline underline-offset-4 hover:no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current",
|
|
50
52
|
children: actionLabel
|
|
51
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/announcement-bar/AnnouncementBar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type AnnouncementBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {\n /** Message shown in the bar. */\n message: React.ReactNode;\n /** Optional destination for the action. */\n href?: string;\n /** Action text, shown when href is provided. */\n actionLabel?: string;\n /** Show a close control. Default true. */\n dismissible?: boolean;\n /** Called after the user dismisses the bar. */\n onDismiss?: () => void;\n /** Surface treatment. Default 'muted'. */\n tone?: 'muted' | 'brand' | 'inverse';\n /** Pin the bar to the top of the viewport. */\n sticky?: boolean;\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/announcement-bar/AnnouncementBar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { linkDestination, type LinkLikeProps } from '../../utils/link';\n\nexport type AnnouncementBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & LinkLikeProps & {\n /** Message shown in the bar. */\n message: React.ReactNode;\n /** Optional destination for the action. */\n href?: string;\n /** Action text, shown when href is provided. */\n actionLabel?: string;\n /** Show a close control. Default true. */\n dismissible?: boolean;\n /** Called after the user dismisses the bar. */\n onDismiss?: () => void;\n /** Surface treatment. Default 'muted'. */\n tone?: 'muted' | 'brand' | 'inverse';\n /** Pin the bar to the top of the viewport. */\n sticky?: boolean;\n};\n\nconst toneClasses = {\n muted: 'bg-muted text-foreground',\n brand: 'bg-primary text-primary-foreground',\n inverse: 'bg-inverse text-inverse-foreground',\n} as const;\n\n/**\n * Dismissible announcement bar for launches, content hubs and network notices.\n * It owns only dismissal; persistence and targeting belong to the caller.\n */\nexport const AnnouncementBar = React.forwardRef<HTMLDivElement, AnnouncementBarProps>(\n function AnnouncementBar(\n {\n message,\n href,\n actionLabel,\n dismissible = true,\n onDismiss,\n tone = 'muted',\n sticky = false,\n linkComponent,\n linkHrefProp = 'href',\n className,\n ...props\n },\n ref\n ) {\n const [dismissed, setDismissed] = React.useState(false);\n const Link = linkComponent ?? 'a';\n\n if (dismissed) return null;\n\n const dismiss = () => {\n setDismissed(true);\n onDismiss?.();\n };\n\n return (\n <div\n ref={ref}\n role=\"region\"\n aria-label=\"Announcement\"\n className={cn(\n 'w-full border-b border-border/60',\n toneClasses[tone],\n sticky && 'sticky top-0 z-30',\n className\n )}\n {...props}\n >\n <div className=\"mx-auto flex w-full max-w-7xl items-center justify-center gap-3 px-4 py-2 text-sm sm:px-6\">\n <p className=\"min-w-0 text-center\">{message}</p>\n {href && actionLabel && (\n <Link\n {...linkDestination(href, linkHrefProp)}\n className=\"shrink-0 font-semibold underline underline-offset-4 hover:no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current\"\n >\n {actionLabel}\n </Link>\n )}\n {dismissible && (\n <button\n type=\"button\"\n onClick={dismiss}\n aria-label=\"Dismiss announcement\"\n className=\"shrink-0 rounded p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current\"\n >\n <svg aria-hidden=\"true\" viewBox=\"0 0 20 20\" className=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\">\n <path d=\"m5 5 10 10M15 5 5 15\" />\n </svg>\n </button>\n )}\n </div>\n </div>\n );\n }\n);\n"],"mappings":";AAyEQ,SACE,KADF;AAvER,YAAY,WAAW;AACvB,SAAS,UAAU;AACnB,SAAS,uBAA2C;AAmBpD,MAAM,cAAc;AAAA,EAClB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AACX;AAMO,MAAM,kBAAkB,MAAM;AAAA,EACnC,SAASA,iBACP;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP,SAAS;AAAA,IACT;AAAA,IACA,eAAe;AAAA,IACf;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,UAAM,CAAC,WAAW,YAAY,IAAI,MAAM,SAAS,KAAK;AACtD,UAAM,OAAO,iBAAiB;AAE9B,QAAI,UAAW,QAAO;AAEtB,UAAM,UAAU,MAAM;AACpB,mBAAa,IAAI;AACjB,kBAAY;AAAA,IACd;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,MAAK;AAAA,QACL,cAAW;AAAA,QACX,WAAW;AAAA,UACT;AAAA,UACA,YAAY,IAAI;AAAA,UAChB,UAAU;AAAA,UACV;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEJ,+BAAC,SAAI,WAAU,6FACb;AAAA,8BAAC,OAAE,WAAU,uBAAuB,mBAAQ;AAAA,UAC3C,QAAQ,eACP;AAAA,YAAC;AAAA;AAAA,cACE,GAAG,gBAAgB,MAAM,YAAY;AAAA,cACtC,WAAU;AAAA,cAET;AAAA;AAAA,UACH;AAAA,UAED,eACC;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,SAAS;AAAA,cACT,cAAW;AAAA,cACX,WAAU;AAAA,cAEV,8BAAC,SAAI,eAAY,QAAO,SAAQ,aAAY,WAAU,WAAU,MAAK,QAAO,QAAO,gBAAe,aAAY,KAAI,eAAc,SAC9H,8BAAC,UAAK,GAAE,wBAAuB,GACjC;AAAA;AAAA,UACF;AAAA,WAEJ;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;","names":["AnnouncementBar"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { type LinkLikeProps } from '../../utils/link';
|
|
2
3
|
export type SidebarItem = {
|
|
3
4
|
href: string;
|
|
4
5
|
label: string;
|
|
@@ -14,7 +15,7 @@ export type SidebarSection = {
|
|
|
14
15
|
title?: string;
|
|
15
16
|
items: SidebarItem[];
|
|
16
17
|
};
|
|
17
|
-
export type SidebarProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & {
|
|
18
|
+
export type SidebarProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & LinkLikeProps & {
|
|
18
19
|
sections: SidebarSection[];
|
|
19
20
|
/** Brand/mark rendered at the top. */
|
|
20
21
|
heading?: React.ReactNode;
|
|
@@ -22,8 +23,6 @@ export type SidebarProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> &
|
|
|
22
23
|
footer?: React.ReactNode;
|
|
23
24
|
/** Current route — items with a matching href get aria-current="page". */
|
|
24
25
|
activeHref?: string;
|
|
25
|
-
/** Custom link element for routers (react-router `Link`, Next `Link`). */
|
|
26
|
-
linkComponent?: React.ElementType;
|
|
27
26
|
/** Accessible name of the nav landmark. Default 'Primary'. */
|
|
28
27
|
label?: string;
|
|
29
28
|
/** Show the collapse/expand control (icon-only rail when collapsed). */
|
|
@@ -41,7 +40,7 @@ export type SidebarProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> &
|
|
|
41
40
|
* icon-only mode. Purely presentational: you pass the active route and a
|
|
42
41
|
* router link component, so it stays stateless about routing.
|
|
43
42
|
*/
|
|
44
|
-
export declare function Sidebar({ sections, heading, footer, activeHref, linkComponent, label, collapsible, defaultCollapsed, collapsed: collapsedProp, onCollapsedChange, defaultExpanded, className, ...props }: SidebarProps): React.JSX.Element;
|
|
43
|
+
export declare function Sidebar({ sections, heading, footer, activeHref, linkComponent, linkHrefProp, label, collapsible, defaultCollapsed, collapsed: collapsedProp, onCollapsedChange, defaultExpanded, className, ...props }: SidebarProps): React.JSX.Element;
|
|
45
44
|
export type AppShellProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
46
45
|
/** Desktop rail; also rendered inside a mobile drawer. */
|
|
47
46
|
sidebar?: React.ReactNode;
|
|
@@ -36,6 +36,7 @@ module.exports = __toCommonJS(AppShell_exports);
|
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
37
|
var React = __toESM(require("react"));
|
|
38
38
|
var import_cn = require("../../utils/cn.js");
|
|
39
|
+
var import_link = require("../../utils/link.js");
|
|
39
40
|
var import_Drawer = require("../drawer/Drawer.js");
|
|
40
41
|
function containsActive(item, activeHref) {
|
|
41
42
|
if (!activeHref) return false;
|
|
@@ -52,6 +53,7 @@ function Sidebar({
|
|
|
52
53
|
footer,
|
|
53
54
|
activeHref,
|
|
54
55
|
linkComponent,
|
|
56
|
+
linkHrefProp = "href",
|
|
55
57
|
label = "Primary",
|
|
56
58
|
collapsible = false,
|
|
57
59
|
defaultCollapsed = false,
|
|
@@ -105,7 +107,7 @@ function Sidebar({
|
|
|
105
107
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
106
108
|
Link,
|
|
107
109
|
{
|
|
108
|
-
|
|
110
|
+
...(0, import_link.linkDestination)(item.href, linkHrefProp),
|
|
109
111
|
"aria-current": active ? "page" : void 0,
|
|
110
112
|
title: collapsed ? item.label : void 0,
|
|
111
113
|
className: (0, import_cn.cn)(itemClass, active ? activeClass : idleClass, collapsed && "justify-center px-0"),
|