@slipstream-ui/core 0.11.4 → 0.11.6
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 +100 -3
- package/dist/index.d.ts +100 -3
- package/dist/index.js +589 -441
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +484 -337
- 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 +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +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/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/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 +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +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
|
@@ -2017,6 +2017,8 @@ type ImageProps = {
|
|
|
2017
2017
|
className?: string;
|
|
2018
2018
|
/** Classes for the image when a consumer wants to keep them separate. */
|
|
2019
2019
|
imgClassName?: string;
|
|
2020
|
+
/** Responsive `sizes` hint for the browser's source selection. */
|
|
2021
|
+
sizes?: string;
|
|
2020
2022
|
style?: React.CSSProperties;
|
|
2021
2023
|
};
|
|
2022
2024
|
/**
|
|
@@ -2027,11 +2029,45 @@ type ImageProps = {
|
|
|
2027
2029
|
* intrinsic dimensions are always rendered and only the priority image is
|
|
2028
2030
|
* eager.
|
|
2029
2031
|
*/
|
|
2030
|
-
declare function Image({ src, alt, fallbackSrc, fallback, priority, width, height, className, imgClassName, style, }: ImageProps): React.JSX.Element;
|
|
2032
|
+
declare function Image({ src, alt, fallbackSrc, fallback, priority, width, height, className, imgClassName, sizes, style, }: ImageProps): React.JSX.Element;
|
|
2031
2033
|
declare namespace Image {
|
|
2032
2034
|
var displayName: string;
|
|
2033
2035
|
}
|
|
2034
2036
|
|
|
2037
|
+
type CoverImageProps = {
|
|
2038
|
+
/** Cover URL. When absent or broken, the seeded fallback renders instead. */
|
|
2039
|
+
src?: string | null;
|
|
2040
|
+
/** Required: describes the image for assistive tech. */
|
|
2041
|
+
alt: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
2044
|
+
* aspect-ratio value such as '16/9' or '4/3'.
|
|
2045
|
+
*/
|
|
2046
|
+
aspect?: 'video' | 'square' | 'wide' | string;
|
|
2047
|
+
/** Stable key selecting the fallback gradient (e.g. entity slug). */
|
|
2048
|
+
seed?: string;
|
|
2049
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
2050
|
+
priority?: boolean;
|
|
2051
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
2052
|
+
sizes?: string;
|
|
2053
|
+
/** Custom fallback content; defaults to the seed-derived gradient. */
|
|
2054
|
+
fallback?: React.ReactNode;
|
|
2055
|
+
/** Optional mark centered on the default gradient (icon, monogram). */
|
|
2056
|
+
mark?: React.ReactNode;
|
|
2057
|
+
className?: string;
|
|
2058
|
+
};
|
|
2059
|
+
/**
|
|
2060
|
+
* Media cover with a deterministic placeholder: a fixed-aspect box that shows
|
|
2061
|
+
* the image when present and a seed-derived token gradient (plus optional
|
|
2062
|
+
* mark) when the entity has no art. Broken images degrade to the same
|
|
2063
|
+
* gradient through Image's fallback chain, so imageless grids still look
|
|
2064
|
+
* intentional.
|
|
2065
|
+
*/
|
|
2066
|
+
declare function CoverImage({ src, alt, aspect, seed, priority, sizes, fallback, mark, className, }: CoverImageProps): React.JSX.Element;
|
|
2067
|
+
declare namespace CoverImage {
|
|
2068
|
+
var displayName: string;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2035
2071
|
declare const sizeClasses$1: {
|
|
2036
2072
|
readonly xs: "text-xs";
|
|
2037
2073
|
readonly sm: "text-sm";
|
|
@@ -2125,6 +2161,18 @@ type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2125
2161
|
titleAs?: 'p' | 'h2' | 'h3' | 'h4';
|
|
2126
2162
|
/** Compact padding for use inside panels and table bodies. */
|
|
2127
2163
|
size?: 'sm' | 'md';
|
|
2164
|
+
/** Horizontal alignment of content and actions. Default 'center'. */
|
|
2165
|
+
align?: 'center' | 'start';
|
|
2166
|
+
/**
|
|
2167
|
+
* Surface treatment. 'panel' renders a tinted, solid-bordered surface for
|
|
2168
|
+
* content pages (typically paired with align="start"); 'plain' keeps the
|
|
2169
|
+
* default dashed outline. Default 'plain'.
|
|
2170
|
+
*/
|
|
2171
|
+
tone?: 'plain' | 'panel';
|
|
2172
|
+
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2173
|
+
linkComponent?: React.ElementType;
|
|
2174
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
2175
|
+
linkHrefProp?: 'href' | 'to';
|
|
2128
2176
|
};
|
|
2129
2177
|
/**
|
|
2130
2178
|
* Placeholder for empty collections, zero-result searches and unconfigured
|
|
@@ -2146,6 +2194,18 @@ declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
2146
2194
|
titleAs?: "p" | "h2" | "h3" | "h4";
|
|
2147
2195
|
/** Compact padding for use inside panels and table bodies. */
|
|
2148
2196
|
size?: "sm" | "md";
|
|
2197
|
+
/** Horizontal alignment of content and actions. Default 'center'. */
|
|
2198
|
+
align?: "center" | "start";
|
|
2199
|
+
/**
|
|
2200
|
+
* Surface treatment. 'panel' renders a tinted, solid-bordered surface for
|
|
2201
|
+
* content pages (typically paired with align="start"); 'plain' keeps the
|
|
2202
|
+
* default dashed outline. Default 'plain'.
|
|
2203
|
+
*/
|
|
2204
|
+
tone?: "plain" | "panel";
|
|
2205
|
+
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2206
|
+
linkComponent?: React.ElementType;
|
|
2207
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
2208
|
+
linkHrefProp?: "href" | "to";
|
|
2149
2209
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
2150
2210
|
|
|
2151
2211
|
type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -3014,6 +3074,14 @@ type StatBandProps = React.HTMLAttributes<HTMLDListElement> & {
|
|
|
3014
3074
|
size?: 'sm' | 'md' | 'lg';
|
|
3015
3075
|
/** Draw dividers between stats at sm and up. Default true. */
|
|
3016
3076
|
divided?: boolean;
|
|
3077
|
+
/**
|
|
3078
|
+
* Surface treatment. 'panel' renders a bordered strip of hairline-separated
|
|
3079
|
+
* cells with denser type for data pages; 'plain' is the marketing band.
|
|
3080
|
+
* Default 'plain'.
|
|
3081
|
+
*/
|
|
3082
|
+
variant?: 'plain' | 'panel';
|
|
3083
|
+
/** Extra classes for the value element (e.g. font-mono for tabular numerals). */
|
|
3084
|
+
valueClassName?: string;
|
|
3017
3085
|
};
|
|
3018
3086
|
/**
|
|
3019
3087
|
* Marketing stat band: a semantic description list of headline numbers with
|
|
@@ -3031,6 +3099,14 @@ declare const StatBand: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
3031
3099
|
size?: "sm" | "md" | "lg";
|
|
3032
3100
|
/** Draw dividers between stats at sm and up. Default true. */
|
|
3033
3101
|
divided?: boolean;
|
|
3102
|
+
/**
|
|
3103
|
+
* Surface treatment. 'panel' renders a bordered strip of hairline-separated
|
|
3104
|
+
* cells with denser type for data pages; 'plain' is the marketing band.
|
|
3105
|
+
* Default 'plain'.
|
|
3106
|
+
*/
|
|
3107
|
+
variant?: "plain" | "panel";
|
|
3108
|
+
/** Extra classes for the value element (e.g. font-mono for tabular numerals). */
|
|
3109
|
+
valueClassName?: string;
|
|
3034
3110
|
} & React.RefAttributes<HTMLDListElement>>;
|
|
3035
3111
|
|
|
3036
3112
|
type CTASectionTone = Extract<SectionTone, 'default' | 'muted' | 'brand' | 'inverse'>;
|
|
@@ -3795,6 +3871,13 @@ type SegmentedOption = {
|
|
|
3795
3871
|
/** Optional leading icon. */
|
|
3796
3872
|
icon?: React.ReactNode;
|
|
3797
3873
|
disabled?: boolean;
|
|
3874
|
+
/**
|
|
3875
|
+
* Destination URL. When set the segment renders as a link instead of a
|
|
3876
|
+
* button - use this for view switches that must survive refresh and work
|
|
3877
|
+
* without JavaScript. The active segment renders as a non-link
|
|
3878
|
+
* `aria-current="page"` marker.
|
|
3879
|
+
*/
|
|
3880
|
+
href?: string;
|
|
3798
3881
|
};
|
|
3799
3882
|
type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
3800
3883
|
/** Options rendered as segments. */
|
|
@@ -3811,12 +3894,22 @@ type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
3811
3894
|
size?: 'sm' | 'md' | 'lg';
|
|
3812
3895
|
/** Stretch segments to fill the container width. */
|
|
3813
3896
|
fullWidth?: boolean;
|
|
3897
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3898
|
+
linkComponent?: React.ElementType;
|
|
3899
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
3900
|
+
linkHrefProp?: 'href' | 'to';
|
|
3814
3901
|
};
|
|
3815
3902
|
/**
|
|
3816
3903
|
* Segmented control for switching a view or filter. Single-select uses radio
|
|
3817
3904
|
* semantics and arrow-key navigation; multiple-select uses pressed buttons.
|
|
3818
3905
|
* Use it for filters such as All / Investors / Advisors, not for tab panels
|
|
3819
3906
|
* (use Tabs when each segment owns a tabpanel).
|
|
3907
|
+
*
|
|
3908
|
+
* Give an option an `href` to render it as a real link - the pattern for
|
|
3909
|
+
* view switches that must survive refresh, work without JavaScript, and stay
|
|
3910
|
+
* cacheable. The active segment then renders as a non-link
|
|
3911
|
+
* `aria-current="page"` marker and link segments use normal tab navigation
|
|
3912
|
+
* instead of roving tabindex. Link mode is intended for single-select.
|
|
3820
3913
|
*/
|
|
3821
3914
|
declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
3822
3915
|
/** Options rendered as segments. */
|
|
@@ -3833,6 +3926,10 @@ declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLA
|
|
|
3833
3926
|
size?: "sm" | "md" | "lg";
|
|
3834
3927
|
/** Stretch segments to fill the container width. */
|
|
3835
3928
|
fullWidth?: boolean;
|
|
3929
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3930
|
+
linkComponent?: React.ElementType;
|
|
3931
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
3932
|
+
linkHrefProp?: "href" | "to";
|
|
3836
3933
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3837
3934
|
|
|
3838
3935
|
type RangeSliderProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> & {
|
|
@@ -4429,5 +4526,5 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4429
4526
|
};
|
|
4430
4527
|
} & React.RefAttributes<HTMLElement>>;
|
|
4431
4528
|
|
|
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 };
|
|
4529
|
+
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 };
|
|
4530
|
+
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
|
@@ -2017,6 +2017,8 @@ type ImageProps = {
|
|
|
2017
2017
|
className?: string;
|
|
2018
2018
|
/** Classes for the image when a consumer wants to keep them separate. */
|
|
2019
2019
|
imgClassName?: string;
|
|
2020
|
+
/** Responsive `sizes` hint for the browser's source selection. */
|
|
2021
|
+
sizes?: string;
|
|
2020
2022
|
style?: React.CSSProperties;
|
|
2021
2023
|
};
|
|
2022
2024
|
/**
|
|
@@ -2027,11 +2029,45 @@ type ImageProps = {
|
|
|
2027
2029
|
* intrinsic dimensions are always rendered and only the priority image is
|
|
2028
2030
|
* eager.
|
|
2029
2031
|
*/
|
|
2030
|
-
declare function Image({ src, alt, fallbackSrc, fallback, priority, width, height, className, imgClassName, style, }: ImageProps): React.JSX.Element;
|
|
2032
|
+
declare function Image({ src, alt, fallbackSrc, fallback, priority, width, height, className, imgClassName, sizes, style, }: ImageProps): React.JSX.Element;
|
|
2031
2033
|
declare namespace Image {
|
|
2032
2034
|
var displayName: string;
|
|
2033
2035
|
}
|
|
2034
2036
|
|
|
2037
|
+
type CoverImageProps = {
|
|
2038
|
+
/** Cover URL. When absent or broken, the seeded fallback renders instead. */
|
|
2039
|
+
src?: string | null;
|
|
2040
|
+
/** Required: describes the image for assistive tech. */
|
|
2041
|
+
alt: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* Aspect ratio: 'video' (16:9), 'square' (1:1), 'wide' (2:1), or any CSS
|
|
2044
|
+
* aspect-ratio value such as '16/9' or '4/3'.
|
|
2045
|
+
*/
|
|
2046
|
+
aspect?: 'video' | 'square' | 'wide' | string;
|
|
2047
|
+
/** Stable key selecting the fallback gradient (e.g. entity slug). */
|
|
2048
|
+
seed?: string;
|
|
2049
|
+
/** Load eagerly and fetch at high priority for the LCP image. */
|
|
2050
|
+
priority?: boolean;
|
|
2051
|
+
/** Responsive `sizes` hint forwarded to the image. */
|
|
2052
|
+
sizes?: string;
|
|
2053
|
+
/** Custom fallback content; defaults to the seed-derived gradient. */
|
|
2054
|
+
fallback?: React.ReactNode;
|
|
2055
|
+
/** Optional mark centered on the default gradient (icon, monogram). */
|
|
2056
|
+
mark?: React.ReactNode;
|
|
2057
|
+
className?: string;
|
|
2058
|
+
};
|
|
2059
|
+
/**
|
|
2060
|
+
* Media cover with a deterministic placeholder: a fixed-aspect box that shows
|
|
2061
|
+
* the image when present and a seed-derived token gradient (plus optional
|
|
2062
|
+
* mark) when the entity has no art. Broken images degrade to the same
|
|
2063
|
+
* gradient through Image's fallback chain, so imageless grids still look
|
|
2064
|
+
* intentional.
|
|
2065
|
+
*/
|
|
2066
|
+
declare function CoverImage({ src, alt, aspect, seed, priority, sizes, fallback, mark, className, }: CoverImageProps): React.JSX.Element;
|
|
2067
|
+
declare namespace CoverImage {
|
|
2068
|
+
var displayName: string;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2035
2071
|
declare const sizeClasses$1: {
|
|
2036
2072
|
readonly xs: "text-xs";
|
|
2037
2073
|
readonly sm: "text-sm";
|
|
@@ -2125,6 +2161,18 @@ type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2125
2161
|
titleAs?: 'p' | 'h2' | 'h3' | 'h4';
|
|
2126
2162
|
/** Compact padding for use inside panels and table bodies. */
|
|
2127
2163
|
size?: 'sm' | 'md';
|
|
2164
|
+
/** Horizontal alignment of content and actions. Default 'center'. */
|
|
2165
|
+
align?: 'center' | 'start';
|
|
2166
|
+
/**
|
|
2167
|
+
* Surface treatment. 'panel' renders a tinted, solid-bordered surface for
|
|
2168
|
+
* content pages (typically paired with align="start"); 'plain' keeps the
|
|
2169
|
+
* default dashed outline. Default 'plain'.
|
|
2170
|
+
*/
|
|
2171
|
+
tone?: 'plain' | 'panel';
|
|
2172
|
+
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2173
|
+
linkComponent?: React.ElementType;
|
|
2174
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
2175
|
+
linkHrefProp?: 'href' | 'to';
|
|
2128
2176
|
};
|
|
2129
2177
|
/**
|
|
2130
2178
|
* Placeholder for empty collections, zero-result searches and unconfigured
|
|
@@ -2146,6 +2194,18 @@ declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
2146
2194
|
titleAs?: "p" | "h2" | "h3" | "h4";
|
|
2147
2195
|
/** Compact padding for use inside panels and table bodies. */
|
|
2148
2196
|
size?: "sm" | "md";
|
|
2197
|
+
/** Horizontal alignment of content and actions. Default 'center'. */
|
|
2198
|
+
align?: "center" | "start";
|
|
2199
|
+
/**
|
|
2200
|
+
* Surface treatment. 'panel' renders a tinted, solid-bordered surface for
|
|
2201
|
+
* content pages (typically paired with align="start"); 'plain' keeps the
|
|
2202
|
+
* default dashed outline. Default 'plain'.
|
|
2203
|
+
*/
|
|
2204
|
+
tone?: "plain" | "panel";
|
|
2205
|
+
/** Custom link element for action hrefs (Next Link, react-router Link). */
|
|
2206
|
+
linkComponent?: React.ElementType;
|
|
2207
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
2208
|
+
linkHrefProp?: "href" | "to";
|
|
2149
2209
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
2150
2210
|
|
|
2151
2211
|
type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -3014,6 +3074,14 @@ type StatBandProps = React.HTMLAttributes<HTMLDListElement> & {
|
|
|
3014
3074
|
size?: 'sm' | 'md' | 'lg';
|
|
3015
3075
|
/** Draw dividers between stats at sm and up. Default true. */
|
|
3016
3076
|
divided?: boolean;
|
|
3077
|
+
/**
|
|
3078
|
+
* Surface treatment. 'panel' renders a bordered strip of hairline-separated
|
|
3079
|
+
* cells with denser type for data pages; 'plain' is the marketing band.
|
|
3080
|
+
* Default 'plain'.
|
|
3081
|
+
*/
|
|
3082
|
+
variant?: 'plain' | 'panel';
|
|
3083
|
+
/** Extra classes for the value element (e.g. font-mono for tabular numerals). */
|
|
3084
|
+
valueClassName?: string;
|
|
3017
3085
|
};
|
|
3018
3086
|
/**
|
|
3019
3087
|
* Marketing stat band: a semantic description list of headline numbers with
|
|
@@ -3031,6 +3099,14 @@ declare const StatBand: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
3031
3099
|
size?: "sm" | "md" | "lg";
|
|
3032
3100
|
/** Draw dividers between stats at sm and up. Default true. */
|
|
3033
3101
|
divided?: boolean;
|
|
3102
|
+
/**
|
|
3103
|
+
* Surface treatment. 'panel' renders a bordered strip of hairline-separated
|
|
3104
|
+
* cells with denser type for data pages; 'plain' is the marketing band.
|
|
3105
|
+
* Default 'plain'.
|
|
3106
|
+
*/
|
|
3107
|
+
variant?: "plain" | "panel";
|
|
3108
|
+
/** Extra classes for the value element (e.g. font-mono for tabular numerals). */
|
|
3109
|
+
valueClassName?: string;
|
|
3034
3110
|
} & React.RefAttributes<HTMLDListElement>>;
|
|
3035
3111
|
|
|
3036
3112
|
type CTASectionTone = Extract<SectionTone, 'default' | 'muted' | 'brand' | 'inverse'>;
|
|
@@ -3795,6 +3871,13 @@ type SegmentedOption = {
|
|
|
3795
3871
|
/** Optional leading icon. */
|
|
3796
3872
|
icon?: React.ReactNode;
|
|
3797
3873
|
disabled?: boolean;
|
|
3874
|
+
/**
|
|
3875
|
+
* Destination URL. When set the segment renders as a link instead of a
|
|
3876
|
+
* button - use this for view switches that must survive refresh and work
|
|
3877
|
+
* without JavaScript. The active segment renders as a non-link
|
|
3878
|
+
* `aria-current="page"` marker.
|
|
3879
|
+
*/
|
|
3880
|
+
href?: string;
|
|
3798
3881
|
};
|
|
3799
3882
|
type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
3800
3883
|
/** Options rendered as segments. */
|
|
@@ -3811,12 +3894,22 @@ type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
3811
3894
|
size?: 'sm' | 'md' | 'lg';
|
|
3812
3895
|
/** Stretch segments to fill the container width. */
|
|
3813
3896
|
fullWidth?: boolean;
|
|
3897
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3898
|
+
linkComponent?: React.ElementType;
|
|
3899
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
3900
|
+
linkHrefProp?: 'href' | 'to';
|
|
3814
3901
|
};
|
|
3815
3902
|
/**
|
|
3816
3903
|
* Segmented control for switching a view or filter. Single-select uses radio
|
|
3817
3904
|
* semantics and arrow-key navigation; multiple-select uses pressed buttons.
|
|
3818
3905
|
* Use it for filters such as All / Investors / Advisors, not for tab panels
|
|
3819
3906
|
* (use Tabs when each segment owns a tabpanel).
|
|
3907
|
+
*
|
|
3908
|
+
* Give an option an `href` to render it as a real link - the pattern for
|
|
3909
|
+
* view switches that must survive refresh, work without JavaScript, and stay
|
|
3910
|
+
* cacheable. The active segment then renders as a non-link
|
|
3911
|
+
* `aria-current="page"` marker and link segments use normal tab navigation
|
|
3912
|
+
* instead of roving tabindex. Link mode is intended for single-select.
|
|
3820
3913
|
*/
|
|
3821
3914
|
declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
3822
3915
|
/** Options rendered as segments. */
|
|
@@ -3833,6 +3926,10 @@ declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLA
|
|
|
3833
3926
|
size?: "sm" | "md" | "lg";
|
|
3834
3927
|
/** Stretch segments to fill the container width. */
|
|
3835
3928
|
fullWidth?: boolean;
|
|
3929
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3930
|
+
linkComponent?: React.ElementType;
|
|
3931
|
+
/** Prop used to pass the destination to `linkComponent`. */
|
|
3932
|
+
linkHrefProp?: "href" | "to";
|
|
3836
3933
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3837
3934
|
|
|
3838
3935
|
type RangeSliderProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> & {
|
|
@@ -4429,5 +4526,5 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4429
4526
|
};
|
|
4430
4527
|
} & React.RefAttributes<HTMLElement>>;
|
|
4431
4528
|
|
|
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 };
|
|
4529
|
+
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 };
|
|
4530
|
+
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 };
|