@bison-lab/ui 1.8.0 → 1.10.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 +512 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +974 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { AnimatePresence, motion } from "motion/react";
|
|
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
|
-
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, CircleX, Code, Eye, EyeOff, FastForward, FileQuestion, Heading1, Heading2, Heading3, Image, Inbox, Info, Italic, Link, List, ListOrdered, LoaderCircle, LogOut, Mail, Menu, Minus, MoreHorizontal, PanelLeft, Pencil, Plus, Quote, Redo, Search, Server, Settings2, ShieldAlert, Star, Strikethrough, TriangleAlert, Underline, Undo, Unlink, Wrench, X } from "lucide-react";
|
|
9
|
+
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, FastForward, FileQuestion, Heading1, Heading2, Heading3, Image, Inbox, Info, Italic, Link, List, ListOrdered, LoaderCircle, LogOut, Mail, MapPin, Menu, Minus, MoreHorizontal, MoveUpRight, PanelLeft, Pause, Pencil, Phone, Play, Plus, Quote, Redo, Search, Server, Settings2, ShieldAlert, Star, Strikethrough, TriangleAlert, Underline, Undo, Unlink, Wrench, X } from "lucide-react";
|
|
10
10
|
import { DayPicker } from "react-day-picker";
|
|
11
11
|
import { endOfMonth, endOfWeek, format, startOfMonth, startOfWeek, startOfYear, subDays, subMonths, subYears } from "date-fns";
|
|
12
12
|
import { EditorContent, useEditor } from "@tiptap/react";
|
|
@@ -85,6 +85,66 @@ function useIsMobile() {
|
|
|
85
85
|
return !!isMobile;
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
|
+
//#region src/hooks/use-hide-on-scroll.ts
|
|
89
|
+
/**
|
|
90
|
+
* Tracks scroll direction and reports whether a fixed element should hide.
|
|
91
|
+
* `hidden` turns on while scrolling down past `threshold` and off again on
|
|
92
|
+
* the first meaningful scroll up. Reads are rAF-throttled, so a fast scroll
|
|
93
|
+
* costs one state update per frame at most.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```tsx
|
|
97
|
+
* const { hidden } = useHideOnScroll();
|
|
98
|
+
* <header className={hidden ? "-translate-y-full" : "translate-y-0"} />
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
function useHideOnScroll(options = {}) {
|
|
102
|
+
const { threshold = 80, tolerance = 6, disabled = false } = options;
|
|
103
|
+
const [hidden, setHidden] = React.useState(false);
|
|
104
|
+
const [scrolled, setScrolled] = React.useState(false);
|
|
105
|
+
const lastY = React.useRef(0);
|
|
106
|
+
const frame = React.useRef(null);
|
|
107
|
+
React.useEffect(() => {
|
|
108
|
+
const read = () => {
|
|
109
|
+
frame.current = null;
|
|
110
|
+
const y = Math.max(window.scrollY, 0);
|
|
111
|
+
const delta = y - lastY.current;
|
|
112
|
+
setScrolled(y > threshold);
|
|
113
|
+
if (disabled) {
|
|
114
|
+
setHidden(false);
|
|
115
|
+
lastY.current = y;
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (y <= threshold) {
|
|
119
|
+
setHidden(false);
|
|
120
|
+
lastY.current = y;
|
|
121
|
+
} else if (Math.abs(delta) >= tolerance) {
|
|
122
|
+
setHidden(delta > 0);
|
|
123
|
+
lastY.current = y;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
const onScroll = () => {
|
|
127
|
+
if (frame.current === null) frame.current = requestAnimationFrame(read);
|
|
128
|
+
};
|
|
129
|
+
lastY.current = Math.max(window.scrollY, 0);
|
|
130
|
+
read();
|
|
131
|
+
window.addEventListener("scroll", onScroll, { passive: true });
|
|
132
|
+
return () => {
|
|
133
|
+
window.removeEventListener("scroll", onScroll);
|
|
134
|
+
if (frame.current !== null) cancelAnimationFrame(frame.current);
|
|
135
|
+
frame.current = null;
|
|
136
|
+
};
|
|
137
|
+
}, [
|
|
138
|
+
threshold,
|
|
139
|
+
tolerance,
|
|
140
|
+
disabled
|
|
141
|
+
]);
|
|
142
|
+
return {
|
|
143
|
+
hidden,
|
|
144
|
+
scrolled
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
88
148
|
//#region src/providers/theme-provider.tsx
|
|
89
149
|
const ThemeProviderContext = React.createContext(void 0);
|
|
90
150
|
function ThemeProvider({ children, defaultTheme = "system", storageKey = "bison-theme", attribute = "data-theme", ...props }) {
|
|
@@ -3004,7 +3064,7 @@ const AccordionTrigger = React.forwardRef(({ className, children, ...props }, re
|
|
|
3004
3064
|
className: "flex",
|
|
3005
3065
|
children: /* @__PURE__ */ jsxs(Accordion$1.Trigger, {
|
|
3006
3066
|
ref,
|
|
3007
|
-
className: cn("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", className),
|
|
3067
|
+
className: cn("flex flex-1 cursor-pointer items-center justify-between py-4 font-medium transition-all hover:underline disabled:cursor-not-allowed [&[data-state=open]>svg]:rotate-180", className),
|
|
3008
3068
|
...props,
|
|
3009
3069
|
children: [children, /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-normal" })]
|
|
3010
3070
|
})
|
|
@@ -5423,6 +5483,172 @@ function HeaderBlock({ logo, nav, actions, onMenuToggle, sticky = true, classNam
|
|
|
5423
5483
|
});
|
|
5424
5484
|
}
|
|
5425
5485
|
//#endregion
|
|
5486
|
+
//#region src/blocks/layout/floating-nav-block.tsx
|
|
5487
|
+
const PANEL_COLUMNS = {
|
|
5488
|
+
1: "w-[min(92vw,20rem)] grid-cols-1",
|
|
5489
|
+
2: "w-[min(92vw,36rem)] grid-cols-1 sm:grid-cols-2",
|
|
5490
|
+
3: "w-[min(92vw,48rem)] grid-cols-1 sm:grid-cols-3"
|
|
5491
|
+
};
|
|
5492
|
+
const FloatingNavBlock = React.forwardRef(({ logo, items = [], actions, renderLink, hideOnScroll = true, scrollThreshold = 80, viewport = false, navLabel = "Main", mobileMenuLabel = "Toggle menu", containerClassName, navClassName, className, ...props }, ref) => {
|
|
5493
|
+
const [openPanel, setOpenPanel] = React.useState("");
|
|
5494
|
+
const [mobileOpen, setMobileOpen] = React.useState(false);
|
|
5495
|
+
const { hidden, scrolled } = useHideOnScroll({
|
|
5496
|
+
threshold: scrollThreshold,
|
|
5497
|
+
disabled: !hideOnScroll || openPanel !== "" || mobileOpen
|
|
5498
|
+
});
|
|
5499
|
+
const closeDrawerOnLink = React.useCallback((event) => {
|
|
5500
|
+
if (event.target.closest("a")) setMobileOpen(false);
|
|
5501
|
+
}, []);
|
|
5502
|
+
const link = React.useCallback((linkProps) => {
|
|
5503
|
+
if (renderLink) return renderLink(linkProps);
|
|
5504
|
+
const { children, ...rest } = linkProps;
|
|
5505
|
+
return /* @__PURE__ */ jsx("a", {
|
|
5506
|
+
...rest,
|
|
5507
|
+
children
|
|
5508
|
+
});
|
|
5509
|
+
}, [renderLink]);
|
|
5510
|
+
return /* @__PURE__ */ jsx("header", {
|
|
5511
|
+
ref,
|
|
5512
|
+
"data-hidden": hidden,
|
|
5513
|
+
"data-scrolled": scrolled,
|
|
5514
|
+
className: cn("pointer-events-none fixed inset-x-0 top-0 z-[var(--z-sticky)] pt-4 transition-transform duration-slow ease-out", hidden && "-translate-y-full", className),
|
|
5515
|
+
...props,
|
|
5516
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
5517
|
+
className: cn("mx-auto w-full max-w-6xl px-4 sm:px-6", containerClassName),
|
|
5518
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
5519
|
+
className: cn("pointer-events-auto flex items-center gap-6 rounded-xl border bg-background/85 px-3 py-3 shadow-lg backdrop-blur-2xl sm:px-5", navClassName),
|
|
5520
|
+
children: [
|
|
5521
|
+
/* @__PURE__ */ jsx("div", {
|
|
5522
|
+
className: "flex flex-1 items-center",
|
|
5523
|
+
children: logo
|
|
5524
|
+
}),
|
|
5525
|
+
items.length > 0 ? /* @__PURE__ */ jsx(NavigationMenu, {
|
|
5526
|
+
"aria-label": navLabel,
|
|
5527
|
+
viewport,
|
|
5528
|
+
value: openPanel,
|
|
5529
|
+
onValueChange: setOpenPanel,
|
|
5530
|
+
className: "hidden md:flex",
|
|
5531
|
+
children: /* @__PURE__ */ jsx(NavigationMenuList, {
|
|
5532
|
+
className: "gap-1",
|
|
5533
|
+
children: items.map((item) => {
|
|
5534
|
+
const panel = item.content ?? (item.items?.length ? /* @__PURE__ */ jsx("div", {
|
|
5535
|
+
className: cn("grid gap-1 p-2", PANEL_COLUMNS[item.columns ?? 2]),
|
|
5536
|
+
children: item.items.map((sub) => /* @__PURE__ */ jsx(NavigationMenuLink, {
|
|
5537
|
+
asChild: true,
|
|
5538
|
+
children: link({
|
|
5539
|
+
href: sub.href,
|
|
5540
|
+
className: "flex select-none items-start gap-3 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
|
|
5541
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [sub.icon ? /* @__PURE__ */ jsx("span", {
|
|
5542
|
+
className: "mt-0.5 shrink-0 text-muted-foreground",
|
|
5543
|
+
children: sub.icon
|
|
5544
|
+
}) : null, /* @__PURE__ */ jsxs("span", {
|
|
5545
|
+
className: "min-w-0",
|
|
5546
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
5547
|
+
className: "block text-sm font-medium",
|
|
5548
|
+
children: sub.label
|
|
5549
|
+
}), sub.description ? /* @__PURE__ */ jsx("span", {
|
|
5550
|
+
className: "mt-1.5 block text-sm leading-snug text-muted-foreground",
|
|
5551
|
+
children: sub.description
|
|
5552
|
+
}) : null]
|
|
5553
|
+
})] })
|
|
5554
|
+
})
|
|
5555
|
+
}, sub.href))
|
|
5556
|
+
}) : null);
|
|
5557
|
+
return /* @__PURE__ */ jsx(NavigationMenuItem, {
|
|
5558
|
+
value: item.label,
|
|
5559
|
+
children: panel ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(NavigationMenuTrigger, {
|
|
5560
|
+
"data-active": item.active,
|
|
5561
|
+
children: item.label
|
|
5562
|
+
}), /* @__PURE__ */ jsx(NavigationMenuContent, { children: panel })] }) : /* @__PURE__ */ jsx(NavigationMenuLink, {
|
|
5563
|
+
asChild: true,
|
|
5564
|
+
active: item.active,
|
|
5565
|
+
children: link({
|
|
5566
|
+
href: item.href ?? "#",
|
|
5567
|
+
className: navigationMenuTriggerStyle(),
|
|
5568
|
+
"aria-current": item.active ? "page" : void 0,
|
|
5569
|
+
children: item.label
|
|
5570
|
+
})
|
|
5571
|
+
})
|
|
5572
|
+
}, item.label);
|
|
5573
|
+
})
|
|
5574
|
+
})
|
|
5575
|
+
}) : null,
|
|
5576
|
+
/* @__PURE__ */ jsxs("div", {
|
|
5577
|
+
className: "flex flex-1 items-center justify-end gap-2",
|
|
5578
|
+
children: [actions, items.length > 0 ? /* @__PURE__ */ jsxs(Sheet, {
|
|
5579
|
+
open: mobileOpen,
|
|
5580
|
+
onOpenChange: setMobileOpen,
|
|
5581
|
+
children: [/* @__PURE__ */ jsx(SheetTrigger, {
|
|
5582
|
+
asChild: true,
|
|
5583
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
5584
|
+
variant: "ghost",
|
|
5585
|
+
size: "icon",
|
|
5586
|
+
className: "md:hidden",
|
|
5587
|
+
"aria-label": mobileMenuLabel,
|
|
5588
|
+
children: /* @__PURE__ */ jsx(Menu, {
|
|
5589
|
+
className: "size-5",
|
|
5590
|
+
"aria-hidden": true
|
|
5591
|
+
})
|
|
5592
|
+
})
|
|
5593
|
+
}), /* @__PURE__ */ jsxs(SheetContent, {
|
|
5594
|
+
side: "right",
|
|
5595
|
+
size: "sm",
|
|
5596
|
+
"aria-describedby": void 0,
|
|
5597
|
+
children: [/* @__PURE__ */ jsx(SheetTitle, {
|
|
5598
|
+
className: "sr-only",
|
|
5599
|
+
children: navLabel
|
|
5600
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
5601
|
+
onClick: closeDrawerOnLink,
|
|
5602
|
+
children: [logo ? /* @__PURE__ */ jsx("div", {
|
|
5603
|
+
className: "flex items-center pr-12",
|
|
5604
|
+
children: logo
|
|
5605
|
+
}) : null, /* @__PURE__ */ jsx("nav", {
|
|
5606
|
+
className: cn(logo ? "mt-8" : "mt-6"),
|
|
5607
|
+
children: /* @__PURE__ */ jsx(Accordion, {
|
|
5608
|
+
type: "single",
|
|
5609
|
+
collapsible: true,
|
|
5610
|
+
className: "w-full",
|
|
5611
|
+
children: items.map((item) => {
|
|
5612
|
+
const subs = item.items ?? [];
|
|
5613
|
+
if (!subs.length && !item.content) return /* @__PURE__ */ jsx("div", {
|
|
5614
|
+
className: "border-b",
|
|
5615
|
+
children: link({
|
|
5616
|
+
href: item.href ?? "#",
|
|
5617
|
+
className: "flex py-4 text-base font-medium hover:underline",
|
|
5618
|
+
"aria-current": item.active ? "page" : void 0,
|
|
5619
|
+
onClick: () => setMobileOpen(false),
|
|
5620
|
+
children: item.label
|
|
5621
|
+
})
|
|
5622
|
+
}, item.label);
|
|
5623
|
+
return /* @__PURE__ */ jsxs(AccordionItem, {
|
|
5624
|
+
value: item.label,
|
|
5625
|
+
children: [/* @__PURE__ */ jsx(AccordionTrigger, {
|
|
5626
|
+
className: "text-base",
|
|
5627
|
+
children: item.label
|
|
5628
|
+
}), /* @__PURE__ */ jsx(AccordionContent, {
|
|
5629
|
+
className: "flex flex-col gap-1 pl-1",
|
|
5630
|
+
children: item.content ?? subs.map((sub) => /* @__PURE__ */ jsx(React.Fragment, { children: link({
|
|
5631
|
+
href: sub.href,
|
|
5632
|
+
className: "block rounded-md px-2 py-2 text-sm text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5633
|
+
onClick: () => setMobileOpen(false),
|
|
5634
|
+
children: sub.label
|
|
5635
|
+
}) }, sub.href))
|
|
5636
|
+
})]
|
|
5637
|
+
}, item.label);
|
|
5638
|
+
})
|
|
5639
|
+
})
|
|
5640
|
+
})]
|
|
5641
|
+
})]
|
|
5642
|
+
})]
|
|
5643
|
+
}) : null]
|
|
5644
|
+
})
|
|
5645
|
+
]
|
|
5646
|
+
})
|
|
5647
|
+
})
|
|
5648
|
+
});
|
|
5649
|
+
});
|
|
5650
|
+
FloatingNavBlock.displayName = "FloatingNavBlock";
|
|
5651
|
+
//#endregion
|
|
5426
5652
|
//#region src/blocks/layout/sidebar-block.tsx
|
|
5427
5653
|
function SidebarItemComponent({ item, collapsed }) {
|
|
5428
5654
|
return /* @__PURE__ */ jsxs(item.href ? "a" : "button", {
|
|
@@ -5904,6 +6130,751 @@ const ReviewsBlock = React.forwardRef(({ reviews, averageRating, totalReviews, t
|
|
|
5904
6130
|
});
|
|
5905
6131
|
ReviewsBlock.displayName = "ReviewsBlock";
|
|
5906
6132
|
//#endregion
|
|
6133
|
+
//#region src/blocks/marketing/json-ld.tsx
|
|
6134
|
+
/**
|
|
6135
|
+
* Maps a `NapRecord` — the same object rendered by `NapBlock` — onto
|
|
6136
|
+
* schema.org's actual pattern for one business, one address, and multiple
|
|
6137
|
+
* named departments: a single LocalBusiness-family node with a `department`
|
|
6138
|
+
* array, where each department is its own LocalBusiness-family node
|
|
6139
|
+
* carrying its own `name` and `telephone` and inheriting the parent
|
|
6140
|
+
* `address` (https://schema.org/department). This is the real schema.org
|
|
6141
|
+
* shape for this case — deliberately not a bespoke "locations" array — so
|
|
6142
|
+
* the output validates and matches what Google expects for multi-department
|
|
6143
|
+
* local businesses.
|
|
6144
|
+
*
|
|
6145
|
+
* - Exactly one department: its phone is promoted to the top-level
|
|
6146
|
+
* `telephone` and no `department` array is emitted. The common
|
|
6147
|
+
* single-phone business shouldn't produce a spurious nested node.
|
|
6148
|
+
* - Two or more departments: every one becomes its own `department` entry
|
|
6149
|
+
* and the top-level `telephone` is omitted, so multiple phone numbers are
|
|
6150
|
+
* never flattened into one generic number.
|
|
6151
|
+
*/
|
|
6152
|
+
function napRecordToJsonLd(record) {
|
|
6153
|
+
const { name, type, address, departments, url } = record;
|
|
6154
|
+
const shaped = {
|
|
6155
|
+
"@context": "https://schema.org",
|
|
6156
|
+
"@type": type,
|
|
6157
|
+
name,
|
|
6158
|
+
address: {
|
|
6159
|
+
"@type": "PostalAddress",
|
|
6160
|
+
streetAddress: address.streetAddress,
|
|
6161
|
+
addressLocality: address.addressLocality,
|
|
6162
|
+
addressRegion: address.addressRegion,
|
|
6163
|
+
postalCode: address.postalCode,
|
|
6164
|
+
addressCountry: address.addressCountry ?? "US"
|
|
6165
|
+
}
|
|
6166
|
+
};
|
|
6167
|
+
if (url) shaped.url = url;
|
|
6168
|
+
if (departments.length <= 1) {
|
|
6169
|
+
if (departments[0]) shaped.telephone = departments[0].phone.e164;
|
|
6170
|
+
return shaped;
|
|
6171
|
+
}
|
|
6172
|
+
shaped.department = departments.map((dept) => ({
|
|
6173
|
+
"@type": dept.type ?? type,
|
|
6174
|
+
name: dept.name,
|
|
6175
|
+
telephone: dept.phone.e164
|
|
6176
|
+
}));
|
|
6177
|
+
return shaped;
|
|
6178
|
+
}
|
|
6179
|
+
function isNapRecord(data) {
|
|
6180
|
+
return typeof data === "object" && data !== null && Array.isArray(data.departments) && typeof data.address === "object";
|
|
6181
|
+
}
|
|
6182
|
+
/**
|
|
6183
|
+
* Escapes `<` so a string value (e.g. a name containing `<\/script>`) can't
|
|
6184
|
+
* terminate the tag early. Standard hardening for inline JSON in HTML; see
|
|
6185
|
+
* https://v8.dev/features/subsume-json.
|
|
6186
|
+
*/
|
|
6187
|
+
function safeJsonStringify(value) {
|
|
6188
|
+
return JSON.stringify(value).replace(/</g, "\\u003c");
|
|
6189
|
+
}
|
|
6190
|
+
/**
|
|
6191
|
+
* Dumb serializer: renders a `<script type="application/ld+json">` tag from
|
|
6192
|
+
* whatever schema.org-shaped object it's given. Contains no business logic
|
|
6193
|
+
* about what a business "should" look like — the only transformation it
|
|
6194
|
+
* ever performs is the structural `NapRecord` → LocalBusiness mapping in
|
|
6195
|
+
* `napRecordToJsonLd`, and only when handed a `NapRecord` instead of an
|
|
6196
|
+
* already-shaped object.
|
|
6197
|
+
*/
|
|
6198
|
+
const JsonLd = React.forwardRef(({ data, nonce }, ref) => {
|
|
6199
|
+
return /* @__PURE__ */ jsx("script", {
|
|
6200
|
+
ref,
|
|
6201
|
+
type: "application/ld+json",
|
|
6202
|
+
nonce,
|
|
6203
|
+
dangerouslySetInnerHTML: { __html: safeJsonStringify(isNapRecord(data) ? napRecordToJsonLd(data) : data) }
|
|
6204
|
+
});
|
|
6205
|
+
});
|
|
6206
|
+
JsonLd.displayName = "JsonLd";
|
|
6207
|
+
//#endregion
|
|
6208
|
+
//#region src/blocks/marketing/nap-block.tsx
|
|
6209
|
+
const NapBlock = React.forwardRef(({ record, showName = true, headingLevel = "h3", addressIcon, phoneIcon, className, ...props }, ref) => {
|
|
6210
|
+
const { name, address, departments, url } = record;
|
|
6211
|
+
const country = address.addressCountry ?? "US";
|
|
6212
|
+
const Heading = headingLevel;
|
|
6213
|
+
const multiDepartment = departments.length > 1;
|
|
6214
|
+
return /* @__PURE__ */ jsxs("address", {
|
|
6215
|
+
ref,
|
|
6216
|
+
className: cn("not-italic space-y-4", className),
|
|
6217
|
+
...props,
|
|
6218
|
+
children: [
|
|
6219
|
+
showName && /* @__PURE__ */ jsx(Heading, {
|
|
6220
|
+
className: "text-base font-semibold tracking-tight",
|
|
6221
|
+
children: url ? /* @__PURE__ */ jsx("a", {
|
|
6222
|
+
href: url,
|
|
6223
|
+
className: "hover:underline",
|
|
6224
|
+
children: name
|
|
6225
|
+
}) : name
|
|
6226
|
+
}),
|
|
6227
|
+
/* @__PURE__ */ jsxs("div", {
|
|
6228
|
+
className: "flex items-start gap-2 text-sm text-muted-foreground",
|
|
6229
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
6230
|
+
"aria-hidden": true,
|
|
6231
|
+
className: "mt-0.5 shrink-0 text-foreground/60",
|
|
6232
|
+
children: addressIcon ?? /* @__PURE__ */ jsx(MapPin, {
|
|
6233
|
+
className: "size-4",
|
|
6234
|
+
strokeWidth: 1.5
|
|
6235
|
+
})
|
|
6236
|
+
}), /* @__PURE__ */ jsxs("span", { children: [
|
|
6237
|
+
address.streetAddress,
|
|
6238
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
6239
|
+
address.addressLocality,
|
|
6240
|
+
", ",
|
|
6241
|
+
address.addressRegion,
|
|
6242
|
+
" ",
|
|
6243
|
+
address.postalCode,
|
|
6244
|
+
country !== "US" && /* @__PURE__ */ jsxs(Fragment, { children: [", ", country] })
|
|
6245
|
+
] })]
|
|
6246
|
+
}),
|
|
6247
|
+
/* @__PURE__ */ jsx("ul", {
|
|
6248
|
+
className: "space-y-2",
|
|
6249
|
+
children: departments.map((dept) => /* @__PURE__ */ jsxs("li", {
|
|
6250
|
+
className: "flex items-center gap-2 text-sm",
|
|
6251
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
6252
|
+
"aria-hidden": true,
|
|
6253
|
+
className: "shrink-0 text-foreground/60",
|
|
6254
|
+
children: phoneIcon ?? /* @__PURE__ */ jsx(Phone, {
|
|
6255
|
+
className: "size-4",
|
|
6256
|
+
strokeWidth: 1.5
|
|
6257
|
+
})
|
|
6258
|
+
}), /* @__PURE__ */ jsxs("span", { children: [multiDepartment && /* @__PURE__ */ jsxs("span", {
|
|
6259
|
+
className: "mr-1.5 font-medium text-foreground",
|
|
6260
|
+
children: [dept.name, ":"]
|
|
6261
|
+
}), /* @__PURE__ */ jsx("a", {
|
|
6262
|
+
href: `tel:${dept.phone.e164}`,
|
|
6263
|
+
className: "hover:underline",
|
|
6264
|
+
children: dept.phone.display ?? formatUsPhone(dept.phone.e164)
|
|
6265
|
+
})] })]
|
|
6266
|
+
}, dept.id))
|
|
6267
|
+
})
|
|
6268
|
+
]
|
|
6269
|
+
});
|
|
6270
|
+
});
|
|
6271
|
+
NapBlock.displayName = "NapBlock";
|
|
6272
|
+
//#endregion
|
|
6273
|
+
//#region src/blocks/marketing/showcase-panels-block.tsx
|
|
6274
|
+
/** 1 → "I", 2 → "II", … Enough for any sane panel count. */
|
|
6275
|
+
function toRoman(n) {
|
|
6276
|
+
const table = [
|
|
6277
|
+
[10, "X"],
|
|
6278
|
+
[9, "IX"],
|
|
6279
|
+
[5, "V"],
|
|
6280
|
+
[4, "IV"],
|
|
6281
|
+
[1, "I"]
|
|
6282
|
+
];
|
|
6283
|
+
let out = "";
|
|
6284
|
+
for (const [value, glyph] of table) while (n >= value) {
|
|
6285
|
+
out += glyph;
|
|
6286
|
+
n -= value;
|
|
6287
|
+
}
|
|
6288
|
+
return out;
|
|
6289
|
+
}
|
|
6290
|
+
const EASE_LAYOUT = "cubic-bezier(0, 0, 0.2, 1)";
|
|
6291
|
+
const ShowcasePanelsBlock = React.forwardRef(({ items, defaultActiveIndex = 0, activeIndex: activeIndexProp, onActiveIndexChange, onItemAction, watermark, ariaLabel = "Showcase panels", actionLabel = (item) => `Read more about ${item.title}`, actionIcon, renderImage, spineVariant = "numbered", renderSpine, labels, className, ...props }, ref) => {
|
|
6292
|
+
const [activeIndexState, setActiveIndexState] = React.useState(defaultActiveIndex);
|
|
6293
|
+
const activeIndex = activeIndexProp ?? activeIndexState;
|
|
6294
|
+
const [hoverIndex, setHoverIndex] = React.useState(null);
|
|
6295
|
+
const uid = React.useId();
|
|
6296
|
+
const tabRefs = React.useRef([]);
|
|
6297
|
+
const tabId = (i) => `${uid}-tab-${i}`;
|
|
6298
|
+
const panelId = (i) => `${uid}-panel-${i}`;
|
|
6299
|
+
const setActiveIndex = (i) => {
|
|
6300
|
+
setActiveIndexState(i);
|
|
6301
|
+
onActiveIndexChange?.(i);
|
|
6302
|
+
};
|
|
6303
|
+
const focusTab = (i) => {
|
|
6304
|
+
setActiveIndex(i);
|
|
6305
|
+
tabRefs.current[i]?.focus();
|
|
6306
|
+
};
|
|
6307
|
+
const handleTablistKeyDown = (event) => {
|
|
6308
|
+
const count = items.length;
|
|
6309
|
+
if (event.key === "ArrowRight") {
|
|
6310
|
+
event.preventDefault();
|
|
6311
|
+
focusTab((activeIndex + 1) % count);
|
|
6312
|
+
} else if (event.key === "ArrowLeft") {
|
|
6313
|
+
event.preventDefault();
|
|
6314
|
+
focusTab((activeIndex - 1 + count) % count);
|
|
6315
|
+
} else if (event.key === "Home") {
|
|
6316
|
+
event.preventDefault();
|
|
6317
|
+
focusTab(0);
|
|
6318
|
+
} else if (event.key === "End") {
|
|
6319
|
+
event.preventDefault();
|
|
6320
|
+
focusTab(count - 1);
|
|
6321
|
+
}
|
|
6322
|
+
};
|
|
6323
|
+
const shownIndex = hoverIndex ?? activeIndex;
|
|
6324
|
+
const gridTemplate = items.map((_, i) => i === shownIndex ? "3fr" : "1fr").join(" ");
|
|
6325
|
+
const selectedLabel = labels?.selected ?? "Selected";
|
|
6326
|
+
const previewLabel = labels?.preview ?? "Preview";
|
|
6327
|
+
const numeralFor = (item, i) => item.numeral ?? (spineVariant === "volume" ? toRoman(i + 1) : String(i + 1).padStart(2, "0"));
|
|
6328
|
+
const defaultImage = (item) => /* @__PURE__ */ jsx("img", {
|
|
6329
|
+
src: item.image.src,
|
|
6330
|
+
alt: item.image.alt ?? "",
|
|
6331
|
+
className: "absolute inset-0 h-full w-full object-cover"
|
|
6332
|
+
});
|
|
6333
|
+
const defaultSpine = (item, i, { numeral }) => {
|
|
6334
|
+
if (spineVariant === "minimal") return /* @__PURE__ */ jsx("span", {
|
|
6335
|
+
className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rotate-180 text-sm font-light tracking-[0.25em] whitespace-nowrap text-foreground/90 uppercase [writing-mode:vertical-rl] md:text-base",
|
|
6336
|
+
children: item.title
|
|
6337
|
+
});
|
|
6338
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6339
|
+
/* @__PURE__ */ jsx("span", {
|
|
6340
|
+
"aria-hidden": true,
|
|
6341
|
+
className: "absolute inset-y-0 left-0 w-px bg-foreground/15"
|
|
6342
|
+
}),
|
|
6343
|
+
/* @__PURE__ */ jsx("span", {
|
|
6344
|
+
"aria-hidden": true,
|
|
6345
|
+
className: "absolute inset-y-0 right-0 w-px bg-background/40"
|
|
6346
|
+
}),
|
|
6347
|
+
spineVariant === "volume" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6348
|
+
/* @__PURE__ */ jsx("span", {
|
|
6349
|
+
"aria-hidden": true,
|
|
6350
|
+
className: "absolute inset-x-2 top-10 h-px bg-foreground/15"
|
|
6351
|
+
}),
|
|
6352
|
+
/* @__PURE__ */ jsx("span", {
|
|
6353
|
+
"aria-hidden": true,
|
|
6354
|
+
className: "absolute inset-x-2 top-12 h-px bg-foreground/15"
|
|
6355
|
+
}),
|
|
6356
|
+
/* @__PURE__ */ jsx("span", {
|
|
6357
|
+
"aria-hidden": true,
|
|
6358
|
+
className: "absolute inset-x-2 bottom-10 h-px bg-foreground/15"
|
|
6359
|
+
}),
|
|
6360
|
+
/* @__PURE__ */ jsx("span", {
|
|
6361
|
+
"aria-hidden": true,
|
|
6362
|
+
className: "absolute inset-x-2 bottom-12 h-px bg-foreground/15"
|
|
6363
|
+
})
|
|
6364
|
+
] }),
|
|
6365
|
+
/* @__PURE__ */ jsx("span", {
|
|
6366
|
+
className: "absolute top-16 left-1/2 -translate-x-1/2 text-xl font-light tracking-widest text-foreground/70 md:text-2xl",
|
|
6367
|
+
children: numeral
|
|
6368
|
+
}),
|
|
6369
|
+
/* @__PURE__ */ jsx("span", {
|
|
6370
|
+
className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rotate-180 text-sm font-light tracking-[0.25em] whitespace-nowrap text-foreground/90 uppercase [writing-mode:vertical-rl] md:text-base",
|
|
6371
|
+
children: item.title
|
|
6372
|
+
}),
|
|
6373
|
+
watermark && /* @__PURE__ */ jsxs("span", {
|
|
6374
|
+
className: "absolute bottom-16 left-1/2 -translate-x-1/2 font-mono text-[0.625rem] tracking-widest text-foreground/40 uppercase",
|
|
6375
|
+
children: [
|
|
6376
|
+
watermark,
|
|
6377
|
+
" · ",
|
|
6378
|
+
String(i + 1).padStart(2, "0")
|
|
6379
|
+
]
|
|
6380
|
+
})
|
|
6381
|
+
] });
|
|
6382
|
+
};
|
|
6383
|
+
const cornerAction = (item, i) => {
|
|
6384
|
+
const icon = actionIcon ?? /* @__PURE__ */ jsx(MoveUpRight, {
|
|
6385
|
+
className: "size-4 transition-transform group-hover/cta:translate-x-0.5 group-hover/cta:-translate-y-0.5",
|
|
6386
|
+
strokeWidth: 1.5
|
|
6387
|
+
});
|
|
6388
|
+
const actionClass = "group/cta absolute top-5 right-5 z-10 grid size-10 place-items-center rounded-full bg-foreground/10 text-foreground backdrop-blur-sm transition-colors hover:bg-foreground/20 focus-visible:ring-2 focus-visible:ring-foreground/40 focus-visible:outline-none";
|
|
6389
|
+
if (item.href) return /* @__PURE__ */ jsx("a", {
|
|
6390
|
+
href: item.href,
|
|
6391
|
+
"aria-label": actionLabel(item),
|
|
6392
|
+
className: actionClass,
|
|
6393
|
+
children: icon
|
|
6394
|
+
});
|
|
6395
|
+
if (onItemAction) return /* @__PURE__ */ jsx("button", {
|
|
6396
|
+
type: "button",
|
|
6397
|
+
"aria-label": actionLabel(item),
|
|
6398
|
+
onClick: () => onItemAction(item, i),
|
|
6399
|
+
className: actionClass,
|
|
6400
|
+
children: icon
|
|
6401
|
+
});
|
|
6402
|
+
return null;
|
|
6403
|
+
};
|
|
6404
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
6405
|
+
ref,
|
|
6406
|
+
"data-theme": "dark",
|
|
6407
|
+
className: cn("dark overflow-hidden rounded-xl bg-background text-foreground", className),
|
|
6408
|
+
...props,
|
|
6409
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
6410
|
+
className: "hidden md:block",
|
|
6411
|
+
children: [/* @__PURE__ */ jsx("ul", {
|
|
6412
|
+
role: "tablist",
|
|
6413
|
+
"aria-label": ariaLabel,
|
|
6414
|
+
className: "relative grid h-[28rem] gap-[3px] motion-safe:transition-[grid-template-columns] motion-safe:duration-500 md:h-[36rem]",
|
|
6415
|
+
style: {
|
|
6416
|
+
gridTemplateColumns: gridTemplate,
|
|
6417
|
+
transitionTimingFunction: EASE_LAYOUT
|
|
6418
|
+
},
|
|
6419
|
+
onMouseLeave: () => setHoverIndex(null),
|
|
6420
|
+
onKeyDown: handleTablistKeyDown,
|
|
6421
|
+
children: items.map((item, i) => {
|
|
6422
|
+
const isActive = i === activeIndex;
|
|
6423
|
+
const isShown = i === shownIndex;
|
|
6424
|
+
const numeral = numeralFor(item, i);
|
|
6425
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
6426
|
+
className: "relative h-full min-w-0 overflow-hidden",
|
|
6427
|
+
children: [
|
|
6428
|
+
/* @__PURE__ */ jsx("button", {
|
|
6429
|
+
ref: (el) => {
|
|
6430
|
+
tabRefs.current[i] = el;
|
|
6431
|
+
},
|
|
6432
|
+
type: "button",
|
|
6433
|
+
role: "tab",
|
|
6434
|
+
id: tabId(i),
|
|
6435
|
+
"aria-controls": panelId(i),
|
|
6436
|
+
"aria-selected": isActive,
|
|
6437
|
+
"aria-label": `${numeral}: ${item.title}`,
|
|
6438
|
+
tabIndex: isActive ? 0 : -1,
|
|
6439
|
+
onClick: () => setActiveIndex(i),
|
|
6440
|
+
onMouseEnter: () => setHoverIndex(i),
|
|
6441
|
+
onFocus: () => setHoverIndex(i),
|
|
6442
|
+
onBlur: () => setHoverIndex(null),
|
|
6443
|
+
className: "relative block size-full text-left focus-visible:ring-2 focus-visible:ring-foreground/40 focus-visible:outline-none focus-visible:ring-inset",
|
|
6444
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
6445
|
+
"aria-hidden": true,
|
|
6446
|
+
className: cn("absolute inset-0 z-10 bg-linear-to-b from-card via-card to-background transition-opacity duration-300 ease-out", isShown ? "pointer-events-none opacity-0" : "opacity-100"),
|
|
6447
|
+
children: (renderSpine ?? defaultSpine)(item, i, {
|
|
6448
|
+
isActive,
|
|
6449
|
+
numeral
|
|
6450
|
+
})
|
|
6451
|
+
})
|
|
6452
|
+
}),
|
|
6453
|
+
/* @__PURE__ */ jsxs("div", {
|
|
6454
|
+
role: "tabpanel",
|
|
6455
|
+
id: panelId(i),
|
|
6456
|
+
"aria-labelledby": tabId(i),
|
|
6457
|
+
"aria-hidden": !isShown,
|
|
6458
|
+
tabIndex: isShown ? 0 : -1,
|
|
6459
|
+
className: "pointer-events-none absolute inset-0 outline-none",
|
|
6460
|
+
children: [
|
|
6461
|
+
(renderImage ?? defaultImage)(item, i),
|
|
6462
|
+
/* @__PURE__ */ jsx("span", {
|
|
6463
|
+
"aria-hidden": true,
|
|
6464
|
+
className: "absolute inset-0 [mask-image:linear-gradient(to_top,black,transparent_85%)] backdrop-blur-md"
|
|
6465
|
+
}),
|
|
6466
|
+
/* @__PURE__ */ jsx("span", {
|
|
6467
|
+
"aria-hidden": true,
|
|
6468
|
+
className: "absolute inset-0 bg-linear-to-t from-background/85 via-background/40 to-transparent"
|
|
6469
|
+
}),
|
|
6470
|
+
/* @__PURE__ */ jsx("span", {
|
|
6471
|
+
className: "absolute inset-x-0 bottom-0 overflow-hidden",
|
|
6472
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
6473
|
+
className: cn("block space-y-2 p-5 transition-transform duration-500 ease-out", isShown ? "translate-y-0" : "motion-safe:translate-y-full"),
|
|
6474
|
+
children: [
|
|
6475
|
+
/* @__PURE__ */ jsxs("span", {
|
|
6476
|
+
className: cn("block font-mono text-[0.625rem] tracking-widest text-foreground/60 uppercase transition-[opacity,transform] duration-500 ease-out", isShown ? "translate-y-0 opacity-100 delay-100" : "opacity-0 motion-safe:translate-y-6"),
|
|
6477
|
+
children: [
|
|
6478
|
+
isActive ? selectedLabel : previewLabel,
|
|
6479
|
+
" ",
|
|
6480
|
+
numeral
|
|
6481
|
+
]
|
|
6482
|
+
}),
|
|
6483
|
+
/* @__PURE__ */ jsx("span", {
|
|
6484
|
+
className: cn("block text-xl leading-tight font-medium tracking-tight transition-[opacity,transform] duration-500 ease-out md:text-2xl", isShown ? "translate-y-0 opacity-100" : "opacity-0 motion-safe:translate-y-8"),
|
|
6485
|
+
children: item.title
|
|
6486
|
+
}),
|
|
6487
|
+
/* @__PURE__ */ jsx("span", {
|
|
6488
|
+
className: cn("block max-w-md text-xs leading-snug text-foreground/75 transition-[opacity,transform] duration-500 ease-out md:text-sm", isShown ? "translate-y-0 opacity-100 delay-200" : "opacity-0 motion-safe:translate-y-8"),
|
|
6489
|
+
children: item.summary
|
|
6490
|
+
})
|
|
6491
|
+
]
|
|
6492
|
+
})
|
|
6493
|
+
})
|
|
6494
|
+
]
|
|
6495
|
+
}),
|
|
6496
|
+
isShown && cornerAction(item, i)
|
|
6497
|
+
]
|
|
6498
|
+
}, item.id);
|
|
6499
|
+
})
|
|
6500
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
6501
|
+
"aria-hidden": true,
|
|
6502
|
+
className: "relative mt-1 h-2 bg-linear-to-b from-foreground/30 via-foreground/10 to-transparent"
|
|
6503
|
+
})]
|
|
6504
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
6505
|
+
className: "md:hidden",
|
|
6506
|
+
children: /* @__PURE__ */ jsx(Accordion, {
|
|
6507
|
+
type: "single",
|
|
6508
|
+
value: items[activeIndex]?.id ?? items[0]?.id,
|
|
6509
|
+
onValueChange: (v) => {
|
|
6510
|
+
if (!v) return;
|
|
6511
|
+
const i = items.findIndex((item) => item.id === v);
|
|
6512
|
+
if (i >= 0) setActiveIndex(i);
|
|
6513
|
+
},
|
|
6514
|
+
children: items.map((item, i) => {
|
|
6515
|
+
const numeral = numeralFor(item, i);
|
|
6516
|
+
return /* @__PURE__ */ jsxs(AccordionItem, {
|
|
6517
|
+
value: item.id,
|
|
6518
|
+
className: "border-foreground/10",
|
|
6519
|
+
children: [/* @__PURE__ */ jsxs(AccordionTrigger, {
|
|
6520
|
+
className: "items-center gap-4 px-5 py-5 text-base font-medium tracking-tight hover:no-underline",
|
|
6521
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
6522
|
+
className: "inline-block min-w-[1.75rem] shrink-0 font-mono text-xs tracking-widest text-foreground/55",
|
|
6523
|
+
children: numeral
|
|
6524
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
6525
|
+
className: "flex-1 text-left text-foreground/80",
|
|
6526
|
+
children: item.title
|
|
6527
|
+
})]
|
|
6528
|
+
}), /* @__PURE__ */ jsxs(AccordionContent, {
|
|
6529
|
+
className: "p-0",
|
|
6530
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
6531
|
+
className: "relative aspect-[16/10] w-full overflow-hidden",
|
|
6532
|
+
children: [(renderImage ?? defaultImage)(item, i), cornerAction(item, i)]
|
|
6533
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
6534
|
+
className: "space-y-3 p-5",
|
|
6535
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
6536
|
+
className: "block font-mono text-[0.625rem] tracking-widest text-foreground/55 uppercase",
|
|
6537
|
+
children: [
|
|
6538
|
+
selectedLabel,
|
|
6539
|
+
" · ",
|
|
6540
|
+
numeral
|
|
6541
|
+
]
|
|
6542
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
6543
|
+
className: "text-sm leading-relaxed text-foreground/80",
|
|
6544
|
+
children: item.summary
|
|
6545
|
+
})]
|
|
6546
|
+
})]
|
|
6547
|
+
})]
|
|
6548
|
+
}, item.id);
|
|
6549
|
+
})
|
|
6550
|
+
})
|
|
6551
|
+
})]
|
|
6552
|
+
});
|
|
6553
|
+
});
|
|
6554
|
+
ShowcasePanelsBlock.displayName = "ShowcasePanelsBlock";
|
|
6555
|
+
//#endregion
|
|
6556
|
+
//#region src/blocks/marketing/process-steps-block.tsx
|
|
6557
|
+
const TICK_MS = 100;
|
|
6558
|
+
/**
|
|
6559
|
+
* React 19 recognizes `inert` as a real boolean DOM property (`true` →
|
|
6560
|
+
* `setAttribute("inert", "")`, `false` → removed) — confirmed against this
|
|
6561
|
+
* package's installed React version. On React 18, where `inert` isn't in
|
|
6562
|
+
* React's known-properties table, this is a no-op rather than a hazard:
|
|
6563
|
+
* an unrecognized boolean prop is simply dropped, so inactive panels fall
|
|
6564
|
+
* back to `aria-hidden` + `pointer-events-none` alone (already sufficient
|
|
6565
|
+
* for screen readers; `inert` is the extra guard against a stray focusable
|
|
6566
|
+
* node from a consumer's `renderImage`).
|
|
6567
|
+
*/
|
|
6568
|
+
function inertWhen(hidden) {
|
|
6569
|
+
return { inert: hidden };
|
|
6570
|
+
}
|
|
6571
|
+
const ProcessStepsBlock = React.forwardRef(({ items, defaultActiveIndex = 0, activeIndex: activeIndexProp, onActiveIndexChange, autoAdvance = true, autoAdvanceDuration = 6e3, pauseOnHover = true, renderImage, ariaLabel = "Process steps", stepLabel = (item) => `Step ${item.step ?? 1}`, labels, className, ...props }, ref) => {
|
|
6572
|
+
const [activeIndexState, setActiveIndexState] = React.useState(defaultActiveIndex);
|
|
6573
|
+
const activeIndex = activeIndexProp ?? activeIndexState;
|
|
6574
|
+
const [progress, setProgress] = React.useState(0);
|
|
6575
|
+
const hoverPausedRef = React.useRef(false);
|
|
6576
|
+
const manuallyPausedRef = React.useRef(false);
|
|
6577
|
+
const [manuallyPaused, setManuallyPaused] = React.useState(false);
|
|
6578
|
+
const [reducedMotion, setReducedMotion] = React.useState(false);
|
|
6579
|
+
const uid = React.useId();
|
|
6580
|
+
const tabRefs = React.useRef([]);
|
|
6581
|
+
const tabId = (i) => `${uid}-tab-${i}`;
|
|
6582
|
+
const panelId = (i) => `${uid}-panel-${i}`;
|
|
6583
|
+
const setActiveIndex = (i) => {
|
|
6584
|
+
setActiveIndexState(i);
|
|
6585
|
+
onActiveIndexChange?.(i);
|
|
6586
|
+
};
|
|
6587
|
+
const focusTab = (i) => {
|
|
6588
|
+
setActiveIndex(i);
|
|
6589
|
+
tabRefs.current[i]?.focus();
|
|
6590
|
+
};
|
|
6591
|
+
const handleTablistKeyDown = (event) => {
|
|
6592
|
+
const count = items.length;
|
|
6593
|
+
if (event.key === "ArrowRight") {
|
|
6594
|
+
event.preventDefault();
|
|
6595
|
+
focusTab((activeIndex + 1) % count);
|
|
6596
|
+
} else if (event.key === "ArrowLeft") {
|
|
6597
|
+
event.preventDefault();
|
|
6598
|
+
focusTab((activeIndex - 1 + count) % count);
|
|
6599
|
+
} else if (event.key === "Home") {
|
|
6600
|
+
event.preventDefault();
|
|
6601
|
+
focusTab(0);
|
|
6602
|
+
} else if (event.key === "End") {
|
|
6603
|
+
event.preventDefault();
|
|
6604
|
+
focusTab(count - 1);
|
|
6605
|
+
}
|
|
6606
|
+
};
|
|
6607
|
+
React.useEffect(() => {
|
|
6608
|
+
const query = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
6609
|
+
setReducedMotion(query.matches);
|
|
6610
|
+
const onChange = () => setReducedMotion(query.matches);
|
|
6611
|
+
query.addEventListener("change", onChange);
|
|
6612
|
+
return () => query.removeEventListener("change", onChange);
|
|
6613
|
+
}, []);
|
|
6614
|
+
const isAutoAdvancing = autoAdvance && !reducedMotion && items.length > 1;
|
|
6615
|
+
React.useEffect(() => {
|
|
6616
|
+
if (!isAutoAdvancing) return;
|
|
6617
|
+
hoverPausedRef.current = false;
|
|
6618
|
+
setProgress(0);
|
|
6619
|
+
let elapsed = 0;
|
|
6620
|
+
const id = setInterval(() => {
|
|
6621
|
+
if (hoverPausedRef.current || manuallyPausedRef.current) return;
|
|
6622
|
+
elapsed += TICK_MS;
|
|
6623
|
+
const pct = Math.min(elapsed / autoAdvanceDuration, 1);
|
|
6624
|
+
setProgress(pct);
|
|
6625
|
+
if (pct >= 1) {
|
|
6626
|
+
clearInterval(id);
|
|
6627
|
+
setActiveIndex((activeIndex + 1) % items.length);
|
|
6628
|
+
}
|
|
6629
|
+
}, TICK_MS);
|
|
6630
|
+
return () => clearInterval(id);
|
|
6631
|
+
}, [
|
|
6632
|
+
activeIndex,
|
|
6633
|
+
isAutoAdvancing,
|
|
6634
|
+
autoAdvanceDuration,
|
|
6635
|
+
items.length
|
|
6636
|
+
]);
|
|
6637
|
+
const pause = () => {
|
|
6638
|
+
if (pauseOnHover) hoverPausedRef.current = true;
|
|
6639
|
+
};
|
|
6640
|
+
const resume = () => {
|
|
6641
|
+
if (pauseOnHover) hoverPausedRef.current = false;
|
|
6642
|
+
};
|
|
6643
|
+
const toggleManuallyPaused = () => {
|
|
6644
|
+
setManuallyPaused((prev) => {
|
|
6645
|
+
manuallyPausedRef.current = !prev;
|
|
6646
|
+
return !prev;
|
|
6647
|
+
});
|
|
6648
|
+
};
|
|
6649
|
+
const total = items.length;
|
|
6650
|
+
const defaultImage = (item) => /* @__PURE__ */ jsx("img", {
|
|
6651
|
+
src: item.image.src,
|
|
6652
|
+
alt: item.image.alt ?? "",
|
|
6653
|
+
className: cn("size-full object-cover", item.imageClassName)
|
|
6654
|
+
});
|
|
6655
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
6656
|
+
ref,
|
|
6657
|
+
"data-theme": "dark",
|
|
6658
|
+
className: cn("dark overflow-hidden rounded-xl bg-background text-foreground ring-1 ring-foreground/10", className),
|
|
6659
|
+
onMouseEnter: pause,
|
|
6660
|
+
onMouseLeave: resume,
|
|
6661
|
+
onFocus: pause,
|
|
6662
|
+
onBlur: resume,
|
|
6663
|
+
...props,
|
|
6664
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
6665
|
+
className: "relative aspect-[4/5] md:aspect-[16/9]",
|
|
6666
|
+
children: [
|
|
6667
|
+
items.map((item, i) => {
|
|
6668
|
+
const isActive = i === activeIndex;
|
|
6669
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6670
|
+
"aria-hidden": !isActive,
|
|
6671
|
+
className: "absolute inset-0 motion-safe:transition-[clip-path] motion-safe:duration-700 motion-safe:ease-out",
|
|
6672
|
+
style: { clipPath: isActive ? "inset(0% 0% 0% 0%)" : "inset(0% 0% 0% 100%)" },
|
|
6673
|
+
...inertWhen(!isActive),
|
|
6674
|
+
children: (renderImage ?? defaultImage)(item, i)
|
|
6675
|
+
}, item.id);
|
|
6676
|
+
}),
|
|
6677
|
+
/* @__PURE__ */ jsx("div", {
|
|
6678
|
+
"aria-hidden": true,
|
|
6679
|
+
className: "absolute inset-0 bg-linear-to-t from-black/75 via-black/20 to-transparent"
|
|
6680
|
+
}),
|
|
6681
|
+
/* @__PURE__ */ jsx("div", {
|
|
6682
|
+
"aria-hidden": true,
|
|
6683
|
+
className: "absolute inset-y-0 left-0 w-2/3 bg-linear-to-r from-black/35 to-transparent"
|
|
6684
|
+
}),
|
|
6685
|
+
isAutoAdvancing && /* @__PURE__ */ jsx("button", {
|
|
6686
|
+
type: "button",
|
|
6687
|
+
onClick: toggleManuallyPaused,
|
|
6688
|
+
"aria-pressed": manuallyPaused,
|
|
6689
|
+
"aria-label": manuallyPaused ? labels?.resume ?? "Resume auto-advance" : labels?.pause ?? "Pause auto-advance",
|
|
6690
|
+
className: "group/cta absolute top-5 right-5 z-10 grid size-10 place-items-center rounded-full bg-foreground/10 text-white backdrop-blur-sm transition-colors hover:bg-foreground/20 focus-visible:ring-2 focus-visible:ring-foreground/40 focus-visible:outline-none",
|
|
6691
|
+
children: manuallyPaused ? /* @__PURE__ */ jsx(Play, {
|
|
6692
|
+
className: "size-4",
|
|
6693
|
+
strokeWidth: 1.5
|
|
6694
|
+
}) : /* @__PURE__ */ jsx(Pause, {
|
|
6695
|
+
className: "size-4",
|
|
6696
|
+
strokeWidth: 1.5
|
|
6697
|
+
})
|
|
6698
|
+
}),
|
|
6699
|
+
items.map((item, i) => {
|
|
6700
|
+
const isActive = i === activeIndex;
|
|
6701
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
6702
|
+
role: "tabpanel",
|
|
6703
|
+
id: panelId(i),
|
|
6704
|
+
"aria-labelledby": tabId(i),
|
|
6705
|
+
"aria-hidden": !isActive,
|
|
6706
|
+
tabIndex: isActive ? 0 : -1,
|
|
6707
|
+
...inertWhen(!isActive),
|
|
6708
|
+
className: cn("absolute right-5 bottom-6 left-5 text-white transition-[opacity,transform] duration-500 ease-out outline-none md:right-16 md:bottom-14 md:left-16", isActive ? "opacity-100" : "pointer-events-none opacity-0 motion-safe:translate-y-4"),
|
|
6709
|
+
children: [
|
|
6710
|
+
/* @__PURE__ */ jsxs("div", {
|
|
6711
|
+
className: "flex items-center gap-3 text-white/60",
|
|
6712
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
6713
|
+
"aria-hidden": true,
|
|
6714
|
+
className: "h-px w-8 bg-current md:w-10"
|
|
6715
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
6716
|
+
className: "text-xs tracking-widest md:text-sm",
|
|
6717
|
+
children: [
|
|
6718
|
+
stepLabel(item, i),
|
|
6719
|
+
" of ",
|
|
6720
|
+
total
|
|
6721
|
+
]
|
|
6722
|
+
})]
|
|
6723
|
+
}),
|
|
6724
|
+
/* @__PURE__ */ jsx("h3", {
|
|
6725
|
+
className: "mt-3 text-5xl leading-[0.95] font-medium tracking-tight md:mt-6 md:text-7xl lg:text-8xl",
|
|
6726
|
+
children: item.title
|
|
6727
|
+
}),
|
|
6728
|
+
/* @__PURE__ */ jsx("p", {
|
|
6729
|
+
className: "mt-4 max-w-lg text-sm leading-snug font-medium text-white/85 md:mt-8 md:text-base md:leading-relaxed lg:text-lg",
|
|
6730
|
+
children: item.description
|
|
6731
|
+
})
|
|
6732
|
+
]
|
|
6733
|
+
}, item.id);
|
|
6734
|
+
})
|
|
6735
|
+
]
|
|
6736
|
+
}), /* @__PURE__ */ jsx("ol", {
|
|
6737
|
+
role: "tablist",
|
|
6738
|
+
"aria-label": ariaLabel,
|
|
6739
|
+
onKeyDown: handleTablistKeyDown,
|
|
6740
|
+
className: "grid border-t border-foreground/10 bg-card text-foreground",
|
|
6741
|
+
style: { gridTemplateColumns: `repeat(${total}, minmax(0, 1fr))` },
|
|
6742
|
+
children: items.map((item, i) => {
|
|
6743
|
+
const isActive = i === activeIndex;
|
|
6744
|
+
return /* @__PURE__ */ jsx("li", {
|
|
6745
|
+
className: "relative",
|
|
6746
|
+
children: /* @__PURE__ */ jsxs("button", {
|
|
6747
|
+
ref: (el) => {
|
|
6748
|
+
tabRefs.current[i] = el;
|
|
6749
|
+
},
|
|
6750
|
+
type: "button",
|
|
6751
|
+
role: "tab",
|
|
6752
|
+
id: tabId(i),
|
|
6753
|
+
"aria-controls": panelId(i),
|
|
6754
|
+
"aria-selected": isActive,
|
|
6755
|
+
"aria-current": isActive ? "step" : void 0,
|
|
6756
|
+
tabIndex: isActive ? 0 : -1,
|
|
6757
|
+
onClick: () => setActiveIndex(i),
|
|
6758
|
+
className: cn("group relative flex h-16 w-full flex-col items-center justify-center gap-1 px-3 text-center transition-colors outline-none md:h-20 md:gap-1.5", isActive ? "text-foreground" : "text-muted-foreground hover:text-foreground/85"),
|
|
6759
|
+
children: [
|
|
6760
|
+
/* @__PURE__ */ jsx("span", {
|
|
6761
|
+
className: "font-mono text-[0.5625rem] tracking-[0.2em] text-foreground/45 uppercase md:text-[0.625rem]",
|
|
6762
|
+
children: stepLabel(item, i)
|
|
6763
|
+
}),
|
|
6764
|
+
/* @__PURE__ */ jsx("span", {
|
|
6765
|
+
className: "hidden text-sm font-medium tracking-tight md:inline md:text-base",
|
|
6766
|
+
children: item.title
|
|
6767
|
+
}),
|
|
6768
|
+
/* @__PURE__ */ jsx("span", {
|
|
6769
|
+
"aria-hidden": true,
|
|
6770
|
+
className: "pointer-events-none absolute inset-x-0 top-0 h-px overflow-hidden bg-foreground/10",
|
|
6771
|
+
children: isActive && /* @__PURE__ */ jsx("span", {
|
|
6772
|
+
className: "block h-full origin-left bg-brand-accent",
|
|
6773
|
+
style: {
|
|
6774
|
+
transform: `scaleX(${isAutoAdvancing ? progress : 1})`,
|
|
6775
|
+
transition: isAutoAdvancing ? `transform ${TICK_MS}ms linear` : "none"
|
|
6776
|
+
}
|
|
6777
|
+
})
|
|
6778
|
+
})
|
|
6779
|
+
]
|
|
6780
|
+
})
|
|
6781
|
+
}, item.id);
|
|
6782
|
+
})
|
|
6783
|
+
})]
|
|
6784
|
+
});
|
|
6785
|
+
});
|
|
6786
|
+
ProcessStepsBlock.displayName = "ProcessStepsBlock";
|
|
6787
|
+
//#endregion
|
|
6788
|
+
//#region src/blocks/marketing/faq-columns-block.tsx
|
|
6789
|
+
const FAQColumnsBlock = React.forwardRef(({ items, title, description, eyebrow, icon, cta, sticky = true, type = "single", collapsible = true, defaultValue, value, onValueChange, containerClassName, gridClassName, asideClassName, eyebrowClassName, titleClassName, descriptionClassName, ctaClassName, listClassName, itemClassName, questionClassName, answerClassName, className, ...props }, ref) => {
|
|
6790
|
+
const headingId = React.useId();
|
|
6791
|
+
const hasHeaderRow = eyebrow != null || icon !== null;
|
|
6792
|
+
const accordionProps = {
|
|
6793
|
+
type,
|
|
6794
|
+
...type === "single" ? { collapsible } : {},
|
|
6795
|
+
defaultValue,
|
|
6796
|
+
value,
|
|
6797
|
+
onValueChange
|
|
6798
|
+
};
|
|
6799
|
+
return /* @__PURE__ */ jsx("section", {
|
|
6800
|
+
ref,
|
|
6801
|
+
"aria-labelledby": props["aria-label"] ? void 0 : headingId,
|
|
6802
|
+
className: cn("py-16 md:py-24", className),
|
|
6803
|
+
...props,
|
|
6804
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
6805
|
+
className: cn("mx-auto max-w-6xl px-4 sm:px-6", containerClassName),
|
|
6806
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
6807
|
+
className: cn("grid grid-cols-1 gap-12 lg:grid-cols-[1fr_1.4fr] lg:gap-16", gridClassName),
|
|
6808
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
6809
|
+
className: cn("relative", sticky && "lg:sticky lg:top-28 lg:self-start", asideClassName),
|
|
6810
|
+
children: [
|
|
6811
|
+
hasHeaderRow && /* @__PURE__ */ jsxs("div", {
|
|
6812
|
+
className: "flex items-start justify-between gap-4",
|
|
6813
|
+
children: [typeof eyebrow === "string" ? /* @__PURE__ */ jsx(Badge, {
|
|
6814
|
+
variant: "outline",
|
|
6815
|
+
className: cn("h-7 shrink-0 rounded-full px-3 font-medium", eyebrowClassName),
|
|
6816
|
+
children: eyebrow
|
|
6817
|
+
}) : eyebrow != null ? /* @__PURE__ */ jsx("div", {
|
|
6818
|
+
className: cn("shrink-0", eyebrowClassName),
|
|
6819
|
+
children: eyebrow
|
|
6820
|
+
}) : /* @__PURE__ */ jsx("span", { "aria-hidden": true }), icon === void 0 ? /* @__PURE__ */ jsx(CircleHelp, {
|
|
6821
|
+
"aria-hidden": true,
|
|
6822
|
+
strokeWidth: 1,
|
|
6823
|
+
className: "size-6 shrink-0 text-muted-foreground"
|
|
6824
|
+
}) : icon]
|
|
6825
|
+
}),
|
|
6826
|
+
/* @__PURE__ */ jsx("h2", {
|
|
6827
|
+
id: headingId,
|
|
6828
|
+
className: cn("text-3xl font-light leading-[1.05] tracking-tight md:text-4xl lg:text-5xl", hasHeaderRow && "mt-8", titleClassName),
|
|
6829
|
+
children: title
|
|
6830
|
+
}),
|
|
6831
|
+
description ? /* @__PURE__ */ jsx("p", {
|
|
6832
|
+
className: cn("mt-6 max-w-md text-base text-muted-foreground", descriptionClassName),
|
|
6833
|
+
children: description
|
|
6834
|
+
}) : null,
|
|
6835
|
+
cta ? /* @__PURE__ */ jsxs("div", {
|
|
6836
|
+
className: cn("mt-10 border-t pt-6", ctaClassName),
|
|
6837
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
6838
|
+
className: "text-sm text-muted-foreground",
|
|
6839
|
+
children: cta.title
|
|
6840
|
+
}), /* @__PURE__ */ jsxs("a", {
|
|
6841
|
+
href: cta.href,
|
|
6842
|
+
...cta.newTab ? {
|
|
6843
|
+
target: "_blank",
|
|
6844
|
+
rel: "noopener noreferrer"
|
|
6845
|
+
} : {},
|
|
6846
|
+
className: "group/faq-cta mt-1.5 inline-flex items-center gap-2 text-sm tracking-tight text-foreground transition-colors",
|
|
6847
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
6848
|
+
className: "border-b border-transparent transition-colors group-hover/faq-cta:border-current",
|
|
6849
|
+
children: cta.linkText
|
|
6850
|
+
}), cta.icon === void 0 ? /* @__PURE__ */ jsx(MoveUpRight, {
|
|
6851
|
+
"aria-hidden": true,
|
|
6852
|
+
className: "size-3.5 transition-transform group-hover/faq-cta:-translate-y-0.5 group-hover/faq-cta:translate-x-0.5"
|
|
6853
|
+
}) : cta.icon]
|
|
6854
|
+
})]
|
|
6855
|
+
}) : null
|
|
6856
|
+
]
|
|
6857
|
+
}), /* @__PURE__ */ jsx(Accordion, {
|
|
6858
|
+
...accordionProps,
|
|
6859
|
+
className: cn("w-full", listClassName),
|
|
6860
|
+
children: items.map((item) => /* @__PURE__ */ jsxs(AccordionItem, {
|
|
6861
|
+
value: item.id,
|
|
6862
|
+
className: itemClassName,
|
|
6863
|
+
children: [/* @__PURE__ */ jsx(AccordionTrigger, {
|
|
6864
|
+
className: cn("items-start gap-6 py-5 text-start text-base font-normal tracking-tight md:text-lg", questionClassName),
|
|
6865
|
+
children: item.question
|
|
6866
|
+
}), /* @__PURE__ */ jsx(AccordionContent, {
|
|
6867
|
+
className: cn("pb-5 text-base leading-relaxed text-muted-foreground", answerClassName),
|
|
6868
|
+
children: item.answer
|
|
6869
|
+
})]
|
|
6870
|
+
}, item.id))
|
|
6871
|
+
})]
|
|
6872
|
+
})
|
|
6873
|
+
})
|
|
6874
|
+
});
|
|
6875
|
+
});
|
|
6876
|
+
FAQColumnsBlock.displayName = "FAQColumnsBlock";
|
|
6877
|
+
//#endregion
|
|
5907
6878
|
//#region src/blocks/settings/profile-settings-block.tsx
|
|
5908
6879
|
function ProfileSettingsBlock({ initialData, onSave, onAvatarChange, loading = false, error, disabled = false, className }) {
|
|
5909
6880
|
const fileInputRef = React.useRef(null);
|
|
@@ -6182,6 +7153,6 @@ function NotificationSettingsBlock({ groups, onSave, loading = false, error, dis
|
|
|
6182
7153
|
});
|
|
6183
7154
|
}
|
|
6184
7155
|
//#endregion
|
|
6185
|
-
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, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, 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, 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, FieldGroupScope, FieldProvider, FooterBlock, ForgotPasswordBlock, Form, FormError, FormField, HeaderBlock, Input, InputGroup, Label, MaintenanceBlock, MediaCard, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, NotificationSettingsBlock, OutlinedField, PageShell, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverTrigger, ProfileSettingsBlock, Progress, ProgressBar, RadioGroup, RadioGroupItem, Rating, ResetPasswordBlock, ReviewsBlock, SavedPing, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, 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, SocialProviders, Spinner, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperLabel, StepperSeparator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TextContent, TextEditor, Textarea, ThemeProvider, ThemeScope, TimePicker, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, badgeVariants, buttonVariants, cn, dateRangePresets, editableTitleVariants, formatUsPhone, navigationMenuTriggerStyle, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, spinnerVariants, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, switchVariants, toast, useDensity, useField, useFieldControl, useFieldGroup, useFieldIds, useFormContext, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
7156
|
+
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, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, 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, 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, FieldGroupScope, FieldProvider, FloatingNavBlock, FooterBlock, ForgotPasswordBlock, Form, FormError, FormField, HeaderBlock, Input, InputGroup, JsonLd, Label, MaintenanceBlock, MediaCard, 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, ReviewsBlock, 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, SocialProviders, Spinner, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperLabel, StepperSeparator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TextContent, TextEditor, Textarea, ThemeProvider, ThemeScope, TimePicker, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, badgeVariants, buttonVariants, cn, dateRangePresets, editableTitleVariants, formatUsPhone, napRecordToJsonLd, navigationMenuTriggerStyle, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, spinnerVariants, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, switchVariants, toast, useDensity, useField, useFieldControl, useFieldGroup, useFieldIds, useFormContext, useHideOnScroll, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
6186
7157
|
|
|
6187
7158
|
//# sourceMappingURL=index.mjs.map
|