@talogic/react 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +126 -122
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/ui/navigation/tabs.component.d.ts +2 -1
package/index.js
CHANGED
|
@@ -2267,7 +2267,7 @@ function gi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2267
2267
|
className: V("group/tab relative inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap font-medium text-muted-foreground outline-none", "hover:text-foreground disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4", "transition-colors duration-150 data-[state=active]:text-foreground motion-reduce:transition-none", "group-data-[variant=pill]/tabs-list:focus-visible:ring-2 group-data-[variant=pill]/tabs-list:focus-visible:ring-ring group-data-[variant=underline]/tabs-list:focus-visible:bg-brand-soft", "group-data-[variant=pill]/tabs-list:h-[calc(var(--control-h)-6px)] group-data-[variant=pill]/tabs-list:rounded-sm group-data-[variant=pill]/tabs-list:px-3 group-data-[variant=pill]/tabs-list:text-[13px]", "group-data-[variant=underline]/tabs-list:rounded-sm group-data-[variant=underline]/tabs-list:py-2.5 group-data-[variant=underline]/tabs-list:text-sm", "group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:justify-start group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:px-3 group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:py-2", "group-data-[variant=outline]/tabs-list:h-(--control-h) group-data-[variant=outline]/tabs-list:rounded-t-md group-data-[variant=outline]/tabs-list:px-3.5 group-data-[variant=outline]/tabs-list:text-sm group-data-[variant=outline]/tabs-list:data-[orientation=vertical]:justify-start", u === "outline" && mi, e),
|
|
2268
2268
|
...l,
|
|
2269
2269
|
children: [
|
|
2270
|
-
s,
|
|
2270
|
+
/* @__PURE__ */ r(w.Slottable, { children: s }),
|
|
2271
2271
|
t === void 0 ? null : /* @__PURE__ */ r("span", {
|
|
2272
2272
|
"data-slot": "tabs-count",
|
|
2273
2273
|
className: "min-w-5 rounded-full bg-muted px-1.5 text-center text-[11px] leading-5 tabular-nums text-muted-foreground transition-colors group-data-[state=active]/tab:bg-brand-soft group-data-[state=active]/tab:text-brand-text",
|
|
@@ -2464,7 +2464,7 @@ function Ti({ present: e, animation: t = "fade", unmountOnExit: n = !0, initial:
|
|
|
2464
2464
|
]), Te(() => {
|
|
2465
2465
|
if (e || !u) return;
|
|
2466
2466
|
let t = m.current;
|
|
2467
|
-
t && getComputedStyle(t)
|
|
2467
|
+
t && Ei(getComputedStyle(t)) || h();
|
|
2468
2468
|
}, [e, u]), !u && n ? null : /* @__PURE__ */ r("div", {
|
|
2469
2469
|
ref: m,
|
|
2470
2470
|
"data-slot": "presence",
|
|
@@ -2481,11 +2481,15 @@ function Ti({ present: e, animation: t = "fade", unmountOnExit: n = !0, initial:
|
|
|
2481
2481
|
...l
|
|
2482
2482
|
});
|
|
2483
2483
|
}
|
|
2484
|
+
function Ei(e) {
|
|
2485
|
+
let t = e.animationName.split(",").map((e) => e.trim()), n = e.animationDuration.split(",").map((e) => Number(e.trim().replace(/s$/, "")) || 0);
|
|
2486
|
+
return t.some((e) => e !== "" && e !== "none") && n.some((e) => e > 0);
|
|
2487
|
+
}
|
|
2484
2488
|
// src/ui/presence/presence-group.component.tsx
|
|
2485
|
-
function
|
|
2489
|
+
function Di({ children: e, animation: t = "expand", initial: n = !1, className: i }) {
|
|
2486
2490
|
let [a, o] = R(() => ({
|
|
2487
2491
|
source: e,
|
|
2488
|
-
items:
|
|
2492
|
+
items: Oi(e).map((e) => ({
|
|
2489
2493
|
key: String(e.key),
|
|
2490
2494
|
element: e,
|
|
2491
2495
|
present: !0,
|
|
@@ -2494,7 +2498,7 @@ function Ei({ children: e, animation: t = "expand", initial: n = !1, className:
|
|
|
2494
2498
|
}));
|
|
2495
2499
|
a.source !== e && o({
|
|
2496
2500
|
source: e,
|
|
2497
|
-
items:
|
|
2501
|
+
items: ki(a.items, Oi(e))
|
|
2498
2502
|
});
|
|
2499
2503
|
function s(e) {
|
|
2500
2504
|
o((t) => ({
|
|
@@ -2513,10 +2517,10 @@ function Ei({ children: e, animation: t = "expand", initial: n = !1, className:
|
|
|
2513
2517
|
children: e.element
|
|
2514
2518
|
}, e.key));
|
|
2515
2519
|
}
|
|
2516
|
-
function
|
|
2520
|
+
function Oi(e) {
|
|
2517
2521
|
return ve.toArray(e).filter(xe);
|
|
2518
2522
|
}
|
|
2519
|
-
function
|
|
2523
|
+
function ki(e, t) {
|
|
2520
2524
|
let n = new Map(e.map((e) => [e.key, e])), r = new Set(t.map((e) => String(e.key))), i = [], a = /* @__PURE__ */ new Set(), o = 0;
|
|
2521
2525
|
function s(e) {
|
|
2522
2526
|
for (let r of t.slice(o)) {
|
|
@@ -2537,7 +2541,7 @@ function Oi(e, t) {
|
|
|
2537
2541
|
return s(null), i;
|
|
2538
2542
|
}
|
|
2539
2543
|
// src/ui/selectable-list/bulk-action-bar.component.tsx
|
|
2540
|
-
function
|
|
2544
|
+
function Ai({ selection: e, children: t, countLabel: n = (e) => `${e} selected`, label: a = "Bulk actions", clearable: o = !0, clearLabel: s = "Clear selection", className: c }) {
|
|
2541
2545
|
return e.count === 0 ? null : /* @__PURE__ */ i("div", {
|
|
2542
2546
|
role: "toolbar",
|
|
2543
2547
|
"aria-label": a,
|
|
@@ -2563,7 +2567,7 @@ function ki({ selection: e, children: t, countLabel: n = (e) => `${e} selected`,
|
|
|
2563
2567
|
});
|
|
2564
2568
|
}
|
|
2565
2569
|
// src/ui/selectable-list/select-all-checkbox.component.tsx
|
|
2566
|
-
function
|
|
2570
|
+
function ji({ selection: e, filters: t = [], children: n, label: a = "Select all", menuLabel: o = "Selection options", allLabel: s = "All", noneLabel: c = "None", className: l }) {
|
|
2567
2571
|
return /* @__PURE__ */ i("div", {
|
|
2568
2572
|
"data-slot": "select-all-checkbox",
|
|
2569
2573
|
className: V("inline-flex items-center gap-0.5", l),
|
|
@@ -2603,17 +2607,17 @@ function Ai({ selection: e, filters: t = [], children: n, label: a = "Select all
|
|
|
2603
2607
|
});
|
|
2604
2608
|
}
|
|
2605
2609
|
// src/ui/selectable-list/selection-header.component.tsx
|
|
2606
|
-
function
|
|
2610
|
+
function Mi({ selection: e, actions: t, filters: n, summary: a, countLabel: o, className: s }) {
|
|
2607
2611
|
return /* @__PURE__ */ i("div", {
|
|
2608
2612
|
"data-slot": "selection-header",
|
|
2609
2613
|
className: V("sticky top-0 z-10 flex min-h-11 items-center gap-2 border-b bg-background px-3", s),
|
|
2610
|
-
children: [/* @__PURE__ */ r(
|
|
2614
|
+
children: [/* @__PURE__ */ r(ji, {
|
|
2611
2615
|
selection: e,
|
|
2612
2616
|
filters: n
|
|
2613
2617
|
}), e.count === 0 ? /* @__PURE__ */ r("div", {
|
|
2614
2618
|
className: "text-sm text-muted-foreground",
|
|
2615
2619
|
children: a
|
|
2616
|
-
}) : /* @__PURE__ */ r(
|
|
2620
|
+
}) : /* @__PURE__ */ r(Ai, {
|
|
2617
2621
|
selection: e,
|
|
2618
2622
|
countLabel: o,
|
|
2619
2623
|
clearable: !1,
|
|
@@ -2623,8 +2627,8 @@ function ji({ selection: e, actions: t, filters: n, summary: a, countLabel: o, c
|
|
|
2623
2627
|
});
|
|
2624
2628
|
}
|
|
2625
2629
|
// src/ui/selectable-list/selectable-list.component.tsx
|
|
2626
|
-
var
|
|
2627
|
-
function
|
|
2630
|
+
var Ni = be(null), Pi = "[data-slot=\"selectable-row\"]";
|
|
2631
|
+
function Fi({ selection: e, className: t, children: n, ...i }) {
|
|
2628
2632
|
let a = L(null), [o, s] = R(), c = o !== void 0 && e.ids.includes(o) ? o : e.ids[0];
|
|
2629
2633
|
function l(t) {
|
|
2630
2634
|
let n = t.target;
|
|
@@ -2637,17 +2641,17 @@ function Pi({ selection: e, className: t, children: n, ...i }) {
|
|
|
2637
2641
|
t.preventDefault(), e.clear();
|
|
2638
2642
|
return;
|
|
2639
2643
|
}
|
|
2640
|
-
let r = n.closest(
|
|
2644
|
+
let r = n.closest(Pi), i = r?.dataset.id;
|
|
2641
2645
|
if (i === void 0 || !r) return;
|
|
2642
2646
|
if (n === r && t.key === " ") {
|
|
2643
2647
|
t.preventDefault(), e.toggle(i, { range: t.shiftKey });
|
|
2644
2648
|
return;
|
|
2645
2649
|
}
|
|
2646
2650
|
if (t.key !== "ArrowDown" && t.key !== "ArrowUp") return;
|
|
2647
|
-
let o = [...a.current?.querySelectorAll(
|
|
2651
|
+
let o = [...a.current?.querySelectorAll(Pi) ?? []], s = o[o.indexOf(r) + (t.key === "ArrowDown" ? 1 : -1)], c = s?.dataset.id;
|
|
2648
2652
|
s && c !== void 0 && (t.preventDefault(), s.focus(), t.shiftKey && e.add([i, c]));
|
|
2649
2653
|
}
|
|
2650
|
-
return /* @__PURE__ */ r(
|
|
2654
|
+
return /* @__PURE__ */ r(Ni, {
|
|
2651
2655
|
value: {
|
|
2652
2656
|
selection: e,
|
|
2653
2657
|
activeId: c,
|
|
@@ -2664,8 +2668,8 @@ function Pi({ selection: e, className: t, children: n, ...i }) {
|
|
|
2664
2668
|
})
|
|
2665
2669
|
});
|
|
2666
2670
|
}
|
|
2667
|
-
function
|
|
2668
|
-
let l = Se(
|
|
2671
|
+
function Ii({ id: e, label: t, className: n, children: a, onClickCapture: o, onFocus: s, ...c }) {
|
|
2672
|
+
let l = Se(Ni);
|
|
2669
2673
|
if (!l) throw Error("SelectableRow must be inside a SelectableList.");
|
|
2670
2674
|
let { selection: u, activeId: d, setActive: f } = l, p = u.isSelected(e);
|
|
2671
2675
|
function m(t) {
|
|
@@ -2697,7 +2701,7 @@ function Fi({ id: e, label: t, className: n, children: a, onClickCapture: o, onF
|
|
|
2697
2701
|
});
|
|
2698
2702
|
}
|
|
2699
2703
|
// src/ui/selectable-list/selection.hook.ts
|
|
2700
|
-
function
|
|
2704
|
+
function Li(e, t = {}) {
|
|
2701
2705
|
let [n, r] = R(() => new Set(t.defaultSelected)), i = L(void 0), a = Ee(() => new Set(e.filter((e) => n.has(e))), [e, n]), o = a.size, s = o === 0 ? !1 : o === e.length || "indeterminate", c = F((e) => a.has(e), [a]), l = F((t, { range: n = !1 } = {}) => {
|
|
2702
2706
|
let o = !a.has(t), s = n && i.current !== void 0 ? e.indexOf(i.current) : -1, c = e.indexOf(t), l = Math.min(s, c) === -1 ? [t] : e.slice(Math.min(s, c), Math.max(s, c) + 1);
|
|
2703
2707
|
i.current = t, r((e) => {
|
|
@@ -2724,14 +2728,14 @@ function Ii(e, t = {}) {
|
|
|
2724
2728
|
};
|
|
2725
2729
|
}
|
|
2726
2730
|
// src/ui/sidebar/sidebar-context.hook.ts
|
|
2727
|
-
var
|
|
2731
|
+
var Ri = be(null);
|
|
2728
2732
|
function Z() {
|
|
2729
|
-
let e = Ce(
|
|
2733
|
+
let e = Ce(Ri);
|
|
2730
2734
|
if (!e) throw Error("A sidebar part must be inside a Sidebar.");
|
|
2731
2735
|
return e;
|
|
2732
2736
|
}
|
|
2733
2737
|
// src/ui/sidebar/sidebar.recipe.ts
|
|
2734
|
-
var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] duration-150 ease-out [transition-delay:60ms,60ms] motion-reduce:transition-none group-data-[collapsed]/sidebar:shrink-0 group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 group-data-[collapsed]/sidebar:[transition-delay:0ms] in-data-[slot=sidebar-sheet]:animate-sidebar-label-in motion-reduce:in-data-[slot=sidebar-sheet]:animate-none",
|
|
2738
|
+
var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] duration-150 ease-out [transition-delay:60ms,60ms] motion-reduce:transition-none group-data-[collapsed]/sidebar:shrink-0 group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 group-data-[collapsed]/sidebar:[transition-delay:0ms] in-data-[slot=sidebar-sheet]:animate-sidebar-label-in motion-reduce:in-data-[slot=sidebar-sheet]:animate-none", zi = "grid grid-rows-[1fr] transition-[grid-template-rows,opacity,translate,margin] duration-200 ease-out motion-reduce:transition-none group-data-[collapsed]/sidebar:-mt-2 group-data-[collapsed]/sidebar:translate-y-2 group-data-[collapsed]/sidebar:grid-rows-[0fr] group-data-[collapsed]/sidebar:opacity-0", Bi = "flex h-9 w-full shrink-0 cursor-pointer items-center gap-3 rounded-md px-3 text-[13.5px] font-medium text-muted-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none hover:bg-sidebar-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring [&_svg]:size-4 [&_svg]:shrink-0 aria-[current]:bg-brand-soft aria-[current]:text-brand-text", Vi = {
|
|
2735
2739
|
panel: {
|
|
2736
2740
|
open: "w-64 gap-2 px-1.5 py-2.5",
|
|
2737
2741
|
collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
|
|
@@ -2741,12 +2745,12 @@ var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] durat
|
|
|
2741
2745
|
collapsed: "w-14 gap-4 px-2 py-3"
|
|
2742
2746
|
}
|
|
2743
2747
|
};
|
|
2744
|
-
function
|
|
2748
|
+
function Hi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
|
|
2745
2749
|
let [d, f] = R(o), p = a ?? d;
|
|
2746
2750
|
function m(e) {
|
|
2747
2751
|
a === void 0 && f(e), s?.(e);
|
|
2748
2752
|
}
|
|
2749
|
-
return /* @__PURE__ */ r(
|
|
2753
|
+
return /* @__PURE__ */ r(Ri, {
|
|
2750
2754
|
value: {
|
|
2751
2755
|
collapsed: p,
|
|
2752
2756
|
setCollapsed: m,
|
|
@@ -2759,7 +2763,7 @@ function Vi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2759
2763
|
"data-variant": t,
|
|
2760
2764
|
"data-collapsed": p || void 0,
|
|
2761
2765
|
"aria-label": e,
|
|
2762
|
-
className: V("group/sidebar flex h-full min-h-0 shrink-0 flex-col overflow-hidden bg-sidebar text-[13px] text-sidebar-foreground", n === "start" ? "border-e border-sidebar-border" : "border-s border-sidebar-border", "relative transition-[width] duration-150 ease-out motion-reduce:transition-none", p ?
|
|
2766
|
+
className: V("group/sidebar flex h-full min-h-0 shrink-0 flex-col overflow-hidden bg-sidebar text-[13px] text-sidebar-foreground", n === "start" ? "border-e border-sidebar-border" : "border-s border-sidebar-border", "relative transition-[width] duration-150 ease-out motion-reduce:transition-none", p ? Vi[t].collapsed : Vi[t].open, c),
|
|
2763
2767
|
...u,
|
|
2764
2768
|
children: [l, t === "panel" && /* @__PURE__ */ r("span", {
|
|
2765
2769
|
"aria-hidden": "true",
|
|
@@ -2769,7 +2773,7 @@ function Vi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2769
2773
|
})
|
|
2770
2774
|
});
|
|
2771
2775
|
}
|
|
2772
|
-
function
|
|
2776
|
+
function Ui({ label: e, children: t }) {
|
|
2773
2777
|
let { collapsed: n, side: a } = Z(), [o, s] = R(!1);
|
|
2774
2778
|
return /* @__PURE__ */ i(mn, {
|
|
2775
2779
|
open: n && o,
|
|
@@ -2783,16 +2787,16 @@ function Hi({ label: e, children: t }) {
|
|
|
2783
2787
|
})]
|
|
2784
2788
|
});
|
|
2785
2789
|
}
|
|
2786
|
-
function
|
|
2790
|
+
function Wi({ className: e, ...t }) {
|
|
2787
2791
|
let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } = Z(), l = c === "nav" ? `${n ? "Expand" : "Collapse"} sidebar` : `${n ? "Show" : "Hide"} ${o.toLowerCase()}`;
|
|
2788
|
-
if (c === "nav") return /* @__PURE__ */ r(
|
|
2792
|
+
if (c === "nav") return /* @__PURE__ */ r(Ui, {
|
|
2789
2793
|
label: l,
|
|
2790
2794
|
children: /* @__PURE__ */ i("button", {
|
|
2791
2795
|
type: "button",
|
|
2792
2796
|
"aria-label": l,
|
|
2793
2797
|
"aria-expanded": !n,
|
|
2794
2798
|
onClick: () => a(!n),
|
|
2795
|
-
className: V(
|
|
2799
|
+
className: V(Bi, e),
|
|
2796
2800
|
...t,
|
|
2797
2801
|
children: [/* @__PURE__ */ r(ue, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
|
|
2798
2802
|
"aria-hidden": "true",
|
|
@@ -2814,7 +2818,7 @@ function Ui({ className: e, ...t }) {
|
|
|
2814
2818
|
children: r(u ? re : ie, {})
|
|
2815
2819
|
});
|
|
2816
2820
|
}
|
|
2817
|
-
function
|
|
2821
|
+
function Gi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, className: o }) {
|
|
2818
2822
|
let { collapsed: s, label: c, variant: l } = Z();
|
|
2819
2823
|
if (l === "nav") return /* @__PURE__ */ r("div", {
|
|
2820
2824
|
"data-slot": "sidebar-header",
|
|
@@ -2836,10 +2840,10 @@ function Wi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, clas
|
|
|
2836
2840
|
"aria-label": u,
|
|
2837
2841
|
startIcon: /* @__PURE__ */ r(me, {})
|
|
2838
2842
|
}), a]
|
|
2839
|
-
}), /* @__PURE__ */ r(
|
|
2843
|
+
}), /* @__PURE__ */ r(Wi, { className: "ms-auto" })]
|
|
2840
2844
|
});
|
|
2841
2845
|
}
|
|
2842
|
-
function
|
|
2846
|
+
function Ki({ className: e, ...t }) {
|
|
2843
2847
|
let { label: n, variant: i } = Z(), a = V("flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto [scrollbar-width:thin]", "group-data-[collapsed]/sidebar:[scrollbar-width:none] group-data-[collapsed]/sidebar:[&::-webkit-scrollbar]:hidden", i === "panel" ? "gap-3" : "gap-4", e);
|
|
2844
2848
|
return i === "nav" ? /* @__PURE__ */ r("nav", {
|
|
2845
2849
|
"data-slot": "sidebar-content",
|
|
@@ -2852,12 +2856,12 @@ function Gi({ className: e, ...t }) {
|
|
|
2852
2856
|
...t
|
|
2853
2857
|
});
|
|
2854
2858
|
}
|
|
2855
|
-
function
|
|
2859
|
+
function qi({ className: e, children: t, ...n }) {
|
|
2856
2860
|
let { collapsed: i } = Z();
|
|
2857
2861
|
return /* @__PURE__ */ r("div", {
|
|
2858
2862
|
"data-slot": "sidebar-note",
|
|
2859
2863
|
"aria-hidden": i || void 0,
|
|
2860
|
-
className: V(
|
|
2864
|
+
className: V(zi, e),
|
|
2861
2865
|
...n,
|
|
2862
2866
|
children: /* @__PURE__ */ r("span", {
|
|
2863
2867
|
className: "min-h-0 truncate overflow-hidden px-3 text-xs whitespace-nowrap text-muted-foreground",
|
|
@@ -2865,7 +2869,7 @@ function Ki({ className: e, children: t, ...n }) {
|
|
|
2865
2869
|
})
|
|
2866
2870
|
});
|
|
2867
2871
|
}
|
|
2868
|
-
function
|
|
2872
|
+
function Ji({ className: e, ...t }) {
|
|
2869
2873
|
let { collapsed: n, variant: i } = Z();
|
|
2870
2874
|
return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
|
|
2871
2875
|
"data-slot": "sidebar-footer",
|
|
@@ -2874,7 +2878,7 @@ function qi({ className: e, ...t }) {
|
|
|
2874
2878
|
});
|
|
2875
2879
|
}
|
|
2876
2880
|
// src/ui/sidebar/sidebar-group.component.tsx
|
|
2877
|
-
function
|
|
2881
|
+
function Yi({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
|
|
2878
2882
|
let { collapsed: u, variant: d } = Z(), [f, p] = R(a), m = o ?? d === "panel", h = "text-xs font-semibold tracking-[0.04em] text-muted-foreground uppercase";
|
|
2879
2883
|
return m ? /* @__PURE__ */ i(l.Root, {
|
|
2880
2884
|
"data-slot": "sidebar-group",
|
|
@@ -2918,7 +2922,7 @@ function Ji({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collap
|
|
|
2918
2922
|
});
|
|
2919
2923
|
}
|
|
2920
2924
|
// src/ui/sidebar/sidebar-item.component.tsx
|
|
2921
|
-
function
|
|
2925
|
+
function Xi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foreground)", badge: c, active: l = !1, asChild: u = !1, className: d, children: f, ...p }) {
|
|
2922
2926
|
let { collapsed: m, variant: h } = Z(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
|
|
2923
2927
|
/* @__PURE__ */ r("span", {
|
|
2924
2928
|
"aria-hidden": "true",
|
|
@@ -2957,7 +2961,7 @@ function Yi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2957
2961
|
className: V("ms-auto text-[11px] text-muted-foreground tabular-nums", Q),
|
|
2958
2962
|
children: c
|
|
2959
2963
|
})
|
|
2960
|
-
] }), v = h === "nav" ? V(
|
|
2964
|
+
] }), v = h === "nav" ? V(Bi, d) : V("group/item flex cursor-pointer items-center rounded-md border border-transparent text-start text-sidebar-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none", "hover:border-sidebar-border hover:bg-background focus-visible:ring-2 focus-visible:ring-sidebar-ring disabled:cursor-not-allowed disabled:opacity-50", "aria-[current]:border-transparent aria-[current]:bg-brand-soft aria-[current]:text-brand-text", "w-full gap-2 px-[13px] py-1.5", d), y = {
|
|
2961
2965
|
"data-slot": "sidebar-item",
|
|
2962
2966
|
"aria-current": g,
|
|
2963
2967
|
"aria-label": m ? e : void 0,
|
|
@@ -2965,23 +2969,23 @@ function Yi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2965
2969
|
}, b = u && xe(f) ? /* @__PURE__ */ r(w.Root, {
|
|
2966
2970
|
...y,
|
|
2967
2971
|
...p,
|
|
2968
|
-
children:
|
|
2972
|
+
children: Zi(f, _)
|
|
2969
2973
|
}) : /* @__PURE__ */ r("button", {
|
|
2970
2974
|
type: "button",
|
|
2971
2975
|
...y,
|
|
2972
2976
|
...p,
|
|
2973
2977
|
children: _
|
|
2974
2978
|
});
|
|
2975
|
-
return /* @__PURE__ */ r(
|
|
2979
|
+
return /* @__PURE__ */ r(Ui, {
|
|
2976
2980
|
label: e,
|
|
2977
2981
|
children: b
|
|
2978
2982
|
});
|
|
2979
2983
|
}
|
|
2980
|
-
function
|
|
2984
|
+
function Zi(e, t) {
|
|
2981
2985
|
return ye(e, void 0, t);
|
|
2982
2986
|
}
|
|
2983
2987
|
// src/ui/sidebar/sidebar-sheet.component.tsx
|
|
2984
|
-
function
|
|
2988
|
+
function Qi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
|
|
2985
2989
|
return /* @__PURE__ */ i(on, {
|
|
2986
2990
|
open: a,
|
|
2987
2991
|
onOpenChange: o,
|
|
@@ -3006,7 +3010,7 @@ function Zi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
3006
3010
|
});
|
|
3007
3011
|
}
|
|
3008
3012
|
// src/product/product-switcher.component.tsx
|
|
3009
|
-
function
|
|
3013
|
+
function $i({ product: e, workspace: t, products: n = qe, onProductChange: a, className: o }) {
|
|
3010
3014
|
return /* @__PURE__ */ i(In, { children: [/* @__PURE__ */ r(Ln, {
|
|
3011
3015
|
asChild: !0,
|
|
3012
3016
|
children: /* @__PURE__ */ i(Y, {
|
|
@@ -3053,7 +3057,7 @@ function Qi({ product: e, workspace: t, products: n = qe, onProductChange: a, cl
|
|
|
3053
3057
|
})] });
|
|
3054
3058
|
}
|
|
3055
3059
|
// src/product/sidebar-brand.component.tsx
|
|
3056
|
-
function
|
|
3060
|
+
function ea({ product: e, badge: t, className: n }) {
|
|
3057
3061
|
let { collapsed: a, setCollapsed: o } = Z(), s = H[e].name;
|
|
3058
3062
|
return /* @__PURE__ */ i("div", {
|
|
3059
3063
|
"data-slot": "sidebar-brand",
|
|
@@ -3083,7 +3087,7 @@ function $i({ product: e, badge: t, className: n }) {
|
|
|
3083
3087
|
});
|
|
3084
3088
|
}
|
|
3085
3089
|
// src/app/command-shortcut.hook.ts
|
|
3086
|
-
function
|
|
3090
|
+
function ta(e, t = !0) {
|
|
3087
3091
|
I(() => {
|
|
3088
3092
|
if (!t) return;
|
|
3089
3093
|
function n(t) {
|
|
@@ -3092,43 +3096,43 @@ function ea(e, t = !0) {
|
|
|
3092
3096
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
3093
3097
|
}, [e, t]);
|
|
3094
3098
|
}
|
|
3095
|
-
function
|
|
3099
|
+
function na(e) {
|
|
3096
3100
|
return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
|
|
3097
3101
|
}
|
|
3098
|
-
function
|
|
3099
|
-
function ra() {
|
|
3100
|
-
return na;
|
|
3101
|
-
}
|
|
3102
|
+
function ra() {}
|
|
3102
3103
|
function ia() {
|
|
3103
|
-
return
|
|
3104
|
+
return ra;
|
|
3104
3105
|
}
|
|
3105
3106
|
function aa() {
|
|
3106
|
-
return
|
|
3107
|
+
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
3107
3108
|
}
|
|
3108
3109
|
function oa() {
|
|
3109
|
-
return
|
|
3110
|
+
return "";
|
|
3111
|
+
}
|
|
3112
|
+
function sa() {
|
|
3113
|
+
return na(De(ia, aa, oa));
|
|
3110
3114
|
}
|
|
3111
3115
|
// src/app/app-shell.component.tsx
|
|
3112
|
-
var
|
|
3113
|
-
function
|
|
3116
|
+
var ca = "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0 has-[>[data-slot=app-shell-body]]:gap-0 has-[>[data-slot=app-shell-body]]:overflow-hidden has-[>[data-slot=app-shell-body]]:p-0";
|
|
3117
|
+
function la({ children: e, className: t }) {
|
|
3114
3118
|
return /* @__PURE__ */ r("div", {
|
|
3115
3119
|
"data-slot": "app-shell-header",
|
|
3116
3120
|
className: V("shrink-0 border-b px-6 py-4", t),
|
|
3117
3121
|
children: e
|
|
3118
3122
|
});
|
|
3119
3123
|
}
|
|
3120
|
-
var
|
|
3121
|
-
function
|
|
3124
|
+
var ua = "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";
|
|
3125
|
+
function da({ children: e, className: t }) {
|
|
3122
3126
|
return /* @__PURE__ */ r("div", {
|
|
3123
3127
|
"data-slot": "app-shell-body",
|
|
3124
|
-
className: V(
|
|
3128
|
+
className: V(ua, t),
|
|
3125
3129
|
children: e
|
|
3126
3130
|
});
|
|
3127
3131
|
}
|
|
3128
|
-
function
|
|
3132
|
+
function fa({ 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, commandPlaceholder: g = "Type a command or search…", commandEmpty: _ = "No results.", children: v, className: y }) {
|
|
3129
3133
|
let [b, x] = R(!1), S = F(() => x(!0), []);
|
|
3130
|
-
|
|
3131
|
-
let C =
|
|
3134
|
+
ta(S, !!h?.length);
|
|
3135
|
+
let C = sa(), w = [...new Set(h?.map((e) => e.group))], T = (e) => /* @__PURE__ */ r(Xi, {
|
|
3132
3136
|
asChild: !0,
|
|
3133
3137
|
title: e.label,
|
|
3134
3138
|
icon: e.icon,
|
|
@@ -3139,17 +3143,17 @@ function da({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3139
3143
|
children: e.label
|
|
3140
3144
|
})
|
|
3141
3145
|
}, e.href), E = /* @__PURE__ */ i(n, { children: [
|
|
3142
|
-
/* @__PURE__ */ r(
|
|
3146
|
+
/* @__PURE__ */ r(Gi, {
|
|
3143
3147
|
className: "h-12",
|
|
3144
|
-
children: t === "logo" ? /* @__PURE__ */ r(
|
|
3148
|
+
children: t === "logo" ? /* @__PURE__ */ r(ea, { product: e }) : /* @__PURE__ */ r($i, {
|
|
3145
3149
|
product: e,
|
|
3146
3150
|
workspace: a,
|
|
3147
3151
|
onProductChange: o,
|
|
3148
3152
|
className: "px-2.5"
|
|
3149
3153
|
})
|
|
3150
3154
|
}),
|
|
3151
|
-
/* @__PURE__ */ i(
|
|
3152
|
-
h?.length ? /* @__PURE__ */ r(
|
|
3155
|
+
/* @__PURE__ */ i(Ki, { children: [
|
|
3156
|
+
h?.length ? /* @__PURE__ */ r(Xi, {
|
|
3153
3157
|
title: "Search",
|
|
3154
3158
|
icon: /* @__PURE__ */ r(me, {}),
|
|
3155
3159
|
badge: /* @__PURE__ */ r(Tr, {
|
|
@@ -3162,12 +3166,12 @@ function da({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3162
3166
|
className: "flex flex-col gap-0.5",
|
|
3163
3167
|
children: s.map((e) => T(e))
|
|
3164
3168
|
}),
|
|
3165
|
-
c && /* @__PURE__ */ r(
|
|
3169
|
+
c && /* @__PURE__ */ r(Yi, {
|
|
3166
3170
|
title: c.title,
|
|
3167
3171
|
children: c.items.map((e) => T(e))
|
|
3168
3172
|
})
|
|
3169
3173
|
] }),
|
|
3170
|
-
/* @__PURE__ */ i(
|
|
3174
|
+
/* @__PURE__ */ i(Ji, { children: [
|
|
3171
3175
|
l && /* @__PURE__ */ r("div", {
|
|
3172
3176
|
className: Q,
|
|
3173
3177
|
children: l
|
|
@@ -3185,15 +3189,15 @@ function da({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3185
3189
|
})]
|
|
3186
3190
|
})]
|
|
3187
3191
|
}),
|
|
3188
|
-
/* @__PURE__ */ r(
|
|
3189
|
-
u && /* @__PURE__ */ r(
|
|
3192
|
+
/* @__PURE__ */ r(Wi, {}),
|
|
3193
|
+
u && /* @__PURE__ */ r(qi, { children: u })
|
|
3190
3194
|
] })
|
|
3191
3195
|
] });
|
|
3192
3196
|
return /* @__PURE__ */ i("div", {
|
|
3193
3197
|
"data-slot": "app-shell",
|
|
3194
3198
|
className: V("flex h-dvh overflow-hidden bg-background", y),
|
|
3195
3199
|
children: [
|
|
3196
|
-
/* @__PURE__ */ r(
|
|
3200
|
+
/* @__PURE__ */ r(Hi, {
|
|
3197
3201
|
variant: "nav",
|
|
3198
3202
|
label: "Workspace",
|
|
3199
3203
|
className: "h-dvh max-md:hidden",
|
|
@@ -3206,10 +3210,10 @@ function da({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3206
3210
|
"data-slot": "app-top-bar",
|
|
3207
3211
|
className: V("flex h-14 shrink-0 flex-wrap items-center gap-3 border-b px-6", !f && !p && "md:hidden"),
|
|
3208
3212
|
children: [
|
|
3209
|
-
/* @__PURE__ */ r(
|
|
3213
|
+
/* @__PURE__ */ r(Qi, {
|
|
3210
3214
|
label: "Workspace",
|
|
3211
3215
|
className: "-ms-2 md:hidden",
|
|
3212
|
-
children: /* @__PURE__ */ r(
|
|
3216
|
+
children: /* @__PURE__ */ r(Hi, {
|
|
3213
3217
|
variant: "nav",
|
|
3214
3218
|
label: "Workspace",
|
|
3215
3219
|
collapsed: !1,
|
|
@@ -3226,7 +3230,7 @@ function da({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3226
3230
|
}),
|
|
3227
3231
|
/* @__PURE__ */ r("main", {
|
|
3228
3232
|
"data-slot": "app-shell-page",
|
|
3229
|
-
className:
|
|
3233
|
+
className: ca,
|
|
3230
3234
|
children: v
|
|
3231
3235
|
}),
|
|
3232
3236
|
m && /* @__PURE__ */ r("footer", {
|
|
@@ -3254,7 +3258,7 @@ function da({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3254
3258
|
});
|
|
3255
3259
|
}
|
|
3256
3260
|
// src/app/filter-bar.component.tsx
|
|
3257
|
-
function
|
|
3261
|
+
function pa({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
|
|
3258
3262
|
return /* @__PURE__ */ i("div", {
|
|
3259
3263
|
"data-slot": "filter-bar",
|
|
3260
3264
|
role: "search",
|
|
@@ -3279,7 +3283,7 @@ function fa({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
3279
3283
|
]
|
|
3280
3284
|
});
|
|
3281
3285
|
}
|
|
3282
|
-
function
|
|
3286
|
+
function ma({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
3283
3287
|
return /* @__PURE__ */ i(Y, {
|
|
3284
3288
|
variant: "outline",
|
|
3285
3289
|
size: "sm",
|
|
@@ -3298,7 +3302,7 @@ function pa({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
|
3298
3302
|
});
|
|
3299
3303
|
}
|
|
3300
3304
|
// src/app/form-section.component.tsx
|
|
3301
|
-
function
|
|
3305
|
+
function ha({ title: e, description: t, children: n, actions: a, className: o }) {
|
|
3302
3306
|
return /* @__PURE__ */ i("section", {
|
|
3303
3307
|
"data-slot": "form-section",
|
|
3304
3308
|
className: V("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
|
|
@@ -3324,7 +3328,7 @@ function ma({ title: e, description: t, children: n, actions: a, className: o })
|
|
|
3324
3328
|
});
|
|
3325
3329
|
}
|
|
3326
3330
|
// src/app/page-header.component.tsx
|
|
3327
|
-
function
|
|
3331
|
+
function ga({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
3328
3332
|
return /* @__PURE__ */ i("div", {
|
|
3329
3333
|
"data-slot": "page-header",
|
|
3330
3334
|
className: V("flex flex-col gap-4", o),
|
|
@@ -3347,7 +3351,7 @@ function ha({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
|
3347
3351
|
});
|
|
3348
3352
|
}
|
|
3349
3353
|
// src/app/records-table.component.tsx
|
|
3350
|
-
function
|
|
3354
|
+
function _a({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
|
|
3351
3355
|
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";
|
|
3352
3356
|
function m(e, t) {
|
|
3353
3357
|
let n = new Set(a);
|
|
@@ -3417,7 +3421,7 @@ function ga({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3417
3421
|
});
|
|
3418
3422
|
}
|
|
3419
3423
|
// src/app/split-view.component.tsx
|
|
3420
|
-
function
|
|
3424
|
+
function va({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o = 280, listDefaultSize: s = 352, detailMinSize: c = 360, onListSizeChange: l, className: u }) {
|
|
3421
3425
|
let d = L(null), f = L(void 0), p = L(0);
|
|
3422
3426
|
I(() => () => cancelAnimationFrame(p.current), []);
|
|
3423
3427
|
let m = F((e, t) => {
|
|
@@ -3465,7 +3469,7 @@ function _a({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o =
|
|
|
3465
3469
|
});
|
|
3466
3470
|
}
|
|
3467
3471
|
// src/app/sparkline.algorithm.ts
|
|
3468
|
-
function
|
|
3472
|
+
function ya(e, t, n, r = 2) {
|
|
3469
3473
|
if (e.length < 2) return "";
|
|
3470
3474
|
let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
|
|
3471
3475
|
return e.map((e, t) => {
|
|
@@ -3474,13 +3478,13 @@ function va(e, t, n, r = 2) {
|
|
|
3474
3478
|
}).join(" ");
|
|
3475
3479
|
}
|
|
3476
3480
|
// src/app/stat-card.component.tsx
|
|
3477
|
-
var
|
|
3481
|
+
var ba = {
|
|
3478
3482
|
positive: "text-success",
|
|
3479
3483
|
negative: "text-destructive",
|
|
3480
3484
|
neutral: "text-muted-foreground"
|
|
3481
3485
|
};
|
|
3482
|
-
function
|
|
3483
|
-
let c = o ?
|
|
3486
|
+
function xa({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
|
|
3487
|
+
let c = o ? ya(o, 100, 32) : "";
|
|
3484
3488
|
return /* @__PURE__ */ i(yr, {
|
|
3485
3489
|
"data-slot": "stat-card",
|
|
3486
3490
|
className: V("gap-1.5 p-4", s),
|
|
@@ -3512,14 +3516,14 @@ function ba({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
|
|
|
3512
3516
|
})]
|
|
3513
3517
|
}),
|
|
3514
3518
|
n && /* @__PURE__ */ r("span", {
|
|
3515
|
-
className: V("text-xs",
|
|
3519
|
+
className: V("text-xs", ba[a]),
|
|
3516
3520
|
children: n
|
|
3517
3521
|
})
|
|
3518
3522
|
]
|
|
3519
3523
|
});
|
|
3520
3524
|
}
|
|
3521
3525
|
// src/status/run-status.contract.ts
|
|
3522
|
-
var
|
|
3526
|
+
var Sa = [
|
|
3523
3527
|
"queued",
|
|
3524
3528
|
"waiting",
|
|
3525
3529
|
"running",
|
|
@@ -3527,7 +3531,7 @@ var xa = [
|
|
|
3527
3531
|
"no-records",
|
|
3528
3532
|
"failed",
|
|
3529
3533
|
"off"
|
|
3530
|
-
],
|
|
3534
|
+
], Ca = {
|
|
3531
3535
|
queued: {
|
|
3532
3536
|
label: "Queued",
|
|
3533
3537
|
variant: "secondary",
|
|
@@ -3564,12 +3568,12 @@ var xa = [
|
|
|
3564
3568
|
live: !1
|
|
3565
3569
|
}
|
|
3566
3570
|
};
|
|
3567
|
-
function
|
|
3568
|
-
return
|
|
3571
|
+
function wa(e) {
|
|
3572
|
+
return Ca[e];
|
|
3569
3573
|
}
|
|
3570
3574
|
// src/status/status-badge.component.tsx
|
|
3571
|
-
function
|
|
3572
|
-
let { label: n, variant: i, live: a } =
|
|
3575
|
+
function Ta({ status: e, ...t }) {
|
|
3576
|
+
let { label: n, variant: i, live: a } = wa(e);
|
|
3573
3577
|
return /* @__PURE__ */ r(q, {
|
|
3574
3578
|
variant: i,
|
|
3575
3579
|
dot: a,
|
|
@@ -3579,7 +3583,7 @@ function wa({ status: e, ...t }) {
|
|
|
3579
3583
|
});
|
|
3580
3584
|
}
|
|
3581
3585
|
// src/desktop/flow-node.component.tsx
|
|
3582
|
-
function
|
|
3586
|
+
function Ea({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
|
|
3583
3587
|
return /* @__PURE__ */ i("button", {
|
|
3584
3588
|
type: "button",
|
|
3585
3589
|
"data-slot": "flow-node",
|
|
@@ -3597,7 +3601,7 @@ function Ta({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3597
3601
|
className: "font-semibold",
|
|
3598
3602
|
children: e
|
|
3599
3603
|
}),
|
|
3600
|
-
/* @__PURE__ */ r(
|
|
3604
|
+
/* @__PURE__ */ r(Ta, {
|
|
3601
3605
|
status: n,
|
|
3602
3606
|
className: "ms-auto h-[18px] text-[11px]"
|
|
3603
3607
|
})
|
|
@@ -3609,7 +3613,7 @@ function Ta({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3609
3613
|
});
|
|
3610
3614
|
}
|
|
3611
3615
|
// src/desktop/inspector.component.tsx
|
|
3612
|
-
function
|
|
3616
|
+
function Da({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
|
|
3613
3617
|
return /* @__PURE__ */ i("aside", {
|
|
3614
3618
|
"data-slot": "inspector",
|
|
3615
3619
|
"aria-label": "Inspector",
|
|
@@ -3657,7 +3661,7 @@ function Ea({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3657
3661
|
});
|
|
3658
3662
|
}
|
|
3659
3663
|
// src/desktop/status-bar.component.tsx
|
|
3660
|
-
function
|
|
3664
|
+
function Oa({ start: e, end: t, className: n }) {
|
|
3661
3665
|
return /* @__PURE__ */ i("div", {
|
|
3662
3666
|
"data-slot": "status-bar",
|
|
3663
3667
|
role: "status",
|
|
@@ -3669,7 +3673,7 @@ function Da({ start: e, end: t, className: n }) {
|
|
|
3669
3673
|
});
|
|
3670
3674
|
}
|
|
3671
3675
|
// src/desktop/timeline.algorithm.ts
|
|
3672
|
-
function
|
|
3676
|
+
function ka(e, t, n) {
|
|
3673
3677
|
if (n <= 0) return {
|
|
3674
3678
|
left: 0,
|
|
3675
3679
|
width: 0
|
|
@@ -3680,7 +3684,7 @@ function Oa(e, t, n) {
|
|
|
3680
3684
|
width: Math.max(0, r(t) - i)
|
|
3681
3685
|
};
|
|
3682
3686
|
}
|
|
3683
|
-
function
|
|
3687
|
+
function Aa(e, t) {
|
|
3684
3688
|
let n = Math.max(2, t);
|
|
3685
3689
|
return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
|
|
3686
3690
|
}
|
|
@@ -3688,17 +3692,17 @@ function ka(e, t) {
|
|
|
3688
3692
|
function $(e) {
|
|
3689
3693
|
return String(e).padStart(2, "0");
|
|
3690
3694
|
}
|
|
3691
|
-
function
|
|
3695
|
+
function ja(e, t = !1) {
|
|
3692
3696
|
let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
|
|
3693
3697
|
return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
|
|
3694
3698
|
}
|
|
3695
|
-
function
|
|
3699
|
+
function Ma(e, t) {
|
|
3696
3700
|
let n = new Date(e.getTime() + t * 1e3);
|
|
3697
3701
|
return `${$(n.getHours())}:${$(n.getMinutes())}`;
|
|
3698
3702
|
}
|
|
3699
3703
|
// src/desktop/timeline-lanes.component.tsx
|
|
3700
|
-
function
|
|
3701
|
-
let c = (e) => o ?
|
|
3704
|
+
function Na({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
|
|
3705
|
+
let c = (e) => o ? Ma(o, e) : ja(e), l = n === void 0 ? void 0 : ka(0, n, e).width;
|
|
3702
3706
|
return /* @__PURE__ */ i("div", {
|
|
3703
3707
|
"data-slot": "timeline-lanes",
|
|
3704
3708
|
role: "group",
|
|
@@ -3708,7 +3712,7 @@ function Ma({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3708
3712
|
/* @__PURE__ */ r("div", {
|
|
3709
3713
|
className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
|
|
3710
3714
|
"aria-hidden": "true",
|
|
3711
|
-
children:
|
|
3715
|
+
children: Aa(e, a).map((e) => /* @__PURE__ */ r("span", {
|
|
3712
3716
|
className: "flex-1 text-xs tabular-nums text-muted-foreground",
|
|
3713
3717
|
children: c(e)
|
|
3714
3718
|
}, e))
|
|
@@ -3724,7 +3728,7 @@ function Ma({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3724
3728
|
}), /* @__PURE__ */ r("div", {
|
|
3725
3729
|
className: "relative me-2.5 h-[26px] flex-1",
|
|
3726
3730
|
children: t.segments.map((n) => {
|
|
3727
|
-
let a =
|
|
3731
|
+
let a = ka(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
|
|
3728
3732
|
return /* @__PURE__ */ i(mn, { children: [/* @__PURE__ */ r(hn, {
|
|
3729
3733
|
asChild: !0,
|
|
3730
3734
|
children: /* @__PURE__ */ r("button", {
|
|
@@ -3749,7 +3753,7 @@ function Ma({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3749
3753
|
});
|
|
3750
3754
|
}
|
|
3751
3755
|
// src/desktop/title-bar.component.tsx
|
|
3752
|
-
function
|
|
3756
|
+
function Pa({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
|
|
3753
3757
|
let l = [
|
|
3754
3758
|
{
|
|
3755
3759
|
label: "Minimise",
|
|
@@ -3797,7 +3801,7 @@ function Na({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3797
3801
|
});
|
|
3798
3802
|
}
|
|
3799
3803
|
// src/mobile/bottom-nav.component.tsx
|
|
3800
|
-
function
|
|
3804
|
+
function Fa({ items: e, className: t }) {
|
|
3801
3805
|
return /* @__PURE__ */ r("nav", {
|
|
3802
3806
|
"data-slot": "bottom-nav",
|
|
3803
3807
|
"aria-label": "Tabs",
|
|
@@ -3819,7 +3823,7 @@ function Pa({ items: e, className: t }) {
|
|
|
3819
3823
|
});
|
|
3820
3824
|
}
|
|
3821
3825
|
// src/mobile/capture-frame.component.tsx
|
|
3822
|
-
function
|
|
3826
|
+
function Ia({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
|
|
3823
3827
|
let l = a.filter((e) => !e.passed).length;
|
|
3824
3828
|
return /* @__PURE__ */ i("div", {
|
|
3825
3829
|
"data-slot": "capture-frame",
|
|
@@ -3902,7 +3906,7 @@ function Fa({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3902
3906
|
});
|
|
3903
3907
|
}
|
|
3904
3908
|
// src/mobile/record-button.component.tsx
|
|
3905
|
-
function
|
|
3909
|
+
function La({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
|
|
3906
3910
|
let u = {
|
|
3907
3911
|
idle: {
|
|
3908
3912
|
label: "Start recording",
|
|
@@ -3946,7 +3950,7 @@ function Ia({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3946
3950
|
/* @__PURE__ */ r("span", {
|
|
3947
3951
|
className: "ms-auto text-[13px] font-semibold tabular-nums",
|
|
3948
3952
|
"aria-label": "Recorded time",
|
|
3949
|
-
children:
|
|
3953
|
+
children: ja(t, !0)
|
|
3950
3954
|
})
|
|
3951
3955
|
]
|
|
3952
3956
|
}),
|
|
@@ -3977,7 +3981,7 @@ function Ia({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3977
3981
|
});
|
|
3978
3982
|
}
|
|
3979
3983
|
// src/web/cta-band.component.tsx
|
|
3980
|
-
function
|
|
3984
|
+
function Ra({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
|
|
3981
3985
|
let c = we();
|
|
3982
3986
|
function l(e) {
|
|
3983
3987
|
e.preventDefault();
|
|
@@ -4030,7 +4034,7 @@ function La({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
4030
4034
|
});
|
|
4031
4035
|
}
|
|
4032
4036
|
// src/web/faq.component.tsx
|
|
4033
|
-
function
|
|
4037
|
+
function za({ title: e, items: t, className: n }) {
|
|
4034
4038
|
return /* @__PURE__ */ r("section", {
|
|
4035
4039
|
"data-slot": "faq",
|
|
4036
4040
|
className: V("py-22", n),
|
|
@@ -4054,7 +4058,7 @@ function Ra({ title: e, items: t, className: n }) {
|
|
|
4054
4058
|
});
|
|
4055
4059
|
}
|
|
4056
4060
|
// src/web/feature-grid.component.tsx
|
|
4057
|
-
function
|
|
4061
|
+
function Ba({ title: e, lead: t, features: n, className: a }) {
|
|
4058
4062
|
return /* @__PURE__ */ r("section", {
|
|
4059
4063
|
"data-slot": "feature-grid",
|
|
4060
4064
|
className: V("border-y bg-canvas py-22", a),
|
|
@@ -4094,7 +4098,7 @@ function za({ title: e, lead: t, features: n, className: a }) {
|
|
|
4094
4098
|
});
|
|
4095
4099
|
}
|
|
4096
4100
|
// src/web/hero.component.tsx
|
|
4097
|
-
function
|
|
4101
|
+
function Va({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
4098
4102
|
return /* @__PURE__ */ r("section", {
|
|
4099
4103
|
"data-slot": "hero",
|
|
4100
4104
|
className: V("pt-22 pb-14", o),
|
|
@@ -4123,7 +4127,7 @@ function Ba({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
|
4123
4127
|
});
|
|
4124
4128
|
}
|
|
4125
4129
|
// src/web/how-it-works.component.tsx
|
|
4126
|
-
function
|
|
4130
|
+
function Ha({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
4127
4131
|
return /* @__PURE__ */ r("section", {
|
|
4128
4132
|
"data-slot": "how-it-works",
|
|
4129
4133
|
className: V("py-22", o),
|
|
@@ -4166,12 +4170,12 @@ function Va({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
|
4166
4170
|
});
|
|
4167
4171
|
}
|
|
4168
4172
|
// src/web/mobile-menu.component.tsx
|
|
4169
|
-
var
|
|
4170
|
-
function
|
|
4173
|
+
var Ua = 400;
|
|
4174
|
+
function Wa({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
4171
4175
|
let [o, s] = R(!1), [c, l] = R(), [u, f] = R(!1), p = L(null);
|
|
4172
4176
|
I(() => {
|
|
4173
4177
|
if (o) return;
|
|
4174
|
-
let e = setTimeout(() => f(!1),
|
|
4178
|
+
let e = setTimeout(() => f(!1), Ua);
|
|
4175
4179
|
return () => clearTimeout(e);
|
|
4176
4180
|
}, [o]), I(() => {
|
|
4177
4181
|
if (!o) return;
|
|
@@ -4267,7 +4271,7 @@ function Ua({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4267
4271
|
});
|
|
4268
4272
|
}
|
|
4269
4273
|
// src/web/pricing-table.component.tsx
|
|
4270
|
-
function
|
|
4274
|
+
function Ga({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
|
|
4271
4275
|
let [l, u] = R(a);
|
|
4272
4276
|
return /* @__PURE__ */ r("section", {
|
|
4273
4277
|
"data-slot": "pricing-table",
|
|
@@ -4354,7 +4358,7 @@ function Wa({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4354
4358
|
});
|
|
4355
4359
|
}
|
|
4356
4360
|
// src/web/product-card.component.tsx
|
|
4357
|
-
function
|
|
4361
|
+
function Ka({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
4358
4362
|
let s = H[e];
|
|
4359
4363
|
return /* @__PURE__ */ i("a", {
|
|
4360
4364
|
"data-slot": "product-card",
|
|
@@ -4392,7 +4396,7 @@ function Ga({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
4392
4396
|
});
|
|
4393
4397
|
}
|
|
4394
4398
|
// src/web/site-footer.component.tsx
|
|
4395
|
-
function
|
|
4399
|
+
function qa({ tagline: e, columns: t, legal: n, className: a }) {
|
|
4396
4400
|
return /* @__PURE__ */ i("footer", {
|
|
4397
4401
|
"data-slot": "site-footer",
|
|
4398
4402
|
className: V("border-t pt-14 pb-10", a),
|
|
@@ -4433,7 +4437,7 @@ function Ka({ tagline: e, columns: t, legal: n, className: a }) {
|
|
|
4433
4437
|
});
|
|
4434
4438
|
}
|
|
4435
4439
|
// src/web/site-header.component.tsx
|
|
4436
|
-
function
|
|
4440
|
+
function Ja({ nav: e, actions: t, brand: a, className: o }) {
|
|
4437
4441
|
let s = a ?? /* @__PURE__ */ i("a", {
|
|
4438
4442
|
href: "/",
|
|
4439
4443
|
className: "flex items-center gap-2 no-underline",
|
|
@@ -4479,7 +4483,7 @@ function qa({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4479
4483
|
className: "ms-auto hidden items-center gap-2 md:flex",
|
|
4480
4484
|
children: t
|
|
4481
4485
|
}),
|
|
4482
|
-
/* @__PURE__ */ r(
|
|
4486
|
+
/* @__PURE__ */ r(Wa, {
|
|
4483
4487
|
className: "ms-auto md:hidden",
|
|
4484
4488
|
links: e.flatMap((e) => e.links ?? [{
|
|
4485
4489
|
label: e.label,
|
|
@@ -4491,6 +4495,6 @@ function qa({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4491
4495
|
})
|
|
4492
4496
|
});
|
|
4493
4497
|
}
|
|
4494
|
-
export { hr as Accordion, vr as AccordionContent, gr as AccordionItem, _r as AccordionTrigger, ar as Alert, Nt as AlertDialog, Rt as AlertDialogAction, zt as AlertDialogCancel, Ft as AlertDialogContent, Lt as AlertDialogDescription, It as AlertDialogTitle, Pt as AlertDialogTrigger,
|
|
4498
|
+
export { hr as Accordion, vr as AccordionContent, gr as AccordionItem, _r as AccordionTrigger, ar as Alert, Nt as AlertDialog, Rt as AlertDialogAction, zt as AlertDialogCancel, Ft as AlertDialogContent, Lt as AlertDialogDescription, It as AlertDialogTitle, Pt as AlertDialogTrigger, fa as AppShell, da as AppShellBody, la as AppShellHeader, et as Avatar, nt as AvatarFallback, tt as AvatarImage, q as Badge, Fa as BottomNav, zr as Breadcrumb, Vr as BreadcrumbItem, Hr as BreadcrumbLink, Br as BreadcrumbList, Ur as BreadcrumbPage, Wr as BreadcrumbSeparator, Ai as BulkActionBar, Y as Button, Ze as COLOUR_SCHEMES, Ia as CaptureFrame, yr as Card, Cr as CardContent, Sr as CardDescription, wr as CardFooter, br as CardHeader, xr as CardTitle, at as Checkbox, tr as Combobox, xn as Command, Sn as CommandDialog, Tn as CommandEmpty, En as CommandGroup, Cn as CommandInput, Dn as CommandItem, wn as CommandList, On as CommandSeparator, kn as CommandShortcut, An as ContextMenu, Mn as ContextMenuContent, Nn as ContextMenuItem, Pn as ContextMenuSeparator, Fn as ContextMenuShortcut, jn as ContextMenuTrigger, Ra as CtaBand, Xe as DENSITIES, Bt as Dialog, Ht as DialogClose, Ut as DialogContent, qt as DialogDescription, Gt as DialogFooter, Wt as DialogHeader, Kt as DialogTitle, Vt as DialogTrigger, Jt as Drawer, Xt as DrawerClose, Zt as DrawerContent, $t as DrawerDescription, Qt as DrawerTitle, Yt as DrawerTrigger, In as DropdownMenu, Bn as DropdownMenuContent, Rn as DropdownMenuGroup, Vn as DropdownMenuItem, Un as DropdownMenuLabel, zn as DropdownMenuRadioGroup, Hn as DropdownMenuRadioItem, Wn as DropdownMenuSeparator, Gn as DropdownMenuShortcut, Ln as DropdownMenuTrigger, or as EmptyState, Re as FAMILY_PALETTE, Ge as FREE_HUES, za as Faq, Ba as FeatureGrid, yt as Field, pr as FileDropOverlay, pa as FilterBar, ma as FilterChip, Ea as FlowNode, ha as FormSection, Je as HUES, G as HUE_FILL, Va as Hero, Ha as HowItWorks, bt as Input, Da as Inspector, Tr as Kbd, Ne as LABEL_COLORS, K as LOGO_RULE, vt as Label, Kr as MenuIcon, qr as Menubar, Xr as MenubarContent, Zr as MenubarItem, Jr as MenubarMenu, $r as MenubarSeparator, Qr as MenubarShortcut, Yr as MenubarTrigger, Wa as MobileMenu, ei as NavigationMenu, ai as NavigationMenuContent, ni as NavigationMenuItem, oi as NavigationMenuLink, ti as NavigationMenuList, ii as NavigationMenuTrigger, Ye as PALETTE_STEPS, qe as PRODUCTS, H as PRODUCT_CATALOGUE, We as PRODUCT_HUES, ga as PageHeader, si as Pagination, tn as Popover, rn as PopoverAnchor, an as PopoverContent, nn as PopoverTrigger, en as Portal, Ti as Presence, Di as PresenceGroup, Ga as PricingTable, Ka as ProductCard, U as ProductLogo, $i as ProductSwitcher, sr as Progress, Sa as RUN_STATUSES, ot as RadioGroup, st as RadioGroupItem, La as RecordButton, _a as RecordsTable, Or as ResizableHandle, Dr as ResizablePanel, Er as ResizablePanelGroup, kr as ScrollArea, Ar as ScrollBar, xt as Select, ji as SelectAllCheckbox, Tt as SelectContent, St as SelectGroup, Dt as SelectItem, Et as SelectLabel, Ot as SelectSeparator, wt as SelectTrigger, Ct as SelectValue, Fi as SelectableList, Ii as SelectableRow, Mi as SelectionHeader, jr as Separator, on as Sheet, cn as SheetClose, fn as SheetContent, un as SheetDescription, ln as SheetTitle, sn as SheetTrigger, Hi as Sidebar, ea as SidebarBrand, Wi as SidebarCollapseButton, Ki as SidebarContent, Ji as SidebarFooter, Yi as SidebarGroup, Gi as SidebarHeader, Xi as SidebarItem, qi as SidebarNote, Qi as SidebarSheet, Ui as SidebarTooltip, qa as SiteFooter, Ja as SiteHeader, cr as Skeleton, ct as Slider, lr as Spinner, va as SplitView, xa as StatCard, Ta as StatusBadge, Oa as StatusBar, Ci as Stepper, lt as Switch, Kn as TAG_DELIMITERS, Mr as Table, Pr as TableBody, Rr as TableCaption, Lr as TableCell, Ir as TableHead, Nr as TableHeader, Fr as TableRow, ui as Tabs, xi as TabsContent, pi as TabsList, gi as TabsTrigger, Yn as Tag, Qn as TagsInput, kt as Textarea, $e as ThemeRoot, Na as TimelineLanes, Pa as TitleBar, ur as Toaster, ft as ToggleGroup, pt as ToggleGroupItem, mn as Tooltip, gn as TooltipContent, pn as TooltipProvider, hn as TooltipTrigger, dr as acceptsFile, Jn as addTags, Ie as apcaContrast, rt as badgeVariants, J as buttonVariants, V as cn, na as commandShortcutLabel, mt as controlClassName, Q as fadingLabelClassName, jt as floatingMotionClassName, Ma as formatClockTime, ja as formatTimecode, Ke as hueForProduct, Ue as logoColorForHue, fr as mayAcceptDrag, X as menuItemClassName, yn as menuSeparatorClassName, vn as menuShortcutClassName, Bi as navRowClassName, At as overlayClassName, wi as presenceClassName, Le as readableLabel, wa as runStatusDisplay, Mt as sheetMotionClassName, zi as sidebarNoteClassName, ya as sparklinePath, qn as splitTags, Xn as tagsFieldClassName, Zn as tagsFieldInputClassName, Qe as themeAttributes, ka as timelineBox, Aa as timelineTicks, ta as useCommandShortcut, sa as useCommandShortcutLabel, gt as useFieldControl, _t as useFieldLabelId, $n as useOptionSearch, mr as usePageDrop, Li as useSelection, Z as useSidebar };
|
|
4495
4499
|
|
|
4496
4500
|
//# sourceMappingURL=index.js.map
|