@talogic/react 0.13.0 → 0.14.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/index.js +163 -182
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/talogic-react.css +1 -1
- package/tokens.css +1 -15
- package/ui/navigation/tabs.component.d.ts +5 -7
package/index.js
CHANGED
|
@@ -2175,53 +2175,34 @@ function oi({ page: e, pageCount: t, onPageChange: n, window: a = 3, className:
|
|
|
2175
2175
|
});
|
|
2176
2176
|
}
|
|
2177
2177
|
// src/ui/navigation/tabs.component.tsx
|
|
2178
|
-
var si = ye(null), ci = ye("pill")
|
|
2179
|
-
function
|
|
2180
|
-
let
|
|
2181
|
-
return Math.round(r ? a : -a);
|
|
2182
|
-
}
|
|
2183
|
-
function di({ className: e, style: t, children: n, value: i, defaultValue: a, onValueChange: o, orientation: s = "horizontal", ...c }) {
|
|
2184
|
-
let l = L(null), u = L(i ?? a), [d, f] = R(), p = L(void 0), m = L(void 0), [h, g] = R(i ?? a), _ = F((e) => {
|
|
2178
|
+
var si = ye(null), ci = ye("pill");
|
|
2179
|
+
function li({ className: e, style: t, children: n, value: i, defaultValue: a, onValueChange: o, orientation: s = "horizontal", ...c }) {
|
|
2180
|
+
let l = L(null), u = L(i ?? a), [d, f] = R(!1), p = L(void 0), m = L(void 0), [h, g] = R(i ?? a), _ = F((e) => {
|
|
2185
2181
|
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);
|
|
2186
2182
|
if (u.current = e, g(e), !t || !r || !i || r === i) return;
|
|
2187
2183
|
let a = t.ownerDocument.getElementById(r.getAttribute("aria-controls") ?? "");
|
|
2188
2184
|
p.current = a?.offsetHeight;
|
|
2189
|
-
let o =
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
vertical: o
|
|
2200
|
-
} : void 0, f({
|
|
2201
|
-
size: 0,
|
|
2202
|
-
direction: "z"
|
|
2203
|
-
});
|
|
2204
|
-
return;
|
|
2205
|
-
}
|
|
2206
|
-
let d = o ? i.offsetTop - r.offsetTop : i.offsetLeft - r.offsetLeft, h = n.indexOf(i) > n.indexOf(r);
|
|
2207
|
-
f({
|
|
2208
|
-
size: ui(d, (o ? c?.offsetHeight : c?.offsetWidth) ?? 0, o ? t.offsetHeight : t.offsetWidth, h),
|
|
2209
|
-
direction: o ? "y" : "x"
|
|
2210
|
-
});
|
|
2185
|
+
let o = a?.querySelector(":scope > [data-slot=tabs-content-body]");
|
|
2186
|
+
m.current = a && o ? {
|
|
2187
|
+
node: o.cloneNode(!0),
|
|
2188
|
+
top: o.offsetTop,
|
|
2189
|
+
left: o.offsetLeft,
|
|
2190
|
+
width: o.offsetWidth,
|
|
2191
|
+
fromEdge: r.dataset.edge,
|
|
2192
|
+
toEdge: i.dataset.edge,
|
|
2193
|
+
vertical: s === "vertical"
|
|
2194
|
+
} : void 0, f(!0);
|
|
2211
2195
|
}, [s]);
|
|
2212
2196
|
return i !== void 0 && i !== u.current && _(i), /* @__PURE__ */ r(E.Root, {
|
|
2213
2197
|
ref: l,
|
|
2214
2198
|
"data-slot": "tabs",
|
|
2215
|
-
"data-direction": d
|
|
2216
|
-
style:
|
|
2217
|
-
...t,
|
|
2218
|
-
"--tab-shift": `${String(d.size)}px`
|
|
2219
|
-
},
|
|
2199
|
+
"data-direction": d ? "z" : void 0,
|
|
2200
|
+
style: t,
|
|
2220
2201
|
value: i,
|
|
2221
2202
|
defaultValue: a,
|
|
2222
2203
|
orientation: s,
|
|
2223
2204
|
onValueChange: (e) => {
|
|
2224
|
-
_(e), o?.(e);
|
|
2205
|
+
i === void 0 && _(e), o?.(e);
|
|
2225
2206
|
},
|
|
2226
2207
|
className: V("group/tabs flex gap-3 data-[orientation=horizontal]:flex-col has-[>[data-slot=tabs-list][data-variant=outline]]:gap-0", e),
|
|
2227
2208
|
...c,
|
|
@@ -2235,39 +2216,39 @@ function di({ className: e, style: t, children: n, value: i, defaultValue: a, on
|
|
|
2235
2216
|
})
|
|
2236
2217
|
});
|
|
2237
2218
|
}
|
|
2238
|
-
var
|
|
2219
|
+
var ui = {
|
|
2239
2220
|
pill: "gap-0.5 rounded-md bg-muted p-[3px]",
|
|
2240
2221
|
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",
|
|
2241
2222
|
outline: "z-1 w-full gap-1 data-[orientation=vertical]:w-auto"
|
|
2242
|
-
},
|
|
2223
|
+
}, di = {
|
|
2243
2224
|
pill: "rounded-sm bg-background shadow-xs",
|
|
2244
2225
|
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",
|
|
2245
2226
|
outline: "hidden"
|
|
2246
2227
|
};
|
|
2247
|
-
function
|
|
2228
|
+
function fi({ className: e, variant: t = "pill", fitted: n = !1, flap: a = !1, children: o, ...s }) {
|
|
2248
2229
|
let c = lt("[data-slot=tabs-trigger][data-state=active]");
|
|
2249
2230
|
return /* @__PURE__ */ i(E.List, {
|
|
2250
2231
|
ref: c,
|
|
2251
2232
|
"data-slot": "tabs-list",
|
|
2252
2233
|
"data-variant": t,
|
|
2253
2234
|
"data-motion": a ? "flap" : "raise",
|
|
2254
|
-
className: V("group/tabs-list group/indicator relative inline-flex w-fit items-center data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",
|
|
2235
|
+
className: V("group/tabs-list group/indicator relative inline-flex w-fit items-center data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch", ui[t], n && "w-full [&>[data-slot=tabs-trigger]]:flex-1", e),
|
|
2255
2236
|
...s,
|
|
2256
2237
|
children: [/* @__PURE__ */ r("span", {
|
|
2257
2238
|
"aria-hidden": "true",
|
|
2258
2239
|
"data-slot": "tabs-indicator",
|
|
2259
|
-
className: V(ut,
|
|
2240
|
+
className: V(ut, di[t])
|
|
2260
2241
|
}), /* @__PURE__ */ r(ci, {
|
|
2261
2242
|
value: t,
|
|
2262
2243
|
children: o
|
|
2263
2244
|
})]
|
|
2264
2245
|
});
|
|
2265
2246
|
}
|
|
2266
|
-
var
|
|
2267
|
-
function
|
|
2247
|
+
var pi = "isolate before:absolute before:-z-10 before:rounded-none before:border before:border-border before:bg-background before:transition-[top,inset-inline-start,border-width,transform,border-radius,border-top-color,border-inline-start-color,bottom,inset-inline-end] before:duration-250 motion-reduce:before:transition-none before:[transition-timing-function:var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),step-end,step-end] data-[state=active]:before:[transition-timing-function:var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),var(--ease-emphasised),step-start,step-start] data-[orientation=horizontal]:before:inset-x-0 data-[orientation=horizontal]:before:bottom-0 data-[orientation=horizontal]:before:top-full data-[orientation=horizontal]:before:border-y-0 data-[orientation=horizontal]:data-[state=active]:before:top-0 data-[orientation=horizontal]:data-[state=active]:before:-bottom-px data-[orientation=horizontal]:data-[state=active]:before:border-t-2 data-[orientation=horizontal]:data-[state=active]:before:rounded-t-md data-[orientation=horizontal]:data-[state=active]:before:border-t-brand data-[orientation=vertical]:before:inset-y-0 data-[orientation=vertical]:before:end-0 data-[orientation=vertical]:before:start-full data-[orientation=vertical]:before:border-x-0 data-[orientation=vertical]:data-[state=active]:before:start-0 data-[orientation=vertical]:data-[state=active]:before:-end-px data-[orientation=vertical]:data-[state=active]:before:border-s-2 data-[orientation=vertical]:data-[state=active]:before:rounded-s-md data-[orientation=vertical]:data-[state=active]:before:border-s-brand data-[orientation=horizontal]:[perspective:300px] data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:top-0! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:bottom-0! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:data-[state=active]:before:-bottom-px! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:border-t-2! data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:origin-bottom data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:before:[transform:rotateX(90deg)] data-[orientation=horizontal]:group-data-[motion=flap]/tabs-list:data-[state=active]:before:[transform:rotateX(0deg)] data-[orientation=horizontal]:focus-visible:before:bg-linear-to-b data-[orientation=vertical]:focus-visible:before:bg-linear-to-r rtl:data-[orientation=vertical]:focus-visible:before:bg-linear-to-l focus-visible:before:from-brand/25 focus-visible:before:to-background data-[edge=start]:before:rounded-ss-md data-[edge=end]:data-[orientation=horizontal]:before:rounded-se-md data-[edge=end]:data-[orientation=vertical]:before:rounded-es-md";
|
|
2248
|
+
function mi(e) {
|
|
2268
2249
|
e.preventDefault(), e.stopPropagation();
|
|
2269
2250
|
}
|
|
2270
|
-
function
|
|
2251
|
+
function hi({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", onKeyDown: o, children: s, value: c, ...l }) {
|
|
2271
2252
|
let u = xe(ci), d = F((e) => {
|
|
2272
2253
|
if (!e || u !== "outline") return;
|
|
2273
2254
|
let t = e.parentElement, n = e.dataset.orientation === "vertical", r = n ? e.offsetTop : e.offsetLeft, i = n ? e.offsetHeight : e.offsetWidth, a = (n ? t?.clientHeight : t?.clientWidth) ?? 0;
|
|
@@ -2283,7 +2264,7 @@ function _i({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2283
2264
|
onKeyDown: (e) => {
|
|
2284
2265
|
o?.(e), n && !e.defaultPrevented && e.key === "Delete" && (e.preventDefault(), n());
|
|
2285
2266
|
},
|
|
2286
|
-
className: V("group/tab relative inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap font-medium text-muted-foreground outline-none", "hover:text-foreground disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4", "transition-colors duration-150 data-[state=active]:text-foreground motion-reduce:transition-none", "group-data-[variant=pill]/tabs-list:focus-visible:ring-2 group-data-[variant=pill]/tabs-list:focus-visible:ring-ring group-data-[variant=underline]/tabs-list:focus-visible:bg-brand-soft", "group-data-[variant=pill]/tabs-list:h-[calc(var(--control-h)-6px)] group-data-[variant=pill]/tabs-list:rounded-sm group-data-[variant=pill]/tabs-list:px-3 group-data-[variant=pill]/tabs-list:text-[13px]", "group-data-[variant=underline]/tabs-list:rounded-sm group-data-[variant=underline]/tabs-list:py-2.5 group-data-[variant=underline]/tabs-list:text-sm", "group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:justify-start group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:px-3 group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:py-2", "group-data-[variant=outline]/tabs-list:h-(--control-h) group-data-[variant=outline]/tabs-list:rounded-t-md group-data-[variant=outline]/tabs-list:px-3.5 group-data-[variant=outline]/tabs-list:text-sm group-data-[variant=outline]/tabs-list:data-[orientation=vertical]:justify-start", u === "outline" &&
|
|
2267
|
+
className: V("group/tab relative inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap font-medium text-muted-foreground outline-none", "hover:text-foreground disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4", "transition-colors duration-150 data-[state=active]:text-foreground motion-reduce:transition-none", "group-data-[variant=pill]/tabs-list:focus-visible:ring-2 group-data-[variant=pill]/tabs-list:focus-visible:ring-ring group-data-[variant=underline]/tabs-list:focus-visible:bg-brand-soft", "group-data-[variant=pill]/tabs-list:h-[calc(var(--control-h)-6px)] group-data-[variant=pill]/tabs-list:rounded-sm group-data-[variant=pill]/tabs-list:px-3 group-data-[variant=pill]/tabs-list:text-[13px]", "group-data-[variant=underline]/tabs-list:rounded-sm group-data-[variant=underline]/tabs-list:py-2.5 group-data-[variant=underline]/tabs-list:text-sm", "group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:justify-start group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:px-3 group-data-[variant=underline]/tabs-list:data-[orientation=vertical]:py-2", "group-data-[variant=outline]/tabs-list:h-(--control-h) group-data-[variant=outline]/tabs-list:rounded-t-md group-data-[variant=outline]/tabs-list:px-3.5 group-data-[variant=outline]/tabs-list:text-sm group-data-[variant=outline]/tabs-list:data-[orientation=vertical]:justify-start", u === "outline" && pi, e),
|
|
2287
2268
|
...l,
|
|
2288
2269
|
children: [
|
|
2289
2270
|
s,
|
|
@@ -2295,10 +2276,10 @@ function _i({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2295
2276
|
n ? /* @__PURE__ */ r("span", {
|
|
2296
2277
|
"aria-hidden": "true",
|
|
2297
2278
|
"data-slot": "tabs-close",
|
|
2298
|
-
onPointerDown:
|
|
2299
|
-
onMouseDown:
|
|
2279
|
+
onPointerDown: mi,
|
|
2280
|
+
onMouseDown: mi,
|
|
2300
2281
|
onClick: (e) => {
|
|
2301
|
-
|
|
2282
|
+
mi(e), n();
|
|
2302
2283
|
},
|
|
2303
2284
|
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",
|
|
2304
2285
|
children: /* @__PURE__ */ r(P, {})
|
|
@@ -2306,21 +2287,21 @@ function _i({ className: e, count: t, onClose: n, closeLabel: a = "Close tab", o
|
|
|
2306
2287
|
]
|
|
2307
2288
|
});
|
|
2308
2289
|
}
|
|
2309
|
-
var
|
|
2290
|
+
var gi = [
|
|
2310
2291
|
"borderTopLeftRadius",
|
|
2311
2292
|
"borderTopRightRadius",
|
|
2312
2293
|
"borderBottomRightRadius",
|
|
2313
2294
|
"borderBottomLeftRadius"
|
|
2314
2295
|
];
|
|
2315
|
-
function
|
|
2296
|
+
function _i(e, t, n) {
|
|
2316
2297
|
if (e === "start") return +!!n;
|
|
2317
2298
|
if (e === "end") return t ? n ? 2 : 3 : +!n;
|
|
2318
2299
|
}
|
|
2319
|
-
function
|
|
2320
|
-
let n = getComputedStyle(e), r = n.direction === "rtl", i = Math.max(...
|
|
2300
|
+
function vi(e, t) {
|
|
2301
|
+
let n = getComputedStyle(e), r = n.direction === "rtl", i = Math.max(...gi.map((e) => Number(n[e].replace("px", "")))), a = _i(t.fromEdge, t.vertical, r), o = _i(t.toEdge, t.vertical, r);
|
|
2321
2302
|
if (i === 0 || a === o) return;
|
|
2322
2303
|
let s = `${String(i)}px`, c = (t, n, r, i) => {
|
|
2323
|
-
let a = t === void 0 ? void 0 :
|
|
2304
|
+
let a = t === void 0 ? void 0 : gi[t];
|
|
2324
2305
|
a && e.animate([{ [a]: n }, { [a]: r }], i);
|
|
2325
2306
|
};
|
|
2326
2307
|
c(a, "0px", s, {
|
|
@@ -2333,7 +2314,7 @@ function bi(e, t) {
|
|
|
2333
2314
|
easing: "ease-out"
|
|
2334
2315
|
});
|
|
2335
2316
|
}
|
|
2336
|
-
function
|
|
2317
|
+
function yi(e, t) {
|
|
2337
2318
|
for (let t of e.querySelectorAll("[data-slot=tabs-content-ghost]")) t.remove();
|
|
2338
2319
|
let { node: n } = t;
|
|
2339
2320
|
n.dataset.slot = "tabs-content-ghost", n.inert = !0, n.setAttribute("aria-hidden", "true"), Object.assign(n.style, {
|
|
@@ -2343,7 +2324,7 @@ function xi(e, t) {
|
|
|
2343
2324
|
width: `${String(t.width)}px`,
|
|
2344
2325
|
animation: "none",
|
|
2345
2326
|
pointerEvents: "none"
|
|
2346
|
-
}), e.append(n),
|
|
2327
|
+
}), e.append(n), vi(e, t);
|
|
2347
2328
|
let r = n.animate([{
|
|
2348
2329
|
opacity: 1,
|
|
2349
2330
|
scale: 1,
|
|
@@ -2363,7 +2344,7 @@ function xi(e, t) {
|
|
|
2363
2344
|
n.remove();
|
|
2364
2345
|
});
|
|
2365
2346
|
}
|
|
2366
|
-
function
|
|
2347
|
+
function bi({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
2367
2348
|
let a = xe(si), o = L(null), s = a?.active === i.value;
|
|
2368
2349
|
return we(() => {
|
|
2369
2350
|
let e = o.current, t = a?.fromHeightRef.current;
|
|
@@ -2371,7 +2352,7 @@ function Si({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
|
2371
2352
|
let n = a.ghostRef.current;
|
|
2372
2353
|
a.ghostRef.current = void 0;
|
|
2373
2354
|
function r(r) {
|
|
2374
|
-
e && n &&
|
|
2355
|
+
e && n && yi(e, n), e && Math.abs(r - (t ?? r)) >= 1 && e.animate([{
|
|
2375
2356
|
minHeight: `${String(t)}px`,
|
|
2376
2357
|
maxHeight: `${String(t)}px`
|
|
2377
2358
|
}, {
|
|
@@ -2399,18 +2380,18 @@ function Si({ className: e, bodyClassName: t, children: n, ...i }) {
|
|
|
2399
2380
|
...i,
|
|
2400
2381
|
children: /* @__PURE__ */ r("div", {
|
|
2401
2382
|
"data-slot": "tabs-content-body",
|
|
2402
|
-
className: V("group-data-[direction=
|
|
2383
|
+
className: V("group-data-[direction=z]/tabs:animate-tab-in-z motion-reduce:animate-none", t),
|
|
2403
2384
|
children: n
|
|
2404
2385
|
})
|
|
2405
2386
|
});
|
|
2406
2387
|
}
|
|
2407
2388
|
// src/ui/navigation/stepper.component.tsx
|
|
2408
|
-
var
|
|
2389
|
+
var xi = {
|
|
2409
2390
|
done: "bg-primary text-primary-foreground",
|
|
2410
2391
|
current: "border-2 border-primary text-brand-text",
|
|
2411
2392
|
upcoming: "bg-muted text-muted-foreground"
|
|
2412
2393
|
};
|
|
2413
|
-
function
|
|
2394
|
+
function Si({ steps: e, current: t, orientation: n = "horizontal", onStepSelect: a, className: o, "aria-label": s = "Progress", ...c }) {
|
|
2414
2395
|
let l = n === "vertical";
|
|
2415
2396
|
return /* @__PURE__ */ r("ol", {
|
|
2416
2397
|
"data-slot": "stepper",
|
|
@@ -2421,7 +2402,7 @@ function wi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2421
2402
|
children: e.map((n, o) => {
|
|
2422
2403
|
let s = o < t ? "done" : o === t ? "current" : "upcoming", c = o === e.length - 1, u = /* @__PURE__ */ r("span", {
|
|
2423
2404
|
"aria-hidden": "true",
|
|
2424
|
-
className: V("grid size-7 shrink-0 place-items-center rounded-full text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none",
|
|
2405
|
+
className: V("grid size-7 shrink-0 place-items-center rounded-full text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none", xi[s]),
|
|
2425
2406
|
children: s === "done" ? /* @__PURE__ */ r(A, {
|
|
2426
2407
|
className: "size-3.5",
|
|
2427
2408
|
strokeWidth: 2.5
|
|
@@ -2460,13 +2441,13 @@ function wi({ steps: e, current: t, orientation: n = "horizontal", onStepSelect:
|
|
|
2460
2441
|
});
|
|
2461
2442
|
}
|
|
2462
2443
|
// src/ui/presence/presence.recipe.ts
|
|
2463
|
-
var
|
|
2444
|
+
var Ci = {
|
|
2464
2445
|
fade: "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
|
|
2465
2446
|
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",
|
|
2466
2447
|
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"
|
|
2467
2448
|
};
|
|
2468
2449
|
// src/ui/presence/presence.component.tsx
|
|
2469
|
-
function
|
|
2450
|
+
function wi({ present: e, animation: t = "fade", unmountOnExit: n = !0, className: i, onAnimationEnd: a, ...o }) {
|
|
2470
2451
|
let [s, c] = R(e), l = L(null);
|
|
2471
2452
|
return e && !s && c(!0), we(() => {
|
|
2472
2453
|
if (e || !s) return;
|
|
@@ -2477,7 +2458,7 @@ function Ei({ present: e, animation: t = "fade", unmountOnExit: n = !0, classNam
|
|
|
2477
2458
|
"data-slot": "presence",
|
|
2478
2459
|
"data-state": e ? "open" : "closed",
|
|
2479
2460
|
hidden: !e && !s,
|
|
2480
|
-
className: V(
|
|
2461
|
+
className: V(Ci[t], i),
|
|
2481
2462
|
onAnimationEnd: (t) => {
|
|
2482
2463
|
a?.(t), !e && t.target === t.currentTarget && c(!1);
|
|
2483
2464
|
},
|
|
@@ -2485,7 +2466,7 @@ function Ei({ present: e, animation: t = "fade", unmountOnExit: n = !0, classNam
|
|
|
2485
2466
|
});
|
|
2486
2467
|
}
|
|
2487
2468
|
// src/ui/selectable-list/bulk-action-bar.component.tsx
|
|
2488
|
-
function
|
|
2469
|
+
function Ti({ selection: e, children: t, countLabel: n = (e) => `${e} selected`, label: a = "Bulk actions", clearable: o = !0, clearLabel: s = "Clear selection", className: c }) {
|
|
2489
2470
|
return e.count === 0 ? null : /* @__PURE__ */ i("div", {
|
|
2490
2471
|
role: "toolbar",
|
|
2491
2472
|
"aria-label": a,
|
|
@@ -2511,7 +2492,7 @@ function Di({ selection: e, children: t, countLabel: n = (e) => `${e} selected`,
|
|
|
2511
2492
|
});
|
|
2512
2493
|
}
|
|
2513
2494
|
// src/ui/selectable-list/select-all-checkbox.component.tsx
|
|
2514
|
-
function
|
|
2495
|
+
function Ei({ selection: e, filters: t = [], children: n, label: a = "Select all", menuLabel: o = "Selection options", allLabel: s = "All", noneLabel: c = "None", className: l }) {
|
|
2515
2496
|
return /* @__PURE__ */ i("div", {
|
|
2516
2497
|
"data-slot": "select-all-checkbox",
|
|
2517
2498
|
className: V("inline-flex items-center gap-0.5", l),
|
|
@@ -2551,17 +2532,17 @@ function Oi({ selection: e, filters: t = [], children: n, label: a = "Select all
|
|
|
2551
2532
|
});
|
|
2552
2533
|
}
|
|
2553
2534
|
// src/ui/selectable-list/selection-header.component.tsx
|
|
2554
|
-
function
|
|
2535
|
+
function Di({ selection: e, actions: t, filters: n, summary: a, countLabel: o, className: s }) {
|
|
2555
2536
|
return /* @__PURE__ */ i("div", {
|
|
2556
2537
|
"data-slot": "selection-header",
|
|
2557
2538
|
className: V("sticky top-0 z-10 flex min-h-11 items-center gap-2 border-b bg-background px-3", s),
|
|
2558
|
-
children: [/* @__PURE__ */ r(
|
|
2539
|
+
children: [/* @__PURE__ */ r(Ei, {
|
|
2559
2540
|
selection: e,
|
|
2560
2541
|
filters: n
|
|
2561
2542
|
}), e.count === 0 ? /* @__PURE__ */ r("div", {
|
|
2562
2543
|
className: "text-sm text-muted-foreground",
|
|
2563
2544
|
children: a
|
|
2564
|
-
}) : /* @__PURE__ */ r(
|
|
2545
|
+
}) : /* @__PURE__ */ r(Ti, {
|
|
2565
2546
|
selection: e,
|
|
2566
2547
|
countLabel: o,
|
|
2567
2548
|
clearable: !1,
|
|
@@ -2571,8 +2552,8 @@ function ki({ selection: e, actions: t, filters: n, summary: a, countLabel: o, c
|
|
|
2571
2552
|
});
|
|
2572
2553
|
}
|
|
2573
2554
|
// src/ui/selectable-list/selectable-list.component.tsx
|
|
2574
|
-
var
|
|
2575
|
-
function
|
|
2555
|
+
var Oi = ye(null), ki = "[data-slot=\"selectable-row\"]";
|
|
2556
|
+
function Ai({ selection: e, className: t, children: n, ...i }) {
|
|
2576
2557
|
let a = L(null), [o, s] = R(), c = o !== void 0 && e.ids.includes(o) ? o : e.ids[0];
|
|
2577
2558
|
function l(t) {
|
|
2578
2559
|
let n = t.target;
|
|
@@ -2585,17 +2566,17 @@ function Mi({ selection: e, className: t, children: n, ...i }) {
|
|
|
2585
2566
|
t.preventDefault(), e.clear();
|
|
2586
2567
|
return;
|
|
2587
2568
|
}
|
|
2588
|
-
let r = n.closest(
|
|
2569
|
+
let r = n.closest(ki), i = r?.dataset.id;
|
|
2589
2570
|
if (i === void 0 || !r) return;
|
|
2590
2571
|
if (n === r && t.key === " ") {
|
|
2591
2572
|
t.preventDefault(), e.toggle(i, { range: t.shiftKey });
|
|
2592
2573
|
return;
|
|
2593
2574
|
}
|
|
2594
2575
|
if (t.key !== "ArrowDown" && t.key !== "ArrowUp") return;
|
|
2595
|
-
let o = [...a.current?.querySelectorAll(
|
|
2576
|
+
let o = [...a.current?.querySelectorAll(ki) ?? []], s = o[o.indexOf(r) + (t.key === "ArrowDown" ? 1 : -1)], c = s?.dataset.id;
|
|
2596
2577
|
s && c !== void 0 && (t.preventDefault(), s.focus(), t.shiftKey && e.add([i, c]));
|
|
2597
2578
|
}
|
|
2598
|
-
return /* @__PURE__ */ r(
|
|
2579
|
+
return /* @__PURE__ */ r(Oi, {
|
|
2599
2580
|
value: {
|
|
2600
2581
|
selection: e,
|
|
2601
2582
|
activeId: c,
|
|
@@ -2612,8 +2593,8 @@ function Mi({ selection: e, className: t, children: n, ...i }) {
|
|
|
2612
2593
|
})
|
|
2613
2594
|
});
|
|
2614
2595
|
}
|
|
2615
|
-
function
|
|
2616
|
-
let l = xe(
|
|
2596
|
+
function ji({ id: e, label: t, className: n, children: a, onClickCapture: o, onFocus: s, ...c }) {
|
|
2597
|
+
let l = xe(Oi);
|
|
2617
2598
|
if (!l) throw Error("SelectableRow must be inside a SelectableList.");
|
|
2618
2599
|
let { selection: u, activeId: d, setActive: f } = l, p = u.isSelected(e);
|
|
2619
2600
|
function m(t) {
|
|
@@ -2645,7 +2626,7 @@ function Ni({ id: e, label: t, className: n, children: a, onClickCapture: o, onF
|
|
|
2645
2626
|
});
|
|
2646
2627
|
}
|
|
2647
2628
|
// src/ui/selectable-list/selection.hook.ts
|
|
2648
|
-
function
|
|
2629
|
+
function Mi(e, t = {}) {
|
|
2649
2630
|
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 } = {}) => {
|
|
2650
2631
|
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);
|
|
2651
2632
|
i.current = t, r((e) => {
|
|
@@ -2672,14 +2653,14 @@ function Pi(e, t = {}) {
|
|
|
2672
2653
|
};
|
|
2673
2654
|
}
|
|
2674
2655
|
// src/ui/sidebar/sidebar-context.hook.ts
|
|
2675
|
-
var
|
|
2656
|
+
var Ni = ye(null);
|
|
2676
2657
|
function Z() {
|
|
2677
|
-
let e = Se(
|
|
2658
|
+
let e = Se(Ni);
|
|
2678
2659
|
if (!e) throw Error("A sidebar part must be inside a Sidebar.");
|
|
2679
2660
|
return e;
|
|
2680
2661
|
}
|
|
2681
2662
|
// src/ui/sidebar/sidebar.recipe.ts
|
|
2682
|
-
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",
|
|
2663
|
+
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", Pi = "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", Fi = "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", Ii = {
|
|
2683
2664
|
panel: {
|
|
2684
2665
|
open: "w-64 gap-2 px-1.5 py-2.5",
|
|
2685
2666
|
collapsed: "w-12 gap-2 px-1.5 pt-2.5 pb-24"
|
|
@@ -2689,12 +2670,12 @@ var Q = "min-w-0 truncate whitespace-nowrap transition-[translate,opacity] durat
|
|
|
2689
2670
|
collapsed: "w-14 gap-4 px-2 py-3"
|
|
2690
2671
|
}
|
|
2691
2672
|
};
|
|
2692
|
-
function
|
|
2673
|
+
function Li({ label: e, variant: t = "panel", side: n = "start", collapsed: a, defaultCollapsed: o = !1, onCollapsedChange: s, className: c, children: l, ...u }) {
|
|
2693
2674
|
let [d, f] = R(o), p = a ?? d;
|
|
2694
2675
|
function m(e) {
|
|
2695
2676
|
a === void 0 && f(e), s?.(e);
|
|
2696
2677
|
}
|
|
2697
|
-
return /* @__PURE__ */ r(
|
|
2678
|
+
return /* @__PURE__ */ r(Ni, {
|
|
2698
2679
|
value: {
|
|
2699
2680
|
collapsed: p,
|
|
2700
2681
|
setCollapsed: m,
|
|
@@ -2707,7 +2688,7 @@ function zi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2707
2688
|
"data-variant": t,
|
|
2708
2689
|
"data-collapsed": p || void 0,
|
|
2709
2690
|
"aria-label": e,
|
|
2710
|
-
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 ?
|
|
2691
|
+
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 ? Ii[t].collapsed : Ii[t].open, c),
|
|
2711
2692
|
...u,
|
|
2712
2693
|
children: [l, t === "panel" && /* @__PURE__ */ r("span", {
|
|
2713
2694
|
"aria-hidden": "true",
|
|
@@ -2717,7 +2698,7 @@ function zi({ label: e, variant: t = "panel", side: n = "start", collapsed: a, d
|
|
|
2717
2698
|
})
|
|
2718
2699
|
});
|
|
2719
2700
|
}
|
|
2720
|
-
function
|
|
2701
|
+
function Ri({ label: e, children: t }) {
|
|
2721
2702
|
let { collapsed: n, side: a } = Z(), [o, s] = R(!1);
|
|
2722
2703
|
return /* @__PURE__ */ i(pn, {
|
|
2723
2704
|
open: n && o,
|
|
@@ -2731,16 +2712,16 @@ function Bi({ label: e, children: t }) {
|
|
|
2731
2712
|
})]
|
|
2732
2713
|
});
|
|
2733
2714
|
}
|
|
2734
|
-
function
|
|
2715
|
+
function zi({ className: e, ...t }) {
|
|
2735
2716
|
let { collapsed: n, setCollapsed: a, label: o, side: s, variant: c } = Z(), l = c === "nav" ? `${n ? "Expand" : "Collapse"} sidebar` : `${n ? "Show" : "Hide"} ${o.toLowerCase()}`;
|
|
2736
|
-
if (c === "nav") return /* @__PURE__ */ r(
|
|
2717
|
+
if (c === "nav") return /* @__PURE__ */ r(Ri, {
|
|
2737
2718
|
label: l,
|
|
2738
2719
|
children: /* @__PURE__ */ i("button", {
|
|
2739
2720
|
type: "button",
|
|
2740
2721
|
"aria-label": l,
|
|
2741
2722
|
"aria-expanded": !n,
|
|
2742
2723
|
onClick: () => a(!n),
|
|
2743
|
-
className: V(
|
|
2724
|
+
className: V(Fi, e),
|
|
2744
2725
|
...t,
|
|
2745
2726
|
children: [/* @__PURE__ */ r(ue, { "aria-hidden": "true" }), /* @__PURE__ */ r("span", {
|
|
2746
2727
|
"aria-hidden": "true",
|
|
@@ -2762,7 +2743,7 @@ function Vi({ className: e, ...t }) {
|
|
|
2762
2743
|
children: r(u ? re : ie, {})
|
|
2763
2744
|
});
|
|
2764
2745
|
}
|
|
2765
|
-
function
|
|
2746
|
+
function Bi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, className: o }) {
|
|
2766
2747
|
let { collapsed: s, label: c, variant: l } = Z();
|
|
2767
2748
|
if (l === "nav") return /* @__PURE__ */ r("div", {
|
|
2768
2749
|
"data-slot": "sidebar-header",
|
|
@@ -2784,10 +2765,10 @@ function Hi({ query: e = "", onQueryChange: t, searchLabel: n, children: a, clas
|
|
|
2784
2765
|
"aria-label": u,
|
|
2785
2766
|
startIcon: /* @__PURE__ */ r(me, {})
|
|
2786
2767
|
}), a]
|
|
2787
|
-
}), /* @__PURE__ */ r(
|
|
2768
|
+
}), /* @__PURE__ */ r(zi, { className: "ms-auto" })]
|
|
2788
2769
|
});
|
|
2789
2770
|
}
|
|
2790
|
-
function
|
|
2771
|
+
function Vi({ className: e, ...t }) {
|
|
2791
2772
|
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);
|
|
2792
2773
|
return i === "nav" ? /* @__PURE__ */ r("nav", {
|
|
2793
2774
|
"data-slot": "sidebar-content",
|
|
@@ -2800,12 +2781,12 @@ function Ui({ className: e, ...t }) {
|
|
|
2800
2781
|
...t
|
|
2801
2782
|
});
|
|
2802
2783
|
}
|
|
2803
|
-
function
|
|
2784
|
+
function Hi({ className: e, children: t, ...n }) {
|
|
2804
2785
|
let { collapsed: i } = Z();
|
|
2805
2786
|
return /* @__PURE__ */ r("div", {
|
|
2806
2787
|
"data-slot": "sidebar-note",
|
|
2807
2788
|
"aria-hidden": i || void 0,
|
|
2808
|
-
className: V(
|
|
2789
|
+
className: V(Pi, e),
|
|
2809
2790
|
...n,
|
|
2810
2791
|
children: /* @__PURE__ */ r("span", {
|
|
2811
2792
|
className: "min-h-0 truncate overflow-hidden px-3 text-xs whitespace-nowrap text-muted-foreground",
|
|
@@ -2813,7 +2794,7 @@ function Wi({ className: e, children: t, ...n }) {
|
|
|
2813
2794
|
})
|
|
2814
2795
|
});
|
|
2815
2796
|
}
|
|
2816
|
-
function
|
|
2797
|
+
function Ui({ className: e, ...t }) {
|
|
2817
2798
|
let { collapsed: n, variant: i } = Z();
|
|
2818
2799
|
return i === "panel" && n ? null : /* @__PURE__ */ r("div", {
|
|
2819
2800
|
"data-slot": "sidebar-footer",
|
|
@@ -2822,7 +2803,7 @@ function Gi({ className: e, ...t }) {
|
|
|
2822
2803
|
});
|
|
2823
2804
|
}
|
|
2824
2805
|
// src/ui/sidebar/sidebar-group.component.tsx
|
|
2825
|
-
function
|
|
2806
|
+
function Wi({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collapsible: o, className: s, children: c }) {
|
|
2826
2807
|
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";
|
|
2827
2808
|
return m ? /* @__PURE__ */ i(l.Root, {
|
|
2828
2809
|
"data-slot": "sidebar-group",
|
|
@@ -2866,7 +2847,7 @@ function Ki({ title: e, count: t, forceOpen: n = !1, defaultOpen: a = !0, collap
|
|
|
2866
2847
|
});
|
|
2867
2848
|
}
|
|
2868
2849
|
// src/ui/sidebar/sidebar-item.component.tsx
|
|
2869
|
-
function
|
|
2850
|
+
function Gi({ 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 }) {
|
|
2870
2851
|
let { collapsed: m, variant: h } = Z(), g = l ? h === "nav" ? "page" : "true" : void 0, _ = h === "nav" ? /* @__PURE__ */ i(n, { children: [
|
|
2871
2852
|
/* @__PURE__ */ r("span", {
|
|
2872
2853
|
"aria-hidden": "true",
|
|
@@ -2905,7 +2886,7 @@ function qi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2905
2886
|
className: V("ms-auto text-[11px] text-muted-foreground tabular-nums", Q),
|
|
2906
2887
|
children: c
|
|
2907
2888
|
})
|
|
2908
|
-
] }), v = h === "nav" ? V(
|
|
2889
|
+
] }), v = h === "nav" ? V(Fi, 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 = {
|
|
2909
2890
|
"data-slot": "sidebar-item",
|
|
2910
2891
|
"aria-current": g,
|
|
2911
2892
|
"aria-label": m ? e : void 0,
|
|
@@ -2913,23 +2894,23 @@ function qi({ title: e, meta: t, icon: a, hue: o, color: s = "var(--muted-foregr
|
|
|
2913
2894
|
}, b = u && be(f) ? /* @__PURE__ */ r(w.Root, {
|
|
2914
2895
|
...y,
|
|
2915
2896
|
...p,
|
|
2916
|
-
children:
|
|
2897
|
+
children: Ki(f, _)
|
|
2917
2898
|
}) : /* @__PURE__ */ r("button", {
|
|
2918
2899
|
type: "button",
|
|
2919
2900
|
...y,
|
|
2920
2901
|
...p,
|
|
2921
2902
|
children: _
|
|
2922
2903
|
});
|
|
2923
|
-
return /* @__PURE__ */ r(
|
|
2904
|
+
return /* @__PURE__ */ r(Ri, {
|
|
2924
2905
|
label: e,
|
|
2925
2906
|
children: b
|
|
2926
2907
|
});
|
|
2927
2908
|
}
|
|
2928
|
-
function
|
|
2909
|
+
function Ki(e, t) {
|
|
2929
2910
|
return ve(e, void 0, t);
|
|
2930
2911
|
}
|
|
2931
2912
|
// src/ui/sidebar/sidebar-sheet.component.tsx
|
|
2932
|
-
function
|
|
2913
|
+
function qi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o, className: s }) {
|
|
2933
2914
|
return /* @__PURE__ */ i(an, {
|
|
2934
2915
|
open: a,
|
|
2935
2916
|
onOpenChange: o,
|
|
@@ -2954,7 +2935,7 @@ function Yi({ label: e, children: t, side: n = "start", open: a, onOpenChange: o
|
|
|
2954
2935
|
});
|
|
2955
2936
|
}
|
|
2956
2937
|
// src/product/product-switcher.component.tsx
|
|
2957
|
-
function
|
|
2938
|
+
function Ji({ product: e, workspace: t, products: n = Ke, onProductChange: a, className: o }) {
|
|
2958
2939
|
return /* @__PURE__ */ i(Fn, { children: [/* @__PURE__ */ r(In, {
|
|
2959
2940
|
asChild: !0,
|
|
2960
2941
|
children: /* @__PURE__ */ i(Y, {
|
|
@@ -3001,7 +2982,7 @@ function Xi({ product: e, workspace: t, products: n = Ke, onProductChange: a, cl
|
|
|
3001
2982
|
})] });
|
|
3002
2983
|
}
|
|
3003
2984
|
// src/product/sidebar-brand.component.tsx
|
|
3004
|
-
function
|
|
2985
|
+
function Yi({ product: e, badge: t, className: n }) {
|
|
3005
2986
|
let { collapsed: a, setCollapsed: o } = Z(), s = H[e].name;
|
|
3006
2987
|
return /* @__PURE__ */ i("div", {
|
|
3007
2988
|
"data-slot": "sidebar-brand",
|
|
@@ -3031,7 +3012,7 @@ function Zi({ product: e, badge: t, className: n }) {
|
|
|
3031
3012
|
});
|
|
3032
3013
|
}
|
|
3033
3014
|
// src/app/command-shortcut.hook.ts
|
|
3034
|
-
function
|
|
3015
|
+
function Xi(e, t = !0) {
|
|
3035
3016
|
I(() => {
|
|
3036
3017
|
if (!t) return;
|
|
3037
3018
|
function n(t) {
|
|
@@ -3040,43 +3021,43 @@ function Qi(e, t = !0) {
|
|
|
3040
3021
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
3041
3022
|
}, [e, t]);
|
|
3042
3023
|
}
|
|
3043
|
-
function
|
|
3024
|
+
function Zi(e) {
|
|
3044
3025
|
return /mac|iphone|ipad|ipod/i.test(e) ? "⌘K" : "Ctrl+K";
|
|
3045
3026
|
}
|
|
3046
|
-
function
|
|
3047
|
-
function
|
|
3048
|
-
return
|
|
3027
|
+
function Qi() {}
|
|
3028
|
+
function $i() {
|
|
3029
|
+
return Qi;
|
|
3049
3030
|
}
|
|
3050
|
-
function
|
|
3031
|
+
function ea() {
|
|
3051
3032
|
return navigator.userAgentData?.platform ?? navigator.platform;
|
|
3052
3033
|
}
|
|
3053
|
-
function
|
|
3034
|
+
function ta() {
|
|
3054
3035
|
return "";
|
|
3055
3036
|
}
|
|
3056
|
-
function
|
|
3057
|
-
return
|
|
3037
|
+
function na() {
|
|
3038
|
+
return Zi(Ee($i, ea, ta));
|
|
3058
3039
|
}
|
|
3059
3040
|
// src/app/app-shell.component.tsx
|
|
3060
|
-
var
|
|
3061
|
-
function
|
|
3041
|
+
var ra = "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";
|
|
3042
|
+
function ia({ children: e, className: t }) {
|
|
3062
3043
|
return /* @__PURE__ */ r("div", {
|
|
3063
3044
|
"data-slot": "app-shell-header",
|
|
3064
3045
|
className: V("shrink-0 border-b px-6 py-4", t),
|
|
3065
3046
|
children: e
|
|
3066
3047
|
});
|
|
3067
3048
|
}
|
|
3068
|
-
var
|
|
3069
|
-
function
|
|
3049
|
+
var aa = "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6 [scrollbar-gutter:stable] [&>*]:shrink-0 has-[>[data-slot=split-view]]:gap-0 has-[>[data-slot=split-view]]:overflow-hidden has-[>[data-slot=split-view]]:p-0";
|
|
3050
|
+
function oa({ children: e, className: t }) {
|
|
3070
3051
|
return /* @__PURE__ */ r("div", {
|
|
3071
3052
|
"data-slot": "app-shell-body",
|
|
3072
|
-
className: V(
|
|
3053
|
+
className: V(aa, t),
|
|
3073
3054
|
children: e
|
|
3074
3055
|
});
|
|
3075
3056
|
}
|
|
3076
|
-
function
|
|
3057
|
+
function sa({ product: e, brand: t = "switcher", workspace: a, onProductChange: o, nav: s, secondaryNav: c, sidebarFooter: l, sidebarNote: u, user: d, breadcrumb: f, topActions: p, statusBar: m, commands: h, commandPlaceholder: g = "Type a command or search…", commandEmpty: _ = "No results.", children: v, className: y }) {
|
|
3077
3058
|
let [b, x] = R(!1), S = F(() => x(!0), []);
|
|
3078
|
-
|
|
3079
|
-
let C =
|
|
3059
|
+
Xi(S, !!h?.length);
|
|
3060
|
+
let C = na(), w = [...new Set(h?.map((e) => e.group))], T = (e) => /* @__PURE__ */ r(Gi, {
|
|
3080
3061
|
asChild: !0,
|
|
3081
3062
|
title: e.label,
|
|
3082
3063
|
icon: e.icon,
|
|
@@ -3087,17 +3068,17 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3087
3068
|
children: e.label
|
|
3088
3069
|
})
|
|
3089
3070
|
}, e.href), E = /* @__PURE__ */ i(n, { children: [
|
|
3090
|
-
/* @__PURE__ */ r(
|
|
3071
|
+
/* @__PURE__ */ r(Bi, {
|
|
3091
3072
|
className: "h-12",
|
|
3092
|
-
children: t === "logo" ? /* @__PURE__ */ r(
|
|
3073
|
+
children: t === "logo" ? /* @__PURE__ */ r(Yi, { product: e }) : /* @__PURE__ */ r(Ji, {
|
|
3093
3074
|
product: e,
|
|
3094
3075
|
workspace: a,
|
|
3095
3076
|
onProductChange: o,
|
|
3096
3077
|
className: "px-2.5"
|
|
3097
3078
|
})
|
|
3098
3079
|
}),
|
|
3099
|
-
/* @__PURE__ */ i(
|
|
3100
|
-
h?.length ? /* @__PURE__ */ r(
|
|
3080
|
+
/* @__PURE__ */ i(Vi, { children: [
|
|
3081
|
+
h?.length ? /* @__PURE__ */ r(Gi, {
|
|
3101
3082
|
title: "Search",
|
|
3102
3083
|
icon: /* @__PURE__ */ r(me, {}),
|
|
3103
3084
|
badge: /* @__PURE__ */ r(wr, {
|
|
@@ -3110,12 +3091,12 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3110
3091
|
className: "flex flex-col gap-0.5",
|
|
3111
3092
|
children: s.map((e) => T(e))
|
|
3112
3093
|
}),
|
|
3113
|
-
c && /* @__PURE__ */ r(
|
|
3094
|
+
c && /* @__PURE__ */ r(Wi, {
|
|
3114
3095
|
title: c.title,
|
|
3115
3096
|
children: c.items.map((e) => T(e))
|
|
3116
3097
|
})
|
|
3117
3098
|
] }),
|
|
3118
|
-
/* @__PURE__ */ i(
|
|
3099
|
+
/* @__PURE__ */ i(Ui, { children: [
|
|
3119
3100
|
l && /* @__PURE__ */ r("div", {
|
|
3120
3101
|
className: Q,
|
|
3121
3102
|
children: l
|
|
@@ -3133,15 +3114,15 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3133
3114
|
})]
|
|
3134
3115
|
})]
|
|
3135
3116
|
}),
|
|
3136
|
-
/* @__PURE__ */ r(
|
|
3137
|
-
u && /* @__PURE__ */ r(
|
|
3117
|
+
/* @__PURE__ */ r(zi, {}),
|
|
3118
|
+
u && /* @__PURE__ */ r(Hi, { children: u })
|
|
3138
3119
|
] })
|
|
3139
3120
|
] });
|
|
3140
3121
|
return /* @__PURE__ */ i("div", {
|
|
3141
3122
|
"data-slot": "app-shell",
|
|
3142
3123
|
className: V("flex h-dvh overflow-hidden bg-background", y),
|
|
3143
3124
|
children: [
|
|
3144
|
-
/* @__PURE__ */ r(
|
|
3125
|
+
/* @__PURE__ */ r(Li, {
|
|
3145
3126
|
variant: "nav",
|
|
3146
3127
|
label: "Workspace",
|
|
3147
3128
|
className: "h-dvh max-md:hidden",
|
|
@@ -3154,10 +3135,10 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3154
3135
|
"data-slot": "app-top-bar",
|
|
3155
3136
|
className: V("flex h-14 shrink-0 flex-wrap items-center gap-3 border-b px-6", !f && !p && "md:hidden"),
|
|
3156
3137
|
children: [
|
|
3157
|
-
/* @__PURE__ */ r(
|
|
3138
|
+
/* @__PURE__ */ r(qi, {
|
|
3158
3139
|
label: "Workspace",
|
|
3159
3140
|
className: "-ms-2 md:hidden",
|
|
3160
|
-
children: /* @__PURE__ */ r(
|
|
3141
|
+
children: /* @__PURE__ */ r(Li, {
|
|
3161
3142
|
variant: "nav",
|
|
3162
3143
|
label: "Workspace",
|
|
3163
3144
|
collapsed: !1,
|
|
@@ -3174,7 +3155,7 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3174
3155
|
}),
|
|
3175
3156
|
/* @__PURE__ */ r("main", {
|
|
3176
3157
|
"data-slot": "app-shell-page",
|
|
3177
|
-
className:
|
|
3158
|
+
className: ra,
|
|
3178
3159
|
children: v
|
|
3179
3160
|
}),
|
|
3180
3161
|
m && /* @__PURE__ */ r("footer", {
|
|
@@ -3202,7 +3183,7 @@ function la({ product: e, brand: t = "switcher", workspace: a, onProductChange:
|
|
|
3202
3183
|
});
|
|
3203
3184
|
}
|
|
3204
3185
|
// src/app/filter-bar.component.tsx
|
|
3205
|
-
function
|
|
3186
|
+
function ca({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a, views: o, className: s }) {
|
|
3206
3187
|
return /* @__PURE__ */ i("div", {
|
|
3207
3188
|
"data-slot": "filter-bar",
|
|
3208
3189
|
role: "search",
|
|
@@ -3227,7 +3208,7 @@ function ua({ query: e, onQueryChange: t, searchLabel: n = "Search", filters: a,
|
|
|
3227
3208
|
]
|
|
3228
3209
|
});
|
|
3229
3210
|
}
|
|
3230
|
-
function
|
|
3211
|
+
function la({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
3231
3212
|
return /* @__PURE__ */ i(Y, {
|
|
3232
3213
|
variant: "outline",
|
|
3233
3214
|
size: "sm",
|
|
@@ -3246,7 +3227,7 @@ function da({ label: e, count: t = 0, icon: n, className: a, ...o }) {
|
|
|
3246
3227
|
});
|
|
3247
3228
|
}
|
|
3248
3229
|
// src/app/form-section.component.tsx
|
|
3249
|
-
function
|
|
3230
|
+
function ua({ title: e, description: t, children: n, actions: a, className: o }) {
|
|
3250
3231
|
return /* @__PURE__ */ i("section", {
|
|
3251
3232
|
"data-slot": "form-section",
|
|
3252
3233
|
className: V("grid gap-6 md:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]", o),
|
|
@@ -3272,7 +3253,7 @@ function fa({ title: e, description: t, children: n, actions: a, className: o })
|
|
|
3272
3253
|
});
|
|
3273
3254
|
}
|
|
3274
3255
|
// src/app/page-header.component.tsx
|
|
3275
|
-
function
|
|
3256
|
+
function da({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
3276
3257
|
return /* @__PURE__ */ i("div", {
|
|
3277
3258
|
"data-slot": "page-header",
|
|
3278
3259
|
className: V("flex flex-col gap-4", o),
|
|
@@ -3295,7 +3276,7 @@ function pa({ title: e, description: t, actions: n, tabs: a, className: o }) {
|
|
|
3295
3276
|
});
|
|
3296
3277
|
}
|
|
3297
3278
|
// src/app/records-table.component.tsx
|
|
3298
|
-
function
|
|
3279
|
+
function fa({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o, rowActions: s, label: c, className: l }) {
|
|
3299
3280
|
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";
|
|
3300
3281
|
function m(e, t) {
|
|
3301
3282
|
let n = new Set(a);
|
|
@@ -3365,7 +3346,7 @@ function ma({ rows: e, columns: t, getRowId: n, selected: a, onSelectedChange: o
|
|
|
3365
3346
|
});
|
|
3366
3347
|
}
|
|
3367
3348
|
// src/app/split-view.component.tsx
|
|
3368
|
-
function
|
|
3349
|
+
function pa({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o = 280, listDefaultSize: s = 352, detailMinSize: c = 360, onListSizeChange: l, className: u }) {
|
|
3369
3350
|
let d = L(null), f = L(void 0), p = L(0);
|
|
3370
3351
|
I(() => () => cancelAnimationFrame(p.current), []);
|
|
3371
3352
|
let m = F((e, t) => {
|
|
@@ -3413,7 +3394,7 @@ function ha({ list: e, detail: t, listLabel: n, detailLabel: a, listMinSize: o =
|
|
|
3413
3394
|
});
|
|
3414
3395
|
}
|
|
3415
3396
|
// src/app/sparkline.algorithm.ts
|
|
3416
|
-
function
|
|
3397
|
+
function ma(e, t, n, r = 2) {
|
|
3417
3398
|
if (e.length < 2) return "";
|
|
3418
3399
|
let i = Math.min(...e), a = Math.max(...e) - i, o = n - r * 2, s = t / (e.length - 1);
|
|
3419
3400
|
return e.map((e, t) => {
|
|
@@ -3422,13 +3403,13 @@ function ga(e, t, n, r = 2) {
|
|
|
3422
3403
|
}).join(" ");
|
|
3423
3404
|
}
|
|
3424
3405
|
// src/app/stat-card.component.tsx
|
|
3425
|
-
var
|
|
3406
|
+
var ha = {
|
|
3426
3407
|
positive: "text-success",
|
|
3427
3408
|
negative: "text-destructive",
|
|
3428
3409
|
neutral: "text-muted-foreground"
|
|
3429
3410
|
};
|
|
3430
|
-
function
|
|
3431
|
-
let c = o ?
|
|
3411
|
+
function ga({ label: e, value: t, delta: n, tone: a = "neutral", series: o, className: s }) {
|
|
3412
|
+
let c = o ? ma(o, 100, 32) : "";
|
|
3432
3413
|
return /* @__PURE__ */ i(vr, {
|
|
3433
3414
|
"data-slot": "stat-card",
|
|
3434
3415
|
className: V("gap-1.5 p-4", s),
|
|
@@ -3460,14 +3441,14 @@ function va({ label: e, value: t, delta: n, tone: a = "neutral", series: o, clas
|
|
|
3460
3441
|
})]
|
|
3461
3442
|
}),
|
|
3462
3443
|
n && /* @__PURE__ */ r("span", {
|
|
3463
|
-
className: V("text-xs",
|
|
3444
|
+
className: V("text-xs", ha[a]),
|
|
3464
3445
|
children: n
|
|
3465
3446
|
})
|
|
3466
3447
|
]
|
|
3467
3448
|
});
|
|
3468
3449
|
}
|
|
3469
3450
|
// src/status/run-status.contract.ts
|
|
3470
|
-
var
|
|
3451
|
+
var _a = [
|
|
3471
3452
|
"queued",
|
|
3472
3453
|
"waiting",
|
|
3473
3454
|
"running",
|
|
@@ -3475,7 +3456,7 @@ var ya = [
|
|
|
3475
3456
|
"no-records",
|
|
3476
3457
|
"failed",
|
|
3477
3458
|
"off"
|
|
3478
|
-
],
|
|
3459
|
+
], va = {
|
|
3479
3460
|
queued: {
|
|
3480
3461
|
label: "Queued",
|
|
3481
3462
|
variant: "secondary",
|
|
@@ -3512,12 +3493,12 @@ var ya = [
|
|
|
3512
3493
|
live: !1
|
|
3513
3494
|
}
|
|
3514
3495
|
};
|
|
3515
|
-
function
|
|
3516
|
-
return
|
|
3496
|
+
function ya(e) {
|
|
3497
|
+
return va[e];
|
|
3517
3498
|
}
|
|
3518
3499
|
// src/status/status-badge.component.tsx
|
|
3519
|
-
function
|
|
3520
|
-
let { label: n, variant: i, live: a } =
|
|
3500
|
+
function ba({ status: e, ...t }) {
|
|
3501
|
+
let { label: n, variant: i, live: a } = ya(e);
|
|
3521
3502
|
return /* @__PURE__ */ r(q, {
|
|
3522
3503
|
variant: i,
|
|
3523
3504
|
dot: a,
|
|
@@ -3527,7 +3508,7 @@ function Sa({ status: e, ...t }) {
|
|
|
3527
3508
|
});
|
|
3528
3509
|
}
|
|
3529
3510
|
// src/desktop/flow-node.component.tsx
|
|
3530
|
-
function
|
|
3511
|
+
function xa({ title: e, description: t, status: n, hue: a, selected: o = !1, onSelect: s, className: c }) {
|
|
3531
3512
|
return /* @__PURE__ */ i("button", {
|
|
3532
3513
|
type: "button",
|
|
3533
3514
|
"data-slot": "flow-node",
|
|
@@ -3545,7 +3526,7 @@ function Ca({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3545
3526
|
className: "font-semibold",
|
|
3546
3527
|
children: e
|
|
3547
3528
|
}),
|
|
3548
|
-
/* @__PURE__ */ r(
|
|
3529
|
+
/* @__PURE__ */ r(ba, {
|
|
3549
3530
|
status: n,
|
|
3550
3531
|
className: "ms-auto h-[18px] text-[11px]"
|
|
3551
3532
|
})
|
|
@@ -3557,7 +3538,7 @@ function Ca({ title: e, description: t, status: n, hue: a, selected: o = !1, onS
|
|
|
3557
3538
|
});
|
|
3558
3539
|
}
|
|
3559
3540
|
// src/desktop/inspector.component.tsx
|
|
3560
|
-
function
|
|
3541
|
+
function Sa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s }) {
|
|
3561
3542
|
return /* @__PURE__ */ i("aside", {
|
|
3562
3543
|
"data-slot": "inspector",
|
|
3563
3544
|
"aria-label": "Inspector",
|
|
@@ -3580,18 +3561,18 @@ function wa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3580
3561
|
})
|
|
3581
3562
|
]
|
|
3582
3563
|
}),
|
|
3583
|
-
/* @__PURE__ */ i(
|
|
3564
|
+
/* @__PURE__ */ i(li, {
|
|
3584
3565
|
defaultValue: a[0]?.value,
|
|
3585
3566
|
className: "min-h-0 flex-1 gap-0",
|
|
3586
|
-
children: [/* @__PURE__ */ r(
|
|
3567
|
+
children: [/* @__PURE__ */ r(fi, {
|
|
3587
3568
|
variant: "underline",
|
|
3588
3569
|
className: "gap-4 px-3",
|
|
3589
|
-
children: a.map((e) => /* @__PURE__ */ r(
|
|
3570
|
+
children: a.map((e) => /* @__PURE__ */ r(hi, {
|
|
3590
3571
|
value: e.value,
|
|
3591
3572
|
className: "text-[13px] group-data-[variant=underline]/tabs-list:py-2",
|
|
3592
3573
|
children: e.label
|
|
3593
3574
|
}, e.value))
|
|
3594
|
-
}), a.map((e) => /* @__PURE__ */ r(
|
|
3575
|
+
}), a.map((e) => /* @__PURE__ */ r(bi, {
|
|
3595
3576
|
value: e.value,
|
|
3596
3577
|
className: "flex flex-col gap-3 overflow-y-auto p-3",
|
|
3597
3578
|
children: e.content
|
|
@@ -3605,7 +3586,7 @@ function wa({ title: e, subtitle: t, hue: n, tabs: a, footer: o, className: s })
|
|
|
3605
3586
|
});
|
|
3606
3587
|
}
|
|
3607
3588
|
// src/desktop/status-bar.component.tsx
|
|
3608
|
-
function
|
|
3589
|
+
function Ca({ start: e, end: t, className: n }) {
|
|
3609
3590
|
return /* @__PURE__ */ i("div", {
|
|
3610
3591
|
"data-slot": "status-bar",
|
|
3611
3592
|
role: "status",
|
|
@@ -3617,7 +3598,7 @@ function Ta({ start: e, end: t, className: n }) {
|
|
|
3617
3598
|
});
|
|
3618
3599
|
}
|
|
3619
3600
|
// src/desktop/timeline.algorithm.ts
|
|
3620
|
-
function
|
|
3601
|
+
function wa(e, t, n) {
|
|
3621
3602
|
if (n <= 0) return {
|
|
3622
3603
|
left: 0,
|
|
3623
3604
|
width: 0
|
|
@@ -3628,7 +3609,7 @@ function Ea(e, t, n) {
|
|
|
3628
3609
|
width: Math.max(0, r(t) - i)
|
|
3629
3610
|
};
|
|
3630
3611
|
}
|
|
3631
|
-
function
|
|
3612
|
+
function Ta(e, t) {
|
|
3632
3613
|
let n = Math.max(2, t);
|
|
3633
3614
|
return Array.from({ length: n }, (t, r) => Math.round(e * r / (n - 1)));
|
|
3634
3615
|
}
|
|
@@ -3636,17 +3617,17 @@ function Da(e, t) {
|
|
|
3636
3617
|
function $(e) {
|
|
3637
3618
|
return String(e).padStart(2, "0");
|
|
3638
3619
|
}
|
|
3639
|
-
function
|
|
3620
|
+
function Ea(e, t = !1) {
|
|
3640
3621
|
let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 3600), i = Math.floor(n % 3600 / 60), a = n % 60;
|
|
3641
3622
|
return t || r > 0 ? `${$(r)}:${$(i)}:${$(a)}` : `${$(i)}:${$(a)}`;
|
|
3642
3623
|
}
|
|
3643
|
-
function
|
|
3624
|
+
function Da(e, t) {
|
|
3644
3625
|
let n = new Date(e.getTime() + t * 1e3);
|
|
3645
3626
|
return `${$(n.getHours())}:${$(n.getMinutes())}`;
|
|
3646
3627
|
}
|
|
3647
3628
|
// src/desktop/timeline-lanes.component.tsx
|
|
3648
|
-
function
|
|
3649
|
-
let c = (e) => o ?
|
|
3629
|
+
function Oa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o, className: s }) {
|
|
3630
|
+
let c = (e) => o ? Da(o, e) : Ea(e), l = n === void 0 ? void 0 : wa(0, n, e).width;
|
|
3650
3631
|
return /* @__PURE__ */ i("div", {
|
|
3651
3632
|
"data-slot": "timeline-lanes",
|
|
3652
3633
|
role: "group",
|
|
@@ -3656,7 +3637,7 @@ function Aa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3656
3637
|
/* @__PURE__ */ r("div", {
|
|
3657
3638
|
className: "flex h-[26px] items-center border-b ps-[118px] pe-2.5",
|
|
3658
3639
|
"aria-hidden": "true",
|
|
3659
|
-
children:
|
|
3640
|
+
children: Ta(e, a).map((e) => /* @__PURE__ */ r("span", {
|
|
3660
3641
|
className: "flex-1 text-xs tabular-nums text-muted-foreground",
|
|
3661
3642
|
children: c(e)
|
|
3662
3643
|
}, e))
|
|
@@ -3672,7 +3653,7 @@ function Aa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3672
3653
|
}), /* @__PURE__ */ r("div", {
|
|
3673
3654
|
className: "relative me-2.5 h-[26px] flex-1",
|
|
3674
3655
|
children: t.segments.map((n) => {
|
|
3675
|
-
let a =
|
|
3656
|
+
let a = wa(n.start, n.end, e), o = `${t.name}${n.label ? `, ${n.label}` : ""}, ${c(n.start)} to ${c(n.end)}`;
|
|
3676
3657
|
return /* @__PURE__ */ i(pn, { children: [/* @__PURE__ */ r(mn, {
|
|
3677
3658
|
asChild: !0,
|
|
3678
3659
|
children: /* @__PURE__ */ r("button", {
|
|
@@ -3697,7 +3678,7 @@ function Aa({ duration: e, lanes: t, playhead: n, tickCount: a = 8, startsAt: o,
|
|
|
3697
3678
|
});
|
|
3698
3679
|
}
|
|
3699
3680
|
// src/desktop/title-bar.component.tsx
|
|
3700
|
-
function
|
|
3681
|
+
function ka({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onClose: s, className: c }) {
|
|
3701
3682
|
let l = [
|
|
3702
3683
|
{
|
|
3703
3684
|
label: "Minimise",
|
|
@@ -3745,7 +3726,7 @@ function ja({ product: e, menus: t, title: n, onMinimise: a, onMaximise: o, onCl
|
|
|
3745
3726
|
});
|
|
3746
3727
|
}
|
|
3747
3728
|
// src/mobile/bottom-nav.component.tsx
|
|
3748
|
-
function
|
|
3729
|
+
function Aa({ items: e, className: t }) {
|
|
3749
3730
|
return /* @__PURE__ */ r("nav", {
|
|
3750
3731
|
"data-slot": "bottom-nav",
|
|
3751
3732
|
"aria-label": "Tabs",
|
|
@@ -3767,7 +3748,7 @@ function Ma({ items: e, className: t }) {
|
|
|
3767
3748
|
});
|
|
3768
3749
|
}
|
|
3769
3750
|
// src/mobile/capture-frame.component.tsx
|
|
3770
|
-
function
|
|
3751
|
+
function ja({ title: e, children: t, checksTitle: n, checks: a, onClose: o, actions: s, className: c }) {
|
|
3771
3752
|
let l = a.filter((e) => !e.passed).length;
|
|
3772
3753
|
return /* @__PURE__ */ i("div", {
|
|
3773
3754
|
"data-slot": "capture-frame",
|
|
@@ -3850,7 +3831,7 @@ function Na({ title: e, children: t, checksTitle: n, checks: a, onClose: o, acti
|
|
|
3850
3831
|
});
|
|
3851
3832
|
}
|
|
3852
3833
|
// src/mobile/record-button.component.tsx
|
|
3853
|
-
function
|
|
3834
|
+
function Ma({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onResume: s, onMarker: c, className: l }) {
|
|
3854
3835
|
let u = {
|
|
3855
3836
|
idle: {
|
|
3856
3837
|
label: "Start recording",
|
|
@@ -3894,7 +3875,7 @@ function Pa({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3894
3875
|
/* @__PURE__ */ r("span", {
|
|
3895
3876
|
className: "ms-auto text-[13px] font-semibold tabular-nums",
|
|
3896
3877
|
"aria-label": "Recorded time",
|
|
3897
|
-
children:
|
|
3878
|
+
children: Ea(t, !0)
|
|
3898
3879
|
})
|
|
3899
3880
|
]
|
|
3900
3881
|
}),
|
|
@@ -3925,7 +3906,7 @@ function Pa({ state: e, elapsed: t, levels: n = [], onStart: a, onPause: o, onRe
|
|
|
3925
3906
|
});
|
|
3926
3907
|
}
|
|
3927
3908
|
// src/web/cta-band.component.tsx
|
|
3928
|
-
function
|
|
3909
|
+
function Na({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", submitLabel: o = "Send", className: s }) {
|
|
3929
3910
|
let c = Ce();
|
|
3930
3911
|
function l(e) {
|
|
3931
3912
|
e.preventDefault();
|
|
@@ -3978,7 +3959,7 @@ function Fa({ title: e, body: t, onSubmit: n, inputLabel: a = "Work email", subm
|
|
|
3978
3959
|
});
|
|
3979
3960
|
}
|
|
3980
3961
|
// src/web/faq.component.tsx
|
|
3981
|
-
function
|
|
3962
|
+
function Pa({ title: e, items: t, className: n }) {
|
|
3982
3963
|
return /* @__PURE__ */ r("section", {
|
|
3983
3964
|
"data-slot": "faq",
|
|
3984
3965
|
className: V("py-22", n),
|
|
@@ -4002,7 +3983,7 @@ function Ia({ title: e, items: t, className: n }) {
|
|
|
4002
3983
|
});
|
|
4003
3984
|
}
|
|
4004
3985
|
// src/web/feature-grid.component.tsx
|
|
4005
|
-
function
|
|
3986
|
+
function Fa({ title: e, lead: t, features: n, className: a }) {
|
|
4006
3987
|
return /* @__PURE__ */ r("section", {
|
|
4007
3988
|
"data-slot": "feature-grid",
|
|
4008
3989
|
className: V("border-y bg-canvas py-22", a),
|
|
@@ -4042,7 +4023,7 @@ function La({ title: e, lead: t, features: n, className: a }) {
|
|
|
4042
4023
|
});
|
|
4043
4024
|
}
|
|
4044
4025
|
// src/web/hero.component.tsx
|
|
4045
|
-
function
|
|
4026
|
+
function Ia({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
4046
4027
|
return /* @__PURE__ */ r("section", {
|
|
4047
4028
|
"data-slot": "hero",
|
|
4048
4029
|
className: V("pt-22 pb-14", o),
|
|
@@ -4071,7 +4052,7 @@ function Ra({ eyebrow: e, title: t, lead: n, actions: a, className: o }) {
|
|
|
4071
4052
|
});
|
|
4072
4053
|
}
|
|
4073
4054
|
// src/web/how-it-works.component.tsx
|
|
4074
|
-
function
|
|
4055
|
+
function La({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
4075
4056
|
return /* @__PURE__ */ r("section", {
|
|
4076
4057
|
"data-slot": "how-it-works",
|
|
4077
4058
|
className: V("py-22", o),
|
|
@@ -4114,12 +4095,12 @@ function za({ title: e, lead: t, link: n, steps: a, className: o }) {
|
|
|
4114
4095
|
});
|
|
4115
4096
|
}
|
|
4116
4097
|
// src/web/mobile-menu.component.tsx
|
|
4117
|
-
var
|
|
4118
|
-
function
|
|
4098
|
+
var Ra = 400;
|
|
4099
|
+
function za({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
4119
4100
|
let [o, s] = R(!1), [c, l] = R(), [u, f] = R(!1), p = L(null);
|
|
4120
4101
|
I(() => {
|
|
4121
4102
|
if (o) return;
|
|
4122
|
-
let e = setTimeout(() => f(!1),
|
|
4103
|
+
let e = setTimeout(() => f(!1), Ra);
|
|
4123
4104
|
return () => clearTimeout(e);
|
|
4124
4105
|
}, [o]), I(() => {
|
|
4125
4106
|
if (!o) return;
|
|
@@ -4215,7 +4196,7 @@ function Va({ links: e, actions: t, label: n = "Main", className: a }) {
|
|
|
4215
4196
|
});
|
|
4216
4197
|
}
|
|
4217
4198
|
// src/web/pricing-table.component.tsx
|
|
4218
|
-
function
|
|
4199
|
+
function Ba({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note: o, featuredLabel: s = "Most teams", className: c }) {
|
|
4219
4200
|
let [l, u] = R(a);
|
|
4220
4201
|
return /* @__PURE__ */ r("section", {
|
|
4221
4202
|
"data-slot": "pricing-table",
|
|
@@ -4302,7 +4283,7 @@ function Ha({ title: e, lead: t, plans: n, defaultBilling: a = "monthly", note:
|
|
|
4302
4283
|
});
|
|
4303
4284
|
}
|
|
4304
4285
|
// src/web/product-card.component.tsx
|
|
4305
|
-
function
|
|
4286
|
+
function Va({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
4306
4287
|
let s = H[e];
|
|
4307
4288
|
return /* @__PURE__ */ i("a", {
|
|
4308
4289
|
"data-slot": "product-card",
|
|
@@ -4340,7 +4321,7 @@ function Ua({ product: e, href: t, description: n, stage: a, className: o }) {
|
|
|
4340
4321
|
});
|
|
4341
4322
|
}
|
|
4342
4323
|
// src/web/site-footer.component.tsx
|
|
4343
|
-
function
|
|
4324
|
+
function Ha({ tagline: e, columns: t, legal: n, className: a }) {
|
|
4344
4325
|
return /* @__PURE__ */ i("footer", {
|
|
4345
4326
|
"data-slot": "site-footer",
|
|
4346
4327
|
className: V("border-t pt-14 pb-10", a),
|
|
@@ -4381,7 +4362,7 @@ function Wa({ tagline: e, columns: t, legal: n, className: a }) {
|
|
|
4381
4362
|
});
|
|
4382
4363
|
}
|
|
4383
4364
|
// src/web/site-header.component.tsx
|
|
4384
|
-
function
|
|
4365
|
+
function Ua({ nav: e, actions: t, brand: a, className: o }) {
|
|
4385
4366
|
let s = a ?? /* @__PURE__ */ i("a", {
|
|
4386
4367
|
href: "/",
|
|
4387
4368
|
className: "flex items-center gap-2 no-underline",
|
|
@@ -4427,7 +4408,7 @@ function Ga({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4427
4408
|
className: "ms-auto hidden items-center gap-2 md:flex",
|
|
4428
4409
|
children: t
|
|
4429
4410
|
}),
|
|
4430
|
-
/* @__PURE__ */ r(
|
|
4411
|
+
/* @__PURE__ */ r(za, {
|
|
4431
4412
|
className: "ms-auto md:hidden",
|
|
4432
4413
|
links: e.flatMap((e) => e.links ?? [{
|
|
4433
4414
|
label: e.label,
|
|
@@ -4439,6 +4420,6 @@ function Ga({ nav: e, actions: t, brand: a, className: o }) {
|
|
|
4439
4420
|
})
|
|
4440
4421
|
});
|
|
4441
4422
|
}
|
|
4442
|
-
export { mr as Accordion, _r as AccordionContent, hr as AccordionItem, gr as AccordionTrigger, ir as Alert, Mt as AlertDialog, Lt as AlertDialogAction, Rt as AlertDialogCancel, Pt as AlertDialogContent, It as AlertDialogDescription, Ft as AlertDialogTitle, Nt as AlertDialogTrigger,
|
|
4423
|
+
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, sa as AppShell, oa as AppShellBody, ia as AppShellHeader, $e as Avatar, tt as AvatarFallback, et as AvatarImage, q as Badge, Aa as BottomNav, Rr as Breadcrumb, Br as BreadcrumbItem, Vr as BreadcrumbLink, zr as BreadcrumbList, Hr as BreadcrumbPage, Ur as BreadcrumbSeparator, Ti as BulkActionBar, Y as Button, Xe as COLOUR_SCHEMES, ja 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, Na 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, Pa as Faq, Fa as FeatureGrid, vt as Field, fr as FileDropOverlay, ca as FilterBar, la as FilterChip, xa as FlowNode, ua as FormSection, qe as HUES, G as HUE_FILL, Ia as Hero, La as HowItWorks, yt as Input, Sa 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, za 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, da as PageHeader, oi as Pagination, en as Popover, nn as PopoverAnchor, rn as PopoverContent, tn as PopoverTrigger, $t as Portal, wi as Presence, Ba as PricingTable, Va as ProductCard, U as ProductLogo, Ji as ProductSwitcher, or as Progress, _a as RUN_STATUSES, at as RadioGroup, ot as RadioGroupItem, Ma as RecordButton, fa as RecordsTable, Dr as ResizableHandle, Er as ResizablePanel, Tr as ResizablePanelGroup, Or as ScrollArea, kr as ScrollBar, bt as Select, Ei as SelectAllCheckbox, wt as SelectContent, xt as SelectGroup, Et as SelectItem, Tt as SelectLabel, Dt as SelectSeparator, Ct as SelectTrigger, St as SelectValue, Ai as SelectableList, ji as SelectableRow, Di as SelectionHeader, Ar as Separator, an as Sheet, sn as SheetClose, dn as SheetContent, ln as SheetDescription, cn as SheetTitle, on as SheetTrigger, Li as Sidebar, Yi as SidebarBrand, zi as SidebarCollapseButton, Vi as SidebarContent, Ui as SidebarFooter, Wi as SidebarGroup, Bi as SidebarHeader, Gi as SidebarItem, Hi as SidebarNote, qi as SidebarSheet, Ri as SidebarTooltip, Ha as SiteFooter, Ua as SiteHeader, sr as Skeleton, st as Slider, cr as Spinner, pa as SplitView, ga as StatCard, ba as StatusBadge, Ca as StatusBar, Si 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, li as Tabs, bi as TabsContent, fi as TabsList, hi as TabsTrigger, Jn as Tag, Zn as TagsInput, Ot as Textarea, Qe as ThemeRoot, Oa as TimelineLanes, ka 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, Zi as commandShortcutLabel, pt as controlClassName, Q as fadingLabelClassName, At as floatingMotionClassName, Da as formatClockTime, Ea as formatTimecode, Ge as hueForProduct, He as logoColorForHue, dr as mayAcceptDrag, X as menuItemClassName, vn as menuSeparatorClassName, _n as menuShortcutClassName, Fi as navRowClassName, kt as overlayClassName, Ci as presenceClassName, Ie as readableLabel, ya as runStatusDisplay, jt as sheetMotionClassName, Pi as sidebarNoteClassName, ma as sparklinePath, Kn as splitTags, Yn as tagsFieldClassName, Xn as tagsFieldInputClassName, Ze as themeAttributes, wa as timelineBox, Ta as timelineTicks, Xi as useCommandShortcut, na as useCommandShortcutLabel, ht as useFieldControl, gt as useFieldLabelId, Qn as useOptionSearch, pr as usePageDrop, Mi as useSelection, Z as useSidebar };
|
|
4443
4424
|
|
|
4444
4425
|
//# sourceMappingURL=index.js.map
|