@slipstream-ui/core 0.11.10 → 0.12.1
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 +154 -163
- package/dist/index.d.ts +154 -163
- package/dist/index.js +1358 -1165
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1355 -1165
- 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 +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/month-schedule.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +1 -1
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +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 +3 -10
- package/dist/src/components/media-card/MediaCard.js +2 -1
- package/dist/src/components/media-card/MediaCard.js.map +1 -1
- package/dist/src/components/media-card/MediaCard.mjs +2 -1
- package/dist/src/components/media-card/MediaCard.mjs.map +1 -1
- package/dist/src/components/month-schedule/MonthSchedule.d.ts +2 -5
- package/dist/src/components/month-schedule/MonthSchedule.js +3 -2
- package/dist/src/components/month-schedule/MonthSchedule.js.map +1 -1
- package/dist/src/components/month-schedule/MonthSchedule.mjs +3 -2
- package/dist/src/components/month-schedule/MonthSchedule.mjs.map +1 -1
- 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 +162 -133
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +162 -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 +3 -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 +4 -4
- 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.tsx +3 -6
- package/src/components/month-schedule/MonthSchedule.tsx +4 -7
- 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 +53 -0
- package/src/components/site-header/SiteHeader.tsx +77 -32
- package/src/components/tombstone-card/TombstoneCard.test.tsx +17 -0
- package/src/components/tombstone-card/TombstoneCard.tsx +4 -4
- package/src/index.ts +3 -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 +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/month-schedule.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +1 -1
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +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
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { CSSProperties } from 'react';
|
|
3
|
+
import { CSSProperties, ElementType } from 'react';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
@@ -155,6 +155,62 @@ declare function usePresence(open: boolean, animate: boolean, exitMs?: number):
|
|
|
155
155
|
exiting: boolean;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
/**
|
|
159
|
+
* Per-purpose consent choices, e.g. `{ analytics: true, marketing: false }`.
|
|
160
|
+
* Consumers define their own purpose keys via `useConsent({ purposes })`.
|
|
161
|
+
*/
|
|
162
|
+
type ConsentPreferences = Record<string, boolean>;
|
|
163
|
+
type UseConsentOptions = {
|
|
164
|
+
/** localStorage key for the stored decision. Default 'slipstream-consent'. */
|
|
165
|
+
storageKey?: string;
|
|
166
|
+
/** Consent purposes persisted as booleans. Default ['analytics']. */
|
|
167
|
+
purposes?: readonly string[];
|
|
168
|
+
/**
|
|
169
|
+
* How long a stored decision stays valid before the visitor is asked
|
|
170
|
+
* again. Default 180 days (common EU consent-refresh guidance).
|
|
171
|
+
*/
|
|
172
|
+
maxAgeMs?: number;
|
|
173
|
+
};
|
|
174
|
+
type Consent = {
|
|
175
|
+
/** Current per-purpose preferences, or null when undecided or expired. */
|
|
176
|
+
preferences: ConsentPreferences | null;
|
|
177
|
+
/** True once the visitor has a valid stored decision. */
|
|
178
|
+
decided: boolean;
|
|
179
|
+
/** Set every purpose to the same value — the banner's accept/decline. */
|
|
180
|
+
setAll(allowed: boolean): void;
|
|
181
|
+
/** Store an explicit preference map (e.g. from a preferences dialog). */
|
|
182
|
+
set(preferences: ConsentPreferences): void;
|
|
183
|
+
/** Forget the stored choice so the banner returns and gated code stops. */
|
|
184
|
+
clear(): void;
|
|
185
|
+
};
|
|
186
|
+
/** Window event fired whenever a consent decision is written or cleared. */
|
|
187
|
+
declare const CONSENT_CHANGE_EVENT = "slipstream:consent-change";
|
|
188
|
+
/**
|
|
189
|
+
* Headless consent state: reads a per-purpose decision from localStorage,
|
|
190
|
+
* persists accept/decline/customize choices, expires stale decisions, and
|
|
191
|
+
* keeps every `useConsent` instance on the page in sync through a window
|
|
192
|
+
* event (plus the native `storage` event for other tabs).
|
|
193
|
+
*
|
|
194
|
+
* The first client render reports `decided: false` so SSR markup matches;
|
|
195
|
+
* the stored value is read in an effect after mount. To avoid a banner
|
|
196
|
+
* flash for returning visitors, gate first paint with a theme-script class
|
|
197
|
+
* the way cookie-banner implementations typically do.
|
|
198
|
+
*/
|
|
199
|
+
declare function useConsent({ storageKey, purposes, maxAgeMs, }?: UseConsentOptions): Consent;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Shared props for components that can render a destination through a
|
|
203
|
+
* router-aware link element. `linkComponent` swaps the underlying element
|
|
204
|
+
* (Next `Link`, react-router `Link`); `linkHrefProp` names the prop that
|
|
205
|
+
* carries the destination on that element (`href` or `to`).
|
|
206
|
+
*/
|
|
207
|
+
type LinkLikeProps = {
|
|
208
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
209
|
+
linkComponent?: ElementType;
|
|
210
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
211
|
+
linkHrefProp?: 'href' | 'to';
|
|
212
|
+
};
|
|
213
|
+
|
|
158
214
|
type SidebarItem = {
|
|
159
215
|
href: string;
|
|
160
216
|
label: string;
|
|
@@ -170,7 +226,7 @@ type SidebarSection = {
|
|
|
170
226
|
title?: string;
|
|
171
227
|
items: SidebarItem[];
|
|
172
228
|
};
|
|
173
|
-
type SidebarProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & {
|
|
229
|
+
type SidebarProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & LinkLikeProps & {
|
|
174
230
|
sections: SidebarSection[];
|
|
175
231
|
/** Brand/mark rendered at the top. */
|
|
176
232
|
heading?: React.ReactNode;
|
|
@@ -178,8 +234,6 @@ type SidebarProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & {
|
|
|
178
234
|
footer?: React.ReactNode;
|
|
179
235
|
/** Current route — items with a matching href get aria-current="page". */
|
|
180
236
|
activeHref?: string;
|
|
181
|
-
/** Custom link element for routers (react-router `Link`, Next `Link`). */
|
|
182
|
-
linkComponent?: React.ElementType;
|
|
183
237
|
/** Accessible name of the nav landmark. Default 'Primary'. */
|
|
184
238
|
label?: string;
|
|
185
239
|
/** Show the collapse/expand control (icon-only rail when collapsed). */
|
|
@@ -197,7 +251,7 @@ type SidebarProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & {
|
|
|
197
251
|
* icon-only mode. Purely presentational: you pass the active route and a
|
|
198
252
|
* router link component, so it stays stateless about routing.
|
|
199
253
|
*/
|
|
200
|
-
declare function Sidebar({ sections, heading, footer, activeHref, linkComponent, label, collapsible, defaultCollapsed, collapsed: collapsedProp, onCollapsedChange, defaultExpanded, className, ...props }: SidebarProps): React.JSX.Element;
|
|
254
|
+
declare function Sidebar({ sections, heading, footer, activeHref, linkComponent, linkHrefProp, label, collapsible, defaultCollapsed, collapsed: collapsedProp, onCollapsedChange, defaultExpanded, className, ...props }: SidebarProps): React.JSX.Element;
|
|
201
255
|
type AppShellProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
202
256
|
/** Desktop rail; also rendered inside a mobile drawer. */
|
|
203
257
|
sidebar?: React.ReactNode;
|
|
@@ -338,13 +392,9 @@ type BottomNavItem = {
|
|
|
338
392
|
/** Renders the tab as non-interactive. */
|
|
339
393
|
disabled?: boolean;
|
|
340
394
|
};
|
|
341
|
-
type BottomNavProps = React.HTMLAttributes<HTMLElement> & {
|
|
395
|
+
type BottomNavProps = React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
342
396
|
/** Tabs in order. Keep to 3-5 so every target stays thumb-reachable. */
|
|
343
397
|
items: BottomNavItem[];
|
|
344
|
-
/** Router link component (Next Link, react-router Link). */
|
|
345
|
-
linkComponent?: React.ElementType;
|
|
346
|
-
/** Prop used to pass the destination to `linkComponent`. */
|
|
347
|
-
linkHrefProp?: 'href' | 'to';
|
|
348
398
|
/** Landmark label. Default "Primary". */
|
|
349
399
|
label?: string;
|
|
350
400
|
/** Pin the bar to the bottom edge with safe-area padding (default true). */
|
|
@@ -1370,18 +1420,11 @@ type LinkTabsItem = {
|
|
|
1370
1420
|
/** Render a disabled, non-interactive tab. */
|
|
1371
1421
|
disabled?: boolean;
|
|
1372
1422
|
};
|
|
1373
|
-
type LinkTabsProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & {
|
|
1423
|
+
type LinkTabsProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & LinkLikeProps & {
|
|
1374
1424
|
/** Tabs in display order. */
|
|
1375
1425
|
items: LinkTabsItem[];
|
|
1376
1426
|
/** Current pathname, used to mark the active tab. */
|
|
1377
1427
|
activeHref?: string;
|
|
1378
|
-
/** Router link element (Inertia Link, Next Link, react-router Link). Defaults to `<a>`. */
|
|
1379
|
-
linkComponent?: React.ElementType;
|
|
1380
|
-
/**
|
|
1381
|
-
* Prop used to pass the destination to `linkComponent`. `href` covers
|
|
1382
|
-
* anchors and Next.js Link; `to` covers react-router and similar routers.
|
|
1383
|
-
*/
|
|
1384
|
-
linkHrefProp?: 'href' | 'to';
|
|
1385
1428
|
/** Visual style. */
|
|
1386
1429
|
variant?: LinkTabsVariant;
|
|
1387
1430
|
/** Control density. */
|
|
@@ -1395,18 +1438,11 @@ type LinkTabsProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & {
|
|
|
1395
1438
|
* route with `aria-current="page"` - the correct pattern for URL-driven
|
|
1396
1439
|
* sub-navigation such as settings, account, or app sections.
|
|
1397
1440
|
*/
|
|
1398
|
-
declare const LinkTabs: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "children"> & {
|
|
1441
|
+
declare const LinkTabs: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "children"> & LinkLikeProps & {
|
|
1399
1442
|
/** Tabs in display order. */
|
|
1400
1443
|
items: LinkTabsItem[];
|
|
1401
1444
|
/** Current pathname, used to mark the active tab. */
|
|
1402
1445
|
activeHref?: string;
|
|
1403
|
-
/** Router link element (Inertia Link, Next Link, react-router Link). Defaults to `<a>`. */
|
|
1404
|
-
linkComponent?: React.ElementType;
|
|
1405
|
-
/**
|
|
1406
|
-
* Prop used to pass the destination to `linkComponent`. `href` covers
|
|
1407
|
-
* anchors and Next.js Link; `to` covers react-router and similar routers.
|
|
1408
|
-
*/
|
|
1409
|
-
linkHrefProp?: "href" | "to";
|
|
1410
1446
|
/** Visual style. */
|
|
1411
1447
|
variant?: LinkTabsVariant;
|
|
1412
1448
|
/** Control density. */
|
|
@@ -1513,7 +1549,7 @@ type MonthScheduleLegendItem = {
|
|
|
1513
1549
|
/** Human-readable label shown in the legend. */
|
|
1514
1550
|
label: string;
|
|
1515
1551
|
};
|
|
1516
|
-
type MonthScheduleProps<T> = {
|
|
1552
|
+
type MonthScheduleProps<T> = LinkLikeProps & {
|
|
1517
1553
|
/** Events to place inside days; each is dated via getDate. */
|
|
1518
1554
|
events: T[];
|
|
1519
1555
|
/** ISO date key (YYYY-MM-DD) for an event. */
|
|
@@ -1545,10 +1581,6 @@ type MonthScheduleProps<T> = {
|
|
|
1545
1581
|
* 'sm' swaps under 640px, 'md' under 768px.
|
|
1546
1582
|
*/
|
|
1547
1583
|
agendaBreakpoint?: 'sm' | 'md';
|
|
1548
|
-
/** Custom link element for event hrefs (Next Link, react-router). */
|
|
1549
|
-
linkComponent?: React.ElementType;
|
|
1550
|
-
/** Prop used to pass the destination to linkComponent ('href' or 'to'). */
|
|
1551
|
-
linkHrefProp?: 'href' | 'to';
|
|
1552
1584
|
'aria-label'?: string;
|
|
1553
1585
|
className?: string;
|
|
1554
1586
|
};
|
|
@@ -1616,6 +1648,59 @@ type ConfirmDialogProps = {
|
|
|
1616
1648
|
*/
|
|
1617
1649
|
declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, onConfirm, closeOnConfirm, children, }: ConfirmDialogProps): React.JSX.Element;
|
|
1618
1650
|
|
|
1651
|
+
type ConsentBannerProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1652
|
+
/** Called when the visitor accepts (all purposes granted). */
|
|
1653
|
+
onAccept: () => void;
|
|
1654
|
+
/** Called when the visitor declines (all purposes denied). */
|
|
1655
|
+
onDecline: () => void;
|
|
1656
|
+
/** Optional "manage preferences" action for granular consent dialogs. */
|
|
1657
|
+
onManage?: () => void;
|
|
1658
|
+
/** Banner heading. Omit for a single-line notice. */
|
|
1659
|
+
title?: React.ReactNode;
|
|
1660
|
+
/** Body copy; put privacy-policy links here. */
|
|
1661
|
+
children?: React.ReactNode;
|
|
1662
|
+
/** Accessible name for the banner region. Default 'Cookie consent'. */
|
|
1663
|
+
label?: string;
|
|
1664
|
+
acceptLabel?: React.ReactNode;
|
|
1665
|
+
declineLabel?: React.ReactNode;
|
|
1666
|
+
manageLabel?: React.ReactNode;
|
|
1667
|
+
};
|
|
1668
|
+
/**
|
|
1669
|
+
* Styled cookie/consent banner: a fixed bottom bar with accept, decline and
|
|
1670
|
+
* an optional manage-preferences action. Presentational only — wire it to
|
|
1671
|
+
* `useConsent` (or your own store) and render it conditionally:
|
|
1672
|
+
*
|
|
1673
|
+
* ```tsx
|
|
1674
|
+
* const consent = useConsent({ purposes: ['analytics'] });
|
|
1675
|
+
* {!consent.decided && (
|
|
1676
|
+
* <ConsentBanner
|
|
1677
|
+
* onAccept={() => consent.setAll(true)}
|
|
1678
|
+
* onDecline={() => consent.setAll(false)}
|
|
1679
|
+
* >
|
|
1680
|
+
* We use cookies for analytics.{' '}
|
|
1681
|
+
* <a href="/privacy">Privacy policy</a>
|
|
1682
|
+
* </ConsentBanner>
|
|
1683
|
+
* )}
|
|
1684
|
+
* ```
|
|
1685
|
+
*/
|
|
1686
|
+
declare const ConsentBanner: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
1687
|
+
/** Called when the visitor accepts (all purposes granted). */
|
|
1688
|
+
onAccept: () => void;
|
|
1689
|
+
/** Called when the visitor declines (all purposes denied). */
|
|
1690
|
+
onDecline: () => void;
|
|
1691
|
+
/** Optional "manage preferences" action for granular consent dialogs. */
|
|
1692
|
+
onManage?: () => void;
|
|
1693
|
+
/** Banner heading. Omit for a single-line notice. */
|
|
1694
|
+
title?: React.ReactNode;
|
|
1695
|
+
/** Body copy; put privacy-policy links here. */
|
|
1696
|
+
children?: React.ReactNode;
|
|
1697
|
+
/** Accessible name for the banner region. Default 'Cookie consent'. */
|
|
1698
|
+
label?: string;
|
|
1699
|
+
acceptLabel?: React.ReactNode;
|
|
1700
|
+
declineLabel?: React.ReactNode;
|
|
1701
|
+
manageLabel?: React.ReactNode;
|
|
1702
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1703
|
+
|
|
1619
1704
|
type TocHeading = {
|
|
1620
1705
|
id: string;
|
|
1621
1706
|
text: string;
|
|
@@ -1681,7 +1766,7 @@ type SiteFooterColumn = {
|
|
|
1681
1766
|
title: string;
|
|
1682
1767
|
links: SiteFooterLink[];
|
|
1683
1768
|
};
|
|
1684
|
-
type SiteFooterProps = React.HTMLAttributes<HTMLElement> & {
|
|
1769
|
+
type SiteFooterProps = React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
1685
1770
|
/** Brand slot (logo/lockup). */
|
|
1686
1771
|
brand?: React.ReactNode;
|
|
1687
1772
|
/** Short line under the brand. */
|
|
@@ -1691,14 +1776,6 @@ type SiteFooterProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1691
1776
|
columns: SiteFooterColumn[];
|
|
1692
1777
|
/** Bottom bar (copyright, legal links). */
|
|
1693
1778
|
legal?: React.ReactNode;
|
|
1694
|
-
/** Router link element. */
|
|
1695
|
-
linkComponent?: React.ElementType;
|
|
1696
|
-
/**
|
|
1697
|
-
* Prop used to pass the destination to `linkComponent`.
|
|
1698
|
-
* `href` (default) covers anchors and Next.js Link; `to` covers
|
|
1699
|
-
* react-router and other routers that use a `to` prop.
|
|
1700
|
-
*/
|
|
1701
|
-
linkHrefProp?: 'href' | 'to';
|
|
1702
1779
|
/** Current route, used to mark the matching link with aria-current="page". */
|
|
1703
1780
|
activeHref?: string;
|
|
1704
1781
|
/** Prefix matching highlights /docs when on /docs/installation (default). */
|
|
@@ -1738,9 +1815,15 @@ type SiteNavItem = (SiteNavLink & {
|
|
|
1738
1815
|
*/
|
|
1739
1816
|
columns: SiteNavColumn[];
|
|
1740
1817
|
};
|
|
1741
|
-
type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
1818
|
+
type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
1742
1819
|
/** Brand slot - logo/lockup or wordmark. Wrapped in a link to "/". */
|
|
1743
1820
|
brand: React.ReactNode;
|
|
1821
|
+
/**
|
|
1822
|
+
* Slim utility strip rendered above the brand row (locale switch, feed
|
|
1823
|
+
* link, submit link). Content is placed in a container matching the nav
|
|
1824
|
+
* metrics; lay out multiple items with justify-between or a flex row.
|
|
1825
|
+
*/
|
|
1826
|
+
topBar?: React.ReactNode;
|
|
1744
1827
|
/** Primary navigation items. */
|
|
1745
1828
|
items: SiteNavItem[];
|
|
1746
1829
|
/** Current route for active styling (aria-current="page"). */
|
|
@@ -1754,14 +1837,6 @@ type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1754
1837
|
actions?: React.ReactNode;
|
|
1755
1838
|
/** Actions rendered inside the mobile drawer; defaults to `actions`. */
|
|
1756
1839
|
mobileActions?: React.ReactNode;
|
|
1757
|
-
/** Custom link element for routers (Next Link, react-router Link). */
|
|
1758
|
-
linkComponent?: React.ElementType;
|
|
1759
|
-
/**
|
|
1760
|
-
* Prop used to pass the destination to `linkComponent`.
|
|
1761
|
-
* `href` (default) covers anchors and Next.js Link; `to` covers
|
|
1762
|
-
* react-router and other routers that use a `to` prop.
|
|
1763
|
-
*/
|
|
1764
|
-
linkHrefProp?: 'href' | 'to';
|
|
1765
1840
|
/** Accessible name for the brand link (default "Home"). */
|
|
1766
1841
|
brandLabel?: string;
|
|
1767
1842
|
/** Accessible name for the desktop navigation landmark (default "Main"). */
|
|
@@ -1791,7 +1866,7 @@ type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1791
1866
|
* actions and a mobile drawer. Router-agnostic through `linkComponent` +
|
|
1792
1867
|
* `linkHrefProp`.
|
|
1793
1868
|
*/
|
|
1794
|
-
declare function SiteHeader({ brand, items, activeHref, match, actions, mobileActions, linkComponent, linkHrefProp, brandLabel, navLabel, mobileNavLabel, sticky, mobileLabel, mobileMenuOpenLabel, mobileMenuCloseLabel, mobileDrawerCloseLabel, showMobileTrigger, desktopBreakpoint, navClassName, className, ...props }: SiteHeaderProps): React.JSX.Element;
|
|
1869
|
+
declare function SiteHeader({ brand, topBar, items, activeHref, match, actions, mobileActions, linkComponent, linkHrefProp, brandLabel, navLabel, mobileNavLabel, sticky, mobileLabel, mobileMenuOpenLabel, mobileMenuCloseLabel, mobileDrawerCloseLabel, showMobileTrigger, desktopBreakpoint, navClassName, className, ...props }: SiteHeaderProps): React.JSX.Element;
|
|
1795
1870
|
|
|
1796
1871
|
type AccordionSection = {
|
|
1797
1872
|
/** Unique id linking the trigger to its panel. */
|
|
@@ -2221,7 +2296,7 @@ type EmptyStateAction = {
|
|
|
2221
2296
|
href?: string;
|
|
2222
2297
|
variant?: ButtonProps['variant'];
|
|
2223
2298
|
};
|
|
2224
|
-
type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2299
|
+
type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & LinkLikeProps & {
|
|
2225
2300
|
/** Icon or illustration shown above the title. */
|
|
2226
2301
|
icon?: React.ReactNode;
|
|
2227
2302
|
title: string;
|
|
@@ -2244,17 +2319,13 @@ type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2244
2319
|
* default dashed outline. Default 'plain'.
|
|
2245
2320
|
*/
|
|
2246
2321
|
tone?: 'plain' | 'panel';
|
|
2247
|
-
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2248
|
-
linkComponent?: React.ElementType;
|
|
2249
|
-
/** Prop used to pass the destination to `linkComponent`. */
|
|
2250
|
-
linkHrefProp?: 'href' | 'to';
|
|
2251
2322
|
};
|
|
2252
2323
|
/**
|
|
2253
2324
|
* Placeholder for empty collections, zero-result searches and unconfigured
|
|
2254
2325
|
* features. Keeps the title/description/action hierarchy consistent across
|
|
2255
2326
|
* the product.
|
|
2256
2327
|
*/
|
|
2257
|
-
declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
2328
|
+
declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & LinkLikeProps & {
|
|
2258
2329
|
/** Icon or illustration shown above the title. */
|
|
2259
2330
|
icon?: React.ReactNode;
|
|
2260
2331
|
title: string;
|
|
@@ -2277,10 +2348,6 @@ declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
2277
2348
|
* default dashed outline. Default 'plain'.
|
|
2278
2349
|
*/
|
|
2279
2350
|
tone?: "plain" | "panel";
|
|
2280
|
-
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2281
|
-
linkComponent?: React.ElementType;
|
|
2282
|
-
/** Prop used to pass the destination to `linkComponent`. */
|
|
2283
|
-
linkHrefProp?: "href" | "to";
|
|
2284
2351
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
2285
2352
|
|
|
2286
2353
|
type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -3315,7 +3382,7 @@ type LogoItem = {
|
|
|
3315
3382
|
/** Optional destination. */
|
|
3316
3383
|
href?: string;
|
|
3317
3384
|
};
|
|
3318
|
-
type LogoCloudProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3385
|
+
type LogoCloudProps = React.HTMLAttributes<HTMLDivElement> & LinkLikeProps & {
|
|
3319
3386
|
/** Logos to display. */
|
|
3320
3387
|
items: LogoItem[];
|
|
3321
3388
|
/** Caption above the strip. */
|
|
@@ -3328,17 +3395,13 @@ type LogoCloudProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3328
3395
|
size?: 'sm' | 'md' | 'lg';
|
|
3329
3396
|
/** Caption and grid alignment. Default 'center'. */
|
|
3330
3397
|
align?: 'left' | 'center';
|
|
3331
|
-
/** Custom link element for routers. */
|
|
3332
|
-
linkComponent?: React.ElementType;
|
|
3333
|
-
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3334
|
-
linkHrefProp?: 'href' | 'to';
|
|
3335
3398
|
};
|
|
3336
3399
|
/**
|
|
3337
3400
|
* Trust strip for member, customer or partner logos. Logos are decorative
|
|
3338
3401
|
* slots; the item name supplies the accessible text. Use it inside a Section
|
|
3339
3402
|
* so the surface tone and spacing come from the band.
|
|
3340
3403
|
*/
|
|
3341
|
-
declare const LogoCloud: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3404
|
+
declare const LogoCloud: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & LinkLikeProps & {
|
|
3342
3405
|
/** Logos to display. */
|
|
3343
3406
|
items: LogoItem[];
|
|
3344
3407
|
/** Caption above the strip. */
|
|
@@ -3351,10 +3414,6 @@ declare const LogoCloud: React.ForwardRefExoticComponent<React.HTMLAttributes<HT
|
|
|
3351
3414
|
size?: "sm" | "md" | "lg";
|
|
3352
3415
|
/** Caption and grid alignment. Default 'center'. */
|
|
3353
3416
|
align?: "left" | "center";
|
|
3354
|
-
/** Custom link element for routers. */
|
|
3355
|
-
linkComponent?: React.ElementType;
|
|
3356
|
-
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3357
|
-
linkHrefProp?: "href" | "to";
|
|
3358
3417
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3359
3418
|
|
|
3360
3419
|
type FeatureItem = {
|
|
@@ -3365,7 +3424,7 @@ type FeatureItem = {
|
|
|
3365
3424
|
/** Link text shown when href is present. */
|
|
3366
3425
|
actionLabel?: string;
|
|
3367
3426
|
};
|
|
3368
|
-
type FeatureGridProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
3427
|
+
type FeatureGridProps = React.HTMLAttributes<HTMLUListElement> & LinkLikeProps & {
|
|
3369
3428
|
/** Features to display. */
|
|
3370
3429
|
features: FeatureItem[];
|
|
3371
3430
|
/** Desktop column count (2-4). Default 3. */
|
|
@@ -3374,15 +3433,13 @@ type FeatureGridProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
|
3374
3433
|
variant?: 'card' | 'plain';
|
|
3375
3434
|
/** Content alignment. Default 'left'. */
|
|
3376
3435
|
align?: 'left' | 'center';
|
|
3377
|
-
/** Custom link element for routers. */
|
|
3378
|
-
linkComponent?: React.ElementType;
|
|
3379
3436
|
};
|
|
3380
3437
|
/**
|
|
3381
3438
|
* Grid of feature or benefit cards with an optional icon, copy and link.
|
|
3382
3439
|
* Use it for the three-risk, six-category and feature-row sections common on
|
|
3383
3440
|
* marketing pages. Each card is a list item, so the group is announced as a list.
|
|
3384
3441
|
*/
|
|
3385
|
-
declare const FeatureGrid: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & {
|
|
3442
|
+
declare const FeatureGrid: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & LinkLikeProps & {
|
|
3386
3443
|
/** Features to display. */
|
|
3387
3444
|
features: FeatureItem[];
|
|
3388
3445
|
/** Desktop column count (2-4). Default 3. */
|
|
@@ -3391,8 +3448,6 @@ declare const FeatureGrid: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
3391
3448
|
variant?: "card" | "plain";
|
|
3392
3449
|
/** Content alignment. Default 'left'. */
|
|
3393
3450
|
align?: "left" | "center";
|
|
3394
|
-
/** Custom link element for routers. */
|
|
3395
|
-
linkComponent?: React.ElementType;
|
|
3396
3451
|
} & React.RefAttributes<HTMLUListElement>>;
|
|
3397
3452
|
|
|
3398
3453
|
type FeatureRowProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
@@ -3515,7 +3570,7 @@ declare const ProcessSteps: React.ForwardRefExoticComponent<React.HTMLAttributes
|
|
|
3515
3570
|
headingLevel?: 2 | 3 | 4;
|
|
3516
3571
|
} & React.RefAttributes<HTMLOListElement>>;
|
|
3517
3572
|
|
|
3518
|
-
type ArticleCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
3573
|
+
type ArticleCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & LinkLikeProps & {
|
|
3519
3574
|
/** Article title. */
|
|
3520
3575
|
title: string;
|
|
3521
3576
|
/** Summary copy. */
|
|
@@ -3528,8 +3583,6 @@ type ArticleCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
|
3528
3583
|
media?: React.ReactNode;
|
|
3529
3584
|
/** Date, read time, author or other metadata. */
|
|
3530
3585
|
meta?: React.ReactNode;
|
|
3531
|
-
/** Custom link element for routers. */
|
|
3532
|
-
linkComponent?: React.ElementType;
|
|
3533
3586
|
/** Standard card or a denser compact card. */
|
|
3534
3587
|
variant?: 'default' | 'compact';
|
|
3535
3588
|
};
|
|
@@ -3538,7 +3591,7 @@ type ArticleCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
|
3538
3591
|
* do not nest buttons or other links inside it. Media is a slot so consumers
|
|
3539
3592
|
* can use next/image, a plain img, a video poster or an illustration.
|
|
3540
3593
|
*/
|
|
3541
|
-
declare const ArticleCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
3594
|
+
declare const ArticleCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & LinkLikeProps & {
|
|
3542
3595
|
/** Article title. */
|
|
3543
3596
|
title: string;
|
|
3544
3597
|
/** Summary copy. */
|
|
@@ -3551,8 +3604,6 @@ declare const ArticleCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttrib
|
|
|
3551
3604
|
media?: React.ReactNode;
|
|
3552
3605
|
/** Date, read time, author or other metadata. */
|
|
3553
3606
|
meta?: React.ReactNode;
|
|
3554
|
-
/** Custom link element for routers. */
|
|
3555
|
-
linkComponent?: React.ElementType;
|
|
3556
3607
|
/** Standard card or a denser compact card. */
|
|
3557
3608
|
variant?: "default" | "compact";
|
|
3558
3609
|
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -3564,7 +3615,7 @@ type MediaCardChip = {
|
|
|
3564
3615
|
/** Leading status dot. */
|
|
3565
3616
|
dot?: boolean;
|
|
3566
3617
|
};
|
|
3567
|
-
type MediaCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
3618
|
+
type MediaCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & LinkLikeProps & {
|
|
3568
3619
|
/** Card title. */
|
|
3569
3620
|
title: string;
|
|
3570
3621
|
/** Supporting copy under the title. */
|
|
@@ -3581,10 +3632,6 @@ type MediaCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
|
3581
3632
|
footer?: React.ReactNode;
|
|
3582
3633
|
/** 'vertical' stacks cover over content; 'row' puts a fixed-width cover beside it. */
|
|
3583
3634
|
layout?: 'vertical' | 'row';
|
|
3584
|
-
/** Custom link element for routers (Next Link, react-router). */
|
|
3585
|
-
linkComponent?: React.ElementType;
|
|
3586
|
-
/** Prop used to pass the destination to linkComponent ('href' or 'to'). */
|
|
3587
|
-
linkHrefProp?: 'href' | 'to';
|
|
3588
3635
|
};
|
|
3589
3636
|
/**
|
|
3590
3637
|
* Media card for event, article and listing grids: CoverImage on top (or
|
|
@@ -3593,7 +3640,7 @@ type MediaCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
|
3593
3640
|
* one target, one hover state, one focus ring — so keep `footer` free of
|
|
3594
3641
|
* nested interactive elements.
|
|
3595
3642
|
*/
|
|
3596
|
-
declare const MediaCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
3643
|
+
declare const MediaCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & LinkLikeProps & {
|
|
3597
3644
|
/** Card title. */
|
|
3598
3645
|
title: string;
|
|
3599
3646
|
/** Supporting copy under the title. */
|
|
@@ -3610,10 +3657,6 @@ declare const MediaCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttribut
|
|
|
3610
3657
|
footer?: React.ReactNode;
|
|
3611
3658
|
/** 'vertical' stacks cover over content; 'row' puts a fixed-width cover beside it. */
|
|
3612
3659
|
layout?: "vertical" | "row";
|
|
3613
|
-
/** Custom link element for routers (Next Link, react-router). */
|
|
3614
|
-
linkComponent?: React.ElementType;
|
|
3615
|
-
/** Prop used to pass the destination to linkComponent ('href' or 'to'). */
|
|
3616
|
-
linkHrefProp?: "href" | "to";
|
|
3617
3660
|
} & React.RefAttributes<HTMLElement>>;
|
|
3618
3661
|
|
|
3619
3662
|
type NewsletterProps = Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onSubmit' | 'title'> & {
|
|
@@ -3676,32 +3719,28 @@ type ContactItem = {
|
|
|
3676
3719
|
href?: string;
|
|
3677
3720
|
icon?: React.ReactNode;
|
|
3678
3721
|
};
|
|
3679
|
-
type ContactStripProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
3722
|
+
type ContactStripProps = React.HTMLAttributes<HTMLUListElement> & LinkLikeProps & {
|
|
3680
3723
|
/** Contact rows to display. */
|
|
3681
3724
|
items: ContactItem[];
|
|
3682
3725
|
/** Desktop column count (2-3). Default 2. */
|
|
3683
3726
|
columns?: 2 | 3;
|
|
3684
3727
|
/** Content alignment. Default 'left'. */
|
|
3685
3728
|
align?: 'left' | 'center';
|
|
3686
|
-
/** Custom link element for routers. */
|
|
3687
|
-
linkComponent?: React.ElementType;
|
|
3688
3729
|
};
|
|
3689
3730
|
/**
|
|
3690
3731
|
* Compact contact details strip for the end of a marketing page. Each row
|
|
3691
3732
|
* pairs a short label with a phone, email, address or link.
|
|
3692
3733
|
*/
|
|
3693
|
-
declare const ContactStrip: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & {
|
|
3734
|
+
declare const ContactStrip: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & LinkLikeProps & {
|
|
3694
3735
|
/** Contact rows to display. */
|
|
3695
3736
|
items: ContactItem[];
|
|
3696
3737
|
/** Desktop column count (2-3). Default 2. */
|
|
3697
3738
|
columns?: 2 | 3;
|
|
3698
3739
|
/** Content alignment. Default 'left'. */
|
|
3699
3740
|
align?: "left" | "center";
|
|
3700
|
-
/** Custom link element for routers. */
|
|
3701
|
-
linkComponent?: React.ElementType;
|
|
3702
3741
|
} & React.RefAttributes<HTMLUListElement>>;
|
|
3703
3742
|
|
|
3704
|
-
type AnnouncementBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
3743
|
+
type AnnouncementBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & LinkLikeProps & {
|
|
3705
3744
|
/** Message shown in the bar. */
|
|
3706
3745
|
message: React.ReactNode;
|
|
3707
3746
|
/** Optional destination for the action. */
|
|
@@ -3716,14 +3755,12 @@ type AnnouncementBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children
|
|
|
3716
3755
|
tone?: 'muted' | 'brand' | 'inverse';
|
|
3717
3756
|
/** Pin the bar to the top of the viewport. */
|
|
3718
3757
|
sticky?: boolean;
|
|
3719
|
-
/** Custom link element for routers. */
|
|
3720
|
-
linkComponent?: React.ElementType;
|
|
3721
3758
|
};
|
|
3722
3759
|
/**
|
|
3723
3760
|
* Dismissible announcement bar for launches, content hubs and network notices.
|
|
3724
3761
|
* It owns only dismissal; persistence and targeting belong to the caller.
|
|
3725
3762
|
*/
|
|
3726
|
-
declare const AnnouncementBar: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
3763
|
+
declare const AnnouncementBar: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & LinkLikeProps & {
|
|
3727
3764
|
/** Message shown in the bar. */
|
|
3728
3765
|
message: React.ReactNode;
|
|
3729
3766
|
/** Optional destination for the action. */
|
|
@@ -3738,8 +3775,6 @@ declare const AnnouncementBar: React.ForwardRefExoticComponent<Omit<React.HTMLAt
|
|
|
3738
3775
|
tone?: "muted" | "brand" | "inverse";
|
|
3739
3776
|
/** Pin the bar to the top of the viewport. */
|
|
3740
3777
|
sticky?: boolean;
|
|
3741
|
-
/** Custom link element for routers. */
|
|
3742
|
-
linkComponent?: React.ElementType;
|
|
3743
3778
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3744
3779
|
|
|
3745
3780
|
type DealMetric = {
|
|
@@ -3747,7 +3782,7 @@ type DealMetric = {
|
|
|
3747
3782
|
value: string;
|
|
3748
3783
|
};
|
|
3749
3784
|
type DealStatus = 'available' | 'under-nda' | 'closed' | 'draft';
|
|
3750
|
-
type DealCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
3785
|
+
type DealCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & LinkLikeProps & {
|
|
3751
3786
|
/** Deal headline. */
|
|
3752
3787
|
title: string;
|
|
3753
3788
|
/** Sector or industry label. */
|
|
@@ -3766,8 +3801,6 @@ type DealCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
|
3766
3801
|
cimAvailable?: boolean;
|
|
3767
3802
|
/** Optional deal detail link. */
|
|
3768
3803
|
href?: string;
|
|
3769
|
-
/** Custom link element for routers. */
|
|
3770
|
-
linkComponent?: React.ElementType;
|
|
3771
3804
|
/** Save toggle state. */
|
|
3772
3805
|
saved?: boolean;
|
|
3773
3806
|
onSave?: () => void;
|
|
@@ -3782,7 +3815,7 @@ type DealCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
|
3782
3815
|
* Deal opportunity card for trend, search and saved-deal surfaces. Metrics use
|
|
3783
3816
|
* tabular numerals; NDA and CIM access are stated as text badges, not implied.
|
|
3784
3817
|
*/
|
|
3785
|
-
declare const DealCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
3818
|
+
declare const DealCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & LinkLikeProps & {
|
|
3786
3819
|
/** Deal headline. */
|
|
3787
3820
|
title: string;
|
|
3788
3821
|
/** Sector or industry label. */
|
|
@@ -3801,8 +3834,6 @@ declare const DealCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttribute
|
|
|
3801
3834
|
cimAvailable?: boolean;
|
|
3802
3835
|
/** Optional deal detail link. */
|
|
3803
3836
|
href?: string;
|
|
3804
|
-
/** Custom link element for routers. */
|
|
3805
|
-
linkComponent?: React.ElementType;
|
|
3806
3837
|
/** Save toggle state. */
|
|
3807
3838
|
saved?: boolean;
|
|
3808
3839
|
onSave?: () => void;
|
|
@@ -3818,7 +3849,7 @@ type EntityStat = {
|
|
|
3818
3849
|
label: string;
|
|
3819
3850
|
value: string;
|
|
3820
3851
|
};
|
|
3821
|
-
type EntityCardProps = React.HTMLAttributes<HTMLElement> & {
|
|
3852
|
+
type EntityCardProps = React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
3822
3853
|
/** Firm or member name. */
|
|
3823
3854
|
name: string;
|
|
3824
3855
|
/** Firm type, role or member category. */
|
|
@@ -3842,8 +3873,6 @@ type EntityCardProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
3842
3873
|
* the overlay; the redundant footer "View profile" link is suppressed.
|
|
3843
3874
|
*/
|
|
3844
3875
|
cardHref?: string;
|
|
3845
|
-
/** Custom link element for routers. */
|
|
3846
|
-
linkComponent?: React.ElementType;
|
|
3847
3876
|
/** Extra footer actions. */
|
|
3848
3877
|
actions?: React.ReactNode;
|
|
3849
3878
|
};
|
|
@@ -3852,7 +3881,7 @@ type EntityCardProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
3852
3881
|
* mark; when absent, initials keep the card identifiable. Stats and tags are
|
|
3853
3882
|
* optional, so the same card works in compact and detailed directory views.
|
|
3854
3883
|
*/
|
|
3855
|
-
declare const EntityCard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
3884
|
+
declare const EntityCard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
3856
3885
|
/** Firm or member name. */
|
|
3857
3886
|
name: string;
|
|
3858
3887
|
/** Firm type, role or member category. */
|
|
@@ -3876,13 +3905,11 @@ declare const EntityCard: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
3876
3905
|
* the overlay; the redundant footer "View profile" link is suppressed.
|
|
3877
3906
|
*/
|
|
3878
3907
|
cardHref?: string;
|
|
3879
|
-
/** Custom link element for routers. */
|
|
3880
|
-
linkComponent?: React.ElementType;
|
|
3881
3908
|
/** Extra footer actions. */
|
|
3882
3909
|
actions?: React.ReactNode;
|
|
3883
3910
|
} & React.RefAttributes<HTMLElement>>;
|
|
3884
3911
|
/** Alias for profile-oriented directory surfaces. */
|
|
3885
|
-
declare const ProfileCard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
3912
|
+
declare const ProfileCard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
3886
3913
|
/** Firm or member name. */
|
|
3887
3914
|
name: string;
|
|
3888
3915
|
/** Firm type, role or member category. */
|
|
@@ -3906,15 +3933,13 @@ declare const ProfileCard: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
3906
3933
|
* the overlay; the redundant footer "View profile" link is suppressed.
|
|
3907
3934
|
*/
|
|
3908
3935
|
cardHref?: string;
|
|
3909
|
-
/** Custom link element for routers. */
|
|
3910
|
-
linkComponent?: React.ElementType;
|
|
3911
3936
|
/** Extra footer actions. */
|
|
3912
3937
|
actions?: React.ReactNode;
|
|
3913
3938
|
} & React.RefAttributes<HTMLElement>>;
|
|
3914
3939
|
type ProfileCardProps = EntityCardProps;
|
|
3915
3940
|
|
|
3916
3941
|
type TombstoneStatus = 'archived' | 'unavailable' | 'closed';
|
|
3917
|
-
type TombstoneCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
3942
|
+
type TombstoneCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & LinkLikeProps & {
|
|
3918
3943
|
/** Listing, deal or document name. */
|
|
3919
3944
|
title: string;
|
|
3920
3945
|
/** Why the item is unavailable. */
|
|
@@ -3927,15 +3952,13 @@ type TombstoneCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
|
3927
3952
|
href?: string;
|
|
3928
3953
|
/** Link label. Default "View details". */
|
|
3929
3954
|
actionLabel?: string;
|
|
3930
|
-
/** Custom link element for routers. */
|
|
3931
|
-
linkComponent?: React.ElementType;
|
|
3932
3955
|
};
|
|
3933
3956
|
/**
|
|
3934
3957
|
* Placeholder card for archived, closed or unavailable marketplace items. It
|
|
3935
3958
|
* explains why the item is unavailable instead of silently removing it from a
|
|
3936
3959
|
* list or leaving a broken detail link.
|
|
3937
3960
|
*/
|
|
3938
|
-
declare const TombstoneCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
3961
|
+
declare const TombstoneCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & LinkLikeProps & {
|
|
3939
3962
|
/** Listing, deal or document name. */
|
|
3940
3963
|
title: string;
|
|
3941
3964
|
/** Why the item is unavailable. */
|
|
@@ -3948,8 +3971,6 @@ declare const TombstoneCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttr
|
|
|
3948
3971
|
href?: string;
|
|
3949
3972
|
/** Link label. Default "View details". */
|
|
3950
3973
|
actionLabel?: string;
|
|
3951
|
-
/** Custom link element for routers. */
|
|
3952
|
-
linkComponent?: React.ElementType;
|
|
3953
3974
|
} & React.RefAttributes<HTMLElement>>;
|
|
3954
3975
|
|
|
3955
3976
|
type DocumentStatus = 'available' | 'restricted' | 'pending';
|
|
@@ -4048,7 +4069,7 @@ type SegmentedOption = {
|
|
|
4048
4069
|
*/
|
|
4049
4070
|
href?: string;
|
|
4050
4071
|
};
|
|
4051
|
-
type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
4072
|
+
type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & LinkLikeProps & {
|
|
4052
4073
|
/** Options rendered as segments. */
|
|
4053
4074
|
options: SegmentedOption[];
|
|
4054
4075
|
/** Controlled selected value. Use string[] when multiple. */
|
|
@@ -4068,10 +4089,6 @@ type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
4068
4089
|
* responsive pattern for "full-width on mobile, compact on desktop".
|
|
4069
4090
|
*/
|
|
4070
4091
|
fullWidth?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4071
|
-
/** Custom link element for routers (Next Link, react-router Link). */
|
|
4072
|
-
linkComponent?: React.ElementType;
|
|
4073
|
-
/** Prop used to pass the destination to `linkComponent`. */
|
|
4074
|
-
linkHrefProp?: 'href' | 'to';
|
|
4075
4092
|
};
|
|
4076
4093
|
/**
|
|
4077
4094
|
* Segmented control for switching a view or filter. Single-select uses radio
|
|
@@ -4085,7 +4102,7 @@ type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
4085
4102
|
* `aria-current="page"` marker and link segments use normal tab navigation
|
|
4086
4103
|
* instead of roving tabindex. Link mode is intended for single-select.
|
|
4087
4104
|
*/
|
|
4088
|
-
declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
4105
|
+
declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & LinkLikeProps & {
|
|
4089
4106
|
/** Options rendered as segments. */
|
|
4090
4107
|
options: SegmentedOption[];
|
|
4091
4108
|
/** Controlled selected value. Use string[] when multiple. */
|
|
@@ -4105,10 +4122,6 @@ declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLA
|
|
|
4105
4122
|
* responsive pattern for "full-width on mobile, compact on desktop".
|
|
4106
4123
|
*/
|
|
4107
4124
|
fullWidth?: boolean | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
4108
|
-
/** Custom link element for routers (Next Link, react-router Link). */
|
|
4109
|
-
linkComponent?: React.ElementType;
|
|
4110
|
-
/** Prop used to pass the destination to `linkComponent`. */
|
|
4111
|
-
linkHrefProp?: "href" | "to";
|
|
4112
4125
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
4113
4126
|
|
|
4114
4127
|
type RangeSliderProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> & {
|
|
@@ -4531,7 +4544,7 @@ type BreadcrumbItem = {
|
|
|
4531
4544
|
/** Destination href; omit for the current page (renders as plain text). */
|
|
4532
4545
|
href?: string;
|
|
4533
4546
|
};
|
|
4534
|
-
type BreadcrumbProps = React.HTMLAttributes<HTMLElement> & {
|
|
4547
|
+
type BreadcrumbProps = React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
4535
4548
|
/** Ordered list of breadcrumb items; the last item is the current page. */
|
|
4536
4549
|
items: BreadcrumbItem[];
|
|
4537
4550
|
/** Accessible name of the navigation landmark. Default 'Breadcrumb'. */
|
|
@@ -4544,13 +4557,6 @@ type BreadcrumbProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
4544
4557
|
* (e.g. via a router, state machine, or analytics wrapper).
|
|
4545
4558
|
*/
|
|
4546
4559
|
onItemClick?: (item: BreadcrumbItem, index: number) => void;
|
|
4547
|
-
/** Custom link element for routers (Next Link, react-router Link). */
|
|
4548
|
-
linkComponent?: React.ElementType;
|
|
4549
|
-
/**
|
|
4550
|
-
* Prop used to pass the destination to `linkComponent`. `href` covers
|
|
4551
|
-
* anchors and Next.js Link; `to` covers react-router and similar routers.
|
|
4552
|
-
*/
|
|
4553
|
-
linkHrefProp?: 'href' | 'to';
|
|
4554
4560
|
/** Truncate the current page label and expose the full text as a title. */
|
|
4555
4561
|
truncateCurrent?: boolean;
|
|
4556
4562
|
};
|
|
@@ -4559,7 +4565,7 @@ type BreadcrumbProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
4559
4565
|
* page with aria-current="page". Earlier items are links. Screen readers
|
|
4560
4566
|
* announce the navigation landmark and current location.
|
|
4561
4567
|
*/
|
|
4562
|
-
declare const Breadcrumb: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4568
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
4563
4569
|
/** Ordered list of breadcrumb items; the last item is the current page. */
|
|
4564
4570
|
items: BreadcrumbItem[];
|
|
4565
4571
|
/** Accessible name of the navigation landmark. Default 'Breadcrumb'. */
|
|
@@ -4572,13 +4578,6 @@ declare const Breadcrumb: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4572
4578
|
* (e.g. via a router, state machine, or analytics wrapper).
|
|
4573
4579
|
*/
|
|
4574
4580
|
onItemClick?: (item: BreadcrumbItem, index: number) => void;
|
|
4575
|
-
/** Custom link element for routers (Next Link, react-router Link). */
|
|
4576
|
-
linkComponent?: React.ElementType;
|
|
4577
|
-
/**
|
|
4578
|
-
* Prop used to pass the destination to `linkComponent`. `href` covers
|
|
4579
|
-
* anchors and Next.js Link; `to` covers react-router and similar routers.
|
|
4580
|
-
*/
|
|
4581
|
-
linkHrefProp?: "href" | "to";
|
|
4582
4581
|
/** Truncate the current page label and expose the full text as a title. */
|
|
4583
4582
|
truncateCurrent?: boolean;
|
|
4584
4583
|
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -4593,7 +4592,7 @@ type PaginationIcons = {
|
|
|
4593
4592
|
/** Glyph/slot for the jump-to-last button. */
|
|
4594
4593
|
last?: React.ReactNode;
|
|
4595
4594
|
};
|
|
4596
|
-
type PaginationProps = React.HTMLAttributes<HTMLElement> & {
|
|
4595
|
+
type PaginationProps = React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
4597
4596
|
/** Current page number (1-based). Alias: currentPage. */
|
|
4598
4597
|
page?: number;
|
|
4599
4598
|
/** Total number of pages. Alias: totalPages (or derived from total/pageSize). */
|
|
@@ -4619,10 +4618,6 @@ type PaginationProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
4619
4618
|
* the React Server Component boundary.
|
|
4620
4619
|
*/
|
|
4621
4620
|
pageHrefs?: Record<number, string>;
|
|
4622
|
-
/** Custom link element for routers (Next Link, react-router Link). */
|
|
4623
|
-
linkComponent?: React.ElementType;
|
|
4624
|
-
/** Prop used to pass the destination to `linkComponent`. */
|
|
4625
|
-
linkHrefProp?: 'href' | 'to';
|
|
4626
4621
|
/** How many page buttons to show around the current page (default 1). */
|
|
4627
4622
|
siblings?: number;
|
|
4628
4623
|
/** Show the jump-to-first/last buttons (default false). */
|
|
@@ -4654,7 +4649,7 @@ type PaginationProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
4654
4649
|
* `pageHrefs` for server-rendered pagination where every page is a real
|
|
4655
4650
|
* URL (the map is serializable, so it works from a Server Component).
|
|
4656
4651
|
*/
|
|
4657
|
-
declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
4652
|
+
declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & LinkLikeProps & {
|
|
4658
4653
|
/** Current page number (1-based). Alias: currentPage. */
|
|
4659
4654
|
page?: number;
|
|
4660
4655
|
/** Total number of pages. Alias: totalPages (or derived from total/pageSize). */
|
|
@@ -4680,10 +4675,6 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4680
4675
|
* the React Server Component boundary.
|
|
4681
4676
|
*/
|
|
4682
4677
|
pageHrefs?: Record<number, string>;
|
|
4683
|
-
/** Custom link element for routers (Next Link, react-router Link). */
|
|
4684
|
-
linkComponent?: React.ElementType;
|
|
4685
|
-
/** Prop used to pass the destination to `linkComponent`. */
|
|
4686
|
-
linkHrefProp?: "href" | "to";
|
|
4687
4678
|
/** How many page buttons to show around the current page (default 1). */
|
|
4688
4679
|
siblings?: number;
|
|
4689
4680
|
/** Show the jump-to-first/last buttons (default false). */
|
|
@@ -4705,5 +4696,5 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4705
4696
|
};
|
|
4706
4697
|
} & React.RefAttributes<HTMLElement>>;
|
|
4707
4698
|
|
|
4708
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnnouncementBar, AppShell, AppliedFilters, ArticleCard, AuthLayout, Autocomplete, Avatar, AvatarFallback, AvatarImage, Badge, Block, BottomNav, Breadcrumb, Button, ButtonGroup, CTASection, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, ComparisonTable, ConfirmDialog, ContactStrip, Container, CoverImage, DataTable, DatePicker, DatePickerPopover, DateRangePicker, DealCard, Dialog, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Divider, DocumentCard, Drawer, EmptyState, EntityCard, FeatureGrid, FeatureRow, Fieldset, FileUpload, FilterBar, FilterChips, FilterPanel, Flex, FlexItem, Form, FormField, FormLayout, Grid, GridItem, Heading, Hero, Image, Input, InputGroup, InputGroupAddon, Label, Link, LinkTabs, List, ListItem, ListToolbar, LoadMore, LogoCloud, MediaCard, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, MonthSchedule, MultiSelect, Newsletter, PageHeader, Pagination, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProcessSteps, ProfileCard, Progress, Prose, Radio, RadioCard, RadioGroup, RadioGroupContext, RadioGroupItem, RangeSlider, Search, Section, SectionHeading, SegmentedControl, Select, SelectMenu, Separator, Sidebar, SiteFooter, SiteHeader, Skeleton, Spinner, StatBand, Stepper, Switch, Table, TableBody, TableCaption, TableCard, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Text, Textarea, ThemeToggle, TimePicker, Timeline, ToastProvider, Toaster, TombstoneCard, Tooltip, alertVariants, badgeVariants, buttonVariants, cn, documentHead, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, toast, useCombobox, usePresence, useScrollSpy, useToast };
|
|
4709
|
-
export type { AccessibilityRequirement, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionSection, AccordionTriggerProps, AlertDescriptionProps, AlertProps, AlertTitleProps, AnnouncementBarProps, AntiPattern, AppShellProps, AppliedFiltersProps, ArticleCardProps, AuthLayoutProps, AutocompleteOption, AutocompleteProps, BadgeProps, BlockElement, BlockProps, BottomNavItem, BottomNavProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonProps, CTASectionProps, CTASectionTone, CalendarProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxGroupItemProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, ComboboxItem, ComparisonColumn, ComparisonRow, ComparisonTableProps, ComponentManifest, ComponentTier, CompositionRule, ConfirmDialogProps, ContactItem, ContactStripProps, ContainerProps, ContainerWidth, ContentGuideline, CoverImageProps, DataTableCardBreakpoint, DataTableColumn, DataTableProps, DatePickerPopoverProps, DatePickerProps, DateRange, DateRangePickerProps, DateRangePreset, DealCardProps, DealMetric, DealStatus, DialogBodyProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogSize, DialogTitleProps, DocumentCardProps, DocumentHead, DocumentHeadInput, DocumentStatus, DrawerProps, DrawerSide, DrawerSize, EmptyStateAction, EmptyStateProps, EntityCardProps, EntityStat, FeatureGridProps, FeatureItem, FeatureRowProps, FieldsetProps, FileUploadProps, FilterBarProps, FilterChip, FilterChipsProps, FilterPanelProps, FilterSection, FlexItemProps, FlexProps, FormFieldLabelPlacement, FormFieldProps, FormLayoutColumns, FormLayoutProps, FormProps, FormVariant, GapValue, GridItemProps, GridProps, HeadingLevel, HeadingProps, HeroProps, ImageProps, InputGroupAddonProps, InputGroupProps, InputProps, LabelProps, LinkProps, LinkTabsItem, LinkTabsProps, LinkVariant, ListItemProps, ListProps, ListToolbarProps, LoadMoreProps, LogoCloudProps, LogoItem, MediaCardChip, MediaCardProps, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, MonthScheduleLegendItem, MonthScheduleProps, MultiSelectOption, MultiSelectProps, NewsletterProps, PageHeaderProps, PaginationIcons, PaginationProps, PasswordInputProps, PopoverAnchorProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProcessStep, ProcessStepsProps, ProfileCardProps, ProgressProps, PropSchema, ProseProps, RadioCardProps, RadioGroupItemProps, RadioGroupProps, RadioProps, RangeSliderProps, SearchOption, SearchProps, SectionHeadingProps, SectionProps, SectionTone, SegmentedControlProps, SegmentedOption, SelectMenuItem, SelectMenuProps, SelectOption, SelectOptionGroup, SelectProps, SeparatorProps, SidebarItem, SidebarProps, SidebarSection, SiteFooterColumn, SiteFooterLink, SiteFooterProps, SiteHeaderProps, SiteNavColumn, SiteNavItem, SiteNavLink, SkeletonProps, SortIconState, SpinnerProps, StatBandProps, StatItem, StepperProps, StepperStep, SwitchProps, TableBodyProps, TableCaptionProps, TableCardProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableOfContentsProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TestimonialProps, TextProps, TextareaProps, ThemeToggleProps, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample };
|
|
4699
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnnouncementBar, AppShell, AppliedFilters, ArticleCard, AuthLayout, Autocomplete, Avatar, AvatarFallback, AvatarImage, Badge, Block, BottomNav, Breadcrumb, Button, ButtonGroup, CONSENT_CHANGE_EVENT, CTASection, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, ComparisonTable, ConfirmDialog, ConsentBanner, ContactStrip, Container, CoverImage, DataTable, DatePicker, DatePickerPopover, DateRangePicker, DealCard, Dialog, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Divider, DocumentCard, Drawer, EmptyState, EntityCard, FeatureGrid, FeatureRow, Fieldset, FileUpload, FilterBar, FilterChips, FilterPanel, Flex, FlexItem, Form, FormField, FormLayout, Grid, GridItem, Heading, Hero, Image, Input, InputGroup, InputGroupAddon, Label, Link, LinkTabs, List, ListItem, ListToolbar, LoadMore, LogoCloud, MediaCard, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, MonthSchedule, MultiSelect, Newsletter, PageHeader, Pagination, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProcessSteps, ProfileCard, Progress, Prose, Radio, RadioCard, RadioGroup, RadioGroupContext, RadioGroupItem, RangeSlider, Search, Section, SectionHeading, SegmentedControl, Select, SelectMenu, Separator, Sidebar, SiteFooter, SiteHeader, Skeleton, Spinner, StatBand, Stepper, Switch, Table, TableBody, TableCaption, TableCard, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Text, Textarea, ThemeToggle, TimePicker, Timeline, ToastProvider, Toaster, TombstoneCard, Tooltip, alertVariants, badgeVariants, buttonVariants, cn, documentHead, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, toast, useCombobox, useConsent, usePresence, useScrollSpy, useToast };
|
|
4700
|
+
export type { AccessibilityRequirement, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionSection, AccordionTriggerProps, AlertDescriptionProps, AlertProps, AlertTitleProps, AnnouncementBarProps, AntiPattern, AppShellProps, AppliedFiltersProps, ArticleCardProps, AuthLayoutProps, AutocompleteOption, AutocompleteProps, BadgeProps, BlockElement, BlockProps, BottomNavItem, BottomNavProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonProps, CTASectionProps, CTASectionTone, CalendarProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxGroupItemProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, ComboboxItem, ComparisonColumn, ComparisonRow, ComparisonTableProps, ComponentManifest, ComponentTier, CompositionRule, ConfirmDialogProps, Consent, ConsentBannerProps, ConsentPreferences, ContactItem, ContactStripProps, ContainerProps, ContainerWidth, ContentGuideline, CoverImageProps, DataTableCardBreakpoint, DataTableColumn, DataTableProps, DatePickerPopoverProps, DatePickerProps, DateRange, DateRangePickerProps, DateRangePreset, DealCardProps, DealMetric, DealStatus, DialogBodyProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogSize, DialogTitleProps, DocumentCardProps, DocumentHead, DocumentHeadInput, DocumentStatus, DrawerProps, DrawerSide, DrawerSize, EmptyStateAction, EmptyStateProps, EntityCardProps, EntityStat, FeatureGridProps, FeatureItem, FeatureRowProps, FieldsetProps, FileUploadProps, FilterBarProps, FilterChip, FilterChipsProps, FilterPanelProps, FilterSection, FlexItemProps, FlexProps, FormFieldLabelPlacement, FormFieldProps, FormLayoutColumns, FormLayoutProps, FormProps, FormVariant, GapValue, GridItemProps, GridProps, HeadingLevel, HeadingProps, HeroProps, ImageProps, InputGroupAddonProps, InputGroupProps, InputProps, LabelProps, LinkLikeProps, LinkProps, LinkTabsItem, LinkTabsProps, LinkVariant, ListItemProps, ListProps, ListToolbarProps, LoadMoreProps, LogoCloudProps, LogoItem, MediaCardChip, MediaCardProps, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, MonthScheduleLegendItem, MonthScheduleProps, MultiSelectOption, MultiSelectProps, NewsletterProps, PageHeaderProps, PaginationIcons, PaginationProps, PasswordInputProps, PopoverAnchorProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProcessStep, ProcessStepsProps, ProfileCardProps, ProgressProps, PropSchema, ProseProps, RadioCardProps, RadioGroupItemProps, RadioGroupProps, RadioProps, RangeSliderProps, SearchOption, SearchProps, SectionHeadingProps, SectionProps, SectionTone, SegmentedControlProps, SegmentedOption, SelectMenuItem, SelectMenuProps, SelectOption, SelectOptionGroup, SelectProps, SeparatorProps, SidebarItem, SidebarProps, SidebarSection, SiteFooterColumn, SiteFooterLink, SiteFooterProps, SiteHeaderProps, SiteNavColumn, SiteNavItem, SiteNavLink, SkeletonProps, SortIconState, SpinnerProps, StatBandProps, StatItem, StepperProps, StepperStep, SwitchProps, TableBodyProps, TableCaptionProps, TableCardProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableOfContentsProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TestimonialProps, TextProps, TextareaProps, ThemeToggleProps, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample, UseConsentOptions };
|