@slipstream-ui/core 0.10.2 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +22 -8
- package/dist/index.d.ts +22 -8
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -4
- 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/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 +1 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +1 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +2 -2
- package/dist/manifests/logo-cloud.manifest.json +8 -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 +5 -5
- 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 +8 -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 +3 -3
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +1 -1
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +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 +1 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/load-more/LoadMore.d.ts +2 -2
- package/dist/src/components/load-more/LoadMore.js +1 -1
- package/dist/src/components/load-more/LoadMore.js.map +1 -1
- package/dist/src/components/load-more/LoadMore.mjs +1 -1
- package/dist/src/components/load-more/LoadMore.mjs.map +1 -1
- package/dist/src/components/logo-cloud/LogoCloud.d.ts +4 -0
- package/dist/src/components/logo-cloud/LogoCloud.js +2 -1
- package/dist/src/components/logo-cloud/LogoCloud.js.map +1 -1
- package/dist/src/components/logo-cloud/LogoCloud.mjs +2 -1
- package/dist/src/components/logo-cloud/LogoCloud.mjs.map +1 -1
- package/dist/src/components/menu/Menu.js +12 -0
- package/dist/src/components/menu/Menu.js.map +1 -1
- package/dist/src/components/menu/Menu.mjs +12 -0
- package/dist/src/components/menu/Menu.mjs.map +1 -1
- package/dist/src/components/page-header/PageHeader.d.ts +6 -4
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/process-steps/ProcessSteps.d.ts +6 -0
- package/dist/src/components/process-steps/ProcessSteps.js +3 -2
- package/dist/src/components/process-steps/ProcessSteps.js.map +1 -1
- package/dist/src/components/process-steps/ProcessSteps.mjs +3 -2
- package/dist/src/components/process-steps/ProcessSteps.mjs.map +1 -1
- package/dist/src/components/section-heading/SectionHeading.d.ts +4 -2
- package/dist/src/components/section-heading/SectionHeading.js.map +1 -1
- package/dist/src/components/section-heading/SectionHeading.mjs.map +1 -1
- package/package.json +6 -4
- package/src/components/grid/Grid.test.tsx +3 -1
- package/src/components/input/Input.ssr.test.tsx +1 -1
- package/src/components/load-more/LoadMore.tsx +2 -2
- package/src/components/logo-cloud/LogoCloud.tsx +4 -1
- package/src/components/menu/Menu.test.tsx +15 -0
- package/src/components/menu/Menu.tsx +19 -0
- package/src/components/page-header/PageHeader.test.tsx +16 -0
- package/src/components/page-header/PageHeader.tsx +3 -2
- package/src/components/process-steps/ProcessSteps.tsx +6 -2
- package/src/components/section/Section.test.tsx +1 -1
- package/src/components/section-heading/SectionHeading.test.tsx +16 -0
- package/src/components/section-heading/SectionHeading.tsx +2 -1
- 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/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 +1 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +1 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +2 -2
- package/src/manifests/logo-cloud.manifest.json +8 -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 +5 -5
- 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 +8 -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 +3 -3
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +1 -1
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +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 +1 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2118,9 +2118,10 @@ declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
2118
2118
|
|
|
2119
2119
|
type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2120
2120
|
title: string;
|
|
2121
|
-
|
|
2121
|
+
/** Supporting summary under the title; accepts links and inline markup. */
|
|
2122
|
+
description?: React.ReactNode;
|
|
2122
2123
|
/** Alias for `description` (migration-friendly). */
|
|
2123
|
-
subtitle?:
|
|
2124
|
+
subtitle?: React.ReactNode;
|
|
2124
2125
|
/** Breadcrumbs/eyebrow above the title. */
|
|
2125
2126
|
breadcrumbs?: React.ReactNode;
|
|
2126
2127
|
/** Right-aligned actions (buttons, menus). */
|
|
@@ -2147,9 +2148,10 @@ type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2147
2148
|
*/
|
|
2148
2149
|
declare const PageHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
2149
2150
|
title: string;
|
|
2150
|
-
|
|
2151
|
+
/** Supporting summary under the title; accepts links and inline markup. */
|
|
2152
|
+
description?: React.ReactNode;
|
|
2151
2153
|
/** Alias for `description` (migration-friendly). */
|
|
2152
|
-
subtitle?:
|
|
2154
|
+
subtitle?: React.ReactNode;
|
|
2153
2155
|
/** Breadcrumbs/eyebrow above the title. */
|
|
2154
2156
|
breadcrumbs?: React.ReactNode;
|
|
2155
2157
|
/** Right-aligned actions (buttons, menus). */
|
|
@@ -2198,7 +2200,8 @@ declare function documentHead({ title, description, canonical, noindex, }: Docum
|
|
|
2198
2200
|
|
|
2199
2201
|
type SectionHeadingProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2200
2202
|
title: string;
|
|
2201
|
-
|
|
2203
|
+
/** Supporting copy under the title; accepts links and inline markup. */
|
|
2204
|
+
description?: React.ReactNode;
|
|
2202
2205
|
/** Kicker above the title (category, step, overline). */
|
|
2203
2206
|
eyebrow?: React.ReactNode;
|
|
2204
2207
|
/** Right-aligned actions (link to all, buttons). */
|
|
@@ -2221,7 +2224,8 @@ type SectionHeadingProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2221
2224
|
*/
|
|
2222
2225
|
declare const SectionHeading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
2223
2226
|
title: string;
|
|
2224
|
-
|
|
2227
|
+
/** Supporting copy under the title; accepts links and inline markup. */
|
|
2228
|
+
description?: React.ReactNode;
|
|
2225
2229
|
/** Kicker above the title (category, step, overline). */
|
|
2226
2230
|
eyebrow?: React.ReactNode;
|
|
2227
2231
|
/** Right-aligned actions (link to all, buttons). */
|
|
@@ -3114,6 +3118,8 @@ type LogoCloudProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3114
3118
|
align?: 'left' | 'center';
|
|
3115
3119
|
/** Custom link element for routers. */
|
|
3116
3120
|
linkComponent?: React.ElementType;
|
|
3121
|
+
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3122
|
+
linkHrefProp?: 'href' | 'to';
|
|
3117
3123
|
};
|
|
3118
3124
|
/**
|
|
3119
3125
|
* Trust strip for member, customer or partner logos. Logos are decorative
|
|
@@ -3135,6 +3141,8 @@ declare const LogoCloud: React.ForwardRefExoticComponent<React.HTMLAttributes<HT
|
|
|
3135
3141
|
align?: "left" | "center";
|
|
3136
3142
|
/** Custom link element for routers. */
|
|
3137
3143
|
linkComponent?: React.ElementType;
|
|
3144
|
+
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3145
|
+
linkHrefProp?: "href" | "to";
|
|
3138
3146
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3139
3147
|
|
|
3140
3148
|
type FeatureItem = {
|
|
@@ -3272,6 +3280,9 @@ type ProcessStepsProps = React.HTMLAttributes<HTMLOListElement> & {
|
|
|
3272
3280
|
numbered?: boolean;
|
|
3273
3281
|
/** Content alignment. Default 'left'. */
|
|
3274
3282
|
align?: 'left' | 'center';
|
|
3283
|
+
/** Heading level for step titles (h2-h4). Default 3 — pick the level that
|
|
3284
|
+
* continues your page's outline without skipping a rank. */
|
|
3285
|
+
headingLevel?: 2 | 3 | 4;
|
|
3275
3286
|
};
|
|
3276
3287
|
/**
|
|
3277
3288
|
* Ordered process or onboarding steps. Numbers are derived from the list
|
|
@@ -3287,6 +3298,9 @@ declare const ProcessSteps: React.ForwardRefExoticComponent<React.HTMLAttributes
|
|
|
3287
3298
|
numbered?: boolean;
|
|
3288
3299
|
/** Content alignment. Default 'left'. */
|
|
3289
3300
|
align?: "left" | "center";
|
|
3301
|
+
/** Heading level for step titles (h2-h4). Default 3 — pick the level that
|
|
3302
|
+
* continues your page's outline without skipping a rank. */
|
|
3303
|
+
headingLevel?: 2 | 3 | 4;
|
|
3290
3304
|
} & React.RefAttributes<HTMLOListElement>>;
|
|
3291
3305
|
|
|
3292
3306
|
type ArticleCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
@@ -3697,7 +3711,7 @@ type LoadMoreProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3697
3711
|
loading?: boolean;
|
|
3698
3712
|
/** Button label. Default "Load more". */
|
|
3699
3713
|
loadLabel?: string;
|
|
3700
|
-
/** Loading label. Default "Loading
|
|
3714
|
+
/** Loading label. Default "Loading…". */
|
|
3701
3715
|
loadingLabel?: string;
|
|
3702
3716
|
/** End-of-list message. Default "You're all caught up." */
|
|
3703
3717
|
endLabel?: string;
|
|
@@ -3716,7 +3730,7 @@ declare const LoadMore: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
3716
3730
|
loading?: boolean;
|
|
3717
3731
|
/** Button label. Default "Load more". */
|
|
3718
3732
|
loadLabel?: string;
|
|
3719
|
-
/** Loading label. Default "Loading
|
|
3733
|
+
/** Loading label. Default "Loading…". */
|
|
3720
3734
|
loadingLabel?: string;
|
|
3721
3735
|
/** End-of-list message. Default "You're all caught up." */
|
|
3722
3736
|
endLabel?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2118,9 +2118,10 @@ declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
2118
2118
|
|
|
2119
2119
|
type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2120
2120
|
title: string;
|
|
2121
|
-
|
|
2121
|
+
/** Supporting summary under the title; accepts links and inline markup. */
|
|
2122
|
+
description?: React.ReactNode;
|
|
2122
2123
|
/** Alias for `description` (migration-friendly). */
|
|
2123
|
-
subtitle?:
|
|
2124
|
+
subtitle?: React.ReactNode;
|
|
2124
2125
|
/** Breadcrumbs/eyebrow above the title. */
|
|
2125
2126
|
breadcrumbs?: React.ReactNode;
|
|
2126
2127
|
/** Right-aligned actions (buttons, menus). */
|
|
@@ -2147,9 +2148,10 @@ type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2147
2148
|
*/
|
|
2148
2149
|
declare const PageHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
2149
2150
|
title: string;
|
|
2150
|
-
|
|
2151
|
+
/** Supporting summary under the title; accepts links and inline markup. */
|
|
2152
|
+
description?: React.ReactNode;
|
|
2151
2153
|
/** Alias for `description` (migration-friendly). */
|
|
2152
|
-
subtitle?:
|
|
2154
|
+
subtitle?: React.ReactNode;
|
|
2153
2155
|
/** Breadcrumbs/eyebrow above the title. */
|
|
2154
2156
|
breadcrumbs?: React.ReactNode;
|
|
2155
2157
|
/** Right-aligned actions (buttons, menus). */
|
|
@@ -2198,7 +2200,8 @@ declare function documentHead({ title, description, canonical, noindex, }: Docum
|
|
|
2198
2200
|
|
|
2199
2201
|
type SectionHeadingProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2200
2202
|
title: string;
|
|
2201
|
-
|
|
2203
|
+
/** Supporting copy under the title; accepts links and inline markup. */
|
|
2204
|
+
description?: React.ReactNode;
|
|
2202
2205
|
/** Kicker above the title (category, step, overline). */
|
|
2203
2206
|
eyebrow?: React.ReactNode;
|
|
2204
2207
|
/** Right-aligned actions (link to all, buttons). */
|
|
@@ -2221,7 +2224,8 @@ type SectionHeadingProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2221
2224
|
*/
|
|
2222
2225
|
declare const SectionHeading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
2223
2226
|
title: string;
|
|
2224
|
-
|
|
2227
|
+
/** Supporting copy under the title; accepts links and inline markup. */
|
|
2228
|
+
description?: React.ReactNode;
|
|
2225
2229
|
/** Kicker above the title (category, step, overline). */
|
|
2226
2230
|
eyebrow?: React.ReactNode;
|
|
2227
2231
|
/** Right-aligned actions (link to all, buttons). */
|
|
@@ -3114,6 +3118,8 @@ type LogoCloudProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3114
3118
|
align?: 'left' | 'center';
|
|
3115
3119
|
/** Custom link element for routers. */
|
|
3116
3120
|
linkComponent?: React.ElementType;
|
|
3121
|
+
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3122
|
+
linkHrefProp?: 'href' | 'to';
|
|
3117
3123
|
};
|
|
3118
3124
|
/**
|
|
3119
3125
|
* Trust strip for member, customer or partner logos. Logos are decorative
|
|
@@ -3135,6 +3141,8 @@ declare const LogoCloud: React.ForwardRefExoticComponent<React.HTMLAttributes<HT
|
|
|
3135
3141
|
align?: "left" | "center";
|
|
3136
3142
|
/** Custom link element for routers. */
|
|
3137
3143
|
linkComponent?: React.ElementType;
|
|
3144
|
+
/** Prop used to pass the destination to linkComponent ('to' for react-router). */
|
|
3145
|
+
linkHrefProp?: "href" | "to";
|
|
3138
3146
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
3139
3147
|
|
|
3140
3148
|
type FeatureItem = {
|
|
@@ -3272,6 +3280,9 @@ type ProcessStepsProps = React.HTMLAttributes<HTMLOListElement> & {
|
|
|
3272
3280
|
numbered?: boolean;
|
|
3273
3281
|
/** Content alignment. Default 'left'. */
|
|
3274
3282
|
align?: 'left' | 'center';
|
|
3283
|
+
/** Heading level for step titles (h2-h4). Default 3 — pick the level that
|
|
3284
|
+
* continues your page's outline without skipping a rank. */
|
|
3285
|
+
headingLevel?: 2 | 3 | 4;
|
|
3275
3286
|
};
|
|
3276
3287
|
/**
|
|
3277
3288
|
* Ordered process or onboarding steps. Numbers are derived from the list
|
|
@@ -3287,6 +3298,9 @@ declare const ProcessSteps: React.ForwardRefExoticComponent<React.HTMLAttributes
|
|
|
3287
3298
|
numbered?: boolean;
|
|
3288
3299
|
/** Content alignment. Default 'left'. */
|
|
3289
3300
|
align?: "left" | "center";
|
|
3301
|
+
/** Heading level for step titles (h2-h4). Default 3 — pick the level that
|
|
3302
|
+
* continues your page's outline without skipping a rank. */
|
|
3303
|
+
headingLevel?: 2 | 3 | 4;
|
|
3290
3304
|
} & React.RefAttributes<HTMLOListElement>>;
|
|
3291
3305
|
|
|
3292
3306
|
type ArticleCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
@@ -3697,7 +3711,7 @@ type LoadMoreProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
3697
3711
|
loading?: boolean;
|
|
3698
3712
|
/** Button label. Default "Load more". */
|
|
3699
3713
|
loadLabel?: string;
|
|
3700
|
-
/** Loading label. Default "Loading
|
|
3714
|
+
/** Loading label. Default "Loading…". */
|
|
3701
3715
|
loadingLabel?: string;
|
|
3702
3716
|
/** End-of-list message. Default "You're all caught up." */
|
|
3703
3717
|
endLabel?: string;
|
|
@@ -3716,7 +3730,7 @@ declare const LoadMore: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
3716
3730
|
loading?: boolean;
|
|
3717
3731
|
/** Button label. Default "Load more". */
|
|
3718
3732
|
loadLabel?: string;
|
|
3719
|
-
/** Loading label. Default "Loading
|
|
3733
|
+
/** Loading label. Default "Loading…". */
|
|
3720
3734
|
loadingLabel?: string;
|
|
3721
3735
|
/** End-of-list message. Default "You're all caught up." */
|
|
3722
3736
|
endLabel?: string;
|
package/dist/index.js
CHANGED
|
@@ -6735,6 +6735,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6735
6735
|
size = "md",
|
|
6736
6736
|
align = "center",
|
|
6737
6737
|
linkComponent,
|
|
6738
|
+
linkHrefProp = "href",
|
|
6738
6739
|
className,
|
|
6739
6740
|
...props
|
|
6740
6741
|
}, ref) {
|
|
@@ -6763,7 +6764,7 @@ var LogoCloud = React76.forwardRef(function LogoCloud2({
|
|
|
6763
6764
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("li", { className: cn("min-w-0", align === "center" ? "justify-self-center" : "justify-self-start"), children: item.href ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6764
6765
|
Link3,
|
|
6765
6766
|
{
|
|
6766
|
-
href: item.href,
|
|
6767
|
+
...linkHrefProp === "to" ? { to: item.href } : { href: item.href },
|
|
6767
6768
|
className: "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
6768
6769
|
children: content
|
|
6769
6770
|
}
|
|
@@ -6885,7 +6886,8 @@ var columnClasses4 = {
|
|
|
6885
6886
|
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
6886
6887
|
4: "sm:grid-cols-2 lg:grid-cols-4"
|
|
6887
6888
|
};
|
|
6888
|
-
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", className, ...props }, ref) {
|
|
6889
|
+
var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns = 3, numbered = true, align = "left", headingLevel = 3, className, ...props }, ref) {
|
|
6890
|
+
const HeadingTag = { 2: "h2", 3: "h3", 4: "h4" }[headingLevel];
|
|
6889
6891
|
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("ol", { ref, className: cn("grid gap-8", columnClasses4[columns], className), ...props, children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
6890
6892
|
"li",
|
|
6891
6893
|
{
|
|
@@ -6893,7 +6895,7 @@ var ProcessSteps = React80.forwardRef(function ProcessSteps2({ steps, columns =
|
|
|
6893
6895
|
children: [
|
|
6894
6896
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary-ink [&_svg]:size-5", children: step.icon ?? (numbered ? String(index + 1).padStart(2, "0") : null) }),
|
|
6895
6897
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "min-w-0", children: [
|
|
6896
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
6898
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(HeadingTag, { className: "text-base font-semibold tracking-tight", children: step.title }),
|
|
6897
6899
|
step.description && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: step.description })
|
|
6898
6900
|
] })
|
|
6899
6901
|
]
|
|
@@ -7311,7 +7313,7 @@ var LoadMore = React89.forwardRef(function LoadMore2({
|
|
|
7311
7313
|
onLoadMore,
|
|
7312
7314
|
loading = false,
|
|
7313
7315
|
loadLabel = "Load more",
|
|
7314
|
-
loadingLabel = "Loading
|
|
7316
|
+
loadingLabel = "Loading\u2026",
|
|
7315
7317
|
endLabel = "You're all caught up.",
|
|
7316
7318
|
className,
|
|
7317
7319
|
...props
|
|
@@ -8116,6 +8118,18 @@ var MenuContent = React97.forwardRef(
|
|
|
8116
8118
|
event.preventDefault();
|
|
8117
8119
|
setActiveIndex(items.length - 1);
|
|
8118
8120
|
items[items.length - 1]?.focus();
|
|
8121
|
+
} else if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {
|
|
8122
|
+
const char = event.key.toLowerCase();
|
|
8123
|
+
for (let i = 1; i <= items.length; i++) {
|
|
8124
|
+
const next = (activeIndex + i + items.length) % items.length;
|
|
8125
|
+
const label = items[next]?.textContent?.trim().toLowerCase() ?? "";
|
|
8126
|
+
if (label.startsWith(char)) {
|
|
8127
|
+
event.preventDefault();
|
|
8128
|
+
setActiveIndex(next);
|
|
8129
|
+
items[next]?.focus();
|
|
8130
|
+
break;
|
|
8131
|
+
}
|
|
8132
|
+
}
|
|
8119
8133
|
}
|
|
8120
8134
|
};
|
|
8121
8135
|
if (!open || !pos || typeof document === "undefined") return null;
|