@slipstream-ui/core 0.11.4 → 0.11.7
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 +107 -4
- package/dist/index.d.ts +107 -4
- package/dist/index.js +594 -442
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +489 -338
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +1 -1
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.manifest.json +151 -0
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +1 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +45 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +7 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +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 +29 -2
- 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 +22 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +23 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/cover-image/CoverImage.d.ts +34 -0
- package/dist/src/components/cover-image/CoverImage.js +94 -0
- package/dist/src/components/cover-image/CoverImage.js.map +1 -0
- package/dist/src/components/cover-image/CoverImage.mjs +70 -0
- package/dist/src/components/cover-image/CoverImage.mjs.map +1 -0
- package/dist/src/components/cover-image/index.d.ts +1 -0
- package/dist/src/components/cover-image/index.js +29 -0
- package/dist/src/components/cover-image/index.js.map +1 -0
- package/dist/src/components/cover-image/index.mjs +5 -0
- package/dist/src/components/cover-image/index.mjs.map +1 -0
- package/dist/src/components/empty-state/EmptyState.d.ts +24 -0
- package/dist/src/components/empty-state/EmptyState.js +16 -6
- package/dist/src/components/empty-state/EmptyState.js.map +1 -1
- package/dist/src/components/empty-state/EmptyState.mjs +16 -6
- package/dist/src/components/empty-state/EmptyState.mjs.map +1 -1
- package/dist/src/components/image/Image.d.ts +3 -1
- package/dist/src/components/image/Image.js +2 -0
- package/dist/src/components/image/Image.js.map +1 -1
- package/dist/src/components/image/Image.mjs +2 -0
- package/dist/src/components/image/Image.mjs.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +21 -0
- package/dist/src/components/segmented-control/SegmentedControl.js +47 -16
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +48 -17
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/components/site-header/SiteHeader.d.ts +7 -1
- package/dist/src/components/site-header/SiteHeader.js +5 -1
- package/dist/src/components/site-header/SiteHeader.js.map +1 -1
- package/dist/src/components/site-header/SiteHeader.mjs +5 -1
- package/dist/src/components/site-header/SiteHeader.mjs.map +1 -1
- package/dist/src/components/stat-band/StatBand.d.ts +16 -0
- package/dist/src/components/stat-band/StatBand.js +46 -9
- package/dist/src/components/stat-band/StatBand.js.map +1 -1
- package/dist/src/components/stat-band/StatBand.mjs +46 -9
- package/dist/src/components/stat-band/StatBand.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/components/cover-image/CoverImage.test.tsx +88 -0
- package/src/components/cover-image/CoverImage.tsx +109 -0
- package/src/components/cover-image/index.ts +1 -0
- package/src/components/empty-state/EmptyState.test.tsx +33 -0
- package/src/components/empty-state/EmptyState.tsx +34 -6
- package/src/components/image/Image.tsx +4 -0
- package/src/components/segmented-control/SegmentedControl.test.tsx +64 -0
- package/src/components/segmented-control/SegmentedControl.tsx +69 -15
- package/src/components/site-header/SiteHeader.test.tsx +18 -0
- package/src/components/site-header/SiteHeader.tsx +11 -1
- package/src/components/stat-band/StatBand.test.tsx +26 -0
- package/src/components/stat-band/StatBand.tsx +52 -7
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +1 -1
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.manifest.json +151 -0
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +1 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +45 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +7 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +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 +29 -2
- 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 +22 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +23 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
- package/src/styles.css +5 -0
package/dist/index.d.mts
CHANGED
|
@@ -1714,6 +1714,12 @@ type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1714
1714
|
sticky?: boolean;
|
|
1715
1715
|
/** Title of the mobile navigation drawer. Default 'Menu'. */
|
|
1716
1716
|
mobileLabel?: string;
|
|
1717
|
+
/** Accessible name for the mobile menu trigger when closed (default "Open menu"). */
|
|
1718
|
+
mobileMenuOpenLabel?: string;
|
|
1719
|
+
/** Accessible name for the mobile menu trigger when open (default "Close menu"). */
|
|
1720
|
+
mobileMenuCloseLabel?: string;
|
|
1721
|
+
/** Accessible name for the mobile drawer close button (default "Close drawer"). */
|
|
1722
|
+
mobileDrawerCloseLabel?: string;
|
|
1717
1723
|
/** Render the built-in mobile trigger and drawer (default true). Set false when the host owns mobile navigation. */
|
|
1718
1724
|
showMobileTrigger?: boolean;
|
|
1719
1725
|
/** Breakpoint where the horizontal navigation appears (default 'md'). */
|
|
@@ -1727,7 +1733,7 @@ type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1727
1733
|
* actions and a mobile drawer. Router-agnostic through `linkComponent` +
|
|
1728
1734
|
* `linkHrefProp`.
|
|
1729
1735
|
*/
|
|
1730
|
-
declare function SiteHeader({ brand, items, activeHref, match, actions, mobileActions, linkComponent, linkHrefProp, brandLabel, navLabel, mobileNavLabel, sticky, mobileLabel, showMobileTrigger, desktopBreakpoint, navClassName, className, ...props }: SiteHeaderProps): React.JSX.Element;
|
|
1736
|
+
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;
|
|
1731
1737
|
|
|
1732
1738
|
type AccordionSection = {
|
|
1733
1739
|
/** Unique id linking the trigger to its panel. */
|
|
@@ -2017,6 +2023,8 @@ type ImageProps = {
|
|
|
2017
2023
|
className?: string;
|
|
2018
2024
|
/** Classes for the image when a consumer wants to keep them separate. */
|
|
2019
2025
|
imgClassName?: string;
|
|
2026
|
+
/** Responsive `sizes` hint for the browser's source selection. */
|
|
2027
|
+
sizes?: string;
|
|
2020
2028
|
style?: React.CSSProperties;
|
|
2021
2029
|
};
|
|
2022
2030
|
/**
|
|
@@ -2027,11 +2035,45 @@ type ImageProps = {
|
|
|
2027
2035
|
* intrinsic dimensions are always rendered and only the priority image is
|
|
2028
2036
|
* eager.
|
|
2029
2037
|
*/
|
|
2030
|
-
declare function Image({ src, alt, fallbackSrc, fallback, priority, width, height, className, imgClassName, style, }: ImageProps): React.JSX.Element;
|
|
2038
|
+
declare function Image({ src, alt, fallbackSrc, fallback, priority, width, height, className, imgClassName, sizes, style, }: ImageProps): React.JSX.Element;
|
|
2031
2039
|
declare namespace Image {
|
|
2032
2040
|
var displayName: string;
|
|
2033
2041
|
}
|
|
2034
2042
|
|
|
2043
|
+
type CoverImageProps = {
|
|
2044
|
+
/** Cover URL. When absent or broken, the seeded fallback renders instead. */
|
|
2045
|
+
src?: string | null;
|
|
2046
|
+
/** Required: describes the image for assistive tech. */
|
|
2047
|
+
alt: string;
|
|
2048
|
+
/**
|
|
2049
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
2050
|
+
* aspect-ratio value such as '16/9' or '4/3'.
|
|
2051
|
+
*/
|
|
2052
|
+
aspect?: 'video' | 'square' | 'wide' | string;
|
|
2053
|
+
/** Stable key selecting the fallback gradient (e.g. entity slug). */
|
|
2054
|
+
seed?: string;
|
|
2055
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
2056
|
+
priority?: boolean;
|
|
2057
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
2058
|
+
sizes?: string;
|
|
2059
|
+
/** Custom fallback content; defaults to the seed-derived gradient. */
|
|
2060
|
+
fallback?: React.ReactNode;
|
|
2061
|
+
/** Optional mark centered on the default gradient (icon, monogram). */
|
|
2062
|
+
mark?: React.ReactNode;
|
|
2063
|
+
className?: string;
|
|
2064
|
+
};
|
|
2065
|
+
/**
|
|
2066
|
+
* Media cover with a deterministic placeholder: a fixed-aspect box that shows
|
|
2067
|
+
* the image when present and a seed-derived token gradient (plus optional
|
|
2068
|
+
* mark) when the entity has no art. Broken images degrade to the same
|
|
2069
|
+
* gradient through Image's fallback chain, so imageless grids still look
|
|
2070
|
+
* intentional.
|
|
2071
|
+
*/
|
|
2072
|
+
declare function CoverImage({ src, alt, aspect, seed, priority, sizes, fallback, mark, className, }: CoverImageProps): React.JSX.Element;
|
|
2073
|
+
declare namespace CoverImage {
|
|
2074
|
+
var displayName: string;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2035
2077
|
declare const sizeClasses$1: {
|
|
2036
2078
|
readonly xs: "text-xs";
|
|
2037
2079
|
readonly sm: "text-sm";
|
|
@@ -2125,6 +2167,18 @@ type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2125
2167
|
titleAs?: 'p' | 'h2' | 'h3' | 'h4';
|
|
2126
2168
|
/** Compact padding for use inside panels and table bodies. */
|
|
2127
2169
|
size?: 'sm' | 'md';
|
|
2170
|
+
/** Horizontal alignment of content and actions. Default 'center'. */
|
|
2171
|
+
align?: 'center' | 'start';
|
|
2172
|
+
/**
|
|
2173
|
+
* Surface treatment. 'panel' renders a tinted, solid-bordered surface for
|
|
2174
|
+
* content pages (typically paired with align="start"); 'plain' keeps the
|
|
2175
|
+
* default dashed outline. Default 'plain'.
|
|
2176
|
+
*/
|
|
2177
|
+
tone?: 'plain' | 'panel';
|
|
2178
|
+
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2179
|
+
linkComponent?: React.ElementType;
|
|
2180
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
2181
|
+
linkHrefProp?: 'href' | 'to';
|
|
2128
2182
|
};
|
|
2129
2183
|
/**
|
|
2130
2184
|
* Placeholder for empty collections, zero-result searches and unconfigured
|
|
@@ -2146,6 +2200,18 @@ declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
2146
2200
|
titleAs?: "p" | "h2" | "h3" | "h4";
|
|
2147
2201
|
/** Compact padding for use inside panels and table bodies. */
|
|
2148
2202
|
size?: "sm" | "md";
|
|
2203
|
+
/** Horizontal alignment of content and actions. Default 'center'. */
|
|
2204
|
+
align?: "center" | "start";
|
|
2205
|
+
/**
|
|
2206
|
+
* Surface treatment. 'panel' renders a tinted, solid-bordered surface for
|
|
2207
|
+
* content pages (typically paired with align="start"); 'plain' keeps the
|
|
2208
|
+
* default dashed outline. Default 'plain'.
|
|
2209
|
+
*/
|
|
2210
|
+
tone?: "plain" | "panel";
|
|
2211
|
+
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2212
|
+
linkComponent?: React.ElementType;
|
|
2213
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
2214
|
+
linkHrefProp?: "href" | "to";
|
|
2149
2215
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
2150
2216
|
|
|
2151
2217
|
type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -3014,6 +3080,14 @@ type StatBandProps = React.HTMLAttributes<HTMLDListElement> & {
|
|
|
3014
3080
|
size?: 'sm' | 'md' | 'lg';
|
|
3015
3081
|
/** Draw dividers between stats at sm and up. Default true. */
|
|
3016
3082
|
divided?: boolean;
|
|
3083
|
+
/**
|
|
3084
|
+
* Surface treatment. 'panel' renders a bordered strip of hairline-separated
|
|
3085
|
+
* cells with denser type for data pages; 'plain' is the marketing band.
|
|
3086
|
+
* Default 'plain'.
|
|
3087
|
+
*/
|
|
3088
|
+
variant?: 'plain' | 'panel';
|
|
3089
|
+
/** Extra classes for the value element (e.g. font-mono for tabular numerals). */
|
|
3090
|
+
valueClassName?: string;
|
|
3017
3091
|
};
|
|
3018
3092
|
/**
|
|
3019
3093
|
* Marketing stat band: a semantic description list of headline numbers with
|
|
@@ -3031,6 +3105,14 @@ declare const StatBand: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
3031
3105
|
size?: "sm" | "md" | "lg";
|
|
3032
3106
|
/** Draw dividers between stats at sm and up. Default true. */
|
|
3033
3107
|
divided?: boolean;
|
|
3108
|
+
/**
|
|
3109
|
+
* Surface treatment. 'panel' renders a bordered strip of hairline-separated
|
|
3110
|
+
* cells with denser type for data pages; 'plain' is the marketing band.
|
|
3111
|
+
* Default 'plain'.
|
|
3112
|
+
*/
|
|
3113
|
+
variant?: "plain" | "panel";
|
|
3114
|
+
/** Extra classes for the value element (e.g. font-mono for tabular numerals). */
|
|
3115
|
+
valueClassName?: string;
|
|
3034
3116
|
} & React.RefAttributes<HTMLDListElement>>;
|
|
3035
3117
|
|
|
3036
3118
|
type CTASectionTone = Extract<SectionTone, 'default' | 'muted' | 'brand' | 'inverse'>;
|
|
@@ -3795,6 +3877,13 @@ type SegmentedOption = {
|
|
|
3795
3877
|
/** Optional leading icon. */
|
|
3796
3878
|
icon?: React.ReactNode;
|
|
3797
3879
|
disabled?: boolean;
|
|
3880
|
+
/**
|
|
3881
|
+
* Destination URL. When set the segment renders as a link instead of a
|
|
3882
|
+
* button - use this for view switches that must survive refresh and work
|
|
3883
|
+
* without JavaScript. The active segment renders as a non-link
|
|
3884
|
+
* `aria-current="page"` marker.
|
|
3885
|
+
*/
|
|
3886
|
+
href?: string;
|
|
3798
3887
|
};
|
|
3799
3888
|
type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
3800
3889
|
/** Options rendered as segments. */
|
|
@@ -3811,12 +3900,22 @@ type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
3811
3900
|
size?: 'sm' | 'md' | 'lg';
|
|
3812
3901
|
/** Stretch segments to fill the container width. */
|
|
3813
3902
|
fullWidth?: boolean;
|
|
3903
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3904
|
+
linkComponent?: React.ElementType;
|
|
3905
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
3906
|
+
linkHrefProp?: 'href' | 'to';
|
|
3814
3907
|
};
|
|
3815
3908
|
/**
|
|
3816
3909
|
* Segmented control for switching a view or filter. Single-select uses radio
|
|
3817
3910
|
* semantics and arrow-key navigation; multiple-select uses pressed buttons.
|
|
3818
3911
|
* Use it for filters such as All / Investors / Advisors, not for tab panels
|
|
3819
3912
|
* (use Tabs when each segment owns a tabpanel).
|
|
3913
|
+
*
|
|
3914
|
+
* Give an option an `href` to render it as a real link - the pattern for
|
|
3915
|
+
* view switches that must survive refresh, work without JavaScript, and stay
|
|
3916
|
+
* cacheable. The active segment then renders as a non-link
|
|
3917
|
+
* `aria-current="page"` marker and link segments use normal tab navigation
|
|
3918
|
+
* instead of roving tabindex. Link mode is intended for single-select.
|
|
3820
3919
|
*/
|
|
3821
3920
|
declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
3822
3921
|
/** Options rendered as segments. */
|
|
@@ -3833,6 +3932,10 @@ declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLA
|
|
|
3833
3932
|
size?: "sm" | "md" | "lg";
|
|
3834
3933
|
/** Stretch segments to fill the container width. */
|
|
3835
3934
|
fullWidth?: boolean;
|
|
3935
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3936
|
+
linkComponent?: React.ElementType;
|
|
3937
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
3938
|
+
linkHrefProp?: "href" | "to";
|
|
3836
3939
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3837
3940
|
|
|
3838
3941
|
type RangeSliderProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> & {
|
|
@@ -4429,5 +4532,5 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4429
4532
|
};
|
|
4430
4533
|
} & React.RefAttributes<HTMLElement>>;
|
|
4431
4534
|
|
|
4432
|
-
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, 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, LoadMore, LogoCloud, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, 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 };
|
|
4433
|
-
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, 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, LoadMoreProps, LogoCloudProps, LogoItem, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, 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 };
|
|
4535
|
+
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, LoadMore, LogoCloud, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, 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 };
|
|
4536
|
+
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, 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, LoadMoreProps, LogoCloudProps, LogoItem, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1714,6 +1714,12 @@ type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1714
1714
|
sticky?: boolean;
|
|
1715
1715
|
/** Title of the mobile navigation drawer. Default 'Menu'. */
|
|
1716
1716
|
mobileLabel?: string;
|
|
1717
|
+
/** Accessible name for the mobile menu trigger when closed (default "Open menu"). */
|
|
1718
|
+
mobileMenuOpenLabel?: string;
|
|
1719
|
+
/** Accessible name for the mobile menu trigger when open (default "Close menu"). */
|
|
1720
|
+
mobileMenuCloseLabel?: string;
|
|
1721
|
+
/** Accessible name for the mobile drawer close button (default "Close drawer"). */
|
|
1722
|
+
mobileDrawerCloseLabel?: string;
|
|
1717
1723
|
/** Render the built-in mobile trigger and drawer (default true). Set false when the host owns mobile navigation. */
|
|
1718
1724
|
showMobileTrigger?: boolean;
|
|
1719
1725
|
/** Breakpoint where the horizontal navigation appears (default 'md'). */
|
|
@@ -1727,7 +1733,7 @@ type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1727
1733
|
* actions and a mobile drawer. Router-agnostic through `linkComponent` +
|
|
1728
1734
|
* `linkHrefProp`.
|
|
1729
1735
|
*/
|
|
1730
|
-
declare function SiteHeader({ brand, items, activeHref, match, actions, mobileActions, linkComponent, linkHrefProp, brandLabel, navLabel, mobileNavLabel, sticky, mobileLabel, showMobileTrigger, desktopBreakpoint, navClassName, className, ...props }: SiteHeaderProps): React.JSX.Element;
|
|
1736
|
+
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;
|
|
1731
1737
|
|
|
1732
1738
|
type AccordionSection = {
|
|
1733
1739
|
/** Unique id linking the trigger to its panel. */
|
|
@@ -2017,6 +2023,8 @@ type ImageProps = {
|
|
|
2017
2023
|
className?: string;
|
|
2018
2024
|
/** Classes for the image when a consumer wants to keep them separate. */
|
|
2019
2025
|
imgClassName?: string;
|
|
2026
|
+
/** Responsive `sizes` hint for the browser's source selection. */
|
|
2027
|
+
sizes?: string;
|
|
2020
2028
|
style?: React.CSSProperties;
|
|
2021
2029
|
};
|
|
2022
2030
|
/**
|
|
@@ -2027,11 +2035,45 @@ type ImageProps = {
|
|
|
2027
2035
|
* intrinsic dimensions are always rendered and only the priority image is
|
|
2028
2036
|
* eager.
|
|
2029
2037
|
*/
|
|
2030
|
-
declare function Image({ src, alt, fallbackSrc, fallback, priority, width, height, className, imgClassName, style, }: ImageProps): React.JSX.Element;
|
|
2038
|
+
declare function Image({ src, alt, fallbackSrc, fallback, priority, width, height, className, imgClassName, sizes, style, }: ImageProps): React.JSX.Element;
|
|
2031
2039
|
declare namespace Image {
|
|
2032
2040
|
var displayName: string;
|
|
2033
2041
|
}
|
|
2034
2042
|
|
|
2043
|
+
type CoverImageProps = {
|
|
2044
|
+
/** Cover URL. When absent or broken, the seeded fallback renders instead. */
|
|
2045
|
+
src?: string | null;
|
|
2046
|
+
/** Required: describes the image for assistive tech. */
|
|
2047
|
+
alt: string;
|
|
2048
|
+
/**
|
|
2049
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
2050
|
+
* aspect-ratio value such as '16/9' or '4/3'.
|
|
2051
|
+
*/
|
|
2052
|
+
aspect?: 'video' | 'square' | 'wide' | string;
|
|
2053
|
+
/** Stable key selecting the fallback gradient (e.g. entity slug). */
|
|
2054
|
+
seed?: string;
|
|
2055
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
2056
|
+
priority?: boolean;
|
|
2057
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
2058
|
+
sizes?: string;
|
|
2059
|
+
/** Custom fallback content; defaults to the seed-derived gradient. */
|
|
2060
|
+
fallback?: React.ReactNode;
|
|
2061
|
+
/** Optional mark centered on the default gradient (icon, monogram). */
|
|
2062
|
+
mark?: React.ReactNode;
|
|
2063
|
+
className?: string;
|
|
2064
|
+
};
|
|
2065
|
+
/**
|
|
2066
|
+
* Media cover with a deterministic placeholder: a fixed-aspect box that shows
|
|
2067
|
+
* the image when present and a seed-derived token gradient (plus optional
|
|
2068
|
+
* mark) when the entity has no art. Broken images degrade to the same
|
|
2069
|
+
* gradient through Image's fallback chain, so imageless grids still look
|
|
2070
|
+
* intentional.
|
|
2071
|
+
*/
|
|
2072
|
+
declare function CoverImage({ src, alt, aspect, seed, priority, sizes, fallback, mark, className, }: CoverImageProps): React.JSX.Element;
|
|
2073
|
+
declare namespace CoverImage {
|
|
2074
|
+
var displayName: string;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2035
2077
|
declare const sizeClasses$1: {
|
|
2036
2078
|
readonly xs: "text-xs";
|
|
2037
2079
|
readonly sm: "text-sm";
|
|
@@ -2125,6 +2167,18 @@ type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2125
2167
|
titleAs?: 'p' | 'h2' | 'h3' | 'h4';
|
|
2126
2168
|
/** Compact padding for use inside panels and table bodies. */
|
|
2127
2169
|
size?: 'sm' | 'md';
|
|
2170
|
+
/** Horizontal alignment of content and actions. Default 'center'. */
|
|
2171
|
+
align?: 'center' | 'start';
|
|
2172
|
+
/**
|
|
2173
|
+
* Surface treatment. 'panel' renders a tinted, solid-bordered surface for
|
|
2174
|
+
* content pages (typically paired with align="start"); 'plain' keeps the
|
|
2175
|
+
* default dashed outline. Default 'plain'.
|
|
2176
|
+
*/
|
|
2177
|
+
tone?: 'plain' | 'panel';
|
|
2178
|
+
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2179
|
+
linkComponent?: React.ElementType;
|
|
2180
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
2181
|
+
linkHrefProp?: 'href' | 'to';
|
|
2128
2182
|
};
|
|
2129
2183
|
/**
|
|
2130
2184
|
* Placeholder for empty collections, zero-result searches and unconfigured
|
|
@@ -2146,6 +2200,18 @@ declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
2146
2200
|
titleAs?: "p" | "h2" | "h3" | "h4";
|
|
2147
2201
|
/** Compact padding for use inside panels and table bodies. */
|
|
2148
2202
|
size?: "sm" | "md";
|
|
2203
|
+
/** Horizontal alignment of content and actions. Default 'center'. */
|
|
2204
|
+
align?: "center" | "start";
|
|
2205
|
+
/**
|
|
2206
|
+
* Surface treatment. 'panel' renders a tinted, solid-bordered surface for
|
|
2207
|
+
* content pages (typically paired with align="start"); 'plain' keeps the
|
|
2208
|
+
* default dashed outline. Default 'plain'.
|
|
2209
|
+
*/
|
|
2210
|
+
tone?: "plain" | "panel";
|
|
2211
|
+
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2212
|
+
linkComponent?: React.ElementType;
|
|
2213
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
2214
|
+
linkHrefProp?: "href" | "to";
|
|
2149
2215
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
2150
2216
|
|
|
2151
2217
|
type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -3014,6 +3080,14 @@ type StatBandProps = React.HTMLAttributes<HTMLDListElement> & {
|
|
|
3014
3080
|
size?: 'sm' | 'md' | 'lg';
|
|
3015
3081
|
/** Draw dividers between stats at sm and up. Default true. */
|
|
3016
3082
|
divided?: boolean;
|
|
3083
|
+
/**
|
|
3084
|
+
* Surface treatment. 'panel' renders a bordered strip of hairline-separated
|
|
3085
|
+
* cells with denser type for data pages; 'plain' is the marketing band.
|
|
3086
|
+
* Default 'plain'.
|
|
3087
|
+
*/
|
|
3088
|
+
variant?: 'plain' | 'panel';
|
|
3089
|
+
/** Extra classes for the value element (e.g. font-mono for tabular numerals). */
|
|
3090
|
+
valueClassName?: string;
|
|
3017
3091
|
};
|
|
3018
3092
|
/**
|
|
3019
3093
|
* Marketing stat band: a semantic description list of headline numbers with
|
|
@@ -3031,6 +3105,14 @@ declare const StatBand: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
3031
3105
|
size?: "sm" | "md" | "lg";
|
|
3032
3106
|
/** Draw dividers between stats at sm and up. Default true. */
|
|
3033
3107
|
divided?: boolean;
|
|
3108
|
+
/**
|
|
3109
|
+
* Surface treatment. 'panel' renders a bordered strip of hairline-separated
|
|
3110
|
+
* cells with denser type for data pages; 'plain' is the marketing band.
|
|
3111
|
+
* Default 'plain'.
|
|
3112
|
+
*/
|
|
3113
|
+
variant?: "plain" | "panel";
|
|
3114
|
+
/** Extra classes for the value element (e.g. font-mono for tabular numerals). */
|
|
3115
|
+
valueClassName?: string;
|
|
3034
3116
|
} & React.RefAttributes<HTMLDListElement>>;
|
|
3035
3117
|
|
|
3036
3118
|
type CTASectionTone = Extract<SectionTone, 'default' | 'muted' | 'brand' | 'inverse'>;
|
|
@@ -3795,6 +3877,13 @@ type SegmentedOption = {
|
|
|
3795
3877
|
/** Optional leading icon. */
|
|
3796
3878
|
icon?: React.ReactNode;
|
|
3797
3879
|
disabled?: boolean;
|
|
3880
|
+
/**
|
|
3881
|
+
* Destination URL. When set the segment renders as a link instead of a
|
|
3882
|
+
* button - use this for view switches that must survive refresh and work
|
|
3883
|
+
* without JavaScript. The active segment renders as a non-link
|
|
3884
|
+
* `aria-current="page"` marker.
|
|
3885
|
+
*/
|
|
3886
|
+
href?: string;
|
|
3798
3887
|
};
|
|
3799
3888
|
type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
3800
3889
|
/** Options rendered as segments. */
|
|
@@ -3811,12 +3900,22 @@ type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
3811
3900
|
size?: 'sm' | 'md' | 'lg';
|
|
3812
3901
|
/** Stretch segments to fill the container width. */
|
|
3813
3902
|
fullWidth?: boolean;
|
|
3903
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3904
|
+
linkComponent?: React.ElementType;
|
|
3905
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
3906
|
+
linkHrefProp?: 'href' | 'to';
|
|
3814
3907
|
};
|
|
3815
3908
|
/**
|
|
3816
3909
|
* Segmented control for switching a view or filter. Single-select uses radio
|
|
3817
3910
|
* semantics and arrow-key navigation; multiple-select uses pressed buttons.
|
|
3818
3911
|
* Use it for filters such as All / Investors / Advisors, not for tab panels
|
|
3819
3912
|
* (use Tabs when each segment owns a tabpanel).
|
|
3913
|
+
*
|
|
3914
|
+
* Give an option an `href` to render it as a real link - the pattern for
|
|
3915
|
+
* view switches that must survive refresh, work without JavaScript, and stay
|
|
3916
|
+
* cacheable. The active segment then renders as a non-link
|
|
3917
|
+
* `aria-current="page"` marker and link segments use normal tab navigation
|
|
3918
|
+
* instead of roving tabindex. Link mode is intended for single-select.
|
|
3820
3919
|
*/
|
|
3821
3920
|
declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
3822
3921
|
/** Options rendered as segments. */
|
|
@@ -3833,6 +3932,10 @@ declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLA
|
|
|
3833
3932
|
size?: "sm" | "md" | "lg";
|
|
3834
3933
|
/** Stretch segments to fill the container width. */
|
|
3835
3934
|
fullWidth?: boolean;
|
|
3935
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3936
|
+
linkComponent?: React.ElementType;
|
|
3937
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
3938
|
+
linkHrefProp?: "href" | "to";
|
|
3836
3939
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3837
3940
|
|
|
3838
3941
|
type RangeSliderProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> & {
|
|
@@ -4429,5 +4532,5 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4429
4532
|
};
|
|
4430
4533
|
} & React.RefAttributes<HTMLElement>>;
|
|
4431
4534
|
|
|
4432
|
-
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, 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, LoadMore, LogoCloud, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, 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 };
|
|
4433
|
-
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, 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, LoadMoreProps, LogoCloudProps, LogoItem, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, 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 };
|
|
4535
|
+
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, LoadMore, LogoCloud, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, 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 };
|
|
4536
|
+
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, 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, LoadMoreProps, LogoCloudProps, LogoItem, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, 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 };
|