@talogic/react 0.11.0 → 0.12.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/README.md CHANGED
@@ -81,7 +81,7 @@ the file and the rule disagree. `--primary-foreground`, `--sidebar-primary-foreg
81
81
  | `product` | `ProductLogo`, `ProductSwitcher`, `PRODUCT_CATALOGUE` |
82
82
  | `status` | `StatusBadge` and the run statuses, with the same word and colour in every product |
83
83
  | `web` | `SiteHeader`, `Hero`, `ProductCard`, `FeatureGrid`, `HowItWorks`, `PricingTable`, `Faq`, `CtaBand`, `SiteFooter` |
84
- | `app` | `AppShell` (with the ⌘K palette, a status bar, and the `AppShellHeader` and `AppShellBody` parts that pin a page header), `PageHeader`, `StatCard`, `FilterBar`, `FilterChip`, `RecordsTable`, `FormSection` |
84
+ | `app` | `AppShell` (with the ⌘K palette, a status bar, and the `AppShellHeader` and `AppShellBody` parts that pin a page header), `SplitView` (a list and a detail that scroll apart under the pinned header), `PageHeader`, `StatCard`, `FilterBar`, `FilterChip`, `RecordsTable`, `FormSection` |
85
85
  | `desktop` | `TitleBar` (Tauri drag region), `Inspector`, `FlowNode`, `TimelineLanes`, `StatusBar` |
86
86
  | `mobile` | `BottomNav`, `RecordButton`, `CaptureFrame` |
87
87
  | `class-names`, `timecode` | `cn` and `formatTimecode` |
@@ -32,7 +32,8 @@ export interface AppShellPartProps {
32
32
  export declare function AppShellHeader({ children, className }: AppShellPartProps): import("react").JSX.Element;
33
33
  /**
34
34
  * The scrolling content of a page in an {@link AppShell}. With it, the page area stops scrolling as a whole, so an
35
- * {@link AppShellHeader} above it and the shell's status bar below it stay in view.
35
+ * {@link AppShellHeader} above it and the shell's status bar below it stay in view. With a {@link SplitView} as its
36
+ * child, the body does not scroll: each pane of the view scrolls on its own.
36
37
  *
37
38
  * @param props - The content.
38
39
  * @returns The scrolling area.
package/app/index.d.ts CHANGED
@@ -9,6 +9,8 @@ export { PageHeader } from './page-header.component';
9
9
  export type { PageHeaderProps } from './page-header.component';
10
10
  export { RecordsTable } from './records-table.component';
11
11
  export type { RecordsColumn, RecordsTableProps } from './records-table.component';
12
+ export { SplitView } from './split-view.component';
13
+ export type { SplitViewProps } from './split-view.component';
12
14
  export { sparklinePath } from './sparkline.algorithm';
13
15
  export { StatCard } from './stat-card.component';
14
16
  export type { StatCardProps } from './stat-card.component';
@@ -0,0 +1,46 @@
1
+ import { type ReactNode } from 'react';
2
+ /** Props of {@link SplitView}. */
3
+ export interface SplitViewProps {
4
+ /** The list (master) pane, at the start. */
5
+ list: ReactNode;
6
+ /** The detail pane, at the end. It takes the width the list does not use. */
7
+ detail: ReactNode;
8
+ /** The accessible name of the list pane, such as `Situations`. */
9
+ listLabel: string;
10
+ /** The accessible name of the detail pane, such as `Situation`. */
11
+ detailLabel: string;
12
+ /** The narrowest width of the list, in pixels. Default 280. */
13
+ listMinSize?: number;
14
+ /**
15
+ * The width of the list when the view opens, in pixels. Default 352. Give the width that
16
+ * {@link SplitViewProps.onListSizeChange} reported last to open the view as the user left it.
17
+ */
18
+ listDefaultSize?: number;
19
+ /** The narrowest width of the detail, in pixels. Default 360. */
20
+ detailMinSize?: number;
21
+ /**
22
+ * Called with the new list width, in whole pixels, when the user stops a resize with the pointer or the keyboard.
23
+ * It is not called when the view opens or when the window changes size.
24
+ */
25
+ onListSizeChange?: (size: number) => void;
26
+ className?: string;
27
+ }
28
+ /**
29
+ * The master-detail pattern of an app page: a list and a detail side by side, with a handle between them to change
30
+ * the width. Each pane scrolls on its own, with its own padding, and the page header stays in place.
31
+ *
32
+ * Put it as the only child of an {@link AppShellBody}. The body then stops its own scroll and padding, and the view
33
+ * fills the space under the {@link AppShellHeader}. A loading or empty state in the same body keeps the padding.
34
+ *
35
+ * ```tsx
36
+ * <AppShellHeader><PageHeader title='Situations' actions={<CheckNow />} /></AppShellHeader>
37
+ * <AppShellBody>
38
+ * <SplitView listLabel='Situations' detailLabel='Situation' list={…} detail={…}
39
+ * listDefaultSize={saved ?? 352} onListSizeChange={save} />
40
+ * </AppShellBody>
41
+ * ```
42
+ *
43
+ * @param props - The two panes, their names, the sizes and the resize callback.
44
+ * @returns The split view.
45
+ */
46
+ export declare function SplitView({ list, detail, listLabel, detailLabel, listMinSize, listDefaultSize, detailMinSize, onListSizeChange, className }: SplitViewProps): import("react").JSX.Element;
package/index.js CHANGED
@@ -3065,14 +3065,15 @@ function oa({ children: e, className: t }) {
3065
3065
  children: e
3066
3066
  });
3067
3067
  }
3068
- function sa({ children: e, className: t }) {
3068
+ var sa = "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0 has-[>[data-slot=split-view]]:gap-0 has-[>[data-slot=split-view]]:overflow-hidden has-[>[data-slot=split-view]]:p-0";
3069
+ function ca({ children: e, className: t }) {
3069
3070
  return /* @__PURE__ */ r("div", {
3070
3071
  "data-slot": "app-shell-body",
3071
- className: B("flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0", t),
3072
+ className: B(sa, t),
3072
3073
  children: e
3073
3074
  });
3074
3075
  }
3075
- function ca({ product: e, brand: t = "switcher", workspace: a, onProductChange: o, nav: s, secondaryNav: c, sidebarFooter: l, sidebarNote: u, user: d, breadcrumb: f, topActions: p, statusBar: m, commands: h, children: g, className: _ }) {
3076
+ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange: o, nav: s, secondaryNav: c, sidebarFooter: l, sidebarNote: u, user: d, breadcrumb: f, topActions: p, statusBar: m, commands: h, children: g, className: _ }) {
3076
3077
  let [v, y] = L(!1), b = P(() => y(!0), []);
3077
3078
  Qi(b, !!h?.length);
3078
3079
  let x = ia(), ee = [...new Set(h?.map((e) => e.group))], S = (e) => /* @__PURE__ */ r(qi, {
@@ -3201,7 +3202,7 @@ function ca({ product: e, brand: t = "switcher", workspace: a, onProductChange:
3201
3202
  });
3202
3203
  }
3203
3204
  // src/app/filter-bar.component.tsx
3204
- function la({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
3205
+ function ua({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
3205
3206
  return /* @__PURE__ */ i("div", {
3206
3207
  "data-slot": "filter-bar",
3207
3208
  role: "search",
@@ -3226,7 +3227,7 @@ function la({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
3226
3227
  ]
3227
3228
  });
3228
3229
  }
3229
- function ua({ label: e, count: t = 0, icon: n, className: a, ...o }) {
3230
+ function da({ label: e, count: t = 0, icon: n, className: a, ...o }) {
3230
3231
  return /* @__PURE__ */ i(J, {
3231
3232
  variant: "outline",
3232
3233
  size: "sm",
@@ -3245,7 +3246,7 @@ function ua({ label: e, count: t = 0, icon: n, className: a, ...o }) {
3245
3246
  });
3246
3247
  }
3247
3248
  // src/app/form-section.component.tsx
3248
- function da({ title: e, description: t, children: n, actions: a, className: o }) {
3249
+ function fa({ title: e, description: t, children: n, actions: a, className: o }) {
3249
3250
  return /* @__PURE__ */ i("section", {
3250
3251
  "data-slot": "form-section",
3251
3252
  className: B("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
@@ -3271,7 +3272,7 @@ function da({ title: e, description: t, children: n, actions: a, className: o })
3271
3272
  });
3272
3273
  }
3273
3274
  // src/app/page-header.component.tsx
3274
- function fa({ title: e, description: t, actions: n, tabs: a, className: o }) {
3275
+ function pa({ title: e, description: t, actions: n, tabs: a, className: o }) {
3275
3276
  return /* @__PURE__ */ i("div", {
3276
3277
  "data-slot": "page-header",
3277
3278
  className: B("flex flex-col gap-4", o),
@@ -3294,7 +3295,7 @@ function fa({ title: e, description: t, actions: n, tabs: a, className: o }) {
3294
3295
  });
3295
3296
  }
3296
3297
  // src/app/records-table.component.tsx
3297
- function pa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
3298
+ function ma({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
3298
3299
  let u = a !== void 0, d = e.map((e) => n(e)), f = d.filter((e) => a?.has(e)).length, p = f === 0 ? !1 : f === d.length || "indeterminate";
3299
3300
  function m(e, t) {
3300
3301
  let n = new Set(a);
@@ -3363,8 +3364,56 @@ function pa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
3363
3364
  }) })]
3364
3365
  });
3365
3366
  }
3367
+ // src/app/split-view.component.tsx
3368
+ function ha({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o = 280, listDefaultSize: s = 352, detailMinSize: c = 360, onListSizeChange: l, className: u }) {
3369
+ let d = I(null), f = I(void 0), p = I(0);
3370
+ F(() => () => cancelAnimationFrame(p.current), []);
3371
+ let m = P((e, t) => {
3372
+ l && t.isUserInteraction && (cancelAnimationFrame(p.current), p.current = requestAnimationFrame(() => {
3373
+ let e = d.current;
3374
+ if (!e) return;
3375
+ let t = Math.round(e.getSize().inPixels);
3376
+ t !== f.current && (f.current = t, l(t));
3377
+ }));
3378
+ }, [l]);
3379
+ return /* @__PURE__ */ r("div", {
3380
+ "data-slot": "split-view",
3381
+ className: B("flex min-h-0 min-w-0 flex-1", u),
3382
+ children: /* @__PURE__ */ i(Tr, {
3383
+ orientation: "horizontal",
3384
+ onLayoutChanged: m,
3385
+ children: [
3386
+ /* @__PURE__ */ r(Er, {
3387
+ id: "list",
3388
+ panelRef: d,
3389
+ minSize: o,
3390
+ defaultSize: s,
3391
+ className: "p-6 [scrollbar-gutter:stable]",
3392
+ children: /* @__PURE__ */ r("section", {
3393
+ "data-slot": "split-view-list",
3394
+ "aria-label": n,
3395
+ className: "flex flex-col gap-5",
3396
+ children: e
3397
+ })
3398
+ }),
3399
+ /* @__PURE__ */ r(Dr, {}),
3400
+ /* @__PURE__ */ r(Er, {
3401
+ id: "detail",
3402
+ minSize: c,
3403
+ className: "p-6 [scrollbar-gutter:stable]",
3404
+ children: /* @__PURE__ */ r("section", {
3405
+ "data-slot": "split-view-detail",
3406
+ "aria-label": a,
3407
+ className: "flex flex-col gap-5",
3408
+ children: t
3409
+ })
3410
+ })
3411
+ ]
3412
+ })
3413
+ });
3414
+ }
3366
3415
  // src/app/sparkline.algorithm.ts
3367
- function ma(e, t, n, r = 2) {
3416
+ function ga(e, t, n, r = 2) {
3368
3417
  if (e.length < 2) return "";
3369
3418
  let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
3370
3419
  return e.map((e, t) => {
@@ -3373,13 +3422,13 @@ function ma(e, t, n, r = 2) {
3373
3422
  }).join(" ");
3374
3423
  }
3375
3424
  // src/app/stat-card.component.tsx
3376
- var ha = {
3425
+ var _a = {
3377
3426
  positive: "text-success",
3378
3427
  negative: "text-destructive",
3379
3428
  neutral: "text-muted-foreground"
3380
3429
  };
3381
- function ga({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
3382
- let c = o ? ma(o, 100, 32) : "";
3430
+ function va({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
3431
+ let c = o ? ga(o, 100, 32) : "";
3383
3432
  return /* @__PURE__ */ i(vr, {
3384
3433
  "data-slot": "stat-card",
3385
3434
  className: B("gap-1.5 p-4", s),
@@ -3411,14 +3460,14 @@ function ga({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
3411
3460
  })]
3412
3461
  }),
3413
3462
  n && /* @__PURE__ */ r("span", {
3414
- className: B("text-xs", ha[a]),
3463
+ className: B("text-xs", _a[a]),
3415
3464
  children: n
3416
3465
  })
3417
3466
  ]
3418
3467
  });
3419
3468
  }
3420
3469
  // src/status/run-status.contract.ts
3421
- var _a = [
3470
+ var ya = [
3422
3471
  "queued",
3423
3472
  "waiting",
3424
3473
  "running",
@@ -3426,7 +3475,7 @@ var _a = [
3426
3475
  "no-records",
3427
3476
  "failed",
3428
3477
  "off"
3429
- ], va = {
3478
+ ], ba = {
3430
3479
  queued: {
3431
3480
  label: "Queued",
3432
3481
  variant: "secondary",
@@ -3463,12 +3512,12 @@ var _a = [
3463
3512
  live: !1
3464
3513
  }
3465
3514
  };
3466
- function ya(e) {
3467
- return va[e];
3515
+ function xa(e) {
3516
+ return ba[e];
3468
3517
  }
3469
3518
  // src/status/status-badge.component.tsx
3470
- function ba({ status: e, ...t }) {
3471
- let { label: n, variant: i, live: a } = ya(e);
3519
+ function Sa({ status: e, ...t }) {
3520
+ let { label: n, variant: i, live: a } = xa(e);
3472
3521
  return /* @__PURE__ */ r(K, {
3473
3522
  variant: i,
3474
3523
  dot: a,
@@ -3478,7 +3527,7 @@ function ba({ status: e, ...t }) {
3478
3527
  });
3479
3528
  }
3480
3529
  // src/desktop/flow-node.component.tsx
3481
- function xa({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
3530
+ function Ca({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
3482
3531
  return /* @__PURE__ */ i("button", {
3483
3532
  type: "button",
3484
3533
  "data-slot": "flow-node",
@@ -3496,7 +3545,7 @@ function xa({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
3496
3545
  className: "font-semibold",
3497
3546
  children: e
3498
3547
  }),
3499
- /* @__PURE__ */ r(ba, {
3548
+ /* @__PURE__ */ r(Sa, {
3500
3549
  status: n,
3501
3550
  className: "ms-auto h-[18px] text-[11px]"
3502
3551
  })
@@ -3508,7 +3557,7 @@ function xa({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
3508
3557
  });
3509
3558
  }
3510
3559
  // src/desktop/inspector.component.tsx
3511
- function Sa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
3560
+ function wa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
3512
3561
  return /* @__PURE__ */ i("aside", {
3513
3562
  "data-slot": "inspector",
3514
3563
  "aria-label": "Inspector",
@@ -3556,7 +3605,7 @@ function Sa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
3556
3605
  });
3557
3606
  }
3558
3607
  // src/desktop/status-bar.component.tsx
3559
- function Ca({ start: e, end: t, className: n }) {
3608
+ function Ta({ start: e, end: t, className: n }) {
3560
3609
  return /* @__PURE__ */ i("div", {
3561
3610
  "data-slot": "status-bar",
3562
3611
  role: "status",
@@ -3568,7 +3617,7 @@ function Ca({ start: e, end: t, className: n }) {
3568
3617
  });
3569
3618
  }
3570
3619
  // src/desktop/timeline.algorithm.ts
3571
- function wa(e, t, n) {
3620
+ function Ea(e, t, n) {
3572
3621
  if (n <= 0) return {
3573
3622
  left: 0,
3574
3623
  width: 0
@@ -3579,7 +3628,7 @@ function wa(e, t, n) {
3579
3628
  width: Math.max(0, r(t) - i)
3580
3629
  };
3581
3630
  }
3582
- function Ta(e, t) {
3631
+ function Da(e, t) {
3583
3632
  let n = Math.max(2, t);
3584
3633
  return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
3585
3634
  }
@@ -3587,17 +3636,17 @@ function Ta(e, t) {
3587
3636
  function $(e) {
3588
3637
  return String(e).padStart(2, "0");
3589
3638
  }
3590
- function Ea(e, t = !1) {
3639
+ function Oa(e, t = !1) {
3591
3640
  let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
3592
3641
  return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
3593
3642
  }
3594
- function Da(e, t) {
3643
+ function ka(e, t) {
3595
3644
  let n = new Date(e.getTime() + t * 1e3);
3596
3645
  return `${$(n.getHours())}:${$(n.getMinutes())}`;
3597
3646
  }
3598
3647
  // src/desktop/timeline-lanes.component.tsx
3599
- function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
3600
- let c = (e) => o ? Da(o, e) : Ea(e), l = n === void 0 ? void 0 : wa(0, n, e).width;
3648
+ function Aa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
3649
+ let c = (e) => o ? ka(o, e) : Oa(e), l = n === void 0 ? void 0 : Ea(0, n, e).width;
3601
3650
  return /* @__PURE__ */ i("div", {
3602
3651
  "data-slot": "timeline-lanes",
3603
3652
  role: "group",
@@ -3607,7 +3656,7 @@ function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
3607
3656
  /* @__PURE__ */ r("div", {
3608
3657
  className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
3609
3658
  "aria-hidden": "true",
3610
- children: Ta(e, a).map((e) => /* @__PURE__ */ r("span", {
3659
+ children: Da(e, a).map((e) => /* @__PURE__ */ r("span", {
3611
3660
  className: "flex-1 text-xs tabular-nums text-muted-foreground",
3612
3661
  children: c(e)
3613
3662
  }, e))
@@ -3623,7 +3672,7 @@ function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
3623
3672
  }), /* @__PURE__ */ r("div", {
3624
3673
  className: "relative me-2.5 h-[26px] flex-1",
3625
3674
  children: t.segments.map((n) => {
3626
- let a = wa(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
3675
+ let a = Ea(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
3627
3676
  return /* @__PURE__ */ i(pn, { children: [/* @__PURE__ */ r(mn, {
3628
3677
  asChild: !0,
3629
3678
  children: /* @__PURE__ */ r("button", {
@@ -3648,7 +3697,7 @@ function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
3648
3697
  });
3649
3698
  }
3650
3699
  // src/desktop/title-bar.component.tsx
3651
- function ka({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
3700
+ function ja({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
3652
3701
  let l = [
3653
3702
  {
3654
3703
  label: "Minimise",
@@ -3696,7 +3745,7 @@ function ka({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
3696
3745
  });
3697
3746
  }
3698
3747
  // src/mobile/bottom-nav.component.tsx
3699
- function Aa({ items: e, className: t }) {
3748
+ function Ma({ items: e, className: t }) {
3700
3749
  return /* @__PURE__ */ r("nav", {
3701
3750
  "data-slot": "bottom-nav",
3702
3751
  "aria-label": "Tabs",
@@ -3718,7 +3767,7 @@ function Aa({ items: e, className: t }) {
3718
3767
  });
3719
3768
  }
3720
3769
  // src/mobile/capture-frame.component.tsx
3721
- function ja({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
3770
+ function Na({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
3722
3771
  let l = a.filter((e) => !e.passed).length;
3723
3772
  return /* @__PURE__ */ i("div", {
3724
3773
  "data-slot": "capture-frame",
@@ -3801,7 +3850,7 @@ function ja({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
3801
3850
  });
3802
3851
  }
3803
3852
  // src/mobile/record-button.component.tsx
3804
- function Ma({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
3853
+ function Pa({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
3805
3854
  let u = {
3806
3855
  idle: {
3807
3856
  label: "Start recording",
@@ -3845,7 +3894,7 @@ function Ma({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
3845
3894
  /* @__PURE__ */ r("span", {
3846
3895
  className: "ms-auto text-[13px] font-semibold tabular-nums",
3847
3896
  "aria-label": "Recorded time",
3848
- children: Ea(t, !0)
3897
+ children: Oa(t, !0)
3849
3898
  })
3850
3899
  ]
3851
3900
  }),
@@ -3876,7 +3925,7 @@ function Ma({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
3876
3925
  });
3877
3926
  }
3878
3927
  // src/web/cta-band.component.tsx
3879
- function Na({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
3928
+ function Fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
3880
3929
  let c = we();
3881
3930
  function l(e) {
3882
3931
  e.preventDefault();
@@ -3929,7 +3978,7 @@ function Na({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
3929
3978
  });
3930
3979
  }
3931
3980
  // src/web/faq.component.tsx
3932
- function Pa({ title: e, items: t, className: n }) {
3981
+ function Ia({ title: e, items: t, className: n }) {
3933
3982
  return /* @__PURE__ */ r("section", {
3934
3983
  "data-slot": "faq",
3935
3984
  className: B("py-22", n),
@@ -3953,7 +4002,7 @@ function Pa({ title: e, items: t, className: n }) {
3953
4002
  });
3954
4003
  }
3955
4004
  // src/web/feature-grid.component.tsx
3956
- function Fa({ title: e, lead: t, features: n, className: a }) {
4005
+ function La({ title: e, lead: t, features: n, className: a }) {
3957
4006
  return /* @__PURE__ */ r("section", {
3958
4007
  "data-slot": "feature-grid",
3959
4008
  className: B("border-y bg-canvas py-22", a),
@@ -3993,7 +4042,7 @@ function Fa({ title: e, lead: t, features: n, className: a }) {
3993
4042
  });
3994
4043
  }
3995
4044
  // src/web/hero.component.tsx
3996
- function Ia({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
4045
+ function Ra({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
3997
4046
  return /* @__PURE__ */ r("section", {
3998
4047
  "data-slot": "hero",
3999
4048
  className: B("pt-22 pb-14", o),
@@ -4022,7 +4071,7 @@ function Ia({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
4022
4071
  });
4023
4072
  }
4024
4073
  // src/web/how-it-works.component.tsx
4025
- function La({ title: e, lead: t, link: n, steps: a, className: o }) {
4074
+ function za({ title: e, lead: t, link: n, steps: a, className: o }) {
4026
4075
  return /* @__PURE__ */ r("section", {
4027
4076
  "data-slot": "how-it-works",
4028
4077
  className: B("py-22", o),
@@ -4065,12 +4114,12 @@ function La({ title: e, lead: t, link: n, steps: a, className: o }) {
4065
4114
  });
4066
4115
  }
4067
4116
  // src/web/mobile-menu.component.tsx
4068
- var Ra = 400;
4069
- function za({ links: e, actions: t, label: n = "Main", className: a }) {
4117
+ var Ba = 400;
4118
+ function Va({ links: e, actions: t, label: n = "Main", className: a }) {
4070
4119
  let [o, s] = L(!1), [c, l] = L(), [u, f] = L(!1), p = I(null);
4071
4120
  F(() => {
4072
4121
  if (o) return;
4073
- let e = setTimeout(() => f(!1), Ra);
4122
+ let e = setTimeout(() => f(!1), Ba);
4074
4123
  return () => clearTimeout(e);
4075
4124
  }, [o]), F(() => {
4076
4125
  if (!o) return;
@@ -4166,7 +4215,7 @@ function za({ links: e, actions: t, label: n = "Main", className: a }) {
4166
4215
  });
4167
4216
  }
4168
4217
  // src/web/pricing-table.component.tsx
4169
- function Ba({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
4218
+ function Ha({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
4170
4219
  let [l, u] = L(a);
4171
4220
  return /* @__PURE__ */ r("section", {
4172
4221
  "data-slot": "pricing-table",
@@ -4253,7 +4302,7 @@ function Ba({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
4253
4302
  });
4254
4303
  }
4255
4304
  // src/web/product-card.component.tsx
4256
- function Va({ product: e, href: t, description: n, stage: a, className: o }) {
4305
+ function Ua({ product: e, href: t, description: n, stage: a, className: o }) {
4257
4306
  let s = V[e];
4258
4307
  return /* @__PURE__ */ i("a", {
4259
4308
  "data-slot": "product-card",
@@ -4291,7 +4340,7 @@ function Va({ product: e, href: t, description: n, stage: a, className: o }) {
4291
4340
  });
4292
4341
  }
4293
4342
  // src/web/site-footer.component.tsx
4294
- function Ha({ tagline: e, columns: t, legal: n, className: a }) {
4343
+ function Wa({ tagline: e, columns: t, legal: n, className: a }) {
4295
4344
  return /* @__PURE__ */ i("footer", {
4296
4345
  "data-slot": "site-footer",
4297
4346
  className: B("border-t pt-14 pb-10", a),
@@ -4332,7 +4381,7 @@ function Ha({ tagline: e, columns: t, legal: n, className: a }) {
4332
4381
  });
4333
4382
  }
4334
4383
  // src/web/site-header.component.tsx
4335
- function Ua({ nav: e, actions: t, brand: a, className: o }) {
4384
+ function Ga({ nav: e, actions: t, brand: a, className: o }) {
4336
4385
  let s = a ?? /* @__PURE__ */ i("a", {
4337
4386
  href: "/",
4338
4387
  className: "flex items-center gap-2 no-underline",
@@ -4378,7 +4427,7 @@ function Ua({ nav: e, actions: t, brand: a, className: o }) {
4378
4427
  className: "ms-auto hidden items-center gap-2 md:flex",
4379
4428
  children: t
4380
4429
  }),
4381
- /* @__PURE__ */ r(za, {
4430
+ /* @__PURE__ */ r(Va, {
4382
4431
  className: "ms-auto md:hidden",
4383
4432
  links: e.flatMap((e) => e.links ?? [{
4384
4433
  label: e.label,
@@ -4390,6 +4439,6 @@ function Ua({ nav: e, actions: t, brand: a, className: o }) {
4390
4439
  })
4391
4440
  });
4392
4441
  }
4393
- export { mr as Accordion, _r as AccordionContent, hr as AccordionItem, gr as AccordionTrigger, ir as Alert, Mt as AlertDialog, Lt as AlertDialogAction, Rt as AlertDialogCancel, Pt as AlertDialogContent, It as AlertDialogDescription, Ft as AlertDialogTitle, Nt as AlertDialogTrigger, ca as AppShell, sa as AppShellBody, oa as AppShellHeader, et as Avatar, nt as AvatarFallback, tt as AvatarImage, K as Badge, Aa as BottomNav, Rr as Breadcrumb, Br as BreadcrumbItem, Vr as BreadcrumbLink, zr as BreadcrumbList, Hr as BreadcrumbPage, Ur as BreadcrumbSeparator, Di as BulkActionBar, J as Button, Ze as COLOUR_SCHEMES, ja as CaptureFrame, vr as Card, Sr as CardContent, xr as CardDescription, Cr as CardFooter, yr as CardHeader, br as CardTitle, at as Checkbox, er as Combobox, bn as Command, xn as CommandDialog, wn as CommandEmpty, Tn as CommandGroup, Sn as CommandInput, En as CommandItem, Cn as CommandList, Dn as CommandSeparator, On as CommandShortcut, kn as ContextMenu, jn as ContextMenuContent, Mn as ContextMenuItem, Nn as ContextMenuSeparator, Pn as ContextMenuShortcut, An as ContextMenuTrigger, Na as CtaBand, Xe as DENSITIES, zt as Dialog, Vt as DialogClose, Ht as DialogContent, Kt as DialogDescription, Wt as DialogFooter, Ut as DialogHeader, Gt as DialogTitle, Bt as DialogTrigger, qt as Drawer, Yt as DrawerClose, Xt as DrawerContent, Qt as DrawerDescription, Zt as DrawerTitle, Jt as DrawerTrigger, Fn as DropdownMenu, zn as DropdownMenuContent, Ln as DropdownMenuGroup, Bn as DropdownMenuItem, Hn as DropdownMenuLabel, Rn as DropdownMenuRadioGroup, Vn as DropdownMenuRadioItem, Un as DropdownMenuSeparator, Wn as DropdownMenuShortcut, In as DropdownMenuTrigger, ar as EmptyState, Re as FAMILY_PALETTE, Ge as FREE_HUES, Pa as Faq, Fa as FeatureGrid, vt as Field, fr as FileDropOverlay, la as FilterBar, ua as FilterChip, xa as FlowNode, da as FormSection, Je as HUES, W as HUE_FILL, Ia as Hero, La as HowItWorks, yt as Input, Sa as Inspector, wr as Kbd, Ne as LABEL_COLORS, G as LOGO_RULE, _t as Label, Gr as MenuIcon, Kr as Menubar, Yr as MenubarContent, Xr as MenubarItem, qr as MenubarMenu, Qr as MenubarSeparator, Zr as MenubarShortcut, Jr as MenubarTrigger, za as MobileMenu, $r as NavigationMenu, ii as NavigationMenuContent, ti as NavigationMenuItem, ai as NavigationMenuLink, ei as NavigationMenuList, ri as NavigationMenuTrigger, Ye as PALETTE_STEPS, qe as PRODUCTS, V as PRODUCT_CATALOGUE, We as PRODUCT_HUES, fa as PageHeader, oi as Pagination, en as Popover, nn as PopoverAnchor, rn as PopoverContent, tn as PopoverTrigger, $t as Portal, Ei as Presence, Ba as PricingTable, Va as ProductCard, H as ProductLogo, Xi as ProductSwitcher, or as Progress, _a as RUN_STATUSES, ot as RadioGroup, st as RadioGroupItem, Ma as RecordButton, pa as RecordsTable, Dr as ResizableHandle, Er as ResizablePanel, Tr as ResizablePanelGroup, Or as ScrollArea, kr as ScrollBar, bt as Select, Oi as SelectAllCheckbox, wt as SelectContent, xt as SelectGroup, Et as SelectItem, Tt as SelectLabel, Dt as SelectSeparator, Ct as SelectTrigger, St as SelectValue, Mi as SelectableList, Ni as SelectableRow, ki as SelectionHeader, Ar as Separator, an as Sheet, sn as SheetClose, dn as SheetContent, ln as SheetDescription, cn as SheetTitle, on as SheetTrigger, zi as Sidebar, Zi as SidebarBrand, Vi as SidebarCollapseButton, Ui as SidebarContent, Gi as SidebarFooter, Ki as SidebarGroup, Hi as SidebarHeader, qi as SidebarItem, Wi as SidebarNote, Yi as SidebarSheet, Bi as SidebarTooltip, Ha as SiteFooter, Ua as SiteHeader, sr as Skeleton, ct as Slider, cr as Spinner, ga as StatCard, ba as StatusBadge, Ca as StatusBar, wi as Stepper, lt as Switch, Gn as TAG_DELIMITERS, jr as Table, Nr as TableBody, Lr as TableCaption, Ir as TableCell, Fr as TableHead, Mr as TableHeader, Pr as TableRow, di as Tabs, Si as TabsContent, mi as TabsList, _i as TabsTrigger, Jn as Tag, Zn as TagsInput, Ot as Textarea, $e as ThemeRoot, Oa as TimelineLanes, ka as TitleBar, lr as Toaster, ft as ToggleGroup, pt as ToggleGroupItem, pn as Tooltip, hn as TooltipContent, fn as TooltipProvider, mn as TooltipTrigger, ur as acceptsFile, qn as addTags, Ie as apcaContrast, rt as badgeVariants, q as buttonVariants, B as cn, $i as commandShortcutLabel, mt as controlClassName, Q as fadingLabelClassName, At as floatingMotionClassName, Da as formatClockTime, Ea as formatTimecode, Ke as hueForProduct, Ue as logoColorForHue, dr as mayAcceptDrag, X as menuItemClassName, vn as menuSeparatorClassName, _n as menuShortcutClassName, Li as navRowClassName, kt as overlayClassName, Ti as presenceClassName, Le as readableLabel, ya as runStatusDisplay, jt as sheetMotionClassName, Ii as sidebarNoteClassName, ma as sparklinePath, Kn as splitTags, Yn as tagsFieldClassName, Xn as tagsFieldInputClassName, Qe as themeAttributes, wa as timelineBox, Ta as timelineTicks, Qi as useCommandShortcut, ia as useCommandShortcutLabel, Y as useFieldControl, gt as useFieldLabelId, Qn as useOptionSearch, pr as usePageDrop, Pi as useSelection, Z as useSidebar };
4442
+ export { mr as Accordion, _r as AccordionContent, hr as AccordionItem, gr as AccordionTrigger, ir as Alert, Mt as AlertDialog, Lt as AlertDialogAction, Rt as AlertDialogCancel, Pt as AlertDialogContent, It as AlertDialogDescription, Ft as AlertDialogTitle, Nt as AlertDialogTrigger, la as AppShell, ca as AppShellBody, oa as AppShellHeader, et as Avatar, nt as AvatarFallback, tt as AvatarImage, K as Badge, Ma as BottomNav, Rr as Breadcrumb, Br as BreadcrumbItem, Vr as BreadcrumbLink, zr as BreadcrumbList, Hr as BreadcrumbPage, Ur as BreadcrumbSeparator, Di as BulkActionBar, J as Button, Ze as COLOUR_SCHEMES, Na as CaptureFrame, vr as Card, Sr as CardContent, xr as CardDescription, Cr as CardFooter, yr as CardHeader, br as CardTitle, at as Checkbox, er as Combobox, bn as Command, xn as CommandDialog, wn as CommandEmpty, Tn as CommandGroup, Sn as CommandInput, En as CommandItem, Cn as CommandList, Dn as CommandSeparator, On as CommandShortcut, kn as ContextMenu, jn as ContextMenuContent, Mn as ContextMenuItem, Nn as ContextMenuSeparator, Pn as ContextMenuShortcut, An as ContextMenuTrigger, Fa as CtaBand, Xe as DENSITIES, zt as Dialog, Vt as DialogClose, Ht as DialogContent, Kt as DialogDescription, Wt as DialogFooter, Ut as DialogHeader, Gt as DialogTitle, Bt as DialogTrigger, qt as Drawer, Yt as DrawerClose, Xt as DrawerContent, Qt as DrawerDescription, Zt as DrawerTitle, Jt as DrawerTrigger, Fn as DropdownMenu, zn as DropdownMenuContent, Ln as DropdownMenuGroup, Bn as DropdownMenuItem, Hn as DropdownMenuLabel, Rn as DropdownMenuRadioGroup, Vn as DropdownMenuRadioItem, Un as DropdownMenuSeparator, Wn as DropdownMenuShortcut, In as DropdownMenuTrigger, ar as EmptyState, Re as FAMILY_PALETTE, Ge as FREE_HUES, Ia as Faq, La as FeatureGrid, vt as Field, fr as FileDropOverlay, ua as FilterBar, da as FilterChip, Ca as FlowNode, fa as FormSection, Je as HUES, W as HUE_FILL, Ra as Hero, za as HowItWorks, yt as Input, wa as Inspector, wr as Kbd, Ne as LABEL_COLORS, G as LOGO_RULE, _t as Label, Gr as MenuIcon, Kr as Menubar, Yr as MenubarContent, Xr as MenubarItem, qr as MenubarMenu, Qr as MenubarSeparator, Zr as MenubarShortcut, Jr as MenubarTrigger, Va as MobileMenu, $r as NavigationMenu, ii as NavigationMenuContent, ti as NavigationMenuItem, ai as NavigationMenuLink, ei as NavigationMenuList, ri as NavigationMenuTrigger, Ye as PALETTE_STEPS, qe as PRODUCTS, V as PRODUCT_CATALOGUE, We as PRODUCT_HUES, pa as PageHeader, oi as Pagination, en as Popover, nn as PopoverAnchor, rn as PopoverContent, tn as PopoverTrigger, $t as Portal, Ei as Presence, Ha as PricingTable, Ua as ProductCard, H as ProductLogo, Xi as ProductSwitcher, or as Progress, ya as RUN_STATUSES, ot as RadioGroup, st as RadioGroupItem, Pa as RecordButton, ma as RecordsTable, Dr as ResizableHandle, Er as ResizablePanel, Tr as ResizablePanelGroup, Or as ScrollArea, kr as ScrollBar, bt as Select, Oi as SelectAllCheckbox, wt as SelectContent, xt as SelectGroup, Et as SelectItem, Tt as SelectLabel, Dt as SelectSeparator, Ct as SelectTrigger, St as SelectValue, Mi as SelectableList, Ni as SelectableRow, ki as SelectionHeader, Ar as Separator, an as Sheet, sn as SheetClose, dn as SheetContent, ln as SheetDescription, cn as SheetTitle, on as SheetTrigger, zi as Sidebar, Zi as SidebarBrand, Vi as SidebarCollapseButton, Ui as SidebarContent, Gi as SidebarFooter, Ki as SidebarGroup, Hi as SidebarHeader, qi as SidebarItem, Wi as SidebarNote, Yi as SidebarSheet, Bi as SidebarTooltip, Wa as SiteFooter, Ga as SiteHeader, sr as Skeleton, ct as Slider, cr as Spinner, ha as SplitView, va as StatCard, Sa as StatusBadge, Ta as StatusBar, wi as Stepper, lt as Switch, Gn as TAG_DELIMITERS, jr as Table, Nr as TableBody, Lr as TableCaption, Ir as TableCell, Fr as TableHead, Mr as TableHeader, Pr as TableRow, di as Tabs, Si as TabsContent, mi as TabsList, _i as TabsTrigger, Jn as Tag, Zn as TagsInput, Ot as Textarea, $e as ThemeRoot, Aa as TimelineLanes, ja as TitleBar, lr as Toaster, ft as ToggleGroup, pt as ToggleGroupItem, pn as Tooltip, hn as TooltipContent, fn as TooltipProvider, mn as TooltipTrigger, ur as acceptsFile, qn as addTags, Ie as apcaContrast, rt as badgeVariants, q as buttonVariants, B as cn, $i as commandShortcutLabel, mt as controlClassName, Q as fadingLabelClassName, At as floatingMotionClassName, ka as formatClockTime, Oa as formatTimecode, Ke as hueForProduct, Ue as logoColorForHue, dr as mayAcceptDrag, X as menuItemClassName, vn as menuSeparatorClassName, _n as menuShortcutClassName, Li as navRowClassName, kt as overlayClassName, Ti as presenceClassName, Le as readableLabel, xa as runStatusDisplay, jt as sheetMotionClassName, Ii as sidebarNoteClassName, ga as sparklinePath, Kn as splitTags, Yn as tagsFieldClassName, Xn as tagsFieldInputClassName, Qe as themeAttributes, Ea as timelineBox, Da as timelineTicks, Qi as useCommandShortcut, ia as useCommandShortcutLabel, Y as useFieldControl, gt as useFieldLabelId, Qn as useOptionSearch, pr as usePageDrop, Pi as useSelection, Z as useSidebar };
4394
4443
 
4395
4444
  //# sourceMappingURL=index.js.map