@bison-lab/ui 4.13.0 → 4.25.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 +193 -30
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +511 -111
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { fontFaceCss, fontPreloads, fontStack, isFontId } from "@bison-lab/fonts
|
|
|
7
7
|
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Label as Label$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Slot, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1, unstable_PasswordToggleField } from "radix-ui";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
9
|
import { AnimatePresence, motion } from "motion/react";
|
|
10
|
-
import { AlignCenter, AlignLeft, AlignRight, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, Bold, Calendar as Calendar$1, Camera, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsLeft, ChevronsRight, ChevronsUpDown, Circle, CircleAlert, CircleCheck, CircleHelp, CircleX, Code, Eye, EyeOff, Facebook, FastForward, FileQuestion, Heading1, Heading2, Heading3, Image, Inbox, Info, Instagram, Italic, Link, Linkedin, List, ListOrdered, LoaderCircle, LogOut, Mail, MapPin, Menu, Minus, MoreHorizontal, MoveUpRight, PanelLeft, Pause, Pencil, Phone, Play, Plus, Quote, Redo, Search, Server, Settings2, ShieldAlert, SlidersHorizontal, Star, Strikethrough, TriangleAlert, Twitter, Underline, Undo, Unlink, Wrench, X, Youtube } from "lucide-react";
|
|
10
|
+
import { AlignCenter, AlignLeft, AlignRight, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, BadgeCheck, Bold, Calendar as Calendar$1, Camera, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsLeft, ChevronsRight, ChevronsUpDown, Circle, CircleAlert, CircleCheck, CircleHelp, CircleX, Code, Eye, EyeOff, Facebook, FastForward, FileQuestion, Heading1, Heading2, Heading3, Image, Inbox, Info, Instagram, Italic, Link, Linkedin, List, ListOrdered, LoaderCircle, LogOut, Mail, MapPin, Menu, Minus, MoreHorizontal, MoveUpRight, PanelLeft, Pause, Pencil, Phone, Play, Plus, Quote, Redo, Search, Server, Settings2, ShieldAlert, SlidersHorizontal, Star, Strikethrough, TriangleAlert, Twitter, Underline, Undo, Unlink, Wrench, X, Youtube } from "lucide-react";
|
|
11
11
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
12
12
|
import useEmblaCarousel from "embla-carousel-react";
|
|
13
13
|
import { endOfMonth, endOfWeek, format, startOfMonth, startOfWeek, startOfYear, subDays, subMonths, subYears } from "date-fns";
|
|
@@ -7500,7 +7500,7 @@ function bandPadding(options) {
|
|
|
7500
7500
|
}
|
|
7501
7501
|
//#endregion
|
|
7502
7502
|
//#region src/blocks/marketing/heroes/hero-sweep.tsx
|
|
7503
|
-
const DEFAULT_CONTAINER$
|
|
7503
|
+
const DEFAULT_CONTAINER$2 = "mx-auto w-full max-w-7xl px-6";
|
|
7504
7504
|
/**
|
|
7505
7505
|
* The brand sweep from the source artwork, rebuilt from theme tokens.
|
|
7506
7506
|
* Ordered dark-to-warm: copy sits on the left, where the type is measured
|
|
@@ -7516,7 +7516,7 @@ const MEDIA_FRAME = {
|
|
|
7516
7516
|
* Opening band. Sweep and dark flip the theme locally via `data-theme="dark"`
|
|
7517
7517
|
* so tokens resolve to their dark values. Corners stay square.
|
|
7518
7518
|
*/
|
|
7519
|
-
const HeroSweep = React.forwardRef(function HeroSweep({ eyebrow, heading, body, children, media, mediaAspect = "3:2", tone = "sweep", overlap = false, sectionClassName, containerClassName = DEFAULT_CONTAINER$
|
|
7519
|
+
const HeroSweep = React.forwardRef(function HeroSweep({ eyebrow, heading, body, children, media, mediaAspect = "3:2", tone = "sweep", overlap = false, sectionClassName, containerClassName = DEFAULT_CONTAINER$2, className }, ref) {
|
|
7520
7520
|
const isLight = tone === "light";
|
|
7521
7521
|
const isSweep = tone === "sweep";
|
|
7522
7522
|
const painted = hasSectionBackground(sectionClassName);
|
|
@@ -7576,7 +7576,7 @@ const HeroSweep = React.forwardRef(function HeroSweep({ eyebrow, heading, body,
|
|
|
7576
7576
|
});
|
|
7577
7577
|
//#endregion
|
|
7578
7578
|
//#region src/blocks/marketing/heroes/hero-compact.tsx
|
|
7579
|
-
const DEFAULT_CONTAINER = "mx-auto w-full max-w-7xl px-6";
|
|
7579
|
+
const DEFAULT_CONTAINER$1 = "mx-auto w-full max-w-7xl px-6";
|
|
7580
7580
|
/** Ink that reads `--look-ink` from a `[data-look]` binding a site supplies. */
|
|
7581
7581
|
const LOOK_INK = "text-[hsl(var(--look-ink))] dark:text-[hsl(var(--look-ink-dark))]";
|
|
7582
7582
|
/**
|
|
@@ -7588,7 +7588,7 @@ const LOOK_INK = "text-[hsl(var(--look-ink))] dark:text-[hsl(var(--look-ink-dark
|
|
|
7588
7588
|
* Anatomy, wired in SPI-51) passes `look` or `eyebrowClassName`. This
|
|
7589
7589
|
* component does not name that field.
|
|
7590
7590
|
*/
|
|
7591
|
-
const HeroCompact = React.forwardRef(function HeroCompact({ eyebrow, heading, body, children, media, containerClassName = DEFAULT_CONTAINER, overlap = false, sectionClassName, eyebrowClassName, look, className }, ref) {
|
|
7591
|
+
const HeroCompact = React.forwardRef(function HeroCompact({ eyebrow, heading, body, children, media, containerClassName = DEFAULT_CONTAINER$1, overlap = false, sectionClassName, eyebrowClassName, look, className }, ref) {
|
|
7592
7592
|
const painted = hasSectionBackground(sectionClassName);
|
|
7593
7593
|
const surface = sectionSurface(sectionClassName);
|
|
7594
7594
|
const ownPadding = `pt-24 lg:pt-28 ${overlap ? "pb-28 lg:pb-36" : "pb-12 lg:pb-16"}`;
|
|
@@ -7646,6 +7646,311 @@ const HeroCompact = React.forwardRef(function HeroCompact({ eyebrow, heading, bo
|
|
|
7646
7646
|
});
|
|
7647
7647
|
});
|
|
7648
7648
|
//#endregion
|
|
7649
|
+
//#region src/blocks/marketing/heroes/hero-simple.tsx
|
|
7650
|
+
const DEFAULT_CONTAINER = "mx-auto w-full max-w-7xl px-6";
|
|
7651
|
+
/**
|
|
7652
|
+
* The calm member of the hero family: one centered column of copy on the
|
|
7653
|
+
* page surface, no image and no motion. The heading is the page's `<h1>`
|
|
7654
|
+
* and scales up at wider breakpoints; the body keeps a capped measure.
|
|
7655
|
+
*
|
|
7656
|
+
* Like the compact hero, its top padding clears the floating header, and a
|
|
7657
|
+
* section background replaces the page surface.
|
|
7658
|
+
*/
|
|
7659
|
+
const HeroSimple = React.forwardRef(function HeroSimple({ eyebrow, heading, body, children, containerClassName = DEFAULT_CONTAINER, overlap = false, sectionClassName, className }, ref) {
|
|
7660
|
+
const painted = hasSectionBackground(sectionClassName);
|
|
7661
|
+
const ownPadding = `pt-28 lg:pt-36 ${overlap ? "pb-32 lg:pb-48" : "pb-16 lg:pb-24"}`;
|
|
7662
|
+
const padding = sectionClassName === void 0 ? ownPadding : bandPadding({
|
|
7663
|
+
sectionClassName,
|
|
7664
|
+
own: ownPadding,
|
|
7665
|
+
clearance: {
|
|
7666
|
+
base: "pt-24",
|
|
7667
|
+
lg: "lg:pt-28"
|
|
7668
|
+
},
|
|
7669
|
+
bottomFloor: overlap ? {
|
|
7670
|
+
base: "pb-32",
|
|
7671
|
+
lg: "lg:pb-48"
|
|
7672
|
+
} : void 0
|
|
7673
|
+
});
|
|
7674
|
+
return /* @__PURE__ */ jsx("section", {
|
|
7675
|
+
ref,
|
|
7676
|
+
className: cn(painted ? void 0 : "bg-background text-foreground", sectionSurface(sectionClassName), className),
|
|
7677
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
7678
|
+
className: cn(containerClassName, padding),
|
|
7679
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
7680
|
+
className: "mx-auto flex max-w-3xl flex-col items-center text-center",
|
|
7681
|
+
children: [
|
|
7682
|
+
eyebrow ? /* @__PURE__ */ jsx("p", {
|
|
7683
|
+
className: cn("mb-4 text-sm font-semibold tracking-wide uppercase", painted ? void 0 : "text-muted-foreground"),
|
|
7684
|
+
children: eyebrow
|
|
7685
|
+
}) : null,
|
|
7686
|
+
/* @__PURE__ */ jsx("h1", {
|
|
7687
|
+
className: "font-heading text-4xl font-semibold tracking-tight text-balance sm:text-5xl lg:text-6xl",
|
|
7688
|
+
children: heading
|
|
7689
|
+
}),
|
|
7690
|
+
body ? /* @__PURE__ */ jsx("p", {
|
|
7691
|
+
className: cn("mt-6 max-w-2xl text-base leading-relaxed text-pretty sm:text-lg", painted ? void 0 : "text-muted-foreground"),
|
|
7692
|
+
children: body
|
|
7693
|
+
}) : null,
|
|
7694
|
+
children ? /* @__PURE__ */ jsx("div", {
|
|
7695
|
+
className: "mt-8 flex flex-wrap justify-center gap-3",
|
|
7696
|
+
children
|
|
7697
|
+
}) : null
|
|
7698
|
+
]
|
|
7699
|
+
})
|
|
7700
|
+
})
|
|
7701
|
+
});
|
|
7702
|
+
});
|
|
7703
|
+
//#endregion
|
|
7704
|
+
//#region src/blocks/marketing/testimonial-types.ts
|
|
7705
|
+
/** Two-letter initials fallback used when a testimonial has no avatar image. */
|
|
7706
|
+
function testimonialInitials(name) {
|
|
7707
|
+
return name.split(" ").map((part) => part[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
7708
|
+
}
|
|
7709
|
+
//#endregion
|
|
7710
|
+
//#region src/blocks/marketing/feature-highlights-block.tsx
|
|
7711
|
+
/**
|
|
7712
|
+
* The index of the card whose box crosses the middle band of the viewport,
|
|
7713
|
+
* watched with `IntersectionObserver`, or the last card once it is wholly in
|
|
7714
|
+
* view. Without an observer (an old browser, a test environment) the first
|
|
7715
|
+
* card stays current.
|
|
7716
|
+
*/
|
|
7717
|
+
function useCurrentCard(count) {
|
|
7718
|
+
const [current, setCurrent] = React.useState(0);
|
|
7719
|
+
const nodes = React.useRef([]);
|
|
7720
|
+
React.useEffect(() => {
|
|
7721
|
+
if (typeof IntersectionObserver === "undefined") return;
|
|
7722
|
+
const observer = new IntersectionObserver((entries) => {
|
|
7723
|
+
for (const entry of entries) {
|
|
7724
|
+
if (!entry.isIntersecting) continue;
|
|
7725
|
+
const index = nodes.current.indexOf(entry.target);
|
|
7726
|
+
if (index >= 0) setCurrent(index);
|
|
7727
|
+
}
|
|
7728
|
+
}, { rootMargin: "-45% 0px -45% 0px" });
|
|
7729
|
+
const end = new IntersectionObserver((entries) => {
|
|
7730
|
+
if (entries.some((entry) => entry.isIntersecting)) setCurrent(count - 1);
|
|
7731
|
+
}, { threshold: 1 });
|
|
7732
|
+
const watched = nodes.current.slice(0, count);
|
|
7733
|
+
for (const node of watched) if (node) observer.observe(node);
|
|
7734
|
+
const last = watched[count - 1];
|
|
7735
|
+
if (last) end.observe(last);
|
|
7736
|
+
return () => {
|
|
7737
|
+
observer.disconnect();
|
|
7738
|
+
end.disconnect();
|
|
7739
|
+
};
|
|
7740
|
+
}, [count]);
|
|
7741
|
+
const register = React.useCallback((index) => (node) => {
|
|
7742
|
+
nodes.current[index] = node;
|
|
7743
|
+
}, []);
|
|
7744
|
+
return {
|
|
7745
|
+
current: Math.min(current, Math.max(count - 1, 0)),
|
|
7746
|
+
register
|
|
7747
|
+
};
|
|
7748
|
+
}
|
|
7749
|
+
/**
|
|
7750
|
+
* Stacked feature cards with a progress rail that follows the reader.
|
|
7751
|
+
*
|
|
7752
|
+
* From `lg` up the heading, the rail and the optional testimonial hold still
|
|
7753
|
+
* in a sticky column while the cards scroll past; below that they sit above
|
|
7754
|
+
* the cards. The rail is a `progressbar` whose value is the card crossing the
|
|
7755
|
+
* middle of the viewport. Its fill and the step marks move with a transition
|
|
7756
|
+
* only under `motion-safe`, so with reduced motion on they jump to place.
|
|
7757
|
+
*/
|
|
7758
|
+
const FeatureHighlightsBlock = React.forwardRef(({ eyebrow, title, description, items, testimonial, progressLabel = "Features read", headingLevel = "h2", containerClassName, cardClassName, className, ...props }, ref) => {
|
|
7759
|
+
const headingId = React.useId();
|
|
7760
|
+
const Heading = headingLevel;
|
|
7761
|
+
const CardHeading = headingLevel === "h2" ? "h3" : "h4";
|
|
7762
|
+
const { current, register } = useCurrentCard(items.length);
|
|
7763
|
+
const total = items.length;
|
|
7764
|
+
const filled = total > 0 ? (current + 1) / total * 100 : 0;
|
|
7765
|
+
const currentTitle = items[current]?.title;
|
|
7766
|
+
return /* @__PURE__ */ jsx("section", {
|
|
7767
|
+
ref,
|
|
7768
|
+
"aria-labelledby": props["aria-label"] ? void 0 : headingId,
|
|
7769
|
+
className,
|
|
7770
|
+
...props,
|
|
7771
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
7772
|
+
className: cn("mx-auto grid w-full max-w-7xl gap-12 px-6 py-16 md:py-24 lg:grid-cols-[minmax(0,5fr)_minmax(0,7fr)] lg:gap-16", containerClassName),
|
|
7773
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
7774
|
+
className: "lg:sticky lg:top-24 lg:self-start",
|
|
7775
|
+
children: [
|
|
7776
|
+
eyebrow ? /* @__PURE__ */ jsx("p", {
|
|
7777
|
+
className: "mb-4 text-sm font-semibold tracking-wide text-muted-foreground uppercase",
|
|
7778
|
+
children: eyebrow
|
|
7779
|
+
}) : null,
|
|
7780
|
+
/* @__PURE__ */ jsx(Heading, {
|
|
7781
|
+
id: headingId,
|
|
7782
|
+
className: "font-heading text-3xl font-semibold tracking-tight text-balance sm:text-4xl lg:text-5xl",
|
|
7783
|
+
children: title
|
|
7784
|
+
}),
|
|
7785
|
+
description ? /* @__PURE__ */ jsx("p", {
|
|
7786
|
+
className: "mt-4 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg",
|
|
7787
|
+
children: description
|
|
7788
|
+
}) : null,
|
|
7789
|
+
total > 1 ? /* @__PURE__ */ jsxs("div", {
|
|
7790
|
+
className: "mt-10 flex gap-5",
|
|
7791
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
7792
|
+
role: "progressbar",
|
|
7793
|
+
"aria-label": progressLabel,
|
|
7794
|
+
"aria-valuemin": 1,
|
|
7795
|
+
"aria-valuemax": total,
|
|
7796
|
+
"aria-valuenow": current + 1,
|
|
7797
|
+
"aria-valuetext": typeof currentTitle === "string" ? `${current + 1} of ${total}: ${currentTitle}` : `${current + 1} of ${total}`,
|
|
7798
|
+
className: "relative w-1 shrink-0 overflow-hidden rounded-full bg-border",
|
|
7799
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
7800
|
+
"data-slot": "progress-fill",
|
|
7801
|
+
className: "absolute inset-x-0 top-0 rounded-full bg-primary motion-safe:transition-[height] motion-safe:duration-500 motion-safe:ease-out",
|
|
7802
|
+
style: { height: `${filled}%` }
|
|
7803
|
+
})
|
|
7804
|
+
}), /* @__PURE__ */ jsx("ol", {
|
|
7805
|
+
className: "space-y-3 text-sm",
|
|
7806
|
+
"aria-hidden": true,
|
|
7807
|
+
children: items.map((item, i) => /* @__PURE__ */ jsx("li", {
|
|
7808
|
+
className: cn("motion-safe:transition-colors motion-safe:duration-300", i === current ? "font-medium text-foreground" : "text-muted-foreground"),
|
|
7809
|
+
children: item.title
|
|
7810
|
+
}, item.id))
|
|
7811
|
+
})]
|
|
7812
|
+
}) : null,
|
|
7813
|
+
testimonial ? /* @__PURE__ */ jsxs("figure", {
|
|
7814
|
+
className: "mt-10 rounded-2xl bg-muted p-6",
|
|
7815
|
+
children: [/* @__PURE__ */ jsx("blockquote", {
|
|
7816
|
+
className: "text-base leading-relaxed",
|
|
7817
|
+
children: testimonial.content
|
|
7818
|
+
}), /* @__PURE__ */ jsxs("figcaption", {
|
|
7819
|
+
className: "mt-5 flex items-center gap-3",
|
|
7820
|
+
children: [/* @__PURE__ */ jsxs(Avatar, {
|
|
7821
|
+
className: "size-10",
|
|
7822
|
+
children: [testimonial.author.avatarUrl ? /* @__PURE__ */ jsx(AvatarImage, {
|
|
7823
|
+
src: testimonial.author.avatarUrl,
|
|
7824
|
+
alt: ""
|
|
7825
|
+
}) : null, /* @__PURE__ */ jsx(AvatarFallback, {
|
|
7826
|
+
className: "text-xs",
|
|
7827
|
+
children: testimonialInitials(testimonial.author.name)
|
|
7828
|
+
})]
|
|
7829
|
+
}), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
7830
|
+
className: "text-sm font-medium",
|
|
7831
|
+
children: testimonial.author.name
|
|
7832
|
+
}), testimonial.author.title ? /* @__PURE__ */ jsx("div", {
|
|
7833
|
+
className: "text-sm text-muted-foreground",
|
|
7834
|
+
children: testimonial.author.title
|
|
7835
|
+
}) : null] })]
|
|
7836
|
+
})]
|
|
7837
|
+
}) : null
|
|
7838
|
+
]
|
|
7839
|
+
}), /* @__PURE__ */ jsx("ol", {
|
|
7840
|
+
className: "space-y-6 lg:space-y-8",
|
|
7841
|
+
children: items.map((item, i) => /* @__PURE__ */ jsx("li", {
|
|
7842
|
+
ref: register(i),
|
|
7843
|
+
"data-current": i === current ? "" : void 0,
|
|
7844
|
+
className: cn("overflow-hidden rounded-2xl border bg-card", cardClassName),
|
|
7845
|
+
children: /* @__PURE__ */ jsxs("article", { children: [item.media ? /* @__PURE__ */ jsx("div", {
|
|
7846
|
+
className: "aspect-[16/10] overflow-hidden bg-muted",
|
|
7847
|
+
children: item.media
|
|
7848
|
+
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
7849
|
+
className: "flex flex-col gap-6 p-6 sm:flex-row sm:items-end sm:justify-between lg:p-8",
|
|
7850
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
7851
|
+
className: "min-w-0",
|
|
7852
|
+
children: [/* @__PURE__ */ jsx(CardHeading, {
|
|
7853
|
+
className: "font-heading text-xl font-semibold tracking-tight sm:text-2xl",
|
|
7854
|
+
children: item.title
|
|
7855
|
+
}), item.subtitle ? /* @__PURE__ */ jsx("p", {
|
|
7856
|
+
className: "mt-2 text-base text-muted-foreground",
|
|
7857
|
+
children: item.subtitle
|
|
7858
|
+
}) : null]
|
|
7859
|
+
}), item.stat ? /* @__PURE__ */ jsxs("p", {
|
|
7860
|
+
className: "shrink-0 sm:text-right",
|
|
7861
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
7862
|
+
className: "block font-heading text-4xl font-semibold tracking-tight text-primary",
|
|
7863
|
+
children: item.stat.value
|
|
7864
|
+
}), item.stat.label ? /* @__PURE__ */ jsx("span", {
|
|
7865
|
+
className: "block text-sm text-muted-foreground",
|
|
7866
|
+
children: item.stat.label
|
|
7867
|
+
}) : null]
|
|
7868
|
+
}) : null]
|
|
7869
|
+
})] })
|
|
7870
|
+
}, item.id))
|
|
7871
|
+
})]
|
|
7872
|
+
})
|
|
7873
|
+
});
|
|
7874
|
+
});
|
|
7875
|
+
FeatureHighlightsBlock.displayName = "FeatureHighlightsBlock";
|
|
7876
|
+
//#endregion
|
|
7877
|
+
//#region src/blocks/marketing/feature-checklist-block.tsx
|
|
7878
|
+
/**
|
|
7879
|
+
* A centered heading over two checked lists. The two lists are the editor's
|
|
7880
|
+
* own, not one list split in half: each is its own `<ul>`, side by side from
|
|
7881
|
+
* `md` up, the left list first below that.
|
|
7882
|
+
*
|
|
7883
|
+
* There is no background animation. The band takes its surface from the
|
|
7884
|
+
* section, like every other band.
|
|
7885
|
+
*/
|
|
7886
|
+
const FeatureChecklistBlock = React.forwardRef(({ badge, title, dividerLabel, leftItems, rightItems = [], icon, headingLevel = "h2", containerClassName, listClassName, itemClassName, className, ...props }, ref) => {
|
|
7887
|
+
const headingId = React.useId();
|
|
7888
|
+
const Heading = headingLevel;
|
|
7889
|
+
const mark = icon ?? /* @__PURE__ */ jsx(BadgeCheck, { className: "size-5" });
|
|
7890
|
+
const lists = [{
|
|
7891
|
+
side: "left",
|
|
7892
|
+
items: leftItems
|
|
7893
|
+
}, {
|
|
7894
|
+
side: "right",
|
|
7895
|
+
items: rightItems
|
|
7896
|
+
}].filter((list) => list.items.length > 0);
|
|
7897
|
+
return /* @__PURE__ */ jsx("section", {
|
|
7898
|
+
ref,
|
|
7899
|
+
"aria-labelledby": props["aria-label"] ? void 0 : headingId,
|
|
7900
|
+
className,
|
|
7901
|
+
...props,
|
|
7902
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
7903
|
+
className: cn("mx-auto w-full max-w-4xl px-6 py-16 md:py-24", containerClassName),
|
|
7904
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
7905
|
+
className: "mx-auto flex max-w-3xl flex-col items-center text-center",
|
|
7906
|
+
children: [
|
|
7907
|
+
badge != null ? typeof badge === "string" ? /* @__PURE__ */ jsx(Badge, {
|
|
7908
|
+
variant: "outline",
|
|
7909
|
+
className: "mb-6 rounded-full px-3 py-1",
|
|
7910
|
+
children: badge
|
|
7911
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
7912
|
+
className: "mb-6",
|
|
7913
|
+
children: badge
|
|
7914
|
+
}) : null,
|
|
7915
|
+
/* @__PURE__ */ jsx(Heading, {
|
|
7916
|
+
id: headingId,
|
|
7917
|
+
className: "font-heading text-4xl font-semibold tracking-tight text-balance md:text-5xl lg:text-6xl",
|
|
7918
|
+
children: title
|
|
7919
|
+
}),
|
|
7920
|
+
dividerLabel ? /* @__PURE__ */ jsxs("div", {
|
|
7921
|
+
className: "mt-8 flex items-center gap-4 text-sm font-medium text-muted-foreground",
|
|
7922
|
+
children: [
|
|
7923
|
+
/* @__PURE__ */ jsx("span", {
|
|
7924
|
+
className: "h-px w-12 bg-border",
|
|
7925
|
+
"aria-hidden": true
|
|
7926
|
+
}),
|
|
7927
|
+
/* @__PURE__ */ jsx("span", { children: dividerLabel }),
|
|
7928
|
+
/* @__PURE__ */ jsx("span", {
|
|
7929
|
+
className: "h-px w-12 bg-border",
|
|
7930
|
+
"aria-hidden": true
|
|
7931
|
+
})
|
|
7932
|
+
]
|
|
7933
|
+
}) : null
|
|
7934
|
+
]
|
|
7935
|
+
}), lists.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
7936
|
+
className: cn("mx-auto mt-10 grid max-w-3xl gap-x-12 gap-y-4", lists.length > 1 && "md:grid-cols-2"),
|
|
7937
|
+
children: lists.map(({ side, items }) => /* @__PURE__ */ jsx("ul", {
|
|
7938
|
+
className: cn("space-y-4", listClassName),
|
|
7939
|
+
children: items.map((item) => /* @__PURE__ */ jsxs("li", {
|
|
7940
|
+
className: cn("flex items-start gap-3 text-base", itemClassName),
|
|
7941
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
7942
|
+
className: "mt-0.5 shrink-0 text-primary",
|
|
7943
|
+
"aria-hidden": true,
|
|
7944
|
+
children: mark
|
|
7945
|
+
}), /* @__PURE__ */ jsx("span", { children: item.label })]
|
|
7946
|
+
}, item.id))
|
|
7947
|
+
}, side))
|
|
7948
|
+
}) : null]
|
|
7949
|
+
})
|
|
7950
|
+
});
|
|
7951
|
+
});
|
|
7952
|
+
FeatureChecklistBlock.displayName = "FeatureChecklistBlock";
|
|
7953
|
+
//#endregion
|
|
7649
7954
|
//#region src/blocks/marketing/json-ld.tsx
|
|
7650
7955
|
/**
|
|
7651
7956
|
* Maps a `NapRecord` — the same object rendered by `NapBlock` — onto
|
|
@@ -8629,12 +8934,6 @@ const ReviewsBlock = React.forwardRef(({ reviews, averageRating, totalReviews, t
|
|
|
8629
8934
|
});
|
|
8630
8935
|
ReviewsBlock.displayName = "ReviewsBlock";
|
|
8631
8936
|
//#endregion
|
|
8632
|
-
//#region src/blocks/marketing/testimonial-types.ts
|
|
8633
|
-
/** Two-letter initials fallback used when a testimonial has no avatar image. */
|
|
8634
|
-
function testimonialInitials(name) {
|
|
8635
|
-
return name.split(" ").map((part) => part[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
8636
|
-
}
|
|
8637
|
-
//#endregion
|
|
8638
8937
|
//#region src/blocks/marketing/testimonial-masonry-block.tsx
|
|
8639
8938
|
function groupCardsByRow(cards) {
|
|
8640
8939
|
const rows = /* @__PURE__ */ new Map();
|
|
@@ -8774,8 +9073,74 @@ const TestimonialMasonry = React.forwardRef(({ items, title, description, eyebro
|
|
|
8774
9073
|
TestimonialMasonry.displayName = "TestimonialMasonry";
|
|
8775
9074
|
//#endregion
|
|
8776
9075
|
//#region src/blocks/marketing/testimonial-carousel-block.tsx
|
|
8777
|
-
|
|
9076
|
+
/** One `"portrait"` slide: the picture, then the quote and the author line. */
|
|
9077
|
+
function PortraitCard({ item, portrait, cardClassName, contentClassName, authorNameClassName, authorTitleClassName }) {
|
|
9078
|
+
return /* @__PURE__ */ jsxs("figure", {
|
|
9079
|
+
className: cn("flex h-full flex-col overflow-hidden rounded-2xl bg-muted", cardClassName),
|
|
9080
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
9081
|
+
className: "aspect-[4/5] overflow-hidden bg-muted",
|
|
9082
|
+
children: portrait
|
|
9083
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
9084
|
+
className: "flex flex-1 flex-col justify-between gap-6 p-6",
|
|
9085
|
+
children: [/* @__PURE__ */ jsx("blockquote", {
|
|
9086
|
+
className: cn("text-xl font-medium leading-snug tracking-tight text-balance", contentClassName),
|
|
9087
|
+
children: item.content
|
|
9088
|
+
}), /* @__PURE__ */ jsxs("figcaption", {
|
|
9089
|
+
className: "text-sm",
|
|
9090
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
9091
|
+
className: cn("font-medium", authorNameClassName),
|
|
9092
|
+
children: item.author.name
|
|
9093
|
+
}), item.author.title ? /* @__PURE__ */ jsx("div", {
|
|
9094
|
+
className: authorTitleClassName,
|
|
9095
|
+
children: item.author.title
|
|
9096
|
+
}) : null]
|
|
9097
|
+
})]
|
|
9098
|
+
})]
|
|
9099
|
+
});
|
|
9100
|
+
}
|
|
9101
|
+
const TestimonialCarousel = React.forwardRef(({ items, variant = "card", controlsPlacement, link, renderLink = renderPlainLink, renderPortrait, slideStatus = (first, last, total) => first === last ? `Testimonial ${first} of ${total}` : `Testimonials ${first}–${last} of ${total}`, title, description, eyebrow, loop = false, slidesToScroll = 1, previousButton, nextButton, hideControls = false, containerClassName, headerClassName, headerCopyClassName, eyebrowClassName, titleClassName, descriptionClassName, controlsClassName, carouselClassName, slideClassName, cardClassName, contentClassName, authorNameClassName, authorTitleClassName, avatarClassName, className, ...props }, ref) => {
|
|
8778
9102
|
const headingId = React.useId();
|
|
9103
|
+
const portrait = variant === "portrait";
|
|
9104
|
+
const below = (controlsPlacement ?? (portrait ? "below" : "header")) === "below";
|
|
9105
|
+
const [api, setApi] = React.useState();
|
|
9106
|
+
const [shown, setShown] = React.useState({
|
|
9107
|
+
first: 0,
|
|
9108
|
+
last: 0
|
|
9109
|
+
});
|
|
9110
|
+
React.useEffect(() => {
|
|
9111
|
+
if (!api) return;
|
|
9112
|
+
const onSelect = () => {
|
|
9113
|
+
const snap = api.selectedScrollSnap();
|
|
9114
|
+
const slides = api.internalEngine().slideRegistry[snap] ?? [snap];
|
|
9115
|
+
setShown({
|
|
9116
|
+
first: slides[0] ?? snap,
|
|
9117
|
+
last: slides[slides.length - 1] ?? snap
|
|
9118
|
+
});
|
|
9119
|
+
};
|
|
9120
|
+
onSelect();
|
|
9121
|
+
api.on("select", onSelect);
|
|
9122
|
+
api.on("reInit", onSelect);
|
|
9123
|
+
return () => {
|
|
9124
|
+
api.off("select", onSelect);
|
|
9125
|
+
api.off("reInit", onSelect);
|
|
9126
|
+
};
|
|
9127
|
+
}, [api]);
|
|
9128
|
+
const controls = hideControls ? null : /* @__PURE__ */ jsxs("div", {
|
|
9129
|
+
className: cn("flex shrink-0 items-center gap-2", below && "mt-8", controlsClassName),
|
|
9130
|
+
children: [/* @__PURE__ */ jsx(CarouselPrevious, {
|
|
9131
|
+
label: previousButton?.label ?? "Previous testimonial",
|
|
9132
|
+
icon: previousButton?.icon,
|
|
9133
|
+
variant: previousButton?.variant,
|
|
9134
|
+
size: previousButton?.size,
|
|
9135
|
+
className: cn(portrait && "rounded-full", previousButton?.className)
|
|
9136
|
+
}), /* @__PURE__ */ jsx(CarouselNext, {
|
|
9137
|
+
label: nextButton?.label ?? "Next testimonial",
|
|
9138
|
+
icon: nextButton?.icon,
|
|
9139
|
+
variant: nextButton?.variant,
|
|
9140
|
+
size: nextButton?.size,
|
|
9141
|
+
className: cn(portrait && "rounded-full", nextButton?.className)
|
|
9142
|
+
})]
|
|
9143
|
+
});
|
|
8779
9144
|
return /* @__PURE__ */ jsx("section", {
|
|
8780
9145
|
ref,
|
|
8781
9146
|
"aria-labelledby": props["aria-label"] ? void 0 : headingId,
|
|
@@ -8789,79 +9154,99 @@ const TestimonialCarousel = React.forwardRef(({ items, title, description, eyebr
|
|
|
8789
9154
|
slidesToScroll,
|
|
8790
9155
|
align: "start"
|
|
8791
9156
|
},
|
|
9157
|
+
setApi,
|
|
8792
9158
|
className: cn("w-full", carouselClassName),
|
|
8793
|
-
children: [
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
})]
|
|
8830
|
-
})
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
9159
|
+
children: [
|
|
9160
|
+
/* @__PURE__ */ jsxs("div", {
|
|
9161
|
+
className: cn("mb-8 flex flex-col gap-6 md:mb-12 md:flex-row md:items-end md:justify-between", headerClassName),
|
|
9162
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
9163
|
+
className: cn("min-w-0 flex-1 max-w-2xl", headerCopyClassName),
|
|
9164
|
+
children: [
|
|
9165
|
+
eyebrow != null ? typeof eyebrow === "string" ? /* @__PURE__ */ jsx("p", {
|
|
9166
|
+
className: cn("mb-4 text-sm font-normal leading-tight text-muted-foreground sm:text-base", eyebrowClassName),
|
|
9167
|
+
children: eyebrow
|
|
9168
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
9169
|
+
className: cn("mb-4", eyebrowClassName),
|
|
9170
|
+
children: eyebrow
|
|
9171
|
+
}) : null,
|
|
9172
|
+
/* @__PURE__ */ jsx("h2", {
|
|
9173
|
+
id: headingId,
|
|
9174
|
+
className: cn("text-balance text-3xl font-medium leading-tight tracking-tight sm:text-4xl md:text-5xl", titleClassName),
|
|
9175
|
+
children: title
|
|
9176
|
+
}),
|
|
9177
|
+
description ? /* @__PURE__ */ jsx("p", {
|
|
9178
|
+
className: cn("mt-4 text-base font-normal text-muted-foreground sm:text-lg", descriptionClassName),
|
|
9179
|
+
children: description
|
|
9180
|
+
}) : null,
|
|
9181
|
+
link ? /* @__PURE__ */ jsx(Button, {
|
|
9182
|
+
asChild: true,
|
|
9183
|
+
variant: "outline",
|
|
9184
|
+
className: "mt-6 gap-2 rounded-full",
|
|
9185
|
+
children: renderLink({
|
|
9186
|
+
href: link.href,
|
|
9187
|
+
...newTabAttributes(link.newTab),
|
|
9188
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [link.label, /* @__PURE__ */ jsx(ArrowRight, {
|
|
9189
|
+
className: "size-4",
|
|
9190
|
+
"aria-hidden": true
|
|
9191
|
+
})] })
|
|
9192
|
+
})
|
|
9193
|
+
}) : null
|
|
9194
|
+
]
|
|
9195
|
+
}), below ? null : controls]
|
|
9196
|
+
}),
|
|
9197
|
+
/* @__PURE__ */ jsx(CarouselContent, {
|
|
9198
|
+
className: "-ml-4",
|
|
9199
|
+
children: items.map((item) => /* @__PURE__ */ jsx(CarouselItem, {
|
|
9200
|
+
className: cn(portrait ? "basis-[85%] pl-4 sm:basis-1/2 lg:basis-1/3 xl:basis-1/4" : "basis-full pl-4 md:basis-1/2 lg:basis-1/3", slideClassName),
|
|
9201
|
+
children: portrait ? /* @__PURE__ */ jsx(PortraitCard, {
|
|
9202
|
+
item,
|
|
9203
|
+
portrait: renderPortrait ? renderPortrait(item) : item.author.avatarUrl ? /* @__PURE__ */ jsx("img", {
|
|
9204
|
+
src: item.author.avatarUrl,
|
|
9205
|
+
alt: "",
|
|
9206
|
+
className: "h-full w-full object-cover"
|
|
9207
|
+
}) : null,
|
|
9208
|
+
cardClassName,
|
|
9209
|
+
contentClassName,
|
|
9210
|
+
authorNameClassName,
|
|
9211
|
+
authorTitleClassName
|
|
9212
|
+
}) : /* @__PURE__ */ jsxs("figure", {
|
|
9213
|
+
className: cn("flex h-full flex-col justify-between rounded-2xl border bg-card p-6", cardClassName),
|
|
9214
|
+
children: [/* @__PURE__ */ jsx("blockquote", {
|
|
9215
|
+
className: cn("text-base font-normal leading-relaxed text-muted-foreground", contentClassName),
|
|
9216
|
+
children: item.content
|
|
9217
|
+
}), /* @__PURE__ */ jsxs("figcaption", {
|
|
9218
|
+
className: "mt-6 flex items-center gap-3",
|
|
9219
|
+
children: [/* @__PURE__ */ jsx(Avatar, {
|
|
9220
|
+
className: cn("size-9 ring-1 ring-border", avatarClassName),
|
|
9221
|
+
children: item.author.avatar ? /* @__PURE__ */ jsx(AvatarFallback, {
|
|
9222
|
+
className: "text-xs",
|
|
9223
|
+
children: item.author.avatar
|
|
9224
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [item.author.avatarUrl ? /* @__PURE__ */ jsx(AvatarImage, {
|
|
9225
|
+
src: item.author.avatarUrl,
|
|
9226
|
+
alt: item.author.name
|
|
9227
|
+
}) : null, /* @__PURE__ */ jsx(AvatarFallback, {
|
|
9228
|
+
className: "text-xs",
|
|
9229
|
+
children: testimonialInitials(item.author.name)
|
|
9230
|
+
})] })
|
|
9231
|
+
}), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
9232
|
+
className: cn("mb-0.5 text-base font-medium leading-tight", authorNameClassName),
|
|
9233
|
+
children: item.author.name
|
|
9234
|
+
}), item.author.title ? /* @__PURE__ */ jsx("div", {
|
|
9235
|
+
className: cn("text-sm font-normal text-muted-foreground", authorTitleClassName),
|
|
9236
|
+
children: item.author.title
|
|
9237
|
+
}) : null] })]
|
|
9238
|
+
})]
|
|
9239
|
+
})
|
|
9240
|
+
}, item.id))
|
|
9241
|
+
}),
|
|
9242
|
+
below ? controls : null,
|
|
9243
|
+
/* @__PURE__ */ jsx("p", {
|
|
9244
|
+
className: "sr-only",
|
|
9245
|
+
"aria-live": "polite",
|
|
9246
|
+
"aria-atomic": "true",
|
|
9247
|
+
children: items.length > 0 ? slideStatus(shown.first + 1, shown.last + 1, items.length) : null
|
|
9248
|
+
})
|
|
9249
|
+
]
|
|
8865
9250
|
})
|
|
8866
9251
|
})
|
|
8867
9252
|
});
|
|
@@ -8897,23 +9282,28 @@ function ResourceCategories({ item, categoryStyles }) {
|
|
|
8897
9282
|
}
|
|
8898
9283
|
function ResourceMeta({ item, tone = "default" }) {
|
|
8899
9284
|
const mutedClass = tone === "light" ? "text-white/75" : "text-muted-foreground";
|
|
9285
|
+
const { author } = item;
|
|
9286
|
+
if (!author) return /* @__PURE__ */ jsx("div", {
|
|
9287
|
+
className: cn("text-sm", mutedClass),
|
|
9288
|
+
children: item.date
|
|
9289
|
+
});
|
|
8900
9290
|
return /* @__PURE__ */ jsxs("div", {
|
|
8901
9291
|
className: "flex items-center gap-2.5",
|
|
8902
9292
|
children: [/* @__PURE__ */ jsx(Avatar, {
|
|
8903
9293
|
className: "size-8",
|
|
8904
|
-
children:
|
|
8905
|
-
src:
|
|
8906
|
-
alt:
|
|
9294
|
+
children: author.avatar ? author.avatar : /* @__PURE__ */ jsxs(Fragment, { children: [author.avatarUrl && /* @__PURE__ */ jsx(AvatarImage, {
|
|
9295
|
+
src: author.avatarUrl,
|
|
9296
|
+
alt: author.name
|
|
8907
9297
|
}), /* @__PURE__ */ jsx(AvatarFallback, {
|
|
8908
9298
|
className: "text-xs",
|
|
8909
|
-
children: initials(
|
|
9299
|
+
children: initials(author.name)
|
|
8910
9300
|
})] })
|
|
8911
9301
|
}), /* @__PURE__ */ jsxs("div", {
|
|
8912
9302
|
className: "text-sm",
|
|
8913
9303
|
children: [
|
|
8914
9304
|
/* @__PURE__ */ jsx("span", {
|
|
8915
9305
|
className: cn("font-medium", tone === "light" && "text-white"),
|
|
8916
|
-
children:
|
|
9306
|
+
children: author.name
|
|
8917
9307
|
}),
|
|
8918
9308
|
/* @__PURE__ */ jsxs("span", {
|
|
8919
9309
|
className: mutedClass,
|
|
@@ -9104,7 +9494,7 @@ function ResourceListCard({ item, categoryStyles, cardVariant = "default", rende
|
|
|
9104
9494
|
})]
|
|
9105
9495
|
});
|
|
9106
9496
|
}
|
|
9107
|
-
const ResourcesBlock = React.forwardRef(({ eyebrow, title = "Resources & Whitepapers", subtitle, featured, resources, categoryStyles, cardVariant = "default", renderLink = renderPlainLink, containerClassName, className, ...props }, ref) => {
|
|
9497
|
+
const ResourcesBlock = React.forwardRef(({ eyebrow, title = "Resources & Whitepapers", subtitle, featured, resources, categoryStyles, cardVariant = "default", renderLink = renderPlainLink, containerClassName, viewAll, className, ...props }, ref) => {
|
|
9108
9498
|
return /* @__PURE__ */ jsx("section", {
|
|
9109
9499
|
ref,
|
|
9110
9500
|
className: cn("py-16 md:py-24", className),
|
|
@@ -9112,26 +9502,36 @@ const ResourcesBlock = React.forwardRef(({ eyebrow, title = "Resources & Whitepa
|
|
|
9112
9502
|
children: /* @__PURE__ */ jsxs("div", {
|
|
9113
9503
|
className: cn("mx-auto max-w-6xl px-4 sm:px-6", containerClassName),
|
|
9114
9504
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
9115
|
-
className: "mb-8
|
|
9116
|
-
children: [
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9505
|
+
className: "mb-8 flex flex-wrap items-end justify-between gap-4 md:mb-12",
|
|
9506
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
9507
|
+
className: "max-w-2xl",
|
|
9508
|
+
children: [
|
|
9509
|
+
eyebrow != null ? /* @__PURE__ */ jsx("div", {
|
|
9510
|
+
"data-resources-eyebrow": true,
|
|
9511
|
+
className: "mb-4",
|
|
9512
|
+
children: typeof eyebrow === "string" ? /* @__PURE__ */ jsx(Badge, {
|
|
9513
|
+
variant: "outline",
|
|
9514
|
+
className: "h-7 rounded-full px-3 font-medium",
|
|
9515
|
+
children: eyebrow
|
|
9516
|
+
}) : eyebrow
|
|
9517
|
+
}) : null,
|
|
9518
|
+
/* @__PURE__ */ jsx("h2", {
|
|
9519
|
+
className: "text-2xl font-semibold tracking-tight md:text-3xl",
|
|
9520
|
+
children: title
|
|
9521
|
+
}),
|
|
9522
|
+
subtitle && /* @__PURE__ */ jsx("p", {
|
|
9523
|
+
className: "mt-2 text-muted-foreground",
|
|
9524
|
+
children: subtitle
|
|
9525
|
+
})
|
|
9526
|
+
]
|
|
9527
|
+
}), viewAll ? renderLink({
|
|
9528
|
+
href: viewAll.href,
|
|
9529
|
+
className: "inline-flex min-h-11 items-center gap-1.5 text-sm font-medium text-primary underline-offset-4 hover:underline",
|
|
9530
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [viewAll.label, /* @__PURE__ */ jsx("span", {
|
|
9531
|
+
"aria-hidden": true,
|
|
9532
|
+
children: "→"
|
|
9533
|
+
})] })
|
|
9534
|
+
}) : null]
|
|
9135
9535
|
}), /* @__PURE__ */ jsxs("div", {
|
|
9136
9536
|
className: "grid gap-8 lg:grid-cols-2 lg:items-stretch",
|
|
9137
9537
|
children: [/* @__PURE__ */ jsx(FeaturedResourceCard, {
|
|
@@ -10169,6 +10569,6 @@ const ContrastStrip = React.forwardRef(({ checks, mode = "both", failingOnly = f
|
|
|
10169
10569
|
});
|
|
10170
10570
|
ContrastStrip.displayName = "ContrastStrip";
|
|
10171
10571
|
//#endregion
|
|
10172
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSidebarBlock, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BisonProvider, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CHROME_LOOK_CLASSES, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, ChoiceboxGroup, ChoiceboxItem, CodeInput, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContrastStrip, CurrencyInput, DataTable, DataTableColumnHeader, DatePicker, DateRangePicker, 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, EmptyStateBlock, FAQColumnsBlock, FIELD_LABEL_SPACING, FIELD_NOTE_SPACING, FieldGroupScope, FieldNote, FieldProvider, FilterButton, FloatingNavBlock, FooterBlock, ForgotPasswordBlock, Form, FormError, FormField, HeaderBlock, HeroCompact, HeroSweep, Input, InputGroup, JsonLd, Kbd, Label, LookSurface, MaintenanceBlock, MediaCard, MegaMenuPanel, NapBlock, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, NotificationSettingsBlock, OutlinedField, PageShell, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverTrigger, ProcessStepsBlock, ProfileSettingsBlock, Progress, ProgressBar, RadioGroup, RadioGroupItem, Rating, ResetPasswordBlock, ResourcesBlock, ReviewsBlock, RotatingBadge, SavedPing, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShowcasePanelsBlock, Sidebar, SidebarBlock, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignInBlock, SignUpBlock, Skeleton, Slider, SocialFeedBlock, SocialProviders, Spinner, StatsBandBlock, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperLabel, StepperSeparator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialCarousel, TestimonialMasonry, TextContent, TextEditor, Textarea, ThemeProvider, ThemeScope, ThemeShowcase, TimePicker, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipDescription, TooltipMedia, TooltipProvider, TooltipShortcut, TooltipTitle, TooltipTrigger, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, avgFooter, badgeVariants, buttonVariants, cn, countFooter, dateRangePresets, editableTitleVariants, describedBy as fieldDescribedBy, fieldSpacing, filterChips, filterCount, formatUsPhone, megaMenuGridColumns, megaMenuToFloatingNavItems, megaMenuVariantsFromLooks, megaMenuVariantsFromTones, napRecordToJsonLd, navigationMenuTriggerStyle, newTabAttributes, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, renderPlainLink, spinnerVariants, splitFieldNotes, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, sumFooter, switchVariants, testimonialInitials, themeShowcaseSections, toColumnFilters, toast, toggleFilter, useCarousel, useDensity, useField, useFieldControl, useFieldGroup, useFieldIds, useFieldNotes, useFormContext, useHideOnScroll, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
10572
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSidebarBlock, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BisonProvider, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CHROME_LOOK_CLASSES, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, ChoiceboxGroup, ChoiceboxItem, CodeInput, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContrastStrip, CurrencyInput, DataTable, DataTableColumnHeader, DatePicker, DateRangePicker, 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, EmptyStateBlock, FAQColumnsBlock, FIELD_LABEL_SPACING, FIELD_NOTE_SPACING, FeatureChecklistBlock, FeatureHighlightsBlock, FieldGroupScope, FieldNote, FieldProvider, FilterButton, FloatingNavBlock, FooterBlock, ForgotPasswordBlock, Form, FormError, FormField, HeaderBlock, HeroCompact, HeroSimple, HeroSweep, Input, InputGroup, JsonLd, Kbd, Label, LookSurface, MaintenanceBlock, MediaCard, MegaMenuPanel, NapBlock, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, NotificationSettingsBlock, OutlinedField, PageShell, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverTrigger, ProcessStepsBlock, ProfileSettingsBlock, Progress, ProgressBar, RadioGroup, RadioGroupItem, Rating, ResetPasswordBlock, ResourcesBlock, ReviewsBlock, RotatingBadge, SavedPing, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShowcasePanelsBlock, Sidebar, SidebarBlock, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignInBlock, SignUpBlock, Skeleton, Slider, SocialFeedBlock, SocialProviders, Spinner, StatsBandBlock, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperLabel, StepperSeparator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialCarousel, TestimonialMasonry, TextContent, TextEditor, Textarea, ThemeProvider, ThemeScope, ThemeShowcase, TimePicker, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipDescription, TooltipMedia, TooltipProvider, TooltipShortcut, TooltipTitle, TooltipTrigger, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, avgFooter, badgeVariants, buttonVariants, cn, countFooter, dateRangePresets, editableTitleVariants, describedBy as fieldDescribedBy, fieldSpacing, filterChips, filterCount, formatUsPhone, megaMenuGridColumns, megaMenuToFloatingNavItems, megaMenuVariantsFromLooks, megaMenuVariantsFromTones, napRecordToJsonLd, navigationMenuTriggerStyle, newTabAttributes, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, renderPlainLink, spinnerVariants, splitFieldNotes, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, sumFooter, switchVariants, testimonialInitials, themeShowcaseSections, toColumnFilters, toast, toggleFilter, useCarousel, useDensity, useField, useFieldControl, useFieldGroup, useFieldIds, useFieldNotes, useFormContext, useHideOnScroll, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
10173
10573
|
|
|
10174
10574
|
//# sourceMappingURL=index.mjs.map
|