@bison-lab/ui 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +238 -22
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +362 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -114,10 +114,13 @@ interface BisonProviderProps {
|
|
|
114
114
|
/** Density preset. Defaults to "default" */
|
|
115
115
|
density?: DensityPreset;
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
117
|
+
* How dark mode is toggled on the root element. `"data-theme"` writes the
|
|
118
|
+
* dark palette under `[data-theme="dark"]`, which is what `ThemeProvider`
|
|
119
|
+
* sets, the Tailwind preset's `dark:` variant reads, and the CLI's
|
|
120
|
+
* `bison-theme.css` uses. `"class"` writes it under `.dark` instead.
|
|
121
|
+
* Defaults to `"data-theme"`. It defaulted to `"class"` before BIS-57,
|
|
122
|
+
* when the preset's `dark:` utilities and the provider's palette flipped
|
|
123
|
+
* on different signals.
|
|
121
124
|
*/
|
|
122
125
|
attribute?: "class" | "data-theme";
|
|
123
126
|
/** Default theme mode. Defaults to "system" */
|
|
@@ -1405,11 +1408,11 @@ declare const PaginationEllipsis: {
|
|
|
1405
1408
|
//#region src/components/command.d.ts
|
|
1406
1409
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
1407
1410
|
children?: React$1.ReactNode;
|
|
1408
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1411
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1409
1412
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
1410
1413
|
} & {
|
|
1411
1414
|
asChild?: boolean;
|
|
1412
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1415
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1413
1416
|
label?: string;
|
|
1414
1417
|
shouldFilter?: boolean;
|
|
1415
1418
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -1429,51 +1432,51 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
|
|
|
1429
1432
|
ref?: React$1.Ref<HTMLInputElement>;
|
|
1430
1433
|
} & {
|
|
1431
1434
|
asChild?: boolean;
|
|
1432
|
-
}, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "
|
|
1435
|
+
}, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
1433
1436
|
value?: string;
|
|
1434
1437
|
onValueChange?: (search: string) => void;
|
|
1435
1438
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
1436
1439
|
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
1437
1440
|
children?: React$1.ReactNode;
|
|
1438
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1441
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1439
1442
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
1440
1443
|
} & {
|
|
1441
1444
|
asChild?: boolean;
|
|
1442
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1445
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1443
1446
|
label?: string;
|
|
1444
1447
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1445
1448
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
1446
1449
|
children?: React$1.ReactNode;
|
|
1447
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1450
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1448
1451
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
1449
1452
|
} & {
|
|
1450
1453
|
asChild?: boolean;
|
|
1451
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1454
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1452
1455
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
1453
1456
|
children?: React$1.ReactNode;
|
|
1454
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1457
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1455
1458
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
1456
1459
|
} & {
|
|
1457
1460
|
asChild?: boolean;
|
|
1458
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1461
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
1459
1462
|
heading?: React$1.ReactNode;
|
|
1460
1463
|
value?: string;
|
|
1461
1464
|
forceMount?: boolean;
|
|
1462
1465
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1463
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1466
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1464
1467
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
1465
1468
|
} & {
|
|
1466
1469
|
asChild?: boolean;
|
|
1467
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1470
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1468
1471
|
alwaysRender?: boolean;
|
|
1469
1472
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1470
1473
|
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
1471
1474
|
children?: React$1.ReactNode;
|
|
1472
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1475
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
1473
1476
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
1474
1477
|
} & {
|
|
1475
1478
|
asChild?: boolean;
|
|
1476
|
-
}, keyof React$1.HTMLAttributes<HTMLDivElement
|
|
1479
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
1477
1480
|
disabled?: boolean;
|
|
1478
1481
|
onSelect?: (value: string) => void;
|
|
1479
1482
|
value?: string;
|
|
@@ -1622,7 +1625,7 @@ declare function SidebarMenuItem({
|
|
|
1622
1625
|
}: React$1.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
|
|
1623
1626
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1624
1627
|
variant?: "default" | "outline" | null | undefined;
|
|
1625
|
-
size?: "
|
|
1628
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1626
1629
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
1627
1630
|
declare function SidebarMenuButton({
|
|
1628
1631
|
asChild,
|
|
@@ -1963,16 +1966,31 @@ declare function HeaderBlock({
|
|
|
1963
1966
|
className
|
|
1964
1967
|
}: HeaderBlockProps): react_jsx_runtime0.JSX.Element;
|
|
1965
1968
|
//#endregion
|
|
1966
|
-
//#region src/
|
|
1967
|
-
interface
|
|
1969
|
+
//#region src/lib/render-link.d.ts
|
|
1970
|
+
interface RenderLinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1968
1971
|
href: string;
|
|
1969
1972
|
children: React$1.ReactNode;
|
|
1970
1973
|
}
|
|
1974
|
+
/**
|
|
1975
|
+
* Renders one link. A block that emits anchors takes this so a consumer can
|
|
1976
|
+
* hand every destination to a router — Next's `<Link>`, a TanStack `<Link>` —
|
|
1977
|
+
* instead of the plain `<a>` used by default. `target` and `rel` arrive
|
|
1978
|
+
* already set for a new-tab link; the renderer only has to spread them.
|
|
1979
|
+
*/
|
|
1980
|
+
type RenderLink = (props: RenderLinkProps) => React$1.ReactNode;
|
|
1981
|
+
/** The default: a plain anchor. */
|
|
1982
|
+
declare const renderPlainLink: RenderLink;
|
|
1983
|
+
/** `target` and `rel` together, or neither: a bare `target` is a tabnabbing hole. */
|
|
1984
|
+
declare function newTabAttributes(newTab: boolean | undefined): Pick<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "rel">;
|
|
1985
|
+
//#endregion
|
|
1986
|
+
//#region src/blocks/layout/floating-nav-block.d.ts
|
|
1987
|
+
/** The props `renderLink` receives. The same shape every block uses. */
|
|
1988
|
+
type FloatingNavLinkProps = RenderLinkProps;
|
|
1971
1989
|
/**
|
|
1972
1990
|
* Renders one link. Supply it to hand every destination to a router — Next's
|
|
1973
1991
|
* `<Link>`, a TanStack `<Link>` — instead of the plain `<a>` used by default.
|
|
1974
1992
|
*/
|
|
1975
|
-
type FloatingNavRenderLink =
|
|
1993
|
+
type FloatingNavRenderLink = RenderLink;
|
|
1976
1994
|
interface FloatingNavSubItem {
|
|
1977
1995
|
/** Link label shown in the panel. */
|
|
1978
1996
|
label: React$1.ReactNode;
|
|
@@ -2006,6 +2024,12 @@ interface FloatingNavBlockProps extends Omit<React$1.HTMLAttributes<HTMLElement>
|
|
|
2006
2024
|
actions?: React$1.ReactNode;
|
|
2007
2025
|
/** Render every link through a router component instead of a plain `<a>`. */
|
|
2008
2026
|
renderLink?: FloatingNavRenderLink;
|
|
2027
|
+
/**
|
|
2028
|
+
* Holds the named item's panel open, by its `label`, with no hover or click.
|
|
2029
|
+
* A CMS live preview uses it to show the panel being edited; nothing else
|
|
2030
|
+
* should, because a panel that will not close is a broken menu.
|
|
2031
|
+
*/
|
|
2032
|
+
openItem?: string;
|
|
2009
2033
|
/** Slide the bar away when the page scrolls down (default: `true`). */
|
|
2010
2034
|
hideOnScroll?: boolean;
|
|
2011
2035
|
/** Pixels scrolled before hiding may start (default: 80). */
|
|
@@ -2015,6 +2039,13 @@ interface FloatingNavBlockProps extends Omit<React$1.HTMLAttributes<HTMLElement>
|
|
|
2015
2039
|
* `true` uses the shared, animated viewport centered under the bar.
|
|
2016
2040
|
*/
|
|
2017
2041
|
viewport?: boolean;
|
|
2042
|
+
/**
|
|
2043
|
+
* Where the bar swaps its desktop links for the drawer button (default:
|
|
2044
|
+
* `"md"`). A bar carrying `MegaMenuPanel` content must say `"lg"`: the
|
|
2045
|
+
* panel flattens below `lg`, and between the two breakpoints a desktop
|
|
2046
|
+
* dropdown would open onto the flat mobile list.
|
|
2047
|
+
*/
|
|
2048
|
+
breakpoint?: "md" | "lg";
|
|
2018
2049
|
/** Accessible name for the `<nav>` (default: `"Main"`). */
|
|
2019
2050
|
navLabel?: string;
|
|
2020
2051
|
/** Accessible name for the mobile menu button (default: `"Toggle menu"`). */
|
|
@@ -2026,6 +2057,114 @@ interface FloatingNavBlockProps extends Omit<React$1.HTMLAttributes<HTMLElement>
|
|
|
2026
2057
|
}
|
|
2027
2058
|
declare const FloatingNavBlock: React$1.ForwardRefExoticComponent<FloatingNavBlockProps & React$1.RefAttributes<HTMLElement>>;
|
|
2028
2059
|
//#endregion
|
|
2060
|
+
//#region src/blocks/layout/mega-menu-panel.d.ts
|
|
2061
|
+
/** A column's share of the row. 33 and 66 are real thirds, so 33+33+33 fills it. */
|
|
2062
|
+
type MegaMenuWidth = 25 | 33 | 50 | 66 | 75 | 100;
|
|
2063
|
+
/**
|
|
2064
|
+
* The caps a panel can take: 22rem, 42rem, 48rem. There is no "full": a panel
|
|
2065
|
+
* anchors under its own trigger, so it cannot span the bar, and capped at the
|
|
2066
|
+
* room a trigger has it would only equal `wide`.
|
|
2067
|
+
*/
|
|
2068
|
+
type MegaMenuMaxWidth = "narrow" | "standard" | "wide";
|
|
2069
|
+
interface MegaMenuLink {
|
|
2070
|
+
label: string;
|
|
2071
|
+
href: string;
|
|
2072
|
+
/** Supporting line under the label. */
|
|
2073
|
+
description?: string;
|
|
2074
|
+
/** Key into `variants`; only a featured link reads it. */
|
|
2075
|
+
variant?: string;
|
|
2076
|
+
/** Key into `icons`; only a list link reads it. */
|
|
2077
|
+
icon?: string;
|
|
2078
|
+
newTab?: boolean;
|
|
2079
|
+
}
|
|
2080
|
+
interface MegaMenuSection {
|
|
2081
|
+
/** Small heading above the group. The eyebrow belongs to the section, never to a link. */
|
|
2082
|
+
eyebrow?: string;
|
|
2083
|
+
/** `featured` gives each link a chip and a larger title; `list` (default) is a plain rail. */
|
|
2084
|
+
display?: "featured" | "list";
|
|
2085
|
+
/** Below `lg` the panel flattens; descriptions are dropped unless this is `false`. */
|
|
2086
|
+
hideDescriptionsOnMobile?: boolean;
|
|
2087
|
+
links: MegaMenuLink[];
|
|
2088
|
+
}
|
|
2089
|
+
interface MegaMenuColumn {
|
|
2090
|
+
/** Percent token. Ignored when `customWidth` is set. Defaults to 100. */
|
|
2091
|
+
width?: MegaMenuWidth;
|
|
2092
|
+
/** A CSS track size used verbatim: `13rem`, `1fr`, `minmax(0, 1fr)`. */
|
|
2093
|
+
customWidth?: string;
|
|
2094
|
+
/** Draw a line on the left of this column. */
|
|
2095
|
+
divider?: boolean;
|
|
2096
|
+
sections: MegaMenuSection[];
|
|
2097
|
+
}
|
|
2098
|
+
interface MegaMenuFooterLink {
|
|
2099
|
+
label: string;
|
|
2100
|
+
href: string;
|
|
2101
|
+
newTab?: boolean;
|
|
2102
|
+
}
|
|
2103
|
+
interface MegaMenuFooter {
|
|
2104
|
+
/** The section's own landing page. A trigger is a button, so without this it is unreachable from the bar. */
|
|
2105
|
+
overview?: MegaMenuFooterLink;
|
|
2106
|
+
/** The call to action, on the `Button` primitive. */
|
|
2107
|
+
cta?: MegaMenuFooterLink;
|
|
2108
|
+
}
|
|
2109
|
+
interface MegaMenuPanelData {
|
|
2110
|
+
/** A token, or a custom rem width such as `"30rem"`. Defaults to `standard`. */
|
|
2111
|
+
maxWidth?: MegaMenuMaxWidth | `${number}rem`;
|
|
2112
|
+
columns: MegaMenuColumn[];
|
|
2113
|
+
/** No strip renders when both links are absent. */
|
|
2114
|
+
footer?: MegaMenuFooter;
|
|
2115
|
+
}
|
|
2116
|
+
interface MegaMenuItem {
|
|
2117
|
+
/** Label on the bar. Doubles as the React key, so keep it unique. */
|
|
2118
|
+
label: string;
|
|
2119
|
+
/** The landing page. Optional: a trigger with no landing page is allowed. */
|
|
2120
|
+
href?: string;
|
|
2121
|
+
/** Its presence turns the item into a mega-menu trigger. */
|
|
2122
|
+
panel?: MegaMenuPanelData;
|
|
2123
|
+
}
|
|
2124
|
+
interface MegaMenu {
|
|
2125
|
+
items: MegaMenuItem[];
|
|
2126
|
+
}
|
|
2127
|
+
/** How a featured link is dressed. The consuming site decides what "featured" looks like. */
|
|
2128
|
+
interface MegaMenuVariant {
|
|
2129
|
+
/** Classes for the box around the icon. */
|
|
2130
|
+
chip?: string;
|
|
2131
|
+
/** Classes added to the title, typically a `group-hover:` colour. */
|
|
2132
|
+
title?: string;
|
|
2133
|
+
icon?: React$1.ReactNode;
|
|
2134
|
+
}
|
|
2135
|
+
type MegaMenuVariants = Record<string, MegaMenuVariant>;
|
|
2136
|
+
type MegaMenuIcons = Record<string, React$1.ReactNode>;
|
|
2137
|
+
interface MegaMenuPanelProps extends MegaMenuPanelData, Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
2138
|
+
variants?: MegaMenuVariants;
|
|
2139
|
+
icons?: MegaMenuIcons;
|
|
2140
|
+
/** Render every link through a router component instead of a plain `<a>`. */
|
|
2141
|
+
renderLink?: RenderLink;
|
|
2142
|
+
}
|
|
2143
|
+
declare function megaMenuGridColumns(columns: MegaMenuColumn[]): string;
|
|
2144
|
+
declare const MegaMenuPanel: React$1.ForwardRefExoticComponent<MegaMenuPanelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2145
|
+
interface MegaMenuToFloatingNavOptions {
|
|
2146
|
+
/** Marks the current section; receives each item's `href`. */
|
|
2147
|
+
isActive?: (href: string) => boolean;
|
|
2148
|
+
variants?: MegaMenuVariants;
|
|
2149
|
+
icons?: MegaMenuIcons;
|
|
2150
|
+
/**
|
|
2151
|
+
* The bar's own `renderLink` does not reach into a `content` node, so the
|
|
2152
|
+
* same function is passed here and the panel applies it to its links.
|
|
2153
|
+
*/
|
|
2154
|
+
renderLink?: RenderLink;
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* A whole menu as `FloatingNavBlock` items, so a site with a code-owned menu
|
|
2158
|
+
* passes one config and nothing else — plus `breakpoint="lg"` on the bar,
|
|
2159
|
+
* because the panels flatten below `lg` and the bar must switch there too.
|
|
2160
|
+
*/
|
|
2161
|
+
declare function megaMenuToFloatingNavItems(menu: MegaMenu, {
|
|
2162
|
+
isActive,
|
|
2163
|
+
variants,
|
|
2164
|
+
icons,
|
|
2165
|
+
renderLink
|
|
2166
|
+
}?: MegaMenuToFloatingNavOptions): FloatingNavItem[];
|
|
2167
|
+
//#endregion
|
|
2029
2168
|
//#region src/blocks/layout/sidebar-block.d.ts
|
|
2030
2169
|
interface SidebarItem {
|
|
2031
2170
|
label: string;
|
|
@@ -2272,6 +2411,8 @@ interface NapBlockProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "child
|
|
|
2272
2411
|
addressIcon?: React$1.ReactNode;
|
|
2273
2412
|
/** Icon shown beside each phone number. Defaults to a Lucide `Phone` glyph. */
|
|
2274
2413
|
phoneIcon?: React$1.ReactNode;
|
|
2414
|
+
/** Render the business and `tel:` links through a router component instead of a plain `<a>`. */
|
|
2415
|
+
renderLink?: RenderLink;
|
|
2275
2416
|
}
|
|
2276
2417
|
declare const NapBlock: React$1.ForwardRefExoticComponent<NapBlockProps & React$1.RefAttributes<HTMLElement>>;
|
|
2277
2418
|
//#endregion
|
|
@@ -2416,6 +2557,8 @@ interface ShowcasePanelsBlockProps extends Omit<React$1.HTMLAttributes<HTMLDivEl
|
|
|
2416
2557
|
actionLabel?: (item: ShowcasePanelItem) => string;
|
|
2417
2558
|
/** Icon for the corner action. Defaults to a Lucide `MoveUpRight` glyph. */
|
|
2418
2559
|
actionIcon?: React$1.ReactNode;
|
|
2560
|
+
/** Render the corner action's link through a router component instead of a plain `<a>`. */
|
|
2561
|
+
renderLink?: RenderLink;
|
|
2419
2562
|
/**
|
|
2420
2563
|
* Custom image renderer (e.g. `next/image`). The returned node is absolutely
|
|
2421
2564
|
* positioned to fill the panel; it should render the image with
|
|
@@ -2505,6 +2648,75 @@ interface ProcessStepsBlockProps extends Omit<React$1.HTMLAttributes<HTMLDivElem
|
|
|
2505
2648
|
}
|
|
2506
2649
|
declare const ProcessStepsBlock: React$1.ForwardRefExoticComponent<ProcessStepsBlockProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2507
2650
|
//#endregion
|
|
2651
|
+
//#region src/blocks/marketing/stats-band-block.d.ts
|
|
2652
|
+
interface StatItem {
|
|
2653
|
+
/** Stable identifier for the item */
|
|
2654
|
+
id: string;
|
|
2655
|
+
/**
|
|
2656
|
+
* The figure, e.g. `"98%"`, `"12,000+"`, `"L1–S1"`. Rendered as given and
|
|
2657
|
+
* never parsed: ranges, units and suffixes are the editor's to write.
|
|
2658
|
+
*/
|
|
2659
|
+
value: React$1.ReactNode;
|
|
2660
|
+
/** The sentence under the figure, e.g. "of patients home the same day". */
|
|
2661
|
+
label: React$1.ReactNode;
|
|
2662
|
+
/** Makes the whole cell a link to this destination. */
|
|
2663
|
+
href?: string;
|
|
2664
|
+
/**
|
|
2665
|
+
* On phones the band is two per row, so an odd count leaves one stat on a
|
|
2666
|
+
* row of its own. This flag says which one takes the full row. A full row
|
|
2667
|
+
* has to start a row, so the flag counts only on the 1st, 3rd or 5th stat
|
|
2668
|
+
* (an even index); a flag anywhere else, or on an even count, is ignored,
|
|
2669
|
+
* and with an odd count and no usable flag the first stat takes the row.
|
|
2670
|
+
*/
|
|
2671
|
+
wide?: boolean;
|
|
2672
|
+
}
|
|
2673
|
+
/** Column count from `lg` up. Below that the layout is the band's own. */
|
|
2674
|
+
type StatsBandColumns = 2 | 3 | 4 | 5 | 6;
|
|
2675
|
+
interface StatsBandBlockProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "title"> {
|
|
2676
|
+
/** Stats to render, in order. Designed for 2–6 items. */
|
|
2677
|
+
items: StatItem[];
|
|
2678
|
+
/**
|
|
2679
|
+
* Columns from `lg` up. Defaults to one per stat, and never exceeds the
|
|
2680
|
+
* stat count. Phones always show two per row and tablets three (see
|
|
2681
|
+
* `StatItem.wide` for the odd one out).
|
|
2682
|
+
*/
|
|
2683
|
+
columns?: StatsBandColumns;
|
|
2684
|
+
/**
|
|
2685
|
+
* `"card"` (default) is a bordered, shadowed, rounded card — the strip that
|
|
2686
|
+
* floats over a hero seam. `"plain"` keeps only the hairline dividers.
|
|
2687
|
+
*/
|
|
2688
|
+
tone?: "card" | "plain";
|
|
2689
|
+
/** Text alignment inside each cell. Defaults to `"start"`. */
|
|
2690
|
+
align?: "start" | "center";
|
|
2691
|
+
/**
|
|
2692
|
+
* Small label above the heading. A string renders inside an outline
|
|
2693
|
+
* `Badge`; any other node renders as-is. Omit it to hide the row.
|
|
2694
|
+
*/
|
|
2695
|
+
eyebrow?: React$1.ReactNode;
|
|
2696
|
+
/** Optional section heading above the band. */
|
|
2697
|
+
title?: React$1.ReactNode;
|
|
2698
|
+
/** Supporting copy under the heading. */
|
|
2699
|
+
description?: React$1.ReactNode;
|
|
2700
|
+
/** Heading element for `title`. Defaults to `"h2"`. */
|
|
2701
|
+
headingLevel?: "h2" | "h3";
|
|
2702
|
+
/**
|
|
2703
|
+
* Accessible name for the section when there is no `title`. Defaults to
|
|
2704
|
+
* "At a glance".
|
|
2705
|
+
*/
|
|
2706
|
+
ariaLabel?: string;
|
|
2707
|
+
/** Render a linked stat through a router component instead of a plain `<a>`. */
|
|
2708
|
+
renderLink?: RenderLink;
|
|
2709
|
+
/**
|
|
2710
|
+
* Replace the contents of a cell. The grid, the spans and the cell chrome
|
|
2711
|
+
* stay; only what is inside the cell is yours. For icons, count-ups, or a
|
|
2712
|
+
* site-specific figure treatment.
|
|
2713
|
+
*/
|
|
2714
|
+
renderItem?: (item: StatItem, index: number) => React$1.ReactNode;
|
|
2715
|
+
/** Classes for the inner container that constrains width and gutters. */
|
|
2716
|
+
containerClassName?: string;
|
|
2717
|
+
}
|
|
2718
|
+
declare const StatsBandBlock: React$1.ForwardRefExoticComponent<StatsBandBlockProps & React$1.RefAttributes<HTMLElement>>;
|
|
2719
|
+
//#endregion
|
|
2508
2720
|
//#region src/blocks/marketing/faq-columns-block.d.ts
|
|
2509
2721
|
interface FAQItem {
|
|
2510
2722
|
/** Stable identifier; doubles as the accordion item value. */
|
|
@@ -2552,6 +2764,8 @@ interface FAQColumnsBlockProps extends Omit<React$1.HTMLAttributes<HTMLElement>,
|
|
|
2552
2764
|
icon?: React$1.ReactNode;
|
|
2553
2765
|
/** Optional call to action beneath the description. */
|
|
2554
2766
|
cta?: FAQCallToAction;
|
|
2767
|
+
/** Render the call to action's link through a router component instead of a plain `<a>`. */
|
|
2768
|
+
renderLink?: RenderLink;
|
|
2555
2769
|
/**
|
|
2556
2770
|
* Keep the left column pinned while the questions scroll past on `lg` and
|
|
2557
2771
|
* up. Defaults to `true`.
|
|
@@ -2708,6 +2922,8 @@ interface TestimonialMasonryProps extends Omit<React$1.HTMLAttributes<HTMLElemen
|
|
|
2708
2922
|
* `minItemsForFade` and the bottom fade is applied.
|
|
2709
2923
|
*/
|
|
2710
2924
|
link?: TestimonialMasonryLink;
|
|
2925
|
+
/** Render the link through a router component instead of a plain `<a>`. */
|
|
2926
|
+
renderLink?: RenderLink;
|
|
2711
2927
|
/**
|
|
2712
2928
|
* Number of items at which the grid clips and the bottom fade appears.
|
|
2713
2929
|
* Defaults to `7` (two full desktop rows of three, plus a partial third).
|
|
@@ -3073,5 +3289,5 @@ declare function NotificationSettingsBlock({
|
|
|
3073
3289
|
className
|
|
3074
3290
|
}: NotificationSettingsBlockProps): react_jsx_runtime0.JSX.Element;
|
|
3075
3291
|
//#endregion
|
|
3076
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, type AccountSettingsBlockProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AppSidebarBlock, type AppSidebarBlockProps, type SidebarUser as AppSidebarUser, AspectRatio, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, BisonProvider, type BisonProviderProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, type CarouselNavProps, CarouselNext, CarouselPrevious, type CarouselProps, Checkbox, CodeInput, type CodeInputProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CurrencyInput, type CurrencyInputProps, DataTable, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, DensityProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableTitle, type EditableTitleProps, EmptyStateBlock, type EmptyStateBlockProps, type FAQCallToAction, FAQColumnsBlock, type FAQColumnsBlockProps, type FAQItem, type FieldContextValue, type FieldControlProps, type FieldGroupProps, FieldGroupScope, FieldProvider, FloatingNavBlock, type FloatingNavBlockProps, type FloatingNavItem, type FloatingNavLinkProps, type FloatingNavRenderLink, type FloatingNavSubItem, FooterBlock, type FooterBlockProps, type FooterLink, ForgotPasswordBlock, Form, type FormData_, FormError, type FormErrorProps, FormField, type FormFieldProps, type FormMode, type FormProps, HeaderBlock, type HeaderBlockProps, Input, InputGroup, type InputGroupProps, type InputProps, JsonLd, type JsonLdProps, Label, type LocalBusinessDepartmentJsonLd, type LocalBusinessJsonLd, MaintenanceBlock, MediaCard, type MediaCardMeta, type MediaCardProps, type NapAddress, NapBlock, type NapBlockProps, type NapDepartment, type NapPhone, type NapRecord, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, type NotificationGroup, type NotificationSetting, NotificationSettingsBlock, type NotificationSettingsBlockProps, OutlinedField, type OutlinedFieldProps, PageShell, type PageShellProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, type PasswordInputProps, PhoneInput, type PhoneInputProps, Popover, PopoverContent, PopoverTrigger, type PostalAddressJsonLd, type ProcessStepItem, ProcessStepsBlock, type ProcessStepsBlockProps, ProfileSettingsBlock, type ProfileSettingsBlockProps, type ProfileSettingsData, Progress, ProgressBar, type ProgressBarFormat, type ProgressBarProps, RadioGroup, RadioGroupItem, Rating, type RatingDistributionItem, type RatingProps, ResetPasswordBlock, type ResourceAuthor, type ResourceCategoryStyle, type ResourceItem, ResourcesBlock, type ResourcesBlockProps, type ReviewItem, ReviewsBlock, type ReviewsBlockProps, RotatingBadge, type RotatingBadgeProps, SavedPing, type SavedPingProps, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, type ShowcasePanelItem, ShowcasePanelsBlock, type ShowcasePanelsBlockProps, type ShowcasePanelsLabels, type ShowcaseSpineVariant, Sidebar, SidebarBlock, type SidebarBlockProps, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, type SidebarItem, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, type SidebarNavGroup, type SidebarNavItem, type SidebarNavSubItem, SidebarProvider, SidebarRail, type SidebarSection, SidebarSeparator, type SidebarTeam, SidebarTrigger, type SidebarUserMenuItem, SignInBlock, SignUpBlock, Skeleton, Slider, SocialFeedBlock, type SocialFeedBlockProps, type SocialFeedTileSize, type SocialPlatform, type SocialPostItem, type SocialProvider, SocialProviders, Spinner, type SpinnerProps, Stepper, StepperDescription, StepperIndicator, type StepperIndicatorProps, StepperItem, type StepperItemProps, StepperLabel, type StepperOrientation, type StepperProps, StepperSeparator, type StepperState, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialCarousel, type TestimonialCarouselProps, type TestimonialItem, TestimonialMasonry, type TestimonialMasonryLink, type TestimonialMasonryProps, TextContent, type TextContentProps, TextEditor, type TextEditorProps, Textarea, type TextareaProps, ThemeProvider, ThemeScope, type ThemeScopeProps, TimePicker, type TimePickerProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseHideOnScrollOptions, type UseScrollRevealOptions, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, badgeVariants, buttonVariants, cn, dateRangePresets, editableTitleVariants, formatUsPhone, napRecordToJsonLd, navigationMenuTriggerStyle, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, spinnerVariants, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, switchVariants, testimonialInitials, toast, useCarousel, useDensity, useField, useFieldControl, useFieldGroup, useFieldIds, useFormContext, useHideOnScroll, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
3292
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, type AccountSettingsBlockProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AppSidebarBlock, type AppSidebarBlockProps, type SidebarUser as AppSidebarUser, AspectRatio, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, BisonProvider, type BisonProviderProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, type CarouselNavProps, CarouselNext, CarouselPrevious, type CarouselProps, Checkbox, CodeInput, type CodeInputProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CurrencyInput, type CurrencyInputProps, DataTable, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, DensityProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableTitle, type EditableTitleProps, EmptyStateBlock, type EmptyStateBlockProps, type FAQCallToAction, FAQColumnsBlock, type FAQColumnsBlockProps, type FAQItem, type FieldContextValue, type FieldControlProps, type FieldGroupProps, FieldGroupScope, FieldProvider, FloatingNavBlock, type FloatingNavBlockProps, type FloatingNavItem, type FloatingNavLinkProps, type FloatingNavRenderLink, type FloatingNavSubItem, FooterBlock, type FooterBlockProps, type FooterLink, ForgotPasswordBlock, Form, type FormData_, FormError, type FormErrorProps, FormField, type FormFieldProps, type FormMode, type FormProps, HeaderBlock, type HeaderBlockProps, Input, InputGroup, type InputGroupProps, type InputProps, JsonLd, type JsonLdProps, Label, type LocalBusinessDepartmentJsonLd, type LocalBusinessJsonLd, MaintenanceBlock, MediaCard, type MediaCardMeta, type MediaCardProps, type MegaMenu, type MegaMenuColumn, type MegaMenuFooter, type MegaMenuFooterLink, type MegaMenuIcons, type MegaMenuItem, type MegaMenuLink, type MegaMenuMaxWidth, MegaMenuPanel, type MegaMenuPanelData, type MegaMenuPanelProps, type MegaMenuSection, type MegaMenuToFloatingNavOptions, type MegaMenuVariant, type MegaMenuVariants, type MegaMenuWidth, type NapAddress, NapBlock, type NapBlockProps, type NapDepartment, type NapPhone, type NapRecord, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, type NotificationGroup, type NotificationSetting, NotificationSettingsBlock, type NotificationSettingsBlockProps, OutlinedField, type OutlinedFieldProps, PageShell, type PageShellProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, type PasswordInputProps, PhoneInput, type PhoneInputProps, Popover, PopoverContent, PopoverTrigger, type PostalAddressJsonLd, type ProcessStepItem, ProcessStepsBlock, type ProcessStepsBlockProps, ProfileSettingsBlock, type ProfileSettingsBlockProps, type ProfileSettingsData, Progress, ProgressBar, type ProgressBarFormat, type ProgressBarProps, RadioGroup, RadioGroupItem, Rating, type RatingDistributionItem, type RatingProps, type RenderLink, type RenderLinkProps, ResetPasswordBlock, type ResourceAuthor, type ResourceCategoryStyle, type ResourceItem, ResourcesBlock, type ResourcesBlockProps, type ReviewItem, ReviewsBlock, type ReviewsBlockProps, RotatingBadge, type RotatingBadgeProps, SavedPing, type SavedPingProps, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, type ShowcasePanelItem, ShowcasePanelsBlock, type ShowcasePanelsBlockProps, type ShowcasePanelsLabels, type ShowcaseSpineVariant, Sidebar, SidebarBlock, type SidebarBlockProps, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, type SidebarItem, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, type SidebarNavGroup, type SidebarNavItem, type SidebarNavSubItem, SidebarProvider, SidebarRail, type SidebarSection, SidebarSeparator, type SidebarTeam, SidebarTrigger, type SidebarUserMenuItem, SignInBlock, SignUpBlock, Skeleton, Slider, SocialFeedBlock, type SocialFeedBlockProps, type SocialFeedTileSize, type SocialPlatform, type SocialPostItem, type SocialProvider, SocialProviders, Spinner, type SpinnerProps, type StatItem, StatsBandBlock, type StatsBandBlockProps, type StatsBandColumns, Stepper, StepperDescription, StepperIndicator, type StepperIndicatorProps, StepperItem, type StepperItemProps, StepperLabel, type StepperOrientation, type StepperProps, StepperSeparator, type StepperState, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialCarousel, type TestimonialCarouselProps, type TestimonialItem, TestimonialMasonry, type TestimonialMasonryLink, type TestimonialMasonryProps, TextContent, type TextContentProps, TextEditor, type TextEditorProps, Textarea, type TextareaProps, ThemeProvider, ThemeScope, type ThemeScopeProps, TimePicker, type TimePickerProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseHideOnScrollOptions, type UseScrollRevealOptions, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, badgeVariants, buttonVariants, cn, dateRangePresets, editableTitleVariants, formatUsPhone, megaMenuGridColumns, megaMenuToFloatingNavItems, napRecordToJsonLd, navigationMenuTriggerStyle, newTabAttributes, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, renderPlainLink, spinnerVariants, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, switchVariants, testimonialInitials, toast, useCarousel, useDensity, useField, useFieldControl, useFieldGroup, useFieldIds, useFormContext, useHideOnScroll, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
3077
3293
|
//# sourceMappingURL=index.d.mts.map
|