@talogic/react 0.8.0 → 0.9.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 +1 -1
- package/index.js +910 -713
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/talogic-react.css +1 -1
- package/ui/index.d.ts +1 -0
- package/ui/navigation/tabs.component.d.ts +5 -3
- package/ui/selectable-list/bulk-action-bar.component.d.ts +26 -0
- package/ui/selectable-list/index.d.ts +8 -0
- package/ui/selectable-list/select-all-checkbox.component.d.ts +28 -0
- package/ui/selectable-list/selectable-list.component.d.ts +32 -0
- package/ui/selectable-list/selection.hook.d.ts +44 -0
package/index.js
CHANGED
|
@@ -3,18 +3,18 @@ import { twMerge as t } from "tailwind-merge";
|
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { Accordion as a, AlertDialog as o, Avatar as s, Checkbox as c, Collapsible as l, ContextMenu as u, Dialog as d, DropdownMenu as f, Label as p, Menubar as m, NavigationMenu as h, Popover as g, Portal as _, Progress as v, RadioGroup as y, ScrollArea as b, Select as x, Separator as ee, Slider as S, Slot as C, Switch as w, Tabs as T, ToggleGroup as E, Tooltip as D } from "radix-ui";
|
|
5
5
|
import { cva as O } from "class-variance-authority";
|
|
6
|
-
import { Ban as te, Bookmark as ne, Check as k, ChevronDown as
|
|
7
|
-
import { cloneElement as
|
|
8
|
-
import { Drawer as
|
|
9
|
-
import { Command as
|
|
6
|
+
import { Ban as te, Bookmark as ne, Check as k, ChevronDown as A, ChevronRight as re, ChevronsLeft as j, ChevronsRight as ie, ChevronsUpDown as ae, CircleCheck as oe, Ellipsis as se, Info as M, LoaderCircle as ce, Mic as N, Minus as le, PanelLeft as ue, Pause as de, Play as fe, Plus as pe, Search as me, Square as he, TriangleAlert as ge, Upload as _e, X as P } from "lucide-react";
|
|
7
|
+
import { cloneElement as ve, createContext as ye, isValidElement as be, use as xe, useCallback as F, useContext as Se, useEffect as I, useId as Ce, useLayoutEffect as we, useMemo as Te, useRef as L, useState as R, useSyncExternalStore as Ee } from "react";
|
|
8
|
+
import { Drawer as z } from "vaul";
|
|
9
|
+
import { Command as B } from "cmdk";
|
|
10
10
|
import { Toaster as De } from "sonner";
|
|
11
11
|
import { Group as Oe, Panel as ke, Separator as Ae } from "react-resizable-panels";
|
|
12
12
|
// src/class-names/class-names.algorithm.ts
|
|
13
|
-
function
|
|
13
|
+
function V(...n) {
|
|
14
14
|
return t(e(n));
|
|
15
15
|
}
|
|
16
16
|
// src/product/product-catalogue.content.ts
|
|
17
|
-
var
|
|
17
|
+
var H = {
|
|
18
18
|
talogic: {
|
|
19
19
|
name: "talogic",
|
|
20
20
|
tagline: "Human focused automations.",
|
|
@@ -68,19 +68,19 @@ var B = {
|
|
|
68
68
|
dark: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%208534%208534'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:affinity='https://www.affinity.studio/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3crect%20id='loomgic-symbol-dark'%20x='0'%20y='0'%20width='8533.333'%20height='8533.333'%20style='fill:none;'/%3e%3cclipPath%20id='_clip1'%3e%3crect%20x='0'%20y='0'%20width='8533.333'%20height='8533.333'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23_clip1)'%3e%3cpath%20d='M7950,3683.287c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-7366.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l7366.667,0Z'%20style='fill:%23979797;'/%3e%3cpath%20d='M6062.5,474.953c321.95,0%20583.333,261.383%20583.333,583.333l0,6416.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l-0,-6416.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20style='fill:%233e63dd;'/%3e%3cpath%20d='M2470.833,474.953c321.95,0%20583.333,261.383%20583.333,583.333l0,6416.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l-0,-6416.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20style='fill:%23e5484d;'/%3e%3cpath%20d='M7475,1887.453c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-6416.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l6416.667,0Z'%20style='fill:%23979797;'/%3e%3cpath%20d='M7475,5479.12c321.95,0%20583.333,261.383%20583.333,583.333c0,321.95%20-261.383,583.333%20-583.333,583.333l-6416.667,0c-321.95,0%20-583.333,-261.383%20-583.333,-583.333c0,-321.95%20261.383,-583.333%20583.333,-583.333l6416.667,0Z'%20style='fill:%23979797;'/%3e%3cpath%20d='M4266.667,-0.047c321.95,0%20583.333,261.383%20583.333,583.333l0,7366.667c0,321.95%20-261.383,583.333%20-583.333,583.333c-321.95,0%20-583.333,-261.383%20-583.333,-583.333l0,-7366.667c0,-321.95%20261.383,-583.333%20583.333,-583.333Z'%20style='fill:%2330a46c;'/%3e%3crect%20x='3365.106'%20y='3683.287'%20width='1799.257'%20height='1166.667'%20style='fill:%23979797;'/%3e%3c/g%3e%3c/svg%3e"
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
-
function
|
|
72
|
-
let { light: s, dark: c } = je[e], l =
|
|
71
|
+
function U({ product: e, alt: t = H[e].name, className: a, ...o }) {
|
|
72
|
+
let { light: s, dark: c } = je[e], l = V("size-6 shrink-0 object-contain", a);
|
|
73
73
|
return c ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("img", {
|
|
74
74
|
"data-slot": "product-logo",
|
|
75
75
|
src: s,
|
|
76
76
|
alt: t,
|
|
77
|
-
className:
|
|
77
|
+
className: V(l, "dark:hidden"),
|
|
78
78
|
...o
|
|
79
79
|
}), /* @__PURE__ */ r("img", {
|
|
80
80
|
"data-slot": "product-logo",
|
|
81
81
|
src: c,
|
|
82
82
|
alt: t,
|
|
83
|
-
className:
|
|
83
|
+
className: V(l, "hidden dark:block"),
|
|
84
84
|
...o
|
|
85
85
|
})] }) : /* @__PURE__ */ r("img", {
|
|
86
86
|
"data-slot": "product-logo",
|
|
@@ -91,7 +91,7 @@ function V({ product: e, alt: t = B[e].name, className: a, ...o }) {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
// src/tokens/apca-contrast.algorithm.ts
|
|
94
|
-
var
|
|
94
|
+
var W = {
|
|
95
95
|
mainTrc: 2.4,
|
|
96
96
|
red: .2126729,
|
|
97
97
|
green: .7151522,
|
|
@@ -117,18 +117,18 @@ function Ne(e) {
|
|
|
117
117
|
].map((e) => Number.parseInt(n.slice(e, e + 2), 16));
|
|
118
118
|
}
|
|
119
119
|
function Pe(e) {
|
|
120
|
-
let [t, n, r] = Ne(e).map((e) => (e / 255) **
|
|
121
|
-
return i <
|
|
120
|
+
let [t, n, r] = Ne(e).map((e) => (e / 255) ** W.mainTrc), i = W.red * t + W.green * n + W.blue * r;
|
|
121
|
+
return i < W.blackThresh ? i + (W.blackThresh - i) ** W.blackClamp : i;
|
|
122
122
|
}
|
|
123
123
|
function Fe(e, t) {
|
|
124
124
|
let n = Pe(e), r = Pe(t);
|
|
125
|
-
if (Math.abs(r - n) <
|
|
125
|
+
if (Math.abs(r - n) < W.deltaYMin) return 0;
|
|
126
126
|
if (r > n) {
|
|
127
|
-
let e = (r **
|
|
128
|
-
return e <
|
|
127
|
+
let e = (r ** W.normBg - n ** W.normText) * W.scale;
|
|
128
|
+
return e < W.lowClip ? 0 : (e - W.lowOffset) * 100;
|
|
129
129
|
}
|
|
130
|
-
let i = (r **
|
|
131
|
-
return i > -
|
|
130
|
+
let i = (r ** W.revBg - n ** W.revText) * W.scale;
|
|
131
|
+
return i > -W.lowClip ? 0 : (i + W.lowOffset) * 100;
|
|
132
132
|
}
|
|
133
133
|
function Ie(e, t = Me) {
|
|
134
134
|
let n = t[0];
|
|
@@ -141,7 +141,7 @@ function Ie(e, t = Me) {
|
|
|
141
141
|
return n;
|
|
142
142
|
}
|
|
143
143
|
// src/tokens/hue-fill.style.ts
|
|
144
|
-
var
|
|
144
|
+
var G = {
|
|
145
145
|
red: "bg-red-500",
|
|
146
146
|
orange: "bg-orange-500",
|
|
147
147
|
amber: "bg-amber-500",
|
|
@@ -311,7 +311,7 @@ var U = {
|
|
|
311
311
|
900: "#531b39",
|
|
312
312
|
950: "#331123"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, K = {
|
|
315
315
|
saturation: .7,
|
|
316
316
|
lightness: .55,
|
|
317
317
|
maxOklchLightness: .7,
|
|
@@ -372,8 +372,8 @@ function Ve(e) {
|
|
|
372
372
|
return .2104542553 * i + .793617785 * a - .0040720468 * o;
|
|
373
373
|
}
|
|
374
374
|
function He(e) {
|
|
375
|
-
let t = ze(Le[e][500]), n =
|
|
376
|
-
for (; Ve(r) >
|
|
375
|
+
let t = ze(Le[e][500]), n = K.lightness, r = Be(t, K.saturation, n);
|
|
376
|
+
for (; Ve(r) > K.maxOklchLightness;) n -= K.lightnessStep, r = Be(t, K.saturation, n);
|
|
377
377
|
return r;
|
|
378
378
|
}
|
|
379
379
|
// src/tokens/product-hue.policy.ts
|
|
@@ -449,7 +449,7 @@ function Qe({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, classN
|
|
|
449
449
|
}), u = a ? C.Root : "div";
|
|
450
450
|
return /* @__PURE__ */ r(u, {
|
|
451
451
|
"data-slot": "theme-root",
|
|
452
|
-
className:
|
|
452
|
+
className: V(c, o),
|
|
453
453
|
...l,
|
|
454
454
|
...s
|
|
455
455
|
});
|
|
@@ -458,21 +458,21 @@ function Qe({ product: e, hue: t, scheme: n, density: i, asChild: a = !1, classN
|
|
|
458
458
|
function $e({ className: e, ...t }) {
|
|
459
459
|
return /* @__PURE__ */ r(s.Root, {
|
|
460
460
|
"data-slot": "avatar",
|
|
461
|
-
className:
|
|
461
|
+
className: V("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
462
462
|
...t
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
function et({ className: e, ...t }) {
|
|
466
466
|
return /* @__PURE__ */ r(s.Image, {
|
|
467
467
|
"data-slot": "avatar-image",
|
|
468
|
-
className:
|
|
468
|
+
className: V("aspect-square size-full object-cover", e),
|
|
469
469
|
...t
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
function tt({ className: e, ...t }) {
|
|
473
473
|
return /* @__PURE__ */ r(s.Fallback, {
|
|
474
474
|
"data-slot": "avatar-fallback",
|
|
475
|
-
className:
|
|
475
|
+
className: V("flex size-full items-center justify-center rounded-full bg-brand-soft text-xs font-semibold text-brand-text", e),
|
|
476
476
|
...t
|
|
477
477
|
});
|
|
478
478
|
}
|
|
@@ -491,10 +491,10 @@ var nt = O("inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowr
|
|
|
491
491
|
defaultVariants: { variant: "default" }
|
|
492
492
|
});
|
|
493
493
|
// src/ui/badge/badge.component.tsx
|
|
494
|
-
function
|
|
494
|
+
function q({ className: e, variant: t, dot: n = !1, children: a, ...o }) {
|
|
495
495
|
return /* @__PURE__ */ i("span", {
|
|
496
496
|
"data-slot": "badge",
|
|
497
|
-
className:
|
|
497
|
+
className: V(nt({ variant: t }), e),
|
|
498
498
|
...o,
|
|
499
499
|
children: [n && /* @__PURE__ */ r("span", {
|
|
500
500
|
"aria-hidden": "true",
|
|
@@ -503,7 +503,7 @@ function G({ className: e, variant: t, dot: n = !1, children: a, ...o }) {
|
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
505
|
// src/ui/button/button.recipe.ts
|
|
506
|
-
var
|
|
506
|
+
var J = O([
|
|
507
507
|
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent font-medium no-underline",
|
|
508
508
|
"transition-[background-color,border-color,box-shadow,color] duration-150 ease-out outline-none motion-reduce:transition-none",
|
|
509
509
|
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
@@ -537,18 +537,18 @@ var K = O([
|
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
539
|
// src/ui/button/button.component.tsx
|
|
540
|
-
function
|
|
540
|
+
function Y({ className: e, variant: t, size: a, asChild: o = !1, loading: s = !1, disabled: c = s, children: l, ...u }) {
|
|
541
541
|
let d = o ? C.Root : "button";
|
|
542
542
|
return /* @__PURE__ */ r(d, {
|
|
543
543
|
"data-slot": "button",
|
|
544
|
-
className:
|
|
544
|
+
className: V(J({
|
|
545
545
|
variant: t,
|
|
546
546
|
size: a
|
|
547
547
|
}), e),
|
|
548
548
|
disabled: o ? void 0 : c,
|
|
549
549
|
"aria-busy": s || void 0,
|
|
550
550
|
...u,
|
|
551
|
-
children: s && !o ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(
|
|
551
|
+
children: s && !o ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(ce, {
|
|
552
552
|
className: "animate-spin",
|
|
553
553
|
"aria-hidden": "true"
|
|
554
554
|
}), l] }) : l
|
|
@@ -559,7 +559,7 @@ var rt = "fill-none stroke-current [stroke-dasharray:1] [stroke-linecap:round] [
|
|
|
559
559
|
function it({ className: e, ...t }) {
|
|
560
560
|
return /* @__PURE__ */ r(c.Root, {
|
|
561
561
|
"data-slot": "checkbox",
|
|
562
|
-
className:
|
|
562
|
+
className: V("peer group/checkbox grid size-4 shrink-0 cursor-pointer place-content-center rounded-[4px] border border-input bg-background text-primary-foreground shadow-xs outline-none", "transition-[background-color,border-color] duration-150 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary", e),
|
|
563
563
|
...t,
|
|
564
564
|
children: /* @__PURE__ */ r(c.Indicator, {
|
|
565
565
|
forceMount: !0,
|
|
@@ -571,11 +571,11 @@ function it({ className: e, ...t }) {
|
|
|
571
571
|
children: [/* @__PURE__ */ r("path", {
|
|
572
572
|
d: "M3.5 8.5 L6.5 11.5 L12.5 4.5",
|
|
573
573
|
pathLength: 1,
|
|
574
|
-
className:
|
|
574
|
+
className: V(rt, "duration-200 [stroke-dashoffset:1] group-data-[state=checked]/checkbox:[stroke-dashoffset:0]")
|
|
575
575
|
}), /* @__PURE__ */ r("path", {
|
|
576
576
|
d: "M4 8 L12 8",
|
|
577
577
|
pathLength: 1,
|
|
578
|
-
className:
|
|
578
|
+
className: V(rt, "duration-200 [stroke-dashoffset:1] group-data-[state=indeterminate]/checkbox:[stroke-dashoffset:0] group-data-[state=indeterminate]/checkbox:delay-75")
|
|
579
579
|
})]
|
|
580
580
|
})
|
|
581
581
|
})
|
|
@@ -585,14 +585,14 @@ function it({ className: e, ...t }) {
|
|
|
585
585
|
function at({ className: e, ...t }) {
|
|
586
586
|
return /* @__PURE__ */ r(y.Root, {
|
|
587
587
|
"data-slot": "radio-group",
|
|
588
|
-
className:
|
|
588
|
+
className: V("grid gap-2.5", e),
|
|
589
589
|
...t
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
592
|
function ot({ className: e, ...t }) {
|
|
593
593
|
return /* @__PURE__ */ r(y.Item, {
|
|
594
594
|
"data-slot": "radio-group-item",
|
|
595
|
-
className:
|
|
595
|
+
className: V("peer group/radio grid size-4 shrink-0 cursor-pointer place-content-center rounded-full border border-input bg-background shadow-xs outline-none", "transition-[background-color,border-color] duration-200 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:border-primary data-[state=checked]:bg-primary", e),
|
|
596
596
|
...t,
|
|
597
597
|
children: /* @__PURE__ */ r(y.Indicator, {
|
|
598
598
|
forceMount: !0,
|
|
@@ -602,7 +602,7 @@ function ot({ className: e, ...t }) {
|
|
|
602
602
|
}
|
|
603
603
|
// src/ui/choice/slider.component.tsx
|
|
604
604
|
function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100, onPointerDown: s, onPointerMove: c, onPointerUp: l, ...u }) {
|
|
605
|
-
let [d, f] =
|
|
605
|
+
let [d, f] = R(!1), p = (t ?? n ?? [a]).length, m = u["aria-label"];
|
|
606
606
|
return /* @__PURE__ */ i(S.Root, {
|
|
607
607
|
"data-slot": "slider",
|
|
608
608
|
value: t,
|
|
@@ -619,7 +619,7 @@ function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
619
619
|
onPointerUp: (e) => {
|
|
620
620
|
f(!1), l?.(e);
|
|
621
621
|
},
|
|
622
|
-
className:
|
|
622
|
+
className: V("group/slider relative flex w-full touch-none select-none items-center data-disabled:opacity-50", "not-data-dragging:[&>span:has([role=slider])]:transition-[left] not-data-dragging:[&>span:has([role=slider])]:duration-200 not-data-dragging:[&>span:has([role=slider])]:ease-emphasised", "motion-reduce:[&>span:has([role=slider])]:transition-none", e),
|
|
623
623
|
...u,
|
|
624
624
|
children: [/* @__PURE__ */ r(S.Track, {
|
|
625
625
|
className: "relative h-1.5 grow overflow-hidden rounded-full bg-muted",
|
|
@@ -634,14 +634,14 @@ function st({ className: e, value: t, defaultValue: n, min: a = 0, max: o = 100,
|
|
|
634
634
|
function ct({ className: e, ...t }) {
|
|
635
635
|
return /* @__PURE__ */ r(w.Root, {
|
|
636
636
|
"data-slot": "switch",
|
|
637
|
-
className:
|
|
637
|
+
className: V("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full bg-input p-0.5 outline-none transition-colors duration-200 motion-reduce:transition-none", "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary", e),
|
|
638
638
|
...t,
|
|
639
639
|
children: /* @__PURE__ */ r(w.Thumb, { className: "block size-4 rounded-full bg-white shadow-xs transition-transform duration-200 ease-emphasised data-[state=checked]:translate-x-4 motion-reduce:transition-none" })
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
// src/ui/active-indicator/active-indicator.hook.ts
|
|
643
643
|
function lt(e) {
|
|
644
|
-
let t =
|
|
644
|
+
let t = L(null), n = L(void 0), r = F((r) => {
|
|
645
645
|
if (n.current?.(), n.current = void 0, t.current = r, !r) return;
|
|
646
646
|
function i() {
|
|
647
647
|
if (!r) return;
|
|
@@ -663,7 +663,7 @@ function lt(e) {
|
|
|
663
663
|
a.disconnect(), o.disconnect();
|
|
664
664
|
};
|
|
665
665
|
}, [e]);
|
|
666
|
-
return
|
|
666
|
+
return I(() => () => n.current?.(), []), r;
|
|
667
667
|
}
|
|
668
668
|
// src/ui/active-indicator/active-indicator.recipe.ts
|
|
669
669
|
var ut = "pointer-events-none absolute left-(--indicator-left) top-(--indicator-top) h-(--indicator-height) w-(--indicator-width) group-data-[indicator=ready]/indicator:transition-[left,top,width,height] group-data-[indicator=ready]/indicator:duration-250 group-data-[indicator=ready]/indicator:ease-emphasised group-data-[indicator=none]/indicator:opacity-0 group-not-data-indicator/indicator:opacity-0 motion-reduce:transition-none";
|
|
@@ -674,46 +674,46 @@ function dt({ className: e, children: t, ...n }) {
|
|
|
674
674
|
ref: o ? a : void 0,
|
|
675
675
|
"data-slot": "toggle-group",
|
|
676
676
|
"data-mode": n.type,
|
|
677
|
-
className:
|
|
677
|
+
className: V("group/indicator relative inline-flex w-fit items-center gap-0.5 rounded-md bg-muted p-[3px]", e),
|
|
678
678
|
...n,
|
|
679
679
|
children: [o && /* @__PURE__ */ r("span", {
|
|
680
680
|
"aria-hidden": "true",
|
|
681
681
|
"data-slot": "toggle-group-indicator",
|
|
682
|
-
className:
|
|
682
|
+
className: V(ut, "rounded-sm bg-background shadow-xs")
|
|
683
683
|
}), t]
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
686
|
function ft({ className: e, ...t }) {
|
|
687
687
|
return /* @__PURE__ */ r(E.Item, {
|
|
688
688
|
"data-slot": "toggle-group-item",
|
|
689
|
-
className:
|
|
689
|
+
className: V("inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-sm px-3 text-[13px] font-medium text-muted-foreground outline-none", "hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 [&_svg]:size-4", "relative transition-colors duration-150 data-[state=on]:text-foreground motion-reduce:transition-none", "in-data-[mode=multiple]:data-[state=on]:bg-background in-data-[mode=multiple]:data-[state=on]:shadow-xs", e),
|
|
690
690
|
...t
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
693
|
// src/ui/field/control.recipe.ts
|
|
694
|
-
var pt = "w-full min-w-0 rounded-md border border-input bg-background text-(length:--control-fs) text-foreground shadow-xs outline-none transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/25 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 disabled:cursor-not-allowed disabled:opacity-50", mt =
|
|
695
|
-
function
|
|
696
|
-
let t =
|
|
694
|
+
var pt = "w-full min-w-0 rounded-md border border-input bg-background text-(length:--control-fs) text-foreground shadow-xs outline-none transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/25 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 disabled:cursor-not-allowed disabled:opacity-50", mt = ye(null);
|
|
695
|
+
function ht(e = {}) {
|
|
696
|
+
let t = Se(mt);
|
|
697
697
|
return t ? {
|
|
698
698
|
id: e.id ?? t.id,
|
|
699
699
|
"aria-describedby": e["aria-describedby"] ?? (t.describedBy || void 0),
|
|
700
700
|
"aria-invalid": e["aria-invalid"] ?? (t.invalid || void 0)
|
|
701
701
|
} : e;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
704
|
-
return
|
|
703
|
+
function gt() {
|
|
704
|
+
return Se(mt)?.labelId;
|
|
705
705
|
}
|
|
706
706
|
// src/ui/field/label.component.tsx
|
|
707
|
-
function
|
|
707
|
+
function _t({ className: e, ...t }) {
|
|
708
708
|
return /* @__PURE__ */ r(p.Root, {
|
|
709
709
|
"data-slot": "label",
|
|
710
|
-
className:
|
|
710
|
+
className: V("flex select-none items-center gap-2 text-[13px] font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
711
711
|
...t
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
// src/ui/field/field.component.tsx
|
|
715
|
-
function
|
|
716
|
-
let c =
|
|
715
|
+
function vt({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
716
|
+
let c = Ce(), l = a ?? c, u = t ? `${l}-hint` : "", d = n ? `${l}-error` : "", f = [u, d].filter(Boolean).join(" ");
|
|
717
717
|
return /* @__PURE__ */ r(mt, {
|
|
718
718
|
value: {
|
|
719
719
|
id: l,
|
|
@@ -723,9 +723,9 @@ function _t({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
723
723
|
},
|
|
724
724
|
children: /* @__PURE__ */ i("div", {
|
|
725
725
|
"data-slot": "field",
|
|
726
|
-
className:
|
|
726
|
+
className: V("flex flex-col gap-1.5", s),
|
|
727
727
|
children: [
|
|
728
|
-
/* @__PURE__ */ r(
|
|
728
|
+
/* @__PURE__ */ r(_t, {
|
|
729
729
|
id: `${l}-label`,
|
|
730
730
|
htmlFor: l,
|
|
731
731
|
children: e
|
|
@@ -746,11 +746,11 @@ function _t({ label: e, hint: t, error: n, id: a, children: o, className: s }) {
|
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
748
|
// src/ui/field/input.component.tsx
|
|
749
|
-
function
|
|
750
|
-
let o =
|
|
749
|
+
function yt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
750
|
+
let o = ht(a), s = /* @__PURE__ */ r("input", {
|
|
751
751
|
"data-slot": "input",
|
|
752
752
|
type: n,
|
|
753
|
-
className:
|
|
753
|
+
className: V(pt, "h-(--control-h) px-3 file:border-0 file:bg-transparent file:text-sm file:font-medium", t ? "ps-[34px]" : "", e),
|
|
754
754
|
...a,
|
|
755
755
|
...o
|
|
756
756
|
});
|
|
@@ -764,28 +764,28 @@ function vt({ className: e, startIcon: t, type: n = "text", ...a }) {
|
|
|
764
764
|
}) : s;
|
|
765
765
|
}
|
|
766
766
|
// src/ui/field/select.component.tsx
|
|
767
|
-
var
|
|
768
|
-
function
|
|
769
|
-
let a =
|
|
767
|
+
var bt = x.Root, xt = x.Group, St = x.Value;
|
|
768
|
+
function Ct({ className: e, children: t, ...n }) {
|
|
769
|
+
let a = ht(n);
|
|
770
770
|
return /* @__PURE__ */ i(x.Trigger, {
|
|
771
771
|
"data-slot": "select-trigger",
|
|
772
|
-
className:
|
|
772
|
+
className: V(pt, "flex h-(--control-h) cursor-pointer items-center justify-between gap-2 px-3 text-start data-placeholder:text-muted-foreground [&>span]:truncate", e),
|
|
773
773
|
...n,
|
|
774
774
|
...a,
|
|
775
775
|
children: [t, /* @__PURE__ */ r(x.Icon, {
|
|
776
776
|
asChild: !0,
|
|
777
|
-
children: /* @__PURE__ */ r(
|
|
777
|
+
children: /* @__PURE__ */ r(A, {
|
|
778
778
|
className: "size-4 shrink-0 text-muted-foreground",
|
|
779
779
|
"aria-hidden": "true"
|
|
780
780
|
})
|
|
781
781
|
})]
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function wt({ className: e, children: t, position: n = "popper", ...i }) {
|
|
785
785
|
return /* @__PURE__ */ r(x.Portal, { children: /* @__PURE__ */ r(x.Content, {
|
|
786
786
|
"data-slot": "select-content",
|
|
787
787
|
position: n,
|
|
788
|
-
className:
|
|
788
|
+
className: V("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-md", "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", n === "popper" && "w-full min-w-(--radix-select-trigger-width) data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1", e),
|
|
789
789
|
...i,
|
|
790
790
|
children: /* @__PURE__ */ r(x.Viewport, {
|
|
791
791
|
className: "p-1",
|
|
@@ -793,17 +793,17 @@ function Ct({ className: e, children: t, position: n = "popper", ...i }) {
|
|
|
793
793
|
})
|
|
794
794
|
}) });
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Tt({ className: e, ...t }) {
|
|
797
797
|
return /* @__PURE__ */ r(x.Label, {
|
|
798
798
|
"data-slot": "select-label",
|
|
799
|
-
className:
|
|
799
|
+
className: V("px-2.5 py-1.5 text-xs font-medium text-muted-foreground", e),
|
|
800
800
|
...t
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Et({ className: e, children: t, ...n }) {
|
|
804
804
|
return /* @__PURE__ */ i(x.Item, {
|
|
805
805
|
"data-slot": "select-item",
|
|
806
|
-
className:
|
|
806
|
+
className: V("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 ps-2.5 pe-8 text-[13.5px] outline-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
807
807
|
...n,
|
|
808
808
|
children: [/* @__PURE__ */ r(x.ItemText, { children: t }), /* @__PURE__ */ r("span", {
|
|
809
809
|
className: "absolute end-2 flex size-4 items-center justify-center",
|
|
@@ -814,75 +814,75 @@ function Tt({ className: e, children: t, ...n }) {
|
|
|
814
814
|
})]
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Dt({ className: e, ...t }) {
|
|
818
818
|
return /* @__PURE__ */ r(x.Separator, {
|
|
819
819
|
"data-slot": "select-separator",
|
|
820
|
-
className:
|
|
820
|
+
className: V("-mx-1 my-1 h-px bg-border", e),
|
|
821
821
|
...t
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
// src/ui/field/textarea.component.tsx
|
|
825
|
-
function
|
|
826
|
-
let n =
|
|
825
|
+
function Ot({ className: e, ...t }) {
|
|
826
|
+
let n = ht(t);
|
|
827
827
|
return /* @__PURE__ */ r("textarea", {
|
|
828
828
|
"data-slot": "textarea",
|
|
829
|
-
className:
|
|
829
|
+
className: V(pt, "min-h-20 resize-y px-3 py-2.5 leading-normal", e),
|
|
830
830
|
...t,
|
|
831
831
|
...n
|
|
832
832
|
});
|
|
833
833
|
}
|
|
834
834
|
// src/ui/overlay/overlay.recipe.ts
|
|
835
|
-
var
|
|
835
|
+
var kt = "fixed inset-0 z-50 backdrop-blur-[5px] backdrop-contrast-[.5] backdrop-saturate-[.3] backdrop-brightness-[1.3] dark:backdrop-brightness-[.7] data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out", At = "data-[state=open]:animate-zoom-in data-[state=delayed-open]:animate-zoom-in data-[state=instant-open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=delayed-open]:animate-fade-in motion-reduce:data-[state=instant-open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", jt = {
|
|
836
836
|
start: "data-[state=open]:animate-sheet-in-start data-[state=closed]:animate-sheet-out-start motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
|
|
837
837
|
end: "data-[state=open]:animate-sheet-in-end data-[state=closed]:animate-sheet-out-end motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
|
|
838
838
|
top: "data-[state=open]:animate-sheet-in-top data-[state=closed]:animate-sheet-out-top motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
|
|
839
839
|
bottom: "data-[state=open]:animate-sheet-in-bottom data-[state=closed]:animate-sheet-out-bottom motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out"
|
|
840
|
-
},
|
|
841
|
-
function
|
|
842
|
-
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className:
|
|
840
|
+
}, Mt = o.Root, Nt = o.Trigger;
|
|
841
|
+
function Pt({ className: e, ...t }) {
|
|
842
|
+
return /* @__PURE__ */ i(o.Portal, { children: [/* @__PURE__ */ r(o.Overlay, { className: kt }), /* @__PURE__ */ r(o.Content, {
|
|
843
843
|
"data-slot": "alert-dialog-content",
|
|
844
|
-
className:
|
|
844
|
+
className: V("fixed start-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border bg-popover p-6 text-popover-foreground shadow-lg outline-none rtl:translate-x-1/2", At, e),
|
|
845
845
|
...t
|
|
846
846
|
})] });
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Ft({ className: e, ...t }) {
|
|
849
849
|
return /* @__PURE__ */ r(o.Title, {
|
|
850
850
|
"data-slot": "alert-dialog-title",
|
|
851
|
-
className:
|
|
851
|
+
className: V("m-0 font-display text-lg font-bold leading-tight", e),
|
|
852
852
|
...t
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function It({ className: e, ...t }) {
|
|
856
856
|
return /* @__PURE__ */ r(o.Description, {
|
|
857
857
|
"data-slot": "alert-dialog-description",
|
|
858
|
-
className:
|
|
858
|
+
className: V("m-0 text-sm text-muted-foreground", e),
|
|
859
859
|
...t
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function Lt({ className: e, variant: t = "default", ...n }) {
|
|
863
863
|
return /* @__PURE__ */ r(o.Action, {
|
|
864
864
|
"data-slot": "alert-dialog-action",
|
|
865
|
-
className:
|
|
865
|
+
className: V(J({ variant: t }), e),
|
|
866
866
|
...n
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Rt({ className: e, ...t }) {
|
|
870
870
|
return /* @__PURE__ */ r(o.Cancel, {
|
|
871
871
|
"data-slot": "alert-dialog-cancel",
|
|
872
|
-
className:
|
|
872
|
+
className: V(J({ variant: "outline" }), e),
|
|
873
873
|
...t
|
|
874
874
|
});
|
|
875
875
|
}
|
|
876
876
|
// src/ui/overlay/dialog.component.tsx
|
|
877
|
-
var
|
|
878
|
-
function
|
|
879
|
-
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className:
|
|
877
|
+
var zt = d.Root, Bt = d.Trigger, Vt = d.Close;
|
|
878
|
+
function Ht({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
879
|
+
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: kt }), /* @__PURE__ */ i(d.Content, {
|
|
880
880
|
"data-slot": "dialog-content",
|
|
881
|
-
className:
|
|
881
|
+
className: V("fixed start-1/2 top-1/2 z-50 grid w-[calc(100%-2rem)] max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border bg-popover p-6 text-popover-foreground shadow-lg outline-none rtl:translate-x-1/2", At, e),
|
|
882
882
|
...a,
|
|
883
883
|
children: [t, n && /* @__PURE__ */ i(d.Close, {
|
|
884
884
|
className: "absolute end-4 top-4 cursor-pointer rounded-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",
|
|
885
|
-
children: [/* @__PURE__ */ r(
|
|
885
|
+
children: [/* @__PURE__ */ r(P, {
|
|
886
886
|
className: "size-4",
|
|
887
887
|
"aria-hidden": "true"
|
|
888
888
|
}), /* @__PURE__ */ r("span", {
|
|
@@ -892,40 +892,40 @@ function Bt({ className: e, children: t, showClose: n = !0, ...a }) {
|
|
|
892
892
|
})]
|
|
893
893
|
})] });
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Ut({ className: e, ...t }) {
|
|
896
896
|
return /* @__PURE__ */ r("div", {
|
|
897
897
|
"data-slot": "dialog-header",
|
|
898
|
-
className:
|
|
898
|
+
className: V("flex flex-col gap-1.5 text-start", e),
|
|
899
899
|
...t
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function Wt({ className: e, ...t }) {
|
|
903
903
|
return /* @__PURE__ */ r("div", {
|
|
904
904
|
"data-slot": "dialog-footer",
|
|
905
|
-
className:
|
|
905
|
+
className: V("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
906
906
|
...t
|
|
907
907
|
});
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function Gt({ className: e, ...t }) {
|
|
910
910
|
return /* @__PURE__ */ r(d.Title, {
|
|
911
911
|
"data-slot": "dialog-title",
|
|
912
|
-
className:
|
|
912
|
+
className: V("m-0 font-display text-lg font-bold leading-tight", e),
|
|
913
913
|
...t
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function Kt({ className: e, ...t }) {
|
|
917
917
|
return /* @__PURE__ */ r(d.Description, {
|
|
918
918
|
"data-slot": "dialog-description",
|
|
919
|
-
className:
|
|
919
|
+
className: V("m-0 text-sm text-muted-foreground", e),
|
|
920
920
|
...t
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
// src/ui/overlay/drawer.component.tsx
|
|
924
|
-
var
|
|
925
|
-
function
|
|
926
|
-
return /* @__PURE__ */ i(
|
|
924
|
+
var qt = z.Root, Jt = z.Trigger, Yt = z.Close;
|
|
925
|
+
function Xt({ className: e, children: t, ...n }) {
|
|
926
|
+
return /* @__PURE__ */ i(z.Portal, { children: [/* @__PURE__ */ r(z.Overlay, { className: kt }), /* @__PURE__ */ i(z.Content, {
|
|
927
927
|
"data-slot": "drawer-content",
|
|
928
|
-
className:
|
|
928
|
+
className: V("fixed inset-x-0 bottom-0 z-50 flex max-h-[85vh] flex-col gap-3.5 rounded-t-3xl border-t bg-popover px-5 pt-2.5 pb-8 text-popover-foreground outline-none", e),
|
|
929
929
|
...n,
|
|
930
930
|
children: [/* @__PURE__ */ r("div", {
|
|
931
931
|
"aria-hidden": "true",
|
|
@@ -933,53 +933,53 @@ function Jt({ className: e, children: t, ...n }) {
|
|
|
933
933
|
}), t]
|
|
934
934
|
})] });
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
return /* @__PURE__ */ r(
|
|
936
|
+
function Zt({ className: e, ...t }) {
|
|
937
|
+
return /* @__PURE__ */ r(z.Title, {
|
|
938
938
|
"data-slot": "drawer-title",
|
|
939
|
-
className:
|
|
939
|
+
className: V("m-0 text-xl font-semibold leading-tight", e),
|
|
940
940
|
...t
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
return /* @__PURE__ */ r(
|
|
943
|
+
function Qt({ className: e, ...t }) {
|
|
944
|
+
return /* @__PURE__ */ r(z.Description, {
|
|
945
945
|
"data-slot": "drawer-description",
|
|
946
|
-
className:
|
|
946
|
+
className: V("m-0 text-sm text-muted-foreground", e),
|
|
947
947
|
...t
|
|
948
948
|
});
|
|
949
949
|
}
|
|
950
950
|
// src/ui/overlay/portal.component.tsx
|
|
951
|
-
function
|
|
951
|
+
function $t(e) {
|
|
952
952
|
return /* @__PURE__ */ r(_.Root, {
|
|
953
953
|
"data-slot": "portal",
|
|
954
954
|
...e
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
957
|
// src/ui/overlay/popover.component.tsx
|
|
958
|
-
var
|
|
959
|
-
function
|
|
958
|
+
var en = g.Root, tn = g.Trigger, nn = g.Anchor;
|
|
959
|
+
function rn({ className: e, align: t = "center", sideOffset: n = 6, ...i }) {
|
|
960
960
|
return /* @__PURE__ */ r(g.Portal, { children: /* @__PURE__ */ r(g.Content, {
|
|
961
961
|
"data-slot": "popover-content",
|
|
962
962
|
align: t,
|
|
963
963
|
sideOffset: n,
|
|
964
|
-
className:
|
|
964
|
+
className: V("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-none", At, e),
|
|
965
965
|
...i
|
|
966
966
|
}) });
|
|
967
967
|
}
|
|
968
968
|
// src/ui/overlay/sheet.component.tsx
|
|
969
|
-
var
|
|
969
|
+
var an = d.Root, on = d.Trigger, sn = d.Close, cn = d.Title, ln = d.Description, un = {
|
|
970
970
|
start: "inset-y-0 start-0 h-full w-3/4 max-w-sm border-e",
|
|
971
971
|
end: "inset-y-0 end-0 h-full w-3/4 max-w-sm border-s",
|
|
972
972
|
top: "inset-x-0 top-0 border-b",
|
|
973
973
|
bottom: "inset-x-0 bottom-0 border-t"
|
|
974
974
|
};
|
|
975
|
-
function
|
|
976
|
-
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className:
|
|
975
|
+
function dn({ className: e, children: t, side: n = "end", ...a }) {
|
|
976
|
+
return /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: kt }), /* @__PURE__ */ i(d.Content, {
|
|
977
977
|
"data-slot": "sheet-content",
|
|
978
|
-
className:
|
|
978
|
+
className: V("fixed z-50 flex flex-col gap-4 bg-popover p-6 text-popover-foreground shadow-lg outline-none", un[n], jt[n], e),
|
|
979
979
|
...a,
|
|
980
980
|
children: [t, /* @__PURE__ */ i(d.Close, {
|
|
981
981
|
className: "absolute end-4 top-4 cursor-pointer rounded-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",
|
|
982
|
-
children: [/* @__PURE__ */ r(
|
|
982
|
+
children: [/* @__PURE__ */ r(P, {
|
|
983
983
|
className: "size-4",
|
|
984
984
|
"aria-hidden": "true"
|
|
985
985
|
}), /* @__PURE__ */ r("span", {
|
|
@@ -990,8 +990,8 @@ function ln({ className: e, children: t, side: n = "end", ...a }) {
|
|
|
990
990
|
})] });
|
|
991
991
|
}
|
|
992
992
|
// src/ui/overlay/tooltip.component.tsx
|
|
993
|
-
var
|
|
994
|
-
function
|
|
993
|
+
var fn = D.Provider;
|
|
994
|
+
function pn(e) {
|
|
995
995
|
return /* @__PURE__ */ r(D.Provider, {
|
|
996
996
|
delayDuration: 300,
|
|
997
997
|
children: /* @__PURE__ */ r(D.Root, {
|
|
@@ -1000,30 +1000,30 @@ function dn(e) {
|
|
|
1000
1000
|
})
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
var
|
|
1004
|
-
function
|
|
1003
|
+
var mn = D.Trigger;
|
|
1004
|
+
function hn({ className: e, sideOffset: t = 6, ...n }) {
|
|
1005
1005
|
return /* @__PURE__ */ r(D.Portal, { children: /* @__PURE__ */ r(D.Content, {
|
|
1006
1006
|
"data-slot": "tooltip-content",
|
|
1007
1007
|
sideOffset: t,
|
|
1008
|
-
className:
|
|
1008
|
+
className: V("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-sm bg-foreground px-2.5 py-1.5 text-xs text-background", At, e),
|
|
1009
1009
|
...n
|
|
1010
1010
|
}) });
|
|
1011
1011
|
}
|
|
1012
1012
|
// src/ui/menu/menu.recipe.ts
|
|
1013
|
-
var
|
|
1013
|
+
var gn = "z-50 min-w-48 overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", X = "relative flex cursor-default select-none items-center gap-2.5 rounded-sm px-2.5 py-[7px] text-[13.5px] outline-none transition-colors duration-150 motion-reduce:transition-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50 data-[disabled=false]:pointer-events-auto data-[disabled=false]:opacity-100 [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-muted-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:[&_svg]:text-destructive", _n = "ms-auto text-xs tracking-wide text-muted-foreground", vn = "-mx-1 my-1 h-px bg-border", yn = "px-2.5 py-1.5 text-xs font-medium text-muted-foreground";
|
|
1014
1014
|
// src/ui/menu/command.component.tsx
|
|
1015
|
-
function
|
|
1016
|
-
return /* @__PURE__ */ r(
|
|
1015
|
+
function bn({ className: e, ...t }) {
|
|
1016
|
+
return /* @__PURE__ */ r(B, {
|
|
1017
1017
|
"data-slot": "command",
|
|
1018
|
-
className:
|
|
1018
|
+
className: V("flex size-full flex-col overflow-hidden rounded-lg bg-popover text-popover-foreground", e),
|
|
1019
1019
|
...t
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function xn({ title: e = "Search", children: t, ...n }) {
|
|
1023
1023
|
return /* @__PURE__ */ r(d.Root, {
|
|
1024
1024
|
...n,
|
|
1025
|
-
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className:
|
|
1026
|
-
className:
|
|
1025
|
+
children: /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, { className: kt }), /* @__PURE__ */ i(d.Content, {
|
|
1026
|
+
className: V("fixed start-1/2 top-[18%] z-50 w-[calc(100%-2rem)] max-w-xl -translate-x-1/2 overflow-hidden rounded-xl border bg-popover shadow-lg outline-none rtl:translate-x-1/2", At),
|
|
1027
1027
|
children: [
|
|
1028
1028
|
/* @__PURE__ */ r(d.Title, {
|
|
1029
1029
|
className: "sr-only",
|
|
@@ -1033,120 +1033,120 @@ function yn({ title: e = "Search", children: t, ...n }) {
|
|
|
1033
1033
|
className: "sr-only",
|
|
1034
1034
|
children: "Type to filter the commands."
|
|
1035
1035
|
}),
|
|
1036
|
-
/* @__PURE__ */ r(
|
|
1036
|
+
/* @__PURE__ */ r(bn, { children: t })
|
|
1037
1037
|
]
|
|
1038
1038
|
})] })
|
|
1039
1039
|
});
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function Sn({ className: e, ...t }) {
|
|
1042
1042
|
return /* @__PURE__ */ i("div", {
|
|
1043
1043
|
"data-slot": "command-input-wrapper",
|
|
1044
1044
|
className: "flex h-11 items-center gap-2 border-b px-3",
|
|
1045
|
-
children: [/* @__PURE__ */ r(
|
|
1045
|
+
children: [/* @__PURE__ */ r(me, {
|
|
1046
1046
|
className: "size-4 shrink-0 text-muted-foreground",
|
|
1047
1047
|
"aria-hidden": "true"
|
|
1048
|
-
}), /* @__PURE__ */ r(
|
|
1048
|
+
}), /* @__PURE__ */ r(B.Input, {
|
|
1049
1049
|
"data-slot": "command-input",
|
|
1050
|
-
className:
|
|
1050
|
+
className: V("h-full w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground", e),
|
|
1051
1051
|
...t
|
|
1052
1052
|
})]
|
|
1053
1053
|
});
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return /* @__PURE__ */ r(
|
|
1055
|
+
function Cn({ className: e, ...t }) {
|
|
1056
|
+
return /* @__PURE__ */ r(B.List, {
|
|
1057
1057
|
"data-slot": "command-list",
|
|
1058
|
-
className:
|
|
1058
|
+
className: V("max-h-80 overflow-y-auto p-1", e),
|
|
1059
1059
|
...t
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return /* @__PURE__ */ r(
|
|
1062
|
+
function wn({ className: e, ...t }) {
|
|
1063
|
+
return /* @__PURE__ */ r(B.Empty, {
|
|
1064
1064
|
"data-slot": "command-empty",
|
|
1065
|
-
className:
|
|
1065
|
+
className: V("py-6 text-center text-sm text-muted-foreground", e),
|
|
1066
1066
|
...t
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return /* @__PURE__ */ r(
|
|
1069
|
+
function Tn({ className: e, ...t }) {
|
|
1070
|
+
return /* @__PURE__ */ r(B.Group, {
|
|
1071
1071
|
"data-slot": "command-group",
|
|
1072
|
-
className:
|
|
1072
|
+
className: V("[&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", e),
|
|
1073
1073
|
...t
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return /* @__PURE__ */ r(
|
|
1076
|
+
function En({ className: e, ...t }) {
|
|
1077
|
+
return /* @__PURE__ */ r(B.Item, {
|
|
1078
1078
|
"data-slot": "command-item",
|
|
1079
|
-
className:
|
|
1079
|
+
className: V(X, "data-[selected=true]:bg-accent", e),
|
|
1080
1080
|
...t
|
|
1081
1081
|
});
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return /* @__PURE__ */ r(
|
|
1083
|
+
function Dn({ className: e, ...t }) {
|
|
1084
|
+
return /* @__PURE__ */ r(B.Separator, {
|
|
1085
1085
|
"data-slot": "command-separator",
|
|
1086
|
-
className:
|
|
1086
|
+
className: V(vn, e),
|
|
1087
1087
|
...t
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function On({ className: e, ...t }) {
|
|
1091
1091
|
return /* @__PURE__ */ r("span", {
|
|
1092
1092
|
"data-slot": "command-shortcut",
|
|
1093
|
-
className:
|
|
1093
|
+
className: V(_n, e),
|
|
1094
1094
|
...t
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
1097
1097
|
// src/ui/menu/context-menu.component.tsx
|
|
1098
|
-
var
|
|
1099
|
-
function
|
|
1098
|
+
var kn = u.Root, An = u.Trigger;
|
|
1099
|
+
function jn({ className: e, ...t }) {
|
|
1100
1100
|
return /* @__PURE__ */ r(u.Portal, { children: /* @__PURE__ */ r(u.Content, {
|
|
1101
1101
|
"data-slot": "context-menu-content",
|
|
1102
|
-
className:
|
|
1102
|
+
className: V(gn, "origin-(--radix-context-menu-content-transform-origin)", e),
|
|
1103
1103
|
...t
|
|
1104
1104
|
}) });
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function Mn({ className: e, variant: t = "default", ...n }) {
|
|
1107
1107
|
return /* @__PURE__ */ r(u.Item, {
|
|
1108
1108
|
"data-slot": "context-menu-item",
|
|
1109
1109
|
"data-variant": t,
|
|
1110
|
-
className:
|
|
1110
|
+
className: V(X, e),
|
|
1111
1111
|
...n
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function Nn({ className: e, ...t }) {
|
|
1115
1115
|
return /* @__PURE__ */ r(u.Separator, {
|
|
1116
1116
|
"data-slot": "context-menu-separator",
|
|
1117
|
-
className:
|
|
1117
|
+
className: V(vn, e),
|
|
1118
1118
|
...t
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function Pn({ className: e, ...t }) {
|
|
1122
1122
|
return /* @__PURE__ */ r("span", {
|
|
1123
1123
|
"data-slot": "context-menu-shortcut",
|
|
1124
|
-
className:
|
|
1124
|
+
className: V(_n, e),
|
|
1125
1125
|
...t
|
|
1126
1126
|
});
|
|
1127
1127
|
}
|
|
1128
1128
|
// src/ui/menu/dropdown-menu.component.tsx
|
|
1129
|
-
var
|
|
1130
|
-
function
|
|
1129
|
+
var Fn = f.Root, In = f.Trigger, Ln = f.Group, Rn = f.RadioGroup;
|
|
1130
|
+
function zn({ className: e, sideOffset: t = 6, ...n }) {
|
|
1131
1131
|
return /* @__PURE__ */ r(f.Portal, { children: /* @__PURE__ */ r(f.Content, {
|
|
1132
1132
|
"data-slot": "dropdown-menu-content",
|
|
1133
1133
|
sideOffset: t,
|
|
1134
|
-
className:
|
|
1134
|
+
className: V(gn, "origin-(--radix-dropdown-menu-content-transform-origin)", e),
|
|
1135
1135
|
...n
|
|
1136
1136
|
}) });
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function Bn({ className: e, variant: t = "default", ...n }) {
|
|
1139
1139
|
return /* @__PURE__ */ r(f.Item, {
|
|
1140
1140
|
"data-slot": "dropdown-menu-item",
|
|
1141
1141
|
"data-variant": t,
|
|
1142
|
-
className:
|
|
1142
|
+
className: V(X, e),
|
|
1143
1143
|
...n
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function Vn({ className: e, children: t, ...n }) {
|
|
1147
1147
|
return /* @__PURE__ */ i(f.RadioItem, {
|
|
1148
1148
|
"data-slot": "dropdown-menu-radio-item",
|
|
1149
|
-
className:
|
|
1149
|
+
className: V(X, "ps-7", e),
|
|
1150
1150
|
...n,
|
|
1151
1151
|
children: [/* @__PURE__ */ r("span", {
|
|
1152
1152
|
className: "absolute start-2.5 flex size-2 items-center justify-center",
|
|
@@ -1154,33 +1154,33 @@ function zn({ className: e, children: t, ...n }) {
|
|
|
1154
1154
|
}), t]
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function Hn({ className: e, ...t }) {
|
|
1158
1158
|
return /* @__PURE__ */ r(f.Label, {
|
|
1159
1159
|
"data-slot": "dropdown-menu-label",
|
|
1160
|
-
className:
|
|
1160
|
+
className: V(yn, e),
|
|
1161
1161
|
...t
|
|
1162
1162
|
});
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Un({ className: e, ...t }) {
|
|
1165
1165
|
return /* @__PURE__ */ r(f.Separator, {
|
|
1166
1166
|
"data-slot": "dropdown-menu-separator",
|
|
1167
|
-
className:
|
|
1167
|
+
className: V(vn, e),
|
|
1168
1168
|
...t
|
|
1169
1169
|
});
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function Wn({ className: e, ...t }) {
|
|
1172
1172
|
return /* @__PURE__ */ r("span", {
|
|
1173
1173
|
"data-slot": "dropdown-menu-shortcut",
|
|
1174
|
-
className:
|
|
1174
|
+
className: V(_n, e),
|
|
1175
1175
|
...t
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
1178
1178
|
// src/ui/tags-input/tag-entry.algorithm.ts
|
|
1179
|
-
var
|
|
1180
|
-
function
|
|
1181
|
-
return e.split(
|
|
1179
|
+
var Gn = /[,;\n\t]/;
|
|
1180
|
+
function Kn(e) {
|
|
1181
|
+
return e.split(Gn).map((e) => e.trim()).filter(Boolean);
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function qn(e, t, n = {}) {
|
|
1184
1184
|
let r = [...e], i = [];
|
|
1185
1185
|
for (let e of t) (n.allowDuplicates || !r.some((t) => t.toLowerCase() === e.toLowerCase())) && (n.validate && !n.validate(e) || n.max !== void 0 && r.length >= n.max ? i.push(e) : r.push(e));
|
|
1186
1186
|
return {
|
|
@@ -1189,11 +1189,11 @@ function Gn(e, t, n = {}) {
|
|
|
1189
1189
|
};
|
|
1190
1190
|
}
|
|
1191
1191
|
// src/ui/tags-input/tag.component.tsx
|
|
1192
|
-
function
|
|
1192
|
+
function Jn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove", highlighted: o = !1, ...s }) {
|
|
1193
1193
|
return /* @__PURE__ */ i("span", {
|
|
1194
1194
|
"data-slot": "tag",
|
|
1195
1195
|
"data-highlighted": o || void 0,
|
|
1196
|
-
className:
|
|
1196
|
+
className: V("inline-flex h-6 max-w-full items-center gap-0.5 rounded-sm bg-brand-soft ps-2 text-[13px] font-medium text-brand-text animate-zoom-in motion-reduce:animate-none", "data-highlighted:ring-2 data-highlighted:ring-brand", n ? "pe-0.5" : "pe-2", e),
|
|
1197
1197
|
...s,
|
|
1198
1198
|
children: [/* @__PURE__ */ r("span", {
|
|
1199
1199
|
className: "truncate",
|
|
@@ -1203,31 +1203,31 @@ function Kn({ className: e, children: t, onRemove: n, removeLabel: a = "Remove",
|
|
|
1203
1203
|
"aria-label": a,
|
|
1204
1204
|
onClick: n,
|
|
1205
1205
|
className: "grid size-5 shrink-0 cursor-pointer place-items-center rounded-[3px] outline-none hover:bg-brand/15 focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-3",
|
|
1206
|
-
children: /* @__PURE__ */ r(
|
|
1206
|
+
children: /* @__PURE__ */ r(P, { "aria-hidden": "true" })
|
|
1207
1207
|
}) : null]
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
1210
|
// src/ui/tags-input/tags-field.recipe.ts
|
|
1211
|
-
var
|
|
1211
|
+
var Yn = "flex min-h-(--control-h) w-full min-w-0 cursor-text flex-wrap items-center gap-1 rounded-md border border-input bg-background px-1.5 py-1 shadow-xs text-(length:--control-fs) text-foreground transition-[border-color,box-shadow] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/25 has-[input[aria-invalid=true]]:border-destructive has-[input[aria-invalid=true]]:ring-3 has-[input[aria-invalid=true]]:ring-destructive/20 has-[input:disabled]:cursor-not-allowed has-[input:disabled]:opacity-50", Xn = "h-6 min-w-16 flex-1 bg-transparent px-1 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed";
|
|
1212
1212
|
// src/ui/tags-input/tags-input.component.tsx
|
|
1213
|
-
function
|
|
1214
|
-
let [y, b] =
|
|
1213
|
+
function Zn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max: o, validate: s, allowDuplicates: c, addOnBlur: l = !0, removeLabel: u = (e) => `Remove ${e}`, fieldClassName: d, className: f, disabled: p, placeholder: m, onKeyDown: h, onPaste: g, onBlur: _, ...v }) {
|
|
1214
|
+
let [y, b] = R(t), [x, ee] = R(""), [S, C] = R(!1), [w, T] = R(!1), E = L(null), D = e ?? y, O = ht(v), te = o !== void 0 && D.length >= o;
|
|
1215
1215
|
function ne(t) {
|
|
1216
1216
|
e === void 0 && b(t), n?.(t);
|
|
1217
1217
|
}
|
|
1218
1218
|
function k(e) {
|
|
1219
1219
|
if (e.length === 0) return;
|
|
1220
|
-
let { tags: t, rejected: n } =
|
|
1220
|
+
let { tags: t, rejected: n } = qn(D, e, {
|
|
1221
1221
|
max: o,
|
|
1222
1222
|
validate: s,
|
|
1223
1223
|
allowDuplicates: c
|
|
1224
1224
|
});
|
|
1225
1225
|
t.length !== D.length && ne(t), ee(n.join(", ")), C(n.length > 0), n.length > 0 && a?.(n);
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function A(e) {
|
|
1228
1228
|
ne(D.filter((t, n) => n !== e)), T(!1), E.current?.focus();
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function re(e) {
|
|
1231
1231
|
if (h?.(e), !(e.defaultPrevented || e.nativeEvent.isComposing)) {
|
|
1232
1232
|
if ([
|
|
1233
1233
|
"Enter",
|
|
@@ -1235,26 +1235,26 @@ function Yn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1235
1235
|
";"
|
|
1236
1236
|
].includes(e.key)) {
|
|
1237
1237
|
if (x.trim() === "" && e.key === "Enter") return;
|
|
1238
|
-
e.preventDefault(), k(
|
|
1239
|
-
} else x === "" && e.key === "Backspace" && D.length > 0 ? (e.preventDefault(), w ?
|
|
1238
|
+
e.preventDefault(), k(Kn(x));
|
|
1239
|
+
} else x === "" && e.key === "Backspace" && D.length > 0 ? (e.preventDefault(), w ? A(D.length - 1) : T(!0)) : T(!1);
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function j(e) {
|
|
1243
1243
|
g?.(e);
|
|
1244
1244
|
let t = e.clipboardData.getData("text");
|
|
1245
|
-
!e.defaultPrevented &&
|
|
1245
|
+
!e.defaultPrevented && Gn.test(t) && (e.preventDefault(), k(Kn(`${x}${t}`)));
|
|
1246
1246
|
}
|
|
1247
1247
|
return /* @__PURE__ */ i("div", {
|
|
1248
1248
|
"data-slot": "tags-input",
|
|
1249
|
-
className:
|
|
1249
|
+
className: V(Yn, d),
|
|
1250
1250
|
onClick: (e) => {
|
|
1251
1251
|
e.target === e.currentTarget && E.current?.focus();
|
|
1252
1252
|
},
|
|
1253
|
-
children: [D.map((e, t) => /* @__PURE__ */ r(
|
|
1253
|
+
children: [D.map((e, t) => /* @__PURE__ */ r(Jn, {
|
|
1254
1254
|
highlighted: w && t === D.length - 1,
|
|
1255
1255
|
removeLabel: u(e),
|
|
1256
1256
|
onRemove: p ? void 0 : () => {
|
|
1257
|
-
|
|
1257
|
+
A(t);
|
|
1258
1258
|
},
|
|
1259
1259
|
children: e
|
|
1260
1260
|
}, `${e}-${String(t)}`)), /* @__PURE__ */ r("input", {
|
|
@@ -1265,14 +1265,14 @@ function Yn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1265
1265
|
disabled: p,
|
|
1266
1266
|
placeholder: D.length === 0 ? m : void 0,
|
|
1267
1267
|
readOnly: te,
|
|
1268
|
-
className:
|
|
1268
|
+
className: V(Xn, f),
|
|
1269
1269
|
onChange: (e) => {
|
|
1270
1270
|
ee(e.target.value), C(!1), T(!1);
|
|
1271
1271
|
},
|
|
1272
|
-
onKeyDown:
|
|
1273
|
-
onPaste:
|
|
1272
|
+
onKeyDown: re,
|
|
1273
|
+
onPaste: j,
|
|
1274
1274
|
onBlur: (e) => {
|
|
1275
|
-
_?.(e), T(!1), l && !S && k(
|
|
1275
|
+
_?.(e), T(!1), l && !S && k(Kn(x));
|
|
1276
1276
|
},
|
|
1277
1277
|
...v,
|
|
1278
1278
|
...O,
|
|
@@ -1281,12 +1281,12 @@ function Yn({ value: e, defaultValue: t = [], onValueChange: n, onReject: a, max
|
|
|
1281
1281
|
});
|
|
1282
1282
|
}
|
|
1283
1283
|
// src/ui/combobox/option-search.hook.ts
|
|
1284
|
-
function
|
|
1285
|
-
let [i, a] =
|
|
1284
|
+
function Qn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
1285
|
+
let [i, a] = R({
|
|
1286
1286
|
options: [],
|
|
1287
1287
|
status: "idle"
|
|
1288
|
-
}), o =
|
|
1289
|
-
return o.current = e,
|
|
1288
|
+
}), o = L(e);
|
|
1289
|
+
return o.current = e, I(() => {
|
|
1290
1290
|
let e = t.trim();
|
|
1291
1291
|
if (!o.current || e.length < r) {
|
|
1292
1292
|
a({
|
|
@@ -1327,67 +1327,67 @@ function Xn(e, t, { debounceMs: n = 250, minQueryLength: r = 1 } = {}) {
|
|
|
1327
1327
|
]), i;
|
|
1328
1328
|
}
|
|
1329
1329
|
// src/ui/combobox/combobox.component.tsx
|
|
1330
|
-
var
|
|
1331
|
-
function
|
|
1332
|
-
let { options: t, loadOptions: n, debounceMs: a, minQueryLength: o = +!!n, createOption: s, createLabel: c = (e) => `Use "${e}"`, emptyText: l = "No results", loadingText: u = "Searching…", errorText: d = "The search failed. Try again.", idleText: f = "Type to search", placeholder: p, disabled: m, className: h, contentClassName: g } = e, _ = n !== void 0, v =
|
|
1330
|
+
var $n = "\0create";
|
|
1331
|
+
function er(e) {
|
|
1332
|
+
let { options: t, loadOptions: n, debounceMs: a, minQueryLength: o = +!!n, createOption: s, createLabel: c = (e) => `Use "${e}"`, emptyText: l = "No results", loadingText: u = "Searching…", errorText: d = "The search failed. Try again.", idleText: f = "Type to search", placeholder: p, disabled: m, className: h, contentClassName: g } = e, _ = n !== void 0, v = ht({
|
|
1333
1333
|
id: e.id,
|
|
1334
1334
|
"aria-describedby": e["aria-describedby"],
|
|
1335
1335
|
"aria-invalid": e["aria-invalid"]
|
|
1336
|
-
}), [y, b] =
|
|
1336
|
+
}), [y, b] = R(e.multiple ? null : e.defaultValue ?? null), [x, ee] = R(e.multiple ? e.defaultValue ?? [] : []), S = e.multiple ? null : e.value === void 0 ? y : e.value, C = e.multiple ? e.value ?? x : S ? [S] : [], [w, T] = R(!1), [E, D] = R(S?.label ?? ""), [O, te] = R(!1), ne = L(!1);
|
|
1337
1337
|
ne.current = O;
|
|
1338
|
-
let [
|
|
1339
|
-
|
|
1340
|
-
let e =
|
|
1341
|
-
e && (
|
|
1342
|
-
}, [
|
|
1343
|
-
let
|
|
1338
|
+
let [re, j] = R(!1), ie = L(null), ae = L(null), oe = gt(), se = e["aria-label"];
|
|
1339
|
+
we(() => {
|
|
1340
|
+
let e = ie.current;
|
|
1341
|
+
e && (oe ? e.setAttribute("aria-labelledby", oe) : se && e.removeAttribute("aria-labelledby"));
|
|
1342
|
+
}, [oe, se]);
|
|
1343
|
+
let M = O ? E : "", N = Qn(n, M, {
|
|
1344
1344
|
debounceMs: a,
|
|
1345
1345
|
minQueryLength: o
|
|
1346
|
-
}),
|
|
1347
|
-
function
|
|
1346
|
+
}), le = _ ? N.options : t ?? [], ue = s && M.trim() !== "" && le.every((e) => e.label.toLowerCase() !== M.trim().toLowerCase()) ? s(M.trim()) : null, de = e.multiple && e.max !== void 0 && C.length >= e.max;
|
|
1347
|
+
function fe(t) {
|
|
1348
1348
|
e.multiple || (e.value === void 0 && b(t), e.onValueChange?.(t));
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function me(t) {
|
|
1351
1351
|
e.multiple && (e.value === void 0 && ee(t), e.onValueChange?.(t));
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
if (te(!1),
|
|
1355
|
-
|
|
1353
|
+
function he(t) {
|
|
1354
|
+
if (te(!1), j(!1), !e.multiple) {
|
|
1355
|
+
fe(t), D(t.label), T(!1);
|
|
1356
1356
|
return;
|
|
1357
1357
|
}
|
|
1358
1358
|
let n = C.some((e) => e.value === t.value);
|
|
1359
|
-
(n || !
|
|
1359
|
+
(n || !de) && (me(n ? C.filter((e) => e.value !== t.value) : [...C, t]), D(""));
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1362
|
-
T(!1), te(!1),
|
|
1361
|
+
function ge() {
|
|
1362
|
+
T(!1), te(!1), j(!1), D(e.multiple ? "" : S?.label ?? "");
|
|
1363
1363
|
}
|
|
1364
|
-
let
|
|
1365
|
-
return /* @__PURE__ */ r(
|
|
1364
|
+
let _e = (e) => C.some((t) => t.value === e.value);
|
|
1365
|
+
return /* @__PURE__ */ r(B, {
|
|
1366
1366
|
"data-slot": "combobox",
|
|
1367
1367
|
shouldFilter: !_,
|
|
1368
|
-
filter: (e, t, n) => ne.current ?
|
|
1368
|
+
filter: (e, t, n) => ne.current ? tr(t, [e, ...n ?? []]) : 1,
|
|
1369
1369
|
loop: !0,
|
|
1370
1370
|
className: "w-full",
|
|
1371
|
-
children: /* @__PURE__ */ i(
|
|
1371
|
+
children: /* @__PURE__ */ i(en, {
|
|
1372
1372
|
open: w,
|
|
1373
1373
|
onOpenChange: (e) => {
|
|
1374
|
-
e ||
|
|
1374
|
+
e || ge();
|
|
1375
1375
|
},
|
|
1376
|
-
children: [/* @__PURE__ */ r(
|
|
1376
|
+
children: [/* @__PURE__ */ r(nn, {
|
|
1377
1377
|
asChild: !0,
|
|
1378
1378
|
children: /* @__PURE__ */ i("div", {
|
|
1379
|
-
ref:
|
|
1379
|
+
ref: ae,
|
|
1380
1380
|
"data-slot": "combobox-field",
|
|
1381
|
-
className:
|
|
1381
|
+
className: V(Yn, "pe-1", h),
|
|
1382
1382
|
onClick: (e) => {
|
|
1383
|
-
e.target === e.currentTarget &&
|
|
1383
|
+
e.target === e.currentTarget && ie.current?.focus();
|
|
1384
1384
|
},
|
|
1385
1385
|
children: [
|
|
1386
|
-
e.multiple ? C.map((e, t) => /* @__PURE__ */ r(
|
|
1387
|
-
highlighted:
|
|
1386
|
+
e.multiple ? C.map((e, t) => /* @__PURE__ */ r(Jn, {
|
|
1387
|
+
highlighted: re && t === C.length - 1,
|
|
1388
1388
|
removeLabel: `Remove ${e.label}`,
|
|
1389
1389
|
onRemove: m ? void 0 : () => {
|
|
1390
|
-
|
|
1390
|
+
he(e);
|
|
1391
1391
|
},
|
|
1392
1392
|
children: e.label
|
|
1393
1393
|
}, e.value)) : !O && S?.icon ? /* @__PURE__ */ r("span", {
|
|
@@ -1395,28 +1395,28 @@ function Qn(e) {
|
|
|
1395
1395
|
className: "ms-1 flex text-muted-foreground [&_svg]:size-4",
|
|
1396
1396
|
children: S.icon
|
|
1397
1397
|
}) : null,
|
|
1398
|
-
/* @__PURE__ */ r(
|
|
1399
|
-
ref:
|
|
1398
|
+
/* @__PURE__ */ r(B.Input, {
|
|
1399
|
+
ref: ie,
|
|
1400
1400
|
"data-slot": "combobox-input",
|
|
1401
1401
|
value: E,
|
|
1402
1402
|
disabled: m,
|
|
1403
|
-
readOnly:
|
|
1403
|
+
readOnly: de,
|
|
1404
1404
|
placeholder: C.length === 0 || !e.multiple ? p : void 0,
|
|
1405
1405
|
"aria-label": e["aria-label"],
|
|
1406
|
-
className:
|
|
1406
|
+
className: Xn,
|
|
1407
1407
|
onValueChange: (e) => {
|
|
1408
|
-
D(e), te(!0),
|
|
1408
|
+
D(e), te(!0), j(!1), T(!0);
|
|
1409
1409
|
},
|
|
1410
1410
|
onFocus: () => {
|
|
1411
1411
|
_ || T(!0);
|
|
1412
1412
|
},
|
|
1413
1413
|
onKeyDown: (t) => {
|
|
1414
|
-
if (t.key === "Escape") w && t.preventDefault(),
|
|
1414
|
+
if (t.key === "Escape") w && t.preventDefault(), ge();
|
|
1415
1415
|
else if (!w && t.key === "ArrowDown") T(!0);
|
|
1416
1416
|
else if (E === "" && t.key === "Backspace" && e.multiple && C.length > 0) {
|
|
1417
1417
|
t.preventDefault();
|
|
1418
1418
|
let e = C.at(-1);
|
|
1419
|
-
|
|
1419
|
+
re && e ? he(e) : j(!0);
|
|
1420
1420
|
}
|
|
1421
1421
|
},
|
|
1422
1422
|
...v
|
|
@@ -1426,54 +1426,54 @@ function Qn(e) {
|
|
|
1426
1426
|
"aria-label": "Clear",
|
|
1427
1427
|
className: "grid size-6 shrink-0 cursor-pointer place-items-center rounded-sm text-muted-foreground outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-3.5",
|
|
1428
1428
|
onClick: () => {
|
|
1429
|
-
|
|
1429
|
+
fe(null), D(""), ie.current?.focus();
|
|
1430
1430
|
},
|
|
1431
|
-
children: /* @__PURE__ */ r(
|
|
1431
|
+
children: /* @__PURE__ */ r(P, { "aria-hidden": "true" })
|
|
1432
1432
|
}) : null,
|
|
1433
|
-
_ ? null : /* @__PURE__ */ r(
|
|
1433
|
+
_ ? null : /* @__PURE__ */ r(A, {
|
|
1434
1434
|
"aria-hidden": "true",
|
|
1435
|
-
className:
|
|
1435
|
+
className: V("mx-1 size-4 shrink-0 text-muted-foreground transition-transform duration-200 motion-reduce:transition-none", w && "rotate-180")
|
|
1436
1436
|
})
|
|
1437
1437
|
]
|
|
1438
1438
|
})
|
|
1439
|
-
}), /* @__PURE__ */ r(
|
|
1439
|
+
}), /* @__PURE__ */ r(rn, {
|
|
1440
1440
|
align: "start",
|
|
1441
1441
|
sideOffset: 4,
|
|
1442
|
-
className:
|
|
1442
|
+
className: V("w-(--radix-popover-trigger-width) min-w-56 p-1", g),
|
|
1443
1443
|
onOpenAutoFocus: (e) => {
|
|
1444
1444
|
e.preventDefault();
|
|
1445
1445
|
},
|
|
1446
1446
|
onInteractOutside: (e) => {
|
|
1447
|
-
e.target instanceof Node &&
|
|
1447
|
+
e.target instanceof Node && ae.current?.contains(e.target) && e.preventDefault();
|
|
1448
1448
|
},
|
|
1449
1449
|
onMouseDown: (e) => {
|
|
1450
1450
|
e.preventDefault();
|
|
1451
1451
|
},
|
|
1452
|
-
children: /* @__PURE__ */ i(
|
|
1452
|
+
children: /* @__PURE__ */ i(B.List, {
|
|
1453
1453
|
"data-slot": "combobox-list",
|
|
1454
1454
|
className: "max-h-72 overflow-y-auto",
|
|
1455
1455
|
children: [
|
|
1456
|
-
_ &&
|
|
1457
|
-
_ &&
|
|
1456
|
+
_ && N.status === "idle" ? /* @__PURE__ */ r(nr, { children: f }) : null,
|
|
1457
|
+
_ && N.status === "loading" ? /* @__PURE__ */ i(nr, { children: [/* @__PURE__ */ r(ce, {
|
|
1458
1458
|
"aria-hidden": "true",
|
|
1459
1459
|
className: "size-4 animate-spin"
|
|
1460
1460
|
}), u] }) : null,
|
|
1461
|
-
_ &&
|
|
1461
|
+
_ && N.status === "error" ? /* @__PURE__ */ r(nr, {
|
|
1462
1462
|
tone: "destructive",
|
|
1463
1463
|
children: d
|
|
1464
1464
|
}) : null,
|
|
1465
|
-
!_ ||
|
|
1465
|
+
!_ || N.status === "done" ? /* @__PURE__ */ r(B.Empty, {
|
|
1466
1466
|
className: "px-2.5 py-5 text-center text-sm text-muted-foreground",
|
|
1467
|
-
children:
|
|
1467
|
+
children: ue ? null : l
|
|
1468
1468
|
}) : null,
|
|
1469
|
-
(!_ ||
|
|
1469
|
+
(!_ || N.status === "done") && le.map((e) => /* @__PURE__ */ i(B.Item, {
|
|
1470
1470
|
value: e.value,
|
|
1471
1471
|
keywords: [e.label, e.description ?? ""],
|
|
1472
1472
|
disabled: e.disabled,
|
|
1473
1473
|
onSelect: () => {
|
|
1474
|
-
|
|
1474
|
+
he(e);
|
|
1475
1475
|
},
|
|
1476
|
-
className:
|
|
1476
|
+
className: V(X, "data-[selected=true]:bg-accent"),
|
|
1477
1477
|
children: [
|
|
1478
1478
|
e.icon ? /* @__PURE__ */ r("span", {
|
|
1479
1479
|
"aria-hidden": "true",
|
|
@@ -1492,23 +1492,23 @@ function Qn(e) {
|
|
|
1492
1492
|
}),
|
|
1493
1493
|
/* @__PURE__ */ r(k, {
|
|
1494
1494
|
"aria-hidden": "true",
|
|
1495
|
-
className:
|
|
1495
|
+
className: V("size-4 shrink-0 text-brand", _e(e) ? "opacity-100" : "opacity-0")
|
|
1496
1496
|
})
|
|
1497
1497
|
]
|
|
1498
1498
|
}, e.value)),
|
|
1499
|
-
|
|
1499
|
+
ue ? /* @__PURE__ */ i(B.Item, {
|
|
1500
1500
|
forceMount: !0,
|
|
1501
|
-
value:
|
|
1501
|
+
value: $n,
|
|
1502
1502
|
onSelect: () => {
|
|
1503
|
-
|
|
1503
|
+
he(ue);
|
|
1504
1504
|
},
|
|
1505
|
-
className:
|
|
1506
|
-
children: [/* @__PURE__ */ r(
|
|
1505
|
+
className: V(X, "data-[selected=true]:bg-accent"),
|
|
1506
|
+
children: [/* @__PURE__ */ r(pe, {
|
|
1507
1507
|
"aria-hidden": "true",
|
|
1508
1508
|
className: "size-4 shrink-0 text-brand"
|
|
1509
1509
|
}), /* @__PURE__ */ r("span", {
|
|
1510
1510
|
className: "truncate",
|
|
1511
|
-
children: c(
|
|
1511
|
+
children: c(M.trim())
|
|
1512
1512
|
})]
|
|
1513
1513
|
}) : null
|
|
1514
1514
|
]
|
|
@@ -1517,52 +1517,52 @@ function Qn(e) {
|
|
|
1517
1517
|
})
|
|
1518
1518
|
});
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function tr(e, t) {
|
|
1521
1521
|
let n = e.trim().toLowerCase();
|
|
1522
1522
|
if (n === "") return 1;
|
|
1523
1523
|
let r = t.map((e) => e.toLowerCase());
|
|
1524
1524
|
return r.some((e) => e.startsWith(n)) ? 2 : +!!r.some((e) => e.includes(n));
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function nr({ children: e, tone: t }) {
|
|
1527
1527
|
return /* @__PURE__ */ r("div", {
|
|
1528
1528
|
role: "status",
|
|
1529
|
-
className:
|
|
1529
|
+
className: V("flex items-center justify-center gap-2 px-2.5 py-5 text-sm", t === "destructive" ? "text-destructive" : "text-muted-foreground"),
|
|
1530
1530
|
children: e
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
1533
|
// src/ui/feedback/alert.component.tsx
|
|
1534
|
-
var
|
|
1534
|
+
var rr = {
|
|
1535
1535
|
info: {
|
|
1536
1536
|
box: "border-border bg-card",
|
|
1537
1537
|
icon: "text-info",
|
|
1538
|
-
Icon:
|
|
1538
|
+
Icon: M
|
|
1539
1539
|
},
|
|
1540
1540
|
success: {
|
|
1541
1541
|
box: "border-border bg-card",
|
|
1542
1542
|
icon: "text-success",
|
|
1543
|
-
Icon:
|
|
1543
|
+
Icon: oe
|
|
1544
1544
|
},
|
|
1545
1545
|
warning: {
|
|
1546
1546
|
box: "border-[color-mix(in_oklab,var(--warning)_35%,var(--border))] bg-warning-soft",
|
|
1547
1547
|
icon: "text-warning",
|
|
1548
|
-
Icon:
|
|
1548
|
+
Icon: ge
|
|
1549
1549
|
},
|
|
1550
1550
|
danger: {
|
|
1551
1551
|
box: "border-[color-mix(in_oklab,var(--destructive)_40%,var(--border))] bg-destructive-soft",
|
|
1552
1552
|
icon: "text-destructive",
|
|
1553
|
-
Icon:
|
|
1553
|
+
Icon: ge
|
|
1554
1554
|
}
|
|
1555
1555
|
};
|
|
1556
|
-
function
|
|
1557
|
-
let { box: c, icon: l, Icon: u } =
|
|
1556
|
+
function ir({ tone: e = "info", title: t, icon: n, children: a, className: o, ...s }) {
|
|
1557
|
+
let { box: c, icon: l, Icon: u } = rr[e];
|
|
1558
1558
|
return /* @__PURE__ */ i("div", {
|
|
1559
1559
|
"data-slot": "alert",
|
|
1560
1560
|
role: e === "danger" || e === "warning" ? "alert" : "status",
|
|
1561
|
-
className:
|
|
1561
|
+
className: V("flex gap-3 rounded-lg border px-4 py-3.5", c, o),
|
|
1562
1562
|
...s,
|
|
1563
1563
|
children: [/* @__PURE__ */ r("span", {
|
|
1564
1564
|
"aria-hidden": "true",
|
|
1565
|
-
className:
|
|
1565
|
+
className: V("mt-px flex shrink-0 [&_svg]:size-[18px]", l),
|
|
1566
1566
|
children: n ?? /* @__PURE__ */ r(u, {})
|
|
1567
1567
|
}), /* @__PURE__ */ i("div", {
|
|
1568
1568
|
className: "flex flex-col gap-0.5",
|
|
@@ -1577,16 +1577,16 @@ function nr({ tone: e = "info", title: t, icon: n, children: a, className: o, ..
|
|
|
1577
1577
|
});
|
|
1578
1578
|
}
|
|
1579
1579
|
// src/ui/feedback/empty-state.component.tsx
|
|
1580
|
-
function
|
|
1580
|
+
function ar({ title: e, description: t, icon: n, action: a, className: o, ...s }) {
|
|
1581
1581
|
return /* @__PURE__ */ i("div", {
|
|
1582
1582
|
"data-slot": "empty-state",
|
|
1583
|
-
className:
|
|
1583
|
+
className: V("flex flex-col items-center gap-2 rounded-xl border-[1.5px] border-dashed border-input p-6 text-center", o),
|
|
1584
1584
|
...s,
|
|
1585
1585
|
children: [
|
|
1586
1586
|
/* @__PURE__ */ r("span", {
|
|
1587
1587
|
"aria-hidden": "true",
|
|
1588
1588
|
className: "grid size-10 place-items-center rounded-[10px] bg-brand-soft text-brand-text [&_svg]:size-5",
|
|
1589
|
-
children: n ?? /* @__PURE__ */ r(
|
|
1589
|
+
children: n ?? /* @__PURE__ */ r(pe, {})
|
|
1590
1590
|
}),
|
|
1591
1591
|
/* @__PURE__ */ r("p", {
|
|
1592
1592
|
className: "m-0 type-h4",
|
|
@@ -1604,13 +1604,13 @@ function rr({ title: e, description: t, icon: n, action: a, className: o, ...s }
|
|
|
1604
1604
|
});
|
|
1605
1605
|
}
|
|
1606
1606
|
// src/ui/feedback/progress.component.tsx
|
|
1607
|
-
function
|
|
1607
|
+
function or({ className: e, value: t, max: n = 100, ...i }) {
|
|
1608
1608
|
let a = t == null ? 0 : Math.min(100, Math.max(0, t / n * 100));
|
|
1609
1609
|
return /* @__PURE__ */ r(v.Root, {
|
|
1610
1610
|
"data-slot": "progress",
|
|
1611
1611
|
value: t,
|
|
1612
1612
|
max: n,
|
|
1613
|
-
className:
|
|
1613
|
+
className: V("relative h-1.5 w-full overflow-hidden rounded-full bg-muted", e),
|
|
1614
1614
|
...i,
|
|
1615
1615
|
children: /* @__PURE__ */ r(v.Indicator, {
|
|
1616
1616
|
className: "h-full rounded-full bg-brand transition-[width]",
|
|
@@ -1619,26 +1619,26 @@ function ir({ className: e, value: t, max: n = 100, ...i }) {
|
|
|
1619
1619
|
});
|
|
1620
1620
|
}
|
|
1621
1621
|
// src/ui/feedback/skeleton.component.tsx
|
|
1622
|
-
function
|
|
1622
|
+
function sr({ className: e, ...t }) {
|
|
1623
1623
|
return /* @__PURE__ */ r("div", {
|
|
1624
1624
|
"data-slot": "skeleton",
|
|
1625
1625
|
"aria-hidden": "true",
|
|
1626
|
-
className:
|
|
1626
|
+
className: V("animate-pulse rounded-sm bg-muted", e),
|
|
1627
1627
|
...t
|
|
1628
1628
|
});
|
|
1629
1629
|
}
|
|
1630
1630
|
// src/ui/feedback/spinner.component.tsx
|
|
1631
|
-
function
|
|
1632
|
-
return /* @__PURE__ */ r(
|
|
1631
|
+
function cr({ className: e, label: t = "Loading", ...n }) {
|
|
1632
|
+
return /* @__PURE__ */ r(ce, {
|
|
1633
1633
|
"data-slot": "spinner",
|
|
1634
1634
|
role: "status",
|
|
1635
1635
|
"aria-label": t,
|
|
1636
|
-
className:
|
|
1636
|
+
className: V("size-4 animate-spin text-muted-foreground", e),
|
|
1637
1637
|
...n
|
|
1638
1638
|
});
|
|
1639
1639
|
}
|
|
1640
1640
|
// src/ui/feedback/toaster.component.tsx
|
|
1641
|
-
function
|
|
1641
|
+
function lr(e) {
|
|
1642
1642
|
return /* @__PURE__ */ r(De, {
|
|
1643
1643
|
className: "toaster group",
|
|
1644
1644
|
toastOptions: { classNames: {
|
|
@@ -1654,21 +1654,21 @@ function sr(e) {
|
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
1656
1656
|
// src/ui/file-drop/file-accept.policy.ts
|
|
1657
|
-
function
|
|
1657
|
+
function ur(e, t = "") {
|
|
1658
1658
|
let n = t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
1659
1659
|
if (n.length === 0) return !0;
|
|
1660
1660
|
let r = e.name?.toLowerCase(), i = e.type.toLowerCase();
|
|
1661
1661
|
return n.some((e) => e.startsWith(".") ? !!r?.endsWith(e) : e.endsWith("/*") ? i.startsWith(e.slice(0, -1)) : i === e);
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1664
|
-
return !t.split(",").some((e) => e.trim() !== "" && !e.trimStart().startsWith(".")) || e.length === 0 || e.some((e) => e === "" ||
|
|
1663
|
+
function dr(e, t = "") {
|
|
1664
|
+
return !t.split(",").some((e) => e.trim() !== "" && !e.trimStart().startsWith(".")) || e.length === 0 || e.some((e) => e === "" || ur({ type: e }, t));
|
|
1665
1665
|
}
|
|
1666
1666
|
// src/ui/file-drop/file-drop-overlay.component.tsx
|
|
1667
|
-
function
|
|
1668
|
-
return /* @__PURE__ */ r(
|
|
1667
|
+
function fr({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle: s = "These files cannot be uploaded here", icon: c, className: l }) {
|
|
1668
|
+
return /* @__PURE__ */ r($t, { children: /* @__PURE__ */ r("div", {
|
|
1669
1669
|
"data-slot": "file-drop-overlay",
|
|
1670
1670
|
"data-state": e ? t ? "accepted" : "rejected" : "closed",
|
|
1671
|
-
className:
|
|
1671
|
+
className: V("group/drop pointer-events-none fixed inset-0 z-1000 grid place-items-center p-4 backdrop-blur-md transition-[opacity,visibility] duration-200 motion-reduce:transition-none", "data-[state=closed]:invisible data-[state=closed]:opacity-0 data-[state=accepted]:bg-brand/15 data-[state=rejected]:bg-destructive/10", l),
|
|
1672
1672
|
children: /* @__PURE__ */ r("div", {
|
|
1673
1673
|
className: "grid size-full place-items-center rounded-2xl border-2 border-dashed border-brand/60 transition-colors group-data-[state=rejected]/drop:border-destructive/60",
|
|
1674
1674
|
children: /* @__PURE__ */ r("div", {
|
|
@@ -1681,7 +1681,7 @@ function ur({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1681
1681
|
children: [/* @__PURE__ */ r("span", {
|
|
1682
1682
|
"aria-hidden": "true",
|
|
1683
1683
|
className: "absolute inset-0 rounded-full bg-current opacity-20 motion-safe:animate-ping"
|
|
1684
|
-
}), t ? c ?? /* @__PURE__ */ r(
|
|
1684
|
+
}), t ? c ?? /* @__PURE__ */ r(_e, { "aria-hidden": "true" }) : /* @__PURE__ */ r(te, { "aria-hidden": "true" })]
|
|
1685
1685
|
}),
|
|
1686
1686
|
/* @__PURE__ */ r("span", {
|
|
1687
1687
|
className: "text-2xl font-semibold text-foreground",
|
|
@@ -1697,12 +1697,12 @@ function ur({ open: e, accepted: t = !0, title: a, description: o, rejectedTitle
|
|
|
1697
1697
|
}) });
|
|
1698
1698
|
}
|
|
1699
1699
|
// src/ui/file-drop/page-drop.hook.ts
|
|
1700
|
-
function
|
|
1701
|
-
let [t, n] =
|
|
1700
|
+
function pr(e) {
|
|
1701
|
+
let [t, n] = R({
|
|
1702
1702
|
isOver: !1,
|
|
1703
1703
|
isAccepted: !0
|
|
1704
|
-
}), r =
|
|
1705
|
-
return r.current = e,
|
|
1704
|
+
}), r = L(e);
|
|
1705
|
+
return r.current = e, I(() => {
|
|
1706
1706
|
let e = 0, t = (e) => !r.current.disabled && !!e.dataTransfer?.types.includes("Files"), i = () => {
|
|
1707
1707
|
e = 0, n({
|
|
1708
1708
|
isOver: !1,
|
|
@@ -1714,7 +1714,7 @@ function dr(e) {
|
|
|
1714
1714
|
let a = [...i.dataTransfer?.items ?? []].filter((e) => e.kind === "file").map((e) => e.type);
|
|
1715
1715
|
n({
|
|
1716
1716
|
isOver: !0,
|
|
1717
|
-
isAccepted:
|
|
1717
|
+
isAccepted: dr(a, r.current.accept)
|
|
1718
1718
|
});
|
|
1719
1719
|
}, o = (e) => {
|
|
1720
1720
|
t(e) && e.preventDefault();
|
|
@@ -1726,7 +1726,7 @@ function dr(e) {
|
|
|
1726
1726
|
let n = [...e.dataTransfer?.files ?? []];
|
|
1727
1727
|
if (n.length === 0) return;
|
|
1728
1728
|
let a = r.current.accept;
|
|
1729
|
-
r.current.onDrop(n.filter((e) =>
|
|
1729
|
+
r.current.onDrop(n.filter((e) => ur(e, a)), n.filter((e) => !ur(e, a)));
|
|
1730
1730
|
}, l = (e) => {
|
|
1731
1731
|
t(e) && i();
|
|
1732
1732
|
};
|
|
@@ -1736,26 +1736,26 @@ function dr(e) {
|
|
|
1736
1736
|
}, []), t;
|
|
1737
1737
|
}
|
|
1738
1738
|
// src/ui/layout/accordion.component.tsx
|
|
1739
|
-
function
|
|
1739
|
+
function mr({ className: e, ...t }) {
|
|
1740
1740
|
return /* @__PURE__ */ r(a.Root, {
|
|
1741
1741
|
"data-slot": "accordion",
|
|
1742
|
-
className:
|
|
1742
|
+
className: V("border-t", e),
|
|
1743
1743
|
...t
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function hr({ className: e, ...t }) {
|
|
1747
1747
|
return /* @__PURE__ */ r(a.Item, {
|
|
1748
1748
|
"data-slot": "accordion-item",
|
|
1749
|
-
className:
|
|
1749
|
+
className: V("border-b", e),
|
|
1750
1750
|
...t
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function gr({ className: e, children: t, ...n }) {
|
|
1754
1754
|
return /* @__PURE__ */ r(a.Header, {
|
|
1755
1755
|
className: "m-0 flex",
|
|
1756
1756
|
children: /* @__PURE__ */ i(a.Trigger, {
|
|
1757
1757
|
"data-slot": "accordion-trigger",
|
|
1758
|
-
className:
|
|
1758
|
+
className: V("group flex flex-1 cursor-pointer items-center justify-between gap-4 py-3 text-start type-h4 outline-none transition-colors duration-150 hover:text-brand-text focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none", e),
|
|
1759
1759
|
...n,
|
|
1760
1760
|
children: [t, /* @__PURE__ */ i("svg", {
|
|
1761
1761
|
viewBox: "0 0 16 16",
|
|
@@ -1781,217 +1781,217 @@ function mr({ className: e, children: t, ...n }) {
|
|
|
1781
1781
|
})
|
|
1782
1782
|
});
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function _r({ className: e, children: t, ...n }) {
|
|
1785
1785
|
return /* @__PURE__ */ r(a.Content, {
|
|
1786
1786
|
"data-slot": "accordion-content",
|
|
1787
1787
|
className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down motion-reduce:animate-none",
|
|
1788
1788
|
...n,
|
|
1789
1789
|
children: /* @__PURE__ */ r("div", {
|
|
1790
|
-
className:
|
|
1790
|
+
className: V("pb-3", e),
|
|
1791
1791
|
children: t
|
|
1792
1792
|
})
|
|
1793
1793
|
});
|
|
1794
1794
|
}
|
|
1795
1795
|
// src/ui/layout/card.component.tsx
|
|
1796
|
-
function
|
|
1796
|
+
function vr({ className: e, ...t }) {
|
|
1797
1797
|
return /* @__PURE__ */ r("div", {
|
|
1798
1798
|
"data-slot": "card",
|
|
1799
|
-
className:
|
|
1799
|
+
className: V("flex flex-col overflow-hidden rounded-xl border bg-card text-card-foreground shadow-xs", e),
|
|
1800
1800
|
...t
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1803
|
+
function yr({ className: e, ...t }) {
|
|
1804
1804
|
return /* @__PURE__ */ r("div", {
|
|
1805
1805
|
"data-slot": "card-header",
|
|
1806
|
-
className:
|
|
1806
|
+
className: V("flex flex-col gap-1 px-5 pt-5", e),
|
|
1807
1807
|
...t
|
|
1808
1808
|
});
|
|
1809
1809
|
}
|
|
1810
|
-
function
|
|
1810
|
+
function br({ className: e, children: t, ...n }) {
|
|
1811
1811
|
return /* @__PURE__ */ r("h3", {
|
|
1812
1812
|
"data-slot": "card-title",
|
|
1813
|
-
className:
|
|
1813
|
+
className: V("m-0 type-h4", e),
|
|
1814
1814
|
...n,
|
|
1815
1815
|
children: t
|
|
1816
1816
|
});
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function xr({ className: e, ...t }) {
|
|
1819
1819
|
return /* @__PURE__ */ r("p", {
|
|
1820
1820
|
"data-slot": "card-description",
|
|
1821
|
-
className:
|
|
1821
|
+
className: V("m-0 text-[13px] text-muted-foreground", e),
|
|
1822
1822
|
...t
|
|
1823
1823
|
});
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function Sr({ className: e, ...t }) {
|
|
1826
1826
|
return /* @__PURE__ */ r("div", {
|
|
1827
1827
|
"data-slot": "card-content",
|
|
1828
|
-
className:
|
|
1828
|
+
className: V("px-5 py-4", e),
|
|
1829
1829
|
...t
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1832
|
+
function Cr({ className: e, ...t }) {
|
|
1833
1833
|
return /* @__PURE__ */ r("div", {
|
|
1834
1834
|
"data-slot": "card-footer",
|
|
1835
|
-
className:
|
|
1835
|
+
className: V("mt-auto flex items-center justify-between gap-3 border-t bg-muted px-5 py-3", e),
|
|
1836
1836
|
...t
|
|
1837
1837
|
});
|
|
1838
1838
|
}
|
|
1839
1839
|
// src/ui/layout/kbd.component.tsx
|
|
1840
|
-
function
|
|
1840
|
+
function wr({ className: e, ...t }) {
|
|
1841
1841
|
return /* @__PURE__ */ r("kbd", {
|
|
1842
1842
|
"data-slot": "kbd",
|
|
1843
|
-
className:
|
|
1843
|
+
className: V("inline-flex h-5 min-w-5 items-center justify-center rounded-[5px] border border-b-2 bg-muted px-1.5 font-mono text-[11px] text-muted-foreground", e),
|
|
1844
1844
|
...t
|
|
1845
1845
|
});
|
|
1846
1846
|
}
|
|
1847
1847
|
// src/ui/layout/resizable.component.tsx
|
|
1848
|
-
function
|
|
1848
|
+
function Tr({ className: e, ...t }) {
|
|
1849
1849
|
return /* @__PURE__ */ r(Oe, {
|
|
1850
1850
|
"data-slot": "resizable-panel-group",
|
|
1851
|
-
className:
|
|
1851
|
+
className: V("flex size-full", e),
|
|
1852
1852
|
...t
|
|
1853
1853
|
});
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function Er(e) {
|
|
1856
1856
|
return /* @__PURE__ */ r(ke, {
|
|
1857
1857
|
"data-slot": "resizable-panel",
|
|
1858
1858
|
...e
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1861
|
+
function Dr({ className: e, ...t }) {
|
|
1862
1862
|
return /* @__PURE__ */ r(Ae, {
|
|
1863
1863
|
"data-slot": "resizable-handle",
|
|
1864
|
-
className:
|
|
1864
|
+
className: V("relative flex w-px shrink-0 items-center justify-center bg-border outline-none after:absolute after:inset-y-0 after:start-1/2 after:w-2 after:-translate-x-1/2", "hover:bg-ring focus-visible:bg-ring aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full", e),
|
|
1865
1865
|
...t
|
|
1866
1866
|
});
|
|
1867
1867
|
}
|
|
1868
1868
|
// src/ui/layout/scroll-area.component.tsx
|
|
1869
|
-
function
|
|
1869
|
+
function Or({ className: e, children: t, ...n }) {
|
|
1870
1870
|
return /* @__PURE__ */ i(b.Root, {
|
|
1871
1871
|
"data-slot": "scroll-area",
|
|
1872
|
-
className:
|
|
1872
|
+
className: V("relative overflow-hidden", e),
|
|
1873
1873
|
...n,
|
|
1874
1874
|
children: [
|
|
1875
1875
|
/* @__PURE__ */ r(b.Viewport, {
|
|
1876
1876
|
className: "size-full rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1877
1877
|
children: t
|
|
1878
1878
|
}),
|
|
1879
|
-
/* @__PURE__ */ r(
|
|
1880
|
-
/* @__PURE__ */ r(
|
|
1879
|
+
/* @__PURE__ */ r(kr, {}),
|
|
1880
|
+
/* @__PURE__ */ r(kr, { orientation: "horizontal" }),
|
|
1881
1881
|
/* @__PURE__ */ r(b.Corner, {})
|
|
1882
1882
|
]
|
|
1883
1883
|
});
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function kr({ className: e, orientation: t = "vertical", ...n }) {
|
|
1886
1886
|
return /* @__PURE__ */ r(b.Scrollbar, {
|
|
1887
1887
|
"data-slot": "scroll-area-scrollbar",
|
|
1888
1888
|
orientation: t,
|
|
1889
|
-
className:
|
|
1889
|
+
className: V("flex touch-none select-none p-px", t === "vertical" ? "h-full w-2" : "h-2 flex-col", e),
|
|
1890
1890
|
...n,
|
|
1891
1891
|
children: /* @__PURE__ */ r(b.Thumb, { className: "relative flex-1 rounded-full bg-input" })
|
|
1892
1892
|
});
|
|
1893
1893
|
}
|
|
1894
1894
|
// src/ui/layout/separator.component.tsx
|
|
1895
|
-
function
|
|
1895
|
+
function Ar({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
|
|
1896
1896
|
return /* @__PURE__ */ r(ee.Root, {
|
|
1897
1897
|
"data-slot": "separator",
|
|
1898
1898
|
orientation: t,
|
|
1899
1899
|
decorative: n,
|
|
1900
|
-
className:
|
|
1900
|
+
className: V("shrink-0 bg-border", t === "horizontal" ? "h-px w-full" : "w-px self-stretch", e),
|
|
1901
1901
|
...i
|
|
1902
1902
|
});
|
|
1903
1903
|
}
|
|
1904
1904
|
// src/ui/layout/table.component.tsx
|
|
1905
|
-
function
|
|
1905
|
+
function jr({ className: e, ...t }) {
|
|
1906
1906
|
return /* @__PURE__ */ r("div", {
|
|
1907
1907
|
"data-slot": "table-container",
|
|
1908
1908
|
className: "relative w-full overflow-x-auto",
|
|
1909
1909
|
children: /* @__PURE__ */ r("table", {
|
|
1910
1910
|
"data-slot": "table",
|
|
1911
|
-
className:
|
|
1911
|
+
className: V("w-full caption-bottom border-collapse text-[13px]", e),
|
|
1912
1912
|
...t
|
|
1913
1913
|
})
|
|
1914
1914
|
});
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function Mr(e) {
|
|
1917
1917
|
return /* @__PURE__ */ r("thead", {
|
|
1918
1918
|
"data-slot": "table-header",
|
|
1919
1919
|
...e
|
|
1920
1920
|
});
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function Nr(e) {
|
|
1923
1923
|
return /* @__PURE__ */ r("tbody", {
|
|
1924
1924
|
"data-slot": "table-body",
|
|
1925
1925
|
...e
|
|
1926
1926
|
});
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function Pr({ className: e, ...t }) {
|
|
1929
1929
|
return /* @__PURE__ */ r("tr", {
|
|
1930
1930
|
"data-slot": "table-row",
|
|
1931
|
-
className:
|
|
1931
|
+
className: V("border-b transition-colors hover:bg-muted/60 data-[state=selected]:bg-muted", e),
|
|
1932
1932
|
...t
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Fr({ className: e, ...t }) {
|
|
1936
1936
|
return /* @__PURE__ */ r("th", {
|
|
1937
1937
|
"data-slot": "table-head",
|
|
1938
|
-
className:
|
|
1938
|
+
className: V("h-9 whitespace-nowrap px-3 text-start align-middle font-medium text-muted-foreground", e),
|
|
1939
1939
|
...t
|
|
1940
1940
|
});
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function Ir({ className: e, ...t }) {
|
|
1943
1943
|
return /* @__PURE__ */ r("td", {
|
|
1944
1944
|
"data-slot": "table-cell",
|
|
1945
|
-
className:
|
|
1945
|
+
className: V("px-3 py-[11px] align-middle", e),
|
|
1946
1946
|
...t
|
|
1947
1947
|
});
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1949
|
+
function Lr({ className: e, ...t }) {
|
|
1950
1950
|
return /* @__PURE__ */ r("caption", {
|
|
1951
1951
|
"data-slot": "table-caption",
|
|
1952
|
-
className:
|
|
1952
|
+
className: V("mt-3 text-xs text-muted-foreground", e),
|
|
1953
1953
|
...t
|
|
1954
1954
|
});
|
|
1955
1955
|
}
|
|
1956
1956
|
// src/ui/navigation/breadcrumb.component.tsx
|
|
1957
|
-
function
|
|
1957
|
+
function Rr({ "aria-label": e = "Breadcrumb", ...t }) {
|
|
1958
1958
|
return /* @__PURE__ */ r("nav", {
|
|
1959
1959
|
"data-slot": "breadcrumb",
|
|
1960
1960
|
"aria-label": e,
|
|
1961
1961
|
...t
|
|
1962
1962
|
});
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function zr({ className: e, ...t }) {
|
|
1965
1965
|
return /* @__PURE__ */ r("ol", {
|
|
1966
1966
|
"data-slot": "breadcrumb-list",
|
|
1967
|
-
className:
|
|
1967
|
+
className: V("m-0 flex list-none flex-wrap items-center gap-2 p-0 text-[13px] text-muted-foreground", e),
|
|
1968
1968
|
...t
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1971
|
+
function Br({ className: e, ...t }) {
|
|
1972
1972
|
return /* @__PURE__ */ r("li", {
|
|
1973
1973
|
"data-slot": "breadcrumb-item",
|
|
1974
|
-
className:
|
|
1974
|
+
className: V("inline-flex items-center gap-2", e),
|
|
1975
1975
|
...t
|
|
1976
1976
|
});
|
|
1977
1977
|
}
|
|
1978
|
-
function
|
|
1978
|
+
function Vr({ asChild: e = !1, className: t, ...n }) {
|
|
1979
1979
|
let i = e ? C.Root : "a";
|
|
1980
1980
|
return /* @__PURE__ */ r(i, {
|
|
1981
1981
|
"data-slot": "breadcrumb-link",
|
|
1982
|
-
className:
|
|
1982
|
+
className: V("text-inherit no-underline transition-colors hover:text-foreground", t),
|
|
1983
1983
|
...n
|
|
1984
1984
|
});
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1986
|
+
function Hr({ className: e, ...t }) {
|
|
1987
1987
|
return /* @__PURE__ */ r("span", {
|
|
1988
1988
|
"data-slot": "breadcrumb-page",
|
|
1989
1989
|
"aria-current": "page",
|
|
1990
|
-
className:
|
|
1990
|
+
className: V("font-medium text-foreground", e),
|
|
1991
1991
|
...t
|
|
1992
1992
|
});
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function Ur({ children: e = "/", ...t }) {
|
|
1995
1995
|
return /* @__PURE__ */ r("li", {
|
|
1996
1996
|
"data-slot": "breadcrumb-separator",
|
|
1997
1997
|
role: "presentation",
|
|
@@ -2001,15 +2001,15 @@ function Vr({ children: e = "/", ...t }) {
|
|
|
2001
2001
|
});
|
|
2002
2002
|
}
|
|
2003
2003
|
// src/ui/navigation/menu-icon.component.tsx
|
|
2004
|
-
var
|
|
2005
|
-
function
|
|
2004
|
+
var Wr = "origin-center [transform-box:fill-box] motion-reduce:[animation-duration:1ms]";
|
|
2005
|
+
function Gr({ open: e, className: t, ...n }) {
|
|
2006
2006
|
return /* @__PURE__ */ i("svg", {
|
|
2007
2007
|
"data-slot": "menu-icon",
|
|
2008
2008
|
"data-state": e === void 0 ? void 0 : e ? "open" : "closed",
|
|
2009
2009
|
viewBox: "0 0 24 24",
|
|
2010
2010
|
fill: "currentColor",
|
|
2011
2011
|
"aria-hidden": "true",
|
|
2012
|
-
className:
|
|
2012
|
+
className: V("group/menu-icon size-5", t),
|
|
2013
2013
|
...n,
|
|
2014
2014
|
children: [
|
|
2015
2015
|
/* @__PURE__ */ r("rect", {
|
|
@@ -2018,7 +2018,7 @@ function Ur({ open: e, className: t, ...n }) {
|
|
|
2018
2018
|
width: "16",
|
|
2019
2019
|
height: "2",
|
|
2020
2020
|
rx: "1",
|
|
2021
|
-
className:
|
|
2021
|
+
className: V(Wr, "group-data-[state=open]/menu-icon:animate-menu-line-top-open group-data-[state=closed]/menu-icon:animate-menu-line-top-close")
|
|
2022
2022
|
}),
|
|
2023
2023
|
/* @__PURE__ */ r("rect", {
|
|
2024
2024
|
x: "4",
|
|
@@ -2026,7 +2026,7 @@ function Ur({ open: e, className: t, ...n }) {
|
|
|
2026
2026
|
width: "16",
|
|
2027
2027
|
height: "2",
|
|
2028
2028
|
rx: "1",
|
|
2029
|
-
className:
|
|
2029
|
+
className: V(Wr, "group-data-[state=open]/menu-icon:animate-menu-line-middle-open group-data-[state=closed]/menu-icon:animate-menu-line-middle-close")
|
|
2030
2030
|
}),
|
|
2031
2031
|
/* @__PURE__ */ r("rect", {
|
|
2032
2032
|
x: "4",
|
|
@@ -2034,62 +2034,62 @@ function Ur({ open: e, className: t, ...n }) {
|
|
|
2034
2034
|
width: "16",
|
|
2035
2035
|
height: "2",
|
|
2036
2036
|
rx: "1",
|
|
2037
|
-
className:
|
|
2037
|
+
className: V(Wr, "group-data-[state=open]/menu-icon:animate-menu-line-bottom-open group-data-[state=closed]/menu-icon:animate-menu-line-bottom-close")
|
|
2038
2038
|
})
|
|
2039
2039
|
]
|
|
2040
2040
|
});
|
|
2041
2041
|
}
|
|
2042
2042
|
// src/ui/navigation/menubar.component.tsx
|
|
2043
|
-
function
|
|
2043
|
+
function Kr({ className: e, ...t }) {
|
|
2044
2044
|
return /* @__PURE__ */ r(m.Root, {
|
|
2045
2045
|
"data-slot": "menubar",
|
|
2046
|
-
className:
|
|
2046
|
+
className: V("flex items-center gap-0.5", e),
|
|
2047
2047
|
...t
|
|
2048
2048
|
});
|
|
2049
2049
|
}
|
|
2050
|
-
var
|
|
2051
|
-
function
|
|
2050
|
+
var qr = m.Menu;
|
|
2051
|
+
function Jr({ className: e, ...t }) {
|
|
2052
2052
|
return /* @__PURE__ */ r(m.Trigger, {
|
|
2053
2053
|
"data-slot": "menubar-trigger",
|
|
2054
|
-
className:
|
|
2054
|
+
className: V("flex h-[26px] cursor-default select-none items-center rounded-sm px-2 text-[13px] outline-none hover:bg-accent focus:bg-accent data-[state=open]:bg-accent", e),
|
|
2055
2055
|
...t
|
|
2056
2056
|
});
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function Yr({ className: e, align: t = "start", sideOffset: n = 6, ...i }) {
|
|
2059
2059
|
return /* @__PURE__ */ r(m.Portal, { children: /* @__PURE__ */ r(m.Content, {
|
|
2060
2060
|
"data-slot": "menubar-content",
|
|
2061
2061
|
align: t,
|
|
2062
2062
|
sideOffset: n,
|
|
2063
|
-
className:
|
|
2063
|
+
className: V("z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) rounded-lg border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", e),
|
|
2064
2064
|
...i
|
|
2065
2065
|
}) });
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2067
|
+
function Xr({ className: e, ...t }) {
|
|
2068
2068
|
return /* @__PURE__ */ r(m.Item, {
|
|
2069
2069
|
"data-slot": "menubar-item",
|
|
2070
|
-
className:
|
|
2070
|
+
className: V("relative flex cursor-default select-none items-center gap-2.5 rounded-sm px-2.5 py-1.5 text-[13px] outline-none focus:bg-accent data-disabled:pointer-events-none data-disabled:opacity-50", e),
|
|
2071
2071
|
...t
|
|
2072
2072
|
});
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Zr({ className: e, ...t }) {
|
|
2075
2075
|
return /* @__PURE__ */ r("span", {
|
|
2076
2076
|
"data-slot": "menubar-shortcut",
|
|
2077
|
-
className:
|
|
2077
|
+
className: V("ms-auto text-xs text-muted-foreground", e),
|
|
2078
2078
|
...t
|
|
2079
2079
|
});
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2081
|
+
function Qr({ className: e, ...t }) {
|
|
2082
2082
|
return /* @__PURE__ */ r(m.Separator, {
|
|
2083
2083
|
"data-slot": "menubar-separator",
|
|
2084
|
-
className:
|
|
2084
|
+
className: V("-mx-1 my-1 h-px bg-border", e),
|
|
2085
2085
|
...t
|
|
2086
2086
|
});
|
|
2087
2087
|
}
|
|
2088
2088
|
// src/ui/navigation/navigation-menu.component.tsx
|
|
2089
|
-
function
|
|
2089
|
+
function $r({ className: e, children: t, ...n }) {
|
|
2090
2090
|
return /* @__PURE__ */ i(h.Root, {
|
|
2091
2091
|
"data-slot": "navigation-menu",
|
|
2092
|
-
className:
|
|
2092
|
+
className: V("relative flex items-center", e),
|
|
2093
2093
|
...n,
|
|
2094
2094
|
children: [t, /* @__PURE__ */ r("div", {
|
|
2095
2095
|
className: "absolute start-0 top-full flex justify-center",
|
|
@@ -2097,50 +2097,50 @@ function Zr({ className: e, children: t, ...n }) {
|
|
|
2097
2097
|
})]
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function ei({ className: e, ...t }) {
|
|
2101
2101
|
return /* @__PURE__ */ r(h.List, {
|
|
2102
2102
|
"data-slot": "navigation-menu-list",
|
|
2103
|
-
className:
|
|
2103
|
+
className: V("m-0 flex list-none items-center gap-1 p-0", e),
|
|
2104
2104
|
...t
|
|
2105
2105
|
});
|
|
2106
2106
|
}
|
|
2107
|
-
var
|
|
2108
|
-
function
|
|
2107
|
+
var ti = h.Item, ni = "inline-flex h-[calc(var(--control-h)-6px)] cursor-pointer items-center gap-1 rounded-md bg-transparent px-3 text-[15px] font-medium text-foreground no-underline outline-none transition-colors duration-150 motion-reduce:transition-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-accent";
|
|
2108
|
+
function ri({ className: e, children: t, ...n }) {
|
|
2109
2109
|
return /* @__PURE__ */ i(h.Trigger, {
|
|
2110
2110
|
"data-slot": "navigation-menu-trigger",
|
|
2111
|
-
className:
|
|
2111
|
+
className: V(ni, "group", e),
|
|
2112
2112
|
...n,
|
|
2113
|
-
children: [t, /* @__PURE__ */ r(
|
|
2113
|
+
children: [t, /* @__PURE__ */ r(A, {
|
|
2114
2114
|
className: "size-4 transition-transform duration-200 ease-emphasised group-data-[state=open]:rotate-180 motion-reduce:transition-none",
|
|
2115
2115
|
"aria-hidden": "true"
|
|
2116
2116
|
})]
|
|
2117
2117
|
});
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2119
|
+
function ii({ className: e, ...t }) {
|
|
2120
2120
|
return /* @__PURE__ */ r(h.Content, {
|
|
2121
2121
|
"data-slot": "navigation-menu-content",
|
|
2122
|
-
className:
|
|
2122
|
+
className: V("top-0 start-0 w-full origin-top p-2 md:absolute md:w-auto", "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out", e),
|
|
2123
2123
|
...t
|
|
2124
2124
|
});
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function ai({ className: e, ...t }) {
|
|
2127
2127
|
return /* @__PURE__ */ r(h.Link, {
|
|
2128
2128
|
"data-slot": "navigation-menu-link",
|
|
2129
|
-
className:
|
|
2129
|
+
className: V(ni, e),
|
|
2130
2130
|
...t
|
|
2131
2131
|
});
|
|
2132
2132
|
}
|
|
2133
2133
|
// src/ui/navigation/pagination.component.tsx
|
|
2134
|
-
function
|
|
2134
|
+
function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className: o }) {
|
|
2135
2135
|
let s = Math.max(1, Math.min(e - Math.floor(a / 2), t - a + 1)), c = Array.from({ length: Math.min(a, t) }, (e, t) => s + t);
|
|
2136
2136
|
return /* @__PURE__ */ i("nav", {
|
|
2137
2137
|
"data-slot": "pagination",
|
|
2138
2138
|
"aria-label": "Pagination",
|
|
2139
|
-
className:
|
|
2139
|
+
className: V("flex items-center gap-1", o),
|
|
2140
2140
|
children: [
|
|
2141
2141
|
/* @__PURE__ */ r("button", {
|
|
2142
2142
|
type: "button",
|
|
2143
|
-
className:
|
|
2143
|
+
className: J({
|
|
2144
2144
|
variant: "ghost",
|
|
2145
2145
|
size: "sm"
|
|
2146
2146
|
}),
|
|
@@ -2152,7 +2152,7 @@ function ii({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2152
2152
|
type: "button",
|
|
2153
2153
|
"aria-current": t === e ? "page" : void 0,
|
|
2154
2154
|
"aria-label": `Page ${t}`,
|
|
2155
|
-
className:
|
|
2155
|
+
className: J({
|
|
2156
2156
|
variant: t === e ? "outline" : "ghost",
|
|
2157
2157
|
size: "icon-sm"
|
|
2158
2158
|
}),
|
|
@@ -2161,7 +2161,7 @@ function ii({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2161
2161
|
}, t)),
|
|
2162
2162
|
/* @__PURE__ */ r("button", {
|
|
2163
2163
|
type: "button",
|
|
2164
|
-
className:
|
|
2164
|
+
className: J({
|
|
2165
2165
|
variant: "ghost",
|
|
2166
2166
|
size: "sm"
|
|
2167
2167
|
}),
|
|
@@ -2173,66 +2173,74 @@ function ii({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2173
2173
|
});
|
|
2174
2174
|
}
|
|
2175
2175
|
// src/ui/navigation/tabs.component.tsx
|
|
2176
|
-
var
|
|
2177
|
-
function
|
|
2178
|
-
let i = Math.abs(e) * (t > 0 ? n / t : 1), a = Math.min(Math.max(i,
|
|
2176
|
+
var si = ye(null), ci = 24;
|
|
2177
|
+
function li(e, t, n, r) {
|
|
2178
|
+
let i = Math.abs(e) * (t > 0 ? n / t : 1), a = Math.min(Math.max(i, ci), Math.max(n / 2, ci));
|
|
2179
2179
|
return Math.round(r ? a : -a);
|
|
2180
2180
|
}
|
|
2181
|
-
function
|
|
2182
|
-
let
|
|
2183
|
-
let t =
|
|
2184
|
-
if (
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2181
|
+
function ui({ className: e, style: t, children: n, value: i, defaultValue: a, onValueChange: o, orientation: s = "horizontal", ...c }) {
|
|
2182
|
+
let l = L(null), u = L(i ?? a), [d, f] = R(), p = L(void 0), [m, h] = R(i ?? a), g = F((e) => {
|
|
2183
|
+
let t = l.current, n = [...t?.querySelectorAll("[data-slot=tabs-trigger]") ?? []], r = n.find((e) => e.dataset.value === u.current), i = n.find((t) => t.dataset.value === e);
|
|
2184
|
+
if (u.current = e, h(e), !t || !r || !i || r === i) return;
|
|
2185
|
+
p.current = t.querySelector("[data-slot=tabs-content][data-state=active]")?.offsetHeight;
|
|
2186
|
+
let a = s === "vertical", o = t.querySelector("[data-slot=tabs-list]"), c = a ? i.offsetTop - r.offsetTop : i.offsetLeft - r.offsetLeft, d = n.indexOf(i) > n.indexOf(r);
|
|
2187
|
+
f(li(c, (a ? o?.offsetHeight : o?.offsetWidth) ?? 0, a ? t.offsetHeight : t.offsetWidth, d));
|
|
2188
|
+
}, [s]);
|
|
2189
|
+
return I(() => {
|
|
2190
|
+
i !== void 0 && i !== u.current && g(i);
|
|
2191
|
+
}, [i, g]), /* @__PURE__ */ r(T.Root, {
|
|
2192
|
+
ref: l,
|
|
2192
2193
|
"data-slot": "tabs",
|
|
2193
|
-
"data-direction":
|
|
2194
|
-
style:
|
|
2194
|
+
"data-direction": d === void 0 ? void 0 : s === "vertical" ? "y" : "x",
|
|
2195
|
+
style: d === void 0 ? t : {
|
|
2195
2196
|
...t,
|
|
2196
|
-
"--tab-shift": `${String(
|
|
2197
|
+
"--tab-shift": `${String(d)}px`
|
|
2197
2198
|
},
|
|
2198
|
-
value:
|
|
2199
|
-
defaultValue:
|
|
2200
|
-
orientation:
|
|
2199
|
+
value: i,
|
|
2200
|
+
defaultValue: a,
|
|
2201
|
+
orientation: s,
|
|
2201
2202
|
onValueChange: (e) => {
|
|
2202
|
-
|
|
2203
|
+
g(e), o?.(e);
|
|
2203
2204
|
},
|
|
2204
|
-
className:
|
|
2205
|
-
...
|
|
2205
|
+
className: V("group/tabs flex gap-3 data-[orientation=horizontal]:flex-col has-[>[data-slot=tabs-list][data-variant=outline]]:gap-0", e),
|
|
2206
|
+
...c,
|
|
2207
|
+
children: /* @__PURE__ */ r(si, {
|
|
2208
|
+
value: {
|
|
2209
|
+
active: m,
|
|
2210
|
+
fromHeightRef: p
|
|
2211
|
+
},
|
|
2212
|
+
children: n
|
|
2213
|
+
})
|
|
2206
2214
|
});
|
|
2207
2215
|
}
|
|
2208
|
-
var
|
|
2216
|
+
var di = {
|
|
2209
2217
|
pill: "gap-0.5 rounded-md bg-muted p-[3px]",
|
|
2210
2218
|
underline: "w-full gap-5 border-b data-[orientation=vertical]:w-auto data-[orientation=vertical]:gap-1 data-[orientation=vertical]:border-b-0 data-[orientation=vertical]:border-e",
|
|
2211
2219
|
outline: "w-full gap-1 border-b data-[orientation=vertical]:w-auto data-[orientation=vertical]:border-b-0 data-[orientation=vertical]:border-e"
|
|
2212
|
-
},
|
|
2220
|
+
}, fi = {
|
|
2213
2221
|
pill: "rounded-sm bg-background shadow-xs",
|
|
2214
2222
|
underline: "bg-brand group-data-[orientation=horizontal]/tabs-list:top-auto group-data-[orientation=horizontal]/tabs-list:-bottom-px group-data-[orientation=horizontal]/tabs-list:h-0.5 group-data-[orientation=vertical]/tabs-list:left-auto group-data-[orientation=vertical]/tabs-list:-end-px group-data-[orientation=vertical]/tabs-list:w-0.5",
|
|
2215
|
-
outline: "border bg-background
|
|
2223
|
+
outline: "border bg-background group-data-[orientation=horizontal]/tabs-list:h-[calc(var(--indicator-height)+1px)] group-data-[orientation=horizontal]/tabs-list:rounded-t-md group-data-[orientation=horizontal]/tabs-list:border-b-0 group-data-[orientation=horizontal]/tabs-list:border-t-2 group-data-[orientation=horizontal]/tabs-list:border-t-brand group-data-[orientation=vertical]/tabs-list:w-[calc(var(--indicator-width)+1px)] group-data-[orientation=vertical]/tabs-list:rounded-s-md group-data-[orientation=vertical]/tabs-list:border-e-0 group-data-[orientation=vertical]/tabs-list:border-s-2 group-data-[orientation=vertical]/tabs-list:border-s-brand"
|
|
2216
2224
|
};
|
|
2217
|
-
function
|
|
2225
|
+
function pi({ className: e, variant: t = "pill", fitted: n = !1, children: a, ...o }) {
|
|
2218
2226
|
let s = lt("[data-slot=tabs-trigger][data-state=active]");
|
|
2219
2227
|
return /* @__PURE__ */ i(T.List, {
|
|
2220
2228
|
ref: s,
|
|
2221
2229
|
"data-slot": "tabs-list",
|
|
2222
2230
|
"data-variant": t,
|
|
2223
|
-
className:
|
|
2231
|
+
className: V("group/tabs-list group/indicator relative inline-flex w-fit items-center data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch", di[t], n && "w-full [&>[data-slot=tabs-trigger]]:flex-1", e),
|
|
2224
2232
|
...o,
|
|
2225
2233
|
children: [/* @__PURE__ */ r("span", {
|
|
2226
2234
|
"aria-hidden": "true",
|
|
2227
2235
|
"data-slot": "tabs-indicator",
|
|
2228
|
-
className:
|
|
2236
|
+
className: V(ut, fi[t])
|
|
2229
2237
|
}), a]
|
|
2230
2238
|
});
|
|
2231
2239
|
}
|
|
2232
|
-
function
|
|
2240
|
+
function mi(e) {
|
|
2233
2241
|
e.preventDefault(), e.stopPropagation();
|
|
2234
2242
|
}
|
|
2235
|
-
function
|
|
2243
|
+
function hi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", onKeyDown: o, children: s, value: c, ...l }) {
|
|
2236
2244
|
return /* @__PURE__ */ i(T.Trigger, {
|
|
2237
2245
|
"data-slot": "tabs-trigger",
|
|
2238
2246
|
"data-value": c,
|
|
@@ -2242,7 +2250,7 @@ function fi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2242
2250
|
onKeyDown: (e) => {
|
|
2243
2251
|
o?.(e), n && !e.defaultPrevented && e.key === "Delete" && (e.preventDefault(), n());
|
|
2244
2252
|
},
|
|
2245
|
-
className:
|
|
2253
|
+
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 focus-visible:ring-2 focus-visible:ring-ring 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: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: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:focus-visible:ring-inset 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", e),
|
|
2246
2254
|
...l,
|
|
2247
2255
|
children: [
|
|
2248
2256
|
s,
|
|
@@ -2254,47 +2262,74 @@ function fi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2254
2262
|
n ? /* @__PURE__ */ r("span", {
|
|
2255
2263
|
"aria-hidden": "true",
|
|
2256
2264
|
"data-slot": "tabs-close",
|
|
2257
|
-
onPointerDown:
|
|
2258
|
-
onMouseDown:
|
|
2265
|
+
onPointerDown: mi,
|
|
2266
|
+
onMouseDown: mi,
|
|
2259
2267
|
onClick: (e) => {
|
|
2260
|
-
|
|
2268
|
+
mi(e), n();
|
|
2261
2269
|
},
|
|
2262
2270
|
className: "-me-1 grid size-[18px] place-items-center rounded-sm opacity-50 transition-opacity hover:bg-muted hover:opacity-100 group-data-[state=active]/tab:opacity-80 [&_svg]:size-3",
|
|
2263
|
-
children: /* @__PURE__ */ r(
|
|
2271
|
+
children: /* @__PURE__ */ r(P, {})
|
|
2264
2272
|
}) : null
|
|
2265
2273
|
]
|
|
2266
2274
|
});
|
|
2267
2275
|
}
|
|
2268
|
-
function
|
|
2269
|
-
|
|
2276
|
+
function gi({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
2277
|
+
let a = Se(si), o = L(null), s = a?.active === i.value;
|
|
2278
|
+
return we(() => {
|
|
2279
|
+
let e = o.current, t = a?.fromHeightRef.current;
|
|
2280
|
+
if (!s || !e || !a || t === void 0 || (a.fromHeightRef.current = void 0, typeof e.animate != "function" || matchMedia("(prefers-reduced-motion: reduce)").matches)) return;
|
|
2281
|
+
function n(n) {
|
|
2282
|
+
e && Math.abs(n - (t ?? n)) >= 1 && e.animate([{
|
|
2283
|
+
minHeight: `${String(t)}px`,
|
|
2284
|
+
maxHeight: `${String(t)}px`
|
|
2285
|
+
}, {
|
|
2286
|
+
minHeight: `${String(n)}px`,
|
|
2287
|
+
maxHeight: `${String(n)}px`
|
|
2288
|
+
}], {
|
|
2289
|
+
duration: 250,
|
|
2290
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
2291
|
+
});
|
|
2292
|
+
}
|
|
2293
|
+
if (e.offsetHeight > 0) {
|
|
2294
|
+
n(e.offsetHeight);
|
|
2295
|
+
return;
|
|
2296
|
+
}
|
|
2297
|
+
let r = new ResizeObserver(() => {
|
|
2298
|
+
e.offsetHeight !== 0 && (r.disconnect(), n(e.offsetHeight));
|
|
2299
|
+
});
|
|
2300
|
+
return r.observe(e), () => {
|
|
2301
|
+
r.disconnect();
|
|
2302
|
+
};
|
|
2303
|
+
}, [s, a]), /* @__PURE__ */ r(T.Content, {
|
|
2304
|
+
ref: o,
|
|
2270
2305
|
"data-slot": "tabs-content",
|
|
2271
|
-
className:
|
|
2306
|
+
className: V("flex-1 overflow-clip outline-none", e),
|
|
2272
2307
|
...i,
|
|
2273
2308
|
children: /* @__PURE__ */ r("div", {
|
|
2274
2309
|
"data-slot": "tabs-content-body",
|
|
2275
|
-
className:
|
|
2310
|
+
className: V("group-data-[direction=x]/tabs:animate-tab-in-x group-data-[direction=y]/tabs:animate-tab-in-y motion-reduce:animate-none", t),
|
|
2276
2311
|
children: n
|
|
2277
2312
|
})
|
|
2278
2313
|
});
|
|
2279
2314
|
}
|
|
2280
2315
|
// src/ui/navigation/stepper.component.tsx
|
|
2281
|
-
var
|
|
2316
|
+
var _i = {
|
|
2282
2317
|
done: "bg-primary text-primary-foreground",
|
|
2283
2318
|
current: "border-2 border-primary text-brand-text",
|
|
2284
2319
|
upcoming: "bg-muted text-muted-foreground"
|
|
2285
2320
|
};
|
|
2286
|
-
function
|
|
2321
|
+
function vi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect: a, className: o, "aria-label": s = "Progress", ...c }) {
|
|
2287
2322
|
let l = n === "vertical";
|
|
2288
2323
|
return /* @__PURE__ */ r("ol", {
|
|
2289
2324
|
"data-slot": "stepper",
|
|
2290
2325
|
"data-orientation": n,
|
|
2291
2326
|
"aria-label": s,
|
|
2292
|
-
className:
|
|
2327
|
+
className: V("m-0 flex list-none p-0", l ? "flex-col" : "items-start", o),
|
|
2293
2328
|
...c,
|
|
2294
2329
|
children: e.map((n, o) => {
|
|
2295
2330
|
let s = o < t ? "done" : o === t ? "current" : "upcoming", c = o === e.length - 1, u = /* @__PURE__ */ r("span", {
|
|
2296
2331
|
"aria-hidden": "true",
|
|
2297
|
-
className:
|
|
2332
|
+
className: V("grid size-7 shrink-0 place-items-center rounded-full text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none", _i[s]),
|
|
2298
2333
|
children: s === "done" ? /* @__PURE__ */ r(k, {
|
|
2299
2334
|
className: "size-3.5",
|
|
2300
2335
|
strokeWidth: 2.5
|
|
@@ -2302,7 +2337,7 @@ function hi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2302
2337
|
}), d = /* @__PURE__ */ i("span", {
|
|
2303
2338
|
className: "flex min-w-0 flex-col",
|
|
2304
2339
|
children: [/* @__PURE__ */ i("span", {
|
|
2305
|
-
className:
|
|
2340
|
+
className: V("text-[13px] font-medium", s === "upcoming" && "text-muted-foreground"),
|
|
2306
2341
|
children: [n.title, s === "done" && /* @__PURE__ */ r("span", {
|
|
2307
2342
|
className: "sr-only",
|
|
2308
2343
|
children: ", done"
|
|
@@ -2323,25 +2358,25 @@ function hi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2323
2358
|
return /* @__PURE__ */ i("li", {
|
|
2324
2359
|
"data-state": s,
|
|
2325
2360
|
"aria-current": s === "current" ? "step" : void 0,
|
|
2326
|
-
className:
|
|
2361
|
+
className: V("flex", l ? "flex-col" : "items-center gap-2", !c && !l && "flex-1"),
|
|
2327
2362
|
children: [f, !c && /* @__PURE__ */ r("span", {
|
|
2328
2363
|
"aria-hidden": "true",
|
|
2329
|
-
className:
|
|
2364
|
+
className: V("shrink-0 bg-border transition-colors duration-200 motion-reduce:transition-none", l ? "my-1 ms-[13px] h-5 w-0.5" : "h-0.5 min-w-4 flex-1", s === "done" && "bg-primary")
|
|
2330
2365
|
})]
|
|
2331
2366
|
}, n.title);
|
|
2332
2367
|
})
|
|
2333
2368
|
});
|
|
2334
2369
|
}
|
|
2335
2370
|
// src/ui/presence/presence.recipe.ts
|
|
2336
|
-
var
|
|
2371
|
+
var yi = {
|
|
2337
2372
|
fade: "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
|
|
2338
2373
|
scale: "data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out",
|
|
2339
2374
|
drop: "data-[state=open]:animate-drop-in data-[state=closed]:animate-drop-out motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out"
|
|
2340
2375
|
};
|
|
2341
2376
|
// src/ui/presence/presence.component.tsx
|
|
2342
|
-
function
|
|
2343
|
-
let [s, c] =
|
|
2344
|
-
return e && !s && c(!0),
|
|
2377
|
+
function bi({ present: e, animation: t = "fade", unmountOnExit: n = !0, className: i, onAnimationEnd: a, ...o }) {
|
|
2378
|
+
let [s, c] = R(e), l = L(null);
|
|
2379
|
+
return e && !s && c(!0), we(() => {
|
|
2345
2380
|
if (e || !s) return;
|
|
2346
2381
|
let t = l.current;
|
|
2347
2382
|
t && getComputedStyle(t).animationName !== "none" || c(!1);
|
|
@@ -2350,22 +2385,184 @@ function _i({ present: e, animation: t = "fade", unmountOnExit: n = !0, classNam
|
|
|
2350
2385
|
"data-slot": "presence",
|
|
2351
2386
|
"data-state": e ? "open" : "closed",
|
|
2352
2387
|
hidden: !e && !s,
|
|
2353
|
-
className:
|
|
2388
|
+
className: V(yi[t], i),
|
|
2354
2389
|
onAnimationEnd: (t) => {
|
|
2355
2390
|
a?.(t), !e && t.target === t.currentTarget && c(!1);
|
|
2356
2391
|
},
|
|
2357
2392
|
...o
|
|
2358
2393
|
});
|
|
2359
2394
|
}
|
|
2395
|
+
// src/ui/selectable-list/bulk-action-bar.component.tsx
|
|
2396
|
+
function xi({ selection: e, children: t, countLabel: n = (e) => `${e} selected`, label: a = "Bulk actions", clearLabel: o = "Clear selection", className: s }) {
|
|
2397
|
+
return e.count === 0 ? null : /* @__PURE__ */ i("div", {
|
|
2398
|
+
role: "toolbar",
|
|
2399
|
+
"aria-label": a,
|
|
2400
|
+
"data-slot": "bulk-action-bar",
|
|
2401
|
+
className: V("sticky top-0 z-10 flex items-center gap-2 rounded-md border bg-background px-3 py-1.5 shadow-sm", s),
|
|
2402
|
+
children: [
|
|
2403
|
+
/* @__PURE__ */ r("span", {
|
|
2404
|
+
className: "text-sm font-medium tabular-nums",
|
|
2405
|
+
children: n(e.count)
|
|
2406
|
+
}),
|
|
2407
|
+
/* @__PURE__ */ r("div", {
|
|
2408
|
+
className: "flex flex-1 flex-wrap items-center gap-1.5",
|
|
2409
|
+
children: t
|
|
2410
|
+
}),
|
|
2411
|
+
/* @__PURE__ */ r(Y, {
|
|
2412
|
+
variant: "ghost",
|
|
2413
|
+
size: "icon-sm",
|
|
2414
|
+
"aria-label": o,
|
|
2415
|
+
onClick: e.clear,
|
|
2416
|
+
children: /* @__PURE__ */ r(P, {})
|
|
2417
|
+
})
|
|
2418
|
+
]
|
|
2419
|
+
});
|
|
2420
|
+
}
|
|
2421
|
+
// src/ui/selectable-list/select-all-checkbox.component.tsx
|
|
2422
|
+
function Si({ selection: e, children: t, label: a = "Select all", menuLabel: o = "Selection options", allLabel: s = "All", noneLabel: c = "None", className: l }) {
|
|
2423
|
+
return /* @__PURE__ */ i("div", {
|
|
2424
|
+
"data-slot": "select-all-checkbox",
|
|
2425
|
+
className: V("inline-flex items-center gap-0.5", l),
|
|
2426
|
+
children: [/* @__PURE__ */ r(it, {
|
|
2427
|
+
"aria-label": a,
|
|
2428
|
+
checked: e.allState,
|
|
2429
|
+
onCheckedChange: () => {
|
|
2430
|
+
e.allState === !1 ? e.selectAll() : e.clear();
|
|
2431
|
+
}
|
|
2432
|
+
}), /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
2433
|
+
asChild: !0,
|
|
2434
|
+
children: /* @__PURE__ */ r(Y, {
|
|
2435
|
+
variant: "ghost",
|
|
2436
|
+
size: "icon-sm",
|
|
2437
|
+
"aria-label": o,
|
|
2438
|
+
children: /* @__PURE__ */ r(A, {})
|
|
2439
|
+
})
|
|
2440
|
+
}), /* @__PURE__ */ i(zn, {
|
|
2441
|
+
align: "start",
|
|
2442
|
+
children: [
|
|
2443
|
+
/* @__PURE__ */ r(Bn, {
|
|
2444
|
+
onSelect: e.selectAll,
|
|
2445
|
+
children: s
|
|
2446
|
+
}),
|
|
2447
|
+
/* @__PURE__ */ r(Bn, {
|
|
2448
|
+
onSelect: e.clear,
|
|
2449
|
+
children: c
|
|
2450
|
+
}),
|
|
2451
|
+
t && /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(Un, {}), t] })
|
|
2452
|
+
]
|
|
2453
|
+
})] })]
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
// src/ui/selectable-list/selectable-list.component.tsx
|
|
2457
|
+
var Ci = ye(null), wi = "[data-slot=\"selectable-row\"]";
|
|
2458
|
+
function Ti({ selection: e, className: t, children: n, ...i }) {
|
|
2459
|
+
let a = L(null), [o, s] = R(), c = o !== void 0 && e.ids.includes(o) ? o : e.ids[0];
|
|
2460
|
+
function l(t) {
|
|
2461
|
+
let n = t.target;
|
|
2462
|
+
if ((t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a") {
|
|
2463
|
+
if (n.closest("input, textarea, [contenteditable=\"true\"]")) return;
|
|
2464
|
+
t.preventDefault(), e.selectAll();
|
|
2465
|
+
return;
|
|
2466
|
+
}
|
|
2467
|
+
if (t.key === "Escape" && e.count > 0) {
|
|
2468
|
+
t.preventDefault(), e.clear();
|
|
2469
|
+
return;
|
|
2470
|
+
}
|
|
2471
|
+
let r = n.closest(wi), i = r?.dataset.id;
|
|
2472
|
+
if (i === void 0 || !r) return;
|
|
2473
|
+
if (n === r && t.key === " ") {
|
|
2474
|
+
t.preventDefault(), e.toggle(i, { range: t.shiftKey });
|
|
2475
|
+
return;
|
|
2476
|
+
}
|
|
2477
|
+
if (t.key !== "ArrowDown" && t.key !== "ArrowUp") return;
|
|
2478
|
+
let o = [...a.current?.querySelectorAll(wi) ?? []], s = o[o.indexOf(r) + (t.key === "ArrowDown" ? 1 : -1)], c = s?.dataset.id;
|
|
2479
|
+
s && c !== void 0 && (t.preventDefault(), s.focus(), t.shiftKey && e.add([i, c]));
|
|
2480
|
+
}
|
|
2481
|
+
return /* @__PURE__ */ r(Ci, {
|
|
2482
|
+
value: {
|
|
2483
|
+
selection: e,
|
|
2484
|
+
activeId: c,
|
|
2485
|
+
setActive: s
|
|
2486
|
+
},
|
|
2487
|
+
children: /* @__PURE__ */ r("ul", {
|
|
2488
|
+
ref: a,
|
|
2489
|
+
"data-slot": "selectable-list",
|
|
2490
|
+
"data-selecting": e.count > 0 || void 0,
|
|
2491
|
+
className: V("flex flex-col", t),
|
|
2492
|
+
onKeyDown: l,
|
|
2493
|
+
...i,
|
|
2494
|
+
children: n
|
|
2495
|
+
})
|
|
2496
|
+
});
|
|
2497
|
+
}
|
|
2498
|
+
function Ei({ id: e, label: t, className: n, children: a, onClickCapture: o, onFocus: s, ...c }) {
|
|
2499
|
+
let l = xe(Ci);
|
|
2500
|
+
if (!l) throw Error("SelectableRow must be inside a SelectableList.");
|
|
2501
|
+
let { selection: u, activeId: d, setActive: f } = l, p = u.isSelected(e);
|
|
2502
|
+
function m(t) {
|
|
2503
|
+
t.preventDefault(), u.toggle(e, { range: t.shiftKey });
|
|
2504
|
+
}
|
|
2505
|
+
function h(t) {
|
|
2506
|
+
o?.(t), u.count === 0 || t.target.closest("[data-slot=\"checkbox\"]") || (t.preventDefault(), t.stopPropagation(), u.toggle(e, { range: t.shiftKey }));
|
|
2507
|
+
}
|
|
2508
|
+
return /* @__PURE__ */ i("li", {
|
|
2509
|
+
"data-slot": "selectable-row",
|
|
2510
|
+
"data-id": e,
|
|
2511
|
+
"data-state": p ? "selected" : void 0,
|
|
2512
|
+
tabIndex: d === e ? 0 : -1,
|
|
2513
|
+
className: V("flex items-center gap-3 border-b px-3 py-2.5 outline-none transition-colors hover:bg-muted/60", "focus-visible:ring-3 focus-visible:ring-ring/25 focus-visible:ring-inset data-[state=selected]:bg-muted", u.count > 0 && "cursor-pointer", n),
|
|
2514
|
+
onClickCapture: h,
|
|
2515
|
+
onFocus: (t) => {
|
|
2516
|
+
f(e), s?.(t);
|
|
2517
|
+
},
|
|
2518
|
+
...c,
|
|
2519
|
+
children: [/* @__PURE__ */ r(it, {
|
|
2520
|
+
"aria-label": t,
|
|
2521
|
+
checked: p,
|
|
2522
|
+
tabIndex: -1,
|
|
2523
|
+
onClick: m
|
|
2524
|
+
}), /* @__PURE__ */ r("div", {
|
|
2525
|
+
className: "min-w-0 flex-1",
|
|
2526
|
+
children: a
|
|
2527
|
+
})]
|
|
2528
|
+
});
|
|
2529
|
+
}
|
|
2530
|
+
// src/ui/selectable-list/selection.hook.ts
|
|
2531
|
+
function Di(e, t = {}) {
|
|
2532
|
+
let [n, r] = R(() => new Set(t.defaultSelected)), i = L(void 0), a = Te(() => 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 } = {}) => {
|
|
2533
|
+
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);
|
|
2534
|
+
i.current = t, r((e) => {
|
|
2535
|
+
let t = new Set(e);
|
|
2536
|
+
for (let e of l) o ? t.add(e) : t.delete(e);
|
|
2537
|
+
return t;
|
|
2538
|
+
});
|
|
2539
|
+
}, [e, a]), u = F((e) => {
|
|
2540
|
+
r((t) => /* @__PURE__ */ new Set([...t, ...e]));
|
|
2541
|
+
}, []), d = F((e) => {
|
|
2542
|
+
i.current = void 0, r(new Set(e));
|
|
2543
|
+
}, []);
|
|
2544
|
+
return {
|
|
2545
|
+
ids: e,
|
|
2546
|
+
selected: a,
|
|
2547
|
+
count: o,
|
|
2548
|
+
allState: s,
|
|
2549
|
+
isSelected: c,
|
|
2550
|
+
toggle: l,
|
|
2551
|
+
add: u,
|
|
2552
|
+
set: d,
|
|
2553
|
+
selectAll: F(() => d(e), [e, d]),
|
|
2554
|
+
clear: F(() => d([]), [d])
|
|
2555
|
+
};
|
|
2556
|
+
}
|
|
2360
2557
|
// src/ui/sidebar/sidebar-context.hook.ts
|
|
2361
|
-
var
|
|
2558
|
+
var Oi = ye(null);
|
|
2362
2559
|
function Z() {
|
|
2363
|
-
let e =
|
|
2560
|
+
let e = Se(Oi);
|
|
2364
2561
|
if (!e) throw Error("A sidebar part must be inside a Sidebar.");
|
|
2365
2562
|
return e;
|
|
2366
2563
|
}
|
|
2367
2564
|
// src/ui/sidebar/sidebar.recipe.ts
|
|
2368
|
-
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",
|
|
2565
|
+
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", ki = "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", Ai = "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", ji = {
|
|
2369
2566
|
panel: {
|
|
2370
2567
|
open: "w-64 gap-2 px-1.5 py-2.5",
|
|
2371
2568
|
collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
|
|
@@ -2375,12 +2572,12 @@ var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] durat
|
|
|
2375
2572
|
collapsed: "w-14 gap-4 px-2 py-3"
|
|
2376
2573
|
}
|
|
2377
2574
|
};
|
|
2378
|
-
function
|
|
2379
|
-
let [d, f] =
|
|
2575
|
+
function Mi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
|
|
2576
|
+
let [d, f] = R(o), p = a ?? d;
|
|
2380
2577
|
function m(e) {
|
|
2381
2578
|
a === void 0 && f(e), s?.(e);
|
|
2382
2579
|
}
|
|
2383
|
-
return /* @__PURE__ */ r(
|
|
2580
|
+
return /* @__PURE__ */ r(Oi, {
|
|
2384
2581
|
value: {
|
|
2385
2582
|
collapsed: p,
|
|
2386
2583
|
setCollapsed: m,
|
|
@@ -2393,7 +2590,7 @@ function Si({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2393
2590
|
"data-variant": t,
|
|
2394
2591
|
"data-collapsed": p || void 0,
|
|
2395
2592
|
"aria-label": e,
|
|
2396
|
-
className:
|
|
2593
|
+
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 ? ji[t].collapsed : ji[t].open, c),
|
|
2397
2594
|
...u,
|
|
2398
2595
|
children: [l, t === "panel" && /* @__PURE__ */ r("span", {
|
|
2399
2596
|
"aria-hidden": "true",
|
|
@@ -2403,32 +2600,32 @@ function Si({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2403
2600
|
})
|
|
2404
2601
|
});
|
|
2405
2602
|
}
|
|
2406
|
-
function
|
|
2407
|
-
let { collapsed: n, side: a } = Z(), [o, s] =
|
|
2408
|
-
return /* @__PURE__ */ i(
|
|
2603
|
+
function Ni({ label: e, children: t }) {
|
|
2604
|
+
let { collapsed: n, side: a } = Z(), [o, s] = R(!1);
|
|
2605
|
+
return /* @__PURE__ */ i(pn, {
|
|
2409
2606
|
open: n && o,
|
|
2410
2607
|
onOpenChange: s,
|
|
2411
|
-
children: [/* @__PURE__ */ r(
|
|
2608
|
+
children: [/* @__PURE__ */ r(mn, {
|
|
2412
2609
|
asChild: !0,
|
|
2413
2610
|
children: t
|
|
2414
|
-
}), /* @__PURE__ */ r(
|
|
2611
|
+
}), /* @__PURE__ */ r(hn, {
|
|
2415
2612
|
side: a === "start" ? "right" : "left",
|
|
2416
2613
|
children: e
|
|
2417
2614
|
})]
|
|
2418
2615
|
});
|
|
2419
2616
|
}
|
|
2420
|
-
function
|
|
2617
|
+
function Pi({ className: e, ...t }) {
|
|
2421
2618
|
let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } = Z(), l = c === "nav" ? `${n ? "Expand" : "Collapse"} sidebar` : `${n ? "Show" : "Hide"} ${o.toLowerCase()}`;
|
|
2422
|
-
if (c === "nav") return /* @__PURE__ */ r(
|
|
2619
|
+
if (c === "nav") return /* @__PURE__ */ r(Ni, {
|
|
2423
2620
|
label: l,
|
|
2424
2621
|
children: /* @__PURE__ */ i("button", {
|
|
2425
2622
|
type: "button",
|
|
2426
2623
|
"aria-label": l,
|
|
2427
2624
|
"aria-expanded": !n,
|
|
2428
2625
|
onClick: () => a(!n),
|
|
2429
|
-
className:
|
|
2626
|
+
className: V(Ai, e),
|
|
2430
2627
|
...t,
|
|
2431
|
-
children: [/* @__PURE__ */ r(
|
|
2628
|
+
children: [/* @__PURE__ */ r(ue, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
|
|
2432
2629
|
"aria-hidden": "true",
|
|
2433
2630
|
className: Q,
|
|
2434
2631
|
children: "Collapse"
|
|
@@ -2436,45 +2633,45 @@ function wi({ className: e, ...t }) {
|
|
|
2436
2633
|
})
|
|
2437
2634
|
});
|
|
2438
2635
|
let u = s === "start" !== n;
|
|
2439
|
-
return /* @__PURE__ */ r(
|
|
2636
|
+
return /* @__PURE__ */ r(Y, {
|
|
2440
2637
|
variant: "ghost",
|
|
2441
2638
|
size: "icon-sm",
|
|
2442
2639
|
"aria-label": l,
|
|
2443
2640
|
"aria-expanded": !n,
|
|
2444
2641
|
title: l,
|
|
2445
2642
|
onClick: () => a(!n),
|
|
2446
|
-
className:
|
|
2643
|
+
className: V("shrink-0 text-muted-foreground", e),
|
|
2447
2644
|
...t,
|
|
2448
|
-
children: r(u ?
|
|
2645
|
+
children: r(u ? j : ie, {})
|
|
2449
2646
|
});
|
|
2450
2647
|
}
|
|
2451
|
-
function
|
|
2648
|
+
function Fi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, className: o }) {
|
|
2452
2649
|
let { collapsed: s, label: c, variant: l } = Z();
|
|
2453
2650
|
if (l === "nav") return /* @__PURE__ */ r("div", {
|
|
2454
2651
|
"data-slot": "sidebar-header",
|
|
2455
|
-
className:
|
|
2652
|
+
className: V("flex h-8 items-center", o),
|
|
2456
2653
|
children: a
|
|
2457
2654
|
});
|
|
2458
2655
|
let u = n ?? `Search ${c.toLowerCase()}`;
|
|
2459
2656
|
return /* @__PURE__ */ i("div", {
|
|
2460
2657
|
"data-slot": "sidebar-header",
|
|
2461
|
-
className:
|
|
2658
|
+
className: V("flex items-center gap-1", o),
|
|
2462
2659
|
children: [/* @__PURE__ */ i("div", {
|
|
2463
2660
|
inert: s,
|
|
2464
2661
|
className: "flex min-w-0 flex-1 items-center gap-1 transition-opacity duration-150 group-data-[collapsed]/sidebar:opacity-0 motion-reduce:transition-none",
|
|
2465
|
-
children: [t && /* @__PURE__ */ r(
|
|
2662
|
+
children: [t && /* @__PURE__ */ r(yt, {
|
|
2466
2663
|
type: "search",
|
|
2467
2664
|
value: e,
|
|
2468
2665
|
onChange: (e) => t(e.target.value),
|
|
2469
2666
|
placeholder: u,
|
|
2470
2667
|
"aria-label": u,
|
|
2471
|
-
startIcon: /* @__PURE__ */ r(
|
|
2668
|
+
startIcon: /* @__PURE__ */ r(me, {})
|
|
2472
2669
|
}), a]
|
|
2473
|
-
}), /* @__PURE__ */ r(
|
|
2670
|
+
}), /* @__PURE__ */ r(Pi, { className: "ms-auto" })]
|
|
2474
2671
|
});
|
|
2475
2672
|
}
|
|
2476
|
-
function
|
|
2477
|
-
let { label: n, variant: i } = Z(), a =
|
|
2673
|
+
function Ii({ className: e, ...t }) {
|
|
2674
|
+
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);
|
|
2478
2675
|
return i === "nav" ? /* @__PURE__ */ r("nav", {
|
|
2479
2676
|
"data-slot": "sidebar-content",
|
|
2480
2677
|
"aria-label": n,
|
|
@@ -2486,12 +2683,12 @@ function Ei({ className: e, ...t }) {
|
|
|
2486
2683
|
...t
|
|
2487
2684
|
});
|
|
2488
2685
|
}
|
|
2489
|
-
function
|
|
2686
|
+
function Li({ className: e, children: t, ...n }) {
|
|
2490
2687
|
let { collapsed: i } = Z();
|
|
2491
2688
|
return /* @__PURE__ */ r("div", {
|
|
2492
2689
|
"data-slot": "sidebar-note",
|
|
2493
2690
|
"aria-hidden": i || void 0,
|
|
2494
|
-
className:
|
|
2691
|
+
className: V(ki, e),
|
|
2495
2692
|
...n,
|
|
2496
2693
|
children: /* @__PURE__ */ r("span", {
|
|
2497
2694
|
className: "min-h-0 truncate overflow-hidden px-3 text-xs whitespace-nowrap text-muted-foreground",
|
|
@@ -2499,28 +2696,28 @@ function Di({ className: e, children: t, ...n }) {
|
|
|
2499
2696
|
})
|
|
2500
2697
|
});
|
|
2501
2698
|
}
|
|
2502
|
-
function
|
|
2699
|
+
function Ri({ className: e, ...t }) {
|
|
2503
2700
|
let { collapsed: n, variant: i } = Z();
|
|
2504
2701
|
return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
|
|
2505
2702
|
"data-slot": "sidebar-footer",
|
|
2506
|
-
className:
|
|
2703
|
+
className: V("mt-auto flex flex-col gap-2", i === "nav" && "border-t border-sidebar-border pt-3", e),
|
|
2507
2704
|
...t
|
|
2508
2705
|
});
|
|
2509
2706
|
}
|
|
2510
2707
|
// src/ui/sidebar/sidebar-group.component.tsx
|
|
2511
|
-
function
|
|
2512
|
-
let { collapsed: u, variant: d } = Z(), [f, p] =
|
|
2708
|
+
function zi({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
|
|
2709
|
+
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";
|
|
2513
2710
|
return m ? /* @__PURE__ */ i(l.Root, {
|
|
2514
2711
|
"data-slot": "sidebar-group",
|
|
2515
2712
|
open: n || u || f,
|
|
2516
2713
|
onOpenChange: p,
|
|
2517
|
-
className:
|
|
2714
|
+
className: V("flex flex-col gap-1", s),
|
|
2518
2715
|
children: [/* @__PURE__ */ i(l.Trigger, {
|
|
2519
2716
|
disabled: n,
|
|
2520
2717
|
inert: u,
|
|
2521
|
-
className:
|
|
2718
|
+
className: V("group/trigger flex w-full cursor-pointer items-center gap-1.5 rounded-sm px-[13px] py-0.5 text-start outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-default", "whitespace-nowrap transition-[translate,opacity] duration-150 ease-out group-data-[collapsed]/sidebar:translate-x-3 group-data-[collapsed]/sidebar:opacity-0 motion-reduce:transition-none"),
|
|
2522
2719
|
children: [
|
|
2523
|
-
/* @__PURE__ */ r(
|
|
2720
|
+
/* @__PURE__ */ r(re, {
|
|
2524
2721
|
"aria-hidden": "true",
|
|
2525
2722
|
className: "size-3.5 shrink-0 text-muted-foreground transition-transform duration-150 group-data-[state=open]/trigger:rotate-90 motion-reduce:transition-none"
|
|
2526
2723
|
}),
|
|
@@ -2543,16 +2740,16 @@ function ki({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collap
|
|
|
2543
2740
|
role: "group",
|
|
2544
2741
|
"aria-label": e,
|
|
2545
2742
|
"data-slot": "sidebar-group",
|
|
2546
|
-
className:
|
|
2743
|
+
className: V("flex flex-col gap-0.5", s),
|
|
2547
2744
|
children: [/* @__PURE__ */ r("span", {
|
|
2548
2745
|
"aria-hidden": "true",
|
|
2549
|
-
className:
|
|
2746
|
+
className: V("flex h-6 items-center px-3", h, Q),
|
|
2550
2747
|
children: e
|
|
2551
2748
|
}), c]
|
|
2552
2749
|
});
|
|
2553
2750
|
}
|
|
2554
2751
|
// src/ui/sidebar/sidebar-item.component.tsx
|
|
2555
|
-
function
|
|
2752
|
+
function Bi({ 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 }) {
|
|
2556
2753
|
let { collapsed: m, variant: h } = Z(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
|
|
2557
2754
|
/* @__PURE__ */ r("span", {
|
|
2558
2755
|
"aria-hidden": "true",
|
|
@@ -2564,7 +2761,7 @@ function Ai({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2564
2761
|
children: e
|
|
2565
2762
|
}),
|
|
2566
2763
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2567
|
-
className:
|
|
2764
|
+
className: V("ms-auto rounded-full bg-secondary px-1.5 text-xs text-secondary-foreground tabular-nums", Q),
|
|
2568
2765
|
children: c
|
|
2569
2766
|
})
|
|
2570
2767
|
] }) : /* @__PURE__ */ i(n, { children: [
|
|
@@ -2574,11 +2771,11 @@ function Ai({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2574
2771
|
children: a
|
|
2575
2772
|
}) : /* @__PURE__ */ r("span", {
|
|
2576
2773
|
"aria-hidden": "true",
|
|
2577
|
-
className:
|
|
2774
|
+
className: V("h-6 w-2.5 shrink-0 rounded-[3px]", o ? G[o] : ""),
|
|
2578
2775
|
style: o ? void 0 : { background: s }
|
|
2579
2776
|
}),
|
|
2580
2777
|
/* @__PURE__ */ i("span", {
|
|
2581
|
-
className:
|
|
2778
|
+
className: V("flex flex-col", Q),
|
|
2582
2779
|
children: [/* @__PURE__ */ r("span", {
|
|
2583
2780
|
className: "truncate text-[13px] font-medium",
|
|
2584
2781
|
children: e
|
|
@@ -2588,51 +2785,51 @@ function Ai({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2588
2785
|
})]
|
|
2589
2786
|
}),
|
|
2590
2787
|
c !== void 0 && /* @__PURE__ */ r("span", {
|
|
2591
|
-
className:
|
|
2788
|
+
className: V("ms-auto text-[11px] text-muted-foreground tabular-nums", Q),
|
|
2592
2789
|
children: c
|
|
2593
2790
|
})
|
|
2594
|
-
] }), v = h === "nav" ?
|
|
2791
|
+
] }), v = h === "nav" ? V(Ai, 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 = {
|
|
2595
2792
|
"data-slot": "sidebar-item",
|
|
2596
2793
|
"aria-current": g,
|
|
2597
2794
|
"aria-label": m ? e : void 0,
|
|
2598
2795
|
className: v
|
|
2599
|
-
}, b = u &&
|
|
2796
|
+
}, b = u && be(f) ? /* @__PURE__ */ r(C.Root, {
|
|
2600
2797
|
...y,
|
|
2601
2798
|
...p,
|
|
2602
|
-
children:
|
|
2799
|
+
children: Vi(f, _)
|
|
2603
2800
|
}) : /* @__PURE__ */ r("button", {
|
|
2604
2801
|
type: "button",
|
|
2605
2802
|
...y,
|
|
2606
2803
|
...p,
|
|
2607
2804
|
children: _
|
|
2608
2805
|
});
|
|
2609
|
-
return /* @__PURE__ */ r(
|
|
2806
|
+
return /* @__PURE__ */ r(Ni, {
|
|
2610
2807
|
label: e,
|
|
2611
2808
|
children: b
|
|
2612
2809
|
});
|
|
2613
2810
|
}
|
|
2614
|
-
function
|
|
2615
|
-
return
|
|
2811
|
+
function Vi(e, t) {
|
|
2812
|
+
return ve(e, void 0, t);
|
|
2616
2813
|
}
|
|
2617
2814
|
// src/ui/sidebar/sidebar-sheet.component.tsx
|
|
2618
|
-
function
|
|
2619
|
-
return /* @__PURE__ */ i(
|
|
2815
|
+
function Hi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
|
|
2816
|
+
return /* @__PURE__ */ i(an, {
|
|
2620
2817
|
open: a,
|
|
2621
2818
|
onOpenChange: o,
|
|
2622
|
-
children: [/* @__PURE__ */ r(
|
|
2819
|
+
children: [/* @__PURE__ */ r(on, {
|
|
2623
2820
|
asChild: !0,
|
|
2624
|
-
children: /* @__PURE__ */ r(
|
|
2821
|
+
children: /* @__PURE__ */ r(Y, {
|
|
2625
2822
|
variant: "ghost",
|
|
2626
2823
|
size: "icon",
|
|
2627
2824
|
"aria-label": `Show ${e.toLowerCase()}`,
|
|
2628
2825
|
className: s,
|
|
2629
|
-
children: /* @__PURE__ */ r(
|
|
2826
|
+
children: /* @__PURE__ */ r(ue, {})
|
|
2630
2827
|
})
|
|
2631
|
-
}), /* @__PURE__ */ i(
|
|
2828
|
+
}), /* @__PURE__ */ i(dn, {
|
|
2632
2829
|
"data-slot": "sidebar-sheet",
|
|
2633
2830
|
side: n,
|
|
2634
2831
|
className: "d-mob w-[min(320px,86vw)] gap-0 p-0 [&>[data-slot=sidebar]]:border-0",
|
|
2635
|
-
children: [/* @__PURE__ */ r(
|
|
2832
|
+
children: [/* @__PURE__ */ r(cn, {
|
|
2636
2833
|
className: "sr-only",
|
|
2637
2834
|
children: e
|
|
2638
2835
|
}), t]
|
|
@@ -2640,15 +2837,15 @@ function Mi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
2640
2837
|
});
|
|
2641
2838
|
}
|
|
2642
2839
|
// src/product/product-switcher.component.tsx
|
|
2643
|
-
function
|
|
2644
|
-
return /* @__PURE__ */ i(
|
|
2840
|
+
function Ui({ product: e, workspace: t, products: n = Ke, onProductChange: a, className: o }) {
|
|
2841
|
+
return /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
2645
2842
|
asChild: !0,
|
|
2646
|
-
children: /* @__PURE__ */ i(
|
|
2843
|
+
children: /* @__PURE__ */ i(Y, {
|
|
2647
2844
|
variant: "ghost",
|
|
2648
|
-
className:
|
|
2649
|
-
"aria-label": `${
|
|
2845
|
+
className: V("h-12 w-full justify-start gap-2.5 px-2", o),
|
|
2846
|
+
"aria-label": `${H[e].name}, switch product`,
|
|
2650
2847
|
children: [
|
|
2651
|
-
/* @__PURE__ */ r(
|
|
2848
|
+
/* @__PURE__ */ r(U, {
|
|
2652
2849
|
product: e,
|
|
2653
2850
|
alt: "",
|
|
2654
2851
|
className: "size-7"
|
|
@@ -2657,41 +2854,41 @@ function Ni({ product: e, workspace: t, products: n = Ke, onProductChange: a, cl
|
|
|
2657
2854
|
className: "flex min-w-0 flex-col items-start leading-tight",
|
|
2658
2855
|
children: [/* @__PURE__ */ r("span", {
|
|
2659
2856
|
className: "font-display text-[17px] font-extrabold italic text-brand-text",
|
|
2660
|
-
children:
|
|
2857
|
+
children: H[e].name
|
|
2661
2858
|
}), t && /* @__PURE__ */ r("span", {
|
|
2662
2859
|
className: "truncate text-xs font-normal text-muted-foreground",
|
|
2663
2860
|
children: t
|
|
2664
2861
|
})]
|
|
2665
2862
|
}),
|
|
2666
|
-
/* @__PURE__ */ r(
|
|
2863
|
+
/* @__PURE__ */ r(ae, {
|
|
2667
2864
|
className: "ms-auto text-muted-foreground",
|
|
2668
2865
|
"aria-hidden": "true"
|
|
2669
2866
|
})
|
|
2670
2867
|
]
|
|
2671
2868
|
})
|
|
2672
|
-
}), /* @__PURE__ */ i(
|
|
2869
|
+
}), /* @__PURE__ */ i(zn, {
|
|
2673
2870
|
align: "start",
|
|
2674
2871
|
className: "w-60",
|
|
2675
|
-
children: [/* @__PURE__ */ r(
|
|
2872
|
+
children: [/* @__PURE__ */ r(Hn, { children: "Products" }), /* @__PURE__ */ r(Rn, {
|
|
2676
2873
|
value: e,
|
|
2677
2874
|
onValueChange: (e) => a?.(e),
|
|
2678
|
-
children: n.map((e) => /* @__PURE__ */ i(
|
|
2875
|
+
children: n.map((e) => /* @__PURE__ */ i(Vn, {
|
|
2679
2876
|
value: e,
|
|
2680
|
-
children: [/* @__PURE__ */ r(
|
|
2877
|
+
children: [/* @__PURE__ */ r(U, {
|
|
2681
2878
|
product: e,
|
|
2682
2879
|
alt: "",
|
|
2683
2880
|
className: "size-4"
|
|
2684
|
-
}),
|
|
2881
|
+
}), H[e].name]
|
|
2685
2882
|
}, e))
|
|
2686
2883
|
})]
|
|
2687
2884
|
})] });
|
|
2688
2885
|
}
|
|
2689
2886
|
// src/product/sidebar-brand.component.tsx
|
|
2690
|
-
function
|
|
2691
|
-
let { collapsed: a, setCollapsed: o } = Z(), s =
|
|
2887
|
+
function Wi({ product: e, badge: t, className: n }) {
|
|
2888
|
+
let { collapsed: a, setCollapsed: o } = Z(), s = H[e].name;
|
|
2692
2889
|
return /* @__PURE__ */ i("div", {
|
|
2693
2890
|
"data-slot": "sidebar-brand",
|
|
2694
|
-
className:
|
|
2891
|
+
className: V("flex h-8 items-center", n),
|
|
2695
2892
|
children: [
|
|
2696
2893
|
/* @__PURE__ */ r("button", {
|
|
2697
2894
|
type: "button",
|
|
@@ -2699,26 +2896,26 @@ function Pi({ product: e, badge: t, className: n }) {
|
|
|
2699
2896
|
"aria-expanded": !a,
|
|
2700
2897
|
onClick: () => o(!a),
|
|
2701
2898
|
className: "grid size-10 shrink-0 cursor-pointer place-items-center rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
2702
|
-
children: /* @__PURE__ */ r(
|
|
2899
|
+
children: /* @__PURE__ */ r(U, {
|
|
2703
2900
|
product: e,
|
|
2704
2901
|
alt: "",
|
|
2705
|
-
className:
|
|
2902
|
+
className: V("size-6 transition-transform duration-300 ease-emphasised motion-reduce:transition-none", a && "rotate-120")
|
|
2706
2903
|
})
|
|
2707
2904
|
}),
|
|
2708
2905
|
/* @__PURE__ */ r("span", {
|
|
2709
|
-
className:
|
|
2906
|
+
className: V("ms-1 font-display text-lg font-extrabold text-brand-text italic", Q),
|
|
2710
2907
|
children: s
|
|
2711
2908
|
}),
|
|
2712
2909
|
t && /* @__PURE__ */ r("span", {
|
|
2713
|
-
className:
|
|
2910
|
+
className: V("ms-2 rounded-full bg-warning-soft px-2 text-xs font-medium text-warning", Q),
|
|
2714
2911
|
children: t
|
|
2715
2912
|
})
|
|
2716
2913
|
]
|
|
2717
2914
|
});
|
|
2718
2915
|
}
|
|
2719
2916
|
// src/app/command-shortcut.hook.ts
|
|
2720
|
-
function
|
|
2721
|
-
|
|
2917
|
+
function Gi(e, t = !0) {
|
|
2918
|
+
I(() => {
|
|
2722
2919
|
if (!t) return;
|
|
2723
2920
|
function n(t) {
|
|
2724
2921
|
t.key.toLowerCase() === "k" && (t.metaKey || t.ctrlKey) && (t.preventDefault(), e());
|
|
@@ -2726,42 +2923,42 @@ function Fi(e, t = !0) {
|
|
|
2726
2923
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
2727
2924
|
}, [e, t]);
|
|
2728
2925
|
}
|
|
2729
|
-
function
|
|
2926
|
+
function Ki(e) {
|
|
2730
2927
|
return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
|
|
2731
2928
|
}
|
|
2732
|
-
function
|
|
2733
|
-
function
|
|
2734
|
-
return
|
|
2929
|
+
function qi() {}
|
|
2930
|
+
function Ji() {
|
|
2931
|
+
return qi;
|
|
2735
2932
|
}
|
|
2736
|
-
function
|
|
2933
|
+
function Yi() {
|
|
2737
2934
|
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
2738
2935
|
}
|
|
2739
|
-
function
|
|
2936
|
+
function Xi() {
|
|
2740
2937
|
return "";
|
|
2741
2938
|
}
|
|
2742
|
-
function
|
|
2743
|
-
return
|
|
2939
|
+
function Zi() {
|
|
2940
|
+
return Ki(Ee(Ji, Yi, Xi));
|
|
2744
2941
|
}
|
|
2745
2942
|
// src/app/app-shell.component.tsx
|
|
2746
|
-
var
|
|
2747
|
-
function
|
|
2943
|
+
var Qi = "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";
|
|
2944
|
+
function $i({ children: e, className: t }) {
|
|
2748
2945
|
return /* @__PURE__ */ r("div", {
|
|
2749
2946
|
"data-slot": "app-shell-header",
|
|
2750
|
-
className:
|
|
2947
|
+
className: V("shrink-0 border-b px-6 py-4", t),
|
|
2751
2948
|
children: e
|
|
2752
2949
|
});
|
|
2753
2950
|
}
|
|
2754
|
-
function
|
|
2951
|
+
function ea({ children: e, className: t }) {
|
|
2755
2952
|
return /* @__PURE__ */ r("div", {
|
|
2756
2953
|
"data-slot": "app-shell-body",
|
|
2757
|
-
className:
|
|
2954
|
+
className: V("flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0", t),
|
|
2758
2955
|
children: e
|
|
2759
2956
|
});
|
|
2760
2957
|
}
|
|
2761
|
-
function
|
|
2762
|
-
let [v, y] =
|
|
2763
|
-
|
|
2764
|
-
let x =
|
|
2958
|
+
function ta({ 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: _ }) {
|
|
2959
|
+
let [v, y] = R(!1), b = F(() => y(!0), []);
|
|
2960
|
+
Gi(b, !!h?.length);
|
|
2961
|
+
let x = Zi(), ee = [...new Set(h?.map((e) => e.group))], S = (e) => /* @__PURE__ */ r(Bi, {
|
|
2765
2962
|
asChild: !0,
|
|
2766
2963
|
title: e.label,
|
|
2767
2964
|
icon: e.icon,
|
|
@@ -2772,20 +2969,20 @@ function Gi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2772
2969
|
children: e.label
|
|
2773
2970
|
})
|
|
2774
2971
|
}, e.href), C = /* @__PURE__ */ i(n, { children: [
|
|
2775
|
-
/* @__PURE__ */ r(
|
|
2972
|
+
/* @__PURE__ */ r(Fi, {
|
|
2776
2973
|
className: "h-12",
|
|
2777
|
-
children: t === "logo" ? /* @__PURE__ */ r(
|
|
2974
|
+
children: t === "logo" ? /* @__PURE__ */ r(Wi, { product: e }) : /* @__PURE__ */ r(Ui, {
|
|
2778
2975
|
product: e,
|
|
2779
2976
|
workspace: a,
|
|
2780
2977
|
onProductChange: o,
|
|
2781
2978
|
className: "px-2.5"
|
|
2782
2979
|
})
|
|
2783
2980
|
}),
|
|
2784
|
-
/* @__PURE__ */ i(
|
|
2785
|
-
h?.length ? /* @__PURE__ */ r(
|
|
2981
|
+
/* @__PURE__ */ i(Ii, { children: [
|
|
2982
|
+
h?.length ? /* @__PURE__ */ r(Bi, {
|
|
2786
2983
|
title: "Search",
|
|
2787
|
-
icon: /* @__PURE__ */ r(
|
|
2788
|
-
badge: /* @__PURE__ */ r(
|
|
2984
|
+
icon: /* @__PURE__ */ r(me, {}),
|
|
2985
|
+
badge: /* @__PURE__ */ r(wr, {
|
|
2789
2986
|
className: "border-0 bg-transparent",
|
|
2790
2987
|
children: x
|
|
2791
2988
|
}),
|
|
@@ -2795,12 +2992,12 @@ function Gi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2795
2992
|
className: "flex flex-col gap-0.5",
|
|
2796
2993
|
children: s.map((e) => S(e))
|
|
2797
2994
|
}),
|
|
2798
|
-
c && /* @__PURE__ */ r(
|
|
2995
|
+
c && /* @__PURE__ */ r(zi, {
|
|
2799
2996
|
title: c.title,
|
|
2800
2997
|
children: c.items.map((e) => S(e))
|
|
2801
2998
|
})
|
|
2802
2999
|
] }),
|
|
2803
|
-
/* @__PURE__ */ i(
|
|
3000
|
+
/* @__PURE__ */ i(Ri, { children: [
|
|
2804
3001
|
l && /* @__PURE__ */ r("div", {
|
|
2805
3002
|
className: Q,
|
|
2806
3003
|
children: l
|
|
@@ -2808,7 +3005,7 @@ function Gi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2808
3005
|
d && /* @__PURE__ */ i("div", {
|
|
2809
3006
|
className: "flex items-center gap-2.5 px-1",
|
|
2810
3007
|
children: [/* @__PURE__ */ r($e, { children: /* @__PURE__ */ r(tt, { children: d.initials }) }), /* @__PURE__ */ i("span", {
|
|
2811
|
-
className:
|
|
3008
|
+
className: V("flex flex-col leading-tight", Q),
|
|
2812
3009
|
children: [/* @__PURE__ */ r("span", {
|
|
2813
3010
|
className: "text-[13px] font-semibold",
|
|
2814
3011
|
children: d.name
|
|
@@ -2818,15 +3015,15 @@ function Gi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2818
3015
|
})]
|
|
2819
3016
|
})]
|
|
2820
3017
|
}),
|
|
2821
|
-
/* @__PURE__ */ r(
|
|
2822
|
-
u && /* @__PURE__ */ r(
|
|
3018
|
+
/* @__PURE__ */ r(Pi, {}),
|
|
3019
|
+
u && /* @__PURE__ */ r(Li, { children: u })
|
|
2823
3020
|
] })
|
|
2824
3021
|
] });
|
|
2825
3022
|
return /* @__PURE__ */ i("div", {
|
|
2826
3023
|
"data-slot": "app-shell",
|
|
2827
|
-
className:
|
|
3024
|
+
className: V("flex h-dvh overflow-hidden bg-background", _),
|
|
2828
3025
|
children: [
|
|
2829
|
-
/* @__PURE__ */ r(
|
|
3026
|
+
/* @__PURE__ */ r(Mi, {
|
|
2830
3027
|
variant: "nav",
|
|
2831
3028
|
label: "Workspace",
|
|
2832
3029
|
className: "h-dvh max-md:hidden",
|
|
@@ -2837,12 +3034,12 @@ function Gi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2837
3034
|
children: [
|
|
2838
3035
|
/* @__PURE__ */ i("div", {
|
|
2839
3036
|
"data-slot": "app-top-bar",
|
|
2840
|
-
className:
|
|
3037
|
+
className: V("flex h-14 shrink-0 flex-wrap items-center gap-3 border-b px-6", !f && !p && "md:hidden"),
|
|
2841
3038
|
children: [
|
|
2842
|
-
/* @__PURE__ */ r(
|
|
3039
|
+
/* @__PURE__ */ r(Hi, {
|
|
2843
3040
|
label: "Workspace",
|
|
2844
3041
|
className: "-ms-2 md:hidden",
|
|
2845
|
-
children: /* @__PURE__ */ r(
|
|
3042
|
+
children: /* @__PURE__ */ r(Mi, {
|
|
2846
3043
|
variant: "nav",
|
|
2847
3044
|
label: "Workspace",
|
|
2848
3045
|
collapsed: !1,
|
|
@@ -2859,7 +3056,7 @@ function Gi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2859
3056
|
}),
|
|
2860
3057
|
/* @__PURE__ */ r("main", {
|
|
2861
3058
|
"data-slot": "app-shell-page",
|
|
2862
|
-
className:
|
|
3059
|
+
className: Qi,
|
|
2863
3060
|
children: g
|
|
2864
3061
|
}),
|
|
2865
3062
|
m && /* @__PURE__ */ r("footer", {
|
|
@@ -2870,12 +3067,12 @@ function Gi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2870
3067
|
})
|
|
2871
3068
|
]
|
|
2872
3069
|
}),
|
|
2873
|
-
h?.length ? /* @__PURE__ */ i(
|
|
3070
|
+
h?.length ? /* @__PURE__ */ i(xn, {
|
|
2874
3071
|
open: v,
|
|
2875
3072
|
onOpenChange: y,
|
|
2876
|
-
children: [/* @__PURE__ */ r(
|
|
3073
|
+
children: [/* @__PURE__ */ r(Sn, { placeholder: "Search recipes, runs and settings" }), /* @__PURE__ */ i(Cn, { children: [/* @__PURE__ */ r(wn, { children: "No results." }), ee.map((e) => /* @__PURE__ */ r(Tn, {
|
|
2877
3074
|
heading: e,
|
|
2878
|
-
children: h.filter((t) => t.group === e).map((e) => /* @__PURE__ */ r(
|
|
3075
|
+
children: h.filter((t) => t.group === e).map((e) => /* @__PURE__ */ r(En, {
|
|
2879
3076
|
onSelect: () => {
|
|
2880
3077
|
y(!1), e.onSelect();
|
|
2881
3078
|
},
|
|
@@ -2887,21 +3084,21 @@ function Gi({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
2887
3084
|
});
|
|
2888
3085
|
}
|
|
2889
3086
|
// src/app/filter-bar.component.tsx
|
|
2890
|
-
function
|
|
3087
|
+
function na({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
|
|
2891
3088
|
return /* @__PURE__ */ i("div", {
|
|
2892
3089
|
"data-slot": "filter-bar",
|
|
2893
3090
|
role: "search",
|
|
2894
|
-
className:
|
|
3091
|
+
className: V("flex flex-wrap items-center gap-2 border-b p-3", s),
|
|
2895
3092
|
children: [
|
|
2896
3093
|
/* @__PURE__ */ r("div", {
|
|
2897
3094
|
className: "max-w-80 flex-[1_1_220px]",
|
|
2898
|
-
children: /* @__PURE__ */ r(
|
|
3095
|
+
children: /* @__PURE__ */ r(yt, {
|
|
2899
3096
|
type: "search",
|
|
2900
3097
|
value: e,
|
|
2901
3098
|
onChange: (e) => t(e.target.value),
|
|
2902
3099
|
placeholder: n,
|
|
2903
3100
|
"aria-label": n,
|
|
2904
|
-
startIcon: /* @__PURE__ */ r(
|
|
3101
|
+
startIcon: /* @__PURE__ */ r(me, {})
|
|
2905
3102
|
})
|
|
2906
3103
|
}),
|
|
2907
3104
|
a,
|
|
@@ -2912,16 +3109,16 @@ function Ki({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
2912
3109
|
]
|
|
2913
3110
|
});
|
|
2914
3111
|
}
|
|
2915
|
-
function
|
|
2916
|
-
return /* @__PURE__ */ i(
|
|
3112
|
+
function ra({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
3113
|
+
return /* @__PURE__ */ i(Y, {
|
|
2917
3114
|
variant: "outline",
|
|
2918
3115
|
size: "sm",
|
|
2919
|
-
className:
|
|
3116
|
+
className: V("border-dashed", a),
|
|
2920
3117
|
...o,
|
|
2921
3118
|
children: [
|
|
2922
|
-
n ?? /* @__PURE__ */ r(
|
|
3119
|
+
n ?? /* @__PURE__ */ r(pe, {}),
|
|
2923
3120
|
e,
|
|
2924
|
-
t > 0 && /* @__PURE__ */ r(
|
|
3121
|
+
t > 0 && /* @__PURE__ */ r(q, {
|
|
2925
3122
|
variant: "brand",
|
|
2926
3123
|
className: "h-[18px]",
|
|
2927
3124
|
"aria-label": `${t} selected`,
|
|
@@ -2931,10 +3128,10 @@ function qi({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
|
2931
3128
|
});
|
|
2932
3129
|
}
|
|
2933
3130
|
// src/app/form-section.component.tsx
|
|
2934
|
-
function
|
|
3131
|
+
function ia({ title: e, description: t, children: n, actions: a, className: o }) {
|
|
2935
3132
|
return /* @__PURE__ */ i("section", {
|
|
2936
3133
|
"data-slot": "form-section",
|
|
2937
|
-
className:
|
|
3134
|
+
className: V("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
|
|
2938
3135
|
children: [/* @__PURE__ */ i("div", {
|
|
2939
3136
|
className: "flex flex-col gap-1",
|
|
2940
3137
|
children: [/* @__PURE__ */ r("h2", {
|
|
@@ -2957,10 +3154,10 @@ function Ji({ title: e, description: t, children: n, actions: a, className: o })
|
|
|
2957
3154
|
});
|
|
2958
3155
|
}
|
|
2959
3156
|
// src/app/page-header.component.tsx
|
|
2960
|
-
function
|
|
3157
|
+
function aa({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
2961
3158
|
return /* @__PURE__ */ i("div", {
|
|
2962
3159
|
"data-slot": "page-header",
|
|
2963
|
-
className:
|
|
3160
|
+
className: V("flex flex-col gap-4", o),
|
|
2964
3161
|
children: [/* @__PURE__ */ i("div", {
|
|
2965
3162
|
className: "flex flex-wrap items-end gap-4",
|
|
2966
3163
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -2980,7 +3177,7 @@ function Yi({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
|
2980
3177
|
});
|
|
2981
3178
|
}
|
|
2982
3179
|
// src/app/records-table.component.tsx
|
|
2983
|
-
function
|
|
3180
|
+
function oa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
|
|
2984
3181
|
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";
|
|
2985
3182
|
function m(e, t) {
|
|
2986
3183
|
let n = new Set(a);
|
|
@@ -2991,14 +3188,14 @@ function Xi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
2991
3188
|
for (let n of d) e ? t.add(n) : t.delete(n);
|
|
2992
3189
|
o?.(t);
|
|
2993
3190
|
}
|
|
2994
|
-
return /* @__PURE__ */ i(
|
|
3191
|
+
return /* @__PURE__ */ i(jr, {
|
|
2995
3192
|
"data-slot": "records-table",
|
|
2996
3193
|
"aria-label": c,
|
|
2997
|
-
className:
|
|
2998
|
-
children: [/* @__PURE__ */ r(
|
|
3194
|
+
className: V("min-w-[760px]", l),
|
|
3195
|
+
children: [/* @__PURE__ */ r(Mr, { children: /* @__PURE__ */ i(Pr, {
|
|
2999
3196
|
className: "hover:bg-transparent",
|
|
3000
3197
|
children: [
|
|
3001
|
-
u && /* @__PURE__ */ r(
|
|
3198
|
+
u && /* @__PURE__ */ r(Fr, {
|
|
3002
3199
|
className: "w-9",
|
|
3003
3200
|
children: /* @__PURE__ */ r(it, {
|
|
3004
3201
|
"aria-label": "Select all rows",
|
|
@@ -3006,11 +3203,11 @@ function Xi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3006
3203
|
onCheckedChange: (e) => h(e === !0)
|
|
3007
3204
|
})
|
|
3008
3205
|
}),
|
|
3009
|
-
t.map((e) => /* @__PURE__ */ r(
|
|
3010
|
-
className:
|
|
3206
|
+
t.map((e) => /* @__PURE__ */ r(Fr, {
|
|
3207
|
+
className: V(e.align === "end" && "text-end", e.className),
|
|
3011
3208
|
children: e.header
|
|
3012
3209
|
}, e.key)),
|
|
3013
|
-
s && /* @__PURE__ */ r(
|
|
3210
|
+
s && /* @__PURE__ */ r(Fr, {
|
|
3014
3211
|
className: "w-11",
|
|
3015
3212
|
children: /* @__PURE__ */ r("span", {
|
|
3016
3213
|
className: "sr-only",
|
|
@@ -3018,29 +3215,29 @@ function Xi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3018
3215
|
})
|
|
3019
3216
|
})
|
|
3020
3217
|
]
|
|
3021
|
-
}) }), /* @__PURE__ */ r(
|
|
3218
|
+
}) }), /* @__PURE__ */ r(Nr, { children: e.map((e) => {
|
|
3022
3219
|
let o = n(e), c = a?.has(o) ?? !1;
|
|
3023
|
-
return /* @__PURE__ */ i(
|
|
3220
|
+
return /* @__PURE__ */ i(Pr, {
|
|
3024
3221
|
"data-state": c ? "selected" : void 0,
|
|
3025
3222
|
children: [
|
|
3026
|
-
u && /* @__PURE__ */ r(
|
|
3223
|
+
u && /* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ r(it, {
|
|
3027
3224
|
"aria-label": `Select ${o}`,
|
|
3028
3225
|
checked: c,
|
|
3029
3226
|
onCheckedChange: (e) => m(o, e === !0)
|
|
3030
3227
|
}) }),
|
|
3031
|
-
t.map((t) => /* @__PURE__ */ r(
|
|
3032
|
-
className:
|
|
3228
|
+
t.map((t) => /* @__PURE__ */ r(Ir, {
|
|
3229
|
+
className: V(t.align === "end" && "text-end tabular-nums", t.className),
|
|
3033
3230
|
children: t.cell(e)
|
|
3034
3231
|
}, t.key)),
|
|
3035
|
-
s && /* @__PURE__ */ r(
|
|
3232
|
+
s && /* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
3036
3233
|
asChild: !0,
|
|
3037
|
-
children: /* @__PURE__ */ r(
|
|
3234
|
+
children: /* @__PURE__ */ r(Y, {
|
|
3038
3235
|
variant: "ghost",
|
|
3039
3236
|
size: "icon-sm",
|
|
3040
3237
|
"aria-label": `Actions for ${o}`,
|
|
3041
|
-
children: /* @__PURE__ */ r(
|
|
3238
|
+
children: /* @__PURE__ */ r(se, {})
|
|
3042
3239
|
})
|
|
3043
|
-
}), /* @__PURE__ */ r(
|
|
3240
|
+
}), /* @__PURE__ */ r(zn, {
|
|
3044
3241
|
align: "end",
|
|
3045
3242
|
children: s(e)
|
|
3046
3243
|
})] }) })
|
|
@@ -3050,7 +3247,7 @@ function Xi({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3050
3247
|
});
|
|
3051
3248
|
}
|
|
3052
3249
|
// src/app/sparkline.algorithm.ts
|
|
3053
|
-
function
|
|
3250
|
+
function sa(e, t, n, r = 2) {
|
|
3054
3251
|
if (e.length < 2) return "";
|
|
3055
3252
|
let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
|
|
3056
3253
|
return e.map((e, t) => {
|
|
@@ -3059,16 +3256,16 @@ function Zi(e, t, n, r = 2) {
|
|
|
3059
3256
|
}).join(" ");
|
|
3060
3257
|
}
|
|
3061
3258
|
// src/app/stat-card.component.tsx
|
|
3062
|
-
var
|
|
3259
|
+
var ca = {
|
|
3063
3260
|
positive: "text-success",
|
|
3064
3261
|
negative: "text-destructive",
|
|
3065
3262
|
neutral: "text-muted-foreground"
|
|
3066
3263
|
};
|
|
3067
|
-
function
|
|
3068
|
-
let c = o ?
|
|
3069
|
-
return /* @__PURE__ */ i(
|
|
3264
|
+
function la({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
|
|
3265
|
+
let c = o ? sa(o, 100, 32) : "";
|
|
3266
|
+
return /* @__PURE__ */ i(vr, {
|
|
3070
3267
|
"data-slot": "stat-card",
|
|
3071
|
-
className:
|
|
3268
|
+
className: V("gap-1.5 p-4", s),
|
|
3072
3269
|
children: [
|
|
3073
3270
|
/* @__PURE__ */ r("span", {
|
|
3074
3271
|
className: "text-[13px] text-muted-foreground",
|
|
@@ -3097,14 +3294,14 @@ function $i({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
|
|
|
3097
3294
|
})]
|
|
3098
3295
|
}),
|
|
3099
3296
|
n && /* @__PURE__ */ r("span", {
|
|
3100
|
-
className:
|
|
3297
|
+
className: V("text-xs", ca[a]),
|
|
3101
3298
|
children: n
|
|
3102
3299
|
})
|
|
3103
3300
|
]
|
|
3104
3301
|
});
|
|
3105
3302
|
}
|
|
3106
3303
|
// src/status/run-status.contract.ts
|
|
3107
|
-
var
|
|
3304
|
+
var ua = [
|
|
3108
3305
|
"queued",
|
|
3109
3306
|
"waiting",
|
|
3110
3307
|
"running",
|
|
@@ -3112,7 +3309,7 @@ var ea = [
|
|
|
3112
3309
|
"no-records",
|
|
3113
3310
|
"failed",
|
|
3114
3311
|
"off"
|
|
3115
|
-
],
|
|
3312
|
+
], da = {
|
|
3116
3313
|
queued: {
|
|
3117
3314
|
label: "Queued",
|
|
3118
3315
|
variant: "secondary",
|
|
@@ -3149,13 +3346,13 @@ var ea = [
|
|
|
3149
3346
|
live: !1
|
|
3150
3347
|
}
|
|
3151
3348
|
};
|
|
3152
|
-
function
|
|
3153
|
-
return
|
|
3349
|
+
function fa(e) {
|
|
3350
|
+
return da[e];
|
|
3154
3351
|
}
|
|
3155
3352
|
// src/status/status-badge.component.tsx
|
|
3156
|
-
function
|
|
3157
|
-
let { label: n, variant: i, live: a } =
|
|
3158
|
-
return /* @__PURE__ */ r(
|
|
3353
|
+
function pa({ status: e, ...t }) {
|
|
3354
|
+
let { label: n, variant: i, live: a } = fa(e);
|
|
3355
|
+
return /* @__PURE__ */ r(q, {
|
|
3159
3356
|
variant: i,
|
|
3160
3357
|
dot: a,
|
|
3161
3358
|
"data-status": e,
|
|
@@ -3164,25 +3361,25 @@ function ra({ status: e, ...t }) {
|
|
|
3164
3361
|
});
|
|
3165
3362
|
}
|
|
3166
3363
|
// src/desktop/flow-node.component.tsx
|
|
3167
|
-
function
|
|
3364
|
+
function ma({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
|
|
3168
3365
|
return /* @__PURE__ */ i("button", {
|
|
3169
3366
|
type: "button",
|
|
3170
3367
|
"data-slot": "flow-node",
|
|
3171
3368
|
"aria-pressed": o,
|
|
3172
3369
|
onClick: s,
|
|
3173
|
-
className:
|
|
3370
|
+
className: V("flex w-[200px] cursor-pointer flex-col rounded-lg bg-card text-start text-[13px] text-card-foreground shadow-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", o ? "border-2 border-brand" : "border", c),
|
|
3174
3371
|
children: [/* @__PURE__ */ i("span", {
|
|
3175
3372
|
className: "flex items-center gap-2 border-b px-2.5 py-2",
|
|
3176
3373
|
children: [
|
|
3177
3374
|
/* @__PURE__ */ r("span", {
|
|
3178
3375
|
"aria-hidden": "true",
|
|
3179
|
-
className:
|
|
3376
|
+
className: V("size-2 shrink-0 rounded-[2px]", a ? G[a] : "bg-muted-foreground")
|
|
3180
3377
|
}),
|
|
3181
3378
|
/* @__PURE__ */ r("span", {
|
|
3182
3379
|
className: "font-semibold",
|
|
3183
3380
|
children: e
|
|
3184
3381
|
}),
|
|
3185
|
-
/* @__PURE__ */ r(
|
|
3382
|
+
/* @__PURE__ */ r(pa, {
|
|
3186
3383
|
status: n,
|
|
3187
3384
|
className: "ms-auto h-[18px] text-[11px]"
|
|
3188
3385
|
})
|
|
@@ -3194,18 +3391,18 @@ function ia({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3194
3391
|
});
|
|
3195
3392
|
}
|
|
3196
3393
|
// src/desktop/inspector.component.tsx
|
|
3197
|
-
function
|
|
3394
|
+
function ha({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
|
|
3198
3395
|
return /* @__PURE__ */ i("aside", {
|
|
3199
3396
|
"data-slot": "inspector",
|
|
3200
3397
|
"aria-label": "Inspector",
|
|
3201
|
-
className:
|
|
3398
|
+
className: V("flex h-full flex-col text-[13px]", s),
|
|
3202
3399
|
children: [
|
|
3203
3400
|
/* @__PURE__ */ i("div", {
|
|
3204
3401
|
className: "flex items-center gap-2 border-b p-3",
|
|
3205
3402
|
children: [
|
|
3206
3403
|
n && /* @__PURE__ */ r("span", {
|
|
3207
3404
|
"aria-hidden": "true",
|
|
3208
|
-
className:
|
|
3405
|
+
className: V("size-2.5 shrink-0 rounded-[3px]", G[n])
|
|
3209
3406
|
}),
|
|
3210
3407
|
/* @__PURE__ */ r("h2", {
|
|
3211
3408
|
className: "m-0 type-h4",
|
|
@@ -3217,18 +3414,18 @@ function aa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3217
3414
|
})
|
|
3218
3415
|
]
|
|
3219
3416
|
}),
|
|
3220
|
-
/* @__PURE__ */ i(
|
|
3417
|
+
/* @__PURE__ */ i(ui, {
|
|
3221
3418
|
defaultValue: a[0]?.value,
|
|
3222
3419
|
className: "min-h-0 flex-1 gap-0",
|
|
3223
|
-
children: [/* @__PURE__ */ r(
|
|
3420
|
+
children: [/* @__PURE__ */ r(pi, {
|
|
3224
3421
|
variant: "underline",
|
|
3225
3422
|
className: "gap-4 px-3",
|
|
3226
|
-
children: a.map((e) => /* @__PURE__ */ r(
|
|
3423
|
+
children: a.map((e) => /* @__PURE__ */ r(hi, {
|
|
3227
3424
|
value: e.value,
|
|
3228
3425
|
className: "text-[13px] group-data-[variant=underline]/tabs-list:py-2",
|
|
3229
3426
|
children: e.label
|
|
3230
3427
|
}, e.value))
|
|
3231
|
-
}), a.map((e) => /* @__PURE__ */ r(
|
|
3428
|
+
}), a.map((e) => /* @__PURE__ */ r(gi, {
|
|
3232
3429
|
value: e.value,
|
|
3233
3430
|
className: "flex flex-col gap-3 overflow-y-auto p-3",
|
|
3234
3431
|
children: e.content
|
|
@@ -3242,11 +3439,11 @@ function aa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3242
3439
|
});
|
|
3243
3440
|
}
|
|
3244
3441
|
// src/desktop/status-bar.component.tsx
|
|
3245
|
-
function
|
|
3442
|
+
function ga({ start: e, end: t, className: n }) {
|
|
3246
3443
|
return /* @__PURE__ */ i("div", {
|
|
3247
3444
|
"data-slot": "status-bar",
|
|
3248
3445
|
role: "status",
|
|
3249
|
-
className:
|
|
3446
|
+
className: V("flex h-6 shrink-0 items-center gap-3.5 border-t bg-sidebar px-2.5 text-xs text-muted-foreground", n),
|
|
3250
3447
|
children: [e, t && /* @__PURE__ */ r("div", {
|
|
3251
3448
|
className: "ms-auto flex items-center gap-3.5",
|
|
3252
3449
|
children: t
|
|
@@ -3254,7 +3451,7 @@ function oa({ start: e, end: t, className: n }) {
|
|
|
3254
3451
|
});
|
|
3255
3452
|
}
|
|
3256
3453
|
// src/desktop/timeline.algorithm.ts
|
|
3257
|
-
function
|
|
3454
|
+
function _a(e, t, n) {
|
|
3258
3455
|
if (n <= 0) return {
|
|
3259
3456
|
left: 0,
|
|
3260
3457
|
width: 0
|
|
@@ -3265,7 +3462,7 @@ function sa(e, t, n) {
|
|
|
3265
3462
|
width: Math.max(0, r(t) - i)
|
|
3266
3463
|
};
|
|
3267
3464
|
}
|
|
3268
|
-
function
|
|
3465
|
+
function va(e, t) {
|
|
3269
3466
|
let n = Math.max(2, t);
|
|
3270
3467
|
return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
|
|
3271
3468
|
}
|
|
@@ -3273,27 +3470,27 @@ function ca(e, t) {
|
|
|
3273
3470
|
function $(e) {
|
|
3274
3471
|
return String(e).padStart(2, "0");
|
|
3275
3472
|
}
|
|
3276
|
-
function
|
|
3473
|
+
function ya(e, t = !1) {
|
|
3277
3474
|
let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
|
|
3278
3475
|
return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
|
|
3279
3476
|
}
|
|
3280
|
-
function
|
|
3477
|
+
function ba(e, t) {
|
|
3281
3478
|
let n = new Date(e.getTime() + t * 1e3);
|
|
3282
3479
|
return `${$(n.getHours())}:${$(n.getMinutes())}`;
|
|
3283
3480
|
}
|
|
3284
3481
|
// src/desktop/timeline-lanes.component.tsx
|
|
3285
|
-
function
|
|
3286
|
-
let c = (e) => o ?
|
|
3482
|
+
function xa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
|
|
3483
|
+
let c = (e) => o ? ba(o, e) : ya(e), l = n === void 0 ? void 0 : _a(0, n, e).width;
|
|
3287
3484
|
return /* @__PURE__ */ i("div", {
|
|
3288
3485
|
"data-slot": "timeline-lanes",
|
|
3289
3486
|
role: "group",
|
|
3290
3487
|
"aria-label": "Timeline",
|
|
3291
|
-
className:
|
|
3488
|
+
className: V("relative flex flex-col text-[13px]", s),
|
|
3292
3489
|
children: [
|
|
3293
3490
|
/* @__PURE__ */ r("div", {
|
|
3294
3491
|
className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
|
|
3295
3492
|
"aria-hidden": "true",
|
|
3296
|
-
children:
|
|
3493
|
+
children: va(e, a).map((e) => /* @__PURE__ */ r("span", {
|
|
3297
3494
|
className: "flex-1 text-xs tabular-nums text-muted-foreground",
|
|
3298
3495
|
children: c(e)
|
|
3299
3496
|
}, e))
|
|
@@ -3304,24 +3501,24 @@ function da({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3304
3501
|
className: "flex w-[108px] shrink-0 items-center gap-1.5 px-2.5 font-medium",
|
|
3305
3502
|
children: [/* @__PURE__ */ r("span", {
|
|
3306
3503
|
"aria-hidden": "true",
|
|
3307
|
-
className:
|
|
3504
|
+
className: V("size-2 shrink-0 rounded-[2px]", G[t.hue])
|
|
3308
3505
|
}), t.name]
|
|
3309
3506
|
}), /* @__PURE__ */ r("div", {
|
|
3310
3507
|
className: "relative me-2.5 h-[26px] flex-1",
|
|
3311
3508
|
children: t.segments.map((n) => {
|
|
3312
|
-
let a =
|
|
3313
|
-
return /* @__PURE__ */ i(
|
|
3509
|
+
let a = _a(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
|
|
3510
|
+
return /* @__PURE__ */ i(pn, { children: [/* @__PURE__ */ r(mn, {
|
|
3314
3511
|
asChild: !0,
|
|
3315
3512
|
children: /* @__PURE__ */ r("button", {
|
|
3316
3513
|
type: "button",
|
|
3317
3514
|
"aria-label": o,
|
|
3318
|
-
className:
|
|
3515
|
+
className: V("absolute inset-y-0 cursor-pointer rounded-[5px] outline-none focus-visible:ring-2 focus-visible:ring-ring", G[t.hue], n.faint ? "opacity-35" : "opacity-85"),
|
|
3319
3516
|
style: {
|
|
3320
3517
|
left: `${a.left}%`,
|
|
3321
3518
|
width: `${a.width}%`
|
|
3322
3519
|
}
|
|
3323
3520
|
})
|
|
3324
|
-
}), /* @__PURE__ */ r(
|
|
3521
|
+
}), /* @__PURE__ */ r(hn, { children: o })] }, `${n.start}-${n.end}`);
|
|
3325
3522
|
})
|
|
3326
3523
|
})]
|
|
3327
3524
|
}, t.name)),
|
|
@@ -3334,35 +3531,35 @@ function da({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3334
3531
|
});
|
|
3335
3532
|
}
|
|
3336
3533
|
// src/desktop/title-bar.component.tsx
|
|
3337
|
-
function
|
|
3534
|
+
function Sa({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
|
|
3338
3535
|
let l = [
|
|
3339
3536
|
{
|
|
3340
3537
|
label: "Minimise",
|
|
3341
|
-
icon: /* @__PURE__ */ r(
|
|
3538
|
+
icon: /* @__PURE__ */ r(le, {}),
|
|
3342
3539
|
onClick: a
|
|
3343
3540
|
},
|
|
3344
3541
|
{
|
|
3345
3542
|
label: "Maximise",
|
|
3346
|
-
icon: /* @__PURE__ */ r(
|
|
3543
|
+
icon: /* @__PURE__ */ r(he, {}),
|
|
3347
3544
|
onClick: o
|
|
3348
3545
|
},
|
|
3349
3546
|
{
|
|
3350
3547
|
label: "Close window",
|
|
3351
|
-
icon: /* @__PURE__ */ r(
|
|
3548
|
+
icon: /* @__PURE__ */ r(P, {}),
|
|
3352
3549
|
onClick: s
|
|
3353
3550
|
}
|
|
3354
3551
|
].filter((e) => e.onClick);
|
|
3355
3552
|
return /* @__PURE__ */ i("div", {
|
|
3356
3553
|
"data-slot": "title-bar",
|
|
3357
3554
|
"data-tauri-drag-region": "",
|
|
3358
|
-
className:
|
|
3555
|
+
className: V("flex h-9 shrink-0 items-center gap-3 border-b bg-sidebar ps-3 text-[13px]", c),
|
|
3359
3556
|
children: [
|
|
3360
|
-
/* @__PURE__ */ r(
|
|
3557
|
+
/* @__PURE__ */ r(U, {
|
|
3361
3558
|
product: e,
|
|
3362
3559
|
alt: "",
|
|
3363
3560
|
className: "size-[18px]"
|
|
3364
3561
|
}),
|
|
3365
|
-
t && /* @__PURE__ */ r(
|
|
3562
|
+
t && /* @__PURE__ */ r(Kr, { children: t }),
|
|
3366
3563
|
/* @__PURE__ */ r("span", {
|
|
3367
3564
|
"data-tauri-drag-region": "",
|
|
3368
3565
|
className: "flex-1 truncate text-center text-[12.5px] text-muted-foreground",
|
|
@@ -3370,11 +3567,11 @@ function fa({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3370
3567
|
}),
|
|
3371
3568
|
l.length > 0 && /* @__PURE__ */ r("div", {
|
|
3372
3569
|
className: "flex h-full",
|
|
3373
|
-
children: l.map((e) => /* @__PURE__ */ r(
|
|
3570
|
+
children: l.map((e) => /* @__PURE__ */ r(Y, {
|
|
3374
3571
|
variant: "ghost",
|
|
3375
3572
|
"aria-label": e.label,
|
|
3376
3573
|
onClick: e.onClick,
|
|
3377
|
-
className:
|
|
3574
|
+
className: V("h-full w-[46px] rounded-none px-0 [&_svg]:size-3.5", e.label === "Close window" && "hover:bg-destructive hover:text-destructive-foreground"),
|
|
3378
3575
|
children: e.icon
|
|
3379
3576
|
}, e.label))
|
|
3380
3577
|
})
|
|
@@ -3382,11 +3579,11 @@ function fa({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3382
3579
|
});
|
|
3383
3580
|
}
|
|
3384
3581
|
// src/mobile/bottom-nav.component.tsx
|
|
3385
|
-
function
|
|
3582
|
+
function Ca({ items: e, className: t }) {
|
|
3386
3583
|
return /* @__PURE__ */ r("nav", {
|
|
3387
3584
|
"data-slot": "bottom-nav",
|
|
3388
3585
|
"aria-label": "Tabs",
|
|
3389
|
-
className:
|
|
3586
|
+
className: V("grid shrink-0 border-t bg-background px-2 pt-1.5 pb-[max(env(safe-area-inset-bottom),8px)]", t),
|
|
3390
3587
|
style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
|
|
3391
3588
|
children: e.map((e) => /* @__PURE__ */ i("a", {
|
|
3392
3589
|
href: e.href,
|
|
@@ -3404,22 +3601,22 @@ function pa({ items: e, className: t }) {
|
|
|
3404
3601
|
});
|
|
3405
3602
|
}
|
|
3406
3603
|
// src/mobile/capture-frame.component.tsx
|
|
3407
|
-
function
|
|
3604
|
+
function wa({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
|
|
3408
3605
|
let l = a.filter((e) => !e.passed).length;
|
|
3409
3606
|
return /* @__PURE__ */ i("div", {
|
|
3410
3607
|
"data-slot": "capture-frame",
|
|
3411
|
-
className:
|
|
3608
|
+
className: V("flex h-full flex-col bg-[#0e0d12]", c),
|
|
3412
3609
|
children: [/* @__PURE__ */ i("div", {
|
|
3413
3610
|
className: "relative grid min-h-[440px] flex-1 place-items-center overflow-hidden",
|
|
3414
3611
|
children: [/* @__PURE__ */ i("div", {
|
|
3415
3612
|
className: "absolute inset-x-4 top-[max(env(safe-area-inset-top),16px)] z-10 flex items-center justify-between",
|
|
3416
3613
|
children: [
|
|
3417
|
-
/* @__PURE__ */ r(
|
|
3614
|
+
/* @__PURE__ */ r(Y, {
|
|
3418
3615
|
size: "icon",
|
|
3419
3616
|
"aria-label": "Close camera",
|
|
3420
3617
|
onClick: o,
|
|
3421
3618
|
className: "rounded-full bg-white/14 text-white hover:bg-white/24",
|
|
3422
|
-
children: /* @__PURE__ */ r(
|
|
3619
|
+
children: /* @__PURE__ */ r(P, {})
|
|
3423
3620
|
}),
|
|
3424
3621
|
/* @__PURE__ */ r("span", {
|
|
3425
3622
|
className: "text-sm font-semibold text-white",
|
|
@@ -3440,12 +3637,12 @@ function ma({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3440
3637
|
children: [/* @__PURE__ */ r("h2", {
|
|
3441
3638
|
className: "m-0 type-h3 text-[19px]",
|
|
3442
3639
|
children: n
|
|
3443
|
-
}), l > 0 ? /* @__PURE__ */ i(
|
|
3640
|
+
}), l > 0 ? /* @__PURE__ */ i(q, {
|
|
3444
3641
|
variant: "danger",
|
|
3445
3642
|
dot: !0,
|
|
3446
3643
|
className: "ms-auto",
|
|
3447
3644
|
children: [l, " failed"]
|
|
3448
|
-
}) : /* @__PURE__ */ r(
|
|
3645
|
+
}) : /* @__PURE__ */ r(q, {
|
|
3449
3646
|
variant: "success",
|
|
3450
3647
|
dot: !0,
|
|
3451
3648
|
className: "ms-auto",
|
|
@@ -3458,11 +3655,11 @@ function ma({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3458
3655
|
className: "flex min-h-10 items-center gap-3 border-b",
|
|
3459
3656
|
children: [
|
|
3460
3657
|
/* @__PURE__ */ r("span", {
|
|
3461
|
-
className:
|
|
3658
|
+
className: V("grid size-6 shrink-0 place-items-center rounded-full [&_svg]:size-3.5", e.passed ? "bg-success-soft text-success" : "bg-destructive-soft text-destructive"),
|
|
3462
3659
|
children: e.passed ? /* @__PURE__ */ r(k, {
|
|
3463
3660
|
strokeWidth: 3,
|
|
3464
3661
|
"aria-label": "Passed"
|
|
3465
|
-
}) : /* @__PURE__ */ r(
|
|
3662
|
+
}) : /* @__PURE__ */ r(P, {
|
|
3466
3663
|
strokeWidth: 3,
|
|
3467
3664
|
"aria-label": "Failed"
|
|
3468
3665
|
})
|
|
@@ -3487,43 +3684,43 @@ function ma({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3487
3684
|
});
|
|
3488
3685
|
}
|
|
3489
3686
|
// src/mobile/record-button.component.tsx
|
|
3490
|
-
function
|
|
3687
|
+
function Ta({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
|
|
3491
3688
|
let u = {
|
|
3492
3689
|
idle: {
|
|
3493
3690
|
label: "Start recording",
|
|
3494
|
-
icon: /* @__PURE__ */ r(
|
|
3691
|
+
icon: /* @__PURE__ */ r(N, {}),
|
|
3495
3692
|
onClick: a
|
|
3496
3693
|
},
|
|
3497
3694
|
recording: {
|
|
3498
3695
|
label: "Pause",
|
|
3499
|
-
icon: /* @__PURE__ */ r(
|
|
3696
|
+
icon: /* @__PURE__ */ r(de, {}),
|
|
3500
3697
|
onClick: o
|
|
3501
3698
|
},
|
|
3502
3699
|
paused: {
|
|
3503
3700
|
label: "Resume",
|
|
3504
|
-
icon: /* @__PURE__ */ r(
|
|
3701
|
+
icon: /* @__PURE__ */ r(fe, {}),
|
|
3505
3702
|
onClick: s
|
|
3506
3703
|
}
|
|
3507
3704
|
}[e];
|
|
3508
3705
|
return /* @__PURE__ */ i("div", {
|
|
3509
3706
|
"data-slot": "record-button",
|
|
3510
|
-
className:
|
|
3707
|
+
className: V("flex flex-col gap-3.5 rounded-[20px] bg-brand-soft p-4", l),
|
|
3511
3708
|
children: [
|
|
3512
3709
|
/* @__PURE__ */ i("div", {
|
|
3513
3710
|
className: "flex items-center gap-2",
|
|
3514
3711
|
children: [
|
|
3515
|
-
e === "recording" && /* @__PURE__ */ r(
|
|
3712
|
+
e === "recording" && /* @__PURE__ */ r(q, {
|
|
3516
3713
|
variant: "danger",
|
|
3517
3714
|
dot: !0,
|
|
3518
3715
|
className: "bg-card",
|
|
3519
3716
|
children: "Recording"
|
|
3520
3717
|
}),
|
|
3521
|
-
e === "paused" && /* @__PURE__ */ r(
|
|
3718
|
+
e === "paused" && /* @__PURE__ */ r(q, {
|
|
3522
3719
|
variant: "warning",
|
|
3523
3720
|
className: "bg-card",
|
|
3524
3721
|
children: "Paused"
|
|
3525
3722
|
}),
|
|
3526
|
-
e === "idle" && /* @__PURE__ */ r(
|
|
3723
|
+
e === "idle" && /* @__PURE__ */ r(q, {
|
|
3527
3724
|
variant: "outline",
|
|
3528
3725
|
className: "bg-card",
|
|
3529
3726
|
children: "Not recording"
|
|
@@ -3531,7 +3728,7 @@ function ha({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3531
3728
|
/* @__PURE__ */ r("span", {
|
|
3532
3729
|
className: "ms-auto text-[13px] font-semibold tabular-nums",
|
|
3533
3730
|
"aria-label": "Recorded time",
|
|
3534
|
-
children:
|
|
3731
|
+
children: ya(t, !0)
|
|
3535
3732
|
})
|
|
3536
3733
|
]
|
|
3537
3734
|
}),
|
|
@@ -3539,17 +3736,17 @@ function ha({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3539
3736
|
"aria-hidden": "true",
|
|
3540
3737
|
className: "flex h-10 items-center gap-[3px]",
|
|
3541
3738
|
children: n.map((t, n) => /* @__PURE__ */ r("span", {
|
|
3542
|
-
className:
|
|
3739
|
+
className: V("block w-1 rounded-full bg-brand", e !== "recording" && "opacity-45"),
|
|
3543
3740
|
style: { height: `${Math.round(6 + Math.min(1, Math.max(0, t)) * 30)}px` }
|
|
3544
3741
|
}, n))
|
|
3545
3742
|
}),
|
|
3546
3743
|
/* @__PURE__ */ i("div", {
|
|
3547
3744
|
className: "flex gap-2.5",
|
|
3548
|
-
children: [/* @__PURE__ */ i(
|
|
3745
|
+
children: [/* @__PURE__ */ i(Y, {
|
|
3549
3746
|
className: "flex-1",
|
|
3550
3747
|
onClick: u.onClick,
|
|
3551
3748
|
children: [u.icon, u.label]
|
|
3552
|
-
}), e === "recording" && c && /* @__PURE__ */ r(
|
|
3749
|
+
}), e === "recording" && c && /* @__PURE__ */ r(Y, {
|
|
3553
3750
|
variant: "outline",
|
|
3554
3751
|
size: "icon",
|
|
3555
3752
|
className: "bg-card",
|
|
@@ -3562,8 +3759,8 @@ function ha({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3562
3759
|
});
|
|
3563
3760
|
}
|
|
3564
3761
|
// src/web/cta-band.component.tsx
|
|
3565
|
-
function
|
|
3566
|
-
let c =
|
|
3762
|
+
function Ea({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
|
|
3763
|
+
let c = Ce();
|
|
3567
3764
|
function l(e) {
|
|
3568
3765
|
e.preventDefault();
|
|
3569
3766
|
let t = new FormData(e.currentTarget).get("email");
|
|
@@ -3571,7 +3768,7 @@ function ga({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3571
3768
|
}
|
|
3572
3769
|
return /* @__PURE__ */ r("section", {
|
|
3573
3770
|
"data-slot": "cta-band",
|
|
3574
|
-
className:
|
|
3771
|
+
className: V("py-22", s),
|
|
3575
3772
|
children: /* @__PURE__ */ r("div", {
|
|
3576
3773
|
className: "mx-auto max-w-[1200px] px-6",
|
|
3577
3774
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -3594,7 +3791,7 @@ function ga({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3594
3791
|
className: "sr-only",
|
|
3595
3792
|
children: a
|
|
3596
3793
|
}),
|
|
3597
|
-
/* @__PURE__ */ r(
|
|
3794
|
+
/* @__PURE__ */ r(yt, {
|
|
3598
3795
|
id: c,
|
|
3599
3796
|
name: "email",
|
|
3600
3797
|
type: "email",
|
|
@@ -3603,7 +3800,7 @@ function ga({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3603
3800
|
placeholder: a,
|
|
3604
3801
|
className: "flex-[1_1_220px] border-transparent"
|
|
3605
3802
|
}),
|
|
3606
|
-
/* @__PURE__ */ r(
|
|
3803
|
+
/* @__PURE__ */ r(Y, {
|
|
3607
3804
|
type: "submit",
|
|
3608
3805
|
className: "bg-foreground text-background hover:bg-foreground/90",
|
|
3609
3806
|
children: o
|
|
@@ -3615,21 +3812,21 @@ function ga({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3615
3812
|
});
|
|
3616
3813
|
}
|
|
3617
3814
|
// src/web/faq.component.tsx
|
|
3618
|
-
function
|
|
3815
|
+
function Da({ title: e, items: t, className: n }) {
|
|
3619
3816
|
return /* @__PURE__ */ r("section", {
|
|
3620
3817
|
"data-slot": "faq",
|
|
3621
|
-
className:
|
|
3818
|
+
className: V("py-22", n),
|
|
3622
3819
|
children: /* @__PURE__ */ i("div", {
|
|
3623
3820
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3624
3821
|
children: [/* @__PURE__ */ r("h2", {
|
|
3625
3822
|
className: "m-0 type-h2 text-4xl",
|
|
3626
3823
|
children: e
|
|
3627
|
-
}), /* @__PURE__ */ r(
|
|
3824
|
+
}), /* @__PURE__ */ r(mr, {
|
|
3628
3825
|
type: "single",
|
|
3629
3826
|
collapsible: !0,
|
|
3630
|
-
children: t.map((e) => /* @__PURE__ */ i(
|
|
3827
|
+
children: t.map((e) => /* @__PURE__ */ i(hr, {
|
|
3631
3828
|
value: e.question,
|
|
3632
|
-
children: [/* @__PURE__ */ r(
|
|
3829
|
+
children: [/* @__PURE__ */ r(gr, { children: e.question }), /* @__PURE__ */ r(_r, {
|
|
3633
3830
|
className: "text-[15px]",
|
|
3634
3831
|
children: e.answer
|
|
3635
3832
|
})]
|
|
@@ -3639,10 +3836,10 @@ function _a({ title: e, items: t, className: n }) {
|
|
|
3639
3836
|
});
|
|
3640
3837
|
}
|
|
3641
3838
|
// src/web/feature-grid.component.tsx
|
|
3642
|
-
function
|
|
3839
|
+
function Oa({ title: e, lead: t, features: n, className: a }) {
|
|
3643
3840
|
return /* @__PURE__ */ r("section", {
|
|
3644
3841
|
"data-slot": "feature-grid",
|
|
3645
|
-
className:
|
|
3842
|
+
className: V("border-y bg-canvas py-22", a),
|
|
3646
3843
|
children: /* @__PURE__ */ i("div", {
|
|
3647
3844
|
className: "mx-auto flex max-w-[1200px] flex-col gap-10 px-6",
|
|
3648
3845
|
children: [(e || t) && /* @__PURE__ */ i("div", {
|
|
@@ -3679,14 +3876,14 @@ function va({ title: e, lead: t, features: n, className: a }) {
|
|
|
3679
3876
|
});
|
|
3680
3877
|
}
|
|
3681
3878
|
// src/web/hero.component.tsx
|
|
3682
|
-
function
|
|
3879
|
+
function ka({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
3683
3880
|
return /* @__PURE__ */ r("section", {
|
|
3684
3881
|
"data-slot": "hero",
|
|
3685
|
-
className:
|
|
3882
|
+
className: V("pt-22 pb-14", o),
|
|
3686
3883
|
children: /* @__PURE__ */ i("div", {
|
|
3687
3884
|
className: "mx-auto flex max-w-[1200px] flex-col items-start gap-5.5 px-6",
|
|
3688
3885
|
children: [
|
|
3689
|
-
e && /* @__PURE__ */ r(
|
|
3886
|
+
e && /* @__PURE__ */ r(q, {
|
|
3690
3887
|
variant: "brand",
|
|
3691
3888
|
className: "h-7 px-3 text-[13px]",
|
|
3692
3889
|
children: e
|
|
@@ -3708,10 +3905,10 @@ function ya({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
|
3708
3905
|
});
|
|
3709
3906
|
}
|
|
3710
3907
|
// src/web/how-it-works.component.tsx
|
|
3711
|
-
function
|
|
3908
|
+
function Aa({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
3712
3909
|
return /* @__PURE__ */ r("section", {
|
|
3713
3910
|
"data-slot": "how-it-works",
|
|
3714
|
-
className:
|
|
3911
|
+
className: V("py-22", o),
|
|
3715
3912
|
children: /* @__PURE__ */ i("div", {
|
|
3716
3913
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(340px,1fr))] items-start gap-12 px-6",
|
|
3717
3914
|
children: [/* @__PURE__ */ i("div", {
|
|
@@ -3751,14 +3948,14 @@ function ba({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
|
3751
3948
|
});
|
|
3752
3949
|
}
|
|
3753
3950
|
// src/web/mobile-menu.component.tsx
|
|
3754
|
-
var
|
|
3755
|
-
function
|
|
3756
|
-
let [o, s] =
|
|
3757
|
-
|
|
3951
|
+
var ja = 400;
|
|
3952
|
+
function Ma({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
3953
|
+
let [o, s] = R(!1), [c, l] = R(), [u, f] = R(!1), p = L(null);
|
|
3954
|
+
I(() => {
|
|
3758
3955
|
if (o) return;
|
|
3759
|
-
let e = setTimeout(() => f(!1),
|
|
3956
|
+
let e = setTimeout(() => f(!1), ja);
|
|
3760
3957
|
return () => clearTimeout(e);
|
|
3761
|
-
}, [o]),
|
|
3958
|
+
}, [o]), I(() => {
|
|
3762
3959
|
if (!o) return;
|
|
3763
3960
|
let e = new ResizeObserver(() => m());
|
|
3764
3961
|
return e.observe(document.documentElement), () => e.disconnect();
|
|
@@ -3784,13 +3981,13 @@ function Sa({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3784
3981
|
onOpenChange: h,
|
|
3785
3982
|
children: [/* @__PURE__ */ r(d.Trigger, {
|
|
3786
3983
|
asChild: !0,
|
|
3787
|
-
children: /* @__PURE__ */ r(
|
|
3984
|
+
children: /* @__PURE__ */ r(Y, {
|
|
3788
3985
|
ref: p,
|
|
3789
3986
|
variant: "ghost",
|
|
3790
3987
|
size: "icon",
|
|
3791
3988
|
"aria-label": "Open menu",
|
|
3792
3989
|
className: a,
|
|
3793
|
-
children: /* @__PURE__ */ r(
|
|
3990
|
+
children: /* @__PURE__ */ r(Gr, { className: u ? "invisible" : void 0 })
|
|
3794
3991
|
})
|
|
3795
3992
|
}), /* @__PURE__ */ i(d.Portal, { children: [/* @__PURE__ */ r(d.Overlay, {
|
|
3796
3993
|
"data-slot": "mobile-menu-backdrop",
|
|
@@ -3808,7 +4005,7 @@ function Sa({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3808
4005
|
/* @__PURE__ */ r("div", {
|
|
3809
4006
|
className: "fixed inset-0 [filter:drop-shadow(0_0_1px_rgb(20_18_26/0.4))_drop-shadow(-12px_16px_36px_rgb(20_18_26/0.4))] dark:[filter:drop-shadow(0_0_1px_rgb(255_255_255/0.45))_drop-shadow(-12px_16px_36px_rgb(0_0_0/0.7))]",
|
|
3810
4007
|
children: /* @__PURE__ */ r("div", {
|
|
3811
|
-
className:
|
|
4008
|
+
className: V("fixed inset-0 animate-menu-reveal group-data-[state=closed]/menu:animate-menu-conceal", "motion-reduce:animate-fade-in motion-reduce:group-data-[state=closed]/menu:animate-fade-out"),
|
|
3812
4009
|
children: /* @__PURE__ */ i("div", {
|
|
3813
4010
|
className: "pointer-events-auto absolute inset-y-0 end-0 flex w-[min(340px,86vw)] flex-col gap-1 border-s bg-popover px-5 pt-21 pb-8 text-popover-foreground",
|
|
3814
4011
|
children: [/* @__PURE__ */ r("nav", {
|
|
@@ -3830,7 +4027,7 @@ function Sa({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3830
4027
|
}),
|
|
3831
4028
|
/* @__PURE__ */ r(d.Close, {
|
|
3832
4029
|
asChild: !0,
|
|
3833
|
-
children: /* @__PURE__ */ r(
|
|
4030
|
+
children: /* @__PURE__ */ r(Y, {
|
|
3834
4031
|
variant: "ghost",
|
|
3835
4032
|
size: "icon",
|
|
3836
4033
|
"aria-label": "Close menu",
|
|
@@ -3844,7 +4041,7 @@ function Sa({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3844
4041
|
right: 24,
|
|
3845
4042
|
top: 12
|
|
3846
4043
|
},
|
|
3847
|
-
children: /* @__PURE__ */ r(
|
|
4044
|
+
children: /* @__PURE__ */ r(Gr, { open: o })
|
|
3848
4045
|
})
|
|
3849
4046
|
})
|
|
3850
4047
|
]
|
|
@@ -3852,11 +4049,11 @@ function Sa({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
3852
4049
|
});
|
|
3853
4050
|
}
|
|
3854
4051
|
// src/web/pricing-table.component.tsx
|
|
3855
|
-
function
|
|
3856
|
-
let [l, u] =
|
|
4052
|
+
function Na({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
|
|
4053
|
+
let [l, u] = R(a);
|
|
3857
4054
|
return /* @__PURE__ */ r("section", {
|
|
3858
4055
|
"data-slot": "pricing-table",
|
|
3859
|
-
className:
|
|
4056
|
+
className: V("border-y bg-canvas py-22", c),
|
|
3860
4057
|
children: /* @__PURE__ */ i("div", {
|
|
3861
4058
|
className: "mx-auto flex max-w-[1200px] flex-col gap-8 px-6",
|
|
3862
4059
|
children: [
|
|
@@ -3889,14 +4086,14 @@ function Ca({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3889
4086
|
className: "m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-4 p-0",
|
|
3890
4087
|
children: n.map((e) => /* @__PURE__ */ i("li", {
|
|
3891
4088
|
"aria-label": e.name,
|
|
3892
|
-
className:
|
|
4089
|
+
className: V("flex flex-col gap-3.5 rounded-2xl border bg-card p-7 shadow-xs", e.featured && "border-brand shadow-[0_0_0_1px_var(--brand),var(--elevation-md)]"),
|
|
3893
4090
|
children: [
|
|
3894
4091
|
/* @__PURE__ */ i("div", {
|
|
3895
4092
|
className: "flex items-center justify-between",
|
|
3896
4093
|
children: [/* @__PURE__ */ r("h3", {
|
|
3897
4094
|
className: "m-0 type-h3",
|
|
3898
4095
|
children: e.name
|
|
3899
|
-
}), e.featured && /* @__PURE__ */ r(
|
|
4096
|
+
}), e.featured && /* @__PURE__ */ r(q, { children: s })]
|
|
3900
4097
|
}),
|
|
3901
4098
|
/* @__PURE__ */ r("span", {
|
|
3902
4099
|
className: "font-display text-[34px] font-extrabold tracking-tight",
|
|
@@ -3918,7 +4115,7 @@ function Ca({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3918
4115
|
}), e]
|
|
3919
4116
|
}, e))
|
|
3920
4117
|
}),
|
|
3921
|
-
/* @__PURE__ */ r(
|
|
4118
|
+
/* @__PURE__ */ r(Y, {
|
|
3922
4119
|
asChild: !0,
|
|
3923
4120
|
variant: e.featured ? "default" : "outline",
|
|
3924
4121
|
className: "mt-auto",
|
|
@@ -3939,20 +4136,20 @@ function Ca({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
3939
4136
|
});
|
|
3940
4137
|
}
|
|
3941
4138
|
// src/web/product-card.component.tsx
|
|
3942
|
-
function
|
|
3943
|
-
let s =
|
|
4139
|
+
function Pa({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
4140
|
+
let s = H[e];
|
|
3944
4141
|
return /* @__PURE__ */ i("a", {
|
|
3945
4142
|
"data-slot": "product-card",
|
|
3946
4143
|
"data-product": e,
|
|
3947
4144
|
href: t,
|
|
3948
|
-
className:
|
|
4145
|
+
className: V("flex flex-col overflow-hidden rounded-2xl border bg-card text-card-foreground no-underline shadow-xs transition-shadow hover:shadow-sm focus-visible:outline-2 focus-visible:outline-ring", o),
|
|
3949
4146
|
children: [/* @__PURE__ */ r("span", {
|
|
3950
4147
|
"aria-hidden": "true",
|
|
3951
4148
|
className: "block h-1.5 bg-brand"
|
|
3952
4149
|
}), /* @__PURE__ */ i("span", {
|
|
3953
4150
|
className: "flex flex-col gap-3.5 p-5.5",
|
|
3954
4151
|
children: [
|
|
3955
|
-
/* @__PURE__ */ r(
|
|
4152
|
+
/* @__PURE__ */ r(U, {
|
|
3956
4153
|
product: e,
|
|
3957
4154
|
alt: "",
|
|
3958
4155
|
className: "size-11"
|
|
@@ -3967,7 +4164,7 @@ function wa({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
3967
4164
|
children: n ?? s.tagline
|
|
3968
4165
|
})]
|
|
3969
4166
|
}),
|
|
3970
|
-
/* @__PURE__ */ r(
|
|
4167
|
+
/* @__PURE__ */ r(q, {
|
|
3971
4168
|
variant: "outline",
|
|
3972
4169
|
className: "self-start",
|
|
3973
4170
|
children: a ?? s.stage
|
|
@@ -3977,17 +4174,17 @@ function wa({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
3977
4174
|
});
|
|
3978
4175
|
}
|
|
3979
4176
|
// src/web/site-footer.component.tsx
|
|
3980
|
-
function
|
|
4177
|
+
function Fa({ tagline: e, columns: t, legal: n, className: a }) {
|
|
3981
4178
|
return /* @__PURE__ */ i("footer", {
|
|
3982
4179
|
"data-slot": "site-footer",
|
|
3983
|
-
className:
|
|
4180
|
+
className: V("border-t pt-14 pb-10", a),
|
|
3984
4181
|
children: [/* @__PURE__ */ i("div", {
|
|
3985
4182
|
className: "mx-auto grid max-w-[1200px] grid-cols-[repeat(auto-fit,minmax(160px,1fr))] gap-8 px-6",
|
|
3986
4183
|
children: [/* @__PURE__ */ i("div", {
|
|
3987
4184
|
className: "col-span-2 flex flex-col gap-3",
|
|
3988
4185
|
children: [/* @__PURE__ */ i("span", {
|
|
3989
4186
|
className: "flex items-center gap-2",
|
|
3990
|
-
children: [/* @__PURE__ */ r(
|
|
4187
|
+
children: [/* @__PURE__ */ r(U, {
|
|
3991
4188
|
product: "talogic",
|
|
3992
4189
|
alt: "",
|
|
3993
4190
|
className: "size-7"
|
|
@@ -4018,12 +4215,12 @@ function Ta({ tagline: e, columns: t, legal: n, className: a }) {
|
|
|
4018
4215
|
});
|
|
4019
4216
|
}
|
|
4020
4217
|
// src/web/site-header.component.tsx
|
|
4021
|
-
function
|
|
4218
|
+
function Ia({ nav: e, actions: t, brand: a, className: o }) {
|
|
4022
4219
|
let s = a ?? /* @__PURE__ */ i("a", {
|
|
4023
4220
|
href: "/",
|
|
4024
4221
|
className: "flex items-center gap-2 no-underline",
|
|
4025
4222
|
"aria-label": "talogic home",
|
|
4026
|
-
children: [/* @__PURE__ */ r(
|
|
4223
|
+
children: [/* @__PURE__ */ r(U, {
|
|
4027
4224
|
product: "talogic",
|
|
4028
4225
|
alt: "",
|
|
4029
4226
|
className: "size-7"
|
|
@@ -4034,17 +4231,17 @@ function Ea({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4034
4231
|
});
|
|
4035
4232
|
return /* @__PURE__ */ r("header", {
|
|
4036
4233
|
"data-slot": "site-header",
|
|
4037
|
-
className:
|
|
4234
|
+
className: V("sticky top-0 z-40 border-b bg-background/88 backdrop-blur-md", o),
|
|
4038
4235
|
children: /* @__PURE__ */ i("div", {
|
|
4039
4236
|
className: "mx-auto flex h-[68px] max-w-[1200px] items-center gap-7 px-6",
|
|
4040
4237
|
children: [
|
|
4041
4238
|
s,
|
|
4042
|
-
/* @__PURE__ */ r(
|
|
4239
|
+
/* @__PURE__ */ r($r, {
|
|
4043
4240
|
className: "hidden md:flex",
|
|
4044
4241
|
"aria-label": "Main",
|
|
4045
|
-
children: /* @__PURE__ */ r(
|
|
4242
|
+
children: /* @__PURE__ */ r(ei, { children: e.map((e) => /* @__PURE__ */ r(ti, { children: e.links ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(ri, { children: e.label }), /* @__PURE__ */ r(ii, { children: /* @__PURE__ */ r("ul", {
|
|
4046
4243
|
className: "m-0 grid w-[420px] list-none gap-1 p-0",
|
|
4047
|
-
children: e.links.map((e) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ i(
|
|
4244
|
+
children: e.links.map((e) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ i(ai, {
|
|
4048
4245
|
href: e.href,
|
|
4049
4246
|
className: "flex h-auto flex-col items-start gap-0.5 py-2",
|
|
4050
4247
|
children: [/* @__PURE__ */ r("span", {
|
|
@@ -4055,7 +4252,7 @@ function Ea({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4055
4252
|
children: e.description
|
|
4056
4253
|
})]
|
|
4057
4254
|
}) }, e.href))
|
|
4058
|
-
}) })] }) : /* @__PURE__ */ r(
|
|
4255
|
+
}) })] }) : /* @__PURE__ */ r(ai, {
|
|
4059
4256
|
href: e.href,
|
|
4060
4257
|
children: e.label
|
|
4061
4258
|
}) }, e.label)) })
|
|
@@ -4064,7 +4261,7 @@ function Ea({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4064
4261
|
className: "ms-auto hidden items-center gap-2 md:flex",
|
|
4065
4262
|
children: t
|
|
4066
4263
|
}),
|
|
4067
|
-
/* @__PURE__ */ r(
|
|
4264
|
+
/* @__PURE__ */ r(Ma, {
|
|
4068
4265
|
className: "ms-auto md:hidden",
|
|
4069
4266
|
links: e.flatMap((e) => e.links ?? [{
|
|
4070
4267
|
label: e.label,
|
|
@@ -4076,6 +4273,6 @@ function Ea({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4076
4273
|
})
|
|
4077
4274
|
});
|
|
4078
4275
|
}
|
|
4079
|
-
export {
|
|
4276
|
+
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, ta as AppShell, ea as AppShellBody, $i as AppShellHeader, $e as Avatar, tt as AvatarFallback, et as AvatarImage, q as Badge, Ca as BottomNav, Rr as Breadcrumb, Br as BreadcrumbItem, Vr as BreadcrumbLink, zr as BreadcrumbList, Hr as BreadcrumbPage, Ur as BreadcrumbSeparator, xi as BulkActionBar, Y as Button, Xe as COLOUR_SCHEMES, wa as CaptureFrame, vr as Card, Sr as CardContent, xr as CardDescription, Cr as CardFooter, yr as CardHeader, br as CardTitle, it 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, Ea as CtaBand, Ye 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, Le as FAMILY_PALETTE, We as FREE_HUES, Da as Faq, Oa as FeatureGrid, vt as Field, fr as FileDropOverlay, na as FilterBar, ra as FilterChip, ma as FlowNode, ia as FormSection, qe as HUES, G as HUE_FILL, ka as Hero, Aa as HowItWorks, yt as Input, ha as Inspector, wr as Kbd, Me as LABEL_COLORS, K 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, Ma as MobileMenu, $r as NavigationMenu, ii as NavigationMenuContent, ti as NavigationMenuItem, ai as NavigationMenuLink, ei as NavigationMenuList, ri as NavigationMenuTrigger, Je as PALETTE_STEPS, Ke as PRODUCTS, H as PRODUCT_CATALOGUE, Ue as PRODUCT_HUES, aa as PageHeader, oi as Pagination, en as Popover, nn as PopoverAnchor, rn as PopoverContent, tn as PopoverTrigger, $t as Portal, bi as Presence, Na as PricingTable, Pa as ProductCard, U as ProductLogo, Ui as ProductSwitcher, or as Progress, ua as RUN_STATUSES, at as RadioGroup, ot as RadioGroupItem, Ta as RecordButton, oa as RecordsTable, Dr as ResizableHandle, Er as ResizablePanel, Tr as ResizablePanelGroup, Or as ScrollArea, kr as ScrollBar, bt as Select, Si as SelectAllCheckbox, wt as SelectContent, xt as SelectGroup, Et as SelectItem, Tt as SelectLabel, Dt as SelectSeparator, Ct as SelectTrigger, St as SelectValue, Ti as SelectableList, Ei as SelectableRow, Ar as Separator, an as Sheet, sn as SheetClose, dn as SheetContent, ln as SheetDescription, cn as SheetTitle, on as SheetTrigger, Mi as Sidebar, Wi as SidebarBrand, Pi as SidebarCollapseButton, Ii as SidebarContent, Ri as SidebarFooter, zi as SidebarGroup, Fi as SidebarHeader, Bi as SidebarItem, Li as SidebarNote, Hi as SidebarSheet, Ni as SidebarTooltip, Fa as SiteFooter, Ia as SiteHeader, sr as Skeleton, st as Slider, cr as Spinner, la as StatCard, pa as StatusBadge, ga as StatusBar, vi as Stepper, ct 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, ui as Tabs, gi as TabsContent, pi as TabsList, hi as TabsTrigger, Jn as Tag, Zn as TagsInput, Ot as Textarea, Qe as ThemeRoot, xa as TimelineLanes, Sa as TitleBar, lr as Toaster, dt as ToggleGroup, ft as ToggleGroupItem, pn as Tooltip, hn as TooltipContent, fn as TooltipProvider, mn as TooltipTrigger, ur as acceptsFile, qn as addTags, Fe as apcaContrast, nt as badgeVariants, J as buttonVariants, V as cn, Ki as commandShortcutLabel, pt as controlClassName, Q as fadingLabelClassName, At as floatingMotionClassName, ba as formatClockTime, ya as formatTimecode, Ge as hueForProduct, He as logoColorForHue, dr as mayAcceptDrag, X as menuItemClassName, vn as menuSeparatorClassName, _n as menuShortcutClassName, Ai as navRowClassName, kt as overlayClassName, yi as presenceClassName, Ie as readableLabel, fa as runStatusDisplay, jt as sheetMotionClassName, ki as sidebarNoteClassName, sa as sparklinePath, Kn as splitTags, Yn as tagsFieldClassName, Xn as tagsFieldInputClassName, Ze as themeAttributes, _a as timelineBox, va as timelineTicks, Gi as useCommandShortcut, Zi as useCommandShortcutLabel, ht as useFieldControl, gt as useFieldLabelId, Qn as useOptionSearch, pr as usePageDrop, Di as useSelection, Z as useSidebar };
|
|
4080
4277
|
|
|
4081
4278
|
//# sourceMappingURL=index.js.map
|